@angular/core 7.0.0-rc.1 → 7.0.3

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 (337) hide show
  1. package/bundles/core-testing.umd.js +36 -33
  2. package/bundles/core-testing.umd.js.map +1 -1
  3. package/bundles/core-testing.umd.min.js +3 -3
  4. package/bundles/core-testing.umd.min.js.map +1 -1
  5. package/bundles/core.umd.js +1856 -1463
  6. package/bundles/core.umd.js.map +1 -1
  7. package/bundles/core.umd.min.js +155 -94
  8. package/bundles/core.umd.min.js.map +1 -1
  9. package/core.d.ts +7 -6
  10. package/core.metadata.json +1 -1
  11. package/esm2015/core.externs.js +0 -3
  12. package/esm2015/core.js +6 -6
  13. package/esm2015/index.js +2 -2
  14. package/esm2015/public_api.js +2 -2
  15. package/esm2015/src/application_init.js +5 -1
  16. package/esm2015/src/application_module.js +2 -2
  17. package/esm2015/src/application_ref.js +11 -9
  18. package/esm2015/src/application_tokens.js +7 -7
  19. package/esm2015/src/change_detection/change_detection_util.js +3 -1
  20. package/esm2015/src/change_detection/change_detector_ref.js +2 -1
  21. package/esm2015/src/change_detection/constants.js +1 -1
  22. package/esm2015/src/change_detection/differs/default_iterable_differ.js +2 -1
  23. package/esm2015/src/change_detection/differs/iterable_differs.js +8 -6
  24. package/esm2015/src/change_detection/differs/keyvalue_differs.js +6 -5
  25. package/esm2015/src/change_detection/pipe_transform.js +2 -2
  26. package/esm2015/src/core.js +2 -2
  27. package/esm2015/src/core_render3_private_export.js +5 -4
  28. package/esm2015/src/debug/debug_node.js +6 -6
  29. package/esm2015/src/di/defs.js +5 -5
  30. package/esm2015/src/di/forward_ref.js +4 -4
  31. package/esm2015/src/di/injectable.js +5 -2
  32. package/esm2015/src/di/injection_token.js +3 -1
  33. package/esm2015/src/di/injector.js +3 -3
  34. package/esm2015/src/di/metadata.js +16 -1
  35. package/esm2015/src/di/provider.js +16 -6
  36. package/esm2015/src/di/r3_injector.js +2 -2
  37. package/esm2015/src/di/reflective_injector.js +2 -2
  38. package/esm2015/src/di/reflective_key.js +3 -1
  39. package/esm2015/src/di/reflective_provider.js +3 -3
  40. package/esm2015/src/error_handler.js +3 -1
  41. package/esm2015/src/event_emitter.js +2 -1
  42. package/esm2015/src/i18n/tokens.js +4 -4
  43. package/esm2015/src/is_dev_mode.js +4 -2
  44. package/esm2015/src/ivy_switch/runtime/index.js +2 -2
  45. package/esm2015/src/ivy_switch/runtime/ivy_switch_on.js +4 -2
  46. package/esm2015/src/ivy_switch/runtime/jit.js +2 -2
  47. package/esm2015/src/ivy_switch/runtime/legacy.js +7 -1
  48. package/esm2015/src/ivy_switch/runtime/local.js +2 -2
  49. package/esm2015/src/linker/compiler.js +5 -4
  50. package/esm2015/src/linker/component_factory.js +4 -2
  51. package/esm2015/src/linker/component_factory_resolver.js +2 -1
  52. package/esm2015/src/linker/element_ref.js +2 -2
  53. package/esm2015/src/linker/ng_module_factory.js +3 -3
  54. package/esm2015/src/linker/ng_module_factory_loader.js +4 -3
  55. package/esm2015/src/linker/query_list.js +3 -1
  56. package/esm2015/src/linker/system_js_ng_module_factory_loader.js +3 -3
  57. package/esm2015/src/linker/template_ref.js +2 -1
  58. package/esm2015/src/linker/view_container_ref.js +2 -1
  59. package/esm2015/src/linker/view_ref.js +4 -2
  60. package/esm2015/src/metadata/di.js +13 -5
  61. package/esm2015/src/metadata/directives.js +20 -7
  62. package/esm2015/src/metadata/lifecycle_hooks.js +10 -5
  63. package/esm2015/src/metadata/ng_module.js +8 -6
  64. package/esm2015/src/metadata/view.js +1 -1
  65. package/esm2015/src/platform_core_providers.js +2 -2
  66. package/esm2015/src/profile/profile.js +5 -5
  67. package/esm2015/src/profile/wtf_impl.js +2 -2
  68. package/esm2015/src/r3_symbols.js +1 -1
  69. package/esm2015/src/reflection/reflection_capabilities.js +3 -3
  70. package/esm2015/src/render/api.js +20 -7
  71. package/esm2015/src/render3/component.js +52 -18
  72. package/esm2015/src/render3/component_ref.js +15 -15
  73. package/esm2015/src/render3/context_discovery.js +35 -126
  74. package/esm2015/src/render3/debug.js +33 -56
  75. package/esm2015/src/render3/definition.js +42 -37
  76. package/esm2015/src/render3/di.js +4 -28
  77. package/esm2015/src/render3/discovery_utils.js +10 -7
  78. package/esm2015/src/render3/i18n.js +60 -34
  79. package/esm2015/src/render3/index.js +3 -3
  80. package/esm2015/src/render3/instructions.js +162 -275
  81. package/esm2015/src/render3/interfaces/container.js +7 -5
  82. package/esm2015/src/render3/interfaces/context.js +60 -0
  83. package/esm2015/src/render3/interfaces/definition.js +7 -1
  84. package/esm2015/src/render3/interfaces/i18n.js +338 -0
  85. package/esm2015/src/render3/interfaces/node.js +12 -126
  86. package/esm2015/src/render3/interfaces/player.js +73 -1
  87. package/esm2015/src/render3/interfaces/styling.js +18 -22
  88. package/esm2015/src/render3/interfaces/view.js +19 -26
  89. package/esm2015/src/render3/jit/compiler_facade.js +22 -0
  90. package/esm2015/src/render3/jit/compiler_facade_interface.js +229 -0
  91. package/esm2015/src/render3/jit/directive.js +57 -93
  92. package/esm2015/src/render3/jit/environment.js +7 -3
  93. package/esm2015/src/render3/jit/injectable.js +21 -46
  94. package/esm2015/src/render3/jit/module.js +16 -43
  95. package/esm2015/src/render3/jit/pipe.js +6 -12
  96. package/esm2015/src/render3/jit/util.js +14 -17
  97. package/esm2015/src/render3/node_assert.js +1 -1
  98. package/esm2015/src/render3/node_manipulation.js +99 -109
  99. package/esm2015/src/render3/players.js +67 -0
  100. package/esm2015/src/render3/styling/class_and_style_bindings.js +347 -88
  101. package/esm2015/src/render3/styling/core_player_handler.js +2 -2
  102. package/esm2015/src/render3/styling/player_factory.js +48 -0
  103. package/esm2015/src/render3/styling/util.js +165 -17
  104. package/esm2015/src/render3/util.js +73 -20
  105. package/esm2015/src/render3/view_engine_compatibility.js +56 -40
  106. package/esm2015/src/sanitization/security.js +2 -2
  107. package/esm2015/src/testability/testability.js +5 -6
  108. package/esm2015/src/type.js +5 -2
  109. package/esm2015/src/util/decorators.js +2 -1
  110. package/esm2015/src/util.js +15 -1
  111. package/esm2015/src/version.js +6 -4
  112. package/esm2015/src/view/refs.js +3 -3
  113. package/esm2015/src/view/services.js +8 -6
  114. package/esm2015/src/zone/ng_zone.js +2 -2
  115. package/esm2015/testing/src/async.js +2 -2
  116. package/esm2015/testing/src/component_fixture.js +2 -2
  117. package/esm2015/testing/src/fake_async.js +7 -7
  118. package/esm2015/testing/src/fake_async_fallback.js +7 -7
  119. package/esm2015/testing/src/metadata_override.js +1 -1
  120. package/esm2015/testing/src/r3_test_bed.js +8 -6
  121. package/esm2015/testing/src/test_bed.js +10 -8
  122. package/esm2015/testing/src/test_bed_common.js +6 -6
  123. package/esm2015/testing/src/test_compiler.js +3 -3
  124. package/esm5/core.js +6 -6
  125. package/esm5/src/application_init.js +5 -1
  126. package/esm5/src/application_module.js +2 -2
  127. package/esm5/src/application_ref.js +11 -9
  128. package/esm5/src/application_tokens.js +7 -7
  129. package/esm5/src/change_detection/change_detection_util.js +3 -1
  130. package/esm5/src/change_detection/change_detector_ref.js +2 -1
  131. package/esm5/src/change_detection/constants.js +2 -1
  132. package/esm5/src/change_detection/differs/default_iterable_differ.js +2 -1
  133. package/esm5/src/change_detection/differs/iterable_differs.js +2 -1
  134. package/esm5/src/change_detection/differs/keyvalue_differs.js +2 -1
  135. package/esm5/src/change_detection/pipe_transform.js +1 -1
  136. package/esm5/src/core_render3_private_export.js +5 -4
  137. package/esm5/src/debug/debug_node.js +5 -5
  138. package/esm5/src/di/defs.js +3 -3
  139. package/esm5/src/di/forward_ref.js +3 -3
  140. package/esm5/src/di/injectable.js +6 -5
  141. package/esm5/src/di/injection_token.js +3 -1
  142. package/esm5/src/di/injector.js +3 -3
  143. package/esm5/src/di/metadata.js +6 -1
  144. package/esm5/src/di/provider.js +1 -1
  145. package/esm5/src/di/r3_injector.js +2 -2
  146. package/esm5/src/di/reflective_injector.js +2 -2
  147. package/esm5/src/di/reflective_key.js +3 -1
  148. package/esm5/src/di/reflective_provider.js +2 -2
  149. package/esm5/src/error_handler.js +3 -1
  150. package/esm5/src/event_emitter.js +2 -1
  151. package/esm5/src/i18n/tokens.js +5 -5
  152. package/esm5/src/is_dev_mode.js +4 -2
  153. package/esm5/src/ivy_switch/runtime/ivy_switch_on.js +3 -2
  154. package/esm5/src/ivy_switch/runtime/legacy.js +4 -1
  155. package/esm5/src/linker/compiler.js +5 -4
  156. package/esm5/src/linker/component_factory.js +5 -1
  157. package/esm5/src/linker/component_factory_resolver.js +4 -1
  158. package/esm5/src/linker/element_ref.js +2 -2
  159. package/esm5/src/linker/ng_module_factory.js +3 -3
  160. package/esm5/src/linker/ng_module_factory_loader.js +4 -3
  161. package/esm5/src/linker/query_list.js +3 -1
  162. package/esm5/src/linker/system_js_ng_module_factory_loader.js +3 -3
  163. package/esm5/src/linker/template_ref.js +2 -1
  164. package/esm5/src/linker/view_container_ref.js +2 -1
  165. package/esm5/src/linker/view_ref.js +4 -2
  166. package/esm5/src/metadata/di.js +10 -3
  167. package/esm5/src/metadata/directives.js +9 -6
  168. package/esm5/src/metadata/lifecycle_hooks.js +1 -1
  169. package/esm5/src/metadata/ng_module.js +4 -3
  170. package/esm5/src/metadata/view.js +4 -1
  171. package/esm5/src/platform_core_providers.js +2 -2
  172. package/esm5/src/profile/profile.js +5 -5
  173. package/esm5/src/profile/wtf_impl.js +1 -1
  174. package/esm5/src/r3_symbols.js +1 -1
  175. package/esm5/src/reflection/reflection_capabilities.js +3 -3
  176. package/esm5/src/render/api.js +11 -5
  177. package/esm5/src/render3/component.js +45 -16
  178. package/esm5/src/render3/component_ref.js +12 -13
  179. package/esm5/src/render3/context_discovery.js +33 -65
  180. package/esm5/src/render3/debug.js +31 -50
  181. package/esm5/src/render3/definition.js +35 -31
  182. package/esm5/src/render3/di.js +4 -20
  183. package/esm5/src/render3/discovery_utils.js +12 -7
  184. package/esm5/src/render3/i18n.js +40 -30
  185. package/esm5/src/render3/index.js +3 -3
  186. package/esm5/src/render3/instructions.js +143 -230
  187. package/esm5/src/render3/interfaces/container.js +6 -5
  188. package/esm5/src/render3/interfaces/context.js +13 -0
  189. package/esm5/src/render3/interfaces/definition.js +1 -1
  190. package/esm5/src/render3/interfaces/i18n.js +25 -0
  191. package/esm5/src/render3/interfaces/node.js +1 -1
  192. package/esm5/src/render3/interfaces/player.js +1 -1
  193. package/esm5/src/render3/interfaces/styling.js +1 -8
  194. package/esm5/src/render3/interfaces/view.js +18 -17
  195. package/esm5/src/render3/jit/compiler_facade.js +21 -0
  196. package/esm5/src/render3/jit/compiler_facade_interface.js +15 -0
  197. package/esm5/src/render3/jit/directive.js +44 -79
  198. package/esm5/src/render3/jit/environment.js +7 -3
  199. package/esm5/src/render3/jit/injectable.js +26 -46
  200. package/esm5/src/render3/jit/module.js +16 -31
  201. package/esm5/src/render3/jit/pipe.js +6 -9
  202. package/esm5/src/render3/jit/util.js +12 -17
  203. package/esm5/src/render3/node_assert.js +1 -1
  204. package/esm5/src/render3/node_manipulation.js +89 -101
  205. package/esm5/src/render3/players.js +59 -0
  206. package/esm5/src/render3/styling/class_and_style_bindings.js +248 -85
  207. package/esm5/src/render3/styling/core_player_handler.js +2 -2
  208. package/esm5/src/render3/styling/player_factory.js +29 -0
  209. package/esm5/src/render3/styling/util.js +132 -14
  210. package/esm5/src/render3/util.js +54 -21
  211. package/esm5/src/render3/view_engine_compatibility.js +46 -32
  212. package/esm5/src/sanitization/security.js +3 -3
  213. package/esm5/src/testability/testability.js +4 -4
  214. package/esm5/src/type.js +2 -2
  215. package/esm5/src/util/decorators.js +1 -1
  216. package/esm5/src/util.js +13 -1
  217. package/esm5/src/version.js +6 -3
  218. package/esm5/src/view/refs.js +1 -1
  219. package/esm5/src/view/services.js +7 -10
  220. package/esm5/src/zone/ng_zone.js +2 -2
  221. package/esm5/testing/src/async.js +2 -2
  222. package/esm5/testing/src/component_fixture.js +2 -2
  223. package/esm5/testing/src/fake_async.js +7 -7
  224. package/esm5/testing/src/fake_async_fallback.js +7 -7
  225. package/esm5/testing/src/metadata_override.js +1 -1
  226. package/esm5/testing/src/r3_test_bed.js +8 -7
  227. package/esm5/testing/src/test_bed.js +10 -8
  228. package/esm5/testing/src/test_bed_common.js +4 -4
  229. package/esm5/testing/src/test_compiler.js +3 -3
  230. package/fesm2015/core.js +2486 -1951
  231. package/fesm2015/core.js.map +1 -1
  232. package/fesm2015/testing.js +36 -32
  233. package/fesm2015/testing.js.map +1 -1
  234. package/fesm5/core.js +1830 -1439
  235. package/fesm5/core.js.map +1 -1
  236. package/fesm5/testing.js +36 -33
  237. package/fesm5/testing.js.map +1 -1
  238. package/package.json +1 -2
  239. package/src/application_init.d.ts +4 -0
  240. package/src/application_module.d.ts +1 -1
  241. package/src/application_ref.d.ts +10 -8
  242. package/src/application_tokens.d.ts +6 -6
  243. package/src/change_detection/change_detection_util.d.ts +2 -0
  244. package/src/change_detection/change_detector_ref.d.ts +1 -0
  245. package/src/change_detection/constants.d.ts +1 -0
  246. package/src/change_detection/differs/default_iterable_differ.d.ts +1 -0
  247. package/src/change_detection/differs/iterable_differs.d.ts +8 -6
  248. package/src/change_detection/differs/keyvalue_differs.d.ts +5 -4
  249. package/src/change_detection/pipe_transform.d.ts +1 -1
  250. package/src/core_render3_private_export.d.ts +7 -5
  251. package/src/debug/debug_node.d.ts +5 -5
  252. package/src/di/defs.d.ts +4 -4
  253. package/src/di/forward_ref.d.ts +3 -3
  254. package/src/di/injectable.d.ts +10 -7
  255. package/src/di/injection_token.d.ts +2 -0
  256. package/src/di/injector.d.ts +5 -3
  257. package/src/di/metadata.d.ts +24 -1
  258. package/src/di/provider.d.ts +19 -5
  259. package/src/di/r3_injector.d.ts +1 -1
  260. package/src/di/reflective_injector.d.ts +1 -1
  261. package/src/di/reflective_key.d.ts +2 -0
  262. package/src/di/reflective_provider.d.ts +2 -2
  263. package/src/error_handler.d.ts +2 -0
  264. package/src/event_emitter.d.ts +1 -0
  265. package/src/i18n/tokens.d.ts +4 -4
  266. package/src/is_dev_mode.d.ts +3 -1
  267. package/src/ivy_switch/runtime/ivy_switch_on.d.ts +2 -1
  268. package/src/ivy_switch/runtime/legacy.d.ts +3 -0
  269. package/src/linker/compiler.d.ts +5 -4
  270. package/src/linker/component_factory.d.ts +5 -1
  271. package/src/linker/component_factory_resolver.d.ts +3 -0
  272. package/src/linker/element_ref.d.ts +1 -1
  273. package/src/linker/ng_module_factory.d.ts +2 -2
  274. package/src/linker/ng_module_factory_loader.d.ts +3 -2
  275. package/src/linker/query_list.d.ts +2 -0
  276. package/src/linker/system_js_ng_module_factory_loader.d.ts +2 -2
  277. package/src/linker/template_ref.d.ts +1 -0
  278. package/src/linker/view_container_ref.d.ts +1 -0
  279. package/src/linker/view_ref.d.ts +3 -1
  280. package/src/metadata/di.d.ts +13 -5
  281. package/src/metadata/directives.d.ts +19 -6
  282. package/src/metadata/lifecycle_hooks.d.ts +9 -4
  283. package/src/metadata/ng_module.d.ts +7 -7
  284. package/src/metadata/view.d.ts +3 -0
  285. package/src/platform_core_providers.d.ts +1 -1
  286. package/src/profile/profile.d.ts +4 -4
  287. package/src/profile/wtf_impl.d.ts +1 -1
  288. package/src/r3_symbols.d.ts +1 -1
  289. package/src/render/api.d.ts +10 -7
  290. package/src/render3/component.d.ts +14 -3
  291. package/src/render3/context_discovery.d.ts +6 -58
  292. package/src/render3/definition.d.ts +0 -4
  293. package/src/render3/di.d.ts +1 -3
  294. package/src/render3/discovery_utils.d.ts +7 -1
  295. package/src/render3/i18n.d.ts +4 -0
  296. package/src/render3/index.d.ts +2 -2
  297. package/src/render3/instructions.d.ts +43 -50
  298. package/src/render3/interfaces/container.d.ts +36 -22
  299. package/src/render3/interfaces/context.d.ts +52 -0
  300. package/src/render3/interfaces/definition.d.ts +8 -3
  301. package/src/render3/interfaces/i18n.d.ts +326 -0
  302. package/src/render3/interfaces/node.d.ts +12 -89
  303. package/src/render3/interfaces/player.d.ts +58 -4
  304. package/src/render3/interfaces/styling.d.ts +17 -15
  305. package/src/render3/interfaces/view.d.ts +28 -28
  306. package/src/render3/jit/compiler_facade.d.ts +3 -0
  307. package/src/render3/jit/compiler_facade_interface.d.ts +131 -0
  308. package/src/render3/jit/directive.d.ts +3 -0
  309. package/src/render3/jit/util.d.ts +3 -3
  310. package/src/render3/node_manipulation.d.ts +21 -22
  311. package/src/render3/players.d.ts +32 -0
  312. package/src/render3/styling/class_and_style_bindings.d.ts +31 -24
  313. package/src/render3/styling/player_factory.d.ts +31 -0
  314. package/src/render3/styling/util.d.ts +31 -9
  315. package/src/render3/util.d.ts +32 -15
  316. package/src/render3/view_engine_compatibility.d.ts +3 -0
  317. package/src/sanitization/security.d.ts +2 -2
  318. package/src/testability/testability.d.ts +5 -6
  319. package/src/type.d.ts +6 -1
  320. package/src/util/decorators.d.ts +1 -0
  321. package/src/util.d.ts +10 -0
  322. package/src/version.d.ts +4 -1
  323. package/src/view/services.d.ts +2 -2
  324. package/src/zone/ng_zone.d.ts +1 -1
  325. package/testing/src/async.d.ts +1 -1
  326. package/testing/src/component_fixture.d.ts +1 -1
  327. package/testing/src/fake_async.d.ts +6 -6
  328. package/testing/src/fake_async_fallback.d.ts +6 -6
  329. package/testing/src/metadata_override.d.ts +1 -1
  330. package/testing/src/r3_test_bed.d.ts +4 -4
  331. package/testing/src/test_bed.d.ts +12 -10
  332. package/testing/src/test_bed_common.d.ts +6 -6
  333. package/testing/src/test_compiler.d.ts +2 -2
  334. package/testing/testing.metadata.json +1 -1
  335. package/esm2015/src/render3/player.js +0 -51
  336. package/esm5/src/render3/player.js +0 -39
  337. package/src/render3/player.d.ts +0 -3
