@angular/core 0.0.0-6 → 2.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{core.umd.js → bundles/core.umd.js} +6500 -4671
- 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 +102 -10
- package/esm/private_export.js +41 -9
- 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 +4 -4
- package/esm/src/linker/view_utils.js +25 -22
- 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.d.ts +22 -0
- package/esm/src/security.js +23 -0
- package/esm/src/security.js.map +1 -0
- 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 +102 -10
- package/private_export.js +41 -9
- 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 +4 -4
- package/src/linker/view_utils.js +25 -22
- 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.d.ts +22 -0
- package/src/security.js +28 -0
- package/src/security.js.map +1 -0
- 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
- package/esm/core.umd.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BaseException } from '../src/facade/exceptions';
|
|
1
|
+
import { PLATFORM_INITIALIZER, ReflectiveInjector } from '../index';
|
|
3
2
|
import { ListWrapper } from '../src/facade/collection';
|
|
3
|
+
import { BaseException } from '../src/facade/exceptions';
|
|
4
4
|
import { FunctionWrapper, isPresent } from '../src/facade/lang';
|
|
5
5
|
import { async } from './async';
|
|
6
6
|
import { AsyncTestCompleter } from './async_test_completer';
|
|
@@ -107,9 +107,6 @@ export function resetBaseTestProviders() {
|
|
|
107
107
|
* eventually
|
|
108
108
|
* becomes `it('...', @Inject (object: AClass, async: AsyncTestCompleter) => { ... });`
|
|
109
109
|
*
|
|
110
|
-
* @param {Array} tokens
|
|
111
|
-
* @param {Function} fn
|
|
112
|
-
* @return {Function}
|
|
113
110
|
*/
|
|
114
111
|
export function inject(tokens, fn) {
|
|
115
112
|
let testInjector = getTestInjector();
|
|
@@ -143,7 +140,7 @@ export class InjectSetupWrapper {
|
|
|
143
140
|
return inject_impl(tokens, fn)();
|
|
144
141
|
};
|
|
145
142
|
}
|
|
146
|
-
/** @
|
|
143
|
+
/** @deprecated {use async(withProviders().inject())} */
|
|
147
144
|
injectAsync(tokens, fn) {
|
|
148
145
|
return () => {
|
|
149
146
|
this._addProviders();
|
|
@@ -155,7 +152,7 @@ export function withProviders(providers) {
|
|
|
155
152
|
return new InjectSetupWrapper(providers);
|
|
156
153
|
}
|
|
157
154
|
/**
|
|
158
|
-
* @
|
|
155
|
+
* @deprecated {use async(inject())}
|
|
159
156
|
*
|
|
160
157
|
* Allows injecting dependencies in `beforeEach()` and `it()`. The test must return
|
|
161
158
|
* a promise which will resolve when all asynchronous activity is complete.
|
|
@@ -170,9 +167,6 @@ export function withProviders(providers) {
|
|
|
170
167
|
* })
|
|
171
168
|
* ```
|
|
172
169
|
*
|
|
173
|
-
* @param {Array} tokens
|
|
174
|
-
* @param {Function} fn
|
|
175
|
-
* @return {Function}
|
|
176
170
|
*/
|
|
177
171
|
export function injectAsync(tokens, fn) {
|
|
178
172
|
return async(inject(tokens, fn));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test_injector.js","sourceRoot":"/Users/iminar/Dev/angular/modules/@angular/core/","sources":["testing/test_injector.ts"],"names":[],"mappings":"OAIS,EAAC,kBAAkB,EAAY,oBAAoB,EAAO,MAAM,UAAU;OAC5E,EAAC,aAAa,EAAC,MAAM,0BAA0B;OAC/C,EAAC,WAAW,EAAC,MAAM,0BAA0B;OAC7C,EAAC,eAAe,EAAE,SAAS,EAAC,MAAM,oBAAoB;OAEtD,EAAC,KAAK,EAAC,MAAM,SAAS;OACtB,EAAC,kBAAkB,EAAC,MAAM,wBAAwB;AAEzD,SAAQ,KAAK,QAAO,SAAS,CAAC;AAE9B;IAAA;QACU,kBAAa,GAAY,KAAK,CAAC;QAE/B,cAAS,GAAuB,IAAI,CAAC;QAErC,eAAU,GAAmC,EAAE,CAAC;QAQxD,sBAAiB,GAAmC,EAAE,CAAC;QAEvD,yBAAoB,GAAmC,EAAE,CAAC;IA+B5D,CAAC;IAvCC,KAAK;QACH,IAAI,CAAC,SAAS,GAAG,IAAI,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ACH,CAAC;AACH,CAAC;AAED,8BAA8B,SAAoB;IAChD,MAAM,CAAC,IAAI,kBAAkB,CAAC,SAAS,CAAC,CAAC;AAC3C,CAAC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,4BAA4B,MAAa,EAAE,EAAY;IACrD,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC;AACnC,CAAC;AAED,gFAAgF;AAChF,2BAA2B;AAC3B,IAAI,WAAW,GAAG,MAAM,CAAC;AACzB,IAAI,gBAAgB,GAAG,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"test_injector.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/testing/test_injector.ts"],"names":[],"mappings":"OAAO,EAAC,oBAAoB,EAAY,kBAAkB,EAAO,MAAM,UAAU;OAC1E,EAAC,WAAW,EAAC,MAAM,0BAA0B;OAC7C,EAAC,aAAa,EAAC,MAAM,0BAA0B;OAC/C,EAAC,eAAe,EAAE,SAAS,EAAC,MAAM,oBAAoB;OAEtD,EAAC,KAAK,EAAC,MAAM,SAAS;OACtB,EAAC,kBAAkB,EAAC,MAAM,wBAAwB;AAEzD,SAAQ,KAAK,QAAO,SAAS,CAAC;AAE9B;IAAA;QACU,kBAAa,GAAY,KAAK,CAAC;QAE/B,cAAS,GAAuB,IAAI,CAAC;QAErC,eAAU,GAAmC,EAAE,CAAC;QAQxD,sBAAiB,GAAmC,EAAE,CAAC;QAEvD,yBAAoB,GAAmC,EAAE,CAAC;IA+B5D,CAAC;IAvCC,KAAK;QACH,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;IAC7B,CAAC;IAMD,YAAY,CAAC,SAAyC;QACpD,EAAE,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC;YACvB,MAAM,IAAI,aAAa,CAAC,0DAA0D,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AE,CAAC,CAAC,CAAC;AACnC,CAAC;AAED,gFAAgF;AAChF,2BAA2B;AAC3B,IAAI,WAAW,GAAG,MAAM,CAAC;AACzB,IAAI,gBAAgB,GAAG,WAAW,CAAC","sourcesContent":["import {PLATFORM_INITIALIZER, Provider, ReflectiveInjector, Type} from '../index';\nimport {ListWrapper} from '../src/facade/collection';\nimport {BaseException} from '../src/facade/exceptions';\nimport {FunctionWrapper, isPresent} from '../src/facade/lang';\n\nimport {async} from './async';\nimport {AsyncTestCompleter} from './async_test_completer';\n\nexport {async} from './async';\n\nexport class TestInjector {\n private _instantiated: boolean = false;\n\n private _injector: ReflectiveInjector = null;\n\n private _providers: Array<Type|Provider|any[]|any> = [];\n\n reset() {\n this._injector = null;\n this._providers = [];\n this._instantiated = false;\n }\n\n platformProviders: Array<Type|Provider|any[]|any> = [];\n\n applicationProviders: Array<Type|Provider|any[]|any> = [];\n\n addProviders(providers: Array<Type|Provider|any[]|any>) {\n if (this._instantiated) {\n throw new BaseException('Cannot add providers after test injector is instantiated');\n }\n this._providers = ListWrapper.concat(this._providers, providers);\n }\n\n createInjector() {\n var rootInjector = ReflectiveInjector.resolveAndCreate(this.platformProviders);\n this._injector = rootInjector.resolveAndCreateChild(\n ListWrapper.concat(this.applicationProviders, this._providers));\n this._instantiated = true;\n return this._injector;\n }\n\n get(token: any) {\n if (!this._instantiated) {\n this.createInjector();\n }\n return this._injector.get(token);\n }\n\n execute(tokens: any[], fn: Function): any {\n if (!this._instantiated) {\n this.createInjector();\n }\n var params = tokens.map(t => this._injector.get(t));\n return FunctionWrapper.apply(fn, params);\n }\n}\n\nvar _testInjector: TestInjector = null;\n\nexport function getTestInjector() {\n if (_testInjector == null) {\n _testInjector = new TestInjector();\n }\n return _testInjector;\n}\n\n/**\n * Set the providers that the test injector should use. These should be providers\n * common to every test in the suite.\n *\n * This may only be called once, to set up the common providers for the current test\n * suite on teh current platform. If you absolutely need to change the providers,\n * first use `resetBaseTestProviders`.\n *\n * Test Providers for individual platforms are available from\n * 'angular2/platform/testing/<platform_name>'.\n */\nexport function setBaseTestProviders(\n platformProviders: Array<Type|Provider|any[]>,\n applicationProviders: Array<Type|Provider|any[]>) {\n var testInjector = getTestInjector();\n if (testInjector.platformProviders.length > 0 || testInjector.applicationProviders.length > 0) {\n throw new BaseException('Cannot set base providers because it has already been called');\n }\n testInjector.platformProviders = platformProviders;\n testInjector.applicationProviders = applicationProviders;\n var injector = testInjector.createInjector();\n let inits: Function[] = injector.get(PLATFORM_INITIALIZER, null);\n if (isPresent(inits)) {\n inits.forEach(init => init());\n }\n testInjector.reset();\n}\n\n/**\n * Reset the providers for the test injector.\n */\nexport function resetBaseTestProviders() {\n var testInjector = getTestInjector();\n testInjector.platformProviders = [];\n testInjector.applicationProviders = [];\n testInjector.reset();\n}\n\n/**\n * Allows injecting dependencies in `beforeEach()` and `it()`.\n *\n * Example:\n *\n * ```\n * beforeEach(inject([Dependency, AClass], (dep, object) => {\n * // some code that uses `dep` and `object`\n * // ...\n * }));\n *\n * it('...', inject([AClass], (object) => {\n * object.doSomething();\n * expect(...);\n * })\n * ```\n *\n * Notes:\n * - inject is currently a function because of some Traceur limitation the syntax should\n * eventually\n * becomes `it('...', @Inject (object: AClass, async: AsyncTestCompleter) => { ... });`\n *\n */\nexport function inject(tokens: any[], fn: Function): Function {\n let testInjector = getTestInjector();\n if (tokens.indexOf(AsyncTestCompleter) >= 0) {\n // Return an async test method that returns a Promise if AsyncTestCompleter is one of the\n // injected tokens.\n return () => {\n let completer: AsyncTestCompleter = testInjector.get(AsyncTestCompleter);\n testInjector.execute(tokens, fn);\n return completer.promise;\n };\n } else {\n // Return a synchronous test method with the injected tokens.\n return () => { return getTestInjector().execute(tokens, fn); };\n }\n}\n\nexport class InjectSetupWrapper {\n constructor(private _providers: () => any) {}\n\n private _addProviders() {\n var additionalProviders = this._providers();\n if (additionalProviders.length > 0) {\n getTestInjector().addProviders(additionalProviders);\n }\n }\n\n inject(tokens: any[], fn: Function): Function {\n return () => {\n this._addProviders();\n return inject_impl(tokens, fn)();\n };\n }\n\n /** @deprecated {use async(withProviders().inject())} */\n injectAsync(tokens: any[], fn: Function): Function {\n return () => {\n this._addProviders();\n return injectAsync_impl(tokens, fn)();\n };\n }\n}\n\nexport function withProviders(providers: () => any) {\n return new InjectSetupWrapper(providers);\n}\n\n/**\n * @deprecated {use async(inject())}\n *\n * Allows injecting dependencies in `beforeEach()` and `it()`. The test must return\n * a promise which will resolve when all asynchronous activity is complete.\n *\n * Example:\n *\n * ```\n * it('...', injectAsync([AClass], (object) => {\n * return object.doSomething().then(() => {\n * expect(...);\n * });\n * })\n * ```\n *\n */\nexport function injectAsync(tokens: any[], fn: Function): Function {\n return async(inject(tokens, fn));\n}\n\n// This is to ensure inject(Async) within InjectSetupWrapper doesn't call itself\n// when transpiled to Dart.\nvar inject_impl = inject;\nvar injectAsync_impl = injectAsync;\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"__symbolic":"module","version":1,"metadata":{"withProviders":{"__symbolic":"function","parameters":["providers"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"InjectSetupWrapper"},"arguments":[{"__symbolic":"reference","name":"providers"}]}},"injectAsync":{"__symbolic":"function","parameters":["tokens","fn"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"./async","name":"async"},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"inject"},"arguments":[{"__symbolic":"reference","name":"tokens"},{"__symbolic":"reference","name":"fn"}]}]}}}}
|
package/esm/testing/testing.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { async, inject, injectAsync } from './test_injector';
|
|
2
2
|
export declare var expect: Function;
|
|
3
3
|
/**
|
|
4
4
|
* Run a function (with an optional asynchronous callback) after each test case.
|
|
@@ -57,7 +57,7 @@ export declare var xdescribe: Function;
|
|
|
57
57
|
*
|
|
58
58
|
* {@example testing/ts/testing.ts region='beforeEachProviders'}
|
|
59
59
|
*/
|
|
60
|
-
export declare function beforeEachProviders(fn: any): void;
|
|
60
|
+
export declare function beforeEachProviders(fn: () => Array<any>): void;
|
|
61
61
|
/**
|
|
62
62
|
* Wrapper around Jasmine beforeEach function.
|
|
63
63
|
*
|
package/esm/testing/testing.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getTestInjector } from './test_injector';
|
|
2
1
|
import { isPromise } from '../src/facade/lang';
|
|
3
|
-
|
|
2
|
+
import { getTestInjector } from './test_injector';
|
|
3
|
+
export { async, inject, injectAsync } from './test_injector';
|
|
4
4
|
var _global = (typeof window === 'undefined' ? global : window);
|
|
5
5
|
export var expect = _global.expect;
|
|
6
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.js","sourceRoot":"
|
|
1
|
+
{"version":3,"file":"testing.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/testing/testing.ts"],"names":[],"mappings":"OAIO,EAAC,SAAS,EAAC,MAAM,oBAAoB;OAErC,EAAsB,eAAe,EAAsB,MAAM,iBAAiB;AAEzF,SAAQ,KAAK,EAAE,MAAM,EAAE,WAAW,QAAO,iBAAiB,CAAC;AAI3D,IAAI,OAAO,GAAQ,CAAC,OAAO,MAAM,KAAK,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC;AAErE,OAAO,IAAI,MAAM,GAAa,OAAO,CAAC,MAAM,CAAC;AAE7C;;;;;;;;GAQG;AACH,OAAO,IAAI,SAAS,GAAa,OAAO,CAAC,SAAS,CAAC;AAEnD;;;;;;;;GAQG;AACH,OAAO,IAAI,QAAQ,GAAa,OAAO,CAAC,QAAQ,CAAC;AAEjD;;GAEG;AACH,OAAO,IAAI,SAAS,GAAa,OAAO,CAAC,SAAS,CAAC;AAEnD;;;;;;;;;GASG;AACH,OAAO,IAAI,SAAS,GAAa,OAAO,CAAC,SAAS,CAAC;AAEnD;;;;;;;;;;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AAC;QAAC,IAAI,CAAC,CAAC;YACN,6DAA6D;YAC7D,EAAE,CAAC,IAAI,CAAC,CAAC;QACX,CAAC;IACH,CAAC,CAAC;AACJ,CAAC;AAED,aAAa,KAAe,EAAE,IAAY,EAAE,MAAgB,EAAE,WAAmB;IAC/E,KAAK,CAAC,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,CAAC;AAChD,CAAC;AAED;;;;;;;;;;GAUG;AACH,2BAA2B,EAAY;IACrC,aAAa,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC;AACjC,CAAC;AAED;;;;;;;;;;;GAWG;AACH,mBAAmB,IAAY,EAAE,EAAY,EAAE,OAAO,GAAW,IAAI;IACnE,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;AACvC,CAAC;AAED;;;;;;;;;;GAUG;AACH,oBAAoB,IAAY,EAAE,EAAY,EAAE,OAAO,GAAW,IAAI;IACpE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;AACxC,CAAC;AAED;;GAEG;AACH,oBAAoB,IAAY,EAAE,EAAY,EAAE,OAAO,GAAW,IAAI;IACpE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;AACxC,CAAC;AAED;;;;;;;;;GASG;AACH,oBAAoB,IAAY,EAAE,EAAY,EAAE,OAAO,GAAW,IAAI;IACpE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;AACxC,CAAC","sourcesContent":["/**\n * Public Test Library for unit testing Angular2 Applications. Uses the\n * Jasmine framework.\n */\nimport {isPromise} from '../src/facade/lang';\n\nimport {TestInjector, async, getTestInjector, inject, injectAsync} from './test_injector';\n\nexport {async, inject, injectAsync} from './test_injector';\n\ndeclare var global: any /** TODO #9100 */;\n\nvar _global = <any>(typeof window === 'undefined' ? global : window);\n\nexport var expect: Function = _global.expect;\n\n/**\n * Run a function (with an optional asynchronous callback) after each test case.\n *\n * See http://jasmine.github.io/ for more details.\n *\n * ## Example:\n *\n * {@example testing/ts/testing.ts region='afterEach'}\n */\nexport var afterEach: Function = _global.afterEach;\n\n/**\n * Group test cases together under a common description prefix.\n *\n * See http://jasmine.github.io/ for more details.\n *\n * ## Example:\n *\n * {@example testing/ts/testing.ts region='describeIt'}\n */\nexport var describe: Function = _global.describe;\n\n/**\n * See {@link fdescribe}.\n */\nexport var ddescribe: Function = _global.fdescribe;\n\n/**\n * Like {@link describe}, but instructs the test runner to only run\n * the test cases in this group. This is useful for debugging.\n *\n * See http://jasmine.github.io/ for more details.\n *\n * ## Example:\n *\n * {@example testing/ts/testing.ts region='fdescribe'}\n */\nexport var fdescribe: Function = _global.fdescribe;\n\n/**\n * Like {@link describe}, but instructs the test runner to exclude\n * this group of test cases from execution. This is useful for\n * debugging, or for excluding broken tests until they can be fixed.\n *\n * See http://jasmine.github.io/ for more details.\n *\n * ## Example:\n *\n * {@example testing/ts/testing.ts region='xdescribe'}\n */\nexport var xdescribe: Function = _global.xdescribe;\n\nvar jsmBeforeEach = _global.beforeEach;\nvar jsmIt = _global.it;\nvar jsmIIt = _global.fit;\nvar jsmXIt = _global.xit;\n\nvar testInjector: TestInjector = getTestInjector();\n\n// Reset the test providers before each test.\njsmBeforeEach(() => { testInjector.reset(); });\n\n/**\n * Allows overriding default providers of the test injector,\n * which are defined in test_injector.js.\n *\n * The given function must return a list of DI providers.\n *\n * ## Example:\n *\n * {@example testing/ts/testing.ts region='beforeEachProviders'}\n */\nexport function beforeEachProviders(fn: () => Array<any>): void {\n jsmBeforeEach(() => {\n var providers = fn();\n if (!providers) return;\n try {\n testInjector.addProviders(providers);\n } catch (e) {\n throw new Error(\n 'beforeEachProviders was called after the injector had ' +\n 'been used in a beforeEach or it block. This invalidates the ' +\n 'test injector');\n }\n });\n}\n\nfunction _wrapTestFn(fn: Function) {\n // Wraps a test or beforeEach function to handle synchronous and asynchronous execution.\n return (done: any) => {\n if (fn.length === 0) {\n let retVal = fn();\n if (isPromise(retVal)) {\n // Asynchronous test function - wait for completion.\n (<Promise<any>>retVal).then(done, done.fail);\n } else {\n // Synchronous test function - complete immediately.\n done();\n }\n } else {\n // Asynchronous test function that takes \"done\" as parameter.\n fn(done);\n }\n };\n}\n\nfunction _it(jsmFn: Function, name: string, testFn: Function, testTimeOut: number): void {\n jsmFn(name, _wrapTestFn(testFn), testTimeOut);\n}\n\n/**\n * Wrapper around Jasmine beforeEach function.\n *\n * beforeEach may be used with the `inject` function to fetch dependencies.\n *\n * See http://jasmine.github.io/ for more details.\n *\n * ## Example:\n *\n * {@example testing/ts/testing.ts region='beforeEach'}\n */\nexport function beforeEach(fn: Function): void {\n jsmBeforeEach(_wrapTestFn(fn));\n}\n\n/**\n * Define a single test case with the given test name and execution function.\n *\n * The test function can be either a synchronous function, the result of {@link async},\n * or an injected function created via {@link inject}.\n *\n * Wrapper around Jasmine it function. See http://jasmine.github.io/ for more details.\n *\n * ## Example:\n *\n * {@example testing/ts/testing.ts region='describeIt'}\n */\nexport function it(name: string, fn: Function, timeOut: number = null): void {\n return _it(jsmIt, name, fn, timeOut);\n}\n\n/**\n * Like {@link it}, but instructs the test runner to exclude this test\n * entirely. Useful for debugging or for excluding broken tests until\n * they can be fixed.\n *\n * Wrapper around Jasmine xit function. See http://jasmine.github.io/ for more details.\n *\n * ## Example:\n *\n * {@example testing/ts/testing.ts region='xit'}\n */\nexport function xit(name: string, fn: Function, timeOut: number = null): void {\n return _it(jsmXIt, name, fn, timeOut);\n}\n\n/**\n * See {@link fit}.\n */\nexport function iit(name: string, fn: Function, timeOut: number = null): void {\n return _it(jsmIIt, name, fn, timeOut);\n}\n\n/**\n * Like {@link it}, but instructs the test runner to only run this test.\n * Useful for debugging.\n *\n * Wrapper around Jasmine fit function. See http://jasmine.github.io/ for more details.\n *\n * ## Example:\n *\n * {@example testing/ts/testing.ts region='fit'}\n */\nexport function fit(name: string, fn: Function, timeOut: number = null): void {\n return _it(jsmIIt, name, fn, timeOut);\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","metadata":{"expect":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"expect"},"afterEach":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"afterEach"},"describe":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"describe"},"ddescribe":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"fdescribe"},"fdescribe":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"fdescribe"},"xdescribe":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"xdescribe"}}}
|
|
1
|
+
{"__symbolic":"module","version":1,"metadata":{"expect":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"expect"},"afterEach":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"afterEach"},"describe":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"describe"},"ddescribe":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"fdescribe"},"fdescribe":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"fdescribe"},"xdescribe":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"xdescribe"},"it":{"__symbolic":"function","parameters":["name","fn","timeOut"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"_it"},"arguments":[{"__symbolic":"reference","name":"jsmIt"},{"__symbolic":"reference","name":"name"},{"__symbolic":"reference","name":"fn"},{"__symbolic":"reference","name":"timeOut"}]}},"xit":{"__symbolic":"function","parameters":["name","fn","timeOut"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"_it"},"arguments":[{"__symbolic":"reference","name":"jsmXIt"},{"__symbolic":"reference","name":"name"},{"__symbolic":"reference","name":"fn"},{"__symbolic":"reference","name":"timeOut"}]}},"iit":{"__symbolic":"function","parameters":["name","fn","timeOut"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"_it"},"arguments":[{"__symbolic":"reference","name":"jsmIIt"},{"__symbolic":"reference","name":"name"},{"__symbolic":"reference","name":"fn"},{"__symbolic":"reference","name":"timeOut"}]}},"fit":{"__symbolic":"function","parameters":["name","fn","timeOut"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"_it"},"arguments":[{"__symbolic":"reference","name":"jsmIIt"},{"__symbolic":"reference","name":"name"},{"__symbolic":"reference","name":"fn"},{"__symbolic":"reference","name":"timeOut"}]}}}}
|
package/esm/testing.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.js","sourceRoot":"
|
|
1
|
+
{"version":3,"file":"testing.js","sourceRoot":"","sources":["../../../../modules/@angular/core/testing.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gCAAgC,CAAC","sourcesContent":["export * from './testing/fake_async';\nexport * from './testing/lang_utils';\nexport * from './testing/logger';\nexport * from './testing/ng_zone_mock';\nexport * from './testing/regexp';\nexport * from './testing/test_injector';\nexport * from './testing/testing';\nexport * from './testing/mock_application_ref';\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
package/index.d.ts
CHANGED
|
@@ -17,9 +17,10 @@ export * from './src/change_detection';
|
|
|
17
17
|
export * from './src/platform_directives_and_pipes';
|
|
18
18
|
export * from './src/platform_common_providers';
|
|
19
19
|
export * from './src/application_common_providers';
|
|
20
|
-
export * from './src/reflection/reflection';
|
|
21
20
|
export { wtfCreateScope, wtfLeave, wtfStartTimeRange, wtfEndTimeRange, WtfScopeFn } from './src/profile/profile';
|
|
22
|
-
export { Type, enableProdMode } from
|
|
23
|
-
export { EventEmitter } from
|
|
24
|
-
export { ExceptionHandler, WrappedException, BaseException } from
|
|
21
|
+
export { Type, enableProdMode } from './src/facade/lang';
|
|
22
|
+
export { EventEmitter } from './src/facade/async';
|
|
23
|
+
export { ExceptionHandler, WrappedException, BaseException } from './src/facade/exceptions';
|
|
25
24
|
export * from './private_export';
|
|
25
|
+
export * from './src/animation/metadata';
|
|
26
|
+
export { AnimationPlayer } from './src/animation/animation_player';
|
package/index.js
CHANGED
|
@@ -3,10 +3,10 @@ function __export(m) {
|
|
|
3
3
|
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
|
-
* @module
|
|
7
|
-
* @description
|
|
8
|
-
* Starting point to import all public core APIs.
|
|
9
|
-
*/
|
|
6
|
+
* @module
|
|
7
|
+
* @description
|
|
8
|
+
* Starting point to import all public core APIs.
|
|
9
|
+
*/
|
|
10
10
|
__export(require('./src/metadata'));
|
|
11
11
|
__export(require('./src/util'));
|
|
12
12
|
__export(require('./src/di'));
|
|
@@ -38,20 +38,22 @@ __export(require('./src/change_detection'));
|
|
|
38
38
|
__export(require('./src/platform_directives_and_pipes'));
|
|
39
39
|
__export(require('./src/platform_common_providers'));
|
|
40
40
|
__export(require('./src/application_common_providers'));
|
|
41
|
-
__export(require('./src/reflection/reflection'));
|
|
42
41
|
var profile_1 = require('./src/profile/profile');
|
|
43
42
|
exports.wtfCreateScope = profile_1.wtfCreateScope;
|
|
44
43
|
exports.wtfLeave = profile_1.wtfLeave;
|
|
45
44
|
exports.wtfStartTimeRange = profile_1.wtfStartTimeRange;
|
|
46
45
|
exports.wtfEndTimeRange = profile_1.wtfEndTimeRange;
|
|
47
|
-
var lang_1 = require(
|
|
46
|
+
var lang_1 = require('./src/facade/lang');
|
|
48
47
|
exports.Type = lang_1.Type;
|
|
49
48
|
exports.enableProdMode = lang_1.enableProdMode;
|
|
50
|
-
var async_1 = require(
|
|
49
|
+
var async_1 = require('./src/facade/async');
|
|
51
50
|
exports.EventEmitter = async_1.EventEmitter;
|
|
52
|
-
var exceptions_1 = require(
|
|
51
|
+
var exceptions_1 = require('./src/facade/exceptions');
|
|
53
52
|
exports.ExceptionHandler = exceptions_1.ExceptionHandler;
|
|
54
53
|
exports.WrappedException = exceptions_1.WrappedException;
|
|
55
54
|
exports.BaseException = exceptions_1.BaseException;
|
|
56
55
|
__export(require('./private_export'));
|
|
56
|
+
__export(require('./src/animation/metadata'));
|
|
57
|
+
var animation_player_1 = require('./src/animation/animation_player');
|
|
58
|
+
exports.AnimationPlayer = animation_player_1.AnimationPlayer;
|
|
57
59
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../modules/@angular/core/index.ts"],"names":[],"mappings":";;;;AAAA;;;;GAIG;AACH,iBAAc,gBAAgB,CAAC,EAAA;AAC/B,iBAAc,YAAY,CAAC,EAAA;AAC3B,iBAAc,UAAU,CAAC,EAAA;AACzB,gCAA2J,uBAAuB,CAAC;AAA3K,0DAAc;AAAE,0DAAc;AAAE,4DAAe;AAAE,oDAAW;AAAE,wDAAa;AAAE,sEAAoB;AAAE,sDAAY;AAAE,oDAAW;AAAE,0DAA6C;AACnL,mCAA8E,0BAA0B,CAAC;AAAjG,6CAAM;AAAE,+DAAe;AAAE,iEAAgB;AAAE,yEAAsD;AACzG,iBAAc,YAAY,CAAC,EAAA;AAC3B,iBAAc,cAAc,CAAC,EAAA;AAC7B,iBAAc,cAAc,CAAC,EAAA;AAC7B,2BAAsE,wBAAwB,CAAC;AAAvF,iDAAY;AAAE,2CAAS;AAAE,yDAAgB;AAAE,iDAA4C;AAC/F,iBAAc,+BAA+B,CAAC,EAAA;AAC9C,iBAAc,wBAAwB,CAAC,EAAA;AACvC,iBAAc,qCAAqC,CAAC,EAAA;AACpD,iBAAc,iCAAiC,CAAC,EAAA;AAChD,iBAAc,oCAAoC,CAAC,EAAA;AACnD,wBAAuF,uBAAuB,CAAC;AAAvG,kDAAc;AAAE,sCAAQ;AAAE,wDAAiB;AAAE,oDAA0D;AAE/G,qBAAmC,mBAAmB,CAAC;AAA/C,2BAAI;AAAE,+CAAyC;AACvD,sBAA2B,oBAAoB,CAAC;AAAxC,4CAAwC;AAChD,2BAAgE,yBAAyB,CAAC;AAAlF,yDAAgB;AAAE,yDAAgB;AAAE,mDAA8C;AAC1F,iBAAc,kBAAkB,CAAC,EAAA;AAEjC,iBAAc,0BAA0B,CAAC,EAAA;AACzC,iCAA8B,kCAAkC,CAAC;AAAzD,6DAAyD","sourcesContent":["/**\n * @module\n * @description\n * Starting point to import all public core APIs.\n */\nexport * from './src/metadata';\nexport * from './src/util';\nexport * from './src/di';\nexport {createPlatform, assertPlatform, disposePlatform, getPlatform, coreBootstrap, coreLoadAndBootstrap, createNgZone, PlatformRef, ApplicationRef} from './src/application_ref';\nexport {APP_ID, APP_INITIALIZER, PACKAGE_ROOT_URL, PLATFORM_INITIALIZER} from './src/application_tokens';\nexport * from './src/zone';\nexport * from './src/render';\nexport * from './src/linker';\nexport {DebugElement, DebugNode, asNativeElements, getDebugNode} from './src/debug/debug_node';\nexport * from './src/testability/testability';\nexport * from './src/change_detection';\nexport * from './src/platform_directives_and_pipes';\nexport * from './src/platform_common_providers';\nexport * from './src/application_common_providers';\nexport {wtfCreateScope, wtfLeave, wtfStartTimeRange, wtfEndTimeRange, WtfScopeFn} from './src/profile/profile';\n\nexport {Type, enableProdMode} from './src/facade/lang';\nexport {EventEmitter} from './src/facade/async';\nexport {ExceptionHandler, WrappedException, BaseException} from './src/facade/exceptions';\nexport * from './private_export';\n\nexport * from './src/animation/metadata';\nexport {AnimationPlayer} from './src/animation/animation_player';\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-rc.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"jsnext:main": "esm/index.js",
|
|
@@ -10,5 +10,9 @@
|
|
|
10
10
|
"peerDependencies": {
|
|
11
11
|
"rxjs": "5.0.0-beta.6",
|
|
12
12
|
"zone.js": "^0.6.6"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/angular/angular.git"
|
|
13
17
|
}
|
|
14
18
|
}
|
package/private_export.d.ts
CHANGED
|
@@ -1,24 +1,35 @@
|
|
|
1
|
+
import { Provider } from './index';
|
|
2
|
+
import { ANY_STATE as ANY_STATE_, DEFAULT_STATE as DEFAULT_STATE_, EMPTY_STATE as EMPTY_STATE_, FILL_STYLE_FLAG as FILL_STYLE_FLAG_ } from './src/animation/animation_constants';
|
|
3
|
+
import { AnimationDriver as AnimationDriver_, NoOpAnimationDriver as NoOpAnimationDriver_ } from './src/animation/animation_driver';
|
|
4
|
+
import { AnimationGroupPlayer as AnimationGroupPlayer_ } from './src/animation/animation_group_player';
|
|
5
|
+
import { AnimationKeyframe as AnimationKeyframe_ } from './src/animation/animation_keyframe';
|
|
6
|
+
import { AnimationPlayer as AnimationPlayer_, NoOpAnimationPlayer as NoOpAnimationPlayer_ } from './src/animation/animation_player';
|
|
7
|
+
import { AnimationSequencePlayer as AnimationSequencePlayer_ } from './src/animation/animation_sequence_player';
|
|
8
|
+
import * as animationUtils from './src/animation/animation_style_util';
|
|
9
|
+
import { AnimationStyles as AnimationStyles_ } from './src/animation/animation_styles';
|
|
10
|
+
import * as change_detection_util from './src/change_detection/change_detection_util';
|
|
1
11
|
import * as constants from './src/change_detection/constants';
|
|
12
|
+
import * as console from './src/console';
|
|
13
|
+
import * as debug from './src/debug/debug_renderer';
|
|
14
|
+
import * as provider_util from './src/di/provider_util';
|
|
2
15
|
import * as reflective_provider from './src/di/reflective_provider';
|
|
3
|
-
import * as lifecycle_hooks from './src/metadata/lifecycle_hooks';
|
|
4
|
-
import * as reflector_reader from './src/reflection/reflector_reader';
|
|
5
16
|
import * as component_resolver from './src/linker/component_resolver';
|
|
17
|
+
import * as debug_context from './src/linker/debug_context';
|
|
6
18
|
import * as element from './src/linker/element';
|
|
19
|
+
import * as template_ref from './src/linker/template_ref';
|
|
7
20
|
import * as view from './src/linker/view';
|
|
8
21
|
import * as view_type from './src/linker/view_type';
|
|
9
22
|
import * as view_utils from './src/linker/view_utils';
|
|
23
|
+
import * as lifecycle_hooks from './src/metadata/lifecycle_hooks';
|
|
10
24
|
import * as metadata_view from './src/metadata/view';
|
|
11
|
-
import * as debug_context from './src/linker/debug_context';
|
|
12
|
-
import * as change_detection_util from './src/change_detection/change_detection_util';
|
|
13
|
-
import * as api from './src/render/api';
|
|
14
|
-
import * as template_ref from './src/linker/template_ref';
|
|
15
25
|
import * as wtf_init from './src/profile/wtf_init';
|
|
26
|
+
import * as reflection from './src/reflection/reflection';
|
|
27
|
+
import { Reflector } from './src/reflection/reflection';
|
|
16
28
|
import * as reflection_capabilities from './src/reflection/reflection_capabilities';
|
|
29
|
+
import * as reflector_reader from './src/reflection/reflector_reader';
|
|
30
|
+
import * as api from './src/render/api';
|
|
31
|
+
import * as security from './src/security';
|
|
17
32
|
import * as decorators from './src/util/decorators';
|
|
18
|
-
import * as debug from './src/debug/debug_renderer';
|
|
19
|
-
import * as provider_util from './src/di/provider_util';
|
|
20
|
-
import * as console from './src/console';
|
|
21
|
-
import { Provider } from './index';
|
|
22
33
|
export declare namespace __core_private_types__ {
|
|
23
34
|
var isDefaultChangeDetectionStrategy: typeof constants.isDefaultChangeDetectionStrategy;
|
|
24
35
|
type ChangeDetectorState = constants.ChangeDetectorState;
|
|
@@ -51,6 +62,10 @@ export declare namespace __core_private_types__ {
|
|
|
51
62
|
var ValueUnwrapper: typeof change_detection_util.ValueUnwrapper;
|
|
52
63
|
type RenderDebugInfo = api.RenderDebugInfo;
|
|
53
64
|
var RenderDebugInfo: typeof api.RenderDebugInfo;
|
|
65
|
+
var SecurityContext: typeof security.SecurityContext;
|
|
66
|
+
type SecurityContext = security.SecurityContext;
|
|
67
|
+
var SanitizationService: typeof security.SanitizationService;
|
|
68
|
+
type SanitizationService = security.SanitizationService;
|
|
54
69
|
type TemplateRef_<C> = template_ref.TemplateRef_<C>;
|
|
55
70
|
var TemplateRef_: typeof template_ref.TemplateRef_;
|
|
56
71
|
var wtfInit: typeof wtf_init.wtfInit;
|
|
@@ -76,6 +91,35 @@ export declare namespace __core_private_types__ {
|
|
|
76
91
|
var castByValue: typeof view_utils.castByValue;
|
|
77
92
|
type Console = console.Console;
|
|
78
93
|
var Console: typeof console.Console;
|
|
94
|
+
var reflector: typeof reflection.reflector;
|
|
95
|
+
type Reflector = reflection.Reflector;
|
|
96
|
+
var Reflector: typeof reflection.Reflector;
|
|
97
|
+
type NoOpAnimationPlayer = NoOpAnimationPlayer_;
|
|
98
|
+
var NoOpAnimationPlayer: typeof NoOpAnimationPlayer_;
|
|
99
|
+
type AnimationPlayer = AnimationPlayer_;
|
|
100
|
+
var AnimationPlayer: typeof AnimationPlayer_;
|
|
101
|
+
type NoOpAnimationDriver = NoOpAnimationDriver_;
|
|
102
|
+
var NoOpAnimationDriver: typeof NoOpAnimationDriver_;
|
|
103
|
+
type AnimationDriver = AnimationDriver_;
|
|
104
|
+
var AnimationDriver: typeof AnimationDriver_;
|
|
105
|
+
type AnimationSequencePlayer = AnimationSequencePlayer_;
|
|
106
|
+
var AnimationSequencePlayer: typeof AnimationSequencePlayer_;
|
|
107
|
+
type AnimationGroupPlayer = AnimationGroupPlayer_;
|
|
108
|
+
var AnimationGroupPlayer: typeof AnimationGroupPlayer_;
|
|
109
|
+
type AnimationKeyframe = AnimationKeyframe_;
|
|
110
|
+
var AnimationKeyframe: typeof AnimationKeyframe_;
|
|
111
|
+
var prepareFinalAnimationStyles: typeof animationUtils.prepareFinalAnimationStyles;
|
|
112
|
+
var balanceAnimationKeyframes: typeof animationUtils.balanceAnimationKeyframes;
|
|
113
|
+
var flattenStyles: typeof animationUtils.flattenStyles;
|
|
114
|
+
var clearStyles: typeof animationUtils.clearStyles;
|
|
115
|
+
var renderStyles: typeof animationUtils.renderStyles;
|
|
116
|
+
var collectAndResolveStyles: typeof animationUtils.collectAndResolveStyles;
|
|
117
|
+
type AnimationStyles = AnimationStyles_;
|
|
118
|
+
var AnimationStyles: typeof AnimationStyles_;
|
|
119
|
+
var ANY_STATE: typeof ANY_STATE_;
|
|
120
|
+
var DEFAULT_STATE: typeof DEFAULT_STATE_;
|
|
121
|
+
var EMPTY_STATE: typeof EMPTY_STATE_;
|
|
122
|
+
var FILL_STYLE_FLAG: typeof FILL_STYLE_FLAG_;
|
|
79
123
|
}
|
|
80
124
|
export declare var __core_private__: {
|
|
81
125
|
isDefaultChangeDetectionStrategy: (changeDetectionStrategy: constants.ChangeDetectionStrategy) => boolean;
|
|
@@ -102,6 +146,8 @@ export declare var __core_private__: {
|
|
|
102
146
|
uninitialized: Object;
|
|
103
147
|
ValueUnwrapper: typeof change_detection_util.ValueUnwrapper;
|
|
104
148
|
RenderDebugInfo: typeof api.RenderDebugInfo;
|
|
149
|
+
SecurityContext: typeof security.SecurityContext;
|
|
150
|
+
SanitizationService: typeof security.SanitizationService;
|
|
105
151
|
TemplateRef_: typeof template_ref.TemplateRef_;
|
|
106
152
|
wtfInit: () => void;
|
|
107
153
|
ReflectionCapabilities: typeof reflection_capabilities.ReflectionCapabilities;
|
|
@@ -123,4 +169,50 @@ export declare var __core_private__: {
|
|
|
123
169
|
pureProxy10: <P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, R>(fn: (p0: P0, p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9) => R) => (p0: P0, p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9) => R;
|
|
124
170
|
castByValue: <T>(input: any, value: T) => T;
|
|
125
171
|
Console: typeof console.Console;
|
|
172
|
+
reflector: Reflector;
|
|
173
|
+
Reflector: typeof Reflector;
|
|
174
|
+
NoOpAnimationPlayer: typeof NoOpAnimationPlayer_;
|
|
175
|
+
AnimationPlayer: typeof AnimationPlayer_;
|
|
176
|
+
NoOpAnimationDriver: typeof NoOpAnimationDriver_;
|
|
177
|
+
AnimationDriver: typeof AnimationDriver_;
|
|
178
|
+
AnimationSequencePlayer: typeof AnimationSequencePlayer_;
|
|
179
|
+
AnimationGroupPlayer: typeof AnimationGroupPlayer_;
|
|
180
|
+
AnimationKeyframe: typeof AnimationKeyframe_;
|
|
181
|
+
prepareFinalAnimationStyles: (previousStyles: {
|
|
182
|
+
[key: string]: string | number;
|
|
183
|
+
}, newStyles: {
|
|
184
|
+
[key: string]: string | number;
|
|
185
|
+
}, nullValue?: string) => {
|
|
186
|
+
[key: string]: string;
|
|
187
|
+
};
|
|
188
|
+
balanceAnimationKeyframes: (collectedStyles: {
|
|
189
|
+
[key: string]: string | number;
|
|
190
|
+
}, finalStateStyles: {
|
|
191
|
+
[key: string]: string | number;
|
|
192
|
+
}, keyframes: any[]) => any[];
|
|
193
|
+
flattenStyles: (styles: {
|
|
194
|
+
[key: string]: string | number;
|
|
195
|
+
}[]) => {
|
|
196
|
+
[key: string]: string;
|
|
197
|
+
};
|
|
198
|
+
clearStyles: (styles: {
|
|
199
|
+
[key: string]: string | number;
|
|
200
|
+
}) => {
|
|
201
|
+
[key: string]: string;
|
|
202
|
+
};
|
|
203
|
+
renderStyles: (element: any, renderer: any, styles: {
|
|
204
|
+
[key: string]: string | number;
|
|
205
|
+
}) => void;
|
|
206
|
+
collectAndResolveStyles: (collection: {
|
|
207
|
+
[key: string]: string | number;
|
|
208
|
+
}, styles: {
|
|
209
|
+
[key: string]: string | number;
|
|
210
|
+
}[]) => {
|
|
211
|
+
[key: string]: string | number;
|
|
212
|
+
}[];
|
|
213
|
+
AnimationStyles: typeof AnimationStyles_;
|
|
214
|
+
ANY_STATE: string;
|
|
215
|
+
DEFAULT_STATE: string;
|
|
216
|
+
EMPTY_STATE: string;
|
|
217
|
+
FILL_STYLE_FLAG: string;
|
|
126
218
|
};
|
package/private_export.js
CHANGED
|
@@ -1,24 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var animation_constants_1 = require('./src/animation/animation_constants');
|
|
3
|
+
var animation_driver_1 = require('./src/animation/animation_driver');
|
|
4
|
+
var animation_group_player_1 = require('./src/animation/animation_group_player');
|
|
5
|
+
var animation_keyframe_1 = require('./src/animation/animation_keyframe');
|
|
6
|
+
var animation_player_1 = require('./src/animation/animation_player');
|
|
7
|
+
var animation_sequence_player_1 = require('./src/animation/animation_sequence_player');
|
|
8
|
+
var animationUtils = require('./src/animation/animation_style_util');
|
|
9
|
+
var animation_styles_1 = require('./src/animation/animation_styles');
|
|
10
|
+
var change_detection_util = require('./src/change_detection/change_detection_util');
|
|
2
11
|
var constants = require('./src/change_detection/constants');
|
|
12
|
+
var console = require('./src/console');
|
|
13
|
+
var debug = require('./src/debug/debug_renderer');
|
|
14
|
+
var provider_util = require('./src/di/provider_util');
|
|
3
15
|
var reflective_provider = require('./src/di/reflective_provider');
|
|
4
|
-
var lifecycle_hooks = require('./src/metadata/lifecycle_hooks');
|
|
5
|
-
var reflector_reader = require('./src/reflection/reflector_reader');
|
|
6
16
|
var component_resolver = require('./src/linker/component_resolver');
|
|
17
|
+
var debug_context = require('./src/linker/debug_context');
|
|
7
18
|
var element = require('./src/linker/element');
|
|
19
|
+
var template_ref = require('./src/linker/template_ref');
|
|
8
20
|
var view = require('./src/linker/view');
|
|
9
21
|
var view_type = require('./src/linker/view_type');
|
|
10
22
|
var view_utils = require('./src/linker/view_utils');
|
|
23
|
+
var lifecycle_hooks = require('./src/metadata/lifecycle_hooks');
|
|
11
24
|
var metadata_view = require('./src/metadata/view');
|
|
12
|
-
var debug_context = require('./src/linker/debug_context');
|
|
13
|
-
var change_detection_util = require('./src/change_detection/change_detection_util');
|
|
14
|
-
var api = require('./src/render/api');
|
|
15
|
-
var template_ref = require('./src/linker/template_ref');
|
|
16
25
|
var wtf_init = require('./src/profile/wtf_init');
|
|
26
|
+
var reflection = require('./src/reflection/reflection');
|
|
17
27
|
var reflection_capabilities = require('./src/reflection/reflection_capabilities');
|
|
28
|
+
var reflector_reader = require('./src/reflection/reflector_reader');
|
|
29
|
+
var api = require('./src/render/api');
|
|
30
|
+
var security = require('./src/security');
|
|
18
31
|
var decorators = require('./src/util/decorators');
|
|
19
|
-
var debug = require('./src/debug/debug_renderer');
|
|
20
|
-
var provider_util = require('./src/di/provider_util');
|
|
21
|
-
var console = require('./src/console');
|
|
22
32
|
exports.__core_private__ = {
|
|
23
33
|
isDefaultChangeDetectionStrategy: constants.isDefaultChangeDetectionStrategy,
|
|
24
34
|
ChangeDetectorState: constants.ChangeDetectorState,
|
|
@@ -44,6 +54,8 @@ exports.__core_private__ = {
|
|
|
44
54
|
uninitialized: change_detection_util.uninitialized,
|
|
45
55
|
ValueUnwrapper: change_detection_util.ValueUnwrapper,
|
|
46
56
|
RenderDebugInfo: api.RenderDebugInfo,
|
|
57
|
+
SecurityContext: security.SecurityContext,
|
|
58
|
+
SanitizationService: security.SanitizationService,
|
|
47
59
|
TemplateRef_: template_ref.TemplateRef_,
|
|
48
60
|
wtfInit: wtf_init.wtfInit,
|
|
49
61
|
ReflectionCapabilities: reflection_capabilities.ReflectionCapabilities,
|
|
@@ -65,5 +77,25 @@ exports.__core_private__ = {
|
|
|
65
77
|
pureProxy10: view_utils.pureProxy10,
|
|
66
78
|
castByValue: view_utils.castByValue,
|
|
67
79
|
Console: console.Console,
|
|
80
|
+
reflector: reflection.reflector,
|
|
81
|
+
Reflector: reflection.Reflector,
|
|
82
|
+
NoOpAnimationPlayer: animation_player_1.NoOpAnimationPlayer,
|
|
83
|
+
AnimationPlayer: animation_player_1.AnimationPlayer,
|
|
84
|
+
NoOpAnimationDriver: animation_driver_1.NoOpAnimationDriver,
|
|
85
|
+
AnimationDriver: animation_driver_1.AnimationDriver,
|
|
86
|
+
AnimationSequencePlayer: animation_sequence_player_1.AnimationSequencePlayer,
|
|
87
|
+
AnimationGroupPlayer: animation_group_player_1.AnimationGroupPlayer,
|
|
88
|
+
AnimationKeyframe: animation_keyframe_1.AnimationKeyframe,
|
|
89
|
+
prepareFinalAnimationStyles: animationUtils.prepareFinalAnimationStyles,
|
|
90
|
+
balanceAnimationKeyframes: animationUtils.balanceAnimationKeyframes,
|
|
91
|
+
flattenStyles: animationUtils.flattenStyles,
|
|
92
|
+
clearStyles: animationUtils.clearStyles,
|
|
93
|
+
renderStyles: animationUtils.renderStyles,
|
|
94
|
+
collectAndResolveStyles: animationUtils.collectAndResolveStyles,
|
|
95
|
+
AnimationStyles: animation_styles_1.AnimationStyles,
|
|
96
|
+
ANY_STATE: animation_constants_1.ANY_STATE,
|
|
97
|
+
DEFAULT_STATE: animation_constants_1.DEFAULT_STATE,
|
|
98
|
+
EMPTY_STATE: animation_constants_1.EMPTY_STATE,
|
|
99
|
+
FILL_STYLE_FLAG: animation_constants_1.FILL_STYLE_FLAG
|
|
68
100
|
};
|
|
69
101
|
//# sourceMappingURL=private_export.js.map
|
package/private_export.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private_export.js","sourceRoot":"/Users/iminar/Dev/angular/modules/@angular/core/","sources":["private_export.ts"],"names":[],"mappings":";AAIE,IAAY,SAAS,WAAM,kCAAkC,CAAC,CAAA;AAChE,IAAY,mBAAmB,WAAM,8BAA8B,CAAC,CAAA;AACpE,IAAY,eAAe,WAAM,gCAAgC,CAAC,CAAA;AAClE,IAAY,gBAAgB,WAAM,mCAAmC,CAAC,CAAA;AACtE,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Ac,CAAC,uBAAuB;IAC/D,eAAe,EAAE,kCAAgB;IACjC,SAAS,EAAE,+BAAU;IACrB,aAAa,EAAE,mCAAc;IAC7B,WAAW,EAAE,iCAAY;IACzB,eAAe,EAAE,qCAAgB;CAClC,CAAC","sourcesContent":["import {Provider} from './index';\nimport {ANY_STATE as ANY_STATE_, DEFAULT_STATE as DEFAULT_STATE_, EMPTY_STATE as EMPTY_STATE_, FILL_STYLE_FLAG as FILL_STYLE_FLAG_} from './src/animation/animation_constants';\nimport {AnimationDriver as AnimationDriver_, NoOpAnimationDriver as NoOpAnimationDriver_} from './src/animation/animation_driver';\nimport {AnimationGroupPlayer as AnimationGroupPlayer_} from './src/animation/animation_group_player';\nimport {AnimationKeyframe as AnimationKeyframe_} from './src/animation/animation_keyframe';\nimport {AnimationPlayer as AnimationPlayer_, NoOpAnimationPlayer as NoOpAnimationPlayer_} from './src/animation/animation_player';\nimport {AnimationSequencePlayer as AnimationSequencePlayer_} from './src/animation/animation_sequence_player';\nimport * as animationUtils from './src/animation/animation_style_util';\nimport {AnimationStyles as AnimationStyles_} from './src/animation/animation_styles';\nimport * as change_detection_util from './src/change_detection/change_detection_util';\nimport * as constants from './src/change_detection/constants';\nimport * as console from './src/console';\nimport * as debug from './src/debug/debug_renderer';\nimport * as provider_util from './src/di/provider_util';\nimport * as reflective_provider from './src/di/reflective_provider';\nimport * as component_resolver from './src/linker/component_resolver';\nimport * as debug_context from './src/linker/debug_context';\nimport * as element from './src/linker/element';\nimport * as template_ref from './src/linker/template_ref';\nimport * as view from './src/linker/view';\nimport * as view_type from './src/linker/view_type';\nimport * as view_utils from './src/linker/view_utils';\nimport * as lifecycle_hooks from './src/metadata/lifecycle_hooks';\nimport * as metadata_view from './src/metadata/view';\nimport * as wtf_init from './src/profile/wtf_init';\nimport * as reflection from './src/reflection/reflection';\n// We need to import this name separately from the above wildcard, because this symbol is exposed.\nimport {Reflector} from './src/reflection/reflection'; // tslint:disable-line\nimport * as reflection_capabilities from './src/reflection/reflection_capabilities';\nimport * as reflector_reader from './src/reflection/reflector_reader';\nimport * as api from './src/render/api';\nimport * as security from './src/security';\nimport * as decorators from './src/util/decorators';\n\nexport declare namespace __core_private_types__ {\n export var isDefaultChangeDetectionStrategy: typeof constants.isDefaultChangeDetectionStrategy;\n export type ChangeDetectorState = constants.ChangeDetectorState;\n export var ChangeDetectorState: typeof constants.ChangeDetectorState;\n export var CHANGE_DETECTION_STRATEGY_VALUES: typeof constants.CHANGE_DETECTION_STRATEGY_VALUES;\n export var constructDependencies: typeof reflective_provider.constructDependencies;\n export type LifecycleHooks = lifecycle_hooks.LifecycleHooks;\n export var LifecycleHooks: typeof lifecycle_hooks.LifecycleHooks;\n export var LIFECYCLE_HOOKS_VALUES: typeof lifecycle_hooks.LIFECYCLE_HOOKS_VALUES;\n export type ReflectorReader = reflector_reader.ReflectorReader;\n export var ReflectorReader: typeof reflector_reader.ReflectorReader;\n export var ReflectorComponentResolver: typeof component_resolver.ReflectorComponentResolver;\n export type AppElement = element.AppElement;\n export var AppElement: typeof element.AppElement;\n export var AppView: typeof view.AppView;\n export type DebugAppView<T> = view.DebugAppView<T>;\n export var DebugAppView: typeof view.DebugAppView;\n export type ViewType = view_type.ViewType;\n export var ViewType: typeof view_type.ViewType;\n export var MAX_INTERPOLATION_VALUES: typeof view_utils.MAX_INTERPOLATION_VALUES;\n export var checkBinding: typeof view_utils.checkBinding;\n export var flattenNestedViewRenderNodes: typeof view_utils.flattenNestedViewRenderNodes;\n export var interpolate: typeof view_utils.interpolate;\n export var ViewUtils: typeof view_utils.ViewUtils;\n export var VIEW_ENCAPSULATION_VALUES: typeof metadata_view.VIEW_ENCAPSULATION_VALUES;\n export var DebugContext: typeof debug_context.DebugContext;\n export var StaticNodeDebugInfo: typeof debug_context.StaticNodeDebugInfo;\n export var devModeEqual: typeof change_detection_util.devModeEqual;\n export var uninitialized: typeof change_detection_util.uninitialized;\n export var ValueUnwrapper: typeof change_detection_util.ValueUnwrapper;\n export type RenderDebugInfo = api.RenderDebugInfo;\n export var RenderDebugInfo: typeof api.RenderDebugInfo;\n export var SecurityContext: typeof security.SecurityContext;\n export type SecurityContext = security.SecurityContext;\n export var SanitizationService: typeof security.SanitizationService;\n export type SanitizationService = security.SanitizationService;\n export type TemplateRef_<C> = template_ref.TemplateRef_<C>;\n export var TemplateRef_: typeof template_ref.TemplateRef_;\n export var wtfInit: typeof wtf_init.wtfInit;\n export type ReflectionCapabilities = reflection_capabilities.ReflectionCapabilities;\n export var ReflectionCapabilities: typeof reflection_capabilities.ReflectionCapabilities;\n export var makeDecorator: typeof decorators.makeDecorator;\n export type DebugDomRootRenderer = debug.DebugDomRootRenderer;\n export var DebugDomRootRenderer: typeof debug.DebugDomRootRenderer;\n export var createProvider: typeof provider_util.createProvider;\n export var isProviderLiteral: typeof provider_util.isProviderLiteral;\n export var EMPTY_ARRAY: typeof view_utils.EMPTY_ARRAY;\n export var EMPTY_MAP: typeof view_utils.EMPTY_MAP;\n export var pureProxy1: typeof view_utils.pureProxy1;\n export var pureProxy2: typeof view_utils.pureProxy2;\n export var pureProxy3: typeof view_utils.pureProxy3;\n export var pureProxy4: typeof view_utils.pureProxy4;\n export var pureProxy5: typeof view_utils.pureProxy5;\n export var pureProxy6: typeof view_utils.pureProxy6;\n export var pureProxy7: typeof view_utils.pureProxy7;\n export var pureProxy8: typeof view_utils.pureProxy8;\n export var pureProxy9: typeof view_utils.pureProxy9;\n export var pureProxy10: typeof view_utils.pureProxy10;\n export var castByValue: typeof view_utils.castByValue;\n export type Console = console.Console;\n export var Console: typeof console.Console;\n export var reflector: typeof reflection.reflector;\n export type Reflector = reflection.Reflector;\n export var Reflector: typeof reflection.Reflector;\n export type NoOpAnimationPlayer = NoOpAnimationPlayer_;\n export var NoOpAnimationPlayer: typeof NoOpAnimationPlayer_;\n export type AnimationPlayer = AnimationPlayer_;\n export var AnimationPlayer: typeof AnimationPlayer_;\n export type NoOpAnimationDriver = NoOpAnimationDriver_;\n export var NoOpAnimationDriver: typeof NoOpAnimationDriver_;\n export type AnimationDriver = AnimationDriver_;\n export var AnimationDriver: typeof AnimationDriver_;\n export type AnimationSequencePlayer = AnimationSequencePlayer_;\n export var AnimationSequencePlayer: typeof AnimationSequencePlayer_;\n export type AnimationGroupPlayer = AnimationGroupPlayer_;\n export var AnimationGroupPlayer: typeof AnimationGroupPlayer_;\n export type AnimationKeyframe = AnimationKeyframe_;\n export var AnimationKeyframe: typeof AnimationKeyframe_;\n export var prepareFinalAnimationStyles: typeof animationUtils.prepareFinalAnimationStyles;\n export var balanceAnimationKeyframes: typeof animationUtils.balanceAnimationKeyframes;\n export var flattenStyles: typeof animationUtils.flattenStyles;\n export var clearStyles: typeof animationUtils.clearStyles;\n export var renderStyles: typeof animationUtils.renderStyles;\n export var collectAndResolveStyles: typeof animationUtils.collectAndResolveStyles;\n export type AnimationStyles = AnimationStyles_;\n export var AnimationStyles: typeof AnimationStyles_;\n export var ANY_STATE: typeof ANY_STATE_;\n export var DEFAULT_STATE: typeof DEFAULT_STATE_;\n export var EMPTY_STATE: typeof EMPTY_STATE_;\n export var FILL_STYLE_FLAG: typeof FILL_STYLE_FLAG_;\n}\n\nexport var __core_private__ = {\n isDefaultChangeDetectionStrategy: constants.isDefaultChangeDetectionStrategy,\n ChangeDetectorState: constants.ChangeDetectorState,\n CHANGE_DETECTION_STRATEGY_VALUES: constants.CHANGE_DETECTION_STRATEGY_VALUES,\n constructDependencies: reflective_provider.constructDependencies,\n LifecycleHooks: lifecycle_hooks.LifecycleHooks,\n LIFECYCLE_HOOKS_VALUES: lifecycle_hooks.LIFECYCLE_HOOKS_VALUES,\n ReflectorReader: reflector_reader.ReflectorReader,\n ReflectorComponentResolver: component_resolver.ReflectorComponentResolver,\n AppElement: element.AppElement,\n AppView: view.AppView,\n DebugAppView: view.DebugAppView,\n ViewType: view_type.ViewType,\n MAX_INTERPOLATION_VALUES: view_utils.MAX_INTERPOLATION_VALUES,\n checkBinding: view_utils.checkBinding,\n flattenNestedViewRenderNodes: view_utils.flattenNestedViewRenderNodes,\n interpolate: view_utils.interpolate,\n ViewUtils: view_utils.ViewUtils,\n VIEW_ENCAPSULATION_VALUES: metadata_view.VIEW_ENCAPSULATION_VALUES,\n DebugContext: debug_context.DebugContext,\n StaticNodeDebugInfo: debug_context.StaticNodeDebugInfo,\n devModeEqual: change_detection_util.devModeEqual,\n uninitialized: change_detection_util.uninitialized,\n ValueUnwrapper: change_detection_util.ValueUnwrapper,\n RenderDebugInfo: api.RenderDebugInfo,\n SecurityContext: security.SecurityContext,\n SanitizationService: security.SanitizationService,\n TemplateRef_: template_ref.TemplateRef_,\n wtfInit: wtf_init.wtfInit,\n ReflectionCapabilities: reflection_capabilities.ReflectionCapabilities,\n makeDecorator: decorators.makeDecorator,\n DebugDomRootRenderer: debug.DebugDomRootRenderer,\n createProvider: provider_util.createProvider,\n isProviderLiteral: provider_util.isProviderLiteral,\n EMPTY_ARRAY: view_utils.EMPTY_ARRAY,\n EMPTY_MAP: view_utils.EMPTY_MAP,\n pureProxy1: view_utils.pureProxy1,\n pureProxy2: view_utils.pureProxy2,\n pureProxy3: view_utils.pureProxy3,\n pureProxy4: view_utils.pureProxy4,\n pureProxy5: view_utils.pureProxy5,\n pureProxy6: view_utils.pureProxy6,\n pureProxy7: view_utils.pureProxy7,\n pureProxy8: view_utils.pureProxy8,\n pureProxy9: view_utils.pureProxy9,\n pureProxy10: view_utils.pureProxy10,\n castByValue: view_utils.castByValue,\n Console: console.Console,\n reflector: reflection.reflector,\n Reflector: reflection.Reflector,\n NoOpAnimationPlayer: NoOpAnimationPlayer_,\n AnimationPlayer: AnimationPlayer_,\n NoOpAnimationDriver: NoOpAnimationDriver_,\n AnimationDriver: AnimationDriver_,\n AnimationSequencePlayer: AnimationSequencePlayer_,\n AnimationGroupPlayer: AnimationGroupPlayer_,\n AnimationKeyframe: AnimationKeyframe_,\n prepareFinalAnimationStyles: animationUtils.prepareFinalAnimationStyles,\n balanceAnimationKeyframes: animationUtils.balanceAnimationKeyframes,\n flattenStyles: animationUtils.flattenStyles,\n clearStyles: animationUtils.clearStyles,\n renderStyles: animationUtils.renderStyles,\n collectAndResolveStyles: animationUtils.collectAndResolveStyles,\n AnimationStyles: AnimationStyles_,\n ANY_STATE: ANY_STATE_,\n DEFAULT_STATE: DEFAULT_STATE_,\n EMPTY_STATE: EMPTY_STATE_,\n FILL_STYLE_FLAG: FILL_STYLE_FLAG_\n};\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","metadata":{"___core_private__":{"isDefaultChangeDetectionStrategy":{"__symbolic":"reference","
|
|
1
|
+
{"__symbolic":"module","version":1,"metadata":{"___core_private__":{"isDefaultChangeDetectionStrategy":{"__symbolic":"reference","module":"./src/change_detection/constants","name":"isDefaultChangeDetectionStrategy"},"ChangeDetectorState":{"__symbolic":"reference","module":"./src/change_detection/constants","name":"ChangeDetectorState"},"CHANGE_DETECTION_STRATEGY_VALUES":{"__symbolic":"reference","module":"./src/change_detection/constants","name":"CHANGE_DETECTION_STRATEGY_VALUES"},"constructDependencies":{"__symbolic":"reference","module":"./src/di/reflective_provider","name":"constructDependencies"},"LifecycleHooks":{"__symbolic":"reference","module":"./src/metadata/lifecycle_hooks","name":"LifecycleHooks"},"LIFECYCLE_HOOKS_VALUES":{"__symbolic":"reference","module":"./src/metadata/lifecycle_hooks","name":"LIFECYCLE_HOOKS_VALUES"},"ReflectorReader":{"__symbolic":"reference","module":"./src/reflection/reflector_reader","name":"ReflectorReader"},"ReflectorComponentResolver":{"__symbolic":"reference","module":"./src/linker/component_resolver","name":"ReflectorComponentResolver"},"AppElement":{"__symbolic":"reference","module":"./src/linker/element","name":"AppElement"},"AppView":{"__symbolic":"reference","module":"./src/linker/view","name":"AppView"},"DebugAppView":{"__symbolic":"reference","module":"./src/linker/view","name":"DebugAppView"},"ViewType":{"__symbolic":"reference","module":"./src/linker/view_type","name":"ViewType"},"MAX_INTERPOLATION_VALUES":{"__symbolic":"reference","module":"./src/linker/view_utils","name":"MAX_INTERPOLATION_VALUES"},"checkBinding":{"__symbolic":"reference","module":"./src/linker/view_utils","name":"checkBinding"},"flattenNestedViewRenderNodes":{"__symbolic":"reference","module":"./src/linker/view_utils","name":"flattenNestedViewRenderNodes"},"interpolate":{"__symbolic":"reference","module":"./src/linker/view_utils","name":"interpolate"},"ViewUtils":{"__symbolic":"reference","module":"./src/linker/view_utils","name":"ViewUtils"},"VIEW_ENCAPSULATION_VALUES":{"__symbolic":"reference","module":"./src/metadata/view","name":"VIEW_ENCAPSULATION_VALUES"},"DebugContext":{"__symbolic":"reference","module":"./src/linker/debug_context","name":"DebugContext"},"StaticNodeDebugInfo":{"__symbolic":"reference","module":"./src/linker/debug_context","name":"StaticNodeDebugInfo"},"devModeEqual":{"__symbolic":"reference","module":"./src/change_detection/change_detection_util","name":"devModeEqual"},"uninitialized":{"__symbolic":"reference","module":"./src/change_detection/change_detection_util","name":"uninitialized"},"ValueUnwrapper":{"__symbolic":"reference","module":"./src/change_detection/change_detection_util","name":"ValueUnwrapper"},"RenderDebugInfo":{"__symbolic":"reference","module":"./src/render/api","name":"RenderDebugInfo"},"SecurityContext":{"__symbolic":"reference","module":"./src/security","name":"SecurityContext"},"SanitizationService":{"__symbolic":"reference","module":"./src/security","name":"SanitizationService"},"TemplateRef_":{"__symbolic":"reference","module":"./src/linker/template_ref","name":"TemplateRef_"},"wtfInit":{"__symbolic":"reference","module":"./src/profile/wtf_init","name":"wtfInit"},"ReflectionCapabilities":{"__symbolic":"reference","module":"./src/reflection/reflection_capabilities","name":"ReflectionCapabilities"},"makeDecorator":{"__symbolic":"reference","module":"./src/util/decorators","name":"makeDecorator"},"DebugDomRootRenderer":{"__symbolic":"reference","module":"./src/debug/debug_renderer","name":"DebugDomRootRenderer"},"createProvider":{"__symbolic":"reference","module":"./src/di/provider_util","name":"createProvider"},"isProviderLiteral":{"__symbolic":"reference","module":"./src/di/provider_util","name":"isProviderLiteral"},"EMPTY_ARRAY":{"__symbolic":"reference","module":"./src/linker/view_utils","name":"EMPTY_ARRAY"},"EMPTY_MAP":{"__symbolic":"reference","module":"./src/linker/view_utils","name":"EMPTY_MAP"},"pureProxy1":{"__symbolic":"reference","module":"./src/linker/view_utils","name":"pureProxy1"},"pureProxy2":{"__symbolic":"reference","module":"./src/linker/view_utils","name":"pureProxy2"},"pureProxy3":{"__symbolic":"reference","module":"./src/linker/view_utils","name":"pureProxy3"},"pureProxy4":{"__symbolic":"reference","module":"./src/linker/view_utils","name":"pureProxy4"},"pureProxy5":{"__symbolic":"reference","module":"./src/linker/view_utils","name":"pureProxy5"},"pureProxy6":{"__symbolic":"reference","module":"./src/linker/view_utils","name":"pureProxy6"},"pureProxy7":{"__symbolic":"reference","module":"./src/linker/view_utils","name":"pureProxy7"},"pureProxy8":{"__symbolic":"reference","module":"./src/linker/view_utils","name":"pureProxy8"},"pureProxy9":{"__symbolic":"reference","module":"./src/linker/view_utils","name":"pureProxy9"},"pureProxy10":{"__symbolic":"reference","module":"./src/linker/view_utils","name":"pureProxy10"},"castByValue":{"__symbolic":"reference","module":"./src/linker/view_utils","name":"castByValue"},"Console":{"__symbolic":"reference","module":"./src/console","name":"Console"},"reflector":{"__symbolic":"reference","module":"./src/reflection/reflection","name":"reflector"},"Reflector":{"__symbolic":"reference","module":"./src/reflection/reflection","name":"Reflector"},"NoOpAnimationPlayer":{"__symbolic":"reference","module":"./src/animation/animation_player","name":"NoOpAnimationPlayer"},"AnimationPlayer":{"__symbolic":"reference","module":"./src/animation/animation_player","name":"AnimationPlayer"},"NoOpAnimationDriver":{"__symbolic":"reference","module":"./src/animation/animation_driver","name":"NoOpAnimationDriver"},"AnimationDriver":{"__symbolic":"reference","module":"./src/animation/animation_driver","name":"AnimationDriver"},"AnimationSequencePlayer":{"__symbolic":"reference","module":"./src/animation/animation_sequence_player","name":"AnimationSequencePlayer"},"AnimationGroupPlayer":{"__symbolic":"reference","module":"./src/animation/animation_group_player","name":"AnimationGroupPlayer"},"AnimationKeyframe":{"__symbolic":"reference","module":"./src/animation/animation_keyframe","name":"AnimationKeyframe"},"prepareFinalAnimationStyles":{"__symbolic":"reference","module":"./src/animation/animation_style_util","name":"prepareFinalAnimationStyles"},"balanceAnimationKeyframes":{"__symbolic":"reference","module":"./src/animation/animation_style_util","name":"balanceAnimationKeyframes"},"flattenStyles":{"__symbolic":"reference","module":"./src/animation/animation_style_util","name":"flattenStyles"},"clearStyles":{"__symbolic":"reference","module":"./src/animation/animation_style_util","name":"clearStyles"},"renderStyles":{"__symbolic":"reference","module":"./src/animation/animation_style_util","name":"renderStyles"},"collectAndResolveStyles":{"__symbolic":"reference","module":"./src/animation/animation_style_util","name":"collectAndResolveStyles"},"AnimationStyles":{"__symbolic":"reference","module":"./src/animation/animation_styles","name":"AnimationStyles"},"ANY_STATE":{"__symbolic":"reference","module":"./src/animation/animation_constants","name":"ANY_STATE"},"DEFAULT_STATE":{"__symbolic":"reference","module":"./src/animation/animation_constants","name":"DEFAULT_STATE"},"EMPTY_STATE":{"__symbolic":"reference","module":"./src/animation/animation_constants","name":"EMPTY_STATE"},"FILL_STYLE_FLAG":{"__symbolic":"reference","module":"./src/animation/animation_constants","name":"FILL_STYLE_FLAG"}}}}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AnimationPlayer } from './animation_player';
|
|
2
|
+
export declare class ActiveAnimationPlayersMap {
|
|
3
|
+
private _map;
|
|
4
|
+
private _allPlayers;
|
|
5
|
+
length: number;
|
|
6
|
+
find(element: any, animationName: string): AnimationPlayer;
|
|
7
|
+
findAllPlayersByElement(element: any): AnimationPlayer[];
|
|
8
|
+
set(element: any, animationName: string, player: AnimationPlayer): void;
|
|
9
|
+
getAllPlayers(): AnimationPlayer[];
|
|
10
|
+
remove(element: any, animationName: string): void;
|
|
11
|
+
}
|