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.
@@ -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) => 1 | -1 | 0;
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
  }
@@ -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
  }
@@ -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 "@angular/common";
9
- import * as i7 from "mis-crystal-design-system/checkbox";
10
- import * as i8 from "@angular/cdk/scrolling";
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 i6.CommonModule, typeof i7.CheckboxModule, typeof i8.ScrollingModule], [typeof i1.TableComponent, typeof i2.SubTableComponent, typeof i3.TableFilterComponent, typeof i4.CustomTableCellDirective, typeof i5.SortIconsDirective]>;
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
  }