@angular/core 2.0.0-rc.1 → 2.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (624) hide show
  1. package/{core.umd.js → bundles/core.umd.js} +6402 -4606
  2. package/bundles/core.umd.min.js +6 -0
  3. package/esm/index.d.ts +5 -4
  4. package/esm/index.js +9 -8
  5. package/esm/index.js.map +1 -1
  6. package/esm/private_export.d.ts +96 -11
  7. package/esm/private_export.js +39 -10
  8. package/esm/private_export.js.map +1 -1
  9. package/esm/private_export.metadata.json +1 -1
  10. package/esm/src/animation/active_animation_players_map.d.ts +11 -0
  11. package/esm/src/animation/active_animation_players_map.js +47 -0
  12. package/esm/src/animation/active_animation_players_map.js.map +1 -0
  13. package/esm/src/animation/animation_constants.d.ts +4 -0
  14. package/esm/src/animation/animation_constants.js +5 -0
  15. package/esm/src/animation/animation_constants.js.map +1 -0
  16. package/esm/src/animation/animation_constants.metadata.json +1 -0
  17. package/esm/src/animation/animation_driver.d.ts +9 -0
  18. package/esm/src/animation/animation_driver.js +9 -0
  19. package/esm/src/animation/animation_driver.js.map +1 -0
  20. package/esm/src/animation/animation_group_player.d.ts +18 -0
  21. package/esm/src/animation/animation_group_player.js +60 -0
  22. package/esm/src/animation/animation_group_player.js.map +1 -0
  23. package/esm/src/animation/animation_keyframe.d.ts +6 -0
  24. package/esm/src/animation/animation_keyframe.js +7 -0
  25. package/esm/src/animation/animation_keyframe.js.map +1 -0
  26. package/esm/src/animation/animation_player.d.ts +26 -0
  27. package/esm/src/animation/animation_player.js +30 -0
  28. package/esm/src/animation/animation_player.js.map +1 -0
  29. package/esm/src/animation/animation_sequence_player.d.ts +21 -0
  30. package/esm/src/animation/animation_sequence_player.js +64 -0
  31. package/esm/src/animation/animation_sequence_player.js.map +1 -0
  32. package/esm/src/animation/animation_style_util.d.ts +32 -0
  33. package/esm/src/animation/animation_style_util.js +91 -0
  34. package/esm/src/animation/animation_style_util.js.map +1 -0
  35. package/esm/src/animation/animation_style_util.metadata.json +1 -0
  36. package/esm/src/animation/animation_styles.d.ts +8 -0
  37. package/esm/src/animation/animation_styles.js +6 -0
  38. package/esm/src/animation/animation_styles.js.map +1 -0
  39. package/esm/src/animation/metadata.d.ts +511 -0
  40. package/esm/src/animation/metadata.js +565 -0
  41. package/esm/src/animation/metadata.js.map +1 -0
  42. package/esm/src/animation/metadata.metadata.json +1 -0
  43. package/esm/src/application_common_providers.d.ts +1 -0
  44. package/esm/src/application_common_providers.js +5 -4
  45. package/esm/src/application_common_providers.js.map +1 -1
  46. package/esm/src/application_common_providers.metadata.json +1 -1
  47. package/esm/src/application_ref.d.ts +17 -41
  48. package/esm/src/application_ref.js +32 -23
  49. package/esm/src/application_ref.js.map +1 -1
  50. package/esm/src/application_ref.metadata.json +1 -1
  51. package/esm/src/application_tokens.d.ts +6 -1
  52. package/esm/src/application_tokens.js +9 -4
  53. package/esm/src/application_tokens.js.map +1 -1
  54. package/esm/src/application_tokens.metadata.json +1 -1
  55. package/esm/src/change_detection/change_detection.d.ts +9 -8
  56. package/esm/src/change_detection/change_detection.js +7 -7
  57. package/esm/src/change_detection/change_detection.js.map +1 -1
  58. package/esm/src/change_detection/change_detection.metadata.json +1 -1
  59. package/esm/src/change_detection/change_detection_util.d.ts +3 -1
  60. package/esm/src/change_detection/change_detection_util.js +6 -5
  61. package/esm/src/change_detection/change_detection_util.js.map +1 -1
  62. package/esm/src/change_detection/change_detection_util.metadata.json +1 -1
  63. package/esm/src/change_detection/change_detector_ref.d.ts +3 -0
  64. package/esm/src/change_detection/change_detector_ref.js +3 -0
  65. package/esm/src/change_detection/change_detector_ref.js.map +1 -1
  66. package/esm/src/change_detection/constants.d.ts +1 -0
  67. package/esm/src/change_detection/constants.js +4 -3
  68. package/esm/src/change_detection/constants.js.map +1 -1
  69. package/esm/src/change_detection/constants.metadata.json +1 -1
  70. package/esm/src/change_detection/differs/default_iterable_differ.d.ts +6 -94
  71. package/esm/src/change_detection/differs/default_iterable_differ.js +25 -18
  72. package/esm/src/change_detection/differs/default_iterable_differ.js.map +1 -1
  73. package/esm/src/change_detection/differs/default_keyvalue_differ.d.ts +3 -30
  74. package/esm/src/change_detection/differs/default_keyvalue_differ.js +13 -8
  75. package/esm/src/change_detection/differs/default_keyvalue_differ.js.map +1 -1
  76. package/esm/src/change_detection/differs/iterable_differs.d.ts +4 -1
  77. package/esm/src/change_detection/differs/iterable_differs.js +5 -4
  78. package/esm/src/change_detection/differs/iterable_differs.js.map +1 -1
  79. package/esm/src/change_detection/differs/keyvalue_differs.d.ts +2 -1
  80. package/esm/src/change_detection/differs/keyvalue_differs.js +5 -4
  81. package/esm/src/change_detection/differs/keyvalue_differs.js.map +1 -1
  82. package/esm/src/change_detection/pipe_transform.js.map +1 -1
  83. package/esm/src/change_detection.d.ts +1 -1
  84. package/esm/src/change_detection.js +5 -5
  85. package/esm/src/change_detection.js.map +1 -1
  86. package/esm/src/console.js +2 -1
  87. package/esm/src/console.js.map +1 -1
  88. package/esm/src/console.metadata.json +1 -1
  89. package/esm/src/debug/debug_node.d.ts +20 -2
  90. package/esm/src/debug/debug_node.js +16 -2
  91. package/esm/src/debug/debug_node.js.map +1 -1
  92. package/esm/src/debug/debug_node.metadata.json +1 -0
  93. package/esm/src/debug/debug_renderer.d.ts +10 -6
  94. package/esm/src/debug/debug_renderer.js +13 -2
  95. package/esm/src/debug/debug_renderer.js.map +1 -1
  96. package/esm/src/di/decorators.d.ts +13 -1
  97. package/esm/src/di/decorators.js +7 -1
  98. package/esm/src/di/decorators.js.map +1 -1
  99. package/esm/src/di/decorators.metadata.json +1 -1
  100. package/esm/src/di/forward_ref.d.ts +3 -1
  101. package/esm/src/di/forward_ref.js +3 -1
  102. package/esm/src/di/forward_ref.js.map +1 -1
  103. package/esm/src/di/injector.d.ts +4 -1
  104. package/esm/src/di/injector.js +5 -2
  105. package/esm/src/di/injector.js.map +1 -1
  106. package/esm/src/di/injector.metadata.json +1 -1
  107. package/esm/src/di/metadata.d.ts +8 -1
  108. package/esm/src/di/metadata.js +10 -3
  109. package/esm/src/di/metadata.js.map +1 -1
  110. package/esm/src/di/opaque_token.d.ts +2 -1
  111. package/esm/src/di/opaque_token.js +22 -21
  112. package/esm/src/di/opaque_token.js.map +1 -1
  113. package/esm/src/di/provider.d.ts +11 -10
  114. package/esm/src/di/provider.js +17 -14
  115. package/esm/src/di/provider.js.map +1 -1
  116. package/esm/src/di/provider.metadata.json +1 -0
  117. package/esm/src/di/provider_util.js.map +1 -1
  118. package/esm/src/di/provider_util.metadata.json +1 -0
  119. package/esm/src/di/reflective_exceptions.d.ts +11 -16
  120. package/esm/src/di/reflective_exceptions.js +28 -22
  121. package/esm/src/di/reflective_exceptions.js.map +1 -1
  122. package/esm/src/di/reflective_injector.d.ts +3 -33
  123. package/esm/src/di/reflective_injector.js +10 -7
  124. package/esm/src/di/reflective_injector.js.map +1 -1
  125. package/esm/src/di/reflective_key.d.ts +1 -8
  126. package/esm/src/di/reflective_key.js +3 -2
  127. package/esm/src/di/reflective_key.js.map +1 -1
  128. package/esm/src/di/reflective_provider.d.ts +2 -1
  129. package/esm/src/di/reflective_provider.js +6 -5
  130. package/esm/src/di/reflective_provider.js.map +1 -1
  131. package/esm/src/di/reflective_provider.metadata.json +1 -0
  132. package/esm/src/di.d.ts +2 -2
  133. package/esm/src/di.js +6 -6
  134. package/esm/src/di.js.map +1 -1
  135. package/esm/src/facade/async.d.ts +11 -4
  136. package/esm/src/facade/async.js +25 -15
  137. package/esm/src/facade/async.js.map +1 -1
  138. package/esm/src/facade/base_wrapped_exception.js +4 -4
  139. package/esm/src/facade/base_wrapped_exception.js.map +1 -1
  140. package/esm/src/facade/collection.js +1 -1
  141. package/esm/src/facade/collection.js.map +1 -1
  142. package/esm/src/facade/collection.metadata.json +1 -1
  143. package/esm/src/facade/exception_handler.d.ts +2 -11
  144. package/esm/src/facade/exception_handler.js +8 -7
  145. package/esm/src/facade/exception_handler.js.map +1 -1
  146. package/esm/src/facade/exceptions.d.ts +4 -0
  147. package/esm/src/facade/exceptions.js +6 -2
  148. package/esm/src/facade/exceptions.js.map +1 -1
  149. package/esm/src/facade/exceptions.metadata.json +1 -0
  150. package/esm/src/facade/lang.d.ts +6 -4
  151. package/esm/src/facade/lang.js +12 -11
  152. package/esm/src/facade/lang.js.map +1 -1
  153. package/esm/src/facade/lang.metadata.json +1 -1
  154. package/esm/src/facade/math.d.ts +2 -0
  155. package/esm/src/facade/math.js +4 -0
  156. package/esm/src/facade/math.js.map +1 -0
  157. package/esm/src/facade/math.metadata.json +1 -0
  158. package/esm/src/facade/promise.js.map +1 -1
  159. package/esm/src/linker/component_factory.d.ts +5 -4
  160. package/esm/src/linker/component_factory.js +7 -3
  161. package/esm/src/linker/component_factory.js.map +1 -1
  162. package/esm/src/linker/component_resolver.d.ts +5 -4
  163. package/esm/src/linker/component_resolver.js +12 -7
  164. package/esm/src/linker/component_resolver.js.map +1 -1
  165. package/esm/src/linker/component_resolver.metadata.json +1 -1
  166. package/esm/src/linker/debug_context.js +5 -4
  167. package/esm/src/linker/debug_context.js.map +1 -1
  168. package/esm/src/linker/dynamic_component_loader.d.ts +5 -6
  169. package/esm/src/linker/dynamic_component_loader.js +5 -3
  170. package/esm/src/linker/dynamic_component_loader.js.map +1 -1
  171. package/esm/src/linker/dynamic_component_loader.metadata.json +1 -1
  172. package/esm/src/linker/element.d.ts +3 -3
  173. package/esm/src/linker/element.js +5 -5
  174. package/esm/src/linker/element.js.map +1 -1
  175. package/esm/src/linker/element_injector.js.map +1 -1
  176. package/esm/src/linker/element_ref.d.ts +1 -0
  177. package/esm/src/linker/element_ref.js +5 -5
  178. package/esm/src/linker/element_ref.js.map +1 -1
  179. package/esm/src/linker/exceptions.d.ts +4 -1
  180. package/esm/src/linker/exceptions.js +4 -1
  181. package/esm/src/linker/exceptions.js.map +1 -1
  182. package/esm/src/linker/query_list.d.ts +3 -10
  183. package/esm/src/linker/query_list.js +8 -7
  184. package/esm/src/linker/query_list.js.map +1 -1
  185. package/esm/src/linker/systemjs_component_resolver.d.ts +21 -0
  186. package/esm/src/linker/systemjs_component_resolver.js +44 -0
  187. package/esm/src/linker/systemjs_component_resolver.js.map +1 -0
  188. package/esm/src/linker/template_ref.d.ts +2 -1
  189. package/esm/src/linker/template_ref.js +1 -0
  190. package/esm/src/linker/template_ref.js.map +1 -1
  191. package/esm/src/linker/view.d.ts +12 -1
  192. package/esm/src/linker/view.js +62 -16
  193. package/esm/src/linker/view.js.map +1 -1
  194. package/esm/src/linker/view_container_ref.d.ts +2 -10
  195. package/esm/src/linker/view_container_ref.js +4 -3
  196. package/esm/src/linker/view_container_ref.js.map +1 -1
  197. package/esm/src/linker/view_ref.d.ts +5 -1
  198. package/esm/src/linker/view_ref.js +6 -2
  199. package/esm/src/linker/view_ref.js.map +1 -1
  200. package/esm/src/linker/view_type.js.map +1 -1
  201. package/esm/src/linker/view_utils.d.ts +2 -4
  202. package/esm/src/linker/view_utils.js +21 -21
  203. package/esm/src/linker/view_utils.js.map +1 -1
  204. package/esm/src/linker/view_utils.metadata.json +1 -1
  205. package/esm/src/linker.d.ts +5 -4
  206. package/esm/src/linker.js +5 -4
  207. package/esm/src/linker.js.map +1 -1
  208. package/esm/src/metadata/di.d.ts +8 -1
  209. package/esm/src/metadata/di.js +10 -3
  210. package/esm/src/metadata/di.js.map +1 -1
  211. package/esm/src/metadata/directives.d.ts +104 -20
  212. package/esm/src/metadata/directives.js +25 -19
  213. package/esm/src/metadata/directives.js.map +1 -1
  214. package/esm/src/metadata/lifecycle_hooks.d.ts +46 -31
  215. package/esm/src/metadata/lifecycle_hooks.js +464 -10
  216. package/esm/src/metadata/lifecycle_hooks.js.map +1 -1
  217. package/esm/src/metadata/lifecycle_hooks.metadata.json +1 -1
  218. package/esm/src/metadata/view.d.ts +6 -2
  219. package/esm/src/metadata/view.js +3 -1
  220. package/esm/src/metadata/view.js.map +1 -1
  221. package/esm/src/metadata/view.metadata.json +1 -1
  222. package/esm/src/metadata.d.ts +49 -15
  223. package/esm/src/metadata.js +35 -10
  224. package/esm/src/metadata.js.map +1 -1
  225. package/esm/src/metadata.metadata.json +1 -1
  226. package/esm/src/platform_common_providers.d.ts +1 -0
  227. package/esm/src/platform_common_providers.js +3 -3
  228. package/esm/src/platform_common_providers.js.map +1 -1
  229. package/esm/src/platform_common_providers.metadata.json +1 -1
  230. package/esm/src/platform_directives_and_pipes.d.ts +48 -45
  231. package/esm/src/platform_directives_and_pipes.js +50 -47
  232. package/esm/src/platform_directives_and_pipes.js.map +1 -1
  233. package/esm/src/platform_directives_and_pipes.metadata.json +1 -1
  234. package/esm/src/profile/profile.d.ts +5 -1
  235. package/esm/src/profile/profile.js +4 -0
  236. package/esm/src/profile/profile.js.map +1 -1
  237. package/esm/src/profile/profile.metadata.json +1 -1
  238. package/esm/src/profile/wtf_impl.js +1 -1
  239. package/esm/src/profile/wtf_impl.js.map +1 -1
  240. package/esm/src/profile/wtf_impl.metadata.json +1 -0
  241. package/esm/src/profile/wtf_init.js +2 -2
  242. package/esm/src/profile/wtf_init.js.map +1 -1
  243. package/esm/src/reflection/platform_reflection_capabilities.d.ts +4 -3
  244. package/esm/src/reflection/platform_reflection_capabilities.js.map +1 -1
  245. package/esm/src/reflection/reflection.d.ts +1 -1
  246. package/esm/src/reflection/reflection.js +2 -2
  247. package/esm/src/reflection/reflection.js.map +1 -1
  248. package/esm/src/reflection/reflection.metadata.json +1 -1
  249. package/esm/src/reflection/reflection_capabilities.d.ts +4 -5
  250. package/esm/src/reflection/reflection_capabilities.js +22 -10
  251. package/esm/src/reflection/reflection_capabilities.js.map +1 -1
  252. package/esm/src/reflection/reflector.d.ts +8 -20
  253. package/esm/src/reflection/reflector.js +13 -3
  254. package/esm/src/reflection/reflector.js.map +1 -1
  255. package/esm/src/reflection/reflector_reader.js +3 -3
  256. package/esm/src/reflection/reflector_reader.js.map +1 -1
  257. package/esm/src/reflection/types.js.map +1 -1
  258. package/esm/src/render/api.d.ts +17 -6
  259. package/esm/src/render/api.js +8 -1
  260. package/esm/src/render/api.js.map +1 -1
  261. package/esm/src/render.d.ts +1 -1
  262. package/esm/src/render.js +1 -1
  263. package/esm/src/render.js.map +1 -1
  264. package/esm/src/security.js +6 -6
  265. package/esm/src/security.js.map +1 -1
  266. package/esm/src/testability/testability.d.ts +3 -19
  267. package/esm/src/testability/testability.js +10 -5
  268. package/esm/src/testability/testability.js.map +1 -1
  269. package/esm/src/testability/testability.metadata.json +1 -1
  270. package/esm/src/util/decorators.d.ts +2 -1
  271. package/esm/src/util/decorators.js +10 -9
  272. package/esm/src/util/decorators.js.map +1 -1
  273. package/esm/src/util.js.map +1 -1
  274. package/esm/src/zone/ng_zone.d.ts +6 -17
  275. package/esm/src/zone/ng_zone.js +7 -6
  276. package/esm/src/zone/ng_zone.js.map +1 -1
  277. package/esm/src/zone/ng_zone_impl.d.ts +1 -4
  278. package/esm/src/zone/ng_zone_impl.js +3 -2
  279. package/esm/src/zone/ng_zone_impl.js.map +1 -1
  280. package/esm/src/zone.js.map +1 -1
  281. package/esm/testing/async.js +20 -22
  282. package/esm/testing/async.js.map +1 -1
  283. package/esm/testing/async.metadata.json +1 -0
  284. package/esm/testing/async_test_completer.js.map +1 -1
  285. package/esm/testing/fake_async.d.ts +4 -1
  286. package/esm/testing/fake_async.js +9 -2
  287. package/esm/testing/fake_async.js.map +1 -1
  288. package/esm/testing/lang_utils.js +1 -1
  289. package/esm/testing/lang_utils.js.map +1 -1
  290. package/esm/testing/lang_utils.metadata.json +1 -0
  291. package/esm/testing/logger.js +5 -3
  292. package/esm/testing/logger.js.map +1 -1
  293. package/esm/testing/logger.metadata.json +1 -1
  294. package/esm/testing/mock_application_ref.d.ts +1 -1
  295. package/esm/testing/mock_application_ref.js +1 -0
  296. package/esm/testing/mock_application_ref.js.map +1 -1
  297. package/esm/testing/mock_application_ref.metadata.json +1 -1
  298. package/esm/testing/ng_zone_mock.d.ts +0 -1
  299. package/esm/testing/ng_zone_mock.js +2 -1
  300. package/esm/testing/ng_zone_mock.js.map +1 -1
  301. package/esm/testing/ng_zone_mock.metadata.json +1 -1
  302. package/esm/testing/regexp.js +1 -1
  303. package/esm/testing/regexp.js.map +1 -1
  304. package/esm/testing/regexp.metadata.json +1 -0
  305. package/esm/testing/test_injector.d.ts +6 -12
  306. package/esm/testing/test_injector.js +4 -10
  307. package/esm/testing/test_injector.js.map +1 -1
  308. package/esm/testing/test_injector.metadata.json +1 -0
  309. package/esm/testing/testing.d.ts +2 -2
  310. package/esm/testing/testing.js +2 -2
  311. package/esm/testing/testing.js.map +1 -1
  312. package/esm/testing/testing.metadata.json +1 -1
  313. package/esm/testing.js.map +1 -1
  314. package/index.d.ts +5 -4
  315. package/index.js +10 -8
  316. package/index.js.map +1 -1
  317. package/package.json +5 -1
  318. package/private_export.d.ts +96 -11
  319. package/private_export.js +39 -10
  320. package/private_export.js.map +1 -1
  321. package/private_export.metadata.json +1 -1
  322. package/src/animation/active_animation_players_map.d.ts +11 -0
  323. package/src/animation/active_animation_players_map.js +54 -0
  324. package/src/animation/active_animation_players_map.js.map +1 -0
  325. package/src/animation/animation_constants.d.ts +4 -0
  326. package/src/animation/animation_constants.js +6 -0
  327. package/src/animation/animation_constants.js.map +1 -0
  328. package/src/animation/animation_constants.metadata.json +1 -0
  329. package/src/animation/animation_driver.d.ts +9 -0
  330. package/src/animation/animation_driver.js +25 -0
  331. package/src/animation/animation_driver.js.map +1 -0
  332. package/src/animation/animation_group_player.d.ts +18 -0
  333. package/src/animation/animation_group_player.js +64 -0
  334. package/src/animation/animation_group_player.js.map +1 -0
  335. package/src/animation/animation_keyframe.d.ts +6 -0
  336. package/src/animation/animation_keyframe.js +10 -0
  337. package/src/animation/animation_keyframe.js.map +1 -0
  338. package/src/animation/animation_player.d.ts +26 -0
  339. package/src/animation/animation_player.js +42 -0
  340. package/src/animation/animation_player.js.map +1 -0
  341. package/src/animation/animation_sequence_player.d.ts +21 -0
  342. package/src/animation/animation_sequence_player.js +69 -0
  343. package/src/animation/animation_sequence_player.js.map +1 -0
  344. package/src/animation/animation_style_util.d.ts +32 -0
  345. package/src/animation/animation_style_util.js +99 -0
  346. package/src/animation/animation_style_util.js.map +1 -0
  347. package/src/animation/animation_style_util.metadata.json +1 -0
  348. package/src/animation/animation_styles.d.ts +8 -0
  349. package/src/animation/animation_styles.js +9 -0
  350. package/src/animation/animation_styles.js.map +1 -0
  351. package/src/animation/metadata.d.ts +511 -0
  352. package/src/animation/metadata.js +627 -0
  353. package/src/animation/metadata.js.map +1 -0
  354. package/src/animation/metadata.metadata.json +1 -0
  355. package/src/application_common_providers.d.ts +1 -0
  356. package/src/application_common_providers.js +4 -3
  357. package/src/application_common_providers.js.map +1 -1
  358. package/src/application_common_providers.metadata.json +1 -1
  359. package/src/application_ref.d.ts +17 -41
  360. package/src/application_ref.js +30 -21
  361. package/src/application_ref.js.map +1 -1
  362. package/src/application_ref.metadata.json +1 -1
  363. package/src/application_tokens.d.ts +6 -1
  364. package/src/application_tokens.js +9 -4
  365. package/src/application_tokens.js.map +1 -1
  366. package/src/application_tokens.metadata.json +1 -1
  367. package/src/change_detection/change_detection.d.ts +9 -8
  368. package/src/change_detection/change_detection.js +21 -21
  369. package/src/change_detection/change_detection.js.map +1 -1
  370. package/src/change_detection/change_detection.metadata.json +1 -1
  371. package/src/change_detection/change_detection_util.d.ts +3 -1
  372. package/src/change_detection/change_detection_util.js +6 -5
  373. package/src/change_detection/change_detection_util.js.map +1 -1
  374. package/src/change_detection/change_detection_util.metadata.json +1 -1
  375. package/src/change_detection/change_detector_ref.d.ts +3 -0
  376. package/src/change_detection/change_detector_ref.js +3 -0
  377. package/src/change_detection/change_detector_ref.js.map +1 -1
  378. package/src/change_detection/constants.d.ts +1 -0
  379. package/src/change_detection/constants.js +4 -3
  380. package/src/change_detection/constants.js.map +1 -1
  381. package/src/change_detection/constants.metadata.json +1 -1
  382. package/src/change_detection/differs/default_iterable_differ.d.ts +6 -94
  383. package/src/change_detection/differs/default_iterable_differ.js +25 -18
  384. package/src/change_detection/differs/default_iterable_differ.js.map +1 -1
  385. package/src/change_detection/differs/default_keyvalue_differ.d.ts +3 -30
  386. package/src/change_detection/differs/default_keyvalue_differ.js +13 -8
  387. package/src/change_detection/differs/default_keyvalue_differ.js.map +1 -1
  388. package/src/change_detection/differs/iterable_differs.d.ts +4 -1
  389. package/src/change_detection/differs/iterable_differs.js +4 -3
  390. package/src/change_detection/differs/iterable_differs.js.map +1 -1
  391. package/src/change_detection/differs/keyvalue_differs.d.ts +2 -1
  392. package/src/change_detection/differs/keyvalue_differs.js +4 -3
  393. package/src/change_detection/differs/keyvalue_differs.js.map +1 -1
  394. package/src/change_detection/pipe_transform.js.map +1 -1
  395. package/src/change_detection.d.ts +1 -1
  396. package/src/change_detection.js +9 -9
  397. package/src/change_detection.js.map +1 -1
  398. package/src/console.js +2 -1
  399. package/src/console.js.map +1 -1
  400. package/src/console.metadata.json +1 -1
  401. package/src/debug/debug_node.d.ts +20 -2
  402. package/src/debug/debug_node.js +16 -2
  403. package/src/debug/debug_node.js.map +1 -1
  404. package/src/debug/debug_node.metadata.json +1 -0
  405. package/src/debug/debug_renderer.d.ts +10 -6
  406. package/src/debug/debug_renderer.js +12 -1
  407. package/src/debug/debug_renderer.js.map +1 -1
  408. package/src/di/decorators.d.ts +13 -1
  409. package/src/di/decorators.js +7 -1
  410. package/src/di/decorators.js.map +1 -1
  411. package/src/di/decorators.metadata.json +1 -1
  412. package/src/di/forward_ref.d.ts +3 -1
  413. package/src/di/forward_ref.js +3 -1
  414. package/src/di/forward_ref.js.map +1 -1
  415. package/src/di/injector.d.ts +4 -1
  416. package/src/di/injector.js +5 -2
  417. package/src/di/injector.js.map +1 -1
  418. package/src/di/injector.metadata.json +1 -1
  419. package/src/di/metadata.d.ts +8 -1
  420. package/src/di/metadata.js +10 -3
  421. package/src/di/metadata.js.map +1 -1
  422. package/src/di/opaque_token.d.ts +2 -1
  423. package/src/di/opaque_token.js +22 -21
  424. package/src/di/opaque_token.js.map +1 -1
  425. package/src/di/provider.d.ts +11 -10
  426. package/src/di/provider.js +17 -14
  427. package/src/di/provider.js.map +1 -1
  428. package/src/di/provider.metadata.json +1 -0
  429. package/src/di/provider_util.js.map +1 -1
  430. package/src/di/provider_util.metadata.json +1 -0
  431. package/src/di/reflective_exceptions.d.ts +11 -16
  432. package/src/di/reflective_exceptions.js +28 -22
  433. package/src/di/reflective_exceptions.js.map +1 -1
  434. package/src/di/reflective_injector.d.ts +3 -33
  435. package/src/di/reflective_injector.js +9 -6
  436. package/src/di/reflective_injector.js.map +1 -1
  437. package/src/di/reflective_key.d.ts +1 -8
  438. package/src/di/reflective_key.js +3 -2
  439. package/src/di/reflective_key.js.map +1 -1
  440. package/src/di/reflective_provider.d.ts +2 -1
  441. package/src/di/reflective_provider.js +6 -5
  442. package/src/di/reflective_provider.js.map +1 -1
  443. package/src/di/reflective_provider.metadata.json +1 -0
  444. package/src/di.d.ts +2 -2
  445. package/src/di.js +7 -9
  446. package/src/di.js.map +1 -1
  447. package/src/facade/async.d.ts +11 -4
  448. package/src/facade/async.js +27 -17
  449. package/src/facade/async.js.map +1 -1
  450. package/src/facade/base_wrapped_exception.js +4 -4
  451. package/src/facade/base_wrapped_exception.js.map +1 -1
  452. package/src/facade/collection.js.map +1 -1
  453. package/src/facade/collection.metadata.json +1 -1
  454. package/src/facade/exception_handler.d.ts +2 -11
  455. package/src/facade/exception_handler.js +8 -7
  456. package/src/facade/exception_handler.js.map +1 -1
  457. package/src/facade/exceptions.d.ts +4 -0
  458. package/src/facade/exceptions.js +6 -2
  459. package/src/facade/exceptions.js.map +1 -1
  460. package/src/facade/exceptions.metadata.json +1 -0
  461. package/src/facade/lang.d.ts +6 -4
  462. package/src/facade/lang.js +12 -11
  463. package/src/facade/lang.js.map +1 -1
  464. package/src/facade/lang.metadata.json +1 -1
  465. package/src/facade/math.d.ts +2 -0
  466. package/src/facade/math.js +5 -0
  467. package/src/facade/math.js.map +1 -0
  468. package/src/facade/math.metadata.json +1 -0
  469. package/src/facade/promise.js.map +1 -1
  470. package/src/linker/component_factory.d.ts +5 -4
  471. package/src/linker/component_factory.js +7 -3
  472. package/src/linker/component_factory.js.map +1 -1
  473. package/src/linker/component_resolver.d.ts +5 -4
  474. package/src/linker/component_resolver.js +12 -7
  475. package/src/linker/component_resolver.js.map +1 -1
  476. package/src/linker/component_resolver.metadata.json +1 -1
  477. package/src/linker/debug_context.js +5 -4
  478. package/src/linker/debug_context.js.map +1 -1
  479. package/src/linker/dynamic_component_loader.d.ts +5 -6
  480. package/src/linker/dynamic_component_loader.js +5 -3
  481. package/src/linker/dynamic_component_loader.js.map +1 -1
  482. package/src/linker/dynamic_component_loader.metadata.json +1 -1
  483. package/src/linker/element.d.ts +3 -3
  484. package/src/linker/element.js +5 -5
  485. package/src/linker/element.js.map +1 -1
  486. package/src/linker/element_injector.js.map +1 -1
  487. package/src/linker/element_ref.d.ts +1 -0
  488. package/src/linker/element_ref.js +5 -5
  489. package/src/linker/element_ref.js.map +1 -1
  490. package/src/linker/exceptions.d.ts +4 -1
  491. package/src/linker/exceptions.js +4 -1
  492. package/src/linker/exceptions.js.map +1 -1
  493. package/src/linker/query_list.d.ts +3 -10
  494. package/src/linker/query_list.js +8 -7
  495. package/src/linker/query_list.js.map +1 -1
  496. package/src/linker/systemjs_component_resolver.d.ts +21 -0
  497. package/src/linker/systemjs_component_resolver.js +52 -0
  498. package/src/linker/systemjs_component_resolver.js.map +1 -0
  499. package/src/linker/template_ref.d.ts +2 -1
  500. package/src/linker/template_ref.js +1 -0
  501. package/src/linker/template_ref.js.map +1 -1
  502. package/src/linker/view.d.ts +12 -1
  503. package/src/linker/view.js +65 -15
  504. package/src/linker/view.js.map +1 -1
  505. package/src/linker/view_container_ref.d.ts +2 -10
  506. package/src/linker/view_container_ref.js +4 -3
  507. package/src/linker/view_container_ref.js.map +1 -1
  508. package/src/linker/view_ref.d.ts +5 -1
  509. package/src/linker/view_ref.js +6 -2
  510. package/src/linker/view_ref.js.map +1 -1
  511. package/src/linker/view_type.js.map +1 -1
  512. package/src/linker/view_utils.d.ts +2 -4
  513. package/src/linker/view_utils.js +21 -21
  514. package/src/linker/view_utils.js.map +1 -1
  515. package/src/linker/view_utils.metadata.json +1 -1
  516. package/src/linker.d.ts +5 -4
  517. package/src/linker.js +12 -9
  518. package/src/linker.js.map +1 -1
  519. package/src/metadata/di.d.ts +8 -1
  520. package/src/metadata/di.js +10 -3
  521. package/src/metadata/di.js.map +1 -1
  522. package/src/metadata/directives.d.ts +104 -20
  523. package/src/metadata/directives.js +25 -27
  524. package/src/metadata/directives.js.map +1 -1
  525. package/src/metadata/lifecycle_hooks.d.ts +46 -31
  526. package/src/metadata/lifecycle_hooks.js +496 -10
  527. package/src/metadata/lifecycle_hooks.js.map +1 -1
  528. package/src/metadata/lifecycle_hooks.metadata.json +1 -1
  529. package/src/metadata/view.d.ts +6 -2
  530. package/src/metadata/view.js +3 -1
  531. package/src/metadata/view.js.map +1 -1
  532. package/src/metadata/view.metadata.json +1 -1
  533. package/src/metadata.d.ts +49 -15
  534. package/src/metadata.js +70 -37
  535. package/src/metadata.js.map +1 -1
  536. package/src/metadata.metadata.json +1 -1
  537. package/src/platform_common_providers.d.ts +1 -0
  538. package/src/platform_common_providers.js +3 -3
  539. package/src/platform_common_providers.js.map +1 -1
  540. package/src/platform_common_providers.metadata.json +1 -1
  541. package/src/platform_directives_and_pipes.d.ts +48 -45
  542. package/src/platform_directives_and_pipes.js +50 -47
  543. package/src/platform_directives_and_pipes.js.map +1 -1
  544. package/src/platform_directives_and_pipes.metadata.json +1 -1
  545. package/src/profile/profile.d.ts +5 -1
  546. package/src/profile/profile.js +5 -3
  547. package/src/profile/profile.js.map +1 -1
  548. package/src/profile/profile.metadata.json +1 -1
  549. package/src/profile/wtf_impl.js +1 -1
  550. package/src/profile/wtf_impl.js.map +1 -1
  551. package/src/profile/wtf_impl.metadata.json +1 -0
  552. package/src/profile/wtf_init.js +2 -2
  553. package/src/profile/wtf_init.js.map +1 -1
  554. package/src/reflection/platform_reflection_capabilities.d.ts +4 -3
  555. package/src/reflection/platform_reflection_capabilities.js.map +1 -1
  556. package/src/reflection/reflection.d.ts +1 -1
  557. package/src/reflection/reflection.js +2 -2
  558. package/src/reflection/reflection.js.map +1 -1
  559. package/src/reflection/reflection.metadata.json +1 -1
  560. package/src/reflection/reflection_capabilities.d.ts +4 -5
  561. package/src/reflection/reflection_capabilities.js +24 -10
  562. package/src/reflection/reflection_capabilities.js.map +1 -1
  563. package/src/reflection/reflector.d.ts +8 -20
  564. package/src/reflection/reflector.js +13 -3
  565. package/src/reflection/reflector.js.map +1 -1
  566. package/src/reflection/reflector_reader.js +3 -3
  567. package/src/reflection/reflector_reader.js.map +1 -1
  568. package/src/reflection/types.js.map +1 -1
  569. package/src/render/api.d.ts +17 -6
  570. package/src/render/api.js +8 -1
  571. package/src/render/api.js.map +1 -1
  572. package/src/render.d.ts +1 -1
  573. package/src/render.js +2 -2
  574. package/src/render.js.map +1 -1
  575. package/src/security.js +6 -6
  576. package/src/security.js.map +1 -1
  577. package/src/testability/testability.d.ts +3 -19
  578. package/src/testability/testability.js +10 -5
  579. package/src/testability/testability.js.map +1 -1
  580. package/src/testability/testability.metadata.json +1 -1
  581. package/src/util/decorators.d.ts +2 -1
  582. package/src/util/decorators.js +10 -9
  583. package/src/util/decorators.js.map +1 -1
  584. package/src/util.js.map +1 -1
  585. package/src/zone/ng_zone.d.ts +6 -17
  586. package/src/zone/ng_zone.js +11 -6
  587. package/src/zone/ng_zone.js.map +1 -1
  588. package/src/zone/ng_zone_impl.d.ts +1 -4
  589. package/src/zone/ng_zone_impl.js +3 -2
  590. package/src/zone/ng_zone_impl.js.map +1 -1
  591. package/src/zone.js.map +1 -1
  592. package/testing/async.js +20 -22
  593. package/testing/async.js.map +1 -1
  594. package/testing/async.metadata.json +1 -0
  595. package/testing/async_test_completer.js.map +1 -1
  596. package/testing/fake_async.d.ts +4 -1
  597. package/testing/fake_async.js +10 -2
  598. package/testing/fake_async.js.map +1 -1
  599. package/testing/lang_utils.js +1 -1
  600. package/testing/lang_utils.js.map +1 -1
  601. package/testing/lang_utils.metadata.json +1 -0
  602. package/testing/logger.js +5 -3
  603. package/testing/logger.js.map +1 -1
  604. package/testing/logger.metadata.json +1 -1
  605. package/testing/mock_application_ref.d.ts +1 -1
  606. package/testing/mock_application_ref.js +1 -0
  607. package/testing/mock_application_ref.js.map +1 -1
  608. package/testing/mock_application_ref.metadata.json +1 -1
  609. package/testing/ng_zone_mock.d.ts +0 -1
  610. package/testing/ng_zone_mock.js +2 -1
  611. package/testing/ng_zone_mock.js.map +1 -1
  612. package/testing/ng_zone_mock.metadata.json +1 -1
  613. package/testing/regexp.js +1 -1
  614. package/testing/regexp.js.map +1 -1
  615. package/testing/regexp.metadata.json +1 -0
  616. package/testing/test_injector.d.ts +6 -12
  617. package/testing/test_injector.js +3 -9
  618. package/testing/test_injector.js.map +1 -1
  619. package/testing/test_injector.metadata.json +1 -0
  620. package/testing/testing.d.ts +2 -2
  621. package/testing/testing.js +5 -5
  622. package/testing/testing.js.map +1 -1
  623. package/testing/testing.metadata.json +1 -1
  624. package/testing.js.map +1 -1
