mis-crystal-design-system 18.0.20 → 18.0.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mis-crystal-design-system",
3
- "version": "18.0.20",
3
+ "version": "18.0.21",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "*",
6
6
  "@angular/core": "*",
@@ -52,18 +52,18 @@
52
52
  "esm": "./esm2022/checkbox/mis-crystal-design-system-checkbox.mjs",
53
53
  "default": "./fesm2022/mis-crystal-design-system-checkbox.mjs"
54
54
  },
55
- "./datepicker_v2": {
56
- "types": "./datepicker_v2/index.d.ts",
57
- "esm2022": "./esm2022/datepicker_v2/mis-crystal-design-system-datepicker_v2.mjs",
58
- "esm": "./esm2022/datepicker_v2/mis-crystal-design-system-datepicker_v2.mjs",
59
- "default": "./fesm2022/mis-crystal-design-system-datepicker_v2.mjs"
60
- },
61
55
  "./chip": {
62
56
  "types": "./chip/index.d.ts",
63
57
  "esm2022": "./esm2022/chip/mis-crystal-design-system-chip.mjs",
64
58
  "esm": "./esm2022/chip/mis-crystal-design-system-chip.mjs",
65
59
  "default": "./fesm2022/mis-crystal-design-system-chip.mjs"
66
60
  },
61
+ "./datepicker_v2": {
62
+ "types": "./datepicker_v2/index.d.ts",
63
+ "esm2022": "./esm2022/datepicker_v2/mis-crystal-design-system-datepicker_v2.mjs",
64
+ "esm": "./esm2022/datepicker_v2/mis-crystal-design-system-datepicker_v2.mjs",
65
+ "default": "./fesm2022/mis-crystal-design-system-datepicker_v2.mjs"
66
+ },
67
67
  "./daterangepicker_v2": {
68
68
  "types": "./daterangepicker_v2/index.d.ts",
69
69
  "esm2022": "./esm2022/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.mjs",
@@ -5,24 +5,23 @@ import * as i0 from "@angular/core";
5
5
  export declare class ActionsCellComponent implements OnInit, OnDestroy {
6
6
  private overlay;
7
7
  private viewContainerRef;
8
- set rowData(value: any);
9
- isChecked: boolean;
10
- set config(config: any);
8
+ cellData: any;
9
+ config: any;
11
10
  actionClick: EventEmitter<{
12
11
  item?: ActionItem;
13
- data: any;
14
- isChecked?: any;
12
+ data?: any;
13
+ actionType?: string;
14
+ value?: any;
15
15
  }>;
16
16
  dropdownMenu: TemplateRef<any>;
17
17
  dropdownTrigger: ElementRef;
18
18
  isDropdownOpen: boolean;
19
19
  actionItems: ActionItem[];
20
- actionType: "inline" | "dropdown" | "checkbox";
21
- submenuAlign: "left" | "right";
22
- menuAlign: "left" | "right";
20
+ actionType: "inline" | "dropdown" | "checkbox" | "row-collapse";
23
21
  action?: (data: any) => void;
24
22
  data: any;
25
23
  disable: (data: any) => boolean;
24
+ currentState: boolean;
26
25
  private _style;
27
26
  containerStyle: any;
28
27
  private overlayRef;
@@ -39,8 +38,8 @@ export declare class ActionsCellComponent implements OnInit, OnDestroy {
39
38
  private closeDropdown;
40
39
  private getDropdownPositions;
41
40
  onDropdownItemClick(item: any, event: Event): void;
42
- onCheckboxChange(event: any): void;
41
+ onClick(event: any): void;
43
42
  isDisabled(item: ActionItem): boolean;
44
43
  static ɵfac: i0.ɵɵFactoryDeclaration<ActionsCellComponent, never>;
45
- static ɵcmp: i0.ɵɵComponentDeclaration<ActionsCellComponent, "mis-actions-cell", never, { "rowData": { "alias": "rowData"; "required": false; }; "isChecked": { "alias": "isChecked"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "actionClick": "actionClick"; }, never, never, false, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActionsCellComponent, "mis-actions-cell", never, { "cellData": { "alias": "cellData"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "actionClick": "actionClick"; }, never, never, false, never>;
46
45
  }
@@ -36,6 +36,10 @@ export declare class TableComponent implements OnInit, AfterViewInit, OnChanges
36
36
  subTableData: Array<Array<any>>;
37
37
  subTableDataLoading: boolean | any;
38
38
  table: ElementRef | any;
39
+ collapseColIndex: number;
40
+ previewLines: number;
41
+ rowCollapseConfigIndex: number;
42
+ expandedMap: Record<string, boolean>;
39
43
  currentSort: SortState | null;
40
44
  multiColumnSort: SortState[];
41
45
  sortChange: EventEmitter<SortState>;
@@ -46,6 +50,7 @@ export declare class TableComponent implements OnInit, AfterViewInit, OnChanges
46
50
  constructor(renderer: Renderer2);
47
51
  selectRow(index: number): void;
48
52
  ngOnInit(): void;
53
+ buildExpandedMap(): void;
49
54
  ngAfterViewInit(): void;
50
55
  ngOnChanges(): void;
51
56
  initializeFilters(): void;
@@ -68,6 +73,10 @@ export declare class TableComponent implements OnInit, AfterViewInit, OnChanges
68
73
  onSortChange(sortState: SortState): void;
69
74
  getActionsCellStyle(style: any): any;
70
75
  onActionClick(event: any, rowIndex: number): void;
76
+ findActionConfig(actionType: string): {
77
+ index: number;
78
+ config: ColConfig;
79
+ } | null;
71
80
  isRowDisabled(row: any): boolean;
72
81
  toggleCheckbox(): void;
73
82
  static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
@@ -84,7 +93,7 @@ export interface TableConfig {
84
93
  canExpand?: boolean;
85
94
  canScrollHorizontally?: boolean;
86
95
  cellHover?: boolean;
87
- activeRowIndex?: number;
96
+ activeRowIndex?: number | number[];
88
97
  multiColumnSort?: boolean;
89
98
  }
90
99
  export interface PaginationConfig {
@@ -117,9 +126,10 @@ export interface ColConfig {
117
126
  style?: {};
118
127
  action?: any;
119
128
  actionItems?: ActionItem[];
120
- actionType?: "inline" | "dropdown" | "checkbox";
121
- menuAlign?: "left" | "right";
129
+ actionType?: "inline" | "dropdown" | "checkbox" | "row-collapse";
122
130
  disable?: (rowData: any) => boolean;
131
+ collapseColumnIndex?: number;
132
+ previewLines?: number;
123
133
  }
124
134
  export interface ActionItem {
125
135
  label: string;
@@ -128,7 +138,6 @@ export interface ActionItem {
128
138
  disable?: (data: any) => boolean;
129
139
  action?: (data: any) => void;
130
140
  children?: ActionItem[];
131
- submenuAlign?: "left" | "right";
132
141
  }
133
142
  export interface InternalActionItem extends ActionItem {
134
143
  showSubmenu?: boolean;