@angular/material 15.0.0-next.0 → 15.0.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 (589) hide show
  1. package/autocomplete/index.d.ts +6 -6
  2. package/badge/index.d.ts +1 -1
  3. package/bottom-sheet/index.d.ts +1 -1
  4. package/button/index.d.ts +10 -10
  5. package/button/testing/index.d.ts +7 -3
  6. package/button-toggle/index.d.ts +2 -2
  7. package/card/index.d.ts +14 -14
  8. package/checkbox/index.d.ts +3 -3
  9. package/chips/index.d.ts +12 -12
  10. package/core/index.d.ts +7 -7
  11. package/core/theming/_theming.scss +10 -0
  12. package/core/typography/_all-typography.scss +5 -5
  13. package/datepicker/index.d.ts +22 -21
  14. package/dialog/index.d.ts +6 -6
  15. package/divider/index.d.ts +1 -1
  16. package/esm2020/autocomplete/autocomplete-origin.mjs +7 -7
  17. package/esm2020/autocomplete/autocomplete-trigger.mjs +7 -7
  18. package/esm2020/autocomplete/autocomplete.mjs +7 -7
  19. package/esm2020/autocomplete/module.mjs +5 -5
  20. package/esm2020/badge/badge-module.mjs +5 -5
  21. package/esm2020/badge/badge.mjs +4 -4
  22. package/esm2020/bottom-sheet/bottom-sheet-container.mjs +4 -4
  23. package/esm2020/bottom-sheet/bottom-sheet-module.mjs +5 -5
  24. package/esm2020/bottom-sheet/bottom-sheet.mjs +4 -4
  25. package/esm2020/button/button-base.mjs +7 -7
  26. package/esm2020/button/button.mjs +7 -7
  27. package/esm2020/button/fab.mjs +13 -13
  28. package/esm2020/button/icon-button.mjs +7 -7
  29. package/esm2020/button/module.mjs +5 -5
  30. package/esm2020/button/testing/button-harness-filters.mjs +9 -0
  31. package/esm2020/button/testing/button-harness.mjs +1 -1
  32. package/esm2020/button/testing/public-api.mjs +2 -1
  33. package/esm2020/button-toggle/button-toggle-module.mjs +5 -5
  34. package/esm2020/button-toggle/button-toggle.mjs +7 -7
  35. package/esm2020/card/card.mjs +43 -43
  36. package/esm2020/card/module.mjs +5 -5
  37. package/esm2020/checkbox/checkbox-required-validator.mjs +4 -4
  38. package/esm2020/checkbox/checkbox.mjs +7 -7
  39. package/esm2020/checkbox/module.mjs +9 -9
  40. package/esm2020/chips/chip-action.mjs +4 -4
  41. package/esm2020/chips/chip-edit-input.mjs +4 -4
  42. package/esm2020/chips/chip-grid.mjs +4 -4
  43. package/esm2020/chips/chip-icons.mjs +10 -10
  44. package/esm2020/chips/chip-input.mjs +4 -4
  45. package/esm2020/chips/chip-listbox.mjs +4 -4
  46. package/esm2020/chips/chip-option.mjs +4 -4
  47. package/esm2020/chips/chip-row.mjs +4 -4
  48. package/esm2020/chips/chip-set.mjs +4 -4
  49. package/esm2020/chips/chip.mjs +4 -4
  50. package/esm2020/chips/module.mjs +5 -5
  51. package/esm2020/core/common-behaviors/common-module.mjs +5 -5
  52. package/esm2020/core/datetime/index.mjs +9 -9
  53. package/esm2020/core/datetime/native-date-adapter.mjs +4 -4
  54. package/esm2020/core/error/error-options.mjs +7 -7
  55. package/esm2020/core/line/line.mjs +8 -8
  56. package/esm2020/core/option/index.mjs +5 -5
  57. package/esm2020/core/option/optgroup.mjs +7 -7
  58. package/esm2020/core/option/option.mjs +7 -7
  59. package/esm2020/core/ripple/index.mjs +5 -5
  60. package/esm2020/core/ripple/ripple.mjs +4 -4
  61. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +5 -5
  62. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +4 -4
  63. package/esm2020/core/version.mjs +1 -1
  64. package/esm2020/datepicker/calendar-body.mjs +4 -4
  65. package/esm2020/datepicker/calendar.mjs +7 -7
  66. package/esm2020/datepicker/date-range-input-parts.mjs +10 -10
  67. package/esm2020/datepicker/date-range-input.mjs +4 -4
  68. package/esm2020/datepicker/date-range-picker.mjs +4 -4
  69. package/esm2020/datepicker/date-range-selection-strategy.mjs +4 -4
  70. package/esm2020/datepicker/date-selection-model.mjs +10 -10
  71. package/esm2020/datepicker/datepicker-actions.mjs +10 -10
  72. package/esm2020/datepicker/datepicker-base.mjs +31 -18
  73. package/esm2020/datepicker/datepicker-input-base.mjs +4 -4
  74. package/esm2020/datepicker/datepicker-input.mjs +4 -4
  75. package/esm2020/datepicker/datepicker-intl.mjs +4 -4
  76. package/esm2020/datepicker/datepicker-module.mjs +5 -5
  77. package/esm2020/datepicker/datepicker-toggle.mjs +7 -7
  78. package/esm2020/datepicker/datepicker.mjs +4 -4
  79. package/esm2020/datepicker/month-view.mjs +4 -4
  80. package/esm2020/datepicker/multi-year-view.mjs +4 -4
  81. package/esm2020/datepicker/year-view.mjs +4 -4
  82. package/esm2020/dialog/dialog-container.mjs +8 -8
  83. package/esm2020/dialog/dialog-content-directives.mjs +13 -13
  84. package/esm2020/dialog/dialog.mjs +7 -7
  85. package/esm2020/dialog/module.mjs +5 -5
  86. package/esm2020/divider/divider-module.mjs +5 -5
  87. package/esm2020/divider/divider.mjs +4 -4
  88. package/esm2020/expansion/accordion.mjs +4 -4
  89. package/esm2020/expansion/expansion-module.mjs +5 -5
  90. package/esm2020/expansion/expansion-panel-content.mjs +4 -4
  91. package/esm2020/expansion/expansion-panel-header.mjs +10 -10
  92. package/esm2020/expansion/expansion-panel.mjs +7 -7
  93. package/esm2020/form-field/directives/error.mjs +4 -4
  94. package/esm2020/form-field/directives/floating-label.mjs +4 -4
  95. package/esm2020/form-field/directives/hint.mjs +4 -4
  96. package/esm2020/form-field/directives/label.mjs +4 -4
  97. package/esm2020/form-field/directives/line-ripple.mjs +4 -4
  98. package/esm2020/form-field/directives/notched-outline.mjs +4 -4
  99. package/esm2020/form-field/directives/prefix.mjs +4 -4
  100. package/esm2020/form-field/directives/suffix.mjs +4 -4
  101. package/esm2020/form-field/form-field-control.mjs +4 -4
  102. package/esm2020/form-field/form-field.mjs +5 -5
  103. package/esm2020/form-field/module.mjs +5 -5
  104. package/esm2020/grid-list/grid-list-module.mjs +5 -5
  105. package/esm2020/grid-list/grid-list.mjs +4 -4
  106. package/esm2020/grid-list/grid-tile.mjs +16 -16
  107. package/esm2020/icon/icon-module.mjs +5 -5
  108. package/esm2020/icon/icon-registry.mjs +4 -4
  109. package/esm2020/icon/icon.mjs +4 -4
  110. package/esm2020/icon/testing/fake-icon-registry.mjs +8 -8
  111. package/esm2020/input/input.mjs +4 -4
  112. package/esm2020/input/module.mjs +5 -5
  113. package/esm2020/legacy-autocomplete/autocomplete-module.mjs +5 -5
  114. package/esm2020/legacy-autocomplete/autocomplete-origin.mjs +4 -4
  115. package/esm2020/legacy-autocomplete/autocomplete-trigger.mjs +4 -4
  116. package/esm2020/legacy-autocomplete/autocomplete.mjs +4 -4
  117. package/esm2020/legacy-button/button-module.mjs +5 -5
  118. package/esm2020/legacy-button/button.mjs +7 -7
  119. package/esm2020/legacy-button/testing/button-harness.mjs +1 -1
  120. package/esm2020/legacy-button/testing/public-api.mjs +1 -1
  121. package/esm2020/legacy-card/card-module.mjs +5 -5
  122. package/esm2020/legacy-card/card.mjs +43 -43
  123. package/esm2020/legacy-checkbox/checkbox-module.mjs +5 -5
  124. package/esm2020/legacy-checkbox/checkbox.mjs +4 -4
  125. package/esm2020/legacy-chips/chip-input.mjs +4 -4
  126. package/esm2020/legacy-chips/chip-list.mjs +4 -4
  127. package/esm2020/legacy-chips/chip.mjs +13 -13
  128. package/esm2020/legacy-chips/chips-module.mjs +5 -5
  129. package/esm2020/legacy-core/option/index.mjs +5 -5
  130. package/esm2020/legacy-core/option/optgroup.mjs +4 -4
  131. package/esm2020/legacy-core/option/option.mjs +4 -4
  132. package/esm2020/legacy-dialog/dialog-container.mjs +4 -4
  133. package/esm2020/legacy-dialog/dialog-content-directives.mjs +13 -13
  134. package/esm2020/legacy-dialog/dialog-module.mjs +5 -5
  135. package/esm2020/legacy-dialog/dialog.mjs +4 -4
  136. package/esm2020/legacy-form-field/error.mjs +4 -4
  137. package/esm2020/legacy-form-field/form-field-module.mjs +5 -5
  138. package/esm2020/legacy-form-field/form-field.mjs +4 -4
  139. package/esm2020/legacy-form-field/hint.mjs +4 -4
  140. package/esm2020/legacy-form-field/label.mjs +4 -4
  141. package/esm2020/legacy-form-field/placeholder.mjs +4 -4
  142. package/esm2020/legacy-form-field/prefix.mjs +4 -4
  143. package/esm2020/legacy-form-field/suffix.mjs +4 -4
  144. package/esm2020/legacy-input/input-module.mjs +5 -5
  145. package/esm2020/legacy-input/input.mjs +4 -4
  146. package/esm2020/legacy-list/list-module.mjs +5 -5
  147. package/esm2020/legacy-list/list.mjs +19 -19
  148. package/esm2020/legacy-list/selection-list.mjs +7 -7
  149. package/esm2020/legacy-menu/menu-content.mjs +4 -4
  150. package/esm2020/legacy-menu/menu-item.mjs +4 -4
  151. package/esm2020/legacy-menu/menu-module.mjs +5 -5
  152. package/esm2020/legacy-menu/menu-trigger.mjs +4 -4
  153. package/esm2020/legacy-menu/menu.mjs +4 -4
  154. package/esm2020/legacy-paginator/paginator-module.mjs +5 -5
  155. package/esm2020/legacy-paginator/paginator.mjs +4 -4
  156. package/esm2020/legacy-progress-bar/progress-bar-module.mjs +5 -5
  157. package/esm2020/legacy-progress-bar/progress-bar.mjs +9 -36
  158. package/esm2020/legacy-progress-bar/public-api.mjs +3 -2
  159. package/esm2020/legacy-progress-bar/testing/progress-bar-harness.mjs +1 -1
  160. package/esm2020/legacy-progress-bar/testing/public-api.mjs +1 -1
  161. package/esm2020/legacy-progress-spinner/progress-spinner-module.mjs +5 -5
  162. package/esm2020/legacy-progress-spinner/progress-spinner.mjs +7 -23
  163. package/esm2020/legacy-progress-spinner/public-api.mjs +3 -2
  164. package/esm2020/legacy-progress-spinner/testing/progress-spinner-harness.mjs +1 -1
  165. package/esm2020/legacy-progress-spinner/testing/public-api.mjs +1 -1
  166. package/esm2020/legacy-radio/radio-module.mjs +5 -5
  167. package/esm2020/legacy-radio/radio.mjs +7 -7
  168. package/esm2020/legacy-select/select-module.mjs +5 -5
  169. package/esm2020/legacy-select/select.mjs +7 -7
  170. package/esm2020/legacy-slide-toggle/slide-toggle-module.mjs +5 -5
  171. package/esm2020/legacy-slide-toggle/slide-toggle.mjs +4 -4
  172. package/esm2020/legacy-slider/slider-module.mjs +5 -5
  173. package/esm2020/legacy-slider/slider.mjs +4 -4
  174. package/esm2020/legacy-snack-bar/simple-snack-bar.mjs +4 -4
  175. package/esm2020/legacy-snack-bar/snack-bar-container.mjs +4 -4
  176. package/esm2020/legacy-snack-bar/snack-bar-module.mjs +5 -5
  177. package/esm2020/legacy-snack-bar/snack-bar.mjs +4 -4
  178. package/esm2020/legacy-table/cell.mjs +22 -22
  179. package/esm2020/legacy-table/row.mjs +22 -22
  180. package/esm2020/legacy-table/table-module.mjs +5 -5
  181. package/esm2020/legacy-table/table.mjs +7 -7
  182. package/esm2020/legacy-table/text-column.mjs +4 -4
  183. package/esm2020/legacy-tabs/ink-bar.mjs +4 -4
  184. package/esm2020/legacy-tabs/tab-body.mjs +7 -7
  185. package/esm2020/legacy-tabs/tab-content.mjs +4 -4
  186. package/esm2020/legacy-tabs/tab-group.mjs +4 -4
  187. package/esm2020/legacy-tabs/tab-header.mjs +4 -4
  188. package/esm2020/legacy-tabs/tab-label-wrapper.mjs +4 -4
  189. package/esm2020/legacy-tabs/tab-label.mjs +4 -4
  190. package/esm2020/legacy-tabs/tab-nav-bar/tab-nav-bar.mjs +10 -10
  191. package/esm2020/legacy-tabs/tab.mjs +4 -4
  192. package/esm2020/legacy-tabs/tabs-module.mjs +5 -5
  193. package/esm2020/legacy-tooltip/tooltip-module.mjs +5 -5
  194. package/esm2020/legacy-tooltip/tooltip.mjs +7 -7
  195. package/esm2020/list/action-list.mjs +4 -4
  196. package/esm2020/list/list-base.mjs +7 -7
  197. package/esm2020/list/list-item-sections.mjs +19 -19
  198. package/esm2020/list/list-module.mjs +5 -5
  199. package/esm2020/list/list-option.mjs +4 -4
  200. package/esm2020/list/list.mjs +7 -7
  201. package/esm2020/list/nav-list.mjs +4 -4
  202. package/esm2020/list/selection-list.mjs +4 -4
  203. package/esm2020/list/subheader.mjs +4 -4
  204. package/esm2020/menu/menu-content.mjs +7 -7
  205. package/esm2020/menu/menu-item.mjs +9 -4
  206. package/esm2020/menu/menu-trigger.mjs +9 -11
  207. package/esm2020/menu/menu.mjs +7 -7
  208. package/esm2020/menu/module.mjs +5 -5
  209. package/esm2020/paginator/module.mjs +5 -5
  210. package/esm2020/paginator/paginator-intl.mjs +4 -4
  211. package/esm2020/paginator/paginator.mjs +7 -7
  212. package/esm2020/progress-bar/module.mjs +5 -5
  213. package/esm2020/progress-bar/progress-bar.mjs +29 -10
  214. package/esm2020/progress-bar/public-api.mjs +1 -2
  215. package/esm2020/progress-bar/testing/progress-bar-harness-filters.mjs +9 -0
  216. package/esm2020/progress-bar/testing/progress-bar-harness.mjs +1 -1
  217. package/esm2020/progress-bar/testing/public-api.mjs +2 -1
  218. package/esm2020/progress-spinner/module.mjs +5 -5
  219. package/esm2020/progress-spinner/progress-spinner.mjs +16 -8
  220. package/esm2020/progress-spinner/public-api.mjs +1 -2
  221. package/esm2020/progress-spinner/testing/progress-spinner-harness-filters.mjs +9 -0
  222. package/esm2020/progress-spinner/testing/progress-spinner-harness.mjs +1 -1
  223. package/esm2020/progress-spinner/testing/public-api.mjs +2 -1
  224. package/esm2020/radio/module.mjs +5 -5
  225. package/esm2020/radio/radio.mjs +13 -13
  226. package/esm2020/select/module.mjs +5 -5
  227. package/esm2020/select/select.mjs +12 -12
  228. package/esm2020/sidenav/drawer.mjs +10 -10
  229. package/esm2020/sidenav/sidenav-module.mjs +5 -5
  230. package/esm2020/sidenav/sidenav.mjs +10 -10
  231. package/esm2020/slide-toggle/module.mjs +9 -9
  232. package/esm2020/slide-toggle/slide-toggle-required-validator.mjs +4 -4
  233. package/esm2020/slide-toggle/slide-toggle.mjs +7 -7
  234. package/esm2020/slider/global-change-and-input-listener.mjs +4 -4
  235. package/esm2020/slider/module.mjs +5 -5
  236. package/esm2020/slider/slider.mjs +11 -11
  237. package/esm2020/snack-bar/module.mjs +5 -5
  238. package/esm2020/snack-bar/simple-snack-bar.mjs +4 -4
  239. package/esm2020/snack-bar/snack-bar-container.mjs +7 -7
  240. package/esm2020/snack-bar/snack-bar-content.mjs +10 -10
  241. package/esm2020/snack-bar/snack-bar.mjs +7 -7
  242. package/esm2020/sort/sort-header-intl.mjs +4 -4
  243. package/esm2020/sort/sort-header.mjs +4 -4
  244. package/esm2020/sort/sort-module.mjs +5 -5
  245. package/esm2020/sort/sort.mjs +4 -4
  246. package/esm2020/stepper/step-content.mjs +4 -4
  247. package/esm2020/stepper/step-header.mjs +4 -4
  248. package/esm2020/stepper/step-label.mjs +4 -4
  249. package/esm2020/stepper/stepper-button.mjs +7 -7
  250. package/esm2020/stepper/stepper-icon.mjs +4 -4
  251. package/esm2020/stepper/stepper-intl.mjs +4 -4
  252. package/esm2020/stepper/stepper-module.mjs +5 -9
  253. package/esm2020/stepper/stepper.mjs +7 -7
  254. package/esm2020/table/cell.mjs +22 -22
  255. package/esm2020/table/module.mjs +5 -5
  256. package/esm2020/table/row.mjs +22 -22
  257. package/esm2020/table/table.mjs +7 -7
  258. package/esm2020/table/text-column.mjs +4 -4
  259. package/esm2020/tabs/module.mjs +5 -5
  260. package/esm2020/tabs/paginated-tab-header.mjs +4 -4
  261. package/esm2020/tabs/tab-body.mjs +10 -10
  262. package/esm2020/tabs/tab-content.mjs +4 -4
  263. package/esm2020/tabs/tab-group.mjs +7 -7
  264. package/esm2020/tabs/tab-header.mjs +7 -7
  265. package/esm2020/tabs/tab-label-wrapper.mjs +7 -7
  266. package/esm2020/tabs/tab-label.mjs +4 -4
  267. package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +16 -16
  268. package/esm2020/tabs/tab.mjs +7 -7
  269. package/esm2020/toolbar/toolbar-module.mjs +5 -5
  270. package/esm2020/toolbar/toolbar.mjs +7 -7
  271. package/esm2020/tooltip/module.mjs +5 -5
  272. package/esm2020/tooltip/tooltip.mjs +13 -13
  273. package/esm2020/tree/node.mjs +10 -10
  274. package/esm2020/tree/outlet.mjs +4 -4
  275. package/esm2020/tree/padding.mjs +4 -4
  276. package/esm2020/tree/toggle.mjs +4 -4
  277. package/esm2020/tree/tree-module.mjs +5 -5
  278. package/esm2020/tree/tree.mjs +4 -4
  279. package/expansion/index.d.ts +7 -7
  280. package/fesm2015/autocomplete.mjs +22 -22
  281. package/fesm2015/autocomplete.mjs.map +1 -1
  282. package/fesm2015/badge.mjs +7 -7
  283. package/fesm2015/badge.mjs.map +1 -1
  284. package/fesm2015/bottom-sheet.mjs +10 -10
  285. package/fesm2015/bottom-sheet.mjs.map +1 -1
  286. package/fesm2015/button/testing.mjs.map +1 -1
  287. package/fesm2015/button-toggle.mjs +10 -10
  288. package/fesm2015/button-toggle.mjs.map +1 -1
  289. package/fesm2015/button.mjs +34 -34
  290. package/fesm2015/button.mjs.map +1 -1
  291. package/fesm2015/card.mjs +46 -46
  292. package/fesm2015/card.mjs.map +1 -1
  293. package/fesm2015/checkbox.mjs +17 -17
  294. package/fesm2015/checkbox.mjs.map +1 -1
  295. package/fesm2015/chips.mjs +40 -40
  296. package/fesm2015/chips.mjs.map +1 -1
  297. package/fesm2015/core.mjs +59 -59
  298. package/fesm2015/core.mjs.map +1 -1
  299. package/fesm2015/datepicker.mjs +106 -94
  300. package/fesm2015/datepicker.mjs.map +1 -1
  301. package/fesm2015/dialog.mjs +29 -29
  302. package/fesm2015/dialog.mjs.map +1 -1
  303. package/fesm2015/divider.mjs +7 -7
  304. package/fesm2015/divider.mjs.map +1 -1
  305. package/fesm2015/expansion.mjs +25 -25
  306. package/fesm2015/expansion.mjs.map +1 -1
  307. package/fesm2015/form-field.mjs +35 -35
  308. package/fesm2015/form-field.mjs.map +1 -1
  309. package/fesm2015/grid-list.mjs +22 -22
  310. package/fesm2015/grid-list.mjs.map +1 -1
  311. package/fesm2015/icon/testing.mjs +7 -7
  312. package/fesm2015/icon/testing.mjs.map +1 -1
  313. package/fesm2015/icon.mjs +10 -10
  314. package/fesm2015/icon.mjs.map +1 -1
  315. package/fesm2015/input.mjs +7 -7
  316. package/fesm2015/input.mjs.map +1 -1
  317. package/fesm2015/legacy-autocomplete.mjs +13 -13
  318. package/fesm2015/legacy-autocomplete.mjs.map +1 -1
  319. package/fesm2015/legacy-button/testing.mjs.map +1 -1
  320. package/fesm2015/legacy-button.mjs +10 -10
  321. package/fesm2015/legacy-button.mjs.map +1 -1
  322. package/fesm2015/legacy-card.mjs +46 -46
  323. package/fesm2015/legacy-card.mjs.map +1 -1
  324. package/fesm2015/legacy-checkbox.mjs +7 -7
  325. package/fesm2015/legacy-checkbox.mjs.map +1 -1
  326. package/fesm2015/legacy-chips.mjs +22 -22
  327. package/fesm2015/legacy-chips.mjs.map +1 -1
  328. package/fesm2015/legacy-core.mjs +10 -10
  329. package/fesm2015/legacy-core.mjs.map +1 -1
  330. package/fesm2015/legacy-dialog.mjs +22 -22
  331. package/fesm2015/legacy-dialog.mjs.map +1 -1
  332. package/fesm2015/legacy-form-field.mjs +25 -25
  333. package/fesm2015/legacy-form-field.mjs.map +1 -1
  334. package/fesm2015/legacy-input.mjs +7 -7
  335. package/fesm2015/legacy-input.mjs.map +1 -1
  336. package/fesm2015/legacy-list.mjs +28 -28
  337. package/fesm2015/legacy-list.mjs.map +1 -1
  338. package/fesm2015/legacy-menu.mjs +16 -16
  339. package/fesm2015/legacy-menu.mjs.map +1 -1
  340. package/fesm2015/legacy-paginator.mjs +7 -7
  341. package/fesm2015/legacy-paginator.mjs.map +1 -1
  342. package/fesm2015/legacy-progress-bar/testing.mjs.map +1 -1
  343. package/fesm2015/legacy-progress-bar.mjs +15 -40
  344. package/fesm2015/legacy-progress-bar.mjs.map +1 -1
  345. package/fesm2015/legacy-progress-spinner/testing.mjs.map +1 -1
  346. package/fesm2015/legacy-progress-spinner.mjs +12 -27
  347. package/fesm2015/legacy-progress-spinner.mjs.map +1 -1
  348. package/fesm2015/legacy-radio.mjs +10 -10
  349. package/fesm2015/legacy-radio.mjs.map +1 -1
  350. package/fesm2015/legacy-select.mjs +10 -10
  351. package/fesm2015/legacy-select.mjs.map +1 -1
  352. package/fesm2015/legacy-slide-toggle.mjs +7 -7
  353. package/fesm2015/legacy-slide-toggle.mjs.map +1 -1
  354. package/fesm2015/legacy-slider.mjs +7 -7
  355. package/fesm2015/legacy-slider.mjs.map +1 -1
  356. package/fesm2015/legacy-snack-bar.mjs +13 -13
  357. package/fesm2015/legacy-snack-bar.mjs.map +1 -1
  358. package/fesm2015/legacy-table.mjs +55 -55
  359. package/fesm2015/legacy-table.mjs.map +1 -1
  360. package/fesm2015/legacy-tabs.mjs +40 -40
  361. package/fesm2015/legacy-tabs.mjs.map +1 -1
  362. package/fesm2015/legacy-tooltip.mjs +10 -10
  363. package/fesm2015/legacy-tooltip.mjs.map +1 -1
  364. package/fesm2015/list.mjs +49 -49
  365. package/fesm2015/list.mjs.map +1 -1
  366. package/fesm2015/menu.mjs +34 -29
  367. package/fesm2015/menu.mjs.map +1 -1
  368. package/fesm2015/paginator.mjs +13 -13
  369. package/fesm2015/paginator.mjs.map +1 -1
  370. package/fesm2015/progress-bar/testing.mjs.map +1 -1
  371. package/fesm2015/progress-bar.mjs +33 -15
  372. package/fesm2015/progress-bar.mjs.map +1 -1
  373. package/fesm2015/progress-spinner/testing.mjs.map +1 -1
  374. package/fesm2015/progress-spinner.mjs +20 -13
  375. package/fesm2015/progress-spinner.mjs.map +1 -1
  376. package/fesm2015/radio.mjs +16 -16
  377. package/fesm2015/radio.mjs.map +1 -1
  378. package/fesm2015/select.mjs +15 -15
  379. package/fesm2015/select.mjs.map +1 -1
  380. package/fesm2015/sidenav.mjs +22 -22
  381. package/fesm2015/sidenav.mjs.map +1 -1
  382. package/fesm2015/slide-toggle.mjs +17 -17
  383. package/fesm2015/slide-toggle.mjs.map +1 -1
  384. package/fesm2015/slider.mjs +17 -17
  385. package/fesm2015/slider.mjs.map +1 -1
  386. package/fesm2015/snack-bar.mjs +28 -28
  387. package/fesm2015/snack-bar.mjs.map +1 -1
  388. package/fesm2015/sort.mjs +13 -13
  389. package/fesm2015/sort.mjs.map +1 -1
  390. package/fesm2015/stepper.mjs +31 -35
  391. package/fesm2015/stepper.mjs.map +1 -1
  392. package/fesm2015/table.mjs +55 -55
  393. package/fesm2015/table.mjs.map +1 -1
  394. package/fesm2015/tabs.mjs +61 -61
  395. package/fesm2015/tabs.mjs.map +1 -1
  396. package/fesm2015/toolbar.mjs +10 -10
  397. package/fesm2015/toolbar.mjs.map +1 -1
  398. package/fesm2015/tooltip.mjs +16 -16
  399. package/fesm2015/tooltip.mjs.map +1 -1
  400. package/fesm2015/tree.mjs +25 -25
  401. package/fesm2015/tree.mjs.map +1 -1
  402. package/fesm2020/autocomplete.mjs +22 -22
  403. package/fesm2020/autocomplete.mjs.map +1 -1
  404. package/fesm2020/badge.mjs +7 -7
  405. package/fesm2020/badge.mjs.map +1 -1
  406. package/fesm2020/bottom-sheet.mjs +10 -10
  407. package/fesm2020/bottom-sheet.mjs.map +1 -1
  408. package/fesm2020/button/testing.mjs +8 -0
  409. package/fesm2020/button/testing.mjs.map +1 -1
  410. package/fesm2020/button-toggle.mjs +10 -10
  411. package/fesm2020/button-toggle.mjs.map +1 -1
  412. package/fesm2020/button.mjs +34 -34
  413. package/fesm2020/button.mjs.map +1 -1
  414. package/fesm2020/card.mjs +46 -46
  415. package/fesm2020/card.mjs.map +1 -1
  416. package/fesm2020/checkbox.mjs +17 -17
  417. package/fesm2020/checkbox.mjs.map +1 -1
  418. package/fesm2020/chips.mjs +40 -40
  419. package/fesm2020/chips.mjs.map +1 -1
  420. package/fesm2020/core.mjs +59 -59
  421. package/fesm2020/core.mjs.map +1 -1
  422. package/fesm2020/datepicker.mjs +106 -94
  423. package/fesm2020/datepicker.mjs.map +1 -1
  424. package/fesm2020/dialog.mjs +29 -29
  425. package/fesm2020/dialog.mjs.map +1 -1
  426. package/fesm2020/divider.mjs +7 -7
  427. package/fesm2020/divider.mjs.map +1 -1
  428. package/fesm2020/expansion.mjs +25 -25
  429. package/fesm2020/expansion.mjs.map +1 -1
  430. package/fesm2020/form-field.mjs +35 -35
  431. package/fesm2020/form-field.mjs.map +1 -1
  432. package/fesm2020/grid-list.mjs +22 -22
  433. package/fesm2020/grid-list.mjs.map +1 -1
  434. package/fesm2020/icon/testing.mjs +7 -7
  435. package/fesm2020/icon/testing.mjs.map +1 -1
  436. package/fesm2020/icon.mjs +10 -10
  437. package/fesm2020/icon.mjs.map +1 -1
  438. package/fesm2020/input.mjs +7 -7
  439. package/fesm2020/input.mjs.map +1 -1
  440. package/fesm2020/legacy-autocomplete.mjs +13 -13
  441. package/fesm2020/legacy-autocomplete.mjs.map +1 -1
  442. package/fesm2020/legacy-button/testing.mjs.map +1 -1
  443. package/fesm2020/legacy-button.mjs +10 -10
  444. package/fesm2020/legacy-button.mjs.map +1 -1
  445. package/fesm2020/legacy-card.mjs +46 -46
  446. package/fesm2020/legacy-card.mjs.map +1 -1
  447. package/fesm2020/legacy-checkbox.mjs +7 -7
  448. package/fesm2020/legacy-checkbox.mjs.map +1 -1
  449. package/fesm2020/legacy-chips.mjs +22 -22
  450. package/fesm2020/legacy-chips.mjs.map +1 -1
  451. package/fesm2020/legacy-core.mjs +10 -10
  452. package/fesm2020/legacy-core.mjs.map +1 -1
  453. package/fesm2020/legacy-dialog.mjs +22 -22
  454. package/fesm2020/legacy-dialog.mjs.map +1 -1
  455. package/fesm2020/legacy-form-field.mjs +25 -25
  456. package/fesm2020/legacy-form-field.mjs.map +1 -1
  457. package/fesm2020/legacy-input.mjs +7 -7
  458. package/fesm2020/legacy-input.mjs.map +1 -1
  459. package/fesm2020/legacy-list.mjs +28 -28
  460. package/fesm2020/legacy-list.mjs.map +1 -1
  461. package/fesm2020/legacy-menu.mjs +16 -16
  462. package/fesm2020/legacy-menu.mjs.map +1 -1
  463. package/fesm2020/legacy-paginator.mjs +7 -7
  464. package/fesm2020/legacy-paginator.mjs.map +1 -1
  465. package/fesm2020/legacy-progress-bar/testing.mjs.map +1 -1
  466. package/fesm2020/legacy-progress-bar.mjs +15 -40
  467. package/fesm2020/legacy-progress-bar.mjs.map +1 -1
  468. package/fesm2020/legacy-progress-spinner/testing.mjs.map +1 -1
  469. package/fesm2020/legacy-progress-spinner.mjs +12 -27
  470. package/fesm2020/legacy-progress-spinner.mjs.map +1 -1
  471. package/fesm2020/legacy-radio.mjs +10 -10
  472. package/fesm2020/legacy-radio.mjs.map +1 -1
  473. package/fesm2020/legacy-select.mjs +10 -10
  474. package/fesm2020/legacy-select.mjs.map +1 -1
  475. package/fesm2020/legacy-slide-toggle.mjs +7 -7
  476. package/fesm2020/legacy-slide-toggle.mjs.map +1 -1
  477. package/fesm2020/legacy-slider.mjs +7 -7
  478. package/fesm2020/legacy-slider.mjs.map +1 -1
  479. package/fesm2020/legacy-snack-bar.mjs +13 -13
  480. package/fesm2020/legacy-snack-bar.mjs.map +1 -1
  481. package/fesm2020/legacy-table.mjs +55 -55
  482. package/fesm2020/legacy-table.mjs.map +1 -1
  483. package/fesm2020/legacy-tabs.mjs +40 -40
  484. package/fesm2020/legacy-tabs.mjs.map +1 -1
  485. package/fesm2020/legacy-tooltip.mjs +10 -10
  486. package/fesm2020/legacy-tooltip.mjs.map +1 -1
  487. package/fesm2020/list.mjs +49 -49
  488. package/fesm2020/list.mjs.map +1 -1
  489. package/fesm2020/menu.mjs +32 -29
  490. package/fesm2020/menu.mjs.map +1 -1
  491. package/fesm2020/paginator.mjs +13 -13
  492. package/fesm2020/paginator.mjs.map +1 -1
  493. package/fesm2020/progress-bar/testing.mjs +8 -0
  494. package/fesm2020/progress-bar/testing.mjs.map +1 -1
  495. package/fesm2020/progress-bar.mjs +33 -15
  496. package/fesm2020/progress-bar.mjs.map +1 -1
  497. package/fesm2020/progress-spinner/testing.mjs +8 -0
  498. package/fesm2020/progress-spinner/testing.mjs.map +1 -1
  499. package/fesm2020/progress-spinner.mjs +20 -13
  500. package/fesm2020/progress-spinner.mjs.map +1 -1
  501. package/fesm2020/radio.mjs +16 -16
  502. package/fesm2020/radio.mjs.map +1 -1
  503. package/fesm2020/select.mjs +15 -15
  504. package/fesm2020/select.mjs.map +1 -1
  505. package/fesm2020/sidenav.mjs +22 -22
  506. package/fesm2020/sidenav.mjs.map +1 -1
  507. package/fesm2020/slide-toggle.mjs +17 -17
  508. package/fesm2020/slide-toggle.mjs.map +1 -1
  509. package/fesm2020/slider.mjs +17 -17
  510. package/fesm2020/slider.mjs.map +1 -1
  511. package/fesm2020/snack-bar.mjs +28 -28
  512. package/fesm2020/snack-bar.mjs.map +1 -1
  513. package/fesm2020/sort.mjs +13 -13
  514. package/fesm2020/sort.mjs.map +1 -1
  515. package/fesm2020/stepper.mjs +31 -35
  516. package/fesm2020/stepper.mjs.map +1 -1
  517. package/fesm2020/table.mjs +55 -55
  518. package/fesm2020/table.mjs.map +1 -1
  519. package/fesm2020/tabs.mjs +61 -61
  520. package/fesm2020/tabs.mjs.map +1 -1
  521. package/fesm2020/toolbar.mjs +10 -10
  522. package/fesm2020/toolbar.mjs.map +1 -1
  523. package/fesm2020/tooltip.mjs +16 -16
  524. package/fesm2020/tooltip.mjs.map +1 -1
  525. package/fesm2020/tree.mjs +25 -25
  526. package/fesm2020/tree.mjs.map +1 -1
  527. package/form-field/_form-field-native-select.scss +2 -0
  528. package/form-field/_mdc-text-field-structure-overrides.scss +3 -0
  529. package/form-field/index.d.ts +10 -10
  530. package/grid-list/index.d.ts +6 -6
  531. package/icon/index.d.ts +1 -1
  532. package/input/index.d.ts +1 -1
  533. package/legacy-autocomplete/index.d.ts +3 -3
  534. package/legacy-button/index.d.ts +2 -2
  535. package/legacy-button/testing/index.d.ts +2 -10
  536. package/legacy-card/index.d.ts +14 -14
  537. package/legacy-checkbox/index.d.ts +1 -1
  538. package/legacy-chips/index.d.ts +6 -6
  539. package/legacy-core/index.d.ts +2 -2
  540. package/legacy-dialog/index.d.ts +5 -5
  541. package/legacy-form-field/index.d.ts +7 -7
  542. package/legacy-input/index.d.ts +1 -1
  543. package/legacy-list/index.d.ts +8 -8
  544. package/legacy-menu/index.d.ts +4 -4
  545. package/legacy-paginator/index.d.ts +1 -1
  546. package/legacy-progress-bar/index.d.ts +15 -63
  547. package/legacy-progress-bar/testing/index.d.ts +2 -8
  548. package/legacy-progress-spinner/index.d.ts +9 -43
  549. package/legacy-progress-spinner/testing/index.d.ts +2 -8
  550. package/legacy-radio/index.d.ts +2 -2
  551. package/legacy-select/index.d.ts +2 -2
  552. package/legacy-slide-toggle/index.d.ts +1 -1
  553. package/legacy-slider/index.d.ts +1 -1
  554. package/legacy-snack-bar/index.d.ts +2 -2
  555. package/legacy-table/index.d.ts +17 -17
  556. package/legacy-tabs/index.d.ts +12 -12
  557. package/legacy-tooltip/index.d.ts +2 -2
  558. package/list/index.d.ts +15 -15
  559. package/menu/index.d.ts +8 -7
  560. package/package.json +49 -49
  561. package/paginator/index.d.ts +4 -4
  562. package/prebuilt-themes/deeppurple-amber.css +1 -1
  563. package/prebuilt-themes/indigo-pink.css +1 -1
  564. package/prebuilt-themes/pink-bluegrey.css +1 -1
  565. package/prebuilt-themes/purple-green.css +1 -1
  566. package/progress-bar/_progress-bar-theme.scss +14 -9
  567. package/progress-bar/index.d.ts +40 -15
  568. package/progress-bar/testing/index.d.ts +4 -2
  569. package/progress-spinner/index.d.ts +24 -7
  570. package/progress-spinner/testing/index.d.ts +6 -4
  571. package/radio/index.d.ts +4 -4
  572. package/schematics/ng-generate/mdc-migration/index_bundled.js +112 -36
  573. package/schematics/ng-generate/mdc-migration/index_bundled.js.map +2 -2
  574. package/schematics/ng-generate/mdc-migration/mdc_migration_bundle_metadata.json +1 -1
  575. package/select/index.d.ts +3 -3
  576. package/sidenav/index.d.ts +6 -6
  577. package/slide-toggle/index.d.ts +3 -3
  578. package/slider/index.d.ts +3 -3
  579. package/snack-bar/index.d.ts +6 -6
  580. package/sort/index.d.ts +2 -2
  581. package/stepper/index.d.ts +11 -12
  582. package/table/index.d.ts +17 -17
  583. package/tabs/index.d.ts +19 -19
  584. package/toolbar/index.d.ts +2 -2
  585. package/tooltip/index.d.ts +4 -4
  586. package/tree/index.d.ts +7 -7
  587. package/esm2020/legacy-button/testing/button-harness-filters.mjs +0 -9
  588. package/esm2020/legacy-progress-bar/testing/progress-bar-harness-filters.mjs +0 -9
  589. package/esm2020/legacy-progress-spinner/testing/progress-spinner-harness-filters.mjs +0 -9
