@angular/core 16.0.0-next.4 → 16.0.0-next.6

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 (369) hide show
  1. package/esm2022/rxjs-interop/index.mjs +9 -0
  2. package/esm2022/rxjs-interop/public_api.mjs +15 -0
  3. package/esm2022/rxjs-interop/rxjs-interop.mjs +5 -0
  4. package/esm2022/rxjs-interop/src/from_observable.mjs +46 -0
  5. package/esm2022/rxjs-interop/src/from_signal.mjs +36 -0
  6. package/esm2022/rxjs-interop/src/index.mjs +11 -0
  7. package/esm2022/rxjs-interop/src/take_until_destroyed.mjs +33 -0
  8. package/{esm2020 → esm2022}/src/application_init.mjs +3 -3
  9. package/{esm2020 → esm2022}/src/application_module.mjs +4 -4
  10. package/esm2022/src/application_ref.mjs +969 -0
  11. package/{esm2020 → esm2022}/src/change_detection/change_detector_ref.mjs +6 -6
  12. package/esm2022/src/change_detection/differs/iterable_differs.mjs +81 -0
  13. package/esm2022/src/change_detection/differs/keyvalue_differs.mjs +74 -0
  14. package/{esm2020 → esm2022}/src/console.mjs +3 -3
  15. package/esm2022/src/core.mjs +56 -0
  16. package/esm2022/src/core_private_export.mjs +39 -0
  17. package/esm2022/src/core_reactivity_export_internal.mjs +12 -0
  18. package/esm2022/src/di/contextual.mjs +54 -0
  19. package/esm2022/src/di/index.mjs +29 -0
  20. package/esm2022/src/di/injector.mjs +62 -0
  21. package/esm2022/src/di/injector_compatibility.mjs +239 -0
  22. package/esm2022/src/di/provider_collection.mjs +279 -0
  23. package/esm2022/src/di/reflective_injector.mjs +311 -0
  24. package/esm2022/src/errors.mjs +49 -0
  25. package/esm2022/src/hydration/annotate.mjs +426 -0
  26. package/esm2022/src/hydration/api.mjs +176 -0
  27. package/esm2022/src/hydration/cleanup.mjs +95 -0
  28. package/esm2022/src/hydration/node_lookup_utils.mjs +273 -0
  29. package/esm2022/src/hydration/utils.mjs +219 -0
  30. package/esm2022/src/initial_render_pending_tasks.mjs +75 -0
  31. package/{esm2020 → esm2022}/src/linker/compiler.mjs +5 -5
  32. package/{esm2020 → esm2022}/src/linker/component_factory.mjs +1 -1
  33. package/esm2022/src/linker/component_factory_resolver.mjs +42 -0
  34. package/{esm2020 → esm2022}/src/linker/destroy_ref.mjs +11 -11
  35. package/{esm2020 → esm2022}/src/linker/element_ref.mjs +6 -6
  36. package/esm2022/src/linker/query_list.mjs +169 -0
  37. package/esm2022/src/linker/template_ref.mjs +102 -0
  38. package/{esm2020 → esm2022}/src/linker/view_container_ref.mjs +7 -7
  39. package/{esm2020 → esm2022}/src/linker/view_ref.mjs +2 -2
  40. package/esm2022/src/metadata/di.mjs +69 -0
  41. package/{esm2020 → esm2022}/src/metadata/directives.mjs +1 -1
  42. package/{esm2020 → esm2022}/src/metadata/do_boostrap.mjs +1 -1
  43. package/{esm2020 → esm2022}/src/metadata/ng_module.mjs +2 -2
  44. package/esm2022/src/metadata.mjs +18 -0
  45. package/{esm2020 → esm2022}/src/render/api.mjs +6 -6
  46. package/esm2022/src/render3/component_ref.mjs +393 -0
  47. package/{esm2020 → esm2022}/src/render3/context_discovery.mjs +1 -1
  48. package/esm2022/src/render3/features/standalone_feature.mjs +70 -0
  49. package/{esm2020 → esm2022}/src/render3/instructions/element.mjs +3 -2
  50. package/{esm2020 → esm2022}/src/render3/instructions/element_container.mjs +1 -2
  51. package/esm2022/src/render3/instructions/listener.mjs +244 -0
  52. package/esm2022/src/render3/instructions/mark_view_dirty.mjs +35 -0
  53. package/{esm2020 → esm2022}/src/render3/instructions/shared.mjs +26 -38
  54. package/{esm2020 → esm2022}/src/render3/instructions/styling.mjs +5 -2
  55. package/esm2022/src/render3/interfaces/view.mjs +48 -0
  56. package/esm2022/src/render3/jit/module.mjs +531 -0
  57. package/esm2022/src/render3/ng_module_ref.mjs +134 -0
  58. package/esm2022/src/render3/node_manipulation.mjs +960 -0
  59. package/esm2022/src/render3/reactive_lview_consumer.mjs +81 -0
  60. package/esm2022/src/render3/reactivity/effect.mjs +77 -0
  61. package/{esm2020 → esm2022}/src/render3/util/change_detection_utils.mjs +2 -2
  62. package/esm2022/src/render3/view_ref.mjs +307 -0
  63. package/{esm2020 → esm2022}/src/sanitization/sanitization.mjs +3 -3
  64. package/{esm2020 → esm2022}/src/sanitization/sanitizer.mjs +7 -7
  65. package/esm2022/src/signals/index.mjs +16 -0
  66. package/esm2022/src/signals/src/api.mjs +46 -0
  67. package/esm2022/src/signals/src/computed.mjs +140 -0
  68. package/esm2022/src/signals/src/errors.mjs +18 -0
  69. package/esm2022/src/signals/src/graph.mjs +189 -0
  70. package/esm2022/src/signals/src/signal.mjs +86 -0
  71. package/esm2022/src/signals/src/watch.mjs +63 -0
  72. package/esm2022/src/signals/src/weak_ref.mjs +35 -0
  73. package/{esm2020 → esm2022}/src/testability/testability.mjs +5 -5
  74. package/esm2022/src/transfer_state.mjs +153 -0
  75. package/esm2022/src/util/ng_dev_mode.mjs +80 -0
  76. package/{esm2020 → esm2022}/src/version.mjs +1 -1
  77. package/{esm2020 → esm2022}/testing/src/logger.mjs +4 -4
  78. package/{esm2020 → esm2022}/testing/src/ng_zone_mock.mjs +4 -4
  79. package/{esm2020 → esm2022}/testing/src/test_bed.mjs +2 -2
  80. package/esm2022/testing/src/test_bed_compiler.mjs +845 -0
  81. package/{fesm2020 → fesm2022}/core.mjs +15745 -15364
  82. package/fesm2022/core.mjs.map +1 -0
  83. package/fesm2022/rxjs-interop.mjs +104 -0
  84. package/fesm2022/rxjs-interop.mjs.map +1 -0
  85. package/{fesm2020 → fesm2022}/testing.mjs +913 -176
  86. package/fesm2022/testing.mjs.map +1 -0
  87. package/index.d.ts +459 -211
  88. package/package.json +14 -16
  89. package/rxjs-interop/index.d.ts +95 -0
  90. package/schematics/migrations/guard-and-resolve-interfaces/bundle.js +694 -0
  91. package/schematics/migrations/guard-and-resolve-interfaces/bundle.js.map +7 -0
  92. package/schematics/migrations/{router-link-with-href → remove-module-id}/bundle.js +153 -155
  93. package/schematics/migrations/remove-module-id/bundle.js.map +7 -0
  94. package/schematics/migrations.json +8 -8
  95. package/schematics/ng-generate/standalone-migration/bundle.js +928 -562
  96. package/schematics/ng-generate/standalone-migration/bundle.js.map +2 -2
  97. package/testing/index.d.ts +1 -1
  98. package/esm2020/src/application_ref.mjs +0 -907
  99. package/esm2020/src/change_detection/differs/iterable_differs.mjs +0 -81
  100. package/esm2020/src/change_detection/differs/keyvalue_differs.mjs +0 -74
  101. package/esm2020/src/core.mjs +0 -55
  102. package/esm2020/src/core_private_export.mjs +0 -38
  103. package/esm2020/src/core_reactivity_export_internal.mjs +0 -9
  104. package/esm2020/src/di/contextual.mjs +0 -37
  105. package/esm2020/src/di/index.mjs +0 -29
  106. package/esm2020/src/di/injector.mjs +0 -62
  107. package/esm2020/src/di/injector_compatibility.mjs +0 -236
  108. package/esm2020/src/di/provider_collection.mjs +0 -279
  109. package/esm2020/src/di/reflective_injector.mjs +0 -311
  110. package/esm2020/src/errors.mjs +0 -48
  111. package/esm2020/src/hydration/annotate.mjs +0 -384
  112. package/esm2020/src/hydration/api.mjs +0 -141
  113. package/esm2020/src/hydration/cleanup.mjs +0 -101
  114. package/esm2020/src/hydration/node_lookup_utils.mjs +0 -275
  115. package/esm2020/src/hydration/utils.mjs +0 -219
  116. package/esm2020/src/linker/component_factory_resolver.mjs +0 -42
  117. package/esm2020/src/linker/query_list.mjs +0 -169
  118. package/esm2020/src/linker/template_ref.mjs +0 -102
  119. package/esm2020/src/metadata/di.mjs +0 -108
  120. package/esm2020/src/metadata.mjs +0 -18
  121. package/esm2020/src/render3/component_ref.mjs +0 -377
  122. package/esm2020/src/render3/features/standalone_feature.mjs +0 -70
  123. package/esm2020/src/render3/instructions/listener.mjs +0 -243
  124. package/esm2020/src/render3/interfaces/view.mjs +0 -47
  125. package/esm2020/src/render3/jit/module.mjs +0 -544
  126. package/esm2020/src/render3/ng_module_ref.mjs +0 -132
  127. package/esm2020/src/render3/node_manipulation.mjs +0 -961
  128. package/esm2020/src/render3/view_ref.mjs +0 -306
  129. package/esm2020/src/signals/index.mjs +0 -16
  130. package/esm2020/src/signals/src/api.mjs +0 -46
  131. package/esm2020/src/signals/src/computed.mjs +0 -142
  132. package/esm2020/src/signals/src/effect.mjs +0 -67
  133. package/esm2020/src/signals/src/graph.mjs +0 -114
  134. package/esm2020/src/signals/src/signal.mjs +0 -78
  135. package/esm2020/src/signals/src/watch.mjs +0 -54
  136. package/esm2020/src/signals/src/weak_ref.mjs +0 -27
  137. package/esm2020/src/transfer_state.mjs +0 -153
  138. package/esm2020/src/util/ng_dev_mode.mjs +0 -79
  139. package/esm2020/testing/src/test_bed_compiler.mjs +0 -846
  140. package/fesm2015/core.mjs +0 -30473
  141. package/fesm2015/core.mjs.map +0 -1
  142. package/fesm2015/testing.mjs +0 -26417
  143. package/fesm2015/testing.mjs.map +0 -1
  144. package/fesm2020/core.mjs.map +0 -1
  145. package/fesm2020/testing.mjs.map +0 -1
  146. package/schematics/migrations/relative-link-resolution/bundle.js +0 -283
  147. package/schematics/migrations/relative-link-resolution/bundle.js.map +0 -7
  148. package/schematics/migrations/router-link-with-href/bundle.js.map +0 -7
  149. /package/{esm2020 → esm2022}/core.mjs +0 -0
  150. /package/{esm2020 → esm2022}/index.mjs +0 -0
  151. /package/{esm2020 → esm2022}/public_api.mjs +0 -0
  152. /package/{esm2020 → esm2022}/src/application_config.mjs +0 -0
  153. /package/{esm2020 → esm2022}/src/application_tokens.mjs +0 -0
  154. /package/{esm2020 → esm2022}/src/change_detection/change_detection.mjs +0 -0
  155. /package/{esm2020 → esm2022}/src/change_detection/constants.mjs +0 -0
  156. /package/{esm2020 → esm2022}/src/change_detection/differs/default_iterable_differ.mjs +0 -0
  157. /package/{esm2020 → esm2022}/src/change_detection/differs/default_keyvalue_differ.mjs +0 -0
  158. /package/{esm2020 → esm2022}/src/change_detection/pipe_transform.mjs +0 -0
  159. /package/{esm2020 → esm2022}/src/change_detection.mjs +0 -0
  160. /package/{esm2020 → esm2022}/src/compiler/compiler_facade.mjs +0 -0
  161. /package/{esm2020 → esm2022}/src/compiler/compiler_facade_interface.mjs +0 -0
  162. /package/{esm2020 → esm2022}/src/core_reactivity_export.mjs +0 -0
  163. /package/{esm2020 → esm2022}/src/core_render3_private_export.mjs +0 -0
  164. /package/{esm2020 → esm2022}/src/debug/debug_node.mjs +0 -0
  165. /package/{esm2020 → esm2022}/src/di/create_injector.mjs +0 -0
  166. /package/{esm2020 → esm2022}/src/di/forward_ref.mjs +0 -0
  167. /package/{esm2020 → esm2022}/src/di/initializer_token.mjs +0 -0
  168. /package/{esm2020 → esm2022}/src/di/inject_switch.mjs +0 -0
  169. /package/{esm2020 → esm2022}/src/di/injectable.mjs +0 -0
  170. /package/{esm2020 → esm2022}/src/di/injection_token.mjs +0 -0
  171. /package/{esm2020 → esm2022}/src/di/injector_marker.mjs +0 -0
  172. /package/{esm2020 → esm2022}/src/di/injector_token.mjs +0 -0
  173. /package/{esm2020 → esm2022}/src/di/interface/defs.mjs +0 -0
  174. /package/{esm2020 → esm2022}/src/di/interface/injector.mjs +0 -0
  175. /package/{esm2020 → esm2022}/src/di/interface/provider.mjs +0 -0
  176. /package/{esm2020 → esm2022}/src/di/internal_tokens.mjs +0 -0
  177. /package/{esm2020 → esm2022}/src/di/jit/environment.mjs +0 -0
  178. /package/{esm2020 → esm2022}/src/di/jit/injectable.mjs +0 -0
  179. /package/{esm2020 → esm2022}/src/di/jit/util.mjs +0 -0
  180. /package/{esm2020 → esm2022}/src/di/metadata.mjs +0 -0
  181. /package/{esm2020 → esm2022}/src/di/metadata_attr.mjs +0 -0
  182. /package/{esm2020 → esm2022}/src/di/null_injector.mjs +0 -0
  183. /package/{esm2020 → esm2022}/src/di/provider_token.mjs +0 -0
  184. /package/{esm2020 → esm2022}/src/di/r3_injector.mjs +0 -0
  185. /package/{esm2020 → esm2022}/src/di/reflective_errors.mjs +0 -0
  186. /package/{esm2020 → esm2022}/src/di/reflective_key.mjs +0 -0
  187. /package/{esm2020 → esm2022}/src/di/reflective_provider.mjs +0 -0
  188. /package/{esm2020 → esm2022}/src/di/scope.mjs +0 -0
  189. /package/{esm2020 → esm2022}/src/di.mjs +0 -0
  190. /package/{esm2020 → esm2022}/src/error_details_base_url.mjs +0 -0
  191. /package/{esm2020 → esm2022}/src/error_handler.mjs +0 -0
  192. /package/{esm2020 → esm2022}/src/event_emitter.mjs +0 -0
  193. /package/{esm2020 → esm2022}/src/hydration/compression.mjs +0 -0
  194. /package/{esm2020 → esm2022}/src/hydration/error_handling.mjs +0 -0
  195. /package/{esm2020 → esm2022}/src/hydration/interfaces.mjs +0 -0
  196. /package/{esm2020 → esm2022}/src/hydration/skip_hydration.mjs +0 -0
  197. /package/{esm2020 → esm2022}/src/hydration/tokens.mjs +0 -0
  198. /package/{esm2020 → esm2022}/src/hydration/views.mjs +0 -0
  199. /package/{esm2020 → esm2022}/src/i18n/locale_data_api.mjs +0 -0
  200. /package/{esm2020 → esm2022}/src/i18n/locale_en.mjs +0 -0
  201. /package/{esm2020 → esm2022}/src/i18n/localization.mjs +0 -0
  202. /package/{esm2020 → esm2022}/src/i18n/tokens.mjs +0 -0
  203. /package/{esm2020 → esm2022}/src/interface/lifecycle_hooks.mjs +0 -0
  204. /package/{esm2020 → esm2022}/src/interface/simple_change.mjs +0 -0
  205. /package/{esm2020 → esm2022}/src/interface/type.mjs +0 -0
  206. /package/{esm2020 → esm2022}/src/linker/ng_module_factory.mjs +0 -0
  207. /package/{esm2020 → esm2022}/src/linker/ng_module_factory_loader.mjs +0 -0
  208. /package/{esm2020 → esm2022}/src/linker/ng_module_factory_loader_impl.mjs +0 -0
  209. /package/{esm2020 → esm2022}/src/linker/ng_module_registration.mjs +0 -0
  210. /package/{esm2020 → esm2022}/src/linker.mjs +0 -0
  211. /package/{esm2020 → esm2022}/src/metadata/ng_module_def.mjs +0 -0
  212. /package/{esm2020 → esm2022}/src/metadata/resource_loading.mjs +0 -0
  213. /package/{esm2020 → esm2022}/src/metadata/schema.mjs +0 -0
  214. /package/{esm2020 → esm2022}/src/metadata/view.mjs +0 -0
  215. /package/{esm2020 → esm2022}/src/platform_core_providers.mjs +0 -0
  216. /package/{esm2020 → esm2022}/src/r3_symbols.mjs +0 -0
  217. /package/{esm2020 → esm2022}/src/reflection/platform_reflection_capabilities.mjs +0 -0
  218. /package/{esm2020 → esm2022}/src/reflection/reflection_capabilities.mjs +0 -0
  219. /package/{esm2020 → esm2022}/src/render/api_flags.mjs +0 -0
  220. /package/{esm2020 → esm2022}/src/render.mjs +0 -0
  221. /package/{esm2020 → esm2022}/src/render3/assert.mjs +0 -0
  222. /package/{esm2020 → esm2022}/src/render3/bindings.mjs +0 -0
  223. /package/{esm2020 → esm2022}/src/render3/collect_native_nodes.mjs +0 -0
  224. /package/{esm2020 → esm2022}/src/render3/component.mjs +0 -0
  225. /package/{esm2020 → esm2022}/src/render3/definition.mjs +0 -0
  226. /package/{esm2020 → esm2022}/src/render3/definition_factory.mjs +0 -0
  227. /package/{esm2020 → esm2022}/src/render3/di.mjs +0 -0
  228. /package/{esm2020 → esm2022}/src/render3/di_setup.mjs +0 -0
  229. /package/{esm2020 → esm2022}/src/render3/errors.mjs +0 -0
  230. /package/{esm2020 → esm2022}/src/render3/errors_di.mjs +0 -0
  231. /package/{esm2020 → esm2022}/src/render3/features/copy_definition_feature.mjs +0 -0
  232. /package/{esm2020 → esm2022}/src/render3/features/host_directives_feature.mjs +0 -0
  233. /package/{esm2020 → esm2022}/src/render3/features/inherit_definition_feature.mjs +0 -0
  234. /package/{esm2020 → esm2022}/src/render3/features/ng_onchanges_feature.mjs +0 -0
  235. /package/{esm2020 → esm2022}/src/render3/features/providers_feature.mjs +0 -0
  236. /package/{esm2020 → esm2022}/src/render3/fields.mjs +0 -0
  237. /package/{esm2020 → esm2022}/src/render3/global_utils_api.mjs +0 -0
  238. /package/{esm2020 → esm2022}/src/render3/hooks.mjs +0 -0
  239. /package/{esm2020 → esm2022}/src/render3/i18n/i18n_apply.mjs +0 -0
  240. /package/{esm2020 → esm2022}/src/render3/i18n/i18n_debug.mjs +0 -0
  241. /package/{esm2020 → esm2022}/src/render3/i18n/i18n_insert_before_index.mjs +0 -0
  242. /package/{esm2020 → esm2022}/src/render3/i18n/i18n_locale_id.mjs +0 -0
  243. /package/{esm2020 → esm2022}/src/render3/i18n/i18n_parse.mjs +0 -0
  244. /package/{esm2020 → esm2022}/src/render3/i18n/i18n_postprocess.mjs +0 -0
  245. /package/{esm2020 → esm2022}/src/render3/i18n/i18n_tree_shaking.mjs +0 -0
  246. /package/{esm2020 → esm2022}/src/render3/i18n/i18n_util.mjs +0 -0
  247. /package/{esm2020 → esm2022}/src/render3/index.mjs +0 -0
  248. /package/{esm2020 → esm2022}/src/render3/instructions/advance.mjs +0 -0
  249. /package/{esm2020 → esm2022}/src/render3/instructions/all.mjs +0 -0
  250. /package/{esm2020 → esm2022}/src/render3/instructions/attribute.mjs +0 -0
  251. /package/{esm2020 → esm2022}/src/render3/instructions/attribute_interpolation.mjs +0 -0
  252. /package/{esm2020 → esm2022}/src/render3/instructions/change_detection.mjs +0 -0
  253. /package/{esm2020 → esm2022}/src/render3/instructions/class_map_interpolation.mjs +0 -0
  254. /package/{esm2020 → esm2022}/src/render3/instructions/di.mjs +0 -0
  255. /package/{esm2020 → esm2022}/src/render3/instructions/di_attr.mjs +0 -0
  256. /package/{esm2020 → esm2022}/src/render3/instructions/element_validation.mjs +0 -0
  257. /package/{esm2020 → esm2022}/src/render3/instructions/get_current_view.mjs +0 -0
  258. /package/{esm2020 → esm2022}/src/render3/instructions/host_property.mjs +0 -0
  259. /package/{esm2020 → esm2022}/src/render3/instructions/i18n.mjs +0 -0
  260. /package/{esm2020 → esm2022}/src/render3/instructions/i18n_icu_container_visitor.mjs +0 -0
  261. /package/{esm2020 → esm2022}/src/render3/instructions/interpolation.mjs +0 -0
  262. /package/{esm2020 → esm2022}/src/render3/instructions/namespace.mjs +0 -0
  263. /package/{esm2020 → esm2022}/src/render3/instructions/next_context.mjs +0 -0
  264. /package/{esm2020 → esm2022}/src/render3/instructions/projection.mjs +0 -0
  265. /package/{esm2020 → esm2022}/src/render3/instructions/property.mjs +0 -0
  266. /package/{esm2020 → esm2022}/src/render3/instructions/property_interpolation.mjs +0 -0
  267. /package/{esm2020 → esm2022}/src/render3/instructions/storage.mjs +0 -0
  268. /package/{esm2020 → esm2022}/src/render3/instructions/style_map_interpolation.mjs +0 -0
  269. /package/{esm2020 → esm2022}/src/render3/instructions/style_prop_interpolation.mjs +0 -0
  270. /package/{esm2020 → esm2022}/src/render3/instructions/template.mjs +0 -0
  271. /package/{esm2020 → esm2022}/src/render3/instructions/text.mjs +0 -0
  272. /package/{esm2020 → esm2022}/src/render3/instructions/text_interpolation.mjs +0 -0
  273. /package/{esm2020 → esm2022}/src/render3/interfaces/container.mjs +0 -0
  274. /package/{esm2020 → esm2022}/src/render3/interfaces/context.mjs +0 -0
  275. /package/{esm2020 → esm2022}/src/render3/interfaces/definition.mjs +0 -0
  276. /package/{esm2020 → esm2022}/src/render3/interfaces/document.mjs +0 -0
  277. /package/{esm2020 → esm2022}/src/render3/interfaces/i18n.mjs +0 -0
  278. /package/{esm2020 → esm2022}/src/render3/interfaces/injector.mjs +0 -0
  279. /package/{esm2020 → esm2022}/src/render3/interfaces/lview_tracking.mjs +0 -0
  280. /package/{esm2020 → esm2022}/src/render3/interfaces/node.mjs +0 -0
  281. /package/{esm2020 → esm2022}/src/render3/interfaces/projection.mjs +0 -0
  282. /package/{esm2020 → esm2022}/src/render3/interfaces/public_definitions.mjs +0 -0
  283. /package/{esm2020 → esm2022}/src/render3/interfaces/query.mjs +0 -0
  284. /package/{esm2020 → esm2022}/src/render3/interfaces/renderer.mjs +0 -0
  285. /package/{esm2020 → esm2022}/src/render3/interfaces/renderer_dom.mjs +0 -0
  286. /package/{esm2020 → esm2022}/src/render3/interfaces/sanitization.mjs +0 -0
  287. /package/{esm2020 → esm2022}/src/render3/interfaces/styling.mjs +0 -0
  288. /package/{esm2020 → esm2022}/src/render3/interfaces/type_checks.mjs +0 -0
  289. /package/{esm2020 → esm2022}/src/render3/jit/directive.mjs +0 -0
  290. /package/{esm2020 → esm2022}/src/render3/jit/environment.mjs +0 -0
  291. /package/{esm2020 → esm2022}/src/render3/jit/jit_options.mjs +0 -0
  292. /package/{esm2020 → esm2022}/src/render3/jit/module_patch.mjs +0 -0
  293. /package/{esm2020 → esm2022}/src/render3/jit/partial.mjs +0 -0
  294. /package/{esm2020 → esm2022}/src/render3/jit/pipe.mjs +0 -0
  295. /package/{esm2020 → esm2022}/src/render3/jit/util.mjs +0 -0
  296. /package/{esm2020 → esm2022}/src/render3/metadata.mjs +0 -0
  297. /package/{esm2020 → esm2022}/src/render3/namespaces.mjs +0 -0
  298. /package/{esm2020 → esm2022}/src/render3/node_assert.mjs +0 -0
  299. /package/{esm2020 → esm2022}/src/render3/node_manipulation_i18n.mjs +0 -0
  300. /package/{esm2020 → esm2022}/src/render3/node_selector_matcher.mjs +0 -0
  301. /package/{esm2020 → esm2022}/src/render3/pipe.mjs +0 -0
  302. /package/{esm2020 → esm2022}/src/render3/profiler.mjs +0 -0
  303. /package/{esm2020 → esm2022}/src/render3/pure_function.mjs +0 -0
  304. /package/{esm2020 → esm2022}/src/render3/query.mjs +0 -0
  305. /package/{esm2020 → esm2022}/src/render3/state.mjs +0 -0
  306. /package/{esm2020 → esm2022}/src/render3/styling/class_differ.mjs +0 -0
  307. /package/{esm2020 → esm2022}/src/render3/styling/static_styling.mjs +0 -0
  308. /package/{esm2020 → esm2022}/src/render3/styling/style_binding_list.mjs +0 -0
  309. /package/{esm2020 → esm2022}/src/render3/styling/styling_parser.mjs +0 -0
  310. /package/{esm2020 → esm2022}/src/render3/tokens.mjs +0 -0
  311. /package/{esm2020 → esm2022}/src/render3/util/attrs_utils.mjs +0 -0
  312. /package/{esm2020 → esm2022}/src/render3/util/discovery_utils.mjs +0 -0
  313. /package/{esm2020 → esm2022}/src/render3/util/global_utils.mjs +0 -0
  314. /package/{esm2020 → esm2022}/src/render3/util/injector_utils.mjs +0 -0
  315. /package/{esm2020 → esm2022}/src/render3/util/misc_utils.mjs +0 -0
  316. /package/{esm2020 → esm2022}/src/render3/util/stringify_utils.mjs +0 -0
  317. /package/{esm2020 → esm2022}/src/render3/util/view_traversal_utils.mjs +0 -0
  318. /package/{esm2020 → esm2022}/src/render3/util/view_utils.mjs +0 -0
  319. /package/{esm2020 → esm2022}/src/render3/view_engine_compatibility_prebound.mjs +0 -0
  320. /package/{esm2020 → esm2022}/src/sanitization/bypass.mjs +0 -0
  321. /package/{esm2020 → esm2022}/src/sanitization/html_sanitizer.mjs +0 -0
  322. /package/{esm2020 → esm2022}/src/sanitization/iframe_attrs_validation.mjs +0 -0
  323. /package/{esm2020 → esm2022}/src/sanitization/inert_body.mjs +0 -0
  324. /package/{esm2020 → esm2022}/src/sanitization/security.mjs +0 -0
  325. /package/{esm2020 → esm2022}/src/sanitization/url_sanitizer.mjs +0 -0
  326. /package/{esm2020 → esm2022}/src/signals/src/untracked.mjs +0 -0
  327. /package/{esm2020 → esm2022}/src/util/array_utils.mjs +0 -0
  328. /package/{esm2020 → esm2022}/src/util/assert.mjs +0 -0
  329. /package/{esm2020 → esm2022}/src/util/char_code.mjs +0 -0
  330. /package/{esm2020 → esm2022}/src/util/closure.mjs +0 -0
  331. /package/{esm2020 → esm2022}/src/util/coercion.mjs +0 -0
  332. /package/{esm2020 → esm2022}/src/util/comparison.mjs +0 -0
  333. /package/{esm2020 → esm2022}/src/util/decorators.mjs +0 -0
  334. /package/{esm2020 → esm2022}/src/util/dom.mjs +0 -0
  335. /package/{esm2020 → esm2022}/src/util/empty.mjs +0 -0
  336. /package/{esm2020 → esm2022}/src/util/errors.mjs +0 -0
  337. /package/{esm2020 → esm2022}/src/util/global.mjs +0 -0
  338. /package/{esm2020 → esm2022}/src/util/is_dev_mode.mjs +0 -0
  339. /package/{esm2020 → esm2022}/src/util/iterable.mjs +0 -0
  340. /package/{esm2020 → esm2022}/src/util/lang.mjs +0 -0
  341. /package/{esm2020 → esm2022}/src/util/microtask.mjs +0 -0
  342. /package/{esm2020 → esm2022}/src/util/ng_i18n_closure_mode.mjs +0 -0
  343. /package/{esm2020 → esm2022}/src/util/ng_jit_mode.mjs +0 -0
  344. /package/{esm2020 → esm2022}/src/util/ng_reflect.mjs +0 -0
  345. /package/{esm2020 → esm2022}/src/util/noop.mjs +0 -0
  346. /package/{esm2020 → esm2022}/src/util/property.mjs +0 -0
  347. /package/{esm2020 → esm2022}/src/util/raf.mjs +0 -0
  348. /package/{esm2020 → esm2022}/src/util/security/trusted_type_defs.mjs +0 -0
  349. /package/{esm2020 → esm2022}/src/util/security/trusted_types.mjs +0 -0
  350. /package/{esm2020 → esm2022}/src/util/security/trusted_types_bypass.mjs +0 -0
  351. /package/{esm2020 → esm2022}/src/util/stringify.mjs +0 -0
  352. /package/{esm2020 → esm2022}/src/view/provider_flags.mjs +0 -0
  353. /package/{esm2020 → esm2022}/src/zone/async-stack-tagging.mjs +0 -0
  354. /package/{esm2020 → esm2022}/src/zone/ng_zone.mjs +0 -0
  355. /package/{esm2020 → esm2022}/src/zone.mjs +0 -0
  356. /package/{esm2020 → esm2022}/testing/index.mjs +0 -0
  357. /package/{esm2020 → esm2022}/testing/public_api.mjs +0 -0
  358. /package/{esm2020 → esm2022}/testing/src/async.mjs +0 -0
  359. /package/{esm2020 → esm2022}/testing/src/component_fixture.mjs +0 -0
  360. /package/{esm2020 → esm2022}/testing/src/fake_async.mjs +0 -0
  361. /package/{esm2020 → esm2022}/testing/src/metadata_override.mjs +0 -0
  362. /package/{esm2020 → esm2022}/testing/src/metadata_overrider.mjs +0 -0
  363. /package/{esm2020 → esm2022}/testing/src/resolvers.mjs +0 -0
  364. /package/{esm2020 → esm2022}/testing/src/styling.mjs +0 -0
  365. /package/{esm2020 → esm2022}/testing/src/test_bed_common.mjs +0 -0
  366. /package/{esm2020 → esm2022}/testing/src/test_hooks.mjs +0 -0
  367. /package/{esm2020 → esm2022}/testing/src/testing.mjs +0 -0
  368. /package/{esm2020 → esm2022}/testing/src/testing_internal.mjs +0 -0
  369. /package/{esm2020 → esm2022}/testing/testing.mjs +0 -0
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.0.0-next.4
2
+ * @license Angular v16.0.0-next.6
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -128,45 +128,6 @@ export declare interface AfterViewInit {
128
128
  ngAfterViewInit(): void;
129
129
  }
