@angular/cdk 20.0.0-next.0 → 20.0.0-next.10

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 (401) hide show
  1. package/_adev_assets/cdk_testing.json +1 -0
  2. package/_adev_assets/cdk_testing_protractor.json +1 -0
  3. package/_adev_assets/cdk_testing_selenium_webdriver.json +1 -0
  4. package/_adev_assets/cdk_testing_testbed.json +1 -0
  5. package/a11y/index.d.ts +330 -1234
  6. package/a11y-module.d-DBHGyKoh.d.ts +314 -0
  7. package/a11y-prebuilt.css +1 -1
  8. package/accordion/index.d.ts +8 -27
  9. package/activedescendant-key-manager.d-Bjic5obv.d.ts +32 -0
  10. package/bidi/index.d.ts +3 -62
  11. package/bidi-module.d-IN1Vp56w.d.ts +57 -0
  12. package/clipboard/index.d.ts +62 -75
  13. package/coercion/index.d.ts +11 -33
  14. package/coercion/private/index.d.ts +2 -2
  15. package/collections/index.d.ts +14 -291
  16. package/data-source.d-Bblv7Zvh.d.ts +43 -0
  17. package/dialog/index.d.ts +217 -255
  18. package/drag-drop/index.d.ts +1085 -1157
  19. package/fesm2022/a11y-module-DpEjWNCj.mjs +951 -0
  20. package/fesm2022/a11y-module-DpEjWNCj.mjs.map +1 -0
  21. package/fesm2022/a11y.mjs +47 -2446
  22. package/fesm2022/a11y.mjs.map +1 -1
  23. package/fesm2022/accordion.mjs +12 -16
  24. package/fesm2022/accordion.mjs.map +1 -1
  25. package/fesm2022/activedescendant-key-manager-DC3-fwQI.mjs +16 -0
  26. package/fesm2022/activedescendant-key-manager-DC3-fwQI.mjs.map +1 -0
  27. package/fesm2022/array-I1yfCXUO.mjs +6 -0
  28. package/fesm2022/array-I1yfCXUO.mjs.map +1 -0
  29. package/fesm2022/bidi.mjs +17 -83
  30. package/fesm2022/bidi.mjs.map +1 -1
  31. package/fesm2022/breakpoints-observer-DpQzdtrE.mjs +179 -0
  32. package/fesm2022/breakpoints-observer-DpQzdtrE.mjs.map +1 -0
  33. package/fesm2022/cdk.mjs +1 -1
  34. package/fesm2022/cdk.mjs.map +1 -1
  35. package/fesm2022/clipboard.mjs +11 -16
  36. package/fesm2022/clipboard.mjs.map +1 -1
  37. package/fesm2022/coercion/private.mjs +0 -4
  38. package/fesm2022/coercion/private.mjs.map +1 -1
  39. package/fesm2022/coercion.mjs +5 -39
  40. package/fesm2022/coercion.mjs.map +1 -1
  41. package/fesm2022/collections.mjs +7 -476
  42. package/fesm2022/collections.mjs.map +1 -1
  43. package/fesm2022/css-pixel-value-C_HEqLhI.mjs +10 -0
  44. package/fesm2022/css-pixel-value-C_HEqLhI.mjs.map +1 -0
  45. package/fesm2022/data-source-D34wiQZj.mjs +15 -0
  46. package/fesm2022/data-source-D34wiQZj.mjs.map +1 -0
  47. package/fesm2022/dialog.mjs +88 -73
  48. package/fesm2022/dialog.mjs.map +1 -1
  49. package/fesm2022/directionality-Ck5Uc9Se.mjs +77 -0
  50. package/fesm2022/directionality-Ck5Uc9Se.mjs.map +1 -0
  51. package/fesm2022/dispose-view-repeater-strategy-D_JReLI1.mjs +44 -0
  52. package/fesm2022/dispose-view-repeater-strategy-D_JReLI1.mjs.map +1 -0
  53. package/fesm2022/drag-drop.mjs +128 -65
  54. package/fesm2022/drag-drop.mjs.map +1 -1
  55. package/fesm2022/element-x4z00URv.mjs +29 -0
  56. package/fesm2022/element-x4z00URv.mjs.map +1 -0
  57. package/fesm2022/fake-event-detection-DWOdFTFz.mjs +24 -0
  58. package/fesm2022/fake-event-detection-DWOdFTFz.mjs.map +1 -0
  59. package/fesm2022/focus-key-manager-C1rAQJ5z.mjs +22 -0
  60. package/fesm2022/focus-key-manager-C1rAQJ5z.mjs.map +1 -0
  61. package/fesm2022/focus-monitor-DKFfep8Q.mjs +627 -0
  62. package/fesm2022/focus-monitor-DKFfep8Q.mjs.map +1 -0
  63. package/fesm2022/id-generator-BwB8lolC.mjs +37 -0
  64. package/fesm2022/id-generator-BwB8lolC.mjs.map +1 -0
  65. package/fesm2022/keycodes-CpHkExLC.mjs +122 -0
  66. package/fesm2022/keycodes-CpHkExLC.mjs.map +1 -0
  67. package/fesm2022/keycodes.mjs +2 -124
  68. package/fesm2022/keycodes.mjs.map +1 -1
  69. package/fesm2022/layout.mjs +12 -184
  70. package/fesm2022/layout.mjs.map +1 -1
  71. package/fesm2022/list-key-manager-CyOIXo8P.mjs +360 -0
  72. package/fesm2022/list-key-manager-CyOIXo8P.mjs.map +1 -0
  73. package/fesm2022/listbox.mjs +21 -20
  74. package/fesm2022/listbox.mjs.map +1 -1
  75. package/fesm2022/menu.mjs +86 -75
  76. package/fesm2022/menu.mjs.map +1 -1
  77. package/fesm2022/observers/private.mjs +3 -7
  78. package/fesm2022/observers/private.mjs.map +1 -1
  79. package/fesm2022/observers.mjs +14 -18
  80. package/fesm2022/observers.mjs.map +1 -1
  81. package/fesm2022/overlay-module-BaGhSGqO.mjs +3062 -0
  82. package/fesm2022/overlay-module-BaGhSGqO.mjs.map +1 -0
  83. package/fesm2022/overlay.mjs +27 -3019
  84. package/fesm2022/overlay.mjs.map +1 -1
  85. package/fesm2022/passive-listeners-esHZRgIN.mjs +31 -0
  86. package/fesm2022/passive-listeners-esHZRgIN.mjs.map +1 -0
  87. package/fesm2022/platform-CPg0IbDW.mjs +77 -0
  88. package/fesm2022/platform-CPg0IbDW.mjs.map +1 -0
  89. package/fesm2022/platform.mjs +12 -293
  90. package/fesm2022/platform.mjs.map +1 -1
  91. package/fesm2022/portal.mjs +26 -63
  92. package/fesm2022/portal.mjs.map +1 -1
  93. package/fesm2022/private.mjs +7 -52
  94. package/fesm2022/private.mjs.map +1 -1
  95. package/fesm2022/recycle-view-repeater-strategy-DoWdPqVw.mjs +156 -0
  96. package/fesm2022/recycle-view-repeater-strategy-DoWdPqVw.mjs.map +1 -0
  97. package/fesm2022/scrolling-BkvA05C8.mjs +99 -0
  98. package/fesm2022/scrolling-BkvA05C8.mjs.map +1 -0
  99. package/fesm2022/scrolling.mjs +48 -48
  100. package/fesm2022/scrolling.mjs.map +1 -1
  101. package/fesm2022/selection-model-BCgC8uEN.mjs +221 -0
  102. package/fesm2022/selection-model-BCgC8uEN.mjs.map +1 -0
  103. package/fesm2022/shadow-dom-B0oHn41l.mjs +49 -0
  104. package/fesm2022/shadow-dom-B0oHn41l.mjs.map +1 -0
  105. package/fesm2022/stepper.mjs +43 -36
  106. package/fesm2022/stepper.mjs.map +1 -1
  107. package/fesm2022/style-loader-BDEAZOey.mjs +47 -0
  108. package/fesm2022/style-loader-BDEAZOey.mjs.map +1 -0
  109. package/fesm2022/table.mjs +170 -270
  110. package/fesm2022/table.mjs.map +1 -1
  111. package/fesm2022/test-environment-CT0XxPyp.mjs +19 -0
  112. package/fesm2022/test-environment-CT0XxPyp.mjs.map +1 -0
  113. package/fesm2022/testing/selenium-webdriver.mjs +2 -1
  114. package/fesm2022/testing/selenium-webdriver.mjs.map +1 -1
  115. package/fesm2022/testing/testbed.mjs +33 -74
  116. package/fesm2022/testing/testbed.mjs.map +1 -1
  117. package/fesm2022/testing.mjs.map +1 -1
  118. package/fesm2022/text-field.mjs +27 -27
  119. package/fesm2022/text-field.mjs.map +1 -1
  120. package/fesm2022/tree-key-manager-KnCoIkIC.mjs +360 -0
  121. package/fesm2022/tree-key-manager-KnCoIkIC.mjs.map +1 -0
  122. package/fesm2022/tree.mjs +47 -35
  123. package/fesm2022/tree.mjs.map +1 -1
  124. package/fesm2022/typeahead-9ZW4Dtsf.mjs +88 -0
  125. package/fesm2022/typeahead-9ZW4Dtsf.mjs.map +1 -0
  126. package/fesm2022/unique-selection-dispatcher-Cag6cZJ2.mjs +49 -0
  127. package/fesm2022/unique-selection-dispatcher-Cag6cZJ2.mjs.map +1 -0
  128. package/focus-key-manager.d-BIKDy8oD.d.ts +34 -0
  129. package/focus-monitor.d-CvvJeQRc.d.ts +210 -0
  130. package/harness-environment.d-BatBdODN.d.ts +620 -0
  131. package/index.d.ts +2 -2
  132. package/keycodes/index.d.ts +124 -244
  133. package/layout/index.d.ts +24 -25
  134. package/list-key-manager.d-BlK3jyRn.d.ts +165 -0
  135. package/listbox/index.d.ts +92 -107
  136. package/menu/index.d.ts +595 -683
  137. package/number-property.d-CJVxXUcb.d.ts +16 -0
  138. package/observers/index.d.ts +38 -44
  139. package/observers/private/index.d.ts +3 -3
  140. package/overlay/_index.scss +7 -1
  141. package/overlay/index.d.ts +137 -981
  142. package/overlay-module.d-BiAhhk6g.d.ts +801 -0
  143. package/overlay-prebuilt.css +1 -1
  144. package/package.json +2 -4
  145. package/platform/index.d.ts +32 -88
  146. package/platform.d-B3vREl3q.d.ts +33 -0
  147. package/portal/index.d.ts +5 -264
  148. package/portal-directives.d-DbeNrI5D.d.ts +211 -0
  149. package/private/index.d.ts +3 -20
  150. package/schematics/index.js +1 -1
  151. package/schematics/index.js.map +1 -0
  152. package/schematics/ng-add/index.js +11 -19
  153. package/schematics/ng-add/index.js.map +1 -0
  154. package/schematics/ng-add/schema.js +1 -1
  155. package/schematics/ng-add/schema.js.map +1 -0
  156. package/schematics/ng-generate/drag-drop/index.js +15 -6
  157. package/schematics/ng-generate/drag-drop/index.js.map +1 -0
  158. package/schematics/ng-generate/drag-drop/schema.js +1 -1
  159. package/schematics/ng-generate/drag-drop/schema.js.map +1 -0
  160. package/schematics/ng-update/data/attribute-selectors.js +1 -1
  161. package/schematics/ng-update/data/attribute-selectors.js.map +1 -0
  162. package/schematics/ng-update/data/class-names.js +1 -1
  163. package/schematics/ng-update/data/class-names.js.map +1 -0
  164. package/schematics/ng-update/data/constructor-checks.js +1 -1
  165. package/schematics/ng-update/data/constructor-checks.js.map +1 -0
  166. package/schematics/ng-update/data/css-selectors.js +1 -1
  167. package/schematics/ng-update/data/css-selectors.js.map +1 -0
  168. package/schematics/ng-update/data/css-tokens.js +1 -1
  169. package/schematics/ng-update/data/css-tokens.js.map +1 -0
  170. package/schematics/ng-update/data/element-selectors.js +1 -1
  171. package/schematics/ng-update/data/element-selectors.js.map +1 -0
  172. package/schematics/ng-update/data/index.js +1 -1
  173. package/schematics/ng-update/data/index.js.map +1 -0
  174. package/schematics/ng-update/data/input-names.js +1 -1
  175. package/schematics/ng-update/data/input-names.js.map +1 -0
  176. package/schematics/ng-update/data/method-call-checks.js +1 -1
  177. package/schematics/ng-update/data/method-call-checks.js.map +1 -0
  178. package/schematics/ng-update/data/output-names.js +1 -1
  179. package/schematics/ng-update/data/output-names.js.map +1 -0
  180. package/schematics/ng-update/data/property-names.js +1 -1
  181. package/schematics/ng-update/data/property-names.js.map +1 -0
  182. package/schematics/ng-update/data/symbol-removal.js +1 -1
  183. package/schematics/ng-update/data/symbol-removal.js.map +1 -0
  184. package/schematics/ng-update/devkit-file-system.js +2 -3
  185. package/schematics/ng-update/devkit-file-system.js.map +1 -0
  186. package/schematics/ng-update/devkit-migration-rule.js +13 -4
  187. package/schematics/ng-update/devkit-migration-rule.js.map +1 -0
  188. package/schematics/ng-update/devkit-migration.d.ts +2 -2
  189. package/schematics/ng-update/devkit-migration.js +1 -1
  190. package/schematics/ng-update/devkit-migration.js.map +1 -0
  191. package/schematics/ng-update/find-stylesheets.js +1 -1
  192. package/schematics/ng-update/find-stylesheets.js.map +1 -0
  193. package/schematics/ng-update/html-parsing/angular.js +2 -2
  194. package/schematics/ng-update/html-parsing/angular.js.map +1 -0
  195. package/schematics/ng-update/html-parsing/elements.js +3 -2
  196. package/schematics/ng-update/html-parsing/elements.js.map +1 -0
  197. package/schematics/ng-update/index.js +1 -1
  198. package/schematics/ng-update/index.js.map +1 -0
  199. package/schematics/ng-update/migrations/attribute-selectors.js +8 -5
  200. package/schematics/ng-update/migrations/attribute-selectors.js.map +1 -0
  201. package/schematics/ng-update/migrations/class-inheritance.js +11 -8
  202. package/schematics/ng-update/migrations/class-inheritance.js.map +1 -0
  203. package/schematics/ng-update/migrations/class-names.js +15 -12
  204. package/schematics/ng-update/migrations/class-names.js.map +1 -0
  205. package/schematics/ng-update/migrations/constructor-signature.js +10 -7
  206. package/schematics/ng-update/migrations/constructor-signature.js.map +1 -0
  207. package/schematics/ng-update/migrations/css-selectors.js +8 -5
  208. package/schematics/ng-update/migrations/css-selectors.js.map +1 -0
  209. package/schematics/ng-update/migrations/css-tokens.js +8 -5
  210. package/schematics/ng-update/migrations/css-tokens.js.map +1 -0
  211. package/schematics/ng-update/migrations/element-selectors.js +8 -5
  212. package/schematics/ng-update/migrations/element-selectors.js.map +1 -0
  213. package/schematics/ng-update/migrations/input-names.js +8 -5
  214. package/schematics/ng-update/migrations/input-names.js.map +1 -0
  215. package/schematics/ng-update/migrations/method-call-arguments.js +8 -5
  216. package/schematics/ng-update/migrations/method-call-arguments.js.map +1 -0
  217. package/schematics/ng-update/migrations/misc-template.js +6 -3
  218. package/schematics/ng-update/migrations/misc-template.js.map +1 -0
  219. package/schematics/ng-update/migrations/output-names.js +8 -5
  220. package/schematics/ng-update/migrations/output-names.js.map +1 -0
  221. package/schematics/ng-update/migrations/property-names.js +8 -5
  222. package/schematics/ng-update/migrations/property-names.js.map +1 -0
  223. package/schematics/ng-update/migrations/symbol-removal.js +10 -6
  224. package/schematics/ng-update/migrations/symbol-removal.js.map +1 -0
  225. package/schematics/ng-update/public-api.js +1 -1
  226. package/schematics/ng-update/public-api.js.map +1 -0
  227. package/schematics/ng-update/typescript/base-types.js +1 -1
  228. package/schematics/ng-update/typescript/base-types.js.map +1 -0
  229. package/schematics/ng-update/typescript/imports.js +1 -1
  230. package/schematics/ng-update/typescript/imports.js.map +1 -0
  231. package/schematics/ng-update/typescript/literal.js +1 -1
  232. package/schematics/ng-update/typescript/literal.js.map +1 -0
  233. package/schematics/ng-update/typescript/module-specifiers.js +1 -1
  234. package/schematics/ng-update/typescript/module-specifiers.js.map +1 -0
  235. package/schematics/ng-update/upgrade-data.js +1 -1
  236. package/schematics/ng-update/upgrade-data.js.map +1 -0
  237. package/schematics/paths.js +1 -1
  238. package/schematics/paths.js.map +1 -0
  239. package/schematics/update-tool/component-resource-collector.js +3 -5
  240. package/schematics/update-tool/component-resource-collector.js.map +1 -0
  241. package/schematics/update-tool/file-system.js +1 -1
  242. package/schematics/update-tool/file-system.js.map +1 -0
  243. package/schematics/update-tool/index.js +2 -8
  244. package/schematics/update-tool/index.js.map +1 -0
  245. package/schematics/update-tool/logger.js +1 -1
  246. package/schematics/update-tool/logger.js.map +1 -0
  247. package/schematics/update-tool/migration.js +3 -10
  248. package/schematics/update-tool/migration.js.map +1 -0
  249. package/schematics/update-tool/public-api.js +1 -1
  250. package/schematics/update-tool/public-api.js.map +1 -0
  251. package/schematics/update-tool/target-version.js +1 -1
  252. package/schematics/update-tool/target-version.js.map +1 -0
  253. package/schematics/update-tool/update-recorder.js +1 -1
  254. package/schematics/update-tool/update-recorder.js.map +1 -0
  255. package/schematics/update-tool/utils/decorators.js +1 -1
  256. package/schematics/update-tool/utils/decorators.js.map +1 -0
  257. package/schematics/update-tool/utils/diagnostics.js +1 -1
  258. package/schematics/update-tool/utils/diagnostics.js.map +1 -0
  259. package/schematics/update-tool/utils/functions.js +1 -1
  260. package/schematics/update-tool/utils/functions.js.map +1 -0
  261. package/schematics/update-tool/utils/imports.js +1 -1
  262. package/schematics/update-tool/utils/imports.js.map +1 -0
  263. package/schematics/update-tool/utils/line-mappings.js +1 -1
  264. package/schematics/update-tool/utils/line-mappings.js.map +1 -0
  265. package/schematics/update-tool/utils/parse-tsconfig.js +1 -1
  266. package/schematics/update-tool/utils/parse-tsconfig.js.map +1 -0
  267. package/schematics/update-tool/utils/property-name.js +1 -1
  268. package/schematics/update-tool/utils/property-name.js.map +1 -0
  269. package/schematics/update-tool/utils/virtual-host.js +2 -3
  270. package/schematics/update-tool/utils/virtual-host.js.map +1 -0
  271. package/schematics/update-tool/version-changes.js +1 -1
  272. package/schematics/update-tool/version-changes.js.map +1 -0
  273. package/schematics/utils/ast/ng-module-imports.js +1 -1
  274. package/schematics/utils/ast/ng-module-imports.js.map +1 -0
  275. package/schematics/utils/ast.d.ts +2 -2
  276. package/schematics/utils/ast.js +23 -12
  277. package/schematics/utils/ast.js.map +1 -0
  278. package/schematics/utils/build-component.js +22 -17
  279. package/schematics/utils/build-component.js.map +1 -0
  280. package/schematics/utils/get-project.d.ts +2 -2
  281. package/schematics/utils/get-project.js +1 -1
  282. package/schematics/utils/get-project.js.map +1 -0
  283. package/schematics/utils/html-manipulation.js +1 -1
  284. package/schematics/utils/html-manipulation.js.map +1 -0
  285. package/schematics/utils/index.js +1 -1
  286. package/schematics/utils/index.js.map +1 -0
  287. package/schematics/utils/parse5-element.js +1 -1
  288. package/schematics/utils/parse5-element.js.map +1 -0
  289. package/schematics/utils/project-index-file.d.ts +6 -3
  290. package/schematics/utils/project-index-file.js +30 -7
  291. package/schematics/utils/project-index-file.js.map +1 -0
  292. package/schematics/utils/project-main-file.d.ts +3 -2
  293. package/schematics/utils/project-main-file.js +1 -1
  294. package/schematics/utils/project-main-file.js.map +1 -0
  295. package/schematics/utils/project-style-file.d.ts +2 -2
  296. package/schematics/utils/project-style-file.js +1 -1
  297. package/schematics/utils/project-style-file.js.map +1 -0
  298. package/schematics/utils/project-targets.d.ts +5 -4
  299. package/schematics/utils/project-targets.js +15 -8
  300. package/schematics/utils/project-targets.js.map +1 -0
  301. package/schematics/utils/project-tsconfig-paths.d.ts +3 -3
  302. package/schematics/utils/project-tsconfig-paths.js +26 -14
  303. package/schematics/utils/project-tsconfig-paths.js.map +1 -0
  304. package/schematics/utils/schematic-options.d.ts +2 -2
  305. package/schematics/utils/schematic-options.js +27 -15
  306. package/schematics/utils/schematic-options.js.map +1 -0
  307. package/scrolling/index.d.ts +13 -638
  308. package/scrolling-module.d-DP0Qb7T9.d.ts +552 -0
  309. package/selection-model.d-DNgOONDg.d.ts +112 -0
  310. package/stepper/index.d.ts +75 -124
  311. package/style-loader.d-BXZfQZTF.d.ts +21 -0
  312. package/table/index.d.ts +292 -604
  313. package/testing/index.d.ts +33 -675
  314. package/testing/selenium-webdriver/index.d.ts +31 -20
  315. package/testing/testbed/index.d.ts +10 -19
  316. package/text-field/index.d.ts +12 -30
  317. package/text-field-prebuilt.css +1 -1
  318. package/tree/index.d.ts +208 -271
  319. package/tree-key-manager-strategy.d-XB6M79l-.d.ts +116 -0
  320. package/unique-selection-dispatcher.d-DSFqf1MM.d.ts +33 -0
  321. package/view-repeater.d-BKljR8u8.d.ts +89 -0
  322. package/schematics/index.mjs +0 -37
  323. package/schematics/ng-add/index.mjs +0 -39
  324. package/schematics/ng-add/package-config.d.ts +0 -12
  325. package/schematics/ng-add/package-config.js +0 -51
  326. package/schematics/ng-add/package-config.mjs +0 -51
  327. package/schematics/ng-add/schema.mjs +0 -10
  328. package/schematics/ng-generate/drag-drop/index.mjs +0 -33
  329. package/schematics/ng-generate/drag-drop/schema.mjs +0 -10
  330. package/schematics/ng-update/data/attribute-selectors.mjs +0 -12
  331. package/schematics/ng-update/data/class-names.mjs +0 -12
  332. package/schematics/ng-update/data/constructor-checks.mjs +0 -17
  333. package/schematics/ng-update/data/css-selectors.mjs +0 -12
  334. package/schematics/ng-update/data/css-tokens.mjs +0 -12
  335. package/schematics/ng-update/data/element-selectors.mjs +0 -12
  336. package/schematics/ng-update/data/index.mjs +0 -35
  337. package/schematics/ng-update/data/input-names.mjs +0 -12
  338. package/schematics/ng-update/data/method-call-checks.mjs +0 -12
  339. package/schematics/ng-update/data/output-names.mjs +0 -12
  340. package/schematics/ng-update/data/property-names.mjs +0 -12
  341. package/schematics/ng-update/data/symbol-removal.mjs +0 -12
  342. package/schematics/ng-update/devkit-file-system.mjs +0 -84
  343. package/schematics/ng-update/devkit-migration-rule.mjs +0 -133
  344. package/schematics/ng-update/devkit-migration.mjs +0 -20
  345. package/schematics/ng-update/find-stylesheets.mjs +0 -41
  346. package/schematics/ng-update/html-parsing/angular.mjs +0 -51
  347. package/schematics/ng-update/html-parsing/elements.mjs +0 -62
  348. package/schematics/ng-update/index.mjs +0 -29
  349. package/schematics/ng-update/migrations/attribute-selectors.mjs +0 -68
  350. package/schematics/ng-update/migrations/class-inheritance.mjs +0 -55
  351. package/schematics/ng-update/migrations/class-names.mjs +0 -88
  352. package/schematics/ng-update/migrations/constructor-signature.mjs +0 -136
  353. package/schematics/ng-update/migrations/css-selectors.mjs +0 -72
  354. package/schematics/ng-update/migrations/css-tokens.mjs +0 -80
  355. package/schematics/ng-update/migrations/element-selectors.mjs +0 -63
  356. package/schematics/ng-update/migrations/input-names.mjs +0 -56
  357. package/schematics/ng-update/migrations/method-call-arguments.mjs +0 -59
  358. package/schematics/ng-update/migrations/misc-template.mjs +0 -22
  359. package/schematics/ng-update/migrations/output-names.mjs +0 -43
  360. package/schematics/ng-update/migrations/property-names.mjs +0 -57
  361. package/schematics/ng-update/migrations/symbol-removal.mjs +0 -43
  362. package/schematics/ng-update/public-api.mjs +0 -36
  363. package/schematics/ng-update/typescript/base-types.mjs +0 -23
  364. package/schematics/ng-update/typescript/imports.mjs +0 -53
  365. package/schematics/ng-update/typescript/literal.mjs +0 -32
  366. package/schematics/ng-update/typescript/module-specifiers.mjs +0 -35
  367. package/schematics/ng-update/upgrade-data.mjs +0 -40
  368. package/schematics/paths.mjs +0 -16
  369. package/schematics/schematics.externs.js +0 -0
  370. package/schematics/tsconfig.json +0 -29
  371. package/schematics/update-tool/component-resource-collector.mjs +0 -166
  372. package/schematics/update-tool/file-system.mjs +0 -18
  373. package/schematics/update-tool/index.mjs +0 -178
  374. package/schematics/update-tool/logger.mjs +0 -18
  375. package/schematics/update-tool/migration.mjs +0 -77
  376. package/schematics/update-tool/public-api.mjs +0 -33
  377. package/schematics/update-tool/target-version.mjs +0 -27
  378. package/schematics/update-tool/update-recorder.mjs +0 -10
  379. package/schematics/update-tool/update-tool.externs.js +0 -0
  380. package/schematics/update-tool/utils/decorators.mjs +0 -41
  381. package/schematics/update-tool/utils/diagnostics.mjs +0 -18
  382. package/schematics/update-tool/utils/functions.mjs +0 -20
  383. package/schematics/update-tool/utils/imports.mjs +0 -110
  384. package/schematics/update-tool/utils/line-mappings.mjs +0 -75
  385. package/schematics/update-tool/utils/parse-tsconfig.mjs +0 -45
  386. package/schematics/update-tool/utils/property-name.mjs +0 -27
  387. package/schematics/update-tool/utils/virtual-host.mjs +0 -72
  388. package/schematics/update-tool/version-changes.mjs +0 -38
  389. package/schematics/utils/ast/ng-module-imports.mjs +0 -82
  390. package/schematics/utils/ast.mjs +0 -68
  391. package/schematics/utils/build-component.mjs +0 -183
  392. package/schematics/utils/get-project.mjs +0 -28
  393. package/schematics/utils/html-manipulation.mjs +0 -91
  394. package/schematics/utils/index.mjs +0 -36
  395. package/schematics/utils/parse5-element.mjs +0 -30
  396. package/schematics/utils/project-index-file.mjs +0 -20
  397. package/schematics/utils/project-main-file.mjs +0 -25
  398. package/schematics/utils/project-style-file.mjs +0 -42
  399. package/schematics/utils/project-targets.mjs +0 -39
  400. package/schematics/utils/project-tsconfig-paths.mjs +0 -34
  401. package/schematics/utils/schematic-options.mjs +0 -77
