@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/scrolling/index.d.ts
CHANGED
|
@@ -1,601 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
import { DataSource } from '@angular/cdk/collections';
|
|
3
|
-
import { Directionality } from '@angular/cdk/bidi';
|
|
4
|
-
import { DoCheck } from '@angular/core';
|
|
5
|
-
import { ElementRef } from '@angular/core';
|
|
1
|
+
export { c as CdkFixedSizeVirtualScroll, C as CdkScrollable, b as CdkScrollableModule, d as CdkVirtualForOf, r as CdkVirtualForOfContext, t as CdkVirtualScrollRepeater, e as CdkVirtualScrollViewport, v as CdkVirtualScrollable, g as CdkVirtualScrollableElement, f as CdkVirtualScrollableWindow, D as DEFAULT_SCROLL_TIME, E as ExtendedScrollToOptions, F as FixedSizeVirtualScrollStrategy, a as ScrollDispatcher, S as ScrollingModule, u as VIRTUAL_SCROLLABLE, V as VIRTUAL_SCROLL_STRATEGY, s as VirtualScrollStrategy, k as _Bottom, o as _End, l as _Left, m as _Right, n as _Start, j as _Top, h as _Without, p as _XAxis, i as _XOR, q as _YAxis, _ as _fixedSizeVirtualScrollStrategyFactory } from '../scrolling-module.d-DP0Qb7T9.js';
|
|
6
2
|
import * as i0 from '@angular/core';
|
|
7
|
-
import * as i2 from '@angular/cdk/bidi';
|
|
8
|
-
import { InjectionToken } from '@angular/core';
|
|
9
|
-
import { ListRange } from '@angular/cdk/collections';
|
|
10
|
-
import { NgIterable } from '@angular/core';
|
|
11
|
-
import { NgZone } from '@angular/core';
|
|
12
|
-
import { NumberInput } from '@angular/cdk/coercion';
|
|
13
|
-
import { Observable } from 'rxjs';
|
|
14
|
-
import { OnChanges } from '@angular/core';
|
|
15
3
|
import { OnDestroy } from '@angular/core';
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { TrackByFunction } from '@angular/core';
|
|
21
|
-
|
|
22
|
-
export declare type _Bottom = {
|
|
23
|
-
bottom?: number;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
/** A virtual scroll strategy that supports fixed-size items. */
|
|
27
|
-
export declare class CdkFixedSizeVirtualScroll implements OnChanges {
|
|
28
|
-
/** The size of the items in the list (in pixels). */
|
|
29
|
-
get itemSize(): number;
|
|
30
|
-
set itemSize(value: NumberInput);
|
|
31
|
-
_itemSize: number;
|
|
32
|
-
/**
|
|
33
|
-
* The minimum amount of buffer rendered beyond the viewport (in pixels).
|
|
34
|
-
* If the amount of buffer dips below this number, more items will be rendered. Defaults to 100px.
|
|
35
|
-
*/
|
|
36
|
-
get minBufferPx(): number;
|
|
37
|
-
set minBufferPx(value: NumberInput);
|
|
38
|
-
_minBufferPx: number;
|
|
39
|
-
/**
|
|
40
|
-
* The number of pixels worth of buffer to render for when rendering new items. Defaults to 200px.
|
|
41
|
-
*/
|
|
42
|
-
get maxBufferPx(): number;
|
|
43
|
-
set maxBufferPx(value: NumberInput);
|
|
44
|
-
_maxBufferPx: number;
|
|
45
|
-
/** The scroll strategy used by this directive. */
|
|
46
|
-
_scrollStrategy: FixedSizeVirtualScrollStrategy;
|
|
47
|
-
ngOnChanges(): void;
|
|
48
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkFixedSizeVirtualScroll, never>;
|
|
49
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkFixedSizeVirtualScroll, "cdk-virtual-scroll-viewport[itemSize]", never, { "itemSize": { "alias": "itemSize"; "required": false; }; "minBufferPx": { "alias": "minBufferPx"; "required": false; }; "maxBufferPx": { "alias": "maxBufferPx"; "required": false; }; }, {}, never, never, true, never>;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Sends an event when the directive's element is scrolled. Registers itself with the
|
|
54
|
-
* ScrollDispatcher service to include itself as part of its collection of scrolling events that it
|
|
55
|
-
* can be listened to through the service.
|
|
56
|
-
*/
|
|
57
|
-
export declare class CdkScrollable implements OnInit, OnDestroy {
|
|
58
|
-
protected elementRef: ElementRef<HTMLElement>;
|
|
59
|
-
protected scrollDispatcher: ScrollDispatcher;
|
|
60
|
-
protected ngZone: NgZone;
|
|
61
|
-
protected dir?: Directionality | null | undefined;
|
|
62
|
-
protected _scrollElement: EventTarget;
|
|
63
|
-
protected readonly _destroyed: Subject<void>;
|
|
64
|
-
private _renderer;
|
|
65
|
-
private _cleanupScroll;
|
|
66
|
-
private _elementScrolled;
|
|
67
|
-
constructor(...args: unknown[]);
|
|
68
|
-
ngOnInit(): void;
|
|
69
|
-
ngOnDestroy(): void;
|
|
70
|
-
/** Returns observable that emits when a scroll event is fired on the host element. */
|
|
71
|
-
elementScrolled(): Observable<Event>;
|
|
72
|
-
/** Gets the ElementRef for the viewport. */
|
|
73
|
-
getElementRef(): ElementRef<HTMLElement>;
|
|
74
|
-
/**
|
|
75
|
-
* Scrolls to the specified offsets. This is a normalized version of the browser's native scrollTo
|
|
76
|
-
* method, since browsers are not consistent about what scrollLeft means in RTL. For this method
|
|
77
|
-
* left and right always refer to the left and right side of the scrolling container irrespective
|
|
78
|
-
* of the layout direction. start and end refer to left and right in an LTR context and vice-versa
|
|
79
|
-
* in an RTL context.
|
|
80
|
-
* @param options specified the offsets to scroll to.
|
|
81
|
-
*/
|
|
82
|
-
scrollTo(options: ExtendedScrollToOptions): void;
|
|
83
|
-
private _applyScrollToOptions;
|
|
84
|
-
/**
|
|
85
|
-
* Measures the scroll offset relative to the specified edge of the viewport. This method can be
|
|
86
|
-
* used instead of directly checking scrollLeft or scrollTop, since browsers are not consistent
|
|
87
|
-
* about what scrollLeft means in RTL. The values returned by this method are normalized such that
|
|
88
|
-
* left and right always refer to the left and right side of the scrolling container irrespective
|
|
89
|
-
* of the layout direction. start and end refer to left and right in an LTR context and vice-versa
|
|
90
|
-
* in an RTL context.
|
|
91
|
-
* @param from The edge to measure from.
|
|
92
|
-
*/
|
|
93
|
-
measureScrollOffset(from: 'top' | 'left' | 'right' | 'bottom' | 'start' | 'end'): number;
|
|
94
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkScrollable, never>;
|
|
95
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkScrollable, "[cdk-scrollable], [cdkScrollable]", never, {}, {}, never, never, true, never>;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export declare class CdkScrollableModule {
|
|
99
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkScrollableModule, never>;
|
|
100
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CdkScrollableModule, never, [typeof i1.CdkScrollable], [typeof i1.CdkScrollable]>;
|
|
101
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CdkScrollableModule>;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* A directive similar to `ngForOf` to be used for rendering data inside a virtual scrolling
|
|
106
|
-
* container.
|
|
107
|
-
*/
|
|
108
|
-
export declare class CdkVirtualForOf<T> implements CdkVirtualScrollRepeater<T>, CollectionViewer, DoCheck, OnDestroy {
|
|
109
|
-
private _viewContainerRef;
|
|
110
|
-
private _template;
|
|
111
|
-
private _differs;
|
|
112
|
-
private _viewRepeater;
|
|
113
|
-
private _viewport;
|
|
114
|
-
/** Emits when the rendered view of the data changes. */
|
|
115
|
-
readonly viewChange: Subject<ListRange>;
|
|
116
|
-
/** Subject that emits when a new DataSource instance is given. */
|
|
117
|
-
private readonly _dataSourceChanges;
|
|
118
|
-
/** The DataSource to display. */
|
|
119
|
-
get cdkVirtualForOf(): DataSource<T> | Observable<T[]> | NgIterable<T> | null | undefined;
|
|
120
|
-
set cdkVirtualForOf(value: DataSource<T> | Observable<T[]> | NgIterable<T> | null | undefined);
|
|
121
|
-
_cdkVirtualForOf: DataSource<T> | Observable<T[]> | NgIterable<T> | null | undefined;
|
|
122
|
-
/**
|
|
123
|
-
* The `TrackByFunction` to use for tracking changes. The `TrackByFunction` takes the index and
|
|
124
|
-
* the item and produces a value to be used as the item's identity when tracking changes.
|
|
125
|
-
*/
|
|
126
|
-
get cdkVirtualForTrackBy(): TrackByFunction<T> | undefined;
|
|
127
|
-
set cdkVirtualForTrackBy(fn: TrackByFunction<T> | undefined);
|
|
128
|
-
private _cdkVirtualForTrackBy;
|
|
129
|
-
/** The template used to stamp out new elements. */
|
|
130
|
-
set cdkVirtualForTemplate(value: TemplateRef<CdkVirtualForOfContext<T>>);
|
|
131
|
-
/**
|
|
132
|
-
* The size of the cache used to store templates that are not being used for re-use later.
|
|
133
|
-
* Setting the cache size to `0` will disable caching. Defaults to 20 templates.
|
|
134
|
-
*/
|
|
135
|
-
get cdkVirtualForTemplateCacheSize(): number;
|
|
136
|
-
set cdkVirtualForTemplateCacheSize(size: NumberInput);
|
|
137
|
-
/** Emits whenever the data in the current DataSource changes. */
|
|
138
|
-
readonly dataStream: Observable<readonly T[]>;
|
|
139
|
-
/** The differ used to calculate changes to the data. */
|
|
140
|
-
private _differ;
|
|
141
|
-
/** The most recent data emitted from the DataSource. */
|
|
142
|
-
private _data;
|
|
143
|
-
/** The currently rendered items. */
|
|
144
|
-
private _renderedItems;
|
|
145
|
-
/** The currently rendered range of indices. */
|
|
146
|
-
private _renderedRange;
|
|
147
|
-
/** Whether the rendered data should be updated during the next ngDoCheck cycle. */
|
|
148
|
-
private _needsUpdate;
|
|
149
|
-
private readonly _destroyed;
|
|
150
|
-
constructor(...args: unknown[]);
|
|
151
|
-
/**
|
|
152
|
-
* Measures the combined size (width for horizontal orientation, height for vertical) of all items
|
|
153
|
-
* in the specified range. Throws an error if the range includes items that are not currently
|
|
154
|
-
* rendered.
|
|
155
|
-
*/
|
|
156
|
-
measureRangeSize(range: ListRange, orientation: 'horizontal' | 'vertical'): number;
|
|
157
|
-
ngDoCheck(): void;
|
|
158
|
-
ngOnDestroy(): void;
|
|
159
|
-
/** React to scroll state changes in the viewport. */
|
|
160
|
-
private _onRenderedDataChange;
|
|
161
|
-
/** Swap out one `DataSource` for another. */
|
|
162
|
-
private _changeDataSource;
|
|
163
|
-
/** Update the `CdkVirtualForOfContext` for all views. */
|
|
164
|
-
private _updateContext;
|
|
165
|
-
/** Apply changes to the DOM. */
|
|
166
|
-
private _applyChanges;
|
|
167
|
-
/** Update the computed properties on the `CdkVirtualForOfContext`. */
|
|
168
|
-
private _updateComputedContextProperties;
|
|
169
|
-
private _getEmbeddedViewArgs;
|
|
170
|
-
static ngTemplateContextGuard<T>(directive: CdkVirtualForOf<T>, context: unknown): context is CdkVirtualForOfContext<T>;
|
|
171
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkVirtualForOf<any>, never>;
|
|
172
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkVirtualForOf<any>, "[cdkVirtualFor][cdkVirtualForOf]", never, { "cdkVirtualForOf": { "alias": "cdkVirtualForOf"; "required": false; }; "cdkVirtualForTrackBy": { "alias": "cdkVirtualForTrackBy"; "required": false; }; "cdkVirtualForTemplate": { "alias": "cdkVirtualForTemplate"; "required": false; }; "cdkVirtualForTemplateCacheSize": { "alias": "cdkVirtualForTemplateCacheSize"; "required": false; }; }, {}, never, never, true, never>;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/** The context for an item rendered by `CdkVirtualForOf` */
|
|
176
|
-
export declare type CdkVirtualForOfContext<T> = {
|
|
177
|
-
/** The item value. */
|
|
178
|
-
$implicit: T;
|
|
179
|
-
/** The DataSource, Observable, or NgIterable that was passed to *cdkVirtualFor. */
|
|
180
|
-
cdkVirtualForOf: DataSource<T> | Observable<T[]> | NgIterable<T>;
|
|
181
|
-
/** The index of the item in the DataSource. */
|
|
182
|
-
index: number;
|
|
183
|
-
/** The number of items in the DataSource. */
|
|
184
|
-
count: number;
|
|
185
|
-
/** Whether this is the first item in the DataSource. */
|
|
186
|
-
first: boolean;
|
|
187
|
-
/** Whether this is the last item in the DataSource. */
|
|
188
|
-
last: boolean;
|
|
189
|
-
/** Whether the index is even. */
|
|
190
|
-
even: boolean;
|
|
191
|
-
/** Whether the index is odd. */
|
|
192
|
-
odd: boolean;
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* Extending the {@link CdkScrollable} to be used as scrolling container for virtual scrolling.
|
|
197
|
-
*/
|
|
198
|
-
export declare abstract class CdkVirtualScrollable extends CdkScrollable {
|
|
199
|
-
constructor(...args: unknown[]);
|
|
200
|
-
/**
|
|
201
|
-
* Measure the viewport size for the provided orientation.
|
|
202
|
-
*
|
|
203
|
-
* @param orientation The orientation to measure the size from.
|
|
204
|
-
*/
|
|
205
|
-
measureViewportSize(orientation: 'horizontal' | 'vertical'): number;
|
|
206
|
-
/**
|
|
207
|
-
* Measure the bounding DOMRect size including the scroll offset.
|
|
208
|
-
*
|
|
209
|
-
* @param from The edge to measure from.
|
|
210
|
-
*/
|
|
211
|
-
abstract measureBoundingClientRectWithScrollOffset(from: 'left' | 'top' | 'right' | 'bottom'): number;
|
|
212
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkVirtualScrollable, never>;
|
|
213
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkVirtualScrollable, never, never, {}, {}, never, never, true, never>;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* Provides a virtual scrollable for the element it is attached to.
|
|
218
|
-
*/
|
|
219
|
-
export declare class CdkVirtualScrollableElement extends CdkVirtualScrollable {
|
|
220
|
-
constructor(...args: unknown[]);
|
|
221
|
-
measureBoundingClientRectWithScrollOffset(from: 'left' | 'top' | 'right' | 'bottom'): number;
|
|
222
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkVirtualScrollableElement, never>;
|
|
223
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkVirtualScrollableElement, "[cdkVirtualScrollingElement]", never, {}, {}, never, never, true, never>;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* Provides as virtual scrollable for the global / window scrollbar.
|
|
228
|
-
*/
|
|
229
|
-
export declare class CdkVirtualScrollableWindow extends CdkVirtualScrollable {
|
|
230
|
-
constructor(...args: unknown[]);
|
|
231
|
-
measureBoundingClientRectWithScrollOffset(from: 'left' | 'top' | 'right' | 'bottom'): number;
|
|
232
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkVirtualScrollableWindow, never>;
|
|
233
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkVirtualScrollableWindow, "cdk-virtual-scroll-viewport[scrollWindow]", never, {}, {}, never, never, true, never>;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* An item to be repeated by the VirtualScrollViewport
|
|
238
|
-
*/
|
|
239
|
-
export declare interface CdkVirtualScrollRepeater<T> {
|
|
240
|
-
readonly dataStream: Observable<readonly T[]>;
|
|
241
|
-
measureRangeSize(range: ListRange, orientation: 'horizontal' | 'vertical'): number;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
/** A viewport that virtualizes its scrolling with the help of `CdkVirtualForOf`. */
|
|
245
|
-
export declare class CdkVirtualScrollViewport extends CdkVirtualScrollable implements OnInit, OnDestroy {
|
|
246
|
-
elementRef: ElementRef<HTMLElement>;
|
|
247
|
-
private _changeDetectorRef;
|
|
248
|
-
private _scrollStrategy;
|
|
249
|
-
scrollable: CdkVirtualScrollable;
|
|
250
|
-
private _platform;
|
|
251
|
-
/** Emits when the viewport is detached from a CdkVirtualForOf. */
|
|
252
|
-
private readonly _detachedSubject;
|
|
253
|
-
/** Emits when the rendered range changes. */
|
|
254
|
-
private readonly _renderedRangeSubject;
|
|
255
|
-
/** The direction the viewport scrolls. */
|
|
256
|
-
get orientation(): "horizontal" | "vertical";
|
|
257
|
-
set orientation(orientation: 'horizontal' | 'vertical');
|
|
258
|
-
private _orientation;
|
|
259
|
-
/**
|
|
260
|
-
* Whether rendered items should persist in the DOM after scrolling out of view. By default, items
|
|
261
|
-
* will be removed.
|
|
262
|
-
*/
|
|
263
|
-
appendOnly: boolean;
|
|
264
|
-
/** Emits when the index of the first element visible in the viewport changes. */
|
|
265
|
-
readonly scrolledIndexChange: Observable<number>;
|
|
266
|
-
/** The element that wraps the rendered content. */
|
|
267
|
-
_contentWrapper: ElementRef<HTMLElement>;
|
|
268
|
-
/** A stream that emits whenever the rendered range changes. */
|
|
269
|
-
readonly renderedRangeStream: Observable<ListRange>;
|
|
270
|
-
/**
|
|
271
|
-
* The total size of all content (in pixels), including content that is not currently rendered.
|
|
272
|
-
*/
|
|
273
|
-
private _totalContentSize;
|
|
274
|
-
/** A string representing the `style.width` property value to be used for the spacer element. */
|
|
275
|
-
_totalContentWidth: string;
|
|
276
|
-
/** A string representing the `style.height` property value to be used for the spacer element. */
|
|
277
|
-
_totalContentHeight: string;
|
|
278
|
-
/**
|
|
279
|
-
* The CSS transform applied to the rendered subset of items so that they appear within the bounds
|
|
280
|
-
* of the visible viewport.
|
|
281
|
-
*/
|
|
282
|
-
private _renderedContentTransform;
|
|
283
|
-
/** The currently rendered range of indices. */
|
|
284
|
-
private _renderedRange;
|
|
285
|
-
/** The length of the data bound to this viewport (in number of items). */
|
|
286
|
-
private _dataLength;
|
|
287
|
-
/** The size of the viewport (in pixels). */
|
|
288
|
-
private _viewportSize;
|
|
289
|
-
/** the currently attached CdkVirtualScrollRepeater. */
|
|
290
|
-
private _forOf;
|
|
291
|
-
/** The last rendered content offset that was set. */
|
|
292
|
-
private _renderedContentOffset;
|
|
293
|
-
/**
|
|
294
|
-
* Whether the last rendered content offset was to the end of the content (and therefore needs to
|
|
295
|
-
* be rewritten as an offset to the start of the content).
|
|
296
|
-
*/
|
|
297
|
-
private _renderedContentOffsetNeedsRewrite;
|
|
298
|
-
/** Whether there is a pending change detection cycle. */
|
|
299
|
-
private _isChangeDetectionPending;
|
|
300
|
-
/** A list of functions to run after the next change detection cycle. */
|
|
301
|
-
private _runAfterChangeDetection;
|
|
302
|
-
/** Subscription to changes in the viewport size. */
|
|
303
|
-
private _viewportChanges;
|
|
304
|
-
private _injector;
|
|
305
|
-
private _isDestroyed;
|
|
306
|
-
constructor(...args: unknown[]);
|
|
307
|
-
ngOnInit(): void;
|
|
308
|
-
ngOnDestroy(): void;
|
|
309
|
-
/** Attaches a `CdkVirtualScrollRepeater` to this viewport. */
|
|
310
|
-
attach(forOf: CdkVirtualScrollRepeater<any>): void;
|
|
311
|
-
/** Detaches the current `CdkVirtualForOf`. */
|
|
312
|
-
detach(): void;
|
|
313
|
-
/** Gets the length of the data bound to this viewport (in number of items). */
|
|
314
|
-
getDataLength(): number;
|
|
315
|
-
/** Gets the size of the viewport (in pixels). */
|
|
316
|
-
getViewportSize(): number;
|
|
317
|
-
/** Get the current rendered range of items. */
|
|
318
|
-
getRenderedRange(): ListRange;
|
|
319
|
-
measureBoundingClientRectWithScrollOffset(from: 'left' | 'top' | 'right' | 'bottom'): number;
|
|
320
|
-
/**
|
|
321
|
-
* Sets the total size of all content (in pixels), including content that is not currently
|
|
322
|
-
* rendered.
|
|
323
|
-
*/
|
|
324
|
-
setTotalContentSize(size: number): void;
|
|
325
|
-
/** Sets the currently rendered range of indices. */
|
|
326
|
-
setRenderedRange(range: ListRange): void;
|
|
327
|
-
/**
|
|
328
|
-
* Gets the offset from the start of the viewport to the start of the rendered data (in pixels).
|
|
329
|
-
*/
|
|
330
|
-
getOffsetToRenderedContentStart(): number | null;
|
|
331
|
-
/**
|
|
332
|
-
* Sets the offset from the start of the viewport to either the start or end of the rendered data
|
|
333
|
-
* (in pixels).
|
|
334
|
-
*/
|
|
335
|
-
setRenderedContentOffset(offset: number, to?: 'to-start' | 'to-end'): void;
|
|
336
|
-
/**
|
|
337
|
-
* Scrolls to the given offset from the start of the viewport. Please note that this is not always
|
|
338
|
-
* the same as setting `scrollTop` or `scrollLeft`. In a horizontal viewport with right-to-left
|
|
339
|
-
* direction, this would be the equivalent of setting a fictional `scrollRight` property.
|
|
340
|
-
* @param offset The offset to scroll to.
|
|
341
|
-
* @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.
|
|
342
|
-
*/
|
|
343
|
-
scrollToOffset(offset: number, behavior?: ScrollBehavior): void;
|
|
344
|
-
/**
|
|
345
|
-
* Scrolls to the offset for the given index.
|
|
346
|
-
* @param index The index of the element to scroll to.
|
|
347
|
-
* @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.
|
|
348
|
-
*/
|
|
349
|
-
scrollToIndex(index: number, behavior?: ScrollBehavior): void;
|
|
350
|
-
/**
|
|
351
|
-
* Gets the current scroll offset from the start of the scrollable (in pixels).
|
|
352
|
-
* @param from The edge to measure the offset from. Defaults to 'top' in vertical mode and 'start'
|
|
353
|
-
* in horizontal mode.
|
|
354
|
-
*/
|
|
355
|
-
measureScrollOffset(from?: 'top' | 'left' | 'right' | 'bottom' | 'start' | 'end'): number;
|
|
356
|
-
/**
|
|
357
|
-
* Measures the offset of the viewport from the scrolling container
|
|
358
|
-
* @param from The edge to measure from.
|
|
359
|
-
*/
|
|
360
|
-
measureViewportOffset(from?: 'top' | 'left' | 'right' | 'bottom' | 'start' | 'end'): number;
|
|
361
|
-
/** Measure the combined size of all of the rendered items. */
|
|
362
|
-
measureRenderedContentSize(): number;
|
|
363
|
-
/**
|
|
364
|
-
* Measure the total combined size of the given range. Throws if the range includes items that are
|
|
365
|
-
* not rendered.
|
|
366
|
-
*/
|
|
367
|
-
measureRangeSize(range: ListRange): number;
|
|
368
|
-
/** Update the viewport dimensions and re-render. */
|
|
369
|
-
checkViewportSize(): void;
|
|
370
|
-
/** Measure the viewport size. */
|
|
371
|
-
private _measureViewportSize;
|
|
372
|
-
/** Queue up change detection to run. */
|
|
373
|
-
private _markChangeDetectionNeeded;
|
|
374
|
-
/** Run change detection. */
|
|
375
|
-
private _doChangeDetection;
|
|
376
|
-
/** Calculates the `style.width` and `style.height` for the spacer element. */
|
|
377
|
-
private _calculateSpacerSize;
|
|
378
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkVirtualScrollViewport, never>;
|
|
379
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CdkVirtualScrollViewport, "cdk-virtual-scroll-viewport", never, { "orientation": { "alias": "orientation"; "required": false; }; "appendOnly": { "alias": "appendOnly"; "required": false; }; }, { "scrolledIndexChange": "scrolledIndexChange"; }, never, ["*"], true, never>;
|
|
380
|
-
static ngAcceptInputType_appendOnly: unknown;
|
|
381
|
-
}
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
export { b as ɵɵDir } from '../bidi-module.d-IN1Vp56w.js';
|
|
6
|
+
import '../data-source.d-Bblv7Zvh.js';
|
|
7
|
+
import '../number-property.d-CJVxXUcb.js';
|
|
382
8
|
|
|
383
9
|
/** Time in ms to throttle the resize events by default. */
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
export declare type _End = {
|
|
390
|
-
end?: number;
|
|
391
|
-
};
|
|
392
|
-
|
|
393
|
-
/**
|
|
394
|
-
* An extended version of ScrollToOptions that allows expressing scroll offsets relative to the
|
|
395
|
-
* top, bottom, left, right, start, or end of the viewport rather than just the top and left.
|
|
396
|
-
* Please note: the top and bottom properties are mutually exclusive, as are the left, right,
|
|
397
|
-
* start, and end properties.
|
|
398
|
-
*/
|
|
399
|
-
export declare type ExtendedScrollToOptions = _XAxis & _YAxis & ScrollOptions;
|
|
400
|
-
|
|
401
|
-
/** Virtual scrolling strategy for lists with items of known fixed size. */
|
|
402
|
-
export declare class FixedSizeVirtualScrollStrategy implements VirtualScrollStrategy {
|
|
403
|
-
private readonly _scrolledIndexChange;
|
|
404
|
-
/** @docs-private Implemented as part of VirtualScrollStrategy. */
|
|
405
|
-
scrolledIndexChange: Observable<number>;
|
|
406
|
-
/** The attached viewport. */
|
|
407
|
-
private _viewport;
|
|
408
|
-
/** The size of the items in the virtually scrolling list. */
|
|
409
|
-
private _itemSize;
|
|
410
|
-
/** The minimum amount of buffer rendered beyond the viewport (in pixels). */
|
|
411
|
-
private _minBufferPx;
|
|
412
|
-
/** The number of buffer items to render beyond the edge of the viewport (in pixels). */
|
|
413
|
-
private _maxBufferPx;
|
|
414
|
-
/**
|
|
415
|
-
* @param itemSize The size of the items in the virtually scrolling list.
|
|
416
|
-
* @param minBufferPx The minimum amount of buffer (in pixels) before needing to render more
|
|
417
|
-
* @param maxBufferPx The amount of buffer (in pixels) to render when rendering more.
|
|
418
|
-
*/
|
|
419
|
-
constructor(itemSize: number, minBufferPx: number, maxBufferPx: number);
|
|
420
|
-
/**
|
|
421
|
-
* Attaches this scroll strategy to a viewport.
|
|
422
|
-
* @param viewport The viewport to attach this strategy to.
|
|
423
|
-
*/
|
|
424
|
-
attach(viewport: CdkVirtualScrollViewport): void;
|
|
425
|
-
/** Detaches this scroll strategy from the currently attached viewport. */
|
|
426
|
-
detach(): void;
|
|
427
|
-
/**
|
|
428
|
-
* Update the item size and buffer size.
|
|
429
|
-
* @param itemSize The size of the items in the virtually scrolling list.
|
|
430
|
-
* @param minBufferPx The minimum amount of buffer (in pixels) before needing to render more
|
|
431
|
-
* @param maxBufferPx The amount of buffer (in pixels) to render when rendering more.
|
|
432
|
-
*/
|
|
433
|
-
updateItemAndBufferSize(itemSize: number, minBufferPx: number, maxBufferPx: number): void;
|
|
434
|
-
/** @docs-private Implemented as part of VirtualScrollStrategy. */
|
|
435
|
-
onContentScrolled(): void;
|
|
436
|
-
/** @docs-private Implemented as part of VirtualScrollStrategy. */
|
|
437
|
-
onDataLengthChanged(): void;
|
|
438
|
-
/** @docs-private Implemented as part of VirtualScrollStrategy. */
|
|
439
|
-
onContentRendered(): void;
|
|
440
|
-
/** @docs-private Implemented as part of VirtualScrollStrategy. */
|
|
441
|
-
onRenderedOffsetChanged(): void;
|
|
442
|
-
/**
|
|
443
|
-
* Scroll to the offset for the given index.
|
|
444
|
-
* @param index The index of the element to scroll to.
|
|
445
|
-
* @param behavior The ScrollBehavior to use when scrolling.
|
|
446
|
-
*/
|
|
447
|
-
scrollToIndex(index: number, behavior: ScrollBehavior): void;
|
|
448
|
-
/** Update the viewport's total content size. */
|
|
449
|
-
private _updateTotalContentSize;
|
|
450
|
-
/** Update the viewport's rendered range. */
|
|
451
|
-
private _updateRenderedRange;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
/**
|
|
455
|
-
* Provider factory for `FixedSizeVirtualScrollStrategy` that simply extracts the already created
|
|
456
|
-
* `FixedSizeVirtualScrollStrategy` from the given directive.
|
|
457
|
-
* @param fixedSizeDir The instance of `CdkFixedSizeVirtualScroll` to extract the
|
|
458
|
-
* `FixedSizeVirtualScrollStrategy` from.
|
|
459
|
-
*/
|
|
460
|
-
export declare function _fixedSizeVirtualScrollStrategyFactory(fixedSizeDir: CdkFixedSizeVirtualScroll): FixedSizeVirtualScrollStrategy;
|
|
461
|
-
|
|
462
|
-
declare namespace i1 {
|
|
463
|
-
export {
|
|
464
|
-
_Without,
|
|
465
|
-
_XOR,
|
|
466
|
-
_Top,
|
|
467
|
-
_Bottom,
|
|
468
|
-
_Left,
|
|
469
|
-
_Right,
|
|
470
|
-
_Start,
|
|
471
|
-
_End,
|
|
472
|
-
_XAxis,
|
|
473
|
-
_YAxis,
|
|
474
|
-
ExtendedScrollToOptions,
|
|
475
|
-
CdkScrollable
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
declare namespace i3 {
|
|
480
|
-
export {
|
|
481
|
-
CdkVirtualScrollViewport
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
declare namespace i4 {
|
|
486
|
-
export {
|
|
487
|
-
_fixedSizeVirtualScrollStrategyFactory,
|
|
488
|
-
FixedSizeVirtualScrollStrategy,
|
|
489
|
-
CdkFixedSizeVirtualScroll
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
declare namespace i5 {
|
|
494
|
-
export {
|
|
495
|
-
CdkVirtualForOfContext,
|
|
496
|
-
CdkVirtualForOf
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
declare namespace i6 {
|
|
501
|
-
export {
|
|
502
|
-
CdkVirtualScrollableWindow
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
declare namespace i7 {
|
|
507
|
-
export {
|
|
508
|
-
CdkVirtualScrollableElement
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
export declare type _Left = {
|
|
513
|
-
left?: number;
|
|
514
|
-
};
|
|
515
|
-
|
|
516
|
-
export declare type _Right = {
|
|
517
|
-
right?: number;
|
|
518
|
-
};
|
|
519
|
-
|
|
520
|
-
/**
|
|
521
|
-
* Service contained all registered Scrollable references and emits an event when any one of the
|
|
522
|
-
* Scrollable references emit a scrolled event.
|
|
523
|
-
*/
|
|
524
|
-
export declare class ScrollDispatcher implements OnDestroy {
|
|
525
|
-
private _ngZone;
|
|
526
|
-
private _platform;
|
|
527
|
-
private _renderer;
|
|
528
|
-
private _cleanupGlobalListener;
|
|
529
|
-
constructor(...args: unknown[]);
|
|
530
|
-
/** Subject for notifying that a registered scrollable reference element has been scrolled. */
|
|
531
|
-
private readonly _scrolled;
|
|
532
|
-
/** Keeps track of the amount of subscriptions to `scrolled`. Used for cleaning up afterwards. */
|
|
533
|
-
private _scrolledCount;
|
|
534
|
-
/**
|
|
535
|
-
* Map of all the scrollable references that are registered with the service and their
|
|
536
|
-
* scroll event subscriptions.
|
|
537
|
-
*/
|
|
538
|
-
scrollContainers: Map<CdkScrollable, Subscription>;
|
|
539
|
-
/**
|
|
540
|
-
* Registers a scrollable instance with the service and listens for its scrolled events. When the
|
|
541
|
-
* scrollable is scrolled, the service emits the event to its scrolled observable.
|
|
542
|
-
* @param scrollable Scrollable instance to be registered.
|
|
543
|
-
*/
|
|
544
|
-
register(scrollable: CdkScrollable): void;
|
|
545
|
-
/**
|
|
546
|
-
* De-registers a Scrollable reference and unsubscribes from its scroll event observable.
|
|
547
|
-
* @param scrollable Scrollable instance to be deregistered.
|
|
548
|
-
*/
|
|
549
|
-
deregister(scrollable: CdkScrollable): void;
|
|
550
|
-
/**
|
|
551
|
-
* Returns an observable that emits an event whenever any of the registered Scrollable
|
|
552
|
-
* references (or window, document, or body) fire a scrolled event. Can provide a time in ms
|
|
553
|
-
* to override the default "throttle" time.
|
|
554
|
-
*
|
|
555
|
-
* **Note:** in order to avoid hitting change detection for every scroll event,
|
|
556
|
-
* all of the events emitted from this stream will be run outside the Angular zone.
|
|
557
|
-
* If you need to update any data bindings as a result of a scroll event, you have
|
|
558
|
-
* to run the callback using `NgZone.run`.
|
|
559
|
-
*/
|
|
560
|
-
scrolled(auditTimeInMs?: number): Observable<CdkScrollable | void>;
|
|
561
|
-
ngOnDestroy(): void;
|
|
562
|
-
/**
|
|
563
|
-
* Returns an observable that emits whenever any of the
|
|
564
|
-
* scrollable ancestors of an element are scrolled.
|
|
565
|
-
* @param elementOrElementRef Element whose ancestors to listen for.
|
|
566
|
-
* @param auditTimeInMs Time to throttle the scroll events.
|
|
567
|
-
*/
|
|
568
|
-
ancestorScrolled(elementOrElementRef: ElementRef | HTMLElement, auditTimeInMs?: number): Observable<CdkScrollable | void>;
|
|
569
|
-
/** Returns all registered Scrollables that contain the provided element. */
|
|
570
|
-
getAncestorScrollContainers(elementOrElementRef: ElementRef | HTMLElement): CdkScrollable[];
|
|
571
|
-
/** Returns true if the element is contained within the provided Scrollable. */
|
|
572
|
-
private _scrollableContainsElement;
|
|
573
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollDispatcher, never>;
|
|
574
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ScrollDispatcher>;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
/**
|
|
578
|
-
* @docs-primary-export
|
|
579
|
-
*/
|
|
580
|
-
export declare class ScrollingModule {
|
|
581
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollingModule, never>;
|
|
582
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ScrollingModule, never, [typeof i2.BidiModule, typeof CdkScrollableModule, typeof i3.CdkVirtualScrollViewport, typeof i4.CdkFixedSizeVirtualScroll, typeof i5.CdkVirtualForOf, typeof i6.CdkVirtualScrollableWindow, typeof i7.CdkVirtualScrollableElement], [typeof i2.BidiModule, typeof CdkScrollableModule, typeof i4.CdkFixedSizeVirtualScroll, typeof i5.CdkVirtualForOf, typeof i3.CdkVirtualScrollViewport, typeof i6.CdkVirtualScrollableWindow, typeof i7.CdkVirtualScrollableElement]>;
|
|
583
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ScrollingModule>;
|
|
10
|
+
declare const DEFAULT_RESIZE_TIME = 20;
|
|
11
|
+
/** Object that holds the scroll position of the viewport in each direction. */
|
|
12
|
+
interface ViewportScrollPosition {
|
|
13
|
+
top: number;
|
|
14
|
+
left: number;
|
|
584
15
|
}
|
|
585
|
-
|
|
586
|
-
export declare type _Start = {
|
|
587
|
-
start?: number;
|
|
588
|
-
};
|
|
589
|
-
|
|
590
|
-
export declare type _Top = {
|
|
591
|
-
top?: number;
|
|
592
|
-
};
|
|
593
|
-
|
|
594
16
|
/**
|
|
595
17
|
* Simple utility for getting the bounds of the browser viewport.
|
|
596
18
|
* @docs-private
|
|
597
19
|
*/
|
|
598
|
-
|
|
20
|
+
declare class ViewportRuler implements OnDestroy {
|
|
599
21
|
private _platform;
|
|
600
22
|
private _listeners;
|
|
601
23
|
/** Cached viewport dimensions. */
|
|
@@ -636,52 +58,5 @@ export declare class ViewportRuler implements OnDestroy {
|
|
|
636
58
|
static ɵprov: i0.ɵɵInjectableDeclaration<ViewportRuler>;
|
|
637
59
|
}
|
|
638
60
|
|
|
639
|
-
|
|
640
|
-
export
|
|
641
|
-
top: number;
|
|
642
|
-
left: number;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
/** The injection token used to specify the virtual scrolling strategy. */
|
|
646
|
-
export declare const VIRTUAL_SCROLL_STRATEGY: InjectionToken<VirtualScrollStrategy>;
|
|
647
|
-
|
|
648
|
-
export declare const VIRTUAL_SCROLLABLE: InjectionToken<CdkVirtualScrollable>;
|
|
649
|
-
|
|
650
|
-
/** A strategy that dictates which items should be rendered in the viewport. */
|
|
651
|
-
export declare interface VirtualScrollStrategy {
|
|
652
|
-
/** Emits when the index of the first element visible in the viewport changes. */
|
|
653
|
-
scrolledIndexChange: Observable<number>;
|
|
654
|
-
/**
|
|
655
|
-
* Attaches this scroll strategy to a viewport.
|
|
656
|
-
* @param viewport The viewport to attach this strategy to.
|
|
657
|
-
*/
|
|
658
|
-
attach(viewport: CdkVirtualScrollViewport): void;
|
|
659
|
-
/** Detaches this scroll strategy from the currently attached viewport. */
|
|
660
|
-
detach(): void;
|
|
661
|
-
/** Called when the viewport is scrolled (debounced using requestAnimationFrame). */
|
|
662
|
-
onContentScrolled(): void;
|
|
663
|
-
/** Called when the length of the data changes. */
|
|
664
|
-
onDataLengthChanged(): void;
|
|
665
|
-
/** Called when the range of items rendered in the DOM has changed. */
|
|
666
|
-
onContentRendered(): void;
|
|
667
|
-
/** Called when the offset of the rendered items changed. */
|
|
668
|
-
onRenderedOffsetChanged(): void;
|
|
669
|
-
/**
|
|
670
|
-
* Scroll to the offset for the given index.
|
|
671
|
-
* @param index The index of the element to scroll to.
|
|
672
|
-
* @param behavior The ScrollBehavior to use when scrolling.
|
|
673
|
-
*/
|
|
674
|
-
scrollToIndex(index: number, behavior: ScrollBehavior): void;
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
export declare type _Without<T> = {
|
|
678
|
-
[P in keyof T]?: never;
|
|
679
|
-
};
|
|
680
|
-
|
|
681
|
-
export declare type _XAxis = _XOR<_XOR<_Left, _Right>, _XOR<_Start, _End>>;
|
|
682
|
-
|
|
683
|
-
export declare type _XOR<T, U> = (_Without<T> & U) | (_Without<U> & T);
|
|
684
|
-
|
|
685
|
-
export declare type _YAxis = _XOR<_Top, _Bottom>;
|
|
686
|
-
|
|
687
|
-
export { }
|
|
61
|
+
export { DEFAULT_RESIZE_TIME, ViewportRuler };
|
|
62
|
+
export type { ViewportScrollPosition };
|