@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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v15.2.1
2
+ * @license Angular v15.2.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -2115,54 +2115,6 @@ var ChangeDetectionStrategy;
2115
2115
  */
2116
2116
  ChangeDetectionStrategy[ChangeDetectionStrategy["Default"] = 1] = "Default";
2117
2117
  })(ChangeDetectionStrategy || (ChangeDetectionStrategy = {}));
2118
- /**
2119
- * Defines the possible states of the default change detector.
2120
- * @see `ChangeDetectorRef`
2121
- */
2122
- var ChangeDetectorStatus;
2123
- (function (ChangeDetectorStatus) {
2124
- /**
2125
- * A state in which, after calling `detectChanges()`, the change detector
2126
- * state becomes `Checked`, and must be explicitly invoked or reactivated.
2127
- */
2128
- ChangeDetectorStatus[ChangeDetectorStatus["CheckOnce"] = 0] = "CheckOnce";
2129
- /**
2130
- * A state in which change detection is skipped until the change detector mode
2131
- * becomes `CheckOnce`.
2132
- */
2133
- ChangeDetectorStatus[ChangeDetectorStatus["Checked"] = 1] = "Checked";
2134
- /**
2135
- * A state in which change detection continues automatically until explicitly
2136
- * deactivated.
2137
- */
2138
- ChangeDetectorStatus[ChangeDetectorStatus["CheckAlways"] = 2] = "CheckAlways";
2139
- /**
2140
- * A state in which a change detector sub tree is not a part of the main tree and
2141
- * should be skipped.
2142
- */
2143
- ChangeDetectorStatus[ChangeDetectorStatus["Detached"] = 3] = "Detached";
2144
- /**
2145
- * Indicates that the change detector encountered an error checking a binding
2146
- * or calling a directive lifecycle method and is now in an inconsistent state. Change
2147
- * detectors in this state do not detect changes.
2148
- */
2149
- ChangeDetectorStatus[ChangeDetectorStatus["Errored"] = 4] = "Errored";
2150
- /**
2151
- * Indicates that the change detector has been destroyed.
2152
- */
2153
- ChangeDetectorStatus[ChangeDetectorStatus["Destroyed"] = 5] = "Destroyed";
2154
- })(ChangeDetectorStatus || (ChangeDetectorStatus = {}));
2155
- /**
2156
- * Reports whether a given strategy is currently the default for change detection.
2157
- * @param changeDetectionStrategy The strategy to check.
2158
- * @returns True if the given strategy is the current default, false otherwise.
2159
- * @see `ChangeDetectorStatus`
2160
- * @see `ChangeDetectorRef`
2161
- */
2162
- function isDefaultChangeDetectionStrategy(changeDetectionStrategy) {
2163
- return changeDetectionStrategy == null ||
2164
- changeDetectionStrategy === ChangeDetectionStrategy.Default;
2165
- }
2166
2118
 
2167
2119
  /**
2168
2120
  * Defines the CSS styles encapsulation policies for the {@link Component} decorator's
@@ -8750,7 +8702,7 @@ class Version {
8750
8702
  /**
8751
8703
  * @publicApi
8752
8704
  */
8753
- const VERSION = new Version('15.2.1');
8705
+ const VERSION = new Version('15.2.2');
8754
8706
 
8755
8707
  // This default value is when checking the hierarchy for a token.
8756
8708
  //
@@ -11003,7 +10955,7 @@ function createTNode(tView, tParent, type, index, value, attrs) {
11003
10955
  initialInputs: undefined,
11004
10956
  inputs: null,
11005
10957
  outputs: null,
11006
- tViews: null,
10958
+ tView: null,
11007
10959
  next: null,
11008
10960
  prev: null,
11009
10961
  projectionNext: null,
@@ -13784,7 +13736,7 @@ function templateFirstCreatePass(index, tView, lView, templateFn, decls, vars, t
13784
13736
  const tNode = getOrCreateTNode(tView, index, 4 /* TNodeType.Container */, tagName || null, getConstant(tViewConsts, attrsIndex));
13785
13737
  resolveDirectives(tView, lView, tNode, getConstant(tViewConsts, localRefsIndex));
13786
13738
  registerPostOrderHooks(tView, tNode);
13787
- const embeddedTView = tNode.tViews = createTView(2 /* TViewType.Embedded */, tNode, templateFn, decls, vars, tView.directiveRegistry, tView.pipeRegistry, null, tView.schemas, tViewConsts);
13739
+ const embeddedTView = tNode.tView = createTView(2 /* TViewType.Embedded */, tNode, templateFn, decls, vars, tView.directiveRegistry, tView.pipeRegistry, null, tView.schemas, tViewConsts);
13788
13740
  if (tView.queries !== null) {
13789
13741
  tView.queries.template(tView, tNode);
13790
13742
  embeddedTView.queries = tView.queries.embeddedTView(tNode);
@@ -18143,7 +18095,7 @@ function getTIcu(tView, index) {
18143
18095
  if (value === null || typeof value === 'string')
18144
18096
  return null;
18145
18097
  if (ngDevMode &&
18146
- !(value.hasOwnProperty('tViews') || value.hasOwnProperty('currentCaseLViewIndex'))) {
18098
+ !(value.hasOwnProperty('tView') || value.hasOwnProperty('currentCaseLViewIndex'))) {
18147
18099
  throwError('We expect to get \'null\'|\'TIcu\'|\'TIcuContainer\', but got: ' + value);
18148
18100
  }
18149
18101
  // Here the `value.hasOwnProperty('currentCaseLViewIndex')` is a polymorphic read as it can be
@@ -18172,7 +18124,7 @@ function getTIcu(tView, index) {
18172
18124
  function setTIcu(tView, index, tIcu) {
18173
18125
  const tNode = tView.data[index];
18174
18126
  ngDevMode &&
18175
- assertEqual(tNode === null || tNode.hasOwnProperty('tViews'), true, 'We expect to get \'null\'|\'TIcuContainer\'');
18127
+ assertEqual(tNode === null || tNode.hasOwnProperty('tView'), true, 'We expect to get \'null\'|\'TIcuContainer\'');
18176
18128
  if (tNode === null) {
18177
18129
  tView.data[index] = tIcu;
18178
18130
  }
@@ -21468,7 +21420,7 @@ const R3TemplateRef = class TemplateRef extends ViewEngineTemplateRef {
21468
21420
  this.elementRef = elementRef;
21469
21421
  }
21470
21422
  createEmbeddedView(context, injector) {
21471
- const embeddedTView = this._declarationTContainer.tViews;
21423
+ const embeddedTView = this._declarationTContainer.tView;
21472
21424
  const embeddedLView = createLView(this._declarationLView, embeddedTView, context, 16 /* LViewFlags.CheckAlways */, null, embeddedTView.declTNode, null, null, null, null, injector || null);
21473
21425
  const declarationLContainer = this._declarationLView[this._declarationTContainer.index];
21474
21426
  ngDevMode && assertLContainer(declarationLContainer);
@@ -21498,7 +21450,7 @@ function injectTemplateRef() {
21498
21450
  */
21499
21451
  function createTemplateRef(hostTNode, hostLView) {
21500
21452
  if (hostTNode.type & 4 /* TNodeType.Container */) {
21501
- ngDevMode && assertDefined(hostTNode.tViews, 'TView must be allocated');
21453
+ ngDevMode && assertDefined(hostTNode.tView, 'TView must be allocated');
21502
21454
  return new R3TemplateRef(hostLView, hostTNode, createElementRef(hostTNode, hostLView));
21503
21455
  }
21504
21456
  return null;