@angular/core 10.1.3 → 10.2.0
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 +5677 -5600
- package/bundles/core.umd.js.map +1 -1
- package/bundles/core.umd.min.js +138 -122
- package/bundles/core.umd.min.js.map +1 -1
- package/core.d.ts +125 -107
- package/core.metadata.json +1 -1
- package/esm2015/core.js +8 -8
- package/esm2015/src/debug/debug_node.js +9 -4
- package/esm2015/src/di/injector_compatibility.js +13 -1
- package/esm2015/src/render3/assert.js +53 -8
- package/esm2015/src/render3/bindings.js +3 -3
- package/esm2015/src/render3/component.js +10 -9
- package/esm2015/src/render3/component_ref.js +5 -12
- package/esm2015/src/render3/context_discovery.js +11 -9
- package/esm2015/src/render3/di.js +80 -47
- package/esm2015/src/render3/di_setup.js +3 -3
- package/esm2015/src/render3/features/providers_feature.js +2 -2
- package/esm2015/src/render3/hooks.js +3 -3
- package/esm2015/src/render3/i18n/i18n_apply.js +27 -20
- package/esm2015/src/render3/i18n/i18n_debug.js +2 -2
- package/esm2015/src/render3/i18n/i18n_parse.js +9 -9
- package/esm2015/src/render3/instructions/advance.js +3 -3
- package/esm2015/src/render3/instructions/all.js +2 -1
- package/esm2015/src/render3/instructions/di.js +9 -6
- package/esm2015/src/render3/instructions/element.js +17 -17
- package/esm2015/src/render3/instructions/element_container.js +15 -15
- package/esm2015/src/render3/instructions/i18n.js +2 -2
- package/esm2015/src/render3/instructions/listener.js +6 -6
- package/esm2015/src/render3/instructions/lview_debug.js +113 -32
- package/esm2015/src/render3/instructions/projection.js +4 -4
- package/esm2015/src/render3/instructions/shared.js +55 -77
- package/esm2015/src/render3/instructions/styling.js +1 -1
- package/esm2015/src/render3/instructions/template.js +7 -10
- package/esm2015/src/render3/instructions/text.js +5 -5
- package/esm2015/src/render3/interfaces/injector.js +4 -4
- package/esm2015/src/render3/interfaces/node.js +2 -3
- package/esm2015/src/render3/interfaces/view.js +11 -1
- package/esm2015/src/render3/node_assert.js +3 -14
- package/esm2015/src/render3/node_manipulation.js +63 -128
- package/esm2015/src/render3/pipe.js +15 -9
- package/esm2015/src/render3/query.js +7 -7
- package/esm2015/src/render3/state.js +22 -21
- package/esm2015/src/render3/styling/style_binding_list.js +2 -2
- package/esm2015/src/render3/util/discovery_utils.js +7 -5
- package/esm2015/src/render3/util/injector_utils.js +8 -2
- package/esm2015/src/render3/util/view_utils.js +2 -2
- package/esm2015/src/render3/view_engine_compatibility.js +37 -26
- package/esm2015/src/render3/view_ref.js +7 -10
- package/esm2015/src/util/ng_dev_mode.js +2 -2
- package/esm2015/src/version.js +1 -1
- package/fesm2015/core.js +5401 -5339
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/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/node_util.js +0 -46
package/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v10.
|
|
2
|
+
* @license Angular v10.2.0
|
|
3
3
|
* (c) 2010-2020 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1616,6 +1616,18 @@ declare interface DebugNode_2 {
|
|
|
1616
1616
|
* Child nodes
|
|
1617
1617
|
*/
|
|
1618
1618
|
children: DebugNode_2[];
|
|
1619
|
+
/**
|
|
1620
|
+
* A list of Component/Directive types which need to be instantiated an this location.
|
|
1621
|
+
*/
|
|
1622
|
+
factories: Type<unknown>[];
|
|
1623
|
+
/**
|
|
1624
|
+
* A list of Component/Directive instances which were instantiated an this location.
|
|
1625
|
+
*/
|
|
1626
|
+
instances: unknown[];
|
|
1627
|
+
/**
|
|
1628
|
+
* NodeInjector information.
|
|
1629
|
+
*/
|
|
1630
|
+
injector: NodeInjectorDebug;
|
|
1619
1631
|
}
|
|
1620
1632
|
|
|
1621
1633
|
declare class DebugNode__POST_R3__ implements DebugNode {
|
|
@@ -3464,8 +3476,11 @@ declare interface InstructionState {
|
|
|
3464
3476
|
* In this mode, any changes in bindings will throw an ExpressionChangedAfterChecked error.
|
|
3465
3477
|
*
|
|
3466
3478
|
* Necessary to support ChangeDetectorRef.checkNoChanges().
|
|
3479
|
+
*
|
|
3480
|
+
* checkNoChanges Runs only in devmode=true and verifies that no unintended changes exist in
|
|
3481
|
+
* the change detector or its children.
|
|
3467
3482
|
*/
|
|
3468
|
-
|
|
3483
|
+
isInCheckNoChangesMode: boolean;
|
|
3469
3484
|
}
|
|
3470
3485
|
|
|
3471
3486
|
declare interface InternalNgModuleRef<T> extends NgModuleRef<T> {
|
|
@@ -3786,7 +3801,7 @@ declare interface LContainer extends Array<any> {
|
|
|
3786
3801
|
* The host could be an LView if this container is on a component node.
|
|
3787
3802
|
* In that case, the component LView is its HOST.
|
|
3788
3803
|
*/
|
|
3789
|
-
readonly [HOST]: RElement | RComment | ɵ
|
|
3804
|
+
readonly [HOST]: RElement | RComment | ɵangular_packages_core_core_bo;
|
|
3790
3805
|
/**
|
|
3791
3806
|
* This is a type field which allows us to differentiate `LContainer` from `StylingContext` in an
|
|
3792
3807
|
* efficient way. The value is always set to `true`
|
|
@@ -3803,12 +3818,12 @@ declare interface LContainer extends Array<any> {
|
|
|
3803
3818
|
* Access to the parent view is necessary so we can propagate back
|
|
3804
3819
|
* up from inside a container to parent[NEXT].
|
|
3805
3820
|
*/
|
|
3806
|
-
[PARENT]: ɵ
|
|
3821
|
+
[PARENT]: ɵangular_packages_core_core_bo;
|
|
3807
3822
|
/**
|
|
3808
3823
|
* This allows us to jump from a container to a sibling container or component
|
|
3809
3824
|
* view with the same parent, so we can remove listeners efficiently.
|
|
3810
3825
|
*/
|
|
3811
|
-
[NEXT]: ɵ
|
|
3826
|
+
[NEXT]: ɵangular_packages_core_core_bo | LContainer | null;
|
|
3812
3827
|
/**
|
|
3813
3828
|
* The number of direct transplanted views which need a refresh or have descendants themselves
|
|
3814
3829
|
* that need a refresh but have not marked their ancestors as Dirty. This tells us that during
|
|
@@ -3821,7 +3836,7 @@ declare interface LContainer extends Array<any> {
|
|
|
3821
3836
|
* a different `LContainer`. We need to track views created from a given declaration point since
|
|
3822
3837
|
* queries collect matches from the embedded view declaration point and _not_ the insertion point.
|
|
3823
3838
|
*/
|
|
3824
|
-
[MOVED_VIEWS]: ɵ
|
|
3839
|
+
[MOVED_VIEWS]: ɵangular_packages_core_core_bo[] | null;
|
|
3825
3840
|
/**
|
|
3826
3841
|
* Pointer to the `TNode` which represents the host of the container.
|
|
3827
3842
|
*/
|
|
@@ -3852,8 +3867,8 @@ declare interface LContainerDebug {
|
|
|
3852
3867
|
*/
|
|
3853
3868
|
readonly views: LViewDebug[];
|
|
3854
3869
|
readonly parent: LViewDebug | null;
|
|
3855
|
-
readonly movedViews: ɵ
|
|
3856
|
-
readonly host: RElement | RComment | ɵ
|
|
3870
|
+
readonly movedViews: ɵangular_packages_core_core_bo[] | null;
|
|
3871
|
+
readonly host: RElement | RComment | ɵangular_packages_core_core_bo;
|
|
3857
3872
|
readonly next: LViewDebug | LContainerDebug | null;
|
|
3858
3873
|
readonly hasTransplantedViews: boolean;
|
|
3859
3874
|
}
|
|
@@ -3880,7 +3895,7 @@ declare interface LFrame {
|
|
|
3880
3895
|
* An array of nodes (text, element, container, etc), pipes, their bindings, and
|
|
3881
3896
|
* any local variables that need to be stored between invocations.
|
|
3882
3897
|
*/
|
|
3883
|
-
lView: ɵ
|
|
3898
|
+
lView: ɵangular_packages_core_core_bo;
|
|
3884
3899
|
/**
|
|
3885
3900
|
* Current `TView` associated with the `LFrame.lView`.
|
|
3886
3901
|
*
|
|
@@ -3893,11 +3908,11 @@ declare interface LFrame {
|
|
|
3893
3908
|
*
|
|
3894
3909
|
* This is used in conjunction with `isParent`.
|
|
3895
3910
|
*/
|
|
3896
|
-
|
|
3911
|
+
currentTNode: TNode | null;
|
|
3897
3912
|
/**
|
|
3898
3913
|
* If `isParent` is:
|
|
3899
|
-
* - `true`: then `
|
|
3900
|
-
* - `false`: then `
|
|
3914
|
+
* - `true`: then `currentTNode` points to a parent node.
|
|
3915
|
+
* - `false`: then `currentTNode` points to previous node (sibling).
|
|
3901
3916
|
*/
|
|
3902
3917
|
isParent: boolean;
|
|
3903
3918
|
/**
|
|
@@ -3916,7 +3931,7 @@ declare interface LFrame {
|
|
|
3916
3931
|
*
|
|
3917
3932
|
* e.g. const inner = x().$implicit; const outer = x().$implicit;
|
|
3918
3933
|
*/
|
|
3919
|
-
contextLView: ɵ
|
|
3934
|
+
contextLView: ɵangular_packages_core_core_bo;
|
|
3920
3935
|
/**
|
|
3921
3936
|
* Store the element depth count. This is used to identify the root elements of the template
|
|
3922
3937
|
* so that we can then attach patch data `LView` to only those elements. We know that those
|
|
@@ -3977,7 +3992,7 @@ export declare const LOCALE_ID: InjectionToken<string>;
|
|
|
3977
3992
|
* - `<div #nativeDivEl>` - `nativeDivEl` should point to the native `<div>` element;
|
|
3978
3993
|
* - `<ng-template #tplRef>` - `tplRef` should point to the `TemplateRef` instance;
|
|
3979
3994
|
*/
|
|
3980
|
-
declare type LocalRefExtractor = (tNode: TNodeWithLocalRefs, currentView: ɵ
|
|
3995
|
+
declare type LocalRefExtractor = (tNode: TNodeWithLocalRefs, currentView: ɵangular_packages_core_core_bo) => any;
|
|
3981
3996
|
|
|
3982
3997
|
/**
|
|
3983
3998
|
* lQueries represent a collection of individual LQuery objects tracked in a given view.
|
|
@@ -4812,6 +4827,29 @@ declare interface NodeDef {
|
|
|
4812
4827
|
ngContent: NgContentDef | null;
|
|
4813
4828
|
}
|
|
4814
4829
|
|
|
4830
|
+
declare interface NodeInjectorDebug {
|
|
4831
|
+
/**
|
|
4832
|
+
* Instance bloom. Does the current injector have a provider with a given bloom mask.
|
|
4833
|
+
*/
|
|
4834
|
+
bloom: string;
|
|
4835
|
+
/**
|
|
4836
|
+
* Cumulative bloom. Do any of the above injectors have a provider with a given bloom mask.
|
|
4837
|
+
*/
|
|
4838
|
+
cumulativeBloom: string;
|
|
4839
|
+
/**
|
|
4840
|
+
* A list of providers associated with this injector.
|
|
4841
|
+
*/
|
|
4842
|
+
providers: (Type<unknown> | ɵDirectiveDef<unknown> | ɵComponentDef<unknown>)[];
|
|
4843
|
+
/**
|
|
4844
|
+
* A list of providers associated with this injector visible to the view of the component only.
|
|
4845
|
+
*/
|
|
4846
|
+
viewProviders: Type<unknown>[];
|
|
4847
|
+
/**
|
|
4848
|
+
* Location of the parent `TNode`.
|
|
4849
|
+
*/
|
|
4850
|
+
parentInjectorIndex: number;
|
|
4851
|
+
}
|
|
4852
|
+
|
|
4815
4853
|
/**
|
|
4816
4854
|
* Function to call console.error at the right source location. This is an indirection
|
|
4817
4855
|
* via another function as browser will log the location that actually called
|
|
@@ -6659,7 +6697,7 @@ declare interface TContainerNode extends TNode {
|
|
|
6659
6697
|
* - They are the first node of a component or embedded view
|
|
6660
6698
|
* - They are dynamically created
|
|
6661
6699
|
*/
|
|
6662
|
-
parent: ɵ
|
|
6700
|
+
parent: ɵangular_packages_core_core_be | TElementContainerNode | null;
|
|
6663
6701
|
tViews: TView | TView[] | null;
|
|
6664
6702
|
projection: null;
|
|
6665
6703
|
}
|
|
@@ -6697,8 +6735,8 @@ declare type TData = (TNode | ɵPipeDef<any> | ɵDirectiveDef<any> | ɵComponent
|
|
|
6697
6735
|
declare interface TElementContainerNode extends TNode {
|
|
6698
6736
|
/** Index in the LView[] array. */
|
|
6699
6737
|
index: number;
|
|
6700
|
-
child: ɵ
|
|
6701
|
-
parent: ɵ
|
|
6738
|
+
child: ɵangular_packages_core_core_be | TTextNode | TContainerNode | TElementContainerNode | TProjectionNode | null;
|
|
6739
|
+
parent: ɵangular_packages_core_core_be | TElementContainerNode | null;
|
|
6702
6740
|
tViews: null;
|
|
6703
6741
|
projection: null;
|
|
6704
6742
|
}
|
|
@@ -7145,7 +7183,7 @@ declare interface TNode {
|
|
|
7145
7183
|
*
|
|
7146
7184
|
* If this is an inline view node (V), the parent will be its container.
|
|
7147
7185
|
*/
|
|
7148
|
-
parent: ɵ
|
|
7186
|
+
parent: ɵangular_packages_core_core_be | TContainerNode | null;
|
|
7149
7187
|
/**
|
|
7150
7188
|
* List of projected TNodes for a given component host element OR index into the said nodes.
|
|
7151
7189
|
*
|
|
@@ -7355,34 +7393,30 @@ declare const enum TNodeType {
|
|
|
7355
7393
|
* The TNode contains information about an `<ng-content>` projection
|
|
7356
7394
|
*/
|
|
7357
7395
|
Projection = 1,
|
|
7358
|
-
/**
|
|
7359
|
-
* The TNode contains information about an {@link LView}
|
|
7360
|
-
*/
|
|
7361
|
-
View = 2,
|
|
7362
7396
|
/**
|
|
7363
7397
|
* The TNode contains information about a DOM element aka {@link RNode}.
|
|
7364
7398
|
*/
|
|
7365
|
-
Element =
|
|
7399
|
+
Element = 2,
|
|
7366
7400
|
/**
|
|
7367
7401
|
* The TNode contains information about an `<ng-container>` element {@link RNode}.
|
|
7368
7402
|
*/
|
|
7369
|
-
ElementContainer =
|
|
7403
|
+
ElementContainer = 3,
|
|
7370
7404
|
/**
|
|
7371
7405
|
* The TNode contains information about an ICU comment used in `i18n`.
|
|
7372
7406
|
*/
|
|
7373
|
-
IcuContainer =
|
|
7407
|
+
IcuContainer = 4
|
|
7374
7408
|
}
|
|
7375
7409
|
|
|
7376
7410
|
/**
|
|
7377
7411
|
* Converts `TNodeType` into human readable text.
|
|
7378
7412
|
* Make sure this matches with `TNodeType`
|
|
7379
7413
|
*/
|
|
7380
|
-
declare const TNodeTypeAsString: readonly ["Container", "Projection", "
|
|
7414
|
+
declare const TNodeTypeAsString: readonly ["Container", "Projection", "Element", "ElementContainer", "IcuContainer"];
|
|
7381
7415
|
|
|
7382
7416
|
/**
|
|
7383
7417
|
* Type representing a set of TNodes that can have local refs (`#foo`) placed on them.
|
|
7384
7418
|
*/
|
|
7385
|
-
declare type TNodeWithLocalRefs = TContainerNode | ɵ
|
|
7419
|
+
declare type TNodeWithLocalRefs = TContainerNode | ɵangular_packages_core_core_be | TElementContainerNode;
|
|
7386
7420
|
|
|
7387
7421
|
/** Static data for an LProjectionNode */
|
|
7388
7422
|
declare interface TProjectionNode extends TNode {
|
|
@@ -7393,7 +7427,7 @@ declare interface TProjectionNode extends TNode {
|
|
|
7393
7427
|
* or embedded view (which means their parent is in a different view and must be
|
|
7394
7428
|
* retrieved using LView.node).
|
|
7395
7429
|
*/
|
|
7396
|
-
parent: ɵ
|
|
7430
|
+
parent: ɵangular_packages_core_core_be | TElementContainerNode | null;
|
|
7397
7431
|
tViews: null;
|
|
7398
7432
|
/** Index of the projection node. (See TNode.projection for more info.) */
|
|
7399
7433
|
projection: number;
|
|
@@ -7713,7 +7747,7 @@ declare interface TTextNode extends TNode {
|
|
|
7713
7747
|
* embedded view (which means their parent is in a different view and must be
|
|
7714
7748
|
* retrieved using LView.node).
|
|
7715
7749
|
*/
|
|
7716
|
-
parent: ɵ
|
|
7750
|
+
parent: ɵangular_packages_core_core_be | TElementContainerNode | null;
|
|
7717
7751
|
tViews: null;
|
|
7718
7752
|
projection: null;
|
|
7719
7753
|
}
|
|
@@ -7731,19 +7765,11 @@ declare interface TView {
|
|
|
7731
7765
|
* Type of `TView` (`Root`|`Component`|`Embedded`).
|
|
7732
7766
|
*/
|
|
7733
7767
|
type: TViewType;
|
|
7734
|
-
/**
|
|
7735
|
-
* ID for inline views to determine whether a view is the same as the previous view
|
|
7736
|
-
* in a certain position. If it's not, we know the new view needs to be inserted
|
|
7737
|
-
* and the one that exists needs to be removed (e.g. if/else statements)
|
|
7738
|
-
*
|
|
7739
|
-
* If this is -1, then this is a component view or a dynamically created view.
|
|
7740
|
-
*/
|
|
7741
|
-
readonly id: number;
|
|
7742
7768
|
/**
|
|
7743
7769
|
* This is a blueprint used to generate LView instances for this TView. Copying this
|
|
7744
7770
|
* blueprint is faster than creating a new LView from scratch.
|
|
7745
7771
|
*/
|
|
7746
|
-
blueprint: ɵ
|
|
7772
|
+
blueprint: ɵangular_packages_core_core_bo;
|
|
7747
7773
|
/**
|
|
7748
7774
|
* The template function used to refresh the view of dynamically created views
|
|
7749
7775
|
* and components. Will be null for inline views.
|
|
@@ -7754,21 +7780,9 @@ declare interface TView {
|
|
|
7754
7780
|
*/
|
|
7755
7781
|
viewQuery: ViewQueriesFunction<{}> | null;
|
|
7756
7782
|
/**
|
|
7757
|
-
*
|
|
7758
|
-
*
|
|
7759
|
-
* If this is a `TViewNode` for an `LViewNode`, this is an embedded view of a container.
|
|
7760
|
-
* We need this pointer to be able to efficiently find this node when inserting the view
|
|
7761
|
-
* into an anchor.
|
|
7762
|
-
*
|
|
7763
|
-
* If this is a `TElementNode`, this is the view of a root component. It has exactly one
|
|
7764
|
-
* root TNode.
|
|
7765
|
-
*
|
|
7766
|
-
* If this is null, this is the view of a component that is not at root. We do not store
|
|
7767
|
-
* the host TNodes for child component views because they can potentially have several
|
|
7768
|
-
* different host TNodes, depending on where the component is being used. These host
|
|
7769
|
-
* TNodes cannot be shared (due to different indices, etc).
|
|
7783
|
+
* A `TNode` representing the declaration location of this `TView` (not part of this TView).
|
|
7770
7784
|
*/
|
|
7771
|
-
|
|
7785
|
+
declTNode: TNode | null;
|
|
7772
7786
|
/** Whether or not this template has been processed in creation mode. */
|
|
7773
7787
|
firstCreatePass: boolean;
|
|
7774
7788
|
/**
|
|
@@ -7965,16 +7979,6 @@ declare interface TView {
|
|
|
7965
7979
|
incompleteFirstPass: boolean;
|
|
7966
7980
|
}
|
|
7967
7981
|
|
|
7968
|
-
/** Static data for a view */
|
|
7969
|
-
declare interface TViewNode extends TNode {
|
|
7970
|
-
/** If -1, it's a dynamically created view. Otherwise, it is the view block ID. */
|
|
7971
|
-
index: number;
|
|
7972
|
-
child: ɵangular_packages_core_core_bf | TTextNode | TElementContainerNode | TContainerNode | TProjectionNode | null;
|
|
7973
|
-
parent: TContainerNode | null;
|
|
7974
|
-
tViews: null;
|
|
7975
|
-
projection: null;
|
|
7976
|
-
}
|
|
7977
|
-
|
|
7978
7982
|
/**
|
|
7979
7983
|
* Explicitly marks `TView` as a specific type in `ngDevMode`
|
|
7980
7984
|
*
|
|
@@ -8493,14 +8497,14 @@ declare class ViewRef_2<T> implements EmbeddedViewRef<T>, InternalViewRef, viewE
|
|
|
8493
8497
|
*
|
|
8494
8498
|
* @internal
|
|
8495
8499
|
*/
|
|
8496
|
-
_lView: ɵ
|
|
8500
|
+
_lView: ɵangular_packages_core_core_bo,
|
|
8497
8501
|
/**
|
|
8498
8502
|
* This represents the `LView` associated with the point where `ChangeDetectorRef` was
|
|
8499
8503
|
* requested.
|
|
8500
8504
|
*
|
|
8501
8505
|
* This may be different from `_lView` if the `_cdRefInjectingView` is an embedded view.
|
|
8502
8506
|
*/
|
|
8503
|
-
_cdRefInjectingView?: ɵ
|
|
8507
|
+
_cdRefInjectingView?: ɵangular_packages_core_core_bo | undefined);
|
|
8504
8508
|
get context(): T;
|
|
8505
8509
|
get destroyed(): boolean;
|
|
8506
8510
|
destroy(): void;
|
|
@@ -8784,25 +8788,23 @@ export declare const ɵangular_packages_core_core_ba: InstructionState;
|
|
|
8784
8788
|
/**
|
|
8785
8789
|
* Return the current `LView`.
|
|
8786
8790
|
*/
|
|
8787
|
-
export declare function ɵangular_packages_core_core_bb(): ɵ
|
|
8788
|
-
|
|
8789
|
-
export declare function ɵangular_packages_core_core_bc(): TNode;
|
|
8791
|
+
export declare function ɵangular_packages_core_core_bb(): ɵangular_packages_core_core_bo;
|
|
8790
8792
|
|
|
8791
|
-
export declare function ɵ
|
|
8793
|
+
export declare function ɵangular_packages_core_core_bc(): number;
|
|
8792
8794
|
|
|
8793
|
-
export declare function ɵ
|
|
8795
|
+
export declare function ɵangular_packages_core_core_bd<T = any>(level: number): T;
|
|
8794
8796
|
|
|
8795
8797
|
/** Static data for an element */
|
|
8796
|
-
export declare interface ɵ
|
|
8798
|
+
export declare interface ɵangular_packages_core_core_be extends TNode {
|
|
8797
8799
|
/** Index in the data[] array */
|
|
8798
8800
|
index: number;
|
|
8799
|
-
child: ɵ
|
|
8801
|
+
child: ɵangular_packages_core_core_be | TTextNode | TElementContainerNode | TContainerNode | TProjectionNode | null;
|
|
8800
8802
|
/**
|
|
8801
8803
|
* Element nodes will have parents unless they are the first node of a component or
|
|
8802
8804
|
* embedded view (which means their parent is in a different view and must be
|
|
8803
8805
|
* retrieved using viewData[HOST_NODE]).
|
|
8804
8806
|
*/
|
|
8805
|
-
parent: ɵ
|
|
8807
|
+
parent: ɵangular_packages_core_core_be | TElementContainerNode | null;
|
|
8806
8808
|
tViews: null;
|
|
8807
8809
|
/**
|
|
8808
8810
|
* If this is a component TNode with projection, this will be an array of projected
|
|
@@ -8824,7 +8826,7 @@ export declare interface ɵangular_packages_core_core_bf extends TNode {
|
|
|
8824
8826
|
* @param thisArg Optional calling context of pureFn
|
|
8825
8827
|
* @returns Updated or cached value
|
|
8826
8828
|
*/
|
|
8827
|
-
export declare function ɵ
|
|
8829
|
+
export declare function ɵangular_packages_core_core_bf(lView: ɵangular_packages_core_core_bo, bindingRoot: number, slotOffset: number, pureFn: (v: any) => any, exp: any, thisArg?: any): any;
|
|
8828
8830
|
|
|
8829
8831
|
/**
|
|
8830
8832
|
* If the value of any provided exp has changed, calls the pure function to return
|
|
@@ -8839,7 +8841,7 @@ export declare function ɵangular_packages_core_core_bg(lView: ɵangular_package
|
|
|
8839
8841
|
* @param thisArg Optional calling context of pureFn
|
|
8840
8842
|
* @returns Updated or cached value
|
|
8841
8843
|
*/
|
|
8842
|
-
export declare function ɵ
|
|
8844
|
+
export declare function ɵangular_packages_core_core_bg(lView: ɵangular_packages_core_core_bo, bindingRoot: number, slotOffset: number, pureFn: (v1: any, v2: any) => any, exp1: any, exp2: any, thisArg?: any): any;
|
|
8843
8845
|
|
|
8844
8846
|
/**
|
|
8845
8847
|
* If the value of any provided exp has changed, calls the pure function to return
|
|
@@ -8855,7 +8857,7 @@ export declare function ɵangular_packages_core_core_bh(lView: ɵangular_package
|
|
|
8855
8857
|
* @param thisArg Optional calling context of pureFn
|
|
8856
8858
|
* @returns Updated or cached value
|
|
8857
8859
|
*/
|
|
8858
|
-
export declare function ɵ
|
|
8860
|
+
export declare function ɵangular_packages_core_core_bh(lView: ɵangular_packages_core_core_bo, bindingRoot: number, slotOffset: number, pureFn: (v1: any, v2: any, v3: any) => any, exp1: any, exp2: any, exp3: any, thisArg?: any): any;
|
|
8859
8861
|
|
|
8860
8862
|
/**
|
|
8861
8863
|
* If the value of any provided exp has changed, calls the pure function to return
|
|
@@ -8873,7 +8875,7 @@ export declare function ɵangular_packages_core_core_bi(lView: ɵangular_package
|
|
|
8873
8875
|
* @returns Updated or cached value
|
|
8874
8876
|
*
|
|
8875
8877
|
*/
|
|
8876
|
-
export declare function ɵ
|
|
8878
|
+
export declare function ɵangular_packages_core_core_bi(lView: ɵangular_packages_core_core_bo, bindingRoot: number, slotOffset: number, pureFn: (v1: any, v2: any, v3: any, v4: any) => any, exp1: any, exp2: any, exp3: any, exp4: any, thisArg?: any): any;
|
|
8877
8879
|
|
|
8878
8880
|
/**
|
|
8879
8881
|
* pureFunction instruction that can support any number of bindings.
|
|
@@ -8890,7 +8892,7 @@ export declare function ɵangular_packages_core_core_bj(lView: ɵangular_package
|
|
|
8890
8892
|
* @param thisArg Optional calling context of pureFn
|
|
8891
8893
|
* @returns Updated or cached value
|
|
8892
8894
|
*/
|
|
8893
|
-
export declare function ɵ
|
|
8895
|
+
export declare function ɵangular_packages_core_core_bj(lView: ɵangular_packages_core_core_bo, bindingRoot: number, slotOffset: number, pureFn: (...v: any[]) => any, exps: any[], thisArg?: any): any;
|
|
8894
8896
|
|
|
8895
8897
|
/**
|
|
8896
8898
|
* Detects which sanitizer to use for URL property, based on tag name and prop name.
|
|
@@ -8899,14 +8901,14 @@ export declare function ɵangular_packages_core_core_bk(lView: ɵangular_package
|
|
|
8899
8901
|
* `packages/compiler/src/schema/dom_security_schema.ts`.
|
|
8900
8902
|
* If tag and prop names don't match Resource URL schema, use URL sanitizer.
|
|
8901
8903
|
*/
|
|
8902
|
-
export declare function ɵ
|
|
8904
|
+
export declare function ɵangular_packages_core_core_bk(tag: string, prop: string): typeof ɵɵsanitizeResourceUrl;
|
|
8903
8905
|
|
|
8904
|
-
export declare function ɵ
|
|
8906
|
+
export declare function ɵangular_packages_core_core_bl(name: string, props?: (...args: any[]) => any, parentClass?: any): any;
|
|
8905
8907
|
|
|
8906
|
-
export declare function ɵ
|
|
8908
|
+
export declare function ɵangular_packages_core_core_bm(name: string, props?: (...args: any[]) => any, parentClass?: any, additionalProcessing?: (target: any, name: string, ...args: any[]) => void): any;
|
|
8907
8909
|
|
|
8908
8910
|
|
|
8909
|
-
export declare function ɵ
|
|
8911
|
+
export declare function ɵangular_packages_core_core_bn<T>(objWithPropertyToExtract: T): string;
|
|
8910
8912
|
|
|
8911
8913
|
/**
|
|
8912
8914
|
* `LView` stores all of the information needed to process the instructions as
|
|
@@ -8918,7 +8920,7 @@ export declare function ɵangular_packages_core_core_bo<T>(objWithPropertyToExtr
|
|
|
8918
8920
|
* Keeping separate state for each view facilities view insertion / deletion, so we
|
|
8919
8921
|
* don't have to edit the data array based on which views are present.
|
|
8920
8922
|
*/
|
|
8921
|
-
export declare interface ɵ
|
|
8923
|
+
export declare interface ɵangular_packages_core_core_bo extends Array<any> {
|
|
8922
8924
|
/**
|
|
8923
8925
|
* Human readable representation of the `LView`.
|
|
8924
8926
|
*
|
|
@@ -8928,8 +8930,7 @@ export declare interface ɵangular_packages_core_core_bp extends Array<any> {
|
|
|
8928
8930
|
*/
|
|
8929
8931
|
debug?: LViewDebug;
|
|
8930
8932
|
/**
|
|
8931
|
-
* The
|
|
8932
|
-
* If this is an embedded view, HOST will be null.
|
|
8933
|
+
* The node into which this `LView` is inserted.
|
|
8933
8934
|
*/
|
|
8934
8935
|
[HOST]: RElement | null;
|
|
8935
8936
|
/**
|
|
@@ -8949,7 +8950,7 @@ export declare interface ɵangular_packages_core_core_bp extends Array<any> {
|
|
|
8949
8950
|
*
|
|
8950
8951
|
* `LContainer` - The current view is part of a container, and is an embedded view.
|
|
8951
8952
|
*/
|
|
8952
|
-
[PARENT]: ɵ
|
|
8953
|
+
[PARENT]: ɵangular_packages_core_core_bo | LContainer | null;
|
|
8953
8954
|
/**
|
|
8954
8955
|
*
|
|
8955
8956
|
* The next sibling LView or LContainer.
|
|
@@ -8959,20 +8960,39 @@ export declare interface ɵangular_packages_core_core_bp extends Array<any> {
|
|
|
8959
8960
|
* views in the same container. We need a way to link component views and views
|
|
8960
8961
|
* across containers as well.
|
|
8961
8962
|
*/
|
|
8962
|
-
[NEXT]: ɵ
|
|
8963
|
+
[NEXT]: ɵangular_packages_core_core_bo | LContainer | null;
|
|
8963
8964
|
/** Queries active for this view - nodes from a view are reported to those queries. */
|
|
8964
8965
|
[QUERIES]: LQueries | null;
|
|
8965
8966
|
/**
|
|
8966
|
-
*
|
|
8967
|
+
* Store the `TNode` of the location where the current `LView` is inserted into.
|
|
8967
8968
|
*
|
|
8968
|
-
*
|
|
8969
|
-
*
|
|
8969
|
+
* Given:
|
|
8970
|
+
* ```
|
|
8971
|
+
* <div>
|
|
8972
|
+
* <ng-template><span></span></ng-template>
|
|
8973
|
+
* </div>
|
|
8974
|
+
* ```
|
|
8975
|
+
*
|
|
8976
|
+
* We end up with two `TView`s.
|
|
8977
|
+
* - `parent` `TView` which contains `<div><!-- anchor --></div>`
|
|
8978
|
+
* - `child` `TView` which contains `<span></span>`
|
|
8970
8979
|
*
|
|
8971
|
-
*
|
|
8980
|
+
* Typically the `child` is inserted into the declaration location of the `parent`, but it can be
|
|
8981
|
+
* inserted anywhere. Because it can be inserted anywhere it is not possible to store the
|
|
8982
|
+
* insertion information in the `TView` and instead we must store it in the `LView[T_HOST]`.
|
|
8972
8983
|
*
|
|
8973
|
-
*
|
|
8984
|
+
* So to determine where is our insertion parent we would execute:
|
|
8985
|
+
* ```
|
|
8986
|
+
* const parentLView = lView[PARENT];
|
|
8987
|
+
* const parentTNode = lView[T_HOST];
|
|
8988
|
+
* const insertionParent = parentLView[parentTNode.index];
|
|
8989
|
+
* ```
|
|
8990
|
+
*
|
|
8991
|
+
*
|
|
8992
|
+
* If `null`, this is the root view of an application (root component is in this view) and it has
|
|
8993
|
+
* no parents.
|
|
8974
8994
|
*/
|
|
8975
|
-
[T_HOST]:
|
|
8995
|
+
[T_HOST]: TNode | null;
|
|
8976
8996
|
/**
|
|
8977
8997
|
* When a view is destroyed, listeners need to be released and outputs need to be
|
|
8978
8998
|
* unsubscribed. This context array stores both listener functions wrapped with
|
|
@@ -9005,19 +9025,17 @@ export declare interface ɵangular_packages_core_core_bp extends Array<any> {
|
|
|
9005
9025
|
* Necessary to store this so views can traverse through their nested views
|
|
9006
9026
|
* to remove listeners and call onDestroy callbacks.
|
|
9007
9027
|
*/
|
|
9008
|
-
[CHILD_HEAD]: ɵ
|
|
9028
|
+
[CHILD_HEAD]: ɵangular_packages_core_core_bo | LContainer | null;
|
|
9009
9029
|
/**
|
|
9010
9030
|
* The last LView or LContainer beneath this LView in the hierarchy.
|
|
9011
9031
|
*
|
|
9012
9032
|
* The tail allows us to quickly add a new state to the end of the view list
|
|
9013
9033
|
* without having to propagate starting from the first child.
|
|
9014
9034
|
*/
|
|
9015
|
-
[CHILD_TAIL]: ɵ
|
|
9035
|
+
[CHILD_TAIL]: ɵangular_packages_core_core_bo | LContainer | null;
|
|
9016
9036
|
/**
|
|
9017
9037
|
* View where this view's template was declared.
|
|
9018
9038
|
*
|
|
9019
|
-
* Only applicable for dynamically created views. Will be null for inline/component views.
|
|
9020
|
-
*
|
|
9021
9039
|
* The template for a dynamically created view may be declared in a different view than
|
|
9022
9040
|
* it is inserted. We already track the "insertion view" (view where the template was
|
|
9023
9041
|
* inserted) in LView[PARENT], but we also need access to the "declaration view"
|
|
@@ -9037,7 +9055,7 @@ export declare interface ɵangular_packages_core_core_bp extends Array<any> {
|
|
|
9037
9055
|
* template function during change detection, we need the declaration view to get inherited
|
|
9038
9056
|
* context.
|
|
9039
9057
|
*/
|
|
9040
|
-
[DECLARATION_VIEW]: ɵ
|
|
9058
|
+
[DECLARATION_VIEW]: ɵangular_packages_core_core_bo | null;
|
|
9041
9059
|
/**
|
|
9042
9060
|
* Points to the declaration component view, used to track transplanted `LView`s.
|
|
9043
9061
|
*
|
|
@@ -9107,7 +9125,7 @@ export declare interface ɵangular_packages_core_core_bp extends Array<any> {
|
|
|
9107
9125
|
* - `LView[DECLARATION_LCONTAINER]` similar problem for queries
|
|
9108
9126
|
* - `LContainer[MOVED_VIEWS]` similar problem for queries
|
|
9109
9127
|
*/
|
|
9110
|
-
[DECLARATION_COMPONENT_VIEW]: ɵ
|
|
9128
|
+
[DECLARATION_COMPONENT_VIEW]: ɵangular_packages_core_core_bo;
|
|
9111
9129
|
/**
|
|
9112
9130
|
* A declaration point of embedded views (ones instantiated based on the content of a
|
|
9113
9131
|
* <ng-template>), null for other types of views.
|
|
@@ -9137,7 +9155,7 @@ export declare interface ɵangular_packages_core_core_bp extends Array<any> {
|
|
|
9137
9155
|
*
|
|
9138
9156
|
* @param viewOrComponent the `LView` or component to get the root context for.
|
|
9139
9157
|
*/
|
|
9140
|
-
export declare function ɵ
|
|
9158
|
+
export declare function ɵangular_packages_core_core_bp(viewOrComponent: ɵangular_packages_core_core_bo | {}): RootContext;
|
|
9141
9159
|
|
|
9142
9160
|
|
|
9143
9161
|
/**
|
|
@@ -9160,7 +9178,7 @@ export declare function ɵangular_packages_core_core_bq(viewOrComponent: ɵangul
|
|
|
9160
9178
|
*
|
|
9161
9179
|
* @codeGenApi
|
|
9162
9180
|
*/
|
|
9163
|
-
export declare function ɵ
|
|
9181
|
+
export declare function ɵangular_packages_core_core_bq(message: string, replacements?: {
|
|
9164
9182
|
[key: string]: (string | string[]);
|
|
9165
9183
|
}): string;
|
|
9166
9184
|
|
|
@@ -9220,7 +9238,7 @@ export declare function ɵangular_packages_core_core_g(): string;
|
|
|
9220
9238
|
* @param view The view to which the node belongs
|
|
9221
9239
|
* @returns The ElementRef instance to use
|
|
9222
9240
|
*/
|
|
9223
|
-
export declare function ɵangular_packages_core_core_h(ElementRefToken: typeof ElementRef, tNode: TNode, view: ɵ
|
|
9241
|
+
export declare function ɵangular_packages_core_core_h(ElementRefToken: typeof ElementRef, tNode: TNode, view: ɵangular_packages_core_core_bo): ElementRef;
|
|
9224
9242
|
|
|
9225
9243
|
/**
|
|
9226
9244
|
* Creates a TemplateRef and stores it on the injector.
|
|
@@ -9231,7 +9249,7 @@ export declare function ɵangular_packages_core_core_h(ElementRefToken: typeof E
|
|
|
9231
9249
|
* @param hostView The view to which the node belongs
|
|
9232
9250
|
* @returns The TemplateRef instance or null if we can't create a TemplateRef on a given node type
|
|
9233
9251
|
*/
|
|
9234
|
-
export declare function ɵangular_packages_core_core_i<T>(TemplateRefToken: typeof TemplateRef, ElementRefToken: typeof ElementRef, hostTNode: TNode, hostView: ɵ
|
|
9252
|
+
export declare function ɵangular_packages_core_core_i<T>(TemplateRefToken: typeof TemplateRef, ElementRefToken: typeof ElementRef, hostTNode: TNode, hostView: ɵangular_packages_core_core_bo): TemplateRef<T> | null;
|
|
9235
9253
|
|
|
9236
9254
|
export declare function ɵangular_packages_core_core_j(id: string): NgModuleFactory<any>;
|
|
9237
9255
|
|
|
@@ -10204,7 +10222,7 @@ export declare interface ɵLContext {
|
|
|
10204
10222
|
/**
|
|
10205
10223
|
* The component's parent view data.
|
|
10206
10224
|
*/
|
|
10207
|
-
lView: ɵ
|
|
10225
|
+
lView: ɵangular_packages_core_core_bo;
|
|
10208
10226
|
/**
|
|
10209
10227
|
* The index instance of the node.
|
|
10210
10228
|
*/
|
|
@@ -10717,7 +10735,7 @@ export declare class ɵRender3ComponentRef<T> extends ComponentRef<T> {
|
|
|
10717
10735
|
hostView: ViewRef_2<T>;
|
|
10718
10736
|
changeDetectorRef: ChangeDetectorRef;
|
|
10719
10737
|
componentType: Type<T>;
|
|
10720
|
-
constructor(componentType: Type<T>, instance: T, location: ElementRef, _rootLView: ɵ
|
|
10738
|
+
constructor(componentType: Type<T>, instance: T, location: ElementRef, _rootLView: ɵangular_packages_core_core_bo, _tNode: ɵangular_packages_core_core_be | TContainerNode | TElementContainerNode);
|
|
10721
10739
|
get injector(): Injector;
|
|
10722
10740
|
destroy(): void;
|
|
10723
10741
|
onDestroy(callback: () => void): void;
|
|
@@ -10892,7 +10910,7 @@ export declare function ɵsetLocaleId(localeId: string): void;
|
|
|
10892
10910
|
export declare type ɵSetterFn = (obj: any, value: any) => void;
|
|
10893
10911
|
|
|
10894
10912
|
/** Store a value in the `data` at a given `index`. */
|
|
10895
|
-
export declare function ɵstore<T>(tView: TView, lView: ɵ
|
|
10913
|
+
export declare function ɵstore<T>(tView: TView, lView: ɵangular_packages_core_core_bo, index: number, value: T): void;
|
|
10896
10914
|
|
|
10897
10915
|
|
|
10898
10916
|
export declare function ɵstringify(token: any): string;
|
|
@@ -13240,7 +13258,7 @@ export declare function ɵɵpropertyInterpolateV(propName: string, values: any[]
|
|
|
13240
13258
|
* ɵɵtextInterpolate(ctx.greeter.greet());
|
|
13241
13259
|
* }
|
|
13242
13260
|
* },
|
|
13243
|
-
* features: [
|
|
13261
|
+
* features: [ɵɵProvidersFeature([GreeterDE])]
|
|
13244
13262
|
* });
|
|
13245
13263
|
* }
|
|
13246
13264
|
* ```
|
|
@@ -14363,7 +14381,7 @@ export declare function ɵɵtemplate(index: number, templateFn: ComponentTemplat
|
|
|
14363
14381
|
*
|
|
14364
14382
|
* @codeGenApi
|
|
14365
14383
|
*/
|
|
14366
|
-
export declare function ɵɵtemplateRefExtractor(tNode: TNode, currentView: ɵ
|
|
14384
|
+
export declare function ɵɵtemplateRefExtractor(tNode: TNode, currentView: ɵangular_packages_core_core_bo): TemplateRef<unknown> | null;
|
|
14367
14385
|
|
|
14368
14386
|
/**
|
|
14369
14387
|
* Create static text node
|