@angular/material 17.0.0 → 17.1.0-next.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 (182) hide show
  1. package/autocomplete/index.d.ts +0 -2
  2. package/button/_button-theme.scss +4 -0
  3. package/button/_icon-button-theme.scss +5 -1
  4. package/card/testing/index.d.ts +1 -1
  5. package/checkbox/index.d.ts +1 -1
  6. package/chips/index.d.ts +71 -67
  7. package/core/index.d.ts +1 -1
  8. package/core/ripple/_ripple-theme.scss +51 -19
  9. package/core/tokens/m2/_index.scss +29 -8
  10. package/datepicker/index.d.ts +21 -23
  11. package/datepicker/testing/index.d.ts +1 -1
  12. package/dialog/index.d.ts +1 -1
  13. package/dialog/testing/index.d.ts +1 -1
  14. package/esm2022/autocomplete/autocomplete-trigger.mjs +7 -7
  15. package/esm2022/button/icon-button.mjs +4 -4
  16. package/esm2022/card/testing/card-harness.mjs +9 -1
  17. package/esm2022/checkbox/checkbox.mjs +29 -14
  18. package/esm2022/chips/chip-action.mjs +14 -13
  19. package/esm2022/chips/chip-grid.mjs +29 -16
  20. package/esm2022/chips/chip-input.mjs +14 -17
  21. package/esm2022/chips/chip-listbox.mjs +19 -22
  22. package/esm2022/chips/chip-option.mjs +11 -10
  23. package/esm2022/chips/chip-row.mjs +4 -4
  24. package/esm2022/chips/chip-set.mjs +19 -18
  25. package/esm2022/chips/chip.mjs +49 -42
  26. package/esm2022/core/ripple/ripple-ref.mjs +10 -2
  27. package/esm2022/core/ripple/ripple-renderer.mjs +11 -11
  28. package/esm2022/core/version.mjs +1 -1
  29. package/esm2022/datepicker/calendar-body.mjs +2 -2
  30. package/esm2022/datepicker/date-range-input.mjs +10 -10
  31. package/esm2022/datepicker/datepicker-base.mjs +41 -49
  32. package/esm2022/datepicker/datepicker-input-base.mjs +6 -6
  33. package/esm2022/datepicker/datepicker-toggle.mjs +6 -6
  34. package/esm2022/datepicker/testing/calendar-harness.mjs +11 -4
  35. package/esm2022/dialog/dialog-ref.mjs +10 -4
  36. package/esm2022/dialog/testing/dialog-harness.mjs +11 -4
  37. package/esm2022/dialog/testing/public-api.mjs +2 -2
  38. package/esm2022/expansion/accordion.mjs +7 -13
  39. package/esm2022/expansion/expansion-panel-header.mjs +13 -13
  40. package/esm2022/expansion/expansion-panel.mjs +6 -6
  41. package/esm2022/expansion/testing/expansion-harness.mjs +14 -6
  42. package/esm2022/grid-list/testing/grid-tile-harness.mjs +9 -3
  43. package/esm2022/icon/icon.mjs +24 -28
  44. package/esm2022/icon/testing/icon-harness-filters.mjs +7 -2
  45. package/esm2022/icon/testing/icon-harness.mjs +4 -3
  46. package/esm2022/list/list-base.mjs +6 -6
  47. package/esm2022/list/testing/list-item-harness-base.mjs +18 -6
  48. package/esm2022/list/testing/public-api.mjs +2 -2
  49. package/esm2022/paginator/paginator.mjs +32 -35
  50. package/esm2022/progress-bar/progress-bar.mjs +25 -20
  51. package/esm2022/progress-spinner/progress-spinner.mjs +34 -33
  52. package/esm2022/radio/radio.mjs +40 -34
  53. package/esm2022/select/select.mjs +45 -37
  54. package/esm2022/slider/slider-input.mjs +23 -22
  55. package/esm2022/slider/slider-interface.mjs +16 -1
  56. package/esm2022/slider/slider-thumb.mjs +6 -6
  57. package/esm2022/slider/slider.mjs +73 -72
  58. package/esm2022/slider/testing/slider-harness-filters.mjs +7 -2
  59. package/esm2022/slider/testing/slider-harness.mjs +4 -3
  60. package/esm2022/slider/testing/slider-thumb-harness.mjs +3 -2
  61. package/esm2022/sort/sort-header.mjs +16 -24
  62. package/esm2022/sort/sort.mjs +12 -19
  63. package/esm2022/stepper/step-header.mjs +7 -12
  64. package/esm2022/stepper/stepper.mjs +1 -1
  65. package/esm2022/stepper/testing/step-harness-filters.mjs +7 -2
  66. package/esm2022/stepper/testing/stepper-harness.mjs +4 -3
  67. package/esm2022/tabs/paginated-tab-header.mjs +12 -18
  68. package/esm2022/tabs/tab-group.mjs +54 -70
  69. package/esm2022/tabs/tab-header.mjs +7 -13
  70. package/esm2022/tabs/tab-label-wrapper.mjs +12 -8
  71. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +43 -37
  72. package/esm2022/tabs/tab.mjs +12 -12
  73. package/esm2022/toolbar/testing/toolbar-harness.mjs +7 -2
  74. package/esm2022/toolbar/toolbar.mjs +11 -16
  75. package/esm2022/tree/node.mjs +20 -20
  76. package/esm2022/tree/padding.mjs +11 -4
  77. package/expansion/index.d.ts +11 -19
  78. package/expansion/testing/index.d.ts +1 -1
  79. package/fesm2022/autocomplete.mjs +6 -6
  80. package/fesm2022/autocomplete.mjs.map +1 -1
  81. package/fesm2022/button.mjs +4 -4
  82. package/fesm2022/button.mjs.map +1 -1
  83. package/fesm2022/card/testing.mjs +9 -1
  84. package/fesm2022/card/testing.mjs.map +1 -1
  85. package/fesm2022/checkbox.mjs +29 -14
  86. package/fesm2022/checkbox.mjs.map +1 -1
  87. package/fesm2022/chips.mjs +144 -119
  88. package/fesm2022/chips.mjs.map +1 -1
  89. package/fesm2022/core.mjs +20 -12
  90. package/fesm2022/core.mjs.map +1 -1
  91. package/fesm2022/datepicker/testing.mjs +11 -4
  92. package/fesm2022/datepicker/testing.mjs.map +1 -1
  93. package/fesm2022/datepicker.mjs +57 -62
  94. package/fesm2022/datepicker.mjs.map +1 -1
  95. package/fesm2022/dialog/testing.mjs +11 -4
  96. package/fesm2022/dialog/testing.mjs.map +1 -1
  97. package/fesm2022/dialog.mjs +10 -4
  98. package/fesm2022/dialog.mjs.map +1 -1
  99. package/fesm2022/expansion/testing.mjs +14 -6
  100. package/fesm2022/expansion/testing.mjs.map +1 -1
  101. package/fesm2022/expansion.mjs +22 -26
  102. package/fesm2022/expansion.mjs.map +1 -1
  103. package/fesm2022/grid-list/testing.mjs +9 -3
  104. package/fesm2022/grid-list/testing.mjs.map +1 -1
  105. package/fesm2022/icon/testing.mjs +10 -3
  106. package/fesm2022/icon/testing.mjs.map +1 -1
  107. package/fesm2022/icon.mjs +24 -27
  108. package/fesm2022/icon.mjs.map +1 -1
  109. package/fesm2022/list/testing.mjs +18 -6
  110. package/fesm2022/list/testing.mjs.map +1 -1
  111. package/fesm2022/list.mjs +5 -5
  112. package/fesm2022/list.mjs.map +1 -1
  113. package/fesm2022/paginator.mjs +31 -34
  114. package/fesm2022/paginator.mjs.map +1 -1
  115. package/fesm2022/progress-bar.mjs +25 -19
  116. package/fesm2022/progress-bar.mjs.map +1 -1
  117. package/fesm2022/progress-spinner.mjs +34 -32
  118. package/fesm2022/progress-spinner.mjs.map +1 -1
  119. package/fesm2022/radio.mjs +41 -34
  120. package/fesm2022/radio.mjs.map +1 -1
  121. package/fesm2022/select.mjs +44 -36
  122. package/fesm2022/select.mjs.map +1 -1
  123. package/fesm2022/slider/testing.mjs +11 -4
  124. package/fesm2022/slider/testing.mjs.map +1 -1
  125. package/fesm2022/slider.mjs +109 -91
  126. package/fesm2022/slider.mjs.map +1 -1
  127. package/fesm2022/sort.mjs +25 -38
  128. package/fesm2022/sort.mjs.map +1 -1
  129. package/fesm2022/stepper/testing.mjs +10 -3
  130. package/fesm2022/stepper/testing.mjs.map +1 -1
  131. package/fesm2022/stepper.mjs +8 -12
  132. package/fesm2022/stepper.mjs.map +1 -1
  133. package/fesm2022/tabs.mjs +130 -141
  134. package/fesm2022/tabs.mjs.map +1 -1
  135. package/fesm2022/toolbar/testing.mjs +7 -2
  136. package/fesm2022/toolbar/testing.mjs.map +1 -1
  137. package/fesm2022/toolbar.mjs +11 -15
  138. package/fesm2022/toolbar.mjs.map +1 -1
  139. package/fesm2022/tree.mjs +22 -21
  140. package/fesm2022/tree.mjs.map +1 -1
  141. package/form-field/_form-field-theme.scss +85 -49
  142. package/grid-list/_grid-list-theme.scss +47 -14
  143. package/grid-list/testing/index.d.ts +1 -1
  144. package/icon/index.d.ts +10 -16
  145. package/icon/testing/index.d.ts +1 -1
  146. package/input/_input-theme.scss +39 -12
  147. package/list/_list-theme.scss +115 -83
  148. package/list/testing/index.d.ts +2 -2
  149. package/package.json +7 -7
  150. package/paginator/index.d.ts +16 -17
  151. package/prebuilt-themes/deeppurple-amber.css +1 -1
  152. package/prebuilt-themes/indigo-pink.css +1 -1
  153. package/prebuilt-themes/pink-bluegrey.css +1 -1
  154. package/prebuilt-themes/purple-green.css +1 -1
  155. package/progress-bar/index.d.ts +12 -15
  156. package/progress-spinner/index.d.ts +14 -15
  157. package/radio/index.d.ts +20 -22
  158. package/schematics/ng-add/index.js +2 -2
  159. package/schematics/ng-add/index.mjs +2 -2
  160. package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +28 -29
  161. package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +21 -19
  162. package/schematics/ng-generate/mdc-migration/index_bundled.js +55 -48
  163. package/schematics/ng-generate/mdc-migration/index_bundled.js.map +3 -3
  164. package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +9 -8
  165. package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +1 -2
  166. package/schematics/ng-update/index_bundled.js +31 -31
  167. package/select/index.d.ts +22 -17
  168. package/slide-toggle/_slide-toggle-theme.scss +78 -44
  169. package/slider/index.d.ts +30 -30
  170. package/slider/testing/index.d.ts +1 -1
  171. package/sort/_sort-theme.scss +51 -20
  172. package/sort/index.d.ts +15 -20
  173. package/stepper/_stepper-theme.scss +58 -25
  174. package/stepper/index.d.ts +5 -15
  175. package/stepper/testing/index.d.ts +1 -1
  176. package/table/_table-theme.scss +53 -20
  177. package/tabs/_tabs-theme.scss +87 -51
  178. package/tabs/index.d.ts +61 -64
  179. package/toolbar/index.d.ts +5 -12
  180. package/toolbar/testing/index.d.ts +1 -1
  181. package/tree/_tree-theme.scss +53 -21
  182. package/tree/index.d.ts +13 -15