@@ -1,15 +1,15 @@
1
- import { IterableDiffers } from './differs/iterable_differs';
2
1
  import { DefaultIterableDifferFactory } from './differs/default_iterable_differ';
3
- import { KeyValueDiffers } from './differs/keyvalue_differs';
4
2
  import { DefaultKeyValueDifferFactory } from './differs/default_keyvalue_differ';
5
- export { DefaultKeyValueDifferFactory, KeyValueChangeRecord } from './differs/default_keyvalue_differ';
6
- export { DefaultIterableDifferFactory, CollectionChangeRecord } from './differs/default_iterable_differ';
7
- export { ChangeDetectionStrategy, CHANGE_DETECTION_STRATEGY_VALUES, ChangeDetectorState, CHANGE_DETECTOR_STATE_VALUES, isDefaultChangeDetectionStrategy } from './constants';
3
+ import { IterableDiffers } from './differs/iterable_differs';
4
+ import { KeyValueDiffers } from './differs/keyvalue_differs';
5
+ export { SimpleChange, ValueUnwrapper, WrappedValue, devModeEqual, looseIdentical, uninitialized } from './change_detection_util';
8
6
  export { ChangeDetectorRef } from './change_detector_ref';
7
+ export { CHANGE_DETECTION_STRATEGY_VALUES, CHANGE_DETECTOR_STATE_VALUES, ChangeDetectionStrategy, ChangeDetectorState, isDefaultChangeDetectionStrategy } from './constants';
8
+ export { CollectionChangeRecord, DefaultIterableDifferFactory } from './differs/default_iterable_differ';
9
+ export { DefaultIterableDiffer } from './differs/default_iterable_differ';
10
+ export { DefaultKeyValueDifferFactory, KeyValueChangeRecord } from './differs/default_keyvalue_differ';
9
11
  export { IterableDiffers } from './differs/iterable_differs';