130
130
 
131
- /**
132
- * A DI token that you can use to create a virtual [provider](guide/glossary#provider)
133
- * that will populate the `entryComponents` field of components and NgModules
134
- * based on its `useValue` property value.
135
- * All components that are referenced in the `useValue` value (either directly
136
- * or in a nested array or map) are added to the `entryComponents` property.
137
- *
138
- * @usageNotes
139
- *
140
- * The following example shows how the router can populate the `entryComponents`
141
- * field of an NgModule based on a router configuration that refers
142
- * to components.
143
- *
144
- * ```typescript
145
- * // helper function inside the router
146
- * function provideRoutes(routes) {
147
- * return [
148
- * {provide: ROUTES, useValue: routes},
149
- * {provide: ANALYZE_FOR_ENTRY_COMPONENTS, useValue: routes, multi: true}
150
- * ];
151
- * }
152
- *
153
- * // user code
154
- * let routes = [
155
- * {path: '/root', component: RootComp},
156
- * {path: '/teams', component: TeamsComp}
157
- * ];
158
- *
159
- * @NgModule({
160
- * providers: [provideRoutes(routes)]
161
- * })
162
- * class ModuleWithRoutes {}
163
- * ```
164
- *
165
- * @publicApi
166
- * @deprecated Since 9.0.0. With Ivy, this property is no longer necessary.
167
- */
168
- export declare const ANALYZE_FOR_ENTRY_COMPONENTS: InjectionToken<any>;
169
-
170
131
  /**
171
132
  * A [DI token](guide/glossary#di-token "DI token definition") that indicates which animations
172
133
  * module has been loaded.
@@ -572,6 +533,15 @@ export declare class ApplicationRef {
572
533
  */
