@angular/cdk 19.2.13 → 19.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_adev_assets/cdk_testing.json +7032 -1
- package/_adev_assets/cdk_testing_protractor.json +1747 -1
- package/_adev_assets/cdk_testing_selenium_webdriver.json +1801 -1
- package/_adev_assets/cdk_testing_testbed.json +1903 -1
- package/dialog/index.d.ts +17 -12
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/dialog.mjs +21 -9
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/testing.mjs +255 -52
- package/fesm2022/testing.mjs.map +1 -1
- package/{harness-environment.d-BatBdODN.d.ts → harness-environment.d-BbFzIFDE.d.ts} +362 -89
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/testing/index.d.ts +6 -2
- package/testing/selenium-webdriver/index.d.ts +1 -1
- package/testing/testbed/index.d.ts +1 -1
- package/npm_package/LICENSE +0 -21
- package/npm_package/README.md +0 -6
- package/npm_package/_adev_assets/cdk_testing.json +0 -1
- package/npm_package/_adev_assets/cdk_testing_protractor.json +0 -1
- package/npm_package/_adev_assets/cdk_testing_selenium_webdriver.json +0 -1
- package/npm_package/_adev_assets/cdk_testing_testbed.json +0 -1
- package/npm_package/_index.scss +0 -8
- package/npm_package/a11y/_index.scss +0 -60
- package/npm_package/a11y/index.d.ts +0 -550
- package/npm_package/a11y-module.d-DBHGyKoh.d.ts +0 -314
- package/npm_package/a11y-prebuilt.css +0 -1
- package/npm_package/accordion/index.d.ts +0 -90
- package/npm_package/activedescendant-key-manager.d-Bjic5obv.d.ts +0 -32
- package/npm_package/bidi/index.d.ts +0 -21
- package/npm_package/bidi-module.d-D-fEBKdS.d.ts +0 -54
- package/npm_package/clipboard/index.d.ts +0 -101
- package/npm_package/coercion/index.d.ts +0 -45
- package/npm_package/coercion/private/index.d.ts +0 -9
- package/npm_package/collections/index.d.ts +0 -99
- package/npm_package/data-source.d-Bblv7Zvh.d.ts +0 -43
- package/npm_package/dialog/index.d.ts +0 -426
- package/npm_package/drag-drop/index.d.ts +0 -1383
- package/npm_package/fesm2022/a11y-module-BYox5gpI.mjs +0 -952
- package/npm_package/fesm2022/a11y-module-BYox5gpI.mjs.map +0 -1
- package/npm_package/fesm2022/a11y.mjs +0 -539
- package/npm_package/fesm2022/a11y.mjs.map +0 -1
- package/npm_package/fesm2022/accordion.mjs +0 -210
- package/npm_package/fesm2022/accordion.mjs.map +0 -1
- package/npm_package/fesm2022/activedescendant-key-manager-DC3-fwQI.mjs +0 -16
- package/npm_package/fesm2022/activedescendant-key-manager-DC3-fwQI.mjs.map +0 -1
- package/npm_package/fesm2022/array-I1yfCXUO.mjs +0 -6
- package/npm_package/fesm2022/array-I1yfCXUO.mjs.map +0 -1
- package/npm_package/fesm2022/backwards-compatibility-DHR38MsD.mjs +0 -25
- package/npm_package/fesm2022/backwards-compatibility-DHR38MsD.mjs.map +0 -1
- package/npm_package/fesm2022/bidi.mjs +0 -80
- package/npm_package/fesm2022/bidi.mjs.map +0 -1
- package/npm_package/fesm2022/boolean-property-DaaVhX5A.mjs +0 -7
- package/npm_package/fesm2022/boolean-property-DaaVhX5A.mjs.map +0 -1
- package/npm_package/fesm2022/breakpoints-observer-CljOfYGy.mjs +0 -179
- package/npm_package/fesm2022/breakpoints-observer-CljOfYGy.mjs.map +0 -1
- package/npm_package/fesm2022/cdk.mjs +0 -7
- package/npm_package/fesm2022/cdk.mjs.map +0 -1
- package/npm_package/fesm2022/clipboard.mjs +0 -211
- package/npm_package/fesm2022/clipboard.mjs.map +0 -1
- package/npm_package/fesm2022/coercion/private.mjs +0 -15
- package/npm_package/fesm2022/coercion/private.mjs.map +0 -1
- package/npm_package/fesm2022/coercion.mjs +0 -39
- package/npm_package/fesm2022/coercion.mjs.map +0 -1
- package/npm_package/fesm2022/collections.mjs +0 -8
- package/npm_package/fesm2022/collections.mjs.map +0 -1
- package/npm_package/fesm2022/css-pixel-value-C_HEqLhI.mjs +0 -10
- package/npm_package/fesm2022/css-pixel-value-C_HEqLhI.mjs.map +0 -1
- package/npm_package/fesm2022/data-source-D34wiQZj.mjs +0 -15
- package/npm_package/fesm2022/data-source-D34wiQZj.mjs.map +0 -1
- package/npm_package/fesm2022/dialog.mjs +0 -870
- package/npm_package/fesm2022/dialog.mjs.map +0 -1
- package/npm_package/fesm2022/directionality-CBXD4hga.mjs +0 -72
- package/npm_package/fesm2022/directionality-CBXD4hga.mjs.map +0 -1
- package/npm_package/fesm2022/dispose-view-repeater-strategy-D_JReLI1.mjs +0 -44
- package/npm_package/fesm2022/dispose-view-repeater-strategy-D_JReLI1.mjs.map +0 -1
- package/npm_package/fesm2022/drag-drop.mjs +0 -4359
- package/npm_package/fesm2022/drag-drop.mjs.map +0 -1
- package/npm_package/fesm2022/element-x4z00URv.mjs +0 -29
- package/npm_package/fesm2022/element-x4z00URv.mjs.map +0 -1
- package/npm_package/fesm2022/fake-event-detection-DWOdFTFz.mjs +0 -24
- package/npm_package/fesm2022/fake-event-detection-DWOdFTFz.mjs.map +0 -1
- package/npm_package/fesm2022/focus-key-manager-C1rAQJ5z.mjs +0 -22
- package/npm_package/fesm2022/focus-key-manager-C1rAQJ5z.mjs.map +0 -1
- package/npm_package/fesm2022/focus-monitor-e2l_RpN3.mjs +0 -629
- package/npm_package/fesm2022/focus-monitor-e2l_RpN3.mjs.map +0 -1
- package/npm_package/fesm2022/id-generator-Dw_9dSDu.mjs +0 -37
- package/npm_package/fesm2022/id-generator-Dw_9dSDu.mjs.map +0 -1
- package/npm_package/fesm2022/keycodes-CpHkExLC.mjs +0 -122
- package/npm_package/fesm2022/keycodes-CpHkExLC.mjs.map +0 -1
- package/npm_package/fesm2022/keycodes.mjs +0 -15
- package/npm_package/fesm2022/keycodes.mjs.map +0 -1
- package/npm_package/fesm2022/layout.mjs +0 -43
- package/npm_package/fesm2022/layout.mjs.map +0 -1
- package/npm_package/fesm2022/list-key-manager-CyOIXo8P.mjs +0 -360
- package/npm_package/fesm2022/list-key-manager-CyOIXo8P.mjs.map +0 -1
- package/npm_package/fesm2022/listbox.mjs +0 -925
- package/npm_package/fesm2022/listbox.mjs.map +0 -1
- package/npm_package/fesm2022/menu.mjs +0 -1966
- package/npm_package/fesm2022/menu.mjs.map +0 -1
- package/npm_package/fesm2022/observers/private.mjs +0 -124
- package/npm_package/fesm2022/observers/private.mjs.map +0 -1
- package/npm_package/fesm2022/observers.mjs +0 -210
- package/npm_package/fesm2022/observers.mjs.map +0 -1
- package/npm_package/fesm2022/overlay-module-BUj0D19H.mjs +0 -3029
- package/npm_package/fesm2022/overlay-module-BUj0D19H.mjs.map +0 -1
- package/npm_package/fesm2022/overlay.mjs +0 -102
- package/npm_package/fesm2022/overlay.mjs.map +0 -1
- package/npm_package/fesm2022/passive-listeners-esHZRgIN.mjs +0 -31
- package/npm_package/fesm2022/passive-listeners-esHZRgIN.mjs.map +0 -1
- package/npm_package/fesm2022/platform-DmdVEw_C.mjs +0 -77
- package/npm_package/fesm2022/platform-DmdVEw_C.mjs.map +0 -1
- package/npm_package/fesm2022/platform.mjs +0 -74
- package/npm_package/fesm2022/platform.mjs.map +0 -1
- package/npm_package/fesm2022/portal-directives-Bw5woq8I.mjs +0 -653
- package/npm_package/fesm2022/portal-directives-Bw5woq8I.mjs.map +0 -1
- package/npm_package/fesm2022/portal.mjs +0 -29
- package/npm_package/fesm2022/portal.mjs.map +0 -1
- package/npm_package/fesm2022/private.mjs +0 -19
- package/npm_package/fesm2022/private.mjs.map +0 -1
- package/npm_package/fesm2022/recycle-view-repeater-strategy-DoWdPqVw.mjs +0 -156
- package/npm_package/fesm2022/recycle-view-repeater-strategy-DoWdPqVw.mjs.map +0 -1
- package/npm_package/fesm2022/scrolling-BkvA05C8.mjs +0 -99
- package/npm_package/fesm2022/scrolling-BkvA05C8.mjs.map +0 -1
- package/npm_package/fesm2022/scrolling.mjs +0 -1464
- package/npm_package/fesm2022/scrolling.mjs.map +0 -1
- package/npm_package/fesm2022/selection-model-CeeHVIcP.mjs +0 -226
- package/npm_package/fesm2022/selection-model-CeeHVIcP.mjs.map +0 -1
- package/npm_package/fesm2022/shadow-dom-B0oHn41l.mjs +0 -49
- package/npm_package/fesm2022/shadow-dom-B0oHn41l.mjs.map +0 -1
- package/npm_package/fesm2022/stepper.mjs +0 -614
- package/npm_package/fesm2022/stepper.mjs.map +0 -1
- package/npm_package/fesm2022/style-loader-Cu9AvjH9.mjs +0 -47
- package/npm_package/fesm2022/style-loader-Cu9AvjH9.mjs.map +0 -1
- package/npm_package/fesm2022/table.mjs +0 -2602
- package/npm_package/fesm2022/table.mjs.map +0 -1
- package/npm_package/fesm2022/test-environment-CT0XxPyp.mjs +0 -19
- package/npm_package/fesm2022/test-environment-CT0XxPyp.mjs.map +0 -1
- package/npm_package/fesm2022/testing/selenium-webdriver.mjs +0 -353
- package/npm_package/fesm2022/testing/selenium-webdriver.mjs.map +0 -1
- package/npm_package/fesm2022/testing/testbed.mjs +0 -782
- package/npm_package/fesm2022/testing/testbed.mjs.map +0 -1
- package/npm_package/fesm2022/testing.mjs +0 -698
- package/npm_package/fesm2022/testing.mjs.map +0 -1
- package/npm_package/fesm2022/text-field.mjs +0 -437
- package/npm_package/fesm2022/text-field.mjs.map +0 -1
- package/npm_package/fesm2022/tree-key-manager-KnCoIkIC.mjs +0 -360
- package/npm_package/fesm2022/tree-key-manager-KnCoIkIC.mjs.map +0 -1
- package/npm_package/fesm2022/tree.mjs +0 -1795
- package/npm_package/fesm2022/tree.mjs.map +0 -1
- package/npm_package/fesm2022/typeahead-9ZW4Dtsf.mjs +0 -88
- package/npm_package/fesm2022/typeahead-9ZW4Dtsf.mjs.map +0 -1
- package/npm_package/fesm2022/unique-selection-dispatcher-DtHZDqyJ.mjs +0 -49
- package/npm_package/fesm2022/unique-selection-dispatcher-DtHZDqyJ.mjs.map +0 -1
- package/npm_package/focus-key-manager.d-BIKDy8oD.d.ts +0 -34
- package/npm_package/focus-monitor.d-CvvJeQRc.d.ts +0 -210
- package/npm_package/harness-environment.d-BatBdODN.d.ts +0 -620
- package/npm_package/index.d.ts +0 -6
- package/npm_package/keycodes/index.d.ts +0 -129
- package/npm_package/layout/index.d.ts +0 -89
- package/npm_package/list-key-manager.d-BlK3jyRn.d.ts +0 -165
- package/npm_package/listbox/index.d.ts +0 -353
- package/npm_package/menu/index.d.ts +0 -821
- package/npm_package/number-property.d-CJVxXUcb.d.ts +0 -16
- package/npm_package/observers/index.d.ts +0 -84
- package/npm_package/observers/private/index.d.ts +0 -34
- package/npm_package/overlay/_index-deprecated.scss +0 -13
- package/npm_package/overlay/_index.scss +0 -193
- package/npm_package/overlay/index.d.ts +0 -42
- package/npm_package/overlay-module.d-B3qEQtts.d.ts +0 -791
- package/npm_package/overlay-prebuilt.css +0 -1
- package/npm_package/overlay.d-BdoMy0hX.d.ts +0 -296
- package/npm_package/package.json +0 -186
- package/npm_package/platform/index.d.ts +0 -83
- package/npm_package/platform.d-B3vREl3q.d.ts +0 -33
- package/npm_package/portal/index.d.ts +0 -86
- package/npm_package/portal-directives.d-BoG39gYN.d.ts +0 -232
- package/npm_package/private/index.d.ts +0 -13
- package/npm_package/schematics/collection.json +0 -18
- package/npm_package/schematics/index.d.ts +0 -14
- package/npm_package/schematics/index.js +0 -37
- package/npm_package/schematics/index.js.map +0 -1
- package/npm_package/schematics/migration.json +0 -15
- package/npm_package/schematics/ng-add/index.d.ts +0 -17
- package/npm_package/schematics/ng-add/index.js +0 -39
- package/npm_package/schematics/ng-add/index.js.map +0 -1
- package/npm_package/schematics/ng-add/package-config.d.ts +0 -12
- package/npm_package/schematics/ng-add/package-config.js +0 -51
- package/npm_package/schematics/ng-add/package-config.js.map +0 -1
- package/npm_package/schematics/ng-add/schema.d.ts +0 -11
- package/npm_package/schematics/ng-add/schema.js +0 -10
- package/npm_package/schematics/ng-add/schema.js.map +0 -1
- package/npm_package/schematics/ng-add/schema.json +0 -16
- package/npm_package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__style__.template +0 -53
- package/npm_package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +0 -21
- package/npm_package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +0 -25
- package/npm_package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +0 -45
- package/npm_package/schematics/ng-generate/drag-drop/index.d.ts +0 -11
- package/npm_package/schematics/ng-generate/drag-drop/index.js +0 -42
- package/npm_package/schematics/ng-generate/drag-drop/index.js.map +0 -1
- package/npm_package/schematics/ng-generate/drag-drop/schema.d.ts +0 -10
- package/npm_package/schematics/ng-generate/drag-drop/schema.js +0 -10
- package/npm_package/schematics/ng-generate/drag-drop/schema.js.map +0 -1
- package/npm_package/schematics/ng-generate/drag-drop/schema.json +0 -100
- package/npm_package/schematics/ng-update/data/attribute-selectors.d.ts +0 -15
- package/npm_package/schematics/ng-update/data/attribute-selectors.js +0 -12
- package/npm_package/schematics/ng-update/data/attribute-selectors.js.map +0 -1
- package/npm_package/schematics/ng-update/data/class-names.d.ts +0 -15
- package/npm_package/schematics/ng-update/data/class-names.js +0 -12
- package/npm_package/schematics/ng-update/data/class-names.js.map +0 -1
- package/npm_package/schematics/ng-update/data/constructor-checks.d.ts +0 -15
- package/npm_package/schematics/ng-update/data/constructor-checks.js +0 -17
- package/npm_package/schematics/ng-update/data/constructor-checks.js.map +0 -1
- package/npm_package/schematics/ng-update/data/css-selectors.d.ts +0 -27
- package/npm_package/schematics/ng-update/data/css-selectors.js +0 -12
- package/npm_package/schematics/ng-update/data/css-selectors.js.map +0 -1
- package/npm_package/schematics/ng-update/data/css-tokens.d.ts +0 -27
- package/npm_package/schematics/ng-update/data/css-tokens.js +0 -12
- package/npm_package/schematics/ng-update/data/css-tokens.js.map +0 -1
- package/npm_package/schematics/ng-update/data/element-selectors.d.ts +0 -15
- package/npm_package/schematics/ng-update/data/element-selectors.js +0 -12
- package/npm_package/schematics/ng-update/data/element-selectors.js.map +0 -1
- package/npm_package/schematics/ng-update/data/index.d.ts +0 -18
- package/npm_package/schematics/ng-update/data/index.js +0 -35
- package/npm_package/schematics/ng-update/data/index.js.map +0 -1
- package/npm_package/schematics/ng-update/data/input-names.d.ts +0 -22
- package/npm_package/schematics/ng-update/data/input-names.js +0 -12
- package/npm_package/schematics/ng-update/data/input-names.js.map +0 -1
- package/npm_package/schematics/ng-update/data/method-call-checks.d.ts +0 -17
- package/npm_package/schematics/ng-update/data/method-call-checks.js +0 -12
- package/npm_package/schematics/ng-update/data/method-call-checks.js.map +0 -1
- package/npm_package/schematics/ng-update/data/output-names.d.ts +0 -22
- package/npm_package/schematics/ng-update/data/output-names.js +0 -12
- package/npm_package/schematics/ng-update/data/output-names.js.map +0 -1
- package/npm_package/schematics/ng-update/data/property-names.d.ts +0 -20
- package/npm_package/schematics/ng-update/data/property-names.js +0 -12
- package/npm_package/schematics/ng-update/data/property-names.js.map +0 -1
- package/npm_package/schematics/ng-update/data/symbol-removal.d.ts +0 -17
- package/npm_package/schematics/ng-update/data/symbol-removal.js +0 -12
- package/npm_package/schematics/ng-update/data/symbol-removal.js.map +0 -1
- package/npm_package/schematics/ng-update/devkit-file-system.d.ts +0 -30
- package/npm_package/schematics/ng-update/devkit-file-system.js +0 -83
- package/npm_package/schematics/ng-update/devkit-file-system.js.map +0 -1
- package/npm_package/schematics/ng-update/devkit-migration-rule.d.ts +0 -24
- package/npm_package/schematics/ng-update/devkit-migration-rule.js +0 -142
- package/npm_package/schematics/ng-update/devkit-migration-rule.js.map +0 -1
- package/npm_package/schematics/ng-update/devkit-migration.d.ts +0 -35
- package/npm_package/schematics/ng-update/devkit-migration.js +0 -20
- package/npm_package/schematics/ng-update/devkit-migration.js.map +0 -1
- package/npm_package/schematics/ng-update/find-stylesheets.d.ts +0 -16
- package/npm_package/schematics/ng-update/find-stylesheets.js +0 -41
- package/npm_package/schematics/ng-update/find-stylesheets.js.map +0 -1
- package/npm_package/schematics/ng-update/html-parsing/angular.d.ts +0 -15
- package/npm_package/schematics/ng-update/html-parsing/angular.js +0 -51
- package/npm_package/schematics/ng-update/html-parsing/angular.js.map +0 -1
- package/npm_package/schematics/ng-update/html-parsing/elements.d.ts +0 -24
- package/npm_package/schematics/ng-update/html-parsing/elements.js +0 -63
- package/npm_package/schematics/ng-update/html-parsing/elements.js.map +0 -1
- package/npm_package/schematics/ng-update/index.d.ts +0 -10
- package/npm_package/schematics/ng-update/index.js +0 -29
- package/npm_package/schematics/ng-update/index.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/attribute-selectors.d.ts +0 -26
- package/npm_package/schematics/ng-update/migrations/attribute-selectors.js +0 -71
- package/npm_package/schematics/ng-update/migrations/attribute-selectors.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/class-inheritance.d.ts +0 -26
- package/npm_package/schematics/ng-update/migrations/class-inheritance.js +0 -58
- package/npm_package/schematics/ng-update/migrations/class-inheritance.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/class-names.d.ts +0 -32
- package/npm_package/schematics/ng-update/migrations/class-names.js +0 -91
- package/npm_package/schematics/ng-update/migrations/class-names.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/constructor-signature.d.ts +0 -29
- package/npm_package/schematics/ng-update/migrations/constructor-signature.js +0 -139
- package/npm_package/schematics/ng-update/migrations/constructor-signature.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/css-selectors.d.ts +0 -26
- package/npm_package/schematics/ng-update/migrations/css-selectors.js +0 -75
- package/npm_package/schematics/ng-update/migrations/css-selectors.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/css-tokens.d.ts +0 -26
- package/npm_package/schematics/ng-update/migrations/css-tokens.js +0 -83
- package/npm_package/schematics/ng-update/migrations/css-tokens.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/element-selectors.d.ts +0 -26
- package/npm_package/schematics/ng-update/migrations/element-selectors.js +0 -66
- package/npm_package/schematics/ng-update/migrations/element-selectors.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/input-names.d.ts +0 -26
- package/npm_package/schematics/ng-update/migrations/input-names.js +0 -59
- package/npm_package/schematics/ng-update/migrations/input-names.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/method-call-arguments.d.ts +0 -22
- package/npm_package/schematics/ng-update/migrations/method-call-arguments.js +0 -62
- package/npm_package/schematics/ng-update/migrations/method-call-arguments.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/misc-template.d.ts +0 -18
- package/npm_package/schematics/ng-update/migrations/misc-template.js +0 -25
- package/npm_package/schematics/ng-update/migrations/misc-template.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/output-names.d.ts +0 -22
- package/npm_package/schematics/ng-update/migrations/output-names.js +0 -46
- package/npm_package/schematics/ng-update/migrations/output-names.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/property-names.d.ts +0 -22
- package/npm_package/schematics/ng-update/migrations/property-names.js +0 -60
- package/npm_package/schematics/ng-update/migrations/property-names.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/symbol-removal.d.ts +0 -18
- package/npm_package/schematics/ng-update/migrations/symbol-removal.js +0 -47
- package/npm_package/schematics/ng-update/migrations/symbol-removal.js.map +0 -1
- package/npm_package/schematics/ng-update/public-api.d.ts +0 -19
- package/npm_package/schematics/ng-update/public-api.js +0 -36
- package/npm_package/schematics/ng-update/public-api.js.map +0 -1
- package/npm_package/schematics/ng-update/typescript/base-types.d.ts +0 -10
- package/npm_package/schematics/ng-update/typescript/base-types.js +0 -23
- package/npm_package/schematics/ng-update/typescript/base-types.js.map +0 -1
- package/npm_package/schematics/ng-update/typescript/imports.d.ts +0 -18
- package/npm_package/schematics/ng-update/typescript/imports.js +0 -53
- package/npm_package/schematics/ng-update/typescript/imports.js.map +0 -1
- package/npm_package/schematics/ng-update/typescript/literal.d.ts +0 -18
- package/npm_package/schematics/ng-update/typescript/literal.js +0 -32
- package/npm_package/schematics/ng-update/typescript/literal.js.map +0 -1
- package/npm_package/schematics/ng-update/typescript/module-specifiers.d.ts +0 -16
- package/npm_package/schematics/ng-update/typescript/module-specifiers.js +0 -35
- package/npm_package/schematics/ng-update/typescript/module-specifiers.js.map +0 -1
- package/npm_package/schematics/ng-update/upgrade-data.d.ts +0 -35
- package/npm_package/schematics/ng-update/upgrade-data.js +0 -40
- package/npm_package/schematics/ng-update/upgrade-data.js.map +0 -1
- package/npm_package/schematics/package.json +0 -3
- package/npm_package/schematics/paths.d.ts +0 -11
- package/npm_package/schematics/paths.js +0 -16
- package/npm_package/schematics/paths.js.map +0 -1
- package/npm_package/schematics/update-tool/component-resource-collector.d.ts +0 -44
- package/npm_package/schematics/update-tool/component-resource-collector.js +0 -164
- package/npm_package/schematics/update-tool/component-resource-collector.js.map +0 -1
- package/npm_package/schematics/update-tool/file-system.d.ts +0 -72
- package/npm_package/schematics/update-tool/file-system.js +0 -18
- package/npm_package/schematics/update-tool/file-system.js.map +0 -1
- package/npm_package/schematics/update-tool/index.d.ts +0 -74
- package/npm_package/schematics/update-tool/index.js +0 -172
- package/npm_package/schematics/update-tool/index.js.map +0 -1
- package/npm_package/schematics/update-tool/logger.d.ts +0 -15
- package/npm_package/schematics/update-tool/logger.js +0 -18
- package/npm_package/schematics/update-tool/logger.js.map +0 -1
- package/npm_package/schematics/update-tool/migration.d.ts +0 -87
- package/npm_package/schematics/update-tool/migration.js +0 -70
- package/npm_package/schematics/update-tool/migration.js.map +0 -1
- package/npm_package/schematics/update-tool/public-api.d.ts +0 -16
- package/npm_package/schematics/update-tool/public-api.js +0 -33
- package/npm_package/schematics/update-tool/public-api.js.map +0 -1
- package/npm_package/schematics/update-tool/target-version.d.ts +0 -16
- package/npm_package/schematics/update-tool/target-version.js +0 -27
- package/npm_package/schematics/update-tool/target-version.js.map +0 -1
- package/npm_package/schematics/update-tool/update-recorder.d.ts +0 -13
- package/npm_package/schematics/update-tool/update-recorder.js +0 -10
- package/npm_package/schematics/update-tool/update-recorder.js.map +0 -1
- package/npm_package/schematics/update-tool/utils/decorators.d.ts +0 -22
- package/npm_package/schematics/update-tool/utils/decorators.js +0 -41
- package/npm_package/schematics/update-tool/utils/decorators.js.map +0 -1
- package/npm_package/schematics/update-tool/utils/diagnostics.d.ts +0 -11
- package/npm_package/schematics/update-tool/utils/diagnostics.js +0 -18
- package/npm_package/schematics/update-tool/utils/diagnostics.js.map +0 -1
- package/npm_package/schematics/update-tool/utils/functions.d.ts +0 -14
- package/npm_package/schematics/update-tool/utils/functions.js +0 -20
- package/npm_package/schematics/update-tool/utils/functions.js.map +0 -1
- package/npm_package/schematics/update-tool/utils/imports.d.ts +0 -17
- package/npm_package/schematics/update-tool/utils/imports.js +0 -110
- package/npm_package/schematics/update-tool/utils/imports.js.map +0 -1
- package/npm_package/schematics/update-tool/utils/line-mappings.d.ts +0 -21
- package/npm_package/schematics/update-tool/utils/line-mappings.js +0 -75
- package/npm_package/schematics/update-tool/utils/line-mappings.js.map +0 -1
- package/npm_package/schematics/update-tool/utils/parse-tsconfig.d.ts +0 -18
- package/npm_package/schematics/update-tool/utils/parse-tsconfig.js +0 -45
- package/npm_package/schematics/update-tool/utils/parse-tsconfig.js.map +0 -1
- package/npm_package/schematics/update-tool/utils/property-name.d.ts +0 -18
- package/npm_package/schematics/update-tool/utils/property-name.js +0 -27
- package/npm_package/schematics/update-tool/utils/property-name.js.map +0 -1
- package/npm_package/schematics/update-tool/utils/virtual-host.d.ts +0 -36
- package/npm_package/schematics/update-tool/utils/virtual-host.js +0 -71
- package/npm_package/schematics/update-tool/utils/virtual-host.js.map +0 -1
- package/npm_package/schematics/update-tool/version-changes.d.ts +0 -32
- package/npm_package/schematics/update-tool/version-changes.js +0 -38
- package/npm_package/schematics/update-tool/version-changes.js.map +0 -1
- package/npm_package/schematics/utils/ast/ng-module-imports.d.ts +0 -12
- package/npm_package/schematics/utils/ast/ng-module-imports.js +0 -82
- package/npm_package/schematics/utils/ast/ng-module-imports.js.map +0 -1
- package/npm_package/schematics/utils/ast.d.ts +0 -25
- package/npm_package/schematics/utils/ast.js +0 -79
- package/npm_package/schematics/utils/ast.js.map +0 -1
- package/npm_package/schematics/utils/build-component.d.ts +0 -20
- package/npm_package/schematics/utils/build-component.js +0 -188
- package/npm_package/schematics/utils/build-component.js.map +0 -1
- package/npm_package/schematics/utils/get-project.d.ts +0 -13
- package/npm_package/schematics/utils/get-project.js +0 -28
- package/npm_package/schematics/utils/get-project.js.map +0 -1
- package/npm_package/schematics/utils/html-manipulation.d.ts +0 -15
- package/npm_package/schematics/utils/html-manipulation.js +0 -91
- package/npm_package/schematics/utils/html-manipulation.js.map +0 -1
- package/npm_package/schematics/utils/index.d.ts +0 -19
- package/npm_package/schematics/utils/index.js +0 -36
- package/npm_package/schematics/utils/index.js.map +0 -1
- package/npm_package/schematics/utils/parse5-element.d.ts +0 -12
- package/npm_package/schematics/utils/parse5-element.js +0 -30
- package/npm_package/schematics/utils/parse5-element.js.map +0 -1
- package/npm_package/schematics/utils/project-index-file.d.ts +0 -10
- package/npm_package/schematics/utils/project-index-file.js +0 -20
- package/npm_package/schematics/utils/project-index-file.js.map +0 -1
- package/npm_package/schematics/utils/project-main-file.d.ts +0 -10
- package/npm_package/schematics/utils/project-main-file.js +0 -25
- package/npm_package/schematics/utils/project-main-file.js.map +0 -1
- package/npm_package/schematics/utils/project-style-file.d.ts +0 -13
- package/npm_package/schematics/utils/project-style-file.js +0 -42
- package/npm_package/schematics/utils/project-style-file.js.map +0 -1
- package/npm_package/schematics/utils/project-targets.d.ts +0 -14
- package/npm_package/schematics/utils/project-targets.js +0 -46
- package/npm_package/schematics/utils/project-targets.js.map +0 -1
- package/npm_package/schematics/utils/project-tsconfig-paths.d.ts +0 -14
- package/npm_package/schematics/utils/project-tsconfig-paths.js +0 -46
- package/npm_package/schematics/utils/project-tsconfig-paths.js.map +0 -1
- package/npm_package/schematics/utils/schematic-options.d.ts +0 -20
- package/npm_package/schematics/utils/schematic-options.js +0 -89
- package/npm_package/schematics/utils/schematic-options.js.map +0 -1
- package/npm_package/scrolling/index.d.ts +0 -62
- package/npm_package/scrolling-module.d-ud2XrbF8.d.ts +0 -552
- package/npm_package/selection-model.d-C_vvNGP-.d.ts +0 -117
- package/npm_package/stepper/index.d.ts +0 -228
- package/npm_package/style-loader.d-BXZfQZTF.d.ts +0 -21
- package/npm_package/table/index.d.ts +0 -1100
- package/npm_package/testing/index.d.ts +0 -94
- package/npm_package/testing/selenium-webdriver/index.d.ts +0 -150
- package/npm_package/testing/testbed/index.d.ts +0 -157
- package/npm_package/text-field/_index.scss +0 -89
- package/npm_package/text-field/index.d.ts +0 -156
- package/npm_package/text-field-prebuilt.css +0 -1
- package/npm_package/tree/index.d.ts +0 -720
- package/npm_package/tree-key-manager-strategy.d-XB6M79l-.d.ts +0 -116
- package/npm_package/unique-selection-dispatcher.d-DSFqf1MM.d.ts +0 -33
- package/npm_package/view-repeater.d-BKljR8u8.d.ts +0 -89
|
@@ -1,45 +0,0 @@
|
|
|
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.TsconfigParseError = void 0;
|
|
11
|
-
exports.parseTsconfigFile = parseTsconfigFile;
|
|
12
|
-
const ts = require("typescript");
|
|
13
|
-
const virtual_host_1 = require("./virtual-host");
|
|
14
|
-
const path_1 = require("path");
|
|
15
|
-
const diagnostics_1 = require("./diagnostics");
|
|
16
|
-
/** Code of the error raised by TypeScript when a tsconfig doesn't match any files. */
|
|
17
|
-
const NO_INPUTS_ERROR_CODE = 18003;
|
|
18
|
-
/** Class capturing a tsconfig parse error. */
|
|
19
|
-
class TsconfigParseError extends Error {
|
|
20
|
-
}
|
|
21
|
-
exports.TsconfigParseError = TsconfigParseError;
|
|
22
|
-
/**
|
|
23
|
-
* Attempts to parse the specified tsconfig file.
|
|
24
|
-
*
|
|
25
|
-
* @throws {TsconfigParseError} If the tsconfig could not be read or parsed.
|
|
26
|
-
*/
|
|
27
|
-
function parseTsconfigFile(tsconfigPath, fileSystem) {
|
|
28
|
-
if (!fileSystem.fileExists(tsconfigPath)) {
|
|
29
|
-
throw new TsconfigParseError(`Tsconfig cannot not be read: ${tsconfigPath}`);
|
|
30
|
-
}
|
|
31
|
-
const { config, error } = ts.readConfigFile(tsconfigPath, p => fileSystem.read(fileSystem.resolve(p)));
|
|
32
|
-
// If there is a config reading error, we never attempt to parse the config.
|
|
33
|
-
if (error) {
|
|
34
|
-
throw new TsconfigParseError((0, diagnostics_1.formatDiagnostics)([error], fileSystem));
|
|
35
|
-
}
|
|
36
|
-
const parsed = ts.parseJsonConfigFileContent(config, new virtual_host_1.FileSystemHost(fileSystem), (0, path_1.dirname)(tsconfigPath), {});
|
|
37
|
-
// Skip the "No inputs found..." error since we don't want to interrupt the migration if a
|
|
38
|
-
// tsconfig doesn't match a file. This will result in an empty `Program` which is still valid.
|
|
39
|
-
const errors = parsed.errors.filter(diag => diag.code !== NO_INPUTS_ERROR_CODE);
|
|
40
|
-
if (errors.length) {
|
|
41
|
-
throw new TsconfigParseError((0, diagnostics_1.formatDiagnostics)(errors, fileSystem));
|
|
42
|
-
}
|
|
43
|
-
return parsed;
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=parse-tsconfig.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parse-tsconfig.js","sourceRoot":"","sources":["parse-tsconfig.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAmBH,8CAkCC;AAnDD,iCAAiC;AAEjC,iDAA8C;AAC9C,+BAA6B;AAC7B,+CAAgD;AAEhD,sFAAsF;AACtF,MAAM,oBAAoB,G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.
|
|
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
|
-
/** Type that describes a property name with an obtainable text. */
|
|
10
|
-
type PropertyNameWithText = Exclude<ts.PropertyName, ts.ComputedPropertyName>;
|
|
11
|
-
/**
|
|
12
|
-
* Gets the text of the given property name. Returns null if the property
|
|
13
|
-
* name couldn't be determined statically.
|
|
14
|
-
*/
|
|
15
|
-
export declare function getPropertyNameText(node: ts.PropertyName): string | null;
|
|
16
|
-
/** Checks whether the given property name has a text. */
|
|
17
|
-
export declare function hasPropertyNameText(node: ts.PropertyName): node is PropertyNameWithText;
|
|
18
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
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.getPropertyNameText = getPropertyNameText;
|
|
11
|
-
exports.hasPropertyNameText = hasPropertyNameText;
|
|
12
|
-
const ts = require("typescript");
|
|
13
|
-
/**
|
|
14
|
-
* Gets the text of the given property name. Returns null if the property
|
|
15
|
-
* name couldn't be determined statically.
|
|
16
|
-
*/
|
|
17
|
-
function getPropertyNameText(node) {
|
|
18
|
-
if (ts.isIdentifier(node) || ts.isStringLiteralLike(node)) {
|
|
19
|
-
return node.text;
|
|
20
|
-
}
|
|
21
|
-
return null;
|
|
22
|
-
}
|
|
23
|
-
/** Checks whether the given property name has a text. */
|
|
24
|
-
function hasPropertyNameText(node) {
|
|
25
|
-
return ts.isStringLiteral(node) || ts.isNumericLiteral(node) || ts.isIdentifier(node);
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=property-name.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"property-name.js","sourceRoot":"","sources":["property-name.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAWH,kDAKC;AAGD,kDAEC;AAnBD,iCAAiC;AAKjC;;;GAGG;AACH,SAAgB,mBAAmB,CAAC,IAAqB;IACvD,IAAI,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,CAAC;QAC1D,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,yDAAyD;AACzD,SAAgB,mBAAmB,CAAC,IAAqB;IACvD,OAAO,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;AACxF,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
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 } from '../file-system';
|
|
10
|
-
declare module 'typescript' {
|
|
11
|
-
interface FileSystemEntries {
|
|
12
|
-
readonly files: readonly string[];
|
|
13
|
-
readonly directories: readonly string[];
|
|
14
|
-
}
|
|
15
|
-
const matchFiles: undefined | ((path: string, extensions: readonly string[] | undefined, excludes: readonly string[] | undefined, includes: readonly string[] | undefined, useCaseSensitiveFileNames: boolean, currentDirectory: string, depth: number | undefined, getFileSystemEntries: (path: string) => FileSystemEntries, realpath: (path: string) => string, directoryExists: (path: string) => boolean) => string[]);
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Implementation of a TypeScript parse config host that relies fully on
|
|
19
|
-
* a given virtual file system.
|
|
20
|
-
*/
|
|
21
|
-
export declare class FileSystemHost implements ts.ParseConfigHost {
|
|
22
|
-
private _fileSystem;
|
|
23
|
-
useCaseSensitiveFileNames: boolean;
|
|
24
|
-
constructor(_fileSystem: FileSystem);
|
|
25
|
-
fileExists(path: string): boolean;
|
|
26
|
-
readFile(path: string): string | undefined;
|
|
27
|
-
readDirectory(rootDir: string, extensions: string[], excludes: string[] | undefined, includes: string[], depth?: number): string[];
|
|
28
|
-
private _getFileSystemEntries;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Creates a TypeScript compiler host that fully relies fully on the given
|
|
32
|
-
* virtual file system. i.e. no interactions with the working directory.
|
|
33
|
-
*/
|
|
34
|
-
export declare function createFileSystemCompilerHost(options: ts.CompilerOptions, fileSystem: FileSystem): ts.CompilerHost;
|
|
35
|
-
/** Creates a format diagnostic host that works with the given file system. */
|
|
36
|
-
export declare function createFormatDiagnosticHost(fileSystem: FileSystem): ts.FormatDiagnosticsHost;
|
|
@@ -1,71 +0,0 @@
|
|
|
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.FileSystemHost = void 0;
|
|
11
|
-
exports.createFileSystemCompilerHost = createFileSystemCompilerHost;
|
|
12
|
-
exports.createFormatDiagnosticHost = createFormatDiagnosticHost;
|
|
13
|
-
const ts = require("typescript");
|
|
14
|
-
/**
|
|
15
|
-
* Implementation of a TypeScript parse config host that relies fully on
|
|
16
|
-
* a given virtual file system.
|
|
17
|
-
*/
|
|
18
|
-
class FileSystemHost {
|
|
19
|
-
constructor(_fileSystem) {
|
|
20
|
-
this._fileSystem = _fileSystem;
|
|
21
|
-
this.useCaseSensitiveFileNames = ts.sys.useCaseSensitiveFileNames;
|
|
22
|
-
}
|
|
23
|
-
fileExists(path) {
|
|
24
|
-
return this._fileSystem.fileExists(this._fileSystem.resolve(path));
|
|
25
|
-
}
|
|
26
|
-
readFile(path) {
|
|
27
|
-
const content = this._fileSystem.read(this._fileSystem.resolve(path));
|
|
28
|
-
if (content === null) {
|
|
29
|
-
return undefined;
|
|
30
|
-
}
|
|
31
|
-
// Strip BOM as otherwise TSC methods (e.g. "getWidth") will return an offset which
|
|
32
|
-
// which breaks the CLI UpdateRecorder. https://github.com/angular/angular/pull/30719
|
|
33
|
-
return content.replace(/^\uFEFF/, '');
|
|
34
|
-
}
|
|
35
|
-
readDirectory(rootDir, extensions, excludes, includes, depth) {
|
|
36
|
-
if (ts.matchFiles === undefined) {
|
|
37
|
-
throw Error('Unable to read directory in virtual file system host. This means that ' +
|
|
38
|
-
'TypeScript changed its file matching internals.\n\nPlease consider downgrading your ' +
|
|
39
|
-
'TypeScript version, and report an issue in the Angular Components repository.');
|
|
40
|
-
}
|
|
41
|
-
return ts.matchFiles(rootDir, extensions, extensions, includes, this.useCaseSensitiveFileNames, '/', depth, p => this._getFileSystemEntries(p), p => this._fileSystem.resolve(p), p => this._fileSystem.directoryExists(this._fileSystem.resolve(p)));
|
|
42
|
-
}
|
|
43
|
-
_getFileSystemEntries(path) {
|
|
44
|
-
return this._fileSystem.readDirectory(this._fileSystem.resolve(path));
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.FileSystemHost = FileSystemHost;
|
|
48
|
-
/**
|
|
49
|
-
* Creates a TypeScript compiler host that fully relies fully on the given
|
|
50
|
-
* virtual file system. i.e. no interactions with the working directory.
|
|
51
|
-
*/
|
|
52
|
-
function createFileSystemCompilerHost(options, fileSystem) {
|
|
53
|
-
const host = ts.createCompilerHost(options, true);
|
|
54
|
-
const virtualHost = new FileSystemHost(fileSystem);
|
|
55
|
-
host.readFile = virtualHost.readFile.bind(virtualHost);
|
|
56
|
-
host.readDirectory = virtualHost.readDirectory.bind(virtualHost);
|
|
57
|
-
host.fileExists = virtualHost.fileExists.bind(virtualHost);
|
|
58
|
-
host.directoryExists = dirPath => fileSystem.directoryExists(fileSystem.resolve(dirPath));
|
|
59
|
-
host.getCurrentDirectory = () => '/';
|
|
60
|
-
host.getCanonicalFileName = p => fileSystem.resolve(p);
|
|
61
|
-
return host;
|
|
62
|
-
}
|
|
63
|
-
/** Creates a format diagnostic host that works with the given file system. */
|
|
64
|
-
function createFormatDiagnosticHost(fileSystem) {
|
|
65
|
-
return {
|
|
66
|
-
getCanonicalFileName: p => fileSystem.resolve(p),
|
|
67
|
-
getCurrentDirectory: () => '/',
|
|
68
|
-
getNewLine: () => '\n',
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=virtual-host.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"virtual-host.js","sourceRoot":"","sources":["virtual-host.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AA8FH,oEAeC;AAGD,gEAMC;AApHD,iCAAiC;AAgCjC;;;GAGG;AACH,MAAa,cAAc;IAGzB,YAAoB,WAAuB;QAAvB,gBAAW,GAAX,WAAW,CAAY;QAF3C,8BAAyB,GAAG,EAAE,CAAC,GAAG,CAAC,yBAAyB,CAAC;IAEf,CAAC;IAE/C,UAAU,CAAC,IAAY;QACrB,OAAO,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IACrE,CAAC;IAED,QAAQ,CAAC,IAAY;QACnB,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;QACtE,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC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ACvD,IAAI,CAAC,aAAa,GAAG,WAAW,CAAC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACjE,IAAI,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC3D,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1F,IAAI,CAAC,mBAAmB,GAAG,GAAG,EAAE,CAAC,GAAG,CAAC;IACrC,IAAI,CAAC,oBAAoB,GAAG,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAEvD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,8EAA8E;AAC9E,SAAgB,0BAA0B,CAAC,UAAsB;IAC/D,OAAO;QACL,oBAAoB,EAAE,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;QAChD,mBAAmB,EAAE,GAAG,EAAE,CAAC,GAAG;QAC9B,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI;KACvB,CAAC;AACJ,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
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 { TargetVersion } from './target-version';
|
|
9
|
-
export type VersionChanges<T> = {
|
|
10
|
-
[target in TargetVersion]?: ReadableChange<T>[];
|
|
11
|
-
};
|
|
12
|
-
export type ReadableChange<T> = {
|
|
13
|
-
pr: string;
|
|
14
|
-
changes: T[];
|
|
15
|
-
};
|
|
16
|
-
/** Conditional type that unwraps the value of a version changes type. */
|
|
17
|
-
export type ValueOfChanges<T> = T extends VersionChanges<infer X> ? X : null;
|
|
18
|
-
/**
|
|
19
|
-
* Gets the changes for a given target version from the specified version changes object.
|
|
20
|
-
*
|
|
21
|
-
* For readability and a good overview of breaking changes, the version change data always
|
|
22
|
-
* includes the related Pull Request link. Since this data is not needed when performing the
|
|
23
|
-
* upgrade, this unused data can be removed and the changes data can be flattened into an
|
|
24
|
-
* easy iterable array.
|
|
25
|
-
*/
|
|
26
|
-
export declare function getChangesForTarget<T>(target: TargetVersion, data: VersionChanges<T>): T[];
|
|
27
|
-
/**
|
|
28
|
-
* Gets all changes from the specified version changes object. This is helpful in case a migration
|
|
29
|
-
* rule does not distinguish data based on the target version, but for readability the
|
|
30
|
-
* upgrade data is separated for each target version.
|
|
31
|
-
*/
|
|
32
|
-
export declare function getAllChanges<T>(data: VersionChanges<T>): T[];
|
|
@@ -1,38 +0,0 @@
|
|
|
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.getChangesForTarget = getChangesForTarget;
|
|
11
|
-
exports.getAllChanges = getAllChanges;
|
|
12
|
-
const target_version_1 = require("./target-version");
|
|
13
|
-
/**
|
|
14
|
-
* Gets the changes for a given target version from the specified version changes object.
|
|
15
|
-
*
|
|
16
|
-
* For readability and a good overview of breaking changes, the version change data always
|
|
17
|
-
* includes the related Pull Request link. Since this data is not needed when performing the
|
|
18
|
-
* upgrade, this unused data can be removed and the changes data can be flattened into an
|
|
19
|
-
* easy iterable array.
|
|
20
|
-
*/
|
|
21
|
-
function getChangesForTarget(target, data) {
|
|
22
|
-
if (!data) {
|
|
23
|
-
const version = target_version_1.TargetVersion[target];
|
|
24
|
-
throw new Error(`No data could be found for target version: ${version}`);
|
|
25
|
-
}
|
|
26
|
-
return (data[target] || []).reduce((result, prData) => result.concat(prData.changes), []);
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Gets all changes from the specified version changes object. This is helpful in case a migration
|
|
30
|
-
* rule does not distinguish data based on the target version, but for readability the
|
|
31
|
-
* upgrade data is separated for each target version.
|
|
32
|
-
*/
|
|
33
|
-
function getAllChanges(data) {
|
|
34
|
-
return Object.keys(data)
|
|
35
|
-
.map(targetVersion => getChangesForTarget(targetVersion, data))
|
|
36
|
-
.reduce((result, versionData) => result.concat(versionData), []);
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=version-changes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version-changes.js","sourceRoot":"","sources":["version-changes.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAwBH,kDAOC;AAOD,sCAIC;AAxCD,qDAA+C;AAc/C;;;;;;;GAOG;AACH,SAAgB,mBAAmB,CAAI,MAAqB,EAAE,IAAuB;IACnF,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,OAAO,GAAI,8BAAwC,CAAC,MAAM,CAAC,CAAC;QAClE,MAAM,IAAI,KAAK,CAAC,8CAA8C,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,EAAS,CAAC,CAAC;AACnG,CAAC;AAED;;;;GAIG;AACH,SAAgB,aAAa,CAAI,IAAuB;IACtD,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;SACrB,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC,mBAAmB,CAAC,aAA8B,EAAE,IAAI,CAAC,CAAC;SAC/E,MAAM,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC;AACrE,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
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 { Tree } from '@angular-devkit/schematics';
|
|
9
|
-
/**
|
|
10
|
-
* Whether the Angular module in the given path imports the specified module class name.
|
|
11
|
-
*/
|
|
12
|
-
export declare function hasNgModuleImport(tree: Tree, modulePath: string, className: string): boolean;
|
|
@@ -1,82 +0,0 @@
|
|
|
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.hasNgModuleImport = hasNgModuleImport;
|
|
11
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
12
|
-
const ts = require("typescript");
|
|
13
|
-
/**
|
|
14
|
-
* Whether the Angular module in the given path imports the specified module class name.
|
|
15
|
-
*/
|
|
16
|
-
function hasNgModuleImport(tree, modulePath, className) {
|
|
17
|
-
const moduleFileContent = tree.read(modulePath);
|
|
18
|
-
if (!moduleFileContent) {
|
|
19
|
-
throw new schematics_1.SchematicsException(`Could not read Angular module file: ${modulePath}`);
|
|
20
|
-
}
|
|
21
|
-
const parsedFile = ts.createSourceFile(modulePath, moduleFileContent.toString(), ts.ScriptTarget.Latest, true);
|
|
22
|
-
const ngModuleMetadata = findNgModuleMetadata(parsedFile);
|
|
23
|
-
if (!ngModuleMetadata) {
|
|
24
|
-
throw new schematics_1.SchematicsException(`Could not find NgModule declaration inside: "${modulePath}"`);
|
|
25
|
-
}
|
|
26
|
-
for (let property of ngModuleMetadata.properties) {
|
|
27
|
-
if (!ts.isPropertyAssignment(property) ||
|
|
28
|
-
property.name.getText() !== 'imports' ||
|
|
29
|
-
!ts.isArrayLiteralExpression(property.initializer)) {
|
|
30
|
-
continue;
|
|
31
|
-
}
|
|
32
|
-
if (property.initializer.elements.some(element => element.getText() === className)) {
|
|
33
|
-
return true;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return false;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Resolves the last identifier that is part of the given expression. This helps resolving
|
|
40
|
-
* identifiers of nested property access expressions (e.g. myNamespace.core.NgModule).
|
|
41
|
-
*/
|
|
42
|
-
function resolveIdentifierOfExpression(expression) {
|
|
43
|
-
if (ts.isIdentifier(expression)) {
|
|
44
|
-
return expression;
|
|
45
|
-
}
|
|
46
|
-
else if (ts.isPropertyAccessExpression(expression) && ts.isIdentifier(expression.name)) {
|
|
47
|
-
return expression.name;
|
|
48
|
-
}
|
|
49
|
-
return null;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Finds a NgModule declaration within the specified TypeScript node and returns the
|
|
53
|
-
* corresponding metadata for it. This function searches breadth first because
|
|
54
|
-
* NgModule's are usually not nested within other expressions or declarations.
|
|
55
|
-
*/
|
|
56
|
-
function findNgModuleMetadata(rootNode) {
|
|
57
|
-
// Add immediate child nodes of the root node to the queue.
|
|
58
|
-
const nodeQueue = [...rootNode.getChildren()];
|
|
59
|
-
while (nodeQueue.length) {
|
|
60
|
-
const node = nodeQueue.shift();
|
|
61
|
-
if (ts.isDecorator(node) &&
|
|
62
|
-
ts.isCallExpression(node.expression) &&
|
|
63
|
-
isNgModuleCallExpression(node.expression)) {
|
|
64
|
-
return node.expression.arguments[0];
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
nodeQueue.push(...node.getChildren());
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return null;
|
|
71
|
-
}
|
|
72
|
-
/** Whether the specified call expression is referring to a NgModule definition. */
|
|
73
|
-
function isNgModuleCallExpression(callExpression) {
|
|
74
|
-
if (!callExpression.arguments.length ||
|
|
75
|
-
!ts.isObjectLiteralExpression(callExpression.arguments[0])) {
|
|
76
|
-
return false;
|
|
77
|
-
}
|
|
78
|
-
// The `NgModule` call expression name is never referring to a `PrivateIdentifier`.
|
|
79
|
-
const decoratorIdentifier = resolveIdentifierOfExpression(callExpression.expression);
|
|
80
|
-
return decoratorIdentifier ? decoratorIdentifier.text === 'NgModule' : false;
|
|
81
|
-
}
|
|
82
|
-
//# sourceMappingURL=ng-module-imports.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ng-module-imports.js","sourceRoot":"","sources":["ng-module-imports.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAQH,8CAkCC;AAxCD,2DAAqE;AACrE,iCAAiC;AAEjC;;GAEG;AACH,SAAgB,iBAAiB,CAAC,IAAU,EAAE,UAAkB,EAAE,SAAiB;IACjF,MAAM,iBAAiB,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAEhD,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACvB,MAAM,IAAI,gCAAmB,CAAC,uCAAuC,UAAU,EAAE,CAAC,CAAC;IACrF,CAAC;IAED,MAAM,UAAU,GAAG,EAAE,CAAC,gBAAgB,CACpC,UAAU,EACV,iBAAiB,CAAC,QAAQ,EAAE,EAC5B,EAAE,CAAC,YAAY,CAAC,MAAM,EACtB,IAAI,CACL,CAAC;IACF,MAAM,gBAAgB,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;IAE1D,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACtB,MAAM,IAAI,gCAAmB,CAAC,gDAAgD,UAAU,GAAG,CAAC,CAAC;IAC/F,CAAC;IAED,KAAK,IAAI,QAAQ,IAAI,gBA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AS,CAAC,CAAC,CAA+B,CAAC;QACpE,CAAC;aAAM,CAAC;YACN,SAAS,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;QACxC,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED,mFAAmF;AACnF,SAAS,wBAAwB,CAAC,cAAiC;IACjE,IACE,CAAC,cAAc,CAAC,SAAS,CAAC,MAAM;QAChC,CAAC,EAAE,CAAC,yBAAyB,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAC1D,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,mFAAmF;IACnF,MAAM,mBAAmB,GAAG,6BAA6B,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IACrF,OAAO,mBAAmB,CAAC,CAAC,CAAC,mBAAmB,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC;AAC/E,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
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 { Tree } from '@angular-devkit/schematics';
|
|
9
|
-
import { Schema as ComponentOptions } from '@schematics/angular/component/schema';
|
|
10
|
-
import { workspaces } from '@angular-devkit/core';
|
|
11
|
-
import * as ts from 'typescript';
|
|
12
|
-
/** Reads file given path and returns TypeScript source file. */
|
|
13
|
-
export declare function parseSourceFile(host: Tree, path: string): ts.SourceFile;
|
|
14
|
-
/** Import and add module to root app module. */
|
|
15
|
-
export declare function addModuleImportToRootModule(host: Tree, moduleName: string, src: string, project: workspaces.ProjectDefinition): void;
|
|
16
|
-
/**
|
|
17
|
-
* Import and add module to specific module path.
|
|
18
|
-
* @param host the tree we are updating
|
|
19
|
-
* @param modulePath src location of the module to import
|
|
20
|
-
* @param moduleName name of module to import
|
|
21
|
-
* @param src src location to import
|
|
22
|
-
*/
|
|
23
|
-
export declare function addModuleImportToModule(host: Tree, modulePath: string, moduleName: string, src: string): void;
|
|
24
|
-
/** Wraps the internal find module from options with undefined path handling */
|
|
25
|
-
export declare function findModuleFromOptions(host: Tree, options: ComponentOptions): Promise<string | undefined>;
|
|
@@ -1,79 +0,0 @@
|
|
|
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
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
10
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
11
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
12
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
13
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
14
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
15
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.parseSourceFile = parseSourceFile;
|
|
20
|
-
exports.addModuleImportToRootModule = addModuleImportToRootModule;
|
|
21
|
-
exports.addModuleImportToModule = addModuleImportToModule;
|
|
22
|
-
exports.findModuleFromOptions = findModuleFromOptions;
|
|
23
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
24
|
-
const change_1 = require("@schematics/angular/utility/change");
|
|
25
|
-
const workspace_1 = require("@schematics/angular/utility/workspace");
|
|
26
|
-
const find_module_1 = require("@schematics/angular/utility/find-module");
|
|
27
|
-
const ast_utils_1 = require("@schematics/angular/utility/ast-utils");
|
|
28
|
-
const ng_ast_utils_1 = require("@schematics/angular/utility/ng-ast-utils");
|
|
29
|
-
const ts = require("typescript");
|
|
30
|
-
const project_main_file_1 = require("./project-main-file");
|
|
31
|
-
/** Reads file given path and returns TypeScript source file. */
|
|
32
|
-
function parseSourceFile(host, path) {
|
|
33
|
-
const buffer = host.read(path);
|
|
34
|
-
if (!buffer) {
|
|
35
|
-
throw new schematics_1.SchematicsException(`Could not find file for path: ${path}`);
|
|
36
|
-
}
|
|
37
|
-
return ts.createSourceFile(path, buffer.toString(), ts.ScriptTarget.Latest, true);
|
|
38
|
-
}
|
|
39
|
-
/** Import and add module to root app module. */
|
|
40
|
-
function addModuleImportToRootModule(host, moduleName, src, project) {
|
|
41
|
-
const modulePath = (0, ng_ast_utils_1.getAppModulePath)(host, (0, project_main_file_1.getProjectMainFile)(project));
|
|
42
|
-
addModuleImportToModule(host, modulePath, moduleName, src);
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Import and add module to specific module path.
|
|
46
|
-
* @param host the tree we are updating
|
|
47
|
-
* @param modulePath src location of the module to import
|
|
48
|
-
* @param moduleName name of module to import
|
|
49
|
-
* @param src src location to import
|
|
50
|
-
*/
|
|
51
|
-
function addModuleImportToModule(host, modulePath, moduleName, src) {
|
|
52
|
-
const moduleSource = parseSourceFile(host, modulePath);
|
|
53
|
-
if (!moduleSource) {
|
|
54
|
-
throw new schematics_1.SchematicsException(`Module not found: ${modulePath}`);
|
|
55
|
-
}
|
|
56
|
-
const changes = (0, ast_utils_1.addImportToModule)(moduleSource, modulePath, moduleName, src);
|
|
57
|
-
const recorder = host.beginUpdate(modulePath);
|
|
58
|
-
changes.forEach(change => {
|
|
59
|
-
if (change instanceof change_1.InsertChange) {
|
|
60
|
-
recorder.insertLeft(change.pos, change.toAdd);
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
host.commitUpdate(recorder);
|
|
64
|
-
}
|
|
65
|
-
/** Wraps the internal find module from options with undefined path handling */
|
|
66
|
-
function findModuleFromOptions(host, options) {
|
|
67
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
-
const workspace = yield (0, workspace_1.getWorkspace)(host);
|
|
69
|
-
if (!options.project) {
|
|
70
|
-
options.project = Array.from(workspace.projects.keys())[0];
|
|
71
|
-
}
|
|
72
|
-
const project = workspace.projects.get(options.project);
|
|
73
|
-
if (options.path === undefined) {
|
|
74
|
-
options.path = `/${project.root}/src/app`;
|
|
75
|
-
}
|
|
76
|
-
return (0, find_module_1.findModuleFromOptions)(host, options);
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
//# sourceMappingURL=ast.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ast.js","sourceRoot":"","sources":["ast.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;AAcH,0CAMC;AAGD,kEAQC;AASD,0DAsBC;AAGD,sDAiBC;AAhFD,2DAAqE;AAErE,+DAAgE;AAChE,qEAAmE;AACnE,yEAAoG;AACpG,qEAAwE;AACxE,2EAA0E;AAE1E,iCAAiC;AACjC,2DAAuD;AAEvD,gEAAgE;AAChE,SAAgB,eAAe,CAAC,IAAU,EAAE,IAAY;IACtD,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,gCAAmB,CAAC,iCAAiC,IAAI,EAAE,CAAC,CAAC;IACzE,CAAC;IACD,OAAO,EAAE,CAAC,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AACpF,CAAC;AAED,gDAAgD;AAChD,SAAgB,2BAA2B,CACzC,IAAU,EACV,UAAkB,EAClB,GAAW,EACX,OAAqC;IAErC,MAAM,UA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AAQ,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAE,CAAC;QAEzD,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;YAC/B,OAAO,CAAC,IAAI,GAAG,IAAI,OAAO,CAAC,IAAI,UAAU,CAAC;QAC5C,CAAC;QAED,OAAO,IAAA,mCAAkB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC3C,CAAC;CAAA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
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 { Rule } from '@angular-devkit/schematics';
|
|
9
|
-
import { Schema as ComponentOptions } from '@schematics/angular/component/schema';
|
|
10
|
-
/**
|
|
11
|
-
* Rule that copies and interpolates the files that belong to this schematic context. Additionally
|
|
12
|
-
* a list of file paths can be passed to this rule in order to expose them inside the EJS
|
|
13
|
-
* template context.
|
|
14
|
-
*
|
|
15
|
-
* This allows inlining the external template or stylesheet files in EJS without having
|
|
16
|
-
* to manually duplicate the file content.
|
|
17
|
-
*/
|
|
18
|
-
export declare function buildComponent(options: ComponentOptions, additionalFiles?: {
|
|
19
|
-
[key: string]: string;
|
|
20
|
-
}): Rule;
|