10
12
  export { KeyValueDiffers } from './differs/keyvalue_differs';
11
- export { DefaultIterableDiffer } from './differs/default_iterable_differ';
12
- export { WrappedValue, ValueUnwrapper, SimpleChange, devModeEqual, looseIdentical, uninitialized } from './change_detection_util';
13
13
  /**
14
14
  * Structural diffing for `Object`s and `Map`s.
15
15
  */
@@ -1 +1 @@
1
- {"version":3,"file":"change_detection.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/change_detection/change_detection.ts"],"names":[],"mappings":"OAIS,EAAC,eAAe,EAAwB,MAAM,4BAA4B;OAC5E,EAAC,4BAA4B,EAAC,MAAM,mCAAmC;OACvE,EAAC,eAAe,EAAwB,MAAM,4BAA4B;OAC1E,EACL,4BAA4B,EAE7B,MAAM,mCAAmC;AAE1C,SACE,4BAA4B,EAC5B,oBAAoB,QACf,mCAAmC,CAAC;AAC3C,SACE,4BAA4B,EAC5B,sBAAsB,QACjB,mCAAmC,CAAC;AAE3C,SACE,uBAAuB,EACvB,gCAAgC,EAChC,mBAAmB,EACnB,4BAA4B,EAC5B,gCAAgC,QAC3B,aAAa,CAAC;AACrB,SAAQ,iBAAiB,QAAO,uBAAuB,CAAC;AACxD,SACE,eAAe,QAIV,4BAA4B,CAAC;AACpC,SAAQ,eAAe,QAA8C,4BAA4B,CAAC;AAClG,SAAQ,qBAAqB,QAAO,mCAAmC,CAAC;AAGxE,SACE,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,aAAa,QACR,yBAAyB,CAAC;AAEjC;;GAEG;AACH,OAAO,MAAM,UAAU;AACnB,kBAAkB,CAAA,CAAC,IAAI,4BAA4B,EAAE,CAAC,CAAC;AAE3D;;GAEG;AACH,OAAO,MAAM,YAAY;AACrB,kBAAkB,CAAA,CAAC,IAAI,4BAA4B,EAAE,CAAC,CAAC;AAE3D,OAAO,MAAM,sBAAsB,GAAsB,IAAI,eAAe,CAAC,YAAY,CAAC,CAAC;AAE3F,OAAO,MAAM,sBAAsB,GAAsB,IAAI,eAAe,CAAC,UAAU,CAAC,CAAC","sourcesContent":["interface DecoratorInvocation {\n type: Function;\n args?: any[];\n }\n import {IterableDiffers, IterableDifferFactory} from './differs/iterable_differs';\nimport {DefaultIterableDifferFactory} from './differs/default_iterable_differ';\nimport {KeyValueDiffers, KeyValueDifferFactory} from './differs/keyvalue_differs';\nimport {\n DefaultKeyValueDifferFactory,\n KeyValueChangeRecord\n} from './differs/default_keyvalue_differ';\n\nexport {\n DefaultKeyValueDifferFactory,\n KeyValueChangeRecord\n} from './differs/default_keyvalue_differ';\nexport {\n DefaultIterableDifferFactory,\n CollectionChangeRecord\n} from './differs/default_iterable_differ';\n\nexport {\n ChangeDetectionStrategy,\n CHANGE_DETECTION_STRATEGY_VALUES,\n ChangeDetectorState,\n CHANGE_DETECTOR_STATE_VALUES,\n isDefaultChangeDetectionStrategy\n} from './constants';\nexport {ChangeDetectorRef} from './change_detector_ref';\nexport {\n IterableDiffers,\n IterableDiffer,\n IterableDifferFactory,\n TrackByFn\n} from './differs/iterable_differs';\nexport {KeyValueDiffers, KeyValueDiffer, KeyValueDifferFactory} from './differs/keyvalue_differs';\nexport {DefaultIterableDiffer} from './differs/default_iterable_differ';\nexport {PipeTransform} from './pipe_transform';\n\nexport {\n WrappedValue,\n ValueUnwrapper,\n SimpleChange,\n devModeEqual,\n looseIdentical,\n uninitialized\n} from './change_detection_util';\n\n/**\n * Structural diffing for `Object`s and `Map`s.\n */\nexport const keyValDiff: KeyValueDifferFactory[] =\n /*@ts2dart_const*/[new DefaultKeyValueDifferFactory()];\n\n/**\n * Structural diffing for `Iterable` types such as `Array`s.\n */\nexport const iterableDiff: IterableDifferFactory[] =\n /*@ts2dart_const*/[new DefaultIterableDifferFactory()];\n\nexport const defaultIterableDiffers = /*@ts2dart_const*/ new IterableDiffers(iterableDiff);\n\nexport const defaultKeyValueDiffers = /*@ts2dart_const*/ new KeyValueDiffers(keyValDiff);\n"]}
1
+ {"version":3,"file":"change_detection.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/change_detection/change_detection.ts"],"names":[],"mappings":"OAAO,EAAC,4BAA4B,EAAC,MAAM,mCAAmC;OACvE,EAAC,4BAA4B,EAAuB,MAAM,mCAAmC;OAC7F,EAAwB,eAAe,EAAC,MAAM,4BAA4B;OAC1E,EAAwB,eAAe,EAAC,MAAM,4BAA4B;AAGjF,SAAQ,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,QAAO,yBAAyB,CAAC;AAChI,SAAQ,iBAAiB,QAAO,uBAAuB,CAAC;AACxD,SAAQ,gCAAgC,EAAE,4BAA4B,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,gCAAgC,QAAO,aAAa,CAAC;AAC3K,SAAQ,sBAAsB,EAAE,4BAA4B,QAAO,mCAAmC,CAAC;AACvG,SAAQ,qBAAqB,QAAO,mCAAmC,CAAC;AACxE,SAAQ,4BAA4B,EAAE,oBAAoB,QAAO,mCAAmC,CAAC;AACrG,SAA+C,eAAe,QAAkB,4BAA4B,CAAC;AAC7G,SAA+C,eAAe,QAAO,4BAA4B,CAAC;AAIlG;;GAEG;AACH,OAAO,MAAM,UAAU;AACnB,kBAAkB,CAAA,CAAC,IAAI,4BAA4B,EAAE,CAAC,CAAC;AAE3D;;GAEG;AACH,OAAO,MAAM,YAAY;AACrB,kBAAkB,CAAA,CAAC,IAAI,4BAA4B,EAAE,CAAC,CAAC;AAE3D,OAAO,MAAM,sBAAsB,GAAsB,IAAI,eAAe,CAAC,YAAY,CAAC,CAAC;AAE3F,OAAO,MAAM,sBAAsB,GAAsB,IAAI,eAAe,CAAC,UAAU,CAAC,CAAC","sourcesContent":["import {DefaultIterableDifferFactory} from './differs/default_iterable_differ';\nimport {DefaultKeyValueDifferFactory, KeyValueChangeRecord} from './differs/default_keyvalue_differ';\nimport {IterableDifferFactory, IterableDiffers} from './differs/iterable_differs';\nimport {KeyValueDifferFactory, KeyValueDiffers} from './differs/keyvalue_differs';\n\nexport {SimpleChanges} from '../metadata/lifecycle_hooks';\nexport {SimpleChange, ValueUnwrapper, WrappedValue, devModeEqual, looseIdentical, uninitialized} from './change_detection_util';\nexport {ChangeDetectorRef} from './change_detector_ref';\nexport {CHANGE_DETECTION_STRATEGY_VALUES, CHANGE_DETECTOR_STATE_VALUES, ChangeDetectionStrategy, ChangeDetectorState, isDefaultChangeDetectionStrategy} from './constants';\nexport {CollectionChangeRecord, DefaultIterableDifferFactory} from './differs/default_iterable_differ';\nexport {DefaultIterableDiffer} from './differs/default_iterable_differ';\nexport {DefaultKeyValueDifferFactory, KeyValueChangeRecord} from './differs/default_keyvalue_differ';\nexport {IterableDiffer, IterableDifferFactory, IterableDiffers, TrackByFn} from './differs/iterable_differs';\nexport {KeyValueDiffer, KeyValueDifferFactory, KeyValueDiffers} from './differs/keyvalue_differs';\nexport {PipeTransform} from './pipe_transform';\n\n\n/**\n * Structural diffing for `Object`s and `Map`s.\n */\nexport const keyValDiff: KeyValueDifferFactory[] =\n /*@ts2dart_const*/[new DefaultKeyValueDifferFactory()];\n\n/**\n * Structural diffing for `Iterable` types such as `Array`s.\n */\nexport const iterableDiff: IterableDifferFactory[] =\n /*@ts2dart_const*/[new DefaultIterableDifferFactory()];\n\nexport const defaultIterableDiffers = /*@ts2dart_const*/ new IterableDiffers(iterableDiff);\n\nexport const defaultKeyValueDiffers = /*@ts2dart_const*/ new KeyValueDiffers(keyValDiff);\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -1 +1 @@
1
- {"__symbolic":"module","metadata":{"keyValDiff":[{"__symbolic":"new","expression":{"__symbolic":"reference","name":"DefaultKeyValueDifferFactory","module":"./differs/default_keyvalue_differ"}}],"iterableDiff":[{"__symbolic":"new","expression":{"__symbolic":"reference","name":"DefaultIterableDifferFactory","module":"./differs/default_iterable_differ"}}],"defaultIterableDiffers":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"IterableDiffers","module":"./differs/iterable_differs"},"arguments":[{"__symbolic":"reference","name":"iterableDiff"}]},"defaultKeyValueDiffers":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"KeyValueDiffers","module":"./differs/keyvalue_differs"},"arguments":[{"__symbolic":"reference","name":"keyValDiff"}]}}}
1
+ {"__symbolic":"module","version":1,"metadata":{"keyValDiff":[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./differs/default_keyvalue_differ","name":"DefaultKeyValueDifferFactory"}}],"iterableDiff":[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./differs/default_iterable_differ","name":"DefaultIterableDifferFactory"}}],"defaultIterableDiffers":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./differs/iterable_differs","name":"IterableDiffers"},"arguments":[{"__symbolic":"reference","name":"iterableDiff"}]},"defaultKeyValueDiffers":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./differs/keyvalue_differs","name":"KeyValueDiffers"},"arguments":[{"__symbolic":"reference","name":"keyValDiff"}]}}}
@@ -1,4 +1,4 @@
1
- export { looseIdentical } from '../../src/facade/lang';
1
+ export { looseIdentical } from '../facade/lang';
2
2
  export declare var uninitialized: Object;
