@angular/material 18.0.1 → 18.0.3

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 (78) hide show
  1. package/_index.scss +1 -1
  2. package/badge/index.d.ts +4 -1
  3. package/checkbox/_checkbox-common.scss +523 -0
  4. package/checkbox/_checkbox-theme.scss +23 -8
  5. package/checkbox/index.d.ts +10 -2
  6. package/chips/index.d.ts +5 -1
  7. package/core/m2/_typography.scss +1 -1
  8. package/core/ripple/_ripple.scss +6 -0
  9. package/core/style/_vendor-prefixes.scss +5 -0
  10. package/core/theming/_palettes.scss +2 -0
  11. package/core/tokens/m2/mdc/_checkbox.scss +3 -4
  12. package/datepicker/index.d.ts +10 -2
  13. package/dialog/index.d.ts +0 -1
  14. package/dialog/testing/index.d.ts +1 -0
  15. package/esm2022/autocomplete/autocomplete-trigger.mjs +8 -7
  16. package/esm2022/badge/badge.mjs +5 -2
  17. package/esm2022/checkbox/checkbox-config.mjs +1 -1
  18. package/esm2022/checkbox/checkbox.mjs +5 -12
  19. package/esm2022/chips/chip.mjs +6 -6
  20. package/esm2022/core/version.mjs +1 -1
  21. package/esm2022/datepicker/calendar.mjs +3 -3
  22. package/esm2022/datepicker/datepicker-base.mjs +14 -17
  23. package/esm2022/dialog/dialog-container.mjs +1 -6
  24. package/esm2022/dialog/testing/dialog-opener.mjs +4 -3
  25. package/esm2022/list/list-option.mjs +3 -3
  26. package/esm2022/radio/radio.mjs +25 -3
  27. package/esm2022/slider/slider-interface.mjs +2 -2
  28. package/esm2022/slider/slider.mjs +6 -6
  29. package/esm2022/snack-bar/snack-bar-container.mjs +4 -4
  30. package/esm2022/table/table.mjs +3 -3
  31. package/fesm2022/autocomplete.mjs +1 -0
  32. package/fesm2022/autocomplete.mjs.map +1 -1
  33. package/fesm2022/badge.mjs +4 -1
  34. package/fesm2022/badge.mjs.map +1 -1
  35. package/fesm2022/checkbox.mjs +2 -2
  36. package/fesm2022/checkbox.mjs.map +1 -1
  37. package/fesm2022/chips.mjs +4 -4
  38. package/fesm2022/chips.mjs.map +1 -1
  39. package/fesm2022/core.mjs +1 -1
  40. package/fesm2022/core.mjs.map +1 -1
  41. package/fesm2022/datepicker.mjs +7 -3
  42. package/fesm2022/datepicker.mjs.map +1 -1
  43. package/fesm2022/dialog/testing.mjs +3 -2
  44. package/fesm2022/dialog/testing.mjs.map +1 -1
  45. package/fesm2022/dialog.mjs +0 -5
  46. package/fesm2022/dialog.mjs.map +1 -1
  47. package/fesm2022/list.mjs +2 -2
  48. package/fesm2022/list.mjs.map +1 -1
  49. package/fesm2022/radio.mjs +25 -3
  50. package/fesm2022/radio.mjs.map +1 -1
  51. package/fesm2022/slider.mjs +6 -6
  52. package/fesm2022/slider.mjs.map +1 -1
  53. package/fesm2022/snack-bar.mjs +3 -3
  54. package/fesm2022/snack-bar.mjs.map +1 -1
  55. package/fesm2022/table.mjs +2 -2
  56. package/fesm2022/table.mjs.map +1 -1
  57. package/list/_list-item-hcm-indicator.scss +19 -19
  58. package/list/_list-theme.scss +6 -4
  59. package/package.json +2 -2
  60. package/prebuilt-themes/azure-blue.css +1 -1
  61. package/prebuilt-themes/cyan-orange.css +1 -1
  62. package/prebuilt-themes/deeppurple-amber.css +1 -1
  63. package/prebuilt-themes/indigo-pink.css +1 -1
  64. package/prebuilt-themes/magenta-violet.css +1 -1
  65. package/prebuilt-themes/pink-bluegrey.css +1 -1
  66. package/prebuilt-themes/purple-green.css +1 -1
  67. package/prebuilt-themes/rose-red.css +1 -1
  68. package/radio/index.d.ts +1 -0
  69. package/schematics/ng-add/index.js +1 -1
  70. package/schematics/ng-add/index.mjs +1 -1
  71. package/schematics/ng-add/theming/create-custom-theme.js +3 -3
  72. package/schematics/ng-add/theming/create-custom-theme.mjs +3 -3
  73. package/schematics/ng-generate/m3-theme/index_bundled.js +83 -4
  74. package/schematics/ng-generate/m3-theme/index_bundled.js.map +3 -3
  75. package/schematics/ng-update/index_bundled.js +32 -33
  76. package/schematics/ng-update/index_bundled.js.map +2 -2
  77. package/slider/index.d.ts +1 -1
  78. package/snack-bar/_snack-bar-theme.scss +16 -7
