@angular/material 15.0.0-next.4 → 15.0.0-rc.0

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 (562) hide show
  1. package/_index.scss +24 -20
  2. package/badge/_badge-legacy-index.scss +1 -1
  3. package/badge/_badge-theme.import.scss +1 -1
  4. package/badge/_badge-theme.scss +2 -2
  5. package/bottom-sheet/_bottom-sheet-legacy-index.scss +1 -1
  6. package/bottom-sheet/_bottom-sheet-theme.import.scss +1 -1
  7. package/bottom-sheet/_bottom-sheet-theme.scss +2 -2
  8. package/button/testing/index.d.ts +8 -0
  9. package/chips/index.d.ts +42 -12
  10. package/core/mdc-helpers/_mdc-helpers.scss +8 -6
  11. package/core/typography/_all-typography.scss +73 -81
  12. package/datepicker/_datepicker-legacy-index.scss +1 -1
  13. package/datepicker/_datepicker-theme.import.scss +1 -1
  14. package/datepicker/_datepicker-theme.scss +4 -2
  15. package/datepicker/index.d.ts +14 -2
  16. package/divider/_divider-legacy-index.scss +1 -1
  17. package/divider/_divider-theme.import.scss +1 -1
  18. package/divider/_divider-theme.scss +2 -2
  19. package/esm2020/autocomplete/autocomplete-origin.mjs +7 -7
  20. package/esm2020/autocomplete/autocomplete-trigger.mjs +7 -7
  21. package/esm2020/autocomplete/autocomplete.mjs +7 -7
  22. package/esm2020/autocomplete/module.mjs +5 -5
  23. package/esm2020/badge/badge-module.mjs +5 -5
  24. package/esm2020/badge/badge.mjs +4 -4
  25. package/esm2020/bottom-sheet/bottom-sheet-container.mjs +4 -4
  26. package/esm2020/bottom-sheet/bottom-sheet-module.mjs +5 -5
  27. package/esm2020/bottom-sheet/bottom-sheet.mjs +4 -4
  28. package/esm2020/button/button-base.mjs +7 -7
  29. package/esm2020/button/button.mjs +7 -7
  30. package/esm2020/button/fab.mjs +13 -13
  31. package/esm2020/button/icon-button.mjs +7 -7
  32. package/esm2020/button/module.mjs +5 -5
  33. package/esm2020/button/testing/button-harness-filters.mjs +1 -1
  34. package/esm2020/button/testing/button-harness.mjs +28 -2
  35. package/esm2020/button-toggle/button-toggle-module.mjs +5 -5
  36. package/esm2020/button-toggle/button-toggle.mjs +7 -7
  37. package/esm2020/card/card.mjs +43 -43
  38. package/esm2020/card/module.mjs +5 -5
  39. package/esm2020/checkbox/checkbox-required-validator.mjs +4 -4
  40. package/esm2020/checkbox/checkbox.mjs +8 -8
  41. package/esm2020/checkbox/module.mjs +9 -9
  42. package/esm2020/chips/chip-action.mjs +28 -6
  43. package/esm2020/chips/chip-edit-input.mjs +4 -4
  44. package/esm2020/chips/chip-grid.mjs +4 -4
  45. package/esm2020/chips/chip-icons.mjs +12 -18
  46. package/esm2020/chips/chip-input.mjs +4 -4
  47. package/esm2020/chips/chip-listbox.mjs +20 -4
  48. package/esm2020/chips/chip-option.mjs +24 -14
  49. package/esm2020/chips/chip-row.mjs +5 -5
  50. package/esm2020/chips/chip-set.mjs +14 -6
  51. package/esm2020/chips/chip.mjs +4 -4
  52. package/esm2020/chips/module.mjs +5 -5
  53. package/esm2020/core/common-behaviors/common-module.mjs +5 -5
  54. package/esm2020/core/datetime/index.mjs +9 -9
  55. package/esm2020/core/datetime/native-date-adapter.mjs +4 -4
  56. package/esm2020/core/error/error-options.mjs +7 -7
  57. package/esm2020/core/line/line.mjs +8 -8
  58. package/esm2020/core/option/index.mjs +5 -5
  59. package/esm2020/core/option/optgroup.mjs +7 -7
  60. package/esm2020/core/option/option.mjs +7 -7
  61. package/esm2020/core/ripple/index.mjs +5 -5
  62. package/esm2020/core/ripple/ripple.mjs +4 -4
  63. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +5 -5
  64. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +4 -4
  65. package/esm2020/core/version.mjs +1 -1
  66. package/esm2020/datepicker/calendar-body.mjs +4 -4
  67. package/esm2020/datepicker/calendar.mjs +7 -7
  68. package/esm2020/datepicker/date-range-input-parts.mjs +11 -11
  69. package/esm2020/datepicker/date-range-input.mjs +4 -4
  70. package/esm2020/datepicker/date-range-picker.mjs +4 -4
  71. package/esm2020/datepicker/date-range-selection-strategy.mjs +4 -4
  72. package/esm2020/datepicker/date-selection-model.mjs +10 -10
  73. package/esm2020/datepicker/datepicker-actions.mjs +10 -10
  74. package/esm2020/datepicker/datepicker-base.mjs +23 -10
  75. package/esm2020/datepicker/datepicker-input-base.mjs +4 -4
  76. package/esm2020/datepicker/datepicker-input.mjs +4 -4
  77. package/esm2020/datepicker/datepicker-intl.mjs +14 -6
  78. package/esm2020/datepicker/datepicker-module.mjs +5 -5
  79. package/esm2020/datepicker/datepicker-toggle.mjs +8 -8
  80. package/esm2020/datepicker/datepicker.mjs +4 -4
  81. package/esm2020/datepicker/month-view.mjs +4 -4
  82. package/esm2020/datepicker/multi-year-view.mjs +4 -4
  83. package/esm2020/datepicker/year-view.mjs +4 -4
  84. package/esm2020/dialog/dialog-container.mjs +7 -7
  85. package/esm2020/dialog/dialog-content-directives.mjs +13 -13
  86. package/esm2020/dialog/dialog.mjs +7 -7
  87. package/esm2020/dialog/module.mjs +5 -5
  88. package/esm2020/divider/divider-module.mjs +5 -5
  89. package/esm2020/divider/divider.mjs +4 -4
  90. package/esm2020/expansion/accordion.mjs +4 -4
  91. package/esm2020/expansion/expansion-module.mjs +5 -5
  92. package/esm2020/expansion/expansion-panel-content.mjs +4 -4
  93. package/esm2020/expansion/expansion-panel-header.mjs +10 -10
  94. package/esm2020/expansion/expansion-panel.mjs +7 -7
  95. package/esm2020/form-field/directives/error.mjs +4 -4
  96. package/esm2020/form-field/directives/floating-label.mjs +4 -4
  97. package/esm2020/form-field/directives/hint.mjs +4 -4
  98. package/esm2020/form-field/directives/label.mjs +4 -4
  99. package/esm2020/form-field/directives/line-ripple.mjs +4 -4
  100. package/esm2020/form-field/directives/notched-outline.mjs +4 -4
  101. package/esm2020/form-field/directives/prefix.mjs +4 -4
  102. package/esm2020/form-field/directives/suffix.mjs +4 -4
  103. package/esm2020/form-field/form-field-control.mjs +4 -4
  104. package/esm2020/form-field/form-field.mjs +4 -4
  105. package/esm2020/form-field/module.mjs +5 -5
  106. package/esm2020/grid-list/grid-list-module.mjs +5 -5
  107. package/esm2020/grid-list/grid-list.mjs +4 -4
  108. package/esm2020/grid-list/grid-tile.mjs +16 -16
  109. package/esm2020/icon/icon-module.mjs +5 -5
  110. package/esm2020/icon/icon-registry.mjs +4 -4
  111. package/esm2020/icon/icon.mjs +5 -4
  112. package/esm2020/icon/testing/fake-icon-registry.mjs +8 -8
  113. package/esm2020/input/input.mjs +4 -4
  114. package/esm2020/input/module.mjs +5 -5
  115. package/esm2020/legacy-autocomplete/autocomplete-module.mjs +5 -5
  116. package/esm2020/legacy-autocomplete/autocomplete-origin.mjs +4 -4
  117. package/esm2020/legacy-autocomplete/autocomplete-trigger.mjs +4 -4
  118. package/esm2020/legacy-autocomplete/autocomplete.mjs +4 -4
  119. package/esm2020/legacy-button/button-module.mjs +5 -5
  120. package/esm2020/legacy-button/button.mjs +7 -7
  121. package/esm2020/legacy-button/testing/button-harness.mjs +27 -2
  122. package/esm2020/legacy-button/testing/public-api.mjs +1 -1
  123. package/esm2020/legacy-card/card-module.mjs +5 -5
  124. package/esm2020/legacy-card/card.mjs +43 -43
  125. package/esm2020/legacy-checkbox/checkbox-module.mjs +5 -5
  126. package/esm2020/legacy-checkbox/checkbox.mjs +4 -4
  127. package/esm2020/legacy-chips/chip-input.mjs +4 -4
  128. package/esm2020/legacy-chips/chip-list.mjs +4 -4
  129. package/esm2020/legacy-chips/chip.mjs +13 -13
  130. package/esm2020/legacy-chips/chips-module.mjs +5 -5
  131. package/esm2020/legacy-core/option/index.mjs +5 -5
  132. package/esm2020/legacy-core/option/optgroup.mjs +4 -4
  133. package/esm2020/legacy-core/option/option.mjs +4 -4
  134. package/esm2020/legacy-dialog/dialog-container.mjs +4 -4
  135. package/esm2020/legacy-dialog/dialog-content-directives.mjs +13 -13
  136. package/esm2020/legacy-dialog/dialog-module.mjs +5 -5
  137. package/esm2020/legacy-dialog/dialog.mjs +4 -4
  138. package/esm2020/legacy-form-field/error.mjs +4 -4
  139. package/esm2020/legacy-form-field/form-field-module.mjs +5 -5
  140. package/esm2020/legacy-form-field/form-field.mjs +4 -4
  141. package/esm2020/legacy-form-field/hint.mjs +4 -4
  142. package/esm2020/legacy-form-field/label.mjs +4 -4
  143. package/esm2020/legacy-form-field/placeholder.mjs +4 -4
  144. package/esm2020/legacy-form-field/prefix.mjs +4 -4
  145. package/esm2020/legacy-form-field/suffix.mjs +4 -4
  146. package/esm2020/legacy-input/input-module.mjs +5 -5
  147. package/esm2020/legacy-input/input.mjs +6 -6
  148. package/esm2020/legacy-list/list-module.mjs +5 -5
  149. package/esm2020/legacy-list/list.mjs +19 -19
  150. package/esm2020/legacy-list/selection-list.mjs +7 -7
  151. package/esm2020/legacy-menu/menu-content.mjs +4 -4
  152. package/esm2020/legacy-menu/menu-item.mjs +4 -4
  153. package/esm2020/legacy-menu/menu-module.mjs +5 -5
  154. package/esm2020/legacy-menu/menu-trigger.mjs +4 -4
  155. package/esm2020/legacy-menu/menu.mjs +4 -4
  156. package/esm2020/legacy-paginator/paginator-module.mjs +5 -5
  157. package/esm2020/legacy-paginator/paginator.mjs +4 -4
  158. package/esm2020/legacy-progress-bar/progress-bar-module.mjs +5 -5
  159. package/esm2020/legacy-progress-bar/progress-bar.mjs +4 -4
  160. package/esm2020/legacy-progress-spinner/progress-spinner-module.mjs +5 -5
  161. package/esm2020/legacy-progress-spinner/progress-spinner.mjs +4 -4
  162. package/esm2020/legacy-radio/radio-module.mjs +5 -5
  163. package/esm2020/legacy-radio/radio.mjs +7 -7
  164. package/esm2020/legacy-select/select-module.mjs +5 -5
  165. package/esm2020/legacy-select/select.mjs +7 -7
  166. package/esm2020/legacy-slide-toggle/slide-toggle-module.mjs +5 -5
  167. package/esm2020/legacy-slide-toggle/slide-toggle.mjs +4 -4
  168. package/esm2020/legacy-slider/slider-module.mjs +5 -5
  169. package/esm2020/legacy-slider/slider.mjs +4 -4
  170. package/esm2020/legacy-snack-bar/simple-snack-bar.mjs +4 -4
  171. package/esm2020/legacy-snack-bar/snack-bar-container.mjs +4 -4
  172. package/esm2020/legacy-snack-bar/snack-bar-module.mjs +5 -5
  173. package/esm2020/legacy-snack-bar/snack-bar.mjs +4 -4
  174. package/esm2020/legacy-table/cell.mjs +22 -22
  175. package/esm2020/legacy-table/row.mjs +22 -22
  176. package/esm2020/legacy-table/table-module.mjs +5 -5
  177. package/esm2020/legacy-table/table.mjs +7 -7
  178. package/esm2020/legacy-table/text-column.mjs +4 -4
  179. package/esm2020/legacy-tabs/ink-bar.mjs +4 -4
  180. package/esm2020/legacy-tabs/tab-body.mjs +7 -7
  181. package/esm2020/legacy-tabs/tab-content.mjs +4 -4
  182. package/esm2020/legacy-tabs/tab-group.mjs +4 -4
  183. package/esm2020/legacy-tabs/tab-header.mjs +4 -4
  184. package/esm2020/legacy-tabs/tab-label-wrapper.mjs +4 -4
  185. package/esm2020/legacy-tabs/tab-label.mjs +4 -4
  186. package/esm2020/legacy-tabs/tab-nav-bar/tab-nav-bar.mjs +10 -10
  187. package/esm2020/legacy-tabs/tab.mjs +4 -4
  188. package/esm2020/legacy-tabs/tabs-module.mjs +5 -5
  189. package/esm2020/legacy-tooltip/tooltip-module.mjs +5 -5
  190. package/esm2020/legacy-tooltip/tooltip.mjs +7 -7
  191. package/esm2020/list/action-list.mjs +4 -4
  192. package/esm2020/list/list-base.mjs +11 -8
  193. package/esm2020/list/list-item-sections.mjs +19 -19
  194. package/esm2020/list/list-module.mjs +5 -5
  195. package/esm2020/list/list-option.mjs +4 -4
  196. package/esm2020/list/list.mjs +7 -7
  197. package/esm2020/list/nav-list.mjs +4 -4
  198. package/esm2020/list/selection-list.mjs +36 -6
  199. package/esm2020/list/subheader.mjs +4 -4
  200. package/esm2020/menu/menu-content.mjs +7 -7
  201. package/esm2020/menu/menu-item.mjs +4 -4
  202. package/esm2020/menu/menu-trigger.mjs +7 -7
  203. package/esm2020/menu/menu.mjs +10 -8
  204. package/esm2020/menu/module.mjs +5 -5
  205. package/esm2020/paginator/module.mjs +5 -5
  206. package/esm2020/paginator/paginator-intl.mjs +4 -4
  207. package/esm2020/paginator/paginator.mjs +7 -7
  208. package/esm2020/paginator/testing/paginator-harness.mjs +2 -2
  209. package/esm2020/progress-bar/module.mjs +5 -5
  210. package/esm2020/progress-bar/progress-bar.mjs +4 -4
  211. package/esm2020/progress-spinner/module.mjs +5 -5
  212. package/esm2020/progress-spinner/progress-spinner.mjs +4 -4
  213. package/esm2020/radio/module.mjs +5 -5
  214. package/esm2020/radio/radio.mjs +18 -18
  215. package/esm2020/select/module.mjs +5 -5
  216. package/esm2020/select/select.mjs +11 -10
  217. package/esm2020/sidenav/drawer.mjs +10 -10
  218. package/esm2020/sidenav/sidenav-module.mjs +5 -5
  219. package/esm2020/sidenav/sidenav.mjs +10 -10
  220. package/esm2020/slide-toggle/module.mjs +9 -9
  221. package/esm2020/slide-toggle/slide-toggle-required-validator.mjs +4 -4
  222. package/esm2020/slide-toggle/slide-toggle.mjs +8 -8
  223. package/esm2020/slider/global-change-and-input-listener.mjs +4 -4
  224. package/esm2020/slider/module.mjs +5 -5
  225. package/esm2020/slider/slider.mjs +10 -10
  226. package/esm2020/snack-bar/module.mjs +5 -5
  227. package/esm2020/snack-bar/simple-snack-bar.mjs +4 -4
  228. package/esm2020/snack-bar/snack-bar-container.mjs +7 -7
  229. package/esm2020/snack-bar/snack-bar-content.mjs +10 -10
  230. package/esm2020/snack-bar/snack-bar.mjs +7 -7
  231. package/esm2020/sort/sort-header-intl.mjs +4 -4
  232. package/esm2020/sort/sort-header.mjs +4 -4
  233. package/esm2020/sort/sort-module.mjs +5 -5
  234. package/esm2020/sort/sort.mjs +4 -4
  235. package/esm2020/stepper/step-content.mjs +4 -4
  236. package/esm2020/stepper/step-header.mjs +4 -4
  237. package/esm2020/stepper/step-label.mjs +4 -4
  238. package/esm2020/stepper/stepper-button.mjs +7 -7
  239. package/esm2020/stepper/stepper-icon.mjs +4 -4
  240. package/esm2020/stepper/stepper-intl.mjs +4 -4
  241. package/esm2020/stepper/stepper-module.mjs +5 -5
  242. package/esm2020/stepper/stepper.mjs +7 -7
  243. package/esm2020/table/cell.mjs +22 -22
  244. package/esm2020/table/module.mjs +5 -5
  245. package/esm2020/table/row.mjs +22 -22
  246. package/esm2020/table/table.mjs +7 -7
  247. package/esm2020/table/text-column.mjs +4 -4
  248. package/esm2020/tabs/module.mjs +5 -5
  249. package/esm2020/tabs/paginated-tab-header.mjs +11 -12
  250. package/esm2020/tabs/tab-body.mjs +10 -10
  251. package/esm2020/tabs/tab-content.mjs +4 -4
  252. package/esm2020/tabs/tab-group.mjs +7 -7
  253. package/esm2020/tabs/tab-header.mjs +8 -8
  254. package/esm2020/tabs/tab-label-wrapper.mjs +7 -7
  255. package/esm2020/tabs/tab-label.mjs +4 -4
  256. package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +16 -16
  257. package/esm2020/tabs/tab.mjs +7 -7
  258. package/esm2020/toolbar/toolbar-module.mjs +5 -5
  259. package/esm2020/toolbar/toolbar.mjs +7 -7
  260. package/esm2020/tooltip/module.mjs +5 -5
  261. package/esm2020/tooltip/tooltip.mjs +13 -13
  262. package/esm2020/tree/node.mjs +10 -10
  263. package/esm2020/tree/outlet.mjs +4 -4
  264. package/esm2020/tree/padding.mjs +4 -4
  265. package/esm2020/tree/toggle.mjs +4 -4
  266. package/esm2020/tree/tree-module.mjs +5 -5
  267. package/esm2020/tree/tree.mjs +4 -4
  268. package/fesm2015/autocomplete.mjs +22 -22
  269. package/fesm2015/autocomplete.mjs.map +1 -1
  270. package/fesm2015/badge.mjs +7 -7
  271. package/fesm2015/badge.mjs.map +1 -1
  272. package/fesm2015/bottom-sheet.mjs +10 -10
  273. package/fesm2015/bottom-sheet.mjs.map +1 -1
  274. package/fesm2015/button/testing.mjs +29 -1
  275. package/fesm2015/button/testing.mjs.map +1 -1
  276. package/fesm2015/button-toggle.mjs +10 -10
  277. package/fesm2015/button-toggle.mjs.map +1 -1
  278. package/fesm2015/button.mjs +34 -34
  279. package/fesm2015/button.mjs.map +1 -1
  280. package/fesm2015/card.mjs +46 -46
  281. package/fesm2015/card.mjs.map +1 -1
  282. package/fesm2015/checkbox.mjs +18 -18
  283. package/fesm2015/checkbox.mjs.map +1 -1
  284. package/fesm2015/chips.mjs +113 -63
  285. package/fesm2015/chips.mjs.map +1 -1
  286. package/fesm2015/core.mjs +59 -59
  287. package/fesm2015/core.mjs.map +1 -1
  288. package/fesm2015/datepicker.mjs +112 -89
  289. package/fesm2015/datepicker.mjs.map +1 -1
  290. package/fesm2015/dialog.mjs +28 -28
  291. package/fesm2015/dialog.mjs.map +1 -1
  292. package/fesm2015/divider.mjs +7 -7
  293. package/fesm2015/divider.mjs.map +1 -1
  294. package/fesm2015/expansion.mjs +25 -25
  295. package/fesm2015/expansion.mjs.map +1 -1
  296. package/fesm2015/form-field.mjs +34 -34
  297. package/fesm2015/form-field.mjs.map +1 -1
  298. package/fesm2015/grid-list.mjs +22 -22
  299. package/fesm2015/grid-list.mjs.map +1 -1
  300. package/fesm2015/icon/testing.mjs +7 -7
  301. package/fesm2015/icon/testing.mjs.map +1 -1
  302. package/fesm2015/icon.mjs +11 -10
  303. package/fesm2015/icon.mjs.map +1 -1
  304. package/fesm2015/input.mjs +7 -7
  305. package/fesm2015/input.mjs.map +1 -1
  306. package/fesm2015/legacy-autocomplete.mjs +13 -13
  307. package/fesm2015/legacy-autocomplete.mjs.map +1 -1
  308. package/fesm2015/legacy-button/testing.mjs +28 -1
  309. package/fesm2015/legacy-button/testing.mjs.map +1 -1
  310. package/fesm2015/legacy-button.mjs +10 -10
  311. package/fesm2015/legacy-button.mjs.map +1 -1
  312. package/fesm2015/legacy-card.mjs +46 -46
  313. package/fesm2015/legacy-card.mjs.map +1 -1
  314. package/fesm2015/legacy-checkbox.mjs +7 -7
  315. package/fesm2015/legacy-checkbox.mjs.map +1 -1
  316. package/fesm2015/legacy-chips.mjs +22 -22
  317. package/fesm2015/legacy-chips.mjs.map +1 -1
  318. package/fesm2015/legacy-core.mjs +10 -10
  319. package/fesm2015/legacy-core.mjs.map +1 -1
  320. package/fesm2015/legacy-dialog.mjs +22 -22
  321. package/fesm2015/legacy-dialog.mjs.map +1 -1
  322. package/fesm2015/legacy-form-field.mjs +25 -25
  323. package/fesm2015/legacy-form-field.mjs.map +1 -1
  324. package/fesm2015/legacy-input.mjs +9 -9
  325. package/fesm2015/legacy-input.mjs.map +1 -1
  326. package/fesm2015/legacy-list.mjs +28 -28
  327. package/fesm2015/legacy-list.mjs.map +1 -1
  328. package/fesm2015/legacy-menu.mjs +16 -16
  329. package/fesm2015/legacy-menu.mjs.map +1 -1
  330. package/fesm2015/legacy-paginator.mjs +7 -7
  331. package/fesm2015/legacy-paginator.mjs.map +1 -1
  332. package/fesm2015/legacy-progress-bar.mjs +7 -7
  333. package/fesm2015/legacy-progress-bar.mjs.map +1 -1
  334. package/fesm2015/legacy-progress-spinner.mjs +7 -7
  335. package/fesm2015/legacy-progress-spinner.mjs.map +1 -1
  336. package/fesm2015/legacy-radio.mjs +10 -10
  337. package/fesm2015/legacy-radio.mjs.map +1 -1
  338. package/fesm2015/legacy-select.mjs +10 -10
  339. package/fesm2015/legacy-select.mjs.map +1 -1
  340. package/fesm2015/legacy-slide-toggle.mjs +7 -7
  341. package/fesm2015/legacy-slide-toggle.mjs.map +1 -1
  342. package/fesm2015/legacy-slider.mjs +7 -7
  343. package/fesm2015/legacy-slider.mjs.map +1 -1
  344. package/fesm2015/legacy-snack-bar.mjs +13 -13
  345. package/fesm2015/legacy-snack-bar.mjs.map +1 -1
  346. package/fesm2015/legacy-table.mjs +55 -55
  347. package/fesm2015/legacy-table.mjs.map +1 -1
  348. package/fesm2015/legacy-tabs.mjs +40 -40
  349. package/fesm2015/legacy-tabs.mjs.map +1 -1
  350. package/fesm2015/legacy-tooltip.mjs +10 -10
  351. package/fesm2015/legacy-tooltip.mjs.map +1 -1
  352. package/fesm2015/list.mjs +86 -52
  353. package/fesm2015/list.mjs.map +1 -1
  354. package/fesm2015/menu.mjs +30 -27
  355. package/fesm2015/menu.mjs.map +1 -1
  356. package/fesm2015/paginator/testing.mjs +1 -1
  357. package/fesm2015/paginator/testing.mjs.map +1 -1
  358. package/fesm2015/paginator.mjs +13 -13
  359. package/fesm2015/paginator.mjs.map +1 -1
  360. package/fesm2015/progress-bar.mjs +7 -7
  361. package/fesm2015/progress-bar.mjs.map +1 -1
  362. package/fesm2015/progress-spinner.mjs +7 -7
  363. package/fesm2015/progress-spinner.mjs.map +1 -1
  364. package/fesm2015/radio.mjs +21 -21
  365. package/fesm2015/radio.mjs.map +1 -1
  366. package/fesm2015/select.mjs +15 -13
  367. package/fesm2015/select.mjs.map +1 -1
  368. package/fesm2015/sidenav.mjs +22 -22
  369. package/fesm2015/sidenav.mjs.map +1 -1
  370. package/fesm2015/slide-toggle.mjs +18 -18
  371. package/fesm2015/slide-toggle.mjs.map +1 -1
  372. package/fesm2015/slider.mjs +16 -16
  373. package/fesm2015/slider.mjs.map +1 -1
  374. package/fesm2015/snack-bar.mjs +28 -28
  375. package/fesm2015/snack-bar.mjs.map +1 -1
  376. package/fesm2015/sort.mjs +13 -13
  377. package/fesm2015/sort.mjs.map +1 -1
  378. package/fesm2015/stepper.mjs +31 -31
  379. package/fesm2015/stepper.mjs.map +1 -1
  380. package/fesm2015/table.mjs +55 -55
  381. package/fesm2015/table.mjs.map +1 -1
  382. package/fesm2015/tabs.mjs +69 -70
  383. package/fesm2015/tabs.mjs.map +1 -1
  384. package/fesm2015/toolbar.mjs +10 -10
  385. package/fesm2015/toolbar.mjs.map +1 -1
  386. package/fesm2015/tooltip.mjs +16 -16
  387. package/fesm2015/tooltip.mjs.map +1 -1
  388. package/fesm2015/tree.mjs +25 -25
  389. package/fesm2015/tree.mjs.map +1 -1
  390. package/fesm2020/autocomplete.mjs +22 -22
  391. package/fesm2020/autocomplete.mjs.map +1 -1
  392. package/fesm2020/badge.mjs +7 -7
  393. package/fesm2020/badge.mjs.map +1 -1
  394. package/fesm2020/bottom-sheet.mjs +10 -10
  395. package/fesm2020/bottom-sheet.mjs.map +1 -1
  396. package/fesm2020/button/testing.mjs +27 -1
  397. package/fesm2020/button/testing.mjs.map +1 -1
  398. package/fesm2020/button-toggle.mjs +10 -10
  399. package/fesm2020/button-toggle.mjs.map +1 -1
  400. package/fesm2020/button.mjs +34 -34
  401. package/fesm2020/button.mjs.map +1 -1
  402. package/fesm2020/card.mjs +46 -46
  403. package/fesm2020/card.mjs.map +1 -1
  404. package/fesm2020/checkbox.mjs +18 -18
  405. package/fesm2020/checkbox.mjs.map +1 -1
  406. package/fesm2020/chips.mjs +113 -63
  407. package/fesm2020/chips.mjs.map +1 -1
  408. package/fesm2020/core.mjs +59 -59
  409. package/fesm2020/core.mjs.map +1 -1
  410. package/fesm2020/datepicker.mjs +110 -89
  411. package/fesm2020/datepicker.mjs.map +1 -1
  412. package/fesm2020/dialog.mjs +28 -28
  413. package/fesm2020/dialog.mjs.map +1 -1
  414. package/fesm2020/divider.mjs +7 -7
  415. package/fesm2020/divider.mjs.map +1 -1
  416. package/fesm2020/expansion.mjs +25 -25
  417. package/fesm2020/expansion.mjs.map +1 -1
  418. package/fesm2020/form-field.mjs +34 -34
  419. package/fesm2020/form-field.mjs.map +1 -1
  420. package/fesm2020/grid-list.mjs +22 -22
  421. package/fesm2020/grid-list.mjs.map +1 -1
  422. package/fesm2020/icon/testing.mjs +7 -7
  423. package/fesm2020/icon/testing.mjs.map +1 -1
  424. package/fesm2020/icon.mjs +11 -10
  425. package/fesm2020/icon.mjs.map +1 -1
  426. package/fesm2020/input.mjs +7 -7
  427. package/fesm2020/input.mjs.map +1 -1
  428. package/fesm2020/legacy-autocomplete.mjs +13 -13
  429. package/fesm2020/legacy-autocomplete.mjs.map +1 -1
  430. package/fesm2020/legacy-button/testing.mjs +26 -1
  431. package/fesm2020/legacy-button/testing.mjs.map +1 -1
  432. package/fesm2020/legacy-button.mjs +10 -10
  433. package/fesm2020/legacy-button.mjs.map +1 -1
  434. package/fesm2020/legacy-card.mjs +46 -46
  435. package/fesm2020/legacy-card.mjs.map +1 -1
  436. package/fesm2020/legacy-checkbox.mjs +7 -7
  437. package/fesm2020/legacy-checkbox.mjs.map +1 -1
  438. package/fesm2020/legacy-chips.mjs +22 -22
  439. package/fesm2020/legacy-chips.mjs.map +1 -1
  440. package/fesm2020/legacy-core.mjs +10 -10
  441. package/fesm2020/legacy-core.mjs.map +1 -1
  442. package/fesm2020/legacy-dialog.mjs +22 -22
  443. package/fesm2020/legacy-dialog.mjs.map +1 -1
  444. package/fesm2020/legacy-form-field.mjs +25 -25
  445. package/fesm2020/legacy-form-field.mjs.map +1 -1
  446. package/fesm2020/legacy-input.mjs +9 -9
  447. package/fesm2020/legacy-input.mjs.map +1 -1
  448. package/fesm2020/legacy-list.mjs +28 -28
  449. package/fesm2020/legacy-list.mjs.map +1 -1
  450. package/fesm2020/legacy-menu.mjs +16 -16
  451. package/fesm2020/legacy-menu.mjs.map +1 -1
  452. package/fesm2020/legacy-paginator.mjs +7 -7
  453. package/fesm2020/legacy-paginator.mjs.map +1 -1
  454. package/fesm2020/legacy-progress-bar.mjs +7 -7
  455. package/fesm2020/legacy-progress-bar.mjs.map +1 -1
  456. package/fesm2020/legacy-progress-spinner.mjs +7 -7
  457. package/fesm2020/legacy-progress-spinner.mjs.map +1 -1
  458. package/fesm2020/legacy-radio.mjs +10 -10
  459. package/fesm2020/legacy-radio.mjs.map +1 -1
  460. package/fesm2020/legacy-select.mjs +10 -10
  461. package/fesm2020/legacy-select.mjs.map +1 -1
  462. package/fesm2020/legacy-slide-toggle.mjs +7 -7
  463. package/fesm2020/legacy-slide-toggle.mjs.map +1 -1
  464. package/fesm2020/legacy-slider.mjs +7 -7
  465. package/fesm2020/legacy-slider.mjs.map +1 -1
  466. package/fesm2020/legacy-snack-bar.mjs +13 -13
  467. package/fesm2020/legacy-snack-bar.mjs.map +1 -1
  468. package/fesm2020/legacy-table.mjs +55 -55
  469. package/fesm2020/legacy-table.mjs.map +1 -1
  470. package/fesm2020/legacy-tabs.mjs +40 -40
  471. package/fesm2020/legacy-tabs.mjs.map +1 -1
  472. package/fesm2020/legacy-tooltip.mjs +10 -10
  473. package/fesm2020/legacy-tooltip.mjs.map +1 -1
  474. package/fesm2020/list.mjs +85 -52
  475. package/fesm2020/list.mjs.map +1 -1
  476. package/fesm2020/menu.mjs +28 -26
  477. package/fesm2020/menu.mjs.map +1 -1
  478. package/fesm2020/paginator/testing.mjs +1 -1
  479. package/fesm2020/paginator/testing.mjs.map +1 -1
  480. package/fesm2020/paginator.mjs +13 -13
  481. package/fesm2020/paginator.mjs.map +1 -1
  482. package/fesm2020/progress-bar.mjs +7 -7
  483. package/fesm2020/progress-bar.mjs.map +1 -1
  484. package/fesm2020/progress-spinner.mjs +7 -7
  485. package/fesm2020/progress-spinner.mjs.map +1 -1
  486. package/fesm2020/radio.mjs +21 -21
  487. package/fesm2020/radio.mjs.map +1 -1
  488. package/fesm2020/select.mjs +14 -13
  489. package/fesm2020/select.mjs.map +1 -1
  490. package/fesm2020/sidenav.mjs +22 -22
  491. package/fesm2020/sidenav.mjs.map +1 -1
  492. package/fesm2020/slide-toggle.mjs +18 -18
  493. package/fesm2020/slide-toggle.mjs.map +1 -1
  494. package/fesm2020/slider.mjs +16 -16
  495. package/fesm2020/slider.mjs.map +1 -1
  496. package/fesm2020/snack-bar.mjs +28 -28
  497. package/fesm2020/snack-bar.mjs.map +1 -1
  498. package/fesm2020/sort.mjs +13 -13
  499. package/fesm2020/sort.mjs.map +1 -1
  500. package/fesm2020/stepper.mjs +31 -31
  501. package/fesm2020/stepper.mjs.map +1 -1
  502. package/fesm2020/table.mjs +55 -55
  503. package/fesm2020/table.mjs.map +1 -1
  504. package/fesm2020/tabs.mjs +69 -70
  505. package/fesm2020/tabs.mjs.map +1 -1
  506. package/fesm2020/toolbar.mjs +10 -10
  507. package/fesm2020/toolbar.mjs.map +1 -1
  508. package/fesm2020/tooltip.mjs +16 -16
  509. package/fesm2020/tooltip.mjs.map +1 -1
  510. package/fesm2020/tree.mjs +25 -25
  511. package/fesm2020/tree.mjs.map +1 -1
  512. package/grid-list/_grid-list-legacy-index.scss +1 -1
  513. package/grid-list/_grid-list-theme.import.scss +1 -1
  514. package/grid-list/_grid-list-theme.scss +2 -2
  515. package/icon/_icon-legacy-index.scss +1 -1
  516. package/icon/_icon-theme.import.scss +1 -1
  517. package/icon/_icon-theme.scss +2 -2
  518. package/legacy-button/testing/index.d.ts +5 -0
  519. package/list/index.d.ts +25 -3
  520. package/menu/index.d.ts +1 -0
  521. package/package.json +2 -2
  522. package/paginator/testing/index.d.ts +1 -1
  523. package/prebuilt-themes/deeppurple-amber.css +1 -1
  524. package/prebuilt-themes/indigo-pink.css +1 -1
  525. package/prebuilt-themes/pink-bluegrey.css +1 -1
  526. package/prebuilt-themes/purple-green.css +1 -1
  527. package/schematics/migration.json +0 -45
  528. package/schematics/ng-add/index.js +1 -1
  529. package/schematics/ng-add/index.mjs +1 -1
  530. package/schematics/ng-add/theming/theming.js +2 -3
  531. package/schematics/ng-add/theming/theming.mjs +2 -3
  532. package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +10 -10
  533. package/schematics/ng-generate/address-form/index.js +6 -6
  534. package/schematics/ng-generate/address-form/index.mjs +6 -6
  535. package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +5 -5
  536. package/schematics/ng-generate/dashboard/index.js +4 -4
  537. package/schematics/ng-generate/dashboard/index.mjs +4 -4
  538. package/schematics/ng-generate/mdc-migration/index_bundled.js +440 -378
  539. package/schematics/ng-generate/mdc-migration/index_bundled.js.map +3 -3
  540. package/schematics/ng-generate/mdc-migration/mdc_migration_bundle_metadata.json +1 -1
  541. package/schematics/ng-generate/mdc-migration/schema.json +1 -1
  542. package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +4 -4
  543. package/schematics/ng-generate/navigation/index.js +3 -3
  544. package/schematics/ng-generate/navigation/index.mjs +3 -3
  545. package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__-datasource.ts.template +1 -1
  546. package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +2 -2
  547. package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +2 -2
  548. package/schematics/ng-generate/table/index.js +3 -3
  549. package/schematics/ng-generate/table/index.mjs +3 -3
  550. package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +2 -2
  551. package/schematics/ng-generate/tree/index.js +2 -2
  552. package/schematics/ng-generate/tree/index.mjs +2 -2
  553. package/schematics/ng-update/index_bundled.js +55 -3103
  554. package/schematics/ng-update/index_bundled.js.map +3 -3
  555. package/schematics/ng-update/ng_update_index_metadata.json +1 -1
  556. package/sidenav/_sidenav-legacy-index.scss +1 -1
  557. package/sidenav/_sidenav-theme.import.scss +1 -1
  558. package/sidenav/_sidenav-theme.scss +2 -2
  559. package/slide-toggle/_slide-toggle-theme.scss +19 -19
  560. package/sort/_sort-legacy-index.scss +1 -1
  561. package/sort/_sort-theme.import.scss +1 -1
  562. package/sort/_sort-theme.scss +2 -2
