@angular/material 17.0.0-next.7 → 17.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (279) hide show
  1. package/_index.scss +1 -1
  2. package/button/_button-theme.scss +49 -51
  3. package/button/_icon-button-theme.scss +12 -31
  4. package/button/index.d.ts +0 -2
  5. package/chips/index.d.ts +2 -3
  6. package/core/index.d.ts +2 -3
  7. package/core/tokens/m2/mat/_sort.scss +60 -0
  8. package/core/tokens/m2/mat/_tree.scss +62 -0
  9. package/core/tokens/m2/mdc/{_button-filled.scss → _filled-button.scss} +1 -1
  10. package/core/tokens/m2/mdc/_icon-button.scss +19 -6
  11. package/core/tokens/m2/mdc/{_button-protected.scss → _protected-button.scss} +1 -1
  12. package/core/tokens/m2/mdc/_text-button.scss +103 -0
  13. package/divider/_divider-theme.scss +4 -1
  14. package/esm2022/autocomplete/autocomplete-origin.mjs +4 -4
  15. package/esm2022/autocomplete/autocomplete-trigger.mjs +4 -4
  16. package/esm2022/autocomplete/autocomplete.mjs +4 -4
  17. package/esm2022/autocomplete/module.mjs +5 -5
  18. package/esm2022/badge/badge-module.mjs +5 -5
  19. package/esm2022/badge/badge.mjs +4 -4
  20. package/esm2022/bottom-sheet/bottom-sheet-container.mjs +4 -4
  21. package/esm2022/bottom-sheet/bottom-sheet-module.mjs +5 -5
  22. package/esm2022/bottom-sheet/bottom-sheet.mjs +4 -4
  23. package/esm2022/button/button-base.mjs +19 -24
  24. package/esm2022/button/button.mjs +9 -9
  25. package/esm2022/button/fab.mjs +13 -13
  26. package/esm2022/button/icon-button.mjs +9 -9
  27. package/esm2022/button/module.mjs +5 -5
  28. package/esm2022/button-toggle/button-toggle-module.mjs +5 -5
  29. package/esm2022/button-toggle/button-toggle.mjs +8 -8
  30. package/esm2022/card/card.mjs +43 -43
  31. package/esm2022/card/module.mjs +5 -5
  32. package/esm2022/checkbox/checkbox-required-validator.mjs +4 -4
  33. package/esm2022/checkbox/checkbox.mjs +5 -5
  34. package/esm2022/checkbox/module.mjs +9 -9
  35. package/esm2022/chips/chip-action.mjs +4 -4
  36. package/esm2022/chips/chip-edit-input.mjs +4 -4
  37. package/esm2022/chips/chip-grid.mjs +4 -4
  38. package/esm2022/chips/chip-icons.mjs +10 -10
  39. package/esm2022/chips/chip-input.mjs +4 -4
  40. package/esm2022/chips/chip-listbox.mjs +4 -4
  41. package/esm2022/chips/chip-option.mjs +7 -8
  42. package/esm2022/chips/chip-row.mjs +8 -9
  43. package/esm2022/chips/chip-set.mjs +4 -4
  44. package/esm2022/chips/chip.mjs +6 -7
  45. package/esm2022/chips/module.mjs +8 -9
  46. package/esm2022/core/common-behaviors/common-module.mjs +5 -5
  47. package/esm2022/core/datetime/index.mjs +9 -9
  48. package/esm2022/core/datetime/native-date-adapter.mjs +4 -4
  49. package/esm2022/core/error/error-options.mjs +7 -7
  50. package/esm2022/core/line/line.mjs +8 -8
  51. package/esm2022/core/option/index.mjs +6 -7
  52. package/esm2022/core/option/optgroup.mjs +4 -4
  53. package/esm2022/core/option/option.mjs +8 -9
  54. package/esm2022/core/private/ripple-loader.mjs +4 -4
  55. package/esm2022/core/ripple/index.mjs +5 -5
  56. package/esm2022/core/ripple/ripple.mjs +4 -4
  57. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +5 -5
  58. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +4 -4
  59. package/esm2022/core/version.mjs +1 -1
  60. package/esm2022/datepicker/calendar-body.mjs +5 -5
  61. package/esm2022/datepicker/calendar.mjs +13 -14
  62. package/esm2022/datepicker/date-range-input-parts.mjs +10 -10
  63. package/esm2022/datepicker/date-range-input.mjs +4 -4
  64. package/esm2022/datepicker/date-range-picker.mjs +4 -4
  65. package/esm2022/datepicker/date-range-selection-strategy.mjs +4 -4
  66. package/esm2022/datepicker/date-selection-model.mjs +10 -10
  67. package/esm2022/datepicker/datepicker-actions.mjs +10 -10
  68. package/esm2022/datepicker/datepicker-base.mjs +7 -7
  69. package/esm2022/datepicker/datepicker-input-base.mjs +4 -4
  70. package/esm2022/datepicker/datepicker-input.mjs +4 -4
  71. package/esm2022/datepicker/datepicker-intl.mjs +4 -4
  72. package/esm2022/datepicker/datepicker-module.mjs +5 -5
  73. package/esm2022/datepicker/datepicker-toggle.mjs +9 -10
  74. package/esm2022/datepicker/datepicker.mjs +4 -4
  75. package/esm2022/datepicker/month-view.mjs +6 -7
  76. package/esm2022/datepicker/multi-year-view.mjs +4 -4
  77. package/esm2022/datepicker/year-view.mjs +4 -4
  78. package/esm2022/dialog/dialog-container.mjs +4 -4
  79. package/esm2022/dialog/dialog-content-directives.mjs +13 -13
  80. package/esm2022/dialog/dialog.mjs +4 -4
  81. package/esm2022/dialog/module.mjs +5 -5
  82. package/esm2022/divider/divider-module.mjs +5 -5
  83. package/esm2022/divider/divider.mjs +5 -5
  84. package/esm2022/expansion/accordion.mjs +4 -4
  85. package/esm2022/expansion/expansion-module.mjs +7 -8
  86. package/esm2022/expansion/expansion-panel-content.mjs +4 -4
  87. package/esm2022/expansion/expansion-panel-header.mjs +11 -12
  88. package/esm2022/expansion/expansion-panel.mjs +9 -9
  89. package/esm2022/form-field/directives/error.mjs +4 -4
  90. package/esm2022/form-field/directives/floating-label.mjs +4 -4
  91. package/esm2022/form-field/directives/hint.mjs +4 -4
  92. package/esm2022/form-field/directives/label.mjs +4 -4
  93. package/esm2022/form-field/directives/line-ripple.mjs +4 -4
  94. package/esm2022/form-field/directives/notched-outline.mjs +4 -4
  95. package/esm2022/form-field/directives/prefix.mjs +4 -4
  96. package/esm2022/form-field/directives/suffix.mjs +4 -4
  97. package/esm2022/form-field/form-field-control.mjs +4 -4
  98. package/esm2022/form-field/form-field.mjs +6 -6
  99. package/esm2022/form-field/module.mjs +5 -5
  100. package/esm2022/grid-list/grid-list-module.mjs +5 -5
  101. package/esm2022/grid-list/grid-list.mjs +4 -4
  102. package/esm2022/grid-list/grid-tile.mjs +16 -16
  103. package/esm2022/icon/icon-module.mjs +5 -5
  104. package/esm2022/icon/icon-registry.mjs +4 -4
  105. package/esm2022/icon/icon.mjs +4 -4
  106. package/esm2022/icon/testing/fake-icon-registry.mjs +8 -8
  107. package/esm2022/input/input.mjs +4 -4
  108. package/esm2022/input/module.mjs +5 -5
  109. package/esm2022/list/action-list.mjs +4 -4
  110. package/esm2022/list/list-base.mjs +7 -7
  111. package/esm2022/list/list-item-sections.mjs +19 -19
  112. package/esm2022/list/list-module.mjs +5 -5
  113. package/esm2022/list/list-option.mjs +6 -6
  114. package/esm2022/list/list.mjs +7 -7
  115. package/esm2022/list/nav-list.mjs +4 -4
  116. package/esm2022/list/selection-list.mjs +4 -4
  117. package/esm2022/list/subheader.mjs +4 -4
  118. package/esm2022/menu/menu-content.mjs +4 -4
  119. package/esm2022/menu/menu-item.mjs +6 -7
  120. package/esm2022/menu/menu-trigger.mjs +4 -4
  121. package/esm2022/menu/menu.mjs +4 -4
  122. package/esm2022/menu/module.mjs +5 -5
  123. package/esm2022/paginator/module.mjs +6 -7
  124. package/esm2022/paginator/paginator-intl.mjs +4 -4
  125. package/esm2022/paginator/paginator.mjs +10 -11
  126. package/esm2022/progress-bar/module.mjs +5 -5
  127. package/esm2022/progress-bar/progress-bar.mjs +4 -4
  128. package/esm2022/progress-spinner/module.mjs +5 -5
  129. package/esm2022/progress-spinner/progress-spinner.mjs +4 -4
  130. package/esm2022/radio/module.mjs +5 -5
  131. package/esm2022/radio/radio.mjs +8 -8
  132. package/esm2022/select/module.mjs +5 -5
  133. package/esm2022/select/select.mjs +9 -9
  134. package/esm2022/sidenav/drawer.mjs +12 -13
  135. package/esm2022/sidenav/sidenav-module.mjs +7 -8
  136. package/esm2022/sidenav/sidenav.mjs +12 -13
  137. package/esm2022/slide-toggle/module.mjs +10 -11
  138. package/esm2022/slide-toggle/slide-toggle-required-validator.mjs +4 -4
  139. package/esm2022/slide-toggle/slide-toggle.mjs +5 -6
  140. package/esm2022/slider/module.mjs +6 -7
  141. package/esm2022/slider/slider-input.mjs +7 -7
  142. package/esm2022/slider/slider-thumb.mjs +6 -7
  143. package/esm2022/slider/slider.mjs +6 -7
  144. package/esm2022/snack-bar/module.mjs +5 -5
  145. package/esm2022/snack-bar/simple-snack-bar.mjs +5 -6
  146. package/esm2022/snack-bar/snack-bar-container.mjs +4 -4
  147. package/esm2022/snack-bar/snack-bar-content.mjs +10 -10
  148. package/esm2022/snack-bar/snack-bar.mjs +4 -4
  149. package/esm2022/sort/sort-header-intl.mjs +4 -4
  150. package/esm2022/sort/sort-header.mjs +5 -6
  151. package/esm2022/sort/sort-module.mjs +6 -7
  152. package/esm2022/sort/sort.mjs +4 -4
  153. package/esm2022/stepper/step-content.mjs +4 -4
  154. package/esm2022/stepper/step-header.mjs +5 -5
  155. package/esm2022/stepper/step-label.mjs +4 -4
  156. package/esm2022/stepper/stepper-button.mjs +7 -7
  157. package/esm2022/stepper/stepper-icon.mjs +4 -4
  158. package/esm2022/stepper/stepper-intl.mjs +4 -4
  159. package/esm2022/stepper/stepper-module.mjs +5 -5
  160. package/esm2022/stepper/stepper.mjs +8 -8
  161. package/esm2022/table/cell.mjs +22 -22
  162. package/esm2022/table/module.mjs +5 -5
  163. package/esm2022/table/row.mjs +22 -22
  164. package/esm2022/table/table.mjs +7 -7
  165. package/esm2022/table/text-column.mjs +4 -4
  166. package/esm2022/tabs/module.mjs +5 -5
  167. package/esm2022/tabs/paginated-tab-header.mjs +4 -4
  168. package/esm2022/tabs/tab-body.mjs +7 -7
  169. package/esm2022/tabs/tab-content.mjs +4 -4
  170. package/esm2022/tabs/tab-group.mjs +6 -6
  171. package/esm2022/tabs/tab-header.mjs +4 -4
  172. package/esm2022/tabs/tab-label-wrapper.mjs +4 -4
  173. package/esm2022/tabs/tab-label.mjs +4 -4
  174. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +10 -10
  175. package/esm2022/tabs/tab.mjs +4 -4
  176. package/esm2022/toolbar/toolbar-module.mjs +5 -5
  177. package/esm2022/toolbar/toolbar.mjs +8 -8
  178. package/esm2022/tooltip/module.mjs +5 -5
  179. package/esm2022/tooltip/tooltip.mjs +7 -7
  180. package/esm2022/tree/node.mjs +10 -10
  181. package/esm2022/tree/outlet.mjs +4 -4
  182. package/esm2022/tree/padding.mjs +4 -4
  183. package/esm2022/tree/toggle.mjs +4 -4
  184. package/esm2022/tree/tree-module.mjs +5 -5
  185. package/esm2022/tree/tree.mjs +5 -5
  186. package/expansion/_expansion-theme.scss +4 -1
  187. package/expansion/index.d.ts +4 -5
  188. package/fesm2022/autocomplete.mjs +13 -13
  189. package/fesm2022/autocomplete.mjs.map +1 -1
  190. package/fesm2022/badge.mjs +7 -7
  191. package/fesm2022/badge.mjs.map +1 -1
  192. package/fesm2022/bottom-sheet.mjs +10 -10
  193. package/fesm2022/bottom-sheet.mjs.map +1 -1
  194. package/fesm2022/button-toggle.mjs +11 -11
  195. package/fesm2022/button-toggle.mjs.map +1 -1
  196. package/fesm2022/button.mjs +50 -55
  197. package/fesm2022/button.mjs.map +1 -1
  198. package/fesm2022/card.mjs +46 -46
  199. package/fesm2022/card.mjs.map +1 -1
  200. package/fesm2022/checkbox.mjs +15 -15
  201. package/fesm2022/checkbox.mjs.map +1 -1
  202. package/fesm2022/chips.mjs +53 -54
  203. package/fesm2022/chips.mjs.map +1 -1
  204. package/fesm2022/core.mjs +59 -60
  205. package/fesm2022/core.mjs.map +1 -1
  206. package/fesm2022/datepicker.mjs +89 -89
  207. package/fesm2022/datepicker.mjs.map +1 -1
  208. package/fesm2022/dialog.mjs +22 -22
  209. package/fesm2022/dialog.mjs.map +1 -1
  210. package/fesm2022/divider.mjs +8 -8
  211. package/fesm2022/divider.mjs.map +1 -1
  212. package/fesm2022/expansion.mjs +31 -32
  213. package/fesm2022/expansion.mjs.map +1 -1
  214. package/fesm2022/form-field.mjs +36 -36
  215. package/fesm2022/form-field.mjs.map +1 -1
  216. package/fesm2022/grid-list.mjs +22 -22
  217. package/fesm2022/grid-list.mjs.map +1 -1
  218. package/fesm2022/icon/testing.mjs +7 -7
  219. package/fesm2022/icon/testing.mjs.map +1 -1
  220. package/fesm2022/icon.mjs +10 -10
  221. package/fesm2022/icon.mjs.map +1 -1
  222. package/fesm2022/input.mjs +7 -7
  223. package/fesm2022/input.mjs.map +1 -1
  224. package/fesm2022/list.mjs +51 -51
  225. package/fesm2022/list.mjs.map +1 -1
  226. package/fesm2022/menu.mjs +23 -23
  227. package/fesm2022/menu.mjs.map +1 -1
  228. package/fesm2022/paginator.mjs +17 -19
  229. package/fesm2022/paginator.mjs.map +1 -1
  230. package/fesm2022/progress-bar.mjs +7 -7
  231. package/fesm2022/progress-bar.mjs.map +1 -1
  232. package/fesm2022/progress-spinner.mjs +7 -7
  233. package/fesm2022/progress-spinner.mjs.map +1 -1
  234. package/fesm2022/radio.mjs +11 -11
  235. package/fesm2022/radio.mjs.map +1 -1
  236. package/fesm2022/select.mjs +12 -12
  237. package/fesm2022/select.mjs.map +1 -1
  238. package/fesm2022/sidenav.mjs +29 -30
  239. package/fesm2022/sidenav.mjs.map +1 -1
  240. package/fesm2022/slide-toggle.mjs +16 -18
  241. package/fesm2022/slide-toggle.mjs.map +1 -1
  242. package/fesm2022/slider.mjs +22 -24
  243. package/fesm2022/slider.mjs.map +1 -1
  244. package/fesm2022/snack-bar.mjs +26 -27
  245. package/fesm2022/snack-bar.mjs.map +1 -1
  246. package/fesm2022/sort.mjs +15 -17
  247. package/fesm2022/sort.mjs.map +1 -1
  248. package/fesm2022/stepper.mjs +33 -33
  249. package/fesm2022/stepper.mjs.map +1 -1
  250. package/fesm2022/table.mjs +55 -55
  251. package/fesm2022/table.mjs.map +1 -1
  252. package/fesm2022/tabs.mjs +42 -42
  253. package/fesm2022/tabs.mjs.map +1 -1
  254. package/fesm2022/toolbar.mjs +11 -11
  255. package/fesm2022/toolbar.mjs.map +1 -1
  256. package/fesm2022/tooltip.mjs +10 -10
  257. package/fesm2022/tooltip.mjs.map +1 -1
  258. package/fesm2022/tree.mjs +26 -26
  259. package/fesm2022/tree.mjs.map +1 -1
  260. package/form-field/_form-field-theme.scss +11 -1
  261. package/package.json +2 -2
  262. package/paginator/index.d.ts +4 -5
  263. package/prebuilt-themes/deeppurple-amber.css +1 -1
  264. package/prebuilt-themes/indigo-pink.css +1 -1
  265. package/prebuilt-themes/pink-bluegrey.css +1 -1
  266. package/prebuilt-themes/purple-green.css +1 -1
  267. package/schematics/ng-add/index.js +1 -1
  268. package/schematics/ng-add/index.mjs +1 -1
  269. package/schematics/ng-generate/mdc-migration/index_bundled.js +1227 -499
  270. package/schematics/ng-generate/mdc-migration/index_bundled.js.map +4 -4
  271. package/schematics/ng-update/index_bundled.js +328 -26
  272. package/schematics/ng-update/index_bundled.js.map +4 -4
  273. package/sidenav/index.d.ts +3 -4
  274. package/slide-toggle/index.d.ts +1 -2
  275. package/slider/index.d.ts +1 -2
  276. package/sort/_sort-theme.scss +21 -23
  277. package/sort/index.d.ts +2 -3
  278. package/tree/_tree-theme.scss +13 -26
  279. package/tree/_tree-variables.scss +0 -14
