@angular/core 13.0.0-next.8 → 13.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core.d.ts +590 -955
- 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 +135 -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 +46 -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} +0 -0
- 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} +2 -2
- package/{esm2015/src/render3/context_discovery.js → esm2020/src/render3/context_discovery.mjs} +0 -0
- package/{esm2015/src/render3/definition.js → esm2020/src/render3/definition.mjs} +0 -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} +0 -0
- 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/{esm2015/src/render3/fields.js → esm2020/src/render3/fields.mjs} +0 -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 +122 -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} +1 -1
- 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/esm2020/src/view/provider_flags.mjs +26 -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/esm2020/src/view/refs.mjs +369 -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} +8641 -8712
- 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 +33119 -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/router-link-empty-expression/analyze_template.d.ts +2 -2
- package/schematics/migrations/router-link-empty-expression/analyze_template.js +6 -7
- package/schematics/migrations/router-link-empty-expression/angular/html_routerlink_empty_expr_visitor.d.ts +7 -6
- package/schematics/migrations/router-link-empty-expression/angular/html_routerlink_empty_expr_visitor.js +10 -11
- package/schematics/migrations/router-link-empty-expression/index.js +22 -11
- 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 +32 -0
- package/schematics/utils/load_esm.js +79 -0
- 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/parse_html.d.ts +2 -2
- package/schematics/utils/parse_html.js +4 -5
- package/schematics/utils/template_ast_visitor.d.ts +55 -0
- package/schematics/utils/template_ast_visitor.js +73 -0
- 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 +57 -339
- package/bundles/core-testing.umd.js +0 -3179
- package/bundles/core-testing.umd.js.map +0 -1
- package/bundles/core.umd.js +0 -34489
- 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 -735
- 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 -41
- package/esm2015/src/linker/system_js_ng_module_factory_loader.js +0 -77
- package/esm2015/src/linker/view_container_ref.js +0 -252
- package/esm2015/src/linker.js +0 -20
- 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/error_code.js +0 -45
- package/esm2015/src/render3/features/ng_onchanges_feature.js +0 -92
- 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 -507
- package/esm2015/src/view/refs.js +0 -362
- 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 -219
- package/schematics/migrations/static-queries/strategies/template_strategy/template_strategy.d.ts +0 -38
- 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 -26
- package/schematics/migrations/static-queries/strategies/usage_strategy/template_usage_visitor.js +0 -94
- package/schematics/migrations/static-queries/strategies/usage_strategy/usage_strategy.d.ts +0 -33
- package/schematics/migrations/static-queries/strategies/usage_strategy/usage_strategy.js +0 -168
- 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 -39
- package/schematics/migrations/template-var-assignment/angular/html_variable_assignment_visitor.d.ts +0 -27
- package/schematics/migrations/template-var-assignment/angular/html_variable_assignment_visitor.js +0 -79
- package/schematics/migrations/template-var-assignment/index.d.ts +0 -11
- package/schematics/migrations/template-var-assignment/index.js +0 -90
- 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 -97
- 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 -184
- 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 -97
- package/schematics/migrations/undecorated-classes-with-di/transform.js +0 -370
- 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
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.2
|
|
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';
|
|
@@ -232,7 +233,7 @@ export declare type MetadataOverride<T> = {
|
|
|
232
233
|
};
|
|
233
234
|
|
|
234
235
|
/**
|
|
235
|
-
*
|
|
236
|
+
* Configures the test module teardown behavior in `TestBed`.
|
|
236
237
|
* @publicApi
|
|
237
238
|
*/
|
|
238
239
|
export declare interface ModuleTeardownOptions {
|
|
@@ -268,6 +269,20 @@ export declare interface TestBed {
|
|
|
268
269
|
* '@angular/<platform_name>/testing'.
|
|
269
270
|
*/
|
|
270
271
|
initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, options?: TestEnvironmentOptions): void;
|
|
272
|
+
/**
|
|
273
|
+
* Initialize the environment for testing with a compiler factory, a PlatformRef, and an
|
|
274
|
+
* angular module. These are common to every test in the suite.
|
|
275
|
+
*
|
|
276
|
+
* This may only be called once, to set up the common providers for the current test
|
|
277
|
+
* suite on the current platform. If you absolutely need to change the providers,
|
|
278
|
+
* first use `resetTestEnvironment`.
|
|
279
|
+
*
|
|
280
|
+
* Test modules and platforms for individual platforms are available from
|
|
281
|
+
* '@angular/<platform_name>/testing'.
|
|
282
|
+
*
|
|
283
|
+
* @deprecated This API that allows providing AOT summaries is deprecated, since summary files are
|
|
284
|
+
* unused in Ivy.
|
|
285
|
+
*/
|
|
271
286
|
initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, aotSummaries?: () => any[]): void;
|
|
272
287
|
/**
|
|
273
288
|
* Reset the providers for the test injector.
|
|
@@ -331,9 +346,32 @@ export declare const TestBed: TestBedStatic;
|
|
|
331
346
|
*/
|
|
332
347
|
export declare interface TestBedStatic {
|
|
333
348
|
new (...args: any[]): TestBed;
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
349
|
+
/**
|
|
350
|
+
* Initialize the environment for testing with a compiler factory, a PlatformRef, and an
|
|
351
|
+
* angular module. These are common to every test in the suite.
|
|
352
|
+
*
|
|
353
|
+
* This may only be called once, to set up the common providers for the current test
|
|
354
|
+
* suite on the current platform. If you absolutely need to change the providers,
|
|
355
|
+
* first use `resetTestEnvironment`.
|
|
356
|
+
*
|
|
357
|
+
* Test modules and platforms for individual platforms are available from
|
|
358
|
+
* '@angular/<platform_name>/testing'.
|
|
359
|
+
*/
|
|
360
|
+
initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, options?: TestEnvironmentOptions): TestBed;
|
|
361
|
+
/**
|
|
362
|
+
* Initialize the environment for testing with a compiler factory, a PlatformRef, and an
|
|
363
|
+
* angular module. These are common to every test in the suite.
|
|
364
|
+
*
|
|
365
|
+
* This may only be called once, to set up the common providers for the current test
|
|
366
|
+
* suite on the current platform. If you absolutely need to change the providers,
|
|
367
|
+
* first use `resetTestEnvironment`.
|
|
368
|
+
*
|
|
369
|
+
* Test modules and platforms for individual platforms are available from
|
|
370
|
+
* '@angular/<platform_name>/testing'.
|
|
371
|
+
*
|
|
372
|
+
* @deprecated This API that allows providing AOT summaries is deprecated, since summary files are
|
|
373
|
+
* unused in Ivy.
|
|
374
|
+
*/
|
|
337
375
|
initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, aotSummaries?: () => any[]): TestBed;
|
|
338
376
|
/**
|
|
339
377
|
* Reset the providers for the test injector.
|
|
@@ -411,7 +449,16 @@ export declare class TestComponentRenderer {
|
|
|
411
449
|
* @publicApi
|
|
412
450
|
*/
|
|
413
451
|
export declare interface TestEnvironmentOptions {
|
|
452
|
+
/**
|
|
453
|
+
* Provides a way to specify AOT summaries to use in TestBed.
|
|
454
|
+
* This parameter is unused and deprecated in Ivy.
|
|
455
|
+
*
|
|
456
|
+
* @deprecated With Ivy, AOT summary files are unused.
|
|
457
|
+
*/
|
|
414
458
|
aotSummaries?: () => any[];
|
|
459
|
+
/**
|
|
460
|
+
* Configures the test module teardown behavior in `TestBed`.
|
|
461
|
+
*/
|
|
415
462
|
teardown?: ModuleTeardownOptions;
|
|
416
463
|
}
|
|
417
464
|
|
|
@@ -423,6 +470,9 @@ export declare type TestModuleMetadata = {
|
|
|
423
470
|
declarations?: any[];
|
|
424
471
|
imports?: any[];
|
|
425
472
|
schemas?: Array<SchemaMetadata | any[]>;
|
|
473
|
+
/**
|
|
474
|
+
* @deprecated With Ivy, AOT summary files are unused.
|
|
475
|
+
*/
|
|
426
476
|
aotSummaries?: () => any[];
|
|
427
477
|
teardown?: ModuleTeardownOptions;
|
|
428
478
|
};
|
|
@@ -522,340 +572,6 @@ export declare function withModule(moduleDef: TestModuleMetadata): InjectSetupWr
|
|
|
522
572
|
|
|
523
573
|
export declare function withModule(moduleDef: TestModuleMetadata, fn: Function): () => any;
|
|
524
574
|
|
|
525
|
-
/**
|
|
526
|
-
* @description
|
|
527
|
-
* Configures and initializes environment for unit testing and provides methods for
|
|
528
|
-
* creating components and services in unit tests.
|
|
529
|
-
*
|
|
530
|
-
* `TestBed` is the primary api for writing unit tests for Angular applications and libraries.
|
|
531
|
-
*
|
|
532
|
-
* Note: Use `TestBed` in tests. It will be set to either `TestBedViewEngine` or `TestBedRender3`
|
|
533
|
-
* according to the compiler used.
|
|
534
|
-
*/
|
|
535
|
-
export declare class ɵangular_packages_core_testing_testing_a implements TestBed {
|
|
536
|
-
/**
|
|
537
|
-
* Teardown options that have been configured at the environment level.
|
|
538
|
-
* Used as a fallback if no instance-level options have been provided.
|
|
539
|
-
*/
|
|
540
|
-
private static _environmentTeardownOptions;
|
|
541
|
-
/**
|
|
542
|
-
* Teardown options that have been configured at the `TestBed` instance level.
|
|
543
|
-
* These options take precedence over the environemnt-level ones.
|
|
544
|
-
*/
|
|
545
|
-
private _instanceTeardownOptions;
|
|
546
|
-
/**
|
|
547
|
-
* Initialize the environment for testing with a compiler factory, a PlatformRef, and an
|
|
548
|
-
* angular module. These are common to every test in the suite.
|
|
549
|
-
*
|
|
550
|
-
* This may only be called once, to set up the common providers for the current test
|
|
551
|
-
* suite on the current platform. If you absolutely need to change the providers,
|
|
552
|
-
* first use `resetTestEnvironment`.
|
|
553
|
-
*
|
|
554
|
-
* Test modules and platforms for individual platforms are available from
|
|
555
|
-
* '@angular/<platform_name>/testing'.
|
|
556
|
-
*/
|
|
557
|
-
static initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, summariesOrOptions?: TestEnvironmentOptions | (() => any[])): ɵangular_packages_core_testing_testing_a;
|
|
558
|
-
/**
|
|
559
|
-
* Reset the providers for the test injector.
|
|
560
|
-
*/
|
|
561
|
-
static resetTestEnvironment(): void;
|
|
562
|
-
static resetTestingModule(): TestBedStatic;
|
|
563
|
-
/**
|
|
564
|
-
* Allows overriding default compiler providers and settings
|
|
565
|
-
* which are defined in test_injector.js
|
|
566
|
-
*/
|
|
567
|
-
static configureCompiler(config: {
|
|
568
|
-
providers?: any[];
|
|
569
|
-
useJit?: boolean;
|
|
570
|
-
}): TestBedStatic;
|
|
571
|
-
/**
|
|
572
|
-
* Allows overriding default providers, directives, pipes, modules of the test injector,
|
|
573
|
-
* which are defined in test_injector.js
|
|
574
|
-
*/
|
|
575
|
-
static configureTestingModule(moduleDef: TestModuleMetadata): TestBedStatic;
|
|
576
|
-
/**
|
|
577
|
-
* Compile components with a `templateUrl` for the test's NgModule.
|
|
578
|
-
* It is necessary to call this function
|
|
579
|
-
* as fetching urls is asynchronous.
|
|
580
|
-
*/
|
|
581
|
-
static compileComponents(): Promise<any>;
|
|
582
|
-
static overrideModule(ngModule: Type<any>, override: MetadataOverride<NgModule>): TestBedStatic;
|
|
583
|
-
static overrideComponent(component: Type<any>, override: MetadataOverride<Component>): TestBedStatic;
|
|
584
|
-
static overrideDirective(directive: Type<any>, override: MetadataOverride<Directive>): TestBedStatic;
|
|
585
|
-
static overridePipe(pipe: Type<any>, override: MetadataOverride<Pipe>): TestBedStatic;
|
|
586
|
-
static overrideTemplate(component: Type<any>, template: string): TestBedStatic;
|
|
587
|
-
/**
|
|
588
|
-
* Overrides the template of the given component, compiling the template
|
|
589
|
-
* in the context of the TestingModule.
|
|
590
|
-
*
|
|
591
|
-
* Note: This works for JIT and AOTed components as well.
|
|
592
|
-
*/
|
|
593
|
-
static overrideTemplateUsingTestingModule(component: Type<any>, template: string): TestBedStatic;
|
|
594
|
-
/**
|
|
595
|
-
* Overwrites all providers for the given token with the given provider definition.
|
|
596
|
-
*
|
|
597
|
-
* Note: This works for JIT and AOTed components as well.
|
|
598
|
-
*/
|
|
599
|
-
static overrideProvider(token: any, provider: {
|
|
600
|
-
useFactory: Function;
|
|
601
|
-
deps: any[];
|
|
602
|
-
}): TestBedStatic;
|
|
603
|
-
static overrideProvider(token: any, provider: {
|
|
604
|
-
useValue: any;
|
|
605
|
-
}): TestBedStatic;
|
|
606
|
-
static inject<T>(token: ProviderToken<T>, notFoundValue?: T, flags?: InjectFlags): T;
|
|
607
|
-
static inject<T>(token: ProviderToken<T>, notFoundValue: null, flags?: InjectFlags): T | null;
|
|
608
|
-
/** @deprecated from v9.0.0 use TestBed.inject */
|
|
609
|
-
static get<T>(token: ProviderToken<T>, notFoundValue?: T, flags?: InjectFlags): any;
|
|
610
|
-
/**
|
|
611
|
-
* @deprecated from v9.0.0 use TestBed.inject
|
|
612
|
-
* @suppress {duplicate}
|
|
613
|
-
*/
|
|
614
|
-
static get(token: any, notFoundValue?: any): any;
|
|
615
|
-
static createComponent<T>(component: Type<T>): ComponentFixture<T>;
|
|
616
|
-
static shouldTearDownTestingModule(): boolean;
|
|
617
|
-
static tearDownTestingModule(): void;
|
|
618
|
-
private _instantiated;
|
|
619
|
-
private _compiler;
|
|
620
|
-
private _moduleRef;
|
|
621
|
-
private _moduleFactory;
|
|
622
|
-
private _pendingModuleFactory;
|
|
623
|
-
private _compilerOptions;
|
|
624
|
-
private _moduleOverrides;
|
|
625
|
-
private _componentOverrides;
|
|
626
|
-
private _directiveOverrides;
|
|
627
|
-
private _pipeOverrides;
|
|
628
|
-
private _providers;
|
|
629
|
-
private _declarations;
|
|
630
|
-
private _imports;
|
|
631
|
-
private _schemas;
|
|
632
|
-
private _activeFixtures;
|
|
633
|
-
private _testEnvAotSummaries;
|
|
634
|
-
private _aotSummaries;
|
|
635
|
-
private _templateOverrides;
|
|
636
|
-
private _isRoot;
|
|
637
|
-
private _rootProviderOverrides;
|
|
638
|
-
platform: PlatformRef;
|
|
639
|
-
ngModule: Type<any> | Type<any>[];
|
|
640
|
-
/**
|
|
641
|
-
* Initialize the environment for testing with a compiler factory, a PlatformRef, and an
|
|
642
|
-
* angular module. These are common to every test in the suite.
|
|
643
|
-
*
|
|
644
|
-
* This may only be called once, to set up the common providers for the current test
|
|
645
|
-
* suite on the current platform. If you absolutely need to change the providers,
|
|
646
|
-
* first use `resetTestEnvironment`.
|
|
647
|
-
*
|
|
648
|
-
* Test modules and platforms for individual platforms are available from
|
|
649
|
-
* '@angular/<platform_name>/testing'.
|
|
650
|
-
*/
|
|
651
|
-
initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, summariesOrOptions?: TestEnvironmentOptions | (() => any[])): void;
|
|
652
|
-
/**
|
|
653
|
-
* Reset the providers for the test injector.
|
|
654
|
-
*/
|
|
655
|
-
resetTestEnvironment(): void;
|
|
656
|
-
resetTestingModule(): void;
|
|
657
|
-
configureCompiler(config: {
|
|
658
|
-
providers?: any[];
|
|
659
|
-
useJit?: boolean;
|
|
660
|
-
}): void;
|
|
661
|
-
configureTestingModule(moduleDef: TestModuleMetadata): void;
|
|
662
|
-
compileComponents(): Promise<any>;
|
|
663
|
-
private _initIfNeeded;
|
|
664
|
-
private _createCompilerAndModule;
|
|
665
|
-
private _assertNotInstantiated;
|
|
666
|
-
inject<T>(token: ProviderToken<T>, notFoundValue?: T, flags?: InjectFlags): T;
|
|
667
|
-
inject<T>(token: ProviderToken<T>, notFoundValue: null, flags?: InjectFlags): T | null;
|
|
668
|
-
/** @deprecated from v9.0.0 use TestBed.inject */
|
|
669
|
-
get<T>(token: ProviderToken<T>, notFoundValue?: T, flags?: InjectFlags): any;
|
|
670
|
-
/** @deprecated from v9.0.0 use TestBed.inject */
|
|
671
|
-
get(token: any, notFoundValue?: any): any;
|
|
672
|
-
execute(tokens: any[], fn: Function, context?: any): any;
|
|
673
|
-
overrideModule(ngModule: Type<any>, override: MetadataOverride<NgModule>): void;
|
|
674
|
-
overrideComponent(component: Type<any>, override: MetadataOverride<Component>): void;
|
|
675
|
-
overrideDirective(directive: Type<any>, override: MetadataOverride<Directive>): void;
|
|
676
|
-
overridePipe(pipe: Type<any>, override: MetadataOverride<Pipe>): void;
|
|
677
|
-
/**
|
|
678
|
-
* Overwrites all providers for the given token with the given provider definition.
|
|
679
|
-
*/
|
|
680
|
-
overrideProvider(token: any, provider: {
|
|
681
|
-
useFactory: Function;
|
|
682
|
-
deps: any[];
|
|
683
|
-
}): void;
|
|
684
|
-
overrideProvider(token: any, provider: {
|
|
685
|
-
useValue: any;
|
|
686
|
-
}): void;
|
|
687
|
-
private overrideProviderImpl;
|
|
688
|
-
overrideTemplateUsingTestingModule(component: Type<any>, template: string): void;
|
|
689
|
-
createComponent<T>(component: Type<T>): ComponentFixture<T>;
|
|
690
|
-
private destroyActiveFixtures;
|
|
691
|
-
private shouldRethrowTeardownErrors;
|
|
692
|
-
shouldTearDownTestingModule(): boolean;
|
|
693
|
-
tearDownTestingModule(): void;
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
/**
|
|
697
|
-
* @description
|
|
698
|
-
* Configures and initializes environment for unit testing and provides methods for
|
|
699
|
-
* creating components and services in unit tests.
|
|
700
|
-
*
|
|
701
|
-
* TestBed is the primary api for writing unit tests for Angular applications and libraries.
|
|
702
|
-
*
|
|
703
|
-
* Note: Use `TestBed` in tests. It will be set to either `TestBedViewEngine` or `TestBedRender3`
|
|
704
|
-
* according to the compiler used.
|
|
705
|
-
*/
|
|
706
|
-
export declare class ɵangular_packages_core_testing_testing_b implements TestBed {
|
|
707
|
-
/**
|
|
708
|
-
* Teardown options that have been configured at the environment level.
|
|
709
|
-
* Used as a fallback if no instance-level options have been provided.
|
|
710
|
-
*/
|
|
711
|
-
private static _environmentTeardownOptions;
|
|
712
|
-
/**
|
|
713
|
-
* Teardown options that have been configured at the `TestBed` instance level.
|
|
714
|
-
* These options take precedence over the environemnt-level ones.
|
|
715
|
-
*/
|
|
716
|
-
private _instanceTeardownOptions;
|
|
717
|
-
/**
|
|
718
|
-
* Initialize the environment for testing with a compiler factory, a PlatformRef, and an
|
|
719
|
-
* angular module. These are common to every test in the suite.
|
|
720
|
-
*
|
|
721
|
-
* This may only be called once, to set up the common providers for the current test
|
|
722
|
-
* suite on the current platform. If you absolutely need to change the providers,
|
|
723
|
-
* first use `resetTestEnvironment`.
|
|
724
|
-
*
|
|
725
|
-
* Test modules and platforms for individual platforms are available from
|
|
726
|
-
* '@angular/<platform_name>/testing'.
|
|
727
|
-
*
|
|
728
|
-
* @publicApi
|
|
729
|
-
*/
|
|
730
|
-
static initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, summariesOrOptions?: TestEnvironmentOptions | (() => any[])): TestBed;
|
|
731
|
-
/**
|
|
732
|
-
* Reset the providers for the test injector.
|
|
733
|
-
*
|
|
734
|
-
* @publicApi
|
|
735
|
-
*/
|
|
736
|
-
static resetTestEnvironment(): void;
|
|
737
|
-
static configureCompiler(config: {
|
|
738
|
-
providers?: any[];
|
|
739
|
-
useJit?: boolean;
|
|
740
|
-
}): TestBedStatic;
|
|
741
|
-
/**
|
|
742
|
-
* Allows overriding default providers, directives, pipes, modules of the test injector,
|
|
743
|
-
* which are defined in test_injector.js
|
|
744
|
-
*/
|
|
745
|
-
static configureTestingModule(moduleDef: TestModuleMetadata): TestBedStatic;
|
|
746
|
-
/**
|
|
747
|
-
* Compile components with a `templateUrl` for the test's NgModule.
|
|
748
|
-
* It is necessary to call this function
|
|
749
|
-
* as fetching urls is asynchronous.
|
|
750
|
-
*/
|
|
751
|
-
static compileComponents(): Promise<any>;
|
|
752
|
-
static overrideModule(ngModule: Type<any>, override: MetadataOverride<NgModule>): TestBedStatic;
|
|
753
|
-
static overrideComponent(component: Type<any>, override: MetadataOverride<Component>): TestBedStatic;
|
|
754
|
-
static overrideDirective(directive: Type<any>, override: MetadataOverride<Directive>): TestBedStatic;
|
|
755
|
-
static overridePipe(pipe: Type<any>, override: MetadataOverride<Pipe>): TestBedStatic;
|
|
756
|
-
static overrideTemplate(component: Type<any>, template: string): TestBedStatic;
|
|
757
|
-
/**
|
|
758
|
-
* Overrides the template of the given component, compiling the template
|
|
759
|
-
* in the context of the TestingModule.
|
|
760
|
-
*
|
|
761
|
-
* Note: This works for JIT and AOTed components as well.
|
|
762
|
-
*/
|
|
763
|
-
static overrideTemplateUsingTestingModule(component: Type<any>, template: string): TestBedStatic;
|
|
764
|
-
static overrideProvider(token: any, provider: {
|
|
765
|
-
useFactory: Function;
|
|
766
|
-
deps: any[];
|
|
767
|
-
}): TestBedStatic;
|
|
768
|
-
static overrideProvider(token: any, provider: {
|
|
769
|
-
useValue: any;
|
|
770
|
-
}): TestBedStatic;
|
|
771
|
-
static inject<T>(token: ProviderToken<T>, notFoundValue?: T, flags?: InjectFlags): T;
|
|
772
|
-
static inject<T>(token: ProviderToken<T>, notFoundValue: null, flags?: InjectFlags): T | null;
|
|
773
|
-
/** @deprecated from v9.0.0 use TestBed.inject */
|
|
774
|
-
static get<T>(token: ProviderToken<T>, notFoundValue?: T, flags?: InjectFlags): any;
|
|
775
|
-
/** @deprecated from v9.0.0 use TestBed.inject */
|
|
776
|
-
static get(token: any, notFoundValue?: any): any;
|
|
777
|
-
static createComponent<T>(component: Type<T>): ComponentFixture<T>;
|
|
778
|
-
static resetTestingModule(): TestBedStatic;
|
|
779
|
-
static shouldTearDownTestingModule(): boolean;
|
|
780
|
-
static tearDownTestingModule(): void;
|
|
781
|
-
platform: PlatformRef;
|
|
782
|
-
ngModule: Type<any> | Type<any>[];
|
|
783
|
-
private _compiler;
|
|
784
|
-
private _testModuleRef;
|
|
785
|
-
private _activeFixtures;
|
|
786
|
-
private _globalCompilationChecked;
|
|
787
|
-
/**
|
|
788
|
-
* Initialize the environment for testing with a compiler factory, a PlatformRef, and an
|
|
789
|
-
* angular module. These are common to every test in the suite.
|
|
790
|
-
*
|
|
791
|
-
* This may only be called once, to set up the common providers for the current test
|
|
792
|
-
* suite on the current platform. If you absolutely need to change the providers,
|
|
793
|
-
* first use `resetTestEnvironment`.
|
|
794
|
-
*
|
|
795
|
-
* Test modules and platforms for individual platforms are available from
|
|
796
|
-
* '@angular/<platform_name>/testing'.
|
|
797
|
-
*
|
|
798
|
-
* @publicApi
|
|
799
|
-
*/
|
|
800
|
-
initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, summariesOrOptions?: {
|
|
801
|
-
teardown?: ModuleTeardownOptions;
|
|
802
|
-
} | (() => any[])): void;
|
|
803
|
-
/**
|
|
804
|
-
* Reset the providers for the test injector.
|
|
805
|
-
*
|
|
806
|
-
* @publicApi
|
|
807
|
-
*/
|
|
808
|
-
resetTestEnvironment(): void;
|
|
809
|
-
resetTestingModule(): void;
|
|
810
|
-
configureCompiler(config: {
|
|
811
|
-
providers?: any[];
|
|
812
|
-
useJit?: boolean;
|
|
813
|
-
}): void;
|
|
814
|
-
configureTestingModule(moduleDef: TestModuleMetadata): void;
|
|
815
|
-
compileComponents(): Promise<any>;
|
|
816
|
-
inject<T>(token: ProviderToken<T>, notFoundValue?: T, flags?: InjectFlags): T;
|
|
817
|
-
inject<T>(token: ProviderToken<T>, notFoundValue: null, flags?: InjectFlags): T | null;
|
|
818
|
-
/** @deprecated from v9.0.0 use TestBed.inject */
|
|
819
|
-
get<T>(token: ProviderToken<T>, notFoundValue?: T, flags?: InjectFlags): any;
|
|
820
|
-
/** @deprecated from v9.0.0 use TestBed.inject */
|
|
821
|
-
get(token: any, notFoundValue?: any): any;
|
|
822
|
-
execute(tokens: any[], fn: Function, context?: any): any;
|
|
823
|
-
overrideModule(ngModule: Type<any>, override: MetadataOverride<NgModule>): void;
|
|
824
|
-
overrideComponent(component: Type<any>, override: MetadataOverride<Component>): void;
|
|
825
|
-
overrideTemplateUsingTestingModule(component: Type<any>, template: string): void;
|
|
826
|
-
overrideDirective(directive: Type<any>, override: MetadataOverride<Directive>): void;
|
|
827
|
-
overridePipe(pipe: Type<any>, override: MetadataOverride<Pipe>): void;
|
|
828
|
-
/**
|
|
829
|
-
* Overwrites all providers for the given token with the given provider definition.
|
|
830
|
-
*/
|
|
831
|
-
overrideProvider(token: any, provider: {
|
|
832
|
-
useFactory?: Function;
|
|
833
|
-
useValue?: any;
|
|
834
|
-
deps?: any[];
|
|
835
|
-
}): void;
|
|
836
|
-
createComponent<T>(type: Type<T>): ComponentFixture<T>;
|
|
837
|
-
private assertNotInstantiated;
|
|
838
|
-
/**
|
|
839
|
-
* Check whether the module scoping queue should be flushed, and flush it if needed.
|
|
840
|
-
*
|
|
841
|
-
* When the TestBed is reset, it clears the JIT module compilation queue, cancelling any
|
|
842
|
-
* in-progress module compilation. This creates a potential hazard - the very first time the
|
|
843
|
-
* TestBed is initialized (or if it's reset without being initialized), there may be pending
|
|
844
|
-
* compilations of modules declared in global scope. These compilations should be finished.
|
|
845
|
-
*
|
|
846
|
-
* To ensure that globally declared modules have their components scoped properly, this function
|
|
847
|
-
* is called whenever TestBed is initialized or reset. The _first_ time that this happens, prior
|
|
848
|
-
* to any other operations, the scoping queue is flushed.
|
|
849
|
-
*/
|
|
850
|
-
private checkGlobalCompilationFinished;
|
|
851
|
-
private destroyActiveFixtures;
|
|
852
|
-
private shouldRethrowTeardownErrors;
|
|
853
|
-
shouldTearDownTestingModule(): boolean;
|
|
854
|
-
tearDownTestingModule(): void;
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
export declare function ɵangular_packages_core_testing_testing_c(): ɵangular_packages_core_testing_testing_b;
|
|
858
|
-
|
|
859
575
|
export declare class ɵMetadataOverrider {
|
|
860
576
|
private _references;
|
|
861
577
|
/**
|
|
@@ -894,6 +610,8 @@ export declare class ɵTestingCompiler extends Compiler {
|
|
|
894
610
|
* This can be used for errors created by compileModule...
|
|
895
611
|
*/
|
|
896
612
|
getComponentFromError(error: Error): Type<any> | null;
|
|
613
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ɵTestingCompiler, never>;
|
|
614
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ɵTestingCompiler>;
|
|
897
615
|
}
|
|
898
616
|
|
|
899
617
|
/**
|