@ng-matero/extensions 19.4.1 → 20.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/_index.scss +1 -1
  2. package/alert/_alert-theme.scss +26 -31
  3. package/alert/_m2-alert.scss +59 -0
  4. package/alert/_m3-alert.scss +41 -0
  5. package/alert/alert.scss +27 -31
  6. package/alert/index.d.ts +30 -5
  7. package/button/index.d.ts +31 -5
  8. package/checkbox-group/index.d.ts +117 -5
  9. package/colorpicker/_colorpicker-theme.scss +31 -36
  10. package/{core/tokens/m2/mtx/_colorpicker.scss → colorpicker/_m2-colorpicker.scss} +6 -10
  11. package/colorpicker/_m3-colorpicker.scss +23 -0
  12. package/colorpicker/colorpicker-toggle.scss +4 -9
  13. package/colorpicker/index.d.ts +285 -3
  14. package/column-resize/index.d.ts +456 -3
  15. package/core/index.d.ts +147 -5
  16. package/core/theming/_color-api-backwards-compatibility.scss +8 -15
  17. package/core/theming/_definition.scss +81 -75
  18. package/core/theming/_palettes.scss +1036 -0
  19. package/core/tokens/{m2/_index.scss → _m2-tokens.scss} +22 -22
  20. package/core/tokens/_m2-utils.scss +108 -0
  21. package/core/tokens/_m3-system.scss +128 -106
  22. package/core/tokens/_m3-tokens.scss +36 -282
  23. package/core/tokens/_m3-utils.scss +48 -0
  24. package/core/tokens/_token-utils.scss +67 -239
  25. package/core/tokens/m3/_index.scss +7 -0
  26. package/core/tokens/m3/_md-sys-color.scss +156 -0
  27. package/core/tokens/m3/_md-sys-elevation.scss +15 -0
  28. package/core/tokens/m3/_md-sys-motion.scss +35 -0
  29. package/core/tokens/m3/_md-sys-shape.scss +21 -0
  30. package/core/tokens/m3/_md-sys-state.scss +13 -0
  31. package/core/tokens/m3/_md-sys-typescale.scss +128 -0
  32. package/core/tokens/m3/_theme.scss +47 -0
  33. package/datetimepicker/_datetimepicker-theme.scss +29 -39
  34. package/datetimepicker/_m2-datetimepicker.scss +149 -0
  35. package/datetimepicker/_m3-datetimepicker.scss +81 -0
  36. package/datetimepicker/calendar-body.scss +31 -56
  37. package/datetimepicker/calendar.scss +43 -79
  38. package/datetimepicker/clock.scss +28 -47
  39. package/datetimepicker/datetimepicker-content.scss +9 -15
  40. package/datetimepicker/datetimepicker-toggle.scss +4 -9
  41. package/datetimepicker/index.d.ts +1208 -3
  42. package/datetimepicker/time-view.scss +26 -32
  43. package/dialog/index.d.ts +54 -5
  44. package/drawer/_drawer-theme.scss +25 -30
  45. package/{core/tokens/m2/mtx/_drawer.scss → drawer/_m2-drawer.scss} +9 -12
  46. package/drawer/_m3-drawer.scss +24 -0
  47. package/drawer/drawer-container.scss +13 -24
  48. package/drawer/index.d.ts +221 -3
  49. package/fesm2022/mtxAlert.mjs +7 -7
  50. package/fesm2022/mtxAlert.mjs.map +1 -1
  51. package/fesm2022/mtxButton.mjs +11 -11
  52. package/fesm2022/mtxButton.mjs.map +1 -1
  53. package/fesm2022/mtxCheckboxGroup.mjs +7 -7
  54. package/fesm2022/mtxColorpicker.mjs +21 -21
  55. package/fesm2022/mtxColorpicker.mjs.map +1 -1
  56. package/fesm2022/mtxColumnResize.mjs +232 -103
  57. package/fesm2022/mtxColumnResize.mjs.map +1 -1
  58. package/fesm2022/mtxCore.mjs +21 -21
  59. package/fesm2022/mtxDatetimepicker.mjs +63 -67
  60. package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
  61. package/fesm2022/mtxDialog.mjs +10 -10
  62. package/fesm2022/mtxDialog.mjs.map +1 -1
  63. package/fesm2022/mtxDrawer.mjs +10 -10
  64. package/fesm2022/mtxGrid.mjs +78 -77
  65. package/fesm2022/mtxGrid.mjs.map +1 -1
  66. package/fesm2022/mtxLoader.mjs +7 -7
  67. package/fesm2022/mtxPhotoviewer.mjs +7 -7
  68. package/fesm2022/mtxPopover.mjs +24 -25
  69. package/fesm2022/mtxPopover.mjs.map +1 -1
  70. package/fesm2022/mtxProgress.mjs +7 -7
  71. package/fesm2022/mtxSelect.mjs +54 -54
  72. package/fesm2022/mtxSelect.mjs.map +1 -1
  73. package/fesm2022/mtxSplit.mjs +10 -10
  74. package/fesm2022/mtxTooltip.mjs +13 -13
  75. package/fesm2022/mtxTooltip.mjs.map +1 -1
  76. package/grid/_grid-theme.scss +24 -34
  77. package/grid/_m2-grid.scss +66 -0
  78. package/grid/_m3-grid.scss +35 -0
  79. package/grid/column-menu.scss +6 -23
  80. package/grid/column-resize/_column-resize.scss +35 -30
  81. package/grid/grid.scss +41 -74
  82. package/grid/index.d.ts +799 -3
  83. package/index.d.ts +2 -5
  84. package/loader/_loader-theme.scss +26 -31
  85. package/{core/tokens/m2/mtx/_loader.scss → loader/_m2-loader.scss} +5 -10
  86. package/loader/_m3-loader.scss +20 -0
  87. package/loader/index.d.ts +43 -5
  88. package/loader/loader.scss +4 -5
  89. package/package.json +28 -28
  90. package/photoviewer/index.d.ts +26 -5
  91. package/{core/tokens/m2/mtx/_popover.scss → popover/_m2-popover.scss} +9 -12
  92. package/popover/_m3-popover.scss +26 -0
  93. package/popover/_popover-theme.scss +26 -31
  94. package/popover/index.d.ts +399 -3
  95. package/popover/popover.scss +23 -29
  96. package/prebuilt-themes/azure-blue.css +1 -1
  97. package/prebuilt-themes/cyan-orange.css +1 -1
  98. package/prebuilt-themes/deeppurple-amber.css +1 -1
  99. package/prebuilt-themes/indigo-pink.css +1 -1
  100. package/prebuilt-themes/magenta-violet.css +1 -1
  101. package/prebuilt-themes/pink-bluegrey.css +1 -1
  102. package/prebuilt-themes/purple-green.css +1 -1
  103. package/prebuilt-themes/rose-red.css +1 -1
  104. package/progress/_m2-progress.scss +53 -0
  105. package/progress/_m3-progress.scss +33 -0
  106. package/progress/_progress-theme.scss +22 -34
  107. package/progress/index.d.ts +35 -5
  108. package/progress/progress.scss +28 -43
  109. package/select/_m2-select.scss +79 -0
  110. package/select/_m3-select.scss +46 -0
  111. package/select/_select-theme.scss +27 -37
  112. package/select/index.d.ts +381 -3
  113. package/select/select.scss +189 -205
  114. package/{core/tokens/m2/mtx/_split.scss → split/_m2-split.scss} +6 -9
  115. package/split/_m3-split.scss +23 -0
  116. package/split/_split-theme.scss +31 -34
  117. package/split/index.d.ts +255 -3
  118. package/split/split.scss +8 -11
  119. package/tooltip/_m2-tooltip.scss +50 -0
  120. package/tooltip/_m3-tooltip.scss +28 -0
  121. package/tooltip/_tooltip-theme.scss +23 -47
  122. package/tooltip/index.d.ts +345 -3
  123. package/tooltip/tooltip.scss +11 -15
  124. package/alert/alert-module.d.ts +0 -8
  125. package/alert/alert.d.ts +0 -19
  126. package/alert/public-api.d.ts +0 -2
  127. package/button/button-loading.d.ts +0 -19
  128. package/button/button-module.d.ts +0 -10
  129. package/button/public-api.d.ts +0 -2
  130. package/checkbox-group/checkbox-group-module.d.ts +0 -11
  131. package/checkbox-group/checkbox-group.d.ts +0 -86
  132. package/checkbox-group/interfaces.d.ts +0 -17
  133. package/checkbox-group/public-api.d.ts +0 -3
  134. package/colorpicker/colorpicker-animations.d.ts +0 -9
  135. package/colorpicker/colorpicker-input.d.ts +0 -88
  136. package/colorpicker/colorpicker-module.d.ts +0 -15
  137. package/colorpicker/colorpicker-toggle.d.ts +0 -39
  138. package/colorpicker/colorpicker.d.ts +0 -140
  139. package/colorpicker/public-api.d.ts +0 -5
  140. package/column-resize/column-resize-directives/column-resize-flex.d.ts +0 -29
  141. package/column-resize/column-resize-directives/column-resize.d.ts +0 -29
  142. package/column-resize/column-resize-directives/constants.d.ts +0 -10
  143. package/column-resize/column-resize-module.d.ts +0 -12
  144. package/column-resize/column-resize-notifier.d.ts +0 -48
  145. package/column-resize/column-resize.d.ts +0 -39
  146. package/column-resize/column-size-store.d.ts +0 -12
  147. package/column-resize/event-dispatcher.d.ts +0 -35
  148. package/column-resize/overlay-handle.d.ts +0 -43
  149. package/column-resize/polyfill.d.ts +0 -9
  150. package/column-resize/public-api.d.ts +0 -12
  151. package/column-resize/resizable.d.ts +0 -63
  152. package/column-resize/resize-ref.d.ts +0 -17
  153. package/column-resize/resize-strategy.d.ts +0 -84
  154. package/column-resize/selectors.d.ts +0 -10
  155. package/core/datetime/datetime-adapter.d.ts +0 -45
  156. package/core/datetime/datetime-formats.d.ts +0 -22
  157. package/core/datetime/datetime.module.d.ts +0 -15
  158. package/core/datetime/index.d.ts +0 -5
  159. package/core/datetime/native-datetime-adapter.d.ts +0 -40
  160. package/core/datetime/native-datetime-formats.d.ts +0 -2
  161. package/core/pipes/index.d.ts +0 -3
  162. package/core/pipes/is-template-ref.pipe.d.ts +0 -7
  163. package/core/pipes/pipes.module.d.ts +0 -9
  164. package/core/pipes/to-observable.pipe.d.ts +0 -8
  165. package/core/public-api.d.ts +0 -2
  166. package/core/theming/_inspection.scss +0 -38
  167. package/core/theming/_validation.scss +0 -5
  168. package/core/tokens/_density.scss +0 -49
  169. package/core/tokens/_format-tokens.scss +0 -5
  170. package/core/tokens/_token-definition.scss +0 -271
  171. package/core/tokens/m2/mdc/_plain-tooltip.scss +0 -63
  172. package/core/tokens/m2/mtx/_alert.scss +0 -62
  173. package/core/tokens/m2/mtx/_datetimepicker.scss +0 -152
  174. package/core/tokens/m2/mtx/_grid.scss +0 -69
  175. package/core/tokens/m2/mtx/_progress.scss +0 -56
  176. package/core/tokens/m2/mtx/_select.scss +0 -82
  177. package/core/tokens/m3/definitions/_index.scss +0 -9
  178. package/core/tokens/m3/definitions/_md-comp-plain-tooltip.scss +0 -51
  179. package/core/tokens/m3/definitions/_md-ref-palette.scss +0 -100
  180. package/core/tokens/m3/definitions/_md-ref-typeface.scss +0 -14
  181. package/core/tokens/m3/definitions/_md-sys-color.scss +0 -126
  182. package/core/tokens/m3/definitions/_md-sys-elevation.scss +0 -15
  183. package/core/tokens/m3/definitions/_md-sys-motion.scss +0 -46
  184. package/core/tokens/m3/definitions/_md-sys-shape.scss +0 -24
  185. package/core/tokens/m3/definitions/_md-sys-state.scss +0 -13
  186. package/core/tokens/m3/definitions/_md-sys-typescale.scss +0 -308
  187. package/core/tokens/m3/index.scss +0 -47
  188. package/core/tokens/m3/mdc/_plain-tooltip.scss +0 -15
  189. package/core/tokens/m3/mtx/_alert.scss +0 -41
  190. package/core/tokens/m3/mtx/_colorpicker.scss +0 -19
  191. package/core/tokens/m3/mtx/_datetimepicker.scss +0 -140
  192. package/core/tokens/m3/mtx/_drawer.scss +0 -22
  193. package/core/tokens/m3/mtx/_grid.scss +0 -32
  194. package/core/tokens/m3/mtx/_loader.scss +0 -22
  195. package/core/tokens/m3/mtx/_popover.scss +0 -25
  196. package/core/tokens/m3/mtx/_progress.scss +0 -32
  197. package/core/tokens/m3/mtx/_select.scss +0 -76
  198. package/core/tokens/m3/mtx/_split.scss +0 -30
  199. package/datetimepicker/calendar-body.d.ts +0 -66
  200. package/datetimepicker/calendar.d.ts +0 -157
  201. package/datetimepicker/clock.d.ts +0 -101
  202. package/datetimepicker/datetimepicker-actions.d.ts +0 -36
  203. package/datetimepicker/datetimepicker-animations.d.ts +0 -11
  204. package/datetimepicker/datetimepicker-errors.d.ts +0 -2
  205. package/datetimepicker/datetimepicker-filtertype.d.ts +0 -5
  206. package/datetimepicker/datetimepicker-input.d.ts +0 -105
  207. package/datetimepicker/datetimepicker-intl.d.ts +0 -53
  208. package/datetimepicker/datetimepicker-module.d.ts +0 -22
  209. package/datetimepicker/datetimepicker-toggle.d.ts +0 -42
  210. package/datetimepicker/datetimepicker-types.d.ts +0 -6
  211. package/datetimepicker/datetimepicker.d.ts +0 -274
  212. package/datetimepicker/month-view.d.ts +0 -80
  213. package/datetimepicker/multi-year-view.d.ts +0 -86
  214. package/datetimepicker/public-api.d.ts +0 -16
  215. package/datetimepicker/time-view.d.ts +0 -147
  216. package/datetimepicker/year-view.d.ts +0 -68
  217. package/dialog/dialog-config.d.ts +0 -17
  218. package/dialog/dialog-container.d.ts +0 -11
  219. package/dialog/dialog-module.d.ts +0 -12
  220. package/dialog/dialog.d.ts +0 -15
  221. package/dialog/public-api.d.ts +0 -4
  222. package/drawer/drawer-animations.d.ts +0 -8
  223. package/drawer/drawer-config.d.ts +0 -63
  224. package/drawer/drawer-container.d.ts +0 -35
  225. package/drawer/drawer-module.d.ts +0 -10
  226. package/drawer/drawer-ref.d.ts +0 -53
  227. package/drawer/drawer.d.ts +0 -59
  228. package/drawer/public-api.d.ts +0 -6
  229. package/grid/cell.d.ts +0 -32
  230. package/grid/column-menu.d.ts +0 -39
  231. package/grid/column-resize/column-resize-directives/column-resize-flex.d.ts +0 -24
  232. package/grid/column-resize/column-resize-directives/column-resize.d.ts +0 -24
  233. package/grid/column-resize/column-resize-directives/common.d.ts +0 -13
  234. package/grid/column-resize/column-resize-module.d.ts +0 -17
  235. package/grid/column-resize/index.d.ts +0 -7
  236. package/grid/column-resize/overlay-handle.d.ts +0 -32
  237. package/grid/column-resize/resizable-directives/common.d.ts +0 -19
  238. package/grid/column-resize/resizable-directives/resizable.d.ts +0 -32
  239. package/grid/column-resize/resize-strategy.d.ts +0 -20
  240. package/grid/expansion-toggle.d.ts +0 -17
  241. package/grid/grid-module.d.ts +0 -31
  242. package/grid/grid-pipes.d.ts +0 -39
  243. package/grid/grid-utils.d.ts +0 -33
  244. package/grid/grid.d.ts +0 -268
  245. package/grid/interfaces.d.ts +0 -180
  246. package/grid/public-api.d.ts +0 -17
  247. package/grid/selectable-cell.d.ts +0 -16
  248. package/loader/loader-module.d.ts +0 -10
  249. package/loader/loader.d.ts +0 -30
  250. package/loader/public-api.d.ts +0 -2
  251. package/photoviewer/photoviewer-module.d.ts +0 -7
  252. package/photoviewer/photoviewer.d.ts +0 -17
  253. package/photoviewer/public-api.d.ts +0 -2
  254. package/popover/popover-animations.d.ts +0 -11
  255. package/popover/popover-content.d.ts +0 -43
  256. package/popover/popover-errors.d.ts +0 -14
  257. package/popover/popover-interfaces.d.ts +0 -50
  258. package/popover/popover-module.d.ts +0 -13
  259. package/popover/popover-target.d.ts +0 -7
  260. package/popover/popover-trigger.d.ts +0 -132
  261. package/popover/popover-types.d.ts +0 -10
  262. package/popover/popover.d.ts +0 -147
  263. package/popover/public-api.d.ts +0 -8
  264. package/progress/progress-module.d.ts +0 -8
  265. package/progress/progress.d.ts +0 -24
  266. package/progress/public-api.d.ts +0 -2
  267. package/public-api.d.ts +0 -2
  268. package/select/option.d.ts +0 -21
  269. package/select/public-api.d.ts +0 -5
  270. package/select/select-intl.d.ts +0 -18
  271. package/select/select-module.d.ts +0 -12
  272. package/select/select.d.ts +0 -270
  273. package/select/templates.d.ts +0 -67
  274. package/split/interfaces.d.ts +0 -52
  275. package/split/public-api.d.ts +0 -5
  276. package/split/split-module.d.ts +0 -9
  277. package/split/split-pane.d.ts +0 -53
  278. package/split/split.d.ts +0 -133
  279. package/split/utils.d.ts +0 -13
  280. package/tooltip/public-api.d.ts +0 -3
  281. package/tooltip/tooltip-animations.d.ts +0 -9
  282. package/tooltip/tooltip-module.d.ts +0 -13
  283. package/tooltip/tooltip.d.ts +0 -321