@@ -1,14 +1,22 @@
1
1
  import * as i0 from '@angular/core';
2
- import { signal, Component, ViewEncapsulation, ChangeDetectionStrategy, inject, NgZone, RendererFactory2, Injectable, InjectionToken, ElementRef, booleanAttribute, Directive, Input, ViewContainerRef, ChangeDetectorRef, EventEmitter, Injector, afterNextRender, numberAttribute, Output, TemplateRef, NgModule } from '@angular/core';
3
- import { DOCUMENT } from '@angular/common';
4
- import { ViewportRuler, ScrollDispatcher, CdkScrollableModule } from '@angular/cdk/scrolling';
5
- import { isFakeTouchstartFromScreenReader, isFakeMousedownFromScreenReader, _IdGenerator } from '@angular/cdk/a11y';
6
- import { coerceElement, coerceNumberProperty, coerceArray } from '@angular/cdk/coercion';
7
- import { _getEventTarget, _bindEventWithOptions, _getShadowRoot } from '@angular/cdk/platform';
2
+ import { signal, Component, ViewEncapsulation, ChangeDetectionStrategy, inject, NgZone, DOCUMENT, RendererFactory2, Injectable, InjectionToken, ElementRef, booleanAttribute, Directive, Input, ViewContainerRef, ChangeDetectorRef, EventEmitter, Injector, afterNextRender, numberAttribute, Output, TemplateRef, NgModule } from '@angular/core';
8
3
  import { Subject, Subscription, interval, animationFrameScheduler, Observable, merge, BehaviorSubject } from 'rxjs';
