@angular/material 17.2.0-next.0 → 17.2.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 (270) hide show
  1. package/autocomplete/_autocomplete-theme.scss +18 -3
  2. package/chips/_chips-theme.scss +17 -0
  3. package/core/theming/_inspection.scss +1 -1
  4. package/core/theming/_m2-inspection.scss +2 -1
  5. package/core/tokens/m2/_index.scss +7 -2
  6. package/core/tokens/m2/mat/_autocomplete.scss +5 -1
  7. package/core/tokens/m2/mat/_chip.scss +63 -0
  8. package/core/tokens/m2/mat/_form-field.scss +1 -1
  9. package/core/tokens/m2/mat/_select.scss +4 -1
  10. package/core/tokens/m2/mat/_sidenav.scss +3 -0
  11. package/core/tokens/m2/mat/_switch.scss +61 -0
  12. package/core/tokens/m2/mdc/_chip.scss +34 -34
  13. package/core/typography/_typography.scss +126 -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 +5 -5
  17. package/esm2022/autocomplete/module.mjs +5 -5
  18. package/esm2022/badge/badge-module.mjs +5 -5
  19. package/esm2022/badge/badge.mjs +7 -7
  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 +7 -7
  24. package/esm2022/button/button.mjs +7 -7
  25. package/esm2022/button/fab.mjs +13 -13
  26. package/esm2022/button/icon-button.mjs +7 -7
  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 +7 -7
  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 +4 -4
  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 +6 -6
  42. package/esm2022/chips/chip-row.mjs +6 -6
  43. package/esm2022/chips/chip-set.mjs +4 -4
  44. package/esm2022/chips/chip.mjs +5 -5
  45. package/esm2022/chips/module.mjs +5 -5
  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/internal-form-field/internal-form-field.mjs +4 -4
  51. package/esm2022/core/line/line.mjs +8 -8
  52. package/esm2022/core/option/index.mjs +5 -5
  53. package/esm2022/core/option/optgroup.mjs +4 -4
  54. package/esm2022/core/option/option.mjs +5 -5
  55. package/esm2022/core/private/ripple-loader.mjs +4 -4
  56. package/esm2022/core/ripple/index.mjs +5 -5
  57. package/esm2022/core/ripple/ripple.mjs +4 -4
  58. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +5 -5
  59. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +4 -4
  60. package/esm2022/core/version.mjs +1 -1
  61. package/esm2022/datepicker/calendar-body.mjs +4 -4
  62. package/esm2022/datepicker/calendar.mjs +7 -7
  63. package/esm2022/datepicker/date-range-input-parts.mjs +10 -10
  64. package/esm2022/datepicker/date-range-input.mjs +4 -4
  65. package/esm2022/datepicker/date-range-picker.mjs +4 -4
  66. package/esm2022/datepicker/date-range-selection-strategy.mjs +4 -4
  67. package/esm2022/datepicker/date-selection-model.mjs +10 -10
  68. package/esm2022/datepicker/datepicker-actions.mjs +10 -10
  69. package/esm2022/datepicker/datepicker-base.mjs +7 -7
  70. package/esm2022/datepicker/datepicker-input-base.mjs +4 -4
  71. package/esm2022/datepicker/datepicker-input.mjs +4 -4
  72. package/esm2022/datepicker/datepicker-intl.mjs +4 -4
  73. package/esm2022/datepicker/datepicker-module.mjs +5 -5
  74. package/esm2022/datepicker/datepicker-toggle.mjs +7 -7
  75. package/esm2022/datepicker/datepicker.mjs +4 -4
  76. package/esm2022/datepicker/month-view.mjs +4 -4
  77. package/esm2022/datepicker/multi-year-view.mjs +4 -4
  78. package/esm2022/datepicker/year-view.mjs +4 -4
  79. package/esm2022/dialog/dialog-container.mjs +4 -4
  80. package/esm2022/dialog/dialog-content-directives.mjs +16 -16
  81. package/esm2022/dialog/dialog.mjs +4 -4
  82. package/esm2022/dialog/module.mjs +5 -5
  83. package/esm2022/divider/divider-module.mjs +5 -5
  84. package/esm2022/divider/divider.mjs +4 -4
  85. package/esm2022/expansion/accordion.mjs +4 -4
  86. package/esm2022/expansion/expansion-module.mjs +5 -5
  87. package/esm2022/expansion/expansion-panel-content.mjs +4 -4
  88. package/esm2022/expansion/expansion-panel-header.mjs +10 -10
  89. package/esm2022/expansion/expansion-panel.mjs +7 -7
  90. package/esm2022/form-field/directives/error.mjs +4 -4
  91. package/esm2022/form-field/directives/floating-label.mjs +4 -4
  92. package/esm2022/form-field/directives/hint.mjs +4 -4
  93. package/esm2022/form-field/directives/label.mjs +4 -4
  94. package/esm2022/form-field/directives/line-ripple.mjs +4 -4
  95. package/esm2022/form-field/directives/notched-outline.mjs +4 -4
  96. package/esm2022/form-field/directives/prefix.mjs +4 -4
  97. package/esm2022/form-field/directives/suffix.mjs +4 -4
  98. package/esm2022/form-field/form-field-control.mjs +4 -4
  99. package/esm2022/form-field/form-field.mjs +4 -4
  100. package/esm2022/form-field/module.mjs +5 -5
  101. package/esm2022/grid-list/grid-list-module.mjs +5 -5
  102. package/esm2022/grid-list/grid-list.mjs +4 -4
  103. package/esm2022/grid-list/grid-tile.mjs +16 -16
  104. package/esm2022/icon/icon-module.mjs +5 -5
  105. package/esm2022/icon/icon-registry.mjs +4 -4
  106. package/esm2022/icon/icon.mjs +4 -4
  107. package/esm2022/icon/testing/fake-icon-registry.mjs +8 -8
  108. package/esm2022/input/input.mjs +4 -4
  109. package/esm2022/input/module.mjs +5 -5
  110. package/esm2022/list/action-list.mjs +4 -4
  111. package/esm2022/list/list-base.mjs +7 -7
  112. package/esm2022/list/list-item-sections.mjs +19 -19
  113. package/esm2022/list/list-module.mjs +5 -5
  114. package/esm2022/list/list-option.mjs +4 -4
  115. package/esm2022/list/list.mjs +7 -7
  116. package/esm2022/list/nav-list.mjs +4 -4
  117. package/esm2022/list/selection-list.mjs +4 -4
  118. package/esm2022/list/subheader.mjs +4 -4
  119. package/esm2022/menu/menu-content.mjs +4 -4
  120. package/esm2022/menu/menu-item.mjs +4 -4
  121. package/esm2022/menu/menu-trigger.mjs +4 -4
  122. package/esm2022/menu/menu.mjs +4 -4
  123. package/esm2022/menu/module.mjs +5 -5
  124. package/esm2022/paginator/module.mjs +5 -5
  125. package/esm2022/paginator/paginator-intl.mjs +4 -4
  126. package/esm2022/paginator/paginator.mjs +4 -4
  127. package/esm2022/progress-bar/module.mjs +5 -5
  128. package/esm2022/progress-bar/progress-bar.mjs +4 -4
  129. package/esm2022/progress-spinner/module.mjs +5 -5
  130. package/esm2022/progress-spinner/progress-spinner.mjs +4 -4
  131. package/esm2022/radio/module.mjs +5 -5
  132. package/esm2022/radio/radio.mjs +7 -7
  133. package/esm2022/select/module.mjs +5 -5
  134. package/esm2022/select/select.mjs +9 -9
  135. package/esm2022/sidenav/drawer.mjs +12 -12
  136. package/esm2022/sidenav/sidenav-module.mjs +5 -5
  137. package/esm2022/sidenav/sidenav.mjs +12 -12
  138. package/esm2022/slide-toggle/module.mjs +9 -9
  139. package/esm2022/slide-toggle/slide-toggle-required-validator.mjs +4 -4
  140. package/esm2022/slide-toggle/slide-toggle.mjs +6 -6
  141. package/esm2022/slider/module.mjs +5 -5
  142. package/esm2022/slider/slider-input.mjs +7 -7
  143. package/esm2022/slider/slider-thumb.mjs +12 -10
  144. package/esm2022/slider/slider.mjs +4 -4
  145. package/esm2022/snack-bar/module.mjs +5 -5
  146. package/esm2022/snack-bar/simple-snack-bar.mjs +4 -4
  147. package/esm2022/snack-bar/snack-bar-container.mjs +4 -4
  148. package/esm2022/snack-bar/snack-bar-content.mjs +10 -10
  149. package/esm2022/snack-bar/snack-bar.mjs +4 -4
  150. package/esm2022/sort/sort-header-intl.mjs +4 -4
  151. package/esm2022/sort/sort-header.mjs +4 -4
  152. package/esm2022/sort/sort-module.mjs +5 -5
  153. package/esm2022/sort/sort.mjs +4 -4
  154. package/esm2022/stepper/step-content.mjs +4 -4
  155. package/esm2022/stepper/step-header.mjs +4 -4
  156. package/esm2022/stepper/step-label.mjs +4 -4
  157. package/esm2022/stepper/stepper-button.mjs +7 -7
  158. package/esm2022/stepper/stepper-icon.mjs +4 -4
  159. package/esm2022/stepper/stepper-intl.mjs +4 -4
  160. package/esm2022/stepper/stepper-module.mjs +5 -5
  161. package/esm2022/stepper/stepper.mjs +7 -7
  162. package/esm2022/table/cell.mjs +22 -22
  163. package/esm2022/table/module.mjs +5 -5
  164. package/esm2022/table/row.mjs +22 -22
  165. package/esm2022/table/table.mjs +7 -7
  166. package/esm2022/table/text-column.mjs +4 -4
  167. package/esm2022/tabs/module.mjs +5 -5
  168. package/esm2022/tabs/paginated-tab-header.mjs +4 -4
  169. package/esm2022/tabs/tab-body.mjs +7 -7
  170. package/esm2022/tabs/tab-content.mjs +4 -4
  171. package/esm2022/tabs/tab-group.mjs +4 -4
  172. package/esm2022/tabs/tab-header.mjs +4 -4
  173. package/esm2022/tabs/tab-label-wrapper.mjs +4 -4
  174. package/esm2022/tabs/tab-label.mjs +4 -4
  175. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +10 -10
  176. package/esm2022/tabs/tab.mjs +4 -4
  177. package/esm2022/toolbar/toolbar-module.mjs +5 -5
  178. package/esm2022/toolbar/toolbar.mjs +7 -7
  179. package/esm2022/tooltip/module.mjs +5 -5
  180. package/esm2022/tooltip/tooltip.mjs +7 -7
  181. package/esm2022/tree/node.mjs +10 -10
  182. package/esm2022/tree/outlet.mjs +4 -4
  183. package/esm2022/tree/padding.mjs +4 -4
  184. package/esm2022/tree/toggle.mjs +4 -4
  185. package/esm2022/tree/tree-module.mjs +5 -5
  186. package/esm2022/tree/tree.mjs +4 -4
  187. package/fesm2022/autocomplete.mjs +14 -14
  188. package/fesm2022/autocomplete.mjs.map +1 -1
  189. package/fesm2022/badge.mjs +10 -10
  190. package/fesm2022/badge.mjs.map +1 -1
  191. package/fesm2022/bottom-sheet.mjs +10 -10
  192. package/fesm2022/bottom-sheet.mjs.map +1 -1
  193. package/fesm2022/button-toggle.mjs +10 -10
  194. package/fesm2022/button-toggle.mjs.map +1 -1
  195. package/fesm2022/button.mjs +34 -34
  196. package/fesm2022/button.mjs.map +1 -1
  197. package/fesm2022/card.mjs +46 -46
  198. package/fesm2022/card.mjs.map +1 -1
  199. package/fesm2022/checkbox.mjs +14 -14
  200. package/fesm2022/checkbox.mjs.map +1 -1
  201. package/fesm2022/chips.mjs +45 -45
  202. package/fesm2022/chips.mjs.map +1 -1
  203. package/fesm2022/core.mjs +60 -60
  204. package/fesm2022/core.mjs.map +1 -1
  205. package/fesm2022/datepicker.mjs +82 -82
  206. package/fesm2022/datepicker.mjs.map +1 -1
  207. package/fesm2022/dialog.mjs +25 -25
  208. package/fesm2022/dialog.mjs.map +1 -1
  209. package/fesm2022/divider.mjs +7 -7
  210. package/fesm2022/divider.mjs.map +1 -1
  211. package/fesm2022/expansion.mjs +25 -25
  212. package/fesm2022/expansion.mjs.map +1 -1
  213. package/fesm2022/form-field.mjs +34 -34
  214. package/fesm2022/form-field.mjs.map +1 -1
  215. package/fesm2022/grid-list.mjs +22 -22
  216. package/fesm2022/grid-list.mjs.map +1 -1
  217. package/fesm2022/icon/testing.mjs +7 -7
  218. package/fesm2022/icon/testing.mjs.map +1 -1
  219. package/fesm2022/icon.mjs +10 -10
  220. package/fesm2022/icon.mjs.map +1 -1
  221. package/fesm2022/input.mjs +7 -7
  222. package/fesm2022/input.mjs.map +1 -1
  223. package/fesm2022/list.mjs +49 -49
  224. package/fesm2022/list.mjs.map +1 -1
  225. package/fesm2022/menu.mjs +16 -16
  226. package/fesm2022/menu.mjs.map +1 -1
  227. package/fesm2022/paginator.mjs +10 -10
  228. package/fesm2022/paginator.mjs.map +1 -1
  229. package/fesm2022/progress-bar.mjs +7 -7
  230. package/fesm2022/progress-bar.mjs.map +1 -1
  231. package/fesm2022/progress-spinner.mjs +7 -7
  232. package/fesm2022/progress-spinner.mjs.map +1 -1
  233. package/fesm2022/radio.mjs +10 -10
  234. package/fesm2022/radio.mjs.map +1 -1
  235. package/fesm2022/select.mjs +12 -12
  236. package/fesm2022/select.mjs.map +1 -1
  237. package/fesm2022/sidenav.mjs +26 -26
  238. package/fesm2022/sidenav.mjs.map +1 -1
  239. package/fesm2022/slide-toggle.mjs +16 -16
  240. package/fesm2022/slide-toggle.mjs.map +1 -1
  241. package/fesm2022/slider.mjs +24 -22
  242. package/fesm2022/slider.mjs.map +1 -1
  243. package/fesm2022/snack-bar.mjs +22 -22
  244. package/fesm2022/snack-bar.mjs.map +1 -1
  245. package/fesm2022/sort.mjs +13 -13
  246. package/fesm2022/sort.mjs.map +1 -1
  247. package/fesm2022/stepper.mjs +31 -31
  248. package/fesm2022/stepper.mjs.map +1 -1
  249. package/fesm2022/table.mjs +55 -55
  250. package/fesm2022/table.mjs.map +1 -1
  251. package/fesm2022/tabs.mjs +40 -40
  252. package/fesm2022/tabs.mjs.map +1 -1
  253. package/fesm2022/toolbar.mjs +10 -10
  254. package/fesm2022/toolbar.mjs.map +1 -1
  255. package/fesm2022/tooltip.mjs +10 -10
  256. package/fesm2022/tooltip.mjs.map +1 -1
  257. package/fesm2022/tree.mjs +25 -25
  258. package/fesm2022/tree.mjs.map +1 -1
  259. package/package.json +2 -2
  260. package/prebuilt-themes/deeppurple-amber.css +1 -1
  261. package/prebuilt-themes/indigo-pink.css +1 -1
  262. package/prebuilt-themes/pink-bluegrey.css +1 -1
  263. package/prebuilt-themes/purple-green.css +1 -1
  264. package/schematics/ng-add/index.js +1 -1
  265. package/schematics/ng-add/index.mjs +1 -1
  266. package/schematics/ng-generate/mdc-migration/index_bundled.js +87 -53
  267. package/schematics/ng-generate/mdc-migration/index_bundled.js.map +2 -2
  268. package/schematics/ng-update/index_bundled.js +31 -31
  269. package/select/_select-theme.scss +6 -1
  270. package/slide-toggle/_slide-toggle-theme.scss +46 -26
