mat-table-ext 0.0.6 → 0.0.9

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.
Files changed (89) hide show
  1. package/.editorconfig +16 -0
  2. package/.vscode/extensions.json +4 -0
  3. package/.vscode/launch.json +20 -0
  4. package/.vscode/tasks.json +42 -0
  5. package/LICENSE +21 -0
  6. package/angular.json +150 -0
  7. package/package.json +46 -58
  8. package/projects/mat-table-ext/.browserslistrc +16 -0
  9. package/projects/mat-table-ext/README.md +57 -0
  10. package/projects/mat-table-ext/karma.conf.js +44 -0
  11. package/projects/mat-table-ext/ng-package.json +9 -0
  12. package/projects/mat-table-ext/package.json +38 -0
  13. package/projects/mat-table-ext/src/lib/components/column-pinning/column-pinning.component.html +7 -0
  14. package/projects/mat-table-ext/src/lib/components/column-pinning/column-pinning.component.scss +9 -0
  15. package/projects/mat-table-ext/src/lib/components/column-pinning/column-pinning.component.spec.ts +23 -0
  16. package/projects/mat-table-ext/src/lib/components/column-pinning/column-pinning.component.ts +48 -0
  17. package/projects/mat-table-ext/src/lib/components/editing/editing.component.html +55 -0
  18. package/projects/mat-table-ext/src/lib/components/editing/editing.component.scss +19 -0
  19. package/projects/mat-table-ext/src/lib/components/editing/editing.component.spec.ts +23 -0
  20. package/projects/mat-table-ext/src/lib/components/editing/editing.component.ts +110 -0
  21. package/projects/mat-table-ext/src/lib/components/filter-columns-component/filter-columns-component.component.html +26 -0
  22. package/projects/mat-table-ext/src/lib/components/filter-columns-component/filter-columns-component.component.scss +0 -0
  23. package/projects/mat-table-ext/src/lib/components/filter-columns-component/filter-columns-component.component.spec.ts +23 -0
  24. package/projects/mat-table-ext/src/lib/components/filter-columns-component/filter-columns-component.component.ts +54 -0
  25. package/projects/mat-table-ext/src/lib/directives/resize-column.directive.ts +103 -0
  26. package/projects/mat-table-ext/src/lib/mat-table-ext.component.html +285 -0
  27. package/projects/mat-table-ext/src/lib/mat-table-ext.component.spec.ts +25 -0
  28. package/projects/mat-table-ext/src/lib/mat-table-ext.component.ts +985 -0
  29. package/projects/mat-table-ext/src/lib/mat-table-ext.module.ts +127 -0
  30. package/projects/mat-table-ext/src/lib/mat-table-ext.scss +181 -0
  31. package/projects/mat-table-ext/src/lib/mat-table-ext.service.spec.ts +16 -0
  32. package/projects/mat-table-ext/src/lib/mat-table-ext.service.ts +12 -0
  33. package/projects/mat-table-ext/src/lib/models/tableExtModels.ts +85 -0
  34. package/{public-api.d.ts → projects/mat-table-ext/src/public-api.ts} +5 -1
  35. package/projects/mat-table-ext/src/test.ts +27 -0
  36. package/projects/mat-table-ext/tsconfig.lib.json +15 -0
  37. package/projects/mat-table-ext/tsconfig.lib.prod.json +10 -0
  38. package/projects/mat-table-ext/tsconfig.spec.json +17 -0
  39. package/projects/mat-table-ext-example/.browserslistrc +16 -0
  40. package/projects/mat-table-ext-example/karma.conf.js +44 -0
  41. package/projects/mat-table-ext-example/src/app/app.component.html +576 -0
  42. package/projects/mat-table-ext-example/src/app/app.component.scss +0 -0
  43. package/projects/mat-table-ext-example/src/app/app.component.spec.ts +31 -0
  44. package/projects/mat-table-ext-example/src/app/app.component.ts +173 -0
  45. package/projects/mat-table-ext-example/src/app/app.module.ts +40 -0
  46. package/projects/mat-table-ext-example/src/app/service/custom-table.service.spec.ts +16 -0
  47. package/projects/mat-table-ext-example/src/app/service/custom-table.service.ts +18 -0
  48. package/projects/mat-table-ext-example/src/assets/.gitkeep +0 -0
  49. package/projects/mat-table-ext-example/src/assets/data.json +100003 -0
  50. package/projects/mat-table-ext-example/src/environments/environment.prod.ts +3 -0
  51. package/projects/mat-table-ext-example/src/environments/environment.ts +16 -0
  52. package/projects/mat-table-ext-example/src/favicon.ico +0 -0
  53. package/projects/mat-table-ext-example/src/index.html +14 -0
  54. package/projects/mat-table-ext-example/src/main.ts +12 -0
  55. package/projects/mat-table-ext-example/src/polyfills.ts +53 -0
  56. package/projects/mat-table-ext-example/src/styles.scss +23 -0
  57. package/projects/mat-table-ext-example/src/test.ts +26 -0
  58. package/projects/mat-table-ext-example/tsconfig.app.json +15 -0
  59. package/projects/mat-table-ext-example/tsconfig.spec.json +18 -0
  60. package/tsconfig.json +38 -0
  61. package/esm2020/lib/components/column-pinning/column-pinning.component.mjs +0 -58
  62. package/esm2020/lib/components/editing/editing.component.mjs +0 -122
  63. package/esm2020/lib/components/filter-columns-component/filter-columns-component.component.mjs +0 -68
  64. package/esm2020/lib/directives/resize-column.directive.mjs +0 -99
  65. package/esm2020/lib/mat-table-ext.component.mjs +0 -1021
  66. package/esm2020/lib/mat-table-ext.module.mjs +0 -237
  67. package/esm2020/lib/mat-table-ext.service.mjs +0 -20
  68. package/esm2020/lib/models/tableExtModels.mjs +0 -2
  69. package/esm2020/mat-table-ext.mjs +0 -5
  70. package/esm2020/public-api.mjs +0 -11
  71. package/fesm2015/mat-table-ext.mjs +0 -1585
  72. package/fesm2015/mat-table-ext.mjs.map +0 -1
  73. package/fesm2020/mat-table-ext.mjs +0 -1582
  74. package/fesm2020/mat-table-ext.mjs.map +0 -1
  75. package/index.d.ts +0 -5
  76. package/lib/components/column-pinning/column-pinning.component.d.ts +0 -27
  77. package/lib/components/editing/editing.component.d.ts +0 -42
  78. package/lib/components/filter-columns-component/filter-columns-component.component.d.ts +0 -26
  79. package/lib/directives/resize-column.directive.d.ts +0 -27
  80. package/lib/mat-table-ext.component.d.ts +0 -348
  81. package/lib/mat-table-ext.module.d.ts +0 -58
  82. package/lib/mat-table-ext.service.d.ts +0 -11
  83. package/lib/models/tableExtModels.d.ts +0 -76
  84. /package/{assets → projects/mat-table-ext/assets}/_theming.scss +0 -0
  85. /package/{assets → projects/mat-table-ext/assets}/pinIcon.svg +0 -0
  86. /package/{assets → projects/mat-table-ext/assets}/pinLeft.svg +0 -0
  87. /package/{assets → projects/mat-table-ext/assets}/pinNone.svg +0 -0
  88. /package/{assets → projects/mat-table-ext/assets}/pinRight.svg +0 -0
  89. /package/{assets → projects/mat-table-ext/assets}/pinned.svg +0 -0
