@ng-matero/extensions 19.4.1 → 20.0.1

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 (283) hide show
  1. package/_index.scss +1 -1
  2. package/alert/_alert-theme.scss +26 -31
  3. package/alert/_m2-alert.scss +59 -0
  4. package/alert/_m3-alert.scss +41 -0
  5. package/alert/alert.scss +27 -31
  6. package/alert/index.d.ts +30 -5
  7. package/button/index.d.ts +31 -5
  8. package/checkbox-group/index.d.ts +117 -5
  9. package/colorpicker/_colorpicker-theme.scss +31 -36
  10. package/{core/tokens/m2/mtx/_colorpicker.scss → colorpicker/_m2-colorpicker.scss} +6 -10
  11. package/colorpicker/_m3-colorpicker.scss +23 -0
  12. package/colorpicker/colorpicker-toggle.scss +4 -9
  13. package/colorpicker/index.d.ts +285 -3
  14. package/column-resize/index.d.ts +456 -3
  15. package/core/index.d.ts +147 -5
  16. package/core/theming/_color-api-backwards-compatibility.scss +8 -15
  17. package/core/theming/_definition.scss +81 -75
  18. package/core/theming/_palettes.scss +1036 -0
  19. package/core/tokens/{m2/_index.scss → _m2-tokens.scss} +22 -22
  20. package/core/tokens/_m2-utils.scss +108 -0
  21. package/core/tokens/_m3-system.scss +128 -106
  22. package/core/tokens/_m3-tokens.scss +36 -282
  23. package/core/tokens/_m3-utils.scss +48 -0
  24. package/core/tokens/_token-utils.scss +67 -239
  25. package/core/tokens/m3/_index.scss +7 -0
  26. package/core/tokens/m3/_md-sys-color.scss +156 -0
  27. package/core/tokens/m3/_md-sys-elevation.scss +15 -0
  28. package/core/tokens/m3/_md-sys-motion.scss +35 -0
  29. package/core/tokens/m3/_md-sys-shape.scss +21 -0
  30. package/core/tokens/m3/_md-sys-state.scss +13 -0
  31. package/core/tokens/m3/_md-sys-typescale.scss +128 -0
  32. package/core/tokens/m3/_theme.scss +47 -0
  33. package/datetimepicker/_datetimepicker-theme.scss +29 -39
  34. package/datetimepicker/_m2-datetimepicker.scss +149 -0
  35. package/datetimepicker/_m3-datetimepicker.scss +81 -0
  36. package/datetimepicker/calendar-body.scss +31 -56
  37. package/datetimepicker/calendar.scss +43 -79
  38. package/datetimepicker/clock.scss +28 -47
  39. package/datetimepicker/datetimepicker-content.scss +9 -15
  40. package/datetimepicker/datetimepicker-toggle.scss +4 -9
  41. package/datetimepicker/index.d.ts +1208 -3
  42. package/datetimepicker/time-view.scss +26 -32
  43. package/dialog/index.d.ts +54 -5
  44. package/drawer/_drawer-theme.scss +25 -30
  45. package/{core/tokens/m2/mtx/_drawer.scss → drawer/_m2-drawer.scss} +9 -12
  46. package/drawer/_m3-drawer.scss +24 -0
  47. package/drawer/drawer-container.scss +13 -24
  48. package/drawer/index.d.ts +221 -3
  49. package/fesm2022/mtxAlert.mjs +7 -7
  50. package/fesm2022/mtxAlert.mjs.map +1 -1
  51. package/fesm2022/mtxButton.mjs +11 -11
  52. package/fesm2022/mtxButton.mjs.map +1 -1
  53. package/fesm2022/mtxCheckboxGroup.mjs +7 -7
  54. package/fesm2022/mtxColorpicker.mjs +21 -21
  55. package/fesm2022/mtxColorpicker.mjs.map +1 -1
  56. package/fesm2022/mtxColumnResize.mjs +232 -103
  57. package/fesm2022/mtxColumnResize.mjs.map +1 -1
  58. package/fesm2022/mtxCore.mjs +21 -21
  59. package/fesm2022/mtxDatetimepicker.mjs +63 -67
  60. package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
  61. package/fesm2022/mtxDialog.mjs +10 -10
  62. package/fesm2022/mtxDialog.mjs.map +1 -1
  63. package/fesm2022/mtxDrawer.mjs +10 -10
  64. package/fesm2022/mtxGrid.mjs +78 -77
  65. package/fesm2022/mtxGrid.mjs.map +1 -1
  66. package/fesm2022/mtxLoader.mjs +7 -7
  67. package/fesm2022/mtxPhotoviewer.mjs +7 -7
  68. package/fesm2022/mtxPopover.mjs +24 -25
  69. package/fesm2022/mtxPopover.mjs.map +1 -1
  70. package/fesm2022/mtxProgress.mjs +7 -7
  71. package/fesm2022/mtxSelect.mjs +54 -54
  72. package/fesm2022/mtxSelect.mjs.map +1 -1
  73. package/fesm2022/mtxSplit.mjs +10 -10
  74. package/fesm2022/mtxTooltip.mjs +13 -13
  75. package/fesm2022/mtxTooltip.mjs.map +1 -1
  76. package/grid/_grid-theme.scss +24 -34
  77. package/grid/_m2-grid.scss +66 -0
  78. package/grid/_m3-grid.scss +35 -0
  79. package/grid/column-menu.scss +6 -23
  80. package/grid/column-resize/_column-resize.scss +35 -30
  81. package/grid/grid.scss +41 -74
  82. package/grid/index.d.ts +799 -3
  83. package/index.d.ts +2 -5
  84. package/loader/_loader-theme.scss +26 -31
  85. package/{core/tokens/m2/mtx/_loader.scss → loader/_m2-loader.scss} +5 -10
  86. package/loader/_m3-loader.scss +20 -0
  87. package/loader/index.d.ts +43 -5
  88. package/loader/loader.scss +4 -5
  89. package/package.json +28 -28
  90. package/photoviewer/index.d.ts +26 -5
  91. package/{core/tokens/m2/mtx/_popover.scss → popover/_m2-popover.scss} +9 -12
  92. package/popover/_m3-popover.scss +26 -0
  93. package/popover/_popover-theme.scss +26 -31
  94. package/popover/index.d.ts +399 -3
  95. package/popover/popover.scss +23 -29
  96. package/prebuilt-themes/azure-blue.css +1 -1
  97. package/prebuilt-themes/cyan-orange.css +1 -1
  98. package/prebuilt-themes/deeppurple-amber.css +1 -1
  99. package/prebuilt-themes/indigo-pink.css +1 -1
  100. package/prebuilt-themes/magenta-violet.css +1 -1
  101. package/prebuilt-themes/pink-bluegrey.css +1 -1
  102. package/prebuilt-themes/purple-green.css +1 -1
  103. package/prebuilt-themes/rose-red.css +1 -1
  104. package/progress/_m2-progress.scss +53 -0
  105. package/progress/_m3-progress.scss +33 -0
  106. package/progress/_progress-theme.scss +22 -34
  107. package/progress/index.d.ts +35 -5
  108. package/progress/progress.scss +28 -43
  109. package/select/_m2-select.scss +79 -0
  110. package/select/_m3-select.scss +46 -0
  111. package/select/_select-theme.scss +27 -37
  112. package/select/index.d.ts +381 -3
  113. package/select/select.scss +189 -205
  114. package/{core/tokens/m2/mtx/_split.scss → split/_m2-split.scss} +6 -9
  115. package/split/_m3-split.scss +23 -0
  116. package/split/_split-theme.scss +31 -34
  117. package/split/index.d.ts +255 -3
  118. package/split/split.scss +8 -11
  119. package/tooltip/_m2-tooltip.scss +50 -0
  120. package/tooltip/_m3-tooltip.scss +28 -0
  121. package/tooltip/_tooltip-theme.scss +23 -47
  122. package/tooltip/index.d.ts +345 -3
  123. package/tooltip/tooltip.scss +11 -15
  124. package/alert/alert-module.d.ts +0 -8
  125. package/alert/alert.d.ts +0 -19
  126. package/alert/public-api.d.ts +0 -2
  127. package/button/button-loading.d.ts +0 -19
  128. package/button/button-module.d.ts +0 -10
  129. package/button/public-api.d.ts +0 -2
  130. package/checkbox-group/checkbox-group-module.d.ts +0 -11
  131. package/checkbox-group/checkbox-group.d.ts +0 -86
  132. package/checkbox-group/interfaces.d.ts +0 -17
  133. package/checkbox-group/public-api.d.ts +0 -3
  134. package/colorpicker/colorpicker-animations.d.ts +0 -9
  135. package/colorpicker/colorpicker-input.d.ts +0 -88
  136. package/colorpicker/colorpicker-module.d.ts +0 -15
  137. package/colorpicker/colorpicker-toggle.d.ts +0 -39
  138. package/colorpicker/colorpicker.d.ts +0 -140
  139. package/colorpicker/public-api.d.ts +0 -5
  140. package/column-resize/column-resize-directives/column-resize-flex.d.ts +0 -29
  141. package/column-resize/column-resize-directives/column-resize.d.ts +0 -29
  142. package/column-resize/column-resize-directives/constants.d.ts +0 -10
  143. package/column-resize/column-resize-module.d.ts +0 -12
  144. package/column-resize/column-resize-notifier.d.ts +0 -48
  145. package/column-resize/column-resize.d.ts +0 -39
  146. package/column-resize/column-size-store.d.ts +0 -12
  147. package/column-resize/event-dispatcher.d.ts +0 -35
  148. package/column-resize/overlay-handle.d.ts +0 -43
  149. package/column-resize/polyfill.d.ts +0 -9
  150. package/column-resize/public-api.d.ts +0 -12
  151. package/column-resize/resizable.d.ts +0 -63
  152. package/column-resize/resize-ref.d.ts +0 -17
  153. package/column-resize/resize-strategy.d.ts +0 -84
  154. package/column-resize/selectors.d.ts +0 -10
  155. package/core/datetime/datetime-adapter.d.ts +0 -45
  156. package/core/datetime/datetime-formats.d.ts +0 -22
  157. package/core/datetime/datetime.module.d.ts +0 -15
  158. package/core/datetime/index.d.ts +0 -5
  159. package/core/datetime/native-datetime-adapter.d.ts +0 -40
  160. package/core/datetime/native-datetime-formats.d.ts +0 -2
  161. package/core/pipes/index.d.ts +0 -3
  162. package/core/pipes/is-template-ref.pipe.d.ts +0 -7
  163. package/core/pipes/pipes.module.d.ts +0 -9
  164. package/core/pipes/to-observable.pipe.d.ts +0 -8
  165. package/core/public-api.d.ts +0 -2
  166. package/core/theming/_inspection.scss +0 -38
  167. package/core/theming/_validation.scss +0 -5
  168. package/core/tokens/_density.scss +0 -49
  169. package/core/tokens/_format-tokens.scss +0 -5
  170. package/core/tokens/_token-definition.scss +0 -271
  171. package/core/tokens/m2/mdc/_plain-tooltip.scss +0 -63
  172. package/core/tokens/m2/mtx/_alert.scss +0 -62
  173. package/core/tokens/m2/mtx/_datetimepicker.scss +0 -152
  174. package/core/tokens/m2/mtx/_grid.scss +0 -69
  175. package/core/tokens/m2/mtx/_progress.scss +0 -56
  176. package/core/tokens/m2/mtx/_select.scss +0 -82
  177. package/core/tokens/m3/definitions/_index.scss +0 -9
  178. package/core/tokens/m3/definitions/_md-comp-plain-tooltip.scss +0 -51
  179. package/core/tokens/m3/definitions/_md-ref-palette.scss +0 -100
  180. package/core/tokens/m3/definitions/_md-ref-typeface.scss +0 -14
  181. package/core/tokens/m3/definitions/_md-sys-color.scss +0 -126
  182. package/core/tokens/m3/definitions/_md-sys-elevation.scss +0 -15
  183. package/core/tokens/m3/definitions/_md-sys-motion.scss +0 -46
  184. package/core/tokens/m3/definitions/_md-sys-shape.scss +0 -24
  185. package/core/tokens/m3/definitions/_md-sys-state.scss +0 -13
  186. package/core/tokens/m3/definitions/_md-sys-typescale.scss +0 -308
  187. package/core/tokens/m3/index.scss +0 -47
  188. package/core/tokens/m3/mdc/_plain-tooltip.scss +0 -15
  189. package/core/tokens/m3/mtx/_alert.scss +0 -41
  190. package/core/tokens/m3/mtx/_colorpicker.scss +0 -19
  191. package/core/tokens/m3/mtx/_datetimepicker.scss +0 -140
  192. package/core/tokens/m3/mtx/_drawer.scss +0 -22
  193. package/core/tokens/m3/mtx/_grid.scss +0 -32
  194. package/core/tokens/m3/mtx/_loader.scss +0 -22
  195. package/core/tokens/m3/mtx/_popover.scss +0 -25
  196. package/core/tokens/m3/mtx/_progress.scss +0 -32
  197. package/core/tokens/m3/mtx/_select.scss +0 -76
  198. package/core/tokens/m3/mtx/_split.scss +0 -30
  199. package/datetimepicker/calendar-body.d.ts +0 -66
  200. package/datetimepicker/calendar.d.ts +0 -157
  201. package/datetimepicker/clock.d.ts +0 -101
  202. package/datetimepicker/datetimepicker-actions.d.ts +0 -36
  203. package/datetimepicker/datetimepicker-animations.d.ts +0 -11
  204. package/datetimepicker/datetimepicker-errors.d.ts +0 -2
  205. package/datetimepicker/datetimepicker-filtertype.d.ts +0 -5
  206. package/datetimepicker/datetimepicker-input.d.ts +0 -105
  207. package/datetimepicker/datetimepicker-intl.d.ts +0 -53
  208. package/datetimepicker/datetimepicker-module.d.ts +0 -22
  209. package/datetimepicker/datetimepicker-toggle.d.ts +0 -42
  210. package/datetimepicker/datetimepicker-types.d.ts +0 -6
  211. package/datetimepicker/datetimepicker.d.ts +0 -274
  212. package/datetimepicker/month-view.d.ts +0 -80
  213. package/datetimepicker/multi-year-view.d.ts +0 -86
  214. package/datetimepicker/public-api.d.ts +0 -16
  215. package/datetimepicker/time-view.d.ts +0 -147
  216. package/datetimepicker/year-view.d.ts +0 -68
  217. package/dialog/dialog-config.d.ts +0 -17
  218. package/dialog/dialog-container.d.ts +0 -11
  219. package/dialog/dialog-module.d.ts +0 -12
  220. package/dialog/dialog.d.ts +0 -15
  221. package/dialog/public-api.d.ts +0 -4
  222. package/drawer/drawer-animations.d.ts +0 -8
  223. package/drawer/drawer-config.d.ts +0 -63
  224. package/drawer/drawer-container.d.ts +0 -35
  225. package/drawer/drawer-module.d.ts +0 -10
  226. package/drawer/drawer-ref.d.ts +0 -53
  227. package/drawer/drawer.d.ts +0 -59
  228. package/drawer/public-api.d.ts +0 -6
  229. package/grid/cell.d.ts +0 -32
  230. package/grid/column-menu.d.ts +0 -39
  231. package/grid/column-resize/column-resize-directives/column-resize-flex.d.ts +0 -24
  232. package/grid/column-resize/column-resize-directives/column-resize.d.ts +0 -24
  233. package/grid/column-resize/column-resize-directives/common.d.ts +0 -13
  234. package/grid/column-resize/column-resize-module.d.ts +0 -17
  235. package/grid/column-resize/index.d.ts +0 -7
  236. package/grid/column-resize/overlay-handle.d.ts +0 -32
  237. package/grid/column-resize/resizable-directives/common.d.ts +0 -19
  238. package/grid/column-resize/resizable-directives/resizable.d.ts +0 -32
  239. package/grid/column-resize/resize-strategy.d.ts +0 -20
  240. package/grid/expansion-toggle.d.ts +0 -17
  241. package/grid/grid-module.d.ts +0 -31
  242. package/grid/grid-pipes.d.ts +0 -39
  243. package/grid/grid-utils.d.ts +0 -33
  244. package/grid/grid.d.ts +0 -268
  245. package/grid/interfaces.d.ts +0 -180
  246. package/grid/public-api.d.ts +0 -17
  247. package/grid/selectable-cell.d.ts +0 -16
  248. package/loader/loader-module.d.ts +0 -10
  249. package/loader/loader.d.ts +0 -30
  250. package/loader/public-api.d.ts +0 -2
  251. package/photoviewer/photoviewer-module.d.ts +0 -7
  252. package/photoviewer/photoviewer.d.ts +0 -17
  253. package/photoviewer/public-api.d.ts +0 -2
  254. package/popover/popover-animations.d.ts +0 -11
  255. package/popover/popover-content.d.ts +0 -43
  256. package/popover/popover-errors.d.ts +0 -14
  257. package/popover/popover-interfaces.d.ts +0 -50
  258. package/popover/popover-module.d.ts +0 -13
  259. package/popover/popover-target.d.ts +0 -7
  260. package/popover/popover-trigger.d.ts +0 -132
  261. package/popover/popover-types.d.ts +0 -10
  262. package/popover/popover.d.ts +0 -147
  263. package/popover/public-api.d.ts +0 -8
  264. package/progress/progress-module.d.ts +0 -8
  265. package/progress/progress.d.ts +0 -24
  266. package/progress/public-api.d.ts +0 -2
  267. package/public-api.d.ts +0 -2
  268. package/select/option.d.ts +0 -21
  269. package/select/public-api.d.ts +0 -5
  270. package/select/select-intl.d.ts +0 -18
  271. package/select/select-module.d.ts +0 -12
  272. package/select/select.d.ts +0 -270
  273. package/select/templates.d.ts +0 -67
  274. package/split/interfaces.d.ts +0 -52
  275. package/split/public-api.d.ts +0 -5
  276. package/split/split-module.d.ts +0 -9
  277. package/split/split-pane.d.ts +0 -53
  278. package/split/split.d.ts +0 -133
  279. package/split/utils.d.ts +0 -13
  280. package/tooltip/public-api.d.ts +0 -3
  281. package/tooltip/tooltip-animations.d.ts +0 -9
  282. package/tooltip/tooltip-module.d.ts +0 -13
  283. package/tooltip/tooltip.d.ts +0 -321
