@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
@@ -1,5 +1,458 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, AfterViewInit, OnDestroy, ElementRef, NgZone, Provider, Injector, ViewContainerRef, ChangeDetectorRef, Type } from '@angular/core';
3
+ import { Subject, Observable } from 'rxjs';
4
+ import { CdkTable, CdkColumnDef } from '@angular/cdk/table';
5
+ import { Directionality } from '@angular/cdk/bidi';
6
+ import { OverlayRef, Overlay } from '@angular/cdk/overlay';
7
+
8
+ /** Indicates the width of a column. */
9
+ interface ColumnSize {
10
+ /** The ID/name of the column, as defined in CdkColumnDef. */
11
+ readonly columnId: string;
12
+ /** The width in pixels of the column. */
13
+ readonly size: number;
14
+ /** The width in pixels of the column prior to this update, if known. */
15
+ readonly previousSize?: number;
16
+ }
17
+ /** Interface describing column size changes. */
18
+ interface ColumnSizeAction extends ColumnSize {
19
+ /**
20
+ * Whether the resize action should be applied instantaneously. False for events triggered during
21
+ * a UI-triggered resize (such as with the mouse) until the mouse button is released. True
22
+ * for all programmatically triggered resizes.
23
+ */
24
+ readonly completeImmediately?: boolean;
25
+ /**
26
+ * Whether the resize action is being applied to a sticky/stickyEnd column.
27
+ */
28
+ readonly isStickyColumn?: boolean;
29
+ }
1
30
  /**
2
- * Generated bundle index. Do not edit.
31
+ * Originating source of column resize events within a table.
32
+ * @docs-private
3
33
  */
