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