diff --git a/demo-shell-ng2/app/components/search/search-bar.component.html b/demo-shell-ng2/app/components/search/search-bar.component.html index 2fcc5b92dc..1f3b2a73a8 100644 --- a/demo-shell-ng2/app/components/search/search-bar.component.html +++ b/demo-shell-ng2/app/components/search/search-bar.component.html @@ -4,7 +4,6 @@ [highlight]="true" (searchSubmit)="onSearchSubmit($event);" (searchChange)="onSearchTermChange($event);" - (expand)="onExpandToggle($event);" (fileSelect)="onItemClicked($event)"> diff --git a/demo-shell-ng2/app/components/search/search-bar.component.ts b/demo-shell-ng2/app/components/search/search-bar.component.ts index 9978723e6e..c34e75d9d0 100644 --- a/demo-shell-ng2/app/components/search/search-bar.component.ts +++ b/demo-shell-ng2/app/components/search/search-bar.component.ts @@ -64,8 +64,4 @@ export class SearchBarComponent { onSearchTermChange(event) { this.searchTerm = event.value; } - - onExpandToggle(event) { - this.expand.emit(event); - } } diff --git a/docs/search-control.component.md b/docs/search-control.component.md index eda804946f..367c01c10b 100644 --- a/docs/search-control.component.md +++ b/docs/search-control.component.md @@ -31,9 +31,9 @@ | --- | --- | --- | --- | | searchTerm | string | | Search term to pre-populate the field with | | inputType | string | "text" | Type of the input field to render, e.g. "search" or "text" (default) | -| expandable | boolean | true | Whether to use an expanding search control, if false then a regular input is used. | | autocomplete | boolean | true | Whether the browser should offer field auto-completion for the input field to the user. | | highlight | boolean | false | Use the true value if you want to see the searched word highlighted. | +| expandable | boolean | true | Whether to use an expanding search control, if false then a regular input is used. | | liveSearchEnabled | boolean | true | Whether find-as-you-type suggestions should be offered for matching content items. Set to false to disable. | | liveSearchRoot | string | "-root-" | NodeRef or node name where the search should start. | | liveSearchResultType | string | | Node type to filter live search results by, e.g. 'cm:content'. | @@ -47,7 +47,6 @@ | searchChange | Emitted when the search term is changed. The search term is provided in the 'value' property of the returned object. If the term is less than three characters in length then the term is truncated to an empty string. | | searchSubmit | Emitted when the search form is submitted. The search term is provided in the 'value' property of the returned object. | | fileSelect | Emitted when a file item from the list of find-as-you-type results is selected | -| expand | Emitted when the expanded state of the control changes based on focus events and the content of the input control | ## Details diff --git a/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-blue-orange.css b/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-blue-orange.css index c1e8888ec2..f808aeda21 100644 --- a/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-blue-orange.css +++ b/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-blue-orange.css @@ -3157,6 +3157,7 @@ adf-file-uploading-list-row:not(:first-child) { padding: 0; } .adf-search-button.mat-button { + margin-right: 10px; border-radius: 50%; height: 32px; min-width: 20px; diff --git a/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-blue-purple.css b/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-blue-purple.css index daf5b69f58..1912ae3c3b 100644 --- a/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-blue-purple.css +++ b/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-blue-purple.css @@ -3157,6 +3157,7 @@ adf-file-uploading-list-row:not(:first-child) { padding: 0; } .adf-search-button.mat-button { + margin-right: 10px; border-radius: 50%; height: 32px; min-width: 20px; diff --git a/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-cyan-orange.css b/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-cyan-orange.css index d21590ce78..9003d394ac 100644 --- a/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-cyan-orange.css +++ b/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-cyan-orange.css @@ -3157,6 +3157,7 @@ adf-file-uploading-list-row:not(:first-child) { padding: 0; } .adf-search-button.mat-button { + margin-right: 10px; border-radius: 50%; height: 32px; min-width: 20px; diff --git a/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-cyan-purple.css b/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-cyan-purple.css index 601a220177..e3aa775937 100644 --- a/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-cyan-purple.css +++ b/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-cyan-purple.css @@ -3157,6 +3157,7 @@ adf-file-uploading-list-row:not(:first-child) { padding: 0; } .adf-search-button.mat-button { + margin-right: 10px; border-radius: 50%; height: 32px; min-width: 20px; diff --git a/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-green-orange.css b/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-green-orange.css index 48455652d4..3024494b67 100644 --- a/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-green-orange.css +++ b/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-green-orange.css @@ -3157,6 +3157,7 @@ adf-file-uploading-list-row:not(:first-child) { padding: 0; } .adf-search-button.mat-button { + margin-right: 10px; border-radius: 50%; height: 32px; min-width: 20px; diff --git a/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-green-purple.css b/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-green-purple.css index c1516d427b..4c768ac0c4 100644 --- a/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-green-purple.css +++ b/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-green-purple.css @@ -3157,6 +3157,7 @@ adf-file-uploading-list-row:not(:first-child) { padding: 0; } .adf-search-button.mat-button { + margin-right: 10px; border-radius: 50%; height: 32px; min-width: 20px; diff --git a/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-indigo-pink.css b/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-indigo-pink.css index 0f5e5cbee0..87bcdb9c22 100644 --- a/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-indigo-pink.css +++ b/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-indigo-pink.css @@ -3157,6 +3157,7 @@ adf-file-uploading-list-row:not(:first-child) { padding: 0; } .adf-search-button.mat-button { + margin-right: 10px; border-radius: 50%; height: 32px; min-width: 20px; diff --git a/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-pink-bluegrey.css b/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-pink-bluegrey.css index 69acf6f1fb..ef9d7e24a8 100644 --- a/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-pink-bluegrey.css +++ b/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-pink-bluegrey.css @@ -3157,6 +3157,7 @@ adf-file-uploading-list-row:not(:first-child) { padding: 0; } .adf-search-button.mat-button { + margin-right: 10px; border-radius: 50%; height: 32px; min-width: 20px; diff --git a/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-purple-green.css b/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-purple-green.css index 44baae18fd..5ccdb09424 100644 --- a/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-purple-green.css +++ b/ng2-components/ng2-alfresco-core/prebuilt-themes/adf-purple-green.css @@ -3157,6 +3157,7 @@ adf-file-uploading-list-row:not(:first-child) { padding: 0; } .adf-search-button.mat-button { + margin-right: 10px; border-radius: 50%; height: 32px; min-width: 20px; diff --git a/ng2-components/ng2-alfresco-documentlist/index.ts b/ng2-components/ng2-alfresco-documentlist/index.ts index 07ea75257c..339651a37a 100644 --- a/ng2-components/ng2-alfresco-documentlist/index.ts +++ b/ng2-components/ng2-alfresco-documentlist/index.ts @@ -31,11 +31,11 @@ import { EmptyFolderContentDirective } from './src/components/empty-folder/empty import { DropdownSitesComponent } from './src/components/site-dropdown/sites-dropdown.component'; import { MaterialModule } from './src/material.module'; +import { ContentNodeSelectorService } from './src/components/content-node-selector/content-node-selector.service'; import { DocumentActionsService } from './src/services/document-actions.service'; import { DocumentListService } from './src/services/document-list.service'; import { FolderActionsService } from './src/services/folder-actions.service'; import { NodeActionsService } from './src/services/node-actions.service'; -import { ContentNodeSelectorService } from './src/components/content-node-selector/content-node-selector.service'; // components export * from './src/components/document-list.component'; diff --git a/ng2-components/ng2-alfresco-search/README.md b/ng2-components/ng2-alfresco-search/README.md index 77df2b6c11..45acdb6242 100644 --- a/ng2-components/ng2-alfresco-search/README.md +++ b/ng2-components/ng2-alfresco-search/README.md @@ -48,9 +48,9 @@ Contains the Search and Search Results components. | --- | --- | --- | --- | | searchTerm | string | | Search term to pre-populate the field with | | inputType | string | "text" | Type of the input field to render, e.g. "search" or "text" (default) | -| expandable | boolean | true | Whether to use an expanding search control, if false then a regular input is used. | | autocomplete | boolean | true | Whether the browser should offer field auto-completion for the input field to the user. | | highlight | boolean | false | Use the true value if you want to see the searched word highlighted. | +| expandable | boolean | true | Whether to use an expanding search control, if false then a regular input is used. | | liveSearchEnabled | boolean | true | Whether find-as-you-type suggestions should be offered for matching content items. Set to false to disable. | | liveSearchRoot | string | "-root-" | NodeRef or node name where the search should start. | | liveSearchResultType | string | | Node type to filter live search results by, e.g. 'cm:content'. | @@ -64,7 +64,6 @@ Contains the Search and Search Results components. | searchChange | Emitted when the search term is changed. The search term is provided in the 'value' property of the returned object. If the term is less than three characters in length then the term is truncated to an empty string. | | searchSubmit | Emitted when the search form is submitted. The search term is provided in the 'value' property of the returned object. | | fileSelect | Emitted when a file item from the list of find-as-you-type results is selected | -| expand | Emitted when the expanded state of the control changes based on focus events and the content of the input control | ### Details diff --git a/ng2-components/ng2-alfresco-search/src/components/search-autocomplete.component.html b/ng2-components/ng2-alfresco-search/src/components/search-autocomplete.component.html index 57532e823f..4866f7c36e 100644 --- a/ng2-components/ng2-alfresco-search/src/components/search-autocomplete.component.html +++ b/ng2-components/ng2-alfresco-search/src/components/search-autocomplete.component.html @@ -1,7 +1,7 @@
{{ 'SEARCH.RESULTS.NONE' | translate:{searchTerm: searchTerm} }}
@@ -31,8 +30,7 @@
|
{{ 'SEARCH.RESULTS.ERROR' | translate:{errorMessage: errorMessage} }} |