@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
package/dialog/index.d.ts CHANGED
@@ -1,49 +1,158 @@
1
- import { BasePortalOutlet } from '@angular/cdk/portal';
2
- import { CdkPortalOutlet } from '@angular/cdk/portal';
3
- import { ChangeDetectorRef } from '@angular/core';
4
- import { ComponentPortal } from '@angular/cdk/portal';
5
- import { ComponentRef } from '@angular/core';
6
- import { ComponentType } from '@angular/cdk/overlay';
7
- import { Direction } from '@angular/cdk/bidi';
8
- import { DomPortal } from '@angular/cdk/portal';
9
- import { ElementRef } from '@angular/core';
10
- import { EmbeddedViewRef } from '@angular/core';
11
- import { FocusOrigin } from '@angular/cdk/a11y';
12
- import { FocusTrapFactory } from '@angular/cdk/a11y';
13
1
  import * as i0 from '@angular/core';
14
- import * as i1 from '@angular/cdk/overlay';
15
- import * as i2 from '@angular/cdk/portal';
16
- import * as i3 from '@angular/cdk/a11y';
17
- import { InjectionToken } from '@angular/core';
18
- import { Injector } from '@angular/core';
19
- import { NgZone } from '@angular/core';
20
- import { Observable } from 'rxjs';
21
- import { OnDestroy } from '@angular/core';
22
- import { Overlay } from '@angular/cdk/overlay';
23
- import { OverlayRef } from '@angular/cdk/overlay';
24
- import { PositionStrategy } from '@angular/cdk/overlay';
25
- import { ScrollStrategy } from '@angular/cdk/overlay';
26
- import { StaticProvider } from '@angular/core';
27
- import { Subject } from 'rxjs';
28
- import { TemplatePortal } from '@angular/cdk/portal';
29
- import { TemplateRef } from '@angular/core';
30
- import { Type } from '@angular/core';
31
- import { ViewContainerRef } from '@angular/core';
2
+ import { ViewContainerRef, Injector, StaticProvider, Type, OnDestroy, ElementRef, NgZone, ChangeDetectorRef, ComponentRef, EmbeddedViewRef, TemplateRef, InjectionToken } from '@angular/core';
3
+ import { F as FocusOrigin } from '../focus-monitor.d-CvvJeQRc.js';
4
+ import { F as FocusTrapFactory, A as A11yModule } from '../a11y-module.d-DBHGyKoh.js';
5
+ import { B as BasePortalOutlet, f as CdkPortalOutlet, C as ComponentPortal, T as TemplatePortal, D as DomPortal, a as ComponentType, h as PortalModule } from '../portal-directives.d-DbeNrI5D.js';
6
+ export { c as ɵɵCdkPortal, g as ɵɵPortalHostDirective, d as ɵɵTemplatePortalDirective } from '../portal-directives.d-DbeNrI5D.js';
7
+ import { a as Direction } from '../bidi-module.d-IN1Vp56w.js';
8
+ import { P as PositionStrategy, S as ScrollStrategy, O as OverlayRef, a as OverlayModule } from '../overlay-module.d-BiAhhk6g.js';
9
+ import { Observable, Subject } from 'rxjs';
10
+ import * as _angular_cdk_portal from '@angular/cdk/portal';
11
+ import '../observers/index.js';
12
+ import '../number-property.d-CJVxXUcb.js';
13
+ import '../scrolling-module.d-DP0Qb7T9.js';
14
+ import '../data-source.d-Bblv7Zvh.js';
15
+ import '@angular/common';
16
+ import '../scrolling/index.js';
17
+ import '../platform.d-B3vREl3q.js';
18
+ import '../style-loader.d-BXZfQZTF.js';
32
19
 
33
20
  /** Options for where to set focus to automatically on dialog open */
