@angular/material 17.0.2 → 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 (329) hide show
  1. package/autocomplete/index.d.ts +14 -10
  2. package/badge/index.d.ts +5 -5
  3. package/bottom-sheet/index.d.ts +6 -6
  4. package/button/_fab-theme.scss +65 -32
  5. package/button/_icon-button-theme.scss +91 -54
  6. package/button/index.d.ts +13 -13
  7. package/button-toggle/index.d.ts +5 -5
  8. package/card/index.d.ts +18 -18
  9. package/card/testing/index.d.ts +1 -1
  10. package/checkbox/index.d.ts +7 -7
  11. package/chips/index.d.ts +103 -126
  12. package/core/index.d.ts +51 -32
  13. package/core/tokens/m2/_index.scss +10 -0
  14. package/datepicker/index.d.ts +109 -109
  15. package/datepicker/testing/index.d.ts +1 -1
  16. package/dialog/index.d.ts +1 -1
  17. package/dialog/testing/index.d.ts +1 -1
  18. package/divider/index.d.ts +4 -4
  19. package/esm2022/autocomplete/autocomplete-origin.mjs +3 -2
  20. package/esm2022/autocomplete/autocomplete-trigger.mjs +11 -4
  21. package/esm2022/autocomplete/autocomplete.mjs +4 -4
  22. package/esm2022/autocomplete/module.mjs +21 -5
  23. package/esm2022/autocomplete/public-api.mjs +3 -1
  24. package/esm2022/badge/badge-module.mjs +3 -4
  25. package/esm2022/badge/badge.mjs +3 -2
  26. package/esm2022/bottom-sheet/bottom-sheet-container.mjs +4 -4
  27. package/esm2022/bottom-sheet/bottom-sheet-module.mjs +6 -5
  28. package/esm2022/bottom-sheet/bottom-sheet.mjs +3 -4
  29. package/esm2022/button/button.mjs +5 -5
  30. package/esm2022/button/fab.mjs +9 -9
  31. package/esm2022/button/icon-button.mjs +5 -5
  32. package/esm2022/button/module.mjs +14 -10
  33. package/esm2022/button-toggle/button-toggle-module.mjs +3 -4
  34. package/esm2022/button-toggle/button-toggle.mjs +6 -5
  35. package/esm2022/card/card.mjs +29 -18
  36. package/esm2022/card/module.mjs +4 -5
  37. package/esm2022/card/testing/card-harness.mjs +9 -1
  38. package/esm2022/checkbox/checkbox-required-validator.mjs +4 -2
  39. package/esm2022/checkbox/checkbox.mjs +31 -17
  40. package/esm2022/checkbox/module.mjs +5 -6
  41. package/esm2022/chips/chip-action.mjs +15 -13
  42. package/esm2022/chips/chip-edit-input.mjs +3 -2
  43. package/esm2022/chips/chip-grid.mjs +41 -40
  44. package/esm2022/chips/chip-icons.mjs +7 -4
  45. package/esm2022/chips/chip-input.mjs +15 -17
  46. package/esm2022/chips/chip-listbox.mjs +20 -23
  47. package/esm2022/chips/chip-option.mjs +13 -12
  48. package/esm2022/chips/chip-row.mjs +6 -7
  49. package/esm2022/chips/chip-set.mjs +20 -19
  50. package/esm2022/chips/chip.mjs +50 -44
  51. package/esm2022/chips/module.mjs +4 -5
  52. package/esm2022/chips/tokens.mjs +8 -2
  53. package/esm2022/core/common-behaviors/error-state.mjs +50 -11
  54. package/esm2022/core/common-behaviors/index.mjs +2 -2
  55. package/esm2022/core/line/line.mjs +5 -5
  56. package/esm2022/core/option/index.mjs +3 -4
  57. package/esm2022/core/option/optgroup.mjs +3 -3
  58. package/esm2022/core/option/option.mjs +7 -7
  59. package/esm2022/core/ripple/index.mjs +3 -4
  60. package/esm2022/core/ripple/ripple-ref.mjs +10 -2
  61. package/esm2022/core/ripple/ripple-renderer.mjs +11 -11
  62. package/esm2022/core/ripple/ripple.mjs +3 -2
  63. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +3 -4
  64. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +3 -3
  65. package/esm2022/core/version.mjs +1 -1
  66. package/esm2022/datepicker/calendar-body.mjs +4 -4
  67. package/esm2022/datepicker/calendar.mjs +8 -12
  68. package/esm2022/datepicker/date-range-input-parts.mjs +35 -14
  69. package/esm2022/datepicker/date-range-input.mjs +13 -13
  70. package/esm2022/datepicker/date-range-picker.mjs +3 -2
  71. package/esm2022/datepicker/datepicker-actions.mjs +7 -5
  72. package/esm2022/datepicker/datepicker-base.mjs +57 -62
  73. package/esm2022/datepicker/datepicker-input-base.mjs +8 -7
  74. package/esm2022/datepicker/datepicker-input.mjs +3 -2
  75. package/esm2022/datepicker/datepicker-module.mjs +15 -13
  76. package/esm2022/datepicker/datepicker-toggle.mjs +10 -10
  77. package/esm2022/datepicker/datepicker.mjs +3 -2
  78. package/esm2022/datepicker/month-view.mjs +3 -4
  79. package/esm2022/datepicker/multi-year-view.mjs +3 -4
  80. package/esm2022/datepicker/testing/calendar-harness.mjs +11 -4
  81. package/esm2022/datepicker/year-view.mjs +3 -4
  82. package/esm2022/dialog/dialog-container.mjs +5 -6
  83. package/esm2022/dialog/dialog-ref.mjs +10 -4
  84. package/esm2022/dialog/module.mjs +2 -2
  85. package/esm2022/dialog/testing/dialog-harness.mjs +11 -4
  86. package/esm2022/dialog/testing/dialog-opener.mjs +3 -3
  87. package/esm2022/dialog/testing/public-api.mjs +2 -2
  88. package/esm2022/divider/divider-module.mjs +3 -4
  89. package/esm2022/divider/divider.mjs +3 -3
  90. package/esm2022/expansion/accordion.mjs +8 -13
  91. package/esm2022/expansion/expansion-module.mjs +14 -7
  92. package/esm2022/expansion/expansion-panel-content.mjs +3 -2
  93. package/esm2022/expansion/expansion-panel-header.mjs +18 -16
  94. package/esm2022/expansion/expansion-panel.mjs +11 -11
  95. package/esm2022/expansion/testing/expansion-harness.mjs +14 -6
  96. package/esm2022/form-field/directives/error.mjs +3 -2
  97. package/esm2022/form-field/directives/floating-label.mjs +3 -2
  98. package/esm2022/form-field/directives/hint.mjs +3 -2
  99. package/esm2022/form-field/directives/label.mjs +3 -2
  100. package/esm2022/form-field/directives/line-ripple.mjs +3 -2
  101. package/esm2022/form-field/directives/notched-outline.mjs +3 -3
  102. package/esm2022/form-field/directives/prefix.mjs +3 -2
  103. package/esm2022/form-field/directives/suffix.mjs +3 -2
  104. package/esm2022/form-field/form-field.mjs +12 -11
  105. package/esm2022/form-field/module.mjs +14 -16
  106. package/esm2022/grid-list/grid-list-module.mjs +13 -9
  107. package/esm2022/grid-list/grid-list.mjs +3 -3
  108. package/esm2022/grid-list/grid-tile.mjs +11 -8
  109. package/esm2022/grid-list/testing/grid-tile-harness.mjs +9 -3
  110. package/esm2022/grid-list/tile-coordinator.mjs +1 -1
  111. package/esm2022/icon/icon-module.mjs +3 -4
  112. package/esm2022/icon/icon.mjs +25 -29
  113. package/esm2022/icon/testing/icon-harness-filters.mjs +7 -2
  114. package/esm2022/icon/testing/icon-harness.mjs +4 -3
  115. package/esm2022/input/input.mjs +26 -28
  116. package/esm2022/input/module.mjs +3 -4
  117. package/esm2022/input/public-api.mjs +3 -1
  118. package/esm2022/list/action-list.mjs +3 -3
  119. package/esm2022/list/list-base.mjs +5 -3
  120. package/esm2022/list/list-item-sections.mjs +13 -7
  121. package/esm2022/list/list-module.mjs +12 -13
  122. package/esm2022/list/list-option.mjs +6 -6
  123. package/esm2022/list/list.mjs +6 -6
  124. package/esm2022/list/nav-list.mjs +3 -3
  125. package/esm2022/list/selection-list.mjs +3 -3
  126. package/esm2022/list/subheader.mjs +3 -2
  127. package/esm2022/list/testing/list-item-harness-base.mjs +18 -6
  128. package/esm2022/list/testing/public-api.mjs +2 -2
  129. package/esm2022/menu/menu-content.mjs +3 -2
  130. package/esm2022/menu/menu-item.mjs +4 -4
  131. package/esm2022/menu/menu-trigger.mjs +10 -3
  132. package/esm2022/menu/menu.mjs +4 -4
  133. package/esm2022/menu/module.mjs +23 -5
  134. package/esm2022/paginator/module.mjs +4 -5
  135. package/esm2022/paginator/paginator.mjs +37 -41
  136. package/esm2022/progress-bar/module.mjs +3 -3
  137. package/esm2022/progress-bar/progress-bar.mjs +25 -20
  138. package/esm2022/progress-spinner/module.mjs +3 -4
  139. package/esm2022/progress-spinner/progress-spinner.mjs +35 -34
  140. package/esm2022/radio/module.mjs +3 -4
  141. package/esm2022/radio/radio.mjs +42 -35
  142. package/esm2022/select/module.mjs +19 -5
  143. package/esm2022/select/public-api.mjs +5 -1
  144. package/esm2022/select/select.mjs +83 -66
  145. package/esm2022/sidenav/drawer.mjs +7 -6
  146. package/esm2022/sidenav/sidenav-module.mjs +12 -8
  147. package/esm2022/sidenav/sidenav.mjs +7 -6
  148. package/esm2022/slide-toggle/module.mjs +15 -7
  149. package/esm2022/slide-toggle/slide-toggle-required-validator.mjs +3 -2
  150. package/esm2022/slide-toggle/slide-toggle.mjs +4 -4
  151. package/esm2022/slider/module.mjs +17 -5
  152. package/esm2022/slider/slider-input.mjs +26 -23
  153. package/esm2022/slider/slider-interface.mjs +16 -1
  154. package/esm2022/slider/slider-thumb.mjs +8 -9
  155. package/esm2022/slider/slider.mjs +74 -73
  156. package/esm2022/slider/testing/slider-harness-filters.mjs +7 -2
  157. package/esm2022/slider/testing/slider-harness.mjs +4 -3
  158. package/esm2022/slider/testing/slider-thumb-harness.mjs +3 -2
  159. package/esm2022/snack-bar/module.mjs +2 -2
  160. package/esm2022/snack-bar/simple-snack-bar.mjs +4 -6
  161. package/esm2022/snack-bar/snack-bar-container.mjs +5 -6
  162. package/esm2022/snack-bar/snack-bar-ref.mjs +1 -1
  163. package/esm2022/sort/sort-header.mjs +17 -25
  164. package/esm2022/sort/sort-module.mjs +3 -4
  165. package/esm2022/sort/sort.mjs +13 -19
  166. package/esm2022/stepper/step-content.mjs +3 -2
  167. package/esm2022/stepper/step-header.mjs +11 -16
  168. package/esm2022/stepper/step-label.mjs +3 -2
  169. package/esm2022/stepper/stepper-button.mjs +5 -3
  170. package/esm2022/stepper/stepper-icon.mjs +3 -2
  171. package/esm2022/stepper/stepper-module.mjs +14 -13
  172. package/esm2022/stepper/stepper.mjs +11 -13
  173. package/esm2022/stepper/testing/step-harness-filters.mjs +7 -2
  174. package/esm2022/stepper/testing/stepper-harness.mjs +4 -3
  175. package/esm2022/table/cell.mjs +15 -8
  176. package/esm2022/table/module.mjs +4 -5
  177. package/esm2022/table/row.mjs +19 -10
  178. package/esm2022/table/table.mjs +7 -7
  179. package/esm2022/table/text-column.mjs +6 -4
  180. package/esm2022/tabs/module.mjs +8 -41
  181. package/esm2022/tabs/paginated-tab-header.mjs +12 -18
  182. package/esm2022/tabs/tab-body.mjs +6 -4
  183. package/esm2022/tabs/tab-content.mjs +3 -2
  184. package/esm2022/tabs/tab-group.mjs +69 -78
  185. package/esm2022/tabs/tab-header.mjs +10 -16
  186. package/esm2022/tabs/tab-label-wrapper.mjs +13 -8
  187. package/esm2022/tabs/tab-label.mjs +3 -2
  188. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +51 -45
  189. package/esm2022/tabs/tab.mjs +12 -12
  190. package/esm2022/toolbar/testing/toolbar-harness.mjs +7 -2
  191. package/esm2022/toolbar/toolbar-module.mjs +3 -4
  192. package/esm2022/toolbar/toolbar.mjs +14 -18
  193. package/esm2022/tooltip/module.mjs +3 -4
  194. package/esm2022/tooltip/tooltip.mjs +14 -8
  195. package/esm2022/tree/node.mjs +24 -21
  196. package/esm2022/tree/outlet.mjs +3 -2
  197. package/esm2022/tree/padding.mjs +12 -4
  198. package/esm2022/tree/toggle.mjs +3 -2
  199. package/esm2022/tree/tree-module.mjs +4 -5
  200. package/esm2022/tree/tree.mjs +3 -4
  201. package/expansion/_expansion-theme.scss +56 -22
  202. package/expansion/index.d.ts +25 -33
  203. package/expansion/testing/index.d.ts +1 -1
  204. package/fesm2022/autocomplete.mjs +39 -15
  205. package/fesm2022/autocomplete.mjs.map +1 -1
  206. package/fesm2022/badge.mjs +4 -4
  207. package/fesm2022/badge.mjs.map +1 -1
  208. package/fesm2022/bottom-sheet.mjs +21 -22
  209. package/fesm2022/bottom-sheet.mjs.map +1 -1
  210. package/fesm2022/button-toggle.mjs +7 -8
  211. package/fesm2022/button-toggle.mjs.map +1 -1
  212. package/fesm2022/button.mjs +29 -25
  213. package/fesm2022/button.mjs.map +1 -1
  214. package/fesm2022/card/testing.mjs +9 -1
  215. package/fesm2022/card/testing.mjs.map +1 -1
  216. package/fesm2022/card.mjs +31 -21
  217. package/fesm2022/card.mjs.map +1 -1
  218. package/fesm2022/checkbox.mjs +38 -23
  219. package/fesm2022/checkbox.mjs.map +1 -1
  220. package/fesm2022/chips.mjs +179 -156
  221. package/fesm2022/chips.mjs.map +1 -1
  222. package/fesm2022/core.mjs +87 -42
  223. package/fesm2022/core.mjs.map +1 -1
  224. package/fesm2022/datepicker/testing.mjs +11 -4
  225. package/fesm2022/datepicker/testing.mjs.map +1 -1
  226. package/fesm2022/datepicker.mjs +183 -156
  227. package/fesm2022/datepicker.mjs.map +1 -1
  228. package/fesm2022/dialog/testing.mjs +13 -6
  229. package/fesm2022/dialog/testing.mjs.map +1 -1
  230. package/fesm2022/dialog.mjs +15 -10
  231. package/fesm2022/dialog.mjs.map +1 -1
  232. package/fesm2022/divider.mjs +4 -5
  233. package/fesm2022/divider.mjs.map +1 -1
  234. package/fesm2022/expansion/testing.mjs +14 -6
  235. package/fesm2022/expansion/testing.mjs.map +1 -1
  236. package/fesm2022/expansion.mjs +51 -44
  237. package/fesm2022/expansion.mjs.map +1 -1
  238. package/fesm2022/form-field.mjs +38 -25
  239. package/fesm2022/form-field.mjs.map +1 -1
  240. package/fesm2022/grid-list/testing.mjs +9 -3
  241. package/fesm2022/grid-list/testing.mjs.map +1 -1
  242. package/fesm2022/grid-list.mjs +24 -17
  243. package/fesm2022/grid-list.mjs.map +1 -1
  244. package/fesm2022/icon/testing.mjs +10 -3
  245. package/fesm2022/icon/testing.mjs.map +1 -1
  246. package/fesm2022/icon.mjs +27 -31
  247. package/fesm2022/icon.mjs.map +1 -1
  248. package/fesm2022/input.mjs +28 -30
  249. package/fesm2022/input.mjs.map +1 -1
  250. package/fesm2022/list/testing.mjs +18 -6
  251. package/fesm2022/list/testing.mjs.map +1 -1
  252. package/fesm2022/list.mjs +44 -38
  253. package/fesm2022/list.mjs.map +1 -1
  254. package/fesm2022/menu.mjs +42 -18
  255. package/fesm2022/menu.mjs.map +1 -1
  256. package/fesm2022/paginator.mjs +39 -47
  257. package/fesm2022/paginator.mjs.map +1 -1
  258. package/fesm2022/progress-bar.mjs +27 -21
  259. package/fesm2022/progress-bar.mjs.map +1 -1
  260. package/fesm2022/progress-spinner.mjs +37 -37
  261. package/fesm2022/progress-spinner.mjs.map +1 -1
  262. package/fesm2022/radio.mjs +43 -37
  263. package/fesm2022/radio.mjs.map +1 -1
  264. package/fesm2022/select.mjs +102 -70
  265. package/fesm2022/select.mjs.map +1 -1
  266. package/fesm2022/sidenav.mjs +23 -17
  267. package/fesm2022/sidenav.mjs.map +1 -1
  268. package/fesm2022/slide-toggle.mjs +19 -11
  269. package/fesm2022/slide-toggle.mjs.map +1 -1
  270. package/fesm2022/slider/testing.mjs +11 -4
  271. package/fesm2022/slider/testing.mjs.map +1 -1
  272. package/fesm2022/slider.mjs +133 -102
  273. package/fesm2022/slider.mjs.map +1 -1
  274. package/fesm2022/snack-bar.mjs +13 -15
  275. package/fesm2022/snack-bar.mjs.map +1 -1
  276. package/fesm2022/sort.mjs +29 -42
  277. package/fesm2022/sort.mjs.map +1 -1
  278. package/fesm2022/stepper/testing.mjs +10 -3
  279. package/fesm2022/stepper/testing.mjs.map +1 -1
  280. package/fesm2022/stepper.mjs +42 -43
  281. package/fesm2022/stepper.mjs.map +1 -1
  282. package/fesm2022/table.mjs +44 -26
  283. package/fesm2022/table.mjs.map +1 -1
  284. package/fesm2022/tabs.mjs +594 -621
  285. package/fesm2022/tabs.mjs.map +1 -1
  286. package/fesm2022/toolbar/testing.mjs +7 -2
  287. package/fesm2022/toolbar/testing.mjs.map +1 -1
  288. package/fesm2022/toolbar.mjs +16 -20
  289. package/fesm2022/toolbar.mjs.map +1 -1
  290. package/fesm2022/tooltip.mjs +15 -10
  291. package/fesm2022/tooltip.mjs.map +1 -1
  292. package/fesm2022/tree.mjs +36 -30
  293. package/fesm2022/tree.mjs.map +1 -1
  294. package/form-field/index.d.ts +33 -45
  295. package/grid-list/index.d.ts +10 -10
  296. package/grid-list/testing/index.d.ts +1 -1
  297. package/icon/index.d.ts +14 -20
  298. package/icon/testing/index.d.ts +1 -1
  299. package/input/index.d.ts +33 -32
  300. package/list/index.d.ts +36 -36
  301. package/list/testing/index.d.ts +2 -2
  302. package/menu/index.d.ts +12 -12
  303. package/package.json +7 -7
  304. package/paginator/index.d.ts +21 -22
  305. package/prebuilt-themes/deeppurple-amber.css +1 -1
  306. package/prebuilt-themes/indigo-pink.css +1 -1
  307. package/prebuilt-themes/pink-bluegrey.css +1 -1
  308. package/prebuilt-themes/purple-green.css +1 -1
  309. package/progress-bar/index.d.ts +14 -17
  310. package/progress-spinner/index.d.ts +18 -19
  311. package/radio/index.d.ts +25 -27
  312. package/schematics/ng-add/index.js +2 -2
  313. package/schematics/ng-add/index.mjs +2 -2
  314. package/schematics/ng-generate/mdc-migration/index_bundled.js +11 -4
  315. package/schematics/ng-generate/mdc-migration/index_bundled.js.map +3 -3
  316. package/select/index.d.ts +66 -49
  317. package/sidenav/index.d.ts +11 -11
  318. package/slide-toggle/index.d.ts +6 -6
  319. package/slider/index.d.ts +38 -38
  320. package/slider/testing/index.d.ts +1 -1
  321. package/sort/index.d.ts +19 -24
  322. package/stepper/index.d.ts +33 -43
  323. package/stepper/testing/index.d.ts +1 -1
  324. package/table/index.d.ts +24 -24
  325. package/tabs/index.d.ts +75 -103
  326. package/toolbar/index.d.ts +10 -17
  327. package/toolbar/testing/index.d.ts +1 -1
  328. package/tooltip/index.d.ts +8 -8
  329. package/tree/index.d.ts +26 -28
