@indigina/ui-kit 1.1.54 → 1.1.56
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-card/kit-card.component.mjs +3 -3
- package/esm2022/lib/components/kit-card/kit-card.model.mjs +1 -1
- package/esm2022/lib/components/kit-grid/kit-grid.component.mjs +5 -7
- package/esm2022/public-api.mjs +1 -1
- package/fesm2022/indigina-ui-kit.mjs +6 -8
- package/fesm2022/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-card/kit-card.model.d.ts +7 -3
- package/lib/components/kit-grid/kit-grid.component.d.ts +7 -3
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { KitSvgIcon, KitSvgIconType } from '../kit-svg-icon/kit-svg-icon.const';
|
|
2
|
+
export type KitCardLink = (string | number)[] | string | null;
|
|
2
3
|
export interface KitCard {
|
|
3
4
|
title: string;
|
|
4
5
|
titleIcon: KitSvgIcon;
|
|
5
6
|
label: string;
|
|
6
7
|
count: number;
|
|
7
8
|
buttonLabel: string;
|
|
8
|
-
|
|
9
|
+
link?: KitCardLink;
|
|
10
|
+
items?: KitCardItem[];
|
|
9
11
|
titleIconType?: KitSvgIconType;
|
|
10
12
|
}
|
|
11
13
|
export interface KitCardItem {
|
|
12
14
|
label: string;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
link: KitCardLink;
|
|
16
|
+
count?: number;
|
|
17
|
+
icon?: KitSvgIcon;
|
|
18
|
+
iconType?: KitSvgIconType;
|
|
15
19
|
tooltip?: string;
|
|
16
20
|
}
|
|
@@ -7,9 +7,13 @@ import { KitGridSortDirection } from './kit-grid.const';
|
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class KitGridComponent<T> {
|
|
9
9
|
/**
|
|
10
|
-
* Sets the data of the grid
|
|
10
|
+
* Sets the data of the grid. Allows user to implement data operations manually
|
|
11
11
|
*/
|
|
12
|
-
data
|
|
12
|
+
data?: T[] | KitGridDataResult<T>;
|
|
13
|
+
/**
|
|
14
|
+
* Sets the data of the grid. Allows user to implement data operations automatically
|
|
15
|
+
*/
|
|
16
|
+
gridDataBinding?: T[];
|
|
13
17
|
/**
|
|
14
18
|
* Enables the sorting of the grid columns
|
|
15
19
|
*/
|
|
@@ -70,5 +74,5 @@ export declare class KitGridComponent<T> {
|
|
|
70
74
|
getPagerSettings(): boolean | PagerSettings;
|
|
71
75
|
private collapseAllRows;
|
|
72
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitGridComponent<any>, never>;
|
|
73
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitGridComponent<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; }; "detailTemplateShowIf": { "alias": "detailTemplateShowIf"; "required": false; }; }, { "pageChanged": "pageChanged"; "sortChanged": "sortChanged"; "dataStateChanged": "dataStateChanged"; "detailExpanded": "detailExpanded"; "detailCollapsed": "detailCollapsed"; }, ["kitGridDetailTemplate", "columns"], never, false, never>;
|
|
77
|
+
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; }; "detailTemplateShowIf": { "alias": "detailTemplateShowIf"; "required": false; }; }, { "pageChanged": "pageChanged"; "sortChanged": "sortChanged"; "dataStateChanged": "dataStateChanged"; "detailExpanded": "detailExpanded"; "detailCollapsed": "detailCollapsed"; }, ["kitGridDetailTemplate", "columns"], never, false, never>;
|
|
74
78
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -116,7 +116,7 @@ export { KitTabsSelectEvent } from './lib/components/kit-tabs/kit-tabs.model';
|
|
|
116
116
|
export { KitTabComponent } from './lib/components/kit-tabs/kit-tab/kit-tab.component';
|
|
117
117
|
export { KitCardModule } from './lib/components/kit-card/kit-card.module';
|
|
118
118
|
export { KitCardComponent } from './lib/components/kit-card/kit-card.component';
|
|
119
|
-
export { KitCard, KitCardItem } from './lib/components/kit-card/kit-card.model';
|
|
119
|
+
export { KitCard, KitCardItem, KitCardLink } from './lib/components/kit-card/kit-card.model';
|
|
120
120
|
export { KitCardTheme } from './lib/components/kit-card/kit-card.const';
|
|
121
121
|
export { KitBreadcrumbsModule } from './lib/components/kit-breadcrumbs/kit-breadcrumbs.module';
|
|
122
122
|
export { KitBreadcrumbsComponent } from './lib/components/kit-breadcrumbs/kit-breadcrumbs.component';
|