@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,91 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { ElementDimensions, EventData, ModifierKeys, TestElement, TestKey, TextOptions } from '@angular/cdk/testing';
|
|
9
|
-
import * as webdriver from 'selenium-webdriver';
|
|
10
|
-
/** A `TestElement` implementation for WebDriver. */
|
|
11
|
-
export declare class SeleniumWebDriverElement implements TestElement {
|
|
12
|
-
readonly element: () => webdriver.WebElement;
|
|
13
|
-
private _stabilize;
|
|
14
|
-
constructor(element: () => webdriver.WebElement, _stabilize: () => Promise<void>);
|
|
15
|
-
/** Blur the element. */
|
|
16
|
-
blur(): Promise<void>;
|
|
17
|
-
/** Clear the element's input (for input and textarea elements only). */
|
|
18
|
-
clear(): Promise<void>;
|
|
19
|
-
/**
|
|
20
|
-
* Click the element at the default location for the current environment. If you need to guarantee
|
|
21
|
-
* the element is clicked at a specific location, consider using `click('center')` or
|
|
22
|
-
* `click(x, y)` instead.
|
|
23
|
-
*/
|
|
24
|
-
click(modifiers?: ModifierKeys): Promise<void>;
|
|
25
|
-
/** Click the element at the element's center. */
|
|
26
|
-
click(location: 'center', modifiers?: ModifierKeys): Promise<void>;
|
|
27
|
-
/**
|
|
28
|
-
* Click the element at the specified coordinates relative to the top-left of the element.
|
|
29
|
-
* @param relativeX Coordinate within the element, along the X-axis at which to click.
|
|
30
|
-
* @param relativeY Coordinate within the element, along the Y-axis at which to click.
|
|
31
|
-
* @param modifiers Modifier keys held while clicking
|
|
32
|
-
*/
|
|
33
|
-
click(relativeX: number, relativeY: number, modifiers?: ModifierKeys): Promise<void>;
|
|
34
|
-
/**
|
|
35
|
-
* Right clicks on the element at the specified coordinates relative to the top-left of it.
|
|
36
|
-
* @param relativeX Coordinate within the element, along the X-axis at which to click.
|
|
37
|
-
* @param relativeY Coordinate within the element, along the Y-axis at which to click.
|
|
38
|
-
* @param modifiers Modifier keys held while clicking
|
|
39
|
-
*/
|
|
40
|
-
rightClick(relativeX: number, relativeY: number, modifiers?: ModifierKeys): Promise<void>;
|
|
41
|
-
/** Focus the element. */
|
|
42
|
-
focus(): Promise<void>;
|
|
43
|
-
/** Get the computed value of the given CSS property for the element. */
|
|
44
|
-
getCssValue(property: string): Promise<string>;
|
|
45
|
-
/** Hovers the mouse over the element. */
|
|
46
|
-
hover(): Promise<void>;
|
|
47
|
-
/** Moves the mouse away from the element. */
|
|
48
|
-
mouseAway(): Promise<void>;
|
|
49
|
-
/**
|
|
50
|
-
* Sends the given string to the input as a series of key presses. Also fires input events
|
|
51
|
-
* and attempts to add the string to the Element's value.
|
|
52
|
-
*/
|
|
53
|
-
sendKeys(...keys: (string | TestKey)[]): Promise<void>;
|
|
54
|
-
/**
|
|
55
|
-
* Sends the given string to the input as a series of key presses. Also fires input events
|
|
56
|
-
* and attempts to add the string to the Element's value.
|
|
57
|
-
*/
|
|
58
|
-
sendKeys(modifiers: ModifierKeys, ...keys: (string | TestKey)[]): Promise<void>;
|
|
59
|
-
/**
|
|
60
|
-
* Gets the text from the element.
|
|
61
|
-
* @param options Options that affect what text is included.
|
|
62
|
-
*/
|
|
63
|
-
text(options?: TextOptions): Promise<string>;
|
|
64
|
-
/** Gets the value for the given attribute from the element. */
|
|
65
|
-
getAttribute(name: string): Promise<string | null>;
|
|
66
|
-
/** Checks whether the element has the given class. */
|
|
67
|
-
hasClass(name: string): Promise<boolean>;
|
|
68
|
-
/** Gets the dimensions of the element. */
|
|
69
|
-
getDimensions(): Promise<ElementDimensions>;
|
|
70
|
-
/** Gets the value of a property of an element. */
|
|
71
|
-
getProperty<T = any>(name: string): Promise<T>;
|
|
72
|
-
/** Sets the value of a property of an input. */
|
|
73
|
-
setInputValue(newValue: string): Promise<void>;
|
|
74
|
-
/** Selects the options at the specified indexes inside of a native `select` element. */
|
|
75
|
-
selectOptions(...optionIndexes: number[]): Promise<void>;
|
|
76
|
-
/** Checks whether this element matches the given selector. */
|
|
77
|
-
matchesSelector(selector: string): Promise<boolean>;
|
|
78
|
-
/** Checks whether the element is focused. */
|
|
79
|
-
isFocused(): Promise<boolean>;
|
|
80
|
-
/**
|
|
81
|
-
* Dispatches an event with a particular name.
|
|
82
|
-
* @param name Name of the event to be dispatched.
|
|
83
|
-
*/
|
|
84
|
-
dispatchEvent(name: string, data?: Record<string, EventData>): Promise<void>;
|
|
85
|
-
/** Gets the webdriver action sequence. */
|
|
86
|
-
private _actions;
|
|
87
|
-
/** Executes a function in the browser. */
|
|
88
|
-
private _executeScript;
|
|
89
|
-
/** Dispatches all the events that are part of a click event sequence. */
|
|
90
|
-
private _dispatchClickEventSequence;
|
|
91
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { HarnessEnvironment, HarnessLoader, TestElement } from '@angular/cdk/testing';
|
|
9
|
-
import * as webdriver from 'selenium-webdriver';
|
|
10
|
-
/**
|
|
11
|
-
* An Angular framework stabilizer function that takes a callback and calls it when the application
|
|
12
|
-
* is stable, passing a boolean indicating if any work was done.
|
|
13
|
-
*/
|
|
14
|
-
declare interface FrameworkStabilizer {
|
|
15
|
-
(callback: (didWork: boolean) => void): void;
|
|
16
|
-
}
|
|
17
|
-
declare global {
|
|
18
|
-
interface Window {
|
|
19
|
-
/**
|
|
20
|
-
* These hooks are exposed by Angular to register a callback for when the application is stable
|
|
21
|
-
* (no more pending tasks).
|
|
22
|
-
*
|
|
23
|
-
* For the implementation, see: https://github.com/
|
|
24
|
-
* angular/angular/blob/master/packages/platform-browser/src/browser/testability.ts#L30-L49
|
|
25
|
-
*/
|
|
26
|
-
frameworkStabilizers: FrameworkStabilizer[];
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
/** Options to configure the environment. */
|
|
30
|
-
export interface WebDriverHarnessEnvironmentOptions {
|
|
31
|
-
/** The query function used to find DOM elements. */
|
|
32
|
-
queryFn: (selector: string, root: () => webdriver.WebElement) => Promise<webdriver.WebElement[]>;
|
|
33
|
-
}
|
|
34
|
-
/** Waits for angular to be ready after the page load. */
|
|
35
|
-
export declare function waitForAngularReady(wd: webdriver.WebDriver): Promise<void>;
|
|
36
|
-
/** A `HarnessEnvironment` implementation for WebDriver. */
|
|
37
|
-
export declare class SeleniumWebDriverHarnessEnvironment extends HarnessEnvironment<() => webdriver.WebElement> {
|
|
38
|
-
/** The options for this environment. */
|
|
39
|
-
private _options;
|
|
40
|
-
/** Environment stabilization callback passed to the created test elements. */
|
|
41
|
-
private _stabilizeCallback;
|
|
42
|
-
protected constructor(rawRootElement: () => webdriver.WebElement, options?: WebDriverHarnessEnvironmentOptions);
|
|
43
|
-
/** Gets the ElementFinder corresponding to the given TestElement. */
|
|
44
|
-
static getNativeElement(el: TestElement): webdriver.WebElement;
|
|
45
|
-
/** Creates a `HarnessLoader` rooted at the document root. */
|
|
46
|
-
static loader(driver: webdriver.WebDriver, options?: WebDriverHarnessEnvironmentOptions): HarnessLoader;
|
|
47
|
-
/**
|
|
48
|
-
* Flushes change detection and async tasks captured in the Angular zone.
|
|
49
|
-
* In most cases it should not be necessary to call this manually. However, there may be some edge
|
|
50
|
-
* cases where it is needed to fully flush animation events.
|
|
51
|
-
*/
|
|
52
|
-
forceStabilize(): Promise<void>;
|
|
53
|
-
/** @docs-private */
|
|
54
|
-
waitForTasksOutsideAngular(): Promise<void>;
|
|
55
|
-
/** Gets the root element for the document. */
|
|
56
|
-
protected getDocumentRoot(): () => webdriver.WebElement;
|
|
57
|
-
/** Creates a `TestElement` from a raw element. */
|
|
58
|
-
protected createTestElement(element: () => webdriver.WebElement): TestElement;
|
|
59
|
-
/** Creates a `HarnessLoader` rooted at the given raw element. */
|
|
60
|
-
protected createEnvironment(element: () => webdriver.WebElement): HarnessEnvironment<() => webdriver.WebElement>;
|
|
61
|
-
/**
|
|
62
|
-
* Gets a list of all elements matching the given selector under this environment's root element.
|
|
63
|
-
*/
|
|
64
|
-
protected getAllRawElements(selector: string): Promise<(() => webdriver.WebElement)[]>;
|
|
65
|
-
}
|
|
66
|
-
export {};
|
|
@@ -1,46 +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 { ModifierKeys } from '@angular/cdk/testing';
|
|
9
|
-
/**
|
|
10
|
-
* Maps the `TestKey` constants to WebDriver's `webdriver.Key` constants.
|
|
11
|
-
* See https://github.com/SeleniumHQ/selenium/blob/trunk/javascript/webdriver/key.js#L29
|
|
12
|
-
*/
|
|
13
|
-
export declare const seleniumWebDriverKeyMap: {
|
|
14
|
-
0: string;
|
|
15
|
-
1: string;
|
|
16
|
-
2: string;
|
|
17
|
-
3: string;
|
|
18
|
-
4: string;
|
|
19
|
-
5: string;
|
|
20
|
-
6: string;
|
|
21
|
-
7: string;
|
|
22
|
-
8: string;
|
|
23
|
-
9: string;
|
|
24
|
-
10: string;
|
|
25
|
-
11: string;
|
|
26
|
-
12: string;
|
|
27
|
-
13: string;
|
|
28
|
-
14: string;
|
|
29
|
-
15: string;
|
|
30
|
-
16: string;
|
|
31
|
-
17: string;
|
|
32
|
-
18: string;
|
|
33
|
-
19: string;
|
|
34
|
-
20: string;
|
|
35
|
-
21: string;
|
|
36
|
-
22: string;
|
|
37
|
-
23: string;
|
|
38
|
-
24: string;
|
|
39
|
-
25: string;
|
|
40
|
-
26: string;
|
|
41
|
-
27: string;
|
|
42
|
-
28: string;
|
|
43
|
-
29: string;
|
|
44
|
-
};
|
|
45
|
-
/** Gets a list of WebDriver `Key`s for the given `ModifierKeys`. */
|
|
46
|
-
export declare function getSeleniumWebDriverModifierKeys(modifiers: ModifierKeys): string[];
|
|
@@ -1,12 +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
|
-
* Returns an error which reports that no keys have been specified.
|
|
10
|
-
* @docs-private
|
|
11
|
-
*/
|
|
12
|
-
export declare function getNoKeysSpecifiedError(): Error;
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { ElementDimensions } from './element-dimensions';
|
|
9
|
-
/** Modifier keys that may be held while typing. */
|
|
10
|
-
export interface ModifierKeys {
|
|
11
|
-
control?: boolean;
|
|
12
|
-
alt?: boolean;
|
|
13
|
-
shift?: boolean;
|
|
14
|
-
meta?: boolean;
|
|
15
|
-
}
|
|
16
|
-
/** Data that can be attached to a custom event dispatched from a `TestElement`. */
|
|
17
|
-
export declare type EventData = string | number | boolean | undefined | null | EventData[] | {
|
|
18
|
-
[key: string]: EventData;
|
|
19
|
-
};
|
|
20
|
-
/** An enum of non-text keys that can be used with the `sendKeys` method. */
|
|
21
|
-
export declare enum TestKey {
|
|
22
|
-
BACKSPACE = 0,
|
|
23
|
-
TAB = 1,
|
|
24
|
-
ENTER = 2,
|
|
25
|
-
SHIFT = 3,
|
|
26
|
-
CONTROL = 4,
|
|
27
|
-
ALT = 5,
|
|
28
|
-
ESCAPE = 6,
|
|
29
|
-
PAGE_UP = 7,
|
|
30
|
-
PAGE_DOWN = 8,
|
|
31
|
-
END = 9,
|
|
32
|
-
HOME = 10,
|
|
33
|
-
LEFT_ARROW = 11,
|
|
34
|
-
UP_ARROW = 12,
|
|
35
|
-
RIGHT_ARROW = 13,
|
|
36
|
-
DOWN_ARROW = 14,
|
|
37
|
-
INSERT = 15,
|
|
38
|
-
DELETE = 16,
|
|
39
|
-
F1 = 17,
|
|
40
|
-
F2 = 18,
|
|
41
|
-
F3 = 19,
|
|
42
|
-
F4 = 20,
|
|
43
|
-
F5 = 21,
|
|
44
|
-
F6 = 22,
|
|
45
|
-
F7 = 23,
|
|
46
|
-
F8 = 24,
|
|
47
|
-
F9 = 25,
|
|
48
|
-
F10 = 26,
|
|
49
|
-
F11 = 27,
|
|
50
|
-
F12 = 28,
|
|
51
|
-
META = 29
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* This acts as a common interface for DOM elements across both unit and e2e tests. It is the
|
|
55
|
-
* interface through which the ComponentHarness interacts with the component's DOM.
|
|
56
|
-
*/
|
|
57
|
-
export interface TestElement {
|
|
58
|
-
/** Blur the element. */
|
|
59
|
-
blur(): Promise<void>;
|
|
60
|
-
/** Clear the element's input (for input and textarea elements only). */
|
|
61
|
-
clear(): Promise<void>;
|
|
62
|
-
/**
|
|
63
|
-
* Click the element at the default location for the current environment. If you need to guarantee
|
|
64
|
-
* the element is clicked at a specific location, consider using `click('center')` or
|
|
65
|
-
* `click(x, y)` instead.
|
|
66
|
-
*/
|
|
67
|
-
click(modifiers?: ModifierKeys): Promise<void>;
|
|
68
|
-
/** Click the element at the element's center. */
|
|
69
|
-
click(location: 'center', modifiers?: ModifierKeys): Promise<void>;
|
|
70
|
-
/**
|
|
71
|
-
* Click the element at the specified coordinates relative to the top-left of the element.
|
|
72
|
-
* @param relativeX Coordinate within the element, along the X-axis at which to click.
|
|
73
|
-
* @param relativeY Coordinate within the element, along the Y-axis at which to click.
|
|
74
|
-
* @param modifiers Modifier keys held while clicking
|
|
75
|
-
*/
|
|
76
|
-
click(relativeX: number, relativeY: number, modifiers?: ModifierKeys): Promise<void>;
|
|
77
|
-
/**
|
|
78
|
-
* Right clicks on the element at the specified coordinates relative to the top-left of it.
|
|
79
|
-
* @param relativeX Coordinate within the element, along the X-axis at which to click.
|
|
80
|
-
* @param relativeY Coordinate within the element, along the Y-axis at which to click.
|
|
81
|
-
* @param modifiers Modifier keys held while clicking
|
|
82
|
-
*/
|
|
83
|
-
rightClick(relativeX: number, relativeY: number, modifiers?: ModifierKeys): Promise<void>;
|
|
84
|
-
/** Focus the element. */
|
|
85
|
-
focus(): Promise<void>;
|
|
86
|
-
/** Get the computed value of the given CSS property for the element. */
|
|
87
|
-
getCssValue(property: string): Promise<string>;
|
|
88
|
-
/** Hovers the mouse over the element. */
|
|
89
|
-
hover(): Promise<void>;
|
|
90
|
-
/** Moves the mouse away from the element. */
|
|
91
|
-
mouseAway(): Promise<void>;
|
|
92
|
-
/**
|
|
93
|
-
* Sends the given string to the input as a series of key presses. Also fires input events
|
|
94
|
-
* and attempts to add the string to the Element's value. Note that some environments cannot
|
|
95
|
-
* reproduce native browser behavior for keyboard shortcuts such as Tab, Ctrl + A, etc.
|
|
96
|
-
* @throws An error if no keys have been specified.
|
|
97
|
-
*/
|
|
98
|
-
sendKeys(...keys: (string | TestKey)[]): Promise<void>;
|
|
99
|
-
/**
|
|
100
|
-
* Sends the given string to the input as a series of key presses. Also fires input
|
|
101
|
-
* events and attempts to add the string to the Element's value.
|
|
102
|
-
* @throws An error if no keys have been specified.
|
|
103
|
-
*/
|
|
104
|
-
sendKeys(modifiers: ModifierKeys, ...keys: (string | TestKey)[]): Promise<void>;
|
|
105
|
-
/**
|
|
106
|
-
* Gets the text from the element.
|
|
107
|
-
* @param options Options that affect what text is included.
|
|
108
|
-
*/
|
|
109
|
-
text(options?: TextOptions): Promise<string>;
|
|
110
|
-
/** Gets the value for the given attribute from the element. */
|
|
111
|
-
getAttribute(name: string): Promise<string | null>;
|
|
112
|
-
/** Checks whether the element has the given class. */
|
|
113
|
-
hasClass(name: string): Promise<boolean>;
|
|
114
|
-
/** Gets the dimensions of the element. */
|
|
115
|
-
getDimensions(): Promise<ElementDimensions>;
|
|
116
|
-
/** Gets the value of a property of an element. */
|
|
117
|
-
getProperty<T = any>(name: string): Promise<T>;
|
|
118
|
-
/** Checks whether this element matches the given selector. */
|
|
119
|
-
matchesSelector(selector: string): Promise<boolean>;
|
|
120
|
-
/** Checks whether the element is focused. */
|
|
121
|
-
isFocused(): Promise<boolean>;
|
|
122
|
-
/** Sets the value of a property of an input. */
|
|
123
|
-
setInputValue(value: string): Promise<void>;
|
|
124
|
-
/** Selects the options at the specified indexes inside of a native `select` element. */
|
|
125
|
-
selectOptions(...optionIndexes: number[]): Promise<void>;
|
|
126
|
-
/**
|
|
127
|
-
* Dispatches an event with a particular name.
|
|
128
|
-
* @param name Name of the event to be dispatched.
|
|
129
|
-
*/
|
|
130
|
-
dispatchEvent(name: string, data?: Record<string, EventData>): Promise<void>;
|
|
131
|
-
}
|
|
132
|
-
export interface TextOptions {
|
|
133
|
-
/** Optional selector for elements to exclude. */
|
|
134
|
-
exclude?: string;
|
|
135
|
-
}
|
|
@@ -1,39 +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 { ModifierKeys } from '@angular/cdk/testing';
|
|
9
|
-
/**
|
|
10
|
-
* Utility to dispatch any event on a Node.
|
|
11
|
-
* @docs-private
|
|
12
|
-
*/
|
|
13
|
-
export declare function dispatchEvent<T extends Event>(node: Node | Window, event: T): T;
|
|
14
|
-
/**
|
|
15
|
-
* Shorthand to dispatch a fake event on a specified node.
|
|
16
|
-
* @docs-private
|
|
17
|
-
*/
|
|
18
|
-
export declare function dispatchFakeEvent(node: Node | Window, type: string, bubbles?: boolean): Event;
|
|
19
|
-
/**
|
|
20
|
-
* Shorthand to dispatch a keyboard event with a specified key code and
|
|
21
|
-
* optional modifiers.
|
|
22
|
-
* @docs-private
|
|
23
|
-
*/
|
|
24
|
-
export declare function dispatchKeyboardEvent(node: Node, type: string, keyCode?: number, key?: string, modifiers?: ModifierKeys): KeyboardEvent;
|
|
25
|
-
/**
|
|
26
|
-
* Shorthand to dispatch a mouse event on the specified coordinates.
|
|
27
|
-
* @docs-private
|
|
28
|
-
*/
|
|
29
|
-
export declare function dispatchMouseEvent(node: Node, type: string, clientX?: number, clientY?: number, button?: number, modifiers?: ModifierKeys): MouseEvent;
|
|
30
|
-
/**
|
|
31
|
-
* Shorthand to dispatch a pointer event on the specified coordinates.
|
|
32
|
-
* @docs-private
|
|
33
|
-
*/
|
|
34
|
-
export declare function dispatchPointerEvent(node: Node, type: string, clientX?: number, clientY?: number, options?: PointerEventInit): PointerEvent;
|
|
35
|
-
/**
|
|
36
|
-
* Shorthand to dispatch a touch event on the specified coordinates.
|
|
37
|
-
* @docs-private
|
|
38
|
-
*/
|
|
39
|
-
export declare function dispatchTouchEvent(node: Node, type: string, pageX?: number, pageY?: number, clientX?: number, clientY?: number): UIEvent;
|
|
@@ -1,18 +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
|
-
* Patches an elements focus and blur methods to emit events consistently and predictably.
|
|
10
|
-
* This is necessary, because some browsers can call the focus handlers asynchronously,
|
|
11
|
-
* while others won't fire them at all if the browser window is not focused.
|
|
12
|
-
* @docs-private
|
|
13
|
-
*/
|
|
14
|
-
export declare function patchElementFocus(element: HTMLElement): void;
|
|
15
|
-
/** @docs-private */
|
|
16
|
-
export declare function triggerFocus(element: HTMLElement): void;
|
|
17
|
-
/** @docs-private */
|
|
18
|
-
export declare function triggerBlur(element: HTMLElement): void;
|
|
@@ -1,39 +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 { ModifierKeys } from '@angular/cdk/testing';
|
|
9
|
-
/**
|
|
10
|
-
* Creates a browser MouseEvent with the specified options.
|
|
11
|
-
* @docs-private
|
|
12
|
-
*/
|
|
13
|
-
export declare function createMouseEvent(type: string, clientX?: number, clientY?: number, button?: number, modifiers?: ModifierKeys): MouseEvent;
|
|
14
|
-
/**
|
|
15
|
-
* Creates a browser `PointerEvent` with the specified options. Pointer events
|
|
16
|
-
* by default will appear as if they are the primary pointer of their type.
|
|
17
|
-
* https://www.w3.org/TR/pointerevents2/#dom-pointerevent-isprimary.
|
|
18
|
-
*
|
|
19
|
-
* For example, if pointer events for a multi-touch interaction are created, the non-primary
|
|
20
|
-
* pointer touches would need to be represented by non-primary pointer events.
|
|
21
|
-
*
|
|
22
|
-
* @docs-private
|
|
23
|
-
*/
|
|
24
|
-
export declare function createPointerEvent(type: string, clientX?: number, clientY?: number, options?: PointerEventInit): PointerEvent;
|
|
25
|
-
/**
|
|
26
|
-
* Creates a browser TouchEvent with the specified pointer coordinates.
|
|
27
|
-
* @docs-private
|
|
28
|
-
*/
|
|
29
|
-
export declare function createTouchEvent(type: string, pageX?: number, pageY?: number, clientX?: number, clientY?: number): UIEvent;
|
|
30
|
-
/**
|
|
31
|
-
* Creates a keyboard event with the specified key and modifiers.
|
|
32
|
-
* @docs-private
|
|
33
|
-
*/
|
|
34
|
-
export declare function createKeyboardEvent(type: string, keyCode?: number, key?: string, modifiers?: ModifierKeys): KeyboardEvent;
|
|
35
|
-
/**
|
|
36
|
-
* Creates a fake event object with any desired event type.
|
|
37
|
-
* @docs-private
|
|
38
|
-
*/
|
|
39
|
-
export declare function createFakeEvent(type: string, bubbles?: boolean, cancelable?: boolean, composed?: boolean): Event;
|
|
@@ -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
|
-
export * from './dispatch-events';
|
|
9
|
-
export * from './event-objects';
|
|
10
|
-
export * from './element-focus';
|
|
11
|
-
export * from './type-in-element';
|
|
@@ -1,41 +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 { ModifierKeys } from '@angular/cdk/testing';
|
|
9
|
-
/**
|
|
10
|
-
* Checks whether the given Element is a text input element.
|
|
11
|
-
* @docs-private
|
|
12
|
-
*/
|
|
13
|
-
export declare function isTextInput(element: Element): element is HTMLInputElement | HTMLTextAreaElement;
|
|
14
|
-
/**
|
|
15
|
-
* If keys have been specified, focuses an input, sets its value and dispatches
|
|
16
|
-
* the `input` event, simulating the user typing.
|
|
17
|
-
* @param element Element onto which to set the value.
|
|
18
|
-
* @param keys The keys to send to the element.
|
|
19
|
-
* @docs-private
|
|
20
|
-
*/
|
|
21
|
-
export declare function typeInElement(element: HTMLElement, ...keys: (string | {
|
|
22
|
-
keyCode?: number;
|
|
23
|
-
key?: string;
|
|
24
|
-
})[]): void;
|
|
25
|
-
/**
|
|
26
|
-
* If keys have been specified, focuses an input, sets its value and dispatches
|
|
27
|
-
* the `input` event, simulating the user typing.
|
|
28
|
-
* @param element Element onto which to set the value.
|
|
29
|
-
* @param modifiers Modifier keys that are held while typing.
|
|
30
|
-
* @param keys The keys to send to the element.
|
|
31
|
-
* @docs-private
|
|
32
|
-
*/
|
|
33
|
-
export declare function typeInElement(element: HTMLElement, modifiers: ModifierKeys, ...keys: (string | {
|
|
34
|
-
keyCode?: number;
|
|
35
|
-
key?: string;
|
|
36
|
-
})[]): void;
|
|
37
|
-
/**
|
|
38
|
-
* Clears the text in an input or textarea element.
|
|
39
|
-
* @docs-private
|
|
40
|
-
*/
|
|
41
|
-
export declare function clearElement(element: HTMLInputElement | HTMLTextAreaElement): void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@angular/cdk/testing/testbed",
|
|
3
|
-
"fesm2020": "../../fesm2020/testing/testbed.mjs",
|
|
4
|
-
"fesm2015": "../../fesm2015/testing/testbed.mjs",
|
|
5
|
-
"esm2020": "../../esm2020/testing/testbed/index.mjs",
|
|
6
|
-
"typings": "./index.d.ts",
|
|
7
|
-
"module": "../../fesm2015/testing/testbed.mjs",
|
|
8
|
-
"es2020": "../../fesm2020/testing/testbed.mjs"
|
|
9
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
/*
|
|
10
|
-
* Type definitions of the "ProxyZone" implementation provided by the
|
|
11
|
-
* ZoneJS testing bundles. These types are not part of the default ZoneJS
|
|
12
|
-
* typings, so we need to replicate them here. Usually they would go into
|
|
13
|
-
* the "zone-types.d.ts" file where other types are brought in as well, but
|
|
14
|
-
* since internally in Google, the original zone.js types will be used, there
|
|
15
|
-
* needs to be a separation of types which are replicated or the ones that can
|
|
16
|
-
* be pulled in from the original type definitions.
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
export interface ProxyZoneStatic {
|
|
20
|
-
assertPresent: () => ProxyZone;
|
|
21
|
-
get(): ProxyZone;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface ProxyZone {
|
|
25
|
-
lastTaskState: HasTaskState | null;
|
|
26
|
-
setDelegate(spec: ZoneSpec): void;
|
|
27
|
-
getDelegate(): ZoneSpec;
|
|
28
|
-
onHasTask(delegate: ZoneDelegate, current: Zone, target: Zone, hasTaskState: HasTaskState): void;
|
|
29
|
-
}
|
|
@@ -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 './testbed-harness-environment';
|
|
9
|
-
export * from './unit-test-element';
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { Observable } from 'rxjs';
|
|
9
|
-
/** Current state of the intercepted zone. */
|
|
10
|
-
export interface TaskState {
|
|
11
|
-
/** Whether the zone is stable (i.e. no microtasks and macrotasks). */
|
|
12
|
-
stable: boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Interceptor that can be set up in a `ProxyZone` instance. The interceptor
|
|
16
|
-
* will keep track of the task state and emit whenever the state changes.
|
|
17
|
-
*
|
|
18
|
-
* This serves as a workaround for https://github.com/angular/angular/issues/32896.
|
|
19
|
-
*/
|
|
20
|
-
export declare class TaskStateZoneInterceptor {
|
|
21
|
-
private _lastState;
|
|
22
|
-
/** Subject that can be used to emit a new state change. */
|
|
23
|
-
private readonly _stateSubject;
|
|
24
|
-
/** Public observable that emits whenever the task state changes. */
|
|
25
|
-
readonly state: Observable<TaskState>;
|
|
26
|
-
constructor(_lastState: HasTaskState | null);
|
|
27
|
-
/** This will be called whenever the task state changes in the intercepted zone. */
|
|
28
|
-
onHasTask(delegate: ZoneDelegate, current: Zone, target: Zone, hasTaskState: HasTaskState): void;
|
|
29
|
-
/** Gets the task state from the internal ZoneJS task state. */
|
|
30
|
-
private _getTaskStateFromInternalZoneState;
|
|
31
|
-
/**
|
|
32
|
-
* Sets up the custom task state Zone interceptor in the `ProxyZone`. Throws if
|
|
33
|
-
* no `ProxyZone` could be found.
|
|
34
|
-
* @returns an observable that emits whenever the task state changes.
|
|
35
|
-
*/
|
|
36
|
-
static setup(): Observable<TaskState>;
|
|
37
|
-
}
|
|
@@ -1,64 +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 { ComponentHarness, ComponentHarnessConstructor, HarnessEnvironment, HarnessLoader, TestElement } from '@angular/cdk/testing';
|
|
9
|
-
import { ComponentFixture } from '@angular/core/testing';
|
|
10
|
-
/** Options to configure the environment. */
|
|
11
|
-
export interface TestbedHarnessEnvironmentOptions {
|
|
12
|
-
/** The query function used to find DOM elements. */
|
|
13
|
-
queryFn: (selector: string, root: Element) => Iterable<Element> | ArrayLike<Element>;
|
|
14
|
-
}
|
|
15
|
-
/** A `HarnessEnvironment` implementation for Angular's Testbed. */
|
|
16
|
-
export declare class TestbedHarnessEnvironment extends HarnessEnvironment<Element> {
|
|
17
|
-
private _fixture;
|
|
18
|
-
/** Whether the environment has been destroyed. */
|
|
19
|
-
private _destroyed;
|
|
20
|
-
/** Observable that emits whenever the test task state changes. */
|
|
21
|
-
private _taskState;
|
|
22
|
-
/** The options for this environment. */
|
|
23
|
-
private _options;
|
|
24
|
-
/** Environment stabilization callback passed to the created test elements. */
|
|
25
|
-
private _stabilizeCallback;
|
|
26
|
-
protected constructor(rawRootElement: Element, _fixture: ComponentFixture<unknown>, options?: TestbedHarnessEnvironmentOptions);
|
|
27
|
-
/** Creates a `HarnessLoader` rooted at the given fixture's root element. */
|
|
28
|
-
static loader(fixture: ComponentFixture<unknown>, options?: TestbedHarnessEnvironmentOptions): HarnessLoader;
|
|
29
|
-
/**
|
|
30
|
-
* Creates a `HarnessLoader` at the document root. This can be used if harnesses are
|
|
31
|
-
* located outside of a fixture (e.g. overlays appended to the document body).
|
|
32
|
-
*/
|
|
33
|
-
static documentRootLoader(fixture: ComponentFixture<unknown>, options?: TestbedHarnessEnvironmentOptions): HarnessLoader;
|
|
34
|
-
/** Gets the native DOM element corresponding to the given TestElement. */
|
|
35
|
-
static getNativeElement(el: TestElement): Element;
|
|
36
|
-
/**
|
|
37
|
-
* Creates an instance of the given harness type, using the fixture's root element as the
|
|
38
|
-
* harness's host element. This method should be used when creating a harness for the root element
|
|
39
|
-
* of a fixture, as components do not have the correct selector when they are created as the root
|
|
40
|
-
* of the fixture.
|
|
41
|
-
*/
|
|
42
|
-
static harnessForFixture<T extends ComponentHarness>(fixture: ComponentFixture<unknown>, harnessType: ComponentHarnessConstructor<T>, options?: TestbedHarnessEnvironmentOptions): Promise<T>;
|
|
43
|
-
/**
|
|
44
|
-
* Flushes change detection and async tasks captured in the Angular zone.
|
|
45
|
-
* In most cases it should not be necessary to call this manually. However, there may be some edge
|
|
46
|
-
* cases where it is needed to fully flush animation events.
|
|
47
|
-
*/
|
|
48
|
-
forceStabilize(): Promise<void>;
|
|
49
|
-
/**
|
|
50
|
-
* Waits for all scheduled or running async tasks to complete. This allows harness
|
|
51
|
-
* authors to wait for async tasks outside of the Angular zone.
|
|
52
|
-
*/
|
|
53
|
-
waitForTasksOutsideAngular(): Promise<void>;
|
|
54
|
-
/** Gets the root element for the document. */
|
|
55
|
-
protected getDocumentRoot(): Element;
|
|
56
|
-
/** Creates a `TestElement` from a raw element. */
|
|
57
|
-
protected createTestElement(element: Element): TestElement;
|
|
58
|
-
/** Creates a `HarnessLoader` rooted at the given raw element. */
|
|
59
|
-
protected createEnvironment(element: Element): HarnessEnvironment<Element>;
|
|
60
|
-
/**
|
|
61
|
-
* Gets a list of all elements matching the given selector under this environment's root element.
|
|
62
|
-
*/
|
|
63
|
-
protected getAllRawElements(selector: string): Promise<Element[]>;
|
|
64
|
-
}
|