@indigina/ui-kit 1.1.182 → 1.1.184
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 +247 -103
- package/fesm2022/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-dropdown/kit-dropdown.module.d.ts +2 -1
- package/lib/components/kit-global-search/kit-global-search.component.d.ts +38 -0
- package/lib/components/kit-global-search/kit-global-search.model.d.ts +27 -0
- package/lib/components/kit-global-search/kit-global-search.util.d.ts +7 -0
- package/lib/components/kit-pill/kit-pill.const.d.ts +2 -1
- package/lib/components/kit-route-path/kit-route-path.component.d.ts +12 -0
- package/lib/widgets/kit-top-bar/kit-top-bar.component.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
|
@@ -7,8 +7,9 @@ import * as i5 from "@angular/forms";
|
|
|
7
7
|
import * as i6 from "../kit-svg-icon/kit-svg-icon.module";
|
|
8
8
|
import * as i7 from "../kit-input-label/kit-input-label.module";
|
|
9
9
|
import * as i8 from "./kit-dropdown-item-template.directive";
|
|
10
|
+
import * as i9 from "../kit-truncate-text/kit-truncate-text.component";
|
|
10
11
|
export declare class KitDropdownModule {
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitDropdownModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KitDropdownModule, [typeof i1.KitDropdownComponent], [typeof i2.DropDownListModule, typeof i3.CommonModule, typeof i4.KitInputMessageModule, typeof i5.ReactiveFormsModule, typeof i5.FormsModule, typeof i6.KitSvgIconModule, typeof i7.KitInputLabelModule, typeof i8.KitDropdownItemTemplateDirective], [typeof i1.KitDropdownComponent, typeof i8.KitDropdownItemTemplateDirective]>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KitDropdownModule, [typeof i1.KitDropdownComponent], [typeof i2.DropDownListModule, typeof i3.CommonModule, typeof i4.KitInputMessageModule, typeof i5.ReactiveFormsModule, typeof i5.FormsModule, typeof i6.KitSvgIconModule, typeof i7.KitInputLabelModule, typeof i8.KitDropdownItemTemplateDirective, typeof i9.KitTruncateTextComponent], [typeof i1.KitDropdownComponent, typeof i8.KitDropdownItemTemplateDirective]>;
|
|
13
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<KitDropdownModule>;
|
|
14
15
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ElementRef, InputSignal, OnInit, Signal, ViewContainerRef, WritableSignal } from '@angular/core';
|
|
2
|
+
import { KitSvgIcon, KitSvgIconType } from '../kit-svg-icon/kit-svg-icon.const';
|
|
3
|
+
import { KitTextboxSize } from '../kit-textbox/kit-textbox.const';
|
|
4
|
+
import { TextBoxComponent } from '@progress/kendo-angular-inputs';
|
|
5
|
+
import { KitPopupComponent } from '../kit-popup/kit-popup.component';
|
|
6
|
+
import { GlobalSearchResult } from './kit-global-search.model';
|
|
7
|
+
import { KitPillTheme } from '../kit-pill/kit-pill.const';
|
|
8
|
+
import { Observable } from 'rxjs';
|
|
9
|
+
import { KitButtonKind, KitButtonType } from '../kit-button/kit-button.const';
|
|
10
|
+
import { Router } from '@angular/router';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare class KitGlobalSearchComponent implements OnInit {
|
|
13
|
+
private readonly router;
|
|
14
|
+
readonly searchFn: InputSignal<(searchText: string) => Observable<(GlobalSearchResult | null)[]>>;
|
|
15
|
+
readonly displayedLineItemsNumber: InputSignal<number>;
|
|
16
|
+
readonly textbox: Signal<TextBoxComponent>;
|
|
17
|
+
readonly anchor: Signal<ElementRef>;
|
|
18
|
+
readonly popup: Signal<KitPopupComponent | undefined>;
|
|
19
|
+
readonly container: Signal<ViewContainerRef>;
|
|
20
|
+
readonly kitSvgIcon: typeof KitSvgIcon;
|
|
21
|
+
readonly kitTextboxSize: typeof KitTextboxSize;
|
|
22
|
+
readonly kitSvgIconType: typeof KitSvgIconType;
|
|
23
|
+
readonly kitPillTheme: typeof KitPillTheme;
|
|
24
|
+
readonly kitButtonType: typeof KitButtonType;
|
|
25
|
+
readonly kitButtonKind: typeof KitButtonKind;
|
|
26
|
+
readonly dateFormat: string;
|
|
27
|
+
readonly popupClass: string;
|
|
28
|
+
readonly searchResults: WritableSignal<(GlobalSearchResult | null)[]>;
|
|
29
|
+
value: string;
|
|
30
|
+
documentClick(event: Event): void;
|
|
31
|
+
constructor(router: Router);
|
|
32
|
+
ngOnInit(): void;
|
|
33
|
+
clearSearch(): void;
|
|
34
|
+
openPopup(): void;
|
|
35
|
+
navigate(link: string[] | undefined): void;
|
|
36
|
+
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>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface GlobalSearchResult {
|
|
2
|
+
name: string;
|
|
3
|
+
items: GlobalSearchLineItem[];
|
|
4
|
+
total: number;
|
|
5
|
+
categoryLink: string[];
|
|
6
|
+
}
|
|
7
|
+
export interface GlobalSearchLineItem {
|
|
8
|
+
title: string | null;
|
|
9
|
+
subtitle: string | null;
|
|
10
|
+
link?: string[];
|
|
11
|
+
dates: {
|
|
12
|
+
firstDate: {
|
|
13
|
+
label: string | null;
|
|
14
|
+
value: string | null;
|
|
15
|
+
};
|
|
16
|
+
secondDate: {
|
|
17
|
+
label: string | null;
|
|
18
|
+
value: string | null;
|
|
19
|
+
};
|
|
20
|
+
} | null;
|
|
21
|
+
routePath: {
|
|
22
|
+
from: string | null;
|
|
23
|
+
to: string | null;
|
|
24
|
+
type: 'Air' | 'Road' | 'Sea' | 'Rail' | null;
|
|
25
|
+
containerMode?: string | null;
|
|
26
|
+
} | null;
|
|
27
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { GlobalSearchLineItem, GlobalSearchResult } from './kit-global-search.model';
|
|
3
|
+
import { Store } from '@ngxs/store';
|
|
4
|
+
export declare const mapGlobalSearchResult: <T>(store: Store, requiredPermission: string, dataFetcher: () => Observable<{
|
|
5
|
+
total: number;
|
|
6
|
+
data: T[];
|
|
7
|
+
}>, categoryName: string, categoryLink: string[], itemMapper: (item: T) => GlobalSearchLineItem) => Observable<GlobalSearchResult | null>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InputSignal } from '@angular/core';
|
|
2
|
+
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class KitRoutePathComponent {
|
|
5
|
+
readonly originPort: InputSignal<string>;
|
|
6
|
+
readonly destinationPort: InputSignal<string>;
|
|
7
|
+
readonly type: InputSignal<string>;
|
|
8
|
+
readonly containerMode: InputSignal<string>;
|
|
9
|
+
readonly kitSvgIcon: typeof KitSvgIcon;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitRoutePathComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitRoutePathComponent, "kit-route-path", never, { "originPort": { "alias": "originPort"; "required": false; "isSignal": true; }; "destinationPort": { "alias": "destinationPort"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "containerMode": { "alias": "containerMode"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -13,5 +13,5 @@ export declare class KitTopBarComponent {
|
|
|
13
13
|
constructor(kitNavigationMenuService: KitNavigationMenuService);
|
|
14
14
|
toggleSidebar(collapsed: boolean): void;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitTopBarComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitTopBarComponent, "kit-top-bar", never, { "userMenuItems": { "alias": "userMenuItems"; "required": false; "isSignal": true; }; }, {}, never, ["
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitTopBarComponent, "kit-top-bar", never, { "userMenuItems": { "alias": "userMenuItems"; "required": false; "isSignal": true; }; }, {}, never, ["[globalSearch]", "[topBarActions]"], true, never>;
|
|
17
17
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -159,6 +159,9 @@ export { KitDataFieldComponent } from './lib/components/kit-data-field/kit-data-
|
|
|
159
159
|
export { KitDataFieldState } from './lib/components/kit-data-field/kit-data-field.const';
|
|
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
|
+
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';
|
|
164
|
+
export { mapGlobalSearchResult } from './lib/components/kit-global-search/kit-global-search.util';
|
|
162
165
|
export { KitEmptySectionComponent } from './lib/components/kit-empty-section/kit-empty-section.component';
|
|
163
166
|
export { KitSortableComponent } from './lib/components/kit-sortable/kit-sortable.component';
|
|
164
167
|
export { kitDataStateToODataString } from './lib/utils/kit-data-query/kit-data-query.util';
|