@angular/core 0.0.0-6 → 2.0.0-rc.2

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 (627) hide show
  1. package/{core.umd.js → bundles/core.umd.js} +6500 -4671
  2. package/bundles/core.umd.min.js +6 -0
  3. package/esm/index.d.ts +5 -4
  4. package/esm/index.js +9 -8
  5. package/esm/index.js.map +1 -1
  6. package/esm/private_export.d.ts +102 -10
  7. package/esm/private_export.js +41 -9
  8. package/esm/private_export.js.map +1 -1
  9. package/esm/private_export.metadata.json +1 -1
  10. package/esm/src/animation/active_animation_players_map.d.ts +11 -0
  11. package/esm/src/animation/active_animation_players_map.js +47 -0
  12. package/esm/src/animation/active_animation_players_map.js.map +1 -0
  13. package/esm/src/animation/animation_constants.d.ts +4 -0
  14. package/esm/src/animation/animation_constants.js +5 -0
  15. package/esm/src/animation/animation_constants.js.map +1 -0
  16. package/esm/src/animation/animation_constants.metadata.json +1 -0
  17. package/esm/src/animation/animation_driver.d.ts +9 -0
  18. package/esm/src/animation/animation_driver.js +9 -0
  19. package/esm/src/animation/animation_driver.js.map +1 -0
  20. package/esm/src/animation/animation_group_player.d.ts +18 -0
  21. package/esm/src/animation/animation_group_player.js +60 -0
  22. package/esm/src/animation/animation_group_player.js.map +1 -0
  23. package/esm/src/animation/animation_keyframe.d.ts +6 -0
  24. package/esm/src/animation/animation_keyframe.js +7 -0
  25. package/esm/src/animation/animation_keyframe.js.map +1 -0
  26. package/esm/src/animation/animation_player.d.ts +26 -0
  27. package/esm/src/animation/animation_player.js +30 -0
  28. package/esm/src/animation/animation_player.js.map +1 -0
  29. package/esm/src/animation/animation_sequence_player.d.ts +21 -0
  30. package/esm/src/animation/animation_sequence_player.js +64 -0
  31. package/esm/src/animation/animation_sequence_player.js.map +1 -0
  32. package/esm/src/animation/animation_style_util.d.ts +32 -0
  33. package/esm/src/animation/animation_style_util.js +91 -0
  34. package/esm/src/animation/animation_style_util.js.map +1 -0
  35. package/esm/src/animation/animation_style_util.metadata.json +1 -0
  36. package/esm/src/animation/animation_styles.d.ts +8 -0
  37. package/esm/src/animation/animation_styles.js +6 -0
  38. package/esm/src/animation/animation_styles.js.map +1 -0
  39. package/esm/src/animation/metadata.d.ts +511 -0
  40. package/esm/src/animation/metadata.js +565 -0
  41. package/esm/src/animation/metadata.js.map +1 -0
  42. package/esm/src/animation/metadata.metadata.json +1 -0
  43. package/esm/src/application_common_providers.d.ts +1 -0
  44. package/esm/src/application_common_providers.js +5 -4
  45. package/esm/src/application_common_providers.js.map +1 -1
  46. package/esm/src/application_common_providers.metadata.json +1 -1
  47. package/esm/src/application_ref.d.ts +17 -41
  48. package/esm/src/application_ref.js +32 -23
  49. package/esm/src/application_ref.js.map +1 -1
  50. package/esm/src/application_ref.metadata.json +1 -1
  51. package/esm/src/application_tokens.d.ts +6 -1
  52. package/esm/src/application_tokens.js +9 -4
  53. package/esm/src/application_tokens.js.map +1 -1
  54. package/esm/src/application_tokens.metadata.json +1 -1
  55. package/esm/src/change_detection/change_detection.d.ts +9 -8
  56. package/esm/src/change_detection/change_detection.js +7 -7
  57. package/esm/src/change_detection/change_detection.js.map +1 -1
  58. package/esm/src/change_detection/change_detection.metadata.json +1 -1
  59. package/esm/src/change_detection/change_detection_util.d.ts +3 -1
  60. package/esm/src/change_detection/change_detection_util.js +6 -5
  61. package/esm/src/change_detection/change_detection_util.js.map +1 -1
  62. package/esm/src/change_detection/change_detection_util.metadata.json +1 -1
  63. package/esm/src/change_detection/change_detector_ref.d.ts +3 -0
  64. package/esm/src/change_detection/change_detector_ref.js +3 -0
  65. package/esm/src/change_detection/change_detector_ref.js.map +1 -1
  66. package/esm/src/change_detection/constants.d.ts +1 -0
  67. package/esm/src/change_detection/constants.js +4 -3
  68. package/esm/src/change_detection/constants.js.map +1 -1
  69. package/esm/src/change_detection/constants.metadata.json +1 -1
  70. package/esm/src/change_detection/differs/default_iterable_differ.d.ts +6 -94
  71. package/esm/src/change_detection/differs/default_iterable_differ.js +25 -18
  72. package/esm/src/change_detection/differs/default_iterable_differ.js.map +1 -1
  73. package/esm/src/change_detection/differs/default_keyvalue_differ.d.ts +3 -30
  74. package/esm/src/change_detection/differs/default_keyvalue_differ.js +13 -8
  75. package/esm/src/change_detection/differs/default_keyvalue_differ.js.map +1 -1
  76. package/esm/src/change_detection/differs/iterable_differs.d.ts +4 -1
  77. package/esm/src/change_detection/differs/iterable_differs.js +5 -4
  78. package/esm/src/change_detection/differs/iterable_differs.js.map +1 -1
  79. package/esm/src/change_detection/differs/keyvalue_differs.d.ts +2 -1
  80. package/esm/src/change_detection/differs/keyvalue_differs.js +5 -4
  81. package/esm/src/change_detection/differs/keyvalue_differs.js.map +1 -1
  82. package/esm/src/change_detection/pipe_transform.js.map +1 -1
  83. package/esm/src/change_detection.d.ts +1 -1
  84. package/esm/src/change_detection.js +5 -5
  85. package/esm/src/change_detection.js.map +1 -1
  86. package/esm/src/console.js +2 -1
  87. package/esm/src/console.js.map +1 -1
  88. package/esm/src/console.metadata.json +1 -1
  89. package/esm/src/debug/debug_node.d.ts +20 -2
  90. package/esm/src/debug/debug_node.js +16 -2
  91. package/esm/src/debug/debug_node.js.map +1 -1
  92. package/esm/src/debug/debug_node.metadata.json +1 -0
  93. package/esm/src/debug/debug_renderer.d.ts +10 -6
  94. package/esm/src/debug/debug_renderer.js +13 -2
  95. package/esm/src/debug/debug_renderer.js.map +1 -1
  96. package/esm/src/di/decorators.d.ts +13 -1
  97. package/esm/src/di/decorators.js +7 -1
  98. package/esm/src/di/decorators.js.map +1 -1
  99. package/esm/src/di/decorators.metadata.json +1 -1
  100. package/esm/src/di/forward_ref.d.ts +3 -1
  101. package/esm/src/di/forward_ref.js +3 -1
  102. package/esm/src/di/forward_ref.js.map +1 -1
  103. package/esm/src/di/injector.d.ts +4 -1
  104. package/esm/src/di/injector.js +5 -2
  105. package/esm/src/di/injector.js.map +1 -1
  106. package/esm/src/di/injector.metadata.json +1 -1
  107. package/esm/src/di/metadata.d.ts +8 -1
  108. package/esm/src/di/metadata.js +10 -3
  109. package/esm/src/di/metadata.js.map +1 -1
  110. package/esm/src/di/opaque_token.d.ts +2 -1
  111. package/esm/src/di/opaque_token.js +22 -21
  112. package/esm/src/di/opaque_token.js.map +1 -1
  113. package/esm/src/di/provider.d.ts +11 -10
  114. package/esm/src/di/provider.js +17 -14
  115. package/esm/src/di/provider.js.map +1 -1
  116. package/esm/src/di/provider.metadata.json +1 -0
  117. package/esm/src/di/provider_util.js.map +1 -1
  118. package/esm/src/di/provider_util.metadata.json +1 -0
  119. package/esm/src/di/reflective_exceptions.d.ts +11 -16
  120. package/esm/src/di/reflective_exceptions.js +28 -22
  121. package/esm/src/di/reflective_exceptions.js.map +1 -1
  122. package/esm/src/di/reflective_injector.d.ts +3 -33
  123. package/esm/src/di/reflective_injector.js +10 -7
  124. package/esm/src/di/reflective_injector.js.map +1 -1
  125. package/esm/src/di/reflective_key.d.ts +1 -8
  126. package/esm/src/di/reflective_key.js +3 -2
  127. package/esm/src/di/reflective_key.js.map +1 -1
  128. package/esm/src/di/reflective_provider.d.ts +2 -1
  129. package/esm/src/di/reflective_provider.js +6 -5
  130. package/esm/src/di/reflective_provider.js.map +1 -1
  131. package/esm/src/di/reflective_provider.metadata.json +1 -0
  132. package/esm/src/di.d.ts +2 -2
  133. package/esm/src/di.js +6 -6
  134. package/esm/src/di.js.map +1 -1
  135. package/esm/src/facade/async.d.ts +11 -4
  136. package/esm/src/facade/async.js +25 -15
  137. package/esm/src/facade/async.js.map +1 -1
  138. package/esm/src/facade/base_wrapped_exception.js +4 -4
  139. package/esm/src/facade/base_wrapped_exception.js.map +1 -1
  140. package/esm/src/facade/collection.js +1 -1
  141. package/esm/src/facade/collection.js.map +1 -1
  142. package/esm/src/facade/collection.metadata.json +1 -1
  143. package/esm/src/facade/exception_handler.d.ts +2 -11
  144. package/esm/src/facade/exception_handler.js +8 -7
  145. package/esm/src/facade/exception_handler.js.map +1 -1
  146. package/esm/src/facade/exceptions.d.ts +4 -0
  147. package/esm/src/facade/exceptions.js +6 -2
  148. package/esm/src/facade/exceptions.js.map +1 -1
  149. package/esm/src/facade/exceptions.metadata.json +1 -0
  150. package/esm/src/facade/lang.d.ts +6 -4
  151. package/esm/src/facade/lang.js +12 -11
  152. package/esm/src/facade/lang.js.map +1 -1
  153. package/esm/src/facade/lang.metadata.json +1 -1
  154. package/esm/src/facade/math.d.ts +2 -0
  155. package/esm/src/facade/math.js +4 -0
  156. package/esm/src/facade/math.js.map +1 -0
  157. package/esm/src/facade/math.metadata.json +1 -0
  158. package/esm/src/facade/promise.js.map +1 -1
  159. package/esm/src/linker/component_factory.d.ts +5 -4
  160. package/esm/src/linker/component_factory.js +7 -3
  161. package/esm/src/linker/component_factory.js.map +1 -1
  162. package/esm/src/linker/component_resolver.d.ts +5 -4
  163. package/esm/src/linker/component_resolver.js +12 -7
  164. package/esm/src/linker/component_resolver.js.map +1 -1
  165. package/esm/src/linker/component_resolver.metadata.json +1 -1
  166. package/esm/src/linker/debug_context.js +5 -4
  167. package/esm/src/linker/debug_context.js.map +1 -1
  168. package/esm/src/linker/dynamic_component_loader.d.ts +5 -6
  169. package/esm/src/linker/dynamic_component_loader.js +5 -3
  170. package/esm/src/linker/dynamic_component_loader.js.map +1 -1
  171. package/esm/src/linker/dynamic_component_loader.metadata.json +1 -1
  172. package/esm/src/linker/element.d.ts +3 -3
  173. package/esm/src/linker/element.js +5 -5
  174. package/esm/src/linker/element.js.map +1 -1
  175. package/esm/src/linker/element_injector.js.map +1 -1
  176. package/esm/src/linker/element_ref.d.ts +1 -0
  177. package/esm/src/linker/element_ref.js +5 -5
  178. package/esm/src/linker/element_ref.js.map +1 -1
  179. package/esm/src/linker/exceptions.d.ts +4 -1
  180. package/esm/src/linker/exceptions.js +4 -1
  181. package/esm/src/linker/exceptions.js.map +1 -1
  182. package/esm/src/linker/query_list.d.ts +3 -10
  183. package/esm/src/linker/query_list.js +8 -7
  184. package/esm/src/linker/query_list.js.map +1 -1
  185. package/esm/src/linker/systemjs_component_resolver.d.ts +21 -0
  186. package/esm/src/linker/systemjs_component_resolver.js +44 -0
  187. package/esm/src/linker/systemjs_component_resolver.js.map +1 -0
  188. package/esm/src/linker/template_ref.d.ts +2 -1
  189. package/esm/src/linker/template_ref.js +1 -0
  190. package/esm/src/linker/template_ref.js.map +1 -1
  191. package/esm/src/linker/view.d.ts +12 -1
  192. package/esm/src/linker/view.js +62 -16
  193. package/esm/src/linker/view.js.map +1 -1
  194. package/esm/src/linker/view_container_ref.d.ts +2 -10
  195. package/esm/src/linker/view_container_ref.js +4 -3
  196. package/esm/src/linker/view_container_ref.js.map +1 -1
  197. package/esm/src/linker/view_ref.d.ts +5 -1
  198. package/esm/src/linker/view_ref.js +6 -2
  199. package/esm/src/linker/view_ref.js.map +1 -1
  200. package/esm/src/linker/view_type.js.map +1 -1
  201. package/esm/src/linker/view_utils.d.ts +4 -4
  202. package/esm/src/linker/view_utils.js +25 -22
  203. package/esm/src/linker/view_utils.js.map +1 -1
  204. package/esm/src/linker/view_utils.metadata.json +1 -1
  205. package/esm/src/linker.d.ts +5 -4
  206. package/esm/src/linker.js +5 -4
  207. package/esm/src/linker.js.map +1 -1
  208. package/esm/src/metadata/di.d.ts +8 -1
  209. package/esm/src/metadata/di.js +10 -3
  210. package/esm/src/metadata/di.js.map +1 -1
  211. package/esm/src/metadata/directives.d.ts +104 -20
  212. package/esm/src/metadata/directives.js +25 -19
  213. package/esm/src/metadata/directives.js.map +1 -1
  214. package/esm/src/metadata/lifecycle_hooks.d.ts +46 -31
  215. package/esm/src/metadata/lifecycle_hooks.js +464 -10
  216. package/esm/src/metadata/lifecycle_hooks.js.map +1 -1
  217. package/esm/src/metadata/lifecycle_hooks.metadata.json +1 -1
  218. package/esm/src/metadata/view.d.ts +6 -2
  219. package/esm/src/metadata/view.js +3 -1
  220. package/esm/src/metadata/view.js.map +1 -1
  221. package/esm/src/metadata/view.metadata.json +1 -1
  222. package/esm/src/metadata.d.ts +49 -15
  223. package/esm/src/metadata.js +35 -10
  224. package/esm/src/metadata.js.map +1 -1
  225. package/esm/src/metadata.metadata.json +1 -1
  226. package/esm/src/platform_common_providers.d.ts +1 -0
  227. package/esm/src/platform_common_providers.js +3 -3
  228. package/esm/src/platform_common_providers.js.map +1 -1
  229. package/esm/src/platform_common_providers.metadata.json +1 -1
  230. package/esm/src/platform_directives_and_pipes.d.ts +48 -45
  231. package/esm/src/platform_directives_and_pipes.js +50 -47
  232. package/esm/src/platform_directives_and_pipes.js.map +1 -1
  233. package/esm/src/platform_directives_and_pipes.metadata.json +1 -1
  234. package/esm/src/profile/profile.d.ts +5 -1
  235. package/esm/src/profile/profile.js +4 -0
  236. package/esm/src/profile/profile.js.map +1 -1
  237. package/esm/src/profile/profile.metadata.json +1 -1
  238. package/esm/src/profile/wtf_impl.js +1 -1
  239. package/esm/src/profile/wtf_impl.js.map +1 -1
  240. package/esm/src/profile/wtf_impl.metadata.json +1 -0
  241. package/esm/src/profile/wtf_init.js +2 -2
  242. package/esm/src/profile/wtf_init.js.map +1 -1
  243. package/esm/src/reflection/platform_reflection_capabilities.d.ts +4 -3
  244. package/esm/src/reflection/platform_reflection_capabilities.js.map +1 -1
  245. package/esm/src/reflection/reflection.d.ts +1 -1
  246. package/esm/src/reflection/reflection.js +2 -2
  247. package/esm/src/reflection/reflection.js.map +1 -1
  248. package/esm/src/reflection/reflection.metadata.json +1 -1
  249. package/esm/src/reflection/reflection_capabilities.d.ts +4 -5
  250. package/esm/src/reflection/reflection_capabilities.js +22 -10
  251. package/esm/src/reflection/reflection_capabilities.js.map +1 -1
  252. package/esm/src/reflection/reflector.d.ts +8 -20
  253. package/esm/src/reflection/reflector.js +13 -3
  254. package/esm/src/reflection/reflector.js.map +1 -1
  255. package/esm/src/reflection/reflector_reader.js +3 -3
  256. package/esm/src/reflection/reflector_reader.js.map +1 -1
  257. package/esm/src/reflection/types.js.map +1 -1
  258. package/esm/src/render/api.d.ts +17 -6
  259. package/esm/src/render/api.js +8 -1
  260. package/esm/src/render/api.js.map +1 -1
  261. package/esm/src/render.d.ts +1 -1
  262. package/esm/src/render.js +1 -1
  263. package/esm/src/render.js.map +1 -1
  264. package/esm/src/security.d.ts +22 -0
  265. package/esm/src/security.js +23 -0
  266. package/esm/src/security.js.map +1 -0
  267. package/esm/src/testability/testability.d.ts +3 -19
  268. package/esm/src/testability/testability.js +10 -5
  269. package/esm/src/testability/testability.js.map +1 -1
  270. package/esm/src/testability/testability.metadata.json +1 -1
  271. package/esm/src/util/decorators.d.ts +2 -1
  272. package/esm/src/util/decorators.js +10 -9
  273. package/esm/src/util/decorators.js.map +1 -1
  274. package/esm/src/util.js.map +1 -1
  275. package/esm/src/zone/ng_zone.d.ts +6 -17
  276. package/esm/src/zone/ng_zone.js +7 -6
  277. package/esm/src/zone/ng_zone.js.map +1 -1
  278. package/esm/src/zone/ng_zone_impl.d.ts +1 -4
  279. package/esm/src/zone/ng_zone_impl.js +3 -2
  280. package/esm/src/zone/ng_zone_impl.js.map +1 -1
  281. package/esm/src/zone.js.map +1 -1
  282. package/esm/testing/async.js +20 -22
  283. package/esm/testing/async.js.map +1 -1
  284. package/esm/testing/async.metadata.json +1 -0
  285. package/esm/testing/async_test_completer.js.map +1 -1
  286. package/esm/testing/fake_async.d.ts +4 -1
  287. package/esm/testing/fake_async.js +9 -2
  288. package/esm/testing/fake_async.js.map +1 -1
  289. package/esm/testing/lang_utils.js +1 -1
  290. package/esm/testing/lang_utils.js.map +1 -1
  291. package/esm/testing/lang_utils.metadata.json +1 -0
  292. package/esm/testing/logger.js +5 -3
  293. package/esm/testing/logger.js.map +1 -1
  294. package/esm/testing/logger.metadata.json +1 -1
  295. package/esm/testing/mock_application_ref.d.ts +1 -1
  296. package/esm/testing/mock_application_ref.js +1 -0
  297. package/esm/testing/mock_application_ref.js.map +1 -1
  298. package/esm/testing/mock_application_ref.metadata.json +1 -1
  299. package/esm/testing/ng_zone_mock.d.ts +0 -1
  300. package/esm/testing/ng_zone_mock.js +2 -1
  301. package/esm/testing/ng_zone_mock.js.map +1 -1
  302. package/esm/testing/ng_zone_mock.metadata.json +1 -1
  303. package/esm/testing/regexp.js +1 -1
  304. package/esm/testing/regexp.js.map +1 -1
  305. package/esm/testing/regexp.metadata.json +1 -0
  306. package/esm/testing/test_injector.d.ts +6 -12
  307. package/esm/testing/test_injector.js +4 -10
  308. package/esm/testing/test_injector.js.map +1 -1
  309. package/esm/testing/test_injector.metadata.json +1 -0
  310. package/esm/testing/testing.d.ts +2 -2
  311. package/esm/testing/testing.js +2 -2
  312. package/esm/testing/testing.js.map +1 -1
  313. package/esm/testing/testing.metadata.json +1 -1
  314. package/esm/testing.js.map +1 -1
  315. package/index.d.ts +5 -4
  316. package/index.js +10 -8
  317. package/index.js.map +1 -1
  318. package/package.json +5 -1
  319. package/private_export.d.ts +102 -10
  320. package/private_export.js +41 -9
  321. package/private_export.js.map +1 -1
  322. package/private_export.metadata.json +1 -1
  323. package/src/animation/active_animation_players_map.d.ts +11 -0
  324. package/src/animation/active_animation_players_map.js +54 -0
  325. package/src/animation/active_animation_players_map.js.map +1 -0
  326. package/src/animation/animation_constants.d.ts +4 -0
  327. package/src/animation/animation_constants.js +6 -0
  328. package/src/animation/animation_constants.js.map +1 -0
  329. package/src/animation/animation_constants.metadata.json +1 -0
  330. package/src/animation/animation_driver.d.ts +9 -0
  331. package/src/animation/animation_driver.js +25 -0
  332. package/src/animation/animation_driver.js.map +1 -0
  333. package/src/animation/animation_group_player.d.ts +18 -0
  334. package/src/animation/animation_group_player.js +64 -0
  335. package/src/animation/animation_group_player.js.map +1 -0
  336. package/src/animation/animation_keyframe.d.ts +6 -0
  337. package/src/animation/animation_keyframe.js +10 -0
  338. package/src/animation/animation_keyframe.js.map +1 -0
  339. package/src/animation/animation_player.d.ts +26 -0
  340. package/src/animation/animation_player.js +42 -0
  341. package/src/animation/animation_player.js.map +1 -0
  342. package/src/animation/animation_sequence_player.d.ts +21 -0
  343. package/src/animation/animation_sequence_player.js +69 -0
  344. package/src/animation/animation_sequence_player.js.map +1 -0
  345. package/src/animation/animation_style_util.d.ts +32 -0
  346. package/src/animation/animation_style_util.js +99 -0
  347. package/src/animation/animation_style_util.js.map +1 -0
  348. package/src/animation/animation_style_util.metadata.json +1 -0
  349. package/src/animation/animation_styles.d.ts +8 -0
  350. package/src/animation/animation_styles.js +9 -0
  351. package/src/animation/animation_styles.js.map +1 -0
  352. package/src/animation/metadata.d.ts +511 -0
  353. package/src/animation/metadata.js +627 -0
  354. package/src/animation/metadata.js.map +1 -0
  355. package/src/animation/metadata.metadata.json +1 -0
  356. package/src/application_common_providers.d.ts +1 -0
  357. package/src/application_common_providers.js +4 -3
  358. package/src/application_common_providers.js.map +1 -1
  359. package/src/application_common_providers.metadata.json +1 -1
  360. package/src/application_ref.d.ts +17 -41
  361. package/src/application_ref.js +30 -21
  362. package/src/application_ref.js.map +1 -1
  363. package/src/application_ref.metadata.json +1 -1
  364. package/src/application_tokens.d.ts +6 -1
  365. package/src/application_tokens.js +9 -4
  366. package/src/application_tokens.js.map +1 -1
  367. package/src/application_tokens.metadata.json +1 -1
  368. package/src/change_detection/change_detection.d.ts +9 -8
  369. package/src/change_detection/change_detection.js +21 -21
  370. package/src/change_detection/change_detection.js.map +1 -1
  371. package/src/change_detection/change_detection.metadata.json +1 -1
  372. package/src/change_detection/change_detection_util.d.ts +3 -1
  373. package/src/change_detection/change_detection_util.js +6 -5
  374. package/src/change_detection/change_detection_util.js.map +1 -1
  375. package/src/change_detection/change_detection_util.metadata.json +1 -1
  376. package/src/change_detection/change_detector_ref.d.ts +3 -0
  377. package/src/change_detection/change_detector_ref.js +3 -0
  378. package/src/change_detection/change_detector_ref.js.map +1 -1
  379. package/src/change_detection/constants.d.ts +1 -0
  380. package/src/change_detection/constants.js +4 -3
  381. package/src/change_detection/constants.js.map +1 -1
  382. package/src/change_detection/constants.metadata.json +1 -1
  383. package/src/change_detection/differs/default_iterable_differ.d.ts +6 -94
  384. package/src/change_detection/differs/default_iterable_differ.js +25 -18
  385. package/src/change_detection/differs/default_iterable_differ.js.map +1 -1
  386. package/src/change_detection/differs/default_keyvalue_differ.d.ts +3 -30
  387. package/src/change_detection/differs/default_keyvalue_differ.js +13 -8
  388. package/src/change_detection/differs/default_keyvalue_differ.js.map +1 -1
  389. package/src/change_detection/differs/iterable_differs.d.ts +4 -1
  390. package/src/change_detection/differs/iterable_differs.js +4 -3
  391. package/src/change_detection/differs/iterable_differs.js.map +1 -1
  392. package/src/change_detection/differs/keyvalue_differs.d.ts +2 -1
  393. package/src/change_detection/differs/keyvalue_differs.js +4 -3
  394. package/src/change_detection/differs/keyvalue_differs.js.map +1 -1
  395. package/src/change_detection/pipe_transform.js.map +1 -1
  396. package/src/change_detection.d.ts +1 -1
  397. package/src/change_detection.js +9 -9
  398. package/src/change_detection.js.map +1 -1
  399. package/src/console.js +2 -1
  400. package/src/console.js.map +1 -1
  401. package/src/console.metadata.json +1 -1
  402. package/src/debug/debug_node.d.ts +20 -2
  403. package/src/debug/debug_node.js +16 -2
  404. package/src/debug/debug_node.js.map +1 -1
  405. package/src/debug/debug_node.metadata.json +1 -0
  406. package/src/debug/debug_renderer.d.ts +10 -6
  407. package/src/debug/debug_renderer.js +12 -1
  408. package/src/debug/debug_renderer.js.map +1 -1
  409. package/src/di/decorators.d.ts +13 -1
  410. package/src/di/decorators.js +7 -1
  411. package/src/di/decorators.js.map +1 -1
  412. package/src/di/decorators.metadata.json +1 -1
  413. package/src/di/forward_ref.d.ts +3 -1
  414. package/src/di/forward_ref.js +3 -1
  415. package/src/di/forward_ref.js.map +1 -1
  416. package/src/di/injector.d.ts +4 -1
  417. package/src/di/injector.js +5 -2
  418. package/src/di/injector.js.map +1 -1
  419. package/src/di/injector.metadata.json +1 -1
  420. package/src/di/metadata.d.ts +8 -1
  421. package/src/di/metadata.js +10 -3
  422. package/src/di/metadata.js.map +1 -1
  423. package/src/di/opaque_token.d.ts +2 -1
  424. package/src/di/opaque_token.js +22 -21
  425. package/src/di/opaque_token.js.map +1 -1
  426. package/src/di/provider.d.ts +11 -10
  427. package/src/di/provider.js +17 -14
  428. package/src/di/provider.js.map +1 -1
  429. package/src/di/provider.metadata.json +1 -0
  430. package/src/di/provider_util.js.map +1 -1
  431. package/src/di/provider_util.metadata.json +1 -0
  432. package/src/di/reflective_exceptions.d.ts +11 -16
  433. package/src/di/reflective_exceptions.js +28 -22
  434. package/src/di/reflective_exceptions.js.map +1 -1
  435. package/src/di/reflective_injector.d.ts +3 -33
  436. package/src/di/reflective_injector.js +9 -6
  437. package/src/di/reflective_injector.js.map +1 -1
  438. package/src/di/reflective_key.d.ts +1 -8
  439. package/src/di/reflective_key.js +3 -2
  440. package/src/di/reflective_key.js.map +1 -1
  441. package/src/di/reflective_provider.d.ts +2 -1
  442. package/src/di/reflective_provider.js +6 -5
  443. package/src/di/reflective_provider.js.map +1 -1
  444. package/src/di/reflective_provider.metadata.json +1 -0
  445. package/src/di.d.ts +2 -2
  446. package/src/di.js +7 -9
  447. package/src/di.js.map +1 -1
  448. package/src/facade/async.d.ts +11 -4
  449. package/src/facade/async.js +27 -17
  450. package/src/facade/async.js.map +1 -1
  451. package/src/facade/base_wrapped_exception.js +4 -4
  452. package/src/facade/base_wrapped_exception.js.map +1 -1
  453. package/src/facade/collection.js.map +1 -1
  454. package/src/facade/collection.metadata.json +1 -1
  455. package/src/facade/exception_handler.d.ts +2 -11
  456. package/src/facade/exception_handler.js +8 -7
  457. package/src/facade/exception_handler.js.map +1 -1
  458. package/src/facade/exceptions.d.ts +4 -0
  459. package/src/facade/exceptions.js +6 -2
  460. package/src/facade/exceptions.js.map +1 -1
  461. package/src/facade/exceptions.metadata.json +1 -0
  462. package/src/facade/lang.d.ts +6 -4
  463. package/src/facade/lang.js +12 -11
  464. package/src/facade/lang.js.map +1 -1
  465. package/src/facade/lang.metadata.json +1 -1
  466. package/src/facade/math.d.ts +2 -0
  467. package/src/facade/math.js +5 -0
  468. package/src/facade/math.js.map +1 -0
  469. package/src/facade/math.metadata.json +1 -0
  470. package/src/facade/promise.js.map +1 -1
  471. package/src/linker/component_factory.d.ts +5 -4
  472. package/src/linker/component_factory.js +7 -3
  473. package/src/linker/component_factory.js.map +1 -1
  474. package/src/linker/component_resolver.d.ts +5 -4
  475. package/src/linker/component_resolver.js +12 -7
  476. package/src/linker/component_resolver.js.map +1 -1
  477. package/src/linker/component_resolver.metadata.json +1 -1
  478. package/src/linker/debug_context.js +5 -4
  479. package/src/linker/debug_context.js.map +1 -1
  480. package/src/linker/dynamic_component_loader.d.ts +5 -6
  481. package/src/linker/dynamic_component_loader.js +5 -3
  482. package/src/linker/dynamic_component_loader.js.map +1 -1
  483. package/src/linker/dynamic_component_loader.metadata.json +1 -1
  484. package/src/linker/element.d.ts +3 -3
  485. package/src/linker/element.js +5 -5
  486. package/src/linker/element.js.map +1 -1
  487. package/src/linker/element_injector.js.map +1 -1
  488. package/src/linker/element_ref.d.ts +1 -0
  489. package/src/linker/element_ref.js +5 -5
  490. package/src/linker/element_ref.js.map +1 -1
  491. package/src/linker/exceptions.d.ts +4 -1
  492. package/src/linker/exceptions.js +4 -1
  493. package/src/linker/exceptions.js.map +1 -1
  494. package/src/linker/query_list.d.ts +3 -10
  495. package/src/linker/query_list.js +8 -7
  496. package/src/linker/query_list.js.map +1 -1
  497. package/src/linker/systemjs_component_resolver.d.ts +21 -0
  498. package/src/linker/systemjs_component_resolver.js +52 -0
  499. package/src/linker/systemjs_component_resolver.js.map +1 -0
  500. package/src/linker/template_ref.d.ts +2 -1
  501. package/src/linker/template_ref.js +1 -0
  502. package/src/linker/template_ref.js.map +1 -1
  503. package/src/linker/view.d.ts +12 -1
  504. package/src/linker/view.js +65 -15
  505. package/src/linker/view.js.map +1 -1
  506. package/src/linker/view_container_ref.d.ts +2 -10
  507. package/src/linker/view_container_ref.js +4 -3
  508. package/src/linker/view_container_ref.js.map +1 -1
  509. package/src/linker/view_ref.d.ts +5 -1
  510. package/src/linker/view_ref.js +6 -2
  511. package/src/linker/view_ref.js.map +1 -1
  512. package/src/linker/view_type.js.map +1 -1
  513. package/src/linker/view_utils.d.ts +4 -4
  514. package/src/linker/view_utils.js +25 -22
  515. package/src/linker/view_utils.js.map +1 -1
  516. package/src/linker/view_utils.metadata.json +1 -1
  517. package/src/linker.d.ts +5 -4
  518. package/src/linker.js +12 -9
  519. package/src/linker.js.map +1 -1
  520. package/src/metadata/di.d.ts +8 -1
  521. package/src/metadata/di.js +10 -3
  522. package/src/metadata/di.js.map +1 -1
  523. package/src/metadata/directives.d.ts +104 -20
  524. package/src/metadata/directives.js +25 -27
  525. package/src/metadata/directives.js.map +1 -1
  526. package/src/metadata/lifecycle_hooks.d.ts +46 -31
  527. package/src/metadata/lifecycle_hooks.js +496 -10
  528. package/src/metadata/lifecycle_hooks.js.map +1 -1
  529. package/src/metadata/lifecycle_hooks.metadata.json +1 -1
  530. package/src/metadata/view.d.ts +6 -2
  531. package/src/metadata/view.js +3 -1
  532. package/src/metadata/view.js.map +1 -1
  533. package/src/metadata/view.metadata.json +1 -1
  534. package/src/metadata.d.ts +49 -15
  535. package/src/metadata.js +70 -37
  536. package/src/metadata.js.map +1 -1
  537. package/src/metadata.metadata.json +1 -1
  538. package/src/platform_common_providers.d.ts +1 -0
  539. package/src/platform_common_providers.js +3 -3
  540. package/src/platform_common_providers.js.map +1 -1
  541. package/src/platform_common_providers.metadata.json +1 -1
  542. package/src/platform_directives_and_pipes.d.ts +48 -45
  543. package/src/platform_directives_and_pipes.js +50 -47
  544. package/src/platform_directives_and_pipes.js.map +1 -1
  545. package/src/platform_directives_and_pipes.metadata.json +1 -1
  546. package/src/profile/profile.d.ts +5 -1
  547. package/src/profile/profile.js +5 -3
  548. package/src/profile/profile.js.map +1 -1
  549. package/src/profile/profile.metadata.json +1 -1
  550. package/src/profile/wtf_impl.js +1 -1
  551. package/src/profile/wtf_impl.js.map +1 -1
  552. package/src/profile/wtf_impl.metadata.json +1 -0
  553. package/src/profile/wtf_init.js +2 -2
  554. package/src/profile/wtf_init.js.map +1 -1
  555. package/src/reflection/platform_reflection_capabilities.d.ts +4 -3
  556. package/src/reflection/platform_reflection_capabilities.js.map +1 -1
  557. package/src/reflection/reflection.d.ts +1 -1
  558. package/src/reflection/reflection.js +2 -2
  559. package/src/reflection/reflection.js.map +1 -1
  560. package/src/reflection/reflection.metadata.json +1 -1
  561. package/src/reflection/reflection_capabilities.d.ts +4 -5
  562. package/src/reflection/reflection_capabilities.js +24 -10
  563. package/src/reflection/reflection_capabilities.js.map +1 -1
  564. package/src/reflection/reflector.d.ts +8 -20
  565. package/src/reflection/reflector.js +13 -3
  566. package/src/reflection/reflector.js.map +1 -1
  567. package/src/reflection/reflector_reader.js +3 -3
  568. package/src/reflection/reflector_reader.js.map +1 -1
  569. package/src/reflection/types.js.map +1 -1
  570. package/src/render/api.d.ts +17 -6
  571. package/src/render/api.js +8 -1
  572. package/src/render/api.js.map +1 -1
  573. package/src/render.d.ts +1 -1
  574. package/src/render.js +2 -2
  575. package/src/render.js.map +1 -1
  576. package/src/security.d.ts +22 -0
  577. package/src/security.js +28 -0
  578. package/src/security.js.map +1 -0
  579. package/src/testability/testability.d.ts +3 -19
  580. package/src/testability/testability.js +10 -5
  581. package/src/testability/testability.js.map +1 -1
  582. package/src/testability/testability.metadata.json +1 -1
  583. package/src/util/decorators.d.ts +2 -1
  584. package/src/util/decorators.js +10 -9
  585. package/src/util/decorators.js.map +1 -1
  586. package/src/util.js.map +1 -1
  587. package/src/zone/ng_zone.d.ts +6 -17
  588. package/src/zone/ng_zone.js +11 -6
  589. package/src/zone/ng_zone.js.map +1 -1
  590. package/src/zone/ng_zone_impl.d.ts +1 -4
  591. package/src/zone/ng_zone_impl.js +3 -2
  592. package/src/zone/ng_zone_impl.js.map +1 -1
  593. package/src/zone.js.map +1 -1
  594. package/testing/async.js +20 -22
  595. package/testing/async.js.map +1 -1
  596. package/testing/async.metadata.json +1 -0
  597. package/testing/async_test_completer.js.map +1 -1
  598. package/testing/fake_async.d.ts +4 -1
  599. package/testing/fake_async.js +10 -2
  600. package/testing/fake_async.js.map +1 -1
  601. package/testing/lang_utils.js +1 -1
  602. package/testing/lang_utils.js.map +1 -1
  603. package/testing/lang_utils.metadata.json +1 -0
  604. package/testing/logger.js +5 -3
  605. package/testing/logger.js.map +1 -1
  606. package/testing/logger.metadata.json +1 -1
  607. package/testing/mock_application_ref.d.ts +1 -1
  608. package/testing/mock_application_ref.js +1 -0
  609. package/testing/mock_application_ref.js.map +1 -1
  610. package/testing/mock_application_ref.metadata.json +1 -1
  611. package/testing/ng_zone_mock.d.ts +0 -1
  612. package/testing/ng_zone_mock.js +2 -1
  613. package/testing/ng_zone_mock.js.map +1 -1
  614. package/testing/ng_zone_mock.metadata.json +1 -1
  615. package/testing/regexp.js +1 -1
  616. package/testing/regexp.js.map +1 -1
  617. package/testing/regexp.metadata.json +1 -0
  618. package/testing/test_injector.d.ts +6 -12
  619. package/testing/test_injector.js +3 -9
  620. package/testing/test_injector.js.map +1 -1
  621. package/testing/test_injector.metadata.json +1 -0
  622. package/testing/testing.d.ts +2 -2
  623. package/testing/testing.js +5 -5
  624. package/testing/testing.js.map +1 -1
  625. package/testing/testing.metadata.json +1 -1
  626. package/testing.js.map +1 -1
  627. package/esm/core.umd.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"dynamic_component_loader.js","sourceRoot":"/Users/iminar/Dev/angular/modules/@angular/core/","sources":["src/linker/dynamic_component_loader.ts"],"names":[],"mappings":"OAIS,EAAC,iBAAiB,EAAC,MAAM,sBAAsB;OACjD,EAAO,SAAS,EAAC,MAAM,uBAAuB;OAI9C,EAAC,kBAAkB,EAAC,MAAM,2BAA2B;OACrD,EAAC,UAAU,EAAC,MAAM,kBAAkB;AAG3C;;;;GAIG;AACH;AAkGA,CAAC;AACD,6CAA6C,sBAAsB;IACjE,YAAoB,SAA4B;QAAI,OAAO,CAAC;QAAxC,cAAS,GAAT,SAAS,CAAmB;IAAa,CAAC;IAE9D,UAAU,CAAC,IAAU,EAAE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AkB,CAAC,qBAAqB,CAAC,SAAS,EAAE,eAAe,CAAC;gBACpE,eAAe,CAAC;YACpB,MAAM,CAAC,QAAQ,CAAC,eAAe,CAC3B,gBAAgB,EAAE,QAAQ,CAAC,MAAM,EAAE,aAAa,EAAE,gBAAgB,CAAC,CAAC;QAC1E,CAAC,CAAC,CAAC;IACL,CAAC;AASH,CAAC;AARD,kBAAkB;AACX,kCAAU,GAA0B;IAC3C,EAAE,IAAI,EAAE,UAAU,EAAE;CACnB,CAAC;AACF,kBAAkB;AACX,sCAAc,GAA2D;IAChF,EAAC,IAAI,EAAE,iBAAiB,GAAG;CAC1B,CACA","sourcesContent":["import {Injectable} from '../di/decorators';\nimport {Injector} from '../di/injector';\nimport {ReflectiveInjector} from '../di/reflective_injector';\nimport {ResolvedReflectiveProvider} from '../di/reflective_provider';\nimport {Type, isPresent} from '../facade/lang';\n\nimport {ComponentRef} from './component_factory';\nimport {ComponentResolver} from './component_resolver';\nimport {ViewContainerRef} from './view_container_ref';\n\n\n/**\n * Use ComponentResolver and ViewContainerRef directly.\n *\n * @deprecated\n */\nexport abstract class DynamicComponentLoader {\n /**\n * Creates an instance of a Component `type` and attaches it to the first element in the\n * platform-specific global view that matches the component's selector.\n *\n * In a browser the platform-specific global view is the main DOM Document.\n *\n * If needed, the component's selector can be overridden via `overrideSelector`.\n *\n * A provided {@link Injector} will be used to instantiate the Component.\n *\n * To be notified when this Component instance is destroyed, you can also optionally provide\n * `onDispose` callback.\n *\n * Returns a promise for the {@link ComponentRef} representing the newly created Component.\n *\n * ### Example\n *\n * ```\n * @Component({\n * selector: 'child-component',\n * template: 'Child'\n * })\n * class ChildComponent {\n * }\n *\n * @Component({\n * selector: 'my-app',\n * template: 'Parent (<child id=\"child\"></child>)'\n * })\n * class MyApp {\n * constructor(dcl: DynamicComponentLoader, injector: Injector) {\n * dcl.loadAsRoot(ChildComponent, '#child', injector);\n * }\n * }\n *\n * bootstrap(MyApp);\n * ```\n *\n * Resulting DOM:\n *\n * ```\n * <my-app>\n * Parent (\n * <child id=\"child\">Child</child>\n * )\n * </my-app>\n * ```\n */\n abstract loadAsRoot(\n type: Type, overrideSelectorOrNode: string|any, injector: Injector, onDispose?: () => void,\n projectableNodes?: any[][]): Promise<ComponentRef<any>>;\n\n\n /**\n * Creates an instance of a Component and attaches it to the View Container found at the\n * `location` specified as {@link ViewContainerRef}.\n *\n * You can optionally provide `providers` to configure the {@link Injector} provisioned for this\n * Component Instance.\n *\n * Returns a promise for the {@link ComponentRef} representing the newly created Component.\n *\n *\n * ### Example\n *\n * ```\n * @Component({\n * selector: 'child-component',\n * template: 'Child'\n * })\n * class ChildComponent {\n * }\n *\n * @Component({\n * selector: 'my-app',\n * template: 'Parent'\n * })\n * class MyApp {\n * constructor(dcl: DynamicComponentLoader, viewContainerRef: ViewContainerRef) {\n * dcl.loadNextToLocation(ChildComponent, viewContainerRef);\n * }\n * }\n *\n * bootstrap(MyApp);\n * ```\n *\n * Resulting DOM:\n *\n * ```\n * <my-app>Parent</my-app>\n * <child-component>Child</child-component>\n * ```\n */\n abstract loadNextToLocation(\n type: Type, location: ViewContainerRef, providers?: ResolvedReflectiveProvider[],\n projectableNodes?: any[][]): Promise<ComponentRef<any>>;\n}\nexport class DynamicComponentLoader_ extends DynamicComponentLoader {\n constructor(private _compiler: ComponentResolver) { super(); }\n\n loadAsRoot(\n type: Type, overrideSelectorOrNode: string|any, injector: Injector, onDispose?: () => void,\n projectableNodes?: any[][]): Promise<ComponentRef<any>> {\n return this._compiler.resolveComponent(type).then(componentFactory => {\n var componentRef = componentFactory.create(\n injector, projectableNodes,\n isPresent(overrideSelectorOrNode) ? overrideSelectorOrNode : componentFactory.selector);\n if (isPresent(onDispose)) {\n componentRef.onDestroy(onDispose);\n }\n return componentRef;\n });\n }\n\n loadNextToLocation(\n type: Type, location: ViewContainerRef, providers: ResolvedReflectiveProvider[] = null,\n projectableNodes: any[][] = null): Promise<ComponentRef<any>> {\n return this._compiler.resolveComponent(type).then(componentFactory => {\n var contextInjector = location.parentInjector;\n var childInjector = isPresent(providers) && providers.length > 0 ?\n ReflectiveInjector.fromResolvedProviders(providers, contextInjector) :\n contextInjector;\n return location.createComponent(\n componentFactory, location.length, childInjector, projectableNodes);\n });\n }\n/** @nocollapse */\nstatic decorators: DecoratorInvocation[] = [\n{ type: Injectable },\n];\n/** @nocollapse */\nstatic ctorParameters: {type: Function, decorators?: DecoratorInvocation[]}[] = [\n{type: ComponentResolver, },\n];\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -1 +1 @@
1
- {"__symbolic":"module","metadata":{"DynamicComponentLoader_":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Injectable","module":"../di/decorators"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ComponentResolver","module":"./component_resolver"}]}]}}}}
1
+ {"__symbolic":"module","version":1,"metadata":{"DynamicComponentLoader_":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../di/decorators","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./component_resolver","name":"ComponentResolver"}]}],"loadAsRoot":[{"__symbolic":"method"}],"loadNextToLocation":[{"__symbolic":"method"}]}}}}
@@ -1,8 +1,8 @@
1
- import { AppView } from './view';
1
+ import { Injector } from '../di/injector';
2
2
  import { ElementRef } from './element_ref';
3
- import { ViewContainerRef_ } from './view_container_ref';
4
3
  import { QueryList } from './query_list';
5
- import { Injector } from '../di/injector';
4
+ import { AppView } from './view';
5
+ import { ViewContainerRef_ } from './view_container_ref';
6
6
  /**
7
7
  * An AppElement is created for elements that have a ViewContainerRef,
8
8
  * a nested component or a <template> element to keep data around
@@ -1,9 +1,9 @@
1
- import { isPresent } from '../../src/facade/lang';
2
- import { ListWrapper } from '../../src/facade/collection';
3
- import { BaseException } from '../../src/facade/exceptions';
4
- import { ViewType } from './view_type';
1
+ import { ListWrapper } from '../facade/collection';
2
+ import { BaseException } from '../facade/exceptions';
3
+ import { isPresent } from '../facade/lang';
5
4
  import { ElementRef } from './element_ref';
6
5
  import { ViewContainerRef_ } from './view_container_ref';
6
+ import { ViewType } from './view_type';
7
7
  /**
8
8
  * An AppElement is created for elements that have a ViewContainerRef,
9
9
  * a nested component or a <template> element to keep data around
@@ -66,7 +66,7 @@ export class AppElement {
66
66
  if (view.type === ViewType.COMPONENT) {
67
67
  throw new BaseException(`Component views can't be moved!`);
68
68
  }
69
- view.renderer.detachView(view.flatRootNodes);
69
+ view.detach();
70
70
  view.removeFromContentChildren(this);
71
71
  return view;
72
72
  }
@@ -1 +1 @@
1
- {"version":3,"file":"element.js","sourceRoot":"/Users/iminar/Dev/angular/modules/@angular/core/","sources":["src/linker/element.ts"],"names":[],"mappings":"OAIS,EAAC,SAAS,EAAC,MAAM,uBAAuB;OAC1C,EAAC,WAAW,EAAC,MAAM,6BAA6B;OAChD,EAAC,aAAa,EAAC,MAAM,6BAA6B;OAGlD,EAAC,QAAQ,EAAC,MAAM,aAAa;OAC7B,EAAC,UAAU,EAAC,MAAM,eAAe;OAEjC,EAAC,iBAAiB,EAAC,MAAM,sBAAsB;AAKtD;;;;GAIG;AACH;IAOE,YAAmB,KAAa,EAAS,WAAmB,EAAS,UAAwB,EAC1E,aAAkB;QADlB,UAAK,GAAL,KAAK,CAAQ;QAAS,gBAAW,GAAX,WAAW,CAAQ;QAAS,eAAU,GAAV,UAAU,CAAc;QAC1E,kBAAa,GAAb,aAAa,CAAK;QAP9B,gBAAW,GAAmB,IAAI,CAAC;QACnC,kBAAa,GAAiB,IAAI,CAAC;IAMF,CAAC;IAEzC,IAAI,UAAU,KAAiB,MAAM,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAE3E,IAAI,KAAK,KAAwB,MAAM,CAAC,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IA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AAI,IAAI,GAAG,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;QAC7D,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;YACrC,MAAM,IAAI,aAAa,CAAC,iCAAiC,CAAC,CAAC;QAC7D,CAAC;QACD,IAAI,CAAC,MAAM,EAAE,CAAC;QAEd,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;QACrC,MAAM,CAAC,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAAA","sourcesContent":["import {Injector} from '../di/injector';\nimport {ListWrapper} from '../facade/collection';\nimport {BaseException} from '../facade/exceptions';\nimport {isPresent} from '../facade/lang';\n\nimport {ElementRef} from './element_ref';\nimport {QueryList} from './query_list';\nimport {AppView} from './view';\nimport {ViewContainerRef_} from './view_container_ref';\nimport {ViewType} from './view_type';\n\n\n/**\n * An AppElement is created for elements that have a ViewContainerRef,\n * a nested component or a <template> element to keep data around\n * that is needed for later instantiations.\n */\nexport class AppElement {\n public nestedViews: AppView<any>[] = null;\n public componentView: AppView<any> = null;\n\n public component: any;\n public componentConstructorViewQueries: QueryList<any>[];\n\n constructor(\n public index: number, public parentIndex: number, public parentView: AppView<any>,\n public nativeElement: any) {}\n\n get elementRef(): ElementRef { return new ElementRef(this.nativeElement); }\n\n get vcRef(): ViewContainerRef_ { return new ViewContainerRef_(this); }\n\n initComponent(\n component: any, componentConstructorViewQueries: QueryList<any>[], view: AppView<any>) {\n this.component = component;\n this.componentConstructorViewQueries = componentConstructorViewQueries;\n this.componentView = view;\n }\n\n get parentInjector(): Injector { return this.parentView.injector(this.parentIndex); }\n get injector(): Injector { return this.parentView.injector(this.index); }\n\n mapNestedViews(nestedViewClass: any, callback: Function): any[] {\n var result: any[] /** TODO #9100 */ = [];\n if (isPresent(this.nestedViews)) {\n this.nestedViews.forEach((nestedView) => {\n if (nestedView.clazz === nestedViewClass) {\n result.push(callback(nestedView));\n }\n });\n }\n return result;\n }\n\n\n attachView(view: AppView<any>, viewIndex: number) {\n if (view.type === ViewType.COMPONENT) {\n throw new BaseException(`Component views can't be moved!`);\n }\n var nestedViews = this.nestedViews;\n if (nestedViews == null) {\n nestedViews = [];\n this.nestedViews = nestedViews;\n }\n ListWrapper.insert(nestedViews, viewIndex, view);\n var refRenderNode: any /** TODO #9100 */;\n if (viewIndex > 0) {\n var prevView = nestedViews[viewIndex - 1];\n refRenderNode = prevView.lastRootNode;\n } else {\n refRenderNode = this.nativeElement;\n }\n if (isPresent(refRenderNode)) {\n view.renderer.attachViewAfter(refRenderNode, view.flatRootNodes);\n }\n view.addToContentChildren(this);\n }\n\n detachView(viewIndex: number): AppView<any> {\n var view = ListWrapper.removeAt(this.nestedViews, viewIndex);\n if (view.type === ViewType.COMPONENT) {\n throw new BaseException(`Component views can't be moved!`);\n }\n view.detach();\n\n view.removeFromContentChildren(this);\n return view;\n }\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"element_injector.js","sourceRoot":"/Users/iminar/Dev/angular/modules/@angular/core/","sources":["src/linker/element_injector.ts"],"names":[],"mappings":"OAIS,EAAC,QAAQ,EAAE,kBAAkB,EAAC,MAAM,gBAAgB;AAG7D,MAAM,UAAU,GAAsB,IAAI,MAAM,EAAE,CAAC;AAEnD,qCAAqC,QAAQ;IAC3C,YAAoB,KAAmB,EAAU,UAAkB;QAAI,OAAO,CAAC;QAA3D,UAAK,GAAL,KAAK,CAAc;QAAU,eAAU,GAAV,UAAU,CAAQ;IAAa,CAAC;IAEjF,GAAG,CAAC,KAAU,EAAE,aAAa,GAAQ,kBAAkB;QACrD,IAAI,MAAM,GAAG,UAAU,CAAC;QACxB,EAAE,CAAC,CAAC,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC;YAC1B,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QACtE,CAAC;QACD,EAAE,CAAC,CAAC,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC;YAC1B,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;QAC/D,CAAC;QACD,MAAM,CAAC,MAAM,CAAC;IAChB,CAAC;AACH,CAAC;AAAA"}
1
+ {"version":3,"file":"element_injector.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/linker/element_injector.ts"],"names":[],"mappings":"OAAO,EAAC,QAAQ,EAAE,kBAAkB,EAAC,MAAM,gBAAgB;AAG3D,MAAM,UAAU,GAAsB,IAAI,MAAM,EAAE,CAAC;AAEnD,qCAAqC,QAAQ;IAC3C,YAAoB,KAAmB,EAAU,UAAkB;QAAI,OAAO,CAAC;QAA3D,UAAK,GAAL,KAAK,CAAc;QAAU,eAAU,GAAV,UAAU,CAAQ;IAAa,CAAC;IAEjF,GAAG,CAAC,KAAU,EAAE,aAAa,GAAQ,kBAAkB;QACrD,IAAI,MAAM,GAAG,UAAU,CAAC;QACxB,EAAE,CAAC,CAAC,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC;YAC1B,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QACtE,CAAC;QACD,EAAE,CAAC,CAAC,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC;YAC1B,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;QAC/D,CAAC;QACD,MAAM,CAAC,MAAM,CAAC;IAChB,CAAC;AACH,CAAC;AAAA","sourcesContent":["import {Injector, THROW_IF_NOT_FOUND} from '../di/injector';\nimport {AppView} from './view';\n\nconst _UNDEFINED = /*@ts2dart_const*/ new Object();\n\nexport class ElementInjector extends Injector {\n constructor(private _view: AppView<any>, private _nodeIndex: number) { super(); }\n\n get(token: any, notFoundValue: any = THROW_IF_NOT_FOUND): any {\n var result = _UNDEFINED;\n if (result === _UNDEFINED) {\n result = this._view.injectorGet(token, this._nodeIndex, _UNDEFINED);\n }\n if (result === _UNDEFINED) {\n result = this._view.parentInjector.get(token, notFoundValue);\n }\n return result;\n }\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -23,6 +23,7 @@ export declare class ElementRef {
23
23
  * web worker.
24
24
  * </p>
25
25
  * </div>
26
+ * @stable
26
27
  */
27
28
  nativeElement: any;
28
29
  constructor(nativeElement: any);
@@ -1,9 +1,9 @@
1
1
  /**
2
- * A wrapper around a native element inside of a View.
3
- *
4
- * An `ElementRef` is backed by a render-specific element. In the browser, this is usually a DOM
5
- * element.
6
- */
2
+ * A wrapper around a native element inside of a View.
3
+ *
4
+ * An `ElementRef` is backed by a render-specific element. In the browser, this is usually a DOM
5
+ * element.
6
+ */
7
7
  // Note: We don't expose things like `Injector`, `ViewContainer`, ... here,
8
8
  // i.e. users have to ask for what they need. With that, we can build better analysis tools
9
9
  // and could do better codegen in the future.
@@ -1 +1 @@
1
- {"version":3,"file":"element_ref.js","sourceRoot":"/Users/iminar/Dev/angular/modules/@angular/core/","sources":["src/linker/element_ref.ts"],"names":[],"mappings":"AAIE;;;;;EAKC;AACH,2EAA2E;AAC3E,2FAA2F;AAC3F,6CAA6C;AAC7C;IAsBE,YAAY,aAAkB;QAAI,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IAAC,CAAC;AACzE,CAAC;AAAA"}
1
+ {"version":3,"file":"element_ref.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/linker/element_ref.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,2EAA2E;AAC3E,2FAA2F;AAC3F,6CAA6C;AAC7C;IAuBE,YAAY,aAAkB;QAAI,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IAAC,CAAC;AACzE,CAAC;AAAA","sourcesContent":["/**\n * A wrapper around a native element inside of a View.\n *\n * An `ElementRef` is backed by a render-specific element. In the browser, this is usually a DOM\n * element.\n */\n// Note: We don't expose things like `Injector`, `ViewContainer`, ... here,\n// i.e. users have to ask for what they need. With that, we can build better analysis tools\n// and could do better codegen in the future.\nexport class ElementRef {\n /**\n * The underlying native element or `null` if direct access to native elements is not supported\n * (e.g. when the application runs in a web worker).\n *\n * <div class=\"callout is-critical\">\n * <header>Use with caution</header>\n * <p>\n * Use this API as the last resort when direct access to DOM is needed. Use templating and\n * data-binding provided by Angular instead. Alternatively you take a look at {@link Renderer}\n * which provides API that can safely be used even when direct access to native elements is not\n * supported.\n * </p>\n * <p>\n * Relying on direct DOM access creates tight coupling between your application and rendering\n * layers which will make it impossible to separate the two and deploy your application into a\n * web worker.\n * </p>\n * </div>\n * @stable\n */\n public nativeElement: any;\n\n constructor(nativeElement: any) { this.nativeElement = nativeElement; }\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { BaseException, WrappedException } from '../../src/facade/exceptions';
1
+ import { BaseException, WrappedException } from '../facade/exceptions';
2
2
  /**
3
3
  * An error thrown if application changes model breaking the top-down data flow.
4
4
  *
@@ -31,6 +31,7 @@ import { BaseException, WrappedException } from '../../src/facade/exceptions';
31
31
  * }
32
32
  * }
33
33
  * ```
34
+ * @stable
34
35
  */
35
36
  export declare class ExpressionChangedAfterItHasBeenCheckedException extends BaseException {
36
37
  constructor(oldValue: any, currValue: any, context: any);
@@ -40,6 +41,7 @@ export declare class ExpressionChangedAfterItHasBeenCheckedException extends Bas
40
41
  *
41
42
  * This error wraps the original exception to attach additional contextual information that can
42
43
  * be useful for debugging.
44
+ * @stable
43
45
  */
44
46
  export declare class ViewWrappedException extends WrappedException {
45
47
  constructor(originalException: any, originalStack: any, context: any);
@@ -50,6 +52,7 @@ export declare class ViewWrappedException extends WrappedException {
50
52
  * This error indicates a bug in the framework.
51
53
  *
52
54
  * This is an internal Angular error.
55
+ * @stable
53
56
  */
54
57
  export declare class ViewDestroyedException extends BaseException {
55
58
  constructor(details: string);
@@ -1,4 +1,4 @@
1
- import { BaseException, WrappedException } from '../../src/facade/exceptions';
1
+ import { BaseException, WrappedException } from '../facade/exceptions';
2
2
  /**
3
3
  * An error thrown if application changes model breaking the top-down data flow.
4
4
  *
@@ -31,6 +31,7 @@ import { BaseException, WrappedException } from '../../src/facade/exceptions';
31
31
  * }
32
32
  * }
33
33
  * ```
34
+ * @stable
34
35
  */
35
36
  export class ExpressionChangedAfterItHasBeenCheckedException extends BaseException {
36
37
  constructor(oldValue, currValue, context) {
@@ -43,6 +44,7 @@ export class ExpressionChangedAfterItHasBeenCheckedException extends BaseExcepti
43
44
  *
44
45
  * This error wraps the original exception to attach additional contextual information that can
45
46
  * be useful for debugging.
47
+ * @stable
46
48
  */
47
49
  export class ViewWrappedException extends WrappedException {
48
50
  constructor(originalException, originalStack, context) {
@@ -55,6 +57,7 @@ export class ViewWrappedException extends WrappedException {
55
57
  * This error indicates a bug in the framework.
56
58
  *
57
59
  * This is an internal Angular error.
60
+ * @stable
58
61
  */
59
62
  export class ViewDestroyedException extends BaseException {
60
63
  constructor(details) {
@@ -1 +1 @@
1
- {"version":3,"file":"exceptions.js","sourceRoot":"/Users/iminar/Dev/angular/modules/@angular/core/","sources":["src/linker/exceptions.ts"],"names":[],"mappings":"OAIS,EAAC,aAAa,EAAE,gBAAgB,EAAC,MAAM,6BAA6B;AAE7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,qEAAqE,aAAa;IAChF,YAAY,QAAa,EAAE,SAAc,EAAE,OAAY;QACrD,MAAM,+CAA+C;YAC/C,oBAAoB,QAAQ,sBAAsB,SAAS,GAAG,CAAC,CAAC;IACxE,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,0CAA0C,gBAAgB;IACxD,YAAY,iBAAsB,EAAE,aAAkB,EAAE,OAAY;QAClE,MAAM,YAAY,OAAO,CAAC,MAAM,EAAE,EAAE,iBAAiB,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;AACH,CAAC;AAED;;;;;;GAMG;AACH,4CAA4C,aAAa;IACvD,YAAY,OAAe;QAAI,MAAM,oCAAoC,OAAO,EAAE,CAAC,CAAC;IAAC,CAAC;AACxF,CAAC;AAAA"}
1
+ {"version":3,"file":"exceptions.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/linker/exceptions.ts"],"names":[],"mappings":"OAAO,EAAC,aAAa,EAAE,gBAAgB,EAAC,MAAM,sBAAsB;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qEAAqE,aAAa;IAChF,YAAY,QAAa,EAAE,SAAc,EAAE,OAAY;QACrD,MACI,+CAA+C;YAC/C,oBAAoB,QAAQ,sBAAsB,SAAS,GAAG,CAAC,CAAC;IACtE,CAAC;AACH,CAAC;AAED;;;;;;GAMG;AACH,0CAA0C,gBAAgB;IACxD,YAAY,iBAAsB,EAAE,aAAkB,EAAE,OAAY;QAClE,MAAM,YAAY,OAAO,CAAC,MAAM,EAAE,EAAE,iBAAiB,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;AACH,CAAC;AAED;;;;;;;GAOG;AACH,4CAA4C,aAAa;IACvD,YAAY,OAAe;QAAI,MAAM,oCAAoC,OAAO,EAAE,CAAC,CAAC;IAAC,CAAC;AACxF,CAAC;AAAA","sourcesContent":["import {BaseException, WrappedException} from '../facade/exceptions';\n\n/**\n * An error thrown if application changes model breaking the top-down data flow.\n *\n * This exception is only thrown in dev mode.\n *\n * <!-- TODO: Add a link once the dev mode option is configurable -->\n *\n * ### Example\n *\n * ```typescript\n * @Component({\n * selector: 'parent',\n * template: `\n * <child [prop]=\"parentProp\"></child>\n * `,\n * directives: [forwardRef(() => Child)]\n * })\n * class Parent {\n * parentProp = \"init\";\n * }\n *\n * @Directive({selector: 'child', inputs: ['prop']})\n * class Child {\n * constructor(public parent: Parent) {}\n *\n * set prop(v) {\n * // this updates the parent property, which is disallowed during change detection\n * // this will result in ExpressionChangedAfterItHasBeenCheckedException\n * this.parent.parentProp = \"updated\";\n * }\n * }\n * ```\n * @stable\n */\nexport class ExpressionChangedAfterItHasBeenCheckedException extends BaseException {\n constructor(oldValue: any, currValue: any, context: any) {\n super(\n `Expression has changed after it was checked. ` +\n `Previous value: '${oldValue}'. Current value: '${currValue}'`);\n }\n}\n\n/**\n * Thrown when an exception was raised during view creation, change detection or destruction.\n *\n * This error wraps the original exception to attach additional contextual information that can\n * be useful for debugging.\n * @stable\n */\nexport class ViewWrappedException extends WrappedException {\n constructor(originalException: any, originalStack: any, context: any) {\n super(`Error in ${context.source}`, originalException, originalStack, context);\n }\n}\n\n/**\n * Thrown when a destroyed view is used.\n *\n * This error indicates a bug in the framework.\n *\n * This is an internal Angular error.\n * @stable\n */\nexport class ViewDestroyedException extends BaseException {\n constructor(details: string) { super(`Attempt to use a destroyed view: ${details}`); }\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { Observable } from '../../src/facade/async';
1
+ import { Observable } from '../facade/async';
2
2
  /**
3
3
  * An unmodifiable list of items that Angular keeps up to date when the state
4
4
  * of the application changes.
@@ -17,11 +17,10 @@ import { Observable } from '../../src/facade/async';
17
17
  * ```typescript
18
18
  * @Component({...})
19
19
  * class Container {
20
- * constructor(@Query(Item) items: QueryList<Item>) {
21
- * items.changes.subscribe(_ => console.log(items.length));
22
- * }
20
+ * @ViewChildren(Item) items:QueryList<Item>;
23
21
  * }
24
22
  * ```
23
+ * @stable
25
24
  */
26
25
  export declare class QueryList<T> {
27
26
  private _dirty;
@@ -52,12 +51,6 @@ export declare class QueryList<T> {
52
51
  */
53
52
  toArray(): T[];
54
53
  toString(): string;
55
- /**
56
- * @internal
57
- */
58
- reset(res: Array<T | any[]>): void;
59
- /** @internal */
60
- notifyOnChanges(): void;
61
54
  /** internal */
62
55
  setDirty(): void;
63
56
  /** internal */
@@ -1,6 +1,6 @@
1
- import { ListWrapper } from '../../src/facade/collection';
2
- import { getSymbolIterator } from '../../src/facade/lang';
3
- import { EventEmitter } from '../../src/facade/async';
1
+ import { EventEmitter } from '../facade/async';
2
+ import { ListWrapper } from '../facade/collection';
3
+ import { getSymbolIterator } from '../facade/lang';
4
4
  /**
5
5
  * An unmodifiable list of items that Angular keeps up to date when the state
6
6
  * of the application changes.
@@ -19,11 +19,10 @@ import { EventEmitter } from '../../src/facade/async';
19
19
  * ```typescript
20
20
  * @Component({...})
21
21
  * class Container {
22
- * constructor(@Query(Item) items: QueryList<Item>) {
23
- * items.changes.subscribe(_ => console.log(items.length));
24
- * }
22
+ * @ViewChildren(Item) items:QueryList<Item>;
25
23
  * }
26
24
  * ```
25
+ * @stable
27
26
  */
28
27
  export class QueryList {
29
28
  constructor() {
@@ -55,7 +54,9 @@ export class QueryList {
55
54
  * converts QueryList into an array
56
55
  */
57
56
  toArray() { return ListWrapper.clone(this._results); }
58
- [getSymbolIterator()]() { return this._results[getSymbolIterator()](); }
57
+ [getSymbolIterator()]() {
58
+ return this._results[getSymbolIterator()]();
59
+ }
59
60
  toString() { return this._results.toString(); }
60
61
  /**
61
62
  * @internal
@@ -1 +1 @@
1
- {"version":3,"file":"query_list.js","sourceRoot":"/Users/iminar/Dev/angular/modules/@angular/core/","sources":["src/linker/query_list.ts"],"names":[],"mappings":"OAIS,EAAC,WAAW,EAAC,MAAM,6BAA6B;OAClD,EAAC,iBAAiB,EAAC,MAAM,uBAAuB;OAChD,EAAa,YAAY,EAAC,MAAM,wBAAwB;AAG/D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH;IAAA;QACU,WAAM,GAAG,IAAI,CAAC;QACd,aAAQ,GAAa,EAAE,CAAC;QACxB,aAAQ,GAAG,IAAI,YAAY,EAAE,CAAC;IAoDxC,CAAC;IAlDC,I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rapper} from '../facade/collection';\nimport {getSymbolIterator} from '../facade/lang';\n\n\n\n/**\n * An unmodifiable list of items that Angular keeps up to date when the state\n * of the application changes.\n *\n * The type of object that {@link QueryMetadata} and {@link ViewQueryMetadata} provide.\n *\n * Implements an iterable interface, therefore it can be used in both ES6\n * javascript `for (var i of items)` loops as well as in Angular templates with\n * `*ngFor=\"let i of myList\"`.\n *\n * Changes can be observed by subscribing to the changes `Observable`.\n *\n * NOTE: In the future this class will implement an `Observable` interface.\n *\n * ### Example ([live demo](http://plnkr.co/edit/RX8sJnQYl9FWuSCWme5z?p=preview))\n * ```typescript\n * @Component({...})\n * class Container {\n * @ViewChildren(Item) items:QueryList<Item>;\n * }\n * ```\n * @stable\n */\nexport class QueryList<T> {\n private _dirty = true;\n private _results: Array<T> = [];\n private _emitter = new EventEmitter();\n\n get changes(): Observable<any> { return this._emitter; }\n get length(): number { return this._results.length; }\n get first(): T { return ListWrapper.first(this._results); }\n get last(): T { return ListWrapper.last(this._results); }\n\n /**\n * returns a new array with the passed in function applied to each element.\n */\n map<U>(fn: (item: T) => U): U[] { return this._results.map(fn); }\n\n /**\n * returns a filtered array.\n */\n filter(fn: (item: T) => boolean): T[] { return this._results.filter(fn); }\n\n /**\n * returns a reduced value.\n */\n reduce<U>(fn: (acc: U, item: T) => U, init: U): U { return this._results.reduce(fn, init); }\n\n /**\n * executes function for each element in a query.\n */\n forEach(fn: (item: T) => void): void { this._results.forEach(fn); }\n\n /**\n * converts QueryList into an array\n */\n toArray(): T[] { return ListWrapper.clone(this._results); }\n\n [getSymbolIterator()](): any {\n return (this._results as any /** TODO #???? */)[getSymbolIterator()]();\n }\n\n toString(): string { return this._results.toString(); }\n\n /**\n * @internal\n */\n reset(res: Array<T|any[]>): void {\n this._results = ListWrapper.flatten(res);\n this._dirty = false;\n }\n\n /** @internal */\n notifyOnChanges(): void { this._emitter.emit(this); }\n\n /** internal */\n setDirty() { this._dirty = true; }\n\n /** internal */\n get dirty() { return this._dirty; }\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -0,0 +1,21 @@
1
+ import { Type } from '../facade/lang';
2
+ import { ComponentFactory } from './component_factory';
3
+ import { ComponentResolver } from './component_resolver';
4
+ /**
5
+ * Component resolver that can load components lazily
6
+ * @experimental
7
+ */
8
+ export declare class SystemJsComponentResolver implements ComponentResolver {
9
+ private _resolver;
10
+ constructor(_resolver: ComponentResolver);
11
+ resolveComponent(componentType: string | Type): Promise<ComponentFactory<any>>;
12
+ clearCache(): void;
13
+ }
14
+ /**
15
+ * Component resolver that can load component factories lazily
16
+ * @experimental
17
+ */
18
+ export declare class SystemJsCmpFactoryResolver implements ComponentResolver {
19
+ resolveComponent(componentType: string | Type): Promise<ComponentFactory<any>>;
20
+ clearCache(): void;
21
+ }
@@ -0,0 +1,44 @@
1
+ import { global, isString } from '../facade/lang';
2
+ const _SEPARATOR = '#';
3
+ /**
4
+ * Component resolver that can load components lazily
5
+ * @experimental
6
+ */
7
+ export class SystemJsComponentResolver {
8
+ constructor(_resolver) {
9
+ this._resolver = _resolver;
10
+ }
11
+ resolveComponent(componentType) {
12
+ if (isString(componentType)) {
13
+ let [module, component] = componentType.split(_SEPARATOR);
14
+ if (component === void (0)) {
15
+ // Use the default export when no component is specified
16
+ component = 'default';
17
+ }
18
+ return global
19
+ .System.import(module)
20
+ .then((module) => this._resolver.resolveComponent(module[component]));
21
+ }
22
+ return this._resolver.resolveComponent(componentType);
23
+ }
24
+ clearCache() { }
25
+ }
26
+ const FACTORY_MODULE_SUFFIX = '.ngfactory';
27
+ const FACTORY_CLASS_SUFFIX = 'NgFactory';
28
+ /**
29
+ * Component resolver that can load component factories lazily
30
+ * @experimental
31
+ */
32
+ export class SystemJsCmpFactoryResolver {
33
+ resolveComponent(componentType) {
34
+ if (isString(componentType)) {
35
+ let [module, factory] = componentType.split(_SEPARATOR);
36
+ return global
37
+ .System.import(module + FACTORY_MODULE_SUFFIX)
38
+ .then((module) => module[factory + FACTORY_CLASS_SUFFIX]);
39
+ }
40
+ return Promise.resolve(null);
41
+ }
42
+ clearCache() { }
43
+ }
44
+ //# sourceMappingURL=systemjs_component_resolver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"systemjs_component_resolver.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/linker/systemjs_component_resolver.ts"],"names":[],"mappings":"OAAO,EAAO,MAAM,EAAE,QAAQ,EAAC,MAAM,gBAAgB;AAKrD,MAAM,UAAU,GAAG,GAAG,CAAC;AAEvB;;;GAGG;AACH;IACE,YAAoB,SAA4B;QAA5B,cAAS,GAAT,SAAS,CAAmB;IAAG,CAAC;IAEpD,gBAAgB,CAAC,aAA0B;QACzC,EAAE,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;YAC5B,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,aAAa,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;YAE1D,EAAE,CAAC,CAAC,SAAS,KAAK,KAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC1B,wDAAwD;gBACxD,SAAS,GAAG,SAAS,CAAC;YACxB,CAAC;YAED,MAAM,CAAO,MAAO;iBACf,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;iBACrB,IAAI,CAAC,CAAC,MAAW,KAAK,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;QACjF,CAAC;QAED,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;IACxD,CAAC;IAED,UAAU,KAAU,CAAC;AACvB,CAAC;AAED,MAAM,qBAAqB,GAAG,YAAY,CAAC;AAC3C,MAAM,oBAAoB,GAAG,WAAW,CAAC;AAEzC;;;GAGG;AACH;IACE,gBAAgB,CAAC,aAA0B;QACzC,EAAE,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;YAC5B,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,aAAa,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;YACxD,MAAM,CAAO,MAAO;iBACf,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,qBAAqB,CAAC;iBAC7C,IAAI,CAAC,CAAC,MAAW,KAAK,MAAM,CAAC,OAAO,GAAG,oBAAoB,CAAC,CAAC,CAAC;QACrE,CAAC;QAED,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED,UAAU,KAAU,CAAC;AACvB,CAAC;AAAA","sourcesContent":["import {Type, global, isString} from '../facade/lang';\n\nimport {ComponentFactory} from './component_factory';\nimport {ComponentResolver} from './component_resolver';\n\nconst _SEPARATOR = '#';\n\n/**\n * Component resolver that can load components lazily\n * @experimental\n */\nexport class SystemJsComponentResolver implements ComponentResolver {\n constructor(private _resolver: ComponentResolver) {}\n\n resolveComponent(componentType: string|Type): Promise<ComponentFactory<any>> {\n if (isString(componentType)) {\n let [module, component] = componentType.split(_SEPARATOR);\n\n if (component === void(0)) {\n // Use the default export when no component is specified\n component = 'default';\n }\n\n return (<any>global)\n .System.import(module)\n .then((module: any) => this._resolver.resolveComponent(module[component]));\n }\n\n return this._resolver.resolveComponent(componentType);\n }\n\n clearCache(): void {}\n}\n\nconst FACTORY_MODULE_SUFFIX = '.ngfactory';\nconst FACTORY_CLASS_SUFFIX = 'NgFactory';\n\n/**\n * Component resolver that can load component factories lazily\n * @experimental\n */\nexport class SystemJsCmpFactoryResolver implements ComponentResolver {\n resolveComponent(componentType: string|Type): Promise<ComponentFactory<any>> {\n if (isString(componentType)) {\n let [module, factory] = componentType.split(_SEPARATOR);\n return (<any>global)\n .System.import(module + FACTORY_MODULE_SUFFIX)\n .then((module: any) => module[factory + FACTORY_CLASS_SUFFIX]);\n }\n\n return Promise.resolve(null);\n }\n\n clearCache(): void {}\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -1,5 +1,5 @@
1
- import { ElementRef } from './element_ref';
2
1
  import { AppElement } from './element';
2
+ import { ElementRef } from './element_ref';
3
3
  import { EmbeddedViewRef } from './view_ref';
4
4
  /**
5
5
  * Represents an Embedded Template that can be used to instantiate Embedded Views.
@@ -12,6 +12,7 @@ import { EmbeddedViewRef } from './view_ref';
12
12
  * To instantiate Embedded Views based on a Template, use
13
13
  * {@link ViewContainerRef#createEmbeddedView}, which will create the View and attach it to the
14
14
  * View Container.
15
+ * @stable
15
16
  */
16
17
  export declare abstract class TemplateRef<C> {
17
18
  /**
@@ -11,6 +11,7 @@ const EMPTY_CONTEXT = new Object();
11
11
  * To instantiate Embedded Views based on a Template, use
12
12
  * {@link ViewContainerRef#createEmbeddedView}, which will create the View and attach it to the
13
13
  * View Container.
14
+ * @stable
14
15
  */
15
16
  export class TemplateRef {
16
17
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"template_ref.js","sourceRoot":"/Users/iminar/Dev/angular/modules/@angular/core/","sources":["src/linker/template_ref.ts"],"names":[],"mappings":"OAIS,EAAC,OAAO,EAAC,MAAM,gBAAgB;AAMxC,MAAM,aAAa,GAAsB,IAAI,MAAM,EAAE,CAAC;AAEtD;;;;;;;;;;;GAWG;AACH;IACE;;;;;;;;;;OAUG;IACH,wCAAwC;IACxC,IAAI,UAAU,KAAiB,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AAG/C,CAAC;AAED,kCAAqC,WAAW;IAC9C,YAAoB,WAAuB,EAAU,YAAsB;QAAI,OAAO,CAAC;QAAnE,gBAAW,GAAX,WAAW,CAAY;QAAU,iBAAY,GAAZ,YAAY,CAAU;IAAa,CAAC;IAEzF,kBAAkB,CAAC,OAAU;QAC3B,IAAI,IAAI,GAAe,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,SAAS,EACrC,IAAI,CAAC,WAAW,CAAC,cAAc,EAAE,IAAI,CAAC,WAAW,CA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AC;IAClB,CAAC;IAED,IAAI,UAAU,KAAiB,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC;AACtE,CAAC;AAAA","sourcesContent":["import {isBlank} from '../facade/lang';\n\nimport {AppElement} from './element';\nimport {ElementRef} from './element_ref';\nimport {AppView} from './view';\nimport {EmbeddedViewRef} from './view_ref';\n\nconst EMPTY_CONTEXT = /*@ts2dart_const*/ new Object();\n\n/**\n * Represents an Embedded Template that can be used to instantiate Embedded Views.\n *\n * You can access a `TemplateRef`, in two ways. Via a directive placed on a `<template>` element (or\n * directive prefixed with `*`) and have the `TemplateRef` for this Embedded View injected into the\n * constructor of the directive using the `TemplateRef` Token. Alternatively you can query for the\n * `TemplateRef` from a Component or a Directive via {@link Query}.\n *\n * To instantiate Embedded Views based on a Template, use\n * {@link ViewContainerRef#createEmbeddedView}, which will create the View and attach it to the\n * View Container.\n * @stable\n */\nexport abstract class TemplateRef<C> {\n /**\n * The location in the View where the Embedded View logically belongs to.\n *\n * The data-binding and injection contexts of Embedded Views created from this `TemplateRef`\n * inherit from the contexts of this location.\n *\n * Typically new Embedded Views are attached to the View Container of this location, but in\n * advanced use-cases, the View can be attached to a different container while keeping the\n * data-binding and injection context from the original location.\n *\n */\n // TODO(i): rename to anchor or location\n get elementRef(): ElementRef { return null; }\n\n abstract createEmbeddedView(context: C): EmbeddedViewRef<C>;\n}\n\nexport class TemplateRef_<C> extends TemplateRef<C> {\n constructor(private _appElement: AppElement, private _viewFactory: Function) { super(); }\n\n createEmbeddedView(context: C): EmbeddedViewRef<C> {\n var view: AppView<C> = this._viewFactory(\n this._appElement.parentView.viewUtils, this._appElement.parentInjector, this._appElement);\n if (isBlank(context)) {\n context = <any>EMPTY_CONTEXT;\n }\n view.create(context, null, null);\n return view.ref;\n }\n\n get elementRef(): ElementRef { return this._appElement.elementRef; }\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -1,11 +1,13 @@
1
+ import { RenderComponentType, RenderDebugInfo, Renderer } from '../render/api';
1
2
  import { AppElement } from './element';
2
- import { Renderer, RenderComponentType, RenderDebugInfo } from '../render/api';
3
3
  import { ViewRef_ } from './view_ref';
4
4
  import { ViewType } from './view_type';
5
5
  import { ViewUtils } from './view_utils';
6
6
  import { ChangeDetectorRef, ChangeDetectionStrategy, ChangeDetectorState } from '../change_detection/change_detection';
7
7
  import { StaticNodeDebugInfo, DebugContext } from './debug_context';
8
8
  import { Injector } from '../di/injector';
9
+ import { AnimationPlayer } from '../animation/animation_player';
10
+ import { ActiveAnimationPlayersMap } from '../animation/active_animation_players_map';
9
11
  /**
10
12
  * Cost of making objects: http://jsperf.com/instantiate-size-of-object
11
13
  *
@@ -31,8 +33,11 @@ export declare abstract class AppView<T> {
31
33
  destroyed: boolean;
32
34
  renderer: Renderer;
33
35
  private _hasExternalHostElement;
36
+ activeAnimationPlayers: ActiveAnimationPlayersMap;
34
37
  context: T;
35
38
  constructor(clazz: any, componentType: RenderComponentType, type: ViewType, viewUtils: ViewUtils, parentInjector: Injector, declarationAppElement: AppElement, cdMode: ChangeDetectionStrategy);
39
+ cancelActiveAnimation(element: any, animationName: string, removeAllAnimations?: boolean): void;
40
+ registerAndStartAnimation(element: any, animationName: string, player: AnimationPlayer): void;
36
41
  create(context: T, givenProjectableNodes: Array<any | any[]>, rootSelectorOrNode: string | any): AppElement;
37
42
  /**
38
43
  * Overwritten by implementations.
@@ -54,6 +59,11 @@ export declare abstract class AppView<T> {
54
59
  * Overwritten by implementations
55
60
  */
56
61
  destroyInternal(): void;
62
+ /**
63
+ * Overwritten by implementations
64
+ */
65
+ detachInternal(): void;
66
+ detach(): void;
57
67
  readonly changeDetectorRef: ChangeDetectorRef;
58
68
  readonly parent: AppView<any>;
59
69
  readonly flatRootNodes: any[];
@@ -82,6 +92,7 @@ export declare class DebugAppView<T> extends AppView<T> {
82
92
  constructor(clazz: any, componentType: RenderComponentType, type: ViewType, viewUtils: ViewUtils, parentInjector: Injector, declarationAppElement: AppElement, cdMode: ChangeDetectionStrategy, staticNodeDebugInfos: StaticNodeDebugInfo[]);
83
93
  create(context: T, givenProjectableNodes: Array<any | any[]>, rootSelectorOrNode: string | any): AppElement;
84
94
  injectorGet(token: any, nodeIndex: number, notFoundResult: any): any;
95
+ detach(): void;
85
96
  destroyLocal(): void;
86
97
  detectChanges(throwOnChange: boolean): void;
87
98
  private _resetDebug();
@@ -1,15 +1,17 @@
1
- import { ListWrapper } from '../../src/facade/collection';
1
+ import { ObservableWrapper } from '../facade/async';
2
+ import { ListWrapper } from '../facade/collection';
3
+ import { isPresent } from '../facade/lang';
2
4
  import { AppElement } from './element';
3
- import { isPresent } from '../../src/facade/lang';
4
- import { ObservableWrapper } from '../../src/facade/async';
5
5
  import { ViewRef_ } from './view_ref';
6
6
  import { ViewType } from './view_type';
7
- import { flattenNestedViewRenderNodes, ensureSlotCount } from './view_utils';
7
+ import { ensureSlotCount, flattenNestedViewRenderNodes } from './view_utils';
8
8
  import { ChangeDetectionStrategy, ChangeDetectorState } from '../change_detection/change_detection';
9
9
  import { wtfCreateScope, wtfLeave } from '../profile/profile';
10
10
  import { ExpressionChangedAfterItHasBeenCheckedException, ViewDestroyedException, ViewWrappedException } from './exceptions';
11
11
  import { DebugContext } from './debug_context';
12
12
  import { ElementInjector } from './element_injector';
13
+ import { AnimationGroupPlayer } from '../animation/animation_group_player';
14
+ import { ActiveAnimationPlayersMap } from '../animation/active_animation_players_map';
13
15
  var _scope_check = wtfCreateScope(`AppView#check(ascii id)`);
14
16
  /**
15
17
  * Cost of making objects: http://jsperf.com/instantiate-size-of-object
@@ -31,6 +33,7 @@ export class AppView {
31
33
  // change detection will fail.
32
34
  this.cdState = ChangeDetectorState.NeverChecked;
33
35
  this.destroyed = false;
36
+ this.activeAnimationPlayers = new ActiveAnimationPlayersMap();
34
37
  this.ref = new ViewRef_(this);
35
38
  if (type === ViewType.COMPONENT || type === ViewType.HOST) {
36
39
  this.renderer = viewUtils.renderComponent(componentType);
@@ -39,6 +42,22 @@ export class AppView {
39
42
  this.renderer = declarationAppElement.parentView.renderer;
40
43
  }
41
44
  }
45
+ cancelActiveAnimation(element, animationName, removeAllAnimations = false) {
46
+ if (removeAllAnimations) {
47
+ this.activeAnimationPlayers.findAllPlayersByElement(element).forEach(player => player.destroy());
48
+ }
49
+ else {
50
+ var player = this.activeAnimationPlayers.find(element, animationName);
51
+ if (isPresent(player)) {
52
+ player.destroy();
53
+ }
54
+ }
55
+ }
56
+ registerAndStartAnimation(element, animationName, player) {
57
+ this.activeAnimationPlayers.set(element, animationName, player);
58
+ player.onDone(() => { this.activeAnimationPlayers.remove(element, animationName); });
59
+ player.play();
60
+ }
42
61
  create(context, givenProjectableNodes, rootSelectorOrNode) {
43
62
  this.context = context;
44
63
  var projectableNodes;
@@ -136,21 +155,33 @@ export class AppView {
136
155
  ObservableWrapper.dispose(this.subscriptions[i]);
137
156
  }
138
157
  this.destroyInternal();
139
- if (this._hasExternalHostElement) {
140
- this.renderer.detachView(this.flatRootNodes);
141
- }
142
- else if (isPresent(this.viewContainerElement)) {
143
- this.viewContainerElement.detachView(this.viewContainerElement.nestedViews.indexOf(this));
158
+ this.dirtyParentQueriesInternal();
159
+ if (this.activeAnimationPlayers.length == 0) {
160
+ this.renderer.destroyView(hostElement, this.allNodes);
144
161
  }
145
162
  else {
146
- this.dirtyParentQueriesInternal();
163
+ var player = new AnimationGroupPlayer(this.activeAnimationPlayers.getAllPlayers());
164
+ player.onDone(() => { this.renderer.destroyView(hostElement, this.allNodes); });
147
165
  }
148
- this.renderer.destroyView(hostElement, this.allNodes);
149
166
  }
150
167
  /**
151
168
  * Overwritten by implementations
152
169
  */
153
170
  destroyInternal() { }
171
+ /**
172
+ * Overwritten by implementations
173
+ */
174
+ detachInternal() { }
175
+ detach() {
176
+ this.detachInternal();
177
+ if (this.activeAnimationPlayers.length == 0) {
178
+ this.renderer.detachView(this.flatRootNodes);
179
+ }
180
+ else {
181
+ var player = new AnimationGroupPlayer(this.activeAnimationPlayers.getAllPlayers());
182
+ player.onDone(() => { this.renderer.detachView(this.flatRootNodes); });
183
+ }
184
+ }
154
185
  get changeDetectorRef() { return this.ref; }
155
186
  get parent() {
156
187
  return isPresent(this.declarationAppElement) ? this.declarationAppElement.parentView : null;
@@ -168,8 +199,7 @@ export class AppView {
168
199
  dirtyParentQueriesInternal() { }
169
200
  detectChanges(throwOnChange) {
170
201
  var s = _scope_check(this.clazz);
171
- if (this.cdMode === ChangeDetectionStrategy.Detached ||
172
- this.cdMode === ChangeDetectionStrategy.Checked ||
202
+ if (this.cdMode === ChangeDetectionStrategy.Checked ||
173
203
  this.cdState === ChangeDetectorState.Errored)
174
204
  return;
175
205
  if (this.destroyed) {
@@ -190,12 +220,18 @@ export class AppView {
190
220
  }
191
221
  detectContentChildrenChanges(throwOnChange) {
192
222
  for (var i = 0; i < this.contentChildren.length; ++i) {
193
- this.contentChildren[i].detectChanges(throwOnChange);
223
+ var child = this.contentChildren[i];
224
+ if (child.cdMode === ChangeDetectionStrategy.Detached)
225
+ continue;
226
+ child.detectChanges(throwOnChange);
194
227
  }
195
228
  }
196
229
  detectViewChildrenChanges(throwOnChange) {
197
230
  for (var i = 0; i < this.viewChildren.length; ++i) {
198
- this.viewChildren[i].detectChanges(throwOnChange);
231
+ var child = this.viewChildren[i];
232
+ if (child.cdMode === ChangeDetectionStrategy.Detached)
233
+ continue;
234
+ child.detectChanges(throwOnChange);
199
235
  }
200
236
  }
201
237
  addToContentChildren(renderAppElement) {
@@ -248,6 +284,16 @@ export class DebugAppView extends AppView {
248
284
  throw e;
249
285
  }
250
286
  }
287
+ detach() {
288
+ this._resetDebug();
289
+ try {
290
+ super.detach();
291
+ }
292
+ catch (e) {
293
+ this._rethrowWithContext(e, e.stack);
294
+ throw e;
295
+ }
296
+ }
251
297
  destroyLocal() {
252
298
  this._resetDebug();
253
299
  try {
@@ -284,7 +330,7 @@ export class DebugAppView extends AppView {
284
330
  }
285
331
  eventHandler(cb) {
286
332
  var superHandler = super.eventHandler(cb);
287
- return (event) => {
333
+ return (event /** TODO #9100 */) => {
288
334
  this._resetDebug();
289
335
  try {
290
336
  return superHandler(event);