@ng-matero/extensions 18.4.1 → 19.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 (286) hide show
  1. package/_index.scss +3 -1
  2. package/alert/_alert-theme.scss +19 -8
  3. package/alert/alert.d.ts +1 -2
  4. package/button/button-loading.d.ts +1 -2
  5. package/checkbox-group/checkbox-group.d.ts +12 -4
  6. package/colorpicker/_colorpicker-theme.scss +19 -8
  7. package/colorpicker/colorpicker-input.d.ts +1 -3
  8. package/colorpicker/colorpicker-toggle.d.ts +3 -3
  9. package/colorpicker/colorpicker.d.ts +4 -7
  10. package/column-resize/column-resize-directives/column-resize-flex.d.ts +2 -1
  11. package/column-resize/column-resize-directives/column-resize.d.ts +2 -1
  12. package/column-resize/column-resize-notifier.d.ts +0 -1
  13. package/column-resize/column-resize.d.ts +1 -1
  14. package/column-resize/event-dispatcher.d.ts +0 -9
  15. package/column-resize/overlay-handle.d.ts +1 -1
  16. package/column-resize/resizable.d.ts +1 -1
  17. package/column-resize/resize-strategy.d.ts +4 -4
  18. package/core/datetime/datetime-adapter.d.ts +1 -2
  19. package/core/datetime/native-datetime-adapter.d.ts +3 -3
  20. package/core/style/_button-common.scss +18 -0
  21. package/core/theming/_config-validation.scss +4 -4
  22. package/core/theming/_definition.scss +12 -2
  23. package/core/theming/prebuilt/azure-blue.scss +10 -22
  24. package/core/theming/prebuilt/cyan-orange.scss +10 -22
  25. package/core/theming/prebuilt/magenta-violet.scss +10 -22
  26. package/core/theming/prebuilt/rose-red.scss +10 -22
  27. package/core/tokens/_m3-system.scss +273 -0
  28. package/core/tokens/_m3-tokens.scss +8 -151
  29. package/core/tokens/_token-utils.scss +102 -43
  30. package/core/tokens/m2/_index.scss +2 -0
  31. package/core/tokens/m3/definitions/_index.scss +1 -0
  32. package/core/tokens/m3/definitions/_md-comp-plain-tooltip.scss +51 -0
  33. package/core/tokens/m3/index.scss +2 -0
  34. package/core/tokens/m3/mdc/_plain-tooltip.scss +15 -0
  35. package/core/tokens/m3/mtx/_alert.scss +14 -14
  36. package/core/tokens/m3/mtx/_colorpicker.scss +2 -2
  37. package/core/tokens/m3/mtx/_datetimepicker.scss +2 -2
  38. package/core/tokens/m3/mtx/_drawer.scss +2 -2
  39. package/core/tokens/m3/mtx/_grid.scss +2 -2
  40. package/core/tokens/m3/mtx/_loader.scss +2 -2
  41. package/core/tokens/m3/mtx/_popover.scss +2 -2
  42. package/core/tokens/m3/mtx/_progress.scss +2 -2
  43. package/core/tokens/m3/mtx/_select.scss +2 -2
  44. package/core/tokens/m3/mtx/_split.scss +2 -2
  45. package/datetimepicker/_datetimepicker-theme.scss +23 -10
  46. package/datetimepicker/calendar-body.d.ts +26 -4
  47. package/datetimepicker/calendar-body.scss +58 -9
  48. package/datetimepicker/calendar.d.ts +31 -31
  49. package/datetimepicker/clock.d.ts +11 -5
  50. package/datetimepicker/datetimepicker-actions.d.ts +9 -5
  51. package/datetimepicker/datetimepicker-content.scss +15 -0
  52. package/datetimepicker/datetimepicker-input.d.ts +4 -5
  53. package/datetimepicker/datetimepicker-module.d.ts +2 -2
  54. package/datetimepicker/datetimepicker-toggle.d.ts +4 -3
  55. package/datetimepicker/datetimepicker.d.ts +12 -8
  56. package/datetimepicker/month-view.d.ts +22 -7
  57. package/datetimepicker/multi-year-view.d.ts +20 -20
  58. package/datetimepicker/public-api.d.ts +2 -2
  59. package/datetimepicker/{time.d.ts → time-view.d.ts} +21 -9
  60. package/datetimepicker/{time.scss → time-view.scss} +1 -1
  61. package/datetimepicker/year-view.d.ts +21 -11
  62. package/dialog/dialog-container.d.ts +1 -2
  63. package/dialog/dialog.d.ts +0 -1
  64. package/drawer/_drawer-theme.scss +19 -8
  65. package/drawer/drawer-container.d.ts +2 -5
  66. package/drawer/drawer.d.ts +3 -5
  67. package/fesm2022/mtxAlert.mjs +15 -15
  68. package/fesm2022/mtxAlert.mjs.map +1 -1
  69. package/fesm2022/mtxButton.mjs +13 -14
  70. package/fesm2022/mtxButton.mjs.map +1 -1
  71. package/fesm2022/mtxCheckboxGroup.mjs +51 -31
  72. package/fesm2022/mtxCheckboxGroup.mjs.map +1 -1
  73. package/fesm2022/mtxColorpicker.mjs +91 -109
  74. package/fesm2022/mtxColorpicker.mjs.map +1 -1
  75. package/fesm2022/mtxColumnResize.mjs +79 -96
  76. package/fesm2022/mtxColumnResize.mjs.map +1 -1
  77. package/fesm2022/mtxCore.mjs +31 -36
  78. package/fesm2022/mtxCore.mjs.map +1 -1
  79. package/fesm2022/mtxDatetimepicker.mjs +1181 -1093
  80. package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
  81. package/fesm2022/mtxDialog.mjs +30 -41
  82. package/fesm2022/mtxDialog.mjs.map +1 -1
  83. package/fesm2022/mtxDrawer.mjs +36 -52
  84. package/fesm2022/mtxDrawer.mjs.map +1 -1
  85. package/fesm2022/mtxGrid.mjs +168 -204
  86. package/fesm2022/mtxGrid.mjs.map +1 -1
  87. package/fesm2022/mtxLoader.mjs +12 -12
  88. package/fesm2022/mtxLoader.mjs.map +1 -1
  89. package/fesm2022/mtxPhotoviewer.mjs +11 -12
  90. package/fesm2022/mtxPhotoviewer.mjs.map +1 -1
  91. package/fesm2022/mtxPopover.mjs +106 -119
  92. package/fesm2022/mtxPopover.mjs.map +1 -1
  93. package/fesm2022/mtxProgress.mjs +8 -8
  94. package/fesm2022/mtxProgress.mjs.map +1 -1
  95. package/fesm2022/mtxSelect.mjs +157 -169
  96. package/fesm2022/mtxSelect.mjs.map +1 -1
  97. package/fesm2022/mtxSplit.mjs +39 -40
  98. package/fesm2022/mtxSplit.mjs.map +1 -1
  99. package/fesm2022/mtxTooltip.mjs +105 -91
  100. package/fesm2022/mtxTooltip.mjs.map +1 -1
  101. package/grid/_grid-theme.scss +23 -10
  102. package/grid/cell.d.ts +1 -4
  103. package/grid/column-resize/column-resize-directives/column-resize-flex.d.ts +0 -1
  104. package/grid/column-resize/column-resize-directives/column-resize.d.ts +0 -1
  105. package/grid/column-resize/overlay-handle.d.ts +1 -2
  106. package/grid/column-resize/resizable-directives/resizable.d.ts +2 -3
  107. package/grid/column-resize/resize-strategy.d.ts +2 -4
  108. package/grid/grid-pipes.d.ts +0 -2
  109. package/grid/grid.d.ts +5 -5
  110. package/grid/grid.scss +5 -6
  111. package/loader/_loader-theme.scss +19 -8
  112. package/loader/loader.d.ts +0 -2
  113. package/package.json +11 -47
  114. package/photoviewer/photoviewer.d.ts +1 -2
  115. package/popover/_popover-theme.scss +19 -8
  116. package/popover/popover-content.d.ts +1 -1
  117. package/popover/popover-target.d.ts +1 -2
  118. package/popover/popover-trigger.d.ts +5 -6
  119. package/popover/popover.d.ts +1 -2
  120. package/prebuilt-themes/azure-blue.css +1 -1
  121. package/prebuilt-themes/cyan-orange.css +1 -1
  122. package/prebuilt-themes/deeppurple-amber.css +1 -1
  123. package/prebuilt-themes/indigo-pink.css +1 -1
  124. package/prebuilt-themes/magenta-violet.css +1 -1
  125. package/prebuilt-themes/pink-bluegrey.css +1 -1
  126. package/prebuilt-themes/purple-green.css +1 -1
  127. package/prebuilt-themes/rose-red.css +1 -1
  128. package/progress/_progress-theme.scss +23 -10
  129. package/select/_select-theme.scss +23 -10
  130. package/select/option.d.ts +0 -1
  131. package/select/select-intl.d.ts +2 -4
  132. package/select/select.d.ts +8 -7
  133. package/select/select.scss +3 -3
  134. package/select/templates.d.ts +0 -12
  135. package/split/_split-theme.scss +19 -8
  136. package/split/split-pane.d.ts +3 -4
  137. package/split/split.d.ts +4 -4
  138. package/split/split.scss +1 -1
  139. package/tooltip/_tooltip-theme.scss +11 -4
  140. package/tooltip/tooltip.d.ts +17 -9
  141. package/tooltip/tooltip.scss +8 -3
  142. package/esm2022/alert/alert-module.mjs +0 -17
  143. package/esm2022/alert/alert.mjs +0 -46
  144. package/esm2022/alert/mtxAlert.mjs +0 -5
  145. package/esm2022/alert/public-api.mjs +0 -3
  146. package/esm2022/button/button-loading.mjs +0 -66
  147. package/esm2022/button/button-module.mjs +0 -19
  148. package/esm2022/button/mtxButton.mjs +0 -5
  149. package/esm2022/button/public-api.mjs +0 -3
  150. package/esm2022/checkbox-group/checkbox-group-module.mjs +0 -20
  151. package/esm2022/checkbox-group/checkbox-group.mjs +0 -222
  152. package/esm2022/checkbox-group/interfaces.mjs +0 -2
  153. package/esm2022/checkbox-group/mtxCheckboxGroup.mjs +0 -5
  154. package/esm2022/checkbox-group/public-api.mjs +0 -4
  155. package/esm2022/colorpicker/colorpicker-animations.mjs +0 -16
  156. package/esm2022/colorpicker/colorpicker-input.mjs +0 -228
  157. package/esm2022/colorpicker/colorpicker-module.mjs +0 -64
  158. package/esm2022/colorpicker/colorpicker-toggle.mjs +0 -102
  159. package/esm2022/colorpicker/colorpicker.mjs +0 -363
  160. package/esm2022/colorpicker/mtxColorpicker.mjs +0 -5
  161. package/esm2022/colorpicker/public-api.mjs +0 -6
  162. package/esm2022/column-resize/column-resize-directives/column-resize-flex.mjs +0 -40
  163. package/esm2022/column-resize/column-resize-directives/column-resize.mjs +0 -40
  164. package/esm2022/column-resize/column-resize-directives/constants.mjs +0 -21
  165. package/esm2022/column-resize/column-resize-module.mjs +0 -28
  166. package/esm2022/column-resize/column-resize-notifier.mjs +0 -52
  167. package/esm2022/column-resize/column-resize.mjs +0 -82
  168. package/esm2022/column-resize/column-size-store.mjs +0 -20
  169. package/esm2022/column-resize/event-dispatcher.mjs +0 -70
  170. package/esm2022/column-resize/mtxColumnResize.mjs +0 -5
  171. package/esm2022/column-resize/overlay-handle.mjs +0 -146
  172. package/esm2022/column-resize/polyfill.mjs +0 -19
  173. package/esm2022/column-resize/public-api.mjs +0 -13
  174. package/esm2022/column-resize/resizable.mjs +0 -199
  175. package/esm2022/column-resize/resize-ref.mjs +0 -17
  176. package/esm2022/column-resize/resize-strategy.mjs +0 -238
  177. package/esm2022/column-resize/selectors.mjs +0 -13
  178. package/esm2022/core/datetime/datetime-adapter.mjs +0 -132
  179. package/esm2022/core/datetime/datetime-formats.mjs +0 -3
  180. package/esm2022/core/datetime/datetime.module.mjs +0 -38
  181. package/esm2022/core/datetime/index.mjs +0 -6
  182. package/esm2022/core/datetime/native-datetime-adapter.mjs +0 -138
  183. package/esm2022/core/datetime/native-datetime-formats.mjs +0 -20
  184. package/esm2022/core/mtxCore.mjs +0 -5
  185. package/esm2022/core/pipes/index.mjs +0 -4
  186. package/esm2022/core/pipes/is-template-ref.pipe.mjs +0 -14
  187. package/esm2022/core/pipes/pipes.module.mjs +0 -18
  188. package/esm2022/core/pipes/to-observable.pipe.mjs +0 -15
  189. package/esm2022/core/public-api.mjs +0 -3
  190. package/esm2022/datetimepicker/calendar-body.mjs +0 -77
  191. package/esm2022/datetimepicker/calendar.mjs +0 -661
  192. package/esm2022/datetimepicker/clock.mjs +0 -362
  193. package/esm2022/datetimepicker/datetimepicker-actions.mjs +0 -88
  194. package/esm2022/datetimepicker/datetimepicker-animations.mjs +0 -44
  195. package/esm2022/datetimepicker/datetimepicker-errors.mjs +0 -8
  196. package/esm2022/datetimepicker/datetimepicker-filtertype.mjs +0 -7
  197. package/esm2022/datetimepicker/datetimepicker-input.mjs +0 -349
  198. package/esm2022/datetimepicker/datetimepicker-intl.mjs +0 -63
  199. package/esm2022/datetimepicker/datetimepicker-module.mjs +0 -116
  200. package/esm2022/datetimepicker/datetimepicker-toggle.mjs +0 -105
  201. package/esm2022/datetimepicker/datetimepicker-types.mjs +0 -2
  202. package/esm2022/datetimepicker/datetimepicker.mjs +0 -580
  203. package/esm2022/datetimepicker/month-view.mjs +0 -148
  204. package/esm2022/datetimepicker/mtxDatetimepicker.mjs +0 -5
  205. package/esm2022/datetimepicker/multi-year-view.mjs +0 -215
  206. package/esm2022/datetimepicker/public-api.mjs +0 -17
  207. package/esm2022/datetimepicker/time.mjs +0 -470
  208. package/esm2022/datetimepicker/year-view.mjs +0 -139
  209. package/esm2022/dialog/dialog-config.mjs +0 -2
  210. package/esm2022/dialog/dialog-container.mjs +0 -43
  211. package/esm2022/dialog/dialog-module.mjs +0 -40
  212. package/esm2022/dialog/dialog.mjs +0 -75
  213. package/esm2022/dialog/mtxDialog.mjs +0 -5
  214. package/esm2022/dialog/public-api.mjs +0 -5
  215. package/esm2022/drawer/drawer-animations.mjs +0 -18
  216. package/esm2022/drawer/drawer-config.mjs +0 -35
  217. package/esm2022/drawer/drawer-container.mjs +0 -88
  218. package/esm2022/drawer/drawer-module.mjs +0 -21
  219. package/esm2022/drawer/drawer-ref.mjs +0 -99
  220. package/esm2022/drawer/drawer.mjs +0 -144
  221. package/esm2022/drawer/mtxDrawer.mjs +0 -5
  222. package/esm2022/drawer/public-api.mjs +0 -7
  223. package/esm2022/grid/cell.mjs +0 -132
  224. package/esm2022/grid/column-menu.mjs +0 -133
  225. package/esm2022/grid/column-resize/column-resize-directives/column-resize-flex.mjs +0 -38
  226. package/esm2022/grid/column-resize/column-resize-directives/column-resize.mjs +0 -38
  227. package/esm2022/grid/column-resize/column-resize-directives/common.mjs +0 -27
  228. package/esm2022/grid/column-resize/column-resize-module.mjs +0 -42
  229. package/esm2022/grid/column-resize/index.mjs +0 -8
  230. package/esm2022/grid/column-resize/overlay-handle.mjs +0 -66
  231. package/esm2022/grid/column-resize/resizable-directives/common.mjs +0 -29
  232. package/esm2022/grid/column-resize/resizable-directives/resizable.mjs +0 -64
  233. package/esm2022/grid/column-resize/resize-strategy.mjs +0 -47
  234. package/esm2022/grid/expansion-toggle.mjs +0 -65
  235. package/esm2022/grid/grid-module.mjs +0 -151
  236. package/esm2022/grid/grid-pipes.mjs +0 -129
  237. package/esm2022/grid/grid-utils.mjs +0 -56
  238. package/esm2022/grid/grid.mjs +0 -644
  239. package/esm2022/grid/interfaces.mjs +0 -2
  240. package/esm2022/grid/mtxGrid.mjs +0 -5
  241. package/esm2022/grid/public-api.mjs +0 -18
  242. package/esm2022/grid/selectable-cell.mjs +0 -53
  243. package/esm2022/loader/loader-module.mjs +0 -19
  244. package/esm2022/loader/loader.mjs +0 -57
  245. package/esm2022/loader/mtxLoader.mjs +0 -5
  246. package/esm2022/loader/public-api.mjs +0 -3
  247. package/esm2022/ng-matero-extensions.mjs +0 -5
  248. package/esm2022/photoviewer/mtxPhotoviewer.mjs +0 -5
  249. package/esm2022/photoviewer/photoviewer-module.mjs +0 -16
  250. package/esm2022/photoviewer/photoviewer.mjs +0 -64
  251. package/esm2022/photoviewer/public-api.mjs +0 -3
  252. package/esm2022/popover/mtxPopover.mjs +0 -5
  253. package/esm2022/popover/popover-animations.mjs +0 -25
  254. package/esm2022/popover/popover-content.mjs +0 -91
  255. package/esm2022/popover/popover-errors.mjs +0 -27
  256. package/esm2022/popover/popover-interfaces.mjs +0 -2
  257. package/esm2022/popover/popover-module.mjs +0 -39
  258. package/esm2022/popover/popover-target.mjs +0 -18
  259. package/esm2022/popover/popover-trigger.mjs +0 -480
  260. package/esm2022/popover/popover-types.mjs +0 -2
  261. package/esm2022/popover/popover.mjs +0 -325
  262. package/esm2022/popover/public-api.mjs +0 -9
  263. package/esm2022/progress/mtxProgress.mjs +0 -5
  264. package/esm2022/progress/progress-module.mjs +0 -17
  265. package/esm2022/progress/progress.mjs +0 -43
  266. package/esm2022/progress/public-api.mjs +0 -3
  267. package/esm2022/public-api.mjs +0 -5
  268. package/esm2022/select/mtxSelect.mjs +0 -5
  269. package/esm2022/select/option.mjs +0 -52
  270. package/esm2022/select/public-api.mjs +0 -6
  271. package/esm2022/select/select-intl.mjs +0 -32
  272. package/esm2022/select/select-module.mjs +0 -89
  273. package/esm2022/select/select.mjs +0 -611
  274. package/esm2022/select/templates.mjs +0 -135
  275. package/esm2022/split/interfaces.mjs +0 -2
  276. package/esm2022/split/mtxSplit.mjs +0 -5
  277. package/esm2022/split/public-api.mjs +0 -6
  278. package/esm2022/split/split-module.mjs +0 -18
  279. package/esm2022/split/split-pane.mjs +0 -161
  280. package/esm2022/split/split.mjs +0 -634
  281. package/esm2022/split/utils.mjs +0 -219
  282. package/esm2022/tooltip/mtxTooltip.mjs +0 -5
  283. package/esm2022/tooltip/public-api.mjs +0 -4
  284. package/esm2022/tooltip/tooltip-animations.mjs +0 -17
  285. package/esm2022/tooltip/tooltip-module.mjs +0 -41
  286. package/esm2022/tooltip/tooltip.mjs +0 -915