34
- export declare type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
21
+ type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
22
+ /** Valid ARIA roles for a dialog. */
23
+ type DialogRole = 'dialog' | 'alertdialog';
24
+ /** Configuration for opening a modal dialog. */
25
+ declare class DialogConfig<D = unknown, R = unknown, C extends BasePortalOutlet = BasePortalOutlet> {
26
+ /**
27
+ * Where the attached component should live in Angular's *logical* component tree.
28
+ * This affects what is available for injection and the change detection order for the
29
+ * component instantiated inside of the dialog. This does not affect where the dialog
30
+ * content will be rendered.
31
+ */
32
+ viewContainerRef?: ViewContainerRef;
33
+ /**
34
+ * Injector used for the instantiation of the component to be attached. If provided,
35
+ * takes precedence over the injector indirectly provided by `ViewContainerRef`.
36
+ */
37
+ injector?: Injector;
38
+ /** ID for the dialog. If omitted, a unique one will be generated. */
39
+ id?: string;
40
+ /** The ARIA role of the dialog element. */
41
+ role?: DialogRole;
42
+ /** Optional CSS class or classes applied to the overlay panel. */
43
+ panelClass?: string | string[];
44
+ /** Whether the dialog has a backdrop. */
45
+ hasBackdrop?: boolean;
46
+ /** Optional CSS class or classes applied to the overlay backdrop. */
47
+ backdropClass?: string | string[];
48
+ /** Whether the dialog closes with the escape key or pointer events outside the panel element. */
49
+ disableClose?: boolean;
50
+ /** Function used to determine whether the dialog is allowed to close. */
51
+ closePredicate?: <Result = unknown, Component = unknown, Config extends DialogConfig = DialogConfig>(result: Result | undefined, config: Config, componentInstance: Component | null) => boolean;
52
+ /** Width of the dialog. */
53
+ width?: string;
54
+ /** Height of the dialog. */
55
+ height?: string;
56
+ /** Min-width of the dialog. If a number is provided, assumes pixel units. */
57
+ minWidth?: number | string;
58
+ /** Min-height of the dialog. If a number is provided, assumes pixel units. */
59
+ minHeight?: number | string;
60
+ /** Max-width of the dialog. If a number is provided, assumes pixel units. Defaults to 80vw. */
61
+ maxWidth?: number | string;
62
+ /** Max-height of the dialog. If a number is provided, assumes pixel units. */
63
+ maxHeight?: number | string;
64
+ /** Strategy to use when positioning the dialog. Defaults to centering it on the page. */
65
+ positionStrategy?: PositionStrategy;
66
+ /** Data being injected into the child component. */
67
+ data?: D | null;
68
+ /** Layout direction for the dialog's content. */
69
+ direction?: Direction;
70
+ /** ID of the element that describes the dialog. */
71
+ ariaDescribedBy?: string | null;
72
+ /** ID of the element that labels the dialog. */
73
+ ariaLabelledBy?: string | null;
74
+ /** Dialog label applied via `aria-label` */
75
+ ariaLabel?: string | null;
76
+ /**
77
+ * Whether this is a modal dialog. Used to set the `aria-modal` attribute. Off by default,
78
+ * because it can interfere with other overlay-based components (e.g. `mat-select`) and because
79
+ * it is redundant since the dialog marks all outside content as `aria-hidden` anyway.
80
+ */
81
+ ariaModal?: boolean;
82
+ /**
83
+ * Where the dialog should focus on open.
84
+ * @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or
85
+ * AutoFocusTarget instead.
86
+ */
87
+ autoFocus?: AutoFocusTarget | string | boolean;
88
+ /**
89
+ * Whether the dialog should restore focus to the previously-focused element upon closing.
90
+ * Has the following behavior based on the type that is passed in:
91
+ * - `boolean` - when true, will return focus to the element that was focused before the dialog
92
+ * was opened, otherwise won't restore focus at all.
93
+ * - `string` - focus will be restored to the first element that matches the CSS selector.
94
+ * - `HTMLElement` - focus will be restored to the specific element.
95
+ */
96
+ restoreFocus?: boolean | string | HTMLElement;
97
+ /**
98
+ * Scroll strategy to be used for the dialog. This determines how
99
+ * the dialog responds to scrolling underneath the panel element.
100
+ */
101
+ scrollStrategy?: ScrollStrategy;
102
+ /**
103
+ * Whether the dialog should close when the user navigates backwards or forwards through browser
104
+ * history. This does not apply to navigation via anchor element unless using URL-hash based
105
+ * routing (`HashLocationStrategy` in the Angular router).
106
+ */
107
+ closeOnNavigation?: boolean;
108
+ /**
109
+ * Whether the dialog should close when the dialog service is destroyed. This is useful if
110
+ * another service is wrapping the dialog and is managing the destruction instead.
111
+ */
112
+ closeOnDestroy?: boolean;
113
+ /**
114
+ * Whether the dialog should close when the underlying overlay is detached. This is useful if
115
+ * another service is wrapping the dialog and is managing the destruction instead. E.g. an
116
+ * external detachment can happen as a result of a scroll strategy triggering it or when the
117
+ * browser location changes.
118
+ */
119
+ closeOnOverlayDetachments?: boolean;
120
+ /**
121
+ * Whether the built-in overlay animations should be disabled.
122
+ */
123
+ disableAnimations?: boolean;
124
+ /**
125
+ * Providers that will be exposed to the contents of the dialog. Can also
126
+ * be provided as a function in order to generate the providers lazily.
127
+ */
128
+ providers?: StaticProvider[] | ((dialogRef: R, config: DialogConfig<D, R, C>, container: C) => StaticProvider[]);
129
+ /**
130
+ * Component into which the dialog content will be rendered. Defaults to `CdkDialogContainer`.
131
+ * A configuration object can be passed in to customize the providers that will be exposed
132
+ * to the dialog container.
133
+ */
134
+ container?: Type<C> | {
135
+ type: Type<C>;
136
+ providers: (config: DialogConfig<D, R, C>) => StaticProvider[];
137
+ };
138
+ /**
139
+ * Context that will be passed to template-based dialogs.
140
+ * A function can be passed in to resolve the context lazily.
141
+ */
142
+ templateContext?: Record<string, any> | (() => Record<string, any>);
143
+ }
35
144
 