3
3
  export declare function devModeEqual(a: any, b: any): boolean;
4
4
  /**
@@ -18,6 +18,7 @@ export declare function devModeEqual(a: any, b: any): boolean;
18
18
  * return WrappedValue.wrap(this._latestValue); // this will force update
19
19
  * }
20
20
  * ```
21
+ * @stable
21
22
  */
22
23
  export declare class WrappedValue {
23
24
  wrapped: any;
@@ -34,6 +35,7 @@ export declare class ValueUnwrapper {
34
35
  }
35
36
  /**
36
37
  * Represents a basic change from a previous to a new value.
38
+ * @stable
37
39
  */
38
40
  export declare class SimpleChange {
39
41
  previousValue: any;
@@ -1,13 +1,12 @@
1
- import { looseIdentical, isPrimitive } from '../../src/facade/lang';
2
- import { isListLikeIterable, areIterablesEqual } from '../../src/facade/collection';
3
- export { looseIdentical } from '../../src/facade/lang';
1
+ import { areIterablesEqual, isListLikeIterable } from '../facade/collection';
2
+ import { isPrimitive, looseIdentical } from '../facade/lang';
3
+ export { looseIdentical } from '../facade/lang';
4
4
  export var uninitialized = new Object();
5
5
  export function devModeEqual(a, b) {
6
6
  if (isListLikeIterable(a) && isListLikeIterable(b)) {
7
7
  return areIterablesEqual(a, b, devModeEqual);
8
8
  }
9
- else if (!isListLikeIterable(a) && !isPrimitive(a) && !isListLikeIterable(b) &&
10
- !isPrimitive(b)) {
9
+ else if (!isListLikeIterable(a) && !isPrimitive(a) && !isListLikeIterable(b) && !isPrimitive(b)) {
11
10
  return true;
12
11
  }
13
12
  else {
@@ -31,6 +30,7 @@ export function devModeEqual(a, b) {
31
30
  * return WrappedValue.wrap(this._latestValue); // this will force update
32
31
  * }
33
32
  * ```
33
+ * @stable
34
34
  */
35
35
  export class WrappedValue {
36
36
  constructor(wrapped) {
@@ -56,6 +56,7 @@ export class ValueUnwrapper {
56
56
  }
57
57
  /**
58
58
  * Represents a basic change from a previous to a new value.
59
+ * @stable
59
60
  */
60
61
  export class SimpleChange {
61
62
  constructor(previousValue, currentValue) {
@@ -1 +1 @@
1
- {"version":3,"file":"change_detection_util.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/change_detection/change_detection_util.ts"],"names":[],"mappings":"OAIS,EAAC,cAAc,EAAE,WAAW,EAAC,MAAM,uBAAuB;OAC5D,EAAC,kBAAkB,EAAE,iBAAiB,EAAC,MAAM,6BAA6B;AAEjF,SAAQ,cAAc,QAAO,uBAAuB,CAAC;AACrD,OAAO,IAAI,aAAa,GAA8B,IAAI,MAAM,EAAE,CAAC;AAEnE,6BAA6B,CAAM,EAAE,CAAM;IACzC,EAAE,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACnD,MAAM,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,YAAY,CAAC,CAAC;IAE/C,CAAC;IAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC;QACnE,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3B,MAAM,CAAC,IAAI,CAAC;IAEd,CAAC;IAAC,IAAI,CAAC,CAAC;QACN,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9B,CAAC;AACH,CAAC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH;IACE,YAAmB,OAAY;QAAZ,YAAO,GAAP,OAAO,CAAK;IAAG,CAAC;IAEnC,OAAO,IAAI,CAAC,KAAU,IAAkB,MAAM,CAAC,IAAI,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAC3E,CAAC;AAED;;GAEG;AACH;IAAA;QACS,oBAAe,GAAG,KAAK,CAAC;IAWjC,CAAC;IATC,MAAM,CAAC,KAAU;QACf,EAAE,CAAC,CAAC,KAAK,YAAY,YAAY,CAAC,CAAC,CAAC;YAClC,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;YAC5B,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC;QACvB,CAAC;QACD,MAAM,CAAC,KAAK,CAAC;IACf,CAAC;IAED,KAAK,KAAK,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,CAAC,CAAC;AAC3C,CAAC;AAED;;GAEG;AACH;IACE,YAAmB,aAAkB,EAAS,YAAiB;QAA5C,kBAAa,GAAb,aAAa,CAAK;QAAS,iBAAY,GAAZ,YAAY,CAAK;IAAG,CAAC;IAEnE;;OAEG;IACH,aAAa,KAAc,MAAM,CAAC,IAAI,CAAC,aAAa,KAAK,aAAa,CAAC,CAAC,CAAC;AAC3E,CAAC;AAAA","sourcesContent":["interface DecoratorInvocation {\n type: Function;\n args?: any[];\n }\n import {looseIdentical, isPrimitive} from '../../src/facade/lang';\nimport {isListLikeIterable, areIterablesEqual} from '../../src/facade/collection';\n\nexport {looseIdentical} from '../../src/facade/lang';\nexport var uninitialized: Object = /*@ts2dart_const*/ new Object();\n\nexport function devModeEqual(a: any, b: any): boolean {\n if (isListLikeIterable(a) && isListLikeIterable(b)) {\n return areIterablesEqual(a, b, devModeEqual);\n\n } else if (!isListLikeIterable(a) && !isPrimitive(a) && !isListLikeIterable(b) &&\n !isPrimitive(b)) {\n return true;\n\n } else {\n return looseIdentical(a, b);\n }\n}\n\n/**\n * Indicates that the result of a {@link PipeMetadata} transformation has changed even though the\n * reference\n * has not changed.\n *\n * The wrapped value will be unwrapped by change detection, and the unwrapped value will be stored.\n *\n * Example:\n *\n * ```\n * if (this._latestValue === this._latestReturnedValue) {\n * return this._latestReturnedValue;\n * } else {\n * this._latestReturnedValue = this._latestValue;\n * return WrappedValue.wrap(this._latestValue); // this will force update\n * }\n * ```\n */\nexport class WrappedValue {\n constructor(public wrapped: any) {}\n\n static wrap(value: any): WrappedValue { return new WrappedValue(value); }\n}\n\n/**\n * Helper class for unwrapping WrappedValue s\n */\nexport class ValueUnwrapper {\n public hasWrappedValue = false;\n\n unwrap(value: any): any {\n if (value instanceof WrappedValue) {\n this.hasWrappedValue = true;\n return value.wrapped;\n }\n return value;\n }\n\n reset() { this.hasWrappedValue = false; }\n}\n\n/**\n * Represents a basic change from a previous to a new value.\n */\nexport class SimpleChange {\n constructor(public previousValue: any, public currentValue: any) {}\n\n /**\n * Check whether the new value is the first value assigned.\n */\n isFirstChange(): boolean { return this.previousValue === uninitialized; }\n}\n"]}
1
+ {"version":3,"file":"change_detection_util.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/change_detection/change_detection_util.ts"],"names":[],"mappings":"OAAO,EAAC,iBAAiB,EAAE,kBAAkB,EAAC,MAAM,sBAAsB;OACnE,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,gBAAgB;AAE1D,SAAQ,cAAc,QAAO,gBAAgB,CAAC;AAE9C,OAAO,IAAI,aAAa,GAA8B,IAAI,MAAM,EAAE,CAAC;AAEnE,6BAA6B,CAAM,EAAE,CAAM;IACzC,EAAE,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACnD,MAAM,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,YAAY,CAAC,CAAC;IAE/C,CAAC;IAAC,IAAI,CAAC,EAAE,CAAC,CACN,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3F,MAAM,CAAC,IAAI,CAAC;IAEd,CAAC;IAAC,IAAI,CAAC,CAAC;QACN,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9B,CAAC;AACH,CAAC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH;IACE,YAAmB,OAAY;QAAZ,YAAO,GAAP,OAAO,CAAK;IAAG,CAAC;IAEnC,OAAO,IAAI,CAAC,KAAU,IAAkB,MAAM,CAAC,IAAI,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAC3E,CAAC;AAED;;GAEG;AACH;IAAA;QACS,oBAAe,GAAG,KAAK,CAAC;IAWjC,CAAC;IATC,MAAM,CAAC,KAAU;QACf,EAAE,CAAC,CAAC,KAAK,YAAY,YAAY,CAAC,CAAC,CAAC;YAClC,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;YAC5B,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC;QACvB,CAAC;QACD,MAAM,CAAC,KAAK,CAAC;IACf,CAAC;IAED,KAAK,KAAK,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,CAAC,CAAC;AAC3C,CAAC;AAED;;;GAGG;AACH;IACE,YAAmB,aAAkB,EAAS,YAAiB;QAA5C,kBAAa,GAAb,aAAa,CAAK;QAAS,iBAAY,GAAZ,YAAY,CAAK;IAAG,CAAC;IAEnE;;OAEG;IACH,aAAa,KAAc,MAAM,CAAC,IAAI,CAAC,aAAa,KAAK,aAAa,CAAC,CAAC,CAAC;AAC3E,CAAC;AAAA","sourcesContent":["import {areIterablesEqual, isListLikeIterable} from '../facade/collection';\nimport {isPrimitive, looseIdentical} from '../facade/lang';\n\nexport {looseIdentical} from '../facade/lang';\n\nexport var uninitialized: Object = /*@ts2dart_const*/ new Object();\n\nexport function devModeEqual(a: any, b: any): boolean {\n if (isListLikeIterable(a) && isListLikeIterable(b)) {\n return areIterablesEqual(a, b, devModeEqual);\n\n } else if (\n !isListLikeIterable(a) && !isPrimitive(a) && !isListLikeIterable(b) && !isPrimitive(b)) {\n return true;\n\n } else {\n return looseIdentical(a, b);\n }\n}\n\n/**\n * Indicates that the result of a {@link PipeMetadata} transformation has changed even though the\n * reference\n * has not changed.\n *\n * The wrapped value will be unwrapped by change detection, and the unwrapped value will be stored.\n *\n * Example:\n *\n * ```\n * if (this._latestValue === this._latestReturnedValue) {\n * return this._latestReturnedValue;\n * } else {\n * this._latestReturnedValue = this._latestValue;\n * return WrappedValue.wrap(this._latestValue); // this will force update\n * }\n * ```\n * @stable\n */\nexport class WrappedValue {\n constructor(public wrapped: any) {}\n\n static wrap(value: any): WrappedValue { return new WrappedValue(value); }\n}\n\n/**\n * Helper class for unwrapping WrappedValue s\n */\nexport class ValueUnwrapper {\n public hasWrappedValue = false;\n\n unwrap(value: any): any {\n if (value instanceof WrappedValue) {\n this.hasWrappedValue = true;\n return value.wrapped;\n }\n return value;\n }\n\n reset() { this.hasWrappedValue = false; }\n}\n\n/**\n * Represents a basic change from a previous to a new value.\n * @stable\n */\nexport class SimpleChange {\n constructor(public previousValue: any, public currentValue: any) {}\n\n /**\n * Check whether the new value is the first value assigned.\n */\n isFirstChange(): boolean { return this.previousValue === uninitialized; }\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -1 +1 @@
1
- {"__symbolic":"module","metadata":{"uninitialized":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"Object"}}}}
1
+ {"__symbolic":"module","version":1,"metadata":{"uninitialized":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"Object"}}}}
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @stable
3
+ */
1
4
  export declare abstract class ChangeDetectorRef {
2
5
  /**
3
6
  * Marks all {@link ChangeDetectionStrategy#OnPush} ancestors as to be checked.
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @stable
3
+ */
1
4
  export class ChangeDetectorRef {
2
5
  }
3
6
  //# sourceMappingURL=change_detector_ref.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"change_detector_ref.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/change_detection/change_detector_ref.ts"],"names":[],"mappings":"AAIE;AA+LF,CAAC;AAAA","sourcesContent":["interface DecoratorInvocation {\n type: Function;\n args?: any[];\n }\n export abstract class ChangeDetectorRef {\n /**\n * Marks all {@link ChangeDetectionStrategy#OnPush} ancestors as to be checked.\n *\n * <!-- TODO: Add a link to a chapter on OnPush components -->\n *\n * ### Example ([live demo](http://plnkr.co/edit/GC512b?p=preview))\n *\n * ```typescript\n * @Component({\n * selector: 'cmp',\n * changeDetection: ChangeDetectionStrategy.OnPush,\n * template: `Number of ticks: {{numberOfTicks}}`\n * })\n * class Cmp {\n * numberOfTicks = 0;\n *\n * constructor(ref: ChangeDetectorRef) {\n * setInterval(() => {\n * this.numberOfTicks ++\n * // the following is required, otherwise the view will not be updated\n * this.ref.markForCheck();\n * }, 1000);\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * changeDetection: ChangeDetectionStrategy.OnPush,\n * template: `\n * <cmp><cmp>\n * `,\n * directives: [Cmp]\n * })\n * class App {\n * }\n *\n * bootstrap(App);\n * ```\n */\n abstract markForCheck(): void;\n\n /**\n * Detaches the change detector from the change detector tree.\n *\n * The detached change detector will not be checked until it is reattached.\n *\n * This can also be used in combination with {@link ChangeDetectorRef#detectChanges} to implement\n * local change\n * detection checks.\n *\n * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->\n * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->\n *\n * ### Example\n *\n * The following example defines a component with a large list of readonly data.\n * Imagine the data changes constantly, many times per second. For performance reasons,\n * we want to check and update the list every five seconds. We can do that by detaching\n * the component's change detector and doing a local check every five seconds.\n *\n * ```typescript\n * class DataProvider {\n * // in a real application the returned data will be different every time\n * get data() {\n * return [1,2,3,4,5];\n * }\n * }\n *\n * @Component({\n * selector: 'giant-list',\n * template: `\n * <li *ngFor=\"let d of dataProvider.data\">Data {{d}}</lig>\n * `,\n * directives: [NgFor]\n * })\n * class GiantList {\n * constructor(private ref: ChangeDetectorRef, private dataProvider:DataProvider) {\n * ref.detach();\n * setInterval(() => {\n * this.ref.detectChanges();\n * }, 5000);\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * providers: [DataProvider],\n * template: `\n * <giant-list><giant-list>\n * `,\n * directives: [GiantList]\n * })\n * class App {\n * }\n *\n * bootstrap(App);\n * ```\n */\n abstract detach(): void;\n\n /**\n * Checks the change detector and its children.\n *\n * This can also be used in combination with {@link ChangeDetectorRef#detach} to implement local\n * change detection\n * checks.\n *\n * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->\n * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->\n *\n * ### Example\n *\n * The following example defines a component with a large list of readonly data.\n * Imagine, the data changes constantly, many times per second. For performance reasons,\n * we want to check and update the list every five seconds.\n *\n * We can do that by detaching the component's change detector and doing a local change detection\n * check\n * every five seconds.\n *\n * See {@link ChangeDetectorRef#detach} for more information.\n */\n abstract detectChanges(): void;\n\n /**\n * Checks the change detector and its children, and throws if any changes are detected.\n *\n * This is used in development mode to verify that running change detection doesn't introduce\n * other changes.\n */\n abstract checkNoChanges(): void;\n\n /**\n * Reattach the change detector to the change detector tree.\n *\n * This also marks OnPush ancestors as to be checked. This reattached change detector will be\n * checked during the next change detection run.\n *\n * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->\n *\n * ### Example ([live demo](http://plnkr.co/edit/aUhZha?p=preview))\n *\n * The following example creates a component displaying `live` data. The component will detach\n * its change detector from the main change detector tree when the component's live property\n * is set to false.\n *\n * ```typescript\n * class DataProvider {\n * data = 1;\n *\n * constructor() {\n * setInterval(() => {\n * this.data = this.data * 2;\n * }, 500);\n * }\n * }\n *\n * @Component({\n * selector: 'live-data',\n * inputs: ['live'],\n * template: `Data: {{dataProvider.data}}`\n * })\n * class LiveData {\n * constructor(private ref: ChangeDetectorRef, private dataProvider:DataProvider) {}\n *\n * set live(value) {\n * if (value)\n * this.ref.reattach();\n * else\n * this.ref.detach();\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * providers: [DataProvider],\n * template: `\n * Live Update: <input type=\"checkbox\" [(ngModel)]=\"live\">\n * <live-data [live]=\"live\"><live-data>\n * `,\n * directives: [LiveData, FORM_DIRECTIVES]\n * })\n * class App {\n * live = true;\n * }\n *\n * bootstrap(App);\n * ```\n */\n abstract reattach(): void;\n}\n"]}
1
+ {"version":3,"file":"change_detector_ref.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/change_detection/change_detector_ref.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;AA+LA,CAAC;AAAA","sourcesContent":["/**\n * @stable\n */\nexport abstract class ChangeDetectorRef {\n /**\n * Marks all {@link ChangeDetectionStrategy#OnPush} ancestors as to be checked.\n *\n * <!-- TODO: Add a link to a chapter on OnPush components -->\n *\n * ### Example ([live demo](http://plnkr.co/edit/GC512b?p=preview))\n *\n * ```typescript\n * @Component({\n * selector: 'cmp',\n * changeDetection: ChangeDetectionStrategy.OnPush,\n * template: `Number of ticks: {{numberOfTicks}}`\n * })\n * class Cmp {\n * numberOfTicks = 0;\n *\n * constructor(ref: ChangeDetectorRef) {\n * setInterval(() => {\n * this.numberOfTicks ++\n * // the following is required, otherwise the view will not be updated\n * this.ref.markForCheck();\n * }, 1000);\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * changeDetection: ChangeDetectionStrategy.OnPush,\n * template: `\n * <cmp><cmp>\n * `,\n * directives: [Cmp]\n * })\n * class App {\n * }\n *\n * bootstrap(App);\n * ```\n */\n abstract markForCheck(): void;\n\n /**\n * Detaches the change detector from the change detector tree.\n *\n * The detached change detector will not be checked until it is reattached.\n *\n * This can also be used in combination with {@link ChangeDetectorRef#detectChanges} to implement\n * local change\n * detection checks.\n *\n * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->\n * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->\n *\n * ### Example\n *\n * The following example defines a component with a large list of readonly data.\n * Imagine the data changes constantly, many times per second. For performance reasons,\n * we want to check and update the list every five seconds. We can do that by detaching\n * the component's change detector and doing a local check every five seconds.\n *\n * ```typescript\n * class DataProvider {\n * // in a real application the returned data will be different every time\n * get data() {\n * return [1,2,3,4,5];\n * }\n * }\n *\n * @Component({\n * selector: 'giant-list',\n * template: `\n * <li *ngFor=\"let d of dataProvider.data\">Data {{d}}</lig>\n * `,\n * directives: [NgFor]\n * })\n * class GiantList {\n * constructor(private ref: ChangeDetectorRef, private dataProvider:DataProvider) {\n * ref.detach();\n * setInterval(() => {\n * this.ref.detectChanges();\n * }, 5000);\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * providers: [DataProvider],\n * template: `\n * <giant-list><giant-list>\n * `,\n * directives: [GiantList]\n * })\n * class App {\n * }\n *\n * bootstrap(App);\n * ```\n */\n abstract detach(): void;\n\n /**\n * Checks the change detector and its children.\n *\n * This can also be used in combination with {@link ChangeDetectorRef#detach} to implement local\n * change detection\n * checks.\n *\n * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->\n * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->\n *\n * ### Example\n *\n * The following example defines a component with a large list of readonly data.\n * Imagine, the data changes constantly, many times per second. For performance reasons,\n * we want to check and update the list every five seconds.\n *\n * We can do that by detaching the component's change detector and doing a local change detection\n * check\n * every five seconds.\n *\n * See {@link ChangeDetectorRef#detach} for more information.\n */\n abstract detectChanges(): void;\n\n /**\n * Checks the change detector and its children, and throws if any changes are detected.\n *\n * This is used in development mode to verify that running change detection doesn't introduce\n * other changes.\n */\n abstract checkNoChanges(): void;\n\n /**\n * Reattach the change detector to the change detector tree.\n *\n * This also marks OnPush ancestors as to be checked. This reattached change detector will be\n * checked during the next change detection run.\n *\n * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->\n *\n * ### Example ([live demo](http://plnkr.co/edit/aUhZha?p=preview))\n *\n * The following example creates a component displaying `live` data. The component will detach\n * its change detector from the main change detector tree when the component's live property\n * is set to false.\n *\n * ```typescript\n * class DataProvider {\n * data = 1;\n *\n * constructor() {\n * setInterval(() => {\n * this.data = this.data * 2;\n * }, 500);\n * }\n * }\n *\n * @Component({\n * selector: 'live-data',\n * inputs: ['live'],\n * template: `Data: {{dataProvider.data}}`\n * })\n * class LiveData {\n * constructor(private ref: ChangeDetectorRef, private dataProvider:DataProvider) {}\n *\n * set live(value) {\n * if (value)\n * this.ref.reattach();\n * else\n * this.ref.detach();\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * providers: [DataProvider],\n * template: `\n * Live Update: <input type=\"checkbox\" [(ngModel)]=\"live\">\n * <live-data [live]=\"live\"><live-data>\n * `,\n * directives: [LiveData, FORM_DIRECTIVES]\n * })\n * class App {\n * live = true;\n * }\n *\n * bootstrap(App);\n * ```\n */\n abstract reattach(): void;\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -22,6 +22,7 @@ export declare enum ChangeDetectorState {
22
22
  /**
23
23
  * Describes within the change detector which strategy will be used the next time change
24
24
  * detection is triggered.
25
+ * @stable
25
26
  */
26
27
  export declare enum ChangeDetectionStrategy {
27
28
  /**
@@ -1,4 +1,4 @@
1
- import { isBlank } from '../../src/facade/lang';
1
+ import { isBlank } from '../facade/lang';
2
2
  /**
3
3
  * Describes the current state of the change detector.
4
4
  */
@@ -24,6 +24,7 @@ export var ChangeDetectorState;
24
24
  /**
25
25
  * Describes within the change detector which strategy will be used the next time change
26
26
  * detection is triggered.
27
+ * @stable
27
28
  */
28
29
  export var ChangeDetectionStrategy;
29
30
  (function (ChangeDetectionStrategy) {
@@ -65,7 +66,7 @@ export var CHANGE_DETECTION_STRATEGY_VALUES = [
65
66
  ChangeDetectionStrategy.CheckAlways,
66
67
  ChangeDetectionStrategy.Detached,
67
68
  ChangeDetectionStrategy.OnPush,
68
- ChangeDetectionStrategy.Default
69
+ ChangeDetectionStrategy.Default,
69
70
  ];
70
71
  /**
71
72
  * List of possible {@link ChangeDetectorState} values.
@@ -73,7 +74,7 @@ export var CHANGE_DETECTION_STRATEGY_VALUES = [
73
74
  export var CHANGE_DETECTOR_STATE_VALUES = [
74
75
  ChangeDetectorState.NeverChecked,
75
76
  ChangeDetectorState.CheckedBefore,
76
- ChangeDetectorState.Errored
77
+ ChangeDetectorState.Errored,
77
78
  ];
78
79
  export function isDefaultChangeDetectionStrategy(changeDetectionStrategy) {
79
80
  return isBlank(changeDetectionStrategy) ||
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/change_detection/constants.ts"],"names":[],"mappings":"OAIS,EAAC,OAAO,EAAC,MAAM,uBAAuB;AAE/C;;GAEG;AACH,WAAY,mBAmBX;AAnBD,WAAY,mBAAmB;IAC7B;;;OAGG;IACH,6EAAY,CAAA;IAEZ;;;OAGG;IACH,+EAAa,CAAA;IAEb;;;;OAIG;IACH,mEAAO,CAAA;AACT,CAAC,EAnBW,mBAAmB,KAAnB,mBAAmB,QAmB9B;AAGD;;;GAGG;AACH,WAAY,uBAkCX;AAlCD,WAAY,uBAAuB;IACjC;;;OAGG;IACH,+EAAS,CAAA;IAET;;;OAGG;IACH,2EAAO,CAAA;IAEP;;;OAGG;IACH,mFAAW,CAAA;IAEX;;;OAGG;IACH,6EAAQ,CAAA;IAER;;OAEG;IACH,yEAAM,CAAA;IAEN;;OAEG;IACH,2EAAO,CAAA;AACT,CAAC,EAlCW,uBAAuB,KAAvB,uBAAuB,QAkClC;AAED;;GAEG;AACH,OAAO,IAAI,gCAAgC,GAAG;IAC5C,uBAAuB,CAAC,SAAS;IACjC,uBAAuB,CAAC,OAAO;IAC/B,uBAAuB,CAAC,WAAW;IACnC,uBAAuB,CAAC,QAAQ;IAChC,uBAAuB,CAAC,MAAM;IAC9B,uBAAuB,CAAC,OAAO;CAChC,CAAC;AAEF;;GAEG;AACH,OAAO,IAAI,4BAA4B,GAAG;IACxC,mBAAmB,CAAC,YAAY;IAChC,mBAAmB,CAAC,aAAa;IACjC,mBAAmB,CAAC,OAAO;CAC5B,CAAC;AAEF,iDACI,uBAAgD;IAClD,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC;QAChC,uBAAuB,KAAK,uBAAuB,CAAC,OAAO,CAAC;AACrE,CAAC","sourcesContent":["interface DecoratorInvocation {\n type: Function;\n args?: any[];\n }\n import {isBlank} from '../../src/facade/lang';\n\n/**\n * Describes the current state of the change detector.\n */\nexport enum ChangeDetectorState {\n /**\n * `NeverChecked` means that the change detector has not been checked yet, and\n * initialization methods should be called during detection.\n */\n NeverChecked,\n\n /**\n * `CheckedBefore` means that the change detector has successfully completed at least\n * one detection previously.\n */\n CheckedBefore,\n\n /**\n * `Errored` means that the change detector encountered an error checking a binding\n * or calling a directive lifecycle method and is now in an inconsistent state. Change\n * detectors in this state will no longer detect changes.\n */\n Errored\n}\n\n\n/**\n * Describes within the change detector which strategy will be used the next time change\n * detection is triggered.\n */\nexport enum ChangeDetectionStrategy {\n /**\n * `CheckedOnce` means that after calling detectChanges the mode of the change detector\n * will become `Checked`.\n */\n CheckOnce,\n\n /**\n * `Checked` means that the change detector should be skipped until its mode changes to\n * `CheckOnce`.\n */\n Checked,\n\n /**\n * `CheckAlways` means that after calling detectChanges the mode of the change detector\n * will remain `CheckAlways`.\n */\n CheckAlways,\n\n /**\n * `Detached` means that the change detector sub tree is not a part of the main tree and\n * should be skipped.\n */\n Detached,\n\n /**\n * `OnPush` means that the change detector's mode will be set to `CheckOnce` during hydration.\n */\n OnPush,\n\n /**\n * `Default` means that the change detector's mode will be set to `CheckAlways` during hydration.\n */\n Default,\n}\n\n/**\n * List of possible {@link ChangeDetectionStrategy} values.\n */\nexport var CHANGE_DETECTION_STRATEGY_VALUES = [\n ChangeDetectionStrategy.CheckOnce,\n ChangeDetectionStrategy.Checked,\n ChangeDetectionStrategy.CheckAlways,\n ChangeDetectionStrategy.Detached,\n ChangeDetectionStrategy.OnPush,\n ChangeDetectionStrategy.Default\n];\n\n/**\n * List of possible {@link ChangeDetectorState} values.\n */\nexport var CHANGE_DETECTOR_STATE_VALUES = [\n ChangeDetectorState.NeverChecked,\n ChangeDetectorState.CheckedBefore,\n ChangeDetectorState.Errored\n];\n\nexport function isDefaultChangeDetectionStrategy(\n changeDetectionStrategy: ChangeDetectionStrategy): boolean {\n return isBlank(changeDetectionStrategy) ||\n changeDetectionStrategy === ChangeDetectionStrategy.Default;\n}\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/change_detection/constants.ts"],"names":[],"mappings":"OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB;AAEtC;;GAEG;AACH,WAAY,mBAmBX;AAnBD,WAAY,mBAAmB;IAC7B;;;OAGG;IACH,6EAAY,CAAA;IAEZ;;;OAGG;IACH,+EAAa,CAAA;IAEb;;;;OAIG;IACH,mEAAO,CAAA;AACT,CAAC,EAnBW,mBAAmB,KAAnB,mBAAmB,QAmB9B;AAGD;;;;GAIG;AACH,WAAY,uBAkCX;AAlCD,WAAY,uBAAuB;IACjC;;;OAGG;IACH,+EAAS,CAAA;IAET;;;OAGG;IACH,2EAAO,CAAA;IAEP;;;OAGG;IACH,mFAAW,CAAA;IAEX;;;OAGG;IACH,6EAAQ,CAAA;IAER;;OAEG;IACH,yEAAM,CAAA;IAEN;;OAEG;IACH,2EAAO,CAAA;AACT,CAAC,EAlCW,uBAAuB,KAAvB,uBAAuB,QAkClC;AAED;;GAEG;AACH,OAAO,IAAI,gCAAgC,GAAG;IAC5C,uBAAuB,CAAC,SAAS;IACjC,uBAAuB,CAAC,OAAO;IAC/B,uBAAuB,CAAC,WAAW;IACnC,uBAAuB,CAAC,QAAQ;IAChC,uBAAuB,CAAC,MAAM;IAC9B,uBAAuB,CAAC,OAAO;CAChC,CAAC;AAEF;;GAEG;AACH,OAAO,IAAI,4BAA4B,GAAG;IACxC,mBAAmB,CAAC,YAAY;IAChC,mBAAmB,CAAC,aAAa;IACjC,mBAAmB,CAAC,OAAO;CAC5B,CAAC;AAEF,iDAAiD,uBAAgD;IAE/F,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC;QACnC,uBAAuB,KAAK,uBAAuB,CAAC,OAAO,CAAC;AAClE,CAAC","sourcesContent":["import {isBlank} from '../facade/lang';\n\n/**\n * Describes the current state of the change detector.\n */\nexport enum ChangeDetectorState {\n /**\n * `NeverChecked` means that the change detector has not been checked yet, and\n * initialization methods should be called during detection.\n */\n NeverChecked,\n\n /**\n * `CheckedBefore` means that the change detector has successfully completed at least\n * one detection previously.\n */\n CheckedBefore,\n\n /**\n * `Errored` means that the change detector encountered an error checking a binding\n * or calling a directive lifecycle method and is now in an inconsistent state. Change\n * detectors in this state will no longer detect changes.\n */\n Errored,\n}\n\n\n/**\n * Describes within the change detector which strategy will be used the next time change\n * detection is triggered.\n * @stable\n */\nexport enum ChangeDetectionStrategy {\n /**\n * `CheckedOnce` means that after calling detectChanges the mode of the change detector\n * will become `Checked`.\n */\n CheckOnce,\n\n /**\n * `Checked` means that the change detector should be skipped until its mode changes to\n * `CheckOnce`.\n */\n Checked,\n\n /**\n * `CheckAlways` means that after calling detectChanges the mode of the change detector\n * will remain `CheckAlways`.\n */\n CheckAlways,\n\n /**\n * `Detached` means that the change detector sub tree is not a part of the main tree and\n * should be skipped.\n */\n Detached,\n\n /**\n * `OnPush` means that the change detector's mode will be set to `CheckOnce` during hydration.\n */\n OnPush,\n\n /**\n * `Default` means that the change detector's mode will be set to `CheckAlways` during hydration.\n */\n Default,\n}\n\n/**\n * List of possible {@link ChangeDetectionStrategy} values.\n */\nexport var CHANGE_DETECTION_STRATEGY_VALUES = [\n ChangeDetectionStrategy.CheckOnce,\n ChangeDetectionStrategy.Checked,\n ChangeDetectionStrategy.CheckAlways,\n ChangeDetectionStrategy.Detached,\n ChangeDetectionStrategy.OnPush,\n ChangeDetectionStrategy.Default,\n];\n\n/**\n * List of possible {@link ChangeDetectorState} values.\n */\nexport var CHANGE_DETECTOR_STATE_VALUES = [\n ChangeDetectorState.NeverChecked,\n ChangeDetectorState.CheckedBefore,\n ChangeDetectorState.Errored,\n];\n\nexport function isDefaultChangeDetectionStrategy(changeDetectionStrategy: ChangeDetectionStrategy):\n boolean {\n return isBlank(changeDetectionStrategy) ||\n changeDetectionStrategy === ChangeDetectionStrategy.Default;\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
@@ -1 +1 @@
1
- {"__symbolic":"module","metadata":{"CHANGE_DETECTION_STRATEGY_VALUES":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectionStrategy"},"member":"CheckOnce"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectionStrategy"},"member":"Checked"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectionStrategy"},"member":"CheckAlways"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectionStrategy"},"member":"Detached"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectionStrategy"},"member":"OnPush"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectionStrategy"},"member":"Default"}],"CHANGE_DETECTOR_STATE_VALUES":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectorState"},"member":"NeverChecked"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectorState"},"member":"CheckedBefore"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectorState"},"member":"Errored"}]}}
1
+ {"__symbolic":"module","version":1,"metadata":{"CHANGE_DETECTION_STRATEGY_VALUES":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectionStrategy"},"member":"CheckOnce"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectionStrategy"},"member":"Checked"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectionStrategy"},"member":"CheckAlways"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectionStrategy"},"member":"Detached"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectionStrategy"},"member":"OnPush"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectionStrategy"},"member":"Default"}],"CHANGE_DETECTOR_STATE_VALUES":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectorState"},"member":"NeverChecked"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectorState"},"member":"CheckedBefore"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectorState"},"member":"Errored"}],"isDefaultChangeDetectionStrategy":{"__symbolic":"function","parameters":["changeDetectionStrategy"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../facade/lang","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"changeDetectionStrategy"}]},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"changeDetectionStrategy"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ChangeDetectionStrategy"},"member":"Default"}}}}}}
@@ -5,6 +5,9 @@ export declare class DefaultIterableDifferFactory implements IterableDifferFacto
5
5
  supports(obj: Object): boolean;
