@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
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable,
|
|
3
|
-
import * as i1 from '@angular/common';
|
|
2
|
+
import { Injectable, Inject, InjectionToken, Directive, Input, EventEmitter, Optional, SkipSelf, Output, Self, ContentChildren, ContentChild, NgModule } from '@angular/core';
|
|
4
3
|
import { DOCUMENT } from '@angular/common';
|
|
5
|
-
import * as
|
|
6
|
-
import {
|
|
4
|
+
import * as i1 from '@angular/cdk/scrolling';
|
|
5
|
+
import { CdkScrollableModule } from '@angular/cdk/scrolling';
|
|
7
6
|
import { _getEventTarget, normalizePassiveListenerOptions, _getShadowRoot } from '@angular/cdk/platform';
|
|
8
7
|
import { coerceBooleanProperty, coerceElement, coerceArray, coerceNumberProperty } from '@angular/cdk/coercion';
|
|
9
8
|
import { isFakeTouchstartFromScreenReader, isFakeMousedownFromScreenReader } from '@angular/cdk/a11y';
|
|
10
9
|
import { Subject, Subscription, interval, animationFrameScheduler, Observable, merge } from 'rxjs';
|
|
11
10
|
import { takeUntil, startWith, map, take, tap, switchMap } from 'rxjs/operators';
|
|
12
|
-
import
|
|
11
|
+
import * as i3 from '@angular/cdk/bidi';
|
|
13
12
|
|
|
14
13
|
/**
|
|
15
14
|
* @license
|
|
@@ -28,7 +27,7 @@ function extendStyles(dest, source, importantProperties) {
|
|
|
28
27
|
if (source.hasOwnProperty(key)) {
|
|
29
28
|
const value = source[key];
|
|
30
29
|
if (value) {
|
|
31
|
-
dest.setProperty(key, value,
|
|
30
|
+
dest.setProperty(key, value, importantProperties?.has(key) ? 'important' : '');
|
|
32
31
|
}
|
|
33
32
|
else {
|
|
34
33
|
dest.removeProperty(key);
|
|
@@ -52,7 +51,7 @@ function toggleNativeDragInteractions(element, enable) {
|
|
|
52
51
|
'user-select': userSelect,
|
|
53
52
|
'-ms-user-select': userSelect,
|
|
54
53
|
'-webkit-user-select': userSelect,
|
|
55
|
-
'-moz-user-select': userSelect
|
|
54
|
+
'-moz-user-select': userSelect,
|
|
56
55
|
});
|
|
57
56
|
}
|
|
58
57
|
/**
|
|
@@ -67,7 +66,7 @@ function toggleVisibility(element, enable, importantProperties) {
|
|
|
67
66
|
position: enable ? '' : 'fixed',
|
|
68
67
|
top: enable ? '' : '0',
|
|
69
68
|
opacity: enable ? '' : '0',
|
|
70
|
-
left: enable ? '' : '-999em'
|
|
69
|
+
left: enable ? '' : '-999em',
|
|
71
70
|
}, importantProperties);
|
|
72
71
|
}
|
|
73
72
|
/**
|
|
@@ -75,9 +74,9 @@ function toggleVisibility(element, enable, importantProperties) {
|
|
|
75
74
|
* that exited before the base transform was applied.
|
|
76
75
|
*/
|
|
77
76
|
function combineTransforms(transform, initialTransform) {
|
|
78
|
-
return initialTransform && initialTransform != 'none'
|
|
79
|
-
|
|
80
|
-
transform;
|
|
77
|
+
return initialTransform && initialTransform != 'none'
|
|
78
|
+
? transform + ' ' + initialTransform
|
|
79
|
+
: transform;
|
|
81
80
|
}
|
|
82
81
|
|
|
83
82
|
/**
|
|
@@ -107,8 +106,8 @@ function getTransformTransitionDurationInMs(element) {
|
|
|
107
106
|
const propertyIndex = transitionedProperties.indexOf(property);
|
|
108
107
|
const rawDurations = parseCssPropertyValue(computedStyle, 'transition-duration');
|
|
109
108
|
const rawDelays = parseCssPropertyValue(computedStyle, 'transition-delay');
|
|
110
|
-
return parseCssTimeUnitsToMs(rawDurations[propertyIndex]) +
|
|
111
|
-
parseCssTimeUnitsToMs(rawDelays[propertyIndex]);
|
|
109
|
+
return (parseCssTimeUnitsToMs(rawDurations[propertyIndex]) +
|
|
110
|
+
parseCssTimeUnitsToMs(rawDelays[propertyIndex]));
|
|
112
111
|
}
|
|
113
112
|
/** Parses out multiple values from a computed style into an array. */
|
|
114
113
|
function parseCssPropertyValue(computedStyle, name) {
|
|
@@ -136,7 +135,9 @@ function getMutableClientRect(element) {
|
|
|
136
135
|
bottom: clientRect.bottom,
|
|
137
136
|
left: clientRect.left,
|
|
138
137
|
width: clientRect.width,
|
|
139
|
-
height: clientRect.height
|
|
138
|
+
height: clientRect.height,
|
|
139
|
+
x: clientRect.x,
|
|
140
|
+
y: clientRect.y,
|
|
140
141
|
};
|
|
141
142
|
}
|
|
142
143
|
/**
|
|
@@ -172,8 +173,10 @@ function isPointerNearClientRect(rect, threshold, pointerX, pointerY) {
|
|
|
172
173
|
const { top, right, bottom, left, width, height } = rect;
|
|
173
174
|
const xThreshold = width * threshold;
|
|
174
175
|
const yThreshold = height * threshold;
|
|
175
|
-
return pointerY > top - yThreshold &&
|
|
176
|
-
|
|
176
|
+
return (pointerY > top - yThreshold &&
|
|
177
|
+
pointerY < bottom + yThreshold &&
|
|
178
|
+
pointerX > left - xThreshold &&
|
|
179
|
+
pointerX < right + xThreshold);
|
|
177
180
|
}
|
|
178
181
|
|
|
179
182
|
/**
|
|
@@ -204,7 +207,7 @@ class ParentPositionTracker {
|
|
|
204
207
|
elements.forEach(element => {
|
|
205
208
|
this.positions.set(element, {
|
|
206
209
|
scrollPosition: { top: element.scrollTop, left: element.scrollLeft },
|
|
207
|
-
clientRect: getMutableClientRect(element)
|
|
210
|
+
clientRect: getMutableClientRect(element),
|
|
208
211
|
});
|
|
209
212
|
});
|
|
210
213
|
}
|
|
@@ -303,7 +306,7 @@ function transferCanvasData(source, clone) {
|
|
|
303
306
|
try {
|
|
304
307
|
context.drawImage(source, 0, 0);
|
|
305
308
|
}
|
|
306
|
-
catch
|
|
309
|
+
catch { }
|
|
307
310
|
}
|
|
308
311
|
}
|
|
309
312
|
|
|
@@ -328,7 +331,7 @@ const MOUSE_EVENT_IGNORE_TIME = 800;
|
|
|
328
331
|
/** Inline styles to be set as `!important` while dragging. */
|
|
329
332
|
const dragImportantProperties = new Set([
|
|
330
333
|
// Needs to be important, because some `mat-table` sets `position: sticky !important`. See #22781.
|
|
331
|
-
'position'
|
|
334
|
+
'position',
|
|
332
335
|
]);
|
|
333
336
|
/**
|
|
334
337
|
* Reference to a draggable item. Used to manipulate or dispose of the item.
|
|
@@ -484,7 +487,7 @@ class DragRef {
|
|
|
484
487
|
pointerPosition: constrainedPointerPosition,
|
|
485
488
|
event,
|
|
486
489
|
distance: this._getDragDistance(constrainedPointerPosition),
|
|
487
|
-
delta: this._pointerDirectionDelta
|
|
490
|
+
delta: this._pointerDirectionDelta,
|
|
488
491
|
});
|
|
489
492
|
});
|
|
490
493
|
}
|
|
@@ -610,9 +613,9 @@ class DragRef {
|
|
|
610
613
|
if (this.isDragging()) {
|
|
611
614
|
// Since we move out the element to the end of the body while it's being
|
|
612
615
|
// dragged, we have to make sure that it's removed if it gets destroyed.
|
|
613
|
-
|
|
616
|
+
this._rootElement?.remove();
|
|
614
617
|
}
|
|
615
|
-
|
|
618
|
+
this._anchor?.remove();
|
|
616
619
|
this._destroyPreview();
|
|
617
620
|
this._destroyPlaceholder();
|
|
618
621
|
this._dragDropRegistry.removeDragItem(this);
|
|
@@ -630,8 +633,14 @@ class DragRef {
|
|
|
630
633
|
this._dropContainer = undefined;
|
|
631
634
|
this._resizeSubscription.unsubscribe();
|
|
632
635
|
this._parentPositions.clear();
|
|
633
|
-
this._boundaryElement =
|
|
634
|
-
this.
|
|
636
|
+
this._boundaryElement =
|
|
637
|
+
this._rootElement =
|
|
638
|
+
this._ownerSVGElement =
|
|
639
|
+
this._placeholderTemplate =
|
|
640
|
+
this._previewTemplate =
|
|
641
|
+
this._anchor =
|
|
642
|
+
this._parentDragRef =
|
|
643
|
+
null;
|
|
635
644
|
}
|
|
636
645
|
/** Checks whether the element is currently being dragged. */
|
|
637
646
|
isDragging() {
|
|
@@ -715,22 +724,14 @@ class DragRef {
|
|
|
715
724
|
}
|
|
716
725
|
/** Destroys the preview element and its ViewRef. */
|
|
717
726
|
_destroyPreview() {
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
}
|
|
721
|
-
if (this._previewRef) {
|
|
722
|
-
this._previewRef.destroy();
|
|
723
|
-
}
|
|
727
|
+
this._preview?.remove();
|
|
728
|
+
this._previewRef?.destroy();
|
|
724
729
|
this._preview = this._previewRef = null;
|
|
725
730
|
}
|
|
726
731
|
/** Destroys the placeholder element and its ViewRef. */
|
|
727
732
|
_destroyPlaceholder() {
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
}
|
|
731
|
-
if (this._placeholderRef) {
|
|
732
|
-
this._placeholderRef.destroy();
|
|
733
|
-
}
|
|
733
|
+
this._placeholder?.remove();
|
|
734
|
+
this._placeholderRef?.destroy();
|
|
734
735
|
this._placeholder = this._placeholderRef = null;
|
|
735
736
|
}
|
|
736
737
|
/**
|
|
@@ -775,7 +776,7 @@ class DragRef {
|
|
|
775
776
|
this.ended.next({
|
|
776
777
|
source: this,
|
|
777
778
|
distance: this._getDragDistance(pointerPosition),
|
|
778
|
-
dropPoint: pointerPosition
|
|
779
|
+
dropPoint: pointerPosition,
|
|
779
780
|
});
|
|
780
781
|
});
|
|
781
782
|
this._cleanupCachedDimensions();
|
|
@@ -792,8 +793,8 @@ class DragRef {
|
|
|
792
793
|
if (dropContainer) {
|
|
793
794
|
const element = this._rootElement;
|
|
794
795
|
const parent = element.parentNode;
|
|
795
|
-
const placeholder = this._placeholder = this._createPlaceholderElement();
|
|
796
|
-
const anchor = this._anchor = this._anchor || this._document.createComment('');
|
|
796
|
+
const placeholder = (this._placeholder = this._createPlaceholderElement());
|
|
797
|
+
const anchor = (this._anchor = this._anchor || this._document.createComment(''));
|
|
797
798
|
// Needs to happen before the root element is moved.
|
|
798
799
|
const shadowRoot = this._getShadowRoot();
|
|
799
800
|
// Insert an anchor node so that we can restore the element's position in the DOM.
|
|
@@ -840,10 +841,12 @@ class DragRef {
|
|
|
840
841
|
const isAuxiliaryMouseButton = !isTouchSequence && event.button !== 0;
|
|
841
842
|
const rootElement = this._rootElement;
|
|
842
843
|
const target = _getEventTarget(event);
|
|
843
|
-
const isSyntheticEvent = !isTouchSequence &&
|
|
844
|
+
const isSyntheticEvent = !isTouchSequence &&
|
|
845
|
+
this._lastTouchEventTime &&
|
|
844
846
|
this._lastTouchEventTime + MOUSE_EVENT_IGNORE_TIME > Date.now();
|
|
845
|
-
const isFakeEvent = isTouchSequence
|
|
846
|
-
|
|
847
|
+
const isFakeEvent = isTouchSequence
|
|
848
|
+
? isFakeTouchstartFromScreenReader(event)
|
|
849
|
+
: isFakeMousedownFromScreenReader(event);
|
|
847
850
|
// If the event started from an element with the native HTML drag&drop, it'll interfere
|
|
848
851
|
// with our own dragging (e.g. `img` tags do it by default). Prevent the default action
|
|
849
852
|
// to stop it from happening. Note that preventing on `dragstart` also seems to work, but
|
|
@@ -861,8 +864,9 @@ class DragRef {
|
|
|
861
864
|
// otherwise iOS will still add it, even though all the drag interactions on the handle
|
|
862
865
|
// are disabled.
|
|
863
866
|
if (this._handles.length) {
|
|
864
|
-
|
|
865
|
-
|
|
867
|
+
const rootStyles = rootElement.style;
|
|
868
|
+
this._rootElementTapHighlight = rootStyles.webkitTapHighlightColor || '';
|
|
869
|
+
rootStyles.webkitTapHighlightColor = 'transparent';
|
|
866
870
|
}
|
|
867
871
|
this._hasStartedDragging = this._hasMoved = false;
|
|
868
872
|
// Avoid multiple subscriptions and memory leaks when multi touch
|
|
@@ -880,11 +884,13 @@ class DragRef {
|
|
|
880
884
|
// it next to the cursor. The exception is when the consumer has opted into making the preview
|
|
881
885
|
// the same size as the root element, in which case we do know the size.
|
|
882
886
|
const previewTemplate = this._previewTemplate;
|
|
883
|
-
this._pickupPositionInElement =
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
887
|
+
this._pickupPositionInElement =
|
|
888
|
+
previewTemplate && previewTemplate.template && !previewTemplate.matchSize
|
|
889
|
+
? { x: 0, y: 0 }
|
|
890
|
+
: this._getPointerPositionInElement(referenceElement, event);
|
|
891
|
+
const pointerPosition = (this._pickupPositionOnPage =
|
|
892
|
+
this._lastKnownPointerPosition =
|
|
893
|
+
this._getPointerPositionOnPage(event));
|
|
888
894
|
this._pointerDirectionDelta = { x: 0, y: 0 };
|
|
889
895
|
this._pointerPositionAtLastDirectionChange = { x: pointerPosition.x, y: pointerPosition.y };
|
|
890
896
|
this._dragStartTime = Date.now();
|
|
@@ -917,7 +923,7 @@ class DragRef {
|
|
|
917
923
|
previousContainer: this._initialContainer,
|
|
918
924
|
isPointerOverContainer,
|
|
919
925
|
distance,
|
|
920
|
-
dropPoint: pointerPosition
|
|
926
|
+
dropPoint: pointerPosition,
|
|
921
927
|
});
|
|
922
928
|
container.drop(this, currentIndex, this._initialIndex, this._initialContainer, isPointerOverContainer, distance, pointerPosition);
|
|
923
929
|
this._dropContainer = this._initialContainer;
|
|
@@ -934,7 +940,8 @@ class DragRef {
|
|
|
934
940
|
// initial container, check whether the it's over the initial container. This handles the
|
|
935
941
|
// case where two containers are connected one way and the user tries to undo dragging an
|
|
936
942
|
// item into a new container.
|
|
937
|
-
if (!newContainer &&
|
|
943
|
+
if (!newContainer &&
|
|
944
|
+
this._dropContainer !== this._initialContainer &&
|
|
938
945
|
this._initialContainer._isOverContainer(x, y)) {
|
|
939
946
|
newContainer = this._initialContainer;
|
|
940
947
|
}
|
|
@@ -948,11 +955,13 @@ class DragRef {
|
|
|
948
955
|
this._dropContainer.enter(this, x, y, newContainer === this._initialContainer &&
|
|
949
956
|
// If we're re-entering the initial container and sorting is disabled,
|
|
950
957
|
// put item the into its starting index to begin with.
|
|
951
|
-
newContainer.sortingDisabled
|
|
958
|
+
newContainer.sortingDisabled
|
|
959
|
+
? this._initialIndex
|
|
960
|
+
: undefined);
|
|
952
961
|
this.entered.next({
|
|
953
962
|
item: this,
|
|
954
963
|
container: newContainer,
|
|
955
|
-
currentIndex: newContainer.getItemIndex(this)
|
|
964
|
+
currentIndex: newContainer.getItemIndex(this),
|
|
956
965
|
});
|
|
957
966
|
});
|
|
958
967
|
}
|
|
@@ -984,8 +993,7 @@ class DragRef {
|
|
|
984
993
|
matchElementSize(preview, rootRect);
|
|
985
994
|
}
|
|
986
995
|
else {
|
|
987
|
-
preview.style.transform =
|
|
988
|
-
getTransform(this._pickupPositionOnPage.x, this._pickupPositionOnPage.y);
|
|
996
|
+
preview.style.transform = getTransform(this._pickupPositionOnPage.x, this._pickupPositionOnPage.y);
|
|
989
997
|
}
|
|
990
998
|
}
|
|
991
999
|
else {
|
|
@@ -1005,7 +1013,7 @@ class DragRef {
|
|
|
1005
1013
|
'position': 'fixed',
|
|
1006
1014
|
'top': '0',
|
|
1007
1015
|
'left': '0',
|
|
1008
|
-
'z-index': `${this._config.zIndex || 1000}
|
|
1016
|
+
'z-index': `${this._config.zIndex || 1000}`,
|
|
1009
1017
|
}, dragImportantProperties);
|
|
1010
1018
|
toggleNativeDragInteractions(preview, false);
|
|
1011
1019
|
preview.classList.add('cdk-drag-preview');
|
|
@@ -1045,9 +1053,9 @@ class DragRef {
|
|
|
1045
1053
|
return this._ngZone.runOutsideAngular(() => {
|
|
1046
1054
|
return new Promise(resolve => {
|
|
1047
1055
|
const handler = ((event) => {
|
|
1048
|
-
if (!event ||
|
|
1049
|
-
event.propertyName === 'transform')) {
|
|
1050
|
-
this._preview
|
|
1056
|
+
if (!event ||
|
|
1057
|
+
(_getEventTarget(event) === this._preview && event.propertyName === 'transform')) {
|
|
1058
|
+
this._preview?.removeEventListener('transitionend', handler);
|
|
1051
1059
|
resolve();
|
|
1052
1060
|
clearTimeout(timeout);
|
|
1053
1061
|
}
|
|
@@ -1091,21 +1099,22 @@ class DragRef {
|
|
|
1091
1099
|
const y = point.pageY - referenceRect.top - scrollPosition.top;
|
|
1092
1100
|
return {
|
|
1093
1101
|
x: referenceRect.left - elementRect.left + x,
|
|
1094
|
-
y: referenceRect.top - elementRect.top + y
|
|
1102
|
+
y: referenceRect.top - elementRect.top + y,
|
|
1095
1103
|
};
|
|
1096
1104
|
}
|
|
1097
1105
|
/** Determines the point of the page that was touched by the user. */
|
|
1098
1106
|
_getPointerPositionOnPage(event) {
|
|
1099
1107
|
const scrollPosition = this._getViewportScrollPosition();
|
|
1100
|
-
const point = isTouchEvent(event)
|
|
1101
|
-
// `touches` will be empty for start/end events so we have to fall back to `changedTouches`.
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1108
|
+
const point = isTouchEvent(event)
|
|
1109
|
+
? // `touches` will be empty for start/end events so we have to fall back to `changedTouches`.
|
|
1110
|
+
// Also note that on real devices we're guaranteed for either `touches` or `changedTouches`
|
|
1111
|
+
// to have a value, but Firefox in device emulation mode has a bug where both can be empty
|
|
1112
|
+
// for `touchstart` and `touchend` so we fall back to a dummy object in order to avoid
|
|
1113
|
+
// throwing an error. The value returned here will be incorrect, but since this only
|
|
1114
|
+
// breaks inside a developer tool and the value is only used for secondary information,
|
|
1115
|
+
// we can get away with it. See https://bugzilla.mozilla.org/show_bug.cgi?id=1615824.
|
|
1116
|
+
event.touches[0] || event.changedTouches[0] || { pageX: 0, pageY: 0 }
|
|
1117
|
+
: event;
|
|
1109
1118
|
const x = point.pageX - scrollPosition.left;
|
|
1110
1119
|
const y = point.pageY - scrollPosition.top;
|
|
1111
1120
|
// if dragging SVG element, try to convert from the screen coordinate system to the SVG
|
|
@@ -1208,10 +1217,9 @@ class DragRef {
|
|
|
1208
1217
|
* @param y New transform value along the Y axis.
|
|
1209
1218
|
*/
|
|
1210
1219
|
_applyPreviewTransform(x, y) {
|
|
1211
|
-
var _a;
|
|
1212
1220
|
// Only apply the initial transform if the preview is a clone of the original element, otherwise
|
|
1213
1221
|
// it could be completely different and the transform might not make sense anymore.
|
|
1214
|
-
const initialTransform =
|
|
1222
|
+
const initialTransform = this._previewTemplate?.template ? undefined : this._initialTransform;
|
|
1215
1223
|
const transform = getTransform(x, y);
|
|
1216
1224
|
this._preview.style.transform = combineTransforms(transform, initialTransform);
|
|
1217
1225
|
}
|
|
@@ -1300,7 +1308,8 @@ class DragRef {
|
|
|
1300
1308
|
const target = _getEventTarget(event);
|
|
1301
1309
|
// ClientRect dimensions are based on the scroll position of the page and its parent
|
|
1302
1310
|
// node so we have to update the cached boundary ClientRect if the user has scrolled.
|
|
1303
|
-
if (this._boundaryRect &&
|
|
1311
|
+
if (this._boundaryRect &&
|
|
1312
|
+
target !== this._boundaryElement &&
|
|
1304
1313
|
target.contains(this._boundaryElement)) {
|
|
1305
1314
|
adjustClientRect(this._boundaryRect, scrollDifference.top, scrollDifference.left);
|
|
1306
1315
|
}
|
|
@@ -1318,8 +1327,9 @@ class DragRef {
|
|
|
1318
1327
|
/** Gets the scroll position of the viewport. */
|
|
1319
1328
|
_getViewportScrollPosition() {
|
|
1320
1329
|
const cachedPosition = this._parentPositions.positions.get(this._document);
|
|
1321
|
-
return cachedPosition
|
|
1322
|
-
|
|
1330
|
+
return cachedPosition
|
|
1331
|
+
? cachedPosition.scrollPosition
|
|
1332
|
+
: this._viewportRuler.getViewportScrollPosition();
|
|
1323
1333
|
}
|
|
1324
1334
|
/**
|
|
1325
1335
|
* Lazily resolves and returns the shadow root of the element. We do this in a function, rather
|
|
@@ -1344,12 +1354,12 @@ class DragRef {
|
|
|
1344
1354
|
// We can't use the body if the user is in fullscreen mode,
|
|
1345
1355
|
// because the preview will render under the fullscreen element.
|
|
1346
1356
|
// TODO(crisbeto): dedupe this with the `FullscreenOverlayContainer` eventually.
|
|
1347
|
-
return shadowRoot ||
|
|
1357
|
+
return (shadowRoot ||
|
|
1348
1358
|
documentRef.fullscreenElement ||
|
|
1349
1359
|
documentRef.webkitFullscreenElement ||
|
|
1350
1360
|
documentRef.mozFullScreenElement ||
|
|
1351
1361
|
documentRef.msFullscreenElement ||
|
|
1352
|
-
documentRef.body;
|
|
1362
|
+
documentRef.body);
|
|
1353
1363
|
}
|
|
1354
1364
|
return coerceElement(previewContainer);
|
|
1355
1365
|
}
|
|
@@ -1368,15 +1378,6 @@ function getTransform(x, y) {
|
|
|
1368
1378
|
function clamp$1(value, min, max) {
|
|
1369
1379
|
return Math.max(min, Math.min(max, value));
|
|
1370
1380
|
}
|
|
1371
|
-
/**
|
|
1372
|
-
* Helper to remove a node from the DOM and to do all the necessary null checks.
|
|
1373
|
-
* @param node Node to be removed.
|
|
1374
|
-
*/
|
|
1375
|
-
function removeNode(node) {
|
|
1376
|
-
if (node && node.parentNode) {
|
|
1377
|
-
node.parentNode.removeChild(node);
|
|
1378
|
-
}
|
|
1379
|
-
}
|
|
1380
1381
|
/** Determines whether an event is a touch event. */
|
|
1381
1382
|
function isTouchEvent(event) {
|
|
1382
1383
|
// This function is called for every pixel that the user has dragged so we need it to be
|
|
@@ -1701,7 +1702,7 @@ class DropListRef {
|
|
|
1701
1702
|
previousContainer,
|
|
1702
1703
|
isPointerOverContainer,
|
|
1703
1704
|
distance,
|
|
1704
|
-
dropPoint
|
|
1705
|
+
dropPoint,
|
|
1705
1706
|
});
|
|
1706
1707
|
}
|
|
1707
1708
|
/**
|
|
@@ -1774,8 +1775,9 @@ class DropListRef {
|
|
|
1774
1775
|
// Items are sorted always by top/left in the cache, however they flow differently in RTL.
|
|
1775
1776
|
// The rest of the logic still stands no matter what orientation we're in, however
|
|
1776
1777
|
// we need to invert the array when determining the index.
|
|
1777
|
-
const items = this._orientation === 'horizontal' && this._direction === 'rtl'
|
|
1778
|
-
this._itemPositions.slice().reverse()
|
|
1778
|
+
const items = this._orientation === 'horizontal' && this._direction === 'rtl'
|
|
1779
|
+
? this._itemPositions.slice().reverse()
|
|
1780
|
+
: this._itemPositions;
|
|
1779
1781
|
return items.findIndex(currentItem => currentItem.drag === item);
|
|
1780
1782
|
}
|
|
1781
1783
|
/**
|
|
@@ -1794,7 +1796,8 @@ class DropListRef {
|
|
|
1794
1796
|
*/
|
|
1795
1797
|
_sortItem(item, pointerX, pointerY, pointerDelta) {
|
|
1796
1798
|
// Don't sort the item if sorting is disabled or it's out of range.
|
|
1797
|
-
if (this.sortingDisabled ||
|
|
1799
|
+
if (this.sortingDisabled ||
|
|
1800
|
+
!this._clientRect ||
|
|
1798
1801
|
!isPointerNearClientRect(this._clientRect, DROP_PROXIMITY_THRESHOLD, pointerX, pointerY)) {
|
|
1799
1802
|
return;
|
|
1800
1803
|
}
|
|
@@ -1822,7 +1825,7 @@ class DropListRef {
|
|
|
1822
1825
|
previousIndex: currentIndex,
|
|
1823
1826
|
currentIndex: newIndex,
|
|
1824
1827
|
container: this,
|
|
1825
|
-
item
|
|
1828
|
+
item,
|
|
1826
1829
|
});
|
|
1827
1830
|
siblings.forEach((sibling, index) => {
|
|
1828
1831
|
// Don't do anything if the position hasn't changed.
|
|
@@ -1831,8 +1834,9 @@ class DropListRef {
|
|
|
1831
1834
|
}
|
|
1832
1835
|
const isDraggedItem = sibling.drag === item;
|
|
1833
1836
|
const offset = isDraggedItem ? itemOffset : siblingOffset;
|
|
1834
|
-
const elementToOffset = isDraggedItem
|
|
1835
|
-
|
|
1837
|
+
const elementToOffset = isDraggedItem
|
|
1838
|
+
? item.getPlaceholderElement()
|
|
1839
|
+
: sibling.drag.getRootElement();
|
|
1836
1840
|
// Update the offset to reflect the new position.
|
|
1837
1841
|
sibling.offset += offset;
|
|
1838
1842
|
// Since we're moving the items with a `transform`, we need to adjust their cached
|
|
@@ -1885,14 +1889,22 @@ class DropListRef {
|
|
|
1885
1889
|
// Otherwise check if we can start scrolling the viewport.
|
|
1886
1890
|
if (!verticalScrollDirection && !horizontalScrollDirection) {
|
|
1887
1891
|
const { width, height } = this._viewportRuler.getViewportSize();
|
|
1888
|
-
const clientRect = {
|
|
1892
|
+
const clientRect = {
|
|
1893
|
+
width,
|
|
1894
|
+
height,
|
|
1895
|
+
top: 0,
|
|
1896
|
+
right: width,
|
|
1897
|
+
bottom: height,
|
|
1898
|
+
left: 0,
|
|
1899
|
+
};
|
|
1889
1900
|
verticalScrollDirection = getVerticalScrollDirection(clientRect, pointerY);
|
|
1890
1901
|
horizontalScrollDirection = getHorizontalScrollDirection(clientRect, pointerX);
|
|
1891
1902
|
scrollNode = window;
|
|
1892
1903
|
}
|
|
1893
|
-
if (scrollNode &&
|
|
1894
|
-
|
|
1895
|
-
|
|
1904
|
+
if (scrollNode &&
|
|
1905
|
+
(verticalScrollDirection !== this._verticalScrollDirection ||
|
|
1906
|
+
horizontalScrollDirection !== this._horizontalScrollDirection ||
|
|
1907
|
+
scrollNode !== this._scrollNode)) {
|
|
1896
1908
|
this._verticalScrollDirection = verticalScrollDirection;
|
|
1897
1909
|
this._horizontalScrollDirection = horizontalScrollDirection;
|
|
1898
1910
|
this._scrollNode = scrollNode;
|
|
@@ -1933,7 +1945,8 @@ class DropListRef {
|
|
|
1933
1945
|
/** Refreshes the position cache of the items and sibling containers. */
|
|
1934
1946
|
_cacheItemPositions() {
|
|
1935
1947
|
const isHorizontal = this._orientation === 'horizontal';
|
|
1936
|
-
this._itemPositions = this._activeDraggables
|
|
1948
|
+
this._itemPositions = this._activeDraggables
|
|
1949
|
+
.map(drag => {
|
|
1937
1950
|
const elementToMeasure = drag.getVisibleElement();
|
|
1938
1951
|
return {
|
|
1939
1952
|
drag,
|
|
@@ -1941,9 +1954,11 @@ class DropListRef {
|
|
|
1941
1954
|
initialTransform: elementToMeasure.style.transform || '',
|
|
1942
1955
|
clientRect: getMutableClientRect(elementToMeasure),
|
|
1943
1956
|
};
|
|
1944
|
-
})
|
|
1945
|
-
|
|
1946
|
-
|
|
1957
|
+
})
|
|
1958
|
+
.sort((a, b) => {
|
|
1959
|
+
return isHorizontal
|
|
1960
|
+
? a.clientRect.left - b.clientRect.left
|
|
1961
|
+
: a.clientRect.top - b.clientRect.top;
|
|
1947
1962
|
});
|
|
1948
1963
|
}
|
|
1949
1964
|
/** Resets the container to its initial state. */
|
|
@@ -1953,11 +1968,9 @@ class DropListRef {
|
|
|
1953
1968
|
styles.scrollSnapType = styles.msScrollSnapType = this._initialScrollSnap;
|
|
1954
1969
|
// TODO(crisbeto): may have to wait for the animations to finish.
|
|
1955
1970
|
this._activeDraggables.forEach(item => {
|
|
1956
|
-
var _a;
|
|
1957
1971
|
const rootElement = item.getRootElement();
|
|
1958
1972
|
if (rootElement) {
|
|
1959
|
-
const initialTransform = (
|
|
1960
|
-
.find(current => current.drag === item)) === null || _a === void 0 ? void 0 : _a.initialTransform;
|
|
1973
|
+
const initialTransform = this._itemPositions.find(current => current.drag === item)?.initialTransform;
|
|
1961
1974
|
rootElement.style.transform = initialTransform || '';
|
|
1962
1975
|
}
|
|
1963
1976
|
});
|
|
@@ -2006,12 +2019,14 @@ class DropListRef {
|
|
|
2006
2019
|
*/
|
|
2007
2020
|
_getItemOffsetPx(currentPosition, newPosition, delta) {
|
|
2008
2021
|
const isHorizontal = this._orientation === 'horizontal';
|
|
2009
|
-
let itemOffset = isHorizontal
|
|
2010
|
-
newPosition.
|
|
2022
|
+
let itemOffset = isHorizontal
|
|
2023
|
+
? newPosition.left - currentPosition.left
|
|
2024
|
+
: newPosition.top - currentPosition.top;
|
|
2011
2025
|
// Account for differences in the item width/height.
|
|
2012
2026
|
if (delta === -1) {
|
|
2013
|
-
itemOffset += isHorizontal
|
|
2014
|
-
newPosition.
|
|
2027
|
+
itemOffset += isHorizontal
|
|
2028
|
+
? newPosition.width - currentPosition.width
|
|
2029
|
+
: newPosition.height - currentPosition.height;
|
|
2015
2030
|
}
|
|
2016
2031
|
return itemOffset;
|
|
2017
2032
|
}
|
|
@@ -2057,18 +2072,19 @@ class DropListRef {
|
|
|
2057
2072
|
// If the user is still hovering over the same item as last time, their cursor hasn't left
|
|
2058
2073
|
// the item after we made the swap, and they didn't change the direction in which they're
|
|
2059
2074
|
// dragging, we don't consider it a direction swap.
|
|
2060
|
-
if (drag === this._previousSwap.drag &&
|
|
2075
|
+
if (drag === this._previousSwap.drag &&
|
|
2076
|
+
this._previousSwap.overlaps &&
|
|
2061
2077
|
direction === this._previousSwap.delta) {
|
|
2062
2078
|
return false;
|
|
2063
2079
|
}
|
|
2064
2080
|
}
|
|
2065
|
-
return isHorizontal
|
|
2066
|
-
// Round these down since most browsers report client rects with
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
pointerY >= Math.floor(clientRect.top) && pointerY < Math.floor(clientRect.bottom);
|
|
2081
|
+
return isHorizontal
|
|
2082
|
+
? // Round these down since most browsers report client rects with
|
|
2083
|
+
// sub-pixel precision, whereas the pointer coordinates are rounded to pixels.
|
|
2084
|
+
pointerX >= Math.floor(clientRect.left) && pointerX < Math.floor(clientRect.right)
|
|
2085
|
+
: pointerY >= Math.floor(clientRect.top) && pointerY < Math.floor(clientRect.bottom);
|
|
2070
2086
|
});
|
|
2071
|
-
return
|
|
2087
|
+
return index === -1 || !this.sortPredicate(index, item, this) ? -1 : index;
|
|
2072
2088
|
}
|
|
2073
2089
|
/** Caches the current items in the list and their positions. */
|
|
2074
2090
|
_cacheItems() {
|
|
@@ -2101,7 +2117,8 @@ class DropListRef {
|
|
|
2101
2117
|
* @param y Position of the item along the Y axis.
|
|
2102
2118
|
*/
|
|
2103
2119
|
_canReceive(item, x, y) {
|
|
2104
|
-
if (!this._clientRect ||
|
|
2120
|
+
if (!this._clientRect ||
|
|
2121
|
+
!isInsideClientRect(this._clientRect, x, y) ||
|
|
2105
2122
|
!this.enterPredicate(item, this)) {
|
|
2106
2123
|
return false;
|
|
2107
2124
|
}
|
|
@@ -2126,13 +2143,14 @@ class DropListRef {
|
|
|
2126
2143
|
*/
|
|
2127
2144
|
_startReceiving(sibling, items) {
|
|
2128
2145
|
const activeSiblings = this._activeSiblings;
|
|
2129
|
-
if (!activeSiblings.has(sibling) &&
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2146
|
+
if (!activeSiblings.has(sibling) &&
|
|
2147
|
+
items.every(item => {
|
|
2148
|
+
// Note that we have to add an exception to the `enterPredicate` for items that started off
|
|
2149
|
+
// in this drop list. The drag ref has logic that allows an item to return to its initial
|
|
2150
|
+
// container, if it has left the initial container and none of the connected containers
|
|
2151
|
+
// allow it to enter. See `DragRef._updateActiveDropContainer` for more context.
|
|
2152
|
+
return this.enterPredicate(item, this) || this._draggables.indexOf(item) > -1;
|
|
2153
|
+
})) {
|
|
2136
2154
|
activeSiblings.add(sibling);
|
|
2137
2155
|
this._cacheParentPositions();
|
|
2138
2156
|
this._listenToScrollEvents();
|
|
@@ -2189,7 +2207,7 @@ class DropListRef {
|
|
|
2189
2207
|
_getShadowRoot() {
|
|
2190
2208
|
if (!this._cachedShadowRoot) {
|
|
2191
2209
|
const shadowRoot = _getShadowRoot(coerceElement(this.element));
|
|
2192
|
-
this._cachedShadowRoot = shadowRoot || this._document;
|
|
2210
|
+
this._cachedShadowRoot = (shadowRoot || this._document);
|
|
2193
2211
|
}
|
|
2194
2212
|
return this._cachedShadowRoot;
|
|
2195
2213
|
}
|
|
@@ -2283,7 +2301,7 @@ function getElementScrollDirections(element, clientRect, pointerX, pointerY) {
|
|
|
2283
2301
|
/** Event options that can be used to bind an active, capturing event. */
|
|
2284
2302
|
const activeCapturingEventOptions = normalizePassiveListenerOptions({
|
|
2285
2303
|
passive: false,
|
|
2286
|
-
capture: true
|
|
2304
|
+
capture: true,
|
|
2287
2305
|
});
|
|
2288
2306
|
/**
|
|
2289
2307
|
* Service that keeps track of all the drag item and drop container
|
|
@@ -2399,13 +2417,13 @@ class DragDropRegistry {
|
|
|
2399
2417
|
this._globalListeners
|
|
2400
2418
|
.set(isTouchEvent ? 'touchend' : 'mouseup', {
|
|
2401
2419
|
handler: (e) => this.pointerUp.next(e),
|
|
2402
|
-
options: true
|
|
2420
|
+
options: true,
|
|
2403
2421
|
})
|
|
2404
2422
|
.set('scroll', {
|
|
2405
2423
|
handler: (e) => this.scroll.next(e),
|
|
2406
2424
|
// Use capturing so that we pick up scroll changes in any scrollable nodes that aren't
|
|
2407
2425
|
// the document. See https://github.com/angular/components/issues/17144.
|
|
2408
|
-
options: true
|
|
2426
|
+
options: true,
|
|
2409
2427
|
})
|
|
2410
2428
|
// Preventing the default action on `mousemove` isn't enough to disable text selection
|
|
2411
2429
|
// on Safari so we need to prevent the selection event as well. Alternatively this can
|
|
@@ -2413,14 +2431,14 @@ class DragDropRegistry {
|
|
|
2413
2431
|
// recalculation which can be expensive on pages with a lot of elements.
|
|
2414
2432
|
.set('selectstart', {
|
|
2415
2433
|
handler: this._preventDefaultWhileDragging,
|
|
2416
|
-
options: activeCapturingEventOptions
|
|
2434
|
+
options: activeCapturingEventOptions,
|
|
2417
2435
|
});
|
|
2418
2436
|
// We don't have to bind a move event for touch drag sequences, because
|
|
2419
2437
|
// we already have a persistent global one bound from `registerDragItem`.
|
|
2420
2438
|
if (!isTouchEvent) {
|
|
2421
2439
|
this._globalListeners.set('mousemove', {
|
|
2422
2440
|
handler: (e) => this.pointerMove.next(e),
|
|
2423
|
-
options: activeCapturingEventOptions
|
|
2441
|
+
options: activeCapturingEventOptions,
|
|
2424
2442
|
});
|
|
2425
2443
|
}
|
|
2426
2444
|
this._ngZone.runOutsideAngular(() => {
|
|
@@ -2489,14 +2507,15 @@ class DragDropRegistry {
|
|
|
2489
2507
|
this._globalListeners.clear();
|
|
2490
2508
|
}
|
|
2491
2509
|
}
|
|
2492
|
-
DragDropRegistry.ɵ
|
|
2493
|
-
DragDropRegistry
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
]
|
|
2510
|
+
DragDropRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DragDropRegistry, deps: [{ token: i0.NgZone }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2511
|
+
DragDropRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DragDropRegistry, providedIn: 'root' });
|
|
2512
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DragDropRegistry, decorators: [{
|
|
2513
|
+
type: Injectable,
|
|
2514
|
+
args: [{ providedIn: 'root' }]
|
|
2515
|
+
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: undefined, decorators: [{
|
|
2516
|
+
type: Inject,
|
|
2517
|
+
args: [DOCUMENT]
|
|
2518
|
+
}] }]; } });
|
|
2500
2519
|
|
|
2501
2520
|
/**
|
|
2502
2521
|
* @license
|
|
@@ -2508,7 +2527,7 @@ DragDropRegistry.ctorParameters = () => [
|
|
|
2508
2527
|
/** Default configuration to be used when creating a `DragRef`. */
|
|
2509
2528
|
const DEFAULT_CONFIG = {
|
|
2510
2529
|
dragStartThreshold: 5,
|
|
2511
|
-
pointerDirectionChangeThreshold: 5
|
|
2530
|
+
pointerDirectionChangeThreshold: 5,
|
|
2512
2531
|
};
|
|
2513
2532
|
/**
|
|
2514
2533
|
* Service that allows for drag-and-drop functionality to be attached to DOM elements.
|
|
@@ -2536,16 +2555,15 @@ class DragDrop {
|
|
|
2536
2555
|
return new DropListRef(element, this._dragDropRegistry, this._document, this._ngZone, this._viewportRuler);
|
|
2537
2556
|
}
|
|
2538
2557
|
}
|
|
2539
|
-
DragDrop.ɵ
|
|
2540
|
-
DragDrop
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
];
|
|
2558
|
+
DragDrop.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DragDrop, deps: [{ token: DOCUMENT }, { token: i0.NgZone }, { token: i1.ViewportRuler }, { token: DragDropRegistry }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2559
|
+
DragDrop.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DragDrop, providedIn: 'root' });
|
|
2560
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DragDrop, decorators: [{
|
|
2561
|
+
type: Injectable,
|
|
2562
|
+
args: [{ providedIn: 'root' }]
|
|
2563
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
2564
|
+
type: Inject,
|
|
2565
|
+
args: [DOCUMENT]
|
|
2566
|
+
}] }, { type: i0.NgZone }, { type: i1.ViewportRuler }, { type: DragDropRegistry }]; } });
|
|
2549
2567
|
|
|
2550
2568
|
/**
|
|
2551
2569
|
* @license
|
|
@@ -2596,7 +2614,9 @@ class CdkDropListGroup {
|
|
|
2596
2614
|
this._disabled = false;
|
|
2597
2615
|
}
|
|
2598
2616
|
/** Whether starting a dragging sequence from inside this group is disabled. */
|
|
2599
|
-
get disabled() {
|
|
2617
|
+
get disabled() {
|
|
2618
|
+
return this._disabled;
|
|
2619
|
+
}
|
|
2600
2620
|
set disabled(value) {
|
|
2601
2621
|
this._disabled = coerceBooleanProperty(value);
|
|
2602
2622
|
}
|
|
@@ -2604,16 +2624,19 @@ class CdkDropListGroup {
|
|
|
2604
2624
|
this._items.clear();
|
|
2605
2625
|
}
|
|
2606
2626
|
}
|
|
2607
|
-
CdkDropListGroup
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
CdkDropListGroup
|
|
2615
|
-
|
|
2616
|
-
}
|
|
2627
|
+
CdkDropListGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkDropListGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2628
|
+
CdkDropListGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkDropListGroup, selector: "[cdkDropListGroup]", inputs: { disabled: ["cdkDropListGroupDisabled", "disabled"] }, providers: [{ provide: CDK_DROP_LIST_GROUP, useExisting: CdkDropListGroup }], exportAs: ["cdkDropListGroup"], ngImport: i0 });
|
|
2629
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkDropListGroup, decorators: [{
|
|
2630
|
+
type: Directive,
|
|
2631
|
+
args: [{
|
|
2632
|
+
selector: '[cdkDropListGroup]',
|
|
2633
|
+
exportAs: 'cdkDropListGroup',
|
|
2634
|
+
providers: [{ provide: CDK_DROP_LIST_GROUP, useExisting: CdkDropListGroup }],
|
|
2635
|
+
}]
|
|
2636
|
+
}], propDecorators: { disabled: [{
|
|
2637
|
+
type: Input,
|
|
2638
|
+
args: ['cdkDropListGroupDisabled']
|
|
2639
|
+
}] } });
|
|
2617
2640
|
|
|
2618
2641
|
/**
|
|
2619
2642
|
* @license
|
|
@@ -2642,8 +2665,7 @@ const CDK_DRAG_CONFIG = new InjectionToken('CDK_DRAG_CONFIG');
|
|
|
2642
2665
|
*/
|
|
2643
2666
|
function assertElementNode(node, name) {
|
|
2644
2667
|
if (node.nodeType !== 1) {
|
|
2645
|
-
throw Error(`${name} must be attached to an element node. ` +
|
|
2646
|
-
`Currently attached to "${node.nodeName}".`);
|
|
2668
|
+
throw Error(`${name} must be attached to an element node. ` + `Currently attached to "${node.nodeName}".`);
|
|
2647
2669
|
}
|
|
2648
2670
|
}
|
|
2649
2671
|
|
|
@@ -2662,7 +2684,6 @@ let _uniqueIdCounter = 0;
|
|
|
2662
2684
|
* retention of the class and its directive metadata.
|
|
2663
2685
|
*/
|
|
2664
2686
|
const CDK_DROP_LIST = new InjectionToken('CdkDropList');
|
|
2665
|
-
const ɵ0 = undefined;
|
|
2666
2687
|
/** Container that wraps a set of draggable items. */
|
|
2667
2688
|
class CdkDropList {
|
|
2668
2689
|
constructor(
|
|
@@ -2725,10 +2746,9 @@ class CdkDropList {
|
|
|
2725
2746
|
this._dropListRef.enterPredicate = (drag, drop) => {
|
|
2726
2747
|
return this.enterPredicate(drag.data, drop.data);
|
|
2727
2748
|
};
|
|
2728
|
-
this._dropListRef.sortPredicate =
|
|
2729
|
-
(index, drag, drop)
|
|
2730
|
-
|
|
2731
|
-
};
|
|
2749
|
+
this._dropListRef.sortPredicate = (index, drag, drop) => {
|
|
2750
|
+
return this.sortPredicate(index, drag.data, drop.data);
|
|
2751
|
+
};
|
|
2732
2752
|
this._setupInputSyncSubscription(this._dropListRef);
|
|
2733
2753
|
this._handleEvents(this._dropListRef);
|
|
2734
2754
|
CdkDropList._dropLists.push(this);
|
|
@@ -2764,7 +2784,9 @@ class CdkDropList {
|
|
|
2764
2784
|
/** Gets the registered items in the list, sorted by their position in the DOM. */
|
|
2765
2785
|
getSortedItems() {
|
|
2766
2786
|
return Array.from(this._unsortedItems).sort((a, b) => {
|
|
2767
|
-
const documentPosition = a._dragRef
|
|
2787
|
+
const documentPosition = a._dragRef
|
|
2788
|
+
.getVisibleElement()
|
|
2789
|
+
.compareDocumentPosition(b._dragRef.getVisibleElement());
|
|
2768
2790
|
// `compareDocumentPosition` returns a bitmask so we have to use a bitwise operator.
|
|
2769
2791
|
// https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
|
|
2770
2792
|
// tslint:disable-next-line:no-bitwise
|
|
@@ -2840,13 +2862,13 @@ class CdkDropList {
|
|
|
2840
2862
|
this.entered.emit({
|
|
2841
2863
|
container: this,
|
|
2842
2864
|
item: event.item.data,
|
|
2843
|
-
currentIndex: event.currentIndex
|
|
2865
|
+
currentIndex: event.currentIndex,
|
|
2844
2866
|
});
|
|
2845
2867
|
});
|
|
2846
2868
|
ref.exited.subscribe(event => {
|
|
2847
2869
|
this.exited.emit({
|
|
2848
2870
|
container: this,
|
|
2849
|
-
item: event.item.data
|
|
2871
|
+
item: event.item.data,
|
|
2850
2872
|
});
|
|
2851
2873
|
this._changeDetectorRef.markForCheck();
|
|
2852
2874
|
});
|
|
@@ -2855,7 +2877,7 @@ class CdkDropList {
|
|
|
2855
2877
|
previousIndex: event.previousIndex,
|
|
2856
2878
|
currentIndex: event.currentIndex,
|
|
2857
2879
|
container: this,
|
|
2858
|
-
item: event.item.data
|
|
2880
|
+
item: event.item.data,
|
|
2859
2881
|
});
|
|
2860
2882
|
});
|
|
2861
2883
|
ref.dropped.subscribe(event => {
|
|
@@ -2867,7 +2889,7 @@ class CdkDropList {
|
|
|
2867
2889
|
item: event.item.data,
|
|
2868
2890
|
isPointerOverContainer: event.isPointerOverContainer,
|
|
2869
2891
|
distance: event.distance,
|
|
2870
|
-
dropPoint: event.dropPoint
|
|
2892
|
+
dropPoint: event.dropPoint,
|
|
2871
2893
|
});
|
|
2872
2894
|
// Mark for check since all of these events run outside of change
|
|
2873
2895
|
// detection and we're not guaranteed for something else to have triggered it.
|
|
@@ -2892,50 +2914,89 @@ class CdkDropList {
|
|
|
2892
2914
|
}
|
|
2893
2915
|
/** Keeps track of the drop lists that are currently on the page. */
|
|
2894
2916
|
CdkDropList._dropLists = [];
|
|
2895
|
-
CdkDropList
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
]
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2917
|
+
CdkDropList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkDropList, deps: [{ token: i0.ElementRef }, { token: DragDrop }, { token: i0.ChangeDetectorRef }, { token: i1.ScrollDispatcher }, { token: i3.Directionality, optional: true }, { token: CDK_DROP_LIST_GROUP, optional: true, skipSelf: true }, { token: CDK_DRAG_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2918
|
+
CdkDropList.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: { connectedTo: ["cdkDropListConnectedTo", "connectedTo"], data: ["cdkDropListData", "data"], orientation: ["cdkDropListOrientation", "orientation"], id: "id", lockAxis: ["cdkDropListLockAxis", "lockAxis"], disabled: ["cdkDropListDisabled", "disabled"], sortingDisabled: ["cdkDropListSortingDisabled", "sortingDisabled"], enterPredicate: ["cdkDropListEnterPredicate", "enterPredicate"], sortPredicate: ["cdkDropListSortPredicate", "sortPredicate"], autoScrollDisabled: ["cdkDropListAutoScrollDisabled", "autoScrollDisabled"], autoScrollStep: ["cdkDropListAutoScrollStep", "autoScrollStep"] }, outputs: { dropped: "cdkDropListDropped", entered: "cdkDropListEntered", exited: "cdkDropListExited", sorted: "cdkDropListSorted" }, host: { properties: { "attr.id": "id", "class.cdk-drop-list-disabled": "disabled", "class.cdk-drop-list-dragging": "_dropListRef.isDragging()", "class.cdk-drop-list-receiving": "_dropListRef.isReceiving()" }, classAttribute: "cdk-drop-list" }, providers: [
|
|
2919
|
+
// Prevent child drop lists from picking up the same group as their parent.
|
|
2920
|
+
{ provide: CDK_DROP_LIST_GROUP, useValue: undefined },
|
|
2921
|
+
{ provide: CDK_DROP_LIST, useExisting: CdkDropList },
|
|
2922
|
+
], exportAs: ["cdkDropList"], ngImport: i0 });
|
|
2923
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkDropList, decorators: [{
|
|
2924
|
+
type: Directive,
|
|
2925
|
+
args: [{
|
|
2926
|
+
selector: '[cdkDropList], cdk-drop-list',
|
|
2927
|
+
exportAs: 'cdkDropList',
|
|
2928
|
+
providers: [
|
|
2929
|
+
// Prevent child drop lists from picking up the same group as their parent.
|
|
2930
|
+
{ provide: CDK_DROP_LIST_GROUP, useValue: undefined },
|
|
2931
|
+
{ provide: CDK_DROP_LIST, useExisting: CdkDropList },
|
|
2932
|
+
],
|
|
2933
|
+
host: {
|
|
2934
|
+
'class': 'cdk-drop-list',
|
|
2935
|
+
'[attr.id]': 'id',
|
|
2936
|
+
'[class.cdk-drop-list-disabled]': 'disabled',
|
|
2937
|
+
'[class.cdk-drop-list-dragging]': '_dropListRef.isDragging()',
|
|
2938
|
+
'[class.cdk-drop-list-receiving]': '_dropListRef.isReceiving()',
|
|
2939
|
+
},
|
|
2940
|
+
}]
|
|
2941
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: DragDrop }, { type: i0.ChangeDetectorRef }, { type: i1.ScrollDispatcher }, { type: i3.Directionality, decorators: [{
|
|
2942
|
+
type: Optional
|
|
2943
|
+
}] }, { type: CdkDropListGroup, decorators: [{
|
|
2944
|
+
type: Optional
|
|
2945
|
+
}, {
|
|
2946
|
+
type: Inject,
|
|
2947
|
+
args: [CDK_DROP_LIST_GROUP]
|
|
2948
|
+
}, {
|
|
2949
|
+
type: SkipSelf
|
|
2950
|
+
}] }, { type: undefined, decorators: [{
|
|
2951
|
+
type: Optional
|
|
2952
|
+
}, {
|
|
2953
|
+
type: Inject,
|
|
2954
|
+
args: [CDK_DRAG_CONFIG]
|
|
2955
|
+
}] }]; }, propDecorators: { connectedTo: [{
|
|
2956
|
+
type: Input,
|
|
2957
|
+
args: ['cdkDropListConnectedTo']
|
|
2958
|
+
}], data: [{
|
|
2959
|
+
type: Input,
|
|
2960
|
+
args: ['cdkDropListData']
|
|
2961
|
+
}], orientation: [{
|
|
2962
|
+
type: Input,
|
|
2963
|
+
args: ['cdkDropListOrientation']
|
|
2964
|
+
}], id: [{
|
|
2965
|
+
type: Input
|
|
2966
|
+
}], lockAxis: [{
|
|
2967
|
+
type: Input,
|
|
2968
|
+
args: ['cdkDropListLockAxis']
|
|
2969
|
+
}], disabled: [{
|
|
2970
|
+
type: Input,
|
|
2971
|
+
args: ['cdkDropListDisabled']
|
|
2972
|
+
}], sortingDisabled: [{
|
|
2973
|
+
type: Input,
|
|
2974
|
+
args: ['cdkDropListSortingDisabled']
|
|
2975
|
+
}], enterPredicate: [{
|
|
2976
|
+
type: Input,
|
|
2977
|
+
args: ['cdkDropListEnterPredicate']
|
|
2978
|
+
}], sortPredicate: [{
|
|
2979
|
+
type: Input,
|
|
2980
|
+
args: ['cdkDropListSortPredicate']
|
|
2981
|
+
}], autoScrollDisabled: [{
|
|
2982
|
+
type: Input,
|
|
2983
|
+
args: ['cdkDropListAutoScrollDisabled']
|
|
2984
|
+
}], autoScrollStep: [{
|
|
2985
|
+
type: Input,
|
|
2986
|
+
args: ['cdkDropListAutoScrollStep']
|
|
2987
|
+
}], dropped: [{
|
|
2988
|
+
type: Output,
|
|
2989
|
+
args: ['cdkDropListDropped']
|
|
2990
|
+
}], entered: [{
|
|
2991
|
+
type: Output,
|
|
2992
|
+
args: ['cdkDropListEntered']
|
|
2993
|
+
}], exited: [{
|
|
2994
|
+
type: Output,
|
|
2995
|
+
args: ['cdkDropListExited']
|
|
2996
|
+
}], sorted: [{
|
|
2997
|
+
type: Output,
|
|
2998
|
+
args: ['cdkDropListSorted']
|
|
2999
|
+
}] } });
|
|
2939
3000
|
|
|
2940
3001
|
/**
|
|
2941
3002
|
* @license
|
|
@@ -2963,7 +3024,9 @@ class CdkDragHandle {
|
|
|
2963
3024
|
this._parentDrag = parentDrag;
|
|
2964
3025
|
}
|
|
2965
3026
|
/** Whether starting to drag through this handle is disabled. */
|
|
2966
|
-
get disabled() {
|
|
3027
|
+
get disabled() {
|
|
3028
|
+
return this._disabled;
|
|
3029
|
+
}
|
|
2967
3030
|
set disabled(value) {
|
|
2968
3031
|
this._disabled = coerceBooleanProperty(value);
|
|
2969
3032
|
this._stateChanges.next(this);
|
|
@@ -2972,22 +3035,28 @@ class CdkDragHandle {
|
|
|
2972
3035
|
this._stateChanges.complete();
|
|
2973
3036
|
}
|
|
2974
3037
|
}
|
|
2975
|
-
CdkDragHandle
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
3038
|
+
CdkDragHandle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkDragHandle, deps: [{ token: i0.ElementRef }, { token: CDK_DRAG_PARENT, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3039
|
+
CdkDragHandle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: { disabled: ["cdkDragHandleDisabled", "disabled"] }, host: { classAttribute: "cdk-drag-handle" }, providers: [{ provide: CDK_DRAG_HANDLE, useExisting: CdkDragHandle }], ngImport: i0 });
|
|
3040
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkDragHandle, decorators: [{
|
|
3041
|
+
type: Directive,
|
|
3042
|
+
args: [{
|
|
3043
|
+
selector: '[cdkDragHandle]',
|
|
3044
|
+
host: {
|
|
3045
|
+
'class': 'cdk-drag-handle',
|
|
3046
|
+
},
|
|
3047
|
+
providers: [{ provide: CDK_DRAG_HANDLE, useExisting: CdkDragHandle }],
|
|
3048
|
+
}]
|
|
3049
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
3050
|
+
type: Inject,
|
|
3051
|
+
args: [CDK_DRAG_PARENT]
|
|
3052
|
+
}, {
|
|
3053
|
+
type: Optional
|
|
3054
|
+
}, {
|
|
3055
|
+
type: SkipSelf
|
|
3056
|
+
}] }]; }, propDecorators: { disabled: [{
|
|
3057
|
+
type: Input,
|
|
3058
|
+
args: ['cdkDragHandleDisabled']
|
|
3059
|
+
}] } });
|
|
2991
3060
|
|
|
2992
3061
|
/**
|
|
2993
3062
|
* @license
|
|
@@ -3011,18 +3080,17 @@ class CdkDragPlaceholder {
|
|
|
3011
3080
|
this.templateRef = templateRef;
|
|
3012
3081
|
}
|
|
3013
3082
|
}
|
|
3014
|
-
CdkDragPlaceholder
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
]
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
];
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
};
|
|
3083
|
+
CdkDragPlaceholder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkDragPlaceholder, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3084
|
+
CdkDragPlaceholder.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: { data: "data" }, providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }], ngImport: i0 });
|
|
3085
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkDragPlaceholder, decorators: [{
|
|
3086
|
+
type: Directive,
|
|
3087
|
+
args: [{
|
|
3088
|
+
selector: 'ng-template[cdkDragPlaceholder]',
|
|
3089
|
+
providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }],
|
|
3090
|
+
}]
|
|
3091
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; }, propDecorators: { data: [{
|
|
3092
|
+
type: Input
|
|
3093
|
+
}] } });
|
|
3026
3094
|
|
|
3027
3095
|
/**
|
|
3028
3096
|
* @license
|
|
@@ -3047,22 +3115,26 @@ class CdkDragPreview {
|
|
|
3047
3115
|
this._matchSize = false;
|
|
3048
3116
|
}
|
|
3049
3117
|
/** Whether the preview should preserve the same size as the item that is being dragged. */
|
|
3050
|
-
get matchSize() {
|
|
3051
|
-
|
|
3118
|
+
get matchSize() {
|
|
3119
|
+
return this._matchSize;
|
|
3120
|
+
}
|
|
3121
|
+
set matchSize(value) {
|
|
3122
|
+
this._matchSize = coerceBooleanProperty(value);
|
|
3123
|
+
}
|
|
3052
3124
|
}
|
|
3053
|
-
CdkDragPreview
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
]
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
];
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
};
|
|
3125
|
+
CdkDragPreview.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkDragPreview, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3126
|
+
CdkDragPreview.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkDragPreview, selector: "ng-template[cdkDragPreview]", inputs: { data: "data", matchSize: "matchSize" }, providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }], ngImport: i0 });
|
|
3127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkDragPreview, decorators: [{
|
|
3128
|
+
type: Directive,
|
|
3129
|
+
args: [{
|
|
3130
|
+
selector: 'ng-template[cdkDragPreview]',
|
|
3131
|
+
providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }],
|
|
3132
|
+
}]
|
|
3133
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; }, propDecorators: { data: [{
|
|
3134
|
+
type: Input
|
|
3135
|
+
}], matchSize: [{
|
|
3136
|
+
type: Input
|
|
3137
|
+
}] } });
|
|
3066
3138
|
|
|
3067
3139
|
/**
|
|
3068
3140
|
* @license
|
|
@@ -3110,23 +3182,25 @@ class CdkDrag {
|
|
|
3110
3182
|
* because this event will fire for every pixel that the user has dragged.
|
|
3111
3183
|
*/
|
|
3112
3184
|
this.moved = new Observable((observer) => {
|
|
3113
|
-
const subscription = this._dragRef.moved
|
|
3185
|
+
const subscription = this._dragRef.moved
|
|
3186
|
+
.pipe(map(movedEvent => ({
|
|
3114
3187
|
source: this,
|
|
3115
3188
|
pointerPosition: movedEvent.pointerPosition,
|
|
3116
3189
|
event: movedEvent.event,
|
|
3117
3190
|
delta: movedEvent.delta,
|
|
3118
|
-
distance: movedEvent.distance
|
|
3119
|
-
})))
|
|
3191
|
+
distance: movedEvent.distance,
|
|
3192
|
+
})))
|
|
3193
|
+
.subscribe(observer);
|
|
3120
3194
|
return () => {
|
|
3121
3195
|
subscription.unsubscribe();
|
|
3122
3196
|
};
|
|
3123
3197
|
});
|
|
3124
3198
|
this._dragRef = dragDrop.createDrag(element, {
|
|
3125
|
-
dragStartThreshold: config && config.dragStartThreshold != null ?
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
zIndex: config
|
|
3199
|
+
dragStartThreshold: config && config.dragStartThreshold != null ? config.dragStartThreshold : 5,
|
|
3200
|
+
pointerDirectionChangeThreshold: config && config.pointerDirectionChangeThreshold != null
|
|
3201
|
+
? config.pointerDirectionChangeThreshold
|
|
3202
|
+
: 5,
|
|
3203
|
+
zIndex: config?.zIndex,
|
|
3130
3204
|
});
|
|
3131
3205
|
this._dragRef.data = this;
|
|
3132
3206
|
// We have to keep track of the drag instances in order to be able to match an element to
|
|
@@ -3187,9 +3261,7 @@ class CdkDrag {
|
|
|
3187
3261
|
// element to be in the proper place in the DOM. This is mostly relevant
|
|
3188
3262
|
// for draggable elements inside portals since they get stamped out in
|
|
3189
3263
|
// their original DOM position and then they get transferred to the portal.
|
|
3190
|
-
this._ngZone.onStable
|
|
3191
|
-
.pipe(take(1), takeUntil(this._destroyed))
|
|
3192
|
-
.subscribe(() => {
|
|
3264
|
+
this._ngZone.onStable.pipe(take(1), takeUntil(this._destroyed)).subscribe(() => {
|
|
3193
3265
|
this._updateRootElement();
|
|
3194
3266
|
this._setupHandlesListener();
|
|
3195
3267
|
if (this.freeDragPosition) {
|
|
@@ -3229,8 +3301,14 @@ class CdkDrag {
|
|
|
3229
3301
|
/** Syncs the root element with the `DragRef`. */
|
|
3230
3302
|
_updateRootElement() {
|
|
3231
3303
|
const element = this.element.nativeElement;
|
|
3232
|
-
|
|
3233
|
-
|
|
3304
|
+
let rootElement = element;
|
|
3305
|
+
if (this.rootElementSelector) {
|
|
3306
|
+
rootElement =
|
|
3307
|
+
element.closest !== undefined
|
|
3308
|
+
? element.closest(this.rootElementSelector)
|
|
3309
|
+
: // Comment tag doesn't have closest method, so use parent's one.
|
|
3310
|
+
element.parentElement?.closest(this.rootElementSelector);
|
|
3311
|
+
}
|
|
3234
3312
|
if (rootElement && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
3235
3313
|
assertElementNode(rootElement, 'cdkDrag');
|
|
3236
3314
|
}
|
|
@@ -3258,21 +3336,27 @@ class CdkDrag {
|
|
|
3258
3336
|
if (!ref.isDragging()) {
|
|
3259
3337
|
const dir = this._dir;
|
|
3260
3338
|
const dragStartDelay = this.dragStartDelay;
|
|
3261
|
-
const placeholder = this._placeholderTemplate
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3339
|
+
const placeholder = this._placeholderTemplate
|
|
3340
|
+
? {
|
|
3341
|
+
template: this._placeholderTemplate.templateRef,
|
|
3342
|
+
context: this._placeholderTemplate.data,
|
|
3343
|
+
viewContainer: this._viewContainerRef,
|
|
3344
|
+
}
|
|
3345
|
+
: null;
|
|
3346
|
+
const preview = this._previewTemplate
|
|
3347
|
+
? {
|
|
3348
|
+
template: this._previewTemplate.templateRef,
|
|
3349
|
+
context: this._previewTemplate.data,
|
|
3350
|
+
matchSize: this._previewTemplate.matchSize,
|
|
3351
|
+
viewContainer: this._viewContainerRef,
|
|
3352
|
+
}
|
|
3353
|
+
: null;
|
|
3272
3354
|
ref.disabled = this.disabled;
|
|
3273
3355
|
ref.lockAxis = this.lockAxis;
|
|
3274
|
-
ref.dragStartDelay =
|
|
3275
|
-
dragStartDelay
|
|
3356
|
+
ref.dragStartDelay =
|
|
3357
|
+
typeof dragStartDelay === 'object' && dragStartDelay
|
|
3358
|
+
? dragStartDelay
|
|
3359
|
+
: coerceNumberProperty(dragStartDelay);
|
|
3276
3360
|
ref.constrainPosition = this.constrainPosition;
|
|
3277
3361
|
ref.previewClass = this.previewClass;
|
|
3278
3362
|
ref
|
|
@@ -3287,7 +3371,6 @@ class CdkDrag {
|
|
|
3287
3371
|
});
|
|
3288
3372
|
// This only needs to be resolved once.
|
|
3289
3373
|
ref.beforeStarted.pipe(take(1)).subscribe(() => {
|
|
3290
|
-
var _a;
|
|
3291
3374
|
// If we managed to resolve a parent through DI, use it.
|
|
3292
3375
|
if (this._parentDrag) {
|
|
3293
3376
|
ref.withParent(this._parentDrag._dragRef);
|
|
@@ -3298,9 +3381,9 @@ class CdkDrag {
|
|
|
3298
3381
|
let parent = this.element.nativeElement.parentElement;
|
|
3299
3382
|
while (parent) {
|
|
3300
3383
|
if (parent.classList.contains(DRAG_HOST_CLASS)) {
|
|
3301
|
-
ref.withParent(
|
|
3384
|
+
ref.withParent(CdkDrag._dragInstances.find(drag => {
|
|
3302
3385
|
return drag.element.nativeElement === parent;
|
|
3303
|
-
})
|
|
3386
|
+
})?._dragRef || null);
|
|
3304
3387
|
break;
|
|
3305
3388
|
}
|
|
3306
3389
|
parent = parent.parentElement;
|
|
@@ -3322,7 +3405,7 @@ class CdkDrag {
|
|
|
3322
3405
|
this.ended.emit({
|
|
3323
3406
|
source: this,
|
|
3324
3407
|
distance: event.distance,
|
|
3325
|
-
dropPoint: event.dropPoint
|
|
3408
|
+
dropPoint: event.dropPoint,
|
|
3326
3409
|
});
|
|
3327
3410
|
// Since all of these events run outside of change detection,
|
|
3328
3411
|
// we need to ensure that everything is marked correctly.
|
|
@@ -3332,13 +3415,13 @@ class CdkDrag {
|
|
|
3332
3415
|
this.entered.emit({
|
|
3333
3416
|
container: event.container.data,
|
|
3334
3417
|
item: this,
|
|
3335
|
-
currentIndex: event.currentIndex
|
|
3418
|
+
currentIndex: event.currentIndex,
|
|
3336
3419
|
});
|
|
3337
3420
|
});
|
|
3338
3421
|
ref.exited.subscribe(event => {
|
|
3339
3422
|
this.exited.emit({
|
|
3340
3423
|
container: event.container.data,
|
|
3341
|
-
item: this
|
|
3424
|
+
item: this,
|
|
3342
3425
|
});
|
|
3343
3426
|
});
|
|
3344
3427
|
ref.dropped.subscribe(event => {
|
|
@@ -3350,13 +3433,13 @@ class CdkDrag {
|
|
|
3350
3433
|
isPointerOverContainer: event.isPointerOverContainer,
|
|
3351
3434
|
item: this,
|
|
3352
3435
|
distance: event.distance,
|
|
3353
|
-
dropPoint: event.dropPoint
|
|
3436
|
+
dropPoint: event.dropPoint,
|
|
3354
3437
|
});
|
|
3355
3438
|
});
|
|
3356
3439
|
}
|
|
3357
3440
|
/** Assigns the default input values based on a provided config object. */
|
|
3358
3441
|
_assignDefaults(config) {
|
|
3359
|
-
const { lockAxis, dragStartDelay, constrainPosition, previewClass, boundaryElement, draggingDisabled, rootElementSelector, previewContainer } = config;
|
|
3442
|
+
const { lockAxis, dragStartDelay, constrainPosition, previewClass, boundaryElement, draggingDisabled, rootElementSelector, previewContainer, } = config;
|
|
3360
3443
|
this.disabled = draggingDisabled == null ? false : draggingDisabled;
|
|
3361
3444
|
this.dragStartDelay = dragStartDelay || 0;
|
|
3362
3445
|
if (lockAxis) {
|
|
@@ -3381,7 +3464,8 @@ class CdkDrag {
|
|
|
3381
3464
|
/** Sets up the listener that syncs the handles with the drag ref. */
|
|
3382
3465
|
_setupHandlesListener() {
|
|
3383
3466
|
// Listen for any newly-added handles.
|
|
3384
|
-
this._handles.changes
|
|
3467
|
+
this._handles.changes
|
|
3468
|
+
.pipe(startWith(this._handles),
|
|
3385
3469
|
// Sync the new handles with the DragRef.
|
|
3386
3470
|
tap((handles) => {
|
|
3387
3471
|
const childHandleElements = handles
|
|
@@ -3400,7 +3484,8 @@ class CdkDrag {
|
|
|
3400
3484
|
return merge(...handles.map(item => {
|
|
3401
3485
|
return item._stateChanges.pipe(startWith(item));
|
|
3402
3486
|
}));
|
|
3403
|
-
}), takeUntil(this._destroyed))
|
|
3487
|
+
}), takeUntil(this._destroyed))
|
|
3488
|
+
.subscribe(handleInstance => {
|
|
3404
3489
|
// Enabled/disable the handle that changed in the DragRef.
|
|
3405
3490
|
const dragRef = this._dragRef;
|
|
3406
3491
|
const handle = handleInstance.element.nativeElement;
|
|
@@ -3409,53 +3494,112 @@ class CdkDrag {
|
|
|
3409
3494
|
}
|
|
3410
3495
|
}
|
|
3411
3496
|
CdkDrag._dragInstances = [];
|
|
3412
|
-
CdkDrag
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
'
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
]
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3497
|
+
CdkDrag.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkDrag, deps: [{ token: i0.ElementRef }, { token: CDK_DROP_LIST, optional: true, skipSelf: true }, { token: DOCUMENT }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: CDK_DRAG_CONFIG, optional: true }, { token: i3.Directionality, optional: true }, { token: DragDrop }, { token: i0.ChangeDetectorRef }, { token: CDK_DRAG_HANDLE, optional: true, self: true }, { token: CDK_DRAG_PARENT, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3498
|
+
CdkDrag.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkDrag, selector: "[cdkDrag]", inputs: { data: ["cdkDragData", "data"], lockAxis: ["cdkDragLockAxis", "lockAxis"], rootElementSelector: ["cdkDragRootElement", "rootElementSelector"], boundaryElement: ["cdkDragBoundary", "boundaryElement"], dragStartDelay: ["cdkDragStartDelay", "dragStartDelay"], freeDragPosition: ["cdkDragFreeDragPosition", "freeDragPosition"], disabled: ["cdkDragDisabled", "disabled"], constrainPosition: ["cdkDragConstrainPosition", "constrainPosition"], previewClass: ["cdkDragPreviewClass", "previewClass"], previewContainer: ["cdkDragPreviewContainer", "previewContainer"] }, outputs: { started: "cdkDragStarted", released: "cdkDragReleased", ended: "cdkDragEnded", entered: "cdkDragEntered", exited: "cdkDragExited", dropped: "cdkDragDropped", moved: "cdkDragMoved" }, host: { properties: { "class.cdk-drag-disabled": "disabled", "class.cdk-drag-dragging": "_dragRef.isDragging()" }, classAttribute: "cdk-drag" }, providers: [{ provide: CDK_DRAG_PARENT, useExisting: CdkDrag }], queries: [{ propertyName: "_previewTemplate", first: true, predicate: CDK_DRAG_PREVIEW, descendants: true }, { propertyName: "_placeholderTemplate", first: true, predicate: CDK_DRAG_PLACEHOLDER, descendants: true }, { propertyName: "_handles", predicate: CDK_DRAG_HANDLE, descendants: true }], exportAs: ["cdkDrag"], usesOnChanges: true, ngImport: i0 });
|
|
3499
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkDrag, decorators: [{
|
|
3500
|
+
type: Directive,
|
|
3501
|
+
args: [{
|
|
3502
|
+
selector: '[cdkDrag]',
|
|
3503
|
+
exportAs: 'cdkDrag',
|
|
3504
|
+
host: {
|
|
3505
|
+
'class': DRAG_HOST_CLASS,
|
|
3506
|
+
'[class.cdk-drag-disabled]': 'disabled',
|
|
3507
|
+
'[class.cdk-drag-dragging]': '_dragRef.isDragging()',
|
|
3508
|
+
},
|
|
3509
|
+
providers: [{ provide: CDK_DRAG_PARENT, useExisting: CdkDrag }],
|
|
3510
|
+
}]
|
|
3511
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
3512
|
+
type: Inject,
|
|
3513
|
+
args: [CDK_DROP_LIST]
|
|
3514
|
+
}, {
|
|
3515
|
+
type: Optional
|
|
3516
|
+
}, {
|
|
3517
|
+
type: SkipSelf
|
|
3518
|
+
}] }, { type: undefined, decorators: [{
|
|
3519
|
+
type: Inject,
|
|
3520
|
+
args: [DOCUMENT]
|
|
3521
|
+
}] }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{
|
|
3522
|
+
type: Optional
|
|
3523
|
+
}, {
|
|
3524
|
+
type: Inject,
|
|
3525
|
+
args: [CDK_DRAG_CONFIG]
|
|
3526
|
+
}] }, { type: i3.Directionality, decorators: [{
|
|
3527
|
+
type: Optional
|
|
3528
|
+
}] }, { type: DragDrop }, { type: i0.ChangeDetectorRef }, { type: CdkDragHandle, decorators: [{
|
|
3529
|
+
type: Optional
|
|
3530
|
+
}, {
|
|
3531
|
+
type: Self
|
|
3532
|
+
}, {
|
|
3533
|
+
type: Inject,
|
|
3534
|
+
args: [CDK_DRAG_HANDLE]
|
|
3535
|
+
}] }, { type: CdkDrag, decorators: [{
|
|
3536
|
+
type: Optional
|
|
3537
|
+
}, {
|
|
3538
|
+
type: SkipSelf
|
|
3539
|
+
}, {
|
|
3540
|
+
type: Inject,
|
|
3541
|
+
args: [CDK_DRAG_PARENT]
|
|
3542
|
+
}] }]; }, propDecorators: { _handles: [{
|
|
3543
|
+
type: ContentChildren,
|
|
3544
|
+
args: [CDK_DRAG_HANDLE, { descendants: true }]
|
|
3545
|
+
}], _previewTemplate: [{
|
|
3546
|
+
type: ContentChild,
|
|
3547
|
+
args: [CDK_DRAG_PREVIEW]
|
|
3548
|
+
}], _placeholderTemplate: [{
|
|
3549
|
+
type: ContentChild,
|
|
3550
|
+
args: [CDK_DRAG_PLACEHOLDER]
|
|
3551
|
+
}], data: [{
|
|
3552
|
+
type: Input,
|
|
3553
|
+
args: ['cdkDragData']
|
|
3554
|
+
}], lockAxis: [{
|
|
3555
|
+
type: Input,
|
|
3556
|
+
args: ['cdkDragLockAxis']
|
|
3557
|
+
}], rootElementSelector: [{
|
|
3558
|
+
type: Input,
|
|
3559
|
+
args: ['cdkDragRootElement']
|
|
3560
|
+
}], boundaryElement: [{
|
|
3561
|
+
type: Input,
|
|
3562
|
+
args: ['cdkDragBoundary']
|
|
3563
|
+
}], dragStartDelay: [{
|
|
3564
|
+
type: Input,
|
|
3565
|
+
args: ['cdkDragStartDelay']
|
|
3566
|
+
}], freeDragPosition: [{
|
|
3567
|
+
type: Input,
|
|
3568
|
+
args: ['cdkDragFreeDragPosition']
|
|
3569
|
+
}], disabled: [{
|
|
3570
|
+
type: Input,
|
|
3571
|
+
args: ['cdkDragDisabled']
|
|
3572
|
+
}], constrainPosition: [{
|
|
3573
|
+
type: Input,
|
|
3574
|
+
args: ['cdkDragConstrainPosition']
|
|
3575
|
+
}], previewClass: [{
|
|
3576
|
+
type: Input,
|
|
3577
|
+
args: ['cdkDragPreviewClass']
|
|
3578
|
+
}], previewContainer: [{
|
|
3579
|
+
type: Input,
|
|
3580
|
+
args: ['cdkDragPreviewContainer']
|
|
3581
|
+
}], started: [{
|
|
3582
|
+
type: Output,
|
|
3583
|
+
args: ['cdkDragStarted']
|
|
3584
|
+
}], released: [{
|
|
3585
|
+
type: Output,
|
|
3586
|
+
args: ['cdkDragReleased']
|
|
3587
|
+
}], ended: [{
|
|
3588
|
+
type: Output,
|
|
3589
|
+
args: ['cdkDragEnded']
|
|
3590
|
+
}], entered: [{
|
|
3591
|
+
type: Output,
|
|
3592
|
+
args: ['cdkDragEntered']
|
|
3593
|
+
}], exited: [{
|
|
3594
|
+
type: Output,
|
|
3595
|
+
args: ['cdkDragExited']
|
|
3596
|
+
}], dropped: [{
|
|
3597
|
+
type: Output,
|
|
3598
|
+
args: ['cdkDragDropped']
|
|
3599
|
+
}], moved: [{
|
|
3600
|
+
type: Output,
|
|
3601
|
+
args: ['cdkDragMoved']
|
|
3602
|
+
}] } });
|
|
3459
3603
|
|
|
3460
3604
|
/**
|
|
3461
3605
|
* @license
|
|
@@ -3466,30 +3610,43 @@ CdkDrag.propDecorators = {
|
|
|
3466
3610
|
*/
|
|
3467
3611
|
class DragDropModule {
|
|
3468
3612
|
}
|
|
3469
|
-
DragDropModule
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3613
|
+
DragDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3614
|
+
DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DragDropModule, declarations: [CdkDropList,
|
|
3615
|
+
CdkDropListGroup,
|
|
3616
|
+
CdkDrag,
|
|
3617
|
+
CdkDragHandle,
|
|
3618
|
+
CdkDragPreview,
|
|
3619
|
+
CdkDragPlaceholder], exports: [CdkScrollableModule,
|
|
3620
|
+
CdkDropList,
|
|
3621
|
+
CdkDropListGroup,
|
|
3622
|
+
CdkDrag,
|
|
3623
|
+
CdkDragHandle,
|
|
3624
|
+
CdkDragPreview,
|
|
3625
|
+
CdkDragPlaceholder] });
|
|
3626
|
+
DragDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DragDropModule, providers: [DragDrop], imports: [CdkScrollableModule] });
|
|
3627
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DragDropModule, decorators: [{
|
|
3628
|
+
type: NgModule,
|
|
3629
|
+
args: [{
|
|
3630
|
+
declarations: [
|
|
3631
|
+
CdkDropList,
|
|
3632
|
+
CdkDropListGroup,
|
|
3633
|
+
CdkDrag,
|
|
3634
|
+
CdkDragHandle,
|
|
3635
|
+
CdkDragPreview,
|
|
3636
|
+
CdkDragPlaceholder,
|
|
3637
|
+
],
|
|
3638
|
+
exports: [
|
|
3639
|
+
CdkScrollableModule,
|
|
3640
|
+
CdkDropList,
|
|
3641
|
+
CdkDropListGroup,
|
|
3642
|
+
CdkDrag,
|
|
3643
|
+
CdkDragHandle,
|
|
3644
|
+
CdkDragPreview,
|
|
3645
|
+
CdkDragPlaceholder,
|
|
3646
|
+
],
|
|
3647
|
+
providers: [DragDrop],
|
|
3648
|
+
}]
|
|
3649
|
+
}] });
|
|
3493
3650
|
|
|
3494
3651
|
/**
|
|
3495
3652
|
* @license
|
|
@@ -3504,4 +3661,4 @@ DragDropModule.decorators = [
|
|
|
3504
3661
|
*/
|
|
3505
3662
|
|
|
3506
3663
|
export { CDK_DRAG_CONFIG, CDK_DRAG_HANDLE, CDK_DRAG_PARENT, CDK_DRAG_PLACEHOLDER, CDK_DRAG_PREVIEW, CDK_DROP_LIST, CDK_DROP_LIST_GROUP, CdkDrag, CdkDragHandle, CdkDragPlaceholder, CdkDragPreview, CdkDropList, CdkDropListGroup, DragDrop, DragDropModule, DragDropRegistry, DragRef, DropListRef, copyArrayItem, moveItemInArray, transferArrayItem };
|
|
3507
|
-
//# sourceMappingURL=drag-drop.
|
|
3664
|
+
//# sourceMappingURL=drag-drop.mjs.map
|