@angular/core 2.0.0-rc.1 → 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 (624) hide show
  1. package/{core.umd.js → bundles/core.umd.js} +6402 -4606
  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 +96 -11
  7. package/esm/private_export.js +39 -10
  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 +2 -4
  202. package/esm/src/linker/view_utils.js +21 -21
  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.js +6 -6
  265. package/esm/src/security.js.map +1 -1
  266. package/esm/src/testability/testability.d.ts +3 -19
  267. package/esm/src/testability/testability.js +10 -5
  268. package/esm/src/testability/testability.js.map +1 -1
  269. package/esm/src/testability/testability.metadata.json +1 -1
  270. package/esm/src/util/decorators.d.ts +2 -1
  271. package/esm/src/util/decorators.js +10 -9
  272. package/esm/src/util/decorators.js.map +1 -1
  273. package/esm/src/util.js.map +1 -1
  274. package/esm/src/zone/ng_zone.d.ts +6 -17
  275. package/esm/src/zone/ng_zone.js +7 -6
  276. package/esm/src/zone/ng_zone.js.map +1 -1
  277. package/esm/src/zone/ng_zone_impl.d.ts +1 -4
  278. package/esm/src/zone/ng_zone_impl.js +3 -2
  279. package/esm/src/zone/ng_zone_impl.js.map +1 -1
  280. package/esm/src/zone.js.map +1 -1
  281. package/esm/testing/async.js +20 -22
  282. package/esm/testing/async.js.map +1 -1
  283. package/esm/testing/async.metadata.json +1 -0
  284. package/esm/testing/async_test_completer.js.map +1 -1
  285. package/esm/testing/fake_async.d.ts +4 -1
  286. package/esm/testing/fake_async.js +9 -2
  287. package/esm/testing/fake_async.js.map +1 -1
  288. package/esm/testing/lang_utils.js +1 -1
  289. package/esm/testing/lang_utils.js.map +1 -1
  290. package/esm/testing/lang_utils.metadata.json +1 -0
  291. package/esm/testing/logger.js +5 -3
  292. package/esm/testing/logger.js.map +1 -1
  293. package/esm/testing/logger.metadata.json +1 -1
  294. package/esm/testing/mock_application_ref.d.ts +1 -1
  295. package/esm/testing/mock_application_ref.js +1 -0
  296. package/esm/testing/mock_application_ref.js.map +1 -1
  297. package/esm/testing/mock_application_ref.metadata.json +1 -1
  298. package/esm/testing/ng_zone_mock.d.ts +0 -1
  299. package/esm/testing/ng_zone_mock.js +2 -1
  300. package/esm/testing/ng_zone_mock.js.map +1 -1
  301. package/esm/testing/ng_zone_mock.metadata.json +1 -1
  302. package/esm/testing/regexp.js +1 -1
  303. package/esm/testing/regexp.js.map +1 -1
  304. package/esm/testing/regexp.metadata.json +1 -0
  305. package/esm/testing/test_injector.d.ts +6 -12
  306. package/esm/testing/test_injector.js +4 -10
  307. package/esm/testing/test_injector.js.map +1 -1
  308. package/esm/testing/test_injector.metadata.json +1 -0
  309. package/esm/testing/testing.d.ts +2 -2
  310. package/esm/testing/testing.js +2 -2
  311. package/esm/testing/testing.js.map +1 -1
  312. package/esm/testing/testing.metadata.json +1 -1
  313. package/esm/testing.js.map +1 -1
  314. package/index.d.ts +5 -4
  315. package/index.js +10 -8
  316. package/index.js.map +1 -1
  317. package/package.json +5 -1
  318. package/private_export.d.ts +96 -11
  319. package/private_export.js +39 -10
  320. package/private_export.js.map +1 -1
  321. package/private_export.metadata.json +1 -1
  322. package/src/animation/active_animation_players_map.d.ts +11 -0
  323. package/src/animation/active_animation_players_map.js +54 -0
  324. package/src/animation/active_animation_players_map.js.map +1 -0
  325. package/src/animation/animation_constants.d.ts +4 -0
  326. package/src/animation/animation_constants.js +6 -0
  327. package/src/animation/animation_constants.js.map +1 -0
  328. package/src/animation/animation_constants.metadata.json +1 -0
  329. package/src/animation/animation_driver.d.ts +9 -0
  330. package/src/animation/animation_driver.js +25 -0
  331. package/src/animation/animation_driver.js.map +1 -0
  332. package/src/animation/animation_group_player.d.ts +18 -0
  333. package/src/animation/animation_group_player.js +64 -0
  334. package/src/animation/animation_group_player.js.map +1 -0
  335. package/src/animation/animation_keyframe.d.ts +6 -0
  336. package/src/animation/animation_keyframe.js +10 -0
  337. package/src/animation/animation_keyframe.js.map +1 -0
  338. package/src/animation/animation_player.d.ts +26 -0
  339. package/src/animation/animation_player.js +42 -0
  340. package/src/animation/animation_player.js.map +1 -0
  341. package/src/animation/animation_sequence_player.d.ts +21 -0
  342. package/src/animation/animation_sequence_player.js +69 -0
  343. package/src/animation/animation_sequence_player.js.map +1 -0
  344. package/src/animation/animation_style_util.d.ts +32 -0
  345. package/src/animation/animation_style_util.js +99 -0
  346. package/src/animation/animation_style_util.js.map +1 -0
  347. package/src/animation/animation_style_util.metadata.json +1 -0
  348. package/src/animation/animation_styles.d.ts +8 -0
  349. package/src/animation/animation_styles.js +9 -0
  350. package/src/animation/animation_styles.js.map +1 -0
  351. package/src/animation/metadata.d.ts +511 -0
  352. package/src/animation/metadata.js +627 -0
  353. package/src/animation/metadata.js.map +1 -0
  354. package/src/animation/metadata.metadata.json +1 -0
  355. package/src/application_common_providers.d.ts +1 -0
  356. package/src/application_common_providers.js +4 -3
  357. package/src/application_common_providers.js.map +1 -1
  358. package/src/application_common_providers.metadata.json +1 -1
  359. package/src/application_ref.d.ts +17 -41
  360. package/src/application_ref.js +30 -21
  361. package/src/application_ref.js.map +1 -1
  362. package/src/application_ref.metadata.json +1 -1
  363. package/src/application_tokens.d.ts +6 -1
  364. package/src/application_tokens.js +9 -4
  365. package/src/application_tokens.js.map +1 -1
  366. package/src/application_tokens.metadata.json +1 -1
  367. package/src/change_detection/change_detection.d.ts +9 -8
  368. package/src/change_detection/change_detection.js +21 -21
  369. package/src/change_detection/change_detection.js.map +1 -1
  370. package/src/change_detection/change_detection.metadata.json +1 -1
  371. package/src/change_detection/change_detection_util.d.ts +3 -1
  372. package/src/change_detection/change_detection_util.js +6 -5
  373. package/src/change_detection/change_detection_util.js.map +1 -1
  374. package/src/change_detection/change_detection_util.metadata.json +1 -1
  375. package/src/change_detection/change_detector_ref.d.ts +3 -0
  376. package/src/change_detection/change_detector_ref.js +3 -0
  377. package/src/change_detection/change_detector_ref.js.map +1 -1
  378. package/src/change_detection/constants.d.ts +1 -0
  379. package/src/change_detection/constants.js +4 -3
  380. package/src/change_detection/constants.js.map +1 -1
  381. package/src/change_detection/constants.metadata.json +1 -1
  382. package/src/change_detection/differs/default_iterable_differ.d.ts +6 -94
  383. package/src/change_detection/differs/default_iterable_differ.js +25 -18
  384. package/src/change_detection/differs/default_iterable_differ.js.map +1 -1
  385. package/src/change_detection/differs/default_keyvalue_differ.d.ts +3 -30
  386. package/src/change_detection/differs/default_keyvalue_differ.js +13 -8
  387. package/src/change_detection/differs/default_keyvalue_differ.js.map +1 -1
  388. package/src/change_detection/differs/iterable_differs.d.ts +4 -1
  389. package/src/change_detection/differs/iterable_differs.js +4 -3
  390. package/src/change_detection/differs/iterable_differs.js.map +1 -1
  391. package/src/change_detection/differs/keyvalue_differs.d.ts +2 -1
  392. package/src/change_detection/differs/keyvalue_differs.js +4 -3
  393. package/src/change_detection/differs/keyvalue_differs.js.map +1 -1
  394. package/src/change_detection/pipe_transform.js.map +1 -1
  395. package/src/change_detection.d.ts +1 -1
  396. package/src/change_detection.js +9 -9
  397. package/src/change_detection.js.map +1 -1
  398. package/src/console.js +2 -1
  399. package/src/console.js.map +1 -1
  400. package/src/console.metadata.json +1 -1
  401. package/src/debug/debug_node.d.ts +20 -2
  402. package/src/debug/debug_node.js +16 -2
  403. package/src/debug/debug_node.js.map +1 -1
  404. package/src/debug/debug_node.metadata.json +1 -0
  405. package/src/debug/debug_renderer.d.ts +10 -6
  406. package/src/debug/debug_renderer.js +12 -1
  407. package/src/debug/debug_renderer.js.map +1 -1
  408. package/src/di/decorators.d.ts +13 -1
  409. package/src/di/decorators.js +7 -1
  410. package/src/di/decorators.js.map +1 -1
  411. package/src/di/decorators.metadata.json +1 -1
  412. package/src/di/forward_ref.d.ts +3 -1
  413. package/src/di/forward_ref.js +3 -1
  414. package/src/di/forward_ref.js.map +1 -1
  415. package/src/di/injector.d.ts +4 -1
  416. package/src/di/injector.js +5 -2
  417. package/src/di/injector.js.map +1 -1
  418. package/src/di/injector.metadata.json +1 -1
  419. package/src/di/metadata.d.ts +8 -1
  420. package/src/di/metadata.js +10 -3
  421. package/src/di/metadata.js.map +1 -1
  422. package/src/di/opaque_token.d.ts +2 -1
  423. package/src/di/opaque_token.js +22 -21
  424. package/src/di/opaque_token.js.map +1 -1
  425. package/src/di/provider.d.ts +11 -10
  426. package/src/di/provider.js +17 -14
  427. package/src/di/provider.js.map +1 -1
  428. package/src/di/provider.metadata.json +1 -0
  429. package/src/di/provider_util.js.map +1 -1
  430. package/src/di/provider_util.metadata.json +1 -0
  431. package/src/di/reflective_exceptions.d.ts +11 -16
  432. package/src/di/reflective_exceptions.js +28 -22
  433. package/src/di/reflective_exceptions.js.map +1 -1
  434. package/src/di/reflective_injector.d.ts +3 -33
  435. package/src/di/reflective_injector.js +9 -6
  436. package/src/di/reflective_injector.js.map +1 -1
  437. package/src/di/reflective_key.d.ts +1 -8
  438. package/src/di/reflective_key.js +3 -2
  439. package/src/di/reflective_key.js.map +1 -1
  440. package/src/di/reflective_provider.d.ts +2 -1
  441. package/src/di/reflective_provider.js +6 -5
  442. package/src/di/reflective_provider.js.map +1 -1
  443. package/src/di/reflective_provider.metadata.json +1 -0
  444. package/src/di.d.ts +2 -2
  445. package/src/di.js +7 -9
  446. package/src/di.js.map +1 -1
  447. package/src/facade/async.d.ts +11 -4
  448. package/src/facade/async.js +27 -17
  449. package/src/facade/async.js.map +1 -1
  450. package/src/facade/base_wrapped_exception.js +4 -4
  451. package/src/facade/base_wrapped_exception.js.map +1 -1
  452. package/src/facade/collection.js.map +1 -1
  453. package/src/facade/collection.metadata.json +1 -1
  454. package/src/facade/exception_handler.d.ts +2 -11
  455. package/src/facade/exception_handler.js +8 -7
  456. package/src/facade/exception_handler.js.map +1 -1
  457. package/src/facade/exceptions.d.ts +4 -0
  458. package/src/facade/exceptions.js +6 -2
  459. package/src/facade/exceptions.js.map +1 -1
  460. package/src/facade/exceptions.metadata.json +1 -0
  461. package/src/facade/lang.d.ts +6 -4
  462. package/src/facade/lang.js +12 -11
  463. package/src/facade/lang.js.map +1 -1
  464. package/src/facade/lang.metadata.json +1 -1
  465. package/src/facade/math.d.ts +2 -0
  466. package/src/facade/math.js +5 -0
  467. package/src/facade/math.js.map +1 -0
  468. package/src/facade/math.metadata.json +1 -0
  469. package/src/facade/promise.js.map +1 -1
  470. package/src/linker/component_factory.d.ts +5 -4
  471. package/src/linker/component_factory.js +7 -3
  472. package/src/linker/component_factory.js.map +1 -1
  473. package/src/linker/component_resolver.d.ts +5 -4
  474. package/src/linker/component_resolver.js +12 -7
  475. package/src/linker/component_resolver.js.map +1 -1
  476. package/src/linker/component_resolver.metadata.json +1 -1
  477. package/src/linker/debug_context.js +5 -4
  478. package/src/linker/debug_context.js.map +1 -1
  479. package/src/linker/dynamic_component_loader.d.ts +5 -6
  480. package/src/linker/dynamic_component_loader.js +5 -3
  481. package/src/linker/dynamic_component_loader.js.map +1 -1
  482. package/src/linker/dynamic_component_loader.metadata.json +1 -1
  483. package/src/linker/element.d.ts +3 -3
  484. package/src/linker/element.js +5 -5
  485. package/src/linker/element.js.map +1 -1
  486. package/src/linker/element_injector.js.map +1 -1
  487. package/src/linker/element_ref.d.ts +1 -0
  488. package/src/linker/element_ref.js +5 -5
  489. package/src/linker/element_ref.js.map +1 -1
  490. package/src/linker/exceptions.d.ts +4 -1
  491. package/src/linker/exceptions.js +4 -1
  492. package/src/linker/exceptions.js.map +1 -1
  493. package/src/linker/query_list.d.ts +3 -10
  494. package/src/linker/query_list.js +8 -7
  495. package/src/linker/query_list.js.map +1 -1
  496. package/src/linker/systemjs_component_resolver.d.ts +21 -0
  497. package/src/linker/systemjs_component_resolver.js +52 -0
  498. package/src/linker/systemjs_component_resolver.js.map +1 -0
  499. package/src/linker/template_ref.d.ts +2 -1
  500. package/src/linker/template_ref.js +1 -0
  501. package/src/linker/template_ref.js.map +1 -1
  502. package/src/linker/view.d.ts +12 -1
  503. package/src/linker/view.js +65 -15
  504. package/src/linker/view.js.map +1 -1
  505. package/src/linker/view_container_ref.d.ts +2 -10
  506. package/src/linker/view_container_ref.js +4 -3
  507. package/src/linker/view_container_ref.js.map +1 -1
  508. package/src/linker/view_ref.d.ts +5 -1
  509. package/src/linker/view_ref.js +6 -2
  510. package/src/linker/view_ref.js.map +1 -1
  511. package/src/linker/view_type.js.map +1 -1
  512. package/src/linker/view_utils.d.ts +2 -4
  513. package/src/linker/view_utils.js +21 -21
  514. package/src/linker/view_utils.js.map +1 -1
  515. package/src/linker/view_utils.metadata.json +1 -1
  516. package/src/linker.d.ts +5 -4
  517. package/src/linker.js +12 -9
  518. package/src/linker.js.map +1 -1
  519. package/src/metadata/di.d.ts +8 -1
  520. package/src/metadata/di.js +10 -3
  521. package/src/metadata/di.js.map +1 -1
  522. package/src/metadata/directives.d.ts +104 -20
  523. package/src/metadata/directives.js +25 -27
  524. package/src/metadata/directives.js.map +1 -1
  525. package/src/metadata/lifecycle_hooks.d.ts +46 -31
  526. package/src/metadata/lifecycle_hooks.js +496 -10
  527. package/src/metadata/lifecycle_hooks.js.map +1 -1
  528. package/src/metadata/lifecycle_hooks.metadata.json +1 -1
  529. package/src/metadata/view.d.ts +6 -2
  530. package/src/metadata/view.js +3 -1
  531. package/src/metadata/view.js.map +1 -1
  532. package/src/metadata/view.metadata.json +1 -1
  533. package/src/metadata.d.ts +49 -15
  534. package/src/metadata.js +70 -37
  535. package/src/metadata.js.map +1 -1
  536. package/src/metadata.metadata.json +1 -1
  537. package/src/platform_common_providers.d.ts +1 -0
  538. package/src/platform_common_providers.js +3 -3
  539. package/src/platform_common_providers.js.map +1 -1
  540. package/src/platform_common_providers.metadata.json +1 -1
  541. package/src/platform_directives_and_pipes.d.ts +48 -45
  542. package/src/platform_directives_and_pipes.js +50 -47
  543. package/src/platform_directives_and_pipes.js.map +1 -1
  544. package/src/platform_directives_and_pipes.metadata.json +1 -1
  545. package/src/profile/profile.d.ts +5 -1
  546. package/src/profile/profile.js +5 -3
  547. package/src/profile/profile.js.map +1 -1
  548. package/src/profile/profile.metadata.json +1 -1
  549. package/src/profile/wtf_impl.js +1 -1
  550. package/src/profile/wtf_impl.js.map +1 -1
  551. package/src/profile/wtf_impl.metadata.json +1 -0
  552. package/src/profile/wtf_init.js +2 -2
  553. package/src/profile/wtf_init.js.map +1 -1
  554. package/src/reflection/platform_reflection_capabilities.d.ts +4 -3
  555. package/src/reflection/platform_reflection_capabilities.js.map +1 -1
  556. package/src/reflection/reflection.d.ts +1 -1
  557. package/src/reflection/reflection.js +2 -2
  558. package/src/reflection/reflection.js.map +1 -1
  559. package/src/reflection/reflection.metadata.json +1 -1
  560. package/src/reflection/reflection_capabilities.d.ts +4 -5
  561. package/src/reflection/reflection_capabilities.js +24 -10
  562. package/src/reflection/reflection_capabilities.js.map +1 -1
  563. package/src/reflection/reflector.d.ts +8 -20
  564. package/src/reflection/reflector.js +13 -3
  565. package/src/reflection/reflector.js.map +1 -1
  566. package/src/reflection/reflector_reader.js +3 -3
  567. package/src/reflection/reflector_reader.js.map +1 -1
  568. package/src/reflection/types.js.map +1 -1
  569. package/src/render/api.d.ts +17 -6
  570. package/src/render/api.js +8 -1
  571. package/src/render/api.js.map +1 -1
  572. package/src/render.d.ts +1 -1
  573. package/src/render.js +2 -2
  574. package/src/render.js.map +1 -1
  575. package/src/security.js +6 -6
  576. package/src/security.js.map +1 -1
  577. package/src/testability/testability.d.ts +3 -19
  578. package/src/testability/testability.js +10 -5
  579. package/src/testability/testability.js.map +1 -1
  580. package/src/testability/testability.metadata.json +1 -1
  581. package/src/util/decorators.d.ts +2 -1
  582. package/src/util/decorators.js +10 -9
  583. package/src/util/decorators.js.map +1 -1
  584. package/src/util.js.map +1 -1
  585. package/src/zone/ng_zone.d.ts +6 -17
  586. package/src/zone/ng_zone.js +11 -6
  587. package/src/zone/ng_zone.js.map +1 -1
  588. package/src/zone/ng_zone_impl.d.ts +1 -4
  589. package/src/zone/ng_zone_impl.js +3 -2
  590. package/src/zone/ng_zone_impl.js.map +1 -1
  591. package/src/zone.js.map +1 -1
  592. package/testing/async.js +20 -22
  593. package/testing/async.js.map +1 -1
  594. package/testing/async.metadata.json +1 -0
  595. package/testing/async_test_completer.js.map +1 -1
  596. package/testing/fake_async.d.ts +4 -1
  597. package/testing/fake_async.js +10 -2
  598. package/testing/fake_async.js.map +1 -1
  599. package/testing/lang_utils.js +1 -1
  600. package/testing/lang_utils.js.map +1 -1
  601. package/testing/lang_utils.metadata.json +1 -0
  602. package/testing/logger.js +5 -3
  603. package/testing/logger.js.map +1 -1
  604. package/testing/logger.metadata.json +1 -1
  605. package/testing/mock_application_ref.d.ts +1 -1
  606. package/testing/mock_application_ref.js +1 -0
  607. package/testing/mock_application_ref.js.map +1 -1
  608. package/testing/mock_application_ref.metadata.json +1 -1
  609. package/testing/ng_zone_mock.d.ts +0 -1
  610. package/testing/ng_zone_mock.js +2 -1
  611. package/testing/ng_zone_mock.js.map +1 -1
  612. package/testing/ng_zone_mock.metadata.json +1 -1
  613. package/testing/regexp.js +1 -1
  614. package/testing/regexp.js.map +1 -1
  615. package/testing/regexp.metadata.json +1 -0
  616. package/testing/test_injector.d.ts +6 -12
  617. package/testing/test_injector.js +3 -9
  618. package/testing/test_injector.js.map +1 -1
  619. package/testing/test_injector.metadata.json +1 -0
  620. package/testing/testing.d.ts +2 -2
  621. package/testing/testing.js +5 -5
  622. package/testing/testing.js.map +1 -1
  623. package/testing/testing.metadata.json +1 -1
  624. package/testing.js.map +1 -1