@@ -1,19 +1,24 @@
1
1
  @use '../core/mdc-helpers/mdc-helpers';
2
2
  @use '../core/theming/theming';
3
3
  @use '@material/theme/theme-color' as mdc-theme-color;
4
- @use '@material/linear-progress' as mdc-linear-progress;
4
+ @use '@material/linear-progress/linear-progress-theme' as mdc-linear-progress-theme;
5
5
  @use 'sass:color';
6
6
 
7
7
 
8
8
  @mixin _palette-styles($color) {
9
- // TODO(crisbeto): the buffer color should come from somewhere in MDC, however at the time of
10
- // writing, their buffer color is hardcoded to #e6e6e6 which both doesn't account for theming
11
- // and doesn't match the Material design spec. For now we approximate the buffer background by
12
- // applying an opacity to the color of the bar.
13
- $buffer-color: color.adjust(mdc-theme-color.prop-value($color), $alpha: -0.75);
14
- @include mdc-linear-progress.bar-color($color, $query: mdc-helpers.$mdc-theme-styles-query);
15
- @include mdc-linear-progress.buffer-color($buffer-color,
16
- $query: mdc-helpers.$mdc-theme-styles-query);
9
+ // We can't set the `track-color` using `theme`, because it isn't possible for it to use a CSS
10
+ // variable since MDC's buffer animation works by constructing an SVG string from this color.
11
+ @include mdc-linear-progress-theme.theme-styles((
12
+ // TODO(crisbeto): the buffer color should come from somewhere in MDC, however at the time of
13
+ // writing, their buffer color is hardcoded to #e6e6e6 which both doesn't account for theming
14
+ // and doesn't match the Material design spec. For now we approximate the buffer background by
15
+ // applying an opacity to the color of the bar.
16
+ track-color: color.adjust(mdc-theme-color.prop-value($color), $alpha: -0.75),
17
+ ));
18
+
19
+ @include mdc-linear-progress-theme.theme((
20
+ active-indicator-color: mdc-theme-color.prop-value($color),
21
+ ));
17
22
  }