@@ -454,9 +454,9 @@ var require_tslib = __commonJS({
454
454
  }
455
455
  });
456
456
 
457
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/attribute-selectors.js
457
+ // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/attribute-selectors.js
458
458
  var require_attribute_selectors = __commonJS({
459
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/attribute-selectors.js"(exports) {
459
+ "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/attribute-selectors.js"(exports) {
460
460
  "use strict";
461
461
  Object.defineProperty(exports, "__esModule", { value: true });
462
462
  exports.attributeSelectors = void 0;
@@ -464,9 +464,9 @@ var require_attribute_selectors = __commonJS({
464
464
  }
465
465
  });
466
466
 
467
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/class-names.js
467
+ // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/class-names.js
468
468
  var require_class_names = __commonJS({
469
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/class-names.js"(exports) {
469
+ "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/class-names.js"(exports) {
470
470
  "use strict";
471
471
  Object.defineProperty(exports, "__esModule", { value: true });
472
472
  exports.classNames = void 0;
@@ -474,9 +474,9 @@ var require_class_names = __commonJS({
474
474
  }
475
475
  });
476
476
 
477
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/constructor-checks.js
477
+ // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/constructor-checks.js
478
478
  var require_constructor_checks = __commonJS({
479
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/constructor-checks.js"(exports) {
479
+ "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/constructor-checks.js"(exports) {
480
480
  "use strict";
481
481
  Object.defineProperty(exports, "__esModule", { value: true });
482
482
  exports.constructorChecks = void 0;
@@ -484,9 +484,9 @@ var require_constructor_checks = __commonJS({
484
484
  }
485
485
  });
486
486
 
487
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/css-selectors.js
487
+ // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/css-selectors.js
488
488
  var require_css_selectors = __commonJS({
489
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/css-selectors.js"(exports) {
489
+ "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/css-selectors.js"(exports) {
490
490
  "use strict";
491
491
  Object.defineProperty(exports, "__esModule", { value: true });
492
492
  exports.cssSelectors = void 0;
@@ -494,9 +494,9 @@ var require_css_selectors = __commonJS({
494
494
  }
495
495
  });
496
496
 
497
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/element-selectors.js
497
+ // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/element-selectors.js
498
498
  var require_element_selectors = __commonJS({
499
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/element-selectors.js"(exports) {
499
+ "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/element-selectors.js"(exports) {
500
500
  "use strict";
501
501
  Object.defineProperty(exports, "__esModule", { value: true });
502
502
  exports.elementSelectors = void 0;
@@ -504,9 +504,9 @@ var require_element_selectors = __commonJS({
504
504
  }
505
505
  });
506
506
 
507
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/input-names.js
507
+ // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/input-names.js
508
508
  var require_input_names = __commonJS({
509
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/input-names.js"(exports) {
509
+ "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/input-names.js"(exports) {
510
510
  "use strict";
511
511
  Object.defineProperty(exports, "__esModule", { value: true });
512
512
  exports.inputNames = void 0;
@@ -514,9 +514,9 @@ var require_input_names = __commonJS({
514
514
  }
515
515
  });
516
516
 
517
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/method-call-checks.js
517
+ // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/method-call-checks.js
518
518
  var require_method_call_checks = __commonJS({
519
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/method-call-checks.js"(exports) {
519
+ "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/method-call-checks.js"(exports) {
520
520
  "use strict";
521
521
  Object.defineProperty(exports, "__esModule", { value: true });
522
522
  exports.methodCallChecks = void 0;
@@ -524,9 +524,9 @@ var require_method_call_checks = __commonJS({
524
524
  }
525
525
  });
526
526
 
527
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/output-names.js
527
+ // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/output-names.js
528
528
  var require_output_names = __commonJS({
529
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/output-names.js"(exports) {
529
+ "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/output-names.js"(exports) {
530
530
  "use strict";
531
531
  Object.defineProperty(exports, "__esModule", { value: true });
532
532
  exports.outputNames = void 0;
@@ -534,9 +534,9 @@ var require_output_names = __commonJS({
534
534
  }
535
535
  });
536
536
 
537
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/property-names.js
537
+ // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/property-names.js
538
538
  var require_property_names = __commonJS({
539
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/property-names.js"(exports) {
539
+ "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/property-names.js"(exports) {
540
540
  "use strict";
541
541
  Object.defineProperty(exports, "__esModule", { value: true });
542
542
  exports.propertyNames = void 0;
@@ -544,9 +544,9 @@ var require_property_names = __commonJS({
544
544
  }
545
545
  });
546
546
 
547
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/symbol-removal.js
547
+ // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/symbol-removal.js
548
548
  var require_symbol_removal = __commonJS({
549
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/symbol-removal.js"(exports) {
549
+ "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/symbol-removal.js"(exports) {
550
550
  "use strict";
551
551
  Object.defineProperty(exports, "__esModule", { value: true });
552
552
  exports.symbolRemoval = void 0;
@@ -554,9 +554,9 @@ var require_symbol_removal = __commonJS({
554
554
  }
555
555
  });
556
556
 
557
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/index.js
557
+ // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/index.js
558
558
  var require_data = __commonJS({
559
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/index.js"(exports) {
559
+ "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/index.js"(exports) {
560
560
  "use strict";
561
561
  Object.defineProperty(exports, "__esModule", { value: true });
562
562
  var tslib_1 = require_tslib();
@@ -573,9 +573,9 @@ var require_data = __commonJS({
573
573
  }
574
574
  });
575
575
 
576
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/upgrade-data.js
576
+ // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/upgrade-data.js
577
577
  var require_upgrade_data = __commonJS({
578
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/upgrade-data.js"(exports) {
578
+ "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/upgrade-data.js"(exports) {
579
579
  "use strict";
580
580
  Object.defineProperty(exports, "__esModule", { value: true });
581
581
  exports.materialUpgradeData = void 0;
@@ -595,7 +595,308 @@ var require_upgrade_data = __commonJS({
595
595
  }
596
596
  });
597
597
 
598
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/index.mjs
598
+ // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/migrations/theme-base-v17/migration.js
599
+ var require_migration = __commonJS({
600
+ "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/migrations/theme-base-v17/migration.js"(exports) {
601
+ "use strict";
602
+ Object.defineProperty(exports, "__esModule", { value: true });
603
+ exports.addThemeBaseMixins = exports.checkThemeBaseMixins = void 0;
604
+ var MISSING_MIXIN_PREAMBLE_LINES = `
605
+ // The following mixins include base theme styles that are only needed once per application. These
606
+ // theme styles do not depend on the color, typography, or density settings in your theme. However,
607
+ // these styles may differ depending on the theme's design system. Currently all themes use the
608
+ // Material 2 design system, but in the future it may be possible to create theme based on other
609
+ // design systems, such as Material 3.
610
+ //
611
+ // Please note: you do not need to include the 'base' mixins, if you include the corresponding
612
+ // 'theme' mixin elsewhere in your Sass. The full 'theme' mixins already include the base styles.
613
+ //
614
+ // TODO(v17): Please move these @include statements to the preferred place in your Sass, and pass
615
+ // your theme to them. This will ensure the correct values for your app are included.`.split("\n");
616
+ var THEME_MIXIN_SETS = [
617
+ {
618
+ theme: "all-component-themes",
619
+ color: "all-component-colors",
620
+ typography: "all-component-typographies",
621
+ density: "all-component-densities",
622
+ base: "all-component-bases"
623
+ },
624
+ ...[
625
+ "core",
626
+ "card",
627
+ "progress-bar",
628
+ "tooltip",
629
+ "form-field",
630
+ "input",
631
+ "select",
632
+ "autocomplete",
633
+ "dialog",
634
+ "chips",
635
+ "slide-toggle",
636
+ "radio",
637
+ "slider",
638
+ "menu",
639
+ "list",
640
+ "paginator",
641
+ "tabs",
642
+ "checkbox",
643
+ "button",
644
+ "icon-button",
645
+ "fab",
646
+ "snack-bar",
647
+ "table",
648
+ "progress-spinner",
649
+ "badge",
650
+ "bottom-sheet",
651
+ "button-toggle",
652
+ "datepicker",
653
+ "divider",
654
+ "expansion",
655
+ "grid-list",
656
+ "icon",
657
+ "sidenav",
658
+ "stepper",
659
+ "sort",
660
+ "toolbar",
661
+ "tree"
662
+ ].map((comp) => ({
663
+ theme: `${comp}-theme`,
664
+ color: `${comp}-color`,
665
+ typography: `${comp}-typography`,
666
+ density: `${comp}-density`,
667
+ base: `${comp}-base`
668
+ }))
669
+ ];
670
+ var COMMENT_PAIRS = /* @__PURE__ */ new Map([
671
+ ["/*", "*/"],
672
+ ["//", "\n"]
673
+ ]);
674
+ var COMMENT_PLACEHOLDER_START = "__<<ngThemingMigrationEscapedComment";
675
+ var COMMENT_PLACEHOLDER_END = ">>__";
676
+ function escapeComments(content) {
677
+ const placeholders = {};
678
+ let commentCounter = 0;
679
+ let [openIndex, closeIndex] = findComment(content);
680
+ while (openIndex > -1 && closeIndex > -1) {
681
+ const placeholder = COMMENT_PLACEHOLDER_START + commentCounter++ + COMMENT_PLACEHOLDER_END;
682
+ placeholders[placeholder] = content.slice(openIndex, closeIndex);
683
+ content = content.slice(0, openIndex) + placeholder + content.slice(closeIndex);
684
+ [openIndex, closeIndex] = findComment(content);
685
+ }
686
+ return { content, placeholders };
687
+ }
688
+ function findComment(content) {
689
+ content += "\n";
690
+ for (const [open, close] of COMMENT_PAIRS.entries()) {
691
+ const openIndex = content.indexOf(open);
692
+ if (openIndex > -1) {
693
+ const closeIndex = content.indexOf(close, openIndex + 1);
694
+ return closeIndex > -1 ? [openIndex, closeIndex + close.length] : [-1, -1];
695
+ }
696
+ }
697
+ return [-1, -1];
698
+ }
699
+ function restoreComments(content, placeholders) {
700
+ Object.keys(placeholders).forEach((key) => content = content.replace(key, placeholders[key]));
701
+ return content;
702
+ }
703
+ function escapeRegExp(str) {
704
+ return str.replace(/([.*+?^=!:${}()|[\]\/\\])/g, "\\$1");
705
+ }
706
+ function extractNamespaceFromUseStatement(fullImport) {
707
+ const closeQuoteIndex = Math.max(fullImport.lastIndexOf(`"`), fullImport.lastIndexOf(`'`));
708
+ if (closeQuoteIndex > -1) {
709
+ const asExpression = "as ";
710
+ const asIndex = fullImport.indexOf(asExpression, closeQuoteIndex);
711
+ if (asIndex > -1) {
712
+ return fullImport.slice(asIndex + asExpression.length).split(";")[0].trim();
713
+ }
714
+ const lastSlashIndex = fullImport.lastIndexOf("/", closeQuoteIndex);
715
+ if (lastSlashIndex > -1) {
716
+ const fileName = fullImport.slice(lastSlashIndex + 1, closeQuoteIndex).replace(/^_|(\.import)?\.scss$|\.import$/g, "");
717
+ if (fileName === "index") {
718
+ const nextSlashIndex = fullImport.lastIndexOf("/", lastSlashIndex - 1);
719
+ if (nextSlashIndex > -1) {
720
+ return fullImport.slice(nextSlashIndex + 1, lastSlashIndex);
721
+ }
722
+ } else {
723
+ return fileName;
724
+ }
725
+ }
726
+ }
727
+ throw Error(`Could not extract namespace from import "${fullImport}".`);
728
+ }
729
+ function getAtUseNamespaces(content, path) {
730
+ const namespaces = /* @__PURE__ */ new Set();
731
+ const pattern = new RegExp(`@use +['"]~?${escapeRegExp(path)}['"].*;?
732
+ `, "g");
733
+ let match = null;
734
+ while (match = pattern.exec(content)) {
735
+ namespaces.add(extractNamespaceFromUseStatement(match[0]));
736
+ }
737
+ return namespaces;
738
+ }
739
+ function getAtIncludes(content, namespace, mixin) {
740
+ const ending = "([^\\n\\w-][^\\n]*)?($|\\n)";
741
+ const pattern = new RegExp(`@include\\s+${escapeRegExp(namespace)}\\.${escapeRegExp(mixin)}${ending}`, "g");
742
+ return [...content.matchAll(pattern)];
743
+ }
744
+ function isMixinAtIncluded(content, namespace, mixin) {
745
+ return !!getAtIncludes(content, namespace, mixin).length;
746
+ }
747
+ function insertLinesAfterMatch(content, match, lines) {
748
+ const insertionPoint = match.index + match[0].length;
749
+ return content.substring(0, insertionPoint) + lines.join("\n") + "\n" + content.substring(insertionPoint);
750
+ }
751
+ function getIndentation(content, index) {
752
+ let indentationStart = 0;
753
+ let indentationEnd = index;
754
+ for (let i = index; i >= 0; i--) {
755
+ if (content[i] === "\n") {
756
+ indentationStart = i + 1;
757
+ break;
758
+ }
759
+ if (!/\s/.exec(content[i])) {
760
+ indentationEnd = i;
761
+ }
762
+ }
763
+ return content.slice(indentationStart, indentationEnd);
764
+ }
765
+ function getMissingMixinLines(namespace, mixins, indentation) {
766
+ return [
767
+ ...MISSING_MIXIN_PREAMBLE_LINES,
768
+ ...[...mixins].sort().map((mixin) => `@include ${namespace}.${mixin}(/* TODO(v17): pass $your-theme here */);`),
769
+ ""
770
+ ].map((line) => (indentation + line).trimRight());
771
+ }
772
+ function checkThemeBaseMixins(fileContent) {
773
+ const found = /* @__PURE__ */ new Set();
774
+ const missing = /* @__PURE__ */ new Set();
775
+ const { content } = escapeComments(fileContent);
776
+ const materialNamespaces = getAtUseNamespaces(content, "@angular/material");
777
+ for (const namespace of materialNamespaces) {
778
+ for (const mixins of THEME_MIXIN_SETS) {
779
+ if (isMixinAtIncluded(content, namespace, mixins.theme)) {
780
+ found.add(mixins.base);
781
+ missing.delete(mixins.base);
782
+ continue;
783
+ }
784
+ if (!found.has(mixins.base)) {
785
+ if (isMixinAtIncluded(content, namespace, mixins.color) || isMixinAtIncluded(content, namespace, mixins.typography) || isMixinAtIncluded(content, namespace, mixins.density)) {
786
+ missing.add(mixins.base);
787
+ }
788
+ }
789
+ }
790
+ }
791
+ return { found, missing };
792
+ }
793
+ exports.checkThemeBaseMixins = checkThemeBaseMixins;
794
+ function addThemeBaseMixins(fileContent, mixins) {
795
+ let { content, placeholders } = escapeComments(fileContent);
796
+ const materialNamespaces = getAtUseNamespaces(content, "@angular/material");
797
+ for (const namespace of materialNamespaces) {
798
+ const coreIncludes = getAtIncludes(content, namespace, "core").reverse();
799
+ for (const coreInclude of coreIncludes) {
800
+ if (coreInclude.index === void 0) {
801
+ throw Error(`Cannot find location of mat.core() match: ${coreInclude}`);
802
+ }
803
+ const indentation = getIndentation(content, coreInclude.index);
804
+ const lines = getMissingMixinLines(namespace, mixins, indentation);
805
+ content = insertLinesAfterMatch(content, coreInclude, lines);
806
+ }
807
+ }
808
+ return restoreComments(content, placeholders);
809
+ }
810
+ exports.addThemeBaseMixins = addThemeBaseMixins;
811
+ }
812
+ });
813
+
814
+ // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/migrations/theme-base-v17/index.js
815
+ var require_theme_base_v17 = __commonJS({
816
+ "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/migrations/theme-base-v17/index.js"(exports) {
817
+ "use strict";
818
+ Object.defineProperty(exports, "__esModule", { value: true });
819
+ exports.ThemeBaseMigration = void 0;
820
+ var core_1 = require("@angular-devkit/core");
821
+ var schematics_1 = require("@angular/cdk/schematics");
822
+ var migration_1 = require_migration();
823
+ var _ThemeBaseMigration = class extends schematics_1.DevkitMigration {
824
+ constructor() {
825
+ super(...arguments);
826
+ this.enabled = this.targetVersion === schematics_1.TargetVersion.V17;
827
+ this.visitedSassStylesheets = [];
828
+ }
829
+ visitStylesheet(stylesheet) {
830
+ if ((0, core_1.extname)(stylesheet.filePath) === ".scss") {
831
+ this.visitedSassStylesheets.push(stylesheet);
832
+ const content = stylesheet.content;
833
+ const { found, missing } = (0, migration_1.checkThemeBaseMixins)(content);
834
+ for (const mixin of found) {
835
+ _ThemeBaseMigration.foundBaseMixins.add(mixin);
836
+ _ThemeBaseMigration.missingBaseMixins.delete(mixin);
837
+ }
838
+ for (const mixin of missing) {
839
+ if (!_ThemeBaseMigration.foundBaseMixins.has(mixin)) {
840
+ _ThemeBaseMigration.missingBaseMixins.add(mixin);
841
+ }
842
+ }
843
+ }
844
+ }
845
+ postAnalysis() {
846
+ if (_ThemeBaseMigration.missingBaseMixins.size === 0) {
847
+ return;
848
+ }
849
+ if (_ThemeBaseMigration.foundBaseMixins.has("all-component-bases")) {
850
+ return;
851
+ }
852
+ if (_ThemeBaseMigration.missingBaseMixins.has("all-component-bases")) {
853
+ _ThemeBaseMigration.missingBaseMixins = /* @__PURE__ */ new Set(["all-component-bases"]);
854
+ }
855
+ for (const stylesheet of this.visitedSassStylesheets) {
856
+ const content = stylesheet.content;
857
+ const migratedContent = content ? (0, migration_1.addThemeBaseMixins)(content, _ThemeBaseMigration.missingBaseMixins) : content;
858
+ if (migratedContent && migratedContent !== content) {
859
+ this.fileSystem.edit(stylesheet.filePath).remove(0, stylesheet.content.length).insertLeft(0, migratedContent);
860
+ _ThemeBaseMigration.migratedFileCount++;
861
+ }
862
+ }
863
+ if (_ThemeBaseMigration.migratedFileCount === 0) {
864
+ const mixinsText = [..._ThemeBaseMigration.missingBaseMixins].sort().map((m) => `mat.${m}($theme)`).join("\n");
865
+ this.failures.push({
866
+ filePath: this.context.tree.root.path,
867
+ message: `The following mixins could not be automatically added, please add them manually if needed:
868
+ ${mixinsText}`
869
+ });
870
+ }
871
+ }
872
+ static globalPostMigration(_tree, _targetVersion, context) {
873
+ const fileCount = _ThemeBaseMigration.migratedFileCount;
874
+ const mixinCount = _ThemeBaseMigration.missingBaseMixins.size;
875
+ if (fileCount > 0 && mixinCount > 0) {
876
+ const fileCountText = fileCount === 1 ? "1 file" : `${fileCount} files`;
877
+ const mixinCountText = mixinCount === 1 ? "1 theme base mixin" : `${mixinCount} theme base mixins`;
878
+ context.logger.info(`Added ${mixinCountText} to ${fileCountText}. Please search for, and address, any "TODO(v17)" comments.`);
879
+ }
880
+ _ThemeBaseMigration.migratedFileCount = 0;
881
+ _ThemeBaseMigration.missingBaseMixins = /* @__PURE__ */ new Set();
882
+ _ThemeBaseMigration.foundBaseMixins = /* @__PURE__ */ new Set();
883
+ }
884
+ };
885
+ var ThemeBaseMigration2 = _ThemeBaseMigration;
886
+ (() => {
887
+ _ThemeBaseMigration.migratedFileCount = 0;
888
+ })();
889
+ (() => {
890
+ _ThemeBaseMigration.foundBaseMixins = /* @__PURE__ */ new Set();
891
+ })();
892
+ (() => {
893
+ _ThemeBaseMigration.missingBaseMixins = /* @__PURE__ */ new Set();
894
+ })();
895
+ exports.ThemeBaseMigration = ThemeBaseMigration2;
896
+ }
897
+ });
898
+
899
+ // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/index.mjs
599
900
  var ng_update_exports = {};
600
901
  __export(ng_update_exports, {
601
902
  updateToV17: () => updateToV17
@@ -603,7 +904,8 @@ __export(ng_update_exports, {
603
904
  module.exports = __toCommonJS(ng_update_exports);
604
905
  var import_schematics = require("@angular/cdk/schematics");
605
906
  var import_upgrade_data = __toESM(require_upgrade_data(), 1);
606
- var materialMigrations = [];
907
+ var import_theme_base_v17 = __toESM(require_theme_base_v17(), 1);
908
+ var materialMigrations = [import_theme_base_v17.ThemeBaseMigration];
607
909
  function updateToV17() {
608
910
  return (0, import_schematics.createMigrationSchematicRule)(import_schematics.TargetVersion.V17, materialMigrations, import_upgrade_data.materialUpgradeData, onMigrationComplete);
609
911
  }