@@ -12,14 +12,15 @@
12
12
  </mat-sidenav>
13
13
  <mat-sidenav-content>
14
14
  <mat-toolbar color="primary">
15
- <button
16
- type="button"
17
- aria-label="Toggle sidenav"
18
- mat-icon-button
19
- (click)="drawer.toggle()"
20
- *ngIf="isHandset$ | async">
21
- <mat-icon aria-label="Side nav toggle icon">menu</mat-icon>
22
- </button>
15
+ @if (isHandset$ | async) {
16
+ <button
17
+ type="button"
18
+ aria-label="Toggle sidenav"
19
+ mat-icon-button
20
+ (click)="drawer.toggle()">
21
+ <mat-icon aria-label="Side nav toggle icon">menu</mat-icon>
22
+ </button>
23
+ }
23
24
  <span><%= project %></span>
24
25
  </mat-toolbar>
25
26
  <!-- Add Content Here -->
@@ -1,5 +1,6 @@
1
1
  import { Component, inject<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%><% if(changeDetection !== 'Default') { %>, ChangeDetectionStrategy<% }%> } from '@angular/core';
2
2
  import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';<% if(standalone) { %>
3
+ import { AsyncPipe } from '@angular/common';
3
4
  import { MatToolbarModule } from '@angular/material/toolbar';
