-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path34-es5.159cb8be37f43837ebb7.js
1 lines (1 loc) · 18.2 KB
/
34-es5.159cb8be37f43837ebb7.js
1
!function(){function e(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&t(e,n)}function t(e,n){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,n)}function n(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,i=r(e);if(t){var o=r(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var c=t[n];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(e,c.key,c)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}(window.webpackJsonp=window.webpackJsonp||[]).push([[34],{"B/XX":function(e,t,n){"use strict";n.d(t,"a",function(){return y}),n.d(t,"b",function(){return m}),n.d(t,"c",function(){return _}),n.d(t,"d",function(){return g}),n.d(t,"e",function(){return I}),n.d(t,"f",function(){return x}),n.d(t,"g",function(){return k}),n.d(t,"h",function(){return j});var c=n("u47x"),r=n("cH1L"),o=n("8LU1"),a=n("FtGj"),u=n("ofXK"),l=n("fXoL"),p=n("XNiG"),d=n("LRne"),b=n("JX91"),f=n("1G5W");function h(e,t){1&e&&l.tc(0)}var O=["*"],m=function(){var e=function(){function e(t){i(this,e),this._elementRef=t}return s(e,[{key:"focus",value:function(){this._elementRef.nativeElement.focus()}}]),e}();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}(),_=function(){var e=function e(t){i(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(l.Yb(l.V))},e.\u0275dir=l.Tb({type:e,selectors:[["","cdkStepLabel",""]]}),e}(),v=0,j=new l.x("STEPPER_GLOBAL_OPTIONS"),y=function(){var e=function(){function e(t,n){i(this,e),this._stepper=t,this.interacted=!1,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=n||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}return s(e,[{key:"_getDefaultCompleted",value:function(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}},{key:"_getDefaultError",value:function(){return this.stepControl&&this.stepControl.invalid&&this.interacted}},{key:"select",value:function(){this._stepper.selected=this}},{key:"reset",value:function(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}},{key:"ngOnChanges",value:function(){this._stepper._stateChanged()}},{key:"editable",get:function(){return this._editable},set:function(e){this._editable=Object(o.c)(e)}},{key:"optional",get:function(){return this._optional},set:function(e){this._optional=Object(o.c)(e)}},{key:"completed",get:function(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride},set:function(e){this._completedOverride=Object(o.c)(e)}},{key:"hasError",get:function(){return null==this._customError?this._getDefaultError():this._customError},set:function(e){this._customError=Object(o.c)(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.Yb(Object(l.eb)(function(){return g})),l.Yb(j,8))},e.\u0275cmp=l.Sb({type:e,selectors:[["cdk-step"]],contentQueries:function(e,t,n){var c;(1&e&&l.Rb(n,_,!0),2&e)&&(l.Bc(c=l.mc())&&(t.stepLabel=c.first))},viewQuery:function(e,t){var n;(1&e&&l.Mc(l.V,!0),2&e)&&(l.Bc(n=l.mc())&&(t.content=n.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:O,decls:1,vars:0,template:function(e,t){1&e&&(l.uc(),l.Qc(0,h,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),e}(),g=function(){var e=function(){function e(t,n,c,r){i(this,e),this._dir=t,this._changeDetectorRef=n,this._elementRef=c,this._destroyed=new p.a,this.steps=new l.M,this._linear=!1,this._selectedIndex=0,this.selectionChange=new l.s,this._orientation="horizontal",this._groupId=v++,this._document=r}return s(e,[{key:"ngAfterContentInit",value:function(){var e=this;this._steps.changes.pipe(Object(b.a)(this._steps),Object(f.a)(this._destroyed)).subscribe(function(t){e.steps.reset(t.filter(function(t){return t._stepper===e})),e.steps.notifyOnChanges()})}},{key:"ngAfterViewInit",value:function(){var e=this;this._keyManager=new c.g(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:Object(d.a)()).pipe(Object(b.a)(this._layoutDirection()),Object(f.a)(this._destroyed)).subscribe(function(t){return e._keyManager.withHorizontalOrientation(t)}),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(function(){e.selected||(e._selectedIndex=Math.max(e._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}},{key:"ngOnDestroy",value:function(){this.steps.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"next",value:function(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}},{key:"previous",value:function(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}},{key:"reset",value:function(){this._updateSelectedItemIndex(0),this.steps.forEach(function(e){return e.reset()}),this._stateChanged()}},{key:"_getStepLabelId",value:function(e){return"cdk-step-label-".concat(this._groupId,"-").concat(e)}},{key:"_getStepContentId",value:function(e){return"cdk-step-content-".concat(this._groupId,"-").concat(e)}},{key:"_stateChanged",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_getAnimationDirection",value:function(e){var t=e-this._selectedIndex;return t<0?"rtl"===this._layoutDirection()?"next":"previous":t>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}},{key:"_getIndicatorType",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",n=this.steps.toArray()[e],c=this._isCurrentStep(e);return n._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(n,c):this._getGuidelineLogic(n,c,t)}},{key:"_getDefaultIndicatorLogic",value:function(e,t){return e._showError&&e.hasError&&!t?"error":!e.completed||t?"number":e.editable?"edit":"done"}},{key:"_getGuidelineLogic",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"number";return e._showError&&e.hasError&&!t?"error":e.completed&&!t?"done":e.completed&&t?n:e.editable&&t?"edit":n}},{key:"_isCurrentStep",value:function(e){return this._selectedIndex===e}},{key:"_getFocusIndex",value:function(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}},{key:"_updateSelectedItemIndex",value:function(e){var 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()}},{key:"_onKeydown",value:function(e){var t=Object(a.t)(e),n=e.keyCode,c=this._keyManager;null==c.activeItemIndex||t||n!==a.o&&n!==a.g?c.onKeydown(e):(this.selectedIndex=c.activeItemIndex,e.preventDefault())}},{key:"_anyControlsInvalidOrPending",value:function(e){var t=this.steps.toArray();return t[this._selectedIndex].interacted=!0,!!(this._linear&&e>=0)&&t.slice(0,e).some(function(e){var t=e.stepControl;return(t?t.invalid||t.pending||!e.interacted:!e.completed)&&!e.optional&&!e._completedOverride})}},{key:"_layoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_containsFocus",value:function(){if(!this._document||!this._elementRef)return!1;var e=this._elementRef.nativeElement,t=this._document.activeElement;return e===t||e.contains(t)}},{key:"_isValidIndex",value:function(e){return e>-1&&(!this.steps||e<this.steps.length)}},{key:"linear",get:function(){return this._linear},set:function(e){this._linear=Object(o.c)(e)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){var t=Object(o.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}},{key:"selected",get:function(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0},set:function(e){this.selectedIndex=this.steps?this.steps.toArray().indexOf(e):-1}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.Yb(r.c,8),l.Yb(l.i),l.Yb(l.p),l.Yb(u.e))},e.\u0275dir=l.Tb({type:e,selectors:[["","cdkStepper",""]],contentQueries:function(e,t,n){var c;(1&e&&(l.Rb(n,y,!0),l.Rb(n,m,!0)),2&e)&&(l.Bc(c=l.mc())&&(t._steps=c),l.Bc(c=l.mc())&&(t._stepHeader=c))},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),e}(),x=function(){var e=function(){function e(t){i(this,e),this._stepper=t,this.type="submit"}return s(e,[{key:"_handleClick",value:function(){this._stepper.next()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.Yb(g))},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}(),k=function(){var e=function(){function e(t){i(this,e),this._stepper=t,this.type="button"}return s(e,[{key:"_handleClick",value:function(){this._stepper.previous()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.Yb(g))},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=function(){var e=function e(){i(this,e)};return e.\u0275mod=l.Wb({type:e}),e.\u0275inj=l.Vb({factory:function(t){return new(t||e)},imports:[[r.a]]}),e}()},anLY:function(t,c,r){"use strict";r.r(c),r.d(c,"CdkCustomStepperWithoutFormExample",function(){return d}),r.d(c,"CdkLinearStepperWithFormExample",function(){return O}),r.d(c,"CdkStepperExamplesModule",function(){return v}),r.d(c,"CustomLinearStepper",function(){return m}),r.d(c,"CustomStepper",function(){return b});var o=r("B/XX"),a=r("ofXK"),u=r("fXoL"),l=r("3Pt+");function p(e,t){if(1&e){var n=Object(u.fc)();Object(u.ec)(0,"button",6),Object(u.lc)("click",function(){Object(u.Gc)(n);var e=t.index;return Object(u.pc)().selectStepByIndex(e)}),Object(u.Sc)(1),Object(u.dc)()}if(2&e){var c=t.index,r=Object(u.pc)();Object(u.Qb)("example-active",r.selectedIndex===c),Object(u.Mb)(1),Object(u.Uc)(" Step ",c+1," ")}}var d=function(){var e=function e(){i(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Object(u.Sb)({type:e,selectors:[["cdk-custom-stepper-without-form-example"]],decls:7,vars:0,template:function(e,t){1&e&&(Object(u.ec)(0,"example-custom-stepper"),Object(u.ec)(1,"cdk-step"),Object(u.ec)(2,"p"),Object(u.Sc)(3,'This is any content of "Step 1"'),Object(u.dc)(),Object(u.dc)(),Object(u.ec)(4,"cdk-step"),Object(u.ec)(5,"p"),Object(u.Sc)(6,'This is any content of "Step 2"'),Object(u.dc)(),Object(u.dc)(),Object(u.dc)())},directives:function(){return[b,o.a]},styles:[""]}),e}(),b=function(){var t=function(t){e(r,t);var c=n(r);function r(){return i(this,r),c.apply(this,arguments)}return s(r,[{key:"selectStepByIndex",value:function(e){this.selectedIndex=e}}]),r}(o.d);return t.\u0275fac=function(e){return f(e||t)},t.\u0275cmp=Object(u.Sb)({type:t,selectors:[["example-custom-stepper"]],features:[Object(u.Lb)([{provide:o.d,useExisting:t}]),u.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(u.ec)(0,"section",0),Object(u.ec)(1,"header"),Object(u.ec)(2,"h2"),Object(u.Sc)(3),Object(u.dc)(),Object(u.dc)(),Object(u.Zb)(4,"div",1),Object(u.ec)(5,"footer",2),Object(u.ec)(6,"button",3),Object(u.Sc)(7,"\u2190"),Object(u.dc)(),Object(u.Qc)(8,p,2,3,"button",4),Object(u.ec)(9,"button",5),Object(u.Sc)(10,"\u2192"),Object(u.dc)(),Object(u.dc)(),Object(u.dc)()),2&e&&(Object(u.Mb)(3),Object(u.Vc)("Step ",t.selectedIndex+1,"/",t.steps.length,""),Object(u.Mb)(1),Object(u.vc)("ngTemplateOutlet",t.selected?t.selected.content:null),Object(u.Mb)(4),Object(u.vc)("ngForOf",t.steps))},directives:[a.A,o.g,a.s,o.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}"]}),t}(),f=Object(u.gc)(b);function h(e,t){if(1&e){var n=Object(u.fc)();Object(u.ec)(0,"button",6),Object(u.lc)("click",function(){Object(u.Gc)(n);var e=t.index;return Object(u.pc)().selectStepByIndex(e)}),Object(u.Sc)(1),Object(u.dc)()}if(2&e){var c=t.index,r=Object(u.pc)();Object(u.Qb)("example-active",r.selectedIndex===c),Object(u.Mb)(1),Object(u.Uc)(" Step ",c+1," ")}}var O=function(){var e=function(){function e(t){i(this,e),this._formBuilder=t,this.isLinear=!0,this.firstFormGroup=this._formBuilder.group({firstControl:["",l.w.required]}),this.secondFormGroup=this._formBuilder.group({secondControl:["",l.w.required]})}return s(e,[{key:"toggleLinearity",value:function(){this.isLinear=!this.isLinear}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Object(u.Yb)(l.d))},e.\u0275cmp=Object(u.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(u.ec)(0,"example-custom-linear-stepper",0),Object(u.ec)(1,"cdk-step",1),Object(u.ec)(2,"label",2),Object(u.Sc)(3,"Step 1 input"),Object(u.dc)(),Object(u.ec)(4,"form",3),Object(u.Zb)(5,"input",4),Object(u.dc)(),Object(u.dc)(),Object(u.ec)(6,"cdk-step",1),Object(u.ec)(7,"label",5),Object(u.Sc)(8,"Step 2 input"),Object(u.dc)(),Object(u.ec)(9,"form",3),Object(u.Zb)(10,"input",6),Object(u.dc)(),Object(u.dc)(),Object(u.dc)(),Object(u.ec)(11,"button",7),Object(u.lc)("click",function(){return t.toggleLinearity()}),Object(u.Sc)(12),Object(u.dc)()),2&e&&(Object(u.vc)("linear",t.isLinear),Object(u.Mb)(1),Object(u.vc)("stepControl",t.firstFormGroup),Object(u.Mb)(3),Object(u.vc)("formGroup",t.firstFormGroup),Object(u.Mb)(2),Object(u.vc)("stepControl",t.secondFormGroup),Object(u.Mb)(3),Object(u.vc)("formGroup",t.secondFormGroup),Object(u.Mb)(3),Object(u.Uc)(" ",t.isLinear?"Disable linear mode":"Enable linear mode","\n"))},directives:function(){return[m,o.a,l.y,l.o,l.i,l.c,l.n,l.g,l.u]},styles:[".example-toggle-linear-button[_ngcontent-%COMP%] {\n margin-left: 10px;\n}"]}),e}(),m=function(){var t=function(t){e(r,t);var c=n(r);function r(){return i(this,r),c.apply(this,arguments)}return s(r,[{key:"selectStepByIndex",value:function(e){this.selectedIndex=e}}]),r}(o.d);return t.\u0275fac=function(e){return _(e||t)},t.\u0275cmp=Object(u.Sb)({type:t,selectors:[["example-custom-linear-stepper"]],features:[Object(u.Lb)([{provide:o.d,useExisting:t}]),u.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(u.ec)(0,"section",0),Object(u.ec)(1,"header"),Object(u.ec)(2,"h2"),Object(u.Sc)(3),Object(u.dc)(),Object(u.dc)(),Object(u.Zb)(4,"div",1),Object(u.ec)(5,"footer",2),Object(u.ec)(6,"button",3),Object(u.Sc)(7,"\u2190"),Object(u.dc)(),Object(u.Qc)(8,h,2,3,"button",4),Object(u.ec)(9,"button",5),Object(u.Sc)(10,"\u2192"),Object(u.dc)(),Object(u.dc)(),Object(u.dc)()),2&e&&(Object(u.Mb)(3),Object(u.Vc)("Step ",t.selectedIndex+1,"/",t.steps.length,""),Object(u.Mb)(1),Object(u.vc)("ngTemplateOutlet",t.selected?t.selected.content:null),Object(u.Mb)(4),Object(u.vc)("ngForOf",t.steps))},directives:[a.A,o.g,a.s,o.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}"]}),t}(),_=Object(u.gc)(m),v=function(){var e=function e(){i(this,e)};return e.\u0275mod=Object(u.Wb)({type:e}),e.\u0275inj=Object(u.Vb)({factory:function(t){return new(t||e)},imports:[[o.e,a.c,l.t]]}),e}()}}])}();