@angular/core 11.2.2 → 11.2.6
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 +84 -110
- package/bundles/core.umd.js.map +1 -1
- package/bundles/core.umd.min.js +125 -125
- package/bundles/core.umd.min.js.map +1 -1
- package/core.d.ts +35 -45
- package/core.metadata.json +1 -1
- package/esm2015/src/change_detection/pipe_transform.js +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 +3 -3
- package/esm2015/src/render3/definition_factory.js +1 -1
- package/esm2015/src/render3/di.js +12 -22
- package/esm2015/src/render3/empty.js +1 -4
- package/esm2015/src/render3/errors.js +1 -1
- package/esm2015/src/render3/features/inherit_definition_feature.js +3 -2
- package/esm2015/src/render3/features/ng_onchanges_feature.js +2 -2
- package/esm2015/src/render3/index.js +2 -2
- package/esm2015/src/render3/instructions/listener.js +2 -2
- package/esm2015/src/render3/instructions/lview_debug.js +1 -2
- package/esm2015/src/render3/interfaces/definition.js +1 -1
- package/esm2015/src/render3/jit/directive.js +3 -2
- 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 +85 -110
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +1 -1
- package/package.json +1 -1
- package/schematics/migrations/renderer-to-renderer2/helpers.js +1 -2
- 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.6
|
|
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
|
*/
|
|
@@ -5141,20 +5142,19 @@ declare type PipeDefListOrFactory = (() => PipeDefList) | PipeDefList;
|
|
|
5141
5142
|
*
|
|
5142
5143
|
* @usageNotes
|
|
5143
5144
|
*
|
|
5144
|
-
* In the following example, `
|
|
5145
|
+
* In the following example, `TruncatePipe` returns the shortened value with an added ellipses.
|
|
5145
5146
|
*
|
|
5146
|
-
*
|
|
5147
|
-
* import {Pipe, PipeTransform} from '@angular/core';
|
|
5147
|
+
* <code-example path="core/ts/pipes/simple_truncate.ts" header="simple_truncate.ts"></code-example>
|
|
5148
5148
|
*
|
|
5149
|
-
*
|
|
5150
|
-
* export class RepeatPipe implements PipeTransform {
|
|
5151
|
-
* transform(value: any, times: number) {
|
|
5152
|
-
* return value.repeat(times);
|
|
5153
|
-
* }
|
|
5154
|
-
* }
|
|
5155
|
-
* ```
|
|
5149
|
+
* Invoking `{{ 'It was the best of times' | truncate }}` in a template will produce `It was...`.
|
|
5156
5150
|
*
|
|
5157
|
-
*
|
|
5151
|
+
* In the following example, `TruncatePipe` takes parameters that sets the truncated length and the
|
|
5152
|
+
* string to append with.
|
|
5153
|
+
*
|
|
5154
|
+
* <code-example path="core/ts/pipes/truncate.ts" header="truncate.ts"></code-example>
|
|
5155
|
+
*
|
|
5156
|
+
* Invoking `{{ 'It was the best of times' | truncate:4:'....' }}` in a template will produce `It
|
|
5157
|
+
* was the best....`.
|
|
5158
5158
|
*
|
|
5159
5159
|
* @publicApi
|
|
5160
5160
|
*/
|
|
@@ -5167,7 +5167,7 @@ export declare interface PipeTransform {
|
|
|
5167
5167
|
* consumable for rendering.
|
|
5168
5168
|
*/
|
|
5169
5169
|
declare interface PipeType<T> extends Type<T> {
|
|
5170
|
-
ɵpipe:
|
|
5170
|
+
ɵpipe: unknown;
|
|
5171
5171
|
}
|
|
5172
5172
|
|
|
5173
5173
|
declare type PipeTypeList = (PipeType<any> | Type<any>)[];
|
|
@@ -6496,7 +6496,7 @@ declare const SANITIZER = 12;
|
|
|
6496
6496
|
export declare abstract class Sanitizer {
|
|
6497
6497
|
abstract sanitize(context: SecurityContext, value: {} | string | null): string | null;
|
|
6498
6498
|
/** @nocollapse */
|
|
6499
|
-
static ɵprov:
|
|
6499
|
+
static ɵprov: unknown;
|
|
6500
6500
|
}
|
|
6501
6501
|
|
|
6502
6502
|
/**
|
|
@@ -10027,7 +10027,7 @@ export declare function ɵcompileDirective(type: Type<any>, directive: Directive
|
|
|
10027
10027
|
export declare function ɵcompileNgModule(moduleType: Type<any>, ngModule?: NgModule): void;
|
|
10028
10028
|
|
|
10029
10029
|
/**
|
|
10030
|
-
* 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.
|
|
10031
10031
|
*
|
|
10032
10032
|
* It's possible to compile a module via this API which will allow duplicate declarations in its
|
|
10033
10033
|
* root.
|
|
@@ -10141,7 +10141,7 @@ export declare interface ɵComponentDef<T> extends ɵDirectiveDef<T> {
|
|
|
10141
10141
|
* Used to store the result of `noSideEffects` function so that it is not removed by closure
|
|
10142
10142
|
* compiler. The property should never be read.
|
|
10143
10143
|
*/
|
|
10144
|
-
readonly _?:
|
|
10144
|
+
readonly _?: unknown;
|
|
10145
10145
|
}
|
|
10146
10146
|
|
|
10147
10147
|
/**
|
|
@@ -10149,7 +10149,7 @@ export declare interface ɵComponentDef<T> extends ɵDirectiveDef<T> {
|
|
|
10149
10149
|
* consumable for rendering.
|
|
10150
10150
|
*/
|
|
10151
10151
|
export declare interface ɵComponentType<T> extends Type<T> {
|
|
10152
|
-
ɵcmp:
|
|
10152
|
+
ɵcmp: unknown;
|
|
10153
10153
|
}
|
|
10154
10154
|
|
|
10155
10155
|
|
|
@@ -10351,8 +10351,8 @@ export declare interface ɵDirectiveDef<T> {
|
|
|
10351
10351
|
* consumable for rendering.
|
|
10352
10352
|
*/
|
|
10353
10353
|
export declare interface ɵDirectiveType<T> extends Type<T> {
|
|
10354
|
-
ɵdir:
|
|
10355
|
-
ɵfac:
|
|
10354
|
+
ɵdir: unknown;
|
|
10355
|
+
ɵfac: unknown;
|
|
10356
10356
|
}
|
|
10357
10357
|
|
|
10358
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;
|
|
@@ -12286,7 +12286,7 @@ export declare function ɵɵdefineComponent<T>(componentDefinition: {
|
|
|
12286
12286
|
* The set of schemas that declare elements to be allowed in the component's template.
|
|
12287
12287
|
*/
|
|
12288
12288
|
schemas?: SchemaMetadata[] | null;
|
|
12289
|
-
}):
|
|
12289
|
+
}): unknown;
|
|
12290
12290
|
|
|
12291
12291
|
/**
|
|
12292
12292
|
* Create a directive definition object.
|
|
@@ -12452,7 +12452,7 @@ export declare function ɵɵdefineInjectable<T>(opts: {
|
|
|
12452
12452
|
token: unknown;
|
|
12453
12453
|
providedIn?: Type<any> | 'root' | 'platform' | 'any' | null;
|
|
12454
12454
|
factory: () => T;
|
|
12455
|
-
}):
|
|
12455
|
+
}): unknown;
|
|
12456
12456
|
|
|
12457
12457
|
/**
|
|
12458
12458
|
* Construct an `InjectorDef` which configures an injector.
|
|
@@ -12462,9 +12462,6 @@ export declare function ɵɵdefineInjectable<T>(opts: {
|
|
|
12462
12462
|
*
|
|
12463
12463
|
* Options:
|
|
12464
12464
|
*
|
|
12465
|
-
* * `factory`: an `InjectorType` is an instantiable type, so a zero argument `factory` function to
|
|
12466
|
-
* create the type must be provided. If that factory function needs to inject arguments, it can
|
|
12467
|
-
* use the `inject` function.
|
|
12468
12465
|
* * `providers`: an optional array of providers to add to the injector. Each provider must
|
|
12469
12466
|
* either have a factory or point to a type which has a `ɵprov` static property (the
|
|
12470
12467
|
* type must be an `InjectableType`).
|
|
@@ -12475,10 +12472,9 @@ export declare function ɵɵdefineInjectable<T>(opts: {
|
|
|
12475
12472
|
* @codeGenApi
|
|
12476
12473
|
*/
|
|
12477
12474
|
export declare function ɵɵdefineInjector(options: {
|
|
12478
|
-
factory: () => any;
|
|
12479
12475
|
providers?: any[];
|
|
12480
12476
|
imports?: any[];
|
|
12481
|
-
}):
|
|
12477
|
+
}): unknown;
|
|
12482
12478
|
|
|
12483
12479
|
/**
|
|
12484
12480
|
* @codeGenApi
|
|
@@ -12501,7 +12497,7 @@ export declare function ɵɵdefineNgModule<T>(def: {
|
|
|
12501
12497
|
schemas?: SchemaMetadata[] | null;
|
|
12502
12498
|
/** Unique ID for the module that is used with `getModuleFactory`. */
|
|
12503
12499
|
id?: string | null;
|
|
12504
|
-
}):
|
|
12500
|
+
}): unknown;
|
|
12505
12501
|
|
|
12506
12502
|
/**
|
|
12507
12503
|
* Create a pipe definition object.
|
|
@@ -12526,7 +12522,7 @@ export declare function ɵɵdefinePipe<T>(pipeDef: {
|
|
|
12526
12522
|
type: Type<T>;
|
|
12527
12523
|
/** Whether the pipe is pure. */
|
|
12528
12524
|
pure?: boolean;
|
|
12529
|
-
}):
|
|
12525
|
+
}): unknown;
|
|
12530
12526
|
|
|
12531
12527
|
/**
|
|
12532
12528
|
* @codeGenApi
|
|
@@ -12694,11 +12690,6 @@ export declare type ɵɵFactoryDef<T, CtorDependencies extends CtorDependency[]>
|
|
|
12694
12690
|
*/
|
|
12695
12691
|
export declare function ɵɵgetCurrentView(): OpaqueViewState;
|
|
12696
12692
|
|
|
12697
|
-
/**
|
|
12698
|
-
* @codeGenApi
|
|
12699
|
-
*/
|
|
12700
|
-
export declare function ɵɵgetFactoryOf<T>(type: Type<any>): FactoryFn<T> | null;
|
|
12701
|
-
|
|
12702
12693
|
/**
|
|
12703
12694
|
* @codeGenApi
|
|
12704
12695
|
*/
|
|
@@ -12925,7 +12916,6 @@ export declare function ɵɵinjectAttribute(attrNameToInject: string): string |
|
|
|
12925
12916
|
* @codeGenApi
|
|
12926
12917
|
*/
|
|
12927
12918
|
export declare interface ɵɵInjectorDef<T> {
|
|
12928
|
-
factory: () => T;
|
|
12929
12919
|
providers: (Type<any> | ValueProvider | ExistingProvider | FactoryProvider | ConstructorProvider | StaticClassProvider | ClassProvider | any[])[];
|
|
12930
12920
|
imports: (InjectorType<any> | InjectorTypeWithProviders<any>)[];
|
|
12931
12921
|
}
|
|
@@ -14005,7 +13995,7 @@ export declare function ɵɵsetNgModuleScope(type: any, scope: {
|
|
|
14005
13995
|
* module.
|
|
14006
13996
|
*/
|
|
14007
13997
|
exports?: Type<any>[] | (() => Type<any>[]);
|
|
14008
|
-
}):
|
|
13998
|
+
}): unknown;
|
|
14009
13999
|
|
|
14010
14000
|
/**
|
|
14011
14001
|
* Update style bindings using an object literal on an element.
|