@angular/material 14.1.0-next.2 → 14.1.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/chips/index.d.ts +1 -1
- package/core/index.d.ts +2 -2
- package/core/style/_variables.scss +1 -1
- package/core/style/_vendor-prefixes.scss +5 -0
- package/datepicker/index.d.ts +7 -7
- package/dialog/index.d.ts +1 -1
- package/esm2020/autocomplete/autocomplete-trigger.mjs +5 -1
- package/esm2020/button/button.mjs +2 -2
- package/esm2020/checkbox/checkbox.mjs +7 -5
- package/esm2020/chips/chip.mjs +2 -2
- package/esm2020/core/common-behaviors/error-state.mjs +1 -1
- package/esm2020/core/datetime/native-date-adapter.mjs +3 -3
- package/esm2020/core/option/option.mjs +2 -2
- package/esm2020/core/version.mjs +1 -1
- package/esm2020/datepicker/calendar.mjs +2 -2
- package/esm2020/datepicker/datepicker-toggle.mjs +1 -1
- package/esm2020/datepicker/month-view.mjs +3 -3
- package/esm2020/datepicker/multi-year-view.mjs +3 -3
- package/esm2020/datepicker/year-view.mjs +3 -3
- package/esm2020/dialog/dialog-content-directives.mjs +1 -1
- package/esm2020/form-field/form-field.mjs +2 -2
- package/esm2020/grid-list/grid-list.mjs +1 -1
- package/esm2020/icon/icon-registry.mjs +19 -6
- package/esm2020/icon/icon.mjs +14 -8
- package/esm2020/list/selection-list.mjs +2 -2
- package/esm2020/select/select.mjs +2 -2
- package/esm2020/slider/slider.mjs +7 -3
- package/esm2020/sort/sort.mjs +3 -3
- package/esm2020/stepper/stepper.mjs +1 -1
- package/esm2020/tabs/ink-bar.mjs +10 -6
- package/esm2020/tabs/tab-body.mjs +1 -1
- package/fesm2015/autocomplete.mjs +4 -0
- package/fesm2015/autocomplete.mjs.map +1 -1
- package/fesm2015/button.mjs +1 -1
- package/fesm2015/button.mjs.map +1 -1
- package/fesm2015/checkbox.mjs +6 -4
- package/fesm2015/checkbox.mjs.map +1 -1
- package/fesm2015/chips.mjs +1 -1
- package/fesm2015/chips.mjs.map +1 -1
- package/fesm2015/core.mjs +5 -5
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/datepicker.mjs +7 -7
- package/fesm2015/datepicker.mjs.map +1 -1
- package/fesm2015/dialog.mjs.map +1 -1
- package/fesm2015/form-field.mjs +1 -1
- package/fesm2015/form-field.mjs.map +1 -1
- package/fesm2015/grid-list.mjs.map +1 -1
- package/fesm2015/icon.mjs +31 -12
- package/fesm2015/icon.mjs.map +1 -1
- package/fesm2015/list.mjs +1 -1
- package/fesm2015/list.mjs.map +1 -1
- package/fesm2015/select.mjs +1 -1
- package/fesm2015/select.mjs.map +1 -1
- package/fesm2015/slider.mjs +6 -2
- package/fesm2015/slider.mjs.map +1 -1
- package/fesm2015/sort.mjs +2 -2
- package/fesm2015/sort.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/autocomplete.mjs +4 -0
- package/fesm2020/autocomplete.mjs.map +1 -1
- package/fesm2020/button.mjs +1 -1
- package/fesm2020/button.mjs.map +1 -1
- package/fesm2020/checkbox.mjs +6 -4
- package/fesm2020/checkbox.mjs.map +1 -1
- package/fesm2020/chips.mjs +1 -1
- package/fesm2020/chips.mjs.map +1 -1
- package/fesm2020/core.mjs +5 -5
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/datepicker.mjs +7 -7
- package/fesm2020/datepicker.mjs.map +1 -1
- package/fesm2020/dialog.mjs.map +1 -1
- package/fesm2020/form-field.mjs +1 -1
- package/fesm2020/form-field.mjs.map +1 -1
- package/fesm2020/grid-list.mjs.map +1 -1
- package/fesm2020/icon.mjs +31 -12
- package/fesm2020/icon.mjs.map +1 -1
- package/fesm2020/list.mjs +1 -1
- package/fesm2020/list.mjs.map +1 -1
- package/fesm2020/select.mjs +1 -1
- package/fesm2020/select.mjs.map +1 -1
- package/fesm2020/slider.mjs +6 -2
- package/fesm2020/slider.mjs.map +1 -1
- package/fesm2020/sort.mjs +2 -2
- package/fesm2020/sort.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/grid-list/index.d.ts +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/select/index.d.ts +1 -1
- package/sort/index.d.ts +2 -2
- package/stepper/index.d.ts +2 -2
- package/tabs/index.d.ts +1 -1
package/grid-list/index.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ export declare class MatGridList implements MatGridListBase, OnInit, AfterConten
|
|
|
39
39
|
private _dir;
|
|
40
40
|
/** Number of columns being rendered. */
|
|
41
41
|
private _cols;
|
|
42
|
-
/** Used for
|
|
42
|
+
/** Used for determining the position of each tile in the grid. */
|
|
43
43
|
private _tileCoordinator;
|
|
44
44
|
/**
|
|
45
45
|
* Row height value passed in by user. This can be one of three types:
|
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",
|
|
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",
|
|
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.0.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 = `~14.0.
|
|
21
|
+
const fallbackMaterialVersionRange = `~14.0.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
|
@@ -211,7 +211,7 @@ export declare abstract class _MatSelectBase<C> extends _MatSelectMixinBase impl
|
|
|
211
211
|
private _compareWith;
|
|
212
212
|
/** Unique id for this input. */
|
|
213
213
|
private _uid;
|
|
214
|
-
/** Current `
|
|
214
|
+
/** Current `aria-labelledby` value for the select trigger. */
|
|
215
215
|
private _triggerAriaLabelledBy;
|
|
216
216
|
/**
|
|
217
217
|
* Keeps track of the previous form control assigned to the select.
|
package/sort/index.d.ts
CHANGED
|
@@ -83,7 +83,7 @@ export declare class MatSort extends _MatSortBase implements CanDisable, HasInit
|
|
|
83
83
|
active: string;
|
|
84
84
|
/**
|
|
85
85
|
* The direction to set when an MatSortable is initially sorted.
|
|
86
|
-
* May be
|
|
86
|
+
* May be overridden by the MatSortable's sort start.
|
|
87
87
|
*/
|
|
88
88
|
start: SortDirection;
|
|
89
89
|
/** The sort direction of the currently active MatSortable. */
|
|
@@ -92,7 +92,7 @@ export declare class MatSort extends _MatSortBase implements CanDisable, HasInit
|
|
|
92
92
|
private _direction;
|
|
93
93
|
/**
|
|
94
94
|
* Whether to disable the user from clearing the sort by finishing the sort direction cycle.
|
|
95
|
-
* May be
|
|
95
|
+
* May be overridden by the MatSortable's disable clear input.
|
|
96
96
|
*/
|
|
97
97
|
get disableClear(): boolean;
|
|
98
98
|
set disableClear(v: BooleanInput);
|
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
|
}
|
package/tabs/index.d.ts
CHANGED
|
@@ -547,7 +547,7 @@ export declare class MatTabBodyPortal extends CdkPortalOutlet implements OnInit,
|
|
|
547
547
|
*
|
|
548
548
|
* In the case of a new tab body that should immediately be centered with an animating transition,
|
|
549
549
|
* then left-origin-center or right-origin-center can be used, which will use left or right as its
|
|
550
|
-
*
|
|
550
|
+
* pseudo-prior state.
|
|
551
551
|
*/
|
|
552
552
|
export declare type MatTabBodyPositionState = 'left' | 'center' | 'right' | 'left-origin-center' | 'right-origin-center';
|
|
553
553
|
|