@angular/material 17.3.4 → 17.3.6

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 (38) hide show
  1. package/autocomplete/index.d.ts +4 -12
  2. package/core/tokens/_token-utils.scss +7 -3
  3. package/datepicker/index.d.ts +6 -4
  4. package/esm2022/autocomplete/autocomplete-trigger.mjs +10 -4
  5. package/esm2022/autocomplete/autocomplete.mjs +5 -34
  6. package/esm2022/core/version.mjs +1 -1
  7. package/esm2022/datepicker/date-range-input.mjs +6 -1
  8. package/esm2022/datepicker/datepicker-base.mjs +5 -8
  9. package/esm2022/form-field/form-field-control.mjs +1 -1
  10. package/esm2022/form-field/form-field.mjs +3 -3
  11. package/esm2022/menu/menu.mjs +19 -14
  12. package/esm2022/progress-bar/progress-bar.mjs +3 -3
  13. package/esm2022/select/select.mjs +6 -1
  14. package/esm2022/tabs/tab-group.mjs +3 -5
  15. package/esm2022/tabs/tab.mjs +1 -1
  16. package/fesm2022/autocomplete.mjs +14 -36
  17. package/fesm2022/autocomplete.mjs.map +1 -1
  18. package/fesm2022/core.mjs +1 -1
  19. package/fesm2022/core.mjs.map +1 -1
  20. package/fesm2022/datepicker.mjs +8 -6
  21. package/fesm2022/datepicker.mjs.map +1 -1
  22. package/fesm2022/form-field.mjs +2 -2
  23. package/fesm2022/form-field.mjs.map +1 -1
  24. package/fesm2022/menu.mjs +19 -13
  25. package/fesm2022/menu.mjs.map +1 -1
  26. package/fesm2022/progress-bar.mjs +2 -2
  27. package/fesm2022/progress-bar.mjs.map +1 -1
  28. package/fesm2022/select.mjs +5 -0
  29. package/fesm2022/select.mjs.map +1 -1
  30. package/fesm2022/tabs.mjs +3 -4
  31. package/fesm2022/tabs.mjs.map +1 -1
  32. package/form-field/index.d.ts +6 -0
  33. package/menu/index.d.ts +1 -1
  34. package/package.json +2 -2
  35. package/schematics/ng-add/index.js +1 -1
  36. package/schematics/ng-add/index.mjs +1 -1
  37. package/select/index.d.ts +5 -0
  38. package/tabs/index.d.ts +2 -8
@@ -341,6 +341,12 @@ export declare abstract class MatFormFieldControl<T> {
341
341
  * which are set by the form-field.
342
342
  */
343
343
  readonly userAriaDescribedBy?: string;
344
+ /**
345
+ * Whether to automatically assign the ID of the form field as the `for` attribute
346
+ * on the `<label>` inside the form field. Set this to true to prevent the form
347
+ * field from associating the label with non-native elements.
348
+ */
349
+ readonly disableAutomaticLabeling?: boolean;
344
350
  /** Sets the list of element IDs that currently describe this control. */
345
351
  abstract setDescribedByIds(ids: string[]): void;
346
352
  /** Handles a click on the control's container. */
package/menu/index.d.ts CHANGED
@@ -117,7 +117,7 @@ export declare class MatMenu implements AfterContentInit, MatMenuPanel<MatMenuIt
117
117
  _allItems: QueryList<MatMenuItem>;
118
118
  /** Only the direct descendant menu items. */
119
119
  _directDescendantItems: QueryList<MatMenuItem>;
120
- /** Config object to be passed into the menu's ngClass */
120
+ /** Classes to be applied to the menu panel. */
121
121
  _classList: {
122
122
  [key: string]: boolean;
123
123
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/material",
3
- "version": "17.3.4",
3
+ "version": "17.3.6",
4
4
  "description": "Angular Material",
5
5
  "repository": {
6
6
  "type": "git",
@@ -478,7 +478,7 @@
478
478
  },
479
479
  "peerDependencies": {
480
480
  "@angular/animations": "^17.0.0 || ^18.0.0",
481
- "@angular/cdk": "17.3.4",
481
+ "@angular/cdk": "17.3.6",
482
482
  "@angular/core": "^17.0.0 || ^18.0.0",
483
483
  "@angular/common": "^17.0.0 || ^18.0.0",
484
484
  "@angular/forms": "^17.0.0 || ^18.0.0",
@@ -18,7 +18,7 @@ const package_config_1 = require("./package-config");
18
18
  * Note that the fallback version range does not use caret, but tilde because that is
19
19
  * the default for Angular framework dependencies in CLI projects.
20
20
  */
21
- const fallbackMaterialVersionRange = `~17.3.4`;
21
+ const fallbackMaterialVersionRange = `~17.3.6`;
22
22
  /**
23
23
  * Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
24
24
  * automatically executed if developers run `ng add @angular/material`.
@@ -18,7 +18,7 @@ const package_config_1 = require("./package-config");
18
18
  * Note that the fallback version range does not use caret, but tilde because that is
19
19
  * the default for Angular framework dependencies in CLI projects.
20
20
  */
21
- const fallbackMaterialVersionRange = `~17.3.4`;
21
+ const fallbackMaterialVersionRange = `~17.3.6`;
22
22
  /**
23
23
  * Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
24
24
  * automatically executed if developers run `ng add @angular/material`.
package/select/index.d.ts CHANGED
@@ -149,6 +149,11 @@ export declare class MatSelect implements AfterContentInit, OnChanges, OnDestroy
149
149
  * @docs-private
150
150
  */
151
151
  readonly stateChanges: Subject<void>;
152
+ /**
153
+ * Disable the automatic labeling to avoid issues like #27241.
154
+ * @docs-private
155
+ */
156
+ readonly disableAutomaticLabeling = true;
152
157
  /**
153
158
  * Implemented as part of MatFormFieldControl.
154
159
  * @docs-private
package/tabs/index.d.ts CHANGED
@@ -380,15 +380,9 @@ export declare class MatTab implements OnInit, OnChanges, OnDestroy {
380
380
  * Will be cleared if `aria-label` is set at the same time.
381
381
  */
382
382
  ariaLabelledby: string;
383
- /**
384
- * Classes to be passed to the tab label inside the mat-tab-header container.
385
- * Supports string and string array values, same as `ngClass`.
386
- */
383
+ /** Classes to be passed to the tab label inside the mat-tab-header container. */
387
384
  labelClass: string | string[];
388
- /**
389
- * Classes to be passed to the tab mat-tab-body container.
390
- * Supports string and string array values, same as `ngClass`.
391
- */
385
+ /** Classes to be passed to the tab mat-tab-body container. */
392
386
  bodyClass: string | string[];
393
387
  /** Portal that will be the hosted content of the tab */
394
388
  private _contentPortal;