@indigina/ui-kit 1.1.184 → 1.1.185
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.
- package/fesm2022/indigina-ui-kit.mjs +15 -3
- package/fesm2022/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-global-search/kit-global-search.component.d.ts +6 -2
- package/lib/components/kit-global-search/kit-global-search.model.d.ts +5 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
|
@@ -3,7 +3,7 @@ import { KitSvgIcon, KitSvgIconType } from '../kit-svg-icon/kit-svg-icon.const';
|
|
|
3
3
|
import { KitTextboxSize } from '../kit-textbox/kit-textbox.const';
|
|
4
4
|
import { TextBoxComponent } from '@progress/kendo-angular-inputs';
|
|
5
5
|
import { KitPopupComponent } from '../kit-popup/kit-popup.component';
|
|
6
|
-
import { GlobalSearchResult } from './kit-global-search.model';
|
|
6
|
+
import { GlobalSearchPrompt, GlobalSearchResult } from './kit-global-search.model';
|
|
7
7
|
import { KitPillTheme } from '../kit-pill/kit-pill.const';
|
|
8
8
|
import { Observable } from 'rxjs';
|
|
9
9
|
import { KitButtonKind, KitButtonType } from '../kit-button/kit-button.const';
|
|
@@ -13,6 +13,7 @@ export declare class KitGlobalSearchComponent implements OnInit {
|
|
|
13
13
|
private readonly router;
|
|
14
14
|
readonly searchFn: InputSignal<(searchText: string) => Observable<(GlobalSearchResult | null)[]>>;
|
|
15
15
|
readonly displayedLineItemsNumber: InputSignal<number>;
|
|
16
|
+
readonly prompts: InputSignal<GlobalSearchPrompt[]>;
|
|
16
17
|
readonly textbox: Signal<TextBoxComponent>;
|
|
17
18
|
readonly anchor: Signal<ElementRef>;
|
|
18
19
|
readonly popup: Signal<KitPopupComponent | undefined>;
|
|
@@ -27,12 +28,15 @@ export declare class KitGlobalSearchComponent implements OnInit {
|
|
|
27
28
|
readonly popupClass: string;
|
|
28
29
|
readonly searchResults: WritableSignal<(GlobalSearchResult | null)[]>;
|
|
29
30
|
value: string;
|
|
31
|
+
readonly showPropmts: WritableSignal<boolean>;
|
|
30
32
|
documentClick(event: Event): void;
|
|
31
33
|
constructor(router: Router);
|
|
32
34
|
ngOnInit(): void;
|
|
35
|
+
get isPopupOpen(): boolean;
|
|
33
36
|
clearSearch(): void;
|
|
34
37
|
openPopup(): void;
|
|
35
38
|
navigate(link: string[] | undefined): void;
|
|
39
|
+
onSelectPrompt(prompt: GlobalSearchPrompt): void;
|
|
36
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitGlobalSearchComponent, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitGlobalSearchComponent, "kit-global-search", never, { "searchFn": { "alias": "searchFn"; "required": true; "isSignal": true; }; "displayedLineItemsNumber": { "alias": "displayedLineItemsNumber"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitGlobalSearchComponent, "kit-global-search", never, { "searchFn": { "alias": "searchFn"; "required": true; "isSignal": true; }; "displayedLineItemsNumber": { "alias": "displayedLineItemsNumber"; "required": false; "isSignal": true; }; "prompts": { "alias": "prompts"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
38
42
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
1
2
|
export interface GlobalSearchResult {
|
|
2
3
|
name: string;
|
|
3
4
|
items: GlobalSearchLineItem[];
|
|
@@ -25,3 +26,7 @@ export interface GlobalSearchLineItem {
|
|
|
25
26
|
containerMode?: string | null;
|
|
26
27
|
} | null;
|
|
27
28
|
}
|
|
29
|
+
export interface GlobalSearchPrompt {
|
|
30
|
+
label: string;
|
|
31
|
+
searchFn(): Observable<(GlobalSearchResult | null)[]>;
|
|
32
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -160,7 +160,7 @@ export { KitDataFieldState } from './lib/components/kit-data-field/kit-data-fiel
|
|
|
160
160
|
export { KitSearchBarModule } from './lib/components/kit-search-bar/kit-search-bar.module';
|
|
161
161
|
export { KitSearchBarComponent } from './lib/components/kit-search-bar/kit-search-bar.component';
|
|
162
162
|
export { KitGlobalSearchComponent } from './lib/components/kit-global-search/kit-global-search.component';
|
|
163
|
-
export { GlobalSearchResult, GlobalSearchLineItem } from './lib/components/kit-global-search/kit-global-search.model';
|
|
163
|
+
export { GlobalSearchResult, GlobalSearchLineItem, GlobalSearchPrompt } from './lib/components/kit-global-search/kit-global-search.model';
|
|
164
164
|
export { mapGlobalSearchResult } from './lib/components/kit-global-search/kit-global-search.util';
|
|
165
165
|
export { KitEmptySectionComponent } from './lib/components/kit-empty-section/kit-empty-section.component';
|
|
166
166
|
export { KitSortableComponent } from './lib/components/kit-sortable/kit-sortable.component';
|