mis-crystal-design-system 18.0.13-test-12 → 18.0.13-test-14
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/table/actions-cell/actions-cell.component.mjs +67 -70
- package/esm2022/table/table.component.mjs +161 -103
- package/esm2022/table/table.module.mjs +3 -2
- package/fesm2022/mis-crystal-design-system-table.mjs +227 -172
- package/fesm2022/mis-crystal-design-system-table.mjs.map +1 -1
- package/package.json +13 -13
- package/table/actions-cell/actions-cell.component.d.ts +2 -2
- package/table/table.component.d.ts +11 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mis-crystal-design-system",
|
|
3
|
-
"version": "18.0.13-test-
|
|
3
|
+
"version": "18.0.13-test-14",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "*",
|
|
6
6
|
"@angular/core": "*",
|
|
@@ -40,18 +40,18 @@
|
|
|
40
40
|
"esm": "./esm2022/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.mjs",
|
|
41
41
|
"default": "./fesm2022/mis-crystal-design-system-async-search-dropdown.mjs"
|
|
42
42
|
},
|
|
43
|
-
"./checkbox": {
|
|
44
|
-
"types": "./checkbox/index.d.ts",
|
|
45
|
-
"esm2022": "./esm2022/checkbox/mis-crystal-design-system-checkbox.mjs",
|
|
46
|
-
"esm": "./esm2022/checkbox/mis-crystal-design-system-checkbox.mjs",
|
|
47
|
-
"default": "./fesm2022/mis-crystal-design-system-checkbox.mjs"
|
|
48
|
-
},
|
|
49
43
|
"./button": {
|
|
50
44
|
"types": "./button/index.d.ts",
|
|
51
45
|
"esm2022": "./esm2022/button/mis-crystal-design-system-button.mjs",
|
|
52
46
|
"esm": "./esm2022/button/mis-crystal-design-system-button.mjs",
|
|
53
47
|
"default": "./fesm2022/mis-crystal-design-system-button.mjs"
|
|
54
48
|
},
|
|
49
|
+
"./checkbox": {
|
|
50
|
+
"types": "./checkbox/index.d.ts",
|
|
51
|
+
"esm2022": "./esm2022/checkbox/mis-crystal-design-system-checkbox.mjs",
|
|
52
|
+
"esm": "./esm2022/checkbox/mis-crystal-design-system-checkbox.mjs",
|
|
53
|
+
"default": "./fesm2022/mis-crystal-design-system-checkbox.mjs"
|
|
54
|
+
},
|
|
55
55
|
"./chip": {
|
|
56
56
|
"types": "./chip/index.d.ts",
|
|
57
57
|
"esm2022": "./esm2022/chip/mis-crystal-design-system-chip.mjs",
|
|
@@ -184,6 +184,12 @@
|
|
|
184
184
|
"esm": "./esm2022/specificdatepicker/mis-crystal-design-system-specificdatepicker.mjs",
|
|
185
185
|
"default": "./fesm2022/mis-crystal-design-system-specificdatepicker.mjs"
|
|
186
186
|
},
|
|
187
|
+
"./styles": {
|
|
188
|
+
"types": "./styles/index.d.ts",
|
|
189
|
+
"esm2022": "./esm2022/styles/mis-crystal-design-system-styles.mjs",
|
|
190
|
+
"esm": "./esm2022/styles/mis-crystal-design-system-styles.mjs",
|
|
191
|
+
"default": "./fesm2022/mis-crystal-design-system-styles.mjs"
|
|
192
|
+
},
|
|
187
193
|
"./star-rating": {
|
|
188
194
|
"types": "./star-rating/index.d.ts",
|
|
189
195
|
"esm2022": "./esm2022/star-rating/mis-crystal-design-system-star-rating.mjs",
|
|
@@ -196,12 +202,6 @@
|
|
|
196
202
|
"esm": "./esm2022/switch/mis-crystal-design-system-switch.mjs",
|
|
197
203
|
"default": "./fesm2022/mis-crystal-design-system-switch.mjs"
|
|
198
204
|
},
|
|
199
|
-
"./styles": {
|
|
200
|
-
"types": "./styles/index.d.ts",
|
|
201
|
-
"esm2022": "./esm2022/styles/mis-crystal-design-system-styles.mjs",
|
|
202
|
-
"esm": "./esm2022/styles/mis-crystal-design-system-styles.mjs",
|
|
203
|
-
"default": "./fesm2022/mis-crystal-design-system-styles.mjs"
|
|
204
|
-
},
|
|
205
205
|
"./table": {
|
|
206
206
|
"types": "./table/index.d.ts",
|
|
207
207
|
"esm2022": "./esm2022/table/mis-crystal-design-system-table.mjs",
|
|
@@ -8,7 +8,6 @@ export declare class ActionsCellComponent implements OnInit {
|
|
|
8
8
|
dropdownIcon: string;
|
|
9
9
|
submenuAlign: 'left' | 'right';
|
|
10
10
|
menuAlign: 'left' | 'right';
|
|
11
|
-
actionPermissions: any;
|
|
12
11
|
isChecked: boolean;
|
|
13
12
|
checkboxChange: EventEmitter<boolean>;
|
|
14
13
|
private _style;
|
|
@@ -31,6 +30,7 @@ export declare class ActionsCellComponent implements OnInit {
|
|
|
31
30
|
toggleDropdown(event: Event): void;
|
|
32
31
|
onDropdownItemClick(item: any, event: Event): void;
|
|
33
32
|
onCheckboxChange(event: any): void;
|
|
33
|
+
isDisabled(item: ActionItem): boolean;
|
|
34
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActionsCellComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ActionsCellComponent, "mis-actions-cell", never, { "data": { "alias": "data"; "required": false; }; "actionItems": { "alias": "actionItems"; "required": false; }; "actionType": { "alias": "actionType"; "required": false; }; "dropdownIcon": { "alias": "dropdownIcon"; "required": false; }; "submenuAlign": { "alias": "submenuAlign"; "required": false; }; "menuAlign": { "alias": "menuAlign"; "required": false; }; "
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionsCellComponent, "mis-actions-cell", never, { "data": { "alias": "data"; "required": false; }; "actionItems": { "alias": "actionItems"; "required": false; }; "actionType": { "alias": "actionType"; "required": false; }; "dropdownIcon": { "alias": "dropdownIcon"; "required": false; }; "submenuAlign": { "alias": "submenuAlign"; "required": false; }; "menuAlign": { "alias": "menuAlign"; "required": false; }; "isChecked": { "alias": "isChecked"; "required": false; }; "style": { "alias": "style"; "required": false; }; }, { "checkboxChange": "checkboxChange"; "actionClick": "actionClick"; }, never, never, false, never>;
|
|
36
36
|
}
|
|
@@ -38,6 +38,10 @@ export declare class TableComponent implements OnInit, AfterViewInit, OnChanges
|
|
|
38
38
|
currentSort: SortState | null;
|
|
39
39
|
multiColumnSort: SortState[];
|
|
40
40
|
sortChange: EventEmitter<SortState>;
|
|
41
|
+
headerAction?: EventEmitter<{
|
|
42
|
+
type: string;
|
|
43
|
+
payload?: any;
|
|
44
|
+
}>;
|
|
41
45
|
constructor(renderer: Renderer2);
|
|
42
46
|
selectRow(index: number): void;
|
|
43
47
|
ngOnInit(): void;
|
|
@@ -63,8 +67,11 @@ export declare class TableComponent implements OnInit, AfterViewInit, OnChanges
|
|
|
63
67
|
onSortChange(sortState: SortState): void;
|
|
64
68
|
getActionsCellStyle(style: any): any;
|
|
65
69
|
onActionClick(event: any, rowIndex: number): void;
|
|
70
|
+
selectAllCheckbox: boolean;
|
|
71
|
+
isRowDisabled(row: any): boolean;
|
|
72
|
+
toggleCheckbox(): void;
|
|
66
73
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
67
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "mis-table", never, { "config": { "alias": "tableConfig"; "required": false; }; "subTableconfig": { "alias": "subTableconfig"; "required": false; }; "tableDataLoading": { "alias": "tableDataLoading"; "required": false; }; "expandedIndex": { "alias": "expandedIndex"; "required": false; }; "tableData": { "alias": "tableData"; "required": false; }; "subTableData": { "alias": "subTableData"; "required": false; }; "subTableDataLoading": { "alias": "subTableDataLoading"; "required": false; }; }, { "filtersUpdated": "filtersUpdated"; "pageSelected": "pageSelected"; "sortChange": "sortChange"; }, never, never, false, never>;
|
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "mis-table", never, { "config": { "alias": "tableConfig"; "required": false; }; "subTableconfig": { "alias": "subTableconfig"; "required": false; }; "tableDataLoading": { "alias": "tableDataLoading"; "required": false; }; "expandedIndex": { "alias": "expandedIndex"; "required": false; }; "tableData": { "alias": "tableData"; "required": false; }; "subTableData": { "alias": "subTableData"; "required": false; }; "subTableDataLoading": { "alias": "subTableDataLoading"; "required": false; }; }, { "filtersUpdated": "filtersUpdated"; "pageSelected": "pageSelected"; "sortChange": "sortChange"; "headerAction": "headerAction"; }, never, never, false, never>;
|
|
68
75
|
}
|
|
69
76
|
export interface TableConfig {
|
|
70
77
|
height: string | "100%";
|
|
@@ -79,7 +86,6 @@ export interface TableConfig {
|
|
|
79
86
|
cellHover?: boolean;
|
|
80
87
|
activeRowIndex?: number;
|
|
81
88
|
multiColumnSort?: boolean;
|
|
82
|
-
actionPermissions?: Array<any>;
|
|
83
89
|
}
|
|
84
90
|
export interface PaginationConfig {
|
|
85
91
|
noOfPages: number;
|
|
@@ -92,9 +98,10 @@ export interface RowConfig {
|
|
|
92
98
|
height?: string | undefined | null;
|
|
93
99
|
style?: {};
|
|
94
100
|
action?: any;
|
|
101
|
+
disableRow?: (data: any) => boolean;
|
|
95
102
|
}
|
|
96
103
|
export interface ColHeaderConfig {
|
|
97
|
-
type: "text" | "number" | "custom";
|
|
104
|
+
type: "text" | "number" | "custom" | "checkbox";
|
|
98
105
|
data: any;
|
|
99
106
|
componentRef?: any;
|
|
100
107
|
filters?: Array<Filter> | null;
|
|
@@ -117,7 +124,7 @@ export interface ActionItem {
|
|
|
117
124
|
label: string;
|
|
118
125
|
value: string;
|
|
119
126
|
icon?: string;
|
|
120
|
-
|
|
127
|
+
disable?: (data: any) => boolean;
|
|
121
128
|
action?: (data: any) => void;
|
|
122
129
|
children?: ActionItem[];
|
|
123
130
|
submenuAlign?: "left" | "right";
|