18
23
 
19
24
  @mixin color($config-or-theme) {
@@ -7,27 +7,37 @@ import { ElementRef } from '@angular/core';
7
7
  import { EventEmitter } from '@angular/core';
8
8
  import * as i0 from '@angular/core';
9
9
  import * as i2 from '@angular/material/core';
10
- import { MAT_LEGACY_PROGRESS_BAR_DEFAULT_OPTIONS as MAT_PROGRESS_BAR_DEFAULT_OPTIONS } from '@angular/material/legacy-progress-bar';
11
- import { MAT_LEGACY_PROGRESS_BAR_LOCATION as MAT_PROGRESS_BAR_LOCATION } from '@angular/material/legacy-progress-bar';
12
- import { MAT_LEGACY_PROGRESS_BAR_LOCATION_FACTORY as MAT_PROGRESS_BAR_LOCATION_FACTORY } from '@angular/material/legacy-progress-bar';
13
- import { MatLegacyProgressBarDefaultOptions as MatProgressBarDefaultOptions } from '@angular/material/legacy-progress-bar';
14
- import { MatLegacyProgressBarLocation as MatProgressBarLocation } from '@angular/material/legacy-progress-bar';
10
+ import { InjectionToken } from '@angular/core';
15
11
  import { NgZone } from '@angular/core';
12
+ import { NumberInput } from '@angular/cdk/coercion';
16
13
  import { OnDestroy } from '@angular/core';
17
- import { LegacyProgressAnimationEnd as ProgressAnimationEnd } from '@angular/material/legacy-progress-bar';
14
+ import { ThemePalette } from '@angular/material/core';
18
15
 
19
16
  declare namespace i1 {
20
17
  export {
18
+ MAT_PROGRESS_BAR_LOCATION_FACTORY,
19
+ ProgressAnimationEnd,
20
+ MatProgressBarDefaultOptions,
21
+ MAT_PROGRESS_BAR_DEFAULT_OPTIONS,
22
+ MAT_PROGRESS_BAR_LOCATION,
23
+ MatProgressBarLocation,
21
24
  ProgressBarMode,
22
25
  MatProgressBar
23
26
  }
24
27
  }
25
28
 
26
- export { MAT_PROGRESS_BAR_DEFAULT_OPTIONS }
29
+ /** Injection token to be used to override the default options for `mat-progress-bar`. */
30
+ export declare const MAT_PROGRESS_BAR_DEFAULT_OPTIONS: InjectionToken<MatProgressBarDefaultOptions>;
27
31
 
28
- export { MAT_PROGRESS_BAR_LOCATION }
32
+ /**
33
+ * Injection token used to provide the current location to `MatProgressBar`.
34
+ * Used to handle server-side rendering and to stub out during unit tests.
35
+ * @docs-private
36
+ */
37
+ export declare const MAT_PROGRESS_BAR_LOCATION: InjectionToken<MatProgressBarLocation>;
29
38
 
30
- export { MAT_PROGRESS_BAR_LOCATION_FACTORY }
39
+ /** @docs-private */
40
+ export declare function MAT_PROGRESS_BAR_LOCATION_FACTORY(): MatProgressBarLocation;
31
41
 
32
42
  export declare class MatProgressBar extends _MatProgressBarBase implements AfterViewInit, OnDestroy, CanColor {
33
43
  private _ngZone;
@@ -38,11 +48,11 @@ export declare class MatProgressBar extends _MatProgressBarBase implements After
38
48
  _isNoopAnimation: boolean;
39
49
  /** Value of the progress bar. Defaults to zero. Mirrored to aria-valuenow. */
40
50
  get value(): number;
41
- set value(v: number);
51
+ set value(v: NumberInput);
42
52
  private _value;
43
53
  /** Buffer value of the progress bar. Defaults to zero. */
44
54
  get bufferValue(): number;
45
- set bufferValue(v: number);
55
+ set bufferValue(v: NumberInput);
46
56
  private _bufferValue;
47
57
  /**
48
58
  * Event emitted when animation of the primary progress bar completes. This event will not
@@ -71,7 +81,7 @@ export declare class MatProgressBar extends _MatProgressBarBase implements After
71
81
  /** Event handler for `transitionend` events. */
72
82
  private _transitionendHandler;
73
83
  static ɵfac: i0.ɵɵFactoryDeclaration<MatProgressBar, [null, null, null, { optional: true; }, { optional: true; }]>;
74
- static ɵcmp: i0.ɵɵComponentDeclaration<MatProgressBar, "mat-progress-bar", ["matProgressBar"], { "color": "color"; "value": "value"; "bufferValue": "bufferValue"; "mode": "mode"; }, { "animationEnd": "animationEnd"; }, never, never, false>;
84
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatProgressBar, "mat-progress-bar", ["matProgressBar"], { "color": "color"; "value": "value"; "bufferValue": "bufferValue"; "mode": "mode"; }, { "animationEnd": "animationEnd"; }, never, never, false, never>;
75
85
  }
76
86
 
77
87
  /** @docs-private */
@@ -81,9 +91,21 @@ declare const _MatProgressBarBase: _Constructor<CanColor> & _AbstractConstructor
81
91
  };
