@indigina/ui-kit 1.1.189 → 1.1.191
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 +92 -65
- package/fesm2022/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-global-search/kit-global-search.component.d.ts +5 -2
- package/lib/components/kit-global-search/kit-global-search.model.d.ts +2 -2
- package/lib/components/kit-tabs/kit-tabs.component.d.ts +5 -2
- package/package.json +1 -1
|
@@ -8,9 +8,11 @@ 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';
|
|
10
10
|
import { Router } from '@angular/router';
|
|
11
|
+
import { Store } from '@ngxs/store';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
export declare class KitGlobalSearchComponent implements OnInit {
|
|
13
14
|
private readonly router;
|
|
15
|
+
private readonly store;
|
|
14
16
|
readonly searchFn: InputSignal<(searchText: string) => Observable<(GlobalSearchResult | null)[]>>;
|
|
15
17
|
readonly displayedLineItemsNumber: InputSignal<number>;
|
|
16
18
|
readonly prompts: InputSignal<GlobalSearchPrompt[]>;
|
|
@@ -27,10 +29,11 @@ export declare class KitGlobalSearchComponent implements OnInit {
|
|
|
27
29
|
readonly dateFormat: string;
|
|
28
30
|
readonly popupClass: string;
|
|
29
31
|
readonly searchResults: WritableSignal<(GlobalSearchResult | null)[]>;
|
|
30
|
-
|
|
32
|
+
searchValue: string;
|
|
31
33
|
readonly showPropmts: WritableSignal<boolean>;
|
|
34
|
+
readonly userPermissions$: Observable<string[]>;
|
|
32
35
|
documentClick(event: Event): void;
|
|
33
|
-
constructor(router: Router);
|
|
36
|
+
constructor(router: Router, store: Store);
|
|
34
37
|
ngOnInit(): void;
|
|
35
38
|
get isPopupOpen(): boolean;
|
|
36
39
|
clearSearch(): void;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
1
|
export interface GlobalSearchResult {
|
|
3
2
|
name: string;
|
|
4
3
|
items: GlobalSearchLineItem[];
|
|
@@ -28,5 +27,6 @@ export interface GlobalSearchLineItem {
|
|
|
28
27
|
}
|
|
29
28
|
export interface GlobalSearchPrompt {
|
|
30
29
|
label: string;
|
|
31
|
-
|
|
30
|
+
link: string[];
|
|
31
|
+
permission: string;
|
|
32
32
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { EventEmitter, Signal } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit, Signal } from '@angular/core';
|
|
2
2
|
import { KitTabComponent } from './kit-tab/kit-tab.component';
|
|
3
3
|
import { KitTabsSize, KitTabsType } from './kit-tabs.const';
|
|
4
4
|
import { KitTabsSelectEvent } from './kit-tabs.model';
|
|
5
5
|
import { SelectEvent } from '@progress/kendo-angular-layout';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class KitTabsComponent {
|
|
7
|
+
export declare class KitTabsComponent implements OnInit, OnDestroy {
|
|
8
8
|
/**
|
|
9
9
|
* Defines the type of tabs
|
|
10
10
|
*/
|
|
@@ -22,6 +22,9 @@ export declare class KitTabsComponent {
|
|
|
22
22
|
* Defines the reference to the tabs content
|
|
23
23
|
*/
|
|
24
24
|
readonly tabs: Signal<readonly KitTabComponent[]>;
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
ngOnDestroy(): void;
|
|
27
|
+
interceptInputKeys: (event: KeyboardEvent) => void;
|
|
25
28
|
onTabSelect(event: SelectEvent): void;
|
|
26
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitTabsComponent, never>;
|
|
27
30
|
static ɵcmp: i0.ɵɵComponentDeclaration<KitTabsComponent, "kit-tabs", never, { "type": { "alias": "type"; "required": false; }; "size": { "alias": "size"; "required": false; }; "animate": { "alias": "animate"; "required": false; }; }, { "tabSelected": "tabSelected"; }, ["tabs"], never, false, never>;
|