@@ -3,11 +3,12 @@
3
3
  @use 'sass:string';
4
4
  @use '@angular/material' as mat;
5
5
  @use '../style/elevation';
6
+ @use './m3-system';
6
7
  @use './m3-tokens';
7
8
 
8
9
  $_tokens: null;
9
10
  $_component-prefix: null;
10
- $_system-fallbacks: m3-tokens.create-system-fallbacks();
11
+ $_system-fallbacks: m3-system.create-system-fallbacks();
11
12
 
12
13
  // Sets the token prefix and map to use when creating token slots.
13
14
  @mixin use-tokens($prefix, $tokens) {
@@ -113,19 +114,20 @@ $_system-fallbacks: m3-tokens.create-system-fallbacks();
113
114
  @return _create-var($sys-fallback, $fallback);
114
115
  }
115
116
 
116
- // TODO(mat-app-theme): Return the system-level fallback.
117
- // Changing this will affect clients that do not properly call theme mixins since the tokens
118
- // will be undefined and now default to M3 system values, causing a number of screenshot failures.
119
- // @return $sys-fallback;
120
- @return $fallback;
117
+ @return $sys-fallback;
121
118
  }
122
119
 
123
120
  // Outputs a map of tokens under a specific prefix.
124
121
  @mixin create-token-values($prefix, $tokens) {
125
122
  @if $tokens != null {
126
- @each $key, $value in $tokens {
127
- @if $value != null {
128
- #{_create-var-name($prefix, $key)}: #{$value};
123
+ // TODO: The `&` adds to the file size of theme, but it's necessary for compatibility
124
+ // with https://sass-lang.com/documentation/breaking-changes/mixed-decls/. We should
125
+ // figure out a better way to do this or move all the concrete styles out of the theme.
126
+ & {
127
+ @each $key, $value in $tokens {
128
+ @if $value != null {
129
+ #{_create-var-name($prefix, $key)}: #{$value};
130
+ }
129
131
  }
130
132
  }
131
133
  }
@@ -137,10 +139,13 @@ $_system-fallbacks: m3-tokens.create-system-fallbacks();
137
139
  @function resolve-elevation($tokens, $elevation-token, $shadow-color-token) {
138
140
  $elevation: map.get($tokens, $elevation-token);
139
141
  $shadow-color: map.get($tokens, $shadow-color-token);
140
- @return map.merge($tokens, (
141
- $elevation-token: elevation.get-box-shadow($elevation, $shadow-color),
142
- $shadow-color-token: null,
143
- ));
142
+ @return map.merge(
143
+ $tokens,
144
+ (
145
+ $elevation-token: elevation.get-box-shadow($elevation, $shadow-color),
146
+ $shadow-color-token: null,
147
+ )
148
+ );
144
149
  }
145
150
 
146
151
  /// Checks whether a list starts wih a given prefix
@@ -194,7 +199,8 @@ $_system-fallbacks: m3-tokens.create-system-fallbacks();
194
199
  $overrides: map.get($tokens, list.append($prefix, $color-variant));
195
200
  @if $overrides == null {
196
201
  $variants: _supported-color-variants($tokens, $prefix);
197
- $secondary-message: if($variants == (),
202
+ $secondary-message: if(
203
+ $variants == (),
198
204
  'Mixin does not support color variants',
199
205
  'Supported color variants are: #{$variants}'
200
206
  );
@@ -207,41 +213,94 @@ $_system-fallbacks: m3-tokens.create-system-fallbacks();
207
213
  /// Emits new token values for the given token overrides.
208
214
  /// Verifies that the overrides passed in are valid tokens.
209
215
  /// New token values are emitted under the current selector or root.
210
- @mixin batch-create-token-values($overrides: (), $token-maps...) {
211
- @include _validate-token-overrides($overrides, $token-maps);
212
-
213
- @each $token-map in $token-maps {
214
- $prefix: map.get($token-map, prefix);
215
- $tokens: map.get($token-map, tokens);
216
-
217
- @each $name, $value in $tokens {
218
- $tokens: map.set($tokens, $name, map.get($overrides, $name));
216
+ @mixin batch-create-token-values($overrides: (), $namespace-configs...) {
217
+ @include mat.private-current-selector-or-root() {
218
+ $prefixed-name-data: ();
219
+ $unprefixed-name-data: ();
220
+ $all-names: ();
221
+
222
+ @each $config in $namespace-configs {
223
+ $namespace: map.get($config, namespace);
224
+ $prefix: if(map.has-key($config, prefix), map.get($config, prefix), '');
225
+ $tokens: _filter-nulls(map.get($config, tokens));
226
+ @each $name, $value in $tokens {
227
+ $prefixed-name: $prefix + $name;
228
+ $all-names: list.append($all-names, $prefixed-name, $separator: comma);
229
+ @if map.has-key($prefixed-name-data, $prefixed-name) {
230
+ @error #{
231
+ 'Error overriding token: Ambiguous token name `'
232
+ }#{
233
+ $prefixed-name
234
+ }#{
235
+ '` exists in multiple namespaces: `('
236
+ }#{
237
+ list.nth(map.get($prefixed-name-data, $prefixed-name), 1)
238
+ }#{
239
+ ')` and `('
240
+ }#{
241
+ $namespace
242
+ }#{
243
+ ')`'
244
+ };
245
+ }
246
+ $prefixed-name-data: map.set($prefixed-name-data, $prefixed-name, ($namespace, $name));
247
+ $unprefixed-data: map.has-key($unprefixed-name-data, $name) and
248
+ map.get($unprefixed-name-data, $name) or
249
+ ();
250
+ $unprefixed-data: list.append($unprefixed-data, ($namespace, $prefixed-name));
251
+ $unprefixed-name-data: map.set($unprefixed-name-data, $name, $unprefixed-data);
252
+ }
219
253
  }
220
254
 
221
- @include mat.private-current-selector-or-root() {
222
- @include create-token-values($prefix, $tokens);
223
- }
224
- }
225
- }
226
-
227
- /// Verifies that the token overrides exist and are used in one of the given token maps.
228
- @mixin _validate-token-overrides($overrides: (), $token-maps) {
229
- $valid-token-names: ();
230
-
231
- @each $token-map in $token-maps {
232
- @each $name, $value in map.get($token-map, tokens) {
233
- @if ($value != null and list.index($valid-token-names, $name) == null) {
234
- $valid-token-names: list.append($valid-token-names, $name);
255
+ @each $name, $value in $overrides {
256
+ @if map.has-key($prefixed-name-data, $name) {
257
+ $data: map.get($prefixed-name-data, $name);
258
+ $namespace: list.nth($data, 1);
259
+ $name: list.nth($data, 2);
260
+ @include create-token-values(
261
+ $namespace,
262
+ (
263
+ $name: $value,
264
+ )
265
+ );
266
+ } @else if (map.has-key($unprefixed-name-data, $name)) {
267
+ $datalist: map.get($unprefixed-name-data, $name);
268
+ $prefixed-names: ();
269
+ @each $data in $datalist {
270
+ $namespace: list.nth($data, 1);
271
+ $prefixed-names: list.append($prefixed-names, list.nth($data, 2), $separator: comma);
272
+ @include create-token-values(
273
+ $namespace,
274
+ (
275
+ $name: $value,
276
+ )
277
+ );
278
+ }
279
+ @warn #{
280
+ 'Token `'
281
+ }#{
282
+ $name
283
+ }#{
284
+ '` is deprecated. Please use one of the following alternatives: '
285
+ }#{
286
+ $prefixed-names
287
+ };
288
+ } @else {
289
+ @error #{'Invalid token name `'}#{$name}#{'`. '}#{'Valid tokens are: '}#{$all-names};
235
290
  }
236
291
  }
237
292
  }