4
- /// <amd-module name="@ng-matero/extensions/column-resize" />
5
- export * from './public-api';
34
+ declare class ColumnResizeNotifierSource {
35
+ /** Emits when an in-progress resize is canceled. */
36
+ readonly resizeCanceled: Subject<ColumnSizeAction>;
37
+ /** Emits when a resize is applied. */
38
+ readonly resizeCompleted: Subject<ColumnSize>;
39
+ /** Triggers a resize action. */
40
+ readonly triggerResize: Subject<ColumnSizeAction>;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColumnResizeNotifierSource, never>;
42
+ static ɵprov: i0.ɵɵInjectableDeclaration<ColumnResizeNotifierSource>;
43
+ }
44
+ /** Service for triggering column resizes imperatively or being notified of them. */
45
+ declare class ColumnResizeNotifier {
46
+ private readonly _source;
47
+ /** Emits whenever a column is resized. */
48
+ readonly resizeCompleted: Observable<ColumnSize>;
49
+ /** Instantly resizes the specified column. */
50
+ resize(columnId: string, size: number): void;
51
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColumnResizeNotifier, never>;
52
+ static ɵprov: i0.ɵɵInjectableDeclaration<ColumnResizeNotifier>;
53
+ }
54
+
55
+ /** Coordinates events between the column resize directives. */
56
+ declare class HeaderRowEventDispatcher {
57
+ private readonly _ngZone;
58
+ /**
59
+ * Emits the currently hovered header cell or null when no header cells are hovered.
60
+ * Exposed publicly for events to feed in, but subscribers should use headerCellHoveredDistinct,
61
+ * defined below.
62
+ */
63
+ readonly headerCellHovered: Subject<Element | null>;
64
+ /**
65
+ * Emits the header cell for which a user-triggered resize is active or null
66
+ * when no resize is in progress.
67
+ */
68
+ readonly overlayHandleActiveForCell: Subject<Element | null>;
69
+ /** Distinct and shared version of headerCellHovered. */
70
+ readonly headerCellHoveredDistinct: Observable<Element | null>;
71
+ /**
72
+ * Emits the header that is currently hovered or hosting an active resize event (with active
73
+ * taking precedence).
74
+ */
75
+ readonly headerRowHoveredOrActiveDistinct: Observable<Element | null>;
76
+ private readonly _headerRowHoveredOrActiveDistinctReenterZone;
77
+ private _lastSeenRow;
78
+ private _lastSeenRowHover;
79
+ /**
80
+ * Emits whether the specified row should show its overlay controls.
81
+ * Emission occurs within the NgZone.
82
+ */
83
+ resizeOverlayVisibleForHeaderRow(row: Element): Observable<boolean>;
84
+ private _enterZone;
85
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeaderRowEventDispatcher, never>;
86
+ static ɵprov: i0.ɵɵInjectableDeclaration<HeaderRowEventDispatcher>;
87
+ }
88
+
89
+ /**
90
+ * @license
91
+ * Copyright Google LLC All Rights Reserved.
92
+ *
93
+ * Use of this source code is governed by an MIT-style license that can be
94
+ * found in the LICENSE file at https://angular.dev/license
95
+ */
96
+
97
+ /** Configurable options for column resize. */
98
+ interface ColumnResizeOptions {
99
+ liveResizeUpdates?: boolean;
100
+ }
101
+ declare const COLUMN_RESIZE_OPTIONS: InjectionToken<ColumnResizeOptions>;
102
+ /**
103
+ * Base class for ColumnResize directives which attach to mat-table elements to
104
+ * provide common events and services for column resizing.
105
+ */
106
+ declare abstract class ColumnResize implements AfterViewInit, OnDestroy {
107
+ private _renderer;
108
+ private _eventCleanups;
109
+ protected readonly destroyed: Subject<void>;
110
+ abstract readonly columnResizeNotifier: ColumnResizeNotifier;
111
+ abstract readonly elementRef: ElementRef<HTMLElement>;
112
+ protected abstract readonly eventDispatcher: HeaderRowEventDispatcher;
113
+ protected abstract readonly ngZone: NgZone;
114
+ protected abstract readonly notifier: ColumnResizeNotifierSource;
115
+ /** Unique ID for this table instance. */
116
+ protected readonly selectorId: string;
117
+ /** The id attribute of the table, if specified. */
118
+ id?: string;
119
+ /** @docs-private Whether a call to updateStickyColumnStyles is pending after a resize. */
120
+ _flushPending: boolean;
121
+ /**
122
+ * Whether to update the column's width continuously as the mouse position
123
+ * changes, or to wait until mouseup to apply the new size.
124
+ */
125
+ liveResizeUpdates: boolean;
126
+ ngAfterViewInit(): void;
127
+ ngOnDestroy(): void;
128
+ /** Gets the unique CSS class name for this table instance. */
129
+ getUniqueCssClass(): string;
130
+ /** Gets the ID for this table used for column size persistance. */
131
+ getTableId(): string;
132
+ /** Called when a column in the table is resized. Applies a css class to the table element. */
133
+ setResized(): void;
134
+ private _listenForRowHoverEvents;
135
+ private _listenForResizeActivity;
136
+ private _listenForHoverActivity;
137
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColumnResize, never>;
138
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColumnResize, never, never, { "liveResizeUpdates": { "alias": "liveResizeUpdates"; "required": false; }; }, {}, never, never, true, never>;
139
+ }
140
+
141
+ /**
142
+ * @license
143
+ * Copyright Google LLC All Rights Reserved.
144
+ *
145
+ * Use of this source code is governed by an MIT-style license that can be
146
+ * found in the LICENSE file at https://angular.dev/license
147
+ */
148
+
149
+ /**
150
+ * Explicitly enables column resizing for a table-based cdk-table.
151
+ * Individual columns must be annotated specifically.
152
+ */
153
+ declare class CdkColumnResize extends ColumnResize {
154
+ readonly columnResizeNotifier: ColumnResizeNotifier;
155
+ readonly elementRef: ElementRef<HTMLElement>;
156
+ protected readonly eventDispatcher: HeaderRowEventDispatcher;
157
+ protected readonly ngZone: NgZone;
158
+ protected readonly notifier: ColumnResizeNotifierSource;
159
+ protected readonly table: CdkTable<unknown>;
160
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkColumnResize, never>;
161
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkColumnResize, "table[cdk-table][columnResize]", never, {}, {}, never, never, true, never>;
162
+ }
163
+
164
+ /**
165
+ * @license
166
+ * Copyright Google LLC All Rights Reserved.
167
+ *
168
+ * Use of this source code is governed by an MIT-style license that can be
169
+ * found in the LICENSE file at https://angular.dev/license
170
+ */
171
+
172
+ /**
173
+ * Explicitly enables column resizing for a flexbox-based cdk-table.
174
+ * Individual columns must be annotated specifically.
175
+ */
176
+ declare class CdkColumnResizeFlex extends ColumnResize {
177
+ readonly columnResizeNotifier: ColumnResizeNotifier;
178
+ readonly elementRef: ElementRef<HTMLElement>;
179
+ protected readonly eventDispatcher: HeaderRowEventDispatcher;
180
+ protected readonly ngZone: NgZone;
181
+ protected readonly notifier: ColumnResizeNotifierSource;
182
+ protected readonly table: CdkTable<unknown>;
183
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkColumnResizeFlex, never>;
184
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkColumnResizeFlex, "cdk-table[columnResize]", never, {}, {}, never, never, true, never>;
185
+ }
186
+
187
+ /**
188
+ * One of two NgModules for use with CdkColumnResize.
189
+ * When using this module, columns are not resizable by default.
190
+ */
191
+ declare class CdkColumnResizeModule {
192
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkColumnResizeModule, never>;
193
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CdkColumnResizeModule, never, [typeof CdkColumnResize, typeof CdkColumnResizeFlex], [typeof CdkColumnResize, typeof CdkColumnResizeFlex]>;
194
+ static ɵinj: i0.ɵɵInjectorDeclaration<CdkColumnResizeModule>;
195
+ }
196
+
197
+ /**
198
+ * Can be provided by the host application to enable persistence of column resize state.
199
+ */
200
+ declare abstract class ColumnSizeStore {
201
+ /** Returns the persisted size of the specified column in the specified table. */
202
+ abstract getSize(tableId: string, columnId: string): Observable<number | null> | null;
203
+ /** Persists the size of the specified column in the specified table. */
204
+ abstract setSize(tableId: string, columnId: string, sizePx: number): void;
205
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColumnSizeStore, never>;
206
+ static ɵprov: i0.ɵɵInjectableDeclaration<ColumnSizeStore>;
207
+ }
208
+
209
+ /**
210
+ * @license
211
+ * Copyright Google LLC All Rights Reserved.
212
+ *
213
+ * Use of this source code is governed by an MIT-style license that can be
214
+ * found in the LICENSE file at https://angular.dev/license
215
+ */
216
+
217
+ /**
218
+ * @docs-private
219
+ */
220
+ declare class _Schedule {
221
+ tasks: (() => unknown)[];
222
+ endTasks: (() => unknown)[];
223
+ }
224
+ /** Injection token used to provide a coalesced style scheduler. */
225
+ declare const _COALESCED_STYLE_SCHEDULER: InjectionToken<_CoalescedStyleScheduler>;
226
+ /**
227
+ * Allows grouping up CSSDom mutations after the current execution context.
228
+ * This can significantly improve performance when separate consecutive functions are
229
+ * reading from the CSSDom and then mutating it.
230
+ *
231
+ * @docs-private
232
+ */
233
+ declare class _CoalescedStyleScheduler {
234
+ private _currentSchedule;
235
+ private _ngZone;
236
+ constructor(...args: unknown[]);
237
+ /**
238
+ * Schedules the specified task to run at the end of the current VM turn.
239
+ */
240
+ schedule(task: () => unknown): void;
241
+ /**
242
+ * Schedules the specified task to run after other scheduled tasks at the end of the current
243
+ * VM turn.
244
+ */
245
+ scheduleEnd(task: () => unknown): void;
246
+ private _createScheduleIfNeeded;
247
+ static ɵfac: i0.ɵɵFactoryDeclaration<_CoalescedStyleScheduler, never>;
248
+ static ɵprov: i0.ɵɵInjectableDeclaration<_CoalescedStyleScheduler>;
249
+ }
250
+
251
+ /**
252
+ * @license
253
+ * Copyright Google LLC All Rights Reserved.
254
+ *
255
+ * Use of this source code is governed by an MIT-style license that can be
256
+ * found in the LICENSE file at https://angular.dev/license
257
+ */
258
+
259
+ /** Tracks state of resize events in progress. */
260
+ declare class ResizeRef {
261
+ readonly origin: ElementRef;
262
+ readonly overlayRef: OverlayRef;
263
+ readonly minWidthPx: number;
264
+ readonly maxWidthPx: number;
265
+ readonly liveUpdates: boolean;
266
+ constructor(origin: ElementRef, overlayRef: OverlayRef, minWidthPx: number, maxWidthPx: number, liveUpdates?: boolean);
267
+ }
268
+
269
+ /**
270
+ * @license
271
+ * Copyright Google LLC All Rights Reserved.
272
+ *
273
+ * Use of this source code is governed by an MIT-style license that can be
274
+ * found in the LICENSE file at https://angular.dev/license
275
+ */
276
+
277
+ /**
278
+ * Base class for a component shown over the edge of a resizable column that is responsible
279
+ * for handling column resize mouse events and displaying any visible UI on the column edge.
280
+ */
281
+ declare abstract class ResizeOverlayHandle implements AfterViewInit, OnDestroy {
282
+ private _renderer;
283
+ protected readonly destroyed: Subject<void>;
284
+ protected abstract readonly columnDef: CdkColumnDef;
285
+ protected abstract readonly document: Document;
286
+ protected abstract readonly directionality: Directionality;
287
+ protected abstract readonly elementRef: ElementRef;
288
+ protected abstract readonly eventDispatcher: HeaderRowEventDispatcher;
289
+ protected abstract readonly ngZone: NgZone;
290
+ protected abstract readonly resizeNotifier: ColumnResizeNotifierSource;
291
+ protected abstract readonly resizeRef: ResizeRef;
292
+ protected abstract readonly styleScheduler: _CoalescedStyleScheduler;
293
+ private _cumulativeDeltaX;
294
+ ngAfterViewInit(): void;
295
+ ngOnDestroy(): void;
296
+ private _listenForMouseEvents;
297
+ private _dragStarted;
298
+ protected updateResizeActive(active: boolean): void;
299
+ private _triggerResize;
300
+ private _computeNewSize;
301
+ private _getOriginWidth;
302
+ private _getOriginOffset;
303
+ private _updateOverlayOffset;
304
+ private _isLtr;
305
+ private _notifyResizeEnded;
306
+ private _observableFromEvent;
307
+ static ɵfac: i0.ɵɵFactoryDeclaration<ResizeOverlayHandle, never>;
308
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ResizeOverlayHandle, never, never, {}, {}, never, never, true, never>;
309
+ }
310
+
311
+ /**
312
+ * @license
313
+ * Copyright Google LLC All Rights Reserved.
314
+ *
315
+ * Use of this source code is governed by an MIT-style license that can be
316
+ * found in the LICENSE file at https://angular.dev/license
317
+ */
318
+
319
+ /**
320
+ * Provides an implementation for resizing a column.
321
+ * The details of how resizing works for tables for flex mat-tables are quite different.
322
+ */
323
+ declare abstract class ResizeStrategy {
324
+ protected abstract readonly columnResize: ColumnResize;
325
+ protected abstract readonly styleScheduler: _CoalescedStyleScheduler;
326
+ protected abstract readonly table: CdkTable<unknown>;
327
+ private _pendingResizeDelta;
328
+ /** Updates the width of the specified column. */
329
+ abstract applyColumnSize(cssFriendlyColumnName: string, columnHeader: HTMLElement, sizeInPx: number, previousSizeInPx?: number): void;
330
+ /** Applies a minimum width to the specified column, updating its current width as needed. */
331
+ abstract applyMinColumnSize(cssFriendlyColumnName: string, columnHeader: HTMLElement, minSizeInPx: number): void;
332
+ /** Applies a maximum width to the specified column, updating its current width as needed. */
333
+ abstract applyMaxColumnSize(cssFriendlyColumnName: string, columnHeader: HTMLElement, minSizeInPx: number): void;
334
+ /** Adjusts the width of the table element by the specified delta. */
335
+ protected updateTableWidthAndStickyColumns(delta: number): void;
336
+ /** Gets the style.width pixels on the specified element if present, otherwise its offsetWidth. */
337
+ protected getElementWidth(element: HTMLElement): number;
338
+ static ɵfac: i0.ɵɵFactoryDeclaration<ResizeStrategy, never>;
339
+ static ɵprov: i0.ɵɵInjectableDeclaration<ResizeStrategy>;
340
+ }
341
+ /**
342
+ * The optimally performing resize strategy for &lt;table&gt; elements with table-layout: fixed.
343
+ * Tested against and outperformed:
344
+ * CSS selector
345
+ * CSS selector w/ CSS variable
346
+ * Updating all cell nodes
347
+ */
348
+ declare class TableLayoutFixedResizeStrategy extends ResizeStrategy {
349
+ protected readonly columnResize: ColumnResize;
350
+ protected readonly styleScheduler: _CoalescedStyleScheduler;
351
+ protected readonly table: CdkTable<unknown>;
352
+ applyColumnSize(_: string, columnHeader: HTMLElement, sizeInPx: number, previousSizeInPx?: number): void;
353
+ applyMinColumnSize(_: string, columnHeader: HTMLElement, sizeInPx: number): void;
354
+ applyMaxColumnSize(_: string, columnHeader: HTMLElement, sizeInPx: number): void;
355
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableLayoutFixedResizeStrategy, never>;
356
+ static ɵprov: i0.ɵɵInjectableDeclaration<TableLayoutFixedResizeStrategy>;
357
+ }
358
+ /**
359
+ * The optimally performing resize strategy for flex mat-tables.
360
+ * Tested against and outperformed:
361
+ * CSS selector w/ CSS variable
362
+ * Updating all mat-cell nodes
363
+ */
364
+ declare class CdkFlexTableResizeStrategy extends ResizeStrategy implements OnDestroy {
365
+ protected readonly columnResize: ColumnResize;
366
+ protected readonly styleScheduler: _CoalescedStyleScheduler;
367
+ protected readonly table: CdkTable<unknown>;
368
+ private readonly _nonce;
369
+ private readonly _document;
370
+ private readonly _columnIndexes;
371
+ private readonly _columnProperties;
372
+ private _styleElement?;
373
+ private _indexSequence;
374
+ protected readonly defaultMinSize = 0;
375
+ protected readonly defaultMaxSize: number;
376
+ applyColumnSize(cssFriendlyColumnName: string, columnHeader: HTMLElement, sizeInPx: number, previousSizeInPx?: number): void;
377
+ applyMinColumnSize(cssFriendlyColumnName: string, _: HTMLElement, sizeInPx: number): void;
378
+ applyMaxColumnSize(cssFriendlyColumnName: string, _: HTMLElement, sizeInPx: number): void;
379
+ protected getColumnCssClass(cssFriendlyColumnName: string): string;
380
+ ngOnDestroy(): void;
381
+ private _getPropertyValue;
382
+ private _getAppliedWidth;
383
+ private _applyProperty;
384
+ private _getStyleSheet;
385
+ private _getColumnPropertiesMap;
386
+ private _applySizeCss;
387
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkFlexTableResizeStrategy, never>;
388
+ static ɵprov: i0.ɵɵInjectableDeclaration<CdkFlexTableResizeStrategy>;
389
+ }
390
+ declare const TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER: Provider;
391
+ declare const FLEX_RESIZE_STRATEGY_PROVIDER: Provider;
392
+
393
+ /**
394
+ * Base class for Resizable directives which are applied to column headers to make those columns
395
+ * resizable.
396
+ */
397
+ declare abstract class Resizable<HandleComponent extends ResizeOverlayHandle> implements AfterViewInit, OnDestroy {
398
+ protected isResizable: boolean;
399
+ protected minWidthPxInternal: number;
400
+ protected maxWidthPxInternal: number;
401
+ protected inlineHandle?: HTMLElement;
402
+ protected overlayRef?: OverlayRef;
403
+ protected readonly destroyed: Subject<void>;
404
+ protected abstract readonly columnDef: CdkColumnDef;
405
+ protected abstract readonly columnResize: ColumnResize;
406
+ protected abstract readonly directionality: Directionality;
407
+ protected abstract readonly document: Document;
408
+ protected abstract readonly elementRef: ElementRef;
409
+ protected abstract readonly eventDispatcher: HeaderRowEventDispatcher;
410
+ protected abstract readonly injector: Injector;
411
+ protected abstract readonly ngZone: NgZone;
412
+ protected abstract readonly overlay: Overlay;
413
+ protected abstract readonly resizeNotifier: ColumnResizeNotifierSource;
414
+ protected abstract readonly resizeStrategy: ResizeStrategy;
415
+ protected abstract readonly styleScheduler: _CoalescedStyleScheduler;
416
+ protected abstract readonly viewContainerRef: ViewContainerRef;
417
+ protected abstract readonly changeDetectorRef: ChangeDetectorRef;
418
+ private _viewInitialized;
419
+ private _isDestroyed;
420
+ /** The minimum width to allow the column to be sized to. */
421
+ get minWidthPx(): number;
422
+ set minWidthPx(value: number);
423
+ /** The maximum width to allow the column to be sized to. */
424
+ get maxWidthPx(): number;
425
+ set maxWidthPx(value: number);
426
+ ngAfterViewInit(): void;
427
+ ngOnDestroy(): void;
428
+ protected abstract getInlineHandleCssClassName(): string;
429
+ protected abstract getOverlayHandleComponentType(): Type<HandleComponent>;
430
+ private _createOverlayForHandle;
431
+ private _listenForRowHoverEvents;
432
+ private _listenForResizeEvents;
433
+ private _completeResizeOperation;
434
+ private _cleanUpAfterResize;
435
+ private _createHandlePortal;
436
+ private _showHandleOverlay;
437
+ private _updateOverlayHandleHeight;
438
+ private _applySize;
439
+ private _applyMinWidthPx;
440
+ private _applyMaxWidthPx;
441
+ private _appendInlineHandle;
442
+ static ɵfac: i0.ɵɵFactoryDeclaration<Resizable<any>, never>;
443
+ static ɵdir: i0.ɵɵDirectiveDeclaration<Resizable<any>, never, never, {}, {}, never, never, true, never>;
444
+ }
445
+
446
+ /**
447
+ * @license
448
+ * Copyright Google LLC All Rights Reserved.
449
+ *
450
+ * Use of this source code is governed by an MIT-style license that can be
451
+ * found in the LICENSE file at https://angular.dev/license
452
+ */
453
+
454
+ declare const TABLE_PROVIDERS: Provider[];
455
+ declare const FLEX_PROVIDERS: Provider[];
456
+
457
+ export { COLUMN_RESIZE_OPTIONS, CdkColumnResize, CdkColumnResizeFlex, CdkColumnResizeModule, CdkFlexTableResizeStrategy, ColumnResize, ColumnResizeNotifier, ColumnResizeNotifierSource, ColumnSizeStore, FLEX_PROVIDERS, FLEX_RESIZE_STRATEGY_PROVIDER, HeaderRowEventDispatcher, Resizable, ResizeOverlayHandle, ResizeRef, ResizeStrategy, TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER, TABLE_PROVIDERS, TableLayoutFixedResizeStrategy, _COALESCED_STYLE_SCHEDULER, _CoalescedStyleScheduler, _Schedule };
458
+ export type { ColumnResizeOptions, ColumnSize, ColumnSizeAction };
package/core/index.d.ts CHANGED
@@ -1,5 +1,147 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ng-matero/extensions/core" />
5
- export * from './public-api';
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, Provider, PipeTransform, TemplateRef } from '@angular/core';
3
+ import * as i1 from '@angular/material/core';
4
+ import { DateAdapter } from '@angular/material/core';
5
+ import * as i1$1 from '@angular/common';
6
+ import { Observable } from 'rxjs';
7
+
8
+ interface MtxDatetimeFormats {
9
+ parse: {
10
+ dateInput?: any;
11
+ monthInput?: any;
12
+ yearInput?: any;
13
+ timeInput?: any;
14
+ datetimeInput?: any;
15
+ };
16
+ display: {
17
+ dateInput: any;
18
+ monthInput: any;
19
+ yearInput?: any;
20
+ timeInput: any;
21
+ datetimeInput: any;
22
+ monthYearLabel: any;
23
+ dateA11yLabel: any;
24
+ monthYearA11yLabel: any;
25
+ popupHeaderDateLabel: any;
26
+ };
27
+ }
28
+ declare const MTX_DATETIME_FORMATS: InjectionToken<MtxDatetimeFormats>;
29
+
30
+ declare class NativeDatetimeModule {
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<NativeDatetimeModule, never>;
32
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NativeDatetimeModule, never, [typeof i1.NativeDateModule], never>;
33
+ static ɵinj: i0.ɵɵInjectorDeclaration<NativeDatetimeModule>;
34
+ }
35
+ declare function provideNativeDatetimeAdapter(formats?: MtxDatetimeFormats): Provider[];
36
+ declare class MtxNativeDatetimeModule {
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxNativeDatetimeModule, never>;
38
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MtxNativeDatetimeModule, never, never, never>;
39
+ static ɵinj: i0.ɵɵInjectorDeclaration<MtxNativeDatetimeModule>;
40
+ }
41
+
42
+ declare abstract class DatetimeAdapter<D> extends DateAdapter<D> {
43
+ protected _delegate: DateAdapter<D, any>;
44
+ abstract getHour(date: D): number;
45
+ abstract getMinute(date: D): number;
46
+ abstract getFirstDateOfMonth(date: D): D;
47
+ abstract getWeek(date: D, firstDayOfWeek: number): number;
48
+ abstract isInNextMonth(startDate: D, endDate: D): boolean;
49
+ abstract getHourNames(): string[];
50
+ abstract getMinuteNames(): string[];
51
+ abstract addCalendarHours(date: D, months: number): D;
52
+ abstract addCalendarMinutes(date: D, minutes: number): D;
53
+ abstract createDatetime(year: number, month: number, date: number, hour: number, minute: number): D;
54
+ getValidDateOrNull(obj: any): D | null;
55
+ compareDatetime(first: D, second: D, respectMinutePart?: boolean): number | boolean;
56
+ sameDatetime(first: D | null, second: D | null): boolean;
57
+ sameYear(first: D, second: D): boolean;
58
+ sameDay(first: D, second: D): boolean;
59
+ sameHour(first: D, second: D): boolean;
60
+ sameMinute(first: D, second: D): boolean;
61
+ sameMonthAndYear(first: D | null, second: D | null): boolean;
62
+ clone(date: D): D;
63
+ addCalendarYears(date: D, years: number): D;
64
+ addCalendarMonths(date: D, months: number): D;
65
+ addCalendarDays(date: D, days: number): D;
66
+ getYear(date: D): number;
67
+ getMonth(date: D): number;
68
+ getDate(date: D): number;
69
+ getDayOfWeek(date: D): number;
70
+ getMonthNames(style: any): string[];
71
+ getDateNames(): string[];
72
+ getDayOfWeekNames(style: any): string[];
73
+ getYearName(date: D): string;
74
+ getFirstDayOfWeek(): number;
75
+ getNumDaysInMonth(date: D): number;
76
+ createDate(year: number, month: number, date: number): D;
77
+ today(): D;
78
+ parse(value: any, parseFormat: any): D | null;
79
+ format(date: D, displayFormat: any): string;
80
+ toIso8601(date: D): string;
81
+ isDateInstance(obj: any): boolean;
82
+ isValid(date: D): boolean;
83
+ invalid(): D;
84
+ clampDate(date: D, min?: D | null, max?: D | null): D;
85
+ }
86
+
87
+ declare class NativeDatetimeAdapter extends DatetimeAdapter<Date> {
88
+ /** Inserted by Angular inject() migration for backwards compatibility */
89
+ constructor(...args: unknown[]);
90
+ clone(date: Date): Date;
91
+ getHour(date: Date): number;
92
+ getMinute(date: Date): number;
93
+ isInNextMonth(startDate: Date, endDate: Date): boolean;
94
+ getWeek(date: Date, firstDayOfWeek: number): number;
95
+ createDatetime(year: number, month: number, date: number, hour: number, minute: number): Date;
96
+ getFirstDateOfMonth(date: Date): Date;
97
+ getHourNames(): string[];
98
+ getMinuteNames(): string[];
99
+ addCalendarYears(date: Date, years: number): Date;
100
+ addCalendarMonths(date: Date, months: number): Date;
101
+ addCalendarDays(date: Date, days: number): Date;
102
+ addCalendarHours(date: Date, hours: number): Date;
103
+ addCalendarMinutes(date: Date, minutes: number): Date;
104
+ toIso8601(date: Date): string;
105
+ private getDateInNextMonth;
106
+ /**
107
+ * Strip out unicode LTR and RTL characters. Edge and IE insert these into formatted dates while
108
+ * other browsers do not. We remove them to make output consistent and because they interfere with
109
+ * date parsing.
110
+ * @param str The string to strip direction characters from.
111
+ * @returns The stripped string.
112
+ */
113
+ private _stripDirectionalityCharacters;
114
+ /**
115
+ * Pads a number to make it two digits.
116
+ * @param n The number to pad.
117
+ * @returns The padded number.
118
+ */
119
+ private _2digit;
120
+ /** Creates a date but allows the month and date to overflow. */
121
+ private _createDateWithOverflow;
122
+ static ɵfac: i0.ɵɵFactoryDeclaration<NativeDatetimeAdapter, never>;
123
+ static ɵprov: i0.ɵɵInjectableDeclaration<NativeDatetimeAdapter>;
124
+ }
125
+
126
+ declare const MTX_NATIVE_DATETIME_FORMATS: MtxDatetimeFormats;
127
+
128
+ declare class MtxToObservablePipe implements PipeTransform {
129
+ transform(value: Observable<any> | unknown): Observable<any>;
130
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxToObservablePipe, never>;
131
+ static ɵpipe: i0.ɵɵPipeDeclaration<MtxToObservablePipe, "toObservable", true>;
132
+ }
133
+
134
+ declare class MtxIsTemplateRefPipe implements PipeTransform {
135
+ transform(obj: any): obj is TemplateRef<any>;
136
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxIsTemplateRefPipe, never>;
137
+ static ɵpipe: i0.ɵɵPipeDeclaration<MtxIsTemplateRefPipe, "isTemplateRef", true>;
138
+ }
139
+
140
+ declare class MtxPipesModule {
141
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxPipesModule, never>;
142
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MtxPipesModule, never, [typeof i1$1.CommonModule, typeof MtxToObservablePipe, typeof MtxIsTemplateRefPipe], [typeof MtxToObservablePipe, typeof MtxIsTemplateRefPipe]>;
143
+ static ɵinj: i0.ɵɵInjectorDeclaration<MtxPipesModule>;
144
+ }
145
+
146
+ export { DatetimeAdapter, MTX_DATETIME_FORMATS, MTX_NATIVE_DATETIME_FORMATS, MtxIsTemplateRefPipe, MtxNativeDatetimeModule, MtxPipesModule, MtxToObservablePipe, NativeDatetimeAdapter, NativeDatetimeModule, provideNativeDatetimeAdapter };
147
+ export type { MtxDatetimeFormats };
@@ -8,39 +8,32 @@
8
8
  // from the bundle.
