mis-crystal-design-system 18.0.12 → 18.0.13-test-3
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 +16 -9
- package/esm2022/phone-input/phone-input.component.mjs +10 -6
- package/esm2022/table/actions-cell/actions-cell.component.mjs +287 -0
- package/esm2022/table/public_api.mjs +2 -1
- package/esm2022/table/table.component.mjs +101 -59
- package/esm2022/table/table.module.mjs +16 -5
- package/fesm2022/mis-crystal-design-system-dropdown.mjs +15 -8
- 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 +797 -457
- package/fesm2022/mis-crystal-design-system-table.mjs.map +1 -1
- package/package.json +19 -19
- 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 +18 -1
- package/table/table.module.d.ts +5 -4
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { ActionItem } from '../table.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ActionsCellComponent implements OnInit {
|
|
5
|
+
data: any;
|
|
6
|
+
actionItems: ActionItem[];
|
|
7
|
+
actionType: 'inline' | 'dropdown';
|
|
8
|
+
dropdownIcon: string;
|
|
9
|
+
submenuAlign: 'left' | 'right';
|
|
10
|
+
private _style;
|
|
11
|
+
containerStyle: any;
|
|
12
|
+
set style(value: any);
|
|
13
|
+
get style(): any;
|
|
14
|
+
actionClick: EventEmitter<{
|
|
15
|
+
item: ActionItem;
|
|
16
|
+
data: any;
|
|
17
|
+
}>;
|
|
18
|
+
isDropdownOpen: boolean;
|
|
19
|
+
defaultDropdownIcon: string;
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
private processStyle;
|
|
22
|
+
handleAction(item: any): void;
|
|
23
|
+
onActionClick(item: ActionItem, event: Event): void;
|
|
24
|
+
trackByAction(index: number, item: ActionItem): string;
|
|
25
|
+
isSvgFile(iconPath: string): boolean;
|
|
26
|
+
onDocumentClick(): void;
|
|
27
|
+
toggleDropdown(event: Event): void;
|
|
28
|
+
onDropdownItemClick(item: any, event: Event): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionsCellComponent, never>;
|
|
30
|
+
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; }; "style": { "alias": "style"; "required": false; }; }, { "actionClick": "actionClick"; }, never, never, false, never>;
|
|
31
|
+
}
|
|
@@ -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
|
}
|
|
@@ -82,6 +87,7 @@ export interface PaginationConfig {
|
|
|
82
87
|
rowsPerPage: number;
|
|
83
88
|
totalNoOfRows: number;
|
|
84
89
|
selectedPage?: number;
|
|
90
|
+
disablePageJumping?: boolean;
|
|
85
91
|
}
|
|
86
92
|
export interface RowConfig {
|
|
87
93
|
height?: string | undefined | null;
|
|
@@ -100,8 +106,19 @@ export interface ColHeaderConfig {
|
|
|
100
106
|
sortDescIcon?: string;
|
|
101
107
|
}
|
|
102
108
|
export interface ColConfig {
|
|
103
|
-
type: "text" | "number" | "custom";
|
|
109
|
+
type: "text" | "number" | "custom" | "actions";
|
|
104
110
|
componentRef?: any;
|
|
105
111
|
style?: {};
|
|
106
112
|
action?: any;
|
|
113
|
+
actionItems?: ActionItem[];
|
|
114
|
+
actionType?: "inline" | "dropdown";
|
|
115
|
+
}
|
|
116
|
+
export interface ActionItem {
|
|
117
|
+
label: string;
|
|
118
|
+
value: string;
|
|
119
|
+
icon?: string;
|
|
120
|
+
disabled?: boolean;
|
|
121
|
+
action?: (data: any) => void;
|
|
122
|
+
children?: ActionItem[];
|
|
123
|
+
submenuAlign?: "left" | "right";
|
|
107
124
|
}
|
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
|
}
|