package/grid/index.d.ts CHANGED
@@ -1,5 +1,801 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ElementRef, NgZone, Provider, Type, Injector, ViewContainerRef, ChangeDetectorRef, TemplateRef, EventEmitter, InjectionToken, OnChanges, AfterViewInit, OnDestroy, QueryList, TrackByFunction, KeyValueChangeRecord, SimpleChanges, OnInit, DoCheck, PipeTransform } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
+ import * as i2$1 from '@angular/forms';
5
+ import * as i3$1 from '@angular/material/table';
6
+ import { MatTable, MatRowDef, MatHeaderRowDef, MatFooterRowDef, MatTableDataSource } from '@angular/material/table';
7
+ import * as i4 from '@angular/material/sort';
8
+ import { SortDirection, MatSort, Sort } from '@angular/material/sort';
9
+ import * as i5 from '@angular/material/paginator';
10
+ import { MatPaginator, PageEvent } from '@angular/material/paginator';
11
+ import * as i6 from '@angular/material/checkbox';
12
+ import * as i7 from '@angular/material/button';
13
+ import * as i8 from '@angular/material/progress-bar';
14
+ import * as i9 from '@angular/material/chips';
15
+ import * as i10 from '@angular/material/tooltip';
16
+ import { TooltipPosition, TooltipTouchGestures } from '@angular/material/tooltip';
17
+ import * as i11 from '@angular/material/badge';
18
+ import { MatBadgePosition, MatBadgeSize } from '@angular/material/badge';
19
+ import * as i12 from '@angular/material/icon';
20
+ import * as i13 from '@angular/material/select';
21
+ import * as i14 from '@angular/material/form-field';
22
+ import * as i15 from '@angular/material/menu';
23
+ import { MatMenu, MatMenuTrigger } from '@angular/material/menu';
24
+ import * as i16 from '@angular/cdk/drag-drop';
25
+ import { CdkDragDrop } from '@angular/cdk/drag-drop';
26
+ import * as i17 from '@ng-matero/extensions/dialog';
27
+ import * as i18 from '@ng-matero/extensions/core';
28
+ import { Directionality } from '@angular/cdk/bidi';
29
+ import { CdkColumnDef } from '@angular/cdk/table';
30
+ import { ResizeOverlayHandle, ColumnResize, HeaderRowEventDispatcher, ColumnResizeNotifierSource, ResizeRef, _CoalescedStyleScheduler, ColumnResizeNotifier, Resizable, ResizeStrategy, CdkFlexTableResizeStrategy } from '@ng-matero/extensions/column-resize';
31
+ export { TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER as MAT_TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER } from '@ng-matero/extensions/column-resize';
32
+ import * as i2 from '@angular/material/core';
33
+ import { ThemePalette } from '@angular/material/core';
34
+ import * as i3 from '@angular/cdk/overlay';
35
+ import { Overlay } from '@angular/cdk/overlay';
36
+ import { SelectionModel } from '@angular/cdk/collections';
37
+ import { Observable } from 'rxjs';
38
+ import * as _ng_matero_extensions_grid from '@ng-matero/extensions/grid';
39
+
1
40
  /**
2
- * Generated bundle index. Do not edit.
41
+ * @license
42
+ * Copyright Google LLC All Rights Reserved.
43
+ *
44
+ * Use of this source code is governed by an MIT-style license that can be
45
+ * found in the LICENSE file at https://angular.dev/license
3
46
  */
