@indigina/ui-kit 1.1.183 → 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.
@@ -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>;
@@ -4,5 +4,6 @@ export declare enum KitPillType {
4
4
  }
5
5
  export declare enum KitPillTheme {
6
6
  DEFAULT = "default",
7
- BLUE = "blue"
7
+ BLUE = "blue",
8
+ MAIN = "main"
8
9
  }
@@ -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, ["*"], 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
@@ -7,7 +7,7 @@
7
7
  "components",
8
8
  "shared"
9
9
  ],
10
- "version": "1.1.183",
10
+ "version": "1.1.184",
11
11
  "peerDependencies": {
12
12
  "@angular/common": ">=19.1.4 <20.0.0",
13
13
  "@angular/core": ">=19.1.4 <20.0.0"
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';