@@ -1,9 +1,10 @@
1
1
  @use 'sass:math';
2
2
  @use '@angular/cdk';
3
-
4
3
  @use '../core/style/button-common';
5
4
  @use '../core/tokens/token-utils';
6
- @use '../core/tokens/m2/mtx/datetimepicker' as tokens-mtx-datetimepicker;
5
+ @use './m3-datetimepicker';
6
+
7
+ $fallbacks: m3-datetimepicker.get-tokens();
7
8
 
8
9
  $calendar-body-label-padding-start: 5% !default;
9
10
  // We don't want the label to jump around when we switch between month and year views, so we use
@@ -21,13 +22,11 @@ $calendar-body-cell-radius: 999px !default;
21
22
  $calendar-body-min-size: 7 * $calendar-body-cell-min-size !default;
22
23
  $calendar-body-cell-content-size: 100% - $calendar-body-cell-content-margin * 2 !default;
23
24
 
24
- $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token-slots();
25
-
26
25
  // Styles for a highlighted calendar cell (e.g. hovered or focused).
27
26
  @mixin _highlighted-cell($token-name) {
28
- &>.mtx-calendar-body-cell-content {
27
+ & > .mtx-calendar-body-cell-content {
29
28
  @include _unselected-cell {
30
- @include token-utils.create-token-slot(background-color, $token-name);
29
+ background-color: token-utils.slot($token-name, $fallbacks);
31
30
  }
32
31
  }
33
32
  }
@@ -45,9 +44,7 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
45
44
 
46
45
  .mtx-calendar-body-today {
47
46
  @include _unselected-cell {
48
- @include token-utils.use-tokens($_tokens...) {
49
- @include token-utils.create-token-slot(border-color, calendar-date-today-outline-color);
50
- }
47
+ border-color: token-utils.slot(datetimepicker-calendar-date-today-outline-color, $fallbacks);
51
48
  }
52
49
  }
53
50
 
@@ -57,12 +54,9 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
57
54
  text-align: left;
58
55
  padding-left: $calendar-body-label-side-padding;
59
56
  padding-right: $calendar-body-label-side-padding;
60
-
61
- @include token-utils.use-tokens($_tokens...) {
62
- @include token-utils.create-token-slot(font-size, calendar-body-label-text-size);
63
- @include token-utils.create-token-slot(font-weight, calendar-body-label-text-weight);
64
- @include token-utils.create-token-slot(color, calendar-body-label-text-color);
65
- }
57
+ font-size: token-utils.slot(datetimepicker-calendar-body-label-text-size, $fallbacks);
58
+ font-weight: token-utils.slot(datetimepicker-calendar-body-label-text-weight, $fallbacks);
59
+ color: token-utils.slot(datetimepicker-calendar-body-label-text-color, $fallbacks);
66
60
 
67
61
  [dir='rtl'] & {
68
62
  text-align: right;
@@ -73,10 +67,7 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
73
67
  height: 0;
74
68
  line-height: 0;
75
69
  font-weight: 400;
76
-
77
- @include token-utils.use-tokens($_tokens...) {
78
- @include token-utils.create-token-slot(color, calendar-body-week-number-text-color);
79
- }
70
+ color: token-utils.slot(datetimepicker-calendar-body-week-number-text-color, $fallbacks);
80
71
  }
81
72
 
82
73
  .mtx-calendar-body-cell-container {
@@ -94,14 +85,10 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
94
85
  background: none;
95
86
  text-align: center;
96
87
  outline: none;
97
- font-family: inherit;
98
88
  margin: 0;
99
-
100
89
  // Needs to be repeated here in order to override the user agent styles.
101
- @include token-utils.use-tokens($_tokens...) {
102
- @include token-utils.create-token-slot(font-family, calendar-text-font);
103
- @include token-utils.create-token-slot(font-size, calendar-text-size);
104
- }
90
+ font-family: token-utils.slot(datetimepicker-calendar-text-font, $fallbacks);
91
+ font-size: token-utils.slot(datetimepicker-calendar-text-size, $fallbacks);
105
92
 
106
93
  @include button-common.reset();
107
94
  }
@@ -110,14 +97,12 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
110
97
  cursor: default;
111
98
  pointer-events: none;
112
99
 
113
- @include token-utils.use-tokens($_tokens...) {
114
- >.mtx-calendar-body-cell-content:not(.mtx-calendar-body-selected) {
115
- @include token-utils.create-token-slot(color, calendar-date-disabled-state-text-color);
116
- }
100
+ > .mtx-calendar-body-cell-content:not(.mtx-calendar-body-selected) {
101
+ color: token-utils.slot(datetimepicker-calendar-date-disabled-state-text-color, $fallbacks);
102
+ }
117
103
 
118
- >.mtx-calendar-body-today:not(.mtx-calendar-body-selected) {
119
- @include token-utils.create-token-slot(border-color, calendar-date-disabled-state-text-color);
120
- }
104
+ > .mtx-calendar-body-today:not(.mtx-calendar-body-selected) {
105
+ border-color: token-utils.slot(datetimepicker-calendar-date-disabled-state-text-color, $fallbacks);
121
106
  }
122
107
 
123
108
  // Fade out the disabled cells so that they can be distinguished from the enabled ones. Note that
@@ -146,11 +131,8 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
146
131
 
147
132
  // Choosing a value clearly larger than the height ensures we get the correct capsule shape.
148
133
  border-radius: $calendar-body-cell-radius;
149
-
150
- @include token-utils.use-tokens($_tokens...) {
151
- @include token-utils.create-token-slot(color, calendar-date-text-color);
152
- @include token-utils.create-token-slot(border-color, calendar-date-outline-color);
153
- }
134
+ color: token-utils.slot(datetimepicker-calendar-date-text-color, $fallbacks);
135
+ border-color: token-utils.slot(datetimepicker-calendar-date-outline-color, $fallbacks);
154
136
 
155
137
  // Increase specificity because focus indicator styles are part of the `mat-core` mixin and can
156
138
  // potentially overwrite the absolute position of the container.
@@ -164,35 +146,28 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
164
146
  }
165
147
 
166
148
  .mtx-calendar-body-active {
167
- @include token-utils.use-tokens($_tokens...) {
168
- .cdk-keyboard-focused &,
169
- .cdk-program-focused & {
170
- @include _highlighted-cell(calendar-date-focus-state-background-color);
171
- }
149
+ .cdk-keyboard-focused &,
150
+ .cdk-program-focused & {
151
+ @include _highlighted-cell(datetimepicker-calendar-date-focus-state-background-color);
172
152
  }
173
153
  }
174
154
 
175
155
  @media (hover: hover) {
176
156
  .mtx-calendar-body-cell:not(.mtx-calendar-body-disabled):hover {
177
- @include token-utils.use-tokens($_tokens...) {
178
- @include _highlighted-cell(calendar-date-hover-state-background-color);
179
- }
157
+ @include _highlighted-cell(datetimepicker-calendar-date-hover-state-background-color);
180
158
  }
181
159
  }
182
160
 
183
161
  .mtx-calendar-body-selected {
184
- @include token-utils.use-tokens($_tokens...) {
185
- @include token-utils.create-token-slot(background-color, calendar-date-selected-state-background-color);
186
- @include token-utils.create-token-slot(color, calendar-date-selected-state-text-color);
187
-
188
- .mtx-calendar-body-disabled>& {
189
- @include token-utils.create-token-slot(background-color, calendar-date-selected-disabled-state-background-color);
190
- }
162
+ background-color: token-utils.slot(datetimepicker-calendar-date-selected-state-background-color, $fallbacks);
163
+ color: token-utils.slot(datetimepicker-calendar-date-selected-state-text-color, $fallbacks);
191
164
 
192
- &.mtx-calendar-body-today {
193
- $shadow-color: token-utils.get-token-variable(calendar-date-today-selected-state-outline-color);
165
+ .mtx-calendar-body-disabled > & {
166
+ background-color: token-utils.slot(datetimepicker-calendar-date-selected-disabled-state-background-color, $fallbacks);
167
+ }
194
168
 
195
- box-shadow: inset 0 0 0 1px #{$shadow-color};
196
- }
169
+ &.mtx-calendar-body-today {
170
+ box-shadow: inset 0 0 0 1px
171
+ token-utils.slot(datetimepicker-calendar-date-today-selected-state-outline-color, $fallbacks);
197
172
  }
198
173
  }
@@ -1,5 +1,7 @@
1
1
  @use '../core/tokens/token-utils';
2
- @use '../core/tokens/m2/mtx/datetimepicker' as tokens-mtx-datetimepicker;
2
+ @use './m3-datetimepicker';
3
+
4
+ $fallbacks: m3-datetimepicker.get-tokens();
3
5
 
4
6
  $calendar-padding: 8px !default;
5
7
 
@@ -17,7 +19,8 @@ $calendar-next-icon-transform: translateX(-2px) rotate(45deg);
17
19
 
18
20
  $landscape-calendar-header-width: 144px;
19
21
 
20
- $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token-slots();
22
+ $panel-corner: token-utils.slot(datetimepicker-container-shape, $fallbacks);
23
+ $panel-divider: token-utils.slot(datetimepicker-calendar-header-divider-color, $fallbacks);
21
24
 
22
25
  @mixin landscape-calendar-header {
23
26
  .mtx-calendar {
@@ -28,32 +31,18 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
28
31
  min-width: $landscape-calendar-header-width;
29
32
  padding: 16px 8px;
30
33
  border-bottom-width: 0;
34
+ border-radius: $panel-corner 0 0 $panel-corner;
35
+ border-right: 1px solid $panel-divider;
31
36
 
32
- @include token-utils.use-tokens($_tokens...) {
33
- border-top-right-radius: 0;
34
- border-bottom-right-radius: 0;
35
-
36
- $border-color: token-utils.get-token-variable(calendar-header-divider-color);
37
-
38
- border-right: 1px solid $border-color;
39
-
40
- @include token-utils.create-token-slot(border-top-left-radius, container-shape);
41
- @include token-utils.create-token-slot(border-bottom-left-radius, container-shape);
42
-
43
- [dir='rtl'] & {
44
- border-top-left-radius: 0;
45
- border-bottom-left-radius: 0;
46
- border-right-width: 0;
47
- border-left: 1px solid $border-color;
48
-
49
- @include token-utils.create-token-slot(border-top-right-radius, container-shape);
50
- @include token-utils.create-token-slot(border-bottom-right-radius, container-shape);
51
- }
37
+ [dir='rtl'] & {
38
+ border-radius: 0 $panel-corner $panel-corner 0;
39
+ border-right-width: 0;
40
+ border-left: 1px solid $panel-divider;
52
41
  }
53
42
  }
54
43
 
55
- .mtx-calendar-header-year+.mtx-calendar-header-date-time,
56
- .mtx-calendar-header-date+.mtx-calendar-header-time {
44
+ .mtx-calendar-header-year + .mtx-calendar-header-date-time,
45
+ .mtx-calendar-header-date + .mtx-calendar-header-time {
57
46
  margin-top: 4px;
58
47
  }
59
48
 
@@ -81,7 +70,7 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
81
70
  .mtx-calendar-header-ampm {
82
71
  padding: 4px;
83
72
 
84
- +.mtx-calendar-header-ampm {
73
+ + .mtx-calendar-header-ampm {
85
74
  margin: 0 8px;
86
75
  }
87
76
  }
@@ -102,24 +91,17 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
102
91
  width: $landscape-calendar-header-width;
103
92
  height: 100%;
104
93
  content: '';
94
+ border-right: 1px solid $panel-divider;
95
+ background-color: token-utils.slot(datetimepicker-calendar-header-background-color, $fallbacks);
96
+ border-bottom-left-radius: $panel-corner;
105
97
 
106
- @include token-utils.use-tokens($_tokens...) {
107
- $border-color: token-utils.get-token-variable(calendar-header-divider-color);
108
-
109
- border-right: 1px solid $border-color;
110
-
111
- @include token-utils.create-token-slot(background-color, calendar-header-background-color);
112
- @include token-utils.create-token-slot(border-bottom-left-radius, container-shape);
113
-
114
- [dir='rtl'] & {
115
- left: auto;
116
- right: 0;
117
- border-right-width: 0;
118
- border-left: 1px solid $border-color;
119
- border-bottom-left-radius: 0;
120
-
121
- @include token-utils.create-token-slot(border-bottom-right-radius, container-shape);
122
- }
98
+ [dir='rtl'] & {
99
+ left: auto;
100
+ right: 0;
101
+ border-right-width: 0;
102
+ border-left: 1px solid $panel-divider;
103
+ border-bottom-left-radius: 0;
104
+ border-bottom-right-radius: $panel-corner;
123
105
  }
124
106
  }
125
107
  }
@@ -127,29 +109,20 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
127
109
  .mtx-calendar {
128
110
  display: block;
129
111
  outline: none;
130
-
131
- @include token-utils.use-tokens($_tokens...) {
132
- @include token-utils.create-token-slot(font-family, calendar-text-font);
133
- @include token-utils.create-token-slot(font-size, calendar-text-size);
134
- }
112
+ font-family: token-utils.slot(datetimepicker-calendar-text-font, $fallbacks);
113
+ font-size: token-utils.slot(datetimepicker-calendar-text-size, $fallbacks);
135
114
  }
136
115
 
137
116
  .mtx-calendar-header {
117
+ --mat-button-text-container-shape: #{token-utils.slot(datetimepicker-selector-container-shape, $fallbacks)};
118
+
138
119
  box-sizing: border-box;
139
120
  padding: 8px;
140
-
141
- @include token-utils.use-tokens($_tokens...) {
142
- $border-color: token-utils.get-token-variable(calendar-header-divider-color);
143
-
144
- border-bottom: 1px solid $border-color;
145
-
146
- @include token-utils.create-token-slot(border-top-left-radius, container-shape);
147
- @include token-utils.create-token-slot(border-top-right-radius, container-shape);
148
- @include token-utils.create-token-slot(background-color, calendar-header-background-color);
149
- @include token-utils.create-token-slot(color, calendar-header-text-color);
150
-
151
- @include token-utils.create-token-slot(--mdc-text-button-container-shape, selector-container-shape);
152
- }
121
+ border-bottom: 1px solid $panel-divider;
122
+ border-top-left-radius: $panel-corner;
123
+ border-top-right-radius: $panel-corner;
124
+ background-color: token-utils.slot(datetimepicker-calendar-header-background-color, $fallbacks);
125
+ color: token-utils.slot(datetimepicker-calendar-header-text-color, $fallbacks);
153
126
 
154
127
  .mtx-calendar-header-year,
155
128
  .mtx-calendar-header-date,
@@ -166,7 +139,7 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
166
139
  font-weight: inherit;
167
140
  letter-spacing: normal;
168
141
  white-space: normal;
169
- word-break: break-word;
142
+ overflow-wrap: anywhere;
170
143
 
171
144
  .mat-mdc-button-touch-target {
172
145
  height: 100%;
@@ -189,7 +162,7 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
189
162
  .mtx-calendar-header-minutes,
190
163
  .mtx-calendar-header-ampm {
191
164
  &:not(.active) {
192
- opacity: .6;
165
+ opacity: 0.6;
193
166
  }
194
167
 
195
168
  &.not-clickable {
@@ -201,7 +174,7 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
201
174
  display: inline-flex;
202
175
 
203
176
  &:not(.active) {
204
- opacity: .6;
177
+ opacity: 0.6;
205
178
 
206
179
  .mtx-calendar-header-hours,
207
180
  .mtx-calendar-header-minutes,
@@ -251,7 +224,7 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
251
224
  margin: 0 $calendar-controls-side-margin;
252
225
 
253
226
  .mat-icon-button:hover .mat-button-focus-overlay {
254
- opacity: .04;
227
+ opacity: 0.04;
255
228
  }
256
229
  }
257
230
 
@@ -263,21 +236,15 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
263
236
  border: 0;
264
237
  background: transparent;
265
238
  box-sizing: border-box;
266
-
267
- @include token-utils.use-tokens($_tokens...) {
268
- @include token-utils.create-token-slot(font-size, calendar-period-button-text-size);
269
- @include token-utils.create-token-slot(font-weight, calendar-period-button-text-weight);
270
- }
239
+ font-size: token-utils.slot(datetimepicker-calendar-period-button-text-size, $fallbacks);
240
+ font-weight: token-utils.slot(datetimepicker-calendar-period-button-text-weight, $fallbacks);
271
241
  }
272
242
 
273
243
  .mtx-calendar-previous-button,
274
244
  .mtx-calendar-next-button {
275
245
  &.disabled {
276
246
  pointer-events: none;
277
-
278
- @include token-utils.use-tokens($_tokens...) {
279
- @include token-utils.create-token-slot(color, calendar-date-disabled-state-text-color);
280
- }
247
+ color: token-utils.slot(datetimepicker-calendar-date-disabled-state-text-color, $fallbacks);
281
248
  }
282
249
 
283
250
  svg {
@@ -299,10 +266,7 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
299
266
  .mtx-calendar-table-header th {
300
267
  text-align: center;
301
268
  padding: $calendar-padding 0;
302
-
303
- @include token-utils.use-tokens($_tokens...) {
304
- @include token-utils.create-token-slot(color, calendar-table-header-text-color);
305
- @include token-utils.create-token-slot(font-size, calendar-table-header-text-size);
306
- @include token-utils.create-token-slot(font-weight, calendar-table-header-text-weight);
307
- }
269
+ color: token-utils.slot(datetimepicker-calendar-table-header-text-color, $fallbacks);
270
+ font-size: token-utils.slot(datetimepicker-calendar-table-header-text-size, $fallbacks);
271
+ font-weight: token-utils.slot(datetimepicker-calendar-table-header-text-weight, $fallbacks);
308
272
  }
@@ -1,12 +1,12 @@
1
1
  @use '../core/tokens/token-utils';
2
- @use '../core/tokens/m2/mtx/datetimepicker' as tokens-mtx-datetimepicker;
2
+ @use './m3-datetimepicker';
3
+
4
+ $fallbacks: m3-datetimepicker.get-tokens();
3
5
 
4
6
  $clock-min-size: 224px !default;
5
7
  $clock-margin: 12px !default;
6
8
  $clock-cell-size: 14.1666% !default;
7
9
 
8
- $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token-slots();
9
-
10
10
  .mtx-clock {
11
11
  position: relative;
12
12
  display: block;
@@ -15,10 +15,7 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
15
15
  box-sizing: border-box;
16
16
  user-select: none;
17
17
  touch-action: none;
18
-
19
- @include token-utils.use-tokens($_tokens...) {
20
- @include token-utils.create-token-slot(font-size, clock-text-size);
21
- }
18
+ font-size: token-utils.slot(datetimepicker-clock-text-size, $fallbacks);
22
19
  }
23
20
 
24
21
  .mtx-clock-wrapper {
@@ -27,10 +24,7 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
27
24
  height: 0;
28
25
  padding-top: 100%;
29
26
  border-radius: 50%;
30
-
31
- @include token-utils.use-tokens($_tokens...) {
32
- @include token-utils.create-token-slot(background-color, clock-dial-background-color);
33
- }
27
+ background-color: token-utils.slot(datetimepicker-clock-dial-background-color, $fallbacks);
34
28
  }
35
29
 
36
30
  .mtx-clock-center {
@@ -41,10 +35,7 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
41
35
  height: 3%;
42
36
  margin: -1.5%;
43
37
  border-radius: 50%;
44
-
45
- @include token-utils.use-tokens($_tokens...) {
46
- @include token-utils.create-token-slot(background-color, clock-hand-background-color);
47
- }
38
+ background-color: token-utils.slot(datetimepicker-clock-hand-background-color, $fallbacks);
48
39
  }
49
40
 
50
41
  .mtx-clock-hand {
@@ -53,23 +44,18 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
53
44
  width: 2px;
54
45
  margin: 0 auto;
55
46
  transform-origin: bottom;
56
-
57
- @include token-utils.use-tokens($_tokens...) {
58
- @include token-utils.create-token-slot(background-color, clock-hand-background-color);
59
-
60
- &::before {
61
- content: '';
62
- position: absolute;
63
- top: -4px;
64
- left: -3px; // 8px - 2px / 2
65
- width: 8px;
66
- height: 8px;
67
- border-radius: 50%;
68
-
69
- @include token-utils.create-token-slot(background-color, clock-hand-background-color);
70
- }
47
+ background-color: token-utils.slot(datetimepicker-clock-hand-background-color, $fallbacks);
48
+
49
+ &::before {
50
+ content: '';
51
+ position: absolute;
52
+ top: -4px;
53
+ left: -3px; // 8px - 2px / 2
54
+ width: 8px;
55
+ height: 8px;
56
+ border-radius: 50%;
57
+ background-color: token-utils.slot(datetimepicker-clock-hand-background-color, $fallbacks);
71
58
  }
72
-
73
59
  }
74
60
 
75
61
  .mtx-clock-hours,
@@ -105,24 +91,19 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
105
91
  border-radius: 50%;
106
92
  align-items: center;
107
93
  cursor: pointer;
94
+ color: token-utils.slot(datetimepicker-clock-cell-text-color, $fallbacks);
108
95
 
109
- @include token-utils.use-tokens($_tokens...) {
110
- @include token-utils.create-token-slot(color, clock-cell-text-color);
111
-
112
- &.mtx-clock-cell-selected {
113
- color: white;
114
-
115
- @include token-utils.create-token-slot(background-color, clock-hand-background-color);
116
- }
117
-
118
- &:not(.mtx-clock-cell-selected, .mtx-clock-cell-disabled):hover {
119
- @include token-utils.create-token-slot(background-color, clock-cell-hover-state-background-color);
120
- }
96
+ &.mtx-clock-cell-selected {
97
+ color: white;
98
+ background-color: token-utils.slot(datetimepicker-clock-hand-background-color, $fallbacks);
99
+ }
121
100
 
122
- &.mtx-clock-cell-disabled {
123
- pointer-events: none;
101
+ &:not(.mtx-clock-cell-selected, .mtx-clock-cell-disabled):hover {
102
+ background-color: token-utils.slot(datetimepicker-clock-cell-hover-state-background-color, $fallbacks);
103
+ }
124
104
 
125
- @include token-utils.create-token-slot(color, clock-cell-disabled-state-text-color);
126
- }
105
+ &.mtx-clock-cell-disabled {
106
+ pointer-events: none;
107
+ color: token-utils.slot(datetimepicker-clock-cell-disabled-state-text-color, $fallbacks);
127
108
  }
128
109
  }
@@ -1,7 +1,9 @@
1
1
  /* stylelint-disable keyframes-name-pattern */
2
2
  @use '@angular/material' as mat;
3
3
  @use '../core/tokens/token-utils';
4
- @use '../core/tokens/m2/mtx/datetimepicker' as tokens-mtx-datetimepicker;
4
+ @use './m3-datetimepicker';
5
+
6
+ $fallbacks: m3-datetimepicker.get-tokens();
5
7
 
6
8
  $calendar-padding: 8px;
7
9
  $non-touch-calendar-cell-size: 40px;
@@ -84,14 +86,10 @@ $touch-max-height: 850px;
84
86
 
85
87
  .mtx-datetimepicker-content {
86
88
  display: block;
87
-
88
- @include token-utils.use-tokens(tokens-mtx-datetimepicker.$prefix,
89
- tokens-mtx-datetimepicker.get-token-slots()) {
90
- @include token-utils.create-token-slot(border-radius, container-shape);
91
- @include token-utils.create-token-slot(background-color, container-background-color);
92
- @include token-utils.create-token-slot(box-shadow, container-elevation-shadow);
93
- @include token-utils.create-token-slot(color, container-text-color);
94
- }
89
+ border-radius: token-utils.slot(datetimepicker-container-shape, $fallbacks);
90
+ background-color: token-utils.slot(datetimepicker-container-background-color, $fallbacks);
91
+ box-shadow: token-utils.slot(datetimepicker-container-elevation-shadow, $fallbacks);
92
+ color: token-utils.slot(datetimepicker-container-text-color, $fallbacks);
95
93
 
96
94
  &.mtx-datetimepicker-content-animations-enabled {
97
95
  animation: _mtx-datetimepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1);
@@ -147,12 +145,8 @@ $touch-max-height: 850px;
147
145
  .mtx-datetimepicker-content-touch {
148
146
  display: block;
149
147
  max-height: 84vh;
150
-
151
- @include token-utils.use-tokens(tokens-mtx-datetimepicker.$prefix,
152
- tokens-mtx-datetimepicker.get-token-slots()) {
153
- @include token-utils.create-token-slot(box-shadow, container-touch-elevation-shadow);
154
- @include token-utils.create-token-slot(border-radius, container-touch-shape);
155
- }
148
+ box-shadow: token-utils.slot(datetimepicker-container-touch-elevation-shadow, $fallbacks);
149
+ border-radius: token-utils.slot(datetimepicker-container-touch-shape, $fallbacks);
156
150
 
157
151
  // Allows for the screen reader close button to be seen in touch UI mode.
158
152
  position: relative;
@@ -1,23 +1,18 @@
1
1
  @use '@angular/cdk';
2
2
  @use '../core/tokens/token-utils';
3
- @use '../core/tokens/m2/mtx/datetimepicker' as tokens-mtx-datetimepicker;
3
+ @use './m3-datetimepicker';
4
4
 
5
- $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token-slots();
5
+ $fallbacks: m3-datetimepicker.get-tokens();
6
6
 
7
7
  // We support the case where the form field is disabled, but the datetimepicker is not.
8
8
  // MDC sets `pointer-events: none` on disabled form fields which prevents clicks on the toggle.
9
9
  .mtx-datetimepicker-toggle {
10
10
  pointer-events: auto;
11
-
12
- @include token-utils.use-tokens($_tokens...) {
13
- @include token-utils.create-token-slot(color, toggle-icon-color);
14
- }
11
+ color: token-utils.slot(datetimepicker-toggle-icon-color, $fallbacks);
15
12
  }
16
13
 
17
14
  .mtx-datetimepicker-toggle-active {
18
- @include token-utils.use-tokens($_tokens...) {
19
- @include token-utils.create-token-slot(color, toggle-active-state-icon-color);
20
- }
15
+ color: token-utils.slot(datetimepicker-toggle-active-state-icon-color, $fallbacks);
21
16
  }
22
17
 
23
18
  @include cdk.high-contrast(active, off) {