293
+ }
238
294
 
239
- @each $name in map.keys($overrides) {
240
- @if (list.index($valid-token-names, $name) == null) {
241
- @error (
242
- 'Invalid token: "' + $name + '"'
243
- 'Valid tokens include: ' $valid-token-names
244
- );
295
+ /// Filters keys with a null value out of the map.
296
+ /// @param {Map} $map The map to filter.
297
+ /// @return {Map} The given map with all of the null keys filtered out.
298
+ @function _filter-nulls($map) {
299
+ $result: ();
300
+ @each $key, $val in $map {
301
+ @if $val != null {
302
+ $result: map.set($result, $key, $val);
245
303
  }
246
304
  }
305
+ @return $result;
247
306
  }
@@ -11,6 +11,7 @@
11
11
  @use './mtx/progress' as tokens-mtx-progress;
12
12
  @use './mtx/select' as tokens-mtx-select;
13
13
  @use './mtx/split' as tokens-mtx-split;
14
+ @use './mdc/plain-tooltip' as tokens-mdc-plain-tooltip;
14
15
 
15
16
  /// Gets the tokens for the given theme, m2 tokens module, and theming system.
16
17
  /// @param {Map} $theme The Angular Material theme object to generate token values from.
@@ -65,5 +66,6 @@
65
66
  _get-tokens-for-module($theme, tokens-mtx-progress),
66
67
  _get-tokens-for-module($theme, tokens-mtx-select),
67
68
  _get-tokens-for-module($theme, tokens-mtx-split),
69
+ _get-tokens-for-module($theme, tokens-mdc-plain-tooltip),
68
70
  );
69
71
  }
