@angular/material 17.1.0-next.0 → 17.1.0-next.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 (322) hide show
  1. package/autocomplete/_autocomplete-theme.scss +47 -14
  2. package/autocomplete/index.d.ts +14 -10
  3. package/badge/_badge-theme.scss +67 -35
  4. package/badge/index.d.ts +5 -5
  5. package/bottom-sheet/_bottom-sheet-theme.scss +51 -18
  6. package/bottom-sheet/index.d.ts +6 -6
  7. package/button/_button-theme.scss +4 -1
  8. package/button/_fab-theme.scss +65 -32
  9. package/button/_icon-button-theme.scss +89 -56
  10. package/button/index.d.ts +13 -13
  11. package/button-toggle/_button-toggle-theme.scss +66 -32
  12. package/button-toggle/index.d.ts +5 -5
  13. package/card/index.d.ts +18 -18
  14. package/checkbox/index.d.ts +6 -6
  15. package/chips/_chips-theme.scss +64 -32
  16. package/chips/index.d.ts +46 -73
  17. package/core/_core-theme.scss +1 -3
  18. package/core/index.d.ts +50 -31
  19. package/core/option/_optgroup-theme.scss +47 -16
  20. package/core/option/_option-theme.scss +54 -23
  21. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +18 -58
  22. package/core/tokens/m2/_index.scss +38 -0
  23. package/core/tokens/m2/mat/_full-pseudo-checkbox.scss +49 -0
  24. package/core/tokens/m2/mat/_minimal-pseudo-checkbox.scss +43 -0
  25. package/datepicker/_datepicker-theme.scss +70 -38
  26. package/datepicker/index.d.ts +88 -86
  27. package/dialog/_dialog-theme.scss +48 -17
  28. package/divider/_divider-theme.scss +49 -16
  29. package/divider/index.d.ts +4 -4
  30. package/esm2022/autocomplete/autocomplete-origin.mjs +5 -4
  31. package/esm2022/autocomplete/autocomplete-trigger.mjs +27 -11
  32. package/esm2022/autocomplete/autocomplete.mjs +6 -6
  33. package/esm2022/autocomplete/module.mjs +23 -7
  34. package/esm2022/autocomplete/public-api.mjs +3 -1
  35. package/esm2022/badge/badge-module.mjs +6 -7
  36. package/esm2022/badge/badge.mjs +5 -4
  37. package/esm2022/bottom-sheet/bottom-sheet-container.mjs +6 -6
  38. package/esm2022/bottom-sheet/bottom-sheet-module.mjs +8 -7
  39. package/esm2022/bottom-sheet/bottom-sheet.mjs +5 -6
  40. package/esm2022/button/button-base.mjs +6 -6
  41. package/esm2022/button/button.mjs +9 -9
  42. package/esm2022/button/fab.mjs +17 -17
  43. package/esm2022/button/icon-button.mjs +9 -9
  44. package/esm2022/button/module.mjs +16 -12
  45. package/esm2022/button-toggle/button-toggle-module.mjs +6 -7
  46. package/esm2022/button-toggle/button-toggle.mjs +10 -9
  47. package/esm2022/card/card.mjs +57 -46
  48. package/esm2022/card/module.mjs +7 -8
  49. package/esm2022/checkbox/checkbox-required-validator.mjs +6 -4
  50. package/esm2022/checkbox/checkbox.mjs +5 -6
  51. package/esm2022/checkbox/module.mjs +11 -12
  52. package/esm2022/chips/chip-action.mjs +5 -4
  53. package/esm2022/chips/chip-edit-input.mjs +5 -4
  54. package/esm2022/chips/chip-grid.mjs +39 -51
  55. package/esm2022/chips/chip-icons.mjs +13 -10
  56. package/esm2022/chips/chip-input.mjs +5 -4
  57. package/esm2022/chips/chip-listbox.mjs +5 -5
  58. package/esm2022/chips/chip-option.mjs +7 -7
  59. package/esm2022/chips/chip-row.mjs +7 -8
  60. package/esm2022/chips/chip-set.mjs +5 -5
  61. package/esm2022/chips/chip.mjs +5 -6
  62. package/esm2022/chips/module.mjs +7 -8
  63. package/esm2022/chips/tokens.mjs +8 -2
  64. package/esm2022/core/common-behaviors/common-module.mjs +4 -4
  65. package/esm2022/core/common-behaviors/error-state.mjs +50 -11
  66. package/esm2022/core/common-behaviors/index.mjs +2 -2
  67. package/esm2022/core/datetime/index.mjs +8 -8
  68. package/esm2022/core/datetime/native-date-adapter.mjs +3 -3
  69. package/esm2022/core/error/error-options.mjs +6 -6
  70. package/esm2022/core/line/line.mjs +10 -10
  71. package/esm2022/core/option/index.mjs +6 -7
  72. package/esm2022/core/option/optgroup.mjs +5 -5
  73. package/esm2022/core/option/option.mjs +9 -9
  74. package/esm2022/core/private/ripple-loader.mjs +3 -3
  75. package/esm2022/core/ripple/index.mjs +6 -7
  76. package/esm2022/core/ripple/ripple.mjs +5 -4
  77. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +6 -7
  78. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +5 -5
  79. package/esm2022/core/version.mjs +1 -1
  80. package/esm2022/datepicker/calendar-body.mjs +6 -6
  81. package/esm2022/datepicker/calendar.mjs +12 -16
  82. package/esm2022/datepicker/date-range-input-parts.mjs +41 -20
  83. package/esm2022/datepicker/date-range-input.mjs +7 -7
  84. package/esm2022/datepicker/date-range-picker.mjs +5 -4
  85. package/esm2022/datepicker/date-range-selection-strategy.mjs +3 -3
  86. package/esm2022/datepicker/date-selection-model.mjs +9 -9
  87. package/esm2022/datepicker/datepicker-actions.mjs +13 -11
  88. package/esm2022/datepicker/datepicker-base.mjs +23 -20
  89. package/esm2022/datepicker/datepicker-input-base.mjs +6 -5
  90. package/esm2022/datepicker/datepicker-input.mjs +5 -4
  91. package/esm2022/datepicker/datepicker-intl.mjs +3 -3
  92. package/esm2022/datepicker/datepicker-module.mjs +18 -16
  93. package/esm2022/datepicker/datepicker-toggle.mjs +10 -10
  94. package/esm2022/datepicker/datepicker.mjs +5 -4
  95. package/esm2022/datepicker/month-view.mjs +5 -6
  96. package/esm2022/datepicker/multi-year-view.mjs +5 -6
  97. package/esm2022/datepicker/year-view.mjs +5 -6
  98. package/esm2022/dialog/dialog-container.mjs +7 -8
  99. package/esm2022/dialog/dialog-content-directives.mjs +12 -12
  100. package/esm2022/dialog/dialog.mjs +3 -3
  101. package/esm2022/dialog/module.mjs +5 -5
  102. package/esm2022/dialog/testing/dialog-opener.mjs +3 -3
  103. package/esm2022/divider/divider-module.mjs +6 -7
  104. package/esm2022/divider/divider.mjs +5 -5
  105. package/esm2022/expansion/accordion.mjs +5 -4
  106. package/esm2022/expansion/expansion-module.mjs +16 -9
  107. package/esm2022/expansion/expansion-panel-content.mjs +5 -4
  108. package/esm2022/expansion/expansion-panel-header.mjs +13 -11
  109. package/esm2022/expansion/expansion-panel.mjs +11 -11
  110. package/esm2022/form-field/directives/error.mjs +5 -4
  111. package/esm2022/form-field/directives/floating-label.mjs +5 -4
  112. package/esm2022/form-field/directives/hint.mjs +5 -4
  113. package/esm2022/form-field/directives/label.mjs +5 -4
  114. package/esm2022/form-field/directives/line-ripple.mjs +5 -4
  115. package/esm2022/form-field/directives/notched-outline.mjs +5 -5
  116. package/esm2022/form-field/directives/prefix.mjs +5 -4
  117. package/esm2022/form-field/directives/suffix.mjs +5 -4
  118. package/esm2022/form-field/form-field-control.mjs +3 -3
  119. package/esm2022/form-field/form-field.mjs +14 -13
  120. package/esm2022/form-field/module.mjs +16 -18
  121. package/esm2022/grid-list/grid-list-module.mjs +15 -11
  122. package/esm2022/grid-list/grid-list.mjs +5 -5
  123. package/esm2022/grid-list/grid-tile.mjs +21 -18
  124. package/esm2022/grid-list/tile-coordinator.mjs +1 -1
  125. package/esm2022/icon/icon-module.mjs +6 -7
  126. package/esm2022/icon/icon-registry.mjs +3 -3
  127. package/esm2022/icon/icon.mjs +5 -5
  128. package/esm2022/icon/testing/fake-icon-registry.mjs +7 -7
  129. package/esm2022/input/input.mjs +28 -30
  130. package/esm2022/input/module.mjs +6 -7
  131. package/esm2022/input/public-api.mjs +3 -1
  132. package/esm2022/list/action-list.mjs +5 -5
  133. package/esm2022/list/list-base.mjs +9 -7
  134. package/esm2022/list/list-item-sections.mjs +25 -19
  135. package/esm2022/list/list-module.mjs +15 -16
  136. package/esm2022/list/list-option.mjs +8 -8
  137. package/esm2022/list/list.mjs +10 -10
  138. package/esm2022/list/nav-list.mjs +5 -5
  139. package/esm2022/list/selection-list.mjs +5 -5
  140. package/esm2022/list/subheader.mjs +5 -4
  141. package/esm2022/menu/menu-content.mjs +5 -4
  142. package/esm2022/menu/menu-item.mjs +6 -6
  143. package/esm2022/menu/menu-trigger.mjs +12 -5
  144. package/esm2022/menu/menu.mjs +6 -6
  145. package/esm2022/menu/module.mjs +25 -7
  146. package/esm2022/paginator/module.mjs +6 -7
  147. package/esm2022/paginator/paginator-intl.mjs +3 -3
  148. package/esm2022/paginator/paginator.mjs +10 -11
  149. package/esm2022/progress-bar/module.mjs +6 -6
  150. package/esm2022/progress-bar/progress-bar.mjs +5 -5
  151. package/esm2022/progress-spinner/module.mjs +6 -7
  152. package/esm2022/progress-spinner/progress-spinner.mjs +6 -6
  153. package/esm2022/radio/module.mjs +6 -7
  154. package/esm2022/radio/radio.mjs +10 -9
  155. package/esm2022/select/module.mjs +21 -7
  156. package/esm2022/select/public-api.mjs +5 -1
  157. package/esm2022/select/select.mjs +51 -42
  158. package/esm2022/sidenav/drawer.mjs +13 -12
  159. package/esm2022/sidenav/sidenav-module.mjs +14 -10
  160. package/esm2022/sidenav/sidenav.mjs +13 -12
  161. package/esm2022/slide-toggle/module.mjs +20 -12
  162. package/esm2022/slide-toggle/slide-toggle-required-validator.mjs +5 -4
  163. package/esm2022/slide-toggle/slide-toggle.mjs +6 -6
  164. package/esm2022/slider/module.mjs +19 -7
  165. package/esm2022/slider/slider-input.mjs +9 -7
  166. package/esm2022/slider/slider-thumb.mjs +5 -6
  167. package/esm2022/slider/slider.mjs +6 -6
  168. package/esm2022/snack-bar/module.mjs +6 -6
  169. package/esm2022/snack-bar/simple-snack-bar.mjs +6 -8
  170. package/esm2022/snack-bar/snack-bar-container.mjs +7 -8
  171. package/esm2022/snack-bar/snack-bar-content.mjs +9 -9
  172. package/esm2022/snack-bar/snack-bar-ref.mjs +1 -1
  173. package/esm2022/snack-bar/snack-bar.mjs +3 -3
  174. package/esm2022/sort/sort-header-intl.mjs +3 -3
  175. package/esm2022/sort/sort-header.mjs +5 -5
  176. package/esm2022/sort/sort-module.mjs +6 -7
  177. package/esm2022/sort/sort.mjs +5 -4
  178. package/esm2022/stepper/step-content.mjs +5 -4
  179. package/esm2022/stepper/step-header.mjs +8 -8
  180. package/esm2022/stepper/step-label.mjs +5 -4
  181. package/esm2022/stepper/stepper-button.mjs +9 -7
  182. package/esm2022/stepper/stepper-icon.mjs +5 -4
  183. package/esm2022/stepper/stepper-intl.mjs +3 -3
  184. package/esm2022/stepper/stepper-module.mjs +17 -16
  185. package/esm2022/stepper/stepper.mjs +14 -16
  186. package/esm2022/table/cell.mjs +29 -22
  187. package/esm2022/table/module.mjs +7 -8
  188. package/esm2022/table/row.mjs +33 -24
  189. package/esm2022/table/table.mjs +11 -11
  190. package/esm2022/table/text-column.mjs +8 -6
  191. package/esm2022/tabs/module.mjs +10 -43
  192. package/esm2022/tabs/paginated-tab-header.mjs +3 -3
  193. package/esm2022/tabs/tab-body.mjs +10 -8
  194. package/esm2022/tabs/tab-content.mjs +5 -4
  195. package/esm2022/tabs/tab-group.mjs +20 -13
  196. package/esm2022/tabs/tab-header.mjs +7 -7
  197. package/esm2022/tabs/tab-label-wrapper.mjs +5 -4
  198. package/esm2022/tabs/tab-label.mjs +5 -4
  199. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +17 -17
  200. package/esm2022/tabs/tab.mjs +5 -5
  201. package/esm2022/toolbar/toolbar-module.mjs +6 -7
  202. package/esm2022/toolbar/toolbar.mjs +9 -8
  203. package/esm2022/tooltip/module.mjs +6 -7
  204. package/esm2022/tooltip/tooltip.mjs +18 -12
  205. package/esm2022/tree/node.mjs +13 -10
  206. package/esm2022/tree/outlet.mjs +5 -4
  207. package/esm2022/tree/padding.mjs +5 -4
  208. package/esm2022/tree/toggle.mjs +5 -4
  209. package/esm2022/tree/tree-module.mjs +7 -8
  210. package/esm2022/tree/tree.mjs +5 -6
  211. package/expansion/_expansion-theme.scss +56 -22
  212. package/expansion/index.d.ts +15 -15
  213. package/fesm2022/autocomplete.mjs +60 -27
  214. package/fesm2022/autocomplete.mjs.map +1 -1
  215. package/fesm2022/badge.mjs +9 -9
  216. package/fesm2022/badge.mjs.map +1 -1
  217. package/fesm2022/bottom-sheet.mjs +25 -26
  218. package/fesm2022/bottom-sheet.mjs.map +1 -1
  219. package/fesm2022/button-toggle.mjs +14 -15
  220. package/fesm2022/button-toggle.mjs.map +1 -1
  221. package/fesm2022/button.mjs +53 -49
  222. package/fesm2022/button.mjs.map +1 -1
  223. package/fesm2022/card.mjs +62 -52
  224. package/fesm2022/card.mjs.map +1 -1
  225. package/fesm2022/checkbox.mjs +19 -19
  226. package/fesm2022/checkbox.mjs.map +1 -1
  227. package/fesm2022/chips.mjs +94 -96
  228. package/fesm2022/chips.mjs.map +1 -1
  229. package/fesm2022/core.mjs +115 -78
  230. package/fesm2022/core.mjs.map +1 -1
  231. package/fesm2022/datepicker.mjs +178 -146
  232. package/fesm2022/datepicker.mjs.map +1 -1
  233. package/fesm2022/dialog/testing.mjs +2 -2
  234. package/fesm2022/dialog/testing.mjs.map +1 -1
  235. package/fesm2022/dialog.mjs +25 -26
  236. package/fesm2022/dialog.mjs.map +1 -1
  237. package/fesm2022/divider.mjs +9 -10
  238. package/fesm2022/divider.mjs.map +1 -1
  239. package/fesm2022/expansion.mjs +47 -36
  240. package/fesm2022/expansion.mjs.map +1 -1
  241. package/fesm2022/form-field.mjs +61 -48
  242. package/fesm2022/form-field.mjs.map +1 -1
  243. package/fesm2022/grid-list.mjs +38 -31
  244. package/fesm2022/grid-list.mjs.map +1 -1
  245. package/fesm2022/icon/testing.mjs +7 -7
  246. package/fesm2022/icon.mjs +12 -13
  247. package/fesm2022/icon.mjs.map +1 -1
  248. package/fesm2022/input.mjs +33 -35
  249. package/fesm2022/input.mjs.map +1 -1
  250. package/fesm2022/list.mjs +77 -71
  251. package/fesm2022/list.mjs.map +1 -1
  252. package/fesm2022/menu.mjs +51 -27
  253. package/fesm2022/menu.mjs.map +1 -1
  254. package/fesm2022/paginator.mjs +17 -22
  255. package/fesm2022/paginator.mjs.map +1 -1
  256. package/fesm2022/progress-bar.mjs +9 -9
  257. package/fesm2022/progress-bar.mjs.map +1 -1
  258. package/fesm2022/progress-spinner.mjs +10 -12
  259. package/fesm2022/progress-spinner.mjs.map +1 -1
  260. package/fesm2022/radio.mjs +14 -15
  261. package/fesm2022/radio.mjs.map +1 -1
  262. package/fesm2022/select.mjs +72 -48
  263. package/fesm2022/select.mjs.map +1 -1
  264. package/fesm2022/sidenav.mjs +37 -31
  265. package/fesm2022/sidenav.mjs.map +1 -1
  266. package/fesm2022/slide-toggle.mjs +28 -20
  267. package/fesm2022/slide-toggle.mjs.map +1 -1
  268. package/fesm2022/slider.mjs +36 -23
  269. package/fesm2022/slider.mjs.map +1 -1
  270. package/fesm2022/snack-bar.mjs +32 -34
  271. package/fesm2022/snack-bar.mjs.map +1 -1
  272. package/fesm2022/sort.mjs +16 -16
  273. package/fesm2022/sort.mjs.map +1 -1
  274. package/fesm2022/stepper.mjs +58 -55
  275. package/fesm2022/stepper.mjs.map +1 -1
  276. package/fesm2022/table.mjs +81 -63
  277. package/fesm2022/table.mjs.map +1 -1
  278. package/fesm2022/tabs.mjs +408 -424
  279. package/fesm2022/tabs.mjs.map +1 -1
  280. package/fesm2022/toolbar.mjs +13 -13
  281. package/fesm2022/toolbar.mjs.map +1 -1
  282. package/fesm2022/tooltip.mjs +22 -17
  283. package/fesm2022/tooltip.mjs.map +1 -1
  284. package/fesm2022/tree.mjs +34 -29
  285. package/fesm2022/tree.mjs.map +1 -1
  286. package/form-field/index.d.ts +33 -45
  287. package/grid-list/index.d.ts +10 -10
  288. package/icon/_icon-theme.scss +55 -23
  289. package/icon/index.d.ts +4 -4
  290. package/input/index.d.ts +33 -32
  291. package/list/index.d.ts +36 -36
  292. package/menu/_menu-theme.scss +50 -18
  293. package/menu/index.d.ts +12 -12
  294. package/package.json +2 -2
  295. package/paginator/_paginator-theme.scss +62 -29
  296. package/paginator/index.d.ts +6 -6
  297. package/prebuilt-themes/deeppurple-amber.css +1 -1
  298. package/prebuilt-themes/indigo-pink.css +1 -1
  299. package/prebuilt-themes/pink-bluegrey.css +1 -1
  300. package/prebuilt-themes/purple-green.css +1 -1
  301. package/progress-bar/index.d.ts +2 -2
  302. package/progress-spinner/index.d.ts +4 -4
  303. package/radio/index.d.ts +6 -6
  304. package/schematics/ng-add/index.js +1 -1
  305. package/schematics/ng-add/index.mjs +1 -1
  306. package/schematics/ng-generate/mdc-migration/index_bundled.js +427 -201
  307. package/schematics/ng-generate/mdc-migration/index_bundled.js.map +4 -4
  308. package/schematics/ng-update/index_bundled.js +41 -37
  309. package/schematics/ng-update/index_bundled.js.map +2 -2
  310. package/select/_select-theme.scss +71 -38
  311. package/select/index.d.ts +47 -35
  312. package/sidenav/_sidenav-theme.scss +49 -16
  313. package/sidenav/index.d.ts +11 -11
  314. package/slide-toggle/index.d.ts +6 -6
  315. package/slider/index.d.ts +9 -9
  316. package/sort/index.d.ts +6 -6
  317. package/stepper/index.d.ts +29 -29
  318. package/table/index.d.ts +24 -24
  319. package/tabs/index.d.ts +18 -43
  320. package/toolbar/index.d.ts +5 -5
  321. package/tooltip/index.d.ts +8 -8
  322. package/tree/index.d.ts +15 -15
