@praxisui/dynamic-form 9.0.4-rc.9 → 9.0.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
@@ -132,6 +132,20 @@ the runtime fails initialization instead of rendering a form from the wrong busi
132
132
  non-layout host/persisted concerns such as `actions`, `api`, `messages`, rules, hooks and rich
133
133
  blocks. Host-provided non-layout config has precedence over persisted config.
134
134
 
135
+ For nested commands, `layoutPolicy.groupedCommand.contextFields` identifies request fields whose
136
+ values are supplied by the surrounding surface (for example, the employee id inherited by a
137
+ related-resource drawer). These fields remain schema-backed controls in the runtime form and are
138
+ included in the submit payload, but are omitted from the interactive layout. The host must hydrate
139
+ them through `initialValue` on create or through the entity read on edit; this policy must not hide
140
+ values that the user is expected to choose.
141
+
142
+ For generated command rows with two or more fields, the default
143
+ `layoutPolicy.groupedCommand.partialRowStrategy = "preserve"` keeps published spans unchanged.
144
+ Use `"fill-compatible"` when eligible controls should absorb the remaining 12-column space at
145
+ each container breakpoint (for example, `4 + 4` projects to `6 + 6`). This is a transient runtime
146
+ projection: schema `x-ui.width`, generated `sections` and authoring documents are not rewritten.
147
+ Compact boolean/action controls, uploads and unknown control types remain at their canonical span.
148
+
135
149
  When `mode="view"` and the host does not provide `presentationModeGlobal`, a schema policy with
136
150
  `intent: "detail"` or `preset: "compactPresentation"` also enables presentation rendering. Hosts
137
151
  that need traditional disabled controls for the same schema can pass `[presentationModeGlobal]="false"`.
@@ -208,6 +222,7 @@ Recommended defaults:
208
222
  - detail/read-only: `layoutPolicy.source = "schema"`, `intent = "detail"`, `preset = "compactPresentation"`, `persistence = "transient"` and a response schema;
209
223
  - create/edit: `layoutPolicy.source = "schema"`, `intent = "command"`, `preset = "groupedCommand"`, `persistence = "transient"` and a request schema;
210
224
  - `groupedCommand` expands a single orphan `md`/`lg` field to the full row by default. Set `layoutPolicy.groupedCommand.orphanFieldExpansion = "preserve"` for intentionally compact rows, or `"all"` to expand orphan `xs`/`sm` fields too;
225
+ - `layoutPolicy.groupedCommand.partialRowStrategy = "fill-compatible"` projects eligible partial rows to the canonical 12-column grid per container breakpoint, while the default `"preserve"` retains intentional whitespace;
211
226
  - dense command drawers: `helpPresentation.display = "auto"` with popover preference for select, checkbox, toggle, date and numeric controls;
212
227
  - operational input-heavy forms: `fieldIconPolicy = "presentation-only"` unless the icon is part of the actual affordance.
213
228
 
@@ -251,6 +266,11 @@ Common inputs:
251
266
  - `domainRules`
252
267
  - `editorialContext`
253
268
 
269
+ In `edit` and `view`, `resourceId` identifies the remote entity to hydrate. In
270
+ `create`, it is contextual only (for example, the employee targeted by an
271
+ item-scoped command) and never starts an entity read; provide command defaults
272
+ through `initialValue`.
273
+
254
274
  Common outputs:
255
275
 
256
276
  - `formSubmit`, `formCancel`, `formReset`