@angular/compiler-cli 14.1.0-rc.0 → 14.1.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.
@@ -827,7 +827,7 @@ var declarationFunctions = [
827
827
  ];
828
828
  function createLinkerMap(environment, sourceUrl, code) {
829
829
  const linkers = /* @__PURE__ */ new Map();
830
- const LATEST_VERSION_RANGE = getRange("<=", "14.1.0-rc.0");
830
+ const LATEST_VERSION_RANGE = getRange("<=", "14.1.0");
831
831
  linkers.set(\u0275\u0275ngDeclareDirective, [
832
832
  { range: LATEST_VERSION_RANGE, linker: new PartialDirectiveLinkerVersion1(sourceUrl, code) }
833
833
  ]);
@@ -874,7 +874,7 @@ var PartialLinkerSelector = class {
874
874
  throw new Error(`Unknown partial declaration function ${functionName}.`);
875
875
  }
876
876
  const linkerRanges = this.linkers.get(functionName);
877
- if (version === "14.1.0-rc.0") {
877
+ if (version === "14.1.0") {
878
878
  return linkerRanges[linkerRanges.length - 1].linker;
879
879
  }
880
880
  const declarationRange = getRange(">=", minVersion);
@@ -30,7 +30,7 @@ import {
30
30
  aliasTransformFactory,
31
31
  declarationTransformFactory,
32
32
  ivyTransformFactory
33
- } from "./chunk-LPUQQ2CH.js";
33
+ } from "./chunk-KPEPSPYQ.js";
34
34
  import {
35
35
  TypeScriptReflectionHost,
36
36
  isNamedClassDeclaration
@@ -5895,7 +5895,12 @@ var factory = {
5895
5895
 
5896
5896
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
5897
5897
  import { TmplAstTemplate as TmplAstTemplate4 } from "@angular/compiler";
5898
- var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Set(["ngIf", "ngFor", "ngSwitchCase", "ngSwitchDefault"]);
5898
+ var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
5899
+ ["ngIf", "NgIf"],
5900
+ ["ngFor", "NgForOf"],
5901
+ ["ngSwitchCase", "NgSwitchCase"],
5902
+ ["ngSwitchDefault", "NgSwitchDefault"]
5903
+ ]);
5899
5904
  var MissingControlFlowDirectiveCheck = class extends TemplateCheckWithVisitor {
5900
5905
  constructor() {
5901
5906
  super(...arguments);
@@ -5919,7 +5924,8 @@ var MissingControlFlowDirectiveCheck = class extends TemplateCheckWithVisitor {
5919
5924
  return [];
5920
5925
  }
5921
5926
  const sourceSpan = controlFlowAttr.keySpan || controlFlowAttr.sourceSpan;
5922
- const errorMessage = `The \`*${controlFlowAttr.name}\` directive was used in the template, but the \`CommonModule\` was not imported. Please make sure that the \`CommonModule\` is included into the \`@Component.imports\` array of this component.`;
5927
+ const correspondingImport = KNOWN_CONTROL_FLOW_DIRECTIVES.get(controlFlowAttr.name);
5928
+ const errorMessage = `The \`*${controlFlowAttr.name}\` directive was used in the template, but neither the \`${correspondingImport}\` directive nor the \`CommonModule\` was imported. Please make sure that either the \`${correspondingImport}\` directive or the \`CommonModule\` is included in the \`@Component.imports\` array of this component.`;
5923
5929
  const diagnostic = ctx.makeTemplateDiagnostic(sourceSpan, errorMessage);
5924
5930
  return [diagnostic];
5925
5931
  }
@@ -7483,4 +7489,4 @@ export {
7483
7489
  * found in the LICENSE file at https://angular.io/license
7484
7490
  */
7485
7491
  // Closure Compiler ignores @suppress and similar if the comment contains @license.
7486
- //# sourceMappingURL=chunk-WAXJ3P3Y.js.map
7492
+ //# sourceMappingURL=chunk-BCXYCOVM.js.map