@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,653 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { ElementRef, NgModuleRef, EnvironmentInjector, createComponent, Injector, inject, TemplateRef, ViewContainerRef, Directive, EventEmitter, Input, Output, NgModule } from '@angular/core';
3
- import { DOCUMENT } from '@angular/common';
4
-
5
- /**
6
- * Throws an exception when attempting to attach a null portal to a host.
7
- * @docs-private
8
- */
9
- function throwNullPortalError() {
10
- throw Error('Must provide a portal to attach');
11
- }
12
- /**
13
- * Throws an exception when attempting to attach a portal to a host that is already attached.
14
- * @docs-private
15
- */
16
- function throwPortalAlreadyAttachedError() {
17
- throw Error('Host already has a portal attached');
18
- }
19
- /**
20
- * Throws an exception when attempting to attach a portal to an already-disposed host.
21
- * @docs-private
22
- */
23
- function throwPortalOutletAlreadyDisposedError() {
24
- throw Error('This PortalOutlet has already been disposed');
25
- }
26
- /**
27
- * Throws an exception when attempting to attach an unknown portal type.
28
- * @docs-private
29
- */
30
- function throwUnknownPortalTypeError() {
31
- throw Error('Attempting to attach an unknown Portal type. BasePortalOutlet accepts either ' +
32
- 'a ComponentPortal or a TemplatePortal.');
33
- }
34
- /**
35
- * Throws an exception when attempting to attach a portal to a null host.
36
- * @docs-private
37
- */
38
- function throwNullPortalOutletError() {
39
- throw Error('Attempting to attach a portal to a null PortalOutlet');
40
- }
41
- /**
42
- * Throws an exception when attempting to detach a portal that is not attached.
43
- * @docs-private
44
- */
45
- function throwNoPortalAttachedError() {
46
- throw Error('Attempting to detach a portal that is not attached to a host');
47
- }
48
-
49
- /**
50
- * A `Portal` is something that you want to render somewhere else.
51
- * It can be attach to / detached from a `PortalOutlet`.
52
- */
53
- class Portal {
54
- _attachedHost;
55
- /** Attach this portal to a host. */
56
- attach(host) {
57
- if (typeof ngDevMode === 'undefined' || ngDevMode) {
58
- if (host == null) {
59
- throwNullPortalOutletError();
60
- }
61
- if (host.hasAttached()) {
62
- throwPortalAlreadyAttachedError();
63
- }
64
- }
65
- this._attachedHost = host;
66
- return host.attach(this);
67
- }
68
- /** Detach this portal from its host */
69
- detach() {
70
- let host = this._attachedHost;
71
- if (host != null) {
72
- this._attachedHost = null;
73
- host.detach();
74
- }
75
- else if (typeof ngDevMode === 'undefined' || ngDevMode) {
76
- throwNoPortalAttachedError();
77
- }
78
- }
79
- /** Whether this portal is attached to a host. */
80
- get isAttached() {
81
- return this._attachedHost != null;
82
- }
83
- /**
84
- * Sets the PortalOutlet reference without performing `attach()`. This is used directly by
85
- * the PortalOutlet when it is performing an `attach()` or `detach()`.
86
- */
87
- setAttachedHost(host) {
88
- this._attachedHost = host;
89
- }
90
- }
91
- /**
92
- * A `ComponentPortal` is a portal that instantiates some Component upon attachment.
93
- */
94
- class ComponentPortal extends Portal {
95
- /** The type of the component that will be instantiated for attachment. */
96
- component;
97
- /**
98
- * Where the attached component should live in Angular's *logical* component tree.
99
- * This is different from where the component *renders*, which is determined by the PortalOutlet.
100
- * The origin is necessary when the host is outside of the Angular application context.
101
- */
102
- viewContainerRef;
103
- /** Injector used for the instantiation of the component. */
104
- injector;
105
- /**
106
- * @deprecated No longer in use. To be removed.
107
- * @breaking-change 18.0.0
108
- */
109
- componentFactoryResolver;
110
- /**
111
- * List of DOM nodes that should be projected through `<ng-content>` of the attached component.
112
- */
113
- projectableNodes;
114
- constructor(component, viewContainerRef, injector,
115
- /**
116
- * @deprecated No longer in use. To be removed.
117
- * @breaking-change 18.0.0
118
- */
119
- _componentFactoryResolver, projectableNodes) {
120
- super();
121
- this.component = component;
122
- this.viewContainerRef = viewContainerRef;
123
- this.injector = injector;
124
- this.projectableNodes = projectableNodes;
125
- }
126
- }
127
- /**
128
- * A `TemplatePortal` is a portal that represents some embedded template (TemplateRef).
129
- */
130
- class TemplatePortal extends Portal {
131
- templateRef;
132
- viewContainerRef;
133
- context;
134
- injector;
135
- constructor(
136
- /** The embedded template that will be used to instantiate an embedded View in the host. */
137
- templateRef,
138
- /** Reference to the ViewContainer into which the template will be stamped out. */
139
- viewContainerRef,
140
- /** Contextual data to be passed in to the embedded view. */
141
- context,
142
- /** The injector to use for the embedded view. */
143
- injector) {
144
- super();
145
- this.templateRef = templateRef;
146
- this.viewContainerRef = viewContainerRef;
147
- this.context = context;
148
- this.injector = injector;
149
- }
150
- get origin() {
151
- return this.templateRef.elementRef;
152
- }
153
- /**
154
- * Attach the portal to the provided `PortalOutlet`.
155
- * When a context is provided it will override the `context` property of the `TemplatePortal`
156
- * instance.
157
- */
158
- attach(host, context = this.context) {
159
- this.context = context;
160
- return super.attach(host);
161
- }
162
- detach() {
163
- this.context = undefined;
164
- return super.detach();
165
- }
166
- }
167
- /**
168
- * A `DomPortal` is a portal whose DOM element will be taken from its current position
169
- * in the DOM and moved into a portal outlet, when it is attached. On detach, the content
170
- * will be restored to its original position.
171
- */
172
- class DomPortal extends Portal {
173
- /** DOM node hosting the portal's content. */
174
- element;
175
- constructor(element) {
176
- super();
177
- this.element = element instanceof ElementRef ? element.nativeElement : element;
178
- }
179
- }
180
- /**
181
- * Partial implementation of PortalOutlet that handles attaching
182
- * ComponentPortal and TemplatePortal.
183
- */
184
- class BasePortalOutlet {
185
- /** The portal currently attached to the host. */
186
- _attachedPortal;
187
- /** A function that will permanently dispose this host. */
188
- _disposeFn;
189
- /** Whether this host has already been permanently disposed. */
190
- _isDisposed = false;
191
- /** Whether this host has an attached portal. */
192
- hasAttached() {
193
- return !!this._attachedPortal;
194
- }
195
- /** Attaches a portal. */
196
- attach(portal) {
197
- if (typeof ngDevMode === 'undefined' || ngDevMode) {
198
- if (!portal) {
199
- throwNullPortalError();
200
- }
201
- if (this.hasAttached()) {
202
- throwPortalAlreadyAttachedError();
203
- }
204
- if (this._isDisposed) {
205
- throwPortalOutletAlreadyDisposedError();
206
- }
207
- }
208
- if (portal instanceof ComponentPortal) {
209
- this._attachedPortal = portal;
210
- return this.attachComponentPortal(portal);
211
- }
212
- else if (portal instanceof TemplatePortal) {
213
- this._attachedPortal = portal;
214
- return this.attachTemplatePortal(portal);
215
- // @breaking-change 10.0.0 remove null check for `this.attachDomPortal`.
216
- }
217
- else if (this.attachDomPortal && portal instanceof DomPortal) {
218
- this._attachedPortal = portal;
219
- return this.attachDomPortal(portal);
220
- }
221
- if (typeof ngDevMode === 'undefined' || ngDevMode) {
222
- throwUnknownPortalTypeError();
223
- }
224
- }
225
- // @breaking-change 10.0.0 `attachDomPortal` to become a required abstract method.
226
- attachDomPortal = null;
227
- /** Detaches a previously attached portal. */
228
- detach() {
229
- if (this._attachedPortal) {
230
- this._attachedPortal.setAttachedHost(null);
231
- this._attachedPortal = null;
232
- }
233
- this._invokeDisposeFn();
234
- }
235
- /** Permanently dispose of this portal host. */
236
- dispose() {
237
- if (this.hasAttached()) {
238
- this.detach();
239
- }
240
- this._invokeDisposeFn();
241
- this._isDisposed = true;
242
- }
243
- /** @docs-private */
244
- setDisposeFn(fn) {
245
- this._disposeFn = fn;
246
- }
247
- _invokeDisposeFn() {
248
- if (this._disposeFn) {
249
- this._disposeFn();
250
- this._disposeFn = null;
251
- }
252
- }
253
- }
254
- /**
255
- * @deprecated Use `BasePortalOutlet` instead.
256
- * @breaking-change 9.0.0
257
- */
258
- class BasePortalHost extends BasePortalOutlet {
259
- }
260
-
261
- /**
262
- * A PortalOutlet for attaching portals to an arbitrary DOM element outside of the Angular
263
- * application context.
264
- */
265
- class DomPortalOutlet extends BasePortalOutlet {
266
- outletElement;
267
- _appRef;
268
- _defaultInjector;
269
- _document;
270
- /**
271
- * @param outletElement Element into which the content is projected.
272
- * @param _unusedComponentFactoryResolver Used to resolve the component factory.
273
- * Only required when attaching component portals.
274
- * @param _appRef Reference to the application. Only used in component portals when there
275
- * is no `ViewContainerRef` available.
276
- * @param _defaultInjector Injector to use as a fallback when the portal being attached doesn't
277
- * have one. Only used for component portals.
278
- * @param _document Reference to the document. Used when attaching a DOM portal. Will eventually
279
- * become a required parameter.
280
- */
281
- constructor(
282
- /** Element into which the content is projected. */
283
- outletElement,
284
- /**
285
- * @deprecated No longer in use. To be removed.
286
- * @breaking-change 18.0.0
287
- */
288
- _unusedComponentFactoryResolver, _appRef, _defaultInjector,
289
- /**
290
- * @deprecated `_document` Parameter to be made required.
291
- * @breaking-change 10.0.0
292
- */
293
- _document) {
294
- super();
295
- this.outletElement = outletElement;
296
- this._appRef = _appRef;
297
- this._defaultInjector = _defaultInjector;
298
- this._document = _document;
299
- }
300
- /**
301
- * Attach the given ComponentPortal to DOM element.
302
- * @param portal Portal to be attached
303
- * @returns Reference to the created component.
304
- */
305
- attachComponentPortal(portal) {
306
- let componentRef;
307
- // If the portal specifies a ViewContainerRef, we will use that as the attachment point
308
- // for the component (in terms of Angular's component tree, not rendering).
309
- // When the ViewContainerRef is missing, we use the factory to create the component directly
310
- // and then manually attach the view to the application.
311
- if (portal.viewContainerRef) {
312
- const injector = portal.injector || portal.viewContainerRef.injector;
313
- const ngModuleRef = injector.get(NgModuleRef, null, { optional: true }) || undefined;
314
- componentRef = portal.viewContainerRef.createComponent(portal.component, {
315
- index: portal.viewContainerRef.length,
316
- injector,
317
- ngModuleRef,
318
- projectableNodes: portal.projectableNodes || undefined,
319
- });
320
- this.setDisposeFn(() => componentRef.destroy());
321
- }
322
- else {
323
- if ((typeof ngDevMode === 'undefined' || ngDevMode) && !this._appRef) {
324
- throw Error('Cannot attach component portal to outlet without an ApplicationRef.');
325
- }
326
- const appRef = this._appRef;
327
- const elementInjector = portal.injector || this._defaultInjector || Injector.NULL;
328
- const environmentInjector = elementInjector.get(EnvironmentInjector, appRef.injector);
329
- componentRef = createComponent(portal.component, {
330
- elementInjector,
331
- environmentInjector,
332
- projectableNodes: portal.projectableNodes || undefined,
333
- });
334
- appRef.attachView(componentRef.hostView);
335
- this.setDisposeFn(() => {
336
- // Verify that the ApplicationRef has registered views before trying to detach a host view.
337
- // This check also protects the `detachView` from being called on a destroyed ApplicationRef.
338
- if (appRef.viewCount > 0) {
339
- appRef.detachView(componentRef.hostView);
340
- }
341
- componentRef.destroy();
342
- });
343
- }
344
- // At this point the component has been instantiated, so we move it to the location in the DOM
345
- // where we want it to be rendered.
346
- this.outletElement.appendChild(this._getComponentRootNode(componentRef));
347
- this._attachedPortal = portal;
348
- return componentRef;
349
- }
350
- /**
351
- * Attaches a template portal to the DOM as an embedded view.
352
- * @param portal Portal to be attached.
353
- * @returns Reference to the created embedded view.
354
- */
355
- attachTemplatePortal(portal) {
356
- let viewContainer = portal.viewContainerRef;
357
- let viewRef = viewContainer.createEmbeddedView(portal.templateRef, portal.context, {
358
- injector: portal.injector,
359
- });
360
- // The method `createEmbeddedView` will add the view as a child of the viewContainer.
361
- // But for the DomPortalOutlet the view can be added everywhere in the DOM
362
- // (e.g Overlay Container) To move the view to the specified host element. We just
363
- // re-append the existing root nodes.
364
- viewRef.rootNodes.forEach(rootNode => this.outletElement.appendChild(rootNode));
365
- // Note that we want to detect changes after the nodes have been moved so that
366
- // any directives inside the portal that are looking at the DOM inside a lifecycle
367
- // hook won't be invoked too early.
368
- viewRef.detectChanges();
369
- this.setDisposeFn(() => {
370
- let index = viewContainer.indexOf(viewRef);
371
- if (index !== -1) {
372
- viewContainer.remove(index);
373
- }
374
- });
375
- this._attachedPortal = portal;
376
- // TODO(jelbourn): Return locals from view.
377
- return viewRef;
378
- }
379
- /**
380
- * Attaches a DOM portal by transferring its content into the outlet.
381
- * @param portal Portal to be attached.
382
- * @deprecated To be turned into a method.
383
- * @breaking-change 10.0.0
384
- */
385
- attachDomPortal = (portal) => {
386
- const element = portal.element;
387
- if (!element.parentNode && (typeof ngDevMode === 'undefined' || ngDevMode)) {
388
- throw Error('DOM portal content must be attached to a parent node.');
389
- }
390
- // Anchor used to save the element's previous position so
391
- // that we can restore it when the portal is detached.
392
- const anchorNode = this._document.createComment('dom-portal');
393
- element.parentNode.insertBefore(anchorNode, element);
394
- this.outletElement.appendChild(element);
395
- this._attachedPortal = portal;
396
- super.setDisposeFn(() => {
397
- // We can't use `replaceWith` here because IE doesn't support it.
398
- if (anchorNode.parentNode) {
399
- anchorNode.parentNode.replaceChild(element, anchorNode);
400
- }
401
- });
402
- };
403
- /**
404
- * Clears out a portal from the DOM.
405
- */
406
- dispose() {
407
- super.dispose();
408
- this.outletElement.remove();
409
- }
410
- /** Gets the root HTMLElement for an instantiated component. */
411
- _getComponentRootNode(componentRef) {
412
- return componentRef.hostView.rootNodes[0];
413
- }
414
- }
415
- /**
416
- * @deprecated Use `DomPortalOutlet` instead.
417
- * @breaking-change 9.0.0
418
- */
419
- class DomPortalHost extends DomPortalOutlet {
420
- }
421
-
422
- /**
423
- * Directive version of a `TemplatePortal`. Because the directive *is* a TemplatePortal,
424
- * the directive instance itself can be attached to a host, enabling declarative use of portals.
425
- */
426
- class CdkPortal extends TemplatePortal {
427
- constructor() {
428
- const templateRef = inject(TemplateRef);
429
- const viewContainerRef = inject(ViewContainerRef);
430
- super(templateRef, viewContainerRef);
431
- }
432
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CdkPortal, deps: [], target: i0.ɵɵFactoryTarget.Directive });
433
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: CdkPortal, isStandalone: true, selector: "[cdkPortal]", exportAs: ["cdkPortal"], usesInheritance: true, ngImport: i0 });
434
- }
435
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CdkPortal, decorators: [{
436
- type: Directive,
437
- args: [{
438
- selector: '[cdkPortal]',
439
- exportAs: 'cdkPortal',
440
- }]
441
- }], ctorParameters: () => [] });
442
- /**
443
- * @deprecated Use `CdkPortal` instead.
444
- * @breaking-change 9.0.0
445
- */
446
- class TemplatePortalDirective extends CdkPortal {
447
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TemplatePortalDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
448
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: TemplatePortalDirective, isStandalone: true, selector: "[cdk-portal], [portal]", providers: [
449
- {
450
- provide: CdkPortal,
451
- useExisting: TemplatePortalDirective,
452
- },
453
- ], exportAs: ["cdkPortal"], usesInheritance: true, ngImport: i0 });
454
- }
455
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: TemplatePortalDirective, decorators: [{
456
- type: Directive,
457
- args: [{
458
- selector: '[cdk-portal], [portal]',
459
- exportAs: 'cdkPortal',
460
- providers: [
461
- {
462
- provide: CdkPortal,
463
- useExisting: TemplatePortalDirective,
464
- },
465
- ],
466
- }]
467
- }] });
468
- /**
469
- * Directive version of a PortalOutlet. Because the directive *is* a PortalOutlet, portals can be
470
- * directly attached to it, enabling declarative use.
471
- *
472
- * Usage:
473
- * `<ng-template [cdkPortalOutlet]="greeting"></ng-template>`
474
- */
475
- class CdkPortalOutlet extends BasePortalOutlet {
476
- _moduleRef = inject(NgModuleRef, { optional: true });
477
- _document = inject(DOCUMENT);
478
- _viewContainerRef = inject(ViewContainerRef);
479
- /** Whether the portal component is initialized. */
480
- _isInitialized = false;
481
- /** Reference to the currently-attached component/view ref. */
482
- _attachedRef;
483
- constructor() {
484
- super();
485
- }
486
- /** Portal associated with the Portal outlet. */
487
- get portal() {
488
- return this._attachedPortal;
489
- }
490
- set portal(portal) {
491
- // Ignore the cases where the `portal` is set to a falsy value before the lifecycle hooks have
492
- // run. This handles the cases where the user might do something like `<div cdkPortalOutlet>`
493
- // and attach a portal programmatically in the parent component. When Angular does the first CD
494
- // round, it will fire the setter with empty string, causing the user's content to be cleared.
495
- if (this.hasAttached() && !portal && !this._isInitialized) {
496
- return;
497
- }
498
- if (this.hasAttached()) {
499
- super.detach();
500
- }
501
- if (portal) {
502
- super.attach(portal);
503
- }
504
- this._attachedPortal = portal || null;
505
- }
506
- /** Emits when a portal is attached to the outlet. */
507
- attached = new EventEmitter();
508
- /** Component or view reference that is attached to the portal. */
509
- get attachedRef() {
510
- return this._attachedRef;
511
- }
512
- ngOnInit() {
513
- this._isInitialized = true;
514
- }
515
- ngOnDestroy() {
516
- super.dispose();
517
- this._attachedRef = this._attachedPortal = null;
518
- }
519
- /**
520
- * Attach the given ComponentPortal to this PortalOutlet.
521
- *
522
- * @param portal Portal to be attached to the portal outlet.
523
- * @returns Reference to the created component.
524
- */
525
- attachComponentPortal(portal) {
526
- portal.setAttachedHost(this);
527
- // If the portal specifies an origin, use that as the logical location of the component
528
- // in the application tree. Otherwise use the location of this PortalOutlet.
529
- const viewContainerRef = portal.viewContainerRef != null ? portal.viewContainerRef : this._viewContainerRef;
530
- const ref = viewContainerRef.createComponent(portal.component, {
531
- index: viewContainerRef.length,
532
- injector: portal.injector || viewContainerRef.injector,
533
- projectableNodes: portal.projectableNodes || undefined,
534
- ngModuleRef: this._moduleRef || undefined,
535
- });
536
- // If we're using a view container that's different from the injected one (e.g. when the portal
537
- // specifies its own) we need to move the component into the outlet, otherwise it'll be rendered
538
- // inside of the alternate view container.
539
- if (viewContainerRef !== this._viewContainerRef) {
540
- this._getRootNode().appendChild(ref.hostView.rootNodes[0]);
541
- }
542
- super.setDisposeFn(() => ref.destroy());
543
- this._attachedPortal = portal;
544
- this._attachedRef = ref;
545
- this.attached.emit(ref);
546
- return ref;
547
- }
548
- /**
549
- * Attach the given TemplatePortal to this PortalHost as an embedded View.
550
- * @param portal Portal to be attached.
551
- * @returns Reference to the created embedded view.
552
- */
553
- attachTemplatePortal(portal) {
554
- portal.setAttachedHost(this);
555
- const viewRef = this._viewContainerRef.createEmbeddedView(portal.templateRef, portal.context, {
556
- injector: portal.injector,
557
- });
558
- super.setDisposeFn(() => this._viewContainerRef.clear());
559
- this._attachedPortal = portal;
560
- this._attachedRef = viewRef;
561
- this.attached.emit(viewRef);
562
- return viewRef;
563
- }
564
- /**
565
- * Attaches the given DomPortal to this PortalHost by moving all of the portal content into it.
566
- * @param portal Portal to be attached.
567
- * @deprecated To be turned into a method.
568
- * @breaking-change 10.0.0
569
- */
570
- attachDomPortal = (portal) => {
571
- const element = portal.element;
572
- if (!element.parentNode && (typeof ngDevMode === 'undefined' || ngDevMode)) {
573
- throw Error('DOM portal content must be attached to a parent node.');
574
- }
575
- // Anchor used to save the element's previous position so
576
- // that we can restore it when the portal is detached.
577
- const anchorNode = this._document.createComment('dom-portal');
578
- portal.setAttachedHost(this);
579
- element.parentNode.insertBefore(anchorNode, element);
580
- this._getRootNode().appendChild(element);
581
- this._attachedPortal = portal;
582
- super.setDisposeFn(() => {
583
- if (anchorNode.parentNode) {
584
- anchorNode.parentNode.replaceChild(element, anchorNode);
585
- }
586
- });
587
- };
588
- /** Gets the root node of the portal outlet. */
589
- _getRootNode() {
590
- const nativeElement = this._viewContainerRef.element.nativeElement;
591
- // The directive could be set on a template which will result in a comment
592
- // node being the root. Use the comment's parent node if that is the case.
593
- return (nativeElement.nodeType === nativeElement.ELEMENT_NODE
594
- ? nativeElement
595
- : nativeElement.parentNode);
596
- }
597
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CdkPortalOutlet, deps: [], target: i0.ɵɵFactoryTarget.Directive });
598
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: CdkPortalOutlet, isStandalone: true, selector: "[cdkPortalOutlet]", inputs: { portal: ["cdkPortalOutlet", "portal"] }, outputs: { attached: "attached" }, exportAs: ["cdkPortalOutlet"], usesInheritance: true, ngImport: i0 });
599
- }
600
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CdkPortalOutlet, decorators: [{
601
- type: Directive,
602
- args: [{
603
- selector: '[cdkPortalOutlet]',
604
- exportAs: 'cdkPortalOutlet',
605
- }]
606
- }], ctorParameters: () => [], propDecorators: { portal: [{
607
- type: Input,
608
- args: ['cdkPortalOutlet']
609
- }], attached: [{
610
- type: Output
611
- }] } });
612
- /**
613
- * @deprecated Use `CdkPortalOutlet` instead.
614
- * @breaking-change 9.0.0
615
- */
616
- class PortalHostDirective extends CdkPortalOutlet {
617
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: PortalHostDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
618
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: PortalHostDirective, isStandalone: true, selector: "[cdkPortalHost], [portalHost]", inputs: { portal: ["cdkPortalHost", "portal"] }, providers: [
619
- {
620
- provide: CdkPortalOutlet,
621
- useExisting: PortalHostDirective,
622
- },
623
- ], exportAs: ["cdkPortalHost"], usesInheritance: true, ngImport: i0 });
624
- }
625
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: PortalHostDirective, decorators: [{
626
- type: Directive,
627
- args: [{
628
- selector: '[cdkPortalHost], [portalHost]',
629
- exportAs: 'cdkPortalHost',
630
- inputs: [{ name: 'portal', alias: 'cdkPortalHost' }],
631
- providers: [
632
- {
633
- provide: CdkPortalOutlet,
634
- useExisting: PortalHostDirective,
635
- },
636
- ],
637
- }]
638
- }] });
639
- class PortalModule {
640
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: PortalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
641
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.6", ngImport: i0, type: PortalModule, imports: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective], exports: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective] });
642
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: PortalModule });
643
- }
644
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: PortalModule, decorators: [{
645
- type: NgModule,
646
- args: [{
647
- imports: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective],
648
- exports: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective],
649
- }]
650
- }] });
651
-
652
- export { BasePortalOutlet as B, ComponentPortal as C, DomPortal as D, Portal as P, TemplatePortal as T, BasePortalHost as a, DomPortalOutlet as b, DomPortalHost as c, CdkPortal as d, TemplatePortalDirective as e, CdkPortalOutlet as f, PortalHostDirective as g, PortalModule as h };
653
- //# sourceMappingURL=portal-directives-Bw5woq8I.mjs.map