4
+ import { _ as _getEventTarget, a as _getShadowRoot } from './shadow-dom-B0oHn41l.mjs';
5
+ import { a as isFakeTouchstartFromScreenReader, i as isFakeMousedownFromScreenReader } from './fake-event-detection-DWOdFTFz.mjs';
6
+ import { a as coerceElement, c as coerceNumberProperty } from './element-x4z00URv.mjs';
9
7
  import { takeUntil, map, take, tap, switchMap, startWith } from 'rxjs/operators';
10
- import { _CdkPrivateStyleLoader } from '@angular/cdk/private';
11
- import { Directionality } from '@angular/cdk/bidi';
8
+ import { _ as _CdkPrivateStyleLoader } from './style-loader-BDEAZOey.mjs';
9
+ import { ViewportRuler, ScrollDispatcher, CdkScrollableModule } from './scrolling.mjs';
10
+ export { CdkScrollable as ɵɵCdkScrollable } from './scrolling.mjs';
11
+ import { D as Directionality } from './directionality-Ck5Uc9Se.mjs';
12
+ import { _ as _IdGenerator } from './id-generator-BwB8lolC.mjs';
13
+ import { c as coerceArray } from './array-I1yfCXUO.mjs';
14
+ import './platform-CPg0IbDW.mjs';
15
+ import '@angular/common';
16
+ import './scrolling-BkvA05C8.mjs';
17
+ import './bidi.mjs';
18
+ import './recycle-view-repeater-strategy-DoWdPqVw.mjs';
19
+ import './data-source-D34wiQZj.mjs';
12
20
 
