UNPKG

51.8 kBJavaScriptView Raw
1import * as i2$1 from '@angular/cdk/portal';
2import { TemplatePortal, PortalModule } from '@angular/cdk/portal';
3import { CdkStepLabel, CdkStepHeader, CdkStep, STEPPER_GLOBAL_OPTIONS, CdkStepper, CdkStepperNext, CdkStepperPrevious, CdkStepperModule } from '@angular/cdk/stepper';
4import * as i3 from '@angular/common';
5import { CommonModule } from '@angular/common';
6import * as i0 from '@angular/core';
7import { Directive, Injectable, Optional, SkipSelf, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, forwardRef, Inject, ContentChild, QueryList, EventEmitter, ViewChildren, ContentChildren, Output, NgModule } from '@angular/core';
8import { MatButtonModule } from '@angular/material/button';
9import * as i1 from '@angular/material/core';
10import { mixinColor, ErrorStateMatcher, MatCommonModule, MatRippleModule } from '@angular/material/core';
11import * as i4 from '@angular/material/icon';
12import { MatIconModule } from '@angular/material/icon';
13import { Subject, Subscription } from 'rxjs';
14import * as i2 from '@angular/cdk/a11y';
15import { switchMap, map, startWith, takeUntil, distinctUntilChanged } from 'rxjs/operators';
16import { trigger, state, style, transition, animate } from '@angular/animations';
17import * as i3$1 from '@angular/cdk/bidi';
18
19/**
20 * @license
21 * Copyright Google LLC All Rights Reserved.
22 *
23 * Use of this source code is governed by an MIT-style license that can be
24 * found in the LICENSE file at https://angular.io/license
25 */
26class MatStepLabel extends CdkStepLabel {
27}
28MatStepLabel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatStepLabel, deps: null, target: i0.ɵɵFactoryTarget.Directive });
29MatStepLabel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.1", type: MatStepLabel, selector: "[matStepLabel]", usesInheritance: true, ngImport: i0 });
30i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatStepLabel, decorators: [{
31 type: Directive,
32 args: [{
33 selector: '[matStepLabel]',
34 }]
35 }] });
36
37/**
38 * @license
39 * Copyright Google LLC All Rights Reserved.
40 *
41 * Use of this source code is governed by an MIT-style license that can be
42 * found in the LICENSE file at https://angular.io/license
43 */
44/** Stepper data that is required for internationalization. */
45class MatStepperIntl {
46 constructor() {
47 /**
48 * Stream that emits whenever the labels here are changed. Use this to notify
49 * components if the labels have changed after initialization.
50 */
51 this.changes = new Subject();
52 /** Label that is rendered below optional steps. */
53 this.optionalLabel = 'Optional';
54 /** Label that is used to indicate step as completed to screen readers. */
55 this.completedLabel = 'Completed';
56 /** Label that is used to indicate step as editable to screen readers. */
57 this.editableLabel = 'Editable';
58 }
59}
60MatStepperIntl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatStepperIntl, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
61MatStepperIntl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatStepperIntl, providedIn: 'root' });
62i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatStepperIntl, decorators: [{
63 type: Injectable,
64 args: [{ providedIn: 'root' }]
65 }] });
66/** @docs-private */
67function MAT_STEPPER_INTL_PROVIDER_FACTORY(parentIntl) {
68 return parentIntl || new MatStepperIntl();
69}
70/** @docs-private */
71const MAT_STEPPER_INTL_PROVIDER = {
72 provide: MatStepperIntl,
73 deps: [[new Optional(), new SkipSelf(), MatStepperIntl]],
74 useFactory: MAT_STEPPER_INTL_PROVIDER_FACTORY,
75};
76
77// Boilerplate for applying mixins to MatStepHeader.
78/** @docs-private */
79const _MatStepHeaderBase = mixinColor(class MatStepHeaderBase extends CdkStepHeader {
80 constructor(elementRef) {
81 super(elementRef);
82 }
83}, 'primary');
84class MatStepHeader extends _MatStepHeaderBase {
85 constructor(_intl, _focusMonitor, _elementRef, changeDetectorRef) {
86 super(_elementRef);
87 this._intl = _intl;
88 this._focusMonitor = _focusMonitor;
89 this._intlSubscription = _intl.changes.subscribe(() => changeDetectorRef.markForCheck());
90 }
91 ngAfterViewInit() {
92 this._focusMonitor.monitor(this._elementRef, true);
93 }
94 ngOnDestroy() {
95 this._intlSubscription.unsubscribe();
96 this._focusMonitor.stopMonitoring(this._elementRef);
97 }
98 /** Focuses the step header. */
99 focus(origin, options) {
100 if (origin) {
101 this._focusMonitor.focusVia(this._elementRef, origin, options);
102 }
103 else {
104 this._elementRef.nativeElement.focus(options);
105 }
106 }
107 /** Returns string label of given step if it is a text label. */
108 _stringLabel() {
109 return this.label instanceof MatStepLabel ? null : this.label;
110 }
111 /** Returns MatStepLabel if the label of given step is a template label. */
112 _templateLabel() {
113 return this.label instanceof MatStepLabel ? this.label : null;
114 }
115 /** Returns the host HTML element. */
116 _getHostElement() {
117 return this._elementRef.nativeElement;
118 }
119 /** Template context variables that are exposed to the `matStepperIcon` instances. */
120 _getIconContext() {
121 return {
122 index: this.index,
123 active: this.active,
124 optional: this.optional,
125 };
126 }
127 _getDefaultTextForState(state) {
128 if (state == 'number') {
129 return `${this.index + 1}`;
130 }
131 if (state == 'edit') {
132 return 'create';
133 }
134 if (state == 'error') {
135 return 'warning';
136 }
137 return state;
138 }
139}
140MatStepHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatStepHeader, deps: [{ token: MatStepperIntl }, { token: i2.FocusMonitor }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
141MatStepHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.1", type: MatStepHeader, selector: "mat-step-header", inputs: { color: "color", state: "state", label: "label", errorMessage: "errorMessage", iconOverrides: "iconOverrides", index: "index", selected: "selected", active: "active", optional: "optional", disableRipple: "disableRipple" }, host: { attributes: { "role": "tab" }, classAttribute: "mat-step-header" }, usesInheritance: true, ngImport: i0, template: "<div class=\"mat-step-header-ripple mat-focus-indicator\" matRipple\n [matRippleTrigger]=\"_getHostElement()\"\n [matRippleDisabled]=\"disableRipple\"></div>\n\n<div class=\"mat-step-icon-state-{{state}} mat-step-icon\" [class.mat-step-icon-selected]=\"selected\">\n <div class=\"mat-step-icon-content\" [ngSwitch]=\"!!(iconOverrides && iconOverrides[state])\">\n <ng-container\n *ngSwitchCase=\"true\"\n [ngTemplateOutlet]=\"iconOverrides[state]\"\n [ngTemplateOutletContext]=\"_getIconContext()\"></ng-container>\n <ng-container *ngSwitchDefault [ngSwitch]=\"state\">\n <span aria-hidden=\"true\" *ngSwitchCase=\"'number'\">{{_getDefaultTextForState(state)}}</span>\n <span class=\"cdk-visually-hidden\" *ngIf=\"state === 'done'\">{{_intl.completedLabel}}</span>\n <span class=\"cdk-visually-hidden\" *ngIf=\"state === 'edit'\">{{_intl.editableLabel}}</span>\n <mat-icon aria-hidden=\"true\" *ngSwitchDefault>{{_getDefaultTextForState(state)}}</mat-icon>\n </ng-container>\n </div>\n</div>\n<div class=\"mat-step-label\"\n [class.mat-step-label-active]=\"active\"\n [class.mat-step-label-selected]=\"selected\"\n [class.mat-step-label-error]=\"state == 'error'\">\n <!-- If there is a label template, use it. -->\n <div class=\"mat-step-text-label\" *ngIf=\"_templateLabel()\">\n <ng-container [ngTemplateOutlet]=\"_templateLabel()!.template\"></ng-container>\n </div>\n <!-- If there is no label template, fall back to the text label. -->\n <div class=\"mat-step-text-label\" *ngIf=\"_stringLabel()\">{{label}}</div>\n\n <div class=\"mat-step-optional\" *ngIf=\"optional && state != 'error'\">{{_intl.optionalLabel}}</div>\n <div class=\"mat-step-sub-label-error\" *ngIf=\"state == 'error'\">{{errorMessage}}</div>\n</div>\n\n", styles: [".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i1.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
142i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatStepHeader, decorators: [{
143 type: Component,
144 args: [{ selector: 'mat-step-header', inputs: ['color'], host: {
145 'class': 'mat-step-header',
146 'role': 'tab',
147 }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"mat-step-header-ripple mat-focus-indicator\" matRipple\n [matRippleTrigger]=\"_getHostElement()\"\n [matRippleDisabled]=\"disableRipple\"></div>\n\n<div class=\"mat-step-icon-state-{{state}} mat-step-icon\" [class.mat-step-icon-selected]=\"selected\">\n <div class=\"mat-step-icon-content\" [ngSwitch]=\"!!(iconOverrides && iconOverrides[state])\">\n <ng-container\n *ngSwitchCase=\"true\"\n [ngTemplateOutlet]=\"iconOverrides[state]\"\n [ngTemplateOutletContext]=\"_getIconContext()\"></ng-container>\n <ng-container *ngSwitchDefault [ngSwitch]=\"state\">\n <span aria-hidden=\"true\" *ngSwitchCase=\"'number'\">{{_getDefaultTextForState(state)}}</span>\n <span class=\"cdk-visually-hidden\" *ngIf=\"state === 'done'\">{{_intl.completedLabel}}</span>\n <span class=\"cdk-visually-hidden\" *ngIf=\"state === 'edit'\">{{_intl.editableLabel}}</span>\n <mat-icon aria-hidden=\"true\" *ngSwitchDefault>{{_getDefaultTextForState(state)}}</mat-icon>\n </ng-container>\n </div>\n</div>\n<div class=\"mat-step-label\"\n [class.mat-step-label-active]=\"active\"\n [class.mat-step-label-selected]=\"selected\"\n [class.mat-step-label-error]=\"state == 'error'\">\n <!-- If there is a label template, use it. -->\n <div class=\"mat-step-text-label\" *ngIf=\"_templateLabel()\">\n <ng-container [ngTemplateOutlet]=\"_templateLabel()!.template\"></ng-container>\n </div>\n <!-- If there is no label template, fall back to the text label. -->\n <div class=\"mat-step-text-label\" *ngIf=\"_stringLabel()\">{{label}}</div>\n\n <div class=\"mat-step-optional\" *ngIf=\"optional && state != 'error'\">{{_intl.optionalLabel}}</div>\n <div class=\"mat-step-sub-label-error\" *ngIf=\"state == 'error'\">{{errorMessage}}</div>\n</div>\n\n", styles: [".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}"] }]
148 }], ctorParameters: function () { return [{ type: MatStepperIntl }, { type: i2.FocusMonitor }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { state: [{
149 type: Input
150 }], label: [{
151 type: Input
152 }], errorMessage: [{
153 type: Input
154 }], iconOverrides: [{
155 type: Input
156 }], index: [{
157 type: Input
158 }], selected: [{
159 type: Input
160 }], active: [{
161 type: Input
162 }], optional: [{
163 type: Input
164 }], disableRipple: [{
165 type: Input
166 }] } });
167
168/**
169 * @license
170 * Copyright Google LLC All Rights Reserved.
171 *
172 * Use of this source code is governed by an MIT-style license that can be
173 * found in the LICENSE file at https://angular.io/license
174 */
175const DEFAULT_HORIZONTAL_ANIMATION_DURATION = '500ms';
176const DEFAULT_VERTICAL_ANIMATION_DURATION = '225ms';
177/**
178 * Animations used by the Material steppers.
179 * @docs-private
180 */
181const matStepperAnimations = {
182 /** Animation that transitions the step along the X axis in a horizontal stepper. */
183 horizontalStepTransition: trigger('horizontalStepTransition', [
184 state('previous', style({ transform: 'translate3d(-100%, 0, 0)', visibility: 'hidden' })),
185 // Transition to `inherit`, rather than `visible`,
186 // because visibility on a child element the one from the parent,
187 // making this element focusable inside of a `hidden` element.
188 state('current', style({ transform: 'none', visibility: 'inherit' })),
189 state('next', style({ transform: 'translate3d(100%, 0, 0)', visibility: 'hidden' })),
190 transition('* => *', animate('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)'), {
191 params: { 'animationDuration': DEFAULT_HORIZONTAL_ANIMATION_DURATION },
192 }),
193 ]),
194 /** Animation that transitions the step along the Y axis in a vertical stepper. */
195 verticalStepTransition: trigger('verticalStepTransition', [
196 state('previous', style({ height: '0px', visibility: 'hidden' })),
197 state('next', style({ height: '0px', visibility: 'hidden' })),
198 // Transition to `inherit`, rather than `visible`,
199 // because visibility on a child element the one from the parent,
200 // making this element focusable inside of a `hidden` element.
201 state('current', style({ height: '*', visibility: 'inherit' })),
202 transition('* <=> current', animate('{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)'), {
203 params: { 'animationDuration': DEFAULT_VERTICAL_ANIMATION_DURATION },
204 }),
205 ]),
206};
207
208/**
209 * @license
210 * Copyright Google LLC All Rights Reserved.
211 *
212 * Use of this source code is governed by an MIT-style license that can be
213 * found in the LICENSE file at https://angular.io/license
214 */
215/**
216 * Template to be used to override the icons inside the step header.
217 */
218class MatStepperIcon {
219 constructor(templateRef) {
220 this.templateRef = templateRef;
221 }
222}
223MatStepperIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatStepperIcon, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
224MatStepperIcon.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.1", type: MatStepperIcon, selector: "ng-template[matStepperIcon]", inputs: { name: ["matStepperIcon", "name"] }, ngImport: i0 });
225i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatStepperIcon, decorators: [{
226 type: Directive,
227 args: [{
228 selector: 'ng-template[matStepperIcon]',
229 }]
230 }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; }, propDecorators: { name: [{
231 type: Input,
232 args: ['matStepperIcon']
233 }] } });
234
235/**
236 * @license
237 * Copyright Google LLC All Rights Reserved.
238 *
239 * Use of this source code is governed by an MIT-style license that can be
240 * found in the LICENSE file at https://angular.io/license
241 */
242/**
243 * Content for a `mat-step` that will be rendered lazily.
244 */
245class MatStepContent {
246 constructor(_template) {
247 this._template = _template;
248 }
249}
250MatStepContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatStepContent, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
251MatStepContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.1", type: MatStepContent, selector: "ng-template[matStepContent]", ngImport: i0 });
252i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatStepContent, decorators: [{
253 type: Directive,
254 args: [{
255 selector: 'ng-template[matStepContent]',
256 }]
257 }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
258
259class MatStep extends CdkStep {
260 constructor(stepper, _errorStateMatcher, _viewContainerRef, stepperOptions) {
261 super(stepper, stepperOptions);
262 this._errorStateMatcher = _errorStateMatcher;
263 this._viewContainerRef = _viewContainerRef;
264 this._isSelected = Subscription.EMPTY;
265 }
266 ngAfterContentInit() {
267 this._isSelected = this._stepper.steps.changes
268 .pipe(switchMap(() => {
269 return this._stepper.selectionChange.pipe(map(event => event.selectedStep === this), startWith(this._stepper.selected === this));
270 }))
271 .subscribe(isSelected => {
272 if (isSelected && this._lazyContent && !this._portal) {
273 this._portal = new TemplatePortal(this._lazyContent._template, this._viewContainerRef);
274 }
275 });
276 }
277 ngOnDestroy() {
278 this._isSelected.unsubscribe();
279 }
280 /** Custom error state matcher that additionally checks for validity of interacted form. */
281 isErrorState(control, form) {
282 const originalErrorState = this._errorStateMatcher.isErrorState(control, form);
283 // Custom error state checks for the validity of form that is not submitted or touched
284 // since user can trigger a form change by calling for another step without directly
285 // interacting with the current form.
286 const customErrorState = !!(control && control.invalid && this.interacted);
287 return originalErrorState || customErrorState;
288 }
289}
290MatStep.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatStep, deps: [{ token: forwardRef(() => MatStepper) }, { token: i1.ErrorStateMatcher, skipSelf: true }, { token: i0.ViewContainerRef }, { token: STEPPER_GLOBAL_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
291MatStep.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.1", type: MatStep, selector: "mat-step", inputs: { color: "color" }, providers: [
292 { provide: ErrorStateMatcher, useExisting: MatStep },
293 { provide: CdkStep, useExisting: MatStep },
294 ], queries: [{ propertyName: "stepLabel", first: true, predicate: MatStepLabel, descendants: true }, { propertyName: "_lazyContent", first: true, predicate: MatStepContent, descendants: true }], exportAs: ["matStep"], usesInheritance: true, ngImport: i0, template: "<ng-template>\n <ng-content></ng-content>\n <ng-template [cdkPortalOutlet]=\"_portal\"></ng-template>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i2$1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
295i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatStep, decorators: [{
296 type: Component,
297 args: [{ selector: 'mat-step', providers: [
298 { provide: ErrorStateMatcher, useExisting: MatStep },
299 { provide: CdkStep, useExisting: MatStep },
300 ], encapsulation: ViewEncapsulation.None, exportAs: 'matStep', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template>\n <ng-content></ng-content>\n <ng-template [cdkPortalOutlet]=\"_portal\"></ng-template>\n</ng-template>\n" }]
301 }], ctorParameters: function () {
302 return [{ type: MatStepper, decorators: [{
303 type: Inject,
304 args: [forwardRef(() => MatStepper)]
305 }] }, { type: i1.ErrorStateMatcher, decorators: [{
306 type: SkipSelf
307 }] }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{
308 type: Optional
309 }, {
310 type: Inject,
311 args: [STEPPER_GLOBAL_OPTIONS]
312 }] }];
313 }, propDecorators: { stepLabel: [{
314 type: ContentChild,
315 args: [MatStepLabel]
316 }], color: [{
317 type: Input
318 }], _lazyContent: [{
319 type: ContentChild,
320 args: [MatStepContent, { static: false }]
321 }] } });
322class MatStepper extends CdkStepper {
323 constructor(dir, changeDetectorRef, elementRef) {
324 super(dir, changeDetectorRef, elementRef);
325 /** Steps that belong to the current stepper, excluding ones from nested steppers. */
326 this.steps = new QueryList();
327 /** Event emitted when the current step is done transitioning in. */
328 this.animationDone = new EventEmitter();
329 /**
330 * Whether the label should display in bottom or end position.
331 * Only applies in the `horizontal` orientation.
332 */
333 this.labelPosition = 'end';
334 /**
335 * Position of the stepper's header.
336 * Only applies in the `horizontal` orientation.
337 */
338 this.headerPosition = 'top';
339 /** Consumer-specified template-refs to be used to override the header icons. */
340 this._iconOverrides = {};
341 /** Stream of animation `done` events when the body expands/collapses. */
342 this._animationDone = new Subject();
343 this._animationDuration = '';
344 const nodeName = elementRef.nativeElement.nodeName.toLowerCase();
345 this.orientation = nodeName === 'mat-vertical-stepper' ? 'vertical' : 'horizontal';
346 }
347 /** Duration for the animation. Will be normalized to milliseconds if no units are set. */
348 get animationDuration() {
349 return this._animationDuration;
350 }
351 set animationDuration(value) {
352 this._animationDuration = /^\d+$/.test(value) ? value + 'ms' : value;
353 }
354 ngAfterContentInit() {
355 super.ngAfterContentInit();
356 this._icons.forEach(({ name, templateRef }) => (this._iconOverrides[name] = templateRef));
357 // Mark the component for change detection whenever the content children query changes
358 this.steps.changes.pipe(takeUntil(this._destroyed)).subscribe(() => {
359 this._stateChanged();
360 });
361 this._animationDone
362 .pipe(
363 // This needs a `distinctUntilChanged` in order to avoid emitting the same event twice due
364 // to a bug in animations where the `.done` callback gets invoked twice on some browsers.
365 // See https://github.com/angular/angular/issues/24084
366 distinctUntilChanged((x, y) => x.fromState === y.fromState && x.toState === y.toState), takeUntil(this._destroyed))
367 .subscribe(event => {
368 if (event.toState === 'current') {
369 this.animationDone.emit();
370 }
371 });
372 }
373 _stepIsNavigable(index, step) {
374 return step.completed || this.selectedIndex === index || !this.linear;
375 }
376 _getAnimationDuration() {
377 if (this.animationDuration) {
378 return this.animationDuration;
379 }
380 return this.orientation === 'horizontal'
381 ? DEFAULT_HORIZONTAL_ANIMATION_DURATION
382 : DEFAULT_VERTICAL_ANIMATION_DURATION;
383 }
384}
385MatStepper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatStepper, deps: [{ token: i3$1.Directionality, optional: true }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
386MatStepper.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.1", type: MatStepper, selector: "mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]", inputs: { selectedIndex: "selectedIndex", disableRipple: "disableRipple", color: "color", labelPosition: "labelPosition", headerPosition: "headerPosition", animationDuration: "animationDuration" }, outputs: { animationDone: "animationDone" }, host: { attributes: { "role": "tablist" }, properties: { "class.mat-stepper-horizontal": "orientation === \"horizontal\"", "class.mat-stepper-vertical": "orientation === \"vertical\"", "class.mat-stepper-label-position-end": "orientation === \"horizontal\" && labelPosition == \"end\"", "class.mat-stepper-label-position-bottom": "orientation === \"horizontal\" && labelPosition == \"bottom\"", "class.mat-stepper-header-position-bottom": "headerPosition === \"bottom\"", "attr.aria-orientation": "orientation" } }, providers: [{ provide: CdkStepper, useExisting: MatStepper }], queries: [{ propertyName: "_steps", predicate: MatStep, descendants: true }, { propertyName: "_icons", predicate: MatStepperIcon, descendants: true }], viewQueries: [{ propertyName: "_stepHeader", predicate: MatStepHeader, descendants: true }], exportAs: ["matStepper", "matVerticalStepper", "matHorizontalStepper"], usesInheritance: true, ngImport: i0, template: "<ng-container [ngSwitch]=\"orientation\">\n <!-- Horizontal stepper -->\n <div class=\"mat-horizontal-stepper-wrapper\" *ngSwitchCase=\"'horizontal'\">\n <div class=\"mat-horizontal-stepper-header-container\">\n <ng-container *ngFor=\"let step of steps; let i = index; let isLast = last\">\n <ng-container\n [ngTemplateOutlet]=\"stepTemplate\"\n [ngTemplateOutletContext]=\"{step: step, i: i}\"></ng-container>\n <div *ngIf=\"!isLast\" class=\"mat-stepper-horizontal-line\"></div>\n </ng-container>\n </div>\n\n <div class=\"mat-horizontal-content-container\">\n <div *ngFor=\"let step of steps; let i = index\"\n class=\"mat-horizontal-stepper-content\" role=\"tabpanel\"\n [@horizontalStepTransition]=\"{\n 'value': _getAnimationDirection(i),\n 'params': {'animationDuration': _getAnimationDuration()}\n }\"\n (@horizontalStepTransition.done)=\"_animationDone.next($event)\"\n [id]=\"_getStepContentId(i)\"\n [attr.aria-labelledby]=\"_getStepLabelId(i)\"\n [attr.aria-expanded]=\"selectedIndex === i\">\n <ng-container [ngTemplateOutlet]=\"step.content\"></ng-container>\n </div>\n </div>\n </div>\n\n <!-- Vertical stepper -->\n <ng-container *ngSwitchCase=\"'vertical'\">\n <div class=\"mat-step\" *ngFor=\"let step of steps; let i = index; let isLast = last\">\n <ng-container\n [ngTemplateOutlet]=\"stepTemplate\"\n [ngTemplateOutletContext]=\"{step: step, i: i}\"></ng-container>\n <div class=\"mat-vertical-content-container\" [class.mat-stepper-vertical-line]=\"!isLast\">\n <div class=\"mat-vertical-stepper-content\" role=\"tabpanel\"\n [@verticalStepTransition]=\"{\n 'value': _getAnimationDirection(i),\n 'params': {'animationDuration': _getAnimationDuration()}\n }\"\n (@verticalStepTransition.done)=\"_animationDone.next($event)\"\n [id]=\"_getStepContentId(i)\"\n [attr.aria-labelledby]=\"_getStepLabelId(i)\"\n [attr.aria-expanded]=\"selectedIndex === i\">\n <div class=\"mat-vertical-content\">\n <ng-container [ngTemplateOutlet]=\"step.content\"></ng-container>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n\n</ng-container>\n\n<!-- Common step templating -->\n<ng-template let-step=\"step\" let-i=\"i\" #stepTemplate>\n <mat-step-header\n [class.mat-horizontal-stepper-header]=\"orientation === 'horizontal'\"\n [class.mat-vertical-stepper-header]=\"orientation === 'vertical'\"\n (click)=\"step.select()\"\n (keydown)=\"_onKeydown($event)\"\n [tabIndex]=\"_getFocusIndex() === i ? 0 : -1\"\n [id]=\"_getStepLabelId(i)\"\n [attr.aria-posinset]=\"i + 1\"\n [attr.aria-setsize]=\"steps.length\"\n [attr.aria-controls]=\"_getStepContentId(i)\"\n [attr.aria-selected]=\"selectedIndex == i\"\n [attr.aria-label]=\"step.ariaLabel || null\"\n [attr.aria-labelledby]=\"(!step.ariaLabel && step.ariaLabelledby) ? step.ariaLabelledby : null\"\n [attr.aria-disabled]=\"_stepIsNavigable(i, step) ? null : true\"\n [index]=\"i\"\n [state]=\"_getIndicatorType(i, step.state)\"\n [label]=\"step.stepLabel || step.label\"\n [selected]=\"selectedIndex === i\"\n [active]=\"_stepIsNavigable(i, step)\"\n [optional]=\"step.optional\"\n [errorMessage]=\"step.errorMessage\"\n [iconOverrides]=\"_iconOverrides\"\n [disableRipple]=\"disableRipple || !_stepIsNavigable(i, step)\"\n [color]=\"step.color || color\"></mat-step-header>\n</ng-template>\n", styles: [".mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:\"\";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: MatStepHeader, selector: "mat-step-header", inputs: ["color", "state", "label", "errorMessage", "iconOverrides", "index", "selected", "active", "optional", "disableRipple"] }], animations: [
387 matStepperAnimations.horizontalStepTransition,
388 matStepperAnimations.verticalStepTransition,
389 ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
390i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatStepper, decorators: [{
391 type: Component,
392 args: [{ selector: 'mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]', exportAs: 'matStepper, matVerticalStepper, matHorizontalStepper', inputs: ['selectedIndex'], host: {
393 '[class.mat-stepper-horizontal]': 'orientation === "horizontal"',
394 '[class.mat-stepper-vertical]': 'orientation === "vertical"',
395 '[class.mat-stepper-label-position-end]': 'orientation === "horizontal" && labelPosition == "end"',
396 '[class.mat-stepper-label-position-bottom]': 'orientation === "horizontal" && labelPosition == "bottom"',
397 '[class.mat-stepper-header-position-bottom]': 'headerPosition === "bottom"',
398 '[attr.aria-orientation]': 'orientation',
399 'role': 'tablist',
400 }, animations: [
401 matStepperAnimations.horizontalStepTransition,
402 matStepperAnimations.verticalStepTransition,
403 ], providers: [{ provide: CdkStepper, useExisting: MatStepper }], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container [ngSwitch]=\"orientation\">\n <!-- Horizontal stepper -->\n <div class=\"mat-horizontal-stepper-wrapper\" *ngSwitchCase=\"'horizontal'\">\n <div class=\"mat-horizontal-stepper-header-container\">\n <ng-container *ngFor=\"let step of steps; let i = index; let isLast = last\">\n <ng-container\n [ngTemplateOutlet]=\"stepTemplate\"\n [ngTemplateOutletContext]=\"{step: step, i: i}\"></ng-container>\n <div *ngIf=\"!isLast\" class=\"mat-stepper-horizontal-line\"></div>\n </ng-container>\n </div>\n\n <div class=\"mat-horizontal-content-container\">\n <div *ngFor=\"let step of steps; let i = index\"\n class=\"mat-horizontal-stepper-content\" role=\"tabpanel\"\n [@horizontalStepTransition]=\"{\n 'value': _getAnimationDirection(i),\n 'params': {'animationDuration': _getAnimationDuration()}\n }\"\n (@horizontalStepTransition.done)=\"_animationDone.next($event)\"\n [id]=\"_getStepContentId(i)\"\n [attr.aria-labelledby]=\"_getStepLabelId(i)\"\n [attr.aria-expanded]=\"selectedIndex === i\">\n <ng-container [ngTemplateOutlet]=\"step.content\"></ng-container>\n </div>\n </div>\n </div>\n\n <!-- Vertical stepper -->\n <ng-container *ngSwitchCase=\"'vertical'\">\n <div class=\"mat-step\" *ngFor=\"let step of steps; let i = index; let isLast = last\">\n <ng-container\n [ngTemplateOutlet]=\"stepTemplate\"\n [ngTemplateOutletContext]=\"{step: step, i: i}\"></ng-container>\n <div class=\"mat-vertical-content-container\" [class.mat-stepper-vertical-line]=\"!isLast\">\n <div class=\"mat-vertical-stepper-content\" role=\"tabpanel\"\n [@verticalStepTransition]=\"{\n 'value': _getAnimationDirection(i),\n 'params': {'animationDuration': _getAnimationDuration()}\n }\"\n (@verticalStepTransition.done)=\"_animationDone.next($event)\"\n [id]=\"_getStepContentId(i)\"\n [attr.aria-labelledby]=\"_getStepLabelId(i)\"\n [attr.aria-expanded]=\"selectedIndex === i\">\n <div class=\"mat-vertical-content\">\n <ng-container [ngTemplateOutlet]=\"step.content\"></ng-container>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n\n</ng-container>\n\n<!-- Common step templating -->\n<ng-template let-step=\"step\" let-i=\"i\" #stepTemplate>\n <mat-step-header\n [class.mat-horizontal-stepper-header]=\"orientation === 'horizontal'\"\n [class.mat-vertical-stepper-header]=\"orientation === 'vertical'\"\n (click)=\"step.select()\"\n (keydown)=\"_onKeydown($event)\"\n [tabIndex]=\"_getFocusIndex() === i ? 0 : -1\"\n [id]=\"_getStepLabelId(i)\"\n [attr.aria-posinset]=\"i + 1\"\n [attr.aria-setsize]=\"steps.length\"\n [attr.aria-controls]=\"_getStepContentId(i)\"\n [attr.aria-selected]=\"selectedIndex == i\"\n [attr.aria-label]=\"step.ariaLabel || null\"\n [attr.aria-labelledby]=\"(!step.ariaLabel && step.ariaLabelledby) ? step.ariaLabelledby : null\"\n [attr.aria-disabled]=\"_stepIsNavigable(i, step) ? null : true\"\n [index]=\"i\"\n [state]=\"_getIndicatorType(i, step.state)\"\n [label]=\"step.stepLabel || step.label\"\n [selected]=\"selectedIndex === i\"\n [active]=\"_stepIsNavigable(i, step)\"\n [optional]=\"step.optional\"\n [errorMessage]=\"step.errorMessage\"\n [iconOverrides]=\"_iconOverrides\"\n [disableRipple]=\"disableRipple || !_stepIsNavigable(i, step)\"\n [color]=\"step.color || color\"></mat-step-header>\n</ng-template>\n", styles: [".mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:\"\";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}"] }]
404 }], ctorParameters: function () {
405 return [{ type: i3$1.Directionality, decorators: [{
406 type: Optional
407 }] }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }];
408 }, propDecorators: { _stepHeader: [{
409 type: ViewChildren,
410 args: [MatStepHeader]
411 }], _steps: [{
412 type: ContentChildren,
413 args: [MatStep, { descendants: true }]
414 }], _icons: [{
415 type: ContentChildren,
416 args: [MatStepperIcon, { descendants: true }]
417 }], animationDone: [{
418 type: Output
419 }], disableRipple: [{
420 type: Input
421 }], color: [{
422 type: Input
423 }], labelPosition: [{
424 type: Input
425 }], headerPosition: [{
426 type: Input
427 }], animationDuration: [{
428 type: Input
429 }] } });
430
431/**
432 * @license
433 * Copyright Google LLC All Rights Reserved.
434 *
435 * Use of this source code is governed by an MIT-style license that can be
436 * found in the LICENSE file at https://angular.io/license
437 */
438/** Button that moves to the next step in a stepper workflow. */
439class MatStepperNext extends CdkStepperNext {
440}
441MatStepperNext.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatStepperNext, deps: null, target: i0.ɵɵFactoryTarget.Directive });
442MatStepperNext.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.1", type: MatStepperNext, selector: "button[matStepperNext]", inputs: { type: "type" }, host: { properties: { "type": "type" }, classAttribute: "mat-stepper-next" }, usesInheritance: true, ngImport: i0 });
443i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatStepperNext, decorators: [{
444 type: Directive,
445 args: [{
446 selector: 'button[matStepperNext]',
447 host: {
448 'class': 'mat-stepper-next',
449 '[type]': 'type',
450 },
451 inputs: ['type'],
452 }]
453 }] });
454/** Button that moves to the previous step in a stepper workflow. */
455class MatStepperPrevious extends CdkStepperPrevious {
456}
457MatStepperPrevious.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatStepperPrevious, deps: null, target: i0.ɵɵFactoryTarget.Directive });
458MatStepperPrevious.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.1", type: MatStepperPrevious, selector: "button[matStepperPrevious]", inputs: { type: "type" }, host: { properties: { "type": "type" }, classAttribute: "mat-stepper-previous" }, usesInheritance: true, ngImport: i0 });
459i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatStepperPrevious, decorators: [{
460 type: Directive,
461 args: [{
462 selector: 'button[matStepperPrevious]',
463 host: {
464 'class': 'mat-stepper-previous',
465 '[type]': 'type',
466 },
467 inputs: ['type'],
468 }]
469 }] });
470
471/**
472 * @license
473 * Copyright Google LLC All Rights Reserved.
474 *
475 * Use of this source code is governed by an MIT-style license that can be
476 * found in the LICENSE file at https://angular.io/license
477 */
478class MatStepperModule {
479}
480MatStepperModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatStepperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
481MatStepperModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.1", ngImport: i0, type: MatStepperModule, declarations: [MatStep,
482 MatStepLabel,
483 MatStepper,
484 MatStepperNext,
485 MatStepperPrevious,
486 MatStepHeader,
487 MatStepperIcon,
488 MatStepContent], imports: [MatCommonModule,
489 CommonModule,
490 PortalModule,
491 MatButtonModule,
492 CdkStepperModule,
493 MatIconModule,
494 MatRippleModule], exports: [MatCommonModule,
495 MatStep,
496 MatStepLabel,
497 MatStepper,
498 MatStepperNext,
499 MatStepperPrevious,
500 MatStepHeader,
501 MatStepperIcon,
502 MatStepContent] });
503MatStepperModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatStepperModule, providers: [MAT_STEPPER_INTL_PROVIDER, ErrorStateMatcher], imports: [MatCommonModule,
504 CommonModule,
505 PortalModule,
506 MatButtonModule,
507 CdkStepperModule,
508 MatIconModule,
509 MatRippleModule, MatCommonModule] });
510i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: MatStepperModule, decorators: [{
511 type: NgModule,
512 args: [{
513 imports: [
514 MatCommonModule,
515 CommonModule,
516 PortalModule,
517 MatButtonModule,
518 CdkStepperModule,
519 MatIconModule,
520 MatRippleModule,
521 ],
522 exports: [
523 MatCommonModule,
524 MatStep,
525 MatStepLabel,
526 MatStepper,
527 MatStepperNext,
528 MatStepperPrevious,
529 MatStepHeader,
530 MatStepperIcon,
531 MatStepContent,
532 ],
533 declarations: [
534 MatStep,
535 MatStepLabel,
536 MatStepper,
537 MatStepperNext,
538 MatStepperPrevious,
539 MatStepHeader,
540 MatStepperIcon,
541 MatStepContent,
542 ],
543 providers: [MAT_STEPPER_INTL_PROVIDER, ErrorStateMatcher],
544 }]
545 }] });
546
547/**
548 * @license
549 * Copyright Google LLC All Rights Reserved.
550 *
551 * Use of this source code is governed by an MIT-style license that can be
552 * found in the LICENSE file at https://angular.io/license
553 */
554
555/**
556 * @license
557 * Copyright Google LLC All Rights Reserved.
558 *
559 * Use of this source code is governed by an MIT-style license that can be
560 * found in the LICENSE file at https://angular.io/license
561 */
562
563/**
564 * Generated bundle index. Do not edit.
565 */
566
567export { MAT_STEPPER_INTL_PROVIDER, MAT_STEPPER_INTL_PROVIDER_FACTORY, MatStep, MatStepContent, MatStepHeader, MatStepLabel, MatStepper, MatStepperIcon, MatStepperIntl, MatStepperModule, MatStepperNext, MatStepperPrevious, matStepperAnimations };
568//# sourceMappingURL=stepper.mjs.map