@@ -1,3 +1,4 @@
1
+ @forward './md-comp-plain-tooltip' as md-comp-plain-tooltip-*;
1
2
  @forward './md-ref-palette' as md-ref-palette-*;
2
3
  @forward './md-ref-typeface' as md-ref-typeface-*;
3
4
  @forward './md-sys-color' as md-sys-color-*;
@@ -0,0 +1,51 @@
1
+ //
2
+ // Design system display name: Material 3
3
+ // Design system version: v0.161
4
+ //
5
+
6
+ @use 'sass:map';
7
+
8
+ @use './md-sys-color';
9
+
10
+ @use './md-sys-shape';
11
+
12
+ @use './md-sys-typescale';
13
+
14
+ $_default: (
15
+ 'md-sys-color': md-sys-color.values-light(),
16
+ 'md-sys-shape': md-sys-shape.values(),
17
+ 'md-sys-typescale': md-sys-typescale.values(),
18
+ );
19
+
20
+ @function values($deps: $_default, $exclude-hardcoded-values: false) {
21
+ @return (
22
+ 'container-color': map.get($deps, 'md-sys-color', 'inverse-surface'),
23
+ 'container-shape': map.get($deps, 'md-sys-shape', 'corner-extra-small'),
24
+ 'supporting-text-color':
25
+ map.get($deps, 'md-sys-color', 'inverse-on-surface'),
26
+ 'supporting-text-font':
27
+ map.get($deps, 'md-sys-typescale', 'body-small-font'),
28
+ 'supporting-text-line-height':
29
+ map.get($deps, 'md-sys-typescale', 'body-small-line-height'),
30
+ 'supporting-text-size':
31
+ map.get($deps, 'md-sys-typescale', 'body-small-size'),
32
+ 'supporting-text-tracking':
33
+ map.get($deps, 'md-sys-typescale', 'body-small-tracking'),
34
+ // Warning: risk of reduced fidelity from using this composite typography token.
35
+ // Tokens md.comp.plain-tooltip.supporting-text.tracking cannot be represented in the
36
+ // "font" property shorthand. Consider using the discrete properties instead.
37
+ 'supporting-text-type':
38
+ if(
39
+ $exclude-hardcoded-values,
40
+ null,
41
+ map.get($deps, 'md-sys-typescale', 'body-small-weight')
42
+ map.get($deps, 'md-sys-typescale', 'body-small-size') #{'/'} map.get(
43
+ $deps,
44
+ 'md-sys-typescale',
45
+ 'body-small-line-height'
46
+ ) map.get($deps, 'md-sys-typescale', 'body-small-font')
47
+ ),
48
+ 'supporting-text-weight':
49
+ map.get($deps, 'md-sys-typescale', 'body-small-weight')
50
+ );
51
+ }
@@ -10,6 +10,7 @@
10
10
  @use './mtx/progress' as tokens-mtx-progress;
