@angular/core 9.1.7 → 9.1.11
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 +99 -106
- package/bundles/core.umd.js.map +1 -1
- package/bundles/core.umd.min.js +104 -104
- package/bundles/core.umd.min.js.map +1 -1
- package/core.d.ts +47 -43
- package/core.metadata.json +1 -1
- package/esm2015/src/reflection/reflection_capabilities.js +2 -2
- package/esm2015/src/render3/component.js +2 -2
- package/esm2015/src/render3/component_ref.js +5 -3
- package/esm2015/src/render3/instructions/element.js +9 -6
- package/esm2015/src/render3/instructions/element_container.js +2 -2
- package/esm2015/src/render3/instructions/lview_debug.js +14 -11
- package/esm2015/src/render3/instructions/shared.js +32 -63
- package/esm2015/src/render3/instructions/styling.js +2 -2
- package/esm2015/src/render3/interfaces/container.js +9 -27
- package/esm2015/src/render3/interfaces/node.js +34 -4
- package/esm2015/src/render3/interfaces/view.js +1 -1
- package/esm2015/src/render3/node_assert.js +1 -1
- package/esm2015/src/render3/node_manipulation.js +3 -3
- package/esm2015/src/render3/styling/static_styling.js +25 -20
- package/esm2015/src/render3/util/view_traversal_utils.js +28 -2
- package/esm2015/src/render3/util/view_utils.js +2 -17
- package/esm2015/src/render3/view_engine_compatibility.js +3 -7
- package/esm2015/src/render3/view_ref.js +1 -10
- package/esm2015/src/util/assert.js +1 -1
- package/esm2015/src/version.js +1 -1
- package/esm5/src/reflection/reflection_capabilities.js +2 -2
- package/esm5/src/render3/component.js +2 -2
- package/esm5/src/render3/component_ref.js +5 -3
- package/esm5/src/render3/instructions/element.js +9 -6
- package/esm5/src/render3/instructions/element_container.js +2 -2
- package/esm5/src/render3/instructions/lview_debug.js +8 -12
- package/esm5/src/render3/instructions/shared.js +30 -55
- package/esm5/src/render3/instructions/styling.js +2 -2
- package/esm5/src/render3/interfaces/container.js +10 -2
- package/esm5/src/render3/interfaces/node.js +1 -1
- package/esm5/src/render3/interfaces/view.js +1 -1
- package/esm5/src/render3/node_assert.js +1 -1
- package/esm5/src/render3/node_manipulation.js +3 -3
- package/esm5/src/render3/styling/static_styling.js +23 -18
- package/esm5/src/render3/util/view_traversal_utils.js +20 -2
- package/esm5/src/render3/util/view_utils.js +2 -8
- package/esm5/src/render3/view_engine_compatibility.js +3 -6
- package/esm5/src/render3/view_ref.js +1 -5
- package/esm5/src/util/assert.js +1 -1
- package/esm5/src/version.js +1 -1
- package/fesm2015/core.js +149 -157
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +1 -1
- package/fesm5/core.js +99 -106
- 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/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v9.1.
|
|
2
|
+
* @license Angular v9.1.11
|
|
3
3
|
* (c) 2010-2020 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -20,36 +20,6 @@ export declare interface AbstractType<T> extends Function {
|
|
|
20
20
|
prototype: T;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
/**
|
|
24
|
-
* Below are constants for LContainer indices to help us look up LContainer members
|
|
25
|
-
* without having to remember the specific indices.
|
|
26
|
-
* Uglify will inline these when minifying so there shouldn't be a cost.
|
|
27
|
-
*/
|
|
28
|
-
declare const ACTIVE_INDEX = 2;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Used to track Transplanted `LView`s (see: `LView[DECLARATION_COMPONENT_VIEW])`
|
|
32
|
-
*/
|
|
33
|
-
declare const enum ActiveIndexFlag {
|
|
34
|
-
/**
|
|
35
|
-
* Flag which signifies that the `LContainer` does not have any inline embedded views.
|
|
36
|
-
*/
|
|
37
|
-
DYNAMIC_EMBEDDED_VIEWS_ONLY = -1,
|
|
38
|
-
/**
|
|
39
|
-
* Flag to signify that this `LContainer` may have transplanted views which need to be change
|
|
40
|
-
* detected. (see: `LView[DECLARATION_COMPONENT_VIEW])`.
|
|
41
|
-
*
|
|
42
|
-
* This flag once set is never unset for the `LContainer`. This means that when unset we can skip
|
|
43
|
-
* a lot of work in `refreshDynamicEmbeddedViews`. But when set we still need to verify
|
|
44
|
-
* that the `MOVED_VIEWS` are transplanted and on-push.
|
|
45
|
-
*/
|
|
46
|
-
HAS_TRANSPLANTED_VIEWS = 1,
|
|
47
|
-
/**
|
|
48
|
-
* Number of bits to shift inline embedded views counter to make space for other flags.
|
|
49
|
-
*/
|
|
50
|
-
SHIFT = 1
|
|
51
|
-
}
|
|
52
|
-
|
|
53
23
|
/**
|
|
54
24
|
* @description
|
|
55
25
|
* A lifecycle hook that is called after the default change detector has
|
|
@@ -2566,6 +2536,16 @@ declare type GlobalTargetResolver = (element: any) => {
|
|
|
2566
2536
|
target: EventTarget;
|
|
2567
2537
|
};
|
|
2568
2538
|
|
|
2539
|
+
/**
|
|
2540
|
+
* Flag to signify that this `LContainer` may have transplanted views which need to be change
|
|
2541
|
+
* detected. (see: `LView[DECLARATION_COMPONENT_VIEW])`.
|
|
2542
|
+
*
|
|
2543
|
+
* This flag, once set, is never unset for the `LContainer`. This means that when unset we can skip
|
|
2544
|
+
* a lot of work in `refreshEmbeddedViews`. But when set we still need to verify
|
|
2545
|
+
* that the `MOVED_VIEWS` are transplanted and on-push.
|
|
2546
|
+
*/
|
|
2547
|
+
declare const HAS_TRANSPLANTED_VIEWS = 2;
|
|
2548
|
+
|
|
2569
2549
|
/**
|
|
2570
2550
|
* Array of hooks that should be executed for a view and their directive indices.
|
|
2571
2551
|
*
|
|
@@ -3769,16 +3749,12 @@ declare interface LContainer extends Array<any> {
|
|
|
3769
3749
|
*/
|
|
3770
3750
|
[TYPE]: true;
|
|
3771
3751
|
/**
|
|
3772
|
-
*
|
|
3773
|
-
*
|
|
3774
|
-
* In the case the LContainer is created for a ViewContainerRef,
|
|
3775
|
-
* it is set to null to identify this scenario, as indices are "absolute" in that case,
|
|
3776
|
-
* i.e. provided directly by the user of the ViewContainerRef API.
|
|
3752
|
+
* Flag to signify that this `LContainer` may have transplanted views which need to be change
|
|
3753
|
+
* detected. (see: `LView[DECLARATION_COMPONENT_VIEW])`.
|
|
3777
3754
|
*
|
|
3778
|
-
*
|
|
3779
|
-
* detected as part of the declaration CD. (See `LView[DECLARATION_COMPONENT_VIEW]`)
|
|
3755
|
+
* This flag, once set, is never unset for the `LContainer`.
|
|
3780
3756
|
*/
|
|
3781
|
-
[
|
|
3757
|
+
[HAS_TRANSPLANTED_VIEWS]: boolean;
|
|
3782
3758
|
/**
|
|
3783
3759
|
* Access to the parent view is necessary so we can propagate back
|
|
3784
3760
|
* up from inside a container to parent[NEXT].
|
|
@@ -7038,13 +7014,27 @@ declare interface TNode {
|
|
|
7038
7014
|
*/
|
|
7039
7015
|
projection: (TNode | RNode[])[] | number | null;
|
|
7040
7016
|
/**
|
|
7041
|
-
* A collection of all style static values for an element.
|
|
7017
|
+
* A collection of all `style` static values for an element (including from host).
|
|
7042
7018
|
*
|
|
7043
7019
|
* This field will be populated if and when:
|
|
7044
7020
|
*
|
|
7045
|
-
* - There are one or more initial
|
|
7021
|
+
* - There are one or more initial `style`s on an element (e.g. `<div style="width:200px;">`)
|
|
7022
|
+
* - There are one or more initial `style`s on a directive/component host
|
|
7023
|
+
* (e.g. `@Directive({host: {style: "width:200px;" } }`)
|
|
7046
7024
|
*/
|
|
7047
7025
|
styles: string | null;
|
|
7026
|
+
/**
|
|
7027
|
+
* A collection of all `style` static values for an element excluding host sources.
|
|
7028
|
+
*
|
|
7029
|
+
* Populated when there are one or more initial `style`s on an element
|
|
7030
|
+
* (e.g. `<div style="width:200px;">`)
|
|
7031
|
+
* Must be stored separately from `tNode.styles` to facilitate setting directive
|
|
7032
|
+
* inputs that shadow the `style` property. If we used `tNode.styles` as is for shadowed inputs,
|
|
7033
|
+
* we would feed host styles back into directives as "inputs". If we used `tNode.attrs`, we would
|
|
7034
|
+
* have to concatenate the attributes on every template pass. Instead, we process once on first
|
|
7035
|
+
* create pass and store here.
|
|
7036
|
+
*/
|
|
7037
|
+
stylesWithoutHost: string | null;
|
|
7048
7038
|
/**
|
|
7049
7039
|
* A `KeyValueArray` version of residual `styles`.
|
|
7050
7040
|
*
|
|
@@ -7074,13 +7064,27 @@ declare interface TNode {
|
|
|
7074
7064
|
*/
|
|
7075
7065
|
residualStyles: KeyValueArray<any> | undefined | null;
|
|
7076
7066
|
/**
|
|
7077
|
-
* A collection of all class static values for an element.
|
|
7067
|
+
* A collection of all class static values for an element (including from host).
|
|
7078
7068
|
*
|
|
7079
7069
|
* This field will be populated if and when:
|
|
7080
7070
|
*
|
|
7081
7071
|
* - There are one or more initial classes on an element (e.g. `<div class="one two three">`)
|
|
7072
|
+
* - There are one or more initial classes on an directive/component host
|
|
7073
|
+
* (e.g. `@Directive({host: {class: "SOME_CLASS" } }`)
|
|
7082
7074
|
*/
|
|
7083
7075
|
classes: string | null;
|
|
7076
|
+
/**
|
|
7077
|
+
* A collection of all class static values for an element excluding host sources.
|
|
7078
|
+
*
|
|
7079
|
+
* Populated when there are one or more initial classes on an element
|
|
7080
|
+
* (e.g. `<div class="SOME_CLASS">`)
|
|
7081
|
+
* Must be stored separately from `tNode.classes` to facilitate setting directive
|
|
7082
|
+
* inputs that shadow the `class` property. If we used `tNode.classes` as is for shadowed inputs,
|
|
7083
|
+
* we would feed host classes back into directives as "inputs". If we used `tNode.attrs`, we would
|
|
7084
|
+
* have to concatenate the attributes on every template pass. Instead, we process once on first
|
|
7085
|
+
* create pass and store here.
|
|
7086
|
+
*/
|
|
7087
|
+
classesWithoutHost: string | null;
|
|
7084
7088
|
/**
|
|
7085
7089
|
* A `KeyValueArray` version of residual `classes`.
|
|
7086
7090
|
*
|
|
@@ -8917,7 +8921,7 @@ export declare interface ɵangular_packages_core_core_bo extends Array<any> {
|
|
|
8917
8921
|
*
|
|
8918
8922
|
* see also:
|
|
8919
8923
|
* - https://hackmd.io/@mhevery/rJUJsvv9H write up of the problem
|
|
8920
|
-
* - `LContainer[
|
|
8924
|
+
* - `LContainer[HAS_TRANSPLANTED_VIEWS]` which marks which `LContainer` has transplanted views.
|
|
8921
8925
|
* - `LContainer[TRANSPLANT_HEAD]` and `LContainer[TRANSPLANT_TAIL]` storage for transplanted
|
|
8922
8926
|
* - `LView[DECLARATION_LCONTAINER]` similar problem for queries
|
|
8923
8927
|
* - `LContainer[MOVED_VIEWS]` similar problem for queries
|