@@ -1,9 +1,9 @@
1
+ @use 'sass:map';
1
2
  @use 'sass:math';
2
3
  @use '@material/density/functions' as mdc-density-functions;
3
4
  @use '@material/icon-button/icon-button-theme' as mdc-icon-button-theme;
4
5
  @use '../core/tokens/m2/mdc/icon-button' as tokens-mdc-icon-button;
5
6
  @use '../core/tokens/m2/mat/icon-button' as tokens-mat-icon-button;
6
-
7
7
  @use '../core/style/sass-utils';
8
8
  @use './button-base';
9
9
  @use '../core/tokens/token-utils';
@@ -12,9 +12,14 @@
12
12
 
13
13
 
14
14
  @mixin base($theme) {
15
- // Add default values for tokens not related to color, typography, or density.
16
- @include sass-utils.current-selector-or-root() {
17
- @include mdc-icon-button-theme.theme(tokens-mdc-icon-button.get-unthemable-tokens());
15
+ @if inspection.get-theme-version($theme) == 1 {
16
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
17
+ }
18
+ @else {
19
+ // Add default values for tokens not related to color, typography, or density.
20
+ @include sass-utils.current-selector-or-root() {
21
+ @include mdc-icon-button-theme.theme(tokens-mdc-icon-button.get-unthemable-tokens());
22
+ }
18
23
  }
19
24
  }
20
25
 
@@ -34,74 +39,102 @@
34
39
  }