@@ -500,2430 +500,6 @@ var require_tslib = __commonJS({
500
500
  }
501
501
  });
502
502
 
503
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/hammer-gestures-v9/find-hammer-script-tags.js
504
- var require_find_hammer_script_tags = __commonJS({
505
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/hammer-gestures-v9/find-hammer-script-tags.js"(exports) {
506
- "use strict";
507
- Object.defineProperty(exports, "__esModule", { value: true });
508
- exports.findHammerScriptImportElements = void 0;
509
- var schematics_1 = require("@angular/cdk/schematics");
510
- function findHammerScriptImportElements(htmlContent) {
511
- const document = schematics_1.parse5.parse(htmlContent, { sourceCodeLocationInfo: true });
512
- const nodeQueue = [...document.childNodes];
513
- const result = [];
514
- while (nodeQueue.length) {
515
- const node = nodeQueue.shift();
516
- if (node.childNodes) {
517
- nodeQueue.push(...node.childNodes);
518
- }
519
- if (node.nodeName.toLowerCase() === "script" && node.attrs.length !== 0) {
520
- const srcAttribute = node.attrs.find((a) => a.name === "src");
521
- if (srcAttribute && isPotentialHammerScriptReference(srcAttribute.value)) {
522
- result.push(node);
523
- }
524
- }
525
- }
526
- return result;
527
- }
528
- exports.findHammerScriptImportElements = findHammerScriptImportElements;
529
- function isPotentialHammerScriptReference(srcPath) {
530
- return /\/hammer(\.min)?\.js($|\?)/.test(srcPath);
531
- }
532
- }
533
- });
534
-
535
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/hammer-gestures-v9/find-main-module.js
536
- var require_find_main_module = __commonJS({
537
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/hammer-gestures-v9/find-main-module.js"(exports) {
538
- "use strict";
539
- Object.defineProperty(exports, "__esModule", { value: true });
540
- exports.findMainModuleExpression = void 0;
541
- var tslib_1 = require_tslib();
542
- var ts = tslib_1.__importStar(require("typescript"));
543
- function findMainModuleExpression(mainSourceFile) {
544
- let foundModule = null;
545
- const visitNode = (node) => {
546
- if (ts.isCallExpression(node) && node.arguments.length && ts.isPropertyAccessExpression(node.expression) && ts.isIdentifier(node.expression.name) && node.expression.name.text === "bootstrapModule") {
547
- foundModule = node.arguments[0];
548
- } else {
549
- ts.forEachChild(node, visitNode);
550
- }
551
- };
552
- ts.forEachChild(mainSourceFile, visitNode);
553
- return foundModule;
554
- }
555
- exports.findMainModuleExpression = findMainModuleExpression;
556
- }
557
- });
558
-
559
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/hammer-gestures-v9/gesture-config-template.js
560
- var require_gesture_config_template = __commonJS({
561
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/hammer-gestures-v9/gesture-config-template.js"(exports) {
562
- "use strict";
563
- Object.defineProperty(exports, "__esModule", { value: true });
564
- exports.gestureConfigTemplate = void 0;
565
- exports.gestureConfigTemplate = `
566
- /**
567
- * Custom HammerJS configuration forked from Angular Material. With Angular v9,
568
- * Angular Material dropped HammerJS as a dependency. This configuration was added
569
- * automatically to this application because ng-update detected that this application
570
- * directly used custom HammerJS gestures defined by Angular Material.
571
- *
572
- * Read more in the dedicated guide: https://github.com/angular/components/blob/3a204da37fd1366cae411b5c234517ecad199737/guides/v9-hammerjs-migration.md?
573
- */
574
-
575
- import {Injectable, Inject, Optional, Type} from '@angular/core';
576
- import {HammerGestureConfig} from '@angular/platform-browser';
577
- import {MAT_HAMMER_OPTIONS} from '@angular/material/core';
578
-
579
- /**
580
- * Noop hammer instance that is used when an instance is requested, but
581
- * Hammer has not been loaded on the page yet.
582
- */
583
- const noopHammerInstance = {
584
- on: () => {},
585
- off: () => {},
586
- };
587
-
588
- /**
589
- * Gesture config that provides custom Hammer gestures on top of the default Hammer
590
- * gestures. These gestures will be available as events in component templates.
591
- */
592
- @Injectable()
593
- export class GestureConfig extends HammerGestureConfig {
594
- /** List of event names to add to the Hammer gesture plugin list */
595
- events = [
596
- 'longpress',
597
- 'slide',
598
- 'slidestart',
599
- 'slideend',
600
- 'slideright',
601
- 'slideleft'
602
- ];
603
-
604
- constructor(@Optional() @Inject(MAT_HAMMER_OPTIONS) private hammerOptions?: any) {
605
- super();
606
- }
607
-
608
- /**
609
- * Builds Hammer instance manually to add custom recognizers that match the
610
- * Material Design specification. Gesture names originate from the Material Design
611
- * gestures: https://material.io/design/#gestures-touch-mechanics
612
- *
613
- * More information on default recognizers can be found in the Hammer docs:
614
- * http://hammerjs.github.io/recognizer-pan/
615
- * http://hammerjs.github.io/recognizer-press/
616
- * @param element Element to which to assign the new HammerJS gestures.
617
- * @returns Newly-created HammerJS instance.
618
- */
619
- buildHammer(element: HTMLElement): any {
620
- const hammer: any = typeof window !== 'undefined' ? (window as any).Hammer : null;
621
-
622
- if (!hammer) {
623
- return noopHammerInstance;
624
- }
625
-
626
- const mc = new hammer(element, this.hammerOptions || undefined);
627
-
628
- // Default Hammer Recognizers.
629
- const pan = new hammer.Pan();
630
- const swipe = new hammer.Swipe();
631
- const press = new hammer.Press();
632
-
633
- // Notice that a HammerJS recognizer can only depend on one other recognizer once.
634
- // Otherwise the previous \`recognizeWith\` will be dropped.
635
- const slide = this._createRecognizer(pan, {event: 'slide', threshold: 0}, swipe);
636
- const longpress = this._createRecognizer(press, {event: 'longpress', time: 500});
637
-
638
- // Overwrite the default \`pan\` event to use the swipe event.
639
- pan.recognizeWith(swipe);
640
-
641
- // Since the slide event threshold is set to zero, the slide recognizer can fire and
642
- // accidentally reset the longpress recognizer. In order to make sure that the two
643
- // recognizers can run simultaneously but don't affect each other, we allow the slide
644
- // recognizer to recognize while a longpress is being processed.
645
- // See: https://github.com/hammerjs/hammer.js/blob/master/src/manager.js#L123-L124
646
- longpress.recognizeWith(slide);
647
-
648
- // Add customized gestures to Hammer manager
649
- mc.add([swipe, press, pan, slide, longpress]);
650
-
651
- return mc;
652
- }
653
-
654
- /** Creates a new recognizer, without affecting the default recognizers of HammerJS */
655
- private _createRecognizer(base: object, options: any, ...inheritances: object[]) {
656
- const recognizer = new (base.constructor as Type<any>)(options);
657
- inheritances.push(base);
658
- inheritances.forEach(item => recognizer.recognizeWith(item));
659
- return recognizer;
660
- }
661
- }
662
- `;
663
- }
664
- });
665
-
666
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/hammer-gestures-v9/hammer-template-check.js
667
- var require_hammer_template_check = __commonJS({
668
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/hammer-gestures-v9/hammer-template-check.js"(exports) {
669
- "use strict";
670
- Object.defineProperty(exports, "__esModule", { value: true });
671
- exports.isHammerJsUsedInTemplate = void 0;
672
- var schematics_1 = require("@angular/cdk/schematics");
673
- var STANDARD_HAMMERJS_EVENTS = [
674
- "pan",
675
- "panstart",
676
- "panmove",
677
- "panend",
678
- "pancancel",
679
- "panleft",
680
- "panright",
681
- "panup",
682
- "pandown",
683
- "pinch",
684
- "pinchstart",
685
- "pinchmove",
686
- "pinchend",
687
- "pinchcancel",
688
- "pinchin",
689
- "pinchout",
690
- "press",
691
- "pressup",
692
- "rotate",
693
- "rotatestart",
694
- "rotatemove",
695
- "rotateend",
696
- "rotatecancel",
697
- "swipe",
698
- "swipeleft",
699
- "swiperight",
700
- "swipeup",
701
- "swipedown",
702
- "tap"
703
- ];
704
- var CUSTOM_MATERIAL_HAMMERJS_EVENS = [
705
- "longpress",
706
- "slide",
707
- "slidestart",
708
- "slideend",
709
- "slideright",
710
- "slideleft"
711
- ];
712
- function isHammerJsUsedInTemplate(html) {
713
- const document = schematics_1.parse5.parseFragment(html, { sourceCodeLocationInfo: true });
714
- let customEvents = false;
715
- let standardEvents = false;
716
- const visitNodes = (nodes) => {
717
- nodes.forEach((node) => {
718
- if (!isElement(node)) {
719
- return;
720
- }
721
- for (let attr of node.attrs) {
722
- if (!customEvents && CUSTOM_MATERIAL_HAMMERJS_EVENS.some((e) => `(${e})` === attr.name)) {
723
- customEvents = true;
724
- }
725
- if (!standardEvents && STANDARD_HAMMERJS_EVENTS.some((e) => `(${e})` === attr.name)) {
726
- standardEvents = true;
727
- }
728
- }
729
- if (!customEvents || !standardEvents) {
730
- visitNodes(node.childNodes);
731
- }
732
- });
733
- };
734
- visitNodes(document.childNodes);
735
- return { customEvents, standardEvents };
736
- }
737
- exports.isHammerJsUsedInTemplate = isHammerJsUsedInTemplate;
738
- function isElement(node) {
739
- return !!node.attrs;
740
- }
741
- }
742
- });
743
-
744
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.js
745
- var require_import_manager = __commonJS({
746
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.js"(exports) {
747
- "use strict";
748
- Object.defineProperty(exports, "__esModule", { value: true });
749
- exports.ImportManager = void 0;
750
- var tslib_1 = require_tslib();
751
- var path_1 = require("path");
752
- var ts = tslib_1.__importStar(require("typescript"));
753
- var hasFlag = (data, flag) => (data.state & flag) !== 0;
754
- var ImportManager = class {
755
- constructor(_fileSystem, _printer) {
756
- this._fileSystem = _fileSystem;
757
- this._printer = _printer;
758
- this._usedIdentifierNames = /* @__PURE__ */ new Map();
759
- this._importCache = /* @__PURE__ */ new Map();
760
- }
761
- _analyzeImportsIfNeeded(sourceFile) {
762
- if (this._importCache.has(sourceFile)) {
763
- return this._importCache.get(sourceFile);
764
- }
765
- const result = [];
766
- for (let node of sourceFile.statements) {
767
- if (!ts.isImportDeclaration(node) || !ts.isStringLiteral(node.moduleSpecifier)) {
768
- continue;
769
- }
770
- const moduleName = node.moduleSpecifier.text;
771
- if (!node.importClause) {
772
- result.push({ moduleName, node, state: 0 });
773
- continue;
774
- }
775
- if (!node.importClause.namedBindings) {
776
- result.push({
777
- moduleName,
778
- node,
779
- name: node.importClause.name,
780
- state: 0
781
- });
782
- continue;
783
- }
784
- if (ts.isNamedImports(node.importClause.namedBindings)) {
785
- result.push({
786
- moduleName,
787
- node,
788
- specifiers: node.importClause.namedBindings.elements.map((el) => ({
789
- name: el.name,
790
- propertyName: el.propertyName
791
- })),
792
- state: 0
793
- });
794
- } else {
795
- result.push({
796
- moduleName,
797
- node,
798
- name: node.importClause.namedBindings.name,
799
- namespace: true,
800
- state: 0
801
- });
802
- }
803
- }
804
- this._importCache.set(sourceFile, result);
805
- return result;
806
- }
807
- _isModuleSpecifierMatching(basePath, specifier, moduleName) {
808
- return specifier.startsWith(".") ? (0, path_1.resolve)(basePath, specifier) === (0, path_1.resolve)(basePath, moduleName) : specifier === moduleName;
809
- }
810
- deleteNamedBindingImport(sourceFile, symbolName, moduleName) {
811
- const sourceDir = (0, path_1.dirname)(sourceFile.fileName);
812
- const fileImports = this._analyzeImportsIfNeeded(sourceFile);
813
- for (let importData of fileImports) {
814
- if (!this._isModuleSpecifierMatching(sourceDir, importData.moduleName, moduleName) || !importData.specifiers) {
815
- continue;
816
- }
817
- const specifierIndex = importData.specifiers.findIndex((d) => (d.propertyName || d.name).text === symbolName);
818
- if (specifierIndex !== -1) {
819
- importData.specifiers.splice(specifierIndex, 1);
820
- if (importData.specifiers.length === 0) {
821
- importData.state |= 8;
822
- } else {
823
- importData.state |= 2;
824
- }
825
- }
826
- }
827
- }
828
- deleteImportByDeclaration(declaration) {
829
- const fileImports = this._analyzeImportsIfNeeded(declaration.getSourceFile());
830
- for (let importData of fileImports) {
831
- if (importData.node === declaration) {
832
- importData.state |= 8;
833
- }
834
- }
835
- }
836
- addImportToSourceFile(sourceFile, symbolName, moduleName, typeImport = false, ignoreIdentifierCollisions = []) {
837
- const sourceDir = (0, path_1.dirname)(sourceFile.fileName);
838
- const fileImports = this._analyzeImportsIfNeeded(sourceFile);
839
- let existingImport = null;
840
- for (let importData of fileImports) {
841
- if (!this._isModuleSpecifierMatching(sourceDir, importData.moduleName, moduleName)) {
842
- continue;
843
- }
844
- if (!symbolName && !importData.namespace && !importData.specifiers) {
845
- return ts.factory.createIdentifier(importData.name.text);
846
- }
847
- if (importData.namespace && !typeImport) {
848
- return ts.factory.createPropertyAccessExpression(ts.factory.createIdentifier(importData.name.text), ts.factory.createIdentifier(symbolName || "default"));
849
- } else if (importData.specifiers && symbolName) {
850
- const existingSpecifier = importData.specifiers.find((s) => s.propertyName ? s.propertyName.text === symbolName : s.name.text === symbolName);
851
- if (existingSpecifier) {
852
- return ts.factory.createIdentifier(existingSpecifier.name.text);
853
- }
854
- existingImport = importData;
855
- }
856
- }
857
- if (existingImport) {
858
- const propertyIdentifier = ts.factory.createIdentifier(symbolName);
859
- const generatedUniqueIdentifier = this._getUniqueIdentifier(sourceFile, symbolName, ignoreIdentifierCollisions);
860
- const needsGeneratedUniqueName = generatedUniqueIdentifier.text !== symbolName;
861
- const importName = needsGeneratedUniqueName ? generatedUniqueIdentifier : propertyIdentifier;
862
- existingImport.specifiers.push({
863
- name: importName,
864
- propertyName: needsGeneratedUniqueName ? propertyIdentifier : void 0
865
- });
866
- existingImport.state |= 2;
867
- if (hasFlag(existingImport, 8)) {
868
- existingImport.state &= ~8;
869
- }
870
- return importName;
871
- }
872
- let identifier = null;
873
- let newImport = null;
874
- if (symbolName) {
875
- const propertyIdentifier = ts.factory.createIdentifier(symbolName);
876
- const generatedUniqueIdentifier = this._getUniqueIdentifier(sourceFile, symbolName, ignoreIdentifierCollisions);
877
- const needsGeneratedUniqueName = generatedUniqueIdentifier.text !== symbolName;
878
- identifier = needsGeneratedUniqueName ? generatedUniqueIdentifier : propertyIdentifier;
879
- const newImportDecl = ts.factory.createImportDeclaration(void 0, void 0, ts.factory.createImportClause(false, void 0, ts.factory.createNamedImports([])), ts.factory.createStringLiteral(moduleName));
880
- newImport = {
881
- moduleName,
882
- node: newImportDecl,
883
- specifiers: [
884
- {
885
- propertyName: needsGeneratedUniqueName ? propertyIdentifier : void 0,
886
- name: identifier
887
- }
888
- ],
889
- state: 4
890
- };
891
- } else {
892
- identifier = this._getUniqueIdentifier(sourceFile, "defaultExport", ignoreIdentifierCollisions);
893
- const newImportDecl = ts.factory.createImportDeclaration(void 0, void 0, ts.factory.createImportClause(false, identifier, void 0), ts.factory.createStringLiteral(moduleName));
894
- newImport = {
895
- moduleName,
896
- node: newImportDecl,
897
- name: identifier,
898
- state: 4
899
- };
900
- }
901
- fileImports.push(newImport);
902
- return identifier;
903
- }
904
- recordChanges() {
905
- this._importCache.forEach((fileImports, sourceFile) => {
906
- const recorder = this._fileSystem.edit(this._fileSystem.resolve(sourceFile.fileName));
907
- const lastUnmodifiedImport = fileImports.reverse().find((i) => i.state === 0);
908
- const importStartIndex = lastUnmodifiedImport ? this._getEndPositionOfNode(lastUnmodifiedImport.node) : 0;
909
- fileImports.forEach((importData) => {
910
- if (importData.state === 0) {
911
- return;
912
- }
913
- if (hasFlag(importData, 8)) {
914
- if (!hasFlag(importData, 4)) {
915
- recorder.remove(importData.node.getFullStart(), importData.node.getFullWidth());
916
- }
917
- return;
918
- }
919
- if (importData.specifiers) {
920
- const namedBindings = importData.node.importClause.namedBindings;
921
- const importSpecifiers = importData.specifiers.map((s) => ts.factory.createImportSpecifier(false, s.propertyName, s.name));
922
- const updatedBindings = ts.factory.updateNamedImports(namedBindings, importSpecifiers);
923
- if (hasFlag(importData, 4)) {
924
- const updatedImport = ts.factory.updateImportDeclaration(importData.node, void 0, void 0, ts.factory.createImportClause(false, void 0, updatedBindings), ts.factory.createStringLiteral(importData.moduleName), void 0);
925
- const newImportText = this._printer.printNode(ts.EmitHint.Unspecified, updatedImport, sourceFile);
926
- recorder.insertLeft(importStartIndex, importStartIndex === 0 ? `${newImportText}
927
- ` : `
928
- ${newImportText}`);
929
- return;
930
- } else if (hasFlag(importData, 2)) {
931
- const newNamedBindingsText = this._printer.printNode(ts.EmitHint.Unspecified, updatedBindings, sourceFile);
932
- recorder.remove(namedBindings.getStart(), namedBindings.getWidth());
933
- recorder.insertRight(namedBindings.getStart(), newNamedBindingsText);
934
- return;
935
- }
936
- } else if (hasFlag(importData, 4)) {
937
- const newImportText = this._printer.printNode(ts.EmitHint.Unspecified, importData.node, sourceFile);
938
- recorder.insertLeft(importStartIndex, importStartIndex === 0 ? `${newImportText}
939
- ` : `
940
- ${newImportText}`);
941
- return;
942
- }
943
- throw Error("Unexpected import modification.");
944
- });
945
- });
946
- }
947
- correctNodePosition(node, offset, position) {
948
- const sourceFile = node.getSourceFile();
949
- if (!this._importCache.has(sourceFile)) {
950
- return position;
951
- }
952
- const newPosition = __spreadValues({}, position);
953
- const fileImports = this._importCache.get(sourceFile);
954
- for (let importData of fileImports) {
955
- const fullEnd = importData.node.getFullStart() + importData.node.getFullWidth();
956
- if (offset > fullEnd && hasFlag(importData, 8)) {
957
- newPosition.line--;
958
- } else if (offset > fullEnd && hasFlag(importData, 4)) {
959
- newPosition.line++;
960
- }
961
- }
962
- return newPosition;
963
- }
964
- _getUniqueIdentifier(sourceFile, symbolName, ignoreIdentifierCollisions) {
965
- if (this._isUniqueIdentifierName(sourceFile, symbolName, ignoreIdentifierCollisions)) {
966
- this._recordUsedIdentifier(sourceFile, symbolName);
967
- return ts.factory.createIdentifier(symbolName);
968
- }
969
- let name = null;
970
- let counter = 1;
971
- do {
972
- name = `${symbolName}_${counter++}`;
973
- } while (!this._isUniqueIdentifierName(sourceFile, name, ignoreIdentifierCollisions));
974
- this._recordUsedIdentifier(sourceFile, name);
975
- return ts.factory.createIdentifier(name);
976
- }
977
- _isUniqueIdentifierName(sourceFile, name, ignoreIdentifierCollisions) {
978
- if (this._usedIdentifierNames.has(sourceFile) && this._usedIdentifierNames.get(sourceFile).indexOf(name) !== -1) {
979
- return false;
980
- }
981
- const nodeQueue = [sourceFile];
982
- while (nodeQueue.length) {
983
- const node = nodeQueue.shift();
984
- if (ts.isIdentifier(node) && node.text === name && !ignoreIdentifierCollisions.includes(node)) {
985
- return false;
986
- }
987
- nodeQueue.push(...node.getChildren());
988
- }
989
- return true;
990
- }
991
- _recordUsedIdentifier(sourceFile, identifierName) {
992
- this._usedIdentifierNames.set(sourceFile, (this._usedIdentifierNames.get(sourceFile) || []).concat(identifierName));
993
- }
994
- _getEndPositionOfNode(node) {
995
- const nodeEndPos = node.getEnd();
996
- const commentRanges = ts.getTrailingCommentRanges(node.getSourceFile().text, nodeEndPos);
997
- if (!commentRanges || !commentRanges.length) {
998
- return nodeEndPos;
999
- }
1000
- return commentRanges[commentRanges.length - 1].end;
1001
- }
1002
- };
1003
- exports.ImportManager = ImportManager;
1004
- }
1005
- });
1006
-
1007
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/hammer-gestures-v9/remove-array-element.js
1008
- var require_remove_array_element = __commonJS({
1009
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/hammer-gestures-v9/remove-array-element.js"(exports) {
1010
- "use strict";
1011
- Object.defineProperty(exports, "__esModule", { value: true });
1012
- exports.removeElementFromArrayExpression = exports.getParentSyntaxList = void 0;
1013
- var tslib_1 = require_tslib();
1014
- var ts = tslib_1.__importStar(require("typescript"));
1015
- function getParentSyntaxList(node) {
1016
- if (!node.parent) {
1017
- return null;
1018
- }
1019
- const parent = node.parent;
1020
- const { pos, end } = node;
1021
- for (const child of parent.getChildren()) {
1022
- if (child.pos > end || child === node) {
1023
- return null;
1024
- }
1025
- if (child.kind === ts.SyntaxKind.SyntaxList && child.pos <= pos && child.end >= end) {
1026
- return child;
1027
- }
1028
- }
1029
- return null;
1030
- }
1031
- exports.getParentSyntaxList = getParentSyntaxList;
1032
- function findTrailingCommaToken(list, element) {
1033
- let foundElement = false;
1034
- for (let child of list.getChildren()) {
1035
- if (!foundElement && child === element) {
1036
- foundElement = true;
1037
- } else if (foundElement) {
1038
- if (child.kind === ts.SyntaxKind.CommaToken) {
1039
- return child;
1040
- }
1041
- break;
1042
- }
1043
- }
1044
- return null;
1045
- }
1046
- function removeElementFromArrayExpression(element, recorder) {
1047
- recorder.remove(element.getFullStart(), element.getFullWidth());
1048
- const syntaxList = getParentSyntaxList(element);
1049
- if (!syntaxList) {
1050
- return;
1051
- }
1052
- const trailingComma = findTrailingCommaToken(syntaxList, element);
1053
- if (trailingComma !== null) {
1054
- recorder.remove(trailingComma.getFullStart(), trailingComma.getFullWidth());
1055
- }
1056
- }
1057
- exports.removeElementFromArrayExpression = removeElementFromArrayExpression;
1058
- }
1059
- });
1060
-
1061
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/hammer-gestures-v9/remove-element-from-html.js
1062
- var require_remove_element_from_html = __commonJS({
1063
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/hammer-gestures-v9/remove-element-from-html.js"(exports) {
1064
- "use strict";
1065
- Object.defineProperty(exports, "__esModule", { value: true });
1066
- exports.removeElementFromHtml = void 0;
1067
- function removeElementFromHtml(element, recorder) {
1068
- const { startOffset, endOffset } = element.sourceCodeLocation;
1069
- const parentIndex = element.parentNode.childNodes.indexOf(element);
1070
- const precedingTextSibling = element.parentNode.childNodes.find((f, i) => f.nodeName === "#text" && i === parentIndex - 1);
1071
- recorder.remove(startOffset, endOffset - startOffset);
1072
- if (precedingTextSibling && /^\s+$/.test(precedingTextSibling.value)) {
1073
- const textSiblingLocation = precedingTextSibling.sourceCodeLocation;
1074
- recorder.remove(textSiblingLocation.startOffset, textSiblingLocation.endOffset - textSiblingLocation.startOffset);
1075
- }
1076
- }
1077
- exports.removeElementFromHtml = removeElementFromHtml;
1078
- }
1079
- });
1080
-
1081
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.js
1082
- var require_hammer_gestures_migration = __commonJS({
1083
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.js"(exports) {
1084
- "use strict";
1085
- Object.defineProperty(exports, "__esModule", { value: true });
1086
- exports.HammerGesturesMigration = void 0;
1087
- var tslib_1 = require_tslib();
1088
- var core_1 = require("@angular-devkit/core");
1089
- var schematics_1 = require("@angular/cdk/schematics");
1090
- var change_1 = require("@schematics/angular/utility/change");
1091
- var ts = tslib_1.__importStar(require("typescript"));
1092
- var find_hammer_script_tags_1 = require_find_hammer_script_tags();
1093
- var find_main_module_1 = require_find_main_module();
1094
- var gesture_config_template_1 = require_gesture_config_template();
1095
- var hammer_template_check_1 = require_hammer_template_check();
1096
- var import_manager_1 = require_import_manager();
1097
- var remove_array_element_1 = require_remove_array_element();
1098
- var remove_element_from_html_1 = require_remove_element_from_html();
1099
- var GESTURE_CONFIG_CLASS_NAME = "GestureConfig";
1100
- var GESTURE_CONFIG_FILE_NAME = "gesture-config";
1101
- var HAMMER_CONFIG_TOKEN_NAME = "HAMMER_GESTURE_CONFIG";
1102
- var HAMMER_CONFIG_TOKEN_MODULE = "@angular/platform-browser";
1103
- var HAMMER_MODULE_NAME = "HammerModule";
1104
- var HAMMER_MODULE_IMPORT = "@angular/platform-browser";
1105
- var HAMMER_MODULE_SPECIFIER = "hammerjs";
1106
- var CANNOT_REMOVE_REFERENCE_ERROR = `Cannot remove reference to "GestureConfig". Please remove manually.`;
1107
- var HammerGesturesMigration2 = class extends schematics_1.DevkitMigration {
1108
- constructor() {
1109
- super(...arguments);
1110
- this.enabled = HammerGesturesMigration2._isAllowedVersion(this.targetVersion) && !this.context.isTestTarget;
1111
- this._printer = ts.createPrinter();
1112
- this._importManager = new import_manager_1.ImportManager(this.fileSystem, this._printer);
1113
- this._nodeFailures = [];
1114
- this._customEventsUsedInTemplate = false;
1115
- this._standardEventsUsedInTemplate = false;
1116
- this._usedInRuntime = false;
1117
- this._installImports = [];
1118
- this._gestureConfigReferences = [];
1119
- this._hammerConfigTokenReferences = [];
1120
- this._hammerModuleReferences = [];
1121
- this._deletedIdentifiers = [];
1122
- }
1123
- visitTemplate(template) {
1124
- if (!this._customEventsUsedInTemplate || !this._standardEventsUsedInTemplate) {
1125
- const { standardEvents, customEvents } = (0, hammer_template_check_1.isHammerJsUsedInTemplate)(template.content);
1126
- this._customEventsUsedInTemplate = this._customEventsUsedInTemplate || customEvents;
1127
- this._standardEventsUsedInTemplate = this._standardEventsUsedInTemplate || standardEvents;
1128
- }
1129
- }
1130
- visitNode(node) {
1131
- this._checkHammerImports(node);
1132
- this._checkForRuntimeHammerUsage(node);
1133
- this._checkForMaterialGestureConfig(node);
1134
- this._checkForHammerGestureConfigToken(node);
1135
- this._checkForHammerModuleReference(node);
1136
- }
1137
- postAnalysis() {
1138
- const hasCustomGestureConfigSetup = this._hammerConfigTokenReferences.some((r) => this._checkForCustomGestureConfigSetup(r));
1139
- const usedInTemplate = this._standardEventsUsedInTemplate || this._customEventsUsedInTemplate;
1140
- if (hasCustomGestureConfigSetup) {
1141
- HammerGesturesMigration2.globalUsesHammer = true;
1142
- if (!usedInTemplate && this._gestureConfigReferences.length) {
1143
- this._removeMaterialGestureConfigSetup();
1144
- this.printInfo("The HammerJS v9 migration for Angular Components detected that HammerJS is manually set up in combination with references to the Angular Material gesture config. This target cannot be migrated completely, but all references to the deprecated Angular Material gesture have been removed. Read more here: https://github.com/angular/components/blob/3a204da37fd1366cae411b5c234517ecad199737/guides/v9-hammerjs-migration.md#the-migration-reported-ambiguous-usage-what-should-i-do");
1145
- } else if (usedInTemplate && this._gestureConfigReferences.length) {
1146
- this.printInfo("The HammerJS v9 migration for Angular Components detected that HammerJS is manually set up in combination with references to the Angular Material gesture config. This target cannot be migrated completely. Please manually remove references to the deprecated Angular Material gesture config. Read more here: https://github.com/angular/components/blob/3a204da37fd1366cae411b5c234517ecad199737/guides/v9-hammerjs-migration.md#the-migration-reported-ambiguous-usage-what-should-i-do");
1147
- }
1148
- } else if (this._usedInRuntime || usedInTemplate) {
1149
- HammerGesturesMigration2.globalUsesHammer = true;
1150
- if (!usedInTemplate) {
1151
- this._removeMaterialGestureConfigSetup();
1152
- this._removeHammerModuleReferences();
1153
- } else if (this._standardEventsUsedInTemplate && !this._customEventsUsedInTemplate) {
1154
- this._setupHammerWithStandardEvents();
1155
- } else {
1156
- this._setupHammerWithCustomEvents();
1157
- }
1158
- } else {
1159
- this._removeHammerSetup();
1160
- }
1161
- this._importManager.recordChanges();
1162
- this.failures.push(...this._createMigrationFailures());
1163
- if (!hasCustomGestureConfigSetup && !this._usedInRuntime && usedInTemplate) {
1164
- this.printInfo("The HammerJS v9 migration for Angular Components migrated the project to keep HammerJS installed, but detected ambiguous usage of HammerJS. Please manually check if you can remove HammerJS from your application. More details: https://github.com/angular/components/blob/3a204da37fd1366cae411b5c234517ecad199737/guides/v9-hammerjs-migration.md#the-migration-reported-ambiguous-usage-what-should-i-do");
1165
- }
1166
- }
1167
- _setupHammerWithCustomEvents() {
1168
- const project = this.context.project;
1169
- const sourceRoot = this.fileSystem.resolve(project.sourceRoot || project.root);
1170
- const newConfigPath = (0, core_1.join)(sourceRoot, this._getAvailableGestureConfigFileName(sourceRoot));
1171
- this.fileSystem.create(newConfigPath, gesture_config_template_1.gestureConfigTemplate);
1172
- this._gestureConfigReferences.forEach((i) => {
1173
- const filePath = this.fileSystem.resolve(i.node.getSourceFile().fileName);
1174
- return this._replaceGestureConfigReference(i, GESTURE_CONFIG_CLASS_NAME, getModuleSpecifier(newConfigPath, filePath));
1175
- });
1176
- this._setupNewGestureConfigInRootModule(newConfigPath);
1177
- this._setupHammerModuleInRootModule();
1178
- }
1179
- _setupHammerWithStandardEvents() {
1180
- this._setupHammerModuleInRootModule();
1181
- this._removeMaterialGestureConfigSetup();
1182
- }
1183
- _removeHammerSetup() {
1184
- this._installImports.forEach((i) => this._importManager.deleteImportByDeclaration(i));
1185
- this._removeMaterialGestureConfigSetup();
1186
- this._removeHammerModuleReferences();
1187
- this._removeHammerFromIndexFile();
1188
- }
1189
- _removeMaterialGestureConfigSetup() {
1190
- this._gestureConfigReferences.forEach((r) => this._removeGestureConfigReference(r));
1191
- this._hammerConfigTokenReferences.forEach((r) => {
1192
- if (r.isImport) {
1193
- this._removeHammerConfigTokenImportIfUnused(r);
1194
- }
1195
- });
1196
- }
1197
- _removeHammerModuleReferences() {
1198
- this._hammerModuleReferences.forEach(({ node, isImport, importData }) => {
1199
- const sourceFile = node.getSourceFile();
1200
- const recorder = this.fileSystem.edit(this.fileSystem.resolve(sourceFile.fileName));
1201
- if (!isNamespacedIdentifierAccess(node)) {
1202
- this._importManager.deleteNamedBindingImport(sourceFile, HAMMER_MODULE_NAME, importData.moduleName);
1203
- }
1204
- if (isImport) {
1205
- return;
1206
- }
1207
- if (ts.isArrayLiteralExpression(node.parent)) {
1208
- (0, remove_array_element_1.removeElementFromArrayExpression)(node, recorder);
1209
- } else {
1210
- recorder.remove(node.getStart(), node.getWidth());
1211
- recorder.insertRight(node.getStart(), `/* TODO: remove */ {}`);
1212
- this._nodeFailures.push({
1213
- node,
1214
- message: 'Unable to delete reference to "HammerModule".'
1215
- });
1216
- }
1217
- });
1218
- }
1219
- _checkForHammerGestureConfigToken(node) {
1220
- if (ts.isIdentifier(node)) {
1221
- const importData = (0, schematics_1.getImportOfIdentifier)(node, this.typeChecker);
1222
- if (importData && importData.symbolName === HAMMER_CONFIG_TOKEN_NAME && importData.moduleName === HAMMER_CONFIG_TOKEN_MODULE) {
1223
- this._hammerConfigTokenReferences.push({
1224
- node,
1225
- importData,
1226
- isImport: ts.isImportSpecifier(node.parent)
1227
- });
1228
- }
1229
- }
1230
- }
1231
- _checkForHammerModuleReference(node) {
1232
- if (ts.isIdentifier(node)) {
1233
- const importData = (0, schematics_1.getImportOfIdentifier)(node, this.typeChecker);
1234
- if (importData && importData.symbolName === HAMMER_MODULE_NAME && importData.moduleName === HAMMER_MODULE_IMPORT) {
1235
- this._hammerModuleReferences.push({
1236
- node,
1237
- importData,
1238
- isImport: ts.isImportSpecifier(node.parent)
1239
- });
1240
- }
1241
- }
1242
- }
1243
- _checkHammerImports(node) {
1244
- if (ts.isImportDeclaration(node) && ts.isStringLiteral(node.moduleSpecifier) && node.moduleSpecifier.text === HAMMER_MODULE_SPECIFIER) {
1245
- if (node.importClause && !(node.importClause.namedBindings && ts.isNamedImports(node.importClause.namedBindings) && node.importClause.namedBindings.elements.length === 0)) {
1246
- this._usedInRuntime = true;
1247
- } else {
1248
- this._installImports.push(node);
1249
- }
1250
- }
1251
- }
1252
- _checkForRuntimeHammerUsage(node) {
1253
- if (this._usedInRuntime) {
1254
- return;
1255
- }
1256
- if (ts.isPropertyAccessExpression(node) && node.name.text === "Hammer") {
1257
- const originExpr = unwrapExpression(node.expression);
1258
- if (ts.isIdentifier(originExpr) && originExpr.text === "window") {
1259
- this._usedInRuntime = true;
1260
- }
1261
- return;
1262
- }
1263
- if (ts.isElementAccessExpression(node) && ts.isStringLiteral(node.argumentExpression) && node.argumentExpression.text === "Hammer") {
1264
- const originExpr = unwrapExpression(node.expression);
1265
- if (ts.isIdentifier(originExpr) && originExpr.text === "window") {
1266
- this._usedInRuntime = true;
1267
- }
1268
- return;
1269
- }
1270
- if (ts.isIdentifier(node) && node.text === "Hammer" && !ts.isPropertyAccessExpression(node.parent) && !ts.isElementAccessExpression(node.parent)) {
1271
- const symbol = this._getDeclarationSymbolOfNode(node);
1272
- if (symbol && symbol.valueDeclaration && symbol.valueDeclaration.getSourceFile().fileName.includes("@types/hammerjs")) {
1273
- this._usedInRuntime = true;
1274
- }
1275
- }
1276
- }
1277
- _checkForMaterialGestureConfig(node) {
1278
- if (ts.isIdentifier(node)) {
1279
- const importData = (0, schematics_1.getImportOfIdentifier)(node, this.typeChecker);
1280
- if (importData && importData.symbolName === GESTURE_CONFIG_CLASS_NAME && importData.moduleName.startsWith("@angular/material/")) {
1281
- this._gestureConfigReferences.push({
1282
- node,
1283
- importData,
1284
- isImport: ts.isImportSpecifier(node.parent)
1285
- });
1286
- }
1287
- }
1288
- }
1289
- _checkForCustomGestureConfigSetup(tokenRef) {
1290
- let propertyAssignment = tokenRef.node;
1291
- while (propertyAssignment && !ts.isPropertyAssignment(propertyAssignment)) {
1292
- propertyAssignment = propertyAssignment.parent;
1293
- }
1294
- if (!propertyAssignment || !ts.isPropertyAssignment(propertyAssignment) || getPropertyNameText(propertyAssignment.name) !== "provide") {
1295
- return false;
1296
- }
1297
- const objectLiteralExpr = propertyAssignment.parent;
1298
- const matchingIdentifiers = findMatchingChildNodes(objectLiteralExpr, ts.isIdentifier);
1299
- return !this._gestureConfigReferences.some((r) => matchingIdentifiers.includes(r.node));
1300
- }
1301
- _getAvailableGestureConfigFileName(sourceRoot) {
1302
- if (!this.fileSystem.fileExists((0, core_1.join)(sourceRoot, `${GESTURE_CONFIG_FILE_NAME}.ts`))) {
1303
- return `${GESTURE_CONFIG_FILE_NAME}.ts`;
1304
- }
1305
- let possibleName = `${GESTURE_CONFIG_FILE_NAME}-`;
1306
- let index = 1;
1307
- while (this.fileSystem.fileExists((0, core_1.join)(sourceRoot, `${possibleName}-${index}.ts`))) {
1308
- index++;
1309
- }
1310
- return `${possibleName + index}.ts`;
1311
- }
1312
- _replaceGestureConfigReference({ node, importData, isImport }, symbolName, moduleSpecifier) {
1313
- const sourceFile = node.getSourceFile();
1314
- const recorder = this.fileSystem.edit(this.fileSystem.resolve(sourceFile.fileName));
1315
- const gestureIdentifiersInFile = this._getGestureConfigIdentifiersOfFile(sourceFile);
1316
- if (isNamespacedIdentifierAccess(node)) {
1317
- const newExpression = this._importManager.addImportToSourceFile(sourceFile, symbolName, moduleSpecifier, false, gestureIdentifiersInFile);
1318
- recorder.remove(node.parent.getStart(), node.parent.getWidth());
1319
- recorder.insertRight(node.parent.getStart(), this._printNode(newExpression, sourceFile));
1320
- return;
1321
- }
1322
- this._importManager.deleteNamedBindingImport(sourceFile, GESTURE_CONFIG_CLASS_NAME, importData.moduleName);
1323
- if (!isImport) {
1324
- const newExpression = this._importManager.addImportToSourceFile(sourceFile, symbolName, moduleSpecifier, false, gestureIdentifiersInFile);
1325
- recorder.remove(node.getStart(), node.getWidth());
1326
- recorder.insertRight(node.getStart(), this._printNode(newExpression, sourceFile));
1327
- }
1328
- }
1329
- _removeGestureConfigReference({ node, importData, isImport }) {
1330
- const sourceFile = node.getSourceFile();
1331
- const recorder = this.fileSystem.edit(this.fileSystem.resolve(sourceFile.fileName));
1332
- if (!isNamespacedIdentifierAccess(node)) {
1333
- this._importManager.deleteNamedBindingImport(sourceFile, GESTURE_CONFIG_CLASS_NAME, importData.moduleName);
1334
- }
1335
- if (isImport) {
1336
- return;
1337
- }
1338
- const providerAssignment = node.parent;
1339
- if (!ts.isPropertyAssignment(providerAssignment) || getPropertyNameText(providerAssignment.name) !== "useClass") {
1340
- this._nodeFailures.push({ node, message: CANNOT_REMOVE_REFERENCE_ERROR });
1341
- return;
1342
- }
1343
- const objectLiteralExpr = providerAssignment.parent;
1344
- const provideToken = objectLiteralExpr.properties.find((p) => ts.isPropertyAssignment(p) && getPropertyNameText(p.name) === "provide");
1345
- if (!provideToken || !this._isReferenceToHammerConfigToken(provideToken.initializer)) {
1346
- this._nodeFailures.push({ node, message: CANNOT_REMOVE_REFERENCE_ERROR });
1347
- return;
1348
- }
1349
- this._deletedIdentifiers.push(...findMatchingChildNodes(objectLiteralExpr, ts.isIdentifier));
1350
- if (!ts.isArrayLiteralExpression(objectLiteralExpr.parent)) {
1351
- recorder.remove(objectLiteralExpr.getStart(), objectLiteralExpr.getWidth());
1352
- recorder.insertRight(objectLiteralExpr.getStart(), `/* TODO: remove */ {}`);
1353
- this._nodeFailures.push({
1354
- node: objectLiteralExpr,
1355
- message: `Unable to delete provider definition for "GestureConfig" completely. Please clean up the provider.`
1356
- });
1357
- return;
1358
- }
1359
- (0, remove_array_element_1.removeElementFromArrayExpression)(objectLiteralExpr, recorder);
1360
- }
1361
- _removeHammerConfigTokenImportIfUnused({ node, importData }) {
1362
- const sourceFile = node.getSourceFile();
1363
- const isTokenUsed = this._hammerConfigTokenReferences.some((r) => !r.isImport && !isNamespacedIdentifierAccess(r.node) && r.node.getSourceFile() === sourceFile && !this._deletedIdentifiers.includes(r.node));
1364
- if (!isTokenUsed) {
1365
- this._importManager.deleteNamedBindingImport(sourceFile, HAMMER_CONFIG_TOKEN_NAME, importData.moduleName);
1366
- }
1367
- }
1368
- _removeHammerFromIndexFile() {
1369
- const indexFilePaths = (0, schematics_1.getProjectIndexFiles)(this.context.project);
1370
- indexFilePaths.forEach((filePath) => {
1371
- if (!this.fileSystem.fileExists(filePath)) {
1372
- return;
1373
- }
1374
- const htmlContent = this.fileSystem.read(filePath);
1375
- const recorder = this.fileSystem.edit(filePath);
1376
- (0, find_hammer_script_tags_1.findHammerScriptImportElements)(htmlContent).forEach((el) => (0, remove_element_from_html_1.removeElementFromHtml)(el, recorder));
1377
- });
1378
- }
1379
- _setupNewGestureConfigInRootModule(gestureConfigPath) {
1380
- const { project } = this.context;
1381
- const mainFilePath = (0, schematics_1.getProjectMainFile)(project);
1382
- const rootModuleSymbol = this._getRootModuleSymbol(mainFilePath);
1383
- if (rootModuleSymbol === null || rootModuleSymbol.valueDeclaration === void 0) {
1384
- this.failures.push({
1385
- filePath: mainFilePath,
1386
- message: `Could not setup Hammer gestures in module. Please manually ensure that the Hammer gesture config is set up.`
1387
- });
1388
- return;
1389
- }
1390
- const sourceFile = rootModuleSymbol.valueDeclaration.getSourceFile();
1391
- const metadata = (0, schematics_1.getDecoratorMetadata)(sourceFile, "NgModule", "@angular/core");
1392
- if (!metadata.length) {
1393
- return;
1394
- }
1395
- const filePath = this.fileSystem.resolve(sourceFile.fileName);
1396
- const recorder = this.fileSystem.edit(filePath);
1397
- const providersField = (0, schematics_1.getMetadataField)(metadata[0], "providers")[0];
1398
- const providerIdentifiers = providersField ? findMatchingChildNodes(providersField, ts.isIdentifier) : null;
1399
- const gestureConfigExpr = this._importManager.addImportToSourceFile(sourceFile, GESTURE_CONFIG_CLASS_NAME, getModuleSpecifier(gestureConfigPath, filePath), false, this._getGestureConfigIdentifiersOfFile(sourceFile));
1400
- const hammerConfigTokenExpr = this._importManager.addImportToSourceFile(sourceFile, HAMMER_CONFIG_TOKEN_NAME, HAMMER_CONFIG_TOKEN_MODULE);
1401
- const newProviderNode = ts.factory.createObjectLiteralExpression([
1402
- ts.factory.createPropertyAssignment("provide", hammerConfigTokenExpr),
1403
- ts.factory.createPropertyAssignment("useClass", gestureConfigExpr)
1404
- ]);
1405
- if (!providerIdentifiers || !(this._hammerConfigTokenReferences.some((r) => providerIdentifiers.includes(r.node)) && this._gestureConfigReferences.some((r) => providerIdentifiers.includes(r.node)))) {
1406
- const symbolName = this._printNode(newProviderNode, sourceFile);
1407
- (0, schematics_1.addSymbolToNgModuleMetadata)(sourceFile, sourceFile.fileName, "providers", symbolName, null).forEach((change) => {
1408
- if (change instanceof change_1.InsertChange) {
1409
- recorder.insertRight(change.pos, change.toAdd);
1410
- }
1411
- });
1412
- }
1413
- }
1414
- _getRootModuleSymbol(mainFilePath) {
1415
- const mainFile = this.program.getSourceFile(mainFilePath);
1416
- if (!mainFile) {
1417
- return null;
1418
- }
1419
- const appModuleExpr = (0, find_main_module_1.findMainModuleExpression)(mainFile);
1420
- if (!appModuleExpr) {
1421
- return null;
1422
- }
1423
- const appModuleSymbol = this._getDeclarationSymbolOfNode(unwrapExpression(appModuleExpr));
1424
- if (!appModuleSymbol || !appModuleSymbol.valueDeclaration) {
1425
- return null;
1426
- }
1427
- return appModuleSymbol;
1428
- }
1429
- _setupHammerModuleInRootModule() {
1430
- const { project } = this.context;
1431
- const mainFilePath = (0, schematics_1.getProjectMainFile)(project);
1432
- const rootModuleSymbol = this._getRootModuleSymbol(mainFilePath);
1433
- if (rootModuleSymbol === null || rootModuleSymbol.valueDeclaration === void 0) {
1434
- this.failures.push({
1435
- filePath: mainFilePath,
1436
- message: `Could not setup HammerModule. Please manually set up the "HammerModule" from "@angular/platform-browser".`
1437
- });
1438
- return;
1439
- }
1440
- const sourceFile = rootModuleSymbol.valueDeclaration.getSourceFile();
1441
- const metadata = (0, schematics_1.getDecoratorMetadata)(sourceFile, "NgModule", "@angular/core");
1442
- if (!metadata.length) {
1443
- return;
1444
- }
1445
- const importsField = (0, schematics_1.getMetadataField)(metadata[0], "imports")[0];
1446
- const importIdentifiers = importsField ? findMatchingChildNodes(importsField, ts.isIdentifier) : null;
1447
- const recorder = this.fileSystem.edit(this.fileSystem.resolve(sourceFile.fileName));
1448
- const hammerModuleExpr = this._importManager.addImportToSourceFile(sourceFile, HAMMER_MODULE_NAME, HAMMER_MODULE_IMPORT);
1449
- if (!importIdentifiers || !this._hammerModuleReferences.some((r) => importIdentifiers.includes(r.node))) {
1450
- const symbolName = this._printNode(hammerModuleExpr, sourceFile);
1451
- (0, schematics_1.addSymbolToNgModuleMetadata)(sourceFile, sourceFile.fileName, "imports", symbolName, null).forEach((change) => {
1452
- if (change instanceof change_1.InsertChange) {
1453
- recorder.insertRight(change.pos, change.toAdd);
1454
- }
1455
- });
1456
- }
1457
- }
1458
- _printNode(node, sourceFile) {
1459
- return this._printer.printNode(ts.EmitHint.Unspecified, node, sourceFile);
1460
- }
1461
- _getGestureConfigIdentifiersOfFile(sourceFile) {
1462
- return this._gestureConfigReferences.filter((d) => d.node.getSourceFile() === sourceFile).map((d) => d.node);
1463
- }
1464
- _getDeclarationSymbolOfNode(node) {
1465
- const symbol = this.typeChecker.getSymbolAtLocation(node);
1466
- if (symbol && (symbol.flags & ts.SymbolFlags.Alias) !== 0) {
1467
- return this.typeChecker.getAliasedSymbol(symbol);
1468
- }
1469
- return symbol;
1470
- }
1471
- _isReferenceToHammerConfigToken(expr) {
1472
- const unwrapped = unwrapExpression(expr);
1473
- if (ts.isIdentifier(unwrapped)) {
1474
- return this._hammerConfigTokenReferences.some((r) => r.node === unwrapped);
1475
- } else if (ts.isPropertyAccessExpression(unwrapped)) {
1476
- return this._hammerConfigTokenReferences.some((r) => r.node === unwrapped.name);
1477
- }
1478
- return false;
1479
- }
1480
- _createMigrationFailures() {
1481
- return this._nodeFailures.map(({ node, message }) => {
1482
- const sourceFile = node.getSourceFile();
1483
- const offset = node.getStart();
1484
- const position = ts.getLineAndCharacterOfPosition(sourceFile, node.getStart());
1485
- return {
1486
- position: this._importManager.correctNodePosition(node, offset, position),
1487
- message,
1488
- filePath: this.fileSystem.resolve(sourceFile.fileName)
1489
- };
1490
- });
1491
- }
1492
- static globalPostMigration(tree, target, context) {
1493
- if (!this._isAllowedVersion(target)) {
1494
- return;
1495
- }
1496
- context.logger.info("\n\u26A0 General notice: The HammerJS v9 migration for Angular Components is not able to migrate tests. Please manually clean up tests in your project if they rely on " + (this.globalUsesHammer ? "the deprecated Angular Material gesture config." : "HammerJS."));
1497
- context.logger.info("Read more about migrating tests: https://github.com/angular/components/blob/3a204da37fd1366cae411b5c234517ecad199737/guides/v9-hammerjs-migration.md#how-to-migrate-my-tests");
1498
- if (!this.globalUsesHammer && this._removeHammerFromPackageJson(tree)) {
1499
- return { runPackageManager: true };
1500
- }
1501
- this.globalUsesHammer = false;
1502
- }
1503
- static _removeHammerFromPackageJson(tree) {
1504
- if (!tree.exists("/package.json")) {
1505
- return false;
1506
- }
1507
- const packageJson = JSON.parse(tree.read("/package.json").toString("utf8"));
1508
- if (packageJson.dependencies && packageJson.dependencies[HAMMER_MODULE_SPECIFIER]) {
1509
- delete packageJson.dependencies[HAMMER_MODULE_SPECIFIER];
1510
- tree.overwrite("/package.json", JSON.stringify(packageJson, null, 2));
1511
- return true;
1512
- }
1513
- return false;
1514
- }
1515
- static _isAllowedVersion(target) {
1516
- return target === schematics_1.TargetVersion.V9 || target === schematics_1.TargetVersion.V10;
1517
- }
1518
- };
1519
- exports.HammerGesturesMigration = HammerGesturesMigration2;
1520
- HammerGesturesMigration2.globalUsesHammer = false;
1521
- function unwrapExpression(node) {
1522
- if (ts.isParenthesizedExpression(node)) {
1523
- return unwrapExpression(node.expression);
1524
- } else if (ts.isAsExpression(node)) {
1525
- return unwrapExpression(node.expression);
1526
- } else if (ts.isTypeAssertion(node)) {
1527
- return unwrapExpression(node.expression);
1528
- }
1529
- return node;
1530
- }
1531
- function getModuleSpecifier(newPath, containingFile) {
1532
- let result = (0, core_1.relative)((0, core_1.dirname)(containingFile), newPath).replace(/\\/g, "/").replace(/\.ts$/, "");
1533
- if (!result.startsWith(".")) {
1534
- result = `./${result}`;
1535
- }
1536
- return result;
1537
- }
1538
- function getPropertyNameText(node) {
1539
- if (ts.isIdentifier(node) || ts.isStringLiteralLike(node)) {
1540
- return node.text;
1541
- }
1542
- return null;
1543
- }
1544
- function isNamespacedIdentifierAccess(node) {
1545
- return ts.isQualifiedName(node.parent) || ts.isPropertyAccessExpression(node.parent);
1546
- }
1547
- function findMatchingChildNodes(parent, predicate) {
1548
- const result = [];
1549
- const visitNode = (node) => {
1550
- if (predicate(node)) {
1551
- result.push(node);
1552
- }
1553
- ts.forEachChild(node, visitNode);
1554
- };
1555
- ts.forEachChild(parent, visitNode);
1556
- return result;
1557
- }
1558
- }
1559
- });
1560
-
1561
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/misc-checks/misc-class-inheritance.js
1562
- var require_misc_class_inheritance = __commonJS({
1563
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/misc-checks/misc-class-inheritance.js"(exports) {
1564
- "use strict";
1565
- Object.defineProperty(exports, "__esModule", { value: true });
1566
- exports.MiscClassInheritanceMigration = void 0;
1567
- var tslib_1 = require_tslib();
1568
- var schematics_1 = require("@angular/cdk/schematics");
1569
- var ts = tslib_1.__importStar(require("typescript"));
1570
- var MiscClassInheritanceMigration2 = class extends schematics_1.Migration {
1571
- constructor() {
1572
- super(...arguments);
1573
- this.enabled = this.targetVersion === schematics_1.TargetVersion.V6;
1574
- }
1575
- visitNode(node) {
1576
- if (ts.isClassDeclaration(node)) {
1577
- this._visitClassDeclaration(node);
1578
- }
1579
- }
1580
- _visitClassDeclaration(node) {
1581
- const baseTypes = (0, schematics_1.determineBaseTypes)(node);
1582
- const className = node.name ? node.name.text : "{unknown-name}";
1583
- if (!baseTypes) {
1584
- return;
1585
- }
1586
- if (baseTypes.includes("MatFormFieldControl")) {
1587
- const hasFloatLabelMember = node.members.filter((member) => member.name).find((member) => member.name.getText() === "shouldLabelFloat");
1588
- if (!hasFloatLabelMember) {
1589
- this.createFailureAtNode(node, `Found class "${className}" which extends "${"MatFormFieldControl"}". This class must define "${"shouldLabelFloat"}" which is now a required property.`);
1590
- }
1591
- }
1592
- }
1593
- };
1594
- exports.MiscClassInheritanceMigration = MiscClassInheritanceMigration2;
1595
- }
1596
- });
1597
-
1598
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/misc-checks/misc-class-names.js
1599
- var require_misc_class_names = __commonJS({
1600
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/misc-checks/misc-class-names.js"(exports) {
1601
- "use strict";
1602
- Object.defineProperty(exports, "__esModule", { value: true });
1603
- exports.MiscClassNamesMigration = void 0;
1604
- var tslib_1 = require_tslib();
1605
- var schematics_1 = require("@angular/cdk/schematics");
1606
- var ts = tslib_1.__importStar(require("typescript"));
1607
- var MiscClassNamesMigration2 = class extends schematics_1.Migration {
1608
- constructor() {
1609
- super(...arguments);
1610
- this.enabled = this.targetVersion === schematics_1.TargetVersion.V6;
1611
- }
1612
- visitNode(node) {
1613
- if (ts.isIdentifier(node)) {
1614
- this._visitIdentifier(node);
1615
- }
1616
- }
1617
- _visitIdentifier(identifier) {
1618
- if (identifier.getText() === "MatDrawerToggleResult") {
1619
- this.createFailureAtNode(identifier, `Found "MatDrawerToggleResult" which has changed from a class type to a string literal type. Your code may need to be updated.`);
1620
- }
1621
- if (identifier.getText() === "MatListOptionChange") {
1622
- this.createFailureAtNode(identifier, `Found usage of "MatListOptionChange" which has been removed. Please listen for "selectionChange" on "MatSelectionList" instead.`);
1623
- }
1624
- }
1625
- };
1626
- exports.MiscClassNamesMigration = MiscClassNamesMigration2;
1627
- }
1628
- });
1629
-
1630
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/misc-checks/misc-imports.js
1631
- var require_misc_imports = __commonJS({
1632
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/misc-checks/misc-imports.js"(exports) {
1633
- "use strict";
1634
- Object.defineProperty(exports, "__esModule", { value: true });
1635
- exports.MiscImportsMigration = void 0;
1636
- var tslib_1 = require_tslib();
1637
- var schematics_1 = require("@angular/cdk/schematics");
1638
- var ts = tslib_1.__importStar(require("typescript"));
1639
- var MiscImportsMigration2 = class extends schematics_1.Migration {
1640
- constructor() {
1641
- super(...arguments);
1642
- this.enabled = this.targetVersion === schematics_1.TargetVersion.V6;
1643
- }
1644
- visitNode(node) {
1645
- if (ts.isImportDeclaration(node)) {
1646
- this._visitImportDeclaration(node);
1647
- }
1648
- }
1649
- _visitImportDeclaration(node) {
1650
- if (!(0, schematics_1.isMaterialImportDeclaration)(node) || !node.importClause || !node.importClause.namedBindings) {
1651
- return;
1652
- }
1653
- const namedBindings = node.importClause.namedBindings;
1654
- if (ts.isNamedImports(namedBindings)) {
1655
- this._checkAnimationConstants(namedBindings);
1656
- }
1657
- }
1658
- _checkAnimationConstants(namedImports) {
1659
- namedImports.elements.filter((element) => ts.isIdentifier(element.name)).forEach((element) => {
1660
- const importName = element.name.text;
1661
- if (importName === "SHOW_ANIMATION" || importName === "HIDE_ANIMATION") {
1662
- this.createFailureAtNode(element, `Found deprecated symbol "${importName}" which has been removed`);
1663
- }
1664
- });
1665
- }
1666
- };
1667
- exports.MiscImportsMigration = MiscImportsMigration2;
1668
- }
1669
- });
1670
-
1671
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/misc-checks/misc-property-names.js
1672
- var require_misc_property_names = __commonJS({
1673
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/misc-checks/misc-property-names.js"(exports) {
1674
- "use strict";
1675
- Object.defineProperty(exports, "__esModule", { value: true });
1676
- exports.MiscPropertyNamesMigration = void 0;
1677
- var tslib_1 = require_tslib();
1678
- var schematics_1 = require("@angular/cdk/schematics");
1679
- var ts = tslib_1.__importStar(require("typescript"));
1680
- var MiscPropertyNamesMigration2 = class extends schematics_1.Migration {
1681
- constructor() {
1682
- super(...arguments);
1683
- this.enabled = this.targetVersion === schematics_1.TargetVersion.V6;
1684
- }
1685
- visitNode(node) {
1686
- if (ts.isPropertyAccessExpression(node)) {
1687
- this._visitPropertyAccessExpression(node);
1688
- }
1689
- }
1690
- _visitPropertyAccessExpression(node) {
1691
- const hostType = this.typeChecker.getTypeAtLocation(node.expression);
1692
- const typeName = hostType && hostType.symbol && hostType.symbol.getName();
1693
- if (typeName === "MatListOption" && node.name.text === "selectionChange") {
1694
- this.createFailureAtNode(node, `Found deprecated property "selectionChange" of class "MatListOption". Use the "selectionChange" property on the parent "MatSelectionList" instead.`);
1695
- }
1696
- if (typeName === "MatDatepicker" && node.name.text === "selectedChanged") {
1697
- this.createFailureAtNode(node, `Found deprecated property "selectedChanged" of class "MatDatepicker". Use the "dateChange" or "dateInput" methods on "MatDatepickerInput" instead.`);
1698
- }
1699
- }
1700
- };
1701
- exports.MiscPropertyNamesMigration = MiscPropertyNamesMigration2;
1702
- }
1703
- });
1704
-
1705
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/misc-checks/misc-template.js
1706
- var require_misc_template = __commonJS({
1707
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/misc-checks/misc-template.js"(exports) {
1708
- "use strict";
1709
- Object.defineProperty(exports, "__esModule", { value: true });
1710
- exports.MiscTemplateMigration = void 0;
1711
- var schematics_1 = require("@angular/cdk/schematics");
1712
- var MiscTemplateMigration2 = class extends schematics_1.Migration {
1713
- constructor() {
1714
- super(...arguments);
1715
- this.enabled = this.targetVersion === schematics_1.TargetVersion.V6;
1716
- }
1717
- visitTemplate(template) {
1718
- (0, schematics_1.findOutputsOnElementWithTag)(template.content, "selectionChange", ["mat-list-option"]).forEach((offset) => {
1719
- this.failures.push({
1720
- filePath: template.filePath,
1721
- position: template.getCharacterAndLineOfPosition(template.start + offset),
1722
- message: `Found deprecated "selectionChange" output binding on "mat-list-option". Use "selectionChange" on "mat-selection-list" instead.`
1723
- });
1724
- });
1725
- (0, schematics_1.findOutputsOnElementWithTag)(template.content, "selectedChanged", ["mat-datepicker"]).forEach((offset) => {
1726
- this.failures.push({
1727
- filePath: template.filePath,
1728
- position: template.getCharacterAndLineOfPosition(template.start + offset),
1729
- message: `Found deprecated "selectedChanged" output binding on "mat-datepicker". Use "dateChange" or "dateInput" on "<input [matDatepicker]>" instead.`
1730
- });
1731
- });
1732
- (0, schematics_1.findInputsOnElementWithTag)(template.content, "selected", ["mat-button-toggle-group"]).forEach((offset) => {
1733
- this.failures.push({
1734
- filePath: template.filePath,
1735
- position: template.getCharacterAndLineOfPosition(template.start + offset),
1736
- message: `Found deprecated "selected" input binding on "mat-radio-button-group". Use "value" instead.`
1737
- });
1738
- });
1739
- }
1740
- };
1741
- exports.MiscTemplateMigration = MiscTemplateMigration2;
1742
- }
1743
- });
1744
-
1745
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor.js
1746
- var require_ripple_speed_factor = __commonJS({
1747
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor.js"(exports) {
1748
- "use strict";
1749
- Object.defineProperty(exports, "__esModule", { value: true });
1750
- exports.createSpeedFactorConvertExpression = exports.convertSpeedFactorToDuration = void 0;
1751
- function convertSpeedFactorToDuration(factor) {
1752
- return 450 / (factor || 1);
1753
- }
1754
- exports.convertSpeedFactorToDuration = convertSpeedFactorToDuration;
1755
- function createSpeedFactorConvertExpression(speedFactorValue) {
1756
- return `450 / (${speedFactorValue})`;
1757
- }
1758
- exports.createSpeedFactorConvertExpression = createSpeedFactorConvertExpression;
1759
- }
1760
- });
1761
-
1762
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor-migration.js
1763
- var require_ripple_speed_factor_migration = __commonJS({
1764
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor-migration.js"(exports) {
1765
- "use strict";
1766
- Object.defineProperty(exports, "__esModule", { value: true });
1767
- exports.RippleSpeedFactorMigration = void 0;
1768
- var tslib_1 = require_tslib();
1769
- var schematics_1 = require("@angular/cdk/schematics");
1770
- var ts = tslib_1.__importStar(require("typescript"));
1771
- var ripple_speed_factor_1 = require_ripple_speed_factor();
1772
- var speedFactorNumberRegex = /\[matRippleSpeedFactor]="(\d+(?:\.\d+)?)"/g;
1773
- var speedFactorNotParseable = /\[matRippleSpeedFactor]="(?!\d+(?:\.\d+)?")(.*)"/g;
1774
- var removeNote = `TODO: Cleanup duration calculation.`;
1775
- var RippleSpeedFactorMigration2 = class extends schematics_1.Migration {
1776
- constructor() {
1777
- super(...arguments);
1778
- this.enabled = this.targetVersion === schematics_1.TargetVersion.V7;
1779
- }
1780
- visitNode(node) {
1781
- if (ts.isBinaryExpression(node)) {
1782
- this._visitBinaryExpression(node);
1783
- } else if (ts.isPropertyAssignment(node)) {
1784
- this._visitPropertyAssignment(node);
1785
- }
1786
- }
1787
- visitTemplate(template) {
1788
- let match;
1789
- while ((match = speedFactorNumberRegex.exec(template.content)) !== null) {
1790
- const newEnterDuration = (0, ripple_speed_factor_1.convertSpeedFactorToDuration)(parseFloat(match[1]));
1791
- this._replaceText(template.filePath, template.start + match.index, match[0].length, `[matRippleAnimation]="{enterDuration: ${newEnterDuration}}"`);
1792
- }
1793
- while ((match = speedFactorNotParseable.exec(template.content)) !== null) {
1794
- const newDurationExpression = (0, ripple_speed_factor_1.createSpeedFactorConvertExpression)(match[1]);
1795
- this._replaceText(template.filePath, template.start + match.index, match[0].length, `[matRippleAnimation]="{enterDuration: (${newDurationExpression})}"`);
1796
- }
1797
- }
1798
- _visitBinaryExpression(expression) {
1799
- if (!ts.isPropertyAccessExpression(expression.left)) {
1800
- return;
1801
- }
1802
- const leftExpression = expression.left;
1803
- const targetTypeNode = this.typeChecker.getTypeAtLocation(leftExpression.expression);
1804
- if (!targetTypeNode.symbol) {
1805
- return;
1806
- }
1807
- const targetTypeName = targetTypeNode.symbol.getName();
1808
- const propertyName = leftExpression.name.getText();
1809
- const filePath = this.fileSystem.resolve(leftExpression.getSourceFile().fileName);
1810
- if (targetTypeName === "MatRipple" && propertyName === "speedFactor") {
1811
- if (ts.isNumericLiteral(expression.right)) {
1812
- const numericValue = parseFloat(expression.right.text);
1813
- const newEnterDurationValue = (0, ripple_speed_factor_1.convertSpeedFactorToDuration)(numericValue);
1814
- this._replaceText(filePath, leftExpression.name.getStart(), leftExpression.name.getWidth(), "animation");
1815
- this._replaceText(filePath, expression.right.getStart(), expression.right.getWidth(), `{enterDuration: ${newEnterDurationValue}}`);
1816
- } else {
1817
- const newExpression = (0, ripple_speed_factor_1.createSpeedFactorConvertExpression)(expression.right.getText());
1818
- this._replaceText(filePath, leftExpression.name.getStart(), leftExpression.name.getWidth(), "animation");
1819
- this._replaceText(filePath, expression.right.getStart(), expression.right.getWidth(), `/** ${removeNote} */ {enterDuration: ${newExpression}}`);
1820
- }
1821
- }
1822
- }
1823
- _visitPropertyAssignment(assignment) {
1824
- if (!ts.isObjectLiteralExpression(assignment.parent)) {
1825
- return;
1826
- }
1827
- if (assignment.name.getText() !== "baseSpeedFactor") {
1828
- return;
1829
- }
1830
- const { initializer, name } = assignment;
1831
- const filePath = this.fileSystem.resolve(assignment.getSourceFile().fileName);
1832
- if (ts.isNumericLiteral(initializer)) {
1833
- const numericValue = parseFloat(initializer.text);
1834
- const newEnterDurationValue = (0, ripple_speed_factor_1.convertSpeedFactorToDuration)(numericValue);
1835
- this._replaceText(filePath, name.getStart(), name.getWidth(), "animation");
1836
- this._replaceText(filePath, initializer.getStart(), initializer.getWidth(), `{enterDuration: ${newEnterDurationValue}}`);
1837
- } else {
1838
- const newExpression = (0, ripple_speed_factor_1.createSpeedFactorConvertExpression)(initializer.getText());
1839
- this._replaceText(filePath, name.getStart(), name.getWidth(), "animation");
1840
- this._replaceText(filePath, initializer.getStart(), initializer.getWidth(), `/** ${removeNote} */ {enterDuration: ${newExpression}}`);
1841
- }
1842
- }
1843
- _replaceText(filePath, start, width, newText) {
1844
- const recorder = this.fileSystem.edit(filePath);
1845
- recorder.remove(start, width);
1846
- recorder.insertRight(start, newText);
1847
- }
1848
- };
1849
- exports.RippleSpeedFactorMigration = RippleSpeedFactorMigration2;
1850
- }
1851
- });
1852
-
1853
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/typescript/module-specifiers.js
1854
- var require_module_specifiers = __commonJS({
1855
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/typescript/module-specifiers.js"(exports) {
1856
- "use strict";
1857
- Object.defineProperty(exports, "__esModule", { value: true });
1858
- exports.isMaterialExportDeclaration = exports.isMaterialImportDeclaration = exports.cdkModuleSpecifier = exports.materialModuleSpecifier = void 0;
1859
- var schematics_1 = require("@angular/cdk/schematics");
1860
- exports.materialModuleSpecifier = "@angular/material";
1861
- exports.cdkModuleSpecifier = "@angular/cdk";
1862
- function isMaterialImportDeclaration(node) {
1863
- return isMaterialDeclaration((0, schematics_1.getImportDeclaration)(node));
1864
- }
1865
- exports.isMaterialImportDeclaration = isMaterialImportDeclaration;
1866
- function isMaterialExportDeclaration(node) {
1867
- return isMaterialDeclaration((0, schematics_1.getExportDeclaration)(node));
1868
- }
1869
- exports.isMaterialExportDeclaration = isMaterialExportDeclaration;
1870
- function isMaterialDeclaration(declaration) {
1871
- if (!declaration.moduleSpecifier) {
1872
- return false;
1873
- }
1874
- const moduleSpecifier = declaration.moduleSpecifier.getText();
1875
- return moduleSpecifier.indexOf(exports.materialModuleSpecifier) !== -1 || moduleSpecifier.indexOf(exports.cdkModuleSpecifier) !== -1;
1876
- }
1877
- }
1878
- });
1879
-
1880
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/package-imports-v8/material-symbols.js
1881
- var require_material_symbols = __commonJS({
1882
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/package-imports-v8/material-symbols.js"(exports) {
1883
- "use strict";
1884
- Object.defineProperty(exports, "__esModule", { value: true });
1885
- exports.materialSymbolMap = void 0;
1886
- exports.materialSymbolMap = {
1887
- "AUTOCOMPLETE_OPTION_HEIGHT": "autocomplete",
1888
- "AUTOCOMPLETE_PANEL_HEIGHT": "autocomplete",
1889
- "getMatAutocompleteMissingPanelError": "autocomplete",
1890
- "MAT_AUTOCOMPLETE_DEFAULT_OPTIONS": "autocomplete",
1891
- "MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY": "autocomplete",
1892
- "MAT_AUTOCOMPLETE_SCROLL_STRATEGY": "autocomplete",
1893
- "MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY": "autocomplete",
1894
- "MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER": "autocomplete",
1895
- "MAT_AUTOCOMPLETE_VALUE_ACCESSOR": "autocomplete",
1896
- "MatAutocomplete": "autocomplete",
1897
- "MatAutocompleteDefaultOptions": "autocomplete",
1898
- "MatAutocompleteModule": "autocomplete",
1899
- "MatAutocompleteOrigin": "autocomplete",
1900
- "MatAutocompleteSelectedEvent": "autocomplete",
1901
- "MatAutocompleteTrigger": "autocomplete",
1902
- "MatBadge": "badge",
1903
- "MatBadgeModule": "badge",
1904
- "MatBadgePosition": "badge",
1905
- "MatBadgeSize": "badge",
1906
- "MAT_BOTTOM_SHEET_DATA": "bottom-sheet",
1907
- "MAT_BOTTOM_SHEET_DEFAULT_OPTIONS": "bottom-sheet",
1908
- "MatBottomSheet": "bottom-sheet",
1909
- "matBottomSheetAnimations": "bottom-sheet",
1910
- "MatBottomSheetConfig": "bottom-sheet",
1911
- "MatBottomSheetContainer": "bottom-sheet",
1912
- "MatBottomSheetModule": "bottom-sheet",
1913
- "MatBottomSheetRef": "bottom-sheet",
1914
- "MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS": "button-toggle",
1915
- "MAT_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR": "button-toggle",
1916
- "MatButtonToggle": "button-toggle",
1917
- "MatButtonToggleAppearance": "button-toggle",
1918
- "MatButtonToggleChange": "button-toggle",
1919
- "MatButtonToggleDefaultOptions": "button-toggle",
1920
- "MatButtonToggleGroup": "button-toggle",
1921
- "MatButtonToggleGroupMultiple": "button-toggle",
1922
- "MatButtonToggleModule": "button-toggle",
1923
- "ToggleType": "button-toggle",
1924
- "MatAnchor": "button",
1925
- "MatButton": "button",
1926
- "MatButtonModule": "button",
1927
- "MatCard": "card",
1928
- "MatCardActions": "card",
1929
- "MatCardAvatar": "card",
1930
- "MatCardContent": "card",
1931
- "MatCardFooter": "card",
1932
- "MatCardHeader": "card",
1933
- "MatCardImage": "card",
1934
- "MatCardLgImage": "card",
1935
- "MatCardMdImage": "card",
1936
- "MatCardModule": "card",
1937
- "MatCardSmImage": "card",
1938
- "MatCardSubtitle": "card",
1939
- "MatCardTitle": "card",
1940
- "MatCardTitleGroup": "card",
1941
- "MatCardXlImage": "card",
1942
- "_MatCheckboxRequiredValidatorModule": "checkbox",
1943
- "MAT_CHECKBOX_CLICK_ACTION": "checkbox",
1944
- "MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR": "checkbox",
1945
- "MAT_CHECKBOX_REQUIRED_VALIDATOR": "checkbox",
1946
- "MatCheckbox": "checkbox",
1947
- "MatCheckboxChange": "checkbox",
1948
- "MatCheckboxClickAction": "checkbox",
1949
- "MatCheckboxModule": "checkbox",
1950
- "MatCheckboxRequiredValidator": "checkbox",
1951
- "TransitionCheckState": "checkbox",
1952
- "MAT_CHIPS_DEFAULT_OPTIONS": "chips",
1953
- "MatChip": "chips",
1954
- "MatChipAvatar": "chips",
1955
- "MatChipEvent": "chips",
1956
- "MatChipInput": "chips",
1957
- "MatChipInputEvent": "chips",
1958
- "MatChipList": "chips",
1959
- "MatChipListChange": "chips",
1960
- "MatChipRemove": "chips",
1961
- "MatChipsDefaultOptions": "chips",
1962
- "MatChipSelectionChange": "chips",
1963
- "MatChipsModule": "chips",
1964
- "MatChipTrailingIcon": "chips",
1965
- "_countGroupLabelsBeforeOption": "core",
1966
- "_getOptionScrollPosition": "core",
1967
- "AnimationCurves": "core",
1968
- "AnimationDurations": "core",
1969
- "JAN": "core",
1970
- "FEB": "core",
1971
- "MAR": "core",
1972
- "APR": "core",
1973
- "MAY": "core",
1974
- "JUN": "core",
1975
- "JUL": "core",
1976
- "AUG": "core",
1977
- "SEP": "core",
1978
- "OCT": "core",
1979
- "NOV": "core",
1980
- "DEC": "core",
1981
- "CanColor": "core",
1982
- "CanColorCtor": "core",
1983
- "CanDisable": "core",
1984
- "CanDisableCtor": "core",
1985
- "CanDisableRipple": "core",
1986
- "CanDisableRippleCtor": "core",
1987
- "CanUpdateErrorState": "core",
1988
- "CanUpdateErrorStateCtor": "core",
1989
- "DateAdapter": "core",
1990
- "defaultRippleAnimationConfig": "core",
1991
- "ErrorStateMatcher": "core",
1992
- "FloatLabelType": "core",
1993
- "GestureConfig": "core",
1994
- "HammerInput": "core",
1995
- "HammerInstance": "core",
1996
- "HammerManager": "core",
1997
- "HammerOptions": "core",
1998
- "HammerStatic": "core",
1999
- "HasInitialized": "core",
2000
- "HasInitializedCtor": "core",
2001
- "HasTabIndex": "core",
2002
- "HasTabIndexCtor": "core",
2003
- "LabelOptions": "core",
2004
- "MAT_DATE_FORMATS": "core",
2005
- "MAT_DATE_LOCALE": "core",
2006
- "MAT_DATE_LOCALE_FACTORY": "core",
2007
- "MAT_DATE_LOCALE_PROVIDER": "core",
2008
- "MAT_HAMMER_OPTIONS": "core",
2009
- "MAT_LABEL_GLOBAL_OPTIONS": "core",
2010
- "MAT_NATIVE_DATE_FORMATS": "core",
2011
- "MAT_OPTION_PARENT_COMPONENT": "core",
2012
- "MAT_RIPPLE_GLOBAL_OPTIONS": "core",
2013
- "MatCommonModule": "core",
2014
- "MatDateFormats": "core",
2015
- "MATERIAL_SANITY_CHECKS": "core",
2016
- "MatLine": "core",
2017
- "MatLineModule": "core",
2018
- "MatLineSetter": "core",
2019
- "MatNativeDateModule": "core",
2020
- "MatOptgroup": "core",
2021
- "MatOption": "core",
2022
- "MatOptionModule": "core",
2023
- "MatOptionParentComponent": "core",
2024
- "MatOptionSelectionChange": "core",
2025
- "MatPseudoCheckbox": "core",
2026
- "MatPseudoCheckboxModule": "core",
2027
- "MatPseudoCheckboxState": "core",
2028
- "MatRipple": "core",
2029
- "MatRippleModule": "core",
2030
- "mixinColor": "core",
2031
- "mixinDisabled": "core",
2032
- "mixinDisableRipple": "core",
2033
- "mixinErrorState": "core",
2034
- "mixinInitialized": "core",
2035
- "mixinTabIndex": "core",
2036
- "NativeDateAdapter": "core",
2037
- "NativeDateModule": "core",
2038
- "Recognizer": "core",
2039
- "RecognizerStatic": "core",
2040
- "RippleAnimationConfig": "core",
2041
- "RippleConfig": "core",
2042
- "RippleGlobalOptions": "core",
2043
- "RippleRef": "core",
2044
- "RippleRenderer": "core",
2045
- "RippleState": "core",
2046
- "RippleTarget": "core",
2047
- "setLines": "core",
2048
- "ShowOnDirtyErrorStateMatcher": "core",
2049
- "ThemePalette": "core",
2050
- "VERSION": "core",
2051
- "MAT_DATEPICKER_SCROLL_STRATEGY": "datepicker",
2052
- "MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY": "datepicker",
2053
- "MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER": "datepicker",
2054
- "MAT_DATEPICKER_VALIDATORS": "datepicker",
2055
- "MAT_DATEPICKER_VALUE_ACCESSOR": "datepicker",
2056
- "MatCalendar": "datepicker",
2057
- "MatCalendarBody": "datepicker",
2058
- "MatCalendarCell": "datepicker",
2059
- "MatCalendarCellCssClasses": "datepicker",
2060
- "MatCalendarHeader": "datepicker",
2061
- "MatCalendarView": "datepicker",
2062
- "MatDatepicker": "datepicker",
2063
- "matDatepickerAnimations": "datepicker",
2064
- "MatDatepickerContent": "datepicker",
2065
- "MatDatepickerInput": "datepicker",
2066
- "MatDatepickerInputEvent": "datepicker",
2067
- "MatDatepickerIntl": "datepicker",
2068
- "MatDatepickerModule": "datepicker",
2069
- "MatDatepickerToggle": "datepicker",
2070
- "MatDatepickerToggleIcon": "datepicker",
2071
- "MatMonthView": "datepicker",
2072
- "MatMultiYearView": "datepicker",
2073
- "MatYearView": "datepicker",
2074
- "yearsPerPage": "datepicker",
2075
- "yearsPerRow": "datepicker",
2076
- "DialogPosition": "dialog",
2077
- "DialogRole": "dialog",
2078
- "MAT_DIALOG_DATA": "dialog",
2079
- "MAT_DIALOG_DEFAULT_OPTIONS": "dialog",
2080
- "MAT_DIALOG_SCROLL_STRATEGY": "dialog",
2081
- "MAT_DIALOG_SCROLL_STRATEGY_FACTORY": "dialog",
2082
- "MAT_DIALOG_SCROLL_STRATEGY_PROVIDER": "dialog",
2083
- "MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY": "dialog",
2084
- "MatDialog": "dialog",
2085
- "MatDialogActions": "dialog",
2086
- "matDialogAnimations": "dialog",
2087
- "MatDialogClose": "dialog",
2088
- "MatDialogConfig": "dialog",
2089
- "MatDialogContainer": "dialog",
2090
- "MatDialogContent": "dialog",
2091
- "MatDialogModule": "dialog",
2092
- "MatDialogRef": "dialog",
2093
- "MatDialogState": "dialog",
2094
- "MatDialogTitle": "dialog",
2095
- "throwMatDialogContentAlreadyAttachedError": "dialog",
2096
- "MatDivider": "divider",
2097
- "MatDividerModule": "divider",
2098
- "EXPANSION_PANEL_ANIMATION_TIMING": "expansion",
2099
- "MAT_ACCORDION": "expansion",
2100
- "MAT_EXPANSION_PANEL_DEFAULT_OPTIONS": "expansion",
2101
- "MatAccordion": "expansion",
2102
- "MatAccordionBase": "expansion",
2103
- "MatAccordionDisplayMode": "expansion",
2104
- "MatAccordionTogglePosition": "expansion",
2105
- "matExpansionAnimations": "expansion",
2106
- "MatExpansionModule": "expansion",
2107
- "MatExpansionPanel": "expansion",
2108
- "MatExpansionPanelActionRow": "expansion",
2109
- "MatExpansionPanelContent": "expansion",
2110
- "MatExpansionPanelDefaultOptions": "expansion",
2111
- "MatExpansionPanelDescription": "expansion",
2112
- "MatExpansionPanelHeader": "expansion",
2113
- "MatExpansionPanelState": "expansion",
2114
- "MatExpansionPanelTitle": "expansion",
2115
- "getMatFormFieldDuplicatedHintError": "form-field",
2116
- "getMatFormFieldMissingControlError": "form-field",
2117
- "getMatFormFieldPlaceholderConflictError": "form-field",
2118
- "MAT_FORM_FIELD_DEFAULT_OPTIONS": "form-field",
2119
- "MatError": "form-field",
2120
- "MatFormField": "form-field",
2121
- "matFormFieldAnimations": "form-field",
2122
- "MatFormFieldAppearance": "form-field",
2123
- "MatFormFieldControl": "form-field",
2124
- "MatFormFieldDefaultOptions": "form-field",
2125
- "MatFormFieldModule": "form-field",
2126
- "MatHint": "form-field",
2127
- "MatLabel": "form-field",
2128
- "MatPlaceholder": "form-field",
2129
- "MatPrefix": "form-field",
2130
- "MatSuffix": "form-field",
2131
- "MatGridAvatarCssMatStyler": "grid-list",
2132
- "MatGridList": "grid-list",
2133
- "MatGridListModule": "grid-list",
2134
- "MatGridTile": "grid-list",
2135
- "MatGridTileFooterCssMatStyler": "grid-list",
2136
- "MatGridTileHeaderCssMatStyler": "grid-list",
2137
- "MatGridTileText": "grid-list",
2138
- "getMatIconFailedToSanitizeLiteralError": "icon",
2139
- "getMatIconFailedToSanitizeUrlError": "icon",
2140
- "getMatIconNameNotFoundError": "icon",
2141
- "getMatIconNoHttpProviderError": "icon",
2142
- "ICON_REGISTRY_PROVIDER": "icon",
2143
- "ICON_REGISTRY_PROVIDER_FACTORY": "icon",
2144
- "IconOptions": "icon",
2145
- "MAT_ICON_LOCATION": "icon",
2146
- "MAT_ICON_LOCATION_FACTORY": "icon",
2147
- "MatIcon": "icon",
2148
- "MatIconLocation": "icon",
2149
- "MatIconModule": "icon",
2150
- "MatIconRegistry": "icon",
2151
- "getMatInputUnsupportedTypeError": "input",
2152
- "MAT_INPUT_VALUE_ACCESSOR": "input",
2153
- "MatInput": "input",
2154
- "MatInputModule": "input",
2155
- "MatTextareaAutosize": "input",
2156
- "MAT_SELECTION_LIST_VALUE_ACCESSOR": "list",
2157
- "MatList": "list",
2158
- "MatListAvatarCssMatStyler": "list",
2159
- "MatListIconCssMatStyler": "list",
2160
- "MatListItem": "list",
2161
- "MatListModule": "list",
2162
- "MatListOption": "list",
2163
- "MatListSubheaderCssMatStyler": "list",
2164
- "MatNavList": "list",
2165
- "MatSelectionList": "list",
2166
- "MatSelectionListChange": "list",
2167
- "_MatMenu": "menu",
2168
- "_MatMenuBase": "menu",
2169
- "_MatMenuDirectivesModule": "menu",
2170
- "fadeInItems": "menu",
2171
- "MAT_MENU_DEFAULT_OPTIONS": "menu",
2172
- "MAT_MENU_PANEL": "menu",
2173
- "MAT_MENU_SCROLL_STRATEGY": "menu",
2174
- "MatMenu": "menu",
2175
- "matMenuAnimations": "menu",
2176
- "MatMenuContent": "menu",
2177
- "MatMenuDefaultOptions": "menu",
2178
- "MatMenuItem": "menu",
2179
- "MatMenuModule": "menu",
2180
- "MatMenuPanel": "menu",
2181
- "MatMenuTrigger": "menu",
2182
- "MenuPositionX": "menu",
2183
- "MenuPositionY": "menu",
2184
- "transformMenu": "menu",
2185
- "MAT_PAGINATOR_INTL_PROVIDER": "paginator",
2186
- "MAT_PAGINATOR_INTL_PROVIDER_FACTORY": "paginator",
2187
- "MatPaginator": "paginator",
2188
- "MatPaginatorIntl": "paginator",
2189
- "MatPaginatorModule": "paginator",
2190
- "PageEvent": "paginator",
2191
- "MAT_PROGRESS_BAR_LOCATION": "progress-bar",
2192
- "MAT_PROGRESS_BAR_LOCATION_FACTORY": "progress-bar",
2193
- "MatProgressBar": "progress-bar",
2194
- "MatProgressBarLocation": "progress-bar",
2195
- "MatProgressBarModule": "progress-bar",
2196
- "ProgressAnimationEnd": "progress-bar",
2197
- "MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS": "progress-spinner",
2198
- "MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY": "progress-spinner",
2199
- "MatProgressSpinner": "progress-spinner",
2200
- "MatProgressSpinnerDefaultOptions": "progress-spinner",
2201
- "MatProgressSpinnerModule": "progress-spinner",
2202
- "MatSpinner": "progress-spinner",
2203
- "ProgressSpinnerMode": "progress-spinner",
2204
- "MAT_RADIO_DEFAULT_OPTIONS": "radio",
2205
- "MAT_RADIO_DEFAULT_OPTIONS_FACTORY": "radio",
2206
- "MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR": "radio",
2207
- "MatRadioButton": "radio",
2208
- "MatRadioChange": "radio",
2209
- "MatRadioDefaultOptions": "radio",
2210
- "MatRadioGroup": "radio",
2211
- "MatRadioModule": "radio",
2212
- "fadeInContent": "select",
2213
- "MAT_SELECT_SCROLL_STRATEGY": "select",
2214
- "MAT_SELECT_SCROLL_STRATEGY_PROVIDER": "select",
2215
- "MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY": "select",
2216
- "MatSelect": "select",
2217
- "matSelectAnimations": "select",
2218
- "MatSelectChange": "select",
2219
- "MatSelectModule": "select",
2220
- "MatSelectTrigger": "select",
2221
- "SELECT_ITEM_HEIGHT_EM": "select",
2222
- "SELECT_MULTIPLE_PANEL_PADDING_X": "select",
2223
- "SELECT_PANEL_INDENT_PADDING_X": "select",
2224
- "SELECT_PANEL_MAX_HEIGHT": "select",
2225
- "SELECT_PANEL_PADDING_X": "select",
2226
- "SELECT_PANEL_VIEWPORT_PADDING": "select",
2227
- "transformPanel": "select",
2228
- "MAT_DRAWER_DEFAULT_AUTOSIZE": "sidenav",
2229
- "MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY": "sidenav",
2230
- "MatDrawer": "sidenav",
2231
- "matDrawerAnimations": "sidenav",
2232
- "MatDrawerContainer": "sidenav",
2233
- "MatDrawerContent": "sidenav",
2234
- "MatDrawerToggleResult": "sidenav",
2235
- "MatSidenav": "sidenav",
2236
- "MatSidenavContainer": "sidenav",
2237
- "MatSidenavContent": "sidenav",
2238
- "MatSidenavModule": "sidenav",
2239
- "throwMatDuplicatedDrawerError": "sidenav",
2240
- "_MatSlideToggleRequiredValidatorModule": "slide-toggle",
2241
- "MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS": "slide-toggle",
2242
- "MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR": "slide-toggle",
2243
- "MAT_SLIDE_TOGGLE_VALUE_ACCESSOR": "slide-toggle",
2244
- "MatSlideToggle": "slide-toggle",
2245
- "MatSlideToggleChange": "slide-toggle",
2246
- "MatSlideToggleDefaultOptions": "slide-toggle",
2247
- "MatSlideToggleModule": "slide-toggle",
2248
- "MatSlideToggleRequiredValidator": "slide-toggle",
2249
- "MAT_SLIDER_VALUE_ACCESSOR": "slider",
2250
- "MatSlider": "slider",
2251
- "MatSliderChange": "slider",
2252
- "MatSliderModule": "slider",
2253
- "MAT_SNACK_BAR_DATA": "snack-bar",
2254
- "MAT_SNACK_BAR_DEFAULT_OPTIONS": "snack-bar",
2255
- "MAT_SNACK_BAR_DEFAULT_OPTIONS_FACTORY": "snack-bar",
2256
- "MatSnackBar": "snack-bar",
2257
- "matSnackBarAnimations": "snack-bar",
2258
- "MatSnackBarConfig": "snack-bar",
2259
- "MatSnackBarContainer": "snack-bar",
2260
- "MatSnackBarDismiss": "snack-bar",
2261
- "MatSnackBarHorizontalPosition": "snack-bar",
2262
- "MatSnackBarModule": "snack-bar",
2263
- "MatSnackBarRef": "snack-bar",
2264
- "MatSnackBarVerticalPosition": "snack-bar",
2265
- "SimpleSnackBar": "snack-bar",
2266
- "ArrowViewState": "sort",
2267
- "ArrowViewStateTransition": "sort",
2268
- "MAT_SORT_HEADER_INTL_PROVIDER": "sort",
2269
- "MAT_SORT_HEADER_INTL_PROVIDER_FACTORY": "sort",
2270
- "MatSort": "sort",
2271
- "MatSortable": "sort",
2272
- "matSortAnimations": "sort",
2273
- "MatSortHeader": "sort",
2274
- "MatSortHeaderIntl": "sort",
2275
- "MatSortModule": "sort",
2276
- "Sort": "sort",
2277
- "SortDirection": "sort",
2278
- "MAT_STEPPER_INTL_PROVIDER": "stepper",
2279
- "MAT_STEPPER_INTL_PROVIDER_FACTORY": "stepper",
2280
- "MatHorizontalStepper": "stepper",
2281
- "MatStep": "stepper",
2282
- "MatStepHeader": "stepper",
2283
- "MatStepLabel": "stepper",
2284
- "MatStepper": "stepper",
2285
- "matStepperAnimations": "stepper",
2286
- "MatStepperIcon": "stepper",
2287
- "MatStepperIconContext": "stepper",
2288
- "MatStepperIntl": "stepper",
2289
- "MatStepperModule": "stepper",
2290
- "MatStepperNext": "stepper",
2291
- "MatStepperPrevious": "stepper",
2292
- "MatVerticalStepper": "stepper",
2293
- "MatCell": "table",
2294
- "MatCellDef": "table",
2295
- "MatColumnDef": "table",
2296
- "MatFooterCell": "table",
2297
- "MatFooterCellDef": "table",
2298
- "MatFooterRow": "table",
2299
- "MatFooterRowDef": "table",
2300
- "MatHeaderCell": "table",
2301
- "MatHeaderCellDef": "table",
2302
- "MatHeaderRow": "table",
2303
- "MatHeaderRowDef": "table",
2304
- "MatRow": "table",
2305
- "MatRowDef": "table",
2306
- "MatTable": "table",
2307
- "MatTableDataSource": "table",
2308
- "MatTableModule": "table",
2309
- "MatTextColumn": "table",
2310
- "_MAT_INK_BAR_POSITIONER": "tabs",
2311
- "_MatInkBarPositioner": "tabs",
2312
- "_MatTabBodyBase": "tabs",
2313
- "_MatTabGroupBase": "tabs",
2314
- "_MatTabHeaderBase": "tabs",
2315
- "_MatTabLinkBase": "tabs",
2316
- "_MatTabNavBase": "tabs",
2317
- "MAT_TABS_CONFIG": "tabs",
2318
- "MatInkBar": "tabs",
2319
- "MatTab": "tabs",
2320
- "MatTabBody": "tabs",
2321
- "MatTabBodyOriginState": "tabs",
2322
- "MatTabBodyPortal": "tabs",
2323
- "MatTabBodyPositionState": "tabs",
2324
- "MatTabChangeEvent": "tabs",
2325
- "MatTabContent": "tabs",
2326
- "MatTabGroup": "tabs",
2327
- "MatTabHeader": "tabs",
2328
- "MatTabHeaderPosition": "tabs",
2329
- "MatTabLabel": "tabs",
2330
- "MatTabLabelWrapper": "tabs",
2331
- "MatTabLink": "tabs",
2332
- "MatTabNav": "tabs",
2333
- "matTabsAnimations": "tabs",
2334
- "MatTabsConfig": "tabs",
2335
- "MatTabsModule": "tabs",
2336
- "ScrollDirection": "tabs",
2337
- "MatToolbar": "toolbar",
2338
- "MatToolbarModule": "toolbar",
2339
- "MatToolbarRow": "toolbar",
2340
- "throwToolbarMixedModesError": "toolbar",
2341
- "getMatTooltipInvalidPositionError": "tooltip",
2342
- "MAT_TOOLTIP_DEFAULT_OPTIONS": "tooltip",
2343
- "MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY": "tooltip",
2344
- "MAT_TOOLTIP_SCROLL_STRATEGY": "tooltip",
2345
- "MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY": "tooltip",
2346
- "MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER": "tooltip",
2347
- "MatTooltip": "tooltip",
2348
- "matTooltipAnimations": "tooltip",
2349
- "MatTooltipDefaultOptions": "tooltip",
2350
- "MatTooltipModule": "tooltip",
2351
- "SCROLL_THROTTLE_MS": "tooltip",
2352
- "TOOLTIP_PANEL_CLASS": "tooltip",
2353
- "TooltipComponent": "tooltip",
2354
- "TooltipPosition": "tooltip",
2355
- "TooltipVisibility": "tooltip",
2356
- "MatNestedTreeNode": "tree",
2357
- "MatTree": "tree",
2358
- "MatTreeFlatDataSource": "tree",
2359
- "MatTreeFlattener": "tree",
2360
- "MatTreeModule": "tree",
2361
- "MatTreeNestedDataSource": "tree",
2362
- "MatTreeNode": "tree",
2363
- "MatTreeNodeDef": "tree",
2364
- "MatTreeNodeOutlet": "tree",
2365
- "MatTreeNodePadding": "tree",
2366
- "MatTreeNodeToggle": "tree"
2367
- };
2368
- }
2369
- });
2370
-
2371
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/package-imports-v8/secondary-entry-points-migration.js
2372
- var require_secondary_entry_points_migration = __commonJS({
2373
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/package-imports-v8/secondary-entry-points-migration.js"(exports) {
2374
- "use strict";
2375
- Object.defineProperty(exports, "__esModule", { value: true });
2376
- exports.SecondaryEntryPointsMigration = void 0;
2377
- var tslib_1 = require_tslib();
2378
- var schematics_1 = require("@angular/cdk/schematics");
2379
- var ts = tslib_1.__importStar(require("typescript"));
2380
- var module_specifiers_1 = require_module_specifiers();
2381
- var material_symbols_1 = require_material_symbols();
2382
- var ONLY_SUBPACKAGE_FAILURE_STR = `Importing from "@angular/material" is deprecated. Instead import from the entry-point the symbol belongs to.`;
2383
- var NO_IMPORT_NAMED_SYMBOLS_FAILURE_STR = `Imports from Angular Material should import specific symbols rather than importing the entire library.`;
2384
- var ANGULAR_MATERIAL_FILEPATH_REGEX = new RegExp(`${module_specifiers_1.materialModuleSpecifier}/(.*?)/`);
2385
- var SecondaryEntryPointsMigration2 = class extends schematics_1.Migration {
2386
- constructor() {
2387
- super(...arguments);
2388
- this.printer = ts.createPrinter();
2389
- this.enabled = this.targetVersion === schematics_1.TargetVersion.V8 || this.targetVersion === schematics_1.TargetVersion.V9;
2390
- }
2391
- visitNode(declaration) {
2392
- if (!ts.isImportDeclaration(declaration) || !ts.isStringLiteralLike(declaration.moduleSpecifier)) {
2393
- return;
2394
- }
2395
- const importLocation = declaration.moduleSpecifier.text;
2396
- if (importLocation !== module_specifiers_1.materialModuleSpecifier) {
2397
- return;
2398
- }
2399
- if (!declaration.importClause || !declaration.importClause.namedBindings) {
2400
- this.createFailureAtNode(declaration, NO_IMPORT_NAMED_SYMBOLS_FAILURE_STR);
2401
- return;
2402
- }
2403
- if (!ts.isNamedImports(declaration.importClause.namedBindings)) {
2404
- this.createFailureAtNode(declaration, NO_IMPORT_NAMED_SYMBOLS_FAILURE_STR);
2405
- return;
2406
- }
2407
- if (!declaration.importClause.namedBindings.elements.length) {
2408
- this.createFailureAtNode(declaration, NO_IMPORT_NAMED_SYMBOLS_FAILURE_STR);
2409
- return;
2410
- }
2411
- const singleQuoteImport = declaration.moduleSpecifier.getText()[0] === `'`;
2412
- const importMap = /* @__PURE__ */ new Map();
2413
- for (const element of declaration.importClause.namedBindings.elements) {
2414
- const elementName = element.propertyName ? element.propertyName : element.name;
2415
- const moduleName = resolveModuleName(elementName, this.typeChecker) || material_symbols_1.materialSymbolMap[elementName.text] || null;
2416
- if (!moduleName) {
2417
- this.createFailureAtNode(element, `"${element.getText()}" was not found in the Material library.`);
2418
- return;
2419
- }
2420
- if (importMap.has(moduleName)) {
2421
- importMap.get(moduleName).push(element);
2422
- } else {
2423
- importMap.set(moduleName, [element]);
2424
- }
2425
- }
2426
- const newImportStatements = Array.from(importMap.entries()).sort().map(([name, elements]) => {
2427
- const newImport = ts.factory.createImportDeclaration(void 0, void 0, ts.factory.createImportClause(false, void 0, ts.factory.createNamedImports(elements)), ts.factory.createStringLiteral(`${module_specifiers_1.materialModuleSpecifier}/${name}`, singleQuoteImport));
2428
- return this.printer.printNode(ts.EmitHint.Unspecified, newImport, declaration.getSourceFile());
2429
- }).join("\n");
2430
- if (!newImportStatements) {
2431
- this.createFailureAtNode(declaration.moduleSpecifier, ONLY_SUBPACKAGE_FAILURE_STR);
2432
- return;
2433
- }
2434
- const filePath = this.fileSystem.resolve(declaration.moduleSpecifier.getSourceFile().fileName);
2435
- const recorder = this.fileSystem.edit(filePath);
2436
- recorder.remove(declaration.getStart(), declaration.getWidth());
2437
- recorder.insertRight(declaration.getStart(), newImportStatements);
2438
- }
2439
- };
2440
- exports.SecondaryEntryPointsMigration = SecondaryEntryPointsMigration2;
2441
- function getDeclarationSymbolOfNode(node, checker) {
2442
- const symbol = checker.getSymbolAtLocation(node);
2443
- if (symbol && (symbol.flags & ts.SymbolFlags.Alias) !== 0) {
2444
- return checker.getAliasedSymbol(symbol);
2445
- }
2446
- return symbol;
2447
- }
2448
- function resolveModuleName(node, typeChecker) {
2449
- var _a;
2450
- const symbol = getDeclarationSymbolOfNode(node, typeChecker);
2451
- if (!symbol || !(symbol.valueDeclaration || symbol.declarations && symbol.declarations.length !== 0)) {
2452
- return null;
2453
- }
2454
- const resolvedNode = symbol.valueDeclaration || ((_a = symbol.declarations) == null ? void 0 : _a[0]);
2455
- if (resolvedNode === void 0) {
2456
- return null;
2457
- }
2458
- const sourceFile = resolvedNode.getSourceFile().fileName;
2459
- const matches = sourceFile.match(ANGULAR_MATERIAL_FILEPATH_REGEX);
2460
- return matches ? matches[1] : null;
2461
- }
2462
- }
2463
- });
2464
-
2465
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/theming-api-v12/config.js
2466
- var require_config = __commonJS({
2467
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/theming-api-v12/config.js"(exports) {
2468
- "use strict";
2469
- Object.defineProperty(exports, "__esModule", { value: true });
2470
- exports.unprefixedRemovedVariables = exports.removedMaterialVariables = exports.cdkMixins = exports.cdkVariables = exports.materialVariables = exports.materialFunctions = exports.materialMixins = void 0;
2471
- exports.materialMixins = {
2472
- "mat-core": "core",
2473
- "mat-core-color": "core-color",
2474
- "mat-core-theme": "core-theme",
2475
- "angular-material-theme": "all-component-themes",
2476
- "angular-material-typography": "all-component-typographies",
2477
- "angular-material-color": "all-component-colors",
2478
- "mat-base-typography": "typography-hierarchy",
2479
- "mat-typography-level-to-styles": "typography-level",
2480
- "mat-elevation": "elevation",
2481
- "mat-overridable-elevation": "overridable-elevation",
2482
- "mat-elevation-transition": "elevation-transition",
2483
- "mat-ripple": "ripple",
2484
- "mat-ripple-color": "ripple-color",
2485
- "mat-ripple-theme": "ripple-theme",
2486
- "mat-strong-focus-indicators": "strong-focus-indicators",
2487
- "mat-strong-focus-indicators-color": "strong-focus-indicators-color",
2488
- "mat-strong-focus-indicators-theme": "strong-focus-indicators-theme",
2489
- "mat-font-shorthand": "font-shorthand",
2490
- "mat-expansion-panel-theme": "expansion-theme",
2491
- "mat-expansion-panel-color": "expansion-color",
2492
- "mat-expansion-panel-typography": "expansion-typography"
2493
- };
2494
- [
2495
- "option",
2496
- "optgroup",
2497
- "pseudo-checkbox",
2498
- "autocomplete",
2499
- "badge",
2500
- "bottom-sheet",
2501
- "button",
2502
- "button-toggle",
2503
- "card",
2504
- "checkbox",
2505
- "chips",
2506
- "divider",
2507
- "table",
2508
- "datepicker",
2509
- "dialog",
2510
- "grid-list",
2511
- "icon",
2512
- "input",
2513
- "list",
2514
- "menu",
2515
- "paginator",
2516
- "progress-bar",
2517
- "progress-spinner",
2518
- "radio",
2519
- "select",
2520
- "sidenav",
2521
- "slide-toggle",
2522
- "slider",
2523
- "stepper",
2524
- "sort",
2525
- "tabs",
2526
- "toolbar",
2527
- "tooltip",
2528
- "snack-bar",
2529
- "form-field",
2530
- "tree"
2531
- ].forEach((name) => {
2532
- exports.materialMixins[`mat-${name}-theme`] = `${name}-theme`;
2533
- exports.materialMixins[`mat-${name}-color`] = `${name}-color`;
2534
- exports.materialMixins[`mat-${name}-typography`] = `${name}-typography`;
2535
- });
2536
- exports.materialFunctions = {
2537
- "mat-color": "get-color-from-palette",
2538
- "mat-contrast": "get-contrast-color-from-palette",
2539
- "mat-palette": "define-palette",
2540
- "mat-dark-theme": "define-dark-theme",
2541
- "mat-light-theme": "define-light-theme",
2542
- "mat-typography-level": "define-typography-level",
2543
- "mat-typography-config": "define-typography-config",
2544
- "mat-font-size": "font-size",
2545
- "mat-line-height": "line-height",
2546
- "mat-font-weight": "font-weight",
2547
- "mat-letter-spacing": "letter-spacing",
2548
- "mat-font-family": "font-family"
2549
- };
2550
- exports.materialVariables = {
2551
- "mat-light-theme-background": "light-theme-background-palette",
2552
- "mat-dark-theme-background": "dark-theme-background-palette",
2553
- "mat-light-theme-foreground": "light-theme-foreground-palette",
2554
- "mat-dark-theme-foreground": "dark-theme-foreground-palette"
2555
- };
2556
- [
2557
- "red",
2558
- "pink",
2559
- "indigo",
2560
- "purple",
2561
- "deep-purple",
2562
- "blue",
2563
- "light-blue",
2564
- "cyan",
2565
- "teal",
2566
- "green",
2567
- "light-green",
2568
- "lime",
2569
- "yellow",
2570
- "amber",
2571
- "orange",
2572
- "deep-orange",
2573
- "brown",
2574
- "grey",
2575
- "gray",
2576
- "blue-grey",
2577
- "blue-gray"
2578
- ].forEach((name) => exports.materialVariables[`mat-${name}`] = `${name}-palette`);
2579
- exports.cdkVariables = {
2580
- "cdk-z-index-overlay-container": "overlay-container-z-index",
2581
- "cdk-z-index-overlay": "overlay-z-index",
2582
- "cdk-z-index-overlay-backdrop": "overlay-backdrop-z-index",
2583
- "cdk-overlay-dark-backdrop-background": "overlay-backdrop-color"
2584
- };
2585
- exports.cdkMixins = {
2586
- "cdk-overlay": "overlay",
2587
- "cdk-a11y": "a11y-visually-hidden",
2588
- "cdk-high-contrast": "high-contrast",
2589
- "cdk-text-field-autofill-color": "text-field-autofill-color",
2590
- "cdk-text-field": "text-field"
2591
- };
2592
- exports.removedMaterialVariables = {
2593
- "mat-xsmall": "max-width: 599px",
2594
- "mat-small": "max-width: 959px",
2595
- "mat-toggle-padding": "8px",
2596
- "mat-toggle-size": "20px",
2597
- "mat-linear-out-slow-in-timing-function": "cubic-bezier(0, 0, 0.2, 0.1)",
2598
- "mat-fast-out-slow-in-timing-function": "cubic-bezier(0.4, 0, 0.2, 1)",
2599
- "mat-fast-out-linear-in-timing-function": "cubic-bezier(0.4, 0, 1, 1)",
2600
- "mat-elevation-transition-duration": "280ms",
2601
- "mat-elevation-transition-timing-function": "cubic-bezier(0.4, 0, 0.2, 1)",
2602
- "mat-elevation-color": "#000",
2603
- "mat-elevation-opacity": "1",
2604
- "mat-elevation-prefix": `'mat-elevation-z'`,
2605
- "mat-ripple-color-opacity": "0.1",
2606
- "mat-badge-font-size": "12px",
2607
- "mat-badge-font-weight": "600",
2608
- "mat-badge-default-size": "22px",
2609
- "mat-badge-small-size": "16px",
2610
- "mat-badge-large-size": "28px",
2611
- "mat-button-toggle-standard-height": "48px",
2612
- "mat-button-toggle-standard-minimum-height": "24px",
2613
- "mat-button-toggle-standard-maximum-height": "48px",
2614
- "mat-chip-remove-font-size": "18px",
2615
- "mat-datepicker-selected-today-box-shadow-width": "1px",
2616
- "mat-datepicker-selected-fade-amount": "0.6",
2617
- "mat-datepicker-range-fade-amount": "0.2",
2618
- "mat-datepicker-today-fade-amount": "0.2",
2619
- "mat-calendar-body-font-size": "13px",
2620
- "mat-calendar-weekday-table-font-size": "11px",
2621
- "mat-expansion-panel-header-collapsed-height": "48px",
2622
- "mat-expansion-panel-header-collapsed-minimum-height": "36px",
2623
- "mat-expansion-panel-header-collapsed-maximum-height": "48px",
2624
- "mat-expansion-panel-header-expanded-height": "64px",
2625
- "mat-expansion-panel-header-expanded-minimum-height": "48px",
2626
- "mat-expansion-panel-header-expanded-maximum-height": "64px",
2627
- "mat-expansion-panel-header-transition": "225ms cubic-bezier(0.4, 0, 0.2, 1)",
2628
- "mat-menu-side-padding": "16px",
2629
- "menu-menu-item-height": "48px",
2630
- "menu-menu-icon-margin": "16px",
2631
- "mat-paginator-height": "56px",
2632
- "mat-paginator-minimum-height": "40px",
2633
- "mat-paginator-maximum-height": "56px",
2634
- "mat-stepper-header-height": "72px",
2635
- "mat-stepper-header-minimum-height": "42px",
2636
- "mat-stepper-header-maximum-height": "72px",
2637
- "mat-stepper-label-header-height": "24px",
2638
- "mat-stepper-label-position-bottom-top-gap": "16px",
2639
- "mat-stepper-label-min-width": "50px",
2640
- "mat-vertical-stepper-content-margin": "36px",
2641
- "mat-stepper-side-gap": "24px",
2642
- "mat-stepper-line-width": "1px",
2643
- "mat-stepper-line-gap": "8px",
2644
- "mat-step-sub-label-font-size": "12px",
2645
- "mat-step-header-icon-size": "16px",
2646
- "mat-toolbar-minimum-height": "44px",
2647
- "mat-toolbar-height-desktop": "64px",
2648
- "mat-toolbar-maximum-height-desktop": "64px",
2649
- "mat-toolbar-minimum-height-desktop": "44px",
2650
- "mat-toolbar-height-mobile": "56px",
2651
- "mat-toolbar-maximum-height-mobile": "56px",
2652
- "mat-toolbar-minimum-height-mobile": "44px",
2653
- "mat-tooltip-target-height": "22px",
2654
- "mat-tooltip-font-size": "10px",
2655
- "mat-tooltip-vertical-padding": "6px",
2656
- "mat-tooltip-handset-target-height": "30px",
2657
- "mat-tooltip-handset-font-size": "14px",
2658
- "mat-tooltip-handset-vertical-padding": "8px",
2659
- "mat-tree-node-height": "48px",
2660
- "mat-tree-node-minimum-height": "24px",
2661
- "mat-tree-node-maximum-height": "48px"
2662
- };
2663
- exports.unprefixedRemovedVariables = {
2664
- "z-index-fab": "20",
2665
- "z-index-drawer": "100",
2666
- "ease-in-out-curve-function": "cubic-bezier(0.35, 0, 0.25, 1)",
2667
- "swift-ease-out-duration": "400ms",
2668
- "swift-ease-out-timing-function": "cubic-bezier(0.25, 0.8, 0.25, 1)",
2669
- "swift-ease-out": "all 400ms cubic-bezier(0.25, 0.8, 0.25, 1)",
2670
- "swift-ease-in-duration": "300ms",
2671
- "swift-ease-in-timing-function": "cubic-bezier(0.55, 0, 0.55, 0.2)",
2672
- "swift-ease-in": "all 300ms cubic-bezier(0.55, 0, 0.55, 0.2)",
2673
- "swift-ease-in-out-duration": "500ms",
2674
- "swift-ease-in-out-timing-function": "cubic-bezier(0.35, 0, 0.25, 1)",
2675
- "swift-ease-in-out": "all 500ms cubic-bezier(0.35, 0, 0.25, 1)",
2676
- "swift-linear-duration": "80ms",
2677
- "swift-linear-timing-function": "linear",
2678
- "swift-linear": "all 80ms linear",
2679
- "black-87-opacity": "rgba(black, 0.87)",
2680
- "white-87-opacity": "rgba(white, 0.87)",
2681
- "black-12-opacity": "rgba(black, 0.12)",
2682
- "white-12-opacity": "rgba(white, 0.12)",
2683
- "black-6-opacity": "rgba(black, 0.06)",
2684
- "white-6-opacity": "rgba(white, 0.06)",
2685
- "dark-primary-text": "rgba(black, 0.87)",
2686
- "dark-secondary-text": "rgba(black, 0.54)",
2687
- "dark-disabled-text": "rgba(black, 0.38)",
2688
- "dark-dividers": "rgba(black, 0.12)",
2689
- "dark-focused": "rgba(black, 0.12)",
2690
- "light-primary-text": "white",
2691
- "light-secondary-text": "rgba(white, 0.7)",
2692
- "light-disabled-text": "rgba(white, 0.5)",
2693
- "light-dividers": "rgba(white, 0.12)",
2694
- "light-focused": "rgba(white, 0.12)"
2695
- };
2696
- }
2697
- });
2698
-
2699
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/theming-api-v12/migration.js
2700
- var require_migration = __commonJS({
2701
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/theming-api-v12/migration.js"(exports) {
2702
- "use strict";
2703
- Object.defineProperty(exports, "__esModule", { value: true });
2704
- exports.migrateFileContent = void 0;
2705
- var config_1 = require_config();
2706
- var commentPairs = /* @__PURE__ */ new Map([
2707
- ["/*", "*/"],
2708
- ["//", "\n"]
2709
- ]);
2710
- var commentPlaceholderStart = "__<<ngThemingMigrationEscapedComment";
2711
- var commentPlaceholderEnd = ">>__";
2712
- function migrateFileContent(fileContent, oldMaterialPrefix, oldCdkPrefix, newMaterialImportPath, newCdkImportPath, extraMaterialSymbols = {}, excludedImports) {
2713
- let { content, placeholders } = escapeComments(fileContent);
2714
- const materialResults = detectImports(content, oldMaterialPrefix, excludedImports);
2715
- const cdkResults = detectImports(content, oldCdkPrefix, excludedImports);
2716
- content = migrateCdkSymbols(content, newCdkImportPath, placeholders, cdkResults);
2717
- content = migrateMaterialSymbols(content, newMaterialImportPath, materialResults, placeholders, extraMaterialSymbols);
2718
- content = replaceRemovedVariables(content, config_1.removedMaterialVariables);
2719
- if (materialResults.imports.length) {
2720
- content = replaceRemovedVariables(content, config_1.unprefixedRemovedVariables);
2721
- content = removeStrings(content, materialResults.imports);
2722
- }
2723
- if (cdkResults.imports.length) {
2724
- content = removeStrings(content, cdkResults.imports);
2725
- }
2726
- return restoreComments(content, placeholders);
2727
- }
2728
- exports.migrateFileContent = migrateFileContent;
2729
- function detectImports(content, prefix, excludedImports) {
2730
- if (prefix[prefix.length - 1] !== "/") {
2731
- throw Error(`Prefix "${prefix}" has to end in a slash.`);
2732
- }
2733
- const namespaces = [];
2734
- const imports = [];
2735
- const pattern = new RegExp(`@(import|use) +['"]~?${escapeRegExp(prefix)}.*['"].*;?
2736
- `, "g");
2737
- let match = null;
2738
- while (match = pattern.exec(content)) {
2739
- const [fullImport, type] = match;
2740
- if (excludedImports == null ? void 0 : excludedImports.test(fullImport)) {
2741
- continue;
2742
- }
2743
- if (type === "use") {
2744
- const namespace = extractNamespaceFromUseStatement(fullImport);
2745
- if (namespaces.indexOf(namespace) === -1) {
2746
- namespaces.push(namespace);
2747
- }
2748
- }
2749
- imports.push(fullImport);
2750
- }
2751
- return { imports, namespaces };
2752
- }
2753
- function migrateMaterialSymbols(content, importPath, detectedImports, commentPlaceholders, extraMaterialSymbols = {}) {
2754
- const initialContent = content;
2755
- const namespace = "mat";
2756
- const mixinsToUpdate = __spreadValues(__spreadValues({}, config_1.materialMixins), extraMaterialSymbols.mixins);
2757
- content = renameSymbols(content, mixinsToUpdate, detectedImports.namespaces, mixinKeyFormatter, getMixinValueFormatter(namespace));
2758
- const functionsToUpdate = __spreadValues(__spreadValues({}, config_1.materialFunctions), extraMaterialSymbols.functions);
2759
- content = renameSymbols(content, functionsToUpdate, detectedImports.namespaces, functionKeyFormatter, getFunctionValueFormatter(namespace));
2760
- const variablesToUpdate = __spreadValues(__spreadValues({}, config_1.materialVariables), extraMaterialSymbols.variables);
2761
- content = renameSymbols(content, variablesToUpdate, detectedImports.namespaces, variableKeyFormatter, getVariableValueFormatter(namespace));
2762
- if (content !== initialContent) {
2763
- content = insertUseStatement(content, importPath, namespace, commentPlaceholders);
2764
- }
2765
- return content;
2766
- }
2767
- function migrateCdkSymbols(content, importPath, commentPlaceholders, detectedImports) {
2768
- const initialContent = content;
2769
- const namespace = "cdk";
2770
- content = renameSymbols(content, config_1.cdkMixins, detectedImports.namespaces, mixinKeyFormatter, getMixinValueFormatter(namespace));
2771
- content = renameSymbols(content, config_1.cdkVariables, detectedImports.namespaces, variableKeyFormatter, getVariableValueFormatter(namespace));
2772
- if (content !== initialContent) {
2773
- content = insertUseStatement(content, importPath, namespace, commentPlaceholders);
2774
- }
2775
- return content;
2776
- }
2777
- function renameSymbols(content, mapping, namespaces, getKeyPattern, formatValue) {
2778
- [...namespaces.slice(), null].forEach((namespace) => {
2779
- Object.keys(mapping).forEach((key) => {
2780
- const pattern = getKeyPattern(namespace, key);
2781
- if (pattern.flags.indexOf("g") === -1) {
2782
- throw Error("Replacement pattern must be global.");
2783
- }
2784
- content = content.replace(pattern, formatValue(mapping[key]));
2785
- });
2786
- });
2787
- return content;
2788
- }
2789
- function insertUseStatement(content, importPath, namespace, commentPlaceholders) {
2790
- if (new RegExp(`@use +['"]${importPath}['"]`, "g").test(content)) {
2791
- return content;
2792
- }
2793
- let newImportIndex = 0;
2794
- if (content.trim().startsWith(commentPlaceholderStart)) {
2795
- const commentStartIndex = content.indexOf(commentPlaceholderStart);
2796
- newImportIndex = content.indexOf(commentPlaceholderEnd, commentStartIndex + 1) + commentPlaceholderEnd.length;
2797
- if (!commentPlaceholders[content.slice(commentStartIndex, newImportIndex)].endsWith("\n")) {
2798
- newImportIndex = Math.max(newImportIndex, content.indexOf("\n", newImportIndex) + 1);
2799
- }
2800
- }
2801
- return content.slice(0, newImportIndex) + `@use '${importPath}' as ${namespace};
2802
- ` + content.slice(newImportIndex);
2803
- }
2804
- function mixinKeyFormatter(namespace, name) {
2805
- return new RegExp(`@include +${escapeRegExp((namespace ? namespace + "." : "") + name)}`, "g");
2806
- }
2807
- function getMixinValueFormatter(namespace) {
2808
- return (name) => `@include ${namespace}.${name}`;
2809
- }
2810
- function functionKeyFormatter(namespace, name) {
2811
- const functionName = escapeRegExp(`${namespace ? namespace + "." : ""}${name}(`);
2812
- return new RegExp(`(?<![-_a-zA-Z0-9])${functionName}`, "g");
2813
- }
2814
- function getFunctionValueFormatter(namespace) {
2815
- return (name) => `${namespace}.${name}(`;
2816
- }
2817
- function variableKeyFormatter(namespace, name) {
2818
- const variableName = escapeRegExp(`${namespace ? namespace + "." : ""}$${name}`);
2819
- return new RegExp(`${variableName}(?![-_a-zA-Z0-9])`, "g");
2820
- }
2821
- function getVariableValueFormatter(namespace) {
2822
- return (name) => `${namespace}.$${name}`;
2823
- }
2824
- function escapeRegExp(str) {
2825
- return str.replace(/([.*+?^=!:${}()|[\]\/\\])/g, "\\$1");
2826
- }
2827
- function removeStrings(content, toRemove) {
2828
- return toRemove.reduce((accumulator, current) => accumulator.replace(current, ""), content).replace(/^\s+/, "");
2829
- }
2830
- function extractNamespaceFromUseStatement(fullImport) {
2831
- const closeQuoteIndex = Math.max(fullImport.lastIndexOf(`"`), fullImport.lastIndexOf(`'`));
2832
- if (closeQuoteIndex > -1) {
2833
- const asExpression = "as ";
2834
- const asIndex = fullImport.indexOf(asExpression, closeQuoteIndex);
2835
- if (asIndex > -1) {
2836
- return fullImport.slice(asIndex + asExpression.length).split(";")[0].trim();
2837
- }
2838
- const lastSlashIndex = fullImport.lastIndexOf("/", closeQuoteIndex);
2839
- if (lastSlashIndex > -1) {
2840
- const fileName = fullImport.slice(lastSlashIndex + 1, closeQuoteIndex).replace(/^_|(\.import)?\.scss$|\.import$/g, "");
2841
- if (fileName === "index") {
2842
- const nextSlashIndex = fullImport.lastIndexOf("/", lastSlashIndex - 1);
2843
- if (nextSlashIndex > -1) {
2844
- return fullImport.slice(nextSlashIndex + 1, lastSlashIndex);
2845
- }
2846
- } else {
2847
- return fileName;
2848
- }
2849
- }
2850
- }
2851
- throw Error(`Could not extract namespace from import "${fullImport}".`);
2852
- }
2853
- function replaceRemovedVariables(content, variables) {
2854
- Object.keys(variables).forEach((variableName) => {
2855
- const regex = new RegExp(`\\$${escapeRegExp(variableName)}(?!\\s+:|[-_a-zA-Z0-9:])`, "g");
2856
- content = content.replace(regex, variables[variableName]);
2857
- });
2858
- return content;
2859
- }
2860
- function escapeComments(content) {
2861
- const placeholders = {};
2862
- let commentCounter = 0;
2863
- let [openIndex, closeIndex] = findComment(content);
2864
- while (openIndex > -1 && closeIndex > -1) {
2865
- const placeholder = commentPlaceholderStart + commentCounter++ + commentPlaceholderEnd;
2866
- placeholders[placeholder] = content.slice(openIndex, closeIndex);
2867
- content = content.slice(0, openIndex) + placeholder + content.slice(closeIndex);
2868
- [openIndex, closeIndex] = findComment(content);
2869
- }
2870
- return { content, placeholders };
2871
- }
2872
- function findComment(content) {
2873
- content += "\n";
2874
- for (const [open, close] of commentPairs.entries()) {
2875
- const openIndex = content.indexOf(open);
2876
- if (openIndex > -1) {
2877
- const closeIndex = content.indexOf(close, openIndex + 1);
2878
- return closeIndex > -1 ? [openIndex, closeIndex + close.length] : [-1, -1];
2879
- }
2880
- }
2881
- return [-1, -1];
2882
- }
2883
- function restoreComments(content, placeholders) {
2884
- Object.keys(placeholders).forEach((key) => content = content.replace(key, placeholders[key]));
2885
- return content;
2886
- }
2887
- }
2888
- });
2889
-
2890
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/theming-api-v12/theming-api-migration.js
2891
- var require_theming_api_migration = __commonJS({
2892
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/theming-api-v12/theming-api-migration.js"(exports) {
2893
- "use strict";
2894
- Object.defineProperty(exports, "__esModule", { value: true });
2895
- exports.ThemingApiMigration = void 0;
2896
- var core_1 = require("@angular-devkit/core");
2897
- var schematics_1 = require("@angular/cdk/schematics");
2898
- var migration_1 = require_migration();
2899
- var ThemingApiMigration2 = class extends schematics_1.DevkitMigration {
2900
- constructor() {
2901
- super(...arguments);
2902
- this.enabled = this.targetVersion === schematics_1.TargetVersion.V12;
2903
- }
2904
- visitStylesheet(stylesheet) {
2905
- if ((0, core_1.extname)(stylesheet.filePath) === ".scss") {
2906
- const content = stylesheet.content;
2907
- const migratedContent = content ? (0, migration_1.migrateFileContent)(content, "@angular/material/", "@angular/cdk/", "@angular/material", "@angular/cdk", void 0, /material\/prebuilt-themes|cdk\/.*-prebuilt/) : content;
2908
- if (migratedContent && migratedContent !== content) {
2909
- this.fileSystem.edit(stylesheet.filePath).remove(0, stylesheet.content.length).insertLeft(0, migratedContent);
2910
- ThemingApiMigration2.migratedFileCount++;
2911
- }
2912
- }
2913
- }
2914
- static globalPostMigration(_tree, _targetVersion, context) {
2915
- const count = ThemingApiMigration2.migratedFileCount;
2916
- if (count > 0) {
2917
- context.logger.info(`Migrated ${count === 1 ? `1 file` : `${count} files`} to the new Angular Material theming API.`);
2918
- ThemingApiMigration2.migratedFileCount = 0;
2919
- }
2920
- }
2921
- };
2922
- exports.ThemingApiMigration = ThemingApiMigration2;
2923
- ThemingApiMigration2.migratedFileCount = 0;
2924
- }
2925
- });
2926
-
2927
503
  // node_modules/picocolors/picocolors.js