13
21
  /** Creates a deep clone of an element. */
14
22
  function deepCloneNode(node) {
@@ -96,6 +104,20 @@ function isInsideClientRect(clientRect, x, y) {
96
104
  const { top, bottom, left, right } = clientRect;
97
105
  return y >= top && y <= bottom && x >= left && x <= right;
98
106
  }
107
+ /**
108
+ * Checks if the child element is overflowing from its parent.
109
+ * @param parentRect - The bounding rect of the parent element.
110
+ * @param childRect - The bounding rect of the child element.
111
+ */
112
+ function isOverflowingParent(parentRect, childRect) {
113
+ // check for horizontal overflow (left and right)
114
+ const isLeftOverflowing = childRect.left < parentRect.left;
115
+ const isRightOverflowing = childRect.left + childRect.width > parentRect.right;
116
+ // check for vertical overflow (top and bottom)
117
+ const isTopOverflowing = childRect.top < parentRect.top;
118
+ const isBottomOverflowing = childRect.top + childRect.height > parentRect.bottom;
119
+ return isLeftOverflowing || isRightOverflowing || isTopOverflowing || isBottomOverflowing;
120
+ }
99
121
  /**
100
122
  * Updates the top/left positions of a `DOMRect`, as well as their bottom/right counterparts.
101
123
  * @param domRect `DOMRect` that should be updated.
@@ -712,10 +734,11 @@ class DragRef {
712
734
  const element = coerceElement(rootElement);
713
735
  if (element !== this._rootElement) {
714
736
  this._removeRootElementListeners();
737
+ const renderer = this._renderer;
715
738
  this._rootElementCleanups = this._ngZone.runOutsideAngular(() => [
716
- _bindEventWithOptions(this._renderer, element, 'mousedown', this._pointerDown, activeEventListenerOptions),
717
- _bindEventWithOptions(this._renderer, element, 'touchstart', this._pointerDown, passiveEventListenerOptions),
718
- _bindEventWithOptions(this._renderer, element, 'dragstart', this._nativeDragStart, activeEventListenerOptions),
739
+ renderer.listen(element, 'mousedown', this._pointerDown, activeEventListenerOptions),
740
+ renderer.listen(element, 'touchstart', this._pointerDown, passiveEventListenerOptions),
741
+ renderer.listen(element, 'dragstart', this._nativeDragStart, activeEventListenerOptions),
719
742
  ]);
720
743
  this._initialTransform = undefined;
721
744
  this._rootElement = element;
@@ -790,6 +813,40 @@ class DragRef {
790
813
  this._activeTransform = { x: 0, y: 0 };
791
814
  this._passiveTransform = { x: 0, y: 0 };
792
815
  }
816
+ /** Resets drag item to end of boundary element. */
817
+ resetToBoundary() {
818
+ if (
819
+ // can be null if the drag item was never dragged.
820
+ this._boundaryElement &&
821
+ this._rootElement &&
822
+ // check if we are overflowing off our boundary element
823
+ isOverflowingParent(this._boundaryElement.getBoundingClientRect(), this._rootElement.getBoundingClientRect())) {
824
+ const parentRect = this._boundaryElement.getBoundingClientRect();
825
+ const childRect = this._rootElement.getBoundingClientRect();
826
+ let offsetX = 0;
827
+ let offsetY = 0;
828
+ // check if we are overflowing from left or right
829
+ if (childRect.left < parentRect.left) {
830
+ offsetX = parentRect.left - childRect.left;
831
+ }
832
+ else if (childRect.right > parentRect.right) {
833
+ offsetX = parentRect.right - childRect.right;
834
+ }
835
+ // check if we are overflowing from top or bottom
836
+ if (childRect.top < parentRect.top) {
837
+ offsetY = parentRect.top - childRect.top;
838
+ }
839
+ else if (childRect.bottom > parentRect.bottom) {
840
+ offsetY = parentRect.bottom - childRect.bottom;
841
+ }
842
+ const currentLeft = this._activeTransform.x;
843
+ const currentTop = this._activeTransform.y;
844
+ let x = currentLeft + offsetX, y = currentTop + offsetY;
845
+ this._rootElement.style.transform = getTransform(x, y);
846
+ this._activeTransform = { x, y };
847
+ this._passiveTransform = { x, y };
848
+ }
849
+ }
793
850
  /**
794
851
  * Sets a handle as disabled. While a handle is disabled, it'll capture and interrupt dragging.
795
852
  * @param handle Handle element that should be disabled.
@@ -1025,7 +1082,7 @@ class DragRef {
1025
1082
  // In some browsers the global `selectstart` that we maintain in the `DragDropRegistry`
1026
1083
  // doesn't cross the shadow boundary so we have to prevent it at the shadow root (see #28792).
1027
1084
  this._ngZone.runOutsideAngular(() => {
1028
- this._cleanupShadowRootSelectStart = _bindEventWithOptions(this._renderer, shadowRoot, 'selectstart', shadowDomSelectStart, activeCapturingEventOptions$1);
1085
+ this._cleanupShadowRootSelectStart = this._renderer.listen(shadowRoot, 'selectstart', shadowDomSelectStart, activeCapturingEventOptions$1);
1029
1086
  });
1030
1087
  }
1031
1088
  if (dropContainer) {
@@ -2963,14 +3020,13 @@ const activeCapturingEventOptions = {
2963
3020
  * @docs-private
2964
3021
  */
2965
3022
  class _ResetsLoader {
2966
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: _ResetsLoader, deps: [], target: i0.ɵɵFactoryTarget.Component });
2967
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.0", type: _ResetsLoader, isStandalone: true, selector: "ng-component", host: { attributes: { "cdk-drag-resets-container": "" } }, ngImport: i0, template: '', isInline: true, styles: ["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3023
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: _ResetsLoader, deps: [], target: i0.ɵɵFactoryTarget.Component });
3024
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.0-next.5", type: _ResetsLoader, isStandalone: true, selector: "ng-component", host: { attributes: { "cdk-drag-resets-container": "" } }, ngImport: i0, template: '', isInline: true, styles: ["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2968
3025
  }