4
5
  import { MatButtonModule } from '@angular/material/button';
5
6
  import { MatSidenavModule } from '@angular/material/sidenav';
@@ -7,7 +8,6 @@ import { MatListModule } from '@angular/material/list';
7
8
  import { MatIconModule } from '@angular/material/icon';<% } %>
8
9
  import { Observable } from 'rxjs';
9
10
  import { map, shareReplay } from 'rxjs/operators';
10
- import { AsyncPipe, NgIf } from '@angular/common';
11
11
 
12
12
  @Component({
13
13
  selector: '<%= selector %>',<% if(inlineTemplate) { %>
@@ -29,7 +29,6 @@ import { AsyncPipe, NgIf } from '@angular/common';
29
29
  MatListModule,
30
30
  MatIconModule,
31
31
  AsyncPipe,
32
- NgIf
33
32
  ]<% } %>
34
33
  })
35
34
  export class <%= classify(name) %>Component {
@@ -474,9 +474,9 @@ var require_tslib = __commonJS({
474
474
  }
475
475
  });
476
476
 
477
- // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/migrations/legacy-imports-error.js
477
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/migrations/legacy-imports-error.js
478
478
  var require_legacy_imports_error = __commonJS({
479
- "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/migrations/legacy-imports-error.js"(exports) {
479
+ "bazel-out/darwin_arm64-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;
@@ -543,9 +543,9 @@ ${filesMessage}
543
543
  }
544
544
  });