573
534
  export declare function asNativeElements(debugEls: DebugElement[]): any;
574
535
 
536
+ /**
537
+ * Asserts that the current stack frame is within an injection context and has access to `inject`.
538
+ *
539
+ * @param debugFn a reference to the function making the assertion (used for the error message).
540
+ *
541
+ * @publicApi
542
+ */
543
+ export declare function assertInInjectionContext(debugFn: Function): void;
544
+
575
545
  /**
576
546
  * Checks that there is currently a platform that contains the given token as a provider.
577
547
  *
@@ -816,9 +786,9 @@ export declare abstract class ChangeDetectorRef {
816
786
  declare interface ChangeDetectorRefInterface extends ChangeDetectorRef {
817
787
  }
818
788
 
819
- declare const CHILD_HEAD = 13;
789
+ declare const CHILD_HEAD = 12;
820
790
 
821
- declare const CHILD_TAIL = 14;
791
+ declare const CHILD_TAIL = 13;
822
792
 
823
793
  /**
824
794
  * Configures the `Injector` to return an instance of `useClass` for a token.
@@ -885,8 +855,8 @@ declare const CLEANUP = 7;
885
855
  */
886
856
  export declare class Compiler {
887
857
  /**
888
- * Compiles the given NgModule and all of its components. All templates of the components listed
889
- * in `entryComponents` have to be inlined.
858
+ * Compiles the given NgModule and all of its components. All templates of the components
859
+ * have to be inlined.
890
860
  */
891
861
  compileModuleSync<T>(moduleType: Type<T>): NgModuleFactory<T>;
892
862
  /**
@@ -988,6 +958,7 @@ export declare interface Component extends Directive {
988
958
  * SystemJS exposes the `__moduleName` variable within each module.
989
959
  * In CommonJS, this can be set to `module.id`.
990
960
  *
961
+ * @deprecated This option does not have any effect. Will be removed in Angular v17.
991
962
  */
992
963
  moduleId?: string;
993
964
  /**
@@ -1039,14 +1010,6 @@ export declare interface Component extends Directive {
1039
1010
  * Overrides the default interpolation start and end delimiters (`{{` and `}}`).
1040
1011
  */
1041
1012
  interpolation?: [string, string];
1042
- /**
1043
- * A set of components that should be compiled along with
1044
- * this component. For each component listed here,
1045
- * Angular creates a {@link ComponentFactory} and stores it in the
1046
- * {@link ComponentFactoryResolver}.
1047
- * @deprecated Since 9.0.0. With Ivy, this property is no longer necessary.
1048
- */
1049
- entryComponents?: Array<Type<any> | any[]>;
1050
1013
  /**
1051
1014
  * True to preserve or false to remove potentially superfluous whitespace characters
1052
1015
  * from the compiled template. Whitespace characters are those matching the `\s`
@@ -1504,7 +1467,7 @@ export declare abstract class ComponentRef<C> {
1504
1467
  */
1505
1468
  abstract get instance(): C;
1506
1469
  /**
1507
- * The [host view](guide/glossary#view-tree) defined by the template
1470
+ * The [host view](guide/glossary#view-hierarchy) defined by the template
1508
1471
  * for this component instance.
1509
1472
  */
1510
1473
  abstract get hostView(): ViewRef;
@@ -1541,7 +1504,7 @@ declare type ComponentTemplate<T> = {
1541
1504
  *
1542
1505
  * @developerPreview
1543
1506
  */
1544
- export declare function computed<T>(computation: () => T, equal?: ValueEqualityFn<T>): Signal<T>;
1507
+ export declare function computed<T>(computation: () => T, options?: CreateComputedOptions<T>): Signal<T>;
1545
1508
 
1546
1509
  /**
1547
1510
  * Configures the `Injector` to return an instance of a token.
@@ -1849,6 +1812,46 @@ export declare function createComponent<C>(component: Type<C>, options: {
1849
1812
  projectableNodes?: Node[][];
1850
1813
  }): ComponentRef<C>;
1851
1814
 
1815
+ /**
1816
+ * Options passed to the `computed` creation function.
1817
+ *
1818
+ * @developerPreview
1819
+ */
1820
+ export declare interface CreateComputedOptions<T> {
1821
+ /**
1822
+ * A comparison function which defines equality for computed values.
1823
+ */
1824
+ equal?: ValueEqualityFn<T>;
1825
+ }
1826
+
1827
+ /**
1828
+ * Options passed to the `effect` function.
1829
+ *
1830
+ * @developerPreview
1831
+ */
1832
+ export declare interface CreateEffectOptions {
1833
+ /**
1834
+ * The `Injector` in which to create the effect.
1835
+ *
1836
+ * If this is not provided, the current injection context will be used instead (via `inject`).
1837
+ */
1838
+ injector?: Injector;
1839
+ /**
1840
+ * Whether the `effect` should require manual cleanup.
1841
+ *
1842
+ * If this is `false` (the default) the effect will automatically register itself to be cleaned up
1843
+ * with the current `DestroyRef`.
1844
+ */
1845
+ manualCleanup?: boolean;
1846
+ /**
1847
+ * Whether the `effect` should allow writing to signals.
1848
+ *
1849
+ * Using effects to synchronize data by writing to signals can lead to confusing and potentially
1850
+ * incorrect behavior, and should be enabled only when necessary.
1851
+ */
1852
+ allowSignalWrites?: boolean;
1853
+ }
1854
+
1852
1855
  /**
1853
1856
  * Create a new environment injector.
1854
1857
  *
@@ -1905,6 +1908,18 @@ export declare function createPlatform(injector: Injector): PlatformRef;
1905
1908
  */
1906
1909
  export declare function createPlatformFactory(parentPlatformFactory: ((extraProviders?: StaticProvider[]) => PlatformRef) | null, name: string, providers?: StaticProvider[]): (extraProviders?: StaticProvider[]) => PlatformRef;
1907
1910
 
1911
+ /**
1912
+ * Options passed to the `signal` creation function.
1913
+ *
1914
+ * @developerPreview
1915
+ */
1916
+ export declare interface CreateSignalOptions<T> {
1917
+ /**
1918
+ * A comparison function which defines equality for signal values.
1919
+ */
1920
+ equal?: ValueEqualityFn<T>;
1921
+ }
1922
+
1908
1923
  /**
1909
1924
  * Token used to configure the [Content Security Policy](https://web.dev/strict-csp/) nonce that
1910
1925
  * Angular will apply when inserting inline styles. If not provided, Angular will look up its value
@@ -2143,11 +2158,11 @@ export declare class DebugNode {
2143
2158
  get providerTokens(): any[];
2144
2159
  }
2145
2160
 
2146
- declare const DECLARATION_COMPONENT_VIEW = 16;
2161
+ declare const DECLARATION_COMPONENT_VIEW = 15;
2147
2162
 
2148
- declare const DECLARATION_LCONTAINER = 17;
2163
+ declare const DECLARATION_LCONTAINER = 16;
2149
2164
 
2150
- declare const DECLARATION_VIEW = 15;
2165
+ declare const DECLARATION_VIEW = 14;
2151
2166
 
2152
2167
  /**
2153
2168
  * Provide this token to set the default currency code your application uses for
@@ -2848,7 +2863,7 @@ declare const DISCONNECTED_NODES = "d";
2848
2863
  *
2849
2864
  * Reference to the current application is provided as a parameter.
2850
2865
  *
2851
- * See ["Bootstrapping"](guide/bootstrapping) and ["Entry components"](guide/entry-components).
2866
+ * See ["Bootstrapping"](guide/bootstrapping).
2852
2867
  *
2853
2868
  * @usageNotes
2854
2869
  * The example below uses `ApplicationRef.bootstrap()` to render the
@@ -2911,8 +2926,29 @@ export declare interface DoCheck {
2911
2926
  *
2912
2927
  * @developerPreview
2913
2928
  */
2914
- export declare function effect(effectFn: () => void): EffectRef;
2929
+ export declare function effect(effectFn: () => EffectCleanupFn | void, options?: CreateEffectOptions): EffectRef;
2915
2930
 
2931
+ /**
2932
+ * An effect can, optionally, return a cleanup function. If returned, the cleanup is executed before
2933
+ * the next effect run. The cleanup function makes it possible to "cancel" any work that the
2934
+ * previous effect run might have started.
2935
+ *
2936
+ * @developerPreview
2937
+ */
2938
+ export declare type EffectCleanupFn = () => void;
2939
+
2940
+ /**
2941
+ * Tracks all effects registered within a given application and runs them via `flush`.
2942
+ */
2943
+ declare class EffectManager {
2944
+ private all;
2945
+ private queue;
2946
+ create(effectFn: () => void, destroyRef: DestroyRef | null, allowSignalWrites: boolean): EffectRef;
2947
+ flush(): void;
2948
+ get isQueueEmpty(): boolean;
2949
+ /** @nocollapse */
2950
+ static ɵprov: unknown;
2951
+ }
2916
2952
 
2917
2953
  /**
2918
2954
  * A global reactive effect, which can be manually destroyed.
@@ -2981,11 +3017,11 @@ export declare class ElementRef<T = any> {
2981
3017
  constructor(nativeElement: T);
2982
3018
  }
2983
3019
 
2984
- declare const EMBEDDED_VIEW_INJECTOR = 21;
3020
+ declare const EMBEDDED_VIEW_INJECTOR = 20;
2985
3021
 
2986
3022
  /**
2987
3023
  * Represents an Angular [view](guide/glossary#view) in a view container.
2988
- * An [embedded view](guide/glossary#view-tree) can be referenced from a component
3024
+ * An [embedded view](guide/glossary#view-hierarchy) can be referenced from a component
2989
3025
  * other than the hosting component whose template defines it, or it can be defined
2990
3026
  * independently by a `TemplateRef`.
2991
3027
  *
@@ -3063,6 +3099,8 @@ export declare abstract class EmbeddedViewRef<C> extends ViewRef {
3063
3099
  */
3064
3100
  export declare function enableProdMode(): void;
3065
3101
 
3102
+ declare const ENVIRONMENT = 10;
3103
+
3066
3104
  /**
3067
3105
  * A multi-provider token for initialization functions that will run upon construction of an
3068
3106
  * environment injector.
@@ -3790,7 +3828,7 @@ export declare interface HostListenerDecorator {
3790
3828
  new (eventName: string, args?: string[]): any;
3791
3829
  }
3792
3830
 
3793
- declare const HYDRATION = 23;
3831
+ declare const HYDRATION = 22;
3794
3832
 
3795
3833
  declare namespace i0 {
3796
3834
  export {
@@ -4013,7 +4051,7 @@ declare const enum IcuType {
4013
4051
  plural = 1
4014
4052
  }
4015
4053
 
4016
- declare const ID = 20;
4054
+ declare const ID = 19;
4017
4055
 
4018
4056
  /**
4019
4057
  * Providers that were imported from NgModules via the `importProvidersFrom` function.
@@ -5210,12 +5248,12 @@ declare interface LView<T = unknown> extends Array<any> {
5210
5248
  [CONTEXT]: T;
5211
5249
  /** An optional Module Injector to be used as fall back after Element Injectors are consulted. */
5212
5250
  readonly [INJECTOR_2]: Injector | null;
5213
- /** Factory to be used for creating Renderer. */
5214
- [RENDERER_FACTORY]: RendererFactory;
5251
+ /**
5252
+ * Contextual data that is shared across multiple instances of `LView` in the same application.
5253
+ */
5254
+ [ENVIRONMENT]: LViewEnvironment;
5215
5255
  /** Renderer to be used for this view. */
5216
5256
  [RENDERER]: Renderer;
5217
- /** An optional custom sanitizer. */
5218
- [SANITIZER]: Sanitizer | null;
5219
5257
  /**
5220
5258
  * Reference to the first LView or LContainer beneath this LView in
5221
5259
  * the hierarchy.
@@ -5361,6 +5399,29 @@ declare interface LView<T = unknown> extends Array<any> {
5361
5399
  * entries.
5362
5400
  */
5363
5401
  [ON_DESTROY_HOOKS]: Array<() => void> | null;
5402
+ /**
5403
+ * The `Consumer` for this `LView`'s template so that signal reads can be tracked.
5404
+ *
5405
+ * This is initially `null` and gets assigned a consumer after template execution
5406
+ * if any signals were read.
5407
+ */
5408
+ [REACTIVE_TEMPLATE_CONSUMER]: ReactiveLViewConsumer | null;
5409
+ /**
5410
+ * Same as REACTIVE_TEMPLATE_CONSUMER, but for the host bindings of the LView.
5411
+ */
5412
+ [REACTIVE_HOST_BINDING_CONSUMER]: ReactiveLViewConsumer | null;
5413
+ }
5414
+
5415
+ /**
5416
+ * Contextual data that is shared across multiple instances of `LView` in the same application.
5417
+ */
5418
+ declare interface LViewEnvironment {
5419
+ /** Factory to be used for creating Renderer. */
5420
+ rendererFactory: RendererFactory;
5421
+ /** An optional custom sanitizer. */
5422
+ sanitizer: Sanitizer | null;
5423
+ /** Container for reactivity system `effect`s. */
5424
+ effectManager: EffectManager | null;
5364
5425
  }
5365
5426
 
5366
5427
  /** Flags associated with an LView (saved in LView[FLAGS]) */
@@ -5416,6 +5477,22 @@ declare const enum LViewFlags {
5416
5477
  */
5417
5478
  export declare function makeEnvironmentProviders(providers: (Provider | EnvironmentProviders)[]): EnvironmentProviders;
5418
5479
 
5480
+ /**
5481
+ * Create a `StateKey<T>` that can be used to store value of type T with `TransferState`.
5482
+ *
5483
+ * Example:
5484
+ *
5485
+ * ```
5486
+ * const COUNTER_KEY = makeStateKey<number>('counter');
5487
+ * let value = 10;
5488
+ *
5489
+ * transferState.set(COUNTER_KEY, value);
5490
+ * ```
5491
+ *
5492
+ * @publicApi
5493
+ */
5494
+ export declare function makeStateKey<T = void>(key: string): StateKey<T>;
5495
+
5419
5496
  /**
5420
5497
  * Merge multiple application configurations from left to right.
5421
5498
  *
@@ -5646,28 +5723,7 @@ export declare interface NgModule {
5646
5723
  */
5647
5724
  exports?: Array<Type<any> | any[]>;
5648
5725
  /**
5649
- * The set of components to compile when this NgModule is defined,
5650
- * so that they can be dynamically loaded into the view.
5651
- *
5652
- * For each component listed here, Angular creates a `ComponentFactory`
5653
- * and stores it in the `ComponentFactoryResolver`.
5654
- *
5655
- * Angular automatically adds components in the module's bootstrap
5656
- * and route definitions into the `entryComponents` list. Use this
5657
- * option to add components that are bootstrapped
5658
- * using one of the imperative techniques, such as `ViewContainerRef.createComponent()`.
5659
- *
5660
- * @see [Entry Components](guide/entry-components)
5661
- * @deprecated
5662
- * Since 9.0.0. With Ivy, this property is no longer necessary.
5663
- * (You may need to keep these if building a library that will be consumed by a View Engine
5664
- * application.)
5665
- */
5666
- entryComponents?: Array<Type<any> | any[]>;
5667
- /**
5668
- * The set of components that are bootstrapped when
5669
- * this module is bootstrapped. The components listed here
5670
- * are automatically added to `entryComponents`.
5726
+ * The set of components that are bootstrapped when this module is bootstrapped.
5671
5727
  */
5672
5728
  bootstrap?: Array<Type<any> | any[]>;
5673
5729
  /**
@@ -5933,6 +5989,57 @@ export declare class NgZone {
5933
5989
  runOutsideAngular<T>(fn: (...args: any[]) => T): T;
5934
5990
  }
5935
5991
 
5992
+ /**
5993
+ * Used to configure event and run coalescing with `provideZoneChangeDetection`.
5994
+ *
5995
+ * @publicApi
5996
+ *
5997
+ * @see provideZoneChangeDetection
5998
+ */
5999
+ export declare interface NgZoneOptions {
6000
+ /**
6001
+ * Optionally specify coalescing event change detections or not.
6002
+ * Consider the following case.
6003
+ *
6004
+ * ```
6005
+ * <div (click)="doSomething()">
6006
+ * <button (click)="doSomethingElse()"></button>
6007
+ * </div>
6008
+ * ```
6009
+ *
6010
+ * When button is clicked, because of the event bubbling, both
6011
+ * event handlers will be called and 2 change detections will be
6012
+ * triggered. We can coalesce such kind of events to only trigger
6013
+ * change detection only once.
6014
+ *
6015
+ * By default, this option will be false. So the events will not be
6016
+ * coalesced and the change detection will be triggered multiple times.
6017
+ * And if this option be set to true, the change detection will be
6018
+ * triggered async by scheduling a animation frame. So in the case above,
6019
+ * the change detection will only be triggered once.
6020
+ */
6021
+ eventCoalescing?: boolean;
6022
+ /**
6023
+ * Optionally specify if `NgZone#run()` method invocations should be coalesced
6024
+ * into a single change detection.
6025
+ *
6026
+ * Consider the following case.
6027
+ * ```
6028
+ * for (let i = 0; i < 10; i ++) {
6029
+ * ngZone.run(() => {
6030
+ * // do something
6031
+ * });
6032
+ * }
6033
+ * ```
6034
+ *
6035
+ * This case triggers the change detection multiple times.
6036
+ * With ngZoneRunCoalescing options, all change detections in an event loop trigger only once.
6037
+ * In addition, the change detection executes in requestAnimation.
6038
+ *
6039
+ */
6040
+ runCoalescing?: boolean;
6041
+ }
6042
+
5936
6043
  /**
5937
6044
  * Defines a schema that allows any property on any element.
5938
6045
  *
@@ -5948,7 +6055,7 @@ declare const NODES = "n";
5948
6055
 
5949
6056
  declare const NUM_ROOT_NODES = "r";
5950
6057
 
5951
- declare const ON_DESTROY_HOOKS = 22;
6058
+ declare const ON_DESTROY_HOOKS = 21;
5952
6059
 
5953
6060
  /**
5954
6061
  * @description
@@ -6357,7 +6464,7 @@ export declare interface Predicate<T> {
6357
6464
  (value: T): boolean;
6358
6465
  }
6359
6466
 
6360
- declare const PREORDER_HOOK_FLAGS = 18;
6467
+ declare const PREORDER_HOOK_FLAGS = 17;
6361
6468
 
6362
6469
  /** More flags associated with an LView (saved in LView[PREORDER_HOOK_FLAGS]) */
6363
6470
  declare const enum PreOrderHookFlags {
@@ -6433,6 +6540,28 @@ export declare type Provider = TypeProvider | ValueProvider | ClassProvider | Co
6433
6540
  */
6434
6541
  export declare type ProviderToken<T> = Type<T> | AbstractType<T> | InjectionToken<T>;
6435
6542
 
6543
+ /**
6544
+ * Provides `NgZone`-based change detection for the application bootstrapped using
6545
+ * `bootstrapApplication`.
6546
+ *
6547
+ * `NgZone` is already provided in applications by default. This provider allows you to configure
6548
+ * options like `eventCoalescing` in the `NgZone`.
6549
+ * This provider is not available for `platformBrowser().bootstrapModule`, which uses
6550
+ * `BootstrapOptions` instead.
6551
+ *
6552
+ * @usageNotes
6553
+ * ```typescript=
6554
+ * bootstrapApplication(MyApp, {providers: [
6555
+ * provideZoneChangeDetection({eventCoalescing: true}),
6556
+ * ]});
6557
+ * ```
6558
+ *
6559
+ * @publicApi
6560
+ * @see bootstrapApplication
6561
+ * @see NgZoneOptions
6562
+ */
6563
+ export declare function provideZoneChangeDetection(options?: NgZoneOptions): EnvironmentProviders;
6564
+
6436
6565
  /**
6437
6566
  * Testability API.
6438
6567
  * `declare` keyword causes tsickle to generate externs, so these methods are
@@ -6445,7 +6574,7 @@ declare interface PublicTestability {
6445
6574
  findProviders(using: any, provider: string, exactMatch: boolean): any[];
6446
6575
  }
6447
6576
 
6448
- declare const QUERIES = 19;
6577
+ declare const QUERIES = 18;
6449
6578
 
6450
6579
  /**
6451
6580
  * Type of the Query metadata.
@@ -6806,6 +6935,122 @@ declare interface RDomTokenList {
6806
6935
  remove(token: string): void;
6807
6936
  }
6808
6937
 
6938
+ declare const REACTIVE_HOST_BINDING_CONSUMER = 24;
6939
+
6940
+ declare const REACTIVE_TEMPLATE_CONSUMER = 23;
6941
+
6942
+ declare class ReactiveLViewConsumer extends ReactiveNode {
6943
+ protected consumerAllowSignalWrites: boolean;
6944
+ private _lView;
6945
+ set lView(lView: LView);
6946
+ protected onConsumerDependencyMayHaveChanged(): void;
6947
+ protected onProducerUpdateValueVersion(): void;
6948
+ get hasReadASignal(): boolean;
6949
+ runInContext(fn: HostBindingsFunction<unknown> | ComponentTemplate<unknown>, rf: ɵRenderFlags, ctx: unknown): void;
6950
+ destroy(): void;
6951
+ }
6952
+
6953
+ /**
6954
+ * A node in the reactive graph.
6955
+ *
6956
+ * Nodes can be producers of reactive values, consumers of other reactive values, or both.
6957
+ *
6958
+ * Producers are nodes that produce values, and can be depended upon by consumer nodes.
6959
+ *
6960
+ * Producers expose a monotonic `valueVersion` counter, and are responsible for incrementing this
6961
+ * version when their value semantically changes. Some producers may produce their values lazily and
6962
+ * thus at times need to be polled for potential updates to their value (and by extension their
6963
+ * `valueVersion`). This is accomplished via the `onProducerUpdateValueVersion` method for
6964
+ * implemented by producers, which should perform whatever calculations are necessary to ensure
6965
+ * `valueVersion` is up to date.
6966
+ *
6967
+ * Consumers are nodes that depend on the values of producers and are notified when those values
6968
+ * might have changed.
6969
+ *
6970
+ * Consumers do not wrap the reads they consume themselves, but rather can be set as the active
6971
+ * reader via `setActiveConsumer`. Reads of producers that happen while a consumer is active will
6972
+ * result in those producers being added as dependencies of that consumer node.
6973
+ *
6974
+ * The set of dependencies of a consumer is dynamic. Implementers expose a monotonically increasing
6975
+ * `trackingVersion` counter, which increments whenever the consumer is about to re-run any reactive
6976
+ * reads it needs and establish a new set of dependencies as a result.
6977
+ *
6978
+ * Producers store the last `trackingVersion` they've seen from `Consumer`s which have read them.
6979
+ * This allows a producer to identify whether its record of the dependency is current or stale, by
6980
+ * comparing the consumer's `trackingVersion` to the version at which the dependency was
6981
+ * last observed.
6982
+ */
6983
+ declare abstract class ReactiveNode {
6984
+ private readonly id;
6985
+ /**
6986
+ * A cached weak reference to this node, which will be used in `ReactiveEdge`s.
6987
+ */
6988
+ private readonly ref;
6989
+ /**
6990
+ * Edges to producers on which this node depends (in its consumer capacity).
6991
+ */
6992
+ private readonly producers;
6993
+ /**
6994
+ * Edges to consumers on which this node depends (in its producer capacity).
6995
+ */
6996
+ private readonly consumers;
6997
+ /**
6998
+ * Monotonically increasing counter representing a version of this `Consumer`'s
6999
+ * dependencies.
7000
+ */
7001
+ protected trackingVersion: number;
7002
+ /**
7003
+ * Monotonically increasing counter which increases when the value of this `Producer`
7004
+ * semantically changes.
7005
+ */
7006
+ protected valueVersion: number;
7007
+ /**
7008
+ * Whether signal writes should be allowed while this `ReactiveNode` is the current consumer.
7009
+ */
7010
+ protected abstract readonly consumerAllowSignalWrites: boolean;
7011
+ /**
7012
+ * Called for consumers whenever one of their dependencies notifies that it might have a new
7013
+ * value.
7014
+ */
7015
+ protected abstract onConsumerDependencyMayHaveChanged(): void;
7016
+ /**
7017
+ * Called for producers when a dependent consumer is checking if the producer's value has actually
7018
+ * changed.
7019
+ */
7020
+ protected abstract onProducerUpdateValueVersion(): void;
7021
+ /**
7022
+ * Polls dependencies of a consumer to determine if they have actually changed.
7023
+ *
7024
+ * If this returns `false`, then even though the consumer may have previously been notified of a
7025
+ * change, the values of its dependencies have not actually changed and the consumer should not
7026
+ * rerun any reactions.
7027
+ */
7028
+ protected consumerPollProducersForChange(): boolean;
7029
+ /**
7030
+ * Notify all consumers of this producer that its value may have changed.
7031
+ */
7032
+ protected producerMayHaveChanged(): void;
7033
+ /**
7034
+ * Mark that this producer node has been accessed in the current reactive context.
7035
+ */
7036
+ protected producerAccessed(): void;
7037
+ /**
7038
+ * Whether this consumer currently has any producers registered.
7039
+ */
7040
+ protected get hasProducers(): boolean;
7041
+ /**
7042
+ * Whether this `ReactiveNode` in its producer capacity is currently allowed to initiate updates,
7043
+ * based on the current consumer context.
7044
+ */
7045
+ protected get producerUpdatesAllowed(): boolean;
7046
+ /**
7047
+ * Checks if a `Producer` has a current value which is different than the value
7048
+ * last seen at a specific version by a `Consumer` which recorded a dependency on
7049
+ * this `Producer`.
7050
+ */
7051
+ private producerPollStatus;
7052
+ }
7053
+
6809
7054
  /**
6810
7055
  * Creates an object that allows to retrieve component metadata.
6811
7056
  *
@@ -7364,8 +7609,6 @@ export declare abstract class Renderer2 {
7364
7609
  abstract listen(target: 'window' | 'document' | 'body' | any, eventName: string, callback: (event: any) => boolean | void): () => void;
7365
7610
  }
7366
7611
 
7367
- declare const RENDERER_FACTORY = 10;
7368
-
7369
7612
  declare interface RendererFactory {
7370
7613
  createRenderer(hostElement: RElement | null, rendererType: RendererType2 | null): Renderer;
7371
7614
  begin?(): void;
@@ -7632,6 +7875,7 @@ declare const enum RuntimeErrorCode {
7632
7875
  UNSUPPORTED_PROJECTION_DOM_NODES = 503,
7633
7876
  INVALID_SKIP_HYDRATION_HOST = 504,
7634
7877
  HYDRATION_I18N_NOT_YET_SUPPORTED = 518,
7878
+ SIGNAL_WRITE_FROM_ILLEGAL_CONTEXT = 600,
7635
7879
  INVALID_I18N_STRUCTURE = 700,
7636
7880
  MISSING_LOCALE_DATA = 701,
7637
7881
  IMPORT_PROVIDERS_FROM_STANDALONE = 800,
@@ -7648,8 +7892,6 @@ declare const enum RuntimeErrorCode {
7648
7892
  UNSAFE_IFRAME_ATTRS = -910
7649
7893
  }
7650
7894
 
7651
- declare const SANITIZER = 12;
7652
-
7653
7895
  /**
7654
7896
  * Sanitizer is used by the views to sanitize potentially dangerous values.
7655
7897
  *
@@ -7838,28 +8080,6 @@ declare interface SerializedView {
7838
8080
  [DISCONNECTED_NODES]?: number[];
7839
8081
  }
7840
8082
 
7841
- /**
7842
- * A `Signal` with a value that can be mutated via a setter interface.
7843
- *
7844
- * @developerPreview
7845
- */
7846
- export declare interface SettableSignal<T> extends Signal<T> {
7847
- /**
7848
- * Directly set the signal to a new value, and notify any dependents.
7849
- */
7850
- set(value: T): void;
7851
- /**
7852
- * Update the value of the signal based on its current value, and
7853
- * notify any dependents.
7854
- */
7855
- update(updateFn: (value: T) => T): void;
7856
- /**
7857
- * Update the current value by mutating it in-place, and
7858
- * notify any dependents.
7859
- */
7860
- mutate(mutatorFn: (value: T) => void): void;
7861
- }
7862
-
7863
8083
  /**
7864
8084
  * Set the {@link GetTestability} implementation used by the Angular testing framework.
7865
8085
  * @publicApi
@@ -7884,7 +8104,7 @@ declare const SIGNAL: unique symbol;
7884
8104
  * @developerPreview
7885
8105
  */
7886
8106
  export declare type Signal<T> = (() => T) & {
7887
- [SIGNAL]: true;
8107
+ [SIGNAL]: unknown;
7888
8108
  };
7889
8109
 
7890
8110
  /**
@@ -7892,7 +8112,7 @@ export declare type Signal<T> = (() => T) & {
7892
8112
  *
7893
8113
  * @developerPreview
7894
8114
  */
7895
- export declare function signal<T>(initialValue: T, equal?: ValueEqualityFn<T>): SettableSignal<T>;
8115
+ export declare function signal<T>(initialValue: T, options?: CreateSignalOptions<T>): WritableSignal<T>;
7896
8116
 
7897
8117
 
7898
8118
  /**
@@ -7973,6 +8193,25 @@ export declare interface SkipSelfDecorator {
7973
8193
  new (): SkipSelf;
7974
8194
  }
7975
8195
 
8196
+ /**
8197
+ * A type-safe key to use with `TransferState`.
8198
+ *
8199
+ * Example:
8200
+ *
8201
+ * ```
8202
+ * const COUNTER_KEY = makeStateKey<number>('counter');
8203
+ * let value = 10;
8204
+ *
8205
+ * transferState.set(COUNTER_KEY, value);
8206
+ * ```
8207
+ *
8208
+ * @publicApi
8209
+ */
8210
+ export declare type StateKey<T> = string & {
8211
+ __not_a_string: never;
8212
+ __value_type?: T;
8213
+ };
8214
+
7976
8215
  /**
7977
8216
  * Configures the `Injector` to return an instance of `useClass` for a token.
7978
8217
  * @see ["Dependency Injection Guide"](guide/dependency-injection).
@@ -9071,6 +9310,55 @@ export declare interface TrackByFunction<T> {
9071
9310
  <U extends T>(index: number, item: T & U): any;
9072
9311
  }
9073
9312
 
9313
+ /**
9314
+ * A key value store that is transferred from the application on the server side to the application
9315
+ * on the client side.
9316
+ *
9317
+ * The `TransferState` is available as an injectable token.
9318
+ * On the client, just inject this token using DI and use it, it will be lazily initialized.
9319
+ * On the server it's already included if `renderApplication` function is used. Otherwise, import
9320
+ * the `ServerTransferStateModule` module to make the `TransferState` available.
9321
+ *
9322
+ * The values in the store are serialized/deserialized using JSON.stringify/JSON.parse. So only
9323
+ * boolean, number, string, null and non-class objects will be serialized and deserialized in a
9324
+ * non-lossy manner.
9325
+ *
9326
+ * @publicApi
9327
+ */
9328
+ export declare class TransferState {
9329
+ /** @nocollapse */
9330
+ static ɵprov: unknown;
9331
+ private onSerializeCallbacks;
9332
+ /**
9333
+ * Get the value corresponding to a key. Return `defaultValue` if key is not found.
9334
+ */
9335
+ get<T>(key: StateKey<T>, defaultValue: T): T;
9336
+ /**
9337
+ * Set the value corresponding to a key.
9338
+ */
9339
+ set<T>(key: StateKey<T>, value: T): void;
9340
+ /**
9341
+ * Remove a key from the store.
9342
+ */
9343
+ remove<T>(key: StateKey<T>): void;
9344
+ /**
9345
+ * Test whether a key exists in the store.
9346
+ */
9347
+ hasKey<T>(key: StateKey<T>): boolean;
9348
+ /**
9349
+ * Indicates whether the state is empty.
9350
+ */
9351
+ get isEmpty(): boolean;
9352
+ /**
9353
+ * Register a callback to provide the value for a key when `toJson` is called.
9354
+ */
9355
+ onSerialize<T>(key: StateKey<T>, callback: () => T): void;
9356
+ /**
9357
+ * Serialize the current state of the store to JSON.
9358
+ */
9359
+ toJson(): string;
9360
+ }
9361
+
9074
9362
  /**
9075
9363
  * Use this token at bootstrap to provide the content of your translation file (`xtb`,
9076
9364
  * `xlf` or `xlf2`) when you want to translate your application in another language.
@@ -9855,7 +10143,7 @@ export declare interface ViewChildrenDecorator {
9855
10143
  * (created by instantiating a `TemplateRef` with the `createEmbeddedView()` method).
9856
10144
  *
9857
10145
  * A view container instance can contain other view containers,
9858
- * creating a [view hierarchy](guide/glossary#view-tree).
10146
+ * creating a [view hierarchy](guide/glossary#view-hierarchy).
9859
10147
  *
9860
10148
  * @see `ComponentRef`
9861
10149
  * @see `EmbeddedViewRef`
@@ -10104,6 +10392,28 @@ declare interface WeakRefCtor {
10104
10392
  new <T extends object>(value: T): WeakRef<T>;
10105
10393
  }
10106
10394
 
10395
+ /**
10396
+ * A `Signal` with a value that can be mutated via a setter interface.
10397
+ *
10398
+ * @developerPreview
10399
+ */
10400
+ export declare interface WritableSignal<T> extends Signal<T> {
10401
+ /**
10402
+ * Directly set the signal to a new value, and notify any dependents.
10403
+ */
10404
+ set(value: T): void;
10405
+ /**
10406
+ * Update the value of the signal based on its current value, and
10407
+ * notify any dependents.
10408
+ */
10409
+ update(updateFn: (value: T) => T): void;
10410
+ /**
10411
+ * Update the current value by mutating it in-place, and
10412
+ * notify any dependents.
10413
+ */
10414
+ mutate(mutatorFn: (value: T) => void): void;
10415
+ }
10416
+
10107
10417
  /**
10108
10418
  * Sanitizes the given unsafe, untrusted HTML fragment, and returns HTML text that is safe to add to
10109
10419
  * the DOM in a browser environment.
@@ -10828,6 +11138,31 @@ export declare function ɵgetUnknownPropertyStrictMode(): boolean;
10828
11138
 
10829
11139
  export declare const ɵglobal: any;
10830
11140
 
11141
+ /**
11142
+ * *Internal* service that keeps track of pending tasks happening in the system
11143
+ * during the initial rendering. No tasks are tracked after an initial
11144
+ * rendering.
11145
+ *
11146
+ * This information is needed to make sure that the serialization on the server
11147
+ * is delayed until all tasks in the queue (such as an initial navigation or a
11148
+ * pending HTTP request) are completed.
11149
+ */
11150
+ export declare class ɵInitialRenderPendingTasks implements OnDestroy {
11151
+ private taskId;
11152
+ private collection;
11153
+ private ngZone;
11154
+ private resolve;
11155
+ private promise;
11156
+ get whenAllTasksComplete(): Promise<void>;
11157
+ completed: boolean;
11158
+ constructor();
11159
+ add(): number;
11160
+ remove(taskId: number): void;
11161
+ ngOnDestroy(): void;
11162
+ static ɵfac: i0.ɵɵFactoryDeclaration<ɵInitialRenderPendingTasks, never>;
11163
+ static ɵprov: i0.ɵɵInjectableDeclaration<ɵInitialRenderPendingTasks>;
11164
+ }
11165
+
10831
11166
  /** Returns a ChangeDetectorRef (a.k.a. a ViewRef) */
10832
11167
  export declare function ɵinjectChangeDetectorRef(flags: InjectFlags): ChangeDetectorRef;
10833
11168
 
@@ -10997,22 +11332,6 @@ export declare function ɵmakeDecorator<T>(name: string, props?: (...args: any[]
10997
11332
  (...args: any[]): (cls: any) => any;
10998
11333
  };
10999
11334
 
11000
- /**
11001
- * Create a `StateKey<T>` that can be used to store value of type T with `TransferState`.
11002
- *
11003
- * Example:
11004
- *
11005
- * ```
11006
- * const COUNTER_KEY = makeStateKey<number>('counter');
11007
- * let value = 10;
11008
- *
11009
- * transferState.set(COUNTER_KEY, value);
11010
- * ```
11011
- *
11012
- * @publicApi
11013
- */
11014
- export declare function ɵmakeStateKey<T = void>(key: string): ɵStateKey<T>;
11015
-
11016
11335
 
11017
11336
  export declare const ɵNG_COMP_DEF: string;
11018
11337
 
@@ -11286,8 +11605,6 @@ export declare const enum ɵProfilerEvent {
11286
11605
  */
11287
11606
  export declare function ɵprovideHydrationSupport(): EnvironmentProviders;
11288
11607
 
11289
- export declare function ɵprovideNgZoneChangeDetection(ngZone: NgZone): StaticProvider[];
11290
-
11291
11608
  /**
11292
11609
  * Publishes a collection of default debug tools onto`window.ng`.
11293
11610
  *
@@ -11371,6 +11688,7 @@ export declare class ɵRender3ComponentRef<T> extends ComponentRef<T> {
11371
11688
  hostView: ɵViewRef<T>;
11372
11689
  changeDetectorRef: ChangeDetectorRef;
11373
11690
  componentType: Type<T>;
11691
+ private previousInputValues;
11374
11692
  constructor(componentType: Type<T>, instance: T, location: ElementRef, _rootLView: LView, _tNode: TElementNode | TContainerNode | TElementContainerNode);
11375
11693
  setInput(name: string, value: unknown): void;
11376
11694
  get injector(): Injector;
@@ -11457,7 +11775,8 @@ export declare function ɵresolveComponentResources(resourceResolver: (url: stri
11457
11775
  *
11458
11776
  * Note: the `message` argument contains a descriptive error message as a string in development
11459
11777
  * mode (when the `ngDevMode` is defined). In production mode (after tree-shaking pass), the
11460
- * `message` argument becomes `false`, thus we account for it in the typings and the runtime logic.
11778
+ * `message` argument becomes `false`, thus we account for it in the typings and the runtime
11779
+ * logic.
11461
11780
  */
11462
11781
  export declare class ɵRuntimeError<T extends number = RuntimeErrorCode> extends Error {
11463
11782
  code: T;
@@ -11521,9 +11840,6 @@ export declare interface ɵSafeValue {
11521
11840
  */
11522
11841
  export declare function ɵsetAllowDuplicateNgModuleIdsForTest(allowDuplicates: boolean): void;
11523
11842
 
11524
- /**
11525
- * Use an alternate implementation of `WeakRef` if a platform implementation isn't available.
11526
- */
11527
11843
  export declare function ɵsetAlternateWeakRefImpl(impl: WeakRefCtor): void;
11528
11844
 
11529
11845
  /**
@@ -11575,25 +11891,6 @@ export declare function ɵsetUnknownElementStrictMode(shouldThrow: boolean): voi
11575
11891
  */
11576
11892
  export declare function ɵsetUnknownPropertyStrictMode(shouldThrow: boolean): void;
11577
11893
 
11578
- /**
11579
- * A type-safe key to use with `TransferState`.
11580
- *
11581
- * Example:
11582
- *
11583
- * ```
11584
- * const COUNTER_KEY = makeStateKey<number>('counter');
11585
- * let value = 10;
11586
- *
11587
- * transferState.set(COUNTER_KEY, value);
11588
- * ```
11589
- *
11590
- * @publicApi
11591
- */
11592
- export declare type ɵStateKey<T> = string & {
11593
- __not_a_string: never;
11594
- __value_type?: T;
11595
- };
11596
-
11597
11894
  /** Store a value in the `data` at a given `index`. */
11598
11895
  export declare function ɵstore<T>(tView: TView, lView: LView, index: number, value: T): void;
11599
11896
 
@@ -11616,55 +11913,6 @@ export declare const ɵTESTABILITY: InjectionToken<Testability>;
11616
11913
  */
11617
11914
  export declare const ɵTESTABILITY_GETTER: InjectionToken<GetTestability>;
11618
11915
 
11619
- /**
11620
- * A key value store that is transferred from the application on the server side to the application
11621
- * on the client side.
11622
- *
11623
- * The `TransferState` is available as an injectable token.
11624
- * On the client, just inject this token using DI and use it, it will be lazily initialized.
11625
- * On the server it's already included if `renderApplication` function is used. Otherwise, import
11626
- * the `ServerTransferStateModule` module to make the `TransferState` available.
11627
- *
11628
- * The values in the store are serialized/deserialized using JSON.stringify/JSON.parse. So only
11629
- * boolean, number, string, null and non-class objects will be serialized and deserialized in a
11630
- * non-lossy manner.
11631
- *
11632
- * @publicApi
11633
- */
11634
- export declare class ɵTransferState {
11635
- /** @nocollapse */
11636
- static ɵprov: unknown;
11637
- private onSerializeCallbacks;
11638
- /**
11639
- * Get the value corresponding to a key. Return `defaultValue` if key is not found.
11640
- */
11641
- get<T>(key: ɵStateKey<T>, defaultValue: T): T;
11642
- /**
11643
- * Set the value corresponding to a key.
11644
- */
11645
- set<T>(key: ɵStateKey<T>, value: T): void;
11646
- /**
11647
- * Remove a key from the store.
11648
- */
11649
- remove<T>(key: ɵStateKey<T>): void;
11650
- /**
11651
- * Test whether a key exists in the store.
11652
- */
11653
- hasKey<T>(key: ɵStateKey<T>): boolean;
11654
- /**
11655
- * Indicates whether the state is empty.
11656
- */
11657
- get isEmpty(): boolean;
11658
- /**
11659
- * Register a callback to provide the value for a key when `toJson` is called.
11660
- */
11661
- onSerialize<T>(key: ɵStateKey<T>, callback: () => T): void;
11662
- /**
11663
- * Serialize the current state of the store to JSON.
11664
- */
11665
- toJson(): string;
11666
- }
11667
-
11668
11916
  /**
11669
11917
  * Compute the pair of transitive scopes (compilation scope and exported scope) for a given type
11670
11918
  * (either a NgModule or a standalone component / directive / pipe).