@@ -12,6 +12,7 @@ import { SimpleChange } from '../change_detection/change_detection_util';
12
12
  *
13
13
  * @see `OnChanges`
14
14
  *
15
+ * @publicApi
15
16
  */
16
17
  export interface SimpleChanges {
17
18
  [propName: string]: SimpleChange;
@@ -31,6 +32,7 @@ export interface SimpleChanges {
31
32
  *
32
33
  * {@example core/ts/metadata/lifecycle_hooks_spec.ts region='OnChanges'}
33
34
  *
35
+ * @publicApi
34
36
  */
35
37
  export interface OnChanges {
36
38
  /**
@@ -57,7 +59,7 @@ export interface OnChanges {
57
59
  *
58
60
  * {@example core/ts/metadata/lifecycle_hooks_spec.ts region='OnInit'}
59
61
  *
60
- *
62
+ * @publicApi
61
63
  */
62
64
  export interface OnInit {
63
65
  /**
@@ -91,6 +93,7 @@ export interface OnInit {
91
93
  *
92
94
  * {@example core/ts/metadata/lifecycle_hooks_spec.ts region='DoCheck'}
93
95
  *
96
+ * @publicApi
94
97
  */
95
98
  export interface DoCheck {
96
99
  /**
@@ -114,6 +117,7 @@ export interface DoCheck {
114
117
  *
115
118
  * {@example core/ts/metadata/lifecycle_hooks_spec.ts region='OnDestroy'}
116
119
  *
120
+ * @publicApi
117
121
  */
118
122
  export interface OnDestroy {
119
123
  /**
@@ -138,7 +142,7 @@ export interface OnDestroy {
138
142
  *
139
143
  * {@example core/ts/metadata/lifecycle_hooks_spec.ts region='AfterContentInit'}
140
144
  *
141
- *
145
+ * @publicApi
142
146
  */
143
147
  export interface AfterContentInit {
144
148
  /**
@@ -163,7 +167,7 @@ export interface AfterContentInit {
163
167
  *
164
168
  * {@example core/ts/metadata/lifecycle_hooks_spec.ts region='AfterContentChecked'}
165
169
  *
166
- *
170
+ * @publicApi
167
171
  */
168
172
  export interface AfterContentChecked {
169
173
  /**
@@ -189,7 +193,7 @@ export interface AfterContentChecked {
189
193
  *
190
194
  * {@example core/ts/metadata/lifecycle_hooks_spec.ts region='AfterViewInit'}
191
195
  *
192
- *
196
+ * @publicApi
193
197
  */
194
198
  export interface AfterViewInit {
195
199
  /**
@@ -214,6 +218,7 @@ export interface AfterViewInit {
214
218
  *
215
219
  * {@example core/ts/metadata/lifecycle_hooks_spec.ts region='AfterViewChecked'}
216
220
  *
221
+ * @publicApi
217
222
  */
218
223
  export interface AfterViewChecked {
219
224
  /**
@@ -65,6 +65,8 @@ export interface NgModuleDef<T> {
65
65
  *
66
66
  * @param T the module type. In Ivy applications, this must be explicitly
67
67
  * provided.
68
+ *
69
+ * @publicApi
68
70
  */
69
71
  export interface ModuleWithProviders<T = any /** TODO(alxhub): remove default when callers pass explicit type param */> {
70
72
  ngModule: Type<T>;
@@ -77,7 +79,7 @@ export interface ModuleWithProviders<T = any /** TODO(alxhub): remove default wh
77
79
  *
78
80
  * @param name The name of a defined schema.
79
81
  *
80
- * @experimental
82
+ * @publicApi
81
83
  */
82
84
  export interface SchemaMetadata {
83
85
  name: string;
@@ -88,19 +90,17 @@ export interface SchemaMetadata {
88
90
  * - Element properties named with dash case (`-`).
89
91
  * Dash case is the naming convention for custom elements.
90
92
  *
91
- *
93
+ * @publicApi
92
94
  */
93
95
  export declare const CUSTOM_ELEMENTS_SCHEMA: SchemaMetadata;
94
96
  /**
95
97
  * Defines a schema that allows any property on any element.
96
98
  *
97
- * @experimental
99
+ * @publicApi
98
100
  */
99
101
  export declare const NO_ERRORS_SCHEMA: SchemaMetadata;
100
102
  /**
101
103
  * Type of the NgModule decorator / constructor function.
102
- *
103
- *
104
104
  */
105
105
  export interface NgModuleDecorator {
106
106
  /**
@@ -111,8 +111,6 @@ export interface NgModuleDecorator {
111
111
  }
112
112
  /**
113
113
  * Type of the NgModule metadata.
114
- *
115
- *
116
114
  */
117
115
  export interface NgModule {
118
116
  /**
@@ -297,6 +295,7 @@ export interface NgModule {
297
295
  }
298
296
  /**
299
297
  * @Annotation
298
+ * @publicApi
300
299
  */
301
300
  export declare const NgModule: NgModuleDecorator;
302
301
  /**
@@ -317,6 +316,7 @@ export declare const NgModule: NgModuleDecorator;
317
316
  * }
318
317
  * ```
319
318
  *
319
+ * @publicApi
320
320
  */
321
321
  export interface DoBootstrap {
322
322
  ngDoBootstrap(appRef: ApplicationRef): void;
@@ -12,7 +12,10 @@
12
12
  *
13
13
  * @usageNotes
14
14
  * ### Example
15
+ *
15
16
  * {@example core/ts/metadata/encapsulation.ts region='longform'}
17
+ *
18
+ * @publicApi
16
19
  */
17
20
  export declare enum ViewEncapsulation {
18
21
  /**
@@ -10,6 +10,6 @@ import { StaticProvider } from './di';
10
10
  /**
11
11
  * This platform has to be included in any other platform
12
12
  *
13
- * @experimental
13
+ * @publicApi
14
14
  */
15
15
  export declare const platformCore: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
@@ -39,7 +39,7 @@ export declare const wtfEnabled: boolean;
39
39
  * needs to be fixed before the app should be profiled. Add try-finally only when you expect that
40
40
  * an exception is expected during normal execution while profiling.
41
41
  *
42
- * @experimental
42
+ * @publicApi
43
43
  */
44
44
  export declare const wtfCreateScope: (signature: string, flags?: any) => WtfScopeFn;
45
45
  /**
@@ -49,7 +49,7 @@ export declare const wtfCreateScope: (signature: string, flags?: any) => WtfScop
49
49
  * - `returnValue` (optional) to be passed to the WTF.
50
50
  *
51
51
  * Returns the `returnValue for easy chaining.
52
- * @experimental
52
+ * @publicApi
53
53
  */
54
54
  export declare const wtfLeave: <T>(scope: any, returnValue?: T) => T;
55
55
  /**
@@ -63,13 +63,13 @@ export declare const wtfLeave: <T>(scope: any, returnValue?: T) => T;
63
63
  * wtfEndTimeRange(s);
64
64
  * });
65
65
  * }
66
- * @experimental
66
+ * @publicApi
67
67
  */
68
68
  export declare const wtfStartTimeRange: (rangeType: string, action: string) => any;
69
69
  /**
70
70
  * Ends a async time range operation.
71
71
  * [range] is the return value from [wtfStartTimeRange] Async ranges only work if WTF has been
72
72
  * enabled.
73
- * @experimental
73
+ * @publicApi
74
74
  */
75
75
  export declare const wtfEndTimeRange: (range: any) => void;
@@ -8,7 +8,7 @@
8
8
  /**
9
9
  * A scope function for the Web Tracing Framework (WTF).
10
10
  *
11
- * @experimental
11
+ * @publicApi
12
12
  */
13
13
  export interface WtfScopeFn {
14
14
  (arg0?: any, arg1?: any): any;
@@ -7,7 +7,7 @@
7
7
  */
8
8
  export { InjectableDef as ɵInjectableDef, InjectorDef as ɵInjectorDef, defineInjectable, defineInjector } from './di/defs';
9
9
  export { inject } from './di/injector';
10
- export { NgModuleDef as ɵNgModuleDef } from './metadata/ng_module';
10
+ export { NgModuleDef as ɵNgModuleDef, NgModuleDefWithMeta as ɵNgModuleDefWithMeta } from './metadata/ng_module';
11
11
  export { defineNgModule as ɵdefineNgModule } from './render3/definition';
12
12
  export { NgModuleFactory as ɵNgModuleFactory } from './render3/ng_module_ref';
13
13
  /**
@@ -10,6 +10,7 @@ import { Injector } from '../di/injector';
10
10
  import { ViewEncapsulation } from '../metadata/view';
11
11
  /**
12
12
  * @deprecated Use `RendererType2` (and `Renderer2`) instead.
13
+ * @publicApi
13
14
  */
14
15
  export declare class RenderComponentType {
15
16
  id: string;
@@ -21,7 +22,7 @@ export declare class RenderComponentType {
21
22
  constructor(id: string, templateUrl: string, slotCount: number, encapsulation: ViewEncapsulation, styles: Array<string | any[]>, animations: any);
22
23
  }
23
24
  /**
24
- * @deprecated Debug info is handeled internally in the view engine now.
25
+ * @deprecated Debug info is handled internally in the view engine now.
25
26
  */
26
27
  export declare abstract class RenderDebugInfo {
27
28
  abstract readonly injector: Injector;
@@ -45,6 +46,7 @@ export interface DirectRenderer {
45
46
  }
46
47
  /**
47
48
  * @deprecated Use the `Renderer2` instead.
49
+ * @publicApi
48
50
  */
49
51
  export declare abstract class Renderer {
50
52
  abstract selectRootElement(selectorOrNode: string | any, debugInfo?: RenderDebugInfo): any;
@@ -59,13 +61,13 @@ export declare abstract class Renderer {
59
61
  abstract listen(renderElement: any, name: string, callback: Function): Function;
60
62
  abstract listenGlobal(target: string, name: string, callback: Function): Function;
61
63
  abstract setElementProperty(renderElement: any, propertyName: string, propertyValue: any): void;
62
- abstract setElementAttribute(renderElement: any, attributeName: string, attributeValue: string): void;
64
+ abstract setElementAttribute(renderElement: any, attributeName: string, attributeValue?: string): void;
63
65
  /**
64
66
  * Used only in debug mode to serialize property changes to dom nodes as attributes.
65
67
  */
66
68
  abstract setBindingDebugInfo(renderElement: any, propertyName: string, propertyValue: string): void;
67
69
  abstract setElementClass(renderElement: any, className: string, isAdd: boolean): void;
68
- abstract setElementStyle(renderElement: any, styleName: string, styleValue: string): void;
70
+ abstract setElementStyle(renderElement: any, styleName: string, styleValue?: string): void;
69
71
  abstract invokeElementMethod(renderElement: any, methodName: string, args?: any[]): void;
70
72
  abstract setText(renderNode: any, text: string): void;
71
73
  abstract animate(element: any, startingStyles: any, keyframes: any[], duration: number, delay: number, easing: string, previousPlayers?: any[]): any;
@@ -84,6 +86,7 @@ export declare const Renderer2Interceptor: InjectionToken<Renderer2[]>;
84
86
  * The default Renderer implementation is `DomRenderer`. Also available is `WebWorkerRenderer`.
85
87
  *
86
88
  * @deprecated Use `RendererFactory2` instead.
89
+ * @publicApi
87
90
  */
88
91
  export declare abstract class RootRenderer {
89
92
  abstract renderComponent(componentType: RenderComponentType): Renderer;
@@ -91,7 +94,7 @@ export declare abstract class RootRenderer {
91
94
  /**
92
95
  * Used by `RendererFactory2` to associate custom rendering data and styles
93
96
  * with a rendering implementation.
94
- * @experimental
97
+ * @publicApi
95
98
  */
96
99
  export interface RendererType2 {
97
100
  /**
@@ -125,7 +128,7 @@ export interface RendererType2 {
125
128
  /**
126
129
  * Creates and initializes a custom renderer that implements the `Renderer2` base class.
127
130
  *
128
- * @experimental
131
+ * @publicApi
129
132
  */
130
133
  export declare abstract class RendererFactory2 {
131
134
  /**
@@ -151,7 +154,7 @@ export declare abstract class RendererFactory2 {
151
154
  }
152
155
  /**
153
156
  * Flags for renderer-specific style modifiers.
154
- * @experimental
157
+ * @publicApi
155
158
  */
156
159
  export declare enum RendererStyleFlags2 {
157
160
  /**
@@ -176,7 +179,7 @@ export declare enum RendererStyleFlags2 {
176
179
  * not statically known, use the `setProperty()` or
177
180
  * `setAttribute()` method.
178
181
  *
179
- * @experimental
182
+ * @publicApi
180
183
  */
181
184
  export declare abstract class Renderer2 {
182
185
  /**
@@ -9,9 +9,8 @@ import { Type } from '../core';
9
9
  import { Injector } from '../di/injector';
10
10
  import { Sanitizer } from '../sanitization/security';
11
11
  import { ComponentDef, ComponentType } from './interfaces/definition';
12
- import { LElementNode } from './interfaces/node';
13
12
  import { PlayerHandler } from './interfaces/player';
14
- import { RElement, RendererFactory3 } from './interfaces/renderer';
13
+ import { RElement, RNode, Renderer3, RendererFactory3 } from './interfaces/renderer';
15
14
  import { LViewData, RootContext } from './interfaces/view';
16
15
  /** Options that control how the component should be bootstrapped. */
17
16
  export interface CreateComponentOptions {
@@ -72,11 +71,23 @@ export declare const NULL_INJECTOR: Injector;
72
71
  * @param options Optional parameters which control bootstrapping
73
72
  */
74
73
  export declare function renderComponent<T>(componentType: ComponentType<T> | Type<T>, opts?: CreateComponentOptions): T;
74
+ /**
75
+ * Creates the root component view and the root component node.
76
+ *
77
+ * @param rNode Render host element.
78
+ * @param def ComponentDef
79
+ * @param rootView The parent view where the host node is stored
80
+ * @param renderer The current renderer
81
+ * @param sanitizer The sanitizer, if provided
82
+ *
83
+ * @returns Component view created
84
+ */
85
+ export declare function createRootComponentView(rNode: RElement | null, def: ComponentDef<any>, rootView: LViewData, renderer: Renderer3, sanitizer?: Sanitizer | null): LViewData;
75
86
  /**
76
87
  * Creates a root component and sets it up with features and host bindings. Shared by
77
88
  * renderComponent() and ViewContainerRef.createComponent().
78
89
  */
79
- export declare function createRootComponent<T>(elementNode: LElementNode, componentDef: ComponentDef<T>, rootView: LViewData, rootContext: RootContext, hostFeatures: HostFeature[] | null): any;
90
+ export declare function createRootComponent<T>(hostRNode: RNode | null, componentView: LViewData, componentDef: ComponentDef<T>, rootView: LViewData, rootContext: RootContext, hostFeatures: HostFeature[] | null): any;
80
91
  export declare function createRootContext(scheduler: (workFn: () => void) => void, playerHandler?: PlayerHandler | null): RootContext;
81
92
  /**
82
93
  * Used to enable lifecycle hooks on the root component.
@@ -6,52 +6,8 @@
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
8
  import './ng_dev_mode';
9
- import { LElementNode } from './interfaces/node';
10
- import { RElement } from './interfaces/renderer';
9
+ import { LContext } from './interfaces/context';
11
10
  import { LViewData } from './interfaces/view';
12
- /**
13
- * This property will be monkey-patched on elements, components and directives
14
- */
15
- export declare const MONKEY_PATCH_KEY_NAME = "__ngContext__";
16
- /**
17
- * The internal view context which is specific to a given DOM element, directive or
18
- * component instance. Each value in here (besides the LViewData and element node details)
19
- * can be present, null or undefined. If undefined then it implies the value has not been
20
- * looked up yet, otherwise, if null, then a lookup was executed and nothing was found.
21
- *
22
- * Each value will get filled when the respective value is examined within the getContext
23
- * function. The component, element and each directive instance will share the same instance
24
- * of the context.
25
- */
26
- export interface LContext {
27
- /**
28
- * The component's parent view data.
29
- */
30
- lViewData: LViewData;
31
- /**
32
- * The index instance of the node.
33
- */
34
- nodeIndex: number;
35
- /**
36
- * The instance of the DOM node that is attached to the lNode.
37
- */
38
- native: RElement;
39
- /**
40
- * The instance of the Component node.
41
- */
42
- component: {} | null | undefined;
43
- /**
44
- * The list of active directives that exist on this element.
45
- */
46
- directives: any[] | null | undefined;
47
- /**
48
- * The map of local references (local reference name => element or directive instance) that exist
49
- * on this element.
50
- */
51
- localRefs: {
52
- [key: string]: any;
53
- } | null | undefined;
54
- }
55
11
  /** Returns the matching `LContext` data for a given DOM node, directive or component instance.
56
12
  *
57
13
  * This function will examine the provided DOM element, component, or directive instance\'s
@@ -71,24 +27,17 @@ export interface LContext {
71
27
  */
72
28
  export declare function getContext(target: any): LContext | null;
73
29
  /**
74
- * A simplified lookup function for finding the LElementNode from a component instance.
30
+ * Takes a component instance and returns the view for that component.
75
31
  *
76
- * This function exists for tree-shaking purposes to avoid having to pull in everything
77
- * that `getContext` has in the event that an Angular application doesn't need to have
78
- * any programmatic access to an element's context (only change detection uses this function).
32
+ * @param componentInstance
33
+ * @returns The component's view
79
34
  */
80
- export declare function getLElementFromComponent(componentInstance: {}): LElementNode;
35
+ export declare function getComponentViewByInstance(componentInstance: {}): LViewData;
81
36
  /**
82
37
  * Assigns the given data to the given target (which could be a component,
83
38
  * directive or DOM node instance) using monkey-patching.
84
39
  */
85
40
  export declare function attachPatchData(target: any, data: LViewData | LContext): void;
86
- /**
87
- * Returns the monkey-patch value data present on the target (which could be
88
- * a component, directive or a DOM node).
89
- */
90
- export declare function readPatchedData(target: any): LViewData | LContext | null;
91
- export declare function readPatchedLViewData(target: any): LViewData | null;
92
41
  export declare function isComponentInstance(instance: any): boolean;
93
42
  export declare function isDirectiveInstance(instance: any): boolean;
94
43
  /**
@@ -104,7 +53,6 @@ export declare function discoverDirectives(nodeIndex: number, lViewData: LViewDa
104
53
  * Returns a map of local references (local reference name => element or directive instance) that
105
54
  * exist on a given element.
106
55
  */
107
- export declare function discoverLocalRefs(lViewData: LViewData, lNodeIndex: number): {
56
+ export declare function discoverLocalRefs(lViewData: LViewData, nodeIndex: number): {
108
57
  [key: string]: any;
109
58
  } | null;
110
- export declare function readElementValue(value: LElementNode | any[]): LElementNode;
@@ -234,10 +234,6 @@ export declare function defineComponent<T>(componentDefinition: {
234
234
  * `PipeDefs`s. The function is necessary to be able to support forward declarations.
235
235
  */
236
236
  pipes?: PipeTypesOrFactory | null;
237
- /**
238
- * Registry of the animation triggers present on the component that will be used by the view.
239
- */
240
- animations?: any[] | null;
241
237
  }): never;
242
238
  export declare function extractDirectiveDef(type: DirectiveType<any> & ComponentType<any>): DirectiveDef<any> | ComponentDef<any>;
243
239
  export declare function extractPipeDef(type: PipeType<any>): PipeDef<any>;
@@ -7,7 +7,6 @@
7
7
  */
8
8
  import { InjectionToken } from '../di/injection_token';
9
9
  import { InjectFlags, Injector } from '../di/injector';
10
- import { Renderer2 } from '../render';
11
10
  import { Type } from '../type';
12
11
  import { DirectiveDef } from './interfaces/definition';
13
12
  import { TContainerNode, TElementContainerNode, TElementNode, TNode } from './interfaces/node';
@@ -82,7 +81,6 @@ export declare function diPublic(def: DirectiveDef<any>): void;
82
81
  */
83
82
  export declare function directiveInject<T>(token: Type<T> | InjectionToken<T>): T;
84
83
  export declare function directiveInject<T>(token: Type<T> | InjectionToken<T>, flags: InjectFlags): T;
85
- export declare function injectRenderer2(): Renderer2;
86
84
  /**
87
85
  * Inject static attribute value into directive constructor.
88
86
  *
@@ -112,7 +110,7 @@ export declare function injectRenderer2(): Renderer2;
112
110
  * })
113
111
  * ```
114
112
  *
115
- * @experimental
113
+ * @publicApi
116
114
  */
117
115
  export declare function injectAttribute(attrNameToInject: string): string | undefined;
118
116
  /**
@@ -6,6 +6,7 @@
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
8
  import { Injector } from '../di/injector';
9
+ import { LContext } from './interfaces/context';
9
10
  import { LViewData, RootContext } from './interfaces/view';
10
11
  /**
11
12
  * NOTE: The following functions might not be ideal for core usage in Angular...
@@ -35,7 +36,7 @@ export declare function getHostComponent<T = {}>(target: {}): T | null;
35
36
  * Returns the `RootContext` instance that is associated with
36
37
  * the application where the target is situated.
37
38
  */
38
- export declare function getRootContext(target: {}): RootContext;
39
+ export declare function getRootContext(target: LViewData | {}): RootContext;
39
40
  /**
40
41
  * Returns a list of all the components in the application
41
42
  * that are have been bootstrapped.
@@ -51,6 +52,11 @@ export declare function getInjector(target: {}): Injector;
51
52
  * with the underlying target element.
52
53
  */
53
54
  export declare function getDirectives(target: {}): Array<{}>;
55
+ /**
56
+ * Returns LContext associated with a target passed as an argument.
57
+ * Throws if a given target doesn't have associated LContext.
58
+ */
59
+ export declare function loadContext(target: {}): LContext;
54
60
  /**
55
61
  * Retrieve the root view from any component by walking the parent `LViewData` until
56
62
  * reaching the root `LViewData`.
@@ -61,6 +61,10 @@ export declare type PlaceholderMap = {
61
61
  * @returns A list of instructions used to translate each template.
62
62
  */
63
63
  export declare function i18nMapping(translation: string, elements: (PlaceholderMap | null)[] | null, expressions?: (PlaceholderMap | null)[] | null, templateRoots?: string[] | null, lastChildIndex?: number | null): I18nInstruction[][];
64
+ export declare function i18nAttribute(index: number, attrs: any[]): void;
65
+ export declare function i18nExp(expression: any): void;
66
+ export declare function i18nStart(index: number, message: string, subTemplateIndex?: number): void;
67
+ export declare function i18nEnd(): void;
64
68
  /**
65
69
  * Takes a list of instructions generated by `i18nMapping()` to transform the template accordingly.
66
70
  *
@@ -12,11 +12,11 @@ import { NgOnChangesFeature } from './features/ng_onchanges_feature';
12
12
  import { PublicFeature } from './features/public_feature';
13
13
  import { BaseDef, ComponentDef, ComponentDefWithMeta, ComponentTemplate, ComponentType, DirectiveDef, DirectiveDefFlags, DirectiveDefWithMeta, DirectiveType, PipeDef, PipeDefWithMeta } from './interfaces/definition';
14
14
  export { ComponentFactory, ComponentFactoryResolver, ComponentRef, WRAP_RENDERER_FACTORY2, injectComponentFactoryResolver } from './component_ref';
15
- export { directiveInject, getFactoryOf, getInheritedFactory, injectAttribute, injectRenderer2 } from './di';
15
+ export { directiveInject, getFactoryOf, getInheritedFactory, injectAttribute } from './di';
16
16
  export { RenderFlags } from './interfaces/definition';
17
17
  export { CssSelectorList } from './interfaces/projection';
18
18
  export { NO_CHANGE, bind, interpolation1, interpolation2, interpolation3, interpolation4, interpolation5, interpolation6, interpolation7, interpolation8, interpolationV, container, containerRefreshStart, containerRefreshEnd, nextContext, element, elementAttribute, elementClassProp, elementEnd, elementProperty, elementStart, elementContainerStart, elementContainerEnd, elementStyling, elementStylingMap, elementStyleProp, elementStylingApply, getCurrentView, restoreView, listener, store, load, namespaceHTML, namespaceMathML, namespaceSVG, enableBindings, disableBindings, projection, projectionDef, text, textBinding, template, reference, embeddedViewStart, embeddedViewEnd, detectChanges, markDirty, tick, } from './instructions';
19
- export { i18nApply, i18nMapping, i18nInterpolation1, i18nInterpolation2, i18nInterpolation3, i18nInterpolation4, i18nInterpolation5, i18nInterpolation6, i18nInterpolation7, i18nInterpolation8, i18nInterpolationV, i18nExpMapping, I18nInstruction, I18nExpInstruction } from './i18n';
19
+ export { i18nAttribute, i18nExp, i18nStart, i18nEnd, i18nApply, i18nMapping, i18nInterpolation1, i18nInterpolation2, i18nInterpolation3, i18nInterpolation4, i18nInterpolation5, i18nInterpolation6, i18nInterpolation7, i18nInterpolation8, i18nInterpolationV, i18nExpMapping, I18nInstruction, I18nExpInstruction } from './i18n';
20
20
  export { NgModuleFactory, NgModuleRef, NgModuleType } from './ng_module_ref';
21
21
  export { AttributeMarker } from './interfaces/node';
22
22
  export { pipe, pipeBind1, pipeBind2, pipeBind3, pipeBind4, pipeBindV, } from './pipe';