545
545
 
546
- // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/attribute-selectors.js
546
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/attribute-selectors.js
547
547
  var require_attribute_selectors = __commonJS({
548
- "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/attribute-selectors.js"(exports) {
548
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/attribute-selectors.js"(exports) {
549
549
  "use strict";
550
550
  Object.defineProperty(exports, "__esModule", { value: true });
551
551
  exports.attributeSelectors = void 0;
@@ -553,9 +553,9 @@ var require_attribute_selectors = __commonJS({
553
553
  }
554
554
  });
555
555
 
556
- // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/class-names.js
556
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/class-names.js
557
557
  var require_class_names = __commonJS({
558
- "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/class-names.js"(exports) {
558
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/class-names.js"(exports) {
559
559
  "use strict";
560
560
  Object.defineProperty(exports, "__esModule", { value: true });
561
561
  exports.classNames = void 0;
@@ -563,9 +563,9 @@ var require_class_names = __commonJS({
563
563
  }
564
564
  });
565
565
 
566
- // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/constructor-checks.js
566
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/constructor-checks.js
567
567
  var require_constructor_checks = __commonJS({
568
- "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/constructor-checks.js"(exports) {
568
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/constructor-checks.js"(exports) {
569
569
  "use strict";
570
570
  Object.defineProperty(exports, "__esModule", { value: true });
571
571
  exports.constructorChecks = void 0;
@@ -573,9 +573,9 @@ var require_constructor_checks = __commonJS({
573
573
  }
574
574
  });
575
575
 
576
- // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/css-selectors.js
576
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/css-selectors.js
577
577
  var require_css_selectors = __commonJS({
578
- "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/css-selectors.js"(exports) {
578
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/css-selectors.js"(exports) {
579
579
  "use strict";
580
580
  Object.defineProperty(exports, "__esModule", { value: true });
581
581
  exports.cssSelectors = void 0;
@@ -583,9 +583,9 @@ var require_css_selectors = __commonJS({
583
583
  }
584
584
  });
585
585
 
586
- // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/element-selectors.js
586
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/element-selectors.js
587
587
  var require_element_selectors = __commonJS({
588
- "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/element-selectors.js"(exports) {
588
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/element-selectors.js"(exports) {
589
589
  "use strict";
590
590
  Object.defineProperty(exports, "__esModule", { value: true });
591
591
  exports.elementSelectors = void 0;
@@ -593,9 +593,9 @@ var require_element_selectors = __commonJS({
593
593
  }
594
594
  });
595
595
 
596
- // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/input-names.js
596
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/input-names.js
597
597
  var require_input_names = __commonJS({
598
- "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/input-names.js"(exports) {
598
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/input-names.js"(exports) {
599
599
  "use strict";
600
600
  Object.defineProperty(exports, "__esModule", { value: true });
601
601
  exports.inputNames = void 0;
@@ -603,9 +603,9 @@ var require_input_names = __commonJS({
603
603
  }
604
604
  });
605
605
 
606
- // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/method-call-checks.js
606
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/method-call-checks.js
607
607
  var require_method_call_checks = __commonJS({
608
- "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/method-call-checks.js"(exports) {
608
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/method-call-checks.js"(exports) {
609
609
  "use strict";
610
610
  Object.defineProperty(exports, "__esModule", { value: true });
611
611
  exports.methodCallChecks = void 0;
@@ -613,9 +613,9 @@ var require_method_call_checks = __commonJS({
613
613
  }
614
614
  });
615
615
 
616
- // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/output-names.js
616
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/output-names.js
617
617
  var require_output_names = __commonJS({
618
- "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/output-names.js"(exports) {
618
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/output-names.js"(exports) {
619
619
  "use strict";
620
620
  Object.defineProperty(exports, "__esModule", { value: true });
621
621
  exports.outputNames = void 0;
@@ -623,9 +623,9 @@ var require_output_names = __commonJS({
623
623
  }
624
624
  });
625
625
 
626
- // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/property-names.js
626
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/property-names.js
627
627
  var require_property_names = __commonJS({
628
- "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/property-names.js"(exports) {
628
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/property-names.js"(exports) {
629
629
  "use strict";
630
630
  Object.defineProperty(exports, "__esModule", { value: true });
631
631
  exports.propertyNames = void 0;
@@ -633,9 +633,9 @@ var require_property_names = __commonJS({
633
633
  }
634
634
  });
635
635
 
636
- // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/symbol-removal.js
636
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/symbol-removal.js
637
637
  var require_symbol_removal = __commonJS({
638
- "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/symbol-removal.js"(exports) {
638
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/symbol-removal.js"(exports) {
639
639
  "use strict";
640
640
  Object.defineProperty(exports, "__esModule", { value: true });
641
641
  exports.symbolRemoval = void 0;
@@ -643,9 +643,9 @@ var require_symbol_removal = __commonJS({
643
643
  }
644
644
  });
645
645
 
646
- // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/index.js
646
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/index.js
647
647
  var require_data = __commonJS({
648
- "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/data/index.js"(exports) {
648
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/index.js"(exports) {
649
649
  "use strict";
650
650
  Object.defineProperty(exports, "__esModule", { value: true });
651
651
  var tslib_1 = require_tslib();
@@ -662,9 +662,9 @@ var require_data = __commonJS({
662
662
  }
663
663
  });
664
664
 
665
- // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/upgrade-data.js
665
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/upgrade-data.js
666
666
  var require_upgrade_data = __commonJS({
667
- "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/upgrade-data.js"(exports) {
667
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/upgrade-data.js"(exports) {
668
668
  "use strict";
669
669
  Object.defineProperty(exports, "__esModule", { value: true });
670
670
  exports.materialUpgradeData = void 0;
@@ -684,9 +684,9 @@ var require_upgrade_data = __commonJS({
684
684
  }
685
685
  });
686
686
 
687
- // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/migrations/theme-base-v17/migration.js
687
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/migrations/theme-base-v17/migration.js
688
688
  var require_migration = __commonJS({
689
- "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/migrations/theme-base-v17/migration.js"(exports) {
689
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/migrations/theme-base-v17/migration.js"(exports) {
690
690
  "use strict";
691
691
  Object.defineProperty(exports, "__esModule", { value: true });
692
692
  exports.addThemeBaseMixins = exports.checkThemeBaseMixins = void 0;
@@ -903,9 +903,9 @@ var require_migration = __commonJS({
903
903
  }
904
904
  });
905
905
 
906
- // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/migrations/theme-base-v17/index.js
906
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/migrations/theme-base-v17/index.js
907
907
  var require_theme_base_v17 = __commonJS({
908
- "bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/migrations/theme-base-v17/index.js"(exports) {
908
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/migrations/theme-base-v17/index.js"(exports) {
909
909
  "use strict";
910
910
  Object.defineProperty(exports, "__esModule", { value: true });
911
911
  exports.ThemeBaseMigration = void 0;
@@ -988,7 +988,7 @@ ${mixinsText}`
988
988
  }
989
989
  });
990
990
 
991
- // bazel-out/darwin-fastbuild/bin/src/material/schematics/ng-update/index.mjs
991
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/index.mjs
992
992
  var ng_update_exports = {};
993
993
  __export(ng_update_exports, {
994
994
  updateToV17: () => updateToV17
package/select/index.d.ts CHANGED
@@ -2,9 +2,6 @@ import { _AbstractConstructor } from '@angular/material/core';
2
2
  import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
3
3
  import { AfterContentInit } from '@angular/core';
4
4
  import { AnimationTriggerMetadata } from '@angular/animations';
5
- import { BooleanInput } from '@angular/cdk/coercion';
6
- import { CanDisable } from '@angular/material/core';
7
- import { CanDisableRipple } from '@angular/material/core';
8
5
  import { CanUpdateErrorState } from '@angular/material/core';
9
6
  import { CdkConnectedOverlay } from '@angular/cdk/overlay';
10
7
  import { CdkOverlayOrigin } from '@angular/cdk/overlay';
@@ -18,7 +15,6 @@ import { ElementRef } from '@angular/core';
18
15
  import { ErrorStateMatcher } from '@angular/material/core';
19
16
  import { EventEmitter } from '@angular/core';
20
17
  import { FormGroupDirective } from '@angular/forms';
21
- import { HasTabIndex } from '@angular/material/core';
22
18
  import * as i0 from '@angular/core';
23
19
  import * as i2 from '@angular/common';
24
20
  import * as i3 from '@angular/cdk/overlay';
@@ -35,7 +31,6 @@ import { MatOptionSelectionChange } from '@angular/material/core';
35
31
  import { NgControl } from '@angular/forms';
36
32
  import { NgForm } from '@angular/forms';
37
33
  import { NgZone } from '@angular/core';
38
- import { NumberInput } from '@angular/cdk/coercion';
39
34
  import { Observable } from 'rxjs';
40
35
  import { OnChanges } from '@angular/core';
41
36
  import { OnDestroy } from '@angular/core';
@@ -85,7 +80,7 @@ export declare function MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Ove
85
80
  */
86
81
  export declare const MAT_SELECT_TRIGGER: InjectionToken<MatSelectTrigger>;
87
82
 
88
- export declare class MatSelect extends _MatSelectMixinBase implements AfterContentInit, OnChanges, OnDestroy, OnInit, DoCheck, ControlValueAccessor, CanDisable, HasTabIndex, MatFormFieldControl<any>, CanUpdateErrorState, CanDisableRipple {
83
+ export declare class MatSelect extends _MatSelectMixinBase implements AfterContentInit, OnChanges, OnDestroy, OnInit, DoCheck, ControlValueAccessor, MatFormFieldControl<any>, CanUpdateErrorState {
89
84
  protected _viewportRuler: ViewportRuler;
90
85
  protected _changeDetectorRef: ChangeDetectorRef;
91
86
  protected _ngZone: NgZone;
@@ -168,9 +163,15 @@ export declare class MatSelect extends _MatSelectMixinBase implements AfterConte
168
163
  panelClass: string | string[] | Set<string> | {
169
164
  [key: string]: any;
170
165
  };
166
+ /** Whether the select is disabled. */
167
+ disabled: boolean;
168
+ /** Whether ripples in the select are disabled. */
169
+ disableRipple: boolean;
170
+ /** Tab index of the select. */
171
+ tabIndex: number;
171
172
  /** Whether checkmark indicator for single-selection options is hidden. */
172
173
  get hideSingleSelectionIndicator(): boolean;
173
- set hideSingleSelectionIndicator(value: BooleanInput);
174
+ set hideSingleSelectionIndicator(value: boolean);
174
175
  private _hideSingleSelectionIndicator;
175
176
  /** Placeholder to be shown if no value has been selected. */
176
177
  get placeholder(): string;
@@ -178,16 +179,14 @@ export declare class MatSelect extends _MatSelectMixinBase implements AfterConte
178
179
  private _placeholder;
179
180
  /** Whether the component is required. */
180
181
  get required(): boolean;
181
- set required(value: BooleanInput);
182
+ set required(value: boolean);
182
183
  private _required;
183
184
  /** Whether the user should be allowed to select multiple options. */
184
185
  get multiple(): boolean;
185
- set multiple(value: BooleanInput);
186
+ set multiple(value: boolean);
186
187
  private _multiple;
187
188
  /** Whether to center the active option over the trigger. */
188
- get disableOptionCentering(): boolean;
189
- set disableOptionCentering(value: BooleanInput);
190
- private _disableOptionCentering;
189
+ disableOptionCentering: boolean;
191
190
  /**
192
191
  * Function to compare the option values with the selected values. The first argument
193
192
  * is a value from an option. The second is a value from the selection. A boolean
@@ -206,9 +205,7 @@ export declare class MatSelect extends _MatSelectMixinBase implements AfterConte
206
205
  /** Object used to control when error messages are shown. */
207
206
  errorStateMatcher: ErrorStateMatcher;
208
207
  /** Time to wait in milliseconds after the last keystroke before moving focus to an item. */
209
- get typeaheadDebounceInterval(): number;
210
- set typeaheadDebounceInterval(value: NumberInput);
211
- private _typeaheadDebounceInterval;
208
+ typeaheadDebounceInterval: number;
212
209
  /**
213
210
  * Function used to sort the values in a select in multiple mode.
214
211
  * Follows the same logic as `Array.prototype.sort`.
@@ -398,7 +395,15 @@ export declare class MatSelect extends _MatSelectMixinBase implements AfterConte
398
395
  */
399
396
  get shouldLabelFloat(): boolean;
400
397
  static ɵfac: i0.ɵɵFactoryDeclaration<MatSelect, [null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }, { attribute: "tabindex"; }, null, null, { optional: true; }]>;
401
- static ɵcmp: i0.ɵɵComponentDeclaration<MatSelect, "mat-select", ["matSelect"], { "disabled": { "alias": "disabled"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "userAriaDescribedBy": { "alias": "aria-describedby"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "hideSingleSelectionIndicator": { "alias": "hideSingleSelectionIndicator"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "disableOptionCentering": { "alias": "disableOptionCentering"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "value": { "alias": "value"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "typeaheadDebounceInterval": { "alias": "typeaheadDebounceInterval"; "required": false; }; "sortComparator": { "alias": "sortComparator"; "required": false; }; "id": { "alias": "id"; "required": false; }; "panelWidth": { "alias": "panelWidth"; "required": false; }; }, { "openedChange": "openedChange"; "_openedStream": "opened"; "_closedStream": "closed"; "selectionChange": "selectionChange"; "valueChange": "valueChange"; }, ["customTrigger", "options", "optionGroups"], ["mat-select-trigger", "*"], false, never>;
398
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatSelect, "mat-select", ["matSelect"], { "userAriaDescribedBy": { "alias": "aria-describedby"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "hideSingleSelectionIndicator": { "alias": "hideSingleSelectionIndicator"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "disableOptionCentering": { "alias": "disableOptionCentering"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "value": { "alias": "value"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "typeaheadDebounceInterval": { "alias": "typeaheadDebounceInterval"; "required": false; }; "sortComparator": { "alias": "sortComparator"; "required": false; }; "id": { "alias": "id"; "required": false; }; "panelWidth": { "alias": "panelWidth"; "required": false; }; }, { "openedChange": "openedChange"; "_openedStream": "opened"; "_closedStream": "closed"; "selectionChange": "selectionChange"; "valueChange": "valueChange"; }, ["customTrigger", "options", "optionGroups"], ["mat-select-trigger", "*"], false, never>;
399
+ static ngAcceptInputType_disabled: unknown;
400
+ static ngAcceptInputType_disableRipple: unknown;
401
+ static ngAcceptInputType_tabIndex: unknown;
402
+ static ngAcceptInputType_hideSingleSelectionIndicator: unknown;
403
+ static ngAcceptInputType_required: unknown;
404
+ static ngAcceptInputType_multiple: unknown;
405
+ static ngAcceptInputType_disableOptionCentering: unknown;
406
+ static ngAcceptInputType_typeaheadDebounceInterval: unknown;
402
407
  }
403
408
 
404
409
  /**
@@ -448,7 +453,7 @@ export declare interface MatSelectConfig {
448
453
  }
449
454
 
450
455
  /** @docs-private */
451
- declare const _MatSelectMixinBase: _Constructor<CanDisableRipple> & _AbstractConstructor<CanDisableRipple> & _Constructor<HasTabIndex> & _AbstractConstructor<HasTabIndex> & _Constructor<CanDisable> & _AbstractConstructor<CanDisable> & _Constructor<CanUpdateErrorState> & _AbstractConstructor<CanUpdateErrorState> & {
456
+ declare const _MatSelectMixinBase: _Constructor<CanUpdateErrorState> & _AbstractConstructor<CanUpdateErrorState> & {
452
457
  new (_elementRef: ElementRef, _defaultErrorStateMatcher: ErrorStateMatcher, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, ngControl: NgControl): {
453
458
  /**
454
459
  * Emits whenever the component state changes and should cause the parent
@@ -1,82 +1,116 @@
1
+ @use 'sass:map';
1
2
  @use '@material/switch/switch-theme' as mdc-switch-theme;
2
3
  @use '@material/form-field' as mdc-form-field;
3
4
  @use '../core/theming/theming';
4
5
  @use '../core/theming/inspection';
5
6
  @use '../core/mdc-helpers/mdc-helpers';
6
7
  @use '../core/typography/typography';
7
- @use '../core/tokens/m2/mdc/switch' as m2-mdc-switch;
8
- @use '../core/tokens/m2/mat/slide-toggle' as m2-mat-slide-toggle;
8
+ @use '../core/tokens/m2/mdc/switch' as tokens-mdc-switch;
9
+ @use '../core/tokens/m2/mat/slide-toggle' as tokens-mat-slide-toggle;
9
10
  @use '../core/tokens/token-utils';
10
11
 
11
12
  @mixin base($theme) {
12
- .mdc-switch {
13
- @include mdc-switch-theme.theme(m2-mdc-switch.get-unthemable-tokens());
13
+ @if inspection.get-theme-version($theme) == 1 {
14
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
15
+ }
16
+ @else {
17
+ .mdc-switch {
18
+ @include mdc-switch-theme.theme(tokens-mdc-switch.get-unthemable-tokens());
19
+ }
14
20
  }
15
21
  }
16
22
 
17
23
  @mixin color($theme) {
18
- $is-dark: inspection.get-theme-type($theme) == dark;
19
- $mdc-switch-color-tokens: m2-mdc-switch.get-color-tokens($theme);
24
+ @if inspection.get-theme-version($theme) == 1 {
25
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
26
+ }
27
+ @else {
28
+ $is-dark: inspection.get-theme-type($theme) == dark;
29
+ $mdc-switch-color-tokens: tokens-mdc-switch.get-color-tokens($theme);
20
30
 
21
- @include mdc-helpers.using-mdc-theme($theme) {
22
- // Add values for MDC slide toggles tokens
23
- .mat-mdc-slide-toggle {
24
- @include mdc-form-field.core-styles($query: mdc-helpers.$mdc-theme-styles-query);
25
- @include mdc-switch-theme.theme($mdc-switch-color-tokens);
31
+ @include mdc-helpers.using-mdc-theme($theme) {
32
+ // Add values for MDC slide toggles tokens
33
+ .mat-mdc-slide-toggle {
34
+ @include mdc-form-field.core-styles($query: mdc-helpers.$mdc-theme-styles-query);
35
+ @include mdc-switch-theme.theme($mdc-switch-color-tokens);
26
36
 
27
- // MDC should set the disabled color on the label, but doesn't, so we do it here instead.
28
- .mdc-switch--disabled + label {
29
- color: inspection.get-theme-color($theme, foreground, disabled-text);
30
- }
37
+ // MDC should set the disabled color on the label, but doesn't, so we do it here instead.
38
+ .mdc-switch--disabled + label {
39
+ color: inspection.get-theme-color($theme, foreground, disabled-text);
40
+ }
31
41
 
32
- // Change the color palette related tokens to accent or warn if applicable
33
- &.mat-accent {
34
- @include mdc-switch-theme.theme(
35
- m2-mdc-switch.private-get-color-palette-color-tokens($theme, accent));
36
- }
42
+ // Change the color palette related tokens to accent or warn if applicable
43
+ &.mat-accent {
44
+ @include mdc-switch-theme.theme(
45
+ tokens-mdc-switch.private-get-color-palette-color-tokens($theme, accent));
46
+ }
37
47
 
38
- &.mat-warn {
39
- @include mdc-switch-theme.theme(
40
- m2-mdc-switch.private-get-color-palette-color-tokens($theme, warn));
48
+ &.mat-warn {
49
+ @include mdc-switch-theme.theme(
50
+ tokens-mdc-switch.private-get-color-palette-color-tokens($theme, warn));
51
+ }
41
52
  }
42
53
  }
43
54
  }
44
55
  }
45
56
 
46
57
  @mixin typography($theme) {
47
- $mdc-switch-typography-tokens: m2-mdc-switch.get-typography-tokens($theme);
48
- $mat-slide-toggle-typography-tokens: m2-mat-slide-toggle.get-typography-tokens($theme);
58
+ @if inspection.get-theme-version($theme) == 1 {
59
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
60
+ }
61
+ @else {
62
+ $mdc-switch-typography-tokens: tokens-mdc-switch.get-typography-tokens($theme);
63
+ $mat-slide-toggle-typography-tokens: tokens-mat-slide-toggle.get-typography-tokens($theme);
49
64
 
50
- //Add values for MDC slide toggle tokens
51
- .mat-mdc-slide-toggle {
52
- @include mdc-form-field.core-styles($query: mdc-helpers.$mdc-typography-styles-query);
53
- @include mdc-switch-theme.theme($mdc-switch-typography-tokens);
54
- @include token-utils.create-token-values(
55
- m2-mat-slide-toggle.$prefix,
56
- $mat-slide-toggle-typography-tokens
57
- );
65
+ //Add values for MDC slide toggle tokens
66
+ .mat-mdc-slide-toggle {
67
+ @include mdc-form-field.core-styles($query: mdc-helpers.$mdc-typography-styles-query);
68
+ @include mdc-switch-theme.theme($mdc-switch-typography-tokens);
69
+ @include token-utils.create-token-values(
70
+ tokens-mat-slide-toggle.$prefix,
71
+ $mat-slide-toggle-typography-tokens
72
+ );
73
+ }
58
74
  }
59
75
  }
60
76
 
61
77
  @mixin density($theme) {
62
- $density-scale: inspection.get-theme-density($theme);
78
+ @if inspection.get-theme-version($theme) == 1 {
79
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
80
+ }
81
+ @else {
82
+ $density-scale: inspection.get-theme-density($theme);
63
83
 
64
- .mat-mdc-slide-toggle {
65
- @include mdc-switch-theme.theme(mdc-switch-theme.density($density-scale));
84
+ .mat-mdc-slide-toggle {
85
+ @include mdc-switch-theme.theme(mdc-switch-theme.density($density-scale));
86
+ }
66
87
  }
67
88
  }
68
89
 
69
90
  @mixin theme($theme) {
70
91
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-slide-toggle') {
71
- @include base($theme);
72
- @if inspection.theme-has($theme, color) {
73
- @include color($theme);
74
- }
75
- @if inspection.theme-has($theme, density) {
76
- @include density($theme);
92
+ @if inspection.get-theme-version($theme) == 1 {
93
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme));
77
94
  }
78
- @if inspection.theme-has($theme, typography) {
79
- @include typography($theme);
95
+ @else {
96
+ @include base($theme);
97
+ @if inspection.theme-has($theme, color) {
98
+ @include color($theme);
99
+ }
100
+ @if inspection.theme-has($theme, density) {
101
+ @include density($theme);
102
+ }
103
+ @if inspection.theme-has($theme, typography) {
104
+ @include typography($theme);
105
+ }
80
106
  }
81
107
  }
82
108
  }
109
+
110
+ @mixin _theme-from-tokens($tokens) {
111
+ @if ($tokens != ()) {
112
+ @include mdc-switch-theme.theme(map.get($tokens, tokens-mdc-switch.$prefix));
113
+ @include token-utils.create-token-values(
114
+ tokens-mat-slide-toggle.$prefix, map.get($tokens, tokens-mat-slide-toggle.$prefix));
115
+ }
116
+ }