@angular/core 2.0.0-rc.1 → 2.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{core.umd.js → bundles/core.umd.js} +6402 -4606
- package/bundles/core.umd.min.js +6 -0
- package/esm/index.d.ts +5 -4
- package/esm/index.js +9 -8
- package/esm/index.js.map +1 -1
- package/esm/private_export.d.ts +96 -11
- package/esm/private_export.js +39 -10
- package/esm/private_export.js.map +1 -1
- package/esm/private_export.metadata.json +1 -1
- package/esm/src/animation/active_animation_players_map.d.ts +11 -0
- package/esm/src/animation/active_animation_players_map.js +47 -0
- package/esm/src/animation/active_animation_players_map.js.map +1 -0
- package/esm/src/animation/animation_constants.d.ts +4 -0
- package/esm/src/animation/animation_constants.js +5 -0
- package/esm/src/animation/animation_constants.js.map +1 -0
- package/esm/src/animation/animation_constants.metadata.json +1 -0
- package/esm/src/animation/animation_driver.d.ts +9 -0
- package/esm/src/animation/animation_driver.js +9 -0
- package/esm/src/animation/animation_driver.js.map +1 -0
- package/esm/src/animation/animation_group_player.d.ts +18 -0
- package/esm/src/animation/animation_group_player.js +60 -0
- package/esm/src/animation/animation_group_player.js.map +1 -0
- package/esm/src/animation/animation_keyframe.d.ts +6 -0
- package/esm/src/animation/animation_keyframe.js +7 -0
- package/esm/src/animation/animation_keyframe.js.map +1 -0
- package/esm/src/animation/animation_player.d.ts +26 -0
- package/esm/src/animation/animation_player.js +30 -0
- package/esm/src/animation/animation_player.js.map +1 -0
- package/esm/src/animation/animation_sequence_player.d.ts +21 -0
- package/esm/src/animation/animation_sequence_player.js +64 -0
- package/esm/src/animation/animation_sequence_player.js.map +1 -0
- package/esm/src/animation/animation_style_util.d.ts +32 -0
- package/esm/src/animation/animation_style_util.js +91 -0
- package/esm/src/animation/animation_style_util.js.map +1 -0
- package/esm/src/animation/animation_style_util.metadata.json +1 -0
- package/esm/src/animation/animation_styles.d.ts +8 -0
- package/esm/src/animation/animation_styles.js +6 -0
- package/esm/src/animation/animation_styles.js.map +1 -0
- package/esm/src/animation/metadata.d.ts +511 -0
- package/esm/src/animation/metadata.js +565 -0
- package/esm/src/animation/metadata.js.map +1 -0
- package/esm/src/animation/metadata.metadata.json +1 -0
- package/esm/src/application_common_providers.d.ts +1 -0
- package/esm/src/application_common_providers.js +5 -4
- package/esm/src/application_common_providers.js.map +1 -1
- package/esm/src/application_common_providers.metadata.json +1 -1
- package/esm/src/application_ref.d.ts +17 -41
- package/esm/src/application_ref.js +32 -23
- package/esm/src/application_ref.js.map +1 -1
- package/esm/src/application_ref.metadata.json +1 -1
- package/esm/src/application_tokens.d.ts +6 -1
- package/esm/src/application_tokens.js +9 -4
- package/esm/src/application_tokens.js.map +1 -1
- package/esm/src/application_tokens.metadata.json +1 -1
- package/esm/src/change_detection/change_detection.d.ts +9 -8
- package/esm/src/change_detection/change_detection.js +7 -7
- package/esm/src/change_detection/change_detection.js.map +1 -1
- package/esm/src/change_detection/change_detection.metadata.json +1 -1
- package/esm/src/change_detection/change_detection_util.d.ts +3 -1
- package/esm/src/change_detection/change_detection_util.js +6 -5
- package/esm/src/change_detection/change_detection_util.js.map +1 -1
- package/esm/src/change_detection/change_detection_util.metadata.json +1 -1
- package/esm/src/change_detection/change_detector_ref.d.ts +3 -0
- package/esm/src/change_detection/change_detector_ref.js +3 -0
- package/esm/src/change_detection/change_detector_ref.js.map +1 -1
- package/esm/src/change_detection/constants.d.ts +1 -0
- package/esm/src/change_detection/constants.js +4 -3
- package/esm/src/change_detection/constants.js.map +1 -1
- package/esm/src/change_detection/constants.metadata.json +1 -1
- package/esm/src/change_detection/differs/default_iterable_differ.d.ts +6 -94
- package/esm/src/change_detection/differs/default_iterable_differ.js +25 -18
- package/esm/src/change_detection/differs/default_iterable_differ.js.map +1 -1
- package/esm/src/change_detection/differs/default_keyvalue_differ.d.ts +3 -30
- package/esm/src/change_detection/differs/default_keyvalue_differ.js +13 -8
- package/esm/src/change_detection/differs/default_keyvalue_differ.js.map +1 -1
- package/esm/src/change_detection/differs/iterable_differs.d.ts +4 -1
- package/esm/src/change_detection/differs/iterable_differs.js +5 -4
- package/esm/src/change_detection/differs/iterable_differs.js.map +1 -1
- package/esm/src/change_detection/differs/keyvalue_differs.d.ts +2 -1
- package/esm/src/change_detection/differs/keyvalue_differs.js +5 -4
- package/esm/src/change_detection/differs/keyvalue_differs.js.map +1 -1
- package/esm/src/change_detection/pipe_transform.js.map +1 -1
- package/esm/src/change_detection.d.ts +1 -1
- package/esm/src/change_detection.js +5 -5
- package/esm/src/change_detection.js.map +1 -1
- package/esm/src/console.js +2 -1
- package/esm/src/console.js.map +1 -1
- package/esm/src/console.metadata.json +1 -1
- package/esm/src/debug/debug_node.d.ts +20 -2
- package/esm/src/debug/debug_node.js +16 -2
- package/esm/src/debug/debug_node.js.map +1 -1
- package/esm/src/debug/debug_node.metadata.json +1 -0
- package/esm/src/debug/debug_renderer.d.ts +10 -6
- package/esm/src/debug/debug_renderer.js +13 -2
- package/esm/src/debug/debug_renderer.js.map +1 -1
- package/esm/src/di/decorators.d.ts +13 -1
- package/esm/src/di/decorators.js +7 -1
- package/esm/src/di/decorators.js.map +1 -1
- package/esm/src/di/decorators.metadata.json +1 -1
- package/esm/src/di/forward_ref.d.ts +3 -1
- package/esm/src/di/forward_ref.js +3 -1
- package/esm/src/di/forward_ref.js.map +1 -1
- package/esm/src/di/injector.d.ts +4 -1
- package/esm/src/di/injector.js +5 -2
- package/esm/src/di/injector.js.map +1 -1
- package/esm/src/di/injector.metadata.json +1 -1
- package/esm/src/di/metadata.d.ts +8 -1
- package/esm/src/di/metadata.js +10 -3
- package/esm/src/di/metadata.js.map +1 -1
- package/esm/src/di/opaque_token.d.ts +2 -1
- package/esm/src/di/opaque_token.js +22 -21
- package/esm/src/di/opaque_token.js.map +1 -1
- package/esm/src/di/provider.d.ts +11 -10
- package/esm/src/di/provider.js +17 -14
- package/esm/src/di/provider.js.map +1 -1
- package/esm/src/di/provider.metadata.json +1 -0
- package/esm/src/di/provider_util.js.map +1 -1
- package/esm/src/di/provider_util.metadata.json +1 -0
- package/esm/src/di/reflective_exceptions.d.ts +11 -16
- package/esm/src/di/reflective_exceptions.js +28 -22
- package/esm/src/di/reflective_exceptions.js.map +1 -1
- package/esm/src/di/reflective_injector.d.ts +3 -33
- package/esm/src/di/reflective_injector.js +10 -7
- package/esm/src/di/reflective_injector.js.map +1 -1
- package/esm/src/di/reflective_key.d.ts +1 -8
- package/esm/src/di/reflective_key.js +3 -2
- package/esm/src/di/reflective_key.js.map +1 -1
- package/esm/src/di/reflective_provider.d.ts +2 -1
- package/esm/src/di/reflective_provider.js +6 -5
- package/esm/src/di/reflective_provider.js.map +1 -1
- package/esm/src/di/reflective_provider.metadata.json +1 -0
- package/esm/src/di.d.ts +2 -2
- package/esm/src/di.js +6 -6
- package/esm/src/di.js.map +1 -1
- package/esm/src/facade/async.d.ts +11 -4
- package/esm/src/facade/async.js +25 -15
- package/esm/src/facade/async.js.map +1 -1
- package/esm/src/facade/base_wrapped_exception.js +4 -4
- package/esm/src/facade/base_wrapped_exception.js.map +1 -1
- package/esm/src/facade/collection.js +1 -1
- package/esm/src/facade/collection.js.map +1 -1
- package/esm/src/facade/collection.metadata.json +1 -1
- package/esm/src/facade/exception_handler.d.ts +2 -11
- package/esm/src/facade/exception_handler.js +8 -7
- package/esm/src/facade/exception_handler.js.map +1 -1
- package/esm/src/facade/exceptions.d.ts +4 -0
- package/esm/src/facade/exceptions.js +6 -2
- package/esm/src/facade/exceptions.js.map +1 -1
- package/esm/src/facade/exceptions.metadata.json +1 -0
- package/esm/src/facade/lang.d.ts +6 -4
- package/esm/src/facade/lang.js +12 -11
- package/esm/src/facade/lang.js.map +1 -1
- package/esm/src/facade/lang.metadata.json +1 -1
- package/esm/src/facade/math.d.ts +2 -0
- package/esm/src/facade/math.js +4 -0
- package/esm/src/facade/math.js.map +1 -0
- package/esm/src/facade/math.metadata.json +1 -0
- package/esm/src/facade/promise.js.map +1 -1
- package/esm/src/linker/component_factory.d.ts +5 -4
- package/esm/src/linker/component_factory.js +7 -3
- package/esm/src/linker/component_factory.js.map +1 -1
- package/esm/src/linker/component_resolver.d.ts +5 -4
- package/esm/src/linker/component_resolver.js +12 -7
- package/esm/src/linker/component_resolver.js.map +1 -1
- package/esm/src/linker/component_resolver.metadata.json +1 -1
- package/esm/src/linker/debug_context.js +5 -4
- package/esm/src/linker/debug_context.js.map +1 -1
- package/esm/src/linker/dynamic_component_loader.d.ts +5 -6
- package/esm/src/linker/dynamic_component_loader.js +5 -3
- package/esm/src/linker/dynamic_component_loader.js.map +1 -1
- package/esm/src/linker/dynamic_component_loader.metadata.json +1 -1
- package/esm/src/linker/element.d.ts +3 -3
- package/esm/src/linker/element.js +5 -5
- package/esm/src/linker/element.js.map +1 -1
- package/esm/src/linker/element_injector.js.map +1 -1
- package/esm/src/linker/element_ref.d.ts +1 -0
- package/esm/src/linker/element_ref.js +5 -5
- package/esm/src/linker/element_ref.js.map +1 -1
- package/esm/src/linker/exceptions.d.ts +4 -1
- package/esm/src/linker/exceptions.js +4 -1
- package/esm/src/linker/exceptions.js.map +1 -1
- package/esm/src/linker/query_list.d.ts +3 -10
- package/esm/src/linker/query_list.js +8 -7
- package/esm/src/linker/query_list.js.map +1 -1
- package/esm/src/linker/systemjs_component_resolver.d.ts +21 -0
- package/esm/src/linker/systemjs_component_resolver.js +44 -0
- package/esm/src/linker/systemjs_component_resolver.js.map +1 -0
- package/esm/src/linker/template_ref.d.ts +2 -1
- package/esm/src/linker/template_ref.js +1 -0
- package/esm/src/linker/template_ref.js.map +1 -1
- package/esm/src/linker/view.d.ts +12 -1
- package/esm/src/linker/view.js +62 -16
- package/esm/src/linker/view.js.map +1 -1
- package/esm/src/linker/view_container_ref.d.ts +2 -10
- package/esm/src/linker/view_container_ref.js +4 -3
- package/esm/src/linker/view_container_ref.js.map +1 -1
- package/esm/src/linker/view_ref.d.ts +5 -1
- package/esm/src/linker/view_ref.js +6 -2
- package/esm/src/linker/view_ref.js.map +1 -1
- package/esm/src/linker/view_type.js.map +1 -1
- package/esm/src/linker/view_utils.d.ts +2 -4
- package/esm/src/linker/view_utils.js +21 -21
- package/esm/src/linker/view_utils.js.map +1 -1
- package/esm/src/linker/view_utils.metadata.json +1 -1
- package/esm/src/linker.d.ts +5 -4
- package/esm/src/linker.js +5 -4
- package/esm/src/linker.js.map +1 -1
- package/esm/src/metadata/di.d.ts +8 -1
- package/esm/src/metadata/di.js +10 -3
- package/esm/src/metadata/di.js.map +1 -1
- package/esm/src/metadata/directives.d.ts +104 -20
- package/esm/src/metadata/directives.js +25 -19
- package/esm/src/metadata/directives.js.map +1 -1
- package/esm/src/metadata/lifecycle_hooks.d.ts +46 -31
- package/esm/src/metadata/lifecycle_hooks.js +464 -10
- package/esm/src/metadata/lifecycle_hooks.js.map +1 -1
- package/esm/src/metadata/lifecycle_hooks.metadata.json +1 -1
- package/esm/src/metadata/view.d.ts +6 -2
- package/esm/src/metadata/view.js +3 -1
- package/esm/src/metadata/view.js.map +1 -1
- package/esm/src/metadata/view.metadata.json +1 -1
- package/esm/src/metadata.d.ts +49 -15
- package/esm/src/metadata.js +35 -10
- package/esm/src/metadata.js.map +1 -1
- package/esm/src/metadata.metadata.json +1 -1
- package/esm/src/platform_common_providers.d.ts +1 -0
- package/esm/src/platform_common_providers.js +3 -3
- package/esm/src/platform_common_providers.js.map +1 -1
- package/esm/src/platform_common_providers.metadata.json +1 -1
- package/esm/src/platform_directives_and_pipes.d.ts +48 -45
- package/esm/src/platform_directives_and_pipes.js +50 -47
- package/esm/src/platform_directives_and_pipes.js.map +1 -1
- package/esm/src/platform_directives_and_pipes.metadata.json +1 -1
- package/esm/src/profile/profile.d.ts +5 -1
- package/esm/src/profile/profile.js +4 -0
- package/esm/src/profile/profile.js.map +1 -1
- package/esm/src/profile/profile.metadata.json +1 -1
- package/esm/src/profile/wtf_impl.js +1 -1
- package/esm/src/profile/wtf_impl.js.map +1 -1
- package/esm/src/profile/wtf_impl.metadata.json +1 -0
- package/esm/src/profile/wtf_init.js +2 -2
- package/esm/src/profile/wtf_init.js.map +1 -1
- package/esm/src/reflection/platform_reflection_capabilities.d.ts +4 -3
- package/esm/src/reflection/platform_reflection_capabilities.js.map +1 -1
- package/esm/src/reflection/reflection.d.ts +1 -1
- package/esm/src/reflection/reflection.js +2 -2
- package/esm/src/reflection/reflection.js.map +1 -1
- package/esm/src/reflection/reflection.metadata.json +1 -1
- package/esm/src/reflection/reflection_capabilities.d.ts +4 -5
- package/esm/src/reflection/reflection_capabilities.js +22 -10
- package/esm/src/reflection/reflection_capabilities.js.map +1 -1
- package/esm/src/reflection/reflector.d.ts +8 -20
- package/esm/src/reflection/reflector.js +13 -3
- package/esm/src/reflection/reflector.js.map +1 -1
- package/esm/src/reflection/reflector_reader.js +3 -3
- package/esm/src/reflection/reflector_reader.js.map +1 -1
- package/esm/src/reflection/types.js.map +1 -1
- package/esm/src/render/api.d.ts +17 -6
- package/esm/src/render/api.js +8 -1
- package/esm/src/render/api.js.map +1 -1
- package/esm/src/render.d.ts +1 -1
- package/esm/src/render.js +1 -1
- package/esm/src/render.js.map +1 -1
- package/esm/src/security.js +6 -6
- package/esm/src/security.js.map +1 -1
- package/esm/src/testability/testability.d.ts +3 -19
- package/esm/src/testability/testability.js +10 -5
- package/esm/src/testability/testability.js.map +1 -1
- package/esm/src/testability/testability.metadata.json +1 -1
- package/esm/src/util/decorators.d.ts +2 -1
- package/esm/src/util/decorators.js +10 -9
- package/esm/src/util/decorators.js.map +1 -1
- package/esm/src/util.js.map +1 -1
- package/esm/src/zone/ng_zone.d.ts +6 -17
- package/esm/src/zone/ng_zone.js +7 -6
- package/esm/src/zone/ng_zone.js.map +1 -1
- package/esm/src/zone/ng_zone_impl.d.ts +1 -4
- package/esm/src/zone/ng_zone_impl.js +3 -2
- package/esm/src/zone/ng_zone_impl.js.map +1 -1
- package/esm/src/zone.js.map +1 -1
- package/esm/testing/async.js +20 -22
- package/esm/testing/async.js.map +1 -1
- package/esm/testing/async.metadata.json +1 -0
- package/esm/testing/async_test_completer.js.map +1 -1
- package/esm/testing/fake_async.d.ts +4 -1
- package/esm/testing/fake_async.js +9 -2
- package/esm/testing/fake_async.js.map +1 -1
- package/esm/testing/lang_utils.js +1 -1
- package/esm/testing/lang_utils.js.map +1 -1
- package/esm/testing/lang_utils.metadata.json +1 -0
- package/esm/testing/logger.js +5 -3
- package/esm/testing/logger.js.map +1 -1
- package/esm/testing/logger.metadata.json +1 -1
- package/esm/testing/mock_application_ref.d.ts +1 -1
- package/esm/testing/mock_application_ref.js +1 -0
- package/esm/testing/mock_application_ref.js.map +1 -1
- package/esm/testing/mock_application_ref.metadata.json +1 -1
- package/esm/testing/ng_zone_mock.d.ts +0 -1
- package/esm/testing/ng_zone_mock.js +2 -1
- package/esm/testing/ng_zone_mock.js.map +1 -1
- package/esm/testing/ng_zone_mock.metadata.json +1 -1
- package/esm/testing/regexp.js +1 -1
- package/esm/testing/regexp.js.map +1 -1
- package/esm/testing/regexp.metadata.json +1 -0
- package/esm/testing/test_injector.d.ts +6 -12
- package/esm/testing/test_injector.js +4 -10
- package/esm/testing/test_injector.js.map +1 -1
- package/esm/testing/test_injector.metadata.json +1 -0
- package/esm/testing/testing.d.ts +2 -2
- package/esm/testing/testing.js +2 -2
- package/esm/testing/testing.js.map +1 -1
- package/esm/testing/testing.metadata.json +1 -1
- package/esm/testing.js.map +1 -1
- package/index.d.ts +5 -4
- package/index.js +10 -8
- package/index.js.map +1 -1
- package/package.json +5 -1
- package/private_export.d.ts +96 -11
- package/private_export.js +39 -10
- package/private_export.js.map +1 -1
- package/private_export.metadata.json +1 -1
- package/src/animation/active_animation_players_map.d.ts +11 -0
- package/src/animation/active_animation_players_map.js +54 -0
- package/src/animation/active_animation_players_map.js.map +1 -0
- package/src/animation/animation_constants.d.ts +4 -0
- package/src/animation/animation_constants.js +6 -0
- package/src/animation/animation_constants.js.map +1 -0
- package/src/animation/animation_constants.metadata.json +1 -0
- package/src/animation/animation_driver.d.ts +9 -0
- package/src/animation/animation_driver.js +25 -0
- package/src/animation/animation_driver.js.map +1 -0
- package/src/animation/animation_group_player.d.ts +18 -0
- package/src/animation/animation_group_player.js +64 -0
- package/src/animation/animation_group_player.js.map +1 -0
- package/src/animation/animation_keyframe.d.ts +6 -0
- package/src/animation/animation_keyframe.js +10 -0
- package/src/animation/animation_keyframe.js.map +1 -0
- package/src/animation/animation_player.d.ts +26 -0
- package/src/animation/animation_player.js +42 -0
- package/src/animation/animation_player.js.map +1 -0
- package/src/animation/animation_sequence_player.d.ts +21 -0
- package/src/animation/animation_sequence_player.js +69 -0
- package/src/animation/animation_sequence_player.js.map +1 -0
- package/src/animation/animation_style_util.d.ts +32 -0
- package/src/animation/animation_style_util.js +99 -0
- package/src/animation/animation_style_util.js.map +1 -0
- package/src/animation/animation_style_util.metadata.json +1 -0
- package/src/animation/animation_styles.d.ts +8 -0
- package/src/animation/animation_styles.js +9 -0
- package/src/animation/animation_styles.js.map +1 -0
- package/src/animation/metadata.d.ts +511 -0
- package/src/animation/metadata.js +627 -0
- package/src/animation/metadata.js.map +1 -0
- package/src/animation/metadata.metadata.json +1 -0
- package/src/application_common_providers.d.ts +1 -0
- package/src/application_common_providers.js +4 -3
- package/src/application_common_providers.js.map +1 -1
- package/src/application_common_providers.metadata.json +1 -1
- package/src/application_ref.d.ts +17 -41
- package/src/application_ref.js +30 -21
- package/src/application_ref.js.map +1 -1
- package/src/application_ref.metadata.json +1 -1
- package/src/application_tokens.d.ts +6 -1
- package/src/application_tokens.js +9 -4
- package/src/application_tokens.js.map +1 -1
- package/src/application_tokens.metadata.json +1 -1
- package/src/change_detection/change_detection.d.ts +9 -8
- package/src/change_detection/change_detection.js +21 -21
- package/src/change_detection/change_detection.js.map +1 -1
- package/src/change_detection/change_detection.metadata.json +1 -1
- package/src/change_detection/change_detection_util.d.ts +3 -1
- package/src/change_detection/change_detection_util.js +6 -5
- package/src/change_detection/change_detection_util.js.map +1 -1
- package/src/change_detection/change_detection_util.metadata.json +1 -1
- package/src/change_detection/change_detector_ref.d.ts +3 -0
- package/src/change_detection/change_detector_ref.js +3 -0
- package/src/change_detection/change_detector_ref.js.map +1 -1
- package/src/change_detection/constants.d.ts +1 -0
- package/src/change_detection/constants.js +4 -3
- package/src/change_detection/constants.js.map +1 -1
- package/src/change_detection/constants.metadata.json +1 -1
- package/src/change_detection/differs/default_iterable_differ.d.ts +6 -94
- package/src/change_detection/differs/default_iterable_differ.js +25 -18
- package/src/change_detection/differs/default_iterable_differ.js.map +1 -1
- package/src/change_detection/differs/default_keyvalue_differ.d.ts +3 -30
- package/src/change_detection/differs/default_keyvalue_differ.js +13 -8
- package/src/change_detection/differs/default_keyvalue_differ.js.map +1 -1
- package/src/change_detection/differs/iterable_differs.d.ts +4 -1
- package/src/change_detection/differs/iterable_differs.js +4 -3
- package/src/change_detection/differs/iterable_differs.js.map +1 -1
- package/src/change_detection/differs/keyvalue_differs.d.ts +2 -1
- package/src/change_detection/differs/keyvalue_differs.js +4 -3
- package/src/change_detection/differs/keyvalue_differs.js.map +1 -1
- package/src/change_detection/pipe_transform.js.map +1 -1
- package/src/change_detection.d.ts +1 -1
- package/src/change_detection.js +9 -9
- package/src/change_detection.js.map +1 -1
- package/src/console.js +2 -1
- package/src/console.js.map +1 -1
- package/src/console.metadata.json +1 -1
- package/src/debug/debug_node.d.ts +20 -2
- package/src/debug/debug_node.js +16 -2
- package/src/debug/debug_node.js.map +1 -1
- package/src/debug/debug_node.metadata.json +1 -0
- package/src/debug/debug_renderer.d.ts +10 -6
- package/src/debug/debug_renderer.js +12 -1
- package/src/debug/debug_renderer.js.map +1 -1
- package/src/di/decorators.d.ts +13 -1
- package/src/di/decorators.js +7 -1
- package/src/di/decorators.js.map +1 -1
- package/src/di/decorators.metadata.json +1 -1
- package/src/di/forward_ref.d.ts +3 -1
- package/src/di/forward_ref.js +3 -1
- package/src/di/forward_ref.js.map +1 -1
- package/src/di/injector.d.ts +4 -1
- package/src/di/injector.js +5 -2
- package/src/di/injector.js.map +1 -1
- package/src/di/injector.metadata.json +1 -1
- package/src/di/metadata.d.ts +8 -1
- package/src/di/metadata.js +10 -3
- package/src/di/metadata.js.map +1 -1
- package/src/di/opaque_token.d.ts +2 -1
- package/src/di/opaque_token.js +22 -21
- package/src/di/opaque_token.js.map +1 -1
- package/src/di/provider.d.ts +11 -10
- package/src/di/provider.js +17 -14
- package/src/di/provider.js.map +1 -1
- package/src/di/provider.metadata.json +1 -0
- package/src/di/provider_util.js.map +1 -1
- package/src/di/provider_util.metadata.json +1 -0
- package/src/di/reflective_exceptions.d.ts +11 -16
- package/src/di/reflective_exceptions.js +28 -22
- package/src/di/reflective_exceptions.js.map +1 -1
- package/src/di/reflective_injector.d.ts +3 -33
- package/src/di/reflective_injector.js +9 -6
- package/src/di/reflective_injector.js.map +1 -1
- package/src/di/reflective_key.d.ts +1 -8
- package/src/di/reflective_key.js +3 -2
- package/src/di/reflective_key.js.map +1 -1
- package/src/di/reflective_provider.d.ts +2 -1
- package/src/di/reflective_provider.js +6 -5
- package/src/di/reflective_provider.js.map +1 -1
- package/src/di/reflective_provider.metadata.json +1 -0
- package/src/di.d.ts +2 -2
- package/src/di.js +7 -9
- package/src/di.js.map +1 -1
- package/src/facade/async.d.ts +11 -4
- package/src/facade/async.js +27 -17
- package/src/facade/async.js.map +1 -1
- package/src/facade/base_wrapped_exception.js +4 -4
- package/src/facade/base_wrapped_exception.js.map +1 -1
- package/src/facade/collection.js.map +1 -1
- package/src/facade/collection.metadata.json +1 -1
- package/src/facade/exception_handler.d.ts +2 -11
- package/src/facade/exception_handler.js +8 -7
- package/src/facade/exception_handler.js.map +1 -1
- package/src/facade/exceptions.d.ts +4 -0
- package/src/facade/exceptions.js +6 -2
- package/src/facade/exceptions.js.map +1 -1
- package/src/facade/exceptions.metadata.json +1 -0
- package/src/facade/lang.d.ts +6 -4
- package/src/facade/lang.js +12 -11
- package/src/facade/lang.js.map +1 -1
- package/src/facade/lang.metadata.json +1 -1
- package/src/facade/math.d.ts +2 -0
- package/src/facade/math.js +5 -0
- package/src/facade/math.js.map +1 -0
- package/src/facade/math.metadata.json +1 -0
- package/src/facade/promise.js.map +1 -1
- package/src/linker/component_factory.d.ts +5 -4
- package/src/linker/component_factory.js +7 -3
- package/src/linker/component_factory.js.map +1 -1
- package/src/linker/component_resolver.d.ts +5 -4
- package/src/linker/component_resolver.js +12 -7
- package/src/linker/component_resolver.js.map +1 -1
- package/src/linker/component_resolver.metadata.json +1 -1
- package/src/linker/debug_context.js +5 -4
- package/src/linker/debug_context.js.map +1 -1
- package/src/linker/dynamic_component_loader.d.ts +5 -6
- package/src/linker/dynamic_component_loader.js +5 -3
- package/src/linker/dynamic_component_loader.js.map +1 -1
- package/src/linker/dynamic_component_loader.metadata.json +1 -1
- package/src/linker/element.d.ts +3 -3
- package/src/linker/element.js +5 -5
- package/src/linker/element.js.map +1 -1
- package/src/linker/element_injector.js.map +1 -1
- package/src/linker/element_ref.d.ts +1 -0
- package/src/linker/element_ref.js +5 -5
- package/src/linker/element_ref.js.map +1 -1
- package/src/linker/exceptions.d.ts +4 -1
- package/src/linker/exceptions.js +4 -1
- package/src/linker/exceptions.js.map +1 -1
- package/src/linker/query_list.d.ts +3 -10
- package/src/linker/query_list.js +8 -7
- package/src/linker/query_list.js.map +1 -1
- package/src/linker/systemjs_component_resolver.d.ts +21 -0
- package/src/linker/systemjs_component_resolver.js +52 -0
- package/src/linker/systemjs_component_resolver.js.map +1 -0
- package/src/linker/template_ref.d.ts +2 -1
- package/src/linker/template_ref.js +1 -0
- package/src/linker/template_ref.js.map +1 -1
- package/src/linker/view.d.ts +12 -1
- package/src/linker/view.js +65 -15
- package/src/linker/view.js.map +1 -1
- package/src/linker/view_container_ref.d.ts +2 -10
- package/src/linker/view_container_ref.js +4 -3
- package/src/linker/view_container_ref.js.map +1 -1
- package/src/linker/view_ref.d.ts +5 -1
- package/src/linker/view_ref.js +6 -2
- package/src/linker/view_ref.js.map +1 -1
- package/src/linker/view_type.js.map +1 -1
- package/src/linker/view_utils.d.ts +2 -4
- package/src/linker/view_utils.js +21 -21
- package/src/linker/view_utils.js.map +1 -1
- package/src/linker/view_utils.metadata.json +1 -1
- package/src/linker.d.ts +5 -4
- package/src/linker.js +12 -9
- package/src/linker.js.map +1 -1
- package/src/metadata/di.d.ts +8 -1
- package/src/metadata/di.js +10 -3
- package/src/metadata/di.js.map +1 -1
- package/src/metadata/directives.d.ts +104 -20
- package/src/metadata/directives.js +25 -27
- package/src/metadata/directives.js.map +1 -1
- package/src/metadata/lifecycle_hooks.d.ts +46 -31
- package/src/metadata/lifecycle_hooks.js +496 -10
- package/src/metadata/lifecycle_hooks.js.map +1 -1
- package/src/metadata/lifecycle_hooks.metadata.json +1 -1
- package/src/metadata/view.d.ts +6 -2
- package/src/metadata/view.js +3 -1
- package/src/metadata/view.js.map +1 -1
- package/src/metadata/view.metadata.json +1 -1
- package/src/metadata.d.ts +49 -15
- package/src/metadata.js +70 -37
- package/src/metadata.js.map +1 -1
- package/src/metadata.metadata.json +1 -1
- package/src/platform_common_providers.d.ts +1 -0
- package/src/platform_common_providers.js +3 -3
- package/src/platform_common_providers.js.map +1 -1
- package/src/platform_common_providers.metadata.json +1 -1
- package/src/platform_directives_and_pipes.d.ts +48 -45
- package/src/platform_directives_and_pipes.js +50 -47
- package/src/platform_directives_and_pipes.js.map +1 -1
- package/src/platform_directives_and_pipes.metadata.json +1 -1
- package/src/profile/profile.d.ts +5 -1
- package/src/profile/profile.js +5 -3
- package/src/profile/profile.js.map +1 -1
- package/src/profile/profile.metadata.json +1 -1
- package/src/profile/wtf_impl.js +1 -1
- package/src/profile/wtf_impl.js.map +1 -1
- package/src/profile/wtf_impl.metadata.json +1 -0
- package/src/profile/wtf_init.js +2 -2
- package/src/profile/wtf_init.js.map +1 -1
- package/src/reflection/platform_reflection_capabilities.d.ts +4 -3
- package/src/reflection/platform_reflection_capabilities.js.map +1 -1
- package/src/reflection/reflection.d.ts +1 -1
- package/src/reflection/reflection.js +2 -2
- package/src/reflection/reflection.js.map +1 -1
- package/src/reflection/reflection.metadata.json +1 -1
- package/src/reflection/reflection_capabilities.d.ts +4 -5
- package/src/reflection/reflection_capabilities.js +24 -10
- package/src/reflection/reflection_capabilities.js.map +1 -1
- package/src/reflection/reflector.d.ts +8 -20
- package/src/reflection/reflector.js +13 -3
- package/src/reflection/reflector.js.map +1 -1
- package/src/reflection/reflector_reader.js +3 -3
- package/src/reflection/reflector_reader.js.map +1 -1
- package/src/reflection/types.js.map +1 -1
- package/src/render/api.d.ts +17 -6
- package/src/render/api.js +8 -1
- package/src/render/api.js.map +1 -1
- package/src/render.d.ts +1 -1
- package/src/render.js +2 -2
- package/src/render.js.map +1 -1
- package/src/security.js +6 -6
- package/src/security.js.map +1 -1
- package/src/testability/testability.d.ts +3 -19
- package/src/testability/testability.js +10 -5
- package/src/testability/testability.js.map +1 -1
- package/src/testability/testability.metadata.json +1 -1
- package/src/util/decorators.d.ts +2 -1
- package/src/util/decorators.js +10 -9
- package/src/util/decorators.js.map +1 -1
- package/src/util.js.map +1 -1
- package/src/zone/ng_zone.d.ts +6 -17
- package/src/zone/ng_zone.js +11 -6
- package/src/zone/ng_zone.js.map +1 -1
- package/src/zone/ng_zone_impl.d.ts +1 -4
- package/src/zone/ng_zone_impl.js +3 -2
- package/src/zone/ng_zone_impl.js.map +1 -1
- package/src/zone.js.map +1 -1
- package/testing/async.js +20 -22
- package/testing/async.js.map +1 -1
- package/testing/async.metadata.json +1 -0
- package/testing/async_test_completer.js.map +1 -1
- package/testing/fake_async.d.ts +4 -1
- package/testing/fake_async.js +10 -2
- package/testing/fake_async.js.map +1 -1
- package/testing/lang_utils.js +1 -1
- package/testing/lang_utils.js.map +1 -1
- package/testing/lang_utils.metadata.json +1 -0
- package/testing/logger.js +5 -3
- package/testing/logger.js.map +1 -1
- package/testing/logger.metadata.json +1 -1
- package/testing/mock_application_ref.d.ts +1 -1
- package/testing/mock_application_ref.js +1 -0
- package/testing/mock_application_ref.js.map +1 -1
- package/testing/mock_application_ref.metadata.json +1 -1
- package/testing/ng_zone_mock.d.ts +0 -1
- package/testing/ng_zone_mock.js +2 -1
- package/testing/ng_zone_mock.js.map +1 -1
- package/testing/ng_zone_mock.metadata.json +1 -1
- package/testing/regexp.js +1 -1
- package/testing/regexp.js.map +1 -1
- package/testing/regexp.metadata.json +1 -0
- package/testing/test_injector.d.ts +6 -12
- package/testing/test_injector.js +3 -9
- package/testing/test_injector.js.map +1 -1
- package/testing/test_injector.metadata.json +1 -0
- package/testing/testing.d.ts +2 -2
- package/testing/testing.js +5 -5
- package/testing/testing.js.map +1 -1
- package/testing/testing.metadata.json +1 -1
- package/testing.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic_component_loader.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/linker/dynamic_component_loader.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"dynamic_component_loader.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/linker/dynamic_component_loader.ts"],"names":[],"mappings":";;;;;;AAAA,2BAAyB,kBAAkB,CAAC,CAAA;AAE5C,oCAAiC,2BAA2B,CAAC,CAAA;AAE7D,qBAA8B,gBAAgB,CAAC,CAAA;AAG/C,mCAAgC,sBAAsB,CAAC,CAAA;AAIvD;;;;GAIG;AACH;IAAA;IAiGA,CAAC;IAAD,6BAAC;AAAD,CAAC,AAjGD,IAiGC;AAjGqB,8BAAsB,yBAiG3C,CAAA;AACD;IAA6C,2CAAsB;IACjE,iCAAoB,SAA4B;QAAI,iBAAO,CAAC;QAAxC,cAAS,GAAT,SAAS,CAAmB;IAAa,CAAC;IAE9D,4CAAU,GAAV,UACI,IAAU,EAAE,sBAAkC,EAAE,QAAkB,EAAE,SAAsB,EAC1F,gBAA0B;QAC5B,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,UAAA,gBAAgB;YAChE,IAAI,YAAY,GAAG,gBAAgB,CAAC,MAAM,CACtC,QAAQ,EAAE,gBAAgB,EAC1B,gBAAS,CAAC,sBAAsB,CAAC,GAAG,sBAAsB,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC;YAC5F,EAAE,CAAC,CAAC,gBAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;gBACzB,YAAY,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;YACpC,CAAC;YACD,MAAM,CAAC,YAAY,CAAC;QACtB,CAAC,CAAC,CAAC;IACL,CAAC;IAED,oDAAkB,GAAlB,UACI,IAAU,EAAE,QAA0B,EAAE,SAA8C,EACtF,gBAAgC;QADQ,yBAA8C,GAA9C,gBAA8C;QACtF,gCAAgC,GAAhC,uBAAgC;QAClC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,UAAA,gBAAgB;YAChE,IAAI,eAAe,GAAG,QAAQ,CAAC,cAAc,CAAC;YAC9C,IAAI,aAAa,GAAG,gBAAS,CAAC,SAAS,CAAC,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC;gBAC5D,wCAAkB,CAAC,qBAAqB,CAAC,SAAS,EAAE,eAAe,CAAC;gBACpE,eAAe,CAAC;YACpB,MAAM,CAAC,QAAQ,CAAC,eAAe,CAC3B,gBAAgB,EAAE,QAAQ,CAAC,MAAM,EAAE,aAAa,EAAE,gBAAgB,CAAC,CAAC;QAC1E,CAAC,CAAC,CAAC;IACL,CAAC;IACH,kBAAkB;IACX,kCAAU,GAA0B;QAC3C,EAAE,IAAI,EAAE,uBAAU,EAAE;KACnB,CAAC;IACF,kBAAkB;IACX,sCAAc,GAA2D;QAChF,EAAC,IAAI,EAAE,sCAAiB,GAAG;KAC1B,CAAC;IACF,8BAAC;AAAD,CAAC,AArCD,CAA6C,sBAAsB,GAqClE;AArCY,+BAAuB,0BAqCnC,CAAA","sourcesContent":["import {Injectable} from '../di/decorators';\nimport {Injector} from '../di/injector';\nimport {ReflectiveInjector} from '../di/reflective_injector';\nimport {ResolvedReflectiveProvider} from '../di/reflective_provider';\nimport {Type, isPresent} from '../facade/lang';\n\nimport {ComponentRef} from './component_factory';\nimport {ComponentResolver} from './component_resolver';\nimport {ViewContainerRef} from './view_container_ref';\n\n\n/**\n * Use ComponentResolver and ViewContainerRef directly.\n *\n * @deprecated\n */\nexport abstract class DynamicComponentLoader {\n /**\n * Creates an instance of a Component `type` and attaches it to the first element in the\n * platform-specific global view that matches the component's selector.\n *\n * In a browser the platform-specific global view is the main DOM Document.\n *\n * If needed, the component's selector can be overridden via `overrideSelector`.\n *\n * A provided {@link Injector} will be used to instantiate the Component.\n *\n * To be notified when this Component instance is destroyed, you can also optionally provide\n * `onDispose` callback.\n *\n * Returns a promise for the {@link ComponentRef} representing the newly created Component.\n *\n * ### Example\n *\n * ```\n * @Component({\n * selector: 'child-component',\n * template: 'Child'\n * })\n * class ChildComponent {\n * }\n *\n * @Component({\n * selector: 'my-app',\n * template: 'Parent (<child id=\"child\"></child>)'\n * })\n * class MyApp {\n * constructor(dcl: DynamicComponentLoader, injector: Injector) {\n * dcl.loadAsRoot(ChildComponent, '#child', injector);\n * }\n * }\n *\n * bootstrap(MyApp);\n * ```\n *\n * Resulting DOM:\n *\n * ```\n * <my-app>\n * Parent (\n * <child id=\"child\">Child</child>\n * )\n * </my-app>\n * ```\n */\n abstract loadAsRoot(\n type: Type, overrideSelectorOrNode: string|any, injector: Injector, onDispose?: () => void,\n projectableNodes?: any[][]): Promise<ComponentRef<any>>;\n\n\n /**\n * Creates an instance of a Component and attaches it to the View Container found at the\n * `location` specified as {@link ViewContainerRef}.\n *\n * You can optionally provide `providers` to configure the {@link Injector} provisioned for this\n * Component Instance.\n *\n * Returns a promise for the {@link ComponentRef} representing the newly created Component.\n *\n *\n * ### Example\n *\n * ```\n * @Component({\n * selector: 'child-component',\n * template: 'Child'\n * })\n * class ChildComponent {\n * }\n *\n * @Component({\n * selector: 'my-app',\n * template: 'Parent'\n * })\n * class MyApp {\n * constructor(dcl: DynamicComponentLoader, viewContainerRef: ViewContainerRef) {\n * dcl.loadNextToLocation(ChildComponent, viewContainerRef);\n * }\n * }\n *\n * bootstrap(MyApp);\n * ```\n *\n * Resulting DOM:\n *\n * ```\n * <my-app>Parent</my-app>\n * <child-component>Child</child-component>\n * ```\n */\n abstract loadNextToLocation(\n type: Type, location: ViewContainerRef, providers?: ResolvedReflectiveProvider[],\n projectableNodes?: any[][]): Promise<ComponentRef<any>>;\n}\nexport class DynamicComponentLoader_ extends DynamicComponentLoader {\n constructor(private _compiler: ComponentResolver) { super(); }\n\n loadAsRoot(\n type: Type, overrideSelectorOrNode: string|any, injector: Injector, onDispose?: () => void,\n projectableNodes?: any[][]): Promise<ComponentRef<any>> {\n return this._compiler.resolveComponent(type).then(componentFactory => {\n var componentRef = componentFactory.create(\n injector, projectableNodes,\n isPresent(overrideSelectorOrNode) ? overrideSelectorOrNode : componentFactory.selector);\n if (isPresent(onDispose)) {\n componentRef.onDestroy(onDispose);\n }\n return componentRef;\n });\n }\n\n loadNextToLocation(\n type: Type, location: ViewContainerRef, providers: ResolvedReflectiveProvider[] = null,\n projectableNodes: any[][] = null): Promise<ComponentRef<any>> {\n return this._compiler.resolveComponent(type).then(componentFactory => {\n var contextInjector = location.parentInjector;\n var childInjector = isPresent(providers) && providers.length > 0 ?\n ReflectiveInjector.fromResolvedProviders(providers, contextInjector) :\n contextInjector;\n return location.createComponent(\n componentFactory, location.length, childInjector, projectableNodes);\n });\n }\n/** @nocollapse */\nstatic decorators: DecoratorInvocation[] = [\n{ type: Injectable },\n];\n/** @nocollapse */\nstatic ctorParameters: {type: Function, decorators?: DecoratorInvocation[]}[] = [\n{type: ComponentResolver, },\n];\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","metadata":{"DynamicComponentLoader_":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","
|
|
1
|
+
{"__symbolic":"module","version":1,"metadata":{"DynamicComponentLoader_":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../di/decorators","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./component_resolver","name":"ComponentResolver"}]}],"loadAsRoot":[{"__symbolic":"method"}],"loadNextToLocation":[{"__symbolic":"method"}]}}}}
|
package/src/linker/element.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Injector } from '../di/injector';
|
|
2
2
|
import { ElementRef } from './element_ref';
|
|
3
|
-
import { ViewContainerRef_ } from './view_container_ref';
|
|
4
3
|
import { QueryList } from './query_list';
|
|
5
|
-
import {
|
|
4
|
+
import { AppView } from './view';
|
|
5
|
+
import { ViewContainerRef_ } from './view_container_ref';
|
|
6
6
|
/**
|
|
7
7
|
* An AppElement is created for elements that have a ViewContainerRef,
|
|
8
8
|
* a nested component or a <template> element to keep data around
|
package/src/linker/element.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var view_type_1 = require('./view_type');
|
|
2
|
+
var collection_1 = require('../facade/collection');
|
|
3
|
+
var exceptions_1 = require('../facade/exceptions');
|
|
4
|
+
var lang_1 = require('../facade/lang');
|
|
6
5
|
var element_ref_1 = require('./element_ref');
|
|
7
6
|
var view_container_ref_1 = require('./view_container_ref');
|
|
7
|
+
var view_type_1 = require('./view_type');
|
|
8
8
|
/**
|
|
9
9
|
* An AppElement is created for elements that have a ViewContainerRef,
|
|
10
10
|
* a nested component or a <template> element to keep data around
|
|
@@ -83,7 +83,7 @@ var AppElement = (function () {
|
|
|
83
83
|
if (view.type === view_type_1.ViewType.COMPONENT) {
|
|
84
84
|
throw new exceptions_1.BaseException("Component views can't be moved!");
|
|
85
85
|
}
|
|
86
|
-
view.
|
|
86
|
+
view.detach();
|
|
87
87
|
view.removeFromContentChildren(this);
|
|
88
88
|
return view;
|
|
89
89
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/linker/element.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"element.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/linker/element.ts"],"names":[],"mappings":";AACA,2BAA0B,sBAAsB,CAAC,CAAA;AACjD,2BAA4B,sBAAsB,CAAC,CAAA;AACnD,qBAAwB,gBAAgB,CAAC,CAAA;AAEzC,4BAAyB,eAAe,CAAC,CAAA;AAGzC,mCAAgC,sBAAsB,CAAC,CAAA;AACvD,0BAAuB,aAAa,CAAC,CAAA;AAGrC;;;;GAIG;AACH;IAOE,oBACW,KAAa,EAAS,WAAmB,EAAS,UAAwB,EAC1E,aAAkB;QADlB,UAAK,GAAL,KAAK,CAAQ;QAAS,gBAAW,GAAX,WAAW,CAAQ;QAAS,eAAU,GAAV,UAAU,CAAc;QAC1E,kBAAa,GAAb,aAAa,CAAK;QARtB,gBAAW,GAAmB,IAAI,CAAC;QACnC,kBAAa,GAAiB,IAAI,CAAC;IAOV,CAAC;IAEjC,sBAAI,kCAAU;aAAd,cAA+B,MAAM,CAAC,IAAI,wBAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;;;OAAA;IAE3E,sBAAI,6BAAK;aAAT,cAAiC,MAAM,CAAC,IAAI,sCAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;;;OAAA;IAEtE,kCAAa,GAAb,UACI,SAAc,EAAE,+BAAiD,EAAE,IAAkB;QACvF,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,+BAA+B,GAAG,+BAA+B,CAAC;QACvE,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;IAC5B,CAAC;IAED,sBAAI,sCAAc;aAAlB,cAAiC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;;;OAAA;IACrF,sBAAI,gCAAQ;aAAZ,cAA2B,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;;;OAAA;IAEzE,mCAAc,GAAd,UAAe,eAAoB,EAAE,QAAkB;QACrD,IAAI,MAAM,GAA4B,EAAE,CAAC;QACzC,EAAE,CAAC,CAAC,gBAAS,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;YAChC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,UAAC,UAAU;gBAClC,EAAE,CAAC,CAAC,UAAU,CAAC,KAAK,KAAK,eAAe,CAAC,CAAC,CAAC;oBACzC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;gBACpC,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;QACD,MAAM,CAAC,MAAM,CAAC;IAChB,CAAC;IAGD,+BAAU,GAAV,UAAW,IAAkB,EAAE,SAAiB;QAC9C,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,oBAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;YACrC,MAAM,IAAI,0BAAa,CAAC,iCAAiC,CAAC,CAAC;QAC7D,CAAC;QACD,IAAI,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACnC,EAAE,CAAC,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC;YACxB,WAAW,GAAG,EAAE,CAAC;YACjB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QACjC,CAAC;QACD,wBAAW,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;QACjD,IAAI,aAAkB,CAAmB;QACzC,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC;YAClB,IAAI,QAAQ,GAAG,WAAW,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;YAC1C,aAAa,GAAG,QAAQ,CAAC,YAAY,CAAC;QACxC,CAAC;QAAC,IAAI,CAAC,CAAC;YACN,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;QACrC,CAAC;QACD,EAAE,CAAC,CAAC,gBAAS,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;YAC7B,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;QACnE,CAAC;QACD,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;IAED,+BAAU,GAAV,UAAW,SAAiB;QAC1B,IAAI,IAAI,GAAG,wBAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;QAC7D,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,oBAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;YACrC,MAAM,IAAI,0BAAa,CAAC,iCAAiC,CAAC,CAAC;QAC7D,CAAC;QACD,IAAI,CAAC,MAAM,EAAE,CAAC;QAEd,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;QACrC,MAAM,CAAC,IAAI,CAAC;IACd,CAAC;IACH,iBAAC;AAAD,CAAC,AAvED,IAuEC;AAvEY,kBAAU,aAuEtB,CAAA","sourcesContent":["import {Injector} from '../di/injector';\nimport {ListWrapper} from '../facade/collection';\nimport {BaseException} from '../facade/exceptions';\nimport {isPresent} from '../facade/lang';\n\nimport {ElementRef} from './element_ref';\nimport {QueryList} from './query_list';\nimport {AppView} from './view';\nimport {ViewContainerRef_} from './view_container_ref';\nimport {ViewType} from './view_type';\n\n\n/**\n * An AppElement is created for elements that have a ViewContainerRef,\n * a nested component or a <template> element to keep data around\n * that is needed for later instantiations.\n */\nexport class AppElement {\n public nestedViews: AppView<any>[] = null;\n public componentView: AppView<any> = null;\n\n public component: any;\n public componentConstructorViewQueries: QueryList<any>[];\n\n constructor(\n public index: number, public parentIndex: number, public parentView: AppView<any>,\n public nativeElement: any) {}\n\n get elementRef(): ElementRef { return new ElementRef(this.nativeElement); }\n\n get vcRef(): ViewContainerRef_ { return new ViewContainerRef_(this); }\n\n initComponent(\n component: any, componentConstructorViewQueries: QueryList<any>[], view: AppView<any>) {\n this.component = component;\n this.componentConstructorViewQueries = componentConstructorViewQueries;\n this.componentView = view;\n }\n\n get parentInjector(): Injector { return this.parentView.injector(this.parentIndex); }\n get injector(): Injector { return this.parentView.injector(this.index); }\n\n mapNestedViews(nestedViewClass: any, callback: Function): any[] {\n var result: any[] /** TODO #9100 */ = [];\n if (isPresent(this.nestedViews)) {\n this.nestedViews.forEach((nestedView) => {\n if (nestedView.clazz === nestedViewClass) {\n result.push(callback(nestedView));\n }\n });\n }\n return result;\n }\n\n\n attachView(view: AppView<any>, viewIndex: number) {\n if (view.type === ViewType.COMPONENT) {\n throw new BaseException(`Component views can't be moved!`);\n }\n var nestedViews = this.nestedViews;\n if (nestedViews == null) {\n nestedViews = [];\n this.nestedViews = nestedViews;\n }\n ListWrapper.insert(nestedViews, viewIndex, view);\n var refRenderNode: any /** TODO #9100 */;\n if (viewIndex > 0) {\n var prevView = nestedViews[viewIndex - 1];\n refRenderNode = prevView.lastRootNode;\n } else {\n refRenderNode = this.nativeElement;\n }\n if (isPresent(refRenderNode)) {\n view.renderer.attachViewAfter(refRenderNode, view.flatRootNodes);\n }\n view.addToContentChildren(this);\n }\n\n detachView(viewIndex: number): AppView<any> {\n var view = ListWrapper.removeAt(this.nestedViews, viewIndex);\n if (view.type === ViewType.COMPONENT) {\n throw new BaseException(`Component views can't be moved!`);\n }\n view.detach();\n\n view.removeFromContentChildren(this);\n return view;\n }\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element_injector.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/linker/element_injector.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"element_injector.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/linker/element_injector.ts"],"names":[],"mappings":";;;;;;AAAA,yBAA2C,gBAAgB,CAAC,CAAA;AAG5D,IAAM,UAAU,GAAsB,IAAI,MAAM,EAAE,CAAC;AAEnD;IAAqC,mCAAQ;IAC3C,yBAAoB,KAAmB,EAAU,UAAkB;QAAI,iBAAO,CAAC;QAA3D,UAAK,GAAL,KAAK,CAAc;QAAU,eAAU,GAAV,UAAU,CAAQ;IAAa,CAAC;IAEjF,6BAAG,GAAH,UAAI,KAAU,EAAE,aAAuC;QAAvC,6BAAuC,GAAvC,6CAAuC;QACrD,IAAI,MAAM,GAAG,UAAU,CAAC;QACxB,EAAE,CAAC,CAAC,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC;YAC1B,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QACtE,CAAC;QACD,EAAE,CAAC,CAAC,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC;YAC1B,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;QAC/D,CAAC;QACD,MAAM,CAAC,MAAM,CAAC;IAChB,CAAC;IACH,sBAAC;AAAD,CAAC,AAbD,CAAqC,mBAAQ,GAa5C;AAbY,uBAAe,kBAa3B,CAAA","sourcesContent":["import {Injector, THROW_IF_NOT_FOUND} from '../di/injector';\nimport {AppView} from './view';\n\nconst _UNDEFINED = /*@ts2dart_const*/ new Object();\n\nexport class ElementInjector extends Injector {\n constructor(private _view: AppView<any>, private _nodeIndex: number) { super(); }\n\n get(token: any, notFoundValue: any = THROW_IF_NOT_FOUND): any {\n var result = _UNDEFINED;\n if (result === _UNDEFINED) {\n result = this._view.injectorGet(token, this._nodeIndex, _UNDEFINED);\n }\n if (result === _UNDEFINED) {\n result = this._view.parentInjector.get(token, notFoundValue);\n }\n return result;\n }\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* A wrapper around a native element inside of a View.
|
|
4
|
-
*
|
|
5
|
-
* An `ElementRef` is backed by a render-specific element. In the browser, this is usually a DOM
|
|
6
|
-
* element.
|
|
7
|
-
*/
|
|
3
|
+
* A wrapper around a native element inside of a View.
|
|
4
|
+
*
|
|
5
|
+
* An `ElementRef` is backed by a render-specific element. In the browser, this is usually a DOM
|
|
6
|
+
* element.
|
|
7
|
+
*/
|
|
8
8
|
// Note: We don't expose things like `Injector`, `ViewContainer`, ... here,
|
|
9
9
|
// i.e. users have to ask for what they need. With that, we can build better analysis tools
|
|
10
10
|
// and could do better codegen in the future.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element_ref.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/linker/element_ref.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"element_ref.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/linker/element_ref.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,2EAA2E;AAC3E,2FAA2F;AAC3F,6CAA6C;AAC7C;IAuBE,oBAAY,aAAkB;QAAI,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IAAC,CAAC;IACzE,iBAAC;AAAD,CAAC,AAxBD,IAwBC;AAxBY,kBAAU,aAwBtB,CAAA","sourcesContent":["/**\n * A wrapper around a native element inside of a View.\n *\n * An `ElementRef` is backed by a render-specific element. In the browser, this is usually a DOM\n * element.\n */\n// Note: We don't expose things like `Injector`, `ViewContainer`, ... here,\n// i.e. users have to ask for what they need. With that, we can build better analysis tools\n// and could do better codegen in the future.\nexport class ElementRef {\n /**\n * The underlying native element or `null` if direct access to native elements is not supported\n * (e.g. when the application runs in a web worker).\n *\n * <div class=\"callout is-critical\">\n * <header>Use with caution</header>\n * <p>\n * Use this API as the last resort when direct access to DOM is needed. Use templating and\n * data-binding provided by Angular instead. Alternatively you take a look at {@link Renderer}\n * which provides API that can safely be used even when direct access to native elements is not\n * supported.\n * </p>\n * <p>\n * Relying on direct DOM access creates tight coupling between your application and rendering\n * layers which will make it impossible to separate the two and deploy your application into a\n * web worker.\n * </p>\n * </div>\n * @stable\n */\n public nativeElement: any;\n\n constructor(nativeElement: any) { this.nativeElement = nativeElement; }\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseException, WrappedException } from '
|
|
1
|
+
import { BaseException, WrappedException } from '../facade/exceptions';
|
|
2
2
|
/**
|
|
3
3
|
* An error thrown if application changes model breaking the top-down data flow.
|
|
4
4
|
*
|
|
@@ -31,6 +31,7 @@ import { BaseException, WrappedException } from '../../src/facade/exceptions';
|
|
|
31
31
|
* }
|
|
32
32
|
* }
|
|
33
33
|
* ```
|
|
34
|
+
* @stable
|
|
34
35
|
*/
|
|
35
36
|
export declare class ExpressionChangedAfterItHasBeenCheckedException extends BaseException {
|
|
36
37
|
constructor(oldValue: any, currValue: any, context: any);
|
|
@@ -40,6 +41,7 @@ export declare class ExpressionChangedAfterItHasBeenCheckedException extends Bas
|
|
|
40
41
|
*
|
|
41
42
|
* This error wraps the original exception to attach additional contextual information that can
|
|
42
43
|
* be useful for debugging.
|
|
44
|
+
* @stable
|
|
43
45
|
*/
|
|
44
46
|
export declare class ViewWrappedException extends WrappedException {
|
|
45
47
|
constructor(originalException: any, originalStack: any, context: any);
|
|
@@ -50,6 +52,7 @@ export declare class ViewWrappedException extends WrappedException {
|
|
|
50
52
|
* This error indicates a bug in the framework.
|
|
51
53
|
*
|
|
52
54
|
* This is an internal Angular error.
|
|
55
|
+
* @stable
|
|
53
56
|
*/
|
|
54
57
|
export declare class ViewDestroyedException extends BaseException {
|
|
55
58
|
constructor(details: string);
|
package/src/linker/exceptions.js
CHANGED
|
@@ -4,7 +4,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
|
|
4
4
|
function __() { this.constructor = d; }
|
|
5
5
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
6
6
|
};
|
|
7
|
-
var exceptions_1 = require('
|
|
7
|
+
var exceptions_1 = require('../facade/exceptions');
|
|
8
8
|
/**
|
|
9
9
|
* An error thrown if application changes model breaking the top-down data flow.
|
|
10
10
|
*
|
|
@@ -37,6 +37,7 @@ var exceptions_1 = require('../../src/facade/exceptions');
|
|
|
37
37
|
* }
|
|
38
38
|
* }
|
|
39
39
|
* ```
|
|
40
|
+
* @stable
|
|
40
41
|
*/
|
|
41
42
|
var ExpressionChangedAfterItHasBeenCheckedException = (function (_super) {
|
|
42
43
|
__extends(ExpressionChangedAfterItHasBeenCheckedException, _super);
|
|
@@ -52,6 +53,7 @@ exports.ExpressionChangedAfterItHasBeenCheckedException = ExpressionChangedAfter
|
|
|
52
53
|
*
|
|
53
54
|
* This error wraps the original exception to attach additional contextual information that can
|
|
54
55
|
* be useful for debugging.
|
|
56
|
+
* @stable
|
|
55
57
|
*/
|
|
56
58
|
var ViewWrappedException = (function (_super) {
|
|
57
59
|
__extends(ViewWrappedException, _super);
|
|
@@ -67,6 +69,7 @@ exports.ViewWrappedException = ViewWrappedException;
|
|
|
67
69
|
* This error indicates a bug in the framework.
|
|
68
70
|
*
|
|
69
71
|
* This is an internal Angular error.
|
|
72
|
+
* @stable
|
|
70
73
|
*/
|
|
71
74
|
var ViewDestroyedException = (function (_super) {
|
|
72
75
|
__extends(ViewDestroyedException, _super);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exceptions.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/linker/exceptions.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"exceptions.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/linker/exceptions.ts"],"names":[],"mappings":";;;;;;AAAA,2BAA8C,sBAAsB,CAAC,CAAA;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH;IAAqE,mEAAa;IAChF,yDAAY,QAAa,EAAE,SAAc,EAAE,OAAY;QACrD,kBACI,+CAA+C;YAC/C,uBAAoB,QAAQ,2BAAsB,SAAS,OAAG,CAAC,CAAC;IACtE,CAAC;IACH,sDAAC;AAAD,CAAC,AAND,CAAqE,0BAAa,GAMjF;AANY,uDAA+C,kDAM3D,CAAA;AAED;;;;;;GAMG;AACH;IAA0C,wCAAgB;IACxD,8BAAY,iBAAsB,EAAE,aAAkB,EAAE,OAAY;QAClE,kBAAM,cAAY,OAAO,CAAC,MAAQ,EAAE,iBAAiB,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IACH,2BAAC;AAAD,CAAC,AAJD,CAA0C,6BAAgB,GAIzD;AAJY,4BAAoB,uBAIhC,CAAA;AAED;;;;;;;GAOG;AACH;IAA4C,0CAAa;IACvD,gCAAY,OAAe;QAAI,kBAAM,sCAAoC,OAAS,CAAC,CAAC;IAAC,CAAC;IACxF,6BAAC;AAAD,CAAC,AAFD,CAA4C,0BAAa,GAExD;AAFY,8BAAsB,yBAElC,CAAA","sourcesContent":["import {BaseException, WrappedException} from '../facade/exceptions';\n\n/**\n * An error thrown if application changes model breaking the top-down data flow.\n *\n * This exception is only thrown in dev mode.\n *\n * <!-- TODO: Add a link once the dev mode option is configurable -->\n *\n * ### Example\n *\n * ```typescript\n * @Component({\n * selector: 'parent',\n * template: `\n * <child [prop]=\"parentProp\"></child>\n * `,\n * directives: [forwardRef(() => Child)]\n * })\n * class Parent {\n * parentProp = \"init\";\n * }\n *\n * @Directive({selector: 'child', inputs: ['prop']})\n * class Child {\n * constructor(public parent: Parent) {}\n *\n * set prop(v) {\n * // this updates the parent property, which is disallowed during change detection\n * // this will result in ExpressionChangedAfterItHasBeenCheckedException\n * this.parent.parentProp = \"updated\";\n * }\n * }\n * ```\n * @stable\n */\nexport class ExpressionChangedAfterItHasBeenCheckedException extends BaseException {\n constructor(oldValue: any, currValue: any, context: any) {\n super(\n `Expression has changed after it was checked. ` +\n `Previous value: '${oldValue}'. Current value: '${currValue}'`);\n }\n}\n\n/**\n * Thrown when an exception was raised during view creation, change detection or destruction.\n *\n * This error wraps the original exception to attach additional contextual information that can\n * be useful for debugging.\n * @stable\n */\nexport class ViewWrappedException extends WrappedException {\n constructor(originalException: any, originalStack: any, context: any) {\n super(`Error in ${context.source}`, originalException, originalStack, context);\n }\n}\n\n/**\n * Thrown when a destroyed view is used.\n *\n * This error indicates a bug in the framework.\n *\n * This is an internal Angular error.\n * @stable\n */\nexport class ViewDestroyedException extends BaseException {\n constructor(details: string) { super(`Attempt to use a destroyed view: ${details}`); }\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Observable } from '
|
|
1
|
+
import { Observable } from '../facade/async';
|
|
2
2
|
/**
|
|
3
3
|
* An unmodifiable list of items that Angular keeps up to date when the state
|
|
4
4
|
* of the application changes.
|
|
@@ -17,11 +17,10 @@ import { Observable } from '../../src/facade/async';
|
|
|
17
17
|
* ```typescript
|
|
18
18
|
* @Component({...})
|
|
19
19
|
* class Container {
|
|
20
|
-
*
|
|
21
|
-
* items.changes.subscribe(_ => console.log(items.length));
|
|
22
|
-
* }
|
|
20
|
+
* @ViewChildren(Item) items:QueryList<Item>;
|
|
23
21
|
* }
|
|
24
22
|
* ```
|
|
23
|
+
* @stable
|
|
25
24
|
*/
|
|
26
25
|
export declare class QueryList<T> {
|
|
27
26
|
private _dirty;
|
|
@@ -52,12 +51,6 @@ export declare class QueryList<T> {
|
|
|
52
51
|
*/
|
|
53
52
|
toArray(): T[];
|
|
54
53
|
toString(): string;
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
reset(res: Array<T | any[]>): void;
|
|
59
|
-
/** @internal */
|
|
60
|
-
notifyOnChanges(): void;
|
|
61
54
|
/** internal */
|
|
62
55
|
setDirty(): void;
|
|
63
56
|
/** internal */
|
package/src/linker/query_list.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
2
|
+
var async_1 = require('../facade/async');
|
|
3
|
+
var collection_1 = require('../facade/collection');
|
|
4
|
+
var lang_1 = require('../facade/lang');
|
|
5
5
|
/**
|
|
6
6
|
* An unmodifiable list of items that Angular keeps up to date when the state
|
|
7
7
|
* of the application changes.
|
|
@@ -20,11 +20,10 @@ var async_1 = require('../../src/facade/async');
|
|
|
20
20
|
* ```typescript
|
|
21
21
|
* @Component({...})
|
|
22
22
|
* class Container {
|
|
23
|
-
*
|
|
24
|
-
* items.changes.subscribe(_ => console.log(items.length));
|
|
25
|
-
* }
|
|
23
|
+
* @ViewChildren(Item) items:QueryList<Item>;
|
|
26
24
|
* }
|
|
27
25
|
* ```
|
|
26
|
+
* @stable
|
|
28
27
|
*/
|
|
29
28
|
var QueryList = (function () {
|
|
30
29
|
function QueryList() {
|
|
@@ -72,7 +71,9 @@ var QueryList = (function () {
|
|
|
72
71
|
* converts QueryList into an array
|
|
73
72
|
*/
|
|
74
73
|
QueryList.prototype.toArray = function () { return collection_1.ListWrapper.clone(this._results); };
|
|
75
|
-
QueryList.prototype[lang_1.getSymbolIterator()] = function () {
|
|
74
|
+
QueryList.prototype[lang_1.getSymbolIterator()] = function () {
|
|
75
|
+
return this._results[lang_1.getSymbolIterator()]();
|
|
76
|
+
};
|
|
76
77
|
QueryList.prototype.toString = function () { return this._results.toString(); };
|
|
77
78
|
/**
|
|
78
79
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query_list.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/linker/query_list.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"query_list.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/linker/query_list.ts"],"names":[],"mappings":";AAAA,sBAAuC,iBAAiB,CAAC,CAAA;AACzD,2BAA0B,sBAAsB,CAAC,CAAA;AACjD,qBAAgC,gBAAgB,CAAC,CAAA;AAIjD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH;IAAA;QACU,WAAM,GAAG,IAAI,CAAC;QACd,aAAQ,GAAa,EAAE,CAAC;QACxB,aAAQ,GAAG,IAAI,oBAAY,EAAE,CAAC;IAsDxC,CAAC;IApDC,sBAAI,8BAAO;aAAX,cAAiC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;;;OAAA;IACxD,sBAAI,6BAAM;aAAV,cAAuB,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;;;OAAA;IACrD,sBAAI,4BAAK;aAAT,cAAiB,MAAM,CAAC,wBAAW,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;;;OAAA;IAC3D,sBAAI,2BAAI;aAAR,cAAgB,MAAM,CAAC,wBAAW,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;;;OAAA;IAEzD;;OAEG;IACH,uBAAG,GAAH,UAAO,EAAkB,IAAS,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAEjE;;OAEG;IACH,0BAAM,GAAN,UAAO,EAAwB,IAAS,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAE1E;;OAEG;IACH,0BAAM,GAAN,UAAU,EAA0B,EAAE,IAAO,IAAO,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IAE5F;;OAEG;IACH,2BAAO,GAAP,UAAQ,EAAqB,IAAU,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAEnE;;OAEG;IACH,2BAAO,GAAP,cAAiB,MAAM,CAAC,wBAAW,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAE3D,oBAAC,wBAAiB,EAAE,CAAC,GAArB;QACE,MAAM,CAAE,IAAI,CAAC,QAAkC,CAAC,wBAAiB,EAAE,CAAC,EAAE,CAAC;IACzE,CAAC;IAED,4BAAQ,GAAR,cAAqB,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;IAEvD;;OAEG;IACH,yBAAK,GAAL,UAAM,GAAmB;QACvB,IAAI,CAAC,QAAQ,GAAG,wBAAW,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACzC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACtB,CAAC;IAED,gBAAgB;IAChB,mCAAe,GAAf,cAA0B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAErD,eAAe;IACf,4BAAQ,GAAR,cAAa,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IAGlC,sBAAI,4BAAK;QADT,eAAe;aACf,cAAc,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;;;OAAA;IACrC,gBAAC;AAAD,CAAC,AAzDD,IAyDC;AAzDY,iBAAS,YAyDrB,CAAA","sourcesContent":["import {EventEmitter, Observable} from '../facade/async';\nimport {ListWrapper} from '../facade/collection';\nimport {getSymbolIterator} from '../facade/lang';\n\n\n\n/**\n * An unmodifiable list of items that Angular keeps up to date when the state\n * of the application changes.\n *\n * The type of object that {@link QueryMetadata} and {@link ViewQueryMetadata} provide.\n *\n * Implements an iterable interface, therefore it can be used in both ES6\n * javascript `for (var i of items)` loops as well as in Angular templates with\n * `*ngFor=\"let i of myList\"`.\n *\n * Changes can be observed by subscribing to the changes `Observable`.\n *\n * NOTE: In the future this class will implement an `Observable` interface.\n *\n * ### Example ([live demo](http://plnkr.co/edit/RX8sJnQYl9FWuSCWme5z?p=preview))\n * ```typescript\n * @Component({...})\n * class Container {\n * @ViewChildren(Item) items:QueryList<Item>;\n * }\n * ```\n * @stable\n */\nexport class QueryList<T> {\n private _dirty = true;\n private _results: Array<T> = [];\n private _emitter = new EventEmitter();\n\n get changes(): Observable<any> { return this._emitter; }\n get length(): number { return this._results.length; }\n get first(): T { return ListWrapper.first(this._results); }\n get last(): T { return ListWrapper.last(this._results); }\n\n /**\n * returns a new array with the passed in function applied to each element.\n */\n map<U>(fn: (item: T) => U): U[] { return this._results.map(fn); }\n\n /**\n * returns a filtered array.\n */\n filter(fn: (item: T) => boolean): T[] { return this._results.filter(fn); }\n\n /**\n * returns a reduced value.\n */\n reduce<U>(fn: (acc: U, item: T) => U, init: U): U { return this._results.reduce(fn, init); }\n\n /**\n * executes function for each element in a query.\n */\n forEach(fn: (item: T) => void): void { this._results.forEach(fn); }\n\n /**\n * converts QueryList into an array\n */\n toArray(): T[] { return ListWrapper.clone(this._results); }\n\n [getSymbolIterator()](): any {\n return (this._results as any /** TODO #???? */)[getSymbolIterator()]();\n }\n\n toString(): string { return this._results.toString(); }\n\n /**\n * @internal\n */\n reset(res: Array<T|any[]>): void {\n this._results = ListWrapper.flatten(res);\n this._dirty = false;\n }\n\n /** @internal */\n notifyOnChanges(): void { this._emitter.emit(this); }\n\n /** internal */\n setDirty() { this._dirty = true; }\n\n /** internal */\n get dirty() { return this._dirty; }\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Type } from '../facade/lang';
|
|
2
|
+
import { ComponentFactory } from './component_factory';
|
|
3
|
+
import { ComponentResolver } from './component_resolver';
|
|
4
|
+
/**
|
|
5
|
+
* Component resolver that can load components lazily
|
|
6
|
+
* @experimental
|
|
7
|
+
*/
|
|
8
|
+
export declare class SystemJsComponentResolver implements ComponentResolver {
|
|
9
|
+
private _resolver;
|
|
10
|
+
constructor(_resolver: ComponentResolver);
|
|
11
|
+
resolveComponent(componentType: string | Type): Promise<ComponentFactory<any>>;
|
|
12
|
+
clearCache(): void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Component resolver that can load component factories lazily
|
|
16
|
+
* @experimental
|
|
17
|
+
*/
|
|
18
|
+
export declare class SystemJsCmpFactoryResolver implements ComponentResolver {
|
|
19
|
+
resolveComponent(componentType: string | Type): Promise<ComponentFactory<any>>;
|
|
20
|
+
clearCache(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var lang_1 = require('../facade/lang');
|
|
3
|
+
var _SEPARATOR = '#';
|
|
4
|
+
/**
|
|
5
|
+
* Component resolver that can load components lazily
|
|
6
|
+
* @experimental
|
|
7
|
+
*/
|
|
8
|
+
var SystemJsComponentResolver = (function () {
|
|
9
|
+
function SystemJsComponentResolver(_resolver) {
|
|
10
|
+
this._resolver = _resolver;
|
|
11
|
+
}
|
|
12
|
+
SystemJsComponentResolver.prototype.resolveComponent = function (componentType) {
|
|
13
|
+
var _this = this;
|
|
14
|
+
if (lang_1.isString(componentType)) {
|
|
15
|
+
var _a = componentType.split(_SEPARATOR), module = _a[0], component_1 = _a[1];
|
|
16
|
+
if (component_1 === void (0)) {
|
|
17
|
+
// Use the default export when no component is specified
|
|
18
|
+
component_1 = 'default';
|
|
19
|
+
}
|
|
20
|
+
return lang_1.global
|
|
21
|
+
.System.import(module)
|
|
22
|
+
.then(function (module) { return _this._resolver.resolveComponent(module[component_1]); });
|
|
23
|
+
}
|
|
24
|
+
return this._resolver.resolveComponent(componentType);
|
|
25
|
+
};
|
|
26
|
+
SystemJsComponentResolver.prototype.clearCache = function () { };
|
|
27
|
+
return SystemJsComponentResolver;
|
|
28
|
+
}());
|
|
29
|
+
exports.SystemJsComponentResolver = SystemJsComponentResolver;
|
|
30
|
+
var FACTORY_MODULE_SUFFIX = '.ngfactory';
|
|
31
|
+
var FACTORY_CLASS_SUFFIX = 'NgFactory';
|
|
32
|
+
/**
|
|
33
|
+
* Component resolver that can load component factories lazily
|
|
34
|
+
* @experimental
|
|
35
|
+
*/
|
|
36
|
+
var SystemJsCmpFactoryResolver = (function () {
|
|
37
|
+
function SystemJsCmpFactoryResolver() {
|
|
38
|
+
}
|
|
39
|
+
SystemJsCmpFactoryResolver.prototype.resolveComponent = function (componentType) {
|
|
40
|
+
if (lang_1.isString(componentType)) {
|
|
41
|
+
var _a = componentType.split(_SEPARATOR), module = _a[0], factory_1 = _a[1];
|
|
42
|
+
return lang_1.global
|
|
43
|
+
.System.import(module + FACTORY_MODULE_SUFFIX)
|
|
44
|
+
.then(function (module) { return module[factory_1 + FACTORY_CLASS_SUFFIX]; });
|
|
45
|
+
}
|
|
46
|
+
return Promise.resolve(null);
|
|
47
|
+
};
|
|
48
|
+
SystemJsCmpFactoryResolver.prototype.clearCache = function () { };
|
|
49
|
+
return SystemJsCmpFactoryResolver;
|
|
50
|
+
}());
|
|
51
|
+
exports.SystemJsCmpFactoryResolver = SystemJsCmpFactoryResolver;
|
|
52
|
+
//# sourceMappingURL=systemjs_component_resolver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"systemjs_component_resolver.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/linker/systemjs_component_resolver.ts"],"names":[],"mappings":";AAAA,qBAAqC,gBAAgB,CAAC,CAAA;AAKtD,IAAM,UAAU,GAAG,GAAG,CAAC;AAEvB;;;GAGG;AACH;IACE,mCAAoB,SAA4B;QAA5B,cAAS,GAAT,SAAS,CAAmB;IAAG,CAAC;IAEpD,oDAAgB,GAAhB,UAAiB,aAA0B;QAA3C,iBAeC;QAdC,EAAE,CAAC,CAAC,eAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;YAC5B,IAAA,oCAAyD,EAApD,cAAM,EAAE,mBAAS,CAAoC;YAE1D,EAAE,CAAC,CAAC,WAAS,KAAK,KAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC1B,wDAAwD;gBACxD,WAAS,GAAG,SAAS,CAAC;YACxB,CAAC;YAED,MAAM,CAAO,aAAO;iBACf,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;iBACrB,IAAI,CAAC,UAAC,MAAW,IAAK,OAAA,KAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,MAAM,CAAC,WAAS,CAAC,CAAC,EAAlD,CAAkD,CAAC,CAAC;QACjF,CAAC;QAED,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;IACxD,CAAC;IAED,8CAAU,GAAV,cAAoB,CAAC;IACvB,gCAAC;AAAD,CAAC,AArBD,IAqBC;AArBY,iCAAyB,4BAqBrC,CAAA;AAED,IAAM,qBAAqB,GAAG,YAAY,CAAC;AAC3C,IAAM,oBAAoB,GAAG,WAAW,CAAC;AAEzC;;;GAGG;AACH;IAAA;IAaA,CAAC;IAZC,qDAAgB,GAAhB,UAAiB,aAA0B;QACzC,EAAE,CAAC,CAAC,eAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;YAC5B,IAAA,oCAAuD,EAAlD,cAAM,EAAE,iBAAO,CAAoC;YACxD,MAAM,CAAO,aAAO;iBACf,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,qBAAqB,CAAC;iBAC7C,IAAI,CAAC,UAAC,MAAW,IAAK,OAAA,MAAM,CAAC,SAAO,GAAG,oBAAoB,CAAC,EAAtC,CAAsC,CAAC,CAAC;QACrE,CAAC;QAED,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED,+CAAU,GAAV,cAAoB,CAAC;IACvB,iCAAC;AAAD,CAAC,AAbD,IAaC;AAbY,kCAA0B,6BAatC,CAAA","sourcesContent":["import {Type, global, isString} from '../facade/lang';\n\nimport {ComponentFactory} from './component_factory';\nimport {ComponentResolver} from './component_resolver';\n\nconst _SEPARATOR = '#';\n\n/**\n * Component resolver that can load components lazily\n * @experimental\n */\nexport class SystemJsComponentResolver implements ComponentResolver {\n constructor(private _resolver: ComponentResolver) {}\n\n resolveComponent(componentType: string|Type): Promise<ComponentFactory<any>> {\n if (isString(componentType)) {\n let [module, component] = componentType.split(_SEPARATOR);\n\n if (component === void(0)) {\n // Use the default export when no component is specified\n component = 'default';\n }\n\n return (<any>global)\n .System.import(module)\n .then((module: any) => this._resolver.resolveComponent(module[component]));\n }\n\n return this._resolver.resolveComponent(componentType);\n }\n\n clearCache(): void {}\n}\n\nconst FACTORY_MODULE_SUFFIX = '.ngfactory';\nconst FACTORY_CLASS_SUFFIX = 'NgFactory';\n\n/**\n * Component resolver that can load component factories lazily\n * @experimental\n */\nexport class SystemJsCmpFactoryResolver implements ComponentResolver {\n resolveComponent(componentType: string|Type): Promise<ComponentFactory<any>> {\n if (isString(componentType)) {\n let [module, factory] = componentType.split(_SEPARATOR);\n return (<any>global)\n .System.import(module + FACTORY_MODULE_SUFFIX)\n .then((module: any) => module[factory + FACTORY_CLASS_SUFFIX]);\n }\n\n return Promise.resolve(null);\n }\n\n clearCache(): void {}\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ElementRef } from './element_ref';
|
|
2
1
|
import { AppElement } from './element';
|
|
2
|
+
import { ElementRef } from './element_ref';
|
|
3
3
|
import { EmbeddedViewRef } from './view_ref';
|
|
4
4
|
/**
|
|
5
5
|
* Represents an Embedded Template that can be used to instantiate Embedded Views.
|
|
@@ -12,6 +12,7 @@ import { EmbeddedViewRef } from './view_ref';
|
|
|
12
12
|
* To instantiate Embedded Views based on a Template, use
|
|
13
13
|
* {@link ViewContainerRef#createEmbeddedView}, which will create the View and attach it to the
|
|
14
14
|
* View Container.
|
|
15
|
+
* @stable
|
|
15
16
|
*/
|
|
16
17
|
export declare abstract class TemplateRef<C> {
|
|
17
18
|
/**
|
|
@@ -17,6 +17,7 @@ var EMPTY_CONTEXT = new Object();
|
|
|
17
17
|
* To instantiate Embedded Views based on a Template, use
|
|
18
18
|
* {@link ViewContainerRef#createEmbeddedView}, which will create the View and attach it to the
|
|
19
19
|
* View Container.
|
|
20
|
+
* @stable
|
|
20
21
|
*/
|
|
21
22
|
var TemplateRef = (function () {
|
|
22
23
|
function TemplateRef() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template_ref.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/linker/template_ref.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"template_ref.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/linker/template_ref.ts"],"names":[],"mappings":";;;;;;AAAA,qBAAsB,gBAAgB,CAAC,CAAA;AAOvC,IAAM,aAAa,GAAsB,IAAI,MAAM,EAAE,CAAC;AAEtD;;;;;;;;;;;;GAYG;AACH;IAAA;IAgBA,CAAC;IAHC,sBAAI,mCAAU;QAZd;;;;;;;;;;WAUG;QACH,wCAAwC;aACxC,cAA+B,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;;;OAAA;IAG/C,kBAAC;AAAD,CAAC,AAhBD,IAgBC;AAhBqB,mBAAW,cAgBhC,CAAA;AAED;IAAqC,gCAAc;IACjD,sBAAoB,WAAuB,EAAU,YAAsB;QAAI,iBAAO,CAAC;QAAnE,gBAAW,GAAX,WAAW,CAAY;QAAU,iBAAY,GAAZ,YAAY,CAAU;IAAa,CAAC;IAEzF,yCAAkB,GAAlB,UAAmB,OAAU;QAC3B,IAAI,IAAI,GAAe,IAAI,CAAC,YAAY,CACpC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,cAAc,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QAC9F,EAAE,CAAC,CAAC,cAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YACrB,OAAO,GAAQ,aAAa,CAAC;QAC/B,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QACjC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;IAED,sBAAI,oCAAU;aAAd,cAA+B,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC;;;OAAA;IACtE,mBAAC;AAAD,CAAC,AAdD,CAAqC,WAAW,GAc/C;AAdY,oBAAY,eAcxB,CAAA","sourcesContent":["import {isBlank} from '../facade/lang';\n\nimport {AppElement} from './element';\nimport {ElementRef} from './element_ref';\nimport {AppView} from './view';\nimport {EmbeddedViewRef} from './view_ref';\n\nconst EMPTY_CONTEXT = /*@ts2dart_const*/ new Object();\n\n/**\n * Represents an Embedded Template that can be used to instantiate Embedded Views.\n *\n * You can access a `TemplateRef`, in two ways. Via a directive placed on a `<template>` element (or\n * directive prefixed with `*`) and have the `TemplateRef` for this Embedded View injected into the\n * constructor of the directive using the `TemplateRef` Token. Alternatively you can query for the\n * `TemplateRef` from a Component or a Directive via {@link Query}.\n *\n * To instantiate Embedded Views based on a Template, use\n * {@link ViewContainerRef#createEmbeddedView}, which will create the View and attach it to the\n * View Container.\n * @stable\n */\nexport abstract class TemplateRef<C> {\n /**\n * The location in the View where the Embedded View logically belongs to.\n *\n * The data-binding and injection contexts of Embedded Views created from this `TemplateRef`\n * inherit from the contexts of this location.\n *\n * Typically new Embedded Views are attached to the View Container of this location, but in\n * advanced use-cases, the View can be attached to a different container while keeping the\n * data-binding and injection context from the original location.\n *\n */\n // TODO(i): rename to anchor or location\n get elementRef(): ElementRef { return null; }\n\n abstract createEmbeddedView(context: C): EmbeddedViewRef<C>;\n}\n\nexport class TemplateRef_<C> extends TemplateRef<C> {\n constructor(private _appElement: AppElement, private _viewFactory: Function) { super(); }\n\n createEmbeddedView(context: C): EmbeddedViewRef<C> {\n var view: AppView<C> = this._viewFactory(\n this._appElement.parentView.viewUtils, this._appElement.parentInjector, this._appElement);\n if (isBlank(context)) {\n context = <any>EMPTY_CONTEXT;\n }\n view.create(context, null, null);\n return view.ref;\n }\n\n get elementRef(): ElementRef { return this._appElement.elementRef; }\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
package/src/linker/view.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import { RenderComponentType, RenderDebugInfo, Renderer } from '../render/api';
|
|
1
2
|
import { AppElement } from './element';
|
|
2
|
-
import { Renderer, RenderComponentType, RenderDebugInfo } from '../render/api';
|
|
3
3
|
import { ViewRef_ } from './view_ref';
|
|
4
4
|
import { ViewType } from './view_type';
|
|
5
5
|
import { ViewUtils } from './view_utils';
|
|
6
6
|
import { ChangeDetectorRef, ChangeDetectionStrategy, ChangeDetectorState } from '../change_detection/change_detection';
|
|
7
7
|
import { StaticNodeDebugInfo, DebugContext } from './debug_context';
|
|
8
8
|
import { Injector } from '../di/injector';
|
|
9
|
+
import { AnimationPlayer } from '../animation/animation_player';
|
|
10
|
+
import { ActiveAnimationPlayersMap } from '../animation/active_animation_players_map';
|
|
9
11
|
/**
|
|
10
12
|
* Cost of making objects: http://jsperf.com/instantiate-size-of-object
|
|
11
13
|
*
|
|
@@ -31,8 +33,11 @@ export declare abstract class AppView<T> {
|
|
|
31
33
|
destroyed: boolean;
|
|
32
34
|
renderer: Renderer;
|
|
33
35
|
private _hasExternalHostElement;
|
|
36
|
+
activeAnimationPlayers: ActiveAnimationPlayersMap;
|
|
34
37
|
context: T;
|
|
35
38
|
constructor(clazz: any, componentType: RenderComponentType, type: ViewType, viewUtils: ViewUtils, parentInjector: Injector, declarationAppElement: AppElement, cdMode: ChangeDetectionStrategy);
|
|
39
|
+
cancelActiveAnimation(element: any, animationName: string, removeAllAnimations?: boolean): void;
|
|
40
|
+
registerAndStartAnimation(element: any, animationName: string, player: AnimationPlayer): void;
|
|
36
41
|
create(context: T, givenProjectableNodes: Array<any | any[]>, rootSelectorOrNode: string | any): AppElement;
|
|
37
42
|
/**
|
|
38
43
|
* Overwritten by implementations.
|
|
@@ -54,6 +59,11 @@ export declare abstract class AppView<T> {
|
|
|
54
59
|
* Overwritten by implementations
|
|
55
60
|
*/
|
|
56
61
|
destroyInternal(): void;
|
|
62
|
+
/**
|
|
63
|
+
* Overwritten by implementations
|
|
64
|
+
*/
|
|
65
|
+
detachInternal(): void;
|
|
66
|
+
detach(): void;
|
|
57
67
|
changeDetectorRef: ChangeDetectorRef;
|
|
58
68
|
parent: AppView<any>;
|
|
59
69
|
flatRootNodes: any[];
|
|
@@ -82,6 +92,7 @@ export declare class DebugAppView<T> extends AppView<T> {
|
|
|
82
92
|
constructor(clazz: any, componentType: RenderComponentType, type: ViewType, viewUtils: ViewUtils, parentInjector: Injector, declarationAppElement: AppElement, cdMode: ChangeDetectionStrategy, staticNodeDebugInfos: StaticNodeDebugInfo[]);
|
|
83
93
|
create(context: T, givenProjectableNodes: Array<any | any[]>, rootSelectorOrNode: string | any): AppElement;
|
|
84
94
|
injectorGet(token: any, nodeIndex: number, notFoundResult: any): any;
|
|
95
|
+
detach(): void;
|
|
85
96
|
destroyLocal(): void;
|
|
86
97
|
detectChanges(throwOnChange: boolean): void;
|
|
87
98
|
private _resetDebug();
|