@angular/cdk 14.0.0-next.9 → 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 +10 -10
- 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 +7 -7
- 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/overlay-position-builder.mjs +4 -4
- 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 +6 -2
- 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 +4 -4
- package/esm2020/scrolling/virtual-scroll-viewport.mjs +4 -4
- 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 +21 -21
- 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/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 +49 -49
- 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 +57 -42
- package/fesm2015/overlay.mjs.map +1 -1
- package/fesm2015/platform.mjs +10 -10
- package/fesm2015/platform.mjs.map +1 -1
- package/fesm2015/portal.mjs +21 -17
- package/fesm2015/portal.mjs.map +1 -1
- package/fesm2015/scrolling.mjs +31 -31
- package/fesm2015/scrolling.mjs.map +1 -1
- package/fesm2015/stepper.mjs +22 -22
- package/fesm2015/stepper.mjs.map +1 -1
- package/fesm2015/table.mjs +79 -79
- 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/text-field.mjs.map +1 -1
- package/fesm2015/tree.mjs +25 -25
- package/fesm2015/tree.mjs.map +1 -1
- package/fesm2020/a11y.mjs +49 -49
- 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 +57 -42
- package/fesm2020/overlay.mjs.map +1 -1
- package/fesm2020/platform.mjs +10 -10
- package/fesm2020/platform.mjs.map +1 -1
- package/fesm2020/portal.mjs +21 -17
- package/fesm2020/portal.mjs.map +1 -1
- package/fesm2020/scrolling.mjs +31 -31
- package/fesm2020/scrolling.mjs.map +1 -1
- package/fesm2020/stepper.mjs +22 -22
- package/fesm2020/stepper.mjs.map +1 -1
- package/fesm2020/table.mjs +79 -79
- 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/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/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/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 -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 -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
|
@@ -1,98 +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 { ElementDimensions, ModifierKeys, TestElement, TestKey, TextOptions, EventData } from '@angular/cdk/testing';
|
|
9
|
-
/** A `TestElement` implementation for unit tests. */
|
|
10
|
-
export declare class UnitTestElement implements TestElement {
|
|
11
|
-
readonly element: Element;
|
|
12
|
-
private _stabilize;
|
|
13
|
-
constructor(element: Element, _stabilize: () => Promise<void>);
|
|
14
|
-
/** Blur the element. */
|
|
15
|
-
blur(): Promise<void>;
|
|
16
|
-
/** Clear the element's input (for input and textarea elements only). */
|
|
17
|
-
clear(): Promise<void>;
|
|
18
|
-
/**
|
|
19
|
-
* Click the element at the default location for the current environment. If you need to guarantee
|
|
20
|
-
* the element is clicked at a specific location, consider using `click('center')` or
|
|
21
|
-
* `click(x, y)` instead.
|
|
22
|
-
*/
|
|
23
|
-
click(modifiers?: ModifierKeys): Promise<void>;
|
|
24
|
-
/** Click the element at the element's center. */
|
|
25
|
-
click(location: 'center', modifiers?: ModifierKeys): Promise<void>;
|
|
26
|
-
/**
|
|
27
|
-
* Click the element at the specified coordinates relative to the top-left of the element.
|
|
28
|
-
* @param relativeX Coordinate within the element, along the X-axis at which to click.
|
|
29
|
-
* @param relativeY Coordinate within the element, along the Y-axis at which to click.
|
|
30
|
-
* @param modifiers Modifier keys held while clicking
|
|
31
|
-
*/
|
|
32
|
-
click(relativeX: number, relativeY: number, modifiers?: ModifierKeys): Promise<void>;
|
|
33
|
-
/**
|
|
34
|
-
* Right clicks on the element at the specified coordinates relative to the top-left of it.
|
|
35
|
-
* @param relativeX Coordinate within the element, along the X-axis at which to click.
|
|
36
|
-
* @param relativeY Coordinate within the element, along the Y-axis at which to click.
|
|
37
|
-
* @param modifiers Modifier keys held while clicking
|
|
38
|
-
*/
|
|
39
|
-
rightClick(relativeX: number, relativeY: number, modifiers?: ModifierKeys): Promise<void>;
|
|
40
|
-
/** Focus the element. */
|
|
41
|
-
focus(): Promise<void>;
|
|
42
|
-
/** Get the computed value of the given CSS property for the element. */
|
|
43
|
-
getCssValue(property: string): Promise<string>;
|
|
44
|
-
/** Hovers the mouse over the element. */
|
|
45
|
-
hover(): Promise<void>;
|
|
46
|
-
/** Moves the mouse away from the element. */
|
|
47
|
-
mouseAway(): Promise<void>;
|
|
48
|
-
/**
|
|
49
|
-
* Sends the given string to the input as a series of key presses. Also fires input events
|
|
50
|
-
* and attempts to add the string to the Element's value. Note that this cannot
|
|
51
|
-
* reproduce native browser behavior for keyboard shortcuts such as Tab, Ctrl + A, etc.
|
|
52
|
-
*/
|
|
53
|
-
sendKeys(...keys: (string | TestKey)[]): Promise<void>;
|
|
54
|
-
/**
|
|
55
|
-
* Sends the given string to the input as a series of key presses. Also fires input events
|
|
56
|
-
* and attempts to add the string to the Element's value.
|
|
57
|
-
*/
|
|
58
|
-
sendKeys(modifiers: ModifierKeys, ...keys: (string | TestKey)[]): Promise<void>;
|
|
59
|
-
/**
|
|
60
|
-
* Gets the text from the element.
|
|
61
|
-
* @param options Options that affect what text is included.
|
|
62
|
-
*/
|
|
63
|
-
text(options?: TextOptions): Promise<string>;
|
|
64
|
-
/** Gets the value for the given attribute from the element. */
|
|
65
|
-
getAttribute(name: string): Promise<string | null>;
|
|
66
|
-
/** Checks whether the element has the given class. */
|
|
67
|
-
hasClass(name: string): Promise<boolean>;
|
|
68
|
-
/** Gets the dimensions of the element. */
|
|
69
|
-
getDimensions(): Promise<ElementDimensions>;
|
|
70
|
-
/** Gets the value of a property of an element. */
|
|
71
|
-
getProperty<T = any>(name: string): Promise<T>;
|
|
72
|
-
/** Sets the value of a property of an input. */
|
|
73
|
-
setInputValue(value: string): Promise<void>;
|
|
74
|
-
/** Selects the options at the specified indexes inside of a native `select` element. */
|
|
75
|
-
selectOptions(...optionIndexes: number[]): Promise<void>;
|
|
76
|
-
/** Checks whether this element matches the given selector. */
|
|
77
|
-
matchesSelector(selector: string): Promise<boolean>;
|
|
78
|
-
/** Checks whether the element is focused. */
|
|
79
|
-
isFocused(): Promise<boolean>;
|
|
80
|
-
/**
|
|
81
|
-
* Dispatches an event with a particular name.
|
|
82
|
-
* @param name Name of the event to be dispatched.
|
|
83
|
-
*/
|
|
84
|
-
dispatchEvent(name: string, data?: Record<string, EventData>): Promise<void>;
|
|
85
|
-
/**
|
|
86
|
-
* Dispatches a pointer event on the current element if the browser supports it.
|
|
87
|
-
* @param name Name of the pointer event to be dispatched.
|
|
88
|
-
* @param clientX Coordinate of the user's pointer along the X axis.
|
|
89
|
-
* @param clientY Coordinate of the user's pointer along the Y axis.
|
|
90
|
-
* @param button Mouse button that should be pressed when dispatching the event.
|
|
91
|
-
*/
|
|
92
|
-
private _dispatchPointerEventIfSupported;
|
|
93
|
-
/**
|
|
94
|
-
* Dispatches all the events that are part of a mouse event sequence
|
|
95
|
-
* and then emits a given primary event at the end, if speciifed.
|
|
96
|
-
*/
|
|
97
|
-
private _dispatchMouseEventSequence;
|
|
98
|
-
}
|
|
@@ -1,22 +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
|
-
/*
|
|
10
|
-
* Type definitions for "zone.js". We cannot reference the official types
|
|
11
|
-
* using a triple-slash types directive because the types would bring in
|
|
12
|
-
* the NodeJS types into the compilation unit. This would cause unexpected
|
|
13
|
-
* type checking failures. We just create minimal type definitions for Zone
|
|
14
|
-
* here and use these for our interceptor logic.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
declare interface Zone {
|
|
18
|
-
current: any;
|
|
19
|
-
}
|
|
20
|
-
declare const Zone: Zone | undefined;
|
|
21
|
-
declare type ZoneDelegate = Object;
|
|
22
|
-
declare type HasTaskState = {microTask: boolean; macroTask: boolean};
|
|
@@ -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
|
-
* Gets text of element excluding certain selectors within the element.
|
|
10
|
-
* @param element Element to get text from,
|
|
11
|
-
* @param excludeSelector Selector identifying which elements to exclude,
|
|
12
|
-
*/
|
|
13
|
-
export declare function _getTextWithExcludedElements(element: Element, excludeSelector: string): string;
|
package/text-field/autofill.d.ts
DELETED
|
@@ -1,66 +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 { Platform } from '@angular/cdk/platform';
|
|
9
|
-
import { ElementRef, EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core';
|
|
10
|
-
import { Observable } from 'rxjs';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
/** An event that is emitted when the autofill state of an input changes. */
|
|
13
|
-
export declare type AutofillEvent = {
|
|
14
|
-
/** The element whose autofill state changes. */
|
|
15
|
-
target: Element;
|
|
16
|
-
/** Whether the element is currently autofilled. */
|
|
17
|
-
isAutofilled: boolean;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* An injectable service that can be used to monitor the autofill state of an input.
|
|
21
|
-
* Based on the following blog post:
|
|
22
|
-
* https://medium.com/@brunn/detecting-autofilled-fields-in-javascript-aed598d25da7
|
|
23
|
-
*/
|
|
24
|
-
export declare class AutofillMonitor implements OnDestroy {
|
|
25
|
-
private _platform;
|
|
26
|
-
private _ngZone;
|
|
27
|
-
private _monitoredElements;
|
|
28
|
-
constructor(_platform: Platform, _ngZone: NgZone);
|
|
29
|
-
/**
|
|
30
|
-
* Monitor for changes in the autofill state of the given input element.
|
|
31
|
-
* @param element The element to monitor.
|
|
32
|
-
* @return A stream of autofill state changes.
|
|
33
|
-
*/
|
|
34
|
-
monitor(element: Element): Observable<AutofillEvent>;
|
|
35
|
-
/**
|
|
36
|
-
* Monitor for changes in the autofill state of the given input element.
|
|
37
|
-
* @param element The element to monitor.
|
|
38
|
-
* @return A stream of autofill state changes.
|
|
39
|
-
*/
|
|
40
|
-
monitor(element: ElementRef<Element>): Observable<AutofillEvent>;
|
|
41
|
-
/**
|
|
42
|
-
* Stop monitoring the autofill state of the given input element.
|
|
43
|
-
* @param element The element to stop monitoring.
|
|
44
|
-
*/
|
|
45
|
-
stopMonitoring(element: Element): void;
|
|
46
|
-
/**
|
|
47
|
-
* Stop monitoring the autofill state of the given input element.
|
|
48
|
-
* @param element The element to stop monitoring.
|
|
49
|
-
*/
|
|
50
|
-
stopMonitoring(element: ElementRef<Element>): void;
|
|
51
|
-
ngOnDestroy(): void;
|
|
52
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AutofillMonitor, never>;
|
|
53
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AutofillMonitor>;
|
|
54
|
-
}
|
|
55
|
-
/** A directive that can be used to monitor the autofill state of an input. */
|
|
56
|
-
export declare class CdkAutofill implements OnDestroy, OnInit {
|
|
57
|
-
private _elementRef;
|
|
58
|
-
private _autofillMonitor;
|
|
59
|
-
/** Emits when the autofill state of the element changes. */
|
|
60
|
-
readonly cdkAutofill: EventEmitter<AutofillEvent>;
|
|
61
|
-
constructor(_elementRef: ElementRef<HTMLElement>, _autofillMonitor: AutofillMonitor);
|
|
62
|
-
ngOnInit(): void;
|
|
63
|
-
ngOnDestroy(): void;
|
|
64
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkAutofill, never>;
|
|
65
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAutofill, "[cdkAutofill]", never, {}, { "cdkAutofill": "cdkAutofill"; }, never>;
|
|
66
|
-
}
|
package/text-field/autosize.d.ts
DELETED
|
@@ -1,95 +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, AfterViewInit, DoCheck, OnDestroy, NgZone } from '@angular/core';
|
|
10
|
-
import { Platform } from '@angular/cdk/platform';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
/** Directive to automatically resize a textarea to fit its content. */
|
|
13
|
-
export declare class CdkTextareaAutosize implements AfterViewInit, DoCheck, OnDestroy {
|
|
14
|
-
private _elementRef;
|
|
15
|
-
private _platform;
|
|
16
|
-
private _ngZone;
|
|
17
|
-
/** Keep track of the previous textarea value to avoid resizing when the value hasn't changed. */
|
|
18
|
-
private _previousValue?;
|
|
19
|
-
private _initialHeight;
|
|
20
|
-
private readonly _destroyed;
|
|
21
|
-
private _minRows;
|
|
22
|
-
private _maxRows;
|
|
23
|
-
private _enabled;
|
|
24
|
-
/**
|
|
25
|
-
* Value of minRows as of last resize. If the minRows has decreased, the
|
|
26
|
-
* height of the textarea needs to be recomputed to reflect the new minimum. The maxHeight
|
|
27
|
-
* does not have the same problem because it does not affect the textarea's scrollHeight.
|
|
28
|
-
*/
|
|
29
|
-
private _previousMinRows;
|
|
30
|
-
private _textareaElement;
|
|
31
|
-
/** Minimum amount of rows in the textarea. */
|
|
32
|
-
get minRows(): number;
|
|
33
|
-
set minRows(value: NumberInput);
|
|
34
|
-
/** Maximum amount of rows in the textarea. */
|
|
35
|
-
get maxRows(): number;
|
|
36
|
-
set maxRows(value: NumberInput);
|
|
37
|
-
/** Whether autosizing is enabled or not */
|
|
38
|
-
get enabled(): boolean;
|
|
39
|
-
set enabled(value: BooleanInput);
|
|
40
|
-
get placeholder(): string;
|
|
41
|
-
set placeholder(value: string);
|
|
42
|
-
/** Cached height of a textarea with a single row. */
|
|
43
|
-
private _cachedLineHeight;
|
|
44
|
-
/** Cached height of a textarea with only the placeholder. */
|
|
45
|
-
private _cachedPlaceholderHeight?;
|
|
46
|
-
/** Used to reference correct document/window */
|
|
47
|
-
protected _document?: Document;
|
|
48
|
-
private _hasFocus;
|
|
49
|
-
private _isViewInited;
|
|
50
|
-
constructor(_elementRef: ElementRef<HTMLElement>, _platform: Platform, _ngZone: NgZone,
|
|
51
|
-
/** @breaking-change 11.0.0 make document required */
|
|
52
|
-
document?: any);
|
|
53
|
-
/** Sets the minimum height of the textarea as determined by minRows. */
|
|
54
|
-
_setMinHeight(): void;
|
|
55
|
-
/** Sets the maximum height of the textarea as determined by maxRows. */
|
|
56
|
-
_setMaxHeight(): void;
|
|
57
|
-
ngAfterViewInit(): void;
|
|
58
|
-
ngOnDestroy(): void;
|
|
59
|
-
/**
|
|
60
|
-
* Cache the height of a single-row textarea if it has not already been cached.
|
|
61
|
-
*
|
|
62
|
-
* We need to know how large a single "row" of a textarea is in order to apply minRows and
|
|
63
|
-
* maxRows. For the initial version, we will assume that the height of a single line in the
|
|
64
|
-
* textarea does not ever change.
|
|
65
|
-
*/
|
|
66
|
-
private _cacheTextareaLineHeight;
|
|
67
|
-
private _measureScrollHeight;
|
|
68
|
-
private _cacheTextareaPlaceholderHeight;
|
|
69
|
-
/** Handles `focus` and `blur` events. */
|
|
70
|
-
private _handleFocusEvent;
|
|
71
|
-
ngDoCheck(): void;
|
|
72
|
-
/**
|
|
73
|
-
* Resize the textarea to fit its content.
|
|
74
|
-
* @param force Whether to force a height recalculation. By default the height will be
|
|
75
|
-
* recalculated only if the value changed since the last call.
|
|
76
|
-
*/
|
|
77
|
-
resizeToFitContent(force?: boolean): void;
|
|
78
|
-
/**
|
|
79
|
-
* Resets the textarea to its original size
|
|
80
|
-
*/
|
|
81
|
-
reset(): void;
|
|
82
|
-
_noopInputHandler(): void;
|
|
83
|
-
/** Access injected document if available or fallback to global document reference */
|
|
84
|
-
private _getDocument;
|
|
85
|
-
/** Use defaultView of injected document if available or fallback to global window reference */
|
|
86
|
-
private _getWindow;
|
|
87
|
-
/**
|
|
88
|
-
* Scrolls a textarea to the caret position. On Firefox resizing the textarea will
|
|
89
|
-
* prevent it from scrolling to the caret position. We need to re-set the selection
|
|
90
|
-
* in order for it to scroll to the proper position.
|
|
91
|
-
*/
|
|
92
|
-
private _scrollToCaretPosition;
|
|
93
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkTextareaAutosize, [null, null, null, { optional: true; }]>;
|
|
94
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTextareaAutosize, "textarea[cdkTextareaAutosize]", ["cdkTextareaAutosize"], { "minRows": "cdkAutosizeMinRows"; "maxRows": "cdkAutosizeMaxRows"; "enabled": "cdkTextareaAutosize"; "placeholder": "placeholder"; }, {}, never>;
|
|
95
|
-
}
|
package/text-field/package.json
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@angular/cdk/text-field",
|
|
3
|
-
"fesm2020": "../fesm2020/text-field.mjs",
|
|
4
|
-
"fesm2015": "../fesm2015/text-field.mjs",
|
|
5
|
-
"esm2020": "../esm2020/text-field/text-field_public_index.mjs",
|
|
6
|
-
"typings": "./text-field_public_index.d.ts",
|
|
7
|
-
"module": "../fesm2015/text-field.mjs",
|
|
8
|
-
"es2020": "../fesm2020/text-field.mjs"
|
|
9
|
-
}
|
|
@@ -1,10 +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 './autofill';
|
|
9
|
-
export * from './autosize';
|
|
10
|
-
export * from './text-field-module';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./autofill";
|
|
3
|
-
import * as i2 from "./autosize";
|
|
4
|
-
export declare class TextFieldModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TextFieldModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TextFieldModule, [typeof i1.CdkAutofill, typeof i2.CdkTextareaAutosize], never, [typeof i1.CdkAutofill, typeof i2.CdkTextareaAutosize]>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<TextFieldModule>;
|
|
8
|
-
}
|
|
@@ -1,54 +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 { SelectionModel } from '@angular/cdk/collections';
|
|
9
|
-
import { Observable } from 'rxjs';
|
|
10
|
-
import { TreeControl } from './tree-control';
|
|
11
|
-
/** Base tree control. It has basic toggle/expand/collapse operations on a single data node. */
|
|
12
|
-
export declare abstract class BaseTreeControl<T, K = T> implements TreeControl<T, K> {
|
|
13
|
-
/** Gets a list of descendent data nodes of a subtree rooted at given data node recursively. */
|
|
14
|
-
abstract getDescendants(dataNode: T): T[];
|
|
15
|
-
/** Expands all data nodes in the tree. */
|
|
16
|
-
abstract expandAll(): void;
|
|
17
|
-
/** Saved data node for `expandAll` action. */
|
|
18
|
-
dataNodes: T[];
|
|
19
|
-
/** A selection model with multi-selection to track expansion status. */
|
|
20
|
-
expansionModel: SelectionModel<K>;
|
|
21
|
-
/**
|
|
22
|
-
* Returns the identifier by which a dataNode should be tracked, should its
|
|
23
|
-
* reference change.
|
|
24
|
-
*
|
|
25
|
-
* Similar to trackBy for *ngFor
|
|
26
|
-
*/
|
|
27
|
-
trackBy?: (dataNode: T) => K;
|
|
28
|
-
/** Get depth of a given data node, return the level number. This is for flat tree node. */
|
|
29
|
-
getLevel: (dataNode: T) => number;
|
|
30
|
-
/**
|
|
31
|
-
* Whether the data node is expandable. Returns true if expandable.
|
|
32
|
-
* This is for flat tree node.
|
|
33
|
-
*/
|
|
34
|
-
isExpandable: (dataNode: T) => boolean;
|
|
35
|
-
/** Gets a stream that emits whenever the given data node's children change. */
|
|
36
|
-
getChildren: (dataNode: T) => Observable<T[]> | T[] | undefined | null;
|
|
37
|
-
/** Toggles one single data node's expanded/collapsed state. */
|
|
38
|
-
toggle(dataNode: T): void;
|
|
39
|
-
/** Expands one single data node. */
|
|
40
|
-
expand(dataNode: T): void;
|
|
41
|
-
/** Collapses one single data node. */
|
|
42
|
-
collapse(dataNode: T): void;
|
|
43
|
-
/** Whether a given data node is expanded or not. Returns true if the data node is expanded. */
|
|
44
|
-
isExpanded(dataNode: T): boolean;
|
|
45
|
-
/** Toggles a subtree rooted at `node` recursively. */
|
|
46
|
-
toggleDescendants(dataNode: T): void;
|
|
47
|
-
/** Collapse all dataNodes in the tree. */
|
|
48
|
-
collapseAll(): void;
|
|
49
|
-
/** Expands a subtree rooted at given data node recursively. */
|
|
50
|
-
expandDescendants(dataNode: T): void;
|
|
51
|
-
/** Collapses a subtree rooted at given data node recursively. */
|
|
52
|
-
collapseDescendants(dataNode: T): void;
|
|
53
|
-
protected _trackByValue(value: T | K): K;
|
|
54
|
-
}
|
|
@@ -1,34 +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 { BaseTreeControl } from './base-tree-control';
|
|
9
|
-
/** Optional set of configuration that can be provided to the FlatTreeControl. */
|
|
10
|
-
export interface FlatTreeControlOptions<T, K> {
|
|
11
|
-
trackBy?: (dataNode: T) => K;
|
|
12
|
-
}
|
|
13
|
-
/** Flat tree control. Able to expand/collapse a subtree recursively for flattened tree. */
|
|
14
|
-
export declare class FlatTreeControl<T, K = T> extends BaseTreeControl<T, K> {
|
|
15
|
-
getLevel: (dataNode: T) => number;
|
|
16
|
-
isExpandable: (dataNode: T) => boolean;
|
|
17
|
-
options?: FlatTreeControlOptions<T, K> | undefined;
|
|
18
|
-
/** Construct with flat tree data node functions getLevel and isExpandable. */
|
|
19
|
-
constructor(getLevel: (dataNode: T) => number, isExpandable: (dataNode: T) => boolean, options?: FlatTreeControlOptions<T, K> | undefined);
|
|
20
|
-
/**
|
|
21
|
-
* Gets a list of the data node's subtree of descendent data nodes.
|
|
22
|
-
*
|
|
23
|
-
* To make this working, the `dataNodes` of the TreeControl must be flattened tree nodes
|
|
24
|
-
* with correct levels.
|
|
25
|
-
*/
|
|
26
|
-
getDescendants(dataNode: T): T[];
|
|
27
|
-
/**
|
|
28
|
-
* Expands all data nodes in the tree.
|
|
29
|
-
*
|
|
30
|
-
* To make this working, the `dataNodes` variable of the TreeControl must be set to all flattened
|
|
31
|
-
* data nodes of the tree.
|
|
32
|
-
*/
|
|
33
|
-
expandAll(): void;
|
|
34
|
-
}
|
|
@@ -1,31 +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 { Observable } from 'rxjs';
|
|
9
|
-
import { BaseTreeControl } from './base-tree-control';
|
|
10
|
-
/** Optional set of configuration that can be provided to the NestedTreeControl. */
|
|
11
|
-
export interface NestedTreeControlOptions<T, K> {
|
|
12
|
-
trackBy?: (dataNode: T) => K;
|
|
13
|
-
}
|
|
14
|
-
/** Nested tree control. Able to expand/collapse a subtree recursively for NestedNode type. */
|
|
15
|
-
export declare class NestedTreeControl<T, K = T> extends BaseTreeControl<T, K> {
|
|
16
|
-
getChildren: (dataNode: T) => Observable<T[]> | T[] | undefined | null;
|
|
17
|
-
options?: NestedTreeControlOptions<T, K> | undefined;
|
|
18
|
-
/** Construct with nested tree function getChildren. */
|
|
19
|
-
constructor(getChildren: (dataNode: T) => Observable<T[]> | T[] | undefined | null, options?: NestedTreeControlOptions<T, K> | undefined);
|
|
20
|
-
/**
|
|
21
|
-
* Expands all dataNodes in the tree.
|
|
22
|
-
*
|
|
23
|
-
* To make this working, the `dataNodes` variable of the TreeControl must be set to all root level
|
|
24
|
-
* data nodes of the tree.
|
|
25
|
-
*/
|
|
26
|
-
expandAll(): void;
|
|
27
|
-
/** Gets a list of descendant dataNodes of a subtree rooted at given data node recursively. */
|
|
28
|
-
getDescendants(dataNode: T): T[];
|
|
29
|
-
/** A helper function to get descendants recursively. */
|
|
30
|
-
protected _getDescendants(descendants: T[], dataNode: T): void;
|
|
31
|
-
}
|
|
@@ -1,49 +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 { SelectionModel } from '@angular/cdk/collections';
|
|
9
|
-
import { Observable } from 'rxjs';
|
|
10
|
-
/**
|
|
11
|
-
* Tree control interface. User can implement TreeControl to expand/collapse dataNodes in the tree.
|
|
12
|
-
* The CDKTree will use this TreeControl to expand/collapse a node.
|
|
13
|
-
* User can also use it outside the `<cdk-tree>` to control the expansion status of the tree.
|
|
14
|
-
*/
|
|
15
|
-
export interface TreeControl<T, K = T> {
|
|
16
|
-
/** The saved tree nodes data for `expandAll` action. */
|
|
17
|
-
dataNodes: T[];
|
|
18
|
-
/** The expansion model */
|
|
19
|
-
expansionModel: SelectionModel<K>;
|
|
20
|
-
/** Whether the data node is expanded or collapsed. Return true if it's expanded. */
|
|
21
|
-
isExpanded(dataNode: T): boolean;
|
|
22
|
-
/** Get all descendants of a data node */
|
|
23
|
-
getDescendants(dataNode: T): any[];
|
|
24
|
-
/** Expand or collapse data node */
|
|
25
|
-
toggle(dataNode: T): void;
|
|
26
|
-
/** Expand one data node */
|
|
27
|
-
expand(dataNode: T): void;
|
|
28
|
-
/** Collapse one data node */
|
|
29
|
-
collapse(dataNode: T): void;
|
|
30
|
-
/** Expand all the dataNodes in the tree */
|
|
31
|
-
expandAll(): void;
|
|
32
|
-
/** Collapse all the dataNodes in the tree */
|
|
33
|
-
collapseAll(): void;
|
|
34
|
-
/** Toggle a data node by expand/collapse it and all its descendants */
|
|
35
|
-
toggleDescendants(dataNode: T): void;
|
|
36
|
-
/** Expand a data node and all its descendants */
|
|
37
|
-
expandDescendants(dataNode: T): void;
|
|
38
|
-
/** Collapse a data node and all its descendants */
|
|
39
|
-
collapseDescendants(dataNode: T): void;
|
|
40
|
-
/** Get depth of a given data node, return the level number. This is for flat tree node. */
|
|
41
|
-
readonly getLevel: (dataNode: T) => number;
|
|
42
|
-
/**
|
|
43
|
-
* Whether the data node is expandable. Returns true if expandable.
|
|
44
|
-
* This is for flat tree node.
|
|
45
|
-
*/
|
|
46
|
-
readonly isExpandable: (dataNode: T) => boolean;
|
|
47
|
-
/** Gets a stream that emits whenever the given data node's children change. */
|
|
48
|
-
readonly getChildren: (dataNode: T) => Observable<T[]> | T[] | undefined | null;
|
|
49
|
-
}
|
package/tree/nested-node.d.ts
DELETED
|
@@ -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
|
-
import { AfterContentInit, ElementRef, IterableDiffers, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
9
|
-
import { CdkTreeNodeOutlet } from './outlet';
|
|
10
|
-
import { CdkTree, CdkTreeNode } from './tree';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
/**
|
|
13
|
-
* Nested node is a child of `<cdk-tree>`. It works with nested tree.
|
|
14
|
-
* By using `cdk-nested-tree-node` component in tree node template, children of the parent node will
|
|
15
|
-
* be added in the `cdkTreeNodeOutlet` in tree node template.
|
|
16
|
-
* The children of node will be automatically added to `cdkTreeNodeOutlet`.
|
|
17
|
-
*/
|
|
18
|
-
export declare class CdkNestedTreeNode<T, K = T> extends CdkTreeNode<T, K> implements AfterContentInit, OnDestroy, OnInit {
|
|
19
|
-
protected _differs: IterableDiffers;
|
|
20
|
-
/** Differ used to find the changes in the data provided by the data source. */
|
|
21
|
-
private _dataDiffer;
|
|
22
|
-
/** The children data dataNodes of current node. They will be placed in `CdkTreeNodeOutlet`. */
|
|
23
|
-
protected _children: T[];
|
|
24
|
-
/** The children node placeholder. */
|
|
25
|
-
nodeOutlet: QueryList<CdkTreeNodeOutlet>;
|
|
26
|
-
constructor(elementRef: ElementRef<HTMLElement>, tree: CdkTree<T, K>, _differs: IterableDiffers);
|
|
27
|
-
ngAfterContentInit(): void;
|
|
28
|
-
ngOnInit(): void;
|
|
29
|
-
ngOnDestroy(): void;
|
|
30
|
-
/** Add children dataNodes to the NodeOutlet */
|
|
31
|
-
protected updateChildrenNodes(children?: T[]): void;
|
|
32
|
-
/** Clear the children dataNodes. */
|
|
33
|
-
protected _clear(): void;
|
|
34
|
-
/** Gets the outlet for the current node. */
|
|
35
|
-
private _getNodeOutlet;
|
|
36
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkNestedTreeNode<any, any>, never>;
|
|
37
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkNestedTreeNode<any, any>, "cdk-nested-tree-node", ["cdkNestedTreeNode"], { "role": "role"; "disabled": "disabled"; "tabIndex": "tabIndex"; }, {}, ["nodeOutlet"]>;
|
|
38
|
-
}
|
package/tree/node.d.ts
DELETED
|
@@ -1,40 +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 } from '@angular/core';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/** Context provided to the tree node component. */
|
|
11
|
-
export declare class CdkTreeNodeOutletContext<T> {
|
|
12
|
-
/** Data for the node. */
|
|
13
|
-
$implicit: T;
|
|
14
|
-
/** Depth of the node. */
|
|
15
|
-
level: number;
|
|
16
|
-
/** Index location of the node. */
|
|
17
|
-
index?: number;
|
|
18
|
-
/** Length of the number of total dataNodes. */
|
|
19
|
-
count?: number;
|
|
20
|
-
constructor(data: T);
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Data node definition for the CdkTree.
|
|
24
|
-
* Captures the node's template and a when predicate that describes when this node should be used.
|
|
25
|
-
*/
|
|
26
|
-
export declare class CdkTreeNodeDef<T> {
|
|
27
|
-
template: TemplateRef<any>;
|
|
28
|
-
/**
|
|
29
|
-
* Function that should return true if this node template should be used for the provided node
|
|
30
|
-
* data and index. If left undefined, this node will be considered the default node template to
|
|
31
|
-
* use when no other when functions return true for the data.
|
|
32
|
-
* For every node, there must be at least one when function that passes or an undefined to
|
|
33
|
-
* default.
|
|
34
|
-
*/
|
|
35
|
-
when: (index: number, nodeData: T) => boolean;
|
|
36
|
-
/** @docs-private */
|
|
37
|
-
constructor(template: TemplateRef<any>);
|
|
38
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkTreeNodeDef<any>, never>;
|
|
39
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTreeNodeDef<any>, "[cdkTreeNodeDef]", never, { "when": "cdkTreeNodeDefWhen"; }, {}, never>;
|
|
40
|
-
}
|
package/tree/outlet.d.ts
DELETED
|
@@ -1,26 +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, ViewContainerRef } from '@angular/core';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* Injection token used to provide a `CdkTreeNode` to its outlet.
|
|
12
|
-
* Used primarily to avoid circular imports.
|
|
13
|
-
* @docs-private
|
|
14
|
-
*/
|
|
15
|
-
export declare const CDK_TREE_NODE_OUTLET_NODE: InjectionToken<{}>;
|
|
16
|
-
/**
|
|
17
|
-
* Outlet for nested CdkNode. Put `[cdkTreeNodeOutlet]` on a tag to place children dataNodes
|
|
18
|
-
* inside the outlet.
|
|
19
|
-
*/
|
|
20
|
-
export declare class CdkTreeNodeOutlet {
|
|
21
|
-
viewContainer: ViewContainerRef;
|
|
22
|
-
_node?: any;
|
|
23
|
-
constructor(viewContainer: ViewContainerRef, _node?: any);
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkTreeNodeOutlet, [null, { optional: true; }]>;
|
|
25
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTreeNodeOutlet, "[cdkTreeNodeOutlet]", never, {}, {}, never>;
|
|
26
|
-
}
|
package/tree/package.json
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@angular/cdk/tree",
|
|
3
|
-
"fesm2020": "../fesm2020/tree.mjs",
|
|
4
|
-
"fesm2015": "../fesm2015/tree.mjs",
|
|
5
|
-
"esm2020": "../esm2020/tree/tree_public_index.mjs",
|
|
6
|
-
"typings": "./tree_public_index.d.ts",
|
|
7
|
-
"module": "../fesm2015/tree.mjs",
|
|
8
|
-
"es2020": "../fesm2020/tree.mjs"
|
|
9
|
-
}
|