@angular/cdk 8.0.2 → 8.1.0
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/a11y/typings/aria-describer/aria-describer.d.ts +4 -3
- package/a11y/typings/index.metadata.json +1 -1
- package/bundles/cdk-a11y.umd.js +42 -10
- package/bundles/cdk-a11y.umd.js.map +1 -1
- package/bundles/cdk-a11y.umd.min.js +1 -1
- package/bundles/cdk-a11y.umd.min.js.map +1 -1
- package/bundles/cdk-drag-drop.umd.js +511 -81
- package/bundles/cdk-drag-drop.umd.js.map +1 -1
- package/bundles/cdk-drag-drop.umd.min.js +2 -2
- package/bundles/cdk-drag-drop.umd.min.js.map +1 -1
- package/bundles/cdk-overlay.umd.js +15 -13
- package/bundles/cdk-overlay.umd.js.map +1 -1
- package/bundles/cdk-overlay.umd.min.js +2 -2
- package/bundles/cdk-overlay.umd.min.js.map +1 -1
- package/bundles/cdk-tree.umd.js +8 -6
- package/bundles/cdk-tree.umd.js.map +1 -1
- package/bundles/cdk-tree.umd.min.js +1 -1
- package/bundles/cdk-tree.umd.min.js.map +1 -1
- package/bundles/cdk.umd.js +1 -1
- package/bundles/cdk.umd.js.map +1 -1
- package/bundles/cdk.umd.min.js +1 -1
- package/bundles/cdk.umd.min.js.map +1 -1
- package/drag-drop/typings/directives/drag.d.ts +1 -1
- package/drag-drop/typings/directives/drop-list.d.ts +2 -0
- package/drag-drop/typings/drag-drop-registry.d.ts +2 -0
- package/drag-drop/typings/drag-ref.d.ts +10 -1
- package/drag-drop/typings/drop-list-ref.d.ts +59 -3
- package/drag-drop/typings/index.metadata.json +1 -1
- package/esm2015/a11y.js +35 -10
- package/esm2015/a11y.js.map +1 -1
- package/esm2015/cdk.js +1 -1
- package/esm2015/cdk.js.map +1 -1
- package/esm2015/drag-drop.js +446 -79
- package/esm2015/drag-drop.js.map +1 -1
- package/esm2015/overlay.js +14 -12
- package/esm2015/overlay.js.map +1 -1
- package/esm2015/tree.js +7 -6
- package/esm2015/tree.js.map +1 -1
- package/esm5/a11y.es5.js +42 -10
- package/esm5/a11y.es5.js.map +1 -1
- package/esm5/cdk.es5.js +1 -1
- package/esm5/cdk.es5.js.map +1 -1
- package/esm5/drag-drop.es5.js +509 -79
- package/esm5/drag-drop.es5.js.map +1 -1
- package/esm5/overlay.es5.js +15 -13
- package/esm5/overlay.es5.js.map +1 -1
- package/esm5/tree.es5.js +8 -6
- package/esm5/tree.es5.js.map +1 -1
- package/package.json +4 -4
- package/schematics/index.d.ts +1 -0
- package/schematics/index.js +1 -0
- package/schematics/index.js.map +1 -1
- package/schematics/ng-update/data/attribute-selectors.d.ts +1 -1
- package/schematics/ng-update/data/attribute-selectors.js +5 -13
- package/schematics/ng-update/data/attribute-selectors.js.map +1 -1
- package/schematics/ng-update/data/class-names.d.ts +1 -1
- package/schematics/ng-update/data/class-names.js +5 -21
- package/schematics/ng-update/data/class-names.js.map +1 -1
- package/schematics/ng-update/data/constructor-checks.d.ts +1 -1
- package/schematics/ng-update/data/constructor-checks.js +3 -5
- package/schematics/ng-update/data/constructor-checks.js.map +1 -1
- package/schematics/ng-update/data/css-selectors.d.ts +1 -1
- package/schematics/ng-update/data/css-selectors.js +1 -1
- package/schematics/ng-update/data/css-selectors.js.map +1 -1
- package/schematics/ng-update/data/element-selectors.d.ts +1 -1
- package/schematics/ng-update/data/element-selectors.js +1 -1
- package/schematics/ng-update/data/element-selectors.js.map +1 -1
- package/schematics/ng-update/data/input-names.d.ts +1 -1
- package/schematics/ng-update/data/input-names.js +13 -37
- package/schematics/ng-update/data/input-names.js.map +1 -1
- package/schematics/ng-update/data/method-call-checks.d.ts +1 -1
- package/schematics/ng-update/data/method-call-checks.js +6 -15
- package/schematics/ng-update/data/method-call-checks.js.map +1 -1
- package/schematics/ng-update/data/output-names.d.ts +1 -1
- package/schematics/ng-update/data/output-names.js +1 -1
- package/schematics/ng-update/data/output-names.js.map +1 -1
- package/schematics/ng-update/data/property-names.d.ts +1 -1
- package/schematics/ng-update/data/property-names.js +19 -59
- package/schematics/ng-update/data/property-names.js.map +1 -1
- package/schematics/ng-update/html-parsing/elements.js.map +1 -1
- package/schematics/ng-update/index.d.ts +0 -2
- package/schematics/ng-update/index.js +13 -24
- package/schematics/ng-update/index.js.map +1 -1
- package/schematics/ng-update/public-api.d.ts +0 -5
- package/schematics/ng-update/public-api.js +0 -5
- package/schematics/ng-update/public-api.js.map +1 -1
- package/schematics/ng-update/typescript/base-types.js.map +1 -1
- package/schematics/ng-update/typescript/module-specifiers.js.map +1 -1
- package/schematics/ng-update/upgrade-data.d.ts +5 -30
- package/schematics/ng-update/upgrade-data.js +4 -34
- package/schematics/ng-update/upgrade-data.js.map +1 -1
- package/schematics/ng-update/upgrade-rules/attribute-selectors-rule.d.ts +25 -0
- package/schematics/ng-update/upgrade-rules/attribute-selectors-rule.js +66 -0
- package/schematics/ng-update/upgrade-rules/attribute-selectors-rule.js.map +1 -0
- package/schematics/ng-update/upgrade-rules/class-inheritance-rule.d.ts +26 -0
- package/schematics/ng-update/upgrade-rules/{class-inheritance/classInheritanceCheckRule.js → class-inheritance-rule.js} +24 -20
- package/schematics/ng-update/upgrade-rules/class-inheritance-rule.js.map +1 -0
- package/{typings/schematics/ng-update/upgrade-rules/class-names/classNamesIdentifierRule.d.ts → schematics/ng-update/upgrade-rules/class-names-rule.d.ts} +7 -7
- package/schematics/ng-update/upgrade-rules/{class-names/classNamesIdentifierRule.js → class-names-rule.js} +19 -24
- package/schematics/ng-update/upgrade-rules/class-names-rule.js.map +1 -0
- package/schematics/ng-update/upgrade-rules/constructor-signature-rule.d.ts +29 -0
- package/schematics/ng-update/upgrade-rules/constructor-signature-rule.js +134 -0
- package/schematics/ng-update/upgrade-rules/constructor-signature-rule.js.map +1 -0
- package/schematics/ng-update/upgrade-rules/css-selectors-rule.d.ts +25 -0
- package/schematics/ng-update/upgrade-rules/css-selectors-rule.js +73 -0
- package/schematics/ng-update/upgrade-rules/css-selectors-rule.js.map +1 -0
- package/schematics/ng-update/upgrade-rules/element-selectors-rule.d.ts +25 -0
- package/schematics/ng-update/upgrade-rules/element-selectors-rule.js +64 -0
- package/schematics/ng-update/upgrade-rules/element-selectors-rule.js.map +1 -0
- package/schematics/ng-update/upgrade-rules/index.d.ts +13 -4
- package/schematics/ng-update/upgrade-rules/index.js +49 -29
- package/schematics/ng-update/upgrade-rules/index.js.map +1 -1
- package/schematics/ng-update/upgrade-rules/input-names-rule.d.ts +26 -0
- package/schematics/ng-update/upgrade-rules/input-names-rule.js +59 -0
- package/schematics/ng-update/upgrade-rules/input-names-rule.js.map +1 -0
- package/{typings/schematics/ng-update/upgrade-rules/signature-check/methodCallsCheckRule.d.ts → schematics/ng-update/upgrade-rules/method-call-arguments-rule.d.ts} +8 -9
- package/schematics/ng-update/upgrade-rules/method-call-arguments-rule.js +60 -0
- package/schematics/ng-update/upgrade-rules/method-call-arguments-rule.js.map +1 -0
- package/schematics/ng-update/upgrade-rules/misc-template-rule.d.ts +18 -0
- package/schematics/ng-update/upgrade-rules/misc-template-rule.js +37 -0
- package/schematics/ng-update/upgrade-rules/misc-template-rule.js.map +1 -0
- package/schematics/ng-update/upgrade-rules/output-names-rule.d.ts +22 -0
- package/schematics/ng-update/upgrade-rules/output-names-rule.js +46 -0
- package/schematics/ng-update/upgrade-rules/output-names-rule.js.map +1 -0
- package/schematics/ng-update/upgrade-rules/property-names-rule.d.ts +22 -0
- package/schematics/ng-update/upgrade-rules/property-names-rule.js +46 -0
- package/schematics/ng-update/upgrade-rules/property-names-rule.js.map +1 -0
- package/schematics/tsconfig.tsbuildinfo +2895 -3608
- package/schematics/update-tool/component-resource-collector.d.ts +41 -0
- package/schematics/update-tool/component-resource-collector.js +141 -0
- package/schematics/update-tool/component-resource-collector.js.map +1 -0
- package/schematics/update-tool/index.d.ts +13 -0
- package/schematics/update-tool/index.js +117 -0
- package/schematics/update-tool/index.js.map +1 -0
- package/schematics/update-tool/migration-rule.d.ts +45 -0
- package/schematics/update-tool/migration-rule.js +50 -0
- package/schematics/update-tool/migration-rule.js.map +1 -0
- package/schematics/update-tool/public-api.d.ts +12 -0
- package/schematics/update-tool/public-api.js +18 -0
- package/schematics/update-tool/public-api.js.map +1 -0
- package/schematics/{ng-update → update-tool}/target-version.d.ts +3 -3
- package/schematics/{ng-update → update-tool}/target-version.js +3 -3
- package/schematics/update-tool/target-version.js.map +1 -0
- package/schematics/update-tool/utils/decorators.d.ts +23 -0
- package/schematics/update-tool/utils/decorators.js +37 -0
- package/schematics/update-tool/utils/decorators.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 +15 -0
- package/schematics/update-tool/utils/imports.js +35 -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 +9 -0
- package/schematics/update-tool/utils/parse-tsconfig.js +22 -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/version-changes.d.ts +32 -0
- package/schematics/update-tool/version-changes.js +41 -0
- package/schematics/update-tool/version-changes.js.map +1 -0
- package/schematics/{ng-update/upgrade-rules → utils}/project-tsconfig-paths.d.ts +4 -1
- package/schematics/{ng-update/upgrade-rules → utils}/project-tsconfig-paths.js +31 -20
- package/schematics/utils/project-tsconfig-paths.js.map +1 -0
- package/typings/a11y/aria-describer/aria-describer.d.ts +4 -3
- package/typings/a11y/index.metadata.json +1 -1
- package/typings/drag-drop/directives/drag.d.ts +1 -1
- package/typings/drag-drop/directives/drop-list.d.ts +2 -0
- package/typings/drag-drop/drag-drop-registry.d.ts +2 -0
- package/typings/drag-drop/drag-ref.d.ts +10 -1
- package/typings/drag-drop/drop-list-ref.d.ts +59 -3
- package/typings/drag-drop/index.metadata.json +1 -1
- package/typings/esm5/a11y/aria-describer/aria-describer.d.ts +4 -3
- package/typings/esm5/a11y/index.metadata.json +1 -1
- package/typings/esm5/drag-drop/directives/drag.d.ts +1 -1
- package/typings/esm5/drag-drop/directives/drop-list.d.ts +2 -0
- package/typings/esm5/drag-drop/drag-drop-registry.d.ts +2 -0
- package/typings/esm5/drag-drop/drag-ref.d.ts +10 -1
- package/typings/esm5/drag-drop/drop-list-ref.d.ts +59 -3
- package/typings/esm5/drag-drop/index.metadata.json +1 -1
- package/typings/esm5/index.metadata.json +1 -1
- package/typings/index.metadata.json +1 -1
- package/typings/schematics/index.d.ts +1 -0
- package/typings/schematics/ng-update/data/attribute-selectors.d.ts +1 -1
- package/typings/schematics/ng-update/data/class-names.d.ts +1 -1
- package/typings/schematics/ng-update/data/constructor-checks.d.ts +1 -1
- package/typings/schematics/ng-update/data/css-selectors.d.ts +1 -1
- package/typings/schematics/ng-update/data/element-selectors.d.ts +1 -1
- package/typings/schematics/ng-update/data/input-names.d.ts +1 -1
- package/typings/schematics/ng-update/data/method-call-checks.d.ts +1 -1
- package/typings/schematics/ng-update/data/output-names.d.ts +1 -1
- package/typings/schematics/ng-update/data/property-names.d.ts +1 -1
- package/typings/schematics/ng-update/index.d.ts +0 -2
- package/typings/schematics/ng-update/public-api.d.ts +0 -5
- package/typings/schematics/ng-update/upgrade-data.d.ts +5 -30
- package/typings/schematics/ng-update/upgrade-rules/attribute-selectors-rule.d.ts +25 -0
- package/typings/schematics/ng-update/upgrade-rules/class-inheritance-rule.d.ts +26 -0
- package/{schematics/ng-update/upgrade-rules/class-names/classNamesIdentifierRule.d.ts → typings/schematics/ng-update/upgrade-rules/class-names-rule.d.ts} +7 -7
- package/typings/schematics/ng-update/upgrade-rules/constructor-signature-rule.d.ts +29 -0
- package/typings/schematics/ng-update/upgrade-rules/css-selectors-rule.d.ts +25 -0
- package/typings/schematics/ng-update/upgrade-rules/element-selectors-rule.d.ts +25 -0
- package/typings/schematics/ng-update/upgrade-rules/index.d.ts +13 -4
- package/typings/schematics/ng-update/upgrade-rules/input-names-rule.d.ts +26 -0
- package/{schematics/ng-update/upgrade-rules/signature-check/methodCallsCheckRule.d.ts → typings/schematics/ng-update/upgrade-rules/method-call-arguments-rule.d.ts} +8 -9
- package/typings/schematics/ng-update/upgrade-rules/misc-template-rule.d.ts +18 -0
- package/typings/schematics/ng-update/upgrade-rules/output-names-rule.d.ts +22 -0
- package/typings/schematics/ng-update/upgrade-rules/property-names-rule.d.ts +22 -0
- package/typings/schematics/update-tool/component-resource-collector.d.ts +41 -0
- package/typings/schematics/update-tool/index.d.ts +13 -0
- package/typings/schematics/update-tool/migration-rule.d.ts +45 -0
- package/typings/schematics/update-tool/public-api.d.ts +12 -0
- package/typings/schematics/{ng-update → update-tool}/target-version.d.ts +3 -3
- package/typings/schematics/update-tool/utils/decorators.d.ts +23 -0
- package/typings/schematics/update-tool/utils/functions.d.ts +14 -0
- package/typings/schematics/update-tool/utils/imports.d.ts +15 -0
- package/typings/schematics/update-tool/utils/line-mappings.d.ts +21 -0
- package/typings/schematics/update-tool/utils/parse-tsconfig.d.ts +9 -0
- package/typings/schematics/update-tool/utils/property-name.d.ts +18 -0
- package/typings/schematics/update-tool/version-changes.d.ts +32 -0
- package/typings/schematics/{ng-update/upgrade-rules → utils}/project-tsconfig-paths.d.ts +4 -1
- package/schematics/ng-update/target-version.js.map +0 -1
- package/schematics/ng-update/tslint/component-file.d.ts +0 -14
- package/schematics/ng-update/tslint/component-file.js +0 -31
- package/schematics/ng-update/tslint/component-file.js.map +0 -1
- package/schematics/ng-update/tslint/component-walker.d.ts +0 -47
- package/schematics/ng-update/tslint/component-walker.js +0 -142
- package/schematics/ng-update/tslint/component-walker.js.map +0 -1
- package/schematics/ng-update/tslint/external-failure-walker.d.ts +0 -25
- package/schematics/ng-update/tslint/external-failure-walker.js +0 -38
- package/schematics/ng-update/tslint/external-failure-walker.js.map +0 -1
- package/schematics/ng-update/upgrade-rules/attribute-selectors/attributeSelectorsStringLiteralRule.d.ts +0 -16
- package/schematics/ng-update/upgrade-rules/attribute-selectors/attributeSelectorsStringLiteralRule.js +0 -49
- package/schematics/ng-update/upgrade-rules/attribute-selectors/attributeSelectorsStringLiteralRule.js.map +0 -1
- package/schematics/ng-update/upgrade-rules/attribute-selectors/attributeSelectorsStylesheetRule.d.ts +0 -31
- package/schematics/ng-update/upgrade-rules/attribute-selectors/attributeSelectorsStylesheetRule.js +0 -62
- package/schematics/ng-update/upgrade-rules/attribute-selectors/attributeSelectorsStylesheetRule.js.map +0 -1
- package/schematics/ng-update/upgrade-rules/attribute-selectors/attributeSelectorsTemplateRule.d.ts +0 -30
- package/schematics/ng-update/upgrade-rules/attribute-selectors/attributeSelectorsTemplateRule.js +0 -59
- package/schematics/ng-update/upgrade-rules/attribute-selectors/attributeSelectorsTemplateRule.js.map +0 -1
- package/schematics/ng-update/upgrade-rules/class-inheritance/classInheritanceCheckRule.d.ts +0 -26
- package/schematics/ng-update/upgrade-rules/class-inheritance/classInheritanceCheckRule.js.map +0 -1
- package/schematics/ng-update/upgrade-rules/class-names/classNamesIdentifierRule.js.map +0 -1
- package/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsStringLiteralRule.d.ts +0 -24
- package/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsStringLiteralRule.js +0 -53
- package/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsStringLiteralRule.js.map +0 -1
- package/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsStylesheetRule.d.ts +0 -31
- package/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsStylesheetRule.js +0 -63
- package/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsStylesheetRule.js.map +0 -1
- package/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsTemplateRule.d.ts +0 -30
- package/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsTemplateRule.js +0 -62
- package/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsTemplateRule.js.map +0 -1
- package/schematics/ng-update/upgrade-rules/element-selectors/elementSelectorsStringLiteralRule.d.ts +0 -24
- package/schematics/ng-update/upgrade-rules/element-selectors/elementSelectorsStringLiteralRule.js +0 -50
- package/schematics/ng-update/upgrade-rules/element-selectors/elementSelectorsStringLiteralRule.js.map +0 -1
- package/schematics/ng-update/upgrade-rules/element-selectors/elementSelectorsStylesheetRule.d.ts +0 -31
- package/schematics/ng-update/upgrade-rules/element-selectors/elementSelectorsStylesheetRule.js +0 -60
- package/schematics/ng-update/upgrade-rules/element-selectors/elementSelectorsStylesheetRule.js.map +0 -1
- package/schematics/ng-update/upgrade-rules/element-selectors/elementSelectorsTemplateRule.d.ts +0 -30
- package/schematics/ng-update/upgrade-rules/element-selectors/elementSelectorsTemplateRule.js +0 -59
- package/schematics/ng-update/upgrade-rules/element-selectors/elementSelectorsTemplateRule.js.map +0 -1
- package/schematics/ng-update/upgrade-rules/input-names/inputNamesStylesheetRule.d.ts +0 -36
- package/schematics/ng-update/upgrade-rules/input-names/inputNamesStylesheetRule.js +0 -67
- package/schematics/ng-update/upgrade-rules/input-names/inputNamesStylesheetRule.js.map +0 -1
- package/schematics/ng-update/upgrade-rules/input-names/inputNamesTemplateRule.d.ts +0 -30
- package/schematics/ng-update/upgrade-rules/input-names/inputNamesTemplateRule.js +0 -67
- package/schematics/ng-update/upgrade-rules/input-names/inputNamesTemplateRule.js.map +0 -1
- package/schematics/ng-update/upgrade-rules/misc-checks/checkTemplateMiscRule.d.ts +0 -23
- package/schematics/ng-update/upgrade-rules/misc-checks/checkTemplateMiscRule.js +0 -49
- package/schematics/ng-update/upgrade-rules/misc-checks/checkTemplateMiscRule.js.map +0 -1
- package/schematics/ng-update/upgrade-rules/output-names/outputNamesTemplateRule.d.ts +0 -30
- package/schematics/ng-update/upgrade-rules/output-names/outputNamesTemplateRule.js +0 -67
- package/schematics/ng-update/upgrade-rules/output-names/outputNamesTemplateRule.js.map +0 -1
- package/schematics/ng-update/upgrade-rules/project-tsconfig-paths.js.map +0 -1
- package/schematics/ng-update/upgrade-rules/property-names/propertyNamesAccessRule.d.ts +0 -22
- package/schematics/ng-update/upgrade-rules/property-names/propertyNamesAccessRule.js +0 -46
- package/schematics/ng-update/upgrade-rules/property-names/propertyNamesAccessRule.js.map +0 -1
- package/schematics/ng-update/upgrade-rules/signature-check/constructorSignatureCheckRule.d.ts +0 -16
- package/schematics/ng-update/upgrade-rules/signature-check/constructorSignatureCheckRule.js +0 -132
- package/schematics/ng-update/upgrade-rules/signature-check/constructorSignatureCheckRule.js.map +0 -1
- package/schematics/ng-update/upgrade-rules/signature-check/methodCallsCheckRule.js +0 -58
- package/schematics/ng-update/upgrade-rules/signature-check/methodCallsCheckRule.js.map +0 -1
- package/schematics/ng-update/upgrade-rules/tslint-config.d.ts +0 -32
- package/schematics/ng-update/upgrade-rules/tslint-config.js +0 -87
- package/schematics/ng-update/upgrade-rules/tslint-config.js.map +0 -1
- package/typings/schematics/ng-update/tslint/component-file.d.ts +0 -14
- package/typings/schematics/ng-update/tslint/component-walker.d.ts +0 -47
- package/typings/schematics/ng-update/tslint/external-failure-walker.d.ts +0 -25
- package/typings/schematics/ng-update/upgrade-rules/attribute-selectors/attributeSelectorsStringLiteralRule.d.ts +0 -16
- package/typings/schematics/ng-update/upgrade-rules/attribute-selectors/attributeSelectorsStylesheetRule.d.ts +0 -31
- package/typings/schematics/ng-update/upgrade-rules/attribute-selectors/attributeSelectorsTemplateRule.d.ts +0 -30
- package/typings/schematics/ng-update/upgrade-rules/class-inheritance/classInheritanceCheckRule.d.ts +0 -26
- package/typings/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsStringLiteralRule.d.ts +0 -24
- package/typings/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsStylesheetRule.d.ts +0 -31
- package/typings/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsTemplateRule.d.ts +0 -30
- package/typings/schematics/ng-update/upgrade-rules/element-selectors/elementSelectorsStringLiteralRule.d.ts +0 -24
- package/typings/schematics/ng-update/upgrade-rules/element-selectors/elementSelectorsStylesheetRule.d.ts +0 -31
- package/typings/schematics/ng-update/upgrade-rules/element-selectors/elementSelectorsTemplateRule.d.ts +0 -30
- package/typings/schematics/ng-update/upgrade-rules/input-names/inputNamesStylesheetRule.d.ts +0 -36
- package/typings/schematics/ng-update/upgrade-rules/input-names/inputNamesTemplateRule.d.ts +0 -30
- package/typings/schematics/ng-update/upgrade-rules/misc-checks/checkTemplateMiscRule.d.ts +0 -23
- package/typings/schematics/ng-update/upgrade-rules/output-names/outputNamesTemplateRule.d.ts +0 -30
- package/typings/schematics/ng-update/upgrade-rules/property-names/propertyNamesAccessRule.d.ts +0 -22
- package/typings/schematics/ng-update/upgrade-rules/signature-check/constructorSignatureCheckRule.d.ts +0 -16
- package/typings/schematics/ng-update/upgrade-rules/tslint-config.d.ts +0 -32
|
@@ -1,87 +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.io/license
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
const path_1 = require("path");
|
|
11
|
-
/**
|
|
12
|
-
* List of upgrade rules that will be always enabled because the upgrade data for these rules
|
|
13
|
-
* can be swapped out dynamically.
|
|
14
|
-
*
|
|
15
|
-
* Rules which are specific to CDK breaking changes and are not based on the upgrade data,
|
|
16
|
-
* shouldn't be listed here because those cannot be disabled if Angular Material runs its
|
|
17
|
-
* update schematic using these base rules.
|
|
18
|
-
*/
|
|
19
|
-
const baseUpgradeRules = [
|
|
20
|
-
// Attribute selector update rules.
|
|
21
|
-
'attribute-selectors-string-literal',
|
|
22
|
-
'attribute-selectors-stylesheet',
|
|
23
|
-
'attribute-selectors-template',
|
|
24
|
-
// Class inheritance
|
|
25
|
-
'class-inheritance-check',
|
|
26
|
-
// Class name update rules
|
|
27
|
-
'class-names-identifier',
|
|
28
|
-
// CSS selectors update rules
|
|
29
|
-
'css-selectors-string-literal',
|
|
30
|
-
'css-selectors-stylesheet',
|
|
31
|
-
'css-selectors-template',
|
|
32
|
-
// Element selector update rules
|
|
33
|
-
'element-selectors-string-literal',
|
|
34
|
-
'element-selectors-stylesheet',
|
|
35
|
-
'element-selectors-template',
|
|
36
|
-
// Input name update rules
|
|
37
|
-
'input-names-stylesheet',
|
|
38
|
-
'input-names-template',
|
|
39
|
-
// Output name update rules
|
|
40
|
-
'output-names-template',
|
|
41
|
-
// Property name update rules
|
|
42
|
-
'property-names-access',
|
|
43
|
-
// Signature and method call checks
|
|
44
|
-
'constructor-signature-check',
|
|
45
|
-
'method-calls-check',
|
|
46
|
-
];
|
|
47
|
-
/** List of absolute paths that refer to directories that contain the upgrade rules. */
|
|
48
|
-
const ruleDirectories = [
|
|
49
|
-
'attribute-selectors/',
|
|
50
|
-
'class-inheritance/',
|
|
51
|
-
'class-names/',
|
|
52
|
-
'css-selectors/',
|
|
53
|
-
'element-selectors/',
|
|
54
|
-
'input-names/',
|
|
55
|
-
'misc-checks/',
|
|
56
|
-
'output-names/',
|
|
57
|
-
'property-names/',
|
|
58
|
-
'signature-check/',
|
|
59
|
-
].map(relativePath => path_1.join(__dirname, relativePath));
|
|
60
|
-
/**
|
|
61
|
-
* Creates a TSLint configuration object that can be passed to the schematic `TSLintFixTask`.
|
|
62
|
-
* Each rule will have the specified target version as option which can be used to swap out
|
|
63
|
-
* the upgrade data based on the given target version.
|
|
64
|
-
*
|
|
65
|
-
* @param target Target version that will be used to reduce the upgrade data to the necessary
|
|
66
|
-
* changes that are affected by the target version.
|
|
67
|
-
* @param config Configuration object that can be specified to add additional rules or
|
|
68
|
-
* specify additional external stylesheets which are not referenced by Angular.
|
|
69
|
-
*/
|
|
70
|
-
function createTslintConfig(target, config) {
|
|
71
|
-
const configuredRules = baseUpgradeRules.concat(config.extraUpgradeRules || []);
|
|
72
|
-
const configuredRuleDirs = ruleDirectories.concat(config.extraRuleDirectories || []);
|
|
73
|
-
const enabledRules = configuredRules.reduce((result, data) => {
|
|
74
|
-
const ruleName = data instanceof Array ? data[0] : data;
|
|
75
|
-
const versionConstraints = data instanceof Array ? data.slice(1) : null;
|
|
76
|
-
if (!versionConstraints || versionConstraints.includes(target)) {
|
|
77
|
-
result[ruleName] = [true, target, config.upgradeData, config.extraStyleFiles];
|
|
78
|
-
}
|
|
79
|
-
return result;
|
|
80
|
-
}, {});
|
|
81
|
-
return {
|
|
82
|
-
rulesDirectory: configuredRuleDirs,
|
|
83
|
-
rules: enabledRules
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
exports.createTslintConfig = createTslintConfig;
|
|
87
|
-
//# sourceMappingURL=tslint-config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tslint-config.js","sourceRoot":"","sources":["../../../../../../src/cdk/schematics/ng-update/upgrade-rules/tslint-config.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAEH,+BAA0B;AAe1B;;;;;;;GAOG;AACH,MAAM,gBAAgB,GAAiB;IACrC,mCAAmC;IACnC,oCAAoC;IACpC,gCAAgC;IAChC,8BAA8B;IAE9B,oBAAoB;IACpB,yBAAyB;IAEzB,0BAA0B;IAC1B,wBAAwB;IAExB,6BAA6B;IAC7B,8BAA8B;IAC9B,0BAA0B;IAC1B,wBAAwB;IAExB,gCAAgC;IAChC,kCAAkC;IAClC,8BAA8B;IAC9B,4BAA4B;IAE5B,0BAA0B;IAC1B,wBAAwB;IACxB,sBAAsB;IAEtB,2BAA2B;IAC3B,uBAAuB;IAEvB,6BAA6B;IAC7B,uBAAuB;IAEvB,mCAAmC;IACnC,6BAA6B;IAC7B,oBAAoB;CACrB,CAAC;AAEF,uFAAuF;AACvF,MAAM,eAAe,GAAG;IACtB,sBAAsB;IACtB,oBAAoB;IACpB,cAAc;IACd,gBAAgB;IAChB,oBAAoB;IACpB,cAAc;IACd,cAAc;IACd,eAAe;IACf,iBAAiB;IACjB,kBAAkB;CACnB,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC,WAAI,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC;AAErD;;;;;;;;;GASG;AACH,SAAgB,kBAAkB,CAAC,MAAqB,EAAE,MAA2B;IACnF,MAAM,eAAe,GAAG,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,iBAAiB,IAAI,EAAE,CAAC,CAAC;IAChF,MAAM,kBAAkB,GAAG,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,oBAAoB,IAAI,EAAE,CAAC,CAAC;IAErF,MAAM,YAAY,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE;QAC3D,MAAM,QAAQ,GAAG,IAAI,YAAY,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACxD,MAAM,kBAAkB,GAAG,IAAI,YAAY,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAExE,IAAI,CAAC,kBAAkB,IAAI,kBAAkB,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;YAC9D,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,eAAe,CAAC,CAAC;SAC/E;QAED,OAAO,MAAM,CAAC;IAChB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO;QACL,cAAc,EAAE,kBAAkB;QAClC,KAAK,EAAE,YAAY;KACpB,CAAC;AACJ,CAAC;AAnBD,gDAmBC"}
|
|
@@ -1,14 +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.io/license
|
|
7
|
-
*/
|
|
8
|
-
import * as ts from 'typescript';
|
|
9
|
-
export declare type ExternalResource = ts.SourceFile;
|
|
10
|
-
/**
|
|
11
|
-
* Creates a fake TypeScript source file that can contain content of templates or stylesheets.
|
|
12
|
-
* The fake TypeScript source file then can be passed to TSLint in combination with a rule failure.
|
|
13
|
-
*/
|
|
14
|
-
export declare function createComponentFile(filePath: string, content: string): ExternalResource;
|
|
@@ -1,47 +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.io/license
|
|
7
|
-
*/
|
|
8
|
-
import * as ts from 'typescript';
|
|
9
|
-
import { ExternalResource } from './component-file';
|
|
10
|
-
import { ExternalFailureWalker } from './external-failure-walker';
|
|
11
|
-
/**
|
|
12
|
-
* Custom TSLint rule walker that identifies Angular components and visits specific parts of
|
|
13
|
-
* the component metadata.
|
|
14
|
-
*/
|
|
15
|
-
export declare class ComponentWalker extends ExternalFailureWalker {
|
|
16
|
-
visitInlineTemplate(_template: ts.StringLiteralLike): void;
|
|
17
|
-
visitInlineStylesheet(_stylesheet: ts.StringLiteralLike): void;
|
|
18
|
-
visitExternalTemplate(_template: ExternalResource): void;
|
|
19
|
-
visitExternalStylesheet(_stylesheet: ExternalResource): void;
|
|
20
|
-
/**
|
|
21
|
-
* We keep track of all visited stylesheet files because we allow manually reporting external
|
|
22
|
-
* stylesheets which couldn't be detected by the component walker. Reporting these files multiple
|
|
23
|
-
* times will result in duplicated TSLint failures and replacements.
|
|
24
|
-
*/
|
|
25
|
-
private _visitedStylesheetFiles;
|
|
26
|
-
visitNode(node: ts.Node): void;
|
|
27
|
-
private _visitDirectiveCallExpression;
|
|
28
|
-
private _reportExternalTemplate;
|
|
29
|
-
private _reportInlineStyles;
|
|
30
|
-
private _visitExternalStylesArrayLiteral;
|
|
31
|
-
private _reportExternalStyle;
|
|
32
|
-
/**
|
|
33
|
-
* Recursively searches for the metadata object literal expression inside of a directive call
|
|
34
|
-
* expression. Since expression calls can be nested through *parenthesized* expressions, we
|
|
35
|
-
* need to recursively visit and check every expression inside of a parenthesized expression.
|
|
36
|
-
*
|
|
37
|
-
* e.g. @Component((({myMetadataExpression}))) will return `myMetadataExpression`.
|
|
38
|
-
*/
|
|
39
|
-
private _findMetadataFromExpression;
|
|
40
|
-
/**
|
|
41
|
-
* Creates a TSLint failure that reports that the resource file that belongs to the specified
|
|
42
|
-
* TypeScript node could not be resolved in the file system.
|
|
43
|
-
*/
|
|
44
|
-
private _createResourceNotFoundFailure;
|
|
45
|
-
/** Reports the specified additional stylesheets. */
|
|
46
|
-
_reportExtraStylesheetFiles(filePaths: string[]): void;
|
|
47
|
-
}
|
|
@@ -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.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { Fix, Replacement, RuleWalker } from 'tslint';
|
|
9
|
-
import { ExternalResource } from './component-file';
|
|
10
|
-
/**
|
|
11
|
-
* Enhanced TSLint rule walker that makes it easier to create rule failures that don't belong to
|
|
12
|
-
* the source file that has been passed to the rule walker.
|
|
13
|
-
*/
|
|
14
|
-
export declare class ExternalFailureWalker extends RuleWalker {
|
|
15
|
-
/** Adds a failure for the external resource at the specified position with the given width. */
|
|
16
|
-
addExternalFailureAt(node: ExternalResource, start: number, width: number, message: string, fix?: Fix): void;
|
|
17
|
-
/** Adds a failure at the specified range for the external resource. */
|
|
18
|
-
addExternalFailureFromStartToEnd(node: ExternalResource, start: number, end: number, message: string, fix?: Fix): void;
|
|
19
|
-
/** Adds a failure for the whole external resource node. */
|
|
20
|
-
addExternalFailure(node: ExternalResource, message: string, fix?: Fix): void;
|
|
21
|
-
/** Adds a failure to the external resource at the location of the specified replacement. */
|
|
22
|
-
addExternalFailureAtReplacement(node: ExternalResource, message: string, replacement: Replacement): void;
|
|
23
|
-
/** Adds a failure at the location of the specified replacement. */
|
|
24
|
-
addFailureAtReplacement(message: string, replacement: Replacement): void;
|
|
25
|
-
}
|
|
@@ -1,16 +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.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { RuleFailure, Rules } from 'tslint';
|
|
9
|
-
import * as ts from 'typescript';
|
|
10
|
-
/**
|
|
11
|
-
* Rule that walks through every string literal that is part of a call expression and
|
|
12
|
-
* switches deprecated attribute selectors to the updated selector.
|
|
13
|
-
*/
|
|
14
|
-
export declare class Rule extends Rules.AbstractRule {
|
|
15
|
-
apply(sourceFile: ts.SourceFile): RuleFailure[];
|
|
16
|
-
}
|
|
@@ -1,31 +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.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { IOptions, RuleFailure, Rules } from 'tslint';
|
|
9
|
-
import * as ts from 'typescript';
|
|
10
|
-
import { AttributeSelectorUpgradeData } from '../../data';
|
|
11
|
-
import { ExternalResource } from '../../tslint/component-file';
|
|
12
|
-
import { ComponentWalker } from '../../tslint/component-walker';
|
|
13
|
-
/**
|
|
14
|
-
* Rule that walks through every stylesheet in the application and updates outdated
|
|
15
|
-
* attribute selectors to the updated selector.
|
|
16
|
-
*/
|
|
17
|
-
export declare class Rule extends Rules.AbstractRule {
|
|
18
|
-
apply(sourceFile: ts.SourceFile): RuleFailure[];
|
|
19
|
-
}
|
|
20
|
-
export declare class Walker extends ComponentWalker {
|
|
21
|
-
/** Change data that upgrades to the specified target version. */
|
|
22
|
-
data: AttributeSelectorUpgradeData[];
|
|
23
|
-
constructor(sourceFile: ts.SourceFile, options: IOptions);
|
|
24
|
-
visitInlineStylesheet(literal: ts.StringLiteralLike): void;
|
|
25
|
-
visitExternalStylesheet(node: ExternalResource): void;
|
|
26
|
-
/**
|
|
27
|
-
* Searches for outdated attribute selectors in the specified content and creates replacements
|
|
28
|
-
* with the according messages that can be added to a rule failure.
|
|
29
|
-
*/
|
|
30
|
-
private _createReplacementsForContent;
|
|
31
|
-
}
|
|
@@ -1,30 +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.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { RuleFailure, Rules } from 'tslint';
|
|
9
|
-
import * as ts from 'typescript';
|
|
10
|
-
import { AttributeSelectorUpgradeData } from '../../data';
|
|
11
|
-
import { ExternalResource } from '../../tslint/component-file';
|
|
12
|
-
import { ComponentWalker } from '../../tslint/component-walker';
|
|
13
|
-
/**
|
|
14
|
-
* Rule that walks through every component template and switches outdated attribute
|
|
15
|
-
* selectors to the updated selector.
|
|
16
|
-
*/
|
|
17
|
-
export declare class Rule extends Rules.AbstractRule {
|
|
18
|
-
apply(sourceFile: ts.SourceFile): RuleFailure[];
|
|
19
|
-
}
|
|
20
|
-
export declare class Walker extends ComponentWalker {
|
|
21
|
-
/** Change data that upgrades to the specified target version. */
|
|
22
|
-
data: AttributeSelectorUpgradeData[];
|
|
23
|
-
visitInlineTemplate(node: ts.StringLiteralLike): void;
|
|
24
|
-
visitExternalTemplate(node: ExternalResource): void;
|
|
25
|
-
/**
|
|
26
|
-
* Searches for outdated attribute selectors in the specified content and creates replacements
|
|
27
|
-
* with the according messages that can be added to a rule failure.
|
|
28
|
-
*/
|
|
29
|
-
private _createReplacementsForContent;
|
|
30
|
-
}
|
package/typings/schematics/ng-update/upgrade-rules/class-inheritance/classInheritanceCheckRule.d.ts
DELETED
|
@@ -1,26 +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.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { IOptions, ProgramAwareRuleWalker, RuleFailure, Rules } from 'tslint';
|
|
9
|
-
import * as ts from 'typescript';
|
|
10
|
-
import { PropertyNameUpgradeData } from '../../data/property-names';
|
|
11
|
-
/**
|
|
12
|
-
* Rule that identifies class declarations that extend CDK or Material classes and had
|
|
13
|
-
* a public property change.
|
|
14
|
-
*/
|
|
15
|
-
export declare class Rule extends Rules.TypedRule {
|
|
16
|
-
applyWithProgram(sourceFile: ts.SourceFile, program: ts.Program): RuleFailure[];
|
|
17
|
-
}
|
|
18
|
-
export declare class Walker extends ProgramAwareRuleWalker {
|
|
19
|
-
/**
|
|
20
|
-
* Map of classes that have been updated. Each class name maps to the according property
|
|
21
|
-
* change data.
|
|
22
|
-
*/
|
|
23
|
-
propertyNames: Map<string, PropertyNameUpgradeData>;
|
|
24
|
-
constructor(sourceFile: ts.SourceFile, options: IOptions, program: ts.Program);
|
|
25
|
-
visitClassDeclaration(node: ts.ClassDeclaration): void;
|
|
26
|
-
}
|
package/typings/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsStringLiteralRule.d.ts
DELETED
|
@@ -1,24 +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.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { RuleFailure, Rules, RuleWalker } from 'tslint';
|
|
9
|
-
import * as ts from 'typescript';
|
|
10
|
-
import { CssSelectorUpgradeData } from '../../data/css-selectors';
|
|
11
|
-
/**
|
|
12
|
-
* Rule that walks through every string literal that is wrapped inside of a call expression.
|
|
13
|
-
* All string literals which include an outdated CSS selector will be migrated.
|
|
14
|
-
*/
|
|
15
|
-
export declare class Rule extends Rules.AbstractRule {
|
|
16
|
-
apply(sourceFile: ts.SourceFile): RuleFailure[];
|
|
17
|
-
}
|
|
18
|
-
export declare class Walker extends RuleWalker {
|
|
19
|
-
/** Change data that upgrades to the specified target version. */
|
|
20
|
-
data: CssSelectorUpgradeData[];
|
|
21
|
-
visitStringLiteral(node: ts.StringLiteral): void;
|
|
22
|
-
/** Adds a css selector failure with the given replacement at the specified node. */
|
|
23
|
-
private _addFailureWithReplacement;
|
|
24
|
-
}
|
package/typings/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsStylesheetRule.d.ts
DELETED
|
@@ -1,31 +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.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { IOptions, RuleFailure, Rules } from 'tslint';
|
|
9
|
-
import * as ts from 'typescript';
|
|
10
|
-
import { CssSelectorUpgradeData } from '../../data';
|
|
11
|
-
import { ExternalResource } from '../../tslint/component-file';
|
|
12
|
-
import { ComponentWalker } from '../../tslint/component-walker';
|
|
13
|
-
/**
|
|
14
|
-
* Rule that walks through every inline or external CSs stylesheet and updates outdated
|
|
15
|
-
* CSS selectors.
|
|
16
|
-
*/
|
|
17
|
-
export declare class Rule extends Rules.AbstractRule {
|
|
18
|
-
apply(sourceFile: ts.SourceFile): RuleFailure[];
|
|
19
|
-
}
|
|
20
|
-
export declare class Walker extends ComponentWalker {
|
|
21
|
-
/** Change data that upgrades to the specified target version. */
|
|
22
|
-
data: CssSelectorUpgradeData[];
|
|
23
|
-
constructor(sourceFile: ts.SourceFile, options: IOptions);
|
|
24
|
-
visitInlineStylesheet(node: ts.StringLiteralLike): void;
|
|
25
|
-
visitExternalStylesheet(node: ExternalResource): void;
|
|
26
|
-
/**
|
|
27
|
-
* Searches for outdated CSS selectors in the specified content and creates replacements
|
|
28
|
-
* with the according messages that can be added to a rule failure.
|
|
29
|
-
*/
|
|
30
|
-
private _createReplacementsForContent;
|
|
31
|
-
}
|
package/typings/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsTemplateRule.d.ts
DELETED
|
@@ -1,30 +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.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { RuleFailure, Rules } from 'tslint';
|
|
9
|
-
import * as ts from 'typescript';
|
|
10
|
-
import { CssSelectorUpgradeData } from '../../data';
|
|
11
|
-
import { ExternalResource } from '../../tslint/component-file';
|
|
12
|
-
import { ComponentWalker } from '../../tslint/component-walker';
|
|
13
|
-
/**
|
|
14
|
-
* Rule that walks through every inline or external HTML template and updates outdated
|
|
15
|
-
* CSS selectors.
|
|
16
|
-
*/
|
|
17
|
-
export declare class Rule extends Rules.AbstractRule {
|
|
18
|
-
apply(sourceFile: ts.SourceFile): RuleFailure[];
|
|
19
|
-
}
|
|
20
|
-
export declare class Walker extends ComponentWalker {
|
|
21
|
-
/** Change data that upgrades to the specified target version. */
|
|
22
|
-
data: CssSelectorUpgradeData[];
|
|
23
|
-
visitInlineTemplate(node: ts.StringLiteralLike): void;
|
|
24
|
-
visitExternalTemplate(node: ExternalResource): void;
|
|
25
|
-
/**
|
|
26
|
-
* Searches for outdated css selectors in the specified content and creates replacements
|
|
27
|
-
* with the according messages that can be added to a rule failure.
|
|
28
|
-
*/
|
|
29
|
-
private _createReplacementsForContent;
|
|
30
|
-
}
|
|
@@ -1,24 +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.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { RuleFailure, Rules, RuleWalker } from 'tslint';
|
|
9
|
-
import * as ts from 'typescript';
|
|
10
|
-
import { ElementSelectorUpgradeData } from '../../data/element-selectors';
|
|
11
|
-
/**
|
|
12
|
-
* Rule that walks through every string literal that is wrapped inside of a call expression.
|
|
13
|
-
* All string literals which include an outdated element selector will be migrated.
|
|
14
|
-
*/
|
|
15
|
-
export declare class Rule extends Rules.AbstractRule {
|
|
16
|
-
apply(sourceFile: ts.SourceFile): RuleFailure[];
|
|
17
|
-
}
|
|
18
|
-
export declare class Walker extends RuleWalker {
|
|
19
|
-
/** Change data that upgrades to the specified target version. */
|
|
20
|
-
data: ElementSelectorUpgradeData[];
|
|
21
|
-
visitStringLiteral(node: ts.StringLiteral): void;
|
|
22
|
-
/** Adds an element selector failure with the given replacement at the specified node. */
|
|
23
|
-
private _addFailureWithReplacement;
|
|
24
|
-
}
|
|
@@ -1,31 +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.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { IOptions, RuleFailure, Rules } from 'tslint';
|
|
9
|
-
import * as ts from 'typescript';
|
|
10
|
-
import { ElementSelectorUpgradeData } from '../../data';
|
|
11
|
-
import { ExternalResource } from '../../tslint/component-file';
|
|
12
|
-
import { ComponentWalker } from '../../tslint/component-walker';
|
|
13
|
-
/**
|
|
14
|
-
* Rule that walks through every inline or external CSS stylesheet and updates outdated
|
|
15
|
-
* element selectors.
|
|
16
|
-
*/
|
|
17
|
-
export declare class Rule extends Rules.AbstractRule {
|
|
18
|
-
apply(sourceFile: ts.SourceFile): RuleFailure[];
|
|
19
|
-
}
|
|
20
|
-
export declare class Walker extends ComponentWalker {
|
|
21
|
-
/** Change data that upgrades to the specified target version. */
|
|
22
|
-
data: ElementSelectorUpgradeData[];
|
|
23
|
-
constructor(sourceFile: ts.SourceFile, options: IOptions);
|
|
24
|
-
visitInlineStylesheet(node: ts.StringLiteralLike): void;
|
|
25
|
-
visitExternalStylesheet(node: ExternalResource): void;
|
|
26
|
-
/**
|
|
27
|
-
* Searches for outdated element selectors in the specified content and creates replacements
|
|
28
|
-
* with the according messages that can be added to a rule failure.
|
|
29
|
-
*/
|
|
30
|
-
private _createReplacementsForContent;
|
|
31
|
-
}
|
|
@@ -1,30 +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.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { RuleFailure, Rules } from 'tslint';
|
|
9
|
-
import * as ts from 'typescript';
|
|
10
|
-
import { ElementSelectorUpgradeData } from '../../data';
|
|
11
|
-
import { ExternalResource } from '../../tslint/component-file';
|
|
12
|
-
import { ComponentWalker } from '../../tslint/component-walker';
|
|
13
|
-
/**
|
|
14
|
-
* Rule that walks through every component decorator and updates their inline or external
|
|
15
|
-
* templates.
|
|
16
|
-
*/
|
|
17
|
-
export declare class Rule extends Rules.AbstractRule {
|
|
18
|
-
apply(sourceFile: ts.SourceFile): RuleFailure[];
|
|
19
|
-
}
|
|
20
|
-
export declare class Walker extends ComponentWalker {
|
|
21
|
-
/** Change data that upgrades to the specified target version. */
|
|
22
|
-
data: ElementSelectorUpgradeData[];
|
|
23
|
-
visitInlineTemplate(node: ts.StringLiteralLike): void;
|
|
24
|
-
visitExternalTemplate(node: ExternalResource): void;
|
|
25
|
-
/**
|
|
26
|
-
* Searches for outdated element selectors in the specified content and creates replacements
|
|
27
|
-
* with the according messages that can be added to a rule failure.
|
|
28
|
-
*/
|
|
29
|
-
private _createReplacementsForContent;
|
|
30
|
-
}
|
package/typings/schematics/ng-update/upgrade-rules/input-names/inputNamesStylesheetRule.d.ts
DELETED
|
@@ -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.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { IOptions, RuleFailure, Rules } from 'tslint';
|
|
9
|
-
import * as ts from 'typescript';
|
|
10
|
-
import { InputNameUpgradeData } from '../../data';
|
|
11
|
-
import { ExternalResource } from '../../tslint/component-file';
|
|
12
|
-
import { ComponentWalker } from '../../tslint/component-walker';
|
|
13
|
-
/**
|
|
14
|
-
* Rule that walks through every inline or external stylesheet and replaces outdated CSS selectors
|
|
15
|
-
* that query for an @Input() with the new input name.
|
|
16
|
-
*
|
|
17
|
-
* Note that inputs inside of stylesheets usually don't make sense, but if developers use an
|
|
18
|
-
* input as a plain one-time attribute, it can be targeted through CSS selectors.
|
|
19
|
-
*
|
|
20
|
-
* e.g. `<my-component color="primary">` becomes `my-component[color]`
|
|
21
|
-
*/
|
|
22
|
-
export declare class Rule extends Rules.AbstractRule {
|
|
23
|
-
apply(sourceFile: ts.SourceFile): RuleFailure[];
|
|
24
|
-
}
|
|
25
|
-
export declare class Walker extends ComponentWalker {
|
|
26
|
-
/** Change data that upgrades to the specified target version. */
|
|
27
|
-
data: InputNameUpgradeData[];
|
|
28
|
-
constructor(sourceFile: ts.SourceFile, options: IOptions);
|
|
29
|
-
visitInlineStylesheet(node: ts.StringLiteralLike): void;
|
|
30
|
-
visitExternalStylesheet(node: ExternalResource): void;
|
|
31
|
-
/**
|
|
32
|
-
* Searches for outdated attribute selectors in the specified content and creates replacements
|
|
33
|
-
* with the according messages that can be added to a rule failure.
|
|
34
|
-
*/
|
|
35
|
-
private _createReplacementsForContent;
|
|
36
|
-
}
|
|
@@ -1,30 +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.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { RuleFailure, Rules } from 'tslint';
|
|
9
|
-
import * as ts from 'typescript';
|
|
10
|
-
import { InputNameUpgradeData } from '../../data';
|
|
11
|
-
import { ExternalResource } from '../../tslint/component-file';
|
|
12
|
-
import { ComponentWalker } from '../../tslint/component-walker';
|
|
13
|
-
/**
|
|
14
|
-
* Rule that walks through every inline or external HTML template and switches changed input
|
|
15
|
-
* bindings to the proper new name.
|
|
16
|
-
*/
|
|
17
|
-
export declare class Rule extends Rules.AbstractRule {
|
|
18
|
-
apply(sourceFile: ts.SourceFile): RuleFailure[];
|
|
19
|
-
}
|
|
20
|
-
export declare class Walker extends ComponentWalker {
|
|
21
|
-
/** Change data that upgrades to the specified target version. */
|
|
22
|
-
data: InputNameUpgradeData[];
|
|
23
|
-
visitInlineTemplate(node: ts.StringLiteralLike): void;
|
|
24
|
-
visitExternalTemplate(node: ExternalResource): void;
|
|
25
|
-
/**
|
|
26
|
-
* Searches for outdated input bindings in the specified content and creates
|
|
27
|
-
* replacements with the according messages that can be added to a rule failure.
|
|
28
|
-
*/
|
|
29
|
-
private _createReplacementsForContent;
|
|
30
|
-
}
|
|
@@ -1,23 +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.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { RuleFailure, Rules } from 'tslint';
|
|
9
|
-
import * as ts from 'typescript';
|
|
10
|
-
import { ExternalResource } from '../../tslint/component-file';
|
|
11
|
-
import { ComponentWalker } from '../../tslint/component-walker';
|
|
12
|
-
/**
|
|
13
|
-
* Rule that walks through every inline or external template and reports if there are outdated
|
|
14
|
-
* usages of the Angular Material API that need to be updated manually.
|
|
15
|
-
*/
|
|
16
|
-
export declare class Rule extends Rules.AbstractRule {
|
|
17
|
-
apply(sourceFile: ts.SourceFile): RuleFailure[];
|
|
18
|
-
}
|
|
19
|
-
export declare class Walker extends ComponentWalker {
|
|
20
|
-
visitInlineTemplate(node: ts.StringLiteralLike): void;
|
|
21
|
-
visitExternalTemplate(node: ExternalResource): void;
|
|
22
|
-
private _createFailuresForContent;
|
|
23
|
-
}
|
package/typings/schematics/ng-update/upgrade-rules/output-names/outputNamesTemplateRule.d.ts
DELETED
|
@@ -1,30 +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.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { RuleFailure, Rules } from 'tslint';
|
|
9
|
-
import * as ts from 'typescript';
|
|
10
|
-
import { OutputNameUpgradeData } from '../../data';
|
|
11
|
-
import { ExternalResource } from '../../tslint/component-file';
|
|
12
|
-
import { ComponentWalker } from '../../tslint/component-walker';
|
|
13
|
-
/**
|
|
14
|
-
* Rule that walks through every inline or external HTML template and switches changed output
|
|
15
|
-
* bindings to the proper new output name.
|
|
16
|
-
*/
|
|
17
|
-
export declare class Rule extends Rules.AbstractRule {
|
|
18
|
-
apply(sourceFile: ts.SourceFile): RuleFailure[];
|
|
19
|
-
}
|
|
20
|
-
export declare class Walker extends ComponentWalker {
|
|
21
|
-
/** Change data that upgrades to the specified target version. */
|
|
22
|
-
data: OutputNameUpgradeData[];
|
|
23
|
-
visitInlineTemplate(node: ts.StringLiteralLike): void;
|
|
24
|
-
visitExternalTemplate(node: ExternalResource): void;
|
|
25
|
-
/**
|
|
26
|
-
* Searches for outdated output bindings in the specified content and creates
|
|
27
|
-
* replacements with the according messages that can be added to a rule failure.
|
|
28
|
-
*/
|
|
29
|
-
private _createReplacementsForContent;
|
|
30
|
-
}
|
package/typings/schematics/ng-update/upgrade-rules/property-names/propertyNamesAccessRule.d.ts
DELETED
|
@@ -1,22 +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.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { ProgramAwareRuleWalker, RuleFailure, Rules } from 'tslint';
|
|
9
|
-
import * as ts from 'typescript';
|
|
10
|
-
import { PropertyNameUpgradeData } from '../../data';
|
|
11
|
-
/**
|
|
12
|
-
* Rule that walks through every property access expression and updates properties that have
|
|
13
|
-
* been changed in favor of a new name.
|
|
14
|
-
*/
|
|
15
|
-
export declare class Rule extends Rules.TypedRule {
|
|
16
|
-
applyWithProgram(sourceFile: ts.SourceFile, program: ts.Program): RuleFailure[];
|
|
17
|
-
}
|
|
18
|
-
export declare class Walker extends ProgramAwareRuleWalker {
|
|
19
|
-
/** Change data that upgrades to the specified target version. */
|
|
20
|
-
data: PropertyNameUpgradeData[];
|
|
21
|
-
visitPropertyAccessExpression(node: ts.PropertyAccessExpression): void;
|
|
22
|
-
}
|
|
@@ -1,16 +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.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { RuleFailure, Rules } from 'tslint';
|
|
9
|
-
import * as ts from 'typescript';
|
|
10
|
-
/**
|
|
11
|
-
* Rule that visits every TypeScript new expression or super call and checks if the parameter
|
|
12
|
-
* type signature is invalid and needs to be updated manually.
|
|
13
|
-
*/
|
|
14
|
-
export declare class Rule extends Rules.TypedRule {
|
|
15
|
-
applyWithProgram(sourceFile: ts.SourceFile, program: ts.Program): RuleFailure[];
|
|
16
|
-
}
|