@angular/cdk 14.0.0-next.7 → 14.0.0-rc.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 +11 -0
- package/a11y/index.d.ts +1119 -5
- package/a11y-prebuilt.css +1 -1
- package/accordion/index.d.ts +108 -6
- package/bidi/index.d.ts +77 -5
- package/clipboard/index.d.ts +112 -5
- package/coercion/index.d.ts +64 -5
- package/collections/index.d.ts +348 -5
- package/dialog/index.d.ts +410 -0
- package/drag-drop/index.d.ts +1456 -5
- package/esm2020/a11y/a11y-module.mjs +5 -5
- package/esm2020/a11y/aria-describer/aria-describer.mjs +4 -4
- package/esm2020/a11y/focus-monitor/focus-monitor.mjs +16 -14
- package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +4 -4
- package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +4 -4
- package/esm2020/a11y/focus-trap/focus-trap.mjs +7 -7
- package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +10 -10
- package/esm2020/a11y/input-modality/input-modality-detector.mjs +4 -4
- package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +4 -4
- package/esm2020/a11y/live-announcer/live-announcer.mjs +22 -17
- package/esm2020/accordion/accordion-item.mjs +4 -4
- package/esm2020/accordion/accordion-module.mjs +5 -5
- package/esm2020/accordion/accordion.mjs +4 -4
- package/esm2020/bidi/bidi-module.mjs +5 -5
- package/esm2020/bidi/dir.mjs +4 -4
- package/esm2020/bidi/directionality.mjs +4 -4
- package/esm2020/clipboard/clipboard-module.mjs +5 -5
- package/esm2020/clipboard/clipboard.mjs +4 -4
- package/esm2020/clipboard/copy-to-clipboard.mjs +4 -4
- package/esm2020/collections/dispose-view-repeater-strategy.mjs +4 -4
- package/esm2020/collections/recycle-view-repeater-strategy.mjs +4 -4
- package/esm2020/collections/unique-selection-dispatcher.mjs +4 -4
- package/esm2020/dialog/dialog-config.mjs +63 -0
- package/esm2020/dialog/dialog-container.mjs +278 -0
- package/esm2020/dialog/dialog-injectors.mjs +26 -0
- package/esm2020/dialog/dialog-module.mjs +42 -0
- package/esm2020/dialog/dialog-ref.mjs +76 -0
- package/esm2020/dialog/dialog.mjs +298 -0
- package/esm2020/dialog/dialog_public_index.mjs +5 -0
- package/esm2020/dialog/index.mjs +9 -0
- package/esm2020/dialog/public-api.mjs +14 -0
- package/esm2020/drag-drop/directives/drag-handle.mjs +4 -4
- package/esm2020/drag-drop/directives/drag-placeholder.mjs +4 -4
- package/esm2020/drag-drop/directives/drag-preview.mjs +4 -4
- package/esm2020/drag-drop/directives/drag.mjs +11 -4
- package/esm2020/drag-drop/directives/drop-list-group.mjs +4 -4
- package/esm2020/drag-drop/directives/drop-list.mjs +4 -4
- package/esm2020/drag-drop/drag-drop-module.mjs +5 -5
- package/esm2020/drag-drop/drag-drop-registry.mjs +4 -4
- package/esm2020/drag-drop/drag-drop.mjs +4 -4
- package/esm2020/drag-drop/drop-list-ref.mjs +23 -23
- package/esm2020/layout/breakpoints-observer.mjs +4 -4
- package/esm2020/layout/layout-module.mjs +5 -5
- package/esm2020/layout/media-matcher.mjs +4 -4
- package/esm2020/menu/context-menu-trigger.mjs +229 -0
- package/esm2020/menu/index.mjs +9 -0
- package/esm2020/menu/menu-aim.mjs +204 -0
- package/esm2020/menu/menu-bar.mjs +159 -0
- package/esm2020/menu/menu-base.mjs +203 -0
- package/esm2020/menu/menu-errors.mjs +22 -0
- package/esm2020/menu/menu-group.mjs +30 -0
- package/esm2020/menu/menu-interface.mjs +11 -0
- package/esm2020/menu/menu-item-checkbox.mjs +48 -0
- package/esm2020/menu/menu-item-radio.mjs +114 -0
- package/esm2020/menu/menu-item-selectable.mjs +42 -0
- package/esm2020/menu/menu-item.mjs +289 -0
- package/esm2020/menu/menu-module.mjs +62 -0
- package/esm2020/menu/menu-stack.mjs +156 -0
- package/esm2020/menu/menu-trigger-base.mjs +114 -0
- package/esm2020/menu/menu-trigger.mjs +304 -0
- package/esm2020/menu/menu.mjs +168 -0
- package/esm2020/menu/menu_public_index.mjs +5 -0
- package/esm2020/menu/pointer-focus-tracker.mjs +51 -0
- package/esm2020/menu/public-api.mjs +24 -0
- package/esm2020/observers/observe-content.mjs +14 -14
- 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 +4 -4
- package/esm2020/overlay/fullscreen-overlay-container.mjs +4 -4
- package/esm2020/overlay/overlay-container.mjs +4 -4
- package/esm2020/overlay/overlay-directives.mjs +7 -7
- package/esm2020/overlay/overlay-module.mjs +5 -5
- package/esm2020/overlay/overlay-ref.mjs +14 -5
- package/esm2020/overlay/overlay.mjs +14 -8
- package/esm2020/overlay/position/flexible-connected-position-strategy.mjs +13 -1
- package/esm2020/overlay/position/overlay-position-builder.mjs +4 -4
- package/esm2020/overlay/public-api.mjs +2 -2
- package/esm2020/overlay/scroll/scroll-strategy-options.mjs +4 -4
- package/esm2020/platform/features/scrolling.mjs +4 -4
- package/esm2020/platform/platform-module.mjs +5 -5
- package/esm2020/platform/platform.mjs +4 -4
- package/esm2020/portal/dom-portal-outlet.mjs +26 -4
- package/esm2020/portal/portal-directives.mjs +17 -17
- package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +4 -4
- package/esm2020/scrolling/scroll-dispatcher.mjs +4 -4
- package/esm2020/scrolling/scrollable.mjs +9 -9
- package/esm2020/scrolling/scrolling-module.mjs +9 -9
- package/esm2020/scrolling/viewport-ruler.mjs +4 -4
- package/esm2020/scrolling/virtual-for-of.mjs +7 -5
- package/esm2020/scrolling/virtual-scroll-viewport.mjs +6 -6
- package/esm2020/stepper/step-header.mjs +4 -4
- package/esm2020/stepper/step-label.mjs +4 -4
- package/esm2020/stepper/stepper-button.mjs +7 -7
- package/esm2020/stepper/stepper-module.mjs +5 -5
- package/esm2020/stepper/stepper.mjs +7 -7
- package/esm2020/table/cell.mjs +22 -22
- package/esm2020/table/coalesced-style-scheduler.mjs +4 -4
- package/esm2020/table/row.mjs +28 -28
- package/esm2020/table/table-module.mjs +5 -5
- package/esm2020/table/table.mjs +22 -22
- package/esm2020/table/text-column.mjs +5 -5
- package/esm2020/testing/selenium-webdriver/selenium-web-driver-harness-environment.mjs +1 -1
- package/esm2020/testing/test-element.mjs +1 -1
- package/esm2020/testing/testbed/fake-events/type-in-element.mjs +2 -2
- package/esm2020/text-field/autofill.mjs +7 -7
- package/esm2020/text-field/autosize.mjs +4 -4
- package/esm2020/text-field/text-field-module.mjs +5 -5
- package/esm2020/tree/nested-node.mjs +4 -4
- package/esm2020/tree/node.mjs +4 -4
- package/esm2020/tree/outlet.mjs +4 -4
- package/esm2020/tree/padding.mjs +4 -4
- package/esm2020/tree/toggle.mjs +4 -4
- package/esm2020/tree/tree-module.mjs +5 -5
- package/esm2020/tree/tree.mjs +7 -7
- package/esm2020/version.mjs +1 -1
- package/fesm2015/a11y.mjs +71 -64
- package/fesm2015/a11y.mjs.map +1 -1
- package/fesm2015/accordion.mjs +10 -10
- package/fesm2015/accordion.mjs.map +1 -1
- package/fesm2015/bidi.mjs +10 -10
- package/fesm2015/bidi.mjs.map +1 -1
- package/fesm2015/cdk.mjs +1 -1
- package/fesm2015/cdk.mjs.map +1 -1
- package/fesm2015/clipboard.mjs +10 -10
- package/fesm2015/clipboard.mjs.map +1 -1
- package/fesm2015/collections.mjs +9 -9
- package/fesm2015/collections.mjs.map +1 -1
- package/fesm2015/dialog.mjs +780 -0
- package/fesm2015/dialog.mjs.map +1 -0
- package/fesm2015/drag-drop.mjs +57 -50
- package/fesm2015/drag-drop.mjs.map +1 -1
- package/fesm2015/layout.mjs +10 -10
- package/fesm2015/layout.mjs.map +1 -1
- package/fesm2015/menu.mjs +2135 -0
- package/fesm2015/menu.mjs.map +1 -0
- package/fesm2015/observers.mjs +13 -13
- package/fesm2015/observers.mjs.map +1 -1
- package/fesm2015/overlay.mjs +70 -43
- package/fesm2015/overlay.mjs.map +1 -1
- package/fesm2015/platform.mjs +10 -10
- package/fesm2015/platform.mjs.map +1 -1
- package/fesm2015/portal.mjs +41 -20
- package/fesm2015/portal.mjs.map +1 -1
- package/fesm2015/scrolling.mjs +36 -34
- package/fesm2015/scrolling.mjs.map +1 -1
- package/fesm2015/stepper.mjs +22 -22
- package/fesm2015/stepper.mjs.map +1 -1
- package/fesm2015/table.mjs +80 -80
- package/fesm2015/table.mjs.map +1 -1
- package/fesm2015/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2015/testing/testbed.mjs +1 -1
- package/fesm2015/testing/testbed.mjs.map +1 -1
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2015/text-field.mjs +13 -13
- package/fesm2015/text-field.mjs.map +1 -1
- package/fesm2015/tree.mjs +25 -25
- package/fesm2015/tree.mjs.map +1 -1
- package/fesm2020/a11y.mjs +70 -63
- package/fesm2020/a11y.mjs.map +1 -1
- package/fesm2020/accordion.mjs +10 -10
- package/fesm2020/accordion.mjs.map +1 -1
- package/fesm2020/bidi.mjs +10 -10
- package/fesm2020/bidi.mjs.map +1 -1
- package/fesm2020/cdk.mjs +1 -1
- package/fesm2020/cdk.mjs.map +1 -1
- package/fesm2020/clipboard.mjs +10 -10
- package/fesm2020/clipboard.mjs.map +1 -1
- package/fesm2020/collections.mjs +9 -9
- package/fesm2020/collections.mjs.map +1 -1
- package/fesm2020/dialog.mjs +784 -0
- package/fesm2020/dialog.mjs.map +1 -0
- package/fesm2020/drag-drop.mjs +57 -50
- package/fesm2020/drag-drop.mjs.map +1 -1
- package/fesm2020/layout.mjs +10 -10
- package/fesm2020/layout.mjs.map +1 -1
- package/fesm2020/menu.mjs +2108 -0
- package/fesm2020/menu.mjs.map +1 -0
- package/fesm2020/observers.mjs +13 -13
- package/fesm2020/observers.mjs.map +1 -1
- package/fesm2020/overlay.mjs +70 -43
- package/fesm2020/overlay.mjs.map +1 -1
- package/fesm2020/platform.mjs +10 -10
- package/fesm2020/platform.mjs.map +1 -1
- package/fesm2020/portal.mjs +41 -20
- package/fesm2020/portal.mjs.map +1 -1
- package/fesm2020/scrolling.mjs +36 -34
- package/fesm2020/scrolling.mjs.map +1 -1
- package/fesm2020/stepper.mjs +22 -22
- package/fesm2020/stepper.mjs.map +1 -1
- package/fesm2020/table.mjs +80 -80
- package/fesm2020/table.mjs.map +1 -1
- package/fesm2020/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2020/testing/testbed.mjs +1 -1
- package/fesm2020/testing/testbed.mjs.map +1 -1
- package/fesm2020/testing.mjs.map +1 -1
- package/fesm2020/text-field.mjs +13 -13
- package/fesm2020/text-field.mjs.map +1 -1
- package/fesm2020/tree.mjs +25 -25
- package/fesm2020/tree.mjs.map +1 -1
- package/index.d.ts +6 -8
- package/keycodes/index.d.ts +247 -6
- package/layout/index.d.ts +91 -8
- package/menu/index.d.ts +992 -0
- package/observers/index.d.ts +89 -6
- package/overlay/_index.scss +4 -0
- package/overlay/index.d.ts +1202 -5
- package/overlay-prebuilt.css +1 -1
- package/package.json +34 -18
- package/platform/index.d.ts +104 -6
- package/portal/index.d.ts +325 -5
- package/schematics/collection.json +2 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-update/data/constructor-checks.js +3 -3
- package/schematics/ng-update/data/constructor-checks.mjs +3 -3
- package/schematics/utils/build-component.js +2 -2
- package/schematics/utils/build-component.mjs +2 -2
- package/schematics/utils/get-project.d.ts +1 -1
- package/schematics/utils/get-project.js +7 -2
- package/schematics/utils/get-project.mjs +7 -2
- package/schematics/utils/schematic-options.js +2 -2
- package/schematics/utils/schematic-options.mjs +2 -2
- package/scrolling/index.d.ts +647 -6
- package/stepper/index.d.ts +328 -6
- package/table/index.d.ts +1172 -5
- package/testing/index.d.ts +726 -5
- package/testing/selenium-webdriver/index.d.ts +134 -8
- package/testing/testbed/index.d.ts +161 -8
- package/text-field/index.d.ts +175 -6
- package/text-field-prebuilt.css +1 -1
- package/tree/index.d.ts +498 -6
- package/a11y/a11y-module.d.ts +0 -12
- package/a11y/a11y_public_index.d.ts +0 -4
- package/a11y/aria-describer/aria-describer.d.ts +0 -101
- package/a11y/aria-describer/aria-reference.d.ts +0 -22
- package/a11y/fake-event-detection.d.ts +0 -11
- package/a11y/focus-monitor/focus-monitor.d.ts +0 -209
- package/a11y/focus-trap/configurable-focus-trap-config.d.ts +0 -16
- package/a11y/focus-trap/configurable-focus-trap-factory.d.ts +0 -30
- package/a11y/focus-trap/configurable-focus-trap.d.ts +0 -33
- package/a11y/focus-trap/event-listener-inert-strategy.d.ts +0 -29
- package/a11y/focus-trap/focus-trap-inert-strategy.d.ts +0 -21
- package/a11y/focus-trap/focus-trap-manager.d.ts +0 -26
- package/a11y/focus-trap/focus-trap.d.ts +0 -163
- package/a11y/high-contrast-mode/high-contrast-mode-detector.d.ts +0 -48
- package/a11y/input-modality/input-modality-detector.d.ts +0 -99
- package/a11y/interactivity-checker/interactivity-checker.d.ts +0 -60
- package/a11y/key-manager/activedescendant-key-manager.d.ts +0 -35
- package/a11y/key-manager/focus-key-manager.d.ts +0 -37
- package/a11y/key-manager/list-key-manager.d.ts +0 -152
- package/a11y/live-announcer/live-announcer-tokens.d.ts +0 -22
- package/a11y/live-announcer/live-announcer.d.ts +0 -83
- package/a11y/package.json +0 -9
- package/a11y/public-api.d.ts +0 -25
- package/accordion/accordion-item.d.ts +0 -59
- package/accordion/accordion-module.d.ts +0 -8
- package/accordion/accordion.d.ts +0 -40
- package/accordion/accordion_public_index.d.ts +0 -4
- package/accordion/package.json +0 -9
- package/accordion/public-api.d.ts +0 -10
- package/bidi/bidi-module.d.ts +0 -7
- package/bidi/bidi_public_index.d.ts +0 -4
- package/bidi/dir-document-token.d.ts +0 -26
- package/bidi/dir.d.ts +0 -36
- package/bidi/directionality.d.ts +0 -26
- package/bidi/package.json +0 -9
- package/bidi/public-api.d.ts +0 -11
- package/clipboard/clipboard-module.d.ts +0 -7
- package/clipboard/clipboard.d.ts +0 -28
- package/clipboard/clipboard_public_index.d.ts +0 -4
- package/clipboard/copy-to-clipboard.d.ts +0 -49
- package/clipboard/package.json +0 -9
- package/clipboard/pending-copy.d.ts +0 -29
- package/clipboard/public-api.d.ts +0 -11
- package/coercion/array.d.ts +0 -10
- package/coercion/boolean-property.d.ts +0 -14
- package/coercion/css-pixel-value.d.ts +0 -9
- package/coercion/element.d.ts +0 -13
- package/coercion/number-property.d.ts +0 -20
- package/coercion/package.json +0 -9
- package/coercion/public-api.d.ts +0 -13
- package/coercion/string-array.d.ts +0 -25
- package/collections/array-data-source.d.ts +0 -16
- package/collections/collection-viewer.d.ts +0 -24
- package/collections/collections_public_index.d.ts +0 -4
- package/collections/data-source.d.ts +0 -30
- package/collections/dispose-view-repeater-strategy.d.ts +0 -22
- package/collections/package.json +0 -9
- package/collections/public-api.d.ts +0 -16
- package/collections/recycle-view-repeater-strategy.d.ts +0 -54
- package/collections/selection-model.d.ts +0 -95
- package/collections/tree-adapter.d.ts +0 -26
- package/collections/unique-selection-dispatcher.d.ts +0 -36
- package/collections/view-repeater.d.ts +0 -92
- package/drag-drop/client-rect.d.ts +0 -38
- package/drag-drop/clone-node.d.ts +0 -9
- package/drag-drop/directives/assertions.d.ts +0 -13
- package/drag-drop/directives/config.d.ts +0 -43
- package/drag-drop/directives/drag-handle.d.ts +0 -33
- package/drag-drop/directives/drag-placeholder.d.ts +0 -27
- package/drag-drop/directives/drag-preview.d.ts +0 -32
- package/drag-drop/directives/drag.d.ts +0 -160
- package/drag-drop/directives/drop-list-group.d.ts +0 -33
- package/drag-drop/directives/drop-list.d.ts +0 -123
- package/drag-drop/drag-drop-module.d.ts +0 -13
- package/drag-drop/drag-drop-registry.d.ts +0 -89
- package/drag-drop/drag-drop.d.ts +0 -36
- package/drag-drop/drag-drop_public_index.d.ts +0 -4
- package/drag-drop/drag-events.d.ts +0 -124
- package/drag-drop/drag-parent.d.ts +0 -15
- package/drag-drop/drag-ref.d.ts +0 -448
- package/drag-drop/drag-styling.d.ts +0 -42
- package/drag-drop/drag-utils.d.ts +0 -32
- package/drag-drop/drop-list-ref.d.ts +0 -312
- package/drag-drop/package.json +0 -9
- package/drag-drop/parent-position-tracker.d.ts +0 -39
- package/drag-drop/public-api.d.ts +0 -22
- package/drag-drop/transition-duration.d.ts +0 -9
- package/keycodes/keycodes.d.ts +0 -126
- package/keycodes/keycodes_public_index.d.ts +0 -4
- package/keycodes/modifiers.d.ts +0 -14
- package/keycodes/package.json +0 -9
- package/keycodes/public-api.d.ts +0 -9
- package/layout/breakpoints-observer.d.ts +0 -45
- package/layout/breakpoints.d.ts +0 -23
- package/layout/layout-module.d.ts +0 -6
- package/layout/layout_public_index.d.ts +0 -4
- package/layout/media-matcher.d.ts +0 -18
- package/layout/package.json +0 -9
- package/layout/public-api.d.ts +0 -11
- package/observers/observe-content.d.ts +0 -87
- package/observers/observers_public_index.d.ts +0 -4
- package/observers/package.json +0 -9
- package/observers/public-api.d.ts +0 -8
- package/overlay/dispatchers/base-overlay-dispatcher.d.ts +0 -24
- package/overlay/dispatchers/index.d.ts +0 -9
- package/overlay/dispatchers/overlay-keyboard-dispatcher.d.ts +0 -24
- package/overlay/dispatchers/overlay-outside-click-dispatcher.d.ts +0 -32
- package/overlay/fullscreen-overlay-container.d.ts +0 -35
- package/overlay/overlay-config.d.ts +0 -47
- package/overlay/overlay-container.d.ts +0 -25
- package/overlay/overlay-directives.d.ts +0 -148
- package/overlay/overlay-module.d.ts +0 -10
- package/overlay/overlay-ref.d.ts +0 -144
- package/overlay/overlay-reference.d.ts +0 -38
- package/overlay/overlay.d.ts +0 -75
- package/overlay/overlay_public_index.d.ts +0 -4
- package/overlay/package.json +0 -9
- package/overlay/position/connected-position.d.ts +0 -102
- package/overlay/position/flexible-connected-position-strategy.d.ts +0 -280
- package/overlay/position/global-position-strategy.d.ts +0 -99
- package/overlay/position/overlay-position-builder.d.ts +0 -32
- package/overlay/position/position-strategy.d.ts +0 -19
- package/overlay/position/scroll-clip.d.ts +0 -26
- package/overlay/public-api.d.ts +0 -23
- package/overlay/scroll/block-scroll-strategy.d.ts +0 -27
- package/overlay/scroll/close-scroll-strategy.d.ts +0 -40
- package/overlay/scroll/index.d.ts +0 -14
- package/overlay/scroll/noop-scroll-strategy.d.ts +0 -17
- package/overlay/scroll/reposition-scroll-strategy.d.ts +0 -39
- package/overlay/scroll/scroll-strategy-options.d.ts +0 -44
- package/overlay/scroll/scroll-strategy.d.ts +0 -25
- package/platform/features/input-types.d.ts +0 -9
- package/platform/features/passive-listeners.d.ts +0 -19
- package/platform/features/scrolling.d.ts +0 -32
- package/platform/features/shadow-dom.d.ts +0 -18
- package/platform/features/test-environment.d.ts +0 -9
- package/platform/package.json +0 -9
- package/platform/platform-module.d.ts +0 -6
- package/platform/platform.d.ts +0 -29
- package/platform/platform_public_index.d.ts +0 -4
- package/platform/public-api.d.ts +0 -14
- package/portal/dom-portal-outlet.d.ts +0 -60
- package/portal/package.json +0 -9
- package/portal/portal-directives.d.ts +0 -99
- package/portal/portal-errors.d.ts +0 -37
- package/portal/portal-injector.d.ts +0 -21
- package/portal/portal.d.ts +0 -140
- package/portal/portal_public_index.d.ts +0 -4
- package/portal/public-api.d.ts +0 -11
- package/public-api.d.ts +0 -8
- package/scrolling/fixed-size-virtual-scroll.d.ts +0 -97
- package/scrolling/package.json +0 -9
- package/scrolling/public-api.d.ts +0 -16
- package/scrolling/scroll-dispatcher.d.ts +0 -71
- package/scrolling/scrollable.d.ts +0 -85
- package/scrolling/scrolling-module.d.ts +0 -19
- package/scrolling/scrolling_public_index.d.ts +0 -4
- package/scrolling/viewport-ruler.d.ts +0 -63
- package/scrolling/virtual-for-of.d.ts +0 -117
- package/scrolling/virtual-scroll-repeater.d.ts +0 -16
- package/scrolling/virtual-scroll-strategy.d.ts +0 -38
- package/scrolling/virtual-scroll-viewport.d.ts +0 -147
- package/stepper/package.json +0 -9
- package/stepper/public-api.d.ts +0 -12
- package/stepper/step-header.d.ts +0 -18
- package/stepper/step-label.d.ts +0 -15
- package/stepper/stepper-button.d.ts +0 -20
- package/stepper/stepper-module.d.ts +0 -11
- package/stepper/stepper.d.ts +0 -233
- package/stepper/stepper_public_index.d.ts +0 -4
- package/table/can-stick.d.ts +0 -34
- package/table/cell.d.ts +0 -126
- package/table/coalesced-style-scheduler.d.ts +0 -46
- package/table/package.json +0 -9
- package/table/public-api.d.ts +0 -19
- package/table/row.d.ts +0 -175
- package/table/sticky-position-listener.d.ts +0 -31
- package/table/sticky-styler.d.ts +0 -126
- package/table/table-errors.d.ts +0 -48
- package/table/table-module.d.ts +0 -11
- package/table/table.d.ts +0 -494
- package/table/table_public_index.d.ts +0 -4
- package/table/text-column.d.ts +0 -73
- package/table/tokens.d.ts +0 -25
- package/testing/change-detection.d.ts +0 -83
- package/testing/component-harness.d.ts +0 -426
- package/testing/element-dimensions.d.ts +0 -16
- package/testing/harness-environment.d.ts +0 -62
- package/testing/package.json +0 -9
- package/testing/public-api.d.ts +0 -14
- package/testing/selenium-webdriver/package.json +0 -9
- package/testing/selenium-webdriver/public-api.d.ts +0 -9
- package/testing/selenium-webdriver/selenium-web-driver-element.d.ts +0 -91
- package/testing/selenium-webdriver/selenium-web-driver-harness-environment.d.ts +0 -66
- package/testing/selenium-webdriver/selenium-webdriver-keys.d.ts +0 -46
- package/testing/test-element-errors.d.ts +0 -12
- package/testing/test-element.d.ts +0 -135
- package/testing/testbed/fake-events/dispatch-events.d.ts +0 -39
- package/testing/testbed/fake-events/element-focus.d.ts +0 -18
- package/testing/testbed/fake-events/event-objects.d.ts +0 -39
- package/testing/testbed/fake-events/index.d.ts +0 -11
- package/testing/testbed/fake-events/type-in-element.d.ts +0 -41
- package/testing/testbed/package.json +0 -9
- package/testing/testbed/proxy-zone-types.d.ts +0 -29
- package/testing/testbed/public-api.d.ts +0 -9
- package/testing/testbed/task-state-zone-interceptor.d.ts +0 -37
- package/testing/testbed/testbed-harness-environment.d.ts +0 -64
- package/testing/testbed/unit-test-element.d.ts +0 -98
- package/testing/testbed/zone-types.d.ts +0 -22
- package/testing/text-filtering.d.ts +0 -13
- package/text-field/autofill.d.ts +0 -66
- package/text-field/autosize.d.ts +0 -95
- package/text-field/package.json +0 -9
- package/text-field/public-api.d.ts +0 -10
- package/text-field/text-field-module.d.ts +0 -8
- package/text-field/text-field_public_index.d.ts +0 -4
- package/tree/control/base-tree-control.d.ts +0 -54
- package/tree/control/flat-tree-control.d.ts +0 -34
- package/tree/control/nested-tree-control.d.ts +0 -31
- package/tree/control/tree-control.d.ts +0 -49
- package/tree/nested-node.d.ts +0 -38
- package/tree/node.d.ts +0 -40
- package/tree/outlet.d.ts +0 -26
- package/tree/package.json +0 -9
- package/tree/padding.d.ts +0 -60
- package/tree/public-api.d.ts +0 -19
- package/tree/toggle.d.ts +0 -25
- package/tree/tree-errors.d.ts +0 -32
- package/tree/tree-module.d.ts +0 -12
- package/tree/tree.d.ts +0 -128
- package/tree/tree_public_index.d.ts +0 -4
- package/version.d.ts +0 -10
package/drag-drop/drag-ref.d.ts
DELETED
|
@@ -1,448 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { ElementRef, NgZone, ViewContainerRef, TemplateRef } from '@angular/core';
|
|
9
|
-
import { ViewportRuler } from '@angular/cdk/scrolling';
|
|
10
|
-
import { Direction } from '@angular/cdk/bidi';
|
|
11
|
-
import { Subject, Observable } from 'rxjs';
|
|
12
|
-
import { DropListRefInternal as DropListRef } from './drop-list-ref';
|
|
13
|
-
import { DragDropRegistry } from './drag-drop-registry';
|
|
14
|
-
/** Object that can be used to configure the behavior of DragRef. */
|
|
15
|
-
export interface DragRefConfig {
|
|
16
|
-
/**
|
|
17
|
-
* Minimum amount of pixels that the user should
|
|
18
|
-
* drag, before the CDK initiates a drag sequence.
|
|
19
|
-
*/
|
|
20
|
-
dragStartThreshold: number;
|
|
21
|
-
/**
|
|
22
|
-
* Amount the pixels the user should drag before the CDK
|
|
23
|
-
* considers them to have changed the drag direction.
|
|
24
|
-
*/
|
|
25
|
-
pointerDirectionChangeThreshold: number;
|
|
26
|
-
/** `z-index` for the absolutely-positioned elements that are created by the drag item. */
|
|
27
|
-
zIndex?: number;
|
|
28
|
-
/** Ref that the current drag item is nested in. */
|
|
29
|
-
parentDragRef?: DragRef;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Internal compile-time-only representation of a `DragRef`.
|
|
33
|
-
* Used to avoid circular import issues between the `DragRef` and the `DropListRef`.
|
|
34
|
-
* @docs-private
|
|
35
|
-
*/
|
|
36
|
-
export interface DragRefInternal extends DragRef {
|
|
37
|
-
}
|
|
38
|
-
/** Template that can be used to create a drag helper element (e.g. a preview or a placeholder). */
|
|
39
|
-
interface DragHelperTemplate<T = any> {
|
|
40
|
-
template: TemplateRef<T> | null;
|
|
41
|
-
viewContainer: ViewContainerRef;
|
|
42
|
-
context: T;
|
|
43
|
-
}
|
|
44
|
-
/** Template that can be used to create a drag preview element. */
|
|
45
|
-
interface DragPreviewTemplate<T = any> extends DragHelperTemplate<T> {
|
|
46
|
-
matchSize?: boolean;
|
|
47
|
-
}
|
|
48
|
-
/** Point on the page or within an element. */
|
|
49
|
-
export interface Point {
|
|
50
|
-
x: number;
|
|
51
|
-
y: number;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Possible places into which the preview of a drag item can be inserted.
|
|
55
|
-
* - `global` - Preview will be inserted at the bottom of the `<body>`. The advantage is that
|
|
56
|
-
* you don't have to worry about `overflow: hidden` or `z-index`, but the item won't retain
|
|
57
|
-
* its inherited styles.
|
|
58
|
-
* - `parent` - Preview will be inserted into the parent of the drag item. The advantage is that
|
|
59
|
-
* inherited styles will be preserved, but it may be clipped by `overflow: hidden` or not be
|
|
60
|
-
* visible due to `z-index`. Furthermore, the preview is going to have an effect over selectors
|
|
61
|
-
* like `:nth-child` and some flexbox configurations.
|
|
62
|
-
* - `ElementRef<HTMLElement> | HTMLElement` - Preview will be inserted into a specific element.
|
|
63
|
-
* Same advantages and disadvantages as `parent`.
|
|
64
|
-
*/
|
|
65
|
-
export declare type PreviewContainer = 'global' | 'parent' | ElementRef<HTMLElement> | HTMLElement;
|
|
66
|
-
/**
|
|
67
|
-
* Reference to a draggable item. Used to manipulate or dispose of the item.
|
|
68
|
-
*/
|
|
69
|
-
export declare class DragRef<T = any> {
|
|
70
|
-
private _config;
|
|
71
|
-
private _document;
|
|
72
|
-
private _ngZone;
|
|
73
|
-
private _viewportRuler;
|
|
74
|
-
private _dragDropRegistry;
|
|
75
|
-
/** Element displayed next to the user's pointer while the element is dragged. */
|
|
76
|
-
private _preview;
|
|
77
|
-
/** Reference to the view of the preview element. */
|
|
78
|
-
private _previewRef;
|
|
79
|
-
/** Container into which to insert the preview. */
|
|
80
|
-
private _previewContainer;
|
|
81
|
-
/** Reference to the view of the placeholder element. */
|
|
82
|
-
private _placeholderRef;
|
|
83
|
-
/** Element that is rendered instead of the draggable item while it is being sorted. */
|
|
84
|
-
private _placeholder;
|
|
85
|
-
/** Coordinates within the element at which the user picked up the element. */
|
|
86
|
-
private _pickupPositionInElement;
|
|
87
|
-
/** Coordinates on the page at which the user picked up the element. */
|
|
88
|
-
private _pickupPositionOnPage;
|
|
89
|
-
/**
|
|
90
|
-
* Anchor node used to save the place in the DOM where the element was
|
|
91
|
-
* picked up so that it can be restored at the end of the drag sequence.
|
|
92
|
-
*/
|
|
93
|
-
private _anchor;
|
|
94
|
-
/**
|
|
95
|
-
* CSS `transform` applied to the element when it isn't being dragged. We need a
|
|
96
|
-
* passive transform in order for the dragged element to retain its new position
|
|
97
|
-
* after the user has stopped dragging and because we need to know the relative
|
|
98
|
-
* position in case they start dragging again. This corresponds to `element.style.transform`.
|
|
99
|
-
*/
|
|
100
|
-
private _passiveTransform;
|
|
101
|
-
/** CSS `transform` that is applied to the element while it's being dragged. */
|
|
102
|
-
private _activeTransform;
|
|
103
|
-
/** Inline `transform` value that the element had before the first dragging sequence. */
|
|
104
|
-
private _initialTransform?;
|
|
105
|
-
/**
|
|
106
|
-
* Whether the dragging sequence has been started. Doesn't
|
|
107
|
-
* necessarily mean that the element has been moved.
|
|
108
|
-
*/
|
|
109
|
-
private _hasStartedDragging;
|
|
110
|
-
/** Whether the element has moved since the user started dragging it. */
|
|
111
|
-
private _hasMoved;
|
|
112
|
-
/** Drop container in which the DragRef resided when dragging began. */
|
|
113
|
-
private _initialContainer;
|
|
114
|
-
/** Index at which the item started in its initial container. */
|
|
115
|
-
private _initialIndex;
|
|
116
|
-
/** Cached positions of scrollable parent elements. */
|
|
117
|
-
private _parentPositions;
|
|
118
|
-
/** Emits when the item is being moved. */
|
|
119
|
-
private readonly _moveEvents;
|
|
120
|
-
/** Keeps track of the direction in which the user is dragging along each axis. */
|
|
121
|
-
private _pointerDirectionDelta;
|
|
122
|
-
/** Pointer position at which the last change in the delta occurred. */
|
|
123
|
-
private _pointerPositionAtLastDirectionChange;
|
|
124
|
-
/** Position of the pointer at the last pointer event. */
|
|
125
|
-
private _lastKnownPointerPosition;
|
|
126
|
-
/**
|
|
127
|
-
* Root DOM node of the drag instance. This is the element that will
|
|
128
|
-
* be moved around as the user is dragging.
|
|
129
|
-
*/
|
|
130
|
-
private _rootElement;
|
|
131
|
-
/**
|
|
132
|
-
* Nearest ancestor SVG, relative to which coordinates are calculated if dragging SVGElement
|
|
133
|
-
*/
|
|
134
|
-
private _ownerSVGElement;
|
|
135
|
-
/**
|
|
136
|
-
* Inline style value of `-webkit-tap-highlight-color` at the time the
|
|
137
|
-
* dragging was started. Used to restore the value once we're done dragging.
|
|
138
|
-
*/
|
|
139
|
-
private _rootElementTapHighlight;
|
|
140
|
-
/** Subscription to pointer movement events. */
|
|
141
|
-
private _pointerMoveSubscription;
|
|
142
|
-
/** Subscription to the event that is dispatched when the user lifts their pointer. */
|
|
143
|
-
private _pointerUpSubscription;
|
|
144
|
-
/** Subscription to the viewport being scrolled. */
|
|
145
|
-
private _scrollSubscription;
|
|
146
|
-
/** Subscription to the viewport being resized. */
|
|
147
|
-
private _resizeSubscription;
|
|
148
|
-
/**
|
|
149
|
-
* Time at which the last touch event occurred. Used to avoid firing the same
|
|
150
|
-
* events multiple times on touch devices where the browser will fire a fake
|
|
151
|
-
* mouse event for each touch event, after a certain time.
|
|
152
|
-
*/
|
|
153
|
-
private _lastTouchEventTime;
|
|
154
|
-
/** Time at which the last dragging sequence was started. */
|
|
155
|
-
private _dragStartTime;
|
|
156
|
-
/** Cached reference to the boundary element. */
|
|
157
|
-
private _boundaryElement;
|
|
158
|
-
/** Whether the native dragging interactions have been enabled on the root element. */
|
|
159
|
-
private _nativeInteractionsEnabled;
|
|
160
|
-
/** Cached dimensions of the preview element. Should be read via `_getPreviewRect`. */
|
|
161
|
-
private _previewRect?;
|
|
162
|
-
/** Cached dimensions of the boundary element. */
|
|
163
|
-
private _boundaryRect?;
|
|
164
|
-
/** Element that will be used as a template to create the draggable item's preview. */
|
|
165
|
-
private _previewTemplate?;
|
|
166
|
-
/** Template for placeholder element rendered to show where a draggable would be dropped. */
|
|
167
|
-
private _placeholderTemplate?;
|
|
168
|
-
/** Elements that can be used to drag the draggable item. */
|
|
169
|
-
private _handles;
|
|
170
|
-
/** Registered handles that are currently disabled. */
|
|
171
|
-
private _disabledHandles;
|
|
172
|
-
/** Droppable container that the draggable is a part of. */
|
|
173
|
-
private _dropContainer?;
|
|
174
|
-
/** Layout direction of the item. */
|
|
175
|
-
private _direction;
|
|
176
|
-
/** Ref that the current drag item is nested in. */
|
|
177
|
-
private _parentDragRef;
|
|
178
|
-
/**
|
|
179
|
-
* Cached shadow root that the element is placed in. `null` means that the element isn't in
|
|
180
|
-
* the shadow DOM and `undefined` means that it hasn't been resolved yet. Should be read via
|
|
181
|
-
* `_getShadowRoot`, not directly.
|
|
182
|
-
*/
|
|
183
|
-
private _cachedShadowRoot;
|
|
184
|
-
/** Axis along which dragging is locked. */
|
|
185
|
-
lockAxis: 'x' | 'y';
|
|
186
|
-
/**
|
|
187
|
-
* Amount of milliseconds to wait after the user has put their
|
|
188
|
-
* pointer down before starting to drag the element.
|
|
189
|
-
*/
|
|
190
|
-
dragStartDelay: number | {
|
|
191
|
-
touch: number;
|
|
192
|
-
mouse: number;
|
|
193
|
-
};
|
|
194
|
-
/** Class to be added to the preview element. */
|
|
195
|
-
previewClass: string | string[] | undefined;
|
|
196
|
-
/** Whether starting to drag this element is disabled. */
|
|
197
|
-
get disabled(): boolean;
|
|
198
|
-
set disabled(value: boolean);
|
|
199
|
-
private _disabled;
|
|
200
|
-
/** Emits as the drag sequence is being prepared. */
|
|
201
|
-
readonly beforeStarted: Subject<void>;
|
|
202
|
-
/** Emits when the user starts dragging the item. */
|
|
203
|
-
readonly started: Subject<{
|
|
204
|
-
source: DragRef;
|
|
205
|
-
event: MouseEvent | TouchEvent;
|
|
206
|
-
}>;
|
|
207
|
-
/** Emits when the user has released a drag item, before any animations have started. */
|
|
208
|
-
readonly released: Subject<{
|
|
209
|
-
source: DragRef;
|
|
210
|
-
event: MouseEvent | TouchEvent;
|
|
211
|
-
}>;
|
|
212
|
-
/** Emits when the user stops dragging an item in the container. */
|
|
213
|
-
readonly ended: Subject<{
|
|
214
|
-
source: DragRef;
|
|
215
|
-
distance: Point;
|
|
216
|
-
dropPoint: Point;
|
|
217
|
-
event: MouseEvent | TouchEvent;
|
|
218
|
-
}>;
|
|
219
|
-
/** Emits when the user has moved the item into a new container. */
|
|
220
|
-
readonly entered: Subject<{
|
|
221
|
-
container: DropListRef;
|
|
222
|
-
item: DragRef;
|
|
223
|
-
currentIndex: number;
|
|
224
|
-
}>;
|
|
225
|
-
/** Emits when the user removes the item its container by dragging it into another container. */
|
|
226
|
-
readonly exited: Subject<{
|
|
227
|
-
container: DropListRef;
|
|
228
|
-
item: DragRef;
|
|
229
|
-
}>;
|
|
230
|
-
/** Emits when the user drops the item inside a container. */
|
|
231
|
-
readonly dropped: Subject<{
|
|
232
|
-
previousIndex: number;
|
|
233
|
-
currentIndex: number;
|
|
234
|
-
item: DragRef;
|
|
235
|
-
container: DropListRef;
|
|
236
|
-
previousContainer: DropListRef;
|
|
237
|
-
distance: Point;
|
|
238
|
-
dropPoint: Point;
|
|
239
|
-
isPointerOverContainer: boolean;
|
|
240
|
-
event: MouseEvent | TouchEvent;
|
|
241
|
-
}>;
|
|
242
|
-
/**
|
|
243
|
-
* Emits as the user is dragging the item. Use with caution,
|
|
244
|
-
* because this event will fire for every pixel that the user has dragged.
|
|
245
|
-
*/
|
|
246
|
-
readonly moved: Observable<{
|
|
247
|
-
source: DragRef;
|
|
248
|
-
pointerPosition: {
|
|
249
|
-
x: number;
|
|
250
|
-
y: number;
|
|
251
|
-
};
|
|
252
|
-
event: MouseEvent | TouchEvent;
|
|
253
|
-
distance: Point;
|
|
254
|
-
delta: {
|
|
255
|
-
x: -1 | 0 | 1;
|
|
256
|
-
y: -1 | 0 | 1;
|
|
257
|
-
};
|
|
258
|
-
}>;
|
|
259
|
-
/** Arbitrary data that can be attached to the drag item. */
|
|
260
|
-
data: T;
|
|
261
|
-
/**
|
|
262
|
-
* Function that can be used to customize the logic of how the position of the drag item
|
|
263
|
-
* is limited while it's being dragged. Gets called with a point containing the current position
|
|
264
|
-
* of the user's pointer on the page and should return a point describing where the item should
|
|
265
|
-
* be rendered.
|
|
266
|
-
*/
|
|
267
|
-
constrainPosition?: (point: Point, dragRef: DragRef) => Point;
|
|
268
|
-
constructor(element: ElementRef<HTMLElement> | HTMLElement, _config: DragRefConfig, _document: Document, _ngZone: NgZone, _viewportRuler: ViewportRuler, _dragDropRegistry: DragDropRegistry<DragRef, DropListRef>);
|
|
269
|
-
/**
|
|
270
|
-
* Returns the element that is being used as a placeholder
|
|
271
|
-
* while the current element is being dragged.
|
|
272
|
-
*/
|
|
273
|
-
getPlaceholderElement(): HTMLElement;
|
|
274
|
-
/** Returns the root draggable element. */
|
|
275
|
-
getRootElement(): HTMLElement;
|
|
276
|
-
/**
|
|
277
|
-
* Gets the currently-visible element that represents the drag item.
|
|
278
|
-
* While dragging this is the placeholder, otherwise it's the root element.
|
|
279
|
-
*/
|
|
280
|
-
getVisibleElement(): HTMLElement;
|
|
281
|
-
/** Registers the handles that can be used to drag the element. */
|
|
282
|
-
withHandles(handles: (HTMLElement | ElementRef<HTMLElement>)[]): this;
|
|
283
|
-
/**
|
|
284
|
-
* Registers the template that should be used for the drag preview.
|
|
285
|
-
* @param template Template that from which to stamp out the preview.
|
|
286
|
-
*/
|
|
287
|
-
withPreviewTemplate(template: DragPreviewTemplate | null): this;
|
|
288
|
-
/**
|
|
289
|
-
* Registers the template that should be used for the drag placeholder.
|
|
290
|
-
* @param template Template that from which to stamp out the placeholder.
|
|
291
|
-
*/
|
|
292
|
-
withPlaceholderTemplate(template: DragHelperTemplate | null): this;
|
|
293
|
-
/**
|
|
294
|
-
* Sets an alternate drag root element. The root element is the element that will be moved as
|
|
295
|
-
* the user is dragging. Passing an alternate root element is useful when trying to enable
|
|
296
|
-
* dragging on an element that you might not have access to.
|
|
297
|
-
*/
|
|
298
|
-
withRootElement(rootElement: ElementRef<HTMLElement> | HTMLElement): this;
|
|
299
|
-
/**
|
|
300
|
-
* Element to which the draggable's position will be constrained.
|
|
301
|
-
*/
|
|
302
|
-
withBoundaryElement(boundaryElement: ElementRef<HTMLElement> | HTMLElement | null): this;
|
|
303
|
-
/** Sets the parent ref that the ref is nested in. */
|
|
304
|
-
withParent(parent: DragRef<unknown> | null): this;
|
|
305
|
-
/** Removes the dragging functionality from the DOM element. */
|
|
306
|
-
dispose(): void;
|
|
307
|
-
/** Checks whether the element is currently being dragged. */
|
|
308
|
-
isDragging(): boolean;
|
|
309
|
-
/** Resets a standalone drag item to its initial position. */
|
|
310
|
-
reset(): void;
|
|
311
|
-
/**
|
|
312
|
-
* Sets a handle as disabled. While a handle is disabled, it'll capture and interrupt dragging.
|
|
313
|
-
* @param handle Handle element that should be disabled.
|
|
314
|
-
*/
|
|
315
|
-
disableHandle(handle: HTMLElement): void;
|
|
316
|
-
/**
|
|
317
|
-
* Enables a handle, if it has been disabled.
|
|
318
|
-
* @param handle Handle element to be enabled.
|
|
319
|
-
*/
|
|
320
|
-
enableHandle(handle: HTMLElement): void;
|
|
321
|
-
/** Sets the layout direction of the draggable item. */
|
|
322
|
-
withDirection(direction: Direction): this;
|
|
323
|
-
/** Sets the container that the item is part of. */
|
|
324
|
-
_withDropContainer(container: DropListRef): void;
|
|
325
|
-
/**
|
|
326
|
-
* Gets the current position in pixels the draggable outside of a drop container.
|
|
327
|
-
*/
|
|
328
|
-
getFreeDragPosition(): Readonly<Point>;
|
|
329
|
-
/**
|
|
330
|
-
* Sets the current position in pixels the draggable outside of a drop container.
|
|
331
|
-
* @param value New position to be set.
|
|
332
|
-
*/
|
|
333
|
-
setFreeDragPosition(value: Point): this;
|
|
334
|
-
/**
|
|
335
|
-
* Sets the container into which to insert the preview element.
|
|
336
|
-
* @param value Container into which to insert the preview.
|
|
337
|
-
*/
|
|
338
|
-
withPreviewContainer(value: PreviewContainer): this;
|
|
339
|
-
/** Updates the item's sort order based on the last-known pointer position. */
|
|
340
|
-
_sortFromLastPointerPosition(): void;
|
|
341
|
-
/** Unsubscribes from the global subscriptions. */
|
|
342
|
-
private _removeSubscriptions;
|
|
343
|
-
/** Destroys the preview element and its ViewRef. */
|
|
344
|
-
private _destroyPreview;
|
|
345
|
-
/** Destroys the placeholder element and its ViewRef. */
|
|
346
|
-
private _destroyPlaceholder;
|
|
347
|
-
/** Handler for the `mousedown`/`touchstart` events. */
|
|
348
|
-
private _pointerDown;
|
|
349
|
-
/** Handler that is invoked when the user moves their pointer after they've initiated a drag. */
|
|
350
|
-
private _pointerMove;
|
|
351
|
-
/** Handler that is invoked when the user lifts their pointer up, after initiating a drag. */
|
|
352
|
-
private _pointerUp;
|
|
353
|
-
/**
|
|
354
|
-
* Clears subscriptions and stops the dragging sequence.
|
|
355
|
-
* @param event Browser event object that ended the sequence.
|
|
356
|
-
*/
|
|
357
|
-
private _endDragSequence;
|
|
358
|
-
/** Starts the dragging sequence. */
|
|
359
|
-
private _startDragSequence;
|
|
360
|
-
/**
|
|
361
|
-
* Sets up the different variables and subscriptions
|
|
362
|
-
* that will be necessary for the dragging sequence.
|
|
363
|
-
* @param referenceElement Element that started the drag sequence.
|
|
364
|
-
* @param event Browser event object that started the sequence.
|
|
365
|
-
*/
|
|
366
|
-
private _initializeDragSequence;
|
|
367
|
-
/** Cleans up the DOM artifacts that were added to facilitate the element being dragged. */
|
|
368
|
-
private _cleanupDragArtifacts;
|
|
369
|
-
/**
|
|
370
|
-
* Updates the item's position in its drop container, or moves it
|
|
371
|
-
* into a new one, depending on its current drag position.
|
|
372
|
-
*/
|
|
373
|
-
private _updateActiveDropContainer;
|
|
374
|
-
/**
|
|
375
|
-
* Creates the element that will be rendered next to the user's pointer
|
|
376
|
-
* and will be used as a preview of the element that is being dragged.
|
|
377
|
-
*/
|
|
378
|
-
private _createPreviewElement;
|
|
379
|
-
/**
|
|
380
|
-
* Animates the preview element from its current position to the location of the drop placeholder.
|
|
381
|
-
* @returns Promise that resolves when the animation completes.
|
|
382
|
-
*/
|
|
383
|
-
private _animatePreviewToPlaceholder;
|
|
384
|
-
/** Creates an element that will be shown instead of the current element while dragging. */
|
|
385
|
-
private _createPlaceholderElement;
|
|
386
|
-
/**
|
|
387
|
-
* Figures out the coordinates at which an element was picked up.
|
|
388
|
-
* @param referenceElement Element that initiated the dragging.
|
|
389
|
-
* @param event Event that initiated the dragging.
|
|
390
|
-
*/
|
|
391
|
-
private _getPointerPositionInElement;
|
|
392
|
-
/** Determines the point of the page that was touched by the user. */
|
|
393
|
-
private _getPointerPositionOnPage;
|
|
394
|
-
/** Gets the pointer position on the page, accounting for any position constraints. */
|
|
395
|
-
private _getConstrainedPointerPosition;
|
|
396
|
-
/** Updates the current drag delta, based on the user's current pointer position on the page. */
|
|
397
|
-
private _updatePointerDirectionDelta;
|
|
398
|
-
/** Toggles the native drag interactions, based on how many handles are registered. */
|
|
399
|
-
private _toggleNativeDragInteractions;
|
|
400
|
-
/** Removes the manually-added event listeners from the root element. */
|
|
401
|
-
private _removeRootElementListeners;
|
|
402
|
-
/**
|
|
403
|
-
* Applies a `transform` to the root element, taking into account any existing transforms on it.
|
|
404
|
-
* @param x New transform value along the X axis.
|
|
405
|
-
* @param y New transform value along the Y axis.
|
|
406
|
-
*/
|
|
407
|
-
private _applyRootElementTransform;
|
|
408
|
-
/**
|
|
409
|
-
* Applies a `transform` to the preview, taking into account any existing transforms on it.
|
|
410
|
-
* @param x New transform value along the X axis.
|
|
411
|
-
* @param y New transform value along the Y axis.
|
|
412
|
-
*/
|
|
413
|
-
private _applyPreviewTransform;
|
|
414
|
-
/**
|
|
415
|
-
* Gets the distance that the user has dragged during the current drag sequence.
|
|
416
|
-
* @param currentPosition Current position of the user's pointer.
|
|
417
|
-
*/
|
|
418
|
-
private _getDragDistance;
|
|
419
|
-
/** Cleans up any cached element dimensions that we don't need after dragging has stopped. */
|
|
420
|
-
private _cleanupCachedDimensions;
|
|
421
|
-
/**
|
|
422
|
-
* Checks whether the element is still inside its boundary after the viewport has been resized.
|
|
423
|
-
* If not, the position is adjusted so that the element fits again.
|
|
424
|
-
*/
|
|
425
|
-
private _containInsideBoundaryOnResize;
|
|
426
|
-
/** Gets the drag start delay, based on the event type. */
|
|
427
|
-
private _getDragStartDelay;
|
|
428
|
-
/** Updates the internal state of the draggable element when scrolling has occurred. */
|
|
429
|
-
private _updateOnScroll;
|
|
430
|
-
/** Gets the scroll position of the viewport. */
|
|
431
|
-
private _getViewportScrollPosition;
|
|
432
|
-
/**
|
|
433
|
-
* Lazily resolves and returns the shadow root of the element. We do this in a function, rather
|
|
434
|
-
* than saving it in property directly on init, because we want to resolve it as late as possible
|
|
435
|
-
* in order to ensure that the element has been moved into the shadow DOM. Doing it inside the
|
|
436
|
-
* constructor might be too early if the element is inside of something like `ngFor` or `ngIf`.
|
|
437
|
-
*/
|
|
438
|
-
private _getShadowRoot;
|
|
439
|
-
/** Gets the element into which the drag preview should be inserted. */
|
|
440
|
-
private _getPreviewInsertionPoint;
|
|
441
|
-
/** Lazily resolves and returns the dimensions of the preview. */
|
|
442
|
-
private _getPreviewRect;
|
|
443
|
-
/** Handles a native `dragstart` event. */
|
|
444
|
-
private _nativeDragStart;
|
|
445
|
-
/** Gets a handle that is the target of an event. */
|
|
446
|
-
private _getTargetHandle;
|
|
447
|
-
}
|
|
448
|
-
export {};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Extended CSSStyleDeclaration that includes a couple of drag-related
|
|
10
|
-
* properties that aren't in the built-in TS typings.
|
|
11
|
-
*/
|
|
12
|
-
export interface DragCSSStyleDeclaration extends CSSStyleDeclaration {
|
|
13
|
-
msScrollSnapType: string;
|
|
14
|
-
scrollSnapType: string;
|
|
15
|
-
webkitTapHighlightColor: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Shallow-extends a stylesheet object with another stylesheet-like object.
|
|
19
|
-
* Note that the keys in `source` have to be dash-cased.
|
|
20
|
-
* @docs-private
|
|
21
|
-
*/
|
|
22
|
-
export declare function extendStyles(dest: CSSStyleDeclaration, source: Record<string, string>, importantProperties?: Set<string>): CSSStyleDeclaration;
|
|
23
|
-
/**
|
|
24
|
-
* Toggles whether the native drag interactions should be enabled for an element.
|
|
25
|
-
* @param element Element on which to toggle the drag interactions.
|
|
26
|
-
* @param enable Whether the drag interactions should be enabled.
|
|
27
|
-
* @docs-private
|
|
28
|
-
*/
|
|
29
|
-
export declare function toggleNativeDragInteractions(element: HTMLElement, enable: boolean): void;
|
|
30
|
-
/**
|
|
31
|
-
* Toggles whether an element is visible while preserving its dimensions.
|
|
32
|
-
* @param element Element whose visibility to toggle
|
|
33
|
-
* @param enable Whether the element should be visible.
|
|
34
|
-
* @param importantProperties Properties to be set as `!important`.
|
|
35
|
-
* @docs-private
|
|
36
|
-
*/
|
|
37
|
-
export declare function toggleVisibility(element: HTMLElement, enable: boolean, importantProperties?: Set<string>): void;
|
|
38
|
-
/**
|
|
39
|
-
* Combines a transform string with an optional other transform
|
|
40
|
-
* that exited before the base transform was applied.
|
|
41
|
-
*/
|
|
42
|
-
export declare function combineTransforms(transform: string, initialTransform?: string): string;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Moves an item one index in an array to another.
|
|
10
|
-
* @param array Array in which to move the item.
|
|
11
|
-
* @param fromIndex Starting index of the item.
|
|
12
|
-
* @param toIndex Index to which the item should be moved.
|
|
13
|
-
*/
|
|
14
|
-
export declare function moveItemInArray<T = any>(array: T[], fromIndex: number, toIndex: number): void;
|
|
15
|
-
/**
|
|
16
|
-
* Moves an item from one array to another.
|
|
17
|
-
* @param currentArray Array from which to transfer the item.
|
|
18
|
-
* @param targetArray Array into which to put the item.
|
|
19
|
-
* @param currentIndex Index of the item in its current array.
|
|
20
|
-
* @param targetIndex Index at which to insert the item.
|
|
21
|
-
*/
|
|
22
|
-
export declare function transferArrayItem<T = any>(currentArray: T[], targetArray: T[], currentIndex: number, targetIndex: number): void;
|
|
23
|
-
/**
|
|
24
|
-
* Copies an item from one array to another, leaving it in its
|
|
25
|
-
* original position in current array.
|
|
26
|
-
* @param currentArray Array from which to copy the item.
|
|
27
|
-
* @param targetArray Array into which is copy the item.
|
|
28
|
-
* @param currentIndex Index of the item in its current array.
|
|
29
|
-
* @param targetIndex Index at which to insert the item.
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
|
-
export declare function copyArrayItem<T = any>(currentArray: T[], targetArray: T[], currentIndex: number, targetIndex: number): void;
|