@angular/material 17.0.1 → 17.1.0-next.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/button/_icon-button-theme.scss +5 -1
- package/card/testing/index.d.ts +1 -1
- package/checkbox/index.d.ts +1 -1
- package/chips/index.d.ts +71 -67
- package/core/index.d.ts +1 -1
- package/core/tokens/m2/_index.scss +2 -0
- package/datepicker/index.d.ts +21 -23
- package/datepicker/testing/index.d.ts +1 -1
- package/dialog/index.d.ts +1 -1
- package/dialog/testing/index.d.ts +1 -1
- package/esm2022/button/icon-button.mjs +4 -4
- package/esm2022/card/testing/card-harness.mjs +9 -1
- package/esm2022/checkbox/checkbox.mjs +29 -14
- package/esm2022/chips/chip-action.mjs +14 -13
- package/esm2022/chips/chip-grid.mjs +29 -16
- package/esm2022/chips/chip-input.mjs +14 -17
- package/esm2022/chips/chip-listbox.mjs +19 -22
- package/esm2022/chips/chip-option.mjs +11 -10
- package/esm2022/chips/chip-row.mjs +4 -4
- package/esm2022/chips/chip-set.mjs +19 -18
- package/esm2022/chips/chip.mjs +49 -42
- package/esm2022/core/ripple/ripple-ref.mjs +10 -2
- package/esm2022/core/ripple/ripple-renderer.mjs +11 -11
- package/esm2022/core/version.mjs +1 -1
- package/esm2022/datepicker/date-range-input.mjs +10 -10
- package/esm2022/datepicker/datepicker-base.mjs +41 -49
- package/esm2022/datepicker/datepicker-input-base.mjs +6 -6
- package/esm2022/datepicker/datepicker-toggle.mjs +6 -6
- package/esm2022/datepicker/testing/calendar-harness.mjs +11 -4
- package/esm2022/dialog/dialog-ref.mjs +10 -4
- package/esm2022/dialog/testing/dialog-harness.mjs +11 -4
- package/esm2022/dialog/testing/public-api.mjs +2 -2
- package/esm2022/expansion/accordion.mjs +7 -13
- package/esm2022/expansion/expansion-panel-header.mjs +13 -13
- package/esm2022/expansion/expansion-panel.mjs +6 -6
- package/esm2022/expansion/testing/expansion-harness.mjs +14 -6
- package/esm2022/grid-list/testing/grid-tile-harness.mjs +9 -3
- package/esm2022/icon/icon.mjs +24 -28
- package/esm2022/icon/testing/icon-harness-filters.mjs +7 -2
- package/esm2022/icon/testing/icon-harness.mjs +4 -3
- package/esm2022/list/testing/list-item-harness-base.mjs +18 -6
- package/esm2022/list/testing/public-api.mjs +2 -2
- package/esm2022/paginator/paginator.mjs +32 -35
- package/esm2022/progress-bar/progress-bar.mjs +25 -20
- package/esm2022/progress-spinner/progress-spinner.mjs +34 -33
- package/esm2022/radio/radio.mjs +40 -34
- package/esm2022/select/select.mjs +44 -36
- package/esm2022/slider/slider-input.mjs +23 -22
- package/esm2022/slider/slider-interface.mjs +16 -1
- package/esm2022/slider/slider-thumb.mjs +6 -6
- package/esm2022/slider/slider.mjs +73 -72
- package/esm2022/slider/testing/slider-harness-filters.mjs +7 -2
- package/esm2022/slider/testing/slider-harness.mjs +4 -3
- package/esm2022/slider/testing/slider-thumb-harness.mjs +3 -2
- package/esm2022/sort/sort-header.mjs +16 -24
- package/esm2022/sort/sort.mjs +12 -19
- package/esm2022/stepper/step-header.mjs +7 -12
- package/esm2022/stepper/stepper.mjs +1 -1
- package/esm2022/stepper/testing/step-harness-filters.mjs +7 -2
- package/esm2022/stepper/testing/stepper-harness.mjs +4 -3
- package/esm2022/tabs/paginated-tab-header.mjs +12 -18
- package/esm2022/tabs/tab-group.mjs +54 -70
- package/esm2022/tabs/tab-header.mjs +7 -13
- package/esm2022/tabs/tab-label-wrapper.mjs +12 -8
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +43 -37
- package/esm2022/tabs/tab.mjs +12 -12
- package/esm2022/toolbar/testing/toolbar-harness.mjs +7 -2
- package/esm2022/toolbar/toolbar.mjs +11 -16
- package/esm2022/tree/node.mjs +20 -20
- package/esm2022/tree/padding.mjs +11 -4
- package/expansion/index.d.ts +11 -19
- package/expansion/testing/index.d.ts +1 -1
- package/fesm2022/button.mjs +4 -4
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card/testing.mjs +9 -1
- package/fesm2022/card/testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +29 -14
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips.mjs +144 -119
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core.mjs +20 -12
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker/testing.mjs +11 -4
- package/fesm2022/datepicker/testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +56 -61
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs +11 -4
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +10 -4
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/expansion/testing.mjs +14 -6
- package/fesm2022/expansion/testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +22 -26
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/grid-list/testing.mjs +9 -3
- package/fesm2022/grid-list/testing.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +10 -3
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/icon.mjs +24 -27
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/list/testing.mjs +18 -6
- package/fesm2022/list/testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +31 -34
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +25 -19
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +34 -32
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio.mjs +41 -34
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/select.mjs +43 -35
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/slider/testing.mjs +11 -4
- package/fesm2022/slider/testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +109 -91
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/sort.mjs +25 -38
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper/testing.mjs +10 -3
- package/fesm2022/stepper/testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +8 -12
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/tabs.mjs +130 -141
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/toolbar/testing.mjs +7 -2
- package/fesm2022/toolbar/testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +11 -15
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tree.mjs +22 -21
- package/fesm2022/tree.mjs.map +1 -1
- package/grid-list/_grid-list-theme.scss +47 -14
- package/grid-list/testing/index.d.ts +1 -1
- package/icon/index.d.ts +10 -16
- package/icon/testing/index.d.ts +1 -1
- package/list/testing/index.d.ts +2 -2
- package/package.json +7 -7
- package/paginator/index.d.ts +16 -17
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress-bar/index.d.ts +12 -15
- package/progress-spinner/index.d.ts +14 -15
- package/radio/index.d.ts +20 -22
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.mjs +2 -2
- package/schematics/ng-generate/mdc-migration/index_bundled.js +11 -4
- package/schematics/ng-generate/mdc-migration/index_bundled.js.map +3 -3
- package/select/index.d.ts +22 -17
- package/slider/index.d.ts +30 -30
- package/slider/testing/index.d.ts +1 -1
- package/sort/index.d.ts +15 -20
- package/stepper/index.d.ts +5 -15
- package/stepper/testing/index.d.ts +1 -1
- package/tabs/index.d.ts +61 -64
- package/toolbar/index.d.ts +5 -12
- package/toolbar/testing/index.d.ts +1 -1
- package/tree/index.d.ts +13 -15
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
@use '../core/tokens/m2/mdc/icon-button' as tokens-mdc-icon-button;
|
|
5
5
|
@use '../core/tokens/m2/mat/icon-button' as tokens-mat-icon-button;
|
|
6
6
|
|
|
7
|
+
@use '../core/style/sass-utils';
|
|
7
8
|
@use './button-base';
|
|
8
9
|
@use '../core/tokens/token-utils';
|
|
9
10
|
@use '../core/theming/theming';
|
|
@@ -11,7 +12,10 @@
|
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
@mixin base($theme) {
|
|
14
|
-
//
|
|
15
|
+
// Add default values for tokens not related to color, typography, or density.
|
|
16
|
+
@include sass-utils.current-selector-or-root() {
|
|
17
|
+
@include mdc-icon-button-theme.theme(tokens-mdc-icon-button.get-unthemable-tokens());
|
|
18
|
+
}
|
|
15
19
|
}
|
|
16
20
|
|
|
17
21
|
@mixin _icon-button-variant($theme, $palette) {
|
package/card/testing/index.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export declare class MatCardHarness extends ContentContainerComponentHarness<Mat
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/** Selectors for different sections of the mat-card that can container user content. */
|
|
37
|
-
export declare
|
|
37
|
+
export declare enum MatCardSection {
|
|
38
38
|
HEADER = ".mat-mdc-card-header",
|
|
39
39
|
CONTENT = ".mat-mdc-card-content",
|
|
40
40
|
ACTIONS = ".mat-mdc-card-actions",
|
package/checkbox/index.d.ts
CHANGED
|
@@ -227,7 +227,7 @@ export declare class _MatCheckboxRequiredValidatorModule {
|
|
|
227
227
|
* Represents the different states that require custom transitions between them.
|
|
228
228
|
* @docs-private
|
|
229
229
|
*/
|
|
230
|
-
export declare
|
|
230
|
+
export declare enum TransitionCheckState {
|
|
231
231
|
/** The initial state of the component before any user interaction. */
|
|
232
232
|
Init = 0,
|
|
233
233
|
/** The state representing the component when it's becoming checked. */
|
package/chips/index.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { _AbstractConstructor } from '@angular/material/core';
|
|
2
2
|
import { AfterContentInit } from '@angular/core';
|
|
3
3
|
import { AfterViewInit } from '@angular/core';
|
|
4
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
5
|
-
import { CanColor } from '@angular/material/core';
|
|
6
|
-
import { CanDisable } from '@angular/material/core';
|
|
7
|
-
import { CanDisableRipple } from '@angular/material/core';
|
|
8
4
|
import { CanUpdateErrorState } from '@angular/material/core';
|
|
9
5
|
import { ChangeDetectorRef } from '@angular/core';
|
|
10
6
|
import { _Constructor } from '@angular/material/core';
|
|
@@ -17,7 +13,6 @@ import { EventEmitter } from '@angular/core';
|
|
|
17
13
|
import { FocusKeyManager } from '@angular/cdk/a11y';
|
|
18
14
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
19
15
|
import { FormGroupDirective } from '@angular/forms';
|
|
20
|
-
import { HasTabIndex } from '@angular/material/core';
|
|
21
16
|
import * as i0 from '@angular/core';
|
|
22
17
|
import * as i11 from '@angular/material/core';
|
|
23
18
|
import { InjectionToken } from '@angular/core';
|
|
@@ -146,8 +141,9 @@ export declare const MAT_CHIPS_DEFAULT_OPTIONS: InjectionToken<MatChipsDefaultOp
|
|
|
146
141
|
*
|
|
147
142
|
* Extended by MatChipOption and MatChipRow for different interaction patterns.
|
|
148
143
|
*/
|
|
149
|
-
export declare class MatChip
|
|
144
|
+
export declare class MatChip implements OnInit, AfterViewInit, AfterContentInit, DoCheck, OnDestroy {
|
|
150
145
|
_changeDetectorRef: ChangeDetectorRef;
|
|
146
|
+
_elementRef: ElementRef<HTMLElement>;
|
|
151
147
|
protected _ngZone: NgZone;
|
|
152
148
|
private _focusMonitor;
|
|
153
149
|
private _globalRippleOptions?;
|
|
@@ -191,18 +187,22 @@ export declare class MatChip extends _MatChipMixinBase implements OnInit, AfterV
|
|
|
191
187
|
get value(): any;
|
|
192
188
|
set value(value: any);
|
|
193
189
|
protected _value: any;
|
|
190
|
+
/** Theme color palette of the chip. */
|
|
191
|
+
color?: string | null;
|
|
194
192
|
/**
|
|
195
193
|
* Determines whether or not the chip displays the remove styling and emits (removed) events.
|
|
196
194
|
*/
|
|
197
|
-
|
|
198
|
-
set removable(value: BooleanInput);
|
|
199
|
-
protected _removable: boolean;
|
|
195
|
+
removable: boolean;
|
|
200
196
|
/**
|
|
201
197
|
* Colors the chip for emphasis as if it were selected.
|
|
202
198
|
*/
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
199
|
+
highlighted: boolean;
|
|
200
|
+
/** Whether the ripple effect is disabled or not. */
|
|
201
|
+
disableRipple: boolean;
|
|
202
|
+
/** Whether the chip is disabled. */
|
|
203
|
+
disabled: boolean;
|
|
204
|
+
/** Tab index of the chip. */
|
|
205
|
+
tabIndex: number;
|
|
206
206
|
/** Emitted when a chip is to be removed. */
|
|
207
207
|
readonly removed: EventEmitter<MatChipEvent>;
|
|
208
208
|
/** Emitted when the chip is destroyed. */
|
|
@@ -229,7 +229,7 @@ export declare class MatChip extends _MatChipMixinBase implements OnInit, AfterV
|
|
|
229
229
|
* Used to improve initial load time of large applications.
|
|
230
230
|
*/
|
|
231
231
|
_rippleLoader: MatRippleLoader;
|
|
232
|
-
constructor(_changeDetectorRef: ChangeDetectorRef,
|
|
232
|
+
constructor(_changeDetectorRef: ChangeDetectorRef, _elementRef: ElementRef<HTMLElement>, _ngZone: NgZone, _focusMonitor: FocusMonitor, _document: any, animationMode?: string, _globalRippleOptions?: RippleGlobalOptions | undefined, tabIndex?: string);
|
|
233
233
|
ngOnInit(): void;
|
|
234
234
|
ngAfterViewInit(): void;
|
|
235
235
|
ngAfterContentInit(): void;
|
|
@@ -255,17 +255,24 @@ export declare class MatChip extends _MatChipMixinBase implements OnInit, AfterV
|
|
|
255
255
|
_getActions(): MatChipAction[];
|
|
256
256
|
/** Handles interactions with the primary action of the chip. */
|
|
257
257
|
_handlePrimaryActionInteraction(): void;
|
|
258
|
+
/** Gets the tabindex of the chip. */
|
|
259
|
+
_getTabIndex(): number | null;
|
|
258
260
|
/** Starts the focus monitoring process on the chip. */
|
|
259
261
|
private _monitorFocus;
|
|
260
262
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChip, [null, null, null, null, null, { optional: true; }, { optional: true; }, { attribute: "tabindex"; }]>;
|
|
261
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatChip, "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", ["matChip"], { "
|
|
263
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatChip, "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", ["matChip"], { "role": { "alias": "role"; "required": false; }; "id": { "alias": "id"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaDescription": { "alias": "aria-description"; "required": false; }; "value": { "alias": "value"; "required": false; }; "color": { "alias": "color"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "highlighted": { "alias": "highlighted"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "removed": "removed"; "destroyed": "destroyed"; }, ["leadingIcon", "trailingIcon", "removeIcon", "_allLeadingIcons", "_allTrailingIcons", "_allRemoveIcons"], ["mat-chip-avatar, [matChipAvatar]", "*", "mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"], false, never>;
|
|
264
|
+
static ngAcceptInputType_removable: unknown;
|
|
265
|
+
static ngAcceptInputType_highlighted: unknown;
|
|
266
|
+
static ngAcceptInputType_disableRipple: unknown;
|
|
267
|
+
static ngAcceptInputType_disabled: unknown;
|
|
268
|
+
static ngAcceptInputType_tabIndex: unknown;
|
|
262
269
|
}
|
|
263
270
|
|
|
264
271
|
/**
|
|
265
272
|
* Section within a chip.
|
|
266
273
|
* @docs-private
|
|
267
274
|
*/
|
|
268
|
-
declare class MatChipAction
|
|
275
|
+
declare class MatChipAction {
|
|
269
276
|
_elementRef: ElementRef<HTMLElement>;
|
|
270
277
|
protected _parentChip: {
|
|
271
278
|
_handlePrimaryActionInteraction(): void;
|
|
@@ -279,8 +286,10 @@ declare class MatChipAction extends _MatChipActionMixinBase implements HasTabInd
|
|
|
279
286
|
_isPrimary: boolean;
|
|
280
287
|
/** Whether the action is disabled. */
|
|
281
288
|
get disabled(): boolean;
|
|
282
|
-
set disabled(value:
|
|
289
|
+
set disabled(value: boolean);
|
|
283
290
|
private _disabled;
|
|
291
|
+
/** Tab index of the action. */
|
|
292
|
+
tabIndex: number;
|
|
284
293
|
/**
|
|
285
294
|
* Private API to allow focusing this chip when it is disabled.
|
|
286
295
|
*/
|
|
@@ -303,15 +312,11 @@ declare class MatChipAction extends _MatChipActionMixinBase implements HasTabInd
|
|
|
303
312
|
_handleClick(event: MouseEvent): void;
|
|
304
313
|
_handleKeydown(event: KeyboardEvent): void;
|
|
305
314
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipAction, never>;
|
|
306
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipAction, "[matChipAction]", never, { "
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
declare abstract class _MatChipActionBase {
|
|
310
|
-
abstract disabled: boolean;
|
|
315
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipAction, "[matChipAction]", never, { "isInteractive": { "alias": "isInteractive"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "_allowFocusWhenDisabled": { "alias": "_allowFocusWhenDisabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
316
|
+
static ngAcceptInputType_disabled: unknown;
|
|
317
|
+
static ngAcceptInputType_tabIndex: unknown;
|
|
311
318
|
}
|
|
312
319
|
|
|
313
|
-
declare const _MatChipActionMixinBase: _Constructor<HasTabIndex> & _AbstractConstructor<HasTabIndex> & typeof _MatChipActionBase;
|
|
314
|
-
|
|
315
320
|
/** Avatar image within a chip. */
|
|
316
321
|
export declare class MatChipAvatar {
|
|
317
322
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipAvatar, never>;
|
|
@@ -379,7 +384,7 @@ export declare class MatChipGrid extends _MatChipGridMixinBase implements AfterC
|
|
|
379
384
|
* @docs-private
|
|
380
385
|
*/
|
|
381
386
|
get disabled(): boolean;
|
|
382
|
-
set disabled(value:
|
|
387
|
+
set disabled(value: boolean);
|
|
383
388
|
/**
|
|
384
389
|
* Implemented as part of MatFormFieldControl.
|
|
385
390
|
* @docs-private
|
|
@@ -404,7 +409,7 @@ export declare class MatChipGrid extends _MatChipGridMixinBase implements AfterC
|
|
|
404
409
|
* @docs-private
|
|
405
410
|
*/
|
|
406
411
|
get required(): boolean;
|
|
407
|
-
set required(value:
|
|
412
|
+
set required(value: boolean);
|
|
408
413
|
protected _required: boolean | undefined;
|
|
409
414
|
/**
|
|
410
415
|
* Implemented as part of MatFormFieldControl.
|
|
@@ -489,11 +494,18 @@ export declare class MatChipGrid extends _MatChipGridMixinBase implements AfterC
|
|
|
489
494
|
/** Mark the field as touched */
|
|
490
495
|
private _markAsTouched;
|
|
491
496
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipGrid, [null, null, { optional: true; }, { optional: true; }, { optional: true; }, null, { optional: true; self: true; }]>;
|
|
492
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipGrid, "mat-chip-grid", never, { "
|
|
497
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipGrid, "mat-chip-grid", never, { "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; }, { "change": "change"; "valueChange": "valueChange"; }, ["_chips"], ["*"], false, never>;
|
|
498
|
+
static ngAcceptInputType_disabled: unknown;
|
|
499
|
+
static ngAcceptInputType_required: unknown;
|
|
493
500
|
}
|
|
494
501
|
|
|
495
502
|
/**
|
|
496
503
|
* Boilerplate for applying mixins to MatChipGrid.
|
|
504
|
+
* Important! this class needs to be marked as a component or a directive, because
|
|
505
|
+
* leaving it without metadata cuases the framework to execute the host bindings multiple
|
|
506
|
+
* times which breaks the keyboard navigation. We can't use `@Directive()` here, because
|
|
507
|
+
* `MatChipSet` is a component. We should able to remove this class altogether once
|
|
508
|
+
* the error state is moved away from using mixins.
|
|
497
509
|
* @docs-private
|
|
498
510
|
*/
|
|
499
511
|
declare class MatChipGridBase extends MatChipSet {
|
|
@@ -519,6 +531,8 @@ declare class MatChipGridBase extends MatChipSet {
|
|
|
519
531
|
* @docs-private
|
|
520
532
|
*/
|
|
521
533
|
ngControl: NgControl);
|
|
534
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipGridBase, never>;
|
|
535
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipGridBase, "ng-component", never, {}, {}, never, never, false, never>;
|
|
522
536
|
}
|
|
523
537
|
|
|
524
538
|
/** Change event object that is emitted when the chip grid value has changed. */
|
|
@@ -546,15 +560,14 @@ export declare class MatChipInput implements MatChipTextControl, AfterContentIni
|
|
|
546
560
|
private _focusLastChipOnBackspace;
|
|
547
561
|
/** Whether the control is focused. */
|
|
548
562
|
focused: boolean;
|
|
549
|
-
_chipGrid: MatChipGrid;
|
|
550
563
|
/** Register input for chip list */
|
|
564
|
+
get chipGrid(): MatChipGrid;
|
|
551
565
|
set chipGrid(value: MatChipGrid);
|
|
566
|
+
private _chipGrid;
|
|
552
567
|
/**
|
|
553
568
|
* Whether or not the chipEnd event will be emitted when the input is blurred.
|
|
554
569
|
*/
|
|
555
|
-
|
|
556
|
-
set addOnBlur(value: BooleanInput);
|
|
557
|
-
_addOnBlur: boolean;
|
|
570
|
+
addOnBlur: boolean;
|
|
558
571
|
/**
|
|
559
572
|
* The list of key codes that will trigger a chipEnd event.
|
|
560
573
|
*
|
|
@@ -569,7 +582,7 @@ export declare class MatChipInput implements MatChipTextControl, AfterContentIni
|
|
|
569
582
|
id: string;
|
|
570
583
|
/** Whether the input is disabled. */
|
|
571
584
|
get disabled(): boolean;
|
|
572
|
-
set disabled(value:
|
|
585
|
+
set disabled(value: boolean);
|
|
573
586
|
private _disabled;
|
|
574
587
|
/** Whether the input is empty. */
|
|
575
588
|
get empty(): boolean;
|
|
@@ -600,6 +613,8 @@ export declare class MatChipInput implements MatChipTextControl, AfterContentIni
|
|
|
600
613
|
private _isSeparatorKey;
|
|
601
614
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipInput, [null, null, { optional: true; }]>;
|
|
602
615
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipInput, "input[matChipInputFor]", ["matChipInput", "matChipInputFor"], { "chipGrid": { "alias": "matChipInputFor"; "required": false; }; "addOnBlur": { "alias": "matChipInputAddOnBlur"; "required": false; }; "separatorKeyCodes": { "alias": "matChipInputSeparatorKeyCodes"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "id": { "alias": "id"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "chipEnd": "matChipInputTokenEnd"; }, never, never, false, never>;
|
|
616
|
+
static ngAcceptInputType_addOnBlur: unknown;
|
|
617
|
+
static ngAcceptInputType_disabled: unknown;
|
|
603
618
|
}
|
|
604
619
|
|
|
605
620
|
/** Represents an input event on a `matChipInput`. */
|
|
@@ -638,7 +653,7 @@ export declare class MatChipListbox extends MatChipSet implements AfterContentIn
|
|
|
638
653
|
private _defaultOptions;
|
|
639
654
|
/** Whether the user should be allowed to select multiple chips. */
|
|
640
655
|
get multiple(): boolean;
|
|
641
|
-
set multiple(value:
|
|
656
|
+
set multiple(value: boolean);
|
|
642
657
|
private _multiple;
|
|
643
658
|
/** The array of selected chips inside the chip listbox. */
|
|
644
659
|
get selected(): MatChipOption[] | MatChipOption;
|
|
@@ -651,7 +666,7 @@ export declare class MatChipListbox extends MatChipSet implements AfterContentIn
|
|
|
651
666
|
* the chips inside the chip listbox are always ignored.
|
|
652
667
|
*/
|
|
653
668
|
get selectable(): boolean;
|
|
654
|
-
set selectable(value:
|
|
669
|
+
set selectable(value: boolean);
|
|
655
670
|
protected _selectable: boolean;
|
|
656
671
|
/**
|
|
657
672
|
* A function to compare the option values with the selected values. The first argument
|
|
@@ -660,12 +675,10 @@ export declare class MatChipListbox extends MatChipSet implements AfterContentIn
|
|
|
660
675
|
*/
|
|
661
676
|
compareWith: (o1: any, o2: any) => boolean;
|
|
662
677
|
/** Whether this chip listbox is required. */
|
|
663
|
-
|
|
664
|
-
set required(value: BooleanInput);
|
|
665
|
-
protected _required: boolean;
|
|
678
|
+
required: boolean;
|
|
666
679
|
/** Whether checkmark indicator for single-selection options is hidden. */
|
|
667
680
|
get hideSingleSelectionIndicator(): boolean;
|
|
668
|
-
set hideSingleSelectionIndicator(value:
|
|
681
|
+
set hideSingleSelectionIndicator(value: boolean);
|
|
669
682
|
private _hideSingleSelectionIndicator;
|
|
670
683
|
/** Combined stream of all of the child chips' selection change events. */
|
|
671
684
|
get chipSelectionChanges(): Observable<MatChipSelectionChange>;
|
|
@@ -733,7 +746,11 @@ export declare class MatChipListbox extends MatChipSet implements AfterContentIn
|
|
|
733
746
|
*/
|
|
734
747
|
protected _skipPredicate(action: MatChipAction): boolean;
|
|
735
748
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipListbox, never>;
|
|
736
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipListbox, "mat-chip-listbox", never, { "
|
|
749
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipListbox, "mat-chip-listbox", never, { "multiple": { "alias": "multiple"; "required": false; }; "ariaOrientation": { "alias": "aria-orientation"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "required": { "alias": "required"; "required": false; }; "hideSingleSelectionIndicator": { "alias": "hideSingleSelectionIndicator"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "change": "change"; }, ["_chips"], ["*"], false, never>;
|
|
750
|
+
static ngAcceptInputType_multiple: unknown;
|
|
751
|
+
static ngAcceptInputType_selectable: unknown;
|
|
752
|
+
static ngAcceptInputType_required: unknown;
|
|
753
|
+
static ngAcceptInputType_hideSingleSelectionIndicator: unknown;
|
|
737
754
|
}
|
|
738
755
|
|
|
739
756
|
/** Change event object that is emitted when the chip listbox value has changed. */
|
|
@@ -749,16 +766,6 @@ export declare class MatChipListboxChange {
|
|
|
749
766
|
value: any);
|
|
750
767
|
}
|
|
751
768
|
|
|
752
|
-
/**
|
|
753
|
-
* Boilerplate for applying mixins to MatChip.
|
|
754
|
-
* @docs-private
|
|
755
|
-
*/
|
|
756
|
-
declare const _MatChipMixinBase: _Constructor<HasTabIndex> & _AbstractConstructor<HasTabIndex> & _Constructor<CanColor> & _AbstractConstructor<CanColor> & _Constructor<CanDisableRipple> & _AbstractConstructor<CanDisableRipple> & _Constructor<CanDisable> & _AbstractConstructor<CanDisable> & {
|
|
757
|
-
new (_elementRef: ElementRef<HTMLElement>): {
|
|
758
|
-
_elementRef: ElementRef<HTMLElement>;
|
|
759
|
-
};
|
|
760
|
-
};
|
|
761
|
-
|
|
762
769
|
/**
|
|
763
770
|
* An extension of the MatChip component that supports chip selection. Used with MatChipListbox.
|
|
764
771
|
*
|
|
@@ -782,11 +789,11 @@ export declare class MatChipOption extends MatChip implements OnInit {
|
|
|
782
789
|
* non-selectable if its parent chip list is not selectable.
|
|
783
790
|
*/
|
|
784
791
|
get selectable(): boolean;
|
|
785
|
-
set selectable(value:
|
|
792
|
+
set selectable(value: boolean);
|
|
786
793
|
protected _selectable: boolean;
|
|
787
794
|
/** Whether the chip is selected. */
|
|
788
795
|
get selected(): boolean;
|
|
789
|
-
set selected(value:
|
|
796
|
+
set selected(value: boolean);
|
|
790
797
|
private _selected;
|
|
791
798
|
/**
|
|
792
799
|
* The ARIA selected applied to the chip. Conforms to WAI ARIA best practices for listbox
|
|
@@ -819,7 +826,9 @@ export declare class MatChipOption extends MatChip implements OnInit {
|
|
|
819
826
|
_hasLeadingGraphic(): boolean;
|
|
820
827
|
_setSelectedState(isSelected: boolean, isUserInput: boolean, emitEvent: boolean): void;
|
|
821
828
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipOption, never>;
|
|
822
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipOption, "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", never, { "
|
|
829
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipOption, "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", never, { "selectable": { "alias": "selectable"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, ["mat-chip-avatar, [matChipAvatar]", "*", "mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"], false, never>;
|
|
830
|
+
static ngAcceptInputType_selectable: unknown;
|
|
831
|
+
static ngAcceptInputType_selected: unknown;
|
|
823
832
|
}
|
|
824
833
|
|
|
825
834
|
/**
|
|
@@ -880,7 +889,7 @@ export declare class MatChipRow extends MatChip implements AfterViewInit {
|
|
|
880
889
|
*/
|
|
881
890
|
private _getEditInput;
|
|
882
891
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipRow, [null, null, null, null, null, { optional: true; }, { optional: true; }, { attribute: "tabindex"; }]>;
|
|
883
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipRow, "mat-chip-row, [mat-chip-row], mat-basic-chip-row, [mat-basic-chip-row]", never, { "
|
|
892
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipRow, "mat-chip-row, [mat-chip-row], mat-basic-chip-row, [mat-basic-chip-row]", never, { "editable": { "alias": "editable"; "required": false; }; }, { "edited": "edited"; }, ["contentEditInput"], ["mat-chip-avatar, [matChipAvatar]", "[matChipEditInput]", "*", "mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"], false, never>;
|
|
884
893
|
}
|
|
885
894
|
|
|
886
895
|
/** Default options, for the chips module, that can be overridden. */
|
|
@@ -913,7 +922,7 @@ export declare class MatChipSelectionChange {
|
|
|
913
922
|
*
|
|
914
923
|
* Extended by MatChipListbox and MatChipGrid for different interaction patterns.
|
|
915
924
|
*/
|
|
916
|
-
export declare class MatChipSet
|
|
925
|
+
export declare class MatChipSet implements AfterViewInit, OnDestroy {
|
|
917
926
|
protected _elementRef: ElementRef<HTMLElement>;
|
|
918
927
|
protected _changeDetectorRef: ChangeDetectorRef;
|
|
919
928
|
private _dir;
|
|
@@ -927,16 +936,20 @@ export declare class MatChipSet extends _MatChipSetMixinBase implements AfterVie
|
|
|
927
936
|
protected _defaultRole: string;
|
|
928
937
|
/** Combined stream of all of the child chips' focus events. */
|
|
929
938
|
get chipFocusChanges(): Observable<MatChipEvent>;
|
|
930
|
-
/** Combined stream of all of the child chips'
|
|
939
|
+
/** Combined stream of all of the child chips' destroy events. */
|
|
931
940
|
get chipDestroyedChanges(): Observable<MatChipEvent>;
|
|
941
|
+
/** Combined stream of all of the child chips' remove events. */
|
|
942
|
+
get chipRemovedChanges(): Observable<MatChipEvent>;
|
|
932
943
|
/** Whether the chip set is disabled. */
|
|
933
944
|
get disabled(): boolean;
|
|
934
|
-
set disabled(value:
|
|
945
|
+
set disabled(value: boolean);
|
|
935
946
|
protected _disabled: boolean;
|
|
936
947
|
/** Whether the chip list contains chips or not. */
|
|
937
948
|
get empty(): boolean;
|
|
938
949
|
/** The ARIA role applied to the chip set. */
|
|
939
950
|
get role(): string | null;
|
|
951
|
+
/** Tabindex of the chip set. */
|
|
952
|
+
tabIndex: number;
|
|
940
953
|
set role(value: string | null);
|
|
941
954
|
private _explicitRole;
|
|
942
955
|
/** Whether any of the chips inside of this chip-set has focus. */
|
|
@@ -993,20 +1006,11 @@ export declare class MatChipSet extends _MatChipSetMixinBase implements AfterVie
|
|
|
993
1006
|
*/
|
|
994
1007
|
private _redirectDestroyedChipFocus;
|
|
995
1008
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipSet, [null, null, { optional: true; }]>;
|
|
996
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipSet, "mat-chip-set", never, { "disabled": { "alias": "disabled"; "required": false; }; "role": { "alias": "role"; "required": false; }; }, {}, ["_chips"], ["*"], false, never>;
|
|
1009
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipSet, "mat-chip-set", never, { "disabled": { "alias": "disabled"; "required": false; }; "role": { "alias": "role"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, {}, ["_chips"], ["*"], false, never>;
|
|
1010
|
+
static ngAcceptInputType_disabled: unknown;
|
|
1011
|
+
static ngAcceptInputType_tabIndex: unknown;
|
|
997
1012
|
}
|
|
998
1013
|
|
|
999
|
-
/**
|
|
1000
|
-
* Boilerplate for applying mixins to MatChipSet.
|
|
1001
|
-
* @docs-private
|
|
1002
|
-
*/
|
|
1003
|
-
declare abstract class MatChipSetBase {
|
|
1004
|
-
abstract disabled: boolean;
|
|
1005
|
-
constructor(_elementRef: ElementRef);
|
|
1006
|
-
}
|
|
1007
|
-
|
|
1008
|
-
declare const _MatChipSetMixinBase: _Constructor<HasTabIndex> & _AbstractConstructor<HasTabIndex> & typeof MatChipSetBase;
|
|
1009
|
-
|
|
1010
1014
|
export declare class MatChipsModule {
|
|
1011
1015
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipsModule, never>;
|
|
1012
1016
|
static ɵmod: i0.ɵɵNgModuleDeclaration<MatChipsModule, [typeof i1.MatChipAction, typeof i2.MatChip, typeof i3.MatChipAvatar, typeof i4.MatChipEditInput, typeof i5.MatChipGrid, typeof i6.MatChipInput, typeof i7.MatChipListbox, typeof i8.MatChipOption, typeof i3.MatChipRemove, typeof i9.MatChipRow, typeof i10.MatChipSet, typeof i3.MatChipTrailingIcon], [typeof i11.MatCommonModule, typeof i11.MatRippleModule], [typeof i11.MatCommonModule, typeof i2.MatChip, typeof i3.MatChipAvatar, typeof i4.MatChipEditInput, typeof i5.MatChipGrid, typeof i6.MatChipInput, typeof i7.MatChipListbox, typeof i8.MatChipOption, typeof i3.MatChipRemove, typeof i9.MatChipRow, typeof i10.MatChipSet, typeof i3.MatChipTrailingIcon]>;
|
package/core/index.d.ts
CHANGED
|
@@ -1059,7 +1059,7 @@ export declare class RippleRenderer implements EventListenerObject {
|
|
|
1059
1059
|
|
|
1060
1060
|
|
|
1061
1061
|
/** Possible states for a ripple element. */
|
|
1062
|
-
export declare
|
|
1062
|
+
export declare enum RippleState {
|
|
1063
1063
|
FADING_IN = 0,
|
|
1064
1064
|
VISIBLE = 1,
|
|
1065
1065
|
FADING_OUT = 2,
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
@use '../../style/sass-utils';
|
|
4
4
|
@use './mat/card' as tokens-mat-card;
|
|
5
5
|
@use './mat/form-field' as tokens-mat-form-field;
|
|
6
|
+
@use './mat/grid-list' as tokens-mat-grid-list;
|
|
6
7
|
@use './mat/radio' as tokens-mat-radio;
|
|
7
8
|
@use './mat/ripple' as tokens-mat-ripple;
|
|
8
9
|
@use './mat/slide-toggle' as tokens-mat-slide-toggle;
|
|
@@ -78,6 +79,7 @@
|
|
|
78
79
|
@return sass-utils.deep-merge-all(
|
|
79
80
|
_get-tokens-for-module($theme, tokens-mat-card),
|
|
80
81
|
_get-tokens-for-module($theme, tokens-mat-form-field),
|
|
82
|
+
_get-tokens-for-module($theme, tokens-mat-grid-list),
|
|
81
83
|
_get-tokens-for-module($theme, tokens-mat-radio),
|
|
82
84
|
_get-tokens-for-module($theme, tokens-mat-ripple),
|
|
83
85
|
_get-tokens-for-module($theme, tokens-mat-slide-toggle),
|
package/datepicker/index.d.ts
CHANGED
|
@@ -5,8 +5,6 @@ import { AfterViewChecked } from '@angular/core';
|
|
|
5
5
|
import { AfterViewInit } from '@angular/core';
|
|
6
6
|
import { AnimationEvent as AnimationEvent_2 } from '@angular/animations';
|
|
7
7
|
import { AnimationTriggerMetadata } from '@angular/animations';
|
|
8
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
9
|
-
import { CanColor } from '@angular/material/core';
|
|
10
8
|
import { CanUpdateErrorState } from '@angular/material/core';
|
|
11
9
|
import { ChangeDetectorRef } from '@angular/core';
|
|
12
10
|
import { ComponentType } from '@angular/cdk/portal';
|
|
@@ -702,12 +700,10 @@ declare abstract class MatDatepickerBase<C extends MatDatepickerControl<D>, S, D
|
|
|
702
700
|
* Whether the calendar UI is in touch mode. In touch mode the calendar opens in a dialog rather
|
|
703
701
|
* than a dropdown and elements have more padding to allow for bigger touch targets.
|
|
704
702
|
*/
|
|
705
|
-
|
|
706
|
-
set touchUi(value: BooleanInput);
|
|
707
|
-
private _touchUi;
|
|
703
|
+
touchUi: boolean;
|
|
708
704
|
/** Whether the datepicker pop-up should be disabled. */
|
|
709
705
|
get disabled(): boolean;
|
|
710
|
-
set disabled(value:
|
|
706
|
+
set disabled(value: boolean);
|
|
711
707
|
private _disabled;
|
|
712
708
|
/** Preferred position of the datepicker in the X axis. */
|
|
713
709
|
xPosition: DatepickerDropdownPositionX;
|
|
@@ -718,9 +714,7 @@ declare abstract class MatDatepickerBase<C extends MatDatepickerControl<D>, S, D
|
|
|
718
714
|
* Note that automatic focus restoration is an accessibility feature and it is recommended that
|
|
719
715
|
* you provide your own equivalent, if you decide to turn it off.
|
|
720
716
|
*/
|
|
721
|
-
|
|
722
|
-
set restoreFocus(value: BooleanInput);
|
|
723
|
-
private _restoreFocus;
|
|
717
|
+
restoreFocus: boolean;
|
|
724
718
|
/**
|
|
725
719
|
* Emits selected year in multiyear view.
|
|
726
720
|
* This doesn't imply a change on the selected date.
|
|
@@ -750,7 +744,7 @@ declare abstract class MatDatepickerBase<C extends MatDatepickerControl<D>, S, D
|
|
|
750
744
|
private _panelClass;
|
|
751
745
|
/** Whether the calendar is open. */
|
|
752
746
|
get opened(): boolean;
|
|
753
|
-
set opened(value:
|
|
747
|
+
set opened(value: boolean);
|
|
754
748
|
private _opened;
|
|
755
749
|
/** The id for the datepicker calendar. */
|
|
756
750
|
id: string;
|
|
@@ -822,6 +816,10 @@ declare abstract class MatDatepickerBase<C extends MatDatepickerControl<D>, S, D
|
|
|
822
816
|
private _getCloseStream;
|
|
823
817
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatDatepickerBase<any, any, any>, [null, null, null, null, { optional: true; }, { optional: true; }, null]>;
|
|
824
818
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatDatepickerBase<any, any, any>, never, never, { "calendarHeaderComponent": { "alias": "calendarHeaderComponent"; "required": false; }; "startAt": { "alias": "startAt"; "required": false; }; "startView": { "alias": "startView"; "required": false; }; "color": { "alias": "color"; "required": false; }; "touchUi": { "alias": "touchUi"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "xPosition": { "alias": "xPosition"; "required": false; }; "yPosition": { "alias": "yPosition"; "required": false; }; "restoreFocus": { "alias": "restoreFocus"; "required": false; }; "dateClass": { "alias": "dateClass"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; }, { "yearSelected": "yearSelected"; "monthSelected": "monthSelected"; "viewChanged": "viewChanged"; "openedStream": "opened"; "closedStream": "closed"; }, never, never, false, never>;
|
|
819
|
+
static ngAcceptInputType_touchUi: unknown;
|
|
820
|
+
static ngAcceptInputType_disabled: unknown;
|
|
821
|
+
static ngAcceptInputType_restoreFocus: unknown;
|
|
822
|
+
static ngAcceptInputType_opened: unknown;
|
|
825
823
|
}
|
|
826
824
|
|
|
827
825
|
/** Button that will close the datepicker and discard the current selection. */
|
|
@@ -839,7 +837,8 @@ export declare class MatDatepickerCancel {
|
|
|
839
837
|
* future. (e.g. confirmation buttons).
|
|
840
838
|
* @docs-private
|
|
841
839
|
*/
|
|
842
|
-
export declare class MatDatepickerContent<S, D = ExtractDateTypeFromSelection<S>>
|
|
840
|
+
export declare class MatDatepickerContent<S, D = ExtractDateTypeFromSelection<S>> implements OnInit, AfterViewInit, OnDestroy {
|
|
841
|
+
protected _elementRef: ElementRef;
|
|
843
842
|
private _changeDetectorRef;
|
|
844
843
|
private _globalModel;
|
|
845
844
|
private _dateAdapter;
|
|
@@ -848,6 +847,8 @@ export declare class MatDatepickerContent<S, D = ExtractDateTypeFromSelection<S>
|
|
|
848
847
|
private _model;
|
|
849
848
|
/** Reference to the internal calendar component. */
|
|
850
849
|
_calendar: MatCalendar<D>;
|
|
850
|
+
/** Palette color of the internal calendar. */
|
|
851
|
+
color: ThemePalette;
|
|
851
852
|
/** Reference to the datepicker that created the overlay. */
|
|
852
853
|
datepicker: MatDatepickerBase<any, S, D>;
|
|
853
854
|
/** Start of the comparison range. */
|
|
@@ -874,7 +875,7 @@ export declare class MatDatepickerContent<S, D = ExtractDateTypeFromSelection<S>
|
|
|
874
875
|
_actionsPortal: TemplatePortal | null;
|
|
875
876
|
/** Id of the label for the `role="dialog"` element. */
|
|
876
877
|
_dialogLabelId: string | null;
|
|
877
|
-
constructor(
|
|
878
|
+
constructor(_elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef, _globalModel: MatDateSelectionModel<S, D>, _dateAdapter: DateAdapter<D>, _rangeSelectionStrategy: MatDateRangeSelectionStrategy<D>, intl: MatDatepickerIntl);
|
|
878
879
|
ngOnInit(): void;
|
|
879
880
|
ngAfterViewInit(): void;
|
|
880
881
|
ngOnDestroy(): void;
|
|
@@ -897,13 +898,6 @@ export declare class MatDatepickerContent<S, D = ExtractDateTypeFromSelection<S>
|
|
|
897
898
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatDatepickerContent<any, any>, "mat-datepicker-content", ["matDatepickerContent"], { "color": { "alias": "color"; "required": false; }; }, {}, never, never, false, never>;
|
|
898
899
|
}
|
|
899
900
|
|
|
900
|
-
/** @docs-private */
|
|
901
|
-
declare const _MatDatepickerContentBase: _Constructor<CanColor> & _AbstractConstructor<CanColor> & {
|
|
902
|
-
new (_elementRef: ElementRef): {
|
|
903
|
-
_elementRef: ElementRef;
|
|
904
|
-
};
|
|
905
|
-
};
|
|
906
|
-
|
|
907
901
|
/** Form control that can be associated with a datepicker. */
|
|
908
902
|
export declare interface MatDatepickerControl<D> {
|
|
909
903
|
getStartValue(): D | null;
|
|
@@ -979,7 +973,7 @@ declare abstract class MatDatepickerInputBase<S, D = ExtractDateTypeFromSelectio
|
|
|
979
973
|
protected _model: MatDateSelectionModel<S, D> | undefined;
|
|
980
974
|
/** Whether the datepicker-input is disabled. */
|
|
981
975
|
get disabled(): boolean;
|
|
982
|
-
set disabled(value:
|
|
976
|
+
set disabled(value: boolean);
|
|
983
977
|
private _disabled;
|
|
984
978
|
/** Emits when a `change` event is fired on this `<input>`. */
|
|
985
979
|
readonly dateChange: EventEmitter<MatDatepickerInputEvent<D, S>>;
|
|
@@ -1062,6 +1056,7 @@ declare abstract class MatDatepickerInputBase<S, D = ExtractDateTypeFromSelectio
|
|
|
1062
1056
|
_matchesFilter(value: D | null): boolean;
|
|
1063
1057
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatDatepickerInputBase<any, any>, [null, { optional: true; }, { optional: true; }]>;
|
|
1064
1058
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatDatepickerInputBase<any, any>, never, never, { "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "dateChange": "dateChange"; "dateInput": "dateInput"; }, never, never, false, never>;
|
|
1059
|
+
static ngAcceptInputType_disabled: unknown;
|
|
1065
1060
|
}
|
|
1066
1061
|
|
|
1067
1062
|
/**
|
|
@@ -1174,7 +1169,7 @@ export declare class MatDatepickerToggle<D> implements AfterContentInit, OnChang
|
|
|
1174
1169
|
ariaLabel: string;
|
|
1175
1170
|
/** Whether the toggle button is disabled. */
|
|
1176
1171
|
get disabled(): boolean;
|
|
1177
|
-
set disabled(value:
|
|
1172
|
+
set disabled(value: boolean);
|
|
1178
1173
|
private _disabled;
|
|
1179
1174
|
/** Whether ripples on the toggle should be disabled. */
|
|
1180
1175
|
disableRipple: boolean;
|
|
@@ -1190,6 +1185,7 @@ export declare class MatDatepickerToggle<D> implements AfterContentInit, OnChang
|
|
|
1190
1185
|
private _watchStateChanges;
|
|
1191
1186
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatDatepickerToggle<any>, [null, null, { attribute: "tabindex"; }]>;
|
|
1192
1187
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatDatepickerToggle<any>, "mat-datepicker-toggle", ["matDatepickerToggle"], { "datepicker": { "alias": "for"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; }, {}, ["_customIcon"], ["[matDatepickerToggleIcon]"], false, never>;
|
|
1188
|
+
static ngAcceptInputType_disabled: unknown;
|
|
1193
1189
|
}
|
|
1194
1190
|
|
|
1195
1191
|
/** Can be used to override the icon of a `matDatepickerToggle`. */
|
|
@@ -1226,7 +1222,7 @@ export declare class MatDateRangeInput<D> implements MatFormFieldControl<DateRan
|
|
|
1226
1222
|
private _rangePicker;
|
|
1227
1223
|
/** Whether the input is required. */
|
|
1228
1224
|
get required(): boolean;
|
|
1229
|
-
set required(value:
|
|
1225
|
+
set required(value: boolean);
|
|
1230
1226
|
private _required;
|
|
1231
1227
|
/** Function that can be used to filter out dates within the date range picker. */
|
|
1232
1228
|
get dateFilter(): DateFilterFn<D>;
|
|
@@ -1242,7 +1238,7 @@ export declare class MatDateRangeInput<D> implements MatFormFieldControl<DateRan
|
|
|
1242
1238
|
private _max;
|
|
1243
1239
|
/** Whether the input is disabled. */
|
|
1244
1240
|
get disabled(): boolean;
|
|
1245
|
-
set disabled(value:
|
|
1241
|
+
set disabled(value: boolean);
|
|
1246
1242
|
_groupDisabled: boolean;
|
|
1247
1243
|
/** Whether the input is in an error state. */
|
|
1248
1244
|
get errorState(): boolean;
|
|
@@ -1314,6 +1310,8 @@ export declare class MatDateRangeInput<D> implements MatFormFieldControl<DateRan
|
|
|
1314
1310
|
private _isTargetRequired;
|
|
1315
1311
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatDateRangeInput<any>, [null, null, { optional: true; self: true; }, { optional: true; }, { optional: true; }]>;
|
|
1316
1312
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatDateRangeInput<any>, "mat-date-range-input", ["matDateRangeInput"], { "rangePicker": { "alias": "rangePicker"; "required": false; }; "required": { "alias": "required"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "separator": { "alias": "separator"; "required": false; }; "comparisonStart": { "alias": "comparisonStart"; "required": false; }; "comparisonEnd": { "alias": "comparisonEnd"; "required": false; }; }, {}, ["_startInput", "_endInput"], ["input[matStartDate]", "input[matEndDate]"], false, never>;
|
|
1313
|
+
static ngAcceptInputType_required: unknown;
|
|
1314
|
+
static ngAcceptInputType_disabled: unknown;
|
|
1317
1315
|
}
|
|
1318
1316
|
|
|
1319
1317
|
declare const _MatDateRangeInputBase: _Constructor<CanUpdateErrorState> & _AbstractConstructor<CanUpdateErrorState> & typeof MatDateRangeInputPartBase;
|
|
@@ -28,7 +28,7 @@ export declare interface CalendarHarnessFilters extends BaseHarnessFilters {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/** Possible views of a `MatCalendarHarness`. */
|
|
31
|
-
export declare
|
|
31
|
+
export declare enum CalendarView {
|
|
32
32
|
MONTH = 0,
|
|
33
33
|
YEAR = 1,
|
|
34
34
|
MULTI_YEAR = 2
|
package/dialog/index.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export declare class MatDialogHarness extends ContentContainerComponentHarness<M
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
/** Selectors for different sections of the mat-dialog that can contain user content. */
|
|
58
|
-
export declare
|
|
58
|
+
export declare enum MatDialogSection {
|
|
59
59
|
TITLE = ".mat-mdc-dialog-title",
|
|
60
60
|
CONTENT = ".mat-mdc-dialog-content",
|
|
61
61
|
ACTIONS = ".mat-mdc-dialog-actions"
|