2928
504
  var require_picocolors = __commonJS({
2929
505
  "node_modules/picocolors/picocolors.js"(exports, module2) {
@@ -6227,6 +3803,7 @@ var require_map_generator = __commonJS({
6227
3803
  this.root = root;
6228
3804
  this.opts = opts;
6229
3805
  this.css = cssString;
3806
+ this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute;
6230
3807
  }
6231
3808
  isMap() {
6232
3809
  if (typeof this.opts.map !== "undefined") {
@@ -6301,7 +3878,8 @@ var require_map_generator = __commonJS({
6301
3878
  let from = node.source.input.from;
6302
3879
  if (from && !already[from]) {
6303
3880
  already[from] = true;
6304
- this.map.setSourceContent(this.toUrl(this.path(from)), node.source.input.css);
3881
+ let fromUrl = this.usesFileUrls ? this.toFileUrl(from) : this.toUrl(this.path(from));
3882
+ this.map.setSourceContent(fromUrl, node.source.input.css);
6305
3883
  }
6306
3884
  }
6307
3885
  });
@@ -6417,15 +3995,18 @@ var require_map_generator = __commonJS({
6417
3995
  }
6418
3996
  return encodeURI(path).replace(/[#?]/g, encodeURIComponent);
6419
3997
  }
3998
+ toFileUrl(path) {
3999
+ if (pathToFileURL) {
4000
+ return pathToFileURL(path).toString();
4001
+ } else {
4002
+ throw new Error("`map.absolute` option is not available in this PostCSS build");
4003
+ }
4004
+ }
6420
4005
  sourcePath(node) {
6421
4006
  if (this.mapOpts.from) {
6422
4007
  return this.toUrl(this.mapOpts.from);
6423
- } else if (this.mapOpts.absolute) {
6424
- if (pathToFileURL) {
6425
- return pathToFileURL(node.source.input.from).toString();
6426
- } else {
6427
- throw new Error("`map.absolute` option is not available in this PostCSS build");
6428
- }
4008
+ } else if (this.usesFileUrls) {
4009
+ return this.toFileUrl(node.source.input.from);
6429
4010
  } else {
6430
4011
  return this.toUrl(this.path(node.source.input.from));
6431
4012
  }
@@ -6533,6 +4114,7 @@ var require_container = __commonJS({
6533
4114
  var parse;
6534
4115
  var Rule;
6535
4116
  var AtRule;
4117
+ var Root;
6536
4118
  function cleanSource(nodes) {
6537
4119
  return nodes.map((i) => {
6538
4120
  if (i.nodes)
@@ -6687,15 +4269,16 @@ var require_container = __commonJS({
6687
4269
  }
6688
4270
  }
6689
4271
  insertBefore(exist, add) {
6690
- exist = this.index(exist);
4272
+ let existIndex = this.index(exist);
6691
4273
  let type = exist === 0 ? "prepend" : false;
6692
- let nodes = this.normalize(add, this.proxyOf.nodes[exist], type).reverse();
4274
+ let nodes = this.normalize(add, this.proxyOf.nodes[existIndex], type).reverse();
4275
+ existIndex = this.index(exist);
6693
4276
  for (let node of nodes)
6694
- this.proxyOf.nodes.splice(exist, 0, node);
4277
+ this.proxyOf.nodes.splice(existIndex, 0, node);
6695
4278
  let index;
6696
4279
  for (let id in this.indexes) {
6697
4280
  index = this.indexes[id];
6698
- if (exist <= index) {
4281
+ if (existIndex <= index) {
6699
4282
  this.indexes[id] = index + nodes.length;
6700
4283
  }
6701
4284
  }
@@ -6703,14 +4286,15 @@ var require_container = __commonJS({
6703
4286
  return this;
6704
4287
  }
6705
4288
  insertAfter(exist, add) {
6706
- exist = this.index(exist);
6707
- let nodes = this.normalize(add, this.proxyOf.nodes[exist]).reverse();
4289
+ let existIndex = this.index(exist);
4290
+ let nodes = this.normalize(add, this.proxyOf.nodes[existIndex]).reverse();
4291
+ existIndex = this.index(exist);
6708
4292
  for (let node of nodes)
6709
- this.proxyOf.nodes.splice(exist + 1, 0, node);
4293
+ this.proxyOf.nodes.splice(existIndex + 1, 0, node);
6710
4294
  let index;
6711
4295
  for (let id in this.indexes) {
6712
4296
  index = this.indexes[id];
6713
- if (exist < index) {
4297
+ if (existIndex < index) {
6714
4298
  this.indexes[id] = index + nodes.length;
6715
4299
  }
6716
4300
  }
@@ -6889,6 +4473,9 @@ var require_container = __commonJS({
6889
4473
  Container.registerAtRule = (dependant) => {
6890
4474
  AtRule = dependant;
6891
4475
  };
4476
+ Container.registerRoot = (dependant) => {
4477
+ Root = dependant;
4478
+ };
6892
4479
  module2.exports = Container;
6893
4480
  Container.default = Container;
6894
4481
  Container.rebuild = (node) => {
@@ -6900,6 +4487,8 @@ var require_container = __commonJS({
6900
4487
  Object.setPrototypeOf(node, Declaration.prototype);
6901
4488
  } else if (node.type === "comment") {
6902
4489
  Object.setPrototypeOf(node, Comment.prototype);
4490
+ } else if (node.type === "root") {
4491
+ Object.setPrototypeOf(node, Root.prototype);
6903
4492
  }
6904
4493
  node[my] = true;
6905
4494
  if (node.nodes) {
@@ -7111,6 +4700,7 @@ var require_root = __commonJS({
7111
4700
  };
7112
4701
  module2.exports = Root;
7113
4702
  Root.default = Root;
4703
+ Container.registerRoot(Root);
7114
4704
  }
7115
4705
  });
7116
4706
 
@@ -7124,19 +4714,21 @@ var require_list = __commonJS({
7124
4714
  let current = "";
7125
4715
  let split = false;
7126
4716
  let func = 0;
7127
- let quote = false;
4717
+ let inQuote = false;
4718
+ let prevQuote = "";
7128
4719
  let escape = false;
7129
4720
  for (let letter of string) {
7130
4721
  if (escape) {
7131
4722
  escape = false;
7132
4723
  } else if (letter === "\\") {
7133
4724
  escape = true;
7134
- } else if (quote) {
7135
- if (letter === quote) {
7136
- quote = false;
4725
+ } else if (inQuote) {
4726
+ if (letter === prevQuote) {
4727
+ inQuote = false;
7137
4728
  }
7138
4729
  } else if (letter === '"' || letter === "'") {
7139
- quote = letter;
4730
+ inQuote = true;
4731
+ prevQuote = letter;
7140
4732
  } else if (letter === "(") {
7141
4733
  func += 1;
7142
4734
  } else if (letter === ")") {
@@ -8355,7 +5947,7 @@ var require_processor = __commonJS({
8355
5947
  var Root = require_root();
8356
5948
  var Processor = class {
8357
5949
  constructor(plugins = []) {
8358
- this.version = "8.4.14";
5950
+ this.version = "8.4.18";
8359
5951
  this.plugins = this.normalize(plugins);
8360
5952
  }
8361
5953
  use(plugin) {
@@ -9248,7 +6840,12 @@ var require_legacy_components_v15 = __commonJS({
9248
6840
  RootExit: (root) => this._handleRootNode(root, stylesheet.filePath, namespace)
9249
6841
  }
9250
6842
  ]);
9251
- processor.process(stylesheet.content, { syntax: scss }).sync();
6843
+ try {
6844
+ processor.process(stylesheet.content, { syntax: scss }).sync();
6845
+ } catch (e) {
6846
+ this.logger.error(`${e}`);
6847
+ this.logger.warn(`Failed to process stylesheet: ${stylesheet.filePath} (see error above).`);
6848
+ }
9252
6849
  }
9253
6850
  _parseSassNamespace(node) {
9254
6851
  if (node.params.startsWith("@angular/material", 1)) {
@@ -9514,25 +7111,7 @@ var require_class_names = __commonJS({
9514
7111
  "use strict";
9515
7112
  Object.defineProperty(exports, "__esModule", { value: true });
9516
7113
  exports.classNames = void 0;
9517
- var schematics_1 = require("@angular/cdk/schematics");
9518
- exports.classNames = {
9519
- [schematics_1.TargetVersion.V10]: [
9520
- {
9521
- pr: "https://github.com/angular/components/pull/19289",
9522
- changes: [{ replace: "MatButtonToggleGroupMultiple", replaceWith: "MatButtonToggleGroup" }]
9523
- }
9524
- ],
9525
- [schematics_1.TargetVersion.V6]: [
9526
- {
9527
- pr: "https://github.com/angular/components/pull/10291",
9528
- changes: [
9529
- { replace: "FloatPlaceholderType", replaceWith: "FloatLabelType" },
9530
- { replace: "MAT_PLACEHOLDER_GLOBAL_OPTIONS", replaceWith: "MAT_LABEL_GLOBAL_OPTIONS" },
9531
- { replace: "PlaceholderOptions", replaceWith: "LabelOptions" }
9532
- ]
9533
- }
9534
- ]
9535
- };
7114
+ exports.classNames = {};
9536
7115
  }
9537
7116
  });
9538
7117
 
@@ -9542,154 +7121,7 @@ var require_constructor_checks = __commonJS({
9542
7121
  "use strict";
9543
7122
  Object.defineProperty(exports, "__esModule", { value: true });
9544
7123
  exports.constructorChecks = void 0;
9545
- var schematics_1 = require("@angular/cdk/schematics");
9546
- exports.constructorChecks = {
9547
- [schematics_1.TargetVersion.V14]: [
9548
- {
9549
- pr: "https://github.com/angular/components/pull/23327",
9550
- changes: ["MatSelectionList", "MatSelectionListChange"]
9551
- }
9552
- ],
9553
- [schematics_1.TargetVersion.V13]: [
9554
- {
9555
- pr: "https://github.com/angular/components/pull/23389",
9556
- changes: ["MatFormField"]
9557
- },
9558
- {
9559
- pr: "https://github.com/angular/components/pull/23573",
9560
- changes: ["MatDatepicker", "MatDateRangePicker"]
9561
- },
9562
- {
9563
- pr: "https://github.com/angular/components/pull/23328",
9564
- changes: ["MatStepper"]
9565
- }
9566
- ],
9567
- [schematics_1.TargetVersion.V12]: [
9568
- {
9569
- pr: "https://github.com/angular/components/pull/21897",
9570
- changes: ["MatTooltip"]
9571
- },
9572
- {
9573
- pr: "https://github.com/angular/components/pull/21952",
9574
- changes: ["MatDatepickerContent"]
9575
- },
9576
- {
9577
- pr: "https://github.com/angular/components/issues/21900",
9578
- changes: ["MatVerticalStepper", "MatStep"]
9579
- }
9580
- ],
9581
- [schematics_1.TargetVersion.V11]: [
9582
- {
9583
- pr: "https://github.com/angular/components/issues/20463",
9584
- changes: ["MatChip", "MatChipRemove"]
9585
- },
9586
- {
9587
- pr: "https://github.com/angular/components/pull/20449",
9588
- changes: ["MatDatepickerContent"]
9589
- },
9590
- {
9591
- pr: "https://github.com/angular/components/pull/20545",
9592
- changes: ["MatBottomSheet", "MatBottomSheetRef"]
9593
- },
9594
- {
9595
- pr: "https://github.com/angular/components/issues/20535",
9596
- changes: ["MatCheckbox"]
9597
- },
9598
- {
9599
- pr: "https://github.com/angular/components/pull/20499",
9600
- changes: ["MatPaginatedTabHeader", "MatTabBodyPortal", "MatTabNav", "MatTab"]
9601
- },
9602
- {
9603
- pr: "https://github.com/angular/components/pull/20479",
9604
- changes: ["MatCommonModule"]
9605
- }
9606
- ],
9607
- [schematics_1.TargetVersion.V10]: [
9608
- {
9609
- pr: "https://github.com/angular/components/pull/19307",
9610
- changes: ["MatSlideToggle"]
9611
- },
9612
- {
9613
- pr: "https://github.com/angular/components/pull/19379",
9614
- changes: ["MatSlider"]
9615
- },
9616
- {
9617
- pr: "https://github.com/angular/components/pull/19372",
9618
- changes: ["MatSortHeader"]
9619
- },
9620
- {
9621
- pr: "https://github.com/angular/components/pull/19324",
9622
- changes: ["MatAutocompleteTrigger"]
9623
- },
9624
- {
9625
- pr: "https://github.com/angular/components/pull/19363",
9626
- changes: ["MatTooltip"]
9627
- },
9628
- {
9629
- pr: "https://github.com/angular/components/pull/19323",
9630
- changes: ["MatIcon", "MatIconRegistry"]
9631
- }
9632
- ],
9633
- [schematics_1.TargetVersion.V9]: [
9634
- {
9635
- pr: "https://github.com/angular/components/pull/17230",
9636
- changes: ["MatSelect"]
9637
- },
9638
- {
9639
- pr: "https://github.com/angular/components/pull/17333",
9640
- changes: ["MatDialogRef"]
9641
- }
9642
- ],
9643
- [schematics_1.TargetVersion.V8]: [
9644
- {
9645
- pr: "https://github.com/angular/components/pull/15647",
9646
- changes: ["MatFormField", "MatTabLink", "MatVerticalStepper"]
9647
- },
9648
- { pr: "https://github.com/angular/components/pull/15757", changes: ["MatBadge"] },
9649
- { pr: "https://github.com/angular/components/issues/15734", changes: ["MatButton", "MatAnchor"] },
9650
- {
9651
- pr: "https://github.com/angular/components/pull/15761",
9652
- changes: ["MatSpinner", "MatProgressSpinner"]
9653
- },
9654
- { pr: "https://github.com/angular/components/pull/15723", changes: ["MatList", "MatListItem"] },
9655
- { pr: "https://github.com/angular/components/pull/15722", changes: ["MatExpansionPanel"] },
9656
- {
9657
- pr: "https://github.com/angular/components/pull/15737",
9658
- changes: ["MatTabHeader", "MatTabBody"]
9659
- },
9660
- { pr: "https://github.com/angular/components/pull/15806", changes: ["MatSlideToggle"] },
9661
- { pr: "https://github.com/angular/components/pull/15773", changes: ["MatDrawerContainer"] }
9662
- ],
9663
- [schematics_1.TargetVersion.V7]: [
9664
- {
9665
- pr: "https://github.com/angular/components/pull/11706",
9666
- changes: ["MatDrawerContent"]
9667
- },
9668
- { pr: "https://github.com/angular/components/pull/11706", changes: ["MatSidenavContent"] }
9669
- ],
9670
- [schematics_1.TargetVersion.V6]: [
9671
- {
9672
- pr: "https://github.com/angular/components/pull/9190",
9673
- changes: ["NativeDateAdapter"]
9674
- },
9675
- {
9676
- pr: "https://github.com/angular/components/pull/10319",
9677
- changes: ["MatAutocomplete"]
9678
- },
9679
- {
9680
- pr: "https://github.com/angular/components/pull/10344",
9681
- changes: ["MatTooltip"]
9682
- },
9683
- {
9684
- pr: "https://github.com/angular/components/pull/10389",
9685
- changes: ["MatIconRegistry"]
9686
- },
9687
- {
9688
- pr: "https://github.com/angular/components/pull/9775",
9689
- changes: ["MatCalendar"]
9690
- }
9691
- ]
9692
- };
7124
+ exports.constructorChecks = {};
9693
7125
  }
9694
7126
  });
9695
7127
 
@@ -9699,47 +7131,7 @@ var require_css_selectors = __commonJS({
9699
7131
  "use strict";
9700
7132
  Object.defineProperty(exports, "__esModule", { value: true });
9701
7133
  exports.cssSelectors = void 0;
9702
- var schematics_1 = require("@angular/cdk/schematics");
9703
- exports.cssSelectors = {
9704
- [schematics_1.TargetVersion.V14]: [
9705
- {
9706
- pr: "https://github.com/angular/components/pull/23327",
9707
- changes: [{ replace: ".mat-list-item-avatar", replaceWith: ".mat-list-item-with-avatar" }]
9708
- }
9709
- ],
9710
- [schematics_1.TargetVersion.V6]: [
9711
- {
9712
- pr: "https://github.com/angular/components/pull/10296",
9713
- changes: [
9714
- { replace: ".mat-form-field-placeholder", replaceWith: ".mat-form-field-label" },
9715
- { replace: ".mat-input-container", replaceWith: ".mat-form-field" },
9716
- { replace: ".mat-input-flex", replaceWith: ".mat-form-field-flex" },
9717
- { replace: ".mat-input-hint-spacer", replaceWith: ".mat-form-field-hint-spacer" },
9718
- { replace: ".mat-input-hint-wrapper", replaceWith: ".mat-form-field-hint-wrapper" },
9719
- { replace: ".mat-input-infix", replaceWith: ".mat-form-field-infix" },
9720
- { replace: ".mat-input-invalid", replaceWith: ".mat-form-field-invalid" },
9721
- { replace: ".mat-input-placeholder", replaceWith: ".mat-form-field-label" },
9722
- { replace: ".mat-input-placeholder-wrapper", replaceWith: ".mat-form-field-label-wrapper" },
9723
- { replace: ".mat-input-prefix", replaceWith: ".mat-form-field-prefix" },
9724
- { replace: ".mat-input-ripple", replaceWith: ".mat-form-field-ripple" },
9725
- { replace: ".mat-input-subscript-wrapper", replaceWith: ".mat-form-field-subscript-wrapper" },
9726
- { replace: ".mat-input-suffix", replaceWith: ".mat-form-field-suffix" },
9727
- { replace: ".mat-input-underline", replaceWith: ".mat-form-field-underline" },
9728
- { replace: ".mat-input-wrapper", replaceWith: ".mat-form-field-wrapper" }
9729
- ]
9730
- },
9731
- {
9732
- pr: "https://github.com/angular/components/pull/10430",
9733
- changes: [
9734
- {
9735
- replace: "$mat-font-family",
9736
- replaceWith: "Roboto, 'Helvetica Neue', sans-serif",
9737
- replaceIn: { stylesheet: true }
9738
- }
9739
- ]
9740
- }
9741
- ]
9742
- };
7134
+ exports.cssSelectors = {};
9743
7135
  }
9744
7136
  });
9745
7137
 
@@ -9749,15 +7141,7 @@ var require_element_selectors = __commonJS({
9749
7141
  "use strict";
9750
7142
  Object.defineProperty(exports, "__esModule", { value: true });
9751
7143
  exports.elementSelectors = void 0;
9752
- var schematics_1 = require("@angular/cdk/schematics");
9753
- exports.elementSelectors = {
9754
- [schematics_1.TargetVersion.V6]: [
9755
- {
9756
- pr: "https://github.com/angular/components/pull/10297",
9757
- changes: [{ replace: "mat-input-container", replaceWith: "mat-form-field" }]
9758
- }
9759
- ]
9760
- };
7144
+ exports.elementSelectors = {};
9761
7145
  }
9762
7146
  });
9763
7147
 
@@ -9767,79 +7151,7 @@ var require_input_names = __commonJS({
9767
7151
  "use strict";
9768
7152
  Object.defineProperty(exports, "__esModule", { value: true });
9769
7153
  exports.inputNames = void 0;
9770
- var schematics_1 = require("@angular/cdk/schematics");
9771
- exports.inputNames = {
9772
- [schematics_1.TargetVersion.V6]: [
9773
- {
9774
- pr: "https://github.com/angular/components/pull/10218",
9775
- changes: [
9776
- {
9777
- replace: "align",
9778
- replaceWith: "labelPosition",
9779
- limitedTo: { elements: ["mat-radio-group", "mat-radio-button"] }
9780
- }
9781
- ]
9782
- },
9783
- {
9784
- pr: "https://github.com/angular/components/pull/10279",
9785
- changes: [
9786
- {
9787
- replace: "align",
9788
- replaceWith: "position",
9789
- limitedTo: { elements: ["mat-drawer", "mat-sidenav"] }
9790
- }
9791
- ]
9792
- },
9793
- {
9794
- pr: "https://github.com/angular/components/pull/10294",
9795
- changes: [
9796
- { replace: "dividerColor", replaceWith: "color", limitedTo: { elements: ["mat-form-field"] } },
9797
- {
9798
- replace: "floatPlaceholder",
9799
- replaceWith: "floatLabel",
9800
- limitedTo: { elements: ["mat-form-field"] }
9801
- }
9802
- ]
9803
- },
9804
- {
9805
- pr: "https://github.com/angular/components/pull/10309",
9806
- changes: [
9807
- {
9808
- replace: "mat-dynamic-height",
9809
- replaceWith: "dynamicHeight",
9810
- limitedTo: { elements: ["mat-tab-group"] }
9811
- }
9812
- ]
9813
- },
9814
- {
9815
- pr: "https://github.com/angular/components/pull/10342",
9816
- changes: [
9817
- { replace: "align", replaceWith: "labelPosition", limitedTo: { elements: ["mat-checkbox"] } }
9818
- ]
9819
- },
9820
- {
9821
- pr: "https://github.com/angular/components/pull/10344",
9822
- changes: [
9823
- {
9824
- replace: "tooltip-position",
9825
- replaceWith: "matTooltipPosition",
9826
- limitedTo: { attributes: ["matTooltip"] }
9827
- }
9828
- ]
9829
- },
9830
- {
9831
- pr: "https://github.com/angular/components/pull/10373",
9832
- changes: [
9833
- { replace: "thumb-label", replaceWith: "thumbLabel", limitedTo: { elements: ["mat-slider"] } },
9834
- {
9835
- replace: "tick-interval",
9836
- replaceWith: "tickInterval",
9837
- limitedTo: { elements: ["mat-slider"] }
9838
- }
9839
- ]
9840
- }
9841
- ]
9842
- };
7154
+ exports.inputNames = {};
9843
7155
  }
9844
7156
  });
9845
7157
 
@@ -9849,21 +7161,7 @@ var require_method_call_checks = __commonJS({
9849
7161
  "use strict";
9850
7162
  Object.defineProperty(exports, "__esModule", { value: true });
9851
7163
  exports.methodCallChecks = void 0;
9852
- var schematics_1 = require("@angular/cdk/schematics");
9853
- exports.methodCallChecks = {
9854
- [schematics_1.TargetVersion.V11]: [
9855
- {
9856
- pr: "https://github.com/angular/components/pull/20499",
9857
- changes: [
9858
- {
9859
- className: "MatTabNav",
9860
- method: "updateActiveLink",
9861
- invalidArgCounts: [{ count: 1, message: 'The "_element" parameter has been removed' }]
9862
- }
9863
- ]
9864
- }
9865
- ]
9866
- };
7164
+ exports.methodCallChecks = {};
9867
7165
  }
9868
7166
  });
9869
7167
 
@@ -9873,96 +7171,7 @@ var require_output_names = __commonJS({
9873
7171
  "use strict";
9874
7172
  Object.defineProperty(exports, "__esModule", { value: true });
9875
7173
  exports.outputNames = void 0;
9876
- var schematics_1 = require("@angular/cdk/schematics");
9877
- exports.outputNames = {
9878
- [schematics_1.TargetVersion.V6]: [
9879
- {
9880
- pr: "https://github.com/angular/components/pull/10163",
9881
- changes: [
9882
- {
9883
- replace: "change",
9884
- replaceWith: "selectionChange",
9885
- limitedTo: {
9886
- elements: ["mat-select"]
9887
- }
9888
- },
9889
- {
9890
- replace: "onClose",
9891
- replaceWith: "closed",
9892
- limitedTo: {
9893
- elements: ["mat-select"]
9894
- }
9895
- },
9896
- {
9897
- replace: "onOpen",
9898
- replaceWith: "opened",
9899
- limitedTo: {
9900
- elements: ["mat-select"]
9901
- }
9902
- }
9903
- ]
9904
- },
9905
- {
9906
- pr: "https://github.com/angular/components/pull/10279",
9907
- changes: [
9908
- {
9909
- replace: "align-changed",
9910
- replaceWith: "positionChanged",
9911
- limitedTo: {
9912
- elements: ["mat-drawer", "mat-sidenav"]
9913
- }
9914
- },
9915
- {
9916
- replace: "close",
9917
- replaceWith: "closed",
9918
- limitedTo: {
9919
- elements: ["mat-drawer", "mat-sidenav"]
9920
- }
9921
- },
9922
- {
9923
- replace: "open",
9924
- replaceWith: "opened",
9925
- limitedTo: {
9926
- elements: ["mat-drawer", "mat-sidenav"]
9927
- }
9928
- }
9929
- ]
9930
- },
9931
- {
9932
- pr: "https://github.com/angular/components/pull/10309",
9933
- changes: [
9934
- {
9935
- replace: "selectChange",
9936
- replaceWith: "selectedTabChange",
9937
- limitedTo: {
9938
- elements: ["mat-tab-group"]
9939
- }
9940
- }
9941
- ]
9942
- },
9943
- {
9944
- pr: "https://github.com/angular/components/pull/10311",
9945
- changes: [
9946
- {
9947
- replace: "remove",
9948
- replaceWith: "removed",
9949
- limitedTo: {
9950
- attributes: ["mat-chip", "mat-basic-chip"],
9951
- elements: ["mat-chip", "mat-basic-chip"]
9952
- }
9953
- },
9954
- {
9955
- replace: "destroy",
9956
- replaceWith: "destroyed",
9957
- limitedTo: {
9958
- attributes: ["mat-chip", "mat-basic-chip"],
9959
- elements: ["mat-chip", "mat-basic-chip"]
9960
- }
9961
- }
9962
- ]
9963
- }
9964
- ]
9965
- };
7174
+ exports.outputNames = {};
9966
7175
  }
9967
7176
  });
9968
7177
 
@@ -9972,180 +7181,7 @@ var require_property_names = __commonJS({
9972
7181
  "use strict";
9973
7182
  Object.defineProperty(exports, "__esModule", { value: true });
9974
7183
  exports.propertyNames = void 0;
9975
- var schematics_1 = require("@angular/cdk/schematics");
9976
- exports.propertyNames = {
9977
- [schematics_1.TargetVersion.V11]: [
9978
- {
9979
- pr: "https://github.com/angular/components/pull/20449",
9980
- changes: [
9981
- {
9982
- replace: "getPopupConnectionElementRef",
9983
- replaceWith: "getConnectedOverlayOrigin",
9984
- limitedTo: { classes: ["MatDatepickerInput"] }
9985
- }
9986
- ]
9987
- }
9988
- ],
9989
- [schematics_1.TargetVersion.V9]: [
9990
- {
9991
- pr: "https://github.com/angular/components/pull/17333",
9992
- changes: [
9993
- {
9994
- replace: "afterOpen",
9995
- replaceWith: "afterOpened",
9996
- limitedTo: { classes: ["MatDialogRef"] }
9997
- },
9998
- {
9999
- replace: "beforeClose",
10000
- replaceWith: "beforeClosed",
10001
- limitedTo: { classes: ["MatDialogRef"] }
10002
- },
10003
- {
10004
- replace: "afterOpen",
10005
- replaceWith: "afterOpened",
10006
- limitedTo: { classes: ["MatDialog"] }
10007
- }
10008
- ]
10009
- }
10010
- ],
10011
- [schematics_1.TargetVersion.V6]: [
10012
- {
10013
- pr: "https://github.com/angular/components/pull/10163",
10014
- changes: [
10015
- { replace: "change", replaceWith: "selectionChange", limitedTo: { classes: ["MatSelect"] } },
10016
- {
10017
- replace: "onOpen",
10018
- replaceWith: "openedChange.pipe(filter(isOpen => isOpen))",
10019
- limitedTo: { classes: ["MatSelect"] }
10020
- },
10021
- {
10022
- replace: "onClose",
10023
- replaceWith: "openedChange.pipe(filter(isOpen => !isOpen))",
10024
- limitedTo: { classes: ["MatSelect"] }
10025
- }
10026
- ]
10027
- },
10028
- {
10029
- pr: "https://github.com/angular/components/pull/10218",
10030
- changes: [
10031
- {
10032
- replace: "align",
10033
- replaceWith: "labelPosition",
10034
- limitedTo: { classes: ["MatRadioGroup", "MatRadioButton"] }
10035
- }
10036
- ]
10037
- },
10038
- {
10039
- pr: "https://github.com/angular/components/pull/10253",
10040
- changes: [
10041
- {
10042
- replace: "extraClasses",
10043
- replaceWith: "panelClass",
10044
- limitedTo: { classes: ["MatSnackBarConfig"] }
10045
- }
10046
- ]
10047
- },
10048
- {
10049
- pr: "https://github.com/angular/components/pull/10279",
10050
- changes: [
10051
- {
10052
- replace: "align",
10053
- replaceWith: "position",
10054
- limitedTo: { classes: ["MatDrawer", "MatSidenav"] }
10055
- },
10056
- {
10057
- replace: "onAlignChanged",
10058
- replaceWith: "onPositionChanged",
10059
- limitedTo: { classes: ["MatDrawer", "MatSidenav"] }
10060
- },
10061
- {
10062
- replace: "onOpen",
10063
- replaceWith: "openedChange.pipe(filter(isOpen => isOpen))",
10064
- limitedTo: { classes: ["MatDrawer", "MatSidenav"] }
10065
- },
10066
- {
10067
- replace: "onClose",
10068
- replaceWith: "openedChange.pipe(filter(isOpen => !isOpen))",
10069
- limitedTo: { classes: ["MatDrawer", "MatSidenav"] }
10070
- }
10071
- ]
10072
- },
10073
- {
10074
- pr: "https://github.com/angular/components/pull/10293",
10075
- changes: [
10076
- {
10077
- replace: "shouldPlaceholderFloat",
10078
- replaceWith: "shouldLabelFloat",
10079
- limitedTo: { classes: ["MatFormFieldControl", "MatSelect"] }
10080
- }
10081
- ]
10082
- },
10083
- {
10084
- pr: "https://github.com/angular/components/pull/10294",
10085
- changes: [
10086
- { replace: "dividerColor", replaceWith: "color", limitedTo: { classes: ["MatFormField"] } },
10087
- {
10088
- replace: "floatPlaceholder",
10089
- replaceWith: "floatLabel",
10090
- limitedTo: { classes: ["MatFormField"] }
10091
- }
10092
- ]
10093
- },
10094
- {
10095
- pr: "https://github.com/angular/components/pull/10309",
10096
- changes: [
10097
- {
10098
- replace: "selectChange",
10099
- replaceWith: "selectedTabChange",
10100
- limitedTo: { classes: ["MatTabGroup"] }
10101
- },
10102
- {
10103
- replace: "_dynamicHeightDeprecated",
10104
- replaceWith: "dynamicHeight",
10105
- limitedTo: { classes: ["MatTabGroup"] }
10106
- }
10107
- ]
10108
- },
10109
- {
10110
- pr: "https://github.com/angular/components/pull/10311",
10111
- changes: [
10112
- { replace: "destroy", replaceWith: "destroyed", limitedTo: { classes: ["MatChip"] } },
10113
- { replace: "onRemove", replaceWith: "removed", limitedTo: { classes: ["MatChip"] } }
10114
- ]
10115
- },
10116
- {
10117
- pr: "https://github.com/angular/components/pull/10342",
10118
- changes: [
10119
- { replace: "align", replaceWith: "labelPosition", limitedTo: { classes: ["MatCheckbox"] } }
10120
- ]
10121
- },
10122
- {
10123
- pr: "https://github.com/angular/components/pull/10344",
10124
- changes: [
10125
- {
10126
- replace: "_positionDeprecated",
10127
- replaceWith: "position",
10128
- limitedTo: { classes: ["MatTooltip"] }
10129
- }
10130
- ]
10131
- },
10132
- {
10133
- pr: "https://github.com/angular/components/pull/10373",
10134
- changes: [
10135
- {
10136
- replace: "_thumbLabelDeprecated",
10137
- replaceWith: "thumbLabel",
10138
- limitedTo: { classes: ["MatSlider"] }
10139
- },
10140
- {
10141
- replace: "_tickIntervalDeprecated",
10142
- replaceWith: "tickInterval",
10143
- limitedTo: { classes: ["MatSlider"] }
10144
- }
10145
- ]
10146
- }
10147
- ]
10148
- };
7184
+ exports.propertyNames = {};
10149
7185
  }
10150
7186
  });
10151
7187
 
@@ -10155,26 +7191,7 @@ var require_symbol_removal = __commonJS({
10155
7191
  "use strict";
10156
7192
  Object.defineProperty(exports, "__esModule", { value: true });
10157
7193
  exports.symbolRemoval = void 0;
10158
- var schematics_1 = require("@angular/cdk/schematics");
10159
- exports.symbolRemoval = {
10160
- [schematics_1.TargetVersion.V13]: [
10161
- {
10162
- pr: "https://github.com/angular/components/pull/23529",
10163
- changes: [
10164
- "CanColorCtor",
10165
- "CanDisableRippleCtor",
10166
- "CanDisableCtor",
10167
- "CanUpdateErrorStateCtor",
10168
- "HasInitializedCtor",
10169
- "HasTabIndexCtor"
10170
- ].map((name) => ({
10171
- name,
10172
- module: "@angular/material/core",
10173
- message: `\`${name}\` is no longer necessary and has been removed.`
10174
- }))
10175
- }
10176
- ]
10177
- };
7194
+ exports.symbolRemoval = {};
10178
7195
  }
10179
7196
  });
10180
7197
 
@@ -10222,69 +7239,13 @@ var require_upgrade_data = __commonJS({
10222
7239
  // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/index.mjs
10223
7240
  var ng_update_exports = {};
10224
7241
  __export(ng_update_exports, {
10225
- updateToV10: () => updateToV10,
10226
- updateToV11: () => updateToV11,
10227
- updateToV12: () => updateToV12,
10228
- updateToV13: () => updateToV13,
10229
- updateToV14: () => updateToV14,
10230
- updateToV15: () => updateToV15,
10231
- updateToV6: () => updateToV6,
10232
- updateToV7: () => updateToV7,
10233
- updateToV8: () => updateToV8,
10234
- updateToV9: () => updateToV9
7242
+ updateToV15: () => updateToV15
10235
7243
  });
10236
7244
  module.exports = __toCommonJS(ng_update_exports);
10237
7245
  var import_schematics = require("@angular/cdk/schematics");
10238
- var import_hammer_gestures_migration = __toESM(require_hammer_gestures_migration(), 1);
10239
- var import_misc_class_inheritance = __toESM(require_misc_class_inheritance(), 1);
10240
- var import_misc_class_names = __toESM(require_misc_class_names(), 1);
10241
- var import_misc_imports = __toESM(require_misc_imports(), 1);
10242
- var import_misc_property_names = __toESM(require_misc_property_names(), 1);
10243
- var import_misc_template = __toESM(require_misc_template(), 1);
10244
- var import_ripple_speed_factor_migration = __toESM(require_ripple_speed_factor_migration(), 1);
10245
- var import_secondary_entry_points_migration = __toESM(require_secondary_entry_points_migration(), 1);
10246
- var import_theming_api_migration = __toESM(require_theming_api_migration(), 1);
10247
7246
  var import_legacy_components_v15 = __toESM(require_legacy_components_v15(), 1);
10248
7247
  var import_upgrade_data = __toESM(require_upgrade_data(), 1);
10249
- var materialMigrations = [
10250
- import_misc_class_inheritance.MiscClassInheritanceMigration,
10251
- import_misc_class_names.MiscClassNamesMigration,
10252
- import_misc_imports.MiscImportsMigration,
10253
- import_misc_property_names.MiscPropertyNamesMigration,
10254
- import_misc_template.MiscTemplateMigration,
10255
- import_ripple_speed_factor_migration.RippleSpeedFactorMigration,
10256
- import_secondary_entry_points_migration.SecondaryEntryPointsMigration,
10257
- import_hammer_gestures_migration.HammerGesturesMigration,
10258
- import_theming_api_migration.ThemingApiMigration,
10259
- import_legacy_components_v15.LegacyComponentsMigration
10260
- ];
10261
- function updateToV6() {
10262
- return (0, import_schematics.createMigrationSchematicRule)(import_schematics.TargetVersion.V6, materialMigrations, import_upgrade_data.materialUpgradeData, onMigrationComplete);
10263
- }
10264
- function updateToV7() {
10265
- return (0, import_schematics.createMigrationSchematicRule)(import_schematics.TargetVersion.V7, materialMigrations, import_upgrade_data.materialUpgradeData, onMigrationComplete);
10266
- }
10267
- function updateToV8() {
10268
- return (0, import_schematics.createMigrationSchematicRule)(import_schematics.TargetVersion.V8, materialMigrations, import_upgrade_data.materialUpgradeData, onMigrationComplete);
10269
- }
10270
- function updateToV9() {
10271
- return (0, import_schematics.createMigrationSchematicRule)(import_schematics.TargetVersion.V9, materialMigrations, import_upgrade_data.materialUpgradeData, onMigrationComplete);
10272
- }
10273
- function updateToV10() {
10274
- return (0, import_schematics.createMigrationSchematicRule)(import_schematics.TargetVersion.V10, materialMigrations, import_upgrade_data.materialUpgradeData, onMigrationComplete);
10275
- }
10276
- function updateToV11() {
10277
- return (0, import_schematics.createMigrationSchematicRule)(import_schematics.TargetVersion.V11, materialMigrations, import_upgrade_data.materialUpgradeData, onMigrationComplete);
10278
- }
10279
- function updateToV12() {
10280
- return (0, import_schematics.createMigrationSchematicRule)(import_schematics.TargetVersion.V12, materialMigrations, import_upgrade_data.materialUpgradeData, onMigrationComplete);
10281
- }
10282
- function updateToV13() {
10283
- return (0, import_schematics.createMigrationSchematicRule)(import_schematics.TargetVersion.V13, materialMigrations, import_upgrade_data.materialUpgradeData, onMigrationComplete);
10284
- }
10285
- function updateToV14() {
10286
- return (0, import_schematics.createMigrationSchematicRule)(import_schematics.TargetVersion.V14, materialMigrations, import_upgrade_data.materialUpgradeData, onMigrationComplete);
10287
- }
7248
+ var materialMigrations = [import_legacy_components_v15.LegacyComponentsMigration];
10288
7249
  function updateToV15() {
10289
7250
  return (0, import_schematics.createMigrationSchematicRule)(import_schematics.TargetVersion.V15, materialMigrations, import_upgrade_data.materialUpgradeData, onMigrationComplete);
10290
7251
  }
@@ -10298,16 +7259,7 @@ function onMigrationComplete(context, targetVersion, hasFailures) {
10298
7259
  }
10299
7260
  // Annotate the CommonJS export names for ESM import in node:
10300
7261
  0 && (module.exports = {
10301
- updateToV10,
10302
- updateToV11,
10303
- updateToV12,
10304
- updateToV13,
10305
- updateToV14,
10306
- updateToV15,
10307
- updateToV6,
10308
- updateToV7,
10309
- updateToV8,
10310
- updateToV9
7262
+ updateToV15
10311
7263
  });
10312
7264
  /*! *****************************************************************************
10313
7265
  Copyright (c) Microsoft Corporation.