@ng-matero/extensions 16.3.0 → 17.0.0

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 (204) hide show
  1. package/_index.scss +2 -1
  2. package/alert/_alert-theme.scss +54 -24
  3. package/alert/alert.d.ts +3 -6
  4. package/alert/alert.scss +3 -3
  5. package/button/_button-theme.scss +6 -4
  6. package/button/button-loading.d.ts +5 -10
  7. package/button/button-module.d.ts +5 -5
  8. package/checkbox-group/checkbox-group.d.ts +4 -9
  9. package/colorpicker/_colorpicker-theme.scss +62 -34
  10. package/colorpicker/colorpicker-input.d.ts +1 -3
  11. package/colorpicker/colorpicker-toggle.d.ts +2 -3
  12. package/colorpicker/colorpicker.d.ts +5 -6
  13. package/core/color/_all-color.scss +7 -18
  14. package/core/density/_all-density.scss +28 -14
  15. package/core/mdc-helpers/_mdc-helpers.scss +27 -238
  16. package/core/style/_sass-utils.scss +13 -1
  17. package/core/style/_validation.scss +43 -0
  18. package/core/theming/_all-theme.scss +32 -17
  19. package/core/theming/_inspection.scss +303 -0
  20. package/core/theming/_m2-inspection.scss +266 -0
  21. package/core/tokens/_token-utils.scss +4 -5
  22. package/core/tokens/m2/mdc/_plain-tooltip.scss +21 -29
  23. package/core/tokens/m2/mtx/_alert.scss +14 -15
  24. package/core/tokens/m2/mtx/_colorpicker.scss +8 -11
  25. package/core/tokens/m2/mtx/_datetimepicker.scss +38 -47
  26. package/core/tokens/m2/mtx/_drawer.scss +9 -10
  27. package/core/tokens/m2/mtx/_grid.scss +34 -22
  28. package/core/tokens/m2/mtx/_loader.scss +6 -6
  29. package/core/tokens/m2/mtx/_popover.scss +10 -11
  30. package/core/tokens/m2/mtx/_progress.scss +18 -17
  31. package/core/tokens/m2/mtx/_select.scss +65 -25
  32. package/core/tokens/m2/mtx/_split.scss +8 -11
  33. package/core/typography/_all-typography.scss +40 -0
  34. package/core/typography/_typography.scss +1 -579
  35. package/datetimepicker/_datetimepicker-theme.scss +75 -48
  36. package/datetimepicker/calendar.d.ts +7 -14
  37. package/datetimepicker/calendar.scss +16 -4
  38. package/datetimepicker/clock.d.ts +1 -2
  39. package/datetimepicker/datetimepicker-content.scss +3 -3
  40. package/datetimepicker/datetimepicker-input.d.ts +1 -2
  41. package/datetimepicker/datetimepicker-toggle.d.ts +2 -3
  42. package/datetimepicker/datetimepicker.d.ts +15 -26
  43. package/datetimepicker/month-view.d.ts +1 -1
  44. package/datetimepicker/multi-year-view.d.ts +1 -1
  45. package/datetimepicker/time.d.ts +3 -5
  46. package/datetimepicker/time.scss +2 -2
  47. package/datetimepicker/year-view.d.ts +1 -1
  48. package/drawer/_drawer-theme.scss +55 -22
  49. package/drawer/drawer-container.scss +25 -4
  50. package/esm2022/alert/alert-module.mjs +4 -4
  51. package/esm2022/alert/alert.mjs +11 -18
  52. package/esm2022/button/button-loading.mjs +13 -23
  53. package/esm2022/button/button-module.mjs +6 -7
  54. package/esm2022/checkbox-group/checkbox-group-module.mjs +4 -4
  55. package/esm2022/checkbox-group/checkbox-group.mjs +18 -29
  56. package/esm2022/colorpicker/colorpicker-input.mjs +13 -14
  57. package/esm2022/colorpicker/colorpicker-module.mjs +4 -4
  58. package/esm2022/colorpicker/colorpicker-toggle.mjs +18 -18
  59. package/esm2022/colorpicker/colorpicker.mjs +31 -36
  60. package/esm2022/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
  61. package/esm2022/column-resize/column-resize-directives/column-resize.mjs +4 -4
  62. package/esm2022/column-resize/column-resize-module.mjs +4 -4
  63. package/esm2022/column-resize/column-resize-notifier.mjs +7 -7
  64. package/esm2022/column-resize/column-resize.mjs +3 -3
  65. package/esm2022/column-resize/column-size-store.mjs +3 -3
  66. package/esm2022/column-resize/event-dispatcher.mjs +4 -4
  67. package/esm2022/column-resize/overlay-handle.mjs +3 -3
  68. package/esm2022/column-resize/resizable.mjs +3 -3
  69. package/esm2022/column-resize/resize-strategy.mjs +13 -13
  70. package/esm2022/core/datetime/datetime.module.mjs +8 -8
  71. package/esm2022/core/datetime/native-datetime-adapter.mjs +5 -5
  72. package/esm2022/core/pipes/is-template-ref.pipe.mjs +3 -3
  73. package/esm2022/core/pipes/pipes.module.mjs +4 -4
  74. package/esm2022/core/pipes/to-observable.pipe.mjs +3 -3
  75. package/esm2022/datetimepicker/calendar-body.mjs +5 -6
  76. package/esm2022/datetimepicker/calendar.mjs +30 -47
  77. package/esm2022/datetimepicker/clock.mjs +10 -9
  78. package/esm2022/datetimepicker/datetimepicker-input.mjs +14 -15
  79. package/esm2022/datetimepicker/datetimepicker-intl.mjs +3 -3
  80. package/esm2022/datetimepicker/datetimepicker-module.mjs +4 -4
  81. package/esm2022/datetimepicker/datetimepicker-toggle.mjs +18 -18
  82. package/esm2022/datetimepicker/datetimepicker.mjs +57 -80
  83. package/esm2022/datetimepicker/month-view.mjs +8 -9
  84. package/esm2022/datetimepicker/multi-year-view.mjs +8 -8
  85. package/esm2022/datetimepicker/time.mjs +18 -24
  86. package/esm2022/datetimepicker/year-view.mjs +8 -8
  87. package/esm2022/dialog/dialog-container.mjs +7 -7
  88. package/esm2022/dialog/dialog-module.mjs +4 -4
  89. package/esm2022/dialog/dialog.mjs +4 -4
  90. package/esm2022/drawer/drawer-container.mjs +7 -7
  91. package/esm2022/drawer/drawer-module.mjs +4 -4
  92. package/esm2022/drawer/drawer.mjs +5 -5
  93. package/esm2022/grid/cell.mjs +6 -6
  94. package/esm2022/grid/column-menu.mjs +5 -5
  95. package/esm2022/grid/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
  96. package/esm2022/grid/column-resize/column-resize-directives/column-resize.mjs +4 -4
  97. package/esm2022/grid/column-resize/column-resize-module.mjs +8 -8
  98. package/esm2022/grid/column-resize/overlay-handle.mjs +6 -6
  99. package/esm2022/grid/column-resize/resizable-directives/resizable.mjs +6 -6
  100. package/esm2022/grid/column-resize/resize-strategy.mjs +5 -5
  101. package/esm2022/grid/expansion-toggle.mjs +5 -5
  102. package/esm2022/grid/grid-module.mjs +4 -4
  103. package/esm2022/grid/grid-pipes.mjs +22 -22
  104. package/esm2022/grid/grid-utils.mjs +4 -4
  105. package/esm2022/grid/grid.mjs +76 -44
  106. package/esm2022/loader/loader-module.mjs +4 -4
  107. package/esm2022/loader/loader.mjs +17 -29
  108. package/esm2022/photoviewer/photoviewer-module.mjs +4 -4
  109. package/esm2022/photoviewer/photoviewer.mjs +7 -7
  110. package/esm2022/popover/popover-content.mjs +8 -8
  111. package/esm2022/popover/popover-module.mjs +4 -4
  112. package/esm2022/popover/popover-target.mjs +4 -4
  113. package/esm2022/popover/popover-trigger.mjs +6 -6
  114. package/esm2022/popover/popover.mjs +52 -137
  115. package/esm2022/progress/progress-module.mjs +4 -4
  116. package/esm2022/progress/progress.mjs +14 -25
  117. package/esm2022/select/option.mjs +11 -17
  118. package/esm2022/select/select-module.mjs +4 -4
  119. package/esm2022/select/select.mjs +13 -13
  120. package/esm2022/select/templates.mjs +44 -44
  121. package/esm2022/split/split-module.mjs +4 -4
  122. package/esm2022/split/split-pane.mjs +5 -5
  123. package/esm2022/split/split.mjs +7 -7
  124. package/esm2022/tooltip/tooltip-module.mjs +4 -4
  125. package/esm2022/tooltip/tooltip.mjs +22 -22
  126. package/fesm2022/mtxAlert.mjs +14 -21
  127. package/fesm2022/mtxAlert.mjs.map +1 -1
  128. package/fesm2022/mtxButton.mjs +17 -28
  129. package/fesm2022/mtxButton.mjs.map +1 -1
  130. package/fesm2022/mtxCheckboxGroup.mjs +21 -32
  131. package/fesm2022/mtxCheckboxGroup.mjs.map +1 -1
  132. package/fesm2022/mtxColorpicker.mjs +61 -64
  133. package/fesm2022/mtxColorpicker.mjs.map +1 -1
  134. package/fesm2022/mtxColumnResize.mjs +48 -48
  135. package/fesm2022/mtxCore.mjs +23 -23
  136. package/fesm2022/mtxDatetimepicker.mjs +150 -190
  137. package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
  138. package/fesm2022/mtxDialog.mjs +14 -14
  139. package/fesm2022/mtxDialog.mjs.map +1 -1
  140. package/fesm2022/mtxDrawer.mjs +17 -17
  141. package/fesm2022/mtxDrawer.mjs.map +1 -1
  142. package/fesm2022/mtxGrid.mjs +150 -118
  143. package/fesm2022/mtxGrid.mjs.map +1 -1
  144. package/fesm2022/mtxLoader.mjs +20 -32
  145. package/fesm2022/mtxLoader.mjs.map +1 -1
  146. package/fesm2022/mtxPhotoviewer.mjs +10 -10
  147. package/fesm2022/mtxPhotoviewer.mjs.map +1 -1
  148. package/fesm2022/mtxPopover.mjs +73 -158
  149. package/fesm2022/mtxPopover.mjs.map +1 -1
  150. package/fesm2022/mtxProgress.mjs +17 -28
  151. package/fesm2022/mtxProgress.mjs.map +1 -1
  152. package/fesm2022/mtxSelect.mjs +68 -73
  153. package/fesm2022/mtxSelect.mjs.map +1 -1
  154. package/fesm2022/mtxSplit.mjs +14 -14
  155. package/fesm2022/mtxSplit.mjs.map +1 -1
  156. package/fesm2022/mtxTooltip.mjs +26 -26
  157. package/fesm2022/mtxTooltip.mjs.map +1 -1
  158. package/grid/_grid-theme.scss +60 -24
  159. package/grid/column-menu.scss +32 -3
  160. package/grid/grid.d.ts +33 -1
  161. package/grid/grid.scss +36 -108
  162. package/loader/_loader-theme.scss +55 -22
  163. package/loader/loader.d.ts +4 -9
  164. package/loader/loader.scss +1 -1
  165. package/package.json +35 -41
  166. package/photoviewer/photoviewer.d.ts +1 -0
  167. package/popover/_popover-theme.scss +55 -22
  168. package/popover/popover.d.ts +23 -54
  169. package/popover/popover.scss +2 -2
  170. package/prebuilt-themes/deeppurple-amber.css +1 -1
  171. package/prebuilt-themes/indigo-pink.css +1 -1
  172. package/prebuilt-themes/pink-bluegrey.css +1 -1
  173. package/prebuilt-themes/purple-green.css +1 -1
  174. package/progress/_progress-theme.scss +60 -22
  175. package/progress/progress.d.ts +4 -9
  176. package/progress/progress.scss +3 -3
  177. package/select/_select-theme.scss +66 -34
  178. package/select/option.d.ts +2 -5
  179. package/select/select.d.ts +1 -3
  180. package/select/select.scss +104 -127
  181. package/split/_split-theme.scss +62 -32
  182. package/split/split.scss +2 -4
  183. package/tooltip/_tooltip-theme.scss +66 -34
  184. package/_theming.scss +0 -16
  185. package/alert/_alert-theme.import.scss +0 -2
  186. package/button/_button-theme.import.scss +0 -2
  187. package/colorpicker/_colorpicker-theme.import.scss +0 -2
  188. package/core/style/_elevation.scss +0 -91
  189. package/core/style/_private.scss +0 -32
  190. package/core/style/_variables.scss +0 -44
  191. package/core/style/_vendor-prefixes.scss +0 -46
  192. package/core/theming/_palette.scss +0 -746
  193. package/core/theming/_theming.scss +0 -463
  194. package/core/typography/_typography-utils.scss +0 -101
  195. package/datetimepicker/_datetimepicker-theme.import.scss +0 -4
  196. package/drawer/_drawer-theme.import.scss +0 -2
  197. package/grid/_grid-theme.import.scss +0 -2
  198. package/loader/_loader-theme.import.scss +0 -2
  199. package/popover/_popover-theme.import.scss +0 -2
  200. package/progress/_progress-theme.import.scss +0 -2
  201. package/select/_select-density.scss +0 -68
  202. package/select/_select-theme.import.scss +0 -3
  203. package/split/_split-theme.import.scss +0 -2
  204. package/tooltip/_tooltip-theme.import.scss +0 -1
