-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path34-es2015.159cb8be37f43837ebb7.js
1 lines (1 loc) · 15.3 KB
/
34-es2015.159cb8be37f43837ebb7.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[34],{"B/XX":function(e,t,n){"use strict";n.d(t,"a",function(){return j}),n.d(t,"b",function(){return O}),n.d(t,"c",function(){return m}),n.d(t,"d",function(){return x}),n.d(t,"e",function(){return I}),n.d(t,"f",function(){return g}),n.d(t,"g",function(){return y}),n.d(t,"h",function(){return f});var c=n("u47x"),s=n("cH1L"),r=n("8LU1"),i=n("FtGj"),o=n("ofXK"),l=n("fXoL"),a=n("XNiG"),d=n("LRne"),p=n("JX91"),u=n("1G5W");function b(e,t){1&e&&l.tc(0)}const h=["*"];let O=(()=>{class e{constructor(e){this._elementRef=e}focus(){this._elementRef.nativeElement.focus()}}return e.\u0275fac=function(t){return new(t||e)(l.Yb(l.p))},e.\u0275dir=l.Tb({type:e,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),e})(),m=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(l.Yb(l.V))},e.\u0275dir=l.Tb({type:e,selectors:[["","cdkStepLabel",""]]}),e})(),_=0;const f=new l.x("STEPPER_GLOBAL_OPTIONS");let j=(()=>{class e{constructor(e,t){this._stepper=e,this.interacted=!1,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=t||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}get editable(){return this._editable}set editable(e){this._editable=Object(r.c)(e)}get optional(){return this._optional}set optional(e){this._optional=Object(r.c)(e)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=Object(r.c)(e)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(e){this._customError=Object(r.c)(e)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}}return e.\u0275fac=function(t){return new(t||e)(l.Yb(Object(l.eb)(()=>x)),l.Yb(f,8))},e.\u0275cmp=l.Sb({type:e,selectors:[["cdk-step"]],contentQueries:function(e,t,n){if(1&e&&l.Rb(n,m,!0),2&e){let e;l.Bc(e=l.mc())&&(t.stepLabel=e.first)}},viewQuery:function(e,t){if(1&e&&l.Mc(l.V,!0),2&e){let e;l.Bc(e=l.mc())&&(t.content=e.first)}},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},exportAs:["cdkStep"],features:[l.Kb],ngContentSelectors:h,decls:1,vars:0,template:function(e,t){1&e&&(l.uc(),l.Qc(0,b,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),e})(),x=(()=>{class e{constructor(e,t,n,c){this._dir=e,this._changeDetectorRef=t,this._elementRef=n,this._destroyed=new a.a,this.steps=new l.M,this._linear=!1,this._selectedIndex=0,this.selectionChange=new l.s,this._orientation="horizontal",this._groupId=_++,this._document=c}get linear(){return this._linear}set linear(e){this._linear=Object(r.c)(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){const t=Object(r.f)(e);this.steps&&this._steps?(this._isValidIndex(e),this._selectedIndex!==t&&!this._anyControlsInvalidOrPending(t)&&(t>=this._selectedIndex||this.steps.toArray()[t].editable)&&this._updateSelectedItemIndex(e)):this._selectedIndex=t}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=this.steps?this.steps.toArray().indexOf(e):-1}ngAfterContentInit(){this._steps.changes.pipe(Object(p.a)(this._steps),Object(u.a)(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(e=>e._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._keyManager=new c.g(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:Object(d.a)()).pipe(Object(p.a)(this._layoutDirection()),Object(u.a)(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`cdk-step-label-${this._groupId}-${e}`}_getStepContentId(e){return`cdk-step-content-${this._groupId}-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){const t=e-this._selectedIndex;return t<0?"rtl"===this._layoutDirection()?"next":"previous":t>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(e,t="number"){const n=this.steps.toArray()[e],c=this._isCurrentStep(e);return n._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(n,c):this._getGuidelineLogic(n,c,t)}_getDefaultIndicatorLogic(e,t){return e._showError&&e.hasError&&!t?"error":!e.completed||t?"number":e.editable?"edit":"done"}_getGuidelineLogic(e,t,n="number"){return e._showError&&e.hasError&&!t?"error":e.completed&&!t?"done":e.completed&&t?n:e.editable&&t?"edit":n}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){const t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this._stateChanged()}_onKeydown(e){const t=Object(i.t)(e),n=e.keyCode,c=this._keyManager;null==c.activeItemIndex||t||n!==i.o&&n!==i.g?c.onKeydown(e):(this.selectedIndex=c.activeItemIndex,e.preventDefault())}_anyControlsInvalidOrPending(e){const t=this.steps.toArray();return t[this._selectedIndex].interacted=!0,!!(this._linear&&e>=0)&&t.slice(0,e).some(e=>{const t=e.stepControl;return(t?t.invalid||t.pending||!e.interacted:!e.completed)&&!e.optional&&!e._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){if(!this._document||!this._elementRef)return!1;const e=this._elementRef.nativeElement,t=this._document.activeElement;return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}}return e.\u0275fac=function(t){return new(t||e)(l.Yb(s.c,8),l.Yb(l.i),l.Yb(l.p),l.Yb(o.e))},e.\u0275dir=l.Tb({type:e,selectors:[["","cdkStepper",""]],contentQueries:function(e,t,n){if(1&e&&(l.Rb(n,j,!0),l.Rb(n,O,!0)),2&e){let e;l.Bc(e=l.mc())&&(t._steps=e),l.Bc(e=l.mc())&&(t._stepHeader=e)}},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),e})(),g=(()=>{class e{constructor(e){this._stepper=e,this.type="submit"}_handleClick(){this._stepper.next()}}return e.\u0275fac=function(t){return new(t||e)(l.Yb(x))},e.\u0275dir=l.Tb({type:e,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(e,t){1&e&&l.lc("click",function(){return t._handleClick()}),2&e&&l.hc("type",t.type)},inputs:{type:"type"}}),e})(),y=(()=>{class e{constructor(e){this._stepper=e,this.type="button"}_handleClick(){this._stepper.previous()}}return e.\u0275fac=function(t){return new(t||e)(l.Yb(x))},e.\u0275dir=l.Tb({type:e,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(e,t){1&e&&l.lc("click",function(){return t._handleClick()}),2&e&&l.hc("type",t.type)},inputs:{type:"type"}}),e})(),I=(()=>{class e{}return e.\u0275mod=l.Wb({type:e}),e.\u0275inj=l.Vb({factory:function(t){return new(t||e)},imports:[[s.a]]}),e})()},anLY:function(e,t,n){"use strict";n.r(t),n.d(t,"CdkCustomStepperWithoutFormExample",function(){return l}),n.d(t,"CdkLinearStepperWithFormExample",function(){return u}),n.d(t,"CdkStepperExamplesModule",function(){return O}),n.d(t,"CustomLinearStepper",function(){return b}),n.d(t,"CustomStepper",function(){return a});var c=n("B/XX"),s=n("ofXK"),r=n("fXoL"),i=n("3Pt+");function o(e,t){if(1&e){const e=Object(r.fc)();Object(r.ec)(0,"button",6),Object(r.lc)("click",function(){Object(r.Gc)(e);const n=t.index;return Object(r.pc)().selectStepByIndex(n)}),Object(r.Sc)(1),Object(r.dc)()}if(2&e){const e=t.index,n=Object(r.pc)();Object(r.Qb)("example-active",n.selectedIndex===e),Object(r.Mb)(1),Object(r.Uc)(" Step ",e+1," ")}}let l=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Object(r.Sb)({type:e,selectors:[["cdk-custom-stepper-without-form-example"]],decls:7,vars:0,template:function(e,t){1&e&&(Object(r.ec)(0,"example-custom-stepper"),Object(r.ec)(1,"cdk-step"),Object(r.ec)(2,"p"),Object(r.Sc)(3,'This is any content of "Step 1"'),Object(r.dc)(),Object(r.dc)(),Object(r.ec)(4,"cdk-step"),Object(r.ec)(5,"p"),Object(r.Sc)(6,'This is any content of "Step 2"'),Object(r.dc)(),Object(r.dc)(),Object(r.dc)())},directives:function(){return[a,c.a]},styles:[""]}),e})(),a=(()=>{class e extends c.d{selectStepByIndex(e){this.selectedIndex=e}}return e.\u0275fac=function(t){return d(t||e)},e.\u0275cmp=Object(r.Sb)({type:e,selectors:[["example-custom-stepper"]],features:[Object(r.Lb)([{provide:c.d,useExisting:e}]),r.Jb],decls:11,vars:4,consts:[[1,"example-container"],[3,"ngTemplateOutlet"],[1,"example-step-navigation-bar"],["cdkStepperPrevious","",1,"example-nav-button"],["class","example-step",3,"example-active","click",4,"ngFor","ngForOf"],["cdkStepperNext","",1,"example-nav-button"],[1,"example-step",3,"click"]],template:function(e,t){1&e&&(Object(r.ec)(0,"section",0),Object(r.ec)(1,"header"),Object(r.ec)(2,"h2"),Object(r.Sc)(3),Object(r.dc)(),Object(r.dc)(),Object(r.Zb)(4,"div",1),Object(r.ec)(5,"footer",2),Object(r.ec)(6,"button",3),Object(r.Sc)(7,"\u2190"),Object(r.dc)(),Object(r.Qc)(8,o,2,3,"button",4),Object(r.ec)(9,"button",5),Object(r.Sc)(10,"\u2192"),Object(r.dc)(),Object(r.dc)(),Object(r.dc)()),2&e&&(Object(r.Mb)(3),Object(r.Vc)("Step ",t.selectedIndex+1,"/",t.steps.length,""),Object(r.Mb)(1),Object(r.vc)("ngTemplateOutlet",t.selected?t.selected.content:null),Object(r.Mb)(4),Object(r.vc)("ngForOf",t.steps))},directives:[s.A,c.g,s.s,c.f],styles:[".example-container[_ngcontent-%COMP%] {\n border: 1px solid;\n padding: 10px;\n margin: 10px;\n}\n\n.example-step-navigation-bar[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-start;\n margin-top: 10px;\n}\n\n.example-step[_ngcontent-%COMP%] {\n background: transparent;\n border: 0;\n margin: 0 10px;\n padding: 10px;\n color: inherit;\n}\n\n.example-step.example-active[_ngcontent-%COMP%] {\n border-bottom: 1px solid;\n font-weight: 600;\n}\n\n.example-nav-button[_ngcontent-%COMP%] {\n background: transparent;\n border: 0;\n color: inherit;\n}"]}),e})();const d=Object(r.gc)(a);function p(e,t){if(1&e){const e=Object(r.fc)();Object(r.ec)(0,"button",6),Object(r.lc)("click",function(){Object(r.Gc)(e);const n=t.index;return Object(r.pc)().selectStepByIndex(n)}),Object(r.Sc)(1),Object(r.dc)()}if(2&e){const e=t.index,n=Object(r.pc)();Object(r.Qb)("example-active",n.selectedIndex===e),Object(r.Mb)(1),Object(r.Uc)(" Step ",e+1," ")}}let u=(()=>{class e{constructor(e){this._formBuilder=e,this.isLinear=!0,this.firstFormGroup=this._formBuilder.group({firstControl:["",i.w.required]}),this.secondFormGroup=this._formBuilder.group({secondControl:["",i.w.required]})}toggleLinearity(){this.isLinear=!this.isLinear}}return e.\u0275fac=function(t){return new(t||e)(Object(r.Yb)(i.d))},e.\u0275cmp=Object(r.Sb)({type:e,selectors:[["cdk-linear-stepper-with-form-example"]],decls:13,vars:6,consts:[[3,"linear"],[3,"stepControl"],["for","stepOneInput"],[3,"formGroup"],["placeholder","Input","formControlName","firstControl","id","stepOneInput","required",""],["for","stepTwoInput"],["placeholder","Input","formControlName","secondControl","id","stepTwoInput","required",""],[1,"example-toggle-linear-button",3,"click"]],template:function(e,t){1&e&&(Object(r.ec)(0,"example-custom-linear-stepper",0),Object(r.ec)(1,"cdk-step",1),Object(r.ec)(2,"label",2),Object(r.Sc)(3,"Step 1 input"),Object(r.dc)(),Object(r.ec)(4,"form",3),Object(r.Zb)(5,"input",4),Object(r.dc)(),Object(r.dc)(),Object(r.ec)(6,"cdk-step",1),Object(r.ec)(7,"label",5),Object(r.Sc)(8,"Step 2 input"),Object(r.dc)(),Object(r.ec)(9,"form",3),Object(r.Zb)(10,"input",6),Object(r.dc)(),Object(r.dc)(),Object(r.dc)(),Object(r.ec)(11,"button",7),Object(r.lc)("click",function(){return t.toggleLinearity()}),Object(r.Sc)(12),Object(r.dc)()),2&e&&(Object(r.vc)("linear",t.isLinear),Object(r.Mb)(1),Object(r.vc)("stepControl",t.firstFormGroup),Object(r.Mb)(3),Object(r.vc)("formGroup",t.firstFormGroup),Object(r.Mb)(2),Object(r.vc)("stepControl",t.secondFormGroup),Object(r.Mb)(3),Object(r.vc)("formGroup",t.secondFormGroup),Object(r.Mb)(3),Object(r.Uc)(" ",t.isLinear?"Disable linear mode":"Enable linear mode","\n"))},directives:function(){return[b,c.a,i.y,i.o,i.i,i.c,i.n,i.g,i.u]},styles:[".example-toggle-linear-button[_ngcontent-%COMP%] {\n margin-left: 10px;\n}"]}),e})(),b=(()=>{class e extends c.d{selectStepByIndex(e){this.selectedIndex=e}}return e.\u0275fac=function(t){return h(t||e)},e.\u0275cmp=Object(r.Sb)({type:e,selectors:[["example-custom-linear-stepper"]],features:[Object(r.Lb)([{provide:c.d,useExisting:e}]),r.Jb],decls:11,vars:4,consts:[[1,"example-container"],[3,"ngTemplateOutlet"],[1,"example-step-navigation-bar"],["cdkStepperPrevious","",1,"example-nav-button"],["class","example-step",3,"example-active","click",4,"ngFor","ngForOf"],["cdkStepperNext","",1,"example-nav-button"],[1,"example-step",3,"click"]],template:function(e,t){1&e&&(Object(r.ec)(0,"section",0),Object(r.ec)(1,"header"),Object(r.ec)(2,"h2"),Object(r.Sc)(3),Object(r.dc)(),Object(r.dc)(),Object(r.Zb)(4,"div",1),Object(r.ec)(5,"footer",2),Object(r.ec)(6,"button",3),Object(r.Sc)(7,"\u2190"),Object(r.dc)(),Object(r.Qc)(8,p,2,3,"button",4),Object(r.ec)(9,"button",5),Object(r.Sc)(10,"\u2192"),Object(r.dc)(),Object(r.dc)(),Object(r.dc)()),2&e&&(Object(r.Mb)(3),Object(r.Vc)("Step ",t.selectedIndex+1,"/",t.steps.length,""),Object(r.Mb)(1),Object(r.vc)("ngTemplateOutlet",t.selected?t.selected.content:null),Object(r.Mb)(4),Object(r.vc)("ngForOf",t.steps))},directives:[s.A,c.g,s.s,c.f],styles:[".example-container[_ngcontent-%COMP%] {\n border: 1px solid;\n padding: 10px;\n margin: 10px;\n}\n\n.example-step-navigation-bar[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-start;\n margin-top: 10px;\n}\n\n.example-step[_ngcontent-%COMP%] {\n background: transparent;\n border: 0;\n margin: 0 10px;\n padding: 10px;\n color: inherit;\n}\n\n.example-step.example-active[_ngcontent-%COMP%] {\n border-bottom: 1px solid;\n font-weight: 600;\n}\n\n.example-nav-button[_ngcontent-%COMP%] {\n background: transparent;\n border: 0;\n color: inherit;\n}"]}),e})();const h=Object(r.gc)(b);let O=(()=>{class e{}return e.\u0275mod=Object(r.Wb)({type:e}),e.\u0275inj=Object(r.Vb)({factory:function(t){return new(t||e)},imports:[[c.e,s.c,i.t]]}),e})()}}]);