@@ -1,50 +1,53 @@
1
1
  import { OpaqueToken } from './di';
2
2
  /**
3
- * A token that can be provided when bootstraping an application to make an array of directives
4
- * available in every component of the application.
5
- *
6
- * ### Example
7
- *
8
- * ```typescript
9
- * import {PLATFORM_DIRECTIVES} from '@angular/core';
10
- * import {OtherDirective} from './myDirectives';
11
- *
12
- * @Component({
13
- * selector: 'my-component',
14
- * template: `
15
- * <!-- can use other directive even though the component does not list it in `directives` -->
16
- * <other-directive></other-directive>
17
- * `
18
- * })
19
- * export class MyComponent {
20
- * ...
21
- * }
22
- *
23
- * bootstrap(MyComponent, [provide(PLATFORM_DIRECTIVES, {useValue: [OtherDirective], multi:true})]);
24
- * ```
25
- */
3
+ A token that can be provided when bootstrapping an application to make an array of directives
4
+ * available in every component of the application.
5
+ *
6
+ * ### Example
7
+ *
8
+ * ```typescript
9
+ * import {PLATFORM_DIRECTIVES} from '@angular/core';
10
+ * import {OtherDirective} from './myDirectives';
11
+ *
12
+ * @Component({
13
+ * selector: 'my-component',
14
+ * template: `
15
+ * <!-- can use other directive even though the component does not list it in `directives` -->
16
+ * <other-directive></other-directive>
17
+ * `
18
+ * })
19
+ * export class MyComponent {
20
+ * ...
21
+ * }
22
+ *
23
+ * bootstrap(MyComponent, [{provide: PLATFORM_DIRECTIVES, useValue: [OtherDirective],
24
+ multi:true}]);
25
+ * ```
26
+ * @stable
27
+ */
26
28
  export declare const PLATFORM_DIRECTIVES: OpaqueToken;
