@angular/core 14.0.0-next.11 → 14.0.0-next.14
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 +121 -66
- package/esm2020/src/application_ref.mjs +118 -32
- package/esm2020/src/application_tokens.mjs +5 -2
- package/esm2020/src/change_detection/change_detection.mjs +2 -2
- package/esm2020/src/change_detection/differs/default_iterable_differ.mjs +2 -2
- package/esm2020/src/change_detection/differs/default_keyvalue_differ.mjs +2 -2
- package/esm2020/src/compiler/compiler_facade_interface.mjs +7 -1
- package/esm2020/src/console.mjs +4 -3
- package/esm2020/src/core.mjs +2 -2
- package/esm2020/src/core_private_export.mjs +3 -2
- package/esm2020/src/core_render3_private_export.mjs +2 -2
- package/esm2020/src/di/index.mjs +2 -1
- package/esm2020/src/di/injection_token.mjs +7 -1
- package/esm2020/src/di/interface/defs.mjs +1 -1
- package/esm2020/src/di/r3_injector.mjs +216 -125
- package/esm2020/src/di/scope.mjs +1 -1
- package/esm2020/src/errors.mjs +1 -1
- package/esm2020/src/linker/component_factory.mjs +1 -1
- package/esm2020/src/linker/ng_module_factory.mjs +1 -1
- package/esm2020/src/linker/view_container_ref.mjs +12 -9
- package/esm2020/src/platform_core_providers.mjs +3 -14
- package/esm2020/src/render3/bindings.mjs +2 -2
- package/esm2020/src/render3/component_ref.mjs +8 -4
- package/esm2020/src/render3/definition.mjs +14 -20
- package/esm2020/src/render3/errors.mjs +6 -3
- package/esm2020/src/render3/errors_di.mjs +1 -1
- package/esm2020/src/render3/features/inherit_definition_feature.mjs +3 -2
- package/esm2020/src/render3/features/standalone_feature.mjs +7 -0
- package/esm2020/src/render3/index.mjs +4 -3
- package/esm2020/src/render3/instructions/shared.mjs +33 -15
- package/esm2020/src/render3/interfaces/definition.mjs +1 -1
- package/esm2020/src/render3/interfaces/public_definitions.mjs +1 -1
- package/esm2020/src/render3/jit/directive.mjs +2 -3
- package/esm2020/src/render3/jit/environment.mjs +2 -1
- package/esm2020/src/render3/ng_module_ref.mjs +33 -4
- package/esm2020/src/testability/testability.mjs +4 -3
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/logger.mjs +3 -3
- package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
- package/esm2020/testing/src/r3_test_bed.mjs +5 -8
- package/esm2020/testing/src/test_bed.mjs +1 -1
- package/esm2020/testing/src/test_bed_common.mjs +1 -1
- package/fesm2015/core.mjs +487 -229
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +5 -8
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +485 -230
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +5 -8
- package/fesm2020/testing.mjs.map +1 -1
- package/package.json +1 -1
- package/schematics/migrations.json +2 -2
- package/testing/testing.d.ts +1 -42
- package/esm2020/src/change_detection/change_detection_util.mjs +0 -64
package/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.0.0-next.
|
|
2
|
+
* @license Angular v14.0.0-next.14
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -400,12 +400,17 @@ export declare class ApplicationRef {
|
|
|
400
400
|
private _zone;
|
|
401
401
|
private _injector;
|
|
402
402
|
private _exceptionHandler;
|
|
403
|
-
private _componentFactoryResolver;
|
|
404
403
|
private _initStatus;
|
|
405
404
|
private _views;
|
|
406
405
|
private _runningTick;
|
|
407
406
|
private _stable;
|
|
408
407
|
private _onMicrotaskEmptySubscription;
|
|
408
|
+
private _destroyed;
|
|
409
|
+
private _destroyListeners;
|
|
410
|
+
/**
|
|
411
|
+
* Indicates whether this instance was destroyed.
|
|
412
|
+
*/
|
|
413
|
+
get destroyed(): boolean;
|
|
409
414
|
/**
|
|
410
415
|
* Get a list of component types registered to this application.
|
|
411
416
|
* This list is populated even before the component is created.
|
|
@@ -522,10 +527,12 @@ export declare class ApplicationRef {
|
|
|
522
527
|
*/
|
|
523
528
|
detachView(viewRef: ViewRef): void;
|
|
524
529
|
private _loadComponent;
|
|
530
|
+
destroy(): void;
|
|
525
531
|
/**
|
|
526
532
|
* Returns the number of attached views.
|
|
527
533
|
*/
|
|
528
534
|
get viewCount(): number;
|
|
535
|
+
private warnIfDestroyed;
|
|
529
536
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApplicationRef, never>;
|
|
530
537
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApplicationRef>;
|
|
531
538
|
}
|
|
@@ -1226,7 +1233,7 @@ declare abstract class ComponentFactory<C> {
|
|
|
1226
1233
|
/**
|
|
1227
1234
|
* Creates a new component.
|
|
1228
1235
|
*/
|
|
1229
|
-
abstract create(injector: Injector, projectableNodes?: any[][], rootSelectorOrNode?: string | any,
|
|
1236
|
+
abstract create(injector: Injector, projectableNodes?: any[][], rootSelectorOrNode?: string | any, environmentInjector?: EnvironmentInjector | NgModuleRef<any>): ComponentRef<C>;
|
|
1230
1237
|
}
|
|
1231
1238
|
export { ComponentFactory }
|
|
1232
1239
|
export { ComponentFactory as ɵComponentFactory }
|
|
@@ -1596,6 +1603,13 @@ declare interface CreateComponentOptions {
|
|
|
1596
1603
|
scheduler?: (work: () => void) => void;
|
|
1597
1604
|
}
|
|
1598
1605
|
|
|
1606
|
+
/**
|
|
1607
|
+
* Create a new environment injector.
|
|
1608
|
+
*
|
|
1609
|
+
* @publicApi
|
|
1610
|
+
*/
|
|
1611
|
+
export declare function createEnvironmentInjector(providers: Provider[], parent?: EnvironmentInjector | null, debugName?: string | null): EnvironmentInjector;
|
|
1612
|
+
|
|
1599
1613
|
/**
|
|
1600
1614
|
* Returns a new NgModuleRef instance based on the NgModule class and parent injector provided.
|
|
1601
1615
|
* @param ngModule NgModule class.
|
|
@@ -1987,6 +2001,8 @@ export declare class DefaultIterableDiffer<V> implements IterableDiffer<V>, Iter
|
|
|
1987
2001
|
*/
|
|
1988
2002
|
export declare const defineInjectable: typeof ɵɵdefineInjectable;
|
|
1989
2003
|
|
|
2004
|
+
declare type DependencyTypeList = (ɵDirectiveType<any> | ɵComponentType<any> | PipeType<any> | Type<any>)[];
|
|
2005
|
+
|
|
1990
2006
|
/**
|
|
1991
2007
|
* Array of destroy hooks that should be executed for a view and their directive indices.
|
|
1992
2008
|
*
|
|
@@ -2314,10 +2330,6 @@ declare type DirectiveDefListOrFactory = (() => DirectiveDefList) | DirectiveDef
|
|
|
2314
2330
|
|
|
2315
2331
|
declare type DirectiveInstance = {};
|
|
2316
2332
|
|
|
2317
|
-
declare type DirectiveTypeList = (ɵDirectiveType<any> | ɵComponentType<any> | Type<any>)[];
|
|
2318
|
-
|
|
2319
|
-
declare type DirectiveTypesOrFactory = (() => DirectiveTypeList) | DirectiveTypeList;
|
|
2320
|
-
|
|
2321
2333
|
/**
|
|
2322
2334
|
* @description
|
|
2323
2335
|
* Hook for manual bootstrapping of the application instead of using `bootstrap` array in @NgModule
|
|
@@ -2510,6 +2522,25 @@ export declare abstract class EmbeddedViewRef<C> extends ViewRef {
|
|
|
2510
2522
|
*/
|
|
2511
2523
|
export declare function enableProdMode(): void;
|
|
2512
2524
|
|
|
2525
|
+
/**
|
|
2526
|
+
* An `Injector` that's part of the environment injector hierarchy, which exists outside of the
|
|
2527
|
+
* component tree.
|
|
2528
|
+
*/
|
|
2529
|
+
export declare abstract class EnvironmentInjector implements Injector {
|
|
2530
|
+
/**
|
|
2531
|
+
* Retrieves an instance from the injector based on the provided token.
|
|
2532
|
+
* @returns The instance from the injector if defined, otherwise the `notFoundValue`.
|
|
2533
|
+
* @throws When the `notFoundValue` is `undefined` or `Injector.THROW_IF_NOT_FOUND`.
|
|
2534
|
+
*/
|
|
2535
|
+
abstract get<T>(token: ProviderToken<T>, notFoundValue?: T, flags?: InjectFlags): T;
|
|
2536
|
+
/**
|
|
2537
|
+
* @deprecated from v4.0.0 use ProviderToken<T>
|
|
2538
|
+
* @suppress {duplicate}
|
|
2539
|
+
*/
|
|
2540
|
+
abstract get(token: any, notFoundValue?: any): any;
|
|
2541
|
+
abstract destroy(): void;
|
|
2542
|
+
}
|
|
2543
|
+
|
|
2513
2544
|
|
|
2514
2545
|
/**
|
|
2515
2546
|
* Provides a hook for centralized exception handling.
|
|
@@ -3694,6 +3725,16 @@ export declare abstract class Injector {
|
|
|
3694
3725
|
|
|
3695
3726
|
declare const INJECTOR_2 = 9;
|
|
3696
3727
|
|
|
3728
|
+
/**
|
|
3729
|
+
* A multi-provider token for initialization functions that will run upon construction of a
|
|
3730
|
+
* non-view injector.
|
|
3731
|
+
*
|
|
3732
|
+
* @publicApi
|
|
3733
|
+
*/
|
|
3734
|
+
export declare const INJECTOR_INITIALIZER: InjectionToken<() => void>;
|
|
3735
|
+
|
|
3736
|
+
declare type InjectorScope = 'root' | 'platform' | 'environment';
|
|
3737
|
+
|
|
3697
3738
|
/**
|
|
3698
3739
|
* A type which has an `InjectorDef` static field.
|
|
3699
3740
|
*
|
|
@@ -5027,7 +5068,7 @@ export declare abstract class NgModuleRef<T> {
|
|
|
5027
5068
|
/**
|
|
5028
5069
|
* The injector that contains all of the providers of the `NgModule`.
|
|
5029
5070
|
*/
|
|
5030
|
-
abstract get injector():
|
|
5071
|
+
abstract get injector(): EnvironmentInjector;
|
|
5031
5072
|
/**
|
|
5032
5073
|
* The resolver that can retrieve component factories in a context of this module.
|
|
5033
5074
|
*
|
|
@@ -5559,10 +5600,6 @@ declare interface PipeType<T> extends Type<T> {
|
|
|
5559
5600
|
ɵpipe: unknown;
|
|
5560
5601
|
}
|
|
5561
5602
|
|
|
5562
|
-
declare type PipeTypeList = (PipeType<any> | Type<any>)[];
|
|
5563
|
-
|
|
5564
|
-
declare type PipeTypesOrFactory = (() => PipeTypeList) | PipeTypeList;
|
|
5565
|
-
|
|
5566
5603
|
/**
|
|
5567
5604
|
* A token that indicates an opaque platform ID.
|
|
5568
5605
|
* @publicApi
|
|
@@ -5635,6 +5672,9 @@ export declare class PlatformRef {
|
|
|
5635
5672
|
* Destroys all modules and listeners registered with the platform.
|
|
5636
5673
|
*/
|
|
5637
5674
|
destroy(): void;
|
|
5675
|
+
/**
|
|
5676
|
+
* Indicates whether this instance was destroyed.
|
|
5677
|
+
*/
|
|
5638
5678
|
get destroyed(): boolean;
|
|
5639
5679
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlatformRef, never>;
|
|
5640
5680
|
static ɵprov: i0.ɵɵInjectableDeclaration<PlatformRef>;
|
|
@@ -5962,8 +6002,9 @@ declare interface R3DeclareComponentFacade extends R3DeclareDirectiveFacade {
|
|
|
5962
6002
|
template: string;
|
|
5963
6003
|
isInline?: boolean;
|
|
5964
6004
|
styles?: string[];
|
|
5965
|
-
|
|
5966
|
-
|
|
6005
|
+
dependencies?: R3DeclareTemplateDependencyFacade[];
|
|
6006
|
+
components?: R3DeclareDirectiveDependencyFacade[];
|
|
6007
|
+
directives?: R3DeclareDirectiveDependencyFacade[];
|
|
5967
6008
|
pipes?: {
|
|
5968
6009
|
[pipeName: string]: OpaqueValue | (() => OpaqueValue);
|
|
5969
6010
|
};
|
|
@@ -5984,6 +6025,15 @@ declare interface R3DeclareDependencyMetadataFacade {
|
|
|
5984
6025
|
skipSelf?: boolean;
|
|
5985
6026
|
}
|
|
5986
6027
|
|
|
6028
|
+
declare interface R3DeclareDirectiveDependencyFacade {
|
|
6029
|
+
kind?: 'directive' | 'component';
|
|
6030
|
+
selector: string;
|
|
6031
|
+
type: OpaqueValue | (() => OpaqueValue);
|
|
6032
|
+
inputs?: string[];
|
|
6033
|
+
outputs?: string[];
|
|
6034
|
+
exportAs?: string[];
|
|
6035
|
+
}
|
|
6036
|
+
|
|
5987
6037
|
declare interface R3DeclareDirectiveFacade {
|
|
5988
6038
|
selector?: string;
|
|
5989
6039
|
type: Type_2;
|
|
@@ -6037,6 +6087,11 @@ declare interface R3DeclareInjectorFacade {
|
|
|
6037
6087
|
providers?: OpaqueValue[];
|
|
6038
6088
|
}
|
|
6039
6089
|
|
|
6090
|
+
declare interface R3DeclareNgModuleDependencyFacade {
|
|
6091
|
+
kind: 'ngmodule';
|
|
6092
|
+
type: OpaqueValue | (() => OpaqueValue);
|
|
6093
|
+
}
|
|
6094
|
+
|
|
6040
6095
|
declare interface R3DeclareNgModuleFacade {
|
|
6041
6096
|
type: Type_2;
|
|
6042
6097
|
bootstrap?: OpaqueValue[] | (() => OpaqueValue[]);
|
|
@@ -6047,10 +6102,17 @@ declare interface R3DeclareNgModuleFacade {
|
|
|
6047
6102
|
id?: OpaqueValue;
|
|
6048
6103
|
}
|
|
6049
6104
|
|
|
6105
|
+
declare interface R3DeclarePipeDependencyFacade {
|
|
6106
|
+
kind?: 'pipe';
|
|
6107
|
+
name: string;
|
|
6108
|
+
type: OpaqueValue | (() => OpaqueValue);
|
|
6109
|
+
}
|
|
6110
|
+
|
|
6050
6111
|
declare interface R3DeclarePipeFacade {
|
|
6051
6112
|
type: Type_2;
|
|
6052
6113
|
name: string;
|
|
6053
6114
|
pure?: boolean;
|
|
6115
|
+
isStandalone?: boolean;
|
|
6054
6116
|
}
|
|
6055
6117
|
|
|
6056
6118
|
declare interface R3DeclareQueryMetadataFacade {
|
|
@@ -6063,42 +6125,32 @@ declare interface R3DeclareQueryMetadataFacade {
|
|
|
6063
6125
|
emitDistinctChangesOnly?: boolean;
|
|
6064
6126
|
}
|
|
6065
6127
|
|
|
6066
|
-
declare
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
inputs?: string[];
|
|
6070
|
-
outputs?: string[];
|
|
6071
|
-
exportAs?: string[];
|
|
6072
|
-
}
|
|
6128
|
+
declare type R3DeclareTemplateDependencyFacade = {
|
|
6129
|
+
kind: string;
|
|
6130
|
+
} & (R3DeclareDirectiveDependencyFacade | R3DeclarePipeDependencyFacade | R3DeclareNgModuleDependencyFacade);
|
|
6073
6131
|
|
|
6074
|
-
declare class R3Injector {
|
|
6132
|
+
declare class R3Injector extends EnvironmentInjector {
|
|
6075
6133
|
readonly parent: Injector;
|
|
6134
|
+
readonly source: string | null;
|
|
6135
|
+
readonly scopes: Set<InjectorScope>;
|
|
6076
6136
|
/**
|
|
6077
6137
|
* Map of tokens to records which contain the instances of those tokens.
|
|
6078
6138
|
* - `null` value implies that we don't have the record. Used by tree-shakable injectors
|
|
6079
6139
|
* to prevent further searches.
|
|
6080
6140
|
*/
|
|
6081
6141
|
private records;
|
|
6082
|
-
/**
|
|
6083
|
-
* The transitive set of `InjectorType`s which define this injector.
|
|
6084
|
-
*/
|
|
6085
|
-
private injectorDefTypes;
|
|
6086
6142
|
/**
|
|
6087
6143
|
* Set of values instantiated by this injector which contain `ngOnDestroy` lifecycle hooks.
|
|
6088
6144
|
*/
|
|
6089
|
-
private
|
|
6090
|
-
|
|
6091
|
-
* Flag indicating this injector provides the APP_ROOT_SCOPE token, and thus counts as the
|
|
6092
|
-
* root scope.
|
|
6093
|
-
*/
|
|
6094
|
-
private readonly scope;
|
|
6095
|
-
readonly source: string | null;
|
|
6145
|
+
private _ngOnDestroyHooks;
|
|
6146
|
+
private _onDestroyHooks;
|
|
6096
6147
|
/**
|
|
6097
6148
|
* Flag indicating that this injector was previously destroyed.
|
|
6098
6149
|
*/
|
|
6099
6150
|
get destroyed(): boolean;
|
|
6100
6151
|
private _destroyed;
|
|
6101
|
-
|
|
6152
|
+
private injectorDefTypes;
|
|
6153
|
+
constructor(providers: Provider[], parent: Injector, source: string | null, scopes: Set<InjectorScope>);
|
|
6102
6154
|
/**
|
|
6103
6155
|
* Destroy the injector and release references to every instance or provider associated with it.
|
|
6104
6156
|
*
|
|
@@ -6106,19 +6158,10 @@ declare class R3Injector {
|
|
|
6106
6158
|
* hook was found.
|
|
6107
6159
|
*/
|
|
6108
6160
|
destroy(): void;
|
|
6161
|
+
onDestroy(callback: () => void): void;
|
|
6109
6162
|
get<T>(token: ProviderToken<T>, notFoundValue?: any, flags?: InjectFlags): T;
|
|
6110
6163
|
toString(): string;
|
|
6111
6164
|
private assertNotDestroyed;
|
|
6112
|
-
/**
|
|
6113
|
-
* Add an `InjectorType` or `InjectorTypeWithProviders` and all of its transitive providers
|
|
6114
|
-
* to this injector.
|
|
6115
|
-
*
|
|
6116
|
-
* If an `InjectorTypeWithProviders` that declares providers besides the type is specified,
|
|
6117
|
-
* the function will return "true" to indicate that the providers of the type definition need
|
|
6118
|
-
* to be processed. This allows us to process providers of injector types after all imports of
|
|
6119
|
-
* an injector definition are processed. (following View Engine semantics: see FW-1349)
|
|
6120
|
-
*/
|
|
6121
|
-
private processInjectorType;
|
|
6122
6165
|
/**
|
|
6123
6166
|
* Process a `SingleProvider` and add it.
|
|
6124
6167
|
*/
|
|
@@ -6901,8 +6944,9 @@ declare const enum RuntimeErrorCode {
|
|
|
6901
6944
|
PLATFORM_NOT_FOUND = 401,
|
|
6902
6945
|
ERROR_HANDLER_NOT_FOUND = 402,
|
|
6903
6946
|
BOOTSTRAP_COMPONENTS_NOT_FOUND = 403,
|
|
6904
|
-
|
|
6947
|
+
PLATFORM_ALREADY_DESTROYED = 404,
|
|
6905
6948
|
ASYNC_INITIALIZERS_STILL_RUNNING = 405,
|
|
6949
|
+
APPLICATION_REF_ALREADY_DESTROYED = 406,
|
|
6906
6950
|
INVALID_I18N_STRUCTURE = 700,
|
|
6907
6951
|
INVALID_DIFFER_INPUT = 900,
|
|
6908
6952
|
NO_SUPPORTING_DIFFER_FACTORY = 901,
|
|
@@ -8709,6 +8753,8 @@ export declare interface TypeDecorator {
|
|
|
8709
8753
|
(target: Object, propertyKey?: string | symbol, parameterIndex?: number): void;
|
|
8710
8754
|
}
|
|
8711
8755
|
|
|
8756
|
+
declare type TypeOrFactory<T> = T | (() => T);
|
|
8757
|
+
|
|
8712
8758
|
/**
|
|
8713
8759
|
* Configures the `Injector` to return an instance of `Type` when `Type' is used as the token.
|
|
8714
8760
|
*
|
|
@@ -9040,6 +9086,10 @@ export declare abstract class ViewContainerRef {
|
|
|
9040
9086
|
* * ngModuleRef: an NgModuleRef of the component's NgModule, you should almost always provide
|
|
9041
9087
|
* this to ensure that all expected providers are available for the component
|
|
9042
9088
|
* instantiation.
|
|
9089
|
+
* * environmentInjector: an EnvironmentInjector which will provide the component's environment.
|
|
9090
|
+
* you should almost always provide this to ensure that all expected providers
|
|
9091
|
+
* are available for the component instantiation. This option is intended to
|
|
9092
|
+
* replace the `ngModuleRef` parameter.
|
|
9043
9093
|
* * projectableNodes: list of DOM nodes that should be projected through
|
|
9044
9094
|
* [`<ng-content>`](api/core/ng-content) of the new component instance.
|
|
9045
9095
|
*
|
|
@@ -9049,6 +9099,7 @@ export declare abstract class ViewContainerRef {
|
|
|
9049
9099
|
index?: number;
|
|
9050
9100
|
injector?: Injector;
|
|
9051
9101
|
ngModuleRef?: NgModuleRef<unknown>;
|
|
9102
|
+
environmentInjector?: EnvironmentInjector | NgModuleRef<unknown>;
|
|
9052
9103
|
projectableNodes?: Node[][];
|
|
9053
9104
|
}): ComponentRef<C>;
|
|
9054
9105
|
/**
|
|
@@ -9069,7 +9120,7 @@ export declare abstract class ViewContainerRef {
|
|
|
9069
9120
|
* Use different signature of the `createComponent` method, which allows passing
|
|
9070
9121
|
* Component class directly.
|
|
9071
9122
|
*/
|
|
9072
|
-
abstract createComponent<C>(componentFactory: ComponentFactory<C>, index?: number, injector?: Injector, projectableNodes?: any[][],
|
|
9123
|
+
abstract createComponent<C>(componentFactory: ComponentFactory<C>, index?: number, injector?: Injector, projectableNodes?: any[][], environmentInjector?: EnvironmentInjector | NgModuleRef<any>): ComponentRef<C>;
|
|
9073
9124
|
/**
|
|
9074
9125
|
* Inserts a view into this container.
|
|
9075
9126
|
* @param viewRef The view to insert.
|
|
@@ -9204,6 +9255,10 @@ export declare function ɵ_sanitizeHtml(defaultDoc: any, unsafeHtmlInput: string
|
|
|
9204
9255
|
|
|
9205
9256
|
export declare function ɵ_sanitizeUrl(url: string): string;
|
|
9206
9257
|
|
|
9258
|
+
/**
|
|
9259
|
+
* Internal token to indicate whether having multiple bootstrapped platform should be allowed (only
|
|
9260
|
+
* one bootstrapped platform is allowed by default). This token helps to support SSR scenarios.
|
|
9261
|
+
*/
|
|
9207
9262
|
export declare const ɵALLOW_MULTIPLE_PLATFORMS: InjectionToken<boolean>;
|
|
9208
9263
|
|
|
9209
9264
|
export declare function ɵallowSanitizationBypassAndThrow(value: any, type: ɵBypassType.Html): value is ɵSafeHtml;
|
|
@@ -9920,7 +9975,7 @@ export declare function ɵinjectChangeDetectorRef(flags: InjectFlags): ChangeDet
|
|
|
9920
9975
|
* as a root scoped injector when processing requests for unknown tokens which may indicate
|
|
9921
9976
|
* they are provided in the root scope.
|
|
9922
9977
|
*/
|
|
9923
|
-
export declare const ɵINJECTOR_SCOPE: InjectionToken<
|
|
9978
|
+
export declare const ɵINJECTOR_SCOPE: InjectionToken<InjectorScope | null>;
|
|
9924
9979
|
|
|
9925
9980
|
export declare function ɵisBoundToModule<C>(cf: ComponentFactory<C>): boolean;
|
|
9926
9981
|
|
|
@@ -10432,7 +10487,7 @@ export declare class ɵRender3ComponentFactory<T> extends ComponentFactory<T> {
|
|
|
10432
10487
|
* @param ngModule The NgModuleRef to which the factory is bound.
|
|
10433
10488
|
*/
|
|
10434
10489
|
constructor(componentDef: ɵComponentDef<any>, ngModule?: NgModuleRef<any> | undefined);
|
|
10435
|
-
create(injector: Injector, projectableNodes?: any[][] | undefined, rootSelectorOrNode?: any,
|
|
10490
|
+
create(injector: Injector, projectableNodes?: any[][] | undefined, rootSelectorOrNode?: any, environmentInjector?: NgModuleRef<any> | EnvironmentInjector | undefined): ComponentRef<T>;
|
|
10436
10491
|
}
|
|
10437
10492
|
|
|
10438
10493
|
/**
|
|
@@ -10457,11 +10512,11 @@ export declare class ɵRender3ComponentRef<T> extends ComponentRef<T> {
|
|
|
10457
10512
|
onDestroy(callback: () => void): void;
|
|
10458
10513
|
}
|
|
10459
10514
|
|
|
10460
|
-
export declare class ɵRender3NgModuleRef<T> extends NgModuleRef<T> implements InternalNgModuleRef<T
|
|
10515
|
+
export declare class ɵRender3NgModuleRef<T> extends NgModuleRef<T> implements InternalNgModuleRef<T>, EnvironmentInjector {
|
|
10461
10516
|
_parent: Injector | null;
|
|
10462
10517
|
_bootstrapComponents: Type<any>[];
|
|
10463
10518
|
_r3Injector: R3Injector;
|
|
10464
|
-
injector:
|
|
10519
|
+
injector: EnvironmentInjector;
|
|
10465
10520
|
instance: T;
|
|
10466
10521
|
destroyCbs: (() => void)[] | null;
|
|
10467
10522
|
readonly componentFactoryResolver: ComponentFactoryResolver_2;
|
|
@@ -11564,7 +11619,7 @@ export declare type ɵɵComponentDeclaration<T, Selector extends String, ExportA
|
|
|
11564
11619
|
[key: string]: string;
|
|
11565
11620
|
}, OutputMap extends {
|
|
11566
11621
|
[key: string]: string;
|
|
11567
|
-
}, QueryFields extends string[], NgContentSelectors extends string[]> = unknown;
|
|
11622
|
+
}, QueryFields extends string[], NgContentSelectors extends string[], IsStandalone extends boolean = false> = unknown;
|
|
11568
11623
|
|
|
11569
11624
|
/**
|
|
11570
11625
|
* Registers a QueryList, associated with a content query, for later refresh (part of a view
|
|
@@ -11823,19 +11878,12 @@ export declare function ɵɵdefineComponent<T>(componentDefinition: {
|
|
|
11823
11878
|
*/
|
|
11824
11879
|
changeDetection?: ChangeDetectionStrategy;
|
|
11825
11880
|
/**
|
|
11826
|
-
* Registry of directives and
|
|
11827
|
-
*
|
|
11828
|
-
* The property is either an array of `DirectiveDef`s or a function which returns the array of
|
|
11829
|
-
* `DirectiveDef`s. The function is necessary to be able to support forward declarations.
|
|
11830
|
-
*/
|
|
11831
|
-
directives?: DirectiveTypesOrFactory | null;
|
|
11832
|
-
/**
|
|
11833
|
-
* Registry of pipes that may be found in this component's view.
|
|
11881
|
+
* Registry of directives, components, and pipes that may be found in this component's view.
|
|
11834
11882
|
*
|
|
11835
|
-
*
|
|
11836
|
-
*
|
|
11883
|
+
* This property is either an array of types or a function that returns the array of types. This
|
|
11884
|
+
* function may be necessary to support forward declarations.
|
|
11837
11885
|
*/
|
|
11838
|
-
|
|
11886
|
+
dependencies?: TypeOrFactory<DependencyTypeList>;
|
|
11839
11887
|
/**
|
|
11840
11888
|
* The set of schemas that declare elements to be allowed in the component's template.
|
|
11841
11889
|
*/
|
|
@@ -12008,7 +12056,7 @@ export declare const ɵɵdefineDirective: <T>(directiveDefinition: {
|
|
|
12008
12056
|
*/
|
|
12009
12057
|
export declare function ɵɵdefineInjectable<T>(opts: {
|
|
12010
12058
|
token: unknown;
|
|
12011
|
-
providedIn?: Type<any> | 'root' | 'platform' | 'any' | null;
|
|
12059
|
+
providedIn?: Type<any> | 'root' | 'platform' | 'any' | 'env' | null;
|
|
12012
12060
|
factory: () => T;
|
|
12013
12061
|
}): unknown;
|
|
12014
12062
|
|
|
@@ -12094,7 +12142,7 @@ export declare type ɵɵDirectiveDeclaration<T, Selector extends string, ExportA
|
|
|
12094
12142
|
[key: string]: string;
|
|
12095
12143
|
}, OutputMap extends {
|
|
12096
12144
|
[key: string]: string;
|
|
12097
|
-
}, QueryFields extends string[]> = unknown;
|
|
12145
|
+
}, QueryFields extends string[], NgContentSelectors extends never = never, IsStandalone extends boolean = false> = unknown;
|
|
12098
12146
|
|
|
12099
12147
|
/**
|
|
12100
12148
|
* Returns the value associated to the given token from the injectors.
|
|
@@ -12456,7 +12504,7 @@ export declare interface ɵɵInjectableDeclaration<T> {
|
|
|
12456
12504
|
* - `null`, does not belong to any injector. Must be explicitly listed in the injector
|
|
12457
12505
|
* `providers`.
|
|
12458
12506
|
*/
|
|
12459
|
-
providedIn: InjectorType<any> | 'root' | 'platform' | 'any' | null;
|
|
12507
|
+
providedIn: InjectorType<any> | 'root' | 'platform' | 'any' | 'environment' | null;
|
|
12460
12508
|
/**
|
|
12461
12509
|
* The token to which this definition belongs.
|
|
12462
12510
|
*
|
|
@@ -12772,7 +12820,7 @@ export declare function ɵɵpipeBindV(index: number, slotOffset: number, values:
|
|
|
12772
12820
|
/**
|
|
12773
12821
|
* @publicApi
|
|
12774
12822
|
*/
|
|
12775
|
-
export declare type ɵɵPipeDeclaration<T, Name extends string> = unknown;
|
|
12823
|
+
export declare type ɵɵPipeDeclaration<T, Name extends string, IsStandalone extends boolean = false> = unknown;
|
|
12776
12824
|
|
|
12777
12825
|
/**
|
|
12778
12826
|
* Inserts previously re-distributed projected nodes. This instruction must be preceded by a call
|
|
@@ -13627,6 +13675,13 @@ export declare function ɵɵsetNgModuleScope(type: any, scope: {
|
|
|
13627
13675
|
exports?: Type<any>[] | (() => Type<any>[]);
|
|
13628
13676
|
}): unknown;
|
|
13629
13677
|
|
|
13678
|
+
/**
|
|
13679
|
+
* TODO: Implements standalone stuff!
|
|
13680
|
+
*
|
|
13681
|
+
* @codeGenApi
|
|
13682
|
+
*/
|
|
13683
|
+
export declare function ɵɵStandaloneFeature(definition: ɵDirectiveDef<unknown>): void;
|
|
13684
|
+
|
|
13630
13685
|
/**
|
|
13631
13686
|
* Update style bindings using an object literal on an element.
|
|
13632
13687
|
*
|