@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
package/esm/src/metadata/di.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Type } from '../../src/facade/lang';
|
|
2
1
|
import { DependencyMetadata } from '../di/metadata';
|
|
2
|
+
import { Type } from '../facade/lang';
|
|
3
3
|
/**
|
|
4
4
|
* Specifies that a constant attribute value should be injected.
|
|
5
5
|
*
|
|
@@ -17,6 +17,7 @@ import { DependencyMetadata } from '../di/metadata';
|
|
|
17
17
|
*
|
|
18
18
|
* {@example core/ts/metadata/metadata.ts region='attributeMetadata'}
|
|
19
19
|
* @ts2dart_const
|
|
20
|
+
* @stable
|
|
20
21
|
*/
|
|
21
22
|
export declare class AttributeMetadata extends DependencyMetadata {
|
|
22
23
|
attributeName: string;
|
|
@@ -131,6 +132,7 @@ export declare class AttributeMetadata extends DependencyMetadata {
|
|
|
131
132
|
* The injected object is an unmodifiable live list.
|
|
132
133
|
* See {@link QueryList} for more details.
|
|
133
134
|
* @ts2dart_const
|
|
135
|
+
* @deprecated
|
|
134
136
|
*/
|
|
135
137
|
export declare class QueryMetadata extends DependencyMetadata {
|
|
136
138
|
private _selector;
|
|
@@ -188,6 +190,7 @@ export declare class QueryMetadata extends DependencyMetadata {
|
|
|
188
190
|
* }
|
|
189
191
|
* ```
|
|
190
192
|
* @ts2dart_const
|
|
193
|
+
* @stable
|
|
191
194
|
*/
|
|
192
195
|
export declare class ContentChildrenMetadata extends QueryMetadata {
|
|
193
196
|
constructor(_selector: Type | string, {descendants, read}?: {
|
|
@@ -215,6 +218,7 @@ export declare class ContentChildrenMetadata extends QueryMetadata {
|
|
|
215
218
|
* }
|
|
216
219
|
* ```
|
|
217
220
|
* @ts2dart_const
|
|
221
|
+
* @stable
|
|
218
222
|
*/
|
|
219
223
|
export declare class ContentChildMetadata extends QueryMetadata {
|
|
220
224
|
constructor(_selector: Type | string, {read}?: {
|
|
@@ -256,6 +260,7 @@ export declare class ContentChildMetadata extends QueryMetadata {
|
|
|
256
260
|
* The injected object is an iterable and observable live list.
|
|
257
261
|
* See {@link QueryList} for more details.
|
|
258
262
|
* @ts2dart_const
|
|
263
|
+
* @deprecated
|
|
259
264
|
*/
|
|
260
265
|
export declare class ViewQueryMetadata extends QueryMetadata {
|
|
261
266
|
constructor(_selector: Type | string, {descendants, first, read}?: {
|
|
@@ -346,6 +351,7 @@ export declare class ViewQueryMetadata extends QueryMetadata {
|
|
|
346
351
|
* }
|
|
347
352
|
* ```
|
|
348
353
|
* @ts2dart_const
|
|
354
|
+
* @stable
|
|
349
355
|
*/
|
|
350
356
|
export declare class ViewChildrenMetadata extends ViewQueryMetadata {
|
|
351
357
|
constructor(_selector: Type | string, {read}?: {
|
|
@@ -422,6 +428,7 @@ export declare class ViewChildrenMetadata extends ViewQueryMetadata {
|
|
|
422
428
|
* }
|
|
423
429
|
* ```
|
|
424
430
|
* @ts2dart_const
|
|
431
|
+
* @stable
|
|
425
432
|
*/
|
|
426
433
|
export declare class ViewChildMetadata extends ViewQueryMetadata {
|
|
427
434
|
constructor(_selector: Type | string, {read}?: {
|
package/esm/src/metadata/di.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { stringify, isString } from '../../src/facade/lang';
|
|
2
|
-
import { DependencyMetadata } from '../di/metadata';
|
|
3
1
|
import { resolveForwardRef } from '../di/forward_ref';
|
|
2
|
+
import { DependencyMetadata } from '../di/metadata';
|
|
3
|
+
import { StringWrapper, isString, stringify } from '../facade/lang';
|
|
4
4
|
/**
|
|
5
5
|
* Specifies that a constant attribute value should be injected.
|
|
6
6
|
*
|
|
@@ -18,6 +18,7 @@ import { resolveForwardRef } from '../di/forward_ref';
|
|
|
18
18
|
*
|
|
19
19
|
* {@example core/ts/metadata/metadata.ts region='attributeMetadata'}
|
|
20
20
|
* @ts2dart_const
|
|
21
|
+
* @stable
|
|
21
22
|
*/
|
|
22
23
|
export class AttributeMetadata extends DependencyMetadata {
|
|
23
24
|
constructor(attributeName) {
|
|
@@ -141,6 +142,7 @@ export class AttributeMetadata extends DependencyMetadata {
|
|
|
141
142
|
* The injected object is an unmodifiable live list.
|
|
142
143
|
* See {@link QueryList} for more details.
|
|
143
144
|
* @ts2dart_const
|
|
145
|
+
* @deprecated
|
|
144
146
|
*/
|
|
145
147
|
export class QueryMetadata extends DependencyMetadata {
|
|
146
148
|
constructor(_selector, { descendants = false, first = false, read = null } = {}) {
|
|
@@ -166,7 +168,7 @@ export class QueryMetadata extends DependencyMetadata {
|
|
|
166
168
|
* returns a list of variable bindings this is querying for.
|
|
167
169
|
* Only applicable if this is a variable bindings query.
|
|
168
170
|
*/
|
|
169
|
-
get varBindings() { return this.selector
|
|
171
|
+
get varBindings() { return StringWrapper.split(this.selector, /\s*,\s*/g); }
|
|
170
172
|
toString() { return `@Query(${stringify(this.selector)})`; }
|
|
171
173
|
}
|
|
172
174
|
// TODO: add an example after ContentChildren and ViewChildren are in master
|
|
@@ -190,6 +192,7 @@ export class QueryMetadata extends DependencyMetadata {
|
|
|
190
192
|
* }
|
|
191
193
|
* ```
|
|
192
194
|
* @ts2dart_const
|
|
195
|
+
* @stable
|
|
193
196
|
*/
|
|
194
197
|
export class ContentChildrenMetadata extends QueryMetadata {
|
|
195
198
|
constructor(_selector, { descendants = false, read = null } = {}) {
|
|
@@ -217,6 +220,7 @@ export class ContentChildrenMetadata extends QueryMetadata {
|
|
|
217
220
|
* }
|
|
218
221
|
* ```
|
|
219
222
|
* @ts2dart_const
|
|
223
|
+
* @stable
|
|
220
224
|
*/
|
|
221
225
|
export class ContentChildMetadata extends QueryMetadata {
|
|
222
226
|
constructor(_selector, { read = null } = {}) {
|
|
@@ -258,6 +262,7 @@ export class ContentChildMetadata extends QueryMetadata {
|
|
|
258
262
|
* The injected object is an iterable and observable live list.
|
|
259
263
|
* See {@link QueryList} for more details.
|
|
260
264
|
* @ts2dart_const
|
|
265
|
+
* @deprecated
|
|
261
266
|
*/
|
|
262
267
|
export class ViewQueryMetadata extends QueryMetadata {
|
|
263
268
|
constructor(_selector, { descendants = false, first = false, read = null } = {}) {
|
|
@@ -346,6 +351,7 @@ export class ViewQueryMetadata extends QueryMetadata {
|
|
|
346
351
|
* }
|
|
347
352
|
* ```
|
|
348
353
|
* @ts2dart_const
|
|
354
|
+
* @stable
|
|
349
355
|
*/
|
|
350
356
|
export class ViewChildrenMetadata extends ViewQueryMetadata {
|
|
351
357
|
constructor(_selector, { read = null } = {}) {
|
|
@@ -422,6 +428,7 @@ export class ViewChildrenMetadata extends ViewQueryMetadata {
|
|
|
422
428
|
* }
|
|
423
429
|
* ```
|
|
424
430
|
* @ts2dart_const
|
|
431
|
+
* @stable
|
|
425
432
|
*/
|
|
426
433
|
export class ViewChildMetadata extends ViewQueryMetadata {
|
|
427
434
|
constructor(_selector, { read = null } = {}) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.js","sourceRoot":"/Users/iminar/Dev/angular/modules/@angular/core/","sources":["src/metadata/di.ts"],"names":[],"mappings":"OAIS,EAAC,SAAS,EAAE,QAAQ,EAAO,MAAM,uBAAuB;OAC1D,EAAC,kBAAkB,EAAC,MAAM,gBAAgB;OAC1C,EAAC,iBAAiB,EAAC,MAAM,mBAAmB;AAEnD;;;;;;;;;;;;;;;;;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G,IAAI,EAAC,GAAiB,EAAE;QAClE,MAAM,SAAS,EAAE,EAAC,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,CAAC,CAAC;IACjE,CAAC;AACH,CAAC;AAAA","sourcesContent":["import {resolveForwardRef} from '../di/forward_ref';\nimport {DependencyMetadata} from '../di/metadata';\nimport {StringWrapper, Type, isString, stringify} from '../facade/lang';\n\n\n/**\n * Specifies that a constant attribute value should be injected.\n *\n * The directive can inject constant string literals of host element attributes.\n *\n * ### Example\n *\n * Suppose we have an `<input>` element and want to know its `type`.\n *\n * ```html\n * <input type=\"text\">\n * ```\n *\n * A decorator can inject string literal `text` like so:\n *\n * {@example core/ts/metadata/metadata.ts region='attributeMetadata'}\n * @ts2dart_const\n * @stable\n */\nexport class AttributeMetadata extends DependencyMetadata {\n constructor(public attributeName: string) { super(); }\n\n get token(): AttributeMetadata {\n // Normally one would default a token to a type of an injected value but here\n // the type of a variable is \"string\" and we can't use primitive type as a return value\n // so we use instance of Attribute instead. This doesn't matter much in practice as arguments\n // with @Attribute annotation are injected by ElementInjector that doesn't take tokens into\n // account.\n return this;\n }\n toString(): string { return `@Attribute(${stringify(this.attributeName)})`; }\n}\n\n/**\n * Declares an injectable parameter to be a live list of directives or variable\n * bindings from the content children of a directive.\n *\n * ### Example ([live demo](http://plnkr.co/edit/lY9m8HLy7z06vDoUaSN2?p=preview))\n *\n * Assume that `<tabs>` component would like to get a list its children `<pane>`\n * components as shown in this example:\n *\n * ```html\n * <tabs>\n * <pane title=\"Overview\">...</pane>\n * <pane *ngFor=\"let o of objects\" [title]=\"o.title\">{{o.text}}</pane>\n * </tabs>\n * ```\n *\n * The preferred solution is to query for `Pane` directives using this decorator.\n *\n * ```javascript\n * @Component({\n * selector: 'pane',\n * inputs: ['title']\n * })\n * class Pane {\n * title:string;\n * }\n *\n * @Component({\n * selector: 'tabs',\n * template: `\n * <ul>\n * <li *ngFor=\"let pane of panes\">{{pane.title}}</li>\n * </ul>\n * <ng-content></ng-content>\n * `\n * })\n * class Tabs {\n * panes: QueryList<Pane>;\n * constructor(@Query(Pane) panes:QueryList<Pane>) {\n * this.panes = panes;\n * }\n * }\n * ```\n *\n * A query can look for variable bindings by passing in a string with desired binding symbol.\n *\n * ### Example ([live demo](http://plnkr.co/edit/sT2j25cH1dURAyBRCKx1?p=preview))\n * ```html\n * <seeker>\n * <div #findme>...</div>\n * </seeker>\n *\n * @Component({ selector: 'seeker' })\n * class Seeker {\n * constructor(@Query('findme') elList: QueryList<ElementRef>) {...}\n * }\n * ```\n *\n * In this case the object that is injected depend on the type of the variable\n * binding. It can be an ElementRef, a directive or a component.\n *\n * Passing in a comma separated list of variable bindings will query for all of them.\n *\n * ```html\n * <seeker>\n * <div #find-me>...</div>\n * <div #find-me-too>...</div>\n * </seeker>\n *\n * @Component({\n * selector: 'seeker'\n * })\n * class Seeker {\n * constructor(@Query('findMe, findMeToo') elList: QueryList<ElementRef>) {...}\n * }\n * ```\n *\n * Configure whether query looks for direct children or all descendants\n * of the querying element, by using the `descendants` parameter.\n * It is set to `false` by default.\n *\n * ### Example ([live demo](http://plnkr.co/edit/wtGeB977bv7qvA5FTYl9?p=preview))\n * ```html\n * <container #first>\n * <item>a</item>\n * <item>b</item>\n * <container #second>\n * <item>c</item>\n * </container>\n * </container>\n * ```\n *\n * When querying for items, the first container will see only `a` and `b` by default,\n * but with `Query(TextDirective, {descendants: true})` it will see `c` too.\n *\n * The queried directives are kept in a depth-first pre-order with respect to their\n * positions in the DOM.\n *\n * Query does not look deep into any subcomponent views.\n *\n * Query is updated as part of the change-detection cycle. Since change detection\n * happens after construction of a directive, QueryList will always be empty when observed in the\n * constructor.\n *\n * The injected object is an unmodifiable live list.\n * See {@link QueryList} for more details.\n * @ts2dart_const\n * @deprecated\n */\nexport class QueryMetadata extends DependencyMetadata {\n /**\n * whether we want to query only direct children (false) or all\n * children (true).\n */\n descendants: boolean;\n first: boolean;\n /**\n * The DI token to read from an element that matches the selector.\n */\n read: any;\n\n constructor(private _selector: Type|string, {descendants = false, first = false, read = null}: {\n descendants?: boolean,\n first?: boolean,\n read?: any\n } = {}) {\n super();\n this.descendants = descendants;\n this.first = first;\n this.read = read;\n }\n\n /**\n * always `false` to differentiate it with {@link ViewQueryMetadata}.\n */\n get isViewQuery(): boolean { return false; }\n\n /**\n * what this is querying for.\n */\n get selector() { return resolveForwardRef(this._selector); }\n\n /**\n * whether this is querying for a variable binding or a directive.\n */\n get isVarBindingQuery(): boolean { return isString(this.selector); }\n\n /**\n * returns a list of variable bindings this is querying for.\n * Only applicable if this is a variable bindings query.\n */\n get varBindings(): string[] { return StringWrapper.split(this.selector, /\\s*,\\s*/g); }\n\n toString(): string { return `@Query(${stringify(this.selector)})`; }\n}\n\n// TODO: add an example after ContentChildren and ViewChildren are in master\n/**\n * Configures a content query.\n *\n * Content queries are set before the `ngAfterContentInit` callback is called.\n *\n * ### Example\n *\n * ```\n * @Directive({\n * selector: 'someDir'\n * })\n * class SomeDir {\n * @ContentChildren(ChildDirective) contentChildren: QueryList<ChildDirective>;\n *\n * ngAfterContentInit() {\n * // contentChildren is set\n * }\n * }\n * ```\n * @ts2dart_const\n * @stable\n */\nexport class ContentChildrenMetadata extends QueryMetadata {\n constructor(\n _selector: Type|string,\n {descendants = false, read = null}: {descendants?: boolean, read?: any} = {}) {\n super(_selector, {descendants: descendants, read: read});\n }\n}\n\n// TODO: add an example after ContentChild and ViewChild are in master\n/**\n * Configures a content query.\n *\n * Content queries are set before the `ngAfterContentInit` callback is called.\n *\n * ### Example\n *\n * ```\n * @Directive({\n * selector: 'someDir'\n * })\n * class SomeDir {\n * @ContentChild(ChildDirective) contentChild;\n *\n * ngAfterContentInit() {\n * // contentChild is set\n * }\n * }\n * ```\n * @ts2dart_const\n * @stable\n */\nexport class ContentChildMetadata extends QueryMetadata {\n constructor(_selector: Type|string, {read = null}: {read?: any} = {}) {\n super(_selector, {descendants: true, first: true, read: read});\n }\n}\n\n/**\n * Similar to {@link QueryMetadata}, but querying the component view, instead of\n * the content children.\n *\n * ### Example ([live demo](http://plnkr.co/edit/eNsFHDf7YjyM6IzKxM1j?p=preview))\n *\n * ```javascript\n * @Component({\n * ...,\n * template: `\n * <item> a </item>\n * <item> b </item>\n * <item> c </item>\n * `\n * })\n * class MyComponent {\n * shown: boolean;\n *\n * constructor(private @ViewQuery(Item) items:QueryList<Item>) {\n * items.changes.subscribe(() => console.log(items.length));\n * }\n * }\n * ```\n *\n * Supports the same querying parameters as {@link QueryMetadata}, except\n * `descendants`. This always queries the whole view.\n *\n * As `shown` is flipped between true and false, items will contain zero of one\n * items.\n *\n * Specifies that a {@link QueryList} should be injected.\n *\n * The injected object is an iterable and observable live list.\n * See {@link QueryList} for more details.\n * @ts2dart_const\n * @deprecated\n */\nexport class ViewQueryMetadata extends QueryMetadata {\n constructor(\n _selector: Type|string, {descendants = false, first = false, read = null}:\n {descendants?: boolean, first?: boolean, read?: any} = {}) {\n super(_selector, {descendants: descendants, first: first, read: read});\n }\n\n /**\n * always `true` to differentiate it with {@link QueryMetadata}.\n */\n get isViewQuery() { return true; }\n toString(): string { return `@ViewQuery(${stringify(this.selector)})`; }\n}\n\n/**\n * Declares a list of child element references.\n *\n * Angular automatically updates the list when the DOM is updated.\n *\n * `ViewChildren` takes an argument to select elements.\n *\n * - If the argument is a type, directives or components with the type will be bound.\n *\n * - If the argument is a string, the string is interpreted as a list of comma-separated selectors.\n * For each selector, an element containing the matching template variable (e.g. `#child`) will be\n * bound.\n *\n * View children are set before the `ngAfterViewInit` callback is called.\n *\n * ### Example\n *\n * With type selector:\n *\n * ```\n * @Component({\n * selector: 'child-cmp',\n * template: '<p>child</p>'\n * })\n * class ChildCmp {\n * doSomething() {}\n * }\n *\n * @Component({\n * selector: 'some-cmp',\n * template: `\n * <child-cmp></child-cmp>\n * <child-cmp></child-cmp>\n * <child-cmp></child-cmp>\n * `,\n * directives: [ChildCmp]\n * })\n * class SomeCmp {\n * @ViewChildren(ChildCmp) children:QueryList<ChildCmp>;\n *\n * ngAfterViewInit() {\n * // children are set\n * this.children.toArray().forEach((child)=>child.doSomething());\n * }\n * }\n * ```\n *\n * With string selector:\n *\n * ```\n * @Component({\n * selector: 'child-cmp',\n * template: '<p>child</p>'\n * })\n * class ChildCmp {\n * doSomething() {}\n * }\n *\n * @Component({\n * selector: 'some-cmp',\n * template: `\n * <child-cmp #child1></child-cmp>\n * <child-cmp #child2></child-cmp>\n * <child-cmp #child3></child-cmp>\n * `,\n * directives: [ChildCmp]\n * })\n * class SomeCmp {\n * @ViewChildren('child1,child2,child3') children:QueryList<ChildCmp>;\n *\n * ngAfterViewInit() {\n * // children are set\n * this.children.toArray().forEach((child)=>child.doSomething());\n * }\n * }\n * ```\n * @ts2dart_const\n * @stable\n */\nexport class ViewChildrenMetadata extends ViewQueryMetadata {\n constructor(_selector: Type|string, {read = null}: {read?: any} = {}) {\n super(_selector, {descendants: true, read: read});\n }\n}\n\n/**\n *\n * Declares a reference of child element.\n *\n * `ViewChildren` takes an argument to select elements.\n *\n * - If the argument is a type, a directive or a component with the type will be bound.\n *\n If the argument is a string, the string is interpreted as a selector. An element containing the\n matching template variable (e.g. `#child`) will be bound.\n *\n * In either case, `@ViewChild()` assigns the first (looking from above) element if there are\n multiple matches.\n *\n * View child is set before the `ngAfterViewInit` callback is called.\n *\n * ### Example\n *\n * With type selector:\n *\n * ```\n * @Component({\n * selector: 'child-cmp',\n * template: '<p>child</p>'\n * })\n * class ChildCmp {\n * doSomething() {}\n * }\n *\n * @Component({\n * selector: 'some-cmp',\n * template: '<child-cmp></child-cmp>',\n * directives: [ChildCmp]\n * })\n * class SomeCmp {\n * @ViewChild(ChildCmp) child:ChildCmp;\n *\n * ngAfterViewInit() {\n * // child is set\n * this.child.doSomething();\n * }\n * }\n * ```\n *\n * With string selector:\n *\n * ```\n * @Component({\n * selector: 'child-cmp',\n * template: '<p>child</p>'\n * })\n * class ChildCmp {\n * doSomething() {}\n * }\n *\n * @Component({\n * selector: 'some-cmp',\n * template: '<child-cmp #child></child-cmp>',\n * directives: [ChildCmp]\n * })\n * class SomeCmp {\n * @ViewChild('child') child:ChildCmp;\n *\n * ngAfterViewInit() {\n * // child is set\n * this.child.doSomething();\n * }\n * }\n * ```\n * @ts2dart_const\n * @stable\n */\nexport class ViewChildMetadata extends ViewQueryMetadata {\n constructor(_selector: Type|string, {read = null}: {read?: any} = {}) {\n super(_selector, {descendants: true, first: true, read: read});\n }\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AnimationEntryMetadata } from '../animation/metadata';
|
|
2
|
+
import { ChangeDetectionStrategy } from '../change_detection/constants';
|
|
2
3
|
import { InjectableMetadata } from '../di/metadata';
|
|
4
|
+
import { Type } from '../facade/lang';
|
|
3
5
|
import { ViewEncapsulation } from './view';
|
|
4
|
-
import { ChangeDetectionStrategy } from '../change_detection/constants';
|
|
5
6
|
/**
|
|
6
7
|
* Directives allow you to attach behavior to elements in the DOM.
|
|
7
8
|
*
|
|
@@ -380,6 +381,7 @@ import { ChangeDetectionStrategy } from '../change_detection/constants';
|
|
|
380
381
|
* the instantiated
|
|
381
382
|
* view occurs on the second `<li></li>` which is a sibling to the `<template>` element.
|
|
382
383
|
* @ts2dart_const
|
|
384
|
+
* @stable
|
|
383
385
|
*/
|
|
384
386
|
export declare class DirectiveMetadata extends InjectableMetadata {
|
|
385
387
|
/**
|
|
@@ -463,6 +465,11 @@ export declare class DirectiveMetadata extends InjectableMetadata {
|
|
|
463
465
|
*
|
|
464
466
|
*/
|
|
465
467
|
readonly inputs: string[];
|
|
468
|
+
/**
|
|
469
|
+
* Use `inputs` instead
|
|
470
|
+
*
|
|
471
|
+
* @deprecated
|
|
472
|
+
*/
|
|
466
473
|
readonly properties: string[];
|
|
467
474
|
private _inputs;
|
|
468
475
|
private _properties;
|
|
@@ -512,6 +519,11 @@ export declare class DirectiveMetadata extends InjectableMetadata {
|
|
|
512
519
|
*
|
|
513
520
|
*/
|
|
514
521
|
readonly outputs: string[];
|
|
522
|
+
/**
|
|
523
|
+
* Use `outputs` instead
|
|
524
|
+
*
|
|
525
|
+
* @deprecated
|
|
526
|
+
*/
|
|
515
527
|
readonly events: string[];
|
|
516
528
|
private _outputs;
|
|
517
529
|
private _events;
|
|
@@ -641,7 +653,7 @@ export declare class DirectiveMetadata extends InjectableMetadata {
|
|
|
641
653
|
*
|
|
642
654
|
* @Directive({
|
|
643
655
|
* selector: 'greet',
|
|
644
|
-
*
|
|
656
|
+
* providers: [
|
|
645
657
|
* Greeter
|
|
646
658
|
* ]
|
|
647
659
|
* })
|
|
@@ -655,10 +667,7 @@ export declare class DirectiveMetadata extends InjectableMetadata {
|
|
|
655
667
|
* ```
|
|
656
668
|
*/
|
|
657
669
|
readonly providers: any[];
|
|
658
|
-
/** @deprecated */
|
|
659
|
-
readonly bindings: any[];
|
|
660
670
|
private _providers;
|
|
661
|
-
private _bindings;
|
|
662
671
|
/**
|
|
663
672
|
* Defines the name that can be used in the template to assign this directive to a variable.
|
|
664
673
|
*
|
|
@@ -718,17 +727,16 @@ export declare class DirectiveMetadata extends InjectableMetadata {
|
|
|
718
727
|
queries: {
|
|
719
728
|
[key: string]: any;
|
|
720
729
|
};
|
|
721
|
-
constructor({selector, inputs, outputs, properties, events, host,
|
|
730
|
+
constructor({selector, inputs, outputs, properties, events, host, providers, exportAs, queries}?: {
|
|
722
731
|
selector?: string;
|
|
723
732
|
inputs?: string[];
|
|
724
733
|
outputs?: string[];
|
|
725
|
-
properties?: string[];
|
|
726
|
-
events?: string[];
|
|
734
|
+
/** @deprecated */ properties?: string[];
|
|
735
|
+
/** @deprecated */ events?: string[];
|
|
727
736
|
host?: {
|
|
728
737
|
[key: string]: string;
|
|
729
738
|
};
|
|
730
739
|
providers?: any[];
|
|
731
|
-
/** @deprecated */ bindings?: any[];
|
|
732
740
|
exportAs?: string;
|
|
733
741
|
queries?: {
|
|
734
742
|
[key: string]: any;
|
|
@@ -761,6 +769,7 @@ export declare class DirectiveMetadata extends InjectableMetadata {
|
|
|
761
769
|
*
|
|
762
770
|
* {@example core/ts/metadata/metadata.ts region='component'}
|
|
763
771
|
* @ts2dart_const
|
|
772
|
+
* @stable
|
|
764
773
|
*/
|
|
765
774
|
export declare class ComponentMetadata extends DirectiveMetadata {
|
|
766
775
|
/**
|
|
@@ -812,14 +821,15 @@ export declare class ComponentMetadata extends DirectiveMetadata {
|
|
|
812
821
|
* ```
|
|
813
822
|
*/
|
|
814
823
|
readonly viewProviders: any[];
|
|
815
|
-
readonly viewBindings: any[];
|
|
816
824
|
private _viewProviders;
|
|
817
|
-
private _viewBindings;
|
|
818
825
|
/**
|
|
819
826
|
* The module id of the module that contains the component.
|
|
820
827
|
* Needed to be able to resolve relative urls for templates and styles.
|
|
828
|
+
* In CommonJS, this can always be set to `module.id`, similarly SystemJS exposes `__moduleName`
|
|
829
|
+
* variable within each module.
|
|
830
|
+
*
|
|
821
831
|
* In Dart, this can be determined automatically and does not need to be set.
|
|
822
|
-
|
|
832
|
+
|
|
823
833
|
*
|
|
824
834
|
* ## Simple Example
|
|
825
835
|
*
|
|
@@ -838,23 +848,93 @@ export declare class ComponentMetadata extends DirectiveMetadata {
|
|
|
838
848
|
template: string;
|
|
839
849
|
styleUrls: string[];
|
|
840
850
|
styles: string[];
|
|
851
|
+
/**
|
|
852
|
+
* Animations are defined on components via an animation-like DSL. This DSL approach to describing
|
|
853
|
+
* animations allows for a flexibility that both benefits developers and the framework.
|
|
854
|
+
*
|
|
855
|
+
* Animations work by listening on state changes that occur on an element within
|
|
856
|
+
* the template. When a state change occurs, Angular can then take advantage and animate the
|
|
857
|
+
* arc in between. This works similar to how CSS transitions work, however, by having a
|
|
858
|
+
* programmatic DSL, animations are not limited to environments that are DOM-specific.
|
|
859
|
+
* (Angular can also perform optimizations behind the scenes to make animations more performant.)
|
|
860
|
+
*
|
|
861
|
+
* For animations to be available for use, animation state changes are placed within
|
|
862
|
+
* {@link trigger animation triggers} which are housed inside of the `animations` annotation
|
|
863
|
+
* metadata. Within a trigger both {@link state state} and {@link transition transition} entries
|
|
864
|
+
* can be placed.
|
|
865
|
+
*
|
|
866
|
+
* ```typescript
|
|
867
|
+
* @Component({
|
|
868
|
+
* selector: 'animation-cmp',
|
|
869
|
+
* templateUrl: 'animation-cmp.html',
|
|
870
|
+
* animations: [
|
|
871
|
+
* // this here is our animation trigger that
|
|
872
|
+
* // will contain our state change animations.
|
|
873
|
+
* trigger('myTriggerName', [
|
|
874
|
+
* // the styles defined for the `on` and `off`
|
|
875
|
+
* // states declared below are persisted on the
|
|
876
|
+
* // element once the animation completes.
|
|
877
|
+
* state('on', style({ opacity: 1 }),
|
|
878
|
+
* state('off', style({ opacity: 0 }),
|
|
879
|
+
*
|
|
880
|
+
* // this here is our animation that kicks off when
|
|
881
|
+
* // this state change jump is true
|
|
882
|
+
* transition('on => off', [
|
|
883
|
+
* animate("1s")
|
|
884
|
+
* ])
|
|
885
|
+
* ])
|
|
886
|
+
* ]
|
|
887
|
+
* })
|
|
888
|
+
* ```
|
|
889
|
+
*
|
|
890
|
+
* As depicted in the code above, a group of related animation states are all contained within
|
|
891
|
+
* an animation `trigger` (the code example above called the trigger `myTriggerName`).
|
|
892
|
+
* When a trigger is created then it can be bound onto an element within the component's
|
|
893
|
+
* template via a property prefixed by an `@` symbol followed by trigger name and an expression
|
|
894
|
+
* that
|
|
895
|
+
* is used to determine the state value for that trigger.
|
|
896
|
+
*
|
|
897
|
+
* ```html
|
|
898
|
+
* <!-- animation-cmp.html -->
|
|
899
|
+
* <div @myTriggerName="expression">...</div>
|
|
900
|
+
* ```
|
|
901
|
+
*
|
|
902
|
+
* For state changes to be executed, the `expression` value must change value from its existing
|
|
903
|
+
* value
|
|
904
|
+
* to something that we have set an animation to animate on (in the example above we are listening
|
|
905
|
+
* to a change of state between `on` and `off`). The `expression` value attached to the trigger
|
|
906
|
+
* must be something that can be evaluated with the template/component context.
|
|
907
|
+
*
|
|
908
|
+
* ### DSL Animation Functions
|
|
909
|
+
*
|
|
910
|
+
* Please visit each of the animation DSL functions listed below to gain a better understanding
|
|
911
|
+
* of how and why they are used for crafting animations in Angular2:
|
|
912
|
+
*
|
|
913
|
+
* - {@link trigger trigger()}
|
|
914
|
+
* - {@link state state()}
|
|
915
|
+
* - {@link transition transition()}
|
|
916
|
+
* - {@link group group()}
|
|
917
|
+
* - {@link sequence sequence()}
|
|
918
|
+
* - {@link style style()}
|
|
919
|
+
* - {@link animate animate()}
|
|
920
|
+
* - {@link keyframes keyframes()}
|
|
921
|
+
*/
|
|
922
|
+
animations: AnimationEntryMetadata[];
|
|
841
923
|
directives: Array<Type | any[]>;
|
|
842
924
|
pipes: Array<Type | any[]>;
|
|
843
925
|
encapsulation: ViewEncapsulation;
|
|
844
|
-
constructor({selector, inputs, outputs, properties, events, host, exportAs, moduleId,
|
|
926
|
+
constructor({selector, inputs, outputs, properties, events, host, exportAs, moduleId, providers, viewProviders, changeDetection, queries, templateUrl, template, styleUrls, styles, animations, directives, pipes, encapsulation}?: {
|
|
845
927
|
selector?: string;
|
|
846
928
|
inputs?: string[];
|
|
847
929
|
outputs?: string[];
|
|
848
|
-
properties?: string[];
|
|
849
|
-
events?: string[];
|
|
930
|
+
/** @deprecated */ properties?: string[];
|
|
931
|
+
/** @deprecated */ events?: string[];
|
|
850
932
|
host?: {
|
|
851
933
|
[key: string]: string;
|
|
852
934
|
};
|
|
853
|
-
/** @deprecated */ bindings?: any[];
|
|
854
935
|
providers?: any[];
|
|
855
936
|
exportAs?: string;
|
|
856
937
|
moduleId?: string;
|
|
857
|
-
/** @deprecated */ viewBindings?: any[];
|
|
858
938
|
viewProviders?: any[];
|
|
859
939
|
queries?: {
|
|
860
940
|
[key: string]: any;
|
|
@@ -864,6 +944,7 @@ export declare class ComponentMetadata extends DirectiveMetadata {
|
|
|
864
944
|
template?: string;
|
|
865
945
|
styleUrls?: string[];
|
|
866
946
|
styles?: string[];
|
|
947
|
+
animations?: AnimationEntryMetadata[];
|
|
867
948
|
directives?: Array<Type | any[]>;
|
|
868
949
|
pipes?: Array<Type | any[]>;
|
|
869
950
|
encapsulation?: ViewEncapsulation;
|
|
@@ -880,11 +961,10 @@ export declare class ComponentMetadata extends DirectiveMetadata {
|
|
|
880
961
|
*
|
|
881
962
|
* {@example core/ts/metadata/metadata.ts region='pipe'}
|
|
882
963
|
* @ts2dart_const
|
|
964
|
+
* @stable
|
|
883
965
|
*/
|
|
884
966
|
export declare class PipeMetadata extends InjectableMetadata {
|
|
885
967
|
name: string;
|
|
886
|
-
/** @internal */
|
|
887
|
-
_pure: boolean;
|
|
888
968
|
constructor({name, pure}: {
|
|
889
969
|
name: string;
|
|
890
970
|
pure?: boolean;
|
|
@@ -932,6 +1012,7 @@ export declare class PipeMetadata extends InjectableMetadata {
|
|
|
932
1012
|
* bootstrap(App);
|
|
933
1013
|
* ```
|
|
934
1014
|
* @ts2dart_const
|
|
1015
|
+
* @stable
|
|
935
1016
|
*/
|
|
936
1017
|
export declare class InputMetadata {
|
|
937
1018
|
/**
|
|
@@ -985,6 +1066,7 @@ export declare class InputMetadata {
|
|
|
985
1066
|
* bootstrap(App);
|
|
986
1067
|
* ```
|
|
987
1068
|
* @ts2dart_const
|
|
1069
|
+
* @stable
|
|
988
1070
|
*/
|
|
989
1071
|
export declare class OutputMetadata {
|
|
990
1072
|
bindingPropertyName: string;
|
|
@@ -1025,6 +1107,7 @@ export declare class OutputMetadata {
|
|
|
1025
1107
|
* bootstrap(App);
|
|
1026
1108
|
* ```
|
|
1027
1109
|
* @ts2dart_const
|
|
1110
|
+
* @stable
|
|
1028
1111
|
*/
|
|
1029
1112
|
export declare class HostBindingMetadata {
|
|
1030
1113
|
hostPropertyName: string;
|
|
@@ -1064,6 +1147,7 @@ export declare class HostBindingMetadata {
|
|
|
1064
1147
|
* bootstrap(App);
|
|
1065
1148
|
* ```
|
|
1066
1149
|
* @ts2dart_const
|
|
1150
|
+
* @stable
|
|
1067
1151
|
*/
|
|
1068
1152
|
export declare class HostListenerMetadata {
|
|
1069
1153
|
eventName: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isPresent } from '../../src/facade/lang';
|
|
2
|
-
import { InjectableMetadata } from '../di/metadata';
|
|
3
1
|
import { ChangeDetectionStrategy } from '../change_detection/constants';
|
|
2
|
+
import { InjectableMetadata } from '../di/metadata';
|
|
3
|
+
import { isPresent } from '../facade/lang';
|
|
4
4
|
/**
|
|
5
5
|
* Directives allow you to attach behavior to elements in the DOM.
|
|
6
6
|
*
|
|
@@ -379,9 +379,10 @@ import { ChangeDetectionStrategy } from '../change_detection/constants';
|
|
|
379
379
|
* the instantiated
|
|
380
380
|
* view occurs on the second `<li></li>` which is a sibling to the `<template>` element.
|
|
381
381
|
* @ts2dart_const
|
|
382
|
+
* @stable
|
|
382
383
|
*/
|
|
383
384
|
export class DirectiveMetadata extends InjectableMetadata {
|
|
384
|
-
constructor({ selector, inputs, outputs, properties, events, host,
|
|
385
|
+
constructor({ selector, inputs, outputs, properties, events, host, providers, exportAs, queries } = {}) {
|
|
385
386
|
super();
|
|
386
387
|
this.selector = selector;
|
|
387
388
|
this._inputs = inputs;
|
|
@@ -392,7 +393,6 @@ export class DirectiveMetadata extends InjectableMetadata {
|
|
|
392
393
|
this.exportAs = exportAs;
|
|
393
394
|
this.queries = queries;
|
|
394
395
|
this._providers = providers;
|
|
395
|
-
this._bindings = bindings;
|
|
396
396
|
}
|
|
397
397
|
/**
|
|
398
398
|
* Enumerates the set of data-bound input properties for a directive
|
|
@@ -445,6 +445,11 @@ export class DirectiveMetadata extends InjectableMetadata {
|
|
|
445
445
|
return isPresent(this._properties) && this._properties.length > 0 ? this._properties :
|
|
446
446
|
this._inputs;
|
|
447
447
|
}
|
|
448
|
+
/**
|
|
449
|
+
* Use `inputs` instead
|
|
450
|
+
*
|
|
451
|
+
* @deprecated
|
|
452
|
+
*/
|
|
448
453
|
get properties() { return this.inputs; }
|
|
449
454
|
/**
|
|
450
455
|
* Enumerates the set of event-bound output properties.
|
|
@@ -494,6 +499,11 @@ export class DirectiveMetadata extends InjectableMetadata {
|
|
|
494
499
|
get outputs() {
|
|
495
500
|
return isPresent(this._events) && this._events.length > 0 ? this._events : this._outputs;
|
|
496
501
|
}
|
|
502
|
+
/**
|
|
503
|
+
* Use `outputs` instead
|
|
504
|
+
*
|
|
505
|
+
* @deprecated
|
|
506
|
+
*/
|
|
497
507
|
get events() { return this.outputs; }
|
|
498
508
|
/**
|
|
499
509
|
* Defines the set of injectable objects that are visible to a Directive and its light DOM
|
|
@@ -512,7 +522,7 @@ export class DirectiveMetadata extends InjectableMetadata {
|
|
|
512
522
|
*
|
|
513
523
|
* @Directive({
|
|
514
524
|
* selector: 'greet',
|
|
515
|
-
*
|
|
525
|
+
* providers: [
|
|
516
526
|
* Greeter
|
|
517
527
|
* ]
|
|
518
528
|
* })
|
|
@@ -525,12 +535,7 @@ export class DirectiveMetadata extends InjectableMetadata {
|
|
|
525
535
|
* }
|
|
526
536
|
* ```
|
|
527
537
|
*/
|
|
528
|
-
get providers() {
|
|
529
|
-
return isPresent(this._bindings) && this._bindings.length > 0 ? this._bindings :
|
|
530
|
-
this._providers;
|
|
531
|
-
}
|
|
532
|
-
/** @deprecated */
|
|
533
|
-
get bindings() { return this.providers; }
|
|
538
|
+
get providers() { return this._providers; }
|
|
534
539
|
}
|
|
535
540
|
/**
|
|
536
541
|
* Declare reusable UI building blocks for an application.
|
|
@@ -558,9 +563,10 @@ export class DirectiveMetadata extends InjectableMetadata {
|
|
|
558
563
|
*
|
|
559
564
|
* {@example core/ts/metadata/metadata.ts region='component'}
|
|
560
565
|
* @ts2dart_const
|
|
566
|
+
* @stable
|
|
561
567
|
*/
|
|
562
568
|
export class ComponentMetadata extends DirectiveMetadata {
|
|
563
|
-
constructor({ selector, inputs, outputs, properties, events, host, exportAs, moduleId,
|
|
569
|
+
constructor({ selector, inputs, outputs, properties, events, host, exportAs, moduleId, providers, viewProviders, changeDetection = ChangeDetectionStrategy.Default, queries, templateUrl, template, styleUrls, styles, animations, directives, pipes, encapsulation } = {}) {
|
|
564
570
|
super({
|
|
565
571
|
selector: selector,
|
|
566
572
|
inputs: inputs,
|
|
@@ -569,13 +575,11 @@ export class ComponentMetadata extends DirectiveMetadata {
|
|
|
569
575
|
events: events,
|
|
570
576
|
host: host,
|
|
571
577
|
exportAs: exportAs,
|
|
572
|
-
bindings: bindings,
|
|
573
578
|
providers: providers,
|
|
574
579
|
queries: queries
|
|
575
580
|
});
|
|
576
581
|
this.changeDetection = changeDetection;
|
|
577
582
|
this._viewProviders = viewProviders;
|
|
578
|
-
this._viewBindings = viewBindings;
|
|
579
583
|
this.templateUrl = templateUrl;
|
|
580
584
|
this.template = template;
|
|
581
585
|
this.styleUrls = styleUrls;
|
|
@@ -584,6 +588,7 @@ export class ComponentMetadata extends DirectiveMetadata {
|
|
|
584
588
|
this.pipes = pipes;
|
|
585
589
|
this.encapsulation = encapsulation;
|
|
586
590
|
this.moduleId = moduleId;
|
|
591
|
+
this.animations = animations;
|
|
587
592
|
}
|
|
588
593
|
/**
|
|
589
594
|
* Defines the set of injectable objects that are visible to its view DOM children.
|
|
@@ -623,11 +628,7 @@ export class ComponentMetadata extends DirectiveMetadata {
|
|
|
623
628
|
*
|
|
624
629
|
* ```
|
|
625
630
|
*/
|
|
626
|
-
get viewProviders() {
|
|
627
|
-
return isPresent(this._viewBindings) && this._viewBindings.length > 0 ? this._viewBindings :
|
|
628
|
-
this._viewProviders;
|
|
629
|
-
}
|
|
630
|
-
get viewBindings() { return this.viewProviders; }
|
|
631
|
+
get viewProviders() { return this._viewProviders; }
|
|
631
632
|
}
|
|
632
633
|
/**
|
|
633
634
|
* Declare reusable pipe function.
|
|
@@ -640,6 +641,7 @@ export class ComponentMetadata extends DirectiveMetadata {
|
|
|
640
641
|
*
|
|
641
642
|
* {@example core/ts/metadata/metadata.ts region='pipe'}
|
|
642
643
|
* @ts2dart_const
|
|
644
|
+
* @stable
|
|
643
645
|
*/
|
|
644
646
|
export class PipeMetadata extends InjectableMetadata {
|
|
645
647
|
constructor({ name, pure }) {
|
|
@@ -690,6 +692,7 @@ export class PipeMetadata extends InjectableMetadata {
|
|
|
690
692
|
* bootstrap(App);
|
|
691
693
|
* ```
|
|
692
694
|
* @ts2dart_const
|
|
695
|
+
* @stable
|
|
693
696
|
*/
|
|
694
697
|
export class InputMetadata {
|
|
695
698
|
constructor(
|
|
@@ -741,6 +744,7 @@ export class InputMetadata {
|
|
|
741
744
|
* bootstrap(App);
|
|
742
745
|
* ```
|
|
743
746
|
* @ts2dart_const
|
|
747
|
+
* @stable
|
|
744
748
|
*/
|
|
745
749
|
export class OutputMetadata {
|
|
746
750
|
constructor(bindingPropertyName) {
|
|
@@ -782,6 +786,7 @@ export class OutputMetadata {
|
|
|
782
786
|
* bootstrap(App);
|
|
783
787
|
* ```
|
|
784
788
|
* @ts2dart_const
|
|
789
|
+
* @stable
|
|
785
790
|
*/
|
|
786
791
|
export class HostBindingMetadata {
|
|
787
792
|
constructor(hostPropertyName) {
|
|
@@ -822,6 +827,7 @@ export class HostBindingMetadata {
|
|
|
822
827
|
* bootstrap(App);
|
|
823
828
|
* ```
|
|
824
829
|
* @ts2dart_const
|
|
830
|
+
* @stable
|
|
825
831
|
*/
|
|
826
832
|
export class HostListenerMetadata {
|
|
827
833
|
constructor(eventName, args) {
|