@angular/core 9.1.3 → 9.1.7
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 +251 -360
- package/bundles/core.umd.js.map +1 -1
- package/bundles/core.umd.min.js +109 -117
- package/bundles/core.umd.min.js.map +1 -1
- package/core.d.ts +37 -70
- package/core.metadata.json +1 -1
- package/esm2015/index.js +2 -2
- package/esm2015/public_api.js +2 -2
- package/esm2015/src/core.js +2 -2
- package/esm2015/src/core_render3_private_export.js +2 -2
- package/esm2015/src/i18n/localization.js +7 -16
- package/esm2015/src/render3/assert.js +1 -8
- package/esm2015/src/render3/component_ref.js +15 -13
- package/esm2015/src/render3/hooks.js +3 -3
- package/esm2015/src/render3/index.js +2 -2
- package/esm2015/src/render3/instructions/all.js +3 -4
- package/esm2015/src/render3/instructions/host_property.js +6 -4
- package/esm2015/src/render3/instructions/listener.js +7 -5
- package/esm2015/src/render3/instructions/lview_debug.js +7 -3
- package/esm2015/src/render3/instructions/shared.js +166 -76
- package/esm2015/src/render3/instructions/styling.js +3 -15
- package/esm2015/src/render3/instructions/template.js +100 -0
- package/esm2015/src/render3/interfaces/container.js +8 -11
- package/esm2015/src/render3/interfaces/view.js +22 -7
- package/esm2015/src/render3/jit/environment.js +1 -6
- package/esm2015/src/render3/node_manipulation.js +20 -16
- package/esm2015/src/render3/state.js +23 -2
- package/esm2015/src/render3/util/view_utils.js +26 -2
- package/esm2015/src/render3/view_ref.js +15 -5
- package/esm2015/src/version.js +1 -1
- package/esm5/src/core_render3_private_export.js +2 -2
- package/esm5/src/i18n/localization.js +5 -16
- package/esm5/src/render3/assert.js +1 -4
- package/esm5/src/render3/component_ref.js +13 -9
- package/esm5/src/render3/hooks.js +3 -3
- package/esm5/src/render3/index.js +2 -2
- package/esm5/src/render3/instructions/all.js +2 -3
- package/esm5/src/render3/instructions/host_property.js +5 -4
- package/esm5/src/render3/instructions/listener.js +5 -4
- package/esm5/src/render3/instructions/lview_debug.js +6 -3
- package/esm5/src/render3/instructions/shared.js +148 -67
- package/esm5/src/render3/instructions/styling.js +3 -13
- package/esm5/src/render3/instructions/template.js +73 -0
- package/esm5/src/render3/interfaces/container.js +5 -5
- package/esm5/src/render3/interfaces/view.js +4 -3
- package/esm5/src/render3/jit/environment.js +1 -6
- package/esm5/src/render3/node_manipulation.js +19 -15
- package/esm5/src/render3/state.js +20 -2
- package/esm5/src/render3/util/view_utils.js +21 -2
- package/esm5/src/render3/view_ref.js +15 -6
- package/esm5/src/version.js +1 -1
- package/fesm2015/core.js +309 -431
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +1 -1
- package/fesm5/core.js +252 -356
- package/fesm5/core.js.map +1 -1
- package/fesm5/testing.js +1 -1
- package/package.json +1 -1
- package/src/r3_symbols.d.ts +1 -1
- package/testing/testing.d.ts +1 -1
- package/testing.d.ts +1 -1
- package/esm2015/src/render3/instructions/container.js +0 -227
- package/esm2015/src/render3/instructions/embedded_view.js +0 -151
- package/esm5/src/render3/instructions/container.js +0 -173
- package/esm5/src/render3/instructions/embedded_view.js +0 -127
package/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v9.1.
|
|
2
|
+
* @license Angular v9.1.7
|
|
3
3
|
* (c) 2010-2020 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -28,9 +28,7 @@ export declare interface AbstractType<T> extends Function {
|
|
|
28
28
|
declare const ACTIVE_INDEX = 2;
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* Used to track:
|
|
32
|
-
* - Inline embedded views (see: `ɵɵembeddedViewStart`)
|
|
33
|
-
* - Transplanted `LView`s (see: `LView[DECLARATION_COMPONENT_VIEW])`
|
|
31
|
+
* Used to track Transplanted `LView`s (see: `LView[DECLARATION_COMPONENT_VIEW])`
|
|
34
32
|
*/
|
|
35
33
|
declare const enum ActiveIndexFlag {
|
|
36
34
|
/**
|
|
@@ -49,12 +47,7 @@ declare const enum ActiveIndexFlag {
|
|
|
49
47
|
/**
|
|
50
48
|
* Number of bits to shift inline embedded views counter to make space for other flags.
|
|
51
49
|
*/
|
|
52
|
-
SHIFT = 1
|
|
53
|
-
/**
|
|
54
|
-
* When incrementing the active index for inline embedded views, the amount to increment to leave
|
|
55
|
-
* space for other flags.
|
|
56
|
-
*/
|
|
57
|
-
INCREMENT = 2
|
|
50
|
+
SHIFT = 1
|
|
58
51
|
}
|
|
59
52
|
|
|
60
53
|
/**
|
|
@@ -3782,10 +3775,6 @@ declare interface LContainer extends Array<any> {
|
|
|
3782
3775
|
* it is set to null to identify this scenario, as indices are "absolute" in that case,
|
|
3783
3776
|
* i.e. provided directly by the user of the ViewContainerRef API.
|
|
3784
3777
|
*
|
|
3785
|
-
* This is used by `ɵɵembeddedViewStart` to track which `LView` is currently active.
|
|
3786
|
-
* Because `ɵɵembeddedViewStart` is not generated by the compiler this feature is essentially
|
|
3787
|
-
* unused.
|
|
3788
|
-
*
|
|
3789
3778
|
* The lowest bit signals that this `LContainer` has transplanted views which need to be change
|
|
3790
3779
|
* detected as part of the declaration CD. (See `LView[DECLARATION_COMPONENT_VIEW]`)
|
|
3791
3780
|
*/
|
|
@@ -3800,6 +3789,13 @@ declare interface LContainer extends Array<any> {
|
|
|
3800
3789
|
* view with the same parent, so we can remove listeners efficiently.
|
|
3801
3790
|
*/
|
|
3802
3791
|
[NEXT]: ɵangular_packages_core_core_bo | LContainer | null;
|
|
3792
|
+
/**
|
|
3793
|
+
* The number of direct transplanted views which need a refresh or have descendants themselves
|
|
3794
|
+
* that need a refresh but have not marked their ancestors as Dirty. This tells us that during
|
|
3795
|
+
* change detection we should still descend to find those children to refresh, even if the parents
|
|
3796
|
+
* are not `Dirty`/`CheckAlways`.
|
|
3797
|
+
*/
|
|
3798
|
+
[TRANSPLANTED_VIEWS_TO_REFRESH]: number;
|
|
3803
3799
|
/**
|
|
3804
3800
|
* A collection of views created based on the underlying `<ng-template>` element but inserted into
|
|
3805
3801
|
* a different `LContainer`. We need to track views created from a given declaration point since
|
|
@@ -4049,11 +4045,16 @@ declare const enum LViewFlags {
|
|
|
4049
4045
|
/** Whether or not this view is the root view */
|
|
4050
4046
|
IsRoot = 512,
|
|
4051
4047
|
/**
|
|
4052
|
-
*
|
|
4048
|
+
* Whether this moved LView was needs to be refreshed at the insertion location because the
|
|
4049
|
+
* declaration was dirty.
|
|
4053
4050
|
*/
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4051
|
+
RefreshTransplantedView = 1024,
|
|
4052
|
+
/**
|
|
4053
|
+
* Index of the current init phase on last 21 bits
|
|
4054
|
+
*/
|
|
4055
|
+
IndexWithinInitPhaseIncrementer = 2048,
|
|
4056
|
+
IndexWithinInitPhaseShift = 11,
|
|
4057
|
+
IndexWithinInitPhaseReset = 2047
|
|
4057
4058
|
}
|
|
4058
4059
|
|
|
4059
4060
|
/**
|
|
@@ -4112,7 +4113,7 @@ export declare interface ModuleWithProviders<T = any /** TODO(alxhub): remove de
|
|
|
4112
4113
|
providers?: Provider[];
|
|
4113
4114
|
}
|
|
4114
4115
|
|
|
4115
|
-
declare const MOVED_VIEWS =
|
|
4116
|
+
declare const MOVED_VIEWS = 9;
|
|
4116
4117
|
|
|
4117
4118
|
declare const NATIVE = 7;
|
|
4118
4119
|
|
|
@@ -5246,7 +5247,7 @@ declare interface PublicTestability {
|
|
|
5246
5247
|
findProviders(using: any, provider: string, exactMatch: boolean): any[];
|
|
5247
5248
|
}
|
|
5248
5249
|
|
|
5249
|
-
declare const QUERIES =
|
|
5250
|
+
declare const QUERIES = 19;
|
|
5250
5251
|
|
|
5251
5252
|
/**
|
|
5252
5253
|
* Type of the Query metadata.
|
|
@@ -7403,6 +7404,8 @@ export declare const TRANSLATIONS: InjectionToken<string>;
|
|
|
7403
7404
|
*/
|
|
7404
7405
|
export declare const TRANSLATIONS_FORMAT: InjectionToken<string>;
|
|
7405
7406
|
|
|
7407
|
+
declare const TRANSPLANTED_VIEWS_TO_REFRESH = 5;
|
|
7408
|
+
|
|
7406
7409
|
/**
|
|
7407
7410
|
* Value stored in the `TData` which is needed to re-concatenate the styling.
|
|
7408
7411
|
*
|
|
@@ -7772,6 +7775,11 @@ declare interface TView {
|
|
|
7772
7775
|
* Used for directive matching, attribute bindings, local definitions and more.
|
|
7773
7776
|
*/
|
|
7774
7777
|
consts: TConstants | null;
|
|
7778
|
+
/**
|
|
7779
|
+
* Indicates that there was an error before we managed to complete the first create pass of the
|
|
7780
|
+
* view. This means that the view is likely corrupted and we should try to recover it.
|
|
7781
|
+
*/
|
|
7782
|
+
incompleteFirstPass: boolean;
|
|
7775
7783
|
}
|
|
7776
7784
|
|
|
7777
7785
|
/** Static data for a view */
|
|
@@ -8928,6 +8936,13 @@ export declare interface ɵangular_packages_core_core_bo extends Array<any> {
|
|
|
8928
8936
|
* More flags for this view. See PreOrderHookFlags for more info.
|
|
8929
8937
|
*/
|
|
8930
8938
|
[PREORDER_HOOK_FLAGS]: PreOrderHookFlags;
|
|
8939
|
+
/**
|
|
8940
|
+
* The number of direct transplanted views which need a refresh or have descendants themselves
|
|
8941
|
+
* that need a refresh but have not marked their ancestors as Dirty. This tells us that during
|
|
8942
|
+
* change detection we should still descend to find those children to refresh, even if the parents
|
|
8943
|
+
* are not `Dirty`/`CheckAlways`.
|
|
8944
|
+
*/
|
|
8945
|
+
[TRANSPLANTED_VIEWS_TO_REFRESH]: number;
|
|
8931
8946
|
}
|
|
8932
8947
|
|
|
8933
8948
|
|
|
@@ -11440,7 +11455,7 @@ export declare type ɵɵComponentDefWithMeta<T, Selector extends String, ExportA
|
|
|
11440
11455
|
}, QueryFields extends string[], NgContentSelectors extends string[]> = ɵComponentDef<T>;
|
|
11441
11456
|
|
|
11442
11457
|
/**
|
|
11443
|
-
* Registers a synthetic host listener (e.g. `(@foo.start)`) on a component.
|
|
11458
|
+
* Registers a synthetic host listener (e.g. `(@foo.start)`) on a component or directive.
|
|
11444
11459
|
*
|
|
11445
11460
|
* This instruction is for compatibility purposes and is designed to ensure that a
|
|
11446
11461
|
* synthetic host listener (e.g. `@HostListener('@foo.start')`) properly gets rendered
|
|
@@ -11462,37 +11477,6 @@ export declare type ɵɵComponentDefWithMeta<T, Selector extends String, ExportA
|
|
|
11462
11477
|
*/
|
|
11463
11478
|
export declare function ɵɵcomponentHostSyntheticListener(eventName: string, listenerFn: (e?: any) => any, useCapture?: boolean, eventTargetResolver?: GlobalTargetResolver): typeof ɵɵcomponentHostSyntheticListener;
|
|
11464
11479
|
|
|
11465
|
-
/**
|
|
11466
|
-
* Creates an LContainer for inline views, e.g.
|
|
11467
|
-
*
|
|
11468
|
-
* % if (showing) {
|
|
11469
|
-
* <div></div>
|
|
11470
|
-
* % }
|
|
11471
|
-
*
|
|
11472
|
-
* @param index The index of the container in the data array
|
|
11473
|
-
*
|
|
11474
|
-
* @codeGenApi
|
|
11475
|
-
*/
|
|
11476
|
-
export declare function ɵɵcontainer(index: number): void;
|
|
11477
|
-
|
|
11478
|
-
/**
|
|
11479
|
-
* Marks the end of the LContainer.
|
|
11480
|
-
*
|
|
11481
|
-
* Marking the end of LContainer is the time when to child views get inserted or removed.
|
|
11482
|
-
*
|
|
11483
|
-
* @codeGenApi
|
|
11484
|
-
*/
|
|
11485
|
-
export declare function ɵɵcontainerRefreshEnd(): void;
|
|
11486
|
-
|
|
11487
|
-
/**
|
|
11488
|
-
* Sets a container up to receive views.
|
|
11489
|
-
*
|
|
11490
|
-
* @param index The index of the container in the data array
|
|
11491
|
-
*
|
|
11492
|
-
* @codeGenApi
|
|
11493
|
-
*/
|
|
11494
|
-
export declare function ɵɵcontainerRefreshStart(index: number): void;
|
|
11495
|
-
|
|
11496
11480
|
/**
|
|
11497
11481
|
* Registers a QueryList, associated with a content query, for later refresh (part of a view
|
|
11498
11482
|
* refresh).
|
|
@@ -12145,23 +12129,6 @@ export declare function ɵɵelementEnd(): void;
|
|
|
12145
12129
|
*/
|
|
12146
12130
|
export declare function ɵɵelementStart(index: number, name: string, attrsIndex?: number | null, localRefsIndex?: number): void;
|
|
12147
12131
|
|
|
12148
|
-
/**
|
|
12149
|
-
* Marks the end of an embedded view.
|
|
12150
|
-
*
|
|
12151
|
-
* @codeGenApi
|
|
12152
|
-
*/
|
|
12153
|
-
export declare function ɵɵembeddedViewEnd(): void;
|
|
12154
|
-
|
|
12155
|
-
/**
|
|
12156
|
-
* Marks the start of an embedded view.
|
|
12157
|
-
*
|
|
12158
|
-
* @param viewBlockId The ID of this view
|
|
12159
|
-
* @return boolean Whether or not this view is in creation mode
|
|
12160
|
-
*
|
|
12161
|
-
* @codeGenApi
|
|
12162
|
-
*/
|
|
12163
|
-
export declare function ɵɵembeddedViewStart(viewBlockId: number, decls: number, vars: number): ɵRenderFlags;
|
|
12164
|
-
|
|
12165
12132
|
/**
|
|
12166
12133
|
* Enables directive matching on elements.
|
|
12167
12134
|
*
|
|
@@ -14445,7 +14412,7 @@ export declare function ɵɵtextInterpolate8(prefix: string, v0: any, i0: string
|
|
|
14445
14412
|
export declare function ɵɵtextInterpolateV(values: any[]): typeof ɵɵtextInterpolateV;
|
|
14446
14413
|
|
|
14447
14414
|
/**
|
|
14448
|
-
* Updates a synthetic host binding (e.g. `[@foo]`) on a component.
|
|
14415
|
+
* Updates a synthetic host binding (e.g. `[@foo]`) on a component or directive.
|
|
14449
14416
|
*
|
|
14450
14417
|
* This instruction is for compatibility purposes and is designed to ensure that a
|
|
14451
14418
|
* synthetic host binding (e.g. `@HostBinding('@foo')`) properly gets rendered in
|