27
29
  /**
28
- * A token that can be provided when bootstraping an application to make an array of pipes
29
- * available in every component of the application.
30
- *
31
- * ### Example
32
- *
33
- * ```typescript
34
- * import {PLATFORM_PIPES} from '@angular/core';
35
- * import {OtherPipe} from './myPipe';
36
- *
37
- * @Component({
38
- * selector: 'my-component',
39
- * template: `
40
- * {{123 | other-pipe}}
41
- * `
42
- * })
43
- * export class MyComponent {
44
- * ...
45
- * }
46
- *
47
- * bootstrap(MyComponent, [provide(PLATFORM_PIPES, {useValue: [OtherPipe], multi:true})]);
48
- * ```
49
- */
30
+ * A token that can be provided when bootstraping an application to make an array of pipes
31
+ * available in every component of the application.
32
+ *
33
+ * ### Example
34
+ *
35
+ * ```typescript
36
+ * import {PLATFORM_PIPES} from '@angular/core';
37
+ * import {OtherPipe} from './myPipe';
38
+ *
39
+ * @Component({
40
+ * selector: 'my-component',
41
+ * template: `
42
+ * {{123 | other-pipe}}
43
+ * `
44
+ * })
45
+ * export class MyComponent {
46
+ * ...
47
+ * }
48
+ *
49
+ * bootstrap(MyComponent, [{provide: PLATFORM_PIPES, useValue: [OtherPipe], multi:true}]);
50
+ * ```
51
+ * @stable
52
+ */
50
53
  export declare const PLATFORM_PIPES: OpaqueToken;
@@ -1,53 +1,56 @@
1
1
  "use strict";
