@angular/core 7.0.0-rc.1 → 7.0.3
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/bundles/core-testing.umd.js +36 -33
- package/bundles/core-testing.umd.js.map +1 -1
- package/bundles/core-testing.umd.min.js +3 -3
- package/bundles/core-testing.umd.min.js.map +1 -1
- package/bundles/core.umd.js +1856 -1463
- package/bundles/core.umd.js.map +1 -1
- package/bundles/core.umd.min.js +155 -94
- package/bundles/core.umd.min.js.map +1 -1
- package/core.d.ts +7 -6
- package/core.metadata.json +1 -1
- package/esm2015/core.externs.js +0 -3
- package/esm2015/core.js +6 -6
- package/esm2015/index.js +2 -2
- package/esm2015/public_api.js +2 -2
- package/esm2015/src/application_init.js +5 -1
- package/esm2015/src/application_module.js +2 -2
- package/esm2015/src/application_ref.js +11 -9
- package/esm2015/src/application_tokens.js +7 -7
- package/esm2015/src/change_detection/change_detection_util.js +3 -1
- package/esm2015/src/change_detection/change_detector_ref.js +2 -1
- package/esm2015/src/change_detection/constants.js +1 -1
- package/esm2015/src/change_detection/differs/default_iterable_differ.js +2 -1
- package/esm2015/src/change_detection/differs/iterable_differs.js +8 -6
- package/esm2015/src/change_detection/differs/keyvalue_differs.js +6 -5
- package/esm2015/src/change_detection/pipe_transform.js +2 -2
- package/esm2015/src/core.js +2 -2
- package/esm2015/src/core_render3_private_export.js +5 -4
- package/esm2015/src/debug/debug_node.js +6 -6
- package/esm2015/src/di/defs.js +5 -5
- package/esm2015/src/di/forward_ref.js +4 -4
- package/esm2015/src/di/injectable.js +5 -2
- package/esm2015/src/di/injection_token.js +3 -1
- package/esm2015/src/di/injector.js +3 -3
- package/esm2015/src/di/metadata.js +16 -1
- package/esm2015/src/di/provider.js +16 -6
- package/esm2015/src/di/r3_injector.js +2 -2
- package/esm2015/src/di/reflective_injector.js +2 -2
- package/esm2015/src/di/reflective_key.js +3 -1
- package/esm2015/src/di/reflective_provider.js +3 -3
- package/esm2015/src/error_handler.js +3 -1
- package/esm2015/src/event_emitter.js +2 -1
- package/esm2015/src/i18n/tokens.js +4 -4
- package/esm2015/src/is_dev_mode.js +4 -2
- package/esm2015/src/ivy_switch/runtime/index.js +2 -2
- package/esm2015/src/ivy_switch/runtime/ivy_switch_on.js +4 -2
- package/esm2015/src/ivy_switch/runtime/jit.js +2 -2
- package/esm2015/src/ivy_switch/runtime/legacy.js +7 -1
- package/esm2015/src/ivy_switch/runtime/local.js +2 -2
- package/esm2015/src/linker/compiler.js +5 -4
- package/esm2015/src/linker/component_factory.js +4 -2
- package/esm2015/src/linker/component_factory_resolver.js +2 -1
- package/esm2015/src/linker/element_ref.js +2 -2
- package/esm2015/src/linker/ng_module_factory.js +3 -3
- package/esm2015/src/linker/ng_module_factory_loader.js +4 -3
- package/esm2015/src/linker/query_list.js +3 -1
- package/esm2015/src/linker/system_js_ng_module_factory_loader.js +3 -3
- package/esm2015/src/linker/template_ref.js +2 -1
- package/esm2015/src/linker/view_container_ref.js +2 -1
- package/esm2015/src/linker/view_ref.js +4 -2
- package/esm2015/src/metadata/di.js +13 -5
- package/esm2015/src/metadata/directives.js +20 -7
- package/esm2015/src/metadata/lifecycle_hooks.js +10 -5
- package/esm2015/src/metadata/ng_module.js +8 -6
- package/esm2015/src/metadata/view.js +1 -1
- package/esm2015/src/platform_core_providers.js +2 -2
- package/esm2015/src/profile/profile.js +5 -5
- package/esm2015/src/profile/wtf_impl.js +2 -2
- package/esm2015/src/r3_symbols.js +1 -1
- package/esm2015/src/reflection/reflection_capabilities.js +3 -3
- package/esm2015/src/render/api.js +20 -7
- package/esm2015/src/render3/component.js +52 -18
- package/esm2015/src/render3/component_ref.js +15 -15
- package/esm2015/src/render3/context_discovery.js +35 -126
- package/esm2015/src/render3/debug.js +33 -56
- package/esm2015/src/render3/definition.js +42 -37
- package/esm2015/src/render3/di.js +4 -28
- package/esm2015/src/render3/discovery_utils.js +10 -7
- package/esm2015/src/render3/i18n.js +60 -34
- package/esm2015/src/render3/index.js +3 -3
- package/esm2015/src/render3/instructions.js +162 -275
- package/esm2015/src/render3/interfaces/container.js +7 -5
- package/esm2015/src/render3/interfaces/context.js +60 -0
- package/esm2015/src/render3/interfaces/definition.js +7 -1
- package/esm2015/src/render3/interfaces/i18n.js +338 -0
- package/esm2015/src/render3/interfaces/node.js +12 -126
- package/esm2015/src/render3/interfaces/player.js +73 -1
- package/esm2015/src/render3/interfaces/styling.js +18 -22
- package/esm2015/src/render3/interfaces/view.js +19 -26
- package/esm2015/src/render3/jit/compiler_facade.js +22 -0
- package/esm2015/src/render3/jit/compiler_facade_interface.js +229 -0
- package/esm2015/src/render3/jit/directive.js +57 -93
- package/esm2015/src/render3/jit/environment.js +7 -3
- package/esm2015/src/render3/jit/injectable.js +21 -46
- package/esm2015/src/render3/jit/module.js +16 -43
- package/esm2015/src/render3/jit/pipe.js +6 -12
- package/esm2015/src/render3/jit/util.js +14 -17
- package/esm2015/src/render3/node_assert.js +1 -1
- package/esm2015/src/render3/node_manipulation.js +99 -109
- package/esm2015/src/render3/players.js +67 -0
- package/esm2015/src/render3/styling/class_and_style_bindings.js +347 -88
- package/esm2015/src/render3/styling/core_player_handler.js +2 -2
- package/esm2015/src/render3/styling/player_factory.js +48 -0
- package/esm2015/src/render3/styling/util.js +165 -17
- package/esm2015/src/render3/util.js +73 -20
- package/esm2015/src/render3/view_engine_compatibility.js +56 -40
- package/esm2015/src/sanitization/security.js +2 -2
- package/esm2015/src/testability/testability.js +5 -6
- package/esm2015/src/type.js +5 -2
- package/esm2015/src/util/decorators.js +2 -1
- package/esm2015/src/util.js +15 -1
- package/esm2015/src/version.js +6 -4
- package/esm2015/src/view/refs.js +3 -3
- package/esm2015/src/view/services.js +8 -6
- package/esm2015/src/zone/ng_zone.js +2 -2
- package/esm2015/testing/src/async.js +2 -2
- package/esm2015/testing/src/component_fixture.js +2 -2
- package/esm2015/testing/src/fake_async.js +7 -7
- package/esm2015/testing/src/fake_async_fallback.js +7 -7
- package/esm2015/testing/src/metadata_override.js +1 -1
- package/esm2015/testing/src/r3_test_bed.js +8 -6
- package/esm2015/testing/src/test_bed.js +10 -8
- package/esm2015/testing/src/test_bed_common.js +6 -6
- package/esm2015/testing/src/test_compiler.js +3 -3
- package/esm5/core.js +6 -6
- package/esm5/src/application_init.js +5 -1
- package/esm5/src/application_module.js +2 -2
- package/esm5/src/application_ref.js +11 -9
- package/esm5/src/application_tokens.js +7 -7
- package/esm5/src/change_detection/change_detection_util.js +3 -1
- package/esm5/src/change_detection/change_detector_ref.js +2 -1
- package/esm5/src/change_detection/constants.js +2 -1
- package/esm5/src/change_detection/differs/default_iterable_differ.js +2 -1
- package/esm5/src/change_detection/differs/iterable_differs.js +2 -1
- package/esm5/src/change_detection/differs/keyvalue_differs.js +2 -1
- package/esm5/src/change_detection/pipe_transform.js +1 -1
- package/esm5/src/core_render3_private_export.js +5 -4
- package/esm5/src/debug/debug_node.js +5 -5
- package/esm5/src/di/defs.js +3 -3
- package/esm5/src/di/forward_ref.js +3 -3
- package/esm5/src/di/injectable.js +6 -5
- package/esm5/src/di/injection_token.js +3 -1
- package/esm5/src/di/injector.js +3 -3
- package/esm5/src/di/metadata.js +6 -1
- package/esm5/src/di/provider.js +1 -1
- package/esm5/src/di/r3_injector.js +2 -2
- package/esm5/src/di/reflective_injector.js +2 -2
- package/esm5/src/di/reflective_key.js +3 -1
- package/esm5/src/di/reflective_provider.js +2 -2
- package/esm5/src/error_handler.js +3 -1
- package/esm5/src/event_emitter.js +2 -1
- package/esm5/src/i18n/tokens.js +5 -5
- package/esm5/src/is_dev_mode.js +4 -2
- package/esm5/src/ivy_switch/runtime/ivy_switch_on.js +3 -2
- package/esm5/src/ivy_switch/runtime/legacy.js +4 -1
- package/esm5/src/linker/compiler.js +5 -4
- package/esm5/src/linker/component_factory.js +5 -1
- package/esm5/src/linker/component_factory_resolver.js +4 -1
- package/esm5/src/linker/element_ref.js +2 -2
- package/esm5/src/linker/ng_module_factory.js +3 -3
- package/esm5/src/linker/ng_module_factory_loader.js +4 -3
- package/esm5/src/linker/query_list.js +3 -1
- package/esm5/src/linker/system_js_ng_module_factory_loader.js +3 -3
- package/esm5/src/linker/template_ref.js +2 -1
- package/esm5/src/linker/view_container_ref.js +2 -1
- package/esm5/src/linker/view_ref.js +4 -2
- package/esm5/src/metadata/di.js +10 -3
- package/esm5/src/metadata/directives.js +9 -6
- package/esm5/src/metadata/lifecycle_hooks.js +1 -1
- package/esm5/src/metadata/ng_module.js +4 -3
- package/esm5/src/metadata/view.js +4 -1
- package/esm5/src/platform_core_providers.js +2 -2
- package/esm5/src/profile/profile.js +5 -5
- package/esm5/src/profile/wtf_impl.js +1 -1
- package/esm5/src/r3_symbols.js +1 -1
- package/esm5/src/reflection/reflection_capabilities.js +3 -3
- package/esm5/src/render/api.js +11 -5
- package/esm5/src/render3/component.js +45 -16
- package/esm5/src/render3/component_ref.js +12 -13
- package/esm5/src/render3/context_discovery.js +33 -65
- package/esm5/src/render3/debug.js +31 -50
- package/esm5/src/render3/definition.js +35 -31
- package/esm5/src/render3/di.js +4 -20
- package/esm5/src/render3/discovery_utils.js +12 -7
- package/esm5/src/render3/i18n.js +40 -30
- package/esm5/src/render3/index.js +3 -3
- package/esm5/src/render3/instructions.js +143 -230
- package/esm5/src/render3/interfaces/container.js +6 -5
- package/esm5/src/render3/interfaces/context.js +13 -0
- package/esm5/src/render3/interfaces/definition.js +1 -1
- package/esm5/src/render3/interfaces/i18n.js +25 -0
- package/esm5/src/render3/interfaces/node.js +1 -1
- package/esm5/src/render3/interfaces/player.js +1 -1
- package/esm5/src/render3/interfaces/styling.js +1 -8
- package/esm5/src/render3/interfaces/view.js +18 -17
- package/esm5/src/render3/jit/compiler_facade.js +21 -0
- package/esm5/src/render3/jit/compiler_facade_interface.js +15 -0
- package/esm5/src/render3/jit/directive.js +44 -79
- package/esm5/src/render3/jit/environment.js +7 -3
- package/esm5/src/render3/jit/injectable.js +26 -46
- package/esm5/src/render3/jit/module.js +16 -31
- package/esm5/src/render3/jit/pipe.js +6 -9
- package/esm5/src/render3/jit/util.js +12 -17
- package/esm5/src/render3/node_assert.js +1 -1
- package/esm5/src/render3/node_manipulation.js +89 -101
- package/esm5/src/render3/players.js +59 -0
- package/esm5/src/render3/styling/class_and_style_bindings.js +248 -85
- package/esm5/src/render3/styling/core_player_handler.js +2 -2
- package/esm5/src/render3/styling/player_factory.js +29 -0
- package/esm5/src/render3/styling/util.js +132 -14
- package/esm5/src/render3/util.js +54 -21
- package/esm5/src/render3/view_engine_compatibility.js +46 -32
- package/esm5/src/sanitization/security.js +3 -3
- package/esm5/src/testability/testability.js +4 -4
- package/esm5/src/type.js +2 -2
- package/esm5/src/util/decorators.js +1 -1
- package/esm5/src/util.js +13 -1
- package/esm5/src/version.js +6 -3
- package/esm5/src/view/refs.js +1 -1
- package/esm5/src/view/services.js +7 -10
- package/esm5/src/zone/ng_zone.js +2 -2
- package/esm5/testing/src/async.js +2 -2
- package/esm5/testing/src/component_fixture.js +2 -2
- package/esm5/testing/src/fake_async.js +7 -7
- package/esm5/testing/src/fake_async_fallback.js +7 -7
- package/esm5/testing/src/metadata_override.js +1 -1
- package/esm5/testing/src/r3_test_bed.js +8 -7
- package/esm5/testing/src/test_bed.js +10 -8
- package/esm5/testing/src/test_bed_common.js +4 -4
- package/esm5/testing/src/test_compiler.js +3 -3
- package/fesm2015/core.js +2486 -1951
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +36 -32
- package/fesm2015/testing.js.map +1 -1
- package/fesm5/core.js +1830 -1439
- package/fesm5/core.js.map +1 -1
- package/fesm5/testing.js +36 -33
- package/fesm5/testing.js.map +1 -1
- package/package.json +1 -2
- package/src/application_init.d.ts +4 -0
- package/src/application_module.d.ts +1 -1
- package/src/application_ref.d.ts +10 -8
- package/src/application_tokens.d.ts +6 -6
- package/src/change_detection/change_detection_util.d.ts +2 -0
- package/src/change_detection/change_detector_ref.d.ts +1 -0
- package/src/change_detection/constants.d.ts +1 -0
- package/src/change_detection/differs/default_iterable_differ.d.ts +1 -0
- package/src/change_detection/differs/iterable_differs.d.ts +8 -6
- package/src/change_detection/differs/keyvalue_differs.d.ts +5 -4
- package/src/change_detection/pipe_transform.d.ts +1 -1
- package/src/core_render3_private_export.d.ts +7 -5
- package/src/debug/debug_node.d.ts +5 -5
- package/src/di/defs.d.ts +4 -4
- package/src/di/forward_ref.d.ts +3 -3
- package/src/di/injectable.d.ts +10 -7
- package/src/di/injection_token.d.ts +2 -0
- package/src/di/injector.d.ts +5 -3
- package/src/di/metadata.d.ts +24 -1
- package/src/di/provider.d.ts +19 -5
- package/src/di/r3_injector.d.ts +1 -1
- package/src/di/reflective_injector.d.ts +1 -1
- package/src/di/reflective_key.d.ts +2 -0
- package/src/di/reflective_provider.d.ts +2 -2
- package/src/error_handler.d.ts +2 -0
- package/src/event_emitter.d.ts +1 -0
- package/src/i18n/tokens.d.ts +4 -4
- package/src/is_dev_mode.d.ts +3 -1
- package/src/ivy_switch/runtime/ivy_switch_on.d.ts +2 -1
- package/src/ivy_switch/runtime/legacy.d.ts +3 -0
- package/src/linker/compiler.d.ts +5 -4
- package/src/linker/component_factory.d.ts +5 -1
- package/src/linker/component_factory_resolver.d.ts +3 -0
- package/src/linker/element_ref.d.ts +1 -1
- package/src/linker/ng_module_factory.d.ts +2 -2
- package/src/linker/ng_module_factory_loader.d.ts +3 -2
- package/src/linker/query_list.d.ts +2 -0
- package/src/linker/system_js_ng_module_factory_loader.d.ts +2 -2
- package/src/linker/template_ref.d.ts +1 -0
- package/src/linker/view_container_ref.d.ts +1 -0
- package/src/linker/view_ref.d.ts +3 -1
- package/src/metadata/di.d.ts +13 -5
- package/src/metadata/directives.d.ts +19 -6
- package/src/metadata/lifecycle_hooks.d.ts +9 -4
- package/src/metadata/ng_module.d.ts +7 -7
- package/src/metadata/view.d.ts +3 -0
- package/src/platform_core_providers.d.ts +1 -1
- package/src/profile/profile.d.ts +4 -4
- package/src/profile/wtf_impl.d.ts +1 -1
- package/src/r3_symbols.d.ts +1 -1
- package/src/render/api.d.ts +10 -7
- package/src/render3/component.d.ts +14 -3
- package/src/render3/context_discovery.d.ts +6 -58
- package/src/render3/definition.d.ts +0 -4
- package/src/render3/di.d.ts +1 -3
- package/src/render3/discovery_utils.d.ts +7 -1
- package/src/render3/i18n.d.ts +4 -0
- package/src/render3/index.d.ts +2 -2
- package/src/render3/instructions.d.ts +43 -50
- package/src/render3/interfaces/container.d.ts +36 -22
- package/src/render3/interfaces/context.d.ts +52 -0
- package/src/render3/interfaces/definition.d.ts +8 -3
- package/src/render3/interfaces/i18n.d.ts +326 -0
- package/src/render3/interfaces/node.d.ts +12 -89
- package/src/render3/interfaces/player.d.ts +58 -4
- package/src/render3/interfaces/styling.d.ts +17 -15
- package/src/render3/interfaces/view.d.ts +28 -28
- package/src/render3/jit/compiler_facade.d.ts +3 -0
- package/src/render3/jit/compiler_facade_interface.d.ts +131 -0
- package/src/render3/jit/directive.d.ts +3 -0
- package/src/render3/jit/util.d.ts +3 -3
- package/src/render3/node_manipulation.d.ts +21 -22
- package/src/render3/players.d.ts +32 -0
- package/src/render3/styling/class_and_style_bindings.d.ts +31 -24
- package/src/render3/styling/player_factory.d.ts +31 -0
- package/src/render3/styling/util.d.ts +31 -9
- package/src/render3/util.d.ts +32 -15
- package/src/render3/view_engine_compatibility.d.ts +3 -0
- package/src/sanitization/security.d.ts +2 -2
- package/src/testability/testability.d.ts +5 -6
- package/src/type.d.ts +6 -1
- package/src/util/decorators.d.ts +1 -0
- package/src/util.d.ts +10 -0
- package/src/version.d.ts +4 -1
- package/src/view/services.d.ts +2 -2
- package/src/zone/ng_zone.d.ts +1 -1
- package/testing/src/async.d.ts +1 -1
- package/testing/src/component_fixture.d.ts +1 -1
- package/testing/src/fake_async.d.ts +6 -6
- package/testing/src/fake_async_fallback.d.ts +6 -6
- package/testing/src/metadata_override.d.ts +1 -1
- package/testing/src/r3_test_bed.d.ts +4 -4
- package/testing/src/test_bed.d.ts +12 -10
- package/testing/src/test_bed_common.d.ts +6 -6
- package/testing/src/test_compiler.d.ts +2 -2
- package/testing/testing.metadata.json +1 -1
- package/esm2015/src/render3/player.js +0 -51
- package/esm5/src/render3/player.js +0 -39
- package/src/render3/player.d.ts +0 -3
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* See DomSanitizer for more details on security in Angular applications.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
15
|
+
* @publicApi
|
|
16
16
|
*/
|
|
17
17
|
export declare enum SecurityContext {
|
|
18
18
|
NONE = 0,
|
|
@@ -25,7 +25,7 @@ export declare enum SecurityContext {
|
|
|
25
25
|
/**
|
|
26
26
|
* Sanitizer is used by the views to sanitize potentially dangerous values.
|
|
27
27
|
*
|
|
28
|
-
*
|
|
28
|
+
* @publicApi
|
|
29
29
|
*/
|
|
30
30
|
export declare abstract class Sanitizer {
|
|
31
31
|
abstract sanitize(context: SecurityContext, value: {} | string | null): string | null;
|
|
@@ -10,7 +10,7 @@ import { NgZone } from '../zone/ng_zone';
|
|
|
10
10
|
* Testability API.
|
|
11
11
|
* `declare` keyword causes tsickle to generate externs, so these methods are
|
|
12
12
|
* not renamed by Closure Compiler.
|
|
13
|
-
* @
|
|
13
|
+
* @publicApi
|
|
14
14
|
*/
|
|
15
15
|
export declare interface PublicTestability {
|
|
16
16
|
isStable(): boolean;
|
|
@@ -34,7 +34,7 @@ export declare type UpdateCallback = (tasks: PendingMacrotask[]) => boolean;
|
|
|
34
34
|
* The Testability service provides testing hooks that can be accessed from
|
|
35
35
|
* the browser and by services such as Protractor. Each bootstrapped Angular
|
|
36
36
|
* application on the page will have an instance of Testability.
|
|
37
|
-
* @
|
|
37
|
+
* @publicApi
|
|
38
38
|
*/
|
|
39
39
|
export declare class Testability implements PublicTestability {
|
|
40
40
|
private _ngZone;
|
|
@@ -89,7 +89,7 @@ export declare class Testability implements PublicTestability {
|
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
91
|
* A global registry of {@link Testability} instances for specific elements.
|
|
92
|
-
* @
|
|
92
|
+
* @publicApi
|
|
93
93
|
*/
|
|
94
94
|
export declare class TestabilityRegistry {
|
|
95
95
|
constructor();
|
|
@@ -133,8 +133,7 @@ export declare class TestabilityRegistry {
|
|
|
133
133
|
* Adapter interface for retrieving the `Testability` service associated for a
|
|
134
134
|
* particular context.
|
|
135
135
|
*
|
|
136
|
-
* @
|
|
137
|
-
* the Protractor team.
|
|
136
|
+
* @publicApi
|
|
138
137
|
*/
|
|
139
138
|
export interface GetTestability {
|
|
140
139
|
addToWindow(registry: TestabilityRegistry): void;
|
|
@@ -142,6 +141,6 @@ export interface GetTestability {
|
|
|
142
141
|
}
|
|
143
142
|
/**
|
|
144
143
|
* Set the {@link GetTestability} implementation used by the Angular testing framework.
|
|
145
|
-
* @
|
|
144
|
+
* @publicApi
|
|
146
145
|
*/
|
|
147
146
|
export declare function setTestabilityGetter(getter: GetTestability): void;
|
package/src/type.d.ts
CHANGED
|
@@ -13,10 +13,15 @@
|
|
|
13
13
|
* An example of a `Type` is `MyCustomComponent` class, which in JavaScript is be represented by
|
|
14
14
|
* the `MyCustomComponent` constructor function.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
16
|
+
* @publicApi
|
|
17
17
|
*/
|
|
18
18
|
export declare const Type: FunctionConstructor;
|
|
19
19
|
export declare function isType(v: any): v is Type<any>;
|
|
20
20
|
export interface Type<T> extends Function {
|
|
21
21
|
new (...args: any[]): T;
|
|
22
22
|
}
|
|
23
|
+
export declare type Mutable<T extends {
|
|
24
|
+
[x: string]: any;
|
|
25
|
+
}, K extends string> = {
|
|
26
|
+
[P in K]: T[P];
|
|
27
|
+
};
|
package/src/util/decorators.d.ts
CHANGED
package/src/util.d.ts
CHANGED
|
@@ -18,3 +18,13 @@ export declare function getSymbolIterator(): string | symbol;
|
|
|
18
18
|
export declare function scheduleMicroTask(fn: Function): void;
|
|
19
19
|
export declare function looseIdentical(a: any, b: any): boolean;
|
|
20
20
|
export declare function stringify(token: any): string;
|
|
21
|
+
/**
|
|
22
|
+
* Convince closure compiler that the wrapped function has no side-effects.
|
|
23
|
+
*
|
|
24
|
+
* Closure compiler always assumes that `toString` has no side-effects. We use this quirk to
|
|
25
|
+
* allow us to execute a function but have closure compiler mark the call as no-side-effects.
|
|
26
|
+
* It is important that the return value for the `noSideEffects` function be assigned
|
|
27
|
+
* to something which is retained otherwise the call to `noSideEffects` will be removed by closure
|
|
28
|
+
* compiler.
|
|
29
|
+
*/
|
|
30
|
+
export declare function noSideEffects(fn: () => void): string;
|
package/src/version.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/**
|
|
9
9
|
* @description Represents the version of Angular
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* @publicApi
|
|
12
12
|
*/
|
|
13
13
|
export declare class Version {
|
|
14
14
|
full: string;
|
|
@@ -17,4 +17,7 @@ export declare class Version {
|
|
|
17
17
|
readonly patch: string;
|
|
18
18
|
constructor(full: string);
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* @publicApi
|
|
22
|
+
*/
|
|
20
23
|
export declare const VERSION: Version;
|
package/src/view/services.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export declare class DebugRenderer2 implements Renderer2 {
|
|
|
22
22
|
readonly data: {
|
|
23
23
|
[key: string]: any;
|
|
24
24
|
};
|
|
25
|
+
private createDebugContext;
|
|
25
26
|
/**
|
|
26
27
|
* Factory function used to create a `DebugContext` when a node is created.
|
|
27
28
|
*
|
|
@@ -30,8 +31,7 @@ export declare class DebugRenderer2 implements Renderer2 {
|
|
|
30
31
|
* The factory is configurable so that the `DebugRenderer2` could instantiate either a View Engine
|
|
31
32
|
* or a Render context.
|
|
32
33
|
*/
|
|
33
|
-
debugContextFactory: () => DebugContext | null;
|
|
34
|
-
private readonly debugContext;
|
|
34
|
+
debugContextFactory: (nativeElement?: any) => DebugContext | null;
|
|
35
35
|
constructor(delegate: Renderer2);
|
|
36
36
|
destroyNode(node: any): void;
|
|
37
37
|
destroy(): void;
|
package/src/zone/ng_zone.d.ts
CHANGED
package/testing/src/async.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Clears out the shared fake async zone for a test.
|
|
3
3
|
* To be called in a global `beforeEach`.
|
|
4
4
|
*
|
|
5
|
-
* @
|
|
5
|
+
* @publicApi
|
|
6
6
|
*/
|
|
7
7
|
export declare function resetFakeAsyncZone(): void;
|
|
8
8
|
/**
|
|
@@ -22,7 +22,7 @@ export declare function resetFakeAsyncZone(): void;
|
|
|
22
22
|
* @param fn
|
|
23
23
|
* @returns The function wrapped to be executed in the fakeAsync zone
|
|
24
24
|
*
|
|
25
|
-
* @
|
|
25
|
+
* @publicApi
|
|
26
26
|
*/
|
|
27
27
|
export declare function fakeAsync(fn: Function): (...args: any[]) => any;
|
|
28
28
|
/**
|
|
@@ -36,7 +36,7 @@ export declare function fakeAsync(fn: Function): (...args: any[]) => any;
|
|
|
36
36
|
*
|
|
37
37
|
* {@example core/testing/ts/fake_async.ts region='basic'}
|
|
38
38
|
*
|
|
39
|
-
* @
|
|
39
|
+
* @publicApi
|
|
40
40
|
*/
|
|
41
41
|
export declare function tick(millis?: number): void;
|
|
42
42
|
/**
|
|
@@ -47,18 +47,18 @@ export declare function tick(millis?: number): void;
|
|
|
47
47
|
* @param maxTurns
|
|
48
48
|
* @returns The simulated time elapsed, in millis.
|
|
49
49
|
*
|
|
50
|
-
* @
|
|
50
|
+
* @publicApi
|
|
51
51
|
*/
|
|
52
52
|
export declare function flush(maxTurns?: number): number;
|
|
53
53
|
/**
|
|
54
54
|
* Discard all remaining periodic tasks.
|
|
55
55
|
*
|
|
56
|
-
* @
|
|
56
|
+
* @publicApi
|
|
57
57
|
*/
|
|
58
58
|
export declare function discardPeriodicTasks(): void;
|
|
59
59
|
/**
|
|
60
60
|
* Flush any pending microtasks.
|
|
61
61
|
*
|
|
62
|
-
* @
|
|
62
|
+
* @publicApi
|
|
63
63
|
*/
|
|
64
64
|
export declare function flushMicrotasks(): void;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* Clears out the shared fake async zone for a test.
|
|
10
10
|
* To be called in a global `beforeEach`.
|
|
11
11
|
*
|
|
12
|
-
* @
|
|
12
|
+
* @publicApi
|
|
13
13
|
*/
|
|
14
14
|
export declare function resetFakeAsyncZoneFallback(): void;
|
|
15
15
|
/**
|
|
@@ -29,7 +29,7 @@ export declare function resetFakeAsyncZoneFallback(): void;
|
|
|
29
29
|
* @param fn
|
|
30
30
|
* @returns The function wrapped to be executed in the fakeAsync zone
|
|
31
31
|
*
|
|
32
|
-
* @
|
|
32
|
+
* @publicApi
|
|
33
33
|
*/
|
|
34
34
|
export declare function fakeAsyncFallback(fn: Function): (...args: any[]) => any;
|
|
35
35
|
/**
|
|
@@ -43,7 +43,7 @@ export declare function fakeAsyncFallback(fn: Function): (...args: any[]) => any
|
|
|
43
43
|
*
|
|
44
44
|
* {@example core/testing/ts/fake_async.ts region='basic'}
|
|
45
45
|
*
|
|
46
|
-
* @
|
|
46
|
+
* @publicApi
|
|
47
47
|
*/
|
|
48
48
|
export declare function tickFallback(millis?: number): void;
|
|
49
49
|
/**
|
|
@@ -54,18 +54,18 @@ export declare function tickFallback(millis?: number): void;
|
|
|
54
54
|
* @param maxTurns
|
|
55
55
|
* @returns The simulated time elapsed, in millis.
|
|
56
56
|
*
|
|
57
|
-
* @
|
|
57
|
+
* @publicApi
|
|
58
58
|
*/
|
|
59
59
|
export declare function flushFallback(maxTurns?: number): number;
|
|
60
60
|
/**
|
|
61
61
|
* Discard all remaining periodic tasks.
|
|
62
62
|
*
|
|
63
|
-
* @
|
|
63
|
+
* @publicApi
|
|
64
64
|
*/
|
|
65
65
|
export declare function discardPeriodicTasksFallback(): void;
|
|
66
66
|
/**
|
|
67
67
|
* Flush any pending microtasks.
|
|
68
68
|
*
|
|
69
|
-
* @
|
|
69
|
+
* @publicApi
|
|
70
70
|
*/
|
|
71
71
|
export declare function flushMicrotasksFallback(): void;
|
|
@@ -32,13 +32,13 @@ export declare class TestBedRender3 implements Injector, TestBed {
|
|
|
32
32
|
* Test modules and platforms for individual platforms are available from
|
|
33
33
|
* '@angular/<platform_name>/testing'.
|
|
34
34
|
*
|
|
35
|
-
* @
|
|
35
|
+
* @publicApi
|
|
36
36
|
*/
|
|
37
37
|
static initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, aotSummaries?: () => any[]): TestBed;
|
|
38
38
|
/**
|
|
39
39
|
* Reset the providers for the test injector.
|
|
40
40
|
*
|
|
41
|
-
* @
|
|
41
|
+
* @publicApi
|
|
42
42
|
*/
|
|
43
43
|
static resetTestEnvironment(): void;
|
|
44
44
|
static configureCompiler(config: {
|
|
@@ -117,13 +117,13 @@ export declare class TestBedRender3 implements Injector, TestBed {
|
|
|
117
117
|
* Test modules and platforms for individual platforms are available from
|
|
118
118
|
* '@angular/<platform_name>/testing'.
|
|
119
119
|
*
|
|
120
|
-
* @
|
|
120
|
+
* @publicApi
|
|
121
121
|
*/
|
|
122
122
|
initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, aotSummaries?: () => any[]): void;
|
|
123
123
|
/**
|
|
124
124
|
* Reset the providers for the test injector.
|
|
125
125
|
*
|
|
126
|
-
* @
|
|
126
|
+
* @publicApi
|
|
127
127
|
*/
|
|
128
128
|
resetTestEnvironment(): void;
|
|
129
129
|
resetTestingModule(): void;
|
|
@@ -23,13 +23,13 @@ export interface TestBed {
|
|
|
23
23
|
* Test modules and platforms for individual platforms are available from
|
|
24
24
|
* '@angular/<platform_name>/testing'.
|
|
25
25
|
*
|
|
26
|
-
* @
|
|
26
|
+
* @publicApi
|
|
27
27
|
*/
|
|
28
28
|
initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, aotSummaries?: () => any[]): void;
|
|
29
29
|
/**
|
|
30
30
|
* Reset the providers for the test injector.
|
|
31
31
|
*
|
|
32
|
-
* @
|
|
32
|
+
* @publicApi
|
|
33
33
|
*/
|
|
34
34
|
resetTestEnvironment(): void;
|
|
35
35
|
resetTestingModule(): void;
|
|
@@ -102,13 +102,13 @@ export declare class TestBedViewEngine implements Injector, TestBed {
|
|
|
102
102
|
* Test modules and platforms for individual platforms are available from
|
|
103
103
|
* '@angular/<platform_name>/testing'.
|
|
104
104
|
*
|
|
105
|
-
* @
|
|
105
|
+
* @publicApi
|
|
106
106
|
*/
|
|
107
107
|
static initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, aotSummaries?: () => any[]): TestBedViewEngine;
|
|
108
108
|
/**
|
|
109
109
|
* Reset the providers for the test injector.
|
|
110
110
|
*
|
|
111
|
-
* @
|
|
111
|
+
* @publicApi
|
|
112
112
|
*/
|
|
113
113
|
static resetTestEnvironment(): void;
|
|
114
114
|
static resetTestingModule(): TestBedStatic;
|
|
@@ -201,13 +201,13 @@ export declare class TestBedViewEngine implements Injector, TestBed {
|
|
|
201
201
|
* Test modules and platforms for individual platforms are available from
|
|
202
202
|
* '@angular/<platform_name>/testing'.
|
|
203
203
|
*
|
|
204
|
-
* @
|
|
204
|
+
* @publicApi
|
|
205
205
|
*/
|
|
206
206
|
initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, aotSummaries?: () => any[]): void;
|
|
207
207
|
/**
|
|
208
208
|
* Reset the providers for the test injector.
|
|
209
209
|
*
|
|
210
|
-
* @
|
|
210
|
+
* @publicApi
|
|
211
211
|
*/
|
|
212
212
|
resetTestEnvironment(): void;
|
|
213
213
|
resetTestingModule(): void;
|
|
@@ -261,6 +261,8 @@ export declare class TestBedViewEngine implements Injector, TestBed {
|
|
|
261
261
|
*
|
|
262
262
|
* Note: Use `TestBed` in tests. It will be set to either `TestBedViewEngine` or `TestBedRender3`
|
|
263
263
|
* according to the compiler used.
|
|
264
|
+
*
|
|
265
|
+
* @publicApi
|
|
264
266
|
*/
|
|
265
267
|
export declare const TestBed: TestBedStatic;
|
|
266
268
|
/**
|
|
@@ -268,7 +270,7 @@ export declare const TestBed: TestBedStatic;
|
|
|
268
270
|
*
|
|
269
271
|
* It will be either an instance of `TestBedViewEngine` or `TestBedRender3`.
|
|
270
272
|
*
|
|
271
|
-
* @
|
|
273
|
+
* @publicApi
|
|
272
274
|
*/
|
|
273
275
|
export declare const getTestBed: () => TestBed;
|
|
274
276
|
/**
|
|
@@ -293,11 +295,11 @@ export declare const getTestBed: () => TestBed;
|
|
|
293
295
|
* eventually
|
|
294
296
|
* becomes `it('...', @Inject (object: AClass, async: AsyncTestCompleter) => { ... });`
|
|
295
297
|
*
|
|
296
|
-
*
|
|
298
|
+
* @publicApi
|
|
297
299
|
*/
|
|
298
300
|
export declare function inject(tokens: any[], fn: Function): () => any;
|
|
299
301
|
/**
|
|
300
|
-
* @
|
|
302
|
+
* @publicApi
|
|
301
303
|
*/
|
|
302
304
|
export declare class InjectSetupWrapper {
|
|
303
305
|
private _moduleDef;
|
|
@@ -306,7 +308,7 @@ export declare class InjectSetupWrapper {
|
|
|
306
308
|
inject(tokens: any[], fn: Function): () => any;
|
|
307
309
|
}
|
|
308
310
|
/**
|
|
309
|
-
* @
|
|
311
|
+
* @publicApi
|
|
310
312
|
*/
|
|
311
313
|
export declare function withModule(moduleDef: TestModuleMetadata): InjectSetupWrapper;
|
|
312
314
|
export declare function withModule(moduleDef: TestModuleMetadata, fn: Function): () => any;
|
|
@@ -12,21 +12,21 @@ import { TestBed } from './test_bed';
|
|
|
12
12
|
/**
|
|
13
13
|
* An abstract class for inserting the root test component element in a platform independent way.
|
|
14
14
|
*
|
|
15
|
-
* @
|
|
15
|
+
* @publicApi
|
|
16
16
|
*/
|
|
17
17
|
export declare class TestComponentRenderer {
|
|
18
18
|
insertRootElement(rootElementId: string): void;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
* @
|
|
21
|
+
* @publicApi
|
|
22
22
|
*/
|
|
23
23
|
export declare const ComponentFixtureAutoDetect: InjectionToken<boolean[]>;
|
|
24
24
|
/**
|
|
25
|
-
* @
|
|
25
|
+
* @publicApi
|
|
26
26
|
*/
|
|
27
27
|
export declare const ComponentFixtureNoNgZone: InjectionToken<boolean[]>;
|
|
28
28
|
/**
|
|
29
|
-
* @
|
|
29
|
+
* @publicApi
|
|
30
30
|
*/
|
|
31
31
|
export declare type TestModuleMetadata = {
|
|
32
32
|
providers?: any[];
|
|
@@ -37,14 +37,14 @@ export declare type TestModuleMetadata = {
|
|
|
37
37
|
};
|
|
38
38
|
/**
|
|
39
39
|
* Static methods implemented by the `TestBedViewEngine` and `TestBedRender3`
|
|
40
|
+
*
|
|
41
|
+
* @publicApi
|
|
40
42
|
*/
|
|
41
43
|
export interface TestBedStatic {
|
|
42
44
|
new (...args: any[]): TestBed;
|
|
43
45
|
initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, aotSummaries?: () => any[]): TestBed;
|
|
44
46
|
/**
|
|
45
47
|
* Reset the providers for the test injector.
|
|
46
|
-
*
|
|
47
|
-
* @experimental
|
|
48
48
|
*/
|
|
49
49
|
resetTestEnvironment(): void;
|
|
50
50
|
resetTestingModule(): TestBedStatic;
|
|
@@ -10,7 +10,7 @@ import { MetadataOverride } from './metadata_override';
|
|
|
10
10
|
/**
|
|
11
11
|
* Special interface to the compiler only used by testing
|
|
12
12
|
*
|
|
13
|
-
* @
|
|
13
|
+
* @publicApi
|
|
14
14
|
*/
|
|
15
15
|
export declare class TestingCompiler extends Compiler {
|
|
16
16
|
readonly injector: Injector;
|
|
@@ -38,7 +38,7 @@ export declare class TestingCompiler extends Compiler {
|
|
|
38
38
|
/**
|
|
39
39
|
* A factory for creating a Compiler
|
|
40
40
|
*
|
|
41
|
-
* @
|
|
41
|
+
* @publicApi
|
|
42
42
|
*/
|
|
43
43
|
export declare abstract class TestingCompilerFactory {
|
|
44
44
|
abstract createTestingCompiler(options?: CompilerOptions[]): TestingCompiler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"ɵangular_packages_core_testing_testing_a":{"__symbolic":"class","members":{"initTestEnvironment":[{"__symbolic":"method"}],"resetTestEnvironment":[{"__symbolic":"method"}],"resetTestingModule":[{"__symbolic":"method"}],"configureCompiler":[{"__symbolic":"method"}],"configureTestingModule":[{"__symbolic":"method"}],"compileComponents":[{"__symbolic":"method"}],"_initIfNeeded":[{"__symbolic":"method"}],"_createCompilerAndModule":[{"__symbolic":"method"}],"_assertNotInstantiated":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"execute":[{"__symbolic":"method"}],"overrideModule":[{"__symbolic":"method"}],"overrideComponent":[{"__symbolic":"method"}],"overrideDirective":[{"__symbolic":"method"}],"overridePipe":[{"__symbolic":"method"}],"overrideProvider":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"deprecatedOverrideProvider":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"overrideProviderImpl":[{"__symbolic":"method"}],"overrideTemplateUsingTestingModule":[{"__symbolic":"method"}],"createComponent":[{"__symbolic":"method"}]},"statics":{"compileComponents":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"getTestBed"}},"member":"compileComponents"}}},"get":{"__symbolic":"function","parameters":["token","notFoundValue"],"defaults":[null,{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":245,"character":46},"member":"THROW_IF_NOT_FOUND"}],"value":{"__symbolic":"error","message":"Reference to a non-exported function","line":
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"ɵangular_packages_core_testing_testing_a":{"__symbolic":"class","members":{"initTestEnvironment":[{"__symbolic":"method"}],"resetTestEnvironment":[{"__symbolic":"method"}],"resetTestingModule":[{"__symbolic":"method"}],"configureCompiler":[{"__symbolic":"method"}],"configureTestingModule":[{"__symbolic":"method"}],"compileComponents":[{"__symbolic":"method"}],"_initIfNeeded":[{"__symbolic":"method"}],"_createCompilerAndModule":[{"__symbolic":"method"}],"_assertNotInstantiated":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"execute":[{"__symbolic":"method"}],"overrideModule":[{"__symbolic":"method"}],"overrideComponent":[{"__symbolic":"method"}],"overrideDirective":[{"__symbolic":"method"}],"overridePipe":[{"__symbolic":"method"}],"overrideProvider":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"deprecatedOverrideProvider":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"overrideProviderImpl":[{"__symbolic":"method"}],"overrideTemplateUsingTestingModule":[{"__symbolic":"method"}],"createComponent":[{"__symbolic":"method"}]},"statics":{"compileComponents":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"getTestBed"}},"member":"compileComponents"}}},"get":{"__symbolic":"function","parameters":["token","notFoundValue"],"defaults":[null,{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":245,"character":46},"member":"THROW_IF_NOT_FOUND"}],"value":{"__symbolic":"error","message":"Reference to a non-exported function","line":654,"character":9,"context":{"name":"_getTestBedViewEngine"},"module":"./src/test_bed"}},"createComponent":{"__symbolic":"function","parameters":["component"],"value":{"__symbolic":"error","message":"Reference to a non-exported function","line":654,"character":9,"context":{"name":"_getTestBedViewEngine"},"module":"./src/test_bed"}}}},"async":{"__symbolic":"function"},"ComponentFixture":{"__symbolic":"class","arity":1,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ComponentRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":53,"character":40,"context":{"typeName":"T"},"module":"./src/component_fixture"}]},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":53,"character":59},{"__symbolic":"reference","name":"boolean"}]}],"_tick":[{"__symbolic":"method"}],"detectChanges":[{"__symbolic":"method"}],"checkNoChanges":[{"__symbolic":"method"}],"autoDetectChanges":[{"__symbolic":"method"}],"isStable":[{"__symbolic":"method"}],"whenStable":[{"__symbolic":"method"}],"_getRenderer":[{"__symbolic":"method"}],"whenRenderingDone":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}]}},"resetFakeAsyncZone":{"__symbolic":"function"},"fakeAsync":{"__symbolic":"function"},"tick":{"__symbolic":"function"},"flush":{"__symbolic":"function"},"discardPeriodicTasks":{"__symbolic":"function"},"flushMicrotasks":{"__symbolic":"function"},"TestBed":{"__symbolic":"if","condition":{"__symbolic":"reference","module":"@angular/core","name":"ɵivyEnabled","line":641,"character":4},"thenExpression":{"__symbolic":"reference","name":"ɵangular_packages_core_testing_testing_b"},"elseExpression":{"__symbolic":"reference","name":"ɵangular_packages_core_testing_testing_a"}},"getTestBed":{"__symbolic":"if","condition":{"__symbolic":"reference","module":"@angular/core","name":"ɵivyEnabled","line":650,"character":41},"thenExpression":{"__symbolic":"reference","name":"ɵangular_packages_core_testing_testing_c"},"elseExpression":{"__symbolic":"error","message":"Reference to a non-exported function","line":654,"character":9,"context":{"name":"_getTestBedViewEngine"},"module":"./src/test_bed"}},"inject":{"__symbolic":"function"},"InjectSetupWrapper":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Expression form not supported","line":705,"character":34,"module":"./src/test_bed"}]}],"_addModule":[{"__symbolic":"method"}],"inject":[{"__symbolic":"method"}]}},"withModule":{"__symbolic":"function"},"TestComponentRenderer":{"__symbolic":"class","members":{"insertRootElement":[{"__symbolic":"method"}]}},"ComponentFixtureAutoDetect":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":27,"character":8},"arguments":["ComponentFixtureAutoDetect"]},"ComponentFixtureNoNgZone":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":32,"character":44},"arguments":["ComponentFixtureNoNgZone"]},"TestModuleMetadata":{"__symbolic":"interface"},"TestBedStatic":{"__symbolic":"interface"},"MetadataOverride":{"__symbolic":"interface"},"ɵMetadataOverrider":{"__symbolic":"class","members":{"overrideMetadata":[{"__symbolic":"method"}]}},"ɵTestingCompiler":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/core","name":"Compiler","line":22,"character":37},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":21,"character":1}}],"members":{"overrideModule":[{"__symbolic":"method"}],"overrideDirective":[{"__symbolic":"method"}],"overrideComponent":[{"__symbolic":"method"}],"overridePipe":[{"__symbolic":"method"}],"loadAotSummaries":[{"__symbolic":"method"}],"getComponentFactory":[{"__symbolic":"method"}],"getComponentFromError":[{"__symbolic":"method"}]}},"ɵTestingCompilerFactory":{"__symbolic":"class","members":{"createTestingCompiler":[{"__symbolic":"method"}]}},"ɵangular_packages_core_testing_testing_b":{"__symbolic":"class","members":{"overrideTemplateUsingTestingModule":[{"__symbolic":"method"}],"initTestEnvironment":[{"__symbolic":"method"}],"resetTestEnvironment":[{"__symbolic":"method"}],"resetTestingModule":[{"__symbolic":"method"}],"configureCompiler":[{"__symbolic":"method"}],"configureTestingModule":[{"__symbolic":"method"}],"compileComponents":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"execute":[{"__symbolic":"method"}],"overrideModule":[{"__symbolic":"method"}],"overrideComponent":[{"__symbolic":"method"}],"overrideDirective":[{"__symbolic":"method"}],"overridePipe":[{"__symbolic":"method"}],"overrideProvider":[{"__symbolic":"method"}],"deprecatedOverrideProvider":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"createComponent":[{"__symbolic":"method"}],"_initIfNeeded":[{"__symbolic":"method"}],"_getResolvers":[{"__symbolic":"method"}],"_assertNotInstantiated":[{"__symbolic":"method"}],"_createTestModule":[{"__symbolic":"method"}]},"statics":{"compileComponents":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"ɵangular_packages_core_testing_testing_c"}},"member":"compileComponents"}}},"get":{"__symbolic":"function","parameters":["token","notFoundValue"],"defaults":[null,{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":151,"character":46},"member":"THROW_IF_NOT_FOUND"}],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"ɵangular_packages_core_testing_testing_c"}},"member":"get"},"arguments":[{"__symbolic":"reference","name":"token"},{"__symbolic":"reference","name":"notFoundValue"}]}},"createComponent":{"__symbolic":"function","parameters":["component"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"ɵangular_packages_core_testing_testing_c"}},"member":"createComponent"},"arguments":[{"__symbolic":"reference","name":"component"}]}}}},"ɵangular_packages_core_testing_testing_c":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"binop","operator":"=","left":{"__symbolic":"error","message":"Reference to a local symbol","line":440,"character":4,"context":{"name":"testBed"},"module":"./src/r3_test_bed"},"right":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"error","message":"Reference to a local symbol","line":440,"character":4,"context":{"name":"testBed"},"module":"./src/r3_test_bed"},"right":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"ɵangular_packages_core_testing_testing_b"}}}}}},"origins":{"ɵangular_packages_core_testing_testing_a":"./src/test_bed","async":"./src/async","ComponentFixture":"./src/component_fixture","resetFakeAsyncZone":"./src/fake_async","fakeAsync":"./src/fake_async","tick":"./src/fake_async","flush":"./src/fake_async","discardPeriodicTasks":"./src/fake_async","flushMicrotasks":"./src/fake_async","TestBed":"./src/test_bed","getTestBed":"./src/test_bed","inject":"./src/test_bed","InjectSetupWrapper":"./src/test_bed","withModule":"./src/test_bed","TestComponentRenderer":"./src/test_bed_common","ComponentFixtureAutoDetect":"./src/test_bed_common","ComponentFixtureNoNgZone":"./src/test_bed_common","TestModuleMetadata":"./src/test_bed_common","TestBedStatic":"./src/test_bed_common","__core_private_testing_placeholder__":"./src/before_each","MetadataOverride":"./src/metadata_override","ɵMetadataOverrider":"./src/metadata_overrider","ɵTestingCompiler":"./src/test_compiler","ɵTestingCompilerFactory":"./src/test_compiler","ɵangular_packages_core_testing_testing_b":"./src/r3_test_bed","ɵangular_packages_core_testing_testing_c":"./src/r3_test_bed"},"importAs":"@angular/core/testing"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import { getContext } from './context_discovery';
|
|
6
|
-
import { scheduleTick } from './instructions';
|
|
7
|
-
import { CorePlayerHandler } from './styling/core_player_handler';
|
|
8
|
-
import { getOrCreatePlayerContext } from './styling/util';
|
|
9
|
-
import { getRootContext } from './util';
|
|
10
|
-
/**
|
|
11
|
-
* @param {?} ref
|
|
12
|
-
* @param {?} player
|
|
13
|
-
* @return {?}
|
|
14
|
-
*/
|
|
15
|
-
export function addPlayer(ref, player) {
|
|
16
|
-
/** @type {?} */
|
|
17
|
-
const elementContext = /** @type {?} */ ((getContext(ref)));
|
|
18
|
-
/** @type {?} */
|
|
19
|
-
const animationContext = /** @type {?} */ ((getOrCreatePlayerContext(elementContext.native, elementContext)));
|
|
20
|
-
animationContext.push(player);
|
|
21
|
-
player.addEventListener(200 /* Destroyed */, () => {
|
|
22
|
-
/** @type {?} */
|
|
23
|
-
const index = animationContext.indexOf(player);
|
|
24
|
-
if (index >= 0) {
|
|
25
|
-
animationContext.splice(index, 1);
|
|
26
|
-
}
|
|
27
|
-
player.destroy();
|
|
28
|
-
});
|
|
29
|
-
/** @type {?} */
|
|
30
|
-
const rootContext = getRootContext(elementContext.lViewData);
|
|
31
|
-
/** @type {?} */
|
|
32
|
-
const playerHandler = rootContext.playerHandler || (rootContext.playerHandler = new CorePlayerHandler());
|
|
33
|
-
playerHandler.queuePlayer(player, ref);
|
|
34
|
-
/** @type {?} */
|
|
35
|
-
const nothingScheduled = rootContext.flags === 0 /* Empty */;
|
|
36
|
-
// change detection may or may not happen therefore
|
|
37
|
-
// the core code needs to be kicked off to flush the animations
|
|
38
|
-
rootContext.flags |= 2 /* FlushPlayers */;
|
|
39
|
-
if (nothingScheduled) {
|
|
40
|
-
scheduleTick(rootContext);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* @param {?} ref
|
|
45
|
-
* @return {?}
|
|
46
|
-
*/
|
|
47
|
-
export function getPlayers(ref) {
|
|
48
|
-
return getOrCreatePlayerContext(ref);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxheWVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29yZS9zcmMvcmVuZGVyMy9wbGF5ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQU9BLE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxxQkFBcUIsQ0FBQztBQUMvQyxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFHNUMsT0FBTyxFQUFDLGlCQUFpQixFQUFDLE1BQU0sK0JBQStCLENBQUM7QUFDaEUsT0FBTyxFQUFDLHdCQUF3QixFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFDeEQsT0FBTyxFQUFDLGNBQWMsRUFBQyxNQUFNLFFBQVEsQ0FBQzs7Ozs7O0FBRXRDLE1BQU0sVUFBVSxTQUFTLENBQ3JCLEdBQXdELEVBQUUsTUFBYzs7SUFDMUUsTUFBTSxjQUFjLHNCQUFHLFVBQVUsQ0FBQyxHQUFHLENBQUMsR0FBRzs7SUFDekMsTUFBTSxnQkFBZ0Isc0JBQUcsd0JBQXdCLENBQUMsY0FBYyxDQUFDLE1BQU0sRUF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Xhwb3J0IGZ1bmN0aW9uIGdldFBsYXllcnMocmVmOiBDb21wb25lbnRJbnN0YW5jZSB8IERpcmVjdGl2ZUluc3RhbmNlIHwgSFRNTEVsZW1lbnQpOiBQbGF5ZXJbXSB7XG4gIHJldHVybiBnZXRPckNyZWF0ZVBsYXllckNvbnRleHQocmVmKTtcbn1cbiJdfQ==
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google Inc. All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { getContext } from './context_discovery';
|
|
9
|
-
import { scheduleTick } from './instructions';
|
|
10
|
-
import { CorePlayerHandler } from './styling/core_player_handler';
|
|
11
|
-
import { getOrCreatePlayerContext } from './styling/util';
|
|
12
|
-
import { getRootContext } from './util';
|
|
13
|
-
export function addPlayer(ref, player) {
|
|
14
|
-
var elementContext = getContext(ref);
|
|
15
|
-
var animationContext = getOrCreatePlayerContext(elementContext.native, elementContext);
|
|
16
|
-
animationContext.push(player);
|
|
17
|
-
player.addEventListener(200 /* Destroyed */, function () {
|
|
18
|
-
var index = animationContext.indexOf(player);
|
|
19
|
-
if (index >= 0) {
|
|
20
|
-
animationContext.splice(index, 1);
|
|
21
|
-
}
|
|
22
|
-
player.destroy();
|
|
23
|
-
});
|
|
24
|
-
var rootContext = getRootContext(elementContext.lViewData);
|
|
25
|
-
var playerHandler = rootContext.playerHandler || (rootContext.playerHandler = new CorePlayerHandler());
|
|
26
|
-
playerHandler.queuePlayer(player, ref);
|
|
27
|
-
var nothingScheduled = rootContext.flags === 0 /* Empty */;
|
|
28
|
-
// change detection may or may not happen therefore
|
|
29
|
-
// the core code needs to be kicked off to flush the animations
|
|
30
|
-
rootContext.flags |= 2 /* FlushPlayers */;
|
|
31
|
-
if (nothingScheduled) {
|
|
32
|
-
scheduleTick(rootContext);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
export function getPlayers(ref) {
|
|
36
|
-
return getOrCreatePlayerContext(ref);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxheWVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29yZS9zcmMvcmVuZGVyMy9wbGF5ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBQ0gsT0FBTyxFQUFDLFVBQVUsRUFBQyxNQUFNLHFCQUFxQixDQUFDO0FBQy9DLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQztBQUc1QyxPQUFPLEVBQUMsaUJBQWlCLEVBQUMsTUFBTSwrQkFBK0IsQ0FBQztBQUNoRSxPQUFPLEVBQUMsd0JBQXdCLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQztBQUN4RCxPQUFPLEVBQUMsY0FBYyxFQUFDLE1BQU0sUUFBUSxDQUFDO0FBRXRDLE1BQU0sVUFBVSxTQUFTLENBQ3JCLEdBQXdELEVBQUUsTUFBYztJQUMxRSxJQUFNLGNBQWMsR0FBRyxVQUFVLENBQUMsR0FBRyxDQUFHLENBQUM7SUFDekMsSUFBTSxnQkFBZ0IsR0FBRyx3QkFBd0IsQ0FBQyxjQUFjLENBQUMsTUFBTSxFQUFFLGNBQWMsQ0FBRyxDQUFDO0lBQzNGLGdCQUFnQixDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQztJQUU5QixNQUFNLENBQUMsZ0JBQWdCLHNCQUFzQjtRQUMzQyxJQUFNLEtBQUssR0FBRyxnQkFBZ0IsQ0FBQyxPQUFPLENBQUMsTUFBTSxDQUFDLENBQUM7UUFDL0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VxuIl19
|
package/src/render3/player.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ComponentInstance, DirectiveInstance, Player } from './interfaces/player';
|
|
2
|
-
export declare function addPlayer(ref: ComponentInstance | DirectiveInstance | HTMLElement, player: Player): void;
|
|
3
|
-
export declare function getPlayers(ref: ComponentInstance | DirectiveInstance | HTMLElement): Player[];
|