@angular/cdk 19.2.13 → 19.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (429) hide show
  1. package/_adev_assets/cdk_testing.json +7032 -1
  2. package/_adev_assets/cdk_testing_protractor.json +1747 -1
  3. package/_adev_assets/cdk_testing_selenium_webdriver.json +1801 -1
  4. package/_adev_assets/cdk_testing_testbed.json +1903 -1
  5. package/dialog/index.d.ts +17 -12
  6. package/fesm2022/cdk.mjs +1 -1
  7. package/fesm2022/cdk.mjs.map +1 -1
  8. package/fesm2022/dialog.mjs +21 -9
  9. package/fesm2022/dialog.mjs.map +1 -1
  10. package/fesm2022/testing.mjs +255 -52
  11. package/fesm2022/testing.mjs.map +1 -1
  12. package/{harness-environment.d-BatBdODN.d.ts → harness-environment.d-BbFzIFDE.d.ts} +362 -89
  13. package/package.json +1 -1
  14. package/schematics/ng-add/index.js +1 -1
  15. package/testing/index.d.ts +6 -2
  16. package/testing/selenium-webdriver/index.d.ts +1 -1
  17. package/testing/testbed/index.d.ts +1 -1
  18. package/npm_package/LICENSE +0 -21
  19. package/npm_package/README.md +0 -6
  20. package/npm_package/_adev_assets/cdk_testing.json +0 -1
  21. package/npm_package/_adev_assets/cdk_testing_protractor.json +0 -1
  22. package/npm_package/_adev_assets/cdk_testing_selenium_webdriver.json +0 -1
  23. package/npm_package/_adev_assets/cdk_testing_testbed.json +0 -1
  24. package/npm_package/_index.scss +0 -8
  25. package/npm_package/a11y/_index.scss +0 -60
  26. package/npm_package/a11y/index.d.ts +0 -550
  27. package/npm_package/a11y-module.d-DBHGyKoh.d.ts +0 -314
  28. package/npm_package/a11y-prebuilt.css +0 -1
  29. package/npm_package/accordion/index.d.ts +0 -90
  30. package/npm_package/activedescendant-key-manager.d-Bjic5obv.d.ts +0 -32
  31. package/npm_package/bidi/index.d.ts +0 -21
  32. package/npm_package/bidi-module.d-D-fEBKdS.d.ts +0 -54
  33. package/npm_package/clipboard/index.d.ts +0 -101
  34. package/npm_package/coercion/index.d.ts +0 -45
  35. package/npm_package/coercion/private/index.d.ts +0 -9
  36. package/npm_package/collections/index.d.ts +0 -99
  37. package/npm_package/data-source.d-Bblv7Zvh.d.ts +0 -43
  38. package/npm_package/dialog/index.d.ts +0 -426
  39. package/npm_package/drag-drop/index.d.ts +0 -1383
  40. package/npm_package/fesm2022/a11y-module-BYox5gpI.mjs +0 -952
  41. package/npm_package/fesm2022/a11y-module-BYox5gpI.mjs.map +0 -1
  42. package/npm_package/fesm2022/a11y.mjs +0 -539
  43. package/npm_package/fesm2022/a11y.mjs.map +0 -1
  44. package/npm_package/fesm2022/accordion.mjs +0 -210
  45. package/npm_package/fesm2022/accordion.mjs.map +0 -1
  46. package/npm_package/fesm2022/activedescendant-key-manager-DC3-fwQI.mjs +0 -16
  47. package/npm_package/fesm2022/activedescendant-key-manager-DC3-fwQI.mjs.map +0 -1
  48. package/npm_package/fesm2022/array-I1yfCXUO.mjs +0 -6
  49. package/npm_package/fesm2022/array-I1yfCXUO.mjs.map +0 -1
  50. package/npm_package/fesm2022/backwards-compatibility-DHR38MsD.mjs +0 -25
  51. package/npm_package/fesm2022/backwards-compatibility-DHR38MsD.mjs.map +0 -1
  52. package/npm_package/fesm2022/bidi.mjs +0 -80
  53. package/npm_package/fesm2022/bidi.mjs.map +0 -1
  54. package/npm_package/fesm2022/boolean-property-DaaVhX5A.mjs +0 -7
  55. package/npm_package/fesm2022/boolean-property-DaaVhX5A.mjs.map +0 -1
  56. package/npm_package/fesm2022/breakpoints-observer-CljOfYGy.mjs +0 -179
  57. package/npm_package/fesm2022/breakpoints-observer-CljOfYGy.mjs.map +0 -1
  58. package/npm_package/fesm2022/cdk.mjs +0 -7
  59. package/npm_package/fesm2022/cdk.mjs.map +0 -1
  60. package/npm_package/fesm2022/clipboard.mjs +0 -211
  61. package/npm_package/fesm2022/clipboard.mjs.map +0 -1
  62. package/npm_package/fesm2022/coercion/private.mjs +0 -15
  63. package/npm_package/fesm2022/coercion/private.mjs.map +0 -1
  64. package/npm_package/fesm2022/coercion.mjs +0 -39
  65. package/npm_package/fesm2022/coercion.mjs.map +0 -1
  66. package/npm_package/fesm2022/collections.mjs +0 -8
  67. package/npm_package/fesm2022/collections.mjs.map +0 -1
  68. package/npm_package/fesm2022/css-pixel-value-C_HEqLhI.mjs +0 -10
  69. package/npm_package/fesm2022/css-pixel-value-C_HEqLhI.mjs.map +0 -1
  70. package/npm_package/fesm2022/data-source-D34wiQZj.mjs +0 -15
  71. package/npm_package/fesm2022/data-source-D34wiQZj.mjs.map +0 -1
  72. package/npm_package/fesm2022/dialog.mjs +0 -870
  73. package/npm_package/fesm2022/dialog.mjs.map +0 -1
  74. package/npm_package/fesm2022/directionality-CBXD4hga.mjs +0 -72
  75. package/npm_package/fesm2022/directionality-CBXD4hga.mjs.map +0 -1
  76. package/npm_package/fesm2022/dispose-view-repeater-strategy-D_JReLI1.mjs +0 -44
  77. package/npm_package/fesm2022/dispose-view-repeater-strategy-D_JReLI1.mjs.map +0 -1
  78. package/npm_package/fesm2022/drag-drop.mjs +0 -4359
  79. package/npm_package/fesm2022/drag-drop.mjs.map +0 -1
  80. package/npm_package/fesm2022/element-x4z00URv.mjs +0 -29
  81. package/npm_package/fesm2022/element-x4z00URv.mjs.map +0 -1
  82. package/npm_package/fesm2022/fake-event-detection-DWOdFTFz.mjs +0 -24
  83. package/npm_package/fesm2022/fake-event-detection-DWOdFTFz.mjs.map +0 -1
  84. package/npm_package/fesm2022/focus-key-manager-C1rAQJ5z.mjs +0 -22
  85. package/npm_package/fesm2022/focus-key-manager-C1rAQJ5z.mjs.map +0 -1
  86. package/npm_package/fesm2022/focus-monitor-e2l_RpN3.mjs +0 -629
  87. package/npm_package/fesm2022/focus-monitor-e2l_RpN3.mjs.map +0 -1
  88. package/npm_package/fesm2022/id-generator-Dw_9dSDu.mjs +0 -37
  89. package/npm_package/fesm2022/id-generator-Dw_9dSDu.mjs.map +0 -1
  90. package/npm_package/fesm2022/keycodes-CpHkExLC.mjs +0 -122
  91. package/npm_package/fesm2022/keycodes-CpHkExLC.mjs.map +0 -1
  92. package/npm_package/fesm2022/keycodes.mjs +0 -15
  93. package/npm_package/fesm2022/keycodes.mjs.map +0 -1
  94. package/npm_package/fesm2022/layout.mjs +0 -43
  95. package/npm_package/fesm2022/layout.mjs.map +0 -1
  96. package/npm_package/fesm2022/list-key-manager-CyOIXo8P.mjs +0 -360
  97. package/npm_package/fesm2022/list-key-manager-CyOIXo8P.mjs.map +0 -1
  98. package/npm_package/fesm2022/listbox.mjs +0 -925
  99. package/npm_package/fesm2022/listbox.mjs.map +0 -1
  100. package/npm_package/fesm2022/menu.mjs +0 -1966
  101. package/npm_package/fesm2022/menu.mjs.map +0 -1
  102. package/npm_package/fesm2022/observers/private.mjs +0 -124
  103. package/npm_package/fesm2022/observers/private.mjs.map +0 -1
  104. package/npm_package/fesm2022/observers.mjs +0 -210
  105. package/npm_package/fesm2022/observers.mjs.map +0 -1
  106. package/npm_package/fesm2022/overlay-module-BUj0D19H.mjs +0 -3029
  107. package/npm_package/fesm2022/overlay-module-BUj0D19H.mjs.map +0 -1
  108. package/npm_package/fesm2022/overlay.mjs +0 -102
  109. package/npm_package/fesm2022/overlay.mjs.map +0 -1
  110. package/npm_package/fesm2022/passive-listeners-esHZRgIN.mjs +0 -31
  111. package/npm_package/fesm2022/passive-listeners-esHZRgIN.mjs.map +0 -1
  112. package/npm_package/fesm2022/platform-DmdVEw_C.mjs +0 -77
  113. package/npm_package/fesm2022/platform-DmdVEw_C.mjs.map +0 -1
  114. package/npm_package/fesm2022/platform.mjs +0 -74
  115. package/npm_package/fesm2022/platform.mjs.map +0 -1
  116. package/npm_package/fesm2022/portal-directives-Bw5woq8I.mjs +0 -653
  117. package/npm_package/fesm2022/portal-directives-Bw5woq8I.mjs.map +0 -1
  118. package/npm_package/fesm2022/portal.mjs +0 -29
  119. package/npm_package/fesm2022/portal.mjs.map +0 -1
  120. package/npm_package/fesm2022/private.mjs +0 -19
  121. package/npm_package/fesm2022/private.mjs.map +0 -1
  122. package/npm_package/fesm2022/recycle-view-repeater-strategy-DoWdPqVw.mjs +0 -156
  123. package/npm_package/fesm2022/recycle-view-repeater-strategy-DoWdPqVw.mjs.map +0 -1
  124. package/npm_package/fesm2022/scrolling-BkvA05C8.mjs +0 -99
  125. package/npm_package/fesm2022/scrolling-BkvA05C8.mjs.map +0 -1
  126. package/npm_package/fesm2022/scrolling.mjs +0 -1464
  127. package/npm_package/fesm2022/scrolling.mjs.map +0 -1
  128. package/npm_package/fesm2022/selection-model-CeeHVIcP.mjs +0 -226
  129. package/npm_package/fesm2022/selection-model-CeeHVIcP.mjs.map +0 -1
  130. package/npm_package/fesm2022/shadow-dom-B0oHn41l.mjs +0 -49
  131. package/npm_package/fesm2022/shadow-dom-B0oHn41l.mjs.map +0 -1
  132. package/npm_package/fesm2022/stepper.mjs +0 -614
  133. package/npm_package/fesm2022/stepper.mjs.map +0 -1
  134. package/npm_package/fesm2022/style-loader-Cu9AvjH9.mjs +0 -47
  135. package/npm_package/fesm2022/style-loader-Cu9AvjH9.mjs.map +0 -1
  136. package/npm_package/fesm2022/table.mjs +0 -2602
  137. package/npm_package/fesm2022/table.mjs.map +0 -1
  138. package/npm_package/fesm2022/test-environment-CT0XxPyp.mjs +0 -19
  139. package/npm_package/fesm2022/test-environment-CT0XxPyp.mjs.map +0 -1
  140. package/npm_package/fesm2022/testing/selenium-webdriver.mjs +0 -353
  141. package/npm_package/fesm2022/testing/selenium-webdriver.mjs.map +0 -1
  142. package/npm_package/fesm2022/testing/testbed.mjs +0 -782
  143. package/npm_package/fesm2022/testing/testbed.mjs.map +0 -1
  144. package/npm_package/fesm2022/testing.mjs +0 -698
  145. package/npm_package/fesm2022/testing.mjs.map +0 -1
  146. package/npm_package/fesm2022/text-field.mjs +0 -437
  147. package/npm_package/fesm2022/text-field.mjs.map +0 -1
  148. package/npm_package/fesm2022/tree-key-manager-KnCoIkIC.mjs +0 -360
  149. package/npm_package/fesm2022/tree-key-manager-KnCoIkIC.mjs.map +0 -1
  150. package/npm_package/fesm2022/tree.mjs +0 -1795
  151. package/npm_package/fesm2022/tree.mjs.map +0 -1
  152. package/npm_package/fesm2022/typeahead-9ZW4Dtsf.mjs +0 -88
  153. package/npm_package/fesm2022/typeahead-9ZW4Dtsf.mjs.map +0 -1
  154. package/npm_package/fesm2022/unique-selection-dispatcher-DtHZDqyJ.mjs +0 -49
  155. package/npm_package/fesm2022/unique-selection-dispatcher-DtHZDqyJ.mjs.map +0 -1
  156. package/npm_package/focus-key-manager.d-BIKDy8oD.d.ts +0 -34
  157. package/npm_package/focus-monitor.d-CvvJeQRc.d.ts +0 -210
  158. package/npm_package/harness-environment.d-BatBdODN.d.ts +0 -620
  159. package/npm_package/index.d.ts +0 -6
  160. package/npm_package/keycodes/index.d.ts +0 -129
  161. package/npm_package/layout/index.d.ts +0 -89
  162. package/npm_package/list-key-manager.d-BlK3jyRn.d.ts +0 -165
  163. package/npm_package/listbox/index.d.ts +0 -353
  164. package/npm_package/menu/index.d.ts +0 -821
  165. package/npm_package/number-property.d-CJVxXUcb.d.ts +0 -16
  166. package/npm_package/observers/index.d.ts +0 -84
  167. package/npm_package/observers/private/index.d.ts +0 -34
  168. package/npm_package/overlay/_index-deprecated.scss +0 -13
  169. package/npm_package/overlay/_index.scss +0 -193
  170. package/npm_package/overlay/index.d.ts +0 -42
  171. package/npm_package/overlay-module.d-B3qEQtts.d.ts +0 -791
  172. package/npm_package/overlay-prebuilt.css +0 -1
  173. package/npm_package/overlay.d-BdoMy0hX.d.ts +0 -296
  174. package/npm_package/package.json +0 -186
  175. package/npm_package/platform/index.d.ts +0 -83
  176. package/npm_package/platform.d-B3vREl3q.d.ts +0 -33
  177. package/npm_package/portal/index.d.ts +0 -86
  178. package/npm_package/portal-directives.d-BoG39gYN.d.ts +0 -232
  179. package/npm_package/private/index.d.ts +0 -13
  180. package/npm_package/schematics/collection.json +0 -18
  181. package/npm_package/schematics/index.d.ts +0 -14
  182. package/npm_package/schematics/index.js +0 -37
  183. package/npm_package/schematics/index.js.map +0 -1
  184. package/npm_package/schematics/migration.json +0 -15
  185. package/npm_package/schematics/ng-add/index.d.ts +0 -17
  186. package/npm_package/schematics/ng-add/index.js +0 -39
  187. package/npm_package/schematics/ng-add/index.js.map +0 -1
  188. package/npm_package/schematics/ng-add/package-config.d.ts +0 -12
  189. package/npm_package/schematics/ng-add/package-config.js +0 -51
  190. package/npm_package/schematics/ng-add/package-config.js.map +0 -1
  191. package/npm_package/schematics/ng-add/schema.d.ts +0 -11
  192. package/npm_package/schematics/ng-add/schema.js +0 -10
  193. package/npm_package/schematics/ng-add/schema.js.map +0 -1
  194. package/npm_package/schematics/ng-add/schema.json +0 -16
  195. package/npm_package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__style__.template +0 -53
  196. package/npm_package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +0 -21
  197. package/npm_package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +0 -25
  198. package/npm_package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +0 -45
  199. package/npm_package/schematics/ng-generate/drag-drop/index.d.ts +0 -11
  200. package/npm_package/schematics/ng-generate/drag-drop/index.js +0 -42
  201. package/npm_package/schematics/ng-generate/drag-drop/index.js.map +0 -1
  202. package/npm_package/schematics/ng-generate/drag-drop/schema.d.ts +0 -10
  203. package/npm_package/schematics/ng-generate/drag-drop/schema.js +0 -10
  204. package/npm_package/schematics/ng-generate/drag-drop/schema.js.map +0 -1
  205. package/npm_package/schematics/ng-generate/drag-drop/schema.json +0 -100
  206. package/npm_package/schematics/ng-update/data/attribute-selectors.d.ts +0 -15
  207. package/npm_package/schematics/ng-update/data/attribute-selectors.js +0 -12
  208. package/npm_package/schematics/ng-update/data/attribute-selectors.js.map +0 -1
  209. package/npm_package/schematics/ng-update/data/class-names.d.ts +0 -15
  210. package/npm_package/schematics/ng-update/data/class-names.js +0 -12
  211. package/npm_package/schematics/ng-update/data/class-names.js.map +0 -1
  212. package/npm_package/schematics/ng-update/data/constructor-checks.d.ts +0 -15
  213. package/npm_package/schematics/ng-update/data/constructor-checks.js +0 -17
  214. package/npm_package/schematics/ng-update/data/constructor-checks.js.map +0 -1
  215. package/npm_package/schematics/ng-update/data/css-selectors.d.ts +0 -27
  216. package/npm_package/schematics/ng-update/data/css-selectors.js +0 -12
  217. package/npm_package/schematics/ng-update/data/css-selectors.js.map +0 -1
  218. package/npm_package/schematics/ng-update/data/css-tokens.d.ts +0 -27
  219. package/npm_package/schematics/ng-update/data/css-tokens.js +0 -12
  220. package/npm_package/schematics/ng-update/data/css-tokens.js.map +0 -1
  221. package/npm_package/schematics/ng-update/data/element-selectors.d.ts +0 -15
  222. package/npm_package/schematics/ng-update/data/element-selectors.js +0 -12
  223. package/npm_package/schematics/ng-update/data/element-selectors.js.map +0 -1
  224. package/npm_package/schematics/ng-update/data/index.d.ts +0 -18
  225. package/npm_package/schematics/ng-update/data/index.js +0 -35
  226. package/npm_package/schematics/ng-update/data/index.js.map +0 -1
  227. package/npm_package/schematics/ng-update/data/input-names.d.ts +0 -22
  228. package/npm_package/schematics/ng-update/data/input-names.js +0 -12
  229. package/npm_package/schematics/ng-update/data/input-names.js.map +0 -1
  230. package/npm_package/schematics/ng-update/data/method-call-checks.d.ts +0 -17
  231. package/npm_package/schematics/ng-update/data/method-call-checks.js +0 -12
  232. package/npm_package/schematics/ng-update/data/method-call-checks.js.map +0 -1
  233. package/npm_package/schematics/ng-update/data/output-names.d.ts +0 -22
  234. package/npm_package/schematics/ng-update/data/output-names.js +0 -12
  235. package/npm_package/schematics/ng-update/data/output-names.js.map +0 -1
  236. package/npm_package/schematics/ng-update/data/property-names.d.ts +0 -20
  237. package/npm_package/schematics/ng-update/data/property-names.js +0 -12
  238. package/npm_package/schematics/ng-update/data/property-names.js.map +0 -1
  239. package/npm_package/schematics/ng-update/data/symbol-removal.d.ts +0 -17
  240. package/npm_package/schematics/ng-update/data/symbol-removal.js +0 -12
  241. package/npm_package/schematics/ng-update/data/symbol-removal.js.map +0 -1
  242. package/npm_package/schematics/ng-update/devkit-file-system.d.ts +0 -30
  243. package/npm_package/schematics/ng-update/devkit-file-system.js +0 -83
  244. package/npm_package/schematics/ng-update/devkit-file-system.js.map +0 -1
  245. package/npm_package/schematics/ng-update/devkit-migration-rule.d.ts +0 -24
  246. package/npm_package/schematics/ng-update/devkit-migration-rule.js +0 -142
  247. package/npm_package/schematics/ng-update/devkit-migration-rule.js.map +0 -1
  248. package/npm_package/schematics/ng-update/devkit-migration.d.ts +0 -35
  249. package/npm_package/schematics/ng-update/devkit-migration.js +0 -20
  250. package/npm_package/schematics/ng-update/devkit-migration.js.map +0 -1
  251. package/npm_package/schematics/ng-update/find-stylesheets.d.ts +0 -16
  252. package/npm_package/schematics/ng-update/find-stylesheets.js +0 -41
  253. package/npm_package/schematics/ng-update/find-stylesheets.js.map +0 -1
  254. package/npm_package/schematics/ng-update/html-parsing/angular.d.ts +0 -15
  255. package/npm_package/schematics/ng-update/html-parsing/angular.js +0 -51
  256. package/npm_package/schematics/ng-update/html-parsing/angular.js.map +0 -1
  257. package/npm_package/schematics/ng-update/html-parsing/elements.d.ts +0 -24
  258. package/npm_package/schematics/ng-update/html-parsing/elements.js +0 -63
  259. package/npm_package/schematics/ng-update/html-parsing/elements.js.map +0 -1
  260. package/npm_package/schematics/ng-update/index.d.ts +0 -10
  261. package/npm_package/schematics/ng-update/index.js +0 -29
  262. package/npm_package/schematics/ng-update/index.js.map +0 -1
  263. package/npm_package/schematics/ng-update/migrations/attribute-selectors.d.ts +0 -26
  264. package/npm_package/schematics/ng-update/migrations/attribute-selectors.js +0 -71
  265. package/npm_package/schematics/ng-update/migrations/attribute-selectors.js.map +0 -1
  266. package/npm_package/schematics/ng-update/migrations/class-inheritance.d.ts +0 -26
  267. package/npm_package/schematics/ng-update/migrations/class-inheritance.js +0 -58
  268. package/npm_package/schematics/ng-update/migrations/class-inheritance.js.map +0 -1
  269. package/npm_package/schematics/ng-update/migrations/class-names.d.ts +0 -32
  270. package/npm_package/schematics/ng-update/migrations/class-names.js +0 -91
  271. package/npm_package/schematics/ng-update/migrations/class-names.js.map +0 -1
  272. package/npm_package/schematics/ng-update/migrations/constructor-signature.d.ts +0 -29
  273. package/npm_package/schematics/ng-update/migrations/constructor-signature.js +0 -139
  274. package/npm_package/schematics/ng-update/migrations/constructor-signature.js.map +0 -1
  275. package/npm_package/schematics/ng-update/migrations/css-selectors.d.ts +0 -26
  276. package/npm_package/schematics/ng-update/migrations/css-selectors.js +0 -75
  277. package/npm_package/schematics/ng-update/migrations/css-selectors.js.map +0 -1
  278. package/npm_package/schematics/ng-update/migrations/css-tokens.d.ts +0 -26
  279. package/npm_package/schematics/ng-update/migrations/css-tokens.js +0 -83
  280. package/npm_package/schematics/ng-update/migrations/css-tokens.js.map +0 -1
  281. package/npm_package/schematics/ng-update/migrations/element-selectors.d.ts +0 -26
  282. package/npm_package/schematics/ng-update/migrations/element-selectors.js +0 -66
  283. package/npm_package/schematics/ng-update/migrations/element-selectors.js.map +0 -1
  284. package/npm_package/schematics/ng-update/migrations/input-names.d.ts +0 -26
  285. package/npm_package/schematics/ng-update/migrations/input-names.js +0 -59
  286. package/npm_package/schematics/ng-update/migrations/input-names.js.map +0 -1
  287. package/npm_package/schematics/ng-update/migrations/method-call-arguments.d.ts +0 -22
  288. package/npm_package/schematics/ng-update/migrations/method-call-arguments.js +0 -62
  289. package/npm_package/schematics/ng-update/migrations/method-call-arguments.js.map +0 -1
  290. package/npm_package/schematics/ng-update/migrations/misc-template.d.ts +0 -18
  291. package/npm_package/schematics/ng-update/migrations/misc-template.js +0 -25
  292. package/npm_package/schematics/ng-update/migrations/misc-template.js.map +0 -1
  293. package/npm_package/schematics/ng-update/migrations/output-names.d.ts +0 -22
  294. package/npm_package/schematics/ng-update/migrations/output-names.js +0 -46
  295. package/npm_package/schematics/ng-update/migrations/output-names.js.map +0 -1
  296. package/npm_package/schematics/ng-update/migrations/property-names.d.ts +0 -22
  297. package/npm_package/schematics/ng-update/migrations/property-names.js +0 -60
  298. package/npm_package/schematics/ng-update/migrations/property-names.js.map +0 -1
  299. package/npm_package/schematics/ng-update/migrations/symbol-removal.d.ts +0 -18
  300. package/npm_package/schematics/ng-update/migrations/symbol-removal.js +0 -47
  301. package/npm_package/schematics/ng-update/migrations/symbol-removal.js.map +0 -1
  302. package/npm_package/schematics/ng-update/public-api.d.ts +0 -19
  303. package/npm_package/schematics/ng-update/public-api.js +0 -36
  304. package/npm_package/schematics/ng-update/public-api.js.map +0 -1
  305. package/npm_package/schematics/ng-update/typescript/base-types.d.ts +0 -10
  306. package/npm_package/schematics/ng-update/typescript/base-types.js +0 -23
  307. package/npm_package/schematics/ng-update/typescript/base-types.js.map +0 -1
  308. package/npm_package/schematics/ng-update/typescript/imports.d.ts +0 -18
  309. package/npm_package/schematics/ng-update/typescript/imports.js +0 -53
  310. package/npm_package/schematics/ng-update/typescript/imports.js.map +0 -1
  311. package/npm_package/schematics/ng-update/typescript/literal.d.ts +0 -18
  312. package/npm_package/schematics/ng-update/typescript/literal.js +0 -32
  313. package/npm_package/schematics/ng-update/typescript/literal.js.map +0 -1
  314. package/npm_package/schematics/ng-update/typescript/module-specifiers.d.ts +0 -16
  315. package/npm_package/schematics/ng-update/typescript/module-specifiers.js +0 -35
  316. package/npm_package/schematics/ng-update/typescript/module-specifiers.js.map +0 -1
  317. package/npm_package/schematics/ng-update/upgrade-data.d.ts +0 -35
  318. package/npm_package/schematics/ng-update/upgrade-data.js +0 -40
  319. package/npm_package/schematics/ng-update/upgrade-data.js.map +0 -1
  320. package/npm_package/schematics/package.json +0 -3
  321. package/npm_package/schematics/paths.d.ts +0 -11
  322. package/npm_package/schematics/paths.js +0 -16
  323. package/npm_package/schematics/paths.js.map +0 -1
  324. package/npm_package/schematics/update-tool/component-resource-collector.d.ts +0 -44
  325. package/npm_package/schematics/update-tool/component-resource-collector.js +0 -164
  326. package/npm_package/schematics/update-tool/component-resource-collector.js.map +0 -1
  327. package/npm_package/schematics/update-tool/file-system.d.ts +0 -72
  328. package/npm_package/schematics/update-tool/file-system.js +0 -18
  329. package/npm_package/schematics/update-tool/file-system.js.map +0 -1
  330. package/npm_package/schematics/update-tool/index.d.ts +0 -74
  331. package/npm_package/schematics/update-tool/index.js +0 -172
  332. package/npm_package/schematics/update-tool/index.js.map +0 -1
  333. package/npm_package/schematics/update-tool/logger.d.ts +0 -15
  334. package/npm_package/schematics/update-tool/logger.js +0 -18
  335. package/npm_package/schematics/update-tool/logger.js.map +0 -1
  336. package/npm_package/schematics/update-tool/migration.d.ts +0 -87
  337. package/npm_package/schematics/update-tool/migration.js +0 -70
  338. package/npm_package/schematics/update-tool/migration.js.map +0 -1
  339. package/npm_package/schematics/update-tool/public-api.d.ts +0 -16
  340. package/npm_package/schematics/update-tool/public-api.js +0 -33
  341. package/npm_package/schematics/update-tool/public-api.js.map +0 -1
  342. package/npm_package/schematics/update-tool/target-version.d.ts +0 -16
  343. package/npm_package/schematics/update-tool/target-version.js +0 -27
  344. package/npm_package/schematics/update-tool/target-version.js.map +0 -1
  345. package/npm_package/schematics/update-tool/update-recorder.d.ts +0 -13
  346. package/npm_package/schematics/update-tool/update-recorder.js +0 -10
  347. package/npm_package/schematics/update-tool/update-recorder.js.map +0 -1
  348. package/npm_package/schematics/update-tool/utils/decorators.d.ts +0 -22
  349. package/npm_package/schematics/update-tool/utils/decorators.js +0 -41
  350. package/npm_package/schematics/update-tool/utils/decorators.js.map +0 -1
  351. package/npm_package/schematics/update-tool/utils/diagnostics.d.ts +0 -11
  352. package/npm_package/schematics/update-tool/utils/diagnostics.js +0 -18
  353. package/npm_package/schematics/update-tool/utils/diagnostics.js.map +0 -1
  354. package/npm_package/schematics/update-tool/utils/functions.d.ts +0 -14
  355. package/npm_package/schematics/update-tool/utils/functions.js +0 -20
  356. package/npm_package/schematics/update-tool/utils/functions.js.map +0 -1
  357. package/npm_package/schematics/update-tool/utils/imports.d.ts +0 -17
  358. package/npm_package/schematics/update-tool/utils/imports.js +0 -110
  359. package/npm_package/schematics/update-tool/utils/imports.js.map +0 -1
  360. package/npm_package/schematics/update-tool/utils/line-mappings.d.ts +0 -21
  361. package/npm_package/schematics/update-tool/utils/line-mappings.js +0 -75
  362. package/npm_package/schematics/update-tool/utils/line-mappings.js.map +0 -1
  363. package/npm_package/schematics/update-tool/utils/parse-tsconfig.d.ts +0 -18
  364. package/npm_package/schematics/update-tool/utils/parse-tsconfig.js +0 -45
  365. package/npm_package/schematics/update-tool/utils/parse-tsconfig.js.map +0 -1
  366. package/npm_package/schematics/update-tool/utils/property-name.d.ts +0 -18
  367. package/npm_package/schematics/update-tool/utils/property-name.js +0 -27
  368. package/npm_package/schematics/update-tool/utils/property-name.js.map +0 -1
  369. package/npm_package/schematics/update-tool/utils/virtual-host.d.ts +0 -36
  370. package/npm_package/schematics/update-tool/utils/virtual-host.js +0 -71
  371. package/npm_package/schematics/update-tool/utils/virtual-host.js.map +0 -1
  372. package/npm_package/schematics/update-tool/version-changes.d.ts +0 -32
  373. package/npm_package/schematics/update-tool/version-changes.js +0 -38
  374. package/npm_package/schematics/update-tool/version-changes.js.map +0 -1
  375. package/npm_package/schematics/utils/ast/ng-module-imports.d.ts +0 -12
  376. package/npm_package/schematics/utils/ast/ng-module-imports.js +0 -82
  377. package/npm_package/schematics/utils/ast/ng-module-imports.js.map +0 -1
  378. package/npm_package/schematics/utils/ast.d.ts +0 -25
  379. package/npm_package/schematics/utils/ast.js +0 -79
  380. package/npm_package/schematics/utils/ast.js.map +0 -1
  381. package/npm_package/schematics/utils/build-component.d.ts +0 -20
  382. package/npm_package/schematics/utils/build-component.js +0 -188
  383. package/npm_package/schematics/utils/build-component.js.map +0 -1
  384. package/npm_package/schematics/utils/get-project.d.ts +0 -13
  385. package/npm_package/schematics/utils/get-project.js +0 -28
  386. package/npm_package/schematics/utils/get-project.js.map +0 -1
  387. package/npm_package/schematics/utils/html-manipulation.d.ts +0 -15
  388. package/npm_package/schematics/utils/html-manipulation.js +0 -91
  389. package/npm_package/schematics/utils/html-manipulation.js.map +0 -1
  390. package/npm_package/schematics/utils/index.d.ts +0 -19
  391. package/npm_package/schematics/utils/index.js +0 -36
  392. package/npm_package/schematics/utils/index.js.map +0 -1
  393. package/npm_package/schematics/utils/parse5-element.d.ts +0 -12
  394. package/npm_package/schematics/utils/parse5-element.js +0 -30
  395. package/npm_package/schematics/utils/parse5-element.js.map +0 -1
  396. package/npm_package/schematics/utils/project-index-file.d.ts +0 -10
  397. package/npm_package/schematics/utils/project-index-file.js +0 -20
  398. package/npm_package/schematics/utils/project-index-file.js.map +0 -1
  399. package/npm_package/schematics/utils/project-main-file.d.ts +0 -10
  400. package/npm_package/schematics/utils/project-main-file.js +0 -25
  401. package/npm_package/schematics/utils/project-main-file.js.map +0 -1
  402. package/npm_package/schematics/utils/project-style-file.d.ts +0 -13
  403. package/npm_package/schematics/utils/project-style-file.js +0 -42
  404. package/npm_package/schematics/utils/project-style-file.js.map +0 -1
  405. package/npm_package/schematics/utils/project-targets.d.ts +0 -14
  406. package/npm_package/schematics/utils/project-targets.js +0 -46
  407. package/npm_package/schematics/utils/project-targets.js.map +0 -1
  408. package/npm_package/schematics/utils/project-tsconfig-paths.d.ts +0 -14
  409. package/npm_package/schematics/utils/project-tsconfig-paths.js +0 -46
  410. package/npm_package/schematics/utils/project-tsconfig-paths.js.map +0 -1
  411. package/npm_package/schematics/utils/schematic-options.d.ts +0 -20
  412. package/npm_package/schematics/utils/schematic-options.js +0 -89
  413. package/npm_package/schematics/utils/schematic-options.js.map +0 -1
  414. package/npm_package/scrolling/index.d.ts +0 -62
  415. package/npm_package/scrolling-module.d-ud2XrbF8.d.ts +0 -552
  416. package/npm_package/selection-model.d-C_vvNGP-.d.ts +0 -117
  417. package/npm_package/stepper/index.d.ts +0 -228
  418. package/npm_package/style-loader.d-BXZfQZTF.d.ts +0 -21
  419. package/npm_package/table/index.d.ts +0 -1100
  420. package/npm_package/testing/index.d.ts +0 -94
  421. package/npm_package/testing/selenium-webdriver/index.d.ts +0 -150
  422. package/npm_package/testing/testbed/index.d.ts +0 -157
  423. package/npm_package/text-field/_index.scss +0 -89
  424. package/npm_package/text-field/index.d.ts +0 -156
  425. package/npm_package/text-field-prebuilt.css +0 -1
  426. package/npm_package/tree/index.d.ts +0 -720
  427. package/npm_package/tree-key-manager-strategy.d-XB6M79l-.d.ts +0 -116
  428. package/npm_package/unique-selection-dispatcher.d-DSFqf1MM.d.ts +0 -33
  429. package/npm_package/view-repeater.d-BKljR8u8.d.ts +0 -89
