@indigina/ui-kit 1.1.151 → 1.1.153
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 +217 -125
- package/fesm2022/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-search-bar/kit-search-bar.component.d.ts +9 -7
- package/lib/widgets/kit-grid-management/kit-grid-filters/kit-grid-filters.component.d.ts +3 -1
- package/lib/widgets/kit-grid-management/kit-grid-search/kit-grid-search.component.d.ts +10 -3
- package/lib/widgets/kit-grid-management/kit-grid-url-state.service.d.ts +12 -0
- package/lib/widgets/kit-grid-management/kit-grid-views/kit-grid-views.component.d.ts +5 -3
- package/lib/widgets/kit-grid-management/kit-grid-views/kit-grid-views.util.d.ts +0 -2
- package/lib/widgets/kit-grid-management/store/kit-grid.action.d.ts +6 -0
- package/lib/widgets/kit-grid-management/store/kit-grid.model.d.ts +1 -0
- package/lib/widgets/kit-grid-management/store/kit-grid.state.d.ts +3 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -1
- package/styles/kendo.scss +2 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, ElementRef } from '@angular/core';
|
|
1
|
+
import { EventEmitter, ElementRef, InputSignal, WritableSignal } from '@angular/core';
|
|
2
2
|
import { KitButtonKind, KitButtonType, KitButtonIconPosition } from '../kit-button/kit-button.const';
|
|
3
3
|
import { KitTextboxSize } from '../kit-textbox/kit-textbox.const';
|
|
4
4
|
import { KitSvgIcon, KitSvgIconType } from '../kit-svg-icon/kit-svg-icon.const';
|
|
@@ -7,6 +7,11 @@ export declare class KitSearchBarComponent {
|
|
|
7
7
|
placeholder: string;
|
|
8
8
|
searchButtonLabel: string;
|
|
9
9
|
closeButtonLabel: string;
|
|
10
|
+
readonly searchString: InputSignal<string | undefined>;
|
|
11
|
+
changed: EventEmitter<string>;
|
|
12
|
+
searchButtonClick: EventEmitter<void>;
|
|
13
|
+
closeButtonClick: EventEmitter<void>;
|
|
14
|
+
searchTextboxElementRef: ElementRef;
|
|
10
15
|
icon: KitSvgIcon;
|
|
11
16
|
clearIcon: KitSvgIcon;
|
|
12
17
|
buttonType: KitButtonType;
|
|
@@ -16,15 +21,12 @@ export declare class KitSearchBarComponent {
|
|
|
16
21
|
buttonIconType: KitSvgIconType;
|
|
17
22
|
buttonIconPosition: KitButtonIconPosition;
|
|
18
23
|
readonly kitTextboxSize: typeof KitTextboxSize;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
closeButtonClick: EventEmitter<void>;
|
|
22
|
-
searchTextboxElementRef: ElementRef;
|
|
23
|
-
isSearchVisible: boolean;
|
|
24
|
+
searchVisible: WritableSignal<boolean>;
|
|
25
|
+
constructor();
|
|
24
26
|
onSearchChange(value: string): void;
|
|
25
27
|
onSearchButtonClick(): void;
|
|
26
28
|
clearSearch(): void;
|
|
27
29
|
onCloseButtonClick(): void;
|
|
28
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitSearchBarComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitSearchBarComponent, "kit-search-bar", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "searchButtonLabel": { "alias": "searchButtonLabel"; "required": false; }; "closeButtonLabel": { "alias": "closeButtonLabel"; "required": false; }; }, { "changed": "changed"; "searchButtonClick": "searchButtonClick"; "closeButtonClick": "closeButtonClick"; }, never, never, false, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitSearchBarComponent, "kit-search-bar", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "searchButtonLabel": { "alias": "searchButtonLabel"; "required": false; }; "closeButtonLabel": { "alias": "closeButtonLabel"; "required": false; }; "searchString": { "alias": "searchString"; "required": false; "isSignal": true; }; }, { "changed": "changed"; "searchButtonClick": "searchButtonClick"; "closeButtonClick": "closeButtonClick"; }, never, never, false, never>;
|
|
30
32
|
}
|
|
@@ -3,9 +3,11 @@ import { Store } from '@ngxs/store';
|
|
|
3
3
|
import { KitGridColumnConfig } from '../store/kit-grid.model';
|
|
4
4
|
import { KitFilterListConfig, KitFilterItem, KitFilterType, KitFilterValue } from './kit-grid-filters.model';
|
|
5
5
|
import { KitFilterSelectorItem } from './kit-filter-selector/kit-filter-selector.model';
|
|
6
|
+
import { KitGridUrlStateService } from '../kit-grid-url-state.service';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class KitGridFiltersComponent {
|
|
8
9
|
private readonly store;
|
|
10
|
+
private readonly kitGridUrlStateService;
|
|
9
11
|
readonly excludedColumns: InputSignal<string[]>;
|
|
10
12
|
readonly columns: InputSignal<KitGridColumnConfig[]>;
|
|
11
13
|
readonly filterListConfig: InputSignal<KitFilterListConfig>;
|
|
@@ -13,7 +15,7 @@ export declare class KitGridFiltersComponent {
|
|
|
13
15
|
readonly kitFilterType: typeof KitFilterType;
|
|
14
16
|
readonly filters: Signal<KitFilterItem[]>;
|
|
15
17
|
readonly filterSelectorItems: Signal<KitFilterSelectorItem[]>;
|
|
16
|
-
constructor(store: Store);
|
|
18
|
+
constructor(store: Store, kitGridUrlStateService: KitGridUrlStateService);
|
|
17
19
|
addFilter(item: KitFilterSelectorItem): void;
|
|
18
20
|
removeFilter(field: string): void;
|
|
19
21
|
applyFilter(filter: KitFilterItem, values: KitFilterValue): void;
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import { AfterViewInit, OutputEmitterRef, Signal } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
2
3
|
import { KitSearchBarComponent } from '../../../components/kit-search-bar/kit-search-bar.component';
|
|
4
|
+
import { Store } from '@ngxs/store';
|
|
5
|
+
import { KitGridDataState } from '../store/kit-grid.model';
|
|
6
|
+
import { KitGridUrlStateService } from '../kit-grid-url-state.service';
|
|
3
7
|
import * as i0 from "@angular/core";
|
|
4
8
|
export declare class KitGridSearchComponent implements AfterViewInit {
|
|
5
|
-
readonly
|
|
6
|
-
readonly
|
|
9
|
+
private readonly store;
|
|
10
|
+
private readonly kitGridUrlStateService;
|
|
11
|
+
readonly onSearchChanged: OutputEmitterRef<void>;
|
|
7
12
|
readonly kitSearchBarComponent: Signal<KitSearchBarComponent>;
|
|
13
|
+
readonly gridState$: Observable<KitGridDataState>;
|
|
14
|
+
constructor(store: Store, kitGridUrlStateService: KitGridUrlStateService);
|
|
8
15
|
ngAfterViewInit(): void;
|
|
9
16
|
closeButtonClick(): void;
|
|
10
17
|
closeSearch(): void;
|
|
11
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitGridSearchComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitGridSearchComponent, "kit-grid-search", never, {}, { "onSearchChanged": "onSearchChanged";
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitGridSearchComponent, "kit-grid-search", never, {}, { "onSearchChanged": "onSearchChanged"; }, never, never, true, never>;
|
|
13
20
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
2
|
+
import { KitGridDataState } from '../../widgets/kit-grid-management/store/kit-grid.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class KitGridUrlStateService {
|
|
5
|
+
private readonly activatedRoute;
|
|
6
|
+
private readonly router;
|
|
7
|
+
constructor(activatedRoute: ActivatedRoute, router: Router);
|
|
8
|
+
getGridStateFromUrl(): KitGridDataState;
|
|
9
|
+
setGridStateToUrl(state: KitGridDataState): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitGridUrlStateService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<KitGridUrlStateService>;
|
|
12
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DestroyRef, EventEmitter, InputSignal, OnDestroy, OnInit, Signal, ViewContainerRef, WritableSignal } from '@angular/core';
|
|
2
2
|
import { Store } from '@ngxs/store';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { TitleCasePipe
|
|
4
|
+
import { TitleCasePipe } from '@angular/common';
|
|
5
5
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
6
6
|
import { KitSortDescriptor } from '../../../utils/kit-data-query/kit-data-query.model';
|
|
7
7
|
import { KitAutocompleteItem } from '../../../components/kit-autocomplete/kit-autocomplete.component';
|
|
@@ -16,6 +16,7 @@ import { TranslateService } from '@ngx-translate/core';
|
|
|
16
16
|
import { KitPopupComponent } from '../../../components/kit-popup/kit-popup.component';
|
|
17
17
|
import { KitTextboxState } from '../../../components/kit-textbox/kit-textbox.const';
|
|
18
18
|
import { KitGridViewListItem } from './kit-grid-views.model';
|
|
19
|
+
import { KitGridUrlStateService } from '../kit-grid-url-state.service';
|
|
19
20
|
import * as i0 from "@angular/core";
|
|
20
21
|
export declare class KitGridViewsComponent implements OnInit, OnDestroy {
|
|
21
22
|
private readonly store;
|
|
@@ -26,7 +27,7 @@ export declare class KitGridViewsComponent implements OnInit, OnDestroy {
|
|
|
26
27
|
private readonly kitDialogService;
|
|
27
28
|
private readonly translateService;
|
|
28
29
|
private readonly viewContainerRef;
|
|
29
|
-
private readonly
|
|
30
|
+
private readonly kitGridUrlStateService;
|
|
30
31
|
readonly viewGroup: InputSignal<string>;
|
|
31
32
|
readonly viewConfigGroup: InputSignal<string>;
|
|
32
33
|
readonly defaultColumns: InputSignal<KitGridColumnConfig[]>;
|
|
@@ -52,7 +53,7 @@ export declare class KitGridViewsComponent implements OnInit, OnDestroy {
|
|
|
52
53
|
readonly kitTextboxState: typeof KitTextboxState;
|
|
53
54
|
readonly selectedView: Signal<KitGridView | null>;
|
|
54
55
|
readonly collapsedListDropdownText: WritableSignal<string>;
|
|
55
|
-
constructor(store: Store, activatedRoute: ActivatedRoute, router: Router, destroyRef: DestroyRef, titleCasePipe: TitleCasePipe, kitDialogService: KitDialogService, translateService: TranslateService, viewContainerRef: ViewContainerRef,
|
|
56
|
+
constructor(store: Store, activatedRoute: ActivatedRoute, router: Router, destroyRef: DestroyRef, titleCasePipe: TitleCasePipe, kitDialogService: KitDialogService, translateService: TranslateService, viewContainerRef: ViewContainerRef, kitGridUrlStateService: KitGridUrlStateService);
|
|
56
57
|
ngOnInit(): void;
|
|
57
58
|
ngOnDestroy(): void;
|
|
58
59
|
get isViewNameValid(): boolean;
|
|
@@ -66,6 +67,7 @@ export declare class KitGridViewsComponent implements OnInit, OnDestroy {
|
|
|
66
67
|
private handleViewChange;
|
|
67
68
|
private updateGridState;
|
|
68
69
|
private getCollapsedListItem;
|
|
70
|
+
private navigateToView;
|
|
69
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitGridViewsComponent, never>;
|
|
70
72
|
static ɵcmp: i0.ɵɵComponentDeclaration<KitGridViewsComponent, "kit-grid-views", never, { "viewGroup": { "alias": "viewGroup"; "required": true; "isSignal": true; }; "viewConfigGroup": { "alias": "viewConfigGroup"; "required": true; "isSignal": true; }; "defaultColumns": { "alias": "defaultColumns"; "required": true; "isSignal": true; }; "defaultViewName": { "alias": "defaultViewName"; "required": true; "isSignal": true; }; "defaultSorting": { "alias": "defaultSorting"; "required": true; "isSignal": true; }; "systemViews": { "alias": "systemViews"; "required": true; "isSignal": true; }; }, { "viewChanged": "viewChanged"; }, never, never, true, never>;
|
|
71
73
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
2
1
|
import { KitGridView, KitGridViewColumn } from './store/kit-grid-views.model';
|
|
3
2
|
import { KitGridColumnConfig } from '../store/kit-grid.model';
|
|
4
3
|
import { KitGridViewValidation } from './kit-grid-views.model';
|
|
@@ -7,7 +6,6 @@ export declare const findGridViewByName: (views: KitGridView[], name: string) =>
|
|
|
7
6
|
export declare const buildGridViewColumns: (columns: KitGridColumnConfig[]) => KitGridViewColumn[];
|
|
8
7
|
export declare const hasOverriddenSystemView: (name: string, views: KitGridView[]) => boolean;
|
|
9
8
|
export declare const buildGridColumns: (columns: KitGridColumnConfig[], viewColumns: KitGridViewColumn[]) => KitGridColumnConfig[];
|
|
10
|
-
export declare const navigateToView: (name: string, router: Router, activatedRoute: ActivatedRoute) => void;
|
|
11
9
|
export declare const kitEncodeViewNameToUrl: (name: string) => string;
|
|
12
10
|
export declare const decodeViewNameFromUrl: (name: string) => string;
|
|
13
11
|
export declare const validateViewName: (views: KitGridView[], viewName: string) => KitGridViewValidation;
|
|
@@ -5,6 +5,12 @@ import { KitFilterItem } from '../kit-grid-filters/kit-grid-filters.model';
|
|
|
5
5
|
export declare class SetGridSkip extends AbstractPayloadAction<number> {
|
|
6
6
|
static readonly type: string;
|
|
7
7
|
}
|
|
8
|
+
export declare class SetGridSearch extends AbstractPayloadAction<string | undefined> {
|
|
9
|
+
static readonly type: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class RemoveGridSearch {
|
|
12
|
+
static readonly type: string;
|
|
13
|
+
}
|
|
8
14
|
export declare class SetGridSort extends AbstractPayloadAction<KitSortDescriptor[]> {
|
|
9
15
|
static readonly type: string;
|
|
10
16
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { StateContext, StateToken } from '@ngxs/store';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { AddGridFilter, RemoveGridFilter, SetGridColumns, SetGridFilters, SetGridSkip, SetGridSort, UpdateGridFilter } from '../store/kit-grid.action';
|
|
3
|
+
import { AddGridFilter, RemoveGridFilter, SetGridColumns, SetGridFilters, SetGridSearch, SetGridSkip, SetGridSort, UpdateGridFilter } from '../store/kit-grid.action';
|
|
4
4
|
import { KitGridDataState } from '../store/kit-grid.model';
|
|
5
5
|
import { KitFilterItem } from '../kit-grid-filters/kit-grid-filters.model';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare const KIT_GRID_STATE_TOKEN: StateToken<KitGridDataState>;
|
|
8
8
|
export declare class KitGridState {
|
|
9
9
|
setGridSkip(ctx: StateContext<KitGridDataState>, action: SetGridSkip): void;
|
|
10
|
+
setGridSearch(ctx: StateContext<KitGridDataState>, action: SetGridSearch): void;
|
|
11
|
+
removeGridSearch(ctx: StateContext<KitGridDataState>): void;
|
|
10
12
|
setGridSort(ctx: StateContext<KitGridDataState>, action: SetGridSort): void;
|
|
11
13
|
setGridColumns(ctx: StateContext<KitGridDataState>, action: SetGridColumns): void;
|
|
12
14
|
addGridFilter(ctx: StateContext<KitGridDataState>, action: AddGridFilter): Observable<KitFilterItem[]>;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -171,7 +171,8 @@ export { KitGridState, KIT_GRID_STATE_TOKEN } from './lib/widgets/kit-grid-manag
|
|
|
171
171
|
export { kitBuildGridColumn, kitBuildGridDataResults, kitBuildSortString, } from './lib/widgets/kit-grid-management/kit-grid-management.util';
|
|
172
172
|
export { KitGridColumn, KitGridColumns, KitGridDataResult } from './lib/widgets/kit-grid-management/kit-grid-management.model';
|
|
173
173
|
export { KitGridDataState, KitGridColumnConfig } from './lib/widgets/kit-grid-management/store/kit-grid.model';
|
|
174
|
-
export { AddGridFilter, RemoveGridFilter, SetGridSkip, SetGridSort, SetGridColumns, UpdateGridFilter, } from './lib/widgets/kit-grid-management/store/kit-grid.action';
|
|
174
|
+
export { AddGridFilter, RemoveGridFilter, SetGridSkip, SetGridSort, SetGridFilters, SetGridColumns, SetGridSearch, UpdateGridFilter, } from './lib/widgets/kit-grid-management/store/kit-grid.action';
|
|
175
|
+
export { KitGridUrlStateService } from './lib/widgets/kit-grid-management/kit-grid-url-state.service';
|
|
175
176
|
export { KitGridViewsComponent } from './lib/widgets/kit-grid-management/kit-grid-views/kit-grid-views.component';
|
|
176
177
|
export { KitGridViewsState } from './lib/widgets/kit-grid-management/kit-grid-views/store/kit-grid-views.state';
|
|
177
178
|
export { KitGridView, KitGridViewColumn, KitGridViewType, } from './lib/widgets/kit-grid-management/kit-grid-views/store/kit-grid-views.model';
|