@praxisui/dynamic-form 9.0.0-beta.30 → 9.0.0-beta.31

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
@@ -188,6 +188,28 @@ Recommended defaults:
188
188
  - dense command drawers: `helpPresentation.display = "auto"` with popover preference for select, checkbox, toggle, date and numeric controls;
189
189
  - operational input-heavy forms: `fieldIconPolicy = "presentation-only"` unless the icon is part of the actual affordance.
190
190
 
191
+ Schema-driven command forms do not need to declare empty manual sections. Keep host config focused on behavior, messages, actions and field metadata that is genuinely local:
192
+
193
+ ```ts
194
+ const commandConfig: FormConfig = {
195
+ metadata: { source: 'schema' },
196
+ behavior: {
197
+ disableMountAnimation: true,
198
+ focusFirstError: true,
199
+ scrollToErrors: true,
200
+ },
201
+ messages: {
202
+ submitSuccess: 'Registro salvo.',
203
+ submitError: 'Não foi possível salvar o registro.',
204
+ },
205
+ };
206
+ ```
207
+
208
+ Pair this config with an explicit schema source, such as `[schemaUrl]`,
209
+ `[submitUrl]`, `[submitMethod]` and, in detached hosts, `[apiEndpointKey]` or
210
+ `[apiUrlEntry]`. A sectionless config is valid only when the schema/runtime
211
+ source is the canonical owner of field grouping and controls.
212
+
191
213
  Do not use Angular config to fix weak DTO semantics. Missing grouping, vague `helpText`, generic labels, raw coded values, wrong control types or absent option metadata should return to backend DTO/schema hardening. The detailed migration checklist lives in `docs/schema-driven-layout-materialization-rfc.md`.
192
214
 
193
215
  ## Runtime Inputs And Outputs