2969
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: _ResetsLoader, decorators: [{
3026
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: _ResetsLoader, decorators: [{
2970
3027
  type: Component,
2971
- args: [{ encapsulation: ViewEncapsulation.None, template: '', changeDetection: ChangeDetectionStrategy.OnPush, host: { 'cdk-drag-resets-container': '' }, styles: ["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}"] }]
3028
+ args: [{ encapsulation: ViewEncapsulation.None, template: '', changeDetection: ChangeDetectionStrategy.OnPush, host: { 'cdk-drag-resets-container': '' }, styles: ["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}\n"] }]
2972
3029
  }] });
2973
- // TODO(crisbeto): remove generics when making breaking changes.
2974
3030
  /**
2975
3031
  * Service that keeps track of all the drag item and drop container
2976
3032
  * instances, and manages global event listeners on the `document`.
@@ -2982,6 +3038,7 @@ class DragDropRegistry {
2982
3038
  _styleLoader = inject(_CdkPrivateStyleLoader);
2983
3039
  _renderer = inject(RendererFactory2).createRenderer(null, null);
2984
3040
  _cleanupDocumentTouchmove;
3041
+ _scroll = new Subject();
2985
3042
  /** Registered drop container instances. */
2986
3043
  _dropInstances = new Set();
2987
3044
  /** Registered drag item instances. */
