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

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 (353) hide show
  1. package/{esm2020 → esm2022}/src/application_init.mjs +3 -3
  2. package/{esm2020 → esm2022}/src/application_module.mjs +4 -4
  3. package/esm2022/src/application_ref.mjs +908 -0
  4. package/{esm2020 → esm2022}/src/change_detection/change_detector_ref.mjs +6 -6
  5. package/esm2022/src/change_detection/differs/iterable_differs.mjs +81 -0
  6. package/esm2022/src/change_detection/differs/keyvalue_differs.mjs +74 -0
  7. package/{esm2020 → esm2022}/src/console.mjs +3 -3
  8. package/{esm2020 → esm2022}/src/core.mjs +2 -1
  9. package/esm2022/src/core_private_export.mjs +39 -0
  10. package/esm2022/src/core_reactivity_export_internal.mjs +12 -0
  11. package/esm2022/src/di/contextual.mjs +54 -0
  12. package/esm2022/src/di/index.mjs +29 -0
  13. package/esm2022/src/di/injector.mjs +62 -0
  14. package/esm2022/src/di/injector_compatibility.mjs +239 -0
  15. package/esm2022/src/di/provider_collection.mjs +279 -0
  16. package/esm2022/src/di/reflective_injector.mjs +311 -0
  17. package/esm2022/src/hydration/annotate.mjs +426 -0
  18. package/esm2022/src/hydration/api.mjs +143 -0
  19. package/esm2022/src/hydration/cleanup.mjs +103 -0
  20. package/esm2022/src/hydration/node_lookup_utils.mjs +273 -0
  21. package/esm2022/src/hydration/utils.mjs +219 -0
  22. package/esm2022/src/initial_render_pending_tasks.mjs +75 -0
  23. package/{esm2020 → esm2022}/src/linker/compiler.mjs +5 -5
  24. package/esm2022/src/linker/component_factory_resolver.mjs +42 -0
  25. package/{esm2020 → esm2022}/src/linker/destroy_ref.mjs +11 -11
  26. package/{esm2020 → esm2022}/src/linker/element_ref.mjs +6 -6
  27. package/esm2022/src/linker/query_list.mjs +169 -0
  28. package/{esm2020 → esm2022}/src/linker/template_ref.mjs +6 -6
  29. package/{esm2020 → esm2022}/src/linker/view_container_ref.mjs +6 -6
  30. package/esm2022/src/metadata/di.mjs +69 -0
  31. package/{esm2020 → esm2022}/src/metadata/directives.mjs +1 -1
  32. package/{esm2020 → esm2022}/src/metadata/do_boostrap.mjs +1 -1
  33. package/{esm2020 → esm2022}/src/metadata/ng_module.mjs +2 -2
  34. package/esm2022/src/metadata.mjs +18 -0
  35. package/{esm2020 → esm2022}/src/render/api.mjs +6 -6
  36. package/esm2022/src/render3/component_ref.mjs +386 -0
  37. package/{esm2020 → esm2022}/src/render3/context_discovery.mjs +1 -1
  38. package/esm2022/src/render3/features/standalone_feature.mjs +70 -0
  39. package/{esm2020 → esm2022}/src/render3/instructions/element.mjs +2 -2
  40. package/esm2022/src/render3/instructions/listener.mjs +244 -0
  41. package/esm2022/src/render3/instructions/mark_view_dirty.mjs +35 -0
  42. package/esm2022/src/render3/instructions/shared.mjs +1681 -0
  43. package/{esm2020 → esm2022}/src/render3/instructions/styling.mjs +5 -2
  44. package/esm2022/src/render3/interfaces/view.mjs +49 -0
  45. package/esm2022/src/render3/jit/module.mjs +531 -0
  46. package/esm2022/src/render3/node_manipulation.mjs +960 -0
  47. package/esm2022/src/render3/reactive_lview_consumer.mjs +80 -0
  48. package/esm2022/src/render3/reactivity/effect.mjs +67 -0
  49. package/{esm2020 → esm2022}/src/render3/util/change_detection_utils.mjs +2 -2
  50. package/esm2022/src/render3/view_ref.mjs +307 -0
  51. package/{esm2020 → esm2022}/src/sanitization/sanitizer.mjs +7 -7
  52. package/esm2022/src/signals/index.mjs +15 -0
  53. package/esm2022/src/signals/src/api.mjs +47 -0
  54. package/esm2022/src/signals/src/computed.mjs +139 -0
  55. package/esm2022/src/signals/src/graph.mjs +165 -0
  56. package/esm2022/src/signals/src/signal.mjs +75 -0
  57. package/esm2022/src/signals/src/watch.mjs +62 -0
  58. package/esm2022/src/signals/src/weak_ref.mjs +35 -0
  59. package/{esm2020 → esm2022}/src/testability/testability.mjs +5 -5
  60. package/esm2022/src/transfer_state.mjs +153 -0
  61. package/{esm2020 → esm2022}/src/version.mjs +1 -1
  62. package/{esm2020 → esm2022}/testing/src/logger.mjs +4 -4
  63. package/{esm2020 → esm2022}/testing/src/ng_zone_mock.mjs +4 -4
  64. package/{esm2020 → esm2022}/testing/src/test_bed.mjs +2 -2
  65. package/{fesm2020 → fesm2022}/core.mjs +869 -639
  66. package/fesm2022/core.mjs.map +1 -0
  67. package/{fesm2020 → fesm2022}/testing.mjs +406 -124
  68. package/fesm2022/testing.mjs.map +1 -0
  69. package/index.d.ts +334 -187
  70. package/package.json +8 -16
  71. package/schematics/migrations/guard-and-resolve-interfaces/bundle.js +694 -0
  72. package/schematics/migrations/guard-and-resolve-interfaces/bundle.js.map +7 -0
  73. package/schematics/migrations/{router-link-with-href → remove-module-id}/bundle.js +149 -151
  74. package/schematics/migrations/remove-module-id/bundle.js.map +7 -0
  75. package/schematics/migrations.json +8 -8
  76. package/schematics/ng-generate/standalone-migration/bundle.js +617 -251
  77. package/schematics/ng-generate/standalone-migration/bundle.js.map +2 -2
  78. package/testing/index.d.ts +1 -1
  79. package/esm2020/src/application_ref.mjs +0 -907
  80. package/esm2020/src/change_detection/differs/iterable_differs.mjs +0 -81
  81. package/esm2020/src/change_detection/differs/keyvalue_differs.mjs +0 -74
  82. package/esm2020/src/core_private_export.mjs +0 -38
  83. package/esm2020/src/core_reactivity_export_internal.mjs +0 -9
  84. package/esm2020/src/di/contextual.mjs +0 -37
  85. package/esm2020/src/di/index.mjs +0 -29
  86. package/esm2020/src/di/injector.mjs +0 -62
  87. package/esm2020/src/di/injector_compatibility.mjs +0 -236
  88. package/esm2020/src/di/provider_collection.mjs +0 -279
  89. package/esm2020/src/di/reflective_injector.mjs +0 -311
  90. package/esm2020/src/hydration/annotate.mjs +0 -384
  91. package/esm2020/src/hydration/api.mjs +0 -141
  92. package/esm2020/src/hydration/cleanup.mjs +0 -101
  93. package/esm2020/src/hydration/node_lookup_utils.mjs +0 -275
  94. package/esm2020/src/hydration/utils.mjs +0 -219
  95. package/esm2020/src/linker/component_factory_resolver.mjs +0 -42
  96. package/esm2020/src/linker/query_list.mjs +0 -169
  97. package/esm2020/src/metadata/di.mjs +0 -108
  98. package/esm2020/src/metadata.mjs +0 -18
  99. package/esm2020/src/render3/component_ref.mjs +0 -377
  100. package/esm2020/src/render3/features/standalone_feature.mjs +0 -70
  101. package/esm2020/src/render3/instructions/listener.mjs +0 -243
  102. package/esm2020/src/render3/instructions/shared.mjs +0 -1696
  103. package/esm2020/src/render3/interfaces/view.mjs +0 -47
  104. package/esm2020/src/render3/jit/module.mjs +0 -544
  105. package/esm2020/src/render3/node_manipulation.mjs +0 -961
  106. package/esm2020/src/render3/view_ref.mjs +0 -306
  107. package/esm2020/src/signals/index.mjs +0 -16
  108. package/esm2020/src/signals/src/api.mjs +0 -46
  109. package/esm2020/src/signals/src/computed.mjs +0 -142
  110. package/esm2020/src/signals/src/effect.mjs +0 -67
  111. package/esm2020/src/signals/src/graph.mjs +0 -114
  112. package/esm2020/src/signals/src/signal.mjs +0 -78
  113. package/esm2020/src/signals/src/watch.mjs +0 -54
  114. package/esm2020/src/signals/src/weak_ref.mjs +0 -27
  115. package/esm2020/src/transfer_state.mjs +0 -153
  116. package/fesm2015/core.mjs +0 -30473
  117. package/fesm2015/core.mjs.map +0 -1
  118. package/fesm2015/testing.mjs +0 -26417
  119. package/fesm2015/testing.mjs.map +0 -1
  120. package/fesm2020/core.mjs.map +0 -1
  121. package/fesm2020/testing.mjs.map +0 -1
  122. package/schematics/migrations/relative-link-resolution/bundle.js +0 -283
  123. package/schematics/migrations/relative-link-resolution/bundle.js.map +0 -7
  124. package/schematics/migrations/router-link-with-href/bundle.js.map +0 -7
  125. /package/{esm2020 → esm2022}/core.mjs +0 -0
  126. /package/{esm2020 → esm2022}/index.mjs +0 -0
  127. /package/{esm2020 → esm2022}/public_api.mjs +0 -0
  128. /package/{esm2020 → esm2022}/src/application_config.mjs +0 -0
  129. /package/{esm2020 → esm2022}/src/application_tokens.mjs +0 -0
  130. /package/{esm2020 → esm2022}/src/change_detection/change_detection.mjs +0 -0
  131. /package/{esm2020 → esm2022}/src/change_detection/constants.mjs +0 -0
  132. /package/{esm2020 → esm2022}/src/change_detection/differs/default_iterable_differ.mjs +0 -0
  133. /package/{esm2020 → esm2022}/src/change_detection/differs/default_keyvalue_differ.mjs +0 -0
  134. /package/{esm2020 → esm2022}/src/change_detection/pipe_transform.mjs +0 -0
  135. /package/{esm2020 → esm2022}/src/change_detection.mjs +0 -0
  136. /package/{esm2020 → esm2022}/src/compiler/compiler_facade.mjs +0 -0
  137. /package/{esm2020 → esm2022}/src/compiler/compiler_facade_interface.mjs +0 -0
  138. /package/{esm2020 → esm2022}/src/core_reactivity_export.mjs +0 -0
  139. /package/{esm2020 → esm2022}/src/core_render3_private_export.mjs +0 -0
  140. /package/{esm2020 → esm2022}/src/debug/debug_node.mjs +0 -0
  141. /package/{esm2020 → esm2022}/src/di/create_injector.mjs +0 -0
  142. /package/{esm2020 → esm2022}/src/di/forward_ref.mjs +0 -0
  143. /package/{esm2020 → esm2022}/src/di/initializer_token.mjs +0 -0
  144. /package/{esm2020 → esm2022}/src/di/inject_switch.mjs +0 -0
  145. /package/{esm2020 → esm2022}/src/di/injectable.mjs +0 -0
  146. /package/{esm2020 → esm2022}/src/di/injection_token.mjs +0 -0
  147. /package/{esm2020 → esm2022}/src/di/injector_marker.mjs +0 -0
  148. /package/{esm2020 → esm2022}/src/di/injector_token.mjs +0 -0
  149. /package/{esm2020 → esm2022}/src/di/interface/defs.mjs +0 -0
  150. /package/{esm2020 → esm2022}/src/di/interface/injector.mjs +0 -0
  151. /package/{esm2020 → esm2022}/src/di/interface/provider.mjs +0 -0
  152. /package/{esm2020 → esm2022}/src/di/internal_tokens.mjs +0 -0
  153. /package/{esm2020 → esm2022}/src/di/jit/environment.mjs +0 -0
  154. /package/{esm2020 → esm2022}/src/di/jit/injectable.mjs +0 -0
  155. /package/{esm2020 → esm2022}/src/di/jit/util.mjs +0 -0
  156. /package/{esm2020 → esm2022}/src/di/metadata.mjs +0 -0
  157. /package/{esm2020 → esm2022}/src/di/metadata_attr.mjs +0 -0
  158. /package/{esm2020 → esm2022}/src/di/null_injector.mjs +0 -0
  159. /package/{esm2020 → esm2022}/src/di/provider_token.mjs +0 -0
  160. /package/{esm2020 → esm2022}/src/di/r3_injector.mjs +0 -0
  161. /package/{esm2020 → esm2022}/src/di/reflective_errors.mjs +0 -0
  162. /package/{esm2020 → esm2022}/src/di/reflective_key.mjs +0 -0
  163. /package/{esm2020 → esm2022}/src/di/reflective_provider.mjs +0 -0
  164. /package/{esm2020 → esm2022}/src/di/scope.mjs +0 -0
  165. /package/{esm2020 → esm2022}/src/di.mjs +0 -0
  166. /package/{esm2020 → esm2022}/src/error_details_base_url.mjs +0 -0
  167. /package/{esm2020 → esm2022}/src/error_handler.mjs +0 -0
  168. /package/{esm2020 → esm2022}/src/errors.mjs +0 -0
  169. /package/{esm2020 → esm2022}/src/event_emitter.mjs +0 -0
  170. /package/{esm2020 → esm2022}/src/hydration/compression.mjs +0 -0
  171. /package/{esm2020 → esm2022}/src/hydration/error_handling.mjs +0 -0
  172. /package/{esm2020 → esm2022}/src/hydration/interfaces.mjs +0 -0
  173. /package/{esm2020 → esm2022}/src/hydration/skip_hydration.mjs +0 -0
  174. /package/{esm2020 → esm2022}/src/hydration/tokens.mjs +0 -0
  175. /package/{esm2020 → esm2022}/src/hydration/views.mjs +0 -0
  176. /package/{esm2020 → esm2022}/src/i18n/locale_data_api.mjs +0 -0
  177. /package/{esm2020 → esm2022}/src/i18n/locale_en.mjs +0 -0
  178. /package/{esm2020 → esm2022}/src/i18n/localization.mjs +0 -0
  179. /package/{esm2020 → esm2022}/src/i18n/tokens.mjs +0 -0
  180. /package/{esm2020 → esm2022}/src/interface/lifecycle_hooks.mjs +0 -0
  181. /package/{esm2020 → esm2022}/src/interface/simple_change.mjs +0 -0
  182. /package/{esm2020 → esm2022}/src/interface/type.mjs +0 -0
  183. /package/{esm2020 → esm2022}/src/linker/component_factory.mjs +0 -0
  184. /package/{esm2020 → esm2022}/src/linker/ng_module_factory.mjs +0 -0
  185. /package/{esm2020 → esm2022}/src/linker/ng_module_factory_loader.mjs +0 -0
  186. /package/{esm2020 → esm2022}/src/linker/ng_module_factory_loader_impl.mjs +0 -0
  187. /package/{esm2020 → esm2022}/src/linker/ng_module_registration.mjs +0 -0
  188. /package/{esm2020 → esm2022}/src/linker/view_ref.mjs +0 -0
  189. /package/{esm2020 → esm2022}/src/linker.mjs +0 -0
  190. /package/{esm2020 → esm2022}/src/metadata/ng_module_def.mjs +0 -0
  191. /package/{esm2020 → esm2022}/src/metadata/resource_loading.mjs +0 -0
  192. /package/{esm2020 → esm2022}/src/metadata/schema.mjs +0 -0
  193. /package/{esm2020 → esm2022}/src/metadata/view.mjs +0 -0
  194. /package/{esm2020 → esm2022}/src/platform_core_providers.mjs +0 -0
  195. /package/{esm2020 → esm2022}/src/r3_symbols.mjs +0 -0
  196. /package/{esm2020 → esm2022}/src/reflection/platform_reflection_capabilities.mjs +0 -0
  197. /package/{esm2020 → esm2022}/src/reflection/reflection_capabilities.mjs +0 -0
  198. /package/{esm2020 → esm2022}/src/render/api_flags.mjs +0 -0
  199. /package/{esm2020 → esm2022}/src/render.mjs +0 -0
  200. /package/{esm2020 → esm2022}/src/render3/assert.mjs +0 -0
  201. /package/{esm2020 → esm2022}/src/render3/bindings.mjs +0 -0
  202. /package/{esm2020 → esm2022}/src/render3/collect_native_nodes.mjs +0 -0
  203. /package/{esm2020 → esm2022}/src/render3/component.mjs +0 -0
  204. /package/{esm2020 → esm2022}/src/render3/definition.mjs +0 -0
  205. /package/{esm2020 → esm2022}/src/render3/definition_factory.mjs +0 -0
  206. /package/{esm2020 → esm2022}/src/render3/di.mjs +0 -0
  207. /package/{esm2020 → esm2022}/src/render3/di_setup.mjs +0 -0
  208. /package/{esm2020 → esm2022}/src/render3/errors.mjs +0 -0
  209. /package/{esm2020 → esm2022}/src/render3/errors_di.mjs +0 -0
  210. /package/{esm2020 → esm2022}/src/render3/features/copy_definition_feature.mjs +0 -0
  211. /package/{esm2020 → esm2022}/src/render3/features/host_directives_feature.mjs +0 -0
  212. /package/{esm2020 → esm2022}/src/render3/features/inherit_definition_feature.mjs +0 -0
  213. /package/{esm2020 → esm2022}/src/render3/features/ng_onchanges_feature.mjs +0 -0
  214. /package/{esm2020 → esm2022}/src/render3/features/providers_feature.mjs +0 -0
  215. /package/{esm2020 → esm2022}/src/render3/fields.mjs +0 -0
  216. /package/{esm2020 → esm2022}/src/render3/global_utils_api.mjs +0 -0
  217. /package/{esm2020 → esm2022}/src/render3/hooks.mjs +0 -0
  218. /package/{esm2020 → esm2022}/src/render3/i18n/i18n_apply.mjs +0 -0
  219. /package/{esm2020 → esm2022}/src/render3/i18n/i18n_debug.mjs +0 -0
  220. /package/{esm2020 → esm2022}/src/render3/i18n/i18n_insert_before_index.mjs +0 -0
  221. /package/{esm2020 → esm2022}/src/render3/i18n/i18n_locale_id.mjs +0 -0
  222. /package/{esm2020 → esm2022}/src/render3/i18n/i18n_parse.mjs +0 -0
  223. /package/{esm2020 → esm2022}/src/render3/i18n/i18n_postprocess.mjs +0 -0
  224. /package/{esm2020 → esm2022}/src/render3/i18n/i18n_tree_shaking.mjs +0 -0
  225. /package/{esm2020 → esm2022}/src/render3/i18n/i18n_util.mjs +0 -0
  226. /package/{esm2020 → esm2022}/src/render3/index.mjs +0 -0
  227. /package/{esm2020 → esm2022}/src/render3/instructions/advance.mjs +0 -0
  228. /package/{esm2020 → esm2022}/src/render3/instructions/all.mjs +0 -0
  229. /package/{esm2020 → esm2022}/src/render3/instructions/attribute.mjs +0 -0
  230. /package/{esm2020 → esm2022}/src/render3/instructions/attribute_interpolation.mjs +0 -0
  231. /package/{esm2020 → esm2022}/src/render3/instructions/change_detection.mjs +0 -0
  232. /package/{esm2020 → esm2022}/src/render3/instructions/class_map_interpolation.mjs +0 -0
  233. /package/{esm2020 → esm2022}/src/render3/instructions/di.mjs +0 -0
  234. /package/{esm2020 → esm2022}/src/render3/instructions/di_attr.mjs +0 -0
  235. /package/{esm2020 → esm2022}/src/render3/instructions/element_container.mjs +0 -0
  236. /package/{esm2020 → esm2022}/src/render3/instructions/element_validation.mjs +0 -0
  237. /package/{esm2020 → esm2022}/src/render3/instructions/get_current_view.mjs +0 -0
  238. /package/{esm2020 → esm2022}/src/render3/instructions/host_property.mjs +0 -0
  239. /package/{esm2020 → esm2022}/src/render3/instructions/i18n.mjs +0 -0
  240. /package/{esm2020 → esm2022}/src/render3/instructions/i18n_icu_container_visitor.mjs +0 -0
  241. /package/{esm2020 → esm2022}/src/render3/instructions/interpolation.mjs +0 -0
  242. /package/{esm2020 → esm2022}/src/render3/instructions/namespace.mjs +0 -0
  243. /package/{esm2020 → esm2022}/src/render3/instructions/next_context.mjs +0 -0
  244. /package/{esm2020 → esm2022}/src/render3/instructions/projection.mjs +0 -0
  245. /package/{esm2020 → esm2022}/src/render3/instructions/property.mjs +0 -0
  246. /package/{esm2020 → esm2022}/src/render3/instructions/property_interpolation.mjs +0 -0
  247. /package/{esm2020 → esm2022}/src/render3/instructions/storage.mjs +0 -0
  248. /package/{esm2020 → esm2022}/src/render3/instructions/style_map_interpolation.mjs +0 -0
  249. /package/{esm2020 → esm2022}/src/render3/instructions/style_prop_interpolation.mjs +0 -0
  250. /package/{esm2020 → esm2022}/src/render3/instructions/template.mjs +0 -0
  251. /package/{esm2020 → esm2022}/src/render3/instructions/text.mjs +0 -0
  252. /package/{esm2020 → esm2022}/src/render3/instructions/text_interpolation.mjs +0 -0
  253. /package/{esm2020 → esm2022}/src/render3/interfaces/container.mjs +0 -0
  254. /package/{esm2020 → esm2022}/src/render3/interfaces/context.mjs +0 -0
  255. /package/{esm2020 → esm2022}/src/render3/interfaces/definition.mjs +0 -0
  256. /package/{esm2020 → esm2022}/src/render3/interfaces/document.mjs +0 -0
  257. /package/{esm2020 → esm2022}/src/render3/interfaces/i18n.mjs +0 -0
  258. /package/{esm2020 → esm2022}/src/render3/interfaces/injector.mjs +0 -0
  259. /package/{esm2020 → esm2022}/src/render3/interfaces/lview_tracking.mjs +0 -0
  260. /package/{esm2020 → esm2022}/src/render3/interfaces/node.mjs +0 -0
  261. /package/{esm2020 → esm2022}/src/render3/interfaces/projection.mjs +0 -0
  262. /package/{esm2020 → esm2022}/src/render3/interfaces/public_definitions.mjs +0 -0
  263. /package/{esm2020 → esm2022}/src/render3/interfaces/query.mjs +0 -0
  264. /package/{esm2020 → esm2022}/src/render3/interfaces/renderer.mjs +0 -0
  265. /package/{esm2020 → esm2022}/src/render3/interfaces/renderer_dom.mjs +0 -0
  266. /package/{esm2020 → esm2022}/src/render3/interfaces/sanitization.mjs +0 -0
  267. /package/{esm2020 → esm2022}/src/render3/interfaces/styling.mjs +0 -0
  268. /package/{esm2020 → esm2022}/src/render3/interfaces/type_checks.mjs +0 -0
  269. /package/{esm2020 → esm2022}/src/render3/jit/directive.mjs +0 -0
  270. /package/{esm2020 → esm2022}/src/render3/jit/environment.mjs +0 -0
  271. /package/{esm2020 → esm2022}/src/render3/jit/jit_options.mjs +0 -0
  272. /package/{esm2020 → esm2022}/src/render3/jit/module_patch.mjs +0 -0
  273. /package/{esm2020 → esm2022}/src/render3/jit/partial.mjs +0 -0
  274. /package/{esm2020 → esm2022}/src/render3/jit/pipe.mjs +0 -0
  275. /package/{esm2020 → esm2022}/src/render3/jit/util.mjs +0 -0
  276. /package/{esm2020 → esm2022}/src/render3/metadata.mjs +0 -0
  277. /package/{esm2020 → esm2022}/src/render3/namespaces.mjs +0 -0
  278. /package/{esm2020 → esm2022}/src/render3/ng_module_ref.mjs +0 -0
  279. /package/{esm2020 → esm2022}/src/render3/node_assert.mjs +0 -0
  280. /package/{esm2020 → esm2022}/src/render3/node_manipulation_i18n.mjs +0 -0
  281. /package/{esm2020 → esm2022}/src/render3/node_selector_matcher.mjs +0 -0
  282. /package/{esm2020 → esm2022}/src/render3/pipe.mjs +0 -0
  283. /package/{esm2020 → esm2022}/src/render3/profiler.mjs +0 -0
  284. /package/{esm2020 → esm2022}/src/render3/pure_function.mjs +0 -0
  285. /package/{esm2020 → esm2022}/src/render3/query.mjs +0 -0
  286. /package/{esm2020 → esm2022}/src/render3/state.mjs +0 -0
  287. /package/{esm2020 → esm2022}/src/render3/styling/class_differ.mjs +0 -0
  288. /package/{esm2020 → esm2022}/src/render3/styling/static_styling.mjs +0 -0
  289. /package/{esm2020 → esm2022}/src/render3/styling/style_binding_list.mjs +0 -0
  290. /package/{esm2020 → esm2022}/src/render3/styling/styling_parser.mjs +0 -0
  291. /package/{esm2020 → esm2022}/src/render3/tokens.mjs +0 -0
  292. /package/{esm2020 → esm2022}/src/render3/util/attrs_utils.mjs +0 -0
  293. /package/{esm2020 → esm2022}/src/render3/util/discovery_utils.mjs +0 -0
  294. /package/{esm2020 → esm2022}/src/render3/util/global_utils.mjs +0 -0
  295. /package/{esm2020 → esm2022}/src/render3/util/injector_utils.mjs +0 -0
  296. /package/{esm2020 → esm2022}/src/render3/util/misc_utils.mjs +0 -0
  297. /package/{esm2020 → esm2022}/src/render3/util/stringify_utils.mjs +0 -0
  298. /package/{esm2020 → esm2022}/src/render3/util/view_traversal_utils.mjs +0 -0
  299. /package/{esm2020 → esm2022}/src/render3/util/view_utils.mjs +0 -0
  300. /package/{esm2020 → esm2022}/src/render3/view_engine_compatibility_prebound.mjs +0 -0
  301. /package/{esm2020 → esm2022}/src/sanitization/bypass.mjs +0 -0
  302. /package/{esm2020 → esm2022}/src/sanitization/html_sanitizer.mjs +0 -0
  303. /package/{esm2020 → esm2022}/src/sanitization/iframe_attrs_validation.mjs +0 -0
  304. /package/{esm2020 → esm2022}/src/sanitization/inert_body.mjs +0 -0
  305. /package/{esm2020 → esm2022}/src/sanitization/sanitization.mjs +0 -0
  306. /package/{esm2020 → esm2022}/src/sanitization/security.mjs +0 -0
  307. /package/{esm2020 → esm2022}/src/sanitization/url_sanitizer.mjs +0 -0
  308. /package/{esm2020 → esm2022}/src/signals/src/untracked.mjs +0 -0
  309. /package/{esm2020 → esm2022}/src/util/array_utils.mjs +0 -0
  310. /package/{esm2020 → esm2022}/src/util/assert.mjs +0 -0
  311. /package/{esm2020 → esm2022}/src/util/char_code.mjs +0 -0
  312. /package/{esm2020 → esm2022}/src/util/closure.mjs +0 -0
  313. /package/{esm2020 → esm2022}/src/util/coercion.mjs +0 -0
  314. /package/{esm2020 → esm2022}/src/util/comparison.mjs +0 -0
  315. /package/{esm2020 → esm2022}/src/util/decorators.mjs +0 -0
  316. /package/{esm2020 → esm2022}/src/util/dom.mjs +0 -0
  317. /package/{esm2020 → esm2022}/src/util/empty.mjs +0 -0
  318. /package/{esm2020 → esm2022}/src/util/errors.mjs +0 -0
  319. /package/{esm2020 → esm2022}/src/util/global.mjs +0 -0
  320. /package/{esm2020 → esm2022}/src/util/is_dev_mode.mjs +0 -0
  321. /package/{esm2020 → esm2022}/src/util/iterable.mjs +0 -0
  322. /package/{esm2020 → esm2022}/src/util/lang.mjs +0 -0
  323. /package/{esm2020 → esm2022}/src/util/microtask.mjs +0 -0
  324. /package/{esm2020 → esm2022}/src/util/ng_dev_mode.mjs +0 -0
  325. /package/{esm2020 → esm2022}/src/util/ng_i18n_closure_mode.mjs +0 -0
  326. /package/{esm2020 → esm2022}/src/util/ng_jit_mode.mjs +0 -0
  327. /package/{esm2020 → esm2022}/src/util/ng_reflect.mjs +0 -0
  328. /package/{esm2020 → esm2022}/src/util/noop.mjs +0 -0
  329. /package/{esm2020 → esm2022}/src/util/property.mjs +0 -0
  330. /package/{esm2020 → esm2022}/src/util/raf.mjs +0 -0
  331. /package/{esm2020 → esm2022}/src/util/security/trusted_type_defs.mjs +0 -0
  332. /package/{esm2020 → esm2022}/src/util/security/trusted_types.mjs +0 -0
  333. /package/{esm2020 → esm2022}/src/util/security/trusted_types_bypass.mjs +0 -0
  334. /package/{esm2020 → esm2022}/src/util/stringify.mjs +0 -0
  335. /package/{esm2020 → esm2022}/src/view/provider_flags.mjs +0 -0
  336. /package/{esm2020 → esm2022}/src/zone/async-stack-tagging.mjs +0 -0
  337. /package/{esm2020 → esm2022}/src/zone/ng_zone.mjs +0 -0
  338. /package/{esm2020 → esm2022}/src/zone.mjs +0 -0
  339. /package/{esm2020 → esm2022}/testing/index.mjs +0 -0
  340. /package/{esm2020 → esm2022}/testing/public_api.mjs +0 -0
  341. /package/{esm2020 → esm2022}/testing/src/async.mjs +0 -0
  342. /package/{esm2020 → esm2022}/testing/src/component_fixture.mjs +0 -0
  343. /package/{esm2020 → esm2022}/testing/src/fake_async.mjs +0 -0
  344. /package/{esm2020 → esm2022}/testing/src/metadata_override.mjs +0 -0
  345. /package/{esm2020 → esm2022}/testing/src/metadata_overrider.mjs +0 -0
  346. /package/{esm2020 → esm2022}/testing/src/resolvers.mjs +0 -0
  347. /package/{esm2020 → esm2022}/testing/src/styling.mjs +0 -0
  348. /package/{esm2020 → esm2022}/testing/src/test_bed_common.mjs +0 -0
  349. /package/{esm2020 → esm2022}/testing/src/test_bed_compiler.mjs +0 -0
  350. /package/{esm2020 → esm2022}/testing/src/test_hooks.mjs +0 -0
  351. /package/{esm2020 → esm2022}/testing/src/testing.mjs +0 -0
  352. /package/{esm2020 → esm2022}/testing/src/testing_internal.mjs +0 -0
  353. /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.5
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
  *