@@ -474,9 +474,9 @@ var require_tslib = __commonJS({
474
474
  }
475
475
  });
476
476
 
477
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/migrations/legacy-imports-error.js
477
+ // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/legacy-imports-error.js
478
478
  var require_legacy_imports_error = __commonJS({
479
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/migrations/legacy-imports-error.js"(exports) {
479
+ "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/legacy-imports-error.js"(exports) {
480
480
  "use strict";
481
481
  Object.defineProperty(exports, "__esModule", { value: true });
482
482
  exports.legacyImportsError = void 0;
@@ -547,9 +547,9 @@ ${filesMessage}
547
547
  }
548
548
  });
549
549
 
550
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/attribute-selectors.js
550
+ // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/attribute-selectors.js
551
551
  var require_attribute_selectors = __commonJS({
552
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/attribute-selectors.js"(exports) {
552
+ "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/attribute-selectors.js"(exports) {
553
553
  "use strict";
554
554
  Object.defineProperty(exports, "__esModule", { value: true });
555
555
  exports.attributeSelectors = void 0;
@@ -557,9 +557,9 @@ var require_attribute_selectors = __commonJS({
557
557
  }
558
558
  });
559
559
 
560
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/class-names.js
560
+ // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/class-names.js
561
561
  var require_class_names = __commonJS({
562
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/class-names.js"(exports) {
562
+ "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/class-names.js"(exports) {
563
563
  "use strict";
564
564
  Object.defineProperty(exports, "__esModule", { value: true });
565
565
  exports.classNames = void 0;
@@ -567,9 +567,9 @@ var require_class_names = __commonJS({
567
567
  }
568
568
  });
569
569
 
570
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/constructor-checks.js
570
+ // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/constructor-checks.js
571
571
  var require_constructor_checks = __commonJS({
572
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/constructor-checks.js"(exports) {
572
+ "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/constructor-checks.js"(exports) {
573
573
  "use strict";
574
574
  Object.defineProperty(exports, "__esModule", { value: true });
575
575
  exports.constructorChecks = void 0;
@@ -577,9 +577,9 @@ var require_constructor_checks = __commonJS({
577
577
  }
578
578
  });
579
579
 
580
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/css-selectors.js
580
+ // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/css-selectors.js
581
581
  var require_css_selectors = __commonJS({
582
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/css-selectors.js"(exports) {
582
+ "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/css-selectors.js"(exports) {
583
583
  "use strict";
584
584
  Object.defineProperty(exports, "__esModule", { value: true });
585
585
  exports.cssSelectors = void 0;
@@ -587,9 +587,9 @@ var require_css_selectors = __commonJS({
587
587
  }
588
588
  });
589
589
 
590
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/element-selectors.js
590
+ // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/element-selectors.js
591
591
  var require_element_selectors = __commonJS({
592
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/element-selectors.js"(exports) {
592
+ "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/element-selectors.js"(exports) {
593
593
  "use strict";
594
594
  Object.defineProperty(exports, "__esModule", { value: true });
595
595
  exports.elementSelectors = void 0;
@@ -597,9 +597,9 @@ var require_element_selectors = __commonJS({
597
597
  }
598
598
  });
599
599
 
600
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/input-names.js
600
+ // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/input-names.js
601
601
  var require_input_names = __commonJS({
602
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/input-names.js"(exports) {
602
+ "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/input-names.js"(exports) {
603
603
  "use strict";
604
604
  Object.defineProperty(exports, "__esModule", { value: true });
605
605
  exports.inputNames = void 0;
@@ -607,9 +607,9 @@ var require_input_names = __commonJS({
607
607
  }
608
608
  });
609
609
 
610
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/method-call-checks.js
610
+ // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/method-call-checks.js
611
611
  var require_method_call_checks = __commonJS({
612
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/method-call-checks.js"(exports) {
612
+ "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/method-call-checks.js"(exports) {
613
613
  "use strict";
614
614
  Object.defineProperty(exports, "__esModule", { value: true });
615
615
  exports.methodCallChecks = void 0;
@@ -617,9 +617,9 @@ var require_method_call_checks = __commonJS({
617
617
  }
618
618
  });
619
619
 
620
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/output-names.js
620
+ // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/output-names.js
621
621
  var require_output_names = __commonJS({
622
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/output-names.js"(exports) {
622
+ "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/output-names.js"(exports) {
623
623
  "use strict";
624
624
  Object.defineProperty(exports, "__esModule", { value: true });
625
625
  exports.outputNames = void 0;
@@ -627,9 +627,9 @@ var require_output_names = __commonJS({
627
627
  }
628
628
  });
629
629
 
630
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/property-names.js
630
+ // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/property-names.js
631
631
  var require_property_names = __commonJS({
632
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/property-names.js"(exports) {
632
+ "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/property-names.js"(exports) {
633
633
  "use strict";
634
634
  Object.defineProperty(exports, "__esModule", { value: true });
635
635
  exports.propertyNames = void 0;
@@ -637,9 +637,9 @@ var require_property_names = __commonJS({
637
637
  }
638
638
  });
639
639
 
640
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/symbol-removal.js
640
+ // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/symbol-removal.js
641
641
  var require_symbol_removal = __commonJS({
642
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/symbol-removal.js"(exports) {
642
+ "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/symbol-removal.js"(exports) {
643
643
  "use strict";
644
644
  Object.defineProperty(exports, "__esModule", { value: true });
645
645
  exports.symbolRemoval = void 0;
@@ -647,9 +647,9 @@ var require_symbol_removal = __commonJS({
647
647
  }
648
648
  });
649
649
 
650
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/index.js
650
+ // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/index.js
651
651
  var require_data = __commonJS({
652
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/index.js"(exports) {
652
+ "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/index.js"(exports) {
653
653
  "use strict";
654
654
  Object.defineProperty(exports, "__esModule", { value: true });
655
655
  var tslib_1 = require_tslib();
@@ -666,9 +666,9 @@ var require_data = __commonJS({
666
666
  }
667
667
  });
668
668
 
669
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/upgrade-data.js
669
+ // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/upgrade-data.js
670
670
  var require_upgrade_data = __commonJS({
671
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/upgrade-data.js"(exports) {
671
+ "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/upgrade-data.js"(exports) {
672
672
  "use strict";
673
673
  Object.defineProperty(exports, "__esModule", { value: true });
674
674
  exports.materialUpgradeData = void 0;
@@ -688,9 +688,9 @@ var require_upgrade_data = __commonJS({
688
688
  }
689
689
  });
690
690
 
691
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/migrations/theme-base-v17/migration.js
691
+ // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/theme-base-v17/migration.js
692
692
  var require_migration = __commonJS({
693
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/migrations/theme-base-v17/migration.js"(exports) {
693
+ "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/theme-base-v17/migration.js"(exports) {
694
694
  "use strict";
695
695
  Object.defineProperty(exports, "__esModule", { value: true });
696
696
  exports.addThemeBaseMixins = exports.checkThemeBaseMixins = void 0;
@@ -907,9 +907,9 @@ var require_migration = __commonJS({
907
907
  }
908
908
  });
909
909
 
910
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/migrations/theme-base-v17/index.js
910
+ // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/theme-base-v17/index.js
911
911
  var require_theme_base_v17 = __commonJS({
912
- "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/migrations/theme-base-v17/index.js"(exports) {
912
+ "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/theme-base-v17/index.js"(exports) {
913
913
  "use strict";
914
914
  Object.defineProperty(exports, "__esModule", { value: true });
915
915
  exports.ThemeBaseMigration = void 0;
@@ -992,7 +992,7 @@ ${mixinsText}`
992
992
  }
993
993
  });
994
994
 
995
- // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/index.mjs
995
+ // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/index.mjs
996
996
  var ng_update_exports = {};
997
997
  __export(ng_update_exports, {
998
998
  updateToV17: () => updateToV17
@@ -15,7 +15,12 @@
15
15
  @if inspection.get-theme-version($theme) == 1 {
16
16
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
17
17
  }
18
- @else {}
18
+ @else {
19
+ @include sass-utils.current-selector-or-root() {
20
+ $mat-tokens: tokens-mat-select.get-unthemable-tokens();
21
+ @include token-utils.create-token-values(tokens-mat-select.$prefix, $mat-tokens);
22
+ }
23
+ }
19
24
  }
20
25
 
21
26
  /// Outputs color theme styles for the mat-select.
@@ -1,10 +1,12 @@
1
1
  @use '@material/switch/switch-theme' as mdc-switch-theme;
2
2
  @use '@material/form-field/form-field-theme' as mdc-form-field-theme;
3
+ @use '../core/style/sass-utils';
3
4
  @use '../core/theming/theming';
4
5
  @use '../core/theming/inspection';
5
6
  @use '../core/tokens/token-utils';
6
7
  @use '../core/typography/typography';
7
8
  @use '../core/tokens/m2/mdc/form-field' as tokens-mdc-form-field;
9
+ @use '../core/tokens/m2/mat/switch' as tokens-mat-switch;
8
10
  @use '../core/tokens/m2/mdc/switch' as tokens-mdc-switch;
9
11
 
10
12
  /// Outputs base theme styles (styles not dependent on the color, typography, or density settings)
@@ -15,8 +17,11 @@
15
17
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
16
18
  }
17
19
  @else {
18
- .mdc-switch {
19
- @include mdc-switch-theme.theme(tokens-mdc-switch.get-unthemable-tokens());
20
+ @include sass-utils.current-selector-or-root() {
21
+ $mat-tokens: tokens-mat-switch.get-unthemable-tokens();
22
+ $mdc-tokens: tokens-mdc-switch.get-unthemable-tokens();
23
+ @include mdc-switch-theme.theme($mdc-tokens);
24
+ @include token-utils.create-token-values(tokens-mat-switch.$prefix, $mat-tokens);
20
25
  }
21
26
  }
22
27
  }
@@ -32,29 +37,34 @@
32
37
  }
33
38
  @else {
34
39
  $is-dark: inspection.get-theme-type($theme) == dark;
35
- $mdc-switch-color-tokens: tokens-mdc-switch.get-color-tokens($theme);
40
+ $mat-tokens: tokens-mat-switch.get-color-tokens($theme);
41
+ $mdc-tokens: tokens-mdc-switch.get-color-tokens($theme);
36
42
 
37
43
  // Add values for MDC slide toggles tokens
38
- .mat-mdc-slide-toggle {
39
- @include mdc-switch-theme.theme($mdc-switch-color-tokens);
40
- @include mdc-form-field-theme.theme(tokens-mdc-form-field.get-color-tokens($theme));
44
+ @include sass-utils.current-selector-or-root() {
45
+ @include mdc-switch-theme.theme($mdc-tokens);
46
+ @include token-utils.create-token-values(tokens-mat-switch.$prefix, $mat-tokens);
41
47
 
42
48
  // TODO(wagnermaciel): Use our token system to define this css variable.
43
- --mdc-switch-disabled-label-text-color: #{inspection.get-theme-color(
44
- $theme,
45
- foreground,
46
- disabled-text
47
- )};
49
+ --mdc-switch-disabled-label-text-color: #{inspection.get-theme-color(
50
+ $theme,
51
+ foreground,
52
+ disabled-text
53
+ )};
48
54
 
49
- // Change the color palette related tokens to accent or warn if applicable
50
- &.mat-accent {
51
- @include mdc-switch-theme.theme(
52
- tokens-mdc-switch.private-get-color-palette-color-tokens($theme, accent));
53
- }
55
+ .mat-mdc-slide-toggle {
56
+ @include mdc-form-field-theme.theme(tokens-mdc-form-field.get-color-tokens($theme));
57
+
58
+ // Change the color palette related tokens to accent or warn if applicable
59
+ &.mat-accent {
60
+ @include mdc-switch-theme.theme(
61
+ tokens-mdc-switch.private-get-color-palette-color-tokens($theme, accent));
62
+ }
54
63
 
55
- &.mat-warn {
56
- @include mdc-switch-theme.theme(
57
- tokens-mdc-switch.private-get-color-palette-color-tokens($theme, warn));
64
+ &.mat-warn {
65
+ @include mdc-switch-theme.theme(
66
+ tokens-mdc-switch.private-get-color-palette-color-tokens($theme, warn));
67
+ }
58
68
  }
59
69
  }
60
70
  }
@@ -67,12 +77,17 @@
67
77
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
68
78
  }
69
79
  @else {
70
- $mdc-switch-typography-tokens: tokens-mdc-switch.get-typography-tokens($theme);
80
+ $mat-tokens: tokens-mat-switch.get-typography-tokens($theme);
81
+ $mdc-tokens: tokens-mdc-switch.get-typography-tokens($theme);
71
82
 
72
83
  // Add values for MDC slide toggle tokens
73
- .mat-mdc-slide-toggle {
74
- @include mdc-switch-theme.theme($mdc-switch-typography-tokens);
75
- @include mdc-form-field-theme.theme(tokens-mdc-form-field.get-typography-tokens($theme));
84
+ @include sass-utils.current-selector-or-root() {
85
+ @include mdc-switch-theme.theme($mdc-tokens);
86
+ @include token-utils.create-token-values(tokens-mat-switch.$prefix, $mat-tokens);
87
+
88
+ .mat-mdc-slide-toggle {
89
+ @include mdc-form-field-theme.theme(tokens-mdc-form-field.get-typography-tokens($theme));
90
+ }
76
91
  }
77
92
  }
78
93
  }
@@ -84,7 +99,9 @@
84
99
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
85
100
  }
86
101
  @else {
87
- .mat-mdc-slide-toggle {
102
+ @include sass-utils.current-selector-or-root() {
103
+ $mat-tokens: tokens-mat-switch.get-density-tokens($theme);
104
+ $mdc-tokens: tokens-mdc-switch.get-density-tokens($theme);
88
105
  @include mdc-switch-theme.theme(tokens-mdc-switch.get-density-tokens($theme));
89
106
  }
90
107
  }
@@ -116,10 +133,13 @@
116
133
  }
117
134
 
118
135
  @mixin _theme-from-tokens($tokens, $options...) {
119
- $mdc-switch-tokens: token-utils.get-tokens-for($tokens, tokens-mdc-switch.$prefix, $options...);
120
136
  // Don't pass $options here, since the mdc-form-field doesn't support color options,
121
137
  // only the mdc-switch does.
122
138
  $mdc-form-field-tokens: token-utils.get-tokens-for($tokens, tokens-mdc-form-field.$prefix);
123
- @include mdc-switch-theme.theme($mdc-switch-tokens);
139
+ $mat-switch-tokens: token-utils.get-tokens-for($tokens, tokens-mat-switch.$prefix);
140
+ $mdc-switch-tokens: token-utils.get-tokens-for($tokens, tokens-mdc-switch.$prefix, $options...);
141
+
124
142
  @include mdc-form-field-theme.theme($mdc-form-field-tokens);
143
+ @include mdc-switch-theme.theme($mdc-switch-tokens);
144
+ @include token-utils.create-token-values(tokens-mat-switch.$prefix, $mat-switch-tokens);
125
145
  }