@praxisui/dynamic-form 9.0.4-rc.45 → 9.0.4-rc.47
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 +8 -0
- package/ai/component-registry.json +116 -94
- package/docs/schema-driven-layout-materialization-rfc.md +6 -0
- package/fesm2022/praxisui-dynamic-form.mjs +83 -46
- package/package.json +8 -8
- package/src/lib/praxis-dynamic-form.json-api.md +2 -2
- package/types/praxisui-dynamic-form.d.ts +5 -3
package/README.md
CHANGED
|
@@ -139,6 +139,13 @@ included in the submit payload, but are omitted from the interactive layout. The
|
|
|
139
139
|
them through `initialValue` on create or through the entity read on edit; this policy must not hide
|
|
140
140
|
values that the user is expected to choose.
|
|
141
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
|
+
|
|
142
149
|
When `mode="view"` and the host does not provide `presentationModeGlobal`, a schema policy with
|
|
143
150
|
`intent: "detail"` or `preset: "compactPresentation"` also enables presentation rendering. Hosts
|
|
144
151
|
that need traditional disabled controls for the same schema can pass `[presentationModeGlobal]="false"`.
|
|
@@ -215,6 +222,7 @@ Recommended defaults:
|
|
|
215
222
|
- detail/read-only: `layoutPolicy.source = "schema"`, `intent = "detail"`, `preset = "compactPresentation"`, `persistence = "transient"` and a response schema;
|
|
216
223
|
- create/edit: `layoutPolicy.source = "schema"`, `intent = "command"`, `preset = "groupedCommand"`, `persistence = "transient"` and a request schema;
|
|
217
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;
|
|
218
226
|
- dense command drawers: `helpPresentation.display = "auto"` with popover preference for select, checkbox, toggle, date and numeric controls;
|
|
219
227
|
- operational input-heavy forms: `fieldIconPolicy = "presentation-only"` unless the icon is part of the actual affordance.
|
|
220
228
|
|