@indigina/ui-kit 1.1.161 → 1.1.162
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 +144 -30
- package/fesm2022/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-entity-grid/kit-entity-grid.component.d.ts +71 -0
- package/lib/components/kit-grid/kit-grid.component.d.ts +9 -5
- package/lib/widgets/kit-skeleton/kit-skeleton-grid/kit-skeleton-grid.component.d.ts +9 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { InputSignal, OutputEmitterRef, Signal, TemplateRef, WritableSignal } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Store } from '@ngxs/store';
|
|
4
|
+
import { KitGridDataResult } from '../../widgets/kit-grid-management/kit-grid-management.model';
|
|
5
|
+
import { KitGridColumnConfig, KitGridDataState } from '../../widgets/kit-grid-management/store/kit-grid.model';
|
|
6
|
+
import { KitGridDataStateChangeEvent, KitGridPageChangeEvent, KitGridSortSettings, KitPDFOptions } from '../kit-grid/kit-grid.model';
|
|
7
|
+
import { KitSortDescriptor } from '../../utils/kit-data-query/kit-data-query.model';
|
|
8
|
+
import { KitGridView } from '../../widgets/kit-grid-management/kit-grid-views/store/kit-grid-views.model';
|
|
9
|
+
import { KitGridComponent } from '../kit-grid/kit-grid.component';
|
|
10
|
+
import { KitGridExportComponent } from '../../widgets/kit-grid-management/kit-grid-export/kit-grid-export.component';
|
|
11
|
+
import { KitKendoDrawPdf } from '../../widgets/kit-grid-management/kit-grid-export/kit-grid-export.model';
|
|
12
|
+
import { KitFilterItem } from '../../widgets/kit-grid-management/kit-grid-filters/kit-grid-filters.model';
|
|
13
|
+
import { KitBreadcrumbsItem } from '../kit-breadcrumbs/kit-breadcrumbs.model';
|
|
14
|
+
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
15
|
+
import { KitButtonIconPosition, KitButtonKind, KitButtonType } from '../kit-button/kit-button.const';
|
|
16
|
+
import { KitBadgeTheme } from '../../directives/kit-badge/kit-badge.const';
|
|
17
|
+
import { KitBreadcrumbsService } from '../kit-breadcrumbs/kit-breadcrumbs.service';
|
|
18
|
+
import { KitGridUrlStateService } from '../../widgets/kit-grid-management/kit-grid-url-state.service';
|
|
19
|
+
import { KitGridColumnComponent } from '../kit-grid/kit-grid-column/kit-grid-column.component';
|
|
20
|
+
import { KitGridCellTranslationMap } from '../../widgets/kit-grid-management/kit-grid-cell/kit-grid-cell.model';
|
|
21
|
+
import * as i0 from "@angular/core";
|
|
22
|
+
export declare class KitEntityGridComponent<T> {
|
|
23
|
+
private readonly store;
|
|
24
|
+
private readonly kitBreadcrumbsService;
|
|
25
|
+
private readonly kitGridUrlStateService;
|
|
26
|
+
readonly gridData: InputSignal<KitGridDataResult<T> | null>;
|
|
27
|
+
readonly title: InputSignal<string>;
|
|
28
|
+
readonly gridColumns: InputSignal<KitGridColumnConfig[]>;
|
|
29
|
+
readonly defaultViewName: InputSignal<string>;
|
|
30
|
+
readonly viewGroup: InputSignal<string>;
|
|
31
|
+
readonly viewGroupConfig: InputSignal<string>;
|
|
32
|
+
readonly pdfOptions: InputSignal<KitPDFOptions>;
|
|
33
|
+
readonly getExportedData: InputSignal<() => Observable<{
|
|
34
|
+
data: T[];
|
|
35
|
+
total: number;
|
|
36
|
+
}>>;
|
|
37
|
+
readonly defaultSorting: InputSignal<KitSortDescriptor[]>;
|
|
38
|
+
readonly filterExcludedColumns: InputSignal<string[]>;
|
|
39
|
+
readonly systemViews: InputSignal<KitGridView[]>;
|
|
40
|
+
readonly translationMap: InputSignal<KitGridCellTranslationMap>;
|
|
41
|
+
readonly isDetailTemplateVisible: InputSignal<() => boolean>;
|
|
42
|
+
readonly detailTemplateExpandDisableIf: InputSignal<(context: T) => boolean>;
|
|
43
|
+
readonly gridHasData: InputSignal<boolean>;
|
|
44
|
+
readonly isLoading: InputSignal<boolean>;
|
|
45
|
+
readonly pagerInfoText: InputSignal<string>;
|
|
46
|
+
readonly gridViewChanged: OutputEmitterRef<void>;
|
|
47
|
+
readonly kitGridComponent: Signal<KitGridComponent<T> | undefined>;
|
|
48
|
+
readonly gridExportComponent: Signal<KitGridExportComponent<T> | undefined>;
|
|
49
|
+
readonly columns: Signal<readonly KitGridColumnComponent[]>;
|
|
50
|
+
readonly gridDetailTemplate: Signal<TemplateRef<HTMLElement> | undefined>;
|
|
51
|
+
readonly drawPdf: Signal<KitKendoDrawPdf<T> | undefined>;
|
|
52
|
+
readonly filters$: Observable<KitFilterItem[]>;
|
|
53
|
+
readonly gridState$: Observable<KitGridDataState>;
|
|
54
|
+
pageSize: number;
|
|
55
|
+
readonly sortable: KitGridSortSettings;
|
|
56
|
+
readonly breadcrumbs: Signal<KitBreadcrumbsItem[]>;
|
|
57
|
+
readonly filtersVisible: WritableSignal<boolean>;
|
|
58
|
+
readonly kitSvgIcon: typeof KitSvgIcon;
|
|
59
|
+
readonly kitButtonType: typeof KitButtonType;
|
|
60
|
+
readonly kitButtonKind: typeof KitButtonKind;
|
|
61
|
+
readonly kitButtonIconPosition: typeof KitButtonIconPosition;
|
|
62
|
+
readonly kitBadgeTheme: typeof KitBadgeTheme;
|
|
63
|
+
isExporting: WritableSignal<boolean>;
|
|
64
|
+
constructor(store: Store, kitBreadcrumbsService: KitBreadcrumbsService, kitGridUrlStateService: KitGridUrlStateService);
|
|
65
|
+
onPageSizeChanged(event: KitGridPageChangeEvent): void;
|
|
66
|
+
onFiltersToggle(): void;
|
|
67
|
+
onGridViewChange(): void;
|
|
68
|
+
onDataStateChange(event: KitGridDataStateChangeEvent): void;
|
|
69
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitEntityGridComponent<any>, never>;
|
|
70
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitEntityGridComponent<any>, "kit-entity-grid", never, { "gridData": { "alias": "gridData"; "required": true; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "gridColumns": { "alias": "gridColumns"; "required": true; "isSignal": true; }; "defaultViewName": { "alias": "defaultViewName"; "required": true; "isSignal": true; }; "viewGroup": { "alias": "viewGroup"; "required": true; "isSignal": true; }; "viewGroupConfig": { "alias": "viewGroupConfig"; "required": true; "isSignal": true; }; "pdfOptions": { "alias": "pdfOptions"; "required": true; "isSignal": true; }; "getExportedData": { "alias": "getExportedData"; "required": true; "isSignal": true; }; "defaultSorting": { "alias": "defaultSorting"; "required": false; "isSignal": true; }; "filterExcludedColumns": { "alias": "filterExcludedColumns"; "required": false; "isSignal": true; }; "systemViews": { "alias": "systemViews"; "required": false; "isSignal": true; }; "translationMap": { "alias": "translationMap"; "required": false; "isSignal": true; }; "isDetailTemplateVisible": { "alias": "isDetailTemplateVisible"; "required": false; "isSignal": true; }; "detailTemplateExpandDisableIf": { "alias": "detailTemplateExpandDisableIf"; "required": false; "isSignal": true; }; "gridHasData": { "alias": "gridHasData"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "pagerInfoText": { "alias": "pagerInfoText"; "required": false; "isSignal": true; }; }, { "gridViewChanged": "gridViewChanged"; }, ["columns", "gridDetailTemplate"], ["[filters]"], true, never>;
|
|
71
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, InputSignal, Signal, TemplateRef } from '@angular/core';
|
|
1
|
+
import { EventEmitter, InputSignal, Signal, TemplateRef, WritableSignal } from '@angular/core';
|
|
2
2
|
import { KitGridColumnComponent } from './kit-grid-column/kit-grid-column.component';
|
|
3
3
|
import { ExcelExportEvent, GridComponent, PagerSettings, RowClassArgs } from '@progress/kendo-angular-grid';
|
|
4
4
|
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
@@ -6,8 +6,10 @@ import { KitGridCellClickEvent, KitGridDataStateChangeEvent, KitGridDetailCollap
|
|
|
6
6
|
import { KitDataResult, KitSortDescriptor } from '../../utils/kit-data-query/kit-data-query.model';
|
|
7
7
|
import { KitSortDirection } from '../../utils/kit-data-query/kit-data-query.const';
|
|
8
8
|
import { PDFExportEvent } from '@progress/kendo-angular-grid/pdf/pdf-export-event';
|
|
9
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class KitGridComponent<T> {
|
|
12
|
+
private readonly translateService;
|
|
11
13
|
/**
|
|
12
14
|
* Sets the data of the grid. Allows user to implement data operations manually
|
|
13
15
|
*/
|
|
@@ -62,9 +64,10 @@ export declare class KitGridComponent<T> {
|
|
|
62
64
|
footerData?: Partial<Record<keyof T, T[keyof T]>>;
|
|
63
65
|
pdfOptions: KitPDFOptions;
|
|
64
66
|
pagerButtonCount: number;
|
|
65
|
-
pagerInfoText: string;
|
|
66
67
|
showPageSize: boolean;
|
|
68
|
+
readonly pagerInfoText: InputSignal<string>;
|
|
67
69
|
readonly resizable: InputSignal<boolean>;
|
|
70
|
+
readonly gridDetailTemplate: InputSignal<TemplateRef<HTMLElement> | undefined>;
|
|
68
71
|
/**
|
|
69
72
|
* An action which is emitted when the page of the grid is changed
|
|
70
73
|
*/
|
|
@@ -91,12 +94,13 @@ export declare class KitGridComponent<T> {
|
|
|
91
94
|
cellClicked: EventEmitter<KitGridCellClickEvent>;
|
|
92
95
|
excelExport: EventEmitter<ExcelExportEvent>;
|
|
93
96
|
pdfExport: EventEmitter<PDFExportEvent>;
|
|
94
|
-
kitGridDetailTemplate: TemplateRef<HTMLElement> | null;
|
|
95
97
|
gridComponent: GridComponent | null;
|
|
96
|
-
readonly
|
|
98
|
+
readonly columnsContent: Signal<readonly KitGridColumnComponent[]>;
|
|
97
99
|
readonly kitSvgIcon: typeof KitSvgIcon;
|
|
98
100
|
readonly kitSortDirection: typeof KitSortDirection;
|
|
101
|
+
readonly columns: WritableSignal<KitGridColumnComponent[] | undefined>;
|
|
99
102
|
expandedRows: T[];
|
|
103
|
+
constructor(translateService: TranslateService);
|
|
100
104
|
onDataStateChange(event: KitGridDataStateChangeEvent): void;
|
|
101
105
|
onSortChange(event: KitSortDescriptor[]): void;
|
|
102
106
|
getSortingDirection(columnField: string): string | null;
|
|
@@ -111,5 +115,5 @@ export declare class KitGridComponent<T> {
|
|
|
111
115
|
saveAsExcel(): void;
|
|
112
116
|
private collapseAllRows;
|
|
113
117
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitGridComponent<any>, never>;
|
|
114
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitGridComponent<any>, "kit-grid", never, { "data": { "alias": "data"; "required": false; }; "gridDataBinding": { "alias": "gridDataBinding"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "pageable": { "alias": "pageable"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "skip": { "alias": "skip"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "detailTemplateShowIf": { "alias": "detailTemplateShowIf"; "required": false; }; "detailTemplateExpandDisableIf": { "alias": "detailTemplateExpandDisableIf"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "footerTitle": { "alias": "footerTitle"; "required": false; }; "footerData": { "alias": "footerData"; "required": false; }; "pdfOptions": { "alias": "pdfOptions"; "required": false; }; "pagerButtonCount": { "alias": "pagerButtonCount"; "required": false; }; "
|
|
118
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitGridComponent<any>, "kit-grid", never, { "data": { "alias": "data"; "required": false; }; "gridDataBinding": { "alias": "gridDataBinding"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "pageable": { "alias": "pageable"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "skip": { "alias": "skip"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "detailTemplateShowIf": { "alias": "detailTemplateShowIf"; "required": false; }; "detailTemplateExpandDisableIf": { "alias": "detailTemplateExpandDisableIf"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "footerTitle": { "alias": "footerTitle"; "required": false; }; "footerData": { "alias": "footerData"; "required": false; }; "pdfOptions": { "alias": "pdfOptions"; "required": false; }; "pagerButtonCount": { "alias": "pagerButtonCount"; "required": false; }; "showPageSize": { "alias": "showPageSize"; "required": false; }; "pagerInfoText": { "alias": "pagerInfoText"; "required": false; "isSignal": true; }; "resizable": { "alias": "resizable"; "required": false; "isSignal": true; }; "gridDetailTemplate": { "alias": "gridDetailTemplate"; "required": false; "isSignal": true; }; }, { "pageChanged": "pageChanged"; "sortChanged": "sortChanged"; "dataStateChanged": "dataStateChanged"; "detailExpanded": "detailExpanded"; "detailCollapsed": "detailCollapsed"; "cellClicked": "cellClicked"; "excelExport": "excelExport"; "pdfExport": "pdfExport"; }, ["columnsContent"], never, false, never>;
|
|
115
119
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InputSignal } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class KitSkeletonGridComponent {
|
|
4
|
+
readonly itemsCount: InputSignal<number>;
|
|
5
|
+
readonly childItems: number[];
|
|
6
|
+
get items(): number[];
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitSkeletonGridComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitSkeletonGridComponent, "kit-skeleton-grid", never, { "itemsCount": { "alias": "itemsCount"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -187,6 +187,8 @@ export { KitGridExportComponent } from './lib/widgets/kit-grid-management/kit-gr
|
|
|
187
187
|
export { KitKendoDrawPdf } from './lib/widgets/kit-grid-management/kit-grid-export/kit-grid-export.model';
|
|
188
188
|
export { KitGridCellComponent } from './lib/widgets/kit-grid-management/kit-grid-cell/kit-grid-cell.component';
|
|
189
189
|
export { KitGridCellService } from './lib/widgets/kit-grid-management/kit-grid-cell/kit-grid-cell.service';
|
|
190
|
+
export { KitGridCellTranslationMap } from './lib/widgets/kit-grid-management/kit-grid-cell/kit-grid-cell.model';
|
|
190
191
|
export { KitGridSearchComponent } from './lib/widgets/kit-grid-management/kit-grid-search/kit-grid-search.component';
|
|
191
192
|
export { KitGridColumnManagerComponent, } from './lib/widgets/kit-grid-management/kit-grid-column-manager/kit-grid-column-manager.component';
|
|
192
193
|
export { KIT_DATE_FORMAT, KIT_DATETIME_FORMAT_LONG } from './lib/const/date-time.const';
|
|
194
|
+
export { KitEntityGridComponent } from './lib/components/kit-entity-grid/kit-entity-grid.component';
|