@indigina/ui-kit 1.1.200 → 1.1.202
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 +60 -6
- package/fesm2022/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-global-search/kit-global-search.model.d.ts +7 -0
- package/lib/components/kit-global-search/kit-global-search.util.d.ts +2 -1
- package/lib/pipes/highlight.pipe.d.ts +7 -0
- package/lib/widgets/kit-grid-management/kit-grid-views/kit-grid-views.component.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
|
@@ -25,9 +25,16 @@ export interface GlobalSearchLineItem {
|
|
|
25
25
|
containerMode?: string | null;
|
|
26
26
|
} | null;
|
|
27
27
|
status?: string;
|
|
28
|
+
additionalContent: MatchResult[];
|
|
28
29
|
}
|
|
29
30
|
export interface GlobalSearchPrompt {
|
|
30
31
|
label: string;
|
|
31
32
|
link: string[];
|
|
32
33
|
permission: string;
|
|
33
34
|
}
|
|
35
|
+
export interface MatchResult {
|
|
36
|
+
path: string;
|
|
37
|
+
key: string;
|
|
38
|
+
value: unknown;
|
|
39
|
+
translateKey: string;
|
|
40
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { GlobalSearchLineItem, GlobalSearchResult } from './kit-global-search.model';
|
|
2
|
+
import { GlobalSearchLineItem, GlobalSearchResult, MatchResult } from './kit-global-search.model';
|
|
3
3
|
import { Store } from '@ngxs/store';
|
|
4
4
|
export declare const mapGlobalSearchResult: <T>(store: Store, requiredPermission: string, dataFetcher: () => Observable<{
|
|
5
5
|
total: number;
|
|
6
6
|
data: T[];
|
|
7
7
|
}>, categoryName: string, categoryLink: string[], itemMapper: (item: T) => GlobalSearchLineItem) => Observable<GlobalSearchResult | null>;
|
|
8
|
+
export declare const findMatches: <T extends object>(obj: T, translatePrefix: string, excludedKeys?: string[], search?: string) => MatchResult[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class HighlightPipe implements PipeTransform {
|
|
4
|
+
transform(value: unknown, search: string): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HighlightPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<HighlightPipe, "highlight", true>;
|
|
7
|
+
}
|
|
@@ -40,6 +40,7 @@ export declare class KitGridViewsComponent implements OnInit, OnDestroy {
|
|
|
40
40
|
readonly anchor: Signal<ElementRef | undefined>;
|
|
41
41
|
readonly collapsedList: Signal<KitCollapsedListComponent<KitGridViewListItem> | undefined>;
|
|
42
42
|
readonly createNewViewPopup: Signal<KitPopupComponent | undefined>;
|
|
43
|
+
readonly isViewSaving: WritableSignal<boolean>;
|
|
43
44
|
readonly createNewViewName: WritableSignal<string>;
|
|
44
45
|
readonly viewsState$: Observable<ApiResponseState<KitViewsState>>;
|
|
45
46
|
readonly views$: Observable<KitGridView[]>;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -161,7 +161,7 @@ export { KitSearchBarModule } from './lib/components/kit-search-bar/kit-search-b
|
|
|
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
163
|
export { GlobalSearchResult, GlobalSearchLineItem, GlobalSearchPrompt } from './lib/components/kit-global-search/kit-global-search.model';
|
|
164
|
-
export { mapGlobalSearchResult } from './lib/components/kit-global-search/kit-global-search.util';
|
|
164
|
+
export { mapGlobalSearchResult, findMatches } 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';
|
|
167
167
|
export { kitDataStateToODataString } from './lib/utils/kit-data-query/kit-data-query.util';
|