@angular/material 14.1.0-next.1 → 14.1.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 (47) hide show
  1. package/_index.scss +1 -1
  2. package/core/index.d.ts +1 -1
  3. package/core/style/_variables.scss +1 -1
  4. package/core/style/_vendor-prefixes.scss +5 -0
  5. package/datepicker/index.d.ts +8 -0
  6. package/esm2020/button-toggle/button-toggle.mjs +2 -2
  7. package/esm2020/checkbox/checkbox.mjs +2 -2
  8. package/esm2020/core/common-behaviors/error-state.mjs +1 -1
  9. package/esm2020/core/datetime/native-date-adapter.mjs +2 -2
  10. package/esm2020/core/option/option.mjs +2 -2
  11. package/esm2020/core/version.mjs +1 -1
  12. package/esm2020/datepicker/datepicker-base.mjs +21 -6
  13. package/esm2020/icon/icon-registry.mjs +19 -6
  14. package/esm2020/icon/icon.mjs +14 -8
  15. package/esm2020/stepper/stepper.mjs +1 -1
  16. package/esm2020/tabs/ink-bar.mjs +10 -6
  17. package/fesm2015/button-toggle.mjs +2 -2
  18. package/fesm2015/button-toggle.mjs.map +1 -1
  19. package/fesm2015/checkbox.mjs +2 -2
  20. package/fesm2015/checkbox.mjs.map +1 -1
  21. package/fesm2015/core.mjs +4 -4
  22. package/fesm2015/core.mjs.map +1 -1
  23. package/fesm2015/datepicker.mjs +22 -5
  24. package/fesm2015/datepicker.mjs.map +1 -1
  25. package/fesm2015/icon.mjs +31 -12
  26. package/fesm2015/icon.mjs.map +1 -1
  27. package/fesm2015/stepper.mjs.map +1 -1
  28. package/fesm2015/tabs.mjs +9 -5
  29. package/fesm2015/tabs.mjs.map +1 -1
  30. package/fesm2020/button-toggle.mjs +2 -2
  31. package/fesm2020/button-toggle.mjs.map +1 -1
  32. package/fesm2020/checkbox.mjs +2 -2
  33. package/fesm2020/checkbox.mjs.map +1 -1
  34. package/fesm2020/core.mjs +4 -4
  35. package/fesm2020/core.mjs.map +1 -1
  36. package/fesm2020/datepicker.mjs +20 -5
  37. package/fesm2020/datepicker.mjs.map +1 -1
  38. package/fesm2020/icon.mjs +31 -12
  39. package/fesm2020/icon.mjs.map +1 -1
  40. package/fesm2020/stepper.mjs.map +1 -1
  41. package/fesm2020/tabs.mjs +9 -5
  42. package/fesm2020/tabs.mjs.map +1 -1
  43. package/icon/index.d.ts +24 -6
  44. package/package.json +2 -2
  45. package/schematics/ng-add/index.js +1 -1
  46. package/schematics/ng-add/index.mjs +1 -1
  47. package/stepper/index.d.ts +2 -2
package/icon/index.d.ts CHANGED
@@ -105,13 +105,18 @@ export declare function MAT_ICON_LOCATION_FACTORY(): MatIconLocation;
105
105
  * `<mat-icon svgIcon="left-arrow"></mat-icon>
106
106
  * <mat-icon svgIcon="animals:cat"></mat-icon>`
107
107
  *
108
- * - Use a font ligature as an icon by putting the ligature text in the content of the `<mat-icon>`
109
- * component. By default the Material icons font is used as described at
108
+ * - Use a font ligature as an icon by putting the ligature text in the `fontIcon` attribute or the
109
+ * content of the `<mat-icon>` component. If you register a custom font class, don't forget to also
110
+ * include the special class `mat-ligature-font`. It is recommended to use the attribute alternative
111
+ * to prevent the ligature text to be selectable and to appear in search engine results.
112
+ * By default, the Material icons font is used as described at
110
113
  * http://google.github.io/material-design-icons/#icon-font-for-the-web. You can specify an
111
114
  * alternate font by setting the fontSet input to either the CSS class to apply to use the
112
115
  * desired font, or to an alias previously registered with MatIconRegistry.registerFontClassAlias.
113
116
  * Examples:
