@angular/core 13.0.0-next.9 → 13.0.0-rc.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/core.d.ts +791 -1180
- package/esm2020/core.mjs +5 -0
- package/esm2020/index.mjs +14 -0
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
- package/esm2020/src/application_init.mjs +140 -0
- package/esm2020/src/application_module.mjs +130 -0
- package/esm2020/src/application_ref.mjs +738 -0
- package/{esm2015/src/application_tokens.js → esm2020/src/application_tokens.mjs} +0 -0
- package/esm2020/src/change_detection/change_detection.mjs +31 -0
- package/esm2020/src/change_detection/change_detection_util.mjs +64 -0
- package/esm2020/src/change_detection/change_detector_ref.mjs +89 -0
- package/{esm2015/src/change_detection/constants.js → esm2020/src/change_detection/constants.mjs} +0 -0
- package/esm2020/src/change_detection/differs/default_iterable_differ.mjs +666 -0
- package/{esm2015/src/change_detection/differs/default_keyvalue_differ.js → esm2020/src/change_detection/differs/default_keyvalue_differ.mjs} +0 -0
- package/{esm2015/src/change_detection/differs/iterable_differs.js → esm2020/src/change_detection/differs/iterable_differs.mjs} +0 -0
- package/{esm2015/src/change_detection/differs/keyvalue_differs.js → esm2020/src/change_detection/differs/keyvalue_differs.mjs} +0 -0
- package/{esm2015/src/change_detection/pipe_transform.js → esm2020/src/change_detection/pipe_transform.mjs} +0 -0
- package/esm2020/src/change_detection.mjs +14 -0
- package/esm2020/src/codegen_private_exports.mjs +11 -0
- package/{esm2015/src/compiler/compiler_facade.js → esm2020/src/compiler/compiler_facade.mjs} +0 -0
- package/{esm2015/src/compiler/compiler_facade_interface.js → esm2020/src/compiler/compiler_facade_interface.mjs} +1 -1
- package/esm2020/src/console.mjs +26 -0
- package/esm2020/src/core.mjs +52 -0
- package/esm2020/src/core_private_export.mjs +34 -0
- package/esm2020/src/core_render3_private_export.mjs +47 -0
- package/esm2020/src/debug/debug_node.mjs +625 -0
- package/{esm2015/src/debug/proxy.js → esm2020/src/debug/proxy.mjs} +0 -0
- package/{esm2015/src/di/forward_ref.js → esm2020/src/di/forward_ref.mjs} +0 -0
- package/{esm2015/src/di/index.js → esm2020/src/di/index.mjs} +0 -0
- package/{esm2015/src/di/inject_switch.js → esm2020/src/di/inject_switch.mjs} +0 -0
- package/esm2020/src/di/injectable.mjs +27 -0
- package/esm2020/src/di/injection_token.mjs +82 -0
- package/esm2020/src/di/injector.mjs +323 -0
- package/esm2020/src/di/injector_compatibility.mjs +185 -0
- package/{esm2015/src/di/injector_marker.js → esm2020/src/di/injector_marker.mjs} +0 -0
- package/{esm2015/src/di/injector_token.js → esm2020/src/di/injector_token.mjs} +0 -0
- package/{esm2015/src/di/interface/defs.js → esm2020/src/di/interface/defs.mjs} +0 -0
- package/{esm2015/src/di/interface/injector.js → esm2020/src/di/interface/injector.mjs} +0 -0
- package/{esm2015/src/di/interface/provider.js → esm2020/src/di/interface/provider.mjs} +0 -0
- package/{esm2015/src/di/jit/environment.js → esm2020/src/di/jit/environment.mjs} +0 -0
- package/esm2020/src/di/jit/injectable.mjs +94 -0
- package/{esm2015/src/di/jit/util.js → esm2020/src/di/jit/util.mjs} +0 -0
- package/esm2020/src/di/metadata.mjs +60 -0
- package/esm2020/src/di/metadata_attr.mjs +24 -0
- package/{esm2015/src/di/null_injector.js → esm2020/src/di/null_injector.mjs} +0 -0
- package/{esm2015/src/di/provider_token.js → esm2020/src/di/provider_token.mjs} +0 -0
- package/{esm2015/src/di/r3_injector.js → esm2020/src/di/r3_injector.mjs} +0 -0
- package/{esm2015/src/di/reflective_errors.js → esm2020/src/di/reflective_errors.mjs} +0 -0
- package/{esm2015/src/di/reflective_injector.js → esm2020/src/di/reflective_injector.mjs} +0 -0
- package/{esm2015/src/di/reflective_key.js → esm2020/src/di/reflective_key.mjs} +0 -0
- package/{esm2015/src/di/reflective_provider.js → esm2020/src/di/reflective_provider.mjs} +0 -0
- package/{esm2015/src/di/scope.js → esm2020/src/di/scope.mjs} +0 -0
- package/esm2020/src/di/util.mjs +51 -0
- package/{esm2015/src/di.js → esm2020/src/di.mjs} +0 -0
- package/{esm2015/src/error_handler.js → esm2020/src/error_handler.mjs} +0 -0
- package/{esm2015/src/errors.js → esm2020/src/errors.mjs} +0 -0
- package/esm2020/src/event_emitter.mjs +53 -0
- package/{esm2015/src/i18n/locale_data_api.js → esm2020/src/i18n/locale_data_api.mjs} +0 -0
- package/esm2020/src/i18n/locale_en.mjs +17 -0
- package/{esm2015/src/i18n/localization.js → esm2020/src/i18n/localization.mjs} +0 -0
- package/{esm2015/src/i18n/tokens.js → esm2020/src/i18n/tokens.mjs} +0 -0
- package/{esm2015/src/interface/lifecycle_hooks.js → esm2020/src/interface/lifecycle_hooks.mjs} +0 -0
- package/{esm2015/src/interface/simple_change.js → esm2020/src/interface/simple_change.mjs} +0 -0
- package/{esm2015/src/interface/type.js → esm2020/src/interface/type.mjs} +0 -0
- package/{esm2015/src/ivy_switch.js → esm2020/src/ivy_switch.mjs} +2 -2
- package/esm2020/src/linker/compiler.mjs +136 -0
- package/{esm2015/src/linker/component_factory.js → esm2020/src/linker/component_factory.mjs} +0 -0
- package/{esm2015/src/linker/component_factory_resolver.js → esm2020/src/linker/component_factory_resolver.mjs} +5 -5
- package/esm2020/src/linker/element_ref.mjs +59 -0
- package/esm2020/src/linker/ng_module_factory.mjs +29 -0
- package/esm2020/src/linker/ng_module_factory_loader.mjs +42 -0
- package/esm2020/src/linker/ng_module_factory_loader_impl.mjs +10 -0
- package/{esm2015/src/linker/ng_module_factory_registration.js → esm2020/src/linker/ng_module_factory_registration.mjs} +2 -2
- package/{esm2015/src/linker/query_list.js → esm2020/src/linker/query_list.mjs} +0 -0
- package/{esm2015/src/linker/template_ref.js → esm2020/src/linker/template_ref.mjs} +2 -2
- package/esm2020/src/linker/view_container_ref.mjs +283 -0
- package/{esm2015/src/linker/view_ref.js → esm2020/src/linker/view_ref.mjs} +0 -0
- package/esm2020/src/linker.mjs +19 -0
- package/esm2020/src/metadata/di.mjs +108 -0
- package/esm2020/src/metadata/directives.mjs +112 -0
- package/{esm2015/src/metadata/do_boostrap.js → esm2020/src/metadata/do_boostrap.mjs} +0 -0
- package/esm2020/src/metadata/ng_module.mjs +42 -0
- package/{esm2015/src/metadata/ng_module_def.js → esm2020/src/metadata/ng_module_def.mjs} +0 -0
- package/{esm2015/src/metadata/resource_loading.js → esm2020/src/metadata/resource_loading.mjs} +0 -0
- package/{esm2015/src/metadata/schema.js → esm2020/src/metadata/schema.mjs} +0 -0
- package/{esm2015/src/metadata/view.js → esm2020/src/metadata/view.mjs} +0 -0
- package/{esm2015/src/metadata.js → esm2020/src/metadata.mjs} +0 -0
- package/{esm2015/src/platform_core_providers.js → esm2020/src/platform_core_providers.mjs} +0 -0
- package/{esm2015/src/r3_symbols.js → esm2020/src/r3_symbols.mjs} +0 -0
- package/{esm2015/src/reflection/platform_reflection_capabilities.js → esm2020/src/reflection/platform_reflection_capabilities.mjs} +0 -0
- package/{esm2015/src/reflection/reflection.js → esm2020/src/reflection/reflection.mjs} +0 -0
- package/{esm2015/src/reflection/reflection_capabilities.js → esm2020/src/reflection/reflection_capabilities.mjs} +0 -0
- package/{esm2015/src/reflection/reflector.js → esm2020/src/reflection/reflector.mjs} +0 -0
- package/{esm2015/src/reflection/types.js → esm2020/src/reflection/types.mjs} +0 -0
- package/{esm2015/src/render/api.js → esm2020/src/render/api.mjs} +2 -2
- package/{esm2015/src/render/api_flags.js → esm2020/src/render/api_flags.mjs} +0 -0
- package/{esm2015/src/render.js → esm2020/src/render.mjs} +0 -0
- package/{esm2015/src/render3/assert.js → esm2020/src/render3/assert.mjs} +0 -0
- package/{esm2015/src/render3/bindings.js → esm2020/src/render3/bindings.mjs} +0 -0
- package/{esm2015/src/render3/collect_native_nodes.js → esm2020/src/render3/collect_native_nodes.mjs} +0 -0
- package/esm2020/src/render3/component.mjs +204 -0
- package/{esm2015/src/render3/component_ref.js → esm2020/src/render3/component_ref.mjs} +0 -0
- package/{esm2015/src/render3/context_discovery.js → esm2020/src/render3/context_discovery.mjs} +0 -0
- package/esm2020/src/render3/definition.mjs +296 -0
- package/{esm2015/src/render3/definition_factory.js → esm2020/src/render3/definition_factory.mjs} +0 -0
- package/{esm2015/src/render3/di.js → esm2020/src/render3/di.mjs} +3 -3
- package/{esm2015/src/render3/di_setup.js → esm2020/src/render3/di_setup.mjs} +0 -0
- package/esm2020/src/render3/error_code.mjs +42 -0
- package/esm2020/src/render3/error_details_base_url.mjs +16 -0
- package/{esm2015/src/render3/errors.js → esm2020/src/render3/errors.mjs} +0 -0
- package/{esm2015/src/render3/errors_di.js → esm2020/src/render3/errors_di.mjs} +0 -0
- package/{esm2015/src/render3/features/copy_definition_feature.js → esm2020/src/render3/features/copy_definition_feature.mjs} +0 -0
- package/{esm2015/src/render3/features/inherit_definition_feature.js → esm2020/src/render3/features/inherit_definition_feature.mjs} +0 -0
- package/esm2020/src/render3/features/ng_onchanges_feature.mjs +92 -0
- package/{esm2015/src/render3/features/providers_feature.js → esm2020/src/render3/features/providers_feature.mjs} +0 -0
- package/esm2020/src/render3/fields.mjs +21 -0
- package/{esm2015/src/render3/global_utils_api.js → esm2020/src/render3/global_utils_api.mjs} +0 -0
- package/{esm2015/src/render3/hooks.js → esm2020/src/render3/hooks.mjs} +0 -0
- package/{esm2015/src/render3/i18n/i18n_apply.js → esm2020/src/render3/i18n/i18n_apply.mjs} +0 -0
- package/{esm2015/src/render3/i18n/i18n_debug.js → esm2020/src/render3/i18n/i18n_debug.mjs} +0 -0
- package/{esm2015/src/render3/i18n/i18n_insert_before_index.js → esm2020/src/render3/i18n/i18n_insert_before_index.mjs} +0 -0
- package/{esm2015/src/render3/i18n/i18n_locale_id.js → esm2020/src/render3/i18n/i18n_locale_id.mjs} +0 -0
- package/{esm2015/src/render3/i18n/i18n_parse.js → esm2020/src/render3/i18n/i18n_parse.mjs} +0 -0
- package/{esm2015/src/render3/i18n/i18n_postprocess.js → esm2020/src/render3/i18n/i18n_postprocess.mjs} +0 -0
- package/{esm2015/src/render3/i18n/i18n_tree_shaking.js → esm2020/src/render3/i18n/i18n_tree_shaking.mjs} +0 -0
- package/{esm2015/src/render3/i18n/i18n_util.js → esm2020/src/render3/i18n/i18n_util.mjs} +0 -0
- package/{esm2015/src/render3/index.js → esm2020/src/render3/index.mjs} +0 -0
- package/{esm2015/src/render3/instructions/advance.js → esm2020/src/render3/instructions/advance.mjs} +0 -0
- package/{esm2015/src/render3/instructions/all.js → esm2020/src/render3/instructions/all.mjs} +0 -0
- package/{esm2015/src/render3/instructions/attribute.js → esm2020/src/render3/instructions/attribute.mjs} +0 -0
- package/{esm2015/src/render3/instructions/attribute_interpolation.js → esm2020/src/render3/instructions/attribute_interpolation.mjs} +0 -0
- package/{esm2015/src/render3/instructions/change_detection.js → esm2020/src/render3/instructions/change_detection.mjs} +0 -0
- package/{esm2015/src/render3/instructions/class_map_interpolation.js → esm2020/src/render3/instructions/class_map_interpolation.mjs} +0 -0
- package/{esm2015/src/render3/instructions/di.js → esm2020/src/render3/instructions/di.mjs} +0 -0
- package/{esm2015/src/render3/instructions/di_attr.js → esm2020/src/render3/instructions/di_attr.mjs} +0 -0
- package/{esm2015/src/render3/instructions/element.js → esm2020/src/render3/instructions/element.mjs} +0 -0
- package/{esm2015/src/render3/instructions/element_container.js → esm2020/src/render3/instructions/element_container.mjs} +0 -0
- package/{esm2015/src/render3/instructions/get_current_view.js → esm2020/src/render3/instructions/get_current_view.mjs} +0 -0
- package/{esm2015/src/render3/instructions/host_property.js → esm2020/src/render3/instructions/host_property.mjs} +0 -0
- package/{esm2015/src/render3/instructions/i18n.js → esm2020/src/render3/instructions/i18n.mjs} +0 -0
- package/{esm2015/src/render3/instructions/i18n_icu_container_visitor.js → esm2020/src/render3/instructions/i18n_icu_container_visitor.mjs} +0 -0
- package/{esm2015/src/render3/instructions/interpolation.js → esm2020/src/render3/instructions/interpolation.mjs} +0 -0
- package/{esm2015/src/render3/instructions/listener.js → esm2020/src/render3/instructions/listener.mjs} +0 -0
- package/{esm2015/src/render3/instructions/lview_debug.js → esm2020/src/render3/instructions/lview_debug.mjs} +0 -0
- package/{esm2015/src/render3/instructions/namespace.js → esm2020/src/render3/instructions/namespace.mjs} +0 -0
- package/{esm2015/src/render3/instructions/next_context.js → esm2020/src/render3/instructions/next_context.mjs} +0 -0
- package/{esm2015/src/render3/instructions/projection.js → esm2020/src/render3/instructions/projection.mjs} +0 -0
- package/{esm2015/src/render3/instructions/property.js → esm2020/src/render3/instructions/property.mjs} +0 -0
- package/{esm2015/src/render3/instructions/property_interpolation.js → esm2020/src/render3/instructions/property_interpolation.mjs} +0 -0
- package/esm2020/src/render3/instructions/shared.mjs +1811 -0
- package/{esm2015/src/render3/instructions/storage.js → esm2020/src/render3/instructions/storage.mjs} +0 -0
- package/{esm2015/src/render3/instructions/style_map_interpolation.js → esm2020/src/render3/instructions/style_map_interpolation.mjs} +0 -0
- package/{esm2015/src/render3/instructions/style_prop_interpolation.js → esm2020/src/render3/instructions/style_prop_interpolation.mjs} +0 -0
- package/{esm2015/src/render3/instructions/styling.js → esm2020/src/render3/instructions/styling.mjs} +0 -0
- package/{esm2015/src/render3/instructions/template.js → esm2020/src/render3/instructions/template.mjs} +0 -0
- package/{esm2015/src/render3/instructions/text.js → esm2020/src/render3/instructions/text.mjs} +0 -0
- package/{esm2015/src/render3/instructions/text_interpolation.js → esm2020/src/render3/instructions/text_interpolation.mjs} +0 -0
- package/{esm2015/src/render3/interfaces/container.js → esm2020/src/render3/interfaces/container.mjs} +0 -0
- package/{esm2015/src/render3/interfaces/context.js → esm2020/src/render3/interfaces/context.mjs} +0 -0
- package/{esm2015/src/render3/interfaces/definition.js → esm2020/src/render3/interfaces/definition.mjs} +0 -0
- package/{esm2015/src/render3/interfaces/document.js → esm2020/src/render3/interfaces/document.mjs} +0 -0
- package/{esm2015/src/render3/interfaces/i18n.js → esm2020/src/render3/interfaces/i18n.mjs} +0 -0
- package/{esm2015/src/render3/interfaces/injector.js → esm2020/src/render3/interfaces/injector.mjs} +0 -0
- package/{esm2015/src/render3/interfaces/node.js → esm2020/src/render3/interfaces/node.mjs} +0 -0
- package/{esm2015/src/render3/interfaces/player.js → esm2020/src/render3/interfaces/player.mjs} +0 -0
- package/{esm2015/src/render3/interfaces/projection.js → esm2020/src/render3/interfaces/projection.mjs} +0 -0
- package/{esm2015/src/render3/interfaces/public_definitions.js → esm2020/src/render3/interfaces/public_definitions.mjs} +0 -0
- package/{esm2015/src/render3/interfaces/query.js → esm2020/src/render3/interfaces/query.mjs} +0 -0
- package/esm2020/src/render3/interfaces/renderer.mjs +27 -0
- package/{esm2015/src/render3/interfaces/renderer_dom.js → esm2020/src/render3/interfaces/renderer_dom.mjs} +0 -0
- package/{esm2015/src/render3/interfaces/sanitization.js → esm2020/src/render3/interfaces/sanitization.mjs} +0 -0
- package/{esm2015/src/render3/interfaces/styling.js → esm2020/src/render3/interfaces/styling.mjs} +0 -0
- package/{esm2015/src/render3/interfaces/type_checks.js → esm2020/src/render3/interfaces/type_checks.mjs} +0 -0
- package/{esm2015/src/render3/interfaces/view.js → esm2020/src/render3/interfaces/view.mjs} +0 -0
- package/esm2020/src/render3/jit/directive.mjs +325 -0
- package/esm2020/src/render3/jit/environment.mjs +165 -0
- package/{esm2015/src/render3/jit/jit_options.js → esm2020/src/render3/jit/jit_options.mjs} +0 -0
- package/{esm2015/src/render3/jit/module.js → esm2020/src/render3/jit/module.mjs} +0 -0
- package/esm2020/src/render3/jit/partial.mjs +104 -0
- package/{esm2015/src/render3/jit/pipe.js → esm2020/src/render3/jit/pipe.mjs} +0 -0
- package/esm2020/src/render3/metadata.mjs +49 -0
- package/{esm2015/src/render3/namespaces.js → esm2020/src/render3/namespaces.mjs} +0 -0
- package/esm2020/src/render3/ng_module_ref.mjs +119 -0
- package/{esm2015/src/render3/node_assert.js → esm2020/src/render3/node_assert.mjs} +0 -0
- package/{esm2015/src/render3/node_manipulation.js → esm2020/src/render3/node_manipulation.mjs} +0 -0
- package/{esm2015/src/render3/node_manipulation_i18n.js → esm2020/src/render3/node_manipulation_i18n.mjs} +0 -0
- package/{esm2015/src/render3/node_selector_matcher.js → esm2020/src/render3/node_selector_matcher.mjs} +0 -0
- package/esm2020/src/render3/pipe.mjs +184 -0
- package/{esm2015/src/render3/profiler.js → esm2020/src/render3/profiler.mjs} +0 -0
- package/{esm2015/src/render3/pure_function.js → esm2020/src/render3/pure_function.mjs} +0 -0
- package/{esm2015/src/render3/query.js → esm2020/src/render3/query.mjs} +0 -0
- package/{esm2015/src/render3/state.js → esm2020/src/render3/state.mjs} +0 -0
- package/{esm2015/src/render3/styling/class_differ.js → esm2020/src/render3/styling/class_differ.mjs} +0 -0
- package/{esm2015/src/render3/styling/static_styling.js → esm2020/src/render3/styling/static_styling.mjs} +0 -0
- package/{esm2015/src/render3/styling/style_binding_list.js → esm2020/src/render3/styling/style_binding_list.mjs} +0 -0
- package/{esm2015/src/render3/styling/styling_parser.js → esm2020/src/render3/styling/styling_parser.mjs} +0 -0
- package/{esm2015/src/render3/tokens.js → esm2020/src/render3/tokens.mjs} +0 -0
- package/{esm2015/src/render3/util/attrs_utils.js → esm2020/src/render3/util/attrs_utils.mjs} +0 -0
- package/{esm2015/src/render3/util/change_detection_utils.js → esm2020/src/render3/util/change_detection_utils.mjs} +0 -0
- package/{esm2015/src/render3/util/debug_utils.js → esm2020/src/render3/util/debug_utils.mjs} +0 -0
- package/esm2020/src/render3/util/discovery_utils.mjs +411 -0
- package/esm2020/src/render3/util/global_utils.mjs +77 -0
- package/{esm2015/src/render3/util/injector_utils.js → esm2020/src/render3/util/injector_utils.mjs} +0 -0
- package/esm2020/src/render3/util/misc_utils.mjs +61 -0
- package/{esm2015/src/render3/util/stringify_utils.js → esm2020/src/render3/util/stringify_utils.mjs} +0 -0
- package/{esm2015/src/render3/util/view_traversal_utils.js → esm2020/src/render3/util/view_traversal_utils.mjs} +0 -0
- package/{esm2015/src/render3/util/view_utils.js → esm2020/src/render3/util/view_utils.mjs} +0 -0
- package/{esm2015/src/render3/view_engine_compatibility_prebound.js → esm2020/src/render3/view_engine_compatibility_prebound.mjs} +0 -0
- package/{esm2015/src/render3/view_ref.js → esm2020/src/render3/view_ref.mjs} +0 -0
- package/{esm2015/src/sanitization/bypass.js → esm2020/src/sanitization/bypass.mjs} +0 -0
- package/{esm2015/src/sanitization/html_sanitizer.js → esm2020/src/sanitization/html_sanitizer.mjs} +0 -0
- package/{esm2015/src/sanitization/inert_body.js → esm2020/src/sanitization/inert_body.mjs} +3 -3
- package/{esm2015/src/sanitization/sanitization.js → esm2020/src/sanitization/sanitization.mjs} +0 -0
- package/{esm2015/src/sanitization/sanitizer.js → esm2020/src/sanitization/sanitizer.mjs} +0 -0
- package/{esm2015/src/sanitization/security.js → esm2020/src/sanitization/security.mjs} +0 -0
- package/{esm2015/src/sanitization/url_sanitizer.js → esm2020/src/sanitization/url_sanitizer.mjs} +0 -0
- package/esm2020/src/testability/testability.mjs +258 -0
- package/{esm2015/src/util/array_utils.js → esm2020/src/util/array_utils.mjs} +0 -0
- package/{esm2015/src/util/assert.js → esm2020/src/util/assert.mjs} +0 -0
- package/{esm2015/src/util/char_code.js → esm2020/src/util/char_code.mjs} +0 -0
- package/{esm2015/src/util/closure.js → esm2020/src/util/closure.mjs} +0 -0
- package/{esm2015/src/util/comparison.js → esm2020/src/util/comparison.mjs} +0 -0
- package/{esm2015/src/util/decorators.js → esm2020/src/util/decorators.mjs} +0 -0
- package/{esm2015/src/util/dom.js → esm2020/src/util/dom.mjs} +0 -0
- package/{esm2015/src/util/empty.js → esm2020/src/util/empty.mjs} +0 -0
- package/{esm2015/src/util/errors.js → esm2020/src/util/errors.mjs} +0 -0
- package/{esm2015/src/util/global.js → esm2020/src/util/global.mjs} +0 -0
- package/{esm2015/src/util/is_dev_mode.js → esm2020/src/util/is_dev_mode.mjs} +0 -0
- package/{esm2015/src/util/iterable.js → esm2020/src/util/iterable.mjs} +0 -0
- package/{esm2015/src/util/lang.js → esm2020/src/util/lang.mjs} +0 -0
- package/{esm2015/src/util/microtask.js → esm2020/src/util/microtask.mjs} +0 -0
- package/{esm2015/src/util/named_array_type.js → esm2020/src/util/named_array_type.mjs} +0 -0
- package/{esm2015/src/util/ng_dev_mode.js → esm2020/src/util/ng_dev_mode.mjs} +0 -0
- package/{esm2015/src/util/ng_i18n_closure_mode.js → esm2020/src/util/ng_i18n_closure_mode.mjs} +0 -0
- package/{esm2015/src/util/ng_jit_mode.js → esm2020/src/util/ng_jit_mode.mjs} +0 -0
- package/{esm2015/src/util/ng_reflect.js → esm2020/src/util/ng_reflect.mjs} +0 -0
- package/{esm2015/src/util/noop.js → esm2020/src/util/noop.mjs} +0 -0
- package/{esm2015/src/util/property.js → esm2020/src/util/property.mjs} +0 -0
- package/{esm2015/src/util/raf.js → esm2020/src/util/raf.mjs} +0 -0
- package/{esm2015/src/util/security/trusted_type_defs.js → esm2020/src/util/security/trusted_type_defs.mjs} +0 -0
- package/esm2020/src/util/security/trusted_types.mjs +130 -0
- package/esm2020/src/util/security/trusted_types_bypass.mjs +83 -0
- package/{esm2015/src/util/stringify.js → esm2020/src/util/stringify.mjs} +0 -0
- package/{esm2015/src/util/symbol.js → esm2020/src/util/symbol.mjs} +0 -0
- package/{esm2015/src/version.js → esm2020/src/version.mjs} +1 -1
- package/{esm2015/src/view/element.js → esm2020/src/view/element.mjs} +0 -0
- package/{esm2015/src/view/entrypoint.js → esm2020/src/view/entrypoint.mjs} +0 -0
- package/{esm2015/src/view/errors.js → esm2020/src/view/errors.mjs} +0 -0
- package/{esm2015/src/view/index.js → esm2020/src/view/index.mjs} +2 -2
- package/{esm2015/src/view/ng_content.js → esm2020/src/view/ng_content.mjs} +0 -0
- package/{esm2015/src/view/ng_module.js → esm2020/src/view/ng_module.mjs} +0 -0
- package/esm2020/src/view/provider.mjs +490 -0
- package/{esm2015/src/view/provider_flags.js → esm2020/src/view/provider_flags.mjs} +0 -0
- package/{esm2015/src/view/pure_expression.js → esm2020/src/view/pure_expression.mjs} +0 -0
- package/{esm2015/src/view/query.js → esm2020/src/view/query.mjs} +0 -0
- package/{esm2015/src/view/refs.js → esm2020/src/view/refs.mjs} +0 -0
- package/{esm2015/src/view/services.js → esm2020/src/view/services.mjs} +0 -0
- package/{esm2015/src/view/text.js → esm2020/src/view/text.mjs} +0 -0
- package/{esm2015/src/view/types.js → esm2020/src/view/types.mjs} +0 -0
- package/esm2020/src/view/util.mjs +369 -0
- package/{esm2015/src/view/view.js → esm2020/src/view/view.mjs} +0 -0
- package/{esm2015/src/view/view_attach.js → esm2020/src/view/view_attach.mjs} +0 -0
- package/{esm2015/src/zone/ng_zone.js → esm2020/src/zone/ng_zone.mjs} +0 -0
- package/{esm2015/src/zone.js → esm2020/src/zone.mjs} +0 -0
- package/{esm2015/testing/index.js → esm2020/testing/index.mjs} +0 -0
- package/{esm2015/testing/public_api.js → esm2020/testing/public_api.mjs} +0 -0
- package/{esm2015/testing/src/async.js → esm2020/testing/src/async.mjs} +0 -0
- package/{esm2015/testing/src/component_fixture.js → esm2020/testing/src/component_fixture.mjs} +0 -0
- package/{esm2015/testing/src/fake_async.js → esm2020/testing/src/fake_async.mjs} +0 -0
- package/{esm2015/testing/src/lang_utils.js → esm2020/testing/src/lang_utils.mjs} +0 -0
- package/esm2020/testing/src/logger.mjs +34 -0
- package/{esm2015/testing/src/metadata_override.js → esm2020/testing/src/metadata_override.mjs} +0 -0
- package/{esm2015/testing/src/metadata_overrider.js → esm2020/testing/src/metadata_overrider.mjs} +0 -0
- package/esm2020/testing/src/ng_zone_mock.mjs +33 -0
- package/{esm2015/testing/src/private_export_testing.js → esm2020/testing/src/private_export_testing.mjs} +0 -0
- package/esm2020/testing/src/r3_test_bed.mjs +397 -0
- package/esm2020/testing/src/r3_test_bed_compiler.mjs +735 -0
- package/{esm2015/testing/src/resolvers.js → esm2020/testing/src/resolvers.mjs} +0 -0
- package/{esm2015/testing/src/styling.js → esm2020/testing/src/styling.mjs} +0 -0
- package/esm2020/testing/src/test_bed.mjs +614 -0
- package/esm2020/testing/src/test_bed_common.mjs +28 -0
- package/esm2020/testing/src/test_compiler.mjs +69 -0
- package/{esm2015/testing/src/test_hooks.js → esm2020/testing/src/test_hooks.mjs} +0 -0
- package/{esm2015/testing/src/testing.js → esm2020/testing/src/testing.mjs} +0 -0
- package/{esm2015/testing/src/testing_internal.js → esm2020/testing/src/testing_internal.mjs} +0 -0
- package/esm2020/testing/testing.mjs +5 -0
- package/fesm2015/{core.js → core.mjs} +496 -546
- package/fesm2015/core.mjs.map +1 -0
- package/fesm2015/{testing.js → testing.mjs} +50 -61
- package/fesm2015/testing.mjs.map +1 -0
- package/fesm2020/core.mjs +33109 -0
- package/fesm2020/core.mjs.map +1 -0
- package/fesm2020/testing.mjs +2635 -0
- package/fesm2020/testing.mjs.map +1 -0
- package/package.json +33 -8
- package/schematics/migrations/{move-document → testbed-teardown}/index.d.ts +2 -2
- package/schematics/migrations/testbed-teardown/index.js +92 -0
- package/schematics/migrations/testbed-teardown/util.d.ts +35 -0
- package/schematics/migrations/testbed-teardown/util.js +188 -0
- package/schematics/migrations.json +6 -101
- package/schematics/package.json +3 -0
- package/schematics/utils/import_manager.d.ts +1 -1
- package/schematics/utils/import_manager.js +22 -19
- package/schematics/utils/load_esm.d.ts +8 -0
- package/schematics/utils/load_esm.js +24 -2
- package/schematics/utils/ng_component_template.d.ts +1 -1
- package/schematics/utils/ng_component_template.js +12 -9
- package/schematics/utils/ng_decorators.d.ts +1 -1
- package/schematics/utils/ng_decorators.js +1 -1
- package/schematics/utils/typescript/class_declaration.d.ts +1 -1
- package/schematics/utils/typescript/class_declaration.js +10 -7
- package/schematics/utils/typescript/compiler_host.d.ts +1 -1
- package/schematics/utils/typescript/compiler_host.js +7 -4
- package/schematics/utils/typescript/decorators.d.ts +1 -1
- package/schematics/utils/typescript/decorators.js +7 -4
- package/schematics/utils/typescript/find_base_classes.d.ts +1 -1
- package/schematics/utils/typescript/find_base_classes.js +6 -3
- package/schematics/utils/typescript/functions.d.ts +1 -1
- package/schematics/utils/typescript/functions.js +9 -6
- package/schematics/utils/typescript/imports.d.ts +1 -1
- package/schematics/utils/typescript/imports.js +12 -9
- package/schematics/utils/typescript/nodes.d.ts +1 -1
- package/schematics/utils/typescript/nodes.js +11 -8
- package/schematics/utils/typescript/parse_tsconfig.d.ts +1 -1
- package/schematics/utils/typescript/parse_tsconfig.js +31 -9
- package/schematics/utils/typescript/property_name.d.ts +1 -1
- package/schematics/utils/typescript/property_name.js +7 -4
- package/schematics/utils/typescript/symbol.d.ts +1 -1
- package/schematics/utils/typescript/symbol.js +15 -12
- package/testing/package.json +5 -5
- package/testing/testing.d.ts +4 -333
- package/bundles/core-testing.umd.js +0 -3179
- package/bundles/core-testing.umd.js.map +0 -1
- package/bundles/core.umd.js +0 -34454
- package/bundles/core.umd.js.map +0 -1
- package/core.metadata.json +0 -1
- package/esm2015/core.externs.js +0 -6
- package/esm2015/core.js +0 -38
- package/esm2015/index.js +0 -13
- package/esm2015/src/application_init.js +0 -142
- package/esm2015/src/application_module.js +0 -134
- package/esm2015/src/application_ref.js +0 -738
- package/esm2015/src/change_detection/change_detection.js +0 -31
- package/esm2015/src/change_detection/change_detection_util.js +0 -105
- package/esm2015/src/change_detection/change_detector_ref.js +0 -96
- package/esm2015/src/change_detection/differs/default_iterable_differ.js +0 -668
- package/esm2015/src/change_detection.js +0 -14
- package/esm2015/src/codegen_private_exports.js +0 -11
- package/esm2015/src/compiler/compiler.externs.js +0 -0
- package/esm2015/src/console.js +0 -23
- package/esm2015/src/core.js +0 -50
- package/esm2015/src/core_private_export.js +0 -35
- package/esm2015/src/core_render3_private_export.js +0 -45
- package/esm2015/src/debug/debug_node.js +0 -632
- package/esm2015/src/di/injectable.js +0 -36
- package/esm2015/src/di/injection_token.js +0 -75
- package/esm2015/src/di/injector.js +0 -326
- package/esm2015/src/di/injector_compatibility.js +0 -187
- package/esm2015/src/di/interface/interface.externs.js +0 -0
- package/esm2015/src/di/jit/injectable.js +0 -96
- package/esm2015/src/di/metadata.js +0 -62
- package/esm2015/src/di/metadata_attr.js +0 -24
- package/esm2015/src/di/util.js +0 -53
- package/esm2015/src/event_emitter.js +0 -54
- package/esm2015/src/i18n/locale_en.js +0 -17
- package/esm2015/src/interface/interface.externs.js +0 -0
- package/esm2015/src/linker/compiler.js +0 -118
- package/esm2015/src/linker/element_ref.js +0 -66
- package/esm2015/src/linker/ng_module_factory.js +0 -21
- package/esm2015/src/linker/ng_module_factory_loader.js +0 -32
- package/esm2015/src/linker/view_container_ref.js +0 -290
- package/esm2015/src/linker.js +0 -19
- package/esm2015/src/metadata/di.js +0 -99
- package/esm2015/src/metadata/directives.js +0 -120
- package/esm2015/src/metadata/ng_module.js +0 -44
- package/esm2015/src/reflection/reflection.externs.js +0 -0
- package/esm2015/src/render3/component.js +0 -206
- package/esm2015/src/render3/definition.js +0 -299
- package/esm2015/src/render3/error_code.js +0 -45
- package/esm2015/src/render3/features/ng_onchanges_feature.js +0 -92
- package/esm2015/src/render3/fields.js +0 -22
- package/esm2015/src/render3/instructions/shared.js +0 -1813
- package/esm2015/src/render3/interfaces/renderer.js +0 -29
- package/esm2015/src/render3/jit/directive.js +0 -312
- package/esm2015/src/render3/jit/environment.js +0 -167
- package/esm2015/src/render3/jit/partial.js +0 -105
- package/esm2015/src/render3/metadata.js +0 -49
- package/esm2015/src/render3/ng_module_ref.js +0 -108
- package/esm2015/src/render3/pipe.js +0 -202
- package/esm2015/src/render3/util/discovery_utils.js +0 -411
- package/esm2015/src/render3/util/global_utils.js +0 -78
- package/esm2015/src/render3/util/misc_utils.js +0 -63
- package/esm2015/src/testability/testability.js +0 -256
- package/esm2015/src/util/security/trusted_types.js +0 -133
- package/esm2015/src/util/security/trusted_types_bypass.js +0 -86
- package/esm2015/src/util/util.externs.js +0 -0
- package/esm2015/src/view/provider.js +0 -490
- package/esm2015/src/view/util.js +0 -378
- package/esm2015/testing/src/logger.js +0 -32
- package/esm2015/testing/src/ng_zone_mock.js +0 -31
- package/esm2015/testing/src/r3_test_bed.js +0 -397
- package/esm2015/testing/src/r3_test_bed_compiler.js +0 -744
- package/esm2015/testing/src/test_bed.js +0 -608
- package/esm2015/testing/src/test_bed_common.js +0 -31
- package/esm2015/testing/src/test_compiler.js +0 -66
- package/esm2015/testing/testing.externs.js +0 -6
- package/esm2015/testing/testing.js +0 -7
- package/fesm2015/core.js.map +0 -1
- package/fesm2015/testing.js.map +0 -1
- package/schematics/migrations/abstract-control-parent/index.d.ts +0 -11
- package/schematics/migrations/abstract-control-parent/index.js +0 -69
- package/schematics/migrations/abstract-control-parent/util.d.ts +0 -14
- package/schematics/migrations/abstract-control-parent/util.js +0 -64
- package/schematics/migrations/activated-route-snapshot-fragment/index.d.ts +0 -13
- package/schematics/migrations/activated-route-snapshot-fragment/index.js +0 -70
- package/schematics/migrations/activated-route-snapshot-fragment/util.d.ts +0 -16
- package/schematics/migrations/activated-route-snapshot-fragment/util.js +0 -48
- package/schematics/migrations/can-activate-with-redirect-to/index.d.ts +0 -11
- package/schematics/migrations/can-activate-with-redirect-to/index.js +0 -66
- package/schematics/migrations/can-activate-with-redirect-to/util.d.ts +0 -11
- package/schematics/migrations/can-activate-with-redirect-to/util.js +0 -70
- package/schematics/migrations/deep-shadow-piercing-selector/index.d.ts +0 -10
- package/schematics/migrations/deep-shadow-piercing-selector/index.js +0 -49
- package/schematics/migrations/dynamic-queries/index.d.ts +0 -13
- package/schematics/migrations/dynamic-queries/index.js +0 -73
- package/schematics/migrations/dynamic-queries/util.d.ts +0 -25
- package/schematics/migrations/dynamic-queries/util.js +0 -81
- package/schematics/migrations/initial-navigation/collector.d.ts +0 -22
- package/schematics/migrations/initial-navigation/collector.js +0 -119
- package/schematics/migrations/initial-navigation/index.d.ts +0 -11
- package/schematics/migrations/initial-navigation/index.js +0 -83
- package/schematics/migrations/initial-navigation/transform.d.ts +0 -20
- package/schematics/migrations/initial-navigation/transform.js +0 -68
- package/schematics/migrations/initial-navigation/update_recorder.d.ts +0 -18
- package/schematics/migrations/initial-navigation/update_recorder.js +0 -20
- package/schematics/migrations/initial-navigation/util.d.ts +0 -12
- package/schematics/migrations/initial-navigation/util.js +0 -43
- package/schematics/migrations/missing-injectable/definition_collector.d.ts +0 -37
- package/schematics/migrations/missing-injectable/definition_collector.js +0 -89
- package/schematics/migrations/missing-injectable/index.d.ts +0 -11
- package/schematics/migrations/missing-injectable/index.js +0 -122
- package/schematics/migrations/missing-injectable/providers_evaluator.d.ts +0 -36
- package/schematics/migrations/missing-injectable/providers_evaluator.js +0 -64
- package/schematics/migrations/missing-injectable/transform.d.ts +0 -69
- package/schematics/migrations/missing-injectable/transform.js +0 -201
- package/schematics/migrations/missing-injectable/update_recorder.d.ts +0 -21
- package/schematics/migrations/missing-injectable/update_recorder.js +0 -20
- package/schematics/migrations/module-with-providers/collector.d.ts +0 -34
- package/schematics/migrations/module-with-providers/collector.js +0 -73
- package/schematics/migrations/module-with-providers/index.d.ts +0 -13
- package/schematics/migrations/module-with-providers/index.js +0 -93
- package/schematics/migrations/module-with-providers/transform.d.ts +0 -49
- package/schematics/migrations/module-with-providers/transform.js +0 -148
- package/schematics/migrations/module-with-providers/util.d.ts +0 -13
- package/schematics/migrations/module-with-providers/util.js +0 -40
- package/schematics/migrations/move-document/document_import_visitor.d.ts +0 -27
- package/schematics/migrations/move-document/document_import_visitor.js +0 -74
- package/schematics/migrations/move-document/index.js +0 -93
- package/schematics/migrations/move-document/move-import.d.ts +0 -12
- package/schematics/migrations/move-document/move-import.js +0 -61
- package/schematics/migrations/native-view-encapsulation/index.d.ts +0 -11
- package/schematics/migrations/native-view-encapsulation/index.js +0 -63
- package/schematics/migrations/native-view-encapsulation/util.d.ts +0 -11
- package/schematics/migrations/native-view-encapsulation/util.js +0 -48
- package/schematics/migrations/navigation-extras-omissions/index.d.ts +0 -11
- package/schematics/migrations/navigation-extras-omissions/index.js +0 -69
- package/schematics/migrations/navigation-extras-omissions/util.d.ts +0 -11
- package/schematics/migrations/navigation-extras-omissions/util.js +0 -126
- package/schematics/migrations/relative-link-resolution/collector.d.ts +0 -22
- package/schematics/migrations/relative-link-resolution/collector.js +0 -95
- package/schematics/migrations/relative-link-resolution/index.d.ts +0 -11
- package/schematics/migrations/relative-link-resolution/index.js +0 -84
- package/schematics/migrations/relative-link-resolution/transform.d.ts +0 -22
- package/schematics/migrations/relative-link-resolution/transform.js +0 -65
- package/schematics/migrations/relative-link-resolution/update_recorder.d.ts +0 -18
- package/schematics/migrations/relative-link-resolution/update_recorder.js +0 -20
- package/schematics/migrations/relative-link-resolution/util.d.ts +0 -12
- package/schematics/migrations/relative-link-resolution/util.js +0 -43
- package/schematics/migrations/renderer-to-renderer2/helpers.d.ts +0 -25
- package/schematics/migrations/renderer-to-renderer2/helpers.js +0 -238
- package/schematics/migrations/renderer-to-renderer2/index.d.ts +0 -14
- package/schematics/migrations/renderer-to-renderer2/index.js +0 -135
- package/schematics/migrations/renderer-to-renderer2/migration.d.ts +0 -18
- package/schematics/migrations/renderer-to-renderer2/migration.js +0 -225
- package/schematics/migrations/renderer-to-renderer2/util.d.ts +0 -18
- package/schematics/migrations/renderer-to-renderer2/util.js +0 -83
- package/schematics/migrations/router-preserve-query-params/index.d.ts +0 -14
- package/schematics/migrations/router-preserve-query-params/index.js +0 -72
- package/schematics/migrations/router-preserve-query-params/util.d.ts +0 -11
- package/schematics/migrations/router-preserve-query-params/util.js +0 -103
- package/schematics/migrations/static-queries/angular/directive_inputs.d.ts +0 -11
- package/schematics/migrations/static-queries/angular/directive_inputs.js +0 -84
- package/schematics/migrations/static-queries/angular/ng_query_visitor.d.ts +0 -45
- package/schematics/migrations/static-queries/angular/ng_query_visitor.js +0 -127
- package/schematics/migrations/static-queries/angular/query-definition.d.ts +0 -37
- package/schematics/migrations/static-queries/angular/query-definition.js +0 -33
- package/schematics/migrations/static-queries/angular/super_class.d.ts +0 -15
- package/schematics/migrations/static-queries/angular/super_class.js +0 -35
- package/schematics/migrations/static-queries/index.d.ts +0 -11
- package/schematics/migrations/static-queries/index.js +0 -230
- package/schematics/migrations/static-queries/strategies/template_strategy/template_strategy.d.ts +0 -41
- package/schematics/migrations/static-queries/strategies/template_strategy/template_strategy.js +0 -214
- package/schematics/migrations/static-queries/strategies/test_strategy/test_strategy.d.ts +0 -24
- package/schematics/migrations/static-queries/strategies/test_strategy/test_strategy.js +0 -38
- package/schematics/migrations/static-queries/strategies/timing-strategy.d.ts +0 -19
- package/schematics/migrations/static-queries/strategies/timing-strategy.js +0 -20
- package/schematics/migrations/static-queries/strategies/usage_strategy/declaration_usage_visitor.d.ts +0 -82
- package/schematics/migrations/static-queries/strategies/usage_strategy/declaration_usage_visitor.js +0 -369
- package/schematics/migrations/static-queries/strategies/usage_strategy/super_class_context.d.ts +0 -18
- package/schematics/migrations/static-queries/strategies/usage_strategy/super_class_context.js +0 -52
- package/schematics/migrations/static-queries/strategies/usage_strategy/template_usage_visitor.d.ts +0 -27
- package/schematics/migrations/static-queries/strategies/usage_strategy/template_usage_visitor.js +0 -93
- package/schematics/migrations/static-queries/strategies/usage_strategy/usage_strategy.d.ts +0 -34
- package/schematics/migrations/static-queries/strategies/usage_strategy/usage_strategy.js +0 -169
- package/schematics/migrations/static-queries/transform.d.ts +0 -21
- package/schematics/migrations/static-queries/transform.js +0 -102
- package/schematics/migrations/template-var-assignment/analyze_template.d.ts +0 -20
- package/schematics/migrations/template-var-assignment/analyze_template.js +0 -38
- package/schematics/migrations/template-var-assignment/angular/html_variable_assignment_visitor.d.ts +0 -28
- package/schematics/migrations/template-var-assignment/angular/html_variable_assignment_visitor.js +0 -80
- package/schematics/migrations/template-var-assignment/index.d.ts +0 -11
- package/schematics/migrations/template-var-assignment/index.js +0 -101
- package/schematics/migrations/undecorated-classes-with-decorated-fields/index.d.ts +0 -14
- package/schematics/migrations/undecorated-classes-with-decorated-fields/index.js +0 -114
- package/schematics/migrations/undecorated-classes-with-decorated-fields/transform.d.ts +0 -63
- package/schematics/migrations/undecorated-classes-with-decorated-fields/transform.js +0 -300
- package/schematics/migrations/undecorated-classes-with-decorated-fields/update_recorder.d.ts +0 -19
- package/schematics/migrations/undecorated-classes-with-decorated-fields/update_recorder.js +0 -20
- package/schematics/migrations/undecorated-classes-with-di/create_ngc_program.d.ts +0 -18
- package/schematics/migrations/undecorated-classes-with-di/create_ngc_program.js +0 -57
- package/schematics/migrations/undecorated-classes-with-di/decorator_rewrite/convert_directive_metadata.d.ts +0 -18
- package/schematics/migrations/undecorated-classes-with-di/decorator_rewrite/convert_directive_metadata.js +0 -96
- package/schematics/migrations/undecorated-classes-with-di/decorator_rewrite/decorator_rewriter.d.ts +0 -39
- package/schematics/migrations/undecorated-classes-with-di/decorator_rewrite/decorator_rewriter.js +0 -116
- package/schematics/migrations/undecorated-classes-with-di/decorator_rewrite/import_rewrite_visitor.d.ts +0 -37
- package/schematics/migrations/undecorated-classes-with-di/decorator_rewrite/import_rewrite_visitor.js +0 -126
- package/schematics/migrations/undecorated-classes-with-di/decorator_rewrite/path_format.d.ts +0 -10
- package/schematics/migrations/undecorated-classes-with-di/decorator_rewrite/path_format.js +0 -31
- package/schematics/migrations/undecorated-classes-with-di/decorator_rewrite/source_file_exports.d.ts +0 -16
- package/schematics/migrations/undecorated-classes-with-di/decorator_rewrite/source_file_exports.js +0 -65
- package/schematics/migrations/undecorated-classes-with-di/index.d.ts +0 -11
- package/schematics/migrations/undecorated-classes-with-di/index.js +0 -195
- package/schematics/migrations/undecorated-classes-with-di/ng_declaration_collector.d.ts +0 -38
- package/schematics/migrations/undecorated-classes-with-di/ng_declaration_collector.js +0 -142
- package/schematics/migrations/undecorated-classes-with-di/transform.d.ts +0 -98
- package/schematics/migrations/undecorated-classes-with-di/transform.js +0 -371
- package/schematics/migrations/undecorated-classes-with-di/update_recorder.d.ts +0 -20
- package/schematics/migrations/undecorated-classes-with-di/update_recorder.js +0 -20
- package/schematics/migrations/wait-for-async/index.d.ts +0 -11
- package/schematics/migrations/wait-for-async/index.js +0 -98
- package/schematics/migrations/wait-for-async/util.d.ts +0 -11
- package/schematics/migrations/wait-for-async/util.js +0 -37
- package/schematics/migrations/xhr-factory/index.d.ts +0 -10
- package/schematics/migrations/xhr-factory/index.js +0 -104
- package/src/r3_symbols.d.ts +0 -1025
- package/testing/testing.metadata.json +0 -1
- package/testing.d.ts +0 -7
- package/testing.metadata.json +0 -1
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
8
11
|
(function (factory) {
|
|
9
12
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
10
13
|
var v = factory(require, exports);
|
|
@@ -17,10 +20,10 @@
|
|
|
17
20
|
"use strict";
|
|
18
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
22
|
exports.hasOneOfTypes = exports.isNullableType = exports.isReferenceToImport = exports.getValueSymbolOfDeclaration = void 0;
|
|
20
|
-
const
|
|
23
|
+
const typescript_1 = __importDefault(require("typescript"));
|
|
21
24
|
function getValueSymbolOfDeclaration(node, typeChecker) {
|
|
22
25
|
let symbol = typeChecker.getSymbolAtLocation(node);
|
|
23
|
-
while (symbol && symbol.flags &
|
|
26
|
+
while (symbol && symbol.flags & typescript_1.default.SymbolFlags.Alias) {
|
|
24
27
|
symbol = typeChecker.getAliasedSymbol(symbol);
|
|
25
28
|
}
|
|
26
29
|
return symbol;
|
|
@@ -38,25 +41,25 @@
|
|
|
38
41
|
function isNullableType(typeChecker, node) {
|
|
39
42
|
// Skip expressions in the form of `foo.bar!.baz` since the `TypeChecker` seems
|
|
40
43
|
// to identify them as null, even though the user indicated that it won't be.
|
|
41
|
-
if (node.parent &&
|
|
44
|
+
if (node.parent && typescript_1.default.isNonNullExpression(node.parent)) {
|
|
42
45
|
return false;
|
|
43
46
|
}
|
|
44
47
|
const type = typeChecker.getTypeAtLocation(node);
|
|
45
|
-
const typeNode = typeChecker.typeToTypeNode(type, undefined,
|
|
48
|
+
const typeNode = typeChecker.typeToTypeNode(type, undefined, typescript_1.default.NodeBuilderFlags.None);
|
|
46
49
|
let hasSeenNullableType = false;
|
|
47
50
|
// Trace the type of the node back to a type node, walk
|
|
48
51
|
// through all of its sub-nodes and look for nullable tyes.
|
|
49
52
|
if (typeNode) {
|
|
50
53
|
(function walk(current) {
|
|
51
|
-
if (current.kind ===
|
|
52
|
-
current.kind ===
|
|
53
|
-
current.kind ===
|
|
54
|
+
if (current.kind === typescript_1.default.SyntaxKind.NullKeyword ||
|
|
55
|
+
current.kind === typescript_1.default.SyntaxKind.UndefinedKeyword ||
|
|
56
|
+
current.kind === typescript_1.default.SyntaxKind.VoidKeyword) {
|
|
54
57
|
hasSeenNullableType = true;
|
|
55
58
|
// Note that we don't descend into type literals, because it may cause
|
|
56
59
|
// us to mis-identify the root type as nullable, because it has a nullable
|
|
57
60
|
// property (e.g. `{ foo: string | null }`).
|
|
58
61
|
}
|
|
59
|
-
else if (!hasSeenNullableType && !
|
|
62
|
+
else if (!hasSeenNullableType && !typescript_1.default.isTypeLiteralNode(current)) {
|
|
60
63
|
current.forEachChild(walk);
|
|
61
64
|
}
|
|
62
65
|
})(typeNode);
|
|
@@ -70,14 +73,14 @@
|
|
|
70
73
|
*/
|
|
71
74
|
function hasOneOfTypes(typeChecker, node, types) {
|
|
72
75
|
const type = typeChecker.getTypeAtLocation(node);
|
|
73
|
-
const typeNode = type ? typeChecker.typeToTypeNode(type, undefined,
|
|
76
|
+
const typeNode = type ? typeChecker.typeToTypeNode(type, undefined, typescript_1.default.NodeBuilderFlags.None) : undefined;
|
|
74
77
|
let hasMatch = false;
|
|
75
78
|
if (typeNode) {
|
|
76
79
|
(function walk(current) {
|
|
77
|
-
if (
|
|
80
|
+
if (typescript_1.default.isIdentifier(current) && types.includes(current.text)) {
|
|
78
81
|
hasMatch = true;
|
|
79
82
|
}
|
|
80
|
-
else if (!hasMatch && !
|
|
83
|
+
else if (!hasMatch && !typescript_1.default.isTypeLiteralNode(current)) {
|
|
81
84
|
current.forEachChild(walk);
|
|
82
85
|
}
|
|
83
86
|
})(typeNode);
|
|
@@ -86,4 +89,4 @@
|
|
|
86
89
|
}
|
|
87
90
|
exports.hasOneOfTypes = hasOneOfTypes;
|
|
88
91
|
});
|
|
89
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
92
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3ltYm9sLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29yZS9zY2hlbWF0aWNzL3V0aWxzL3R5cGVzY3JpcHQvc3ltYm9sLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRzs7Ozs7Ozs7Ozs7Ozs7OztJQUVILDREQUE0QjtJQUU1QixTQUFnQiwyQkFBMkIsQ0FBQyxJQUFhLEVBQUUsV0FBMkI7UUFFcEYsSUFBSSxNQUFNLEdBQUcsV0FBVyxDQUFDLG1CQUFtQixDQUFDLElBQUksQ0FBQyxDQUFDO1FBRW5ELE9BQU8sTUFBTSxJQUFJLE1BQU0sQ0FBQyxLQUFLLEdBQUcsb0JBQUUsQ0FBQyxXQUFXLENBQUMsS0FBSyxFQUFFO1lBQ3BELE1BQU0sR0FBRyxXQUFXLENBQUMsZ0JBQWdCLENBQUMsTUFBTSxDQUFDLENBQUM7U0FDL0M7UUFFRCxPQUFPLE1BQU0sQ0FBQztJQUNoQixDQUFDO0lBVEQsa0VBU0M7SUFFRCx5RUFBeUU7SUFDekUsU0FBZ0IsbUJBQW1CLENBQy9CLFdBQTJCLEVBQUUsSUFBYSxFQUFFLGVBQW1DO1FBQ2pGLE1BQU0sVUFBVSxHQUFHLFdBQVcsQ0FBQyxpQkFBaUIsQ0FBQyxJQUFJLENBQU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mNsdWRlcyhjdXJyZW50LnRleHQpKSB7XG4gICAgICAgIGhhc01hdGNoID0gdHJ1ZTtcbiAgICAgIH0gZWxzZSBpZiAoIWhhc01hdGNoICYmICF0cy5pc1R5cGVMaXRlcmFsTm9kZShjdXJyZW50KSkge1xuICAgICAgICBjdXJyZW50LmZvckVhY2hDaGlsZCh3YWxrKTtcbiAgICAgIH1cbiAgICB9KSh0eXBlTm9kZSk7XG4gIH1cbiAgcmV0dXJuIGhhc01hdGNoO1xufVxuIl19
|
package/testing/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/core/testing",
|
|
3
|
-
"
|
|
4
|
-
"fesm2015": "../fesm2015/testing.
|
|
5
|
-
"
|
|
3
|
+
"fesm2020": "../fesm2020/testing.mjs",
|
|
4
|
+
"fesm2015": "../fesm2015/testing.mjs",
|
|
5
|
+
"esm2020": "../esm2020/testing/testing.mjs",
|
|
6
6
|
"typings": "./testing.d.ts",
|
|
7
|
-
"module": "../fesm2015/testing.
|
|
8
|
-
"
|
|
7
|
+
"module": "../fesm2015/testing.mjs",
|
|
8
|
+
"es2020": "../fesm2020/testing.mjs"
|
|
9
9
|
}
|
package/testing/testing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v13.0.0-
|
|
2
|
+
* @license Angular v13.0.0-rc.3
|
|
3
3
|
* (c) 2010-2021 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -13,6 +13,7 @@ import { ComponentRef } from '@angular/core';
|
|
|
13
13
|
import { DebugElement } from '@angular/core';
|
|
14
14
|
import { Directive } from '@angular/core';
|
|
15
15
|
import { ElementRef } from '@angular/core';
|
|
16
|
+
import * as i0 from '@angular/core';
|
|
16
17
|
import { InjectFlags } from '@angular/core';
|
|
17
18
|
import { InjectionToken } from '@angular/core';
|
|
18
19
|
import { Injector } from '@angular/core';
|
|
@@ -571,338 +572,6 @@ export declare function withModule(moduleDef: TestModuleMetadata): InjectSetupWr
|
|
|
571
572
|
|
|
572
573
|
export declare function withModule(moduleDef: TestModuleMetadata, fn: Function): () => any;
|
|
573
574
|
|
|
574
|
-
/**
|
|
575
|
-
* @description
|
|
576
|
-
* Configures and initializes environment for unit testing and provides methods for
|
|
577
|
-
* creating components and services in unit tests.
|
|
578
|
-
*
|
|
579
|
-
* `TestBed` is the primary api for writing unit tests for Angular applications and libraries.
|
|
580
|
-
*
|
|
581
|
-
* Note: Use `TestBed` in tests. It will be set to either `TestBedViewEngine` or `TestBedRender3`
|
|
582
|
-
* according to the compiler used.
|
|
583
|
-
*/
|
|
584
|
-
export declare class ɵangular_packages_core_testing_testing_a implements TestBed {
|
|
585
|
-
/**
|
|
586
|
-
* Teardown options that have been configured at the environment level.
|
|
587
|
-
* Used as a fallback if no instance-level options have been provided.
|
|
588
|
-
*/
|
|
589
|
-
private static _environmentTeardownOptions;
|
|
590
|
-
/**
|
|
591
|
-
* Teardown options that have been configured at the `TestBed` instance level.
|
|
592
|
-
* These options take precedence over the environemnt-level ones.
|
|
593
|
-
*/
|
|
594
|
-
private _instanceTeardownOptions;
|
|
595
|
-
/**
|
|
596
|
-
* Initialize the environment for testing with a compiler factory, a PlatformRef, and an
|
|
597
|
-
* angular module. These are common to every test in the suite.
|
|
598
|
-
*
|
|
599
|
-
* This may only be called once, to set up the common providers for the current test
|
|
600
|
-
* suite on the current platform. If you absolutely need to change the providers,
|
|
601
|
-
* first use `resetTestEnvironment`.
|
|
602
|
-
*
|
|
603
|
-
* Test modules and platforms for individual platforms are available from
|
|
604
|
-
* '@angular/<platform_name>/testing'.
|
|
605
|
-
*/
|
|
606
|
-
static initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, summariesOrOptions?: TestEnvironmentOptions | (() => any[])): ɵangular_packages_core_testing_testing_a;
|
|
607
|
-
/**
|
|
608
|
-
* Reset the providers for the test injector.
|
|
609
|
-
*/
|
|
610
|
-
static resetTestEnvironment(): void;
|
|
611
|
-
static resetTestingModule(): TestBedStatic;
|
|
612
|
-
/**
|
|
613
|
-
* Allows overriding default compiler providers and settings
|
|
614
|
-
* which are defined in test_injector.js
|
|
615
|
-
*/
|
|
616
|
-
static configureCompiler(config: {
|
|
617
|
-
providers?: any[];
|
|
618
|
-
useJit?: boolean;
|
|
619
|
-
}): TestBedStatic;
|
|
620
|
-
/**
|
|
621
|
-
* Allows overriding default providers, directives, pipes, modules of the test injector,
|
|
622
|
-
* which are defined in test_injector.js
|
|
623
|
-
*/
|
|
624
|
-
static configureTestingModule(moduleDef: TestModuleMetadata): TestBedStatic;
|
|
625
|
-
/**
|
|
626
|
-
* Compile components with a `templateUrl` for the test's NgModule.
|
|
627
|
-
* It is necessary to call this function
|
|
628
|
-
* as fetching urls is asynchronous.
|
|
629
|
-
*/
|
|
630
|
-
static compileComponents(): Promise<any>;
|
|
631
|
-
static overrideModule(ngModule: Type<any>, override: MetadataOverride<NgModule>): TestBedStatic;
|
|
632
|
-
static overrideComponent(component: Type<any>, override: MetadataOverride<Component>): TestBedStatic;
|
|
633
|
-
static overrideDirective(directive: Type<any>, override: MetadataOverride<Directive>): TestBedStatic;
|
|
634
|
-
static overridePipe(pipe: Type<any>, override: MetadataOverride<Pipe>): TestBedStatic;
|
|
635
|
-
static overrideTemplate(component: Type<any>, template: string): TestBedStatic;
|
|
636
|
-
/**
|
|
637
|
-
* Overrides the template of the given component, compiling the template
|
|
638
|
-
* in the context of the TestingModule.
|
|
639
|
-
*
|
|
640
|
-
* Note: This works for JIT and AOTed components as well.
|
|
641
|
-
*/
|
|
642
|
-
static overrideTemplateUsingTestingModule(component: Type<any>, template: string): TestBedStatic;
|
|
643
|
-
/**
|
|
644
|
-
* Overwrites all providers for the given token with the given provider definition.
|
|
645
|
-
*
|
|
646
|
-
* Note: This works for JIT and AOTed components as well.
|
|
647
|
-
*/
|
|
648
|
-
static overrideProvider(token: any, provider: {
|
|
649
|
-
useFactory: Function;
|
|
650
|
-
deps: any[];
|
|
651
|
-
}): TestBedStatic;
|
|
652
|
-
static overrideProvider(token: any, provider: {
|
|
653
|
-
useValue: any;
|
|
654
|
-
}): TestBedStatic;
|
|
655
|
-
static inject<T>(token: ProviderToken<T>, notFoundValue?: T, flags?: InjectFlags): T;
|
|
656
|
-
static inject<T>(token: ProviderToken<T>, notFoundValue: null, flags?: InjectFlags): T | null;
|
|
657
|
-
/** @deprecated from v9.0.0 use TestBed.inject */
|
|
658
|
-
static get<T>(token: ProviderToken<T>, notFoundValue?: T, flags?: InjectFlags): any;
|
|
659
|
-
/**
|
|
660
|
-
* @deprecated from v9.0.0 use TestBed.inject
|
|
661
|
-
* @suppress {duplicate}
|
|
662
|
-
*/
|
|
663
|
-
static get(token: any, notFoundValue?: any): any;
|
|
664
|
-
static createComponent<T>(component: Type<T>): ComponentFixture<T>;
|
|
665
|
-
static shouldTearDownTestingModule(): boolean;
|
|
666
|
-
static tearDownTestingModule(): void;
|
|
667
|
-
private _instantiated;
|
|
668
|
-
private _compiler;
|
|
669
|
-
private _moduleRef;
|
|
670
|
-
private _moduleFactory;
|
|
671
|
-
private _pendingModuleFactory;
|
|
672
|
-
private _compilerOptions;
|
|
673
|
-
private _moduleOverrides;
|
|
674
|
-
private _componentOverrides;
|
|
675
|
-
private _directiveOverrides;
|
|
676
|
-
private _pipeOverrides;
|
|
677
|
-
private _providers;
|
|
678
|
-
private _declarations;
|
|
679
|
-
private _imports;
|
|
680
|
-
private _schemas;
|
|
681
|
-
private _activeFixtures;
|
|
682
|
-
private _testEnvAotSummaries;
|
|
683
|
-
private _aotSummaries;
|
|
684
|
-
private _templateOverrides;
|
|
685
|
-
private _isRoot;
|
|
686
|
-
private _rootProviderOverrides;
|
|
687
|
-
platform: PlatformRef;
|
|
688
|
-
ngModule: Type<any> | Type<any>[];
|
|
689
|
-
/**
|
|
690
|
-
* Initialize the environment for testing with a compiler factory, a PlatformRef, and an
|
|
691
|
-
* angular module. These are common to every test in the suite.
|
|
692
|
-
*
|
|
693
|
-
* This may only be called once, to set up the common providers for the current test
|
|
694
|
-
* suite on the current platform. If you absolutely need to change the providers,
|
|
695
|
-
* first use `resetTestEnvironment`.
|
|
696
|
-
*
|
|
697
|
-
* Test modules and platforms for individual platforms are available from
|
|
698
|
-
* '@angular/<platform_name>/testing'.
|
|
699
|
-
*/
|
|
700
|
-
initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, summariesOrOptions?: TestEnvironmentOptions | (() => any[])): void;
|
|
701
|
-
/**
|
|
702
|
-
* Reset the providers for the test injector.
|
|
703
|
-
*/
|
|
704
|
-
resetTestEnvironment(): void;
|
|
705
|
-
resetTestingModule(): void;
|
|
706
|
-
configureCompiler(config: {
|
|
707
|
-
providers?: any[];
|
|
708
|
-
useJit?: boolean;
|
|
709
|
-
}): void;
|
|
710
|
-
configureTestingModule(moduleDef: TestModuleMetadata): void;
|
|
711
|
-
compileComponents(): Promise<any>;
|
|
712
|
-
private _initIfNeeded;
|
|
713
|
-
private _createCompilerAndModule;
|
|
714
|
-
private _assertNotInstantiated;
|
|
715
|
-
inject<T>(token: ProviderToken<T>, notFoundValue?: T, flags?: InjectFlags): T;
|
|
716
|
-
inject<T>(token: ProviderToken<T>, notFoundValue: null, flags?: InjectFlags): T | null;
|
|
717
|
-
/** @deprecated from v9.0.0 use TestBed.inject */
|
|
718
|
-
get<T>(token: ProviderToken<T>, notFoundValue?: T, flags?: InjectFlags): any;
|
|
719
|
-
/** @deprecated from v9.0.0 use TestBed.inject */
|
|
720
|
-
get(token: any, notFoundValue?: any): any;
|
|
721
|
-
execute(tokens: any[], fn: Function, context?: any): any;
|
|
722
|
-
overrideModule(ngModule: Type<any>, override: MetadataOverride<NgModule>): void;
|
|
723
|
-
overrideComponent(component: Type<any>, override: MetadataOverride<Component>): void;
|
|
724
|
-
overrideDirective(directive: Type<any>, override: MetadataOverride<Directive>): void;
|
|
725
|
-
overridePipe(pipe: Type<any>, override: MetadataOverride<Pipe>): void;
|
|
726
|
-
/**
|
|
727
|
-
* Overwrites all providers for the given token with the given provider definition.
|
|
728
|
-
*/
|
|
729
|
-
overrideProvider(token: any, provider: {
|
|
730
|
-
useFactory: Function;
|
|
731
|
-
deps: any[];
|
|
732
|
-
}): void;
|
|
733
|
-
overrideProvider(token: any, provider: {
|
|
734
|
-
useValue: any;
|
|
735
|
-
}): void;
|
|
736
|
-
private overrideProviderImpl;
|
|
737
|
-
overrideTemplateUsingTestingModule(component: Type<any>, template: string): void;
|
|
738
|
-
createComponent<T>(component: Type<T>): ComponentFixture<T>;
|
|
739
|
-
private destroyActiveFixtures;
|
|
740
|
-
private shouldRethrowTeardownErrors;
|
|
741
|
-
shouldTearDownTestingModule(): boolean;
|
|
742
|
-
tearDownTestingModule(): void;
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
/**
|
|
746
|
-
* @description
|
|
747
|
-
* Configures and initializes environment for unit testing and provides methods for
|
|
748
|
-
* creating components and services in unit tests.
|
|
749
|
-
*
|
|
750
|
-
* TestBed is the primary api for writing unit tests for Angular applications and libraries.
|
|
751
|
-
*
|
|
752
|
-
* Note: Use `TestBed` in tests. It will be set to either `TestBedViewEngine` or `TestBedRender3`
|
|
753
|
-
* according to the compiler used.
|
|
754
|
-
*/
|
|
755
|
-
export declare class ɵangular_packages_core_testing_testing_b implements TestBed {
|
|
756
|
-
/**
|
|
757
|
-
* Teardown options that have been configured at the environment level.
|
|
758
|
-
* Used as a fallback if no instance-level options have been provided.
|
|
759
|
-
*/
|
|
760
|
-
private static _environmentTeardownOptions;
|
|
761
|
-
/**
|
|
762
|
-
* Teardown options that have been configured at the `TestBed` instance level.
|
|
763
|
-
* These options take precedence over the environemnt-level ones.
|
|
764
|
-
*/
|
|
765
|
-
private _instanceTeardownOptions;
|
|
766
|
-
/**
|
|
767
|
-
* Initialize the environment for testing with a compiler factory, a PlatformRef, and an
|
|
768
|
-
* angular module. These are common to every test in the suite.
|
|
769
|
-
*
|
|
770
|
-
* This may only be called once, to set up the common providers for the current test
|
|
771
|
-
* suite on the current platform. If you absolutely need to change the providers,
|
|
772
|
-
* first use `resetTestEnvironment`.
|
|
773
|
-
*
|
|
774
|
-
* Test modules and platforms for individual platforms are available from
|
|
775
|
-
* '@angular/<platform_name>/testing'.
|
|
776
|
-
*
|
|
777
|
-
* @publicApi
|
|
778
|
-
*/
|
|
779
|
-
static initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, summariesOrOptions?: TestEnvironmentOptions | (() => any[])): TestBed;
|
|
780
|
-
/**
|
|
781
|
-
* Reset the providers for the test injector.
|
|
782
|
-
*
|
|
783
|
-
* @publicApi
|
|
784
|
-
*/
|
|
785
|
-
static resetTestEnvironment(): void;
|
|
786
|
-
static configureCompiler(config: {
|
|
787
|
-
providers?: any[];
|
|
788
|
-
useJit?: boolean;
|
|
789
|
-
}): TestBedStatic;
|
|
790
|
-
/**
|
|
791
|
-
* Allows overriding default providers, directives, pipes, modules of the test injector,
|
|
792
|
-
* which are defined in test_injector.js
|
|
793
|
-
*/
|
|
794
|
-
static configureTestingModule(moduleDef: TestModuleMetadata): TestBedStatic;
|
|
795
|
-
/**
|
|
796
|
-
* Compile components with a `templateUrl` for the test's NgModule.
|
|
797
|
-
* It is necessary to call this function
|
|
798
|
-
* as fetching urls is asynchronous.
|
|
799
|
-
*/
|
|
800
|
-
static compileComponents(): Promise<any>;
|
|
801
|
-
static overrideModule(ngModule: Type<any>, override: MetadataOverride<NgModule>): TestBedStatic;
|
|
802
|
-
static overrideComponent(component: Type<any>, override: MetadataOverride<Component>): TestBedStatic;
|
|
803
|
-
static overrideDirective(directive: Type<any>, override: MetadataOverride<Directive>): TestBedStatic;
|
|
804
|
-
static overridePipe(pipe: Type<any>, override: MetadataOverride<Pipe>): TestBedStatic;
|
|
805
|
-
static overrideTemplate(component: Type<any>, template: string): TestBedStatic;
|
|
806
|
-
/**
|
|
807
|
-
* Overrides the template of the given component, compiling the template
|
|
808
|
-
* in the context of the TestingModule.
|
|
809
|
-
*
|
|
810
|
-
* Note: This works for JIT and AOTed components as well.
|
|
811
|
-
*/
|
|
812
|
-
static overrideTemplateUsingTestingModule(component: Type<any>, template: string): TestBedStatic;
|
|
813
|
-
static overrideProvider(token: any, provider: {
|
|
814
|
-
useFactory: Function;
|
|
815
|
-
deps: any[];
|
|
816
|
-
}): TestBedStatic;
|
|
817
|
-
static overrideProvider(token: any, provider: {
|
|
818
|
-
useValue: any;
|
|
819
|
-
}): TestBedStatic;
|
|
820
|
-
static inject<T>(token: ProviderToken<T>, notFoundValue?: T, flags?: InjectFlags): T;
|
|
821
|
-
static inject<T>(token: ProviderToken<T>, notFoundValue: null, flags?: InjectFlags): T | null;
|
|
822
|
-
/** @deprecated from v9.0.0 use TestBed.inject */
|
|
823
|
-
static get<T>(token: ProviderToken<T>, notFoundValue?: T, flags?: InjectFlags): any;
|
|
824
|
-
/** @deprecated from v9.0.0 use TestBed.inject */
|
|
825
|
-
static get(token: any, notFoundValue?: any): any;
|
|
826
|
-
static createComponent<T>(component: Type<T>): ComponentFixture<T>;
|
|
827
|
-
static resetTestingModule(): TestBedStatic;
|
|
828
|
-
static shouldTearDownTestingModule(): boolean;
|
|
829
|
-
static tearDownTestingModule(): void;
|
|
830
|
-
platform: PlatformRef;
|
|
831
|
-
ngModule: Type<any> | Type<any>[];
|
|
832
|
-
private _compiler;
|
|
833
|
-
private _testModuleRef;
|
|
834
|
-
private _activeFixtures;
|
|
835
|
-
private _globalCompilationChecked;
|
|
836
|
-
/**
|
|
837
|
-
* Initialize the environment for testing with a compiler factory, a PlatformRef, and an
|
|
838
|
-
* angular module. These are common to every test in the suite.
|
|
839
|
-
*
|
|
840
|
-
* This may only be called once, to set up the common providers for the current test
|
|
841
|
-
* suite on the current platform. If you absolutely need to change the providers,
|
|
842
|
-
* first use `resetTestEnvironment`.
|
|
843
|
-
*
|
|
844
|
-
* Test modules and platforms for individual platforms are available from
|
|
845
|
-
* '@angular/<platform_name>/testing'.
|
|
846
|
-
*
|
|
847
|
-
* @publicApi
|
|
848
|
-
*/
|
|
849
|
-
initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, summariesOrOptions?: TestEnvironmentOptions | (() => any[])): void;
|
|
850
|
-
/**
|
|
851
|
-
* Reset the providers for the test injector.
|
|
852
|
-
*
|
|
853
|
-
* @publicApi
|
|
854
|
-
*/
|
|
855
|
-
resetTestEnvironment(): void;
|
|
856
|
-
resetTestingModule(): void;
|
|
857
|
-
configureCompiler(config: {
|
|
858
|
-
providers?: any[];
|
|
859
|
-
useJit?: boolean;
|
|
860
|
-
}): void;
|
|
861
|
-
configureTestingModule(moduleDef: TestModuleMetadata): void;
|
|
862
|
-
compileComponents(): Promise<any>;
|
|
863
|
-
inject<T>(token: ProviderToken<T>, notFoundValue?: T, flags?: InjectFlags): T;
|
|
864
|
-
inject<T>(token: ProviderToken<T>, notFoundValue: null, flags?: InjectFlags): T | null;
|
|
865
|
-
/** @deprecated from v9.0.0 use TestBed.inject */
|
|
866
|
-
get<T>(token: ProviderToken<T>, notFoundValue?: T, flags?: InjectFlags): any;
|
|
867
|
-
/** @deprecated from v9.0.0 use TestBed.inject */
|
|
868
|
-
get(token: any, notFoundValue?: any): any;
|
|
869
|
-
execute(tokens: any[], fn: Function, context?: any): any;
|
|
870
|
-
overrideModule(ngModule: Type<any>, override: MetadataOverride<NgModule>): void;
|
|
871
|
-
overrideComponent(component: Type<any>, override: MetadataOverride<Component>): void;
|
|
872
|
-
overrideTemplateUsingTestingModule(component: Type<any>, template: string): void;
|
|
873
|
-
overrideDirective(directive: Type<any>, override: MetadataOverride<Directive>): void;
|
|
874
|
-
overridePipe(pipe: Type<any>, override: MetadataOverride<Pipe>): void;
|
|
875
|
-
/**
|
|
876
|
-
* Overwrites all providers for the given token with the given provider definition.
|
|
877
|
-
*/
|
|
878
|
-
overrideProvider(token: any, provider: {
|
|
879
|
-
useFactory?: Function;
|
|
880
|
-
useValue?: any;
|
|
881
|
-
deps?: any[];
|
|
882
|
-
}): void;
|
|
883
|
-
createComponent<T>(type: Type<T>): ComponentFixture<T>;
|
|
884
|
-
private assertNotInstantiated;
|
|
885
|
-
/**
|
|
886
|
-
* Check whether the module scoping queue should be flushed, and flush it if needed.
|
|
887
|
-
*
|
|
888
|
-
* When the TestBed is reset, it clears the JIT module compilation queue, cancelling any
|
|
889
|
-
* in-progress module compilation. This creates a potential hazard - the very first time the
|
|
890
|
-
* TestBed is initialized (or if it's reset without being initialized), there may be pending
|
|
891
|
-
* compilations of modules declared in global scope. These compilations should be finished.
|
|
892
|
-
*
|
|
893
|
-
* To ensure that globally declared modules have their components scoped properly, this function
|
|
894
|
-
* is called whenever TestBed is initialized or reset. The _first_ time that this happens, prior
|
|
895
|
-
* to any other operations, the scoping queue is flushed.
|
|
896
|
-
*/
|
|
897
|
-
private checkGlobalCompilationFinished;
|
|
898
|
-
private destroyActiveFixtures;
|
|
899
|
-
private shouldRethrowTeardownErrors;
|
|
900
|
-
shouldTearDownTestingModule(): boolean;
|
|
901
|
-
tearDownTestingModule(): void;
|
|
902
|
-
}
|
|
903
|
-
|
|
904
|
-
export declare function ɵangular_packages_core_testing_testing_c(): ɵangular_packages_core_testing_testing_b;
|
|
905
|
-
|
|
906
575
|
export declare class ɵMetadataOverrider {
|
|
907
576
|
private _references;
|
|
908
577
|
/**
|
|
@@ -941,6 +610,8 @@ export declare class ɵTestingCompiler extends Compiler {
|
|
|
941
610
|
* This can be used for errors created by compileModule...
|
|
942
611
|
*/
|
|
943
612
|
getComponentFromError(error: Error): Type<any> | null;
|
|
613
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ɵTestingCompiler, never>;
|
|
614
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ɵTestingCompiler>;
|
|
944
615
|
}
|
|
945
616
|
|
|
946
617
|
/**
|