2
2
  var di_1 = require('./di');
3
3
  /**
4
- * A token that can be provided when bootstraping an application to make an array of directives
5
- * available in every component of the application.
6
- *
7
- * ### Example
8
- *
9
- * ```typescript
10
- * import {PLATFORM_DIRECTIVES} from '@angular/core';
11
- * import {OtherDirective} from './myDirectives';
12
- *
13
- * @Component({
14
- * selector: 'my-component',
15
- * template: `
16
- * <!-- can use other directive even though the component does not list it in `directives` -->
17
- * <other-directive></other-directive>
18
- * `
19
- * })
20
- * export class MyComponent {
21
- * ...
22
- * }
23
- *
24
- * bootstrap(MyComponent, [provide(PLATFORM_DIRECTIVES, {useValue: [OtherDirective], multi:true})]);
25
- * ```
26
- */
4
+ A token that can be provided when bootstrapping an application to make an array of directives
5
+ * available in every component of the application.
6
+ *
7
+ * ### Example
8
+ *
9
+ * ```typescript
10
+ * import {PLATFORM_DIRECTIVES} from '@angular/core';
11
+ * import {OtherDirective} from './myDirectives';
12
+ *
13
+ * @Component({
14
+ * selector: 'my-component',
15
+ * template: `
16
+ * <!-- can use other directive even though the component does not list it in `directives` -->
17
+ * <other-directive></other-directive>
18
+ * `
19
+ * })
20
+ * export class MyComponent {
21
+ * ...
22
+ * }
23
+ *
24
+ * bootstrap(MyComponent, [{provide: PLATFORM_DIRECTIVES, useValue: [OtherDirective],
25
+ multi:true}]);
26
+ * ```
27
+ * @stable
28
+ */
27
29
  exports.PLATFORM_DIRECTIVES =
28
- /*@ts2dart_const*/ new di_1.OpaqueToken("Platform Directives");
30
+ /*@ts2dart_const*/ new di_1.OpaqueToken('Platform Directives');
29
31
  /**
30
- * A token that can be provided when bootstraping an application to make an array of pipes
31
- * available in every component of the application.
32
- *
33
- * ### Example
34
- *
35
- * ```typescript
36
- * import {PLATFORM_PIPES} from '@angular/core';
37
- * import {OtherPipe} from './myPipe';
38
- *
39
- * @Component({
40
- * selector: 'my-component',
41
- * template: `
42
- * {{123 | other-pipe}}
43
- * `
44
- * })
45
- * export class MyComponent {
46
- * ...
47
- * }
48
- *
49
- * bootstrap(MyComponent, [provide(PLATFORM_PIPES, {useValue: [OtherPipe], multi:true})]);
50
- * ```
51
- */
52
- exports.PLATFORM_PIPES = new di_1.OpaqueToken("Platform Pipes");
32
+ * A token that can be provided when bootstraping an application to make an array of pipes
33
+ * available in every component of the application.
34
+ *
35
+ * ### Example
36
+ *
37
+ * ```typescript
38
+ * import {PLATFORM_PIPES} from '@angular/core';
39
+ * import {OtherPipe} from './myPipe';
40
+ *
41
+ * @Component({
42
+ * selector: 'my-component',
43
+ * template: `
44
+ * {{123 | other-pipe}}
45
+ * `
46
+ * })
47
+ * export class MyComponent {
48
+ * ...
49
+ * }
50
+ *
51
+ * bootstrap(MyComponent, [{provide: PLATFORM_PIPES, useValue: [OtherPipe], multi:true}]);
52
+ * ```
53
+ * @stable
54
+ */
55
+ exports.PLATFORM_PIPES = new di_1.OpaqueToken('Platform Pipes');
53
56
  //# sourceMappingURL=platform_directives_and_pipes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"platform_directives_and_pipes.js","sourceRoot":"","sources":["../../../../modules/@angular/core/src/platform_directives_and_pipes.ts"],"names":[],"mappings":";AAIE,mBAA0B,MAAM,CAAC,CAAA;AAEnC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACU,2BAAmB;AAC5B,kBAAkB,CAAC,IAAI,gBAAW,CAAC,qBAAqB,CAAC,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACU,sBAAc,GAAmC,IAAI,gBAAW,CAAC,gBAAgB,CAAC,CAAC","sourcesContent":["interface DecoratorInvocation {\n type: Function;\n args?: any[];\n }\n import {OpaqueToken} from './di';\n\n/**\n * A token that can be provided when bootstraping an application to make an array of directives\n * available in every component of the application.\n *\n * ### Example\n *\n * ```typescript\n * import {PLATFORM_DIRECTIVES} from '@angular/core';\n * import {OtherDirective} from './myDirectives';\n *\n * @Component({\n * selector: 'my-component',\n * template: `\n * <!-- can use other directive even though the component does not list it in `directives` -->\n * <other-directive></other-directive>\n * `\n * })\n * export class MyComponent {\n * ...\n * }\n *\n * bootstrap(MyComponent, [provide(PLATFORM_DIRECTIVES, {useValue: [OtherDirective], multi:true})]);\n * ```\n */\nexport const PLATFORM_DIRECTIVES: OpaqueToken =\n /*@ts2dart_const*/ new OpaqueToken(\"Platform Directives\");\n\n/**\n * A token that can be provided when bootstraping an application to make an array of pipes\n * available in every component of the application.\n *\n * ### Example\n *\n * ```typescript\n * import {PLATFORM_PIPES} from '@angular/core';\n * import {OtherPipe} from './myPipe';\n *\n * @Component({\n * selector: 'my-component',\n * template: `\n * {{123 | other-pipe}}\n * `\n * })\n * export class MyComponent {\n * ...\n * }\n *\n * bootstrap(MyComponent, [provide(PLATFORM_PIPES, {useValue: [OtherPipe], multi:true})]);\n * ```\n */\nexport const PLATFORM_PIPES: OpaqueToken = /*@ts2dart_const*/ new OpaqueToken(\"Platform Pipes\");\n"]}
1
+ {"version":3,"file":"platform_directives_and_pipes.js","sourceRoot":"","sources":["../../../../modules/@angular/core/src/platform_directives_and_pipes.ts"],"names":[],"mappings":";AAAA,mBAA0B,MAAM,CAAC,CAAA;AAEjC;;;;;;;;;;;;;;;;;;;;;;;;;IAyBI;AAES,2BAAmB;AAC5B,kBAAkB,CAAC,IAAI,gBAAW,CAAC,qBAAqB,CAAC,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;IAuBI;AAES,sBAAc,GAAmC,IAAI,gBAAW,CAAC,gBAAgB,CAAC,CAAC","sourcesContent":["import {OpaqueToken} from './di';\n\n/**\n A token that can be provided when bootstrapping an application to make an array of directives\n * available in every component of the application.\n *\n * ### Example\n *\n * ```typescript\n * import {PLATFORM_DIRECTIVES} from '@angular/core';\n * import {OtherDirective} from './myDirectives';\n *\n * @Component({\n * selector: 'my-component',\n * template: `\n * <!-- can use other directive even though the component does not list it in `directives` -->\n * <other-directive></other-directive>\n * `\n * })\n * export class MyComponent {\n * ...\n * }\n *\n * bootstrap(MyComponent, [{provide: PLATFORM_DIRECTIVES, useValue: [OtherDirective],\n multi:true}]);\n * ```\n * @stable\n */\n\nexport const PLATFORM_DIRECTIVES: OpaqueToken =\n /*@ts2dart_const*/ new OpaqueToken('Platform Directives');\n\n/**\n * A token that can be provided when bootstraping an application to make an array of pipes\n * available in every component of the application.\n *\n * ### Example\n *\n * ```typescript\n * import {PLATFORM_PIPES} from '@angular/core';\n * import {OtherPipe} from './myPipe';\n *\n * @Component({\n * selector: 'my-component',\n * template: `\n * {{123 | other-pipe}}\n * `\n * })\n * export class MyComponent {\n * ...\n * }\n *\n * bootstrap(MyComponent, [{provide: PLATFORM_PIPES, useValue: [OtherPipe], multi:true}]);\n * ```\n * @stable\n */\n\nexport const PLATFORM_PIPES: OpaqueToken = /*@ts2dart_const*/ new OpaqueToken('Platform Pipes');\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -1 +1 @@
1
- {"__symbolic":"module","metadata":{"PLATFORM_DIRECTIVES":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"OpaqueToken","module":"./di"},"arguments":["Platform Directives"]},"PLATFORM_PIPES":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"OpaqueToken","module":"./di"},"arguments":["Platform Pipes"]}}}
1
+ {"__symbolic":"module","version":1,"metadata":{"PLATFORM_DIRECTIVES":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./di","name":"OpaqueToken"},"arguments":["Platform Directives"]},"PLATFORM_PIPES":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./di","name":"OpaqueToken"},"arguments":["Platform Pipes"]}}}
@@ -1,5 +1,5 @@
1
- export { WtfScopeFn } from './wtf_impl';
2
1
  import * as impl from './wtf_impl';
