@angular/cdk 14.0.0-next.12 → 14.0.0-next.13
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.d.ts +1119 -5
- 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 +408 -6
- package/drag-drop/index.d.ts +1456 -5
- package/esm2020/a11y/a11y-module.mjs +5 -5
- package/esm2020/a11y/aria-describer/aria-describer.mjs +3 -3
- package/esm2020/a11y/focus-monitor/focus-monitor.mjs +6 -6
- package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +3 -3
- package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +3 -3
- package/esm2020/a11y/focus-trap/focus-trap.mjs +6 -6
- package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +3 -3
- package/esm2020/a11y/input-modality/input-modality-detector.mjs +3 -3
- package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +3 -3
- package/esm2020/a11y/live-announcer/live-announcer.mjs +6 -6
- package/esm2020/accordion/accordion-item.mjs +3 -3
- package/esm2020/accordion/accordion-module.mjs +4 -4
- package/esm2020/accordion/accordion.mjs +3 -3
- package/esm2020/bidi/bidi-module.mjs +4 -4
- package/esm2020/bidi/dir.mjs +3 -3
- package/esm2020/bidi/directionality.mjs +3 -3
- package/esm2020/clipboard/clipboard-module.mjs +4 -4
- package/esm2020/clipboard/clipboard.mjs +3 -3
- package/esm2020/clipboard/copy-to-clipboard.mjs +3 -3
- package/esm2020/collections/unique-selection-dispatcher.mjs +3 -3
- package/esm2020/dialog/dialog-config.mjs +6 -1
- package/esm2020/dialog/dialog-container.mjs +23 -10
- package/esm2020/dialog/dialog-module.mjs +5 -5
- package/esm2020/dialog/dialog.mjs +35 -22
- package/esm2020/drag-drop/directives/drag-handle.mjs +3 -3
- package/esm2020/drag-drop/directives/drag-placeholder.mjs +3 -3
- package/esm2020/drag-drop/directives/drag-preview.mjs +3 -3
- package/esm2020/drag-drop/directives/drag.mjs +3 -3
- package/esm2020/drag-drop/directives/drop-list-group.mjs +3 -3
- package/esm2020/drag-drop/directives/drop-list.mjs +3 -3
- package/esm2020/drag-drop/drag-drop-module.mjs +4 -4
- package/esm2020/drag-drop/drag-drop-registry.mjs +3 -3
- package/esm2020/drag-drop/drag-drop.mjs +3 -3
- package/esm2020/layout/breakpoints-observer.mjs +3 -3
- package/esm2020/layout/layout-module.mjs +4 -4
- package/esm2020/layout/media-matcher.mjs +3 -3
- package/esm2020/menu/context-menu-trigger.mjs +10 -8
- package/esm2020/menu/menu-aim.mjs +6 -6
- package/esm2020/menu/menu-bar.mjs +3 -3
- package/esm2020/menu/menu-base.mjs +3 -3
- package/esm2020/menu/menu-group.mjs +3 -3
- package/esm2020/menu/menu-item-checkbox.mjs +3 -3
- package/esm2020/menu/menu-item-radio.mjs +3 -3
- package/esm2020/menu/menu-item-selectable.mjs +3 -3
- package/esm2020/menu/menu-item.mjs +3 -3
- package/esm2020/menu/menu-module.mjs +5 -5
- package/esm2020/menu/menu-stack.mjs +3 -3
- package/esm2020/menu/menu-trigger-base.mjs +3 -3
- package/esm2020/menu/menu-trigger.mjs +7 -5
- package/esm2020/menu/menu.mjs +3 -3
- package/esm2020/observers/observe-content.mjs +13 -13
- package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +3 -3
- package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +3 -3
- package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +3 -3
- package/esm2020/overlay/fullscreen-overlay-container.mjs +3 -3
- package/esm2020/overlay/overlay-container.mjs +3 -3
- package/esm2020/overlay/overlay-directives.mjs +6 -6
- package/esm2020/overlay/overlay-module.mjs +5 -5
- package/esm2020/overlay/overlay.mjs +3 -3
- package/esm2020/overlay/position/overlay-position-builder.mjs +3 -3
- package/esm2020/overlay/scroll/scroll-strategy-options.mjs +3 -3
- package/esm2020/platform/platform-module.mjs +4 -4
- package/esm2020/platform/platform.mjs +3 -3
- package/esm2020/portal/portal-directives.mjs +16 -16
- package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +3 -3
- package/esm2020/scrolling/scroll-dispatcher.mjs +3 -3
- package/esm2020/scrolling/scrollable.mjs +3 -3
- package/esm2020/scrolling/scrolling-module.mjs +9 -9
- package/esm2020/scrolling/viewport-ruler.mjs +3 -3
- package/esm2020/scrolling/virtual-for-of.mjs +3 -3
- package/esm2020/scrolling/virtual-scroll-viewport.mjs +3 -3
- package/esm2020/stepper/step-header.mjs +3 -3
- package/esm2020/stepper/step-label.mjs +3 -3
- package/esm2020/stepper/stepper-button.mjs +6 -6
- package/esm2020/stepper/stepper-module.mjs +5 -5
- package/esm2020/stepper/stepper.mjs +6 -6
- package/esm2020/table/cell.mjs +21 -21
- package/esm2020/table/coalesced-style-scheduler.mjs +3 -3
- package/esm2020/table/row.mjs +27 -27
- package/esm2020/table/table-module.mjs +5 -5
- package/esm2020/table/table.mjs +18 -18
- package/esm2020/table/text-column.mjs +3 -3
- package/esm2020/testing/selenium-webdriver/selenium-web-driver-harness-environment.mjs +1 -1
- package/esm2020/testing/test-element.mjs +1 -1
- package/esm2020/text-field/autofill.mjs +6 -6
- package/esm2020/text-field/autosize.mjs +3 -3
- package/esm2020/text-field/text-field-module.mjs +4 -4
- package/esm2020/tree/nested-node.mjs +3 -3
- package/esm2020/tree/node.mjs +3 -3
- package/esm2020/tree/outlet.mjs +3 -3
- package/esm2020/tree/padding.mjs +3 -3
- package/esm2020/tree/toggle.mjs +3 -3
- package/esm2020/tree/tree-module.mjs +4 -4
- package/esm2020/tree/tree.mjs +6 -6
- package/esm2020/version.mjs +1 -1
- package/fesm2015/a11y.mjs +40 -40
- package/fesm2015/a11y.mjs.map +1 -1
- package/fesm2015/accordion.mjs +10 -10
- package/fesm2015/bidi.mjs +10 -10
- package/fesm2015/cdk.mjs +1 -1
- package/fesm2015/cdk.mjs.map +1 -1
- package/fesm2015/clipboard.mjs +10 -10
- package/fesm2015/collections.mjs +3 -3
- package/fesm2015/dialog.mjs +65 -34
- package/fesm2015/dialog.mjs.map +1 -1
- package/fesm2015/drag-drop.mjs +28 -28
- package/fesm2015/layout.mjs +10 -10
- package/fesm2015/menu.mjs +55 -51
- package/fesm2015/menu.mjs.map +1 -1
- package/fesm2015/observers.mjs +13 -13
- package/fesm2015/overlay.mjs +34 -34
- package/fesm2015/overlay.mjs.map +1 -1
- package/fesm2015/platform.mjs +7 -7
- package/fesm2015/portal.mjs +16 -16
- package/fesm2015/scrolling.mjs +26 -26
- package/fesm2015/scrolling.mjs.map +1 -1
- package/fesm2015/stepper.mjs +22 -22
- package/fesm2015/stepper.mjs.map +1 -1
- package/fesm2015/table.mjs +76 -76
- package/fesm2015/table.mjs.map +1 -1
- package/fesm2015/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2015/text-field.mjs +13 -13
- package/fesm2015/tree.mjs +25 -25
- package/fesm2020/a11y.mjs +40 -40
- package/fesm2020/a11y.mjs.map +1 -1
- package/fesm2020/accordion.mjs +10 -10
- package/fesm2020/bidi.mjs +10 -10
- package/fesm2020/cdk.mjs +1 -1
- package/fesm2020/cdk.mjs.map +1 -1
- package/fesm2020/clipboard.mjs +10 -10
- package/fesm2020/collections.mjs +3 -3
- package/fesm2020/dialog.mjs +65 -34
- package/fesm2020/dialog.mjs.map +1 -1
- package/fesm2020/drag-drop.mjs +28 -28
- package/fesm2020/layout.mjs +10 -10
- package/fesm2020/menu.mjs +55 -51
- package/fesm2020/menu.mjs.map +1 -1
- package/fesm2020/observers.mjs +13 -13
- package/fesm2020/overlay.mjs +34 -34
- package/fesm2020/overlay.mjs.map +1 -1
- package/fesm2020/platform.mjs +7 -7
- package/fesm2020/portal.mjs +16 -16
- package/fesm2020/scrolling.mjs +26 -26
- package/fesm2020/scrolling.mjs.map +1 -1
- package/fesm2020/stepper.mjs +22 -22
- package/fesm2020/stepper.mjs.map +1 -1
- package/fesm2020/table.mjs +76 -76
- package/fesm2020/table.mjs.map +1 -1
- package/fesm2020/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2020/testing.mjs.map +1 -1
- package/fesm2020/text-field.mjs +13 -13
- package/fesm2020/tree.mjs +25 -25
- 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 +989 -5
- package/observers/index.d.ts +89 -6
- package/overlay/index.d.ts +1202 -5
- package/package.json +20 -20
- package/platform/index.d.ts +104 -6
- package/portal/index.d.ts +325 -5
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/utils/build-component.js +2 -2
- package/schematics/utils/build-component.mjs +2 -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/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 -85
- 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/dialog/dialog-config.d.ts +0 -115
- package/dialog/dialog-container.d.ts +0 -95
- package/dialog/dialog-injectors.d.ts +0 -24
- package/dialog/dialog-module.d.ts +0 -10
- package/dialog/dialog-ref.d.ts +0 -64
- package/dialog/dialog.d.ts +0 -103
- package/dialog/dialog_public_index.d.ts +0 -4
- package/dialog/package.json +0 -9
- package/dialog/public-api.d.ts +0 -13
- 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 -159
- 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/menu/context-menu-trigger.d.ts +0 -98
- package/menu/menu-aim.d.ts +0 -107
- package/menu/menu-bar.d.ts +0 -52
- package/menu/menu-base.d.ts +0 -104
- package/menu/menu-errors.d.ts +0 -17
- package/menu/menu-group.d.ts +0 -8
- package/menu/menu-interface.d.ts +0 -25
- package/menu/menu-item-checkbox.d.ts +0 -18
- package/menu/menu-item-radio.d.ts +0 -59
- package/menu/menu-item-selectable.d.ts +0 -21
- package/menu/menu-item.d.ts +0 -140
- package/menu/menu-module.d.ts +0 -17
- package/menu/menu-stack.d.ts +0 -122
- package/menu/menu-trigger-base.d.ts +0 -77
- package/menu/menu-trigger.d.ts +0 -104
- package/menu/menu.d.ts +0 -60
- package/menu/menu_public_index.d.ts +0 -4
- package/menu/package.json +0 -9
- package/menu/pointer-focus-tracker.d.ts +0 -47
- package/menu/public-api.d.ts +0 -23
- 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 -145
- package/overlay/overlay-reference.d.ts +0 -38
- package/overlay/overlay.d.ts +0 -76
- 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 -282
- 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 -71
- 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 -490
- 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/dialog/package.json
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@angular/cdk/dialog",
|
|
3
|
-
"fesm2020": "../fesm2020/dialog.mjs",
|
|
4
|
-
"fesm2015": "../fesm2015/dialog.mjs",
|
|
5
|
-
"esm2020": "../esm2020/dialog/dialog_public_index.mjs",
|
|
6
|
-
"typings": "./dialog_public_index.d.ts",
|
|
7
|
-
"module": "../fesm2015/dialog.mjs",
|
|
8
|
-
"es2020": "../fesm2020/dialog.mjs"
|
|
9
|
-
}
|
package/dialog/public-api.d.ts
DELETED
|
@@ -1,13 +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
|
-
export * from './dialog-container';
|
|
9
|
-
export * from './dialog-config';
|
|
10
|
-
export * from './dialog-ref';
|
|
11
|
-
export * from './dialog';
|
|
12
|
-
export * from './dialog-module';
|
|
13
|
-
export * from './dialog-injectors';
|
|
@@ -1,38 +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
|
-
/** Gets a mutable version of an element's bounding `ClientRect`. */
|
|
9
|
-
export declare function getMutableClientRect(element: Element): ClientRect;
|
|
10
|
-
/**
|
|
11
|
-
* Checks whether some coordinates are within a `ClientRect`.
|
|
12
|
-
* @param clientRect ClientRect that is being checked.
|
|
13
|
-
* @param x Coordinates along the X axis.
|
|
14
|
-
* @param y Coordinates along the Y axis.
|
|
15
|
-
*/
|
|
16
|
-
export declare function isInsideClientRect(clientRect: ClientRect, x: number, y: number): boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Updates the top/left positions of a `ClientRect`, as well as their bottom/right counterparts.
|
|
19
|
-
* @param clientRect `ClientRect` that should be updated.
|
|
20
|
-
* @param top Amount to add to the `top` position.
|
|
21
|
-
* @param left Amount to add to the `left` position.
|
|
22
|
-
*/
|
|
23
|
-
export declare function adjustClientRect(clientRect: {
|
|
24
|
-
top: number;
|
|
25
|
-
bottom: number;
|
|
26
|
-
left: number;
|
|
27
|
-
right: number;
|
|
28
|
-
width: number;
|
|
29
|
-
height: number;
|
|
30
|
-
}, top: number, left: number): void;
|
|
31
|
-
/**
|
|
32
|
-
* Checks whether the pointer coordinates are close to a ClientRect.
|
|
33
|
-
* @param rect ClientRect to check against.
|
|
34
|
-
* @param threshold Threshold around the ClientRect.
|
|
35
|
-
* @param pointerX Coordinates along the X axis.
|
|
36
|
-
* @param pointerY Coordinates along the Y axis.
|
|
37
|
-
*/
|
|
38
|
-
export declare function isPointerNearClientRect(rect: ClientRect, threshold: number, pointerX: number, pointerY: number): boolean;
|
|
@@ -1,9 +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
|
-
/** Creates a deep clone of an element. */
|
|
9
|
-
export declare function deepCloneNode(node: HTMLElement): HTMLElement;
|
|
@@ -1,13 +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
|
-
* Asserts that a particular node is an element.
|
|
10
|
-
* @param node Node to be checked.
|
|
11
|
-
* @param name Name to attach to the error message.
|
|
12
|
-
*/
|
|
13
|
-
export declare function assertElementNode(node: Node, name: string): asserts node is HTMLElement;
|
|
@@ -1,43 +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 { InjectionToken } from '@angular/core';
|
|
9
|
-
import { DragRefConfig, Point, DragRef } from '../drag-ref';
|
|
10
|
-
/** Possible values that can be used to configure the drag start delay. */
|
|
11
|
-
export declare type DragStartDelay = number | {
|
|
12
|
-
touch: number;
|
|
13
|
-
mouse: number;
|
|
14
|
-
};
|
|
15
|
-
/** Possible axis along which dragging can be locked. */
|
|
16
|
-
export declare type DragAxis = 'x' | 'y';
|
|
17
|
-
/** Function that can be used to constrain the position of a dragged element. */
|
|
18
|
-
export declare type DragConstrainPosition = (point: Point, dragRef: DragRef) => Point;
|
|
19
|
-
/** Possible orientations for a drop list. */
|
|
20
|
-
export declare type DropListOrientation = 'horizontal' | 'vertical';
|
|
21
|
-
/**
|
|
22
|
-
* Injection token that can be used to configure the
|
|
23
|
-
* behavior of the drag&drop-related components.
|
|
24
|
-
*/
|
|
25
|
-
export declare const CDK_DRAG_CONFIG: InjectionToken<DragDropConfig>;
|
|
26
|
-
/**
|
|
27
|
-
* Object that can be used to configure the drag
|
|
28
|
-
* items and drop lists within a module or a component.
|
|
29
|
-
*/
|
|
30
|
-
export interface DragDropConfig extends Partial<DragRefConfig> {
|
|
31
|
-
lockAxis?: DragAxis;
|
|
32
|
-
dragStartDelay?: DragStartDelay;
|
|
33
|
-
constrainPosition?: DragConstrainPosition;
|
|
34
|
-
previewClass?: string | string[];
|
|
35
|
-
boundaryElement?: string;
|
|
36
|
-
rootElementSelector?: string;
|
|
37
|
-
draggingDisabled?: boolean;
|
|
38
|
-
sortingDisabled?: boolean;
|
|
39
|
-
listAutoScrollDisabled?: boolean;
|
|
40
|
-
listOrientation?: DropListOrientation;
|
|
41
|
-
zIndex?: number;
|
|
42
|
-
previewContainer?: 'global' | 'parent';
|
|
43
|
-
}
|
|
@@ -1,33 +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 { BooleanInput } from '@angular/cdk/coercion';
|
|
9
|
-
import { ElementRef, InjectionToken, OnDestroy } from '@angular/core';
|
|
10
|
-
import { Subject } from 'rxjs';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
/**
|
|
13
|
-
* Injection token that can be used to reference instances of `CdkDragHandle`. It serves as
|
|
14
|
-
* alternative token to the actual `CdkDragHandle` class which could cause unnecessary
|
|
15
|
-
* retention of the class and its directive metadata.
|
|
16
|
-
*/
|
|
17
|
-
export declare const CDK_DRAG_HANDLE: InjectionToken<CdkDragHandle>;
|
|
18
|
-
/** Handle that can be used to drag a CdkDrag instance. */
|
|
19
|
-
export declare class CdkDragHandle implements OnDestroy {
|
|
20
|
-
element: ElementRef<HTMLElement>;
|
|
21
|
-
/** Closest parent draggable instance. */
|
|
22
|
-
_parentDrag: {} | undefined;
|
|
23
|
-
/** Emits when the state of the handle has changed. */
|
|
24
|
-
readonly _stateChanges: Subject<CdkDragHandle>;
|
|
25
|
-
/** Whether starting to drag through this handle is disabled. */
|
|
26
|
-
get disabled(): boolean;
|
|
27
|
-
set disabled(value: BooleanInput);
|
|
28
|
-
private _disabled;
|
|
29
|
-
constructor(element: ElementRef<HTMLElement>, parentDrag?: any);
|
|
30
|
-
ngOnDestroy(): void;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDragHandle, [null, { optional: true; skipSelf: true; }]>;
|
|
32
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDragHandle, "[cdkDragHandle]", never, { "disabled": "cdkDragHandleDisabled"; }, {}, never, never, false>;
|
|
33
|
-
}
|
|
@@ -1,27 +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 { TemplateRef, InjectionToken } from '@angular/core';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* Injection token that can be used to reference instances of `CdkDragPlaceholder`. It serves as
|
|
12
|
-
* alternative token to the actual `CdkDragPlaceholder` class which could cause unnecessary
|
|
13
|
-
* retention of the class and its directive metadata.
|
|
14
|
-
*/
|
|
15
|
-
export declare const CDK_DRAG_PLACEHOLDER: InjectionToken<CdkDragPlaceholder<any>>;
|
|
16
|
-
/**
|
|
17
|
-
* Element that will be used as a template for the placeholder of a CdkDrag when
|
|
18
|
-
* it is being dragged. The placeholder is displayed in place of the element being dragged.
|
|
19
|
-
*/
|
|
20
|
-
export declare class CdkDragPlaceholder<T = any> {
|
|
21
|
-
templateRef: TemplateRef<T>;
|
|
22
|
-
/** Context data to be added to the placeholder template instance. */
|
|
23
|
-
data: T;
|
|
24
|
-
constructor(templateRef: TemplateRef<T>);
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDragPlaceholder<any>, never>;
|
|
26
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDragPlaceholder<any>, "ng-template[cdkDragPlaceholder]", never, { "data": "data"; }, {}, never, never, false>;
|
|
27
|
-
}
|
|
@@ -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
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
9
|
-
import { InjectionToken, TemplateRef } from '@angular/core';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
/**
|
|
12
|
-
* Injection token that can be used to reference instances of `CdkDragPreview`. It serves as
|
|
13
|
-
* alternative token to the actual `CdkDragPreview` class which could cause unnecessary
|
|
14
|
-
* retention of the class and its directive metadata.
|
|
15
|
-
*/
|
|
16
|
-
export declare const CDK_DRAG_PREVIEW: InjectionToken<CdkDragPreview<any>>;
|
|
17
|
-
/**
|
|
18
|
-
* Element that will be used as a template for the preview
|
|
19
|
-
* of a CdkDrag when it is being dragged.
|
|
20
|
-
*/
|
|
21
|
-
export declare class CdkDragPreview<T = any> {
|
|
22
|
-
templateRef: TemplateRef<T>;
|
|
23
|
-
/** Context data to be added to the preview template instance. */
|
|
24
|
-
data: T;
|
|
25
|
-
/** Whether the preview should preserve the same size as the item that is being dragged. */
|
|
26
|
-
get matchSize(): boolean;
|
|
27
|
-
set matchSize(value: BooleanInput);
|
|
28
|
-
private _matchSize;
|
|
29
|
-
constructor(templateRef: TemplateRef<T>);
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDragPreview<any>, never>;
|
|
31
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDragPreview<any>, "ng-template[cdkDragPreview]", never, { "data": "data"; "matchSize": "matchSize"; }, {}, never, never, false>;
|
|
32
|
-
}
|
|
@@ -1,159 +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 { Directionality } from '@angular/cdk/bidi';
|
|
9
|
-
import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnDestroy, QueryList, ViewContainerRef, OnChanges, SimpleChanges, ChangeDetectorRef } from '@angular/core';
|
|
10
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
11
|
-
import { Observable } from 'rxjs';
|
|
12
|
-
import { CdkDragDrop, CdkDragEnd, CdkDragEnter, CdkDragExit, CdkDragMove, CdkDragStart, CdkDragRelease } from '../drag-events';
|
|
13
|
-
import { CdkDragHandle } from './drag-handle';
|
|
14
|
-
import { CdkDragPlaceholder } from './drag-placeholder';
|
|
15
|
-
import { CdkDragPreview } from './drag-preview';
|
|
16
|
-
import { DragRef, Point, PreviewContainer } from '../drag-ref';
|
|
17
|
-
import { CdkDropListInternal as CdkDropList } from './drop-list';
|
|
18
|
-
import { DragDrop } from '../drag-drop';
|
|
19
|
-
import { DragDropConfig, DragStartDelay, DragAxis } from './config';
|
|
20
|
-
import * as i0 from "@angular/core";
|
|
21
|
-
/** Element that can be moved inside a CdkDropList container. */
|
|
22
|
-
export declare class CdkDrag<T = any> implements AfterViewInit, OnChanges, OnDestroy {
|
|
23
|
-
/** Element that the draggable is attached to. */
|
|
24
|
-
element: ElementRef<HTMLElement>;
|
|
25
|
-
/** Droppable container that the draggable is a part of. */
|
|
26
|
-
dropContainer: CdkDropList;
|
|
27
|
-
private _ngZone;
|
|
28
|
-
private _viewContainerRef;
|
|
29
|
-
private _dir;
|
|
30
|
-
private _changeDetectorRef;
|
|
31
|
-
private _selfHandle?;
|
|
32
|
-
private _parentDrag?;
|
|
33
|
-
private readonly _destroyed;
|
|
34
|
-
private static _dragInstances;
|
|
35
|
-
/** Reference to the underlying drag instance. */
|
|
36
|
-
_dragRef: DragRef<CdkDrag<T>>;
|
|
37
|
-
/** Elements that can be used to drag the draggable item. */
|
|
38
|
-
_handles: QueryList<CdkDragHandle>;
|
|
39
|
-
/** Element that will be used as a template to create the draggable item's preview. */
|
|
40
|
-
_previewTemplate: CdkDragPreview;
|
|
41
|
-
/** Template for placeholder element rendered to show where a draggable would be dropped. */
|
|
42
|
-
_placeholderTemplate: CdkDragPlaceholder;
|
|
43
|
-
/** Arbitrary data to attach to this drag instance. */
|
|
44
|
-
data: T;
|
|
45
|
-
/** Locks the position of the dragged element along the specified axis. */
|
|
46
|
-
lockAxis: DragAxis;
|
|
47
|
-
/**
|
|
48
|
-
* Selector that will be used to determine the root draggable element, starting from
|
|
49
|
-
* the `cdkDrag` element and going up the DOM. Passing an alternate root element is useful
|
|
50
|
-
* when trying to enable dragging on an element that you might not have access to.
|
|
51
|
-
*/
|
|
52
|
-
rootElementSelector: string;
|
|
53
|
-
/**
|
|
54
|
-
* Node or selector that will be used to determine the element to which the draggable's
|
|
55
|
-
* position will be constrained. If a string is passed in, it'll be used as a selector that
|
|
56
|
-
* will be matched starting from the element's parent and going up the DOM until a match
|
|
57
|
-
* has been found.
|
|
58
|
-
*/
|
|
59
|
-
boundaryElement: string | ElementRef<HTMLElement> | HTMLElement;
|
|
60
|
-
/**
|
|
61
|
-
* Amount of milliseconds to wait after the user has put their
|
|
62
|
-
* pointer down before starting to drag the element.
|
|
63
|
-
*/
|
|
64
|
-
dragStartDelay: DragStartDelay;
|
|
65
|
-
/**
|
|
66
|
-
* Sets the position of a `CdkDrag` that is outside of a drop container.
|
|
67
|
-
* Can be used to restore the element's position for a returning user.
|
|
68
|
-
*/
|
|
69
|
-
freeDragPosition: Point;
|
|
70
|
-
/** Whether starting to drag this element is disabled. */
|
|
71
|
-
get disabled(): boolean;
|
|
72
|
-
set disabled(value: BooleanInput);
|
|
73
|
-
private _disabled;
|
|
74
|
-
/**
|
|
75
|
-
* Function that can be used to customize the logic of how the position of the drag item
|
|
76
|
-
* is limited while it's being dragged. Gets called with a point containing the current position
|
|
77
|
-
* of the user's pointer on the page and should return a point describing where the item should
|
|
78
|
-
* be rendered.
|
|
79
|
-
*/
|
|
80
|
-
constrainPosition?: (point: Point, dragRef: DragRef) => Point;
|
|
81
|
-
/** Class to be added to the preview element. */
|
|
82
|
-
previewClass: string | string[];
|
|
83
|
-
/**
|
|
84
|
-
* Configures the place into which the preview of the item will be inserted. Can be configured
|
|
85
|
-
* globally through `CDK_DROP_LIST`. Possible values:
|
|
86
|
-
* - `global` - Preview will be inserted at the bottom of the `<body>`. The advantage is that
|
|
87
|
-
* you don't have to worry about `overflow: hidden` or `z-index`, but the item won't retain
|
|
88
|
-
* its inherited styles.
|
|
89
|
-
* - `parent` - Preview will be inserted into the parent of the drag item. The advantage is that
|
|
90
|
-
* inherited styles will be preserved, but it may be clipped by `overflow: hidden` or not be
|
|
91
|
-
* visible due to `z-index`. Furthermore, the preview is going to have an effect over selectors
|
|
92
|
-
* like `:nth-child` and some flexbox configurations.
|
|
93
|
-
* - `ElementRef<HTMLElement> | HTMLElement` - Preview will be inserted into a specific element.
|
|
94
|
-
* Same advantages and disadvantages as `parent`.
|
|
95
|
-
*/
|
|
96
|
-
previewContainer: PreviewContainer;
|
|
97
|
-
/** Emits when the user starts dragging the item. */
|
|
98
|
-
readonly started: EventEmitter<CdkDragStart>;
|
|
99
|
-
/** Emits when the user has released a drag item, before any animations have started. */
|
|
100
|
-
readonly released: EventEmitter<CdkDragRelease>;
|
|
101
|
-
/** Emits when the user stops dragging an item in the container. */
|
|
102
|
-
readonly ended: EventEmitter<CdkDragEnd>;
|
|
103
|
-
/** Emits when the user has moved the item into a new container. */
|
|
104
|
-
readonly entered: EventEmitter<CdkDragEnter<any>>;
|
|
105
|
-
/** Emits when the user removes the item its container by dragging it into another container. */
|
|
106
|
-
readonly exited: EventEmitter<CdkDragExit<any>>;
|
|
107
|
-
/** Emits when the user drops the item inside a container. */
|
|
108
|
-
readonly dropped: EventEmitter<CdkDragDrop<any>>;
|
|
109
|
-
/**
|
|
110
|
-
* Emits as the user is dragging the item. Use with caution,
|
|
111
|
-
* because this event will fire for every pixel that the user has dragged.
|
|
112
|
-
*/
|
|
113
|
-
readonly moved: Observable<CdkDragMove<T>>;
|
|
114
|
-
constructor(
|
|
115
|
-
/** Element that the draggable is attached to. */
|
|
116
|
-
element: ElementRef<HTMLElement>,
|
|
117
|
-
/** Droppable container that the draggable is a part of. */
|
|
118
|
-
dropContainer: CdkDropList,
|
|
119
|
-
/**
|
|
120
|
-
* @deprecated `_document` parameter no longer being used and will be removed.
|
|
121
|
-
* @breaking-change 12.0.0
|
|
122
|
-
*/
|
|
123
|
-
_document: any, _ngZone: NgZone, _viewContainerRef: ViewContainerRef, config: DragDropConfig, _dir: Directionality, dragDrop: DragDrop, _changeDetectorRef: ChangeDetectorRef, _selfHandle?: CdkDragHandle | undefined, _parentDrag?: CdkDrag<any> | undefined);
|
|
124
|
-
/**
|
|
125
|
-
* Returns the element that is being used as a placeholder
|
|
126
|
-
* while the current element is being dragged.
|
|
127
|
-
*/
|
|
128
|
-
getPlaceholderElement(): HTMLElement;
|
|
129
|
-
/** Returns the root draggable element. */
|
|
130
|
-
getRootElement(): HTMLElement;
|
|
131
|
-
/** Resets a standalone drag item to its initial position. */
|
|
132
|
-
reset(): void;
|
|
133
|
-
/**
|
|
134
|
-
* Gets the pixel coordinates of the draggable outside of a drop container.
|
|
135
|
-
*/
|
|
136
|
-
getFreeDragPosition(): Readonly<Point>;
|
|
137
|
-
/**
|
|
138
|
-
* Sets the current position in pixels the draggable outside of a drop container.
|
|
139
|
-
* @param value New position to be set.
|
|
140
|
-
*/
|
|
141
|
-
setFreeDragPosition(value: Point): void;
|
|
142
|
-
ngAfterViewInit(): void;
|
|
143
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
144
|
-
ngOnDestroy(): void;
|
|
145
|
-
/** Syncs the root element with the `DragRef`. */
|
|
146
|
-
private _updateRootElement;
|
|
147
|
-
/** Gets the boundary element, based on the `boundaryElement` value. */
|
|
148
|
-
private _getBoundaryElement;
|
|
149
|
-
/** Syncs the inputs of the CdkDrag with the options of the underlying DragRef. */
|
|
150
|
-
private _syncInputs;
|
|
151
|
-
/** Handles the events from the underlying `DragRef`. */
|
|
152
|
-
private _handleEvents;
|
|
153
|
-
/** Assigns the default input values based on a provided config object. */
|
|
154
|
-
private _assignDefaults;
|
|
155
|
-
/** Sets up the listener that syncs the handles with the drag ref. */
|
|
156
|
-
private _setupHandlesListener;
|
|
157
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDrag<any>, [null, { optional: true; skipSelf: true; }, null, null, null, { optional: true; }, { optional: true; }, null, null, { optional: true; self: true; }, { optional: true; skipSelf: true; }]>;
|
|
158
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDrag<any>, "[cdkDrag]", ["cdkDrag"], { "data": "cdkDragData"; "lockAxis": "cdkDragLockAxis"; "rootElementSelector": "cdkDragRootElement"; "boundaryElement": "cdkDragBoundary"; "dragStartDelay": "cdkDragStartDelay"; "freeDragPosition": "cdkDragFreeDragPosition"; "disabled": "cdkDragDisabled"; "constrainPosition": "cdkDragConstrainPosition"; "previewClass": "cdkDragPreviewClass"; "previewContainer": "cdkDragPreviewContainer"; }, { "started": "cdkDragStarted"; "released": "cdkDragReleased"; "ended": "cdkDragEnded"; "entered": "cdkDragEntered"; "exited": "cdkDragExited"; "dropped": "cdkDragDropped"; "moved": "cdkDragMoved"; }, ["_previewTemplate", "_placeholderTemplate", "_handles"], never, false>;
|
|
159
|
-
}
|
|
@@ -1,33 +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 { OnDestroy, InjectionToken } from '@angular/core';
|
|
9
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
/**
|
|
12
|
-
* Injection token that can be used to reference instances of `CdkDropListGroup`. It serves as
|
|
13
|
-
* alternative token to the actual `CdkDropListGroup` class which could cause unnecessary
|
|
14
|
-
* retention of the class and its directive metadata.
|
|
15
|
-
*/
|
|
16
|
-
export declare const CDK_DROP_LIST_GROUP: InjectionToken<CdkDropListGroup<unknown>>;
|
|
17
|
-
/**
|
|
18
|
-
* Declaratively connects sibling `cdkDropList` instances together. All of the `cdkDropList`
|
|
19
|
-
* elements that are placed inside a `cdkDropListGroup` will be connected to each other
|
|
20
|
-
* automatically. Can be used as an alternative to the `cdkDropListConnectedTo` input
|
|
21
|
-
* from `cdkDropList`.
|
|
22
|
-
*/
|
|
23
|
-
export declare class CdkDropListGroup<T> implements OnDestroy {
|
|
24
|
-
/** Drop lists registered inside the group. */
|
|
25
|
-
readonly _items: Set<T>;
|
|
26
|
-
/** Whether starting a dragging sequence from inside this group is disabled. */
|
|
27
|
-
get disabled(): boolean;
|
|
28
|
-
set disabled(value: BooleanInput);
|
|
29
|
-
private _disabled;
|
|
30
|
-
ngOnDestroy(): void;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDropListGroup<any>, never>;
|
|
32
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDropListGroup<any>, "[cdkDropListGroup]", ["cdkDropListGroup"], { "disabled": "cdkDropListGroupDisabled"; }, {}, never, never, false>;
|
|
33
|
-
}
|
|
@@ -1,123 +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 { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
9
|
-
import { ElementRef, EventEmitter, OnDestroy, ChangeDetectorRef, InjectionToken } from '@angular/core';
|
|
10
|
-
import { Directionality } from '@angular/cdk/bidi';
|
|
11
|
-
import { ScrollDispatcher } from '@angular/cdk/scrolling';
|
|
12
|
-
import { CdkDrag } from './drag';
|
|
13
|
-
import { CdkDragDrop, CdkDragEnter, CdkDragExit, CdkDragSortEvent } from '../drag-events';
|
|
14
|
-
import { CdkDropListGroup } from './drop-list-group';
|
|
15
|
-
import { DropListRef } from '../drop-list-ref';
|
|
16
|
-
import { DragDrop } from '../drag-drop';
|
|
17
|
-
import { DropListOrientation, DragAxis, DragDropConfig } from './config';
|
|
18
|
-
import * as i0 from "@angular/core";
|
|
19
|
-
/**
|
|
20
|
-
* Internal compile-time-only representation of a `CdkDropList`.
|
|
21
|
-
* Used to avoid circular import issues between the `CdkDropList` and the `CdkDrag`.
|
|
22
|
-
* @docs-private
|
|
23
|
-
*/
|
|
24
|
-
export interface CdkDropListInternal extends CdkDropList {
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Injection token that can be used to reference instances of `CdkDropList`. It serves as
|
|
28
|
-
* alternative token to the actual `CdkDropList` class which could cause unnecessary
|
|
29
|
-
* retention of the class and its directive metadata.
|
|
30
|
-
*/
|
|
31
|
-
export declare const CDK_DROP_LIST: InjectionToken<CdkDropList<any>>;
|
|
32
|
-
/** Container that wraps a set of draggable items. */
|
|
33
|
-
export declare class CdkDropList<T = any> implements OnDestroy {
|
|
34
|
-
/** Element that the drop list is attached to. */
|
|
35
|
-
element: ElementRef<HTMLElement>;
|
|
36
|
-
private _changeDetectorRef;
|
|
37
|
-
private _scrollDispatcher;
|
|
38
|
-
private _dir?;
|
|
39
|
-
private _group?;
|
|
40
|
-
/** Emits when the list has been destroyed. */
|
|
41
|
-
private readonly _destroyed;
|
|
42
|
-
/** Whether the element's scrollable parents have been resolved. */
|
|
43
|
-
private _scrollableParentsResolved;
|
|
44
|
-
/** Keeps track of the drop lists that are currently on the page. */
|
|
45
|
-
private static _dropLists;
|
|
46
|
-
/** Reference to the underlying drop list instance. */
|
|
47
|
-
_dropListRef: DropListRef<CdkDropList<T>>;
|
|
48
|
-
/**
|
|
49
|
-
* Other draggable containers that this container is connected to and into which the
|
|
50
|
-
* container's items can be transferred. Can either be references to other drop containers,
|
|
51
|
-
* or their unique IDs.
|
|
52
|
-
*/
|
|
53
|
-
connectedTo: (CdkDropList | string)[] | CdkDropList | string;
|
|
54
|
-
/** Arbitrary data to attach to this container. */
|
|
55
|
-
data: T;
|
|
56
|
-
/** Direction in which the list is oriented. */
|
|
57
|
-
orientation: DropListOrientation;
|
|
58
|
-
/**
|
|
59
|
-
* Unique ID for the drop zone. Can be used as a reference
|
|
60
|
-
* in the `connectedTo` of another `CdkDropList`.
|
|
61
|
-
*/
|
|
62
|
-
id: string;
|
|
63
|
-
/** Locks the position of the draggable elements inside the container along the specified axis. */
|
|
64
|
-
lockAxis: DragAxis;
|
|
65
|
-
/** Whether starting a dragging sequence from this container is disabled. */
|
|
66
|
-
get disabled(): boolean;
|
|
67
|
-
set disabled(value: BooleanInput);
|
|
68
|
-
private _disabled;
|
|
69
|
-
/** Whether sorting within this drop list is disabled. */
|
|
70
|
-
sortingDisabled: BooleanInput;
|
|
71
|
-
/**
|
|
72
|
-
* Function that is used to determine whether an item
|
|
73
|
-
* is allowed to be moved into a drop container.
|
|
74
|
-
*/
|
|
75
|
-
enterPredicate: (drag: CdkDrag, drop: CdkDropList) => boolean;
|
|
76
|
-
/** Functions that is used to determine whether an item can be sorted into a particular index. */
|
|
77
|
-
sortPredicate: (index: number, drag: CdkDrag, drop: CdkDropList) => boolean;
|
|
78
|
-
/** Whether to auto-scroll the view when the user moves their pointer close to the edges. */
|
|
79
|
-
autoScrollDisabled: BooleanInput;
|
|
80
|
-
/** Number of pixels to scroll for each frame when auto-scrolling an element. */
|
|
81
|
-
autoScrollStep: NumberInput;
|
|
82
|
-
/** Emits when the user drops an item inside the container. */
|
|
83
|
-
readonly dropped: EventEmitter<CdkDragDrop<T, any>>;
|
|
84
|
-
/**
|
|
85
|
-
* Emits when the user has moved a new drag item into this container.
|
|
86
|
-
*/
|
|
87
|
-
readonly entered: EventEmitter<CdkDragEnter<T>>;
|
|
88
|
-
/**
|
|
89
|
-
* Emits when the user removes an item from the container
|
|
90
|
-
* by dragging it into another container.
|
|
91
|
-
*/
|
|
92
|
-
readonly exited: EventEmitter<CdkDragExit<T>>;
|
|
93
|
-
/** Emits as the user is swapping items while actively dragging. */
|
|
94
|
-
readonly sorted: EventEmitter<CdkDragSortEvent<T>>;
|
|
95
|
-
/**
|
|
96
|
-
* Keeps track of the items that are registered with this container. Historically we used to
|
|
97
|
-
* do this with a `ContentChildren` query, however queries don't handle transplanted views very
|
|
98
|
-
* well which means that we can't handle cases like dragging the headers of a `mat-table`
|
|
99
|
-
* correctly. What we do instead is to have the items register themselves with the container
|
|
100
|
-
* and then we sort them based on their position in the DOM.
|
|
101
|
-
*/
|
|
102
|
-
private _unsortedItems;
|
|
103
|
-
constructor(
|
|
104
|
-
/** Element that the drop list is attached to. */
|
|
105
|
-
element: ElementRef<HTMLElement>, dragDrop: DragDrop, _changeDetectorRef: ChangeDetectorRef, _scrollDispatcher: ScrollDispatcher, _dir?: Directionality | undefined, _group?: CdkDropListGroup<CdkDropList<any>> | undefined, config?: DragDropConfig);
|
|
106
|
-
/** Registers an items with the drop list. */
|
|
107
|
-
addItem(item: CdkDrag): void;
|
|
108
|
-
/** Removes an item from the drop list. */
|
|
109
|
-
removeItem(item: CdkDrag): void;
|
|
110
|
-
/** Gets the registered items in the list, sorted by their position in the DOM. */
|
|
111
|
-
getSortedItems(): CdkDrag[];
|
|
112
|
-
ngOnDestroy(): void;
|
|
113
|
-
/** Syncs the inputs of the CdkDropList with the options of the underlying DropListRef. */
|
|
114
|
-
private _setupInputSyncSubscription;
|
|
115
|
-
/** Handles events from the underlying DropListRef. */
|
|
116
|
-
private _handleEvents;
|
|
117
|
-
/** Assigns the default input values based on a provided config object. */
|
|
118
|
-
private _assignDefaults;
|
|
119
|
-
/** Syncs up the registered drag items with underlying drop list ref. */
|
|
120
|
-
private _syncItemsWithRef;
|
|
121
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDropList<any>, [null, null, null, null, { optional: true; }, { optional: true; skipSelf: true; }, { optional: true; }]>;
|
|
122
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDropList<any>, "[cdkDropList], cdk-drop-list", ["cdkDropList"], { "connectedTo": "cdkDropListConnectedTo"; "data": "cdkDropListData"; "orientation": "cdkDropListOrientation"; "id": "id"; "lockAxis": "cdkDropListLockAxis"; "disabled": "cdkDropListDisabled"; "sortingDisabled": "cdkDropListSortingDisabled"; "enterPredicate": "cdkDropListEnterPredicate"; "sortPredicate": "cdkDropListSortPredicate"; "autoScrollDisabled": "cdkDropListAutoScrollDisabled"; "autoScrollStep": "cdkDropListAutoScrollStep"; }, { "dropped": "cdkDropListDropped"; "entered": "cdkDropListEntered"; "exited": "cdkDropListExited"; "sorted": "cdkDropListSorted"; }, never, never, false>;
|
|
123
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./directives/drop-list";
|
|
3
|
-
import * as i2 from "./directives/drop-list-group";
|
|
4
|
-
import * as i3 from "./directives/drag";
|
|
5
|
-
import * as i4 from "./directives/drag-handle";
|
|
6
|
-
import * as i5 from "./directives/drag-preview";
|
|
7
|
-
import * as i6 from "./directives/drag-placeholder";
|
|
8
|
-
import * as i7 from "@angular/cdk/scrolling";
|
|
9
|
-
export declare class DragDropModule {
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DragDropModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DragDropModule, [typeof i1.CdkDropList, typeof i2.CdkDropListGroup, typeof i3.CdkDrag, typeof i4.CdkDragHandle, typeof i5.CdkDragPreview, typeof i6.CdkDragPlaceholder], never, [typeof i7.CdkScrollableModule, typeof i1.CdkDropList, typeof i2.CdkDropListGroup, typeof i3.CdkDrag, typeof i4.CdkDragHandle, typeof i5.CdkDragPreview, typeof i6.CdkDragPlaceholder]>;
|
|
12
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DragDropModule>;
|
|
13
|
-
}
|
|
@@ -1,89 +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 { NgZone, OnDestroy } from '@angular/core';
|
|
9
|
-
import { Observable, Subject } from 'rxjs';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
/**
|
|
12
|
-
* Service that keeps track of all the drag item and drop container
|
|
13
|
-
* instances, and manages global event listeners on the `document`.
|
|
14
|
-
* @docs-private
|
|
15
|
-
*/
|
|
16
|
-
export declare class DragDropRegistry<I extends {
|
|
17
|
-
isDragging(): boolean;
|
|
18
|
-
}, C> implements OnDestroy {
|
|
19
|
-
private _ngZone;
|
|
20
|
-
private _document;
|
|
21
|
-
/** Registered drop container instances. */
|
|
22
|
-
private _dropInstances;
|
|
23
|
-
/** Registered drag item instances. */
|
|
24
|
-
private _dragInstances;
|
|
25
|
-
/** Drag item instances that are currently being dragged. */
|
|
26
|
-
private _activeDragInstances;
|
|
27
|
-
/** Keeps track of the event listeners that we've bound to the `document`. */
|
|
28
|
-
private _globalListeners;
|
|
29
|
-
/**
|
|
30
|
-
* Predicate function to check if an item is being dragged. Moved out into a property,
|
|
31
|
-
* because it'll be called a lot and we don't want to create a new function every time.
|
|
32
|
-
*/
|
|
33
|
-
private _draggingPredicate;
|
|
34
|
-
/**
|
|
35
|
-
* Emits the `touchmove` or `mousemove` events that are dispatched
|
|
36
|
-
* while the user is dragging a drag item instance.
|
|
37
|
-
*/
|
|
38
|
-
readonly pointerMove: Subject<TouchEvent | MouseEvent>;
|
|
39
|
-
/**
|
|
40
|
-
* Emits the `touchend` or `mouseup` events that are dispatched
|
|
41
|
-
* while the user is dragging a drag item instance.
|
|
42
|
-
*/
|
|
43
|
-
readonly pointerUp: Subject<TouchEvent | MouseEvent>;
|
|
44
|
-
/**
|
|
45
|
-
* Emits when the viewport has been scrolled while the user is dragging an item.
|
|
46
|
-
* @deprecated To be turned into a private member. Use the `scrolled` method instead.
|
|
47
|
-
* @breaking-change 13.0.0
|
|
48
|
-
*/
|
|
49
|
-
readonly scroll: Subject<Event>;
|
|
50
|
-
constructor(_ngZone: NgZone, _document: any);
|
|
51
|
-
/** Adds a drop container to the registry. */
|
|
52
|
-
registerDropContainer(drop: C): void;
|
|
53
|
-
/** Adds a drag item instance to the registry. */
|
|
54
|
-
registerDragItem(drag: I): void;
|
|
55
|
-
/** Removes a drop container from the registry. */
|
|
56
|
-
removeDropContainer(drop: C): void;
|
|
57
|
-
/** Removes a drag item instance from the registry. */
|
|
58
|
-
removeDragItem(drag: I): void;
|
|
59
|
-
/**
|
|
60
|
-
* Starts the dragging sequence for a drag instance.
|
|
61
|
-
* @param drag Drag instance which is being dragged.
|
|
62
|
-
* @param event Event that initiated the dragging.
|
|
63
|
-
*/
|
|
64
|
-
startDragging(drag: I, event: TouchEvent | MouseEvent): void;
|
|
65
|
-
/** Stops dragging a drag item instance. */
|
|
66
|
-
stopDragging(drag: I): void;
|
|
67
|
-
/** Gets whether a drag item instance is currently being dragged. */
|
|
68
|
-
isDragging(drag: I): boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Gets a stream that will emit when any element on the page is scrolled while an item is being
|
|
71
|
-
* dragged.
|
|
72
|
-
* @param shadowRoot Optional shadow root that the current dragging sequence started from.
|
|
73
|
-
* Top-level listeners won't pick up events coming from the shadow DOM so this parameter can
|
|
74
|
-
* be used to include an additional top-level listener at the shadow root level.
|
|
75
|
-
*/
|
|
76
|
-
scrolled(shadowRoot?: DocumentOrShadowRoot | null): Observable<Event>;
|
|
77
|
-
ngOnDestroy(): void;
|
|
78
|
-
/**
|
|
79
|
-
* Event listener that will prevent the default browser action while the user is dragging.
|
|
80
|
-
* @param event Event whose default action should be prevented.
|
|
81
|
-
*/
|
|
82
|
-
private _preventDefaultWhileDragging;
|
|
83
|
-
/** Event listener for `touchmove` that is bound even if no dragging is happening. */
|
|
84
|
-
private _persistentTouchmoveListener;
|
|
85
|
-
/** Clears out the global event listeners from the `document`. */
|
|
86
|
-
private _clearGlobalListeners;
|
|
87
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DragDropRegistry<any, any>, never>;
|
|
88
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DragDropRegistry<any, any>>;
|
|
89
|
-
}
|