@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,16 +1,68 @@
1
- import { EventEmitter } from '@angular/core';
2
1
  import * as i0 from '@angular/core';
3
- import { InjectionToken } from '@angular/core';
4
- import { OnDestroy } from '@angular/core';
2
+ import { InjectionToken, OnDestroy, EventEmitter } from '@angular/core';
5
3
 
6
- /** Injection token that can be used to provide the default options to `CdkCopyToClipboard`. */
7
- export declare const CDK_COPY_TO_CLIPBOARD_CONFIG: InjectionToken<CdkCopyToClipboardConfig>;
4
+ /**
5
+ * A pending copy-to-clipboard operation.
6
+ *
7
+ * The implementation of copying text to the clipboard modifies the DOM and
8
+ * forces a re-layout. This re-layout can take too long if the string is large,
9
+ * causing the execCommand('copy') to happen too long after the user clicked.
10
+ * This results in the browser refusing to copy. This object lets the
11
+ * re-layout happen in a separate tick from copying by providing a copy function
12
+ * that can be called later.
13
+ *
14
+ * Destroy must be called when no longer in use, regardless of whether `copy` is
15
+ * called.
16
+ */
17
+ declare class PendingCopy {
18
+ private readonly _document;
19
+ private _textarea;
20
+ constructor(text: string, _document: Document);
21
+ /** Finishes copying the text. */
22
+ copy(): boolean;
23
+ /** Cleans up DOM changes used to perform the copy operation. */
24
+ destroy(): void;
25
+ }
8
26
 
27
+ /**
28
+ * A service for copying text to the clipboard.
29
+ */
30
+ declare class Clipboard {
31
+ private readonly _document;
32
+ constructor(...args: unknown[]);
33
+ /**
34
+ * Copies the provided text into the user's clipboard.
35
+ *
36
+ * @param text The string to copy.
37
+ * @returns Whether the operation was successful.
38
+ */
39
+ copy(text: string): boolean;
40
+ /**
41
+ * Prepares a string to be copied later. This is useful for large strings
42
+ * which take too long to successfully render and be copied in the same tick.
43
+ *
44
+ * The caller must call `destroy` on the returned `PendingCopy`.
45
+ *
46
+ * @param text The string to copy.
47
+ * @returns the pending copy operation.
48
+ */
49
+ beginCopy(text: string): PendingCopy;
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<Clipboard, never>;
51
+ static ɵprov: i0.ɵɵInjectableDeclaration<Clipboard>;
52
+ }
53
+
54
+ /** Object that can be used to configure the default options for `CdkCopyToClipboard`. */
55
+ interface CdkCopyToClipboardConfig {
56
+ /** Default number of attempts to make when copying text to the clipboard. */
57
+ attempts?: number;
58
+ }
59
+ /** Injection token that can be used to provide the default options to `CdkCopyToClipboard`. */
60
+ declare const CDK_COPY_TO_CLIPBOARD_CONFIG: InjectionToken<CdkCopyToClipboardConfig>;
9
61
  /**
10
62
  * Provides behavior for a button that when clicked copies content into user's
11
63
  * clipboard.
12
64
  */