2
+ export { WtfScopeFn } from './wtf_impl';
3
3
  /**
4
4
  * True if WTF is enabled.
5
5
  */
@@ -32,6 +32,7 @@ export declare var wtfEnabled: boolean;
32
32
  * needs to be fixed before the app should be profiled. Add try-finally only when you expect that
33
33
  * an exception is expected during normal execution while profiling.
34
34
  *
35
+ * @experimental
35
36
  */
36
37
  export declare var wtfCreateScope: (signature: string, flags?: any) => impl.WtfScopeFn;
37
38
  /**
@@ -41,6 +42,7 @@ export declare var wtfCreateScope: (signature: string, flags?: any) => impl.WtfS
41
42
  * - `returnValue` (optional) to be passed to the WTF.
42
43
  *
43
44
  * Returns the `returnValue for easy chaining.
45
+ * @experimental
44
46
  */
45
47
  export declare var wtfLeave: <T>(scope: any, returnValue?: T) => T;
46
48
  /**
@@ -54,11 +56,13 @@ export declare var wtfLeave: <T>(scope: any, returnValue?: T) => T;
54
56
  * wtfEndTimeRange(s);
55
57
  * });
56
58
  * }
59
+ * @experimental
57
60
  */
58
61
  export declare var wtfStartTimeRange: (rangeType: string, action: string) => any;
59
62
  /**
60
63
  * Ends a async time range operation.
61
64
  * [range] is the return value from [wtfStartTimeRange] Async ranges only work if WTF has been
62
65
  * enabled.
66
+ * @experimental
63
67
  */
64
68
  export declare var wtfEndTimeRange: (range: any) => void;
@@ -36,6 +36,7 @@ function noopScope(arg0, arg1) {
36
36
  * needs to be fixed before the app should be profiled. Add try-finally only when you expect that
37
37
  * an exception is expected during normal execution while profiling.
38
38
  *
39
+ * @experimental
39
40
  */
40
41
  exports.wtfCreateScope = exports.wtfEnabled ? impl.createScope : function (signature, flags) { return noopScope; };
41
42
  /**
@@ -45,6 +46,7 @@ exports.wtfCreateScope = exports.wtfEnabled ? impl.createScope : function (signa
45
46
  * - `returnValue` (optional) to be passed to the WTF.
46
47
  *
47
48
  * Returns the `returnValue for easy chaining.
49
+ * @experimental
48
50
  */
49
51
  exports.wtfLeave = exports.wtfEnabled ? impl.leave : function (s, r) { return r; };
50
52
  /**
@@ -58,14 +60,14 @@ exports.wtfLeave = exports.wtfEnabled ? impl.leave : function (s, r) { return r;
58
60
  * wtfEndTimeRange(s);
59
61
  * });
60
62
  * }
63
+ * @experimental
61
64
  */
62
65
  exports.wtfStartTimeRange = exports.wtfEnabled ? impl.startTimeRange : function (rangeType, action) { return null; };
63
66
  /**
64
67
  * Ends a async time range operation.
65
68
  * [range] is the return value from [wtfStartTimeRange] Async ranges only work if WTF has been
66
69
  * enabled.
70
+ * @experimental
67
71
  */
68
- exports.wtfEndTimeRange = exports.wtfEnabled ? impl.endTimeRange : function (r) {
69
- return null;
70
- };
72
+ exports.wtfEndTimeRange = exports.wtfEnabled ? impl.endTimeRange : function (r) { return null; };
71
73
  //# sourceMappingURL=profile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/profile/profile.ts"],"names":[],"mappings":";AAMA,IAAY,IAAI,WAAM,YAAY,CAAC,CAAA;AAEnC,6EAA6E;AAE7E;;GAEG;AACQ,kBAAU,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;AAEzC,mBAAmB,IAAU,EAAE,IAAU;IACvC,MAAM,CAAC,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACQ,sBAAc,GACrB,kBAAU,GAAG,IAAI,CAAC,WAAW,GAAG,UAAC,SAAiB,EAAE,KAAW,IAAK,OAAA,SAAS,EAAT,CAAS,CAAC;AAElF;;;;;;;GAOG;AACQ,gBAAQ,GACf,kBAAU,GAAG,IAAI,CAAC,KAAK,GAAG,UAAC,CAAM,EAAE,CAAO,IAAK,OAAA,CAAC,EAAD,CAAC,CAAC;AAErD;;;;;;;;;;;GAWG;AACQ,yBAAiB,GACxB,kBAAU,GAAG,IAAI,CAAC,cAAc,GAAG,UAAC,SAAiB,EAAE,MAAc,IAAK,OAAA,IAAI,EAAJ,CAAI,CAAC;AAEnF;;;;GAIG;AACQ,uBAAe,GAAyB,kBAAU,GAAG,IAAI,CAAC,YAAY,GAAG,UAAC,CAAM;IACH,OAAA,IAAI;AAAJ,CAAI,CAAC","sourcesContent":["interface DecoratorInvocation {\n type: Function;\n args?: any[];\n }\n export {WtfScopeFn} from './wtf_impl';\n\nimport * as impl from './wtf_impl';\n\n// Change exports to const once https://github.com/angular/ts2dart/issues/150\n\n/**\n * True if WTF is enabled.\n */\nexport var wtfEnabled = impl.detectWTF();\n\nfunction noopScope(arg0?: any, arg1?: any): any {\n return null;\n}\n\n/**\n * Create trace scope.\n *\n * Scopes must be strictly nested and are analogous to stack frames, but\n * do not have to follow the stack frames. Instead it is recommended that they follow logical\n * nesting. You may want to use\n * [Event\n * Signatures](http://google.github.io/tracing-framework/instrumenting-code.html#custom-events)\n * as they are defined in WTF.\n *\n * Used to mark scope entry. The return value is used to leave the scope.\n *\n * var myScope = wtfCreateScope('MyClass#myMethod(ascii someVal)');\n *\n * someMethod() {\n * var s = myScope('Foo'); // 'Foo' gets stored in tracing UI\n * // DO SOME WORK HERE\n * return wtfLeave(s, 123); // Return value 123\n * }\n *\n * Note, adding try-finally block around the work to ensure that `wtfLeave` gets called can\n * negatively impact the performance of your application. For this reason we recommend that\n * you don't add them to ensure that `wtfLeave` gets called. In production `wtfLeave` is a noop and\n * so try-finally block has no value. When debugging perf issues, skipping `wtfLeave`, do to\n * exception, will produce incorrect trace, but presence of exception signifies logic error which\n * needs to be fixed before the app should be profiled. Add try-finally only when you expect that\n * an exception is expected during normal execution while profiling.\n *\n */\nexport var wtfCreateScope: (signature: string, flags?: any) => impl.WtfScopeFn =\n wtfEnabled ? impl.createScope : (signature: string, flags?: any) => noopScope;\n\n/**\n * Used to mark end of Scope.\n *\n * - `scope` to end.\n * - `returnValue` (optional) to be passed to the WTF.\n *\n * Returns the `returnValue for easy chaining.\n */\nexport var wtfLeave:<T>(scope: any, returnValue?: T) => T =\n wtfEnabled ? impl.leave : (s: any, r?: any) => r;\n\n/**\n * Used to mark Async start. Async are similar to scope but they don't have to be strictly nested.\n * The return value is used in the call to [endAsync]. Async ranges only work if WTF has been\n * enabled.\n *\n * someMethod() {\n * var s = wtfStartTimeRange('HTTP:GET', 'some.url');\n * var future = new Future.delay(5).then((_) {\n * wtfEndTimeRange(s);\n * });\n * }\n */\nexport var wtfStartTimeRange: (rangeType: string, action: string) => any =\n wtfEnabled ? impl.startTimeRange : (rangeType: string, action: string) => null;\n\n/**\n * Ends a async time range operation.\n * [range] is the return value from [wtfStartTimeRange] Async ranges only work if WTF has been\n * enabled.\n */\nexport var wtfEndTimeRange: (range: any) => void = wtfEnabled ? impl.endTimeRange : (r: any) =>\n null;\n"]}
1
+ {"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/profile/profile.ts"],"names":[],"mappings":";AAAA,IAAY,IAAI,WAAM,YAAY,CAAC,CAAA;AAKnC,6EAA6E;AAE7E;;GAEG;AACQ,kBAAU,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;AAEzC,mBAAmB,IAAU,EAAE,IAAU;IACvC,MAAM,CAAC,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACQ,sBAAc,GACrB,kBAAU,GAAG,IAAI,CAAC,WAAW,GAAG,UAAC,SAAiB,EAAE,KAAW,IAAK,OAAA,SAAS,EAAT,CAAS,CAAC;AAElF;;;;;;;;GAQG;AACQ,gBAAQ,GACf,kBAAU,GAAG,IAAI,CAAC,KAAK,GAAG,UAAC,CAAM,EAAE,CAAO,IAAK,OAAA,CAAC,EAAD,CAAC,CAAC;AAErD;;;;;;;;;;;;GAYG;AACQ,yBAAiB,GACxB,kBAAU,GAAG,IAAI,CAAC,cAAc,GAAG,UAAC,SAAiB,EAAE,MAAc,IAAK,OAAA,IAAI,EAAJ,CAAI,CAAC;AAEnF;;;;;GAKG;AACQ,uBAAe,GACtB,kBAAU,GAAG,IAAI,CAAC,YAAY,GAAG,UAAC,CAAM,IAAK,OAAA,IAAI,EAAJ,CAAI,CAAC","sourcesContent":["import * as impl from './wtf_impl';\n\nexport {WtfScopeFn} from './wtf_impl';\n\n\n// Change exports to const once https://github.com/angular/ts2dart/issues/150\n\n/**\n * True if WTF is enabled.\n */\nexport var wtfEnabled = impl.detectWTF();\n\nfunction noopScope(arg0?: any, arg1?: any): any {\n return null;\n}\n\n/**\n * Create trace scope.\n *\n * Scopes must be strictly nested and are analogous to stack frames, but\n * do not have to follow the stack frames. Instead it is recommended that they follow logical\n * nesting. You may want to use\n * [Event\n * Signatures](http://google.github.io/tracing-framework/instrumenting-code.html#custom-events)\n * as they are defined in WTF.\n *\n * Used to mark scope entry. The return value is used to leave the scope.\n *\n * var myScope = wtfCreateScope('MyClass#myMethod(ascii someVal)');\n *\n * someMethod() {\n * var s = myScope('Foo'); // 'Foo' gets stored in tracing UI\n * // DO SOME WORK HERE\n * return wtfLeave(s, 123); // Return value 123\n * }\n *\n * Note, adding try-finally block around the work to ensure that `wtfLeave` gets called can\n * negatively impact the performance of your application. For this reason we recommend that\n * you don't add them to ensure that `wtfLeave` gets called. In production `wtfLeave` is a noop and\n * so try-finally block has no value. When debugging perf issues, skipping `wtfLeave`, do to\n * exception, will produce incorrect trace, but presence of exception signifies logic error which\n * needs to be fixed before the app should be profiled. Add try-finally only when you expect that\n * an exception is expected during normal execution while profiling.\n *\n * @experimental\n */\nexport var wtfCreateScope: (signature: string, flags?: any) => impl.WtfScopeFn =\n wtfEnabled ? impl.createScope : (signature: string, flags?: any) => noopScope;\n\n/**\n * Used to mark end of Scope.\n *\n * - `scope` to end.\n * - `returnValue` (optional) to be passed to the WTF.\n *\n * Returns the `returnValue for easy chaining.\n * @experimental\n */\nexport var wtfLeave: <T>(scope: any, returnValue?: T) => T =\n wtfEnabled ? impl.leave : (s: any, r?: any) => r;\n\n/**\n * Used to mark Async start. Async are similar to scope but they don't have to be strictly nested.\n * The return value is used in the call to [endAsync]. Async ranges only work if WTF has been\n * enabled.\n *\n * someMethod() {\n * var s = wtfStartTimeRange('HTTP:GET', 'some.url');\n * var future = new Future.delay(5).then((_) {\n * wtfEndTimeRange(s);\n * });\n * }\n * @experimental\n */\nexport var wtfStartTimeRange: (rangeType: string, action: string) => any =\n wtfEnabled ? impl.startTimeRange : (rangeType: string, action: string) => null;\n\n/**\n * Ends a async time range operation.\n * [range] is the return value from [wtfStartTimeRange] Async ranges only work if WTF has been\n * enabled.\n * @experimental\n */\nexport var wtfEndTimeRange: (range: any) => void =\n wtfEnabled ? impl.endTimeRange : (r: any) => null;\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -1 +1 @@
1
- {"__symbolic":"module","metadata":{"wtfEnabled":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"detectWTF","module":"./wtf_impl"}}}}
1
+ {"__symbolic":"module","version":1,"metadata":{"wtfEnabled":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"./wtf_impl","name":"detectWTF"}},"wtfCreateScope":{"__symbolic":"error","message":"Expression form not supported","line":46,"character":80},"wtfLeave":{"__symbolic":"error","message":"Expression form not supported","line":58,"character":60},"wtfStartTimeRange":{"__symbolic":"error","message":"Expression form not supported","line":74,"character":74},"wtfEndTimeRange":{"__symbolic":"error","message":"Expression form not supported","line":83,"character":50}}}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- var lang_1 = require('../../src/facade/lang');
2
+ var lang_1 = require('../facade/lang');
3
3
  var trace;
