@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/fesm2015/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
|
}
|
|
@@ -632,8 +634,14 @@ class DragRef {
|
|
|
632
634
|
this._dropContainer = undefined;
|
|
633
635
|
this._resizeSubscription.unsubscribe();
|
|
634
636
|
this._parentPositions.clear();
|
|
635
|
-
this._boundaryElement =
|
|
636
|
-
this.
|
|
637
|
+
this._boundaryElement =
|
|
638
|
+
this._rootElement =
|
|
639
|
+
this._ownerSVGElement =
|
|
640
|
+
this._placeholderTemplate =
|
|
641
|
+
this._previewTemplate =
|
|
642
|
+
this._anchor =
|
|
643
|
+
this._parentDragRef =
|
|
644
|
+
null;
|
|
637
645
|
}
|
|
638
646
|
/** Checks whether the element is currently being dragged. */
|
|
639
647
|
isDragging() {
|
|
@@ -771,7 +779,7 @@ class DragRef {
|
|
|
771
779
|
this.ended.next({
|
|
772
780
|
source: this,
|
|
773
781
|
distance: this._getDragDistance(pointerPosition),
|
|
774
|
-
dropPoint: pointerPosition
|
|
782
|
+
dropPoint: pointerPosition,
|
|
775
783
|
});
|
|
776
784
|
});
|
|
777
785
|
this._cleanupCachedDimensions();
|
|
@@ -788,8 +796,8 @@ class DragRef {
|
|
|
788
796
|
if (dropContainer) {
|
|
789
797
|
const element = this._rootElement;
|
|
790
798
|
const parent = element.parentNode;
|
|
791
|
-
const placeholder = this._placeholder = this._createPlaceholderElement();
|
|
792
|
-
const anchor = this._anchor = this._anchor || this._document.createComment('');
|
|
799
|
+
const placeholder = (this._placeholder = this._createPlaceholderElement());
|
|
800
|
+
const anchor = (this._anchor = this._anchor || this._document.createComment(''));
|
|
793
801
|
// Needs to happen before the root element is moved.
|
|
794
802
|
const shadowRoot = this._getShadowRoot();
|
|
795
803
|
// Insert an anchor node so that we can restore the element's position in the DOM.
|
|
@@ -836,10 +844,12 @@ class DragRef {
|
|
|
836
844
|
const isAuxiliaryMouseButton = !isTouchSequence && event.button !== 0;
|
|
837
845
|
const rootElement = this._rootElement;
|
|
838
846
|
const target = _getEventTarget(event);
|
|
839
|
-
const isSyntheticEvent = !isTouchSequence &&
|
|
847
|
+
const isSyntheticEvent = !isTouchSequence &&
|
|
848
|
+
this._lastTouchEventTime &&
|
|
840
849
|
this._lastTouchEventTime + MOUSE_EVENT_IGNORE_TIME > Date.now();
|
|
841
|
-
const isFakeEvent = isTouchSequence
|
|
842
|
-
|
|
850
|
+
const isFakeEvent = isTouchSequence
|
|
851
|
+
? isFakeTouchstartFromScreenReader(event)
|
|
852
|
+
: isFakeMousedownFromScreenReader(event);
|
|
843
853
|
// If the event started from an element with the native HTML drag&drop, it'll interfere
|
|
844
854
|
// with our own dragging (e.g. `img` tags do it by default). Prevent the default action
|
|
845
855
|
// to stop it from happening. Note that preventing on `dragstart` also seems to work, but
|
|
@@ -877,11 +887,13 @@ class DragRef {
|
|
|
877
887
|
// it next to the cursor. The exception is when the consumer has opted into making the preview
|
|
878
888
|
// the same size as the root element, in which case we do know the size.
|
|
879
889
|
const previewTemplate = this._previewTemplate;
|
|
880
|
-
this._pickupPositionInElement =
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
890
|
+
this._pickupPositionInElement =
|
|
891
|
+
previewTemplate && previewTemplate.template && !previewTemplate.matchSize
|
|
892
|
+
? { x: 0, y: 0 }
|
|
893
|
+
: this._getPointerPositionInElement(referenceElement, event);
|
|
894
|
+
const pointerPosition = (this._pickupPositionOnPage =
|
|
895
|
+
this._lastKnownPointerPosition =
|
|
896
|
+
this._getPointerPositionOnPage(event));
|
|
885
897
|
this._pointerDirectionDelta = { x: 0, y: 0 };
|
|
886
898
|
this._pointerPositionAtLastDirectionChange = { x: pointerPosition.x, y: pointerPosition.y };
|
|
887
899
|
this._dragStartTime = Date.now();
|
|
@@ -914,7 +926,7 @@ class DragRef {
|
|
|
914
926
|
previousContainer: this._initialContainer,
|
|
915
927
|
isPointerOverContainer,
|
|
916
928
|
distance,
|
|
917
|
-
dropPoint: pointerPosition
|
|
929
|
+
dropPoint: pointerPosition,
|
|
918
930
|
});
|
|
919
931
|
container.drop(this, currentIndex, this._initialIndex, this._initialContainer, isPointerOverContainer, distance, pointerPosition);
|
|
920
932
|
this._dropContainer = this._initialContainer;
|
|
@@ -931,7 +943,8 @@ class DragRef {
|
|
|
931
943
|
// initial container, check whether the it's over the initial container. This handles the
|
|
932
944
|
// case where two containers are connected one way and the user tries to undo dragging an
|
|
933
945
|
// item into a new container.
|
|
934
|
-
if (!newContainer &&
|
|
946
|
+
if (!newContainer &&
|
|
947
|
+
this._dropContainer !== this._initialContainer &&
|
|
935
948
|
this._initialContainer._isOverContainer(x, y)) {
|
|
936
949
|
newContainer = this._initialContainer;
|
|
937
950
|
}
|
|
@@ -945,11 +958,13 @@ class DragRef {
|
|
|
945
958
|
this._dropContainer.enter(this, x, y, newContainer === this._initialContainer &&
|
|
946
959
|
// If we're re-entering the initial container and sorting is disabled,
|
|
947
960
|
// put item the into its starting index to begin with.
|
|
948
|
-
newContainer.sortingDisabled
|
|
961
|
+
newContainer.sortingDisabled
|
|
962
|
+
? this._initialIndex
|
|
963
|
+
: undefined);
|
|
949
964
|
this.entered.next({
|
|
950
965
|
item: this,
|
|
951
966
|
container: newContainer,
|
|
952
|
-
currentIndex: newContainer.getItemIndex(this)
|
|
967
|
+
currentIndex: newContainer.getItemIndex(this),
|
|
953
968
|
});
|
|
954
969
|
});
|
|
955
970
|
}
|
|
@@ -981,8 +996,7 @@ class DragRef {
|
|
|
981
996
|
matchElementSize(preview, rootRect);
|
|
982
997
|
}
|
|
983
998
|
else {
|
|
984
|
-
preview.style.transform =
|
|
985
|
-
getTransform(this._pickupPositionOnPage.x, this._pickupPositionOnPage.y);
|
|
999
|
+
preview.style.transform = getTransform(this._pickupPositionOnPage.x, this._pickupPositionOnPage.y);
|
|
986
1000
|
}
|
|
987
1001
|
}
|
|
988
1002
|
else {
|
|
@@ -1002,7 +1016,7 @@ class DragRef {
|
|
|
1002
1016
|
'position': 'fixed',
|
|
1003
1017
|
'top': '0',
|
|
1004
1018
|
'left': '0',
|
|
1005
|
-
'z-index': `${this._config.zIndex || 1000}
|
|
1019
|
+
'z-index': `${this._config.zIndex || 1000}`,
|
|
1006
1020
|
}, dragImportantProperties);
|
|
1007
1021
|
toggleNativeDragInteractions(preview, false);
|
|
1008
1022
|
preview.classList.add('cdk-drag-preview');
|
|
@@ -1043,8 +1057,8 @@ class DragRef {
|
|
|
1043
1057
|
return new Promise(resolve => {
|
|
1044
1058
|
const handler = ((event) => {
|
|
1045
1059
|
var _a;
|
|
1046
|
-
if (!event ||
|
|
1047
|
-
event.propertyName === 'transform')) {
|
|
1060
|
+
if (!event ||
|
|
1061
|
+
(_getEventTarget(event) === this._preview && event.propertyName === 'transform')) {
|
|
1048
1062
|
(_a = this._preview) === null || _a === void 0 ? void 0 : _a.removeEventListener('transitionend', handler);
|
|
1049
1063
|
resolve();
|
|
1050
1064
|
clearTimeout(timeout);
|
|
@@ -1089,21 +1103,22 @@ class DragRef {
|
|
|
1089
1103
|
const y = point.pageY - referenceRect.top - scrollPosition.top;
|
|
1090
1104
|
return {
|
|
1091
1105
|
x: referenceRect.left - elementRect.left + x,
|
|
1092
|
-
y: referenceRect.top - elementRect.top + y
|
|
1106
|
+
y: referenceRect.top - elementRect.top + y,
|
|
1093
1107
|
};
|
|
1094
1108
|
}
|
|
1095
1109
|
/** Determines the point of the page that was touched by the user. */
|
|
1096
1110
|
_getPointerPositionOnPage(event) {
|
|
1097
1111
|
const scrollPosition = this._getViewportScrollPosition();
|
|
1098
|
-
const point = isTouchEvent(event)
|
|
1099
|
-
// `touches` will be empty for start/end events so we have to fall back to `changedTouches`.
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1112
|
+
const point = isTouchEvent(event)
|
|
1113
|
+
? // `touches` will be empty for start/end events so we have to fall back to `changedTouches`.
|
|
1114
|
+
// Also note that on real devices we're guaranteed for either `touches` or `changedTouches`
|
|
1115
|
+
// to have a value, but Firefox in device emulation mode has a bug where both can be empty
|
|
1116
|
+
// for `touchstart` and `touchend` so we fall back to a dummy object in order to avoid
|
|
1117
|
+
// throwing an error. The value returned here will be incorrect, but since this only
|
|
1118
|
+
// breaks inside a developer tool and the value is only used for secondary information,
|
|
1119
|
+
// we can get away with it. See https://bugzilla.mozilla.org/show_bug.cgi?id=1615824.
|
|
1120
|
+
event.touches[0] || event.changedTouches[0] || { pageX: 0, pageY: 0 }
|
|
1121
|
+
: event;
|
|
1107
1122
|
const x = point.pageX - scrollPosition.left;
|
|
1108
1123
|
const y = point.pageY - scrollPosition.top;
|
|
1109
1124
|
// if dragging SVG element, try to convert from the screen coordinate system to the SVG
|
|
@@ -1298,7 +1313,8 @@ class DragRef {
|
|
|
1298
1313
|
const target = _getEventTarget(event);
|
|
1299
1314
|
// ClientRect dimensions are based on the scroll position of the page and its parent
|
|
1300
1315
|
// node so we have to update the cached boundary ClientRect if the user has scrolled.
|
|
1301
|
-
if (this._boundaryRect &&
|
|
1316
|
+
if (this._boundaryRect &&
|
|
1317
|
+
target !== this._boundaryElement &&
|
|
1302
1318
|
target.contains(this._boundaryElement)) {
|
|
1303
1319
|
adjustClientRect(this._boundaryRect, scrollDifference.top, scrollDifference.left);
|
|
1304
1320
|
}
|
|
@@ -1316,8 +1332,9 @@ class DragRef {
|
|
|
1316
1332
|
/** Gets the scroll position of the viewport. */
|
|
1317
1333
|
_getViewportScrollPosition() {
|
|
1318
1334
|
const cachedPosition = this._parentPositions.positions.get(this._document);
|
|
1319
|
-
return cachedPosition
|
|
1320
|
-
|
|
1335
|
+
return cachedPosition
|
|
1336
|
+
? cachedPosition.scrollPosition
|
|
1337
|
+
: this._viewportRuler.getViewportScrollPosition();
|
|
1321
1338
|
}
|
|
1322
1339
|
/**
|
|
1323
1340
|
* Lazily resolves and returns the shadow root of the element. We do this in a function, rather
|
|
@@ -1342,12 +1359,12 @@ class DragRef {
|
|
|
1342
1359
|
// We can't use the body if the user is in fullscreen mode,
|
|
1343
1360
|
// because the preview will render under the fullscreen element.
|
|
1344
1361
|
// TODO(crisbeto): dedupe this with the `FullscreenOverlayContainer` eventually.
|
|
1345
|
-
return shadowRoot ||
|
|
1362
|
+
return (shadowRoot ||
|
|
1346
1363
|
documentRef.fullscreenElement ||
|
|
1347
1364
|
documentRef.webkitFullscreenElement ||
|
|
1348
1365
|
documentRef.mozFullScreenElement ||
|
|
1349
1366
|
documentRef.msFullscreenElement ||
|
|
1350
|
-
documentRef.body;
|
|
1367
|
+
documentRef.body);
|
|
1351
1368
|
}
|
|
1352
1369
|
return coerceElement(previewContainer);
|
|
1353
1370
|
}
|
|
@@ -1690,7 +1707,7 @@ class DropListRef {
|
|
|
1690
1707
|
previousContainer,
|
|
1691
1708
|
isPointerOverContainer,
|
|
1692
1709
|
distance,
|
|
1693
|
-
dropPoint
|
|
1710
|
+
dropPoint,
|
|
1694
1711
|
});
|
|
1695
1712
|
}
|
|
1696
1713
|
/**
|
|
@@ -1763,8 +1780,9 @@ class DropListRef {
|
|
|
1763
1780
|
// Items are sorted always by top/left in the cache, however they flow differently in RTL.
|
|
1764
1781
|
// The rest of the logic still stands no matter what orientation we're in, however
|
|
1765
1782
|
// we need to invert the array when determining the index.
|
|
1766
|
-
const items = this._orientation === 'horizontal' && this._direction === 'rtl'
|
|
1767
|
-
this._itemPositions.slice().reverse()
|
|
1783
|
+
const items = this._orientation === 'horizontal' && this._direction === 'rtl'
|
|
1784
|
+
? this._itemPositions.slice().reverse()
|
|
1785
|
+
: this._itemPositions;
|
|
1768
1786
|
return items.findIndex(currentItem => currentItem.drag === item);
|
|
1769
1787
|
}
|
|
1770
1788
|
/**
|
|
@@ -1783,7 +1801,8 @@ class DropListRef {
|
|
|
1783
1801
|
*/
|
|
1784
1802
|
_sortItem(item, pointerX, pointerY, pointerDelta) {
|
|
1785
1803
|
// Don't sort the item if sorting is disabled or it's out of range.
|
|
1786
|
-
if (this.sortingDisabled ||
|
|
1804
|
+
if (this.sortingDisabled ||
|
|
1805
|
+
!this._clientRect ||
|
|
1787
1806
|
!isPointerNearClientRect(this._clientRect, DROP_PROXIMITY_THRESHOLD, pointerX, pointerY)) {
|
|
1788
1807
|
return;
|
|
1789
1808
|
}
|
|
@@ -1811,7 +1830,7 @@ class DropListRef {
|
|
|
1811
1830
|
previousIndex: currentIndex,
|
|
1812
1831
|
currentIndex: newIndex,
|
|
1813
1832
|
container: this,
|
|
1814
|
-
item
|
|
1833
|
+
item,
|
|
1815
1834
|
});
|
|
1816
1835
|
siblings.forEach((sibling, index) => {
|
|
1817
1836
|
// Don't do anything if the position hasn't changed.
|
|
@@ -1820,8 +1839,9 @@ class DropListRef {
|
|
|
1820
1839
|
}
|
|
1821
1840
|
const isDraggedItem = sibling.drag === item;
|
|
1822
1841
|
const offset = isDraggedItem ? itemOffset : siblingOffset;
|
|
1823
|
-
const elementToOffset = isDraggedItem
|
|
1824
|
-
|
|
1842
|
+
const elementToOffset = isDraggedItem
|
|
1843
|
+
? item.getPlaceholderElement()
|
|
1844
|
+
: sibling.drag.getRootElement();
|
|
1825
1845
|
// Update the offset to reflect the new position.
|
|
1826
1846
|
sibling.offset += offset;
|
|
1827
1847
|
// Since we're moving the items with a `transform`, we need to adjust their cached
|
|
@@ -1874,14 +1894,22 @@ class DropListRef {
|
|
|
1874
1894
|
// Otherwise check if we can start scrolling the viewport.
|
|
1875
1895
|
if (!verticalScrollDirection && !horizontalScrollDirection) {
|
|
1876
1896
|
const { width, height } = this._viewportRuler.getViewportSize();
|
|
1877
|
-
const clientRect = {
|
|
1897
|
+
const clientRect = {
|
|
1898
|
+
width,
|
|
1899
|
+
height,
|
|
1900
|
+
top: 0,
|
|
1901
|
+
right: width,
|
|
1902
|
+
bottom: height,
|
|
1903
|
+
left: 0,
|
|
1904
|
+
};
|
|
1878
1905
|
verticalScrollDirection = getVerticalScrollDirection(clientRect, pointerY);
|
|
1879
1906
|
horizontalScrollDirection = getHorizontalScrollDirection(clientRect, pointerX);
|
|
1880
1907
|
scrollNode = window;
|
|
1881
1908
|
}
|
|
1882
|
-
if (scrollNode &&
|
|
1883
|
-
|
|
1884
|
-
|
|
1909
|
+
if (scrollNode &&
|
|
1910
|
+
(verticalScrollDirection !== this._verticalScrollDirection ||
|
|
1911
|
+
horizontalScrollDirection !== this._horizontalScrollDirection ||
|
|
1912
|
+
scrollNode !== this._scrollNode)) {
|
|
1885
1913
|
this._verticalScrollDirection = verticalScrollDirection;
|
|
1886
1914
|
this._horizontalScrollDirection = horizontalScrollDirection;
|
|
1887
1915
|
this._scrollNode = scrollNode;
|
|
@@ -1922,7 +1950,8 @@ class DropListRef {
|
|
|
1922
1950
|
/** Refreshes the position cache of the items and sibling containers. */
|
|
1923
1951
|
_cacheItemPositions() {
|
|
1924
1952
|
const isHorizontal = this._orientation === 'horizontal';
|
|
1925
|
-
this._itemPositions = this._activeDraggables
|
|
1953
|
+
this._itemPositions = this._activeDraggables
|
|
1954
|
+
.map(drag => {
|
|
1926
1955
|
const elementToMeasure = drag.getVisibleElement();
|
|
1927
1956
|
return {
|
|
1928
1957
|
drag,
|
|
@@ -1930,9 +1959,11 @@ class DropListRef {
|
|
|
1930
1959
|
initialTransform: elementToMeasure.style.transform || '',
|
|
1931
1960
|
clientRect: getMutableClientRect(elementToMeasure),
|
|
1932
1961
|
};
|
|
1933
|
-
})
|
|
1934
|
-
|
|
1935
|
-
|
|
1962
|
+
})
|
|
1963
|
+
.sort((a, b) => {
|
|
1964
|
+
return isHorizontal
|
|
1965
|
+
? a.clientRect.left - b.clientRect.left
|
|
1966
|
+
: a.clientRect.top - b.clientRect.top;
|
|
1936
1967
|
});
|
|
1937
1968
|
}
|
|
1938
1969
|
/** Resets the container to its initial state. */
|
|
@@ -1945,8 +1976,7 @@ class DropListRef {
|
|
|
1945
1976
|
var _a;
|
|
1946
1977
|
const rootElement = item.getRootElement();
|
|
1947
1978
|
if (rootElement) {
|
|
1948
|
-
const initialTransform = (_a = this._itemPositions
|
|
1949
|
-
.find(current => current.drag === item)) === null || _a === void 0 ? void 0 : _a.initialTransform;
|
|
1979
|
+
const initialTransform = (_a = this._itemPositions.find(current => current.drag === item)) === null || _a === void 0 ? void 0 : _a.initialTransform;
|
|
1950
1980
|
rootElement.style.transform = initialTransform || '';
|
|
1951
1981
|
}
|
|
1952
1982
|
});
|
|
@@ -1995,12 +2025,14 @@ class DropListRef {
|
|
|
1995
2025
|
*/
|
|
1996
2026
|
_getItemOffsetPx(currentPosition, newPosition, delta) {
|
|
1997
2027
|
const isHorizontal = this._orientation === 'horizontal';
|
|
1998
|
-
let itemOffset = isHorizontal
|
|
1999
|
-
newPosition.
|
|
2028
|
+
let itemOffset = isHorizontal
|
|
2029
|
+
? newPosition.left - currentPosition.left
|
|
2030
|
+
: newPosition.top - currentPosition.top;
|
|
2000
2031
|
// Account for differences in the item width/height.
|
|
2001
2032
|
if (delta === -1) {
|
|
2002
|
-
itemOffset += isHorizontal
|
|
2003
|
-
newPosition.
|
|
2033
|
+
itemOffset += isHorizontal
|
|
2034
|
+
? newPosition.width - currentPosition.width
|
|
2035
|
+
: newPosition.height - currentPosition.height;
|
|
2004
2036
|
}
|
|
2005
2037
|
return itemOffset;
|
|
2006
2038
|
}
|
|
@@ -2046,18 +2078,19 @@ class DropListRef {
|
|
|
2046
2078
|
// If the user is still hovering over the same item as last time, their cursor hasn't left
|
|
2047
2079
|
// the item after we made the swap, and they didn't change the direction in which they're
|
|
2048
2080
|
// dragging, we don't consider it a direction swap.
|
|
2049
|
-
if (drag === this._previousSwap.drag &&
|
|
2081
|
+
if (drag === this._previousSwap.drag &&
|
|
2082
|
+
this._previousSwap.overlaps &&
|
|
2050
2083
|
direction === this._previousSwap.delta) {
|
|
2051
2084
|
return false;
|
|
2052
2085
|
}
|
|
2053
2086
|
}
|
|
2054
|
-
return isHorizontal
|
|
2055
|
-
// Round these down since most browsers report client rects with
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
pointerY >= Math.floor(clientRect.top) && pointerY < Math.floor(clientRect.bottom);
|
|
2087
|
+
return isHorizontal
|
|
2088
|
+
? // Round these down since most browsers report client rects with
|
|
2089
|
+
// sub-pixel precision, whereas the pointer coordinates are rounded to pixels.
|
|
2090
|
+
pointerX >= Math.floor(clientRect.left) && pointerX < Math.floor(clientRect.right)
|
|
2091
|
+
: pointerY >= Math.floor(clientRect.top) && pointerY < Math.floor(clientRect.bottom);
|
|
2059
2092
|
});
|
|
2060
|
-
return
|
|
2093
|
+
return index === -1 || !this.sortPredicate(index, item, this) ? -1 : index;
|
|
2061
2094
|
}
|
|
2062
2095
|
/** Caches the current items in the list and their positions. */
|
|
2063
2096
|
_cacheItems() {
|
|
@@ -2090,7 +2123,8 @@ class DropListRef {
|
|
|
2090
2123
|
* @param y Position of the item along the Y axis.
|
|
2091
2124
|
*/
|
|
2092
2125
|
_canReceive(item, x, y) {
|
|
2093
|
-
if (!this._clientRect ||
|
|
2126
|
+
if (!this._clientRect ||
|
|
2127
|
+
!isInsideClientRect(this._clientRect, x, y) ||
|
|
2094
2128
|
!this.enterPredicate(item, this)) {
|
|
2095
2129
|
return false;
|
|
2096
2130
|
}
|
|
@@ -2115,13 +2149,14 @@ class DropListRef {
|
|
|
2115
2149
|
*/
|
|
2116
2150
|
_startReceiving(sibling, items) {
|
|
2117
2151
|
const activeSiblings = this._activeSiblings;
|
|
2118
|
-
if (!activeSiblings.has(sibling) &&
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2152
|
+
if (!activeSiblings.has(sibling) &&
|
|
2153
|
+
items.every(item => {
|
|
2154
|
+
// Note that we have to add an exception to the `enterPredicate` for items that started off
|
|
2155
|
+
// in this drop list. The drag ref has logic that allows an item to return to its initial
|
|
2156
|
+
// container, if it has left the initial container and none of the connected containers
|
|
2157
|
+
// allow it to enter. See `DragRef._updateActiveDropContainer` for more context.
|
|
2158
|
+
return this.enterPredicate(item, this) || this._draggables.indexOf(item) > -1;
|
|
2159
|
+
})) {
|
|
2125
2160
|
activeSiblings.add(sibling);
|
|
2126
2161
|
this._cacheParentPositions();
|
|
2127
2162
|
this._listenToScrollEvents();
|
|
@@ -2272,7 +2307,7 @@ function getElementScrollDirections(element, clientRect, pointerX, pointerY) {
|
|
|
2272
2307
|
/** Event options that can be used to bind an active, capturing event. */
|
|
2273
2308
|
const activeCapturingEventOptions = normalizePassiveListenerOptions({
|
|
2274
2309
|
passive: false,
|
|
2275
|
-
capture: true
|
|
2310
|
+
capture: true,
|
|
2276
2311
|
});
|
|
2277
2312
|
/**
|
|
2278
2313
|
* Service that keeps track of all the drag item and drop container
|
|
@@ -2388,13 +2423,13 @@ class DragDropRegistry {
|
|
|
2388
2423
|
this._globalListeners
|
|
2389
2424
|
.set(isTouchEvent ? 'touchend' : 'mouseup', {
|
|
2390
2425
|
handler: (e) => this.pointerUp.next(e),
|
|
2391
|
-
options: true
|
|
2426
|
+
options: true,
|
|
2392
2427
|
})
|
|
2393
2428
|
.set('scroll', {
|
|
2394
2429
|
handler: (e) => this.scroll.next(e),
|
|
2395
2430
|
// Use capturing so that we pick up scroll changes in any scrollable nodes that aren't
|
|
2396
2431
|
// the document. See https://github.com/angular/components/issues/17144.
|
|
2397
|
-
options: true
|
|
2432
|
+
options: true,
|
|
2398
2433
|
})
|
|
2399
2434
|
// Preventing the default action on `mousemove` isn't enough to disable text selection
|
|
2400
2435
|
// on Safari so we need to prevent the selection event as well. Alternatively this can
|
|
@@ -2402,14 +2437,14 @@ class DragDropRegistry {
|
|
|
2402
2437
|
// recalculation which can be expensive on pages with a lot of elements.
|
|
2403
2438
|
.set('selectstart', {
|
|
2404
2439
|
handler: this._preventDefaultWhileDragging,
|
|
2405
|
-
options: activeCapturingEventOptions
|
|
2440
|
+
options: activeCapturingEventOptions,
|
|
2406
2441
|
});
|
|
2407
2442
|
// We don't have to bind a move event for touch drag sequences, because
|
|
2408
2443
|
// we already have a persistent global one bound from `registerDragItem`.
|
|
2409
2444
|
if (!isTouchEvent) {
|
|
2410
2445
|
this._globalListeners.set('mousemove', {
|
|
2411
2446
|
handler: (e) => this.pointerMove.next(e),
|
|
2412
|
-
options: activeCapturingEventOptions
|
|
2447
|
+
options: activeCapturingEventOptions,
|
|
2413
2448
|
});
|
|
2414
2449
|
}
|
|
2415
2450
|
this._ngZone.runOutsideAngular(() => {
|
|
@@ -2478,9 +2513,9 @@ class DragDropRegistry {
|
|
|
2478
2513
|
this._globalListeners.clear();
|
|
2479
2514
|
}
|
|
2480
2515
|
}
|
|
2481
|
-
DragDropRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2482
|
-
DragDropRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
2483
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
2516
|
+
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 });
|
|
2517
|
+
DragDropRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: DragDropRegistry, providedIn: 'root' });
|
|
2518
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: DragDropRegistry, decorators: [{
|
|
2484
2519
|
type: Injectable,
|
|
2485
2520
|
args: [{ providedIn: 'root' }]
|
|
2486
2521
|
}], ctorParameters: function () {
|
|
@@ -2500,7 +2535,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
2500
2535
|
/** Default configuration to be used when creating a `DragRef`. */
|
|
2501
2536
|
const DEFAULT_CONFIG = {
|
|
2502
2537
|
dragStartThreshold: 5,
|
|
2503
|
-
pointerDirectionChangeThreshold: 5
|
|
2538
|
+
pointerDirectionChangeThreshold: 5,
|
|
2504
2539
|
};
|
|
2505
2540
|
/**
|
|
2506
2541
|
* Service that allows for drag-and-drop functionality to be attached to DOM elements.
|
|
@@ -2528,9 +2563,9 @@ class DragDrop {
|
|
|
2528
2563
|
return new DropListRef(element, this._dragDropRegistry, this._document, this._ngZone, this._viewportRuler);
|
|
2529
2564
|
}
|
|
2530
2565
|
}
|
|
2531
|
-
DragDrop.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2532
|
-
DragDrop.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
2533
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
2566
|
+
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 });
|
|
2567
|
+
DragDrop.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: DragDrop, providedIn: 'root' });
|
|
2568
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: DragDrop, decorators: [{
|
|
2534
2569
|
type: Injectable,
|
|
2535
2570
|
args: [{ providedIn: 'root' }]
|
|
2536
2571
|
}], ctorParameters: function () {
|
|
@@ -2581,7 +2616,9 @@ class CdkDropListGroup {
|
|
|
2581
2616
|
this._disabled = false;
|
|
2582
2617
|
}
|
|
2583
2618
|
/** Whether starting a dragging sequence from inside this group is disabled. */
|
|
2584
|
-
get disabled() {
|
|
2619
|
+
get disabled() {
|
|
2620
|
+
return this._disabled;
|
|
2621
|
+
}
|
|
2585
2622
|
set disabled(value) {
|
|
2586
2623
|
this._disabled = coerceBooleanProperty(value);
|
|
2587
2624
|
}
|
|
@@ -2589,9 +2626,9 @@ class CdkDropListGroup {
|
|
|
2589
2626
|
this._items.clear();
|
|
2590
2627
|
}
|
|
2591
2628
|
}
|
|
2592
|
-
CdkDropListGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2593
|
-
CdkDropListGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
2594
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
2629
|
+
CdkDropListGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkDropListGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2630
|
+
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 });
|
|
2631
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkDropListGroup, decorators: [{
|
|
2595
2632
|
type: Directive,
|
|
2596
2633
|
args: [{
|
|
2597
2634
|
selector: '[cdkDropListGroup]',
|
|
@@ -2630,8 +2667,7 @@ const CDK_DRAG_CONFIG = new InjectionToken('CDK_DRAG_CONFIG');
|
|
|
2630
2667
|
*/
|
|
2631
2668
|
function assertElementNode(node, name) {
|
|
2632
2669
|
if (node.nodeType !== 1) {
|
|
2633
|
-
throw Error(`${name} must be attached to an element node. ` +
|
|
2634
|
-
`Currently attached to "${node.nodeName}".`);
|
|
2670
|
+
throw Error(`${name} must be attached to an element node. ` + `Currently attached to "${node.nodeName}".`);
|
|
2635
2671
|
}
|
|
2636
2672
|
}
|
|
2637
2673
|
|
|
@@ -2712,10 +2748,9 @@ class CdkDropList {
|
|
|
2712
2748
|
this._dropListRef.enterPredicate = (drag, drop) => {
|
|
2713
2749
|
return this.enterPredicate(drag.data, drop.data);
|
|
2714
2750
|
};
|
|
2715
|
-
this._dropListRef.sortPredicate =
|
|
2716
|
-
(index, drag, drop)
|
|
2717
|
-
|
|
2718
|
-
};
|
|
2751
|
+
this._dropListRef.sortPredicate = (index, drag, drop) => {
|
|
2752
|
+
return this.sortPredicate(index, drag.data, drop.data);
|
|
2753
|
+
};
|
|
2719
2754
|
this._setupInputSyncSubscription(this._dropListRef);
|
|
2720
2755
|
this._handleEvents(this._dropListRef);
|
|
2721
2756
|
CdkDropList._dropLists.push(this);
|
|
@@ -2751,7 +2786,9 @@ class CdkDropList {
|
|
|
2751
2786
|
/** Gets the registered items in the list, sorted by their position in the DOM. */
|
|
2752
2787
|
getSortedItems() {
|
|
2753
2788
|
return Array.from(this._unsortedItems).sort((a, b) => {
|
|
2754
|
-
const documentPosition = a._dragRef
|
|
2789
|
+
const documentPosition = a._dragRef
|
|
2790
|
+
.getVisibleElement()
|
|
2791
|
+
.compareDocumentPosition(b._dragRef.getVisibleElement());
|
|
2755
2792
|
// `compareDocumentPosition` returns a bitmask so we have to use a bitwise operator.
|
|
2756
2793
|
// https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
|
|
2757
2794
|
// tslint:disable-next-line:no-bitwise
|
|
@@ -2827,13 +2864,13 @@ class CdkDropList {
|
|
|
2827
2864
|
this.entered.emit({
|
|
2828
2865
|
container: this,
|
|
2829
2866
|
item: event.item.data,
|
|
2830
|
-
currentIndex: event.currentIndex
|
|
2867
|
+
currentIndex: event.currentIndex,
|
|
2831
2868
|
});
|
|
2832
2869
|
});
|
|
2833
2870
|
ref.exited.subscribe(event => {
|
|
2834
2871
|
this.exited.emit({
|
|
2835
2872
|
container: this,
|
|
2836
|
-
item: event.item.data
|
|
2873
|
+
item: event.item.data,
|
|
2837
2874
|
});
|
|
2838
2875
|
this._changeDetectorRef.markForCheck();
|
|
2839
2876
|
});
|
|
@@ -2842,7 +2879,7 @@ class CdkDropList {
|
|
|
2842
2879
|
previousIndex: event.previousIndex,
|
|
2843
2880
|
currentIndex: event.currentIndex,
|
|
2844
2881
|
container: this,
|
|
2845
|
-
item: event.item.data
|
|
2882
|
+
item: event.item.data,
|
|
2846
2883
|
});
|
|
2847
2884
|
});
|
|
2848
2885
|
ref.dropped.subscribe(event => {
|
|
@@ -2854,7 +2891,7 @@ class CdkDropList {
|
|
|
2854
2891
|
item: event.item.data,
|
|
2855
2892
|
isPointerOverContainer: event.isPointerOverContainer,
|
|
2856
2893
|
distance: event.distance,
|
|
2857
|
-
dropPoint: event.dropPoint
|
|
2894
|
+
dropPoint: event.dropPoint,
|
|
2858
2895
|
});
|
|
2859
2896
|
// Mark for check since all of these events run outside of change
|
|
2860
2897
|
// detection and we're not guaranteed for something else to have triggered it.
|
|
@@ -2879,13 +2916,13 @@ class CdkDropList {
|
|
|
2879
2916
|
}
|
|
2880
2917
|
/** Keeps track of the drop lists that are currently on the page. */
|
|
2881
2918
|
CdkDropList._dropLists = [];
|
|
2882
|
-
CdkDropList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2883
|
-
CdkDropList.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
2919
|
+
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 });
|
|
2920
|
+
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: [
|
|
2884
2921
|
// Prevent child drop lists from picking up the same group as their parent.
|
|
2885
2922
|
{ provide: CDK_DROP_LIST_GROUP, useValue: undefined },
|
|
2886
2923
|
{ provide: CDK_DROP_LIST, useExisting: CdkDropList },
|
|
2887
2924
|
], exportAs: ["cdkDropList"], ngImport: i0 });
|
|
2888
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
2925
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkDropList, decorators: [{
|
|
2889
2926
|
type: Directive,
|
|
2890
2927
|
args: [{
|
|
2891
2928
|
selector: '[cdkDropList], cdk-drop-list',
|
|
@@ -2901,7 +2938,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
2901
2938
|
'[class.cdk-drop-list-disabled]': 'disabled',
|
|
2902
2939
|
'[class.cdk-drop-list-dragging]': '_dropListRef.isDragging()',
|
|
2903
2940
|
'[class.cdk-drop-list-receiving]': '_dropListRef.isReceiving()',
|
|
2904
|
-
}
|
|
2941
|
+
},
|
|
2905
2942
|
}]
|
|
2906
2943
|
}], ctorParameters: function () {
|
|
2907
2944
|
return [{ type: i0.ElementRef }, { type: DragDrop }, { type: i0.ChangeDetectorRef }, { type: i1.ScrollDispatcher }, { type: i3.Directionality, decorators: [{
|
|
@@ -2991,7 +3028,9 @@ class CdkDragHandle {
|
|
|
2991
3028
|
this._parentDrag = parentDrag;
|
|
2992
3029
|
}
|
|
2993
3030
|
/** Whether starting to drag through this handle is disabled. */
|
|
2994
|
-
get disabled() {
|
|
3031
|
+
get disabled() {
|
|
3032
|
+
return this._disabled;
|
|
3033
|
+
}
|
|
2995
3034
|
set disabled(value) {
|
|
2996
3035
|
this._disabled = coerceBooleanProperty(value);
|
|
2997
3036
|
this._stateChanges.next(this);
|
|
@@ -3000,14 +3039,14 @@ class CdkDragHandle {
|
|
|
3000
3039
|
this._stateChanges.complete();
|
|
3001
3040
|
}
|
|
3002
3041
|
}
|
|
3003
|
-
CdkDragHandle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
3004
|
-
CdkDragHandle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
3005
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
3042
|
+
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 });
|
|
3043
|
+
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 });
|
|
3044
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkDragHandle, decorators: [{
|
|
3006
3045
|
type: Directive,
|
|
3007
3046
|
args: [{
|
|
3008
3047
|
selector: '[cdkDragHandle]',
|
|
3009
3048
|
host: {
|
|
3010
|
-
'class': 'cdk-drag-handle'
|
|
3049
|
+
'class': 'cdk-drag-handle',
|
|
3011
3050
|
},
|
|
3012
3051
|
providers: [{ provide: CDK_DRAG_HANDLE, useExisting: CdkDragHandle }],
|
|
3013
3052
|
}]
|
|
@@ -3047,9 +3086,9 @@ class CdkDragPlaceholder {
|
|
|
3047
3086
|
this.templateRef = templateRef;
|
|
3048
3087
|
}
|
|
3049
3088
|
}
|
|
3050
|
-
CdkDragPlaceholder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
3051
|
-
CdkDragPlaceholder.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
3052
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
3089
|
+
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 });
|
|
3090
|
+
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 });
|
|
3091
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkDragPlaceholder, decorators: [{
|
|
3053
3092
|
type: Directive,
|
|
3054
3093
|
args: [{
|
|
3055
3094
|
selector: 'ng-template[cdkDragPlaceholder]',
|
|
@@ -3082,12 +3121,16 @@ class CdkDragPreview {
|
|
|
3082
3121
|
this._matchSize = false;
|
|
3083
3122
|
}
|
|
3084
3123
|
/** Whether the preview should preserve the same size as the item that is being dragged. */
|
|
3085
|
-
get matchSize() {
|
|
3086
|
-
|
|
3124
|
+
get matchSize() {
|
|
3125
|
+
return this._matchSize;
|
|
3126
|
+
}
|
|
3127
|
+
set matchSize(value) {
|
|
3128
|
+
this._matchSize = coerceBooleanProperty(value);
|
|
3129
|
+
}
|
|
3087
3130
|
}
|
|
3088
|
-
CdkDragPreview.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
3089
|
-
CdkDragPreview.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
3090
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
3131
|
+
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 });
|
|
3132
|
+
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 });
|
|
3133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkDragPreview, decorators: [{
|
|
3091
3134
|
type: Directive,
|
|
3092
3135
|
args: [{
|
|
3093
3136
|
selector: 'ng-template[cdkDragPreview]',
|
|
@@ -3138,22 +3181,24 @@ class CdkDrag {
|
|
|
3138
3181
|
* because this event will fire for every pixel that the user has dragged.
|
|
3139
3182
|
*/
|
|
3140
3183
|
this.moved = new Observable((observer) => {
|
|
3141
|
-
const subscription = this._dragRef.moved
|
|
3184
|
+
const subscription = this._dragRef.moved
|
|
3185
|
+
.pipe(map(movedEvent => ({
|
|
3142
3186
|
source: this,
|
|
3143
3187
|
pointerPosition: movedEvent.pointerPosition,
|
|
3144
3188
|
event: movedEvent.event,
|
|
3145
3189
|
delta: movedEvent.delta,
|
|
3146
|
-
distance: movedEvent.distance
|
|
3147
|
-
})))
|
|
3190
|
+
distance: movedEvent.distance,
|
|
3191
|
+
})))
|
|
3192
|
+
.subscribe(observer);
|
|
3148
3193
|
return () => {
|
|
3149
3194
|
subscription.unsubscribe();
|
|
3150
3195
|
};
|
|
3151
3196
|
});
|
|
3152
3197
|
this._dragRef = dragDrop.createDrag(element, {
|
|
3153
|
-
dragStartThreshold: config && config.dragStartThreshold != null ?
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3198
|
+
dragStartThreshold: config && config.dragStartThreshold != null ? config.dragStartThreshold : 5,
|
|
3199
|
+
pointerDirectionChangeThreshold: config && config.pointerDirectionChangeThreshold != null
|
|
3200
|
+
? config.pointerDirectionChangeThreshold
|
|
3201
|
+
: 5,
|
|
3157
3202
|
zIndex: config === null || config === void 0 ? void 0 : config.zIndex,
|
|
3158
3203
|
});
|
|
3159
3204
|
this._dragRef.data = this;
|
|
@@ -3215,9 +3260,7 @@ class CdkDrag {
|
|
|
3215
3260
|
// element to be in the proper place in the DOM. This is mostly relevant
|
|
3216
3261
|
// for draggable elements inside portals since they get stamped out in
|
|
3217
3262
|
// their original DOM position and then they get transferred to the portal.
|
|
3218
|
-
this._ngZone.onStable
|
|
3219
|
-
.pipe(take(1), takeUntil(this._destroyed))
|
|
3220
|
-
.subscribe(() => {
|
|
3263
|
+
this._ngZone.onStable.pipe(take(1), takeUntil(this._destroyed)).subscribe(() => {
|
|
3221
3264
|
this._updateRootElement();
|
|
3222
3265
|
this._setupHandlesListener();
|
|
3223
3266
|
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
|
+
(_a = element.parentElement) === null || _a === void 0 ? void 0 : _a.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
|
|
@@ -3356,7 +3406,7 @@ class CdkDrag {
|
|
|
3356
3406
|
this.ended.emit({
|
|
3357
3407
|
source: this,
|
|
3358
3408
|
distance: event.distance,
|
|
3359
|
-
dropPoint: event.dropPoint
|
|
3409
|
+
dropPoint: event.dropPoint,
|
|
3360
3410
|
});
|
|
3361
3411
|
// Since all of these events run outside of change detection,
|
|
3362
3412
|
// we need to ensure that everything is marked correctly.
|
|
@@ -3366,13 +3416,13 @@ class CdkDrag {
|
|
|
3366
3416
|
this.entered.emit({
|
|
3367
3417
|
container: event.container.data,
|
|
3368
3418
|
item: this,
|
|
3369
|
-
currentIndex: event.currentIndex
|
|
3419
|
+
currentIndex: event.currentIndex,
|
|
3370
3420
|
});
|
|
3371
3421
|
});
|
|
3372
3422
|
ref.exited.subscribe(event => {
|
|
3373
3423
|
this.exited.emit({
|
|
3374
3424
|
container: event.container.data,
|
|
3375
|
-
item: this
|
|
3425
|
+
item: this,
|
|
3376
3426
|
});
|
|
3377
3427
|
});
|
|
3378
3428
|
ref.dropped.subscribe(event => {
|
|
@@ -3384,13 +3434,13 @@ class CdkDrag {
|
|
|
3384
3434
|
isPointerOverContainer: event.isPointerOverContainer,
|
|
3385
3435
|
item: this,
|
|
3386
3436
|
distance: event.distance,
|
|
3387
|
-
dropPoint: event.dropPoint
|
|
3437
|
+
dropPoint: event.dropPoint,
|
|
3388
3438
|
});
|
|
3389
3439
|
});
|
|
3390
3440
|
}
|
|
3391
3441
|
/** Assigns the default input values based on a provided config object. */
|
|
3392
3442
|
_assignDefaults(config) {
|
|
3393
|
-
const { lockAxis, dragStartDelay, constrainPosition, previewClass, boundaryElement, draggingDisabled, rootElementSelector, previewContainer } = config;
|
|
3443
|
+
const { lockAxis, dragStartDelay, constrainPosition, previewClass, boundaryElement, draggingDisabled, rootElementSelector, previewContainer, } = config;
|
|
3394
3444
|
this.disabled = draggingDisabled == null ? false : draggingDisabled;
|
|
3395
3445
|
this.dragStartDelay = dragStartDelay || 0;
|
|
3396
3446
|
if (lockAxis) {
|
|
@@ -3415,7 +3465,8 @@ class CdkDrag {
|
|
|
3415
3465
|
/** Sets up the listener that syncs the handles with the drag ref. */
|
|
3416
3466
|
_setupHandlesListener() {
|
|
3417
3467
|
// Listen for any newly-added handles.
|
|
3418
|
-
this._handles.changes
|
|
3468
|
+
this._handles.changes
|
|
3469
|
+
.pipe(startWith(this._handles),
|
|
3419
3470
|
// Sync the new handles with the DragRef.
|
|
3420
3471
|
tap((handles) => {
|
|
3421
3472
|
const childHandleElements = handles
|
|
@@ -3434,7 +3485,8 @@ class CdkDrag {
|
|
|
3434
3485
|
return merge(...handles.map(item => {
|
|
3435
3486
|
return item._stateChanges.pipe(startWith(item));
|
|
3436
3487
|
}));
|
|
3437
|
-
}), takeUntil(this._destroyed))
|
|
3488
|
+
}), takeUntil(this._destroyed))
|
|
3489
|
+
.subscribe(handleInstance => {
|
|
3438
3490
|
// Enabled/disable the handle that changed in the DragRef.
|
|
3439
3491
|
const dragRef = this._dragRef;
|
|
3440
3492
|
const handle = handleInstance.element.nativeElement;
|
|
@@ -3443,9 +3495,9 @@ class CdkDrag {
|
|
|
3443
3495
|
}
|
|
3444
3496
|
}
|
|
3445
3497
|
CdkDrag._dragInstances = [];
|
|
3446
|
-
CdkDrag.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
3447
|
-
CdkDrag.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
3448
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
3498
|
+
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 });
|
|
3499
|
+
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 });
|
|
3500
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkDrag, decorators: [{
|
|
3449
3501
|
type: Directive,
|
|
3450
3502
|
args: [{
|
|
3451
3503
|
selector: '[cdkDrag]',
|
|
@@ -3455,7 +3507,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
3455
3507
|
'[class.cdk-drag-disabled]': 'disabled',
|
|
3456
3508
|
'[class.cdk-drag-dragging]': '_dragRef.isDragging()',
|
|
3457
3509
|
},
|
|
3458
|
-
providers: [{ provide: CDK_DRAG_PARENT, useExisting: CdkDrag }]
|
|
3510
|
+
providers: [{ provide: CDK_DRAG_PARENT, useExisting: CdkDrag }],
|
|
3459
3511
|
}]
|
|
3460
3512
|
}], ctorParameters: function () {
|
|
3461
3513
|
return [{ type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
@@ -3561,8 +3613,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
3561
3613
|
*/
|
|
3562
3614
|
class DragDropModule {
|
|
3563
3615
|
}
|
|
3564
|
-
DragDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
3565
|
-
DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-
|
|
3616
|
+
DragDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: DragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3617
|
+
DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: DragDropModule, declarations: [CdkDropList,
|
|
3566
3618
|
CdkDropListGroup,
|
|
3567
3619
|
CdkDrag,
|
|
3568
3620
|
CdkDragHandle,
|
|
@@ -3574,10 +3626,8 @@ DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
3574
3626
|
CdkDragHandle,
|
|
3575
3627
|
CdkDragPreview,
|
|
3576
3628
|
CdkDragPlaceholder] });
|
|
3577
|
-
DragDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-
|
|
3578
|
-
|
|
3579
|
-
], imports: [CdkScrollableModule] });
|
|
3580
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DragDropModule, decorators: [{
|
|
3629
|
+
DragDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: DragDropModule, providers: [DragDrop], imports: [CdkScrollableModule] });
|
|
3630
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: DragDropModule, decorators: [{
|
|
3581
3631
|
type: NgModule,
|
|
3582
3632
|
args: [{
|
|
3583
3633
|
declarations: [
|
|
@@ -3597,9 +3647,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
3597
3647
|
CdkDragPreview,
|
|
3598
3648
|
CdkDragPlaceholder,
|
|
3599
3649
|
],
|
|
3600
|
-
providers: [
|
|
3601
|
-
DragDrop,
|
|
3602
|
-
]
|
|
3650
|
+
providers: [DragDrop],
|
|
3603
3651
|
}]
|
|
3604
3652
|
}] });
|
|
3605
3653
|
|
|
@@ -3611,6 +3659,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
3611
3659
|
* found in the LICENSE file at https://angular.io/license
|
|
3612
3660
|
*/
|
|
3613
3661
|
|
|
3662
|
+
/**
|
|
3663
|
+
* @license
|
|
3664
|
+
* Copyright Google LLC All Rights Reserved.
|
|
3665
|
+
*
|
|
3666
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
3667
|
+
* found in the LICENSE file at https://angular.io/license
|
|
3668
|
+
*/
|
|
3669
|
+
|
|
3614
3670
|
/**
|
|
3615
3671
|
* Generated bundle index. Do not edit.
|
|
3616
3672
|
*/
|