@angular/core 0.0.0-6 → 2.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{core.umd.js → bundles/core.umd.js} +6500 -4671
- package/bundles/core.umd.min.js +6 -0
- package/esm/index.d.ts +5 -4
- package/esm/index.js +9 -8
- package/esm/index.js.map +1 -1
- package/esm/private_export.d.ts +102 -10
- package/esm/private_export.js +41 -9
- package/esm/private_export.js.map +1 -1
- package/esm/private_export.metadata.json +1 -1
- package/esm/src/animation/active_animation_players_map.d.ts +11 -0
- package/esm/src/animation/active_animation_players_map.js +47 -0
- package/esm/src/animation/active_animation_players_map.js.map +1 -0
- package/esm/src/animation/animation_constants.d.ts +4 -0
- package/esm/src/animation/animation_constants.js +5 -0
- package/esm/src/animation/animation_constants.js.map +1 -0
- package/esm/src/animation/animation_constants.metadata.json +1 -0
- package/esm/src/animation/animation_driver.d.ts +9 -0
- package/esm/src/animation/animation_driver.js +9 -0
- package/esm/src/animation/animation_driver.js.map +1 -0
- package/esm/src/animation/animation_group_player.d.ts +18 -0
- package/esm/src/animation/animation_group_player.js +60 -0
- package/esm/src/animation/animation_group_player.js.map +1 -0
- package/esm/src/animation/animation_keyframe.d.ts +6 -0
- package/esm/src/animation/animation_keyframe.js +7 -0
- package/esm/src/animation/animation_keyframe.js.map +1 -0
- package/esm/src/animation/animation_player.d.ts +26 -0
- package/esm/src/animation/animation_player.js +30 -0
- package/esm/src/animation/animation_player.js.map +1 -0
- package/esm/src/animation/animation_sequence_player.d.ts +21 -0
- package/esm/src/animation/animation_sequence_player.js +64 -0
- package/esm/src/animation/animation_sequence_player.js.map +1 -0
- package/esm/src/animation/animation_style_util.d.ts +32 -0
- package/esm/src/animation/animation_style_util.js +91 -0
- package/esm/src/animation/animation_style_util.js.map +1 -0
- package/esm/src/animation/animation_style_util.metadata.json +1 -0
- package/esm/src/animation/animation_styles.d.ts +8 -0
- package/esm/src/animation/animation_styles.js +6 -0
- package/esm/src/animation/animation_styles.js.map +1 -0
- package/esm/src/animation/metadata.d.ts +511 -0
- package/esm/src/animation/metadata.js +565 -0
- package/esm/src/animation/metadata.js.map +1 -0
- package/esm/src/animation/metadata.metadata.json +1 -0
- package/esm/src/application_common_providers.d.ts +1 -0
- package/esm/src/application_common_providers.js +5 -4
- package/esm/src/application_common_providers.js.map +1 -1
- package/esm/src/application_common_providers.metadata.json +1 -1
- package/esm/src/application_ref.d.ts +17 -41
- package/esm/src/application_ref.js +32 -23
- package/esm/src/application_ref.js.map +1 -1
- package/esm/src/application_ref.metadata.json +1 -1
- package/esm/src/application_tokens.d.ts +6 -1
- package/esm/src/application_tokens.js +9 -4
- package/esm/src/application_tokens.js.map +1 -1
- package/esm/src/application_tokens.metadata.json +1 -1
- package/esm/src/change_detection/change_detection.d.ts +9 -8
- package/esm/src/change_detection/change_detection.js +7 -7
- package/esm/src/change_detection/change_detection.js.map +1 -1
- package/esm/src/change_detection/change_detection.metadata.json +1 -1
- package/esm/src/change_detection/change_detection_util.d.ts +3 -1
- package/esm/src/change_detection/change_detection_util.js +6 -5
- package/esm/src/change_detection/change_detection_util.js.map +1 -1
- package/esm/src/change_detection/change_detection_util.metadata.json +1 -1
- package/esm/src/change_detection/change_detector_ref.d.ts +3 -0
- package/esm/src/change_detection/change_detector_ref.js +3 -0
- package/esm/src/change_detection/change_detector_ref.js.map +1 -1
- package/esm/src/change_detection/constants.d.ts +1 -0
- package/esm/src/change_detection/constants.js +4 -3
- package/esm/src/change_detection/constants.js.map +1 -1
- package/esm/src/change_detection/constants.metadata.json +1 -1
- package/esm/src/change_detection/differs/default_iterable_differ.d.ts +6 -94
- package/esm/src/change_detection/differs/default_iterable_differ.js +25 -18
- package/esm/src/change_detection/differs/default_iterable_differ.js.map +1 -1
- package/esm/src/change_detection/differs/default_keyvalue_differ.d.ts +3 -30
- package/esm/src/change_detection/differs/default_keyvalue_differ.js +13 -8
- package/esm/src/change_detection/differs/default_keyvalue_differ.js.map +1 -1
- package/esm/src/change_detection/differs/iterable_differs.d.ts +4 -1
- package/esm/src/change_detection/differs/iterable_differs.js +5 -4
- package/esm/src/change_detection/differs/iterable_differs.js.map +1 -1
- package/esm/src/change_detection/differs/keyvalue_differs.d.ts +2 -1
- package/esm/src/change_detection/differs/keyvalue_differs.js +5 -4
- package/esm/src/change_detection/differs/keyvalue_differs.js.map +1 -1
- package/esm/src/change_detection/pipe_transform.js.map +1 -1
- package/esm/src/change_detection.d.ts +1 -1
- package/esm/src/change_detection.js +5 -5
- package/esm/src/change_detection.js.map +1 -1
- package/esm/src/console.js +2 -1
- package/esm/src/console.js.map +1 -1
- package/esm/src/console.metadata.json +1 -1
- package/esm/src/debug/debug_node.d.ts +20 -2
- package/esm/src/debug/debug_node.js +16 -2
- package/esm/src/debug/debug_node.js.map +1 -1
- package/esm/src/debug/debug_node.metadata.json +1 -0
- package/esm/src/debug/debug_renderer.d.ts +10 -6
- package/esm/src/debug/debug_renderer.js +13 -2
- package/esm/src/debug/debug_renderer.js.map +1 -1
- package/esm/src/di/decorators.d.ts +13 -1
- package/esm/src/di/decorators.js +7 -1
- package/esm/src/di/decorators.js.map +1 -1
- package/esm/src/di/decorators.metadata.json +1 -1
- package/esm/src/di/forward_ref.d.ts +3 -1
- package/esm/src/di/forward_ref.js +3 -1
- package/esm/src/di/forward_ref.js.map +1 -1
- package/esm/src/di/injector.d.ts +4 -1
- package/esm/src/di/injector.js +5 -2
- package/esm/src/di/injector.js.map +1 -1
- package/esm/src/di/injector.metadata.json +1 -1
- package/esm/src/di/metadata.d.ts +8 -1
- package/esm/src/di/metadata.js +10 -3
- package/esm/src/di/metadata.js.map +1 -1
- package/esm/src/di/opaque_token.d.ts +2 -1
- package/esm/src/di/opaque_token.js +22 -21
- package/esm/src/di/opaque_token.js.map +1 -1
- package/esm/src/di/provider.d.ts +11 -10
- package/esm/src/di/provider.js +17 -14
- package/esm/src/di/provider.js.map +1 -1
- package/esm/src/di/provider.metadata.json +1 -0
- package/esm/src/di/provider_util.js.map +1 -1
- package/esm/src/di/provider_util.metadata.json +1 -0
- package/esm/src/di/reflective_exceptions.d.ts +11 -16
- package/esm/src/di/reflective_exceptions.js +28 -22
- package/esm/src/di/reflective_exceptions.js.map +1 -1
- package/esm/src/di/reflective_injector.d.ts +3 -33
- package/esm/src/di/reflective_injector.js +10 -7
- package/esm/src/di/reflective_injector.js.map +1 -1
- package/esm/src/di/reflective_key.d.ts +1 -8
- package/esm/src/di/reflective_key.js +3 -2
- package/esm/src/di/reflective_key.js.map +1 -1
- package/esm/src/di/reflective_provider.d.ts +2 -1
- package/esm/src/di/reflective_provider.js +6 -5
- package/esm/src/di/reflective_provider.js.map +1 -1
- package/esm/src/di/reflective_provider.metadata.json +1 -0
- package/esm/src/di.d.ts +2 -2
- package/esm/src/di.js +6 -6
- package/esm/src/di.js.map +1 -1
- package/esm/src/facade/async.d.ts +11 -4
- package/esm/src/facade/async.js +25 -15
- package/esm/src/facade/async.js.map +1 -1
- package/esm/src/facade/base_wrapped_exception.js +4 -4
- package/esm/src/facade/base_wrapped_exception.js.map +1 -1
- package/esm/src/facade/collection.js +1 -1
- package/esm/src/facade/collection.js.map +1 -1
- package/esm/src/facade/collection.metadata.json +1 -1
- package/esm/src/facade/exception_handler.d.ts +2 -11
- package/esm/src/facade/exception_handler.js +8 -7
- package/esm/src/facade/exception_handler.js.map +1 -1
- package/esm/src/facade/exceptions.d.ts +4 -0
- package/esm/src/facade/exceptions.js +6 -2
- package/esm/src/facade/exceptions.js.map +1 -1
- package/esm/src/facade/exceptions.metadata.json +1 -0
- package/esm/src/facade/lang.d.ts +6 -4
- package/esm/src/facade/lang.js +12 -11
- package/esm/src/facade/lang.js.map +1 -1
- package/esm/src/facade/lang.metadata.json +1 -1
- package/esm/src/facade/math.d.ts +2 -0
- package/esm/src/facade/math.js +4 -0
- package/esm/src/facade/math.js.map +1 -0
- package/esm/src/facade/math.metadata.json +1 -0
- package/esm/src/facade/promise.js.map +1 -1
- package/esm/src/linker/component_factory.d.ts +5 -4
- package/esm/src/linker/component_factory.js +7 -3
- package/esm/src/linker/component_factory.js.map +1 -1
- package/esm/src/linker/component_resolver.d.ts +5 -4
- package/esm/src/linker/component_resolver.js +12 -7
- package/esm/src/linker/component_resolver.js.map +1 -1
- package/esm/src/linker/component_resolver.metadata.json +1 -1
- package/esm/src/linker/debug_context.js +5 -4
- package/esm/src/linker/debug_context.js.map +1 -1
- package/esm/src/linker/dynamic_component_loader.d.ts +5 -6
- package/esm/src/linker/dynamic_component_loader.js +5 -3
- package/esm/src/linker/dynamic_component_loader.js.map +1 -1
- package/esm/src/linker/dynamic_component_loader.metadata.json +1 -1
- package/esm/src/linker/element.d.ts +3 -3
- package/esm/src/linker/element.js +5 -5
- package/esm/src/linker/element.js.map +1 -1
- package/esm/src/linker/element_injector.js.map +1 -1
- package/esm/src/linker/element_ref.d.ts +1 -0
- package/esm/src/linker/element_ref.js +5 -5
- package/esm/src/linker/element_ref.js.map +1 -1
- package/esm/src/linker/exceptions.d.ts +4 -1
- package/esm/src/linker/exceptions.js +4 -1
- package/esm/src/linker/exceptions.js.map +1 -1
- package/esm/src/linker/query_list.d.ts +3 -10
- package/esm/src/linker/query_list.js +8 -7
- package/esm/src/linker/query_list.js.map +1 -1
- package/esm/src/linker/systemjs_component_resolver.d.ts +21 -0
- package/esm/src/linker/systemjs_component_resolver.js +44 -0
- package/esm/src/linker/systemjs_component_resolver.js.map +1 -0
- package/esm/src/linker/template_ref.d.ts +2 -1
- package/esm/src/linker/template_ref.js +1 -0
- package/esm/src/linker/template_ref.js.map +1 -1
- package/esm/src/linker/view.d.ts +12 -1
- package/esm/src/linker/view.js +62 -16
- package/esm/src/linker/view.js.map +1 -1
- package/esm/src/linker/view_container_ref.d.ts +2 -10
- package/esm/src/linker/view_container_ref.js +4 -3
- package/esm/src/linker/view_container_ref.js.map +1 -1
- package/esm/src/linker/view_ref.d.ts +5 -1
- package/esm/src/linker/view_ref.js +6 -2
- package/esm/src/linker/view_ref.js.map +1 -1
- package/esm/src/linker/view_type.js.map +1 -1
- package/esm/src/linker/view_utils.d.ts +4 -4
- package/esm/src/linker/view_utils.js +25 -22
- package/esm/src/linker/view_utils.js.map +1 -1
- package/esm/src/linker/view_utils.metadata.json +1 -1
- package/esm/src/linker.d.ts +5 -4
- package/esm/src/linker.js +5 -4
- package/esm/src/linker.js.map +1 -1
- package/esm/src/metadata/di.d.ts +8 -1
- package/esm/src/metadata/di.js +10 -3
- package/esm/src/metadata/di.js.map +1 -1
- package/esm/src/metadata/directives.d.ts +104 -20
- package/esm/src/metadata/directives.js +25 -19
- package/esm/src/metadata/directives.js.map +1 -1
- package/esm/src/metadata/lifecycle_hooks.d.ts +46 -31
- package/esm/src/metadata/lifecycle_hooks.js +464 -10
- package/esm/src/metadata/lifecycle_hooks.js.map +1 -1
- package/esm/src/metadata/lifecycle_hooks.metadata.json +1 -1
- package/esm/src/metadata/view.d.ts +6 -2
- package/esm/src/metadata/view.js +3 -1
- package/esm/src/metadata/view.js.map +1 -1
- package/esm/src/metadata/view.metadata.json +1 -1
- package/esm/src/metadata.d.ts +49 -15
- package/esm/src/metadata.js +35 -10
- package/esm/src/metadata.js.map +1 -1
- package/esm/src/metadata.metadata.json +1 -1
- package/esm/src/platform_common_providers.d.ts +1 -0
- package/esm/src/platform_common_providers.js +3 -3
- package/esm/src/platform_common_providers.js.map +1 -1
- package/esm/src/platform_common_providers.metadata.json +1 -1
- package/esm/src/platform_directives_and_pipes.d.ts +48 -45
- package/esm/src/platform_directives_and_pipes.js +50 -47
- package/esm/src/platform_directives_and_pipes.js.map +1 -1
- package/esm/src/platform_directives_and_pipes.metadata.json +1 -1
- package/esm/src/profile/profile.d.ts +5 -1
- package/esm/src/profile/profile.js +4 -0
- package/esm/src/profile/profile.js.map +1 -1
- package/esm/src/profile/profile.metadata.json +1 -1
- package/esm/src/profile/wtf_impl.js +1 -1
- package/esm/src/profile/wtf_impl.js.map +1 -1
- package/esm/src/profile/wtf_impl.metadata.json +1 -0
- package/esm/src/profile/wtf_init.js +2 -2
- package/esm/src/profile/wtf_init.js.map +1 -1
- package/esm/src/reflection/platform_reflection_capabilities.d.ts +4 -3
- package/esm/src/reflection/platform_reflection_capabilities.js.map +1 -1
- package/esm/src/reflection/reflection.d.ts +1 -1
- package/esm/src/reflection/reflection.js +2 -2
- package/esm/src/reflection/reflection.js.map +1 -1
- package/esm/src/reflection/reflection.metadata.json +1 -1
- package/esm/src/reflection/reflection_capabilities.d.ts +4 -5
- package/esm/src/reflection/reflection_capabilities.js +22 -10
- package/esm/src/reflection/reflection_capabilities.js.map +1 -1
- package/esm/src/reflection/reflector.d.ts +8 -20
- package/esm/src/reflection/reflector.js +13 -3
- package/esm/src/reflection/reflector.js.map +1 -1
- package/esm/src/reflection/reflector_reader.js +3 -3
- package/esm/src/reflection/reflector_reader.js.map +1 -1
- package/esm/src/reflection/types.js.map +1 -1
- package/esm/src/render/api.d.ts +17 -6
- package/esm/src/render/api.js +8 -1
- package/esm/src/render/api.js.map +1 -1
- package/esm/src/render.d.ts +1 -1
- package/esm/src/render.js +1 -1
- package/esm/src/render.js.map +1 -1
- package/esm/src/security.d.ts +22 -0
- package/esm/src/security.js +23 -0
- package/esm/src/security.js.map +1 -0
- package/esm/src/testability/testability.d.ts +3 -19
- package/esm/src/testability/testability.js +10 -5
- package/esm/src/testability/testability.js.map +1 -1
- package/esm/src/testability/testability.metadata.json +1 -1
- package/esm/src/util/decorators.d.ts +2 -1
- package/esm/src/util/decorators.js +10 -9
- package/esm/src/util/decorators.js.map +1 -1
- package/esm/src/util.js.map +1 -1
- package/esm/src/zone/ng_zone.d.ts +6 -17
- package/esm/src/zone/ng_zone.js +7 -6
- package/esm/src/zone/ng_zone.js.map +1 -1
- package/esm/src/zone/ng_zone_impl.d.ts +1 -4
- package/esm/src/zone/ng_zone_impl.js +3 -2
- package/esm/src/zone/ng_zone_impl.js.map +1 -1
- package/esm/src/zone.js.map +1 -1
- package/esm/testing/async.js +20 -22
- package/esm/testing/async.js.map +1 -1
- package/esm/testing/async.metadata.json +1 -0
- package/esm/testing/async_test_completer.js.map +1 -1
- package/esm/testing/fake_async.d.ts +4 -1
- package/esm/testing/fake_async.js +9 -2
- package/esm/testing/fake_async.js.map +1 -1
- package/esm/testing/lang_utils.js +1 -1
- package/esm/testing/lang_utils.js.map +1 -1
- package/esm/testing/lang_utils.metadata.json +1 -0
- package/esm/testing/logger.js +5 -3
- package/esm/testing/logger.js.map +1 -1
- package/esm/testing/logger.metadata.json +1 -1
- package/esm/testing/mock_application_ref.d.ts +1 -1
- package/esm/testing/mock_application_ref.js +1 -0
- package/esm/testing/mock_application_ref.js.map +1 -1
- package/esm/testing/mock_application_ref.metadata.json +1 -1
- package/esm/testing/ng_zone_mock.d.ts +0 -1
- package/esm/testing/ng_zone_mock.js +2 -1
- package/esm/testing/ng_zone_mock.js.map +1 -1
- package/esm/testing/ng_zone_mock.metadata.json +1 -1
- package/esm/testing/regexp.js +1 -1
- package/esm/testing/regexp.js.map +1 -1
- package/esm/testing/regexp.metadata.json +1 -0
- package/esm/testing/test_injector.d.ts +6 -12
- package/esm/testing/test_injector.js +4 -10
- package/esm/testing/test_injector.js.map +1 -1
- package/esm/testing/test_injector.metadata.json +1 -0
- package/esm/testing/testing.d.ts +2 -2
- package/esm/testing/testing.js +2 -2
- package/esm/testing/testing.js.map +1 -1
- package/esm/testing/testing.metadata.json +1 -1
- package/esm/testing.js.map +1 -1
- package/index.d.ts +5 -4
- package/index.js +10 -8
- package/index.js.map +1 -1
- package/package.json +5 -1
- package/private_export.d.ts +102 -10
- package/private_export.js +41 -9
- package/private_export.js.map +1 -1
- package/private_export.metadata.json +1 -1
- package/src/animation/active_animation_players_map.d.ts +11 -0
- package/src/animation/active_animation_players_map.js +54 -0
- package/src/animation/active_animation_players_map.js.map +1 -0
- package/src/animation/animation_constants.d.ts +4 -0
- package/src/animation/animation_constants.js +6 -0
- package/src/animation/animation_constants.js.map +1 -0
- package/src/animation/animation_constants.metadata.json +1 -0
- package/src/animation/animation_driver.d.ts +9 -0
- package/src/animation/animation_driver.js +25 -0
- package/src/animation/animation_driver.js.map +1 -0
- package/src/animation/animation_group_player.d.ts +18 -0
- package/src/animation/animation_group_player.js +64 -0
- package/src/animation/animation_group_player.js.map +1 -0
- package/src/animation/animation_keyframe.d.ts +6 -0
- package/src/animation/animation_keyframe.js +10 -0
- package/src/animation/animation_keyframe.js.map +1 -0
- package/src/animation/animation_player.d.ts +26 -0
- package/src/animation/animation_player.js +42 -0
- package/src/animation/animation_player.js.map +1 -0
- package/src/animation/animation_sequence_player.d.ts +21 -0
- package/src/animation/animation_sequence_player.js +69 -0
- package/src/animation/animation_sequence_player.js.map +1 -0
- package/src/animation/animation_style_util.d.ts +32 -0
- package/src/animation/animation_style_util.js +99 -0
- package/src/animation/animation_style_util.js.map +1 -0
- package/src/animation/animation_style_util.metadata.json +1 -0
- package/src/animation/animation_styles.d.ts +8 -0
- package/src/animation/animation_styles.js +9 -0
- package/src/animation/animation_styles.js.map +1 -0
- package/src/animation/metadata.d.ts +511 -0
- package/src/animation/metadata.js +627 -0
- package/src/animation/metadata.js.map +1 -0
- package/src/animation/metadata.metadata.json +1 -0
- package/src/application_common_providers.d.ts +1 -0
- package/src/application_common_providers.js +4 -3
- package/src/application_common_providers.js.map +1 -1
- package/src/application_common_providers.metadata.json +1 -1
- package/src/application_ref.d.ts +17 -41
- package/src/application_ref.js +30 -21
- package/src/application_ref.js.map +1 -1
- package/src/application_ref.metadata.json +1 -1
- package/src/application_tokens.d.ts +6 -1
- package/src/application_tokens.js +9 -4
- package/src/application_tokens.js.map +1 -1
- package/src/application_tokens.metadata.json +1 -1
- package/src/change_detection/change_detection.d.ts +9 -8
- package/src/change_detection/change_detection.js +21 -21
- package/src/change_detection/change_detection.js.map +1 -1
- package/src/change_detection/change_detection.metadata.json +1 -1
- package/src/change_detection/change_detection_util.d.ts +3 -1
- package/src/change_detection/change_detection_util.js +6 -5
- package/src/change_detection/change_detection_util.js.map +1 -1
- package/src/change_detection/change_detection_util.metadata.json +1 -1
- package/src/change_detection/change_detector_ref.d.ts +3 -0
- package/src/change_detection/change_detector_ref.js +3 -0
- package/src/change_detection/change_detector_ref.js.map +1 -1
- package/src/change_detection/constants.d.ts +1 -0
- package/src/change_detection/constants.js +4 -3
- package/src/change_detection/constants.js.map +1 -1
- package/src/change_detection/constants.metadata.json +1 -1
- package/src/change_detection/differs/default_iterable_differ.d.ts +6 -94
- package/src/change_detection/differs/default_iterable_differ.js +25 -18
- package/src/change_detection/differs/default_iterable_differ.js.map +1 -1
- package/src/change_detection/differs/default_keyvalue_differ.d.ts +3 -30
- package/src/change_detection/differs/default_keyvalue_differ.js +13 -8
- package/src/change_detection/differs/default_keyvalue_differ.js.map +1 -1
- package/src/change_detection/differs/iterable_differs.d.ts +4 -1
- package/src/change_detection/differs/iterable_differs.js +4 -3
- package/src/change_detection/differs/iterable_differs.js.map +1 -1
- package/src/change_detection/differs/keyvalue_differs.d.ts +2 -1
- package/src/change_detection/differs/keyvalue_differs.js +4 -3
- package/src/change_detection/differs/keyvalue_differs.js.map +1 -1
- package/src/change_detection/pipe_transform.js.map +1 -1
- package/src/change_detection.d.ts +1 -1
- package/src/change_detection.js +9 -9
- package/src/change_detection.js.map +1 -1
- package/src/console.js +2 -1
- package/src/console.js.map +1 -1
- package/src/console.metadata.json +1 -1
- package/src/debug/debug_node.d.ts +20 -2
- package/src/debug/debug_node.js +16 -2
- package/src/debug/debug_node.js.map +1 -1
- package/src/debug/debug_node.metadata.json +1 -0
- package/src/debug/debug_renderer.d.ts +10 -6
- package/src/debug/debug_renderer.js +12 -1
- package/src/debug/debug_renderer.js.map +1 -1
- package/src/di/decorators.d.ts +13 -1
- package/src/di/decorators.js +7 -1
- package/src/di/decorators.js.map +1 -1
- package/src/di/decorators.metadata.json +1 -1
- package/src/di/forward_ref.d.ts +3 -1
- package/src/di/forward_ref.js +3 -1
- package/src/di/forward_ref.js.map +1 -1
- package/src/di/injector.d.ts +4 -1
- package/src/di/injector.js +5 -2
- package/src/di/injector.js.map +1 -1
- package/src/di/injector.metadata.json +1 -1
- package/src/di/metadata.d.ts +8 -1
- package/src/di/metadata.js +10 -3
- package/src/di/metadata.js.map +1 -1
- package/src/di/opaque_token.d.ts +2 -1
- package/src/di/opaque_token.js +22 -21
- package/src/di/opaque_token.js.map +1 -1
- package/src/di/provider.d.ts +11 -10
- package/src/di/provider.js +17 -14
- package/src/di/provider.js.map +1 -1
- package/src/di/provider.metadata.json +1 -0
- package/src/di/provider_util.js.map +1 -1
- package/src/di/provider_util.metadata.json +1 -0
- package/src/di/reflective_exceptions.d.ts +11 -16
- package/src/di/reflective_exceptions.js +28 -22
- package/src/di/reflective_exceptions.js.map +1 -1
- package/src/di/reflective_injector.d.ts +3 -33
- package/src/di/reflective_injector.js +9 -6
- package/src/di/reflective_injector.js.map +1 -1
- package/src/di/reflective_key.d.ts +1 -8
- package/src/di/reflective_key.js +3 -2
- package/src/di/reflective_key.js.map +1 -1
- package/src/di/reflective_provider.d.ts +2 -1
- package/src/di/reflective_provider.js +6 -5
- package/src/di/reflective_provider.js.map +1 -1
- package/src/di/reflective_provider.metadata.json +1 -0
- package/src/di.d.ts +2 -2
- package/src/di.js +7 -9
- package/src/di.js.map +1 -1
- package/src/facade/async.d.ts +11 -4
- package/src/facade/async.js +27 -17
- package/src/facade/async.js.map +1 -1
- package/src/facade/base_wrapped_exception.js +4 -4
- package/src/facade/base_wrapped_exception.js.map +1 -1
- package/src/facade/collection.js.map +1 -1
- package/src/facade/collection.metadata.json +1 -1
- package/src/facade/exception_handler.d.ts +2 -11
- package/src/facade/exception_handler.js +8 -7
- package/src/facade/exception_handler.js.map +1 -1
- package/src/facade/exceptions.d.ts +4 -0
- package/src/facade/exceptions.js +6 -2
- package/src/facade/exceptions.js.map +1 -1
- package/src/facade/exceptions.metadata.json +1 -0
- package/src/facade/lang.d.ts +6 -4
- package/src/facade/lang.js +12 -11
- package/src/facade/lang.js.map +1 -1
- package/src/facade/lang.metadata.json +1 -1
- package/src/facade/math.d.ts +2 -0
- package/src/facade/math.js +5 -0
- package/src/facade/math.js.map +1 -0
- package/src/facade/math.metadata.json +1 -0
- package/src/facade/promise.js.map +1 -1
- package/src/linker/component_factory.d.ts +5 -4
- package/src/linker/component_factory.js +7 -3
- package/src/linker/component_factory.js.map +1 -1
- package/src/linker/component_resolver.d.ts +5 -4
- package/src/linker/component_resolver.js +12 -7
- package/src/linker/component_resolver.js.map +1 -1
- package/src/linker/component_resolver.metadata.json +1 -1
- package/src/linker/debug_context.js +5 -4
- package/src/linker/debug_context.js.map +1 -1
- package/src/linker/dynamic_component_loader.d.ts +5 -6
- package/src/linker/dynamic_component_loader.js +5 -3
- package/src/linker/dynamic_component_loader.js.map +1 -1
- package/src/linker/dynamic_component_loader.metadata.json +1 -1
- package/src/linker/element.d.ts +3 -3
- package/src/linker/element.js +5 -5
- package/src/linker/element.js.map +1 -1
- package/src/linker/element_injector.js.map +1 -1
- package/src/linker/element_ref.d.ts +1 -0
- package/src/linker/element_ref.js +5 -5
- package/src/linker/element_ref.js.map +1 -1
- package/src/linker/exceptions.d.ts +4 -1
- package/src/linker/exceptions.js +4 -1
- package/src/linker/exceptions.js.map +1 -1
- package/src/linker/query_list.d.ts +3 -10
- package/src/linker/query_list.js +8 -7
- package/src/linker/query_list.js.map +1 -1
- package/src/linker/systemjs_component_resolver.d.ts +21 -0
- package/src/linker/systemjs_component_resolver.js +52 -0
- package/src/linker/systemjs_component_resolver.js.map +1 -0
- package/src/linker/template_ref.d.ts +2 -1
- package/src/linker/template_ref.js +1 -0
- package/src/linker/template_ref.js.map +1 -1
- package/src/linker/view.d.ts +12 -1
- package/src/linker/view.js +65 -15
- package/src/linker/view.js.map +1 -1
- package/src/linker/view_container_ref.d.ts +2 -10
- package/src/linker/view_container_ref.js +4 -3
- package/src/linker/view_container_ref.js.map +1 -1
- package/src/linker/view_ref.d.ts +5 -1
- package/src/linker/view_ref.js +6 -2
- package/src/linker/view_ref.js.map +1 -1
- package/src/linker/view_type.js.map +1 -1
- package/src/linker/view_utils.d.ts +4 -4
- package/src/linker/view_utils.js +25 -22
- package/src/linker/view_utils.js.map +1 -1
- package/src/linker/view_utils.metadata.json +1 -1
- package/src/linker.d.ts +5 -4
- package/src/linker.js +12 -9
- package/src/linker.js.map +1 -1
- package/src/metadata/di.d.ts +8 -1
- package/src/metadata/di.js +10 -3
- package/src/metadata/di.js.map +1 -1
- package/src/metadata/directives.d.ts +104 -20
- package/src/metadata/directives.js +25 -27
- package/src/metadata/directives.js.map +1 -1
- package/src/metadata/lifecycle_hooks.d.ts +46 -31
- package/src/metadata/lifecycle_hooks.js +496 -10
- package/src/metadata/lifecycle_hooks.js.map +1 -1
- package/src/metadata/lifecycle_hooks.metadata.json +1 -1
- package/src/metadata/view.d.ts +6 -2
- package/src/metadata/view.js +3 -1
- package/src/metadata/view.js.map +1 -1
- package/src/metadata/view.metadata.json +1 -1
- package/src/metadata.d.ts +49 -15
- package/src/metadata.js +70 -37
- package/src/metadata.js.map +1 -1
- package/src/metadata.metadata.json +1 -1
- package/src/platform_common_providers.d.ts +1 -0
- package/src/platform_common_providers.js +3 -3
- package/src/platform_common_providers.js.map +1 -1
- package/src/platform_common_providers.metadata.json +1 -1
- package/src/platform_directives_and_pipes.d.ts +48 -45
- package/src/platform_directives_and_pipes.js +50 -47
- package/src/platform_directives_and_pipes.js.map +1 -1
- package/src/platform_directives_and_pipes.metadata.json +1 -1
- package/src/profile/profile.d.ts +5 -1
- package/src/profile/profile.js +5 -3
- package/src/profile/profile.js.map +1 -1
- package/src/profile/profile.metadata.json +1 -1
- package/src/profile/wtf_impl.js +1 -1
- package/src/profile/wtf_impl.js.map +1 -1
- package/src/profile/wtf_impl.metadata.json +1 -0
- package/src/profile/wtf_init.js +2 -2
- package/src/profile/wtf_init.js.map +1 -1
- package/src/reflection/platform_reflection_capabilities.d.ts +4 -3
- package/src/reflection/platform_reflection_capabilities.js.map +1 -1
- package/src/reflection/reflection.d.ts +1 -1
- package/src/reflection/reflection.js +2 -2
- package/src/reflection/reflection.js.map +1 -1
- package/src/reflection/reflection.metadata.json +1 -1
- package/src/reflection/reflection_capabilities.d.ts +4 -5
- package/src/reflection/reflection_capabilities.js +24 -10
- package/src/reflection/reflection_capabilities.js.map +1 -1
- package/src/reflection/reflector.d.ts +8 -20
- package/src/reflection/reflector.js +13 -3
- package/src/reflection/reflector.js.map +1 -1
- package/src/reflection/reflector_reader.js +3 -3
- package/src/reflection/reflector_reader.js.map +1 -1
- package/src/reflection/types.js.map +1 -1
- package/src/render/api.d.ts +17 -6
- package/src/render/api.js +8 -1
- package/src/render/api.js.map +1 -1
- package/src/render.d.ts +1 -1
- package/src/render.js +2 -2
- package/src/render.js.map +1 -1
- package/src/security.d.ts +22 -0
- package/src/security.js +28 -0
- package/src/security.js.map +1 -0
- package/src/testability/testability.d.ts +3 -19
- package/src/testability/testability.js +10 -5
- package/src/testability/testability.js.map +1 -1
- package/src/testability/testability.metadata.json +1 -1
- package/src/util/decorators.d.ts +2 -1
- package/src/util/decorators.js +10 -9
- package/src/util/decorators.js.map +1 -1
- package/src/util.js.map +1 -1
- package/src/zone/ng_zone.d.ts +6 -17
- package/src/zone/ng_zone.js +11 -6
- package/src/zone/ng_zone.js.map +1 -1
- package/src/zone/ng_zone_impl.d.ts +1 -4
- package/src/zone/ng_zone_impl.js +3 -2
- package/src/zone/ng_zone_impl.js.map +1 -1
- package/src/zone.js.map +1 -1
- package/testing/async.js +20 -22
- package/testing/async.js.map +1 -1
- package/testing/async.metadata.json +1 -0
- package/testing/async_test_completer.js.map +1 -1
- package/testing/fake_async.d.ts +4 -1
- package/testing/fake_async.js +10 -2
- package/testing/fake_async.js.map +1 -1
- package/testing/lang_utils.js +1 -1
- package/testing/lang_utils.js.map +1 -1
- package/testing/lang_utils.metadata.json +1 -0
- package/testing/logger.js +5 -3
- package/testing/logger.js.map +1 -1
- package/testing/logger.metadata.json +1 -1
- package/testing/mock_application_ref.d.ts +1 -1
- package/testing/mock_application_ref.js +1 -0
- package/testing/mock_application_ref.js.map +1 -1
- package/testing/mock_application_ref.metadata.json +1 -1
- package/testing/ng_zone_mock.d.ts +0 -1
- package/testing/ng_zone_mock.js +2 -1
- package/testing/ng_zone_mock.js.map +1 -1
- package/testing/ng_zone_mock.metadata.json +1 -1
- package/testing/regexp.js +1 -1
- package/testing/regexp.js.map +1 -1
- package/testing/regexp.metadata.json +1 -0
- package/testing/test_injector.d.ts +6 -12
- package/testing/test_injector.js +3 -9
- package/testing/test_injector.js.map +1 -1
- package/testing/test_injector.metadata.json +1 -0
- package/testing/testing.d.ts +2 -2
- package/testing/testing.js +5 -5
- package/testing/testing.js.map +1 -1
- package/testing/testing.metadata.json +1 -1
- package/testing.js.map +1 -1
- package/esm/core.umd.js.map +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
+
import { PLATFORM_CORE_PROVIDERS } from './application_ref';
|
|
1
2
|
import { Console } from './console';
|
|
2
3
|
import { Reflector, reflector } from './reflection/reflection';
|
|
3
4
|
import { ReflectorReader } from './reflection/reflector_reader';
|
|
4
5
|
import { TestabilityRegistry } from './testability/testability';
|
|
5
|
-
import { PLATFORM_CORE_PROVIDERS } from './application_ref';
|
|
6
6
|
function _reflector() {
|
|
7
7
|
return reflector;
|
|
8
8
|
}
|
|
9
9
|
var __unused; // prevent missing use Dart warning.
|
|
10
10
|
/**
|
|
11
11
|
* A default set of providers which should be included in any Angular platform.
|
|
12
|
+
* @experimental
|
|
12
13
|
*/
|
|
13
14
|
export const PLATFORM_COMMON_PROVIDERS = [
|
|
14
15
|
PLATFORM_CORE_PROVIDERS,
|
|
15
16
|
/*@ts2dart_Provider*/ { provide: Reflector, useFactory: _reflector, deps: [] },
|
|
16
|
-
/*@ts2dart_Provider*/ { provide: ReflectorReader, useExisting: Reflector },
|
|
17
|
-
TestabilityRegistry,
|
|
17
|
+
/*@ts2dart_Provider*/ { provide: ReflectorReader, useExisting: Reflector }, TestabilityRegistry,
|
|
18
18
|
Console
|
|
19
19
|
];
|
|
20
20
|
//# sourceMappingURL=platform_common_providers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform_common_providers.js","sourceRoot":"
|
|
1
|
+
{"version":3,"file":"platform_common_providers.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/platform_common_providers.ts"],"names":[],"mappings":"OAEO,EAAC,uBAAuB,EAAC,MAAM,mBAAmB;OAClD,EAAC,OAAO,EAAC,MAAM,WAAW;OAE1B,EAAC,SAAS,EAAE,SAAS,EAAC,MAAM,yBAAyB;OACrD,EAAC,eAAe,EAAC,MAAM,+BAA+B;OACtD,EAAC,mBAAmB,EAAC,MAAM,2BAA2B;AAE7D;IACE,MAAM,CAAC,SAAS,CAAC;AACnB,CAAC;AAED,IAAI,QAAc,CAAC,CAAE,oCAAoC;AAEzD;;;GAGG;AACH,OAAO,MAAM,yBAAyB,GAAqD;IACzF,uBAAuB;IACvB,qBAAqB,CAAC,EAAC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,EAAC;IAC5E,qBAAqB,CAAC,EAAC,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,SAAS,EAAC,EAAE,mBAAmB;IAC7F,OAAO;CACR,CAAC","sourcesContent":["import {Type} from '../src/facade/lang';\n\nimport {PLATFORM_CORE_PROVIDERS} from './application_ref';\nimport {Console} from './console';\nimport {Provider} from './di';\nimport {Reflector, reflector} from './reflection/reflection';\nimport {ReflectorReader} from './reflection/reflector_reader';\nimport {TestabilityRegistry} from './testability/testability';\n\nfunction _reflector(): Reflector {\n return reflector;\n}\n\nvar __unused: Type; // prevent missing use Dart warning.\n\n/**\n * A default set of providers which should be included in any Angular platform.\n * @experimental\n */\nexport const PLATFORM_COMMON_PROVIDERS: Array<any|Type|Provider|any[]> = /*@ts2dart_const*/[\n PLATFORM_CORE_PROVIDERS,\n /*@ts2dart_Provider*/ {provide: Reflector, useFactory: _reflector, deps: []},\n /*@ts2dart_Provider*/ {provide: ReflectorReader, useExisting: Reflector}, TestabilityRegistry,\n Console\n];\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","metadata":{"PLATFORM_COMMON_PROVIDERS":[{"__symbolic":"reference","
|
|
1
|
+
{"__symbolic":"module","version":1,"metadata":{"PLATFORM_COMMON_PROVIDERS":[{"__symbolic":"reference","module":"./application_ref","name":"PLATFORM_CORE_PROVIDERS"},{"provide":{"__symbolic":"reference","module":"./reflection/reflection","name":"Reflector"},"useFactory":{"__symbolic":"reference","name":"_reflector"},"deps":[]},{"provide":{"__symbolic":"reference","module":"./reflection/reflector_reader","name":"ReflectorReader"},"useExisting":{"__symbolic":"reference","module":"./reflection/reflection","name":"Reflector"}},{"__symbolic":"reference","module":"./testability/testability","name":"TestabilityRegistry"},{"__symbolic":"reference","module":"./console","name":"Console"}]}}
|
|
@@ -1,50 +1,53 @@
|
|
|
1
1
|
import { OpaqueToken } from './di';
|
|
2
2
|
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
3
|
+
A token that can be provided when bootstrapping an application to make an array of directives
|
|
4
|
+
* available in every component of the application.
|
|
5
|
+
*
|
|
6
|
+
* ### Example
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import {PLATFORM_DIRECTIVES} from '@angular/core';
|
|
10
|
+
* import {OtherDirective} from './myDirectives';
|
|
11
|
+
*
|
|
12
|
+
* @Component({
|
|
13
|
+
* selector: 'my-component',
|
|
14
|
+
* template: `
|
|
15
|
+
* <!-- can use other directive even though the component does not list it in `directives` -->
|
|
16
|
+
* <other-directive></other-directive>
|
|
17
|
+
* `
|
|
18
|
+
* })
|
|
19
|
+
* export class MyComponent {
|
|
20
|
+
* ...
|
|
21
|
+
* }
|
|
22
|
+
*
|
|
23
|
+
* bootstrap(MyComponent, [{provide: PLATFORM_DIRECTIVES, useValue: [OtherDirective],
|
|
24
|
+
multi:true}]);
|
|
25
|
+
* ```
|
|
26
|
+
* @stable
|
|
27
|
+
*/
|
|
26
28
|
export declare const PLATFORM_DIRECTIVES: OpaqueToken;
|
|
27
29
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
30
|
+
* A token that can be provided when bootstraping an application to make an array of pipes
|
|
31
|
+
* available in every component of the application.
|
|
32
|
+
*
|
|
33
|
+
* ### Example
|
|
34
|
+
*
|
|
35
|
+
* ```typescript
|
|
36
|
+
* import {PLATFORM_PIPES} from '@angular/core';
|
|
37
|
+
* import {OtherPipe} from './myPipe';
|
|
38
|
+
*
|
|
39
|
+
* @Component({
|
|
40
|
+
* selector: 'my-component',
|
|
41
|
+
* template: `
|
|
42
|
+
* {{123 | other-pipe}}
|
|
43
|
+
* `
|
|
44
|
+
* })
|
|
45
|
+
* export class MyComponent {
|
|
46
|
+
* ...
|
|
47
|
+
* }
|
|
48
|
+
*
|
|
49
|
+
* bootstrap(MyComponent, [{provide: PLATFORM_PIPES, useValue: [OtherPipe], multi:true}]);
|
|
50
|
+
* ```
|
|
51
|
+
* @stable
|
|
52
|
+
*/
|
|
50
53
|
export declare const PLATFORM_PIPES: OpaqueToken;
|
|
@@ -1,52 +1,55 @@
|
|
|
1
1
|
import { OpaqueToken } from './di';
|
|
2
2
|
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
3
|
+
A token that can be provided when bootstrapping an application to make an array of directives
|
|
4
|
+
* available in every component of the application.
|
|
5
|
+
*
|
|
6
|
+
* ### Example
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import {PLATFORM_DIRECTIVES} from '@angular/core';
|
|
10
|
+
* import {OtherDirective} from './myDirectives';
|
|
11
|
+
*
|
|
12
|
+
* @Component({
|
|
13
|
+
* selector: 'my-component',
|
|
14
|
+
* template: `
|
|
15
|
+
* <!-- can use other directive even though the component does not list it in `directives` -->
|
|
16
|
+
* <other-directive></other-directive>
|
|
17
|
+
* `
|
|
18
|
+
* })
|
|
19
|
+
* export class MyComponent {
|
|
20
|
+
* ...
|
|
21
|
+
* }
|
|
22
|
+
*
|
|
23
|
+
* bootstrap(MyComponent, [{provide: PLATFORM_DIRECTIVES, useValue: [OtherDirective],
|
|
24
|
+
multi:true}]);
|
|
25
|
+
* ```
|
|
26
|
+
* @stable
|
|
27
|
+
*/
|
|
26
28
|
export const PLATFORM_DIRECTIVES =
|
|
27
|
-
/*@ts2dart_const*/ new OpaqueToken(
|
|
29
|
+
/*@ts2dart_const*/ new OpaqueToken('Platform Directives');
|
|
28
30
|
/**
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
31
|
+
* A token that can be provided when bootstraping an application to make an array of pipes
|
|
32
|
+
* available in every component of the application.
|
|
33
|
+
*
|
|
34
|
+
* ### Example
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import {PLATFORM_PIPES} from '@angular/core';
|
|
38
|
+
* import {OtherPipe} from './myPipe';
|
|
39
|
+
*
|
|
40
|
+
* @Component({
|
|
41
|
+
* selector: 'my-component',
|
|
42
|
+
* template: `
|
|
43
|
+
* {{123 | other-pipe}}
|
|
44
|
+
* `
|
|
45
|
+
* })
|
|
46
|
+
* export class MyComponent {
|
|
47
|
+
* ...
|
|
48
|
+
* }
|
|
49
|
+
*
|
|
50
|
+
* bootstrap(MyComponent, [{provide: PLATFORM_PIPES, useValue: [OtherPipe], multi:true}]);
|
|
51
|
+
* ```
|
|
52
|
+
* @stable
|
|
53
|
+
*/
|
|
54
|
+
export const PLATFORM_PIPES = new OpaqueToken('Platform Pipes');
|
|
52
55
|
//# sourceMappingURL=platform_directives_and_pipes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform_directives_and_pipes.js","sourceRoot":"
|
|
1
|
+
{"version":3,"file":"platform_directives_and_pipes.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/platform_directives_and_pipes.ts"],"names":[],"mappings":"OAAO,EAAC,WAAW,EAAC,MAAM,MAAM;AAEhC;;;;;;;;;;;;;;;;;;;;;;;;;IAyBI;AAEJ,OAAO,MAAM,mBAAmB;AAC5B,kBAAkB,CAAC,IAAI,WAAW,CAAC,qBAAqB,CAAC,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;IAuBI;AAEJ,OAAO,MAAM,cAAc,GAAmC,IAAI,WAAW,CAAC,gBAAgB,CAAC,CAAC","sourcesContent":["import {OpaqueToken} from './di';\n\n/**\n A token that can be provided when bootstrapping an application to make an array of directives\n * available in every component of the application.\n *\n * ### Example\n *\n * ```typescript\n * import {PLATFORM_DIRECTIVES} from '@angular/core';\n * import {OtherDirective} from './myDirectives';\n *\n * @Component({\n * selector: 'my-component',\n * template: `\n * <!-- can use other directive even though the component does not list it in `directives` -->\n * <other-directive></other-directive>\n * `\n * })\n * export class MyComponent {\n * ...\n * }\n *\n * bootstrap(MyComponent, [{provide: PLATFORM_DIRECTIVES, useValue: [OtherDirective],\n multi:true}]);\n * ```\n * @stable\n */\n\nexport const PLATFORM_DIRECTIVES: OpaqueToken =\n /*@ts2dart_const*/ new OpaqueToken('Platform Directives');\n\n/**\n * A token that can be provided when bootstraping an application to make an array of pipes\n * available in every component of the application.\n *\n * ### Example\n *\n * ```typescript\n * import {PLATFORM_PIPES} from '@angular/core';\n * import {OtherPipe} from './myPipe';\n *\n * @Component({\n * selector: 'my-component',\n * template: `\n * {{123 | other-pipe}}\n * `\n * })\n * export class MyComponent {\n * ...\n * }\n *\n * bootstrap(MyComponent, [{provide: PLATFORM_PIPES, useValue: [OtherPipe], multi:true}]);\n * ```\n * @stable\n */\n\nexport const PLATFORM_PIPES: OpaqueToken = /*@ts2dart_const*/ new OpaqueToken('Platform Pipes');\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","metadata":{"PLATFORM_DIRECTIVES":{"__symbolic":"new","expression":{"__symbolic":"reference","
|
|
1
|
+
{"__symbolic":"module","version":1,"metadata":{"PLATFORM_DIRECTIVES":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./di","name":"OpaqueToken"},"arguments":["Platform Directives"]},"PLATFORM_PIPES":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./di","name":"OpaqueToken"},"arguments":["Platform Pipes"]}}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { WtfScopeFn } from './wtf_impl';
|
|
2
1
|
import * as impl from './wtf_impl';
|
|
2
|
+
export { WtfScopeFn } from './wtf_impl';
|
|
3
3
|
/**
|
|
4
4
|
* True if WTF is enabled.
|
|
5
5
|
*/
|
|
@@ -32,6 +32,7 @@ export declare var wtfEnabled: boolean;
|
|
|
32
32
|
* needs to be fixed before the app should be profiled. Add try-finally only when you expect that
|
|
33
33
|
* an exception is expected during normal execution while profiling.
|
|
34
34
|
*
|
|
35
|
+
* @experimental
|
|
35
36
|
*/
|
|
36
37
|
export declare var wtfCreateScope: (signature: string, flags?: any) => impl.WtfScopeFn;
|
|
37
38
|
/**
|
|
@@ -41,6 +42,7 @@ export declare var wtfCreateScope: (signature: string, flags?: any) => impl.WtfS
|
|
|
41
42
|
* - `returnValue` (optional) to be passed to the WTF.
|
|
42
43
|
*
|
|
43
44
|
* Returns the `returnValue for easy chaining.
|
|
45
|
+
* @experimental
|
|
44
46
|
*/
|
|
45
47
|
export declare var wtfLeave: <T>(scope: any, returnValue?: T) => T;
|
|
46
48
|
/**
|
|
@@ -54,11 +56,13 @@ export declare var wtfLeave: <T>(scope: any, returnValue?: T) => T;
|
|
|
54
56
|
* wtfEndTimeRange(s);
|
|
55
57
|
* });
|
|
56
58
|
* }
|
|
59
|
+
* @experimental
|
|
57
60
|
*/
|
|
58
61
|
export declare var wtfStartTimeRange: (rangeType: string, action: string) => any;
|
|
59
62
|
/**
|
|
60
63
|
* Ends a async time range operation.
|
|
61
64
|
* [range] is the return value from [wtfStartTimeRange] Async ranges only work if WTF has been
|
|
62
65
|
* enabled.
|
|
66
|
+
* @experimental
|
|
63
67
|
*/
|
|
64
68
|
export declare var wtfEndTimeRange: (range: any) => void;
|
|
@@ -35,6 +35,7 @@ function noopScope(arg0, arg1) {
|
|
|
35
35
|
* needs to be fixed before the app should be profiled. Add try-finally only when you expect that
|
|
36
36
|
* an exception is expected during normal execution while profiling.
|
|
37
37
|
*
|
|
38
|
+
* @experimental
|
|
38
39
|
*/
|
|
39
40
|
export var wtfCreateScope = wtfEnabled ? impl.createScope : (signature, flags) => noopScope;
|
|
40
41
|
/**
|
|
@@ -44,6 +45,7 @@ export var wtfCreateScope = wtfEnabled ? impl.createScope : (signature, flags) =
|
|
|
44
45
|
* - `returnValue` (optional) to be passed to the WTF.
|
|
45
46
|
*
|
|
46
47
|
* Returns the `returnValue for easy chaining.
|
|
48
|
+
* @experimental
|
|
47
49
|
*/
|
|
48
50
|
export var wtfLeave = wtfEnabled ? impl.leave : (s, r) => r;
|
|
49
51
|
/**
|
|
@@ -57,12 +59,14 @@ export var wtfLeave = wtfEnabled ? impl.leave : (s, r) => r;
|
|
|
57
59
|
* wtfEndTimeRange(s);
|
|
58
60
|
* });
|
|
59
61
|
* }
|
|
62
|
+
* @experimental
|
|
60
63
|
*/
|
|
61
64
|
export var wtfStartTimeRange = wtfEnabled ? impl.startTimeRange : (rangeType, action) => null;
|
|
62
65
|
/**
|
|
63
66
|
* Ends a async time range operation.
|
|
64
67
|
* [range] is the return value from [wtfStartTimeRange] Async ranges only work if WTF has been
|
|
65
68
|
* enabled.
|
|
69
|
+
* @experimental
|
|
66
70
|
*/
|
|
67
71
|
export var wtfEndTimeRange = wtfEnabled ? impl.endTimeRange : (r) => null;
|
|
68
72
|
//# sourceMappingURL=profile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.js","sourceRoot":"
|
|
1
|
+
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/profile/profile.ts"],"names":[],"mappings":"OAAO,KAAK,IAAI,MAAM,YAAY;AAKlC,6EAA6E;AAE7E;;GAEG;AACH,OAAO,IAAI,UAAU,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;AAEzC,mBAAmB,IAAU,EAAE,IAAU;IACvC,MAAM,CAAC,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,IAAI,cAAc,GACrB,UAAU,GAAG,IAAI,CAAC,WAAW,GAAG,CAAC,SAAiB,EAAE,KAAW,KAAK,SAAS,CAAC;AAElF;;;;;;;;GAQG;AACH,OAAO,IAAI,QAAQ,GACf,UAAU,GAAG,IAAI,CAAC,KAAK,GAAG,CAAC,CAAM,EAAE,CAAO,KAAK,CAAC,CAAC;AAErD;;;;;;;;;;;;GAYG;AACH,OAAO,IAAI,iBAAiB,GACxB,UAAU,GAAG,IAAI,CAAC,cAAc,GAAG,CAAC,SAAiB,EAAE,MAAc,KAAK,IAAI,CAAC;AAEnF;;;;;GAKG;AACH,OAAO,IAAI,eAAe,GACtB,UAAU,GAAG,IAAI,CAAC,YAAY,GAAG,CAAC,CAAM,KAAK,IAAI,CAAC","sourcesContent":["import * as impl from './wtf_impl';\n\nexport {WtfScopeFn} from './wtf_impl';\n\n\n// Change exports to const once https://github.com/angular/ts2dart/issues/150\n\n/**\n * True if WTF is enabled.\n */\nexport var wtfEnabled = impl.detectWTF();\n\nfunction noopScope(arg0?: any, arg1?: any): any {\n return null;\n}\n\n/**\n * Create trace scope.\n *\n * Scopes must be strictly nested and are analogous to stack frames, but\n * do not have to follow the stack frames. Instead it is recommended that they follow logical\n * nesting. You may want to use\n * [Event\n * Signatures](http://google.github.io/tracing-framework/instrumenting-code.html#custom-events)\n * as they are defined in WTF.\n *\n * Used to mark scope entry. The return value is used to leave the scope.\n *\n * var myScope = wtfCreateScope('MyClass#myMethod(ascii someVal)');\n *\n * someMethod() {\n * var s = myScope('Foo'); // 'Foo' gets stored in tracing UI\n * // DO SOME WORK HERE\n * return wtfLeave(s, 123); // Return value 123\n * }\n *\n * Note, adding try-finally block around the work to ensure that `wtfLeave` gets called can\n * negatively impact the performance of your application. For this reason we recommend that\n * you don't add them to ensure that `wtfLeave` gets called. In production `wtfLeave` is a noop and\n * so try-finally block has no value. When debugging perf issues, skipping `wtfLeave`, do to\n * exception, will produce incorrect trace, but presence of exception signifies logic error which\n * needs to be fixed before the app should be profiled. Add try-finally only when you expect that\n * an exception is expected during normal execution while profiling.\n *\n * @experimental\n */\nexport var wtfCreateScope: (signature: string, flags?: any) => impl.WtfScopeFn =\n wtfEnabled ? impl.createScope : (signature: string, flags?: any) => noopScope;\n\n/**\n * Used to mark end of Scope.\n *\n * - `scope` to end.\n * - `returnValue` (optional) to be passed to the WTF.\n *\n * Returns the `returnValue for easy chaining.\n * @experimental\n */\nexport var wtfLeave: <T>(scope: any, returnValue?: T) => T =\n wtfEnabled ? impl.leave : (s: any, r?: any) => r;\n\n/**\n * Used to mark Async start. Async are similar to scope but they don't have to be strictly nested.\n * The return value is used in the call to [endAsync]. Async ranges only work if WTF has been\n * enabled.\n *\n * someMethod() {\n * var s = wtfStartTimeRange('HTTP:GET', 'some.url');\n * var future = new Future.delay(5).then((_) {\n * wtfEndTimeRange(s);\n * });\n * }\n * @experimental\n */\nexport var wtfStartTimeRange: (rangeType: string, action: string) => any =\n wtfEnabled ? impl.startTimeRange : (rangeType: string, action: string) => null;\n\n/**\n * Ends a async time range operation.\n * [range] is the return value from [wtfStartTimeRange] Async ranges only work if WTF has been\n * enabled.\n * @experimental\n */\nexport var wtfEndTimeRange: (range: any) => void =\n wtfEnabled ? impl.endTimeRange : (r: any) => null;\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","metadata":{"wtfEnabled":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"detectWTF","
|
|
1
|
+
{"__symbolic":"module","version":1,"metadata":{"wtfEnabled":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"./wtf_impl","name":"detectWTF"}},"wtfCreateScope":{"__symbolic":"error","message":"Expression form not supported","line":46,"character":80},"wtfLeave":{"__symbolic":"error","message":"Expression form not supported","line":58,"character":60},"wtfStartTimeRange":{"__symbolic":"error","message":"Expression form not supported","line":74,"character":74},"wtfEndTimeRange":{"__symbolic":"error","message":"Expression form not supported","line":83,"character":50}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wtf_impl.js","sourceRoot":"
|
|
1
|
+
{"version":3,"file":"wtf_impl.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/profile/wtf_impl.ts"],"names":[],"mappings":"OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB;AA0BrC,IAAI,KAAY,CAAC;AACjB,IAAI,MAAc,CAAC;AAEnB;IACE,IAAI,GAAG,GAAS,MAAgC,CAAC,KAAK,CAAC,CAAC;IACxD,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QACR,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC,CAAC;QACrB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;YACV,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC;YACzB,MAAM,CAAC,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IACD,MAAM,CAAC,KAAK,CAAC;AACf,CAAC;AAED,4BAA4B,SAAiB,EAAE,KAAK,GAAQ,IAAI;IAC9D,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,sBAAyB,KAAY,EAAE,WAAe;IACpD,KAAK,CAAC,UAAU,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;IACrC,MAAM,CAAC,WAAW,CAAC;AACrB,CAAC;AAED,+BAA+B,SAAiB,EAAE,MAAc;IAC9D,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AACjD,CAAC;AAED,6BAA6B,KAAY;IACvC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;AAC5B,CAAC","sourcesContent":["import {global} from '../facade/lang';\n\n/**\n * A scope function for the Web Tracing Framework (WTF).\n */\nexport interface WtfScopeFn { (arg0?: any, arg1?: any): any; }\n\ninterface WTF {\n trace: Trace;\n}\n\ninterface Trace {\n events: Events;\n leaveScope(scope: Scope, returnValue: any): any /** TODO #9100 */;\n beginTimeRange(rangeType: string, action: string): Range;\n endTimeRange(range: Range): any /** TODO #9100 */;\n}\n\nexport interface Range {}\n\ninterface Events {\n createScope(signature: string, flags: any): Scope;\n}\n\nexport interface Scope { (...args: any[] /** TODO #9100 */): any; }\n\nvar trace: Trace;\nvar events: Events;\n\nexport function detectWTF(): boolean {\n var wtf: WTF = (global as any /** TODO #9100 */)['wtf'];\n if (wtf) {\n trace = wtf['trace'];\n if (trace) {\n events = trace['events'];\n return true;\n }\n }\n return false;\n}\n\nexport function createScope(signature: string, flags: any = null): any {\n return events.createScope(signature, flags);\n}\n\nexport function leave<T>(scope: Scope, returnValue?: T): T {\n trace.leaveScope(scope, returnValue);\n return returnValue;\n}\n\nexport function startTimeRange(rangeType: string, action: string): Range {\n return trace.beginTimeRange(rangeType, action);\n}\n\nexport function endTimeRange(range: Range): void {\n trace.endTimeRange(range);\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"__symbolic":"module","version":1,"metadata":{"createScope":{"__symbolic":"function","parameters":["signature","flags"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"events"},"member":"createScope"},"arguments":[{"__symbolic":"reference","name":"signature"},{"__symbolic":"reference","name":"flags"}]}},"startTimeRange":{"__symbolic":"function","parameters":["rangeType","action"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"trace"},"member":"beginTimeRange"},"arguments":[{"__symbolic":"reference","name":"rangeType"},{"__symbolic":"reference","name":"action"}]}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wtf_init.js","sourceRoot":"
|
|
1
|
+
{"version":3,"file":"wtf_init.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/profile/wtf_init.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,4BAA2B,CAAC","sourcesContent":["/**\n * This is here because DART requires it. It is noop in JS.\n */\nexport function wtfInit() {}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Type } from '
|
|
2
|
-
import { GetterFn,
|
|
1
|
+
import { Type } from '../facade/lang';
|
|
2
|
+
import { GetterFn, MethodFn, SetterFn } from './types';
|
|
3
3
|
export interface PlatformReflectionCapabilities {
|
|
4
4
|
isReflectionEnabled(): boolean;
|
|
5
5
|
factory(type: Type): Function;
|
|
6
6
|
interfaces(type: Type): any[];
|
|
7
|
+
hasLifecycleHook(type: any, lcInterface: any, lcProperty: string): boolean;
|
|
7
8
|
parameters(type: any): any[][];
|
|
8
9
|
annotations(type: any): any[];
|
|
9
10
|
propMetadata(typeOrFunc: any): {
|
|
@@ -12,5 +13,5 @@ export interface PlatformReflectionCapabilities {
|
|
|
12
13
|
getter(name: string): GetterFn;
|
|
13
14
|
setter(name: string): SetterFn;
|
|
14
15
|
method(name: string): MethodFn;
|
|
15
|
-
importUri(type:
|
|
16
|
+
importUri(type: any): string;
|
|
16
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform_reflection_capabilities.js","sourceRoot":"
|
|
1
|
+
{"version":3,"file":"platform_reflection_capabilities.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/reflection/platform_reflection_capabilities.ts"],"names":[],"mappings":"","sourcesContent":["import {Type} from '../facade/lang';\n\nimport {GetterFn, MethodFn, SetterFn} from './types';\n\nexport interface PlatformReflectionCapabilities {\n isReflectionEnabled(): boolean;\n factory(type: Type): Function;\n interfaces(type: Type): any[];\n hasLifecycleHook(type: any, lcInterface: /*Type*/ any, lcProperty: string): boolean;\n parameters(type: any): any[][];\n annotations(type: any): any[];\n propMetadata(typeOrFunc: any): {[key: string]: any[]};\n getter(name: string): GetterFn;\n setter(name: string): SetterFn;\n method(name: string): MethodFn;\n importUri(type: any): string;\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Reflector } from './reflector';
|
|
2
|
-
export { Reflector, ReflectionInfo } from './reflector';
|
|
3
1
|
import { ReflectionCapabilities } from './reflection_capabilities';
|
|
2
|
+
import { Reflector } from './reflector';
|
|
3
|
+
export { ReflectionInfo, Reflector } from './reflector';
|
|
4
4
|
/**
|
|
5
5
|
* The {@link Reflector} used internally in Angular to access metadata
|
|
6
6
|
* about symbols.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reflection.js","sourceRoot":"
|
|
1
|
+
{"version":3,"file":"reflection.js","sourceRoot":"","sources":["../../../../../../modules/@angular/core/src/reflection/reflection.ts"],"names":[],"mappings":"OAAO,EAAC,sBAAsB,EAAC,MAAM,2BAA2B;OACzD,EAAC,SAAS,EAAC,MAAM,aAAa;AAErC,SAAQ,cAAc,EAAE,SAAS,QAAO,aAAa,CAAC;AAGtD;;;GAGG;AACH,OAAO,IAAI,SAAS,GAAG,IAAI,SAAS,CAAC,IAAI,sBAAsB,EAAE,CAAC,CAAC","sourcesContent":["import {ReflectionCapabilities} from './reflection_capabilities';\nimport {Reflector} from './reflector';\n\nexport {ReflectionInfo, Reflector} from './reflector';\n\n\n/**\n * The {@link Reflector} used internally in Angular to access metadata\n * about symbols.\n */\nexport var reflector = new Reflector(new ReflectionCapabilities());\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","metadata":{"reflector":{"__symbolic":"new","expression":{"__symbolic":"reference","
|
|
1
|
+
{"__symbolic":"module","version":1,"metadata":{"reflector":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./reflector","name":"Reflector"},"arguments":[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./reflection_capabilities","name":"ReflectionCapabilities"}}]}}}
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GetterFn, SetterFn, MethodFn } from './types';
|
|
1
|
+
import { ConcreteType, Type } from '../facade/lang';
|
|
3
2
|
import { PlatformReflectionCapabilities } from './platform_reflection_capabilities';
|
|
3
|
+
import { GetterFn, MethodFn, SetterFn } from './types';
|
|
4
4
|
export declare class ReflectionCapabilities implements PlatformReflectionCapabilities {
|
|
5
5
|
private _reflect;
|
|
6
6
|
constructor(reflect?: any);
|
|
7
7
|
isReflectionEnabled(): boolean;
|
|
8
8
|
factory(t: ConcreteType): Function;
|
|
9
|
-
/** @internal */
|
|
10
|
-
_zipTypesAndAnnotations(paramTypes: any, paramAnnotations: any): any[][];
|
|
11
9
|
parameters(typeOrFunc: Type): any[][];
|
|
12
10
|
annotations(typeOrFunc: Type): any[];
|
|
13
11
|
propMetadata(typeOrFunc: any): {
|
|
14
12
|
[key: string]: any[];
|
|
15
13
|
};
|
|
16
14
|
interfaces(type: Type): any[];
|
|
15
|
+
hasLifecycleHook(type: any, lcInterface: Type, lcProperty: string): boolean;
|
|
17
16
|
getter(name: string): GetterFn;
|
|
18
17
|
setter(name: string): SetterFn;
|
|
19
18
|
method(name: string): MethodFn;
|
|
20
|
-
importUri(type:
|
|
19
|
+
importUri(type: any): string;
|
|
21
20
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BaseException } from '../../src/facade/exceptions';
|
|
1
|
+
import { Type, global, isFunction, isPresent, stringify } from '../facade/lang';
|
|
3
2
|
export class ReflectionCapabilities {
|
|
4
3
|
constructor(reflect) {
|
|
5
4
|
this._reflect = isPresent(reflect) ? reflect : global.Reflect;
|
|
@@ -54,7 +53,7 @@ export class ReflectionCapabilities {
|
|
|
54
53
|
throw new Error(`Cannot create a factory for '${stringify(t)}' because its constructor has more than 20 arguments`);
|
|
55
54
|
}
|
|
56
55
|
/** @internal */
|
|
57
|
-
_zipTypesAndAnnotations(paramTypes
|
|
56
|
+
_zipTypesAndAnnotations(paramTypes /** TODO #9100 */, paramAnnotations /** TODO #9100 */) {
|
|
58
57
|
var result;
|
|
59
58
|
if (typeof paramTypes === 'undefined') {
|
|
60
59
|
result = new Array(paramAnnotations.length);
|
|
@@ -89,8 +88,8 @@ export class ReflectionCapabilities {
|
|
|
89
88
|
// API of tsickle for lowering decorators to properties on the class.
|
|
90
89
|
if (isPresent(typeOrFunc.ctorParameters)) {
|
|
91
90
|
let ctorParameters = typeOrFunc.ctorParameters;
|
|
92
|
-
let paramTypes = ctorParameters.map(ctorParam => ctorParam && ctorParam.type);
|
|
93
|
-
let paramAnnotations = ctorParameters.map(ctorParam => ctorParam && convertTsickleDecoratorIntoMetadata(ctorParam.decorators));
|
|
91
|
+
let paramTypes = ctorParameters.map((ctorParam /** TODO #9100 */) => ctorParam && ctorParam.type);
|
|
92
|
+
let paramAnnotations = ctorParameters.map((ctorParam /** TODO #9100 */) => ctorParam && convertTsickleDecoratorIntoMetadata(ctorParam.decorators));
|
|
94
93
|
return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);
|
|
95
94
|
}
|
|
96
95
|
// API for metadata created by invoking the decorators.
|
|
@@ -140,8 +139,7 @@ export class ReflectionCapabilities {
|
|
|
140
139
|
if (isPresent(typeOrFunc.propDecorators)) {
|
|
141
140
|
let propDecorators = typeOrFunc.propDecorators;
|
|
142
141
|
let propMetadata = {};
|
|
143
|
-
Object.keys(propDecorators)
|
|
144
|
-
.forEach(prop => {
|
|
142
|
+
Object.keys(propDecorators).forEach(prop => {
|
|
145
143
|
propMetadata[prop] = convertTsickleDecoratorIntoMetadata(propDecorators[prop]);
|
|
146
144
|
});
|
|
147
145
|
return propMetadata;
|
|
@@ -154,8 +152,15 @@ export class ReflectionCapabilities {
|
|
|
154
152
|
}
|
|
155
153
|
return {};
|
|
156
154
|
}
|
|
157
|
-
interfaces
|
|
158
|
-
|
|
155
|
+
// Note: JavaScript does not support to query for interfaces during runtime.
|
|
156
|
+
// However, we can't throw here as the reflector will always call this method
|
|
157
|
+
// when asked for a lifecycle interface as this is what we check in Dart.
|
|
158
|
+
interfaces(type) { return []; }
|
|
159
|
+
hasLifecycleHook(type, lcInterface, lcProperty) {
|
|
160
|
+
if (!(type instanceof Type))
|
|
161
|
+
return false;
|
|
162
|
+
var proto = type.prototype;
|
|
163
|
+
return !!proto[lcProperty];
|
|
159
164
|
}
|
|
160
165
|
getter(name) { return new Function('o', 'return o.' + name + ';'); }
|
|
161
166
|
setter(name) {
|
|
@@ -167,7 +172,14 @@ export class ReflectionCapabilities {
|
|
|
167
172
|
return new Function('o', 'args', functionBody);
|
|
168
173
|
}
|
|
169
174
|
// There is not a concept of import uri in Js, but this is useful in developing Dart applications.
|
|
170
|
-
importUri(type) {
|
|
175
|
+
importUri(type) {
|
|
176
|
+
// StaticSymbol
|
|
177
|
+
if (typeof type === 'object' && type['filePath']) {
|
|
178
|
+
return type['filePath'];
|
|
179
|
+
}
|
|
180
|
+
// Runtime type
|
|
181
|
+
return `./${stringify(type)}`;
|
|
182
|
+
}
|
|
171
183
|
}
|
|
172
184
|
function convertTsickleDecoratorIntoMetadata(decoratorInvocations) {
|
|
173
185
|
if (!decoratorInvocations) {
|