4
4
  var events;
5
5
  function detectWTF() {
@@ -1 +1 @@
1
- {"version":3,"file":"wtf_impl.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/profile/wtf_impl.ts"],"names":[],"mappings":";AAIE,qBAAqB,uBAAuB,CAAC,CAAA;AA0B/C,IAAI,KAAY,CAAC;AACjB,IAAI,MAAc,CAAC;AAEnB;IACE,IAAI,GAAG,GAAQ,aAAM,CAAC,KAAK,CAAC,CAAC;IAC7B,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QACR,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC,CAAC;QACrB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;YACV,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC;YACzB,MAAM,CAAC,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IACD,MAAM,CAAC,KAAK,CAAC;AACf,CAAC;AAVe,iBAAS,YAUxB,CAAA;AAED,qBAA4B,SAAiB,EAAE,KAAiB;IAAjB,qBAAiB,GAAjB,YAAiB;IAC9D,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAFe,mBAAW,cAE1B,CAAA;AAED,eAAyB,KAAY,EAAE,WAAe;IACpD,KAAK,CAAC,UAAU,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;IACrC,MAAM,CAAC,WAAW,CAAC;AACrB,CAAC;AAHe,aAAK,QAGpB,CAAA;AAED,wBAA+B,SAAiB,EAAE,MAAc;IAC9D,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AACjD,CAAC;AAFe,sBAAc,iBAE7B,CAAA;AAED,sBAA6B,KAAY;IACvC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;AAC5B,CAAC;AAFe,oBAAY,eAE3B,CAAA","sourcesContent":["interface DecoratorInvocation {\n type: Function;\n args?: any[];\n }\n import {global} from '../../src/facade/lang';\n\n/**\n * A scope function for the Web Tracing Framework (WTF).\n */\nexport interface WtfScopeFn { (arg0?: any, arg1?: any): any; }\n\ninterface WTF {\n trace: Trace;\n}\n\ninterface Trace {\n events: Events;\n leaveScope(scope: Scope, returnValue: any);\n beginTimeRange(rangeType: string, action: string): Range;\n endTimeRange(range: Range);\n}\n\nexport interface Range {}\n\ninterface Events {\n createScope(signature: string, flags: any): Scope;\n}\n\nexport interface Scope { (...args): any; }\n\nvar trace: Trace;\nvar events: Events;\n\nexport function detectWTF(): boolean {\n var wtf: WTF = global['wtf'];\n if (wtf) {\n trace = wtf['trace'];\n if (trace) {\n events = trace['events'];\n return true;\n }\n }\n return false;\n}\n\nexport function createScope(signature: string, flags: any = null): any {\n return events.createScope(signature, flags);\n}\n\nexport function leave<T>(scope: Scope, returnValue?: T): T {\n trace.leaveScope(scope, returnValue);\n return returnValue;\n}\n\nexport function startTimeRange(rangeType: string, action: string): Range {\n return trace.beginTimeRange(rangeType, action);\n}\n\nexport function endTimeRange(range: Range): void {\n trace.endTimeRange(range);\n}\n"]}
1
+ {"version":3,"file":"wtf_impl.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/profile/wtf_impl.ts"],"names":[],"mappings":";AAAA,qBAAqB,gBAAgB,CAAC,CAAA;AA0BtC,IAAI,KAAY,CAAC;AACjB,IAAI,MAAc,CAAC;AAEnB;IACE,IAAI,GAAG,GAAS,aAAgC,CAAC,KAAK,CAAC,CAAC;IACxD,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QACR,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC,CAAC;QACrB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;YACV,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC;YACzB,MAAM,CAAC,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IACD,MAAM,CAAC,KAAK,CAAC;AACf,CAAC;AAVe,iBAAS,YAUxB,CAAA;AAED,qBAA4B,SAAiB,EAAE,KAAiB;IAAjB,qBAAiB,GAAjB,YAAiB;IAC9D,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAFe,mBAAW,cAE1B,CAAA;AAED,eAAyB,KAAY,EAAE,WAAe;IACpD,KAAK,CAAC,UAAU,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;IACrC,MAAM,CAAC,WAAW,CAAC;AACrB,CAAC;AAHe,aAAK,QAGpB,CAAA;AAED,wBAA+B,SAAiB,EAAE,MAAc;IAC9D,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AACjD,CAAC;AAFe,sBAAc,iBAE7B,CAAA;AAED,sBAA6B,KAAY;IACvC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;AAC5B,CAAC;AAFe,oBAAY,eAE3B,CAAA","sourcesContent":["import {global} from '../facade/lang';\n\n/**\n * A scope function for the Web Tracing Framework (WTF).\n */\nexport interface WtfScopeFn { (arg0?: any, arg1?: any): any; }\n\ninterface WTF {\n trace: Trace;\n}\n\ninterface Trace {\n events: Events;\n leaveScope(scope: Scope, returnValue: any): any /** TODO #9100 */;\n beginTimeRange(rangeType: string, action: string): Range;\n endTimeRange(range: Range): any /** TODO #9100 */;\n}\n\nexport interface Range {}\n\ninterface Events {\n createScope(signature: string, flags: any): Scope;\n}\n\nexport interface Scope { (...args: any[] /** TODO #9100 */): any; }\n\nvar trace: Trace;\nvar events: Events;\n\nexport function detectWTF(): boolean {\n var wtf: WTF = (global as any /** TODO #9100 */)['wtf'];\n if (wtf) {\n trace = wtf['trace'];\n if (trace) {\n events = trace['events'];\n return true;\n }\n }\n return false;\n}\n\nexport function createScope(signature: string, flags: any = null): any {\n return events.createScope(signature, flags);\n}\n\nexport function leave<T>(scope: Scope, returnValue?: T): T {\n trace.leaveScope(scope, returnValue);\n return returnValue;\n}\n\nexport function startTimeRange(rangeType: string, action: string): Range {\n return trace.beginTimeRange(rangeType, action);\n}\n\nexport function endTimeRange(range: Range): void {\n trace.endTimeRange(range);\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -0,0 +1 @@
1
+ {"__symbolic":"module","version":1,"metadata":{"createScope":{"__symbolic":"function","parameters":["signature","flags"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"events"},"member":"createScope"},"arguments":[{"__symbolic":"reference","name":"signature"},{"__symbolic":"reference","name":"flags"}]}},"startTimeRange":{"__symbolic":"function","parameters":["rangeType","action"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"trace"},"member":"beginTimeRange"},"arguments":[{"__symbolic":"reference","name":"rangeType"},{"__symbolic":"reference","name":"action"}]}}}}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
- * This is here because DART requires it. It is noop in JS.
4
- */
3
+ * This is here because DART requires it. It is noop in JS.
4
+ */
5
5
  function wtfInit() { }
