@angular/core 11.2.4 → 11.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/core-testing.umd.js +1 -1
- package/bundles/core-testing.umd.min.js +1 -1
- package/bundles/core-testing.umd.min.js.map +1 -1
- package/bundles/core.umd.js +40 -62
- package/bundles/core.umd.js.map +1 -1
- package/bundles/core.umd.min.js +70 -70
- package/bundles/core.umd.min.js.map +1 -1
- package/core.d.ts +25 -34
- package/core.metadata.json +1 -1
- package/esm2015/src/compiler/compiler_facade_interface.js +1 -1
- package/esm2015/src/core_render3_private_export.js +2 -2
- package/esm2015/src/di/injection_token.js +1 -1
- package/esm2015/src/di/interface/defs.js +2 -9
- package/esm2015/src/di/jit/environment.js +2 -18
- package/esm2015/src/di/r3_injector.js +3 -8
- package/esm2015/src/metadata/ng_module.js +5 -6
- package/esm2015/src/render3/definition.js +1 -2
- package/esm2015/src/render3/definition_factory.js +1 -1
- package/esm2015/src/render3/di.js +12 -22
- package/esm2015/src/render3/errors.js +1 -1
- package/esm2015/src/render3/index.js +2 -2
- package/esm2015/src/render3/interfaces/definition.js +1 -1
- package/esm2015/src/render3/jit/environment.js +1 -2
- package/esm2015/src/render3/jit/module.js +22 -4
- package/esm2015/src/render3/util/discovery_utils.js +1 -1
- package/esm2015/src/version.js +1 -1
- package/fesm2015/core.js +41 -62
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +1 -1
- package/package.json +1 -1
- package/src/r3_symbols.d.ts +11 -15
- package/testing/testing.d.ts +1 -1
- package/testing.d.ts +1 -1
package/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v11.2.
|
|
2
|
+
* @license Angular v11.2.5
|
|
3
3
|
* (c) 2010-2021 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -2492,7 +2492,7 @@ declare type FactoryFn<T> = {
|
|
|
2492
2492
|
* Subclasses without an explicit constructor call through to the factory of their base
|
|
2493
2493
|
* definition, providing it with their own constructor to instantiate.
|
|
2494
2494
|
*/
|
|
2495
|
-
<U extends T>(t
|
|
2495
|
+
<U extends T>(t?: Type<U>): U;
|
|
2496
2496
|
/**
|
|
2497
2497
|
* If no constructor to instantiate is provided, an instance of type T itself is created.
|
|
2498
2498
|
*/
|
|
@@ -3276,7 +3276,7 @@ export declare interface InjectableType<T> extends Type<T> {
|
|
|
3276
3276
|
/**
|
|
3277
3277
|
* Opaque type whose structure is highly version dependent. Do not rely on any properties.
|
|
3278
3278
|
*/
|
|
3279
|
-
ɵprov:
|
|
3279
|
+
ɵprov: unknown;
|
|
3280
3280
|
}
|
|
3281
3281
|
|
|
3282
3282
|
|
|
@@ -3370,7 +3370,7 @@ export declare enum InjectFlags {
|
|
|
3370
3370
|
*/
|
|
3371
3371
|
export declare class InjectionToken<T> {
|
|
3372
3372
|
protected _desc: string;
|
|
3373
|
-
readonly ɵprov:
|
|
3373
|
+
readonly ɵprov: unknown;
|
|
3374
3374
|
constructor(_desc: string, options?: {
|
|
3375
3375
|
providedIn?: Type<any> | 'root' | 'platform' | 'any' | null;
|
|
3376
3376
|
factory: () => T;
|
|
@@ -3448,7 +3448,7 @@ export declare abstract class Injector {
|
|
|
3448
3448
|
name?: string;
|
|
3449
3449
|
}): Injector;
|
|
3450
3450
|
/** @nocollapse */
|
|
3451
|
-
static ɵprov:
|
|
3451
|
+
static ɵprov: unknown;
|
|
3452
3452
|
}
|
|
3453
3453
|
|
|
3454
3454
|
declare const INJECTOR_2 = 9;
|
|
@@ -3458,13 +3458,14 @@ declare const INJECTOR_2 = 9;
|
|
|
3458
3458
|
*
|
|
3459
3459
|
* `InjectorDefTypes` can be used to configure a `StaticInjector`.
|
|
3460
3460
|
*
|
|
3461
|
+
* This is an opaque type whose structure is highly version dependent. Do not rely on any
|
|
3462
|
+
* properties.
|
|
3463
|
+
*
|
|
3461
3464
|
* @publicApi
|
|
3462
3465
|
*/
|
|
3463
3466
|
export declare interface InjectorType<T> extends Type<T> {
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
*/
|
|
3467
|
-
ɵinj: never;
|
|
3467
|
+
ɵfac?: unknown;
|
|
3468
|
+
ɵinj: unknown;
|
|
3468
3469
|
}
|
|
3469
3470
|
|
|
3470
3471
|
/**
|
|
@@ -3681,7 +3682,7 @@ export declare interface IterableDifferFactory {
|
|
|
3681
3682
|
*/
|
|
3682
3683
|
export declare class IterableDiffers {
|
|
3683
3684
|
/** @nocollapse */
|
|
3684
|
-
static ɵprov:
|
|
3685
|
+
static ɵprov: unknown;
|
|
3685
3686
|
/**
|
|
3686
3687
|
* @deprecated v4.0.0 - Should be private
|
|
3687
3688
|
*/
|
|
@@ -3828,7 +3829,7 @@ export declare interface KeyValueDifferFactory {
|
|
|
3828
3829
|
*/
|
|
3829
3830
|
export declare class KeyValueDiffers {
|
|
3830
3831
|
/** @nocollapse */
|
|
3831
|
-
static ɵprov:
|
|
3832
|
+
static ɵprov: unknown;
|
|
3832
3833
|
/**
|
|
3833
3834
|
* @deprecated v4.0.0 - Should be private.
|
|
3834
3835
|
*/
|
|
@@ -5166,7 +5167,7 @@ export declare interface PipeTransform {
|
|
|
5166
5167
|
* consumable for rendering.
|
|
5167
5168
|
*/
|
|
5168
5169
|
declare interface PipeType<T> extends Type<T> {
|
|
5169
|
-
ɵpipe:
|
|
5170
|
+
ɵpipe: unknown;
|
|
5170
5171
|
}
|
|
5171
5172
|
|
|
5172
5173
|
declare type PipeTypeList = (PipeType<any> | Type<any>)[];
|
|
@@ -6495,7 +6496,7 @@ declare const SANITIZER = 12;
|
|
|
6495
6496
|
export declare abstract class Sanitizer {
|
|
6496
6497
|
abstract sanitize(context: SecurityContext, value: {} | string | null): string | null;
|
|
6497
6498
|
/** @nocollapse */
|
|
6498
|
-
static ɵprov:
|
|
6499
|
+
static ɵprov: unknown;
|
|
6499
6500
|
}
|
|
6500
6501
|
|
|
6501
6502
|
/**
|
|
@@ -10026,7 +10027,7 @@ export declare function ɵcompileDirective(type: Type<any>, directive: Directive
|
|
|
10026
10027
|
export declare function ɵcompileNgModule(moduleType: Type<any>, ngModule?: NgModule): void;
|
|
10027
10028
|
|
|
10028
10029
|
/**
|
|
10029
|
-
* Compiles and adds the `ɵmod` and `ɵinj` properties to the module class.
|
|
10030
|
+
* Compiles and adds the `ɵmod`, `ɵfac` and `ɵinj` properties to the module class.
|
|
10030
10031
|
*
|
|
10031
10032
|
* It's possible to compile a module via this API which will allow duplicate declarations in its
|
|
10032
10033
|
* root.
|
|
@@ -10140,7 +10141,7 @@ export declare interface ɵComponentDef<T> extends ɵDirectiveDef<T> {
|
|
|
10140
10141
|
* Used to store the result of `noSideEffects` function so that it is not removed by closure
|
|
10141
10142
|
* compiler. The property should never be read.
|
|
10142
10143
|
*/
|
|
10143
|
-
readonly _?:
|
|
10144
|
+
readonly _?: unknown;
|
|
10144
10145
|
}
|
|
10145
10146
|
|
|
10146
10147
|
/**
|
|
@@ -10148,7 +10149,7 @@ export declare interface ɵComponentDef<T> extends ɵDirectiveDef<T> {
|
|
|
10148
10149
|
* consumable for rendering.
|
|
10149
10150
|
*/
|
|
10150
10151
|
export declare interface ɵComponentType<T> extends Type<T> {
|
|
10151
|
-
ɵcmp:
|
|
10152
|
+
ɵcmp: unknown;
|
|
10152
10153
|
}
|
|
10153
10154
|
|
|
10154
10155
|
|
|
@@ -10350,8 +10351,8 @@ export declare interface ɵDirectiveDef<T> {
|
|
|
10350
10351
|
* consumable for rendering.
|
|
10351
10352
|
*/
|
|
10352
10353
|
export declare interface ɵDirectiveType<T> extends Type<T> {
|
|
10353
|
-
ɵdir:
|
|
10354
|
-
ɵfac:
|
|
10354
|
+
ɵdir: unknown;
|
|
10355
|
+
ɵfac: unknown;
|
|
10355
10356
|
}
|
|
10356
10357
|
|
|
10357
10358
|
export declare function ɵeld(checkIndex: number, flags: ɵNodeFlags, matchedQueriesDsl: null | [string | number, ɵQueryValueType][], ngContentIndex: null | number, childCount: number, namespaceAndName: string | null, fixedAttrs?: null | [string, string][], bindings?: null | [ɵBindingFlags, string, string | SecurityContext | null][], outputs?: null | ([string, string])[], handleEvent?: null | ElementHandleEventFn, componentView?: null | ViewDefinitionFactory, componentRendererType?: RendererType2 | null): NodeDef;
|
|
@@ -12285,7 +12286,7 @@ export declare function ɵɵdefineComponent<T>(componentDefinition: {
|
|
|
12285
12286
|
* The set of schemas that declare elements to be allowed in the component's template.
|
|
12286
12287
|
*/
|
|
12287
12288
|
schemas?: SchemaMetadata[] | null;
|
|
12288
|
-
}):
|
|
12289
|
+
}): unknown;
|
|
12289
12290
|
|
|
12290
12291
|
/**
|
|
12291
12292
|
* Create a directive definition object.
|
|
@@ -12451,7 +12452,7 @@ export declare function ɵɵdefineInjectable<T>(opts: {
|
|
|
12451
12452
|
token: unknown;
|
|
12452
12453
|
providedIn?: Type<any> | 'root' | 'platform' | 'any' | null;
|
|
12453
12454
|
factory: () => T;
|
|
12454
|
-
}):
|
|
12455
|
+
}): unknown;
|
|
12455
12456
|
|
|
12456
12457
|
/**
|
|
12457
12458
|
* Construct an `InjectorDef` which configures an injector.
|
|
@@ -12461,9 +12462,6 @@ export declare function ɵɵdefineInjectable<T>(opts: {
|
|
|
12461
12462
|
*
|
|
12462
12463
|
* Options:
|
|
12463
12464
|
*
|
|
12464
|
-
* * `factory`: an `InjectorType` is an instantiable type, so a zero argument `factory` function to
|
|
12465
|
-
* create the type must be provided. If that factory function needs to inject arguments, it can
|
|
12466
|
-
* use the `inject` function.
|
|
12467
12465
|
* * `providers`: an optional array of providers to add to the injector. Each provider must
|
|
12468
12466
|
* either have a factory or point to a type which has a `ɵprov` static property (the
|
|
12469
12467
|
* type must be an `InjectableType`).
|
|
@@ -12474,10 +12472,9 @@ export declare function ɵɵdefineInjectable<T>(opts: {
|
|
|
12474
12472
|
* @codeGenApi
|
|
12475
12473
|
*/
|
|
12476
12474
|
export declare function ɵɵdefineInjector(options: {
|
|
12477
|
-
factory: () => any;
|
|
12478
12475
|
providers?: any[];
|
|
12479
12476
|
imports?: any[];
|
|
12480
|
-
}):
|
|
12477
|
+
}): unknown;
|
|
12481
12478
|
|
|
12482
12479
|
/**
|
|
12483
12480
|
* @codeGenApi
|
|
@@ -12500,7 +12497,7 @@ export declare function ɵɵdefineNgModule<T>(def: {
|
|
|
12500
12497
|
schemas?: SchemaMetadata[] | null;
|
|
12501
12498
|
/** Unique ID for the module that is used with `getModuleFactory`. */
|
|
12502
12499
|
id?: string | null;
|
|
12503
|
-
}):
|
|
12500
|
+
}): unknown;
|
|
12504
12501
|
|
|
12505
12502
|
/**
|
|
12506
12503
|
* Create a pipe definition object.
|
|
@@ -12525,7 +12522,7 @@ export declare function ɵɵdefinePipe<T>(pipeDef: {
|
|
|
12525
12522
|
type: Type<T>;
|
|
12526
12523
|
/** Whether the pipe is pure. */
|
|
12527
12524
|
pure?: boolean;
|
|
12528
|
-
}):
|
|
12525
|
+
}): unknown;
|
|
12529
12526
|
|
|
12530
12527
|
/**
|
|
12531
12528
|
* @codeGenApi
|
|
@@ -12693,11 +12690,6 @@ export declare type ɵɵFactoryDef<T, CtorDependencies extends CtorDependency[]>
|
|
|
12693
12690
|
*/
|
|
12694
12691
|
export declare function ɵɵgetCurrentView(): OpaqueViewState;
|
|
12695
12692
|
|
|
12696
|
-
/**
|
|
12697
|
-
* @codeGenApi
|
|
12698
|
-
*/
|
|
12699
|
-
export declare function ɵɵgetFactoryOf<T>(type: Type<any>): FactoryFn<T> | null;
|
|
12700
|
-
|
|
12701
12693
|
/**
|
|
12702
12694
|
* @codeGenApi
|
|
12703
12695
|
*/
|
|
@@ -12924,7 +12916,6 @@ export declare function ɵɵinjectAttribute(attrNameToInject: string): string |
|
|
|
12924
12916
|
* @codeGenApi
|
|
12925
12917
|
*/
|
|
12926
12918
|
export declare interface ɵɵInjectorDef<T> {
|
|
12927
|
-
factory: () => T;
|
|
12928
12919
|
providers: (Type<any> | ValueProvider | ExistingProvider | FactoryProvider | ConstructorProvider | StaticClassProvider | ClassProvider | any[])[];
|
|
12929
12920
|
imports: (InjectorType<any> | InjectorTypeWithProviders<any>)[];
|
|
12930
12921
|
}
|
|
@@ -14004,7 +13995,7 @@ export declare function ɵɵsetNgModuleScope(type: any, scope: {
|
|
|
14004
13995
|
* module.
|
|
14005
13996
|
*/
|
|
14006
13997
|
exports?: Type<any>[] | (() => Type<any>[]);
|
|
14007
|
-
}):
|
|
13998
|
+
}): unknown;
|
|
14008
13999
|
|
|
14009
14000
|
/**
|
|
14010
14001
|
* Update style bindings using an object literal on an element.
|