@angular/material 19.1.0 → 19.2.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/fesm2022/core.mjs +1 -1
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/stepper.mjs +132 -61
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/tabs.mjs +176 -92
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +15 -2
- package/fesm2022/timepicker.mjs.map +1 -1
- package/package.json +7 -7
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.mjs +2 -2
- package/schematics/ng-generate/theme-color/index_bundled.js +38 -14
- package/schematics/ng-generate/theme-color/index_bundled.js.map +2 -2
- package/stepper/index.d.ts +16 -4
- package/tabs/index.d.ts +48 -25
- package/timepicker/index.d.ts +10 -1
package/stepper/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AbstractControl } from '@angular/forms';
|
|
2
2
|
import { AfterContentInit } from '@angular/core';
|
|
3
3
|
import { AfterViewInit } from '@angular/core';
|
|
4
|
-
import { AnimationEvent as AnimationEvent_2 } from '@angular/animations';
|
|
5
4
|
import { AnimationTriggerMetadata } from '@angular/animations';
|
|
6
5
|
import { CdkStep } from '@angular/cdk/stepper';
|
|
7
6
|
import { CdkStepHeader } from '@angular/cdk/stepper';
|
|
@@ -9,6 +8,7 @@ import { CdkStepLabel } from '@angular/cdk/stepper';
|
|
|
9
8
|
import { CdkStepper } from '@angular/cdk/stepper';
|
|
10
9
|
import { CdkStepperNext } from '@angular/cdk/stepper';
|
|
11
10
|
import { CdkStepperPrevious } from '@angular/cdk/stepper';
|
|
11
|
+
import { ElementRef } from '@angular/core';
|
|
12
12
|
import { ErrorStateMatcher } from '@angular/material/core';
|
|
13
13
|
import { EventEmitter } from '@angular/core';
|
|
14
14
|
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
@@ -28,6 +28,7 @@ import { Subject } from 'rxjs';
|
|
|
28
28
|
import { TemplatePortal } from '@angular/cdk/portal';
|
|
29
29
|
import { TemplateRef } from '@angular/core';
|
|
30
30
|
import { ThemePalette } from '@angular/material/core';
|
|
31
|
+
import { WritableSignal } from '@angular/core';
|
|
31
32
|
|
|
32
33
|
declare namespace i10 {
|
|
33
34
|
export {
|
|
@@ -169,9 +170,16 @@ export declare class MatStepLabel extends CdkStepLabel {
|
|
|
169
170
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatStepLabel, "[matStepLabel]", never, {}, {}, never, never, true, never>;
|
|
170
171
|
}
|
|
171
172
|
|
|
172
|
-
export declare class MatStepper extends CdkStepper implements AfterContentInit {
|
|
173
|
+
export declare class MatStepper extends CdkStepper implements AfterViewInit, AfterContentInit, OnDestroy {
|
|
174
|
+
private _ngZone;
|
|
175
|
+
private _renderer;
|
|
176
|
+
private _animationsModule;
|
|
177
|
+
private _cleanupTransition;
|
|
178
|
+
protected _isAnimating: WritableSignal<boolean>;
|
|
173
179
|
/** The list of step headers of the steps in the stepper. */
|
|
174
180
|
_stepHeader: QueryList<MatStepHeader>;
|
|
181
|
+
/** Elements hosting the step animations. */
|
|
182
|
+
_animatedContainers: QueryList<ElementRef>;
|
|
175
183
|
/** Full list of steps inside the stepper, including inside nested steppers. */
|
|
176
184
|
_steps: QueryList<MatStep>;
|
|
177
185
|
/** Steps that belong to the current stepper, excluding ones from nested steppers. */
|
|
@@ -202,8 +210,6 @@ export declare class MatStepper extends CdkStepper implements AfterContentInit {
|
|
|
202
210
|
headerPosition: 'top' | 'bottom';
|
|
203
211
|
/** Consumer-specified template-refs to be used to override the header icons. */
|
|
204
212
|
_iconOverrides: Record<string, TemplateRef<MatStepperIconContext>>;
|
|
205
|
-
/** Stream of animation `done` events when the body expands/collapses. */
|
|
206
|
-
readonly _animationDone: Subject<AnimationEvent_2>;
|
|
207
213
|
/** Duration for the animation. Will be normalized to milliseconds if no units are set. */
|
|
208
214
|
get animationDuration(): string;
|
|
209
215
|
set animationDuration(value: string);
|
|
@@ -212,8 +218,12 @@ export declare class MatStepper extends CdkStepper implements AfterContentInit {
|
|
|
212
218
|
protected _isServer: boolean;
|
|
213
219
|
constructor(...args: unknown[]);
|
|
214
220
|
ngAfterContentInit(): void;
|
|
221
|
+
ngAfterViewInit(): void;
|
|
222
|
+
ngOnDestroy(): void;
|
|
215
223
|
_stepIsNavigable(index: number, step: MatStep): boolean;
|
|
216
224
|
_getAnimationDuration(): string;
|
|
225
|
+
private _handleTransitionend;
|
|
226
|
+
private _onAnimationDone;
|
|
217
227
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatStepper, never>;
|
|
218
228
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatStepper, "mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]", ["matStepper", "matVerticalStepper", "matHorizontalStepper"], { "disableRipple": { "alias": "disableRipple"; "required": false; }; "color": { "alias": "color"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "headerPosition": { "alias": "headerPosition"; "required": false; }; "animationDuration": { "alias": "animationDuration"; "required": false; }; }, { "animationDone": "animationDone"; }, ["_steps", "_icons"], ["*"], true, never>;
|
|
219
229
|
}
|
|
@@ -221,6 +231,8 @@ export declare class MatStepper extends CdkStepper implements AfterContentInit {
|
|
|
221
231
|
/**
|
|
222
232
|
* Animations used by the Material steppers.
|
|
223
233
|
* @docs-private
|
|
234
|
+
* @deprecated No longer used, will be removed.
|
|
235
|
+
* @breaking-change 21.0.0
|
|
224
236
|
*/
|
|
225
237
|
export declare const matStepperAnimations: {
|
|
226
238
|
readonly horizontalStepTransition: AnimationTriggerMetadata;
|
package/tabs/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AfterContentChecked } from '@angular/core';
|
|
2
2
|
import { AfterContentInit } from '@angular/core';
|
|
3
3
|
import { AfterViewInit } from '@angular/core';
|
|
4
|
-
import { AnimationEvent as AnimationEvent_2 } from '@angular/animations';
|
|
5
4
|
import { AnimationTriggerMetadata } from '@angular/animations';
|
|
6
5
|
import { BehaviorSubject } from 'rxjs';
|
|
7
6
|
import { CdkPortal } from '@angular/cdk/portal';
|
|
@@ -424,14 +423,21 @@ export declare class MatTab implements OnInit, OnChanges, OnDestroy {
|
|
|
424
423
|
export declare class MatTabBody implements OnInit, OnDestroy {
|
|
425
424
|
private _elementRef;
|
|
426
425
|
private _dir;
|
|
426
|
+
private _ngZone;
|
|
427
|
+
private _injector;
|
|
428
|
+
private _renderer;
|
|
429
|
+
private _animationsModule;
|
|
430
|
+
private _eventCleanups?;
|
|
431
|
+
private _initialized;
|
|
432
|
+
private _fallbackTimer;
|
|
427
433
|
/** Current position of the tab-body in the tab-group. Zero means that the tab is visible. */
|
|
428
434
|
private _positionIndex;
|
|
429
435
|
/** Subscription to the directionality change observable. */
|
|
430
436
|
private _dirChangeSubscription;
|
|
431
|
-
/**
|
|
437
|
+
/** Current position of the body within the tab group. */
|
|
432
438
|
_position: MatTabBodyPositionState;
|
|
433
|
-
/**
|
|
434
|
-
|
|
439
|
+
/** Previous position of the body. */
|
|
440
|
+
protected _previousPosition: MatTabBodyPositionState | undefined;
|
|
435
441
|
/** Event emitted when the tab begins to animate towards the center as the active tab. */
|
|
436
442
|
readonly _onCentering: EventEmitter<number>;
|
|
437
443
|
/** Event emitted before the centering of the tab begins. */
|
|
@@ -441,11 +447,11 @@ export declare class MatTabBody implements OnInit, OnDestroy {
|
|
|
441
447
|
/** Event emitted when the tab completes its animation towards the center. */
|
|
442
448
|
readonly _onCentered: EventEmitter<void>;
|
|
443
449
|
/** The portal host inside of this container into which the tab body content will be loaded. */
|
|
444
|
-
_portalHost:
|
|
450
|
+
_portalHost: MatTabBodyPortal;
|
|
451
|
+
/** Element in which the content is rendered. */
|
|
452
|
+
_contentElement: ElementRef<HTMLElement> | undefined;
|
|
445
453
|
/** The tab body content to display. */
|
|
446
454
|
_content: TemplatePortal;
|
|
447
|
-
/** Position that will be used when the tab is immediately becoming visible after creation. */
|
|
448
|
-
origin: number | null;
|
|
449
455
|
/** Duration for the tab's animation. */
|
|
450
456
|
animationDuration: string;
|
|
451
457
|
/** Whether the tab's content should be kept in the DOM while it's off-screen. */
|
|
@@ -453,26 +459,28 @@ export declare class MatTabBody implements OnInit, OnDestroy {
|
|
|
453
459
|
/** The shifted index position of the tab body, where zero represents the active center tab. */
|
|
454
460
|
set position(position: number);
|
|
455
461
|
constructor(...args: unknown[]);
|
|
456
|
-
/**
|
|
457
|
-
* After initialized, check if the content is centered and has an origin. If so, set the
|
|
458
|
-
* special position states that transition the tab from the left or right before centering.
|
|
459
|
-
*/
|
|
460
462
|
ngOnInit(): void;
|
|
461
463
|
ngOnDestroy(): void;
|
|
462
|
-
|
|
464
|
+
/** Sets up the transition events. */
|
|
465
|
+
private _bindTransitionEvents;
|
|
466
|
+
/** Called when a transition has started. */
|
|
467
|
+
private _transitionStarted;
|
|
468
|
+
/** Called when a transition is done. */
|
|
469
|
+
private _transitionDone;
|
|
470
|
+
/** Sets the active styling on the tab body based on its current position. */
|
|
471
|
+
_setActiveClass(isActive: boolean): void;
|
|
463
472
|
/** The text direction of the containing app. */
|
|
464
473
|
_getLayoutDirection(): Direction;
|
|
465
474
|
/** Whether the provided position state is considered center, regardless of origin. */
|
|
466
|
-
_isCenterPosition(
|
|
475
|
+
_isCenterPosition(): boolean;
|
|
467
476
|
/** Computes the position state that will be used for the tab-body animation trigger. */
|
|
468
477
|
private _computePositionAnimationState;
|
|
469
|
-
/**
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
private _computePositionFromOrigin;
|
|
478
|
+
/** Simulates the body's transition events in an environment where they might not fire. */
|
|
479
|
+
private _simulateTransitionEvents;
|
|
480
|
+
/** Whether animations are disabled for the tab group. */
|
|
481
|
+
private _animationsDisabled;
|
|
474
482
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatTabBody, never>;
|
|
475
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatTabBody, "mat-tab-body", never, { "_content": { "alias": "content"; "required": false; }; "
|
|
483
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatTabBody, "mat-tab-body", never, { "_content": { "alias": "content"; "required": false; }; "animationDuration": { "alias": "animationDuration"; "required": false; }; "preserveContent": { "alias": "preserveContent"; "required": false; }; "position": { "alias": "position"; "required": false; }; }, { "_onCentering": "_onCentering"; "_beforeCentering": "_beforeCentering"; "_onCentered": "_onCentered"; }, never, never, true, never>;
|
|
476
484
|
}
|
|
477
485
|
|
|
478
486
|
/**
|
|
@@ -480,6 +488,9 @@ export declare class MatTabBody implements OnInit, OnDestroy {
|
|
|
480
488
|
* began to the left or right of the prior selected index. For example, if the selected index was
|
|
481
489
|
* set to 1, and a new tab is created and selected at index 2, then the tab body would have an
|
|
482
490
|
* origin of right because its index was greater than the prior selected index.
|
|
491
|
+
*
|
|
492
|
+
* @deprecated No longer being used. Will be removed.
|
|
493
|
+
* @breaking-change 21.0.0
|
|
483
494
|
*/
|
|
484
495
|
export declare type MatTabBodyOriginState = 'left' | 'right';
|
|
485
496
|
|
|
@@ -511,8 +522,11 @@ export declare class MatTabBodyPortal extends CdkPortalOutlet implements OnInit,
|
|
|
511
522
|
* In the case of a new tab body that should immediately be centered with an animating transition,
|
|
512
523
|
* then left-origin-center or right-origin-center can be used, which will use left or right as its
|
|
513
524
|
* pseudo-prior state.
|
|
525
|
+
*
|
|
526
|
+
* @deprecated Will stop being exported.
|
|
527
|
+
* @breaking-change 21.0.0
|
|
514
528
|
*/
|
|
515
|
-
export declare type MatTabBodyPositionState = 'left' | 'center' | 'right'
|
|
529
|
+
export declare type MatTabBodyPositionState = 'left' | 'center' | 'right';
|
|
516
530
|
|
|
517
531
|
/** A simple change event emitted on focus or selection changes. */
|
|
518
532
|
export declare class MatTabChangeEvent {
|
|
@@ -535,15 +549,20 @@ export declare class MatTabContent {
|
|
|
535
549
|
* animated ink-bar, keyboard navigation, and screen reader.
|
|
536
550
|
* See: https://material.io/design/components/tabs.html
|
|
537
551
|
*/
|
|
538
|
-
export declare class MatTabGroup implements AfterContentInit, AfterContentChecked, OnDestroy {
|
|
552
|
+
export declare class MatTabGroup implements AfterViewInit, AfterContentInit, AfterContentChecked, OnDestroy {
|
|
539
553
|
readonly _elementRef: ElementRef<any>;
|
|
540
554
|
private _changeDetectorRef;
|
|
555
|
+
private _ngZone;
|
|
556
|
+
private _tabsSubscription;
|
|
557
|
+
private _tabLabelSubscription;
|
|
558
|
+
private _tabBodySubscription;
|
|
541
559
|
_animationMode: "NoopAnimations" | "BrowserAnimations" | null;
|
|
542
560
|
/**
|
|
543
561
|
* All tabs inside the tab group. This includes tabs that belong to groups that are nested
|
|
544
562
|
* inside the current one. We filter out only the tabs that belong to this group in `_tabs`.
|
|
545
563
|
*/
|
|
546
564
|
_allTabs: QueryList<MatTab>;
|
|
565
|
+
_tabBodies: QueryList<MatTabBody> | undefined;
|
|
547
566
|
_tabBodyWrapper: ElementRef;
|
|
548
567
|
_tabHeader: MatTabHeader;
|
|
549
568
|
/** All of the tabs that belong to the group. */
|
|
@@ -554,10 +573,6 @@ export declare class MatTabGroup implements AfterContentInit, AfterContentChecke
|
|
|
554
573
|
private _lastFocusedTabIndex;
|
|
555
574
|
/** Snapshot of the height of the tab body wrapper before another tab is activated. */
|
|
556
575
|
private _tabBodyWrapperHeight;
|
|
557
|
-
/** Subscription to tabs being added/removed. */
|
|
558
|
-
private _tabsSubscription;
|
|
559
|
-
/** Subscription to changes in the tab labels. */
|
|
560
|
-
private _tabLabelSubscription;
|
|
561
576
|
/**
|
|
562
577
|
* Theme color of the tab group. This API is supported in M2 themes only, it
|
|
563
578
|
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/tabs/styling.
|
|
@@ -645,6 +660,7 @@ export declare class MatTabGroup implements AfterContentInit, AfterContentChecke
|
|
|
645
660
|
*/
|
|
646
661
|
ngAfterContentChecked(): void;
|
|
647
662
|
ngAfterContentInit(): void;
|
|
663
|
+
ngAfterViewInit(): void;
|
|
648
664
|
/** Listens to changes in all of the tabs. */
|
|
649
665
|
private _subscribeToAllTabChanges;
|
|
650
666
|
ngOnDestroy(): void;
|
|
@@ -691,6 +707,11 @@ export declare class MatTabGroup implements AfterContentInit, AfterContentChecke
|
|
|
691
707
|
_getTabIndex(index: number): number;
|
|
692
708
|
/** Callback for when the focused state of a tab has changed. */
|
|
693
709
|
_tabFocusChanged(focusOrigin: FocusOrigin, index: number): void;
|
|
710
|
+
/**
|
|
711
|
+
* Callback invoked when the centered state of a tab body changes.
|
|
712
|
+
* @param isCenter Whether the tab will be in the center.
|
|
713
|
+
*/
|
|
714
|
+
protected _bodyCentered(isCenter: boolean): void;
|
|
694
715
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatTabGroup, never>;
|
|
695
716
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatTabGroup, "mat-tab-group", ["matTabGroup"], { "color": { "alias": "color"; "required": false; }; "fitInkBarToContent": { "alias": "fitInkBarToContent"; "required": false; }; "stretchTabs": { "alias": "mat-stretch-tabs"; "required": false; }; "alignTabs": { "alias": "mat-align-tabs"; "required": false; }; "dynamicHeight": { "alias": "dynamicHeight"; "required": false; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "headerPosition": { "alias": "headerPosition"; "required": false; }; "animationDuration": { "alias": "animationDuration"; "required": false; }; "contentTabIndex": { "alias": "contentTabIndex"; "required": false; }; "disablePagination": { "alias": "disablePagination"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "preserveContent": { "alias": "preserveContent"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; }, { "selectedIndexChange": "selectedIndexChange"; "focusChange": "focusChange"; "animationDone": "animationDone"; "selectedTabChange": "selectedTabChange"; }, ["_allTabs"], ["*"], true, never>;
|
|
696
717
|
static ngAcceptInputType_fitInkBarToContent: unknown;
|
|
@@ -894,6 +915,8 @@ export declare class MatTabNavPanel {
|
|
|
894
915
|
/**
|
|
895
916
|
* Animations used by the Material tabs.
|
|
896
917
|
* @docs-private
|
|
918
|
+
* @deprecated No longer used, will be removed.
|
|
919
|
+
* @breaking-change 21.0.0.
|
|
897
920
|
*/
|
|
898
921
|
export declare const matTabsAnimations: {
|
|
899
922
|
readonly translateTab: AnimationTriggerMetadata;
|
package/timepicker/index.d.ts
CHANGED
|
@@ -289,6 +289,10 @@ export declare class MatTimepickerToggle<D> {
|
|
|
289
289
|
readonly timepicker: InputSignal<MatTimepicker<D>>;
|
|
290
290
|
/** Screen-reader label for the button. */
|
|
291
291
|
readonly ariaLabel: InputSignal<string | undefined>;
|
|
292
|
+
/** Screen-reader labelled by id for the button. */
|
|
293
|
+
readonly ariaLabelledby: InputSignal<string | undefined>;
|
|
294
|
+
/** Default aria-label for the toggle if none is provided. */
|
|
295
|
+
private readonly _defaultAriaLabel;
|
|
292
296
|
/** Whether the toggle button is disabled. */
|
|
293
297
|
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
294
298
|
/** Tabindex for the toggle. */
|
|
@@ -297,8 +301,13 @@ export declare class MatTimepickerToggle<D> {
|
|
|
297
301
|
readonly disableRipple: InputSignalWithTransform<boolean, unknown>;
|
|
298
302
|
/** Opens the connected timepicker. */
|
|
299
303
|
protected _open(event: Event): void;
|
|
304
|
+
/**
|
|
305
|
+
* Checks for ariaLabelledby and if empty uses custom
|
|
306
|
+
* aria-label or defaultAriaLabel if neither is provided.
|
|
307
|
+
*/
|
|
308
|
+
getAriaLabel(): string | null;
|
|
300
309
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatTimepickerToggle<any>, never>;
|
|
301
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatTimepickerToggle<any>, "mat-timepicker-toggle", ["matTimepickerToggle"], { "timepicker": { "alias": "for"; "required": true; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "tabIndex": { "alias": "tabIndex"; "required": false; "isSignal": true; }; "disableRipple": { "alias": "disableRipple"; "required": false; "isSignal": true; }; }, {}, never, ["[matTimepickerToggleIcon]"], true, never>;
|
|
310
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatTimepickerToggle<any>, "mat-timepicker-toggle", ["matTimepickerToggle"], { "timepicker": { "alias": "for"; "required": true; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "tabIndex": { "alias": "tabIndex"; "required": false; "isSignal": true; }; "disableRipple": { "alias": "disableRipple"; "required": false; "isSignal": true; }; }, {}, never, ["[matTimepickerToggleIcon]"], true, never>;
|
|
302
311
|
}
|
|
303
312
|
|
|
304
313
|
export { }
|