@ng-matero/extensions 17.1.3 → 17.2.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 (146) hide show
  1. package/_index.scss +6 -0
  2. package/alert/_alert-theme.scss +10 -5
  3. package/alert/alert.scss +4 -1
  4. package/colorpicker/_colorpicker-theme.scss +9 -5
  5. package/colorpicker/colorpicker.d.ts +5 -11
  6. package/core/style/_sass-utils.scss +19 -0
  7. package/core/theming/_inspection.scss +38 -0
  8. package/core/theming/_validation.scss +5 -0
  9. package/core/theming/m3/_color-api-back-compat.scss +46 -0
  10. package/core/theming/m3/_config-validation.scss +166 -0
  11. package/core/theming/m3/_custom-tokens.scss +315 -0
  12. package/core/theming/m3/_definition.scss +104 -0
  13. package/core/theming/m3/_format-tokens.scss +5 -0
  14. package/core/theming/m3/_m3-density.scss +50 -0
  15. package/core/theming/m3/_m3-tokens.scss +308 -0
  16. package/core/tokens/_token-utils.scss +140 -0
  17. package/core/tokens/m2/_index.scss +23 -2
  18. package/core/tokens/m2/mtx/_alert.scss +1 -0
  19. package/core/tokens/m2/mtx/_datetimepicker.scss +13 -7
  20. package/core/tokens/m2/mtx/_grid.scss +3 -2
  21. package/core/tokens/m2/mtx/_popover.scss +1 -1
  22. package/core/tokens/m2/mtx/_select.scss +1 -1
  23. package/datetimepicker/_datetimepicker-theme.scss +14 -12
  24. package/datetimepicker/calendar.scss +13 -0
  25. package/datetimepicker/clock.scss +5 -5
  26. package/datetimepicker/datetimepicker-content.scss +9 -2
  27. package/datetimepicker/datetimepicker.d.ts +5 -11
  28. package/datetimepicker/time.scss +10 -8
  29. package/drawer/_drawer-theme.scss +10 -5
  30. package/esm2022/alert/alert-module.mjs +4 -4
  31. package/esm2022/alert/alert.mjs +4 -4
  32. package/esm2022/button/button-loading.mjs +3 -3
  33. package/esm2022/button/button-module.mjs +4 -4
  34. package/esm2022/checkbox-group/checkbox-group-module.mjs +4 -4
  35. package/esm2022/checkbox-group/checkbox-group.mjs +3 -3
  36. package/esm2022/colorpicker/colorpicker-input.mjs +3 -3
  37. package/esm2022/colorpicker/colorpicker-module.mjs +4 -4
  38. package/esm2022/colorpicker/colorpicker-toggle.mjs +6 -6
  39. package/esm2022/colorpicker/colorpicker.mjs +14 -20
  40. package/esm2022/column-resize/column-resize-directives/column-resize-flex.mjs +3 -3
  41. package/esm2022/column-resize/column-resize-directives/column-resize.mjs +3 -3
  42. package/esm2022/column-resize/column-resize-module.mjs +4 -4
  43. package/esm2022/column-resize/column-resize-notifier.mjs +6 -6
  44. package/esm2022/column-resize/column-resize.mjs +3 -3
  45. package/esm2022/column-resize/column-size-store.mjs +3 -3
  46. package/esm2022/column-resize/event-dispatcher.mjs +3 -3
  47. package/esm2022/column-resize/overlay-handle.mjs +3 -3
  48. package/esm2022/column-resize/resizable.mjs +3 -3
  49. package/esm2022/column-resize/resize-strategy.mjs +9 -9
  50. package/esm2022/core/datetime/datetime.module.mjs +8 -8
  51. package/esm2022/core/datetime/native-datetime-adapter.mjs +3 -3
  52. package/esm2022/core/pipes/is-template-ref.pipe.mjs +3 -3
  53. package/esm2022/core/pipes/pipes.module.mjs +4 -4
  54. package/esm2022/core/pipes/to-observable.pipe.mjs +3 -3
  55. package/esm2022/datetimepicker/calendar-body.mjs +3 -3
  56. package/esm2022/datetimepicker/calendar.mjs +5 -5
  57. package/esm2022/datetimepicker/clock.mjs +5 -5
  58. package/esm2022/datetimepicker/datetimepicker-input.mjs +3 -3
  59. package/esm2022/datetimepicker/datetimepicker-intl.mjs +3 -3
  60. package/esm2022/datetimepicker/datetimepicker-module.mjs +4 -4
  61. package/esm2022/datetimepicker/datetimepicker-toggle.mjs +6 -6
  62. package/esm2022/datetimepicker/datetimepicker.mjs +15 -20
  63. package/esm2022/datetimepicker/month-view.mjs +3 -3
  64. package/esm2022/datetimepicker/multi-year-view.mjs +3 -3
  65. package/esm2022/datetimepicker/time.mjs +8 -8
  66. package/esm2022/datetimepicker/year-view.mjs +3 -3
  67. package/esm2022/dialog/dialog-container.mjs +3 -3
  68. package/esm2022/dialog/dialog-module.mjs +4 -4
  69. package/esm2022/dialog/dialog.mjs +3 -3
  70. package/esm2022/drawer/drawer-container.mjs +3 -3
  71. package/esm2022/drawer/drawer-module.mjs +4 -4
  72. package/esm2022/drawer/drawer.mjs +3 -3
  73. package/esm2022/grid/cell.mjs +3 -3
  74. package/esm2022/grid/column-menu.mjs +3 -3
  75. package/esm2022/grid/column-resize/column-resize-directives/column-resize-flex.mjs +3 -3
  76. package/esm2022/grid/column-resize/column-resize-directives/column-resize.mjs +3 -3
  77. package/esm2022/grid/column-resize/column-resize-module.mjs +8 -8
  78. package/esm2022/grid/column-resize/overlay-handle.mjs +3 -3
  79. package/esm2022/grid/column-resize/resizable-directives/resizable.mjs +3 -3
  80. package/esm2022/grid/column-resize/resize-strategy.mjs +3 -3
  81. package/esm2022/grid/expansion-toggle.mjs +3 -3
  82. package/esm2022/grid/grid-module.mjs +4 -4
  83. package/esm2022/grid/grid-pipes.mjs +21 -21
  84. package/esm2022/grid/grid-utils.mjs +3 -3
  85. package/esm2022/grid/grid.mjs +8 -8
  86. package/esm2022/loader/loader-module.mjs +4 -4
  87. package/esm2022/loader/loader.mjs +3 -3
  88. package/esm2022/photoviewer/photoviewer-module.mjs +4 -4
  89. package/esm2022/photoviewer/photoviewer.mjs +3 -3
  90. package/esm2022/popover/popover-content.mjs +6 -6
  91. package/esm2022/popover/popover-module.mjs +4 -4
  92. package/esm2022/popover/popover-target.mjs +3 -3
  93. package/esm2022/popover/popover-trigger.mjs +3 -3
  94. package/esm2022/popover/popover.mjs +5 -5
  95. package/esm2022/progress/progress-module.mjs +4 -4
  96. package/esm2022/progress/progress.mjs +3 -3
  97. package/esm2022/select/option.mjs +3 -3
  98. package/esm2022/select/select-module.mjs +4 -4
  99. package/esm2022/select/select.mjs +50 -37
  100. package/esm2022/select/templates.mjs +33 -33
  101. package/esm2022/split/split-module.mjs +4 -4
  102. package/esm2022/split/split-pane.mjs +3 -3
  103. package/esm2022/split/split.mjs +9 -16
  104. package/esm2022/tooltip/tooltip-module.mjs +4 -4
  105. package/esm2022/tooltip/tooltip.mjs +6 -6
  106. package/fesm2022/mtxAlert.mjs +8 -8
  107. package/fesm2022/mtxAlert.mjs.map +1 -1
  108. package/fesm2022/mtxButton.mjs +7 -7
  109. package/fesm2022/mtxCheckboxGroup.mjs +7 -7
  110. package/fesm2022/mtxColorpicker.mjs +27 -33
  111. package/fesm2022/mtxColorpicker.mjs.map +1 -1
  112. package/fesm2022/mtxColumnResize.mjs +40 -40
  113. package/fesm2022/mtxCore.mjs +21 -21
  114. package/fesm2022/mtxDatetimepicker.mjs +57 -62
  115. package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
  116. package/fesm2022/mtxDialog.mjs +10 -10
  117. package/fesm2022/mtxDrawer.mjs +10 -10
  118. package/fesm2022/mtxGrid.mjs +67 -67
  119. package/fesm2022/mtxGrid.mjs.map +1 -1
  120. package/fesm2022/mtxLoader.mjs +7 -7
  121. package/fesm2022/mtxPhotoviewer.mjs +7 -7
  122. package/fesm2022/mtxPopover.mjs +20 -20
  123. package/fesm2022/mtxPopover.mjs.map +1 -1
  124. package/fesm2022/mtxProgress.mjs +7 -7
  125. package/fesm2022/mtxSelect.mjs +88 -75
  126. package/fesm2022/mtxSelect.mjs.map +1 -1
  127. package/fesm2022/mtxSplit.mjs +15 -22
  128. package/fesm2022/mtxSplit.mjs.map +1 -1
  129. package/fesm2022/mtxTooltip.mjs +10 -10
  130. package/grid/_grid-theme.scss +9 -5
  131. package/grid/grid.scss +18 -8
  132. package/loader/_loader-theme.scss +10 -5
  133. package/package.json +11 -11
  134. package/popover/_popover-theme.scss +10 -5
  135. package/popover/popover.scss +1 -1
  136. package/prebuilt-themes/deeppurple-amber.css +1 -1
  137. package/prebuilt-themes/indigo-pink.css +1 -1
  138. package/prebuilt-themes/pink-bluegrey.css +1 -1
  139. package/prebuilt-themes/purple-green.css +1 -1
  140. package/progress/_progress-theme.scss +10 -5
  141. package/select/_select-theme.scss +14 -12
  142. package/select/select.d.ts +18 -25
  143. package/select/select.scss +1 -1
  144. package/split/_split-theme.scss +15 -12
  145. package/split/split.d.ts +3 -9
  146. package/tooltip/_tooltip-theme.scss +9 -5