145
+ declare function throwDialogContentAlreadyAttachedError(): void;
36
146
  /**
37
147
  * Internal component that wraps user-provided dialog content.
38
148
  * @docs-private
39
149
  */
40
- export declare class CdkDialogContainer<C extends DialogConfig = DialogConfig> extends BasePortalOutlet implements OnDestroy {
41
- protected _elementRef: ElementRef<any>;
150
+ declare class CdkDialogContainer<C extends DialogConfig = DialogConfig> extends BasePortalOutlet implements OnDestroy {
151
+ protected _elementRef: ElementRef<HTMLElement>;
42
152
  protected _focusTrapFactory: FocusTrapFactory;
43
153
  readonly _config: C;
44
154
  private _interactivityChecker;
45
155
  protected _ngZone: NgZone;
46
- private _overlayRef;
47
156
  private _focusMonitor;
48
157
  private _renderer;
49
158
  private _platform;
@@ -114,7 +223,7 @@ export declare class CdkDialogContainer<C extends DialogConfig = DialogConfig> e
114
223
  * Moves the focus inside the focus trap. When autoFocus is not set to 'dialog', if focus
115
224
  * cannot be moved then focus will go to the dialog container.
116
225
  */
117
- protected _trapFocus(): void;
226
+ protected _trapFocus(options?: FocusOptions): void;
118
227
  /** Restores focus to the element that was focused before the dialog opened. */
119
228
  private _restoreFocus;
120
229
  /** Focuses the dialog container. */
@@ -123,17 +232,74 @@ export declare class CdkDialogContainer<C extends DialogConfig = DialogConfig> e
123
232
  private _containsFocus;
124
233
  /** Sets up the focus trap. */
125
234
  private _initializeFocusTrap;
126
- /** Sets up the listener that handles clicks on the dialog backdrop. */
127
- private _handleBackdropClicks;
128
235
  static ɵfac: i0.ɵɵFactoryDeclaration<CdkDialogContainer<any>, never>;
129
236
  static ɵcmp: i0.ɵɵComponentDeclaration<CdkDialogContainer<any>, "cdk-dialog-container", never, {}, {}, never, never, true, never>;
130
237
  }
131
238
 
132
- /** Injection token that can be used to provide default options for the dialog module. */
133
- export declare const DEFAULT_DIALOG_CONFIG: InjectionToken<DialogConfig<unknown, unknown, BasePortalOutlet>>;
239
+ /** Additional options that can be passed in when closing a dialog. */
240
+ interface DialogCloseOptions {
241
+ /** Focus original to use when restoring focus. */
242
+ focusOrigin?: FocusOrigin;
243
+ }
244
+ /**
245
+ * Reference to a dialog opened via the Dialog service.
246
+ */
247
+ declare class DialogRef<R = unknown, C = unknown> {
248
+ readonly overlayRef: OverlayRef;
249
+ readonly config: DialogConfig<any, DialogRef<R, C>, BasePortalOutlet>;
250
+ /**
251
+ * Instance of component opened into the dialog. Will be
252
+ * null when the dialog is opened using a `TemplateRef`.
253
+ */
254
+ readonly componentInstance: C | null;
255
+ /**
256
+ * `ComponentRef` of the component opened into the dialog. Will be
257
+ * null when the dialog is opened using a `TemplateRef`.
258
+ */
259
+ readonly componentRef: ComponentRef<C> | null;
260
+ /** Instance of the container that is rendering out the dialog content. */
261
+ readonly containerInstance: BasePortalOutlet & {
262
+ _closeInteractionType?: FocusOrigin;
263
+ _recaptureFocus?: () => void;
264
+ };
265
+ /** Whether the user is allowed to close the dialog. */
266
+ disableClose: boolean | undefined;
267
+ /** Emits when the dialog has been closed. */
268
+ readonly closed: Observable<R | undefined>;
269
+ /** Emits when the backdrop of the dialog is clicked. */
270
+ readonly backdropClick: Observable<MouseEvent>;
271
+ /** Emits when on keyboard events within the dialog. */
272
+ readonly keydownEvents: Observable<KeyboardEvent>;
273
+ /** Emits on pointer events that happen outside of the dialog. */
274
+ readonly outsidePointerEvents: Observable<MouseEvent>;
275
+ /** Unique ID for the dialog. */
276
+ readonly id: string;
277
+ /** Subscription to external detachments of the dialog. */
278
+ private _detachSubscription;
279
+ constructor(overlayRef: OverlayRef, config: DialogConfig<any, DialogRef<R, C>, BasePortalOutlet>);
280
+ /**
281
+ * Close the dialog.
282
+ * @param result Optional result to return to the dialog opener.
283
+ * @param options Additional options to customize the closing behavior.
284
+ */
285
+ close(result?: R, options?: DialogCloseOptions): void;
286
+ /** Updates the position of the dialog based on the current position strategy. */
287
+ updatePosition(): this;
288
+ /**
289
+ * Updates the dialog's width and height.
290
+ * @param width New width of the dialog.
291
+ * @param height New height of the dialog.
292
+ */
293
+ updateSize(width?: string | number, height?: string | number): this;
294
+ /** Add a CSS class or an array of classes to the overlay pane. */
295
+ addPanelClass(classes: string | string[]): this;
296
+ /** Remove a CSS class or an array of classes from the overlay pane. */
297
+ removePanelClass(classes: string | string[]): this;
298
+ /** Whether the dialog is allowed to close. */
299
+ private _canClose;
300
+ }
134
301
 
135
- export declare class Dialog implements OnDestroy {
136
- private _overlay;
302
+ declare class Dialog implements OnDestroy {
137
303
  private _injector;
138
304
  private _defaultOptions;
139
305
  private _parentDialog;
@@ -225,222 +391,18 @@ export declare class Dialog implements OnDestroy {
225
391
  static ɵprov: i0.ɵɵInjectableDeclaration<Dialog>;
226
392
  }
227
393
 
228
- /** Injection token for the Dialog's Data. */
229
- export declare const DIALOG_DATA: InjectionToken<any>;
230
-
231
- /** Injection token for the Dialog's ScrollStrategy. */
232
- export declare const DIALOG_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
233
-
234
- /**
235
- * @docs-private
236
- * @deprecated No longer used. To be removed.
237
- * @breaking-change 19.0.0
238
- */
239
- export declare const DIALOG_SCROLL_STRATEGY_PROVIDER: {
240
- provide: InjectionToken<() => ScrollStrategy>;
241
- deps: (typeof Overlay)[];
242
- useFactory: typeof DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY;
243
- };
244
-
245
- /**
246
- * @docs-private
247
- * @deprecated No longer used. To be removed.
248
- * @breaking-change 19.0.0
249
- */
250
- export declare function DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Overlay): () => ScrollStrategy;
251
-
252
- /** Additional options that can be passed in when closing a dialog. */
253
- export declare interface DialogCloseOptions {
254
- /** Focus original to use when restoring focus. */
255
- focusOrigin?: FocusOrigin;
256
- }
257
-
258
- /** Configuration for opening a modal dialog. */
259
- export declare class DialogConfig<D = unknown, R = unknown, C extends BasePortalOutlet = BasePortalOutlet> {
260
- /**
261
- * Where the attached component should live in Angular's *logical* component tree.
262
- * This affects what is available for injection and the change detection order for the
263
- * component instantiated inside of the dialog. This does not affect where the dialog
264
- * content will be rendered.
265
- */
266
- viewContainerRef?: ViewContainerRef;
267
- /**
268
- * Injector used for the instantiation of the component to be attached. If provided,
269
- * takes precedence over the injector indirectly provided by `ViewContainerRef`.
270
- */
271
- injector?: Injector;
272
- /** ID for the dialog. If omitted, a unique one will be generated. */
273
- id?: string;
274
- /** The ARIA role of the dialog element. */
275
- role?: DialogRole;
276
- /** Optional CSS class or classes applied to the overlay panel. */
277
- panelClass?: string | string[];
278
- /** Whether the dialog has a backdrop. */
279
- hasBackdrop?: boolean;
280
- /** Optional CSS class or classes applied to the overlay backdrop. */
281
- backdropClass?: string | string[];
282
- /** Whether the dialog closes with the escape key or pointer events outside the panel element. */
283
- disableClose?: boolean;
284
- /** Width of the dialog. */
285
- width?: string;
286
- /** Height of the dialog. */
287
- height?: string;
288
- /** Min-width of the dialog. If a number is provided, assumes pixel units. */
289
- minWidth?: number | string;
290
- /** Min-height of the dialog. If a number is provided, assumes pixel units. */
291
- minHeight?: number | string;
292
- /** Max-width of the dialog. If a number is provided, assumes pixel units. Defaults to 80vw. */
293
- maxWidth?: number | string;
294
- /** Max-height of the dialog. If a number is provided, assumes pixel units. */
295
- maxHeight?: number | string;
296
- /** Strategy to use when positioning the dialog. Defaults to centering it on the page. */
297
- positionStrategy?: PositionStrategy;
298
- /** Data being injected into the child component. */
299
- data?: D | null;
300
- /** Layout direction for the dialog's content. */
301
- direction?: Direction;
302
- /** ID of the element that describes the dialog. */
303
- ariaDescribedBy?: string | null;
304
- /** ID of the element that labels the dialog. */
305
- ariaLabelledBy?: string | null;
306
- /** Dialog label applied via `aria-label` */
307
- ariaLabel?: string | null;
308
- /**
309
- * Whether this is a modal dialog. Used to set the `aria-modal` attribute. Off by default,
310
- * because it can interfere with other overlay-based components (e.g. `mat-select`) and because
311
- * it is redundant since the dialog marks all outside content as `aria-hidden` anyway.
312
- */
313
- ariaModal?: boolean;
314
- /**
315
- * Where the dialog should focus on open.
316
- * @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or
317
- * AutoFocusTarget instead.
318
- */
319
- autoFocus?: AutoFocusTarget | string | boolean;
320
- /**
321
- * Whether the dialog should restore focus to the previously-focused element upon closing.
322
- * Has the following behavior based on the type that is passed in:
323
- * - `boolean` - when true, will return focus to the element that was focused before the dialog
324
- * was opened, otherwise won't restore focus at all.
325
- * - `string` - focus will be restored to the first element that matches the CSS selector.
326
- * - `HTMLElement` - focus will be restored to the specific element.
327
- */
328
- restoreFocus?: boolean | string | HTMLElement;
329
- /**
330
- * Scroll strategy to be used for the dialog. This determines how
331
- * the dialog responds to scrolling underneath the panel element.
332
- */
333
- scrollStrategy?: ScrollStrategy;
334
- /**
335
- * Whether the dialog should close when the user navigates backwards or forwards through browser
336
- * history. This does not apply to navigation via anchor element unless using URL-hash based
337
- * routing (`HashLocationStrategy` in the Angular router).
338
- */
339
- closeOnNavigation?: boolean;
340
- /**
341
- * Whether the dialog should close when the dialog service is destroyed. This is useful if
342
- * another service is wrapping the dialog and is managing the destruction instead.
343
- */
344
- closeOnDestroy?: boolean;
345
- /**
346
- * Whether the dialog should close when the underlying overlay is detached. This is useful if
347
- * another service is wrapping the dialog and is managing the destruction instead. E.g. an
348
- * external detachment can happen as a result of a scroll strategy triggering it or when the
349
- * browser location changes.
350
- */
351
- closeOnOverlayDetachments?: boolean;
352
- /**
353
- * Providers that will be exposed to the contents of the dialog. Can also
354
- * be provided as a function in order to generate the providers lazily.
355
- */
356
- providers?: StaticProvider[] | ((dialogRef: R, config: DialogConfig<D, R, C>, container: C) => StaticProvider[]);
357
- /**
358
- * Component into which the dialog content will be rendered. Defaults to `CdkDialogContainer`.
359
- * A configuration object can be passed in to customize the providers that will be exposed
360
- * to the dialog container.
361
- */
362
- container?: Type<C> | {
363
- type: Type<C>;
364
- providers: (config: DialogConfig<D, R, C>) => StaticProvider[];
365
- };
366
- /**
367
- * Context that will be passed to template-based dialogs.
368
- * A function can be passed in to resolve the context lazily.
369
- */
370
- templateContext?: Record<string, any> | (() => Record<string, any>);
371
- }
372
-
373
- export declare class DialogModule {
394
+ declare class DialogModule {
374
395
  static ɵfac: i0.ɵɵFactoryDeclaration<DialogModule, never>;
375
- static ɵmod: i0.ɵɵNgModuleDeclaration<DialogModule, never, [typeof i1.OverlayModule, typeof i2.PortalModule, typeof i3.A11yModule, typeof i4.CdkDialogContainer], [typeof i2.PortalModule, typeof i4.CdkDialogContainer]>;
396
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DialogModule, never, [typeof OverlayModule, typeof PortalModule, typeof A11yModule, typeof CdkDialogContainer], [typeof PortalModule, typeof CdkDialogContainer]>;
376
397
  static ɵinj: i0.ɵɵInjectorDeclaration<DialogModule>;
377
398
  }
378
399
 
379
- /**
380
- * Reference to a dialog opened via the Dialog service.
381
- */
382
- export declare class DialogRef<R = unknown, C = unknown> {
383
- readonly overlayRef: OverlayRef;
384
- readonly config: DialogConfig<any, DialogRef<R, C>, BasePortalOutlet>;
385
- /**
386
- * Instance of component opened into the dialog. Will be
387
- * null when the dialog is opened using a `TemplateRef`.
388
- */
389
- readonly componentInstance: C | null;
390
- /**
391
- * `ComponentRef` of the component opened into the dialog. Will be
392
- * null when the dialog is opened using a `TemplateRef`.
393
- */
394
- readonly componentRef: ComponentRef<C> | null;
395
- /** Instance of the container that is rendering out the dialog content. */
396
- readonly containerInstance: BasePortalOutlet & {
397
- _closeInteractionType?: FocusOrigin;
398
- };
399
- /** Whether the user is allowed to close the dialog. */
400
- disableClose: boolean | undefined;
401
- /** Emits when the dialog has been closed. */
402
- readonly closed: Observable<R | undefined>;
403
- /** Emits when the backdrop of the dialog is clicked. */
404
- readonly backdropClick: Observable<MouseEvent>;
405
- /** Emits when on keyboard events within the dialog. */
406
- readonly keydownEvents: Observable<KeyboardEvent>;
407
- /** Emits on pointer events that happen outside of the dialog. */
408
- readonly outsidePointerEvents: Observable<MouseEvent>;
409
- /** Unique ID for the dialog. */
410
- readonly id: string;
411
- /** Subscription to external detachments of the dialog. */
412
- private _detachSubscription;
413
- constructor(overlayRef: OverlayRef, config: DialogConfig<any, DialogRef<R, C>, BasePortalOutlet>);
414
- /**
415
- * Close the dialog.
416
- * @param result Optional result to return to the dialog opener.
417
- * @param options Additional options to customize the closing behavior.
418
- */
419
- close(result?: R, options?: DialogCloseOptions): void;
420
- /** Updates the position of the dialog based on the current position strategy. */
421
- updatePosition(): this;
422
- /**
423
- * Updates the dialog's width and height.
424
- * @param width New width of the dialog.
425
- * @param height New height of the dialog.
426
- */
427
- updateSize(width?: string | number, height?: string | number): this;
428
- /** Add a CSS class or an array of classes to the overlay pane. */
429
- addPanelClass(classes: string | string[]): this;
430
- /** Remove a CSS class or an array of classes from the overlay pane. */
431
- removePanelClass(classes: string | string[]): this;
432
- }
433
-
434
- /** Valid ARIA roles for a dialog. */
435
- export declare type DialogRole = 'dialog' | 'alertdialog';
436
-
437
- declare namespace i4 {
438
- export {
439
- throwDialogContentAlreadyAttachedError,
440
- CdkDialogContainer
441
- }
442
- }
443
-
444
- export declare function throwDialogContentAlreadyAttachedError(): void;
400
+ /** Injection token for the Dialog's ScrollStrategy. */
401
+ declare const DIALOG_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
402
+ /** Injection token for the Dialog's Data. */
403
+ declare const DIALOG_DATA: InjectionToken<any>;
404
+ /** Injection token that can be used to provide default options for the dialog module. */
405
+ declare const DEFAULT_DIALOG_CONFIG: InjectionToken<DialogConfig<unknown, unknown, _angular_cdk_portal.BasePortalOutlet>>;
445
406
 
446
- export { }
407
+ export { CdkDialogContainer, DEFAULT_DIALOG_CONFIG, DIALOG_DATA, DIALOG_SCROLL_STRATEGY, Dialog, DialogConfig, DialogModule, DialogRef, throwDialogContentAlreadyAttachedError, CdkPortalOutlet as ɵɵCdkPortalOutlet };
408
+ export type { AutoFocusTarget, DialogCloseOptions, DialogRole };