ng-form-foundry 0.3.2 → 0.3.4

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/README.md CHANGED
@@ -64,7 +64,9 @@ npm install @angular/material @angular/cdk
64
64
  ### Application setup
65
65
 
66
66
  Load a Material theme and the Material Icons font. Animations are optional in
67
- Angular Material 20.
67
+ Angular Material 20. Nothing else: the library's component styles are
68
+ self-contained (including the compact add/remove/edit icon buttons) — there are
69
+ no global stylesheet rules or Sass mixins to import from this package.
68
70
 
69
71
  ```scss
70
72
  // styles.scss
@@ -93,7 +95,14 @@ this.form.valid; // validity from the schema's constraint validators
93
95
  If the schema contains `choice` nodes, `getRawValue()` carries their `__case`
94
96
  discriminators; `serializeForm(schema, form)` returns the value with them
95
97
  stripped — the inline wire encoding, which `buildFormFromSchema` accepts back
96
- as `initial`.
98
+ as `initial` (the active case is re-inferred from which fields are present and
99
+ required).
100
+
101
+ Validity mirrors what would go on the wire: `presence` fields are absent until
102
+ enabled and required while enabled (unless `nullable`), a `mandatory` or
103
+ enabled-presence `choice` errors until a case is picked, and lists start empty
104
+ rather than seeding a placeholder entry. A valid form serializes to a value
105
+ that satisfies the schema's own constraints.
97
106
 
98
107
  ## Documentation
99
108