ngx-ode-ui 3.12.0-dev.13 → 3.12.0-dev.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,34 @@
1
+ import { EventEmitter, Injector } from "@angular/core";
2
+ import { OdeComponent } from "ngx-ode-core";
3
+ /**
4
+ * Search Toolbar component.
5
+ * Used within List component, Search Toolbar will display following information:
6
+ * - Label of the search filter section (example: 'Search by')
7
+ * - List of search type filters (example: 'Name', 'Email' , ...)
8
+ * - Number of items returned by the search
9
+ *
10
+ ```
11
+ <ode-search-toolbar
12
+ [label]="'user.searchType.label'"
13
+ [searchTypes]="searchTypes"
14
+ [nbItem]="nbUser || 0"
15
+ [nbItemLabel]="'list.results.users'"
16
+ (selectSearchType)="handleSelectSearchType($event)"
17
+ >
18
+ </ode-search-toolbar>
19
+ ```
20
+ */
21
+ export declare class SearchToolbarComponent extends OdeComponent {
22
+ label: string;
23
+ searchTypes: Array<{
24
+ label: string;
25
+ value: string;
26
+ }>;
27
+ nbItem: number;
28
+ nbItemLabel: string;
29
+ selectSearchType: EventEmitter<string>;
30
+ selectedSearchTypeValue: string;
31
+ constructor(injector: Injector);
32
+ ngOnInit(): void;
33
+ handleSearchTypeClick(searchTypeValue: string): void;
34
+ }
package/ngx-ode-ui.d.ts CHANGED
@@ -3,3 +3,4 @@
3
3
  */
4
4
  export * from './public-api';
5
5
  export { DropdownComponent as ɵa } from './lib/components/dropdown/dropdown.component';
6
+ export { SearchToolbarComponent as ɵb } from './lib/components/search-toolbar/search-toolbar.component';