@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.
- package/{core.umd.js → bundles/core.umd.js} +6402 -4606
- package/bundles/core.umd.min.js +6 -0
- package/esm/index.d.ts +5 -4
- package/esm/index.js +9 -8
- package/esm/index.js.map +1 -1
- package/esm/private_export.d.ts +96 -11
- package/esm/private_export.js +39 -10
- package/esm/private_export.js.map +1 -1
- package/esm/private_export.metadata.json +1 -1
- package/esm/src/animation/active_animation_players_map.d.ts +11 -0
- package/esm/src/animation/active_animation_players_map.js +47 -0
- package/esm/src/animation/active_animation_players_map.js.map +1 -0
- package/esm/src/animation/animation_constants.d.ts +4 -0
- package/esm/src/animation/animation_constants.js +5 -0
- package/esm/src/animation/animation_constants.js.map +1 -0
- package/esm/src/animation/animation_constants.metadata.json +1 -0
- package/esm/src/animation/animation_driver.d.ts +9 -0
- package/esm/src/animation/animation_driver.js +9 -0
- package/esm/src/animation/animation_driver.js.map +1 -0
- package/esm/src/animation/animation_group_player.d.ts +18 -0
- package/esm/src/animation/animation_group_player.js +60 -0
- package/esm/src/animation/animation_group_player.js.map +1 -0
- package/esm/src/animation/animation_keyframe.d.ts +6 -0
- package/esm/src/animation/animation_keyframe.js +7 -0
- package/esm/src/animation/animation_keyframe.js.map +1 -0
- package/esm/src/animation/animation_player.d.ts +26 -0
- package/esm/src/animation/animation_player.js +30 -0
- package/esm/src/animation/animation_player.js.map +1 -0
- package/esm/src/animation/animation_sequence_player.d.ts +21 -0
- package/esm/src/animation/animation_sequence_player.js +64 -0
- package/esm/src/animation/animation_sequence_player.js.map +1 -0
- package/esm/src/animation/animation_style_util.d.ts +32 -0
- package/esm/src/animation/animation_style_util.js +91 -0
- package/esm/src/animation/animation_style_util.js.map +1 -0
- package/esm/src/animation/animation_style_util.metadata.json +1 -0
- package/esm/src/animation/animation_styles.d.ts +8 -0
- package/esm/src/animation/animation_styles.js +6 -0
- package/esm/src/animation/animation_styles.js.map +1 -0
- package/esm/src/animation/metadata.d.ts +511 -0
- package/esm/src/animation/metadata.js +565 -0
- package/esm/src/animation/metadata.js.map +1 -0
- package/esm/src/animation/metadata.metadata.json +1 -0
- package/esm/src/application_common_providers.d.ts +1 -0
- package/esm/src/application_common_providers.js +5 -4
- package/esm/src/application_common_providers.js.map +1 -1
- package/esm/src/application_common_providers.metadata.json +1 -1
- package/esm/src/application_ref.d.ts +17 -41
- package/esm/src/application_ref.js +32 -23
- package/esm/src/application_ref.js.map +1 -1
- package/esm/src/application_ref.metadata.json +1 -1
- package/esm/src/application_tokens.d.ts +6 -1
- package/esm/src/application_tokens.js +9 -4
- package/esm/src/application_tokens.js.map +1 -1
- package/esm/src/application_tokens.metadata.json +1 -1
- package/esm/src/change_detection/change_detection.d.ts +9 -8
- package/esm/src/change_detection/change_detection.js +7 -7
- package/esm/src/change_detection/change_detection.js.map +1 -1
- package/esm/src/change_detection/change_detection.metadata.json +1 -1
- package/esm/src/change_detection/change_detection_util.d.ts +3 -1
- package/esm/src/change_detection/change_detection_util.js +6 -5
- package/esm/src/change_detection/change_detection_util.js.map +1 -1
- package/esm/src/change_detection/change_detection_util.metadata.json +1 -1
- package/esm/src/change_detection/change_detector_ref.d.ts +3 -0
- package/esm/src/change_detection/change_detector_ref.js +3 -0
- package/esm/src/change_detection/change_detector_ref.js.map +1 -1
- package/esm/src/change_detection/constants.d.ts +1 -0
- package/esm/src/change_detection/constants.js +4 -3
- package/esm/src/change_detection/constants.js.map +1 -1
- package/esm/src/change_detection/constants.metadata.json +1 -1
- package/esm/src/change_detection/differs/default_iterable_differ.d.ts +6 -94
- package/esm/src/change_detection/differs/default_iterable_differ.js +25 -18
- package/esm/src/change_detection/differs/default_iterable_differ.js.map +1 -1
- package/esm/src/change_detection/differs/default_keyvalue_differ.d.ts +3 -30
- package/esm/src/change_detection/differs/default_keyvalue_differ.js +13 -8
- package/esm/src/change_detection/differs/default_keyvalue_differ.js.map +1 -1
- package/esm/src/change_detection/differs/iterable_differs.d.ts +4 -1
- package/esm/src/change_detection/differs/iterable_differs.js +5 -4
- package/esm/src/change_detection/differs/iterable_differs.js.map +1 -1
- package/esm/src/change_detection/differs/keyvalue_differs.d.ts +2 -1
- package/esm/src/change_detection/differs/keyvalue_differs.js +5 -4
- package/esm/src/change_detection/differs/keyvalue_differs.js.map +1 -1
- package/esm/src/change_detection/pipe_transform.js.map +1 -1
- package/esm/src/change_detection.d.ts +1 -1
- package/esm/src/change_detection.js +5 -5
- package/esm/src/change_detection.js.map +1 -1
- package/esm/src/console.js +2 -1
- package/esm/src/console.js.map +1 -1
- package/esm/src/console.metadata.json +1 -1
- package/esm/src/debug/debug_node.d.ts +20 -2
- package/esm/src/debug/debug_node.js +16 -2
- package/esm/src/debug/debug_node.js.map +1 -1
- package/esm/src/debug/debug_node.metadata.json +1 -0
- package/esm/src/debug/debug_renderer.d.ts +10 -6
- package/esm/src/debug/debug_renderer.js +13 -2
- package/esm/src/debug/debug_renderer.js.map +1 -1
- package/esm/src/di/decorators.d.ts +13 -1
- package/esm/src/di/decorators.js +7 -1
- package/esm/src/di/decorators.js.map +1 -1
- package/esm/src/di/decorators.metadata.json +1 -1
- package/esm/src/di/forward_ref.d.ts +3 -1
- package/esm/src/di/forward_ref.js +3 -1
- package/esm/src/di/forward_ref.js.map +1 -1
- package/esm/src/di/injector.d.ts +4 -1
- package/esm/src/di/injector.js +5 -2
- package/esm/src/di/injector.js.map +1 -1
- package/esm/src/di/injector.metadata.json +1 -1
- package/esm/src/di/metadata.d.ts +8 -1
- package/esm/src/di/metadata.js +10 -3
- package/esm/src/di/metadata.js.map +1 -1
- package/esm/src/di/opaque_token.d.ts +2 -1
- package/esm/src/di/opaque_token.js +22 -21
- package/esm/src/di/opaque_token.js.map +1 -1
- package/esm/src/di/provider.d.ts +11 -10
- package/esm/src/di/provider.js +17 -14
- package/esm/src/di/provider.js.map +1 -1
- package/esm/src/di/provider.metadata.json +1 -0
- package/esm/src/di/provider_util.js.map +1 -1
- package/esm/src/di/provider_util.metadata.json +1 -0
- package/esm/src/di/reflective_exceptions.d.ts +11 -16
- package/esm/src/di/reflective_exceptions.js +28 -22
- package/esm/src/di/reflective_exceptions.js.map +1 -1
- package/esm/src/di/reflective_injector.d.ts +3 -33
- package/esm/src/di/reflective_injector.js +10 -7
- package/esm/src/di/reflective_injector.js.map +1 -1
- package/esm/src/di/reflective_key.d.ts +1 -8
- package/esm/src/di/reflective_key.js +3 -2
- package/esm/src/di/reflective_key.js.map +1 -1
- package/esm/src/di/reflective_provider.d.ts +2 -1
- package/esm/src/di/reflective_provider.js +6 -5
- package/esm/src/di/reflective_provider.js.map +1 -1
- package/esm/src/di/reflective_provider.metadata.json +1 -0
- package/esm/src/di.d.ts +2 -2
- package/esm/src/di.js +6 -6
- package/esm/src/di.js.map +1 -1
- package/esm/src/facade/async.d.ts +11 -4
- package/esm/src/facade/async.js +25 -15
- package/esm/src/facade/async.js.map +1 -1
- package/esm/src/facade/base_wrapped_exception.js +4 -4
- package/esm/src/facade/base_wrapped_exception.js.map +1 -1
- package/esm/src/facade/collection.js +1 -1
- package/esm/src/facade/collection.js.map +1 -1
- package/esm/src/facade/collection.metadata.json +1 -1
- package/esm/src/facade/exception_handler.d.ts +2 -11
- package/esm/src/facade/exception_handler.js +8 -7
- package/esm/src/facade/exception_handler.js.map +1 -1
- package/esm/src/facade/exceptions.d.ts +4 -0
- package/esm/src/facade/exceptions.js +6 -2
- package/esm/src/facade/exceptions.js.map +1 -1
- package/esm/src/facade/exceptions.metadata.json +1 -0
- package/esm/src/facade/lang.d.ts +6 -4
- package/esm/src/facade/lang.js +12 -11
- package/esm/src/facade/lang.js.map +1 -1
- package/esm/src/facade/lang.metadata.json +1 -1
- package/esm/src/facade/math.d.ts +2 -0
- package/esm/src/facade/math.js +4 -0
- package/esm/src/facade/math.js.map +1 -0
- package/esm/src/facade/math.metadata.json +1 -0
- package/esm/src/facade/promise.js.map +1 -1
- package/esm/src/linker/component_factory.d.ts +5 -4
- package/esm/src/linker/component_factory.js +7 -3
- package/esm/src/linker/component_factory.js.map +1 -1
- package/esm/src/linker/component_resolver.d.ts +5 -4
- package/esm/src/linker/component_resolver.js +12 -7
- package/esm/src/linker/component_resolver.js.map +1 -1
- package/esm/src/linker/component_resolver.metadata.json +1 -1
- package/esm/src/linker/debug_context.js +5 -4
- package/esm/src/linker/debug_context.js.map +1 -1
- package/esm/src/linker/dynamic_component_loader.d.ts +5 -6
- package/esm/src/linker/dynamic_component_loader.js +5 -3
- package/esm/src/linker/dynamic_component_loader.js.map +1 -1
- package/esm/src/linker/dynamic_component_loader.metadata.json +1 -1
- package/esm/src/linker/element.d.ts +3 -3
- package/esm/src/linker/element.js +5 -5
- package/esm/src/linker/element.js.map +1 -1
- package/esm/src/linker/element_injector.js.map +1 -1
- package/esm/src/linker/element_ref.d.ts +1 -0
- package/esm/src/linker/element_ref.js +5 -5
- package/esm/src/linker/element_ref.js.map +1 -1
- package/esm/src/linker/exceptions.d.ts +4 -1
- package/esm/src/linker/exceptions.js +4 -1
- package/esm/src/linker/exceptions.js.map +1 -1
- package/esm/src/linker/query_list.d.ts +3 -10
- package/esm/src/linker/query_list.js +8 -7
- package/esm/src/linker/query_list.js.map +1 -1
- package/esm/src/linker/systemjs_component_resolver.d.ts +21 -0
- package/esm/src/linker/systemjs_component_resolver.js +44 -0
- package/esm/src/linker/systemjs_component_resolver.js.map +1 -0
- package/esm/src/linker/template_ref.d.ts +2 -1
- package/esm/src/linker/template_ref.js +1 -0
- package/esm/src/linker/template_ref.js.map +1 -1
- package/esm/src/linker/view.d.ts +12 -1
- package/esm/src/linker/view.js +62 -16
- package/esm/src/linker/view.js.map +1 -1
- package/esm/src/linker/view_container_ref.d.ts +2 -10
- package/esm/src/linker/view_container_ref.js +4 -3
- package/esm/src/linker/view_container_ref.js.map +1 -1
- package/esm/src/linker/view_ref.d.ts +5 -1
- package/esm/src/linker/view_ref.js +6 -2
- package/esm/src/linker/view_ref.js.map +1 -1
- package/esm/src/linker/view_type.js.map +1 -1
- package/esm/src/linker/view_utils.d.ts +2 -4
- package/esm/src/linker/view_utils.js +21 -21
- package/esm/src/linker/view_utils.js.map +1 -1
- package/esm/src/linker/view_utils.metadata.json +1 -1
- package/esm/src/linker.d.ts +5 -4
- package/esm/src/linker.js +5 -4
- package/esm/src/linker.js.map +1 -1
- package/esm/src/metadata/di.d.ts +8 -1
- package/esm/src/metadata/di.js +10 -3
- package/esm/src/metadata/di.js.map +1 -1
- package/esm/src/metadata/directives.d.ts +104 -20
- package/esm/src/metadata/directives.js +25 -19
- package/esm/src/metadata/directives.js.map +1 -1
- package/esm/src/metadata/lifecycle_hooks.d.ts +46 -31
- package/esm/src/metadata/lifecycle_hooks.js +464 -10
- package/esm/src/metadata/lifecycle_hooks.js.map +1 -1
- package/esm/src/metadata/lifecycle_hooks.metadata.json +1 -1
- package/esm/src/metadata/view.d.ts +6 -2
- package/esm/src/metadata/view.js +3 -1
- package/esm/src/metadata/view.js.map +1 -1
- package/esm/src/metadata/view.metadata.json +1 -1
- package/esm/src/metadata.d.ts +49 -15
- package/esm/src/metadata.js +35 -10
- package/esm/src/metadata.js.map +1 -1
- package/esm/src/metadata.metadata.json +1 -1
- package/esm/src/platform_common_providers.d.ts +1 -0
- package/esm/src/platform_common_providers.js +3 -3
- package/esm/src/platform_common_providers.js.map +1 -1
- package/esm/src/platform_common_providers.metadata.json +1 -1
- package/esm/src/platform_directives_and_pipes.d.ts +48 -45
- package/esm/src/platform_directives_and_pipes.js +50 -47
- package/esm/src/platform_directives_and_pipes.js.map +1 -1
- package/esm/src/platform_directives_and_pipes.metadata.json +1 -1
- package/esm/src/profile/profile.d.ts +5 -1
- package/esm/src/profile/profile.js +4 -0
- package/esm/src/profile/profile.js.map +1 -1
- package/esm/src/profile/profile.metadata.json +1 -1
- package/esm/src/profile/wtf_impl.js +1 -1
- package/esm/src/profile/wtf_impl.js.map +1 -1
- package/esm/src/profile/wtf_impl.metadata.json +1 -0
- package/esm/src/profile/wtf_init.js +2 -2
- package/esm/src/profile/wtf_init.js.map +1 -1
- package/esm/src/reflection/platform_reflection_capabilities.d.ts +4 -3
- package/esm/src/reflection/platform_reflection_capabilities.js.map +1 -1
- package/esm/src/reflection/reflection.d.ts +1 -1
- package/esm/src/reflection/reflection.js +2 -2
- package/esm/src/reflection/reflection.js.map +1 -1
- package/esm/src/reflection/reflection.metadata.json +1 -1
- package/esm/src/reflection/reflection_capabilities.d.ts +4 -5
- package/esm/src/reflection/reflection_capabilities.js +22 -10
- package/esm/src/reflection/reflection_capabilities.js.map +1 -1
- package/esm/src/reflection/reflector.d.ts +8 -20
- package/esm/src/reflection/reflector.js +13 -3
- package/esm/src/reflection/reflector.js.map +1 -1
- package/esm/src/reflection/reflector_reader.js +3 -3
- package/esm/src/reflection/reflector_reader.js.map +1 -1
- package/esm/src/reflection/types.js.map +1 -1
- package/esm/src/render/api.d.ts +17 -6
- package/esm/src/render/api.js +8 -1
- package/esm/src/render/api.js.map +1 -1
- package/esm/src/render.d.ts +1 -1
- package/esm/src/render.js +1 -1
- package/esm/src/render.js.map +1 -1
- package/esm/src/security.js +6 -6
- package/esm/src/security.js.map +1 -1
- package/esm/src/testability/testability.d.ts +3 -19
- package/esm/src/testability/testability.js +10 -5
- package/esm/src/testability/testability.js.map +1 -1
- package/esm/src/testability/testability.metadata.json +1 -1
- package/esm/src/util/decorators.d.ts +2 -1
- package/esm/src/util/decorators.js +10 -9
- package/esm/src/util/decorators.js.map +1 -1
- package/esm/src/util.js.map +1 -1
- package/esm/src/zone/ng_zone.d.ts +6 -17
- package/esm/src/zone/ng_zone.js +7 -6
- package/esm/src/zone/ng_zone.js.map +1 -1
- package/esm/src/zone/ng_zone_impl.d.ts +1 -4
- package/esm/src/zone/ng_zone_impl.js +3 -2
- package/esm/src/zone/ng_zone_impl.js.map +1 -1
- package/esm/src/zone.js.map +1 -1
- package/esm/testing/async.js +20 -22
- package/esm/testing/async.js.map +1 -1
- package/esm/testing/async.metadata.json +1 -0
- package/esm/testing/async_test_completer.js.map +1 -1
- package/esm/testing/fake_async.d.ts +4 -1
- package/esm/testing/fake_async.js +9 -2
- package/esm/testing/fake_async.js.map +1 -1
- package/esm/testing/lang_utils.js +1 -1
- package/esm/testing/lang_utils.js.map +1 -1
- package/esm/testing/lang_utils.metadata.json +1 -0
- package/esm/testing/logger.js +5 -3
- package/esm/testing/logger.js.map +1 -1
- package/esm/testing/logger.metadata.json +1 -1
- package/esm/testing/mock_application_ref.d.ts +1 -1
- package/esm/testing/mock_application_ref.js +1 -0
- package/esm/testing/mock_application_ref.js.map +1 -1
- package/esm/testing/mock_application_ref.metadata.json +1 -1
- package/esm/testing/ng_zone_mock.d.ts +0 -1
- package/esm/testing/ng_zone_mock.js +2 -1
- package/esm/testing/ng_zone_mock.js.map +1 -1
- package/esm/testing/ng_zone_mock.metadata.json +1 -1
- package/esm/testing/regexp.js +1 -1
- package/esm/testing/regexp.js.map +1 -1
- package/esm/testing/regexp.metadata.json +1 -0
- package/esm/testing/test_injector.d.ts +6 -12
- package/esm/testing/test_injector.js +4 -10
- package/esm/testing/test_injector.js.map +1 -1
- package/esm/testing/test_injector.metadata.json +1 -0
- package/esm/testing/testing.d.ts +2 -2
- package/esm/testing/testing.js +2 -2
- package/esm/testing/testing.js.map +1 -1
- package/esm/testing/testing.metadata.json +1 -1
- package/esm/testing.js.map +1 -1
- package/index.d.ts +5 -4
- package/index.js +10 -8
- package/index.js.map +1 -1
- package/package.json +5 -1
- package/private_export.d.ts +96 -11
- package/private_export.js +39 -10
- package/private_export.js.map +1 -1
- package/private_export.metadata.json +1 -1
- package/src/animation/active_animation_players_map.d.ts +11 -0
- package/src/animation/active_animation_players_map.js +54 -0
- package/src/animation/active_animation_players_map.js.map +1 -0
- package/src/animation/animation_constants.d.ts +4 -0
- package/src/animation/animation_constants.js +6 -0
- package/src/animation/animation_constants.js.map +1 -0
- package/src/animation/animation_constants.metadata.json +1 -0
- package/src/animation/animation_driver.d.ts +9 -0
- package/src/animation/animation_driver.js +25 -0
- package/src/animation/animation_driver.js.map +1 -0
- package/src/animation/animation_group_player.d.ts +18 -0
- package/src/animation/animation_group_player.js +64 -0
- package/src/animation/animation_group_player.js.map +1 -0
- package/src/animation/animation_keyframe.d.ts +6 -0
- package/src/animation/animation_keyframe.js +10 -0
- package/src/animation/animation_keyframe.js.map +1 -0
- package/src/animation/animation_player.d.ts +26 -0
- package/src/animation/animation_player.js +42 -0
- package/src/animation/animation_player.js.map +1 -0
- package/src/animation/animation_sequence_player.d.ts +21 -0
- package/src/animation/animation_sequence_player.js +69 -0
- package/src/animation/animation_sequence_player.js.map +1 -0
- package/src/animation/animation_style_util.d.ts +32 -0
- package/src/animation/animation_style_util.js +99 -0
- package/src/animation/animation_style_util.js.map +1 -0
- package/src/animation/animation_style_util.metadata.json +1 -0
- package/src/animation/animation_styles.d.ts +8 -0
- package/src/animation/animation_styles.js +9 -0
- package/src/animation/animation_styles.js.map +1 -0
- package/src/animation/metadata.d.ts +511 -0
- package/src/animation/metadata.js +627 -0
- package/src/animation/metadata.js.map +1 -0
- package/src/animation/metadata.metadata.json +1 -0
- package/src/application_common_providers.d.ts +1 -0
- package/src/application_common_providers.js +4 -3
- package/src/application_common_providers.js.map +1 -1
- package/src/application_common_providers.metadata.json +1 -1
- package/src/application_ref.d.ts +17 -41
- package/src/application_ref.js +30 -21
- package/src/application_ref.js.map +1 -1
- package/src/application_ref.metadata.json +1 -1
- package/src/application_tokens.d.ts +6 -1
- package/src/application_tokens.js +9 -4
- package/src/application_tokens.js.map +1 -1
- package/src/application_tokens.metadata.json +1 -1
- package/src/change_detection/change_detection.d.ts +9 -8
- package/src/change_detection/change_detection.js +21 -21
- package/src/change_detection/change_detection.js.map +1 -1
- package/src/change_detection/change_detection.metadata.json +1 -1
- package/src/change_detection/change_detection_util.d.ts +3 -1
- package/src/change_detection/change_detection_util.js +6 -5
- package/src/change_detection/change_detection_util.js.map +1 -1
- package/src/change_detection/change_detection_util.metadata.json +1 -1
- package/src/change_detection/change_detector_ref.d.ts +3 -0
- package/src/change_detection/change_detector_ref.js +3 -0
- package/src/change_detection/change_detector_ref.js.map +1 -1
- package/src/change_detection/constants.d.ts +1 -0
- package/src/change_detection/constants.js +4 -3
- package/src/change_detection/constants.js.map +1 -1
- package/src/change_detection/constants.metadata.json +1 -1
- package/src/change_detection/differs/default_iterable_differ.d.ts +6 -94
- package/src/change_detection/differs/default_iterable_differ.js +25 -18
- package/src/change_detection/differs/default_iterable_differ.js.map +1 -1
- package/src/change_detection/differs/default_keyvalue_differ.d.ts +3 -30
- package/src/change_detection/differs/default_keyvalue_differ.js +13 -8
- package/src/change_detection/differs/default_keyvalue_differ.js.map +1 -1
- package/src/change_detection/differs/iterable_differs.d.ts +4 -1
- package/src/change_detection/differs/iterable_differs.js +4 -3
- package/src/change_detection/differs/iterable_differs.js.map +1 -1
- package/src/change_detection/differs/keyvalue_differs.d.ts +2 -1
- package/src/change_detection/differs/keyvalue_differs.js +4 -3
- package/src/change_detection/differs/keyvalue_differs.js.map +1 -1
- package/src/change_detection/pipe_transform.js.map +1 -1
- package/src/change_detection.d.ts +1 -1
- package/src/change_detection.js +9 -9
- package/src/change_detection.js.map +1 -1
- package/src/console.js +2 -1
- package/src/console.js.map +1 -1
- package/src/console.metadata.json +1 -1
- package/src/debug/debug_node.d.ts +20 -2
- package/src/debug/debug_node.js +16 -2
- package/src/debug/debug_node.js.map +1 -1
- package/src/debug/debug_node.metadata.json +1 -0
- package/src/debug/debug_renderer.d.ts +10 -6
- package/src/debug/debug_renderer.js +12 -1
- package/src/debug/debug_renderer.js.map +1 -1
- package/src/di/decorators.d.ts +13 -1
- package/src/di/decorators.js +7 -1
- package/src/di/decorators.js.map +1 -1
- package/src/di/decorators.metadata.json +1 -1
- package/src/di/forward_ref.d.ts +3 -1
- package/src/di/forward_ref.js +3 -1
- package/src/di/forward_ref.js.map +1 -1
- package/src/di/injector.d.ts +4 -1
- package/src/di/injector.js +5 -2
- package/src/di/injector.js.map +1 -1
- package/src/di/injector.metadata.json +1 -1
- package/src/di/metadata.d.ts +8 -1
- package/src/di/metadata.js +10 -3
- package/src/di/metadata.js.map +1 -1
- package/src/di/opaque_token.d.ts +2 -1
- package/src/di/opaque_token.js +22 -21
- package/src/di/opaque_token.js.map +1 -1
- package/src/di/provider.d.ts +11 -10
- package/src/di/provider.js +17 -14
- package/src/di/provider.js.map +1 -1
- package/src/di/provider.metadata.json +1 -0
- package/src/di/provider_util.js.map +1 -1
- package/src/di/provider_util.metadata.json +1 -0
- package/src/di/reflective_exceptions.d.ts +11 -16
- package/src/di/reflective_exceptions.js +28 -22
- package/src/di/reflective_exceptions.js.map +1 -1
- package/src/di/reflective_injector.d.ts +3 -33
- package/src/di/reflective_injector.js +9 -6
- package/src/di/reflective_injector.js.map +1 -1
- package/src/di/reflective_key.d.ts +1 -8
- package/src/di/reflective_key.js +3 -2
- package/src/di/reflective_key.js.map +1 -1
- package/src/di/reflective_provider.d.ts +2 -1
- package/src/di/reflective_provider.js +6 -5
- package/src/di/reflective_provider.js.map +1 -1
- package/src/di/reflective_provider.metadata.json +1 -0
- package/src/di.d.ts +2 -2
- package/src/di.js +7 -9
- package/src/di.js.map +1 -1
- package/src/facade/async.d.ts +11 -4
- package/src/facade/async.js +27 -17
- package/src/facade/async.js.map +1 -1
- package/src/facade/base_wrapped_exception.js +4 -4
- package/src/facade/base_wrapped_exception.js.map +1 -1
- package/src/facade/collection.js.map +1 -1
- package/src/facade/collection.metadata.json +1 -1
- package/src/facade/exception_handler.d.ts +2 -11
- package/src/facade/exception_handler.js +8 -7
- package/src/facade/exception_handler.js.map +1 -1
- package/src/facade/exceptions.d.ts +4 -0
- package/src/facade/exceptions.js +6 -2
- package/src/facade/exceptions.js.map +1 -1
- package/src/facade/exceptions.metadata.json +1 -0
- package/src/facade/lang.d.ts +6 -4
- package/src/facade/lang.js +12 -11
- package/src/facade/lang.js.map +1 -1
- package/src/facade/lang.metadata.json +1 -1
- package/src/facade/math.d.ts +2 -0
- package/src/facade/math.js +5 -0
- package/src/facade/math.js.map +1 -0
- package/src/facade/math.metadata.json +1 -0
- package/src/facade/promise.js.map +1 -1
- package/src/linker/component_factory.d.ts +5 -4
- package/src/linker/component_factory.js +7 -3
- package/src/linker/component_factory.js.map +1 -1
- package/src/linker/component_resolver.d.ts +5 -4
- package/src/linker/component_resolver.js +12 -7
- package/src/linker/component_resolver.js.map +1 -1
- package/src/linker/component_resolver.metadata.json +1 -1
- package/src/linker/debug_context.js +5 -4
- package/src/linker/debug_context.js.map +1 -1
- package/src/linker/dynamic_component_loader.d.ts +5 -6
- package/src/linker/dynamic_component_loader.js +5 -3
- package/src/linker/dynamic_component_loader.js.map +1 -1
- package/src/linker/dynamic_component_loader.metadata.json +1 -1
- package/src/linker/element.d.ts +3 -3
- package/src/linker/element.js +5 -5
- package/src/linker/element.js.map +1 -1
- package/src/linker/element_injector.js.map +1 -1
- package/src/linker/element_ref.d.ts +1 -0
- package/src/linker/element_ref.js +5 -5
- package/src/linker/element_ref.js.map +1 -1
- package/src/linker/exceptions.d.ts +4 -1
- package/src/linker/exceptions.js +4 -1
- package/src/linker/exceptions.js.map +1 -1
- package/src/linker/query_list.d.ts +3 -10
- package/src/linker/query_list.js +8 -7
- package/src/linker/query_list.js.map +1 -1
- package/src/linker/systemjs_component_resolver.d.ts +21 -0
- package/src/linker/systemjs_component_resolver.js +52 -0
- package/src/linker/systemjs_component_resolver.js.map +1 -0
- package/src/linker/template_ref.d.ts +2 -1
- package/src/linker/template_ref.js +1 -0
- package/src/linker/template_ref.js.map +1 -1
- package/src/linker/view.d.ts +12 -1
- package/src/linker/view.js +65 -15
- package/src/linker/view.js.map +1 -1
- package/src/linker/view_container_ref.d.ts +2 -10
- package/src/linker/view_container_ref.js +4 -3
- package/src/linker/view_container_ref.js.map +1 -1
- package/src/linker/view_ref.d.ts +5 -1
- package/src/linker/view_ref.js +6 -2
- package/src/linker/view_ref.js.map +1 -1
- package/src/linker/view_type.js.map +1 -1
- package/src/linker/view_utils.d.ts +2 -4
- package/src/linker/view_utils.js +21 -21
- package/src/linker/view_utils.js.map +1 -1
- package/src/linker/view_utils.metadata.json +1 -1
- package/src/linker.d.ts +5 -4
- package/src/linker.js +12 -9
- package/src/linker.js.map +1 -1
- package/src/metadata/di.d.ts +8 -1
- package/src/metadata/di.js +10 -3
- package/src/metadata/di.js.map +1 -1
- package/src/metadata/directives.d.ts +104 -20
- package/src/metadata/directives.js +25 -27
- package/src/metadata/directives.js.map +1 -1
- package/src/metadata/lifecycle_hooks.d.ts +46 -31
- package/src/metadata/lifecycle_hooks.js +496 -10
- package/src/metadata/lifecycle_hooks.js.map +1 -1
- package/src/metadata/lifecycle_hooks.metadata.json +1 -1
- package/src/metadata/view.d.ts +6 -2
- package/src/metadata/view.js +3 -1
- package/src/metadata/view.js.map +1 -1
- package/src/metadata/view.metadata.json +1 -1
- package/src/metadata.d.ts +49 -15
- package/src/metadata.js +70 -37
- package/src/metadata.js.map +1 -1
- package/src/metadata.metadata.json +1 -1
- package/src/platform_common_providers.d.ts +1 -0
- package/src/platform_common_providers.js +3 -3
- package/src/platform_common_providers.js.map +1 -1
- package/src/platform_common_providers.metadata.json +1 -1
- package/src/platform_directives_and_pipes.d.ts +48 -45
- package/src/platform_directives_and_pipes.js +50 -47
- package/src/platform_directives_and_pipes.js.map +1 -1
- package/src/platform_directives_and_pipes.metadata.json +1 -1
- package/src/profile/profile.d.ts +5 -1
- package/src/profile/profile.js +5 -3
- package/src/profile/profile.js.map +1 -1
- package/src/profile/profile.metadata.json +1 -1
- package/src/profile/wtf_impl.js +1 -1
- package/src/profile/wtf_impl.js.map +1 -1
- package/src/profile/wtf_impl.metadata.json +1 -0
- package/src/profile/wtf_init.js +2 -2
- package/src/profile/wtf_init.js.map +1 -1
- package/src/reflection/platform_reflection_capabilities.d.ts +4 -3
- package/src/reflection/platform_reflection_capabilities.js.map +1 -1
- package/src/reflection/reflection.d.ts +1 -1
- package/src/reflection/reflection.js +2 -2
- package/src/reflection/reflection.js.map +1 -1
- package/src/reflection/reflection.metadata.json +1 -1
- package/src/reflection/reflection_capabilities.d.ts +4 -5
- package/src/reflection/reflection_capabilities.js +24 -10
- package/src/reflection/reflection_capabilities.js.map +1 -1
- package/src/reflection/reflector.d.ts +8 -20
- package/src/reflection/reflector.js +13 -3
- package/src/reflection/reflector.js.map +1 -1
- package/src/reflection/reflector_reader.js +3 -3
- package/src/reflection/reflector_reader.js.map +1 -1
- package/src/reflection/types.js.map +1 -1
- package/src/render/api.d.ts +17 -6
- package/src/render/api.js +8 -1
- package/src/render/api.js.map +1 -1
- package/src/render.d.ts +1 -1
- package/src/render.js +2 -2
- package/src/render.js.map +1 -1
- package/src/security.js +6 -6
- package/src/security.js.map +1 -1
- package/src/testability/testability.d.ts +3 -19
- package/src/testability/testability.js +10 -5
- package/src/testability/testability.js.map +1 -1
- package/src/testability/testability.metadata.json +1 -1
- package/src/util/decorators.d.ts +2 -1
- package/src/util/decorators.js +10 -9
- package/src/util/decorators.js.map +1 -1
- package/src/util.js.map +1 -1
- package/src/zone/ng_zone.d.ts +6 -17
- package/src/zone/ng_zone.js +11 -6
- package/src/zone/ng_zone.js.map +1 -1
- package/src/zone/ng_zone_impl.d.ts +1 -4
- package/src/zone/ng_zone_impl.js +3 -2
- package/src/zone/ng_zone_impl.js.map +1 -1
- package/src/zone.js.map +1 -1
- package/testing/async.js +20 -22
- package/testing/async.js.map +1 -1
- package/testing/async.metadata.json +1 -0
- package/testing/async_test_completer.js.map +1 -1
- package/testing/fake_async.d.ts +4 -1
- package/testing/fake_async.js +10 -2
- package/testing/fake_async.js.map +1 -1
- package/testing/lang_utils.js +1 -1
- package/testing/lang_utils.js.map +1 -1
- package/testing/lang_utils.metadata.json +1 -0
- package/testing/logger.js +5 -3
- package/testing/logger.js.map +1 -1
- package/testing/logger.metadata.json +1 -1
- package/testing/mock_application_ref.d.ts +1 -1
- package/testing/mock_application_ref.js +1 -0
- package/testing/mock_application_ref.js.map +1 -1
- package/testing/mock_application_ref.metadata.json +1 -1
- package/testing/ng_zone_mock.d.ts +0 -1
- package/testing/ng_zone_mock.js +2 -1
- package/testing/ng_zone_mock.js.map +1 -1
- package/testing/ng_zone_mock.metadata.json +1 -1
- package/testing/regexp.js +1 -1
- package/testing/regexp.js.map +1 -1
- package/testing/regexp.metadata.json +1 -0
- package/testing/test_injector.d.ts +6 -12
- package/testing/test_injector.js +3 -9
- package/testing/test_injector.js.map +1 -1
- package/testing/test_injector.metadata.json +1 -0
- package/testing/testing.d.ts +2 -2
- package/testing/testing.js +5 -5
- package/testing/testing.js.map +1 -1
- package/testing/testing.metadata.json +1 -1
- 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
|
-
|
|
6
|
-
|
|
7
|
-
export {
|
|
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":"
|
|
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","
|
|
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 '
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
export { looseIdentical } from '
|
|
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":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"change_detector_ref.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/change_detection/change_detector_ref.ts"],"names":[],"mappings":"
|
|
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"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isBlank } from '
|
|
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":"
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
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
|
-
|
|
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
|