package/_index.scss CHANGED
@@ -11,6 +11,7 @@
11
11
  @forward './split/split-theme' as split-* show split-theme;
12
12
  @forward './tooltip/tooltip-theme' as tooltip-* show tooltip-theme;
13
13
 
14
- @forward './core/theming/all-theme' show all-component-themes;
14
+ @forward './core/theming/all-theme' show all-component-themes, all-component-bases;
15
15
  @forward './core/color/all-color' show all-component-colors;
16
+ @forward './core/typography/all-typography' show all-component-typographies;
16
17
  @forward './core/density/all-density' show all-component-densities;
@@ -1,39 +1,69 @@
1
+ @use '@angular/material' as mat;
1
2
  @use '../core/style/sass-utils';
2
- @use '../core/theming/theming';
3
3
  @use '../core/tokens/token-utils';
4
4
  @use '../core/tokens/m2/mtx/alert' as tokens-mtx-alert;
5
5
 
6
- @mixin color($config-or-theme) {
7
- $config: theming.get-color-config($config-or-theme);
8
-
9
- @include sass-utils.current-selector-or-root() {
10
- @include token-utils.create-token-values(tokens-mtx-alert.$prefix,
11
- tokens-mtx-alert.get-color-tokens($config));
6
+ @mixin base($theme) {
7
+ @if mat.get-theme-version($theme) == 1 {
8
+ @include _theme-from-tokens(mat.get-theme-tokens($theme, base));
9
+ }
10
+ @else {
11
+ @include sass-utils.current-selector-or-root() {
12
+ @include token-utils.create-token-values(tokens-mtx-alert.$prefix,
13
+ tokens-mtx-alert.get-unthemable-tokens());
14
+ }
12
15
  }
13
16
  }
14
17
 
15
- @mixin typography($config-or-theme) {}
16
-
17
- @mixin density($config-or-theme) {}
18
+ @mixin color($theme) {
19
+ @if mat.get-theme-version($theme) == 1 {
20
+ @include _theme-from-tokens(mat.get-theme-tokens($theme, color));
21
+ }
22
+ @else {
23
+ @include sass-utils.current-selector-or-root() {
24
+ @include token-utils.create-token-values(tokens-mtx-alert.$prefix,
25
+ tokens-mtx-alert.get-color-tokens($theme));
26
+ }
27
+ }
28
+ }
18
29
 
19
- @mixin theme($theme-or-color-config) {
20
- $theme: theming.private-legacy-get-theme($theme-or-color-config);
30
+ @mixin typography($theme) {
31
+ @if mat.get-theme-version($theme) == 1 {
32
+ @include _theme-from-tokens(mat.get-theme-tokens($theme, typography));
33
+ }
34
+ @else {}
35
+ }
21
36
 
22
- @include theming.private-check-duplicate-theme-styles($theme, 'mtx-alert') {
23
- $color: theming.get-color-config($theme);
24
- $density: theming.get-density-config($theme);
25
- $typography: theming.get-typography-config($theme);
37
+ @mixin density($theme) {
38
+ @if mat.get-theme-version($theme) == 1 {
39
+ @include _theme-from-tokens(mat.get-theme-tokens($theme, density));
40
+ }
41
+ @else {}
42
+ }
26
43
 
27
- @if $color !=null {
28
- @include color($color);
44
+ @mixin theme($theme) {
45
+ @include mat.private-check-duplicate-theme-styles($theme, 'mtx-alert') {
46
+ @if mat.get-theme-version($theme) == 1 {
47
+ @include _theme-from-tokens(mat.get-theme-tokens($theme));
29
48
  }
30
-
31
- @if $density !=null {
32
- @include density($density);
49
+ @else {
50
+ @include base($theme);
51
+ @if mat.theme-has($theme, color) {
52
+ @include color($theme);
53
+ }
54
+ @if mat.theme-has($theme, density) {
55
+ @include density($theme);
56
+ }
57
+ @if mat.theme-has($theme, typography) {
58
+ @include typography($theme);
59
+ }
33
60
  }
61
+ }
62
+ }
34
63
 
35
- @if $typography !=null {
36
- @include typography($typography);
37
- }
64
+ @mixin _theme-from-tokens($tokens) {
65
+ @if ($tokens != ()) {
66
+ @include token-utils.create-token-values(tokens-mtx-alert.$prefix,
67
+ map.get($tokens, tokens-mtx-alert.$prefix));
38
68
  }
39
69
  }
package/alert/alert.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { EventEmitter, ChangeDetectorRef } from '@angular/core';
2
- import { BooleanInput } from '@angular/cdk/coercion';
1
+ import { ChangeDetectorRef, EventEmitter } from '@angular/core';
3
2
  import * as i0 from "@angular/core";
4
3
  export type MtxAlertType = 'default' | 'info' | 'success' | 'warning' | 'danger';
5
4
  export declare class MtxAlert {
@@ -8,16 +7,14 @@ export declare class MtxAlert {
8
7
  /** The alert's type. Can be `default`, `info`, `success`, `warning` or `danger`. */
9
8
  type: MtxAlertType;
10
9
  /** Whether to display an inline close button. */
11
- get dismissible(): boolean;
12
- set dismissible(value: boolean);
13
- private _dismissible;
10
+ dismissible: boolean;
14
11
  /** The alert's elevation (0~24). */
15
12
  elevation: number;
16
13
  /** Event emitted when the alert closed. */
17
14
  closed: EventEmitter<MtxAlert>;
18
15
  constructor(_changeDetectorRef: ChangeDetectorRef);
19
16
  _onClosed(): void;
20
- static ngAcceptInputType_dismissible: BooleanInput;
21
17
  static ɵfac: i0.ɵɵFactoryDeclaration<MtxAlert, never>;
22
18
  static ɵcmp: i0.ɵɵComponentDeclaration<MtxAlert, "mtx-alert", ["mtxAlert"], { "type": { "alias": "type"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; "elevation": { "alias": "elevation"; "required": false; }; }, { "closed": "closed"; }, never, ["*"], false, never>;
19
+ static ngAcceptInputType_dismissible: unknown;
23
20
  }
package/alert/alert.scss CHANGED
@@ -4,12 +4,12 @@
4
4
  .mtx-alert {
5
5
  position: relative;
6
6
  display: block;
7
- padding: .75rem 1.25rem;
8
- margin-bottom: 1rem;
7
+ padding: 12px 20px;
8
+ margin-bottom: 16px;
9
9
  border: 1px solid transparent;
10
- border-radius: .25rem;
11
10
 
12
11
  @include token-utils.use-tokens(tokens-mtx-alert.$prefix, tokens-mtx-alert.get-token-slots()) {
12
+ @include token-utils.create-token-slot(border-radius, container-shape);
13
13
  @include token-utils.create-token-slot(background-color, background-color);
14
14
  @include token-utils.create-token-slot(color, text-color);
15
15
 
@@ -1,9 +1,11 @@
1
1
  @use './button-loading.scss';
2
2
 
3
- @mixin color($config-or-theme) {}
3
+ @mixin base($theme) {}
4
4
 
5
- @mixin typography($config-or-theme) {}
5
+ @mixin color($theme) {}
6
6
 
7
- @mixin density($config-or-theme) {}
7
+ @mixin typography($theme) {}
8
8
 
9
- @mixin theme($theme-or-color-config) {}
9
+ @mixin density($theme) {}
10
+
11
+ @mixin theme($theme) {}
@@ -1,5 +1,4 @@
1
1
  import { ElementRef, OnChanges, Renderer2, SimpleChanges, ViewContainerRef } from '@angular/core';
2
- import { BooleanInput } from '@angular/cdk/coercion';
3
2
  import { ThemePalette } from '@angular/material/core';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class MatButtonLoading implements OnChanges {
@@ -7,19 +6,15 @@ export declare class MatButtonLoading implements OnChanges {
7
6
  private _viewContainerRef;
8
7
  private _renderer;
9
8
  private spinner;
10
- get loading(): boolean;
11
- set loading(value: boolean);
12
- private _loading;
13
- get disabled(): boolean;
14
- set disabled(value: boolean);
15
- private _disabled;
9
+ loading: boolean;
10
+ disabled: boolean;
16
11
  color: ThemePalette;
17
12
  constructor(_elementRef: ElementRef<HTMLButtonElement>, _viewContainerRef: ViewContainerRef, _renderer: Renderer2);
18
13
  ngOnChanges(changes: SimpleChanges): void;
19
14
  private createSpinner;
20
15
  private destroySpinner;
21
- static ngAcceptInputType_loading: BooleanInput;
22
- static ngAcceptInputType_disabled: BooleanInput;
23
16
  static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonLoading, never>;
24
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatButtonLoading, "[mat-button][loading], [mat-raised-button][loading], [mat-stroked-button][loading], [mat-flat-button][loading], [mat-icon-button][loading], [mat-fab][loading], [mat-mini-fab][loading]", never, { "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never, false, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatButtonLoading, "[mat-button][loading], [mat-raised-button][loading], [mat-stroked-button][loading], [mat-flat-button][loading], [mat-icon-button][loading], [mat-fab][loading], [mat-mini-fab][loading]", never, { "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
18
+ static ngAcceptInputType_loading: unknown;
19
+ static ngAcceptInputType_disabled: unknown;
25
20
  }
@@ -1,10 +1,10 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./button-loading";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/material/button";
5
- import * as i4 from "@angular/material/progress-spinner";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "@angular/material/button";
4
+ import * as i3 from "@angular/material/progress-spinner";
5
+ import * as i4 from "./button-loading";
6
6
  export declare class MtxButtonModule {
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<MtxButtonModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<MtxButtonModule, [typeof i1.MatButtonLoading], [typeof i2.CommonModule, typeof i3.MatButtonModule, typeof i4.MatProgressSpinnerModule], [typeof i1.MatButtonLoading]>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MtxButtonModule, never, [typeof i1.CommonModule, typeof i2.MatButtonModule, typeof i3.MatProgressSpinnerModule, typeof i4.MatButtonLoading], [typeof i4.MatButtonLoading]>;
9
9
  static ɵinj: i0.ɵɵInjectorDeclaration<MtxButtonModule>;
10
10
  }
@@ -1,5 +1,4 @@
1
1
  import { FocusMonitor } from '@angular/cdk/a11y';
2
- import { BooleanInput } from '@angular/cdk/coercion';
3
2
  import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, QueryList } from '@angular/core';
4
3
  import { ControlValueAccessor } from '@angular/forms';
5
4
  import { MatCheckbox, MatCheckboxChange } from '@angular/material/checkbox';
@@ -21,16 +20,12 @@ export declare class MtxCheckboxGroup implements AfterViewInit, OnDestroy, Contr
21
20
  private _originalItems;
22
21
  bindLabel: string;
23
22
  bindValue: string;
24
- get showSelectAll(): boolean;
25
- set showSelectAll(value: boolean);
26
- private _showSelectAll;
23
+ showSelectAll: boolean;
27
24
  selectAllLabel: string;
28
25
  get compareWith(): ((o1: any, o2: any) => boolean) | undefined;
29
26
  set compareWith(fn: ((o1: any, o2: any) => boolean) | undefined);
30
27
  private _compareWith?;
31
- get disabled(): boolean;
32
- set disabled(value: boolean);
33
- private _disabled;
28
+ disabled: boolean;
34
29
  change: EventEmitter<{
35
30
  model: MtxCheckboxGroupOption[];
36
31
  index: number;
@@ -76,8 +71,8 @@ export declare class MtxCheckboxGroup implements AfterViewInit, OnDestroy, Contr
76
71
  _updateNormalCheckboxState(e: MatCheckboxChange, index: number): void;
77
72
  /** Handle master checkbox toggle */
78
73
  _updateMasterCheckboxState(e: MatCheckboxChange, index: number): void;
79
- static ngAcceptInputType_showSelectAll: BooleanInput;
80
- static ngAcceptInputType_disabled: BooleanInput;
81
74
  static ɵfac: i0.ɵɵFactoryDeclaration<MtxCheckboxGroup, never>;
82
75
  static ɵcmp: i0.ɵɵComponentDeclaration<MtxCheckboxGroup, "mtx-checkbox-group", ["mtxCheckboxGroup"], { "items": { "alias": "items"; "required": false; }; "bindLabel": { "alias": "bindLabel"; "required": false; }; "bindValue": { "alias": "bindValue"; "required": false; }; "showSelectAll": { "alias": "showSelectAll"; "required": false; }; "selectAllLabel": { "alias": "selectAllLabel"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "change": "change"; }, ["_checkboxes"], never, false, never>;
76
+ static ngAcceptInputType_showSelectAll: unknown;
77
+ static ngAcceptInputType_disabled: unknown;
83
78
  }
@@ -1,55 +1,83 @@
1
1
  @use 'sass:color';
2
2
  @use 'sass:map';
3
- @use '../core/theming/theming';
4
- @use '../core/typography/typography';
3
+ @use '@angular/material' as mat;
5
4
  @use '../core/style/sass-utils';
6
5
  @use '../core/tokens/token-utils';
7
6
  @use '../core/tokens/m2/mtx/colorpicker' as tokens-mtx-colorpicker;
8
7
 
9
- @mixin color($config-or-theme) {
10
- $config: theming.get-color-config($config-or-theme);
11
- $background: map.get($config, background);
12
-
13
- @include sass-utils.current-selector-or-root() {
14
- @include token-utils.create-token-values(tokens-mtx-colorpicker.$prefix,
15
- tokens-mtx-colorpicker.get-color-tokens($config));
8
+ @mixin base($theme) {
9
+ @if mat.get-theme-version($theme) == 1 {
10
+ @include _theme-from-tokens(mat.get-theme-tokens($theme, base));
16
11
  }
12
+ @else {
13
+ @include sass-utils.current-selector-or-root() {
14
+ @include token-utils.create-token-values(tokens-mtx-colorpicker.$prefix,
15
+ tokens-mtx-colorpicker.get-unthemable-tokens());
16
+ }
17
+ }
18
+ }
17
19
 
18
- .mtx-colorpicker-toggle-active {
19
- &.mat-accent {
20
- $accent-tokens: tokens-mtx-colorpicker.private-get-toggle-color-palette-color-tokens($config, accent);
21
- @include token-utils.create-token-values(tokens-mtx-colorpicker.$prefix, $accent-tokens);
20
+ @mixin color($theme) {
21
+ @if mat.get-theme-version($theme) == 1 {
22
+ @include _theme-from-tokens(mat.get-theme-tokens($theme, color));
23
+ }
24
+ @else {
25
+ @include sass-utils.current-selector-or-root() {
26
+ @include token-utils.create-token-values(tokens-mtx-colorpicker.$prefix,
27
+ tokens-mtx-colorpicker.get-color-tokens($theme));
22
28
  }
23
29
 
24
- &.mat-warn {
25
- $warn-tokens: tokens-mtx-colorpicker.private-get-toggle-color-palette-color-tokens($config, warn);
26
- @include token-utils.create-token-values(tokens-mtx-colorpicker.$prefix, $warn-tokens);
30
+ .mtx-colorpicker-toggle-active {
31
+ &.mat-accent {
32
+ $accent-tokens: tokens-mtx-colorpicker.private-get-toggle-color-palette-color-tokens($theme, accent);
33
+ @include token-utils.create-token-values(tokens-mtx-colorpicker.$prefix, $accent-tokens);
34
+ }
35
+
36
+ &.mat-warn {
37
+ $warn-tokens: tokens-mtx-colorpicker.private-get-toggle-color-palette-color-tokens($theme, warn);
38
+ @include token-utils.create-token-values(tokens-mtx-colorpicker.$prefix, $warn-tokens);
39
+ }
27
40
  }
28
41
  }
29
42
  }
30
43
 
31
- @mixin typography($config-or-theme) {}
32
-
33
- @mixin density($config-or-theme) {}
34
-
35
- @mixin theme($theme-or-color-config) {
36
- $theme: theming.private-legacy-get-theme($theme-or-color-config);
44
+ @mixin typography($theme) {
45
+ @if mat.get-theme-version($theme) == 1 {
46
+ @include _theme-from-tokens(mat.get-theme-tokens($theme, typography));
47
+ }
48
+ @else {}
49
+ }
37
50
 
38
- @include theming.private-check-duplicate-theme-styles($theme, 'mtx-colorpicker') {
39
- $color: theming.get-color-config($theme);
40
- $density: theming.get-density-config($theme);
41
- $typography: theming.get-typography-config($theme);
51
+ @mixin density($theme) {
52
+ @if mat.get-theme-version($theme) == 1 {
53
+ @include _theme-from-tokens(mat.get-theme-tokens($theme, density));
54
+ }
55
+ @else {}
56
+ }
42
57
 
43
- @if $color !=null {
44
- @include color($color);
58
+ @mixin theme($theme) {
59
+ @include mat.private-check-duplicate-theme-styles($theme, 'mtx-colorpicker') {
60
+ @if mat.get-theme-version($theme) == 1 {
61
+ @include _theme-from-tokens(mat.get-theme-tokens($theme));
45
62
  }
46
-
47
- @if $density !=null {
48
- @include density($density);
63
+ @else {
64
+ @include base($theme);
65
+ @if mat.theme-has($theme, color) {
66
+ @include color($theme);
67
+ }
68
+ @if mat.theme-has($theme, density) {
69
+ @include density($theme);
70
+ }
71
+ @if mat.theme-has($theme, typography) {
72
+ @include typography($theme);
73
+ }
49
74
  }
75
+ }
76
+ }
50
77
 
51
- @if $typography !=null {
52
- @include typography($typography);
53
- }
78
+ @mixin _theme-from-tokens($tokens) {
79
+ @if ($tokens != ()) {
80
+ @include token-utils.create-token-values(tokens-mtx-colorpicker.$prefix,
81
+ map.get($tokens, tokens-mtx-colorpicker.$prefix));
54
82
  }
55
83
  }
@@ -1,4 +1,3 @@
1
- import { BooleanInput } from '@angular/cdk/coercion';
2
1
  import { AfterViewInit, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
3
2
  import { AbstractControl, ControlValueAccessor, ValidationErrors } from '@angular/forms';
4
3
  import { ThemePalette } from '@angular/material/core';
@@ -85,8 +84,7 @@ export declare class MtxColorpickerInput implements ControlValueAccessor, AfterV
85
84
  getThemePalette(): ThemePalette;
86
85
  /** TODO: Formats a value and sets it on the input element. */
87
86
  private _formatValue;
88
- static ngAcceptInputType_value: any;
89
- static ngAcceptInputType_disabled: BooleanInput;
90
87
  static ɵfac: i0.ɵɵFactoryDeclaration<MtxColorpickerInput, [null, { optional: true; }]>;
91
88
  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, false, never>;
89
+ static ngAcceptInputType_disabled: unknown;
92
90
  }
@@ -1,4 +1,3 @@
1
- import { BooleanInput } from '@angular/cdk/coercion';
2
1
  import { AfterContentInit, ChangeDetectorRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
3
2
  import { MatButton } from '@angular/material/button';
4
3
  import { MtxColorpicker } from './colorpicker';
@@ -33,8 +32,8 @@ export declare class MtxColorpickerToggle implements AfterContentInit, OnChanges
33
32
  ngAfterContentInit(): void;
34
33
  _open(event: Event): void;
35
34
  private _watchStateChanges;
36
- static ngAcceptInputType_disabled: BooleanInput;
37
- static ngAcceptInputType_disableRipple: BooleanInput;
38
35
  static ɵfac: i0.ɵɵFactoryDeclaration<MtxColorpickerToggle, [null, { attribute: "tabindex"; }]>;
39
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]"], false, never>;
37
+ static ngAcceptInputType_disabled: unknown;
38
+ static ngAcceptInputType_disableRipple: unknown;
40
39
  }
@@ -1,6 +1,5 @@
1
1
  import { Directionality } from '@angular/cdk/bidi';
2
- import { BooleanInput } from '@angular/cdk/coercion';
3
- import { ScrollStrategy, Overlay } from '@angular/cdk/overlay';
2
+ import { Overlay, ScrollStrategy } from '@angular/cdk/overlay';
4
3
  import { ChangeDetectorRef, ElementRef, EventEmitter, InjectionToken, NgZone, OnChanges, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
5
4
  import { CanColor, ThemePalette } from '@angular/material/core';
6
5
  import { Subject } from 'rxjs';
@@ -65,9 +64,7 @@ export declare class MtxColorpicker implements OnChanges, OnDestroy {
65
64
  * Note that automatic focus restoration is an accessibility feature and it is recommended that
66
65
  * you provide your own equivalent, if you decide to turn it off.
67
66
  */
68
- get restoreFocus(): boolean;
69
- set restoreFocus(value: boolean);
70
- private _restoreFocus;
67
+ restoreFocus: boolean;
71
68
  /** Whether the panel is open. */
72
69
  get opened(): boolean;
73
70
  set opened(value: boolean);
@@ -126,8 +123,10 @@ export declare class MtxColorpicker implements OnChanges, OnDestroy {
126
123
  private _setConnectedPositions;
127
124
  /** Gets an observable that will emit when the overlay is supposed to be closed. */
128
125
  private _getCloseStream;
129
- static ngAcceptInputType_disabled: BooleanInput;
130
126
  static ɵfac: i0.ɵɵFactoryDeclaration<MtxColorpicker, [null, null, null, null, { optional: true; }, { optional: true; }]>;
131
127
  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, false, never>;
128
+ static ngAcceptInputType_disabled: unknown;
129
+ static ngAcceptInputType_restoreFocus: unknown;
130
+ static ngAcceptInputType_opened: unknown;
132
131
  }
133
132
  export {};
@@ -1,28 +1,17 @@
1
- @use '../theming/theming';
2
1
  @use '../theming/all-theme';
2
+ @use '../theming/inspection';
3
3
 
4
4
  // Includes all of the color styles.
5
- @mixin all-component-colors($config-or-theme) {
6
- // In case a theme object has been passed instead of a configuration for
7
- // the color system, extract the color config from the theme object.
8
- $config: if(
9
- theming.private-is-theme-object($config-or-theme),
10
- theming.get-color-config($config-or-theme),
11
- $config-or-theme
12
- );
13
-
14
- @if $config == null {
5
+ @mixin all-component-colors($theme) {
6
+ @if not inspection.theme-has($theme, color) {
15
7
  @error 'No color configuration specified.';
16
8
  }
17
9
 
18
- @include all-theme.all-component-themes((
19
- color: $config,
20
- typography: null,
21
- density: null,
22
- ));
10
+ @include all-theme.all-component-themes(
11
+ inspection.theme-remove($theme, base, typography, density));
23
12
  }
24
13
 
25
14
  // @deprecated Use `all-component-colors`.
26
- @mixin material-extensions-color($config-or-theme) {
27
- @include all-component-colors($config-or-theme);
15
+ @mixin material-extensions-color($theme) {
16
+ @include all-component-colors($theme);
28
17
  }
@@ -1,24 +1,38 @@
1
- @use '../theming/theming';
1
+ @use '../theming/inspection';
2
+ @use '../../alert/alert-theme';
3
+ @use '../../button/button-theme';
4
+ @use '../../colorpicker/colorpicker-theme';
5
+ @use '../../datetimepicker/datetimepicker-theme';
6
+ @use '../../drawer/drawer-theme';
7
+ @use '../../grid/grid-theme';
8
+ @use '../../loader/loader-theme';
9
+ @use '../../popover/popover-theme';
10
+ @use '../../progress/progress-theme';
2
11
  @use '../../select/select-theme';
12
+ @use '../../split/split-theme';
13
+ @use '../../tooltip/tooltip-theme';
3
14
 
4
15
  // Includes all of the density styles.
5
- @mixin all-component-densities($config-or-theme) {
6
- // In case a theme object has been passed instead of a configuration for
7
- // the color system, extract the color config from the theme object.
8
- $config: if(
9
- theming.private-is-theme-object($config-or-theme),
10
- theming.get-color-config($config-or-theme),
11
- $config-or-theme
12
- );
13
-
14
- @if $config == null {
16
+ @mixin all-component-densities($theme) {
17
+ @if not inspection.theme-has($theme, density) {
15
18
  @error 'No density configuration specified.';
16
19
  }
17
20
 
18
- @include select-theme.density($config);
21
+ @include alert-theme.density($theme);
22
+ @include button-theme.density($theme);
23
+ @include colorpicker-theme.density($theme);
24
+ @include datetimepicker-theme.density($theme);
25
+ @include drawer-theme.density($theme);
26
+ @include grid-theme.density($theme);
27
+ @include loader-theme.density($theme);
28
+ @include popover-theme.density($theme);
29
+ @include progress-theme.density($theme);
30
+ @include select-theme.density($theme);
31
+ @include split-theme.density($theme);
32
+ @include tooltip-theme.density($theme);
19
33
  }
20
34
 
21
35
  // @deprecated Use `all-component-densities`.
22
- @mixin material-extensions-density($config-or-theme) {
23
- @include all-component-densities($config-or-theme);
36
+ @mixin material-extensions-density($theme) {
37
+ @include all-component-densities($theme);
24
38
  }