@angular/cdk 14.0.0-next.9 → 14.0.0-rc.2
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 +10 -9
- 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 +212 -0
- package/esm2020/menu/index.mjs +9 -0
- package/esm2020/menu/menu-aim.mjs +203 -0
- package/esm2020/menu/menu-bar.mjs +133 -0
- package/esm2020/menu/menu-base.mjs +187 -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 +49 -0
- package/esm2020/menu/menu-item-radio.mjs +71 -0
- package/esm2020/menu/menu-item-selectable.mjs +42 -0
- package/esm2020/menu/menu-item.mjs +259 -0
- package/esm2020/menu/menu-module.mjs +62 -0
- package/esm2020/menu/menu-stack.mjs +156 -0
- package/esm2020/menu/menu-trigger-base.mjs +107 -0
- package/esm2020/menu/menu-trigger.mjs +283 -0
- package/esm2020/menu/menu.mjs +134 -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 +55 -54
- 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 +1960 -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 +55 -54
- 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 +1942 -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 +893 -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/index.d.ts +2 -1
- package/schematics/index.js +4 -4
- package/schematics/index.mjs +4 -4
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-generate/drag-drop/schema.json +3 -0
- package/schematics/utils/ast/standalone.d.ts +26 -0
- package/schematics/utils/ast/standalone.js +191 -0
- package/schematics/utils/ast/standalone.mjs +191 -0
- package/schematics/utils/ast.js +5 -4
- package/schematics/utils/ast.mjs +5 -4
- package/schematics/utils/build-component.js +5 -5
- package/schematics/utils/build-component.mjs +5 -5
- package/schematics/utils/index.d.ts +1 -0
- package/schematics/utils/index.js +5 -1
- package/schematics/utils/index.mjs +5 -1
- 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/schematics/utils/vendored-ast-utils/index.d.ts +0 -70
- package/schematics/utils/vendored-ast-utils/index.js +0 -480
- package/schematics/utils/vendored-ast-utils/index.mjs +0 -480
- package/scrolling/fixed-size-virtual-scroll.d.ts +0 -97
- package/scrolling/package.json +0 -9
- package/scrolling/public-api.d.ts +0 -16
- package/scrolling/scroll-dispatcher.d.ts +0 -71
- package/scrolling/scrollable.d.ts +0 -85
- package/scrolling/scrolling-module.d.ts +0 -19
- package/scrolling/scrolling_public_index.d.ts +0 -4
- package/scrolling/viewport-ruler.d.ts +0 -63
- package/scrolling/virtual-for-of.d.ts +0 -117
- package/scrolling/virtual-scroll-repeater.d.ts +0 -16
- package/scrolling/virtual-scroll-strategy.d.ts +0 -38
- package/scrolling/virtual-scroll-viewport.d.ts +0 -147
- package/stepper/package.json +0 -9
- package/stepper/public-api.d.ts +0 -12
- package/stepper/step-header.d.ts +0 -18
- package/stepper/step-label.d.ts +0 -15
- package/stepper/stepper-button.d.ts +0 -20
- package/stepper/stepper-module.d.ts +0 -11
- package/stepper/stepper.d.ts +0 -233
- package/stepper/stepper_public_index.d.ts +0 -4
- package/table/can-stick.d.ts +0 -34
- package/table/cell.d.ts +0 -126
- package/table/coalesced-style-scheduler.d.ts +0 -46
- package/table/package.json +0 -9
- package/table/public-api.d.ts +0 -19
- package/table/row.d.ts +0 -175
- package/table/sticky-position-listener.d.ts +0 -31
- package/table/sticky-styler.d.ts +0 -126
- package/table/table-errors.d.ts +0 -48
- package/table/table-module.d.ts +0 -11
- package/table/table.d.ts +0 -494
- package/table/table_public_index.d.ts +0 -4
- package/table/text-column.d.ts +0 -73
- package/table/tokens.d.ts +0 -25
- package/testing/change-detection.d.ts +0 -83
- package/testing/component-harness.d.ts +0 -426
- package/testing/element-dimensions.d.ts +0 -16
- package/testing/harness-environment.d.ts +0 -62
- package/testing/package.json +0 -9
- package/testing/public-api.d.ts +0 -14
- package/testing/selenium-webdriver/package.json +0 -9
- package/testing/selenium-webdriver/public-api.d.ts +0 -9
- package/testing/selenium-webdriver/selenium-web-driver-element.d.ts +0 -91
- package/testing/selenium-webdriver/selenium-web-driver-harness-environment.d.ts +0 -66
- package/testing/selenium-webdriver/selenium-webdriver-keys.d.ts +0 -46
- package/testing/test-element-errors.d.ts +0 -12
- package/testing/test-element.d.ts +0 -135
- package/testing/testbed/fake-events/dispatch-events.d.ts +0 -39
- package/testing/testbed/fake-events/element-focus.d.ts +0 -18
- package/testing/testbed/fake-events/event-objects.d.ts +0 -39
- package/testing/testbed/fake-events/index.d.ts +0 -11
- package/testing/testbed/fake-events/type-in-element.d.ts +0 -41
- package/testing/testbed/package.json +0 -9
- package/testing/testbed/proxy-zone-types.d.ts +0 -29
- package/testing/testbed/public-api.d.ts +0 -9
- package/testing/testbed/task-state-zone-interceptor.d.ts +0 -37
- package/testing/testbed/testbed-harness-environment.d.ts +0 -64
- package/testing/testbed/unit-test-element.d.ts +0 -98
- package/testing/testbed/zone-types.d.ts +0 -22
- package/testing/text-filtering.d.ts +0 -13
- package/text-field/autofill.d.ts +0 -66
- package/text-field/autosize.d.ts +0 -95
- package/text-field/package.json +0 -9
- package/text-field/public-api.d.ts +0 -10
- package/text-field/text-field-module.d.ts +0 -8
- package/text-field/text-field_public_index.d.ts +0 -4
- package/tree/control/base-tree-control.d.ts +0 -54
- package/tree/control/flat-tree-control.d.ts +0 -34
- package/tree/control/nested-tree-control.d.ts +0 -31
- package/tree/control/tree-control.d.ts +0 -49
- package/tree/nested-node.d.ts +0 -38
- package/tree/node.d.ts +0 -40
- package/tree/outlet.d.ts +0 -26
- package/tree/package.json +0 -9
- package/tree/padding.d.ts +0 -60
- package/tree/public-api.d.ts +0 -19
- package/tree/toggle.d.ts +0 -25
- package/tree/tree-errors.d.ts +0 -32
- package/tree/tree-module.d.ts +0 -12
- package/tree/tree.d.ts +0 -128
- package/tree/tree_public_index.d.ts +0 -4
- package/version.d.ts +0 -10
package/tree/index.d.ts
CHANGED
|
@@ -1,8 +1,500 @@
|
|
|
1
|
+
import { AfterContentChecked } from '@angular/core';
|
|
2
|
+
import { AfterContentInit } from '@angular/core';
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
4
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
5
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
6
|
+
import { CollectionViewer } from '@angular/cdk/collections';
|
|
7
|
+
import { DataSource } from '@angular/cdk/collections';
|
|
8
|
+
import { Directionality } from '@angular/cdk/bidi';
|
|
9
|
+
import { ElementRef } from '@angular/core';
|
|
10
|
+
import { FocusableOption } from '@angular/cdk/a11y';
|
|
11
|
+
import * as i0 from '@angular/core';
|
|
12
|
+
import { InjectionToken } from '@angular/core';
|
|
13
|
+
import { IterableDiffer } from '@angular/core';
|
|
14
|
+
import { IterableDiffers } from '@angular/core';
|
|
15
|
+
import { NumberInput } from '@angular/cdk/coercion';
|
|
16
|
+
import { Observable } from 'rxjs';
|
|
17
|
+
import { OnDestroy } from '@angular/core';
|
|
18
|
+
import { OnInit } from '@angular/core';
|
|
19
|
+
import { QueryList } from '@angular/core';
|
|
20
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
21
|
+
import { Subject } from 'rxjs';
|
|
22
|
+
import { TemplateRef } from '@angular/core';
|
|
23
|
+
import { TrackByFunction } from '@angular/core';
|
|
24
|
+
import { ViewContainerRef } from '@angular/core';
|
|
25
|
+
|
|
26
|
+
/** Base tree control. It has basic toggle/expand/collapse operations on a single data node. */
|
|
27
|
+
export declare abstract class BaseTreeControl<T, K = T> implements TreeControl<T, K> {
|
|
28
|
+
/** Gets a list of descendent data nodes of a subtree rooted at given data node recursively. */
|
|
29
|
+
abstract getDescendants(dataNode: T): T[];
|
|
30
|
+
/** Expands all data nodes in the tree. */
|
|
31
|
+
abstract expandAll(): void;
|
|
32
|
+
/** Saved data node for `expandAll` action. */
|
|
33
|
+
dataNodes: T[];
|
|
34
|
+
/** A selection model with multi-selection to track expansion status. */
|
|
35
|
+
expansionModel: SelectionModel<K>;
|
|
36
|
+
/**
|
|
37
|
+
* Returns the identifier by which a dataNode should be tracked, should its
|
|
38
|
+
* reference change.
|
|
39
|
+
*
|
|
40
|
+
* Similar to trackBy for *ngFor
|
|
41
|
+
*/
|
|
42
|
+
trackBy?: (dataNode: T) => K;
|
|
43
|
+
/** Get depth of a given data node, return the level number. This is for flat tree node. */
|
|
44
|
+
getLevel: (dataNode: T) => number;
|
|
45
|
+
/**
|
|
46
|
+
* Whether the data node is expandable. Returns true if expandable.
|
|
47
|
+
* This is for flat tree node.
|
|
48
|
+
*/
|
|
49
|
+
isExpandable: (dataNode: T) => boolean;
|
|
50
|
+
/** Gets a stream that emits whenever the given data node's children change. */
|
|
51
|
+
getChildren: (dataNode: T) => Observable<T[]> | T[] | undefined | null;
|
|
52
|
+
/** Toggles one single data node's expanded/collapsed state. */
|
|
53
|
+
toggle(dataNode: T): void;
|
|
54
|
+
/** Expands one single data node. */
|
|
55
|
+
expand(dataNode: T): void;
|
|
56
|
+
/** Collapses one single data node. */
|
|
57
|
+
collapse(dataNode: T): void;
|
|
58
|
+
/** Whether a given data node is expanded or not. Returns true if the data node is expanded. */
|
|
59
|
+
isExpanded(dataNode: T): boolean;
|
|
60
|
+
/** Toggles a subtree rooted at `node` recursively. */
|
|
61
|
+
toggleDescendants(dataNode: T): void;
|
|
62
|
+
/** Collapse all dataNodes in the tree. */
|
|
63
|
+
collapseAll(): void;
|
|
64
|
+
/** Expands a subtree rooted at given data node recursively. */
|
|
65
|
+
expandDescendants(dataNode: T): void;
|
|
66
|
+
/** Collapses a subtree rooted at given data node recursively. */
|
|
67
|
+
collapseDescendants(dataNode: T): void;
|
|
68
|
+
protected _trackByValue(value: T | K): K;
|
|
69
|
+
}
|
|
70
|
+
|
|
1
71
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
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
|
|
72
|
+
* Injection token used to provide a `CdkTreeNode` to its outlet.
|
|
73
|
+
* Used primarily to avoid circular imports.
|
|
74
|
+
* @docs-private
|
|
7
75
|
*/
|
|
8
|
-
export
|
|
76
|
+
export declare const CDK_TREE_NODE_OUTLET_NODE: InjectionToken<{}>;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Nested node is a child of `<cdk-tree>`. It works with nested tree.
|
|
80
|
+
* By using `cdk-nested-tree-node` component in tree node template, children of the parent node will
|
|
81
|
+
* be added in the `cdkTreeNodeOutlet` in tree node template.
|
|
82
|
+
* The children of node will be automatically added to `cdkTreeNodeOutlet`.
|
|
83
|
+
*/
|
|
84
|
+
export declare class CdkNestedTreeNode<T, K = T> extends CdkTreeNode<T, K> implements AfterContentInit, OnDestroy, OnInit {
|
|
85
|
+
protected _differs: IterableDiffers;
|
|
86
|
+
/** Differ used to find the changes in the data provided by the data source. */
|
|
87
|
+
private _dataDiffer;
|
|
88
|
+
/** The children data dataNodes of current node. They will be placed in `CdkTreeNodeOutlet`. */
|
|
89
|
+
protected _children: T[];
|
|
90
|
+
/** The children node placeholder. */
|
|
91
|
+
nodeOutlet: QueryList<CdkTreeNodeOutlet>;
|
|
92
|
+
constructor(elementRef: ElementRef<HTMLElement>, tree: CdkTree<T, K>, _differs: IterableDiffers);
|
|
93
|
+
ngAfterContentInit(): void;
|
|
94
|
+
ngOnInit(): void;
|
|
95
|
+
ngOnDestroy(): void;
|
|
96
|
+
/** Add children dataNodes to the NodeOutlet */
|
|
97
|
+
protected updateChildrenNodes(children?: T[]): void;
|
|
98
|
+
/** Clear the children dataNodes. */
|
|
99
|
+
protected _clear(): void;
|
|
100
|
+
/** Gets the outlet for the current node. */
|
|
101
|
+
private _getNodeOutlet;
|
|
102
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkNestedTreeNode<any, any>, never>;
|
|
103
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkNestedTreeNode<any, any>, "cdk-nested-tree-node", ["cdkNestedTreeNode"], { "role": "role"; "disabled": "disabled"; "tabIndex": "tabIndex"; }, {}, ["nodeOutlet"], never, false>;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* CDK tree component that connects with a data source to retrieve data of type `T` and renders
|
|
108
|
+
* dataNodes with hierarchy. Updates the dataNodes when new data is provided by the data source.
|
|
109
|
+
*/
|
|
110
|
+
export declare class CdkTree<T, K = T> implements AfterContentChecked, CollectionViewer, OnDestroy, OnInit {
|
|
111
|
+
private _differs;
|
|
112
|
+
private _changeDetectorRef;
|
|
113
|
+
/** Subject that emits when the component has been destroyed. */
|
|
114
|
+
private readonly _onDestroy;
|
|
115
|
+
/** Differ used to find the changes in the data provided by the data source. */
|
|
116
|
+
private _dataDiffer;
|
|
117
|
+
/** Stores the node definition that does not have a when predicate. */
|
|
118
|
+
private _defaultNodeDef;
|
|
119
|
+
/** Data subscription */
|
|
120
|
+
private _dataSubscription;
|
|
121
|
+
/** Level of nodes */
|
|
122
|
+
private _levels;
|
|
123
|
+
/**
|
|
124
|
+
* Provides a stream containing the latest data array to render. Influenced by the tree's
|
|
125
|
+
* stream of view window (what dataNodes are currently on screen).
|
|
126
|
+
* Data source can be an observable of data array, or a data array to render.
|
|
127
|
+
*/
|
|
128
|
+
get dataSource(): DataSource<T> | Observable<T[]> | T[];
|
|
129
|
+
set dataSource(dataSource: DataSource<T> | Observable<T[]> | T[]);
|
|
130
|
+
private _dataSource;
|
|
131
|
+
/** The tree controller */
|
|
132
|
+
treeControl: TreeControl<T, K>;
|
|
133
|
+
/**
|
|
134
|
+
* Tracking function that will be used to check the differences in data changes. Used similarly
|
|
135
|
+
* to `ngFor` `trackBy` function. Optimize node operations by identifying a node based on its data
|
|
136
|
+
* relative to the function to know if a node should be added/removed/moved.
|
|
137
|
+
* Accepts a function that takes two parameters, `index` and `item`.
|
|
138
|
+
*/
|
|
139
|
+
trackBy: TrackByFunction<T>;
|
|
140
|
+
_nodeOutlet: CdkTreeNodeOutlet;
|
|
141
|
+
/** The tree node template for the tree */
|
|
142
|
+
_nodeDefs: QueryList<CdkTreeNodeDef<T>>;
|
|
143
|
+
/**
|
|
144
|
+
* Stream containing the latest information on what rows are being displayed on screen.
|
|
145
|
+
* Can be used by the data source to as a heuristic of what data should be provided.
|
|
146
|
+
*/
|
|
147
|
+
readonly viewChange: BehaviorSubject<{
|
|
148
|
+
start: number;
|
|
149
|
+
end: number;
|
|
150
|
+
}>;
|
|
151
|
+
constructor(_differs: IterableDiffers, _changeDetectorRef: ChangeDetectorRef);
|
|
152
|
+
ngOnInit(): void;
|
|
153
|
+
ngOnDestroy(): void;
|
|
154
|
+
ngAfterContentChecked(): void;
|
|
155
|
+
/**
|
|
156
|
+
* Switch to the provided data source by resetting the data and unsubscribing from the current
|
|
157
|
+
* render change subscription if one exists. If the data source is null, interpret this by
|
|
158
|
+
* clearing the node outlet. Otherwise start listening for new data.
|
|
159
|
+
*/
|
|
160
|
+
private _switchDataSource;
|
|
161
|
+
/** Set up a subscription for the data provided by the data source. */
|
|
162
|
+
private _observeRenderChanges;
|
|
163
|
+
/** Check for changes made in the data and render each change (node added/removed/moved). */
|
|
164
|
+
renderNodeChanges(data: readonly T[], dataDiffer?: IterableDiffer<T>, viewContainer?: ViewContainerRef, parentData?: T): void;
|
|
165
|
+
/**
|
|
166
|
+
* Finds the matching node definition that should be used for this node data. If there is only
|
|
167
|
+
* one node definition, it is returned. Otherwise, find the node definition that has a when
|
|
168
|
+
* predicate that returns true with the data. If none return true, return the default node
|
|
169
|
+
* definition.
|
|
170
|
+
*/
|
|
171
|
+
_getNodeDef(data: T, i: number): CdkTreeNodeDef<T>;
|
|
172
|
+
/**
|
|
173
|
+
* Create the embedded view for the data node template and place it in the correct index location
|
|
174
|
+
* within the data node view container.
|
|
175
|
+
*/
|
|
176
|
+
insertNode(nodeData: T, index: number, viewContainer?: ViewContainerRef, parentData?: T): void;
|
|
177
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkTree<any, any>, never>;
|
|
178
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CdkTree<any, any>, "cdk-tree", ["cdkTree"], { "dataSource": "dataSource"; "treeControl": "treeControl"; "trackBy": "trackBy"; }, {}, ["_nodeDefs"], never, false>;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export declare class CdkTreeModule {
|
|
182
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkTreeModule, never>;
|
|
183
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CdkTreeModule, [typeof i1.CdkNestedTreeNode, typeof i2.CdkTreeNodeDef, typeof i3.CdkTreeNodePadding, typeof i4.CdkTreeNodeToggle, typeof i5.CdkTree, typeof i5.CdkTreeNode, typeof i6.CdkTreeNodeOutlet], never, [typeof i1.CdkNestedTreeNode, typeof i2.CdkTreeNodeDef, typeof i3.CdkTreeNodePadding, typeof i4.CdkTreeNodeToggle, typeof i5.CdkTree, typeof i5.CdkTreeNode, typeof i6.CdkTreeNodeOutlet]>;
|
|
184
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CdkTreeModule>;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Tree node for CdkTree. It contains the data in the tree node.
|
|
189
|
+
*/
|
|
190
|
+
export declare class CdkTreeNode<T, K = T> implements FocusableOption, OnDestroy, OnInit {
|
|
191
|
+
protected _elementRef: ElementRef<HTMLElement>;
|
|
192
|
+
protected _tree: CdkTree<T, K>;
|
|
193
|
+
/**
|
|
194
|
+
* The role of the tree node.
|
|
195
|
+
* @deprecated The correct role is 'treeitem', 'group' should not be used. This input will be
|
|
196
|
+
* removed in a future version.
|
|
197
|
+
* @breaking-change 12.0.0 Remove this input
|
|
198
|
+
*/
|
|
199
|
+
get role(): 'treeitem' | 'group';
|
|
200
|
+
set role(_role: 'treeitem' | 'group');
|
|
201
|
+
/**
|
|
202
|
+
* The most recently created `CdkTreeNode`. We save it in static variable so we can retrieve it
|
|
203
|
+
* in `CdkTree` and set the data to it.
|
|
204
|
+
*/
|
|
205
|
+
static mostRecentTreeNode: CdkTreeNode<any> | null;
|
|
206
|
+
/** Subject that emits when the component has been destroyed. */
|
|
207
|
+
protected readonly _destroyed: Subject<void>;
|
|
208
|
+
/** Emits when the node's data has changed. */
|
|
209
|
+
readonly _dataChanges: Subject<void>;
|
|
210
|
+
private _parentNodeAriaLevel;
|
|
211
|
+
/** The tree node's data. */
|
|
212
|
+
get data(): T;
|
|
213
|
+
set data(value: T);
|
|
214
|
+
protected _data: T;
|
|
215
|
+
get isExpanded(): boolean;
|
|
216
|
+
get level(): number;
|
|
217
|
+
constructor(_elementRef: ElementRef<HTMLElement>, _tree: CdkTree<T, K>);
|
|
218
|
+
ngOnInit(): void;
|
|
219
|
+
ngOnDestroy(): void;
|
|
220
|
+
/** Focuses the menu item. Implements for FocusableOption. */
|
|
221
|
+
focus(): void;
|
|
222
|
+
protected _setRoleFromData(): void;
|
|
223
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkTreeNode<any, any>, never>;
|
|
224
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTreeNode<any, any>, "cdk-tree-node", ["cdkTreeNode"], { "role": "role"; }, {}, never, never, false>;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Data node definition for the CdkTree.
|
|
229
|
+
* Captures the node's template and a when predicate that describes when this node should be used.
|
|
230
|
+
*/
|
|
231
|
+
export declare class CdkTreeNodeDef<T> {
|
|
232
|
+
template: TemplateRef<any>;
|
|
233
|
+
/**
|
|
234
|
+
* Function that should return true if this node template should be used for the provided node
|
|
235
|
+
* data and index. If left undefined, this node will be considered the default node template to
|
|
236
|
+
* use when no other when functions return true for the data.
|
|
237
|
+
* For every node, there must be at least one when function that passes or an undefined to
|
|
238
|
+
* default.
|
|
239
|
+
*/
|
|
240
|
+
when: (index: number, nodeData: T) => boolean;
|
|
241
|
+
/** @docs-private */
|
|
242
|
+
constructor(template: TemplateRef<any>);
|
|
243
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkTreeNodeDef<any>, never>;
|
|
244
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTreeNodeDef<any>, "[cdkTreeNodeDef]", never, { "when": "cdkTreeNodeDefWhen"; }, {}, never, never, false>;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Outlet for nested CdkNode. Put `[cdkTreeNodeOutlet]` on a tag to place children dataNodes
|
|
249
|
+
* inside the outlet.
|
|
250
|
+
*/
|
|
251
|
+
export declare class CdkTreeNodeOutlet {
|
|
252
|
+
viewContainer: ViewContainerRef;
|
|
253
|
+
_node?: any;
|
|
254
|
+
constructor(viewContainer: ViewContainerRef, _node?: any);
|
|
255
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkTreeNodeOutlet, [null, { optional: true; }]>;
|
|
256
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTreeNodeOutlet, "[cdkTreeNodeOutlet]", never, {}, {}, never, never, false>;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/** Context provided to the tree node component. */
|
|
260
|
+
export declare class CdkTreeNodeOutletContext<T> {
|
|
261
|
+
/** Data for the node. */
|
|
262
|
+
$implicit: T;
|
|
263
|
+
/** Depth of the node. */
|
|
264
|
+
level: number;
|
|
265
|
+
/** Index location of the node. */
|
|
266
|
+
index?: number;
|
|
267
|
+
/** Length of the number of total dataNodes. */
|
|
268
|
+
count?: number;
|
|
269
|
+
constructor(data: T);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Indent for the children tree dataNodes.
|
|
274
|
+
* This directive will add left-padding to the node to show hierarchy.
|
|
275
|
+
*/
|
|
276
|
+
export declare class CdkTreeNodePadding<T, K = T> implements OnDestroy {
|
|
277
|
+
private _treeNode;
|
|
278
|
+
private _tree;
|
|
279
|
+
private _element;
|
|
280
|
+
private _dir;
|
|
281
|
+
/** Current padding value applied to the element. Used to avoid unnecessarily hitting the DOM. */
|
|
282
|
+
private _currentPadding;
|
|
283
|
+
/** Subject that emits when the component has been destroyed. */
|
|
284
|
+
private readonly _destroyed;
|
|
285
|
+
/** CSS units used for the indentation value. */
|
|
286
|
+
indentUnits: string;
|
|
287
|
+
/** The level of depth of the tree node. The padding will be `level * indent` pixels. */
|
|
288
|
+
get level(): number;
|
|
289
|
+
set level(value: NumberInput);
|
|
290
|
+
_level: number;
|
|
291
|
+
/**
|
|
292
|
+
* The indent for each level. Can be a number or a CSS string.
|
|
293
|
+
* Default number 40px from material design menu sub-menu spec.
|
|
294
|
+
*/
|
|
295
|
+
get indent(): number | string;
|
|
296
|
+
set indent(indent: number | string);
|
|
297
|
+
_indent: number;
|
|
298
|
+
constructor(_treeNode: CdkTreeNode<T, K>, _tree: CdkTree<T, K>, _element: ElementRef<HTMLElement>, _dir: Directionality);
|
|
299
|
+
ngOnDestroy(): void;
|
|
300
|
+
/** The padding indent value for the tree node. Returns a string with px numbers if not null. */
|
|
301
|
+
_paddingIndent(): string | null;
|
|
302
|
+
_setPadding(forceChange?: boolean): void;
|
|
303
|
+
/**
|
|
304
|
+
* This has been extracted to a util because of TS 4 and VE.
|
|
305
|
+
* View Engine doesn't support property rename inheritance.
|
|
306
|
+
* TS 4.0 doesn't allow properties to override accessors or vice-versa.
|
|
307
|
+
* @docs-private
|
|
308
|
+
*/
|
|
309
|
+
protected _setLevelInput(value: NumberInput): void;
|
|
310
|
+
/**
|
|
311
|
+
* This has been extracted to a util because of TS 4 and VE.
|
|
312
|
+
* View Engine doesn't support property rename inheritance.
|
|
313
|
+
* TS 4.0 doesn't allow properties to override accessors or vice-versa.
|
|
314
|
+
* @docs-private
|
|
315
|
+
*/
|
|
316
|
+
protected _setIndentInput(indent: number | string): void;
|
|
317
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkTreeNodePadding<any, any>, [null, null, null, { optional: true; }]>;
|
|
318
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTreeNodePadding<any, any>, "[cdkTreeNodePadding]", never, { "level": "cdkTreeNodePadding"; "indent": "cdkTreeNodePaddingIndent"; }, {}, never, never, false>;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Node toggle to expand/collapse the node.
|
|
323
|
+
*/
|
|
324
|
+
export declare class CdkTreeNodeToggle<T, K = T> {
|
|
325
|
+
protected _tree: CdkTree<T, K>;
|
|
326
|
+
protected _treeNode: CdkTreeNode<T, K>;
|
|
327
|
+
/** Whether expand/collapse the node recursively. */
|
|
328
|
+
get recursive(): boolean;
|
|
329
|
+
set recursive(value: BooleanInput);
|
|
330
|
+
protected _recursive: boolean;
|
|
331
|
+
constructor(_tree: CdkTree<T, K>, _treeNode: CdkTreeNode<T, K>);
|
|
332
|
+
_toggle(event: Event): void;
|
|
333
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkTreeNodeToggle<any, any>, never>;
|
|
334
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTreeNodeToggle<any, any>, "[cdkTreeNodeToggle]", never, { "recursive": "cdkTreeNodeToggleRecursive"; }, {}, never, never, false>;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/** Flat tree control. Able to expand/collapse a subtree recursively for flattened tree. */
|
|
338
|
+
export declare class FlatTreeControl<T, K = T> extends BaseTreeControl<T, K> {
|
|
339
|
+
getLevel: (dataNode: T) => number;
|
|
340
|
+
isExpandable: (dataNode: T) => boolean;
|
|
341
|
+
options?: FlatTreeControlOptions<T, K> | undefined;
|
|
342
|
+
/** Construct with flat tree data node functions getLevel and isExpandable. */
|
|
343
|
+
constructor(getLevel: (dataNode: T) => number, isExpandable: (dataNode: T) => boolean, options?: FlatTreeControlOptions<T, K> | undefined);
|
|
344
|
+
/**
|
|
345
|
+
* Gets a list of the data node's subtree of descendent data nodes.
|
|
346
|
+
*
|
|
347
|
+
* To make this working, the `dataNodes` of the TreeControl must be flattened tree nodes
|
|
348
|
+
* with correct levels.
|
|
349
|
+
*/
|
|
350
|
+
getDescendants(dataNode: T): T[];
|
|
351
|
+
/**
|
|
352
|
+
* Expands all data nodes in the tree.
|
|
353
|
+
*
|
|
354
|
+
* To make this working, the `dataNodes` variable of the TreeControl must be set to all flattened
|
|
355
|
+
* data nodes of the tree.
|
|
356
|
+
*/
|
|
357
|
+
expandAll(): void;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/** Optional set of configuration that can be provided to the FlatTreeControl. */
|
|
361
|
+
export declare interface FlatTreeControlOptions<T, K> {
|
|
362
|
+
trackBy?: (dataNode: T) => K;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Returns an error to be thrown when tree control did not implement functions for flat/nested node.
|
|
367
|
+
* @docs-private
|
|
368
|
+
*/
|
|
369
|
+
export declare function getTreeControlFunctionsMissingError(): Error;
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Returns an error to be thrown when there are tree control.
|
|
373
|
+
* @docs-private
|
|
374
|
+
*/
|
|
375
|
+
export declare function getTreeControlMissingError(): Error;
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Returns an error to be thrown when there are no matching node defs for a particular set of data.
|
|
379
|
+
* @docs-private
|
|
380
|
+
*/
|
|
381
|
+
export declare function getTreeMissingMatchingNodeDefError(): Error;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Returns an error to be thrown when there are multiple nodes that are missing a when function.
|
|
385
|
+
* @docs-private
|
|
386
|
+
*/
|
|
387
|
+
export declare function getTreeMultipleDefaultNodeDefsError(): Error;
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Returns an error to be thrown when there is no usable data.
|
|
392
|
+
* @docs-private
|
|
393
|
+
*/
|
|
394
|
+
export declare function getTreeNoValidDataSourceError(): Error;
|
|
395
|
+
|
|
396
|
+
declare namespace i1 {
|
|
397
|
+
export {
|
|
398
|
+
CdkNestedTreeNode
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
declare namespace i2 {
|
|
403
|
+
export {
|
|
404
|
+
CdkTreeNodeOutletContext,
|
|
405
|
+
CdkTreeNodeDef
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
declare namespace i3 {
|
|
410
|
+
export {
|
|
411
|
+
CdkTreeNodePadding
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
declare namespace i4 {
|
|
416
|
+
export {
|
|
417
|
+
CdkTreeNodeToggle
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
declare namespace i5 {
|
|
422
|
+
export {
|
|
423
|
+
CdkTree,
|
|
424
|
+
CdkTreeNode
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
declare namespace i6 {
|
|
429
|
+
export {
|
|
430
|
+
CDK_TREE_NODE_OUTLET_NODE,
|
|
431
|
+
CdkTreeNodeOutlet
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/** Nested tree control. Able to expand/collapse a subtree recursively for NestedNode type. */
|
|
436
|
+
export declare class NestedTreeControl<T, K = T> extends BaseTreeControl<T, K> {
|
|
437
|
+
getChildren: (dataNode: T) => Observable<T[]> | T[] | undefined | null;
|
|
438
|
+
options?: NestedTreeControlOptions<T, K> | undefined;
|
|
439
|
+
/** Construct with nested tree function getChildren. */
|
|
440
|
+
constructor(getChildren: (dataNode: T) => Observable<T[]> | T[] | undefined | null, options?: NestedTreeControlOptions<T, K> | undefined);
|
|
441
|
+
/**
|
|
442
|
+
* Expands all dataNodes in the tree.
|
|
443
|
+
*
|
|
444
|
+
* To make this working, the `dataNodes` variable of the TreeControl must be set to all root level
|
|
445
|
+
* data nodes of the tree.
|
|
446
|
+
*/
|
|
447
|
+
expandAll(): void;
|
|
448
|
+
/** Gets a list of descendant dataNodes of a subtree rooted at given data node recursively. */
|
|
449
|
+
getDescendants(dataNode: T): T[];
|
|
450
|
+
/** A helper function to get descendants recursively. */
|
|
451
|
+
protected _getDescendants(descendants: T[], dataNode: T): void;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/** Optional set of configuration that can be provided to the NestedTreeControl. */
|
|
455
|
+
export declare interface NestedTreeControlOptions<T, K> {
|
|
456
|
+
trackBy?: (dataNode: T) => K;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Tree control interface. User can implement TreeControl to expand/collapse dataNodes in the tree.
|
|
461
|
+
* The CDKTree will use this TreeControl to expand/collapse a node.
|
|
462
|
+
* User can also use it outside the `<cdk-tree>` to control the expansion status of the tree.
|
|
463
|
+
*/
|
|
464
|
+
export declare interface TreeControl<T, K = T> {
|
|
465
|
+
/** The saved tree nodes data for `expandAll` action. */
|
|
466
|
+
dataNodes: T[];
|
|
467
|
+
/** The expansion model */
|
|
468
|
+
expansionModel: SelectionModel<K>;
|
|
469
|
+
/** Whether the data node is expanded or collapsed. Return true if it's expanded. */
|
|
470
|
+
isExpanded(dataNode: T): boolean;
|
|
471
|
+
/** Get all descendants of a data node */
|
|
472
|
+
getDescendants(dataNode: T): any[];
|
|
473
|
+
/** Expand or collapse data node */
|
|
474
|
+
toggle(dataNode: T): void;
|
|
475
|
+
/** Expand one data node */
|
|
476
|
+
expand(dataNode: T): void;
|
|
477
|
+
/** Collapse one data node */
|
|
478
|
+
collapse(dataNode: T): void;
|
|
479
|
+
/** Expand all the dataNodes in the tree */
|
|
480
|
+
expandAll(): void;
|
|
481
|
+
/** Collapse all the dataNodes in the tree */
|
|
482
|
+
collapseAll(): void;
|
|
483
|
+
/** Toggle a data node by expand/collapse it and all its descendants */
|
|
484
|
+
toggleDescendants(dataNode: T): void;
|
|
485
|
+
/** Expand a data node and all its descendants */
|
|
486
|
+
expandDescendants(dataNode: T): void;
|
|
487
|
+
/** Collapse a data node and all its descendants */
|
|
488
|
+
collapseDescendants(dataNode: T): void;
|
|
489
|
+
/** Get depth of a given data node, return the level number. This is for flat tree node. */
|
|
490
|
+
readonly getLevel: (dataNode: T) => number;
|
|
491
|
+
/**
|
|
492
|
+
* Whether the data node is expandable. Returns true if expandable.
|
|
493
|
+
* This is for flat tree node.
|
|
494
|
+
*/
|
|
495
|
+
readonly isExpandable: (dataNode: T) => boolean;
|
|
496
|
+
/** Gets a stream that emits whenever the given data node's children change. */
|
|
497
|
+
readonly getChildren: (dataNode: T) => Observable<T[]> | T[] | undefined | null;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
export { }
|
package/a11y/a11y-module.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { HighContrastModeDetector } from './high-contrast-mode/high-contrast-mode-detector';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "./live-announcer/live-announcer";
|
|
4
|
-
import * as i2 from "./focus-trap/focus-trap";
|
|
5
|
-
import * as i3 from "./focus-monitor/focus-monitor";
|
|
6
|
-
import * as i4 from "@angular/cdk/observers";
|
|
7
|
-
export declare class A11yModule {
|
|
8
|
-
constructor(highContrastModeDetector: HighContrastModeDetector);
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<A11yModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<A11yModule, [typeof i1.CdkAriaLive, typeof i2.CdkTrapFocus, typeof i3.CdkMonitorFocus], [typeof i4.ObserversModule], [typeof i1.CdkAriaLive, typeof i2.CdkTrapFocus, typeof i3.CdkMonitorFocus]>;
|
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<A11yModule>;
|
|
12
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { Platform } from '@angular/cdk/platform';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Interface used to register message elements and keep a count of how many registrations have
|
|
6
|
-
* the same message and the reference to the message element used for the `aria-describedby`.
|
|
7
|
-
*/
|
|
8
|
-
export interface RegisteredMessage {
|
|
9
|
-
/** The element containing the message. */
|
|
10
|
-
messageElement: Element;
|
|
11
|
-
/** The number of elements that reference this message element via `aria-describedby`. */
|
|
12
|
-
referenceCount: number;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* ID used for the body container where all messages are appended.
|
|
16
|
-
* @deprecated No longer being used. To be removed.
|
|
17
|
-
* @breaking-change 14.0.0
|
|
18
|
-
*/
|
|
19
|
-
export declare const MESSAGES_CONTAINER_ID = "cdk-describedby-message-container";
|
|
20
|
-
/**
|
|
21
|
-
* ID prefix used for each created message element.
|
|
22
|
-
* @deprecated To be turned into a private variable.
|
|
23
|
-
* @breaking-change 14.0.0
|
|
24
|
-
*/
|
|
25
|
-
export declare const CDK_DESCRIBEDBY_ID_PREFIX = "cdk-describedby-message";
|
|
26
|
-
/**
|
|
27
|
-
* Attribute given to each host element that is described by a message element.
|
|
28
|
-
* @deprecated To be turned into a private variable.
|
|
29
|
-
* @breaking-change 14.0.0
|
|
30
|
-
*/
|
|
31
|
-
export declare const CDK_DESCRIBEDBY_HOST_ATTRIBUTE = "cdk-describedby-host";
|
|
32
|
-
/**
|
|
33
|
-
* Utility that creates visually hidden elements with a message content. Useful for elements that
|
|
34
|
-
* want to use aria-describedby to further describe themselves without adding additional visual
|
|
35
|
-
* content.
|
|
36
|
-
*/
|
|
37
|
-
export declare class AriaDescriber implements OnDestroy {
|
|
38
|
-
/**
|
|
39
|
-
* @deprecated To be turned into a required parameter.
|
|
40
|
-
* @breaking-change 14.0.0
|
|
41
|
-
*/
|
|
42
|
-
private _platform?;
|
|
43
|
-
private _document;
|
|
44
|
-
/** Map of all registered message elements that have been placed into the document. */
|
|
45
|
-
private _messageRegistry;
|
|
46
|
-
/** Container for all registered messages. */
|
|
47
|
-
private _messagesContainer;
|
|
48
|
-
/** Unique ID for the service. */
|
|
49
|
-
private readonly _id;
|
|
50
|
-
constructor(_document: any,
|
|
51
|
-
/**
|
|
52
|
-
* @deprecated To be turned into a required parameter.
|
|
53
|
-
* @breaking-change 14.0.0
|
|
54
|
-
*/
|
|
55
|
-
_platform?: Platform | undefined);
|
|
56
|
-
/**
|
|
57
|
-
* Adds to the host element an aria-describedby reference to a hidden element that contains
|
|
58
|
-
* the message. If the same message has already been registered, then it will reuse the created
|
|
59
|
-
* message element.
|
|
60
|
-
*/
|
|
61
|
-
describe(hostElement: Element, message: string, role?: string): void;
|
|
62
|
-
/**
|
|
63
|
-
* Adds to the host element an aria-describedby reference to an already-existing message element.
|
|
64
|
-
*/
|
|
65
|
-
describe(hostElement: Element, message: HTMLElement): void;
|
|
66
|
-
/** Removes the host element's aria-describedby reference to the message. */
|
|
67
|
-
removeDescription(hostElement: Element, message: string, role?: string): void;
|
|
68
|
-
/** Removes the host element's aria-describedby reference to the message element. */
|
|
69
|
-
removeDescription(hostElement: Element, message: HTMLElement): void;
|
|
70
|
-
/** Unregisters all created message elements and removes the message container. */
|
|
71
|
-
ngOnDestroy(): void;
|
|
72
|
-
/**
|
|
73
|
-
* Creates a new element in the visually hidden message container element with the message
|
|
74
|
-
* as its content and adds it to the message registry.
|
|
75
|
-
*/
|
|
76
|
-
private _createMessageElement;
|
|
77
|
-
/** Deletes the message element from the global messages container. */
|
|
78
|
-
private _deleteMessageElement;
|
|
79
|
-
/** Creates the global container for all aria-describedby messages. */
|
|
80
|
-
private _createMessagesContainer;
|
|
81
|
-
/** Removes all cdk-describedby messages that are hosted through the element. */
|
|
82
|
-
private _removeCdkDescribedByReferenceIds;
|
|
83
|
-
/**
|
|
84
|
-
* Adds a message reference to the element using aria-describedby and increments the registered
|
|
85
|
-
* message's reference count.
|
|
86
|
-
*/
|
|
87
|
-
private _addMessageReference;
|
|
88
|
-
/**
|
|
89
|
-
* Removes a message reference from the element using aria-describedby
|
|
90
|
-
* and decrements the registered message's reference count.
|
|
91
|
-
*/
|
|
92
|
-
private _removeMessageReference;
|
|
93
|
-
/** Returns true if the element has been described by the provided message ID. */
|
|
94
|
-
private _isElementDescribedByMessage;
|
|
95
|
-
/** Determines whether a message can be described on a particular element. */
|
|
96
|
-
private _canBeDescribed;
|
|
97
|
-
/** Checks whether a node is an Element node. */
|
|
98
|
-
private _isElementNode;
|
|
99
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AriaDescriber, never>;
|
|
100
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AriaDescriber>;
|
|
101
|
-
}
|
|
@@ -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
|
-
* Adds the given ID to the specified ARIA attribute on an element.
|
|
10
|
-
* Used for attributes such as aria-labelledby, aria-owns, etc.
|
|
11
|
-
*/
|
|
12
|
-
export declare function addAriaReferencedId(el: Element, attr: string, id: string): void;
|
|
13
|
-
/**
|
|
14
|
-
* Removes the given ID from the specified ARIA attribute on an element.
|
|
15
|
-
* Used for attributes such as aria-labelledby, aria-owns, etc.
|
|
16
|
-
*/
|
|
17
|
-
export declare function removeAriaReferencedId(el: Element, attr: string, id: string): void;
|
|
18
|
-
/**
|
|
19
|
-
* Gets the list of IDs referenced by the given ARIA attribute on an element.
|
|
20
|
-
* Used for attributes such as aria-labelledby, aria-owns, etc.
|
|
21
|
-
*/
|
|
22
|
-
export declare function getAriaReferenceIds(el: Element, attr: string): string[];
|
|
@@ -1,11 +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 whether an event could be a faked `mousedown` event dispatched by a screen reader. */
|
|
9
|
-
export declare function isFakeMousedownFromScreenReader(event: MouseEvent): boolean;
|
|
10
|
-
/** Gets whether an event could be a faked `touchstart` event dispatched by a screen reader. */
|
|
11
|
-
export declare function isFakeTouchstartFromScreenReader(event: TouchEvent): boolean;
|