@@ -1,348 +0,0 @@
1
- import { SelectionModel } from '@angular/cdk/collections';
2
- import { CdkDragDrop } from '@angular/cdk/drag-drop';
3
- import { AfterViewInit, ChangeDetectorRef, EventEmitter } from '@angular/core';
4
- import { OnChanges, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
5
- import { FormBuilder, FormGroup } from '@angular/forms';
6
- import { MatDialog } from '@angular/material/dialog';
7
- import { MatMenuTrigger } from '@angular/material/menu';
8
- import { MatPaginator } from '@angular/material/paginator';
9
- import { MatSort } from '@angular/material/sort';
10
- import { MatTableDataSource } from '@angular/material/table';
11
- import { MTExColumn, MTExColumnPinOption, RowSelectionChange, CellTemplateRefMap, ExpansionChange, FilterSearchValue, MTExRow, ColumnVisibility } from '../lib/models/tableExtModels';
12
- import { MatTableExtService } from '../lib/mat-table-ext.service';
13
- import { DomSanitizer } from '@angular/platform-browser';
14
- import { MatIconRegistry } from '@angular/material/icon';
15
- import * as XLSX from 'xlsx';
16
- import * as i0 from "@angular/core";
17
- export declare class MatTableExtComponent implements OnInit, OnChanges, AfterViewInit {
18
- dialog: MatDialog;
19
- service: MatTableExtService;
20
- formBuildersService: FormBuilder;
21
- domSanitizer: DomSanitizer;
22
- matIconRegistry: MatIconRegistry;
23
- private cdr;
24
- menuTrigger: MatMenuTrigger;
25
- columnMenuTrigger: MatMenuTrigger;
26
- paginator: MatPaginator;
27
- sort: MatSort;
28
- dataSource: MatTableDataSource<any>;
29
- columns: MTExColumn[];
30
- columnResizable: boolean;
31
- stripedRows: boolean;
32
- rowHover: boolean;
33
- inlineRowEditing: boolean;
34
- inCellEditing: boolean;
35
- popupRowEditing: boolean;
36
- enableDelete: boolean;
37
- rowSelection: boolean;
38
- multiRowSelection: boolean;
39
- stickyFooter: boolean;
40
- stickyHeader: boolean;
41
- showFooterRow: boolean;
42
- columnFilter: boolean;
43
- loadingIndicator: boolean;
44
- sorting: boolean;
45
- showToolbar: boolean;
46
- toolbarTitle: string;
47
- tableHeight: string;
48
- toolbarHeight: string;
49
- tableWidth: string;
50
- scrollbarH: boolean;
51
- toolbarTemplate: TemplateRef<any> | undefined;
52
- columnHidable: boolean;
53
- columnPinnable: boolean;
54
- globalSearch: boolean;
55
- expandRows: boolean;
56
- dndColumns: boolean;
57
- showPaginator: boolean;
58
- showFirstLastButtons: boolean;
59
- exportButtonEnable: boolean;
60
- pageSizeOptions: number[];
61
- toolbarTemplateRef: TemplateRef<any> | undefined;
62
- headerTemplateRef: TemplateRef<any> | undefined;
63
- cellTemplateRef: TemplateRef<any> | undefined;
64
- expansionTemplateRef: TemplateRef<any> | undefined;
65
- popupEditingTemplateRef: TemplateRef<any> | undefined;
66
- inlineEditingTemplateRef: TemplateRef<any> | undefined;
67
- cellEditingTemplateRef: TemplateRef<any> | undefined;
68
- cellTemplateRefMap: CellTemplateRefMap;
69
- inlineChange: EventEmitter<any>;
70
- cellChange: EventEmitter<any>;
71
- popupChange: EventEmitter<any>;
72
- rowDeleted: EventEmitter<any>;
73
- scroll: EventEmitter<any>;
74
- selectionChanged: EventEmitter<RowSelectionChange>;
75
- expansionChange: EventEmitter<ExpansionChange>;
76
- tableID: number;
77
- columnPinningOptions: MTExColumnPinOption[];
78
- exportMenuCtrl: boolean;
79
- columnPinMenuCtrl: boolean;
80
- hideShowMenuCtrl: boolean;
81
- columnFilterBySelection: any;
82
- rowDataTemp: any;
83
- inlineEditingTemplateRefData: any;
84
- displayedColumns: string[];
85
- showHideColumnsArray: MTExColumn[];
86
- columnsList: string[];
87
- columnsArray: MTExColumn[];
88
- headersFiltersIds: string[];
89
- columnsToDisplayWithExpand: string[];
90
- selection: SelectionModel<any>;
91
- hiddenCtrl: SelectionModel<any>;
92
- tableData: any;
93
- filterValues: any;
94
- globalFilter: string;
95
- showHideFilter: string;
96
- individualFilter: string;
97
- toggleFilters: boolean;
98
- hideRows: boolean;
99
- expandedElement: any | null;
100
- currentRowIndex: number;
101
- currentRow: any;
102
- cellEditing: any;
103
- hideShowMenuGroup: FormGroup;
104
- cellTemplate: TemplateRef<any>;
105
- menuX: number;
106
- menuY: number;
107
- dynamicDisplayedColumns: any[];
108
- inputPropertyKeys: string[];
109
- constructor(dialog: MatDialog, service: MatTableExtService, formBuildersService: FormBuilder, domSanitizer: DomSanitizer, matIconRegistry: MatIconRegistry, cdr: ChangeDetectorRef);
110
- /**
111
- *
112
- * @param changes changes captured each time user changes property value.
113
- */
114
- ngOnChanges(changes: SimpleChanges): void;
115
- ngOnInit(): void;
116
- ngAfterViewInit(): void;
117
- /**
118
- * @description checks and updates the the column's hide and show properties.
119
- */
120
- setColumnHideShow(): void;
121
- /**
122
- * @description set the properties of the table.
123
- * @param changes changes captured each time user changes property value.
124
- */
125
- setPropertyValue(changes: SimpleChanges): void;
126
- /**
127
- * @description This mapping is used to set and update changesin the table.
128
- */
129
- setPropertiesMap: any;
130
- /**
131
- * @description used set data source for table.
132
- * @param value data source value from user.
133
- */
134
- setTableDataSource(value: any): void;
135
- /**
136
- * @description used create seletion model and set selection column visibility.
137
- * @param value boolean value to show or hide selection Column from table.
138
- */
139
- setRowSelection(value: boolean): void;
140
- /**
141
- * @description create filter header row and assigns filter predicate to table data source.
142
- * @param value boolean value to change visibility of column filter row.
143
- */
144
- setColumnFilter(value: boolean): void;
145
- /**
146
- * @description This method returns the list of visible column names.
147
- * @returns list of visible column names.
148
- */
149
- getDisplayedColumns(): string[];
150
- /**
151
- * @param menuType type of menu to open from toolbar.
152
- * @param event mouse event to open menu on that location.
153
- */
154
- openMenu(menuType: string, event: MouseEvent): void;
155
- /**
156
- * @description triggers when menu is closed and reset the required controls.
157
- */
158
- menuClosed(): void;
159
- /**
160
- * @description set list of columns to display in table.
161
- * @param columns columns array from user input.
162
- */
163
- setColumnsData(columns: MTExColumn[]): void;
164
- /**
165
- * @description set list of columns to display in table.
166
- * @param columns columns array from user input with configurations.
167
- */
168
- setColumnsList(columns: MTExColumn[]): void;
169
- /**
170
- * @description Take boolean value and name column and update its visibility status in table.
171
- * @param name name of the column to set visibility.
172
- * @param value boolean value to set visibility of the column.
173
- */
174
- showHideColumn(name: string, value: boolean): void;
175
- /**
176
- * @description This method will position the selection column to first and also update its visibility.
177
- * @param value value used to set visibility of the selection column.
178
- */
179
- updateSelectionColumnVisibility(value: boolean): void;
180
- /**
181
- * @description This method is used to update the position of column in columns array according to its dropped position.
182
- * @param event CdkDragDrop used to update column position in columns array.
183
- */
184
- onDrop(event: CdkDragDrop<any>): void;
185
- /**
186
- * @description This method create filter predicate function which will set search value to table filters
187
- * for both global and individual colum filtering.
188
- * @returns returns boolean value to filter rows in table.
189
- */
190
- createFilter(): (data: any, filter: string) => boolean;
191
- /**
192
- * @description assigns the search value to mat table data source to apply the filter.
193
- * @param searchValue value to be searched from table rows.
194
- */
195
- applyGlobalFilter(searchValue: string): void;
196
- /**
197
- * @description This method is used to apply column based filtering
198
- * @param searchValue value to be searched from table rows.
199
- * @param column filter will be applied based on this column field.
200
- */
201
- applyColumnFilter(searchValue: FilterSearchValue, column: MTExColumn): void;
202
- /**
203
- * @description This method will take row and its index enable inline editing tools on that row.
204
- * @param row row on which user wants to do edit.
205
- * @param index index of the row where inline editing will be enabled.
206
- */
207
- enableInlineEditing(row: any, index: number): void;
208
- /**
209
- * @description This method will create and return data to inline editing template.
210
- * @param row row on which user wants to do edit.
211
- * @param index index of the row where inline editing will be enabled.
212
- * @param column current column of the table.
213
- */
214
- getInlineEditingData(row: MTExRow, index: number, column: MTExColumn): any;
215
- /**
216
- * @description This method will take data from inline editing template and update in table data source.
217
- * @param row updated row from inline editing template.
218
- */
219
- updateInlineTemplateData: (row: MTExRow) => void;
220
- /**
221
- * @description This method set data for in-cell editing.
222
- * @param row row on which user wants to do edit.
223
- * @param index index of the row where inline editing will be enabled.
224
- */
225
- setCellData(row: MTExRow, index: number): void;
226
- /**
227
- * @description This will restore the data and cencel the inline editing.
228
- * @param row row on which user wants to do edit.
229
- * @param index index of the row where inline editing will be enabled.
230
- */
231
- cancelInlineEditing(row: MTExRow, index: number): void;
232
- /**
233
- * @description This method will save and update the inline editing data and emit the update row and index.
234
- * @param row row on which user wants to do edit.
235
- * @param index index of the row where inline editing will be enabled.
236
- */
237
- saveInlineEditing(row: MTExRow, index: number): void;
238
- /**
239
- * @description This method will save and update the cell editing data and emit the update row and index.
240
- */
241
- saveCellEditing(): void;
242
- /**
243
- * @description This method will delete the row from the given index and emit the deleted row and index.
244
- * @param row row to be deleted.
245
- * @param index index of the row to be deleted.
246
- */
247
- deleteRow(row: any, index: number): void;
248
- /**
249
- * @description This method will expand or collapse the row and emit expand event.
250
- * @param row row to be expanded or collapsed.
251
- * @param expand value used to expand or collapse the row.
252
- * @param index index of the row.
253
- */
254
- expandRow(row: MTExRow, expand: boolean, index: number): void;
255
- /**
256
- * @description This method is used to set data for popup component and open editing dialog.
257
- * @param row row which used want to edit.
258
- */
259
- openEditingDialog(row: MTExRow): void;
260
- /**
261
- * @description used to check whether all rows are selected.
262
- */
263
- isAllSelected(): boolean;
264
- /**
265
- * @description this method is used to toggle the all and no rows selection.
266
- */
267
- toggleAllRows(): void;
268
- /**
269
- * @description This method is used return aria-label for selection column checkboxs.
270
- * @param row row from table.
271
- * @returns labels for selection column checkboxs.
272
- */
273
- checkboxLabel(row?: any): string;
274
- /**
275
- * @description create form control for columns for hiding and and pinning purpose
276
- * @param columns list of columns to be displayed
277
- */
278
- setToolbarMenuControls(columns: MTExColumn[]): void;
279
- /**
280
- * @param column current column
281
- * @param event mouse event used to set the menu position
282
- */
283
- openPinnablePropertyMenu(column: MTExColumn, event: MouseEvent): void;
284
- /**
285
- * @description This method is used to reset menu checks when required.
286
- */
287
- resetMenuChecks(): void;
288
- /**
289
- * @description This method is used to filter columns for menus like pinning or hide show menu.
290
- * @param value search value to filter colunms
291
- */
292
- filterColumns(value: string): void;
293
- /**
294
- * @description This method is used to open hide show column menu.
295
- * @param columns columns array to display in hide show menu.
296
- */
297
- openHideShowMenu(columns: MTExColumn[]): void;
298
- /**
299
- * @param values columns
300
- */
301
- updateColumnsHideShow(values: ColumnVisibility): void;
302
- /**
303
- * @description This method is called when the table rows are scrolled.
304
- * @param event scroll event
305
- */
306
- onScroll(event: any): void;
307
- /**
308
- * @param row row to be toggled
309
- * @param index index of toggled row
310
- */
311
- setSelectedRows(row: any, index: number): void;
312
- /**
313
- * @description This method is used to display all hidden rows.
314
- */
315
- showHiddenRows(): void;
316
- /**
317
- * @description This method is used to hide all selected rows.
318
- */
319
- hideSelectedRows(): void;
320
- /**
321
- * @description This method is used to recalculate the required values for table.
322
- */
323
- reCal(): void;
324
- /**
325
- * @description This method is called in constructor method to add SVGs into icon registration.
326
- */
327
- addIconsToRegistry(): void;
328
- /**
329
- * @description This method is used to export table data.
330
- * @param type type of file to be exported.
331
- */
332
- exportTable(type: string): void;
333
- /**
334
- * @description This method is used to split name of filter row header to get index.
335
- * @param value value to be splited for index.
336
- * @returns Will return index of column from value.
337
- */
338
- returnIndex(value: string): number;
339
- /**
340
- * @description This method is used to manage column filtering, expanded data for exporting.
341
- * @param ws work sheet
342
- * @returns custom generated worksheet to be used in export.
343
- */
344
- writeSheetData(ws: XLSX.WorkSheet): XLSX.WorkSheet;
345
- getMergeIndex(merges: any[]): any[];
346
- static ɵfac: i0.ɵɵFactoryDeclaration<MatTableExtComponent, never>;
347
- static ɵcmp: i0.ɵɵComponentDeclaration<MatTableExtComponent, "mat-table-ext", never, { "dataSource": "dataSource"; "columns": "columns"; "columnResizable": "columnResizable"; "stripedRows": "stripedRows"; "rowHover": "rowHover"; "inlineRowEditing": "inlineRowEditing"; "inCellEditing": "inCellEditing"; "popupRowEditing": "popupRowEditing"; "enableDelete": "enableDelete"; "rowSelection": "rowSelection"; "multiRowSelection": "multiRowSelection"; "stickyFooter": "stickyFooter"; "stickyHeader": "stickyHeader"; "showFooterRow": "showFooterRow"; "columnFilter": "columnFilter"; "loadingIndicator": "loadingIndicator"; "sorting": "sorting"; "showToolbar": "showToolbar"; "toolbarTitle": "toolbarTitle"; "tableHeight": "tableHeight"; "toolbarHeight": "toolbarHeight"; "tableWidth": "tableWidth"; "scrollbarH": "scrollbarH"; "toolbarTemplate": "toolbarTemplate"; "columnHidable": "columnHidable"; "columnPinnable": "columnPinnable"; "globalSearch": "globalSearch"; "expandRows": "expandRows"; "dndColumns": "dndColumns"; "showPaginator": "showPaginator"; "showFirstLastButtons": "showFirstLastButtons"; "exportButtonEnable": "exportButtonEnable"; "pageSizeOptions": "pageSizeOptions"; "toolbarTemplateRef": "toolbarTemplateRef"; "headerTemplateRef": "headerTemplateRef"; "cellTemplateRef": "cellTemplateRef"; "expansionTemplateRef": "expansionTemplateRef"; "popupEditingTemplateRef": "popupEditingTemplateRef"; "inlineEditingTemplateRef": "inlineEditingTemplateRef"; "cellEditingTemplateRef": "cellEditingTemplateRef"; "cellTemplateRefMap": "cellTemplateRefMap"; }, { "inlineChange": "inlineChange"; "cellChange": "cellChange"; "popupChange": "popupChange"; "rowDeleted": "rowDeleted"; "scroll": "scroll"; "selectionChanged": "selectionChanged"; "expansionChange": "expansionChange"; }, never, never, false>;
348
- }
@@ -1,58 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./mat-table-ext.component";
3
- import * as i2 from "./directives/resize-column.directive";
4
- import * as i3 from "./components/column-pinning/column-pinning.component";
5
- import * as i4 from "./components/editing/editing.component";
6
- import * as i5 from "./components/filter-columns-component/filter-columns-component.component";
7
- import * as i6 from "@angular/common";
8
- import * as i7 from "@ngx-translate/core";
9
- import * as i8 from "@angular/material/table";
10
- import * as i9 from "@angular/forms";
11
- import * as i10 from "@angular/material/core";
12
- import * as i11 from "@angular/cdk/a11y";
13
- import * as i12 from "@angular/cdk/accordion";
14
- import * as i13 from "@angular/cdk/clipboard";
15
- import * as i14 from "@angular/cdk/stepper";
16
- import * as i15 from "@angular/cdk/table";
17
- import * as i16 from "@angular/cdk/tree";
18
- import * as i17 from "@angular/cdk/drag-drop";
19
- import * as i18 from "@angular/material/autocomplete";
20
- import * as i19 from "@angular/material/badge";
21
- import * as i20 from "@angular/material/bottom-sheet";
22
- import * as i21 from "@angular/material/button";
23
- import * as i22 from "@angular/material/button-toggle";
24
- import * as i23 from "@angular/material/card";
25
- import * as i24 from "@angular/material/checkbox";
26
- import * as i25 from "@angular/material/chips";
27
- import * as i26 from "@angular/material/stepper";
28
- import * as i27 from "@angular/material/datepicker";
29
- import * as i28 from "@angular/material/dialog";
30
- import * as i29 from "@angular/material/divider";
31
- import * as i30 from "@angular/material/expansion";
32
- import * as i31 from "@angular/material/grid-list";
33
- import * as i32 from "@angular/material/icon";
34
- import * as i33 from "@angular/material/input";
35
- import * as i34 from "@angular/material/list";
36
- import * as i35 from "@angular/material/menu";
37
- import * as i36 from "@angular/material/paginator";
38
- import * as i37 from "@angular/material/progress-bar";
39
- import * as i38 from "@angular/material/progress-spinner";
40
- import * as i39 from "@angular/material/radio";
41
- import * as i40 from "@angular/material/select";
42
- import * as i41 from "@angular/material/sidenav";
43
- import * as i42 from "@angular/material/slider";
44
- import * as i43 from "@angular/material/slide-toggle";
45
- import * as i44 from "@angular/material/snack-bar";
46
- import * as i45 from "@angular/material/sort";
47
- import * as i46 from "@angular/material/tabs";
48
- import * as i47 from "@angular/material/toolbar";
49
- import * as i48 from "@angular/material/tooltip";
50
- import * as i49 from "@angular/material/tree";
51
- import * as i50 from "@angular/cdk/portal";
52
- import * as i51 from "@angular/cdk/scrolling";
53
- import * as i52 from "@angular/material/form-field";
54
- export declare class MatTableExtModule {
55
- static ɵfac: i0.ɵɵFactoryDeclaration<MatTableExtModule, never>;
56
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatTableExtModule, [typeof i1.MatTableExtComponent, typeof i2.ResizeColumnDirective, typeof i3.ColumnPinningComponent, typeof i4.EditingComponent, typeof i5.FilterColumnsComponentComponent], [typeof i6.CommonModule, typeof i7.TranslateModule, typeof i8.MatTableModule, typeof i9.FormsModule, typeof i9.ReactiveFormsModule, typeof i10.MatNativeDateModule, typeof i11.A11yModule, typeof i12.CdkAccordionModule, typeof i13.ClipboardModule, typeof i14.CdkStepperModule, typeof i15.CdkTableModule, typeof i16.CdkTreeModule, typeof i17.DragDropModule, typeof i18.MatAutocompleteModule, typeof i19.MatBadgeModule, typeof i20.MatBottomSheetModule, typeof i21.MatButtonModule, typeof i22.MatButtonToggleModule, typeof i23.MatCardModule, typeof i24.MatCheckboxModule, typeof i25.MatChipsModule, typeof i26.MatStepperModule, typeof i27.MatDatepickerModule, typeof i28.MatDialogModule, typeof i29.MatDividerModule, typeof i30.MatExpansionModule, typeof i31.MatGridListModule, typeof i32.MatIconModule, typeof i33.MatInputModule, typeof i34.MatListModule, typeof i35.MatMenuModule, typeof i10.MatNativeDateModule, typeof i36.MatPaginatorModule, typeof i37.MatProgressBarModule, typeof i38.MatProgressSpinnerModule, typeof i39.MatRadioModule, typeof i10.MatRippleModule, typeof i40.MatSelectModule, typeof i41.MatSidenavModule, typeof i42.MatSliderModule, typeof i43.MatSlideToggleModule, typeof i44.MatSnackBarModule, typeof i45.MatSortModule, typeof i46.MatTabsModule, typeof i47.MatToolbarModule, typeof i48.MatTooltipModule, typeof i49.MatTreeModule, typeof i50.PortalModule, typeof i51.ScrollingModule, typeof i52.MatFormFieldModule], [typeof i1.MatTableExtComponent, typeof i2.ResizeColumnDirective, typeof i3.ColumnPinningComponent, typeof i4.EditingComponent, typeof i5.FilterColumnsComponentComponent]>;
57
- static ɵinj: i0.ɵɵInjectorDeclaration<MatTableExtModule>;
58
- }
@@ -1,11 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { BehaviorSubject } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class MatTableExtService {
5
- http: HttpClient;
6
- selectedRow: BehaviorSubject<any>;
7
- selectedRowIndex: BehaviorSubject<any>;
8
- constructor(http: HttpClient);
9
- static ɵfac: i0.ɵɵFactoryDeclaration<MatTableExtService, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<MatTableExtService>;
11
- }
@@ -1,76 +0,0 @@
1
- import { TemplateRef } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- /** Column definition of mat-table-ext. */
4
- export interface MTExColumn {
5
- field: string;
6
- options?: string[];
7
- header?: string;
8
- name?: string;
9
- footerText?: string;
10
- headerTooltip?: TooltipProp;
11
- cellTooltip?: TooltipProp;
12
- pinned?: 'left' | 'right';
13
- width?: string;
14
- disabled?: boolean;
15
- minWidth?: string;
16
- maxWidth?: string;
17
- hide?: boolean;
18
- type: MTExColumnType;
19
- cellTemplate?: TemplateRef<any> | null;
20
- headerTemplate?: TemplateRef<any> | null;
21
- }
22
- export interface DisplayColumn {
23
- filter: boolean;
24
- name: string;
25
- show: boolean;
26
- }
27
- export interface RowChange {
28
- row: {
29
- [key: string]: any;
30
- };
31
- index: number;
32
- }
33
- export interface RowSelectionChange {
34
- row: {
35
- [key: string]: any;
36
- };
37
- index: number;
38
- isSelected: boolean;
39
- }
40
- export interface ExpansionChange {
41
- data: {
42
- [key: string]: any;
43
- };
44
- index: number;
45
- expanded: boolean;
46
- }
47
- export interface CellTemplateRefMap {
48
- [key: string]: TemplateRef<any>;
49
- }
50
- /** Possible column type values. */
51
- export declare type MTExColumnType = 'selection' | string | boolean | number | 'date';
52
- export interface TooltipProp {
53
- value: string;
54
- tooltipPosition?: TooltipPosition;
55
- }
56
- export declare type TooltipPosition = 'left' | 'right' | 'above' | 'below' | 'before' | 'after';
57
- /** Cell template. */
58
- export interface MTExCellTemplate {
59
- [key: string]: TemplateRef<any>;
60
- }
61
- export interface FilterSearchValue {
62
- [key: string]: any;
63
- }
64
- export interface MTExRow {
65
- [key: string]: any;
66
- }
67
- export interface ColumnVisibility {
68
- [key: string]: any;
69
- }
70
- export interface MTExColumnPinOption {
71
- label: string | Observable<string>;
72
- value: MTExColumnPinValue;
73
- selected: boolean;
74
- field: string;
75
- }
76
- export declare type MTExColumnPinValue = 'left' | 'right' | null;