@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.
- package/_index.scss +1 -1
- package/core/index.d.ts +1 -1
- package/core/style/_variables.scss +1 -1
- package/core/style/_vendor-prefixes.scss +5 -0
- package/datepicker/index.d.ts +8 -0
- package/esm2020/button-toggle/button-toggle.mjs +2 -2
- package/esm2020/checkbox/checkbox.mjs +2 -2
- package/esm2020/core/common-behaviors/error-state.mjs +1 -1
- package/esm2020/core/datetime/native-date-adapter.mjs +2 -2
- package/esm2020/core/option/option.mjs +2 -2
- package/esm2020/core/version.mjs +1 -1
- package/esm2020/datepicker/datepicker-base.mjs +21 -6
- package/esm2020/icon/icon-registry.mjs +19 -6
- package/esm2020/icon/icon.mjs +14 -8
- package/esm2020/stepper/stepper.mjs +1 -1
- package/esm2020/tabs/ink-bar.mjs +10 -6
- package/fesm2015/button-toggle.mjs +2 -2
- package/fesm2015/button-toggle.mjs.map +1 -1
- package/fesm2015/checkbox.mjs +2 -2
- package/fesm2015/checkbox.mjs.map +1 -1
- package/fesm2015/core.mjs +4 -4
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/datepicker.mjs +22 -5
- package/fesm2015/datepicker.mjs.map +1 -1
- package/fesm2015/icon.mjs +31 -12
- package/fesm2015/icon.mjs.map +1 -1
- package/fesm2015/stepper.mjs.map +1 -1
- package/fesm2015/tabs.mjs +9 -5
- package/fesm2015/tabs.mjs.map +1 -1
- package/fesm2020/button-toggle.mjs +2 -2
- package/fesm2020/button-toggle.mjs.map +1 -1
- package/fesm2020/checkbox.mjs +2 -2
- package/fesm2020/checkbox.mjs.map +1 -1
- package/fesm2020/core.mjs +4 -4
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/datepicker.mjs +20 -5
- package/fesm2020/datepicker.mjs.map +1 -1
- package/fesm2020/icon.mjs +31 -12
- package/fesm2020/icon.mjs.map +1 -1
- package/fesm2020/stepper.mjs.map +1 -1
- package/fesm2020/tabs.mjs +9 -5
- package/fesm2020/tabs.mjs.map +1 -1
- package/icon/index.d.ts +24 -6
- package/package.json +2 -2
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- 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
|
|
109
|
-
* component.
|
|
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
|
|
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
|
|
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
|
|
348
|
+
* @param classNames Class names override to be used instead of the alias.
|
|
331
349
|
*/
|
|
332
|
-
registerFontClassAlias(alias: string,
|
|
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-
|
|
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-
|
|
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.
|
|
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.
|
|
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`.
|
package/stepper/index.d.ts
CHANGED
|
@@ -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:
|
|
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
|
}
|