@@ -3011,12 +3068,6 @@ class DragDropRegistry {
3011
3068
  * while the user is dragging a drag item instance.
3012
3069
  */
3013
3070
  pointerUp = new Subject();
3014
- /**
3015
- * Emits when the viewport has been scrolled while the user is dragging an item.
3016
- * @deprecated To be turned into a private member. Use the `scrolled` method instead.
3017
- * @breaking-change 13.0.0
3018
- */
3019
- scroll = new Subject();
3020
3071
  constructor() { }
3021
3072
  /** Adds a drop container to the registry. */
3022
3073
  registerDropContainer(drop) {
@@ -3035,7 +3086,7 @@ class DragDropRegistry {
3035
3086
  // The event handler has to be explicitly active,
3036
3087
  // because newer browsers make it passive by default.
3037
3088
  this._cleanupDocumentTouchmove?.();
3038
- this._cleanupDocumentTouchmove = _bindEventWithOptions(this._renderer, this._document, 'touchmove', this._persistentTouchmoveListener, activeCapturingEventOptions);
3089
+ this._cleanupDocumentTouchmove = this._renderer.listen(this._document, 'touchmove', this._persistentTouchmoveListener, activeCapturingEventOptions);
3039
3090
  });
3040
3091
  }
3041
3092
  }
@@ -3072,7 +3123,7 @@ class DragDropRegistry {
3072
3123
  const toBind = [
3073
3124
  // Use capturing so that we pick up scroll changes in any scrollable nodes that aren't
3074
3125
  // the document. See https://github.com/angular/components/issues/17144.
3075
- ['scroll', (e) => this.scroll.next(e), capturingEventOptions],
3126
+ ['scroll', (e) => this._scroll.next(e), capturingEventOptions],
3076
3127
  // Preventing the default action on `mousemove` isn't enough to disable text selection
3077
3128
  // on Safari so we need to prevent the selection event as well. Alternatively this can
3078
3129
  // be done by setting `user-select: none` on the `body`, however it has causes a style
@@ -3095,7 +3146,7 @@ class DragDropRegistry {
3095
3146
  ]);
3096
3147
  }
3097
3148
  this._ngZone.runOutsideAngular(() => {
3098
- this._globalListeners = toBind.map(([name, handler, options]) => _bindEventWithOptions(this._renderer, this._document, name, handler, options));
3149
+ this._globalListeners = toBind.map(([name, handler, options]) => this._renderer.listen(this._document, name, handler, options));
3099
3150
  });
3100
3151
  }
3101
3152
  }