4
- /// <amd-module name="@ng-matero/extensions/grid" />
5
- export * from './public-api';
47
+
48
+ /**
49
+ * Component shown over the edge of a resizable column that is responsible
50
+ * for handling column resize mouse events and displaying a vertical line along the column edge.
51
+ */
52
+ declare class MatColumnResizeOverlayHandle extends ResizeOverlayHandle {
53
+ protected readonly columnDef: CdkColumnDef;
54
+ protected readonly columnResize: ColumnResize;
55
+ protected readonly directionality: Directionality;
56
+ protected readonly elementRef: ElementRef<any>;
57
+ protected readonly eventDispatcher: HeaderRowEventDispatcher;
58
+ protected readonly ngZone: NgZone;
59
+ protected readonly resizeNotifier: ColumnResizeNotifierSource;
60
+ protected readonly resizeRef: ResizeRef;
61
+ protected readonly styleScheduler: _CoalescedStyleScheduler;
62
+ protected readonly document: Document;
63
+ topElement: ElementRef<HTMLElement>;
64
+ protected updateResizeActive(active: boolean): void;
65
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatColumnResizeOverlayHandle, never>;
66
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatColumnResizeOverlayHandle, "ng-component", never, {}, {}, never, never, true, never>;
67
+ }
68
+
69
+ declare const TABLE_PROVIDERS: Provider[];
70
+ declare const FLEX_PROVIDERS: Provider[];
71
+ declare const TABLE_HOST_BINDINGS: {
72
+ class: string;
73
+ };
74
+ declare const FLEX_HOST_BINDINGS: {
75
+ class: string;
76
+ };
77
+ declare abstract class AbstractMatColumnResize extends ColumnResize {
78
+ getTableHeight(): number;
79
+ }
80
+
81
+ /**
82
+ * @license
83
+ * Copyright Google LLC All Rights Reserved.
84
+ *
85
+ * Use of this source code is governed by an MIT-style license that can be
86
+ * found in the LICENSE file at https://angular.dev/license
87
+ */
88
+
89
+ /**
90
+ * Explicitly enables column resizing for a table-based mat-table.
91
+ * Individual columns must be annotated specifically.
92
+ */
93
+ declare class MatColumnResize extends AbstractMatColumnResize {
94
+ readonly columnResizeNotifier: ColumnResizeNotifier;
95
+ readonly elementRef: ElementRef<HTMLElement>;
96
+ protected readonly eventDispatcher: HeaderRowEventDispatcher;
97
+ protected readonly ngZone: NgZone;
98
+ protected readonly notifier: ColumnResizeNotifierSource;
99
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatColumnResize, never>;
100
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatColumnResize, "table[mat-table][columnResize]", never, {}, {}, never, never, true, never>;
101
+ }
102
+
103
+ /**
104
+ * @license
105
+ * Copyright Google LLC All Rights Reserved.
106
+ *
107
+ * Use of this source code is governed by an MIT-style license that can be
108
+ * found in the LICENSE file at https://angular.dev/license
109
+ */
110
+
111
+ /**
112
+ * Explicitly enables column resizing for a flexbox-based mat-table.
113
+ * Individual columns must be annotated specifically.
114
+ */
115
+ declare class MatColumnResizeFlex extends AbstractMatColumnResize {
116
+ readonly columnResizeNotifier: ColumnResizeNotifier;
117
+ readonly elementRef: ElementRef<HTMLElement>;
118
+ protected readonly eventDispatcher: HeaderRowEventDispatcher;
119
+ protected readonly ngZone: NgZone;
120
+ protected readonly notifier: ColumnResizeNotifierSource;
121
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatColumnResizeFlex, never>;
122
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatColumnResizeFlex, "mat-table[columnResize]", never, {}, {}, never, never, true, never>;
123
+ }
124
+
125
+ /**
126
+ * @license
127
+ * Copyright Google LLC All Rights Reserved.
128
+ *
129
+ * Use of this source code is governed by an MIT-style license that can be
130
+ * found in the LICENSE file at https://angular.dev/license
131
+ */
132
+
133
+ declare abstract class AbstractMatResizable extends Resizable<MatColumnResizeOverlayHandle> {
134
+ minWidthPxInternal: number;
135
+ protected getInlineHandleCssClassName(): string;
136
+ protected getOverlayHandleComponentType(): Type<MatColumnResizeOverlayHandle>;
137
+ }
138
+ declare const RESIZABLE_HOST_BINDINGS: {
139
+ class: string;
140
+ };
141
+ declare const RESIZABLE_INPUTS: string[];
142
+
143
+ /**
144
+ * Explicitly enables column resizing for a mat-header-cell.
145
+ */
146
+ declare class MatResizable extends AbstractMatResizable {
147
+ protected readonly columnDef: CdkColumnDef;
148
+ protected readonly columnResize: ColumnResize;
149
+ protected readonly directionality: Directionality;
150
+ protected readonly elementRef: ElementRef<any>;
151
+ protected readonly eventDispatcher: HeaderRowEventDispatcher;
152
+ protected readonly injector: Injector;
153
+ protected readonly ngZone: NgZone;
154
+ protected readonly overlay: Overlay;
155
+ protected readonly resizeNotifier: ColumnResizeNotifierSource;
156
+ protected readonly resizeStrategy: ResizeStrategy;
157
+ protected readonly styleScheduler: _CoalescedStyleScheduler;
158
+ protected readonly viewContainerRef: ViewContainerRef;
159
+ protected readonly changeDetectorRef: ChangeDetectorRef;
160
+ protected readonly document: Document;
161
+ isResizable: boolean;
162
+ get resizableClass(): string;
163
+ get resizable(): any;
164
+ set resizable(newValue: any);
165
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatResizable, never>;
166
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatResizable, "mat-header-cell[resizable], th[mat-header-cell][resizable]", never, { "minWidthPx": { "alias": "matResizableMinWidthPx"; "required": false; }; "maxWidthPx": { "alias": "matResizableMaxWidthPx"; "required": false; }; "resizable": { "alias": "resizable"; "required": false; }; }, {}, never, never, true, never>;
167
+ }
168
+
169
+ declare class MatColumnResizeCommonModule {
170
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatColumnResizeCommonModule, never>;
171
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatColumnResizeCommonModule, never, [typeof MatColumnResizeOverlayHandle], [typeof MatColumnResizeOverlayHandle]>;
172
+ static ɵinj: i0.ɵɵInjectorDeclaration<MatColumnResizeCommonModule>;
173
+ }
174
+ declare class MatColumnResizeModule {
175
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatColumnResizeModule, never>;
176
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatColumnResizeModule, never, [typeof i2.MatCommonModule, typeof i3.OverlayModule, typeof MatColumnResizeCommonModule, typeof MatColumnResize, typeof MatColumnResizeFlex, typeof MatResizable], [typeof MatColumnResize, typeof MatColumnResizeFlex, typeof MatResizable]>;
177
+ static ɵinj: i0.ɵɵInjectorDeclaration<MatColumnResizeModule>;
178
+ }
179
+
180
+ /** Column definition of grid. */
181
+ interface MtxGridColumn<T = any> {
182
+ field: string;
183
+ header?: string | Observable<string>;
184
+ hide?: boolean;
185
+ show?: boolean;
186
+ disabled?: boolean;
187
+ pinned?: MtxGridColumnPinValue;
188
+ left?: string;
189
+ right?: string;
190
+ width?: string;
191
+ resizable?: boolean;
192
+ minWidth?: number;
193
+ maxWidth?: number;
194
+ sortable?: boolean | string;
195
+ sortProp?: MtxGridSortProp;
196
+ type?: MtxGridColumnType;
197
+ typeParameter?: MtxGridColumnTypeParameter;
198
+ tag?: MtxGridColumnTag;
199
+ buttons?: MtxGridColumnButton<T>[] | ((rowData: T) => MtxGridColumnButton<T>[]);
200
+ formatter?: (rowData: T, colDef?: MtxGridColumn) => any;
201
+ cellTemplate?: TemplateRef<any> | null;
202
+ showExpand?: boolean;
203
+ description?: string;
204
+ summary?: ((data: T[], colDef?: MtxGridColumn) => any) | string;
205
+ class?: string | ((rowData?: T, colDef?: MtxGridColumn) => string);
206
+ }
207
+ /** Possible column pin values. */
208
+ declare type MtxGridColumnPinValue = 'left' | 'right' | null;
209
+ /** Column pin option */
210
+ interface MtxGridColumnPinOption {
211
+ label: string | Observable<string>;
212
+ value: MtxGridColumnPinValue;
213
+ }
214
+ /** Possible column type values. */
215
+ declare type MtxGridColumnType = 'button' | 'tag' | 'link' | 'image' | 'boolean' | 'number' | 'currency' | 'percent' | 'date';
216
+ /** Column type parameter. */
217
+ interface MtxGridColumnTypeParameter {
218
+ currencyCode?: string;
219
+ display?: string | boolean;
220
+ digitsInfo?: string;
221
+ format?: string;
222
+ locale?: string;
223
+ timezone?: string;
224
+ }
225
+ /** The properties of data sort. */
226
+ interface MtxGridSortProp {
227
+ arrowPosition?: 'before' | 'after';
228
+ disableClear?: boolean;
229
+ id?: string;
230
+ start?: 'asc' | 'desc';
231
+ }
232
+ /** Column tag of grid. */
233
+ interface MtxGridColumnTag {
234
+ [key: number]: MtxGridColumnTagValue;
235
+ [key: string]: MtxGridColumnTagValue;
236
+ }
237
+ /** The properties of column tag. */
238
+ interface MtxGridColumnTagValue {
239
+ text?: string;
240
+ color?: string;
241
+ }
242
+ /** The properties of column button. */
243
+ interface MtxGridColumnButton<T = any> {
244
+ type?: MtxGridButtonType;
245
+ text?: string | Observable<string>;
246
+ icon?: string;
247
+ fontIcon?: string;
248
+ svgIcon?: string;
249
+ color?: ThemePalette;
250
+ class?: string;
251
+ disabled?: boolean | ((rowData: T) => boolean);
252
+ click?: (rowData: T) => void;
253
+ iif?: (rowData: T) => boolean;
254
+ pop?: string | Observable<string> | MtxGridColumnButtonPop;
255
+ tooltip?: string | Observable<string> | MtxGridColumnButtonTooltip;
256
+ badge?: number | string | Observable<string> | MtxGridColumnButtonBadge;
257
+ }
258
+ /** The properties of column button pop. */
259
+ interface MtxGridColumnButtonPop {
260
+ title: string | Observable<string>;
261
+ description?: string | Observable<string>;
262
+ okColor?: ThemePalette;
263
+ okText?: string | Observable<string>;
264
+ closeColor?: ThemePalette;
265
+ closeText?: string | Observable<string>;
266
+ }
267
+ /** The properties of column button tooltip. */
268
+ interface MtxGridColumnButtonTooltip {
269
+ message: string | Observable<string>;
270
+ position?: TooltipPosition;
271
+ positionAtOrigin?: boolean;
272
+ class?: any;
273
+ hideDelay?: number;
274
+ showDelay?: number;
275
+ touchGestures?: TooltipTouchGestures;
276
+ disabled?: boolean;
277
+ }
278
+ /** The properties of column button badge. */
279
+ interface MtxGridColumnButtonBadge {
280
+ content: number | string | Observable<string>;
281
+ description?: string | Observable<string>;
282
+ color?: ThemePalette;
283
+ position?: MatBadgePosition;
284
+ size?: MatBadgeSize;
285
+ overlap?: boolean;
286
+ disabled?: boolean;
287
+ hidden?: boolean;
288
+ }
289
+ /** Cell template. */
290
+ interface MtxGridCellTemplate {
291
+ [key: string]: TemplateRef<any>;
292
+ }
293
+ /** Row selection formatter. */
294
+ interface MtxGridRowSelectionFormatter<T = any> {
295
+ disabled?: (rowData: T, index: number) => boolean;
296
+ hideCheckbox?: (rowData: T, index: number) => boolean;
297
+ }
298
+ /** Row class formatter. */
299
+ interface MtxGridRowClassFormatter<T = any> {
300
+ [className: string]: (rowData: T, index: number) => boolean;
301
+ }
302
+ /** Possible button type values. */
303
+ type MtxGridButtonType = 'basic' | 'raised' | 'stroked' | 'flat' | 'icon' | 'fab' | 'mini-fab';
304
+ /**
305
+ * Represents the default options for the grid that can be configured
306
+ * using the `MTX_GRID_DEFAULT_OPTIONS` injection token.
307
+ */
308
+ interface MtxGridDefaultOptions {
309
+ columnResizable?: boolean;
310
+ emptyValuePlaceholder?: string;
311
+ pageOnFront?: boolean;
312
+ showPaginator?: boolean;
313
+ pageDisabled?: boolean;
314
+ showFirstLastButtons?: boolean;
315
+ pageIndex?: number;
316
+ pageSize?: number;
317
+ pageSizeOptions?: number[];
318
+ hidePageSize?: boolean;
319
+ sortOnFront?: boolean;
320
+ sortActive?: string;
321
+ sortDirection?: SortDirection;
322
+ sortDisableClear?: boolean;
323
+ sortDisabled?: boolean;
324
+ sortStart?: 'asc' | 'desc';
325
+ rowHover?: boolean;
326
+ rowStriped?: boolean;
327
+ multiSelectable?: boolean;
328
+ multiSelectionWithClick?: boolean;
329
+ rowSelectable?: boolean;
330
+ hideRowSelectionCheckbox?: boolean;
331
+ disableRowClickSelection?: boolean;
332
+ cellSelectable?: boolean;
333
+ showToolbar?: boolean;
334
+ toolbarTitle?: string;
335
+ columnHideable?: boolean;
336
+ columnHideableChecked?: 'show' | 'hide';
337
+ columnSortable?: boolean;
338
+ columnPinnable?: boolean;
339
+ columnPinOptions?: MtxGridColumnPinOption[];
340
+ showColumnMenuButton?: boolean;
341
+ columnMenuButtonText?: string;
342
+ columnMenuButtonType?: MtxGridButtonType;
343
+ columnMenuButtonColor?: ThemePalette;
344
+ columnMenuButtonClass?: string;
345
+ columnMenuButtonIcon?: string;
346
+ columnMenuButtonFontIcon?: string;
347
+ columnMenuButtonSvgIcon?: string;
348
+ showColumnMenuHeader?: boolean;
349
+ columnMenuHeaderText?: string;
350
+ showColumnMenuFooter?: boolean;
351
+ columnMenuFooterText?: string;
352
+ noResultText?: string;
353
+ }
354
+
355
+ declare class MtxGridColumnMenu {
356
+ menuPanel: MatMenu;
357
+ menuTrigger: MatMenuTrigger;
358
+ columns: MtxGridColumn[];
359
+ selectable: boolean;
360
+ selectableChecked: 'show' | 'hide';
361
+ sortable: boolean;
362
+ pinnable: boolean;
363
+ get buttonText(): string;
364
+ set buttonText(value: string);
365
+ private _buttonText;
366
+ buttonType: MtxGridButtonType;
367
+ buttonColor: ThemePalette;
368
+ buttonClass: string;
369
+ buttonIcon: string;
370
+ buttonFontIcon: string;
371
+ buttonSvgIcon: string;
372
+ showHeader: boolean;
373
+ headerText: string;
374
+ headerTemplate: TemplateRef<any>;
375
+ showFooter: boolean;
376
+ footerText: string;
377
+ footerTemplate: TemplateRef<any>;
378
+ columnChange: EventEmitter<MtxGridColumn<any>[]>;
379
+ get pinOptions(): MtxGridColumnPinOption[];
380
+ set pinOptions(value: MtxGridColumnPinOption[]);
381
+ private _pinOptions;
382
+ _handleDroped(e: CdkDragDrop<string[]>): void;
383
+ _handleChecked(col: MtxGridColumn): void;
384
+ _handlePinSelect(col: MtxGridColumn, val: MtxGridColumnPinValue): void;
385
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxGridColumnMenu, never>;
386
+ static ɵcmp: i0.ɵɵComponentDeclaration<MtxGridColumnMenu, "mtx-grid-column-menu", ["mtxGridColumnMenu"], { "columns": { "alias": "columns"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "selectableChecked": { "alias": "selectableChecked"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "pinnable": { "alias": "pinnable"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; "buttonType": { "alias": "buttonType"; "required": false; }; "buttonColor": { "alias": "buttonColor"; "required": false; }; "buttonClass": { "alias": "buttonClass"; "required": false; }; "buttonIcon": { "alias": "buttonIcon"; "required": false; }; "buttonFontIcon": { "alias": "buttonFontIcon"; "required": false; }; "buttonSvgIcon": { "alias": "buttonSvgIcon"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "headerText": { "alias": "headerText"; "required": false; }; "headerTemplate": { "alias": "headerTemplate"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "footerText": { "alias": "footerText"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "pinOptions": { "alias": "pinOptions"; "required": false; }; }, { "columnChange": "columnChange"; }, never, never, true, never>;
387
+ }
388
+
389
+ declare class MtxGridExpansionToggle {
390
+ private _opened;
391
+ private _row;
392
+ private _tplRef;
393
+ get opened(): boolean;
394
+ set opened(newValue: boolean);
395
+ openedChange: EventEmitter<boolean>;
396
+ set expandableRow(value: any);
397
+ set template(value: TemplateRef<any>);
398
+ toggleChange: EventEmitter<MtxGridExpansionToggle>;
399
+ onClick(event: MouseEvent): void;
400
+ toggle(): void;
401
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxGridExpansionToggle, never>;
402
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MtxGridExpansionToggle, "[mtx-grid-expansion-toggle]", never, { "opened": { "alias": "opened"; "required": false; }; "expandableRow": { "alias": "expandableRow"; "required": false; }; "template": { "alias": "expansionRowTpl"; "required": false; }; }, { "openedChange": "openedChange"; "toggleChange": "toggleChange"; }, never, never, true, never>;
403
+ }
404
+
405
+ declare class MtxGridSelectableCell {
406
+ ctrlKeyPressed: boolean;
407
+ shiftKeyPressed: boolean;
408
+ get selected(): boolean;
409
+ private _selected;
410
+ cellSelectable: boolean;
411
+ cellSelectedChange: EventEmitter<MtxGridSelectableCell>;
412
+ onClick(event: MouseEvent): void;
413
+ select(): void;
414
+ deselect(): void;
415
+ toggle(): void;
416
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxGridSelectableCell, never>;
417
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MtxGridSelectableCell, "[mtx-grid-selectable-cell]", never, { "cellSelectable": { "alias": "cellSelectable"; "required": false; }; }, { "cellSelectedChange": "cellSelectedChange"; }, never, never, true, never>;
418
+ }
419
+
420
+ /** Injection token that can be used to specify default grid options. */
421
+ declare const MTX_GRID_DEFAULT_OPTIONS: InjectionToken<MtxGridDefaultOptions>;
422
+ declare class MtxGrid implements OnChanges, AfterViewInit, OnDestroy {
423
+ protected _animationsDisabled: boolean;
424
+ private _utils;
425
+ private _changeDetectorRef;
426
+ private _defaultOptions;
427
+ table: MatTable<any>;
428
+ paginator: MatPaginator;
429
+ sort: MatSort;
430
+ rowDefs: QueryList<MatRowDef<any>>;
431
+ headerRowDefs: QueryList<MatHeaderRowDef>;
432
+ footerRowDefs: QueryList<MatFooterRowDef>;
433
+ columnResize?: ColumnResize;
434
+ columnMenu: MtxGridColumnMenu;
435
+ tableContainer: ElementRef<HTMLDivElement>;
436
+ dataSource: MatTableDataSource<unknown, MatPaginator>;
437
+ /** The grid's displayed columns. */
438
+ displayedColumns: string[];
439
+ /** The grid's columns. */
440
+ columns: MtxGridColumn[];
441
+ /** The grid's data. */
442
+ data: any[];
443
+ /** The total number of the data. */
444
+ length: number;
445
+ /** Whether the grid is loading. */
446
+ loading: boolean;
447
+ /** Tracking function that will be used to check the differences in data changes. */
448
+ trackBy: TrackByFunction<any>;
449
+ /** Whether the column is resizable. */
450
+ columnResizable: boolean;
451
+ /** Placeholder for the empty value (`null`, `''`, `[]`). */
452
+ emptyValuePlaceholder: string;
453
+ /** Whether to paginate the data on front end. */
454
+ pageOnFront: boolean;
455
+ /** Whether to show the paginator. */
456
+ showPaginator: boolean;
457
+ /** Whether the paginator is disabled. */
458
+ pageDisabled: boolean;
459
+ /** Whether to show the first/last buttons UI to the user. */
460
+ showFirstLastButtons: boolean;
461
+ /** The zero-based page index of the displayed list of items. */
462
+ pageIndex: number;
463
+ /** Number of items to display on a page. */
464
+ pageSize: number;
465
+ /** The set of provided page size options to display to the user. */
466
+ pageSizeOptions: number[];
467
+ /** Whether to hide the page size selection UI from the user. */
468
+ hidePageSize: boolean;
469
+ /** Event emitted when the paginator changes the page size or page index. */
470
+ page: EventEmitter<PageEvent>;
471
+ /** The template for the pagination. */
472
+ paginationTemplate: TemplateRef<any>;
473
+ /** Whether to sort the data on front end. */
474
+ sortOnFront: boolean;
475
+ /** The id of the most recently sorted MatSortable. */
476
+ sortActive: string;
477
+ /** The sort direction of the currently active MatSortable. */
478
+ sortDirection: SortDirection;
479
+ /**
480
+ * Whether to disable the user from clearing the sort by finishing the sort direction cycle.
481
+ * May be overriden by the column's `disableClear` in `sortProp`.
482
+ */
483
+ sortDisableClear: boolean;
484
+ /** Whether the sort is disabled. */
485
+ sortDisabled: boolean;
486
+ /**
487
+ * The direction to set when an MatSortable is initially sorted.
488
+ * May be overriden by the column's `start` in `sortProp`.
489
+ */
490
+ sortStart: 'asc' | 'desc';
491
+ /** Event emitted when the user changes either the active sort or sort direction. */
492
+ sortChange: EventEmitter<Sort>;
493
+ /** Whether to use the row hover style. */
494
+ rowHover: boolean;
495
+ /** Whether to use the row striped style. */
496
+ rowStriped: boolean;
497
+ /** Event emitted when the user clicks the row. */
498
+ rowClick: EventEmitter<any>;
499
+ /** Event emitted when the user attempts to open a context menu. */
500
+ rowContextMenu: EventEmitter<any>;
501
+ expansionRowStates: any[];
502
+ /** Whether the row is expandable. */
503
+ expandable: boolean;
504
+ /** The template for the expandable row. */
505
+ expansionTemplate: TemplateRef<any>;
506
+ /** Event emitted when the user toggles the expandable row. */
507
+ expansionChange: EventEmitter<any>;
508
+ rowSelection: SelectionModel<any>;
509
+ /** Whether to support multiple row/cell selection. */
510
+ multiSelectable: boolean;
511
+ /** Whether the user can select multiple rows with click. */
512
+ multiSelectionWithClick: boolean;
513
+ /** Whether the row is selectable. */
514
+ rowSelectable: boolean;
515
+ /** Whether to hide the row selection checkbox. */
516
+ hideRowSelectionCheckbox: boolean;
517
+ /** Whether disable rows to be selected when clicked. */
518
+ disableRowClickSelection: boolean;
519
+ /** The formatter to disable the row selection or hide the row's checkbox. */
520
+ rowSelectionFormatter: MtxGridRowSelectionFormatter;
521
+ /** The formatter to set the row's class. */
522
+ rowClassFormatter?: MtxGridRowClassFormatter;
523
+ /** The selected row items. */
524
+ rowSelected: any[];
525
+ /** Event emitted when the row is selected. */
526
+ rowSelectedChange: EventEmitter<any[]>;
527
+ cellSelection: any[];
528
+ /** Whether the cell is selectable. */
529
+ cellSelectable: boolean;
530
+ /** Event emitted when the cell is selected. */
531
+ cellSelectedChange: EventEmitter<any[]>;
532
+ private _selectedCell?;
533
+ /** Whether to show the toolbar. */
534
+ showToolbar: boolean;
535
+ /** The text of the toolbar's title. */
536
+ toolbarTitle: string;
537
+ /** The template for the toolbar. */
538
+ toolbarTemplate: TemplateRef<any>;
539
+ /** Whether the column is hideable. */
540
+ columnHideable: boolean;
541
+ /** Hide or show when the column's checkbox is checked. */
542
+ columnHideableChecked: 'show' | 'hide';
543
+ /** Whether the column is sortable. */
544
+ columnSortable: boolean;
545
+ /** Whether the column is pinnable. */
546
+ columnPinnable: boolean;
547
+ /** Event emitted when the column is hided or is sorted. */
548
+ columnChange: EventEmitter<MtxGridColumn<any>[]>;
549
+ /** The options for the column pin list. */
550
+ columnPinOptions: MtxGridColumnPinOption[];
551
+ /** Whether to show the column menu button. */
552
+ showColumnMenuButton: boolean;
553
+ /** The text for the column menu button. */
554
+ columnMenuButtonText: string;
555
+ /** The type for the column menu button. */
556
+ columnMenuButtonType: MtxGridButtonType;
557
+ /** The color for the column menu button. */
558
+ columnMenuButtonColor: ThemePalette;
559
+ /** The class for the column menu button. */
560
+ columnMenuButtonClass: string;
561
+ /** The icon for the column menu button. */
562
+ columnMenuButtonIcon: string;
563
+ /** The font icon for the column menu button. */
564
+ columnMenuButtonFontIcon: string;
565
+ /** The svg icon for the column menu button. */
566
+ columnMenuButtonSvgIcon: string;
567
+ /** Whether to show the column-menu's header. */
568
+ showColumnMenuHeader: boolean;
569
+ /** The text for the column-menu's header. */
570
+ columnMenuHeaderText: string;
571
+ /** The template for the column-menu's header. */
572
+ columnMenuHeaderTemplate: TemplateRef<any>;
573
+ /** Whether to show the the column-menu's footer. */
574
+ showColumnMenuFooter: boolean;
575
+ /** The text for the column-menu's footer. */
576
+ columnMenuFooterText: string;
577
+ /** The template for the column-menu's footer. */
578
+ columnMenuFooterTemplate: TemplateRef<any>;
579
+ /** The displayed text for the empty data. */
580
+ noResultText: string;
581
+ /** The template for the empty data. */
582
+ noResultTemplate: TemplateRef<any>;
583
+ get _hasNoResult(): boolean;
584
+ /** The header's cell template for the grid. */
585
+ headerTemplate: TemplateRef<any> | MtxGridCellTemplate;
586
+ /** The header's cell template for the grid exclude sort. */
587
+ headerExtraTemplate: TemplateRef<any> | MtxGridCellTemplate;
588
+ /** The cell template for the grid. */
589
+ cellTemplate: TemplateRef<any> | MtxGridCellTemplate;
590
+ /** Whether to use custom row template. If true, you should define a matRowDef. */
591
+ useContentRowTemplate: boolean;
592
+ useContentHeaderRowTemplate: boolean;
593
+ useContentFooterRowTemplate: boolean;
594
+ /** Whether to show the summary. */
595
+ showSummary: boolean;
596
+ /** The template for the summary. */
597
+ summaryTemplate: TemplateRef<any> | MtxGridCellTemplate;
598
+ get _whetherShowSummary(): boolean;
599
+ /** Whether to show the sidebar. */
600
+ showSidebar: boolean;
601
+ /** The template for the sidebar. */
602
+ sidebarTemplate: TemplateRef<any>;
603
+ /** Whether to show the status bar. */
604
+ showStatusbar: boolean;
605
+ /** The template for the status bar. */
606
+ statusbarTemplate: TemplateRef<any>;
607
+ /** The changed record of row data. */
608
+ rowChangeRecord?: KeyValueChangeRecord<string, any>;
609
+ detectChanges(): void;
610
+ _getColData(data: any[], colDef: MtxGridColumn): any[];
611
+ _isColumnHide(item: MtxGridColumn): boolean;
612
+ ngOnChanges(changes: SimpleChanges): void;
613
+ ngAfterViewInit(): void;
614
+ ngOnDestroy(): void;
615
+ _countPinnedPosition(): void;
616
+ _getIndex(index: number | undefined, dataIndex: number): number;
617
+ _onSortChange(sort: Sort): void;
618
+ _onRowDataChange(record: KeyValueChangeRecord<string, any>): void;
619
+ /** Expansion change event */
620
+ _onExpansionChange(expansionRef: MtxGridExpansionToggle, rowData: Record<string, any>, column: MtxGridColumn, index: number): void;
621
+ /** Cell select event */
622
+ _selectCell(cellRef: MtxGridSelectableCell, rowData: Record<string, any>, colDef: MtxGridColumn): void;
623
+ /** Row select event */
624
+ _selectRow(event: MouseEvent, rowData: Record<string, any>, index: number): void;
625
+ /** Whether the number of selected elements matches the total number of rows. */
626
+ _isAllSelected(): boolean;
627
+ /** Select all rows if they are not all selected; otherwise clear selection. */
628
+ _toggleMasterCheckbox(): void;
629
+ /** Select normal row */
630
+ _toggleNormalCheckbox(row: Record<string, any>): void;
631
+ /** Column change event */
632
+ _onColumnChange(columns: MtxGridColumn[]): void;
633
+ getDisplayedColumnFields(columns: MtxGridColumn[]): string[];
634
+ /** Customize expansion event */
635
+ toggleExpansion(index: number): any;
636
+ /** Scroll to top when turn to the next page. */
637
+ _onPage(e: PageEvent): void;
638
+ scrollTop(value?: number): number | void;
639
+ scrollLeft(value?: number): number | void;
640
+ _contextmenu(event: MouseEvent, rowData: Record<string, any>, index: number): void;
641
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxGrid, never>;
642
+ static ɵcmp: i0.ɵɵComponentDeclaration<MtxGrid, "mtx-grid", ["mtxGrid"], { "displayedColumns": { "alias": "displayedColumns"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "length": { "alias": "length"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; "columnResizable": { "alias": "columnResizable"; "required": false; }; "emptyValuePlaceholder": { "alias": "emptyValuePlaceholder"; "required": false; }; "pageOnFront": { "alias": "pageOnFront"; "required": false; }; "showPaginator": { "alias": "showPaginator"; "required": false; }; "pageDisabled": { "alias": "pageDisabled"; "required": false; }; "showFirstLastButtons": { "alias": "showFirstLastButtons"; "required": false; }; "pageIndex": { "alias": "pageIndex"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "hidePageSize": { "alias": "hidePageSize"; "required": false; }; "paginationTemplate": { "alias": "paginationTemplate"; "required": false; }; "sortOnFront": { "alias": "sortOnFront"; "required": false; }; "sortActive": { "alias": "sortActive"; "required": false; }; "sortDirection": { "alias": "sortDirection"; "required": false; }; "sortDisableClear": { "alias": "sortDisableClear"; "required": false; }; "sortDisabled": { "alias": "sortDisabled"; "required": false; }; "sortStart": { "alias": "sortStart"; "required": false; }; "rowHover": { "alias": "rowHover"; "required": false; }; "rowStriped": { "alias": "rowStriped"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; "expansionTemplate": { "alias": "expansionTemplate"; "required": false; }; "multiSelectable": { "alias": "multiSelectable"; "required": false; }; "multiSelectionWithClick": { "alias": "multiSelectionWithClick"; "required": false; }; "rowSelectable": { "alias": "rowSelectable"; "required": false; }; "hideRowSelectionCheckbox": { "alias": "hideRowSelectionCheckbox"; "required": false; }; "disableRowClickSelection": { "alias": "disableRowClickSelection"; "required": false; }; "rowSelectionFormatter": { "alias": "rowSelectionFormatter"; "required": false; }; "rowClassFormatter": { "alias": "rowClassFormatter"; "required": false; }; "rowSelected": { "alias": "rowSelected"; "required": false; }; "cellSelectable": { "alias": "cellSelectable"; "required": false; }; "showToolbar": { "alias": "showToolbar"; "required": false; }; "toolbarTitle": { "alias": "toolbarTitle"; "required": false; }; "toolbarTemplate": { "alias": "toolbarTemplate"; "required": false; }; "columnHideable": { "alias": "columnHideable"; "required": false; }; "columnHideableChecked": { "alias": "columnHideableChecked"; "required": false; }; "columnSortable": { "alias": "columnSortable"; "required": false; }; "columnPinnable": { "alias": "columnPinnable"; "required": false; }; "columnPinOptions": { "alias": "columnPinOptions"; "required": false; }; "showColumnMenuButton": { "alias": "showColumnMenuButton"; "required": false; }; "columnMenuButtonText": { "alias": "columnMenuButtonText"; "required": false; }; "columnMenuButtonType": { "alias": "columnMenuButtonType"; "required": false; }; "columnMenuButtonColor": { "alias": "columnMenuButtonColor"; "required": false; }; "columnMenuButtonClass": { "alias": "columnMenuButtonClass"; "required": false; }; "columnMenuButtonIcon": { "alias": "columnMenuButtonIcon"; "required": false; }; "columnMenuButtonFontIcon": { "alias": "columnMenuButtonFontIcon"; "required": false; }; "columnMenuButtonSvgIcon": { "alias": "columnMenuButtonSvgIcon"; "required": false; }; "showColumnMenuHeader": { "alias": "showColumnMenuHeader"; "required": false; }; "columnMenuHeaderText": { "alias": "columnMenuHeaderText"; "required": false; }; "columnMenuHeaderTemplate": { "alias": "columnMenuHeaderTemplate"; "required": false; }; "showColumnMenuFooter": { "alias": "showColumnMenuFooter"; "required": false; }; "columnMenuFooterText": { "alias": "columnMenuFooterText"; "required": false; }; "columnMenuFooterTemplate": { "alias": "columnMenuFooterTemplate"; "required": false; }; "noResultText": { "alias": "noResultText"; "required": false; }; "noResultTemplate": { "alias": "noResultTemplate"; "required": false; }; "headerTemplate": { "alias": "headerTemplate"; "required": false; }; "headerExtraTemplate": { "alias": "headerExtraTemplate"; "required": false; }; "cellTemplate": { "alias": "cellTemplate"; "required": false; }; "useContentRowTemplate": { "alias": "useContentRowTemplate"; "required": false; }; "useContentHeaderRowTemplate": { "alias": "useContentHeaderRowTemplate"; "required": false; }; "useContentFooterRowTemplate": { "alias": "useContentFooterRowTemplate"; "required": false; }; "showSummary": { "alias": "showSummary"; "required": false; }; "summaryTemplate": { "alias": "summaryTemplate"; "required": false; }; "showSidebar": { "alias": "showSidebar"; "required": false; }; "sidebarTemplate": { "alias": "sidebarTemplate"; "required": false; }; "showStatusbar": { "alias": "showStatusbar"; "required": false; }; "statusbarTemplate": { "alias": "statusbarTemplate"; "required": false; }; }, { "page": "page"; "sortChange": "sortChange"; "rowClick": "rowClick"; "rowContextMenu": "rowContextMenu"; "expansionChange": "expansionChange"; "rowSelectedChange": "rowSelectedChange"; "cellSelectedChange": "cellSelectedChange"; "columnChange": "columnChange"; }, ["rowDefs", "headerRowDefs", "footerRowDefs"], never, true, never>;
643
+ static ngAcceptInputType_loading: unknown;
644
+ static ngAcceptInputType_columnResizable: unknown;
645
+ static ngAcceptInputType_pageOnFront: unknown;
646
+ static ngAcceptInputType_showPaginator: unknown;
647
+ static ngAcceptInputType_pageDisabled: unknown;
648
+ static ngAcceptInputType_showFirstLastButtons: unknown;
649
+ static ngAcceptInputType_hidePageSize: unknown;
650
+ static ngAcceptInputType_sortOnFront: unknown;
651
+ static ngAcceptInputType_sortDisableClear: unknown;
652
+ static ngAcceptInputType_sortDisabled: unknown;
653
+ static ngAcceptInputType_rowHover: unknown;
654
+ static ngAcceptInputType_rowStriped: unknown;
655
+ static ngAcceptInputType_expandable: unknown;
656
+ static ngAcceptInputType_multiSelectable: unknown;
657
+ static ngAcceptInputType_multiSelectionWithClick: unknown;
658
+ static ngAcceptInputType_rowSelectable: unknown;
659
+ static ngAcceptInputType_hideRowSelectionCheckbox: unknown;
660
+ static ngAcceptInputType_disableRowClickSelection: unknown;
661
+ static ngAcceptInputType_cellSelectable: unknown;
662
+ static ngAcceptInputType_showToolbar: unknown;
663
+ static ngAcceptInputType_columnHideable: unknown;
664
+ static ngAcceptInputType_columnSortable: unknown;
665
+ static ngAcceptInputType_columnPinnable: unknown;
666
+ static ngAcceptInputType_showColumnMenuButton: unknown;
667
+ static ngAcceptInputType_showColumnMenuHeader: unknown;
668
+ static ngAcceptInputType_showColumnMenuFooter: unknown;
669
+ static ngAcceptInputType_useContentRowTemplate: unknown;
670
+ static ngAcceptInputType_useContentHeaderRowTemplate: unknown;
671
+ static ngAcceptInputType_useContentFooterRowTemplate: unknown;
672
+ static ngAcceptInputType_showSummary: unknown;
673
+ static ngAcceptInputType_showSidebar: unknown;
674
+ static ngAcceptInputType_showStatusbar: unknown;
675
+ }
676
+
677
+ declare class MtxGridCell implements OnInit, DoCheck {
678
+ private _dialog;
679
+ private _utils;
680
+ private _differs;
681
+ private _changeDetectorRef;
682
+ /** Row data */
683
+ rowData: Record<string, any>;
684
+ /** Column definition */
685
+ colDef: MtxGridColumn;
686
+ /** Table data */
687
+ data: any[];
688
+ /** Whether show summary */
689
+ summary: boolean;
690
+ /** Placeholder for the empty value (`null`, `''`, `[]`) */
691
+ placeholder: string;
692
+ rowDataChange: EventEmitter<KeyValueChangeRecord<string, any>>;
693
+ private rowDataDiffer?;
694
+ rowChangeRecord?: KeyValueChangeRecord<string, any>;
695
+ get _value(): string;
696
+ ngOnInit(): void;
697
+ ngDoCheck(): void;
698
+ private _applyChanges;
699
+ _getText(value: any): any;
700
+ _getTooltip(value: any): any;
701
+ _getFormatterTooltip(value: any): any;
702
+ _onActionClick(event: MouseEvent, btn: MtxGridColumnButton, rowData: Record<string, any>): void;
703
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxGridCell, never>;
704
+ static ɵcmp: i0.ɵɵComponentDeclaration<MtxGridCell, "mtx-grid-cell", ["mtxGridCell"], { "rowData": { "alias": "rowData"; "required": false; }; "colDef": { "alias": "colDef"; "required": false; }; "data": { "alias": "data"; "required": false; }; "summary": { "alias": "summary"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, { "rowDataChange": "rowDataChange"; }, never, never, true, never>;
705
+ }
706
+
707
+ declare class MtxGridColClassPipe implements PipeTransform {
708
+ transform(colDef: MtxGridColumn, rowData?: Record<string, any>, rowChangeRecord?: KeyValueChangeRecord<string, any>, currentValue?: any): string;
709
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxGridColClassPipe, never>;
710
+ static ɵpipe: i0.ɵɵPipeDeclaration<MtxGridColClassPipe, "colClass", true>;
711
+ }
712
+ declare class MtxGridRowClassPipe implements PipeTransform {
713
+ transform(rowData: Record<string, any>, index: number | undefined, dataIndex: number, rowClassFormatter?: MtxGridRowClassFormatter): string;
714
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxGridRowClassPipe, never>;
715
+ static ɵpipe: i0.ɵɵPipeDeclaration<MtxGridRowClassPipe, "rowClass", true>;
716
+ }
717
+ declare class MtxGridCellActionsPipe implements PipeTransform {
718
+ transform(btns?: MtxGridColumnButton[] | ((rowData: any) => MtxGridColumnButton[]), rowData?: Record<string, any>, rowChangeRecord?: KeyValueChangeRecord<string, any>, currentValue?: any): MtxGridColumnButton<any>[];
719
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxGridCellActionsPipe, never>;
720
+ static ɵpipe: i0.ɵɵPipeDeclaration<MtxGridCellActionsPipe, "cellActions", true>;
721
+ }
722
+ declare class MtxGridCellActionTooltipPipe implements PipeTransform {
723
+ transform(btn: MtxGridColumnButton): _ng_matero_extensions_grid.MtxGridColumnButtonTooltip;
724
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxGridCellActionTooltipPipe, never>;
725
+ static ɵpipe: i0.ɵɵPipeDeclaration<MtxGridCellActionTooltipPipe, "cellActionTooltip", true>;
726
+ }
727
+ declare class MtxGridCellActionBadgePipe implements PipeTransform {
728
+ transform(btn: MtxGridColumnButton): _ng_matero_extensions_grid.MtxGridColumnButtonBadge;
729
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxGridCellActionBadgePipe, never>;
730
+ static ɵpipe: i0.ɵɵPipeDeclaration<MtxGridCellActionBadgePipe, "cellActionBadge", true>;
731
+ }
732
+ declare class MtxGridCellActionDisablePipe implements PipeTransform {
733
+ transform(btn: MtxGridColumnButton, rowData: Record<string, any>, rowChangeRecord?: KeyValueChangeRecord<string, any>, currentValue?: any): boolean;
734
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxGridCellActionDisablePipe, never>;
735
+ static ɵpipe: i0.ɵɵPipeDeclaration<MtxGridCellActionDisablePipe, "cellActionDisable", true>;
736
+ }
737
+ declare class MtxGridCellSummaryPipe implements PipeTransform {
738
+ private utils;
739
+ transform(data: any[], colDef: MtxGridColumn): any;
740
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxGridCellSummaryPipe, never>;
741
+ static ɵpipe: i0.ɵɵPipeDeclaration<MtxGridCellSummaryPipe, "cellSummary", true>;
742
+ }
743
+
744
+ declare class MtxGridModule {
745
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxGridModule, never>;
746
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MtxGridModule, never, [typeof i1.CommonModule, typeof i2$1.FormsModule, typeof i3$1.MatTableModule, typeof i4.MatSortModule, typeof i5.MatPaginatorModule, typeof i6.MatCheckboxModule, typeof i7.MatButtonModule, typeof i8.MatProgressBarModule, typeof i9.MatChipsModule, typeof i10.MatTooltipModule, typeof i11.MatBadgeModule, typeof i12.MatIconModule, typeof i13.MatSelectModule, typeof i14.MatFormFieldModule, typeof i15.MatMenuModule, typeof i16.DragDropModule, typeof i17.MtxDialogModule, typeof i18.MtxPipesModule, typeof MatColumnResizeModule, typeof MtxGrid, typeof MtxGridCell, typeof MtxGridColumnMenu, typeof MtxGridExpansionToggle, typeof MtxGridSelectableCell, typeof MtxGridRowClassPipe, typeof MtxGridColClassPipe, typeof MtxGridCellActionsPipe, typeof MtxGridCellActionTooltipPipe, typeof MtxGridCellActionBadgePipe, typeof MtxGridCellActionDisablePipe, typeof MtxGridCellSummaryPipe], [typeof MatColumnResizeModule, typeof MtxGrid, typeof MtxGridCell, typeof MtxGridColumnMenu, typeof MtxGridExpansionToggle, typeof MtxGridSelectableCell, typeof MtxGridRowClassPipe, typeof MtxGridColClassPipe, typeof MtxGridCellActionsPipe, typeof MtxGridCellActionTooltipPipe, typeof MtxGridCellActionBadgePipe, typeof MtxGridCellActionDisablePipe, typeof MtxGridCellSummaryPipe]>;
747
+ static ɵinj: i0.ɵɵInjectorDeclaration<MtxGridModule>;
748
+ }
749
+
750
+ declare class MtxGridUtils {
751
+ constructor();
752
+ /**
753
+ * Get cell's value based on the data and column's field (e.g. `a.b.c`)
754
+ * @param rowData Row data
755
+ * @param colDef Column definition
756
+ * @returns
757
+ */
758
+ getCellValue(rowData: Record<string, any>, colDef: MtxGridColumn): string;
759
+ /**
760
+ * Get all data of a col
761
+ * @param data All data
762
+ * @param colDef Column definition
763
+ * @returns
764
+ */
765
+ getColData(data: any[], colDef: MtxGridColumn): any[];
766
+ /**
767
+ * Whether the value is empty (`null`, `undefined`, `''`, `[]`)
768
+ * @param value
769
+ * @returns
770
+ */
771
+ isEmpty(value: any): boolean;
772
+ /**
773
+ * Whether the value contain HTML
774
+ * @param value
775
+ * @returns
776
+ */
777
+ isContainHTML(value: string): boolean;
778
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxGridUtils, never>;
779
+ static ɵprov: i0.ɵɵInjectableDeclaration<MtxGridUtils>;
780
+ }
781
+
782
+ /**
783
+ * @license
784
+ * Copyright Google LLC All Rights Reserved.
785
+ *
786
+ * Use of this source code is governed by an MIT-style license that can be
787
+ * found in the LICENSE file at https://angular.dev/license
788
+ */
789
+
790
+ /**
791
+ * Overrides CdkFlexTableResizeStrategy to match mat-column elements.
792
+ */
793
+ declare class MatFlexTableResizeStrategy extends CdkFlexTableResizeStrategy {
794
+ protected getColumnCssClass(cssFriendlyColumnName: string): string;
795
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatFlexTableResizeStrategy, never>;
796
+ static ɵprov: i0.ɵɵInjectableDeclaration<MatFlexTableResizeStrategy>;
797
+ }
798
+ declare const FLEX_RESIZE_STRATEGY_PROVIDER: Provider;
799
+
800
+ export { AbstractMatColumnResize, AbstractMatResizable, FLEX_HOST_BINDINGS as MAT_FLEX_HOST_BINDINGS, FLEX_PROVIDERS as MAT_FLEX_PROVIDERS, FLEX_RESIZE_STRATEGY_PROVIDER as MAT_FLEX_RESIZE_STRATEGY_PROVIDER, RESIZABLE_HOST_BINDINGS as MAT_RESIZABLE_HOST_BINDINGS, RESIZABLE_INPUTS as MAT_RESIZABLE_INPUTS, TABLE_HOST_BINDINGS as MAT_TABLE_HOST_BINDINGS, TABLE_PROVIDERS as MAT_TABLE_PROVIDERS, MTX_GRID_DEFAULT_OPTIONS, MatColumnResize, MatColumnResizeCommonModule, MatColumnResizeFlex, MatColumnResizeModule, MatColumnResizeOverlayHandle, MatFlexTableResizeStrategy, MatResizable, MtxGrid, MtxGridCell, MtxGridCellActionBadgePipe, MtxGridCellActionDisablePipe, MtxGridCellActionTooltipPipe, MtxGridCellActionsPipe, MtxGridCellSummaryPipe, MtxGridColClassPipe, MtxGridColumnMenu, MtxGridExpansionToggle, MtxGridModule, MtxGridRowClassPipe, MtxGridSelectableCell, MtxGridUtils };
801
+ export type { MtxGridButtonType, MtxGridCellTemplate, MtxGridColumn, MtxGridColumnButton, MtxGridColumnButtonBadge, MtxGridColumnButtonPop, MtxGridColumnButtonTooltip, MtxGridColumnPinOption, MtxGridColumnPinValue, MtxGridColumnTag, MtxGridColumnTagValue, MtxGridColumnType, MtxGridColumnTypeParameter, MtxGridDefaultOptions, MtxGridRowClassFormatter, MtxGridRowSelectionFormatter, MtxGridSortProp };