6
6
  create(cdRef: ChangeDetectorRef, trackByFn?: TrackByFn): DefaultIterableDiffer;
7
7
  }
8
+ /**
9
+ * @stable
10
+ */
8
11
  export declare class DefaultIterableDiffer implements IterableDiffer {
9
12
  private _trackByFn;
10
13
  private _length;
@@ -35,107 +38,16 @@ export declare class DefaultIterableDiffer implements IterableDiffer {
35
38
  onDestroy(): void;
36
39
  check(collection: any): boolean;
37
40
  readonly isDirty: boolean;
38
- /**
39
- * Reset the state of the change objects to show no changes. This means set previousKey to
40
- * currentKey, and clear all of the queues (additions, moves, removals).
41
- * Set the previousIndexes of moved and added items to their currentIndexes
42
- * Reset the list of additions, moves and removals
43
- *
44
- * @internal
45
- */
46
- _reset(): void;
47
- /**
48
- * This is the core function which handles differences between collections.
49
- *
50
- * - `record` is the record which we saw at this position last time. If null then it is a new
51
- * item.
52
- * - `item` is the current item in the collection
53
- * - `index` is the position of the item in the collection
54
- *
55
- * @internal
56
- */
57
- _mismatch(record: CollectionChangeRecord, item: any, itemTrackBy: any, index: number): CollectionChangeRecord;
58
- /**
59
- * This check is only needed if an array contains duplicates. (Short circuit of nothing dirty)
60
- *
61
- * Use case: `[a, a]` => `[b, a, a]`
62
- *
63
- * If we did not have this check then the insertion of `b` would:
64
- * 1) evict first `a`
65
- * 2) insert `b` at `0` index.
66
- * 3) leave `a` at index `1` as is. <-- this is wrong!
67
- * 3) reinsert `a` at index 2. <-- this is wrong!
68
- *
69
- * The correct behavior is:
70
- * 1) evict first `a`
71
- * 2) insert `b` at `0` index.
72
- * 3) reinsert `a` at index 1.
73
- * 3) move `a` at from `1` to `2`.
74
- *
75
- *
76
- * Double check that we have not evicted a duplicate item. We need to check if the item type may
77
- * have already been removed:
78
- * The insertion of b will evict the first 'a'. If we don't reinsert it now it will be reinserted
79
- * at the end. Which will show up as the two 'a's switching position. This is incorrect, since a
80
- * better way to think of it is as insert of 'b' rather then switch 'a' with 'b' and then add 'a'
81
- * at the end.
82
- *
83
- * @internal
84
- */
85
- _verifyReinsertion(record: CollectionChangeRecord, item: any, itemTrackBy: any, index: number): CollectionChangeRecord;
86
- /**
87
- * Get rid of any excess {@link CollectionChangeRecord}s from the previous collection
88
- *
89
- * - `record` The first excess {@link CollectionChangeRecord}.
90
- *
91
- * @internal
92
- */
93
- _truncate(record: CollectionChangeRecord): void;
94
- /** @internal */
95
- _reinsertAfter(record: CollectionChangeRecord, prevRecord: CollectionChangeRecord, index: number): CollectionChangeRecord;
96
- /** @internal */
97
- _moveAfter(record: CollectionChangeRecord, prevRecord: CollectionChangeRecord, index: number): CollectionChangeRecord;
98
- /** @internal */
99
- _addAfter(record: CollectionChangeRecord, prevRecord: CollectionChangeRecord, index: number): CollectionChangeRecord;
100
- /** @internal */
101
- _insertAfter(record: CollectionChangeRecord, prevRecord: CollectionChangeRecord, index: number): CollectionChangeRecord;
102
- /** @internal */
103
- _remove(record: CollectionChangeRecord): CollectionChangeRecord;
104
- /** @internal */
105
- _unlink(record: CollectionChangeRecord): CollectionChangeRecord;
106
- /** @internal */
107
- _addToMoves(record: CollectionChangeRecord, toIndex: number): CollectionChangeRecord;
108
- /** @internal */
109
- _addToRemovals(record: CollectionChangeRecord): CollectionChangeRecord;
110
- /** @internal */
111
- _addIdentityChange(record: CollectionChangeRecord, item: any): CollectionChangeRecord;
112
41
  toString(): string;
113
42
  }
43
+ /**
44
+ * @stable
45
+ */
114
46
  export declare class CollectionChangeRecord {
115
47
  item: any;
116
48
  trackById: any;
117
49
  currentIndex: number;
118
50
  previousIndex: number;
119
- /** @internal */
120
- _nextPrevious: CollectionChangeRecord;
121
- /** @internal */
122
- _prev: CollectionChangeRecord;
123
- /** @internal */
124
- _next: CollectionChangeRecord;
125
- /** @internal */
126
- _prevDup: CollectionChangeRecord;
127
- /** @internal */
128
- _nextDup: CollectionChangeRecord;
129
- /** @internal */
130
- _prevRemoved: CollectionChangeRecord;
131
- /** @internal */
132
- _nextRemoved: CollectionChangeRecord;
133
- /** @internal */
134
- _nextAdded: CollectionChangeRecord;
135
- /** @internal */
136
- _nextMoved: CollectionChangeRecord;
137
- /** @internal */
138
- _nextIdentityChange: CollectionChangeRecord;
139
51
  constructor(item: any, trackById: any);
140
52
  toString(): string;
141
53
  }
@@ -1,6 +1,6 @@
1
- import { BaseException } from '../../../src/facade/exceptions';
2
- import { isListLikeIterable, iterateListLike } from '../../../src/facade/collection';
3
- import { isBlank, isPresent, stringify, getMapKey, looseIdentical, isArray } from '../../../src/facade/lang';
1
+ import { isListLikeIterable, iterateListLike } from '../../facade/collection';
2
+ import { BaseException } from '../../facade/exceptions';
3
+ import { getMapKey, isArray, isBlank, isPresent, looseIdentical, stringify } from '../../facade/lang';
4
4
  /* @ts2dart_const */
5
5
  export class DefaultIterableDifferFactory {
6
6
  constructor() {
@@ -11,6 +11,9 @@ export class DefaultIterableDifferFactory {
11
11
  }
12
12
  }
13
13
  var trackByIdentity = (index, item) => item;
14
+ /**
15
+ * @stable
16
+ */
14
17
  export class DefaultIterableDiffer {
15
18
  constructor(_trackByFn) {
16
19
  this._trackByFn = _trackByFn;
@@ -117,7 +120,7 @@ export class DefaultIterableDiffer {
117
120
  }
118
121
  else {
119
122
  index = 0;
120
- iterateListLike(collection, (item) => {
123
+ iterateListLike(collection, (item /** TODO #9100 */) => {
121
124
  itemTrackBy = this._trackByFn(index, item);
122
125
  if (record === null || !looseIdentical(record.trackById, itemTrackBy)) {
123
126
  record = this._mismatch(record, item, itemTrackBy, index);
@@ -454,23 +457,28 @@ export class DefaultIterableDiffer {
454
457
  }
455
458
  toString() {
456
459
  var list = [];
457
- this.forEachItem((record) => list.push(record));
460
+ this.forEachItem((record /** TODO #9100 */) => list.push(record));
458
461
  var previous = [];
459
- this.forEachPreviousItem((record) => previous.push(record));
462
+ this.forEachPreviousItem((record /** TODO #9100 */) => previous.push(record));
460
463
  var additions = [];
461
- this.forEachAddedItem((record) => additions.push(record));
464
+ this.forEachAddedItem((record /** TODO #9100 */) => additions.push(record));
462
465
  var moves = [];
463
- this.forEachMovedItem((record) => moves.push(record));
466
+ this.forEachMovedItem((record /** TODO #9100 */) => moves.push(record));
464
467
  var removals = [];
465
- this.forEachRemovedItem((record) => removals.push(record));
468
+ this.forEachRemovedItem((record /** TODO #9100 */) => removals.push(record));
466
469
  var identityChanges = [];
467
- this.forEachIdentityChange((record) => identityChanges.push(record));
468
- return "collection: " + list.join(', ') + "\n" + "previous: " + previous.join(', ') + "\n" +
469
- "additions: " + additions.join(', ') + "\n" + "moves: " + moves.join(', ') + "\n" +
470
- "removals: " + removals.join(', ') + "\n" + "identityChanges: " +
471
- identityChanges.join(', ') + "\n";
470
+ this.forEachIdentityChange((record /** TODO #9100 */) => identityChanges.push(record));
471
+ return 'collection: ' + list.join(', ') + '\n' +
472
+ 'previous: ' + previous.join(', ') + '\n' +
473
+ 'additions: ' + additions.join(', ') + '\n' +
474
+ 'moves: ' + moves.join(', ') + '\n' +
475
+ 'removals: ' + removals.join(', ') + '\n' +
476
+ 'identityChanges: ' + identityChanges.join(', ') + '\n';
472
477
  }
473
478
  }
479
+ /**
480
+ * @stable
481
+ */
474
482
  export class CollectionChangeRecord {
475
483
  constructor(item, trackById) {
476
484
  this.item = item;
@@ -499,10 +507,9 @@ export class CollectionChangeRecord {
499
507
  this._nextIdentityChange = null;
500
508
  }
501
509
  toString() {
502
- return this.previousIndex === this.currentIndex ?
503
- stringify(this.item) :
504
- stringify(this.item) + '[' + stringify(this.previousIndex) + '->' +
505
- stringify(this.currentIndex) + ']';
510
+ return this.previousIndex === this.currentIndex ? stringify(this.item) :
511
+ stringify(this.item) + '[' +
512
+ stringify(this.previousIndex) + '->' + stringify(this.currentIndex) + ']';
506
513
  }
507
514
  }
508
515
  // A linked list of CollectionChangeRecords with the same CollectionChangeRecord.item