35
40
 
36
41
  @mixin color($theme) {
37
- .mat-mdc-icon-button {
38
- @include _icon-button-variant($theme, null);
42
+ @if inspection.get-theme-version($theme) == 1 {
43
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
44
+ }
45
+ @else {
46
+ .mat-mdc-icon-button {
47
+ @include _icon-button-variant($theme, null);
39
48
 
40
- &.mat-primary {
41
- @include _icon-button-variant($theme, primary);
42
- }
49
+ &.mat-primary {
50
+ @include _icon-button-variant($theme, primary);
51
+ }
43
52
 
44
- &.mat-accent {
45
- @include _icon-button-variant($theme, accent);
46
- }
53
+ &.mat-accent {
54
+ @include _icon-button-variant($theme, accent);
55
+ }
47
56
 
48
- &.mat-warn {
49
- @include _icon-button-variant($theme, warn);
57
+ &.mat-warn {
58
+ @include _icon-button-variant($theme, warn);
59
+ }
50
60
  }
51
61
  }
52
62
  }
53
63
 
54
- @mixin typography($theme) {}
64
+ @mixin typography($theme) {
65
+ @if inspection.get-theme-version($theme) == 1 {
66
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
67
+ }
68
+ @else {}
69
+ }
55
70
 
56
71
  @mixin density($theme) {
57
- $icon-size: 24px;
58
- $density-scale: inspection.get-theme-density($theme);
59
- // Manually apply the expected density theming, and include the padding
60
- // as it was applied before
61
- $calculated-size: mdc-density-functions.prop-value(
62
- $density-config: (
63
- size: (
64
- default: 48px,
65
- maximum: 48px,
66
- minimum: 28px,
72
+ @if inspection.get-theme-version($theme) == 1 {
73
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
74
+ }
75
+ @else {
76
+ $icon-size: 24px;
77
+ $density-scale: inspection.get-theme-density($theme);
78
+ // Manually apply the expected density theming, and include the padding
79
+ // as it was applied before
80
+ $calculated-size: mdc-density-functions.prop-value(
81
+ $density-config: (
82
+ size: (
83
+ default: 48px,
84
+ maximum: 48px,
85
+ minimum: 28px,
86
+ ),
67
87
  ),
68
- ),
69
- $density-scale: $density-scale,
70
- $property-name: size,
71
- );
72
-
73
- // Use `mat-mdc-button-base` to increase the specificity over the button's structural styles.
74
- .mat-mdc-icon-button.mat-mdc-button-base {
75
- // Match the styles that used to be present. This is necessary for backwards
76
- // compat to match the previous implementations selector count (two classes).
77
- @include mdc-icon-button-theme.theme((
78
- state-layer-size: $calculated-size,
79
- ));
80
-
81
- // TODO: Switch calculated-size to "var(--mdc-icon-button-state-layer-size)"
82
- // Currently fails validation because the variable is "undefined"
83
- // in the sass stack.
84
- // TODO: Switch icon-size to "var(--mdc-icon-button-icon-size)". Currently
85
- // fails validation because the variable is "undefined" in the sass stack.
86
- width: var(--mdc-icon-button-state-layer-size);
87
- height: var(--mdc-icon-button-state-layer-size);
88
- padding: math.div($calculated-size - $icon-size, 2);
89
-
90
- @include button-base.mat-private-button-touch-target-density($density-scale);
88
+ $density-scale: $density-scale,
89
+ $property-name: size,
90
+ );
91
+
92
+ // Use `mat-mdc-button-base` to increase the specificity over the button's structural styles.
93
+ .mat-mdc-icon-button.mat-mdc-button-base {
94
+ // Match the styles that used to be present. This is necessary for backwards
95
+ // compat to match the previous implementations selector count (two classes).
96
+ @include mdc-icon-button-theme.theme((
97
+ state-layer-size: $calculated-size,
98
+ ));
99
+
100
+ // TODO: Switch calculated-size to "var(--mdc-icon-button-state-layer-size)"
101
+ // Currently fails validation because the variable is "undefined"
102
+ // in the sass stack.
103
+ // TODO: Switch icon-size to "var(--mdc-icon-button-icon-size)". Currently
104
+ // fails validation because the variable is "undefined" in the sass stack.
105
+ width: var(--mdc-icon-button-state-layer-size);
106
+ height: var(--mdc-icon-button-state-layer-size);
107
+ padding: math.div($calculated-size - $icon-size, 2);
108
+
109
+ @include button-base.mat-private-button-touch-target-density($density-scale);
110
+ }
91
111
  }
92
112
  }
93
113
 
94
114
  @mixin theme($theme) {
95
115
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-icon-button') {
96
- @include base($theme);
97
- @if inspection.theme-has($theme, color) {
98
- @include color($theme);
116
+ @if inspection.get-theme-version($theme) == 1 {
117
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme));
99
118
  }
100
- @if inspection.theme-has($theme, density) {
101
- @include density($theme);
102
- }
103
- @if inspection.theme-has($theme, typography) {
104
- @include typography($theme);
119
+ @else {
120
+ @include base($theme);
121
+ @if inspection.theme-has($theme, color) {
122
+ @include color($theme);
123
+ }
124
+ @if inspection.theme-has($theme, density) {
125
+ @include density($theme);
126
+ }
127
+ @if inspection.theme-has($theme, typography) {
128
+ @include typography($theme);
129
+ }
105
130
  }
106
131
  }
107
132
  }
133
+
134
+ @mixin _theme-from-tokens($tokens) {
135
+ @if ($tokens != ()) {
136
+ @include mdc-icon-button-theme.theme(map.get($tokens, tokens-mdc-icon-button.$prefix));
137
+ @include token-utils.create-token-values(
138
+ tokens-mat-icon-button.$prefix, map.get($tokens, tokens-mat-icon-button.$prefix));
139
+ }
140
+ }
package/button/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { AfterViewInit } from '@angular/core';
2
2
  import { ElementRef } from '@angular/core';
3
3
  import { FocusOrigin } from '@angular/cdk/a11y';
4
4
  import * as i0 from '@angular/core';
5
- import * as i4 from '@angular/material/core';
5
+ import * as i1 from '@angular/material/core';
6
6
  import { InjectionToken } from '@angular/core';
7
7
  import { MatRipple } from '@angular/material/core';
8
8
  import { MatRippleLoader } from '@angular/material/core';
@@ -12,21 +12,21 @@ import { OnInit } from '@angular/core';
12
12
  import { Platform } from '@angular/cdk/platform';
13
13
  import { ThemePalette } from '@angular/material/core';
14
14
 
15
- declare namespace i1 {
15
+ declare namespace i2 {
16
16
  export {
17
17
  MatButton,
18
18
  MatAnchor
19
19
  }
20
20
  }
21
21
 
22
- declare namespace i2 {
22
+ declare namespace i3 {
23
23
  export {
24
24
  MatIconButton,
25
25
  MatIconAnchor
26
26
  }
27
27
  }
28
28
 
29
- declare namespace i3 {
29
+ declare namespace i4 {
30
30
  export {
31
31
  MAT_FAB_DEFAULT_OPTIONS_FACTORY,
32
32
  MatFabDefaultOptions,
@@ -57,7 +57,7 @@ export declare function MAT_FAB_DEFAULT_OPTIONS_FACTORY(): MatFabDefaultOptions;
57
57
  export declare class MatAnchor extends MatAnchorBase {
58
58
  constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string);
59
59
  static ɵfac: i0.ɵɵFactoryDeclaration<MatAnchor, [null, null, null, { optional: true; }]>;
60
- static ɵcmp: i0.ɵɵComponentDeclaration<MatAnchor, "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false, never>;
60
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatAnchor, "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
61
61
  }
62
62
 
63
63
  /**
@@ -86,7 +86,7 @@ declare class MatAnchorBase extends MatButtonBase implements OnInit, OnDestroy {
86
86
  export declare class MatButton extends MatButtonBase {
87
87
  constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string);
88
88
  static ɵfac: i0.ɵɵFactoryDeclaration<MatButton, [null, null, null, { optional: true; }]>;
89
- static ɵcmp: i0.ɵɵComponentDeclaration<MatButton, " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", ["matButton"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false, never>;
89
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatButton, " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", ["matButton"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
90
90
  }
91
91
 
92
92
  /** Base class for all buttons. */
@@ -133,7 +133,7 @@ declare class MatButtonBase implements AfterViewInit, OnDestroy {
133
133
 
134
134
  export declare class MatButtonModule {
135
135
  static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonModule, never>;
136
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatButtonModule, [typeof i1.MatAnchor, typeof i1.MatButton, typeof i2.MatIconAnchor, typeof i3.MatMiniFabAnchor, typeof i3.MatMiniFabButton, typeof i2.MatIconButton, typeof i3.MatFabAnchor, typeof i3.MatFabButton], [typeof i4.MatCommonModule, typeof i4.MatRippleModule], [typeof i1.MatAnchor, typeof i1.MatButton, typeof i2.MatIconAnchor, typeof i2.MatIconButton, typeof i3.MatMiniFabAnchor, typeof i3.MatMiniFabButton, typeof i3.MatFabAnchor, typeof i3.MatFabButton, typeof i4.MatCommonModule]>;
136
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatButtonModule, never, [typeof i1.MatCommonModule, typeof i1.MatRippleModule, typeof i2.MatAnchor, typeof i2.MatButton, typeof i3.MatIconAnchor, typeof i4.MatMiniFabAnchor, typeof i4.MatMiniFabButton, typeof i3.MatIconButton, typeof i4.MatFabAnchor, typeof i4.MatFabButton], [typeof i2.MatAnchor, typeof i2.MatButton, typeof i3.MatIconAnchor, typeof i3.MatIconButton, typeof i4.MatMiniFabAnchor, typeof i4.MatMiniFabButton, typeof i4.MatFabAnchor, typeof i4.MatFabButton, typeof i1.MatCommonModule]>;
137
137
  static ɵinj: i0.ɵɵInjectorDeclaration<MatButtonModule>;
138
138
  }
139
139
 
@@ -150,7 +150,7 @@ export declare class MatFabAnchor extends MatAnchor {
150
150
  extended: boolean;
151
151
  constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string, _options?: MatFabDefaultOptions | undefined);
152
152
  static ɵfac: i0.ɵɵFactoryDeclaration<MatFabAnchor, [null, null, null, { optional: true; }, { optional: true; }]>;
153
- static ɵcmp: i0.ɵɵComponentDeclaration<MatFabAnchor, "a[mat-fab]", ["matButton", "matAnchor"], { "extended": { "alias": "extended"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false, never>;
153
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatFabAnchor, "a[mat-fab]", ["matButton", "matAnchor"], { "extended": { "alias": "extended"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
154
154
  static ngAcceptInputType_extended: unknown;
155
155
  }
156
156
 
@@ -167,7 +167,7 @@ export declare class MatFabButton extends MatButtonBase {
167
167
  extended: boolean;
168
168
  constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string, _options?: MatFabDefaultOptions | undefined);
169
169
  static ɵfac: i0.ɵɵFactoryDeclaration<MatFabButton, [null, null, null, { optional: true; }, { optional: true; }]>;
170
- static ɵcmp: i0.ɵɵComponentDeclaration<MatFabButton, "button[mat-fab]", ["matButton"], { "extended": { "alias": "extended"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false, never>;
170
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatFabButton, "button[mat-fab]", ["matButton"], { "extended": { "alias": "extended"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
171
171
  static ngAcceptInputType_extended: unknown;
172
172
  }
173
173
 
@@ -184,7 +184,7 @@ export declare interface MatFabDefaultOptions {
184
184
  export declare class MatIconAnchor extends MatAnchorBase {
185
185
  constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string);
186
186
  static ɵfac: i0.ɵɵFactoryDeclaration<MatIconAnchor, [null, null, null, { optional: true; }]>;
187
- static ɵcmp: i0.ɵɵComponentDeclaration<MatIconAnchor, "a[mat-icon-button]", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false, never>;
187
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatIconAnchor, "a[mat-icon-button]", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
188
188
  }
189
189
 
190
190
  /**
@@ -195,7 +195,7 @@ export declare class MatIconAnchor extends MatAnchorBase {
195
195
  export declare class MatIconButton extends MatButtonBase {
196
196
  constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string);
197
197
  static ɵfac: i0.ɵɵFactoryDeclaration<MatIconButton, [null, null, null, { optional: true; }]>;
198
- static ɵcmp: i0.ɵɵComponentDeclaration<MatIconButton, "button[mat-icon-button]", ["matButton"], {}, {}, never, ["*"], false, never>;
198
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatIconButton, "button[mat-icon-button]", ["matButton"], {}, {}, never, ["*"], true, never>;
199
199
  }
200
200
 
201
201
  /**
@@ -208,7 +208,7 @@ export declare class MatMiniFabAnchor extends MatAnchor {
208
208
  _isFab: boolean;
209
209
  constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string, _options?: MatFabDefaultOptions | undefined);
210
210
  static ɵfac: i0.ɵɵFactoryDeclaration<MatMiniFabAnchor, [null, null, null, { optional: true; }, { optional: true; }]>;
211
- static ɵcmp: i0.ɵɵComponentDeclaration<MatMiniFabAnchor, "a[mat-mini-fab]", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false, never>;
211
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatMiniFabAnchor, "a[mat-mini-fab]", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
212
212
  }
213
213
 
214
214
  /**
@@ -221,7 +221,7 @@ export declare class MatMiniFabButton extends MatButtonBase {
221
221
  _isFab: boolean;
222
222
  constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string, _options?: MatFabDefaultOptions | undefined);
223
223
  static ɵfac: i0.ɵɵFactoryDeclaration<MatMiniFabButton, [null, null, null, { optional: true; }, { optional: true; }]>;
224
- static ɵcmp: i0.ɵɵComponentDeclaration<MatMiniFabButton, "button[mat-mini-fab]", ["matButton"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false, never>;
224
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatMiniFabButton, "button[mat-mini-fab]", ["matButton"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
225
225
  }
226
226
 
227
227
  export { }
@@ -1,3 +1,4 @@
1
+ @use 'sass:map';
1
2
  @use '../core/theming/theming';
2
3
  @use '../core/theming/inspection';
3
4
  @use '../core/typography/typography';
@@ -7,56 +8,89 @@
7
8
  @use '../core/style/sass-utils';
8
9
 
9
10
  @mixin base($theme) {
10
- @include sass-utils.current-selector-or-root() {
11
- @include token-utils.create-token-values(
12
- tokens-mat-legacy-button-toggle.$prefix,
13
- tokens-mat-legacy-button-toggle.get-unthemable-tokens()
14
- );
15
- @include token-utils.create-token-values(
16
- tokens-mat-standard-button-toggle.$prefix,
17
- tokens-mat-standard-button-toggle.get-unthemable-tokens()
18
- );
11
+ @if inspection.get-theme-version($theme) == 1 {
12
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
13
+ }
14
+ @else {
15
+ @include sass-utils.current-selector-or-root() {
16
+ @include token-utils.create-token-values(
17
+ tokens-mat-legacy-button-toggle.$prefix,
18
+ tokens-mat-legacy-button-toggle.get-unthemable-tokens()
19
+ );
20
+ @include token-utils.create-token-values(
21
+ tokens-mat-standard-button-toggle.$prefix,
22
+ tokens-mat-standard-button-toggle.get-unthemable-tokens()
23
+ );
24
+ }
19
25
  }
20
26
  }
21
27
 
22
28
  @mixin color($theme) {
23
- @include sass-utils.current-selector-or-root() {
24
- @include token-utils.create-token-values(tokens-mat-legacy-button-toggle.$prefix,
25
- tokens-mat-legacy-button-toggle.get-color-tokens($theme));
26
- @include token-utils.create-token-values(tokens-mat-standard-button-toggle.$prefix,
27
- tokens-mat-standard-button-toggle.get-color-tokens($theme));
29
+ @if inspection.get-theme-version($theme) == 1 {
30
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
31
+ }
32
+ @else {
33
+ @include sass-utils.current-selector-or-root() {
34
+ @include token-utils.create-token-values(tokens-mat-legacy-button-toggle.$prefix,
35
+ tokens-mat-legacy-button-toggle.get-color-tokens($theme));
36
+ @include token-utils.create-token-values(tokens-mat-standard-button-toggle.$prefix,
37
+ tokens-mat-standard-button-toggle.get-color-tokens($theme));
38
+ }
28
39
  }
29
40
  }
30
41
 
31
42
  @mixin typography($theme) {
32
- @include sass-utils.current-selector-or-root() {
33
- @include token-utils.create-token-values(tokens-mat-legacy-button-toggle.$prefix,
34
- tokens-mat-legacy-button-toggle.get-typography-tokens($theme));
35
- @include token-utils.create-token-values(tokens-mat-standard-button-toggle.$prefix,
36
- tokens-mat-standard-button-toggle.get-typography-tokens($theme));
43
+ @if inspection.get-theme-version($theme) == 1 {
44
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
45
+ }
46
+ @else {
47
+ @include sass-utils.current-selector-or-root() {
48
+ @include token-utils.create-token-values(tokens-mat-legacy-button-toggle.$prefix,
49
+ tokens-mat-legacy-button-toggle.get-typography-tokens($theme));
50
+ @include token-utils.create-token-values(tokens-mat-standard-button-toggle.$prefix,
51
+ tokens-mat-standard-button-toggle.get-typography-tokens($theme));
52
+ }
37
53
  }
38
54
  }
39
55
 
40
56
  @mixin density($theme) {
41
- @include sass-utils.current-selector-or-root() {
42
- @include token-utils.create-token-values(tokens-mat-legacy-button-toggle.$prefix,
43
- tokens-mat-legacy-button-toggle.get-density-tokens($theme));
44
- @include token-utils.create-token-values(tokens-mat-standard-button-toggle.$prefix,
45
- tokens-mat-standard-button-toggle.get-density-tokens($theme));
57
+ @if inspection.get-theme-version($theme) == 1 {
58
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
59
+ }
60
+ @else {
61
+ @include sass-utils.current-selector-or-root() {
62
+ @include token-utils.create-token-values(tokens-mat-legacy-button-toggle.$prefix,
63
+ tokens-mat-legacy-button-toggle.get-density-tokens($theme));
64
+ @include token-utils.create-token-values(tokens-mat-standard-button-toggle.$prefix,
65
+ tokens-mat-standard-button-toggle.get-density-tokens($theme));
66
+ }
46
67
  }
47
68
  }
48
69
 
49
70
  @mixin theme($theme) {
50
71
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-button-toggle') {
51
- @include base($theme);
52
- @if inspection.theme-has($theme, color) {
53
- @include color($theme);
72
+ @if inspection.get-theme-version($theme) == 1 {
73
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme));
54
74
  }
55
- @if inspection.theme-has($theme, density) {
56
- @include density($theme);
57
- }
58
- @if inspection.theme-has($theme, typography) {
59
- @include typography($theme);
75
+ @else {
76
+ @include base($theme);
77
+ @if inspection.theme-has($theme, color) {
78
+ @include color($theme);
79
+ }
80
+ @if inspection.theme-has($theme, density) {
81
+ @include density($theme);
82
+ }
83
+ @if inspection.theme-has($theme, typography) {
84
+ @include typography($theme);
85
+ }
60
86
  }
61
87
  }
62
88
  }
89
+
90
+ @mixin _theme-from-tokens($tokens) {
91
+ @if ($tokens != ()) {
92
+ @include token-utils.create-token-values(
93
+ tokens-mat-standard-button-toggle.$prefix,
94
+ map.get($tokens, tokens-mat-standard-button-toggle.$prefix));
95
+ }
96
+ }
@@ -6,13 +6,13 @@ import { ElementRef } from '@angular/core';
6
6
  import { EventEmitter } from '@angular/core';
7
7
  import { FocusMonitor } from '@angular/cdk/a11y';
8
8
  import * as i0 from '@angular/core';
9
- import * as i2 from '@angular/material/core';
9
+ import * as i1 from '@angular/material/core';
10
10
  import { InjectionToken } from '@angular/core';
11
11
  import { OnDestroy } from '@angular/core';
12
12
  import { OnInit } from '@angular/core';
13
13
  import { QueryList } from '@angular/core';
14
14
 
15
- declare namespace i1 {
15
+ declare namespace i2 {
16
16
  export {
17
17
  ToggleType,
18
18
  MatButtonToggleAppearance,
@@ -109,7 +109,7 @@ export declare class MatButtonToggle implements OnInit, AfterViewInit, OnDestroy
109
109
  /** Whether the toggle is in single selection mode. */
110
110
  private _isSingleSelector;
111
111
  static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonToggle, [{ optional: true; }, null, null, null, { attribute: "tabindex"; }, { optional: true; }]>;
112
- static ɵcmp: i0.ɵɵComponentDeclaration<MatButtonToggle, "mat-button-toggle", ["matButtonToggle"], { "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "change": "change"; }, never, ["*"], false, never>;
112
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatButtonToggle, "mat-button-toggle", ["matButtonToggle"], { "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "change": "change"; }, never, ["*"], true, never>;
113
113
  static ngAcceptInputType_disableRipple: unknown;
114
114
  static ngAcceptInputType_checked: unknown;
115
115
  static ngAcceptInputType_disabled: unknown;
@@ -228,7 +228,7 @@ export declare class MatButtonToggleGroup implements ControlValueAccessor, OnIni
228
228
  /** Marks all of the child button toggles to be checked. */
229
229
  private _markButtonsForCheck;
230
230
  static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonToggleGroup, [null, { optional: true; }]>;
231
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatButtonToggleGroup, "mat-button-toggle-group", ["matButtonToggleGroup"], { "appearance": { "alias": "appearance"; "required": false; }; "name": { "alias": "name"; "required": false; }; "vertical": { "alias": "vertical"; "required": false; }; "value": { "alias": "value"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; "change": "change"; }, ["_buttonToggles"], never, false, never>;
231
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatButtonToggleGroup, "mat-button-toggle-group", ["matButtonToggleGroup"], { "appearance": { "alias": "appearance"; "required": false; }; "name": { "alias": "name"; "required": false; }; "vertical": { "alias": "vertical"; "required": false; }; "value": { "alias": "value"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; "change": "change"; }, ["_buttonToggles"], never, true, never>;
232
232
  static ngAcceptInputType_vertical: unknown;
233
233
  static ngAcceptInputType_multiple: unknown;
234
234
  static ngAcceptInputType_disabled: unknown;
@@ -236,7 +236,7 @@ export declare class MatButtonToggleGroup implements ControlValueAccessor, OnIni
236
236
 
237
237
  export declare class MatButtonToggleModule {
238
238
  static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonToggleModule, never>;
239
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatButtonToggleModule, [typeof i1.MatButtonToggleGroup, typeof i1.MatButtonToggle], [typeof i2.MatCommonModule, typeof i2.MatRippleModule], [typeof i2.MatCommonModule, typeof i1.MatButtonToggleGroup, typeof i1.MatButtonToggle]>;
239
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatButtonToggleModule, never, [typeof i1.MatCommonModule, typeof i1.MatRippleModule, typeof i2.MatButtonToggleGroup, typeof i2.MatButtonToggle], [typeof i1.MatCommonModule, typeof i2.MatButtonToggleGroup, typeof i2.MatButtonToggle]>;
240
240
  static ɵinj: i0.ɵɵInjectorDeclaration<MatButtonToggleModule>;
241
241
  }
242
242
 
package/card/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as i0 from '@angular/core';
2
- import * as i2 from '@angular/material/core';
3
- import * as i3 from '@angular/common';
2
+ import * as i1 from '@angular/material/core';
3
+ import * as i2 from '@angular/common';
4
4
  import { InjectionToken } from '@angular/core';
5
5
 
6
- declare namespace i1 {
6
+ declare namespace i3 {
7
7
  export {
8
8
  MatCardAppearance,
9
9
  MatCardConfig,
@@ -38,7 +38,7 @@ export declare class MatCard {
38
38
  appearance: MatCardAppearance;
39
39
  constructor(config?: MatCardConfig);
40
40
  static ɵfac: i0.ɵɵFactoryDeclaration<MatCard, [{ optional: true; }]>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<MatCard, "mat-card", ["matCard"], { "appearance": { "alias": "appearance"; "required": false; }; }, {}, never, ["*"], false, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatCard, "mat-card", ["matCard"], { "appearance": { "alias": "appearance"; "required": false; }; }, {}, never, ["*"], true, never>;
42
42
  }
43
43
 
44
44
  /**
@@ -52,7 +52,7 @@ export declare class MatCardActions {
52
52
  /** Position of the actions inside the card. */
53
53
  align: 'start' | 'end';
54
54
  static ɵfac: i0.ɵɵFactoryDeclaration<MatCardActions, never>;
55
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardActions, "mat-card-actions", ["matCardActions"], { "align": { "alias": "align"; "required": false; }; }, {}, never, never, false, never>;
55
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardActions, "mat-card-actions", ["matCardActions"], { "align": { "alias": "align"; "required": false; }; }, {}, never, never, true, never>;
56
56
  }
57
57
 
58
58
  export declare type MatCardAppearance = 'outlined' | 'raised';
@@ -68,7 +68,7 @@ export declare type MatCardAppearance = 'outlined' | 'raised';
68
68
  */
69
69
  export declare class MatCardAvatar {
70
70
  static ɵfac: i0.ɵɵFactoryDeclaration<MatCardAvatar, never>;
71
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardAvatar, "[mat-card-avatar], [matCardAvatar]", never, {}, {}, never, never, false, never>;
71
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardAvatar, "[mat-card-avatar], [matCardAvatar]", never, {}, {}, never, never, true, never>;
72
72
  }
73
73
 
74
74
  /** Object that can be used to configure the default options for the card module. */
@@ -86,7 +86,7 @@ export declare interface MatCardConfig {
86
86
  */
87
87
  export declare class MatCardContent {
88
88
  static ɵfac: i0.ɵɵFactoryDeclaration<MatCardContent, never>;
89
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardContent, "mat-card-content", never, {}, {}, never, never, false, never>;
89
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardContent, "mat-card-content", never, {}, {}, never, never, true, never>;
90
90
  }
91
91
 
92
92
  /**
@@ -98,7 +98,7 @@ export declare class MatCardContent {
98
98
  */
99
99
  export declare class MatCardFooter {
100
100
  static ɵfac: i0.ɵɵFactoryDeclaration<MatCardFooter, never>;
101
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardFooter, "mat-card-footer", never, {}, {}, never, never, false, never>;
101
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardFooter, "mat-card-footer", never, {}, {}, never, never, true, never>;
102
102
  }
103
103
 
104
104
  /**
@@ -111,7 +111,7 @@ export declare class MatCardFooter {
111
111
  */
112
112
  export declare class MatCardHeader {
113
113
  static ɵfac: i0.ɵɵFactoryDeclaration<MatCardHeader, never>;
114
- static ɵcmp: i0.ɵɵComponentDeclaration<MatCardHeader, "mat-card-header", never, {}, {}, never, ["[mat-card-avatar], [matCardAvatar]", "mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]", "*"], false, never>;
114
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatCardHeader, "mat-card-header", never, {}, {}, never, ["[mat-card-avatar], [matCardAvatar]", "mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]", "*"], true, never>;
115
115
  }
116
116
 
117
117
  /**
@@ -125,31 +125,31 @@ export declare class MatCardHeader {
125
125
  */
126
126
  export declare class MatCardImage {
127
127
  static ɵfac: i0.ɵɵFactoryDeclaration<MatCardImage, never>;
128
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardImage, "[mat-card-image], [matCardImage]", never, {}, {}, never, never, false, never>;
128
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardImage, "[mat-card-image], [matCardImage]", never, {}, {}, never, never, true, never>;
129
129
  }
130
130
 
131
131
  /** Same as `MatCardImage`, but large. */
132
132
  export declare class MatCardLgImage {
133
133
  static ɵfac: i0.ɵɵFactoryDeclaration<MatCardLgImage, never>;
134
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardLgImage, "[mat-card-lg-image], [matCardImageLarge]", never, {}, {}, never, never, false, never>;
134
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardLgImage, "[mat-card-lg-image], [matCardImageLarge]", never, {}, {}, never, never, true, never>;
135
135
  }
136
136
 
137
137
  /** Same as `MatCardImage`, but medium. */
138
138
  export declare class MatCardMdImage {
139
139
  static ɵfac: i0.ɵɵFactoryDeclaration<MatCardMdImage, never>;
140
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardMdImage, "[mat-card-md-image], [matCardImageMedium]", never, {}, {}, never, never, false, never>;
140
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardMdImage, "[mat-card-md-image], [matCardImageMedium]", never, {}, {}, never, never, true, never>;
141
141
  }
142
142
 
143
143
  export declare class MatCardModule {
144
144
  static ɵfac: i0.ɵɵFactoryDeclaration<MatCardModule, never>;
145
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatCardModule, [typeof i1.MatCard, typeof i1.MatCardActions, typeof i1.MatCardAvatar, typeof i1.MatCardContent, typeof i1.MatCardFooter, typeof i1.MatCardHeader, typeof i1.MatCardImage, typeof i1.MatCardLgImage, typeof i1.MatCardMdImage, typeof i1.MatCardSmImage, typeof i1.MatCardSubtitle, typeof i1.MatCardTitle, typeof i1.MatCardTitleGroup, typeof i1.MatCardXlImage], [typeof i2.MatCommonModule, typeof i3.CommonModule], [typeof i1.MatCard, typeof i1.MatCardActions, typeof i1.MatCardAvatar, typeof i1.MatCardContent, typeof i1.MatCardFooter, typeof i1.MatCardHeader, typeof i1.MatCardImage, typeof i1.MatCardLgImage, typeof i1.MatCardMdImage, typeof i1.MatCardSmImage, typeof i1.MatCardSubtitle, typeof i1.MatCardTitle, typeof i1.MatCardTitleGroup, typeof i1.MatCardXlImage, typeof i2.MatCommonModule]>;
145
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatCardModule, never, [typeof i1.MatCommonModule, typeof i2.CommonModule, typeof i3.MatCard, typeof i3.MatCardActions, typeof i3.MatCardAvatar, typeof i3.MatCardContent, typeof i3.MatCardFooter, typeof i3.MatCardHeader, typeof i3.MatCardImage, typeof i3.MatCardLgImage, typeof i3.MatCardMdImage, typeof i3.MatCardSmImage, typeof i3.MatCardSubtitle, typeof i3.MatCardTitle, typeof i3.MatCardTitleGroup, typeof i3.MatCardXlImage], [typeof i3.MatCard, typeof i3.MatCardActions, typeof i3.MatCardAvatar, typeof i3.MatCardContent, typeof i3.MatCardFooter, typeof i3.MatCardHeader, typeof i3.MatCardImage, typeof i3.MatCardLgImage, typeof i3.MatCardMdImage, typeof i3.MatCardSmImage, typeof i3.MatCardSubtitle, typeof i3.MatCardTitle, typeof i3.MatCardTitleGroup, typeof i3.MatCardXlImage, typeof i1.MatCommonModule]>;
146
146
  static ɵinj: i0.ɵɵInjectorDeclaration<MatCardModule>;
147
147
  }
148
148
 
149
149
  /** Same as `MatCardImage`, but small. */
150
150
  export declare class MatCardSmImage {
151
151
  static ɵfac: i0.ɵɵFactoryDeclaration<MatCardSmImage, never>;
152
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardSmImage, "[mat-card-sm-image], [matCardImageSmall]", never, {}, {}, never, never, false, never>;
152
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardSmImage, "[mat-card-sm-image], [matCardImageSmall]", never, {}, {}, never, never, true, never>;
153
153
  }
154
154
 
155
155
  /**
@@ -161,7 +161,7 @@ export declare class MatCardSmImage {
161
161
  */
162
162
  export declare class MatCardSubtitle {
163
163
  static ɵfac: i0.ɵɵFactoryDeclaration<MatCardSubtitle, never>;
164
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardSubtitle, "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]", never, {}, {}, never, never, false, never>;
164
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardSubtitle, "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]", never, {}, {}, never, never, true, never>;
165
165
  }
166
166
 
167
167
  /**
@@ -172,7 +172,7 @@ export declare class MatCardSubtitle {
172
172
  */
173
173
  export declare class MatCardTitle {
174
174
  static ɵfac: i0.ɵɵFactoryDeclaration<MatCardTitle, never>;
175
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardTitle, "mat-card-title, [mat-card-title], [matCardTitle]", never, {}, {}, never, never, false, never>;
175
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardTitle, "mat-card-title, [mat-card-title], [matCardTitle]", never, {}, {}, never, never, true, never>;
176
176
  }
177
177
 
178
178
  /**
@@ -182,13 +182,13 @@ export declare class MatCardTitle {
182
182
  */
183
183
  export declare class MatCardTitleGroup {
184
184
  static ɵfac: i0.ɵɵFactoryDeclaration<MatCardTitleGroup, never>;
185
- static ɵcmp: i0.ɵɵComponentDeclaration<MatCardTitleGroup, "mat-card-title-group", never, {}, {}, never, ["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]", "[mat-card-image], [matCardImage],\n [mat-card-sm-image], [matCardImageSmall],\n [mat-card-md-image], [matCardImageMedium],\n [mat-card-lg-image], [matCardImageLarge],\n [mat-card-xl-image], [matCardImageXLarge]", "*"], false, never>;
185
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatCardTitleGroup, "mat-card-title-group", never, {}, {}, never, ["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]", "[mat-card-image], [matCardImage],\n [mat-card-sm-image], [matCardImageSmall],\n [mat-card-md-image], [matCardImageMedium],\n [mat-card-lg-image], [matCardImageLarge],\n [mat-card-xl-image], [matCardImageXLarge]", "*"], true, never>;
186
186
  }
187
187
 
188
188
  /** Same as `MatCardImage`, but extra-large. */
189
189
  export declare class MatCardXlImage {
190
190
  static ɵfac: i0.ɵɵFactoryDeclaration<MatCardXlImage, never>;
191
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardXlImage, "[mat-card-xl-image], [matCardImageXLarge]", never, {}, {}, never, never, false, never>;
191
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardXlImage, "[mat-card-xl-image], [matCardImageXLarge]", never, {}, {}, never, never, true, never>;
192
192
  }
193
193
 
194
194
  export { }