@angular/core 2.0.0-rc.1 → 2.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{core.umd.js → bundles/core.umd.js} +6402 -4606
- package/bundles/core.umd.min.js +6 -0
- package/esm/index.d.ts +5 -4
- package/esm/index.js +9 -8
- package/esm/index.js.map +1 -1
- package/esm/private_export.d.ts +96 -11
- package/esm/private_export.js +39 -10
- package/esm/private_export.js.map +1 -1
- package/esm/private_export.metadata.json +1 -1
- package/esm/src/animation/active_animation_players_map.d.ts +11 -0
- package/esm/src/animation/active_animation_players_map.js +47 -0
- package/esm/src/animation/active_animation_players_map.js.map +1 -0
- package/esm/src/animation/animation_constants.d.ts +4 -0
- package/esm/src/animation/animation_constants.js +5 -0
- package/esm/src/animation/animation_constants.js.map +1 -0
- package/esm/src/animation/animation_constants.metadata.json +1 -0
- package/esm/src/animation/animation_driver.d.ts +9 -0
- package/esm/src/animation/animation_driver.js +9 -0
- package/esm/src/animation/animation_driver.js.map +1 -0
- package/esm/src/animation/animation_group_player.d.ts +18 -0
- package/esm/src/animation/animation_group_player.js +60 -0
- package/esm/src/animation/animation_group_player.js.map +1 -0
- package/esm/src/animation/animation_keyframe.d.ts +6 -0
- package/esm/src/animation/animation_keyframe.js +7 -0
- package/esm/src/animation/animation_keyframe.js.map +1 -0
- package/esm/src/animation/animation_player.d.ts +26 -0
- package/esm/src/animation/animation_player.js +30 -0
- package/esm/src/animation/animation_player.js.map +1 -0
- package/esm/src/animation/animation_sequence_player.d.ts +21 -0
- package/esm/src/animation/animation_sequence_player.js +64 -0
- package/esm/src/animation/animation_sequence_player.js.map +1 -0
- package/esm/src/animation/animation_style_util.d.ts +32 -0
- package/esm/src/animation/animation_style_util.js +91 -0
- package/esm/src/animation/animation_style_util.js.map +1 -0
- package/esm/src/animation/animation_style_util.metadata.json +1 -0
- package/esm/src/animation/animation_styles.d.ts +8 -0
- package/esm/src/animation/animation_styles.js +6 -0
- package/esm/src/animation/animation_styles.js.map +1 -0
- package/esm/src/animation/metadata.d.ts +511 -0
- package/esm/src/animation/metadata.js +565 -0
- package/esm/src/animation/metadata.js.map +1 -0
- package/esm/src/animation/metadata.metadata.json +1 -0
- package/esm/src/application_common_providers.d.ts +1 -0
- package/esm/src/application_common_providers.js +5 -4
- package/esm/src/application_common_providers.js.map +1 -1
- package/esm/src/application_common_providers.metadata.json +1 -1
- package/esm/src/application_ref.d.ts +17 -41
- package/esm/src/application_ref.js +32 -23
- package/esm/src/application_ref.js.map +1 -1
- package/esm/src/application_ref.metadata.json +1 -1
- package/esm/src/application_tokens.d.ts +6 -1
- package/esm/src/application_tokens.js +9 -4
- package/esm/src/application_tokens.js.map +1 -1
- package/esm/src/application_tokens.metadata.json +1 -1
- package/esm/src/change_detection/change_detection.d.ts +9 -8
- package/esm/src/change_detection/change_detection.js +7 -7
- package/esm/src/change_detection/change_detection.js.map +1 -1
- package/esm/src/change_detection/change_detection.metadata.json +1 -1
- package/esm/src/change_detection/change_detection_util.d.ts +3 -1
- package/esm/src/change_detection/change_detection_util.js +6 -5
- package/esm/src/change_detection/change_detection_util.js.map +1 -1
- package/esm/src/change_detection/change_detection_util.metadata.json +1 -1
- package/esm/src/change_detection/change_detector_ref.d.ts +3 -0
- package/esm/src/change_detection/change_detector_ref.js +3 -0
- package/esm/src/change_detection/change_detector_ref.js.map +1 -1
- package/esm/src/change_detection/constants.d.ts +1 -0
- package/esm/src/change_detection/constants.js +4 -3
- package/esm/src/change_detection/constants.js.map +1 -1
- package/esm/src/change_detection/constants.metadata.json +1 -1
- package/esm/src/change_detection/differs/default_iterable_differ.d.ts +6 -94
- package/esm/src/change_detection/differs/default_iterable_differ.js +25 -18
- package/esm/src/change_detection/differs/default_iterable_differ.js.map +1 -1
- package/esm/src/change_detection/differs/default_keyvalue_differ.d.ts +3 -30
- package/esm/src/change_detection/differs/default_keyvalue_differ.js +13 -8
- package/esm/src/change_detection/differs/default_keyvalue_differ.js.map +1 -1
- package/esm/src/change_detection/differs/iterable_differs.d.ts +4 -1
- package/esm/src/change_detection/differs/iterable_differs.js +5 -4
- package/esm/src/change_detection/differs/iterable_differs.js.map +1 -1
- package/esm/src/change_detection/differs/keyvalue_differs.d.ts +2 -1
- package/esm/src/change_detection/differs/keyvalue_differs.js +5 -4
- package/esm/src/change_detection/differs/keyvalue_differs.js.map +1 -1
- package/esm/src/change_detection/pipe_transform.js.map +1 -1
- package/esm/src/change_detection.d.ts +1 -1
- package/esm/src/change_detection.js +5 -5
- package/esm/src/change_detection.js.map +1 -1
- package/esm/src/console.js +2 -1
- package/esm/src/console.js.map +1 -1
- package/esm/src/console.metadata.json +1 -1
- package/esm/src/debug/debug_node.d.ts +20 -2
- package/esm/src/debug/debug_node.js +16 -2
- package/esm/src/debug/debug_node.js.map +1 -1
- package/esm/src/debug/debug_node.metadata.json +1 -0
- package/esm/src/debug/debug_renderer.d.ts +10 -6
- package/esm/src/debug/debug_renderer.js +13 -2
- package/esm/src/debug/debug_renderer.js.map +1 -1
- package/esm/src/di/decorators.d.ts +13 -1
- package/esm/src/di/decorators.js +7 -1
- package/esm/src/di/decorators.js.map +1 -1
- package/esm/src/di/decorators.metadata.json +1 -1
- package/esm/src/di/forward_ref.d.ts +3 -1
- package/esm/src/di/forward_ref.js +3 -1
- package/esm/src/di/forward_ref.js.map +1 -1
- package/esm/src/di/injector.d.ts +4 -1
- package/esm/src/di/injector.js +5 -2
- package/esm/src/di/injector.js.map +1 -1
- package/esm/src/di/injector.metadata.json +1 -1
- package/esm/src/di/metadata.d.ts +8 -1
- package/esm/src/di/metadata.js +10 -3
- package/esm/src/di/metadata.js.map +1 -1
- package/esm/src/di/opaque_token.d.ts +2 -1
- package/esm/src/di/opaque_token.js +22 -21
- package/esm/src/di/opaque_token.js.map +1 -1
- package/esm/src/di/provider.d.ts +11 -10
- package/esm/src/di/provider.js +17 -14
- package/esm/src/di/provider.js.map +1 -1
- package/esm/src/di/provider.metadata.json +1 -0
- package/esm/src/di/provider_util.js.map +1 -1
- package/esm/src/di/provider_util.metadata.json +1 -0
- package/esm/src/di/reflective_exceptions.d.ts +11 -16
- package/esm/src/di/reflective_exceptions.js +28 -22
- package/esm/src/di/reflective_exceptions.js.map +1 -1
- package/esm/src/di/reflective_injector.d.ts +3 -33
- package/esm/src/di/reflective_injector.js +10 -7
- package/esm/src/di/reflective_injector.js.map +1 -1
- package/esm/src/di/reflective_key.d.ts +1 -8
- package/esm/src/di/reflective_key.js +3 -2
- package/esm/src/di/reflective_key.js.map +1 -1
- package/esm/src/di/reflective_provider.d.ts +2 -1
- package/esm/src/di/reflective_provider.js +6 -5
- package/esm/src/di/reflective_provider.js.map +1 -1
- package/esm/src/di/reflective_provider.metadata.json +1 -0
- package/esm/src/di.d.ts +2 -2
- package/esm/src/di.js +6 -6
- package/esm/src/di.js.map +1 -1
- package/esm/src/facade/async.d.ts +11 -4
- package/esm/src/facade/async.js +25 -15
- package/esm/src/facade/async.js.map +1 -1
- package/esm/src/facade/base_wrapped_exception.js +4 -4
- package/esm/src/facade/base_wrapped_exception.js.map +1 -1
- package/esm/src/facade/collection.js +1 -1
- package/esm/src/facade/collection.js.map +1 -1
- package/esm/src/facade/collection.metadata.json +1 -1
- package/esm/src/facade/exception_handler.d.ts +2 -11
- package/esm/src/facade/exception_handler.js +8 -7
- package/esm/src/facade/exception_handler.js.map +1 -1
- package/esm/src/facade/exceptions.d.ts +4 -0
- package/esm/src/facade/exceptions.js +6 -2
- package/esm/src/facade/exceptions.js.map +1 -1
- package/esm/src/facade/exceptions.metadata.json +1 -0
- package/esm/src/facade/lang.d.ts +6 -4
- package/esm/src/facade/lang.js +12 -11
- package/esm/src/facade/lang.js.map +1 -1
- package/esm/src/facade/lang.metadata.json +1 -1
- package/esm/src/facade/math.d.ts +2 -0
- package/esm/src/facade/math.js +4 -0
- package/esm/src/facade/math.js.map +1 -0
- package/esm/src/facade/math.metadata.json +1 -0
- package/esm/src/facade/promise.js.map +1 -1
- package/esm/src/linker/component_factory.d.ts +5 -4
- package/esm/src/linker/component_factory.js +7 -3
- package/esm/src/linker/component_factory.js.map +1 -1
- package/esm/src/linker/component_resolver.d.ts +5 -4
- package/esm/src/linker/component_resolver.js +12 -7
- package/esm/src/linker/component_resolver.js.map +1 -1
- package/esm/src/linker/component_resolver.metadata.json +1 -1
- package/esm/src/linker/debug_context.js +5 -4
- package/esm/src/linker/debug_context.js.map +1 -1
- package/esm/src/linker/dynamic_component_loader.d.ts +5 -6
- package/esm/src/linker/dynamic_component_loader.js +5 -3
- package/esm/src/linker/dynamic_component_loader.js.map +1 -1
- package/esm/src/linker/dynamic_component_loader.metadata.json +1 -1
- package/esm/src/linker/element.d.ts +3 -3
- package/esm/src/linker/element.js +5 -5
- package/esm/src/linker/element.js.map +1 -1
- package/esm/src/linker/element_injector.js.map +1 -1
- package/esm/src/linker/element_ref.d.ts +1 -0
- package/esm/src/linker/element_ref.js +5 -5
- package/esm/src/linker/element_ref.js.map +1 -1
- package/esm/src/linker/exceptions.d.ts +4 -1
- package/esm/src/linker/exceptions.js +4 -1
- package/esm/src/linker/exceptions.js.map +1 -1
- package/esm/src/linker/query_list.d.ts +3 -10
- package/esm/src/linker/query_list.js +8 -7
- package/esm/src/linker/query_list.js.map +1 -1
- package/esm/src/linker/systemjs_component_resolver.d.ts +21 -0
- package/esm/src/linker/systemjs_component_resolver.js +44 -0
- package/esm/src/linker/systemjs_component_resolver.js.map +1 -0
- package/esm/src/linker/template_ref.d.ts +2 -1
- package/esm/src/linker/template_ref.js +1 -0
- package/esm/src/linker/template_ref.js.map +1 -1
- package/esm/src/linker/view.d.ts +12 -1
- package/esm/src/linker/view.js +62 -16
- package/esm/src/linker/view.js.map +1 -1
- package/esm/src/linker/view_container_ref.d.ts +2 -10
- package/esm/src/linker/view_container_ref.js +4 -3
- package/esm/src/linker/view_container_ref.js.map +1 -1
- package/esm/src/linker/view_ref.d.ts +5 -1
- package/esm/src/linker/view_ref.js +6 -2
- package/esm/src/linker/view_ref.js.map +1 -1
- package/esm/src/linker/view_type.js.map +1 -1
- package/esm/src/linker/view_utils.d.ts +2 -4
- package/esm/src/linker/view_utils.js +21 -21
- package/esm/src/linker/view_utils.js.map +1 -1
- package/esm/src/linker/view_utils.metadata.json +1 -1
- package/esm/src/linker.d.ts +5 -4
- package/esm/src/linker.js +5 -4
- package/esm/src/linker.js.map +1 -1
- package/esm/src/metadata/di.d.ts +8 -1
- package/esm/src/metadata/di.js +10 -3
- package/esm/src/metadata/di.js.map +1 -1
- package/esm/src/metadata/directives.d.ts +104 -20
- package/esm/src/metadata/directives.js +25 -19
- package/esm/src/metadata/directives.js.map +1 -1
- package/esm/src/metadata/lifecycle_hooks.d.ts +46 -31
- package/esm/src/metadata/lifecycle_hooks.js +464 -10
- package/esm/src/metadata/lifecycle_hooks.js.map +1 -1
- package/esm/src/metadata/lifecycle_hooks.metadata.json +1 -1
- package/esm/src/metadata/view.d.ts +6 -2
- package/esm/src/metadata/view.js +3 -1
- package/esm/src/metadata/view.js.map +1 -1
- package/esm/src/metadata/view.metadata.json +1 -1
- package/esm/src/metadata.d.ts +49 -15
- package/esm/src/metadata.js +35 -10
- package/esm/src/metadata.js.map +1 -1
- package/esm/src/metadata.metadata.json +1 -1
- package/esm/src/platform_common_providers.d.ts +1 -0
- package/esm/src/platform_common_providers.js +3 -3
- package/esm/src/platform_common_providers.js.map +1 -1
- package/esm/src/platform_common_providers.metadata.json +1 -1
- package/esm/src/platform_directives_and_pipes.d.ts +48 -45
- package/esm/src/platform_directives_and_pipes.js +50 -47
- package/esm/src/platform_directives_and_pipes.js.map +1 -1
- package/esm/src/platform_directives_and_pipes.metadata.json +1 -1
- package/esm/src/profile/profile.d.ts +5 -1
- package/esm/src/profile/profile.js +4 -0
- package/esm/src/profile/profile.js.map +1 -1
- package/esm/src/profile/profile.metadata.json +1 -1
- package/esm/src/profile/wtf_impl.js +1 -1
- package/esm/src/profile/wtf_impl.js.map +1 -1
- package/esm/src/profile/wtf_impl.metadata.json +1 -0
- package/esm/src/profile/wtf_init.js +2 -2
- package/esm/src/profile/wtf_init.js.map +1 -1
- package/esm/src/reflection/platform_reflection_capabilities.d.ts +4 -3
- package/esm/src/reflection/platform_reflection_capabilities.js.map +1 -1
- package/esm/src/reflection/reflection.d.ts +1 -1
- package/esm/src/reflection/reflection.js +2 -2
- package/esm/src/reflection/reflection.js.map +1 -1
- package/esm/src/reflection/reflection.metadata.json +1 -1
- package/esm/src/reflection/reflection_capabilities.d.ts +4 -5
- package/esm/src/reflection/reflection_capabilities.js +22 -10
- package/esm/src/reflection/reflection_capabilities.js.map +1 -1
- package/esm/src/reflection/reflector.d.ts +8 -20
- package/esm/src/reflection/reflector.js +13 -3
- package/esm/src/reflection/reflector.js.map +1 -1
- package/esm/src/reflection/reflector_reader.js +3 -3
- package/esm/src/reflection/reflector_reader.js.map +1 -1
- package/esm/src/reflection/types.js.map +1 -1
- package/esm/src/render/api.d.ts +17 -6
- package/esm/src/render/api.js +8 -1
- package/esm/src/render/api.js.map +1 -1
- package/esm/src/render.d.ts +1 -1
- package/esm/src/render.js +1 -1
- package/esm/src/render.js.map +1 -1
- package/esm/src/security.js +6 -6
- package/esm/src/security.js.map +1 -1
- package/esm/src/testability/testability.d.ts +3 -19
- package/esm/src/testability/testability.js +10 -5
- package/esm/src/testability/testability.js.map +1 -1
- package/esm/src/testability/testability.metadata.json +1 -1
- package/esm/src/util/decorators.d.ts +2 -1
- package/esm/src/util/decorators.js +10 -9
- package/esm/src/util/decorators.js.map +1 -1
- package/esm/src/util.js.map +1 -1
- package/esm/src/zone/ng_zone.d.ts +6 -17
- package/esm/src/zone/ng_zone.js +7 -6
- package/esm/src/zone/ng_zone.js.map +1 -1
- package/esm/src/zone/ng_zone_impl.d.ts +1 -4
- package/esm/src/zone/ng_zone_impl.js +3 -2
- package/esm/src/zone/ng_zone_impl.js.map +1 -1
- package/esm/src/zone.js.map +1 -1
- package/esm/testing/async.js +20 -22
- package/esm/testing/async.js.map +1 -1
- package/esm/testing/async.metadata.json +1 -0
- package/esm/testing/async_test_completer.js.map +1 -1
- package/esm/testing/fake_async.d.ts +4 -1
- package/esm/testing/fake_async.js +9 -2
- package/esm/testing/fake_async.js.map +1 -1
- package/esm/testing/lang_utils.js +1 -1
- package/esm/testing/lang_utils.js.map +1 -1
- package/esm/testing/lang_utils.metadata.json +1 -0
- package/esm/testing/logger.js +5 -3
- package/esm/testing/logger.js.map +1 -1
- package/esm/testing/logger.metadata.json +1 -1
- package/esm/testing/mock_application_ref.d.ts +1 -1
- package/esm/testing/mock_application_ref.js +1 -0
- package/esm/testing/mock_application_ref.js.map +1 -1
- package/esm/testing/mock_application_ref.metadata.json +1 -1
- package/esm/testing/ng_zone_mock.d.ts +0 -1
- package/esm/testing/ng_zone_mock.js +2 -1
- package/esm/testing/ng_zone_mock.js.map +1 -1
- package/esm/testing/ng_zone_mock.metadata.json +1 -1
- package/esm/testing/regexp.js +1 -1
- package/esm/testing/regexp.js.map +1 -1
- package/esm/testing/regexp.metadata.json +1 -0
- package/esm/testing/test_injector.d.ts +6 -12
- package/esm/testing/test_injector.js +4 -10
- package/esm/testing/test_injector.js.map +1 -1
- package/esm/testing/test_injector.metadata.json +1 -0
- package/esm/testing/testing.d.ts +2 -2
- package/esm/testing/testing.js +2 -2
- package/esm/testing/testing.js.map +1 -1
- package/esm/testing/testing.metadata.json +1 -1
- package/esm/testing.js.map +1 -1
- package/index.d.ts +5 -4
- package/index.js +10 -8
- package/index.js.map +1 -1
- package/package.json +5 -1
- package/private_export.d.ts +96 -11
- package/private_export.js +39 -10
- package/private_export.js.map +1 -1
- package/private_export.metadata.json +1 -1
- package/src/animation/active_animation_players_map.d.ts +11 -0
- package/src/animation/active_animation_players_map.js +54 -0
- package/src/animation/active_animation_players_map.js.map +1 -0
- package/src/animation/animation_constants.d.ts +4 -0
- package/src/animation/animation_constants.js +6 -0
- package/src/animation/animation_constants.js.map +1 -0
- package/src/animation/animation_constants.metadata.json +1 -0
- package/src/animation/animation_driver.d.ts +9 -0
- package/src/animation/animation_driver.js +25 -0
- package/src/animation/animation_driver.js.map +1 -0
- package/src/animation/animation_group_player.d.ts +18 -0
- package/src/animation/animation_group_player.js +64 -0
- package/src/animation/animation_group_player.js.map +1 -0
- package/src/animation/animation_keyframe.d.ts +6 -0
- package/src/animation/animation_keyframe.js +10 -0
- package/src/animation/animation_keyframe.js.map +1 -0
- package/src/animation/animation_player.d.ts +26 -0
- package/src/animation/animation_player.js +42 -0
- package/src/animation/animation_player.js.map +1 -0
- package/src/animation/animation_sequence_player.d.ts +21 -0
- package/src/animation/animation_sequence_player.js +69 -0
- package/src/animation/animation_sequence_player.js.map +1 -0
- package/src/animation/animation_style_util.d.ts +32 -0
- package/src/animation/animation_style_util.js +99 -0
- package/src/animation/animation_style_util.js.map +1 -0
- package/src/animation/animation_style_util.metadata.json +1 -0
- package/src/animation/animation_styles.d.ts +8 -0
- package/src/animation/animation_styles.js +9 -0
- package/src/animation/animation_styles.js.map +1 -0
- package/src/animation/metadata.d.ts +511 -0
- package/src/animation/metadata.js +627 -0
- package/src/animation/metadata.js.map +1 -0
- package/src/animation/metadata.metadata.json +1 -0
- package/src/application_common_providers.d.ts +1 -0
- package/src/application_common_providers.js +4 -3
- package/src/application_common_providers.js.map +1 -1
- package/src/application_common_providers.metadata.json +1 -1
- package/src/application_ref.d.ts +17 -41
- package/src/application_ref.js +30 -21
- package/src/application_ref.js.map +1 -1
- package/src/application_ref.metadata.json +1 -1
- package/src/application_tokens.d.ts +6 -1
- package/src/application_tokens.js +9 -4
- package/src/application_tokens.js.map +1 -1
- package/src/application_tokens.metadata.json +1 -1
- package/src/change_detection/change_detection.d.ts +9 -8
- package/src/change_detection/change_detection.js +21 -21
- package/src/change_detection/change_detection.js.map +1 -1
- package/src/change_detection/change_detection.metadata.json +1 -1
- package/src/change_detection/change_detection_util.d.ts +3 -1
- package/src/change_detection/change_detection_util.js +6 -5
- package/src/change_detection/change_detection_util.js.map +1 -1
- package/src/change_detection/change_detection_util.metadata.json +1 -1
- package/src/change_detection/change_detector_ref.d.ts +3 -0
- package/src/change_detection/change_detector_ref.js +3 -0
- package/src/change_detection/change_detector_ref.js.map +1 -1
- package/src/change_detection/constants.d.ts +1 -0
- package/src/change_detection/constants.js +4 -3
- package/src/change_detection/constants.js.map +1 -1
- package/src/change_detection/constants.metadata.json +1 -1
- package/src/change_detection/differs/default_iterable_differ.d.ts +6 -94
- package/src/change_detection/differs/default_iterable_differ.js +25 -18
- package/src/change_detection/differs/default_iterable_differ.js.map +1 -1
- package/src/change_detection/differs/default_keyvalue_differ.d.ts +3 -30
- package/src/change_detection/differs/default_keyvalue_differ.js +13 -8
- package/src/change_detection/differs/default_keyvalue_differ.js.map +1 -1
- package/src/change_detection/differs/iterable_differs.d.ts +4 -1
- package/src/change_detection/differs/iterable_differs.js +4 -3
- package/src/change_detection/differs/iterable_differs.js.map +1 -1
- package/src/change_detection/differs/keyvalue_differs.d.ts +2 -1
- package/src/change_detection/differs/keyvalue_differs.js +4 -3
- package/src/change_detection/differs/keyvalue_differs.js.map +1 -1
- package/src/change_detection/pipe_transform.js.map +1 -1
- package/src/change_detection.d.ts +1 -1
- package/src/change_detection.js +9 -9
- package/src/change_detection.js.map +1 -1
- package/src/console.js +2 -1
- package/src/console.js.map +1 -1
- package/src/console.metadata.json +1 -1
- package/src/debug/debug_node.d.ts +20 -2
- package/src/debug/debug_node.js +16 -2
- package/src/debug/debug_node.js.map +1 -1
- package/src/debug/debug_node.metadata.json +1 -0
- package/src/debug/debug_renderer.d.ts +10 -6
- package/src/debug/debug_renderer.js +12 -1
- package/src/debug/debug_renderer.js.map +1 -1
- package/src/di/decorators.d.ts +13 -1
- package/src/di/decorators.js +7 -1
- package/src/di/decorators.js.map +1 -1
- package/src/di/decorators.metadata.json +1 -1
- package/src/di/forward_ref.d.ts +3 -1
- package/src/di/forward_ref.js +3 -1
- package/src/di/forward_ref.js.map +1 -1
- package/src/di/injector.d.ts +4 -1
- package/src/di/injector.js +5 -2
- package/src/di/injector.js.map +1 -1
- package/src/di/injector.metadata.json +1 -1
- package/src/di/metadata.d.ts +8 -1
- package/src/di/metadata.js +10 -3
- package/src/di/metadata.js.map +1 -1
- package/src/di/opaque_token.d.ts +2 -1
- package/src/di/opaque_token.js +22 -21
- package/src/di/opaque_token.js.map +1 -1
- package/src/di/provider.d.ts +11 -10
- package/src/di/provider.js +17 -14
- package/src/di/provider.js.map +1 -1
- package/src/di/provider.metadata.json +1 -0
- package/src/di/provider_util.js.map +1 -1
- package/src/di/provider_util.metadata.json +1 -0
- package/src/di/reflective_exceptions.d.ts +11 -16
- package/src/di/reflective_exceptions.js +28 -22
- package/src/di/reflective_exceptions.js.map +1 -1
- package/src/di/reflective_injector.d.ts +3 -33
- package/src/di/reflective_injector.js +9 -6
- package/src/di/reflective_injector.js.map +1 -1
- package/src/di/reflective_key.d.ts +1 -8
- package/src/di/reflective_key.js +3 -2
- package/src/di/reflective_key.js.map +1 -1
- package/src/di/reflective_provider.d.ts +2 -1
- package/src/di/reflective_provider.js +6 -5
- package/src/di/reflective_provider.js.map +1 -1
- package/src/di/reflective_provider.metadata.json +1 -0
- package/src/di.d.ts +2 -2
- package/src/di.js +7 -9
- package/src/di.js.map +1 -1
- package/src/facade/async.d.ts +11 -4
- package/src/facade/async.js +27 -17
- package/src/facade/async.js.map +1 -1
- package/src/facade/base_wrapped_exception.js +4 -4
- package/src/facade/base_wrapped_exception.js.map +1 -1
- package/src/facade/collection.js.map +1 -1
- package/src/facade/collection.metadata.json +1 -1
- package/src/facade/exception_handler.d.ts +2 -11
- package/src/facade/exception_handler.js +8 -7
- package/src/facade/exception_handler.js.map +1 -1
- package/src/facade/exceptions.d.ts +4 -0
- package/src/facade/exceptions.js +6 -2
- package/src/facade/exceptions.js.map +1 -1
- package/src/facade/exceptions.metadata.json +1 -0
- package/src/facade/lang.d.ts +6 -4
- package/src/facade/lang.js +12 -11
- package/src/facade/lang.js.map +1 -1
- package/src/facade/lang.metadata.json +1 -1
- package/src/facade/math.d.ts +2 -0
- package/src/facade/math.js +5 -0
- package/src/facade/math.js.map +1 -0
- package/src/facade/math.metadata.json +1 -0
- package/src/facade/promise.js.map +1 -1
- package/src/linker/component_factory.d.ts +5 -4
- package/src/linker/component_factory.js +7 -3
- package/src/linker/component_factory.js.map +1 -1
- package/src/linker/component_resolver.d.ts +5 -4
- package/src/linker/component_resolver.js +12 -7
- package/src/linker/component_resolver.js.map +1 -1
- package/src/linker/component_resolver.metadata.json +1 -1
- package/src/linker/debug_context.js +5 -4
- package/src/linker/debug_context.js.map +1 -1
- package/src/linker/dynamic_component_loader.d.ts +5 -6
- package/src/linker/dynamic_component_loader.js +5 -3
- package/src/linker/dynamic_component_loader.js.map +1 -1
- package/src/linker/dynamic_component_loader.metadata.json +1 -1
- package/src/linker/element.d.ts +3 -3
- package/src/linker/element.js +5 -5
- package/src/linker/element.js.map +1 -1
- package/src/linker/element_injector.js.map +1 -1
- package/src/linker/element_ref.d.ts +1 -0
- package/src/linker/element_ref.js +5 -5
- package/src/linker/element_ref.js.map +1 -1
- package/src/linker/exceptions.d.ts +4 -1
- package/src/linker/exceptions.js +4 -1
- package/src/linker/exceptions.js.map +1 -1
- package/src/linker/query_list.d.ts +3 -10
- package/src/linker/query_list.js +8 -7
- package/src/linker/query_list.js.map +1 -1
- package/src/linker/systemjs_component_resolver.d.ts +21 -0
- package/src/linker/systemjs_component_resolver.js +52 -0
- package/src/linker/systemjs_component_resolver.js.map +1 -0
- package/src/linker/template_ref.d.ts +2 -1
- package/src/linker/template_ref.js +1 -0
- package/src/linker/template_ref.js.map +1 -1
- package/src/linker/view.d.ts +12 -1
- package/src/linker/view.js +65 -15
- package/src/linker/view.js.map +1 -1
- package/src/linker/view_container_ref.d.ts +2 -10
- package/src/linker/view_container_ref.js +4 -3
- package/src/linker/view_container_ref.js.map +1 -1
- package/src/linker/view_ref.d.ts +5 -1
- package/src/linker/view_ref.js +6 -2
- package/src/linker/view_ref.js.map +1 -1
- package/src/linker/view_type.js.map +1 -1
- package/src/linker/view_utils.d.ts +2 -4
- package/src/linker/view_utils.js +21 -21
- package/src/linker/view_utils.js.map +1 -1
- package/src/linker/view_utils.metadata.json +1 -1
- package/src/linker.d.ts +5 -4
- package/src/linker.js +12 -9
- package/src/linker.js.map +1 -1
- package/src/metadata/di.d.ts +8 -1
- package/src/metadata/di.js +10 -3
- package/src/metadata/di.js.map +1 -1
- package/src/metadata/directives.d.ts +104 -20
- package/src/metadata/directives.js +25 -27
- package/src/metadata/directives.js.map +1 -1
- package/src/metadata/lifecycle_hooks.d.ts +46 -31
- package/src/metadata/lifecycle_hooks.js +496 -10
- package/src/metadata/lifecycle_hooks.js.map +1 -1
- package/src/metadata/lifecycle_hooks.metadata.json +1 -1
- package/src/metadata/view.d.ts +6 -2
- package/src/metadata/view.js +3 -1
- package/src/metadata/view.js.map +1 -1
- package/src/metadata/view.metadata.json +1 -1
- package/src/metadata.d.ts +49 -15
- package/src/metadata.js +70 -37
- package/src/metadata.js.map +1 -1
- package/src/metadata.metadata.json +1 -1
- package/src/platform_common_providers.d.ts +1 -0
- package/src/platform_common_providers.js +3 -3
- package/src/platform_common_providers.js.map +1 -1
- package/src/platform_common_providers.metadata.json +1 -1
- package/src/platform_directives_and_pipes.d.ts +48 -45
- package/src/platform_directives_and_pipes.js +50 -47
- package/src/platform_directives_and_pipes.js.map +1 -1
- package/src/platform_directives_and_pipes.metadata.json +1 -1
- package/src/profile/profile.d.ts +5 -1
- package/src/profile/profile.js +5 -3
- package/src/profile/profile.js.map +1 -1
- package/src/profile/profile.metadata.json +1 -1
- package/src/profile/wtf_impl.js +1 -1
- package/src/profile/wtf_impl.js.map +1 -1
- package/src/profile/wtf_impl.metadata.json +1 -0
- package/src/profile/wtf_init.js +2 -2
- package/src/profile/wtf_init.js.map +1 -1
- package/src/reflection/platform_reflection_capabilities.d.ts +4 -3
- package/src/reflection/platform_reflection_capabilities.js.map +1 -1
- package/src/reflection/reflection.d.ts +1 -1
- package/src/reflection/reflection.js +2 -2
- package/src/reflection/reflection.js.map +1 -1
- package/src/reflection/reflection.metadata.json +1 -1
- package/src/reflection/reflection_capabilities.d.ts +4 -5
- package/src/reflection/reflection_capabilities.js +24 -10
- package/src/reflection/reflection_capabilities.js.map +1 -1
- package/src/reflection/reflector.d.ts +8 -20
- package/src/reflection/reflector.js +13 -3
- package/src/reflection/reflector.js.map +1 -1
- package/src/reflection/reflector_reader.js +3 -3
- package/src/reflection/reflector_reader.js.map +1 -1
- package/src/reflection/types.js.map +1 -1
- package/src/render/api.d.ts +17 -6
- package/src/render/api.js +8 -1
- package/src/render/api.js.map +1 -1
- package/src/render.d.ts +1 -1
- package/src/render.js +2 -2
- package/src/render.js.map +1 -1
- package/src/security.js +6 -6
- package/src/security.js.map +1 -1
- package/src/testability/testability.d.ts +3 -19
- package/src/testability/testability.js +10 -5
- package/src/testability/testability.js.map +1 -1
- package/src/testability/testability.metadata.json +1 -1
- package/src/util/decorators.d.ts +2 -1
- package/src/util/decorators.js +10 -9
- package/src/util/decorators.js.map +1 -1
- package/src/util.js.map +1 -1
- package/src/zone/ng_zone.d.ts +6 -17
- package/src/zone/ng_zone.js +11 -6
- package/src/zone/ng_zone.js.map +1 -1
- package/src/zone/ng_zone_impl.d.ts +1 -4
- package/src/zone/ng_zone_impl.js +3 -2
- package/src/zone/ng_zone_impl.js.map +1 -1
- package/src/zone.js.map +1 -1
- package/testing/async.js +20 -22
- package/testing/async.js.map +1 -1
- package/testing/async.metadata.json +1 -0
- package/testing/async_test_completer.js.map +1 -1
- package/testing/fake_async.d.ts +4 -1
- package/testing/fake_async.js +10 -2
- package/testing/fake_async.js.map +1 -1
- package/testing/lang_utils.js +1 -1
- package/testing/lang_utils.js.map +1 -1
- package/testing/lang_utils.metadata.json +1 -0
- package/testing/logger.js +5 -3
- package/testing/logger.js.map +1 -1
- package/testing/logger.metadata.json +1 -1
- package/testing/mock_application_ref.d.ts +1 -1
- package/testing/mock_application_ref.js +1 -0
- package/testing/mock_application_ref.js.map +1 -1
- package/testing/mock_application_ref.metadata.json +1 -1
- package/testing/ng_zone_mock.d.ts +0 -1
- package/testing/ng_zone_mock.js +2 -1
- package/testing/ng_zone_mock.js.map +1 -1
- package/testing/ng_zone_mock.metadata.json +1 -1
- package/testing/regexp.js +1 -1
- package/testing/regexp.js.map +1 -1
- package/testing/regexp.metadata.json +1 -0
- package/testing/test_injector.d.ts +6 -12
- package/testing/test_injector.js +3 -9
- package/testing/test_injector.js.map +1 -1
- package/testing/test_injector.metadata.json +1 -0
- package/testing/testing.d.ts +2 -2
- package/testing/testing.js +5 -5
- package/testing/testing.js.map +1 -1
- package/testing/testing.metadata.json +1 -1
- package/testing.js.map +1 -1
|
@@ -0,0 +1,511 @@
|
|
|
1
|
+
export declare const AUTO_STYLE: string;
|
|
2
|
+
/**
|
|
3
|
+
* Metadata representing the entry of animations.
|
|
4
|
+
* Instances of this class are provided via the animation DSL when the {@link trigger trigger
|
|
5
|
+
* animation function} is called.
|
|
6
|
+
*/
|
|
7
|
+
export declare class AnimationEntryMetadata {
|
|
8
|
+
name: string;
|
|
9
|
+
definitions: AnimationStateMetadata[];
|
|
10
|
+
constructor(name: string, definitions: AnimationStateMetadata[]);
|
|
11
|
+
}
|
|
12
|
+
export declare abstract class AnimationStateMetadata {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Metadata representing the entry of animations.
|
|
16
|
+
* Instances of this class are provided via the animation DSL when the {@link state state animation
|
|
17
|
+
* function} is called.
|
|
18
|
+
*/
|
|
19
|
+
export declare class AnimationStateDeclarationMetadata extends AnimationStateMetadata {
|
|
20
|
+
stateNameExpr: string;
|
|
21
|
+
styles: AnimationStyleMetadata;
|
|
22
|
+
constructor(stateNameExpr: string, styles: AnimationStyleMetadata);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Metadata representing the entry of animations.
|
|
26
|
+
* Instances of this class are provided via the animation DSL when the
|
|
27
|
+
* {@link transition transition animation function} is called.
|
|
28
|
+
*/
|
|
29
|
+
export declare class AnimationStateTransitionMetadata extends AnimationStateMetadata {
|
|
30
|
+
stateChangeExpr: string;
|
|
31
|
+
steps: AnimationMetadata;
|
|
32
|
+
constructor(stateChangeExpr: string, steps: AnimationMetadata);
|
|
33
|
+
}
|
|
34
|
+
export declare abstract class AnimationMetadata {
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Metadata representing the entry of animations.
|
|
38
|
+
* Instances of this class are provided via the animation DSL when the {@link keyframes keyframes
|
|
39
|
+
* animation function} is called.
|
|
40
|
+
*/
|
|
41
|
+
export declare class AnimationKeyframesSequenceMetadata extends AnimationMetadata {
|
|
42
|
+
steps: AnimationStyleMetadata[];
|
|
43
|
+
constructor(steps: AnimationStyleMetadata[]);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Metadata representing the entry of animations.
|
|
47
|
+
* Instances of this class are provided via the animation DSL when the {@link style style animation
|
|
48
|
+
* function} is called.
|
|
49
|
+
*/
|
|
50
|
+
export declare class AnimationStyleMetadata extends AnimationMetadata {
|
|
51
|
+
styles: Array<string | {
|
|
52
|
+
[key: string]: string | number;
|
|
53
|
+
}>;
|
|
54
|
+
offset: number;
|
|
55
|
+
constructor(styles: Array<string | {
|
|
56
|
+
[key: string]: string | number;
|
|
57
|
+
}>, offset?: number);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Metadata representing the entry of animations.
|
|
61
|
+
* Instances of this class are provided via the animation DSL when the {@link animate animate
|
|
62
|
+
* animation function} is called.
|
|
63
|
+
*/
|
|
64
|
+
export declare class AnimationAnimateMetadata extends AnimationMetadata {
|
|
65
|
+
timings: string | number;
|
|
66
|
+
styles: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata;
|
|
67
|
+
constructor(timings: string | number, styles: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata);
|
|
68
|
+
}
|
|
69
|
+
export declare abstract class AnimationWithStepsMetadata extends AnimationMetadata {
|
|
70
|
+
constructor();
|
|
71
|
+
steps: AnimationMetadata[];
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Metadata representing the entry of animations.
|
|
75
|
+
* Instances of this class are provided via the animation DSL when the {@link sequence sequence
|
|
76
|
+
* animation function} is called.
|
|
77
|
+
*/
|
|
78
|
+
export declare class AnimationSequenceMetadata extends AnimationWithStepsMetadata {
|
|
79
|
+
private _steps;
|
|
80
|
+
constructor(_steps: AnimationMetadata[]);
|
|
81
|
+
steps: AnimationMetadata[];
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Metadata representing the entry of animations.
|
|
85
|
+
* Instances of this class are provided via the animation DSL when the {@link group group animation
|
|
86
|
+
* function} is called.
|
|
87
|
+
*/
|
|
88
|
+
export declare class AnimationGroupMetadata extends AnimationWithStepsMetadata {
|
|
89
|
+
private _steps;
|
|
90
|
+
constructor(_steps: AnimationMetadata[]);
|
|
91
|
+
steps: AnimationMetadata[];
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* `animate` is an animation-specific function that is designed to be used inside of Angular2's
|
|
95
|
+
* animation
|
|
96
|
+
* DSL language. If this information is new, please navigate to the
|
|
97
|
+
* {@link ComponentMetadata#animations-anchor component animations metadata
|
|
98
|
+
* page} to gain a better understanding of how animations in Angular2 are used.
|
|
99
|
+
*
|
|
100
|
+
* `animate` specifies an animation step that will apply the provided `styles` data for a given
|
|
101
|
+
* amount of
|
|
102
|
+
* time based on the provided `timing` expression value. Calls to `animate` are expected to be
|
|
103
|
+
* used within {@link sequence an animation sequence}, {@link group group}, or {@link transition
|
|
104
|
+
* transition}.
|
|
105
|
+
*
|
|
106
|
+
* ### Usage
|
|
107
|
+
*
|
|
108
|
+
* The `animate` function accepts two input parameters: `timing` and `styles`:
|
|
109
|
+
*
|
|
110
|
+
* - `timing` is a string based value that can be a combination of a duration with optional
|
|
111
|
+
* delay and easing values. The format for the expression breaks down to `duration delay easing`
|
|
112
|
+
* (therefore a value such as `1s 100ms ease-out` will be parse itself into `duration=1000,
|
|
113
|
+
* delay=100, easing=ease-out`.
|
|
114
|
+
* If a numeric value is provided then that will be used as the `duration` value in millisecond
|
|
115
|
+
* form.
|
|
116
|
+
* - `styles` is the style input data which can either be a call to {@link style style} or {@link
|
|
117
|
+
* keyframes keyframes}.
|
|
118
|
+
* If left empty then the styles from the destination state will be collected and used (this is
|
|
119
|
+
* useful when
|
|
120
|
+
* describing an animation step that will complete an animation by {@link
|
|
121
|
+
* transition#the-final-animate-call animating to the final state}).
|
|
122
|
+
*
|
|
123
|
+
* ```typescript
|
|
124
|
+
* // various functions for specifying timing data
|
|
125
|
+
* animate(500, style(...))
|
|
126
|
+
* animate("1s", style(...))
|
|
127
|
+
* animate("100ms 0.5s", style(...))
|
|
128
|
+
* animate("5s ease", style(...))
|
|
129
|
+
* animate("5s 10ms cubic-bezier(.17,.67,.88,.1)", style(...))
|
|
130
|
+
*
|
|
131
|
+
* // either style() of keyframes() can be used
|
|
132
|
+
* animate(500, style({ background: "red" }))
|
|
133
|
+
* animate(500, keyframes([
|
|
134
|
+
* style({ background: "blue" })),
|
|
135
|
+
* style({ background: "red" }))
|
|
136
|
+
* ])
|
|
137
|
+
* ```
|
|
138
|
+
*
|
|
139
|
+
* ### Example ([live demo](http://plnkr.co/edit/Kez8XGWBxWue7qP7nNvF?p=preview))
|
|
140
|
+
*
|
|
141
|
+
* {@example core/animation/ts/dsl/animation_example.ts region='Component'}
|
|
142
|
+
*/
|
|
143
|
+
export declare function animate(timing: string | number, styles?: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata): AnimationAnimateMetadata;
|
|
144
|
+
/**
|
|
145
|
+
* `group` is an animation-specific function that is designed to be used inside of Angular2's
|
|
146
|
+
* animation
|
|
147
|
+
* DSL language. If this information is new, please navigate to the
|
|
148
|
+
* {@link ComponentMetadata#animations-anchor component animations metadata
|
|
149
|
+
* page} to gain a better understanding of how animations in Angular2 are used.
|
|
150
|
+
*
|
|
151
|
+
* `group` specifies a list of animation steps that are all run in parallel. Grouped animations
|
|
152
|
+
* are useful when a series of styles must be animated/closed off
|
|
153
|
+
* at different statrting/ending times.
|
|
154
|
+
*
|
|
155
|
+
* The `group` function can either be used within a {@link sequence sequence} or a {@link transition
|
|
156
|
+
* transition}
|
|
157
|
+
* and it will only continue to the next instruction once all of the inner animation steps
|
|
158
|
+
* have completed.
|
|
159
|
+
*
|
|
160
|
+
* ### Usage
|
|
161
|
+
*
|
|
162
|
+
* The `steps` data that is passed into the `group` animation function can either consist
|
|
163
|
+
* of {@link style style} or {@link animate animate} function calls. Each call to `style()` or
|
|
164
|
+
* `animate()`
|
|
165
|
+
* within a group will be executed instantly (use {@link keyframes keyframes} or a
|
|
166
|
+
* {@link animate#usage animate() with a delay value} to offset styles to be applied at a later
|
|
167
|
+
* time).
|
|
168
|
+
*
|
|
169
|
+
* ```typescript
|
|
170
|
+
* group([
|
|
171
|
+
* animate("1s", { background: "black" }))
|
|
172
|
+
* animate("2s", { color: "white" }))
|
|
173
|
+
* ])
|
|
174
|
+
* ```
|
|
175
|
+
*
|
|
176
|
+
* ### Example ([live demo](http://plnkr.co/edit/Kez8XGWBxWue7qP7nNvF?p=preview))
|
|
177
|
+
*
|
|
178
|
+
* {@example core/animation/ts/dsl/animation_example.ts region='Component'}
|
|
179
|
+
*/
|
|
180
|
+
export declare function group(steps: AnimationMetadata[]): AnimationGroupMetadata;
|
|
181
|
+
/**
|
|
182
|
+
* `sequence` is an animation-specific function that is designed to be used inside of Angular2's
|
|
183
|
+
* animation
|
|
184
|
+
* DSL language. If this information is new, please navigate to the
|
|
185
|
+
* {@link ComponentMetadata#animations-anchor component animations metadata
|
|
186
|
+
* page} to gain a better understanding of how animations in Angular2 are used.
|
|
187
|
+
*
|
|
188
|
+
* `sequence` Specifies a list of animation steps that are run one by one. (`sequence` is used
|
|
189
|
+
* by default when an array is passed as animation data into {@link transition transition}.)
|
|
190
|
+
*
|
|
191
|
+
* The `sequence` function can either be used within a {@link group group} or a {@link transition
|
|
192
|
+
* transition}
|
|
193
|
+
* and it will only continue to the next instruction once each of the inner animation steps
|
|
194
|
+
* have completed.
|
|
195
|
+
*
|
|
196
|
+
* To perform animation styling in parallel with other animation steps then
|
|
197
|
+
* have a look at the {@link group group} animation function.
|
|
198
|
+
*
|
|
199
|
+
* ### Usage
|
|
200
|
+
*
|
|
201
|
+
* The `steps` data that is passed into the `sequence` animation function can either consist
|
|
202
|
+
* of {@link style style} or {@link animate animate} function calls. A call to `style()` will apply
|
|
203
|
+
* the
|
|
204
|
+
* provided styling data immediately while a call to `animate()` will apply its styling
|
|
205
|
+
* data over a given time depending on its timing data.
|
|
206
|
+
*
|
|
207
|
+
* ```typescript
|
|
208
|
+
* sequence([
|
|
209
|
+
* style({ opacity: 0 })),
|
|
210
|
+
* animate("1s", { opacity: 1 }))
|
|
211
|
+
* ])
|
|
212
|
+
* ```
|
|
213
|
+
*
|
|
214
|
+
* ### Example ([live demo](http://plnkr.co/edit/Kez8XGWBxWue7qP7nNvF?p=preview))
|
|
215
|
+
*
|
|
216
|
+
* {@example core/animation/ts/dsl/animation_example.ts region='Component'}
|
|
217
|
+
*/
|
|
218
|
+
export declare function sequence(steps: AnimationMetadata[]): AnimationSequenceMetadata;
|
|
219
|
+
/**
|
|
220
|
+
* `style` is an animation-specific function that is designed to be used inside of Angular2's
|
|
221
|
+
* animation
|
|
222
|
+
* DSL language. If this information is new, please navigate to the
|
|
223
|
+
* {@link ComponentMetadata#animations-anchor component animations metadata
|
|
224
|
+
* page} to gain a better understanding of how animations in Angular2 are used.
|
|
225
|
+
*
|
|
226
|
+
* `style` declares a key/value object containing CSS properties/styles that can then
|
|
227
|
+
* be used for {@link state animation states}, within an {@link sequence animation sequence}, or as
|
|
228
|
+
* styling data for both {@link animate animate} and {@link keyframes keyframes}.
|
|
229
|
+
*
|
|
230
|
+
* ### Usage
|
|
231
|
+
*
|
|
232
|
+
* `style` takes in a key/value string map as data and expects one or more CSS property/value
|
|
233
|
+
* pairs to be defined.
|
|
234
|
+
*
|
|
235
|
+
* ```typescript
|
|
236
|
+
* // string values are used for css properties
|
|
237
|
+
* style({ background: "red", color: "blue" })
|
|
238
|
+
*
|
|
239
|
+
* // numerical (pixel) values are also supported
|
|
240
|
+
* style({ width: 100, height: 0 })
|
|
241
|
+
* ```
|
|
242
|
+
*
|
|
243
|
+
* #### Auto-styles (using `*`)
|
|
244
|
+
*
|
|
245
|
+
* When an asterix (`*`) character is used as a value then it will be detected from the element
|
|
246
|
+
* being animated
|
|
247
|
+
* and applied as animation data when the animation starts.
|
|
248
|
+
*
|
|
249
|
+
* This feature proves useful for a state depending on layout and/or environment factors; in such
|
|
250
|
+
* cases
|
|
251
|
+
* the styles are calculated just before the animation starts.
|
|
252
|
+
*
|
|
253
|
+
* ```typescript
|
|
254
|
+
* // the steps below will animate from 0 to the
|
|
255
|
+
* // actual height of the element
|
|
256
|
+
* style({ height: 0 }),
|
|
257
|
+
* animate("1s", style({ height: "*" }))
|
|
258
|
+
* ```
|
|
259
|
+
*
|
|
260
|
+
* ### Example ([live demo](http://plnkr.co/edit/Kez8XGWBxWue7qP7nNvF?p=preview))
|
|
261
|
+
*
|
|
262
|
+
* {@example core/animation/ts/dsl/animation_example.ts region='Component'}
|
|
263
|
+
*/
|
|
264
|
+
export declare function style(tokens: string | {
|
|
265
|
+
[key: string]: string | number;
|
|
266
|
+
} | Array<string | {
|
|
267
|
+
[key: string]: string | number;
|
|
268
|
+
}>): AnimationStyleMetadata;
|
|
269
|
+
/**
|
|
270
|
+
* `state` is an animation-specific function that is designed to be used inside of Angular2's
|
|
271
|
+
* animation
|
|
272
|
+
* DSL language. If this information is new, please navigate to the
|
|
273
|
+
* {@link ComponentMetadata#animations-anchor component animations metadata
|
|
274
|
+
* page} to gain a better understanding of how animations in Angular2 are used.
|
|
275
|
+
*
|
|
276
|
+
* `state` declares an animation state within the given trigger. When a state is
|
|
277
|
+
* active within a component then its associated styles will persist on
|
|
278
|
+
* the element that the trigger is attached to (even when the animation ends).
|
|
279
|
+
*
|
|
280
|
+
* To animate between states, have a look at the animation {@link transition transition}
|
|
281
|
+
* DSL function. To register states to an animation trigger please have a look
|
|
282
|
+
* at the {@link trigger trigger} function.
|
|
283
|
+
*
|
|
284
|
+
* #### The `void` state
|
|
285
|
+
*
|
|
286
|
+
* The `void` state value is a reserved word that angular uses to determine when the element is not
|
|
287
|
+
* apart
|
|
288
|
+
* of the application anymore (e.g. when an `ngIf` evaluates to false then the state of the
|
|
289
|
+
* associated element
|
|
290
|
+
* is void).
|
|
291
|
+
*
|
|
292
|
+
* #### The `*` (default) state
|
|
293
|
+
*
|
|
294
|
+
* The `*` state (when styled) is a fallback state that will be used if
|
|
295
|
+
* the state that is being animated is not declared within the trigger.
|
|
296
|
+
*
|
|
297
|
+
* ### Usage
|
|
298
|
+
*
|
|
299
|
+
* `state` will declare an animation state with its associated styles
|
|
300
|
+
* within the given trigger.
|
|
301
|
+
*
|
|
302
|
+
* - `stateNameExpr` can be one or more state names separated by commas.
|
|
303
|
+
* - `styles` refers to the {@link style styling data} that will be persisted on the element once
|
|
304
|
+
* the state
|
|
305
|
+
* has been reached.
|
|
306
|
+
*
|
|
307
|
+
* ```typescript
|
|
308
|
+
* // "void" is a reserved name for a state and is used to represent
|
|
309
|
+
* // the state in which an element is detached from from the application.
|
|
310
|
+
* state("void", style({ height: 0 }))
|
|
311
|
+
*
|
|
312
|
+
* // user-defined states
|
|
313
|
+
* state("closed", style({ height: 0 }))
|
|
314
|
+
* state("open, visible", style({ height: "*" }))
|
|
315
|
+
* ```
|
|
316
|
+
*
|
|
317
|
+
* ### Example ([live demo](http://plnkr.co/edit/Kez8XGWBxWue7qP7nNvF?p=preview))
|
|
318
|
+
*
|
|
319
|
+
* {@example core/animation/ts/dsl/animation_example.ts region='Component'}
|
|
320
|
+
*/
|
|
321
|
+
export declare function state(stateNameExpr: string, styles: AnimationStyleMetadata): AnimationStateDeclarationMetadata;
|
|
322
|
+
/**
|
|
323
|
+
* `keyframes` is an animation-specific function that is designed to be used inside of Angular2's
|
|
324
|
+
* animation
|
|
325
|
+
* DSL language. If this information is new, please navigate to the
|
|
326
|
+
* {@link ComponentMetadata#animations-anchor component animations metadata
|
|
327
|
+
* page} to gain a better understanding of how animations in Angular2 are used.
|
|
328
|
+
*
|
|
329
|
+
* `keyframes` specifies a collection of {@link style style} entries each optionally characterized
|
|
330
|
+
* by an `offset` value.
|
|
331
|
+
*
|
|
332
|
+
* ### Usage
|
|
333
|
+
*
|
|
334
|
+
* The `keyframes` animation function is designed to be used alongside the {@link animate animate}
|
|
335
|
+
* animation function. Instead of applying animations from where they are
|
|
336
|
+
* currently to their destination, keyframes can describe how each style entry is applied
|
|
337
|
+
* and at what point within the animation arc (much like CSS Keyframe Animations do).
|
|
338
|
+
*
|
|
339
|
+
* For each `style()` entry an `offset` value can be set. Doing so allows to specifiy at
|
|
340
|
+
* what percentage of the animate time the styles will be applied.
|
|
341
|
+
*
|
|
342
|
+
* ```typescript
|
|
343
|
+
* // the provided offset values describe when each backgroundColor value is applied.
|
|
344
|
+
* animate("5s", keyframes([
|
|
345
|
+
* style({ backgroundColor: "red", offset: 0 }),
|
|
346
|
+
* style({ backgroundColor: "blue", offset: 0.2 }),
|
|
347
|
+
* style({ backgroundColor: "orange", offset: 0.3 }),
|
|
348
|
+
* style({ backgroundColor: "black", offset: 1 })
|
|
349
|
+
* ]))
|
|
350
|
+
* ```
|
|
351
|
+
*
|
|
352
|
+
* Alternatively, if there are no `offset` values used within the style entries then the offsets
|
|
353
|
+
* will
|
|
354
|
+
* be calculated automatically.
|
|
355
|
+
*
|
|
356
|
+
* ```typescript
|
|
357
|
+
* animate("5s", keyframes([
|
|
358
|
+
* style({ backgroundColor: "red" }) // offset = 0
|
|
359
|
+
* style({ backgroundColor: "blue" }) // offset = 0.33
|
|
360
|
+
* style({ backgroundColor: "orange" }) // offset = 0.66
|
|
361
|
+
* style({ backgroundColor: "black" }) // offset = 1
|
|
362
|
+
* ]))
|
|
363
|
+
* ```
|
|
364
|
+
*
|
|
365
|
+
* ### Example ([live demo](http://plnkr.co/edit/Kez8XGWBxWue7qP7nNvF?p=preview))
|
|
366
|
+
*
|
|
367
|
+
* {@example core/animation/ts/dsl/animation_example.ts region='Component'}
|
|
368
|
+
*/
|
|
369
|
+
export declare function keyframes(steps: AnimationStyleMetadata[]): AnimationKeyframesSequenceMetadata;
|
|
370
|
+
/**
|
|
371
|
+
* `transition` is an animation-specific function that is designed to be used inside of Angular2's
|
|
372
|
+
* animation
|
|
373
|
+
* DSL language. If this information is new, please navigate to the
|
|
374
|
+
* {@link ComponentMetadata#animations-anchor component animations metadata
|
|
375
|
+
* page} to gain a better understanding of how animations in Angular2 are used.
|
|
376
|
+
*
|
|
377
|
+
* `transition` declares the {@link sequence sequence of animation steps} that will be run when the
|
|
378
|
+
* provided
|
|
379
|
+
* `stateChangeExpr` value is satisfied. The `stateChangeExpr` consists of a `state1 => state2`
|
|
380
|
+
* which consists
|
|
381
|
+
* of two known states (use an asterix (`*`) to refer to a dynamic starting and/or ending state).
|
|
382
|
+
*
|
|
383
|
+
* Animation transitions are placed within an {@link trigger animation trigger}. For an transition
|
|
384
|
+
* to animate to
|
|
385
|
+
* a state value and persist its styles then one or more {@link state animation states} is expected
|
|
386
|
+
* to be defined.
|
|
387
|
+
*
|
|
388
|
+
* ### Usage
|
|
389
|
+
*
|
|
390
|
+
* An animation transition is kicked off the `stateChangeExpr` predicate evaluates to true based on
|
|
391
|
+
* what the
|
|
392
|
+
* previous state is and what the current state has become. In other words, if a transition is
|
|
393
|
+
* defined that
|
|
394
|
+
* matches the old/current state criteria then the associated animation will be triggered.
|
|
395
|
+
*
|
|
396
|
+
* ```typescript
|
|
397
|
+
* // all transition/state changes are defined within an animation trigger
|
|
398
|
+
* trigger("myAnimationTrigger", [
|
|
399
|
+
* // if a state is defined then its styles will be persisted when the
|
|
400
|
+
* // animation has fully completed itself
|
|
401
|
+
* state("on", style({ background: "green" })),
|
|
402
|
+
* state("off", style({ background: "grey" })),
|
|
403
|
+
*
|
|
404
|
+
* // a transition animation that will be kicked off when the state value
|
|
405
|
+
* // bound to "myAnimationTrigger" changes from "on" to "off"
|
|
406
|
+
* transition("on => off", animate(500)),
|
|
407
|
+
*
|
|
408
|
+
* // it is also possible to do run the same animation for both directions
|
|
409
|
+
* transition("on <=> off", animate(500)),
|
|
410
|
+
*
|
|
411
|
+
* // or to define multiple states pairs separated by commas
|
|
412
|
+
* transition("on => off, off => void", animate(500)),
|
|
413
|
+
*
|
|
414
|
+
* // this is a catch-all state change for when an element is inserted into
|
|
415
|
+
* // the page and the destination state is unknown
|
|
416
|
+
* transition("void => *", [
|
|
417
|
+
* style({ opacity: 0 }),
|
|
418
|
+
* animate(500)
|
|
419
|
+
* ]),
|
|
420
|
+
*
|
|
421
|
+
* // this will capture a state change between any states
|
|
422
|
+
* transition("* => *", animate("1s 0s")),
|
|
423
|
+
* ])
|
|
424
|
+
* ```
|
|
425
|
+
*
|
|
426
|
+
* The template associated with this component will make use of the `myAnimationTrigger`
|
|
427
|
+
* animation trigger by binding to an element within its template code.
|
|
428
|
+
*
|
|
429
|
+
* ```html
|
|
430
|
+
* <!-- somewhere inside of my-component-tpl.html -->
|
|
431
|
+
* <div @myAnimationTrigger="myStatusExp">...</div>
|
|
432
|
+
* ```
|
|
433
|
+
*
|
|
434
|
+
* #### The final `animate` call
|
|
435
|
+
*
|
|
436
|
+
* If the final step within the transition steps is a call to `animate()` that **only**
|
|
437
|
+
* uses a timing value with **no style data** then it will be automatically used as the final
|
|
438
|
+
* animation
|
|
439
|
+
* arc for the element to animate itself to the final state. This involves an automatic mix of
|
|
440
|
+
* adding/removing CSS styles so that the element will be in the exact state it should be for the
|
|
441
|
+
* applied state to be presented correctly.
|
|
442
|
+
*
|
|
443
|
+
* ```
|
|
444
|
+
* // start off by hiding the element, but make sure that it animates properly to whatever state
|
|
445
|
+
* // is currently active for "myAnimationTrigger"
|
|
446
|
+
* transition("void => *", [
|
|
447
|
+
* style({ opacity: 0 }),
|
|
448
|
+
* animate(500)
|
|
449
|
+
* ])
|
|
450
|
+
* ```
|
|
451
|
+
*
|
|
452
|
+
* ### Example ([live demo](http://plnkr.co/edit/Kez8XGWBxWue7qP7nNvF?p=preview))
|
|
453
|
+
*
|
|
454
|
+
* {@example core/animation/ts/dsl/animation_example.ts region='Component'}
|
|
455
|
+
*/
|
|
456
|
+
export declare function transition(stateChangeExpr: string, steps: AnimationMetadata | AnimationMetadata[]): AnimationStateTransitionMetadata;
|
|
457
|
+
/**
|
|
458
|
+
* `trigger` is an animation-specific function that is designed to be used inside of Angular2's
|
|
459
|
+
* animation
|
|
460
|
+
* DSL language. If this information is new, please navigate to the
|
|
461
|
+
* {@link ComponentMetadata#animations-anchor component animations metadata
|
|
462
|
+
* page} to gain a better understanding of how animations in Angular2 are used.
|
|
463
|
+
*
|
|
464
|
+
* `trigger` Creates an animation trigger which will a list of {@link state state} and {@link
|
|
465
|
+
* transition transition}
|
|
466
|
+
* entries that will be evaluated when the expression bound to the trigger changes.
|
|
467
|
+
*
|
|
468
|
+
* Triggers are registered within the component annotation data under the
|
|
469
|
+
* {@link ComponentMetadata#animations-anchor animations section}. An animation trigger can
|
|
470
|
+
* be placed on an element within a template by referencing the name of the
|
|
471
|
+
* trigger followed by the expression value that the trigger is bound to
|
|
472
|
+
* (in the form of `@triggerName="expression"`.
|
|
473
|
+
*
|
|
474
|
+
* ### Usage
|
|
475
|
+
*
|
|
476
|
+
* `trigger` will create an animation trigger reference based on the provided `name` value.
|
|
477
|
+
* The provided `animation` value is expected to be an array consisting of {@link state state} and
|
|
478
|
+
* {@link transition transition}
|
|
479
|
+
* declarations.
|
|
480
|
+
*
|
|
481
|
+
* ```typescript
|
|
482
|
+
* @Component({
|
|
483
|
+
* selector: 'my-component',
|
|
484
|
+
* templateUrl: 'my-component-tpl.html',
|
|
485
|
+
* animations: [
|
|
486
|
+
* trigger("myAnimationTrigger", [
|
|
487
|
+
* state(...),
|
|
488
|
+
* state(...),
|
|
489
|
+
* transition(...),
|
|
490
|
+
* transition(...)
|
|
491
|
+
* ])
|
|
492
|
+
* ]
|
|
493
|
+
* })
|
|
494
|
+
* class MyComponent {
|
|
495
|
+
* myStatusExp = "something";
|
|
496
|
+
* }
|
|
497
|
+
* ```
|
|
498
|
+
*
|
|
499
|
+
* The template associated with this component will make use of the `myAnimationTrigger`
|
|
500
|
+
* animation trigger by binding to an element within its template code.
|
|
501
|
+
*
|
|
502
|
+
* ```html
|
|
503
|
+
* <!-- somewhere inside of my-component-tpl.html -->
|
|
504
|
+
* <div @myAnimationTrigger="myStatusExp">...</div>
|
|
505
|
+
* ```
|
|
506
|
+
*
|
|
507
|
+
* ### Example ([live demo](http://plnkr.co/edit/Kez8XGWBxWue7qP7nNvF?p=preview))
|
|
508
|
+
*
|
|
509
|
+
* {@example core/animation/ts/dsl/animation_example.ts region='Component'}
|
|
510
|
+
*/
|
|
511
|
+
export declare function trigger(name: string, animation: AnimationMetadata[]): AnimationEntryMetadata;
|