@praxisui/dynamic-form 10.0.0-rc.73 → 10.0.0-rc.74

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
@@ -225,9 +225,11 @@ To open semantic read-only rendering unconditionally, bind `mode="presentation"`
225
225
  automatically materialize their child `FormGroup` rows from `array.itemSchema.fields` (including
226
226
  nested local calendar date coercion) and inherit runtime policies such as `fieldIconPolicy` and
227
227
  `apiUrlEntry`.
228
- For compact detail screens, explicit schema `x-ui.width` values are honored as 12-column spans so
229
- fieldsets can render multiple read-only fields per row. Fields without an explicit width remain
230
- full-width to preserve existing layouts. Generated compact sections also receive semantic header
228
+ Compact details honor explicit `x-ui.colSpan` and `x-ui.width` on the 12-column grid.
229
+ When both the schema and the summary omit a width, the resolved control determines the span.
230
+ Ordinary fields share a row, compact controls such as dates and numbers use four columns,
231
+ and narrative, file and array controls use a full row. Auto-sized fields stack below a
232
+ 540px form-row width. Generated compact sections also receive semantic header
231
233
  icons derived from their group role, while field icons continue to come from existing schema
232
234
  metadata.
233
235
  In runtime rendering, compact detail containers are kept visible only when at least one referenced
@@ -345,6 +347,7 @@ const commandConfig: FormConfig = {
345
347
 
346
348
  `FormConfig.layout.mode` accepts `'vertical'` (default), `'tabs'`, `'accordion'`, and `'stepper'` (with explicit `[layoutMode]` > `[formLayout]` > `config.layout` > optional transient schema `x-ui.formLayout` precedence, including Phase 2 schema flags `defaultTabId`, `tabsAppearance`, `accordionMulti`, `hideSectionHeaderInTabs`, `hideSectionHeaderInStepper`, and `stepperInReadMode` when emitted by `@FormLayout` on backend command/detail DTOs — honored across `SERVER_DEFAULT`, `HOST_CONFIG`, and `LOCAL_CONFIG` reconciliation flows whenever the explicit tier leaves a key unset, without overwriting persisted user overrides). Both page forms and CRUD modal/drawer hosts share the same runtime contract:
347
349
 
350
+ - **Keyboard navigation in tabs.** Tab enters the selected tab. Left and Right wrap through enabled tabs, and Home and End select the first and last enabled tab. Tabs follow section visibility and each form instance owns its tab and panel IDs. In create and edit, inactive tabs show the count of untouched required fields awaiting input. Correcting the field clears the count and existing submission validation still applies.
348
351
  - **Single root `FormGroup`**: in `stepper` mode, resolved steps (`layout.steps` grouping one or more `sectionIds`, or 1 step per visible section by default when omitted; unreferenced sections are appended deterministically) operate on the same root `FormGroup`, `FormArray`, dirty/touched tracking, reactive determinations, and hooks without copying drafts between child forms. Multi-section steps keep inner section headings visible so sub-blocks remain clear while single-section steps honor `hideSectionHeaderInStepper ?? true`.
349
352
  - **Optional steps and sections (`optional`)**: steps (`layout.steps[].optional`) or derived section steps (`sections[].optional`) render an accessible `Opcional` / `Optional` pill and unlock header/action jumps directly into or across valid optional steps as soon as the preceding required steps are satisfied (while preserving strict linear locking for mandatory-only steppers after reset/initialValue); any invalid control on an optional step (including untouched errors) immediately blocks forward jumps past that step until corrected. Custom-field schema reconciliation (`reconcileFormConfig`) matches custom-field groups against both `layout.tabs` and `layout.steps` and appends new custom steps when explicit steps are configured.
350
353
  - **Presentation & read-only behavior (`stepperInReadMode`, `@media print` expansion) and error recovery**: by default (`stepperInReadMode: 'presentation'`), Presentation/Dossier modes (`presentation`, `dossier`, or `view` with presentation enabled) keep `'stepper'` active as non-linear dossier chapters (all steps unlocked and clickable without error badges, checkmarks, or mutation buttons, paired with a navigation-only `Anterior` / `Etapa X de N` / `Próxima etapa` bar; `@media print` automatically expands every visible chapter/tab and collapsed `accordion`/`collapsible` section with its heading — falling back to the owning `layout.steps[].label` or `layout.tabs[].label` via `data-print-section-title` when a single-section chapter omits `section.title` — so corporate dossier print/PDF output includes the full document), while blocked `view`/`readonly` degrades to `'vertical'`. Set `stepperInReadMode: 'all'` to allow non-linear stepper in blocked `view`/`readonly` too, or `'none'` to stack all sections vertically across every read mode. Forms with 0 or 1 visible sections hide the stepper header and keep normal vertical controls. Both local final-step validation errors and HTTP `422` field-targeted errors reveal the owning earlier step and focus the offending control inside the form host.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-11-30T10:31:05.656Z",
3
+ "generatedAt": "2026-11-30T14:41:04.857Z",
4
4
  "packageName": "@praxisui/dynamic-form",
5
- "packageVersion": "10.0.0-rc.73",
5
+ "packageVersion": "10.0.0-rc.74",
6
6
  "sourceRegistry": "praxis-component-registry-ingestion",
7
7
  "sourceRegistryVersion": "1.0.0",
8
8
  "componentCount": 2,
@@ -173,7 +173,7 @@ Expected behavior:
173
173
  - Avoid card grids and decorative section containers as the default for operational detail screens.
174
174
  - Preserve stable section ids derived from deterministic group keys.
175
175
  - In `mode="view"`, activate presentation rendering when the host does not explicitly provide `presentationModeGlobal`; an explicit `false` keeps the same schema in traditional read-only controls.
176
- - Honor explicit schema `x-ui.width` as 12-column spans by default so migrated operational detail screens can use dense fieldset rows. Preserve full-width rows when width is absent.
176
+ - Honor explicit schema `x-ui.colSpan` and `x-ui.width` on the 12-column grid. When the schema and detail summary omit widths, size fields by their resolved control. Narrative, file and array controls use full rows. Auto-sized fields stack when the form row is narrower than 540px.
177
177
  - Let `layoutPolicy.detailSummary.widthPrecedence: 'summary'` make `detailSummary.columns`/`responsiveColumns` override explicit `x-ui.width` only for the compact read-only summary surface.
178
178
  - Treat `widthPrecedence: 'summary'` as a curated-summary density tool: long narrative, legal, multiline or audit-heavy values should stay schema-width owned or be moved out of the compact summary through include/exclude policies.
179
179
  - Derive compact section header icons from semantic group roles (`identity`, `rules`, `markers`) while keeping field-level icons owned by existing schema metadata.