@angular/forms 21.0.0-rc.0 → 21.0.0-rc.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.0.0-rc.0
2
+ * @license Angular v21.0.0-rc.1
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -1081,7 +1081,7 @@ class Field {
1081
1081
  }
1082
1082
  static ɵfac = i0.ɵɵngDeclareFactory({
1083
1083
  minVersion: "12.0.0",
1084
- version: "21.0.0-rc.0",
1084
+ version: "21.0.0-rc.1",
1085
1085
  ngImport: i0,
1086
1086
  type: Field,
1087
1087
  deps: [],
@@ -1089,7 +1089,7 @@ class Field {
1089
1089
  });
1090
1090
  static ɵdir = i0.ɵɵngDeclareDirective({
1091
1091
  minVersion: "17.1.0",
1092
- version: "21.0.0-rc.0",
1092
+ version: "21.0.0-rc.1",
1093
1093
  type: Field,
1094
1094
  isStandalone: true,
1095
1095
  selector: "[field]",
@@ -1114,7 +1114,7 @@ class Field {
1114
1114
  }
1115
1115
  i0.ɵɵngDeclareClassMetadata({
1116
1116
  minVersion: "12.0.0",
1117
- version: "21.0.0-rc.0",
1117
+ version: "21.0.0-rc.1",
1118
1118
  ngImport: i0,
1119
1119
  type: Field,
1120
1120
  decorators: [{
@@ -1588,10 +1588,10 @@ class FieldNode {
1588
1588
  return this.metadataOrUndefined(MIN_LENGTH);
1589
1589
  }
1590
1590
  get pattern() {
1591
- return this.metadataOrUndefined(PATTERN);
1591
+ return this.metadataOrUndefined(PATTERN) ?? EMPTY;
1592
1592
  }
1593
1593
  get required() {
1594
- return this.metadataOrUndefined(REQUIRED);
1594
+ return this.metadataOrUndefined(REQUIRED) ?? FALSE;
1595
1595
  }
1596
1596
  metadata(key) {
1597
1597
  return this.metadataState.get(key);
@@ -1622,6 +1622,12 @@ class FieldNode {
1622
1622
  return options.kind === 'root' ? new RootFieldNodeStructure(this, options.pathNode, options.logic, options.fieldManager, options.value, options.fieldAdapter, FieldNode.newChild) : new ChildFieldNodeStructure(this, options.pathNode, options.logic, options.parent, options.identityInParent, options.initialKeyInParent, options.fieldAdapter, FieldNode.newChild);
1623
1623
  }
1624
1624
  }
1625
+ const EMPTY = computed(() => [], ...(ngDevMode ? [{
1626
+ debugName: "EMPTY"
1627
+ }] : []));
1628
+ const FALSE = computed(() => false, ...(ngDevMode ? [{
1629
+ debugName: "FALSE"
1630
+ }] : []));
1625
1631
 
1626
1632
  class FieldNodeState {
1627
1633
  node;