@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
|
@@ -1,83 +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
|
-
/** Represents the status of auto change detection. */
|
|
9
|
-
export interface AutoChangeDetectionStatus {
|
|
10
|
-
/** Whether auto change detection is disabled. */
|
|
11
|
-
isDisabled: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* An optional callback, if present it indicates that change detection should be run immediately,
|
|
14
|
-
* while handling the status change. The callback should then be called as soon as change
|
|
15
|
-
* detection is done.
|
|
16
|
-
*/
|
|
17
|
-
onDetectChangesNow?: () => void;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Allows a test `HarnessEnvironment` to install its own handler for auto change detection status
|
|
21
|
-
* changes.
|
|
22
|
-
* @param handler The handler for the auto change detection status.
|
|
23
|
-
*/
|
|
24
|
-
export declare function handleAutoChangeDetectionStatus(handler: (status: AutoChangeDetectionStatus) => void): void;
|
|
25
|
-
/** Allows a `HarnessEnvironment` to stop handling auto change detection status changes. */
|
|
26
|
-
export declare function stopHandlingAutoChangeDetectionStatus(): void;
|
|
27
|
-
/**
|
|
28
|
-
* Disables the harness system's auto change detection for the duration of the given function.
|
|
29
|
-
* @param fn The function to disable auto change detection for.
|
|
30
|
-
* @return The result of the given function.
|
|
31
|
-
*/
|
|
32
|
-
export declare function manualChangeDetection<T>(fn: () => Promise<T>): Promise<T>;
|
|
33
|
-
/**
|
|
34
|
-
* Resolves the given list of async values in parallel (i.e. via Promise.all) while batching change
|
|
35
|
-
* detection over the entire operation such that change detection occurs exactly once before
|
|
36
|
-
* resolving the values and once after.
|
|
37
|
-
* @param values A getter for the async values to resolve in parallel with batched change detection.
|
|
38
|
-
* @return The resolved values.
|
|
39
|
-
*/
|
|
40
|
-
export declare function parallel<T1, T2, T3, T4, T5>(values: () => [
|
|
41
|
-
T1 | PromiseLike<T1>,
|
|
42
|
-
T2 | PromiseLike<T2>,
|
|
43
|
-
T3 | PromiseLike<T3>,
|
|
44
|
-
T4 | PromiseLike<T4>,
|
|
45
|
-
T5 | PromiseLike<T5>
|
|
46
|
-
]): Promise<[T1, T2, T3, T4, T5]>;
|
|
47
|
-
/**
|
|
48
|
-
* Resolves the given list of async values in parallel (i.e. via Promise.all) while batching change
|
|
49
|
-
* detection over the entire operation such that change detection occurs exactly once before
|
|
50
|
-
* resolving the values and once after.
|
|
51
|
-
* @param values A getter for the async values to resolve in parallel with batched change detection.
|
|
52
|
-
* @return The resolved values.
|
|
53
|
-
*/
|
|
54
|
-
export declare function parallel<T1, T2, T3, T4>(values: () => [
|
|
55
|
-
T1 | PromiseLike<T1>,
|
|
56
|
-
T2 | PromiseLike<T2>,
|
|
57
|
-
T3 | PromiseLike<T3>,
|
|
58
|
-
T4 | PromiseLike<T4>
|
|
59
|
-
]): Promise<[T1, T2, T3, T4]>;
|
|
60
|
-
/**
|
|
61
|
-
* Resolves the given list of async values in parallel (i.e. via Promise.all) while batching change
|
|
62
|
-
* detection over the entire operation such that change detection occurs exactly once before
|
|
63
|
-
* resolving the values and once after.
|
|
64
|
-
* @param values A getter for the async values to resolve in parallel with batched change detection.
|
|
65
|
-
* @return The resolved values.
|
|
66
|
-
*/
|
|
67
|
-
export declare function parallel<T1, T2, T3>(values: () => [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]): Promise<[T1, T2, T3]>;
|
|
68
|
-
/**
|
|
69
|
-
* Resolves the given list of async values in parallel (i.e. via Promise.all) while batching change
|
|
70
|
-
* detection over the entire operation such that change detection occurs exactly once before
|
|
71
|
-
* resolving the values and once after.
|
|
72
|
-
* @param values A getter for the async values to resolve in parallel with batched change detection.
|
|
73
|
-
* @return The resolved values.
|
|
74
|
-
*/
|
|
75
|
-
export declare function parallel<T1, T2>(values: () => [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<[T1, T2]>;
|
|
76
|
-
/**
|
|
77
|
-
* Resolves the given list of async values in parallel (i.e. via Promise.all) while batching change
|
|
78
|
-
* detection over the entire operation such that change detection occurs exactly once before
|
|
79
|
-
* resolving the values and once after.
|
|
80
|
-
* @param values A getter for the async values to resolve in parallel with batched change detection.
|
|
81
|
-
* @return The resolved values.
|
|
82
|
-
*/
|
|
83
|
-
export declare function parallel<T>(values: () => (T | PromiseLike<T>)[]): Promise<T[]>;
|
|
@@ -1,426 +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 { TestElement } from './test-element';
|
|
9
|
-
/** An async function that returns a promise when called. */
|
|
10
|
-
export declare type AsyncFactoryFn<T> = () => Promise<T>;
|
|
11
|
-
/** An async function that takes an item and returns a boolean promise */
|
|
12
|
-
export declare type AsyncPredicate<T> = (item: T) => Promise<boolean>;
|
|
13
|
-
/** An async function that takes an item and an option value and returns a boolean promise. */
|
|
14
|
-
export declare type AsyncOptionPredicate<T, O> = (item: T, option: O) => Promise<boolean>;
|
|
15
|
-
/**
|
|
16
|
-
* A query for a `ComponentHarness`, which is expressed as either a `ComponentHarnessConstructor` or
|
|
17
|
-
* a `HarnessPredicate`.
|
|
18
|
-
*/
|
|
19
|
-
export declare type HarnessQuery<T extends ComponentHarness> = ComponentHarnessConstructor<T> | HarnessPredicate<T>;
|
|
20
|
-
/**
|
|
21
|
-
* The result type obtained when searching using a particular list of queries. This type depends on
|
|
22
|
-
* the particular items being queried.
|
|
23
|
-
* - If one of the queries is for a `ComponentHarnessConstructor<C1>`, it means that the result
|
|
24
|
-
* might be a harness of type `C1`
|
|
25
|
-
* - If one of the queries is for a `HarnessPredicate<C2>`, it means that the result might be a
|
|
26
|
-
* harness of type `C2`
|
|
27
|
-
* - If one of the queries is for a `string`, it means that the result might be a `TestElement`.
|
|
28
|
-
*
|
|
29
|
-
* Since we don't know for sure which query will match, the result type if the union of the types
|
|
30
|
-
* for all possible results.
|
|
31
|
-
*
|
|
32
|
-
* e.g.
|
|
33
|
-
* The type:
|
|
34
|
-
* `LocatorFnResult<[
|
|
35
|
-
* ComponentHarnessConstructor<MyHarness>,
|
|
36
|
-
* HarnessPredicate<MyOtherHarness>,
|
|
37
|
-
* string
|
|
38
|
-
* ]>`
|
|
39
|
-
* is equivalent to:
|
|
40
|
-
* `MyHarness | MyOtherHarness | TestElement`.
|
|
41
|
-
*/
|
|
42
|
-
export declare type LocatorFnResult<T extends (HarnessQuery<any> | string)[]> = {
|
|
43
|
-
[I in keyof T]: T[I] extends new (...args: any[]) => infer C ? C : T[I] extends {
|
|
44
|
-
harnessType: new (...args: any[]) => infer C;
|
|
45
|
-
} ? C : T[I] extends string ? TestElement : never;
|
|
46
|
-
}[number];
|
|
47
|
-
/**
|
|
48
|
-
* Interface used to load ComponentHarness objects. This interface is used by test authors to
|
|
49
|
-
* instantiate `ComponentHarness`es.
|
|
50
|
-
*/
|
|
51
|
-
export interface HarnessLoader {
|
|
52
|
-
/**
|
|
53
|
-
* Searches for an element with the given selector under the current instances's root element,
|
|
54
|
-
* and returns a `HarnessLoader` rooted at the matching element. If multiple elements match the
|
|
55
|
-
* selector, the first is used. If no elements match, an error is thrown.
|
|
56
|
-
* @param selector The selector for the root element of the new `HarnessLoader`
|
|
57
|
-
* @return A `HarnessLoader` rooted at the element matching the given selector.
|
|
58
|
-
* @throws If a matching element can't be found.
|
|
59
|
-
*/
|
|
60
|
-
getChildLoader(selector: string): Promise<HarnessLoader>;
|
|
61
|
-
/**
|
|
62
|
-
* Searches for all elements with the given selector under the current instances's root element,
|
|
63
|
-
* and returns an array of `HarnessLoader`s, one for each matching element, rooted at that
|
|
64
|
-
* element.
|
|
65
|
-
* @param selector The selector for the root element of the new `HarnessLoader`
|
|
66
|
-
* @return A list of `HarnessLoader`s, one for each matching element, rooted at that element.
|
|
67
|
-
*/
|
|
68
|
-
getAllChildLoaders(selector: string): Promise<HarnessLoader[]>;
|
|
69
|
-
/**
|
|
70
|
-
* Searches for an instance of the component corresponding to the given harness type under the
|
|
71
|
-
* `HarnessLoader`'s root element, and returns a `ComponentHarness` for that instance. If multiple
|
|
72
|
-
* matching components are found, a harness for the first one is returned. If no matching
|
|
73
|
-
* component is found, an error is thrown.
|
|
74
|
-
* @param query A query for a harness to create
|
|
75
|
-
* @return An instance of the given harness type
|
|
76
|
-
* @throws If a matching component instance can't be found.
|
|
77
|
-
*/
|
|
78
|
-
getHarness<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T>;
|
|
79
|
-
/**
|
|
80
|
-
* Searches for an instance of the component corresponding to the given harness type under the
|
|
81
|
-
* `HarnessLoader`'s root element, and returns a `ComponentHarness` for that instance. If multiple
|
|
82
|
-
* matching components are found, a harness for the first one is returned. If no matching
|
|
83
|
-
* component is found, null is returned.
|
|
84
|
-
* @param query A query for a harness to create
|
|
85
|
-
* @return An instance of the given harness type (or null if not found).
|
|
86
|
-
*/
|
|
87
|
-
getHarnessOrNull<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T | null>;
|
|
88
|
-
/**
|
|
89
|
-
* Searches for all instances of the component corresponding to the given harness type under the
|
|
90
|
-
* `HarnessLoader`'s root element, and returns a list `ComponentHarness` for each instance.
|
|
91
|
-
* @param query A query for a harness to create
|
|
92
|
-
* @return A list instances of the given harness type.
|
|
93
|
-
*/
|
|
94
|
-
getAllHarnesses<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T[]>;
|
|
95
|
-
/**
|
|
96
|
-
* Searches for an instance of the component corresponding to the given harness type under the
|
|
97
|
-
* `HarnessLoader`'s root element, and returns a boolean indicating if any were found.
|
|
98
|
-
* @param query A query for a harness to create
|
|
99
|
-
* @return A boolean indicating if an instance was found.
|
|
100
|
-
*/
|
|
101
|
-
hasHarness<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<boolean>;
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Interface used to create asynchronous locator functions used find elements and component
|
|
105
|
-
* harnesses. This interface is used by `ComponentHarness` authors to create locator functions for
|
|
106
|
-
* their `ComponentHarness` subclass.
|
|
107
|
-
*/
|
|
108
|
-
export interface LocatorFactory {
|
|
109
|
-
/** Gets a locator factory rooted at the document root. */
|
|
110
|
-
documentRootLocatorFactory(): LocatorFactory;
|
|
111
|
-
/** The root element of this `LocatorFactory` as a `TestElement`. */
|
|
112
|
-
rootElement: TestElement;
|
|
113
|
-
/**
|
|
114
|
-
* Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance
|
|
115
|
-
* or element under the root element of this `LocatorFactory`.
|
|
116
|
-
* @param queries A list of queries specifying which harnesses and elements to search for:
|
|
117
|
-
* - A `string` searches for elements matching the CSS selector specified by the string.
|
|
118
|
-
* - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the
|
|
119
|
-
* given class.
|
|
120
|
-
* - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given
|
|
121
|
-
* predicate.
|
|
122
|
-
* @return An asynchronous locator function that searches for and returns a `Promise` for the
|
|
123
|
-
* first element or harness matching the given search criteria. Matches are ordered first by
|
|
124
|
-
* order in the DOM, and second by order in the queries list. If no matches are found, the
|
|
125
|
-
* `Promise` rejects. The type that the `Promise` resolves to is a union of all result types for
|
|
126
|
-
* each query.
|
|
127
|
-
*
|
|
128
|
-
* e.g. Given the following DOM: `<div id="d1" /><div id="d2" />`, and assuming
|
|
129
|
-
* `DivHarness.hostSelector === 'div'`:
|
|
130
|
-
* - `await lf.locatorFor(DivHarness, 'div')()` gets a `DivHarness` instance for `#d1`
|
|
131
|
-
* - `await lf.locatorFor('div', DivHarness)()` gets a `TestElement` instance for `#d1`
|
|
132
|
-
* - `await lf.locatorFor('span')()` throws because the `Promise` rejects.
|
|
133
|
-
*/
|
|
134
|
-
locatorFor<T extends (HarnessQuery<any> | string)[]>(...queries: T): AsyncFactoryFn<LocatorFnResult<T>>;
|
|
135
|
-
/**
|
|
136
|
-
* Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance
|
|
137
|
-
* or element under the root element of this `LocatorFactory`.
|
|
138
|
-
* @param queries A list of queries specifying which harnesses and elements to search for:
|
|
139
|
-
* - A `string` searches for elements matching the CSS selector specified by the string.
|
|
140
|
-
* - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the
|
|
141
|
-
* given class.
|
|
142
|
-
* - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given
|
|
143
|
-
* predicate.
|
|
144
|
-
* @return An asynchronous locator function that searches for and returns a `Promise` for the
|
|
145
|
-
* first element or harness matching the given search criteria. Matches are ordered first by
|
|
146
|
-
* order in the DOM, and second by order in the queries list. If no matches are found, the
|
|
147
|
-
* `Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all
|
|
148
|
-
* result types for each query or null.
|
|
149
|
-
*
|
|
150
|
-
* e.g. Given the following DOM: `<div id="d1" /><div id="d2" />`, and assuming
|
|
151
|
-
* `DivHarness.hostSelector === 'div'`:
|
|
152
|
-
* - `await lf.locatorForOptional(DivHarness, 'div')()` gets a `DivHarness` instance for `#d1`
|
|
153
|
-
* - `await lf.locatorForOptional('div', DivHarness)()` gets a `TestElement` instance for `#d1`
|
|
154
|
-
* - `await lf.locatorForOptional('span')()` gets `null`.
|
|
155
|
-
*/
|
|
156
|
-
locatorForOptional<T extends (HarnessQuery<any> | string)[]>(...queries: T): AsyncFactoryFn<LocatorFnResult<T> | null>;
|
|
157
|
-
/**
|
|
158
|
-
* Creates an asynchronous locator function that can be used to find `ComponentHarness` instances
|
|
159
|
-
* or elements under the root element of this `LocatorFactory`.
|
|
160
|
-
* @param queries A list of queries specifying which harnesses and elements to search for:
|
|
161
|
-
* - A `string` searches for elements matching the CSS selector specified by the string.
|
|
162
|
-
* - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the
|
|
163
|
-
* given class.
|
|
164
|
-
* - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given
|
|
165
|
-
* predicate.
|
|
166
|
-
* @return An asynchronous locator function that searches for and returns a `Promise` for all
|
|
167
|
-
* elements and harnesses matching the given search criteria. Matches are ordered first by
|
|
168
|
-
* order in the DOM, and second by order in the queries list. If an element matches more than
|
|
169
|
-
* one `ComponentHarness` class, the locator gets an instance of each for the same element. If
|
|
170
|
-
* an element matches multiple `string` selectors, only one `TestElement` instance is returned
|
|
171
|
-
* for that element. The type that the `Promise` resolves to is an array where each element is
|
|
172
|
-
* the union of all result types for each query.
|
|
173
|
-
*
|
|
174
|
-
* e.g. Given the following DOM: `<div id="d1" /><div id="d2" />`, and assuming
|
|
175
|
-
* `DivHarness.hostSelector === 'div'` and `IdIsD1Harness.hostSelector === '#d1'`:
|
|
176
|
-
* - `await lf.locatorForAll(DivHarness, 'div')()` gets `[
|
|
177
|
-
* DivHarness, // for #d1
|
|
178
|
-
* TestElement, // for #d1
|
|
179
|
-
* DivHarness, // for #d2
|
|
180
|
-
* TestElement // for #d2
|
|
181
|
-
* ]`
|
|
182
|
-
* - `await lf.locatorForAll('div', '#d1')()` gets `[
|
|
183
|
-
* TestElement, // for #d1
|
|
184
|
-
* TestElement // for #d2
|
|
185
|
-
* ]`
|
|
186
|
-
* - `await lf.locatorForAll(DivHarness, IdIsD1Harness)()` gets `[
|
|
187
|
-
* DivHarness, // for #d1
|
|
188
|
-
* IdIsD1Harness, // for #d1
|
|
189
|
-
* DivHarness // for #d2
|
|
190
|
-
* ]`
|
|
191
|
-
* - `await lf.locatorForAll('span')()` gets `[]`.
|
|
192
|
-
*/
|
|
193
|
-
locatorForAll<T extends (HarnessQuery<any> | string)[]>(...queries: T): AsyncFactoryFn<LocatorFnResult<T>[]>;
|
|
194
|
-
/** @return A `HarnessLoader` rooted at the root element of this `LocatorFactory`. */
|
|
195
|
-
rootHarnessLoader(): Promise<HarnessLoader>;
|
|
196
|
-
/**
|
|
197
|
-
* Gets a `HarnessLoader` instance for an element under the root of this `LocatorFactory`.
|
|
198
|
-
* @param selector The selector for the root element.
|
|
199
|
-
* @return A `HarnessLoader` rooted at the first element matching the given selector.
|
|
200
|
-
* @throws If no matching element is found for the given selector.
|
|
201
|
-
*/
|
|
202
|
-
harnessLoaderFor(selector: string): Promise<HarnessLoader>;
|
|
203
|
-
/**
|
|
204
|
-
* Gets a `HarnessLoader` instance for an element under the root of this `LocatorFactory`
|
|
205
|
-
* @param selector The selector for the root element.
|
|
206
|
-
* @return A `HarnessLoader` rooted at the first element matching the given selector, or null if
|
|
207
|
-
* no matching element is found.
|
|
208
|
-
*/
|
|
209
|
-
harnessLoaderForOptional(selector: string): Promise<HarnessLoader | null>;
|
|
210
|
-
/**
|
|
211
|
-
* Gets a list of `HarnessLoader` instances, one for each matching element.
|
|
212
|
-
* @param selector The selector for the root element.
|
|
213
|
-
* @return A list of `HarnessLoader`, one rooted at each element matching the given selector.
|
|
214
|
-
*/
|
|
215
|
-
harnessLoaderForAll(selector: string): Promise<HarnessLoader[]>;
|
|
216
|
-
/**
|
|
217
|
-
* Flushes change detection and async tasks captured in the Angular zone.
|
|
218
|
-
* In most cases it should not be necessary to call this manually. However, there may be some edge
|
|
219
|
-
* cases where it is needed to fully flush animation events.
|
|
220
|
-
*/
|
|
221
|
-
forceStabilize(): Promise<void>;
|
|
222
|
-
/**
|
|
223
|
-
* Waits for all scheduled or running async tasks to complete. This allows harness
|
|
224
|
-
* authors to wait for async tasks outside of the Angular zone.
|
|
225
|
-
*/
|
|
226
|
-
waitForTasksOutsideAngular(): Promise<void>;
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Base class for component harnesses that all component harness authors should extend. This base
|
|
230
|
-
* component harness provides the basic ability to locate element and sub-component harness. It
|
|
231
|
-
* should be inherited when defining user's own harness.
|
|
232
|
-
*/
|
|
233
|
-
export declare abstract class ComponentHarness {
|
|
234
|
-
protected readonly locatorFactory: LocatorFactory;
|
|
235
|
-
constructor(locatorFactory: LocatorFactory);
|
|
236
|
-
/** Gets a `Promise` for the `TestElement` representing the host element of the component. */
|
|
237
|
-
host(): Promise<TestElement>;
|
|
238
|
-
/**
|
|
239
|
-
* Gets a `LocatorFactory` for the document root element. This factory can be used to create
|
|
240
|
-
* locators for elements that a component creates outside of its own root element. (e.g. by
|
|
241
|
-
* appending to document.body).
|
|
242
|
-
*/
|
|
243
|
-
protected documentRootLocatorFactory(): LocatorFactory;
|
|
244
|
-
/**
|
|
245
|
-
* Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance
|
|
246
|
-
* or element under the host element of this `ComponentHarness`.
|
|
247
|
-
* @param queries A list of queries specifying which harnesses and elements to search for:
|
|
248
|
-
* - A `string` searches for elements matching the CSS selector specified by the string.
|
|
249
|
-
* - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the
|
|
250
|
-
* given class.
|
|
251
|
-
* - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given
|
|
252
|
-
* predicate.
|
|
253
|
-
* @return An asynchronous locator function that searches for and returns a `Promise` for the
|
|
254
|
-
* first element or harness matching the given search criteria. Matches are ordered first by
|
|
255
|
-
* order in the DOM, and second by order in the queries list. If no matches are found, the
|
|
256
|
-
* `Promise` rejects. The type that the `Promise` resolves to is a union of all result types for
|
|
257
|
-
* each query.
|
|
258
|
-
*
|
|
259
|
-
* e.g. Given the following DOM: `<div id="d1" /><div id="d2" />`, and assuming
|
|
260
|
-
* `DivHarness.hostSelector === 'div'`:
|
|
261
|
-
* - `await ch.locatorFor(DivHarness, 'div')()` gets a `DivHarness` instance for `#d1`
|
|
262
|
-
* - `await ch.locatorFor('div', DivHarness)()` gets a `TestElement` instance for `#d1`
|
|
263
|
-
* - `await ch.locatorFor('span')()` throws because the `Promise` rejects.
|
|
264
|
-
*/
|
|
265
|
-
protected locatorFor<T extends (HarnessQuery<any> | string)[]>(...queries: T): AsyncFactoryFn<LocatorFnResult<T>>;
|
|
266
|
-
/**
|
|
267
|
-
* Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance
|
|
268
|
-
* or element under the host element of this `ComponentHarness`.
|
|
269
|
-
* @param queries A list of queries specifying which harnesses and elements to search for:
|
|
270
|
-
* - A `string` searches for elements matching the CSS selector specified by the string.
|
|
271
|
-
* - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the
|
|
272
|
-
* given class.
|
|
273
|
-
* - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given
|
|
274
|
-
* predicate.
|
|
275
|
-
* @return An asynchronous locator function that searches for and returns a `Promise` for the
|
|
276
|
-
* first element or harness matching the given search criteria. Matches are ordered first by
|
|
277
|
-
* order in the DOM, and second by order in the queries list. If no matches are found, the
|
|
278
|
-
* `Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all
|
|
279
|
-
* result types for each query or null.
|
|
280
|
-
*
|
|
281
|
-
* e.g. Given the following DOM: `<div id="d1" /><div id="d2" />`, and assuming
|
|
282
|
-
* `DivHarness.hostSelector === 'div'`:
|
|
283
|
-
* - `await ch.locatorForOptional(DivHarness, 'div')()` gets a `DivHarness` instance for `#d1`
|
|
284
|
-
* - `await ch.locatorForOptional('div', DivHarness)()` gets a `TestElement` instance for `#d1`
|
|
285
|
-
* - `await ch.locatorForOptional('span')()` gets `null`.
|
|
286
|
-
*/
|
|
287
|
-
protected locatorForOptional<T extends (HarnessQuery<any> | string)[]>(...queries: T): AsyncFactoryFn<LocatorFnResult<T> | null>;
|
|
288
|
-
/**
|
|
289
|
-
* Creates an asynchronous locator function that can be used to find `ComponentHarness` instances
|
|
290
|
-
* or elements under the host element of this `ComponentHarness`.
|
|
291
|
-
* @param queries A list of queries specifying which harnesses and elements to search for:
|
|
292
|
-
* - A `string` searches for elements matching the CSS selector specified by the string.
|
|
293
|
-
* - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the
|
|
294
|
-
* given class.
|
|
295
|
-
* - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given
|
|
296
|
-
* predicate.
|
|
297
|
-
* @return An asynchronous locator function that searches for and returns a `Promise` for all
|
|
298
|
-
* elements and harnesses matching the given search criteria. Matches are ordered first by
|
|
299
|
-
* order in the DOM, and second by order in the queries list. If an element matches more than
|
|
300
|
-
* one `ComponentHarness` class, the locator gets an instance of each for the same element. If
|
|
301
|
-
* an element matches multiple `string` selectors, only one `TestElement` instance is returned
|
|
302
|
-
* for that element. The type that the `Promise` resolves to is an array where each element is
|
|
303
|
-
* the union of all result types for each query.
|
|
304
|
-
*
|
|
305
|
-
* e.g. Given the following DOM: `<div id="d1" /><div id="d2" />`, and assuming
|
|
306
|
-
* `DivHarness.hostSelector === 'div'` and `IdIsD1Harness.hostSelector === '#d1'`:
|
|
307
|
-
* - `await ch.locatorForAll(DivHarness, 'div')()` gets `[
|
|
308
|
-
* DivHarness, // for #d1
|
|
309
|
-
* TestElement, // for #d1
|
|
310
|
-
* DivHarness, // for #d2
|
|
311
|
-
* TestElement // for #d2
|
|
312
|
-
* ]`
|
|
313
|
-
* - `await ch.locatorForAll('div', '#d1')()` gets `[
|
|
314
|
-
* TestElement, // for #d1
|
|
315
|
-
* TestElement // for #d2
|
|
316
|
-
* ]`
|
|
317
|
-
* - `await ch.locatorForAll(DivHarness, IdIsD1Harness)()` gets `[
|
|
318
|
-
* DivHarness, // for #d1
|
|
319
|
-
* IdIsD1Harness, // for #d1
|
|
320
|
-
* DivHarness // for #d2
|
|
321
|
-
* ]`
|
|
322
|
-
* - `await ch.locatorForAll('span')()` gets `[]`.
|
|
323
|
-
*/
|
|
324
|
-
protected locatorForAll<T extends (HarnessQuery<any> | string)[]>(...queries: T): AsyncFactoryFn<LocatorFnResult<T>[]>;
|
|
325
|
-
/**
|
|
326
|
-
* Flushes change detection and async tasks in the Angular zone.
|
|
327
|
-
* In most cases it should not be necessary to call this manually. However, there may be some edge
|
|
328
|
-
* cases where it is needed to fully flush animation events.
|
|
329
|
-
*/
|
|
330
|
-
protected forceStabilize(): Promise<void>;
|
|
331
|
-
/**
|
|
332
|
-
* Waits for all scheduled or running async tasks to complete. This allows harness
|
|
333
|
-
* authors to wait for async tasks outside of the Angular zone.
|
|
334
|
-
*/
|
|
335
|
-
protected waitForTasksOutsideAngular(): Promise<void>;
|
|
336
|
-
}
|
|
337
|
-
/**
|
|
338
|
-
* Base class for component harnesses that authors should extend if they anticipate that consumers
|
|
339
|
-
* of the harness may want to access other harnesses within the `<ng-content>` of the component.
|
|
340
|
-
*/
|
|
341
|
-
export declare abstract class ContentContainerComponentHarness<S extends string = string> extends ComponentHarness implements HarnessLoader {
|
|
342
|
-
getChildLoader(selector: S): Promise<HarnessLoader>;
|
|
343
|
-
getAllChildLoaders(selector: S): Promise<HarnessLoader[]>;
|
|
344
|
-
getHarness<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T>;
|
|
345
|
-
getHarnessOrNull<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T | null>;
|
|
346
|
-
getAllHarnesses<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T[]>;
|
|
347
|
-
hasHarness<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<boolean>;
|
|
348
|
-
/**
|
|
349
|
-
* Gets the root harness loader from which to start
|
|
350
|
-
* searching for content contained by this harness.
|
|
351
|
-
*/
|
|
352
|
-
protected getRootHarnessLoader(): Promise<HarnessLoader>;
|
|
353
|
-
}
|
|
354
|
-
/** Constructor for a ComponentHarness subclass. */
|
|
355
|
-
export interface ComponentHarnessConstructor<T extends ComponentHarness> {
|
|
356
|
-
new (locatorFactory: LocatorFactory): T;
|
|
357
|
-
/**
|
|
358
|
-
* `ComponentHarness` subclasses must specify a static `hostSelector` property that is used to
|
|
359
|
-
* find the host element for the corresponding component. This property should match the selector
|
|
360
|
-
* for the Angular component.
|
|
361
|
-
*/
|
|
362
|
-
hostSelector: string;
|
|
363
|
-
}
|
|
364
|
-
/** A set of criteria that can be used to filter a list of `ComponentHarness` instances. */
|
|
365
|
-
export interface BaseHarnessFilters {
|
|
366
|
-
/** Only find instances whose host element matches the given selector. */
|
|
367
|
-
selector?: string;
|
|
368
|
-
/** Only find instances that are nested under an element with the given selector. */
|
|
369
|
-
ancestor?: string;
|
|
370
|
-
}
|
|
371
|
-
/**
|
|
372
|
-
* A class used to associate a ComponentHarness class with predicates functions that can be used to
|
|
373
|
-
* filter instances of the class.
|
|
374
|
-
*/
|
|
375
|
-
export declare class HarnessPredicate<T extends ComponentHarness> {
|
|
376
|
-
harnessType: ComponentHarnessConstructor<T>;
|
|
377
|
-
private _predicates;
|
|
378
|
-
private _descriptions;
|
|
379
|
-
private _ancestor;
|
|
380
|
-
constructor(harnessType: ComponentHarnessConstructor<T>, options: BaseHarnessFilters);
|
|
381
|
-
/**
|
|
382
|
-
* Checks if the specified nullable string value matches the given pattern.
|
|
383
|
-
* @param value The nullable string value to check, or a Promise resolving to the
|
|
384
|
-
* nullable string value.
|
|
385
|
-
* @param pattern The pattern the value is expected to match. If `pattern` is a string,
|
|
386
|
-
* `value` is expected to match exactly. If `pattern` is a regex, a partial match is
|
|
387
|
-
* allowed. If `pattern` is `null`, the value is expected to be `null`.
|
|
388
|
-
* @return Whether the value matches the pattern.
|
|
389
|
-
*/
|
|
390
|
-
static stringMatches(value: string | null | Promise<string | null>, pattern: string | RegExp | null): Promise<boolean>;
|
|
391
|
-
/**
|
|
392
|
-
* Adds a predicate function to be run against candidate harnesses.
|
|
393
|
-
* @param description A description of this predicate that may be used in error messages.
|
|
394
|
-
* @param predicate An async predicate function.
|
|
395
|
-
* @return this (for method chaining).
|
|
396
|
-
*/
|
|
397
|
-
add(description: string, predicate: AsyncPredicate<T>): this;
|
|
398
|
-
/**
|
|
399
|
-
* Adds a predicate function that depends on an option value to be run against candidate
|
|
400
|
-
* harnesses. If the option value is undefined, the predicate will be ignored.
|
|
401
|
-
* @param name The name of the option (may be used in error messages).
|
|
402
|
-
* @param option The option value.
|
|
403
|
-
* @param predicate The predicate function to run if the option value is not undefined.
|
|
404
|
-
* @return this (for method chaining).
|
|
405
|
-
*/
|
|
406
|
-
addOption<O>(name: string, option: O | undefined, predicate: AsyncOptionPredicate<T, O>): this;
|
|
407
|
-
/**
|
|
408
|
-
* Filters a list of harnesses on this predicate.
|
|
409
|
-
* @param harnesses The list of harnesses to filter.
|
|
410
|
-
* @return A list of harnesses that satisfy this predicate.
|
|
411
|
-
*/
|
|
412
|
-
filter(harnesses: T[]): Promise<T[]>;
|
|
413
|
-
/**
|
|
414
|
-
* Evaluates whether the given harness satisfies this predicate.
|
|
415
|
-
* @param harness The harness to check
|
|
416
|
-
* @return A promise that resolves to true if the harness satisfies this predicate,
|
|
417
|
-
* and resolves to false otherwise.
|
|
418
|
-
*/
|
|
419
|
-
evaluate(harness: T): Promise<boolean>;
|
|
420
|
-
/** Gets a description of this predicate for use in error messages. */
|
|
421
|
-
getDescription(): string;
|
|
422
|
-
/** Gets the selector used to find candidate elements. */
|
|
423
|
-
getSelector(): string;
|
|
424
|
-
/** Adds base options common to all harness types. */
|
|
425
|
-
private _addBaseOptions;
|
|
426
|
-
}
|
|
@@ -1,16 +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
|
-
* Dimensions for element size and its position relative to the viewport.
|
|
10
|
-
*/
|
|
11
|
-
export interface ElementDimensions {
|
|
12
|
-
top: number;
|
|
13
|
-
left: number;
|
|
14
|
-
width: number;
|
|
15
|
-
height: number;
|
|
16
|
-
}
|
|
@@ -1,62 +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 { AsyncFactoryFn, ComponentHarness, ComponentHarnessConstructor, HarnessLoader, HarnessQuery, LocatorFactory, LocatorFnResult } from './component-harness';
|
|
9
|
-
import { TestElement } from './test-element';
|
|
10
|
-
/**
|
|
11
|
-
* Base harness environment class that can be extended to allow `ComponentHarness`es to be used in
|
|
12
|
-
* different test environments (e.g. testbed, protractor, etc.). This class implements the
|
|
13
|
-
* functionality of both a `HarnessLoader` and `LocatorFactory`. This class is generic on the raw
|
|
14
|
-
* element type, `E`, used by the particular test environment.
|
|
15
|
-
*/
|
|
16
|
-
export declare abstract class HarnessEnvironment<E> implements HarnessLoader, LocatorFactory {
|
|
17
|
-
protected rawRootElement: E;
|
|
18
|
-
get rootElement(): TestElement;
|
|
19
|
-
set rootElement(element: TestElement);
|
|
20
|
-
private _rootElement;
|
|
21
|
-
protected constructor(rawRootElement: E);
|
|
22
|
-
documentRootLocatorFactory(): LocatorFactory;
|
|
23
|
-
locatorFor<T extends (HarnessQuery<any> | string)[]>(...queries: T): AsyncFactoryFn<LocatorFnResult<T>>;
|
|
24
|
-
locatorForOptional<T extends (HarnessQuery<any> | string)[]>(...queries: T): AsyncFactoryFn<LocatorFnResult<T> | null>;
|
|
25
|
-
locatorForAll<T extends (HarnessQuery<any> | string)[]>(...queries: T): AsyncFactoryFn<LocatorFnResult<T>[]>;
|
|
26
|
-
rootHarnessLoader(): Promise<HarnessLoader>;
|
|
27
|
-
harnessLoaderFor(selector: string): Promise<HarnessLoader>;
|
|
28
|
-
harnessLoaderForOptional(selector: string): Promise<HarnessLoader | null>;
|
|
29
|
-
harnessLoaderForAll(selector: string): Promise<HarnessLoader[]>;
|
|
30
|
-
getHarness<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T>;
|
|
31
|
-
getHarnessOrNull<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T | null>;
|
|
32
|
-
getAllHarnesses<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T[]>;
|
|
33
|
-
hasHarness<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<boolean>;
|
|
34
|
-
getChildLoader(selector: string): Promise<HarnessLoader>;
|
|
35
|
-
getAllChildLoaders(selector: string): Promise<HarnessLoader[]>;
|
|
36
|
-
/** Creates a `ComponentHarness` for the given harness type with the given raw host element. */
|
|
37
|
-
protected createComponentHarness<T extends ComponentHarness>(harnessType: ComponentHarnessConstructor<T>, element: E): T;
|
|
38
|
-
abstract forceStabilize(): Promise<void>;
|
|
39
|
-
abstract waitForTasksOutsideAngular(): Promise<void>;
|
|
40
|
-
/** Gets the root element for the document. */
|
|
41
|
-
protected abstract getDocumentRoot(): E;
|
|
42
|
-
/** Creates a `TestElement` from a raw element. */
|
|
43
|
-
protected abstract createTestElement(element: E): TestElement;
|
|
44
|
-
/** Creates a `HarnessLoader` rooted at the given raw element. */
|
|
45
|
-
protected abstract createEnvironment(element: E): HarnessEnvironment<E>;
|
|
46
|
-
/**
|
|
47
|
-
* Gets a list of all elements matching the given selector under this environment's root element.
|
|
48
|
-
*/
|
|
49
|
-
protected abstract getAllRawElements(selector: string): Promise<E[]>;
|
|
50
|
-
/**
|
|
51
|
-
* Matches the given raw elements with the given list of element and harness queries to produce a
|
|
52
|
-
* list of matched harnesses and test elements.
|
|
53
|
-
*/
|
|
54
|
-
private _getAllHarnessesAndTestElements;
|
|
55
|
-
/**
|
|
56
|
-
* Check whether the given query matches the given element, if it does return the matched
|
|
57
|
-
* `TestElement` or `ComponentHarness`, if it does not, return null. In cases where the caller
|
|
58
|
-
* knows for sure that the query matches the element's selector, `skipSelectorCheck` can be used
|
|
59
|
-
* to skip verification and optimize performance.
|
|
60
|
-
*/
|
|
61
|
-
private _getQueryResultForElement;
|
|
62
|
-
}
|
package/testing/package.json
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@angular/cdk/testing",
|
|
3
|
-
"fesm2020": "../fesm2020/testing.mjs",
|
|
4
|
-
"fesm2015": "../fesm2015/testing.mjs",
|
|
5
|
-
"esm2020": "../esm2020/testing/index.mjs",
|
|
6
|
-
"typings": "./index.d.ts",
|
|
7
|
-
"module": "../fesm2015/testing.mjs",
|
|
8
|
-
"es2020": "../fesm2020/testing.mjs"
|
|
9
|
-
}
|
package/testing/public-api.d.ts
DELETED
|
@@ -1,14 +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 './component-harness';
|
|
9
|
-
export * from './harness-environment';
|
|
10
|
-
export * from './test-element';
|
|
11
|
-
export * from './test-element-errors';
|
|
12
|
-
export * from './element-dimensions';
|
|
13
|
-
export * from './text-filtering';
|
|
14
|
-
export * from './change-detection';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@angular/cdk/testing/selenium-webdriver",
|
|
3
|
-
"fesm2020": "../../fesm2020/testing/selenium-webdriver.mjs",
|
|
4
|
-
"fesm2015": "../../fesm2015/testing/selenium-webdriver.mjs",
|
|
5
|
-
"esm2020": "../../esm2020/testing/selenium-webdriver/index.mjs",
|
|
6
|
-
"typings": "./index.d.ts",
|
|
7
|
-
"module": "../../fesm2015/testing/selenium-webdriver.mjs",
|
|
8
|
-
"es2020": "../../fesm2020/testing/selenium-webdriver.mjs"
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
export * from './selenium-web-driver-element';
|
|
9
|
-
export * from './selenium-web-driver-harness-environment';
|