@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.
Files changed (307) hide show
  1. package/a11y/typings/aria-describer/aria-describer.d.ts +4 -3
  2. package/a11y/typings/index.metadata.json +1 -1
  3. package/bundles/cdk-a11y.umd.js +42 -10
  4. package/bundles/cdk-a11y.umd.js.map +1 -1
  5. package/bundles/cdk-a11y.umd.min.js +1 -1
  6. package/bundles/cdk-a11y.umd.min.js.map +1 -1
  7. package/bundles/cdk-drag-drop.umd.js +511 -81
  8. package/bundles/cdk-drag-drop.umd.js.map +1 -1
  9. package/bundles/cdk-drag-drop.umd.min.js +2 -2
  10. package/bundles/cdk-drag-drop.umd.min.js.map +1 -1
  11. package/bundles/cdk-overlay.umd.js +15 -13
  12. package/bundles/cdk-overlay.umd.js.map +1 -1
  13. package/bundles/cdk-overlay.umd.min.js +2 -2
  14. package/bundles/cdk-overlay.umd.min.js.map +1 -1
  15. package/bundles/cdk-tree.umd.js +8 -6
  16. package/bundles/cdk-tree.umd.js.map +1 -1
  17. package/bundles/cdk-tree.umd.min.js +1 -1
  18. package/bundles/cdk-tree.umd.min.js.map +1 -1
  19. package/bundles/cdk.umd.js +1 -1
  20. package/bundles/cdk.umd.js.map +1 -1
  21. package/bundles/cdk.umd.min.js +1 -1
  22. package/bundles/cdk.umd.min.js.map +1 -1
  23. package/drag-drop/typings/directives/drag.d.ts +1 -1
  24. package/drag-drop/typings/directives/drop-list.d.ts +2 -0
  25. package/drag-drop/typings/drag-drop-registry.d.ts +2 -0
  26. package/drag-drop/typings/drag-ref.d.ts +10 -1
  27. package/drag-drop/typings/drop-list-ref.d.ts +59 -3
  28. package/drag-drop/typings/index.metadata.json +1 -1
  29. package/esm2015/a11y.js +35 -10
  30. package/esm2015/a11y.js.map +1 -1
  31. package/esm2015/cdk.js +1 -1
  32. package/esm2015/cdk.js.map +1 -1
  33. package/esm2015/drag-drop.js +446 -79
  34. package/esm2015/drag-drop.js.map +1 -1
  35. package/esm2015/overlay.js +14 -12
  36. package/esm2015/overlay.js.map +1 -1
  37. package/esm2015/tree.js +7 -6
  38. package/esm2015/tree.js.map +1 -1
  39. package/esm5/a11y.es5.js +42 -10
  40. package/esm5/a11y.es5.js.map +1 -1
  41. package/esm5/cdk.es5.js +1 -1
  42. package/esm5/cdk.es5.js.map +1 -1
  43. package/esm5/drag-drop.es5.js +509 -79
  44. package/esm5/drag-drop.es5.js.map +1 -1
  45. package/esm5/overlay.es5.js +15 -13
  46. package/esm5/overlay.es5.js.map +1 -1
  47. package/esm5/tree.es5.js +8 -6
  48. package/esm5/tree.es5.js.map +1 -1
  49. package/package.json +4 -4
  50. package/schematics/index.d.ts +1 -0
  51. package/schematics/index.js +1 -0
  52. package/schematics/index.js.map +1 -1
  53. package/schematics/ng-update/data/attribute-selectors.d.ts +1 -1
  54. package/schematics/ng-update/data/attribute-selectors.js +5 -13
  55. package/schematics/ng-update/data/attribute-selectors.js.map +1 -1
  56. package/schematics/ng-update/data/class-names.d.ts +1 -1
  57. package/schematics/ng-update/data/class-names.js +5 -21
  58. package/schematics/ng-update/data/class-names.js.map +1 -1
  59. package/schematics/ng-update/data/constructor-checks.d.ts +1 -1
  60. package/schematics/ng-update/data/constructor-checks.js +3 -5
  61. package/schematics/ng-update/data/constructor-checks.js.map +1 -1
  62. package/schematics/ng-update/data/css-selectors.d.ts +1 -1
  63. package/schematics/ng-update/data/css-selectors.js +1 -1
  64. package/schematics/ng-update/data/css-selectors.js.map +1 -1
  65. package/schematics/ng-update/data/element-selectors.d.ts +1 -1
  66. package/schematics/ng-update/data/element-selectors.js +1 -1
  67. package/schematics/ng-update/data/element-selectors.js.map +1 -1
  68. package/schematics/ng-update/data/input-names.d.ts +1 -1
  69. package/schematics/ng-update/data/input-names.js +13 -37
  70. package/schematics/ng-update/data/input-names.js.map +1 -1
  71. package/schematics/ng-update/data/method-call-checks.d.ts +1 -1
  72. package/schematics/ng-update/data/method-call-checks.js +6 -15
  73. package/schematics/ng-update/data/method-call-checks.js.map +1 -1
  74. package/schematics/ng-update/data/output-names.d.ts +1 -1
  75. package/schematics/ng-update/data/output-names.js +1 -1
  76. package/schematics/ng-update/data/output-names.js.map +1 -1
  77. package/schematics/ng-update/data/property-names.d.ts +1 -1
  78. package/schematics/ng-update/data/property-names.js +19 -59
  79. package/schematics/ng-update/data/property-names.js.map +1 -1
  80. package/schematics/ng-update/html-parsing/elements.js.map +1 -1
  81. package/schematics/ng-update/index.d.ts +0 -2
  82. package/schematics/ng-update/index.js +13 -24
  83. package/schematics/ng-update/index.js.map +1 -1
  84. package/schematics/ng-update/public-api.d.ts +0 -5
  85. package/schematics/ng-update/public-api.js +0 -5
  86. package/schematics/ng-update/public-api.js.map +1 -1
  87. package/schematics/ng-update/typescript/base-types.js.map +1 -1
  88. package/schematics/ng-update/typescript/module-specifiers.js.map +1 -1
  89. package/schematics/ng-update/upgrade-data.d.ts +5 -30
  90. package/schematics/ng-update/upgrade-data.js +4 -34
  91. package/schematics/ng-update/upgrade-data.js.map +1 -1
  92. package/schematics/ng-update/upgrade-rules/attribute-selectors-rule.d.ts +25 -0
  93. package/schematics/ng-update/upgrade-rules/attribute-selectors-rule.js +66 -0
  94. package/schematics/ng-update/upgrade-rules/attribute-selectors-rule.js.map +1 -0
  95. package/schematics/ng-update/upgrade-rules/class-inheritance-rule.d.ts +26 -0
  96. package/schematics/ng-update/upgrade-rules/{class-inheritance/classInheritanceCheckRule.js → class-inheritance-rule.js} +24 -20
  97. package/schematics/ng-update/upgrade-rules/class-inheritance-rule.js.map +1 -0
  98. package/{typings/schematics/ng-update/upgrade-rules/class-names/classNamesIdentifierRule.d.ts → schematics/ng-update/upgrade-rules/class-names-rule.d.ts} +7 -7
  99. package/schematics/ng-update/upgrade-rules/{class-names/classNamesIdentifierRule.js → class-names-rule.js} +19 -24
  100. package/schematics/ng-update/upgrade-rules/class-names-rule.js.map +1 -0
  101. package/schematics/ng-update/upgrade-rules/constructor-signature-rule.d.ts +29 -0
  102. package/schematics/ng-update/upgrade-rules/constructor-signature-rule.js +134 -0
  103. package/schematics/ng-update/upgrade-rules/constructor-signature-rule.js.map +1 -0
  104. package/schematics/ng-update/upgrade-rules/css-selectors-rule.d.ts +25 -0
  105. package/schematics/ng-update/upgrade-rules/css-selectors-rule.js +73 -0
  106. package/schematics/ng-update/upgrade-rules/css-selectors-rule.js.map +1 -0
  107. package/schematics/ng-update/upgrade-rules/element-selectors-rule.d.ts +25 -0
  108. package/schematics/ng-update/upgrade-rules/element-selectors-rule.js +64 -0
  109. package/schematics/ng-update/upgrade-rules/element-selectors-rule.js.map +1 -0
  110. package/schematics/ng-update/upgrade-rules/index.d.ts +13 -4
  111. package/schematics/ng-update/upgrade-rules/index.js +49 -29
  112. package/schematics/ng-update/upgrade-rules/index.js.map +1 -1
  113. package/schematics/ng-update/upgrade-rules/input-names-rule.d.ts +26 -0
  114. package/schematics/ng-update/upgrade-rules/input-names-rule.js +59 -0
  115. package/schematics/ng-update/upgrade-rules/input-names-rule.js.map +1 -0
  116. 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
  117. package/schematics/ng-update/upgrade-rules/method-call-arguments-rule.js +60 -0
  118. package/schematics/ng-update/upgrade-rules/method-call-arguments-rule.js.map +1 -0
  119. package/schematics/ng-update/upgrade-rules/misc-template-rule.d.ts +18 -0
  120. package/schematics/ng-update/upgrade-rules/misc-template-rule.js +37 -0
  121. package/schematics/ng-update/upgrade-rules/misc-template-rule.js.map +1 -0
  122. package/schematics/ng-update/upgrade-rules/output-names-rule.d.ts +22 -0
  123. package/schematics/ng-update/upgrade-rules/output-names-rule.js +46 -0
  124. package/schematics/ng-update/upgrade-rules/output-names-rule.js.map +1 -0
  125. package/schematics/ng-update/upgrade-rules/property-names-rule.d.ts +22 -0
  126. package/schematics/ng-update/upgrade-rules/property-names-rule.js +46 -0
  127. package/schematics/ng-update/upgrade-rules/property-names-rule.js.map +1 -0
  128. package/schematics/tsconfig.tsbuildinfo +2895 -3608
  129. package/schematics/update-tool/component-resource-collector.d.ts +41 -0
  130. package/schematics/update-tool/component-resource-collector.js +141 -0
  131. package/schematics/update-tool/component-resource-collector.js.map +1 -0
  132. package/schematics/update-tool/index.d.ts +13 -0
  133. package/schematics/update-tool/index.js +117 -0
  134. package/schematics/update-tool/index.js.map +1 -0
  135. package/schematics/update-tool/migration-rule.d.ts +45 -0
  136. package/schematics/update-tool/migration-rule.js +50 -0
  137. package/schematics/update-tool/migration-rule.js.map +1 -0
  138. package/schematics/update-tool/public-api.d.ts +12 -0
  139. package/schematics/update-tool/public-api.js +18 -0
  140. package/schematics/update-tool/public-api.js.map +1 -0
  141. package/schematics/{ng-update → update-tool}/target-version.d.ts +3 -3
  142. package/schematics/{ng-update → update-tool}/target-version.js +3 -3
  143. package/schematics/update-tool/target-version.js.map +1 -0
  144. package/schematics/update-tool/utils/decorators.d.ts +23 -0
  145. package/schematics/update-tool/utils/decorators.js +37 -0
  146. package/schematics/update-tool/utils/decorators.js.map +1 -0
  147. package/schematics/update-tool/utils/functions.d.ts +14 -0
  148. package/schematics/update-tool/utils/functions.js +20 -0
  149. package/schematics/update-tool/utils/functions.js.map +1 -0
  150. package/schematics/update-tool/utils/imports.d.ts +15 -0
  151. package/schematics/update-tool/utils/imports.js +35 -0
  152. package/schematics/update-tool/utils/imports.js.map +1 -0
  153. package/schematics/update-tool/utils/line-mappings.d.ts +21 -0
  154. package/schematics/update-tool/utils/line-mappings.js +75 -0
  155. package/schematics/update-tool/utils/line-mappings.js.map +1 -0
  156. package/schematics/update-tool/utils/parse-tsconfig.d.ts +9 -0
  157. package/schematics/update-tool/utils/parse-tsconfig.js +22 -0
  158. package/schematics/update-tool/utils/parse-tsconfig.js.map +1 -0
  159. package/schematics/update-tool/utils/property-name.d.ts +18 -0
  160. package/schematics/update-tool/utils/property-name.js +27 -0
  161. package/schematics/update-tool/utils/property-name.js.map +1 -0
  162. package/schematics/update-tool/version-changes.d.ts +32 -0
  163. package/schematics/update-tool/version-changes.js +41 -0
  164. package/schematics/update-tool/version-changes.js.map +1 -0
  165. package/schematics/{ng-update/upgrade-rules → utils}/project-tsconfig-paths.d.ts +4 -1
  166. package/schematics/{ng-update/upgrade-rules → utils}/project-tsconfig-paths.js +31 -20
  167. package/schematics/utils/project-tsconfig-paths.js.map +1 -0
  168. package/typings/a11y/aria-describer/aria-describer.d.ts +4 -3
  169. package/typings/a11y/index.metadata.json +1 -1
  170. package/typings/drag-drop/directives/drag.d.ts +1 -1
  171. package/typings/drag-drop/directives/drop-list.d.ts +2 -0
  172. package/typings/drag-drop/drag-drop-registry.d.ts +2 -0
  173. package/typings/drag-drop/drag-ref.d.ts +10 -1
  174. package/typings/drag-drop/drop-list-ref.d.ts +59 -3
  175. package/typings/drag-drop/index.metadata.json +1 -1
  176. package/typings/esm5/a11y/aria-describer/aria-describer.d.ts +4 -3
  177. package/typings/esm5/a11y/index.metadata.json +1 -1
  178. package/typings/esm5/drag-drop/directives/drag.d.ts +1 -1
  179. package/typings/esm5/drag-drop/directives/drop-list.d.ts +2 -0
  180. package/typings/esm5/drag-drop/drag-drop-registry.d.ts +2 -0
  181. package/typings/esm5/drag-drop/drag-ref.d.ts +10 -1
  182. package/typings/esm5/drag-drop/drop-list-ref.d.ts +59 -3
  183. package/typings/esm5/drag-drop/index.metadata.json +1 -1
  184. package/typings/esm5/index.metadata.json +1 -1
  185. package/typings/index.metadata.json +1 -1
  186. package/typings/schematics/index.d.ts +1 -0
  187. package/typings/schematics/ng-update/data/attribute-selectors.d.ts +1 -1
  188. package/typings/schematics/ng-update/data/class-names.d.ts +1 -1
  189. package/typings/schematics/ng-update/data/constructor-checks.d.ts +1 -1
  190. package/typings/schematics/ng-update/data/css-selectors.d.ts +1 -1
  191. package/typings/schematics/ng-update/data/element-selectors.d.ts +1 -1
  192. package/typings/schematics/ng-update/data/input-names.d.ts +1 -1
  193. package/typings/schematics/ng-update/data/method-call-checks.d.ts +1 -1
  194. package/typings/schematics/ng-update/data/output-names.d.ts +1 -1
  195. package/typings/schematics/ng-update/data/property-names.d.ts +1 -1
  196. package/typings/schematics/ng-update/index.d.ts +0 -2
  197. package/typings/schematics/ng-update/public-api.d.ts +0 -5
  198. package/typings/schematics/ng-update/upgrade-data.d.ts +5 -30
  199. package/typings/schematics/ng-update/upgrade-rules/attribute-selectors-rule.d.ts +25 -0
  200. package/typings/schematics/ng-update/upgrade-rules/class-inheritance-rule.d.ts +26 -0
  201. package/{schematics/ng-update/upgrade-rules/class-names/classNamesIdentifierRule.d.ts → typings/schematics/ng-update/upgrade-rules/class-names-rule.d.ts} +7 -7
  202. package/typings/schematics/ng-update/upgrade-rules/constructor-signature-rule.d.ts +29 -0
  203. package/typings/schematics/ng-update/upgrade-rules/css-selectors-rule.d.ts +25 -0
  204. package/typings/schematics/ng-update/upgrade-rules/element-selectors-rule.d.ts +25 -0
  205. package/typings/schematics/ng-update/upgrade-rules/index.d.ts +13 -4
  206. package/typings/schematics/ng-update/upgrade-rules/input-names-rule.d.ts +26 -0
  207. 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
  208. package/typings/schematics/ng-update/upgrade-rules/misc-template-rule.d.ts +18 -0
  209. package/typings/schematics/ng-update/upgrade-rules/output-names-rule.d.ts +22 -0
  210. package/typings/schematics/ng-update/upgrade-rules/property-names-rule.d.ts +22 -0
  211. package/typings/schematics/update-tool/component-resource-collector.d.ts +41 -0
  212. package/typings/schematics/update-tool/index.d.ts +13 -0
  213. package/typings/schematics/update-tool/migration-rule.d.ts +45 -0
  214. package/typings/schematics/update-tool/public-api.d.ts +12 -0
  215. package/typings/schematics/{ng-update → update-tool}/target-version.d.ts +3 -3
  216. package/typings/schematics/update-tool/utils/decorators.d.ts +23 -0
  217. package/typings/schematics/update-tool/utils/functions.d.ts +14 -0
  218. package/typings/schematics/update-tool/utils/imports.d.ts +15 -0
  219. package/typings/schematics/update-tool/utils/line-mappings.d.ts +21 -0
  220. package/typings/schematics/update-tool/utils/parse-tsconfig.d.ts +9 -0
  221. package/typings/schematics/update-tool/utils/property-name.d.ts +18 -0
  222. package/typings/schematics/update-tool/version-changes.d.ts +32 -0
  223. package/typings/schematics/{ng-update/upgrade-rules → utils}/project-tsconfig-paths.d.ts +4 -1
  224. package/schematics/ng-update/target-version.js.map +0 -1
  225. package/schematics/ng-update/tslint/component-file.d.ts +0 -14
  226. package/schematics/ng-update/tslint/component-file.js +0 -31
  227. package/schematics/ng-update/tslint/component-file.js.map +0 -1
  228. package/schematics/ng-update/tslint/component-walker.d.ts +0 -47
  229. package/schematics/ng-update/tslint/component-walker.js +0 -142
  230. package/schematics/ng-update/tslint/component-walker.js.map +0 -1
  231. package/schematics/ng-update/tslint/external-failure-walker.d.ts +0 -25
  232. package/schematics/ng-update/tslint/external-failure-walker.js +0 -38
  233. package/schematics/ng-update/tslint/external-failure-walker.js.map +0 -1
  234. package/schematics/ng-update/upgrade-rules/attribute-selectors/attributeSelectorsStringLiteralRule.d.ts +0 -16
  235. package/schematics/ng-update/upgrade-rules/attribute-selectors/attributeSelectorsStringLiteralRule.js +0 -49
  236. package/schematics/ng-update/upgrade-rules/attribute-selectors/attributeSelectorsStringLiteralRule.js.map +0 -1
  237. package/schematics/ng-update/upgrade-rules/attribute-selectors/attributeSelectorsStylesheetRule.d.ts +0 -31
  238. package/schematics/ng-update/upgrade-rules/attribute-selectors/attributeSelectorsStylesheetRule.js +0 -62
  239. package/schematics/ng-update/upgrade-rules/attribute-selectors/attributeSelectorsStylesheetRule.js.map +0 -1
  240. package/schematics/ng-update/upgrade-rules/attribute-selectors/attributeSelectorsTemplateRule.d.ts +0 -30
  241. package/schematics/ng-update/upgrade-rules/attribute-selectors/attributeSelectorsTemplateRule.js +0 -59
  242. package/schematics/ng-update/upgrade-rules/attribute-selectors/attributeSelectorsTemplateRule.js.map +0 -1
  243. package/schematics/ng-update/upgrade-rules/class-inheritance/classInheritanceCheckRule.d.ts +0 -26
  244. package/schematics/ng-update/upgrade-rules/class-inheritance/classInheritanceCheckRule.js.map +0 -1
  245. package/schematics/ng-update/upgrade-rules/class-names/classNamesIdentifierRule.js.map +0 -1
  246. package/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsStringLiteralRule.d.ts +0 -24
  247. package/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsStringLiteralRule.js +0 -53
  248. package/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsStringLiteralRule.js.map +0 -1
  249. package/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsStylesheetRule.d.ts +0 -31
  250. package/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsStylesheetRule.js +0 -63
  251. package/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsStylesheetRule.js.map +0 -1
  252. package/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsTemplateRule.d.ts +0 -30
  253. package/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsTemplateRule.js +0 -62
  254. package/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsTemplateRule.js.map +0 -1
  255. package/schematics/ng-update/upgrade-rules/element-selectors/elementSelectorsStringLiteralRule.d.ts +0 -24
  256. package/schematics/ng-update/upgrade-rules/element-selectors/elementSelectorsStringLiteralRule.js +0 -50
  257. package/schematics/ng-update/upgrade-rules/element-selectors/elementSelectorsStringLiteralRule.js.map +0 -1
  258. package/schematics/ng-update/upgrade-rules/element-selectors/elementSelectorsStylesheetRule.d.ts +0 -31
  259. package/schematics/ng-update/upgrade-rules/element-selectors/elementSelectorsStylesheetRule.js +0 -60
  260. package/schematics/ng-update/upgrade-rules/element-selectors/elementSelectorsStylesheetRule.js.map +0 -1
  261. package/schematics/ng-update/upgrade-rules/element-selectors/elementSelectorsTemplateRule.d.ts +0 -30
  262. package/schematics/ng-update/upgrade-rules/element-selectors/elementSelectorsTemplateRule.js +0 -59
  263. package/schematics/ng-update/upgrade-rules/element-selectors/elementSelectorsTemplateRule.js.map +0 -1
  264. package/schematics/ng-update/upgrade-rules/input-names/inputNamesStylesheetRule.d.ts +0 -36
  265. package/schematics/ng-update/upgrade-rules/input-names/inputNamesStylesheetRule.js +0 -67
  266. package/schematics/ng-update/upgrade-rules/input-names/inputNamesStylesheetRule.js.map +0 -1
  267. package/schematics/ng-update/upgrade-rules/input-names/inputNamesTemplateRule.d.ts +0 -30
  268. package/schematics/ng-update/upgrade-rules/input-names/inputNamesTemplateRule.js +0 -67
  269. package/schematics/ng-update/upgrade-rules/input-names/inputNamesTemplateRule.js.map +0 -1
  270. package/schematics/ng-update/upgrade-rules/misc-checks/checkTemplateMiscRule.d.ts +0 -23
  271. package/schematics/ng-update/upgrade-rules/misc-checks/checkTemplateMiscRule.js +0 -49
  272. package/schematics/ng-update/upgrade-rules/misc-checks/checkTemplateMiscRule.js.map +0 -1
  273. package/schematics/ng-update/upgrade-rules/output-names/outputNamesTemplateRule.d.ts +0 -30
  274. package/schematics/ng-update/upgrade-rules/output-names/outputNamesTemplateRule.js +0 -67
  275. package/schematics/ng-update/upgrade-rules/output-names/outputNamesTemplateRule.js.map +0 -1
  276. package/schematics/ng-update/upgrade-rules/project-tsconfig-paths.js.map +0 -1
  277. package/schematics/ng-update/upgrade-rules/property-names/propertyNamesAccessRule.d.ts +0 -22
  278. package/schematics/ng-update/upgrade-rules/property-names/propertyNamesAccessRule.js +0 -46
  279. package/schematics/ng-update/upgrade-rules/property-names/propertyNamesAccessRule.js.map +0 -1
  280. package/schematics/ng-update/upgrade-rules/signature-check/constructorSignatureCheckRule.d.ts +0 -16
  281. package/schematics/ng-update/upgrade-rules/signature-check/constructorSignatureCheckRule.js +0 -132
  282. package/schematics/ng-update/upgrade-rules/signature-check/constructorSignatureCheckRule.js.map +0 -1
  283. package/schematics/ng-update/upgrade-rules/signature-check/methodCallsCheckRule.js +0 -58
  284. package/schematics/ng-update/upgrade-rules/signature-check/methodCallsCheckRule.js.map +0 -1
  285. package/schematics/ng-update/upgrade-rules/tslint-config.d.ts +0 -32
  286. package/schematics/ng-update/upgrade-rules/tslint-config.js +0 -87
  287. package/schematics/ng-update/upgrade-rules/tslint-config.js.map +0 -1
  288. package/typings/schematics/ng-update/tslint/component-file.d.ts +0 -14
  289. package/typings/schematics/ng-update/tslint/component-walker.d.ts +0 -47
  290. package/typings/schematics/ng-update/tslint/external-failure-walker.d.ts +0 -25
  291. package/typings/schematics/ng-update/upgrade-rules/attribute-selectors/attributeSelectorsStringLiteralRule.d.ts +0 -16
  292. package/typings/schematics/ng-update/upgrade-rules/attribute-selectors/attributeSelectorsStylesheetRule.d.ts +0 -31
  293. package/typings/schematics/ng-update/upgrade-rules/attribute-selectors/attributeSelectorsTemplateRule.d.ts +0 -30
  294. package/typings/schematics/ng-update/upgrade-rules/class-inheritance/classInheritanceCheckRule.d.ts +0 -26
  295. package/typings/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsStringLiteralRule.d.ts +0 -24
  296. package/typings/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsStylesheetRule.d.ts +0 -31
  297. package/typings/schematics/ng-update/upgrade-rules/css-selectors/cssSelectorsTemplateRule.d.ts +0 -30
  298. package/typings/schematics/ng-update/upgrade-rules/element-selectors/elementSelectorsStringLiteralRule.d.ts +0 -24
  299. package/typings/schematics/ng-update/upgrade-rules/element-selectors/elementSelectorsStylesheetRule.d.ts +0 -31
  300. package/typings/schematics/ng-update/upgrade-rules/element-selectors/elementSelectorsTemplateRule.d.ts +0 -30
  301. package/typings/schematics/ng-update/upgrade-rules/input-names/inputNamesStylesheetRule.d.ts +0 -36
  302. package/typings/schematics/ng-update/upgrade-rules/input-names/inputNamesTemplateRule.d.ts +0 -30
  303. package/typings/schematics/ng-update/upgrade-rules/misc-checks/checkTemplateMiscRule.d.ts +0 -23
  304. package/typings/schematics/ng-update/upgrade-rules/output-names/outputNamesTemplateRule.d.ts +0 -30
  305. package/typings/schematics/ng-update/upgrade-rules/property-names/propertyNamesAccessRule.d.ts +0 -22
  306. package/typings/schematics/ng-update/upgrade-rules/signature-check/constructorSignatureCheckRule.d.ts +0 -16
  307. 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
- }
@@ -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
- }
@@ -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
- }
@@ -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
- }
@@ -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
- }
@@ -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
- }
@@ -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
- }
@@ -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
- }