@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,20 +1,20 @@
1
+ import { PLATFORM_CORE_PROVIDERS } from './application_ref';
1
2
  import { Console } from './console';
2
3
  import { Reflector, reflector } from './reflection/reflection';
3
4
  import { ReflectorReader } from './reflection/reflector_reader';
4
5
  import { TestabilityRegistry } from './testability/testability';
5
- import { PLATFORM_CORE_PROVIDERS } from './application_ref';
6
6
  function _reflector() {
7
7
  return reflector;
8
8
  }
9
9
  var __unused; // prevent missing use Dart warning.
10
10
  /**
11
11
  * A default set of providers which should be included in any Angular platform.
12
+ * @experimental
12
13
  */
13
14
  export const PLATFORM_COMMON_PROVIDERS = [
14
15
  PLATFORM_CORE_PROVIDERS,
15
16
  /*@ts2dart_Provider*/ { provide: Reflector, useFactory: _reflector, deps: [] },
16
- /*@ts2dart_Provider*/ { provide: ReflectorReader, useExisting: Reflector },
17
- TestabilityRegistry,
17
+ /*@ts2dart_Provider*/ { provide: ReflectorReader, useExisting: Reflector }, TestabilityRegistry,
18
18
  Console
19
19
  ];
20
20
  //# sourceMappingURL=platform_common_providers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"platform_common_providers.js","sourceRoot":"/Users/iminar/Dev/angular/modules/@angular/core/","sources":["src/platform_common_providers.ts"],"names":[],"mappings":"OAMO,EAAC,OAAO,EAAC,MAAM,WAAW;OAC1B,EAAC,SAAS,EAAE,SAAS,EAAC,MAAM,yBAAyB;OACrD,EAAC,eAAe,EAAC,MAAM,+BAA+B;OACtD,EAAC,mBAAmB,EAAC,MAAM,2BAA2B;OACtD,EAAC,uBAAuB,EAAC,MAAM,mBAAmB;AAEzD;IACE,MAAM,CAAC,SAAS,CAAC;AACnB,CAAC;AAED,IAAI,QAAc,CAAC,CAAE,oCAAoC;AAEzD;;GAEG;AACH,OAAO,MAAM,yBAAyB,GAA2D;IAC/F,uBAAuB;IACvB,qBAAqB,CAAC,EAAC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,EAAC;IAC5E,qBAAqB,CAAC,EAAC,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,SAAS,EAAC;IACxE,mBAAmB;IACnB,OAAO;CACR,CAAC"}