@@ -8,9 +8,9 @@ import { Directionality } from '@angular/cdk/bidi';
8
8
  import { ElementRef } from '@angular/core';
9
9
  import { EventEmitter } from '@angular/core';
10
10
  import * as i0 from '@angular/core';
11
- import * as i4 from '@angular/cdk/overlay';
12
- import * as i5 from '@angular/material/core';
13
- import * as i6 from '@angular/common';
11
+ import * as i1 from '@angular/cdk/overlay';
12
+ import * as i2 from '@angular/material/core';
13
+ import * as i3 from '@angular/common';
14
14
  import * as i7 from '@angular/cdk/scrolling';
15
15
  import { InjectionToken } from '@angular/core';
16
16
  import { MatFormField } from '@angular/material/form-field';
@@ -37,7 +37,7 @@ import { ViewportRuler } from '@angular/cdk/scrolling';
37
37
  */
38
38
  export declare function getMatAutocompleteMissingPanelError(): Error;
39
39
 
40
- declare namespace i1 {
40
+ declare namespace i4 {
41
41
  export {
42
42
  MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY,
43
43
  MatAutocompleteSelectedEvent,
@@ -48,7 +48,7 @@ declare namespace i1 {
48
48
  }
49
49
  }
50
50
 
51
- declare namespace i2 {
51
+ declare namespace i5 {
52
52
  export {
53
53
  getMatAutocompleteMissingPanelError,
54
54
  MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY,
@@ -59,7 +59,7 @@ declare namespace i2 {
59
59
  }
60
60
  }
61
61
 
62
- declare namespace i3 {
62
+ declare namespace i6 {
63
63
  export {
64
64
  MatAutocompleteOrigin
65
65
  }
@@ -199,7 +199,7 @@ export declare class MatAutocomplete implements AfterContentInit, OnDestroy {
199
199
  private _setThemeClasses;
200
200
  protected _skipPredicate(): boolean;
201
201
  static ɵfac: i0.ɵɵFactoryDeclaration<MatAutocomplete, never>;
202
- static ɵcmp: i0.ɵɵComponentDeclaration<MatAutocomplete, "mat-autocomplete", ["matAutocomplete"], { "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "displayWith": { "alias": "displayWith"; "required": false; }; "autoActiveFirstOption": { "alias": "autoActiveFirstOption"; "required": false; }; "autoSelectActiveOption": { "alias": "autoSelectActiveOption"; "required": false; }; "requireSelection": { "alias": "requireSelection"; "required": false; }; "panelWidth": { "alias": "panelWidth"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "hideSingleSelectionIndicator": { "alias": "hideSingleSelectionIndicator"; "required": false; }; }, { "optionSelected": "optionSelected"; "opened": "opened"; "closed": "closed"; "optionActivated": "optionActivated"; }, ["options", "optionGroups"], ["*"], false, never>;
202
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatAutocomplete, "mat-autocomplete", ["matAutocomplete"], { "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "displayWith": { "alias": "displayWith"; "required": false; }; "autoActiveFirstOption": { "alias": "autoActiveFirstOption"; "required": false; }; "autoSelectActiveOption": { "alias": "autoSelectActiveOption"; "required": false; }; "requireSelection": { "alias": "requireSelection"; "required": false; }; "panelWidth": { "alias": "panelWidth"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "hideSingleSelectionIndicator": { "alias": "hideSingleSelectionIndicator"; "required": false; }; }, { "optionSelected": "optionSelected"; "opened": "opened"; "closed": "closed"; "optionActivated": "optionActivated"; }, ["options", "optionGroups"], ["*"], true, never>;
203
203
  static ngAcceptInputType_autoActiveFirstOption: unknown;
204
204
  static ngAcceptInputType_autoSelectActiveOption: unknown;
205
205
  static ngAcceptInputType_requireSelection: unknown;
@@ -234,7 +234,7 @@ export declare interface MatAutocompleteDefaultOptions {
234
234
 
235
235
  export declare class MatAutocompleteModule {
236
236
  static ɵfac: i0.ɵɵFactoryDeclaration<MatAutocompleteModule, never>;
237
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatAutocompleteModule, [typeof i1.MatAutocomplete, typeof i2.MatAutocompleteTrigger, typeof i3.MatAutocompleteOrigin], [typeof i4.OverlayModule, typeof i5.MatOptionModule, typeof i5.MatCommonModule, typeof i6.CommonModule], [typeof i7.CdkScrollableModule, typeof i1.MatAutocomplete, typeof i5.MatOptionModule, typeof i5.MatCommonModule, typeof i2.MatAutocompleteTrigger, typeof i3.MatAutocompleteOrigin]>;
237
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatAutocompleteModule, never, [typeof i1.OverlayModule, typeof i2.MatOptionModule, typeof i2.MatCommonModule, typeof i3.CommonModule, typeof i4.MatAutocomplete, typeof i5.MatAutocompleteTrigger, typeof i6.MatAutocompleteOrigin], [typeof i7.CdkScrollableModule, typeof i4.MatAutocomplete, typeof i2.MatOptionModule, typeof i2.MatCommonModule, typeof i5.MatAutocompleteTrigger, typeof i6.MatAutocompleteOrigin]>;
238
238
  static ɵinj: i0.ɵɵInjectorDeclaration<MatAutocompleteModule>;
239
239
  }
240
240
 
@@ -249,7 +249,7 @@ export declare class MatAutocompleteOrigin {
249
249
  /** Reference to the element on which the directive is applied. */
250
250
  elementRef: ElementRef<HTMLElement>);
251
251
  static ɵfac: i0.ɵɵFactoryDeclaration<MatAutocompleteOrigin, never>;
252
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatAutocompleteOrigin, "[matAutocompleteOrigin]", ["matAutocompleteOrigin"], {}, {}, never, never, false, never>;
252
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatAutocompleteOrigin, "[matAutocompleteOrigin]", ["matAutocompleteOrigin"], {}, {}, never, never, true, never>;
253
253
  }
254
254
 
255
255
  /** Event object that is emitted when an autocomplete option is selected. */
@@ -470,8 +470,12 @@ export declare class MatAutocompleteTrigger implements ControlValueAccessor, Aft
470
470
  /** Clears the references to the listbox overlay element from the modal it was added to. */
471
471
  private _clearFromModal;
472
472
  static ɵfac: i0.ɵɵFactoryDeclaration<MatAutocompleteTrigger, [null, null, null, null, null, null, { optional: true; }, { optional: true; host: true; }, { optional: true; }, null, { optional: true; }]>;
473
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatAutocompleteTrigger, "input[matAutocomplete], textarea[matAutocomplete]", ["matAutocompleteTrigger"], { "autocomplete": { "alias": "matAutocomplete"; "required": false; }; "position": { "alias": "matAutocompletePosition"; "required": false; }; "connectedTo": { "alias": "matAutocompleteConnectedTo"; "required": false; }; "autocompleteAttribute": { "alias": "autocomplete"; "required": false; }; "autocompleteDisabled": { "alias": "matAutocompleteDisabled"; "required": false; }; }, {}, never, never, false, never>;
473
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatAutocompleteTrigger, "input[matAutocomplete], textarea[matAutocomplete]", ["matAutocompleteTrigger"], { "autocomplete": { "alias": "matAutocomplete"; "required": false; }; "position": { "alias": "matAutocompletePosition"; "required": false; }; "connectedTo": { "alias": "matAutocompleteConnectedTo"; "required": false; }; "autocompleteAttribute": { "alias": "autocomplete"; "required": false; }; "autocompleteDisabled": { "alias": "matAutocompleteDisabled"; "required": false; }; }, {}, never, never, true, never>;
474
474
  static ngAcceptInputType_autocompleteDisabled: unknown;
475
475
  }
476
476
 
477
+ export { MatOptgroup }
478
+
479
+ export { MatOption }
480
+
477
481
  export { }
package/badge/index.d.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  import { AriaDescriber } from '@angular/cdk/a11y';
2
2
  import { ElementRef } from '@angular/core';
3
3
  import * as i0 from '@angular/core';
4
- import * as i2 from '@angular/cdk/a11y';
5
- import * as i3 from '@angular/material/core';
4
+ import * as i1 from '@angular/cdk/a11y';
5
+ import * as i2 from '@angular/material/core';
6
6
  import { NgZone } from '@angular/core';
7
7
  import { OnDestroy } from '@angular/core';
8
8
  import { OnInit } from '@angular/core';
9
9
  import { Renderer2 } from '@angular/core';
10
10
  import { ThemePalette } from '@angular/material/core';
11
11
 
12
- declare namespace i1 {
12
+ declare namespace i3 {
13
13
  export {
14
14
  MatBadgePosition,
15
15
  MatBadgeSize,
@@ -87,7 +87,7 @@ export declare class MatBadge implements OnInit, OnDestroy {
87
87
  /** Clears any existing badges that might be left over from server-side rendering. */
88
88
  private _clearExistingBadges;
89
89
  static ɵfac: i0.ɵɵFactoryDeclaration<MatBadge, [null, null, null, null, { optional: true; }]>;
90
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatBadge, "[matBadge]", never, { "color": { "alias": "matBadgeColor"; "required": false; }; "overlap": { "alias": "matBadgeOverlap"; "required": false; }; "disabled": { "alias": "matBadgeDisabled"; "required": false; }; "position": { "alias": "matBadgePosition"; "required": false; }; "content": { "alias": "matBadge"; "required": false; }; "description": { "alias": "matBadgeDescription"; "required": false; }; "size": { "alias": "matBadgeSize"; "required": false; }; "hidden": { "alias": "matBadgeHidden"; "required": false; }; }, {}, never, never, false, never>;
90
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatBadge, "[matBadge]", never, { "color": { "alias": "matBadgeColor"; "required": false; }; "overlap": { "alias": "matBadgeOverlap"; "required": false; }; "disabled": { "alias": "matBadgeDisabled"; "required": false; }; "position": { "alias": "matBadgePosition"; "required": false; }; "content": { "alias": "matBadge"; "required": false; }; "description": { "alias": "matBadgeDescription"; "required": false; }; "size": { "alias": "matBadgeSize"; "required": false; }; "hidden": { "alias": "matBadgeHidden"; "required": false; }; }, {}, never, never, true, never>;
91
91
  static ngAcceptInputType_overlap: unknown;
92
92
  static ngAcceptInputType_disabled: unknown;
93
93
  static ngAcceptInputType_hidden: unknown;
@@ -95,7 +95,7 @@ export declare class MatBadge implements OnInit, OnDestroy {
95
95
 
96
96
  export declare class MatBadgeModule {
97
97
  static ɵfac: i0.ɵɵFactoryDeclaration<MatBadgeModule, never>;
98
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatBadgeModule, [typeof i1.MatBadge], [typeof i2.A11yModule, typeof i3.MatCommonModule], [typeof i1.MatBadge, typeof i3.MatCommonModule]>;
98
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatBadgeModule, never, [typeof i1.A11yModule, typeof i2.MatCommonModule, typeof i3.MatBadge], [typeof i3.MatBadge, typeof i2.MatCommonModule]>;
99
99
  static ɵinj: i0.ɵɵInjectorDeclaration<MatBadgeModule>;
100
100
  }
101
101
 
@@ -13,9 +13,9 @@ import { EventEmitter } from '@angular/core';
13
13
  import { FocusMonitor } from '@angular/cdk/a11y';
14
14
  import { FocusTrapFactory } from '@angular/cdk/a11y';
15
15
  import * as i0 from '@angular/core';
16
- import * as i2 from '@angular/cdk/dialog';
17
- import * as i3 from '@angular/material/core';
18
- import * as i4 from '@angular/cdk/portal';
16
+ import * as i1 from '@angular/cdk/dialog';
17
+ import * as i2 from '@angular/material/core';
18
+ import * as i3 from '@angular/cdk/portal';
19
19
  import { InjectionToken } from '@angular/core';
20
20
  import { Injector } from '@angular/core';
21
21
  import { InteractivityChecker } from '@angular/cdk/a11y';
@@ -31,7 +31,7 @@ import { ViewContainerRef } from '@angular/core';
31
31
  /** Options for where to set focus to automatically on dialog open */
32
32
  export declare type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
33
33
 
34
- declare namespace i1 {
34
+ declare namespace i4 {
35
35
  export {
36
36
  MatBottomSheetContainer
37
37
  }
@@ -152,12 +152,12 @@ export declare class MatBottomSheetContainer extends CdkDialogContainer implemen
152
152
  protected _captureInitialFocus(): void;
153
153
  private _toggleClass;
154
154
  static ɵfac: i0.ɵɵFactoryDeclaration<MatBottomSheetContainer, [null, null, { optional: true; }, null, null, null, null, null, null, null]>;
155
- static ɵcmp: i0.ɵɵComponentDeclaration<MatBottomSheetContainer, "mat-bottom-sheet-container", never, {}, {}, never, never, false, never>;
155
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatBottomSheetContainer, "mat-bottom-sheet-container", never, {}, {}, never, never, true, never>;
156
156
  }
157
157
 
158
158
  export declare class MatBottomSheetModule {
159
159
  static ɵfac: i0.ɵɵFactoryDeclaration<MatBottomSheetModule, never>;
160
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatBottomSheetModule, [typeof i1.MatBottomSheetContainer], [typeof i2.DialogModule, typeof i3.MatCommonModule, typeof i4.PortalModule], [typeof i1.MatBottomSheetContainer, typeof i3.MatCommonModule]>;
160
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatBottomSheetModule, never, [typeof i1.DialogModule, typeof i2.MatCommonModule, typeof i3.PortalModule, typeof i4.MatBottomSheetContainer], [typeof i4.MatBottomSheetContainer, typeof i2.MatCommonModule]>;
161
161
  static ɵinj: i0.ɵɵInjectorDeclaration<MatBottomSheetModule>;
162
162
  }
163
163
 
@@ -1,7 +1,7 @@
1
+ @use 'sass:map';
1
2
  @use '@material/fab/fab' as mdc-fab;
2
3
  @use '@material/fab/fab-theme' as mdc-fab-theme;
3
4
  @use '@material/fab/extended-fab-theme' as mdc-extended-fab-theme;
4
-
5
5
  @use '../core/mdc-helpers/mdc-helpers';
6
6
  @use '../core/style/sass-utils';
7
7
  @use '../core/theming/theming';
@@ -13,12 +13,17 @@
13
13
  @use '../core/typography/typography';
14
14
 
15
15
  @mixin base($theme) {
16
- // Add default values for tokens not related to color, typography, or density.
17
- @include sass-utils.current-selector-or-root() {
18
- @include mdc-fab-theme.theme(tokens-mdc-fab.get-unthemable-tokens());
19
- @include mdc-extended-fab-theme.theme(
20
- tokens-mdc-extended-fab.get-unthemable-tokens()
21
- );
16
+ @if inspection.get-theme-version($theme) == 1 {
17
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
18
+ }
19
+ @else {
20
+ // Add default values for tokens not related to color, typography, or density.
21
+ @include sass-utils.current-selector-or-root() {
22
+ @include mdc-fab-theme.theme(tokens-mdc-fab.get-unthemable-tokens());
23
+ @include mdc-extended-fab-theme.theme(
24
+ tokens-mdc-extended-fab.get-unthemable-tokens()
25
+ );
26
+ }
22
27
  }
23
28
  }
24
29
 
@@ -38,51 +43,79 @@
38
43
  }
39
44
 
40
45
  @mixin color($theme) {
41
- @include sass-utils.current-selector-or-root() {
42
- @include _fab-variant($theme, null);
46
+ @if inspection.get-theme-version($theme) == 1 {
47
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
48
+ }
49
+ @else {
50
+ @include sass-utils.current-selector-or-root() {
51
+ @include _fab-variant($theme, null);
43
52
 
44
- .mat-mdc-fab,
45
- .mat-mdc-mini-fab {
46
- &.mat-primary {
47
- @include _fab-variant($theme, primary);
48
- }
53
+ .mat-mdc-fab,
54
+ .mat-mdc-mini-fab {
55
+ &.mat-primary {
56
+ @include _fab-variant($theme, primary);
57
+ }
49
58
 
50
- &.mat-accent {
51
- @include _fab-variant($theme, accent);
52
- }
59
+ &.mat-accent {
60
+ @include _fab-variant($theme, accent);
61
+ }
53
62
 
54
- &.mat-warn {
55
- @include _fab-variant($theme, warn);
63
+ &.mat-warn {
64
+ @include _fab-variant($theme, warn);
65
+ }
56
66
  }
57
67
  }
58
68
  }
59
69
  }
60
70
 
61
71
  @mixin typography($theme) {
62
- @include mdc-helpers.using-mdc-typography($theme) {
63
- @include mdc-fab.without-ripple($query: mdc-helpers.$mdc-typography-styles-query);
72
+ @if inspection.get-theme-version($theme) == 1 {
73
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
64
74
  }
75
+ @else {
76
+ @include mdc-helpers.using-mdc-typography($theme) {
77
+ @include mdc-fab.without-ripple($query: mdc-helpers.$mdc-typography-styles-query);
78
+ }
65
79
 
66
- $typography-tokens: tokens-mdc-extended-fab.get-typography-tokens($theme);
67
- @include sass-utils.current-selector-or-root() {
68
- @include mdc-extended-fab-theme.theme($typography-tokens);
80
+ $typography-tokens: tokens-mdc-extended-fab.get-typography-tokens($theme);
81
+ @include sass-utils.current-selector-or-root() {
82
+ @include mdc-extended-fab-theme.theme($typography-tokens);
83
+ }
69
84
  }
70
85
  }
71
86
 
72
87
  @mixin density($theme) {
88
+ @if inspection.get-theme-version($theme) == 1 {
89
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
90
+ }
91
+ @else {}
73
92
  }
74
93
 
75
94
  @mixin theme($theme) {
76
95
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-fab') {
77
- @include base($theme);
78
- @if inspection.theme-has($theme, color) {
79
- @include color($theme);
80
- }
81
- @if inspection.theme-has($theme, density) {
82
- @include density($theme);
96
+ @if inspection.get-theme-version($theme) == 1 {
97
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme));
83
98
  }
84
- @if inspection.theme-has($theme, typography) {
85
- @include typography($theme);
99
+ @else {
100
+ @include base($theme);
101
+ @if inspection.theme-has($theme, color) {
102
+ @include color($theme);
103
+ }
104
+ @if inspection.theme-has($theme, density) {
105
+ @include density($theme);
106
+ }
107
+ @if inspection.theme-has($theme, typography) {
108
+ @include typography($theme);
109
+ }
86
110
  }
87
111
  }
88
112
  }
113
+
114
+ @mixin _theme-from-tokens($tokens) {
115
+ @if ($tokens != ()) {
116
+ @include mdc-extended-fab-theme.theme(map.get($tokens, tokens-mdc-extended-fab.$prefix));
117
+ @include mdc-fab-theme.theme(map.get($tokens, tokens-mdc-fab.$prefix));
118
+ @include token-utils.create-token-values(
119
+ tokens-mat-fab.$prefix, map.get($tokens, tokens-mat-fab.$prefix));
120
+ }
121
+ }
@@ -1,9 +1,10 @@
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
+ @use '../core/style/sass-utils';
7
8
  @use './button-base';
8
9
  @use '../core/tokens/token-utils';
9
10
  @use '../core/theming/theming';
@@ -11,7 +12,15 @@
11
12
 
12
13
 
13
14
  @mixin base($theme) {
14
- // TODO(mmalerba): Move icon button base tokens here
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
+ }
23
+ }
15
24
  }
16
25
 
17
26
  @mixin _icon-button-variant($theme, $palette) {
@@ -30,74 +39,102 @@
30
39
  }
31
40
 
32
41
  @mixin color($theme) {
33
- .mat-mdc-icon-button {
34
- @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);
35
48
 
36
- &.mat-primary {
37
- @include _icon-button-variant($theme, primary);
38
- }
49
+ &.mat-primary {
50
+ @include _icon-button-variant($theme, primary);
51
+ }
39
52
 
40
- &.mat-accent {
41
- @include _icon-button-variant($theme, accent);
42
- }
53
+ &.mat-accent {
54
+ @include _icon-button-variant($theme, accent);
55
+ }
43
56
 
44
- &.mat-warn {
45
- @include _icon-button-variant($theme, warn);
57
+ &.mat-warn {
58
+ @include _icon-button-variant($theme, warn);
59
+ }
46
60
  }
47
61
  }
48
62
  }
49
63
 
50
- @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
+ }
51
70
 
52
71
  @mixin density($theme) {
53
- $icon-size: 24px;
54
- $density-scale: inspection.get-theme-density($theme);
55
- // Manually apply the expected density theming, and include the padding
56
- // as it was applied before
57
- $calculated-size: mdc-density-functions.prop-value(
58
- $density-config: (
59
- size: (
60
- default: 48px,
61
- maximum: 48px,
62
- 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
+ ),
63
87
  ),
64
- ),
65
- $density-scale: $density-scale,
66
- $property-name: size,
67
- );
68
-
69
- // Use `mat-mdc-button-base` to increase the specificity over the button's structural styles.
70
- .mat-mdc-icon-button.mat-mdc-button-base {
71
- // Match the styles that used to be present. This is necessary for backwards
72
- // compat to match the previous implementations selector count (two classes).
73
- @include mdc-icon-button-theme.theme((
74
- state-layer-size: $calculated-size,
75
- ));
76
-
77
- // TODO: Switch calculated-size to "var(--mdc-icon-button-state-layer-size)"
78
- // Currently fails validation because the variable is "undefined"
79
- // in the sass stack.
80
- // TODO: Switch icon-size to "var(--mdc-icon-button-icon-size)". Currently
81
- // fails validation because the variable is "undefined" in the sass stack.
82
- width: var(--mdc-icon-button-state-layer-size);
83
- height: var(--mdc-icon-button-state-layer-size);
84
- padding: math.div($calculated-size - $icon-size, 2);
85
-
86
- @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
+ }
87
111
  }
88
112
  }
89
113
 
90
114
  @mixin theme($theme) {
91
115
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-icon-button') {
92
- @include base($theme);
93
- @if inspection.theme-has($theme, color) {
94
- @include color($theme);
116
+ @if inspection.get-theme-version($theme) == 1 {
117
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme));
95
118
  }
96
- @if inspection.theme-has($theme, density) {
97
- @include density($theme);
98
- }
99
- @if inspection.theme-has($theme, typography) {
100
- @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
+ }
101
130
  }
102
131
  }
103
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 { }