@angular/cdk 13.0.0-rc.0 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/a11y/_index.scss +1 -1
- package/a11y/a11y_public_index.d.ts +4 -0
- package/a11y/index.d.ts +5 -1
- package/a11y/package.json +2 -2
- package/accordion/accordion_public_index.d.ts +4 -0
- package/accordion/index.d.ts +5 -1
- package/accordion/package.json +2 -2
- package/bidi/bidi_public_index.d.ts +4 -0
- package/bidi/index.d.ts +5 -1
- package/bidi/package.json +2 -2
- package/clipboard/clipboard_public_index.d.ts +4 -0
- package/clipboard/index.d.ts +5 -1
- package/clipboard/package.json +2 -2
- package/collections/collections_public_index.d.ts +4 -0
- package/collections/index.d.ts +5 -1
- package/collections/package.json +2 -2
- package/drag-drop/drag-drop_public_index.d.ts +4 -0
- package/drag-drop/index.d.ts +5 -1
- package/drag-drop/package.json +2 -2
- package/esm2020/a11y/a11y-module.mjs +5 -5
- package/esm2020/a11y/a11y_public_index.mjs +5 -0
- package/esm2020/a11y/aria-describer/aria-describer.mjs +6 -7
- package/esm2020/a11y/aria-describer/aria-reference.mjs +1 -1
- package/esm2020/a11y/fake-event-detection.mjs +6 -5
- package/esm2020/a11y/focus-monitor/focus-monitor.mjs +26 -22
- package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +5 -5
- package/esm2020/a11y/focus-trap/configurable-focus-trap.mjs +4 -2
- package/esm2020/a11y/focus-trap/event-listener-inert-strategy.mjs +1 -1
- package/esm2020/a11y/focus-trap/focus-trap-inert-strategy.mjs +2 -2
- package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +5 -5
- package/esm2020/a11y/focus-trap/focus-trap.mjs +36 -26
- package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +12 -9
- package/esm2020/a11y/index.mjs +6 -2
- package/esm2020/a11y/input-modality/input-modality-detector.mjs +4 -4
- package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +18 -16
- package/esm2020/a11y/key-manager/activedescendant-key-manager.mjs +1 -1
- package/esm2020/a11y/key-manager/list-key-manager.mjs +10 -6
- package/esm2020/a11y/live-announcer/live-announcer-tokens.mjs +1 -1
- package/esm2020/a11y/live-announcer/live-announcer.mjs +12 -12
- package/esm2020/accordion/accordion-item.mjs +21 -14
- package/esm2020/accordion/accordion-module.mjs +5 -5
- package/esm2020/accordion/accordion.mjs +10 -6
- package/esm2020/accordion/accordion_public_index.mjs +5 -0
- package/esm2020/accordion/index.mjs +6 -2
- package/esm2020/bidi/bidi-module.mjs +5 -5
- package/esm2020/bidi/bidi_public_index.mjs +5 -0
- package/esm2020/bidi/dir-document-token.mjs +1 -1
- package/esm2020/bidi/dir.mjs +12 -8
- package/esm2020/bidi/directionality.mjs +5 -5
- package/esm2020/bidi/index.mjs +6 -2
- package/esm2020/bidi/public-api.mjs +1 -1
- package/esm2020/clipboard/clipboard-module.mjs +5 -5
- package/esm2020/clipboard/clipboard.mjs +4 -4
- package/esm2020/clipboard/clipboard_public_index.mjs +5 -0
- package/esm2020/clipboard/copy-to-clipboard.mjs +5 -5
- package/esm2020/clipboard/index.mjs +6 -2
- package/esm2020/clipboard/pending-copy.mjs +4 -3
- package/esm2020/collections/array-data-source.mjs +1 -1
- package/esm2020/collections/collection-viewer.mjs +1 -1
- package/esm2020/collections/collections_public_index.mjs +5 -0
- package/esm2020/collections/dispose-view-repeater-strategy.mjs +2 -3
- package/esm2020/collections/index.mjs +6 -2
- package/esm2020/collections/recycle-view-repeater-strategy.mjs +7 -4
- package/esm2020/collections/selection-model.mjs +2 -2
- package/esm2020/collections/tree-adapter.mjs +1 -1
- package/esm2020/collections/unique-selection-dispatcher.mjs +4 -4
- package/esm2020/collections/view-repeater.mjs +2 -2
- package/esm2020/drag-drop/client-rect.mjs +6 -4
- package/esm2020/drag-drop/clone-node.mjs +1 -1
- package/esm2020/drag-drop/directives/assertions.mjs +2 -3
- package/esm2020/drag-drop/directives/config.mjs +1 -1
- package/esm2020/drag-drop/directives/drag-handle.mjs +8 -6
- package/esm2020/drag-drop/directives/drag-placeholder.mjs +4 -4
- package/esm2020/drag-drop/directives/drag-preview.mjs +10 -6
- package/esm2020/drag-drop/directives/drag.mjs +49 -40
- package/esm2020/drag-drop/directives/drop-list-group.mjs +7 -5
- package/esm2020/drag-drop/directives/drop-list.mjs +15 -14
- package/esm2020/drag-drop/drag-drop-module.mjs +6 -10
- package/esm2020/drag-drop/drag-drop-registry.mjs +9 -9
- package/esm2020/drag-drop/drag-drop.mjs +5 -5
- package/esm2020/drag-drop/drag-drop_public_index.mjs +5 -0
- package/esm2020/drag-drop/drag-events.mjs +1 -1
- package/esm2020/drag-drop/drag-ref.mjs +56 -41
- package/esm2020/drag-drop/drag-styling.mjs +6 -6
- package/esm2020/drag-drop/drag-utils.mjs +1 -1
- package/esm2020/drag-drop/drop-list-ref.mjs +55 -37
- package/esm2020/drag-drop/index.mjs +6 -2
- package/esm2020/drag-drop/parent-position-tracker.mjs +2 -2
- package/esm2020/drag-drop/transition-duration.mjs +3 -3
- package/esm2020/keycodes/index.mjs +6 -2
- package/esm2020/keycodes/keycodes.mjs +1 -1
- package/esm2020/keycodes/keycodes_public_index.mjs +5 -0
- package/esm2020/layout/breakpoints-observer.mjs +6 -5
- package/esm2020/layout/breakpoints.mjs +1 -1
- package/esm2020/layout/index.mjs +6 -2
- package/esm2020/layout/layout-module.mjs +5 -5
- package/esm2020/layout/layout_public_index.mjs +5 -0
- package/esm2020/layout/media-matcher.mjs +11 -10
- package/esm2020/observers/index.mjs +6 -2
- package/esm2020/observers/observe-content.mjs +24 -21
- package/esm2020/observers/observers_public_index.mjs +5 -0
- package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +4 -4
- package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +4 -4
- package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +25 -6
- package/esm2020/overlay/fullscreen-overlay-container.mjs +6 -6
- package/esm2020/overlay/index.mjs +6 -2
- package/esm2020/overlay/overlay-config.mjs +1 -1
- package/esm2020/overlay/overlay-container.mjs +5 -6
- package/esm2020/overlay/overlay-directives.mjs +55 -30
- package/esm2020/overlay/overlay-module.mjs +6 -12
- package/esm2020/overlay/overlay-ref.mjs +2 -4
- package/esm2020/overlay/overlay.mjs +4 -4
- package/esm2020/overlay/overlay_public_index.mjs +5 -0
- package/esm2020/overlay/position/connected-position.mjs +1 -1
- package/esm2020/overlay/position/flexible-connected-position-strategy.mjs +26 -27
- package/esm2020/overlay/position/global-position-strategy.mjs +9 -3
- package/esm2020/overlay/position/overlay-position-builder.mjs +4 -4
- package/esm2020/overlay/position/scroll-clip.mjs +1 -1
- package/esm2020/overlay/scroll/block-scroll-strategy.mjs +1 -1
- package/esm2020/overlay/scroll/close-scroll-strategy.mjs +1 -1
- package/esm2020/overlay/scroll/index.mjs +2 -2
- package/esm2020/overlay/scroll/noop-scroll-strategy.mjs +1 -1
- package/esm2020/overlay/scroll/reposition-scroll-strategy.mjs +1 -1
- package/esm2020/overlay/scroll/scroll-strategy-options.mjs +4 -4
- package/esm2020/platform/features/input-types.mjs +1 -1
- package/esm2020/platform/features/passive-listeners.mjs +2 -2
- package/esm2020/platform/features/scrolling.mjs +1 -1
- package/esm2020/platform/features/shadow-dom.mjs +4 -3
- package/esm2020/platform/features/test-environment.mjs +3 -3
- package/esm2020/platform/index.mjs +6 -2
- package/esm2020/platform/platform-module.mjs +5 -5
- package/esm2020/platform/platform.mjs +18 -12
- package/esm2020/platform/platform_public_index.mjs +5 -0
- package/esm2020/portal/dom-portal-outlet.mjs +3 -3
- package/esm2020/portal/index.mjs +6 -2
- package/esm2020/portal/portal-directives.mjs +40 -33
- package/esm2020/portal/portal-errors.mjs +1 -1
- package/esm2020/portal/portal-injector.mjs +1 -1
- package/esm2020/portal/portal.mjs +2 -2
- package/esm2020/portal/portal_public_index.mjs +5 -0
- package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +36 -16
- package/esm2020/scrolling/index.mjs +6 -2
- package/esm2020/scrolling/scroll-dispatcher.mjs +9 -10
- package/esm2020/scrolling/scrollable.mjs +8 -7
- package/esm2020/scrolling/scrolling-module.mjs +12 -27
- package/esm2020/scrolling/scrolling_public_index.mjs +5 -0
- package/esm2020/scrolling/viewport-ruler.mjs +18 -12
- package/esm2020/scrolling/virtual-for-of.mjs +14 -18
- package/esm2020/scrolling/virtual-scroll-strategy.mjs +1 -1
- package/esm2020/scrolling/virtual-scroll-viewport.mjs +17 -13
- package/esm2020/stepper/index.mjs +6 -2
- package/esm2020/stepper/step-header.mjs +4 -4
- package/esm2020/stepper/step-label.mjs +4 -4
- package/esm2020/stepper/stepper-button.mjs +9 -9
- package/esm2020/stepper/stepper-module.mjs +8 -20
- package/esm2020/stepper/stepper.mjs +30 -19
- package/esm2020/stepper/stepper_public_index.mjs +5 -0
- package/esm2020/table/can-stick.mjs +4 -2
- package/esm2020/table/cell.mjs +33 -31
- package/esm2020/table/coalesced-style-scheduler.mjs +10 -8
- package/esm2020/table/index.mjs +6 -2
- package/esm2020/table/row.mjs +30 -30
- package/esm2020/table/sticky-position-listener.mjs +1 -1
- package/esm2020/table/sticky-styler.mjs +26 -16
- package/esm2020/table/table-errors.mjs +1 -1
- package/esm2020/table/table-module.mjs +8 -8
- package/esm2020/table/table.mjs +42 -37
- package/esm2020/table/table_public_index.mjs +5 -0
- package/esm2020/table/text-column.mjs +4 -4
- package/esm2020/table/tokens.mjs +1 -1
- package/esm2020/testing/change-detection.mjs +2 -2
- package/esm2020/testing/component-harness.mjs +4 -3
- package/esm2020/testing/element-dimensions.mjs +1 -1
- package/esm2020/testing/harness-environment.mjs +15 -11
- package/esm2020/testing/protractor/protractor-element.mjs +11 -10
- package/esm2020/testing/protractor/protractor-harness-environment.mjs +2 -2
- package/esm2020/testing/selenium-webdriver/selenium-web-driver-element.mjs +12 -11
- package/esm2020/testing/selenium-webdriver/selenium-web-driver-harness-environment.mjs +3 -4
- package/esm2020/testing/selenium-webdriver/selenium-webdriver-keys.mjs +2 -2
- package/esm2020/testing/test-element.mjs +1 -1
- package/esm2020/testing/testbed/fake-events/dispatch-events.mjs +1 -1
- package/esm2020/testing/testbed/fake-events/element-focus.mjs +2 -2
- package/esm2020/testing/testbed/fake-events/event-objects.mjs +1 -1
- package/esm2020/testing/testbed/fake-events/type-in-element.mjs +17 -8
- package/esm2020/testing/testbed/task-state-zone-interceptor.mjs +2 -2
- package/esm2020/testing/testbed/testbed-harness-environment.mjs +3 -3
- package/esm2020/testing/testbed/unit-test-element.mjs +4 -5
- package/esm2020/text-field/autofill.mjs +8 -8
- package/esm2020/text-field/autosize.mjs +22 -16
- package/esm2020/text-field/index.mjs +6 -2
- package/esm2020/text-field/text-field-module.mjs +5 -5
- package/esm2020/text-field/text-field_public_index.mjs +5 -0
- package/esm2020/tree/control/base-tree-control.mjs +4 -4
- package/esm2020/tree/control/flat-tree-control.mjs +1 -1
- package/esm2020/tree/control/nested-tree-control.mjs +2 -3
- package/esm2020/tree/index.mjs +6 -2
- package/esm2020/tree/nested-node.mjs +12 -10
- package/esm2020/tree/node.mjs +5 -7
- package/esm2020/tree/outlet.mjs +6 -6
- package/esm2020/tree/padding.mjs +17 -9
- package/esm2020/tree/toggle.mjs +10 -6
- package/esm2020/tree/tree-module.mjs +5 -5
- package/esm2020/tree/tree.mjs +31 -19
- package/esm2020/tree/tree_public_index.mjs +5 -0
- package/esm2020/version.mjs +1 -1
- package/fesm2015/a11y.mjs +142 -109
- package/fesm2015/a11y.mjs.map +1 -1
- package/fesm2015/accordion.mjs +41 -22
- package/fesm2015/accordion.mjs.map +1 -1
- package/fesm2015/bidi.mjs +26 -14
- package/fesm2015/bidi.mjs.map +1 -1
- package/fesm2015/cdk.mjs +1 -1
- package/fesm2015/cdk.mjs.map +1 -1
- package/fesm2015/clipboard.mjs +22 -13
- package/fesm2015/clipboard.mjs.map +1 -1
- package/fesm2015/collections.mjs +19 -9
- package/fesm2015/collections.mjs.map +1 -1
- package/fesm2015/drag-drop.mjs +233 -177
- package/fesm2015/drag-drop.mjs.map +1 -1
- package/fesm2015/keycodes.mjs +8 -0
- package/fesm2015/keycodes.mjs.map +1 -1
- package/fesm2015/layout.mjs +27 -17
- package/fesm2015/layout.mjs.map +1 -1
- package/fesm2015/observers.mjs +30 -19
- package/fesm2015/observers.mjs.map +1 -1
- package/fesm2015/overlay.mjs +149 -101
- package/fesm2015/overlay.mjs.map +1 -1
- package/fesm2015/platform.mjs +35 -20
- package/fesm2015/platform.mjs.map +1 -1
- package/fesm2015/portal.mjs +49 -34
- package/fesm2015/portal.mjs.map +1 -1
- package/fesm2015/scrolling.mjs +114 -95
- package/fesm2015/scrolling.mjs.map +1 -1
- package/fesm2015/stepper.mjs +57 -50
- package/fesm2015/stepper.mjs.map +1 -1
- package/fesm2015/table.mjs +152 -123
- package/fesm2015/table.mjs.map +1 -1
- package/fesm2015/testing/protractor.mjs +11 -10
- package/fesm2015/testing/protractor.mjs.map +1 -1
- package/fesm2015/testing/selenium-webdriver.mjs +13 -13
- package/fesm2015/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2015/testing/testbed.mjs +22 -14
- package/fesm2015/testing/testbed.mjs.map +1 -1
- package/fesm2015/testing.mjs +17 -12
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2015/text-field.mjs +39 -25
- package/fesm2015/text-field.mjs.map +1 -1
- package/fesm2015/tree.mjs +88 -57
- package/fesm2015/tree.mjs.map +1 -1
- package/fesm2020/a11y.mjs +142 -109
- package/fesm2020/a11y.mjs.map +1 -1
- package/fesm2020/accordion.mjs +41 -22
- package/fesm2020/accordion.mjs.map +1 -1
- package/fesm2020/bidi.mjs +26 -14
- package/fesm2020/bidi.mjs.map +1 -1
- package/fesm2020/cdk.mjs +1 -1
- package/fesm2020/cdk.mjs.map +1 -1
- package/fesm2020/clipboard.mjs +22 -13
- package/fesm2020/clipboard.mjs.map +1 -1
- package/fesm2020/collections.mjs +19 -9
- package/fesm2020/collections.mjs.map +1 -1
- package/fesm2020/drag-drop.mjs +233 -177
- package/fesm2020/drag-drop.mjs.map +1 -1
- package/fesm2020/keycodes.mjs +8 -0
- package/fesm2020/keycodes.mjs.map +1 -1
- package/fesm2020/layout.mjs +27 -17
- package/fesm2020/layout.mjs.map +1 -1
- package/fesm2020/observers.mjs +30 -19
- package/fesm2020/observers.mjs.map +1 -1
- package/fesm2020/overlay.mjs +149 -101
- package/fesm2020/overlay.mjs.map +1 -1
- package/fesm2020/platform.mjs +35 -20
- package/fesm2020/platform.mjs.map +1 -1
- package/fesm2020/portal.mjs +49 -34
- package/fesm2020/portal.mjs.map +1 -1
- package/fesm2020/scrolling.mjs +114 -95
- package/fesm2020/scrolling.mjs.map +1 -1
- package/fesm2020/stepper.mjs +57 -50
- package/fesm2020/stepper.mjs.map +1 -1
- package/fesm2020/table.mjs +152 -123
- package/fesm2020/table.mjs.map +1 -1
- package/fesm2020/testing/protractor.mjs +11 -10
- package/fesm2020/testing/protractor.mjs.map +1 -1
- package/fesm2020/testing/selenium-webdriver.mjs +13 -13
- package/fesm2020/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2020/testing/testbed.mjs +22 -14
- package/fesm2020/testing/testbed.mjs.map +1 -1
- package/fesm2020/testing.mjs +18 -13
- package/fesm2020/testing.mjs.map +1 -1
- package/fesm2020/text-field.mjs +39 -25
- package/fesm2020/text-field.mjs.map +1 -1
- package/fesm2020/tree.mjs +88 -57
- package/fesm2020/tree.mjs.map +1 -1
- package/keycodes/index.d.ts +5 -1
- package/keycodes/keycodes_public_index.d.ts +4 -0
- package/keycodes/package.json +2 -2
- package/layout/index.d.ts +5 -1
- package/layout/layout_public_index.d.ts +4 -0
- package/layout/package.json +2 -2
- package/observers/index.d.ts +5 -1
- package/observers/observers_public_index.d.ts +4 -0
- package/observers/package.json +2 -2
- package/overlay/dispatchers/overlay-outside-click-dispatcher.d.ts +3 -0
- package/overlay/index.d.ts +5 -1
- package/overlay/overlay_public_index.d.ts +4 -0
- package/overlay/package.json +2 -2
- package/overlay/position/flexible-connected-position-strategy.d.ts +2 -2
- package/overlay/scroll/index.d.ts +1 -1
- package/package.json +38 -38
- package/platform/index.d.ts +5 -1
- package/platform/package.json +2 -2
- package/platform/platform_public_index.d.ts +4 -0
- package/portal/index.d.ts +5 -1
- package/portal/package.json +2 -2
- package/portal/portal_public_index.d.ts +4 -0
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.mjs +2 -2
- 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 +2 -2
- package/schematics/ng-generate/drag-drop/index.mjs +2 -2
- 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-migration-rule.js +4 -3
- package/schematics/ng-update/devkit-migration-rule.mjs +4 -3
- package/schematics/ng-update/devkit-migration.d.ts +3 -2
- package/schematics/ng-update/devkit-migration.js +1 -1
- package/schematics/ng-update/devkit-migration.mjs +1 -1
- package/schematics/ng-update/html-parsing/elements.js +1 -1
- package/schematics/ng-update/html-parsing/elements.mjs +1 -1
- package/schematics/ng-update/index.js +2 -4
- package/schematics/ng-update/index.mjs +2 -4
- package/schematics/ng-update/migrations/attribute-selectors.js +7 -3
- package/schematics/ng-update/migrations/attribute-selectors.mjs +7 -3
- package/schematics/ng-update/migrations/class-inheritance.js +1 -1
- package/schematics/ng-update/migrations/class-inheritance.mjs +1 -1
- package/schematics/ng-update/migrations/class-names.js +3 -2
- package/schematics/ng-update/migrations/class-names.mjs +3 -2
- package/schematics/ng-update/migrations/constructor-signature.js +15 -12
- package/schematics/ng-update/migrations/constructor-signature.mjs +15 -12
- package/schematics/ng-update/migrations/css-selectors.js +3 -2
- package/schematics/ng-update/migrations/css-selectors.mjs +3 -2
- package/schematics/ng-update/migrations/element-selectors.js +3 -2
- package/schematics/ng-update/migrations/element-selectors.mjs +3 -2
- package/schematics/ng-update/migrations/input-names.js +4 -5
- package/schematics/ng-update/migrations/input-names.mjs +4 -5
- package/schematics/ng-update/migrations/method-call-arguments.js +3 -2
- package/schematics/ng-update/migrations/method-call-arguments.mjs +3 -2
- package/schematics/ng-update/migrations/misc-template.js +2 -2
- package/schematics/ng-update/migrations/misc-template.mjs +2 -2
- package/schematics/ng-update/migrations/output-names.js +4 -5
- package/schematics/ng-update/migrations/output-names.mjs +4 -5
- package/schematics/ng-update/migrations/property-names.js +3 -2
- package/schematics/ng-update/migrations/property-names.mjs +3 -2
- package/schematics/ng-update/migrations/symbol-removal.js +1 -1
- package/schematics/ng-update/migrations/symbol-removal.mjs +1 -1
- package/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.js +4 -3
- package/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.mjs +4 -3
- 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 +3 -3
- package/schematics/ng-update/typescript/module-specifiers.mjs +3 -3
- package/schematics/ng-update/upgrade-data.js +1 -1
- package/schematics/ng-update/upgrade-data.mjs +1 -1
- package/schematics/update-tool/component-resource-collector.js +2 -2
- package/schematics/update-tool/component-resource-collector.mjs +2 -2
- 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 +7 -3
- package/schematics/update-tool/index.mjs +7 -3
- 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 +7 -3
- package/schematics/update-tool/utils/decorators.mjs +7 -3
- 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 +1 -1
- package/schematics/update-tool/utils/parse-tsconfig.mjs +1 -1
- 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.js +2 -2
- package/schematics/update-tool/utils/virtual-host.mjs +2 -2
- 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 +1 -1
- package/schematics/utils/ast.mjs +1 -1
- package/schematics/utils/build-component.js +12 -18
- package/schematics/utils/build-component.mjs +12 -18
- package/schematics/utils/get-project.js +1 -1
- package/schematics/utils/get-project.mjs +1 -1
- package/schematics/utils/html-manipulation.js +6 -5
- package/schematics/utils/html-manipulation.mjs +6 -5
- package/schematics/utils/parse5-element.js +9 -10
- package/schematics/utils/parse5-element.mjs +9 -10
- package/schematics/utils/project-main-file.js +1 -1
- package/schematics/utils/project-main-file.mjs +1 -1
- package/schematics/utils/project-style-file.js +3 -5
- package/schematics/utils/project-style-file.mjs +3 -5
- package/schematics/utils/project-targets.js +1 -1
- package/schematics/utils/project-targets.mjs +1 -1
- package/schematics/utils/project-tsconfig-paths.js +2 -2
- package/schematics/utils/project-tsconfig-paths.mjs +2 -2
- package/schematics/utils/schematic-options.js +7 -5
- package/schematics/utils/schematic-options.mjs +7 -5
- package/schematics/utils/vendored-ast-utils/index.js +15 -16
- package/schematics/utils/vendored-ast-utils/index.mjs +15 -16
- package/scrolling/index.d.ts +5 -1
- package/scrolling/package.json +2 -2
- package/scrolling/scrolling_public_index.d.ts +4 -0
- package/stepper/index.d.ts +5 -1
- package/stepper/package.json +2 -2
- package/stepper/stepper_public_index.d.ts +4 -0
- package/table/index.d.ts +5 -1
- package/table/package.json +2 -2
- package/table/table_public_index.d.ts +4 -0
- package/testing/testbed/proxy-zone-types.d.ts +1 -1
- package/testing/testbed/zone-types.d.ts +1 -1
- package/text-field/index.d.ts +5 -1
- package/text-field/package.json +2 -2
- package/text-field/text-field_public_index.d.ts +4 -0
- package/tree/control/base-tree-control.d.ts +1 -1
- package/tree/control/nested-tree-control.d.ts +2 -2
- package/tree/index.d.ts +5 -1
- package/tree/package.json +2 -2
- package/tree/tree_public_index.d.ts +4 -0
package/fesm2020/drag-drop.mjs
CHANGED
|
@@ -51,7 +51,7 @@ function toggleNativeDragInteractions(element, enable) {
|
|
|
51
51
|
'user-select': userSelect,
|
|
52
52
|
'-ms-user-select': userSelect,
|
|
53
53
|
'-webkit-user-select': userSelect,
|
|
54
|
-
'-moz-user-select': userSelect
|
|
54
|
+
'-moz-user-select': userSelect,
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
@@ -66,7 +66,7 @@ function toggleVisibility(element, enable, importantProperties) {
|
|
|
66
66
|
position: enable ? '' : 'fixed',
|
|
67
67
|
top: enable ? '' : '0',
|
|
68
68
|
opacity: enable ? '' : '0',
|
|
69
|
-
left: enable ? '' : '-999em'
|
|
69
|
+
left: enable ? '' : '-999em',
|
|
70
70
|
}, importantProperties);
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
@@ -74,9 +74,9 @@ function toggleVisibility(element, enable, importantProperties) {
|
|
|
74
74
|
* that exited before the base transform was applied.
|
|
75
75
|
*/
|
|
76
76
|
function combineTransforms(transform, initialTransform) {
|
|
77
|
-
return initialTransform && initialTransform != 'none'
|
|
78
|
-
|
|
79
|
-
transform;
|
|
77
|
+
return initialTransform && initialTransform != 'none'
|
|
78
|
+
? transform + ' ' + initialTransform
|
|
79
|
+
: transform;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
/**
|
|
@@ -106,8 +106,8 @@ function getTransformTransitionDurationInMs(element) {
|
|
|
106
106
|
const propertyIndex = transitionedProperties.indexOf(property);
|
|
107
107
|
const rawDurations = parseCssPropertyValue(computedStyle, 'transition-duration');
|
|
108
108
|
const rawDelays = parseCssPropertyValue(computedStyle, 'transition-delay');
|
|
109
|
-
return parseCssTimeUnitsToMs(rawDurations[propertyIndex]) +
|
|
110
|
-
parseCssTimeUnitsToMs(rawDelays[propertyIndex]);
|
|
109
|
+
return (parseCssTimeUnitsToMs(rawDurations[propertyIndex]) +
|
|
110
|
+
parseCssTimeUnitsToMs(rawDelays[propertyIndex]));
|
|
111
111
|
}
|
|
112
112
|
/** Parses out multiple values from a computed style into an array. */
|
|
113
113
|
function parseCssPropertyValue(computedStyle, name) {
|
|
@@ -137,7 +137,7 @@ function getMutableClientRect(element) {
|
|
|
137
137
|
width: clientRect.width,
|
|
138
138
|
height: clientRect.height,
|
|
139
139
|
x: clientRect.x,
|
|
140
|
-
y: clientRect.y
|
|
140
|
+
y: clientRect.y,
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
143
|
/**
|
|
@@ -173,8 +173,10 @@ function isPointerNearClientRect(rect, threshold, pointerX, pointerY) {
|
|
|
173
173
|
const { top, right, bottom, left, width, height } = rect;
|
|
174
174
|
const xThreshold = width * threshold;
|
|
175
175
|
const yThreshold = height * threshold;
|
|
176
|
-
return pointerY > top - yThreshold &&
|
|
177
|
-
|
|
176
|
+
return (pointerY > top - yThreshold &&
|
|
177
|
+
pointerY < bottom + yThreshold &&
|
|
178
|
+
pointerX > left - xThreshold &&
|
|
179
|
+
pointerX < right + xThreshold);
|
|
178
180
|
}
|
|
179
181
|
|
|
180
182
|
/**
|
|
@@ -205,7 +207,7 @@ class ParentPositionTracker {
|
|
|
205
207
|
elements.forEach(element => {
|
|
206
208
|
this.positions.set(element, {
|
|
207
209
|
scrollPosition: { top: element.scrollTop, left: element.scrollLeft },
|
|
208
|
-
clientRect: getMutableClientRect(element)
|
|
210
|
+
clientRect: getMutableClientRect(element),
|
|
209
211
|
});
|
|
210
212
|
});
|
|
211
213
|
}
|
|
@@ -329,7 +331,7 @@ const MOUSE_EVENT_IGNORE_TIME = 800;
|
|
|
329
331
|
/** Inline styles to be set as `!important` while dragging. */
|
|
330
332
|
const dragImportantProperties = new Set([
|
|
331
333
|
// Needs to be important, because some `mat-table` sets `position: sticky !important`. See #22781.
|
|
332
|
-
'position'
|
|
334
|
+
'position',
|
|
333
335
|
]);
|
|
334
336
|
/**
|
|
335
337
|
* Reference to a draggable item. Used to manipulate or dispose of the item.
|
|
@@ -485,7 +487,7 @@ class DragRef {
|
|
|
485
487
|
pointerPosition: constrainedPointerPosition,
|
|
486
488
|
event,
|
|
487
489
|
distance: this._getDragDistance(constrainedPointerPosition),
|
|
488
|
-
delta: this._pointerDirectionDelta
|
|
490
|
+
delta: this._pointerDirectionDelta,
|
|
489
491
|
});
|
|
490
492
|
});
|
|
491
493
|
}
|
|
@@ -631,8 +633,14 @@ class DragRef {
|
|
|
631
633
|
this._dropContainer = undefined;
|
|
632
634
|
this._resizeSubscription.unsubscribe();
|
|
633
635
|
this._parentPositions.clear();
|
|
634
|
-
this._boundaryElement =
|
|
635
|
-
this.
|
|
636
|
+
this._boundaryElement =
|
|
637
|
+
this._rootElement =
|
|
638
|
+
this._ownerSVGElement =
|
|
639
|
+
this._placeholderTemplate =
|
|
640
|
+
this._previewTemplate =
|
|
641
|
+
this._anchor =
|
|
642
|
+
this._parentDragRef =
|
|
643
|
+
null;
|
|
636
644
|
}
|
|
637
645
|
/** Checks whether the element is currently being dragged. */
|
|
638
646
|
isDragging() {
|
|
@@ -768,7 +776,7 @@ class DragRef {
|
|
|
768
776
|
this.ended.next({
|
|
769
777
|
source: this,
|
|
770
778
|
distance: this._getDragDistance(pointerPosition),
|
|
771
|
-
dropPoint: pointerPosition
|
|
779
|
+
dropPoint: pointerPosition,
|
|
772
780
|
});
|
|
773
781
|
});
|
|
774
782
|
this._cleanupCachedDimensions();
|
|
@@ -785,8 +793,8 @@ class DragRef {
|
|
|
785
793
|
if (dropContainer) {
|
|
786
794
|
const element = this._rootElement;
|
|
787
795
|
const parent = element.parentNode;
|
|
788
|
-
const placeholder = this._placeholder = this._createPlaceholderElement();
|
|
789
|
-
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(''));
|
|
790
798
|
// Needs to happen before the root element is moved.
|
|
791
799
|
const shadowRoot = this._getShadowRoot();
|
|
792
800
|
// Insert an anchor node so that we can restore the element's position in the DOM.
|
|
@@ -833,10 +841,12 @@ class DragRef {
|
|
|
833
841
|
const isAuxiliaryMouseButton = !isTouchSequence && event.button !== 0;
|
|
834
842
|
const rootElement = this._rootElement;
|
|
835
843
|
const target = _getEventTarget(event);
|
|
836
|
-
const isSyntheticEvent = !isTouchSequence &&
|
|
844
|
+
const isSyntheticEvent = !isTouchSequence &&
|
|
845
|
+
this._lastTouchEventTime &&
|
|
837
846
|
this._lastTouchEventTime + MOUSE_EVENT_IGNORE_TIME > Date.now();
|
|
838
|
-
const isFakeEvent = isTouchSequence
|
|
839
|
-
|
|
847
|
+
const isFakeEvent = isTouchSequence
|
|
848
|
+
? isFakeTouchstartFromScreenReader(event)
|
|
849
|
+
: isFakeMousedownFromScreenReader(event);
|
|
840
850
|
// If the event started from an element with the native HTML drag&drop, it'll interfere
|
|
841
851
|
// with our own dragging (e.g. `img` tags do it by default). Prevent the default action
|
|
842
852
|
// to stop it from happening. Note that preventing on `dragstart` also seems to work, but
|
|
@@ -874,11 +884,13 @@ class DragRef {
|
|
|
874
884
|
// it next to the cursor. The exception is when the consumer has opted into making the preview
|
|
875
885
|
// the same size as the root element, in which case we do know the size.
|
|
876
886
|
const previewTemplate = this._previewTemplate;
|
|
877
|
-
this._pickupPositionInElement =
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
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));
|
|
882
894
|
this._pointerDirectionDelta = { x: 0, y: 0 };
|
|
883
895
|
this._pointerPositionAtLastDirectionChange = { x: pointerPosition.x, y: pointerPosition.y };
|
|
884
896
|
this._dragStartTime = Date.now();
|
|
@@ -911,7 +923,7 @@ class DragRef {
|
|
|
911
923
|
previousContainer: this._initialContainer,
|
|
912
924
|
isPointerOverContainer,
|
|
913
925
|
distance,
|
|
914
|
-
dropPoint: pointerPosition
|
|
926
|
+
dropPoint: pointerPosition,
|
|
915
927
|
});
|
|
916
928
|
container.drop(this, currentIndex, this._initialIndex, this._initialContainer, isPointerOverContainer, distance, pointerPosition);
|
|
917
929
|
this._dropContainer = this._initialContainer;
|
|
@@ -928,7 +940,8 @@ class DragRef {
|
|
|
928
940
|
// initial container, check whether the it's over the initial container. This handles the
|
|
929
941
|
// case where two containers are connected one way and the user tries to undo dragging an
|
|
930
942
|
// item into a new container.
|
|
931
|
-
if (!newContainer &&
|
|
943
|
+
if (!newContainer &&
|
|
944
|
+
this._dropContainer !== this._initialContainer &&
|
|
932
945
|
this._initialContainer._isOverContainer(x, y)) {
|
|
933
946
|
newContainer = this._initialContainer;
|
|
934
947
|
}
|
|
@@ -942,11 +955,13 @@ class DragRef {
|
|
|
942
955
|
this._dropContainer.enter(this, x, y, newContainer === this._initialContainer &&
|
|
943
956
|
// If we're re-entering the initial container and sorting is disabled,
|
|
944
957
|
// put item the into its starting index to begin with.
|
|
945
|
-
newContainer.sortingDisabled
|
|
958
|
+
newContainer.sortingDisabled
|
|
959
|
+
? this._initialIndex
|
|
960
|
+
: undefined);
|
|
946
961
|
this.entered.next({
|
|
947
962
|
item: this,
|
|
948
963
|
container: newContainer,
|
|
949
|
-
currentIndex: newContainer.getItemIndex(this)
|
|
964
|
+
currentIndex: newContainer.getItemIndex(this),
|
|
950
965
|
});
|
|
951
966
|
});
|
|
952
967
|
}
|
|
@@ -978,8 +993,7 @@ class DragRef {
|
|
|
978
993
|
matchElementSize(preview, rootRect);
|
|
979
994
|
}
|
|
980
995
|
else {
|
|
981
|
-
preview.style.transform =
|
|
982
|
-
getTransform(this._pickupPositionOnPage.x, this._pickupPositionOnPage.y);
|
|
996
|
+
preview.style.transform = getTransform(this._pickupPositionOnPage.x, this._pickupPositionOnPage.y);
|
|
983
997
|
}
|
|
984
998
|
}
|
|
985
999
|
else {
|
|
@@ -999,7 +1013,7 @@ class DragRef {
|
|
|
999
1013
|
'position': 'fixed',
|
|
1000
1014
|
'top': '0',
|
|
1001
1015
|
'left': '0',
|
|
1002
|
-
'z-index': `${this._config.zIndex || 1000}
|
|
1016
|
+
'z-index': `${this._config.zIndex || 1000}`,
|
|
1003
1017
|
}, dragImportantProperties);
|
|
1004
1018
|
toggleNativeDragInteractions(preview, false);
|
|
1005
1019
|
preview.classList.add('cdk-drag-preview');
|
|
@@ -1039,8 +1053,8 @@ class DragRef {
|
|
|
1039
1053
|
return this._ngZone.runOutsideAngular(() => {
|
|
1040
1054
|
return new Promise(resolve => {
|
|
1041
1055
|
const handler = ((event) => {
|
|
1042
|
-
if (!event ||
|
|
1043
|
-
event.propertyName === 'transform')) {
|
|
1056
|
+
if (!event ||
|
|
1057
|
+
(_getEventTarget(event) === this._preview && event.propertyName === 'transform')) {
|
|
1044
1058
|
this._preview?.removeEventListener('transitionend', handler);
|
|
1045
1059
|
resolve();
|
|
1046
1060
|
clearTimeout(timeout);
|
|
@@ -1085,21 +1099,22 @@ class DragRef {
|
|
|
1085
1099
|
const y = point.pageY - referenceRect.top - scrollPosition.top;
|
|
1086
1100
|
return {
|
|
1087
1101
|
x: referenceRect.left - elementRect.left + x,
|
|
1088
|
-
y: referenceRect.top - elementRect.top + y
|
|
1102
|
+
y: referenceRect.top - elementRect.top + y,
|
|
1089
1103
|
};
|
|
1090
1104
|
}
|
|
1091
1105
|
/** Determines the point of the page that was touched by the user. */
|
|
1092
1106
|
_getPointerPositionOnPage(event) {
|
|
1093
1107
|
const scrollPosition = this._getViewportScrollPosition();
|
|
1094
|
-
const point = isTouchEvent(event)
|
|
1095
|
-
// `touches` will be empty for start/end events so we have to fall back to `changedTouches`.
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
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;
|
|
1103
1118
|
const x = point.pageX - scrollPosition.left;
|
|
1104
1119
|
const y = point.pageY - scrollPosition.top;
|
|
1105
1120
|
// if dragging SVG element, try to convert from the screen coordinate system to the SVG
|
|
@@ -1293,7 +1308,8 @@ class DragRef {
|
|
|
1293
1308
|
const target = _getEventTarget(event);
|
|
1294
1309
|
// ClientRect dimensions are based on the scroll position of the page and its parent
|
|
1295
1310
|
// node so we have to update the cached boundary ClientRect if the user has scrolled.
|
|
1296
|
-
if (this._boundaryRect &&
|
|
1311
|
+
if (this._boundaryRect &&
|
|
1312
|
+
target !== this._boundaryElement &&
|
|
1297
1313
|
target.contains(this._boundaryElement)) {
|
|
1298
1314
|
adjustClientRect(this._boundaryRect, scrollDifference.top, scrollDifference.left);
|
|
1299
1315
|
}
|
|
@@ -1311,8 +1327,9 @@ class DragRef {
|
|
|
1311
1327
|
/** Gets the scroll position of the viewport. */
|
|
1312
1328
|
_getViewportScrollPosition() {
|
|
1313
1329
|
const cachedPosition = this._parentPositions.positions.get(this._document);
|
|
1314
|
-
return cachedPosition
|
|
1315
|
-
|
|
1330
|
+
return cachedPosition
|
|
1331
|
+
? cachedPosition.scrollPosition
|
|
1332
|
+
: this._viewportRuler.getViewportScrollPosition();
|
|
1316
1333
|
}
|
|
1317
1334
|
/**
|
|
1318
1335
|
* Lazily resolves and returns the shadow root of the element. We do this in a function, rather
|
|
@@ -1337,12 +1354,12 @@ class DragRef {
|
|
|
1337
1354
|
// We can't use the body if the user is in fullscreen mode,
|
|
1338
1355
|
// because the preview will render under the fullscreen element.
|
|
1339
1356
|
// TODO(crisbeto): dedupe this with the `FullscreenOverlayContainer` eventually.
|
|
1340
|
-
return shadowRoot ||
|
|
1357
|
+
return (shadowRoot ||
|
|
1341
1358
|
documentRef.fullscreenElement ||
|
|
1342
1359
|
documentRef.webkitFullscreenElement ||
|
|
1343
1360
|
documentRef.mozFullScreenElement ||
|
|
1344
1361
|
documentRef.msFullscreenElement ||
|
|
1345
|
-
documentRef.body;
|
|
1362
|
+
documentRef.body);
|
|
1346
1363
|
}
|
|
1347
1364
|
return coerceElement(previewContainer);
|
|
1348
1365
|
}
|
|
@@ -1685,7 +1702,7 @@ class DropListRef {
|
|
|
1685
1702
|
previousContainer,
|
|
1686
1703
|
isPointerOverContainer,
|
|
1687
1704
|
distance,
|
|
1688
|
-
dropPoint
|
|
1705
|
+
dropPoint,
|
|
1689
1706
|
});
|
|
1690
1707
|
}
|
|
1691
1708
|
/**
|
|
@@ -1758,8 +1775,9 @@ class DropListRef {
|
|
|
1758
1775
|
// Items are sorted always by top/left in the cache, however they flow differently in RTL.
|
|
1759
1776
|
// The rest of the logic still stands no matter what orientation we're in, however
|
|
1760
1777
|
// we need to invert the array when determining the index.
|
|
1761
|
-
const items = this._orientation === 'horizontal' && this._direction === 'rtl'
|
|
1762
|
-
this._itemPositions.slice().reverse()
|
|
1778
|
+
const items = this._orientation === 'horizontal' && this._direction === 'rtl'
|
|
1779
|
+
? this._itemPositions.slice().reverse()
|
|
1780
|
+
: this._itemPositions;
|
|
1763
1781
|
return items.findIndex(currentItem => currentItem.drag === item);
|
|
1764
1782
|
}
|
|
1765
1783
|
/**
|
|
@@ -1778,7 +1796,8 @@ class DropListRef {
|
|
|
1778
1796
|
*/
|
|
1779
1797
|
_sortItem(item, pointerX, pointerY, pointerDelta) {
|
|
1780
1798
|
// Don't sort the item if sorting is disabled or it's out of range.
|
|
1781
|
-
if (this.sortingDisabled ||
|
|
1799
|
+
if (this.sortingDisabled ||
|
|
1800
|
+
!this._clientRect ||
|
|
1782
1801
|
!isPointerNearClientRect(this._clientRect, DROP_PROXIMITY_THRESHOLD, pointerX, pointerY)) {
|
|
1783
1802
|
return;
|
|
1784
1803
|
}
|
|
@@ -1806,7 +1825,7 @@ class DropListRef {
|
|
|
1806
1825
|
previousIndex: currentIndex,
|
|
1807
1826
|
currentIndex: newIndex,
|
|
1808
1827
|
container: this,
|
|
1809
|
-
item
|
|
1828
|
+
item,
|
|
1810
1829
|
});
|
|
1811
1830
|
siblings.forEach((sibling, index) => {
|
|
1812
1831
|
// Don't do anything if the position hasn't changed.
|
|
@@ -1815,8 +1834,9 @@ class DropListRef {
|
|
|
1815
1834
|
}
|
|
1816
1835
|
const isDraggedItem = sibling.drag === item;
|
|
1817
1836
|
const offset = isDraggedItem ? itemOffset : siblingOffset;
|
|
1818
|
-
const elementToOffset = isDraggedItem
|
|
1819
|
-
|
|
1837
|
+
const elementToOffset = isDraggedItem
|
|
1838
|
+
? item.getPlaceholderElement()
|
|
1839
|
+
: sibling.drag.getRootElement();
|
|
1820
1840
|
// Update the offset to reflect the new position.
|
|
1821
1841
|
sibling.offset += offset;
|
|
1822
1842
|
// Since we're moving the items with a `transform`, we need to adjust their cached
|
|
@@ -1869,14 +1889,22 @@ class DropListRef {
|
|
|
1869
1889
|
// Otherwise check if we can start scrolling the viewport.
|
|
1870
1890
|
if (!verticalScrollDirection && !horizontalScrollDirection) {
|
|
1871
1891
|
const { width, height } = this._viewportRuler.getViewportSize();
|
|
1872
|
-
const clientRect = {
|
|
1892
|
+
const clientRect = {
|
|
1893
|
+
width,
|
|
1894
|
+
height,
|
|
1895
|
+
top: 0,
|
|
1896
|
+
right: width,
|
|
1897
|
+
bottom: height,
|
|
1898
|
+
left: 0,
|
|
1899
|
+
};
|
|
1873
1900
|
verticalScrollDirection = getVerticalScrollDirection(clientRect, pointerY);
|
|
1874
1901
|
horizontalScrollDirection = getHorizontalScrollDirection(clientRect, pointerX);
|
|
1875
1902
|
scrollNode = window;
|
|
1876
1903
|
}
|
|
1877
|
-
if (scrollNode &&
|
|
1878
|
-
|
|
1879
|
-
|
|
1904
|
+
if (scrollNode &&
|
|
1905
|
+
(verticalScrollDirection !== this._verticalScrollDirection ||
|
|
1906
|
+
horizontalScrollDirection !== this._horizontalScrollDirection ||
|
|
1907
|
+
scrollNode !== this._scrollNode)) {
|
|
1880
1908
|
this._verticalScrollDirection = verticalScrollDirection;
|
|
1881
1909
|
this._horizontalScrollDirection = horizontalScrollDirection;
|
|
1882
1910
|
this._scrollNode = scrollNode;
|
|
@@ -1917,7 +1945,8 @@ class DropListRef {
|
|
|
1917
1945
|
/** Refreshes the position cache of the items and sibling containers. */
|
|
1918
1946
|
_cacheItemPositions() {
|
|
1919
1947
|
const isHorizontal = this._orientation === 'horizontal';
|
|
1920
|
-
this._itemPositions = this._activeDraggables
|
|
1948
|
+
this._itemPositions = this._activeDraggables
|
|
1949
|
+
.map(drag => {
|
|
1921
1950
|
const elementToMeasure = drag.getVisibleElement();
|
|
1922
1951
|
return {
|
|
1923
1952
|
drag,
|
|
@@ -1925,9 +1954,11 @@ class DropListRef {
|
|
|
1925
1954
|
initialTransform: elementToMeasure.style.transform || '',
|
|
1926
1955
|
clientRect: getMutableClientRect(elementToMeasure),
|
|
1927
1956
|
};
|
|
1928
|
-
})
|
|
1929
|
-
|
|
1930
|
-
|
|
1957
|
+
})
|
|
1958
|
+
.sort((a, b) => {
|
|
1959
|
+
return isHorizontal
|
|
1960
|
+
? a.clientRect.left - b.clientRect.left
|
|
1961
|
+
: a.clientRect.top - b.clientRect.top;
|
|
1931
1962
|
});
|
|
1932
1963
|
}
|
|
1933
1964
|
/** Resets the container to its initial state. */
|
|
@@ -1939,8 +1970,7 @@ class DropListRef {
|
|
|
1939
1970
|
this._activeDraggables.forEach(item => {
|
|
1940
1971
|
const rootElement = item.getRootElement();
|
|
1941
1972
|
if (rootElement) {
|
|
1942
|
-
const initialTransform = this._itemPositions
|
|
1943
|
-
.find(current => current.drag === item)?.initialTransform;
|
|
1973
|
+
const initialTransform = this._itemPositions.find(current => current.drag === item)?.initialTransform;
|
|
1944
1974
|
rootElement.style.transform = initialTransform || '';
|
|
1945
1975
|
}
|
|
1946
1976
|
});
|
|
@@ -1989,12 +2019,14 @@ class DropListRef {
|
|
|
1989
2019
|
*/
|
|
1990
2020
|
_getItemOffsetPx(currentPosition, newPosition, delta) {
|
|
1991
2021
|
const isHorizontal = this._orientation === 'horizontal';
|
|
1992
|
-
let itemOffset = isHorizontal
|
|
1993
|
-
newPosition.
|
|
2022
|
+
let itemOffset = isHorizontal
|
|
2023
|
+
? newPosition.left - currentPosition.left
|
|
2024
|
+
: newPosition.top - currentPosition.top;
|
|
1994
2025
|
// Account for differences in the item width/height.
|
|
1995
2026
|
if (delta === -1) {
|
|
1996
|
-
itemOffset += isHorizontal
|
|
1997
|
-
newPosition.
|
|
2027
|
+
itemOffset += isHorizontal
|
|
2028
|
+
? newPosition.width - currentPosition.width
|
|
2029
|
+
: newPosition.height - currentPosition.height;
|
|
1998
2030
|
}
|
|
1999
2031
|
return itemOffset;
|
|
2000
2032
|
}
|
|
@@ -2040,18 +2072,19 @@ class DropListRef {
|
|
|
2040
2072
|
// If the user is still hovering over the same item as last time, their cursor hasn't left
|
|
2041
2073
|
// the item after we made the swap, and they didn't change the direction in which they're
|
|
2042
2074
|
// dragging, we don't consider it a direction swap.
|
|
2043
|
-
if (drag === this._previousSwap.drag &&
|
|
2075
|
+
if (drag === this._previousSwap.drag &&
|
|
2076
|
+
this._previousSwap.overlaps &&
|
|
2044
2077
|
direction === this._previousSwap.delta) {
|
|
2045
2078
|
return false;
|
|
2046
2079
|
}
|
|
2047
2080
|
}
|
|
2048
|
-
return isHorizontal
|
|
2049
|
-
// Round these down since most browsers report client rects with
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
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);
|
|
2053
2086
|
});
|
|
2054
|
-
return
|
|
2087
|
+
return index === -1 || !this.sortPredicate(index, item, this) ? -1 : index;
|
|
2055
2088
|
}
|
|
2056
2089
|
/** Caches the current items in the list and their positions. */
|
|
2057
2090
|
_cacheItems() {
|
|
@@ -2084,7 +2117,8 @@ class DropListRef {
|
|
|
2084
2117
|
* @param y Position of the item along the Y axis.
|
|
2085
2118
|
*/
|
|
2086
2119
|
_canReceive(item, x, y) {
|
|
2087
|
-
if (!this._clientRect ||
|
|
2120
|
+
if (!this._clientRect ||
|
|
2121
|
+
!isInsideClientRect(this._clientRect, x, y) ||
|
|
2088
2122
|
!this.enterPredicate(item, this)) {
|
|
2089
2123
|
return false;
|
|
2090
2124
|
}
|
|
@@ -2109,13 +2143,14 @@ class DropListRef {
|
|
|
2109
2143
|
*/
|
|
2110
2144
|
_startReceiving(sibling, items) {
|
|
2111
2145
|
const activeSiblings = this._activeSiblings;
|
|
2112
|
-
if (!activeSiblings.has(sibling) &&
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
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
|
+
})) {
|
|
2119
2154
|
activeSiblings.add(sibling);
|
|
2120
2155
|
this._cacheParentPositions();
|
|
2121
2156
|
this._listenToScrollEvents();
|
|
@@ -2266,7 +2301,7 @@ function getElementScrollDirections(element, clientRect, pointerX, pointerY) {
|
|
|
2266
2301
|
/** Event options that can be used to bind an active, capturing event. */
|
|
2267
2302
|
const activeCapturingEventOptions = normalizePassiveListenerOptions({
|
|
2268
2303
|
passive: false,
|
|
2269
|
-
capture: true
|
|
2304
|
+
capture: true,
|
|
2270
2305
|
});
|
|
2271
2306
|
/**
|
|
2272
2307
|
* Service that keeps track of all the drag item and drop container
|
|
@@ -2382,13 +2417,13 @@ class DragDropRegistry {
|
|
|
2382
2417
|
this._globalListeners
|
|
2383
2418
|
.set(isTouchEvent ? 'touchend' : 'mouseup', {
|
|
2384
2419
|
handler: (e) => this.pointerUp.next(e),
|
|
2385
|
-
options: true
|
|
2420
|
+
options: true,
|
|
2386
2421
|
})
|
|
2387
2422
|
.set('scroll', {
|
|
2388
2423
|
handler: (e) => this.scroll.next(e),
|
|
2389
2424
|
// Use capturing so that we pick up scroll changes in any scrollable nodes that aren't
|
|
2390
2425
|
// the document. See https://github.com/angular/components/issues/17144.
|
|
2391
|
-
options: true
|
|
2426
|
+
options: true,
|
|
2392
2427
|
})
|
|
2393
2428
|
// Preventing the default action on `mousemove` isn't enough to disable text selection
|
|
2394
2429
|
// on Safari so we need to prevent the selection event as well. Alternatively this can
|
|
@@ -2396,14 +2431,14 @@ class DragDropRegistry {
|
|
|
2396
2431
|
// recalculation which can be expensive on pages with a lot of elements.
|
|
2397
2432
|
.set('selectstart', {
|
|
2398
2433
|
handler: this._preventDefaultWhileDragging,
|
|
2399
|
-
options: activeCapturingEventOptions
|
|
2434
|
+
options: activeCapturingEventOptions,
|
|
2400
2435
|
});
|
|
2401
2436
|
// We don't have to bind a move event for touch drag sequences, because
|
|
2402
2437
|
// we already have a persistent global one bound from `registerDragItem`.
|
|
2403
2438
|
if (!isTouchEvent) {
|
|
2404
2439
|
this._globalListeners.set('mousemove', {
|
|
2405
2440
|
handler: (e) => this.pointerMove.next(e),
|
|
2406
|
-
options: activeCapturingEventOptions
|
|
2441
|
+
options: activeCapturingEventOptions,
|
|
2407
2442
|
});
|
|
2408
2443
|
}
|
|
2409
2444
|
this._ngZone.runOutsideAngular(() => {
|
|
@@ -2472,9 +2507,9 @@ class DragDropRegistry {
|
|
|
2472
2507
|
this._globalListeners.clear();
|
|
2473
2508
|
}
|
|
2474
2509
|
}
|
|
2475
|
-
DragDropRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2476
|
-
DragDropRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
2477
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
2510
|
+
DragDropRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", 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-rc.3", ngImport: i0, type: DragDropRegistry, providedIn: 'root' });
|
|
2512
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: DragDropRegistry, decorators: [{
|
|
2478
2513
|
type: Injectable,
|
|
2479
2514
|
args: [{ providedIn: 'root' }]
|
|
2480
2515
|
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: undefined, decorators: [{
|
|
@@ -2492,7 +2527,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
2492
2527
|
/** Default configuration to be used when creating a `DragRef`. */
|
|
2493
2528
|
const DEFAULT_CONFIG = {
|
|
2494
2529
|
dragStartThreshold: 5,
|
|
2495
|
-
pointerDirectionChangeThreshold: 5
|
|
2530
|
+
pointerDirectionChangeThreshold: 5,
|
|
2496
2531
|
};
|
|
2497
2532
|
/**
|
|
2498
2533
|
* Service that allows for drag-and-drop functionality to be attached to DOM elements.
|
|
@@ -2520,9 +2555,9 @@ class DragDrop {
|
|
|
2520
2555
|
return new DropListRef(element, this._dragDropRegistry, this._document, this._ngZone, this._viewportRuler);
|
|
2521
2556
|
}
|
|
2522
2557
|
}
|
|
2523
|
-
DragDrop.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2524
|
-
DragDrop.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
2525
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
2558
|
+
DragDrop.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", 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-rc.3", ngImport: i0, type: DragDrop, providedIn: 'root' });
|
|
2560
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: DragDrop, decorators: [{
|
|
2526
2561
|
type: Injectable,
|
|
2527
2562
|
args: [{ providedIn: 'root' }]
|
|
2528
2563
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -2579,7 +2614,9 @@ class CdkDropListGroup {
|
|
|
2579
2614
|
this._disabled = false;
|
|
2580
2615
|
}
|
|
2581
2616
|
/** Whether starting a dragging sequence from inside this group is disabled. */
|
|
2582
|
-
get disabled() {
|
|
2617
|
+
get disabled() {
|
|
2618
|
+
return this._disabled;
|
|
2619
|
+
}
|
|
2583
2620
|
set disabled(value) {
|
|
2584
2621
|
this._disabled = coerceBooleanProperty(value);
|
|
2585
2622
|
}
|
|
@@ -2587,9 +2624,9 @@ class CdkDropListGroup {
|
|
|
2587
2624
|
this._items.clear();
|
|
2588
2625
|
}
|
|
2589
2626
|
}
|
|
2590
|
-
CdkDropListGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2591
|
-
CdkDropListGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
2592
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
2627
|
+
CdkDropListGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkDropListGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2628
|
+
CdkDropListGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", 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-rc.3", ngImport: i0, type: CdkDropListGroup, decorators: [{
|
|
2593
2630
|
type: Directive,
|
|
2594
2631
|
args: [{
|
|
2595
2632
|
selector: '[cdkDropListGroup]',
|
|
@@ -2628,8 +2665,7 @@ const CDK_DRAG_CONFIG = new InjectionToken('CDK_DRAG_CONFIG');
|
|
|
2628
2665
|
*/
|
|
2629
2666
|
function assertElementNode(node, name) {
|
|
2630
2667
|
if (node.nodeType !== 1) {
|
|
2631
|
-
throw Error(`${name} must be attached to an element node. ` +
|
|
2632
|
-
`Currently attached to "${node.nodeName}".`);
|
|
2668
|
+
throw Error(`${name} must be attached to an element node. ` + `Currently attached to "${node.nodeName}".`);
|
|
2633
2669
|
}
|
|
2634
2670
|
}
|
|
2635
2671
|
|
|
@@ -2710,10 +2746,9 @@ class CdkDropList {
|
|
|
2710
2746
|
this._dropListRef.enterPredicate = (drag, drop) => {
|
|
2711
2747
|
return this.enterPredicate(drag.data, drop.data);
|
|
2712
2748
|
};
|
|
2713
|
-
this._dropListRef.sortPredicate =
|
|
2714
|
-
(index, drag, drop)
|
|
2715
|
-
|
|
2716
|
-
};
|
|
2749
|
+
this._dropListRef.sortPredicate = (index, drag, drop) => {
|
|
2750
|
+
return this.sortPredicate(index, drag.data, drop.data);
|
|
2751
|
+
};
|
|
2717
2752
|
this._setupInputSyncSubscription(this._dropListRef);
|
|
2718
2753
|
this._handleEvents(this._dropListRef);
|
|
2719
2754
|
CdkDropList._dropLists.push(this);
|
|
@@ -2749,7 +2784,9 @@ class CdkDropList {
|
|
|
2749
2784
|
/** Gets the registered items in the list, sorted by their position in the DOM. */
|
|
2750
2785
|
getSortedItems() {
|
|
2751
2786
|
return Array.from(this._unsortedItems).sort((a, b) => {
|
|
2752
|
-
const documentPosition = a._dragRef
|
|
2787
|
+
const documentPosition = a._dragRef
|
|
2788
|
+
.getVisibleElement()
|
|
2789
|
+
.compareDocumentPosition(b._dragRef.getVisibleElement());
|
|
2753
2790
|
// `compareDocumentPosition` returns a bitmask so we have to use a bitwise operator.
|
|
2754
2791
|
// https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
|
|
2755
2792
|
// tslint:disable-next-line:no-bitwise
|
|
@@ -2825,13 +2862,13 @@ class CdkDropList {
|
|
|
2825
2862
|
this.entered.emit({
|
|
2826
2863
|
container: this,
|
|
2827
2864
|
item: event.item.data,
|
|
2828
|
-
currentIndex: event.currentIndex
|
|
2865
|
+
currentIndex: event.currentIndex,
|
|
2829
2866
|
});
|
|
2830
2867
|
});
|
|
2831
2868
|
ref.exited.subscribe(event => {
|
|
2832
2869
|
this.exited.emit({
|
|
2833
2870
|
container: this,
|
|
2834
|
-
item: event.item.data
|
|
2871
|
+
item: event.item.data,
|
|
2835
2872
|
});
|
|
2836
2873
|
this._changeDetectorRef.markForCheck();
|
|
2837
2874
|
});
|
|
@@ -2840,7 +2877,7 @@ class CdkDropList {
|
|
|
2840
2877
|
previousIndex: event.previousIndex,
|
|
2841
2878
|
currentIndex: event.currentIndex,
|
|
2842
2879
|
container: this,
|
|
2843
|
-
item: event.item.data
|
|
2880
|
+
item: event.item.data,
|
|
2844
2881
|
});
|
|
2845
2882
|
});
|
|
2846
2883
|
ref.dropped.subscribe(event => {
|
|
@@ -2852,7 +2889,7 @@ class CdkDropList {
|
|
|
2852
2889
|
item: event.item.data,
|
|
2853
2890
|
isPointerOverContainer: event.isPointerOverContainer,
|
|
2854
2891
|
distance: event.distance,
|
|
2855
|
-
dropPoint: event.dropPoint
|
|
2892
|
+
dropPoint: event.dropPoint,
|
|
2856
2893
|
});
|
|
2857
2894
|
// Mark for check since all of these events run outside of change
|
|
2858
2895
|
// detection and we're not guaranteed for something else to have triggered it.
|
|
@@ -2877,13 +2914,13 @@ class CdkDropList {
|
|
|
2877
2914
|
}
|
|
2878
2915
|
/** Keeps track of the drop lists that are currently on the page. */
|
|
2879
2916
|
CdkDropList._dropLists = [];
|
|
2880
|
-
CdkDropList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2881
|
-
CdkDropList.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
2917
|
+
CdkDropList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", 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-rc.3", 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: [
|
|
2882
2919
|
// Prevent child drop lists from picking up the same group as their parent.
|
|
2883
2920
|
{ provide: CDK_DROP_LIST_GROUP, useValue: undefined },
|
|
2884
2921
|
{ provide: CDK_DROP_LIST, useExisting: CdkDropList },
|
|
2885
2922
|
], exportAs: ["cdkDropList"], ngImport: i0 });
|
|
2886
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
2923
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkDropList, decorators: [{
|
|
2887
2924
|
type: Directive,
|
|
2888
2925
|
args: [{
|
|
2889
2926
|
selector: '[cdkDropList], cdk-drop-list',
|
|
@@ -2899,7 +2936,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
2899
2936
|
'[class.cdk-drop-list-disabled]': 'disabled',
|
|
2900
2937
|
'[class.cdk-drop-list-dragging]': '_dropListRef.isDragging()',
|
|
2901
2938
|
'[class.cdk-drop-list-receiving]': '_dropListRef.isReceiving()',
|
|
2902
|
-
}
|
|
2939
|
+
},
|
|
2903
2940
|
}]
|
|
2904
2941
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: DragDrop }, { type: i0.ChangeDetectorRef }, { type: i1.ScrollDispatcher }, { type: i3.Directionality, decorators: [{
|
|
2905
2942
|
type: Optional
|
|
@@ -2987,7 +3024,9 @@ class CdkDragHandle {
|
|
|
2987
3024
|
this._parentDrag = parentDrag;
|
|
2988
3025
|
}
|
|
2989
3026
|
/** Whether starting to drag through this handle is disabled. */
|
|
2990
|
-
get disabled() {
|
|
3027
|
+
get disabled() {
|
|
3028
|
+
return this._disabled;
|
|
3029
|
+
}
|
|
2991
3030
|
set disabled(value) {
|
|
2992
3031
|
this._disabled = coerceBooleanProperty(value);
|
|
2993
3032
|
this._stateChanges.next(this);
|
|
@@ -2996,14 +3035,14 @@ class CdkDragHandle {
|
|
|
2996
3035
|
this._stateChanges.complete();
|
|
2997
3036
|
}
|
|
2998
3037
|
}
|
|
2999
|
-
CdkDragHandle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
3000
|
-
CdkDragHandle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
3001
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
3038
|
+
CdkDragHandle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", 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-rc.3", 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-rc.3", ngImport: i0, type: CdkDragHandle, decorators: [{
|
|
3002
3041
|
type: Directive,
|
|
3003
3042
|
args: [{
|
|
3004
3043
|
selector: '[cdkDragHandle]',
|
|
3005
3044
|
host: {
|
|
3006
|
-
'class': 'cdk-drag-handle'
|
|
3045
|
+
'class': 'cdk-drag-handle',
|
|
3007
3046
|
},
|
|
3008
3047
|
providers: [{ provide: CDK_DRAG_HANDLE, useExisting: CdkDragHandle }],
|
|
3009
3048
|
}]
|
|
@@ -3041,9 +3080,9 @@ class CdkDragPlaceholder {
|
|
|
3041
3080
|
this.templateRef = templateRef;
|
|
3042
3081
|
}
|
|
3043
3082
|
}
|
|
3044
|
-
CdkDragPlaceholder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
3045
|
-
CdkDragPlaceholder.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
3046
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
3083
|
+
CdkDragPlaceholder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", 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-rc.3", 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-rc.3", ngImport: i0, type: CdkDragPlaceholder, decorators: [{
|
|
3047
3086
|
type: Directive,
|
|
3048
3087
|
args: [{
|
|
3049
3088
|
selector: 'ng-template[cdkDragPlaceholder]',
|
|
@@ -3076,12 +3115,16 @@ class CdkDragPreview {
|
|
|
3076
3115
|
this._matchSize = false;
|
|
3077
3116
|
}
|
|
3078
3117
|
/** Whether the preview should preserve the same size as the item that is being dragged. */
|
|
3079
|
-
get matchSize() {
|
|
3080
|
-
|
|
3118
|
+
get matchSize() {
|
|
3119
|
+
return this._matchSize;
|
|
3120
|
+
}
|
|
3121
|
+
set matchSize(value) {
|
|
3122
|
+
this._matchSize = coerceBooleanProperty(value);
|
|
3123
|
+
}
|
|
3081
3124
|
}
|
|
3082
|
-
CdkDragPreview.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
3083
|
-
CdkDragPreview.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
3084
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
3125
|
+
CdkDragPreview.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", 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-rc.3", 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-rc.3", ngImport: i0, type: CdkDragPreview, decorators: [{
|
|
3085
3128
|
type: Directive,
|
|
3086
3129
|
args: [{
|
|
3087
3130
|
selector: 'ng-template[cdkDragPreview]',
|
|
@@ -3139,22 +3182,24 @@ class CdkDrag {
|
|
|
3139
3182
|
* because this event will fire for every pixel that the user has dragged.
|
|
3140
3183
|
*/
|
|
3141
3184
|
this.moved = new Observable((observer) => {
|
|
3142
|
-
const subscription = this._dragRef.moved
|
|
3185
|
+
const subscription = this._dragRef.moved
|
|
3186
|
+
.pipe(map(movedEvent => ({
|
|
3143
3187
|
source: this,
|
|
3144
3188
|
pointerPosition: movedEvent.pointerPosition,
|
|
3145
3189
|
event: movedEvent.event,
|
|
3146
3190
|
delta: movedEvent.delta,
|
|
3147
|
-
distance: movedEvent.distance
|
|
3148
|
-
})))
|
|
3191
|
+
distance: movedEvent.distance,
|
|
3192
|
+
})))
|
|
3193
|
+
.subscribe(observer);
|
|
3149
3194
|
return () => {
|
|
3150
3195
|
subscription.unsubscribe();
|
|
3151
3196
|
};
|
|
3152
3197
|
});
|
|
3153
3198
|
this._dragRef = dragDrop.createDrag(element, {
|
|
3154
|
-
dragStartThreshold: config && config.dragStartThreshold != null ?
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3199
|
+
dragStartThreshold: config && config.dragStartThreshold != null ? config.dragStartThreshold : 5,
|
|
3200
|
+
pointerDirectionChangeThreshold: config && config.pointerDirectionChangeThreshold != null
|
|
3201
|
+
? config.pointerDirectionChangeThreshold
|
|
3202
|
+
: 5,
|
|
3158
3203
|
zIndex: config?.zIndex,
|
|
3159
3204
|
});
|
|
3160
3205
|
this._dragRef.data = this;
|
|
@@ -3216,9 +3261,7 @@ class CdkDrag {
|
|
|
3216
3261
|
// element to be in the proper place in the DOM. This is mostly relevant
|
|
3217
3262
|
// for draggable elements inside portals since they get stamped out in
|
|
3218
3263
|
// their original DOM position and then they get transferred to the portal.
|
|
3219
|
-
this._ngZone.onStable
|
|
3220
|
-
.pipe(take(1), takeUntil(this._destroyed))
|
|
3221
|
-
.subscribe(() => {
|
|
3264
|
+
this._ngZone.onStable.pipe(take(1), takeUntil(this._destroyed)).subscribe(() => {
|
|
3222
3265
|
this._updateRootElement();
|
|
3223
3266
|
this._setupHandlesListener();
|
|
3224
3267
|
if (this.freeDragPosition) {
|
|
@@ -3260,10 +3303,11 @@ class CdkDrag {
|
|
|
3260
3303
|
const element = this.element.nativeElement;
|
|
3261
3304
|
let rootElement = element;
|
|
3262
3305
|
if (this.rootElementSelector) {
|
|
3263
|
-
rootElement =
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
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);
|
|
3267
3311
|
}
|
|
3268
3312
|
if (rootElement && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
3269
3313
|
assertElementNode(rootElement, 'cdkDrag');
|
|
@@ -3292,21 +3336,27 @@ class CdkDrag {
|
|
|
3292
3336
|
if (!ref.isDragging()) {
|
|
3293
3337
|
const dir = this._dir;
|
|
3294
3338
|
const dragStartDelay = this.dragStartDelay;
|
|
3295
|
-
const placeholder = this._placeholderTemplate
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
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;
|
|
3306
3354
|
ref.disabled = this.disabled;
|
|
3307
3355
|
ref.lockAxis = this.lockAxis;
|
|
3308
|
-
ref.dragStartDelay =
|
|
3309
|
-
dragStartDelay
|
|
3356
|
+
ref.dragStartDelay =
|
|
3357
|
+
typeof dragStartDelay === 'object' && dragStartDelay
|
|
3358
|
+
? dragStartDelay
|
|
3359
|
+
: coerceNumberProperty(dragStartDelay);
|
|
3310
3360
|
ref.constrainPosition = this.constrainPosition;
|
|
3311
3361
|
ref.previewClass = this.previewClass;
|
|
3312
3362
|
ref
|
|
@@ -3355,7 +3405,7 @@ class CdkDrag {
|
|
|
3355
3405
|
this.ended.emit({
|
|
3356
3406
|
source: this,
|
|
3357
3407
|
distance: event.distance,
|
|
3358
|
-
dropPoint: event.dropPoint
|
|
3408
|
+
dropPoint: event.dropPoint,
|
|
3359
3409
|
});
|
|
3360
3410
|
// Since all of these events run outside of change detection,
|
|
3361
3411
|
// we need to ensure that everything is marked correctly.
|
|
@@ -3365,13 +3415,13 @@ class CdkDrag {
|
|
|
3365
3415
|
this.entered.emit({
|
|
3366
3416
|
container: event.container.data,
|
|
3367
3417
|
item: this,
|
|
3368
|
-
currentIndex: event.currentIndex
|
|
3418
|
+
currentIndex: event.currentIndex,
|
|
3369
3419
|
});
|
|
3370
3420
|
});
|
|
3371
3421
|
ref.exited.subscribe(event => {
|
|
3372
3422
|
this.exited.emit({
|
|
3373
3423
|
container: event.container.data,
|
|
3374
|
-
item: this
|
|
3424
|
+
item: this,
|
|
3375
3425
|
});
|
|
3376
3426
|
});
|
|
3377
3427
|
ref.dropped.subscribe(event => {
|
|
@@ -3383,13 +3433,13 @@ class CdkDrag {
|
|
|
3383
3433
|
isPointerOverContainer: event.isPointerOverContainer,
|
|
3384
3434
|
item: this,
|
|
3385
3435
|
distance: event.distance,
|
|
3386
|
-
dropPoint: event.dropPoint
|
|
3436
|
+
dropPoint: event.dropPoint,
|
|
3387
3437
|
});
|
|
3388
3438
|
});
|
|
3389
3439
|
}
|
|
3390
3440
|
/** Assigns the default input values based on a provided config object. */
|
|
3391
3441
|
_assignDefaults(config) {
|
|
3392
|
-
const { lockAxis, dragStartDelay, constrainPosition, previewClass, boundaryElement, draggingDisabled, rootElementSelector, previewContainer } = config;
|
|
3442
|
+
const { lockAxis, dragStartDelay, constrainPosition, previewClass, boundaryElement, draggingDisabled, rootElementSelector, previewContainer, } = config;
|
|
3393
3443
|
this.disabled = draggingDisabled == null ? false : draggingDisabled;
|
|
3394
3444
|
this.dragStartDelay = dragStartDelay || 0;
|
|
3395
3445
|
if (lockAxis) {
|
|
@@ -3414,7 +3464,8 @@ class CdkDrag {
|
|
|
3414
3464
|
/** Sets up the listener that syncs the handles with the drag ref. */
|
|
3415
3465
|
_setupHandlesListener() {
|
|
3416
3466
|
// Listen for any newly-added handles.
|
|
3417
|
-
this._handles.changes
|
|
3467
|
+
this._handles.changes
|
|
3468
|
+
.pipe(startWith(this._handles),
|
|
3418
3469
|
// Sync the new handles with the DragRef.
|
|
3419
3470
|
tap((handles) => {
|
|
3420
3471
|
const childHandleElements = handles
|
|
@@ -3433,7 +3484,8 @@ class CdkDrag {
|
|
|
3433
3484
|
return merge(...handles.map(item => {
|
|
3434
3485
|
return item._stateChanges.pipe(startWith(item));
|
|
3435
3486
|
}));
|
|
3436
|
-
}), takeUntil(this._destroyed))
|
|
3487
|
+
}), takeUntil(this._destroyed))
|
|
3488
|
+
.subscribe(handleInstance => {
|
|
3437
3489
|
// Enabled/disable the handle that changed in the DragRef.
|
|
3438
3490
|
const dragRef = this._dragRef;
|
|
3439
3491
|
const handle = handleInstance.element.nativeElement;
|
|
@@ -3442,9 +3494,9 @@ class CdkDrag {
|
|
|
3442
3494
|
}
|
|
3443
3495
|
}
|
|
3444
3496
|
CdkDrag._dragInstances = [];
|
|
3445
|
-
CdkDrag.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
3446
|
-
CdkDrag.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
3447
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
3497
|
+
CdkDrag.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", 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-rc.3", 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-rc.3", ngImport: i0, type: CdkDrag, decorators: [{
|
|
3448
3500
|
type: Directive,
|
|
3449
3501
|
args: [{
|
|
3450
3502
|
selector: '[cdkDrag]',
|
|
@@ -3454,7 +3506,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
3454
3506
|
'[class.cdk-drag-disabled]': 'disabled',
|
|
3455
3507
|
'[class.cdk-drag-dragging]': '_dragRef.isDragging()',
|
|
3456
3508
|
},
|
|
3457
|
-
providers: [{ provide: CDK_DRAG_PARENT, useExisting: CdkDrag }]
|
|
3509
|
+
providers: [{ provide: CDK_DRAG_PARENT, useExisting: CdkDrag }],
|
|
3458
3510
|
}]
|
|
3459
3511
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
3460
3512
|
type: Inject,
|
|
@@ -3558,8 +3610,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
3558
3610
|
*/
|
|
3559
3611
|
class DragDropModule {
|
|
3560
3612
|
}
|
|
3561
|
-
DragDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
3562
|
-
DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-
|
|
3613
|
+
DragDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: DragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3614
|
+
DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: DragDropModule, declarations: [CdkDropList,
|
|
3563
3615
|
CdkDropListGroup,
|
|
3564
3616
|
CdkDrag,
|
|
3565
3617
|
CdkDragHandle,
|
|
@@ -3571,10 +3623,8 @@ DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
3571
3623
|
CdkDragHandle,
|
|
3572
3624
|
CdkDragPreview,
|
|
3573
3625
|
CdkDragPlaceholder] });
|
|
3574
|
-
DragDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-
|
|
3575
|
-
|
|
3576
|
-
], imports: [CdkScrollableModule] });
|
|
3577
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DragDropModule, decorators: [{
|
|
3626
|
+
DragDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: DragDropModule, providers: [DragDrop], imports: [CdkScrollableModule] });
|
|
3627
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: DragDropModule, decorators: [{
|
|
3578
3628
|
type: NgModule,
|
|
3579
3629
|
args: [{
|
|
3580
3630
|
declarations: [
|
|
@@ -3594,9 +3644,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
3594
3644
|
CdkDragPreview,
|
|
3595
3645
|
CdkDragPlaceholder,
|
|
3596
3646
|
],
|
|
3597
|
-
providers: [
|
|
3598
|
-
DragDrop,
|
|
3599
|
-
]
|
|
3647
|
+
providers: [DragDrop],
|
|
3600
3648
|
}]
|
|
3601
3649
|
}] });
|
|
3602
3650
|
|
|
@@ -3608,6 +3656,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
3608
3656
|
* found in the LICENSE file at https://angular.io/license
|
|
3609
3657
|
*/
|
|
3610
3658
|
|
|
3659
|
+
/**
|
|
3660
|
+
* @license
|
|
3661
|
+
* Copyright Google LLC All Rights Reserved.
|
|
3662
|
+
*
|
|
3663
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
3664
|
+
* found in the LICENSE file at https://angular.io/license
|
|
3665
|
+
*/
|
|
3666
|
+
|
|
3611
3667
|
/**
|
|
3612
3668
|
* Generated bundle index. Do not edit.
|
|
3613
3669
|
*/
|