@angular/cdk 10.1.1 → 10.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/a11y/index.metadata.json +1 -1
- package/a11y/key-manager/list-key-manager.d.ts +4 -3
- package/bundles/cdk-a11y.umd.js +440 -384
- package/bundles/cdk-a11y.umd.js.map +1 -1
- package/bundles/cdk-a11y.umd.min.js +34 -10
- package/bundles/cdk-a11y.umd.min.js.map +1 -1
- package/bundles/cdk-accordion.umd.js +40 -40
- package/bundles/cdk-accordion.umd.js.map +1 -1
- package/bundles/cdk-accordion.umd.min.js +10 -2
- package/bundles/cdk-accordion.umd.min.js.map +1 -1
- package/bundles/cdk-bidi.umd.js +25 -25
- package/bundles/cdk-bidi.umd.js.map +1 -1
- package/bundles/cdk-bidi.umd.min.js +5 -4
- package/bundles/cdk-bidi.umd.min.js.map +1 -1
- package/bundles/cdk-clipboard.umd.js +37 -36
- package/bundles/cdk-clipboard.umd.js.map +1 -1
- package/bundles/cdk-clipboard.umd.min.js +10 -2
- package/bundles/cdk-clipboard.umd.min.js.map +1 -1
- package/bundles/cdk-coercion.umd.js.map +1 -1
- package/bundles/cdk-collections.umd.js +498 -238
- package/bundles/cdk-collections.umd.js.map +1 -1
- package/bundles/cdk-collections.umd.min.js +6 -4
- package/bundles/cdk-collections.umd.min.js.map +1 -1
- package/bundles/cdk-drag-drop.umd.js +508 -448
- package/bundles/cdk-drag-drop.umd.js.map +1 -1
- package/bundles/cdk-drag-drop.umd.min.js +64 -8
- package/bundles/cdk-drag-drop.umd.min.js.map +1 -1
- package/bundles/cdk-keycodes.umd.js.map +1 -1
- package/bundles/cdk-layout.umd.js +30 -26
- package/bundles/cdk-layout.umd.js.map +1 -1
- package/bundles/cdk-layout.umd.min.js +7 -6
- package/bundles/cdk-layout.umd.min.js.map +1 -1
- package/bundles/cdk-observers.umd.js +34 -34
- package/bundles/cdk-observers.umd.js.map +1 -1
- package/bundles/cdk-observers.umd.min.js +2 -2
- package/bundles/cdk-observers.umd.min.js.map +1 -1
- package/bundles/cdk-overlay.umd.js +492 -435
- package/bundles/cdk-overlay.umd.js.map +1 -1
- package/bundles/cdk-overlay.umd.min.js +51 -11
- package/bundles/cdk-overlay.umd.min.js.map +1 -1
- package/bundles/cdk-platform.umd.js +38 -11
- package/bundles/cdk-platform.umd.js.map +1 -1
- package/bundles/cdk-platform.umd.min.js +5 -12
- package/bundles/cdk-platform.umd.min.js.map +1 -1
- package/bundles/cdk-portal.umd.js +385 -322
- package/bundles/cdk-portal.umd.js.map +1 -1
- package/bundles/cdk-portal.umd.min.js +3 -12
- package/bundles/cdk-portal.umd.min.js.map +1 -1
- package/bundles/cdk-scrolling.umd.js +503 -490
- package/bundles/cdk-scrolling.umd.js.map +1 -1
- package/bundles/cdk-scrolling.umd.min.js +20 -34
- package/bundles/cdk-scrolling.umd.min.js.map +1 -1
- package/bundles/cdk-stepper.umd.js +135 -136
- package/bundles/cdk-stepper.umd.js.map +1 -1
- package/bundles/cdk-stepper.umd.min.js +11 -2
- package/bundles/cdk-stepper.umd.min.js.map +1 -1
- package/bundles/cdk-table.umd.js +923 -653
- package/bundles/cdk-table.umd.js.map +1 -1
- package/bundles/cdk-table.umd.min.js +7 -22
- package/bundles/cdk-table.umd.min.js.map +1 -1
- package/bundles/cdk-testing-protractor.umd.js +310 -245
- package/bundles/cdk-testing-protractor.umd.js.map +1 -1
- package/bundles/cdk-testing-protractor.umd.min.js +2 -9
- package/bundles/cdk-testing-protractor.umd.min.js.map +1 -1
- package/bundles/cdk-testing-testbed.umd.js +341 -292
- package/bundles/cdk-testing-testbed.umd.js.map +1 -1
- package/bundles/cdk-testing-testbed.umd.min.js +6 -29
- package/bundles/cdk-testing-testbed.umd.min.js.map +1 -1
- package/bundles/cdk-testing.umd.js +342 -270
- package/bundles/cdk-testing.umd.js.map +1 -1
- package/bundles/cdk-testing.umd.min.js +3 -17
- package/bundles/cdk-testing.umd.min.js.map +1 -1
- package/bundles/cdk-text-field.umd.js +53 -53
- package/bundles/cdk-text-field.umd.js.map +1 -1
- package/bundles/cdk-text-field.umd.min.js +10 -2
- package/bundles/cdk-text-field.umd.min.js.map +1 -1
- package/bundles/cdk-tree.umd.js +481 -417
- package/bundles/cdk-tree.umd.js.map +1 -1
- package/bundles/cdk-tree.umd.min.js +28 -3
- package/bundles/cdk-tree.umd.min.js.map +1 -1
- package/bundles/cdk.umd.js +1 -1
- package/bundles/cdk.umd.js.map +1 -1
- package/bundles/cdk.umd.min.js +1 -1
- package/bundles/cdk.umd.min.js.map +1 -1
- package/collections/dispose-view-repeater-strategy.d.ts +22 -0
- package/collections/index.metadata.json +1 -1
- package/collections/public-api.d.ts +3 -0
- package/collections/recycle-view-repeater-strategy.d.ts +56 -0
- package/collections/view-repeater.d.ts +94 -0
- package/drag-drop/index.d.ts +1 -2
- package/drag-drop/index.metadata.json +1 -1
- package/drag-drop/public-api.d.ts +2 -1
- package/esm2015/a11y/aria-describer/aria-describer.js +3 -3
- package/esm2015/a11y/focus-monitor/focus-monitor.js +3 -3
- package/esm2015/a11y/focus-trap/focus-trap.js +5 -4
- package/esm2015/a11y/key-manager/list-key-manager.js +8 -6
- package/esm2015/clipboard/pending-copy.js +7 -6
- package/esm2015/collections/collection-viewer.js +1 -0
- package/esm2015/collections/dispose-view-repeater-strategy.js +48 -0
- package/esm2015/collections/public-api.js +4 -1
- package/esm2015/collections/recycle-view-repeater-strategy.js +128 -0
- package/esm2015/collections/selection-model.js +2 -2
- package/esm2015/collections/tree-adapter.js +1 -0
- package/esm2015/collections/view-repeater.js +16 -0
- package/esm2015/drag-drop/clone-node.js +9 -1
- package/esm2015/drag-drop/directives/drag-handle.js +1 -3
- package/esm2015/drag-drop/directives/drag.js +7 -5
- package/esm2015/drag-drop/directives/drop-list.js +3 -3
- package/esm2015/drag-drop/drag-events.js +1 -0
- package/esm2015/drag-drop/drag-ref.js +2 -2
- package/esm2015/drag-drop/index.js +1 -3
- package/esm2015/drag-drop/public-api.js +3 -2
- package/esm2015/layout/breakpoints-observer.js +9 -9
- package/esm2015/overlay/dispatchers/overlay-outside-click-dispatcher.js +11 -9
- package/esm2015/overlay/overlay-config.js +1 -5
- package/esm2015/overlay/overlay-directives.js +18 -2
- package/esm2015/overlay/overlay-ref.js +6 -8
- package/esm2015/overlay/overlay-reference.js +1 -0
- package/esm2015/overlay/overlay.js +4 -4
- package/esm2015/overlay/position/connected-position-strategy.js +2 -9
- package/esm2015/overlay/position/flexible-connected-position-strategy.js +19 -16
- package/esm2015/overlay/position/position-strategy.js +1 -0
- package/esm2015/overlay/scroll/close-scroll-strategy.js +2 -2
- package/esm2015/overlay/scroll/reposition-scroll-strategy.js +2 -2
- package/esm2015/platform/features/scrolling.js +29 -2
- package/esm2015/portal/dom-portal-outlet.js +7 -4
- package/esm2015/portal/portal-directives.js +3 -3
- package/esm2015/portal/portal-injector.js +3 -1
- package/esm2015/portal/portal.js +25 -19
- package/esm2015/scrolling/fixed-size-virtual-scroll.js +2 -2
- package/esm2015/scrolling/scrolling-module.js +4 -1
- package/esm2015/scrolling/virtual-for-of.js +67 -92
- package/esm2015/scrolling/virtual-scroll-repeater.js +1 -0
- package/esm2015/scrolling/virtual-scroll-viewport.js +5 -5
- package/esm2015/stepper/stepper.js +19 -17
- package/esm2015/table/cell.js +34 -14
- package/esm2015/table/coalesced-style-scheduler.js +87 -0
- package/esm2015/table/public-api.js +2 -1
- package/esm2015/table/sticky-styler.js +79 -45
- package/esm2015/table/table-module.js +4 -2
- package/esm2015/table/table.js +70 -44
- package/esm2015/table/text-column.js +9 -5
- package/esm2015/testing/element-dimensions.js +1 -0
- package/esm2015/testing/protractor/protractor-element.js +6 -3
- package/esm2015/testing/public-api.js +2 -1
- package/esm2015/testing/test-element.js +1 -1
- package/esm2015/testing/testbed/task-state-zone-interceptor.js +2 -2
- package/esm2015/testing/testbed/unit-test-element.js +26 -21
- package/esm2015/testing/text-filtering.js +23 -0
- package/esm2015/text-field/autofill.js +3 -3
- package/esm2015/tree/control/tree-control.js +1 -0
- package/esm2015/tree/nested-node.js +2 -2
- package/esm2015/tree/padding.js +34 -20
- package/esm2015/tree/tree.js +14 -27
- package/esm2015/version.js +1 -1
- package/fesm2015/a11y.js +15 -12
- package/fesm2015/a11y.js.map +1 -1
- package/fesm2015/cdk.js +1 -1
- package/fesm2015/cdk.js.map +1 -1
- package/fesm2015/clipboard.js +6 -5
- package/fesm2015/clipboard.js.map +1 -1
- package/fesm2015/collections.js +194 -3
- package/fesm2015/collections.js.map +1 -1
- package/fesm2015/drag-drop.js +32 -23
- package/fesm2015/drag-drop.js.map +1 -1
- package/fesm2015/layout.js +8 -8
- package/fesm2015/layout.js.map +1 -1
- package/fesm2015/overlay.js +55 -48
- package/fesm2015/overlay.js.map +1 -1
- package/fesm2015/platform.js +28 -1
- package/fesm2015/platform.js.map +1 -1
- package/fesm2015/portal.js +34 -23
- package/fesm2015/portal.js.map +1 -1
- package/fesm2015/scrolling.js +72 -95
- package/fesm2015/scrolling.js.map +1 -1
- package/fesm2015/stepper.js +19 -17
- package/fesm2015/stepper.js.map +1 -1
- package/fesm2015/table.js +274 -105
- package/fesm2015/table.js.map +1 -1
- package/fesm2015/testing/protractor.js +5 -2
- package/fesm2015/testing/protractor.js.map +1 -1
- package/fesm2015/testing/testbed.js +26 -21
- package/fesm2015/testing/testbed.js.map +1 -1
- package/fesm2015/testing.js +24 -1
- package/fesm2015/testing.js.map +1 -1
- package/fesm2015/text-field.js +2 -2
- package/fesm2015/text-field.js.map +1 -1
- package/fesm2015/tree.js +46 -45
- package/fesm2015/tree.js.map +1 -1
- package/layout/breakpoints-observer.d.ts +3 -3
- package/overlay/index.metadata.json +1 -1
- package/overlay/overlay-config.d.ts +0 -4
- package/overlay/overlay-directives.d.ts +1 -0
- package/overlay/position/connected-position-strategy.d.ts +1 -3
- package/package.json +1 -1
- package/platform/index.metadata.json +1 -1
- package/portal/index.metadata.json +1 -1
- package/portal/portal-injector.d.ts +2 -0
- package/schematics/index.js +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/data/index.js +1 -1
- package/schematics/ng-update/public-api.js +1 -1
- package/schematics/update-tool/public-api.js +1 -1
- package/schematics/utils/index.js +1 -1
- package/scrolling/index.metadata.json +1 -1
- package/scrolling/scrolling-module.d.ts +3 -0
- package/scrolling/virtual-for-of.d.ts +11 -19
- package/stepper/index.metadata.json +1 -1
- package/stepper/stepper.d.ts +7 -10
- package/table/cell.d.ts +21 -1
- package/table/coalesced-style-scheduler.d.ts +41 -0
- package/table/index.metadata.json +1 -1
- package/table/public-api.d.ts +1 -0
- package/table/sticky-styler.d.ts +7 -1
- package/table/table.d.ts +14 -8
- package/testing/protractor/protractor-element.d.ts +2 -2
- package/testing/public-api.d.ts +1 -0
- package/testing/test-element.d.ts +9 -2
- package/testing/testbed/unit-test-element.d.ts +9 -2
- package/testing/text-filtering.d.ts +13 -0
- package/tree/index.metadata.json +1 -1
- package/tree/padding.d.ts +14 -0
- package/tree/tree.d.ts +2 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["src/cdk/cdk-stepper.umd.js"],"names":["global","factory","exports","module","require","define","amd","self","ng","cdk","stepper","a11y","bidi","coercion","keycodes","common","core","rxjs","operators","this","CdkStepHeader","_elementRef","prototype","focus","nativeElement","decorators","type","Directive","args","selector","host","role","ctorParameters","ElementRef","CdkStepLabel","template","TemplateRef","nextId","StepperSelectionEvent","STEP_STATE","NUMBER","EDIT","DONE","ERROR","STEPPER_GLOBAL_OPTIONS","InjectionToken","MAT_STEPPER_GLOBAL_OPTIONS","CdkStep","_stepper","stepperOptions","interacted","_editable","_optional","_completedOverride","_customError","_stepperOptions","_displayDefaultIndicatorType","displayDefaultIndicatorType","_showError","showError","Object","defineProperty","get","set","value","coerceBooleanProperty","enumerable","configurable","_getDefaultCompleted","stepControl","valid","_getDefaultError","invalid","select","selected","reset","ngOnChanges","_stateChanged","Component","exportAs","encapsulation","ViewEncapsulation","None","changeDetection","ChangeDetectionStrategy","OnPush","CdkStepper","Inject","forwardRef","undefined","Optional","propDecorators","stepLabel","ContentChild","content","ViewChild","static","Input","label","errorMessage","ariaLabel","ariaLabelledby","state","editable","optional","completed","hasError","_dir","_changeDetectorRef","_document","_destroyed","Subject","_linear","_selectedIndex","selectionChange","EventEmitter","_orientation","_groupId","_steps","index","newIndex","coerceNumberProperty","steps","length","Error","_anyControlsInvalidOrPending","toArray","_updateSelectedItemIndex","selectedIndex","step","indexOf","ngAfterViewInit","_this","_keyManager","FocusKeyManager","_stepHeader","withWrap","withVerticalOrientation","change","of","pipe","startWith","_layoutDirection","takeUntil","subscribe","direction","withHorizontalOrientation","updateActiveItem","changes","Math","max","ngOnDestroy","next","complete","min","previous","forEach","_getStepLabelId","i","_getStepContentId","markForCheck","_getAnimationDirection","position","_getIndicatorType","isCurrentStep","_isCurrentStep","_getDefaultIndicatorLogic","_getGuidelineLogic","_getFocusIndex","activeItemIndex","stepsArray","emit","previouslySelectedIndex","selectedStep","previouslySelectedStep","_containsFocus","setActiveItem","_onKeydown","event","hasModifier","hasModifierKey","keyCode","manager","SPACE","ENTER","HOME","setFirstItemActive","preventDefault","END","setLastItemActive","onKeydown","slice","some","control","pending","stepperElement","focusedElement","activeElement","contains","Directionality","ChangeDetectorRef","DOCUMENT","ContentChildren","descendants","linear","Output","CdkStepperNext","_handleClick","[type]","HostListener","CdkStepperPrevious","CdkStepperModule","NgModule","imports","BidiModule","declarations"],"mappings":"CAAC,SAAUA,EAAQC,GACI,iBAAZC,SAA0C,oBAAXC,OAAyBF,EAAQC,QAASE,QAAQ,qBAAsBA,QAAQ,qBAAsBA,QAAQ,yBAA0BA,QAAQ,yBAA0BA,QAAQ,mBAAoBA,QAAQ,iBAAkBA,QAAQ,QAASA,QAAQ,mBAC7Q,mBAAXC,QAAyBA,OAAOC,IAAMD,OAAO,uBAAwB,CAAC,UAAW,oBAAqB,oBAAqB,wBAAyB,wBAAyB,kBAAmB,gBAAiB,OAAQ,kBAAmBJ,GACz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A,EACvBhC,EAAQoF,WAAaA,EACrBpF,EAAQiN,iBAAmBA,EAC3BjN,EAAQ4M,eAAiBA,EACzB5M,EAAQgN,mBAAqBA,EAC7BhN,EAAQ4C,2BAA6BA,EACrC5C,EAAQ0C,uBAAyBA,EACjC1C,EAAQqC,WAAaA,EACrBrC,EAAQoC,sBAAwBA,EAEhCsB,OAAOC,eAAe3D,EAAS,aAAc,CAAE8D,OAAO","sourcesContent":["(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/a11y'), require('@angular/cdk/bidi'), require('@angular/cdk/coercion'), require('@angular/cdk/keycodes'), require('@angular/common'), require('@angular/core'), require('rxjs'), require('rxjs/operators')) :\n typeof define === 'function' && define.amd ? define('@angular/cdk/stepper', ['exports', '@angular/cdk/a11y', '@angular/cdk/bidi', '@angular/cdk/coercion', '@angular/cdk/keycodes', '@angular/common', '@angular/core', 'rxjs', 'rxjs/operators'], factory) :\n (global = global || self, factory((global.ng = global.ng || {}, global.ng.cdk = global.ng.cdk || {}, global.ng.cdk.stepper = {}), global.ng.cdk.a11y, global.ng.cdk.bidi, global.ng.cdk.coercion, global.ng.cdk.keycodes, global.ng.common, global.ng.core, global.rxjs, global.rxjs.operators));\n}(this, (function (exports, a11y, bidi, coercion, keycodes, common, core, rxjs, operators) { 'use strict';\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var CdkStepHeader = /** @class */ (function () {\n function CdkStepHeader(_elementRef) {\n this._elementRef = _elementRef;\n }\n /** Focuses the step header. */\n CdkStepHeader.prototype.focus = function () {\n this._elementRef.nativeElement.focus();\n };\n CdkStepHeader.decorators = [\n { type: core.Directive, args: [{\n selector: '[cdkStepHeader]',\n host: {\n 'role': 'tab',\n },\n },] }\n ];\n CdkStepHeader.ctorParameters = function () { return [\n { type: core.ElementRef }\n ]; };\n return CdkStepHeader;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var CdkStepLabel = /** @class */ (function () {\n function CdkStepLabel(/** @docs-private */ template) {\n this.template = template;\n }\n CdkStepLabel.decorators = [\n { type: core.Directive, args: [{\n selector: '[cdkStepLabel]',\n },] }\n ];\n CdkStepLabel.ctorParameters = function () { return [\n { type: core.TemplateRef }\n ]; };\n return CdkStepLabel;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** Used to generate unique ID for each stepper component. */\n var nextId = 0;\n /** Change event emitted on selection changes. */\n var StepperSelectionEvent = /** @class */ (function () {\n function StepperSelectionEvent() {\n }\n return StepperSelectionEvent;\n }());\n /** Enum to represent the different states of the steps. */\n var STEP_STATE = {\n NUMBER: 'number',\n EDIT: 'edit',\n DONE: 'done',\n ERROR: 'error'\n };\n /** InjectionToken that can be used to specify the global stepper options. */\n var STEPPER_GLOBAL_OPTIONS = new core.InjectionToken('STEPPER_GLOBAL_OPTIONS');\n /**\n * InjectionToken that can be used to specify the global stepper options.\n * @deprecated Use `STEPPER_GLOBAL_OPTIONS` instead.\n * @breaking-change 8.0.0.\n */\n var MAT_STEPPER_GLOBAL_OPTIONS = STEPPER_GLOBAL_OPTIONS;\n var CdkStep = /** @class */ (function () {\n /** @breaking-change 8.0.0 remove the `?` after `stepperOptions` */\n function CdkStep(_stepper, stepperOptions) {\n this._stepper = _stepper;\n /** Whether user has seen the expanded step content or not. */\n this.interacted = false;\n this._editable = true;\n this._optional = false;\n this._completedOverride = null;\n this._customError = null;\n this._stepperOptions = stepperOptions ? stepperOptions : {};\n this._displayDefaultIndicatorType = this._stepperOptions.displayDefaultIndicatorType !== false;\n this._showError = !!this._stepperOptions.showError;\n }\n Object.defineProperty(CdkStep.prototype, \"editable\", {\n /** Whether the user can return to this step once it has been marked as completed. */\n get: function () {\n return this._editable;\n },\n set: function (value) {\n this._editable = coercion.coerceBooleanProperty(value);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(CdkStep.prototype, \"optional\", {\n /** Whether the completion of step is optional. */\n get: function () {\n return this._optional;\n },\n set: function (value) {\n this._optional = coercion.coerceBooleanProperty(value);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(CdkStep.prototype, \"completed\", {\n /** Whether step is marked as completed. */\n get: function () {\n return this._completedOverride == null ? this._getDefaultCompleted() : this._completedOverride;\n },\n set: function (value) {\n this._completedOverride = coercion.coerceBooleanProperty(value);\n },\n enumerable: false,\n configurable: true\n });\n CdkStep.prototype._getDefaultCompleted = function () {\n return this.stepControl ? this.stepControl.valid && this.interacted : this.interacted;\n };\n Object.defineProperty(CdkStep.prototype, \"hasError\", {\n /** Whether step has an error. */\n get: function () {\n return this._customError == null ? this._getDefaultError() : this._customError;\n },\n set: function (value) {\n this._customError = coercion.coerceBooleanProperty(value);\n },\n enumerable: false,\n configurable: true\n });\n CdkStep.prototype._getDefaultError = function () {\n return this.stepControl && this.stepControl.invalid && this.interacted;\n };\n /** Selects this step component. */\n CdkStep.prototype.select = function () {\n this._stepper.selected = this;\n };\n /** Resets the step to its initial state. Note that this includes resetting form data. */\n CdkStep.prototype.reset = function () {\n this.interacted = false;\n if (this._completedOverride != null) {\n this._completedOverride = false;\n }\n if (this._customError != null) {\n this._customError = false;\n }\n if (this.stepControl) {\n this.stepControl.reset();\n }\n };\n CdkStep.prototype.ngOnChanges = function () {\n // Since basically all inputs of the MatStep get proxied through the view down to the\n // underlying MatStepHeader, we have to make sure that change detection runs correctly.\n this._stepper._stateChanged();\n };\n CdkStep.decorators = [\n { type: core.Component, args: [{\n selector: 'cdk-step',\n exportAs: 'cdkStep',\n template: '<ng-template><ng-content></ng-content></ng-template>',\n encapsulation: core.ViewEncapsulation.None,\n changeDetection: core.ChangeDetectionStrategy.OnPush\n },] }\n ];\n CdkStep.ctorParameters = function () { return [\n { type: CdkStepper, decorators: [{ type: core.Inject, args: [core.forwardRef(function () { return CdkStepper; }),] }] },\n { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [STEPPER_GLOBAL_OPTIONS,] }] }\n ]; };\n CdkStep.propDecorators = {\n stepLabel: [{ type: core.ContentChild, args: [CdkStepLabel,] }],\n content: [{ type: core.ViewChild, args: [core.TemplateRef, { static: true },] }],\n stepControl: [{ type: core.Input }],\n label: [{ type: core.Input }],\n errorMessage: [{ type: core.Input }],\n ariaLabel: [{ type: core.Input, args: ['aria-label',] }],\n ariaLabelledby: [{ type: core.Input, args: ['aria-labelledby',] }],\n state: [{ type: core.Input }],\n editable: [{ type: core.Input }],\n optional: [{ type: core.Input }],\n completed: [{ type: core.Input }],\n hasError: [{ type: core.Input }]\n };\n return CdkStep;\n }());\n var CdkStepper = /** @class */ (function () {\n function CdkStepper(_dir, _changeDetectorRef, \n // @breaking-change 8.0.0 `_elementRef` and `_document` parameters to become required.\n _elementRef, _document) {\n this._dir = _dir;\n this._changeDetectorRef = _changeDetectorRef;\n this._elementRef = _elementRef;\n /** Emits when the component is destroyed. */\n this._destroyed = new rxjs.Subject();\n this._linear = false;\n this._selectedIndex = 0;\n /** Event emitted when the selected step has changed. */\n this.selectionChange = new core.EventEmitter();\n this._orientation = 'horizontal';\n this._groupId = nextId++;\n this._document = _document;\n }\n Object.defineProperty(CdkStepper.prototype, \"steps\", {\n /** The list of step components that the stepper is holding. */\n get: function () {\n return this._steps;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(CdkStepper.prototype, \"linear\", {\n /** Whether the validity of previous steps should be checked or not. */\n get: function () {\n return this._linear;\n },\n set: function (value) {\n this._linear = coercion.coerceBooleanProperty(value);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(CdkStepper.prototype, \"selectedIndex\", {\n /** The index of the selected step. */\n get: function () {\n return this._selectedIndex;\n },\n set: function (index) {\n var newIndex = coercion.coerceNumberProperty(index);\n if (this.steps) {\n // Ensure that the index can't be out of bounds.\n if (newIndex < 0 || newIndex > this.steps.length - 1) {\n throw Error('cdkStepper: Cannot assign out-of-bounds value to `selectedIndex`.');\n }\n if (this._selectedIndex != newIndex && !this._anyControlsInvalidOrPending(newIndex) &&\n (newIndex >= this._selectedIndex || this.steps.toArray()[newIndex].editable)) {\n this._updateSelectedItemIndex(index);\n }\n }\n else {\n this._selectedIndex = newIndex;\n }\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(CdkStepper.prototype, \"selected\", {\n /** The step that is selected. */\n get: function () {\n // @breaking-change 8.0.0 Change return type to `CdkStep | undefined`.\n return this.steps ? this.steps.toArray()[this.selectedIndex] : undefined;\n },\n set: function (step) {\n this.selectedIndex = this.steps ? this.steps.toArray().indexOf(step) : -1;\n },\n enumerable: false,\n configurable: true\n });\n CdkStepper.prototype.ngAfterViewInit = function () {\n var _this = this;\n // Note that while the step headers are content children by default, any components that\n // extend this one might have them as view children. We initialize the keyboard handling in\n // AfterViewInit so we're guaranteed for both view and content children to be defined.\n this._keyManager = new a11y.FocusKeyManager(this._stepHeader)\n .withWrap()\n .withVerticalOrientation(this._orientation === 'vertical');\n (this._dir ? this._dir.change : rxjs.of())\n .pipe(operators.startWith(this._layoutDirection()), operators.takeUntil(this._destroyed))\n .subscribe(function (direction) { return _this._keyManager.withHorizontalOrientation(direction); });\n this._keyManager.updateActiveItem(this._selectedIndex);\n this.steps.changes.pipe(operators.takeUntil(this._destroyed)).subscribe(function () {\n if (!_this.selected) {\n _this._selectedIndex = Math.max(_this._selectedIndex - 1, 0);\n }\n });\n };\n CdkStepper.prototype.ngOnDestroy = function () {\n this._destroyed.next();\n this._destroyed.complete();\n };\n /** Selects and focuses the next step in list. */\n CdkStepper.prototype.next = function () {\n this.selectedIndex = Math.min(this._selectedIndex + 1, this.steps.length - 1);\n };\n /** Selects and focuses the previous step in list. */\n CdkStepper.prototype.previous = function () {\n this.selectedIndex = Math.max(this._selectedIndex - 1, 0);\n };\n /** Resets the stepper to its initial state. Note that this includes clearing form data. */\n CdkStepper.prototype.reset = function () {\n this._updateSelectedItemIndex(0);\n this.steps.forEach(function (step) { return step.reset(); });\n this._stateChanged();\n };\n /** Returns a unique id for each step label element. */\n CdkStepper.prototype._getStepLabelId = function (i) {\n return \"cdk-step-label-\" + this._groupId + \"-\" + i;\n };\n /** Returns unique id for each step content element. */\n CdkStepper.prototype._getStepContentId = function (i) {\n return \"cdk-step-content-\" + this._groupId + \"-\" + i;\n };\n /** Marks the component to be change detected. */\n CdkStepper.prototype._stateChanged = function () {\n this._changeDetectorRef.markForCheck();\n };\n /** Returns position state of the step with the given index. */\n CdkStepper.prototype._getAnimationDirection = function (index) {\n var position = index - this._selectedIndex;\n if (position < 0) {\n return this._layoutDirection() === 'rtl' ? 'next' : 'previous';\n }\n else if (position > 0) {\n return this._layoutDirection() === 'rtl' ? 'previous' : 'next';\n }\n return 'current';\n };\n /** Returns the type of icon to be displayed. */\n CdkStepper.prototype._getIndicatorType = function (index, state) {\n if (state === void 0) { state = STEP_STATE.NUMBER; }\n var step = this.steps.toArray()[index];\n var isCurrentStep = this._isCurrentStep(index);\n return step._displayDefaultIndicatorType ? this._getDefaultIndicatorLogic(step, isCurrentStep) :\n this._getGuidelineLogic(step, isCurrentStep, state);\n };\n CdkStepper.prototype._getDefaultIndicatorLogic = function (step, isCurrentStep) {\n if (step._showError && step.hasError && !isCurrentStep) {\n return STEP_STATE.ERROR;\n }\n else if (!step.completed || isCurrentStep) {\n return STEP_STATE.NUMBER;\n }\n else {\n return step.editable ? STEP_STATE.EDIT : STEP_STATE.DONE;\n }\n };\n CdkStepper.prototype._getGuidelineLogic = function (step, isCurrentStep, state) {\n if (state === void 0) { state = STEP_STATE.NUMBER; }\n if (step._showError && step.hasError && !isCurrentStep) {\n return STEP_STATE.ERROR;\n }\n else if (step.completed && !isCurrentStep) {\n return STEP_STATE.DONE;\n }\n else if (step.completed && isCurrentStep) {\n return state;\n }\n else if (step.editable && isCurrentStep) {\n return STEP_STATE.EDIT;\n }\n else {\n return state;\n }\n };\n CdkStepper.prototype._isCurrentStep = function (index) {\n return this._selectedIndex === index;\n };\n /** Returns the index of the currently-focused step header. */\n CdkStepper.prototype._getFocusIndex = function () {\n return this._keyManager ? this._keyManager.activeItemIndex : this._selectedIndex;\n };\n CdkStepper.prototype._updateSelectedItemIndex = function (newIndex) {\n var stepsArray = this.steps.toArray();\n this.selectionChange.emit({\n selectedIndex: newIndex,\n previouslySelectedIndex: this._selectedIndex,\n selectedStep: stepsArray[newIndex],\n previouslySelectedStep: stepsArray[this._selectedIndex],\n });\n // If focus is inside the stepper, move it to the next header, otherwise it may become\n // lost when the active step content is hidden. We can't be more granular with the check\n // (e.g. checking whether focus is inside the active step), because we don't have a\n // reference to the elements that are rendering out the content.\n this._containsFocus() ? this._keyManager.setActiveItem(newIndex) :\n this._keyManager.updateActiveItem(newIndex);\n this._selectedIndex = newIndex;\n this._stateChanged();\n };\n CdkStepper.prototype._onKeydown = function (event) {\n var hasModifier = keycodes.hasModifierKey(event);\n var keyCode = event.keyCode;\n var manager = this._keyManager;\n if (manager.activeItemIndex != null && !hasModifier &&\n (keyCode === keycodes.SPACE || keyCode === keycodes.ENTER)) {\n this.selectedIndex = manager.activeItemIndex;\n event.preventDefault();\n }\n else if (keyCode === keycodes.HOME) {\n manager.setFirstItemActive();\n event.preventDefault();\n }\n else if (keyCode === keycodes.END) {\n manager.setLastItemActive();\n event.preventDefault();\n }\n else {\n manager.onKeydown(event);\n }\n };\n CdkStepper.prototype._anyControlsInvalidOrPending = function (index) {\n var steps = this.steps.toArray();\n steps[this._selectedIndex].interacted = true;\n if (this._linear && index >= 0) {\n return steps.slice(0, index).some(function (step) {\n var control = step.stepControl;\n var isIncomplete = control ? (control.invalid || control.pending || !step.interacted) : !step.completed;\n return isIncomplete && !step.optional && !step._completedOverride;\n });\n }\n return false;\n };\n CdkStepper.prototype._layoutDirection = function () {\n return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';\n };\n /** Checks whether the stepper contains the focused element. */\n CdkStepper.prototype._containsFocus = function () {\n if (!this._document || !this._elementRef) {\n return false;\n }\n var stepperElement = this._elementRef.nativeElement;\n var focusedElement = this._document.activeElement;\n return stepperElement === focusedElement || stepperElement.contains(focusedElement);\n };\n CdkStepper.decorators = [\n { type: core.Directive, args: [{\n selector: '[cdkStepper]',\n exportAs: 'cdkStepper',\n },] }\n ];\n CdkStepper.ctorParameters = function () { return [\n { type: bidi.Directionality, decorators: [{ type: core.Optional }] },\n { type: core.ChangeDetectorRef },\n { type: core.ElementRef },\n { type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] }\n ]; };\n CdkStepper.propDecorators = {\n _steps: [{ type: core.ContentChildren, args: [CdkStep, { descendants: true },] }],\n _stepHeader: [{ type: core.ContentChildren, args: [CdkStepHeader, { descendants: true },] }],\n linear: [{ type: core.Input }],\n selectedIndex: [{ type: core.Input }],\n selected: [{ type: core.Input }],\n selectionChange: [{ type: core.Output }]\n };\n return CdkStepper;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** Button that moves to the next step in a stepper workflow. */\n var CdkStepperNext = /** @class */ (function () {\n function CdkStepperNext(_stepper) {\n this._stepper = _stepper;\n /** Type of the next button. Defaults to \"submit\" if not specified. */\n this.type = 'submit';\n }\n // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.\n // In Ivy the `host` bindings will be merged when this class is extended, whereas in\n // ViewEngine they're overwritten.\n // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.\n // tslint:disable-next-line:no-host-decorator-in-concrete\n CdkStepperNext.prototype._handleClick = function () {\n this._stepper.next();\n };\n CdkStepperNext.decorators = [\n { type: core.Directive, args: [{\n selector: 'button[cdkStepperNext]',\n host: {\n '[type]': 'type',\n }\n },] }\n ];\n CdkStepperNext.ctorParameters = function () { return [\n { type: CdkStepper }\n ]; };\n CdkStepperNext.propDecorators = {\n type: [{ type: core.Input }],\n _handleClick: [{ type: core.HostListener, args: ['click',] }]\n };\n return CdkStepperNext;\n }());\n /** Button that moves to the previous step in a stepper workflow. */\n var CdkStepperPrevious = /** @class */ (function () {\n function CdkStepperPrevious(_stepper) {\n this._stepper = _stepper;\n /** Type of the previous button. Defaults to \"button\" if not specified. */\n this.type = 'button';\n }\n // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.\n // In Ivy the `host` bindings will be merged when this class is extended, whereas in\n // ViewEngine they're overwritten.\n // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.\n // tslint:disable-next-line:no-host-decorator-in-concrete\n CdkStepperPrevious.prototype._handleClick = function () {\n this._stepper.previous();\n };\n CdkStepperPrevious.decorators = [\n { type: core.Directive, args: [{\n selector: 'button[cdkStepperPrevious]',\n host: {\n '[type]': 'type',\n }\n },] }\n ];\n CdkStepperPrevious.ctorParameters = function () { return [\n { type: CdkStepper }\n ]; };\n CdkStepperPrevious.propDecorators = {\n type: [{ type: core.Input }],\n _handleClick: [{ type: core.HostListener, args: ['click',] }]\n };\n return CdkStepperPrevious;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var CdkStepperModule = /** @class */ (function () {\n function CdkStepperModule() {\n }\n CdkStepperModule.decorators = [\n { type: core.NgModule, args: [{\n imports: [bidi.BidiModule],\n exports: [\n CdkStep,\n CdkStepper,\n CdkStepHeader,\n CdkStepLabel,\n CdkStepperNext,\n CdkStepperPrevious,\n ],\n declarations: [\n CdkStep,\n CdkStepper,\n CdkStepHeader,\n CdkStepLabel,\n CdkStepperNext,\n CdkStepperPrevious,\n ]\n },] }\n ];\n return CdkStepperModule;\n }());\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * Generated bundle index. Do not edit.\n */\n\n exports.CdkStep = CdkStep;\n exports.CdkStepHeader = CdkStepHeader;\n exports.CdkStepLabel = CdkStepLabel;\n exports.CdkStepper = CdkStepper;\n exports.CdkStepperModule = CdkStepperModule;\n exports.CdkStepperNext = CdkStepperNext;\n exports.CdkStepperPrevious = CdkStepperPrevious;\n exports.MAT_STEPPER_GLOBAL_OPTIONS = MAT_STEPPER_GLOBAL_OPTIONS;\n exports.STEPPER_GLOBAL_OPTIONS = STEPPER_GLOBAL_OPTIONS;\n exports.STEP_STATE = STEP_STATE;\n exports.StepperSelectionEvent = StepperSelectionEvent;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=cdk-stepper.umd.js.map\n"]}
|
|
1
|
+
{"version":3,"sources":["src/cdk/cdk-stepper.umd.js"],"names":["global","factory","exports","module","require","define","amd","self","ng","cdk","stepper","a11y","bidi","coercion","keycodes","common","core","rxjs","operators","this","CdkStepLabel","CdkStepHeader","_elementRef","prototype","focus","nativeElement","decorators","type","Directive","args","selector","host","role","ctorParameters","ElementRef","template","TemplateRef","nextId","StepperSelectionEvent","STEP_STATE","NUMBER","EDIT","DONE","ERROR","STEPPER_GLOBAL_OPTIONS","InjectionToken","MAT_STEPPER_GLOBAL_OPTIONS","CdkStep","_stepper","stepperOptions","interacted","_editable","_optional","_completedOverride","_customError","_stepperOptions","_displayDefaultIndicatorType","displayDefaultIndicatorType","_showError","showError","Object","defineProperty","get","set","value","coerceBooleanProperty","enumerable","configurable","_getDefaultCompleted","stepControl","valid","_getDefaultError","invalid","select","selected","reset","ngOnChanges","_stateChanged","Component","exportAs","encapsulation","ViewEncapsulation","None","changeDetection","ChangeDetectionStrategy","OnPush","CdkStepper","Inject","forwardRef","undefined","Optional","propDecorators","stepLabel","ContentChild","content","ViewChild","static","Input","label","errorMessage","ariaLabel","ariaLabelledby","state","editable","optional","completed","hasError","_dir","_changeDetectorRef","_document","_destroyed","Subject","steps","QueryList","_linear","_selectedIndex","selectionChange","EventEmitter","_orientation","_groupId","index","newIndex","coerceNumberProperty","_steps","_anyControlsInvalidOrPending","toArray","_updateSelectedItemIndex","selectedIndex","step","indexOf","ngAfterContentInit","_this","changes","pipe","startWith","takeUntil","subscribe","filter","notifyOnChanges","ngAfterViewInit","_keyManager","FocusKeyManager","_stepHeader","withWrap","withHomeAndEnd","withVerticalOrientation","change","of","_layoutDirection","direction","withHorizontalOrientation","updateActiveItem","Math","max","ngOnDestroy","destroy","next","complete","min","length","previous","forEach","_getStepLabelId","i","_getStepContentId","markForCheck","_getAnimationDirection","position","_getIndicatorType","isCurrentStep","_isCurrentStep","_getDefaultIndicatorLogic","_getGuidelineLogic","_getFocusIndex","activeItemIndex","stepsArray","emit","previouslySelectedIndex","selectedStep","previouslySelectedStep","_containsFocus","setActiveItem","_onKeydown","event","hasModifier","hasModifierKey","keyCode","manager","SPACE","ENTER","onKeydown","preventDefault","slice","some","control","pending","stepperElement","focusedElement","activeElement","contains","Directionality","ChangeDetectorRef","DOCUMENT","ContentChildren","descendants","linear","Output","CdkStepperNext","_handleClick","[type]","HostListener","CdkStepperModule","CdkStepperPrevious","NgModule","imports","BidiModule","declarations"],"mappings":"CAAC,SAAUA,EAAQC,GACI,iBAAZC,SAA0C,oBAAXC,OAAyBF,EAAQC,QAASE,QAAQ,qBAAsBA,QAAQ,qBAAsBA,QAAQ,yBAA0BA,QAAQ,yBAA0BA,QAAQ,mBAAoBA,QAAQ,iBAAkBA,QAAQ,QAASA,QAAQ,mBAC7Q,mBAAXC,QAAyBA,OAAOC,IAAMD,OAAO,uBAAwB,CAAC,UAAW,oBAAqB,oBAAqB,wBAAyB,wBAAyB,kBAAmB,gBAAiB,OAAQ,kBAAmBJ,GACzNA,IAAzBD,EAASA,GAAUO,MAAsBC,GAAKR,EAAOQ,IAAM,GAAIR,EAAOQ,GAAGC,IAAMT,EAAOQ,GAAGC,KAAO,GAAIT,EAAOQ,GAAGC,IAAIC,QAAU,IAAKV,EAAO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AAaA,EACrBrC,EAAQoC,sBAAwBA,EAEhCsB,OAAOC,eAAe3D,EAAS,aAAc,CAAE8D,OAAO","sourcesContent":["(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/a11y'), require('@angular/cdk/bidi'), require('@angular/cdk/coercion'), require('@angular/cdk/keycodes'), require('@angular/common'), require('@angular/core'), require('rxjs'), require('rxjs/operators')) :\n typeof define === 'function' && define.amd ? define('@angular/cdk/stepper', ['exports', '@angular/cdk/a11y', '@angular/cdk/bidi', '@angular/cdk/coercion', '@angular/cdk/keycodes', '@angular/common', '@angular/core', 'rxjs', 'rxjs/operators'], factory) :\n (global = global || self, factory((global.ng = global.ng || {}, global.ng.cdk = global.ng.cdk || {}, global.ng.cdk.stepper = {}), global.ng.cdk.a11y, global.ng.cdk.bidi, global.ng.cdk.coercion, global.ng.cdk.keycodes, global.ng.common, global.ng.core, global.rxjs, global.rxjs.operators));\n}(this, (function (exports, a11y, bidi, coercion, keycodes, common, core, rxjs, operators) { 'use strict';\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var CdkStepHeader = /** @class */ (function () {\n function CdkStepHeader(_elementRef) {\n this._elementRef = _elementRef;\n }\n /** Focuses the step header. */\n CdkStepHeader.prototype.focus = function () {\n this._elementRef.nativeElement.focus();\n };\n return CdkStepHeader;\n }());\n CdkStepHeader.decorators = [\n { type: core.Directive, args: [{\n selector: '[cdkStepHeader]',\n host: {\n 'role': 'tab',\n },\n },] }\n ];\n CdkStepHeader.ctorParameters = function () { return [\n { type: core.ElementRef }\n ]; };\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var CdkStepLabel = /** @class */ (function () {\n function CdkStepLabel(/** @docs-private */ template) {\n this.template = template;\n }\n return CdkStepLabel;\n }());\n CdkStepLabel.decorators = [\n { type: core.Directive, args: [{\n selector: '[cdkStepLabel]',\n },] }\n ];\n CdkStepLabel.ctorParameters = function () { return [\n { type: core.TemplateRef }\n ]; };\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** Used to generate unique ID for each stepper component. */\n var nextId = 0;\n /** Change event emitted on selection changes. */\n var StepperSelectionEvent = /** @class */ (function () {\n function StepperSelectionEvent() {\n }\n return StepperSelectionEvent;\n }());\n /** Enum to represent the different states of the steps. */\n var STEP_STATE = {\n NUMBER: 'number',\n EDIT: 'edit',\n DONE: 'done',\n ERROR: 'error'\n };\n /** InjectionToken that can be used to specify the global stepper options. */\n var STEPPER_GLOBAL_OPTIONS = new core.InjectionToken('STEPPER_GLOBAL_OPTIONS');\n /**\n * InjectionToken that can be used to specify the global stepper options.\n * @deprecated Use `STEPPER_GLOBAL_OPTIONS` instead.\n * @breaking-change 8.0.0.\n */\n var MAT_STEPPER_GLOBAL_OPTIONS = STEPPER_GLOBAL_OPTIONS;\n var CdkStep = /** @class */ (function () {\n /** @breaking-change 8.0.0 remove the `?` after `stepperOptions` */\n function CdkStep(_stepper, stepperOptions) {\n this._stepper = _stepper;\n /** Whether user has seen the expanded step content or not. */\n this.interacted = false;\n this._editable = true;\n this._optional = false;\n this._completedOverride = null;\n this._customError = null;\n this._stepperOptions = stepperOptions ? stepperOptions : {};\n this._displayDefaultIndicatorType = this._stepperOptions.displayDefaultIndicatorType !== false;\n this._showError = !!this._stepperOptions.showError;\n }\n Object.defineProperty(CdkStep.prototype, \"editable\", {\n /** Whether the user can return to this step once it has been marked as completed. */\n get: function () {\n return this._editable;\n },\n set: function (value) {\n this._editable = coercion.coerceBooleanProperty(value);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(CdkStep.prototype, \"optional\", {\n /** Whether the completion of step is optional. */\n get: function () {\n return this._optional;\n },\n set: function (value) {\n this._optional = coercion.coerceBooleanProperty(value);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(CdkStep.prototype, \"completed\", {\n /** Whether step is marked as completed. */\n get: function () {\n return this._completedOverride == null ? this._getDefaultCompleted() : this._completedOverride;\n },\n set: function (value) {\n this._completedOverride = coercion.coerceBooleanProperty(value);\n },\n enumerable: false,\n configurable: true\n });\n CdkStep.prototype._getDefaultCompleted = function () {\n return this.stepControl ? this.stepControl.valid && this.interacted : this.interacted;\n };\n Object.defineProperty(CdkStep.prototype, \"hasError\", {\n /** Whether step has an error. */\n get: function () {\n return this._customError == null ? this._getDefaultError() : this._customError;\n },\n set: function (value) {\n this._customError = coercion.coerceBooleanProperty(value);\n },\n enumerable: false,\n configurable: true\n });\n CdkStep.prototype._getDefaultError = function () {\n return this.stepControl && this.stepControl.invalid && this.interacted;\n };\n /** Selects this step component. */\n CdkStep.prototype.select = function () {\n this._stepper.selected = this;\n };\n /** Resets the step to its initial state. Note that this includes resetting form data. */\n CdkStep.prototype.reset = function () {\n this.interacted = false;\n if (this._completedOverride != null) {\n this._completedOverride = false;\n }\n if (this._customError != null) {\n this._customError = false;\n }\n if (this.stepControl) {\n this.stepControl.reset();\n }\n };\n CdkStep.prototype.ngOnChanges = function () {\n // Since basically all inputs of the MatStep get proxied through the view down to the\n // underlying MatStepHeader, we have to make sure that change detection runs correctly.\n this._stepper._stateChanged();\n };\n return CdkStep;\n }());\n CdkStep.decorators = [\n { type: core.Component, args: [{\n selector: 'cdk-step',\n exportAs: 'cdkStep',\n template: '<ng-template><ng-content></ng-content></ng-template>',\n encapsulation: core.ViewEncapsulation.None,\n changeDetection: core.ChangeDetectionStrategy.OnPush\n },] }\n ];\n CdkStep.ctorParameters = function () { return [\n { type: CdkStepper, decorators: [{ type: core.Inject, args: [core.forwardRef(function () { return CdkStepper; }),] }] },\n { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [STEPPER_GLOBAL_OPTIONS,] }] }\n ]; };\n CdkStep.propDecorators = {\n stepLabel: [{ type: core.ContentChild, args: [CdkStepLabel,] }],\n content: [{ type: core.ViewChild, args: [core.TemplateRef, { static: true },] }],\n stepControl: [{ type: core.Input }],\n label: [{ type: core.Input }],\n errorMessage: [{ type: core.Input }],\n ariaLabel: [{ type: core.Input, args: ['aria-label',] }],\n ariaLabelledby: [{ type: core.Input, args: ['aria-labelledby',] }],\n state: [{ type: core.Input }],\n editable: [{ type: core.Input }],\n optional: [{ type: core.Input }],\n completed: [{ type: core.Input }],\n hasError: [{ type: core.Input }]\n };\n var CdkStepper = /** @class */ (function () {\n function CdkStepper(_dir, _changeDetectorRef, \n // @breaking-change 8.0.0 `_elementRef` and `_document` parameters to become required.\n _elementRef, _document) {\n this._dir = _dir;\n this._changeDetectorRef = _changeDetectorRef;\n this._elementRef = _elementRef;\n /** Emits when the component is destroyed. */\n this._destroyed = new rxjs.Subject();\n /** Steps that belong to the current stepper, excluding ones from nested steppers. */\n this.steps = new core.QueryList();\n this._linear = false;\n this._selectedIndex = 0;\n /** Event emitted when the selected step has changed. */\n this.selectionChange = new core.EventEmitter();\n this._orientation = 'horizontal';\n this._groupId = nextId++;\n this._document = _document;\n }\n Object.defineProperty(CdkStepper.prototype, \"linear\", {\n /** Whether the validity of previous steps should be checked or not. */\n get: function () {\n return this._linear;\n },\n set: function (value) {\n this._linear = coercion.coerceBooleanProperty(value);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(CdkStepper.prototype, \"selectedIndex\", {\n /** The index of the selected step. */\n get: function () {\n return this._selectedIndex;\n },\n set: function (index) {\n var newIndex = coercion.coerceNumberProperty(index);\n if (this.steps && this._steps) {\n // Ensure that the index can't be out of bounds.\n if ((newIndex < 0 || newIndex > this.steps.length - 1) &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('cdkStepper: Cannot assign out-of-bounds value to `selectedIndex`.');\n }\n if (this._selectedIndex != newIndex && !this._anyControlsInvalidOrPending(newIndex) &&\n (newIndex >= this._selectedIndex || this.steps.toArray()[newIndex].editable)) {\n this._updateSelectedItemIndex(index);\n }\n }\n else {\n this._selectedIndex = newIndex;\n }\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(CdkStepper.prototype, \"selected\", {\n /** The step that is selected. */\n get: function () {\n // @breaking-change 8.0.0 Change return type to `CdkStep | undefined`.\n return this.steps ? this.steps.toArray()[this.selectedIndex] : undefined;\n },\n set: function (step) {\n this.selectedIndex = this.steps ? this.steps.toArray().indexOf(step) : -1;\n },\n enumerable: false,\n configurable: true\n });\n CdkStepper.prototype.ngAfterContentInit = function () {\n var _this = this;\n this._steps.changes\n .pipe(operators.startWith(this._steps), operators.takeUntil(this._destroyed))\n .subscribe(function (steps) {\n _this.steps.reset(steps.filter(function (step) { return step._stepper === _this; }));\n _this.steps.notifyOnChanges();\n });\n };\n CdkStepper.prototype.ngAfterViewInit = function () {\n var _this = this;\n // Note that while the step headers are content children by default, any components that\n // extend this one might have them as view children. We initialize the keyboard handling in\n // AfterViewInit so we're guaranteed for both view and content children to be defined.\n this._keyManager = new a11y.FocusKeyManager(this._stepHeader)\n .withWrap()\n .withHomeAndEnd()\n .withVerticalOrientation(this._orientation === 'vertical');\n (this._dir ? this._dir.change : rxjs.of())\n .pipe(operators.startWith(this._layoutDirection()), operators.takeUntil(this._destroyed))\n .subscribe(function (direction) { return _this._keyManager.withHorizontalOrientation(direction); });\n this._keyManager.updateActiveItem(this._selectedIndex);\n // No need to `takeUntil` here, because we're the ones destroying `steps`.\n this.steps.changes.subscribe(function () {\n if (!_this.selected) {\n _this._selectedIndex = Math.max(_this._selectedIndex - 1, 0);\n }\n });\n };\n CdkStepper.prototype.ngOnDestroy = function () {\n this.steps.destroy();\n this._destroyed.next();\n this._destroyed.complete();\n };\n /** Selects and focuses the next step in list. */\n CdkStepper.prototype.next = function () {\n this.selectedIndex = Math.min(this._selectedIndex + 1, this.steps.length - 1);\n };\n /** Selects and focuses the previous step in list. */\n CdkStepper.prototype.previous = function () {\n this.selectedIndex = Math.max(this._selectedIndex - 1, 0);\n };\n /** Resets the stepper to its initial state. Note that this includes clearing form data. */\n CdkStepper.prototype.reset = function () {\n this._updateSelectedItemIndex(0);\n this.steps.forEach(function (step) { return step.reset(); });\n this._stateChanged();\n };\n /** Returns a unique id for each step label element. */\n CdkStepper.prototype._getStepLabelId = function (i) {\n return \"cdk-step-label-\" + this._groupId + \"-\" + i;\n };\n /** Returns unique id for each step content element. */\n CdkStepper.prototype._getStepContentId = function (i) {\n return \"cdk-step-content-\" + this._groupId + \"-\" + i;\n };\n /** Marks the component to be change detected. */\n CdkStepper.prototype._stateChanged = function () {\n this._changeDetectorRef.markForCheck();\n };\n /** Returns position state of the step with the given index. */\n CdkStepper.prototype._getAnimationDirection = function (index) {\n var position = index - this._selectedIndex;\n if (position < 0) {\n return this._layoutDirection() === 'rtl' ? 'next' : 'previous';\n }\n else if (position > 0) {\n return this._layoutDirection() === 'rtl' ? 'previous' : 'next';\n }\n return 'current';\n };\n /** Returns the type of icon to be displayed. */\n CdkStepper.prototype._getIndicatorType = function (index, state) {\n if (state === void 0) { state = STEP_STATE.NUMBER; }\n var step = this.steps.toArray()[index];\n var isCurrentStep = this._isCurrentStep(index);\n return step._displayDefaultIndicatorType ? this._getDefaultIndicatorLogic(step, isCurrentStep) :\n this._getGuidelineLogic(step, isCurrentStep, state);\n };\n CdkStepper.prototype._getDefaultIndicatorLogic = function (step, isCurrentStep) {\n if (step._showError && step.hasError && !isCurrentStep) {\n return STEP_STATE.ERROR;\n }\n else if (!step.completed || isCurrentStep) {\n return STEP_STATE.NUMBER;\n }\n else {\n return step.editable ? STEP_STATE.EDIT : STEP_STATE.DONE;\n }\n };\n CdkStepper.prototype._getGuidelineLogic = function (step, isCurrentStep, state) {\n if (state === void 0) { state = STEP_STATE.NUMBER; }\n if (step._showError && step.hasError && !isCurrentStep) {\n return STEP_STATE.ERROR;\n }\n else if (step.completed && !isCurrentStep) {\n return STEP_STATE.DONE;\n }\n else if (step.completed && isCurrentStep) {\n return state;\n }\n else if (step.editable && isCurrentStep) {\n return STEP_STATE.EDIT;\n }\n else {\n return state;\n }\n };\n CdkStepper.prototype._isCurrentStep = function (index) {\n return this._selectedIndex === index;\n };\n /** Returns the index of the currently-focused step header. */\n CdkStepper.prototype._getFocusIndex = function () {\n return this._keyManager ? this._keyManager.activeItemIndex : this._selectedIndex;\n };\n CdkStepper.prototype._updateSelectedItemIndex = function (newIndex) {\n var stepsArray = this.steps.toArray();\n this.selectionChange.emit({\n selectedIndex: newIndex,\n previouslySelectedIndex: this._selectedIndex,\n selectedStep: stepsArray[newIndex],\n previouslySelectedStep: stepsArray[this._selectedIndex],\n });\n // If focus is inside the stepper, move it to the next header, otherwise it may become\n // lost when the active step content is hidden. We can't be more granular with the check\n // (e.g. checking whether focus is inside the active step), because we don't have a\n // reference to the elements that are rendering out the content.\n this._containsFocus() ? this._keyManager.setActiveItem(newIndex) :\n this._keyManager.updateActiveItem(newIndex);\n this._selectedIndex = newIndex;\n this._stateChanged();\n };\n CdkStepper.prototype._onKeydown = function (event) {\n var hasModifier = keycodes.hasModifierKey(event);\n var keyCode = event.keyCode;\n var manager = this._keyManager;\n if (manager.activeItemIndex != null && !hasModifier &&\n (keyCode === keycodes.SPACE || keyCode === keycodes.ENTER)) {\n this.selectedIndex = manager.activeItemIndex;\n event.preventDefault();\n }\n else {\n manager.onKeydown(event);\n }\n };\n CdkStepper.prototype._anyControlsInvalidOrPending = function (index) {\n var steps = this.steps.toArray();\n steps[this._selectedIndex].interacted = true;\n if (this._linear && index >= 0) {\n return steps.slice(0, index).some(function (step) {\n var control = step.stepControl;\n var isIncomplete = control ? (control.invalid || control.pending || !step.interacted) : !step.completed;\n return isIncomplete && !step.optional && !step._completedOverride;\n });\n }\n return false;\n };\n CdkStepper.prototype._layoutDirection = function () {\n return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';\n };\n /** Checks whether the stepper contains the focused element. */\n CdkStepper.prototype._containsFocus = function () {\n if (!this._document || !this._elementRef) {\n return false;\n }\n var stepperElement = this._elementRef.nativeElement;\n var focusedElement = this._document.activeElement;\n return stepperElement === focusedElement || stepperElement.contains(focusedElement);\n };\n return CdkStepper;\n }());\n CdkStepper.decorators = [\n { type: core.Directive, args: [{\n selector: '[cdkStepper]',\n exportAs: 'cdkStepper',\n },] }\n ];\n CdkStepper.ctorParameters = function () { return [\n { type: bidi.Directionality, decorators: [{ type: core.Optional }] },\n { type: core.ChangeDetectorRef },\n { type: core.ElementRef },\n { type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] }\n ]; };\n CdkStepper.propDecorators = {\n _steps: [{ type: core.ContentChildren, args: [CdkStep, { descendants: true },] }],\n _stepHeader: [{ type: core.ContentChildren, args: [CdkStepHeader, { descendants: true },] }],\n linear: [{ type: core.Input }],\n selectedIndex: [{ type: core.Input }],\n selected: [{ type: core.Input }],\n selectionChange: [{ type: core.Output }]\n };\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /** Button that moves to the next step in a stepper workflow. */\n var CdkStepperNext = /** @class */ (function () {\n function CdkStepperNext(_stepper) {\n this._stepper = _stepper;\n /** Type of the next button. Defaults to \"submit\" if not specified. */\n this.type = 'submit';\n }\n // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.\n // In Ivy the `host` bindings will be merged when this class is extended, whereas in\n // ViewEngine they're overwritten.\n // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.\n // tslint:disable-next-line:no-host-decorator-in-concrete\n CdkStepperNext.prototype._handleClick = function () {\n this._stepper.next();\n };\n return CdkStepperNext;\n }());\n CdkStepperNext.decorators = [\n { type: core.Directive, args: [{\n selector: 'button[cdkStepperNext]',\n host: {\n '[type]': 'type',\n }\n },] }\n ];\n CdkStepperNext.ctorParameters = function () { return [\n { type: CdkStepper }\n ]; };\n CdkStepperNext.propDecorators = {\n type: [{ type: core.Input }],\n _handleClick: [{ type: core.HostListener, args: ['click',] }]\n };\n /** Button that moves to the previous step in a stepper workflow. */\n var CdkStepperPrevious = /** @class */ (function () {\n function CdkStepperPrevious(_stepper) {\n this._stepper = _stepper;\n /** Type of the previous button. Defaults to \"button\" if not specified. */\n this.type = 'button';\n }\n // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.\n // In Ivy the `host` bindings will be merged when this class is extended, whereas in\n // ViewEngine they're overwritten.\n // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.\n // tslint:disable-next-line:no-host-decorator-in-concrete\n CdkStepperPrevious.prototype._handleClick = function () {\n this._stepper.previous();\n };\n return CdkStepperPrevious;\n }());\n CdkStepperPrevious.decorators = [\n { type: core.Directive, args: [{\n selector: 'button[cdkStepperPrevious]',\n host: {\n '[type]': 'type',\n }\n },] }\n ];\n CdkStepperPrevious.ctorParameters = function () { return [\n { type: CdkStepper }\n ]; };\n CdkStepperPrevious.propDecorators = {\n type: [{ type: core.Input }],\n _handleClick: [{ type: core.HostListener, args: ['click',] }]\n };\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var CdkStepperModule = /** @class */ (function () {\n function CdkStepperModule() {\n }\n return CdkStepperModule;\n }());\n CdkStepperModule.decorators = [\n { type: core.NgModule, args: [{\n imports: [bidi.BidiModule],\n exports: [\n CdkStep,\n CdkStepper,\n CdkStepHeader,\n CdkStepLabel,\n CdkStepperNext,\n CdkStepperPrevious,\n ],\n declarations: [\n CdkStep,\n CdkStepper,\n CdkStepHeader,\n CdkStepLabel,\n CdkStepperNext,\n CdkStepperPrevious,\n ]\n },] }\n ];\n\n /**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n /**\n * Generated bundle index. Do not edit.\n */\n\n exports.CdkStep = CdkStep;\n exports.CdkStepHeader = CdkStepHeader;\n exports.CdkStepLabel = CdkStepLabel;\n exports.CdkStepper = CdkStepper;\n exports.CdkStepperModule = CdkStepperModule;\n exports.CdkStepperNext = CdkStepperNext;\n exports.CdkStepperPrevious = CdkStepperPrevious;\n exports.MAT_STEPPER_GLOBAL_OPTIONS = MAT_STEPPER_GLOBAL_OPTIONS;\n exports.STEPPER_GLOBAL_OPTIONS = STEPPER_GLOBAL_OPTIONS;\n exports.STEP_STATE = STEP_STATE;\n exports.StepperSelectionEvent = StepperSelectionEvent;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=cdk-stepper.umd.js.map\n"]}
|