@@ -1,188 +0,0 @@
1
- "use strict";
2
- /**
3
- * @license
4
- * Copyright Google LLC All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.dev/license
8
- */
9
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
10
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
11
- return new (P || (P = Promise))(function (resolve, reject) {
12
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
13
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
14
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
15
- step((generator = generator.apply(thisArg, _arguments || [])).next());
16
- });
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.buildComponent = buildComponent;
20
- const core_1 = require("@angular-devkit/core");
21
- const schematics_1 = require("@angular-devkit/schematics");
22
- const schema_1 = require("@schematics/angular/component/schema");
23
- const change_1 = require("@schematics/angular/utility/change");
24
- const workspace_1 = require("@schematics/angular/utility/workspace");
25
- const find_module_1 = require("@schematics/angular/utility/find-module");
26
- const parse_name_1 = require("@schematics/angular/utility/parse-name");
27
- const validation_1 = require("@schematics/angular/utility/validation");
28
- const workspace_models_1 = require("@schematics/angular/utility/workspace-models");
29
- const ast_utils_1 = require("@schematics/angular/utility/ast-utils");
30
- const fs_1 = require("fs");
31
- const path_1 = require("path");
32
- const ts = require("typescript");
33
- const get_project_1 = require("./get-project");
34
- const schematic_options_1 = require("./schematic-options");
35
- /**
36
- * Build a default project path for generating.
37
- * @param project The project to build the path for.
38
- */
39
- function buildDefaultPath(project) {
40
- const root = project.sourceRoot ? `/${project.sourceRoot}/` : `/${project.root}/src/`;
41
- const projectDirName = project.extensions['projectType'] === workspace_models_1.ProjectType.Application ? 'app' : 'lib';
42
- return `${root}${projectDirName}`;
43
- }
44
- /**
45
- * List of style extensions which are CSS compatible. All supported CLI style extensions can be
46
- * found here: angular/angular-cli/main/packages/schematics/angular/ng-new/schema.json#L118-L122
47
- */
48
- const supportedCssExtensions = ['css', 'scss', 'less'];
49
- function readIntoSourceFile(host, modulePath) {
50
- const text = host.read(modulePath);
51
- if (text === null) {
52
- throw new schematics_1.SchematicsException(`File ${modulePath} does not exist.`);
53
- }
54
- return ts.createSourceFile(modulePath, text.toString('utf-8'), ts.ScriptTarget.Latest, true);
55
- }
56
- function addDeclarationToNgModule(options) {
57
- return (host) => {
58
- if (options.skipImport || options.standalone || !options.module) {
59
- return host;
60
- }
61
- const modulePath = options.module;
62
- let source = readIntoSourceFile(host, modulePath);
63
- const componentPath = `/${options.path}/` +
64
- (options.flat ? '' : core_1.strings.dasherize(options.name) + '/') +
65
- core_1.strings.dasherize(options.name) +
66
- '.component';
67
- const relativePath = (0, find_module_1.buildRelativePath)(modulePath, componentPath);
68
- const classifiedName = core_1.strings.classify(`${options.name}Component`);
69
- const declarationChanges = (0, ast_utils_1.addDeclarationToModule)(source, modulePath, classifiedName, relativePath);
70
- const declarationRecorder = host.beginUpdate(modulePath);
71
- for (const change of declarationChanges) {
72
- if (change instanceof change_1.InsertChange) {
73
- declarationRecorder.insertLeft(change.pos, change.toAdd);
74
- }
75
- }
76
- host.commitUpdate(declarationRecorder);
77
- if (options.export) {
78
- // Need to refresh the AST because we overwrote the file in the host.
79
- source = readIntoSourceFile(host, modulePath);
80
- const exportRecorder = host.beginUpdate(modulePath);
81
- const exportChanges = (0, ast_utils_1.addExportToModule)(source, modulePath, core_1.strings.classify(`${options.name}Component`), relativePath);
82
- for (const change of exportChanges) {
83
- if (change instanceof change_1.InsertChange) {
84
- exportRecorder.insertLeft(change.pos, change.toAdd);
85
- }
86
- }
87
- host.commitUpdate(exportRecorder);
88
- }
89
- return host;
90
- };
91
- }
92
- function buildSelector(options, projectPrefix) {
93
- let selector = core_1.strings.dasherize(options.name);
94
- if (options.prefix) {
95
- selector = `${options.prefix}-${selector}`;
96
- }
97
- else if (options.prefix === undefined && projectPrefix) {
98
- selector = `${projectPrefix}-${selector}`;
99
- }
100
- return selector;
101
- }
102
- /**
103
- * Indents the text content with the amount of specified spaces. The spaces will be added after
104
- * every line-break. This utility function can be used inside of EJS templates to properly
105
- * include the additional files.
106
- */
107
- function indentTextContent(text, numSpaces) {
108
- // In the Material project there should be only LF line-endings, but the schematic files
109
- // are not being linted and therefore there can be also CRLF or just CR line-endings.
110
- return text.replace(/(\r\n|\r|\n)/g, `$1${' '.repeat(numSpaces)}`);
111
- }
112
- /**
113
- * Rule that copies and interpolates the files that belong to this schematic context. Additionally
114
- * a list of file paths can be passed to this rule in order to expose them inside the EJS
115
- * template context.
116
- *
117
- * This allows inlining the external template or stylesheet files in EJS without having
118
- * to manually duplicate the file content.
119
- */
120
- function buildComponent(options, additionalFiles = {}) {
121
- return (host, ctx) => __awaiter(this, void 0, void 0, function* () {
122
- const context = ctx;
123
- const workspace = yield (0, workspace_1.getWorkspace)(host);
124
- const project = (0, get_project_1.getProjectFromWorkspace)(workspace, options.project);
125
- const defaultComponentOptions = (0, schematic_options_1.getDefaultComponentOptions)(project);
126
- // TODO(devversion): Remove if we drop support for older CLI versions.
127
- // This handles an unreported breaking change from the @angular-devkit/schematics. Previously
128
- // the description path resolved to the factory file, but starting from 6.2.0, it resolves
129
- // to the factory directory.
130
- const schematicPath = (0, fs_1.statSync)(context.schematic.description.path).isDirectory()
131
- ? context.schematic.description.path
132
- : (0, path_1.dirname)(context.schematic.description.path);
133
- const schematicFilesUrl = './files';
134
- const schematicFilesPath = (0, path_1.resolve)(schematicPath, schematicFilesUrl);
135
- // Add the default component option values to the options if an option is not explicitly
136
- // specified but a default component option is available.
137
- Object.keys(options)
138
- .filter(key => options[key] == null &&
139
- defaultComponentOptions[key])
140
- .forEach(key => (options[key] = defaultComponentOptions[key]));
141
- if (options.path === undefined) {
142
- options.path = buildDefaultPath(project);
143
- }
144
- options.standalone = yield (0, schematic_options_1.isStandaloneSchematic)(host, options);
145
- if (!options.standalone) {
146
- options.module = (0, find_module_1.findModuleFromOptions)(host, options);
147
- }
148
- const parsedPath = (0, parse_name_1.parseName)(options.path, options.name);
149
- options.name = parsedPath.name;
150
- options.path = parsedPath.path;
151
- options.selector = options.selector || buildSelector(options, project.prefix);
152
- (0, validation_1.validateHtmlSelector)(options.selector);
153
- // In case the specified style extension is not part of the supported CSS supersets,
154
- // we generate the stylesheets with the "css" extension. This ensures that we don't
155
- // accidentally generate invalid stylesheets (e.g. drag-drop-comp.styl) which will
156
- // break the Angular CLI project. See: https://github.com/angular/components/issues/15164
157
- if (!supportedCssExtensions.includes(options.style)) {
158
- options.style = schema_1.Style.Css;
159
- }
160
- // Object that will be used as context for the EJS templates.
161
- const baseTemplateContext = Object.assign(Object.assign(Object.assign({}, core_1.strings), { 'if-flat': (s) => (options.flat ? '' : s) }), options);
162
- // Key-value object that includes the specified additional files with their loaded content.
163
- // The resolved contents can be used inside EJS templates.
164
- const resolvedFiles = {};
165
- for (let key in additionalFiles) {
166
- if (additionalFiles[key]) {
167
- const fileContent = (0, fs_1.readFileSync)((0, path_1.join)(schematicFilesPath, additionalFiles[key]), 'utf-8');
168
- // Interpolate the additional files with the base EJS template context.
169
- resolvedFiles[key] = (0, core_1.template)(fileContent)(baseTemplateContext);
170
- }
171
- }
172
- const templateSource = (0, schematics_1.apply)((0, schematics_1.url)(schematicFilesUrl), [
173
- options.skipTests ? (0, schematics_1.filter)(path => !path.endsWith('.spec.ts.template')) : (0, schematics_1.noop)(),
174
- options.inlineStyle ? (0, schematics_1.filter)(path => !path.endsWith('.__style__.template')) : (0, schematics_1.noop)(),
175
- options.inlineTemplate ? (0, schematics_1.filter)(path => !path.endsWith('.html.template')) : (0, schematics_1.noop)(),
176
- // Treat the template options as any, because the type definition for the template options
177
- // is made unnecessarily explicit. Every type of object can be used in the EJS template.
178
- (0, schematics_1.applyTemplates)(Object.assign({ indentTextContent, resolvedFiles }, baseTemplateContext)),
179
- // TODO(devversion): figure out why we cannot just remove the first parameter
180
- // See for example: angular-cli#schematics/angular/component/index.ts#L160
181
- (0, schematics_1.move)(null, parsedPath.path),
182
- ]);
183
- return () => (0, schematics_1.chain)([
184
- (0, schematics_1.branchAndMerge)((0, schematics_1.chain)([addDeclarationToNgModule(options), (0, schematics_1.mergeWith)(templateSource)])),
185
- ])(host, context);
186
- });
187
- }
188
- //# sourceMappingURL=build-component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"build-component.js","sourceRoot":"","sources":["build-component.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;AAkJH,wCAmGC;AAnPD,+CAA0F;AAC1F,2DAaoC;AAEpC,iEAAuF;AACvF,+DAAgE;AAChE,qEAAmE;AACnE,yEAAiG;AACjG,uEAAiE;AACjE,uEAA4E;AAC5E,mFAAyE;AACzE,qEAAgG;AAChG,2BAA0C;AAC1C,+BAA4C;AAC5C,iCAAiC;AACjC,+CAAsD;AACtD,2DAAsF;AAEtF;;;GAGG;AACH,SAAS,gBAAgB,CAAC,OAAqC;IAC7D,MAAM,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,IAAI,OAAO,CAAC;IAEtF,MAAM,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AC,CAAC,IAAI,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,iBAAI,GAAE;YACpF,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,IAAA,mBAAM,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,iBAAI,GAAE;YAClF,0FAA0F;YAC1F,wFAAwF;YACxF,IAAA,2BAAc,EAAC,gBAAC,iBAAiB,EAAE,aAAa,IAAK,mBAAmB,CAAQ,CAAC;YACjF,6EAA6E;YAC7E,0EAA0E;YAC1E,IAAA,iBAAI,EAAC,IAAW,EAAE,UAAU,CAAC,IAAI,CAAC;SACnC,CAAC,CAAC;QAEH,OAAO,GAAG,EAAE,CACV,IAAA,kBAAK,EAAC;YACJ,IAAA,2BAAc,EAAC,IAAA,kBAAK,EAAC,CAAC,wBAAwB,CAAC,OAAO,CAAC,EAAE,IAAA,sBAAS,EAAC,cAAc,CAAC,CAAC,CAAC,CAAC;SACtF,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACtB,CAAC,CAAA,CAAC;AACJ,CAAC"}
@@ -1,13 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.dev/license
7
- */
8
- import { workspaces } from '@angular-devkit/core';
9
- /**
10
- * Finds the specified project configuration in the workspace. Throws an error if the project
11
- * couldn't be found.
12
- */
13
- export declare function getProjectFromWorkspace(workspace: workspaces.WorkspaceDefinition, projectName: string | undefined): workspaces.ProjectDefinition;
@@ -1,28 +0,0 @@
1
- "use strict";
2
- /**
3
- * @license
4
- * Copyright Google LLC All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.dev/license
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.getProjectFromWorkspace = getProjectFromWorkspace;
11
- const schematics_1 = require("@angular-devkit/schematics");
12
- /**
13
- * Finds the specified project configuration in the workspace. Throws an error if the project
14
- * couldn't be found.
15
- */
16
- function getProjectFromWorkspace(workspace, projectName) {
17
- if (!projectName) {
18
- // TODO(crisbeto): some schematics APIs have the project name as optional so for now it's
19
- // simpler to allow undefined and checking it at runtime. Eventually we should clean this up.
20
- throw new schematics_1.SchematicsException('Project name is required.');
21
- }
22
- const project = workspace.projects.get(projectName);
23
- if (!project) {
24
- throw new schematics_1.SchematicsException(`Could not find project in workspace: ${projectName}`);
25
- }
26
- return project;
27
- }
28
- //# sourceMappingURL=get-project.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-project.js","sourceRoot":"","sources":["get-project.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AASH,0DAiBC;AAvBD,2DAA+D;AAE/D;;;GAGG;AACH,SAAgB,uBAAuB,CACrC,SAAyC,EACzC,WAA+B;IAE/B,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,yFAAyF;QACzF,6FAA6F;QAC7F,MAAM,IAAI,gCAAmB,CAAC,2BAA2B,CAAC,CAAC;IAC7D,CAAC;IAED,MAAM,OAAO,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAEpD,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,gCAAmB,CAAC,wCAAwC,WAAW,EAAE,CAAC,CAAC;IACvF,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -1,15 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.dev/license
7
- */
8
- import { Tree } from '@angular-devkit/schematics';
9
- import { Element } from './parse5-element';
10
- /** Appends the given element HTML fragment to the `<head>` element of the specified HTML file. */
11
- export declare function appendHtmlElementToHead(host: Tree, htmlFilePath: string, elementHtml: string): void;
12
- /** Parses the given HTML file and returns the head element if available. */
13
- export declare function getHtmlHeadTagElement(htmlContent: string): Element | null;
14
- /** Adds a class to the body of the document. */
15
- export declare function addBodyClass(host: Tree, htmlFilePath: string, className: string): void;
@@ -1,91 +0,0 @@
1
- "use strict";
2
- /**
3
- * @license
4
- * Copyright Google LLC All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.dev/license
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.appendHtmlElementToHead = appendHtmlElementToHead;
11
- exports.getHtmlHeadTagElement = getHtmlHeadTagElement;
12
- exports.addBodyClass = addBodyClass;
13
- const schematics_1 = require("@angular-devkit/schematics");
14
- const parse5_element_1 = require("./parse5-element");
15
- const parse5_1 = require("parse5");
16
- /** Appends the given element HTML fragment to the `<head>` element of the specified HTML file. */
17
- function appendHtmlElementToHead(host, htmlFilePath, elementHtml) {
18
- const htmlFileBuffer = host.read(htmlFilePath);
19
- if (!htmlFileBuffer) {
20
- throw new schematics_1.SchematicsException(`Could not read file for path: ${htmlFilePath}`);
21
- }
22
- const htmlContent = htmlFileBuffer.toString();
23
- if (htmlContent.includes(elementHtml)) {
24
- return;
25
- }
26
- const headTag = getHtmlHeadTagElement(htmlContent);
27
- if (!headTag) {
28
- throw Error(`Could not find '<head>' element in HTML file: ${htmlFileBuffer}`);
29
- }
30
- // We always have access to the source code location here because the `getHeadTagElement`
31
- // function explicitly has the `sourceCodeLocationInfo` option enabled.
32
- const endTagOffset = headTag.sourceCodeLocation.endTag.startOffset;
33
- const indentationOffset = (0, parse5_element_1.getChildElementIndentation)(headTag);
34
- const insertion = `${' '.repeat(indentationOffset)}${elementHtml}`;
35
- const recordedChange = host.beginUpdate(htmlFilePath).insertRight(endTagOffset, `${insertion}\n`);
36
- host.commitUpdate(recordedChange);
37
- }
38
- /** Parses the given HTML file and returns the head element if available. */
39
- function getHtmlHeadTagElement(htmlContent) {
40
- return getElementByTagName('head', htmlContent);
41
- }
42
- /** Adds a class to the body of the document. */
43
- function addBodyClass(host, htmlFilePath, className) {
44
- const htmlFileBuffer = host.read(htmlFilePath);
45
- if (!htmlFileBuffer) {
46
- throw new schematics_1.SchematicsException(`Could not read file for path: ${htmlFilePath}`);
47
- }
48
- const htmlContent = htmlFileBuffer.toString();
49
- const body = getElementByTagName('body', htmlContent);
50
- if (!body) {
51
- throw Error(`Could not find <body> element in HTML file: ${htmlFileBuffer}`);
52
- }
53
- const classAttribute = body.attrs.find(attribute => attribute.name === 'class');
54
- if (classAttribute) {
55
- const hasClass = classAttribute.value
56
- .split(' ')
57
- .map(part => part.trim())
58
- .includes(className);
59
- if (!hasClass) {
60
- // We have source code location info enabled, and we pre-checked that the element
61
- // has attributes, specifically the `class` attribute.
62
- const classAttributeLocation = body.sourceCodeLocation.attrs['class'];
63
- const recordedChange = host
64
- .beginUpdate(htmlFilePath)
65
- .insertRight(classAttributeLocation.endOffset - 1, ` ${className}`);
66
- host.commitUpdate(recordedChange);
67
- }
68
- }
69
- else {
70
- const recordedChange = host
71
- .beginUpdate(htmlFilePath)
72
- .insertRight(body.sourceCodeLocation.startTag.endOffset - 1, ` class="${className}"`);
73
- host.commitUpdate(recordedChange);
74
- }
75
- }
76
- /** Finds an element by its tag name. */
77
- function getElementByTagName(tagName, htmlContent) {
78
- const document = (0, parse5_1.parse)(htmlContent, { sourceCodeLocationInfo: true });
79
- const nodeQueue = [...document.childNodes];
80
- while (nodeQueue.length) {
81
- const node = nodeQueue.shift();
82
- if (node.nodeName.toLowerCase() === tagName) {
83
- return node;
84
- }
85
- else if (node.childNodes) {
86
- nodeQueue.push(...node.childNodes);
87
- }
88
- }
89
- return null;
90
- }
91
- //# sourceMappingURL=html-manipulation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"html-manipulation.js","sourceRoot":"","sources":["html-manipulation.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAOH,0DA4BC;A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AC,IAAI,CAAC,kBAAmB,CAAC,QAAS,CAAC,SAAS,GAAG,CAAC,EAAE,WAAW,SAAS,GAAG,CAAC,CAAC;QAC1F,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC;IACpC,CAAC;AACH,CAAC;AAED,wCAAwC;AACxC,SAAS,mBAAmB,CAAC,OAAe,EAAE,WAAmB;IAC/D,MAAM,QAAQ,GAAG,IAAA,cAAS,EAAC,WAAW,EAAE,EAAC,sBAAsB,EAAE,IAAI,EAAC,CAAC,CAAC;IACxE,MAAM,SAAS,GAAG,CAAC,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;IAE3C,OAAO,SAAS,CAAC,MAAM,EAAE,CAAC;QACxB,MAAM,IAAI,GAAG,SAAS,CAAC,KAAK,EAAa,CAAC;QAE1C,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,KAAK,OAAO,EAAE,CAAC;YAC5C,OAAO,IAAI,CAAC;QACd,CAAC;aAAM,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YAC3B,SAAS,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC;QACrC,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -1,19 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.dev/license
7
- */
8
- export * from './ast';
9
- export * from './ast/ng-module-imports';
10
- export * from './build-component';
11
- export * from './get-project';
12
- export * from './html-manipulation';
13
- export * from './parse5-element';
14
- export * from './project-index-file';
15
- export * from './project-main-file';
16
- export * from './project-style-file';
17
- export * from './project-targets';
18
- export * from './project-tsconfig-paths';
19
- export * from './schematic-options';
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /**
3
- * @license
4
- * Copyright Google LLC All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.dev/license
8
- */
9
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- var desc = Object.getOwnPropertyDescriptor(m, k);
12
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
13
- desc = { enumerable: true, get: function() { return m[k]; } };
14
- }
15
- Object.defineProperty(o, k2, desc);
16
- }) : (function(o, m, k, k2) {
17
- if (k2 === undefined) k2 = k;
18
- o[k2] = m[k];
19
- }));
20
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
21
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
22
- };
23
- Object.defineProperty(exports, "__esModule", { value: true });
24
- __exportStar(require("./ast"), exports);
25
- __exportStar(require("./ast/ng-module-imports"), exports);
26
- __exportStar(require("./build-component"), exports);
27
- __exportStar(require("./get-project"), exports);
28
- __exportStar(require("./html-manipulation"), exports);
29
- __exportStar(require("./parse5-element"), exports);
30
- __exportStar(require("./project-index-file"), exports);
31
- __exportStar(require("./project-main-file"), exports);
32
- __exportStar(require("./project-style-file"), exports);
33
- __exportStar(require("./project-targets"), exports);
34
- __exportStar(require("./project-tsconfig-paths"), exports);
35
- __exportStar(require("./schematic-options"), exports);
36
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;AAEH,wCAAsB;AACtB,0DAAwC;AACxC,oDAAkC;AAClC,gDAA8B;AAC9B,sDAAoC;AACpC,mDAAiC;AACjC,uDAAqC;AACrC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,2DAAyC;AACzC,sDAAoC"}
@@ -1,12 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.dev/license
7
- */
8
- import { DefaultTreeAdapterMap } from 'parse5';
9
- export type Element = DefaultTreeAdapterMap['element'];
10
- export type ChildNode = DefaultTreeAdapterMap['childNode'];
11
- /** Determines the indentation of child elements for the given Parse5 element. */
12
- export declare function getChildElementIndentation(element: Element): number;
@@ -1,30 +0,0 @@
1
- "use strict";
2
- /**
3
- * @license
4
- * Copyright Google LLC All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.dev/license
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.getChildElementIndentation = getChildElementIndentation;
11
- const schematics_1 = require("@angular-devkit/schematics");
12
- /** Determines the indentation of child elements for the given Parse5 element. */
13
- function getChildElementIndentation(element) {
14
- const childElement = element.childNodes.find(node => node.tagName);
15
- if ((childElement && !childElement.sourceCodeLocation) || !element.sourceCodeLocation) {
16
- throw new schematics_1.SchematicsException('Cannot determine child element indentation because the ' +
17
- 'specified Parse5 element does not have any source code location metadata.');
18
- }
19
- const startColumns = childElement
20
- ? // In case there are child elements inside of the element, we assume that their
21
- // indentation is also applicable for other child elements.
22
- childElement.sourceCodeLocation.startCol
23
- : // In case there is no child element, we just assume that child elements should be indented
24
- // by two spaces.
25
- element.sourceCodeLocation.startCol + 2;
26
- // Since Parse5 does not set the `startCol` properties as zero-based, we need to subtract
27
- // one column in order to have a proper zero-based offset for the indentation.
28
- return startColumns - 1;
29
- }
30
- //# sourceMappingURL=parse5-element.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parse5-element.js","sourceRoot":"","sources":["parse5-element.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAWH,gEAqBC;AA9BD,2DAA+D;AAQ/D,iFAAiF;AACjF,SAAgB,0BAA0B,CAAC,OAAgB;IACzD,MAAM,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAE,IAAgB,CAAC,OAAO,CAAmB,CAAC;IAElG,IAAI,CAAC,YAAY,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC;QACtF,MAAM,IAAI,gCAAmB,CAC3B,yDAAyD;YACvD,2EAA2E,CAC9E,CAAC;IACJ,CAAC;IAED,MAAM,YAAY,GAAG,YAAY;QAC/B,CAAC,CAAC,+EAA+E;YAC/E,2DAA2D;YAC3D,YAAY,CAAC,kBAAmB,CAAC,QAAQ;QAC3C,CAAC,CAAC,2FAA2F;YAC3F,iBAAiB;YACjB,OAAO,CAAC,kBAAmB,CAAC,QAAQ,GAAG,CAAC,CAAC;IAE7C,yFAAyF;IACzF,8EAA8E;IAC9E,OAAO,YAAY,GAAG,CAAC,CAAC;AAC1B,CAAC"}
@@ -1,10 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.dev/license
7
- */
8
- import { Path, workspaces } from '@angular-devkit/core';
9
- /** Gets the path of the index file in the given project. */
10
- export declare function getProjectIndexFiles(project: workspaces.ProjectDefinition): Path[];
@@ -1,20 +0,0 @@
1
- "use strict";
2
- /**
3
- * @license
4
- * Copyright Google LLC All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.dev/license
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.getProjectIndexFiles = getProjectIndexFiles;
11
- const project_targets_1 = require("./project-targets");
12
- /** Gets the path of the index file in the given project. */
13
- function getProjectIndexFiles(project) {
14
- const paths = (0, project_targets_1.getProjectBuildTargets)(project)
15
- .filter(t => { var _a; return (_a = t.options) === null || _a === void 0 ? void 0 : _a['index']; })
16
- .map(t => t.options['index']);
17
- // Use a set to remove duplicate index files referenced in multiple build targets of a project.
18
- return Array.from(new Set(paths));
19
- }
20
- //# sourceMappingURL=project-index-file.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"project-index-file.js","sourceRoot":"","sources":["project-index-file.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAMH,oDAOC;AAVD,uDAAyD;AAEzD,4DAA4D;AAC5D,SAAgB,oBAAoB,CAAC,OAAqC;IACxE,MAAM,KAAK,GAAG,IAAA,wCAAsB,EAAC,OAAO,CAAC;SAC1C,MAAM,CAAC,CAAC,CAAC,EAAE,WAAC,OAAA,MAAA,CAAC,CAAC,OAAO,0CAAG,OAAO,CAAC,CAAA,EAAA,CAAC;SACjC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAQ,CAAC,OAAO,CAAS,CAAC,CAAC;IAEzC,+FAA+F;IAC/F,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;AACpC,CAAC"}
@@ -1,10 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.dev/license
7
- */
8
- import { Path, workspaces } from '@angular-devkit/core';
9
- /** Looks for the main TypeScript file in the given project and returns its path. */
10
- export declare function getProjectMainFile(project: workspaces.ProjectDefinition): Path;
@@ -1,25 +0,0 @@
1
- "use strict";
2
- /**
3
- * @license
4
- * Copyright Google LLC All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.dev/license
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.getProjectMainFile = getProjectMainFile;
11
- const schematics_1 = require("@angular-devkit/schematics");
12
- const project_targets_1 = require("./project-targets");
13
- /** Looks for the main TypeScript file in the given project and returns its path. */
14
- function getProjectMainFile(project) {
15
- const buildOptions = (0, project_targets_1.getProjectTargetOptions)(project, 'build');
16
- // `browser` is for the `@angular-devkit/build-angular:application` builder while
17
- // `main` is for the `@angular-devkit/build-angular:browser` builder.
18
- const mainPath = (buildOptions['browser'] || buildOptions['main']);
19
- if (!mainPath) {
20
- throw new schematics_1.SchematicsException(`Could not find the project main file inside of the ` +
21
- `workspace config (${project.sourceRoot})`);
22
- }
23
- return mainPath;
24
- }
25
- //# sourceMappingURL=project-main-file.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"project-main-file.js","sourceRoot":"","sources":["project-main-file.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAOH,gDAeC;AAnBD,2DAA+D;AAC/D,uDAA0D;AAE1D,oFAAoF;AACpF,SAAgB,kBAAkB,CAAC,OAAqC;IACtE,MAAM,YAAY,GAAG,IAAA,yCAAuB,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAE/D,iFAAiF;IACjF,qEAAqE;IACrE,MAAM,QAAQ,GAAG,CAAC,YAAY,CAAC,SAAS,CAAC,IAAI,YAAY,CAAC,MAAM,CAAC,CAAqB,CAAC;IAEvF,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,gCAAmB,CAC3B,qDAAqD;YACnD,qBAAqB,OAAO,CAAC,UAAU,GAAG,CAC7C,CAAC;IACJ,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -1,13 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.dev/license
7
- */
8
- import { workspaces } from '@angular-devkit/core';
9
- /**
10
- * Gets a style file with the given extension in a project and returns its path. If no
11
- * extension is specified, any style file with a valid extension will be returned.
12
- */
13
- export declare function getProjectStyleFile(project: workspaces.ProjectDefinition, extension?: string): string | null;
@@ -1,42 +0,0 @@
1
- "use strict";
2
- /**
3
- * @license
4
- * Copyright Google LLC All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.dev/license
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.getProjectStyleFile = getProjectStyleFile;
11
- const core_1 = require("@angular-devkit/core");
12
- const project_targets_1 = require("./project-targets");
13
- /** Regular expression that matches all possible Angular CLI default style files. */
14
- const defaultStyleFileRegex = /styles\.(c|le|sc)ss/;
15
- /** Regular expression that matches all files that have a proper stylesheet extension. */
16
- const validStyleFileRegex = /\.(c|le|sc)ss/;
17
- /**
18
- * Gets a style file with the given extension in a project and returns its path. If no
19
- * extension is specified, any style file with a valid extension will be returned.
20
- */
21
- function getProjectStyleFile(project, extension) {
22
- const buildOptions = (0, project_targets_1.getProjectTargetOptions)(project, 'build');
23
- const buildStyles = buildOptions['styles'];
24
- if (buildStyles && (0, core_1.isJsonArray)(buildStyles) && buildStyles.length) {
25
- const styles = buildStyles.map(s => (typeof s === 'string' ? s : s.input));
26
- // Look for the default style file that is generated for new projects by the Angular CLI. This
27
- // default style file is usually called `styles.ext` unless it has been changed explicitly.
28
- const defaultMainStylePath = styles.find(file => extension ? file === `styles.${extension}` : defaultStyleFileRegex.test(file));
29
- if (defaultMainStylePath) {
30
- return (0, core_1.normalize)(defaultMainStylePath);
31
- }
32
- // If no default style file could be found, use the first style file that matches the given
33
- // extension. If no extension specified explicitly, we look for any file with a valid style
34
- // file extension.
35
- const fallbackStylePath = styles.find(file => extension ? file.endsWith(`.${extension}`) : validStyleFileRegex.test(file));
36
- if (fallbackStylePath) {
37
- return (0, core_1.normalize)(fallbackStylePath);
38
- }
39
- }
40
- return null;
41
- }
42
- //# sourceMappingURL=project-style-file.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"project-style-file.js","sourceRoot":"","sources":["project-style-file.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,kDAiCC;AA9CD,+CAAwE;AACxE,uDAA0D;AAE1D,oFAAoF;AACpF,MAAM,qBAAqB,GAAG,qBAAqB,CAAC;AAEpD,yFAAyF;AACzF,MAAM,mBAAmB,GAAG,eAAe,CAAC;AAE5C;;;GAGG;AACH,SAAgB,mBAAmB,CACjC,OAAqC,EACrC,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ed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.dev/license
7
- */
8
- import { JsonValue, workspaces } from '@angular-devkit/core';
9
- /** Resolves the architect options for the build target of the given project. */
10
- export declare function getProjectTargetOptions(project: workspaces.ProjectDefinition, buildTarget: string): Record<string, JsonValue | undefined>;
11
- /** Gets all of the default CLI-provided build targets in a project. */
12
- export declare function getProjectBuildTargets(project: workspaces.ProjectDefinition): workspaces.TargetDefinition[];
13
- /** Gets all of the default CLI-provided testing targets in a project. */
14
- export declare function getProjectTestTargets(project: workspaces.ProjectDefinition): workspaces.TargetDefinition[];