114
- * `<mat-icon>home</mat-icon>
117
+ * `<mat-icon fontIcon="home"></mat-icon>
118
+ * <mat-icon>home</mat-icon>
119
+ * <mat-icon fontSet="myfont" fontIcon="sun"></mat-icon>
115
120
  * <mat-icon fontSet="myfont">sun</mat-icon>`
116
121
  *
117
122
  * - Specify a font glyph to be included via CSS rules by setting the fontSet input to specify the
@@ -322,14 +327,27 @@ export declare class MatIconRegistry implements OnDestroy {
322
327
  */
323
328
  addSvgIconSetLiteralInNamespace(namespace: string, literal: SafeHtml, options?: IconOptions): this;
324
329
  /**
325
- * Defines an alias for a CSS class name to be used for icon fonts. Creating an matIcon
330
+ * Defines an alias for CSS class names to be used for icon fonts. Creating an matIcon
326
331
  * component with the alias as the fontSet input will cause the class name to be applied
327
332
  * to the `<mat-icon>` element.
328
333
  *
334
+ * If the registered font is a ligature font, then don't forget to also include the special
335
+ * class `mat-ligature-font` to allow the usage via attribute. So register like this:
336
+ *
337
+ * ```ts
338
+ * iconRegistry.registerFontClassAlias('f1', 'font1 mat-ligature-font');
339
+ * ```
340
+ *
341
+ * And use like this:
342
+ *
343
+ * ```html
344
+ * <mat-icon fontSet="f1" fontIcon="home"></mat-icon>
345
+ * ```
346
+ *
329
347
  * @param alias Alias for the font.
330
- * @param className Class name override to be used instead of the alias.
348
+ * @param classNames Class names override to be used instead of the alias.
331
349
  */
332
- registerFontClassAlias(alias: string, className?: string): this;
350
+ registerFontClassAlias(alias: string, classNames?: string): this;
333
351
  /**
334
352
  * Returns the CSS class name associated with the alias by a previous call to
335
353
  * registerFontClassAlias. If no CSS class has been associated, returns the alias unmodified.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/material",
3
- "version": "14.1.0-next.1",
3
+ "version": "14.1.0-rc.0",
4
4
  "description": "Angular Material",
5
5
  "repository": {
6
6
  "type": "git",
@@ -622,7 +622,7 @@
622
622
  },
623
623
  "peerDependencies": {
624
624
  "@angular/animations": "^14.0.0 || ^15.0.0",
625
- "@angular/cdk": "14.1.0-next.1",
625
+ "@angular/cdk": "14.1.0-rc.0",
626
626
  "@angular/core": "^14.0.0 || ^15.0.0",
627
627
  "@angular/common": "^14.0.0 || ^15.0.0",
628
628
  "@angular/forms": "^14.0.0 || ^15.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 = `~14.0.2`;
21
+ const fallbackMaterialVersionRange = `~14.1.0-rc.0`;
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 = `~14.0.2`;
21
+ const fallbackMaterialVersionRange = `~14.1.0-rc.0`;
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`.
@@ -1,4 +1,5 @@
1
1
  import { _AbstractConstructor } from '@angular/material/core';
2
+ import { AbstractControl } from '@angular/forms';
2
3
  import { AfterContentInit } from '@angular/core';
3
4
  import { AfterViewInit } from '@angular/core';
4
5
  import { AnimationEvent as AnimationEvent_2 } from '@angular/animations';
@@ -36,7 +37,6 @@ import { Subject } from 'rxjs';
36
37
  import { TemplatePortal } from '@angular/cdk/portal';
37
38
  import { TemplateRef } from '@angular/core';
38
39
  import { ThemePalette } from '@angular/material/core';
39
- import { UntypedFormControl } from '@angular/forms';
40
40
  import { ViewContainerRef } from '@angular/core';
41
41
 
42
42
  declare namespace i1 {
@@ -104,7 +104,7 @@ export declare class MatStep extends CdkStep implements ErrorStateMatcher, After
104
104
  ngAfterContentInit(): void;
105
105
  ngOnDestroy(): void;
106
106
  /** Custom error state matcher that additionally checks for validity of interacted form. */
107
- isErrorState(control: UntypedFormControl | null, form: FormGroupDirective | NgForm | null): boolean;
107
+ isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean;
108
108
  static ɵfac: i0.ɵɵFactoryDeclaration<MatStep, [null, { skipSelf: true; }, null, { optional: true; }]>;
109
109
  static ɵcmp: i0.ɵɵComponentDeclaration<MatStep, "mat-step", ["matStep"], { "color": "color"; }, {}, ["stepLabel", "_lazyContent"], ["*"], false>;
110
110
  }