source: trip-planner-front/node_modules/@angular/material/__ivy_ngcc__/fesm2015/stepper.js

Last change on this file was 6fe77af, checked in by Ema <ema_spirova@…>, 3 years ago

add location feature

  • Property mode set to 100644
File size: 62.5 KB
Line 
1import { TemplatePortal, PortalModule } from '@angular/cdk/portal';
2import { CdkStepLabel, CdkStepHeader, CdkStep, STEPPER_GLOBAL_OPTIONS, CdkStepper, CdkStepperNext, CdkStepperPrevious, CdkStepperModule } from '@angular/cdk/stepper';
3import { DOCUMENT, CommonModule } from '@angular/common';
4import * as i0 from '@angular/core';
5import { Directive, Injectable, Optional, SkipSelf, Component, ViewEncapsulation, ChangeDetectionStrategy, ElementRef, ChangeDetectorRef, Input, TemplateRef, Inject, forwardRef, ViewContainerRef, ContentChild, QueryList, EventEmitter, ViewChildren, ContentChildren, Output, NgModule } from '@angular/core';
6import { MatButtonModule } from '@angular/material/button';
7import { mixinColor, ErrorStateMatcher, MatCommonModule, MatRippleModule } from '@angular/material/core';
8import { MatIconModule } from '@angular/material/icon';
9import { FocusMonitor } from '@angular/cdk/a11y';
10import { Subject, Subscription } from 'rxjs';
11import { Directionality } from '@angular/cdk/bidi';
12import { switchMap, map, startWith, takeUntil, distinctUntilChanged } from 'rxjs/operators';
13import { trigger, state, style, transition, animate } from '@angular/animations';
14
15/**
16 * @license
17 * Copyright Google LLC All Rights Reserved.
18 *
19 * Use of this source code is governed by an MIT-style license that can be
20 * found in the LICENSE file at https://angular.io/license
21 */
22import * as ɵngcc0 from '@angular/core';
23import * as ɵngcc1 from '@angular/cdk/a11y';
24import * as ɵngcc2 from '@angular/material/core';
25import * as ɵngcc3 from '@angular/common';
26import * as ɵngcc4 from '@angular/material/icon';
27import * as ɵngcc5 from '@angular/cdk/portal';
28import * as ɵngcc6 from '@angular/cdk/bidi';
29
30function MatStepHeader_ng_container_3_Template(rf, ctx) { if (rf & 1) {
31 ɵngcc0.ɵɵelementContainer(0, 8);
32} if (rf & 2) {
33 const ctx_r0 = ɵngcc0.ɵɵnextContext();
34 ɵngcc0.ɵɵproperty("ngTemplateOutlet", ctx_r0.iconOverrides[ctx_r0.state])("ngTemplateOutletContext", ctx_r0._getIconContext());
35} }
36function MatStepHeader_ng_container_4_span_1_Template(rf, ctx) { if (rf & 1) {
37 ɵngcc0.ɵɵelementStart(0, "span");
38 ɵngcc0.ɵɵtext(1);
39 ɵngcc0.ɵɵelementEnd();
40} if (rf & 2) {
41 const ctx_r6 = ɵngcc0.ɵɵnextContext(2);
42 ɵngcc0.ɵɵadvance(1);
43 ɵngcc0.ɵɵtextInterpolate(ctx_r6._getDefaultTextForState(ctx_r6.state));
44} }
45function MatStepHeader_ng_container_4_span_2_Template(rf, ctx) { if (rf & 1) {
46 ɵngcc0.ɵɵelementStart(0, "span", 13);
47 ɵngcc0.ɵɵtext(1);
48 ɵngcc0.ɵɵelementEnd();
49} if (rf & 2) {
50 const ctx_r7 = ɵngcc0.ɵɵnextContext(2);
51 ɵngcc0.ɵɵadvance(1);
52 ɵngcc0.ɵɵtextInterpolate(ctx_r7._intl.completedLabel);
53} }
54function MatStepHeader_ng_container_4_span_3_Template(rf, ctx) { if (rf & 1) {
55 ɵngcc0.ɵɵelementStart(0, "span", 13);
56 ɵngcc0.ɵɵtext(1);
57 ɵngcc0.ɵɵelementEnd();
58} if (rf & 2) {
59 const ctx_r8 = ɵngcc0.ɵɵnextContext(2);
60 ɵngcc0.ɵɵadvance(1);
61 ɵngcc0.ɵɵtextInterpolate(ctx_r8._intl.editableLabel);
62} }
63function MatStepHeader_ng_container_4_mat_icon_4_Template(rf, ctx) { if (rf & 1) {
64 ɵngcc0.ɵɵelementStart(0, "mat-icon");
65 ɵngcc0.ɵɵtext(1);
66 ɵngcc0.ɵɵelementEnd();
67} if (rf & 2) {
68 const ctx_r9 = ɵngcc0.ɵɵnextContext(2);
69 ɵngcc0.ɵɵadvance(1);
70 ɵngcc0.ɵɵtextInterpolate(ctx_r9._getDefaultTextForState(ctx_r9.state));
71} }
72function MatStepHeader_ng_container_4_Template(rf, ctx) { if (rf & 1) {
73 ɵngcc0.ɵɵelementContainerStart(0, 9);
74 ɵngcc0.ɵɵtemplate(1, MatStepHeader_ng_container_4_span_1_Template, 2, 1, "span", 10);
75 ɵngcc0.ɵɵtemplate(2, MatStepHeader_ng_container_4_span_2_Template, 2, 1, "span", 11);
76 ɵngcc0.ɵɵtemplate(3, MatStepHeader_ng_container_4_span_3_Template, 2, 1, "span", 11);
77 ɵngcc0.ɵɵtemplate(4, MatStepHeader_ng_container_4_mat_icon_4_Template, 2, 1, "mat-icon", 12);
78 ɵngcc0.ɵɵelementContainerEnd();
79} if (rf & 2) {
80 const ctx_r1 = ɵngcc0.ɵɵnextContext();
81 ɵngcc0.ɵɵproperty("ngSwitch", ctx_r1.state);
82 ɵngcc0.ɵɵadvance(1);
83 ɵngcc0.ɵɵproperty("ngSwitchCase", "number");
84 ɵngcc0.ɵɵadvance(1);
85 ɵngcc0.ɵɵproperty("ngIf", ctx_r1.state === "done");
86 ɵngcc0.ɵɵadvance(1);
87 ɵngcc0.ɵɵproperty("ngIf", ctx_r1.state === "edit");
88} }
89function MatStepHeader_div_6_Template(rf, ctx) { if (rf & 1) {
90 ɵngcc0.ɵɵelementStart(0, "div", 14);
91 ɵngcc0.ɵɵelementContainer(1, 15);
92 ɵngcc0.ɵɵelementEnd();
93} if (rf & 2) {
94 const ctx_r2 = ɵngcc0.ɵɵnextContext();
95 ɵngcc0.ɵɵadvance(1);
96 ɵngcc0.ɵɵproperty("ngTemplateOutlet", ctx_r2._templateLabel().template);
97} }
98function MatStepHeader_div_7_Template(rf, ctx) { if (rf & 1) {
99 ɵngcc0.ɵɵelementStart(0, "div", 14);
100 ɵngcc0.ɵɵtext(1);
101 ɵngcc0.ɵɵelementEnd();
102} if (rf & 2) {
103 const ctx_r3 = ɵngcc0.ɵɵnextContext();
104 ɵngcc0.ɵɵadvance(1);
105 ɵngcc0.ɵɵtextInterpolate(ctx_r3.label);
106} }
107function MatStepHeader_div_8_Template(rf, ctx) { if (rf & 1) {
108 ɵngcc0.ɵɵelementStart(0, "div", 16);
109 ɵngcc0.ɵɵtext(1);
110 ɵngcc0.ɵɵelementEnd();
111} if (rf & 2) {
112 const ctx_r4 = ɵngcc0.ɵɵnextContext();
113 ɵngcc0.ɵɵadvance(1);
114 ɵngcc0.ɵɵtextInterpolate(ctx_r4._intl.optionalLabel);
115} }
116function MatStepHeader_div_9_Template(rf, ctx) { if (rf & 1) {
117 ɵngcc0.ɵɵelementStart(0, "div", 17);
118 ɵngcc0.ɵɵtext(1);
119 ɵngcc0.ɵɵelementEnd();
120} if (rf & 2) {
121 const ctx_r5 = ɵngcc0.ɵɵnextContext();
122 ɵngcc0.ɵɵadvance(1);
123 ɵngcc0.ɵɵtextInterpolate(ctx_r5.errorMessage);
124} }
125function MatStep_ng_template_0_ng_template_1_Template(rf, ctx) { }
126function MatStep_ng_template_0_Template(rf, ctx) { if (rf & 1) {
127 ɵngcc0.ɵɵprojection(0);
128 ɵngcc0.ɵɵtemplate(1, MatStep_ng_template_0_ng_template_1_Template, 0, 0, "ng-template", 0);
129} if (rf & 2) {
130 const ctx_r0 = ɵngcc0.ɵɵnextContext();
131 ɵngcc0.ɵɵadvance(1);
132 ɵngcc0.ɵɵproperty("cdkPortalOutlet", ctx_r0._portal);
133} }
134const _c0 = ["*"];
135function MatStepper_ng_container_1_ng_container_2_div_2_Template(rf, ctx) { if (rf & 1) {
136 ɵngcc0.ɵɵelement(0, "div", 9);
137} }
138const _c1 = function (a0, a1) { return { step: a0, i: a1 }; };
139function MatStepper_ng_container_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
140 ɵngcc0.ɵɵelementContainerStart(0);
141 ɵngcc0.ɵɵelementContainer(1, 7);
142 ɵngcc0.ɵɵtemplate(2, MatStepper_ng_container_1_ng_container_2_div_2_Template, 1, 0, "div", 8);
143 ɵngcc0.ɵɵelementContainerEnd();
144} if (rf & 2) {
145 const step_r6 = ctx.$implicit;
146 const i_r7 = ctx.index;
147 const isLast_r8 = ctx.last;
148 ɵngcc0.ɵɵnextContext(2);
149 const _r2 = ɵngcc0.ɵɵreference(4);
150 ɵngcc0.ɵɵadvance(1);
151 ɵngcc0.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", ɵngcc0.ɵɵpureFunction2(3, _c1, step_r6, i_r7));
152 ɵngcc0.ɵɵadvance(1);
153 ɵngcc0.ɵɵproperty("ngIf", !isLast_r8);
154} }
155function MatStepper_ng_container_1_div_4_Template(rf, ctx) { if (rf & 1) {
156 const _r13 = ɵngcc0.ɵɵgetCurrentView();
157 ɵngcc0.ɵɵelementStart(0, "div", 10);
158 ɵngcc0.ɵɵlistener("@horizontalStepTransition.done", function MatStepper_ng_container_1_div_4_Template_div_animation_horizontalStepTransition_done_0_listener($event) { ɵngcc0.ɵɵrestoreView(_r13); const ctx_r12 = ɵngcc0.ɵɵnextContext(2); return ctx_r12._animationDone.next($event); });
159 ɵngcc0.ɵɵelementContainer(1, 11);
160 ɵngcc0.ɵɵelementEnd();
161} if (rf & 2) {
162 const step_r10 = ctx.$implicit;
163 const i_r11 = ctx.index;
164 const ctx_r5 = ɵngcc0.ɵɵnextContext(2);
165 ɵngcc0.ɵɵproperty("@horizontalStepTransition", ctx_r5._getAnimationDirection(i_r11))("id", ctx_r5._getStepContentId(i_r11));
166 ɵngcc0.ɵɵattribute("aria-labelledby", ctx_r5._getStepLabelId(i_r11))("aria-expanded", ctx_r5.selectedIndex === i_r11);
167 ɵngcc0.ɵɵadvance(1);
168 ɵngcc0.ɵɵproperty("ngTemplateOutlet", step_r10.content);
169} }
170function MatStepper_ng_container_1_Template(rf, ctx) { if (rf & 1) {
171 ɵngcc0.ɵɵelementContainerStart(0);
172 ɵngcc0.ɵɵelementStart(1, "div", 3);
173 ɵngcc0.ɵɵtemplate(2, MatStepper_ng_container_1_ng_container_2_Template, 3, 6, "ng-container", 4);
174 ɵngcc0.ɵɵelementEnd();
175 ɵngcc0.ɵɵelementStart(3, "div", 5);
176 ɵngcc0.ɵɵtemplate(4, MatStepper_ng_container_1_div_4_Template, 2, 5, "div", 6);
177 ɵngcc0.ɵɵelementEnd();
178 ɵngcc0.ɵɵelementContainerEnd();
179} if (rf & 2) {
180 const ctx_r0 = ɵngcc0.ɵɵnextContext();
181 ɵngcc0.ɵɵadvance(2);
182 ɵngcc0.ɵɵproperty("ngForOf", ctx_r0.steps);
183 ɵngcc0.ɵɵadvance(2);
184 ɵngcc0.ɵɵproperty("ngForOf", ctx_r0.steps);
185} }
186function MatStepper_ng_container_2_div_1_Template(rf, ctx) { if (rf & 1) {
187 const _r19 = ɵngcc0.ɵɵgetCurrentView();
188 ɵngcc0.ɵɵelementStart(0, "div", 13);
189 ɵngcc0.ɵɵelementContainer(1, 7);
190 ɵngcc0.ɵɵelementStart(2, "div", 14);
191 ɵngcc0.ɵɵelementStart(3, "div", 15);
192 ɵngcc0.ɵɵlistener("@verticalStepTransition.done", function MatStepper_ng_container_2_div_1_Template_div_animation_verticalStepTransition_done_3_listener($event) { ɵngcc0.ɵɵrestoreView(_r19); const ctx_r18 = ɵngcc0.ɵɵnextContext(2); return ctx_r18._animationDone.next($event); });
193 ɵngcc0.ɵɵelementStart(4, "div", 16);
194 ɵngcc0.ɵɵelementContainer(5, 11);
195 ɵngcc0.ɵɵelementEnd();
196 ɵngcc0.ɵɵelementEnd();
197 ɵngcc0.ɵɵelementEnd();
198 ɵngcc0.ɵɵelementEnd();
199} if (rf & 2) {
200 const step_r15 = ctx.$implicit;
201 const i_r16 = ctx.index;
202 const isLast_r17 = ctx.last;
203 const ctx_r14 = ɵngcc0.ɵɵnextContext(2);
204 const _r2 = ɵngcc0.ɵɵreference(4);
205 ɵngcc0.ɵɵadvance(1);
206 ɵngcc0.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", ɵngcc0.ɵɵpureFunction2(9, _c1, step_r15, i_r16));
207 ɵngcc0.ɵɵadvance(1);
208 ɵngcc0.ɵɵclassProp("mat-stepper-vertical-line", !isLast_r17);
209 ɵngcc0.ɵɵadvance(1);
210 ɵngcc0.ɵɵproperty("@verticalStepTransition", ctx_r14._getAnimationDirection(i_r16))("id", ctx_r14._getStepContentId(i_r16));
211 ɵngcc0.ɵɵattribute("aria-labelledby", ctx_r14._getStepLabelId(i_r16))("aria-expanded", ctx_r14.selectedIndex === i_r16);
212 ɵngcc0.ɵɵadvance(2);
213 ɵngcc0.ɵɵproperty("ngTemplateOutlet", step_r15.content);
214} }
215function MatStepper_ng_container_2_Template(rf, ctx) { if (rf & 1) {
216 ɵngcc0.ɵɵelementContainerStart(0);
217 ɵngcc0.ɵɵtemplate(1, MatStepper_ng_container_2_div_1_Template, 6, 12, "div", 12);
218 ɵngcc0.ɵɵelementContainerEnd();
219} if (rf & 2) {
220 const ctx_r1 = ɵngcc0.ɵɵnextContext();
221 ɵngcc0.ɵɵadvance(1);
222 ɵngcc0.ɵɵproperty("ngForOf", ctx_r1.steps);
223} }
224function MatStepper_ng_template_3_Template(rf, ctx) { if (rf & 1) {
225 const _r23 = ɵngcc0.ɵɵgetCurrentView();
226 ɵngcc0.ɵɵelementStart(0, "mat-step-header", 17);
227 ɵngcc0.ɵɵlistener("click", function MatStepper_ng_template_3_Template_mat_step_header_click_0_listener() { const restoredCtx = ɵngcc0.ɵɵrestoreView(_r23); const step_r20 = restoredCtx.step; return step_r20.select(); })("keydown", function MatStepper_ng_template_3_Template_mat_step_header_keydown_0_listener($event) { ɵngcc0.ɵɵrestoreView(_r23); const ctx_r24 = ɵngcc0.ɵɵnextContext(); return ctx_r24._onKeydown($event); });
228 ɵngcc0.ɵɵelementEnd();
229} if (rf & 2) {
230 const step_r20 = ctx.step;
231 const i_r21 = ctx.i;
232 const ctx_r3 = ɵngcc0.ɵɵnextContext();
233 ɵngcc0.ɵɵclassProp("mat-horizontal-stepper-header", ctx_r3.orientation === "horizontal")("mat-vertical-stepper-header", ctx_r3.orientation === "vertical");
234 ɵngcc0.ɵɵproperty("tabIndex", ctx_r3._getFocusIndex() === i_r21 ? 0 : -1)("id", ctx_r3._getStepLabelId(i_r21))("index", i_r21)("state", ctx_r3._getIndicatorType(i_r21, step_r20.state))("label", step_r20.stepLabel || step_r20.label)("selected", ctx_r3.selectedIndex === i_r21)("active", ctx_r3._stepIsNavigable(i_r21, step_r20))("optional", step_r20.optional)("errorMessage", step_r20.errorMessage)("iconOverrides", ctx_r3._iconOverrides)("disableRipple", ctx_r3.disableRipple || !ctx_r3._stepIsNavigable(i_r21, step_r20))("color", step_r20.color || ctx_r3.color);
235 ɵngcc0.ɵɵattribute("aria-posinset", i_r21 + 1)("aria-setsize", ctx_r3.steps.length)("aria-controls", ctx_r3._getStepContentId(i_r21))("aria-selected", ctx_r3.selectedIndex == i_r21)("aria-label", step_r20.ariaLabel || null)("aria-labelledby", !step_r20.ariaLabel && step_r20.ariaLabelledby ? step_r20.ariaLabelledby : null)("aria-disabled", ctx_r3._stepIsNavigable(i_r21, step_r20) ? null : true);
236} }
237class MatStepLabel extends CdkStepLabel {
238}
239MatStepLabel.ɵfac = /*@__PURE__*/ function () { let ɵMatStepLabel_BaseFactory; return function MatStepLabel_Factory(t) { return (ɵMatStepLabel_BaseFactory || (ɵMatStepLabel_BaseFactory = ɵngcc0.ɵɵgetInheritedFactory(MatStepLabel)))(t || MatStepLabel); }; }();
240MatStepLabel.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: MatStepLabel, selectors: [["", "matStepLabel", ""]], features: [ɵngcc0.ɵɵInheritDefinitionFeature] });
241(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatStepLabel, [{
242 type: Directive,
243 args: [{
244 selector: '[matStepLabel]'
245 }]
246 }], null, null); })();
247
248/**
249 * @license
250 * Copyright Google LLC All Rights Reserved.
251 *
252 * Use of this source code is governed by an MIT-style license that can be
253 * found in the LICENSE file at https://angular.io/license
254 */
255/** Stepper data that is required for internationalization. */
256class MatStepperIntl {
257 constructor() {
258 /**
259 * Stream that emits whenever the labels here are changed. Use this to notify
260 * components if the labels have changed after initialization.
261 */
262 this.changes = new Subject();
263 /** Label that is rendered below optional steps. */
264 this.optionalLabel = 'Optional';
265 /** Label that is used to indicate step as completed to screen readers. */
266 this.completedLabel = 'Completed';
267 /** Label that is used to indicate step as editable to screen readers. */
268 this.editableLabel = 'Editable';
269 }
270}
271MatStepperIntl.ɵfac = function MatStepperIntl_Factory(t) { return new (t || MatStepperIntl)(); };
272MatStepperIntl.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatStepperIntl_Factory() { return new MatStepperIntl(); }, token: MatStepperIntl, providedIn: "root" });
273(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatStepperIntl, [{
274 type: Injectable,
275 args: [{ providedIn: 'root' }]
276 }], function () { return []; }, null); })();
277/** @docs-private */
278function MAT_STEPPER_INTL_PROVIDER_FACTORY(parentIntl) {
279 return parentIntl || new MatStepperIntl();
280}
281/** @docs-private */
282const MAT_STEPPER_INTL_PROVIDER = {
283 provide: MatStepperIntl,
284 deps: [[new Optional(), new SkipSelf(), MatStepperIntl]],
285 useFactory: MAT_STEPPER_INTL_PROVIDER_FACTORY
286};
287
288/**
289 * @license
290 * Copyright Google LLC All Rights Reserved.
291 *
292 * Use of this source code is governed by an MIT-style license that can be
293 * found in the LICENSE file at https://angular.io/license
294 */
295// Boilerplate for applying mixins to MatStepHeader.
296/** @docs-private */
297const _MatStepHeaderBase = mixinColor(class MatStepHeaderBase extends CdkStepHeader {
298 constructor(elementRef) {
299 super(elementRef);
300 }
301}, 'primary');
302class MatStepHeader extends _MatStepHeaderBase {
303 constructor(_intl, _focusMonitor, _elementRef, changeDetectorRef) {
304 super(_elementRef);
305 this._intl = _intl;
306 this._focusMonitor = _focusMonitor;
307 this._intlSubscription = _intl.changes.subscribe(() => changeDetectorRef.markForCheck());
308 }
309 ngAfterViewInit() {
310 this._focusMonitor.monitor(this._elementRef, true);
311 }
312 ngOnDestroy() {
313 this._intlSubscription.unsubscribe();
314 this._focusMonitor.stopMonitoring(this._elementRef);
315 }
316 /** Focuses the step header. */
317 focus(origin, options) {
318 if (origin) {
319 this._focusMonitor.focusVia(this._elementRef, origin, options);
320 }
321 else {
322 this._elementRef.nativeElement.focus(options);
323 }
324 }
325 /** Returns string label of given step if it is a text label. */
326 _stringLabel() {
327 return this.label instanceof MatStepLabel ? null : this.label;
328 }
329 /** Returns MatStepLabel if the label of given step is a template label. */
330 _templateLabel() {
331 return this.label instanceof MatStepLabel ? this.label : null;
332 }
333 /** Returns the host HTML element. */
334 _getHostElement() {
335 return this._elementRef.nativeElement;
336 }
337 /** Template context variables that are exposed to the `matStepperIcon` instances. */
338 _getIconContext() {
339 return {
340 index: this.index,
341 active: this.active,
342 optional: this.optional
343 };
344 }
345 _getDefaultTextForState(state) {
346 if (state == 'number') {
347 return `${this.index + 1}`;
348 }
349 if (state == 'edit') {
350 return 'create';
351 }
352 if (state == 'error') {
353 return 'warning';
354 }
355 return state;
356 }
357}
358MatStepHeader.ɵfac = function MatStepHeader_Factory(t) { return new (t || MatStepHeader)(ɵngcc0.ɵɵdirectiveInject(MatStepperIntl), ɵngcc0.ɵɵdirectiveInject(ɵngcc1.FocusMonitor), ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ElementRef), ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ChangeDetectorRef)); };
359MatStepHeader.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: MatStepHeader, selectors: [["mat-step-header"]], hostAttrs: ["role", "tab", 1, "mat-step-header"], inputs: { color: "color", state: "state", label: "label", errorMessage: "errorMessage", iconOverrides: "iconOverrides", index: "index", selected: "selected", active: "active", optional: "optional", disableRipple: "disableRipple" }, features: [ɵngcc0.ɵɵInheritDefinitionFeature], decls: 10, vars: 19, consts: [["matRipple", "", 1, "mat-step-header-ripple", "mat-focus-indicator", 3, "matRippleTrigger", "matRippleDisabled"], [1, "mat-step-icon-content", 3, "ngSwitch"], [3, "ngTemplateOutlet", "ngTemplateOutletContext", 4, "ngSwitchCase"], [3, "ngSwitch", 4, "ngSwitchDefault"], [1, "mat-step-label"], ["class", "mat-step-text-label", 4, "ngIf"], ["class", "mat-step-optional", 4, "ngIf"], ["class", "mat-step-sub-label-error", 4, "ngIf"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "cdk-visually-hidden", 4, "ngIf"], [4, "ngSwitchDefault"], [1, "cdk-visually-hidden"], [1, "mat-step-text-label"], [3, "ngTemplateOutlet"], [1, "mat-step-optional"], [1, "mat-step-sub-label-error"]], template: function MatStepHeader_Template(rf, ctx) { if (rf & 1) {
360 ɵngcc0.ɵɵelement(0, "div", 0);
361 ɵngcc0.ɵɵelementStart(1, "div");
362 ɵngcc0.ɵɵelementStart(2, "div", 1);
363 ɵngcc0.ɵɵtemplate(3, MatStepHeader_ng_container_3_Template, 1, 2, "ng-container", 2);
364 ɵngcc0.ɵɵtemplate(4, MatStepHeader_ng_container_4_Template, 5, 4, "ng-container", 3);
365 ɵngcc0.ɵɵelementEnd();
366 ɵngcc0.ɵɵelementEnd();
367 ɵngcc0.ɵɵelementStart(5, "div", 4);
368 ɵngcc0.ɵɵtemplate(6, MatStepHeader_div_6_Template, 2, 1, "div", 5);
369 ɵngcc0.ɵɵtemplate(7, MatStepHeader_div_7_Template, 2, 1, "div", 5);
370 ɵngcc0.ɵɵtemplate(8, MatStepHeader_div_8_Template, 2, 1, "div", 6);
371 ɵngcc0.ɵɵtemplate(9, MatStepHeader_div_9_Template, 2, 1, "div", 7);
372 ɵngcc0.ɵɵelementEnd();
373 } if (rf & 2) {
374 ɵngcc0.ɵɵproperty("matRippleTrigger", ctx._getHostElement())("matRippleDisabled", ctx.disableRipple);
375 ɵngcc0.ɵɵadvance(1);
376 ɵngcc0.ɵɵclassMapInterpolate1("mat-step-icon-state-", ctx.state, " mat-step-icon");
377 ɵngcc0.ɵɵclassProp("mat-step-icon-selected", ctx.selected);
378 ɵngcc0.ɵɵadvance(1);
379 ɵngcc0.ɵɵproperty("ngSwitch", !!(ctx.iconOverrides && ctx.iconOverrides[ctx.state]));
380 ɵngcc0.ɵɵadvance(1);
381 ɵngcc0.ɵɵproperty("ngSwitchCase", true);
382 ɵngcc0.ɵɵadvance(2);
383 ɵngcc0.ɵɵclassProp("mat-step-label-active", ctx.active)("mat-step-label-selected", ctx.selected)("mat-step-label-error", ctx.state == "error");
384 ɵngcc0.ɵɵadvance(1);
385 ɵngcc0.ɵɵproperty("ngIf", ctx._templateLabel());
386 ɵngcc0.ɵɵadvance(1);
387 ɵngcc0.ɵɵproperty("ngIf", ctx._stringLabel());
388 ɵngcc0.ɵɵadvance(1);
389 ɵngcc0.ɵɵproperty("ngIf", ctx.optional && ctx.state != "error");
390 ɵngcc0.ɵɵadvance(1);
391 ɵngcc0.ɵɵproperty("ngIf", ctx.state == "error");
392 } }, directives: [ɵngcc2.MatRipple, ɵngcc3.NgSwitch, ɵngcc3.NgSwitchCase, ɵngcc3.NgSwitchDefault, ɵngcc3.NgIf, ɵngcc3.NgTemplateOutlet, ɵngcc4.MatIcon], styles: [".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.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,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.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}\n"], encapsulation: 2, changeDetection: 0 });
393MatStepHeader.ctorParameters = () => [
394 { type: MatStepperIntl },
395 { type: FocusMonitor },
396 { type: ElementRef },
397 { type: ChangeDetectorRef }
398];
399MatStepHeader.propDecorators = {
400 state: [{ type: Input }],
401 label: [{ type: Input }],
402 errorMessage: [{ type: Input }],
403 iconOverrides: [{ type: Input }],
404 index: [{ type: Input }],
405 selected: [{ type: Input }],
406 active: [{ type: Input }],
407 optional: [{ type: Input }],
408 disableRipple: [{ type: Input }]
409};
410(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatStepHeader, [{
411 type: Component,
412 args: [{
413 selector: 'mat-step-header',
414 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 *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 *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",
415 inputs: ['color'],
416 host: {
417 'class': 'mat-step-header',
418 'role': 'tab'
419 },
420 encapsulation: ViewEncapsulation.None,
421 changeDetection: ChangeDetectionStrategy.OnPush,
422 styles: [".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.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,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.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}\n"]
423 }]
424 }], function () { return [{ type: MatStepperIntl }, { type: ɵngcc1.FocusMonitor }, { type: ɵngcc0.ElementRef }, { type: ɵngcc0.ChangeDetectorRef }]; }, { state: [{
425 type: Input
426 }], label: [{
427 type: Input
428 }], errorMessage: [{
429 type: Input
430 }], iconOverrides: [{
431 type: Input
432 }], index: [{
433 type: Input
434 }], selected: [{
435 type: Input
436 }], active: [{
437 type: Input
438 }], optional: [{
439 type: Input
440 }], disableRipple: [{
441 type: Input
442 }] }); })();
443
444/**
445 * @license
446 * Copyright Google LLC All Rights Reserved.
447 *
448 * Use of this source code is governed by an MIT-style license that can be
449 * found in the LICENSE file at https://angular.io/license
450 */
451/**
452 * Animations used by the Material steppers.
453 * @docs-private
454 */
455const matStepperAnimations = {
456 /** Animation that transitions the step along the X axis in a horizontal stepper. */
457 horizontalStepTransition: trigger('horizontalStepTransition', [
458 state('previous', style({ transform: 'translate3d(-100%, 0, 0)', visibility: 'hidden' })),
459 // Transition to `inherit`, rather than `visible`,
460 // because visibility on a child element the one from the parent,
461 // making this element focusable inside of a `hidden` element.
462 state('current', style({ transform: 'none', visibility: 'inherit' })),
463 state('next', style({ transform: 'translate3d(100%, 0, 0)', visibility: 'hidden' })),
464 transition('* => *', animate('500ms cubic-bezier(0.35, 0, 0.25, 1)'))
465 ]),
466 /** Animation that transitions the step along the Y axis in a vertical stepper. */
467 verticalStepTransition: trigger('verticalStepTransition', [
468 state('previous', style({ height: '0px', visibility: 'hidden' })),
469 state('next', style({ height: '0px', visibility: 'hidden' })),
470 // Transition to `inherit`, rather than `visible`,
471 // because visibility on a child element the one from the parent,
472 // making this element focusable inside of a `hidden` element.
473 state('current', style({ height: '*', visibility: 'inherit' })),
474 transition('* <=> current', animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)'))
475 ])
476};
477
478/**
479 * @license
480 * Copyright Google LLC All Rights Reserved.
481 *
482 * Use of this source code is governed by an MIT-style license that can be
483 * found in the LICENSE file at https://angular.io/license
484 */
485/**
486 * Template to be used to override the icons inside the step header.
487 */
488class MatStepperIcon {
489 constructor(templateRef) {
490 this.templateRef = templateRef;
491 }
492}
493MatStepperIcon.ɵfac = function MatStepperIcon_Factory(t) { return new (t || MatStepperIcon)(ɵngcc0.ɵɵdirectiveInject(ɵngcc0.TemplateRef)); };
494MatStepperIcon.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: MatStepperIcon, selectors: [["ng-template", "matStepperIcon", ""]], inputs: { name: ["matStepperIcon", "name"] } });
495MatStepperIcon.ctorParameters = () => [
496 { type: TemplateRef }
497];
498MatStepperIcon.propDecorators = {
499 name: [{ type: Input, args: ['matStepperIcon',] }]
500};
501(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatStepperIcon, [{
502 type: Directive,
503 args: [{
504 selector: 'ng-template[matStepperIcon]'
505 }]
506 }], function () { return [{ type: ɵngcc0.TemplateRef }]; }, { name: [{
507 type: Input,
508 args: ['matStepperIcon']
509 }] }); })();
510
511/**
512 * @license
513 * Copyright Google LLC All Rights Reserved.
514 *
515 * Use of this source code is governed by an MIT-style license that can be
516 * found in the LICENSE file at https://angular.io/license
517 */
518/**
519 * Content for a `mat-step` that will be rendered lazily.
520 */
521class MatStepContent {
522 constructor(_template) {
523 this._template = _template;
524 }
525}
526MatStepContent.ɵfac = function MatStepContent_Factory(t) { return new (t || MatStepContent)(ɵngcc0.ɵɵdirectiveInject(ɵngcc0.TemplateRef)); };
527MatStepContent.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: MatStepContent, selectors: [["ng-template", "matStepContent", ""]] });
528MatStepContent.ctorParameters = () => [
529 { type: TemplateRef }
530];
531(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatStepContent, [{
532 type: Directive,
533 args: [{
534 selector: 'ng-template[matStepContent]'
535 }]
536 }], function () { return [{ type: ɵngcc0.TemplateRef }]; }, null); })();
537
538/**
539 * @license
540 * Copyright Google LLC All Rights Reserved.
541 *
542 * Use of this source code is governed by an MIT-style license that can be
543 * found in the LICENSE file at https://angular.io/license
544 */
545class MatStep extends CdkStep {
546 constructor(stepper, _errorStateMatcher, _viewContainerRef, stepperOptions) {
547 super(stepper, stepperOptions);
548 this._errorStateMatcher = _errorStateMatcher;
549 this._viewContainerRef = _viewContainerRef;
550 this._isSelected = Subscription.EMPTY;
551 }
552 ngAfterContentInit() {
553 this._isSelected = this._stepper.steps.changes.pipe(switchMap(() => {
554 return this._stepper.selectionChange.pipe(map(event => event.selectedStep === this), startWith(this._stepper.selected === this));
555 })).subscribe(isSelected => {
556 if (isSelected && this._lazyContent && !this._portal) {
557 this._portal = new TemplatePortal(this._lazyContent._template, this._viewContainerRef);
558 }
559 });
560 }
561 ngOnDestroy() {
562 this._isSelected.unsubscribe();
563 }
564 /** Custom error state matcher that additionally checks for validity of interacted form. */
565 isErrorState(control, form) {
566 const originalErrorState = this._errorStateMatcher.isErrorState(control, form);
567 // Custom error state checks for the validity of form that is not submitted or touched
568 // since user can trigger a form change by calling for another step without directly
569 // interacting with the current form.
570 const customErrorState = !!(control && control.invalid && this.interacted);
571 return originalErrorState || customErrorState;
572 }
573}
574MatStep.ɵfac = function MatStep_Factory(t) { return new (t || MatStep)(ɵngcc0.ɵɵdirectiveInject(forwardRef(() => MatStepper)), ɵngcc0.ɵɵdirectiveInject(ɵngcc2.ErrorStateMatcher, 4), ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ViewContainerRef), ɵngcc0.ɵɵdirectiveInject(STEPPER_GLOBAL_OPTIONS, 8)); };
575MatStep.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: MatStep, selectors: [["mat-step"]], contentQueries: function MatStep_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
576 ɵngcc0.ɵɵcontentQuery(dirIndex, MatStepLabel, 5);
577 ɵngcc0.ɵɵcontentQuery(dirIndex, MatStepContent, 5);
578 } if (rf & 2) {
579 let _t;
580 ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx.stepLabel = _t.first);
581 ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx._lazyContent = _t.first);
582 } }, inputs: { color: "color" }, exportAs: ["matStep"], features: [ɵngcc0.ɵɵProvidersFeature([
583 { provide: ErrorStateMatcher, useExisting: MatStep },
584 { provide: CdkStep, useExisting: MatStep },
585 ]), ɵngcc0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0, decls: 1, vars: 0, consts: [[3, "cdkPortalOutlet"]], template: function MatStep_Template(rf, ctx) { if (rf & 1) {
586 ɵngcc0.ɵɵprojectionDef();
587 ɵngcc0.ɵɵtemplate(0, MatStep_ng_template_0_Template, 2, 1, "ng-template");
588 } }, directives: [ɵngcc5.CdkPortalOutlet], encapsulation: 2, changeDetection: 0 });
589MatStep.ctorParameters = () => [
590 { type: MatStepper, decorators: [{ type: Inject, args: [forwardRef(() => MatStepper),] }] },
591 { type: ErrorStateMatcher, decorators: [{ type: SkipSelf }] },
592 { type: ViewContainerRef },
593 { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [STEPPER_GLOBAL_OPTIONS,] }] }
594];
595MatStep.propDecorators = {
596 stepLabel: [{ type: ContentChild, args: [MatStepLabel,] }],
597 color: [{ type: Input }],
598 _lazyContent: [{ type: ContentChild, args: [MatStepContent, { static: false },] }]
599};
600(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatStep, [{
601 type: Component,
602 args: [{
603 selector: 'mat-step',
604 template: "<ng-template>\n <ng-content></ng-content>\n <ng-template [cdkPortalOutlet]=\"_portal\"></ng-template>\n</ng-template>\n",
605 providers: [
606 { provide: ErrorStateMatcher, useExisting: MatStep },
607 { provide: CdkStep, useExisting: MatStep },
608 ],
609 encapsulation: ViewEncapsulation.None,
610 exportAs: 'matStep',
611 changeDetection: ChangeDetectionStrategy.OnPush
612 }]
613 }], function () { return [{ type: MatStepper, decorators: [{
614 type: Inject,
615 args: [forwardRef(() => MatStepper)]
616 }] }, { type: ɵngcc2.ErrorStateMatcher, decorators: [{
617 type: SkipSelf
618 }] }, { type: ɵngcc0.ViewContainerRef }, { type: undefined, decorators: [{
619 type: Optional
620 }, {
621 type: Inject,
622 args: [STEPPER_GLOBAL_OPTIONS]
623 }] }]; }, { stepLabel: [{
624 type: ContentChild,
625 args: [MatStepLabel]
626 }], color: [{
627 type: Input
628 }], _lazyContent: [{
629 type: ContentChild,
630 args: [MatStepContent, { static: false }]
631 }] }); })();
632/**
633 * Proxies the public APIs from `MatStepper` to the deprecated `MatHorizontalStepper` and
634 * `MatVerticalStepper`.
635 * @deprecated Use `MatStepper` instead.
636 * @breaking-change 13.0.0
637 * @docs-private
638 */
639class _MatProxyStepperBase extends CdkStepper {
640}
641_MatProxyStepperBase.ɵfac = /*@__PURE__*/ function () { let ɵ_MatProxyStepperBase_BaseFactory; return function _MatProxyStepperBase_Factory(t) { return (ɵ_MatProxyStepperBase_BaseFactory || (ɵ_MatProxyStepperBase_BaseFactory = ɵngcc0.ɵɵgetInheritedFactory(_MatProxyStepperBase)))(t || _MatProxyStepperBase); }; }();
642_MatProxyStepperBase.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: _MatProxyStepperBase, features: [ɵngcc0.ɵɵInheritDefinitionFeature] });
643(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(_MatProxyStepperBase, [{
644 type: Directive
645 }], null, null); })();
646/**
647 * @deprecated Use `MatStepper` instead.
648 * @breaking-change 13.0.0
649 */
650class MatHorizontalStepper extends _MatProxyStepperBase {
651}
652MatHorizontalStepper.ɵfac = /*@__PURE__*/ function () { let ɵMatHorizontalStepper_BaseFactory; return function MatHorizontalStepper_Factory(t) { return (ɵMatHorizontalStepper_BaseFactory || (ɵMatHorizontalStepper_BaseFactory = ɵngcc0.ɵɵgetInheritedFactory(MatHorizontalStepper)))(t || MatHorizontalStepper); }; }();
653MatHorizontalStepper.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: MatHorizontalStepper, selectors: [["mat-horizontal-stepper"]], features: [ɵngcc0.ɵɵInheritDefinitionFeature] });
654(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatHorizontalStepper, [{
655 type: Directive,
656 args: [{ selector: 'mat-horizontal-stepper' }]
657 }], null, null); })();
658/**
659 * @deprecated Use `MatStepper` instead.
660 * @breaking-change 13.0.0
661 */
662class MatVerticalStepper extends _MatProxyStepperBase {
663}
664MatVerticalStepper.ɵfac = /*@__PURE__*/ function () { let ɵMatVerticalStepper_BaseFactory; return function MatVerticalStepper_Factory(t) { return (ɵMatVerticalStepper_BaseFactory || (ɵMatVerticalStepper_BaseFactory = ɵngcc0.ɵɵgetInheritedFactory(MatVerticalStepper)))(t || MatVerticalStepper); }; }();
665MatVerticalStepper.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: MatVerticalStepper, selectors: [["mat-vertical-stepper"]], features: [ɵngcc0.ɵɵInheritDefinitionFeature] });
666(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatVerticalStepper, [{
667 type: Directive,
668 args: [{ selector: 'mat-vertical-stepper' }]
669 }], null, null); })();
670class MatStepper extends CdkStepper {
671 constructor(dir, changeDetectorRef, elementRef, _document) {
672 super(dir, changeDetectorRef, elementRef, _document);
673 /** Steps that belong to the current stepper, excluding ones from nested steppers. */
674 this.steps = new QueryList();
675 /** Event emitted when the current step is done transitioning in. */
676 this.animationDone = new EventEmitter();
677 /**
678 * Whether the label should display in bottom or end position.
679 * Only applies in the `horizontal` orientation.
680 */
681 this.labelPosition = 'end';
682 /** Consumer-specified template-refs to be used to override the header icons. */
683 this._iconOverrides = {};
684 /** Stream of animation `done` events when the body expands/collapses. */
685 this._animationDone = new Subject();
686 const nodeName = elementRef.nativeElement.nodeName.toLowerCase();
687 this.orientation = nodeName === 'mat-vertical-stepper' ? 'vertical' : 'horizontal';
688 }
689 ngAfterContentInit() {
690 super.ngAfterContentInit();
691 this._icons.forEach(({ name, templateRef }) => this._iconOverrides[name] = templateRef);
692 // Mark the component for change detection whenever the content children query changes
693 this.steps.changes.pipe(takeUntil(this._destroyed)).subscribe(() => {
694 this._stateChanged();
695 });
696 this._animationDone.pipe(
697 // This needs a `distinctUntilChanged` in order to avoid emitting the same event twice due
698 // to a bug in animations where the `.done` callback gets invoked twice on some browsers.
699 // See https://github.com/angular/angular/issues/24084
700 distinctUntilChanged((x, y) => x.fromState === y.fromState && x.toState === y.toState), takeUntil(this._destroyed)).subscribe(event => {
701 if (event.toState === 'current') {
702 this.animationDone.emit();
703 }
704 });
705 }
706 _stepIsNavigable(index, step) {
707 return step.completed || this.selectedIndex === index || !this.linear;
708 }
709}
710MatStepper.ɵfac = function MatStepper_Factory(t) { return new (t || MatStepper)(ɵngcc0.ɵɵdirectiveInject(ɵngcc6.Directionality, 8), ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ChangeDetectorRef), ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ElementRef), ɵngcc0.ɵɵdirectiveInject(DOCUMENT)); };
711MatStepper.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: MatStepper, selectors: [["mat-stepper"], ["mat-vertical-stepper"], ["mat-horizontal-stepper"], ["", "matStepper", ""]], contentQueries: function MatStepper_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
712 ɵngcc0.ɵɵcontentQuery(dirIndex, MatStep, 5);
713 ɵngcc0.ɵɵcontentQuery(dirIndex, MatStepperIcon, 5);
714 } if (rf & 2) {
715 let _t;
716 ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx._steps = _t);
717 ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx._icons = _t);
718 } }, viewQuery: function MatStepper_Query(rf, ctx) { if (rf & 1) {
719 ɵngcc0.ɵɵviewQuery(MatStepHeader, 5);
720 } if (rf & 2) {
721 let _t;
722 ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx._stepHeader = _t);
723 } }, hostAttrs: ["role", "tablist"], hostVars: 9, hostBindings: function MatStepper_HostBindings(rf, ctx) { if (rf & 2) {
724 ɵngcc0.ɵɵattribute("aria-orientation", ctx.orientation);
725 ɵngcc0.ɵɵclassProp("mat-stepper-horizontal", ctx.orientation === "horizontal")("mat-stepper-vertical", ctx.orientation === "vertical")("mat-stepper-label-position-end", ctx.orientation === "horizontal" && ctx.labelPosition == "end")("mat-stepper-label-position-bottom", ctx.orientation === "horizontal" && ctx.labelPosition == "bottom");
726 } }, inputs: { selectedIndex: "selectedIndex", labelPosition: "labelPosition", disableRipple: "disableRipple", color: "color" }, outputs: { animationDone: "animationDone" }, exportAs: ["matStepper", "matVerticalStepper", "matHorizontalStepper"], features: [ɵngcc0.ɵɵProvidersFeature([
727 { provide: CdkStepper, useExisting: MatStepper },
728 { provide: MatHorizontalStepper, useExisting: MatStepper },
729 { provide: MatVerticalStepper, useExisting: MatStepper },
730 ]), ɵngcc0.ɵɵInheritDefinitionFeature], decls: 5, vars: 3, consts: [[3, "ngSwitch"], [4, "ngSwitchCase"], ["stepTemplate", ""], [1, "mat-horizontal-stepper-header-container"], [4, "ngFor", "ngForOf"], [1, "mat-horizontal-content-container"], ["class", "mat-horizontal-stepper-content", "role", "tabpanel", 3, "id", 4, "ngFor", "ngForOf"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["class", "mat-stepper-horizontal-line", 4, "ngIf"], [1, "mat-stepper-horizontal-line"], ["role", "tabpanel", 1, "mat-horizontal-stepper-content", 3, "id"], [3, "ngTemplateOutlet"], ["class", "mat-step", 4, "ngFor", "ngForOf"], [1, "mat-step"], [1, "mat-vertical-content-container"], ["role", "tabpanel", 1, "mat-vertical-stepper-content", 3, "id"], [1, "mat-vertical-content"], [3, "tabIndex", "id", "index", "state", "label", "selected", "active", "optional", "errorMessage", "iconOverrides", "disableRipple", "color", "click", "keydown"]], template: function MatStepper_Template(rf, ctx) { if (rf & 1) {
731 ɵngcc0.ɵɵelementContainerStart(0, 0);
732 ɵngcc0.ɵɵtemplate(1, MatStepper_ng_container_1_Template, 5, 2, "ng-container", 1);
733 ɵngcc0.ɵɵtemplate(2, MatStepper_ng_container_2_Template, 2, 1, "ng-container", 1);
734 ɵngcc0.ɵɵelementContainerEnd();
735 ɵngcc0.ɵɵtemplate(3, MatStepper_ng_template_3_Template, 1, 23, "ng-template", null, 2, ɵngcc0.ɵɵtemplateRefExtractor);
736 } if (rf & 2) {
737 ɵngcc0.ɵɵproperty("ngSwitch", ctx.orientation);
738 ɵngcc0.ɵɵadvance(1);
739 ɵngcc0.ɵɵproperty("ngSwitchCase", "horizontal");
740 ɵngcc0.ɵɵadvance(1);
741 ɵngcc0.ɵɵproperty("ngSwitchCase", "vertical");
742 } }, directives: [ɵngcc3.NgSwitch, ɵngcc3.NgSwitchCase, ɵngcc3.NgForOf, ɵngcc3.NgTemplateOutlet, ɵngcc3.NgIf, MatStepHeader], 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-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-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-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}\n"], encapsulation: 2, data: { animation: [
743 matStepperAnimations.horizontalStepTransition,
744 matStepperAnimations.verticalStepTransition,
745 ] }, changeDetection: 0 });
746MatStepper.ctorParameters = () => [
747 { type: Directionality, decorators: [{ type: Optional }] },
748 { type: ChangeDetectorRef },
749 { type: ElementRef },
750 { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
751];
752MatStepper.propDecorators = {
753 _stepHeader: [{ type: ViewChildren, args: [MatStepHeader,] }],
754 _steps: [{ type: ContentChildren, args: [MatStep, { descendants: true },] }],
755 _icons: [{ type: ContentChildren, args: [MatStepperIcon, { descendants: true },] }],
756 animationDone: [{ type: Output }],
757 disableRipple: [{ type: Input }],
758 color: [{ type: Input }],
759 labelPosition: [{ type: Input }]
760};
761(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatStepper, [{
762 type: Component,
763 args: [{
764 selector: 'mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]',
765 exportAs: 'matStepper, matVerticalStepper, matHorizontalStepper',
766 template: "<ng-container [ngSwitch]=\"orientation\">\n <!-- Horizontal stepper -->\n <ng-container *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]=\"_getAnimationDirection(i)\"\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 </ng-container>\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]=\"_getAnimationDirection(i)\"\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",
767 inputs: ['selectedIndex'],
768 host: {
769 '[class.mat-stepper-horizontal]': 'orientation === "horizontal"',
770 '[class.mat-stepper-vertical]': 'orientation === "vertical"',
771 '[class.mat-stepper-label-position-end]': 'orientation === "horizontal" && labelPosition == "end"',
772 '[class.mat-stepper-label-position-bottom]': 'orientation === "horizontal" && labelPosition == "bottom"',
773 '[attr.aria-orientation]': 'orientation',
774 'role': 'tablist'
775 },
776 animations: [
777 matStepperAnimations.horizontalStepTransition,
778 matStepperAnimations.verticalStepTransition,
779 ],
780 providers: [
781 { provide: CdkStepper, useExisting: MatStepper },
782 { provide: MatHorizontalStepper, useExisting: MatStepper },
783 { provide: MatVerticalStepper, useExisting: MatStepper },
784 ],
785 encapsulation: ViewEncapsulation.None,
786 changeDetection: ChangeDetectionStrategy.OnPush,
787 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-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-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-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}\n"]
788 }]
789 }], function () { return [{ type: ɵngcc6.Directionality, decorators: [{
790 type: Optional
791 }] }, { type: ɵngcc0.ChangeDetectorRef }, { type: ɵngcc0.ElementRef }, { type: undefined, decorators: [{
792 type: Inject,
793 args: [DOCUMENT]
794 }] }]; }, { animationDone: [{
795 type: Output
796 }], labelPosition: [{
797 type: Input
798 }], _stepHeader: [{
799 type: ViewChildren,
800 args: [MatStepHeader]
801 }], _steps: [{
802 type: ContentChildren,
803 args: [MatStep, { descendants: true }]
804 }], _icons: [{
805 type: ContentChildren,
806 args: [MatStepperIcon, { descendants: true }]
807 }], disableRipple: [{
808 type: Input
809 }], color: [{
810 type: Input
811 }] }); })();
812
813/**
814 * @license
815 * Copyright Google LLC All Rights Reserved.
816 *
817 * Use of this source code is governed by an MIT-style license that can be
818 * found in the LICENSE file at https://angular.io/license
819 */
820/** Button that moves to the next step in a stepper workflow. */
821class MatStepperNext extends CdkStepperNext {
822}
823MatStepperNext.ɵfac = /*@__PURE__*/ function () { let ɵMatStepperNext_BaseFactory; return function MatStepperNext_Factory(t) { return (ɵMatStepperNext_BaseFactory || (ɵMatStepperNext_BaseFactory = ɵngcc0.ɵɵgetInheritedFactory(MatStepperNext)))(t || MatStepperNext); }; }();
824MatStepperNext.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: MatStepperNext, selectors: [["button", "matStepperNext", ""]], hostAttrs: [1, "mat-stepper-next"], hostVars: 1, hostBindings: function MatStepperNext_HostBindings(rf, ctx) { if (rf & 2) {
825 ɵngcc0.ɵɵhostProperty("type", ctx.type);
826 } }, inputs: { type: "type" }, features: [ɵngcc0.ɵɵInheritDefinitionFeature] });
827(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatStepperNext, [{
828 type: Directive,
829 args: [{
830 selector: 'button[matStepperNext]',
831 host: {
832 'class': 'mat-stepper-next',
833 '[type]': 'type'
834 },
835 inputs: ['type']
836 }]
837 }], null, null); })();
838/** Button that moves to the previous step in a stepper workflow. */
839class MatStepperPrevious extends CdkStepperPrevious {
840}
841MatStepperPrevious.ɵfac = /*@__PURE__*/ function () { let ɵMatStepperPrevious_BaseFactory; return function MatStepperPrevious_Factory(t) { return (ɵMatStepperPrevious_BaseFactory || (ɵMatStepperPrevious_BaseFactory = ɵngcc0.ɵɵgetInheritedFactory(MatStepperPrevious)))(t || MatStepperPrevious); }; }();
842MatStepperPrevious.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: MatStepperPrevious, selectors: [["button", "matStepperPrevious", ""]], hostAttrs: [1, "mat-stepper-previous"], hostVars: 1, hostBindings: function MatStepperPrevious_HostBindings(rf, ctx) { if (rf & 2) {
843 ɵngcc0.ɵɵhostProperty("type", ctx.type);
844 } }, inputs: { type: "type" }, features: [ɵngcc0.ɵɵInheritDefinitionFeature] });
845(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatStepperPrevious, [{
846 type: Directive,
847 args: [{
848 selector: 'button[matStepperPrevious]',
849 host: {
850 'class': 'mat-stepper-previous',
851 '[type]': 'type'
852 },
853 inputs: ['type']
854 }]
855 }], null, null); })();
856
857/**
858 * @license
859 * Copyright Google LLC All Rights Reserved.
860 *
861 * Use of this source code is governed by an MIT-style license that can be
862 * found in the LICENSE file at https://angular.io/license
863 */
864class MatStepperModule {
865}
866MatStepperModule.ɵfac = function MatStepperModule_Factory(t) { return new (t || MatStepperModule)(); };
867MatStepperModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: MatStepperModule });
868MatStepperModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({ providers: [MAT_STEPPER_INTL_PROVIDER, ErrorStateMatcher], imports: [[
869 MatCommonModule,
870 CommonModule,
871 PortalModule,
872 MatButtonModule,
873 CdkStepperModule,
874 MatIconModule,
875 MatRippleModule,
876 ], MatCommonModule] });
877(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatStepperModule, [{
878 type: NgModule,
879 args: [{
880 imports: [
881 MatCommonModule,
882 CommonModule,
883 PortalModule,
884 MatButtonModule,
885 CdkStepperModule,
886 MatIconModule,
887 MatRippleModule,
888 ],
889 exports: [
890 MatCommonModule,
891 MatStep,
892 MatStepLabel,
893 MatStepper,
894 MatStepperNext,
895 MatStepperPrevious,
896 MatStepHeader,
897 MatStepperIcon,
898 MatStepContent,
899 ],
900 declarations: [
901 MatHorizontalStepper,
902 MatVerticalStepper,
903 MatStep,
904 MatStepLabel,
905 MatStepper,
906 MatStepperNext,
907 MatStepperPrevious,
908 MatStepHeader,
909 MatStepperIcon,
910 MatStepContent,
911 ],
912 providers: [MAT_STEPPER_INTL_PROVIDER, ErrorStateMatcher]
913 }]
914 }], null, null); })();
915(function () { (typeof ngJitMode === "undefined" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(MatStepperModule, { declarations: function () { return [MatHorizontalStepper, MatVerticalStepper, MatStep, MatStepLabel, MatStepper, MatStepperNext, MatStepperPrevious, MatStepHeader, MatStepperIcon, MatStepContent]; }, imports: function () { return [MatCommonModule,
916 CommonModule,
917 PortalModule,
918 MatButtonModule,
919 CdkStepperModule,
920 MatIconModule,
921 MatRippleModule]; }, exports: function () { return [MatCommonModule, MatStep, MatStepLabel, MatStepper, MatStepperNext, MatStepperPrevious, MatStepHeader, MatStepperIcon, MatStepContent]; } }); })();
922
923/**
924 * @license
925 * Copyright Google LLC All Rights Reserved.
926 *
927 * Use of this source code is governed by an MIT-style license that can be
928 * found in the LICENSE file at https://angular.io/license
929 */
930
931/**
932 * Generated bundle index. Do not edit.
933 */
934
935export { MAT_STEPPER_INTL_PROVIDER, MAT_STEPPER_INTL_PROVIDER_FACTORY, MatHorizontalStepper, MatStep, MatStepContent, MatStepHeader, MatStepLabel, MatStepper, MatStepperIcon, MatStepperIntl, MatStepperModule, MatStepperNext, MatStepperPrevious, MatVerticalStepper, matStepperAnimations };
936
937//# sourceMappingURL=stepper.js.map
Note: See TracBrowser for help on using the repository browser.