@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,88 +0,0 @@
1
- import { AfterViewInit, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
2
- import { AbstractControl, ControlValueAccessor, ValidationErrors } from '@angular/forms';
3
- import { ThemePalette } from '@angular/material/core';
4
- import { MtxColorpicker } from './colorpicker';
5
- import * as i0 from "@angular/core";
6
- export declare class MtxColorPickerInputEvent {
7
- /** Reference to the colorpicker input component that emitted the event. */
8
- target: MtxColorpickerInput;
9
- /** Reference to the native input element associated with the colorpicker input. */
10
- targetElement: HTMLElement;
11
- /** The new value for the target colorpicker input. */
12
- value: string | null;
13
- constructor(
14
- /** Reference to the colorpicker input component that emitted the event. */
15
- target: MtxColorpickerInput,
16
- /** Reference to the native input element associated with the colorpicker input. */
17
- targetElement: HTMLElement);
18
- }
19
- export declare const MTX_COLORPICKER_VALUE_ACCESSOR: any;
20
- export declare const MTX_COLORPICKER_VALIDATORS: any;
21
- export type ColorFormat = 'hex' | 'rgb' | 'hsl' | 'hsv';
22
- export declare class MtxColorpickerInput implements ControlValueAccessor, AfterViewInit, OnDestroy {
23
- private _elementRef;
24
- private _formField;
25
- /** Whether the component has been initialized. */
26
- private _isInitialized;
27
- set mtxColorpicker(value: MtxColorpicker);
28
- _picker: MtxColorpicker;
29
- /** Whether the colorpicker-input is disabled. */
30
- get disabled(): boolean;
31
- set disabled(value: boolean);
32
- private _disabled;
33
- /** The value of the input. */
34
- get value(): string | null;
35
- set value(value: string | null);
36
- private _value;
37
- /** The input and output color format. */
38
- format: ColorFormat;
39
- /** Emits when a `change` event is fired on this `<input>`. */
40
- readonly colorChange: EventEmitter<MtxColorPickerInputEvent>;
41
- /** Emits when an `input` event is fired on this `<input>`. */
42
- readonly colorInput: EventEmitter<MtxColorPickerInputEvent>;
43
- /** Emits when the disabled state has changed */
44
- _disabledChange: EventEmitter<boolean>;
45
- /** Emits when the value changes (either due to user input or programmatic change). */
46
- _valueChange: EventEmitter<string | null>;
47
- _onTouched: () => void;
48
- _validatorOnChange: () => void;
49
- private _cvaOnChange;
50
- private _pickerSubscription;
51
- /** The combined form control validator for this input. */
52
- private _validator;
53
- /** Whether the last value set on the input was valid. */
54
- private _lastValueValid;
55
- ngAfterViewInit(): void;
56
- ngOnDestroy(): void;
57
- registerOnValidatorChange(fn: () => void): void;
58
- /** @docs-private */
59
- validate(c: AbstractControl): ValidationErrors | null;
60
- /**
61
- * @deprecated
62
- * @breaking-change 8.0.0 Use `getConnectedOverlayOrigin` instead
63
- */
64
- getPopupConnectionElementRef(): ElementRef;
65
- /**
66
- * Gets the element that the colorpicker popup should be connected to.
67
- * @return The element to connect the popup to.
68
- */
69
- getConnectedOverlayOrigin(): ElementRef;
70
- /** Gets the ID of an element that should be used a description for the overlay. */
71
- getOverlayLabelId(): string | null;
72
- writeValue(value: string): void;
73
- registerOnChange(fn: (value: any) => void): void;
74
- registerOnTouched(fn: () => void): void;
75
- setDisabledState(isDisabled: boolean): void;
76
- _onKeydown(event: KeyboardEvent): void;
77
- /** Handles blur events on the input. */
78
- _onBlur(): void;
79
- _onInput(value: string): void;
80
- _onChange(): void;
81
- /** Returns the palette used by the input's form field, if any. */
82
- getThemePalette(): ThemePalette;
83
- /** TODO: Formats a value and sets it on the input element. */
84
- private _formatValue;
85
- static ɵfac: i0.ɵɵFactoryDeclaration<MtxColorpickerInput, never>;
86
- static ɵdir: i0.ɵɵDirectiveDeclaration<MtxColorpickerInput, "input[mtxColorpicker]", ["mtxColorpickerInput"], { "mtxColorpicker": { "alias": "mtxColorpicker"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "format": { "alias": "format"; "required": false; }; }, { "colorChange": "colorChange"; "colorInput": "colorInput"; }, never, never, true, never>;
87
- static ngAcceptInputType_disabled: unknown;
88
- }
@@ -1,15 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@angular/common";
3
- import * as i2 from "@angular/cdk/overlay";
4
- import * as i3 from "@angular/cdk/a11y";
5
- import * as i4 from "@angular/cdk/portal";
6
- import * as i5 from "@angular/material/button";
7
- import * as i6 from "ngx-color/chrome";
8
- import * as i7 from "./colorpicker";
9
- import * as i8 from "./colorpicker-input";
10
- import * as i9 from "./colorpicker-toggle";
11
- export declare class MtxColorpickerModule {
12
- static ɵfac: i0.ɵɵFactoryDeclaration<MtxColorpickerModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<MtxColorpickerModule, never, [typeof i1.CommonModule, typeof i2.OverlayModule, typeof i3.A11yModule, typeof i4.PortalModule, typeof i5.MatButtonModule, typeof i6.ColorChromeModule, typeof i7.MtxColorpicker, typeof i7.MtxColorpickerContent, typeof i8.MtxColorpickerInput, typeof i9.MtxColorpickerToggle, typeof i9.MtxColorpickerToggleIcon], [typeof i7.MtxColorpicker, typeof i7.MtxColorpickerContent, typeof i8.MtxColorpickerInput, typeof i9.MtxColorpickerToggle, typeof i9.MtxColorpickerToggleIcon]>;
14
- static ɵinj: i0.ɵɵInjectorDeclaration<MtxColorpickerModule>;
15
- }
@@ -1,39 +0,0 @@
1
- import { AfterContentInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
- import { MatButton } from '@angular/material/button';
3
- import { MtxColorpicker } from './colorpicker';
4
- import * as i0 from "@angular/core";
5
- /** Can be used to override the icon of a `mtxColorpickerToggle`. */
6
- export declare class MtxColorpickerToggleIcon {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<MtxColorpickerToggleIcon, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<MtxColorpickerToggleIcon, "[mtxColorpickerToggleIcon]", never, {}, {}, never, never, true, never>;
9
- }
10
- export declare class MtxColorpickerToggle implements AfterContentInit, OnChanges, OnDestroy {
11
- private _changeDetectorRef;
12
- private _stateChanges;
13
- /** Colorpicker instance that the button will toggle. */
14
- picker: MtxColorpicker;
15
- /** Tabindex for the toggle. */
16
- tabIndex: number | null;
17
- /** Screen-reader label for the button. */
18
- ariaLabel: string;
19
- /** Whether the toggle button is disabled. */
20
- get disabled(): boolean;
21
- set disabled(value: boolean);
22
- private _disabled;
23
- /** Whether ripples on the toggle should be disabled. */
24
- disableRipple: boolean;
25
- /** Custom icon set by the consumer. */
26
- _customIcon: MtxColorpickerToggleIcon;
27
- /** Underlying button element. */
28
- _button: MatButton;
29
- constructor();
30
- ngOnChanges(changes: SimpleChanges): void;
31
- ngOnDestroy(): void;
32
- ngAfterContentInit(): void;
33
- _open(event: Event): void;
34
- private _watchStateChanges;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<MtxColorpickerToggle, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<MtxColorpickerToggle, "mtx-colorpicker-toggle", ["mtxColorpickerToggle"], { "picker": { "alias": "for"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; }, {}, ["_customIcon"], ["[mtxColorpickerToggleIcon]"], true, never>;
37
- static ngAcceptInputType_disabled: unknown;
38
- static ngAcceptInputType_disableRipple: unknown;
39
- }
@@ -1,140 +0,0 @@
1
- import { Overlay, ScrollStrategy } from '@angular/cdk/overlay';
2
- import { ElementRef, EventEmitter, InjectionToken, OnChanges, OnDestroy, TemplateRef } from '@angular/core';
3
- import { ThemePalette } from '@angular/material/core';
4
- import { Subject } from 'rxjs';
5
- import { ColorEvent } from 'ngx-color';
6
- import { ColorFormat, MtxColorpickerInput } from './colorpicker-input';
7
- import * as i0 from "@angular/core";
8
- /** Injection token that determines the scroll handling while the panel is open. */
9
- export declare const MTX_COLORPICKER_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
10
- /**
11
- * @docs-private
12
- * @deprecated No longer used, will be removed.
13
- * @breaking-change 21.0.0
14
- */
15
- export declare function MTX_COLORPICKER_SCROLL_STRATEGY_FACTORY(overlay: Overlay): () => ScrollStrategy;
16
- /** Possible positions for the colorpicker dropdown along the X axis. */
17
- export type ColorpickerDropdownPositionX = 'start' | 'end';
18
- /** Possible positions for the colorpicker dropdown along the Y axis. */
19
- export type ColorpickerDropdownPositionY = 'above' | 'below';
20
- /**
21
- * @docs-private
22
- * @deprecated No longer used, will be removed.
23
- * @breaking-change 21.0.0
24
- */
25
- export declare const MTX_COLORPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER: {
26
- provide: InjectionToken<() => ScrollStrategy>;
27
- deps: (typeof Overlay)[];
28
- useFactory: typeof MTX_COLORPICKER_SCROLL_STRATEGY_FACTORY;
29
- };
30
- export declare class MtxColorpickerContent implements OnDestroy {
31
- protected _elementRef: ElementRef<HTMLElement>;
32
- protected _animationsDisabled: boolean;
33
- private _changeDetectorRef;
34
- private _ngZone;
35
- private _eventCleanups;
36
- private _animationFallback;
37
- color: ThemePalette;
38
- picker: MtxColorpicker;
39
- /** Emits when an animation has finished. */
40
- readonly _animationDone: Subject<void>;
41
- /** Whether there is an in-progress animation. */
42
- _isAnimating: boolean;
43
- constructor();
44
- ngOnDestroy(): void;
45
- _startExitAnimation(): void;
46
- private _handleAnimationEvent;
47
- getColorString(e: ColorEvent): string;
48
- static ɵfac: i0.ɵɵFactoryDeclaration<MtxColorpickerContent, never>;
49
- static ɵcmp: i0.ɵɵComponentDeclaration<MtxColorpickerContent, "mtx-colorpicker-content", ["mtxColorpickerContent"], { "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
50
- }
51
- export declare class MtxColorpicker implements OnChanges, OnDestroy {
52
- private _overlay;
53
- private _viewContainerRef;
54
- private _dir?;
55
- private _document?;
56
- private _scrollStrategy;
57
- private _inputStateChanges;
58
- /** Custom colorpicker content set by the consumer. */
59
- content: TemplateRef<any>;
60
- /** Emits when the colorpicker has been opened. */
61
- openedStream: EventEmitter<void>;
62
- /** Emits when the colorpicker has been closed. */
63
- closedStream: EventEmitter<void>;
64
- get disabled(): boolean;
65
- set disabled(value: boolean);
66
- private _disabled;
67
- /** Preferred position of the colorpicker in the X axis. */
68
- xPosition: ColorpickerDropdownPositionX;
69
- /** Preferred position of the colorpicker in the Y axis. */
70
- yPosition: ColorpickerDropdownPositionY;
71
- /**
72
- * Whether to restore focus to the previously-focused element when the panel is closed.
73
- * Note that automatic focus restoration is an accessibility feature and it is recommended that
74
- * you provide your own equivalent, if you decide to turn it off.
75
- */
76
- restoreFocus: boolean;
77
- /** Whether the panel is open. */
78
- get opened(): boolean;
79
- set opened(value: boolean);
80
- private _opened;
81
- /** The id for the colorpicker panel. */
82
- id: string;
83
- /** Color palette to use on the colorpicker's panel. */
84
- get color(): ThemePalette;
85
- set color(value: ThemePalette);
86
- private _color;
87
- /** The input and output color format. */
88
- get format(): ColorFormat;
89
- set format(value: ColorFormat);
90
- _format: ColorFormat;
91
- /** The currently selected color. */
92
- get selected(): string;
93
- set selected(value: string);
94
- private _validSelected;
95
- /** A reference to the overlay when the picker is opened as a popup. */
96
- private _overlayRef;
97
- /** Reference to the component instance rendered in the overlay. */
98
- private _componentRef;
99
- /** The element that was focused before the colorpicker was opened. */
100
- private _focusedElementBeforeOpen;
101
- /** Unique class that will be added to the backdrop so that the test harnesses can look it up. */
102
- private _backdropHarnessClass;
103
- /** The input element this colorpicker is associated with. */
104
- pickerInput: MtxColorpickerInput;
105
- /** Emits when the colorpicker is disabled. */
106
- readonly _disabledChange: Subject<boolean>;
107
- /** Emits new selected color when selected color changes. */
108
- readonly _selectedChanged: Subject<string>;
109
- private _injector;
110
- ngOnChanges(): void;
111
- ngOnDestroy(): void;
112
- /** Selects the given color. */
113
- select(nextVal: string): void;
114
- /**
115
- * Register an input with this colorpicker.
116
- * @param input The colorpicker input to register with this colorpicker.
117
- */
118
- registerInput(input: MtxColorpickerInput): void;
119
- /** Open the panel. */
120
- open(): void;
121
- /** Close the panel. */
122
- close(): void;
123
- /** Forwards relevant values from the colorpicker to the colorpicker content inside the overlay. */
124
- protected _forwardContentValues(instance: MtxColorpickerContent): void;
125
- /** Open the colopicker as a popup. */
126
- private _openOverlay;
127
- /** Destroys the current overlay. */
128
- private _destroyOverlay;
129
- /** Gets a position strategy that will open the panel as a dropdown. */
130
- private _getDropdownStrategy;
131
- /** Sets the positions of the colorpicker in dropdown mode based on the current configuration. */
132
- private _setConnectedPositions;
133
- /** Gets an observable that will emit when the overlay is supposed to be closed. */
134
- private _getCloseStream;
135
- static ɵfac: i0.ɵɵFactoryDeclaration<MtxColorpicker, never>;
136
- static ɵcmp: i0.ɵɵComponentDeclaration<MtxColorpicker, "mtx-colorpicker", ["mtxColorpicker"], { "content": { "alias": "content"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "xPosition": { "alias": "xPosition"; "required": false; }; "yPosition": { "alias": "yPosition"; "required": false; }; "restoreFocus": { "alias": "restoreFocus"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; "color": { "alias": "color"; "required": false; }; "format": { "alias": "format"; "required": false; }; }, { "openedStream": "opened"; "closedStream": "closed"; }, never, never, true, never>;
137
- static ngAcceptInputType_disabled: unknown;
138
- static ngAcceptInputType_restoreFocus: unknown;
139
- static ngAcceptInputType_opened: unknown;
140
- }
@@ -1,5 +0,0 @@
1
- export * from './colorpicker-module';
2
- export { MTX_COLORPICKER_SCROLL_STRATEGY, MTX_COLORPICKER_SCROLL_STRATEGY_FACTORY, MTX_COLORPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER, MtxColorpickerContent, ColorpickerDropdownPositionX, ColorpickerDropdownPositionY, MtxColorpicker, } from './colorpicker';
3
- export { MTX_COLORPICKER_VALUE_ACCESSOR, MTX_COLORPICKER_VALIDATORS, MtxColorpickerInput, ColorFormat, } from './colorpicker-input';
4
- export * from './colorpicker-toggle';
5
- export * from './colorpicker-animations';
@@ -1,29 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { ElementRef, NgZone } from '@angular/core';
9
- import { CdkTable } from '@angular/cdk/table';
10
- import { ColumnResize } from '../column-resize';
11
- import { ColumnResizeNotifier, ColumnResizeNotifierSource } from '../column-resize-notifier';
12
- import { HeaderRowEventDispatcher } from '../event-dispatcher';
13
- import * as i0 from "@angular/core";
14
- /**
15
- * Explicitly enables column resizing for a flexbox-based cdk-table.
16
- * Individual columns must be annotated specifically.
17
- */
18
- export declare class CdkColumnResizeFlex extends ColumnResize {
19
- readonly columnResizeNotifier: ColumnResizeNotifier;
20
- readonly elementRef: ElementRef<HTMLElement>;
21
- protected readonly eventDispatcher: HeaderRowEventDispatcher;
22
- protected readonly ngZone: NgZone;
23
- protected readonly notifier: ColumnResizeNotifierSource;
24
- protected readonly table: CdkTable<unknown>;
25
- /** Inserted by Angular inject() migration for backwards compatibility */
26
- constructor(...args: unknown[]);
27
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkColumnResizeFlex, never>;
28
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkColumnResizeFlex, "cdk-table[columnResize]", never, {}, {}, never, never, true, never>;
29
- }
@@ -1,29 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { ElementRef, NgZone } from '@angular/core';
9
- import { CdkTable } from '@angular/cdk/table';
10
- import { ColumnResize } from '../column-resize';
11
- import { ColumnResizeNotifier, ColumnResizeNotifierSource } from '../column-resize-notifier';
12
- import { HeaderRowEventDispatcher } from '../event-dispatcher';
13
- import * as i0 from "@angular/core";
14
- /**
15
- * Explicitly enables column resizing for a table-based cdk-table.
16
- * Individual columns must be annotated specifically.
17
- */
18
- export declare class CdkColumnResize extends ColumnResize {
19
- readonly columnResizeNotifier: ColumnResizeNotifier;
20
- readonly elementRef: ElementRef<HTMLElement>;
21
- protected readonly eventDispatcher: HeaderRowEventDispatcher;
22
- protected readonly ngZone: NgZone;
23
- protected readonly notifier: ColumnResizeNotifierSource;
24
- protected readonly table: CdkTable<unknown>;
25
- /** Inserted by Angular inject() migration for backwards compatibility */
26
- constructor(...args: unknown[]);
27
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkColumnResize, never>;
28
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkColumnResize, "table[cdk-table][columnResize]", never, {}, {}, never, never, true, never>;
29
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { Provider } from '@angular/core';
9
- export declare const TABLE_PROVIDERS: Provider[];
10
- export declare const FLEX_PROVIDERS: Provider[];
@@ -1,12 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./column-resize-directives/column-resize";
3
- import * as i2 from "./column-resize-directives/column-resize-flex";
4
- /**
5
- * One of two NgModules for use with CdkColumnResize.
6
- * When using this module, columns are not resizable by default.
7
- */
8
- export declare class CdkColumnResizeModule {
9
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkColumnResizeModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<CdkColumnResizeModule, never, [typeof i1.CdkColumnResize, typeof i2.CdkColumnResizeFlex], [typeof i1.CdkColumnResize, typeof i2.CdkColumnResizeFlex]>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<CdkColumnResizeModule>;
12
- }
@@ -1,48 +0,0 @@
1
- import { Observable, Subject } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- /** Indicates the width of a column. */
4
- export interface ColumnSize {
5
- /** The ID/name of the column, as defined in CdkColumnDef. */
6
- readonly columnId: string;
7
- /** The width in pixels of the column. */
8
- readonly size: number;
9
- /** The width in pixels of the column prior to this update, if known. */
10
- readonly previousSize?: number;
11
- }
12
- /** Interface describing column size changes. */
13
- export interface ColumnSizeAction extends ColumnSize {
14
- /**
15
- * Whether the resize action should be applied instantaneously. False for events triggered during
16
- * a UI-triggered resize (such as with the mouse) until the mouse button is released. True
17
- * for all programmatically triggered resizes.
18
- */
19
- readonly completeImmediately?: boolean;
20
- /**
21
- * Whether the resize action is being applied to a sticky/stickyEnd column.
22
- */
23
- readonly isStickyColumn?: boolean;
24
- }
25
- /**
26
- * Originating source of column resize events within a table.
27
- * @docs-private
28
- */
29
- export declare class ColumnResizeNotifierSource {
30
- /** Emits when an in-progress resize is canceled. */
31
- readonly resizeCanceled: Subject<ColumnSizeAction>;
32
- /** Emits when a resize is applied. */
33
- readonly resizeCompleted: Subject<ColumnSize>;
34
- /** Triggers a resize action. */
35
- readonly triggerResize: Subject<ColumnSizeAction>;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<ColumnResizeNotifierSource, never>;
37
- static ɵprov: i0.ɵɵInjectableDeclaration<ColumnResizeNotifierSource>;
38
- }
39
- /** Service for triggering column resizes imperatively or being notified of them. */
40
- export declare class ColumnResizeNotifier {
41
- private readonly _source;
42
- /** Emits whenever a column is resized. */
43
- readonly resizeCompleted: Observable<ColumnSize>;
44
- /** Instantly resizes the specified column. */
45
- resize(columnId: string, size: number): void;
46
- static ɵfac: i0.ɵɵFactoryDeclaration<ColumnResizeNotifier, never>;
47
- static ɵprov: i0.ɵɵInjectableDeclaration<ColumnResizeNotifier>;
48
- }
@@ -1,39 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { AfterViewInit, ElementRef, NgZone, OnDestroy } from '@angular/core';
9
- import { Subject } from 'rxjs';
10
- import { ColumnResizeNotifier, ColumnResizeNotifierSource } from './column-resize-notifier';
11
- import { HeaderRowEventDispatcher } from './event-dispatcher';
12
- import * as i0 from "@angular/core";
13
- /**
14
- * Base class for ColumnResize directives which attach to mat-table elements to
15
- * provide common events and services for column resizing.
16
- */
17
- export declare abstract class ColumnResize implements AfterViewInit, OnDestroy {
18
- protected readonly destroyed: Subject<void>;
19
- abstract readonly columnResizeNotifier: ColumnResizeNotifier;
20
- abstract readonly elementRef: ElementRef<HTMLElement>;
21
- protected abstract readonly eventDispatcher: HeaderRowEventDispatcher;
22
- protected abstract readonly ngZone: NgZone;
23
- protected abstract readonly notifier: ColumnResizeNotifierSource;
24
- /** Unique ID for this table instance. */
25
- protected readonly selectorId: string;
26
- /** The id attribute of the table, if specified. */
27
- id?: string;
28
- ngAfterViewInit(): void;
29
- ngOnDestroy(): void;
30
- /** Gets the unique CSS class name for this table instance. */
31
- getUniqueCssClass(): string;
32
- /** Called when a column in the table is resized. Applies a css class to the table element. */
33
- setResized(): void;
34
- private _listenForRowHoverEvents;
35
- private _listenForResizeActivity;
36
- private _listenForHoverActivity;
37
- static ɵfac: i0.ɵɵFactoryDeclaration<ColumnResize, never>;
38
- static ɵdir: i0.ɵɵDirectiveDeclaration<ColumnResize, never, never, {}, {}, never, never, true, never>;
39
- }
@@ -1,12 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * Can be provided by the host application to enable persistence of column resize state.
4
- */
5
- export declare abstract class ColumnSizeStore {
6
- /** Returns the persisted size of the specified column in the specified table. */
7
- abstract getSize(tableId: string, columnId: string): number;
8
- /** Persists the size of the specified column in the specified table. */
9
- abstract setSize(tableId: string, columnId: string): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<ColumnSizeStore, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<ColumnSizeStore>;
12
- }
@@ -1,35 +0,0 @@
1
- import { Observable, Subject } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- /** Coordinates events between the column resize directives. */
4
- export declare class HeaderRowEventDispatcher {
5
- private readonly _ngZone;
6
- /**
7
- * Emits the currently hovered header cell or null when no header cells are hovered.
8
- * Exposed publicly for events to feed in, but subscribers should use headerCellHoveredDistinct,
9
- * defined below.
10
- */
11
- readonly headerCellHovered: Subject<Element | null>;
12
- /**
13
- * Emits the header cell for which a user-triggered resize is active or null
14
- * when no resize is in progress.
15
- */
16
- readonly overlayHandleActiveForCell: Subject<Element | null>;
17
- /** Distinct and shared version of headerCellHovered. */
18
- readonly headerCellHoveredDistinct: Observable<Element | null>;
19
- /**
20
- * Emits the header that is currently hovered or hosting an active resize event (with active
21
- * taking precedence).
22
- */
23
- readonly headerRowHoveredOrActiveDistinct: Observable<Element | null>;
24
- private readonly _headerRowHoveredOrActiveDistinctReenterZone;
25
- private _lastSeenRow;
26
- private _lastSeenRowHover;
27
- /**
28
- * Emits whether the specified row should show its overlay controls.
29
- * Emission occurs within the NgZone.
30
- */
31
- resizeOverlayVisibleForHeaderRow(row: Element): Observable<boolean>;
32
- private _enterZone;
33
- static ɵfac: i0.ɵɵFactoryDeclaration<HeaderRowEventDispatcher, never>;
34
- static ɵprov: i0.ɵɵInjectableDeclaration<HeaderRowEventDispatcher>;
35
- }
@@ -1,43 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { AfterViewInit, ElementRef, OnDestroy, NgZone } from '@angular/core';
9
- import { Directionality } from '@angular/cdk/bidi';
10
- import { CdkColumnDef, _CoalescedStyleScheduler } from '@angular/cdk/table';
11
- import { Subject } from 'rxjs';
12
- import { ColumnResizeNotifierSource } from './column-resize-notifier';
13
- import { HeaderRowEventDispatcher } from './event-dispatcher';
14
- import { ResizeRef } from './resize-ref';
15
- import * as i0 from "@angular/core";
16
- /**
17
- * Base class for a component shown over the edge of a resizable column that is responsible
18
- * for handling column resize mouse events and displaying any visible UI on the column edge.
19
- */
20
- export declare abstract class ResizeOverlayHandle implements AfterViewInit, OnDestroy {
21
- protected readonly destroyed: Subject<void>;
22
- protected abstract readonly columnDef: CdkColumnDef;
23
- protected abstract readonly document: Document;
24
- protected abstract readonly directionality: Directionality;
25
- protected abstract readonly elementRef: ElementRef;
26
- protected abstract readonly eventDispatcher: HeaderRowEventDispatcher;
27
- protected abstract readonly ngZone: NgZone;
28
- protected abstract readonly resizeNotifier: ColumnResizeNotifierSource;
29
- protected abstract readonly resizeRef: ResizeRef;
30
- protected abstract readonly styleScheduler: _CoalescedStyleScheduler;
31
- ngAfterViewInit(): void;
32
- ngOnDestroy(): void;
33
- private _listenForMouseEvents;
34
- private _dragStarted;
35
- protected updateResizeActive(active: boolean): void;
36
- private _getOriginWidth;
37
- private _getOriginOffset;
38
- private _updateOverlayOffset;
39
- private _isLtr;
40
- private _notifyResizeEnded;
41
- static ɵfac: i0.ɵɵFactoryDeclaration<ResizeOverlayHandle, never>;
42
- static ɵdir: i0.ɵɵDirectiveDeclaration<ResizeOverlayHandle, never, never, {}, {}, never, never, true, never>;
43
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- /** closest implementation that is able to start from non-Element Nodes. */
9
- export declare function closest(element: EventTarget | Element | null | undefined, selector: string): Element | null;
@@ -1,12 +0,0 @@
1
- export { ColumnResize } from './column-resize';
2
- export { CdkColumnResize } from './column-resize-directives/column-resize';
3
- export { CdkColumnResizeFlex } from './column-resize-directives/column-resize-flex';
4
- export { CdkColumnResizeModule } from './column-resize-module';
5
- export { ColumnSize, ColumnSizeAction, ColumnResizeNotifierSource, ColumnResizeNotifier, } from './column-resize-notifier';
6
- export { ColumnSizeStore } from './column-size-store';
7
- export { HeaderRowEventDispatcher } from './event-dispatcher';
8
- export { Resizable } from './resizable';
9
- export { ResizeRef } from './resize-ref';
10
- export { ResizeStrategy, TableLayoutFixedResizeStrategy, CdkFlexTableResizeStrategy, TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER, FLEX_RESIZE_STRATEGY_PROVIDER, } from './resize-strategy';
11
- export { ResizeOverlayHandle } from './overlay-handle';
12
- export { TABLE_PROVIDERS, FLEX_PROVIDERS } from './column-resize-directives/constants';
@@ -1,63 +0,0 @@
1
- import { AfterViewInit, ElementRef, Injector, NgZone, OnDestroy, Type, ViewContainerRef, ChangeDetectorRef } from '@angular/core';
2
- import { Directionality } from '@angular/cdk/bidi';
3
- import { Overlay, OverlayRef } from '@angular/cdk/overlay';
4
- import { CdkColumnDef, _CoalescedStyleScheduler } from '@angular/cdk/table';
5
- import { Subject } from 'rxjs';
6
- import { ResizeOverlayHandle } from './overlay-handle';
7
- import { ColumnResize } from './column-resize';
8
- import { ColumnResizeNotifierSource } from './column-resize-notifier';
9
- import { HeaderRowEventDispatcher } from './event-dispatcher';
10
- import { ResizeStrategy } from './resize-strategy';
11
- import * as i0 from "@angular/core";
12
- /**
13
- * Base class for Resizable directives which are applied to column headers to make those columns
14
- * resizable.
15
- */
16
- export declare abstract class Resizable<HandleComponent extends ResizeOverlayHandle> implements AfterViewInit, OnDestroy {
17
- protected isResizable: boolean;
18
- protected minWidthPxInternal: number;
19
- protected maxWidthPxInternal: number;
20
- protected inlineHandle?: HTMLElement;
21
- protected overlayRef?: OverlayRef;
22
- protected readonly destroyed: Subject<void>;
23
- protected abstract readonly columnDef: CdkColumnDef;
24
- protected abstract readonly columnResize: ColumnResize;
25
- protected abstract readonly directionality: Directionality;
26
- protected abstract readonly document: Document;
27
- protected abstract readonly elementRef: ElementRef;
28
- protected abstract readonly eventDispatcher: HeaderRowEventDispatcher;
29
- protected abstract readonly injector: Injector;
30
- protected abstract readonly ngZone: NgZone;
31
- protected abstract readonly overlay: Overlay;
32
- protected abstract readonly resizeNotifier: ColumnResizeNotifierSource;
33
- protected abstract readonly resizeStrategy: ResizeStrategy;
34
- protected abstract readonly styleScheduler: _CoalescedStyleScheduler;
35
- protected abstract readonly viewContainerRef: ViewContainerRef;
36
- protected abstract readonly changeDetectorRef: ChangeDetectorRef;
37
- private _viewInitialized;
38
- private _isDestroyed;
39
- /** The minimum width to allow the column to be sized to. */
40
- get minWidthPx(): number;
41
- set minWidthPx(value: number);
42
- /** The maximum width to allow the column to be sized to. */
43
- get maxWidthPx(): number;
44
- set maxWidthPx(value: number);
45
- ngAfterViewInit(): void;
46
- ngOnDestroy(): void;
47
- protected abstract getInlineHandleCssClassName(): string;
48
- protected abstract getOverlayHandleComponentType(): Type<HandleComponent>;
49
- private _createOverlayForHandle;
50
- private _listenForRowHoverEvents;
51
- private _listenForResizeEvents;
52
- private _completeResizeOperation;
53
- private _cleanUpAfterResize;
54
- private _createHandlePortal;
55
- private _showHandleOverlay;
56
- private _updateOverlayHandleHeight;
57
- private _applySize;
58
- private _applyMinWidthPx;
59
- private _applyMaxWidthPx;
60
- private _appendInlineHandle;
61
- static ɵfac: i0.ɵɵFactoryDeclaration<Resizable<any>, never>;
62
- static ɵdir: i0.ɵɵDirectiveDeclaration<Resizable<any>, never, never, {}, {}, never, never, true, never>;
63
- }