6
6
  exports.wtfInit = wtfInit;
7
7
  //# sourceMappingURL=wtf_init.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"wtf_init.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/profile/wtf_init.ts"],"names":[],"mappings":";AAIE;;EAEC;AACH,qBAA2B,CAAC;AAAZ,eAAO,UAAK,CAAA","sourcesContent":["interface DecoratorInvocation {\n type: Function;\n args?: any[];\n }\n /**\n * This is here because DART requires it. It is noop in JS.\n */\nexport function wtfInit() {}\n"]}
1
+ {"version":3,"file":"wtf_init.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/profile/wtf_init.ts"],"names":[],"mappings":";AAAA;;GAEG;AACH,qBAA2B,CAAC;AAAZ,eAAO,UAAK,CAAA","sourcesContent":["/**\n * This is here because DART requires it. It is noop in JS.\n */\nexport function wtfInit() {}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -1,9 +1,10 @@
1
- import { Type } from '../../src/facade/lang';
2
- import { GetterFn, SetterFn, MethodFn } from './types';
1
+ import { Type } from '../facade/lang';
2
+ import { GetterFn, MethodFn, SetterFn } from './types';
3
3
  export interface PlatformReflectionCapabilities {
4
4
  isReflectionEnabled(): boolean;
5
5
  factory(type: Type): Function;
6
6
  interfaces(type: Type): any[];
7
+ hasLifecycleHook(type: any, lcInterface: any, lcProperty: string): boolean;
7
8
  parameters(type: any): any[][];
8
9
  annotations(type: any): any[];
9
10
  propMetadata(typeOrFunc: any): {
@@ -12,5 +13,5 @@ export interface PlatformReflectionCapabilities {
12
13
  getter(name: string): GetterFn;
13
14
  setter(name: string): SetterFn;
14
15
  method(name: string): MethodFn;
15
- importUri(type: Type): string;
16
+ importUri(type: any): string;
16
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"platform_reflection_capabilities.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/reflection/platform_reflection_capabilities.ts"],"names":[],"mappings":"","sourcesContent":["interface DecoratorInvocation {\n type: Function;\n args?: any[];\n }\n import {Type} from '../../src/facade/lang';\nimport {GetterFn, SetterFn, MethodFn} from './types';\n\nexport interface PlatformReflectionCapabilities {\n isReflectionEnabled(): boolean;\n factory(type: Type): Function;\n interfaces(type: Type): any[];\n parameters(type: any): any[][];\n annotations(type: any): any[];\n propMetadata(typeOrFunc: any): {[key: string]: any[]};\n getter(name: string): GetterFn;\n setter(name: string): SetterFn;\n method(name: string): MethodFn;\n importUri(type: Type): string;\n}\n"]}
1
+ {"version":3,"file":"platform_reflection_capabilities.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/reflection/platform_reflection_capabilities.ts"],"names":[],"mappings":"","sourcesContent":["import {Type} from '../facade/lang';\n\nimport {GetterFn, MethodFn, SetterFn} from './types';\n\nexport interface PlatformReflectionCapabilities {\n isReflectionEnabled(): boolean;\n factory(type: Type): Function;\n interfaces(type: Type): any[];\n hasLifecycleHook(type: any, lcInterface: /*Type*/ any, lcProperty: string): boolean;\n parameters(type: any): any[][];\n annotations(type: any): any[];\n propMetadata(typeOrFunc: any): {[key: string]: any[]};\n getter(name: string): GetterFn;\n setter(name: string): SetterFn;\n method(name: string): MethodFn;\n importUri(type: any): string;\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { Reflector } from './reflector';
2
- export { Reflector, ReflectionInfo } from './reflector';
2
+ export { ReflectionInfo, Reflector } from './reflector';
3
3
  /**
4
4
  * The {@link Reflector} used internally in Angular to access metadata
5
5
  * about symbols.
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
+ var reflection_capabilities_1 = require('./reflection_capabilities');
2
3
  var reflector_1 = require('./reflector');
3
4
  var reflector_2 = require('./reflector');
4
- exports.Reflector = reflector_2.Reflector;
5
5
  exports.ReflectionInfo = reflector_2.ReflectionInfo;
6
- var reflection_capabilities_1 = require('./reflection_capabilities');
6
+ exports.Reflector = reflector_2.Reflector;
7
7
  /**
8
8
  * The {@link Reflector} used internally in Angular to access metadata
9
9
  * about symbols.
@@ -1 +1 @@
1
- {"version":3,"file":"reflection.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/reflection/reflection.ts"],"names":[],"mappings":";AAIE,0BAAwB,aAAa,CAAC,CAAA;AACxC,0BAAwC,aAAa,CAAC;AAA9C,0CAAS;AAAE,oDAAmC;AACtD,wCAAqC,2BAA2B,CAAC,CAAA;AAEjE;;;GAGG;AACQ,iBAAS,GAAG,IAAI,qBAAS,CAAC,IAAI,gDAAsB,EAAE,CAAC,CAAC","sourcesContent":["interface DecoratorInvocation {\n type: Function;\n args?: any[];\n }\n import {Reflector} from './reflector';\nexport {Reflector, ReflectionInfo} from './reflector';\nimport {ReflectionCapabilities} from './reflection_capabilities';\n\n/**\n * The {@link Reflector} used internally in Angular to access metadata\n * about symbols.\n */\nexport var reflector = new Reflector(new ReflectionCapabilities());\n"]}
1
+ {"version":3,"file":"reflection.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/reflection/reflection.ts"],"names":[],"mappings":";AAAA,wCAAqC,2BAA2B,CAAC,CAAA;AACjE,0BAAwB,aAAa,CAAC,CAAA;AAEtC,0BAAwC,aAAa,CAAC;AAA9C,oDAAc;AAAE,0CAA8B;AAGtD;;;GAGG;AACQ,iBAAS,GAAG,IAAI,qBAAS,CAAC,IAAI,gDAAsB,EAAE,CAAC,CAAC","sourcesContent":["import {ReflectionCapabilities} from './reflection_capabilities';\nimport {Reflector} from './reflector';\n\nexport {ReflectionInfo, Reflector} from './reflector';\n\n\n/**\n * The {@link Reflector} used internally in Angular to access metadata\n * about symbols.\n */\nexport var reflector = new Reflector(new ReflectionCapabilities());\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -1 +1 @@
1
- {"__symbolic":"module","metadata":{"reflector":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"Reflector","module":"./reflector"},"arguments":[{"__symbolic":"new","expression":{"__symbolic":"reference","name":"ReflectionCapabilities","module":"./reflection_capabilities"}}]}}}
1
+ {"__symbolic":"module","version":1,"metadata":{"reflector":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./reflector","name":"Reflector"},"arguments":[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./reflection_capabilities","name":"ReflectionCapabilities"}}]}}}
@@ -1,21 +1,20 @@
1
- import { Type, ConcreteType } from '../../src/facade/lang';
2
- import { GetterFn, SetterFn, MethodFn } from './types';
1
+ import { ConcreteType, Type } from '../facade/lang';
3
2
  import { PlatformReflectionCapabilities } from './platform_reflection_capabilities';