11
11
  @use './mtx/select' as tokens-mtx-select;
12
12
  @use './mtx/split' as tokens-mtx-split;
13
+ @use './mdc/plain-tooltip' as tokens-mdc-plain-tooltip;
13
14
 
14
15
  $_module-names: (
15
16
  // Custom tokens
@@ -23,6 +24,7 @@ $_module-names: (
23
24
  tokens-mtx-progress,
24
25
  tokens-mtx-select,
25
26
  tokens-mtx-split,
27
+ tokens-mdc-plain-tooltip,
26
28
  );
27
29
 
28
30
  /// Gets the full set of M3 tokens for the given theme object.
@@ -0,0 +1,15 @@
1
+ @use '../../token-definition';
2
+
3
+ // The prefix used to generate the fully qualified name for tokens in this file.
4
+ $prefix: (mdc, plain-tooltip);
5
+
6
+ /// Generates the tokens for MDC plain-tooltip
7
+ /// @param {Map} $systems The MDC system tokens
8
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
9
+ /// @param {Map} $token-slots Possible token slots
10
+ /// @return {Map} A set of tokens for the MDC plain-tooltip
11
+ @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
12
+ $mdc-tokens: token-definition.get-mdc-tokens('plain-tooltip', $systems, $exclude-hardcoded);
13
+
14
+ @return token-definition.namespace-tokens($prefix, $mdc-tokens, $token-slots);
15
+ }
@@ -5,11 +5,11 @@
5
5
  // The prefix used to generate the fully qualified name for tokens in this file.