@@ -1,6 +1,8 @@
1
1
  @use 'sass:map';
2
2
  @use '@angular/material' as mat;
3
3
  @use '../core/style/sass-utils';
4
+ @use '../core/theming/inspection';
5
+ @use '../core/theming/validation';
4
6
  @use '../core/tokens/token-utils';
5
7
  @use '../core/tokens/m2/mtx/datetimepicker' as tokens-mtx-datetimepicker;
6
8
 
@@ -13,7 +15,7 @@
13
15
 
14
16
  @mixin base($theme) {
15
17
  @if mat.get-theme-version($theme) == 1 {
16
- @include _theme-from-tokens(mat.get-theme-tokens($theme, base));
18
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
17
19
  }
18
20
  @else {
19
21
  @include sass-utils.current-selector-or-root() {
@@ -23,9 +25,9 @@
23
25
  }
24
26
  }
25
27
 
26
- @mixin color($theme) {
28
+ @mixin color($theme, $options...) {
27
29
  @if mat.get-theme-version($theme) == 1 {
28
- @include _theme-from-tokens(mat.get-theme-tokens($theme, color));
30
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, color), $options...);
29
31
  }
30
32
  @else {
31
33
  @include sass-utils.current-selector-or-root() {
@@ -59,7 +61,7 @@
59
61
 
60
62
  @mixin typography($theme) {
61
63
  @if mat.get-theme-version($theme) == 1 {
62
- @include _theme-from-tokens(mat.get-theme-tokens($theme, typography));
64
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
63
65
  }
64
66
  @else {
65
67
  @include sass-utils.current-selector-or-root() {
@@ -71,15 +73,15 @@
71
73
 
72
74
  @mixin density($theme) {
73
75
  @if mat.get-theme-version($theme) == 1 {
74
- @include _theme-from-tokens(mat.get-theme-tokens($theme, density));
76
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
75
77
  }
76
78
  @else {}
77
79
  }
78
80
 
79
- @mixin theme($theme) {
81
+ @mixin theme($theme, $options...) {
80
82
  @include mat.private-check-duplicate-theme-styles($theme, 'mtx-datetimepicker') {
81
83
  @if mat.get-theme-version($theme) == 1 {
82
- @include _theme-from-tokens(mat.get-theme-tokens($theme));
84
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme), $options...);
83
85
  }
84
86
  @else {
85
87
  @include base($theme);
@@ -96,9 +98,9 @@
96
98
  }
97
99
  }
98
100
 
99
- @mixin _theme-from-tokens($tokens) {
100
- @if ($tokens != ()) {
101
- @include token-utils.create-token-values(tokens-mtx-datetimepicker.$prefix,
102
- map.get($tokens, tokens-mtx-datetimepicker.$prefix));
103
- }
101
+ @mixin _theme-from-tokens($tokens, $options...) {
102
+ @include validation.selector-defined(
103
+ 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
104
+ $mtx-datetimepicker-tokens: token-utils.get-tokens-for($tokens, tokens-mtx-datetimepicker.$prefix, $options...);
105
+ @include token-utils.create-token-values(tokens-mtx-datetimepicker.$prefix, $mtx-datetimepicker-tokens);
104
106
  }
@@ -27,17 +27,24 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
27
27
  width: $landscape-calendar-header-width;
28
28
  min-width: $landscape-calendar-header-width;
29
29
  padding: 16px 8px;
30
+ border-bottom-width: 0;
30
31
 
31
32
  @include token-utils.use-tokens($_tokens...) {
32
33
  border-top-right-radius: 0;
33
34
  border-bottom-right-radius: 0;
34
35
 
36
+ $border-color: token-utils.get-token-variable(calendar-header-divider-color);
37
+
38
+ border-right: 1px solid var($border-color);
39
+
35
40
  @include token-utils.create-token-slot(border-top-left-radius, container-shape);
36
41
  @include token-utils.create-token-slot(border-bottom-left-radius, container-shape);
37
42
 
38
43
  [dir='rtl'] & {
39
44
  border-top-left-radius: 0;
40
45
  border-bottom-left-radius: 0;
46
+ border-right-width: 0;
47
+ border-left: 1px solid var($border-color);
41
48
 
42
49
  @include token-utils.create-token-slot(border-top-right-radius, container-shape);
43
50
  @include token-utils.create-token-slot(border-bottom-right-radius, container-shape);
@@ -96,10 +103,16 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
96
103
  padding: 8px;
97
104
 
98
105
  @include token-utils.use-tokens($_tokens...) {
106
+ $border-color: token-utils.get-token-variable(calendar-header-divider-color);
107
+
108
+ border-bottom: 1px solid var($border-color);
109
+
99
110
  @include token-utils.create-token-slot(border-top-left-radius, container-shape);
100
111
  @include token-utils.create-token-slot(border-top-right-radius, container-shape);
101
112
  @include token-utils.create-token-slot(background-color, calendar-header-background-color);
102
113
  @include token-utils.create-token-slot(color, calendar-header-text-color);
114
+
115
+ @include token-utils.create-token-slot(--mdc-text-button-container-shape, selector-container-shape);
103
116
  }
104
117
 
105
118
  .mtx-calendar-header-year,
@@ -37,9 +37,9 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
37
37
  position: absolute;
38
38
  top: 50%;
39
39
  left: 50%;
40
- width: 2%;
41
- height: 2%;
42
- margin: -1%;
40
+ width: 3%;
41
+ height: 3%;
42
+ margin: -1.5%;
43
43
  border-radius: 50%;
44
44
 
45
45
  @include token-utils.use-tokens($_tokens...) {
@@ -50,7 +50,7 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
50
50
  .mtx-clock-hand {
51
51
  position: absolute;
52
52
  inset: 0;
53
- width: 1px;
53
+ width: 2px;
54
54
  margin: 0 auto;
55
55
  transform-origin: bottom;
56
56
 
@@ -61,7 +61,7 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
61
61
  content: '';
62
62
  position: absolute;
63
63
  top: -4px;
64
- left: -4px;
64
+ left: -3px; // 8px - 2px / 2
65
65
  width: 8px;
66
66
  height: 8px;
67
67
  border-radius: 50%;
@@ -49,8 +49,9 @@ $touch-max-height: 850px;
49
49
  @include token-utils.use-tokens(tokens-mtx-datetimepicker.$prefix,
50
50
  tokens-mtx-datetimepicker.get-token-slots()) {
51
51
  @include token-utils.create-token-slot(border-radius, container-shape);
52
- @include token-utils.create-token-slot(background-color, calendar-container-background-color);
53
- @include token-utils.create-token-slot(color, calendar-container-text-color);
52
+ @include token-utils.create-token-slot(background-color, container-background-color);
53
+ @include token-utils.create-token-slot(box-shadow, container-elevation-shadow);
54
+ @include token-utils.create-token-slot(color, container-text-color);
54
55
  }
55
56
  }
56
57
 
@@ -85,6 +86,12 @@ $touch-max-height: 850px;
85
86
  display: block;
86
87
  max-height: 80vh;
87
88
 
89
+ @include token-utils.use-tokens(tokens-mtx-datetimepicker.$prefix,
90
+ tokens-mtx-datetimepicker.get-token-slots()) {
91
+ @include token-utils.create-token-slot(box-shadow, container-touch-elevation-shadow);
92
+ @include token-utils.create-token-slot(border-radius, container-touch-shape);
93
+ }
94
+
88
95
  // Allows for the screen reader close button to be seen in touch UI mode.
89
96
  position: relative;
90
97
 
@@ -1,7 +1,7 @@
1
1
  import { Directionality } from '@angular/cdk/bidi';
2
2
  import { Overlay, ScrollStrategy } from '@angular/cdk/overlay';
3
- import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, InjectionToken, NgZone, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
4
- import { CanColor, ThemePalette } from '@angular/material/core';
3
+ import { AfterContentInit, ChangeDetectorRef, EventEmitter, InjectionToken, NgZone, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
4
+ import { ThemePalette } from '@angular/material/core';
5
5
  import { Subject } from 'rxjs';
6
6
  import { DatetimeAdapter } from '@ng-matero/extensions/core';
7
7
  import { MtxCalendar } from './calendar';
@@ -23,12 +23,6 @@ export declare const MTX_DATETIMEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER: {
23
23
  deps: (typeof Overlay)[];
24
24
  useFactory: typeof MTX_DATETIMEPICKER_SCROLL_STRATEGY_FACTORY;
25
25
  };
26
- /** @docs-private */
27
- declare const _MtxDatetimepickerContentBase: import("@angular/material/core")._Constructor<CanColor> & import("@angular/material/core")._AbstractConstructor<CanColor> & {
28
- new (_elementRef: ElementRef): {
29
- _elementRef: ElementRef;
30
- };
31
- };
32
26
  /**
33
27
  * Component used as the content for the datetimepicker dialog and popup. We use this instead of
34
28
  * using MtxCalendar directly as the content so we can control the initial focus. This also gives us
@@ -36,9 +30,10 @@ declare const _MtxDatetimepickerContentBase: import("@angular/material/core")._C
36
30
  * future. (e.g. confirmation buttons).
37
31
  * @docs-private
38
32
  */
39
- export declare class MtxDatetimepickerContent<D> extends _MtxDatetimepickerContentBase implements OnInit, AfterContentInit, OnDestroy, CanColor {
33
+ export declare class MtxDatetimepickerContent<D> implements OnInit, AfterContentInit, OnDestroy {
40
34
  private _changeDetectorRef;
41
35
  _calendar: MtxCalendar<D>;
36
+ color: ThemePalette;
42
37
  datetimepicker: MtxDatetimepicker<D>;
43
38
  /** Whether the datetimepicker is above or below the input. */
44
39
  _isAbove: boolean;
@@ -48,7 +43,7 @@ export declare class MtxDatetimepickerContent<D> extends _MtxDatetimepickerConte
48
43
  readonly _animationDone: Subject<void>;
49
44
  /** Id of the label for the `role="dialog"` element. */
50
45
  _dialogLabelId: string | null;
51
- constructor(elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef);
46
+ constructor(_changeDetectorRef: ChangeDetectorRef);
52
47
  ngOnInit(): void;
53
48
  ngAfterContentInit(): void;
54
49
  _startExitAnimation(): void;
@@ -202,4 +197,3 @@ export declare class MtxDatetimepicker<D> implements OnDestroy {
202
197
  static ngAcceptInputType_disabled: unknown;
203
198
  static ngAcceptInputType_restoreFocus: unknown;
204
199
  }
205
- export {};
@@ -2,7 +2,6 @@
2
2
  @use '../core/tokens/m2/mtx/datetimepicker' as tokens-mtx-datetimepicker;
3
3
 
4
4
  $time-font-size: 36px;
5
- $time-border-radius: 8px;
6
5
  $time-input-width: 72px;
7
6
  $time-input-height: 56px;
8
7
  $time-seperator-width: 24px;
@@ -33,12 +32,12 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
33
32
  padding: 0;
34
33
  font-size: $time-font-size;
35
34
  text-align: center;
36
- border-radius: $time-border-radius;
37
35
  border: 2px solid transparent;
38
36
  appearance: none;
39
37
  outline: none;
40
38
 
41
39
  @include token-utils.use-tokens($_tokens...) {
40
+ @include token-utils.create-token-slot(border-radius, selector-container-shape);
42
41
  @include token-utils.create-token-slot(background-color, time-input-background-color);
43
42
  @include token-utils.create-token-slot(color, time-input-text-color);
44
43
 
@@ -47,7 +46,7 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
47
46
  @include token-utils.create-token-slot(color, time-input-active-state-text-color);
48
47
 
49
48
  &:focus {
50
- @include token-utils.create-token-slot(border-color, time-input-focus-state-border-color);
49
+ @include token-utils.create-token-slot(border-color, time-input-focus-state-outline-color);
51
50
  @include token-utils.create-token-slot(background-color, time-input-focus-state-background-color);
52
51
 
53
52
  &::placeholder {
@@ -57,7 +56,7 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
57
56
  }
58
57
 
59
58
  &.mtx-time-input-warning {
60
- @include token-utils.create-token-slot(border-color, time-input-warn-state-border-color);
59
+ @include token-utils.create-token-slot(border-color, time-input-warn-state-outline-color);
61
60
  }
62
61
  }
63
62
  }
@@ -87,7 +86,8 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
87
86
 
88
87
  @include token-utils.use-tokens($_tokens...) {
89
88
  @include token-utils.create-token-slot(--mdc-text-button-label-text-color, time-ampm-text-color);
90
- @include token-utils.create-token-slot(border-color, time-ampm-border-color);
89
+ @include token-utils.create-token-slot(--mdc-text-button-container-shape, selector-container-shape);
90
+ @include token-utils.create-token-slot(border-color, time-ampm-outline-color);
91
91
 
92
92
  &.mtx-time-ampm-active {
93
93
  --mdc-text-button-label-text-weight: 500;
@@ -109,12 +109,14 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
109
109
  }
110
110
 
111
111
  .mtx-time-am {
112
- border-radius: $time-border-radius $time-border-radius 0 0;
112
+ border-bottom-left-radius: 0;
113
+ border-bottom-right-radius: 0;
113
114
  }
114
115
 
115
116
  .mtx-time-pm {
116
- border-radius: 0 0 $time-border-radius $time-border-radius;
117
- border-top: none;
117
+ border-top-left-radius: 0;
118
+ border-top-right-radius: 0;
119
+ border-top-width: 0;
118
120
  }
119
121
  }
120
122
 
@@ -1,11 +1,14 @@
1
+ @use 'sass:map';
1
2
  @use '@angular/material' as mat;
2
3
  @use '../core/style/sass-utils';
4
+ @use '../core/theming/inspection';
5
+ @use '../core/theming/validation';
3
6
  @use '../core/tokens/token-utils';
4
7
  @use '../core/tokens/m2/mtx/drawer' as tokens-mtx-drawer;
5
8
 
6
9
  @mixin base($theme) {
7
10
  @if mat.get-theme-version($theme) == 1 {
8
- @include _theme-from-tokens(mat.get-theme-tokens($theme, base));
11
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
9
12
  }
10
13
  @else {
11
14
  @include sass-utils.current-selector-or-root() {
@@ -17,7 +20,7 @@
17
20
 
18
21
  @mixin color($theme) {
19
22
  @if mat.get-theme-version($theme) == 1 {
20
- @include _theme-from-tokens(mat.get-theme-tokens($theme, color));
23
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
21
24
  }
22
25
  @else {
23
26
  @include sass-utils.current-selector-or-root() {
@@ -29,14 +32,14 @@
29
32
 
30
33
  @mixin typography($theme) {
31
34
  @if mat.get-theme-version($theme) == 1 {
32
- @include _theme-from-tokens(mat.get-theme-tokens($theme, typography));
35
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
33
36
  }
34
37
  @else {}
35
38
  }
36
39
 
37
40
  @mixin density($theme) {
38
41
  @if mat.get-theme-version($theme) == 1 {
39
- @include _theme-from-tokens(mat.get-theme-tokens($theme, density));
42
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
40
43
  }
41
44
  @else {}
42
45
  }
@@ -44,7 +47,7 @@
44
47
  @mixin theme($theme) {
45
48
  @include mat.private-check-duplicate-theme-styles($theme, 'mtx-drawer') {
46
49
  @if mat.get-theme-version($theme) == 1 {
47
- @include _theme-from-tokens(mat.get-theme-tokens($theme));
50
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme));
48
51
  }
49
52
  @else {
50
53
  @include base($theme);
@@ -62,6 +65,8 @@
62
65
  }
63
66
 
64
67
  @mixin _theme-from-tokens($tokens) {
68
+ @include validation.selector-defined(
69
+ 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
65
70
  @if ($tokens != ()) {
66
71
  @include token-utils.create-token-values(tokens-mtx-drawer.$prefix,
67
72
  map.get($tokens, tokens-mtx-drawer.$prefix));
@@ -3,11 +3,11 @@ import { CommonModule } from '@angular/common';
3
3
  import { MtxAlert } from './alert';
4
4
  import * as i0 from "@angular/core";
5
5
  export class MtxAlertModule {
6
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: MtxAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.0", ngImport: i0, type: MtxAlertModule, imports: [CommonModule, MtxAlert], exports: [MtxAlert] }); }
8
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: MtxAlertModule, imports: [CommonModule] }); }
6
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: MtxAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: MtxAlertModule, imports: [CommonModule, MtxAlert], exports: [MtxAlert] }); }
8
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: MtxAlertModule, imports: [CommonModule] }); }
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: MtxAlertModule, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: MtxAlertModule, decorators: [{
11
11
  type: NgModule,
12
12
  args: [{
13
13
  imports: [CommonModule, MtxAlert],
@@ -19,16 +19,16 @@ export class MtxAlert {
19
19
  this._changeDetectorRef.markForCheck();
20
20
  this.closed.emit(this);
21
21
  }
22
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: MtxAlert, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
23
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.0", type: MtxAlert, isStandalone: true, selector: "mtx-alert", inputs: { type: "type", dismissible: ["dismissible", "dismissible", booleanAttribute], elevation: "elevation" }, outputs: { closed: "closed" }, host: { attributes: { "role": "alert" }, properties: { "class.mtx-alert-dismissible": "dismissible", "class": "this._hostClassList" }, classAttribute: "mtx-alert" }, exportAs: ["mtxAlert"], ngImport: i0, template: "<ng-content></ng-content>\n@if (dismissible) {\n <button type=\"button\" class=\"mtx-alert-close\" aria-label=\"Close\" (click)=\"_onClosed()\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n}\n", styles: [".mtx-alert{position:relative;display:block;padding:12px 20px;margin-bottom:16px;border:1px solid transparent;border-radius:var(--mtx-alert-container-shape);background-color:var(--mtx-alert-background-color);color:var(--mtx-alert-text-color)}.mtx-alert.mtx-alert-info{background-color:var(--mtx-alert-info-background-color);color:var(--mtx-alert-info-text-color)}.mtx-alert.mtx-alert-success{background-color:var(--mtx-alert-success-background-color);color:var(--mtx-alert-success-text-color)}.mtx-alert.mtx-alert-warning{background-color:var(--mtx-alert-warning-background-color);color:var(--mtx-alert-warning-text-color)}.mtx-alert.mtx-alert-danger{background-color:var(--mtx-alert-danger-background-color);color:var(--mtx-alert-danger-text-color)}.mtx-alert-close{position:absolute;top:0;bottom:0;right:0;padding:0 1.25rem;font-size:1.5rem;line-height:1;color:inherit;opacity:.5;background-color:transparent;border:0;cursor:pointer}[dir=rtl] .mtx-alert-close{right:auto;left:0}.mtx-alert-close:hover{opacity:.75}.mtx-alert-dismissible{padding-right:4rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
22
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: MtxAlert, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
23
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.0", type: MtxAlert, isStandalone: true, selector: "mtx-alert", inputs: { type: "type", dismissible: ["dismissible", "dismissible", booleanAttribute], elevation: "elevation" }, outputs: { closed: "closed" }, host: { attributes: { "role": "alert" }, properties: { "class.mtx-alert-dismissible": "dismissible", "class": "this._hostClassList" }, classAttribute: "mtx-alert" }, exportAs: ["mtxAlert"], ngImport: i0, template: "<ng-content></ng-content>\n@if (dismissible) {\n <button type=\"button\" class=\"mtx-alert-close\" aria-label=\"Close\" (click)=\"_onClosed()\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n}\n", styles: [".mtx-alert{position:relative;display:block;padding:12px 20px;margin-bottom:16px;border:1px solid var(--mtx-alert-outline-color);border-radius:var(--mtx-alert-container-shape);background-color:var(--mtx-alert-background-color);color:var(--mtx-alert-text-color)}.mtx-alert.mtx-alert-info{background-color:var(--mtx-alert-info-background-color);color:var(--mtx-alert-info-text-color)}.mtx-alert.mtx-alert-success{background-color:var(--mtx-alert-success-background-color);color:var(--mtx-alert-success-text-color)}.mtx-alert.mtx-alert-warning{background-color:var(--mtx-alert-warning-background-color);color:var(--mtx-alert-warning-text-color)}.mtx-alert.mtx-alert-danger{background-color:var(--mtx-alert-danger-background-color);color:var(--mtx-alert-danger-text-color)}.mtx-alert-close{position:absolute;top:0;bottom:0;right:0;padding:0 1.25rem;font-size:1.5rem;line-height:1;color:inherit;opacity:.5;background-color:transparent;border:0;cursor:pointer}[dir=rtl] .mtx-alert-close{right:auto;left:0}.mtx-alert-close:hover{opacity:.75}.mtx-alert-dismissible{padding-right:4rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
24
24
  }
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: MtxAlert, decorators: [{
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: MtxAlert, decorators: [{
26
26
  type: Component,
27
27
  args: [{ selector: 'mtx-alert', exportAs: 'mtxAlert', host: {
28
28
  'class': 'mtx-alert',
29
29
  '[class.mtx-alert-dismissible]': 'dismissible',
30
30
  'role': 'alert',
31
- }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<ng-content></ng-content>\n@if (dismissible) {\n <button type=\"button\" class=\"mtx-alert-close\" aria-label=\"Close\" (click)=\"_onClosed()\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n}\n", styles: [".mtx-alert{position:relative;display:block;padding:12px 20px;margin-bottom:16px;border:1px solid transparent;border-radius:var(--mtx-alert-container-shape);background-color:var(--mtx-alert-background-color);color:var(--mtx-alert-text-color)}.mtx-alert.mtx-alert-info{background-color:var(--mtx-alert-info-background-color);color:var(--mtx-alert-info-text-color)}.mtx-alert.mtx-alert-success{background-color:var(--mtx-alert-success-background-color);color:var(--mtx-alert-success-text-color)}.mtx-alert.mtx-alert-warning{background-color:var(--mtx-alert-warning-background-color);color:var(--mtx-alert-warning-text-color)}.mtx-alert.mtx-alert-danger{background-color:var(--mtx-alert-danger-background-color);color:var(--mtx-alert-danger-text-color)}.mtx-alert-close{position:absolute;top:0;bottom:0;right:0;padding:0 1.25rem;font-size:1.5rem;line-height:1;color:inherit;opacity:.5;background-color:transparent;border:0;cursor:pointer}[dir=rtl] .mtx-alert-close{right:auto;left:0}.mtx-alert-close:hover{opacity:.75}.mtx-alert-dismissible{padding-right:4rem}\n"] }]
31
+ }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<ng-content></ng-content>\n@if (dismissible) {\n <button type=\"button\" class=\"mtx-alert-close\" aria-label=\"Close\" (click)=\"_onClosed()\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n}\n", styles: [".mtx-alert{position:relative;display:block;padding:12px 20px;margin-bottom:16px;border:1px solid var(--mtx-alert-outline-color);border-radius:var(--mtx-alert-container-shape);background-color:var(--mtx-alert-background-color);color:var(--mtx-alert-text-color)}.mtx-alert.mtx-alert-info{background-color:var(--mtx-alert-info-background-color);color:var(--mtx-alert-info-text-color)}.mtx-alert.mtx-alert-success{background-color:var(--mtx-alert-success-background-color);color:var(--mtx-alert-success-text-color)}.mtx-alert.mtx-alert-warning{background-color:var(--mtx-alert-warning-background-color);color:var(--mtx-alert-warning-text-color)}.mtx-alert.mtx-alert-danger{background-color:var(--mtx-alert-danger-background-color);color:var(--mtx-alert-danger-text-color)}.mtx-alert-close{position:absolute;top:0;bottom:0;right:0;padding:0 1.25rem;font-size:1.5rem;line-height:1;color:inherit;opacity:.5;background-color:transparent;border:0;cursor:pointer}[dir=rtl] .mtx-alert-close{right:auto;left:0}.mtx-alert-close:hover{opacity:.75}.mtx-alert-dismissible{padding-right:4rem}\n"] }]
32
32
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { _hostClassList: [{
33
33
  type: HostBinding,
34
34
  args: ['class']
@@ -39,10 +39,10 @@ export class MatButtonLoading {
39
39
  this.spinner = null;
40
40
  }
41
41
  }
42
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: MatButtonLoading, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
43
- /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.1.0", type: MatButtonLoading, isStandalone: true, selector: "[mat-button][loading],\n [mat-raised-button][loading],\n [mat-stroked-button][loading],\n [mat-flat-button][loading],\n [mat-icon-button][loading],\n [mat-fab][loading],\n [mat-mini-fab][loading]", inputs: { loading: ["loading", "loading", booleanAttribute], disabled: ["disabled", "disabled", booleanAttribute], color: "color" }, usesOnChanges: true, ngImport: i0 }); }
42
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: MatButtonLoading, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
43
+ /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.0", type: MatButtonLoading, isStandalone: true, selector: "[mat-button][loading],\n [mat-raised-button][loading],\n [mat-stroked-button][loading],\n [mat-flat-button][loading],\n [mat-icon-button][loading],\n [mat-fab][loading],\n [mat-mini-fab][loading]", inputs: { loading: ["loading", "loading", booleanAttribute], disabled: ["disabled", "disabled", booleanAttribute], color: "color" }, usesOnChanges: true, ngImport: i0 }); }
44
44
  }
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: MatButtonLoading, decorators: [{
45
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: MatButtonLoading, decorators: [{
46
46
  type: Directive,
47
47
  args: [{
48
48
  selector: `[mat-button][loading],
@@ -5,11 +5,11 @@ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
5
5
  import { MatButtonLoading } from './button-loading';
6
6
  import * as i0 from "@angular/core";
7
7
  export class MtxButtonModule {
8
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: MtxButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
9
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.0", ngImport: i0, type: MtxButtonModule, imports: [CommonModule, MatButtonModule, MatProgressSpinnerModule, MatButtonLoading], exports: [MatButtonLoading] }); }
10
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: MtxButtonModule, imports: [CommonModule, MatButtonModule, MatProgressSpinnerModule] }); }
8
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: MtxButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
9
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: MtxButtonModule, imports: [CommonModule, MatButtonModule, MatProgressSpinnerModule, MatButtonLoading], exports: [MatButtonLoading] }); }
10
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: MtxButtonModule, imports: [CommonModule, MatButtonModule, MatProgressSpinnerModule] }); }
11
11
  }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: MtxButtonModule, decorators: [{
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: MtxButtonModule, decorators: [{
13
13
  type: NgModule,
14
14
  args: [{
15
15
  imports: [CommonModule, MatButtonModule, MatProgressSpinnerModule, MatButtonLoading],
@@ -6,11 +6,11 @@ import { MtxPipesModule } from '@ng-matero/extensions/core';
6
6
  import { MtxCheckboxGroup } from './checkbox-group';
7
7
  import * as i0 from "@angular/core";
8
8
  export class MtxCheckboxGroupModule {
9
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: MtxCheckboxGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
10
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.0", ngImport: i0, type: MtxCheckboxGroupModule, imports: [CommonModule, FormsModule, MatCheckboxModule, MtxPipesModule, MtxCheckboxGroup], exports: [MtxCheckboxGroup, MtxPipesModule] }); }
11
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: MtxCheckboxGroupModule, imports: [CommonModule, FormsModule, MatCheckboxModule, MtxPipesModule, MtxCheckboxGroup, MtxPipesModule] }); }
9
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: MtxCheckboxGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
10
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: MtxCheckboxGroupModule, imports: [CommonModule, FormsModule, MatCheckboxModule, MtxPipesModule, MtxCheckboxGroup], exports: [MtxCheckboxGroup, MtxPipesModule] }); }
11
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: MtxCheckboxGroupModule, imports: [CommonModule, FormsModule, MatCheckboxModule, MtxPipesModule, MtxCheckboxGroup, MtxPipesModule] }); }
12
12
  }
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: MtxCheckboxGroupModule, decorators: [{
13
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: MtxCheckboxGroupModule, decorators: [{
14
14
  type: NgModule,
15
15
  args: [{
16
16
  imports: [CommonModule, FormsModule, MatCheckboxModule, MtxPipesModule, MtxCheckboxGroup],
@@ -177,8 +177,8 @@ export class MtxCheckboxGroup {
177
177
  }
178
178
  this._getSelectedItems(index);
179
179
  }
180
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: MtxCheckboxGroup, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.FocusMonitor }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
181
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.0", type: MtxCheckboxGroup, isStandalone: true, selector: "mtx-checkbox-group", inputs: { items: "items", bindLabel: "bindLabel", bindValue: "bindValue", showSelectAll: ["showSelectAll", "showSelectAll", booleanAttribute], selectAllLabel: "selectAllLabel", compareWith: "compareWith", disabled: ["disabled", "disabled", booleanAttribute] }, outputs: { change: "change" }, host: { classAttribute: "mtx-checkbox-group" }, providers: [
180
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: MtxCheckboxGroup, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.FocusMonitor }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
181
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.0", type: MtxCheckboxGroup, isStandalone: true, selector: "mtx-checkbox-group", inputs: { items: "items", bindLabel: "bindLabel", bindValue: "bindValue", showSelectAll: ["showSelectAll", "showSelectAll", booleanAttribute], selectAllLabel: "selectAllLabel", compareWith: "compareWith", disabled: ["disabled", "disabled", booleanAttribute] }, outputs: { change: "change" }, host: { classAttribute: "mtx-checkbox-group" }, providers: [
182
182
  {
183
183
  provide: NG_VALUE_ACCESSOR,
184
184
  useExisting: forwardRef((() => MtxCheckboxGroup)),
@@ -186,7 +186,7 @@ export class MtxCheckboxGroup {
186
186
  },
187
187
  ], queries: [{ propertyName: "_checkboxes", predicate: i0.forwardRef(() => MatCheckbox), descendants: true }], exportAs: ["mtxCheckboxGroup"], ngImport: i0, template: "@if (showSelectAll) {\n <mat-checkbox class=\"mtx-checkbox-master\"\n [checked]=\"selectAll\"\n [(indeterminate)]=\"selectAllIndeterminate\"\n [disabled]=\"disabled\"\n (change)=\"_updateMasterCheckboxState($event, -1)\">{{selectAllLabel}}</mat-checkbox>\n}\n\n@for (option of items; track option; let i = $index) {\n <mat-checkbox class=\"mtx-checkbox-normal\"\n [(ngModel)]=\"option.checked\"\n [ngModelOptions]=\"{standalone: true}\"\n [aria-describedby]=\"option.ariaDescribedby\"\n [aria-label]=\"option.ariaLabel\"\n [aria-labelledby]=\"option.ariaLabelledby\"\n [color]=\"option.color\"\n [disabled]=\"option.disabled || disabled\"\n [disableRipple]=\"option.disableRipple\"\n [labelPosition]=\"option.labelPosition\"\n [required]=\"option.required\"\n (change)=\"_updateNormalCheckboxState($event, i)\"\n >{{option[bindLabel] | toObservable | async}}</mat-checkbox>\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "pipe", type: MtxToObservablePipe, name: "toObservable" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
188
188
  }
189
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: MtxCheckboxGroup, decorators: [{
189
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: MtxCheckboxGroup, decorators: [{
190
190
  type: Component,
191
191
  args: [{ selector: 'mtx-checkbox-group', exportAs: 'mtxCheckboxGroup', host: {
192
192
  class: 'mtx-checkbox-group',
@@ -180,14 +180,14 @@ export class MtxColorpickerInput {
180
180
  _formatValue(value) {
181
181
  this._elementRef.nativeElement.value = value ? value : '';
182
182
  }
183
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: MtxColorpickerInput, deps: [{ token: i0.ElementRef }, { token: i1.MatFormField, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
184
- /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.1.0", type: MtxColorpickerInput, isStandalone: true, selector: "input[mtxColorpicker]", inputs: { mtxColorpicker: "mtxColorpicker", disabled: ["disabled", "disabled", booleanAttribute], value: "value", format: "format" }, outputs: { colorChange: "colorChange", colorInput: "colorInput" }, host: { listeners: { "input": "_onInput($event.target.value)", "change": "_onChange()", "blur": "_onBlur()", "keydown": "_onKeydown($event)" }, properties: { "attr.aria-haspopup": "_picker ? \"dialog\" : null", "attr.aria-owns": "(_picker?.opened && _picker.id) || null", "disabled": "disabled" }, classAttribute: "mtx-colorpicker-input" }, providers: [
183
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: MtxColorpickerInput, deps: [{ token: i0.ElementRef }, { token: i1.MatFormField, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
184
+ /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.0", type: MtxColorpickerInput, isStandalone: true, selector: "input[mtxColorpicker]", inputs: { mtxColorpicker: "mtxColorpicker", disabled: ["disabled", "disabled", booleanAttribute], value: "value", format: "format" }, outputs: { colorChange: "colorChange", colorInput: "colorInput" }, host: { listeners: { "input": "_onInput($event.target.value)", "change": "_onChange()", "blur": "_onBlur()", "keydown": "_onKeydown($event)" }, properties: { "attr.aria-haspopup": "_picker ? \"dialog\" : null", "attr.aria-owns": "(_picker?.opened && _picker.id) || null", "disabled": "disabled" }, classAttribute: "mtx-colorpicker-input" }, providers: [
185
185
  MTX_COLORPICKER_VALUE_ACCESSOR,
186
186
  MTX_COLORPICKER_VALIDATORS,
187
187
  { provide: MAT_INPUT_VALUE_ACCESSOR, useExisting: MtxColorpickerInput },
188
188
  ], exportAs: ["mtxColorpickerInput"], ngImport: i0 }); }
189
189
  }
190
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: MtxColorpickerInput, decorators: [{
190
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: MtxColorpickerInput, decorators: [{
191
191
  type: Directive,
192
192
  args: [{
193
193
  selector: 'input[mtxColorpicker]',
@@ -10,8 +10,8 @@ import { MtxColorpickerInput } from './colorpicker-input';
10
10
  import { MtxColorpickerToggle, MtxColorpickerToggleIcon } from './colorpicker-toggle';
11
11
  import * as i0 from "@angular/core";
12
12
  export class MtxColorpickerModule {
13
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: MtxColorpickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
14
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.0", ngImport: i0, type: MtxColorpickerModule, imports: [CommonModule,
13
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: MtxColorpickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
14
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: MtxColorpickerModule, imports: [CommonModule,
15
15
  OverlayModule,
16
16
  A11yModule,
17
17
  PortalModule,
@@ -26,7 +26,7 @@ export class MtxColorpickerModule {
26
26
  MtxColorpickerInput,
27
27
  MtxColorpickerToggle,
28
28
  MtxColorpickerToggleIcon] }); }
29
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: MtxColorpickerModule, providers: [MTX_COLORPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [CommonModule,
29
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: MtxColorpickerModule, providers: [MTX_COLORPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [CommonModule,
30
30
  OverlayModule,
31
31
  A11yModule,
32
32
  PortalModule,
@@ -35,7 +35,7 @@ export class MtxColorpickerModule {
35
35
  MtxColorpickerContent,
36
36
  MtxColorpickerToggle] }); }
37
37
  }
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: MtxColorpickerModule, decorators: [{
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: MtxColorpickerModule, decorators: [{
39
39
  type: NgModule,
40
40
  args: [{
41
41
  imports: [
@@ -4,10 +4,10 @@ import { Subscription, merge, of as observableOf } from 'rxjs';
4
4
  import * as i0 from "@angular/core";
5
5
  /** Can be used to override the icon of a `mtxColorpickerToggle`. */
6
6
  export class MtxColorpickerToggleIcon {
7
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: MtxColorpickerToggleIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
8
- /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.0", type: MtxColorpickerToggleIcon, isStandalone: true, selector: "[mtxColorpickerToggleIcon]", ngImport: i0 }); }
7
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: MtxColorpickerToggleIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
8
+ /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.0", type: MtxColorpickerToggleIcon, isStandalone: true, selector: "[mtxColorpickerToggleIcon]", ngImport: i0 }); }
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: MtxColorpickerToggleIcon, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: MtxColorpickerToggleIcon, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: '[mtxColorpickerToggleIcon]',
@@ -59,10 +59,10 @@ export class MtxColorpickerToggle {
59
59
  this._stateChanges.unsubscribe();
60
60
  this._stateChanges = merge(pickerDisabled, inputDisabled, pickerToggled).subscribe(() => this._changeDetectorRef.markForCheck());
61
61
  }
62
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: MtxColorpickerToggle, deps: [{ token: i0.ChangeDetectorRef }, { token: 'tabindex', attribute: true }], target: i0.ɵɵFactoryTarget.Component }); }
63
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.0", type: MtxColorpickerToggle, isStandalone: true, selector: "mtx-colorpicker-toggle", inputs: { picker: ["for", "picker"], tabIndex: "tabIndex", ariaLabel: ["aria-label", "ariaLabel"], disabled: ["disabled", "disabled", booleanAttribute], disableRipple: ["disableRipple", "disableRipple", booleanAttribute] }, host: { listeners: { "click": "_open($event)" }, properties: { "attr.tabindex": "null", "class.mtx-colorpicker-toggle-active": "picker && picker.opened", "class.mat-accent": "picker && picker.color === \"accent\"", "class.mat-warn": "picker && picker.color === \"warn\"" }, classAttribute: "mtx-colorpicker-toggle" }, queries: [{ propertyName: "_customIcon", first: true, predicate: MtxColorpickerToggleIcon, descendants: true }], viewQueries: [{ propertyName: "_button", first: true, predicate: ["button"], descendants: true }], exportAs: ["mtxColorpickerToggle"], usesOnChanges: true, ngImport: i0, template: "<button #button\n mat-icon-button\n type=\"button\"\n [attr.aria-haspopup]=\"picker ? 'dialog' : null\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.tabindex]=\"disabled ? -1 : tabIndex\"\n [disabled]=\"disabled\"\n [disableRipple]=\"disableRipple\">\n\n @if (!_customIcon) {\n <svg\n class=\"mtx-colorpicker-toggle-default-icon\"\n viewBox=\"0 0 24 24\"\n width=\"24px\"\n height=\"24px\"\n fill=\"currentColor\"\n focusable=\"false\">\n <path d=\"M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z\" />\n </svg>\n }\n\n <ng-content select=\"[mtxColorpickerToggleIcon]\"></ng-content>\n</button>\n", styles: [".mtx-colorpicker-toggle{pointer-events:auto;color:var(--mtx-colorpicker-toggle-icon-color)}.mtx-colorpicker-toggle-active{color:var(--mtx-colorpicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mtx-colorpicker-toggle-default-icon{color:CanvasText}\n"], dependencies: [{ kind: "component", type: MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
62
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: MtxColorpickerToggle, deps: [{ token: i0.ChangeDetectorRef }, { token: 'tabindex', attribute: true }], target: i0.ɵɵFactoryTarget.Component }); }
63
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.0", type: MtxColorpickerToggle, isStandalone: true, selector: "mtx-colorpicker-toggle", inputs: { picker: ["for", "picker"], tabIndex: "tabIndex", ariaLabel: ["aria-label", "ariaLabel"], disabled: ["disabled", "disabled", booleanAttribute], disableRipple: ["disableRipple", "disableRipple", booleanAttribute] }, host: { listeners: { "click": "_open($event)" }, properties: { "attr.tabindex": "null", "class.mtx-colorpicker-toggle-active": "picker && picker.opened", "class.mat-accent": "picker && picker.color === \"accent\"", "class.mat-warn": "picker && picker.color === \"warn\"" }, classAttribute: "mtx-colorpicker-toggle" }, queries: [{ propertyName: "_customIcon", first: true, predicate: MtxColorpickerToggleIcon, descendants: true }], viewQueries: [{ propertyName: "_button", first: true, predicate: ["button"], descendants: true }], exportAs: ["mtxColorpickerToggle"], usesOnChanges: true, ngImport: i0, template: "<button #button\n mat-icon-button\n type=\"button\"\n [attr.aria-haspopup]=\"picker ? 'dialog' : null\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.tabindex]=\"disabled ? -1 : tabIndex\"\n [disabled]=\"disabled\"\n [disableRipple]=\"disableRipple\">\n\n @if (!_customIcon) {\n <svg\n class=\"mtx-colorpicker-toggle-default-icon\"\n viewBox=\"0 0 24 24\"\n width=\"24px\"\n height=\"24px\"\n fill=\"currentColor\"\n focusable=\"false\">\n <path d=\"M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z\" />\n </svg>\n }\n\n <ng-content select=\"[mtxColorpickerToggleIcon]\"></ng-content>\n</button>\n", styles: [".mtx-colorpicker-toggle{pointer-events:auto;color:var(--mtx-colorpicker-toggle-icon-color)}.mtx-colorpicker-toggle-active{color:var(--mtx-colorpicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mtx-colorpicker-toggle-default-icon{color:CanvasText}\n"], dependencies: [{ kind: "component", type: MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
64
64
  }
65
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: MtxColorpickerToggle, decorators: [{
65
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: MtxColorpickerToggle, decorators: [{
66
66
  type: Component,
67
67
  args: [{ selector: 'mtx-colorpicker-toggle', host: {
68
68
  'class': 'mtx-colorpicker-toggle',