3
+ import { GetterFn, MethodFn, SetterFn } from './types';
4
4
  export declare class ReflectionCapabilities implements PlatformReflectionCapabilities {
5
5
  private _reflect;
6
6
  constructor(reflect?: any);
7
7
  isReflectionEnabled(): boolean;
8
8
  factory(t: ConcreteType): Function;
9
- /** @internal */
10
- _zipTypesAndAnnotations(paramTypes: any, paramAnnotations: any): any[][];
11
9
  parameters(typeOrFunc: Type): any[][];
12
10
  annotations(typeOrFunc: Type): any[];
13
11
  propMetadata(typeOrFunc: any): {
14
12
  [key: string]: any[];
15
13
  };
16
14
  interfaces(type: Type): any[];
15
+ hasLifecycleHook(type: any, lcInterface: Type, lcProperty: string): boolean;
17
16
  getter(name: string): GetterFn;
18
17
  setter(name: string): SetterFn;
19
18
  method(name: string): MethodFn;
20
- importUri(type: Type): string;
19
+ importUri(type: any): string;
21
20
  }
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
- var lang_1 = require('../../src/facade/lang');
3
- var exceptions_1 = require('../../src/facade/exceptions');
2
+ var lang_1 = require('../facade/lang');
4
3
  var ReflectionCapabilities = (function () {
5
4
  function ReflectionCapabilities(reflect) {
6
5
  this._reflect = lang_1.isPresent(reflect) ? reflect : lang_1.global.Reflect;
@@ -85,7 +84,7 @@ var ReflectionCapabilities = (function () {
85
84
  throw new Error("Cannot create a factory for '" + lang_1.stringify(t) + "' because its constructor has more than 20 arguments");
86
85
  };
87
86
  /** @internal */
88
- ReflectionCapabilities.prototype._zipTypesAndAnnotations = function (paramTypes, paramAnnotations) {
87
+ ReflectionCapabilities.prototype._zipTypesAndAnnotations = function (paramTypes /** TODO #9100 */, paramAnnotations /** TODO #9100 */) {
89
88
  var result;
90
89
  if (typeof paramTypes === 'undefined') {
91
90
  result = new Array(paramAnnotations.length);
@@ -120,8 +119,10 @@ var ReflectionCapabilities = (function () {
120
119
  // API of tsickle for lowering decorators to properties on the class.
121
120
  if (lang_1.isPresent(typeOrFunc.ctorParameters)) {
122
121
  var ctorParameters = typeOrFunc.ctorParameters;
123
- var paramTypes_1 = ctorParameters.map(function (ctorParam) { return ctorParam && ctorParam.type; });
124
- var paramAnnotations_1 = ctorParameters.map(function (ctorParam) { return ctorParam && convertTsickleDecoratorIntoMetadata(ctorParam.decorators); });
122
+ var paramTypes_1 = ctorParameters.map(function (ctorParam /** TODO #9100 */) { return ctorParam && ctorParam.type; });
123
+ var paramAnnotations_1 = ctorParameters.map(function (ctorParam /** TODO #9100 */) {
124
+ return ctorParam && convertTsickleDecoratorIntoMetadata(ctorParam.decorators);
125
+ });
125
126
  return this._zipTypesAndAnnotations(paramTypes_1, paramAnnotations_1);
126
127
  }
127
128
  // API for metadata created by invoking the decorators.
@@ -171,8 +172,7 @@ var ReflectionCapabilities = (function () {
171
172
  if (lang_1.isPresent(typeOrFunc.propDecorators)) {
172
173
  var propDecorators_1 = typeOrFunc.propDecorators;
173
174
  var propMetadata_1 = {};
174
- Object.keys(propDecorators_1)
175
- .forEach(function (prop) {
175
+ Object.keys(propDecorators_1).forEach(function (prop) {
176
176
  propMetadata_1[prop] = convertTsickleDecoratorIntoMetadata(propDecorators_1[prop]);
177
177
  });
178
178
  return propMetadata_1;
@@ -185,8 +185,15 @@ var ReflectionCapabilities = (function () {
185
185
  }
186
186
  return {};
187
187
  };
188
- ReflectionCapabilities.prototype.interfaces = function (type) {
189
- throw new exceptions_1.BaseException("JavaScript does not support interfaces");
188
+ // Note: JavaScript does not support to query for interfaces during runtime.
189
+ // However, we can't throw here as the reflector will always call this method
190
+ // when asked for a lifecycle interface as this is what we check in Dart.
191
+ ReflectionCapabilities.prototype.interfaces = function (type) { return []; };
192
+ ReflectionCapabilities.prototype.hasLifecycleHook = function (type, lcInterface, lcProperty) {
193
+ if (!(type instanceof lang_1.Type))
194
+ return false;
195
+ var proto = type.prototype;
196
+ return !!proto[lcProperty];
190
197
  };
191
198
  ReflectionCapabilities.prototype.getter = function (name) { return new Function('o', 'return o.' + name + ';'); };
192
199
  ReflectionCapabilities.prototype.setter = function (name) {
@@ -197,7 +204,14 @@ var ReflectionCapabilities = (function () {
197
204
  return new Function('o', 'args', functionBody);
198
205
  };
199
206
  // There is not a concept of import uri in Js, but this is useful in developing Dart applications.
200
- ReflectionCapabilities.prototype.importUri = function (type) { return "./" + lang_1.stringify(type); };
207
+ ReflectionCapabilities.prototype.importUri = function (type) {
208
+ // StaticSymbol
209
+ if (typeof type === 'object' && type['filePath']) {
210
+ return type['filePath'];
211
+ }
212
+ // Runtime type
213
+ return "./" + lang_1.stringify(type);
214
+ };
201
215
  return ReflectionCapabilities;
202
216
  }());
203
217
  exports.ReflectionCapabilities = ReflectionCapabilities;