9
9
  $_overrides-only: true;
10
10
 
11
- @mixin color-variant-styles($theme, $color-variant) {
12
- $primary-options: (color-variant: $color-variant, emit-overrides-only: $_overrides-only);
13
-
14
- // Some components use the secondary color rather than primary color for `.mat-primary`.
15
- // Those components should use the $secondary-color-variant.
16
- $secondary-options: (
17
- color-variant: if($color-variant == primary, secondary, $color-variant),
18
- emit-overrides-only: $_overrides-only
19
- );
11
+ @mixin _color-variant-styles($theme, $color-variant) {
12
+ $secondary-when-primary: if($color-variant == primary, secondary, $color-variant);
20
13
 
21
14
  &.mtx-split-gutter {
22
- @include split-theme.color($theme, $primary-options...);
15
+ @include split-theme.color($theme, $color-variant);
23
16
  }
24
17
 
25
18
  &.mtx-datetimepicker-content {
26
- @include datetimepicker-theme.color($theme, $primary-options...);
19
+ @include datetimepicker-theme.color($theme, $color-variant);
27
20
  }
28
21
 
29
22
  &.ng-dropdown-panel {
30
- @include select-theme.color($theme, $secondary-options...);
23
+ @include select-theme.color($theme, $secondary-when-primary);
31
24
  }
32
25
  }
33
26
 
34
27
  @mixin color-variants-backwards-compatibility($theme) {
35
28
  .mat-primary {
36
- @include color-variant-styles($theme, primary);
29
+ @include _color-variant-styles($theme, primary);
37
30
  }
38
31
 
39
32
  .mat-accent {
40
- @include color-variant-styles($theme, tertiary);
33
+ @include _color-variant-styles($theme, tertiary);
41
34
  }
42
35
 
43
36
  .mat-warn {
44
- @include color-variant-styles($theme, error);
37
+ @include _color-variant-styles($theme, error);
45
38
  }
46
39
  }