@@ -2022,11 +2022,11 @@ class MatCalendarHeader {
2022
2022
  return [minYearLabel, maxYearLabel];
2023
2023
  }
2024
2024
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: MatCalendarHeader, deps: [{ token: MatDatepickerIntl }, { token: forwardRef(() => MatCalendar) }, { token: i1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
2025
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.0", type: MatCalendarHeader, isStandalone: true, selector: "mat-calendar-header", exportAs: ["matCalendarHeader"], ngImport: i0, template: "<div class=\"mat-calendar-header\">\n <div class=\"mat-calendar-controls\">\n <!-- [Firefox Issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1880533] \n Relocated label next to related button and made visually hidden via cdk-visually-hidden\n to enable label to appear in a11y tree for SR when using Firefox -->\n <label [id]=\"_periodButtonLabelId\" class=\"cdk-visually-hidden\">{{periodButtonDescription}}</label>\n <button mat-button type=\"button\" class=\"mat-calendar-period-button\"\n (click)=\"currentPeriodClicked()\" [attr.aria-label]=\"periodButtonLabel\"\n [attr.aria-describedby]=\"_periodButtonLabelId\" aria-live=\"polite\">\n <span aria-hidden=\"true\">{{periodButtonText}}</span>\n <svg class=\"mat-calendar-arrow\" [class.mat-calendar-invert]=\"calendar.currentView !== 'month'\"\n viewBox=\"0 0 10 5\" focusable=\"false\" aria-hidden=\"true\">\n <polygon points=\"0,0 5,5 10,0\"/>\n </svg>\n </button>\n\n <div class=\"mat-calendar-spacer\"></div>\n\n <ng-content></ng-content>\n\n <button mat-icon-button type=\"button\" class=\"mat-calendar-previous-button\"\n [disabled]=\"!previousEnabled()\" (click)=\"previousClicked()\"\n [attr.aria-label]=\"prevButtonLabel\">\n </button>\n\n <button mat-icon-button type=\"button\" class=\"mat-calendar-next-button\"\n [disabled]=\"!nextEnabled()\" (click)=\"nextClicked()\"\n [attr.aria-label]=\"nextButtonLabel\">\n </button>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
2025
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.0", type: MatCalendarHeader, isStandalone: true, selector: "mat-calendar-header", exportAs: ["matCalendarHeader"], ngImport: i0, template: "<div class=\"mat-calendar-header\">\n <div class=\"mat-calendar-controls\">\n <!-- [Firefox Issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1880533]\n Relocated label next to related button and made visually hidden via cdk-visually-hidden\n to enable label to appear in a11y tree for SR when using Firefox -->\n <label [id]=\"_periodButtonLabelId\" class=\"cdk-visually-hidden\" aria-live=\"polite\">{{periodButtonDescription}}</label>\n <button mat-button type=\"button\" class=\"mat-calendar-period-button\"\n (click)=\"currentPeriodClicked()\" [attr.aria-label]=\"periodButtonLabel\"\n [attr.aria-describedby]=\"_periodButtonLabelId\">\n <span aria-hidden=\"true\">{{periodButtonText}}</span>\n <svg class=\"mat-calendar-arrow\" [class.mat-calendar-invert]=\"calendar.currentView !== 'month'\"\n viewBox=\"0 0 10 5\" focusable=\"false\" aria-hidden=\"true\">\n <polygon points=\"0,0 5,5 10,0\"/>\n </svg>\n </button>\n\n <div class=\"mat-calendar-spacer\"></div>\n\n <ng-content></ng-content>\n\n <button mat-icon-button type=\"button\" class=\"mat-calendar-previous-button\"\n [disabled]=\"!previousEnabled()\" (click)=\"previousClicked()\"\n [attr.aria-label]=\"prevButtonLabel\">\n </button>\n\n <button mat-icon-button type=\"button\" class=\"mat-calendar-next-button\"\n [disabled]=\"!nextEnabled()\" (click)=\"nextClicked()\"\n [attr.aria-label]=\"nextButtonLabel\">\n </button>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
2026
2026
  }
2027
2027
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: MatCalendarHeader, decorators: [{
2028
2028
  type: Component,
2029
- args: [{ selector: 'mat-calendar-header', exportAs: 'matCalendarHeader', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatButton, MatIconButton], template: "<div class=\"mat-calendar-header\">\n <div class=\"mat-calendar-controls\">\n <!-- [Firefox Issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1880533] \n Relocated label next to related button and made visually hidden via cdk-visually-hidden\n to enable label to appear in a11y tree for SR when using Firefox -->\n <label [id]=\"_periodButtonLabelId\" class=\"cdk-visually-hidden\">{{periodButtonDescription}}</label>\n <button mat-button type=\"button\" class=\"mat-calendar-period-button\"\n (click)=\"currentPeriodClicked()\" [attr.aria-label]=\"periodButtonLabel\"\n [attr.aria-describedby]=\"_periodButtonLabelId\" aria-live=\"polite\">\n <span aria-hidden=\"true\">{{periodButtonText}}</span>\n <svg class=\"mat-calendar-arrow\" [class.mat-calendar-invert]=\"calendar.currentView !== 'month'\"\n viewBox=\"0 0 10 5\" focusable=\"false\" aria-hidden=\"true\">\n <polygon points=\"0,0 5,5 10,0\"/>\n </svg>\n </button>\n\n <div class=\"mat-calendar-spacer\"></div>\n\n <ng-content></ng-content>\n\n <button mat-icon-button type=\"button\" class=\"mat-calendar-previous-button\"\n [disabled]=\"!previousEnabled()\" (click)=\"previousClicked()\"\n [attr.aria-label]=\"prevButtonLabel\">\n </button>\n\n <button mat-icon-button type=\"button\" class=\"mat-calendar-next-button\"\n [disabled]=\"!nextEnabled()\" (click)=\"nextClicked()\"\n [attr.aria-label]=\"nextButtonLabel\">\n </button>\n </div>\n</div>\n" }]
2029
+ args: [{ selector: 'mat-calendar-header', exportAs: 'matCalendarHeader', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatButton, MatIconButton], template: "<div class=\"mat-calendar-header\">\n <div class=\"mat-calendar-controls\">\n <!-- [Firefox Issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1880533]\n Relocated label next to related button and made visually hidden via cdk-visually-hidden\n to enable label to appear in a11y tree for SR when using Firefox -->\n <label [id]=\"_periodButtonLabelId\" class=\"cdk-visually-hidden\" aria-live=\"polite\">{{periodButtonDescription}}</label>\n <button mat-button type=\"button\" class=\"mat-calendar-period-button\"\n (click)=\"currentPeriodClicked()\" [attr.aria-label]=\"periodButtonLabel\"\n [attr.aria-describedby]=\"_periodButtonLabelId\">\n <span aria-hidden=\"true\">{{periodButtonText}}</span>\n <svg class=\"mat-calendar-arrow\" [class.mat-calendar-invert]=\"calendar.currentView !== 'month'\"\n viewBox=\"0 0 10 5\" focusable=\"false\" aria-hidden=\"true\">\n <polygon points=\"0,0 5,5 10,0\"/>\n </svg>\n </button>\n\n <div class=\"mat-calendar-spacer\"></div>\n\n <ng-content></ng-content>\n\n <button mat-icon-button type=\"button\" class=\"mat-calendar-previous-button\"\n [disabled]=\"!previousEnabled()\" (click)=\"previousClicked()\"\n [attr.aria-label]=\"prevButtonLabel\">\n </button>\n\n <button mat-icon-button type=\"button\" class=\"mat-calendar-next-button\"\n [disabled]=\"!nextEnabled()\" (click)=\"nextClicked()\"\n [attr.aria-label]=\"nextButtonLabel\">\n </button>\n </div>\n</div>\n" }]
2030
2030
  }], ctorParameters: () => [{ type: MatDatepickerIntl }, { type: MatCalendar, decorators: [{
2031
2031
  type: Inject,
2032
2032
  args: [forwardRef(() => MatCalendar)]
@@ -2483,7 +2483,11 @@ class MatDatepickerBase {
2483
2483
  set startAt(value) {
2484
2484
  this._startAt = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
2485
2485
  }
2486
- /** Color palette to use on the datepicker's calendar. */
2486
+ /**
2487
+ * Color palette to use on the datepicker's calendar. This API is supported in M2 themes only, it
2488
+ * has no effect in M3 themes. For information on applying color variants in M3, see
2489
+ * https://material.angular.io/guide/theming#using-component-color-variants
2490
+ */
2487
2491
  get color() {
2488
2492
  return (this._color || (this.datepickerInput ? this.datepickerInput.getThemePalette() : undefined));
2489
2493
  }