@angular/material 15.1.1 → 15.2.0-next.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 (66) hide show
  1. package/autocomplete/index.d.ts +11 -2
  2. package/chips/index.d.ts +14 -1
  3. package/chips/testing/index.d.ts +23 -0
  4. package/core/index.d.ts +10 -2
  5. package/core/selection/pseudo-checkbox/_pseudo-checkbox-common.scss +63 -10
  6. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +42 -27
  7. package/esm2020/autocomplete/autocomplete.mjs +30 -6
  8. package/esm2020/chips/chip-listbox.mjs +18 -3
  9. package/esm2020/chips/chip-option.mjs +21 -7
  10. package/esm2020/chips/testing/chip-edit-input-harness.mjs +33 -0
  11. package/esm2020/chips/testing/chip-harness-filters.mjs +1 -1
  12. package/esm2020/chips/testing/chip-row-harness.mjs +20 -2
  13. package/esm2020/chips/testing/public-api.mjs +2 -1
  14. package/esm2020/chips/tokens.mjs +1 -1
  15. package/esm2020/core/option/option-parent.mjs +1 -1
  16. package/esm2020/core/option/option.mjs +7 -3
  17. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +12 -3
  18. package/esm2020/core/version.mjs +1 -1
  19. package/esm2020/legacy-core/option/option.mjs +1 -1
  20. package/esm2020/legacy-list/selection-list.mjs +1 -1
  21. package/esm2020/paginator/paginator.mjs +1 -1
  22. package/esm2020/select/select.mjs +21 -2
  23. package/fesm2015/autocomplete.mjs +30 -5
  24. package/fesm2015/autocomplete.mjs.map +1 -1
  25. package/fesm2015/chips/testing.mjs +51 -2
  26. package/fesm2015/chips/testing.mjs.map +1 -1
  27. package/fesm2015/chips.mjs +36 -6
  28. package/fesm2015/chips.mjs.map +1 -1
  29. package/fesm2015/core.mjs +18 -5
  30. package/fesm2015/core.mjs.map +1 -1
  31. package/fesm2015/legacy-core.mjs +1 -1
  32. package/fesm2015/legacy-core.mjs.map +1 -1
  33. package/fesm2015/legacy-list.mjs +1 -1
  34. package/fesm2015/legacy-list.mjs.map +1 -1
  35. package/fesm2015/paginator.mjs +1 -1
  36. package/fesm2015/paginator.mjs.map +1 -1
  37. package/fesm2015/select.mjs +21 -1
  38. package/fesm2015/select.mjs.map +1 -1
  39. package/fesm2020/autocomplete.mjs +29 -5
  40. package/fesm2020/autocomplete.mjs.map +1 -1
  41. package/fesm2020/chips/testing.mjs +50 -2
  42. package/fesm2020/chips/testing.mjs.map +1 -1
  43. package/fesm2020/chips.mjs +34 -6
  44. package/fesm2020/chips.mjs.map +1 -1
  45. package/fesm2020/core.mjs +18 -5
  46. package/fesm2020/core.mjs.map +1 -1
  47. package/fesm2020/legacy-core.mjs +1 -1
  48. package/fesm2020/legacy-core.mjs.map +1 -1
  49. package/fesm2020/legacy-list.mjs +1 -1
  50. package/fesm2020/legacy-list.mjs.map +1 -1
  51. package/fesm2020/paginator.mjs +1 -1
  52. package/fesm2020/paginator.mjs.map +1 -1
  53. package/fesm2020/select.mjs +20 -1
  54. package/fesm2020/select.mjs.map +1 -1
  55. package/legacy-prebuilt-themes/legacy-deeppurple-amber.css +1 -1
  56. package/legacy-prebuilt-themes/legacy-indigo-pink.css +1 -1
  57. package/legacy-prebuilt-themes/legacy-pink-bluegrey.css +1 -1
  58. package/legacy-prebuilt-themes/legacy-purple-green.css +1 -1
  59. package/package.json +7 -7
  60. package/prebuilt-themes/deeppurple-amber.css +1 -1
  61. package/prebuilt-themes/indigo-pink.css +1 -1
  62. package/prebuilt-themes/pink-bluegrey.css +1 -1
  63. package/prebuilt-themes/purple-green.css +1 -1
  64. package/schematics/ng-add/index.js +2 -2
  65. package/schematics/ng-add/index.mjs +2 -2
  66. package/select/index.d.ts +10 -2