13
- export declare class CdkCopyToClipboard implements OnDestroy {
65
+ declare class CdkCopyToClipboard implements OnDestroy {
14
66
  private _clipboard;
15
67
  private _ngZone;
16
68
  /** Content to be copied. */
@@ -39,76 +91,11 @@ export declare class CdkCopyToClipboard implements OnDestroy {
39
91
  static ɵdir: i0.ɵɵDirectiveDeclaration<CdkCopyToClipboard, "[cdkCopyToClipboard]", never, { "text": { "alias": "cdkCopyToClipboard"; "required": false; }; "attempts": { "alias": "cdkCopyToClipboardAttempts"; "required": false; }; }, { "copied": "cdkCopyToClipboardCopied"; }, never, never, true, never>;
40
92
  }
41
93
 
42
- /** Object that can be used to configure the default options for `CdkCopyToClipboard`. */
43
- export declare interface CdkCopyToClipboardConfig {
44
- /** Default number of attempts to make when copying text to the clipboard. */
45
- attempts?: number;
46
- }
47
-
48
- /**
49
- * A service for copying text to the clipboard.
50
- */
51
- declare class Clipboard_2 {
52
- private readonly _document;
53
- constructor(...args: unknown[]);
54
- /**
55
- * Copies the provided text into the user's clipboard.
56
- *
57
- * @param text The string to copy.
58
- * @returns Whether the operation was successful.
59
- */
60
- copy(text: string): boolean;
61
- /**
62
- * Prepares a string to be copied later. This is useful for large strings
63
- * which take too long to successfully render and be copied in the same tick.
64
- *
65
- * The caller must call `destroy` on the returned `PendingCopy`.
66
- *
67
- * @param text The string to copy.
68
- * @returns the pending copy operation.
69
- */
70
- beginCopy(text: string): PendingCopy;
71
- static ɵfac: i0.ɵɵFactoryDeclaration<Clipboard_2, never>;
72
- static ɵprov: i0.ɵɵInjectableDeclaration<Clipboard_2>;
73
- }
74
- export { Clipboard_2 as Clipboard }
75
-
76
- export declare class ClipboardModule {
94
+ declare class ClipboardModule {
77
95
  static ɵfac: i0.ɵɵFactoryDeclaration<ClipboardModule, never>;
78
- static ɵmod: i0.ɵɵNgModuleDeclaration<ClipboardModule, never, [typeof i1.CdkCopyToClipboard], [typeof i1.CdkCopyToClipboard]>;
96
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ClipboardModule, never, [typeof CdkCopyToClipboard], [typeof CdkCopyToClipboard]>;
79
97
  static ɵinj: i0.ɵɵInjectorDeclaration<ClipboardModule>;
80
98
  }
81
99
 
82
- declare namespace i1 {
83
- export {
84
- CdkCopyToClipboardConfig,
85
- CDK_COPY_TO_CLIPBOARD_CONFIG,
86
- CdkCopyToClipboard
87
- }
88
- }
89
-
90
-
91
- /**
92
- * A pending copy-to-clipboard operation.
93
- *
94
- * The implementation of copying text to the clipboard modifies the DOM and
95
- * forces a re-layout. This re-layout can take too long if the string is large,
96
- * causing the execCommand('copy') to happen too long after the user clicked.
97
- * This results in the browser refusing to copy. This object lets the
98
- * re-layout happen in a separate tick from copying by providing a copy function
99
- * that can be called later.
100
- *
101
- * Destroy must be called when no longer in use, regardless of whether `copy` is
102
- * called.
103
- */
104
- export declare class PendingCopy {
105
- private readonly _document;
106
- private _textarea;
107
- constructor(text: string, _document: Document);
108
- /** Finishes copying the text. */
109
- copy(): boolean;
110
- /** Cleans up DOM changes used to perform the copy operation. */
111
- destroy(): void;
112
- }
113
-
114
- export { }
100
+ export { CDK_COPY_TO_CLIPBOARD_CONFIG, CdkCopyToClipboard, Clipboard, ClipboardModule, PendingCopy };
101
+ export type { CdkCopyToClipboardConfig };
@@ -1,36 +1,26 @@
1
+ export { N as NumberInput, _ as _isNumberValue, c as coerceNumberProperty } from '../number-property.d-CJVxXUcb.js';
1
2
  import { ElementRef } from '@angular/core';
2
3
 
3
-
4
4
  /**
5
5
  * Type describing the allowed values for a boolean input.
6
6
  * @docs-private
7
7
  */
8
- export declare type BooleanInput = string | boolean | null | undefined;
9
-
10
-
11
- /** Wraps the provided value in an array, unless the provided value is an array. */
12
- export declare function coerceArray<T>(value: T | T[]): T[];
13
-
14
- export declare function coerceArray<T>(value: T | readonly T[]): readonly T[];
15
-
8
+ type BooleanInput = string | boolean | null | undefined;
16
9
  /** Coerces a data-bound value (typically a string) to a boolean. */
17
- export declare function coerceBooleanProperty(value: any): boolean;
10
+ declare function coerceBooleanProperty(value: any): boolean;
18
11
 
12
+ /** Wraps the provided value in an array, unless the provided value is an array. */
13
+ declare function coerceArray<T>(value: T | T[]): T[];
14
+ declare function coerceArray<T>(value: T | readonly T[]): readonly T[];
19
15
 
20
16
  /** Coerces a value to a CSS pixel value. */
21
- export declare function coerceCssPixelValue(value: any): string;
17
+ declare function coerceCssPixelValue(value: any): string;
22
18
 
23
19
  /**
24
20
  * Coerces an ElementRef or an Element into an element.
25
21
  * Useful for APIs that can accept either a ref or the native element itself.
26
22
  */
27
- export declare function coerceElement<T>(elementOrRef: ElementRef<T> | T): T;
28
-
29
- /** Coerces a data-bound value (typically a string) to a number. */
30
- export declare function coerceNumberProperty(value: any): number;
31
-
32
- export declare function coerceNumberProperty<D>(value: any, fallback: D): number | D;
33
-
23
+ declare function coerceElement<T>(elementOrRef: ElementRef<T> | T): T;
34
24
 
35
25
  /**
36
26
  * Coerces a value to an array of trimmed non-empty strings.
@@ -49,19 +39,7 @@ export declare function coerceNumberProperty<D>(value: any, fallback: D): number
49
39
  * @param value the value to coerce into an array of strings
50
40
  * @param separator split-separator if value isn't an array
51
41
  */
52
- export declare function coerceStringArray(value: any, separator?: string | RegExp): string[];
53
-
54
- /**
55
- * Whether the provided value is considered a number.
56
- * @docs-private
57
- */
58
- export declare function _isNumberValue(value: any): boolean;
59
-
60
-
61
- /**
62
- * Type describing the allowed values for a number input
63
- * @docs-private
64
- */
65
- export declare type NumberInput = string | number | null | undefined;
42
+ declare function coerceStringArray(value: any, separator?: string | RegExp): string[];
66
43
 
67
- export { }
44
+ export { coerceArray, coerceBooleanProperty, coerceCssPixelValue, coerceElement, coerceStringArray };
45
+ export type { BooleanInput };
@@ -4,6 +4,6 @@ import { Observable } from 'rxjs';
4
4
  * Given either an Observable or non-Observable value, returns either the original
5
5
  * Observable, or wraps it in an Observable that emits the non-Observable value.
6
6
  */
7
- export declare function coerceObservable<T>(data: T | Observable<T>): Observable<T>;
7
+ declare function coerceObservable<T>(data: T | Observable<T>): Observable<T>;
8
8
 
9
- export { }
9
+ export { coerceObservable };
@@ -1,53 +1,21 @@
1
- import * as i0 from '@angular/core';
2
- import { InjectionToken } from '@angular/core';
3
- import { IterableChangeRecord } from '@angular/core';
4
- import { IterableChanges } from '@angular/core';
5
1
  import { Observable } from 'rxjs';
6
- import { OnDestroy } from '@angular/core';
7
- import { Subject } from 'rxjs';
8
- import { TemplateRef } from '@angular/core';
9
- import { ViewContainerRef } from '@angular/core';
2
+ import { D as DataSource } from '../data-source.d-Bblv7Zvh.js';
3
+ export { C as CollectionViewer, L as ListRange, i as isDataSource } from '../data-source.d-Bblv7Zvh.js';
4
+ import { IterableChanges, ViewContainerRef } from '@angular/core';
5
+ import { _ as _ViewRepeaterItemContext, a as _ViewRepeater, b as _ViewRepeaterItemContextFactory, c as _ViewRepeaterItemValueResolver, d as _ViewRepeaterItemChanged } from '../view-repeater.d-BKljR8u8.js';
6
+ export { h as _VIEW_REPEATER_STRATEGY, g as _ViewRepeaterItemChange, e as _ViewRepeaterItemInsertArgs, f as _ViewRepeaterOperation } from '../view-repeater.d-BKljR8u8.js';
7
+ import { S as SelectionModel } from '../selection-model.d-DNgOONDg.js';
8
+ export { a as SelectionChange, g as getMultipleValuesInSingleSelectionError } from '../selection-model.d-DNgOONDg.js';
9
+ export { U as UniqueSelectionDispatcher, a as UniqueSelectionDispatcherListener } from '../unique-selection-dispatcher.d-DSFqf1MM.js';
10
10
 
11
11
  /** DataSource wrapper for a native array. */
12
- export declare class ArrayDataSource<T> extends DataSource<T> {
12
+ declare class ArrayDataSource<T> extends DataSource<T> {
13
13
  private _data;
14
14
  constructor(_data: readonly T[] | Observable<readonly T[]>);
15
15
  connect(): Observable<readonly T[]>;
16
16
  disconnect(): void;
17
17
  }
18
18
 
19
- /**
20
- * Interface for any component that provides a view of some data collection and wants to provide
21
- * information regarding the view and any changes made.
22
- */
23
- export declare interface CollectionViewer {
24
- /**
25
- * A stream that emits whenever the `CollectionViewer` starts looking at a new portion of the
26
- * data. The `start` index is inclusive, while the `end` is exclusive.
27
- */
28
- viewChange: Observable<ListRange>;
29
- }
30
-
31
- export declare abstract class DataSource<T> {
32
- /**
33
- * Connects a collection viewer (such as a data-table) to this data source. Note that
34
- * the stream provided will be accessed during change detection and should not directly change
35
- * values that are bound in template views.
36
- * @param collectionViewer The component that exposes a view over the data provided by this
37
- * data source.
38
- * @returns Observable that emits a new value when the data changes.
39
- */
40
- abstract connect(collectionViewer: CollectionViewer): Observable<readonly T[]>;
41
- /**
42
- * Disconnects a collection viewer (such as a data-table) from this data source. Can be used
43
- * to perform any clean-up or tear-down operations when a view is being destroyed.
44
- *
45
- * @param collectionViewer The component that exposes a view over the data provided by this
46
- * data source.
47
- */
48
- abstract disconnect(collectionViewer: CollectionViewer): void;
49
- }
50
-
51
19
  /**
52
20
  * A repeater that destroys views when they are removed from a
53
21
  * {@link ViewContainerRef}. When new items are inserted into the container,
@@ -57,27 +25,11 @@ export declare abstract class DataSource<T> {
57
25
  * @template R The type for the item in each IterableDiffer change record.
58
26
  * @template C The type for the context passed to each embedded view.
59
27
  */
60
- export declare class _DisposeViewRepeaterStrategy<T, R, C extends _ViewRepeaterItemContext<T>> implements _ViewRepeater<T, R, C> {
28
+ declare class _DisposeViewRepeaterStrategy<T, R, C extends _ViewRepeaterItemContext<T>> implements _ViewRepeater<T, R, C> {
61
29
  applyChanges(changes: IterableChanges<R>, viewContainerRef: ViewContainerRef, itemContextFactory: _ViewRepeaterItemContextFactory<T, R, C>, itemValueResolver: _ViewRepeaterItemValueResolver<T, R>, itemViewChanged?: _ViewRepeaterItemChanged<R, C>): void;
62
30
  detach(): void;
63
31
  }
64
32
 
65
- /**
66
- * Returns an error that reports that multiple values are passed into a selection model
67
- * with a single value.
68
- * @docs-private
69
- */
70
- export declare function getMultipleValuesInSingleSelectionError(): Error;
71
-
72
- /** Checks whether an object is a data source. */
73
- export declare function isDataSource(value: any): value is DataSource<any>;
74
-
75
- /** Represents a range of numbers with a specified start and end. */
76
- export declare type ListRange = {
77
- start: number;
78
- end: number;
79
- };
80
-
81
33
  /**
82
34
  * A repeater that caches views when they are removed from a
83
35
  * {@link ViewContainerRef}. When new items are inserted into the container,
@@ -89,7 +41,7 @@ export declare type ListRange = {
89
41
  * @template R The type for the item in each IterableDiffer change record.
90
42
  * @template C The type for the context passed to each embedded view.
91
43
  */
92
- export declare class _RecycleViewRepeaterStrategy<T, R, C extends _ViewRepeaterItemContext<T>> implements _ViewRepeater<T, R, C> {
44
+ declare class _RecycleViewRepeaterStrategy<T, R, C extends _ViewRepeaterItemContext<T>> implements _ViewRepeater<T, R, C> {
93
45
  /**
94
46
  * The size of the cache used to store unused views.
95
47
  * Setting the cache size to `0` will disable caching. Defaults to 20 views.
@@ -124,119 +76,11 @@ export declare class _RecycleViewRepeaterStrategy<T, R, C extends _ViewRepeaterI
124
76
  private _insertViewFromCache;
125
77
  }
126
78
 
127
- /**
128
- * Event emitted when the value of a MatSelectionModel has changed.
129
- * @docs-private
130
- */
131
- export declare interface SelectionChange<T> {
132
- /** Model that dispatched the event. */
133
- source: SelectionModel<T>;
134
- /** Options that were added to the model. */
135
- added: T[];
136
- /** Options that were removed from the model. */
137
- removed: T[];
138
- }
139
-
140
- /**
141
- * Class to be used to power selecting one or more options from a list.
142
- */
143
- export declare class SelectionModel<T> {
144
- private _multiple;
145
- private _emitChanges;
146
- compareWith?: ((o1: T, o2: T) => boolean) | undefined;
147
- /** Currently-selected values. */
148
- private _selection;
149
- /** Keeps track of the deselected options that haven't been emitted by the change event. */
150
- private _deselectedToEmit;
151
- /** Keeps track of the selected options that haven't been emitted by the change event. */
152
- private _selectedToEmit;
153
- /** Cache for the array value of the selected items. */
154
- private _selected;
155
- /** Selected values. */
156
- get selected(): T[];
157
- /** Event emitted when the value has changed. */
158
- readonly changed: Subject<SelectionChange<T>>;
159
- constructor(_multiple?: boolean, initiallySelectedValues?: T[], _emitChanges?: boolean, compareWith?: ((o1: T, o2: T) => boolean) | undefined);
160
- /**
161
- * Selects a value or an array of values.
162
- * @param values The values to select
163
- * @return Whether the selection changed as a result of this call
164
- * @breaking-change 16.0.0 make return type boolean
165
- */
166
- select(...values: T[]): boolean | void;
167
- /**
168
- * Deselects a value or an array of values.
169
- * @param values The values to deselect
170
- * @return Whether the selection changed as a result of this call
171
- * @breaking-change 16.0.0 make return type boolean
172
- */
173
- deselect(...values: T[]): boolean | void;
174
- /**
175
- * Sets the selected values
176
- * @param values The new selected values
177
- * @return Whether the selection changed as a result of this call
178
- * @breaking-change 16.0.0 make return type boolean
179
- */
180
- setSelection(...values: T[]): boolean | void;
181
- /**
182
- * Toggles a value between selected and deselected.
183
- * @param value The value to toggle
184
- * @return Whether the selection changed as a result of this call
185
- * @breaking-change 16.0.0 make return type boolean
186
- */
187
- toggle(value: T): boolean | void;
188
- /**
189
- * Clears all of the selected values.
190
- * @param flushEvent Whether to flush the changes in an event.
191
- * If false, the changes to the selection will be flushed along with the next event.
192
- * @return Whether the selection changed as a result of this call
193
- * @breaking-change 16.0.0 make return type boolean
194
- */
195
- clear(flushEvent?: boolean): boolean | void;
196
- /**
197
- * Determines whether a value is selected.
198
- */
199
- isSelected(value: T): boolean;
200
- /**
201
- * Determines whether the model does not have a value.
202
- */
203
- isEmpty(): boolean;
204
- /**
205
- * Determines whether the model has a value.
206
- */
207
- hasValue(): boolean;
208
- /**
209
- * Sorts the selected values based on a predicate function.
210
- */
211
- sort(predicate?: (a: T, b: T) => number): void;
212
- /**
213
- * Gets whether multiple values can be selected.
214
- */
215
- isMultipleSelection(): boolean;
216
- /** Emits a change event and clears the records of selected and deselected values. */
217
- private _emitChangeEvent;
218
- /** Selects a value. */
219
- private _markSelected;
220
- /** Deselects a value. */
221
- private _unmarkSelected;
222
- /** Clears out the selected values. */
223
- private _unmarkAll;
224
- /**
225
- * Verifies the value assignment and throws an error if the specified value array is
226
- * including multiple values while the selection model is not supporting multiple values.
227
- */
228
- private _verifyValueAssignment;
229
- /** Whether there are queued up change to be emitted. */
230
- private _hasQueuedChanges;
231
- /** Returns a value that is comparable to inputValue by applying compareWith function, returns the same inputValue otherwise. */
232
- private _getConcreteValue;
233
- }
234
-
235
79
  /**
236
80
  * Interface for a class that can flatten hierarchical structured data and re-expand the flattened
237
81
  * data back into its original structure. Should be used in conjunction with the cdk-tree.
238
82
  */
239
- export declare interface TreeDataNodeFlattener<T> {
83
+ interface TreeDataNodeFlattener<T> {
240
84
  /** Transforms a set of hierarchical structured data into a flattened data array. */
241
85
  flattenNodes(structuredData: any[]): T[];
242
86
  /**
@@ -251,126 +95,5 @@ export declare interface TreeDataNodeFlattener<T> {
251
95
  nodeDescendents(node: T, nodes: T[], onlyExpandable: boolean): void;
252
96
  }
253
97
 
254
- /**
255
- * Class to coordinate unique selection based on name.
256
- * Intended to be consumed as an Angular service.
257
- * This service is needed because native radio change events are only fired on the item currently
258
- * being selected, and we still need to uncheck the previous selection.
259
- *
260
- * This service does not *store* any IDs and names because they may change at any time, so it is
261
- * less error-prone if they are simply passed through when the events occur.
262
- */
263
- export declare class UniqueSelectionDispatcher implements OnDestroy {
264
- private _listeners;
265
- /**
266
- * Notify other items that selection for the given name has been set.
267
- * @param id ID of the item.
268
- * @param name Name of the item.
269
- */
270
- notify(id: string, name: string): void;
271
- /**
272
- * Listen for future changes to item selection.
273
- * @return Function used to deregister listener
274
- */
275
- listen(listener: UniqueSelectionDispatcherListener): () => void;
276
- ngOnDestroy(): void;
277
- static ɵfac: i0.ɵɵFactoryDeclaration<UniqueSelectionDispatcher, never>;
278
- static ɵprov: i0.ɵɵInjectableDeclaration<UniqueSelectionDispatcher>;
279
- }
280
-
281
- export declare type UniqueSelectionDispatcherListener = (id: string, name: string) => void;
282
-
283
- /**
284
- * Injection token for {@link _ViewRepeater}. This token is for use by Angular Material only.
285
- * @docs-private
286
- */
287
- export declare const _VIEW_REPEATER_STRATEGY: InjectionToken<_ViewRepeater<unknown, unknown, _ViewRepeaterItemContext<unknown>>>;
288
-
289
- /**
290
- * Describes a strategy for rendering items in a {@link ViewContainerRef}.
291
- *
292
- * @template T The type for the embedded view's $implicit property.
293
- * @template R The type for the item in each IterableDiffer change record.
294
- * @template C The type for the context passed to each embedded view.
295
- */
296
- export declare interface _ViewRepeater<T, R, C extends _ViewRepeaterItemContext<T>> {
297
- applyChanges(changes: IterableChanges<R>, viewContainerRef: ViewContainerRef, itemContextFactory: _ViewRepeaterItemContextFactory<T, R, C>, itemValueResolver: _ViewRepeaterItemValueResolver<T, R>, itemViewChanged?: _ViewRepeaterItemChanged<R, C>): void;
298
- detach(): void;
299
- }
300
-
301
- /**
302
- * Meta data describing the state of a view after it was updated by a
303
- * {@link _ViewRepeater}.
304
- *
305
- * @template R The type for the item in each IterableDiffer change record.
306
- * @template C The type for the context passed to each embedded view.
307
- */
308
- export declare interface _ViewRepeaterItemChange<R, C> {
309
- /** The view's context after it was changed. */
310
- context?: C;
311
- /** Indicates how the view was changed. */
312
- operation: _ViewRepeaterOperation;
313
- /** The view's corresponding change record. */
314
- record: IterableChangeRecord<R>;
315
- }
316
-
317
- /**
318
- * Type for a callback to be executed after a view has changed.
319
- *
320
- * @template R The type for the item in each IterableDiffer change record.
321
- * @template C The type for the context passed to each embedded view.
322
- */
323
- export declare type _ViewRepeaterItemChanged<R, C> = (change: _ViewRepeaterItemChange<R, C>) => void;
324
-
325
- /**
326
- * The context for an embedded view in the repeater's view container.
327
- *
328
- * @template T The type for the embedded view's $implicit property.
329
- */
330
- export declare interface _ViewRepeaterItemContext<T> {
331
- $implicit?: T;
332
- }
333
-
334
- /**
335
- * A factory that derives the embedded view context for an item in a view
336
- * container.
337
- *
338
- * @template T The type for the embedded view's $implicit property.
339
- * @template R The type for the item in each IterableDiffer change record.
340
- * @template C The type for the context passed to each embedded view.
341
- */
342
- export declare type _ViewRepeaterItemContextFactory<T, R, C extends _ViewRepeaterItemContext<T>> = (record: IterableChangeRecord<R>, adjustedPreviousIndex: number | null, currentIndex: number | null) => _ViewRepeaterItemInsertArgs<C>;
343
-
344
- /**
345
- * The arguments needed to construct an embedded view for an item in a view
346
- * container.
347
- *
348
- * @template C The type for the context passed to each embedded view.
349
- */
350
- export declare interface _ViewRepeaterItemInsertArgs<C> {
351
- templateRef: TemplateRef<C>;
352
- context?: C;
353
- index?: number;
354
- }
355
-
356
- /**
357
- * Extracts the value of an item from an {@link IterableChangeRecord}.
358
- *
359
- * @template T The type for the embedded view's $implicit property.
360
- * @template R The type for the item in each IterableDiffer change record.
361
- */
362
- export declare type _ViewRepeaterItemValueResolver<T, R> = (record: IterableChangeRecord<R>) => T;
363
-
364
- /** Indicates how a view was changed by a {@link _ViewRepeater}. */
365
- export declare enum _ViewRepeaterOperation {
366
- /** The content of an existing view was replaced with another item. */
367
- REPLACED = 0,
368
- /** A new view was created with `createEmbeddedView`. */
369
- INSERTED = 1,
370
- /** The position of a view changed, but the content remains the same. */
371
- MOVED = 2,
372
- /** A view was detached from the view container. */
373
- REMOVED = 3
374
- }
375
-
376
- export { }
98
+ export { ArrayDataSource, DataSource, SelectionModel, _DisposeViewRepeaterStrategy, _RecycleViewRepeaterStrategy, _ViewRepeater, _ViewRepeaterItemChanged, _ViewRepeaterItemContext, _ViewRepeaterItemContextFactory, _ViewRepeaterItemValueResolver };
99
+ export type { TreeDataNodeFlattener };
@@ -0,0 +1,43 @@
1
+ import { Observable } from 'rxjs';
2
+
3
+ /** Represents a range of numbers with a specified start and end. */
4
+ type ListRange = {
5
+ start: number;
6
+ end: number;
7
+ };
8
+ /**
9
+ * Interface for any component that provides a view of some data collection and wants to provide
10
+ * information regarding the view and any changes made.
11
+ */
12
+ interface CollectionViewer {
13
+ /**
14
+ * A stream that emits whenever the `CollectionViewer` starts looking at a new portion of the
15
+ * data. The `start` index is inclusive, while the `end` is exclusive.
16
+ */
17
+ viewChange: Observable<ListRange>;
18
+ }
19
+
20
+ declare abstract class DataSource<T> {
21
+ /**
22
+ * Connects a collection viewer (such as a data-table) to this data source. Note that
23
+ * the stream provided will be accessed during change detection and should not directly change
24
+ * values that are bound in template views.
25
+ * @param collectionViewer The component that exposes a view over the data provided by this
26
+ * data source.
27
+ * @returns Observable that emits a new value when the data changes.
28
+ */
29
+ abstract connect(collectionViewer: CollectionViewer): Observable<readonly T[]>;
30
+ /**
31
+ * Disconnects a collection viewer (such as a data-table) from this data source. Can be used
32
+ * to perform any clean-up or tear-down operations when a view is being destroyed.
33
+ *
34
+ * @param collectionViewer The component that exposes a view over the data provided by this
35
+ * data source.
36
+ */
37
+ abstract disconnect(collectionViewer: CollectionViewer): void;
38
+ }
39
+ /** Checks whether an object is a data source. */
40
+ declare function isDataSource(value: any): value is DataSource<any>;
41
+
42
+ export { DataSource as D, isDataSource as i };
43
+ export type { CollectionViewer as C, ListRange as L };