@@ -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`
@@ -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,39 @@ 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
+
1852
1848
  /**
1853
1849
  * Create a new environment injector.
1854
1850
  *
@@ -1905,6 +1901,18 @@ export declare function createPlatform(injector: Injector): PlatformRef;
1905
1901
  */
1906
1902
  export declare function createPlatformFactory(parentPlatformFactory: ((extraProviders?: StaticProvider[]) => PlatformRef) | null, name: string, providers?: StaticProvider[]): (extraProviders?: StaticProvider[]) => PlatformRef;
1907
1903
 
1904
+ /**
1905
+ * Options passed to the `signal` creation function.
1906
+ *
1907
+ * @developerPreview
1908
+ */
1909
+ export declare interface CreateSignalOptions<T> {
1910
+ /**
1911
+ * A comparison function which defines equality for signal values.
1912
+ */
1913
+ equal?: ValueEqualityFn<T>;
1914
+ }
1915
+
1908
1916
  /**
1909
1917
  * Token used to configure the [Content Security Policy](https://web.dev/strict-csp/) nonce that
1910
1918
  * Angular will apply when inserting inline styles. If not provided, Angular will look up its value
@@ -2149,6 +2157,18 @@ declare const DECLARATION_LCONTAINER = 17;
2149
2157
 
2150
2158
  declare const DECLARATION_VIEW = 15;
2151
2159
 
2160
+ /**
2161
+ * Makes `T` read-only at the property level.
2162
+ *
2163
+ * Objects have their properties mapped to `DeepReadonly` types and arrays are converted to
2164
+ * `ReadonlyArray`s of `DeepReadonly` values.
2165
+ *
2166
+ * @developerPreview
2167
+ */
2168
+ export declare type DeepReadonly<T> = T extends (infer R)[] ? ReadonlyArray<DeepReadonly<R>> : (T extends Function ? T : (T extends object ? {
2169
+ readonly [P in keyof T]: DeepReadonly<T[P]>;
2170
+ } : T));
2171
+
2152
2172
  /**
2153
2173
  * Provide this token to set the default currency code your application uses for
2154
2174
  * CurrencyPipe when there is no currency code passed into it. This is only used by
@@ -2848,7 +2868,7 @@ declare const DISCONNECTED_NODES = "d";
2848
2868
  *
2849
2869
  * Reference to the current application is provided as a parameter.
2850
2870
  *
2851
- * See ["Bootstrapping"](guide/bootstrapping) and ["Entry components"](guide/entry-components).
2871
+ * See ["Bootstrapping"](guide/bootstrapping).
2852
2872
  *
2853
2873
  * @usageNotes
2854
2874
  * The example below uses `ApplicationRef.bootstrap()` to render the
@@ -2911,8 +2931,16 @@ export declare interface DoCheck {
2911
2931
  *
2912
2932
  * @developerPreview
2913
2933
  */
2914
- export declare function effect(effectFn: () => void): EffectRef;
2934
+ export declare function effect(effectFn: () => EffectCleanupFn | void, options?: CreateEffectOptions): EffectRef;
2915
2935
 
2936
+ /**
2937
+ * An effect can, optionally, return a cleanup function. If returned, the cleanup is executed before
2938
+ * the next effect run. The cleanup function makes it possible to "cancel" any work that the
2939
+ * previous effect run might have started.
2940
+ *
2941
+ * @developerPreview
2942
+ */
2943
+ export declare type EffectCleanupFn = () => void;
2916
2944
 
2917
2945
  /**
2918
2946
  * A global reactive effect, which can be manually destroyed.
@@ -5361,6 +5389,17 @@ declare interface LView<T = unknown> extends Array<any> {
5361
5389
  * entries.
5362
5390
  */
5363
5391
  [ON_DESTROY_HOOKS]: Array<() => void> | null;
5392
+ /**
5393
+ * The `Consumer` for this `LView`'s template so that signal reads can be tracked.
5394
+ *
5395
+ * This is initially `null` and gets assigned a consumer after template execution
5396
+ * if any signals were read.
5397
+ */
5398
+ [REACTIVE_TEMPLATE_CONSUMER]: ReactiveLViewConsumer | null;
5399
+ /**
5400
+ * Same as REACTIVE_TEMPLATE_CONSUMER, but for the host bindings of the LView.
5401
+ */
5402
+ [REACTIVE_HOST_BINDING_CONSUMER]: ReactiveLViewConsumer | null;
5364
5403
  }
5365
5404
 
5366
5405
  /** Flags associated with an LView (saved in LView[FLAGS]) */
@@ -5416,6 +5455,22 @@ declare const enum LViewFlags {
5416
5455
  */
5417
5456
  export declare function makeEnvironmentProviders(providers: (Provider | EnvironmentProviders)[]): EnvironmentProviders;
5418
5457
 
5458
+ /**
5459
+ * Create a `StateKey<T>` that can be used to store value of type T with `TransferState`.
5460
+ *
5461
+ * Example:
5462
+ *
5463
+ * ```
5464
+ * const COUNTER_KEY = makeStateKey<number>('counter');
5465
+ * let value = 10;
5466
+ *
5467
+ * transferState.set(COUNTER_KEY, value);
5468
+ * ```
5469
+ *
5470
+ * @publicApi
5471
+ */
5472
+ export declare function makeStateKey<T = void>(key: string): StateKey<T>;
5473
+
5419
5474
  /**
5420
5475
  * Merge multiple application configurations from left to right.
5421
5476
  *
@@ -5646,28 +5701,7 @@ export declare interface NgModule {
5646
5701
  */
5647
5702
  exports?: Array<Type<any> | any[]>;
5648
5703
  /**
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`.
5704
+ * The set of components that are bootstrapped when this module is bootstrapped.
5671
5705
  */