1
+ {"version":3,"file":"platform_common_providers.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/platform_common_providers.ts"],"names":[],"mappings":"OAEO,EAAC,uBAAuB,EAAC,MAAM,mBAAmB;OAClD,EAAC,OAAO,EAAC,MAAM,WAAW;OAE1B,EAAC,SAAS,EAAE,SAAS,EAAC,MAAM,yBAAyB;OACrD,EAAC,eAAe,EAAC,MAAM,+BAA+B;OACtD,EAAC,mBAAmB,EAAC,MAAM,2BAA2B;AAE7D;IACE,MAAM,CAAC,SAAS,CAAC;AACnB,CAAC;AAED,IAAI,QAAc,CAAC,CAAE,oCAAoC;AAEzD;;;GAGG;AACH,OAAO,MAAM,yBAAyB,GAAqD;IACzF,uBAAuB;IACvB,qBAAqB,CAAC,EAAC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,EAAC;IAC5E,qBAAqB,CAAC,EAAC,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,SAAS,EAAC,EAAE,mBAAmB;IAC7F,OAAO;CACR,CAAC","sourcesContent":["import {Type} from '../src/facade/lang';\n\nimport {PLATFORM_CORE_PROVIDERS} from './application_ref';\nimport {Console} from './console';\nimport {Provider} from './di';\nimport {Reflector, reflector} from './reflection/reflection';\nimport {ReflectorReader} from './reflection/reflector_reader';\nimport {TestabilityRegistry} from './testability/testability';\n\nfunction _reflector(): Reflector {\n return reflector;\n}\n\nvar __unused: Type; // prevent missing use Dart warning.\n\n/**\n * A default set of providers which should be included in any Angular platform.\n * @experimental\n */\nexport const PLATFORM_COMMON_PROVIDERS: Array<any|Type|Provider|any[]> = /*@ts2dart_const*/[\n PLATFORM_CORE_PROVIDERS,\n /*@ts2dart_Provider*/ {provide: Reflector, useFactory: _reflector, deps: []},\n /*@ts2dart_Provider*/ {provide: ReflectorReader, useExisting: Reflector}, TestabilityRegistry,\n Console\n];\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -1 +1 @@
1
- {"__symbolic":"module","metadata":{"PLATFORM_COMMON_PROVIDERS":[{"__symbolic":"reference","name":"PLATFORM_CORE_PROVIDERS","module":"./application_ref"},{"provide":{"__symbolic":"reference","name":"Reflector","module":"./reflection/reflection"},"useFactory":{"__symbolic":"reference","name":"_reflector"},"deps":[]},{"provide":{"__symbolic":"reference","name":"ReflectorReader","module":"./reflection/reflector_reader"},"useExisting":{"__symbolic":"reference","name":"Reflector","module":"./reflection/reflection"}},{"__symbolic":"reference","name":"TestabilityRegistry","module":"./testability/testability"},{"__symbolic":"reference","name":"Console","module":"./console"}]}}
1
+ {"__symbolic":"module","version":1,"metadata":{"PLATFORM_COMMON_PROVIDERS":[{"__symbolic":"reference","module":"./application_ref","name":"PLATFORM_CORE_PROVIDERS"},{"provide":{"__symbolic":"reference","module":"./reflection/reflection","name":"Reflector"},"useFactory":{"__symbolic":"reference","name":"_reflector"},"deps":[]},{"provide":{"__symbolic":"reference","module":"./reflection/reflector_reader","name":"ReflectorReader"},"useExisting":{"__symbolic":"reference","module":"./reflection/reflection","name":"Reflector"}},{"__symbolic":"reference","module":"./testability/testability","name":"TestabilityRegistry"},{"__symbolic":"reference","module":"./console","name":"Console"}]}}
@@ -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,52 +1,55 @@
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 const PLATFORM_DIRECTIVES =
27
- /*@ts2dart_const*/ new OpaqueToken("Platform Directives");
29
+ /*@ts2dart_const*/ new OpaqueToken('Platform Directives');
28
30
  /**
29
- * A token that can be provided when bootstraping an application to make an array of pipes
30
- * available in every component of the application.
31
- *
32
- * ### Example
33
- *
34
- * ```typescript
35
- * import {PLATFORM_PIPES} from '@angular/core';
36
- * import {OtherPipe} from './myPipe';
37
- *
38
- * @Component({
39
- * selector: 'my-component',
40
- * template: `
41
- * {{123 | other-pipe}}
42
- * `
43
- * })
44
- * export class MyComponent {
45
- * ...
46
- * }
47
- *
48
- * bootstrap(MyComponent, [provide(PLATFORM_PIPES, {useValue: [OtherPipe], multi:true})]);
49
- * ```
50
- */
51
- export const PLATFORM_PIPES = new OpaqueToken("Platform Pipes");
31
+ * A token that can be provided when bootstraping an application to make an array of pipes
32
+ * available in every component of the application.
33
+ *
34
+ * ### Example
35
+ *
36
+ * ```typescript
37
+ * import {PLATFORM_PIPES} from '@angular/core';
38
+ * import {OtherPipe} from './myPipe';
39
+ *
40
+ * @Component({
41
+ * selector: 'my-component',
42
+ * template: `
43
+ * {{123 | other-pipe}}
44
+ * `
45
+ * })
46
+ * export class MyComponent {
47
+ * ...
48
+ * }
49
+ *
50
+ * bootstrap(MyComponent, [{provide: PLATFORM_PIPES, useValue: [OtherPipe], multi:true}]);
51
+ * ```
52
+ * @stable
53
+ */
54
+ export const PLATFORM_PIPES = new OpaqueToken('Platform Pipes');
52
55
  //# sourceMappingURL=platform_directives_and_pipes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"platform_directives_and_pipes.js","sourceRoot":"/Users/iminar/Dev/angular/modules/@angular/core/","sources":["src/platform_directives_and_pipes.ts"],"names":[],"mappings":"OAIS,EAAC,WAAW,EAAC,MAAM,MAAM;AAElC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,MAAM,mBAAmB;AAC5B,kBAAkB,CAAC,IAAI,WAAW,CAAC,qBAAqB,CAAC,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,MAAM,cAAc,GAAmC,IAAI,WAAW,CAAC,gBAAgB,CAAC,CAAC"}
1
+ {"version":3,"file":"platform_directives_and_pipes.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/platform_directives_and_pipes.ts"],"names":[],"mappings":"OAAO,EAAC,WAAW,EAAC,MAAM,MAAM;AAEhC;;;;;;;;;;;;;;;;;;;;;;;;;IAyBI;AAEJ,OAAO,MAAM,mBAAmB;AAC5B,kBAAkB,CAAC,IAAI,WAAW,CAAC,qBAAqB,CAAC,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;IAuBI;AAEJ,OAAO,MAAM,cAAc,GAAmC,IAAI,WAAW,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;
@@ -35,6 +35,7 @@ function noopScope(arg0, arg1) {
35
35
  * needs to be fixed before the app should be profiled. Add try-finally only when you expect that
36
36
  * an exception is expected during normal execution while profiling.
37
37
  *
38
+ * @experimental
38
39
  */
39
40
  export var wtfCreateScope = wtfEnabled ? impl.createScope : (signature, flags) => noopScope;
40
41
  /**
@@ -44,6 +45,7 @@ export var wtfCreateScope = wtfEnabled ? impl.createScope : (signature, flags) =
44
45
  * - `returnValue` (optional) to be passed to the WTF.
45
46
  *
46
47
  * Returns the `returnValue for easy chaining.
48
+ * @experimental
47
49
  */
48
50
  export var wtfLeave = wtfEnabled ? impl.leave : (s, r) => r;
49
51
  /**
@@ -57,12 +59,14 @@ export var wtfLeave = wtfEnabled ? impl.leave : (s, r) => r;
57
59
  * wtfEndTimeRange(s);
58
60
  * });
59
61
  * }
62
+ * @experimental
60
63
  */
61
64
  export var wtfStartTimeRange = wtfEnabled ? impl.startTimeRange : (rangeType, action) => null;
62
65
  /**
63
66
  * Ends a async time range operation.
64
67
  * [range] is the return value from [wtfStartTimeRange] Async ranges only work if WTF has been
65
68
  * enabled.
69
+ * @experimental
66
70
  */
67
71
  export var wtfEndTimeRange = wtfEnabled ? impl.endTimeRange : (r) => null;
68
72
  //# sourceMappingURL=profile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"profile.js","sourceRoot":"/Users/iminar/Dev/angular/modules/@angular/core/","sources":["src/profile/profile.ts"],"names":[],"mappings":"AAIwC,OAEjC,KAAK,IAAI,MAAM,YAAY;AAElC,6EAA6E;AAE7E;;GAEG;AACH,OAAO,IAAI,UAAU,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;AAEzC,mBAAmB,IAAU,EAAE,IAAU;IACvC,MAAM,CAAC,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,IAAI,cAAc,GACrB,UAAU,GAAG,IAAI,CAAC,WAAW,GAAG,CAAC,SAAiB,EAAE,KAAW,KAAK,SAAS,CAAC;AAElF;;;;;;;GAOG;AACH,OAAO,IAAI,QAAQ,GACf,UAAU,GAAG,IAAI,CAAC,KAAK,GAAG,CAAC,CAAM,EAAE,CAAO,KAAK,CAAC,CAAC;AAErD;;;;;;;;;;;GAWG;AACH,OAAO,IAAI,iBAAiB,GACxB,UAAU,GAAG,IAAI,CAAC,cAAc,GAAG,CAAC,SAAiB,EAAE,MAAc,KAAK,IAAI,CAAC;AAEnF;;;;GAIG;AACH,OAAO,IAAI,eAAe,GAAyB,UAAU,GAAG,IAAI,CAAC,YAAY,GAAG,CAAC,CAAM,KACH,IAAI,CAAC"}
1
+ {"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/profile/profile.ts"],"names":[],"mappings":"OAAO,KAAK,IAAI,MAAM,YAAY;AAKlC,6EAA6E;AAE7E;;GAEG;AACH,OAAO,IAAI,UAAU,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;AAEzC,mBAAmB,IAAU,EAAE,IAAU;IACvC,MAAM,CAAC,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,IAAI,cAAc,GACrB,UAAU,GAAG,IAAI,CAAC,WAAW,GAAG,CAAC,SAAiB,EAAE,KAAW,KAAK,SAAS,CAAC;AAElF;;;;;;;;GAQG;AACH,OAAO,IAAI,QAAQ,GACf,UAAU,GAAG,IAAI,CAAC,KAAK,GAAG,CAAC,CAAM,EAAE,CAAO,KAAK,CAAC,CAAC;AAErD;;;;;;;;;;;;GAYG;AACH,OAAO,IAAI,iBAAiB,GACxB,UAAU,GAAG,IAAI,CAAC,cAAc,GAAG,CAAC,SAAiB,EAAE,MAAc,KAAK,IAAI,CAAC;AAEnF;;;;;GAKG;AACH,OAAO,IAAI,eAAe,GACtB,UAAU,GAAG,IAAI,CAAC,YAAY,GAAG,CAAC,CAAM,KAAK,IAAI,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,4 +1,4 @@
1
- import { global } from '../../src/facade/lang';
1
+ import { global } from '../facade/lang';
2
2
  var trace;
3
3
  var events;
4
4
  export function detectWTF() {
@@ -1 +1 @@
1
- {"version":3,"file":"wtf_impl.js","sourceRoot":"/Users/iminar/Dev/angular/modules/@angular/core/","sources":["src/profile/wtf_impl.ts"],"names":[],"mappings":"OAIS,EAAC,MAAM,EAAC,MAAM,uBAAuB;AA0B9C,IAAI,KAAY,CAAC;AACjB,IAAI,MAAc,CAAC;AAEnB;IACE,IAAI,GAAG,GAAQ,MAAM,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;AAED,4BAA4B,SAAiB,EAAE,KAAK,GAAQ,IAAI;IAC9D,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,sBAAyB,KAAY,EAAE,WAAe;IACpD,KAAK,CAAC,UAAU,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;IACrC,MAAM,CAAC,WAAW,CAAC;AACrB,CAAC;AAED,+BAA+B,SAAiB,EAAE,MAAc;IAC9D,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AACjD,CAAC;AAED,6BAA6B,KAAY;IACvC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;AAC5B,CAAC"}
1
+ {"version":3,"file":"wtf_impl.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/profile/wtf_impl.ts"],"names":[],"mappings":"OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB;AA0BrC,IAAI,KAAY,CAAC;AACjB,IAAI,MAAc,CAAC;AAEnB;IACE,IAAI,GAAG,GAAS,MAAgC,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;AAED,4BAA4B,SAAiB,EAAE,KAAK,GAAQ,IAAI;IAC9D,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,sBAAyB,KAAY,EAAE,WAAe;IACpD,KAAK,CAAC,UAAU,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;IACrC,MAAM,CAAC,WAAW,CAAC;AACrB,CAAC;AAED,+BAA+B,SAAiB,EAAE,MAAc;IAC9D,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AACjD,CAAC;AAED,6BAA6B,KAAY;IACvC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;AAC5B,CAAC","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,5 +1,5 @@
1
1
  /**
2
- * This is here because DART requires it. It is noop in JS.
3
- */
2
+ * This is here because DART requires it. It is noop in JS.
3
+ */
4
4
  export function wtfInit() { }
5
5
  //# sourceMappingURL=wtf_init.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"wtf_init.js","sourceRoot":"/Users/iminar/Dev/angular/modules/@angular/core/","sources":["src/profile/wtf_init.ts"],"names":[],"mappings":"AAIE;;EAEC;AACH,4BAA2B,CAAC"}
1
+ {"version":3,"file":"wtf_init.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/profile/wtf_init.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,4BAA2B,CAAC","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":"/Users/iminar/Dev/angular/modules/@angular/core/","sources":["src/reflection/platform_reflection_capabilities.ts"],"names":[],"mappings":""}
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,6 +1,6 @@
1
- import { Reflector } from './reflector';
2
- export { Reflector, ReflectionInfo } from './reflector';
3
1
  import { ReflectionCapabilities } from './reflection_capabilities';
2
+ import { Reflector } from './reflector';
3
+ export { ReflectionInfo, Reflector } from './reflector';
4
4
  /**
5
5
  * The {@link Reflector} used internally in Angular to access metadata
6
6
  * about symbols.
@@ -1 +1 @@
1
- {"version":3,"file":"reflection.js","sourceRoot":"/Users/iminar/Dev/angular/modules/@angular/core/","sources":["src/reflection/reflection.ts"],"names":[],"mappings":"OAIS,EAAC,SAAS,EAAC,MAAM,aAAa;AACvC,SAAQ,SAAS,EAAE,cAAc,QAAO,aAAa,CAAC;OAC/C,EAAC,sBAAsB,EAAC,MAAM,2BAA2B;AAEhE;;;GAGG;AACH,OAAO,IAAI,SAAS,GAAG,IAAI,SAAS,CAAC,IAAI,sBAAsB,EAAE,CAAC,CAAC"}
1
+ {"version":3,"file":"reflection.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/reflection/reflection.ts"],"names":[],"mappings":"OAAO,EAAC,sBAAsB,EAAC,MAAM,2BAA2B;OACzD,EAAC,SAAS,EAAC,MAAM,aAAa;AAErC,SAAQ,cAAc,EAAE,SAAS,QAAO,aAAa,CAAC;AAGtD;;;GAGG;AACH,OAAO,IAAI,SAAS,GAAG,IAAI,SAAS,CAAC,IAAI,sBAAsB,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,5 +1,4 @@
1
- import { isPresent, isFunction, global, stringify } from '../../src/facade/lang';
2
- import { BaseException } from '../../src/facade/exceptions';
1
+ import { Type, global, isFunction, isPresent, stringify } from '../facade/lang';
3
2
  export class ReflectionCapabilities {
4
3
  constructor(reflect) {
5
4
  this._reflect = isPresent(reflect) ? reflect : global.Reflect;
@@ -54,7 +53,7 @@ export class ReflectionCapabilities {
54
53
  throw new Error(`Cannot create a factory for '${stringify(t)}' because its constructor has more than 20 arguments`);
55
54
  }
56
55
  /** @internal */
57
- _zipTypesAndAnnotations(paramTypes, paramAnnotations) {
56
+ _zipTypesAndAnnotations(paramTypes /** TODO #9100 */, paramAnnotations /** TODO #9100 */) {
58
57
  var result;
59
58
  if (typeof paramTypes === 'undefined') {
60
59
  result = new Array(paramAnnotations.length);
@@ -89,8 +88,8 @@ export class ReflectionCapabilities {
89
88
  // API of tsickle for lowering decorators to properties on the class.
90
89
  if (isPresent(typeOrFunc.ctorParameters)) {
91
90
  let ctorParameters = typeOrFunc.ctorParameters;
92
- let paramTypes = ctorParameters.map(ctorParam => ctorParam && ctorParam.type);
93
- let paramAnnotations = ctorParameters.map(ctorParam => ctorParam && convertTsickleDecoratorIntoMetadata(ctorParam.decorators));
91
+ let paramTypes = ctorParameters.map((ctorParam /** TODO #9100 */) => ctorParam && ctorParam.type);
92
+ let paramAnnotations = ctorParameters.map((ctorParam /** TODO #9100 */) => ctorParam && convertTsickleDecoratorIntoMetadata(ctorParam.decorators));
94
93
  return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);
95
94
  }
96
95
  // API for metadata created by invoking the decorators.
@@ -140,8 +139,7 @@ export class ReflectionCapabilities {
140
139
  if (isPresent(typeOrFunc.propDecorators)) {
141
140
  let propDecorators = typeOrFunc.propDecorators;
142
141
  let propMetadata = {};
143
- Object.keys(propDecorators)
144
- .forEach(prop => {
142
+ Object.keys(propDecorators).forEach(prop => {
145
143
  propMetadata[prop] = convertTsickleDecoratorIntoMetadata(propDecorators[prop]);
146
144
  });
147
145
  return propMetadata;
@@ -154,8 +152,15 @@ export class ReflectionCapabilities {
154
152
  }
155
153
  return {};
156
154
  }
157
- interfaces(type) {
158
- throw new BaseException("JavaScript does not support interfaces");
155
+ // Note: JavaScript does not support to query for interfaces during runtime.
156
+ // However, we can't throw here as the reflector will always call this method
157
+ // when asked for a lifecycle interface as this is what we check in Dart.
158
+ interfaces(type) { return []; }
159
+ hasLifecycleHook(type, lcInterface, lcProperty) {
160
+ if (!(type instanceof Type))
161
+ return false;
162
+ var proto = type.prototype;
163
+ return !!proto[lcProperty];
159
164
  }
160
165
  getter(name) { return new Function('o', 'return o.' + name + ';'); }
161
166
  setter(name) {
@@ -167,7 +172,14 @@ export class ReflectionCapabilities {
167
172
  return new Function('o', 'args', functionBody);
168
173
  }
169
174
  // There is not a concept of import uri in Js, but this is useful in developing Dart applications.
170
- importUri(type) { return `./${stringify(type)}`; }
175
+ importUri(type) {
176
+ // StaticSymbol
177
+ if (typeof type === 'object' && type['filePath']) {
178
+ return type['filePath'];
179
+ }
180
+ // Runtime type
181
+ return `./${stringify(type)}`;
182
+ }
171
183
  }
172
184
  function convertTsickleDecoratorIntoMetadata(decoratorInvocations) {
173
185
  if (!decoratorInvocations) {