@@ -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 = `~15.1.1`;
21
+ const fallbackMaterialVersionRange = `~15.2.0-next.1`;
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`.
@@ -33,7 +33,7 @@ function default_1(options) {
33
33
  // have the same version tag if possible.
34
34
  const ngCoreVersionTag = (0, package_config_1.getPackageVersionFromPackageJson)(host, '@angular/core');
35
35
  const materialVersionRange = (0, package_config_1.getPackageVersionFromPackageJson)(host, '@angular/material');
36
- const angularDependencyVersion = ngCoreVersionTag || `^15.0.0 || ^16.0.0`;
36
+ const angularDependencyVersion = ngCoreVersionTag || `^15.0.0-0 || ^15.1.0-0 || ^15.2.0-0 || ^15.3.0-0 || ^16.0.0-0`;
37
37
  // The CLI inserts `@angular/material` into the `package.json` before this schematic runs.
38
38
  // This means that we do not need to insert Angular Material into `package.json` files again.
39
39
  // In some cases though, it could happen that this schematic runs outside of the CLI `ng add`
package/select/index.d.ts CHANGED
@@ -108,8 +108,14 @@ export declare class MatSelect extends _MatSelectBase<MatSelectChange> implement
108
108
  protected _getChangeEvent(value: any): MatSelectChange;
109
109
  /** Gets how wide the overlay panel should be. */
110
110
  private _getOverlayWidth;
111
+ /** Whether checkmark indicator for single-selection options is hidden. */
112
+ get hideSingleSelectionIndicator(): boolean;
113
+ set hideSingleSelectionIndicator(value: BooleanInput);
114
+ private _hideSingleSelectionIndicator;
115
+ /** Syncs the parent state with the individual options. */
116
+ _syncParentProperties(): void;
111
117
  static ɵfac: i0.ɵɵFactoryDeclaration<MatSelect, never>;
112
- static ɵcmp: i0.ɵɵComponentDeclaration<MatSelect, "mat-select", ["matSelect"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "tabIndex": "tabIndex"; }, {}, ["customTrigger", "options", "optionGroups"], ["mat-select-trigger", "*"], false, never>;
118
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatSelect, "mat-select", ["matSelect"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "tabIndex": "tabIndex"; "hideSingleSelectionIndicator": "hideSingleSelectionIndicator"; }, {}, ["customTrigger", "options", "optionGroups"], ["mat-select-trigger", "*"], false, never>;
113
119
  }
114
120
 
115
121
  /**
@@ -136,7 +142,7 @@ export declare abstract class _MatSelectBase<C> extends _MatSelectMixinBase impl
136
142
  private _dir;
137
143
  protected _parentFormField: MatFormField;
138
144
  private _liveAnnouncer;
139
- private _defaultOptions?;
145
+ protected _defaultOptions?: MatSelectConfig | undefined;
140
146
  /** All of the defined select options. */
141
147
  abstract options: QueryList<_MatOptionBase>;
142
148
  /** All of the defined groups of options. */
@@ -420,6 +426,8 @@ export declare interface MatSelectConfig {
420
426
  typeaheadDebounceInterval?: number;
421
427
  /** Class or list of classes to be applied to the menu's overlay panel. */
422
428
  overlayPanelClass?: string | string[];
429
+ /** Wheter icon indicators should be hidden for single-selection. */
430
+ hideSingleSelectionIndicator?: boolean;
423
431
  }
424
432
 
425
433
  /** @docs-private */