@angular/cdk 20.0.0-next.0 → 20.0.0-next.10
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/_adev_assets/cdk_testing.json +1 -0
- package/_adev_assets/cdk_testing_protractor.json +1 -0
- package/_adev_assets/cdk_testing_selenium_webdriver.json +1 -0
- package/_adev_assets/cdk_testing_testbed.json +1 -0
- package/a11y/index.d.ts +330 -1234
- package/a11y-module.d-DBHGyKoh.d.ts +314 -0
- package/a11y-prebuilt.css +1 -1
- package/accordion/index.d.ts +8 -27
- package/activedescendant-key-manager.d-Bjic5obv.d.ts +32 -0
- package/bidi/index.d.ts +3 -62
- package/bidi-module.d-IN1Vp56w.d.ts +57 -0
- package/clipboard/index.d.ts +62 -75
- package/coercion/index.d.ts +11 -33
- package/coercion/private/index.d.ts +2 -2
- package/collections/index.d.ts +14 -291
- package/data-source.d-Bblv7Zvh.d.ts +43 -0
- package/dialog/index.d.ts +217 -255
- package/drag-drop/index.d.ts +1085 -1157
- package/fesm2022/a11y-module-DpEjWNCj.mjs +951 -0
- package/fesm2022/a11y-module-DpEjWNCj.mjs.map +1 -0
- package/fesm2022/a11y.mjs +47 -2446
- package/fesm2022/a11y.mjs.map +1 -1
- package/fesm2022/accordion.mjs +12 -16
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/activedescendant-key-manager-DC3-fwQI.mjs +16 -0
- package/fesm2022/activedescendant-key-manager-DC3-fwQI.mjs.map +1 -0
- package/fesm2022/array-I1yfCXUO.mjs +6 -0
- package/fesm2022/array-I1yfCXUO.mjs.map +1 -0
- package/fesm2022/bidi.mjs +17 -83
- package/fesm2022/bidi.mjs.map +1 -1
- package/fesm2022/breakpoints-observer-DpQzdtrE.mjs +179 -0
- package/fesm2022/breakpoints-observer-DpQzdtrE.mjs.map +1 -0
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/clipboard.mjs +11 -16
- package/fesm2022/clipboard.mjs.map +1 -1
- package/fesm2022/coercion/private.mjs +0 -4
- package/fesm2022/coercion/private.mjs.map +1 -1
- package/fesm2022/coercion.mjs +5 -39
- package/fesm2022/coercion.mjs.map +1 -1
- package/fesm2022/collections.mjs +7 -476
- package/fesm2022/collections.mjs.map +1 -1
- package/fesm2022/css-pixel-value-C_HEqLhI.mjs +10 -0
- package/fesm2022/css-pixel-value-C_HEqLhI.mjs.map +1 -0
- package/fesm2022/data-source-D34wiQZj.mjs +15 -0
- package/fesm2022/data-source-D34wiQZj.mjs.map +1 -0
- package/fesm2022/dialog.mjs +88 -73
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/directionality-Ck5Uc9Se.mjs +77 -0
- package/fesm2022/directionality-Ck5Uc9Se.mjs.map +1 -0
- package/fesm2022/dispose-view-repeater-strategy-D_JReLI1.mjs +44 -0
- package/fesm2022/dispose-view-repeater-strategy-D_JReLI1.mjs.map +1 -0
- package/fesm2022/drag-drop.mjs +128 -65
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/element-x4z00URv.mjs +29 -0
- package/fesm2022/element-x4z00URv.mjs.map +1 -0
- package/fesm2022/fake-event-detection-DWOdFTFz.mjs +24 -0
- package/fesm2022/fake-event-detection-DWOdFTFz.mjs.map +1 -0
- package/fesm2022/focus-key-manager-C1rAQJ5z.mjs +22 -0
- package/fesm2022/focus-key-manager-C1rAQJ5z.mjs.map +1 -0
- package/fesm2022/focus-monitor-DKFfep8Q.mjs +627 -0
- package/fesm2022/focus-monitor-DKFfep8Q.mjs.map +1 -0
- package/fesm2022/id-generator-BwB8lolC.mjs +37 -0
- package/fesm2022/id-generator-BwB8lolC.mjs.map +1 -0
- package/fesm2022/keycodes-CpHkExLC.mjs +122 -0
- package/fesm2022/keycodes-CpHkExLC.mjs.map +1 -0
- package/fesm2022/keycodes.mjs +2 -124
- package/fesm2022/keycodes.mjs.map +1 -1
- package/fesm2022/layout.mjs +12 -184
- package/fesm2022/layout.mjs.map +1 -1
- package/fesm2022/list-key-manager-CyOIXo8P.mjs +360 -0
- package/fesm2022/list-key-manager-CyOIXo8P.mjs.map +1 -0
- package/fesm2022/listbox.mjs +21 -20
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +86 -75
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/observers/private.mjs +3 -7
- package/fesm2022/observers/private.mjs.map +1 -1
- package/fesm2022/observers.mjs +14 -18
- package/fesm2022/observers.mjs.map +1 -1
- package/fesm2022/overlay-module-BaGhSGqO.mjs +3062 -0
- package/fesm2022/overlay-module-BaGhSGqO.mjs.map +1 -0
- package/fesm2022/overlay.mjs +27 -3019
- package/fesm2022/overlay.mjs.map +1 -1
- package/fesm2022/passive-listeners-esHZRgIN.mjs +31 -0
- package/fesm2022/passive-listeners-esHZRgIN.mjs.map +1 -0
- package/fesm2022/platform-CPg0IbDW.mjs +77 -0
- package/fesm2022/platform-CPg0IbDW.mjs.map +1 -0
- package/fesm2022/platform.mjs +12 -293
- package/fesm2022/platform.mjs.map +1 -1
- package/fesm2022/portal.mjs +26 -63
- package/fesm2022/portal.mjs.map +1 -1
- package/fesm2022/private.mjs +7 -52
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/recycle-view-repeater-strategy-DoWdPqVw.mjs +156 -0
- package/fesm2022/recycle-view-repeater-strategy-DoWdPqVw.mjs.map +1 -0
- package/fesm2022/scrolling-BkvA05C8.mjs +99 -0
- package/fesm2022/scrolling-BkvA05C8.mjs.map +1 -0
- package/fesm2022/scrolling.mjs +48 -48
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/selection-model-BCgC8uEN.mjs +221 -0
- package/fesm2022/selection-model-BCgC8uEN.mjs.map +1 -0
- package/fesm2022/shadow-dom-B0oHn41l.mjs +49 -0
- package/fesm2022/shadow-dom-B0oHn41l.mjs.map +1 -0
- package/fesm2022/stepper.mjs +43 -36
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/style-loader-BDEAZOey.mjs +47 -0
- package/fesm2022/style-loader-BDEAZOey.mjs.map +1 -0
- package/fesm2022/table.mjs +170 -270
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/test-environment-CT0XxPyp.mjs +19 -0
- package/fesm2022/test-environment-CT0XxPyp.mjs.map +1 -0
- package/fesm2022/testing/selenium-webdriver.mjs +2 -1
- package/fesm2022/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2022/testing/testbed.mjs +33 -74
- package/fesm2022/testing/testbed.mjs.map +1 -1
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/text-field.mjs +27 -27
- package/fesm2022/text-field.mjs.map +1 -1
- package/fesm2022/tree-key-manager-KnCoIkIC.mjs +360 -0
- package/fesm2022/tree-key-manager-KnCoIkIC.mjs.map +1 -0
- package/fesm2022/tree.mjs +47 -35
- package/fesm2022/tree.mjs.map +1 -1
- package/fesm2022/typeahead-9ZW4Dtsf.mjs +88 -0
- package/fesm2022/typeahead-9ZW4Dtsf.mjs.map +1 -0
- package/fesm2022/unique-selection-dispatcher-Cag6cZJ2.mjs +49 -0
- package/fesm2022/unique-selection-dispatcher-Cag6cZJ2.mjs.map +1 -0
- package/focus-key-manager.d-BIKDy8oD.d.ts +34 -0
- package/focus-monitor.d-CvvJeQRc.d.ts +210 -0
- package/harness-environment.d-BatBdODN.d.ts +620 -0
- package/index.d.ts +2 -2
- package/keycodes/index.d.ts +124 -244
- package/layout/index.d.ts +24 -25
- package/list-key-manager.d-BlK3jyRn.d.ts +165 -0
- package/listbox/index.d.ts +92 -107
- package/menu/index.d.ts +595 -683
- package/number-property.d-CJVxXUcb.d.ts +16 -0
- package/observers/index.d.ts +38 -44
- package/observers/private/index.d.ts +3 -3
- package/overlay/_index.scss +7 -1
- package/overlay/index.d.ts +137 -981
- package/overlay-module.d-BiAhhk6g.d.ts +801 -0
- package/overlay-prebuilt.css +1 -1
- package/package.json +2 -4
- package/platform/index.d.ts +32 -88
- package/platform.d-B3vREl3q.d.ts +33 -0
- package/portal/index.d.ts +5 -264
- package/portal-directives.d-DbeNrI5D.d.ts +211 -0
- package/private/index.d.ts +3 -20
- package/schematics/index.js +1 -1
- package/schematics/index.js.map +1 -0
- package/schematics/ng-add/index.js +11 -19
- package/schematics/ng-add/index.js.map +1 -0
- package/schematics/ng-add/schema.js +1 -1
- package/schematics/ng-add/schema.js.map +1 -0
- package/schematics/ng-generate/drag-drop/index.js +15 -6
- package/schematics/ng-generate/drag-drop/index.js.map +1 -0
- package/schematics/ng-generate/drag-drop/schema.js +1 -1
- package/schematics/ng-generate/drag-drop/schema.js.map +1 -0
- package/schematics/ng-update/data/attribute-selectors.js +1 -1
- package/schematics/ng-update/data/attribute-selectors.js.map +1 -0
- package/schematics/ng-update/data/class-names.js +1 -1
- package/schematics/ng-update/data/class-names.js.map +1 -0
- package/schematics/ng-update/data/constructor-checks.js +1 -1
- package/schematics/ng-update/data/constructor-checks.js.map +1 -0
- package/schematics/ng-update/data/css-selectors.js +1 -1
- package/schematics/ng-update/data/css-selectors.js.map +1 -0
- package/schematics/ng-update/data/css-tokens.js +1 -1
- package/schematics/ng-update/data/css-tokens.js.map +1 -0
- package/schematics/ng-update/data/element-selectors.js +1 -1
- package/schematics/ng-update/data/element-selectors.js.map +1 -0
- package/schematics/ng-update/data/index.js +1 -1
- package/schematics/ng-update/data/index.js.map +1 -0
- package/schematics/ng-update/data/input-names.js +1 -1
- package/schematics/ng-update/data/input-names.js.map +1 -0
- package/schematics/ng-update/data/method-call-checks.js +1 -1
- package/schematics/ng-update/data/method-call-checks.js.map +1 -0
- package/schematics/ng-update/data/output-names.js +1 -1
- package/schematics/ng-update/data/output-names.js.map +1 -0
- package/schematics/ng-update/data/property-names.js +1 -1
- package/schematics/ng-update/data/property-names.js.map +1 -0
- package/schematics/ng-update/data/symbol-removal.js +1 -1
- package/schematics/ng-update/data/symbol-removal.js.map +1 -0
- package/schematics/ng-update/devkit-file-system.js +2 -3
- package/schematics/ng-update/devkit-file-system.js.map +1 -0
- package/schematics/ng-update/devkit-migration-rule.js +13 -4
- package/schematics/ng-update/devkit-migration-rule.js.map +1 -0
- package/schematics/ng-update/devkit-migration.d.ts +2 -2
- package/schematics/ng-update/devkit-migration.js +1 -1
- package/schematics/ng-update/devkit-migration.js.map +1 -0
- package/schematics/ng-update/find-stylesheets.js +1 -1
- package/schematics/ng-update/find-stylesheets.js.map +1 -0
- package/schematics/ng-update/html-parsing/angular.js +2 -2
- package/schematics/ng-update/html-parsing/angular.js.map +1 -0
- package/schematics/ng-update/html-parsing/elements.js +3 -2
- package/schematics/ng-update/html-parsing/elements.js.map +1 -0
- package/schematics/ng-update/index.js +1 -1
- package/schematics/ng-update/index.js.map +1 -0
- package/schematics/ng-update/migrations/attribute-selectors.js +8 -5
- package/schematics/ng-update/migrations/attribute-selectors.js.map +1 -0
- package/schematics/ng-update/migrations/class-inheritance.js +11 -8
- package/schematics/ng-update/migrations/class-inheritance.js.map +1 -0
- package/schematics/ng-update/migrations/class-names.js +15 -12
- package/schematics/ng-update/migrations/class-names.js.map +1 -0
- package/schematics/ng-update/migrations/constructor-signature.js +10 -7
- package/schematics/ng-update/migrations/constructor-signature.js.map +1 -0
- package/schematics/ng-update/migrations/css-selectors.js +8 -5
- package/schematics/ng-update/migrations/css-selectors.js.map +1 -0
- package/schematics/ng-update/migrations/css-tokens.js +8 -5
- package/schematics/ng-update/migrations/css-tokens.js.map +1 -0
- package/schematics/ng-update/migrations/element-selectors.js +8 -5
- package/schematics/ng-update/migrations/element-selectors.js.map +1 -0
- package/schematics/ng-update/migrations/input-names.js +8 -5
- package/schematics/ng-update/migrations/input-names.js.map +1 -0
- package/schematics/ng-update/migrations/method-call-arguments.js +8 -5
- package/schematics/ng-update/migrations/method-call-arguments.js.map +1 -0
- package/schematics/ng-update/migrations/misc-template.js +6 -3
- package/schematics/ng-update/migrations/misc-template.js.map +1 -0
- package/schematics/ng-update/migrations/output-names.js +8 -5
- package/schematics/ng-update/migrations/output-names.js.map +1 -0
- package/schematics/ng-update/migrations/property-names.js +8 -5
- package/schematics/ng-update/migrations/property-names.js.map +1 -0
- package/schematics/ng-update/migrations/symbol-removal.js +10 -6
- package/schematics/ng-update/migrations/symbol-removal.js.map +1 -0
- package/schematics/ng-update/public-api.js +1 -1
- package/schematics/ng-update/public-api.js.map +1 -0
- package/schematics/ng-update/typescript/base-types.js +1 -1
- package/schematics/ng-update/typescript/base-types.js.map +1 -0
- package/schematics/ng-update/typescript/imports.js +1 -1
- package/schematics/ng-update/typescript/imports.js.map +1 -0
- package/schematics/ng-update/typescript/literal.js +1 -1
- package/schematics/ng-update/typescript/literal.js.map +1 -0
- package/schematics/ng-update/typescript/module-specifiers.js +1 -1
- package/schematics/ng-update/typescript/module-specifiers.js.map +1 -0
- package/schematics/ng-update/upgrade-data.js +1 -1
- package/schematics/ng-update/upgrade-data.js.map +1 -0
- package/schematics/paths.js +1 -1
- package/schematics/paths.js.map +1 -0
- package/schematics/update-tool/component-resource-collector.js +3 -5
- package/schematics/update-tool/component-resource-collector.js.map +1 -0
- package/schematics/update-tool/file-system.js +1 -1
- package/schematics/update-tool/file-system.js.map +1 -0
- package/schematics/update-tool/index.js +2 -8
- package/schematics/update-tool/index.js.map +1 -0
- package/schematics/update-tool/logger.js +1 -1
- package/schematics/update-tool/logger.js.map +1 -0
- package/schematics/update-tool/migration.js +3 -10
- package/schematics/update-tool/migration.js.map +1 -0
- package/schematics/update-tool/public-api.js +1 -1
- package/schematics/update-tool/public-api.js.map +1 -0
- package/schematics/update-tool/target-version.js +1 -1
- package/schematics/update-tool/target-version.js.map +1 -0
- package/schematics/update-tool/update-recorder.js +1 -1
- package/schematics/update-tool/update-recorder.js.map +1 -0
- package/schematics/update-tool/utils/decorators.js +1 -1
- package/schematics/update-tool/utils/decorators.js.map +1 -0
- package/schematics/update-tool/utils/diagnostics.js +1 -1
- package/schematics/update-tool/utils/diagnostics.js.map +1 -0
- package/schematics/update-tool/utils/functions.js +1 -1
- package/schematics/update-tool/utils/functions.js.map +1 -0
- package/schematics/update-tool/utils/imports.js +1 -1
- package/schematics/update-tool/utils/imports.js.map +1 -0
- package/schematics/update-tool/utils/line-mappings.js +1 -1
- package/schematics/update-tool/utils/line-mappings.js.map +1 -0
- package/schematics/update-tool/utils/parse-tsconfig.js +1 -1
- package/schematics/update-tool/utils/parse-tsconfig.js.map +1 -0
- package/schematics/update-tool/utils/property-name.js +1 -1
- package/schematics/update-tool/utils/property-name.js.map +1 -0
- package/schematics/update-tool/utils/virtual-host.js +2 -3
- package/schematics/update-tool/utils/virtual-host.js.map +1 -0
- package/schematics/update-tool/version-changes.js +1 -1
- package/schematics/update-tool/version-changes.js.map +1 -0
- package/schematics/utils/ast/ng-module-imports.js +1 -1
- package/schematics/utils/ast/ng-module-imports.js.map +1 -0
- package/schematics/utils/ast.d.ts +2 -2
- package/schematics/utils/ast.js +23 -12
- package/schematics/utils/ast.js.map +1 -0
- package/schematics/utils/build-component.js +22 -17
- package/schematics/utils/build-component.js.map +1 -0
- package/schematics/utils/get-project.d.ts +2 -2
- package/schematics/utils/get-project.js +1 -1
- package/schematics/utils/get-project.js.map +1 -0
- package/schematics/utils/html-manipulation.js +1 -1
- package/schematics/utils/html-manipulation.js.map +1 -0
- package/schematics/utils/index.js +1 -1
- package/schematics/utils/index.js.map +1 -0
- package/schematics/utils/parse5-element.js +1 -1
- package/schematics/utils/parse5-element.js.map +1 -0
- package/schematics/utils/project-index-file.d.ts +6 -3
- package/schematics/utils/project-index-file.js +30 -7
- package/schematics/utils/project-index-file.js.map +1 -0
- package/schematics/utils/project-main-file.d.ts +3 -2
- package/schematics/utils/project-main-file.js +1 -1
- package/schematics/utils/project-main-file.js.map +1 -0
- package/schematics/utils/project-style-file.d.ts +2 -2
- package/schematics/utils/project-style-file.js +1 -1
- package/schematics/utils/project-style-file.js.map +1 -0
- package/schematics/utils/project-targets.d.ts +5 -4
- package/schematics/utils/project-targets.js +15 -8
- package/schematics/utils/project-targets.js.map +1 -0
- package/schematics/utils/project-tsconfig-paths.d.ts +3 -3
- package/schematics/utils/project-tsconfig-paths.js +26 -14
- package/schematics/utils/project-tsconfig-paths.js.map +1 -0
- package/schematics/utils/schematic-options.d.ts +2 -2
- package/schematics/utils/schematic-options.js +27 -15
- package/schematics/utils/schematic-options.js.map +1 -0
- package/scrolling/index.d.ts +13 -638
- package/scrolling-module.d-DP0Qb7T9.d.ts +552 -0
- package/selection-model.d-DNgOONDg.d.ts +112 -0
- package/stepper/index.d.ts +75 -124
- package/style-loader.d-BXZfQZTF.d.ts +21 -0
- package/table/index.d.ts +292 -604
- package/testing/index.d.ts +33 -675
- package/testing/selenium-webdriver/index.d.ts +31 -20
- package/testing/testbed/index.d.ts +10 -19
- package/text-field/index.d.ts +12 -30
- package/text-field-prebuilt.css +1 -1
- package/tree/index.d.ts +208 -271
- package/tree-key-manager-strategy.d-XB6M79l-.d.ts +116 -0
- package/unique-selection-dispatcher.d-DSFqf1MM.d.ts +33 -0
- package/view-repeater.d-BKljR8u8.d.ts +89 -0
- package/schematics/index.mjs +0 -37
- package/schematics/ng-add/index.mjs +0 -39
- package/schematics/ng-add/package-config.d.ts +0 -12
- package/schematics/ng-add/package-config.js +0 -51
- package/schematics/ng-add/package-config.mjs +0 -51
- package/schematics/ng-add/schema.mjs +0 -10
- package/schematics/ng-generate/drag-drop/index.mjs +0 -33
- package/schematics/ng-generate/drag-drop/schema.mjs +0 -10
- package/schematics/ng-update/data/attribute-selectors.mjs +0 -12
- package/schematics/ng-update/data/class-names.mjs +0 -12
- package/schematics/ng-update/data/constructor-checks.mjs +0 -17
- package/schematics/ng-update/data/css-selectors.mjs +0 -12
- package/schematics/ng-update/data/css-tokens.mjs +0 -12
- package/schematics/ng-update/data/element-selectors.mjs +0 -12
- package/schematics/ng-update/data/index.mjs +0 -35
- package/schematics/ng-update/data/input-names.mjs +0 -12
- package/schematics/ng-update/data/method-call-checks.mjs +0 -12
- package/schematics/ng-update/data/output-names.mjs +0 -12
- package/schematics/ng-update/data/property-names.mjs +0 -12
- package/schematics/ng-update/data/symbol-removal.mjs +0 -12
- package/schematics/ng-update/devkit-file-system.mjs +0 -84
- package/schematics/ng-update/devkit-migration-rule.mjs +0 -133
- package/schematics/ng-update/devkit-migration.mjs +0 -20
- package/schematics/ng-update/find-stylesheets.mjs +0 -41
- package/schematics/ng-update/html-parsing/angular.mjs +0 -51
- package/schematics/ng-update/html-parsing/elements.mjs +0 -62
- package/schematics/ng-update/index.mjs +0 -29
- package/schematics/ng-update/migrations/attribute-selectors.mjs +0 -68
- package/schematics/ng-update/migrations/class-inheritance.mjs +0 -55
- package/schematics/ng-update/migrations/class-names.mjs +0 -88
- package/schematics/ng-update/migrations/constructor-signature.mjs +0 -136
- package/schematics/ng-update/migrations/css-selectors.mjs +0 -72
- package/schematics/ng-update/migrations/css-tokens.mjs +0 -80
- package/schematics/ng-update/migrations/element-selectors.mjs +0 -63
- package/schematics/ng-update/migrations/input-names.mjs +0 -56
- package/schematics/ng-update/migrations/method-call-arguments.mjs +0 -59
- package/schematics/ng-update/migrations/misc-template.mjs +0 -22
- package/schematics/ng-update/migrations/output-names.mjs +0 -43
- package/schematics/ng-update/migrations/property-names.mjs +0 -57
- package/schematics/ng-update/migrations/symbol-removal.mjs +0 -43
- package/schematics/ng-update/public-api.mjs +0 -36
- package/schematics/ng-update/typescript/base-types.mjs +0 -23
- package/schematics/ng-update/typescript/imports.mjs +0 -53
- package/schematics/ng-update/typescript/literal.mjs +0 -32
- package/schematics/ng-update/typescript/module-specifiers.mjs +0 -35
- package/schematics/ng-update/upgrade-data.mjs +0 -40
- package/schematics/paths.mjs +0 -16
- package/schematics/schematics.externs.js +0 -0
- package/schematics/tsconfig.json +0 -29
- package/schematics/update-tool/component-resource-collector.mjs +0 -166
- package/schematics/update-tool/file-system.mjs +0 -18
- package/schematics/update-tool/index.mjs +0 -178
- package/schematics/update-tool/logger.mjs +0 -18
- package/schematics/update-tool/migration.mjs +0 -77
- package/schematics/update-tool/public-api.mjs +0 -33
- package/schematics/update-tool/target-version.mjs +0 -27
- package/schematics/update-tool/update-recorder.mjs +0 -10
- package/schematics/update-tool/update-tool.externs.js +0 -0
- package/schematics/update-tool/utils/decorators.mjs +0 -41
- package/schematics/update-tool/utils/diagnostics.mjs +0 -18
- package/schematics/update-tool/utils/functions.mjs +0 -20
- package/schematics/update-tool/utils/imports.mjs +0 -110
- package/schematics/update-tool/utils/line-mappings.mjs +0 -75
- package/schematics/update-tool/utils/parse-tsconfig.mjs +0 -45
- package/schematics/update-tool/utils/property-name.mjs +0 -27
- package/schematics/update-tool/utils/virtual-host.mjs +0 -72
- package/schematics/update-tool/version-changes.mjs +0 -38
- package/schematics/utils/ast/ng-module-imports.mjs +0 -82
- package/schematics/utils/ast.mjs +0 -68
- package/schematics/utils/build-component.mjs +0 -183
- package/schematics/utils/get-project.mjs +0 -28
- package/schematics/utils/html-manipulation.mjs +0 -91
- package/schematics/utils/index.mjs +0 -36
- package/schematics/utils/parse5-element.mjs +0 -30
- package/schematics/utils/project-index-file.mjs +0 -20
- package/schematics/utils/project-main-file.mjs +0 -25
- package/schematics/utils/project-style-file.mjs +0 -42
- package/schematics/utils/project-targets.mjs +0 -39
- package/schematics/utils/project-tsconfig-paths.mjs +0 -34
- package/schematics/utils/schematic-options.mjs +0 -77
package/testing/index.d.ts
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
export declare type AsyncFactoryFn<T> = () => Promise<T>;
|
|
1
|
+
export { A as AsyncFactoryFn, g as AsyncOptionPredicate, f as AsyncPredicate, B as BaseHarnessFilters, C as ComponentHarness, e as ComponentHarnessConstructor, j as ContentContainerComponentHarness, E as ElementDimensions, c as EventData, H as HarnessEnvironment, d as HarnessLoader, k as HarnessPredicate, h as HarnessQuery, i as LocatorFactory, L as LocatorFnResult, M as ModifierKeys, T as TestElement, a as TestKey, b as TextOptions } from '../harness-environment.d-BatBdODN.js';
|
|
3
2
|
|
|
4
|
-
/**
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Returns an error which reports that no keys have been specified.
|
|
5
|
+
* @docs-private
|
|
6
|
+
*/
|
|
7
|
+
declare function getNoKeysSpecifiedError(): Error;
|
|
9
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Gets text of element excluding certain selectors within the element.
|
|
11
|
+
* @param element Element to get text from,
|
|
12
|
+
* @param excludeSelector Selector identifying which elements to exclude,
|
|
13
|
+
*/
|
|
14
|
+
declare function _getTextWithExcludedElements(element: Element, excludeSelector: string): string;
|
|
10
15
|
|
|
11
16
|
/** Represents the status of auto change detection. */
|
|
12
|
-
|
|
17
|
+
interface AutoChangeDetectionStatus {
|
|
13
18
|
/** Whether auto change detection is disabled. */
|
|
14
19
|
isDisabled: boolean;
|
|
15
20
|
/**
|
|
@@ -19,535 +24,20 @@ export declare interface AutoChangeDetectionStatus {
|
|
|
19
24
|
*/
|
|
20
25
|
onDetectChangesNow?: () => void;
|
|
21
26
|
}
|
|
22
|
-
|
|
23
|
-
/** A set of criteria that can be used to filter a list of `ComponentHarness` instances. */
|
|
24
|
-
export declare interface BaseHarnessFilters {
|
|
25
|
-
/** Only find instances whose host element matches the given selector. */
|
|
26
|
-
selector?: string;
|
|
27
|
-
/** Only find instances that are nested under an element with the given selector. */
|
|
28
|
-
ancestor?: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Base class for component harnesses that all component harness authors should extend. This base
|
|
33
|
-
* component harness provides the basic ability to locate element and sub-component harness. It
|
|
34
|
-
* should be inherited when defining user's own harness.
|
|
35
|
-
*/
|
|
36
|
-
export declare abstract class ComponentHarness {
|
|
37
|
-
protected readonly locatorFactory: LocatorFactory;
|
|
38
|
-
constructor(locatorFactory: LocatorFactory);
|
|
39
|
-
/** Gets a `Promise` for the `TestElement` representing the host element of the component. */
|
|
40
|
-
host(): Promise<TestElement>;
|
|
41
|
-
/**
|
|
42
|
-
* Gets a `LocatorFactory` for the document root element. This factory can be used to create
|
|
43
|
-
* locators for elements that a component creates outside of its own root element. (e.g. by
|
|
44
|
-
* appending to document.body).
|
|
45
|
-
*/
|
|
46
|
-
protected documentRootLocatorFactory(): LocatorFactory;
|
|
47
|
-
/**
|
|
48
|
-
* Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance
|
|
49
|
-
* or element under the host element of this `ComponentHarness`.
|
|
50
|
-
* @param queries A list of queries specifying which harnesses and elements to search for:
|
|
51
|
-
* - A `string` searches for elements matching the CSS selector specified by the string.
|
|
52
|
-
* - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the
|
|
53
|
-
* given class.
|
|
54
|
-
* - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given
|
|
55
|
-
* predicate.
|
|
56
|
-
* @return An asynchronous locator function that searches for and returns a `Promise` for the
|
|
57
|
-
* first element or harness matching the given search criteria. Matches are ordered first by
|
|
58
|
-
* order in the DOM, and second by order in the queries list. If no matches are found, the
|
|
59
|
-
* `Promise` rejects. The type that the `Promise` resolves to is a union of all result types for
|
|
60
|
-
* each query.
|
|
61
|
-
*
|
|
62
|
-
* e.g. Given the following DOM: `<div id="d1" /><div id="d2" />`, and assuming
|
|
63
|
-
* `DivHarness.hostSelector === 'div'`:
|
|
64
|
-
* - `await ch.locatorFor(DivHarness, 'div')()` gets a `DivHarness` instance for `#d1`
|
|
65
|
-
* - `await ch.locatorFor('div', DivHarness)()` gets a `TestElement` instance for `#d1`
|
|
66
|
-
* - `await ch.locatorFor('span')()` throws because the `Promise` rejects.
|
|
67
|
-
*/
|
|
68
|
-
protected locatorFor<T extends (HarnessQuery<any> | string)[]>(...queries: T): AsyncFactoryFn<LocatorFnResult<T>>;
|
|
69
|
-
/**
|
|
70
|
-
* Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance
|
|
71
|
-
* or element under the host element of this `ComponentHarness`.
|
|
72
|
-
* @param queries A list of queries specifying which harnesses and elements to search for:
|
|
73
|
-
* - A `string` searches for elements matching the CSS selector specified by the string.
|
|
74
|
-
* - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the
|
|
75
|
-
* given class.
|
|
76
|
-
* - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given
|
|
77
|
-
* predicate.
|
|
78
|
-
* @return An asynchronous locator function that searches for and returns a `Promise` for the
|
|
79
|
-
* first element or harness matching the given search criteria. Matches are ordered first by
|
|
80
|
-
* order in the DOM, and second by order in the queries list. If no matches are found, the
|
|
81
|
-
* `Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all
|
|
82
|
-
* result types for each query or null.
|
|
83
|
-
*
|
|
84
|
-
* e.g. Given the following DOM: `<div id="d1" /><div id="d2" />`, and assuming
|
|
85
|
-
* `DivHarness.hostSelector === 'div'`:
|
|
86
|
-
* - `await ch.locatorForOptional(DivHarness, 'div')()` gets a `DivHarness` instance for `#d1`
|
|
87
|
-
* - `await ch.locatorForOptional('div', DivHarness)()` gets a `TestElement` instance for `#d1`
|
|
88
|
-
* - `await ch.locatorForOptional('span')()` gets `null`.
|
|
89
|
-
*/
|
|
90
|
-
protected locatorForOptional<T extends (HarnessQuery<any> | string)[]>(...queries: T): AsyncFactoryFn<LocatorFnResult<T> | null>;
|
|
91
|
-
/**
|
|
92
|
-
* Creates an asynchronous locator function that can be used to find `ComponentHarness` instances
|
|
93
|
-
* or elements under the host element of this `ComponentHarness`.
|
|
94
|
-
* @param queries A list of queries specifying which harnesses and elements to search for:
|
|
95
|
-
* - A `string` searches for elements matching the CSS selector specified by the string.
|
|
96
|
-
* - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the
|
|
97
|
-
* given class.
|
|
98
|
-
* - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given
|
|
99
|
-
* predicate.
|
|
100
|
-
* @return An asynchronous locator function that searches for and returns a `Promise` for all
|
|
101
|
-
* elements and harnesses matching the given search criteria. Matches are ordered first by
|
|
102
|
-
* order in the DOM, and second by order in the queries list. If an element matches more than
|
|
103
|
-
* one `ComponentHarness` class, the locator gets an instance of each for the same element. If
|
|
104
|
-
* an element matches multiple `string` selectors, only one `TestElement` instance is returned
|
|
105
|
-
* for that element. The type that the `Promise` resolves to is an array where each element is
|
|
106
|
-
* the union of all result types for each query.
|
|
107
|
-
*
|
|
108
|
-
* e.g. Given the following DOM: `<div id="d1" /><div id="d2" />`, and assuming
|
|
109
|
-
* `DivHarness.hostSelector === 'div'` and `IdIsD1Harness.hostSelector === '#d1'`:
|
|
110
|
-
* - `await ch.locatorForAll(DivHarness, 'div')()` gets `[
|
|
111
|
-
* DivHarness, // for #d1
|
|
112
|
-
* TestElement, // for #d1
|
|
113
|
-
* DivHarness, // for #d2
|
|
114
|
-
* TestElement // for #d2
|
|
115
|
-
* ]`
|
|
116
|
-
* - `await ch.locatorForAll('div', '#d1')()` gets `[
|
|
117
|
-
* TestElement, // for #d1
|
|
118
|
-
* TestElement // for #d2
|
|
119
|
-
* ]`
|
|
120
|
-
* - `await ch.locatorForAll(DivHarness, IdIsD1Harness)()` gets `[
|
|
121
|
-
* DivHarness, // for #d1
|
|
122
|
-
* IdIsD1Harness, // for #d1
|
|
123
|
-
* DivHarness // for #d2
|
|
124
|
-
* ]`
|
|
125
|
-
* - `await ch.locatorForAll('span')()` gets `[]`.
|
|
126
|
-
*/
|
|
127
|
-
protected locatorForAll<T extends (HarnessQuery<any> | string)[]>(...queries: T): AsyncFactoryFn<LocatorFnResult<T>[]>;
|
|
128
|
-
/**
|
|
129
|
-
* Flushes change detection and async tasks in the Angular zone.
|
|
130
|
-
* In most cases it should not be necessary to call this manually. However, there may be some edge
|
|
131
|
-
* cases where it is needed to fully flush animation events.
|
|
132
|
-
*/
|
|
133
|
-
protected forceStabilize(): Promise<void>;
|
|
134
|
-
/**
|
|
135
|
-
* Waits for all scheduled or running async tasks to complete. This allows harness
|
|
136
|
-
* authors to wait for async tasks outside of the Angular zone.
|
|
137
|
-
*/
|
|
138
|
-
protected waitForTasksOutsideAngular(): Promise<void>;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/** Constructor for a ComponentHarness subclass. */
|
|
142
|
-
export declare interface ComponentHarnessConstructor<T extends ComponentHarness> {
|
|
143
|
-
new (locatorFactory: LocatorFactory): T;
|
|
144
|
-
/**
|
|
145
|
-
* `ComponentHarness` subclasses must specify a static `hostSelector` property that is used to
|
|
146
|
-
* find the host element for the corresponding component. This property should match the selector
|
|
147
|
-
* for the Angular component.
|
|
148
|
-
*/
|
|
149
|
-
hostSelector: string;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Base class for component harnesses that authors should extend if they anticipate that consumers
|
|
154
|
-
* of the harness may want to access other harnesses within the `<ng-content>` of the component.
|
|
155
|
-
*/
|
|
156
|
-
export declare abstract class ContentContainerComponentHarness<S extends string = string> extends ComponentHarness implements HarnessLoader {
|
|
157
|
-
getChildLoader(selector: S): Promise<HarnessLoader>;
|
|
158
|
-
getAllChildLoaders(selector: S): Promise<HarnessLoader[]>;
|
|
159
|
-
getHarness<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T>;
|
|
160
|
-
getHarnessOrNull<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T | null>;
|
|
161
|
-
getAllHarnesses<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T[]>;
|
|
162
|
-
hasHarness<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<boolean>;
|
|
163
|
-
/**
|
|
164
|
-
* Gets the root harness loader from which to start
|
|
165
|
-
* searching for content contained by this harness.
|
|
166
|
-
*/
|
|
167
|
-
protected getRootHarnessLoader(): Promise<HarnessLoader>;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Dimensions for element size and its position relative to the viewport.
|
|
173
|
-
*/
|
|
174
|
-
export declare interface ElementDimensions {
|
|
175
|
-
top: number;
|
|
176
|
-
left: number;
|
|
177
|
-
width: number;
|
|
178
|
-
height: number;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
/** Data that can be attached to a custom event dispatched from a `TestElement`. */
|
|
182
|
-
export declare type EventData = string | number | boolean | Function | undefined | null | EventData[] | {
|
|
183
|
-
[key: string]: EventData;
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* Returns an error which reports that no keys have been specified.
|
|
189
|
-
* @docs-private
|
|
190
|
-
*/
|
|
191
|
-
export declare function getNoKeysSpecifiedError(): Error;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Gets text of element excluding certain selectors within the element.
|
|
196
|
-
* @param element Element to get text from,
|
|
197
|
-
* @param excludeSelector Selector identifying which elements to exclude,
|
|
198
|
-
*/
|
|
199
|
-
export declare function _getTextWithExcludedElements(element: Element, excludeSelector: string): string;
|
|
200
|
-
|
|
201
27
|
/**
|
|
202
28
|
* Allows a test `HarnessEnvironment` to install its own handler for auto change detection status
|
|
203
29
|
* changes.
|
|
204
30
|
* @param handler The handler for the auto change detection status.
|
|
205
31
|
*/
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
* Base harness environment class that can be extended to allow `ComponentHarness`es to be used in
|
|
210
|
-
* different test environments (e.g. testbed, protractor, etc.). This class implements the
|
|
211
|
-
* functionality of both a `HarnessLoader` and `LocatorFactory`. This class is generic on the raw
|
|
212
|
-
* element type, `E`, used by the particular test environment.
|
|
213
|
-
*/
|
|
214
|
-
export declare abstract class HarnessEnvironment<E> implements HarnessLoader, LocatorFactory {
|
|
215
|
-
protected rawRootElement: E;
|
|
216
|
-
get rootElement(): TestElement;
|
|
217
|
-
set rootElement(element: TestElement);
|
|
218
|
-
private _rootElement;
|
|
219
|
-
protected constructor(rawRootElement: E);
|
|
220
|
-
documentRootLocatorFactory(): LocatorFactory;
|
|
221
|
-
locatorFor<T extends (HarnessQuery<any> | string)[]>(...queries: T): AsyncFactoryFn<LocatorFnResult<T>>;
|
|
222
|
-
locatorForOptional<T extends (HarnessQuery<any> | string)[]>(...queries: T): AsyncFactoryFn<LocatorFnResult<T> | null>;
|
|
223
|
-
locatorForAll<T extends (HarnessQuery<any> | string)[]>(...queries: T): AsyncFactoryFn<LocatorFnResult<T>[]>;
|
|
224
|
-
rootHarnessLoader(): Promise<HarnessLoader>;
|
|
225
|
-
harnessLoaderFor(selector: string): Promise<HarnessLoader>;
|
|
226
|
-
harnessLoaderForOptional(selector: string): Promise<HarnessLoader | null>;
|
|
227
|
-
harnessLoaderForAll(selector: string): Promise<HarnessLoader[]>;
|
|
228
|
-
getHarness<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T>;
|
|
229
|
-
getHarnessOrNull<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T | null>;
|
|
230
|
-
getAllHarnesses<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T[]>;
|
|
231
|
-
hasHarness<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<boolean>;
|
|
232
|
-
getChildLoader(selector: string): Promise<HarnessLoader>;
|
|
233
|
-
getAllChildLoaders(selector: string): Promise<HarnessLoader[]>;
|
|
234
|
-
/** Creates a `ComponentHarness` for the given harness type with the given raw host element. */
|
|
235
|
-
protected createComponentHarness<T extends ComponentHarness>(harnessType: ComponentHarnessConstructor<T>, element: E): T;
|
|
236
|
-
abstract forceStabilize(): Promise<void>;
|
|
237
|
-
abstract waitForTasksOutsideAngular(): Promise<void>;
|
|
238
|
-
/** Gets the root element for the document. */
|
|
239
|
-
protected abstract getDocumentRoot(): E;
|
|
240
|
-
/** Creates a `TestElement` from a raw element. */
|
|
241
|
-
protected abstract createTestElement(element: E): TestElement;
|
|
242
|
-
/** Creates a `HarnessLoader` rooted at the given raw element. */
|
|
243
|
-
protected abstract createEnvironment(element: E): HarnessEnvironment<E>;
|
|
244
|
-
/**
|
|
245
|
-
* Gets a list of all elements matching the given selector under this environment's root element.
|
|
246
|
-
*/
|
|
247
|
-
protected abstract getAllRawElements(selector: string): Promise<E[]>;
|
|
248
|
-
/**
|
|
249
|
-
* Matches the given raw elements with the given list of element and harness queries to produce a
|
|
250
|
-
* list of matched harnesses and test elements.
|
|
251
|
-
*/
|
|
252
|
-
private _getAllHarnessesAndTestElements;
|
|
253
|
-
/**
|
|
254
|
-
* Check whether the given query matches the given element, if it does return the matched
|
|
255
|
-
* `TestElement` or `ComponentHarness`, if it does not, return null. In cases where the caller
|
|
256
|
-
* knows for sure that the query matches the element's selector, `skipSelectorCheck` can be used
|
|
257
|
-
* to skip verification and optimize performance.
|
|
258
|
-
*/
|
|
259
|
-
private _getQueryResultForElement;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* Interface used to load ComponentHarness objects. This interface is used by test authors to
|
|
264
|
-
* instantiate `ComponentHarness`es.
|
|
265
|
-
*/
|
|
266
|
-
export declare interface HarnessLoader {
|
|
267
|
-
/**
|
|
268
|
-
* Searches for an element with the given selector under the current instances's root element,
|
|
269
|
-
* and returns a `HarnessLoader` rooted at the matching element. If multiple elements match the
|
|
270
|
-
* selector, the first is used. If no elements match, an error is thrown.
|
|
271
|
-
* @param selector The selector for the root element of the new `HarnessLoader`
|
|
272
|
-
* @return A `HarnessLoader` rooted at the element matching the given selector.
|
|
273
|
-
* @throws If a matching element can't be found.
|
|
274
|
-
*/
|
|
275
|
-
getChildLoader(selector: string): Promise<HarnessLoader>;
|
|
276
|
-
/**
|
|
277
|
-
* Searches for all elements with the given selector under the current instances's root element,
|
|
278
|
-
* and returns an array of `HarnessLoader`s, one for each matching element, rooted at that
|
|
279
|
-
* element.
|
|
280
|
-
* @param selector The selector for the root element of the new `HarnessLoader`
|
|
281
|
-
* @return A list of `HarnessLoader`s, one for each matching element, rooted at that element.
|
|
282
|
-
*/
|
|
283
|
-
getAllChildLoaders(selector: string): Promise<HarnessLoader[]>;
|
|
284
|
-
/**
|
|
285
|
-
* Searches for an instance of the component corresponding to the given harness type under the
|
|
286
|
-
* `HarnessLoader`'s root element, and returns a `ComponentHarness` for that instance. If multiple
|
|
287
|
-
* matching components are found, a harness for the first one is returned. If no matching
|
|
288
|
-
* component is found, an error is thrown.
|
|
289
|
-
* @param query A query for a harness to create
|
|
290
|
-
* @return An instance of the given harness type
|
|
291
|
-
* @throws If a matching component instance can't be found.
|
|
292
|
-
*/
|
|
293
|
-
getHarness<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T>;
|
|
294
|
-
/**
|
|
295
|
-
* Searches for an instance of the component corresponding to the given harness type under the
|
|
296
|
-
* `HarnessLoader`'s root element, and returns a `ComponentHarness` for that instance. If multiple
|
|
297
|
-
* matching components are found, a harness for the first one is returned. If no matching
|
|
298
|
-
* component is found, null is returned.
|
|
299
|
-
* @param query A query for a harness to create
|
|
300
|
-
* @return An instance of the given harness type (or null if not found).
|
|
301
|
-
*/
|
|
302
|
-
getHarnessOrNull<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T | null>;
|
|
303
|
-
/**
|
|
304
|
-
* Searches for all instances of the component corresponding to the given harness type under the
|
|
305
|
-
* `HarnessLoader`'s root element, and returns a list `ComponentHarness` for each instance.
|
|
306
|
-
* @param query A query for a harness to create
|
|
307
|
-
* @return A list instances of the given harness type.
|
|
308
|
-
*/
|
|
309
|
-
getAllHarnesses<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T[]>;
|
|
310
|
-
/**
|
|
311
|
-
* Searches for an instance of the component corresponding to the given harness type under the
|
|
312
|
-
* `HarnessLoader`'s root element, and returns a boolean indicating if any were found.
|
|
313
|
-
* @param query A query for a harness to create
|
|
314
|
-
* @return A boolean indicating if an instance was found.
|
|
315
|
-
*/
|
|
316
|
-
hasHarness<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<boolean>;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
/**
|
|
320
|
-
* A class used to associate a ComponentHarness class with predicates functions that can be used to
|
|
321
|
-
* filter instances of the class.
|
|
322
|
-
*/
|
|
323
|
-
export declare class HarnessPredicate<T extends ComponentHarness> {
|
|
324
|
-
harnessType: ComponentHarnessConstructor<T>;
|
|
325
|
-
private _predicates;
|
|
326
|
-
private _descriptions;
|
|
327
|
-
private _ancestor;
|
|
328
|
-
constructor(harnessType: ComponentHarnessConstructor<T>, options: BaseHarnessFilters);
|
|
329
|
-
/**
|
|
330
|
-
* Checks if the specified nullable string value matches the given pattern.
|
|
331
|
-
* @param value The nullable string value to check, or a Promise resolving to the
|
|
332
|
-
* nullable string value.
|
|
333
|
-
* @param pattern The pattern the value is expected to match. If `pattern` is a string,
|
|
334
|
-
* `value` is expected to match exactly. If `pattern` is a regex, a partial match is
|
|
335
|
-
* allowed. If `pattern` is `null`, the value is expected to be `null`.
|
|
336
|
-
* @return Whether the value matches the pattern.
|
|
337
|
-
*/
|
|
338
|
-
static stringMatches(value: string | null | Promise<string | null>, pattern: string | RegExp | null): Promise<boolean>;
|
|
339
|
-
/**
|
|
340
|
-
* Adds a predicate function to be run against candidate harnesses.
|
|
341
|
-
* @param description A description of this predicate that may be used in error messages.
|
|
342
|
-
* @param predicate An async predicate function.
|
|
343
|
-
* @return this (for method chaining).
|
|
344
|
-
*/
|
|
345
|
-
add(description: string, predicate: AsyncPredicate<T>): this;
|
|
346
|
-
/**
|
|
347
|
-
* Adds a predicate function that depends on an option value to be run against candidate
|
|
348
|
-
* harnesses. If the option value is undefined, the predicate will be ignored.
|
|
349
|
-
* @param name The name of the option (may be used in error messages).
|
|
350
|
-
* @param option The option value.
|
|
351
|
-
* @param predicate The predicate function to run if the option value is not undefined.
|
|
352
|
-
* @return this (for method chaining).
|
|
353
|
-
*/
|
|
354
|
-
addOption<O>(name: string, option: O | undefined, predicate: AsyncOptionPredicate<T, O>): this;
|
|
355
|
-
/**
|
|
356
|
-
* Filters a list of harnesses on this predicate.
|
|
357
|
-
* @param harnesses The list of harnesses to filter.
|
|
358
|
-
* @return A list of harnesses that satisfy this predicate.
|
|
359
|
-
*/
|
|
360
|
-
filter(harnesses: T[]): Promise<T[]>;
|
|
361
|
-
/**
|
|
362
|
-
* Evaluates whether the given harness satisfies this predicate.
|
|
363
|
-
* @param harness The harness to check
|
|
364
|
-
* @return A promise that resolves to true if the harness satisfies this predicate,
|
|
365
|
-
* and resolves to false otherwise.
|
|
366
|
-
*/
|
|
367
|
-
evaluate(harness: T): Promise<boolean>;
|
|
368
|
-
/** Gets a description of this predicate for use in error messages. */
|
|
369
|
-
getDescription(): string;
|
|
370
|
-
/** Gets the selector used to find candidate elements. */
|
|
371
|
-
getSelector(): string;
|
|
372
|
-
/** Adds base options common to all harness types. */
|
|
373
|
-
private _addBaseOptions;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
* A query for a `ComponentHarness`, which is expressed as either a `ComponentHarnessConstructor` or
|
|
378
|
-
* a `HarnessPredicate`.
|
|
379
|
-
*/
|
|
380
|
-
export declare type HarnessQuery<T extends ComponentHarness> = ComponentHarnessConstructor<T> | HarnessPredicate<T>;
|
|
381
|
-
|
|
382
|
-
/**
|
|
383
|
-
* Interface used to create asynchronous locator functions used find elements and component
|
|
384
|
-
* harnesses. This interface is used by `ComponentHarness` authors to create locator functions for
|
|
385
|
-
* their `ComponentHarness` subclass.
|
|
386
|
-
*/
|
|
387
|
-
export declare interface LocatorFactory {
|
|
388
|
-
/** Gets a locator factory rooted at the document root. */
|
|
389
|
-
documentRootLocatorFactory(): LocatorFactory;
|
|
390
|
-
/** The root element of this `LocatorFactory` as a `TestElement`. */
|
|
391
|
-
rootElement: TestElement;
|
|
392
|
-
/**
|
|
393
|
-
* Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance
|
|
394
|
-
* or element under the root element of this `LocatorFactory`.
|
|
395
|
-
* @param queries A list of queries specifying which harnesses and elements to search for:
|
|
396
|
-
* - A `string` searches for elements matching the CSS selector specified by the string.
|
|
397
|
-
* - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the
|
|
398
|
-
* given class.
|
|
399
|
-
* - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given
|
|
400
|
-
* predicate.
|
|
401
|
-
* @return An asynchronous locator function that searches for and returns a `Promise` for the
|
|
402
|
-
* first element or harness matching the given search criteria. Matches are ordered first by
|
|
403
|
-
* order in the DOM, and second by order in the queries list. If no matches are found, the
|
|
404
|
-
* `Promise` rejects. The type that the `Promise` resolves to is a union of all result types for
|
|
405
|
-
* each query.
|
|
406
|
-
*
|
|
407
|
-
* e.g. Given the following DOM: `<div id="d1" /><div id="d2" />`, and assuming
|
|
408
|
-
* `DivHarness.hostSelector === 'div'`:
|
|
409
|
-
* - `await lf.locatorFor(DivHarness, 'div')()` gets a `DivHarness` instance for `#d1`
|
|
410
|
-
* - `await lf.locatorFor('div', DivHarness)()` gets a `TestElement` instance for `#d1`
|
|
411
|
-
* - `await lf.locatorFor('span')()` throws because the `Promise` rejects.
|
|
412
|
-
*/
|
|
413
|
-
locatorFor<T extends (HarnessQuery<any> | string)[]>(...queries: T): AsyncFactoryFn<LocatorFnResult<T>>;
|
|
414
|
-
/**
|
|
415
|
-
* Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance
|
|
416
|
-
* or element under the root element of this `LocatorFactory`.
|
|
417
|
-
* @param queries A list of queries specifying which harnesses and elements to search for:
|
|
418
|
-
* - A `string` searches for elements matching the CSS selector specified by the string.
|
|
419
|
-
* - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the
|
|
420
|
-
* given class.
|
|
421
|
-
* - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given
|
|
422
|
-
* predicate.
|
|
423
|
-
* @return An asynchronous locator function that searches for and returns a `Promise` for the
|
|
424
|
-
* first element or harness matching the given search criteria. Matches are ordered first by
|
|
425
|
-
* order in the DOM, and second by order in the queries list. If no matches are found, the
|
|
426
|
-
* `Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all
|
|
427
|
-
* result types for each query or null.
|
|
428
|
-
*
|
|
429
|
-
* e.g. Given the following DOM: `<div id="d1" /><div id="d2" />`, and assuming
|
|
430
|
-
* `DivHarness.hostSelector === 'div'`:
|
|
431
|
-
* - `await lf.locatorForOptional(DivHarness, 'div')()` gets a `DivHarness` instance for `#d1`
|
|
432
|
-
* - `await lf.locatorForOptional('div', DivHarness)()` gets a `TestElement` instance for `#d1`
|
|
433
|
-
* - `await lf.locatorForOptional('span')()` gets `null`.
|
|
434
|
-
*/
|
|
435
|
-
locatorForOptional<T extends (HarnessQuery<any> | string)[]>(...queries: T): AsyncFactoryFn<LocatorFnResult<T> | null>;
|
|
436
|
-
/**
|
|
437
|
-
* Creates an asynchronous locator function that can be used to find `ComponentHarness` instances
|
|
438
|
-
* or elements under the root element of this `LocatorFactory`.
|
|
439
|
-
* @param queries A list of queries specifying which harnesses and elements to search for:
|
|
440
|
-
* - A `string` searches for elements matching the CSS selector specified by the string.
|
|
441
|
-
* - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the
|
|
442
|
-
* given class.
|
|
443
|
-
* - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given
|
|
444
|
-
* predicate.
|
|
445
|
-
* @return An asynchronous locator function that searches for and returns a `Promise` for all
|
|
446
|
-
* elements and harnesses matching the given search criteria. Matches are ordered first by
|
|
447
|
-
* order in the DOM, and second by order in the queries list. If an element matches more than
|
|
448
|
-
* one `ComponentHarness` class, the locator gets an instance of each for the same element. If
|
|
449
|
-
* an element matches multiple `string` selectors, only one `TestElement` instance is returned
|
|
450
|
-
* for that element. The type that the `Promise` resolves to is an array where each element is
|
|
451
|
-
* the union of all result types for each query.
|
|
452
|
-
*
|
|
453
|
-
* e.g. Given the following DOM: `<div id="d1" /><div id="d2" />`, and assuming
|
|
454
|
-
* `DivHarness.hostSelector === 'div'` and `IdIsD1Harness.hostSelector === '#d1'`:
|
|
455
|
-
* - `await lf.locatorForAll(DivHarness, 'div')()` gets `[
|
|
456
|
-
* DivHarness, // for #d1
|
|
457
|
-
* TestElement, // for #d1
|
|
458
|
-
* DivHarness, // for #d2
|
|
459
|
-
* TestElement // for #d2
|
|
460
|
-
* ]`
|
|
461
|
-
* - `await lf.locatorForAll('div', '#d1')()` gets `[
|
|
462
|
-
* TestElement, // for #d1
|
|
463
|
-
* TestElement // for #d2
|
|
464
|
-
* ]`
|
|
465
|
-
* - `await lf.locatorForAll(DivHarness, IdIsD1Harness)()` gets `[
|
|
466
|
-
* DivHarness, // for #d1
|
|
467
|
-
* IdIsD1Harness, // for #d1
|
|
468
|
-
* DivHarness // for #d2
|
|
469
|
-
* ]`
|
|
470
|
-
* - `await lf.locatorForAll('span')()` gets `[]`.
|
|
471
|
-
*/
|
|
472
|
-
locatorForAll<T extends (HarnessQuery<any> | string)[]>(...queries: T): AsyncFactoryFn<LocatorFnResult<T>[]>;
|
|
473
|
-
/** @return A `HarnessLoader` rooted at the root element of this `LocatorFactory`. */
|
|
474
|
-
rootHarnessLoader(): Promise<HarnessLoader>;
|
|
475
|
-
/**
|
|
476
|
-
* Gets a `HarnessLoader` instance for an element under the root of this `LocatorFactory`.
|
|
477
|
-
* @param selector The selector for the root element.
|
|
478
|
-
* @return A `HarnessLoader` rooted at the first element matching the given selector.
|
|
479
|
-
* @throws If no matching element is found for the given selector.
|
|
480
|
-
*/
|
|
481
|
-
harnessLoaderFor(selector: string): Promise<HarnessLoader>;
|
|
482
|
-
/**
|
|
483
|
-
* Gets a `HarnessLoader` instance for an element under the root of this `LocatorFactory`
|
|
484
|
-
* @param selector The selector for the root element.
|
|
485
|
-
* @return A `HarnessLoader` rooted at the first element matching the given selector, or null if
|
|
486
|
-
* no matching element is found.
|
|
487
|
-
*/
|
|
488
|
-
harnessLoaderForOptional(selector: string): Promise<HarnessLoader | null>;
|
|
489
|
-
/**
|
|
490
|
-
* Gets a list of `HarnessLoader` instances, one for each matching element.
|
|
491
|
-
* @param selector The selector for the root element.
|
|
492
|
-
* @return A list of `HarnessLoader`, one rooted at each element matching the given selector.
|
|
493
|
-
*/
|
|
494
|
-
harnessLoaderForAll(selector: string): Promise<HarnessLoader[]>;
|
|
495
|
-
/**
|
|
496
|
-
* Flushes change detection and async tasks captured in the Angular zone.
|
|
497
|
-
* In most cases it should not be necessary to call this manually. However, there may be some edge
|
|
498
|
-
* cases where it is needed to fully flush animation events.
|
|
499
|
-
*/
|
|
500
|
-
forceStabilize(): Promise<void>;
|
|
501
|
-
/**
|
|
502
|
-
* Waits for all scheduled or running async tasks to complete. This allows harness
|
|
503
|
-
* authors to wait for async tasks outside of the Angular zone.
|
|
504
|
-
*/
|
|
505
|
-
waitForTasksOutsideAngular(): Promise<void>;
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
/**
|
|
509
|
-
* The result type obtained when searching using a particular list of queries. This type depends on
|
|
510
|
-
* the particular items being queried.
|
|
511
|
-
* - If one of the queries is for a `ComponentHarnessConstructor<C1>`, it means that the result
|
|
512
|
-
* might be a harness of type `C1`
|
|
513
|
-
* - If one of the queries is for a `HarnessPredicate<C2>`, it means that the result might be a
|
|
514
|
-
* harness of type `C2`
|
|
515
|
-
* - If one of the queries is for a `string`, it means that the result might be a `TestElement`.
|
|
516
|
-
*
|
|
517
|
-
* Since we don't know for sure which query will match, the result type if the union of the types
|
|
518
|
-
* for all possible results.
|
|
519
|
-
*
|
|
520
|
-
* e.g.
|
|
521
|
-
* The type:
|
|
522
|
-
* `LocatorFnResult<[
|
|
523
|
-
* ComponentHarnessConstructor<MyHarness>,
|
|
524
|
-
* HarnessPredicate<MyOtherHarness>,
|
|
525
|
-
* string
|
|
526
|
-
* ]>`
|
|
527
|
-
* is equivalent to:
|
|
528
|
-
* `MyHarness | MyOtherHarness | TestElement`.
|
|
529
|
-
*/
|
|
530
|
-
export declare type LocatorFnResult<T extends (HarnessQuery<any> | string)[]> = {
|
|
531
|
-
[I in keyof T]: T[I] extends new (...args: any[]) => infer C ? C : T[I] extends {
|
|
532
|
-
harnessType: new (...args: any[]) => infer C;
|
|
533
|
-
} ? C : T[I] extends string ? TestElement : never;
|
|
534
|
-
}[number];
|
|
535
|
-
|
|
32
|
+
declare function handleAutoChangeDetectionStatus(handler: (status: AutoChangeDetectionStatus) => void): void;
|
|
33
|
+
/** Allows a `HarnessEnvironment` to stop handling auto change detection status changes. */
|
|
34
|
+
declare function stopHandlingAutoChangeDetectionStatus(): void;
|
|
536
35
|
/**
|
|
537
36
|
* Disables the harness system's auto change detection for the duration of the given function.
|
|
538
37
|
* @param fn The function to disable auto change detection for.
|
|
539
38
|
* @return The result of the given function.
|
|
540
39
|
*/
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
/** Modifier keys that may be held while typing. */
|
|
544
|
-
export declare interface ModifierKeys {
|
|
545
|
-
control?: boolean;
|
|
546
|
-
alt?: boolean;
|
|
547
|
-
shift?: boolean;
|
|
548
|
-
meta?: boolean;
|
|
549
|
-
}
|
|
550
|
-
|
|
40
|
+
declare function manualChangeDetection<T>(fn: () => Promise<T>): Promise<T>;
|
|
551
41
|
/**
|
|
552
42
|
* Resolves the given list of async values in parallel (i.e. via Promise.all) while batching change
|
|
553
43
|
* detection over the entire operation such that change detection occurs exactly once before
|
|
@@ -555,14 +45,13 @@ export declare interface ModifierKeys {
|
|
|
555
45
|
* @param values A getter for the async values to resolve in parallel with batched change detection.
|
|
556
46
|
* @return The resolved values.
|
|
557
47
|
*/
|
|
558
|
-
|
|
559
|
-
T1 | PromiseLike<T1>,
|
|
560
|
-
T2 | PromiseLike<T2>,
|
|
561
|
-
T3 | PromiseLike<T3>,
|
|
562
|
-
T4 | PromiseLike<T4>,
|
|
563
|
-
T5 | PromiseLike<T5>
|
|
48
|
+
declare function parallel<T1, T2, T3, T4, T5>(values: () => [
|
|
49
|
+
T1 | PromiseLike<T1>,
|
|
50
|
+
T2 | PromiseLike<T2>,
|
|
51
|
+
T3 | PromiseLike<T3>,
|
|
52
|
+
T4 | PromiseLike<T4>,
|
|
53
|
+
T5 | PromiseLike<T5>
|
|
564
54
|
]): Promise<[T1, T2, T3, T4, T5]>;
|
|
565
|
-
|
|
566
55
|
/**
|
|
567
56
|
* Resolves the given list of async values in parallel (i.e. via Promise.all) while batching change
|
|
568
57
|
* detection over the entire operation such that change detection occurs exactly once before
|
|
@@ -570,13 +59,12 @@ T5 | PromiseLike<T5>
|
|
|
570
59
|
* @param values A getter for the async values to resolve in parallel with batched change detection.
|
|
571
60
|
* @return The resolved values.
|
|
572
61
|
*/
|
|
573
|
-
|
|
574
|
-
T1 | PromiseLike<T1>,
|
|
575
|
-
T2 | PromiseLike<T2>,
|
|
576
|
-
T3 | PromiseLike<T3>,
|
|
577
|
-
T4 | PromiseLike<T4>
|
|
62
|
+
declare function parallel<T1, T2, T3, T4>(values: () => [
|
|
63
|
+
T1 | PromiseLike<T1>,
|
|
64
|
+
T2 | PromiseLike<T2>,
|
|
65
|
+
T3 | PromiseLike<T3>,
|
|
66
|
+
T4 | PromiseLike<T4>
|
|
578
67
|
]): Promise<[T1, T2, T3, T4]>;
|
|
579
|
-
|
|
580
68
|
/**
|
|
581
69
|
* Resolves the given list of async values in parallel (i.e. via Promise.all) while batching change
|
|
582
70
|
* detection over the entire operation such that change detection occurs exactly once before
|
|
@@ -584,8 +72,7 @@ T4 | PromiseLike<T4>
|
|
|
584
72
|
* @param values A getter for the async values to resolve in parallel with batched change detection.
|
|
585
73
|
* @return The resolved values.
|
|
586
74
|
*/
|
|
587
|
-
|
|
588
|
-
|
|
75
|
+
declare function parallel<T1, T2, T3>(values: () => [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]): Promise<[T1, T2, T3]>;
|
|
589
76
|
/**
|
|
590
77
|
* Resolves the given list of async values in parallel (i.e. via Promise.all) while batching change
|
|
591
78
|
* detection over the entire operation such that change detection occurs exactly once before
|
|
@@ -593,8 +80,7 @@ export declare function parallel<T1, T2, T3>(values: () => [T1 | PromiseLike<T1>
|
|
|
593
80
|
* @param values A getter for the async values to resolve in parallel with batched change detection.
|
|
594
81
|
* @return The resolved values.
|
|
595
82
|
*/
|
|
596
|
-
|
|
597
|
-
|
|
83
|
+
declare function parallel<T1, T2>(values: () => [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<[T1, T2]>;
|
|
598
84
|
/**
|
|
599
85
|
* Resolves the given list of async values in parallel (i.e. via Promise.all) while batching change
|
|
600
86
|
* detection over the entire operation such that change detection occurs exactly once before
|
|
@@ -602,135 +88,7 @@ export declare function parallel<T1, T2>(values: () => [T1 | PromiseLike<T1>, T2
|
|
|
602
88
|
* @param values A getter for the async values to resolve in parallel with batched change detection.
|
|
603
89
|
* @return The resolved values.
|
|
604
90
|
*/
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
/** Allows a `HarnessEnvironment` to stop handling auto change detection status changes. */
|
|
608
|
-
export declare function stopHandlingAutoChangeDetectionStatus(): void;
|
|
609
|
-
|
|
610
|
-
/**
|
|
611
|
-
* This acts as a common interface for DOM elements across both unit and e2e tests. It is the
|
|
612
|
-
* interface through which the ComponentHarness interacts with the component's DOM.
|
|
613
|
-
*/
|
|
614
|
-
export declare interface TestElement {
|
|
615
|
-
/** Blur the element. */
|
|
616
|
-
blur(): Promise<void>;
|
|
617
|
-
/** Clear the element's input (for input and textarea elements only). */
|
|
618
|
-
clear(): Promise<void>;
|
|
619
|
-
/**
|
|
620
|
-
* Click the element at the default location for the current environment. If you need to guarantee
|
|
621
|
-
* the element is clicked at a specific location, consider using `click('center')` or
|
|
622
|
-
* `click(x, y)` instead.
|
|
623
|
-
*/
|
|
624
|
-
click(modifiers?: ModifierKeys): Promise<void>;
|
|
625
|
-
/** Click the element at the element's center. */
|
|
626
|
-
click(location: 'center', modifiers?: ModifierKeys): Promise<void>;
|
|
627
|
-
/**
|
|
628
|
-
* Click the element at the specified coordinates relative to the top-left of the element.
|
|
629
|
-
* @param relativeX Coordinate within the element, along the X-axis at which to click.
|
|
630
|
-
* @param relativeY Coordinate within the element, along the Y-axis at which to click.
|
|
631
|
-
* @param modifiers Modifier keys held while clicking
|
|
632
|
-
*/
|
|
633
|
-
click(relativeX: number, relativeY: number, modifiers?: ModifierKeys): Promise<void>;
|
|
634
|
-
/**
|
|
635
|
-
* Right clicks on the element at the specified coordinates relative to the top-left of it.
|
|
636
|
-
* @param relativeX Coordinate within the element, along the X-axis at which to click.
|
|
637
|
-
* @param relativeY Coordinate within the element, along the Y-axis at which to click.
|
|
638
|
-
* @param modifiers Modifier keys held while clicking
|
|
639
|
-
*/
|
|
640
|
-
rightClick(relativeX: number, relativeY: number, modifiers?: ModifierKeys): Promise<void>;
|
|
641
|
-
/** Focus the element. */
|
|
642
|
-
focus(): Promise<void>;
|
|
643
|
-
/** Get the computed value of the given CSS property for the element. */
|
|
644
|
-
getCssValue(property: string): Promise<string>;
|
|
645
|
-
/** Hovers the mouse over the element. */
|
|
646
|
-
hover(): Promise<void>;
|
|
647
|
-
/** Moves the mouse away from the element. */
|
|
648
|
-
mouseAway(): Promise<void>;
|
|
649
|
-
/**
|
|
650
|
-
* Sends the given string to the input as a series of key presses. Also fires input events
|
|
651
|
-
* and attempts to add the string to the Element's value. Note that some environments cannot
|
|
652
|
-
* reproduce native browser behavior for keyboard shortcuts such as Tab, Ctrl + A, etc.
|
|
653
|
-
* @throws An error if no keys have been specified.
|
|
654
|
-
*/
|
|
655
|
-
sendKeys(...keys: (string | TestKey)[]): Promise<void>;
|
|
656
|
-
/**
|
|
657
|
-
* Sends the given string to the input as a series of key presses. Also fires input
|
|
658
|
-
* events and attempts to add the string to the Element's value.
|
|
659
|
-
* @throws An error if no keys have been specified.
|
|
660
|
-
*/
|
|
661
|
-
sendKeys(modifiers: ModifierKeys, ...keys: (string | TestKey)[]): Promise<void>;
|
|
662
|
-
/**
|
|
663
|
-
* Gets the text from the element.
|
|
664
|
-
* @param options Options that affect what text is included.
|
|
665
|
-
*/
|
|
666
|
-
text(options?: TextOptions): Promise<string>;
|
|
667
|
-
/**
|
|
668
|
-
* Sets the value of a `contenteditable` element.
|
|
669
|
-
* @param value Value to be set on the element.
|
|
670
|
-
* @breaking-change 16.0.0 Will become a required method.
|
|
671
|
-
*/
|
|
672
|
-
setContenteditableValue?(value: string): Promise<void>;
|
|
673
|
-
/** Gets the value for the given attribute from the element. */
|
|
674
|
-
getAttribute(name: string): Promise<string | null>;
|
|
675
|
-
/** Checks whether the element has the given class. */
|
|
676
|
-
hasClass(name: string): Promise<boolean>;
|
|
677
|
-
/** Gets the dimensions of the element. */
|
|
678
|
-
getDimensions(): Promise<ElementDimensions>;
|
|
679
|
-
/** Gets the value of a property of an element. */
|
|
680
|
-
getProperty<T = any>(name: string): Promise<T>;
|
|
681
|
-
/** Checks whether this element matches the given selector. */
|
|
682
|
-
matchesSelector(selector: string): Promise<boolean>;
|
|
683
|
-
/** Checks whether the element is focused. */
|
|
684
|
-
isFocused(): Promise<boolean>;
|
|
685
|
-
/** Sets the value of a property of an input. */
|
|
686
|
-
setInputValue(value: string): Promise<void>;
|
|
687
|
-
/** Selects the options at the specified indexes inside of a native `select` element. */
|
|
688
|
-
selectOptions(...optionIndexes: number[]): Promise<void>;
|
|
689
|
-
/**
|
|
690
|
-
* Dispatches an event with a particular name.
|
|
691
|
-
* @param name Name of the event to be dispatched.
|
|
692
|
-
*/
|
|
693
|
-
dispatchEvent(name: string, data?: Record<string, EventData>): Promise<void>;
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
/** An enum of non-text keys that can be used with the `sendKeys` method. */
|
|
697
|
-
export declare enum TestKey {
|
|
698
|
-
BACKSPACE = 0,
|
|
699
|
-
TAB = 1,
|
|
700
|
-
ENTER = 2,
|
|
701
|
-
SHIFT = 3,
|
|
702
|
-
CONTROL = 4,
|
|
703
|
-
ALT = 5,
|
|
704
|
-
ESCAPE = 6,
|
|
705
|
-
PAGE_UP = 7,
|
|
706
|
-
PAGE_DOWN = 8,
|
|
707
|
-
END = 9,
|
|
708
|
-
HOME = 10,
|
|
709
|
-
LEFT_ARROW = 11,
|
|
710
|
-
UP_ARROW = 12,
|
|
711
|
-
RIGHT_ARROW = 13,
|
|
712
|
-
DOWN_ARROW = 14,
|
|
713
|
-
INSERT = 15,
|
|
714
|
-
DELETE = 16,
|
|
715
|
-
F1 = 17,
|
|
716
|
-
F2 = 18,
|
|
717
|
-
F3 = 19,
|
|
718
|
-
F4 = 20,
|
|
719
|
-
F5 = 21,
|
|
720
|
-
F6 = 22,
|
|
721
|
-
F7 = 23,
|
|
722
|
-
F8 = 24,
|
|
723
|
-
F9 = 25,
|
|
724
|
-
F10 = 26,
|
|
725
|
-
F11 = 27,
|
|
726
|
-
F12 = 28,
|
|
727
|
-
META = 29,
|
|
728
|
-
COMMA = 30
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
export declare interface TextOptions {
|
|
732
|
-
/** Optional selector for elements to exclude. */
|
|
733
|
-
exclude?: string;
|
|
734
|
-
}
|
|
91
|
+
declare function parallel<T>(values: () => (T | PromiseLike<T>)[]): Promise<T[]>;
|
|
735
92
|
|
|
736
|
-
export { }
|
|
93
|
+
export { _getTextWithExcludedElements, getNoKeysSpecifiedError, handleAutoChangeDetectionStatus, manualChangeDetection, parallel, stopHandlingAutoChangeDetectionStatus };
|
|
94
|
+
export type { AutoChangeDetectionStatus };
|