6
6
  $prefix: (mtx, alert);
7
7
 
8
- /// Generates custom tokens for the mat-badge.
8
+ /// Generates custom tokens for the mtx-alert.
9
9
  /// @param {Map} $systems The MDC system tokens
10
10
  /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
11
11
  /// @param {Map} $token-slots Possible token slots
12
- /// @return {Map} A set of custom tokens for the mat-badge
12
+ /// @return {Map} A set of custom tokens for the mtx-alert
13
13
  @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
14
14
  $is-dark: map.get($systems, md-sys-type) == dark;
15
15
 
@@ -20,21 +20,21 @@ $prefix: (mtx, alert);
20
20
  background-color: map.get($systems, md-sys-color, surface-container),
21
21
  text-color: map.get($systems, md-sys-color, on-surface),
22
22
 
23
- info-outline-color: map.get(mat.$azure-palette, if($is-dark, 40, 80)),
24
- info-background-color: map.get(mat.$azure-palette, if($is-dark, 20, 90)),
25
- info-text-color: map.get(mat.$azure-palette, if($is-dark, 90, 20)),
23
+ info-outline-color: light-dark(map.get(mat.$azure-palette, 80), map.get(mat.$azure-palette, 40)),
24
+ info-background-color: light-dark(map.get(mat.$azure-palette, 90), map.get(mat.$azure-palette, 20)),
25
+ info-text-color: light-dark(map.get(mat.$azure-palette, 20), map.get(mat.$azure-palette, 90)),
26
26
 
27
- success-outline-color: map.get(mat.$green-palette, if($is-dark, 40, 80)),
28
- success-background-color: map.get(mat.$green-palette, if($is-dark, 20, 95)),
29
- success-text-color: map.get(mat.$green-palette, if($is-dark, 95, 20)),
27
+ success-outline-color: light-dark(map.get(mat.$green-palette, 80), map.get(mat.$green-palette, 40)),
28
+ success-background-color: light-dark(map.get(mat.$green-palette, 95), map.get(mat.$green-palette, 20)),
29
+ success-text-color: light-dark(map.get(mat.$green-palette, 20), map.get(mat.$green-palette, 95)),
30
30
 
31
- warning-outline-color: map.get(mat.$yellow-palette, if($is-dark, 40, 80)),
32
- warning-background-color: map.get(mat.$yellow-palette, if($is-dark, 20, 98)),
33
- warning-text-color: map.get(mat.$yellow-palette, if($is-dark, 98, 20)),
31
+ warning-outline-color: light-dark(map.get(mat.$yellow-palette, 80), map.get(mat.$yellow-palette, 40)),
32
+ warning-background-color: light-dark(map.get(mat.$yellow-palette, 98), map.get(mat.$yellow-palette, 20)),
33
+ warning-text-color: light-dark(map.get(mat.$yellow-palette, 20), map.get(mat.$yellow-palette, 98)),
34
34
 
35
- danger-outline-color: map.get(mat.$red-palette, if($is-dark, 40, 80)),
36
- danger-background-color: map.get(mat.$red-palette, if($is-dark, 20, 90)),
37
- danger-text-color: map.get(mat.$red-palette, if($is-dark, 90, 20)),
35
+ danger-outline-color: light-dark(map.get(mat.$red-palette, 80), map.get(mat.$red-palette, 40)),
36
+ danger-background-color: light-dark(map.get(mat.$red-palette, 90), map.get(mat.$red-palette, 20)),
37
+ danger-text-color: light-dark(map.get(mat.$red-palette, 20), map.get(mat.$red-palette, 90)),
38
38
  );
39
39
 
40
40
  @return token-definition.namespace-tokens($prefix, $tokens, $token-slots);
@@ -4,11 +4,11 @@
4
4
  // The prefix used to generate the fully qualified name for tokens in this file.
5
5
  $prefix: (mtx, colorpicker);
6
6
 
7
- /// Generates custom tokens for the mat-badge.
7
+ /// Generates custom tokens for the mtx-colorpicker.
8
8
  /// @param {Map} $systems The MDC system tokens