5672
5706
  bootstrap?: Array<Type<any> | any[]>;
5673
5707
  /**
@@ -6806,6 +6840,112 @@ declare interface RDomTokenList {
6806
6840
  remove(token: string): void;
6807
6841
  }
6808
6842
 
6843
+ declare const REACTIVE_HOST_BINDING_CONSUMER = 25;
6844
+
6845
+ declare const REACTIVE_TEMPLATE_CONSUMER = 24;
6846
+
6847
+ declare class ReactiveLViewConsumer extends ReactiveNode {
6848
+ private _lView;
6849
+ set lView(lView: LView);
6850
+ protected onConsumerDependencyMayHaveChanged(): void;
6851
+ protected onProducerUpdateValueVersion(): void;
6852
+ get hasReadASignal(): boolean;
6853
+ runInContext(fn: HostBindingsFunction<unknown> | ComponentTemplate<unknown>, rf: ɵRenderFlags, ctx: unknown): void;
6854
+ destroy(): void;
6855
+ }
6856
+
6857
+ /**
6858
+ * A node in the reactive graph.
6859
+ *
6860
+ * Nodes can be producers of reactive values, consumers of other reactive values, or both.
6861
+ *
6862
+ * Producers are nodes that produce values, and can be depended upon by consumer nodes.
6863
+ *
6864
+ * Producers expose a monotonic `valueVersion` counter, and are responsible for incrementing this
6865
+ * version when their value semantically changes. Some producers may produce their values lazily and
6866
+ * thus at times need to be polled for potential updates to their value (and by extension their
6867
+ * `valueVersion`). This is accomplished via the `onProducerUpdateValueVersion` method for
6868
+ * implemented by producers, which should perform whatever calculations are necessary to ensure
6869
+ * `valueVersion` is up to date.
6870
+ *
6871
+ * Consumers are nodes that depend on the values of producers and are notified when those values
6872
+ * might have changed.
6873
+ *
6874
+ * Consumers do not wrap the reads they consume themselves, but rather can be set as the active
6875
+ * reader via `setActiveConsumer`. Reads of producers that happen while a consumer is active will
6876
+ * result in those producers being added as dependencies of that consumer node.
6877
+ *
6878
+ * The set of dependencies of a consumer is dynamic. Implementers expose a monotonically increasing
6879
+ * `trackingVersion` counter, which increments whenever the consumer is about to re-run any reactive
6880
+ * reads it needs and establish a new set of dependencies as a result.
6881
+ *
6882
+ * Producers store the last `trackingVersion` they've seen from `Consumer`s which have read them.
6883
+ * This allows a producer to identify whether its record of the dependency is current or stale, by
6884
+ * comparing the consumer's `trackingVersion` to the version at which the dependency was
6885
+ * last observed.
6886
+ */
6887
+ declare abstract class ReactiveNode {
6888
+ private readonly id;
6889
+ /**
6890
+ * A cached weak reference to this node, which will be used in `ReactiveEdge`s.
6891
+ */
6892
+ private readonly ref;
6893
+ /**
6894
+ * Edges to producers on which this node depends (in its consumer capacity).
6895
+ */
6896
+ private readonly producers;
6897
+ /**
6898
+ * Edges to consumers on which this node depends (in its producer capacity).
6899
+ */
6900
+ private readonly consumers;
6901
+ /**
6902
+ * Monotonically increasing counter representing a version of this `Consumer`'s
6903
+ * dependencies.
6904
+ */
6905
+ protected trackingVersion: number;
6906
+ /**
6907
+ * Monotonically increasing counter which increases when the value of this `Producer`
6908
+ * semantically changes.
6909
+ */
6910
+ protected valueVersion: number;
6911
+ /**
6912
+ * Called for consumers whenever one of their dependencies notifies that it might have a new
6913
+ * value.
6914
+ */
6915
+ protected abstract onConsumerDependencyMayHaveChanged(): void;
6916
+ /**
6917
+ * Called for producers when a dependent consumer is checking if the producer's value has actually
6918
+ * changed.
6919
+ */
6920
+ protected abstract onProducerUpdateValueVersion(): void;
6921
+ /**
6922
+ * Polls dependencies of a consumer to determine if they have actually changed.
6923
+ *
6924
+ * If this returns `false`, then even though the consumer may have previously been notified of a
6925
+ * change, the values of its dependencies have not actually changed and the consumer should not
6926
+ * rerun any reactions.
6927
+ */
6928
+ protected consumerPollProducersForChange(): boolean;
6929
+ /**
6930
+ * Notify all consumers of this producer that its value may have changed.
6931
+ */
6932
+ protected producerMayHaveChanged(): void;
6933
+ /**
6934
+ * Mark that this producer node has been accessed in the current reactive context.
6935
+ */
6936
+ protected producerAccessed(): void;
6937
+ /**
6938
+ * Whether this consumer currently has any producers registered.
6939
+ */
6940
+ protected get hasProducers(): boolean;
6941
+ /**
6942
+ * Checks if a `Producer` has a current value which is different than the value
6943
+ * last seen at a specific version by a `Consumer` which recorded a dependency on
6944
+ * this `Producer`.
6945
+ */
6946
+ private producerPollStatus;
6947
+ }
6948
+
6809
6949
  /**
6810
6950
  * Creates an object that allows to retrieve component metadata.
6811
6951
  *
@@ -7838,28 +7978,6 @@ declare interface SerializedView {
7838
7978
  [DISCONNECTED_NODES]?: number[];
7839
7979
  }
7840
7980
 
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
7981
  /**
7864
7982
  * Set the {@link GetTestability} implementation used by the Angular testing framework.
7865
7983
  * @publicApi
@@ -7883,8 +8001,8 @@ declare const SIGNAL: unique symbol;
7883
8001
  *
7884
8002
  * @developerPreview
7885
8003
  */
