@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
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.findAllSubstringIndices = findAllSubstringIndices;
|
|
11
|
+
exports.isStringLiteralLike = isStringLiteralLike;
|
|
12
|
+
const ts = require("typescript");
|
|
13
|
+
/** Finds all start indices of the given search string in the input string. */
|
|
14
|
+
function findAllSubstringIndices(input, search) {
|
|
15
|
+
const result = [];
|
|
16
|
+
let i = -1;
|
|
17
|
+
while ((i = input.indexOf(search, i + 1)) !== -1) {
|
|
18
|
+
result.push(i);
|
|
19
|
+
}
|
|
20
|
+
return result;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Checks whether the given node is either a string literal or a no-substitution template
|
|
24
|
+
* literal. Note that we cannot use `ts.isStringLiteralLike()` because if developers update
|
|
25
|
+
* an outdated project, their TypeScript version is not automatically being updated
|
|
26
|
+
* and therefore could throw because the function is not available yet.
|
|
27
|
+
* https://github.com/Microsoft/TypeScript/commit/8518343dc8762475a5e92c9f80b5c5725bd81796
|
|
28
|
+
*/
|
|
29
|
+
function isStringLiteralLike(node) {
|
|
30
|
+
return ts.isStringLiteral(node) || ts.isNoSubstitutionTemplateLiteral(node);
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=literal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"literal.js","sourceRoot":"","sources":["literal.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAKH,0DAOC;AASD,kDAIC;AAvBD,iCAAiC;AAEjC,8EAA8E;AAC9E,SAAgB,uBAAuB,CAAC,KAAa,EAAE,MAAc;IACnE,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACX,OAAO,CAAC,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;QACjD,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACjB,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,mBAAmB,CACjC,IAAa;IAEb,OAAO,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,+BAA+B,CAAC,IAAI,CAAC,CAAC;AAC9E,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
import * as ts from 'typescript';
|
|
9
|
+
/** Name of the Angular Material module specifier. */
|
|
10
|
+
export declare const materialModuleSpecifier = "@kato-lee/material";
|
|
11
|
+
/** Name of the Angular CDK module specifier. */
|
|
12
|
+
export declare const cdkModuleSpecifier = "@kato-lee/cdk";
|
|
13
|
+
/** Whether the specified node is part of an Angular Material or CDK import declaration. */
|
|
14
|
+
export declare function isMaterialImportDeclaration(node: ts.Node): boolean;
|
|
15
|
+
/** Whether the specified node is part of an Angular Material or CDK import declaration. */
|
|
16
|
+
export declare function isMaterialExportDeclaration(node: ts.Node): boolean;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.cdkModuleSpecifier = exports.materialModuleSpecifier = void 0;
|
|
11
|
+
exports.isMaterialImportDeclaration = isMaterialImportDeclaration;
|
|
12
|
+
exports.isMaterialExportDeclaration = isMaterialExportDeclaration;
|
|
13
|
+
const imports_1 = require("../typescript/imports");
|
|
14
|
+
/** Name of the Angular Material module specifier. */
|
|
15
|
+
exports.materialModuleSpecifier = '@kato-lee/material';
|
|
16
|
+
/** Name of the Angular CDK module specifier. */
|
|
17
|
+
exports.cdkModuleSpecifier = '@kato-lee/cdk';
|
|
18
|
+
/** Whether the specified node is part of an Angular Material or CDK import declaration. */
|
|
19
|
+
function isMaterialImportDeclaration(node) {
|
|
20
|
+
return isMaterialDeclaration((0, imports_1.getImportDeclaration)(node));
|
|
21
|
+
}
|
|
22
|
+
/** Whether the specified node is part of an Angular Material or CDK import declaration. */
|
|
23
|
+
function isMaterialExportDeclaration(node) {
|
|
24
|
+
return isMaterialDeclaration((0, imports_1.getExportDeclaration)(node));
|
|
25
|
+
}
|
|
26
|
+
/** Whether the declaration is part of Angular Material. */
|
|
27
|
+
function isMaterialDeclaration(declaration) {
|
|
28
|
+
if (!declaration.moduleSpecifier) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
const moduleSpecifier = declaration.moduleSpecifier.getText();
|
|
32
|
+
return (moduleSpecifier.indexOf(exports.materialModuleSpecifier) !== -1 ||
|
|
33
|
+
moduleSpecifier.indexOf(exports.cdkModuleSpecifier) !== -1);
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=module-specifiers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module-specifiers.js","sourceRoot":"","sources":["module-specifiers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAYH,kEAEC;AAGD,kEAEC;AAhBD,mDAAiF;AAEjF,qDAAqD;AACxC,QAAA,uBAAuB,GAAG,mBAAmB,CAAC;AAE3D,gDAAgD;AACnC,QAAA,kBAAkB,GAAG,cAAc,CAAC;AAEjD,2FAA2F;AAC3F,SAAgB,2BAA2B,CAAC,IAAa;IACvD,OAAO,qBAAqB,CAAC,IAAA,8BAAoB,EAAC,IAAI,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED,2FAA2F;AAC3F,SAAgB,2BAA2B,CAAC,IAAa;IACvD,OAAO,qBAAqB,CAAC,IAAA,8BAAoB,EAAC,IAAI,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED,2DAA2D;AAC3D,SAAS,qBAAqB,CAAC,WAAwD;IACrF,IAAI,CAAC,WAAW,CAAC,eAAe,EAAE,CAAC;QACjC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,eAAe,GAAG,WAAW,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC;IAC9D,OAAO,CACL,eAAe,CAAC,OAAO,CAAC,+BAAuB,CAAC,KAAK,CAAC,CAAC;QACvD,eAAe,CAAC,OAAO,CAAC,0BAAkB,CAAC,KAAK,CAAC,CAAC,CACnD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
import { Migration } from '../update-tool/migration';
|
|
9
|
+
import { ValueOfChanges, VersionChanges } from '../update-tool/version-changes';
|
|
10
|
+
import { AttributeSelectorUpgradeData, ClassNameUpgradeData, ConstructorChecksUpgradeData, CssSelectorUpgradeData, ElementSelectorUpgradeData, InputNameUpgradeData, MethodCallUpgradeData, OutputNameUpgradeData, PropertyNameUpgradeData, SymbolRemovalUpgradeData, CssTokenUpgradeData } from './data';
|
|
11
|
+
/** Upgrade data for the Angular CDK. */
|
|
12
|
+
export declare const cdkUpgradeData: UpgradeData;
|
|
13
|
+
/**
|
|
14
|
+
* Interface that describes the upgrade data that needs to be defined when using the CDK
|
|
15
|
+
* upgrade rules.
|
|
16
|
+
*/
|
|
17
|
+
export interface UpgradeData {
|
|
18
|
+
attributeSelectors: VersionChanges<AttributeSelectorUpgradeData>;
|
|
19
|
+
classNames: VersionChanges<ClassNameUpgradeData>;
|
|
20
|
+
constructorChecks: VersionChanges<ConstructorChecksUpgradeData>;
|
|
21
|
+
cssSelectors: VersionChanges<CssSelectorUpgradeData>;
|
|
22
|
+
cssTokens: VersionChanges<CssTokenUpgradeData>;
|
|
23
|
+
elementSelectors: VersionChanges<ElementSelectorUpgradeData>;
|
|
24
|
+
inputNames: VersionChanges<InputNameUpgradeData>;
|
|
25
|
+
methodCallChecks: VersionChanges<MethodCallUpgradeData>;
|
|
26
|
+
outputNames: VersionChanges<OutputNameUpgradeData>;
|
|
27
|
+
propertyNames: VersionChanges<PropertyNameUpgradeData>;
|
|
28
|
+
symbolRemoval: VersionChanges<SymbolRemovalUpgradeData>;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Gets the reduced upgrade data for the specified data key. The function reads out the
|
|
32
|
+
* target version and upgrade data object from the migration and resolves the specified
|
|
33
|
+
* data portion that is specifically tied to the target version.
|
|
34
|
+
*/
|
|
35
|
+
export declare function getVersionUpgradeData<T extends keyof UpgradeData, U = ValueOfChanges<UpgradeData[T]>>(migration: Migration<UpgradeData>, dataName: T): U[];
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.cdkUpgradeData = void 0;
|
|
11
|
+
exports.getVersionUpgradeData = getVersionUpgradeData;
|
|
12
|
+
const version_changes_1 = require("../update-tool/version-changes");
|
|
13
|
+
const data_1 = require("./data");
|
|
14
|
+
/** Upgrade data for the Angular CDK. */
|
|
15
|
+
exports.cdkUpgradeData = {
|
|
16
|
+
attributeSelectors: data_1.attributeSelectors,
|
|
17
|
+
classNames: data_1.classNames,
|
|
18
|
+
constructorChecks: data_1.constructorChecks,
|
|
19
|
+
cssSelectors: data_1.cssSelectors,
|
|
20
|
+
cssTokens: data_1.cssTokens,
|
|
21
|
+
elementSelectors: data_1.elementSelectors,
|
|
22
|
+
inputNames: data_1.inputNames,
|
|
23
|
+
methodCallChecks: data_1.methodCallChecks,
|
|
24
|
+
outputNames: data_1.outputNames,
|
|
25
|
+
propertyNames: data_1.propertyNames,
|
|
26
|
+
symbolRemoval: data_1.symbolRemoval,
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Gets the reduced upgrade data for the specified data key. The function reads out the
|
|
30
|
+
* target version and upgrade data object from the migration and resolves the specified
|
|
31
|
+
* data portion that is specifically tied to the target version.
|
|
32
|
+
*/
|
|
33
|
+
function getVersionUpgradeData(migration, dataName) {
|
|
34
|
+
if (migration.targetVersion === null) {
|
|
35
|
+
return [];
|
|
36
|
+
}
|
|
37
|
+
// Note that below we need to cast to `unknown` first TS doesn't infer the type of T correctly.
|
|
38
|
+
return (0, version_changes_1.getChangesForTarget)(migration.targetVersion, migration.upgradeData[dataName]);
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=upgrade-data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upgrade-data.js","sourceRoot":"","sources":["upgrade-data.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAmEH,sDAaC;AA7ED,oEAAmG;AACnG,iCAuBgB;AAEhB,wCAAwC;AAC3B,QAAA,cAAc,GAAgB;IACzC,kBAAkB,EAAlB,yBAAkB;IAClB,UAAU,EAAV,iBAAU;IACV,iBAAiB,EAAjB,wBAAiB;IACjB,YAAY,EAAZ,mBAAY;IACZ,SAAS,EAAT,gBAAS;IACT,gBAAgB,EAAhB,uBAAgB;IAChB,UAAU,EAAV,iBAAU;IACV,gBAAgB,EAAhB,uBAAgB;IAChB,WAAW,EAAX,kBAAW;IACX,aAAa,EAAb,oBAAa;IACb,aAAa,EAAb,oBAAa;CACd,CAAC;AAoBF;;;;GAIG;AACH,SAAgB,qBAAqB,CAGnC,SAAiC,EAAE,QAAW;IAC9C,IAAI,SAAS,CAAC,aAAa,KAAK,IAAI,EAAE,CAAC;QACrC,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,+FAA+F;IAC/F,OAAO,IAAA,qCAAmB,EACxB,SAAS,CAAC,aAAa,EACvB,SAAS,CAAC,WAAW,CAAC,QAAQ,CAAiC,CAChE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
/** Path to the schematic collection for non-migration schematics. */
|
|
9
|
+
export declare const COLLECTION_PATH: string;
|
|
10
|
+
/** Path to the schematic collection that includes the migrations. */
|
|
11
|
+
export declare const MIGRATION_PATH: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.MIGRATION_PATH = exports.COLLECTION_PATH = void 0;
|
|
11
|
+
const path_1 = require("path");
|
|
12
|
+
/** Path to the schematic collection for non-migration schematics. */
|
|
13
|
+
exports.COLLECTION_PATH = (0, path_1.join)(__dirname, 'collection.json');
|
|
14
|
+
/** Path to the schematic collection that includes the migrations. */
|
|
15
|
+
exports.MIGRATION_PATH = (0, path_1.join)(__dirname, 'migration.json');
|
|
16
|
+
//# sourceMappingURL=paths.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paths.js","sourceRoot":"","sources":["paths.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,+BAA0B;AAE1B,qEAAqE;AACxD,QAAA,eAAe,GAAG,IAAA,WAAI,EAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC;AAElE,qEAAqE;AACxD,QAAA,cAAc,GAAG,IAAA,WAAI,EAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
import * as ts from 'typescript';
|
|
9
|
+
import { FileSystem, WorkspacePath } from './file-system';
|
|
10
|
+
import { LineAndCharacter } from './utils/line-mappings';
|
|
11
|
+
export interface ResolvedResource {
|
|
12
|
+
/** Class declaration that contains this resource. */
|
|
13
|
+
container: ts.ClassDeclaration | null;
|
|
14
|
+
/** File content of the given template. */
|
|
15
|
+
content: string;
|
|
16
|
+
/** Start offset of the resource content (e.g. in the inline source file) */
|
|
17
|
+
start: number;
|
|
18
|
+
/** Whether the given resource is inline or not. */
|
|
19
|
+
inline: boolean;
|
|
20
|
+
/** Path to the file that contains this resource. */
|
|
21
|
+
filePath: WorkspacePath;
|
|
22
|
+
/**
|
|
23
|
+
* Gets the character and line of a given position index in the resource.
|
|
24
|
+
* If the resource is declared inline within a TypeScript source file, the line and
|
|
25
|
+
* character are based on the full source file content.
|
|
26
|
+
*/
|
|
27
|
+
getCharacterAndLineOfPosition: (pos: number) => LineAndCharacter;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Collector that can be used to find Angular templates and stylesheets referenced within
|
|
31
|
+
* given TypeScript source files (inline or external referenced files)
|
|
32
|
+
*/
|
|
33
|
+
export declare class ComponentResourceCollector {
|
|
34
|
+
typeChecker: ts.TypeChecker;
|
|
35
|
+
private _fileSystem;
|
|
36
|
+
resolvedTemplates: ResolvedResource[];
|
|
37
|
+
resolvedStylesheets: ResolvedResource[];
|
|
38
|
+
constructor(typeChecker: ts.TypeChecker, _fileSystem: FileSystem);
|
|
39
|
+
visitNode(node: ts.Node): void;
|
|
40
|
+
private _visitClassDeclaration;
|
|
41
|
+
/** Resolves an external stylesheet by reading its content and computing line mappings. */
|
|
42
|
+
resolveExternalStylesheet(filePath: WorkspacePath, container: ts.ClassDeclaration | null): ResolvedResource | null;
|
|
43
|
+
private _trackExternalStylesheet;
|
|
44
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.ComponentResourceCollector = void 0;
|
|
11
|
+
const path_1 = require("path");
|
|
12
|
+
const ts = require("typescript");
|
|
13
|
+
const decorators_1 = require("./utils/decorators");
|
|
14
|
+
const functions_1 = require("./utils/functions");
|
|
15
|
+
const line_mappings_1 = require("./utils/line-mappings");
|
|
16
|
+
const property_name_1 = require("./utils/property-name");
|
|
17
|
+
/**
|
|
18
|
+
* Collector that can be used to find Angular templates and stylesheets referenced within
|
|
19
|
+
* given TypeScript source files (inline or external referenced files)
|
|
20
|
+
*/
|
|
21
|
+
class ComponentResourceCollector {
|
|
22
|
+
constructor(typeChecker, _fileSystem) {
|
|
23
|
+
this.typeChecker = typeChecker;
|
|
24
|
+
this._fileSystem = _fileSystem;
|
|
25
|
+
this.resolvedTemplates = [];
|
|
26
|
+
this.resolvedStylesheets = [];
|
|
27
|
+
}
|
|
28
|
+
visitNode(node) {
|
|
29
|
+
if (node.kind === ts.SyntaxKind.ClassDeclaration) {
|
|
30
|
+
this._visitClassDeclaration(node);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
_visitClassDeclaration(node) {
|
|
34
|
+
const decorators = ts.getDecorators(node);
|
|
35
|
+
if (!decorators || !decorators.length) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const ngDecorators = (0, decorators_1.getAngularDecorators)(this.typeChecker, decorators);
|
|
39
|
+
const componentDecorator = ngDecorators.find(dec => dec.name === 'Component');
|
|
40
|
+
// In case no "@Component" decorator could be found on the current class, skip.
|
|
41
|
+
if (!componentDecorator) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
const decoratorCall = componentDecorator.node.expression;
|
|
45
|
+
// In case the component decorator call is not valid, skip this class declaration.
|
|
46
|
+
if (decoratorCall.arguments.length !== 1) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const componentMetadata = (0, functions_1.unwrapExpression)(decoratorCall.arguments[0]);
|
|
50
|
+
// Ensure that the component metadata is an object literal expression.
|
|
51
|
+
if (!ts.isObjectLiteralExpression(componentMetadata)) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
const sourceFile = node.getSourceFile();
|
|
55
|
+
const filePath = this._fileSystem.resolve(sourceFile.fileName);
|
|
56
|
+
const sourceFileDirPath = (0, path_1.dirname)(sourceFile.fileName);
|
|
57
|
+
// Walk through all component metadata properties and determine the referenced
|
|
58
|
+
// HTML templates (either external or inline)
|
|
59
|
+
componentMetadata.properties.forEach(property => {
|
|
60
|
+
if (!ts.isPropertyAssignment(property)) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
const propertyName = (0, property_name_1.getPropertyNameText)(property.name);
|
|
64
|
+
if (propertyName === 'styles') {
|
|
65
|
+
const elements = ts.isArrayLiteralExpression(property.initializer)
|
|
66
|
+
? property.initializer.elements
|
|
67
|
+
: [property.initializer];
|
|
68
|
+
elements.forEach(el => {
|
|
69
|
+
if (ts.isStringLiteralLike(el)) {
|
|
70
|
+
// Need to add an offset of one to the start because the template quotes are
|
|
71
|
+
// not part of the template content.
|
|
72
|
+
const templateStartIdx = el.getStart() + 1;
|
|
73
|
+
const content = stripBom(el.text);
|
|
74
|
+
this.resolvedStylesheets.push({
|
|
75
|
+
filePath,
|
|
76
|
+
container: node,
|
|
77
|
+
content,
|
|
78
|
+
inline: true,
|
|
79
|
+
start: templateStartIdx,
|
|
80
|
+
getCharacterAndLineOfPosition: pos => ts.getLineAndCharacterOfPosition(sourceFile, pos + templateStartIdx),
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
// In case there is an inline template specified, ensure that the value is statically
|
|
86
|
+
// analyzable by checking if the initializer is a string literal-like node.
|
|
87
|
+
if (propertyName === 'template' && ts.isStringLiteralLike(property.initializer)) {
|
|
88
|
+
// Need to add an offset of one to the start because the template quotes are
|
|
89
|
+
// not part of the template content.
|
|
90
|
+
const templateStartIdx = property.initializer.getStart() + 1;
|
|
91
|
+
this.resolvedTemplates.push({
|
|
92
|
+
filePath,
|
|
93
|
+
container: node,
|
|
94
|
+
content: property.initializer.text,
|
|
95
|
+
inline: true,
|
|
96
|
+
start: templateStartIdx,
|
|
97
|
+
getCharacterAndLineOfPosition: pos => ts.getLineAndCharacterOfPosition(sourceFile, pos + templateStartIdx),
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
if (propertyName === 'styleUrls' && ts.isArrayLiteralExpression(property.initializer)) {
|
|
101
|
+
property.initializer.elements.forEach(el => {
|
|
102
|
+
if (ts.isStringLiteralLike(el)) {
|
|
103
|
+
this._trackExternalStylesheet(sourceFileDirPath, el, node);
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
if (propertyName === 'styleUrl' && ts.isStringLiteralLike(property.initializer)) {
|
|
108
|
+
this._trackExternalStylesheet(sourceFileDirPath, property.initializer, node);
|
|
109
|
+
}
|
|
110
|
+
if (propertyName === 'templateUrl' && ts.isStringLiteralLike(property.initializer)) {
|
|
111
|
+
const templateUrl = property.initializer.text;
|
|
112
|
+
const templatePath = this._fileSystem.resolve(sourceFileDirPath, templateUrl);
|
|
113
|
+
// In case the template does not exist in the file system, skip this
|
|
114
|
+
// external template.
|
|
115
|
+
if (!this._fileSystem.fileExists(templatePath)) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
const fileContent = stripBom(this._fileSystem.read(templatePath) || '');
|
|
119
|
+
if (fileContent) {
|
|
120
|
+
const lineStartsMap = (0, line_mappings_1.computeLineStartsMap)(fileContent);
|
|
121
|
+
this.resolvedTemplates.push({
|
|
122
|
+
filePath: templatePath,
|
|
123
|
+
container: node,
|
|
124
|
+
content: fileContent,
|
|
125
|
+
inline: false,
|
|
126
|
+
start: 0,
|
|
127
|
+
getCharacterAndLineOfPosition: p => (0, line_mappings_1.getLineAndCharacterFromPosition)(lineStartsMap, p),
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
/** Resolves an external stylesheet by reading its content and computing line mappings. */
|
|
134
|
+
resolveExternalStylesheet(filePath, container) {
|
|
135
|
+
// Strip the BOM to avoid issues with the Sass compiler. See:
|
|
136
|
+
// https://github.com/angular/components/issues/24227#issuecomment-1200934258
|
|
137
|
+
const fileContent = stripBom(this._fileSystem.read(filePath) || '');
|
|
138
|
+
if (!fileContent) {
|
|
139
|
+
return null;
|
|
140
|
+
}
|
|
141
|
+
const lineStartsMap = (0, line_mappings_1.computeLineStartsMap)(fileContent);
|
|
142
|
+
return {
|
|
143
|
+
filePath: filePath,
|
|
144
|
+
container: container,
|
|
145
|
+
content: fileContent,
|
|
146
|
+
inline: false,
|
|
147
|
+
start: 0,
|
|
148
|
+
getCharacterAndLineOfPosition: pos => (0, line_mappings_1.getLineAndCharacterFromPosition)(lineStartsMap, pos),
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
_trackExternalStylesheet(sourceFileDirPath, node, container) {
|
|
152
|
+
const stylesheetPath = this._fileSystem.resolve(sourceFileDirPath, node.text);
|
|
153
|
+
const stylesheet = this.resolveExternalStylesheet(stylesheetPath, container);
|
|
154
|
+
if (stylesheet) {
|
|
155
|
+
this.resolvedStylesheets.push(stylesheet);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
exports.ComponentResourceCollector = ComponentResourceCollector;
|
|
160
|
+
/** Strips the BOM from a string. */
|
|
161
|
+
function stripBom(content) {
|
|
162
|
+
return content.replace(/\uFEFF/g, '');
|
|
163
|
+
}
|
|
164
|
+
//# sourceMappingURL=component-resource-collector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-resource-collector.js","sourceRoot":"","sources":["component-resource-collector.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
import { UpdateRecorder } from './update-recorder';
|
|
9
|
+
/**
|
|
10
|
+
* A workspace path semantically is equivalent to the `Path` type provided by the
|
|
11
|
+
* Angular devkit. Paths denoted with such a type are guaranteed to be representing
|
|
12
|
+
* paths of a given virtual file system. This means that the root of a path can be
|
|
13
|
+
* different, and does not necessarily need to match the root in the real file system.
|
|
14
|
+
*
|
|
15
|
+
* For example: Consider we have a project in `/home/<..>/my-project`. Then a path
|
|
16
|
+
* like `/package.json` could actually refer to the `package.json` file in `my-project`.
|
|
17
|
+
* Note that in the real file system this would not match though.
|
|
18
|
+
*
|
|
19
|
+
* One might wonder why another type has been declared for such paths, when there
|
|
20
|
+
* already is the `Path` type provided by the devkit. We do this for a couple of reasons:
|
|
21
|
+
*
|
|
22
|
+
* 1. The update-tool cannot have a dependency on the Angular devkit as that one
|
|
23
|
+
* is not synced into g3. We want to be able to run migrations in g3 if needed.
|
|
24
|
+
*/
|
|
25
|
+
export type WorkspacePath = string & {
|
|
26
|
+
__PRIVATE_DEVKIT_PATH: void;
|
|
27
|
+
};
|
|
28
|
+
/** Interface that describes a directory. */
|
|
29
|
+
export interface DirectoryEntry {
|
|
30
|
+
/** List of directories inside the directory. */
|
|
31
|
+
directories: string[];
|
|
32
|
+
/** List of files inside the directory. */
|
|
33
|
+
files: string[];
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Abstraction of the file system that migrations can use to record and apply
|
|
37
|
+
* changes. This is necessary to support virtual file systems as used in the CLI devkit.
|
|
38
|
+
*/
|
|
39
|
+
export declare abstract class FileSystem {
|
|
40
|
+
/** Checks whether the given file exists. */
|
|
41
|
+
abstract fileExists(path: WorkspacePath): boolean;
|
|
42
|
+
/** Checks whether the given directory exists. */
|
|
43
|
+
abstract directoryExists(path: WorkspacePath): boolean;
|
|
44
|
+
/** Gets the contents of the given file. */
|
|
45
|
+
abstract read(filePath: WorkspacePath): string | null;
|
|
46
|
+
/** Reads the given directory to retrieve children. */
|
|
47
|
+
abstract readDirectory(dirPath: WorkspacePath): DirectoryEntry;
|
|
48
|
+
/**
|
|
49
|
+
* Creates an update recorder for the given file. Edits can be recorded and
|
|
50
|
+
* committed in batches. Changes are not applied automatically because otherwise
|
|
51
|
+
* migrations would need to re-read files, or account for shifted file contents.
|
|
52
|
+
*/
|
|
53
|
+
abstract edit(filePath: WorkspacePath): UpdateRecorder;
|
|
54
|
+
/** Applies all changes which have been recorded in update recorders. */
|
|
55
|
+
abstract commitEdits(): void;
|
|
56
|
+
/** Creates a new file with the given content. */
|
|
57
|
+
abstract create(filePath: WorkspacePath, content: string): void;
|
|
58
|
+
/** Overwrites an existing file with the given content. */
|
|
59
|
+
abstract overwrite(filePath: WorkspacePath, content: string): void;
|
|
60
|
+
/** Deletes the given file. */
|
|
61
|
+
abstract delete(filePath: WorkspacePath): void;
|
|
62
|
+
/**
|
|
63
|
+
* Resolves given paths to a resolved path in the file system. For example, the devkit
|
|
64
|
+
* tree considers the actual workspace directory as file system root.
|
|
65
|
+
*
|
|
66
|
+
* Follows the same semantics as the native path `resolve` method. i.e. segments
|
|
67
|
+
* are processed in reverse. The last segment is considered the target and the
|
|
68
|
+
* function will iterate from the target through other segments until it finds an
|
|
69
|
+
* absolute path segment.
|
|
70
|
+
*/
|
|
71
|
+
abstract resolve(...segments: string[]): WorkspacePath;
|
|
72
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.FileSystem = void 0;
|
|
11
|
+
/**
|
|
12
|
+
* Abstraction of the file system that migrations can use to record and apply
|
|
13
|
+
* changes. This is necessary to support virtual file systems as used in the CLI devkit.
|
|
14
|
+
*/
|
|
15
|
+
class FileSystem {
|
|
16
|
+
}
|
|
17
|
+
exports.FileSystem = FileSystem;
|
|
18
|
+
//# sourceMappingURL=file-system.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-system.js","sourceRoot":"","sources":["file-system.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAkCH;;;GAGG;AACH,MAAsB,UAAU;CAiC/B;AAjCD,gCAiCC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
import * as ts from 'typescript';
|
|
9
|
+
import { FileSystem, WorkspacePath } from './file-system';
|
|
10
|
+
import { UpdateLogger } from './logger';
|
|
11
|
+
import { MigrationCtor } from './migration';
|
|
12
|
+
import { TargetVersion } from './target-version';
|
|
13
|
+
/**
|
|
14
|
+
* An update project that can be run against individual migrations. An update project
|
|
15
|
+
* accepts a TypeScript program and a context that is provided to all migrations. The
|
|
16
|
+
* context is usually not used by migrations, but in some cases migrations rely on
|
|
17
|
+
* specifics from the tool that performs the update (e.g. the Angular CLI). In those cases,
|
|
18
|
+
* the context can provide the necessary specifics to the migrations in a type-safe way.
|
|
19
|
+
*/
|
|
20
|
+
export declare class UpdateProject<Context> {
|
|
21
|
+
/** Context provided to all migrations. */
|
|
22
|
+
private _context;
|
|
23
|
+
/** TypeScript program using workspace paths. */
|
|
24
|
+
private _program;
|
|
25
|
+
/** File system used for reading, writing and editing files. */
|
|
26
|
+
private _fileSystem;
|
|
27
|
+
/**
|
|
28
|
+
* Set of analyzed files. Used for avoiding multiple migration runs if
|
|
29
|
+
* files overlap between targets.
|
|
30
|
+
*/
|
|
31
|
+
private _analyzedFiles;
|
|
32
|
+
/** Logger used for printing messages. */
|
|
33
|
+
private _logger;
|
|
34
|
+
private readonly _typeChecker;
|
|
35
|
+
constructor(
|
|
36
|
+
/** Context provided to all migrations. */
|
|
37
|
+
_context: Context,
|
|
38
|
+
/** TypeScript program using workspace paths. */
|
|
39
|
+
_program: ts.Program,
|
|
40
|
+
/** File system used for reading, writing and editing files. */
|
|
41
|
+
_fileSystem: FileSystem,
|
|
42
|
+
/**
|
|
43
|
+
* Set of analyzed files. Used for avoiding multiple migration runs if
|
|
44
|
+
* files overlap between targets.
|
|
45
|
+
*/
|
|
46
|
+
_analyzedFiles?: Set<WorkspacePath>,
|
|
47
|
+
/** Logger used for printing messages. */
|
|
48
|
+
_logger?: UpdateLogger);
|
|
49
|
+
/**
|
|
50
|
+
* Migrates the project to the specified target version.
|
|
51
|
+
* @param migrationTypes Migrations that should be run.
|
|
52
|
+
* @param target Version the project should be updated to. Can be `null` if the set of
|
|
53
|
+
* specified migrations runs regardless of a target version.
|
|
54
|
+
* @param data Upgrade data that is passed to all migration rules.
|
|
55
|
+
* @param additionalStylesheetPaths Additional stylesheets that should be migrated, if not
|
|
56
|
+
* referenced in an Angular component. This is helpful for global stylesheets in a project.
|
|
57
|
+
* @param limitToDirectory If specified, changes will be limited to the given directory.
|
|
58
|
+
*/
|
|
59
|
+
migrate<Data>(migrationTypes: MigrationCtor<Data, Context>[], target: TargetVersion | null, data: Data, additionalStylesheetPaths?: string[], limitToDirectory?: string): {
|
|
60
|
+
hasFailures: boolean;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Creates instances of the given migrations with the specified target
|
|
64
|
+
* version and data.
|
|
65
|
+
*/
|
|
66
|
+
private _createMigrations;
|
|
67
|
+
/**
|
|
68
|
+
* Creates a program from the specified tsconfig and patches the host
|
|
69
|
+
* to read files and directories through the given file system.
|
|
70
|
+
*
|
|
71
|
+
* @throws {TsconfigParseError} If the tsconfig could not be parsed.
|
|
72
|
+
*/
|
|
73
|
+
static createProgramFromTsconfig(tsconfigPath: WorkspacePath, fs: FileSystem): ts.Program;
|
|
74
|
+
}
|