@angular/core 15.1.0-next.0 → 15.1.0-next.1
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/esm2020/src/render/api.mjs +1 -3
- package/esm2020/src/render3/assert.mjs +1 -5
- package/esm2020/src/render3/component_ref.mjs +1 -12
- package/esm2020/src/render3/index.mjs +2 -2
- package/esm2020/src/render3/instructions/shared.mjs +87 -162
- package/esm2020/src/render3/interfaces/view.mjs +1 -10
- package/esm2020/src/render3/util/discovery_utils.mjs +3 -32
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/logger.mjs +3 -3
- package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
- package/fesm2015/core.mjs +184 -1019
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +186 -1021
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +184 -1019
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +186 -1021
- package/fesm2020/testing.mjs.map +1 -1
- package/index.d.ts +1 -222
- package/package.json +1 -1
- package/testing/index.d.ts +1 -1
- package/esm2020/src/render3/instructions/lview_debug.mjs +0 -684
- package/esm2020/src/util/named_array_type.mjs +0 -40
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.1.0-next.
|
|
2
|
+
* @license Angular v15.1.0-next.1
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -2003,49 +2003,6 @@ export declare class DebugNode {
|
|
|
2003
2003
|
get providerTokens(): any[];
|
|
2004
2004
|
}
|
|
2005
2005
|
|
|
2006
|
-
/**
|
|
2007
|
-
* A logical node which comprise into `LView`s.
|
|
2008
|
-
*
|
|
2009
|
-
*/
|
|
2010
|
-
declare interface DebugNode_2 {
|
|
2011
|
-
/**
|
|
2012
|
-
* HTML representation of the node.
|
|
2013
|
-
*/
|
|
2014
|
-
html: string | null;
|
|
2015
|
-
/**
|
|
2016
|
-
* Associated `TNode`
|
|
2017
|
-
*/
|
|
2018
|
-
tNode: TNode;
|
|
2019
|
-
/**
|
|
2020
|
-
* Human readable node type.
|
|
2021
|
-
*/
|
|
2022
|
-
type: string;
|
|
2023
|
-
/**
|
|
2024
|
-
* DOM native node.
|
|
2025
|
-
*/
|
|
2026
|
-
native: Node;
|
|
2027
|
-
/**
|
|
2028
|
-
* Child nodes
|
|
2029
|
-
*/
|
|
2030
|
-
children: DebugNode_2[];
|
|
2031
|
-
/**
|
|
2032
|
-
* A list of Component/Directive types which need to be instantiated an this location.
|
|
2033
|
-
*/
|
|
2034
|
-
factories: Type<unknown>[];
|
|
2035
|
-
/**
|
|
2036
|
-
* A list of Component/Directive instances which were instantiated an this location.
|
|
2037
|
-
*/
|
|
2038
|
-
instances: unknown[];
|
|
2039
|
-
/**
|
|
2040
|
-
* NodeInjector information.
|
|
2041
|
-
*/
|
|
2042
|
-
injector: NodeInjectorDebug;
|
|
2043
|
-
/**
|
|
2044
|
-
* Injector resolution path.
|
|
2045
|
-
*/
|
|
2046
|
-
injectorResolutionPath: any;
|
|
2047
|
-
}
|
|
2048
|
-
|
|
2049
2006
|
declare const DECLARATION_COMPONENT_VIEW = 16;
|
|
2050
2007
|
|
|
2051
2008
|
declare const DECLARATION_LCONTAINER = 17;
|
|
@@ -4643,28 +4600,6 @@ declare interface LContainer extends Array<any> {
|
|
|
4643
4600
|
[VIEW_REFS]: unknown[] | null;
|
|
4644
4601
|
}
|
|
4645
4602
|
|
|
4646
|
-
/**
|
|
4647
|
-
* Human readable version of the `LContainer`
|
|
4648
|
-
*
|
|
4649
|
-
* `LContainer` is a data structure used internally to keep track of child views. The `LContainer`
|
|
4650
|
-
* is designed for efficiency and so at times it is difficult to read or write tests which assert on
|
|
4651
|
-
* its values. For this reason when `ngDevMode` is true we patch a `LContainer.debug` property which
|
|
4652
|
-
* points to `LContainerDebug` for easier debugging and test writing. It is the intent of
|
|
4653
|
-
* `LContainerDebug` to be used in tests.
|
|
4654
|
-
*/
|
|
4655
|
-
declare interface LContainerDebug {
|
|
4656
|
-
readonly native: RComment;
|
|
4657
|
-
/**
|
|
4658
|
-
* Child `LView`s.
|
|
4659
|
-
*/
|
|
4660
|
-
readonly views: LViewDebug[];
|
|
4661
|
-
readonly parent: LViewDebug | null;
|
|
4662
|
-
readonly movedViews: LView[] | null;
|
|
4663
|
-
readonly host: RElement | RComment | LView;
|
|
4664
|
-
readonly next: LViewDebug | LContainerDebug | null;
|
|
4665
|
-
readonly hasTransplantedViews: boolean;
|
|
4666
|
-
}
|
|
4667
|
-
|
|
4668
4603
|
/**
|
|
4669
4604
|
* Provide this token to set the locale of your application.
|
|
4670
4605
|
* It is used for i18n extraction, by i18n pipes (DatePipe, I18nPluralPipe, CurrencyPipe,
|
|
@@ -4763,14 +4698,6 @@ declare interface LQuery<T> {
|
|
|
4763
4698
|
* don't have to edit the data array based on which views are present.
|
|
4764
4699
|
*/
|
|
4765
4700
|
declare interface LView<T = unknown> extends Array<any> {
|
|
4766
|
-
/**
|
|
4767
|
-
* Human readable representation of the `LView`.
|
|
4768
|
-
*
|
|
4769
|
-
* NOTE: This property only exists if `ngDevMode` is set to `true` and it is not present in
|
|
4770
|
-
* production. Its presence is purely to help debug issue in development, and should not be relied
|
|
4771
|
-
* on in production application.
|
|
4772
|
-
*/
|
|
4773
|
-
debug?: LViewDebug;
|
|
4774
4701
|
/**
|
|
4775
4702
|
* The node into which this `LView` is inserted.
|
|
4776
4703
|
*/
|
|
@@ -5001,131 +4928,6 @@ declare interface LView<T = unknown> extends Array<any> {
|
|
|
5001
4928
|
readonly [EMBEDDED_VIEW_INJECTOR]: Injector | null;
|
|
5002
4929
|
}
|
|
5003
4930
|
|
|
5004
|
-
/**
|
|
5005
|
-
* Human readable version of the `LView`.
|
|
5006
|
-
*
|
|
5007
|
-
* `LView` is a data structure used internally to keep track of views. The `LView` is designed for
|
|
5008
|
-
* efficiency and so at times it is difficult to read or write tests which assert on its values. For
|
|
5009
|
-
* this reason when `ngDevMode` is true we patch a `LView.debug` property which points to
|
|
5010
|
-
* `LViewDebug` for easier debugging and test writing. It is the intent of `LViewDebug` to be used
|
|
5011
|
-
* in tests.
|
|
5012
|
-
*/
|
|
5013
|
-
declare interface LViewDebug<T = unknown> {
|
|
5014
|
-
/**
|
|
5015
|
-
* Flags associated with the `LView` unpacked into a more readable state.
|
|
5016
|
-
*
|
|
5017
|
-
* See `LViewFlags` for the flag meanings.
|
|
5018
|
-
*/
|
|
5019
|
-
readonly flags: {
|
|
5020
|
-
initPhaseState: number;
|
|
5021
|
-
creationMode: boolean;
|
|
5022
|
-
firstViewPass: boolean;
|
|
5023
|
-
checkAlways: boolean;
|
|
5024
|
-
dirty: boolean;
|
|
5025
|
-
attached: boolean;
|
|
5026
|
-
destroyed: boolean;
|
|
5027
|
-
isRoot: boolean;
|
|
5028
|
-
indexWithinInitPhase: number;
|
|
5029
|
-
};
|
|
5030
|
-
/**
|
|
5031
|
-
* Associated TView
|
|
5032
|
-
*/
|
|
5033
|
-
readonly tView: TView;
|
|
5034
|
-
/**
|
|
5035
|
-
* Parent view (or container)
|
|
5036
|
-
*/
|
|
5037
|
-
readonly parent: LViewDebug | LContainerDebug | null;
|
|
5038
|
-
/**
|
|
5039
|
-
* Next sibling to the `LView`.
|
|
5040
|
-
*/
|
|
5041
|
-
readonly next: LViewDebug | LContainerDebug | null;
|
|
5042
|
-
/**
|
|
5043
|
-
* The context used for evaluation of the `LView`
|
|
5044
|
-
*
|
|
5045
|
-
* (Usually the component)
|
|
5046
|
-
*/
|
|
5047
|
-
readonly context: T;
|
|
5048
|
-
/**
|
|
5049
|
-
* Hierarchical tree of nodes.
|
|
5050
|
-
*/
|
|
5051
|
-
readonly nodes: DebugNode_2[];
|
|
5052
|
-
/**
|
|
5053
|
-
* Template structure (no instance data).
|
|
5054
|
-
* (Shows how TNodes are connected)
|
|
5055
|
-
*/
|
|
5056
|
-
readonly template: string;
|
|
5057
|
-
/**
|
|
5058
|
-
* HTML representation of the `LView`.
|
|
5059
|
-
*
|
|
5060
|
-
* This is only approximate to actual HTML as child `LView`s are removed.
|
|
5061
|
-
*/
|
|
5062
|
-
readonly html: string;
|
|
5063
|
-
/**
|
|
5064
|
-
* The host element to which this `LView` is attached.
|
|
5065
|
-
*/
|
|
5066
|
-
readonly hostHTML: string | null;
|
|
5067
|
-
/**
|
|
5068
|
-
* Child `LView`s
|
|
5069
|
-
*/
|
|
5070
|
-
readonly childViews: Array<LViewDebug | LContainerDebug>;
|
|
5071
|
-
/**
|
|
5072
|
-
* Sub range of `LView` containing decls (DOM elements).
|
|
5073
|
-
*/
|
|
5074
|
-
readonly decls: LViewDebugRange;
|
|
5075
|
-
/**
|
|
5076
|
-
* Sub range of `LView` containing vars (bindings).
|
|
5077
|
-
*/
|
|
5078
|
-
readonly vars: LViewDebugRange;
|
|
5079
|
-
/**
|
|
5080
|
-
* Sub range of `LView` containing expando (used by DI).
|
|
5081
|
-
*/
|
|
5082
|
-
readonly expando: LViewDebugRange;
|
|
5083
|
-
}
|
|
5084
|
-
|
|
5085
|
-
/**
|
|
5086
|
-
* `LView` is subdivided to ranges where the actual data is stored. Some of these ranges such as
|
|
5087
|
-
* `decls` and `vars` are known at compile time. Other such as `i18n` and `expando` are runtime only
|
|
5088
|
-
* concepts.
|
|
5089
|
-
*/
|
|
5090
|
-
declare interface LViewDebugRange {
|
|
5091
|
-
/**
|
|
5092
|
-
* The starting index in `LView` where the range begins. (Inclusive)
|
|
5093
|
-
*/
|
|
5094
|
-
start: number;
|
|
5095
|
-
/**
|
|
5096
|
-
* The ending index in `LView` where the range ends. (Exclusive)
|
|
5097
|
-
*/
|
|
5098
|
-
end: number;
|
|
5099
|
-
/**
|
|
5100
|
-
* The length of the range
|
|
5101
|
-
*/
|
|
5102
|
-
length: number;
|
|
5103
|
-
/**
|
|
5104
|
-
* The merged content of the range. `t` contains data from `TView.data` and `l` contains `LView`
|
|
5105
|
-
* data at an index.
|
|
5106
|
-
*/
|
|
5107
|
-
content: LViewDebugRangeContent[];
|
|
5108
|
-
}
|
|
5109
|
-
|
|
5110
|
-
/**
|
|
5111
|
-
* For convenience the static and instance portions of `TView` and `LView` are merged into a single
|
|
5112
|
-
* object in `LViewRange`.
|
|
5113
|
-
*/
|
|
5114
|
-
declare interface LViewDebugRangeContent {
|
|
5115
|
-
/**
|
|
5116
|
-
* Index into original `LView` or `TView.data`.
|
|
5117
|
-
*/
|
|
5118
|
-
index: number;
|
|
5119
|
-
/**
|
|
5120
|
-
* Value from the `TView.data[index]` location.
|
|
5121
|
-
*/
|
|
5122
|
-
t: any;
|
|
5123
|
-
/**
|
|
5124
|
-
* Value from the `LView[index]` location.
|
|
5125
|
-
*/
|
|
5126
|
-
l: any;
|
|
5127
|
-
}
|
|
5128
|
-
|
|
5129
4931
|
/** Flags associated with an LView (saved in LView[FLAGS]) */
|
|
5130
4932
|
declare const enum LViewFlags {
|
|
5131
4933
|
/** The state of the init phase on the first 2 bits */
|
|
@@ -5689,29 +5491,6 @@ export declare class NgZone {
|
|
|
5689
5491
|
*/
|
|
5690
5492
|
export declare const NO_ERRORS_SCHEMA: SchemaMetadata;
|
|
5691
5493
|
|
|
5692
|
-
declare interface NodeInjectorDebug {
|
|
5693
|
-
/**
|
|
5694
|
-
* Instance bloom. Does the current injector have a provider with a given bloom mask.
|
|
5695
|
-
*/
|
|
5696
|
-
bloom: string;
|
|
5697
|
-
/**
|
|
5698
|
-
* Cumulative bloom. Do any of the above injectors have a provider with a given bloom mask.
|
|
5699
|
-
*/
|
|
5700
|
-
cumulativeBloom: string;
|
|
5701
|
-
/**
|
|
5702
|
-
* A list of providers associated with this injector.
|
|
5703
|
-
*/
|
|
5704
|
-
providers: (Type<unknown> | ɵDirectiveDef<unknown> | ɵComponentDef<unknown>)[];
|
|
5705
|
-
/**
|
|
5706
|
-
* A list of providers associated with this injector visible to the view of the component only.
|
|
5707
|
-
*/
|
|
5708
|
-
viewProviders: Type<unknown>[];
|
|
5709
|
-
/**
|
|
5710
|
-
* Location of the parent `TNode`.
|
|
5711
|
-
*/
|
|
5712
|
-
parentInjectorIndex: number;
|
|
5713
|
-
}
|
|
5714
|
-
|
|
5715
5494
|
/**
|
|
5716
5495
|
* @description
|
|
5717
5496
|
* A lifecycle hook that is called when any data-bound property of a directive changes.
|
package/package.json
CHANGED
package/testing/index.d.ts
CHANGED