mis-crystal-design-system 18.0.11 → 18.0.13-test-2
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/action-list/public_api.d.ts +1 -1
- package/assets/icons/action-config.svg +3 -0
- package/assets/icons/action-delete.svg +3 -0
- package/assets/icons/action-edit.svg +3 -0
- package/assets/icons/action-history.svg +87 -0
- package/assets/icons/action-upload.svg +10 -0
- package/dropdown/dropdown.component.d.ts +2 -1
- package/esm2022/action-list/public_api.mjs +1 -1
- package/esm2022/dropdown/dropdown.component.mjs +18 -11
- package/esm2022/phone-input/phone-input.component.mjs +10 -6
- package/esm2022/table/actions-cell/actions-cell.component.mjs +291 -0
- package/esm2022/table/public_api.mjs +2 -1
- package/esm2022/table/table.component.mjs +75 -53
- package/esm2022/table/table.module.mjs +16 -5
- package/fesm2022/mis-crystal-design-system-dropdown.mjs +17 -10
- package/fesm2022/mis-crystal-design-system-dropdown.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-phone-input.mjs +9 -5
- package/fesm2022/mis-crystal-design-system-phone-input.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-table.mjs +782 -458
- package/fesm2022/mis-crystal-design-system-table.mjs.map +1 -1
- package/package.json +13 -13
- package/phone-input/phone-input.component.d.ts +1 -0
- package/styles/mis-old-icon-styles.scss +5 -5
- package/table/actions-cell/actions-cell.component.d.ts +31 -0
- package/table/filter/filter.component.d.ts +1 -1
- package/table/public_api.d.ts +1 -0
- package/table/table.component.d.ts +16 -1
- package/table/table.module.d.ts +5 -4
|
@@ -15,7 +15,7 @@ export declare class TableFilterComponent implements OnInit {
|
|
|
15
15
|
updateFilter(data: any): void;
|
|
16
16
|
getFiltersBasedOnSearchValue(): Filter[] | any;
|
|
17
17
|
getCheckedFilters(): Filter[] | any;
|
|
18
|
-
mySort: (a: Filter | any, b: Filter | any) =>
|
|
18
|
+
mySort: (a: Filter | any, b: Filter | any) => 0 | 1 | -1;
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableFilterComponent, never>;
|
|
20
20
|
static ɵcmp: i0.ɵɵComponentDeclaration<TableFilterComponent, "mis-table-filter", never, { "filtersData": { "alias": "filtersData"; "required": false; }; "containerStyles": { "alias": "containerStyles"; "required": false; }; }, { "filtersApplied": "filtersApplied"; }, never, never, false, never>;
|
|
21
21
|
}
|
package/table/public_api.d.ts
CHANGED
|
@@ -7,3 +7,4 @@ export { TableConfig, PaginationConfig, RowConfig, ColHeaderConfig, ColConfig }
|
|
|
7
7
|
export { SubTableConfig, SubTableColConfig, SubTableColHeaderConfig, SubTableRowConfig } from "./sub-table/sub-table.component";
|
|
8
8
|
export { TableFilterComponent } from "./filter/filter.component";
|
|
9
9
|
export { Filter } from "./filter/filter.component";
|
|
10
|
+
export { ActionsCellComponent } from "./actions-cell/actions-cell.component";
|
|
@@ -60,6 +60,11 @@ export declare class TableComponent implements OnInit, AfterViewInit, OnChanges
|
|
|
60
60
|
'font-size': any;
|
|
61
61
|
};
|
|
62
62
|
onSortChange(sortState: SortState): void;
|
|
63
|
+
onActionClick(event: {
|
|
64
|
+
item: ActionItem;
|
|
65
|
+
data: any;
|
|
66
|
+
}): void;
|
|
67
|
+
getActionsCellStyle(style: any): any;
|
|
63
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
64
69
|
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>;
|
|
65
70
|
}
|
|
@@ -100,8 +105,18 @@ export interface ColHeaderConfig {
|
|
|
100
105
|
sortDescIcon?: string;
|
|
101
106
|
}
|
|
102
107
|
export interface ColConfig {
|
|
103
|
-
type: "text" | "number" | "custom";
|
|
108
|
+
type: "text" | "number" | "custom" | "actions";
|
|
104
109
|
componentRef?: any;
|
|
105
110
|
style?: {};
|
|
106
111
|
action?: any;
|
|
112
|
+
actionItems?: ActionItem[];
|
|
113
|
+
actionType?: "inline" | "dropdown";
|
|
114
|
+
}
|
|
115
|
+
export interface ActionItem {
|
|
116
|
+
label: string;
|
|
117
|
+
value: string;
|
|
118
|
+
icon?: string;
|
|
119
|
+
disabled?: boolean;
|
|
120
|
+
action?: (data: any) => void;
|
|
121
|
+
children?: ActionItem[];
|
|
107
122
|
}
|
package/table/table.module.d.ts
CHANGED
|
@@ -5,12 +5,13 @@ import * as i2 from "./sub-table/sub-table.component";
|
|
|
5
5
|
import * as i3 from "./filter/filter.component";
|
|
6
6
|
import * as i4 from "./custom-table-cell.directive";
|
|
7
7
|
import * as i5 from "./sort-icons.directive";
|
|
8
|
-
import * as i6 from "
|
|
9
|
-
import * as i7 from "
|
|
10
|
-
import * as i8 from "
|
|
8
|
+
import * as i6 from "./actions-cell/actions-cell.component";
|
|
9
|
+
import * as i7 from "@angular/common";
|
|
10
|
+
import * as i8 from "mis-crystal-design-system/checkbox";
|
|
11
|
+
import * as i9 from "@angular/cdk/scrolling";
|
|
11
12
|
export declare class TableModule {
|
|
12
13
|
static forRoot(): ModuleWithProviders<TableModule>;
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TableModule, [typeof i1.TableComponent, typeof i2.SubTableComponent, typeof i3.TableFilterComponent, typeof i4.CustomTableCellDirective, typeof i5.SortIconsDirective], [typeof
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TableModule, [typeof i1.TableComponent, typeof i2.SubTableComponent, typeof i3.TableFilterComponent, typeof i4.CustomTableCellDirective, typeof i5.SortIconsDirective, typeof i6.ActionsCellComponent], [typeof i7.CommonModule, typeof i8.CheckboxModule, typeof i9.ScrollingModule], [typeof i1.TableComponent, typeof i2.SubTableComponent, typeof i3.TableFilterComponent, typeof i4.CustomTableCellDirective, typeof i5.SortIconsDirective, typeof i6.ActionsCellComponent]>;
|
|
15
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<TableModule>;
|
|
16
17
|
}
|