@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
@@ -0,0 +1,627 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || function (d, b) {
3
+ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
4
+ function __() { this.constructor = d; }
5
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6
+ };
7
+ var exceptions_1 = require('../facade/exceptions');
8
+ var lang_1 = require('../facade/lang');
9
+ exports.AUTO_STYLE = '*';
10
+ /**
11
+ * Metadata representing the entry of animations.
12
+ * Instances of this class are provided via the animation DSL when the {@link trigger trigger
13
+ * animation function} is called.
14
+ */
15
+ var AnimationEntryMetadata = (function () {
16
+ function AnimationEntryMetadata(name, definitions) {
17
+ this.name = name;
18
+ this.definitions = definitions;
19
+ }
20
+ return AnimationEntryMetadata;
21
+ }());
22
+ exports.AnimationEntryMetadata = AnimationEntryMetadata;
23
+ var AnimationStateMetadata = (function () {
24
+ function AnimationStateMetadata() {
25
+ }
26
+ return AnimationStateMetadata;
27
+ }());
28
+ exports.AnimationStateMetadata = AnimationStateMetadata;
29
+ /**
30
+ * Metadata representing the entry of animations.
31
+ * Instances of this class are provided via the animation DSL when the {@link state state animation
32
+ * function} is called.
33
+ */
34
+ var AnimationStateDeclarationMetadata = (function (_super) {
35
+ __extends(AnimationStateDeclarationMetadata, _super);
36
+ function AnimationStateDeclarationMetadata(stateNameExpr, styles) {
37
+ _super.call(this);
38
+ this.stateNameExpr = stateNameExpr;
39
+ this.styles = styles;
40
+ }
41
+ return AnimationStateDeclarationMetadata;
42
+ }(AnimationStateMetadata));
43
+ exports.AnimationStateDeclarationMetadata = AnimationStateDeclarationMetadata;
44
+ /**
45
+ * Metadata representing the entry of animations.
46
+ * Instances of this class are provided via the animation DSL when the
47
+ * {@link transition transition animation function} is called.
48
+ */
49
+ var AnimationStateTransitionMetadata = (function (_super) {
50
+ __extends(AnimationStateTransitionMetadata, _super);
51
+ function AnimationStateTransitionMetadata(stateChangeExpr, steps) {
52
+ _super.call(this);
53
+ this.stateChangeExpr = stateChangeExpr;
54
+ this.steps = steps;
55
+ }
56
+ return AnimationStateTransitionMetadata;
57
+ }(AnimationStateMetadata));
58
+ exports.AnimationStateTransitionMetadata = AnimationStateTransitionMetadata;
59
+ var AnimationMetadata = (function () {
60
+ function AnimationMetadata() {
61
+ }
62
+ return AnimationMetadata;
63
+ }());
64
+ exports.AnimationMetadata = AnimationMetadata;
65
+ /**
66
+ * Metadata representing the entry of animations.
67
+ * Instances of this class are provided via the animation DSL when the {@link keyframes keyframes
68
+ * animation function} is called.
69
+ */
70
+ var AnimationKeyframesSequenceMetadata = (function (_super) {
71
+ __extends(AnimationKeyframesSequenceMetadata, _super);
72
+ function AnimationKeyframesSequenceMetadata(steps) {
73
+ _super.call(this);
74
+ this.steps = steps;
75
+ }
76
+ return AnimationKeyframesSequenceMetadata;
77
+ }(AnimationMetadata));
78
+ exports.AnimationKeyframesSequenceMetadata = AnimationKeyframesSequenceMetadata;
79
+ /**
80
+ * Metadata representing the entry of animations.
81
+ * Instances of this class are provided via the animation DSL when the {@link style style animation
82
+ * function} is called.
83
+ */
84
+ var AnimationStyleMetadata = (function (_super) {
85
+ __extends(AnimationStyleMetadata, _super);
86
+ function AnimationStyleMetadata(styles, offset) {
87
+ if (offset === void 0) { offset = null; }
88
+ _super.call(this);
89
+ this.styles = styles;
90
+ this.offset = offset;
91
+ }
92
+ return AnimationStyleMetadata;
93
+ }(AnimationMetadata));
94
+ exports.AnimationStyleMetadata = AnimationStyleMetadata;
95
+ /**
96
+ * Metadata representing the entry of animations.
97
+ * Instances of this class are provided via the animation DSL when the {@link animate animate
98
+ * animation function} is called.
99
+ */
100
+ var AnimationAnimateMetadata = (function (_super) {
101
+ __extends(AnimationAnimateMetadata, _super);
102
+ function AnimationAnimateMetadata(timings, styles) {
103
+ _super.call(this);
104
+ this.timings = timings;
105
+ this.styles = styles;
106
+ }
107
+ return AnimationAnimateMetadata;
108
+ }(AnimationMetadata));
109
+ exports.AnimationAnimateMetadata = AnimationAnimateMetadata;
110
+ var AnimationWithStepsMetadata = (function (_super) {
111
+ __extends(AnimationWithStepsMetadata, _super);
112
+ function AnimationWithStepsMetadata() {
113
+ _super.call(this);
114
+ }
115
+ Object.defineProperty(AnimationWithStepsMetadata.prototype, "steps", {
116
+ get: function () { throw new exceptions_1.BaseException('NOT IMPLEMENTED: Base Class'); },
117
+ enumerable: true,
118
+ configurable: true
119
+ });
120
+ return AnimationWithStepsMetadata;
121
+ }(AnimationMetadata));
122
+ exports.AnimationWithStepsMetadata = AnimationWithStepsMetadata;
123
+ /**
124
+ * Metadata representing the entry of animations.
125
+ * Instances of this class are provided via the animation DSL when the {@link sequence sequence
126
+ * animation function} is called.
127
+ */
128
+ var AnimationSequenceMetadata = (function (_super) {
129
+ __extends(AnimationSequenceMetadata, _super);
130
+ function AnimationSequenceMetadata(_steps) {
131
+ _super.call(this);
132
+ this._steps = _steps;
133
+ }
134
+ Object.defineProperty(AnimationSequenceMetadata.prototype, "steps", {
135
+ get: function () { return this._steps; },
136
+ enumerable: true,
137
+ configurable: true
138
+ });
139
+ return AnimationSequenceMetadata;
140
+ }(AnimationWithStepsMetadata));
141
+ exports.AnimationSequenceMetadata = AnimationSequenceMetadata;
142
+ /**
143
+ * Metadata representing the entry of animations.
144
+ * Instances of this class are provided via the animation DSL when the {@link group group animation
145
+ * function} is called.
146
+ */
147
+ var AnimationGroupMetadata = (function (_super) {
148
+ __extends(AnimationGroupMetadata, _super);
149
+ function AnimationGroupMetadata(_steps) {
150
+ _super.call(this);
151
+ this._steps = _steps;
152
+ }
153
+ Object.defineProperty(AnimationGroupMetadata.prototype, "steps", {
154
+ get: function () { return this._steps; },
155
+ enumerable: true,
156
+ configurable: true
157
+ });
158
+ return AnimationGroupMetadata;
159
+ }(AnimationWithStepsMetadata));
160
+ exports.AnimationGroupMetadata = AnimationGroupMetadata;
161
+ /**
162
+ * `animate` is an animation-specific function that is designed to be used inside of Angular2's
163
+ * animation
164
+ * DSL language. If this information is new, please navigate to the
165
+ * {@link ComponentMetadata#animations-anchor component animations metadata
166
+ * page} to gain a better understanding of how animations in Angular2 are used.
167
+ *
168
+ * `animate` specifies an animation step that will apply the provided `styles` data for a given
169
+ * amount of
170
+ * time based on the provided `timing` expression value. Calls to `animate` are expected to be
171
+ * used within {@link sequence an animation sequence}, {@link group group}, or {@link transition
172
+ * transition}.
173
+ *
174
+ * ### Usage
175
+ *
176
+ * The `animate` function accepts two input parameters: `timing` and `styles`:
177
+ *
178
+ * - `timing` is a string based value that can be a combination of a duration with optional
179
+ * delay and easing values. The format for the expression breaks down to `duration delay easing`
180
+ * (therefore a value such as `1s 100ms ease-out` will be parse itself into `duration=1000,
181
+ * delay=100, easing=ease-out`.
182
+ * If a numeric value is provided then that will be used as the `duration` value in millisecond
183
+ * form.
184
+ * - `styles` is the style input data which can either be a call to {@link style style} or {@link
185
+ * keyframes keyframes}.
186
+ * If left empty then the styles from the destination state will be collected and used (this is
187
+ * useful when
188
+ * describing an animation step that will complete an animation by {@link
189
+ * transition#the-final-animate-call animating to the final state}).
190
+ *
191
+ * ```typescript
192
+ * // various functions for specifying timing data
193
+ * animate(500, style(...))
194
+ * animate("1s", style(...))
195
+ * animate("100ms 0.5s", style(...))
196
+ * animate("5s ease", style(...))
197
+ * animate("5s 10ms cubic-bezier(.17,.67,.88,.1)", style(...))
198
+ *
199
+ * // either style() of keyframes() can be used
200
+ * animate(500, style({ background: "red" }))
201
+ * animate(500, keyframes([
202
+ * style({ background: "blue" })),
203
+ * style({ background: "red" }))
204
+ * ])
205
+ * ```
206
+ *
207
+ * ### Example ([live demo](http://plnkr.co/edit/Kez8XGWBxWue7qP7nNvF?p=preview))
208
+ *
209
+ * {@example core/animation/ts/dsl/animation_example.ts region='Component'}
210
+ */
211
+ function animate(timing, styles) {
212
+ if (styles === void 0) { styles = null; }
213
+ var stylesEntry = styles;
214
+ if (!lang_1.isPresent(stylesEntry)) {
215
+ var EMPTY_STYLE = {};
216
+ stylesEntry = new AnimationStyleMetadata([EMPTY_STYLE], 1);
217
+ }
218
+ return new AnimationAnimateMetadata(timing, stylesEntry);
219
+ }
220
+ exports.animate = animate;
221
+ /**
222
+ * `group` is an animation-specific function that is designed to be used inside of Angular2's
223
+ * animation
224
+ * DSL language. If this information is new, please navigate to the
225
+ * {@link ComponentMetadata#animations-anchor component animations metadata
226
+ * page} to gain a better understanding of how animations in Angular2 are used.
227
+ *
228
+ * `group` specifies a list of animation steps that are all run in parallel. Grouped animations
229
+ * are useful when a series of styles must be animated/closed off
230
+ * at different statrting/ending times.
231
+ *
232
+ * The `group` function can either be used within a {@link sequence sequence} or a {@link transition
233
+ * transition}
234
+ * and it will only continue to the next instruction once all of the inner animation steps
235
+ * have completed.
236
+ *
237
+ * ### Usage
238
+ *
239
+ * The `steps` data that is passed into the `group` animation function can either consist
240
+ * of {@link style style} or {@link animate animate} function calls. Each call to `style()` or
241
+ * `animate()`
242
+ * within a group will be executed instantly (use {@link keyframes keyframes} or a
243
+ * {@link animate#usage animate() with a delay value} to offset styles to be applied at a later
244
+ * time).
245
+ *
246
+ * ```typescript
247
+ * group([
248
+ * animate("1s", { background: "black" }))
249
+ * animate("2s", { color: "white" }))
250
+ * ])
251
+ * ```
252
+ *
253
+ * ### Example ([live demo](http://plnkr.co/edit/Kez8XGWBxWue7qP7nNvF?p=preview))
254
+ *
255
+ * {@example core/animation/ts/dsl/animation_example.ts region='Component'}
256
+ */
257
+ function group(steps) {
258
+ return new AnimationGroupMetadata(steps);
259
+ }
260
+ exports.group = group;
261
+ /**
262
+ * `sequence` is an animation-specific function that is designed to be used inside of Angular2's
263
+ * animation
264
+ * DSL language. If this information is new, please navigate to the
265
+ * {@link ComponentMetadata#animations-anchor component animations metadata
266
+ * page} to gain a better understanding of how animations in Angular2 are used.
267
+ *
268
+ * `sequence` Specifies a list of animation steps that are run one by one. (`sequence` is used
269
+ * by default when an array is passed as animation data into {@link transition transition}.)
270
+ *
271
+ * The `sequence` function can either be used within a {@link group group} or a {@link transition
272
+ * transition}
273
+ * and it will only continue to the next instruction once each of the inner animation steps
274
+ * have completed.
275
+ *
276
+ * To perform animation styling in parallel with other animation steps then
277
+ * have a look at the {@link group group} animation function.
278
+ *
279
+ * ### Usage
280
+ *
281
+ * The `steps` data that is passed into the `sequence` animation function can either consist
282
+ * of {@link style style} or {@link animate animate} function calls. A call to `style()` will apply
283
+ * the
284
+ * provided styling data immediately while a call to `animate()` will apply its styling
285
+ * data over a given time depending on its timing data.
286
+ *
287
+ * ```typescript
288
+ * sequence([
289
+ * style({ opacity: 0 })),
290
+ * animate("1s", { opacity: 1 }))
291
+ * ])
292
+ * ```
293
+ *
294
+ * ### Example ([live demo](http://plnkr.co/edit/Kez8XGWBxWue7qP7nNvF?p=preview))
295
+ *
296
+ * {@example core/animation/ts/dsl/animation_example.ts region='Component'}
297
+ */
298
+ function sequence(steps) {
299
+ return new AnimationSequenceMetadata(steps);
300
+ }
301
+ exports.sequence = sequence;
302
+ /**
303
+ * `style` is an animation-specific function that is designed to be used inside of Angular2's
304
+ * animation
305
+ * DSL language. If this information is new, please navigate to the
306
+ * {@link ComponentMetadata#animations-anchor component animations metadata
307
+ * page} to gain a better understanding of how animations in Angular2 are used.
308
+ *
309
+ * `style` declares a key/value object containing CSS properties/styles that can then
310
+ * be used for {@link state animation states}, within an {@link sequence animation sequence}, or as
311
+ * styling data for both {@link animate animate} and {@link keyframes keyframes}.
312
+ *
313
+ * ### Usage
314
+ *
315
+ * `style` takes in a key/value string map as data and expects one or more CSS property/value
316
+ * pairs to be defined.
317
+ *
318
+ * ```typescript
319
+ * // string values are used for css properties
320
+ * style({ background: "red", color: "blue" })
321
+ *
322
+ * // numerical (pixel) values are also supported
323
+ * style({ width: 100, height: 0 })
324
+ * ```
325
+ *
326
+ * #### Auto-styles (using `*`)
327
+ *
328
+ * When an asterix (`*`) character is used as a value then it will be detected from the element
329
+ * being animated
330
+ * and applied as animation data when the animation starts.
331
+ *
332
+ * This feature proves useful for a state depending on layout and/or environment factors; in such
333
+ * cases
334
+ * the styles are calculated just before the animation starts.
335
+ *
336
+ * ```typescript
337
+ * // the steps below will animate from 0 to the
338
+ * // actual height of the element
339
+ * style({ height: 0 }),
340
+ * animate("1s", style({ height: "*" }))
341
+ * ```
342
+ *
343
+ * ### Example ([live demo](http://plnkr.co/edit/Kez8XGWBxWue7qP7nNvF?p=preview))
344
+ *
345
+ * {@example core/animation/ts/dsl/animation_example.ts region='Component'}
346
+ */
347
+ function style(tokens) {
348
+ var input;
349
+ var offset = null;
350
+ if (lang_1.isString(tokens)) {
351
+ input = [tokens];
352
+ }
353
+ else {
354
+ if (lang_1.isArray(tokens)) {
355
+ input = tokens;
356
+ }
357
+ else {
358
+ input = [tokens];
359
+ }
360
+ input.forEach(function (entry) {
361
+ var entryOffset = entry['offset'];
362
+ if (lang_1.isPresent(entryOffset)) {
363
+ offset = offset == null ? lang_1.NumberWrapper.parseFloat(entryOffset) : offset;
364
+ }
365
+ });
366
+ }
367
+ return new AnimationStyleMetadata(input, offset);
368
+ }
369
+ exports.style = style;
370
+ /**
371
+ * `state` is an animation-specific function that is designed to be used inside of Angular2's
372
+ * animation
373
+ * DSL language. If this information is new, please navigate to the
374
+ * {@link ComponentMetadata#animations-anchor component animations metadata
375
+ * page} to gain a better understanding of how animations in Angular2 are used.
376
+ *
377
+ * `state` declares an animation state within the given trigger. When a state is
378
+ * active within a component then its associated styles will persist on
379
+ * the element that the trigger is attached to (even when the animation ends).
380
+ *
381
+ * To animate between states, have a look at the animation {@link transition transition}
382
+ * DSL function. To register states to an animation trigger please have a look
383
+ * at the {@link trigger trigger} function.
384
+ *
385
+ * #### The `void` state
386
+ *
387
+ * The `void` state value is a reserved word that angular uses to determine when the element is not
388
+ * apart
389
+ * of the application anymore (e.g. when an `ngIf` evaluates to false then the state of the
390
+ * associated element
391
+ * is void).
392
+ *
393
+ * #### The `*` (default) state
394
+ *
395
+ * The `*` state (when styled) is a fallback state that will be used if
396
+ * the state that is being animated is not declared within the trigger.
397
+ *
398
+ * ### Usage
399
+ *
400
+ * `state` will declare an animation state with its associated styles
401
+ * within the given trigger.
402
+ *
403
+ * - `stateNameExpr` can be one or more state names separated by commas.
404
+ * - `styles` refers to the {@link style styling data} that will be persisted on the element once
405
+ * the state
406
+ * has been reached.
407
+ *
408
+ * ```typescript
409
+ * // "void" is a reserved name for a state and is used to represent
410
+ * // the state in which an element is detached from from the application.
411
+ * state("void", style({ height: 0 }))
412
+ *
413
+ * // user-defined states
414
+ * state("closed", style({ height: 0 }))
415
+ * state("open, visible", style({ height: "*" }))
416
+ * ```
417
+ *
418
+ * ### Example ([live demo](http://plnkr.co/edit/Kez8XGWBxWue7qP7nNvF?p=preview))
419
+ *
420
+ * {@example core/animation/ts/dsl/animation_example.ts region='Component'}
421
+ */
422
+ function state(stateNameExpr, styles) {
423
+ return new AnimationStateDeclarationMetadata(stateNameExpr, styles);
424
+ }
425
+ exports.state = state;
426
+ /**
427
+ * `keyframes` is an animation-specific function that is designed to be used inside of Angular2's
428
+ * animation
429
+ * DSL language. If this information is new, please navigate to the
430
+ * {@link ComponentMetadata#animations-anchor component animations metadata
431
+ * page} to gain a better understanding of how animations in Angular2 are used.
432
+ *
433
+ * `keyframes` specifies a collection of {@link style style} entries each optionally characterized
434
+ * by an `offset` value.
435
+ *
436
+ * ### Usage
437
+ *
438
+ * The `keyframes` animation function is designed to be used alongside the {@link animate animate}
439
+ * animation function. Instead of applying animations from where they are
440
+ * currently to their destination, keyframes can describe how each style entry is applied
441
+ * and at what point within the animation arc (much like CSS Keyframe Animations do).
442
+ *
443
+ * For each `style()` entry an `offset` value can be set. Doing so allows to specifiy at
444
+ * what percentage of the animate time the styles will be applied.
445
+ *
446
+ * ```typescript
447
+ * // the provided offset values describe when each backgroundColor value is applied.
448
+ * animate("5s", keyframes([
449
+ * style({ backgroundColor: "red", offset: 0 }),
450
+ * style({ backgroundColor: "blue", offset: 0.2 }),
451
+ * style({ backgroundColor: "orange", offset: 0.3 }),
452
+ * style({ backgroundColor: "black", offset: 1 })
453
+ * ]))
454
+ * ```
455
+ *
456
+ * Alternatively, if there are no `offset` values used within the style entries then the offsets
457
+ * will
458
+ * be calculated automatically.
459
+ *
460
+ * ```typescript
461
+ * animate("5s", keyframes([
462
+ * style({ backgroundColor: "red" }) // offset = 0
463
+ * style({ backgroundColor: "blue" }) // offset = 0.33
464
+ * style({ backgroundColor: "orange" }) // offset = 0.66
465
+ * style({ backgroundColor: "black" }) // offset = 1
466
+ * ]))
467
+ * ```
468
+ *
469
+ * ### Example ([live demo](http://plnkr.co/edit/Kez8XGWBxWue7qP7nNvF?p=preview))
470
+ *
471
+ * {@example core/animation/ts/dsl/animation_example.ts region='Component'}
472
+ */
473
+ function keyframes(steps) {
474
+ return new AnimationKeyframesSequenceMetadata(steps);
475
+ }
476
+ exports.keyframes = keyframes;
477
+ /**
478
+ * `transition` is an animation-specific function that is designed to be used inside of Angular2's
479
+ * animation
480
+ * DSL language. If this information is new, please navigate to the
481
+ * {@link ComponentMetadata#animations-anchor component animations metadata
482
+ * page} to gain a better understanding of how animations in Angular2 are used.
483
+ *
484
+ * `transition` declares the {@link sequence sequence of animation steps} that will be run when the
485
+ * provided
486
+ * `stateChangeExpr` value is satisfied. The `stateChangeExpr` consists of a `state1 => state2`
487
+ * which consists
488
+ * of two known states (use an asterix (`*`) to refer to a dynamic starting and/or ending state).
489
+ *
490
+ * Animation transitions are placed within an {@link trigger animation trigger}. For an transition
491
+ * to animate to
492
+ * a state value and persist its styles then one or more {@link state animation states} is expected
493
+ * to be defined.
494
+ *
495
+ * ### Usage
496
+ *
497
+ * An animation transition is kicked off the `stateChangeExpr` predicate evaluates to true based on
498
+ * what the
499
+ * previous state is and what the current state has become. In other words, if a transition is
500
+ * defined that
501
+ * matches the old/current state criteria then the associated animation will be triggered.
502
+ *
503
+ * ```typescript
504
+ * // all transition/state changes are defined within an animation trigger
505
+ * trigger("myAnimationTrigger", [
506
+ * // if a state is defined then its styles will be persisted when the
507
+ * // animation has fully completed itself
508
+ * state("on", style({ background: "green" })),
509
+ * state("off", style({ background: "grey" })),
510
+ *
511
+ * // a transition animation that will be kicked off when the state value
512
+ * // bound to "myAnimationTrigger" changes from "on" to "off"
513
+ * transition("on => off", animate(500)),
514
+ *
515
+ * // it is also possible to do run the same animation for both directions
516
+ * transition("on <=> off", animate(500)),
517
+ *
518
+ * // or to define multiple states pairs separated by commas
519
+ * transition("on => off, off => void", animate(500)),
520
+ *
521
+ * // this is a catch-all state change for when an element is inserted into
522
+ * // the page and the destination state is unknown
523
+ * transition("void => *", [
524
+ * style({ opacity: 0 }),
525
+ * animate(500)
526
+ * ]),
527
+ *
528
+ * // this will capture a state change between any states
529
+ * transition("* => *", animate("1s 0s")),
530
+ * ])
531
+ * ```
532
+ *
533
+ * The template associated with this component will make use of the `myAnimationTrigger`
534
+ * animation trigger by binding to an element within its template code.
535
+ *
536
+ * ```html
537
+ * <!-- somewhere inside of my-component-tpl.html -->
538
+ * <div @myAnimationTrigger="myStatusExp">...</div>
539
+ * ```
540
+ *
541
+ * #### The final `animate` call
542
+ *
543
+ * If the final step within the transition steps is a call to `animate()` that **only**
544
+ * uses a timing value with **no style data** then it will be automatically used as the final
545
+ * animation
546
+ * arc for the element to animate itself to the final state. This involves an automatic mix of
547
+ * adding/removing CSS styles so that the element will be in the exact state it should be for the
548
+ * applied state to be presented correctly.
549
+ *
550
+ * ```
551
+ * // start off by hiding the element, but make sure that it animates properly to whatever state
552
+ * // is currently active for "myAnimationTrigger"
553
+ * transition("void => *", [
554
+ * style({ opacity: 0 }),
555
+ * animate(500)
556
+ * ])
557
+ * ```
558
+ *
559
+ * ### Example ([live demo](http://plnkr.co/edit/Kez8XGWBxWue7qP7nNvF?p=preview))
560
+ *
561
+ * {@example core/animation/ts/dsl/animation_example.ts region='Component'}
562
+ */
563
+ function transition(stateChangeExpr, steps) {
564
+ var animationData = lang_1.isArray(steps) ? new AnimationSequenceMetadata(steps) :
565
+ steps;
566
+ return new AnimationStateTransitionMetadata(stateChangeExpr, animationData);
567
+ }
568
+ exports.transition = transition;
569
+ /**
570
+ * `trigger` is an animation-specific function that is designed to be used inside of Angular2's
571
+ * animation
572
+ * DSL language. If this information is new, please navigate to the
573
+ * {@link ComponentMetadata#animations-anchor component animations metadata
574
+ * page} to gain a better understanding of how animations in Angular2 are used.
575
+ *
576
+ * `trigger` Creates an animation trigger which will a list of {@link state state} and {@link
577
+ * transition transition}
578
+ * entries that will be evaluated when the expression bound to the trigger changes.
579
+ *
580
+ * Triggers are registered within the component annotation data under the
581
+ * {@link ComponentMetadata#animations-anchor animations section}. An animation trigger can
582
+ * be placed on an element within a template by referencing the name of the
583
+ * trigger followed by the expression value that the trigger is bound to
584
+ * (in the form of `@triggerName="expression"`.
585
+ *
586
+ * ### Usage
587
+ *
588
+ * `trigger` will create an animation trigger reference based on the provided `name` value.
589
+ * The provided `animation` value is expected to be an array consisting of {@link state state} and
590
+ * {@link transition transition}
591
+ * declarations.
592
+ *
593
+ * ```typescript
594
+ * @Component({
595
+ * selector: 'my-component',
596
+ * templateUrl: 'my-component-tpl.html',
597
+ * animations: [
598
+ * trigger("myAnimationTrigger", [
599
+ * state(...),
600
+ * state(...),
601
+ * transition(...),
602
+ * transition(...)
603
+ * ])
604
+ * ]
605
+ * })
606
+ * class MyComponent {
607
+ * myStatusExp = "something";
608
+ * }
609
+ * ```
610
+ *
611
+ * The template associated with this component will make use of the `myAnimationTrigger`
612
+ * animation trigger by binding to an element within its template code.
613
+ *
614
+ * ```html
615
+ * <!-- somewhere inside of my-component-tpl.html -->
616
+ * <div @myAnimationTrigger="myStatusExp">...</div>
617
+ * ```
618
+ *
619
+ * ### Example ([live demo](http://plnkr.co/edit/Kez8XGWBxWue7qP7nNvF?p=preview))
620
+ *
621
+ * {@example core/animation/ts/dsl/animation_example.ts region='Component'}
622
+ */
623
+ function trigger(name, animation) {
624
+ return new AnimationEntryMetadata(name, animation);
625
+ }
626
+ exports.trigger = trigger;
627
+ //# sourceMappingURL=metadata.js.map