@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/clipboard/index.d.ts
CHANGED
|
@@ -1,16 +1,68 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { InjectionToken } from '@angular/core';
|
|
4
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { InjectionToken, OnDestroy, EventEmitter } from '@angular/core';
|
|
5
3
|
|
|
6
|
-
/**
|
|
7
|
-
|
|
4
|
+
/**
|
|
5
|
+
* A pending copy-to-clipboard operation.
|
|
6
|
+
*
|
|
7
|
+
* The implementation of copying text to the clipboard modifies the DOM and
|
|
8
|
+
* forces a re-layout. This re-layout can take too long if the string is large,
|
|
9
|
+
* causing the execCommand('copy') to happen too long after the user clicked.
|
|
10
|
+
* This results in the browser refusing to copy. This object lets the
|
|
11
|
+
* re-layout happen in a separate tick from copying by providing a copy function
|
|
12
|
+
* that can be called later.
|
|
13
|
+
*
|
|
14
|
+
* Destroy must be called when no longer in use, regardless of whether `copy` is
|
|
15
|
+
* called.
|
|
16
|
+
*/
|
|
17
|
+
declare class PendingCopy {
|
|
18
|
+
private readonly _document;
|
|
19
|
+
private _textarea;
|
|
20
|
+
constructor(text: string, _document: Document);
|
|
21
|
+
/** Finishes copying the text. */
|
|
22
|
+
copy(): boolean;
|
|
23
|
+
/** Cleans up DOM changes used to perform the copy operation. */
|
|
24
|
+
destroy(): void;
|
|
25
|
+
}
|
|
8
26
|
|
|
27
|
+
/**
|
|
28
|
+
* A service for copying text to the clipboard.
|
|
29
|
+
*/
|
|
30
|
+
declare class Clipboard {
|
|
31
|
+
private readonly _document;
|
|
32
|
+
constructor(...args: unknown[]);
|
|
33
|
+
/**
|
|
34
|
+
* Copies the provided text into the user's clipboard.
|
|
35
|
+
*
|
|
36
|
+
* @param text The string to copy.
|
|
37
|
+
* @returns Whether the operation was successful.
|
|
38
|
+
*/
|
|
39
|
+
copy(text: string): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Prepares a string to be copied later. This is useful for large strings
|
|
42
|
+
* which take too long to successfully render and be copied in the same tick.
|
|
43
|
+
*
|
|
44
|
+
* The caller must call `destroy` on the returned `PendingCopy`.
|
|
45
|
+
*
|
|
46
|
+
* @param text The string to copy.
|
|
47
|
+
* @returns the pending copy operation.
|
|
48
|
+
*/
|
|
49
|
+
beginCopy(text: string): PendingCopy;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Clipboard, never>;
|
|
51
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<Clipboard>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** Object that can be used to configure the default options for `CdkCopyToClipboard`. */
|
|
55
|
+
interface CdkCopyToClipboardConfig {
|
|
56
|
+
/** Default number of attempts to make when copying text to the clipboard. */
|
|
57
|
+
attempts?: number;
|
|
58
|
+
}
|
|
59
|
+
/** Injection token that can be used to provide the default options to `CdkCopyToClipboard`. */
|
|
60
|
+
declare const CDK_COPY_TO_CLIPBOARD_CONFIG: InjectionToken<CdkCopyToClipboardConfig>;
|
|
9
61
|
/**
|
|
10
62
|
* Provides behavior for a button that when clicked copies content into user's
|
|
11
63
|
* clipboard.
|
|
12
64
|
*/
|
|
13
|
-
|
|
65
|
+
declare class CdkCopyToClipboard implements OnDestroy {
|
|
14
66
|
private _clipboard;
|
|
15
67
|
private _ngZone;
|
|
16
68
|
/** Content to be copied. */
|
|
@@ -39,76 +91,11 @@ export declare class CdkCopyToClipboard implements OnDestroy {
|
|
|
39
91
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkCopyToClipboard, "[cdkCopyToClipboard]", never, { "text": { "alias": "cdkCopyToClipboard"; "required": false; }; "attempts": { "alias": "cdkCopyToClipboardAttempts"; "required": false; }; }, { "copied": "cdkCopyToClipboardCopied"; }, never, never, true, never>;
|
|
40
92
|
}
|
|
41
93
|
|
|
42
|
-
|
|
43
|
-
export declare interface CdkCopyToClipboardConfig {
|
|
44
|
-
/** Default number of attempts to make when copying text to the clipboard. */
|
|
45
|
-
attempts?: number;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* A service for copying text to the clipboard.
|
|
50
|
-
*/
|
|
51
|
-
declare class Clipboard_2 {
|
|
52
|
-
private readonly _document;
|
|
53
|
-
constructor(...args: unknown[]);
|
|
54
|
-
/**
|
|
55
|
-
* Copies the provided text into the user's clipboard.
|
|
56
|
-
*
|
|
57
|
-
* @param text The string to copy.
|
|
58
|
-
* @returns Whether the operation was successful.
|
|
59
|
-
*/
|
|
60
|
-
copy(text: string): boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Prepares a string to be copied later. This is useful for large strings
|
|
63
|
-
* which take too long to successfully render and be copied in the same tick.
|
|
64
|
-
*
|
|
65
|
-
* The caller must call `destroy` on the returned `PendingCopy`.
|
|
66
|
-
*
|
|
67
|
-
* @param text The string to copy.
|
|
68
|
-
* @returns the pending copy operation.
|
|
69
|
-
*/
|
|
70
|
-
beginCopy(text: string): PendingCopy;
|
|
71
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<Clipboard_2, never>;
|
|
72
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<Clipboard_2>;
|
|
73
|
-
}
|
|
74
|
-
export { Clipboard_2 as Clipboard }
|
|
75
|
-
|
|
76
|
-
export declare class ClipboardModule {
|
|
94
|
+
declare class ClipboardModule {
|
|
77
95
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClipboardModule, never>;
|
|
78
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ClipboardModule, never, [typeof
|
|
96
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ClipboardModule, never, [typeof CdkCopyToClipboard], [typeof CdkCopyToClipboard]>;
|
|
79
97
|
static ɵinj: i0.ɵɵInjectorDeclaration<ClipboardModule>;
|
|
80
98
|
}
|
|
81
99
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
CdkCopyToClipboardConfig,
|
|
85
|
-
CDK_COPY_TO_CLIPBOARD_CONFIG,
|
|
86
|
-
CdkCopyToClipboard
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* A pending copy-to-clipboard operation.
|
|
93
|
-
*
|
|
94
|
-
* The implementation of copying text to the clipboard modifies the DOM and
|
|
95
|
-
* forces a re-layout. This re-layout can take too long if the string is large,
|
|
96
|
-
* causing the execCommand('copy') to happen too long after the user clicked.
|
|
97
|
-
* This results in the browser refusing to copy. This object lets the
|
|
98
|
-
* re-layout happen in a separate tick from copying by providing a copy function
|
|
99
|
-
* that can be called later.
|
|
100
|
-
*
|
|
101
|
-
* Destroy must be called when no longer in use, regardless of whether `copy` is
|
|
102
|
-
* called.
|
|
103
|
-
*/
|
|
104
|
-
export declare class PendingCopy {
|
|
105
|
-
private readonly _document;
|
|
106
|
-
private _textarea;
|
|
107
|
-
constructor(text: string, _document: Document);
|
|
108
|
-
/** Finishes copying the text. */
|
|
109
|
-
copy(): boolean;
|
|
110
|
-
/** Cleans up DOM changes used to perform the copy operation. */
|
|
111
|
-
destroy(): void;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export { }
|
|
100
|
+
export { CDK_COPY_TO_CLIPBOARD_CONFIG, CdkCopyToClipboard, Clipboard, ClipboardModule, PendingCopy };
|
|
101
|
+
export type { CdkCopyToClipboardConfig };
|
package/coercion/index.d.ts
CHANGED
|
@@ -1,36 +1,26 @@
|
|
|
1
|
+
export { N as NumberInput, _ as _isNumberValue, c as coerceNumberProperty } from '../number-property.d-CJVxXUcb.js';
|
|
1
2
|
import { ElementRef } from '@angular/core';
|
|
2
3
|
|
|
3
|
-
|
|
4
4
|
/**
|
|
5
5
|
* Type describing the allowed values for a boolean input.
|
|
6
6
|
* @docs-private
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/** Wraps the provided value in an array, unless the provided value is an array. */
|
|
12
|
-
export declare function coerceArray<T>(value: T | T[]): T[];
|
|
13
|
-
|
|
14
|
-
export declare function coerceArray<T>(value: T | readonly T[]): readonly T[];
|
|
15
|
-
|
|
8
|
+
type BooleanInput = string | boolean | null | undefined;
|
|
16
9
|
/** Coerces a data-bound value (typically a string) to a boolean. */
|
|
17
|
-
|
|
10
|
+
declare function coerceBooleanProperty(value: any): boolean;
|
|
18
11
|
|
|
12
|
+
/** Wraps the provided value in an array, unless the provided value is an array. */
|
|
13
|
+
declare function coerceArray<T>(value: T | T[]): T[];
|
|
14
|
+
declare function coerceArray<T>(value: T | readonly T[]): readonly T[];
|
|
19
15
|
|
|
20
16
|
/** Coerces a value to a CSS pixel value. */
|
|
21
|
-
|
|
17
|
+
declare function coerceCssPixelValue(value: any): string;
|
|
22
18
|
|
|
23
19
|
/**
|
|
24
20
|
* Coerces an ElementRef or an Element into an element.
|
|
25
21
|
* Useful for APIs that can accept either a ref or the native element itself.
|
|
26
22
|
*/
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
/** Coerces a data-bound value (typically a string) to a number. */
|
|
30
|
-
export declare function coerceNumberProperty(value: any): number;
|
|
31
|
-
|
|
32
|
-
export declare function coerceNumberProperty<D>(value: any, fallback: D): number | D;
|
|
33
|
-
|
|
23
|
+
declare function coerceElement<T>(elementOrRef: ElementRef<T> | T): T;
|
|
34
24
|
|
|
35
25
|
/**
|
|
36
26
|
* Coerces a value to an array of trimmed non-empty strings.
|
|
@@ -49,19 +39,7 @@ export declare function coerceNumberProperty<D>(value: any, fallback: D): number
|
|
|
49
39
|
* @param value the value to coerce into an array of strings
|
|
50
40
|
* @param separator split-separator if value isn't an array
|
|
51
41
|
*/
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Whether the provided value is considered a number.
|
|
56
|
-
* @docs-private
|
|
57
|
-
*/
|
|
58
|
-
export declare function _isNumberValue(value: any): boolean;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Type describing the allowed values for a number input
|
|
63
|
-
* @docs-private
|
|
64
|
-
*/
|
|
65
|
-
export declare type NumberInput = string | number | null | undefined;
|
|
42
|
+
declare function coerceStringArray(value: any, separator?: string | RegExp): string[];
|
|
66
43
|
|
|
67
|
-
export { }
|
|
44
|
+
export { coerceArray, coerceBooleanProperty, coerceCssPixelValue, coerceElement, coerceStringArray };
|
|
45
|
+
export type { BooleanInput };
|
|
@@ -4,6 +4,6 @@ import { Observable } from 'rxjs';
|
|
|
4
4
|
* Given either an Observable or non-Observable value, returns either the original
|
|
5
5
|
* Observable, or wraps it in an Observable that emits the non-Observable value.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
declare function coerceObservable<T>(data: T | Observable<T>): Observable<T>;
|
|
8
8
|
|
|
9
|
-
export { }
|
|
9
|
+
export { coerceObservable };
|
package/collections/index.d.ts
CHANGED
|
@@ -1,53 +1,21 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken } from '@angular/core';
|
|
3
|
-
import { IterableChangeRecord } from '@angular/core';
|
|
4
|
-
import { IterableChanges } from '@angular/core';
|
|
5
1
|
import { Observable } from 'rxjs';
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
2
|
+
import { D as DataSource } from '../data-source.d-Bblv7Zvh.js';
|
|
3
|
+
export { C as CollectionViewer, L as ListRange, i as isDataSource } from '../data-source.d-Bblv7Zvh.js';
|
|
4
|
+
import { IterableChanges, ViewContainerRef } from '@angular/core';
|
|
5
|
+
import { _ as _ViewRepeaterItemContext, a as _ViewRepeater, b as _ViewRepeaterItemContextFactory, c as _ViewRepeaterItemValueResolver, d as _ViewRepeaterItemChanged } from '../view-repeater.d-BKljR8u8.js';
|
|
6
|
+
export { h as _VIEW_REPEATER_STRATEGY, g as _ViewRepeaterItemChange, e as _ViewRepeaterItemInsertArgs, f as _ViewRepeaterOperation } from '../view-repeater.d-BKljR8u8.js';
|
|
7
|
+
import { S as SelectionModel } from '../selection-model.d-DNgOONDg.js';
|
|
8
|
+
export { a as SelectionChange, g as getMultipleValuesInSingleSelectionError } from '../selection-model.d-DNgOONDg.js';
|
|
9
|
+
export { U as UniqueSelectionDispatcher, a as UniqueSelectionDispatcherListener } from '../unique-selection-dispatcher.d-DSFqf1MM.js';
|
|
10
10
|
|
|
11
11
|
/** DataSource wrapper for a native array. */
|
|
12
|
-
|
|
12
|
+
declare class ArrayDataSource<T> extends DataSource<T> {
|
|
13
13
|
private _data;
|
|
14
14
|
constructor(_data: readonly T[] | Observable<readonly T[]>);
|
|
15
15
|
connect(): Observable<readonly T[]>;
|
|
16
16
|
disconnect(): void;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
/**
|
|
20
|
-
* Interface for any component that provides a view of some data collection and wants to provide
|
|
21
|
-
* information regarding the view and any changes made.
|
|
22
|
-
*/
|
|
23
|
-
export declare interface CollectionViewer {
|
|
24
|
-
/**
|
|
25
|
-
* A stream that emits whenever the `CollectionViewer` starts looking at a new portion of the
|
|
26
|
-
* data. The `start` index is inclusive, while the `end` is exclusive.
|
|
27
|
-
*/
|
|
28
|
-
viewChange: Observable<ListRange>;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export declare abstract class DataSource<T> {
|
|
32
|
-
/**
|
|
33
|
-
* Connects a collection viewer (such as a data-table) to this data source. Note that
|
|
34
|
-
* the stream provided will be accessed during change detection and should not directly change
|
|
35
|
-
* values that are bound in template views.
|
|
36
|
-
* @param collectionViewer The component that exposes a view over the data provided by this
|
|
37
|
-
* data source.
|
|
38
|
-
* @returns Observable that emits a new value when the data changes.
|
|
39
|
-
*/
|
|
40
|
-
abstract connect(collectionViewer: CollectionViewer): Observable<readonly T[]>;
|
|
41
|
-
/**
|
|
42
|
-
* Disconnects a collection viewer (such as a data-table) from this data source. Can be used
|
|
43
|
-
* to perform any clean-up or tear-down operations when a view is being destroyed.
|
|
44
|
-
*
|
|
45
|
-
* @param collectionViewer The component that exposes a view over the data provided by this
|
|
46
|
-
* data source.
|
|
47
|
-
*/
|
|
48
|
-
abstract disconnect(collectionViewer: CollectionViewer): void;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
19
|
/**
|
|
52
20
|
* A repeater that destroys views when they are removed from a
|
|
53
21
|
* {@link ViewContainerRef}. When new items are inserted into the container,
|
|
@@ -57,27 +25,11 @@ export declare abstract class DataSource<T> {
|
|
|
57
25
|
* @template R The type for the item in each IterableDiffer change record.
|
|
58
26
|
* @template C The type for the context passed to each embedded view.
|
|
59
27
|
*/
|
|
60
|
-
|
|
28
|
+
declare class _DisposeViewRepeaterStrategy<T, R, C extends _ViewRepeaterItemContext<T>> implements _ViewRepeater<T, R, C> {
|
|
61
29
|
applyChanges(changes: IterableChanges<R>, viewContainerRef: ViewContainerRef, itemContextFactory: _ViewRepeaterItemContextFactory<T, R, C>, itemValueResolver: _ViewRepeaterItemValueResolver<T, R>, itemViewChanged?: _ViewRepeaterItemChanged<R, C>): void;
|
|
62
30
|
detach(): void;
|
|
63
31
|
}
|
|
64
32
|
|
|
65
|
-
/**
|
|
66
|
-
* Returns an error that reports that multiple values are passed into a selection model
|
|
67
|
-
* with a single value.
|
|
68
|
-
* @docs-private
|
|
69
|
-
*/
|
|
70
|
-
export declare function getMultipleValuesInSingleSelectionError(): Error;
|
|
71
|
-
|
|
72
|
-
/** Checks whether an object is a data source. */
|
|
73
|
-
export declare function isDataSource(value: any): value is DataSource<any>;
|
|
74
|
-
|
|
75
|
-
/** Represents a range of numbers with a specified start and end. */
|
|
76
|
-
export declare type ListRange = {
|
|
77
|
-
start: number;
|
|
78
|
-
end: number;
|
|
79
|
-
};
|
|
80
|
-
|
|
81
33
|
/**
|
|
82
34
|
* A repeater that caches views when they are removed from a
|
|
83
35
|
* {@link ViewContainerRef}. When new items are inserted into the container,
|
|
@@ -89,7 +41,7 @@ export declare type ListRange = {
|
|
|
89
41
|
* @template R The type for the item in each IterableDiffer change record.
|
|
90
42
|
* @template C The type for the context passed to each embedded view.
|
|
91
43
|
*/
|
|
92
|
-
|
|
44
|
+
declare class _RecycleViewRepeaterStrategy<T, R, C extends _ViewRepeaterItemContext<T>> implements _ViewRepeater<T, R, C> {
|
|
93
45
|
/**
|
|
94
46
|
* The size of the cache used to store unused views.
|
|
95
47
|
* Setting the cache size to `0` will disable caching. Defaults to 20 views.
|
|
@@ -124,119 +76,11 @@ export declare class _RecycleViewRepeaterStrategy<T, R, C extends _ViewRepeaterI
|
|
|
124
76
|
private _insertViewFromCache;
|
|
125
77
|
}
|
|
126
78
|
|
|
127
|
-
/**
|
|
128
|
-
* Event emitted when the value of a MatSelectionModel has changed.
|
|
129
|
-
* @docs-private
|
|
130
|
-
*/
|
|
131
|
-
export declare interface SelectionChange<T> {
|
|
132
|
-
/** Model that dispatched the event. */
|
|
133
|
-
source: SelectionModel<T>;
|
|
134
|
-
/** Options that were added to the model. */
|
|
135
|
-
added: T[];
|
|
136
|
-
/** Options that were removed from the model. */
|
|
137
|
-
removed: T[];
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Class to be used to power selecting one or more options from a list.
|
|
142
|
-
*/
|
|
143
|
-
export declare class SelectionModel<T> {
|
|
144
|
-
private _multiple;
|
|
145
|
-
private _emitChanges;
|
|
146
|
-
compareWith?: ((o1: T, o2: T) => boolean) | undefined;
|
|
147
|
-
/** Currently-selected values. */
|
|
148
|
-
private _selection;
|
|
149
|
-
/** Keeps track of the deselected options that haven't been emitted by the change event. */
|
|
150
|
-
private _deselectedToEmit;
|
|
151
|
-
/** Keeps track of the selected options that haven't been emitted by the change event. */
|
|
152
|
-
private _selectedToEmit;
|
|
153
|
-
/** Cache for the array value of the selected items. */
|
|
154
|
-
private _selected;
|
|
155
|
-
/** Selected values. */
|
|
156
|
-
get selected(): T[];
|
|
157
|
-
/** Event emitted when the value has changed. */
|
|
158
|
-
readonly changed: Subject<SelectionChange<T>>;
|
|
159
|
-
constructor(_multiple?: boolean, initiallySelectedValues?: T[], _emitChanges?: boolean, compareWith?: ((o1: T, o2: T) => boolean) | undefined);
|
|
160
|
-
/**
|
|
161
|
-
* Selects a value or an array of values.
|
|
162
|
-
* @param values The values to select
|
|
163
|
-
* @return Whether the selection changed as a result of this call
|
|
164
|
-
* @breaking-change 16.0.0 make return type boolean
|
|
165
|
-
*/
|
|
166
|
-
select(...values: T[]): boolean | void;
|
|
167
|
-
/**
|
|
168
|
-
* Deselects a value or an array of values.
|
|
169
|
-
* @param values The values to deselect
|
|
170
|
-
* @return Whether the selection changed as a result of this call
|
|
171
|
-
* @breaking-change 16.0.0 make return type boolean
|
|
172
|
-
*/
|
|
173
|
-
deselect(...values: T[]): boolean | void;
|
|
174
|
-
/**
|
|
175
|
-
* Sets the selected values
|
|
176
|
-
* @param values The new selected values
|
|
177
|
-
* @return Whether the selection changed as a result of this call
|
|
178
|
-
* @breaking-change 16.0.0 make return type boolean
|
|
179
|
-
*/
|
|
180
|
-
setSelection(...values: T[]): boolean | void;
|
|
181
|
-
/**
|
|
182
|
-
* Toggles a value between selected and deselected.
|
|
183
|
-
* @param value The value to toggle
|
|
184
|
-
* @return Whether the selection changed as a result of this call
|
|
185
|
-
* @breaking-change 16.0.0 make return type boolean
|
|
186
|
-
*/
|
|
187
|
-
toggle(value: T): boolean | void;
|
|
188
|
-
/**
|
|
189
|
-
* Clears all of the selected values.
|
|
190
|
-
* @param flushEvent Whether to flush the changes in an event.
|
|
191
|
-
* If false, the changes to the selection will be flushed along with the next event.
|
|
192
|
-
* @return Whether the selection changed as a result of this call
|
|
193
|
-
* @breaking-change 16.0.0 make return type boolean
|
|
194
|
-
*/
|
|
195
|
-
clear(flushEvent?: boolean): boolean | void;
|
|
196
|
-
/**
|
|
197
|
-
* Determines whether a value is selected.
|
|
198
|
-
*/
|
|
199
|
-
isSelected(value: T): boolean;
|
|
200
|
-
/**
|
|
201
|
-
* Determines whether the model does not have a value.
|
|
202
|
-
*/
|
|
203
|
-
isEmpty(): boolean;
|
|
204
|
-
/**
|
|
205
|
-
* Determines whether the model has a value.
|
|
206
|
-
*/
|
|
207
|
-
hasValue(): boolean;
|
|
208
|
-
/**
|
|
209
|
-
* Sorts the selected values based on a predicate function.
|
|
210
|
-
*/
|
|
211
|
-
sort(predicate?: (a: T, b: T) => number): void;
|
|
212
|
-
/**
|
|
213
|
-
* Gets whether multiple values can be selected.
|
|
214
|
-
*/
|
|
215
|
-
isMultipleSelection(): boolean;
|
|
216
|
-
/** Emits a change event and clears the records of selected and deselected values. */
|
|
217
|
-
private _emitChangeEvent;
|
|
218
|
-
/** Selects a value. */
|
|
219
|
-
private _markSelected;
|
|
220
|
-
/** Deselects a value. */
|
|
221
|
-
private _unmarkSelected;
|
|
222
|
-
/** Clears out the selected values. */
|
|
223
|
-
private _unmarkAll;
|
|
224
|
-
/**
|
|
225
|
-
* Verifies the value assignment and throws an error if the specified value array is
|
|
226
|
-
* including multiple values while the selection model is not supporting multiple values.
|
|
227
|
-
*/
|
|
228
|
-
private _verifyValueAssignment;
|
|
229
|
-
/** Whether there are queued up change to be emitted. */
|
|
230
|
-
private _hasQueuedChanges;
|
|
231
|
-
/** Returns a value that is comparable to inputValue by applying compareWith function, returns the same inputValue otherwise. */
|
|
232
|
-
private _getConcreteValue;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
79
|
/**
|
|
236
80
|
* Interface for a class that can flatten hierarchical structured data and re-expand the flattened
|
|
237
81
|
* data back into its original structure. Should be used in conjunction with the cdk-tree.
|
|
238
82
|
*/
|
|
239
|
-
|
|
83
|
+
interface TreeDataNodeFlattener<T> {
|
|
240
84
|
/** Transforms a set of hierarchical structured data into a flattened data array. */
|
|
241
85
|
flattenNodes(structuredData: any[]): T[];
|
|
242
86
|
/**
|
|
@@ -251,126 +95,5 @@ export declare interface TreeDataNodeFlattener<T> {
|
|
|
251
95
|
nodeDescendents(node: T, nodes: T[], onlyExpandable: boolean): void;
|
|
252
96
|
}
|
|
253
97
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
* Intended to be consumed as an Angular service.
|
|
257
|
-
* This service is needed because native radio change events are only fired on the item currently
|
|
258
|
-
* being selected, and we still need to uncheck the previous selection.
|
|
259
|
-
*
|
|
260
|
-
* This service does not *store* any IDs and names because they may change at any time, so it is
|
|
261
|
-
* less error-prone if they are simply passed through when the events occur.
|
|
262
|
-
*/
|
|
263
|
-
export declare class UniqueSelectionDispatcher implements OnDestroy {
|
|
264
|
-
private _listeners;
|
|
265
|
-
/**
|
|
266
|
-
* Notify other items that selection for the given name has been set.
|
|
267
|
-
* @param id ID of the item.
|
|
268
|
-
* @param name Name of the item.
|
|
269
|
-
*/
|
|
270
|
-
notify(id: string, name: string): void;
|
|
271
|
-
/**
|
|
272
|
-
* Listen for future changes to item selection.
|
|
273
|
-
* @return Function used to deregister listener
|
|
274
|
-
*/
|
|
275
|
-
listen(listener: UniqueSelectionDispatcherListener): () => void;
|
|
276
|
-
ngOnDestroy(): void;
|
|
277
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UniqueSelectionDispatcher, never>;
|
|
278
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UniqueSelectionDispatcher>;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
export declare type UniqueSelectionDispatcherListener = (id: string, name: string) => void;
|
|
282
|
-
|
|
283
|
-
/**
|
|
284
|
-
* Injection token for {@link _ViewRepeater}. This token is for use by Angular Material only.
|
|
285
|
-
* @docs-private
|
|
286
|
-
*/
|
|
287
|
-
export declare const _VIEW_REPEATER_STRATEGY: InjectionToken<_ViewRepeater<unknown, unknown, _ViewRepeaterItemContext<unknown>>>;
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* Describes a strategy for rendering items in a {@link ViewContainerRef}.
|
|
291
|
-
*
|
|
292
|
-
* @template T The type for the embedded view's $implicit property.
|
|
293
|
-
* @template R The type for the item in each IterableDiffer change record.
|
|
294
|
-
* @template C The type for the context passed to each embedded view.
|
|
295
|
-
*/
|
|
296
|
-
export declare interface _ViewRepeater<T, R, C extends _ViewRepeaterItemContext<T>> {
|
|
297
|
-
applyChanges(changes: IterableChanges<R>, viewContainerRef: ViewContainerRef, itemContextFactory: _ViewRepeaterItemContextFactory<T, R, C>, itemValueResolver: _ViewRepeaterItemValueResolver<T, R>, itemViewChanged?: _ViewRepeaterItemChanged<R, C>): void;
|
|
298
|
-
detach(): void;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
/**
|
|
302
|
-
* Meta data describing the state of a view after it was updated by a
|
|
303
|
-
* {@link _ViewRepeater}.
|
|
304
|
-
*
|
|
305
|
-
* @template R The type for the item in each IterableDiffer change record.
|
|
306
|
-
* @template C The type for the context passed to each embedded view.
|
|
307
|
-
*/
|
|
308
|
-
export declare interface _ViewRepeaterItemChange<R, C> {
|
|
309
|
-
/** The view's context after it was changed. */
|
|
310
|
-
context?: C;
|
|
311
|
-
/** Indicates how the view was changed. */
|
|
312
|
-
operation: _ViewRepeaterOperation;
|
|
313
|
-
/** The view's corresponding change record. */
|
|
314
|
-
record: IterableChangeRecord<R>;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
* Type for a callback to be executed after a view has changed.
|
|
319
|
-
*
|
|
320
|
-
* @template R The type for the item in each IterableDiffer change record.
|
|
321
|
-
* @template C The type for the context passed to each embedded view.
|
|
322
|
-
*/
|
|
323
|
-
export declare type _ViewRepeaterItemChanged<R, C> = (change: _ViewRepeaterItemChange<R, C>) => void;
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* The context for an embedded view in the repeater's view container.
|
|
327
|
-
*
|
|
328
|
-
* @template T The type for the embedded view's $implicit property.
|
|
329
|
-
*/
|
|
330
|
-
export declare interface _ViewRepeaterItemContext<T> {
|
|
331
|
-
$implicit?: T;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* A factory that derives the embedded view context for an item in a view
|
|
336
|
-
* container.
|
|
337
|
-
*
|
|
338
|
-
* @template T The type for the embedded view's $implicit property.
|
|
339
|
-
* @template R The type for the item in each IterableDiffer change record.
|
|
340
|
-
* @template C The type for the context passed to each embedded view.
|
|
341
|
-
*/
|
|
342
|
-
export declare type _ViewRepeaterItemContextFactory<T, R, C extends _ViewRepeaterItemContext<T>> = (record: IterableChangeRecord<R>, adjustedPreviousIndex: number | null, currentIndex: number | null) => _ViewRepeaterItemInsertArgs<C>;
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
* The arguments needed to construct an embedded view for an item in a view
|
|
346
|
-
* container.
|
|
347
|
-
*
|
|
348
|
-
* @template C The type for the context passed to each embedded view.
|
|
349
|
-
*/
|
|
350
|
-
export declare interface _ViewRepeaterItemInsertArgs<C> {
|
|
351
|
-
templateRef: TemplateRef<C>;
|
|
352
|
-
context?: C;
|
|
353
|
-
index?: number;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* Extracts the value of an item from an {@link IterableChangeRecord}.
|
|
358
|
-
*
|
|
359
|
-
* @template T The type for the embedded view's $implicit property.
|
|
360
|
-
* @template R The type for the item in each IterableDiffer change record.
|
|
361
|
-
*/
|
|
362
|
-
export declare type _ViewRepeaterItemValueResolver<T, R> = (record: IterableChangeRecord<R>) => T;
|
|
363
|
-
|
|
364
|
-
/** Indicates how a view was changed by a {@link _ViewRepeater}. */
|
|
365
|
-
export declare enum _ViewRepeaterOperation {
|
|
366
|
-
/** The content of an existing view was replaced with another item. */
|
|
367
|
-
REPLACED = 0,
|
|
368
|
-
/** A new view was created with `createEmbeddedView`. */
|
|
369
|
-
INSERTED = 1,
|
|
370
|
-
/** The position of a view changed, but the content remains the same. */
|
|
371
|
-
MOVED = 2,
|
|
372
|
-
/** A view was detached from the view container. */
|
|
373
|
-
REMOVED = 3
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
export { }
|
|
98
|
+
export { ArrayDataSource, DataSource, SelectionModel, _DisposeViewRepeaterStrategy, _RecycleViewRepeaterStrategy, _ViewRepeater, _ViewRepeaterItemChanged, _ViewRepeaterItemContext, _ViewRepeaterItemContextFactory, _ViewRepeaterItemValueResolver };
|
|
99
|
+
export type { TreeDataNodeFlattener };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
|
|
3
|
+
/** Represents a range of numbers with a specified start and end. */
|
|
4
|
+
type ListRange = {
|
|
5
|
+
start: number;
|
|
6
|
+
end: number;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Interface for any component that provides a view of some data collection and wants to provide
|
|
10
|
+
* information regarding the view and any changes made.
|
|
11
|
+
*/
|
|
12
|
+
interface CollectionViewer {
|
|
13
|
+
/**
|
|
14
|
+
* A stream that emits whenever the `CollectionViewer` starts looking at a new portion of the
|
|
15
|
+
* data. The `start` index is inclusive, while the `end` is exclusive.
|
|
16
|
+
*/
|
|
17
|
+
viewChange: Observable<ListRange>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare abstract class DataSource<T> {
|
|
21
|
+
/**
|
|
22
|
+
* Connects a collection viewer (such as a data-table) to this data source. Note that
|
|
23
|
+
* the stream provided will be accessed during change detection and should not directly change
|
|
24
|
+
* values that are bound in template views.
|
|
25
|
+
* @param collectionViewer The component that exposes a view over the data provided by this
|
|
26
|
+
* data source.
|
|
27
|
+
* @returns Observable that emits a new value when the data changes.
|
|
28
|
+
*/
|
|
29
|
+
abstract connect(collectionViewer: CollectionViewer): Observable<readonly T[]>;
|
|
30
|
+
/**
|
|
31
|
+
* Disconnects a collection viewer (such as a data-table) from this data source. Can be used
|
|
32
|
+
* to perform any clean-up or tear-down operations when a view is being destroyed.
|
|
33
|
+
*
|
|
34
|
+
* @param collectionViewer The component that exposes a view over the data provided by this
|
|
35
|
+
* data source.
|
|
36
|
+
*/
|
|
37
|
+
abstract disconnect(collectionViewer: CollectionViewer): void;
|
|
38
|
+
}
|
|
39
|
+
/** Checks whether an object is a data source. */
|
|
40
|
+
declare function isDataSource(value: any): value is DataSource<any>;
|
|
41
|
+
|
|
42
|
+
export { DataSource as D, isDataSource as i };
|
|
43
|
+
export type { CollectionViewer as C, ListRange as L };
|