82
92
  };
83
93
 
84
- export { MatProgressBarDefaultOptions }
94
+ /** Default `mat-progress-bar` options that can be overridden. */
95
+ export declare interface MatProgressBarDefaultOptions {
96
+ /** Default color of the progress bar. */
97
+ color?: ThemePalette;
98
+ /** Default mode of the progress bar. */
99
+ mode?: ProgressBarMode;
100
+ }
85
101
 
86
- export { MatProgressBarLocation }
102
+ /**
103
+ * Stubbed out location for `MatProgressBar`.
104
+ * @docs-private
105
+ */
106
+ export declare interface MatProgressBarLocation {
107
+ getPathname: () => string;
108
+ }
87
109
 
88
110
  export declare class MatProgressBarModule {
89
111
  static ɵfac: i0.ɵɵFactoryDeclaration<MatProgressBarModule, never>;
@@ -91,7 +113,10 @@ export declare class MatProgressBarModule {
91
113
  static ɵinj: i0.ɵɵInjectorDeclaration<MatProgressBarModule>;
92
114
  }
93
115
 
94
- export { ProgressAnimationEnd }
116
+ /** Last animation end data. */
117
+ export declare interface ProgressAnimationEnd {
118
+ value: number;
119
+ }
95
120
 
96
121
  export declare type ProgressBarMode = 'determinate' | 'indeterminate' | 'buffer' | 'query';
97
122
 
@@ -1,7 +1,7 @@
1
+ import { BaseHarnessFilters } from '@angular/cdk/testing';
1
2
  import { ComponentHarness } from '@angular/cdk/testing';
2
3
  import { ComponentHarnessConstructor } from '@angular/cdk/testing';
3
4
  import { HarnessPredicate } from '@angular/cdk/testing';
4
- import { LegacyProgressBarHarnessFilters as ProgressBarHarnessFilters } from '@angular/material/legacy-progress-bar/testing';
5
5
 
6
6
  /** Harness for interacting with an MDC-based `mat-progress-bar` in tests. */
7
7
  export declare class MatProgressBarHarness extends ComponentHarness {
@@ -19,6 +19,8 @@ export declare class MatProgressBarHarness extends ComponentHarness {
19
19
  getMode(): Promise<string | null>;
20
20
  }
21
21
 
22
- export { ProgressBarHarnessFilters }
22
+ /** A set of criteria that can be used to filter a list of `MatProgressBarHarness` instances. */
23
+ export declare interface ProgressBarHarnessFilters extends BaseHarnessFilters {
24
+ }
23
25
 
24
26
  export { }
@@ -5,22 +5,26 @@ import { ElementRef } from '@angular/core';
5
5
  import * as i0 from '@angular/core';
6
6
  import * as i2 from '@angular/common';
7
7
  import * as i3 from '@angular/material/core';
8
- import { MAT_LEGACY_PROGRESS_SPINNER_DEFAULT_OPTIONS as MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS } from '@angular/material/legacy-progress-spinner';
9
- import { MAT_LEGACY_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY as MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY } from '@angular/material/legacy-progress-spinner';
10
- import { MatLegacyProgressSpinnerDefaultOptions as MatProgressSpinnerDefaultOptions } from '@angular/material/legacy-progress-spinner';
8
+ import { InjectionToken } from '@angular/core';
11
9
  import { NumberInput } from '@angular/cdk/coercion';
10
+ import { ThemePalette } from '@angular/material/core';
12
11
 
13
12
  declare namespace i1 {
14
13
  export {
14
+ MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY,
15
15
  ProgressSpinnerMode,
16
+ MatProgressSpinnerDefaultOptions,
17
+ MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS,
16
18
  MatProgressSpinner,
17
19
  MatSpinner
18
20
  }
19
21
  }
20
22
 
21
- export { MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS }
23
+ /** Injection token to be used to override the default options for `mat-progress-spinner`. */
24
+ export declare const MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS: InjectionToken<MatProgressSpinnerDefaultOptions>;
22
25
 
23
- export { MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY }
26
+ /** @docs-private */
27
+ export declare function MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY(): MatProgressSpinnerDefaultOptions;
24
28
 
25
29
  export declare class MatProgressSpinner extends _MatProgressSpinnerBase implements CanColor {
26
30
  /** Whether the _mat-animation-noopable class should be applied, disabling animations. */
@@ -59,7 +63,7 @@ export declare class MatProgressSpinner extends _MatProgressSpinnerBase implemen
59
63
  /** Stroke width of the circle in percent. */
60
64
  _circleStrokeWidth(): number;
61
65
  static ɵfac: i0.ɵɵFactoryDeclaration<MatProgressSpinner, [null, { optional: true; }, null]>;
62
- static ɵcmp: i0.ɵɵComponentDeclaration<MatProgressSpinner, "mat-progress-spinner, mat-spinner", ["matProgressSpinner"], { "color": "color"; "mode": "mode"; "value": "value"; "diameter": "diameter"; "strokeWidth": "strokeWidth"; }, {}, never, never, false>;
66
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatProgressSpinner, "mat-progress-spinner, mat-spinner", ["matProgressSpinner"], { "color": "color"; "mode": "mode"; "value": "value"; "diameter": "diameter"; "strokeWidth": "strokeWidth"; }, {}, never, never, false, never>;
63
67
  }
64
68
 
65
69
  declare const _MatProgressSpinnerBase: _Constructor<CanColor> & _AbstractConstructor<CanColor> & {
@@ -68,7 +72,20 @@ declare const _MatProgressSpinnerBase: _Constructor<CanColor> & _AbstractConstru
68
72
  };
69
73
  };
70
74
 
71
- export { MatProgressSpinnerDefaultOptions }
75
+ /** Default `mat-progress-spinner` options that can be overridden. */
76
+ export declare interface MatProgressSpinnerDefaultOptions {
77
+ /** Default color of the spinner. */
78
+ color?: ThemePalette;
79
+ /** Diameter of the spinner. */
80
+ diameter?: number;
81
+ /** Width of the spinner's stroke. */
82
+ strokeWidth?: number;
83
+ /**
84
+ * Whether the animations should be force to be enabled, ignoring if the current environment is
85
+ * using NoopAnimationsModule.
86
+ */
87
+ _forceAnimations?: boolean;
88
+ }
72
89
 
73
90
  export declare class MatProgressSpinnerModule {
74
91
  static ɵfac: i0.ɵɵFactoryDeclaration<MatProgressSpinnerModule, never>;
@@ -1,8 +1,8 @@
1
+ import { BaseHarnessFilters } from '@angular/cdk/testing';
1
2
  import { ComponentHarness } from '@angular/cdk/testing';
2
3
  import { ComponentHarnessConstructor } from '@angular/cdk/testing';
3
4
  import { HarnessPredicate } from '@angular/cdk/testing';
4
- import { LegacyProgressSpinnerMode } from '@angular/material/legacy-progress-spinner';
5
- import { LegacyProgressSpinnerHarnessFilters as ProgressSpinnerHarnessFilters } from '@angular/material/legacy-progress-spinner/testing';
5
+ import { ProgressSpinnerMode } from '@angular/material/progress-spinner';
6
6
 
7
7
  /** Harness for interacting with a MDC based mat-progress-spinner in tests. */
8
8
  export declare class MatProgressSpinnerHarness extends ComponentHarness {
@@ -18,9 +18,11 @@ export declare class MatProgressSpinnerHarness extends ComponentHarness {
18
18
  /** Gets the progress spinner's value. */
19
19
  getValue(): Promise<number | null>;
20
20
  /** Gets the progress spinner's mode. */
21
- getMode(): Promise<LegacyProgressSpinnerMode>;
21
+ getMode(): Promise<ProgressSpinnerMode>;
22
22
  }
23
23
 
24
- export { ProgressSpinnerHarnessFilters }
24
+ /** A set of criteria that can be used to filter a list of `MatProgressSpinnerHarness` instances. */
25
+ export declare interface ProgressSpinnerHarnessFilters extends BaseHarnessFilters {
26
+ }
25
27
 
26
28
  export { }
package/radio/index.d.ts CHANGED
@@ -58,7 +58,7 @@ export declare const MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR: any;
58
58
  export declare class MatRadioButton extends _MatRadioButtonBase {
59
59
  constructor(radioGroup: MatRadioGroup, elementRef: ElementRef, _changeDetector: ChangeDetectorRef, _focusMonitor: FocusMonitor, _radioDispatcher: UniqueSelectionDispatcher, animationMode?: string, _providerOverride?: MatRadioDefaultOptions, tabIndex?: string);
60
60
  static ɵfac: i0.ɵɵFactoryDeclaration<MatRadioButton, [{ optional: true; }, null, null, null, null, { optional: true; }, { optional: true; }, { attribute: "tabindex"; }]>;
61
- static ɵcmp: i0.ɵɵComponentDeclaration<MatRadioButton, "mat-radio-button", ["matRadioButton"], { "disableRipple": "disableRipple"; "tabIndex": "tabIndex"; }, {}, never, ["*"], false>;
61
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatRadioButton, "mat-radio-button", ["matRadioButton"], { "disableRipple": "disableRipple"; "tabIndex": "tabIndex"; }, {}, never, ["*"], false, never>;
62
62
  }
63
63
 
64
64
  /** @docs-private */
@@ -158,7 +158,7 @@ export declare abstract class _MatRadioButtonBase extends _MatRadioButtonMixinBa
158
158
  /** Gets the tabindex for the underlying input element. */
159
159
  private _updateTabIndex;
160
160
  static ɵfac: i0.ɵɵFactoryDeclaration<_MatRadioButtonBase, never>;
161
- static ɵdir: i0.ɵɵDirectiveDeclaration<_MatRadioButtonBase, never, never, { "id": "id"; "name": "name"; "ariaLabel": "aria-label"; "ariaLabelledby": "aria-labelledby"; "ariaDescribedby": "aria-describedby"; "checked": "checked"; "value": "value"; "labelPosition": "labelPosition"; "disabled": "disabled"; "required": "required"; "color": "color"; }, { "change": "change"; }, never, never, false>;
161
+ static ɵdir: i0.ɵɵDirectiveDeclaration<_MatRadioButtonBase, never, never, { "id": "id"; "name": "name"; "ariaLabel": "aria-label"; "ariaLabelledby": "aria-labelledby"; "ariaDescribedby": "aria-describedby"; "checked": "checked"; "value": "value"; "labelPosition": "labelPosition"; "disabled": "disabled"; "required": "required"; "color": "color"; }, { "change": "change"; }, never, never, false, never>;
162
162
  }
163
163
 
164
164
  declare const _MatRadioButtonMixinBase: _Constructor<CanDisableRipple> & _AbstractConstructor<CanDisableRipple> & _Constructor<HasTabIndex> & _AbstractConstructor<HasTabIndex> & typeof MatRadioButtonBase;
@@ -187,7 +187,7 @@ export declare class MatRadioGroup extends _MatRadioGroupBase<MatRadioButton> {
187
187
  /** Child radio buttons. */
188
188
  _radios: QueryList<MatRadioButton>;
189
189
  static ɵfac: i0.ɵɵFactoryDeclaration<MatRadioGroup, never>;
190
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatRadioGroup, "mat-radio-group", ["matRadioGroup"], {}, {}, ["_radios"], never, false>;
190
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatRadioGroup, "mat-radio-group", ["matRadioGroup"], {}, {}, ["_radios"], never, false, never>;
191
191
  }
192
192
 
193
193
  /**
@@ -294,7 +294,7 @@ export declare abstract class _MatRadioGroupBase<T extends _MatRadioButtonBase>
294
294
  */
295
295
  setDisabledState(isDisabled: boolean): void;
296
296
  static ɵfac: i0.ɵɵFactoryDeclaration<_MatRadioGroupBase<any>, never>;
297
- static ɵdir: i0.ɵɵDirectiveDeclaration<_MatRadioGroupBase<any>, never, never, { "color": "color"; "name": "name"; "labelPosition": "labelPosition"; "value": "value"; "selected": "selected"; "disabled": "disabled"; "required": "required"; }, { "change": "change"; }, never, never, false>;
297
+ static ɵdir: i0.ɵɵDirectiveDeclaration<_MatRadioGroupBase<any>, never, never, { "color": "color"; "name": "name"; "labelPosition": "labelPosition"; "value": "value"; "selected": "selected"; "disabled": "disabled"; "required": "required"; }, { "change": "change"; }, never, never, false, never>;
298
298
  }
299
299
 
300
300
  export declare class MatRadioModule {
@@ -8358,6 +8358,7 @@ Identifiers.InheritDefinitionFeature = { name: "\u0275\u0275InheritDefinitionFea
8358
8358
  Identifiers.CopyDefinitionFeature = { name: "\u0275\u0275CopyDefinitionFeature", moduleName: CORE };
8359
8359
  Identifiers.StandaloneFeature = { name: "\u0275\u0275StandaloneFeature", moduleName: CORE };
8360
8360
  Identifiers.ProvidersFeature = { name: "\u0275\u0275ProvidersFeature", moduleName: CORE };
8361
+ Identifiers.HostDirectivesFeature = { name: "\u0275\u0275HostDirectivesFeature", moduleName: CORE };
8361
8362
  Identifiers.listener = { name: "\u0275\u0275listener", moduleName: CORE };
8362
8363
  Identifiers.getInheritedFactory = {
8363
8364
  name: "\u0275\u0275getInheritedFactory",
@@ -17417,39 +17418,39 @@ var SCHEMA = [
17417
17418
  "time^[HTMLElement]|dateTime",
17418
17419
  ":svg:cursor^:svg:|"
17419
17420
  ];
17420
- var _ATTR_TO_PROP = {
17421
+ var _ATTR_TO_PROP = new Map(Object.entries({
17421
17422
  "class": "className",
17422
17423
  "for": "htmlFor",
17423
17424
  "formaction": "formAction",
17424
17425
  "innerHtml": "innerHTML",
17425
17426
  "readonly": "readOnly",
17426
17427
  "tabindex": "tabIndex"
17427
- };
17428
- var _PROP_TO_ATTR = Object.keys(_ATTR_TO_PROP).reduce((inverted, attr) => {
17429
- inverted[_ATTR_TO_PROP[attr]] = attr;
17428
+ }));
17429
+ var _PROP_TO_ATTR = Array.from(_ATTR_TO_PROP).reduce((inverted, [propertyName, attributeName]) => {
17430
+ inverted.set(propertyName, attributeName);
17430
17431
  return inverted;
17431
- }, {});
17432
+ }, /* @__PURE__ */ new Map());
17432
17433
  var DomElementSchemaRegistry = class extends ElementSchemaRegistry {
17433
17434
  constructor() {
17434
17435
  super();
17435
- this._schema = {};
17436
- this._eventSchema = {};
17436
+ this._schema = /* @__PURE__ */ new Map();
17437
+ this._eventSchema = /* @__PURE__ */ new Map();
17437
17438
  SCHEMA.forEach((encodedType) => {
17438
- const type = {};
17439
+ const type = /* @__PURE__ */ new Map();
17439
17440
  const events = /* @__PURE__ */ new Set();
17440
17441
  const [strType, strProperties] = encodedType.split("|");
17441
17442
  const properties = strProperties.split(",");
17442
17443
  const [typeNames, superName] = strType.split("^");
17443
17444
  typeNames.split(",").forEach((tag) => {
17444
- this._schema[tag.toLowerCase()] = type;
17445
- this._eventSchema[tag.toLowerCase()] = events;
17445
+ this._schema.set(tag.toLowerCase(), type);
17446
+ this._eventSchema.set(tag.toLowerCase(), events);
17446
17447
  });
17447
- const superType = superName && this._schema[superName.toLowerCase()];
17448
+ const superType = superName && this._schema.get(superName.toLowerCase());
17448
17449
  if (superType) {
17449
- Object.keys(superType).forEach((prop) => {
17450
- type[prop] = superType[prop];
17451
- });
17452
- for (const superEvent of this._eventSchema[superName.toLowerCase()]) {
17450
+ for (const [prop, value] of superType) {
17451
+ type.set(prop, value);
17452
+ }
17453
+ for (const superEvent of this._eventSchema.get(superName.toLowerCase())) {
17453
17454
  events.add(superEvent);
17454
17455
  }
17455
17456
  }
@@ -17460,16 +17461,16 @@ var DomElementSchemaRegistry = class extends ElementSchemaRegistry {
17460
17461
  events.add(property.substring(1));
17461
17462
  break;
17462
17463
  case "!":
17463
- type[property.substring(1)] = BOOLEAN;
17464
+ type.set(property.substring(1), BOOLEAN);
17464
17465
  break;
17465
17466
  case "#":
17466
- type[property.substring(1)] = NUMBER;
17467
+ type.set(property.substring(1), NUMBER);
17467
17468
  break;
17468
17469
  case "%":
17469
- type[property.substring(1)] = OBJECT;
17470
+ type.set(property.substring(1), OBJECT);
17470
17471
  break;
17471
17472
  default:
17472
- type[property] = STRING;
17473
+ type.set(property, STRING);
17473
17474
  }
17474
17475
  }
17475
17476
  });
@@ -17487,8 +17488,8 @@ var DomElementSchemaRegistry = class extends ElementSchemaRegistry {
17487
17488
  return true;
17488
17489
  }
17489
17490
  }
17490
- const elementProperties = this._schema[tagName.toLowerCase()] || this._schema["unknown"];
17491
- return !!elementProperties[propName];
17491
+ const elementProperties = this._schema.get(tagName.toLowerCase()) || this._schema.get("unknown");
17492
+ return elementProperties.has(propName);
17492
17493
  }
17493
17494
  hasElement(tagName, schemaMetas) {
17494
17495
  if (schemaMetas.some((schema) => schema.name === NO_ERRORS_SCHEMA.name)) {
@@ -17502,7 +17503,7 @@ var DomElementSchemaRegistry = class extends ElementSchemaRegistry {
17502
17503
  return true;
17503
17504
  }
17504
17505
  }
17505
- return !!this._schema[tagName.toLowerCase()];
17506
+ return this._schema.has(tagName.toLowerCase());
17506
17507
  }
17507
17508
  securityContext(tagName, propName, isAttribute) {
17508
17509
  if (isAttribute) {
@@ -17518,7 +17519,8 @@ var DomElementSchemaRegistry = class extends ElementSchemaRegistry {
17518
17519
  return ctx ? ctx : SecurityContext.NONE;
17519
17520
  }
17520
17521
  getMappedPropName(propName) {
17521
- return _ATTR_TO_PROP[propName] || propName;
17522
+ var _a;
17523
+ return (_a = _ATTR_TO_PROP.get(propName)) !== null && _a !== void 0 ? _a : propName;
17522
17524
  }
17523
17525
  getDefaultComponentElementName() {
17524
17526
  return "ng-component";
@@ -17541,18 +17543,18 @@ If '${name}' is a directive input, make sure the directive is imported by the cu
17541
17543
  }
17542
17544
  }
17543
17545
  allKnownElementNames() {
17544
- return Object.keys(this._schema);
17546
+ return Array.from(this._schema.keys());
17545
17547
  }
17546
17548
  allKnownAttributesOfElement(tagName) {
17547
- const elementProperties = this._schema[tagName.toLowerCase()] || this._schema["unknown"];
17548
- return Object.keys(elementProperties).map((prop) => {
17549
+ const elementProperties = this._schema.get(tagName.toLowerCase()) || this._schema.get("unknown");
17550
+ return Array.from(elementProperties.keys()).map((prop) => {
17549
17551
  var _a;
17550
- return (_a = _PROP_TO_ATTR[prop]) !== null && _a !== void 0 ? _a : prop;
17552
+ return (_a = _PROP_TO_ATTR.get(prop)) !== null && _a !== void 0 ? _a : prop;
17551
17553
  });
17552
17554
  }
17553
17555
  allKnownEventsOfElement(tagName) {
17554
17556
  var _a;
17555
- return Array.from((_a = this._eventSchema[tagName.toLowerCase()]) !== null && _a !== void 0 ? _a : []);
17557
+ return Array.from((_a = this._eventSchema.get(tagName.toLowerCase())) !== null && _a !== void 0 ? _a : []);
17556
17558
  }
17557
17559
  normalizeAnimationStyleProperty(propName) {
17558
17560
  return dashCaseToCamelCase(propName);
@@ -20330,6 +20332,7 @@ function baseDirectiveFields(meta, constantPool, bindingParser) {
20330
20332
  return definitionMap;
20331
20333
  }
20332
20334
  function addFeatures(definitionMap, meta) {
20335
+ var _a;
20333
20336
  const features = [];
20334
20337
  const providers = meta.providers;
20335
20338
  const viewProviders = meta.viewProviders;
@@ -20352,6 +20355,9 @@ function addFeatures(definitionMap, meta) {
20352
20355
  if (meta.hasOwnProperty("template") && meta.isStandalone) {
20353
20356
  features.push(importExpr(Identifiers.StandaloneFeature));
20354
20357
  }
20358
+ if ((_a = meta.hostDirectives) === null || _a === void 0 ? void 0 : _a.length) {
20359
+ features.push(importExpr(Identifiers.HostDirectivesFeature).callFn([createHostDirectivesFeatureArg(meta.hostDirectives)]));
20360
+ }
20355
20361
  if (features.length) {
20356
20362
  definitionMap.set("features", literalArr(features));
20357
20363
  }
@@ -20432,6 +20438,7 @@ function createComponentType(meta) {
20432
20438
  const typeParams = createBaseDirectiveTypeParams(meta);
20433
20439
  typeParams.push(stringArrayAsType(meta.template.ngContentSelectors));
20434
20440
  typeParams.push(expressionType(literal(meta.isStandalone)));
20441
+ typeParams.push(createHostDirectivesType(meta));
20435
20442
  return expressionType(importExpr(Identifiers.ComponentDeclaration, typeParams));
20436
20443
  }
20437
20444
  function compileDeclarationList(list2, mode) {
@@ -20488,7 +20495,7 @@ function createContentQueriesFunction(queries, constantPool, name) {
20488
20495
  function stringAsType(str) {
20489
20496
  return expressionType(literal(str));
20490
20497
  }
20491
- function stringMapAsType(map) {
20498
+ function stringMapAsLiteralExpression(map) {
20492
20499
  const mapValues = Object.keys(map).map((key) => {
20493
20500
  const value = Array.isArray(map[key]) ? map[key][0] : map[key];
20494
20501
  return {
@@ -20497,7 +20504,7 @@ function stringMapAsType(map) {
20497
20504
  quoted: true
20498
20505
  };
20499
20506
  });
20500
- return expressionType(literalMap(mapValues));
20507
+ return literalMap(mapValues);
20501
20508
  }
20502
20509
  function stringArrayAsType(arr) {
20503
20510
  return arr.length > 0 ? expressionType(literalArr(arr.map((value) => literal(value)))) : NONE_TYPE;
@@ -20508,8 +20515,8 @@ function createBaseDirectiveTypeParams(meta) {
20508
20515
  typeWithParameters(meta.type.type, meta.typeArgumentCount),
20509
20516
  selectorForType !== null ? stringAsType(selectorForType) : NONE_TYPE,
20510
20517
  meta.exportAs !== null ? stringArrayAsType(meta.exportAs) : NONE_TYPE,
20511
- stringMapAsType(meta.inputs),
20512
- stringMapAsType(meta.outputs),
20518
+ expressionType(stringMapAsLiteralExpression(meta.inputs)),
20519
+ expressionType(stringMapAsLiteralExpression(meta.outputs)),
20513
20520
  stringArrayAsType(meta.queries.map((q) => q.propertyName))
20514
20521
  ];
20515
20522
  }
@@ -20517,6 +20524,7 @@ function createDirectiveType(meta) {
20517
20524
  const typeParams = createBaseDirectiveTypeParams(meta);
20518
20525
  typeParams.push(NONE_TYPE);
20519
20526
  typeParams.push(expressionType(literal(meta.isStandalone)));
20527
+ typeParams.push(createHostDirectivesType(meta));
20520
20528
  return expressionType(importExpr(Identifiers.DirectiveDeclaration, typeParams));
20521
20529
  }
20522
20530
  function createViewQueriesFunction(viewQueries, constantPool, name) {
@@ -20752,6 +20760,54 @@ function compileStyles(styles, selector, hostSelector) {
20752
20760
  return shadowCss.shimCssText(style, selector, hostSelector);
20753
20761
  });
20754
20762
  }
20763
+ function createHostDirectivesType(meta) {
20764
+ var _a;
20765
+ if (!((_a = meta.hostDirectives) === null || _a === void 0 ? void 0 : _a.length)) {
20766
+ return NONE_TYPE;
20767
+ }
20768
+ return expressionType(literalArr(meta.hostDirectives.map((hostMeta) => literalMap([
20769
+ { key: "directive", value: typeofExpr(hostMeta.directive.type), quoted: false },
20770
+ { key: "inputs", value: stringMapAsLiteralExpression(hostMeta.inputs || {}), quoted: false },
20771
+ { key: "outputs", value: stringMapAsLiteralExpression(hostMeta.outputs || {}), quoted: false }
20772
+ ]))));
20773
+ }
20774
+ function createHostDirectivesFeatureArg(hostDirectives) {
20775
+ const expressions = [];
20776
+ let hasForwardRef = false;
20777
+ for (const current of hostDirectives) {
20778
+ if (!current.inputs && !current.outputs) {
20779
+ expressions.push(current.directive.type);
20780
+ } else {
20781
+ const keys = [{ key: "directive", value: current.directive.type, quoted: false }];
20782
+ if (current.inputs) {
20783
+ const inputsLiteral = createHostDirectivesMappingArray(current.inputs);
20784
+ if (inputsLiteral) {
20785
+ keys.push({ key: "inputs", value: inputsLiteral, quoted: false });
20786
+ }
20787
+ }
20788
+ if (current.outputs) {
20789
+ const outputsLiteral = createHostDirectivesMappingArray(current.outputs);
20790
+ if (outputsLiteral) {
20791
+ keys.push({ key: "outputs", value: outputsLiteral, quoted: false });
20792
+ }
20793
+ }
20794
+ expressions.push(literalMap(keys));
20795
+ }
20796
+ if (current.isForwardReference) {
20797
+ hasForwardRef = true;
20798
+ }
20799
+ }
20800
+ return hasForwardRef ? new FunctionExpr([], [new ReturnStatement(literalArr(expressions))]) : literalArr(expressions);
20801
+ }
20802
+ function createHostDirectivesMappingArray(mapping) {
20803
+ const elements = [];
20804
+ for (const publicName in mapping) {
20805
+ if (mapping.hasOwnProperty(publicName)) {
20806
+ elements.push(literal(publicName), literal(mapping[publicName]));
20807
+ }
20808
+ }
20809
+ return elements.length > 0 ? literalArr(elements) : null;
20810
+ }
20755
20811
  var ResourceLoader = class {
20756
20812
  };
20757
20813
  var CompilerFacadeImpl = class {
@@ -20952,7 +21008,7 @@ function convertDirectiveFacadeToMetadata(facade) {
20952
21008
  });
20953
21009
  }
20954
21010
  }
20955
- return Object.assign(Object.assign({}, facade), { typeArgumentCount: 0, typeSourceSpan: facade.typeSourceSpan, type: wrapReference(facade.type), internalType: new WrappedNodeExpr(facade.type), deps: null, host: extractHostBindings(facade.propMetadata, facade.typeSourceSpan, facade.host), inputs: Object.assign(Object.assign({}, inputsFromMetadata), inputsFromType), outputs: Object.assign(Object.assign({}, outputsFromMetadata), outputsFromType), queries: facade.queries.map(convertToR3QueryMetadata), providers: facade.providers != null ? new WrappedNodeExpr(facade.providers) : null, viewQueries: facade.viewQueries.map(convertToR3QueryMetadata), fullInheritance: false });
21011
+ return Object.assign(Object.assign({}, facade), { typeArgumentCount: 0, typeSourceSpan: facade.typeSourceSpan, type: wrapReference(facade.type), internalType: new WrappedNodeExpr(facade.type), deps: null, host: extractHostBindings(facade.propMetadata, facade.typeSourceSpan, facade.host), inputs: Object.assign(Object.assign({}, inputsFromMetadata), inputsFromType), outputs: Object.assign(Object.assign({}, outputsFromMetadata), outputsFromType), queries: facade.queries.map(convertToR3QueryMetadata), providers: facade.providers != null ? new WrappedNodeExpr(facade.providers) : null, viewQueries: facade.viewQueries.map(convertToR3QueryMetadata), fullInheritance: false, hostDirectives: convertHostDirectivesToMetadata(facade) });
20956
21012
  }
20957
21013
  function convertDeclareDirectiveFacadeToMetadata(declaration, typeSourceSpan) {
20958
21014
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
@@ -20974,7 +21030,8 @@ function convertDeclareDirectiveFacadeToMetadata(declaration, typeSourceSpan) {
20974
21030
  deps: null,
20975
21031
  typeArgumentCount: 0,
20976
21032
  fullInheritance: false,
20977
- isStandalone: (_j = declaration.isStandalone) !== null && _j !== void 0 ? _j : false
21033
+ isStandalone: (_j = declaration.isStandalone) !== null && _j !== void 0 ? _j : false,
21034
+ hostDirectives: convertHostDirectivesToMetadata(declaration)
20978
21035
  };
20979
21036
  }
20980
21037
  function convertHostDeclarationToMetadata(host = {}) {
@@ -20989,6 +21046,25 @@ function convertHostDeclarationToMetadata(host = {}) {
20989
21046
  }
20990
21047
  };
20991
21048
  }
21049
+ function convertHostDirectivesToMetadata(metadata) {
21050
+ var _a;
21051
+ if ((_a = metadata.hostDirectives) === null || _a === void 0 ? void 0 : _a.length) {
21052
+ return metadata.hostDirectives.map((hostDirective) => {
21053
+ return typeof hostDirective === "function" ? {
21054
+ directive: wrapReference(hostDirective),
21055
+ inputs: null,
21056
+ outputs: null,
21057
+ isForwardReference: false
21058
+ } : {
21059
+ directive: wrapReference(hostDirective.directive),
21060
+ isForwardReference: false,
21061
+ inputs: hostDirective.inputs ? parseInputOutputs(hostDirective.inputs) : null,
21062
+ outputs: hostDirective.outputs ? parseInputOutputs(hostDirective.outputs) : null
21063
+ };
21064
+ });
21065
+ }
21066
+ return null;
21067
+ }
20992
21068
  function convertOpaqueValuesToExpressions(obj) {
20993
21069
  const result = {};
20994
21070
  for (const key of Object.keys(obj)) {
@@ -21163,7 +21239,7 @@ function publishFacade(global2) {
21163
21239
  const ng = global2.ng || (global2.ng = {});
21164
21240
  ng.\u0275compilerFacade = new CompilerFacadeImpl();
21165
21241
  }
21166
- var VERSION = new Version("14.2.0");
21242
+ var VERSION = new Version("15.0.0-next.1");
21167
21243
  var _VisitorMode;
21168
21244
  (function(_VisitorMode2) {
21169
21245
  _VisitorMode2[_VisitorMode2["Extract"] = 0] = "Extract";
@@ -22277,7 +22353,7 @@ function mdc_migration_default(options) {
22277
22353
  * found in the LICENSE file at https://angular.io/license
22278
22354
  */
22279
22355
  /**
22280
- * @license Angular v14.2.0
22356
+ * @license Angular v15.0.0-next.1
22281
22357
  * (c) 2010-2022 Google LLC. https://angular.io/
22282
22358
  * License: MIT
22283
22359
  */