@angular/core 15.2.1 → 15.2.2
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/application_ref.mjs +14 -3
- package/esm2020/src/application_tokens.mjs +1 -12
- package/esm2020/src/change_detection/change_detection.mjs +2 -2
- package/esm2020/src/change_detection/constants.mjs +1 -49
- package/esm2020/src/core.mjs +3 -3
- package/esm2020/src/core_private_export.mjs +1 -5
- package/esm2020/src/linker/template_ref.mjs +3 -3
- package/esm2020/src/render3/i18n/i18n_util.mjs +3 -3
- package/esm2020/src/render3/instructions/shared.mjs +2 -2
- package/esm2020/src/render3/instructions/template.mjs +2 -2
- package/esm2020/src/render3/interfaces/node.mjs +1 -1
- package/esm2020/src/render3/jit/directive.mjs +1 -2
- 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 +22 -73
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +8 -56
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +21 -73
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +8 -56
- package/fesm2020/testing.mjs.map +1 -1
- package/index.d.ts +9 -71
- package/package.json +1 -1
- package/schematics/migrations/relative-link-resolution/bundle.js +7 -7
- package/schematics/migrations/router-link-with-href/bundle.js +10 -10
- package/schematics/ng-generate/standalone-migration/bundle.js +699 -674
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
package/fesm2020/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.2.
|
|
2
|
+
* @license Angular v15.2.2
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -2114,54 +2114,6 @@ var ChangeDetectionStrategy;
|
|
|
2114
2114
|
*/
|
|
2115
2115
|
ChangeDetectionStrategy[ChangeDetectionStrategy["Default"] = 1] = "Default";
|
|
2116
2116
|
})(ChangeDetectionStrategy || (ChangeDetectionStrategy = {}));
|
|
2117
|
-
/**
|
|
2118
|
-
* Defines the possible states of the default change detector.
|
|
2119
|
-
* @see `ChangeDetectorRef`
|
|
2120
|
-
*/
|
|
2121
|
-
var ChangeDetectorStatus;
|
|
2122
|
-
(function (ChangeDetectorStatus) {
|
|
2123
|
-
/**
|
|
2124
|
-
* A state in which, after calling `detectChanges()`, the change detector
|
|
2125
|
-
* state becomes `Checked`, and must be explicitly invoked or reactivated.
|
|
2126
|
-
*/
|
|
2127
|
-
ChangeDetectorStatus[ChangeDetectorStatus["CheckOnce"] = 0] = "CheckOnce";
|
|
2128
|
-
/**
|
|
2129
|
-
* A state in which change detection is skipped until the change detector mode
|
|
2130
|
-
* becomes `CheckOnce`.
|
|
2131
|
-
*/
|
|
2132
|
-
ChangeDetectorStatus[ChangeDetectorStatus["Checked"] = 1] = "Checked";
|
|
2133
|
-
/**
|
|
2134
|
-
* A state in which change detection continues automatically until explicitly
|
|
2135
|
-
* deactivated.
|
|
2136
|
-
*/
|
|
2137
|
-
ChangeDetectorStatus[ChangeDetectorStatus["CheckAlways"] = 2] = "CheckAlways";
|
|
2138
|
-
/**
|
|
2139
|
-
* A state in which a change detector sub tree is not a part of the main tree and
|
|
2140
|
-
* should be skipped.
|
|
2141
|
-
*/
|
|
2142
|
-
ChangeDetectorStatus[ChangeDetectorStatus["Detached"] = 3] = "Detached";
|
|
2143
|
-
/**
|
|
2144
|
-
* Indicates that the change detector encountered an error checking a binding
|
|
2145
|
-
* or calling a directive lifecycle method and is now in an inconsistent state. Change
|
|
2146
|
-
* detectors in this state do not detect changes.
|
|
2147
|
-
*/
|
|
2148
|
-
ChangeDetectorStatus[ChangeDetectorStatus["Errored"] = 4] = "Errored";
|
|
2149
|
-
/**
|
|
2150
|
-
* Indicates that the change detector has been destroyed.
|
|
2151
|
-
*/
|
|
2152
|
-
ChangeDetectorStatus[ChangeDetectorStatus["Destroyed"] = 5] = "Destroyed";
|
|
2153
|
-
})(ChangeDetectorStatus || (ChangeDetectorStatus = {}));
|
|
2154
|
-
/**
|
|
2155
|
-
* Reports whether a given strategy is currently the default for change detection.
|
|
2156
|
-
* @param changeDetectionStrategy The strategy to check.
|
|
2157
|
-
* @returns True if the given strategy is the current default, false otherwise.
|
|
2158
|
-
* @see `ChangeDetectorStatus`
|
|
2159
|
-
* @see `ChangeDetectorRef`
|
|
2160
|
-
*/
|
|
2161
|
-
function isDefaultChangeDetectionStrategy(changeDetectionStrategy) {
|
|
2162
|
-
return changeDetectionStrategy == null ||
|
|
2163
|
-
changeDetectionStrategy === ChangeDetectionStrategy.Default;
|
|
2164
|
-
}
|
|
2165
2117
|
|
|
2166
2118
|
/**
|
|
2167
2119
|
* Defines the CSS styles encapsulation policies for the {@link Component} decorator's
|
|
@@ -8742,7 +8694,7 @@ class Version {
|
|
|
8742
8694
|
/**
|
|
8743
8695
|
* @publicApi
|
|
8744
8696
|
*/
|
|
8745
|
-
const VERSION = new Version('15.2.
|
|
8697
|
+
const VERSION = new Version('15.2.2');
|
|
8746
8698
|
|
|
8747
8699
|
// This default value is when checking the hierarchy for a token.
|
|
8748
8700
|
//
|
|
@@ -10994,7 +10946,7 @@ function createTNode(tView, tParent, type, index, value, attrs) {
|
|
|
10994
10946
|
initialInputs: undefined,
|
|
10995
10947
|
inputs: null,
|
|
10996
10948
|
outputs: null,
|
|
10997
|
-
|
|
10949
|
+
tView: null,
|
|
10998
10950
|
next: null,
|
|
10999
10951
|
prev: null,
|
|
11000
10952
|
projectionNext: null,
|
|
@@ -13774,7 +13726,7 @@ function templateFirstCreatePass(index, tView, lView, templateFn, decls, vars, t
|
|
|
13774
13726
|
const tNode = getOrCreateTNode(tView, index, 4 /* TNodeType.Container */, tagName || null, getConstant(tViewConsts, attrsIndex));
|
|
13775
13727
|
resolveDirectives(tView, lView, tNode, getConstant(tViewConsts, localRefsIndex));
|
|
13776
13728
|
registerPostOrderHooks(tView, tNode);
|
|
13777
|
-
const embeddedTView = tNode.
|
|
13729
|
+
const embeddedTView = tNode.tView = createTView(2 /* TViewType.Embedded */, tNode, templateFn, decls, vars, tView.directiveRegistry, tView.pipeRegistry, null, tView.schemas, tViewConsts);
|
|
13778
13730
|
if (tView.queries !== null) {
|
|
13779
13731
|
tView.queries.template(tView, tNode);
|
|
13780
13732
|
embeddedTView.queries = tView.queries.embeddedTView(tNode);
|
|
@@ -18133,7 +18085,7 @@ function getTIcu(tView, index) {
|
|
|
18133
18085
|
if (value === null || typeof value === 'string')
|
|
18134
18086
|
return null;
|
|
18135
18087
|
if (ngDevMode &&
|
|
18136
|
-
!(value.hasOwnProperty('
|
|
18088
|
+
!(value.hasOwnProperty('tView') || value.hasOwnProperty('currentCaseLViewIndex'))) {
|
|
18137
18089
|
throwError('We expect to get \'null\'|\'TIcu\'|\'TIcuContainer\', but got: ' + value);
|
|
18138
18090
|
}
|
|
18139
18091
|
// Here the `value.hasOwnProperty('currentCaseLViewIndex')` is a polymorphic read as it can be
|
|
@@ -18162,7 +18114,7 @@ function getTIcu(tView, index) {
|
|
|
18162
18114
|
function setTIcu(tView, index, tIcu) {
|
|
18163
18115
|
const tNode = tView.data[index];
|
|
18164
18116
|
ngDevMode &&
|
|
18165
|
-
assertEqual(tNode === null || tNode.hasOwnProperty('
|
|
18117
|
+
assertEqual(tNode === null || tNode.hasOwnProperty('tView'), true, 'We expect to get \'null\'|\'TIcuContainer\'');
|
|
18166
18118
|
if (tNode === null) {
|
|
18167
18119
|
tView.data[index] = tIcu;
|
|
18168
18120
|
}
|
|
@@ -21457,7 +21409,7 @@ const R3TemplateRef = class TemplateRef extends ViewEngineTemplateRef {
|
|
|
21457
21409
|
this.elementRef = elementRef;
|
|
21458
21410
|
}
|
|
21459
21411
|
createEmbeddedView(context, injector) {
|
|
21460
|
-
const embeddedTView = this._declarationTContainer.
|
|
21412
|
+
const embeddedTView = this._declarationTContainer.tView;
|
|
21461
21413
|
const embeddedLView = createLView(this._declarationLView, embeddedTView, context, 16 /* LViewFlags.CheckAlways */, null, embeddedTView.declTNode, null, null, null, null, injector || null);
|
|
21462
21414
|
const declarationLContainer = this._declarationLView[this._declarationTContainer.index];
|
|
21463
21415
|
ngDevMode && assertLContainer(declarationLContainer);
|
|
@@ -21487,7 +21439,7 @@ function injectTemplateRef() {
|
|
|
21487
21439
|
*/
|
|
21488
21440
|
function createTemplateRef(hostTNode, hostLView) {
|
|
21489
21441
|
if (hostTNode.type & 4 /* TNodeType.Container */) {
|
|
21490
|
-
ngDevMode && assertDefined(hostTNode.
|
|
21442
|
+
ngDevMode && assertDefined(hostTNode.tView, 'TView must be allocated');
|
|
21491
21443
|
return new R3TemplateRef(hostLView, hostTNode, createElementRef(hostTNode, hostLView));
|
|
21492
21444
|
}
|
|
21493
21445
|
return null;
|