@indigina/ui-kit 1.1.39 → 1.1.40
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/esm2022/lib/components/kit-autocomplete/kit-autocomplete.component.mjs +2 -2
- package/esm2022/lib/components/kit-cta-panel-abstract-confirmation/kit-cta-panel-abstract-confirmation.component.mjs +2 -2
- package/esm2022/lib/components/kit-cta-panel-confirmation/kit-cta-panel-confirmation.component.mjs +2 -2
- package/esm2022/lib/components/kit-cta-panel-item/kit-cta-panel-item.component.mjs +2 -2
- package/esm2022/lib/components/kit-daterange/kit-daterange.component.mjs +2 -2
- package/esm2022/lib/components/kit-datetimepicker/kit-datetimepicker.component.mjs +2 -2
- package/esm2022/lib/components/kit-grid/kit-grid-column/kit-grid-column.component.mjs +2 -2
- package/esm2022/lib/components/kit-grid/kit-grid.component.mjs +41 -8
- package/esm2022/lib/components/kit-grid/kit-grid.const.mjs +6 -1
- package/esm2022/lib/components/kit-grid/kit-grid.model.mjs +1 -1
- package/esm2022/lib/components/kit-location-stepper/kit-location-stepper.component.mjs +2 -2
- package/esm2022/lib/components/kit-notification/kit-notification.component.mjs +2 -2
- package/esm2022/lib/components/kit-switch/kit-switch.component.mjs +2 -2
- package/esm2022/lib/components/kit-text-label/kit-text-label.component.mjs +2 -2
- package/esm2022/lib/components/kit-units-textbox/kit-units-textbox.component.mjs +2 -2
- package/esm2022/public-api.mjs +2 -2
- package/fesm2022/indigina-ui-kit.mjs +69 -31
- package/fesm2022/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-grid/kit-grid.component.d.ts +25 -7
- package/lib/components/kit-grid/kit-grid.const.d.ts +4 -0
- package/lib/components/kit-grid/kit-grid.model.d.ts +6 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/styles/common.scss +5 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { EventEmitter, QueryList, TemplateRef } from '@angular/core';
|
|
2
2
|
import { KitGridColumnComponent } from './kit-grid-column/kit-grid-column.component';
|
|
3
|
-
import { DataStateChangeEvent, DetailCollapseEvent, DetailExpandEvent, RowClassArgs } from '@progress/kendo-angular-grid';
|
|
3
|
+
import { DataStateChangeEvent, DetailCollapseEvent, DetailExpandEvent, PageChangeEvent, PagerSettings, RowClassArgs } from '@progress/kendo-angular-grid';
|
|
4
4
|
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
5
5
|
import { SortDescriptor } from '@progress/kendo-data-query';
|
|
6
|
-
import { KitGridDataStateChangeEvent, KitGridNestedData, KitGridSortDescriptor } from './kit-grid.model';
|
|
6
|
+
import { KitGridDataStateChangeEvent, KitGridNestedData, KitGridSortDescriptor, KitGridSortSettings, KitGridPageChangeEvent } from './kit-grid.model';
|
|
7
7
|
import { KitGridSortDirection } from './kit-grid.const';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class KitGridComponent<T extends KitGridNestedData<U>, U = unknown> {
|
|
@@ -14,13 +14,29 @@ export declare class KitGridComponent<T extends KitGridNestedData<U>, U = unknow
|
|
|
14
14
|
/**
|
|
15
15
|
* Enables the sorting of the grid columns
|
|
16
16
|
*/
|
|
17
|
-
sortable: boolean;
|
|
17
|
+
sortable: KitGridSortSettings | boolean;
|
|
18
18
|
/**
|
|
19
19
|
* The descriptors by which the data will be sorted
|
|
20
20
|
*/
|
|
21
21
|
sort: KitGridSortDescriptor[];
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Enables the pager of the grid
|
|
24
|
+
*/
|
|
25
|
+
pageable: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Defines the page size
|
|
28
|
+
*/
|
|
29
|
+
pageSize?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Defines the number of records to be skipped by the pager
|
|
32
|
+
*/
|
|
33
|
+
skip: number;
|
|
34
|
+
/**
|
|
35
|
+
* An action which is emitted when the page of the grid is changed
|
|
36
|
+
*/
|
|
37
|
+
pageChanged: EventEmitter<KitGridPageChangeEvent>;
|
|
38
|
+
/**
|
|
39
|
+
* An action which is emitted once the sorting of the grid is changed
|
|
24
40
|
*/
|
|
25
41
|
sortChanged: EventEmitter<KitGridSortDescriptor[]>;
|
|
26
42
|
/**
|
|
@@ -31,16 +47,18 @@ export declare class KitGridComponent<T extends KitGridNestedData<U>, U = unknow
|
|
|
31
47
|
kitGridDetailTemplate: TemplateRef<HTMLElement> | null;
|
|
32
48
|
readonly KitSvgIcon: typeof KitSvgIcon;
|
|
33
49
|
readonly KitGridSortDirection: typeof KitGridSortDirection;
|
|
34
|
-
private state;
|
|
35
50
|
private expandedRows;
|
|
36
51
|
onDataStateChange(event: DataStateChangeEvent): void;
|
|
37
52
|
onSortChange(event: SortDescriptor[]): void;
|
|
38
|
-
getSortingDirection(): string | null;
|
|
53
|
+
getSortingDirection(columnField: string): string | null;
|
|
39
54
|
isDetailTemplateVisible(dataItem: T): boolean;
|
|
40
55
|
hasDetailColumn(): boolean;
|
|
56
|
+
isColumnSortable(column: KitGridColumnComponent): boolean;
|
|
41
57
|
onDetailExpand(event: DetailExpandEvent): void;
|
|
42
58
|
onDetailCollapse(event: DetailCollapseEvent): void;
|
|
59
|
+
onPageChange(event: PageChangeEvent): void;
|
|
43
60
|
getCssRowClass: (context: RowClassArgs) => Record<string, boolean>;
|
|
61
|
+
getPagerSettings(): boolean | PagerSettings;
|
|
44
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitGridComponent<any, any>, never>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitGridComponent<any, any>, "kit-grid", never, { "data": { "alias": "data"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; }, { "sortChanged": "sortChanged"; "dataStateChanged": "dataStateChanged"; }, ["kitGridDetailTemplate", "columns"], never, false, never>;
|
|
63
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitGridComponent<any, any>, "kit-grid", never, { "data": { "alias": "data"; "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; }; }, { "pageChanged": "pageChanged"; "sortChanged": "sortChanged"; "dataStateChanged": "dataStateChanged"; }, ["kitGridDetailTemplate", "columns"], never, false, never>;
|
|
46
64
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { DataStateChangeEvent } from '@progress/kendo-angular-grid';
|
|
1
|
+
import { DataStateChangeEvent, PageChangeEvent } from '@progress/kendo-angular-grid';
|
|
2
2
|
import { SortDescriptor } from '@progress/kendo-data-query';
|
|
3
|
+
import { KitGridSortSettingsMode } from './kit-grid.const';
|
|
3
4
|
export interface KitGridNestedData<U> {
|
|
4
5
|
children?: U[];
|
|
5
6
|
}
|
|
7
|
+
export interface KitGridSortSettings {
|
|
8
|
+
mode: KitGridSortSettingsMode;
|
|
9
|
+
}
|
|
6
10
|
export type KitGridSortDescriptor = SortDescriptor;
|
|
7
11
|
export type KitGridDataStateChangeEvent = DataStateChangeEvent;
|
|
12
|
+
export type KitGridPageChangeEvent = PageChangeEvent;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -123,5 +123,5 @@ export { KitBreadcrumbsItem } from './lib/components/kit-breadcrumbs/kit-breadcr
|
|
|
123
123
|
export { KitGridModule } from './lib/components/kit-grid/kit-grid.module';
|
|
124
124
|
export { KitGridComponent } from './lib/components/kit-grid/kit-grid.component';
|
|
125
125
|
export { KitGridDataStateChangeEvent, KitGridSortDescriptor, KitGridNestedData } from './lib/components/kit-grid/kit-grid.model';
|
|
126
|
-
export { KitGridSortDirection } from './lib/components/kit-grid/kit-grid.const';
|
|
126
|
+
export { KitGridSortDirection, KitGridSortSettingsMode } from './lib/components/kit-grid/kit-grid.const';
|
|
127
127
|
export { KitGridColumnComponent } from './lib/components/kit-grid/kit-grid-column/kit-grid-column.component';
|