@angular/cdk 13.0.0-next.6 → 13.0.0-rc.1
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/a11y-module.d.ts +9 -7
- package/a11y/aria-describer/aria-describer.d.ts +3 -7
- package/a11y/focus-monitor/focus-monitor.d.ts +5 -0
- package/a11y/focus-trap/configurable-focus-trap-factory.d.ts +3 -7
- package/a11y/focus-trap/focus-trap-manager.d.ts +3 -7
- package/a11y/focus-trap/focus-trap.d.ts +5 -0
- package/a11y/high-contrast-mode/high-contrast-mode-detector.d.ts +3 -0
- package/a11y/index.d.ts +0 -1
- package/a11y/input-modality/input-modality-detector.d.ts +3 -7
- package/a11y/interactivity-checker/interactivity-checker.d.ts +3 -0
- package/a11y/live-announcer/live-announcer.d.ts +6 -1
- package/a11y/package.json +5 -5
- package/accordion/accordion-item.d.ts +3 -0
- package/accordion/accordion-module.d.ts +6 -7
- package/accordion/accordion.d.ts +3 -0
- package/accordion/index.d.ts +0 -1
- package/accordion/package.json +5 -5
- package/bidi/bidi-module.d.ts +5 -7
- package/bidi/dir.d.ts +3 -0
- package/bidi/directionality.d.ts +3 -0
- package/bidi/index.d.ts +0 -1
- package/bidi/package.json +5 -5
- package/clipboard/clipboard-module.d.ts +5 -7
- package/clipboard/clipboard.d.ts +3 -7
- package/clipboard/copy-to-clipboard.d.ts +3 -0
- package/clipboard/package.json +5 -5
- package/coercion/package.json +5 -5
- package/collections/package.json +5 -5
- package/collections/unique-selection-dispatcher.d.ts +3 -0
- package/drag-drop/client-rect.d.ts +8 -1
- package/drag-drop/directives/drag-handle.d.ts +3 -0
- package/drag-drop/directives/drag-placeholder.d.ts +3 -0
- package/drag-drop/directives/drag-preview.d.ts +3 -0
- package/drag-drop/directives/drag.d.ts +3 -0
- package/drag-drop/directives/drop-list-group.d.ts +3 -0
- package/drag-drop/directives/drop-list.d.ts +3 -0
- package/drag-drop/drag-drop-module.d.ts +11 -7
- package/drag-drop/drag-drop-registry.d.ts +3 -0
- package/drag-drop/drag-drop.d.ts +3 -0
- package/drag-drop/index.d.ts +0 -1
- package/drag-drop/package.json +5 -5
- package/esm2020/a11y/a11y-module.mjs +33 -0
- package/esm2020/a11y/aria-describer/aria-describer.mjs +208 -0
- package/{esm2015/a11y/aria-describer/aria-reference.js → esm2020/a11y/aria-describer/aria-reference.mjs} +1 -1
- package/esm2020/a11y/fake-event-detection.mjs +29 -0
- package/esm2020/a11y/focus-monitor/focus-monitor.mjs +400 -0
- package/{esm2015/a11y/focus-trap/configurable-focus-trap-config.js → esm2020/a11y/focus-trap/configurable-focus-trap-config.mjs} +0 -0
- package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +53 -0
- package/esm2020/a11y/focus-trap/configurable-focus-trap.mjs +51 -0
- package/esm2020/a11y/focus-trap/event-listener-inert-strategy.mjs +61 -0
- package/esm2020/a11y/focus-trap/focus-trap-inert-strategy.mjs +11 -0
- package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +53 -0
- package/esm2020/a11y/focus-trap/focus-trap.mjs +399 -0
- package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +95 -0
- package/esm2020/a11y/index.mjs +5 -0
- package/esm2020/a11y/input-modality/input-modality-detector.mjs +176 -0
- package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +238 -0
- package/{esm2015/a11y/key-manager/activedescendant-key-manager.js → esm2020/a11y/key-manager/activedescendant-key-manager.mjs} +1 -1
- package/{esm2015/a11y/key-manager/focus-key-manager.js → esm2020/a11y/key-manager/focus-key-manager.mjs} +0 -0
- package/esm2020/a11y/key-manager/list-key-manager.mjs +321 -0
- package/esm2020/a11y/live-announcer/live-announcer-tokens.mjs +19 -0
- package/esm2020/a11y/live-announcer/live-announcer.mjs +170 -0
- package/{esm2015/a11y/public-api.js → esm2020/a11y/public-api.mjs} +0 -0
- package/esm2020/accordion/accordion-item.mjs +167 -0
- package/esm2020/accordion/accordion-module.mjs +24 -0
- package/esm2020/accordion/accordion.mjs +70 -0
- package/esm2020/accordion/index.mjs +5 -0
- package/{esm2015/accordion/public-api.js → esm2020/accordion/public-api.mjs} +0 -0
- package/esm2020/bidi/bidi-module.mjs +23 -0
- package/{esm2015/bidi/dir-document-token.js → esm2020/bidi/dir-document-token.mjs} +1 -1
- package/esm2020/bidi/dir.mjs +67 -0
- package/esm2020/bidi/directionality.mjs +47 -0
- package/esm2020/bidi/index.mjs +5 -0
- package/{esm2015/bidi/public-api.js → esm2020/bidi/public-api.mjs} +1 -1
- package/esm2020/clipboard/clipboard-module.mjs +23 -0
- package/esm2020/clipboard/clipboard.mjs +53 -0
- package/esm2020/clipboard/copy-to-clipboard.mjs +99 -0
- package/{esm2015/clipboard/index.js → esm2020/clipboard/index.mjs} +0 -0
- package/esm2020/clipboard/pending-copy.mjs +67 -0
- package/{esm2015/clipboard/public-api.js → esm2020/clipboard/public-api.mjs} +0 -0
- package/{esm2015/coercion/array.js → esm2020/coercion/array.mjs} +0 -0
- package/{esm2015/coercion/boolean-property.js → esm2020/coercion/boolean-property.mjs} +0 -0
- package/{esm2015/coercion/css-pixel-value.js → esm2020/coercion/css-pixel-value.mjs} +0 -0
- package/{esm2015/coercion/element.js → esm2020/coercion/element.mjs} +0 -0
- package/{esm2015/coercion/index.js → esm2020/coercion/index.mjs} +0 -0
- package/{esm2015/coercion/number-property.js → esm2020/coercion/number-property.mjs} +0 -0
- package/{esm2015/coercion/public-api.js → esm2020/coercion/public-api.mjs} +0 -0
- package/{esm2015/coercion/string-array.js → esm2020/coercion/string-array.mjs} +0 -0
- package/{esm2015/collections/array-data-source.js → esm2020/collections/array-data-source.mjs} +1 -1
- package/esm2020/collections/collection-viewer.mjs +9 -0
- package/{esm2015/collections/data-source.js → esm2020/collections/data-source.mjs} +0 -0
- package/esm2020/collections/dispose-view-repeater-strategy.mjs +47 -0
- package/{esm2015/collections/index.js → esm2020/collections/index.mjs} +0 -0
- package/{esm2015/collections/public-api.js → esm2020/collections/public-api.mjs} +0 -0
- package/esm2020/collections/recycle-view-repeater-strategy.mjs +128 -0
- package/{esm2015/collections/selection-model.js → esm2020/collections/selection-model.mjs} +2 -2
- package/esm2020/collections/tree-adapter.mjs +9 -0
- package/esm2020/collections/unique-selection-dispatcher.mjs +55 -0
- package/esm2020/collections/view-repeater.mjs +14 -0
- package/esm2020/drag-drop/client-rect.mjs +64 -0
- package/esm2020/drag-drop/clone-node.mjs +65 -0
- package/esm2020/drag-drop/directives/assertions.mjs +18 -0
- package/{esm2015/drag-drop/directives/config.js → esm2020/drag-drop/directives/config.mjs} +1 -1
- package/esm2020/drag-drop/directives/drag-handle.mjs +66 -0
- package/esm2020/drag-drop/directives/drag-placeholder.mjs +36 -0
- package/esm2020/drag-drop/directives/drag-preview.mjs +47 -0
- package/esm2020/drag-drop/directives/drag.mjs +483 -0
- package/esm2020/drag-drop/directives/drop-list-group.mjs +53 -0
- package/esm2020/drag-drop/directives/drop-list.mjs +344 -0
- package/esm2020/drag-drop/drag-drop-module.mjs +57 -0
- package/esm2020/drag-drop/drag-drop-registry.mjs +231 -0
- package/esm2020/drag-drop/drag-drop.mjs +57 -0
- package/esm2020/drag-drop/drag-events.mjs +9 -0
- package/{esm2015/drag-drop/drag-parent.js → esm2020/drag-drop/drag-parent.mjs} +0 -0
- package/esm2020/drag-drop/drag-ref.mjs +1108 -0
- package/esm2020/drag-drop/drag-styling.mjs +69 -0
- package/esm2020/drag-drop/drag-utils.mjs +60 -0
- package/esm2020/drag-drop/drop-list-ref.mjs +830 -0
- package/{esm2015/drag-drop/index.js → esm2020/drag-drop/index.mjs} +1 -1
- package/{esm2015/drag-drop/parent-position-tracker.js → esm2020/drag-drop/parent-position-tracker.mjs} +2 -2
- package/{esm2015/drag-drop/public-api.js → esm2020/drag-drop/public-api.mjs} +0 -0
- package/esm2020/drag-drop/transition-duration.mjs +36 -0
- package/{esm2015/index.js → esm2020/index.mjs} +0 -0
- package/{esm2015/keycodes/index.js → esm2020/keycodes/index.mjs} +0 -0
- package/{esm2015/keycodes/keycodes.js → esm2020/keycodes/keycodes.mjs} +1 -1
- package/{esm2015/keycodes/modifiers.js → esm2020/keycodes/modifiers.mjs} +0 -0
- package/{esm2015/keycodes/public-api.js → esm2020/keycodes/public-api.mjs} +0 -0
- package/esm2020/layout/breakpoints-observer.mjs +105 -0
- package/{esm2015/layout/breakpoints.js → esm2020/layout/breakpoints.mjs} +1 -1
- package/{esm2015/layout/index.js → esm2020/layout/index.mjs} +0 -0
- package/esm2020/layout/layout-module.mjs +19 -0
- package/esm2020/layout/media-matcher.mjs +85 -0
- package/{esm2015/layout/public-api.js → esm2020/layout/public-api.mjs} +0 -0
- package/{esm2015/observers/index.js → esm2020/observers/index.mjs} +0 -0
- package/esm2020/observers/observe-content.mjs +187 -0
- package/{esm2015/observers/public-api.js → esm2020/observers/public-api.mjs} +0 -0
- package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +52 -0
- package/{esm2015/overlay/dispatchers/index.js → esm2020/overlay/dispatchers/index.mjs} +0 -0
- package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +63 -0
- package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +116 -0
- package/esm2020/overlay/fullscreen-overlay-container.mjs +94 -0
- package/esm2020/overlay/index.mjs +5 -0
- package/esm2020/overlay/overlay-config.mjs +45 -0
- package/esm2020/overlay/overlay-container.mjs +81 -0
- package/esm2020/overlay/overlay-directives.mjs +427 -0
- package/esm2020/overlay/overlay-module.mjs +29 -0
- package/esm2020/overlay/overlay-ref.mjs +402 -0
- package/{esm2015/overlay/overlay-reference.js → esm2020/overlay/overlay-reference.mjs} +0 -0
- package/esm2020/overlay/overlay.mjs +119 -0
- package/esm2020/overlay/position/connected-position.mjs +97 -0
- package/esm2020/overlay/position/flexible-connected-position-strategy.mjs +959 -0
- package/esm2020/overlay/position/global-position-strategy.mjs +203 -0
- package/esm2020/overlay/position/overlay-position-builder.mjs +50 -0
- package/{esm2015/overlay/position/position-strategy.js → esm2020/overlay/position/position-strategy.mjs} +0 -0
- package/esm2020/overlay/position/scroll-clip.mjs +40 -0
- package/{esm2015/overlay/public-api.js → esm2020/overlay/public-api.mjs} +0 -0
- package/{esm2015/overlay/scroll/block-scroll-strategy.js → esm2020/overlay/scroll/block-scroll-strategy.mjs} +1 -1
- package/esm2020/overlay/scroll/close-scroll-strategy.mjs +61 -0
- package/{esm2015/overlay/scroll/index.js → esm2020/overlay/scroll/index.mjs} +2 -2
- package/{esm2015/overlay/scroll/noop-scroll-strategy.js → esm2020/overlay/scroll/noop-scroll-strategy.mjs} +1 -1
- package/{esm2015/overlay/scroll/reposition-scroll-strategy.js → esm2020/overlay/scroll/reposition-scroll-strategy.mjs} +1 -1
- package/esm2020/overlay/scroll/scroll-strategy-options.mjs +55 -0
- package/{esm2015/overlay/scroll/scroll-strategy.js → esm2020/overlay/scroll/scroll-strategy.mjs} +0 -0
- package/{esm2015/platform/features/input-types.js → esm2020/platform/features/input-types.mjs} +1 -1
- package/esm2020/platform/features/passive-listeners.mjs +36 -0
- package/esm2020/platform/features/scrolling.mjs +85 -0
- package/{esm2015/platform/features/shadow-dom.js → esm2020/platform/features/shadow-dom.mjs} +4 -3
- package/esm2020/platform/features/test-environment.mjs +27 -0
- package/{esm2015/platform/index.js → esm2020/platform/index.mjs} +0 -0
- package/esm2020/platform/platform-module.mjs +19 -0
- package/esm2020/platform/platform.mjs +85 -0
- package/{esm2015/platform/public-api.js → esm2020/platform/public-api.mjs} +0 -0
- package/esm2020/portal/dom-portal-outlet.mjs +134 -0
- package/{esm2015/portal/index.js → esm2020/portal/index.mjs} +0 -0
- package/esm2020/portal/portal-directives.mjs +244 -0
- package/{esm2015/portal/portal-errors.js → esm2020/portal/portal-errors.mjs} +1 -1
- package/esm2020/portal/portal-injector.mjs +28 -0
- package/esm2020/portal/portal.mjs +179 -0
- package/{esm2015/portal/public-api.js → esm2020/portal/public-api.mjs} +0 -0
- package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +217 -0
- package/{esm2015/scrolling/index.js → esm2020/scrolling/index.mjs} +0 -0
- package/{esm2015/scrolling/public-api.js → esm2020/scrolling/public-api.mjs} +0 -0
- package/esm2020/scrolling/scroll-dispatcher.mjs +163 -0
- package/esm2020/scrolling/scrollable.mjs +176 -0
- package/esm2020/scrolling/scrolling-module.mjs +52 -0
- package/esm2020/scrolling/viewport-ruler.mjs +146 -0
- package/esm2020/scrolling/virtual-for-of.mjs +296 -0
- package/{esm2015/scrolling/virtual-scroll-repeater.js → esm2020/scrolling/virtual-scroll-repeater.mjs} +0 -0
- package/esm2020/scrolling/virtual-scroll-strategy.mjs +11 -0
- package/esm2020/scrolling/virtual-scroll-viewport.mjs +378 -0
- package/{esm2015/stepper/index.js → esm2020/stepper/index.mjs} +0 -0
- package/{esm2015/stepper/public-api.js → esm2020/stepper/public-api.mjs} +0 -0
- package/esm2020/stepper/step-header.mjs +30 -0
- package/esm2020/stepper/step-label.mjs +23 -0
- package/esm2020/stepper/stepper-button.mjs +76 -0
- package/esm2020/stepper/stepper-module.mjs +40 -0
- package/esm2020/stepper/stepper.mjs +471 -0
- package/esm2020/table/can-stick.mjs +44 -0
- package/esm2020/table/cell.mjs +222 -0
- package/esm2020/table/coalesced-style-scheduler.mjs +91 -0
- package/{esm2015/table/index.js → esm2020/table/index.mjs} +0 -0
- package/{esm2015/table/public-api.js → esm2020/table/public-api.mjs} +0 -0
- package/esm2020/table/row.mjs +254 -0
- package/esm2020/table/sticky-position-listener.mjs +11 -0
- package/esm2020/table/sticky-styler.mjs +345 -0
- package/{esm2015/table/table-errors.js → esm2020/table/table-errors.mjs} +1 -1
- package/esm2020/table/table-module.mjs +94 -0
- package/esm2020/table/table.mjs +1023 -0
- package/esm2020/table/text-column.mjs +153 -0
- package/{esm2015/table/tokens.js → esm2020/table/tokens.mjs} +1 -1
- package/esm2020/testing/change-detection.mjs +102 -0
- package/esm2020/testing/component-harness.mjs +322 -0
- package/{esm2015/testing/element-dimensions.js → esm2020/testing/element-dimensions.mjs} +1 -1
- package/esm2020/testing/harness-environment.mjs +202 -0
- package/{esm2015/testing/index.js → esm2020/testing/index.mjs} +0 -0
- package/{esm2015/testing/protractor/index.js → esm2020/testing/protractor/index.mjs} +0 -0
- package/esm2020/testing/protractor/protractor-element.mjs +234 -0
- package/esm2020/testing/protractor/protractor-harness-environment.mjs +72 -0
- package/{esm2015/testing/protractor/public-api.js → esm2020/testing/protractor/public-api.mjs} +0 -0
- package/{esm2015/testing/public-api.js → esm2020/testing/public-api.mjs} +0 -0
- package/{esm2015/testing/selenium-webdriver/index.js → esm2020/testing/selenium-webdriver/index.mjs} +0 -0
- package/{esm2015/testing/selenium-webdriver/public-api.js → esm2020/testing/selenium-webdriver/public-api.mjs} +0 -0
- package/esm2020/testing/selenium-webdriver/selenium-web-driver-element.mjs +199 -0
- package/esm2020/testing/selenium-webdriver/selenium-web-driver-harness-environment.mjs +87 -0
- package/{esm2015/testing/selenium-webdriver/selenium-webdriver-keys.js → esm2020/testing/selenium-webdriver/selenium-webdriver-keys.mjs} +2 -2
- package/esm2020/testing/test-element.mjs +48 -0
- package/esm2020/testing/testbed/fake-events/dispatch-events.mjs +53 -0
- package/esm2020/testing/testbed/fake-events/element-focus.mjs +39 -0
- package/esm2020/testing/testbed/fake-events/event-objects.mjs +113 -0
- package/{esm2015/testing/testbed/fake-events/index.js → esm2020/testing/testbed/fake-events/index.mjs} +0 -0
- package/esm2020/testing/testbed/fake-events/type-in-element.mjs +88 -0
- package/{esm2015/testing/testbed/index.js → esm2020/testing/testbed/index.mjs} +0 -0
- package/{esm2015/testing/testbed/public-api.js → esm2020/testing/testbed/public-api.mjs} +0 -0
- package/esm2020/testing/testbed/task-state-zone-interceptor.mjs +82 -0
- package/esm2020/testing/testbed/testbed-harness-environment.mjs +162 -0
- package/esm2020/testing/testbed/unit-test-element.mjs +224 -0
- package/esm2020/testing/text-filtering.mjs +21 -0
- package/esm2020/text-field/autofill.mjs +113 -0
- package/esm2020/text-field/autosize.mjs +310 -0
- package/{esm2015/text-field/index.js → esm2020/text-field/index.mjs} +0 -0
- package/{esm2015/text-field/public-api.js → esm2020/text-field/public-api.mjs} +0 -0
- package/esm2020/text-field/text-field-module.mjs +26 -0
- package/{esm2015/tree/control/base-tree-control.js → esm2020/tree/control/base-tree-control.mjs} +4 -4
- package/{esm2015/tree/control/flat-tree-control.js → esm2020/tree/control/flat-tree-control.mjs} +1 -1
- package/esm2020/tree/control/nested-tree-control.mjs +58 -0
- package/{esm2015/tree/control/tree-control.js → esm2020/tree/control/tree-control.mjs} +0 -0
- package/{esm2015/tree/index.js → esm2020/tree/index.mjs} +0 -0
- package/esm2020/tree/nested-node.mjs +117 -0
- package/esm2020/tree/node.mjs +35 -0
- package/esm2020/tree/outlet.mjs +39 -0
- package/esm2020/tree/padding.mjs +131 -0
- package/{esm2015/tree/public-api.js → esm2020/tree/public-api.mjs} +0 -0
- package/esm2020/tree/toggle.mjs +53 -0
- package/{esm2015/tree/tree-errors.js → esm2020/tree/tree-errors.mjs} +0 -0
- package/esm2020/tree/tree-module.mjs +49 -0
- package/esm2020/tree/tree.mjs +361 -0
- package/{esm2015/version.js → esm2020/version.mjs} +1 -1
- package/fesm2015/a11y.mjs +2356 -0
- package/fesm2015/a11y.mjs.map +1 -0
- package/fesm2015/accordion.mjs +267 -0
- package/fesm2015/accordion.mjs.map +1 -0
- package/fesm2015/bidi.mjs +179 -0
- package/fesm2015/bidi.mjs.map +1 -0
- package/fesm2015/{cdk.js → cdk.mjs} +2 -2
- package/fesm2015/cdk.mjs.map +1 -0
- package/fesm2015/clipboard.mjs +253 -0
- package/fesm2015/clipboard.mjs.map +1 -0
- package/fesm2015/{coercion.js → coercion.mjs} +1 -1
- package/fesm2015/coercion.mjs.map +1 -0
- package/fesm2015/{collections.js → collections.mjs} +15 -27
- package/fesm2015/collections.mjs.map +1 -0
- package/fesm2015/drag-drop.mjs +3667 -0
- package/fesm2015/drag-drop.mjs.map +1 -0
- package/fesm2015/{keycodes.js → keycodes.mjs} +1 -1
- package/fesm2015/keycodes.mjs.map +1 -0
- package/fesm2015/{layout.js → layout.mjs} +30 -28
- package/fesm2015/layout.mjs.map +1 -0
- package/fesm2015/{observers.js → observers.mjs} +50 -41
- package/fesm2015/observers.mjs.map +1 -0
- package/fesm2015/overlay.mjs +3004 -0
- package/fesm2015/overlay.mjs.map +1 -0
- package/fesm2015/platform.mjs +380 -0
- package/fesm2015/platform.mjs.map +1 -0
- package/fesm2015/portal.mjs +649 -0
- package/fesm2015/portal.mjs.map +1 -0
- package/fesm2015/scrolling.mjs +1394 -0
- package/fesm2015/scrolling.mjs.map +1 -0
- package/fesm2015/{stepper.js → stepper.mjs} +186 -133
- package/fesm2015/stepper.mjs.map +1 -0
- package/fesm2015/{table.js → table.mjs} +500 -359
- package/fesm2015/table.mjs.map +1 -0
- package/fesm2015/testing/{protractor.js → protractor.mjs} +12 -25
- package/fesm2015/testing/protractor.mjs.map +1 -0
- package/fesm2015/testing/{selenium-webdriver.js → selenium-webdriver.mjs} +14 -28
- package/fesm2015/testing/selenium-webdriver.mjs.map +1 -0
- package/fesm2015/testing/{testbed.js → testbed.mjs} +23 -29
- package/fesm2015/testing/testbed.mjs.map +1 -0
- package/fesm2015/{testing.js → testing.mjs} +19 -45
- package/fesm2015/testing.mjs.map +1 -0
- package/fesm2015/text-field.mjs +455 -0
- package/fesm2015/text-field.mjs.map +1 -0
- package/fesm2015/{tree.js → tree.mjs} +198 -152
- package/fesm2015/tree.mjs.map +1 -0
- package/{fesm2015/a11y.js → fesm2020/a11y.mjs} +272 -233
- package/fesm2020/a11y.mjs.map +1 -0
- package/{fesm2015/accordion.js → fesm2020/accordion.mjs} +87 -57
- package/fesm2020/accordion.mjs.map +1 -0
- package/{fesm2015/bidi.js → fesm2020/bidi.mjs} +47 -31
- package/fesm2020/bidi.mjs.map +1 -0
- package/fesm2020/cdk.mjs +30 -0
- package/fesm2020/cdk.mjs.map +1 -0
- package/{fesm2015/clipboard.js → fesm2020/clipboard.mjs} +51 -40
- package/fesm2020/clipboard.mjs.map +1 -0
- package/fesm2020/coercion.mjs +132 -0
- package/fesm2020/coercion.mjs.map +1 -0
- package/fesm2020/collections.mjs +472 -0
- package/fesm2020/collections.mjs.map +1 -0
- package/{fesm2015/drag-drop.js → fesm2020/drag-drop.mjs} +523 -366
- package/fesm2020/drag-drop.mjs.map +1 -0
- package/fesm2020/keycodes.mjs +159 -0
- package/fesm2020/keycodes.mjs.map +1 -0
- package/fesm2020/layout.mjs +246 -0
- package/fesm2020/layout.mjs.map +1 -0
- package/fesm2020/observers.mjs +202 -0
- package/fesm2020/observers.mjs.map +1 -0
- package/{fesm2015/overlay.js → fesm2020/overlay.mjs} +312 -228
- package/fesm2020/overlay.mjs.map +1 -0
- package/{fesm2015/platform.js → fesm2020/platform.mjs} +52 -28
- package/fesm2020/platform.mjs.map +1 -0
- package/{fesm2015/portal.js → fesm2020/portal.mjs} +85 -64
- package/fesm2020/portal.mjs.map +1 -0
- package/{fesm2015/scrolling.js → fesm2020/scrolling.mjs} +213 -170
- package/fesm2020/scrolling.mjs.map +1 -0
- package/fesm2020/stepper.mjs +638 -0
- package/fesm2020/stepper.mjs.map +1 -0
- package/fesm2020/table.mjs +2295 -0
- package/fesm2020/table.mjs.map +1 -0
- package/fesm2020/testing/protractor.mjs +322 -0
- package/fesm2020/testing/protractor.mjs.map +1 -0
- package/fesm2020/testing/selenium-webdriver.mjs +362 -0
- package/fesm2020/testing/selenium-webdriver.mjs.map +1 -0
- package/fesm2020/testing/testbed.mjs +780 -0
- package/fesm2020/testing/testbed.mjs.map +1 -0
- package/fesm2020/testing.mjs +719 -0
- package/fesm2020/testing.mjs.map +1 -0
- package/{fesm2015/text-field.js → fesm2020/text-field.mjs} +83 -68
- package/fesm2020/text-field.mjs.map +1 -0
- package/fesm2020/tree.mjs +967 -0
- package/fesm2020/tree.mjs.map +1 -0
- package/keycodes/package.json +5 -5
- package/layout/breakpoints-observer.d.ts +3 -7
- package/layout/layout-module.d.ts +4 -0
- package/layout/media-matcher.d.ts +3 -0
- package/layout/package.json +5 -5
- package/observers/observe-content.d.ts +10 -0
- package/observers/package.json +5 -5
- package/overlay/dispatchers/base-overlay-dispatcher.d.ts +3 -7
- package/overlay/dispatchers/overlay-keyboard-dispatcher.d.ts +3 -7
- package/overlay/dispatchers/overlay-outside-click-dispatcher.d.ts +6 -7
- package/overlay/fullscreen-overlay-container.d.ts +3 -0
- package/overlay/index.d.ts +0 -2
- package/overlay/overlay-container.d.ts +3 -7
- package/overlay/overlay-directives.d.ts +5 -0
- package/overlay/overlay-module.d.ts +8 -7
- package/overlay/overlay.d.ts +3 -0
- package/overlay/package.json +5 -5
- package/overlay/position/flexible-connected-position-strategy.d.ts +2 -2
- package/overlay/position/overlay-position-builder.d.ts +3 -0
- package/overlay/position/scroll-clip.d.ts +5 -2
- package/overlay/scroll/index.d.ts +1 -1
- package/overlay/scroll/scroll-strategy-options.d.ts +3 -0
- package/package.json +219 -7
- package/platform/package.json +5 -5
- package/platform/platform-module.d.ts +4 -7
- package/platform/platform.d.ts +3 -7
- package/portal/package.json +5 -5
- package/portal/portal-directives.d.ts +12 -0
- package/schematics/ng-add/index.js +3 -3
- package/schematics/ng-add/index.mjs +3 -3
- package/schematics/ng-add/package-config.js +4 -2
- package/schematics/ng-add/package-config.mjs +4 -2
- package/schematics/ng-add/schema.js +1 -1
- package/schematics/ng-add/schema.mjs +1 -1
- package/schematics/ng-generate/drag-drop/index.js +6 -6
- package/schematics/ng-generate/drag-drop/index.mjs +6 -6
- package/schematics/ng-update/data/attribute-selectors.js +7 -5
- package/schematics/ng-update/data/attribute-selectors.mjs +7 -5
- package/schematics/ng-update/data/class-names.js +13 -11
- package/schematics/ng-update/data/class-names.mjs +13 -11
- package/schematics/ng-update/data/constructor-checks.js +28 -20
- package/schematics/ng-update/data/constructor-checks.mjs +28 -20
- package/schematics/ng-update/data/css-selectors.js +2 -2
- package/schematics/ng-update/data/css-selectors.mjs +2 -2
- package/schematics/ng-update/data/element-selectors.js +2 -2
- package/schematics/ng-update/data/element-selectors.mjs +2 -2
- package/schematics/ng-update/data/input-names.js +40 -16
- package/schematics/ng-update/data/input-names.mjs +40 -16
- package/schematics/ng-update/data/method-call-checks.js +32 -18
- package/schematics/ng-update/data/method-call-checks.mjs +32 -18
- package/schematics/ng-update/data/output-names.js +8 -6
- package/schematics/ng-update/data/output-names.mjs +8 -6
- package/schematics/ng-update/data/property-names.js +40 -32
- package/schematics/ng-update/data/property-names.mjs +40 -32
- package/schematics/ng-update/devkit-file-system.js +2 -2
- package/schematics/ng-update/devkit-file-system.mjs +2 -2
- package/schematics/ng-update/devkit-migration-rule.js +8 -7
- package/schematics/ng-update/devkit-migration-rule.mjs +8 -7
- package/schematics/ng-update/devkit-migration.d.ts +1 -1
- package/schematics/ng-update/devkit-migration.js +1 -1
- package/schematics/ng-update/devkit-migration.mjs +1 -1
- package/schematics/ng-update/find-stylesheets.js +3 -3
- package/schematics/ng-update/find-stylesheets.mjs +3 -3
- package/schematics/ng-update/html-parsing/angular.js +7 -7
- package/schematics/ng-update/html-parsing/angular.mjs +7 -7
- package/schematics/ng-update/html-parsing/elements.js +2 -2
- package/schematics/ng-update/html-parsing/elements.mjs +2 -2
- package/schematics/ng-update/index.js +11 -9
- package/schematics/ng-update/index.mjs +11 -9
- package/schematics/ng-update/migrations/attribute-selectors.js +11 -7
- package/schematics/ng-update/migrations/attribute-selectors.mjs +11 -7
- package/schematics/ng-update/migrations/class-inheritance.js +3 -3
- package/schematics/ng-update/migrations/class-inheritance.mjs +3 -3
- package/schematics/ng-update/migrations/class-names.js +7 -6
- package/schematics/ng-update/migrations/class-names.mjs +7 -6
- package/schematics/ng-update/migrations/constructor-signature.js +16 -13
- package/schematics/ng-update/migrations/constructor-signature.mjs +16 -13
- package/schematics/ng-update/migrations/css-selectors.js +7 -6
- package/schematics/ng-update/migrations/css-selectors.mjs +7 -6
- package/schematics/ng-update/migrations/element-selectors.js +7 -6
- package/schematics/ng-update/migrations/element-selectors.mjs +7 -6
- package/schematics/ng-update/migrations/input-names.js +8 -9
- package/schematics/ng-update/migrations/input-names.mjs +8 -9
- package/schematics/ng-update/migrations/method-call-arguments.js +4 -3
- package/schematics/ng-update/migrations/method-call-arguments.mjs +4 -3
- package/schematics/ng-update/migrations/misc-template.js +3 -3
- package/schematics/ng-update/migrations/misc-template.mjs +3 -3
- package/schematics/ng-update/migrations/output-names.js +7 -8
- package/schematics/ng-update/migrations/output-names.mjs +7 -8
- package/schematics/ng-update/migrations/property-names.js +4 -3
- package/schematics/ng-update/migrations/property-names.mjs +4 -3
- package/schematics/ng-update/migrations/symbol-removal.js +2 -2
- package/schematics/ng-update/migrations/symbol-removal.mjs +2 -2
- package/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.d.ts +14 -0
- package/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.js +38 -0
- package/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.mjs +38 -0
- package/schematics/ng-update/typescript/base-types.js +1 -1
- package/schematics/ng-update/typescript/base-types.mjs +1 -1
- package/schematics/ng-update/typescript/literal.d.ts +1 -1
- package/schematics/ng-update/typescript/literal.js +1 -1
- package/schematics/ng-update/typescript/literal.mjs +1 -1
- package/schematics/ng-update/typescript/module-specifiers.js +5 -5
- package/schematics/ng-update/typescript/module-specifiers.mjs +5 -5
- package/schematics/ng-update/upgrade-data.js +2 -2
- package/schematics/ng-update/upgrade-data.mjs +2 -2
- package/schematics/package.json +3 -0
- package/schematics/paths.js +3 -3
- package/schematics/paths.mjs +3 -3
- package/schematics/update-tool/component-resource-collector.js +10 -10
- package/schematics/update-tool/component-resource-collector.mjs +10 -10
- package/schematics/update-tool/file-system.js +1 -1
- package/schematics/update-tool/file-system.mjs +1 -1
- package/schematics/update-tool/index.d.ts +4 -1
- package/schematics/update-tool/index.js +9 -5
- package/schematics/update-tool/index.mjs +9 -5
- package/schematics/update-tool/migration.d.ts +1 -1
- package/schematics/update-tool/migration.js +1 -1
- package/schematics/update-tool/migration.mjs +1 -1
- package/schematics/update-tool/target-version.js +1 -1
- package/schematics/update-tool/target-version.mjs +1 -1
- package/schematics/update-tool/utils/decorators.js +8 -4
- package/schematics/update-tool/utils/decorators.mjs +8 -4
- package/schematics/update-tool/utils/functions.js +1 -1
- package/schematics/update-tool/utils/functions.mjs +1 -1
- package/schematics/update-tool/utils/imports.js +2 -2
- package/schematics/update-tool/utils/imports.mjs +2 -2
- package/schematics/update-tool/utils/line-mappings.js +1 -1
- package/schematics/update-tool/utils/line-mappings.mjs +1 -1
- package/schematics/update-tool/utils/parse-tsconfig.js +2 -2
- package/schematics/update-tool/utils/parse-tsconfig.mjs +2 -2
- package/schematics/update-tool/utils/property-name.js +1 -1
- package/schematics/update-tool/utils/property-name.mjs +1 -1
- package/schematics/update-tool/utils/virtual-host.d.ts +1 -1
- package/schematics/update-tool/utils/virtual-host.js +3 -3
- package/schematics/update-tool/utils/virtual-host.mjs +3 -3
- package/schematics/update-tool/version-changes.js +1 -1
- package/schematics/update-tool/version-changes.mjs +1 -1
- package/schematics/utils/ast/ng-module-imports.js +5 -3
- package/schematics/utils/ast/ng-module-imports.mjs +5 -3
- package/schematics/utils/ast.js +5 -5
- package/schematics/utils/ast.mjs +5 -5
- package/schematics/utils/build-component.js +32 -38
- package/schematics/utils/build-component.mjs +32 -38
- package/schematics/utils/get-project.js +1 -1
- package/schematics/utils/get-project.mjs +1 -1
- package/schematics/utils/html-manipulation.js +8 -7
- package/schematics/utils/html-manipulation.mjs +8 -7
- package/schematics/utils/parse5-element.js +9 -10
- package/schematics/utils/parse5-element.mjs +9 -10
- package/schematics/utils/project-index-file.js +2 -2
- package/schematics/utils/project-index-file.mjs +2 -2
- package/schematics/utils/project-main-file.js +2 -2
- package/schematics/utils/project-main-file.mjs +2 -2
- package/schematics/utils/project-style-file.js +7 -9
- package/schematics/utils/project-style-file.mjs +7 -9
- package/schematics/utils/project-targets.js +1 -1
- package/schematics/utils/project-targets.mjs +1 -1
- package/schematics/utils/project-tsconfig-paths.js +4 -4
- package/schematics/utils/project-tsconfig-paths.mjs +4 -4
- package/schematics/utils/schematic-options.js +7 -5
- package/schematics/utils/schematic-options.mjs +7 -5
- package/schematics/utils/vendored-ast-utils/index.js +17 -18
- package/schematics/utils/vendored-ast-utils/index.mjs +17 -18
- package/scrolling/fixed-size-virtual-scroll.d.ts +3 -0
- package/scrolling/package.json +5 -5
- package/scrolling/scroll-dispatcher.d.ts +3 -7
- package/scrolling/scrollable.d.ts +3 -0
- package/scrolling/scrolling-module.d.ts +13 -7
- package/scrolling/viewport-ruler.d.ts +11 -1
- package/scrolling/virtual-for-of.d.ts +3 -0
- package/scrolling/virtual-scroll-viewport.d.ts +3 -0
- package/stepper/package.json +5 -5
- package/stepper/step-header.d.ts +3 -0
- package/stepper/step-label.d.ts +3 -0
- package/stepper/stepper-button.d.ts +5 -7
- package/stepper/stepper-module.d.ts +9 -7
- package/stepper/stepper.d.ts +5 -7
- package/table/cell.d.ts +15 -0
- package/table/coalesced-style-scheduler.d.ts +3 -0
- package/table/package.json +5 -5
- package/table/row.d.ts +19 -0
- package/table/table-module.d.ts +9 -7
- package/table/table.d.ts +13 -0
- package/table/text-column.d.ts +3 -0
- package/testing/package.json +5 -5
- package/testing/protractor/package.json +5 -5
- package/testing/selenium-webdriver/package.json +5 -5
- package/testing/testbed/package.json +5 -5
- package/testing/testbed/proxy-zone-types.d.ts +1 -1
- package/testing/testbed/zone-types.d.ts +1 -1
- package/text-field/autofill.d.ts +5 -0
- package/text-field/autosize.d.ts +3 -0
- package/text-field/package.json +5 -5
- package/text-field/text-field-module.d.ts +7 -7
- package/tree/control/base-tree-control.d.ts +1 -1
- package/tree/control/nested-tree-control.d.ts +2 -2
- package/tree/nested-node.d.ts +3 -0
- package/tree/node.d.ts +3 -0
- package/tree/outlet.d.ts +3 -0
- package/tree/package.json +5 -5
- package/tree/padding.d.ts +3 -0
- package/tree/toggle.d.ts +3 -0
- package/tree/tree-module.d.ts +10 -7
- package/tree/tree.d.ts +5 -0
- package/a11y/index.metadata.json +0 -1
- package/accordion/index.metadata.json +0 -1
- package/bidi/index.metadata.json +0 -1
- package/bundles/cdk-a11y.umd.js +0 -2752
- package/bundles/cdk-a11y.umd.js.map +0 -1
- package/bundles/cdk-accordion.umd.js +0 -262
- package/bundles/cdk-accordion.umd.js.map +0 -1
- package/bundles/cdk-bidi.umd.js +0 -206
- package/bundles/cdk-bidi.umd.js.map +0 -1
- package/bundles/cdk-clipboard.umd.js +0 -278
- package/bundles/cdk-clipboard.umd.js.map +0 -1
- package/bundles/cdk-coercion.umd.js +0 -477
- package/bundles/cdk-coercion.umd.js.map +0 -1
- package/bundles/cdk-collections.umd.js +0 -846
- package/bundles/cdk-collections.umd.js.map +0 -1
- package/bundles/cdk-drag-drop.umd.js +0 -3915
- package/bundles/cdk-drag-drop.umd.js.map +0 -1
- package/bundles/cdk-keycodes.umd.js +0 -292
- package/bundles/cdk-keycodes.umd.js.map +0 -1
- package/bundles/cdk-layout.umd.js +0 -284
- package/bundles/cdk-layout.umd.js.map +0 -1
- package/bundles/cdk-observers.umd.js +0 -242
- package/bundles/cdk-observers.umd.js.map +0 -1
- package/bundles/cdk-overlay.umd.js +0 -3417
- package/bundles/cdk-overlay.umd.js.map +0 -1
- package/bundles/cdk-platform.umd.js +0 -397
- package/bundles/cdk-platform.umd.js.map +0 -1
- package/bundles/cdk-portal.umd.js +0 -1008
- package/bundles/cdk-portal.umd.js.map +0 -1
- package/bundles/cdk-scrolling.umd.js +0 -1787
- package/bundles/cdk-scrolling.umd.js.map +0 -1
- package/bundles/cdk-stepper.umd.js +0 -648
- package/bundles/cdk-stepper.umd.js.map +0 -1
- package/bundles/cdk-table.umd.js +0 -2730
- package/bundles/cdk-table.umd.js.map +0 -1
- package/bundles/cdk-testing-protractor.umd.js +0 -833
- package/bundles/cdk-testing-protractor.umd.js.map +0 -1
- package/bundles/cdk-testing-selenium-webdriver.umd.js +0 -1002
- package/bundles/cdk-testing-selenium-webdriver.umd.js.map +0 -1
- package/bundles/cdk-testing-testbed.umd.js +0 -1396
- package/bundles/cdk-testing-testbed.umd.js.map +0 -1
- package/bundles/cdk-testing.umd.js +0 -1285
- package/bundles/cdk-testing.umd.js.map +0 -1
- package/bundles/cdk-text-field.umd.js +0 -494
- package/bundles/cdk-text-field.umd.js.map +0 -1
- package/bundles/cdk-tree.umd.js +0 -1308
- package/bundles/cdk-tree.umd.js.map +0 -1
- package/bundles/cdk.umd.js +0 -38
- package/bundles/cdk.umd.js.map +0 -1
- package/clipboard/index.metadata.json +0 -1
- package/collections/index.metadata.json +0 -1
- package/drag-drop/index.metadata.json +0 -1
- package/esm2015/a11y/a11y-module.js +0 -30
- package/esm2015/a11y/a11y.externs.js +0 -6
- package/esm2015/a11y/aria-describer/aria-describer.js +0 -213
- package/esm2015/a11y/fake-event-detection.js +0 -28
- package/esm2015/a11y/focus-monitor/focus-monitor.js +0 -394
- package/esm2015/a11y/focus-trap/configurable-focus-trap-factory.js +0 -52
- package/esm2015/a11y/focus-trap/configurable-focus-trap.js +0 -49
- package/esm2015/a11y/focus-trap/event-listener-inert-strategy.js +0 -62
- package/esm2015/a11y/focus-trap/focus-trap-inert-strategy.js +0 -11
- package/esm2015/a11y/focus-trap/focus-trap-manager.js +0 -51
- package/esm2015/a11y/focus-trap/focus-trap.js +0 -391
- package/esm2015/a11y/high-contrast-mode/high-contrast-mode-detector.js +0 -92
- package/esm2015/a11y/index.js +0 -6
- package/esm2015/a11y/input-modality/input-modality-detector.js +0 -171
- package/esm2015/a11y/interactivity-checker/interactivity-checker.js +0 -237
- package/esm2015/a11y/key-manager/list-key-manager.js +0 -317
- package/esm2015/a11y/live-announcer/live-announcer-tokens.js +0 -19
- package/esm2015/a11y/live-announcer/live-announcer.js +0 -167
- package/esm2015/accordion/accordion-item.js +0 -146
- package/esm2015/accordion/accordion-module.js +0 -19
- package/esm2015/accordion/accordion.externs.js +0 -6
- package/esm2015/accordion/accordion.js +0 -63
- package/esm2015/accordion/index.js +0 -6
- package/esm2015/bidi/bidi-module.js +0 -18
- package/esm2015/bidi/bidi.externs.js +0 -6
- package/esm2015/bidi/dir.js +0 -58
- package/esm2015/bidi/directionality.js +0 -44
- package/esm2015/bidi/index.js +0 -6
- package/esm2015/cdk.externs.js +0 -0
- package/esm2015/clipboard/clipboard-module.js +0 -18
- package/esm2015/clipboard/clipboard.externs.js +0 -6
- package/esm2015/clipboard/clipboard.js +0 -52
- package/esm2015/clipboard/copy-to-clipboard.js +0 -90
- package/esm2015/clipboard/pending-copy.js +0 -68
- package/esm2015/coercion/coercion.externs.js +0 -0
- package/esm2015/collections/collection-viewer.js +0 -9
- package/esm2015/collections/collections.externs.js +0 -6
- package/esm2015/collections/dispose-view-repeater-strategy.js +0 -48
- package/esm2015/collections/recycle-view-repeater-strategy.js +0 -125
- package/esm2015/collections/tree-adapter.js +0 -9
- package/esm2015/collections/unique-selection-dispatcher.js +0 -53
- package/esm2015/collections/view-repeater.js +0 -14
- package/esm2015/drag-drop/client-rect.js +0 -60
- package/esm2015/drag-drop/clone-node.js +0 -65
- package/esm2015/drag-drop/directives/assertions.js +0 -19
- package/esm2015/drag-drop/directives/drag-handle.js +0 -57
- package/esm2015/drag-drop/directives/drag-placeholder.js +0 -36
- package/esm2015/drag-drop/directives/drag-preview.js +0 -42
- package/esm2015/drag-drop/directives/drag.js +0 -407
- package/esm2015/drag-drop/directives/drop-list-group.js +0 -47
- package/esm2015/drag-drop/directives/drop-list.js +0 -301
- package/esm2015/drag-drop/drag-drop-module.js +0 -43
- package/esm2015/drag-drop/drag-drop-registry.js +0 -231
- package/esm2015/drag-drop/drag-drop.externs.js +0 -6
- package/esm2015/drag-drop/drag-drop.js +0 -59
- package/esm2015/drag-drop/drag-events.js +0 -9
- package/esm2015/drag-drop/drag-ref.js +0 -1110
- package/esm2015/drag-drop/drag-styling.js +0 -69
- package/esm2015/drag-drop/drag-utils.js +0 -60
- package/esm2015/drag-drop/drop-list-ref.js +0 -813
- package/esm2015/drag-drop/transition-duration.js +0 -36
- package/esm2015/keycodes/keycodes.externs.js +0 -6
- package/esm2015/layout/breakpoints-observer.js +0 -106
- package/esm2015/layout/layout-module.js +0 -14
- package/esm2015/layout/layout.externs.js +0 -6
- package/esm2015/layout/media-matcher.js +0 -85
- package/esm2015/observers/observe-content.js +0 -179
- package/esm2015/observers/observers.externs.js +0 -6
- package/esm2015/overlay/dispatchers/base-overlay-dispatcher.js +0 -51
- package/esm2015/overlay/dispatchers/overlay-keyboard-dispatcher.js +0 -62
- package/esm2015/overlay/dispatchers/overlay-outside-click-dispatcher.js +0 -97
- package/esm2015/overlay/fullscreen-overlay-container.js +0 -94
- package/esm2015/overlay/index.js +0 -7
- package/esm2015/overlay/overlay-config.js +0 -45
- package/esm2015/overlay/overlay-container.js +0 -85
- package/esm2015/overlay/overlay-directives.js +0 -352
- package/esm2015/overlay/overlay-module.js +0 -27
- package/esm2015/overlay/overlay-ref.js +0 -409
- package/esm2015/overlay/overlay.externs.js +0 -6
- package/esm2015/overlay/overlay.js +0 -119
- package/esm2015/overlay/position/connected-position.js +0 -94
- package/esm2015/overlay/position/flexible-connected-position-strategy.js +0 -960
- package/esm2015/overlay/position/global-position-strategy.js +0 -197
- package/esm2015/overlay/position/overlay-position-builder.js +0 -52
- package/esm2015/overlay/position/scroll-clip.js +0 -42
- package/esm2015/overlay/scroll/close-scroll-strategy.js +0 -61
- package/esm2015/overlay/scroll/scroll-strategy-options.js +0 -57
- package/esm2015/platform/features/passive-listeners.js +0 -36
- package/esm2015/platform/features/scrolling.js +0 -85
- package/esm2015/platform/features/test-environment.js +0 -16
- package/esm2015/platform/platform-module.js +0 -14
- package/esm2015/platform/platform.externs.js +0 -6
- package/esm2015/platform/platform.js +0 -77
- package/esm2015/portal/dom-portal-outlet.js +0 -136
- package/esm2015/portal/portal-directives.js +0 -221
- package/esm2015/portal/portal-injector.js +0 -28
- package/esm2015/portal/portal.externs.js +0 -6
- package/esm2015/portal/portal.js +0 -179
- package/esm2015/scrolling/fixed-size-virtual-scroll.js +0 -188
- package/esm2015/scrolling/scroll-dispatcher.js +0 -163
- package/esm2015/scrolling/scrollable.js +0 -173
- package/esm2015/scrolling/scrolling-module.js +0 -49
- package/esm2015/scrolling/scrolling.externs.js +0 -6
- package/esm2015/scrolling/viewport-ruler.js +0 -139
- package/esm2015/scrolling/virtual-for-of.js +0 -293
- package/esm2015/scrolling/virtual-scroll-strategy.js +0 -11
- package/esm2015/scrolling/virtual-scroll-viewport.js +0 -371
- package/esm2015/stepper/step-header.js +0 -29
- package/esm2015/stepper/step-label.js +0 -22
- package/esm2015/stepper/stepper-button.js +0 -72
- package/esm2015/stepper/stepper-module.js +0 -37
- package/esm2015/stepper/stepper.externs.js +0 -6
- package/esm2015/stepper/stepper.js +0 -428
- package/esm2015/table/can-stick.js +0 -42
- package/esm2015/table/cell.js +0 -211
- package/esm2015/table/coalesced-style-scheduler.js +0 -89
- package/esm2015/table/row.js +0 -244
- package/esm2015/table/sticky-position-listener.js +0 -11
- package/esm2015/table/sticky-styler.js +0 -336
- package/esm2015/table/table-module.js +0 -47
- package/esm2015/table/table.externs.js +0 -6
- package/esm2015/table/table.js +0 -987
- package/esm2015/table/text-column.js +0 -127
- package/esm2015/testing/change-detection.js +0 -110
- package/esm2015/testing/component-harness.js +0 -344
- package/esm2015/testing/harness-environment.js +0 -219
- package/esm2015/testing/protractor/protractor-element.js +0 -274
- package/esm2015/testing/protractor/protractor-harness-environment.js +0 -79
- package/esm2015/testing/protractor/protractor.externs.js +0 -0
- package/esm2015/testing/selenium-webdriver/selenium-web-driver-element.js +0 -241
- package/esm2015/testing/selenium-webdriver/selenium-web-driver-harness-environment.js +0 -97
- package/esm2015/testing/selenium-webdriver/selenium-webdriver.externs.js +0 -0
- package/esm2015/testing/test-element.js +0 -48
- package/esm2015/testing/testbed/fake-events/dispatch-events.js +0 -53
- package/esm2015/testing/testbed/fake-events/element-focus.js +0 -39
- package/esm2015/testing/testbed/fake-events/event-objects.js +0 -107
- package/esm2015/testing/testbed/fake-events/type-in-element.js +0 -79
- package/esm2015/testing/testbed/task-state-zone-interceptor.js +0 -82
- package/esm2015/testing/testbed/testbed-harness-environment.js +0 -173
- package/esm2015/testing/testbed/testbed.externs.js +0 -0
- package/esm2015/testing/testbed/unit-test-element.js +0 -266
- package/esm2015/testing/testing.externs.js +0 -0
- package/esm2015/testing/text-filtering.js +0 -23
- package/esm2015/text-field/autofill.js +0 -117
- package/esm2015/text-field/autosize.js +0 -293
- package/esm2015/text-field/text-field-module.js +0 -21
- package/esm2015/text-field/text-field.externs.js +0 -6
- package/esm2015/tree/control/nested-tree-control.js +0 -59
- package/esm2015/tree/nested-node.js +0 -112
- package/esm2015/tree/node.js +0 -36
- package/esm2015/tree/outlet.js +0 -34
- package/esm2015/tree/padding.js +0 -119
- package/esm2015/tree/toggle.js +0 -46
- package/esm2015/tree/tree-module.js +0 -32
- package/esm2015/tree/tree.externs.js +0 -6
- package/esm2015/tree/tree.js +0 -345
- package/fesm2015/a11y.js.map +0 -1
- package/fesm2015/accordion.js.map +0 -1
- package/fesm2015/bidi.js.map +0 -1
- package/fesm2015/cdk.js.map +0 -1
- package/fesm2015/clipboard.js.map +0 -1
- package/fesm2015/coercion.js.map +0 -1
- package/fesm2015/collections.js.map +0 -1
- package/fesm2015/drag-drop.js.map +0 -1
- package/fesm2015/keycodes.js.map +0 -1
- package/fesm2015/layout.js.map +0 -1
- package/fesm2015/observers.js.map +0 -1
- package/fesm2015/overlay.js.map +0 -1
- package/fesm2015/platform.js.map +0 -1
- package/fesm2015/portal.js.map +0 -1
- package/fesm2015/scrolling.js.map +0 -1
- package/fesm2015/stepper.js.map +0 -1
- package/fesm2015/table.js.map +0 -1
- package/fesm2015/testing/protractor.js.map +0 -1
- package/fesm2015/testing/selenium-webdriver.js.map +0 -1
- package/fesm2015/testing/testbed.js.map +0 -1
- package/fesm2015/testing.js.map +0 -1
- package/fesm2015/text-field.js.map +0 -1
- package/fesm2015/tree.js.map +0 -1
- package/keycodes/index.metadata.json +0 -1
- package/layout/index.metadata.json +0 -1
- package/observers/index.metadata.json +0 -1
- package/overlay/index.metadata.json +0 -1
- package/platform/index.metadata.json +0 -1
- package/portal/index.metadata.json +0 -1
- package/scrolling/index.metadata.json +0 -1
- package/stepper/index.metadata.json +0 -1
- package/table/index.metadata.json +0 -1
- package/text-field/index.metadata.json +0 -1
- package/tree/index.metadata.json +0 -1
|
@@ -0,0 +1,638 @@
|
|
|
1
|
+
import { FocusKeyManager } from '@angular/cdk/a11y';
|
|
2
|
+
import * as i1 from '@angular/cdk/bidi';
|
|
3
|
+
import { BidiModule } from '@angular/cdk/bidi';
|
|
4
|
+
import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
|
|
5
|
+
import { hasModifierKey, SPACE, ENTER } from '@angular/cdk/keycodes';
|
|
6
|
+
import { DOCUMENT } from '@angular/common';
|
|
7
|
+
import * as i0 from '@angular/core';
|
|
8
|
+
import { Directive, InjectionToken, EventEmitter, forwardRef, TemplateRef, Component, ViewEncapsulation, ChangeDetectionStrategy, Inject, Optional, ContentChild, ViewChild, Input, Output, QueryList, ContentChildren, HostListener, NgModule } from '@angular/core';
|
|
9
|
+
import { _getFocusedElementPierceShadowDom } from '@angular/cdk/platform';
|
|
10
|
+
import { Subject, of } from 'rxjs';
|
|
11
|
+
import { startWith, takeUntil } from 'rxjs/operators';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @license
|
|
15
|
+
* Copyright Google LLC All Rights Reserved.
|
|
16
|
+
*
|
|
17
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
18
|
+
* found in the LICENSE file at https://angular.io/license
|
|
19
|
+
*/
|
|
20
|
+
class CdkStepHeader {
|
|
21
|
+
constructor(_elementRef) {
|
|
22
|
+
this._elementRef = _elementRef;
|
|
23
|
+
}
|
|
24
|
+
/** Focuses the step header. */
|
|
25
|
+
focus() {
|
|
26
|
+
this._elementRef.nativeElement.focus();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
CdkStepHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkStepHeader, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
30
|
+
CdkStepHeader.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkStepHeader, selector: "[cdkStepHeader]", host: { attributes: { "role": "tab" } }, ngImport: i0 });
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkStepHeader, decorators: [{
|
|
32
|
+
type: Directive,
|
|
33
|
+
args: [{
|
|
34
|
+
selector: '[cdkStepHeader]',
|
|
35
|
+
host: {
|
|
36
|
+
'role': 'tab',
|
|
37
|
+
},
|
|
38
|
+
}]
|
|
39
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @license
|
|
43
|
+
* Copyright Google LLC All Rights Reserved.
|
|
44
|
+
*
|
|
45
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
46
|
+
* found in the LICENSE file at https://angular.io/license
|
|
47
|
+
*/
|
|
48
|
+
class CdkStepLabel {
|
|
49
|
+
constructor(/** @docs-private */ template) {
|
|
50
|
+
this.template = template;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
CdkStepLabel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkStepLabel, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
54
|
+
CdkStepLabel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkStepLabel, selector: "[cdkStepLabel]", ngImport: i0 });
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkStepLabel, decorators: [{
|
|
56
|
+
type: Directive,
|
|
57
|
+
args: [{
|
|
58
|
+
selector: '[cdkStepLabel]',
|
|
59
|
+
}]
|
|
60
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @license
|
|
64
|
+
* Copyright Google LLC All Rights Reserved.
|
|
65
|
+
*
|
|
66
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
67
|
+
* found in the LICENSE file at https://angular.io/license
|
|
68
|
+
*/
|
|
69
|
+
/** Used to generate unique ID for each stepper component. */
|
|
70
|
+
let nextId = 0;
|
|
71
|
+
/** Change event emitted on selection changes. */
|
|
72
|
+
class StepperSelectionEvent {
|
|
73
|
+
}
|
|
74
|
+
/** Enum to represent the different states of the steps. */
|
|
75
|
+
const STEP_STATE = {
|
|
76
|
+
NUMBER: 'number',
|
|
77
|
+
EDIT: 'edit',
|
|
78
|
+
DONE: 'done',
|
|
79
|
+
ERROR: 'error',
|
|
80
|
+
};
|
|
81
|
+
/** InjectionToken that can be used to specify the global stepper options. */
|
|
82
|
+
const STEPPER_GLOBAL_OPTIONS = new InjectionToken('STEPPER_GLOBAL_OPTIONS');
|
|
83
|
+
class CdkStep {
|
|
84
|
+
constructor(_stepper, stepperOptions) {
|
|
85
|
+
this._stepper = _stepper;
|
|
86
|
+
/** Whether user has attempted to move away from the step. */
|
|
87
|
+
this.interacted = false;
|
|
88
|
+
/** Emits when the user has attempted to move away from the step. */
|
|
89
|
+
this.interactedStream = new EventEmitter();
|
|
90
|
+
this._editable = true;
|
|
91
|
+
this._optional = false;
|
|
92
|
+
this._completedOverride = null;
|
|
93
|
+
this._customError = null;
|
|
94
|
+
this._stepperOptions = stepperOptions ? stepperOptions : {};
|
|
95
|
+
this._displayDefaultIndicatorType = this._stepperOptions.displayDefaultIndicatorType !== false;
|
|
96
|
+
}
|
|
97
|
+
/** Whether the user can return to this step once it has been marked as completed. */
|
|
98
|
+
get editable() {
|
|
99
|
+
return this._editable;
|
|
100
|
+
}
|
|
101
|
+
set editable(value) {
|
|
102
|
+
this._editable = coerceBooleanProperty(value);
|
|
103
|
+
}
|
|
104
|
+
/** Whether the completion of step is optional. */
|
|
105
|
+
get optional() {
|
|
106
|
+
return this._optional;
|
|
107
|
+
}
|
|
108
|
+
set optional(value) {
|
|
109
|
+
this._optional = coerceBooleanProperty(value);
|
|
110
|
+
}
|
|
111
|
+
/** Whether step is marked as completed. */
|
|
112
|
+
get completed() {
|
|
113
|
+
return this._completedOverride == null ? this._getDefaultCompleted() : this._completedOverride;
|
|
114
|
+
}
|
|
115
|
+
set completed(value) {
|
|
116
|
+
this._completedOverride = coerceBooleanProperty(value);
|
|
117
|
+
}
|
|
118
|
+
_getDefaultCompleted() {
|
|
119
|
+
return this.stepControl ? this.stepControl.valid && this.interacted : this.interacted;
|
|
120
|
+
}
|
|
121
|
+
/** Whether step has an error. */
|
|
122
|
+
get hasError() {
|
|
123
|
+
return this._customError == null ? this._getDefaultError() : this._customError;
|
|
124
|
+
}
|
|
125
|
+
set hasError(value) {
|
|
126
|
+
this._customError = coerceBooleanProperty(value);
|
|
127
|
+
}
|
|
128
|
+
_getDefaultError() {
|
|
129
|
+
return this.stepControl && this.stepControl.invalid && this.interacted;
|
|
130
|
+
}
|
|
131
|
+
/** Selects this step component. */
|
|
132
|
+
select() {
|
|
133
|
+
this._stepper.selected = this;
|
|
134
|
+
}
|
|
135
|
+
/** Resets the step to its initial state. Note that this includes resetting form data. */
|
|
136
|
+
reset() {
|
|
137
|
+
this.interacted = false;
|
|
138
|
+
if (this._completedOverride != null) {
|
|
139
|
+
this._completedOverride = false;
|
|
140
|
+
}
|
|
141
|
+
if (this._customError != null) {
|
|
142
|
+
this._customError = false;
|
|
143
|
+
}
|
|
144
|
+
if (this.stepControl) {
|
|
145
|
+
this.stepControl.reset();
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
ngOnChanges() {
|
|
149
|
+
// Since basically all inputs of the MatStep get proxied through the view down to the
|
|
150
|
+
// underlying MatStepHeader, we have to make sure that change detection runs correctly.
|
|
151
|
+
this._stepper._stateChanged();
|
|
152
|
+
}
|
|
153
|
+
_markAsInteracted() {
|
|
154
|
+
if (!this.interacted) {
|
|
155
|
+
this.interacted = true;
|
|
156
|
+
this.interactedStream.emit(this);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
/** Determines whether the error state can be shown. */
|
|
160
|
+
_showError() {
|
|
161
|
+
// We want to show the error state either if the user opted into/out of it using the
|
|
162
|
+
// global options, or if they've explicitly set it through the `hasError` input.
|
|
163
|
+
return this._stepperOptions.showError ?? this._customError != null;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
CdkStep.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkStep, deps: [{ token: forwardRef(() => CdkStepper) }, { token: STEPPER_GLOBAL_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
167
|
+
CdkStep.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkStep, selector: "cdk-step", inputs: { stepControl: "stepControl", label: "label", errorMessage: "errorMessage", ariaLabel: ["aria-label", "ariaLabel"], ariaLabelledby: ["aria-labelledby", "ariaLabelledby"], state: "state", editable: "editable", optional: "optional", completed: "completed", hasError: "hasError" }, outputs: { interactedStream: "interacted" }, queries: [{ propertyName: "stepLabel", first: true, predicate: CdkStepLabel, descendants: true }], viewQueries: [{ propertyName: "content", first: true, predicate: TemplateRef, descendants: true, static: true }], exportAs: ["cdkStep"], usesOnChanges: true, ngImport: i0, template: '<ng-template><ng-content></ng-content></ng-template>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkStep, decorators: [{
|
|
169
|
+
type: Component,
|
|
170
|
+
args: [{
|
|
171
|
+
selector: 'cdk-step',
|
|
172
|
+
exportAs: 'cdkStep',
|
|
173
|
+
template: '<ng-template><ng-content></ng-content></ng-template>',
|
|
174
|
+
encapsulation: ViewEncapsulation.None,
|
|
175
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
176
|
+
}]
|
|
177
|
+
}], ctorParameters: function () { return [{ type: CdkStepper, decorators: [{
|
|
178
|
+
type: Inject,
|
|
179
|
+
args: [forwardRef(() => CdkStepper)]
|
|
180
|
+
}] }, { type: undefined, decorators: [{
|
|
181
|
+
type: Optional
|
|
182
|
+
}, {
|
|
183
|
+
type: Inject,
|
|
184
|
+
args: [STEPPER_GLOBAL_OPTIONS]
|
|
185
|
+
}] }]; }, propDecorators: { stepLabel: [{
|
|
186
|
+
type: ContentChild,
|
|
187
|
+
args: [CdkStepLabel]
|
|
188
|
+
}], content: [{
|
|
189
|
+
type: ViewChild,
|
|
190
|
+
args: [TemplateRef, { static: true }]
|
|
191
|
+
}], stepControl: [{
|
|
192
|
+
type: Input
|
|
193
|
+
}], interactedStream: [{
|
|
194
|
+
type: Output,
|
|
195
|
+
args: ['interacted']
|
|
196
|
+
}], label: [{
|
|
197
|
+
type: Input
|
|
198
|
+
}], errorMessage: [{
|
|
199
|
+
type: Input
|
|
200
|
+
}], ariaLabel: [{
|
|
201
|
+
type: Input,
|
|
202
|
+
args: ['aria-label']
|
|
203
|
+
}], ariaLabelledby: [{
|
|
204
|
+
type: Input,
|
|
205
|
+
args: ['aria-labelledby']
|
|
206
|
+
}], state: [{
|
|
207
|
+
type: Input
|
|
208
|
+
}], editable: [{
|
|
209
|
+
type: Input
|
|
210
|
+
}], optional: [{
|
|
211
|
+
type: Input
|
|
212
|
+
}], completed: [{
|
|
213
|
+
type: Input
|
|
214
|
+
}], hasError: [{
|
|
215
|
+
type: Input
|
|
216
|
+
}] } });
|
|
217
|
+
class CdkStepper {
|
|
218
|
+
constructor(_dir, _changeDetectorRef, _elementRef,
|
|
219
|
+
/**
|
|
220
|
+
* @deprecated No longer in use, to be removed.
|
|
221
|
+
* @breaking-change 13.0.0
|
|
222
|
+
*/
|
|
223
|
+
_document) {
|
|
224
|
+
this._dir = _dir;
|
|
225
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
226
|
+
this._elementRef = _elementRef;
|
|
227
|
+
/** Emits when the component is destroyed. */
|
|
228
|
+
this._destroyed = new Subject();
|
|
229
|
+
/** Steps that belong to the current stepper, excluding ones from nested steppers. */
|
|
230
|
+
this.steps = new QueryList();
|
|
231
|
+
/** List of step headers sorted based on their DOM order. */
|
|
232
|
+
this._sortedHeaders = new QueryList();
|
|
233
|
+
this._linear = false;
|
|
234
|
+
this._selectedIndex = 0;
|
|
235
|
+
/** Event emitted when the selected step has changed. */
|
|
236
|
+
this.selectionChange = new EventEmitter();
|
|
237
|
+
/**
|
|
238
|
+
* @deprecated To be turned into a private property. Use `orientation` instead.
|
|
239
|
+
* @breaking-change 13.0.0
|
|
240
|
+
*/
|
|
241
|
+
this._orientation = 'horizontal';
|
|
242
|
+
this._groupId = nextId++;
|
|
243
|
+
}
|
|
244
|
+
/** Whether the validity of previous steps should be checked or not. */
|
|
245
|
+
get linear() {
|
|
246
|
+
return this._linear;
|
|
247
|
+
}
|
|
248
|
+
set linear(value) {
|
|
249
|
+
this._linear = coerceBooleanProperty(value);
|
|
250
|
+
}
|
|
251
|
+
/** The index of the selected step. */
|
|
252
|
+
get selectedIndex() {
|
|
253
|
+
return this._selectedIndex;
|
|
254
|
+
}
|
|
255
|
+
set selectedIndex(index) {
|
|
256
|
+
const newIndex = coerceNumberProperty(index);
|
|
257
|
+
if (this.steps && this._steps) {
|
|
258
|
+
// Ensure that the index can't be out of bounds.
|
|
259
|
+
if (!this._isValidIndex(index) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
260
|
+
throw Error('cdkStepper: Cannot assign out-of-bounds value to `selectedIndex`.');
|
|
261
|
+
}
|
|
262
|
+
this.selected?._markAsInteracted();
|
|
263
|
+
if (this._selectedIndex !== newIndex &&
|
|
264
|
+
!this._anyControlsInvalidOrPending(newIndex) &&
|
|
265
|
+
(newIndex >= this._selectedIndex || this.steps.toArray()[newIndex].editable)) {
|
|
266
|
+
this._updateSelectedItemIndex(index);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
else {
|
|
270
|
+
this._selectedIndex = newIndex;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
/** The step that is selected. */
|
|
274
|
+
get selected() {
|
|
275
|
+
return this.steps ? this.steps.toArray()[this.selectedIndex] : undefined;
|
|
276
|
+
}
|
|
277
|
+
set selected(step) {
|
|
278
|
+
this.selectedIndex = step && this.steps ? this.steps.toArray().indexOf(step) : -1;
|
|
279
|
+
}
|
|
280
|
+
/** Orientation of the stepper. */
|
|
281
|
+
get orientation() {
|
|
282
|
+
return this._orientation;
|
|
283
|
+
}
|
|
284
|
+
set orientation(value) {
|
|
285
|
+
// This is a protected method so that `MatSteppter` can hook into it.
|
|
286
|
+
this._orientation = value;
|
|
287
|
+
if (this._keyManager) {
|
|
288
|
+
this._keyManager.withVerticalOrientation(value === 'vertical');
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
ngAfterContentInit() {
|
|
292
|
+
this._steps.changes
|
|
293
|
+
.pipe(startWith(this._steps), takeUntil(this._destroyed))
|
|
294
|
+
.subscribe((steps) => {
|
|
295
|
+
this.steps.reset(steps.filter(step => step._stepper === this));
|
|
296
|
+
this.steps.notifyOnChanges();
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
ngAfterViewInit() {
|
|
300
|
+
// If the step headers are defined outside of the `ngFor` that renders the steps, like in the
|
|
301
|
+
// Material stepper, they won't appear in the `QueryList` in the same order as they're
|
|
302
|
+
// rendered in the DOM which will lead to incorrect keyboard navigation. We need to sort
|
|
303
|
+
// them manually to ensure that they're correct. Alternatively, we can change the Material
|
|
304
|
+
// template to inline the headers in the `ngFor`, but that'll result in a lot of
|
|
305
|
+
// code duplciation. See #23539.
|
|
306
|
+
this._stepHeader.changes
|
|
307
|
+
.pipe(startWith(this._stepHeader), takeUntil(this._destroyed))
|
|
308
|
+
.subscribe((headers) => {
|
|
309
|
+
this._sortedHeaders.reset(headers.toArray().sort((a, b) => {
|
|
310
|
+
const documentPosition = a._elementRef.nativeElement.compareDocumentPosition(b._elementRef.nativeElement);
|
|
311
|
+
// `compareDocumentPosition` returns a bitmask so we have to use a bitwise operator.
|
|
312
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
|
|
313
|
+
// tslint:disable-next-line:no-bitwise
|
|
314
|
+
return documentPosition & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
315
|
+
}));
|
|
316
|
+
this._sortedHeaders.notifyOnChanges();
|
|
317
|
+
});
|
|
318
|
+
// Note that while the step headers are content children by default, any components that
|
|
319
|
+
// extend this one might have them as view children. We initialize the keyboard handling in
|
|
320
|
+
// AfterViewInit so we're guaranteed for both view and content children to be defined.
|
|
321
|
+
this._keyManager = new FocusKeyManager(this._sortedHeaders)
|
|
322
|
+
.withWrap()
|
|
323
|
+
.withHomeAndEnd()
|
|
324
|
+
.withVerticalOrientation(this._orientation === 'vertical');
|
|
325
|
+
(this._dir ? this._dir.change : of())
|
|
326
|
+
.pipe(startWith(this._layoutDirection()), takeUntil(this._destroyed))
|
|
327
|
+
.subscribe(direction => this._keyManager.withHorizontalOrientation(direction));
|
|
328
|
+
this._keyManager.updateActiveItem(this._selectedIndex);
|
|
329
|
+
// No need to `takeUntil` here, because we're the ones destroying `steps`.
|
|
330
|
+
this.steps.changes.subscribe(() => {
|
|
331
|
+
if (!this.selected) {
|
|
332
|
+
this._selectedIndex = Math.max(this._selectedIndex - 1, 0);
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
// The logic which asserts that the selected index is within bounds doesn't run before the
|
|
336
|
+
// steps are initialized, because we don't how many steps there are yet so we may have an
|
|
337
|
+
// invalid index on init. If that's the case, auto-correct to the default so we don't throw.
|
|
338
|
+
if (!this._isValidIndex(this._selectedIndex)) {
|
|
339
|
+
this._selectedIndex = 0;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
ngOnDestroy() {
|
|
343
|
+
this.steps.destroy();
|
|
344
|
+
this._sortedHeaders.destroy();
|
|
345
|
+
this._destroyed.next();
|
|
346
|
+
this._destroyed.complete();
|
|
347
|
+
}
|
|
348
|
+
/** Selects and focuses the next step in list. */
|
|
349
|
+
next() {
|
|
350
|
+
this.selectedIndex = Math.min(this._selectedIndex + 1, this.steps.length - 1);
|
|
351
|
+
}
|
|
352
|
+
/** Selects and focuses the previous step in list. */
|
|
353
|
+
previous() {
|
|
354
|
+
this.selectedIndex = Math.max(this._selectedIndex - 1, 0);
|
|
355
|
+
}
|
|
356
|
+
/** Resets the stepper to its initial state. Note that this includes clearing form data. */
|
|
357
|
+
reset() {
|
|
358
|
+
this._updateSelectedItemIndex(0);
|
|
359
|
+
this.steps.forEach(step => step.reset());
|
|
360
|
+
this._stateChanged();
|
|
361
|
+
}
|
|
362
|
+
/** Returns a unique id for each step label element. */
|
|
363
|
+
_getStepLabelId(i) {
|
|
364
|
+
return `cdk-step-label-${this._groupId}-${i}`;
|
|
365
|
+
}
|
|
366
|
+
/** Returns unique id for each step content element. */
|
|
367
|
+
_getStepContentId(i) {
|
|
368
|
+
return `cdk-step-content-${this._groupId}-${i}`;
|
|
369
|
+
}
|
|
370
|
+
/** Marks the component to be change detected. */
|
|
371
|
+
_stateChanged() {
|
|
372
|
+
this._changeDetectorRef.markForCheck();
|
|
373
|
+
}
|
|
374
|
+
/** Returns position state of the step with the given index. */
|
|
375
|
+
_getAnimationDirection(index) {
|
|
376
|
+
const position = index - this._selectedIndex;
|
|
377
|
+
if (position < 0) {
|
|
378
|
+
return this._layoutDirection() === 'rtl' ? 'next' : 'previous';
|
|
379
|
+
}
|
|
380
|
+
else if (position > 0) {
|
|
381
|
+
return this._layoutDirection() === 'rtl' ? 'previous' : 'next';
|
|
382
|
+
}
|
|
383
|
+
return 'current';
|
|
384
|
+
}
|
|
385
|
+
/** Returns the type of icon to be displayed. */
|
|
386
|
+
_getIndicatorType(index, state = STEP_STATE.NUMBER) {
|
|
387
|
+
const step = this.steps.toArray()[index];
|
|
388
|
+
const isCurrentStep = this._isCurrentStep(index);
|
|
389
|
+
return step._displayDefaultIndicatorType
|
|
390
|
+
? this._getDefaultIndicatorLogic(step, isCurrentStep)
|
|
391
|
+
: this._getGuidelineLogic(step, isCurrentStep, state);
|
|
392
|
+
}
|
|
393
|
+
_getDefaultIndicatorLogic(step, isCurrentStep) {
|
|
394
|
+
if (step._showError() && step.hasError && !isCurrentStep) {
|
|
395
|
+
return STEP_STATE.ERROR;
|
|
396
|
+
}
|
|
397
|
+
else if (!step.completed || isCurrentStep) {
|
|
398
|
+
return STEP_STATE.NUMBER;
|
|
399
|
+
}
|
|
400
|
+
else {
|
|
401
|
+
return step.editable ? STEP_STATE.EDIT : STEP_STATE.DONE;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
_getGuidelineLogic(step, isCurrentStep, state = STEP_STATE.NUMBER) {
|
|
405
|
+
if (step._showError() && step.hasError && !isCurrentStep) {
|
|
406
|
+
return STEP_STATE.ERROR;
|
|
407
|
+
}
|
|
408
|
+
else if (step.completed && !isCurrentStep) {
|
|
409
|
+
return STEP_STATE.DONE;
|
|
410
|
+
}
|
|
411
|
+
else if (step.completed && isCurrentStep) {
|
|
412
|
+
return state;
|
|
413
|
+
}
|
|
414
|
+
else if (step.editable && isCurrentStep) {
|
|
415
|
+
return STEP_STATE.EDIT;
|
|
416
|
+
}
|
|
417
|
+
else {
|
|
418
|
+
return state;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
_isCurrentStep(index) {
|
|
422
|
+
return this._selectedIndex === index;
|
|
423
|
+
}
|
|
424
|
+
/** Returns the index of the currently-focused step header. */
|
|
425
|
+
_getFocusIndex() {
|
|
426
|
+
return this._keyManager ? this._keyManager.activeItemIndex : this._selectedIndex;
|
|
427
|
+
}
|
|
428
|
+
_updateSelectedItemIndex(newIndex) {
|
|
429
|
+
const stepsArray = this.steps.toArray();
|
|
430
|
+
this.selectionChange.emit({
|
|
431
|
+
selectedIndex: newIndex,
|
|
432
|
+
previouslySelectedIndex: this._selectedIndex,
|
|
433
|
+
selectedStep: stepsArray[newIndex],
|
|
434
|
+
previouslySelectedStep: stepsArray[this._selectedIndex],
|
|
435
|
+
});
|
|
436
|
+
// If focus is inside the stepper, move it to the next header, otherwise it may become
|
|
437
|
+
// lost when the active step content is hidden. We can't be more granular with the check
|
|
438
|
+
// (e.g. checking whether focus is inside the active step), because we don't have a
|
|
439
|
+
// reference to the elements that are rendering out the content.
|
|
440
|
+
this._containsFocus()
|
|
441
|
+
? this._keyManager.setActiveItem(newIndex)
|
|
442
|
+
: this._keyManager.updateActiveItem(newIndex);
|
|
443
|
+
this._selectedIndex = newIndex;
|
|
444
|
+
this._stateChanged();
|
|
445
|
+
}
|
|
446
|
+
_onKeydown(event) {
|
|
447
|
+
const hasModifier = hasModifierKey(event);
|
|
448
|
+
const keyCode = event.keyCode;
|
|
449
|
+
const manager = this._keyManager;
|
|
450
|
+
if (manager.activeItemIndex != null &&
|
|
451
|
+
!hasModifier &&
|
|
452
|
+
(keyCode === SPACE || keyCode === ENTER)) {
|
|
453
|
+
this.selectedIndex = manager.activeItemIndex;
|
|
454
|
+
event.preventDefault();
|
|
455
|
+
}
|
|
456
|
+
else {
|
|
457
|
+
manager.onKeydown(event);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
_anyControlsInvalidOrPending(index) {
|
|
461
|
+
if (this._linear && index >= 0) {
|
|
462
|
+
return this.steps
|
|
463
|
+
.toArray()
|
|
464
|
+
.slice(0, index)
|
|
465
|
+
.some(step => {
|
|
466
|
+
const control = step.stepControl;
|
|
467
|
+
const isIncomplete = control
|
|
468
|
+
? control.invalid || control.pending || !step.interacted
|
|
469
|
+
: !step.completed;
|
|
470
|
+
return isIncomplete && !step.optional && !step._completedOverride;
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
return false;
|
|
474
|
+
}
|
|
475
|
+
_layoutDirection() {
|
|
476
|
+
return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';
|
|
477
|
+
}
|
|
478
|
+
/** Checks whether the stepper contains the focused element. */
|
|
479
|
+
_containsFocus() {
|
|
480
|
+
const stepperElement = this._elementRef.nativeElement;
|
|
481
|
+
const focusedElement = _getFocusedElementPierceShadowDom();
|
|
482
|
+
return stepperElement === focusedElement || stepperElement.contains(focusedElement);
|
|
483
|
+
}
|
|
484
|
+
/** Checks whether the passed-in index is a valid step index. */
|
|
485
|
+
_isValidIndex(index) {
|
|
486
|
+
return index > -1 && (!this.steps || index < this.steps.length);
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
CdkStepper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkStepper, deps: [{ token: i1.Directionality, optional: true }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });
|
|
490
|
+
CdkStepper.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkStepper, selector: "[cdkStepper]", inputs: { linear: "linear", selectedIndex: "selectedIndex", selected: "selected", orientation: "orientation" }, outputs: { selectionChange: "selectionChange" }, queries: [{ propertyName: "_steps", predicate: CdkStep, descendants: true }, { propertyName: "_stepHeader", predicate: CdkStepHeader, descendants: true }], exportAs: ["cdkStepper"], ngImport: i0 });
|
|
491
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkStepper, decorators: [{
|
|
492
|
+
type: Directive,
|
|
493
|
+
args: [{
|
|
494
|
+
selector: '[cdkStepper]',
|
|
495
|
+
exportAs: 'cdkStepper',
|
|
496
|
+
}]
|
|
497
|
+
}], ctorParameters: function () { return [{ type: i1.Directionality, decorators: [{
|
|
498
|
+
type: Optional
|
|
499
|
+
}] }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
500
|
+
type: Inject,
|
|
501
|
+
args: [DOCUMENT]
|
|
502
|
+
}] }]; }, propDecorators: { _steps: [{
|
|
503
|
+
type: ContentChildren,
|
|
504
|
+
args: [CdkStep, { descendants: true }]
|
|
505
|
+
}], _stepHeader: [{
|
|
506
|
+
type: ContentChildren,
|
|
507
|
+
args: [CdkStepHeader, { descendants: true }]
|
|
508
|
+
}], linear: [{
|
|
509
|
+
type: Input
|
|
510
|
+
}], selectedIndex: [{
|
|
511
|
+
type: Input
|
|
512
|
+
}], selected: [{
|
|
513
|
+
type: Input
|
|
514
|
+
}], selectionChange: [{
|
|
515
|
+
type: Output
|
|
516
|
+
}], orientation: [{
|
|
517
|
+
type: Input
|
|
518
|
+
}] } });
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* @license
|
|
522
|
+
* Copyright Google LLC All Rights Reserved.
|
|
523
|
+
*
|
|
524
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
525
|
+
* found in the LICENSE file at https://angular.io/license
|
|
526
|
+
*/
|
|
527
|
+
/** Button that moves to the next step in a stepper workflow. */
|
|
528
|
+
class CdkStepperNext {
|
|
529
|
+
constructor(_stepper) {
|
|
530
|
+
this._stepper = _stepper;
|
|
531
|
+
/** Type of the next button. Defaults to "submit" if not specified. */
|
|
532
|
+
this.type = 'submit';
|
|
533
|
+
}
|
|
534
|
+
// We have to use a `HostListener` here in order to support both Ivy and ViewEngine.
|
|
535
|
+
// In Ivy the `host` bindings will be merged when this class is extended, whereas in
|
|
536
|
+
// ViewEngine they're overwritten.
|
|
537
|
+
// TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.
|
|
538
|
+
// tslint:disable-next-line:no-host-decorator-in-concrete
|
|
539
|
+
_handleClick() {
|
|
540
|
+
this._stepper.next();
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
CdkStepperNext.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkStepperNext, deps: [{ token: CdkStepper }], target: i0.ɵɵFactoryTarget.Directive });
|
|
544
|
+
CdkStepperNext.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkStepperNext, selector: "button[cdkStepperNext]", inputs: { type: "type" }, host: { listeners: { "click": "_handleClick()" }, properties: { "type": "type" } }, ngImport: i0 });
|
|
545
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkStepperNext, decorators: [{
|
|
546
|
+
type: Directive,
|
|
547
|
+
args: [{
|
|
548
|
+
selector: 'button[cdkStepperNext]',
|
|
549
|
+
host: {
|
|
550
|
+
'[type]': 'type',
|
|
551
|
+
},
|
|
552
|
+
}]
|
|
553
|
+
}], ctorParameters: function () { return [{ type: CdkStepper }]; }, propDecorators: { type: [{
|
|
554
|
+
type: Input
|
|
555
|
+
}], _handleClick: [{
|
|
556
|
+
type: HostListener,
|
|
557
|
+
args: ['click']
|
|
558
|
+
}] } });
|
|
559
|
+
/** Button that moves to the previous step in a stepper workflow. */
|
|
560
|
+
class CdkStepperPrevious {
|
|
561
|
+
constructor(_stepper) {
|
|
562
|
+
this._stepper = _stepper;
|
|
563
|
+
/** Type of the previous button. Defaults to "button" if not specified. */
|
|
564
|
+
this.type = 'button';
|
|
565
|
+
}
|
|
566
|
+
// We have to use a `HostListener` here in order to support both Ivy and ViewEngine.
|
|
567
|
+
// In Ivy the `host` bindings will be merged when this class is extended, whereas in
|
|
568
|
+
// ViewEngine they're overwritten.
|
|
569
|
+
// TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.
|
|
570
|
+
// tslint:disable-next-line:no-host-decorator-in-concrete
|
|
571
|
+
_handleClick() {
|
|
572
|
+
this._stepper.previous();
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
CdkStepperPrevious.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkStepperPrevious, deps: [{ token: CdkStepper }], target: i0.ɵɵFactoryTarget.Directive });
|
|
576
|
+
CdkStepperPrevious.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkStepperPrevious, selector: "button[cdkStepperPrevious]", inputs: { type: "type" }, host: { listeners: { "click": "_handleClick()" }, properties: { "type": "type" } }, ngImport: i0 });
|
|
577
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkStepperPrevious, decorators: [{
|
|
578
|
+
type: Directive,
|
|
579
|
+
args: [{
|
|
580
|
+
selector: 'button[cdkStepperPrevious]',
|
|
581
|
+
host: {
|
|
582
|
+
'[type]': 'type',
|
|
583
|
+
},
|
|
584
|
+
}]
|
|
585
|
+
}], ctorParameters: function () { return [{ type: CdkStepper }]; }, propDecorators: { type: [{
|
|
586
|
+
type: Input
|
|
587
|
+
}], _handleClick: [{
|
|
588
|
+
type: HostListener,
|
|
589
|
+
args: ['click']
|
|
590
|
+
}] } });
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* @license
|
|
594
|
+
* Copyright Google LLC All Rights Reserved.
|
|
595
|
+
*
|
|
596
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
597
|
+
* found in the LICENSE file at https://angular.io/license
|
|
598
|
+
*/
|
|
599
|
+
class CdkStepperModule {
|
|
600
|
+
}
|
|
601
|
+
CdkStepperModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkStepperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
602
|
+
CdkStepperModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkStepperModule, declarations: [CdkStep,
|
|
603
|
+
CdkStepper,
|
|
604
|
+
CdkStepHeader,
|
|
605
|
+
CdkStepLabel,
|
|
606
|
+
CdkStepperNext,
|
|
607
|
+
CdkStepperPrevious], imports: [BidiModule], exports: [CdkStep, CdkStepper, CdkStepHeader, CdkStepLabel, CdkStepperNext, CdkStepperPrevious] });
|
|
608
|
+
CdkStepperModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkStepperModule, imports: [[BidiModule]] });
|
|
609
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkStepperModule, decorators: [{
|
|
610
|
+
type: NgModule,
|
|
611
|
+
args: [{
|
|
612
|
+
imports: [BidiModule],
|
|
613
|
+
exports: [CdkStep, CdkStepper, CdkStepHeader, CdkStepLabel, CdkStepperNext, CdkStepperPrevious],
|
|
614
|
+
declarations: [
|
|
615
|
+
CdkStep,
|
|
616
|
+
CdkStepper,
|
|
617
|
+
CdkStepHeader,
|
|
618
|
+
CdkStepLabel,
|
|
619
|
+
CdkStepperNext,
|
|
620
|
+
CdkStepperPrevious,
|
|
621
|
+
],
|
|
622
|
+
}]
|
|
623
|
+
}] });
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* @license
|
|
627
|
+
* Copyright Google LLC All Rights Reserved.
|
|
628
|
+
*
|
|
629
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
630
|
+
* found in the LICENSE file at https://angular.io/license
|
|
631
|
+
*/
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* Generated bundle index. Do not edit.
|
|
635
|
+
*/
|
|
636
|
+
|
|
637
|
+
export { CdkStep, CdkStepHeader, CdkStepLabel, CdkStepper, CdkStepperModule, CdkStepperNext, CdkStepperPrevious, STEPPER_GLOBAL_OPTIONS, STEP_STATE, StepperSelectionEvent };
|
|
638
|
+
//# sourceMappingURL=stepper.mjs.map
|