@kato-lee/cdk 14.2.7 → 20.2.14
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/LICENSE +21 -21
- package/README.md +8 -8
- package/_adev_assets/cdk_drag_drop.json +7215 -0
- package/_adev_assets/cdk_testing.json +7605 -0
- package/_adev_assets/cdk_testing_protractor.json +1747 -0
- package/_adev_assets/cdk_testing_selenium_webdriver.json +1801 -0
- package/_adev_assets/cdk_testing_testbed.json +1903 -0
- package/_index.scss +8 -8
- package/a11y/_index.scss +60 -102
- package/a11y/index.d.ts +550 -1212
- package/a11y-module.d.d.ts +314 -0
- package/a11y-prebuilt.css +1 -1
- package/accordion/index.d.ts +92 -140
- package/activedescendant-key-manager.d.d.ts +39 -0
- package/bidi/index.d.ts +21 -80
- package/bidi-module.d.d.ts +57 -0
- package/clipboard/index.d.ts +101 -115
- package/coercion/index.d.ts +45 -67
- package/coercion/private/index.d.ts +9 -0
- package/collections/index.d.ts +99 -374
- package/data-source.d.d.ts +43 -0
- package/dialog/index.d.ts +412 -469
- package/drag-drop/index.d.ts +1410 -1614
- package/fesm2022/a11y-module.mjs +951 -0
- package/fesm2022/a11y-module.mjs.map +1 -0
- package/fesm2022/a11y.mjs +538 -0
- package/fesm2022/a11y.mjs.map +1 -0
- package/fesm2022/accordion.mjs +216 -0
- package/fesm2022/accordion.mjs.map +1 -0
- package/fesm2022/activedescendant-key-manager.mjs +16 -0
- package/fesm2022/activedescendant-key-manager.mjs.map +1 -0
- package/fesm2022/array.mjs +6 -0
- package/fesm2022/array.mjs.map +1 -0
- package/fesm2022/bidi.mjs +78 -0
- package/fesm2022/bidi.mjs.map +1 -0
- package/fesm2022/breakpoints-observer.mjs +179 -0
- package/fesm2022/breakpoints-observer.mjs.map +1 -0
- package/fesm2022/cdk.mjs +7 -0
- package/fesm2022/cdk.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/clipboard.mjs +210 -259
- package/fesm2022/clipboard.mjs.map +1 -0
- package/fesm2022/coercion/private.mjs +15 -0
- package/fesm2022/coercion/private.mjs.map +1 -0
- package/fesm2022/coercion.mjs +43 -0
- package/fesm2022/coercion.mjs.map +1 -0
- package/fesm2022/collections.mjs +8 -0
- package/fesm2022/collections.mjs.map +1 -0
- package/fesm2022/css-pixel-value.mjs +10 -0
- package/fesm2022/css-pixel-value.mjs.map +1 -0
- package/fesm2022/data-source.mjs +15 -0
- package/fesm2022/data-source.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/dialog.mjs +874 -787
- package/fesm2022/dialog.mjs.map +1 -0
- package/fesm2022/directionality.mjs +77 -0
- package/fesm2022/directionality.mjs.map +1 -0
- package/fesm2022/dispose-view-repeater-strategy.mjs +44 -0
- package/fesm2022/dispose-view-repeater-strategy.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/drag-drop.mjs +4477 -3808
- package/fesm2022/drag-drop.mjs.map +1 -0
- package/fesm2022/element.mjs +29 -0
- package/fesm2022/element.mjs.map +1 -0
- package/fesm2022/fake-event-detection.mjs +24 -0
- package/fesm2022/fake-event-detection.mjs.map +1 -0
- package/fesm2022/focus-key-manager.mjs +22 -0
- package/fesm2022/focus-key-manager.mjs.map +1 -0
- package/fesm2022/focus-monitor.mjs +622 -0
- package/fesm2022/focus-monitor.mjs.map +1 -0
- package/fesm2022/id-generator.mjs +37 -0
- package/fesm2022/id-generator.mjs.map +1 -0
- package/fesm2022/keycodes.mjs +15 -0
- package/fesm2022/keycodes.mjs.map +1 -0
- package/{fesm2015/keycodes.mjs → fesm2022/keycodes2.mjs} +122 -167
- package/fesm2022/keycodes2.mjs.map +1 -0
- package/fesm2022/layout.mjs +43 -0
- package/fesm2022/layout.mjs.map +1 -0
- package/fesm2022/list-key-manager.mjs +360 -0
- package/fesm2022/list-key-manager.mjs.map +1 -0
- package/fesm2022/listbox.mjs +928 -0
- package/fesm2022/listbox.mjs.map +1 -0
- package/fesm2022/menu.mjs +2001 -0
- package/fesm2022/menu.mjs.map +1 -0
- package/fesm2022/observers/private.mjs +124 -0
- package/fesm2022/observers/private.mjs.map +1 -0
- package/fesm2022/observers.mjs +210 -0
- package/fesm2022/observers.mjs.map +1 -0
- package/{fesm2020/overlay.mjs → fesm2022/overlay-module.mjs} +3062 -3145
- package/fesm2022/overlay-module.mjs.map +1 -0
- package/fesm2022/overlay.mjs +101 -0
- package/fesm2022/overlay.mjs.map +1 -0
- package/fesm2022/passive-listeners.mjs +31 -0
- package/fesm2022/passive-listeners.mjs.map +1 -0
- package/fesm2022/platform.mjs +73 -0
- package/fesm2022/platform.mjs.map +1 -0
- package/fesm2022/platform2.mjs +77 -0
- package/fesm2022/platform2.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/portal.mjs +614 -689
- package/fesm2022/portal.mjs.map +1 -0
- package/fesm2022/private.mjs +19 -0
- package/fesm2022/private.mjs.map +1 -0
- package/fesm2022/recycle-view-repeater-strategy.mjs +156 -0
- package/fesm2022/recycle-view-repeater-strategy.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/scrolling.mjs +1472 -1558
- package/fesm2022/scrolling.mjs.map +1 -0
- package/fesm2022/scrolling2.mjs +99 -0
- package/fesm2022/scrolling2.mjs.map +1 -0
- package/fesm2022/selection-model.mjs +221 -0
- package/fesm2022/selection-model.mjs.map +1 -0
- package/fesm2022/shadow-dom.mjs +49 -0
- package/fesm2022/shadow-dom.mjs.map +1 -0
- package/fesm2022/stepper.mjs +632 -0
- package/fesm2022/stepper.mjs.map +1 -0
- package/fesm2022/style-loader.mjs +47 -0
- package/fesm2022/style-loader.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/table.mjs +2511 -2348
- package/fesm2022/table.mjs.map +1 -0
- package/fesm2022/test-environment.mjs +19 -0
- package/fesm2022/test-environment.mjs.map +1 -0
- package/fesm2022/testing/selenium-webdriver.mjs +353 -0
- package/fesm2022/testing/selenium-webdriver.mjs.map +1 -0
- package/fesm2022/testing/testbed.mjs +782 -0
- package/fesm2022/testing/testbed.mjs.map +1 -0
- package/fesm2022/testing.mjs +950 -0
- package/fesm2022/testing.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/text-field.mjs +432 -459
- package/fesm2022/text-field.mjs.map +1 -0
- package/fesm2022/tree-key-manager.mjs +360 -0
- package/fesm2022/tree-key-manager.mjs.map +1 -0
- package/fesm2022/tree.mjs +1800 -0
- package/fesm2022/tree.mjs.map +1 -0
- package/fesm2022/typeahead.mjs +88 -0
- package/fesm2022/typeahead.mjs.map +1 -0
- package/fesm2022/unique-selection-dispatcher.mjs +49 -0
- package/fesm2022/unique-selection-dispatcher.mjs.map +1 -0
- package/focus-key-manager.d.d.ts +39 -0
- package/focus-monitor.d.d.ts +208 -0
- package/harness-environment.d.d.ts +944 -0
- package/index.d.ts +6 -6
- package/keycodes/index.d.ts +129 -249
- package/layout/index.d.ts +89 -90
- package/list-key-manager.d.d.ts +170 -0
- package/listbox/index.d.ts +354 -419
- package/menu/index.d.ts +834 -1013
- package/number-property.d.d.ts +16 -0
- package/observers/index.d.ts +84 -109
- package/observers/private/index.d.ts +34 -0
- package/overlay/_index-deprecated.scss +13 -13
- package/overlay/_index.scss +193 -152
- package/overlay/index.d.ts +328 -1343
- package/overlay-module.d.d.ts +801 -0
- package/overlay-prebuilt.css +1 -1
- package/package.json +177 -232
- package/platform/index.d.ts +67 -106
- package/platform.d.d.ts +33 -0
- package/portal/index.d.ts +51 -328
- package/portal-directives.d.d.ts +211 -0
- package/private/index.d.ts +13 -0
- package/schematics/collection.json +18 -0
- package/schematics/index.d.ts +14 -0
- package/schematics/index.js +37 -0
- package/schematics/index.js.map +1 -0
- package/schematics/migration.json +15 -0
- package/schematics/ng-add/index.d.ts +17 -0
- package/schematics/ng-add/index.js +31 -0
- package/schematics/ng-add/index.js.map +1 -0
- package/schematics/ng-add/schema.d.ts +11 -0
- package/schematics/ng-add/schema.js +10 -0
- package/schematics/ng-add/schema.js.map +1 -0
- package/schematics/ng-add/schema.json +16 -0
- package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__style__.template +53 -0
- package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +21 -0
- package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +25 -0
- package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +45 -0
- package/schematics/ng-generate/drag-drop/index.d.ts +11 -0
- package/schematics/ng-generate/drag-drop/index.js +42 -0
- package/schematics/ng-generate/drag-drop/index.js.map +1 -0
- package/schematics/ng-generate/drag-drop/schema.d.ts +10 -0
- package/schematics/ng-generate/drag-drop/schema.js +10 -0
- package/schematics/ng-generate/drag-drop/schema.js.map +1 -0
- package/schematics/ng-generate/drag-drop/schema.json +100 -0
- package/schematics/ng-update/data/attribute-selectors.d.ts +15 -0
- package/schematics/ng-update/data/attribute-selectors.js +12 -0
- package/schematics/ng-update/data/attribute-selectors.js.map +1 -0
- package/schematics/ng-update/data/class-names.d.ts +15 -0
- package/schematics/ng-update/data/class-names.js +12 -0
- package/schematics/ng-update/data/class-names.js.map +1 -0
- package/schematics/ng-update/data/constructor-checks.d.ts +15 -0
- package/schematics/ng-update/data/constructor-checks.js +17 -0
- package/schematics/ng-update/data/constructor-checks.js.map +1 -0
- package/schematics/ng-update/data/css-selectors.d.ts +27 -0
- package/schematics/ng-update/data/css-selectors.js +12 -0
- package/schematics/ng-update/data/css-selectors.js.map +1 -0
- package/schematics/ng-update/data/css-tokens.d.ts +27 -0
- package/schematics/ng-update/data/css-tokens.js +12 -0
- package/schematics/ng-update/data/css-tokens.js.map +1 -0
- package/schematics/ng-update/data/element-selectors.d.ts +15 -0
- package/schematics/ng-update/data/element-selectors.js +12 -0
- package/schematics/ng-update/data/element-selectors.js.map +1 -0
- package/schematics/ng-update/data/index.d.ts +18 -0
- package/schematics/ng-update/data/index.js +35 -0
- package/schematics/ng-update/data/index.js.map +1 -0
- package/schematics/ng-update/data/input-names.d.ts +22 -0
- package/schematics/ng-update/data/input-names.js +12 -0
- package/schematics/ng-update/data/input-names.js.map +1 -0
- package/schematics/ng-update/data/method-call-checks.d.ts +17 -0
- package/schematics/ng-update/data/method-call-checks.js +12 -0
- package/schematics/ng-update/data/method-call-checks.js.map +1 -0
- package/schematics/ng-update/data/output-names.d.ts +22 -0
- package/schematics/ng-update/data/output-names.js +12 -0
- package/schematics/ng-update/data/output-names.js.map +1 -0
- package/schematics/ng-update/data/property-names.d.ts +20 -0
- package/schematics/ng-update/data/property-names.js +12 -0
- package/schematics/ng-update/data/property-names.js.map +1 -0
- package/schematics/ng-update/data/symbol-removal.d.ts +17 -0
- package/schematics/ng-update/data/symbol-removal.js +12 -0
- package/schematics/ng-update/data/symbol-removal.js.map +1 -0
- package/schematics/ng-update/devkit-file-system.d.ts +30 -0
- package/schematics/ng-update/devkit-file-system.js +83 -0
- package/schematics/ng-update/devkit-file-system.js.map +1 -0
- package/schematics/ng-update/devkit-migration-rule.d.ts +24 -0
- package/schematics/ng-update/devkit-migration-rule.js +142 -0
- package/schematics/ng-update/devkit-migration-rule.js.map +1 -0
- package/schematics/ng-update/devkit-migration.d.ts +35 -0
- package/schematics/ng-update/devkit-migration.js +20 -0
- package/schematics/ng-update/devkit-migration.js.map +1 -0
- package/schematics/ng-update/find-stylesheets.d.ts +16 -0
- package/schematics/ng-update/find-stylesheets.js +41 -0
- package/schematics/ng-update/find-stylesheets.js.map +1 -0
- package/schematics/ng-update/html-parsing/angular.d.ts +15 -0
- package/schematics/ng-update/html-parsing/angular.js +51 -0
- package/schematics/ng-update/html-parsing/angular.js.map +1 -0
- package/schematics/ng-update/html-parsing/elements.d.ts +24 -0
- package/schematics/ng-update/html-parsing/elements.js +63 -0
- package/schematics/ng-update/html-parsing/elements.js.map +1 -0
- package/schematics/ng-update/index.d.ts +10 -0
- package/schematics/ng-update/index.js +29 -0
- package/schematics/ng-update/index.js.map +1 -0
- package/schematics/ng-update/migrations/attribute-selectors.d.ts +26 -0
- package/schematics/ng-update/migrations/attribute-selectors.js +71 -0
- package/schematics/ng-update/migrations/attribute-selectors.js.map +1 -0
- package/schematics/ng-update/migrations/class-inheritance.d.ts +26 -0
- package/schematics/ng-update/migrations/class-inheritance.js +58 -0
- package/schematics/ng-update/migrations/class-inheritance.js.map +1 -0
- package/schematics/ng-update/migrations/class-names.d.ts +32 -0
- package/schematics/ng-update/migrations/class-names.js +91 -0
- package/schematics/ng-update/migrations/class-names.js.map +1 -0
- package/schematics/ng-update/migrations/constructor-signature.d.ts +29 -0
- package/schematics/ng-update/migrations/constructor-signature.js +139 -0
- package/schematics/ng-update/migrations/constructor-signature.js.map +1 -0
- package/schematics/ng-update/migrations/css-selectors.d.ts +26 -0
- package/schematics/ng-update/migrations/css-selectors.js +75 -0
- package/schematics/ng-update/migrations/css-selectors.js.map +1 -0
- package/schematics/ng-update/migrations/css-tokens.d.ts +26 -0
- package/schematics/ng-update/migrations/css-tokens.js +83 -0
- package/schematics/ng-update/migrations/css-tokens.js.map +1 -0
- package/schematics/ng-update/migrations/element-selectors.d.ts +26 -0
- package/schematics/ng-update/migrations/element-selectors.js +66 -0
- package/schematics/ng-update/migrations/element-selectors.js.map +1 -0
- package/schematics/ng-update/migrations/input-names.d.ts +26 -0
- package/schematics/ng-update/migrations/input-names.js +59 -0
- package/schematics/ng-update/migrations/input-names.js.map +1 -0
- package/schematics/ng-update/migrations/method-call-arguments.d.ts +22 -0
- package/schematics/ng-update/migrations/method-call-arguments.js +62 -0
- package/schematics/ng-update/migrations/method-call-arguments.js.map +1 -0
- package/schematics/ng-update/migrations/misc-template.d.ts +18 -0
- package/schematics/ng-update/migrations/misc-template.js +25 -0
- package/schematics/ng-update/migrations/misc-template.js.map +1 -0
- package/schematics/ng-update/migrations/output-names.d.ts +22 -0
- package/schematics/ng-update/migrations/output-names.js +46 -0
- package/schematics/ng-update/migrations/output-names.js.map +1 -0
- package/schematics/ng-update/migrations/property-names.d.ts +22 -0
- package/schematics/ng-update/migrations/property-names.js +60 -0
- package/schematics/ng-update/migrations/property-names.js.map +1 -0
- package/schematics/ng-update/migrations/symbol-removal.d.ts +18 -0
- package/schematics/ng-update/migrations/symbol-removal.js +47 -0
- package/schematics/ng-update/migrations/symbol-removal.js.map +1 -0
- package/schematics/ng-update/public-api.d.ts +19 -0
- package/schematics/ng-update/public-api.js +36 -0
- package/schematics/ng-update/public-api.js.map +1 -0
- package/schematics/ng-update/typescript/base-types.d.ts +10 -0
- package/schematics/ng-update/typescript/base-types.js +23 -0
- package/schematics/ng-update/typescript/base-types.js.map +1 -0
- package/schematics/ng-update/typescript/imports.d.ts +18 -0
- package/schematics/ng-update/typescript/imports.js +53 -0
- package/schematics/ng-update/typescript/imports.js.map +1 -0
- package/schematics/ng-update/typescript/literal.d.ts +18 -0
- package/schematics/ng-update/typescript/literal.js +32 -0
- package/schematics/ng-update/typescript/literal.js.map +1 -0
- package/schematics/ng-update/typescript/module-specifiers.d.ts +16 -0
- package/schematics/ng-update/typescript/module-specifiers.js +35 -0
- package/schematics/ng-update/typescript/module-specifiers.js.map +1 -0
- package/schematics/ng-update/upgrade-data.d.ts +35 -0
- package/schematics/ng-update/upgrade-data.js +40 -0
- package/schematics/ng-update/upgrade-data.js.map +1 -0
- package/schematics/package.json +3 -0
- package/schematics/paths.d.ts +11 -0
- package/schematics/paths.js +16 -0
- package/schematics/paths.js.map +1 -0
- package/schematics/update-tool/component-resource-collector.d.ts +44 -0
- package/schematics/update-tool/component-resource-collector.js +164 -0
- package/schematics/update-tool/component-resource-collector.js.map +1 -0
- package/schematics/update-tool/file-system.d.ts +72 -0
- package/schematics/update-tool/file-system.js +18 -0
- package/schematics/update-tool/file-system.js.map +1 -0
- package/schematics/update-tool/index.d.ts +74 -0
- package/schematics/update-tool/index.js +172 -0
- package/schematics/update-tool/index.js.map +1 -0
- package/schematics/update-tool/logger.d.ts +15 -0
- package/schematics/update-tool/logger.js +18 -0
- package/schematics/update-tool/logger.js.map +1 -0
- package/schematics/update-tool/migration.d.ts +87 -0
- package/schematics/update-tool/migration.js +70 -0
- package/schematics/update-tool/migration.js.map +1 -0
- package/schematics/update-tool/public-api.d.ts +16 -0
- package/schematics/update-tool/public-api.js +33 -0
- package/schematics/update-tool/public-api.js.map +1 -0
- package/schematics/update-tool/target-version.d.ts +16 -0
- package/schematics/update-tool/target-version.js +27 -0
- package/schematics/update-tool/target-version.js.map +1 -0
- package/schematics/update-tool/update-recorder.d.ts +13 -0
- package/schematics/update-tool/update-recorder.js +10 -0
- package/schematics/update-tool/update-recorder.js.map +1 -0
- package/schematics/update-tool/utils/decorators.d.ts +22 -0
- package/schematics/update-tool/utils/decorators.js +41 -0
- package/schematics/update-tool/utils/decorators.js.map +1 -0
- package/schematics/update-tool/utils/diagnostics.d.ts +11 -0
- package/schematics/update-tool/utils/diagnostics.js +18 -0
- package/schematics/update-tool/utils/diagnostics.js.map +1 -0
- package/schematics/update-tool/utils/functions.d.ts +14 -0
- package/schematics/update-tool/utils/functions.js +20 -0
- package/schematics/update-tool/utils/functions.js.map +1 -0
- package/schematics/update-tool/utils/imports.d.ts +17 -0
- package/schematics/update-tool/utils/imports.js +110 -0
- package/schematics/update-tool/utils/imports.js.map +1 -0
- package/schematics/update-tool/utils/line-mappings.d.ts +21 -0
- package/schematics/update-tool/utils/line-mappings.js +75 -0
- package/schematics/update-tool/utils/line-mappings.js.map +1 -0
- package/schematics/update-tool/utils/parse-tsconfig.d.ts +18 -0
- package/schematics/update-tool/utils/parse-tsconfig.js +45 -0
- package/schematics/update-tool/utils/parse-tsconfig.js.map +1 -0
- package/schematics/update-tool/utils/property-name.d.ts +18 -0
- package/schematics/update-tool/utils/property-name.js +27 -0
- package/schematics/update-tool/utils/property-name.js.map +1 -0
- package/schematics/update-tool/utils/virtual-host.d.ts +36 -0
- package/schematics/update-tool/utils/virtual-host.js +71 -0
- package/schematics/update-tool/utils/virtual-host.js.map +1 -0
- package/schematics/update-tool/version-changes.d.ts +32 -0
- package/schematics/update-tool/version-changes.js +38 -0
- package/schematics/update-tool/version-changes.js.map +1 -0
- package/schematics/utils/ast/ng-module-imports.d.ts +12 -0
- package/schematics/utils/ast/ng-module-imports.js +82 -0
- package/schematics/utils/ast/ng-module-imports.js.map +1 -0
- package/schematics/utils/ast.d.ts +25 -0
- package/schematics/utils/ast.js +79 -0
- package/schematics/utils/ast.js.map +1 -0
- package/schematics/utils/build-component.d.ts +20 -0
- package/schematics/utils/build-component.js +189 -0
- package/schematics/utils/build-component.js.map +1 -0
- package/schematics/utils/get-project.d.ts +13 -0
- package/schematics/utils/get-project.js +28 -0
- package/schematics/utils/get-project.js.map +1 -0
- package/schematics/utils/html-manipulation.d.ts +15 -0
- package/schematics/utils/html-manipulation.js +91 -0
- package/schematics/utils/html-manipulation.js.map +1 -0
- package/schematics/utils/index.d.ts +19 -0
- package/schematics/utils/index.js +36 -0
- package/schematics/utils/index.js.map +1 -0
- package/schematics/utils/parse5-element.d.ts +12 -0
- package/schematics/utils/parse5-element.js +30 -0
- package/schematics/utils/parse5-element.js.map +1 -0
- package/schematics/utils/project-index-file.d.ts +13 -0
- package/schematics/utils/project-index-file.js +43 -0
- package/schematics/utils/project-index-file.js.map +1 -0
- package/schematics/utils/project-main-file.d.ts +11 -0
- package/schematics/utils/project-main-file.js +25 -0
- package/schematics/utils/project-main-file.js.map +1 -0
- package/schematics/utils/project-style-file.d.ts +13 -0
- package/schematics/utils/project-style-file.js +42 -0
- package/schematics/utils/project-style-file.js.map +1 -0
- package/schematics/utils/project-targets.d.ts +15 -0
- package/schematics/utils/project-targets.js +46 -0
- package/schematics/utils/project-targets.js.map +1 -0
- package/schematics/utils/project-tsconfig-paths.d.ts +14 -0
- package/schematics/utils/project-tsconfig-paths.js +46 -0
- package/schematics/utils/project-tsconfig-paths.js.map +1 -0
- package/schematics/utils/schematic-options.d.ts +20 -0
- package/schematics/utils/schematic-options.js +89 -0
- package/schematics/utils/schematic-options.js.map +1 -0
- package/scrolling/index.d.ts +62 -849
- package/scrolling-module.d.d.ts +551 -0
- package/selection-model.d.d.ts +112 -0
- package/stepper/index.d.ts +236 -419
- package/style-loader.d.d.ts +21 -0
- package/table/index.d.ts +901 -1483
- package/testing/index.d.ts +98 -0
- package/testing/selenium-webdriver/index.d.ts +150 -0
- package/testing/testbed/index.d.ts +157 -0
- package/text-field/_index.scss +89 -89
- package/text-field/index.d.ts +154 -203
- package/text-field-prebuilt.css +1 -1
- package/tree/index.d.ts +720 -593
- package/tree-key-manager-strategy.d.d.ts +116 -0
- package/unique-selection-dispatcher.d.d.ts +33 -0
- package/view-repeater.d.d.ts +88 -0
- package/a11y/_index.import.scss +0 -2
- package/esm2020/a11y/a11y-module.mjs +0 -32
- package/esm2020/a11y/a11y_public_index.mjs +0 -5
- package/esm2020/a11y/aria-describer/aria-describer.mjs +0 -232
- package/esm2020/a11y/aria-describer/aria-reference.mjs +0 -44
- package/esm2020/a11y/fake-event-detection.mjs +0 -31
- package/esm2020/a11y/focus-monitor/focus-monitor.mjs +0 -451
- package/esm2020/a11y/focus-trap/configurable-focus-trap-config.mjs +0 -9
- package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +0 -53
- package/esm2020/a11y/focus-trap/configurable-focus-trap.mjs +0 -51
- package/esm2020/a11y/focus-trap/event-listener-inert-strategy.mjs +0 -61
- package/esm2020/a11y/focus-trap/focus-trap-inert-strategy.mjs +0 -11
- package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +0 -53
- package/esm2020/a11y/focus-trap/focus-trap.mjs +0 -402
- package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +0 -109
- package/esm2020/a11y/index.mjs +0 -9
- package/esm2020/a11y/input-modality/input-modality-detector.mjs +0 -176
- package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +0 -238
- package/esm2020/a11y/key-manager/activedescendant-key-manager.mjs +0 -20
- package/esm2020/a11y/key-manager/focus-key-manager.mjs +0 -29
- package/esm2020/a11y/key-manager/list-key-manager.mjs +0 -321
- package/esm2020/a11y/live-announcer/live-announcer-tokens.mjs +0 -19
- package/esm2020/a11y/live-announcer/live-announcer.mjs +0 -178
- package/esm2020/a11y/public-api.mjs +0 -26
- package/esm2020/accordion/accordion-item.mjs +0 -167
- package/esm2020/accordion/accordion-module.mjs +0 -24
- package/esm2020/accordion/accordion.mjs +0 -70
- package/esm2020/accordion/accordion_public_index.mjs +0 -5
- package/esm2020/accordion/index.mjs +0 -9
- package/esm2020/accordion/public-api.mjs +0 -11
- package/esm2020/bidi/bidi-module.mjs +0 -23
- package/esm2020/bidi/bidi_public_index.mjs +0 -5
- package/esm2020/bidi/dir-document-token.mjs +0 -33
- package/esm2020/bidi/dir.mjs +0 -69
- package/esm2020/bidi/directionality.mjs +0 -52
- package/esm2020/bidi/index.mjs +0 -9
- package/esm2020/bidi/public-api.mjs +0 -12
- package/esm2020/clipboard/clipboard-module.mjs +0 -23
- package/esm2020/clipboard/clipboard.mjs +0 -53
- package/esm2020/clipboard/clipboard_public_index.mjs +0 -5
- package/esm2020/clipboard/copy-to-clipboard.mjs +0 -99
- package/esm2020/clipboard/index.mjs +0 -9
- package/esm2020/clipboard/pending-copy.mjs +0 -69
- package/esm2020/clipboard/public-api.mjs +0 -12
- package/esm2020/coercion/array.mjs +0 -11
- package/esm2020/coercion/boolean-property.mjs +0 -12
- package/esm2020/coercion/css-pixel-value.mjs +0 -15
- package/esm2020/coercion/element.mjs +0 -16
- package/esm2020/coercion/index.mjs +0 -9
- package/esm2020/coercion/number-property.mjs +0 -21
- package/esm2020/coercion/public-api.mjs +0 -14
- package/esm2020/coercion/string-array.mjs +0 -38
- package/esm2020/collections/array-data-source.mjs +0 -21
- package/esm2020/collections/collection-viewer.mjs +0 -9
- package/esm2020/collections/collections_public_index.mjs +0 -5
- package/esm2020/collections/data-source.mjs +0 -19
- package/esm2020/collections/dispose-view-repeater-strategy.mjs +0 -47
- package/esm2020/collections/index.mjs +0 -9
- package/esm2020/collections/public-api.mjs +0 -17
- package/esm2020/collections/recycle-view-repeater-strategy.mjs +0 -128
- package/esm2020/collections/selection-model.mjs +0 -216
- package/esm2020/collections/tree-adapter.mjs +0 -9
- package/esm2020/collections/unique-selection-dispatcher.mjs +0 -55
- package/esm2020/collections/view-repeater.mjs +0 -14
- package/esm2020/dialog/dialog-config.mjs +0 -63
- package/esm2020/dialog/dialog-container.mjs +0 -278
- package/esm2020/dialog/dialog-injectors.mjs +0 -26
- package/esm2020/dialog/dialog-module.mjs +0 -42
- package/esm2020/dialog/dialog-ref.mjs +0 -76
- package/esm2020/dialog/dialog.mjs +0 -301
- package/esm2020/dialog/dialog_public_index.mjs +0 -5
- package/esm2020/dialog/index.mjs +0 -9
- package/esm2020/dialog/public-api.mjs +0 -14
- package/esm2020/drag-drop/directives/assertions.mjs +0 -18
- package/esm2020/drag-drop/directives/config.mjs +0 -14
- package/esm2020/drag-drop/directives/drag-handle.mjs +0 -66
- package/esm2020/drag-drop/directives/drag-placeholder.mjs +0 -36
- package/esm2020/drag-drop/directives/drag-preview.mjs +0 -47
- package/esm2020/drag-drop/directives/drag.mjs +0 -487
- package/esm2020/drag-drop/directives/drop-list-group.mjs +0 -53
- package/esm2020/drag-drop/directives/drop-list.mjs +0 -345
- package/esm2020/drag-drop/dom/client-rect.mjs +0 -64
- package/esm2020/drag-drop/dom/clone-node.mjs +0 -65
- package/esm2020/drag-drop/dom/parent-position-tracker.mjs +0 -76
- package/esm2020/drag-drop/dom/styling.mjs +0 -69
- package/esm2020/drag-drop/dom/transition-duration.mjs +0 -36
- package/esm2020/drag-drop/drag-drop-module.mjs +0 -57
- package/esm2020/drag-drop/drag-drop-registry.mjs +0 -231
- package/esm2020/drag-drop/drag-drop.mjs +0 -57
- package/esm2020/drag-drop/drag-drop_public_index.mjs +0 -5
- package/esm2020/drag-drop/drag-events.mjs +0 -9
- package/esm2020/drag-drop/drag-parent.mjs +0 -16
- package/esm2020/drag-drop/drag-ref.mjs +0 -1146
- package/esm2020/drag-drop/drag-utils.mjs +0 -60
- package/esm2020/drag-drop/drop-list-ref.mjs +0 -577
- package/esm2020/drag-drop/index.mjs +0 -9
- package/esm2020/drag-drop/public-api.mjs +0 -23
- package/esm2020/drag-drop/sorting/drop-list-sort-strategy.mjs +0 -9
- package/esm2020/drag-drop/sorting/single-axis-sort-strategy.mjs +0 -341
- package/esm2020/index.mjs +0 -9
- package/esm2020/keycodes/index.mjs +0 -9
- package/esm2020/keycodes/keycodes.mjs +0 -127
- package/esm2020/keycodes/keycodes_public_index.mjs +0 -5
- package/esm2020/keycodes/modifiers.mjs +0 -18
- package/esm2020/keycodes/public-api.mjs +0 -10
- package/esm2020/layout/breakpoints-observer.mjs +0 -105
- package/esm2020/layout/breakpoints.mjs +0 -29
- package/esm2020/layout/index.mjs +0 -9
- package/esm2020/layout/layout-module.mjs +0 -19
- package/esm2020/layout/layout_public_index.mjs +0 -5
- package/esm2020/layout/media-matcher.mjs +0 -85
- package/esm2020/layout/public-api.mjs +0 -12
- package/esm2020/listbox/index.mjs +0 -9
- package/esm2020/listbox/listbox-module.mjs +0 -24
- package/esm2020/listbox/listbox.mjs +0 -872
- package/esm2020/listbox/listbox_public_index.mjs +0 -5
- package/esm2020/listbox/public-api.mjs +0 -10
- package/esm2020/menu/context-menu-trigger.mjs +0 -212
- package/esm2020/menu/index.mjs +0 -9
- package/esm2020/menu/menu-aim.mjs +0 -203
- package/esm2020/menu/menu-bar.mjs +0 -133
- package/esm2020/menu/menu-base.mjs +0 -187
- package/esm2020/menu/menu-errors.mjs +0 -22
- package/esm2020/menu/menu-group.mjs +0 -30
- package/esm2020/menu/menu-interface.mjs +0 -11
- package/esm2020/menu/menu-item-checkbox.mjs +0 -49
- package/esm2020/menu/menu-item-radio.mjs +0 -71
- package/esm2020/menu/menu-item-selectable.mjs +0 -42
- package/esm2020/menu/menu-item.mjs +0 -267
- package/esm2020/menu/menu-module.mjs +0 -62
- package/esm2020/menu/menu-stack.mjs +0 -156
- package/esm2020/menu/menu-trigger-base.mjs +0 -107
- package/esm2020/menu/menu-trigger.mjs +0 -291
- package/esm2020/menu/menu.mjs +0 -134
- package/esm2020/menu/menu_public_index.mjs +0 -5
- package/esm2020/menu/pointer-focus-tracker.mjs +0 -51
- package/esm2020/menu/public-api.mjs +0 -24
- package/esm2020/observers/index.mjs +0 -9
- package/esm2020/observers/observe-content.mjs +0 -187
- package/esm2020/observers/observers_public_index.mjs +0 -5
- package/esm2020/observers/public-api.mjs +0 -9
- package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +0 -52
- package/esm2020/overlay/dispatchers/index.mjs +0 -10
- package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +0 -81
- package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +0 -138
- package/esm2020/overlay/fullscreen-overlay-container.mjs +0 -94
- package/esm2020/overlay/index.mjs +0 -9
- package/esm2020/overlay/overlay-config.mjs +0 -45
- package/esm2020/overlay/overlay-container.mjs +0 -81
- package/esm2020/overlay/overlay-directives.mjs +0 -427
- package/esm2020/overlay/overlay-module.mjs +0 -29
- package/esm2020/overlay/overlay-ref.mjs +0 -427
- package/esm2020/overlay/overlay-reference.mjs +0 -9
- package/esm2020/overlay/overlay.mjs +0 -125
- package/esm2020/overlay/overlay_public_index.mjs +0 -5
- package/esm2020/overlay/position/connected-position.mjs +0 -88
- package/esm2020/overlay/position/flexible-connected-position-strategy.mjs +0 -985
- package/esm2020/overlay/position/global-position-strategy.mjs +0 -237
- package/esm2020/overlay/position/overlay-position-builder.mjs +0 -50
- package/esm2020/overlay/position/position-strategy.mjs +0 -9
- package/esm2020/overlay/position/scroll-clip.mjs +0 -40
- package/esm2020/overlay/public-api.mjs +0 -22
- package/esm2020/overlay/scroll/block-scroll-strategy.mjs +0 -80
- package/esm2020/overlay/scroll/close-scroll-strategy.mjs +0 -61
- package/esm2020/overlay/scroll/index.mjs +0 -14
- package/esm2020/overlay/scroll/noop-scroll-strategy.mjs +0 -17
- package/esm2020/overlay/scroll/reposition-scroll-strategy.mjs +0 -61
- package/esm2020/overlay/scroll/scroll-strategy-options.mjs +0 -55
- package/esm2020/overlay/scroll/scroll-strategy.mjs +0 -14
- package/esm2020/platform/features/input-types.mjs +0 -59
- package/esm2020/platform/features/passive-listeners.mjs +0 -36
- package/esm2020/platform/features/scrolling.mjs +0 -85
- package/esm2020/platform/features/shadow-dom.mjs +0 -54
- package/esm2020/platform/features/test-environment.mjs +0 -24
- package/esm2020/platform/index.mjs +0 -9
- package/esm2020/platform/platform-module.mjs +0 -19
- package/esm2020/platform/platform.mjs +0 -85
- package/esm2020/platform/platform_public_index.mjs +0 -5
- package/esm2020/platform/public-api.mjs +0 -15
- package/esm2020/portal/dom-portal-outlet.mjs +0 -158
- package/esm2020/portal/index.mjs +0 -9
- package/esm2020/portal/portal-directives.mjs +0 -246
- package/esm2020/portal/portal-errors.mjs +0 -51
- package/esm2020/portal/portal-injector.mjs +0 -28
- package/esm2020/portal/portal.mjs +0 -188
- package/esm2020/portal/portal_public_index.mjs +0 -5
- package/esm2020/portal/public-api.mjs +0 -12
- package/esm2020/public-api.mjs +0 -9
- package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +0 -217
- package/esm2020/scrolling/index.mjs +0 -9
- package/esm2020/scrolling/public-api.mjs +0 -20
- package/esm2020/scrolling/scroll-dispatcher.mjs +0 -163
- package/esm2020/scrolling/scrollable.mjs +0 -176
- package/esm2020/scrolling/scrolling-module.mjs +0 -67
- package/esm2020/scrolling/scrolling_public_index.mjs +0 -5
- package/esm2020/scrolling/viewport-ruler.mjs +0 -146
- package/esm2020/scrolling/virtual-for-of.mjs +0 -298
- package/esm2020/scrolling/virtual-scroll-repeater.mjs +0 -9
- package/esm2020/scrolling/virtual-scroll-strategy.mjs +0 -11
- package/esm2020/scrolling/virtual-scroll-viewport.mjs +0 -437
- package/esm2020/scrolling/virtual-scrollable-element.mjs +0 -41
- package/esm2020/scrolling/virtual-scrollable-window.mjs +0 -40
- package/esm2020/scrolling/virtual-scrollable.mjs +0 -40
- package/esm2020/stepper/index.mjs +0 -9
- package/esm2020/stepper/public-api.mjs +0 -13
- package/esm2020/stepper/step-header.mjs +0 -30
- package/esm2020/stepper/step-label.mjs +0 -23
- package/esm2020/stepper/stepper-button.mjs +0 -56
- package/esm2020/stepper/stepper-module.mjs +0 -40
- package/esm2020/stepper/stepper.mjs +0 -458
- package/esm2020/stepper/stepper_public_index.mjs +0 -5
- package/esm2020/table/can-stick.mjs +0 -44
- package/esm2020/table/cell.mjs +0 -217
- package/esm2020/table/coalesced-style-scheduler.mjs +0 -91
- package/esm2020/table/index.mjs +0 -9
- package/esm2020/table/public-api.mjs +0 -20
- package/esm2020/table/row.mjs +0 -262
- package/esm2020/table/sticky-position-listener.mjs +0 -11
- package/esm2020/table/sticky-styler.mjs +0 -345
- package/esm2020/table/table-errors.mjs +0 -67
- package/esm2020/table/table-module.mjs +0 -94
- package/esm2020/table/table.mjs +0 -1065
- package/esm2020/table/table_public_index.mjs +0 -5
- package/esm2020/table/text-column.mjs +0 -153
- package/esm2020/table/tokens.mjs +0 -16
- package/esm2020/text-field/autofill.mjs +0 -113
- package/esm2020/text-field/autosize.mjs +0 -309
- package/esm2020/text-field/index.mjs +0 -9
- package/esm2020/text-field/public-api.mjs +0 -11
- package/esm2020/text-field/text-field-module.mjs +0 -24
- package/esm2020/text-field/text-field_public_index.mjs +0 -5
- package/esm2020/tree/control/base-tree-control.mjs +0 -57
- package/esm2020/tree/control/flat-tree-control.mjs +0 -51
- package/esm2020/tree/control/nested-tree-control.mjs +0 -58
- package/esm2020/tree/control/tree-control.mjs +0 -2
- package/esm2020/tree/index.mjs +0 -9
- package/esm2020/tree/nested-node.mjs +0 -112
- package/esm2020/tree/node.mjs +0 -35
- package/esm2020/tree/outlet.mjs +0 -39
- package/esm2020/tree/padding.mjs +0 -131
- package/esm2020/tree/public-api.mjs +0 -20
- package/esm2020/tree/toggle.mjs +0 -50
- package/esm2020/tree/tree-errors.mjs +0 -43
- package/esm2020/tree/tree-module.mjs +0 -49
- package/esm2020/tree/tree.mjs +0 -347
- package/esm2020/tree/tree_public_index.mjs +0 -5
- package/esm2020/version.mjs +0 -11
- package/fesm2015/a11y.mjs +0 -2473
- package/fesm2015/a11y.mjs.map +0 -1
- package/fesm2015/accordion.mjs +0 -414
- package/fesm2015/accordion.mjs.map +0 -1
- package/fesm2015/bidi.mjs +0 -194
- package/fesm2015/bidi.mjs.map +0 -1
- package/fesm2015/cdk.mjs +0 -30
- package/fesm2015/cdk.mjs.map +0 -1
- package/fesm2015/clipboard.mjs +0 -263
- package/fesm2015/clipboard.mjs.map +0 -1
- package/fesm2015/coercion.mjs +0 -132
- package/fesm2015/coercion.mjs.map +0 -1
- package/fesm2015/collections.mjs +0 -519
- package/fesm2015/collections.mjs.map +0 -1
- package/fesm2015/dialog.mjs +0 -1050
- package/fesm2015/dialog.mjs.map +0 -1
- package/fesm2015/drag-drop.mjs +0 -3812
- package/fesm2015/drag-drop.mjs.map +0 -1
- package/fesm2015/keycodes.mjs.map +0 -1
- package/fesm2015/layout.mjs +0 -337
- package/fesm2015/layout.mjs.map +0 -1
- package/fesm2015/listbox.mjs +0 -1200
- package/fesm2015/listbox.mjs.map +0 -1
- package/fesm2015/menu.mjs +0 -2719
- package/fesm2015/menu.mjs.map +0 -1
- package/fesm2015/observers.mjs +0 -326
- package/fesm2015/observers.mjs.map +0 -1
- package/fesm2015/overlay.mjs +0 -3137
- package/fesm2015/overlay.mjs.map +0 -1
- package/fesm2015/platform.mjs +0 -385
- package/fesm2015/platform.mjs.map +0 -1
- package/fesm2015/portal.mjs +0 -691
- package/fesm2015/portal.mjs.map +0 -1
- package/fesm2015/scrolling.mjs.map +0 -1
- package/fesm2015/stepper.mjs +0 -989
- package/fesm2015/stepper.mjs.map +0 -1
- package/fesm2015/table.mjs +0 -2356
- package/fesm2015/table.mjs.map +0 -1
- package/fesm2015/testing.mjs +0 -833
- package/fesm2015/testing.mjs.map +0 -1
- package/fesm2015/text-field.mjs +0 -461
- package/fesm2015/text-field.mjs.map +0 -1
- package/fesm2015/tree.mjs +0 -1303
- package/fesm2015/tree.mjs.map +0 -1
- package/fesm2020/a11y.mjs +0 -2476
- package/fesm2020/a11y.mjs.map +0 -1
- package/fesm2020/accordion.mjs +0 -414
- package/fesm2020/accordion.mjs.map +0 -1
- package/fesm2020/bidi.mjs +0 -192
- package/fesm2020/bidi.mjs.map +0 -1
- package/fesm2020/cdk.mjs +0 -30
- package/fesm2020/cdk.mjs.map +0 -1
- package/fesm2020/clipboard.mjs.map +0 -1
- package/fesm2020/coercion.mjs +0 -132
- package/fesm2020/coercion.mjs.map +0 -1
- package/fesm2020/collections.mjs +0 -535
- package/fesm2020/collections.mjs.map +0 -1
- package/fesm2020/dialog.mjs.map +0 -1
- package/fesm2020/drag-drop.mjs.map +0 -1
- package/fesm2020/keycodes.mjs +0 -167
- package/fesm2020/keycodes.mjs.map +0 -1
- package/fesm2020/layout.mjs +0 -337
- package/fesm2020/layout.mjs.map +0 -1
- package/fesm2020/listbox.mjs +0 -1164
- package/fesm2020/listbox.mjs.map +0 -1
- package/fesm2020/menu.mjs +0 -2615
- package/fesm2020/menu.mjs.map +0 -1
- package/fesm2020/observers.mjs +0 -325
- package/fesm2020/observers.mjs.map +0 -1
- package/fesm2020/overlay.mjs.map +0 -1
- package/fesm2020/platform.mjs +0 -383
- package/fesm2020/platform.mjs.map +0 -1
- package/fesm2020/portal.mjs.map +0 -1
- package/fesm2020/scrolling.mjs +0 -1591
- package/fesm2020/scrolling.mjs.map +0 -1
- package/fesm2020/stepper.mjs +0 -985
- package/fesm2020/stepper.mjs.map +0 -1
- package/fesm2020/table.mjs.map +0 -1
- package/fesm2020/testing.mjs +0 -797
- package/fesm2020/testing.mjs.map +0 -1
- package/fesm2020/text-field.mjs.map +0 -1
- package/fesm2020/tree.mjs +0 -1305
- package/fesm2020/tree.mjs.map +0 -1
- package/overlay/_index.import.scss +0 -13
- package/text-field/_index.import.scss +0 -2
package/portal/index.d.ts
CHANGED
|
@@ -1,328 +1,51 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { ComponentRef } from '@angular/core';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
*/
|
|
53
|
-
export declare class CdkPortal extends TemplatePortal {
|
|
54
|
-
constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
|
|
55
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkPortal, never>;
|
|
56
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPortal, "[cdkPortal]", ["cdkPortal"], {}, {}, never, never, false>;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Directive version of a PortalOutlet. Because the directive *is* a PortalOutlet, portals can be
|
|
61
|
-
* directly attached to it, enabling declarative use.
|
|
62
|
-
*
|
|
63
|
-
* Usage:
|
|
64
|
-
* `<ng-template [cdkPortalOutlet]="greeting"></ng-template>`
|
|
65
|
-
*/
|
|
66
|
-
export declare class CdkPortalOutlet extends BasePortalOutlet implements OnInit, OnDestroy {
|
|
67
|
-
private _componentFactoryResolver;
|
|
68
|
-
private _viewContainerRef;
|
|
69
|
-
private _document;
|
|
70
|
-
/** Whether the portal component is initialized. */
|
|
71
|
-
private _isInitialized;
|
|
72
|
-
/** Reference to the currently-attached component/view ref. */
|
|
73
|
-
private _attachedRef;
|
|
74
|
-
constructor(_componentFactoryResolver: ComponentFactoryResolver, _viewContainerRef: ViewContainerRef,
|
|
75
|
-
/**
|
|
76
|
-
* @deprecated `_document` parameter to be made required.
|
|
77
|
-
* @breaking-change 9.0.0
|
|
78
|
-
*/
|
|
79
|
-
_document?: any);
|
|
80
|
-
/** Portal associated with the Portal outlet. */
|
|
81
|
-
get portal(): Portal<any> | null;
|
|
82
|
-
set portal(portal: Portal<any> | null | undefined | '');
|
|
83
|
-
/** Emits when a portal is attached to the outlet. */
|
|
84
|
-
readonly attached: EventEmitter<CdkPortalOutletAttachedRef>;
|
|
85
|
-
/** Component or view reference that is attached to the portal. */
|
|
86
|
-
get attachedRef(): CdkPortalOutletAttachedRef;
|
|
87
|
-
ngOnInit(): void;
|
|
88
|
-
ngOnDestroy(): void;
|
|
89
|
-
/**
|
|
90
|
-
* Attach the given ComponentPortal to this PortalOutlet using the ComponentFactoryResolver.
|
|
91
|
-
*
|
|
92
|
-
* @param portal Portal to be attached to the portal outlet.
|
|
93
|
-
* @returns Reference to the created component.
|
|
94
|
-
*/
|
|
95
|
-
attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
|
96
|
-
/**
|
|
97
|
-
* Attach the given TemplatePortal to this PortalHost as an embedded View.
|
|
98
|
-
* @param portal Portal to be attached.
|
|
99
|
-
* @returns Reference to the created embedded view.
|
|
100
|
-
*/
|
|
101
|
-
attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
|
|
102
|
-
/**
|
|
103
|
-
* Attaches the given DomPortal to this PortalHost by moving all of the portal content into it.
|
|
104
|
-
* @param portal Portal to be attached.
|
|
105
|
-
* @deprecated To be turned into a method.
|
|
106
|
-
* @breaking-change 10.0.0
|
|
107
|
-
*/
|
|
108
|
-
attachDomPortal: (portal: DomPortal) => void;
|
|
109
|
-
/** Gets the root node of the portal outlet. */
|
|
110
|
-
private _getRootNode;
|
|
111
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkPortalOutlet, never>;
|
|
112
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPortalOutlet, "[cdkPortalOutlet]", ["cdkPortalOutlet"], { "portal": "cdkPortalOutlet"; }, { "attached": "attached"; }, never, never, false>;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Possible attached references to the CdkPortalOutlet.
|
|
117
|
-
*/
|
|
118
|
-
export declare type CdkPortalOutletAttachedRef = ComponentRef<any> | EmbeddedViewRef<any> | null;
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* A `ComponentPortal` is a portal that instantiates some Component upon attachment.
|
|
122
|
-
*/
|
|
123
|
-
export declare class ComponentPortal<T> extends Portal<ComponentRef<T>> {
|
|
124
|
-
/** The type of the component that will be instantiated for attachment. */
|
|
125
|
-
component: ComponentType<T>;
|
|
126
|
-
/**
|
|
127
|
-
* [Optional] Where the attached component should live in Angular's *logical* component tree.
|
|
128
|
-
* This is different from where the component *renders*, which is determined by the PortalOutlet.
|
|
129
|
-
* The origin is necessary when the host is outside of the Angular application context.
|
|
130
|
-
*/
|
|
131
|
-
viewContainerRef?: ViewContainerRef | null;
|
|
132
|
-
/** [Optional] Injector used for the instantiation of the component. */
|
|
133
|
-
injector?: Injector | null;
|
|
134
|
-
/**
|
|
135
|
-
* Alternate `ComponentFactoryResolver` to use when resolving the associated component.
|
|
136
|
-
* Defaults to using the resolver from the outlet that the portal is attached to.
|
|
137
|
-
*/
|
|
138
|
-
componentFactoryResolver?: ComponentFactoryResolver | null;
|
|
139
|
-
constructor(component: ComponentType<T>, viewContainerRef?: ViewContainerRef | null, injector?: Injector | null, componentFactoryResolver?: ComponentFactoryResolver | null);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/** Interface that can be used to generically type a class. */
|
|
143
|
-
export declare interface ComponentType<T> {
|
|
144
|
-
new (...args: any[]): T;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* A `DomPortal` is a portal whose DOM element will be taken from its current position
|
|
149
|
-
* in the DOM and moved into a portal outlet, when it is attached. On detach, the content
|
|
150
|
-
* will be restored to its original position.
|
|
151
|
-
*/
|
|
152
|
-
export declare class DomPortal<T = HTMLElement> extends Portal<T> {
|
|
153
|
-
/** DOM node hosting the portal's content. */
|
|
154
|
-
readonly element: T;
|
|
155
|
-
constructor(element: T | ElementRef<T>);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* @deprecated Use `DomPortalOutlet` instead.
|
|
160
|
-
* @breaking-change 9.0.0
|
|
161
|
-
*/
|
|
162
|
-
export declare class DomPortalHost extends DomPortalOutlet {
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* A PortalOutlet for attaching portals to an arbitrary DOM element outside of the Angular
|
|
167
|
-
* application context.
|
|
168
|
-
*/
|
|
169
|
-
export declare class DomPortalOutlet extends BasePortalOutlet {
|
|
170
|
-
/** Element into which the content is projected. */
|
|
171
|
-
outletElement: Element;
|
|
172
|
-
private _componentFactoryResolver?;
|
|
173
|
-
private _appRef?;
|
|
174
|
-
private _defaultInjector?;
|
|
175
|
-
private _document;
|
|
176
|
-
/**
|
|
177
|
-
* @param outletElement Element into which the content is projected.
|
|
178
|
-
* @param _componentFactoryResolver Used to resolve the component factory.
|
|
179
|
-
* Only required when attaching component portals.
|
|
180
|
-
* @param _appRef Reference to the application. Only used in component portals when there
|
|
181
|
-
* is no `ViewContainerRef` available.
|
|
182
|
-
* @param _defaultInjector Injector to use as a fallback when the portal being attached doesn't
|
|
183
|
-
* have one. Only used for component portals.
|
|
184
|
-
* @param _document Reference to the document. Used when attaching a DOM portal. Will eventually
|
|
185
|
-
* become a required parameter.
|
|
186
|
-
*/
|
|
187
|
-
constructor(
|
|
188
|
-
/** Element into which the content is projected. */
|
|
189
|
-
outletElement: Element, _componentFactoryResolver?: ComponentFactoryResolver | undefined, _appRef?: ApplicationRef | undefined, _defaultInjector?: Injector | undefined,
|
|
190
|
-
/**
|
|
191
|
-
* @deprecated `_document` Parameter to be made required.
|
|
192
|
-
* @breaking-change 10.0.0
|
|
193
|
-
*/
|
|
194
|
-
_document?: any);
|
|
195
|
-
/**
|
|
196
|
-
* Attach the given ComponentPortal to DOM element using the ComponentFactoryResolver.
|
|
197
|
-
* @param portal Portal to be attached
|
|
198
|
-
* @returns Reference to the created component.
|
|
199
|
-
*/
|
|
200
|
-
attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
|
201
|
-
/**
|
|
202
|
-
* Attaches a template portal to the DOM as an embedded view.
|
|
203
|
-
* @param portal Portal to be attached.
|
|
204
|
-
* @returns Reference to the created embedded view.
|
|
205
|
-
*/
|
|
206
|
-
attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
|
|
207
|
-
/**
|
|
208
|
-
* Attaches a DOM portal by transferring its content into the outlet.
|
|
209
|
-
* @param portal Portal to be attached.
|
|
210
|
-
* @deprecated To be turned into a method.
|
|
211
|
-
* @breaking-change 10.0.0
|
|
212
|
-
*/
|
|
213
|
-
attachDomPortal: (portal: DomPortal) => void;
|
|
214
|
-
/**
|
|
215
|
-
* Clears out a portal from the DOM.
|
|
216
|
-
*/
|
|
217
|
-
dispose(): void;
|
|
218
|
-
/** Gets the root HTMLElement for an instantiated component. */
|
|
219
|
-
private _getComponentRootNode;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* A `Portal` is something that you want to render somewhere else.
|
|
224
|
-
* It can be attach to / detached from a `PortalOutlet`.
|
|
225
|
-
*/
|
|
226
|
-
export declare abstract class Portal<T> {
|
|
227
|
-
private _attachedHost;
|
|
228
|
-
/** Attach this portal to a host. */
|
|
229
|
-
attach(host: PortalOutlet): T;
|
|
230
|
-
/** Detach this portal from its host */
|
|
231
|
-
detach(): void;
|
|
232
|
-
/** Whether this portal is attached to a host. */
|
|
233
|
-
get isAttached(): boolean;
|
|
234
|
-
/**
|
|
235
|
-
* Sets the PortalOutlet reference without performing `attach()`. This is used directly by
|
|
236
|
-
* the PortalOutlet when it is performing an `attach()` or `detach()`.
|
|
237
|
-
*/
|
|
238
|
-
setAttachedHost(host: PortalOutlet | null): void;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* @deprecated Use `PortalOutlet` instead.
|
|
243
|
-
* @breaking-change 9.0.0
|
|
244
|
-
*/
|
|
245
|
-
export declare type PortalHost = PortalOutlet;
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* @deprecated Use `CdkPortalOutlet` instead.
|
|
249
|
-
* @breaking-change 9.0.0
|
|
250
|
-
*/
|
|
251
|
-
export declare class PortalHostDirective extends CdkPortalOutlet {
|
|
252
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PortalHostDirective, never>;
|
|
253
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PortalHostDirective, "[cdkPortalHost], [portalHost]", ["cdkPortalHost"], { "portal": "cdkPortalHost"; }, {}, never, never, false>;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* Custom injector to be used when providing custom
|
|
258
|
-
* injection tokens to components inside a portal.
|
|
259
|
-
* @docs-private
|
|
260
|
-
* @deprecated Use `Injector.create` instead.
|
|
261
|
-
* @breaking-change 11.0.0
|
|
262
|
-
*/
|
|
263
|
-
export declare class PortalInjector implements Injector {
|
|
264
|
-
private _parentInjector;
|
|
265
|
-
private _customTokens;
|
|
266
|
-
constructor(_parentInjector: Injector, _customTokens: WeakMap<any, any>);
|
|
267
|
-
get(token: any, notFoundValue?: any): any;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
export declare class PortalModule {
|
|
271
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PortalModule, never>;
|
|
272
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PortalModule, [typeof CdkPortal, typeof CdkPortalOutlet, typeof TemplatePortalDirective, typeof PortalHostDirective], never, [typeof CdkPortal, typeof CdkPortalOutlet, typeof TemplatePortalDirective, typeof PortalHostDirective]>;
|
|
273
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<PortalModule>;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
/** A `PortalOutlet` is an space that can contain a single `Portal`. */
|
|
277
|
-
export declare interface PortalOutlet {
|
|
278
|
-
/** Attaches a portal to this outlet. */
|
|
279
|
-
attach(portal: Portal<any>): any;
|
|
280
|
-
/** Detaches the currently attached portal from this outlet. */
|
|
281
|
-
detach(): any;
|
|
282
|
-
/** Performs cleanup before the outlet is destroyed. */
|
|
283
|
-
dispose(): void;
|
|
284
|
-
/** Whether there is currently a portal attached to this outlet. */
|
|
285
|
-
hasAttached(): boolean;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* A `TemplatePortal` is a portal that represents some embedded template (TemplateRef).
|
|
290
|
-
*/
|
|
291
|
-
export declare class TemplatePortal<C = any> extends Portal<EmbeddedViewRef<C>> {
|
|
292
|
-
/** The embedded template that will be used to instantiate an embedded View in the host. */
|
|
293
|
-
templateRef: TemplateRef<C>;
|
|
294
|
-
/** Reference to the ViewContainer into which the template will be stamped out. */
|
|
295
|
-
viewContainerRef: ViewContainerRef;
|
|
296
|
-
/** Contextual data to be passed in to the embedded view. */
|
|
297
|
-
context?: C | undefined;
|
|
298
|
-
/** The injector to use for the embedded view. */
|
|
299
|
-
injector?: Injector | undefined;
|
|
300
|
-
constructor(
|
|
301
|
-
/** The embedded template that will be used to instantiate an embedded View in the host. */
|
|
302
|
-
templateRef: TemplateRef<C>,
|
|
303
|
-
/** Reference to the ViewContainer into which the template will be stamped out. */
|
|
304
|
-
viewContainerRef: ViewContainerRef,
|
|
305
|
-
/** Contextual data to be passed in to the embedded view. */
|
|
306
|
-
context?: C | undefined,
|
|
307
|
-
/** The injector to use for the embedded view. */
|
|
308
|
-
injector?: Injector | undefined);
|
|
309
|
-
get origin(): ElementRef;
|
|
310
|
-
/**
|
|
311
|
-
* Attach the portal to the provided `PortalOutlet`.
|
|
312
|
-
* When a context is provided it will override the `context` property of the `TemplatePortal`
|
|
313
|
-
* instance.
|
|
314
|
-
*/
|
|
315
|
-
attach(host: PortalOutlet, context?: C | undefined): EmbeddedViewRef<C>;
|
|
316
|
-
detach(): void;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
/**
|
|
320
|
-
* @deprecated Use `CdkPortal` instead.
|
|
321
|
-
* @breaking-change 9.0.0
|
|
322
|
-
*/
|
|
323
|
-
export declare class TemplatePortalDirective extends CdkPortal {
|
|
324
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TemplatePortalDirective, never>;
|
|
325
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TemplatePortalDirective, "[cdk-portal], [portal]", ["cdkPortal"], {}, {}, never, never, false>;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
export { }
|
|
1
|
+
import { BasePortalOutlet, ComponentPortal, TemplatePortal, DomPortal } from '../portal-directives.d.js';
|
|
2
|
+
export { CdkPortal, CdkPortalOutlet, CdkPortalOutletAttachedRef, ComponentType, Portal, PortalHostDirective, PortalModule, PortalOutlet, TemplatePortalDirective } from '../portal-directives.d.js';
|
|
3
|
+
import { ApplicationRef, Injector, ComponentRef, EmbeddedViewRef } from '@angular/core';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A PortalOutlet for attaching portals to an arbitrary DOM element outside of the Angular
|
|
7
|
+
* application context.
|
|
8
|
+
*/
|
|
9
|
+
declare class DomPortalOutlet extends BasePortalOutlet {
|
|
10
|
+
/** Element into which the content is projected. */
|
|
11
|
+
outletElement: Element;
|
|
12
|
+
private _appRef?;
|
|
13
|
+
private _defaultInjector?;
|
|
14
|
+
/**
|
|
15
|
+
* @param outletElement Element into which the content is projected.
|
|
16
|
+
* @param _appRef Reference to the application. Only used in component portals when there
|
|
17
|
+
* is no `ViewContainerRef` available.
|
|
18
|
+
* @param _defaultInjector Injector to use as a fallback when the portal being attached doesn't
|
|
19
|
+
* have one. Only used for component portals.
|
|
20
|
+
*/
|
|
21
|
+
constructor(
|
|
22
|
+
/** Element into which the content is projected. */
|
|
23
|
+
outletElement: Element, _appRef?: ApplicationRef | undefined, _defaultInjector?: Injector | undefined);
|
|
24
|
+
/**
|
|
25
|
+
* Attach the given ComponentPortal to DOM element.
|
|
26
|
+
* @param portal Portal to be attached
|
|
27
|
+
* @returns Reference to the created component.
|
|
28
|
+
*/
|
|
29
|
+
attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
|
30
|
+
/**
|
|
31
|
+
* Attaches a template portal to the DOM as an embedded view.
|
|
32
|
+
* @param portal Portal to be attached.
|
|
33
|
+
* @returns Reference to the created embedded view.
|
|
34
|
+
*/
|
|
35
|
+
attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
|
|
36
|
+
/**
|
|
37
|
+
* Attaches a DOM portal by transferring its content into the outlet.
|
|
38
|
+
* @param portal Portal to be attached.
|
|
39
|
+
* @deprecated To be turned into a method.
|
|
40
|
+
* @breaking-change 10.0.0
|
|
41
|
+
*/
|
|
42
|
+
attachDomPortal: (portal: DomPortal) => void;
|
|
43
|
+
/**
|
|
44
|
+
* Clears out a portal from the DOM.
|
|
45
|
+
*/
|
|
46
|
+
dispose(): void;
|
|
47
|
+
/** Gets the root HTMLElement for an instantiated component. */
|
|
48
|
+
private _getComponentRootNode;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export { BasePortalOutlet, ComponentPortal, DomPortal, DomPortalOutlet, TemplatePortal };
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ComponentRef, ViewContainerRef, Injector, EmbeddedViewRef, TemplateRef, ElementRef, OnInit, OnDestroy, EventEmitter } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/** Interface that can be used to generically type a class. */
|
|
5
|
+
interface ComponentType<T> {
|
|
6
|
+
new (...args: any[]): T;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A `Portal` is something that you want to render somewhere else.
|
|
10
|
+
* It can be attach to / detached from a `PortalOutlet`.
|
|
11
|
+
*/
|
|
12
|
+
declare abstract class Portal<T> {
|
|
13
|
+
private _attachedHost;
|
|
14
|
+
/** Attach this portal to a host. */
|
|
15
|
+
attach(host: PortalOutlet): T;
|
|
16
|
+
/** Detach this portal from its host */
|
|
17
|
+
detach(): void;
|
|
18
|
+
/** Whether this portal is attached to a host. */
|
|
19
|
+
get isAttached(): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Sets the PortalOutlet reference without performing `attach()`. This is used directly by
|
|
22
|
+
* the PortalOutlet when it is performing an `attach()` or `detach()`.
|
|
23
|
+
*/
|
|
24
|
+
setAttachedHost(host: PortalOutlet | null): void;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A `ComponentPortal` is a portal that instantiates some Component upon attachment.
|
|
28
|
+
*/
|
|
29
|
+
declare class ComponentPortal<T> extends Portal<ComponentRef<T>> {
|
|
30
|
+
/** The type of the component that will be instantiated for attachment. */
|
|
31
|
+
component: ComponentType<T>;
|
|
32
|
+
/**
|
|
33
|
+
* Where the attached component should live in Angular's *logical* component tree.
|
|
34
|
+
* This is different from where the component *renders*, which is determined by the PortalOutlet.
|
|
35
|
+
* The origin is necessary when the host is outside of the Angular application context.
|
|
36
|
+
*/
|
|
37
|
+
viewContainerRef?: ViewContainerRef | null;
|
|
38
|
+
/** Injector used for the instantiation of the component. */
|
|
39
|
+
injector?: Injector | null;
|
|
40
|
+
/**
|
|
41
|
+
* List of DOM nodes that should be projected through `<ng-content>` of the attached component.
|
|
42
|
+
*/
|
|
43
|
+
projectableNodes?: Node[][] | null;
|
|
44
|
+
constructor(component: ComponentType<T>, viewContainerRef?: ViewContainerRef | null, injector?: Injector | null, projectableNodes?: Node[][] | null);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* A `TemplatePortal` is a portal that represents some embedded template (TemplateRef).
|
|
48
|
+
*/
|
|
49
|
+
declare class TemplatePortal<C = any> extends Portal<EmbeddedViewRef<C>> {
|
|
50
|
+
/** The embedded template that will be used to instantiate an embedded View in the host. */
|
|
51
|
+
templateRef: TemplateRef<C>;
|
|
52
|
+
/** Reference to the ViewContainer into which the template will be stamped out. */
|
|
53
|
+
viewContainerRef: ViewContainerRef;
|
|
54
|
+
/** Contextual data to be passed in to the embedded view. */
|
|
55
|
+
context?: C | undefined;
|
|
56
|
+
/** The injector to use for the embedded view. */
|
|
57
|
+
injector?: Injector | undefined;
|
|
58
|
+
constructor(
|
|
59
|
+
/** The embedded template that will be used to instantiate an embedded View in the host. */
|
|
60
|
+
templateRef: TemplateRef<C>,
|
|
61
|
+
/** Reference to the ViewContainer into which the template will be stamped out. */
|
|
62
|
+
viewContainerRef: ViewContainerRef,
|
|
63
|
+
/** Contextual data to be passed in to the embedded view. */
|
|
64
|
+
context?: C | undefined,
|
|
65
|
+
/** The injector to use for the embedded view. */
|
|
66
|
+
injector?: Injector | undefined);
|
|
67
|
+
get origin(): ElementRef;
|
|
68
|
+
/**
|
|
69
|
+
* Attach the portal to the provided `PortalOutlet`.
|
|
70
|
+
* When a context is provided it will override the `context` property of the `TemplatePortal`
|
|
71
|
+
* instance.
|
|
72
|
+
*/
|
|
73
|
+
attach(host: PortalOutlet, context?: C | undefined): EmbeddedViewRef<C>;
|
|
74
|
+
detach(): void;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* A `DomPortal` is a portal whose DOM element will be taken from its current position
|
|
78
|
+
* in the DOM and moved into a portal outlet, when it is attached. On detach, the content
|
|
79
|
+
* will be restored to its original position.
|
|
80
|
+
*/
|
|
81
|
+
declare class DomPortal<T = HTMLElement> extends Portal<T> {
|
|
82
|
+
/** DOM node hosting the portal's content. */
|
|
83
|
+
readonly element: T;
|
|
84
|
+
constructor(element: T | ElementRef<T>);
|
|
85
|
+
}
|
|
86
|
+
/** A `PortalOutlet` is a space that can contain a single `Portal`. */
|
|
87
|
+
interface PortalOutlet {
|
|
88
|
+
/** Attaches a portal to this outlet. */
|
|
89
|
+
attach(portal: Portal<any>): any;
|
|
90
|
+
/** Detaches the currently attached portal from this outlet. */
|
|
91
|
+
detach(): any;
|
|
92
|
+
/** Performs cleanup before the outlet is destroyed. */
|
|
93
|
+
dispose(): void;
|
|
94
|
+
/** Whether there is currently a portal attached to this outlet. */
|
|
95
|
+
hasAttached(): boolean;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Partial implementation of PortalOutlet that handles attaching
|
|
99
|
+
* ComponentPortal and TemplatePortal.
|
|
100
|
+
*/
|
|
101
|
+
declare abstract class BasePortalOutlet implements PortalOutlet {
|
|
102
|
+
/** The portal currently attached to the host. */
|
|
103
|
+
protected _attachedPortal: Portal<any> | null;
|
|
104
|
+
/** A function that will permanently dispose this host. */
|
|
105
|
+
private _disposeFn;
|
|
106
|
+
/** Whether this host has already been permanently disposed. */
|
|
107
|
+
private _isDisposed;
|
|
108
|
+
/** Whether this host has an attached portal. */
|
|
109
|
+
hasAttached(): boolean;
|
|
110
|
+
attach<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
|
111
|
+
attach<T>(portal: TemplatePortal<T>): EmbeddedViewRef<T>;
|
|
112
|
+
attach(portal: any): any;
|
|
113
|
+
abstract attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
|
114
|
+
abstract attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
|
|
115
|
+
readonly attachDomPortal: null | ((portal: DomPortal) => any);
|
|
116
|
+
/** Detaches a previously attached portal. */
|
|
117
|
+
detach(): void;
|
|
118
|
+
/** Permanently dispose of this portal host. */
|
|
119
|
+
dispose(): void;
|
|
120
|
+
/** @docs-private */
|
|
121
|
+
setDisposeFn(fn: () => void): void;
|
|
122
|
+
private _invokeDisposeFn;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Directive version of a `TemplatePortal`. Because the directive *is* a TemplatePortal,
|
|
127
|
+
* the directive instance itself can be attached to a host, enabling declarative use of portals.
|
|
128
|
+
*/
|
|
129
|
+
declare class CdkPortal extends TemplatePortal {
|
|
130
|
+
constructor(...args: unknown[]);
|
|
131
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkPortal, never>;
|
|
132
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPortal, "[cdkPortal]", ["cdkPortal"], {}, {}, never, never, true, never>;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* @deprecated Use `CdkPortal` instead.
|
|
136
|
+
* @breaking-change 9.0.0
|
|
137
|
+
*/
|
|
138
|
+
declare class TemplatePortalDirective extends CdkPortal {
|
|
139
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TemplatePortalDirective, never>;
|
|
140
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TemplatePortalDirective, "[cdk-portal], [portal]", ["cdkPortal"], {}, {}, never, never, true, never>;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Possible attached references to the CdkPortalOutlet.
|
|
144
|
+
*/
|
|
145
|
+
type CdkPortalOutletAttachedRef = ComponentRef<any> | EmbeddedViewRef<any> | null;
|
|
146
|
+
/**
|
|
147
|
+
* Directive version of a PortalOutlet. Because the directive *is* a PortalOutlet, portals can be
|
|
148
|
+
* directly attached to it, enabling declarative use.
|
|
149
|
+
*
|
|
150
|
+
* Usage:
|
|
151
|
+
* `<ng-template [cdkPortalOutlet]="greeting"></ng-template>`
|
|
152
|
+
*/
|
|
153
|
+
declare class CdkPortalOutlet extends BasePortalOutlet implements OnInit, OnDestroy {
|
|
154
|
+
private _moduleRef;
|
|
155
|
+
private _document;
|
|
156
|
+
private _viewContainerRef;
|
|
157
|
+
/** Whether the portal component is initialized. */
|
|
158
|
+
private _isInitialized;
|
|
159
|
+
/** Reference to the currently-attached component/view ref. */
|
|
160
|
+
private _attachedRef;
|
|
161
|
+
constructor(...args: unknown[]);
|
|
162
|
+
/** Portal associated with the Portal outlet. */
|
|
163
|
+
get portal(): Portal<any> | null;
|
|
164
|
+
set portal(portal: Portal<any> | null | undefined | '');
|
|
165
|
+
/** Emits when a portal is attached to the outlet. */
|
|
166
|
+
readonly attached: EventEmitter<CdkPortalOutletAttachedRef>;
|
|
167
|
+
/** Component or view reference that is attached to the portal. */
|
|
168
|
+
get attachedRef(): CdkPortalOutletAttachedRef;
|
|
169
|
+
ngOnInit(): void;
|
|
170
|
+
ngOnDestroy(): void;
|
|
171
|
+
/**
|
|
172
|
+
* Attach the given ComponentPortal to this PortalOutlet.
|
|
173
|
+
*
|
|
174
|
+
* @param portal Portal to be attached to the portal outlet.
|
|
175
|
+
* @returns Reference to the created component.
|
|
176
|
+
*/
|
|
177
|
+
attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
|
178
|
+
/**
|
|
179
|
+
* Attach the given TemplatePortal to this PortalHost as an embedded View.
|
|
180
|
+
* @param portal Portal to be attached.
|
|
181
|
+
* @returns Reference to the created embedded view.
|
|
182
|
+
*/
|
|
183
|
+
attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
|
|
184
|
+
/**
|
|
185
|
+
* Attaches the given DomPortal to this PortalHost by moving all of the portal content into it.
|
|
186
|
+
* @param portal Portal to be attached.
|
|
187
|
+
* @deprecated To be turned into a method.
|
|
188
|
+
* @breaking-change 10.0.0
|
|
189
|
+
*/
|
|
190
|
+
attachDomPortal: (portal: DomPortal) => void;
|
|
191
|
+
/** Gets the root node of the portal outlet. */
|
|
192
|
+
private _getRootNode;
|
|
193
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkPortalOutlet, never>;
|
|
194
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPortalOutlet, "[cdkPortalOutlet]", ["cdkPortalOutlet"], { "portal": { "alias": "cdkPortalOutlet"; "required": false; }; }, { "attached": "attached"; }, never, never, true, never>;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* @deprecated Use `CdkPortalOutlet` instead.
|
|
198
|
+
* @breaking-change 9.0.0
|
|
199
|
+
*/
|
|
200
|
+
declare class PortalHostDirective extends CdkPortalOutlet {
|
|
201
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PortalHostDirective, never>;
|
|
202
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PortalHostDirective, "[cdkPortalHost], [portalHost]", ["cdkPortalHost"], { "portal": { "alias": "cdkPortalHost"; "required": false; }; }, {}, never, never, true, never>;
|
|
203
|
+
}
|
|
204
|
+
declare class PortalModule {
|
|
205
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PortalModule, never>;
|
|
206
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PortalModule, never, [typeof CdkPortal, typeof CdkPortalOutlet, typeof TemplatePortalDirective, typeof PortalHostDirective], [typeof CdkPortal, typeof CdkPortalOutlet, typeof TemplatePortalDirective, typeof PortalHostDirective]>;
|
|
207
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PortalModule>;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export { BasePortalOutlet, CdkPortal, CdkPortalOutlet, ComponentPortal, DomPortal, Portal, PortalHostDirective, PortalModule, TemplatePortal, TemplatePortalDirective };
|
|
211
|
+
export type { CdkPortalOutletAttachedRef, ComponentType, PortalOutlet };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { _CdkPrivateStyleLoader } from '../style-loader.d.js';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Component used to load the .cdk-visually-hidden styles.
|
|
6
|
+
* @docs-private
|
|
7
|
+
*/
|
|
8
|
+
declare class _VisuallyHiddenLoader {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<_VisuallyHiddenLoader, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<_VisuallyHiddenLoader, "ng-component", ["cdkVisuallyHidden"], {}, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { _VisuallyHiddenLoader };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
|
+
"schematics": {
|
|
4
|
+
"ng-add": {
|
|
5
|
+
"description": "Installs the Angular CDK",
|
|
6
|
+
"factory": "./ng-add/index",
|
|
7
|
+
"schema": "./ng-add/schema.json",
|
|
8
|
+
"aliases": ["install"],
|
|
9
|
+
"hidden": true
|
|
10
|
+
},
|
|
11
|
+
"drag-drop": {
|
|
12
|
+
"description": "Generates a component using the Drag and Drop module",
|
|
13
|
+
"factory": "./ng-generate/drag-drop/index",
|
|
14
|
+
"schema": "./ng-generate/drag-drop/schema.json",
|
|
15
|
+
"aliases": ["dragdrop", "drag-and-drop"]
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
|
+
*/
|
|
8
|
+
export * from './utils';
|
|
9
|
+
export * from './ng-update/public-api';
|
|
10
|
+
export * from './update-tool/public-api';
|
|
11
|
+
export * from '@schematics/angular/utility/ast-utils';
|
|
12
|
+
export * from '@schematics/angular/utility/ng-ast-utils';
|
|
13
|
+
import * as parse5 from 'parse5';
|
|
14
|
+
export { parse5 };
|