@@ -3125,14 +3176,14 @@ class DragDropRegistry {
3125
3176
  * be used to include an additional top-level listener at the shadow root level.
3126
3177
  */
3127
3178
  scrolled(shadowRoot) {
3128
- const streams = [this.scroll];
3179
+ const streams = [this._scroll];
3129
3180
  if (shadowRoot && shadowRoot !== this._document) {
3130
3181
  // Note that this is basically the same as `fromEvent` from rxjs, but we do it ourselves,
3131
3182
  // because we want to guarantee that the event is bound outside of the `NgZone`. With
3132
3183
  // `fromEvent` it'll only happen if the subscription is outside the `NgZone`.
3133
3184
  streams.push(new Observable((observer) => {
3134
3185
  return this._ngZone.runOutsideAngular(() => {
3135
- const cleanup = _bindEventWithOptions(this._renderer, shadowRoot, 'scroll', (event) => {
3186
+ const cleanup = this._renderer.listen(shadowRoot, 'scroll', (event) => {
3136
3187
  if (this._activeDragInstances().length) {
3137
3188
  observer.next(event);
3138
3189
  }
@@ -3202,10 +3253,10 @@ class DragDropRegistry {
3202
3253
  this._globalListeners?.forEach(cleanup => cleanup());
3203
3254
  this._globalListeners = undefined;
3204
3255
  }
3205
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DragDropRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3206
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DragDropRegistry, providedIn: 'root' });
3256
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: DragDropRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3257
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: DragDropRegistry, providedIn: 'root' });
3207
3258
  }
3208
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DragDropRegistry, decorators: [{
3259
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: DragDropRegistry, decorators: [{
3209
3260
  type: Injectable,
3210
3261
  args: [{ providedIn: 'root' }]
3211
3262
  }], ctorParameters: () => [] });
@@ -3240,10 +3291,10 @@ class DragDrop {
3240
3291
  createDropList(element) {
3241
3292
  return new DropListRef(element, this._dragDropRegistry, this._document, this._ngZone, this._viewportRuler);
3242
3293
  }
3243
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DragDrop, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3244
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DragDrop, providedIn: 'root' });
3294
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: DragDrop, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3295
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: DragDrop, providedIn: 'root' });
3245
3296
  }
3246
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DragDrop, decorators: [{
3297
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: DragDrop, decorators: [{
3247
3298
  type: Injectable,
3248
3299
  args: [{ providedIn: 'root' }]
3249
3300
  }], ctorParameters: () => [] });
@@ -3313,10 +3364,10 @@ class CdkDragHandle {
3313
3364
  this._parentDrag?._removeHandle(this);
3314
3365
  this._stateChanges.complete();
3315
3366
  }
3316
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: CdkDragHandle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3317
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.2.0", type: CdkDragHandle, isStandalone: true, selector: "[cdkDragHandle]", inputs: { disabled: ["cdkDragHandleDisabled", "disabled", booleanAttribute] }, host: { classAttribute: "cdk-drag-handle" }, providers: [{ provide: CDK_DRAG_HANDLE, useExisting: CdkDragHandle }], ngImport: i0 });
3367
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDragHandle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3368
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.0.0-next.5", type: CdkDragHandle, isStandalone: true, selector: "[cdkDragHandle]", inputs: { disabled: ["cdkDragHandleDisabled", "disabled", booleanAttribute] }, host: { classAttribute: "cdk-drag-handle" }, providers: [{ provide: CDK_DRAG_HANDLE, useExisting: CdkDragHandle }], ngImport: i0 });
3318
3369
  }
3319
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: CdkDragHandle, decorators: [{
3370
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDragHandle, decorators: [{
3320
3371
  type: Directive,
3321
3372
  args: [{
3322
3373
  selector: '[cdkDragHandle]',
@@ -3503,6 +3554,10 @@ class CdkDrag {
3503
3554
  reset() {
3504
3555
  this._dragRef.reset();
3505
3556
  }
3557
+ /** Resets drag item to end of boundary element. */
3558
+ resetToBoundary() {
3559
+ this._dragRef.resetToBoundary();
3560
+ }
3506
3561
  /**
3507
3562
  * Gets the pixel coordinates of the draggable outside of a drop container.
3508
3563
  */
@@ -3775,10 +3830,10 @@ class CdkDrag {
3775
3830
  handleInstance.disabled ? dragRef.disableHandle(handle) : dragRef.enableHandle(handle);
3776
3831
  });
3777
3832
  }
3778
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: CdkDrag, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3779
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.2.0", type: CdkDrag, isStandalone: true, selector: "[cdkDrag]", inputs: { data: ["cdkDragData", "data"], lockAxis: ["cdkDragLockAxis", "lockAxis"], rootElementSelector: ["cdkDragRootElement", "rootElementSelector"], boundaryElement: ["cdkDragBoundary", "boundaryElement"], dragStartDelay: ["cdkDragStartDelay", "dragStartDelay"], freeDragPosition: ["cdkDragFreeDragPosition", "freeDragPosition"], disabled: ["cdkDragDisabled", "disabled", booleanAttribute], constrainPosition: ["cdkDragConstrainPosition", "constrainPosition"], previewClass: ["cdkDragPreviewClass", "previewClass"], previewContainer: ["cdkDragPreviewContainer", "previewContainer"], scale: ["cdkDragScale", "scale", numberAttribute] }, outputs: { started: "cdkDragStarted", released: "cdkDragReleased", ended: "cdkDragEnded", entered: "cdkDragEntered", exited: "cdkDragExited", dropped: "cdkDragDropped", moved: "cdkDragMoved" }, host: { properties: { "class.cdk-drag-disabled": "disabled", "class.cdk-drag-dragging": "_dragRef.isDragging()" }, classAttribute: "cdk-drag" }, providers: [{ provide: CDK_DRAG_PARENT, useExisting: CdkDrag }], exportAs: ["cdkDrag"], usesOnChanges: true, ngImport: i0 });
3833
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDrag, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3834
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.0.0-next.5", type: CdkDrag, isStandalone: true, selector: "[cdkDrag]", inputs: { data: ["cdkDragData", "data"], lockAxis: ["cdkDragLockAxis", "lockAxis"], rootElementSelector: ["cdkDragRootElement", "rootElementSelector"], boundaryElement: ["cdkDragBoundary", "boundaryElement"], dragStartDelay: ["cdkDragStartDelay", "dragStartDelay"], freeDragPosition: ["cdkDragFreeDragPosition", "freeDragPosition"], disabled: ["cdkDragDisabled", "disabled", booleanAttribute], constrainPosition: ["cdkDragConstrainPosition", "constrainPosition"], previewClass: ["cdkDragPreviewClass", "previewClass"], previewContainer: ["cdkDragPreviewContainer", "previewContainer"], scale: ["cdkDragScale", "scale", numberAttribute] }, outputs: { started: "cdkDragStarted", released: "cdkDragReleased", ended: "cdkDragEnded", entered: "cdkDragEntered", exited: "cdkDragExited", dropped: "cdkDragDropped", moved: "cdkDragMoved" }, host: { properties: { "class.cdk-drag-disabled": "disabled", "class.cdk-drag-dragging": "_dragRef.isDragging()" }, classAttribute: "cdk-drag" }, providers: [{ provide: CDK_DRAG_PARENT, useExisting: CdkDrag }], exportAs: ["cdkDrag"], usesOnChanges: true, ngImport: i0 });
3780
3835
  }
3781
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: CdkDrag, decorators: [{
3836
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDrag, decorators: [{
3782
3837
  type: Directive,
3783
3838
  args: [{
3784
3839
  selector: '[cdkDrag]',
@@ -3866,10 +3921,10 @@ class CdkDropListGroup {
3866
3921
  ngOnDestroy() {
3867
3922
  this._items.clear();
3868
3923
  }
3869
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: CdkDropListGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3870
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.2.0", type: CdkDropListGroup, isStandalone: true, selector: "[cdkDropListGroup]", inputs: { disabled: ["cdkDropListGroupDisabled", "disabled", booleanAttribute] }, providers: [{ provide: CDK_DROP_LIST_GROUP, useExisting: CdkDropListGroup }], exportAs: ["cdkDropListGroup"], ngImport: i0 });
3924
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDropListGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3925
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.0.0-next.5", type: CdkDropListGroup, isStandalone: true, selector: "[cdkDropListGroup]", inputs: { disabled: ["cdkDropListGroupDisabled", "disabled", booleanAttribute] }, providers: [{ provide: CDK_DROP_LIST_GROUP, useExisting: CdkDropListGroup }], exportAs: ["cdkDropListGroup"], ngImport: i0 });
3871
3926
  }
3872
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: CdkDropListGroup, decorators: [{
3927
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDropListGroup, decorators: [{
3873
3928
  type: Directive,
3874
3929
  args: [{
3875
3930
  selector: '[cdkDropListGroup]',
@@ -3891,6 +3946,8 @@ class CdkDropList {
3891
3946
  optional: true,
3892
3947
  skipSelf: true,
3893
3948
  });
3949
+ /** Refs that have been synced with the drop ref most recently. */
3950
+ _latestSortedRefs;
3894
3951
  /** Emits when the list has been destroyed. */
3895
3952
  _destroyed = new Subject();
3896
3953
  /** Whether the element's scrollable parents have been resolved. */
@@ -4007,14 +4064,22 @@ class CdkDropList {
4007
4064
  // Only sync the items while dragging since this method is
4008
4065
  // called when items are being initialized one-by-one.
4009
4066
  if (this._dropListRef.isDragging()) {
4010
- this._syncItemsWithRef();
4067
+ this._syncItemsWithRef(this.getSortedItems().map(item => item._dragRef));
4011
4068
  }
4012
4069
  }
4013
4070
  /** Removes an item from the drop list. */
4014
4071
  removeItem(item) {
4015
4072
  this._unsortedItems.delete(item);
4016
4073
  // This method might be called on destroy so we always want to sync with the ref.
4017
- this._syncItemsWithRef();
4074
+ // Note that we reuse the last set of synced items, rather than re-sorting the whole
4075
+ // list, because it can slow down re-renders of large lists (see #30737).
4076
+ if (this._latestSortedRefs) {
4077
+ const index = this._latestSortedRefs.indexOf(item._dragRef);
4078
+ if (index > -1) {
4079
+ this._latestSortedRefs.splice(index, 1);
4080
+ this._syncItemsWithRef(this._latestSortedRefs);
4081
+ }
4082
+ }
4018
4083
  }
4019
4084
  /** Gets the registered items in the list, sorted by their position in the DOM. */
4020
4085
  getSortedItems() {
@@ -4036,6 +4101,7 @@ class CdkDropList {
4036
4101
  if (this._group) {
4037
4102
  this._group._items.delete(this);
4038
4103
  }
4104
+ this._latestSortedRefs = undefined;
4039
4105
  this._unsortedItems.clear();
4040
4106
  this._dropListRef.dispose();
4041
4107
  this._destroyed.next();
@@ -4097,7 +4163,7 @@ class CdkDropList {
4097
4163
  /** Handles events from the underlying DropListRef. */
4098
4164
  _handleEvents(ref) {
4099
4165
  ref.beforeStarted.subscribe(() => {
4100
- this._syncItemsWithRef();
4166
+ this._syncItemsWithRef(this.getSortedItems().map(item => item._dragRef));
4101
4167
  this._changeDetectorRef.markForCheck();
4102
4168
  });
4103
4169
  ref.entered.subscribe(event => {
@@ -4152,17 +4218,18 @@ class CdkDropList {
4152
4218
  }
4153
4219
  }
4154
4220
  /** Syncs up the registered drag items with underlying drop list ref. */
4155
- _syncItemsWithRef() {
4156
- this._dropListRef.withItems(this.getSortedItems().map(item => item._dragRef));
4221
+ _syncItemsWithRef(items) {
4222
+ this._latestSortedRefs = items;
4223
+ this._dropListRef.withItems(items);
4157
4224
  }
4158
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: CdkDropList, deps: [], target: i0.ɵɵFactoryTarget.Directive });
4159
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.2.0", type: CdkDropList, isStandalone: true, selector: "[cdkDropList], cdk-drop-list", inputs: { connectedTo: ["cdkDropListConnectedTo", "connectedTo"], data: ["cdkDropListData", "data"], orientation: ["cdkDropListOrientation", "orientation"], id: "id", lockAxis: ["cdkDropListLockAxis", "lockAxis"], disabled: ["cdkDropListDisabled", "disabled", booleanAttribute], sortingDisabled: ["cdkDropListSortingDisabled", "sortingDisabled", booleanAttribute], enterPredicate: ["cdkDropListEnterPredicate", "enterPredicate"], sortPredicate: ["cdkDropListSortPredicate", "sortPredicate"], autoScrollDisabled: ["cdkDropListAutoScrollDisabled", "autoScrollDisabled", booleanAttribute], autoScrollStep: ["cdkDropListAutoScrollStep", "autoScrollStep"], elementContainerSelector: ["cdkDropListElementContainer", "elementContainerSelector"] }, outputs: { dropped: "cdkDropListDropped", entered: "cdkDropListEntered", exited: "cdkDropListExited", sorted: "cdkDropListSorted" }, host: { properties: { "attr.id": "id", "class.cdk-drop-list-disabled": "disabled", "class.cdk-drop-list-dragging": "_dropListRef.isDragging()", "class.cdk-drop-list-receiving": "_dropListRef.isReceiving()" }, classAttribute: "cdk-drop-list" }, providers: [
4225
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDropList, deps: [], target: i0.ɵɵFactoryTarget.Directive });
4226
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.0.0-next.5", type: CdkDropList, isStandalone: true, selector: "[cdkDropList], cdk-drop-list", inputs: { connectedTo: ["cdkDropListConnectedTo", "connectedTo"], data: ["cdkDropListData", "data"], orientation: ["cdkDropListOrientation", "orientation"], id: "id", lockAxis: ["cdkDropListLockAxis", "lockAxis"], disabled: ["cdkDropListDisabled", "disabled", booleanAttribute], sortingDisabled: ["cdkDropListSortingDisabled", "sortingDisabled", booleanAttribute], enterPredicate: ["cdkDropListEnterPredicate", "enterPredicate"], sortPredicate: ["cdkDropListSortPredicate", "sortPredicate"], autoScrollDisabled: ["cdkDropListAutoScrollDisabled", "autoScrollDisabled", booleanAttribute], autoScrollStep: ["cdkDropListAutoScrollStep", "autoScrollStep"], elementContainerSelector: ["cdkDropListElementContainer", "elementContainerSelector"] }, outputs: { dropped: "cdkDropListDropped", entered: "cdkDropListEntered", exited: "cdkDropListExited", sorted: "cdkDropListSorted" }, host: { properties: { "attr.id": "id", "class.cdk-drop-list-disabled": "disabled", "class.cdk-drop-list-dragging": "_dropListRef.isDragging()", "class.cdk-drop-list-receiving": "_dropListRef.isReceiving()" }, classAttribute: "cdk-drop-list" }, providers: [
4160
4227
  // Prevent child drop lists from picking up the same group as their parent.
4161
4228
  { provide: CDK_DROP_LIST_GROUP, useValue: undefined },
4162
4229
  { provide: CDK_DROP_LIST, useExisting: CdkDropList },
4163
4230
  ], exportAs: ["cdkDropList"], ngImport: i0 });
4164
4231
  }
4165
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: CdkDropList, decorators: [{
4232
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDropList, decorators: [{
4166
4233
  type: Directive,
4167
4234
  args: [{
4168
4235
  selector: '[cdkDropList], cdk-drop-list',
@@ -4252,10 +4319,10 @@ class CdkDragPreview {
4252
4319
  ngOnDestroy() {
4253
4320
  this._drag?._resetPreviewTemplate(this);
4254
4321
  }
4255
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: CdkDragPreview, deps: [], target: i0.ɵɵFactoryTarget.Directive });
4256
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.2.0", type: CdkDragPreview, isStandalone: true, selector: "ng-template[cdkDragPreview]", inputs: { data: "data", matchSize: ["matchSize", "matchSize", booleanAttribute] }, providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }], ngImport: i0 });
4322
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDragPreview, deps: [], target: i0.ɵɵFactoryTarget.Directive });
4323
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.0.0-next.5", type: CdkDragPreview, isStandalone: true, selector: "ng-template[cdkDragPreview]", inputs: { data: "data", matchSize: ["matchSize", "matchSize", booleanAttribute] }, providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }], ngImport: i0 });
4257
4324
  }
4258
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: CdkDragPreview, decorators: [{
4325
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDragPreview, decorators: [{
4259
4326
  type: Directive,
4260
4327
  args: [{
4261
4328
  selector: 'ng-template[cdkDragPreview]',
@@ -4289,10 +4356,10 @@ class CdkDragPlaceholder {
4289
4356
  ngOnDestroy() {
4290
4357
  this._drag?._resetPlaceholderTemplate(this);
4291
4358
  }
4292
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: CdkDragPlaceholder, deps: [], target: i0.ɵɵFactoryTarget.Directive });
4293
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.0", type: CdkDragPlaceholder, isStandalone: true, selector: "ng-template[cdkDragPlaceholder]", inputs: { data: "data" }, providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }], ngImport: i0 });
4359
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDragPlaceholder, deps: [], target: i0.ɵɵFactoryTarget.Directive });
4360
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.5", type: CdkDragPlaceholder, isStandalone: true, selector: "ng-template[cdkDragPlaceholder]", inputs: { data: "data" }, providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }], ngImport: i0 });
4294
4361
  }
4295
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: CdkDragPlaceholder, decorators: [{
4362
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDragPlaceholder, decorators: [{
4296
4363
  type: Directive,
4297
4364
  args: [{
4298
4365
  selector: 'ng-template[cdkDragPlaceholder]',
@@ -4311,8 +4378,8 @@ const DRAG_DROP_DIRECTIVES = [
4311
4378
  CdkDragPlaceholder,
4312
4379
  ];
4313
4380
  class DragDropModule {
4314
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4315
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.0", ngImport: i0, type: DragDropModule, imports: [CdkDropList,
4381
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: DragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4382
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.5", ngImport: i0, type: DragDropModule, imports: [CdkDropList,
4316
4383
  CdkDropListGroup,
4317
4384
  CdkDrag,
4318
4385
  CdkDragHandle,
@@ -4323,9 +4390,9 @@ class DragDropModule {
4323
4390
  CdkDragHandle,
4324
4391
  CdkDragPreview,
4325
4392
  CdkDragPlaceholder] });
4326
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DragDropModule, providers: [DragDrop], imports: [CdkScrollableModule] });
4393
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: DragDropModule, providers: [DragDrop], imports: [CdkScrollableModule] });
4327
4394
  }
4328
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DragDropModule, decorators: [{
4395
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: DragDropModule, decorators: [{
4329
4396
  type: NgModule,
4330
4397
  args: [{
4331
4398
  imports: DRAG_DROP_DIRECTIVES,
@@ -4334,9 +4401,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
4334
4401
  }]
4335
4402
  }] });
4336
4403
 
4337
- /**
4338
- * Generated bundle index. Do not edit.
4339
- */
4340
-
4341
4404
  export { CDK_DRAG_CONFIG, CDK_DRAG_HANDLE, CDK_DRAG_PARENT, CDK_DRAG_PLACEHOLDER, CDK_DRAG_PREVIEW, CDK_DROP_LIST, CDK_DROP_LIST_GROUP, CdkDrag, CdkDragHandle, CdkDragPlaceholder, CdkDragPreview, CdkDropList, CdkDropListGroup, DragDrop, DragDropModule, DragDropRegistry, DragRef, DropListRef, copyArrayItem, moveItemInArray, transferArrayItem };
4342
4405
  //# sourceMappingURL=drag-drop.mjs.map