7886
- export declare type Signal<T> = (() => T) & {
7887
- [SIGNAL]: true;
8004
+ export declare type Signal<T> = (() => DeepReadonly<T>) & {
8005
+ [SIGNAL]: unknown;
7888
8006
  };
7889
8007
 
7890
8008
  /**
@@ -7892,7 +8010,7 @@ export declare type Signal<T> = (() => T) & {
7892
8010
  *
7893
8011
  * @developerPreview
7894
8012
  */
7895
- export declare function signal<T>(initialValue: T, equal?: ValueEqualityFn<T>): SettableSignal<T>;
8013
+ export declare function signal<T>(initialValue: T, options?: CreateSignalOptions<T>): WritableSignal<T>;
7896
8014
 
7897
8015
 
7898
8016
  /**
@@ -7973,6 +8091,25 @@ export declare interface SkipSelfDecorator {
7973
8091
  new (): SkipSelf;
7974
8092
  }
7975
8093
 
8094
+ /**
8095
+ * A type-safe key to use with `TransferState`.
8096
+ *
8097
+ * Example:
8098
+ *
8099
+ * ```
8100
+ * const COUNTER_KEY = makeStateKey<number>('counter');
8101
+ * let value = 10;
8102
+ *
8103
+ * transferState.set(COUNTER_KEY, value);
8104
+ * ```
8105
+ *
8106
+ * @publicApi
8107
+ */
8108
+ export declare type StateKey<T> = string & {
8109
+ __not_a_string: never;
8110
+ __value_type?: T;
8111
+ };
8112
+
7976
8113
  /**
7977
8114
  * Configures the `Injector` to return an instance of `useClass` for a token.
7978
8115
  * @see ["Dependency Injection Guide"](guide/dependency-injection).
@@ -9071,6 +9208,55 @@ export declare interface TrackByFunction<T> {
9071
9208
  <U extends T>(index: number, item: T & U): any;
9072
9209
  }
9073
9210
 
9211
+ /**
9212
+ * A key value store that is transferred from the application on the server side to the application
9213
+ * on the client side.
9214
+ *
9215
+ * The `TransferState` is available as an injectable token.
9216
+ * On the client, just inject this token using DI and use it, it will be lazily initialized.
9217
+ * On the server it's already included if `renderApplication` function is used. Otherwise, import
9218
+ * the `ServerTransferStateModule` module to make the `TransferState` available.
9219
+ *
9220
+ * The values in the store are serialized/deserialized using JSON.stringify/JSON.parse. So only
9221
+ * boolean, number, string, null and non-class objects will be serialized and deserialized in a
9222
+ * non-lossy manner.
9223
+ *
9224
+ * @publicApi
9225
+ */
9226
+ export declare class TransferState {
9227
+ /** @nocollapse */
9228
+ static ɵprov: unknown;
9229
+ private onSerializeCallbacks;
9230
+ /**
9231
+ * Get the value corresponding to a key. Return `defaultValue` if key is not found.
9232
+ */
9233
+ get<T>(key: StateKey<T>, defaultValue: T): T;
9234
+ /**
9235
+ * Set the value corresponding to a key.
9236
+ */
9237
+ set<T>(key: StateKey<T>, value: T): void;
9238
+ /**
9239
+ * Remove a key from the store.
9240
+ */
9241
+ remove<T>(key: StateKey<T>): void;
9242
+ /**
9243
+ * Test whether a key exists in the store.
9244
+ */
9245
+ hasKey<T>(key: StateKey<T>): boolean;
9246
+ /**
9247
+ * Indicates whether the state is empty.
9248
+ */
9249
+ get isEmpty(): boolean;
9250
+ /**
9251
+ * Register a callback to provide the value for a key when `toJson` is called.
9252
+ */
9253
+ onSerialize<T>(key: StateKey<T>, callback: () => T): void;
9254
+ /**
9255
+ * Serialize the current state of the store to JSON.
9256
+ */
9257
+ toJson(): string;
9258
+ }
9259
+
9074
9260
  /**
9075
9261
  * Use this token at bootstrap to provide the content of your translation file (`xtb`,
9076
9262
  * `xlf` or `xlf2`) when you want to translate your application in another language.
@@ -10104,6 +10290,28 @@ declare interface WeakRefCtor {
10104
10290
  new <T extends object>(value: T): WeakRef<T>;
10105
10291
  }
10106
10292
 
10293
+ /**
10294
+ * A `Signal` with a value that can be mutated via a setter interface.
10295
+ *
10296
+ * @developerPreview
10297
+ */
10298
+ export declare interface WritableSignal<T> extends Signal<T> {
10299
+ /**
10300
+ * Directly set the signal to a new value, and notify any dependents.
10301
+ */
10302
+ set(value: T): void;
10303
+ /**
10304
+ * Update the value of the signal based on its current value, and
10305
+ * notify any dependents.
10306
+ */
10307
+ update(updateFn: (value: T) => T): void;
10308
+ /**
10309
+ * Update the current value by mutating it in-place, and
10310
+ * notify any dependents.
10311
+ */
10312
+ mutate(mutatorFn: (value: T) => void): void;
10313
+ }
10314
+
10107
10315
  /**
10108
10316
  * Sanitizes the given unsafe, untrusted HTML fragment, and returns HTML text that is safe to add to
10109
10317
  * the DOM in a browser environment.
@@ -10828,6 +11036,31 @@ export declare function ɵgetUnknownPropertyStrictMode(): boolean;
10828
11036
 
10829
11037
  export declare const ɵglobal: any;
10830
11038
 
11039
+ /**
11040
+ * *Internal* service that keeps track of pending tasks happening in the system
11041
+ * during the initial rendering. No tasks are tracked after an initial
11042
+ * rendering.
11043
+ *
11044
+ * This information is needed to make sure that the serialization on the server
11045
+ * is delayed until all tasks in the queue (such as an initial navigation or a
11046
+ * pending HTTP request) are completed.
11047
+ */
11048
+ export declare class ɵInitialRenderPendingTasks implements OnDestroy {
11049
+ private taskId;
11050
+ private collection;
11051
+ private ngZone;
11052
+ private resolve;
11053
+ private promise;
11054
+ get whenAllTasksComplete(): Promise<void>;
11055
+ completed: boolean;
11056
+ constructor();
11057
+ add(): number;
11058
+ remove(taskId: number): void;
11059
+ ngOnDestroy(): void;
11060
+ static ɵfac: i0.ɵɵFactoryDeclaration<ɵInitialRenderPendingTasks, never>;
11061
+ static ɵprov: i0.ɵɵInjectableDeclaration<ɵInitialRenderPendingTasks>;
11062
+ }
11063
+
10831
11064
  /** Returns a ChangeDetectorRef (a.k.a. a ViewRef) */
10832
11065
  export declare function ɵinjectChangeDetectorRef(flags: InjectFlags): ChangeDetectorRef;
10833
11066
 
@@ -10997,22 +11230,6 @@ export declare function ɵmakeDecorator<T>(name: string, props?: (...args: any[]
10997
11230
  (...args: any[]): (cls: any) => any;
10998
11231
  };
10999
11232
 
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
11233
 
11017
11234
  export declare const ɵNG_COMP_DEF: string;
11018
11235
 
@@ -11371,6 +11588,7 @@ export declare class ɵRender3ComponentRef<T> extends ComponentRef<T> {
11371
11588
  hostView: ɵViewRef<T>;
11372
11589
  changeDetectorRef: ChangeDetectorRef;
11373
11590
  componentType: Type<T>;
11591
+ private previousInputValues;
11374
11592
  constructor(componentType: Type<T>, instance: T, location: ElementRef, _rootLView: LView, _tNode: TElementNode | TContainerNode | TElementContainerNode);
11375
11593
  setInput(name: string, value: unknown): void;
11376
11594
  get injector(): Injector;
@@ -11521,9 +11739,6 @@ export declare interface ɵSafeValue {
11521
11739
  */
11522
11740
  export declare function ɵsetAllowDuplicateNgModuleIdsForTest(allowDuplicates: boolean): void;
11523
11741
 
11524
- /**
11525
- * Use an alternate implementation of `WeakRef` if a platform implementation isn't available.
11526
- */
11527
11742
  export declare function ɵsetAlternateWeakRefImpl(impl: WeakRefCtor): void;
11528
11743
 
11529
11744
  /**
@@ -11575,25 +11790,6 @@ export declare function ɵsetUnknownElementStrictMode(shouldThrow: boolean): voi
11575
11790
  */
11576
11791
  export declare function ɵsetUnknownPropertyStrictMode(shouldThrow: boolean): void;
11577
11792
 
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
11793
  /** Store a value in the `data` at a given `index`. */
11598
11794
  export declare function ɵstore<T>(tView: TView, lView: LView, index: number, value: T): void;
11599
11795
 
@@ -11616,55 +11812,6 @@ export declare const ɵTESTABILITY: InjectionToken<Testability>;
11616
11812
  */
11617
11813
  export declare const ɵTESTABILITY_GETTER: InjectionToken<GetTestability>;
11618
11814
 
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
11815
  /**
11669
11816
  * Compute the pair of transitive scopes (compilation scope and exported scope) for a given type
11670
11817
  * (either a NgModule or a standalone component / directive / pipe).