9
9
  /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
10
10
  /// @param {Map} $token-slots Possible token slots
11
- /// @return {Map} A set of custom tokens for the mat-badge
11
+ /// @return {Map} A set of custom tokens for the mtx-colorpicker
12
12
  @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
13
13
  $tokens: (
14
14
  toggle-active-state-icon-color: map.get($systems, md-sys-color, on-surface-variant),
@@ -6,11 +6,11 @@
6
6
  // The prefix used to generate the fully qualified name for tokens in this file.
7
7
  $prefix: (mtx, datetimepicker);
8
8
 
9
- /// Generates custom tokens for the mat-badge.
9
+ /// Generates custom tokens for the mtx-datetimepicker.
10
10
  /// @param {Map} $systems The MDC system tokens
11
11
  /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
12
12
  /// @param {Map} $token-slots Possible token slots
13
- /// @return {Map} A set of custom tokens for the mat-badge
13
+ /// @return {Map} A set of custom tokens for the mtx-datetimepicker
14
14
  @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
15
15
  $tokens: ((
16
16
  calendar-header-background-color: token-definition.hardcode(transparent, $exclude-hardcoded),
@@ -5,11 +5,11 @@
5
5
  // The prefix used to generate the fully qualified name for tokens in this file.
6
6
  $prefix: (mtx, drawer);
7
7
 
8
- /// Generates custom tokens for the mat-badge.
8
+ /// Generates custom tokens for the mtx-drawer.
9
9
  /// @param {Map} $systems The MDC system tokens
10
10
  /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
11
11
  /// @param {Map} $token-slots Possible token slots
12
- /// @return {Map} A set of custom tokens for the mat-badge
12
+ /// @return {Map} A set of custom tokens for the mtx-drawer
13
13
  @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
14
14
  $tokens: (
15
15
  container-shape: map.get($systems, md-sys-shape, corner-large),
@@ -4,11 +4,11 @@
4
4
  // The prefix used to generate the fully qualified name for tokens in this file.
5
5
  $prefix: (mtx, grid);
6
6
 
7
- /// Generates custom tokens for the mat-badge.
7
+ /// Generates custom tokens for the mtx-grid.
8
8
  /// @param {Map} $systems The MDC system tokens
9
9
  /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
10
10
  /// @param {Map} $token-slots Possible token slots
11
- /// @return {Map} A set of custom tokens for the mat-badge
11
+ /// @return {Map} A set of custom tokens for the mtx-grid
12
12
  @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
13
13
  $tokens: (
14
14
  container-shape: map.get($systems, md-sys-shape, corner-medium),
@@ -5,11 +5,11 @@
5
5
  // The prefix used to generate the fully qualified name for tokens in this file.
6
6
  $prefix: (mtx, loader);
7
7
 
8
- /// Generates custom tokens for the mat-badge.
8
+ /// Generates custom tokens for the mtx-loader.
9
9
  /// @param {Map} $systems The MDC system tokens
10
10
  /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
11
11
  /// @param {Map} $token-slots Possible token slots
12
- /// @return {Map} A set of custom tokens for the mat-badge
12
+ /// @return {Map} A set of custom tokens for the mtx-loader
13
13
  @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
14
14
  $tokens: (
15
15
  backdrop-background-color: mat.private-safe-color-change(
@@ -4,11 +4,11 @@
4
4
  // The prefix used to generate the fully qualified name for tokens in this file.
5
5
  $prefix: (mtx, popover);
6
6
 
7
- /// Generates custom tokens for the mat-badge.
7
+ /// Generates custom tokens for the mtx-popover.
8
8
  /// @param {Map} $systems The MDC system tokens
9
9
  /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
10
10
  /// @param {Map} $token-slots Possible token slots
11
- /// @return {Map} A set of custom tokens for the mat-badge
11
+ /// @return {Map} A set of custom tokens for the mtx-popover
12
12
  @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
13
13
  $tokens: (
14
14
  container-shape: map.get($systems, md-sys-shape, corner-extra-small),
@@ -5,11 +5,11 @@
5
5
  // The prefix used to generate the fully qualified name for tokens in this file.
6
6
  $prefix: (mtx, progress);
7
7
 
8
- /// Generates custom tokens for the mat-badge.
8
+ /// Generates custom tokens for the mtx-progress.
9
9
  /// @param {Map} $systems The MDC system tokens
10
10
  /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
11
11
  /// @param {Map} $token-slots Possible token slots
12
- /// @return {Map} A set of custom tokens for the mat-badge
12
+ /// @return {Map} A set of custom tokens for the mtx-progress
13
13
  @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
14
14
  $tokens: (
15
15
  container-shape: map.get($systems, md-sys-shape, corner-extra-small),
@@ -6,11 +6,11 @@
6
6
  // The prefix used to generate the fully qualified name for tokens in this file.
7
7
  $prefix: (mtx, select);
8
8
 
9
- /// Generates custom tokens for the mat-badge.
9
+ /// Generates custom tokens for the mtx-select.
10
10
  /// @param {Map} $systems The MDC system tokens
11
11
  /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
12
12
  /// @param {Map} $token-slots Possible token slots
13
- /// @return {Map} A set of custom tokens for the mat-badge
13
+ /// @return {Map} A set of custom tokens for the mtx-select
14
14
  @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
15
15
  $tokens: ((
16
16
  container-shape: map.get($systems, md-sys-shape, corner-extra-small),
@@ -4,11 +4,11 @@
4
4
  // The prefix used to generate the fully qualified name for tokens in this file.
5
5
  $prefix: (mtx, split);
6
6
 
7
- /// Generates custom tokens for the mat-badge.
7
+ /// Generates custom tokens for the mtx-split.
8
8
  /// @param {Map} $systems The MDC system tokens
9
9
  /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
10
10
  /// @param {Map} $token-slots Possible token slots
11
- /// @return {Map} A set of custom tokens for the mat-badge
11
+ /// @return {Map} A set of custom tokens for the mtx-split
12
12
  @function get-tokens($systems, $exclude-hardcoded, $token-slots) {
13
13
  $tokens: ((
14
14
  gutter-background-color: map.get($systems, md-sys-color, outline-variant),
@@ -18,8 +18,10 @@
18
18
  }
19
19
  @else {
20
20
  @include mat.private-current-selector-or-root() {
21
- @include token-utils.create-token-values(tokens-mtx-datetimepicker.$prefix,
22
- tokens-mtx-datetimepicker.get-unthemable-tokens());
21
+ @include token-utils.create-token-values(
22
+ tokens-mtx-datetimepicker.$prefix,
23
+ tokens-mtx-datetimepicker.get-unthemable-tokens()
24
+ );
23
25
  }
24
26
  }
25
27
  }
@@ -30,8 +32,10 @@
30
32
  }
31
33
  @else {
32
34
  @include mat.private-current-selector-or-root() {
33
- @include token-utils.create-token-values(tokens-mtx-datetimepicker.$prefix,
34
- tokens-mtx-datetimepicker.get-color-tokens($theme));
35
+ @include token-utils.create-token-values(
36
+ tokens-mtx-datetimepicker.$prefix,
37
+ tokens-mtx-datetimepicker.get-color-tokens($theme)
38
+ );
35
39
  }
36
40
 
37
41
  .mtx-datetimepicker-content {
@@ -64,8 +68,10 @@
64
68
  }
65
69
  @else {
66
70
  @include mat.private-current-selector-or-root() {
67
- @include token-utils.create-token-values(tokens-mtx-datetimepicker.$prefix,
68
- tokens-mtx-datetimepicker.get-typography-tokens($theme));
71
+ @include token-utils.create-token-values(
72
+ tokens-mtx-datetimepicker.$prefix,
73
+ tokens-mtx-datetimepicker.get-typography-tokens($theme)
74
+ );
69
75
  }
70
76
  }
71
77
  }
@@ -77,13 +83,20 @@
77
83
  @else {}
78
84
  }
79
85
 
80
- @mixin overrides($tokens: ()) {
81
- @include token-utils.batch-create-token-values(
82
- $tokens,
83
- (prefix: tokens-mtx-datetimepicker.$prefix, tokens: tokens-mtx-datetimepicker.get-token-slots()),
86
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
87
+ @function _define-overrides() {
88
+ @return (
89
+ (
90
+ namespace: tokens-mtx-datetimepicker.$prefix,
91
+ tokens: tokens-mtx-datetimepicker.get-token-slots(),
92
+ ),
84
93
  );
85
94
  }
86
95
 
96
+ @mixin overrides($tokens: ()) {
97
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
98
+ }
99
+
87
100
  @mixin theme($theme, $options...) {
88
101
  @include mat.private-check-duplicate-theme-styles($theme, 'mtx-datetimepicker') {
89
102
  @if mat.get-theme-version($theme) == 1 {
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  /**
4
4
  * An internal class that represents the data corresponding to a single calendar cell.
@@ -9,17 +9,26 @@ export declare class MtxCalendarCell {
9
9
  displayValue: string;
10
10
  ariaLabel: string;
11
11
  enabled: boolean;
12
+ readonly id: number;
12
13
  constructor(value: number, displayValue: string, ariaLabel: string, enabled: boolean);
13
14
  }
14
15
  /**
15
16
  * An internal component used to display calendar data in a table.
16
17
  * @docs-private
17
18
  */
18
- export declare class MtxCalendarBody {
19
+ export declare class MtxCalendarBody implements OnChanges {
20
+ private _elementRef;
21
+ private _ngZone;
22
+ private _injector;
19
23
  /** The label for the table. (e.g. "Jan 2017"). */
20
24
  label: string;
21
25
  /** The cells to display in the table. */
22
26
  rows: MtxCalendarCell[][];
27
+ /**
28
+ * The aspect ratio (width / height) to use for the cells in the table. This aspect ratio will be
29
+ * maintained even as the table resizes.
30
+ */
31
+ cellAspectRatio: number;
23
32
  /** The value in the table that corresponds to today. */
24
33
  todayValue: number;
25
34
  /** The value in the table that is currently selected. */
@@ -35,9 +44,22 @@ export declare class MtxCalendarBody {
35
44
  /** Emits when a new value is selected. */
36
45
  selectedValueChange: EventEmitter<number>;
37
46
  /** The number of blank cells to put at the beginning for the first row. */
38
- get _firstRowOffset(): number;
47
+ _firstRowOffset: number;
48
+ /** Padding for the individual date cells. */
49
+ _cellPadding: string;
50
+ /** Width of an individual cell. */
51
+ _cellWidth: string;
39
52
  _cellClicked(cell: MtxCalendarCell): void;
53
+ _emitActiveDateChange(cell: MtxCalendarCell, event: FocusEvent): void;
40
54
  _isActiveCell(rowIndex: number, colIndex: number): boolean;
55
+ /**
56
+ * Tracking function for rows based on their identity. Ideally we would use some sort of
57
+ * key on the row, but that would require a breaking change for the `rows` input. We don't
58
+ * use the built-in identity tracking, because it logs warnings.
59
+ */
60
+ _trackRow: (row: MtxCalendarCell[]) => MtxCalendarCell[];
61
+ ngOnChanges(changes: SimpleChanges): void;
62
+ _focusActiveCell(movePreview?: boolean): void;
41
63
  static ɵfac: i0.ɵɵFactoryDeclaration<MtxCalendarBody, never>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<MtxCalendarBody, "[mtx-calendar-body]", ["mtxCalendarBody"], { "label": { "alias": "label"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "todayValue": { "alias": "todayValue"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "labelMinRequiredCells": { "alias": "labelMinRequiredCells"; "required": false; }; "numCols": { "alias": "numCols"; "required": false; }; "allowDisabledSelection": { "alias": "allowDisabledSelection"; "required": false; }; "activeCell": { "alias": "activeCell"; "required": false; }; }, { "selectedValueChange": "selectedValueChange"; }, never, never, true, never>;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<MtxCalendarBody, "[mtx-calendar-body]", ["mtxCalendarBody"], { "label": { "alias": "label"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "cellAspectRatio": { "alias": "cellAspectRatio"; "required": false; }; "todayValue": { "alias": "todayValue"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "labelMinRequiredCells": { "alias": "labelMinRequiredCells"; "required": false; }; "numCols": { "alias": "numCols"; "required": false; }; "allowDisabledSelection": { "alias": "allowDisabledSelection"; "required": false; }; "activeCell": { "alias": "activeCell"; "required": false; }; }, { "selectedValueChange": "selectedValueChange"; }, never, never, true, never>;
43
65
  }