@angular/core 10.0.4 → 10.0.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 +200 -201
- package/bundles/core.umd.js.map +1 -1
- package/bundles/core.umd.min.js +124 -124
- package/bundles/core.umd.min.js.map +1 -1
- package/core.d.ts +125 -119
- package/core.metadata.json +1 -1
- package/esm2015/core.js +11 -10
- package/esm2015/src/core_render3_private_export.js +2 -2
- package/esm2015/src/metadata/directives.js +1 -1
- package/esm2015/src/render3/definition.js +3 -11
- package/esm2015/src/render3/di.js +3 -3
- package/esm2015/src/render3/di_setup.js +5 -5
- package/esm2015/src/render3/features/inherit_definition_feature.js +1 -11
- package/esm2015/src/render3/features/ng_onchanges_feature.js +32 -22
- package/esm2015/src/render3/hooks.js +27 -23
- package/esm2015/src/render3/index.js +3 -3
- package/esm2015/src/render3/instructions/element.js +4 -4
- package/esm2015/src/render3/instructions/host_property.js +3 -3
- package/esm2015/src/render3/instructions/listener.js +3 -3
- package/esm2015/src/render3/instructions/shared.js +15 -12
- package/esm2015/src/render3/interfaces/definition.js +1 -1
- package/esm2015/src/render3/interfaces/node.js +1 -1
- package/esm2015/src/render3/jit/environment.js +3 -3
- package/esm2015/src/render3/util/discovery_utils.js +2 -2
- package/esm2015/src/version.js +1 -1
- package/fesm2015/core.js +179 -181
- 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/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v10.0.
|
|
2
|
+
* @license Angular v10.0.5
|
|
3
3
|
* (c) 2010-2020 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -3408,7 +3408,7 @@ export declare interface InputDecorator {
|
|
|
3408
3408
|
* class App {}
|
|
3409
3409
|
* ```
|
|
3410
3410
|
*
|
|
3411
|
-
* @see [Input and Output properties](guide/
|
|
3411
|
+
* @see [Input and Output properties](guide/inputs-outputs)
|
|
3412
3412
|
*/
|
|
3413
3413
|
(bindingPropertyName?: string): any;
|
|
3414
3414
|
new (bindingPropertyName?: string): any;
|
|
@@ -3775,7 +3775,7 @@ declare interface LContainer extends Array<any> {
|
|
|
3775
3775
|
* The host could be an LView if this container is on a component node.
|
|
3776
3776
|
* In that case, the component LView is its HOST.
|
|
3777
3777
|
*/
|
|
3778
|
-
readonly [HOST]: RElement | RComment | ɵ
|
|
3778
|
+
readonly [HOST]: RElement | RComment | ɵangular_packages_core_core_bp;
|
|
3779
3779
|
/**
|
|
3780
3780
|
* This is a type field which allows us to differentiate `LContainer` from `StylingContext` in an
|
|
3781
3781
|
* efficient way. The value is always set to `true`
|
|
@@ -3792,12 +3792,12 @@ declare interface LContainer extends Array<any> {
|
|
|
3792
3792
|
* Access to the parent view is necessary so we can propagate back
|
|
3793
3793
|
* up from inside a container to parent[NEXT].
|
|
3794
3794
|
*/
|
|
3795
|
-
[PARENT]: ɵ
|
|
3795
|
+
[PARENT]: ɵangular_packages_core_core_bp;
|
|
3796
3796
|
/**
|
|
3797
3797
|
* This allows us to jump from a container to a sibling container or component
|
|
3798
3798
|
* view with the same parent, so we can remove listeners efficiently.
|
|
3799
3799
|
*/
|
|
3800
|
-
[NEXT]: ɵ
|
|
3800
|
+
[NEXT]: ɵangular_packages_core_core_bp | LContainer | null;
|
|
3801
3801
|
/**
|
|
3802
3802
|
* The number of direct transplanted views which need a refresh or have descendants themselves
|
|
3803
3803
|
* that need a refresh but have not marked their ancestors as Dirty. This tells us that during
|
|
@@ -3810,7 +3810,7 @@ declare interface LContainer extends Array<any> {
|
|
|
3810
3810
|
* a different `LContainer`. We need to track views created from a given declaration point since
|
|
3811
3811
|
* queries collect matches from the embedded view declaration point and _not_ the insertion point.
|
|
3812
3812
|
*/
|
|
3813
|
-
[MOVED_VIEWS]: ɵ
|
|
3813
|
+
[MOVED_VIEWS]: ɵangular_packages_core_core_bp[] | null;
|
|
3814
3814
|
/**
|
|
3815
3815
|
* Pointer to the `TNode` which represents the host of the container.
|
|
3816
3816
|
*/
|
|
@@ -3847,7 +3847,7 @@ declare interface LFrame {
|
|
|
3847
3847
|
* An array of nodes (text, element, container, etc), pipes, their bindings, and
|
|
3848
3848
|
* any local variables that need to be stored between invocations.
|
|
3849
3849
|
*/
|
|
3850
|
-
lView: ɵ
|
|
3850
|
+
lView: ɵangular_packages_core_core_bp;
|
|
3851
3851
|
/**
|
|
3852
3852
|
* Current `TView` associated with the `LFrame.lView`.
|
|
3853
3853
|
*
|
|
@@ -3883,7 +3883,7 @@ declare interface LFrame {
|
|
|
3883
3883
|
*
|
|
3884
3884
|
* e.g. const inner = x().$implicit; const outer = x().$implicit;
|
|
3885
3885
|
*/
|
|
3886
|
-
contextLView: ɵ
|
|
3886
|
+
contextLView: ɵangular_packages_core_core_bp;
|
|
3887
3887
|
/**
|
|
3888
3888
|
* Store the element depth count. This is used to identify the root elements of the template
|
|
3889
3889
|
* so that we can then attach patch data `LView` to only those elements. We know that those
|
|
@@ -3944,7 +3944,7 @@ export declare const LOCALE_ID: InjectionToken<string>;
|
|
|
3944
3944
|
* - `<div #nativeDivEl>` - `nativeDivEl` should point to the native `<div>` element;
|
|
3945
3945
|
* - `<ng-template #tplRef>` - `tplRef` should point to the `TemplateRef` instance;
|
|
3946
3946
|
*/
|
|
3947
|
-
declare type LocalRefExtractor = (tNode: TNodeWithLocalRefs, currentView: ɵ
|
|
3947
|
+
declare type LocalRefExtractor = (tNode: TNodeWithLocalRefs, currentView: ɵangular_packages_core_core_bp) => any;
|
|
3948
3948
|
|
|
3949
3949
|
/**
|
|
3950
3950
|
* lQueries represent a collection of individual LQuery objects tracked in a given view.
|
|
@@ -4845,7 +4845,7 @@ export declare interface OutputDecorator {
|
|
|
4845
4845
|
*
|
|
4846
4846
|
* See `Input` decorator for an example of providing a binding name.
|
|
4847
4847
|
*
|
|
4848
|
-
* @see [Input and Output properties](guide/
|
|
4848
|
+
* @see [Input and Output properties](guide/inputs-outputs)
|
|
4849
4849
|
*
|
|
4850
4850
|
*/
|
|
4851
4851
|
(bindingPropertyName?: string): any;
|
|
@@ -5733,6 +5733,18 @@ declare interface RElement extends RNode {
|
|
|
5733
5733
|
setProperty?(name: string, value: any): void;
|
|
5734
5734
|
}
|
|
5735
5735
|
|
|
5736
|
+
/**
|
|
5737
|
+
* This is a synthetic lifecycle hook which gets inserted into `TView.preOrderHooks` to simulate
|
|
5738
|
+
* `ngOnChanges`.
|
|
5739
|
+
*
|
|
5740
|
+
* The hook reads the `NgSimpleChangesStore` data from the component instance and if changes are
|
|
5741
|
+
* found it invokes `ngOnChanges` on the component instance.
|
|
5742
|
+
*
|
|
5743
|
+
* @param this Component instance. Because this function gets inserted into `TView.preOrderHooks`,
|
|
5744
|
+
* it is guaranteed to be called with component instance.
|
|
5745
|
+
*/
|
|
5746
|
+
declare function rememberChangeHistoryAndInvokeOnChangesHook(this: OnChanges): void;
|
|
5747
|
+
|
|
5736
5748
|
declare const RENDERER = 11;
|
|
5737
5749
|
|
|
5738
5750
|
/**
|
|
@@ -6479,7 +6491,7 @@ declare interface TContainerNode extends TNode {
|
|
|
6479
6491
|
* - They are the first node of a component or embedded view
|
|
6480
6492
|
* - They are dynamically created
|
|
6481
6493
|
*/
|
|
6482
|
-
parent: ɵ
|
|
6494
|
+
parent: ɵangular_packages_core_core_bf | TElementContainerNode | null;
|
|
6483
6495
|
tViews: TView | TView[] | null;
|
|
6484
6496
|
projection: null;
|
|
6485
6497
|
}
|
|
@@ -6517,8 +6529,8 @@ declare type TData = (TNode | ɵPipeDef<any> | ɵDirectiveDef<any> | ɵComponent
|
|
|
6517
6529
|
declare interface TElementContainerNode extends TNode {
|
|
6518
6530
|
/** Index in the LView[] array. */
|
|
6519
6531
|
index: number;
|
|
6520
|
-
child: ɵ
|
|
6521
|
-
parent: ɵ
|
|
6532
|
+
child: ɵangular_packages_core_core_bf | TTextNode | TContainerNode | TElementContainerNode | TProjectionNode | null;
|
|
6533
|
+
parent: ɵangular_packages_core_core_bf | TElementContainerNode | null;
|
|
6522
6534
|
tViews: null;
|
|
6523
6535
|
projection: null;
|
|
6524
6536
|
}
|
|
@@ -6958,7 +6970,7 @@ declare interface TNode {
|
|
|
6958
6970
|
*
|
|
6959
6971
|
* If this is an inline view node (V), the parent will be its container.
|
|
6960
6972
|
*/
|
|
6961
|
-
parent: ɵ
|
|
6973
|
+
parent: ɵangular_packages_core_core_bf | TContainerNode | null;
|
|
6962
6974
|
/**
|
|
6963
6975
|
* List of projected TNodes for a given component host element OR index into the said nodes.
|
|
6964
6976
|
*
|
|
@@ -7146,14 +7158,14 @@ declare const enum TNodeFlags {
|
|
|
7146
7158
|
* Corresponds to the TNode.providerIndexes property.
|
|
7147
7159
|
*/
|
|
7148
7160
|
declare const enum TNodeProviderIndexes {
|
|
7149
|
-
/** The index of the first provider on this node is encoded on the least significant bits */
|
|
7150
|
-
ProvidersStartIndexMask =
|
|
7161
|
+
/** The index of the first provider on this node is encoded on the least significant bits. */
|
|
7162
|
+
ProvidersStartIndexMask = 1048575,
|
|
7151
7163
|
/**
|
|
7152
|
-
|
|
7153
|
-
|
|
7164
|
+
* The count of view providers from the component on this node is
|
|
7165
|
+
* encoded on the 20 most significant bits.
|
|
7154
7166
|
*/
|
|
7155
|
-
CptViewProvidersCountShift =
|
|
7156
|
-
CptViewProvidersCountShifter =
|
|
7167
|
+
CptViewProvidersCountShift = 20,
|
|
7168
|
+
CptViewProvidersCountShifter = 1048576
|
|
7157
7169
|
}
|
|
7158
7170
|
|
|
7159
7171
|
/**
|
|
@@ -7189,7 +7201,7 @@ declare const enum TNodeType {
|
|
|
7189
7201
|
/**
|
|
7190
7202
|
* Type representing a set of TNodes that can have local refs (`#foo`) placed on them.
|
|
7191
7203
|
*/
|
|
7192
|
-
declare type TNodeWithLocalRefs = TContainerNode | ɵ
|
|
7204
|
+
declare type TNodeWithLocalRefs = TContainerNode | ɵangular_packages_core_core_bf | TElementContainerNode;
|
|
7193
7205
|
|
|
7194
7206
|
/** Static data for an LProjectionNode */
|
|
7195
7207
|
declare interface TProjectionNode extends TNode {
|
|
@@ -7200,7 +7212,7 @@ declare interface TProjectionNode extends TNode {
|
|
|
7200
7212
|
* or embedded view (which means their parent is in a different view and must be
|
|
7201
7213
|
* retrieved using LView.node).
|
|
7202
7214
|
*/
|
|
7203
|
-
parent: ɵ
|
|
7215
|
+
parent: ɵangular_packages_core_core_bf | TElementContainerNode | null;
|
|
7204
7216
|
tViews: null;
|
|
7205
7217
|
/** Index of the projection node. (See TNode.projection for more info.) */
|
|
7206
7218
|
projection: number;
|
|
@@ -7520,7 +7532,7 @@ declare interface TTextNode extends TNode {
|
|
|
7520
7532
|
* embedded view (which means their parent is in a different view and must be
|
|
7521
7533
|
* retrieved using LView.node).
|
|
7522
7534
|
*/
|
|
7523
|
-
parent: ɵ
|
|
7535
|
+
parent: ɵangular_packages_core_core_bf | TElementContainerNode | null;
|
|
7524
7536
|
tViews: null;
|
|
7525
7537
|
projection: null;
|
|
7526
7538
|
}
|
|
@@ -7550,7 +7562,7 @@ declare interface TView {
|
|
|
7550
7562
|
* This is a blueprint used to generate LView instances for this TView. Copying this
|
|
7551
7563
|
* blueprint is faster than creating a new LView from scratch.
|
|
7552
7564
|
*/
|
|
7553
|
-
blueprint: ɵ
|
|
7565
|
+
blueprint: ɵangular_packages_core_core_bp;
|
|
7554
7566
|
/**
|
|
7555
7567
|
* The template function used to refresh the view of dynamically created views
|
|
7556
7568
|
* and components. Will be null for inline views.
|
|
@@ -7575,7 +7587,7 @@ declare interface TView {
|
|
|
7575
7587
|
* different host TNodes, depending on where the component is being used. These host
|
|
7576
7588
|
* TNodes cannot be shared (due to different indices, etc).
|
|
7577
7589
|
*/
|
|
7578
|
-
node: TViewNode | ɵ
|
|
7590
|
+
node: TViewNode | ɵangular_packages_core_core_bf | null;
|
|
7579
7591
|
/** Whether or not this template has been processed in creation mode. */
|
|
7580
7592
|
firstCreatePass: boolean;
|
|
7581
7593
|
/**
|
|
@@ -7776,7 +7788,7 @@ declare interface TView {
|
|
|
7776
7788
|
declare interface TViewNode extends TNode {
|
|
7777
7789
|
/** If -1, it's a dynamically created view. Otherwise, it is the view block ID. */
|
|
7778
7790
|
index: number;
|
|
7779
|
-
child: ɵ
|
|
7791
|
+
child: ɵangular_packages_core_core_bf | TTextNode | TElementContainerNode | TContainerNode | TProjectionNode | null;
|
|
7780
7792
|
parent: TContainerNode | null;
|
|
7781
7793
|
tViews: null;
|
|
7782
7794
|
projection: null;
|
|
@@ -8300,14 +8312,14 @@ declare class ViewRef_2<T> implements EmbeddedViewRef<T>, InternalViewRef, viewE
|
|
|
8300
8312
|
*
|
|
8301
8313
|
* @internal
|
|
8302
8314
|
*/
|
|
8303
|
-
_lView: ɵ
|
|
8315
|
+
_lView: ɵangular_packages_core_core_bp,
|
|
8304
8316
|
/**
|
|
8305
8317
|
* This represents the `LView` associated with the point where `ChangeDetectorRef` was
|
|
8306
8318
|
* requested.
|
|
8307
8319
|
*
|
|
8308
8320
|
* This may be different from `_lView` if the `_cdRefInjectingView` is an embedded view.
|
|
8309
8321
|
*/
|
|
8310
|
-
_cdRefInjectingView?: ɵ
|
|
8322
|
+
_cdRefInjectingView?: ɵangular_packages_core_core_bp | undefined);
|
|
8311
8323
|
get context(): T;
|
|
8312
8324
|
get destroyed(): boolean;
|
|
8313
8325
|
destroy(): void;
|
|
@@ -8586,28 +8598,30 @@ export declare function ɵangular_packages_core_core_b<T>(token: Type<T> | Injec
|
|
|
8586
8598
|
|
|
8587
8599
|
export declare function ɵangular_packages_core_core_b<T>(token: Type<T> | InjectionToken<T>, flags?: InjectFlags): T | null;
|
|
8588
8600
|
|
|
8601
|
+
export declare const ɵangular_packages_core_core_ba: InstructionState;
|
|
8602
|
+
|
|
8589
8603
|
/**
|
|
8590
8604
|
* Return the current `LView`.
|
|
8591
8605
|
*/
|
|
8592
|
-
export declare function ɵ
|
|
8606
|
+
export declare function ɵangular_packages_core_core_bb(): ɵangular_packages_core_core_bp;
|
|
8593
8607
|
|
|
8594
|
-
export declare function ɵ
|
|
8608
|
+
export declare function ɵangular_packages_core_core_bc(): TNode;
|
|
8595
8609
|
|
|
8596
|
-
export declare function ɵ
|
|
8610
|
+
export declare function ɵangular_packages_core_core_bd(): number;
|
|
8597
8611
|
|
|
8598
|
-
export declare function ɵ
|
|
8612
|
+
export declare function ɵangular_packages_core_core_be<T = any>(level: number): T;
|
|
8599
8613
|
|
|
8600
8614
|
/** Static data for an element */
|
|
8601
|
-
export declare interface ɵ
|
|
8615
|
+
export declare interface ɵangular_packages_core_core_bf extends TNode {
|
|
8602
8616
|
/** Index in the data[] array */
|
|
8603
8617
|
index: number;
|
|
8604
|
-
child: ɵ
|
|
8618
|
+
child: ɵangular_packages_core_core_bf | TTextNode | TElementContainerNode | TContainerNode | TProjectionNode | null;
|
|
8605
8619
|
/**
|
|
8606
8620
|
* Element nodes will have parents unless they are the first node of a component or
|
|
8607
8621
|
* embedded view (which means their parent is in a different view and must be
|
|
8608
8622
|
* retrieved using viewData[HOST_NODE]).
|
|
8609
8623
|
*/
|
|
8610
|
-
parent: ɵ
|
|
8624
|
+
parent: ɵangular_packages_core_core_bf | TElementContainerNode | null;
|
|
8611
8625
|
tViews: null;
|
|
8612
8626
|
/**
|
|
8613
8627
|
* If this is a component TNode with projection, this will be an array of projected
|
|
@@ -8629,7 +8643,7 @@ export declare interface ɵangular_packages_core_core_be extends TNode {
|
|
|
8629
8643
|
* @param thisArg Optional calling context of pureFn
|
|
8630
8644
|
* @returns Updated or cached value
|
|
8631
8645
|
*/
|
|
8632
|
-
export declare function ɵ
|
|
8646
|
+
export declare function ɵangular_packages_core_core_bg(lView: ɵangular_packages_core_core_bp, bindingRoot: number, slotOffset: number, pureFn: (v: any) => any, exp: any, thisArg?: any): any;
|
|
8633
8647
|
|
|
8634
8648
|
/**
|
|
8635
8649
|
* If the value of any provided exp has changed, calls the pure function to return
|
|
@@ -8644,7 +8658,7 @@ export declare function ɵangular_packages_core_core_bf(lView: ɵangular_package
|
|
|
8644
8658
|
* @param thisArg Optional calling context of pureFn
|
|
8645
8659
|
* @returns Updated or cached value
|
|
8646
8660
|
*/
|
|
8647
|
-
export declare function ɵ
|
|
8661
|
+
export declare function ɵangular_packages_core_core_bh(lView: ɵangular_packages_core_core_bp, bindingRoot: number, slotOffset: number, pureFn: (v1: any, v2: any) => any, exp1: any, exp2: any, thisArg?: any): any;
|
|
8648
8662
|
|
|
8649
8663
|
/**
|
|
8650
8664
|
* If the value of any provided exp has changed, calls the pure function to return
|
|
@@ -8660,7 +8674,7 @@ export declare function ɵangular_packages_core_core_bg(lView: ɵangular_package
|
|
|
8660
8674
|
* @param thisArg Optional calling context of pureFn
|
|
8661
8675
|
* @returns Updated or cached value
|
|
8662
8676
|
*/
|
|
8663
|
-
export declare function ɵ
|
|
8677
|
+
export declare function ɵangular_packages_core_core_bi(lView: ɵangular_packages_core_core_bp, bindingRoot: number, slotOffset: number, pureFn: (v1: any, v2: any, v3: any) => any, exp1: any, exp2: any, exp3: any, thisArg?: any): any;
|
|
8664
8678
|
|
|
8665
8679
|
/**
|
|
8666
8680
|
* If the value of any provided exp has changed, calls the pure function to return
|
|
@@ -8678,7 +8692,7 @@ export declare function ɵangular_packages_core_core_bh(lView: ɵangular_package
|
|
|
8678
8692
|
* @returns Updated or cached value
|
|
8679
8693
|
*
|
|
8680
8694
|
*/
|
|
8681
|
-
export declare function ɵ
|
|
8695
|
+
export declare function ɵangular_packages_core_core_bj(lView: ɵangular_packages_core_core_bp, 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;
|
|
8682
8696
|
|
|
8683
8697
|
/**
|
|
8684
8698
|
* pureFunction instruction that can support any number of bindings.
|
|
@@ -8695,7 +8709,7 @@ export declare function ɵangular_packages_core_core_bi(lView: ɵangular_package
|
|
|
8695
8709
|
* @param thisArg Optional calling context of pureFn
|
|
8696
8710
|
* @returns Updated or cached value
|
|
8697
8711
|
*/
|
|
8698
|
-
export declare function ɵ
|
|
8712
|
+
export declare function ɵangular_packages_core_core_bk(lView: ɵangular_packages_core_core_bp, bindingRoot: number, slotOffset: number, pureFn: (...v: any[]) => any, exps: any[], thisArg?: any): any;
|
|
8699
8713
|
|
|
8700
8714
|
/**
|
|
8701
8715
|
* Detects which sanitizer to use for URL property, based on tag name and prop name.
|
|
@@ -8704,14 +8718,14 @@ export declare function ɵangular_packages_core_core_bj(lView: ɵangular_package
|
|
|
8704
8718
|
* `packages/compiler/src/schema/dom_security_schema.ts`.
|
|
8705
8719
|
* If tag and prop names don't match Resource URL schema, use URL sanitizer.
|
|
8706
8720
|
*/
|
|
8707
|
-
export declare function ɵ
|
|
8721
|
+
export declare function ɵangular_packages_core_core_bl(tag: string, prop: string): typeof ɵɵsanitizeResourceUrl;
|
|
8708
8722
|
|
|
8709
|
-
export declare function ɵ
|
|
8723
|
+
export declare function ɵangular_packages_core_core_bm(name: string, props?: (...args: any[]) => any, parentClass?: any): any;
|
|
8710
8724
|
|
|
8711
|
-
export declare function ɵ
|
|
8725
|
+
export declare function ɵangular_packages_core_core_bn(name: string, props?: (...args: any[]) => any, parentClass?: any, additionalProcessing?: (target: any, name: string, ...args: any[]) => void): any;
|
|
8712
8726
|
|
|
8713
8727
|
|
|
8714
|
-
export declare function ɵ
|
|
8728
|
+
export declare function ɵangular_packages_core_core_bo<T>(objWithPropertyToExtract: T): string;
|
|
8715
8729
|
|
|
8716
8730
|
/**
|
|
8717
8731
|
* `LView` stores all of the information needed to process the instructions as
|
|
@@ -8723,7 +8737,7 @@ export declare function ɵangular_packages_core_core_bn<T>(objWithPropertyToExtr
|
|
|
8723
8737
|
* Keeping separate state for each view facilities view insertion / deletion, so we
|
|
8724
8738
|
* don't have to edit the data array based on which views are present.
|
|
8725
8739
|
*/
|
|
8726
|
-
export declare interface ɵ
|
|
8740
|
+
export declare interface ɵangular_packages_core_core_bp extends Array<any> {
|
|
8727
8741
|
/**
|
|
8728
8742
|
* The host node for this LView instance, if this is a component view.
|
|
8729
8743
|
* If this is an embedded view, HOST will be null.
|
|
@@ -8746,7 +8760,7 @@ export declare interface ɵangular_packages_core_core_bo extends Array<any> {
|
|
|
8746
8760
|
*
|
|
8747
8761
|
* `LContainer` - The current view is part of a container, and is an embedded view.
|
|
8748
8762
|
*/
|
|
8749
|
-
[PARENT]: ɵ
|
|
8763
|
+
[PARENT]: ɵangular_packages_core_core_bp | LContainer | null;
|
|
8750
8764
|
/**
|
|
8751
8765
|
*
|
|
8752
8766
|
* The next sibling LView or LContainer.
|
|
@@ -8756,7 +8770,7 @@ export declare interface ɵangular_packages_core_core_bo extends Array<any> {
|
|
|
8756
8770
|
* views in the same container. We need a way to link component views and views
|
|
8757
8771
|
* across containers as well.
|
|
8758
8772
|
*/
|
|
8759
|
-
[NEXT]: ɵ
|
|
8773
|
+
[NEXT]: ɵangular_packages_core_core_bp | LContainer | null;
|
|
8760
8774
|
/** Queries active for this view - nodes from a view are reported to those queries. */
|
|
8761
8775
|
[QUERIES]: LQueries | null;
|
|
8762
8776
|
/**
|
|
@@ -8769,7 +8783,7 @@ export declare interface ɵangular_packages_core_core_bo extends Array<any> {
|
|
|
8769
8783
|
*
|
|
8770
8784
|
* If null, this is the root view of an application (root component is in this view).
|
|
8771
8785
|
*/
|
|
8772
|
-
[T_HOST]: TViewNode | ɵ
|
|
8786
|
+
[T_HOST]: TViewNode | ɵangular_packages_core_core_bf | null;
|
|
8773
8787
|
/**
|
|
8774
8788
|
* When a view is destroyed, listeners need to be released and outputs need to be
|
|
8775
8789
|
* unsubscribed. This context array stores both listener functions wrapped with
|
|
@@ -8802,14 +8816,14 @@ export declare interface ɵangular_packages_core_core_bo extends Array<any> {
|
|
|
8802
8816
|
* Necessary to store this so views can traverse through their nested views
|
|
8803
8817
|
* to remove listeners and call onDestroy callbacks.
|
|
8804
8818
|
*/
|
|
8805
|
-
[CHILD_HEAD]: ɵ
|
|
8819
|
+
[CHILD_HEAD]: ɵangular_packages_core_core_bp | LContainer | null;
|
|
8806
8820
|
/**
|
|
8807
8821
|
* The last LView or LContainer beneath this LView in the hierarchy.
|
|
8808
8822
|
*
|
|
8809
8823
|
* The tail allows us to quickly add a new state to the end of the view list
|
|
8810
8824
|
* without having to propagate starting from the first child.
|
|
8811
8825
|
*/
|
|
8812
|
-
[CHILD_TAIL]: ɵ
|
|
8826
|
+
[CHILD_TAIL]: ɵangular_packages_core_core_bp | LContainer | null;
|
|
8813
8827
|
/**
|
|
8814
8828
|
* View where this view's template was declared.
|
|
8815
8829
|
*
|
|
@@ -8834,7 +8848,7 @@ export declare interface ɵangular_packages_core_core_bo extends Array<any> {
|
|
|
8834
8848
|
* template function during change detection, we need the declaration view to get inherited
|
|
8835
8849
|
* context.
|
|
8836
8850
|
*/
|
|
8837
|
-
[DECLARATION_VIEW]: ɵ
|
|
8851
|
+
[DECLARATION_VIEW]: ɵangular_packages_core_core_bp | null;
|
|
8838
8852
|
/**
|
|
8839
8853
|
* Points to the declaration component view, used to track transplanted `LView`s.
|
|
8840
8854
|
*
|
|
@@ -8904,7 +8918,7 @@ export declare interface ɵangular_packages_core_core_bo extends Array<any> {
|
|
|
8904
8918
|
* - `LView[DECLARATION_LCONTAINER]` similar problem for queries
|
|
8905
8919
|
* - `LContainer[MOVED_VIEWS]` similar problem for queries
|
|
8906
8920
|
*/
|
|
8907
|
-
[DECLARATION_COMPONENT_VIEW]: ɵ
|
|
8921
|
+
[DECLARATION_COMPONENT_VIEW]: ɵangular_packages_core_core_bp;
|
|
8908
8922
|
/**
|
|
8909
8923
|
* A declaration point of embedded views (ones instantiated based on the content of a
|
|
8910
8924
|
* <ng-template>), null for other types of views.
|
|
@@ -8937,7 +8951,7 @@ export declare interface ɵangular_packages_core_core_bo extends Array<any> {
|
|
|
8937
8951
|
* to something which is retained otherwise the call to `noSideEffects` will be removed by closure
|
|
8938
8952
|
* compiler.
|
|
8939
8953
|
*/
|
|
8940
|
-
export declare function ɵ
|
|
8954
|
+
export declare function ɵangular_packages_core_core_bq<T>(fn: () => T): T;
|
|
8941
8955
|
|
|
8942
8956
|
/**
|
|
8943
8957
|
* Returns the `RootContext` instance that is associated with
|
|
@@ -8946,7 +8960,7 @@ export declare function ɵangular_packages_core_core_bp<T>(fn: () => T): T;
|
|
|
8946
8960
|
*
|
|
8947
8961
|
* @param viewOrComponent the `LView` or component to get the root context for.
|
|
8948
8962
|
*/
|
|
8949
|
-
export declare function ɵ
|
|
8963
|
+
export declare function ɵangular_packages_core_core_br(viewOrComponent: ɵangular_packages_core_core_bp | {}): RootContext;
|
|
8950
8964
|
|
|
8951
8965
|
export declare class ɵangular_packages_core_core_c implements Injector {
|
|
8952
8966
|
get(token: any, notFoundValue?: any): any;
|
|
@@ -9004,7 +9018,7 @@ export declare function ɵangular_packages_core_core_g(): string;
|
|
|
9004
9018
|
* @param view The view to which the node belongs
|
|
9005
9019
|
* @returns The ElementRef instance to use
|
|
9006
9020
|
*/
|
|
9007
|
-
export declare function ɵangular_packages_core_core_h(ElementRefToken: typeof ElementRef, tNode: TNode, view: ɵ
|
|
9021
|
+
export declare function ɵangular_packages_core_core_h(ElementRefToken: typeof ElementRef, tNode: TNode, view: ɵangular_packages_core_core_bp): ElementRef;
|
|
9008
9022
|
|
|
9009
9023
|
/**
|
|
9010
9024
|
* Creates a TemplateRef and stores it on the injector.
|
|
@@ -9015,7 +9029,7 @@ export declare function ɵangular_packages_core_core_h(ElementRefToken: typeof E
|
|
|
9015
9029
|
* @param hostView The view to which the node belongs
|
|
9016
9030
|
* @returns The TemplateRef instance or null if we can't create a TemplateRef on a given node type
|
|
9017
9031
|
*/
|
|
9018
|
-
export declare function ɵangular_packages_core_core_i<T>(TemplateRefToken: typeof TemplateRef, ElementRefToken: typeof ElementRef, hostTNode: TNode, hostView: ɵ
|
|
9032
|
+
export declare function ɵangular_packages_core_core_i<T>(TemplateRefToken: typeof TemplateRef, ElementRefToken: typeof ElementRef, hostTNode: TNode, hostView: ɵangular_packages_core_core_bp): TemplateRef<T> | null;
|
|
9019
9033
|
|
|
9020
9034
|
export declare function ɵangular_packages_core_core_j(id: string): NgModuleFactory<any>;
|
|
9021
9035
|
|
|
@@ -9122,11 +9136,13 @@ export declare abstract class ɵangular_packages_core_core_w {
|
|
|
9122
9136
|
abstract logError(console: Console, ...values: any[]): void;
|
|
9123
9137
|
}
|
|
9124
9138
|
|
|
9139
|
+
export declare function ɵangular_packages_core_core_x<T>(definition: ɵDirectiveDef<T>): typeof rememberChangeHistoryAndInvokeOnChangesHook;
|
|
9140
|
+
|
|
9125
9141
|
/**
|
|
9126
9142
|
* A change detection scheduler token for {@link RootContext}. This token is the default value used
|
|
9127
9143
|
* for the default `RootContext` found in the {@link ROOT_CONTEXT} token.
|
|
9128
9144
|
*/
|
|
9129
|
-
export declare const ɵ
|
|
9145
|
+
export declare const ɵangular_packages_core_core_y: InjectionToken<(fn: () => void) => void>;
|
|
9130
9146
|
|
|
9131
9147
|
/**
|
|
9132
9148
|
* Inject static attribute value into directive constructor.
|
|
@@ -9159,9 +9175,7 @@ export declare const ɵangular_packages_core_core_x: InjectionToken<(fn: () => v
|
|
|
9159
9175
|
*
|
|
9160
9176
|
* @publicApi
|
|
9161
9177
|
*/
|
|
9162
|
-
export declare function ɵ
|
|
9163
|
-
|
|
9164
|
-
export declare const ɵangular_packages_core_core_z: InstructionState;
|
|
9178
|
+
export declare function ɵangular_packages_core_core_z(tNode: TNode, attrNameToInject: string): string | null;
|
|
9165
9179
|
|
|
9166
9180
|
/**
|
|
9167
9181
|
* Providers that generate a random `APP_ID_TOKEN`.
|
|
@@ -9777,14 +9791,6 @@ export declare interface ɵDirectiveDef<T> {
|
|
|
9777
9791
|
* Populated when the factory is first requested by directive instantiation logic.
|
|
9778
9792
|
*/
|
|
9779
9793
|
readonly factory: FactoryFn<T> | null;
|
|
9780
|
-
readonly onChanges: (() => void) | null;
|
|
9781
|
-
readonly onInit: (() => void) | null;
|
|
9782
|
-
readonly doCheck: (() => void) | null;
|
|
9783
|
-
readonly afterContentInit: (() => void) | null;
|
|
9784
|
-
readonly afterContentChecked: (() => void) | null;
|
|
9785
|
-
readonly afterViewInit: (() => void) | null;
|
|
9786
|
-
readonly afterViewChecked: (() => void) | null;
|
|
9787
|
-
readonly onDestroy: (() => void) | null;
|
|
9788
9794
|
/**
|
|
9789
9795
|
* The features applied to this directive
|
|
9790
9796
|
*/
|
|
@@ -9996,7 +10002,7 @@ export declare interface ɵLContext {
|
|
|
9996
10002
|
/**
|
|
9997
10003
|
* The component's parent view data.
|
|
9998
10004
|
*/
|
|
9999
|
-
lView: ɵ
|
|
10005
|
+
lView: ɵangular_packages_core_core_bp;
|
|
10000
10006
|
/**
|
|
10001
10007
|
* The index instance of the node.
|
|
10002
10008
|
*/
|
|
@@ -10497,7 +10503,7 @@ export declare class ɵRender3ComponentRef<T> extends ComponentRef<T> {
|
|
|
10497
10503
|
hostView: ViewRef_2<T>;
|
|
10498
10504
|
changeDetectorRef: ChangeDetectorRef;
|
|
10499
10505
|
componentType: Type<T>;
|
|
10500
|
-
constructor(componentType: Type<T>, instance: T, location: ElementRef, _rootLView: ɵ
|
|
10506
|
+
constructor(componentType: Type<T>, instance: T, location: ElementRef, _rootLView: ɵangular_packages_core_core_bp, _tNode: ɵangular_packages_core_core_bf | TContainerNode | TElementContainerNode);
|
|
10501
10507
|
get injector(): Injector;
|
|
10502
10508
|
destroy(): void;
|
|
10503
10509
|
onDestroy(callback: () => void): void;
|
|
@@ -10671,7 +10677,7 @@ export declare function ɵsetLocaleId(localeId: string): void;
|
|
|
10671
10677
|
export declare type ɵSetterFn = (obj: any, value: any) => void;
|
|
10672
10678
|
|
|
10673
10679
|
/** Store a value in the `data` at a given `index`. */
|
|
10674
|
-
export declare function ɵstore<T>(tView: TView, lView: ɵ
|
|
10680
|
+
export declare function ɵstore<T>(tView: TView, lView: ɵangular_packages_core_core_bp, index: number, value: T): void;
|
|
10675
10681
|
|
|
10676
10682
|
|
|
10677
10683
|
export declare function ɵstringify(token: any): string;
|
|
@@ -11433,29 +11439,6 @@ export declare type ɵɵComponentDefWithMeta<T, Selector extends String, ExportA
|
|
|
11433
11439
|
[key: string]: string;
|
|
11434
11440
|
}, QueryFields extends string[], NgContentSelectors extends string[]> = ɵComponentDef<T>;
|
|
11435
11441
|
|
|
11436
|
-
/**
|
|
11437
|
-
* Registers a synthetic host listener (e.g. `(@foo.start)`) on a component or directive.
|
|
11438
|
-
*
|
|
11439
|
-
* This instruction is for compatibility purposes and is designed to ensure that a
|
|
11440
|
-
* synthetic host listener (e.g. `@HostListener('@foo.start')`) properly gets rendered
|
|
11441
|
-
* in the component's renderer. Normally all host listeners are evaluated with the
|
|
11442
|
-
* parent component's renderer, but, in the case of animation @triggers, they need
|
|
11443
|
-
* to be evaluated with the sub component's renderer (because that's where the
|
|
11444
|
-
* animation triggers are defined).
|
|
11445
|
-
*
|
|
11446
|
-
* Do not use this instruction as a replacement for `listener`. This instruction
|
|
11447
|
-
* only exists to ensure compatibility with the ViewEngine's host binding behavior.
|
|
11448
|
-
*
|
|
11449
|
-
* @param eventName Name of the event
|
|
11450
|
-
* @param listenerFn The function to be called when event emits
|
|
11451
|
-
* @param useCapture Whether or not to use capture in event listener
|
|
11452
|
-
* @param eventTargetResolver Function that returns global target information in case this listener
|
|
11453
|
-
* should be attached to a global object like window, document or body
|
|
11454
|
-
*
|
|
11455
|
-
* @codeGenApi
|
|
11456
|
-
*/
|
|
11457
|
-
export declare function ɵɵcomponentHostSyntheticListener(eventName: string, listenerFn: (e?: any) => any, useCapture?: boolean, eventTargetResolver?: GlobalTargetResolver): typeof ɵɵcomponentHostSyntheticListener;
|
|
11458
|
-
|
|
11459
11442
|
/**
|
|
11460
11443
|
* Registers a QueryList, associated with a content query, for later refresh (part of a view
|
|
11461
11444
|
* refresh).
|
|
@@ -12496,7 +12479,7 @@ export declare type ɵɵNgModuleDefWithMeta<T, Declarations, Imports, Exports> =
|
|
|
12496
12479
|
*
|
|
12497
12480
|
* @codeGenApi
|
|
12498
12481
|
*/
|
|
12499
|
-
export declare function ɵɵNgOnChangesFeature<T>(
|
|
12482
|
+
export declare function ɵɵNgOnChangesFeature<T>(): DirectiveDefFeature;
|
|
12500
12483
|
|
|
12501
12484
|
|
|
12502
12485
|
/**
|
|
@@ -14096,6 +14079,52 @@ export declare function ɵɵstylePropInterpolate8(prop: string, prefix: string,
|
|
|
14096
14079
|
*/
|
|
14097
14080
|
export declare function ɵɵstylePropInterpolateV(prop: string, values: any[], valueSuffix?: string | null): typeof ɵɵstylePropInterpolateV;
|
|
14098
14081
|
|
|
14082
|
+
/**
|
|
14083
|
+
* Registers a synthetic host listener (e.g. `(@foo.start)`) on a component or directive.
|
|
14084
|
+
*
|
|
14085
|
+
* This instruction is for compatibility purposes and is designed to ensure that a
|
|
14086
|
+
* synthetic host listener (e.g. `@HostListener('@foo.start')`) properly gets rendered
|
|
14087
|
+
* in the component's renderer. Normally all host listeners are evaluated with the
|
|
14088
|
+
* parent component's renderer, but, in the case of animation @triggers, they need
|
|
14089
|
+
* to be evaluated with the sub component's renderer (because that's where the
|
|
14090
|
+
* animation triggers are defined).
|
|
14091
|
+
*
|
|
14092
|
+
* Do not use this instruction as a replacement for `listener`. This instruction
|
|
14093
|
+
* only exists to ensure compatibility with the ViewEngine's host binding behavior.
|
|
14094
|
+
*
|
|
14095
|
+
* @param eventName Name of the event
|
|
14096
|
+
* @param listenerFn The function to be called when event emits
|
|
14097
|
+
* @param useCapture Whether or not to use capture in event listener
|
|
14098
|
+
* @param eventTargetResolver Function that returns global target information in case this listener
|
|
14099
|
+
* should be attached to a global object like window, document or body
|
|
14100
|
+
*
|
|
14101
|
+
* @codeGenApi
|
|
14102
|
+
*/
|
|
14103
|
+
export declare function ɵɵsyntheticHostListener(eventName: string, listenerFn: (e?: any) => any, useCapture?: boolean, eventTargetResolver?: GlobalTargetResolver): typeof ɵɵsyntheticHostListener;
|
|
14104
|
+
|
|
14105
|
+
/**
|
|
14106
|
+
* Updates a synthetic host binding (e.g. `[@foo]`) on a component or directive.
|
|
14107
|
+
*
|
|
14108
|
+
* This instruction is for compatibility purposes and is designed to ensure that a
|
|
14109
|
+
* synthetic host binding (e.g. `@HostBinding('@foo')`) properly gets rendered in
|
|
14110
|
+
* the component's renderer. Normally all host bindings are evaluated with the parent
|
|
14111
|
+
* component's renderer, but, in the case of animation @triggers, they need to be
|
|
14112
|
+
* evaluated with the sub component's renderer (because that's where the animation
|
|
14113
|
+
* triggers are defined).
|
|
14114
|
+
*
|
|
14115
|
+
* Do not use this instruction as a replacement for `elementProperty`. This instruction
|
|
14116
|
+
* only exists to ensure compatibility with the ViewEngine's host binding behavior.
|
|
14117
|
+
*
|
|
14118
|
+
* @param index The index of the element to update in the data array
|
|
14119
|
+
* @param propName Name of property. Because it is going to DOM, this is not subject to
|
|
14120
|
+
* renaming as part of minification.
|
|
14121
|
+
* @param value New value to write.
|
|
14122
|
+
* @param sanitizer An optional function used to sanitize the value.
|
|
14123
|
+
*
|
|
14124
|
+
* @codeGenApi
|
|
14125
|
+
*/
|
|
14126
|
+
export declare function ɵɵsyntheticHostProperty<T>(propName: string, value: T | ɵNO_CHANGE, sanitizer?: SanitizerFn | null): typeof ɵɵsyntheticHostProperty;
|
|
14127
|
+
|
|
14099
14128
|
/**
|
|
14100
14129
|
* Creates an LContainer for an ng-template (dynamically-inserted view), e.g.
|
|
14101
14130
|
*
|
|
@@ -14123,7 +14152,7 @@ export declare function ɵɵtemplate(index: number, templateFn: ComponentTemplat
|
|
|
14123
14152
|
*
|
|
14124
14153
|
* @codeGenApi
|
|
14125
14154
|
*/
|
|
14126
|
-
export declare function ɵɵtemplateRefExtractor(tNode: TNode, currentView: ɵ
|
|
14155
|
+
export declare function ɵɵtemplateRefExtractor(tNode: TNode, currentView: ɵangular_packages_core_core_bp): TemplateRef<unknown> | null;
|
|
14127
14156
|
|
|
14128
14157
|
/**
|
|
14129
14158
|
* Create static text node
|
|
@@ -14359,29 +14388,6 @@ export declare function ɵɵtextInterpolate8(prefix: string, v0: any, i0: string
|
|
|
14359
14388
|
*/
|
|
14360
14389
|
export declare function ɵɵtextInterpolateV(values: any[]): typeof ɵɵtextInterpolateV;
|
|
14361
14390
|
|
|
14362
|
-
/**
|
|
14363
|
-
* Updates a synthetic host binding (e.g. `[@foo]`) on a component or directive.
|
|
14364
|
-
*
|
|
14365
|
-
* This instruction is for compatibility purposes and is designed to ensure that a
|
|
14366
|
-
* synthetic host binding (e.g. `@HostBinding('@foo')`) properly gets rendered in
|
|
14367
|
-
* the component's renderer. Normally all host bindings are evaluated with the parent
|
|
14368
|
-
* component's renderer, but, in the case of animation @triggers, they need to be
|
|
14369
|
-
* evaluated with the sub component's renderer (because that's where the animation
|
|
14370
|
-
* triggers are defined).
|
|
14371
|
-
*
|
|
14372
|
-
* Do not use this instruction as a replacement for `elementProperty`. This instruction
|
|
14373
|
-
* only exists to ensure compatibility with the ViewEngine's host binding behavior.
|
|
14374
|
-
*
|
|
14375
|
-
* @param index The index of the element to update in the data array
|
|
14376
|
-
* @param propName Name of property. Because it is going to DOM, this is not subject to
|
|
14377
|
-
* renaming as part of minification.
|
|
14378
|
-
* @param value New value to write.
|
|
14379
|
-
* @param sanitizer An optional function used to sanitize the value.
|
|
14380
|
-
*
|
|
14381
|
-
* @codeGenApi
|
|
14382
|
-
*/
|
|
14383
|
-
export declare function ɵɵupdateSyntheticHostBinding<T>(propName: string, value: T | ɵNO_CHANGE, sanitizer?: SanitizerFn | null): typeof ɵɵupdateSyntheticHostBinding;
|
|
14384
|
-
|
|
14385
14391
|
/**
|
|
14386
14392
|
* Creates new QueryList, stores the reference in LView and returns QueryList.
|
|
14387
14393
|
*
|