@angular/material 14.0.0-next.2 → 14.0.0-next.3
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/chips/chip-list.d.ts +6 -3
- package/core/datetime/index.d.ts +1 -2
- package/core/ripple/index.d.ts +1 -2
- package/datepicker/calendar-body.d.ts +12 -3
- package/datepicker/month-view.d.ts +18 -0
- package/datepicker/multi-year-view.d.ts +18 -0
- package/datepicker/year-view.d.ts +18 -0
- package/dialog/dialog-content-directives.d.ts +5 -1
- package/esm2020/chips/chip-list.mjs +12 -5
- package/esm2020/core/datetime/index.mjs +3 -5
- package/esm2020/core/ripple/index.mjs +4 -5
- package/esm2020/core/version.mjs +1 -1
- package/esm2020/datepicker/calendar-body.mjs +25 -3
- package/esm2020/datepicker/month-view.mjs +34 -7
- package/esm2020/datepicker/multi-year-view.mjs +40 -8
- package/esm2020/datepicker/year-view.mjs +39 -8
- package/esm2020/dialog/dialog-container.mjs +3 -3
- package/esm2020/dialog/dialog-content-directives.mjs +16 -4
- package/esm2020/menu/menu-trigger.mjs +15 -6
- package/esm2020/menu/menu.mjs +14 -9
- package/esm2020/progress-spinner/progress-spinner.mjs +4 -1
- package/esm2020/sidenav/sidenav-module.mjs +4 -5
- package/esm2020/tabs/paginated-tab-header.mjs +13 -7
- package/esm2020/tabs/tab-group.mjs +25 -1
- package/fesm2015/chips.mjs +11 -4
- package/fesm2015/chips.mjs.map +1 -1
- package/fesm2015/core.mjs +7 -8
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/datepicker.mjs +134 -22
- package/fesm2015/datepicker.mjs.map +1 -1
- package/fesm2015/dialog.mjs +17 -5
- package/fesm2015/dialog.mjs.map +1 -1
- package/fesm2015/menu.mjs +26 -11
- package/fesm2015/menu.mjs.map +1 -1
- package/fesm2015/progress-spinner.mjs +3 -0
- package/fesm2015/progress-spinner.mjs.map +1 -1
- package/fesm2015/sidenav.mjs +4 -5
- package/fesm2015/sidenav.mjs.map +1 -1
- package/fesm2015/tabs.mjs +36 -6
- package/fesm2015/tabs.mjs.map +1 -1
- package/fesm2020/chips.mjs +11 -4
- package/fesm2020/chips.mjs.map +1 -1
- package/fesm2020/core.mjs +7 -8
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/datepicker.mjs +134 -22
- package/fesm2020/datepicker.mjs.map +1 -1
- package/fesm2020/dialog.mjs +17 -5
- package/fesm2020/dialog.mjs.map +1 -1
- package/fesm2020/menu.mjs +25 -11
- package/fesm2020/menu.mjs.map +1 -1
- package/fesm2020/progress-spinner.mjs +3 -0
- package/fesm2020/progress-spinner.mjs.map +1 -1
- package/fesm2020/sidenav.mjs +4 -5
- package/fesm2020/sidenav.mjs.map +1 -1
- package/fesm2020/tabs.mjs +36 -6
- package/fesm2020/tabs.mjs.map +1 -1
- package/menu/menu-trigger.d.ts +7 -1
- package/menu/menu.d.ts +7 -2
- package/package.json +7 -7
- package/progress-spinner/progress-spinner.d.ts +3 -1
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.mjs +2 -2
- package/sidenav/sidenav-module.d.ts +2 -3
- package/tabs/paginated-tab-header.d.ts +4 -2
- package/tabs/tab-group.d.ts +6 -2
package/menu/menu-trigger.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export declare abstract class _MatMenuTriggerBase implements AfterContentInit, O
|
|
|
31
31
|
private _menuItemInstance;
|
|
32
32
|
private _dir;
|
|
33
33
|
private _focusMonitor;
|
|
34
|
+
private _ngZone?;
|
|
34
35
|
private _portal;
|
|
35
36
|
private _overlayRef;
|
|
36
37
|
private _menuOpen;
|
|
@@ -88,6 +89,11 @@ export declare abstract class _MatMenuTriggerBase implements AfterContentInit, O
|
|
|
88
89
|
* @breaking-change 8.0.0
|
|
89
90
|
*/
|
|
90
91
|
constructor(overlay: Overlay, element: ElementRef<HTMLElement>, viewContainerRef: ViewContainerRef, scrollStrategy: any, parentMenu: MatMenuPanel, menuItemInstance: MatMenuItem, dir: Directionality, focusMonitor?: FocusMonitor | null);
|
|
92
|
+
/**
|
|
93
|
+
* @deprecated `ngZone` will become a required parameter.
|
|
94
|
+
* @breaking-change 15.0.0
|
|
95
|
+
*/
|
|
96
|
+
constructor(overlay: Overlay, element: ElementRef<HTMLElement>, viewContainerRef: ViewContainerRef, scrollStrategy: any, parentMenu: MatMenuPanel, menuItemInstance: MatMenuItem, dir: Directionality, focusMonitor: FocusMonitor);
|
|
91
97
|
ngAfterContentInit(): void;
|
|
92
98
|
ngOnDestroy(): void;
|
|
93
99
|
/** Whether the menu is open. */
|
|
@@ -160,7 +166,7 @@ export declare abstract class _MatMenuTriggerBase implements AfterContentInit, O
|
|
|
160
166
|
private _handleHover;
|
|
161
167
|
/** Gets the portal that should be attached to the overlay. */
|
|
162
168
|
private _getPortal;
|
|
163
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<_MatMenuTriggerBase, [null, null, null, null, { optional: true; }, { optional: true; self: true; }, { optional: true; }, null]>;
|
|
169
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<_MatMenuTriggerBase, [null, null, null, null, { optional: true; }, { optional: true; self: true; }, { optional: true; }, null, null]>;
|
|
164
170
|
static ɵdir: i0.ɵɵDirectiveDeclaration<_MatMenuTriggerBase, never, never, { "_deprecatedMatMenuTriggerFor": "mat-menu-trigger-for"; "menu": "matMenuTriggerFor"; "menuData": "matMenuTriggerData"; "restoreFocus": "matMenuTriggerRestoreFocus"; }, { "menuOpened": "menuOpened"; "onMenuOpen": "onMenuOpen"; "menuClosed": "menuClosed"; "onMenuClose": "onMenuClose"; }, never>;
|
|
165
171
|
}
|
|
166
172
|
/** Directive applied to an element that should trigger a `mat-menu`. */
|
package/menu/menu.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
9
9
|
import { Direction } from '@angular/cdk/bidi';
|
|
10
10
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
11
|
-
import { AfterContentInit, ElementRef, EventEmitter, InjectionToken, NgZone, OnDestroy, TemplateRef, QueryList, OnInit } from '@angular/core';
|
|
11
|
+
import { AfterContentInit, ElementRef, EventEmitter, InjectionToken, NgZone, OnDestroy, TemplateRef, QueryList, OnInit, ChangeDetectorRef } from '@angular/core';
|
|
12
12
|
import { Observable, Subject } from 'rxjs';
|
|
13
13
|
import { MatMenuContent } from './menu-content';
|
|
14
14
|
import { MenuPositionX, MenuPositionY } from './menu-positions';
|
|
@@ -42,6 +42,7 @@ export declare class _MatMenuBase implements AfterContentInit, MatMenuPanel<MatM
|
|
|
42
42
|
private _elementRef;
|
|
43
43
|
private _ngZone;
|
|
44
44
|
private _defaultOptions;
|
|
45
|
+
private _changeDetectorRef?;
|
|
45
46
|
private _keyManager;
|
|
46
47
|
private _xPosition;
|
|
47
48
|
private _yPosition;
|
|
@@ -131,7 +132,7 @@ export declare class _MatMenuBase implements AfterContentInit, MatMenuPanel<MatM
|
|
|
131
132
|
*/
|
|
132
133
|
readonly close: EventEmitter<MenuCloseReason>;
|
|
133
134
|
readonly panelId: string;
|
|
134
|
-
constructor(_elementRef: ElementRef<HTMLElement>, _ngZone: NgZone, _defaultOptions: MatMenuDefaultOptions);
|
|
135
|
+
constructor(_elementRef: ElementRef<HTMLElement>, _ngZone: NgZone, _defaultOptions: MatMenuDefaultOptions, _changeDetectorRef?: ChangeDetectorRef | undefined);
|
|
135
136
|
ngOnInit(): void;
|
|
136
137
|
ngAfterContentInit(): void;
|
|
137
138
|
ngOnDestroy(): void;
|
|
@@ -196,6 +197,10 @@ export declare class _MatMenuBase implements AfterContentInit, MatMenuPanel<MatM
|
|
|
196
197
|
export declare class MatMenu extends _MatMenuBase {
|
|
197
198
|
protected _elevationPrefix: string;
|
|
198
199
|
protected _baseElevation: number;
|
|
200
|
+
/**
|
|
201
|
+
* @deprecated `changeDetectorRef` parameter will become a required parameter.
|
|
202
|
+
* @breaking-change 15.0.0
|
|
203
|
+
*/
|
|
199
204
|
constructor(elementRef: ElementRef<HTMLElement>, ngZone: NgZone, defaultOptions: MatMenuDefaultOptions);
|
|
200
205
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatMenu, never>;
|
|
201
206
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatMenu, "mat-menu", ["matMenu"], {}, {}, never, ["*"]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/material",
|
|
3
|
-
"version": "14.0.0-next.
|
|
3
|
+
"version": "14.0.0-next.3",
|
|
4
4
|
"description": "Angular Material",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -621,12 +621,12 @@
|
|
|
621
621
|
}
|
|
622
622
|
},
|
|
623
623
|
"peerDependencies": {
|
|
624
|
-
"@angular/animations": "^13.0.0 || ^14.0.0
|
|
625
|
-
"@angular/cdk": "14.0.0-next.
|
|
626
|
-
"@angular/core": "^13.0.0 || ^14.0.0
|
|
627
|
-
"@angular/common": "^13.0.0 || ^14.0.0
|
|
628
|
-
"@angular/forms": "^13.0.0 || ^14.0.0
|
|
629
|
-
"@angular/platform-browser": "^13.0.0 || ^14.0.0
|
|
624
|
+
"@angular/animations": "^13.0.0 || ^14.0.0",
|
|
625
|
+
"@angular/cdk": "14.0.0-next.3",
|
|
626
|
+
"@angular/core": "^13.0.0 || ^14.0.0",
|
|
627
|
+
"@angular/common": "^13.0.0 || ^14.0.0",
|
|
628
|
+
"@angular/forms": "^13.0.0 || ^14.0.0",
|
|
629
|
+
"@angular/platform-browser": "^13.0.0 || ^14.0.0",
|
|
630
630
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
631
631
|
},
|
|
632
632
|
"dependencies": {
|
|
@@ -9,7 +9,7 @@ import { NumberInput } from '@angular/cdk/coercion';
|
|
|
9
9
|
import { Platform } from '@angular/cdk/platform';
|
|
10
10
|
import { ViewportRuler } from '@angular/cdk/scrolling';
|
|
11
11
|
import { ElementRef, InjectionToken, OnInit, ChangeDetectorRef, OnDestroy, NgZone } from '@angular/core';
|
|
12
|
-
import { CanColor } from '@angular/material/core';
|
|
12
|
+
import { CanColor, ThemePalette } from '@angular/material/core';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
14
|
/** Possible mode for a progress spinner. */
|
|
15
15
|
export declare type ProgressSpinnerMode = 'determinate' | 'indeterminate';
|
|
@@ -21,6 +21,8 @@ declare const _MatProgressSpinnerBase: import("@angular/material/core")._Constru
|
|
|
21
21
|
};
|
|
22
22
|
/** Default `mat-progress-spinner` options that can be overridden. */
|
|
23
23
|
export interface MatProgressSpinnerDefaultOptions {
|
|
24
|
+
/** Default color of the spinner. */
|
|
25
|
+
color?: ThemePalette;
|
|
24
26
|
/** Diameter of the spinner. */
|
|
25
27
|
diameter?: number;
|
|
26
28
|
/** Width of the spinner's stroke. */
|
|
@@ -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 = `~
|
|
21
|
+
const fallbackMaterialVersionRange = `~14.0.0-next.3`;
|
|
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 || `^13.0.0 || ^14.0.0
|
|
36
|
+
const angularDependencyVersion = ngCoreVersionTag || `^13.0.0 || ^14.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`
|
|
@@ -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 = `~
|
|
21
|
+
const fallbackMaterialVersionRange = `~14.0.0-next.3`;
|
|
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 || `^13.0.0 || ^14.0.0
|
|
36
|
+
const angularDependencyVersion = ngCoreVersionTag || `^13.0.0 || ^14.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`
|
|
@@ -3,10 +3,9 @@ import * as i1 from "./drawer";
|
|
|
3
3
|
import * as i2 from "./sidenav";
|
|
4
4
|
import * as i3 from "@angular/common";
|
|
5
5
|
import * as i4 from "@angular/material/core";
|
|
6
|
-
import * as i5 from "@angular/cdk/
|
|
7
|
-
import * as i6 from "@angular/cdk/scrolling";
|
|
6
|
+
import * as i5 from "@angular/cdk/scrolling";
|
|
8
7
|
export declare class MatSidenavModule {
|
|
9
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatSidenavModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatSidenavModule, [typeof i1.MatDrawer, typeof i1.MatDrawerContainer, typeof i1.MatDrawerContent, typeof i2.MatSidenav, typeof i2.MatSidenavContainer, typeof i2.MatSidenavContent], [typeof i3.CommonModule, typeof i4.MatCommonModule, typeof i5.
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatSidenavModule, [typeof i1.MatDrawer, typeof i1.MatDrawerContainer, typeof i1.MatDrawerContent, typeof i2.MatSidenav, typeof i2.MatSidenavContainer, typeof i2.MatSidenavContent], [typeof i3.CommonModule, typeof i4.MatCommonModule, typeof i5.CdkScrollableModule], [typeof i5.CdkScrollableModule, typeof i4.MatCommonModule, typeof i1.MatDrawer, typeof i1.MatDrawerContainer, typeof i1.MatDrawerContent, typeof i2.MatSidenav, typeof i2.MatSidenavContainer, typeof i2.MatSidenavContent]>;
|
|
11
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatSidenavModule>;
|
|
12
11
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { ChangeDetectorRef, ElementRef, NgZone, QueryList, EventEmitter, AfterContentChecked, AfterContentInit, AfterViewInit, OnDestroy } from '@angular/core';
|
|
9
9
|
import { Direction, Directionality } from '@angular/cdk/bidi';
|
|
10
|
-
import { NumberInput } from '@angular/cdk/coercion';
|
|
10
|
+
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
11
11
|
import { ViewportRuler } from '@angular/cdk/scrolling';
|
|
12
12
|
import { FocusableOption } from '@angular/cdk/a11y';
|
|
13
13
|
import { Subject } from 'rxjs';
|
|
@@ -74,7 +74,9 @@ export declare abstract class MatPaginatedTabHeader implements AfterContentCheck
|
|
|
74
74
|
* Whether pagination should be disabled. This can be used to avoid unnecessary
|
|
75
75
|
* layout recalculations if it's known that pagination won't be required.
|
|
76
76
|
*/
|
|
77
|
-
disablePagination: boolean;
|
|
77
|
+
get disablePagination(): boolean;
|
|
78
|
+
set disablePagination(value: BooleanInput);
|
|
79
|
+
private _disablePagination;
|
|
78
80
|
/** The index of the active tab. */
|
|
79
81
|
get selectedIndex(): number;
|
|
80
82
|
set selectedIndex(value: NumberInput);
|
package/tabs/tab-group.d.ts
CHANGED
|
@@ -83,13 +83,17 @@ export declare abstract class _MatTabGroupBase extends _MatTabGroupMixinBase imp
|
|
|
83
83
|
* Whether pagination should be disabled. This can be used to avoid unnecessary
|
|
84
84
|
* layout recalculations if it's known that pagination won't be required.
|
|
85
85
|
*/
|
|
86
|
-
disablePagination: boolean;
|
|
86
|
+
get disablePagination(): boolean;
|
|
87
|
+
set disablePagination(value: BooleanInput);
|
|
88
|
+
private _disablePagination;
|
|
87
89
|
/**
|
|
88
90
|
* By default tabs remove their content from the DOM while it's off-screen.
|
|
89
91
|
* Setting this to `true` will keep it in the DOM which will prevent elements
|
|
90
92
|
* like iframes and videos from reloading next time it comes back into the view.
|
|
91
93
|
*/
|
|
92
|
-
preserveContent: boolean;
|
|
94
|
+
get preserveContent(): boolean;
|
|
95
|
+
set preserveContent(value: BooleanInput);
|
|
96
|
+
private _preserveContent;
|
|
93
97
|
/** Background color of the tab group. */
|
|
94
98
|
get backgroundColor(): ThemePalette;
|
|
95
99
|
set backgroundColor(value: ThemePalette);
|