@praxisui/dynamic-form 10.0.0-rc.7 → 10.0.0-rc.70
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 +162 -4
- package/ai/component-registry.json +2676 -337
- package/docs/custom-fields-enterprise-review.md +229 -0
- package/docs/dynamic-form-authoring-document-semantics.md +74 -2
- package/docs/dynamic-form-stepper-implementation-plan.md +111 -0
- package/docs/evidence/form-authoring-635-20261023/final-review.md +46 -0
- package/docs/evidence/form-authoring-635-20261023/independent-review-vb-form.md +50 -0
- package/docs/evidence/form-authoring-635-20261023/validation.md +76 -0
- package/docs/evidence/p1-authoring-20261022/validation.md +134 -0
- package/docs/governed-page-widget-adapter.md +58 -0
- package/docs/hot-metadata-updates.md +24 -2
- package/docs/schema-driven-layout-materialization-rfc.md +20 -20
- package/fesm2022/praxisui-dynamic-form.mjs +10933 -1411
- package/package.json +8 -8
- package/src/lib/config-editor/praxis-dynamic-form-config-editor.json-api.md +14 -5
- package/src/lib/layout-editor/praxis-layout-editor.json-api.md +8 -0
- package/src/lib/praxis-dynamic-form.json-api.md +67 -20
- package/types/praxisui-dynamic-form.d.ts +543 -45
- package/fesm2022/praxisui-dynamic-form-dynamic-form-agentic-authoring-turn-flow-w9V0aQ9B.mjs +0 -539
package/README.md
CHANGED
|
@@ -4,6 +4,28 @@ Schema-driven and metadata-driven form runtime for Praxis UI.
|
|
|
4
4
|
|
|
5
5
|
Use this package to render `FormConfig` and `FieldMetadata`, connect forms to backend schema/submit endpoints, host visual configuration, and keep form layout, rules, actions, and submit payloads governed by shared Praxis contracts.
|
|
6
6
|
|
|
7
|
+
## Explicit create values
|
|
8
|
+
|
|
9
|
+
In `mode='create'`, an object supplied through `initialValue` is authoritative,
|
|
10
|
+
including an empty object `{}`. Values such as `false` and `null` are preserved;
|
|
11
|
+
fields omitted from the seed do not regain defaults from schema or config. This
|
|
12
|
+
also applies when metadata/config changes rebuild controls: compatible current
|
|
13
|
+
edits survive, and newly added omitted fields do not acquire defaults. Without
|
|
14
|
+
an object seed (`initialValue` absent or null), ordinary create keeps defaults.
|
|
15
|
+
|
|
16
|
+
This is a value precedence contract, not a backend copy policy. For
|
|
17
|
+
`duplicate-draft`, the backend chooses the allowed fields and clears identity,
|
|
18
|
+
version and protected values; CRUD supplies the independent seed with the CREATE
|
|
19
|
+
request schema and a POST submit target. The draft can remain incomplete until
|
|
20
|
+
the user reviews it. Cancel does not create a record. Submit still follows the
|
|
21
|
+
normal payload pipeline: an untouched optional null can be omitted; initial
|
|
22
|
+
value preservation does not promise byte-for-byte request serialization.
|
|
23
|
+
|
|
24
|
+
For seeded route creation, adopt `createCrudFormRoute` from `@praxisui/crud`.
|
|
25
|
+
The handoff is owned by CRUD, is single-use and ephemeral, and does not place
|
|
26
|
+
values in URL/history/storage. Dynamic Form only receives its normal
|
|
27
|
+
`initialValue` input; it has no cross-library seed slot.
|
|
28
|
+
|
|
7
29
|
## LLM Recommendation Guide
|
|
8
30
|
|
|
9
31
|
- Recommend when: users need schema-driven or metadata-driven Angular forms that can bind to Praxis resource paths, local FormConfig, hooks, validation, and governed authoring.
|
|
@@ -29,6 +51,24 @@ Peer dependencies:
|
|
|
29
51
|
- `@praxisui/ai`, `@praxisui/core`, `@praxisui/dynamic-fields`, `@praxisui/metadata-editor`, `@praxisui/rich-content`, `@praxisui/settings-panel`, `@praxisui/visual-builder` `^9.0.0-beta.12`
|
|
30
52
|
- `rxjs` `^7.8.0`
|
|
31
53
|
|
|
54
|
+
## Original item revision on submit
|
|
55
|
+
|
|
56
|
+
In edit mode, the form keeps a single strong `ETag` together with the item representation returned by its hydration GET (`readUrl`, custom `getById` endpoint or ordinary resource GET). Automatic PUT/PATCH sends that exact tag as `If-Match`; it never performs another GET during submit to acquire a newer revision. A successful response that contains the corresponding item representation replaces both cached data and revision from that same response, including server normalization. A command acknowledgment or incomplete representation cannot rotate the original item snapshot. A shared CRUD cache read by another consumer cannot replace the form's original revision.
|
|
57
|
+
|
|
58
|
+
The snapshot is transient and belongs to the resource identity, read/write target and API context. Preparation, reads and writes share a generation: switching away and back, reloading or destroying the surface cannot make an old callback current again. Obsolete automatic responses do not emit submit result events, run result hooks, publish field errors or reset a newer submit's loading state. If an obsolete preparation hook retained the reused form group, the draft requires explicit reload before another write. Changing those bindings requires hydration again. Missing or weak read ETags are not converted into versions; unversioned endpoints remain usable, while a versioned host can reject a missing precondition with `428`. After `412`/`428`, or a successful versioned write without its next ETag, automatic submission requires an explicit reload. Closing and reopening a surface or retrying its initialization loads the new representation; retrying submit alone cannot silently refresh the revision.
|
|
59
|
+
|
|
60
|
+
Explicit `submitResourceVersion` and the existing cross-resource version target inputs retain their command semantics and precedence. They remain host-owned inputs; same-resource editing needs no additional authoring fields. Backend authorization, concurrency and lifecycle policy remain authoritative.
|
|
61
|
+
|
|
62
|
+
## Governed submit decisions
|
|
63
|
+
|
|
64
|
+
The form keeps the public rule `decision` supplied by Core's `ErrorMessageService`.
|
|
65
|
+
Only `DENY` materializes a governed decision on its matching field. Technical,
|
|
66
|
+
inconclusive and not-applicable outcomes stay in the error summary without
|
|
67
|
+
marking a control invalid or touched. Legacy errors without a decision still
|
|
68
|
+
use their public target. An unknown decision keeps its safe summary message
|
|
69
|
+
without creating field-level correction guidance. This policy does not infer a
|
|
70
|
+
business denial from HTTP 409/422 or retry a command automatically.
|
|
71
|
+
|
|
32
72
|
## Reactive backend determinations
|
|
33
73
|
|
|
34
74
|
When the exact request schema from `/schemas/filtered` publishes root-level `x-ui.reactiveDeterminations`, the form executes the Metadata-compiled backend capability after a valid source changes and applies server-derived draft values. After edit/create hydration, an already populated source is also validated before the draft can be reported as stable; an empty initial source settles as not applicable without an HTTP call. The projection is one closed graph: if any definition is malformed, the complete projection is rejected instead of partially executing. It remains backend-owned, tenant-neutral and transient: it is never copied to `FormConfig` and cannot be authored as a callback, URL or local write policy.
|
|
@@ -47,6 +87,12 @@ Use `optionSource.dependsOn` for dependent option lists and workflow actions for
|
|
|
47
87
|
|
|
48
88
|
Use a local `FormConfig` when the host already knows the sections and fields.
|
|
49
89
|
|
|
90
|
+
With `configPersistenceStrategy="input-first"`, an explicitly bound host configuration remains authoritative even when it contains only actions or other policies. The schema for the current operation supplies missing fields and layout; stale persisted fields are not used to fill those gaps.
|
|
91
|
+
|
|
92
|
+
Each form owns its mutable `GenericCrudService` and editor field/rule context. Sibling forms cannot change one another's resource, custom endpoints or schema client. This is a breaking beta correction for hosts that previously replaced an ancestor `GenericCrudService`: configure the form through `resourcePath`, `apiEndpointKey`, `apiUrlEntry` and the direct-form `customEndpoints` input. An ancestor service subclass is no longer used by the form; HTTP interceptors, `API_URL` and shared infrastructure remain inherited. Tests that substitute the client must use `TestBed.overrideComponent(PraxisDynamicForm, { add: { providers: [{ provide: GenericCrudService, useValue: crudMock }] } })`, retaining the other component providers.
|
|
93
|
+
|
|
94
|
+
An explorer combining selectors from several resources is a local form, not an edit command for one of those resource DTOs. Its fields may query real API options through their own resource metadata while remaining `source: 'local'` with `submitPolicy: 'omit'`. Use a distinct form identity when replacing a schema-backed command with such an explorer; persisted connections are still restored for their original identity. The `/dependency-fields-demo` reference follows this pattern and gives the current host definition precedence with `configPersistenceStrategy="input-first"`; its previous `cascade-*` configurations and connections are left untouched.
|
|
95
|
+
|
|
50
96
|
```ts
|
|
51
97
|
import { Component } from '@angular/core';
|
|
52
98
|
import { FormConfig } from '@praxisui/core';
|
|
@@ -172,6 +218,13 @@ boolean/action controls, uploads and unknown control types remain at their canon
|
|
|
172
218
|
When `mode="view"` and the host does not provide `presentationModeGlobal`, a schema policy with
|
|
173
219
|
`intent: "detail"` or `preset: "compactPresentation"` also enables presentation rendering. Hosts
|
|
174
220
|
that need traditional disabled controls for the same schema can pass `[presentationModeGlobal]="false"`.
|
|
221
|
+
To open semantic read-only rendering unconditionally, bind `mode="presentation"` or `mode="dossier"`
|
|
222
|
+
(with `dossier` defaulting `presentationPreset` to `'corporate-dossier'`; `'editorial-card'`,
|
|
223
|
+
`'compact-presentation'`, and `'default'` are also supported). When entity snapshots are hydrated via
|
|
224
|
+
`readUrl`, `initialValue`, or reset, `FormArray` fields (`controlType: 'array'` or `field.array`)
|
|
225
|
+
automatically materialize their child `FormGroup` rows from `array.itemSchema.fields` (including
|
|
226
|
+
nested local calendar date coercion) and inherit runtime policies such as `fieldIconPolicy` and
|
|
227
|
+
`apiUrlEntry`.
|
|
175
228
|
For compact detail screens, explicit schema `x-ui.width` values are honored as 12-column spans so
|
|
176
229
|
fieldsets can render multiple read-only fields per row. Fields without an explicit width remain
|
|
177
230
|
full-width to preserve existing layouts. Generated compact sections also receive semantic header
|
|
@@ -244,9 +297,9 @@ Example backend-owned `x-ui` metadata:
|
|
|
244
297
|
|
|
245
298
|
In that flow, local `FormConfig` may place `frequencyType` in sections, rows, tabs, custom actions, or corporate-only local fields. It should not persist competing `label`, `helpText`, `tooltip`, or icon metadata for `frequencyType`, because the next schema reconciliation will restore the backend DTO semantics.
|
|
246
299
|
|
|
247
|
-
###
|
|
300
|
+
### Enterprise legacy migration baseline
|
|
248
301
|
|
|
249
|
-
For
|
|
302
|
+
For large-scale enterprise screen migrations, use schema-driven layout as the preferred target once the DTO/schema is semantically ready. Treat local `FormConfig.sections` as a temporary bridge, not as the standard for hundreds of screens.
|
|
250
303
|
|
|
251
304
|
Recommended defaults:
|
|
252
305
|
|
|
@@ -288,6 +341,25 @@ const commandConfig: FormConfig = {
|
|
|
288
341
|
};
|
|
289
342
|
```
|
|
290
343
|
|
|
344
|
+
## Section layout modes and native stepper
|
|
345
|
+
|
|
346
|
+
`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
|
+
|
|
348
|
+
- **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
|
+
- **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
|
+
- **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.
|
|
351
|
+
- **Visual customization bypass & Stepper Grouping Editor**: when `enableCustomization` is enabled, step pills remain unlocked so authors can switch steps freely on the canvas regardless of incomplete required fields. In the Layout Editor (`LayoutEditorComponent`), selecting `mode = 'stepper'` exposes the **Agrupamento de etapas (`layout.steps`)** panel to visually group multiple sections into a single step, reorder steps, edit step labels/subtitles, mark steps as `optional`, toggle `stepperReviewStep`, or restore automatic 1-step-per-section derivation without manual JSON editing.
|
|
352
|
+
- **Automatic Final Review Step (`layout.stepperReviewStep`)**: when `layout.stepperReviewStep = true` (or emitted by backend `@FormLayout(stepperReviewStep = UiBoolean.TRUE)` / `@FormLayout(FormLayoutMode.AUTO)` into `x-ui.formLayout.stepperReviewStep`) in interactive `create`/`edit` stepper flows, the runtime appends a synthetic final review step (`__praxis_stepper_review__`, `Revisão`) displaying a read-only chapter-by-chapter summary of all visible fields (including dotted `customFields.<key>` paths, semantic `FormArray` collection item summaries via `array.itemTitleTemplate` / `collectionDisplay.itemTitleFields` with item-by-item collection diff badges `+ Novo`, `~ Alterado`, and `- Removido` when `dirty`, baseline-vs-current diff `<del>previous</del> → current` for effectively modified fields with automatic false-positive suppression when reverted to baseline, a quantitative required-field completion badge `X/Y obrigatórios` per chapter, an accessible `aria-pressed` filter toggle `Mostrar apenas alterados`, option labels, and `'••••••••'` masking for `password` controls) with quick `Editar etapa` chapter jump-back and per-item `Editar campo` direct focus actions (`editStepperReviewField`), plus automatic WCAG focus transfer before final submission.
|
|
353
|
+
- **Session Draft persistence (`behavior.draftPersistence` / `layout.draftPersistence`)**: when `config.behavior.draftPersistence = true` (or emitted by backend `@FormLayout(draftPersistence = UiBoolean.TRUE)` / `@FormLayout(FormLayoutMode.AUTO)` into `x-ui.formLayout.draftPersistence`, while honoring explicit `behavior.draftPersistence = false` host overrides) in `create` mode (configurable via JSON, host input, AI manifest `behavior.draftPersistence.set`, or visually in `BehaviorEditorComponent`), the runtime automatically persists and restores the in-progress draft (`rawValue`, `dirtyFields`, and active step `activeStepId`/`activeStepIndex`) in `sessionStorage` under the multi-tenant key `praxis-session-draft:<tenant>:<resource>:<formId>:create`, renders an accessible restoration status banner (`role="status"`, `aria-live="polite"`) with a `Descartar rascunho` action, informs the user on dirty cancel/exit confirmation that the local session draft will be preserved for resumption (`Sair e manter rascunho`), and clears the draft automatically on successful submit, explicit discard, reset, or corporate tenant/context change.
|
|
354
|
+
- **Structured Step Telemetry (`@Output() stepTelemetry`)**: emits metadata-only `FormStepTelemetryEvent` (`fromStepIndex`, `toStepIndex`, `stepId`, `totalSteps`, and `reason`: `'next' | 'previous' | 'header' | 'review-edit' | 'validation-recovery' | 'http-422-recovery' | 'draft-restored'`) for corporate UX observability without leaking field values.
|
|
355
|
+
- **AI Authoring Manifest support (`PRAXIS_DYNAMIC_FORM_AUTHORING_MANIFEST`)**: the semantic copilot supports `layout.mode.set` (including declarative `steps` and `stepperReviewStep`), `section.update` (`optional`, `stepLabel`), and `behavior.draftPersistence.set` (`formBehavior` target).
|
|
356
|
+
|
|
357
|
+
### Enterprise architecture guidance
|
|
358
|
+
|
|
359
|
+
- **When to use `FormConfig.layout.mode = 'stepper'`**: choose the native form stepper for single-aggregate transactional records (employee onboarding, credit applications, supplier registration) in page, modal, or drawer hosts that benefit from a single root `FormGroup`, dirty tracking (`canLeaveForm()`), optimistic concurrency (`ETag` / `If-Match`), `layoutScope: 'shared'` with configurable presentation/view read policy (`stepperInReadMode`), and `422` field-level error recovery.
|
|
360
|
+
- **When to use standalone `@praxisui/stepper` (`PraxisStepperComponent`)**: choose `@praxisui/stepper` when orchestrating multiple independent entities/endpoints, combining non-form stages (confirmations, payments, async job monitors), or requiring intermediate server persistence/checkpoints per stage.
|
|
361
|
+
- **Corporate sizing & ergonomics**: keep 2–5 cohesive steps per form; for 3 or more steps, prefer full routes, `drawer` hosts, or `md`/`lg`/`xl` modal presets. Validation runs cumulatively (`0..targetIndex - 1`) on forward transitions, locking forward jumps past invalidated earlier steps and scoping `hasUnsatisfiedReactiveDeterminations` away from unvisited future steps until those steps are reached.
|
|
362
|
+
|
|
291
363
|
Pair this config with an explicit schema source, such as `[schemaUrl]`,
|
|
292
364
|
`[submitUrl]`, `[submitMethod]` and, in detached hosts, `[apiEndpointKey]` or
|
|
293
365
|
`[apiUrlEntry]`. A sectionless config is valid only when the schema/runtime
|
|
@@ -304,13 +376,17 @@ Common inputs:
|
|
|
304
376
|
- `resourcePath`, `resourceId`, `initialValue`, `emptyState`
|
|
305
377
|
- `schemaUrl`, `readUrl`, `submitUrl`, `submitMethod`, `responseSchemaUrl`
|
|
306
378
|
- `apiEndpointKey`, `apiUrlEntry`
|
|
307
|
-
- `actions`, `layout`, `backConfig`, `hooks`
|
|
379
|
+
- `actions`, `layout`, `layoutMode`, `formLayout`, `activeStepIndex`, `backConfig`, `hooks`
|
|
308
380
|
- `enableCustomization`
|
|
309
381
|
- `readonlyModeGlobal`, `disabledModeGlobal`, `presentationModeGlobal`, `fieldIconPolicy`, `visibleGlobal`
|
|
310
382
|
- `notifyIfOutdated`, `snoozeMs`, `autoOpenSettingsOnOutdated`
|
|
311
383
|
- `domainRules`
|
|
312
384
|
- `editorialContext`
|
|
313
385
|
|
|
386
|
+
Key layout/navigation outputs:
|
|
387
|
+
|
|
388
|
+
- `tabChange` (active tab ID), `tabSelected` (resolved tab metadata), `stepChange` (0-based active step index in `stepper` mode), `stepTelemetry` (metadata-only `FormStepTelemetryEvent` for stepper transitions and recovery flows)
|
|
389
|
+
|
|
314
390
|
`providePraxisDynamicFormMetadata()` also registers localized editorial copy through
|
|
315
391
|
the existing `ComponentMetadataRegistry`. Shared editors resolve labels and help
|
|
316
392
|
with `resolveEditorial('praxis-dynamic-form')`, while raw input names, types and
|
|
@@ -407,6 +483,7 @@ Common outputs:
|
|
|
407
483
|
- `loadingStateChange`, `initializationError`
|
|
408
484
|
- `customAction`, `actionConfirmation`
|
|
409
485
|
- `fieldRenderError`, `ruleDiagnosticsChange`
|
|
486
|
+
- `stepChange`, `stepTelemetry`
|
|
410
487
|
|
|
411
488
|
### Public untrusted runtime profile
|
|
412
489
|
|
|
@@ -520,13 +597,16 @@ field below the useful viewport. Larger guidance cards, timelines, and stat grou
|
|
|
520
597
|
dedicated row, side context, or a separate rich-content demonstration tab rather than the compact
|
|
521
598
|
detail header.
|
|
522
599
|
|
|
523
|
-
The runtime exposes host-themeable CSS variables for this mode:
|
|
600
|
+
The runtime exposes host-themeable CSS variables for this mode and scales spacing, pill heights, nested collection cards, and typography across three presentation densities (`'comfortable'`, `'cozy'`, `'compact'`) exposed via `data-presentation-density` and `.pres-density-*` host classes (`FormPresentationConfig` explicit overrides > `--pdx-presentation-*` host tokens > preset × density scale, with fallback to `config.metadata.presentationDensity` when `presentation.density` is omitted):
|
|
524
601
|
|
|
525
602
|
- `--pdx-presentation-label-width`
|
|
526
603
|
- `--pdx-presentation-label-size`
|
|
527
604
|
- `--pdx-presentation-value-size`
|
|
528
605
|
- `--pdx-presentation-row-gap`
|
|
606
|
+
- `--pdx-presentation-column-gap`
|
|
529
607
|
- `--pdx-presentation-section-gap`
|
|
608
|
+
- `--pdx-presentation-array-gap`
|
|
609
|
+
- `--pdx-presentation-array-item-padding`
|
|
530
610
|
- `--pdx-presentation-flag-height`
|
|
531
611
|
- `--pdx-presentation-flag-padding`
|
|
532
612
|
- `--pdx-presentation-flag-radius`
|
|
@@ -733,6 +813,84 @@ das abas. Acima desse limite, reaparece a navegação por abas. O Settings Panel
|
|
|
733
813
|
organiza título, expandir e fechar em uma grade até 599px; a prévia, quando
|
|
734
814
|
suportada, ocupa a linha seguinte. Nenhum documento ou protocolo de Save é alterado.
|
|
735
815
|
|
|
816
|
+
### Filhos de páginas governadas
|
|
817
|
+
|
|
818
|
+
Consulte [o adapter nativo de página](docs/governed-page-widget-adapter.md) para reconstrução sem defaults, presença exata, identidade derivada e execução sem preferências concorrentes.
|
|
819
|
+
|
|
820
|
+
### Schema-backed custom fields
|
|
821
|
+
|
|
822
|
+
Core expands an object marked `x-ui.customFieldsContainer: true` (or the inline
|
|
823
|
+
`customFields` object) into fields named `customFields.<key>`. Dynamic Form uses
|
|
824
|
+
those names as nested reactive-form paths and keeps the wire payload nested:
|
|
825
|
+
`{ "customFields": { "numero_calcado": 38, "data_exame": "2026-10-27" } }`.
|
|
826
|
+
The `customField`, `customFieldKey` and `customFieldScope` metadata identifies
|
|
827
|
+
schema-backed fields; it does not make them local/transient authoring fields.
|
|
828
|
+
Saved containers colliding with the server's expanded namespace are replaced by
|
|
829
|
+
its direct children, including a container previously marked `source: 'local'`.
|
|
830
|
+
Noncolliding local fields and existing child placement remain. Restrictive parent
|
|
831
|
+
flags remain restrictive in children; they do not create a submit omission policy.
|
|
832
|
+
|
|
833
|
+
Date controls hydrate nested API values without mutating the input. Submit applies
|
|
834
|
+
the same date/lookup serialization, required/dirty handling and omission policies
|
|
835
|
+
to flat and dotted names. Missing nested values do not create containers. Filter
|
|
836
|
+
Form preserves supported nested values during same-context metadata rebuilds,
|
|
837
|
+
unless the new field has an explicit default (reset). A removed server field can
|
|
838
|
+
remain as metadata for layout continuity, but becomes disabled and omitted from
|
|
839
|
+
applicable payloads. Hidden alone is not omission: explicit local and legitimate
|
|
840
|
+
hidden fields keep their published semantics. No host adapter is needed for the
|
|
841
|
+
supported nested value paths.
|
|
842
|
+
|
|
843
|
+
Temporal normalization is metadata-aware: legacy date tuples and local datetime
|
|
844
|
+
strings are transformed only on declared temporal fields, including collection
|
|
845
|
+
item schemas. Numeric/unknown arrays such as `[2026, 10, 27]` remain arrays;
|
|
846
|
+
ordinary/unknown strings retain their spaces and date-like text. The `DateInput`
|
|
847
|
+
control follows date-only serialization. A same-context metadata rebuild can
|
|
848
|
+
restore nested dirty/touched control paths, including collection items, without
|
|
849
|
+
marking unrelated controls touched. This does not preserve a draft across every
|
|
850
|
+
reset, identity switch or retry.
|
|
851
|
+
|
|
852
|
+
Scalar arrays use the operation schema's `fieldMetadata[].items`, separately
|
|
853
|
+
from object collections' `array.itemSchema.fields`. Core's shared normalizer turns
|
|
854
|
+
valid UI tokens into declared strings, safe integers, finite numbers or exact
|
|
855
|
+
booleans and enforces the item enum after conversion. Date/date-time item formats
|
|
856
|
+
use that same contract. An invalid/null item rejects the entire projection rather
|
|
857
|
+
than silently dropping it; an optional null container and an empty array remain
|
|
858
|
+
distinct valid inputs. Form validation and prepared submit must agree, so a token
|
|
859
|
+
such as `12.5` cannot be submitted as an integer. This subset does not promise
|
|
860
|
+
integer precision beyond JavaScript's safe range or an object-array editor.
|
|
861
|
+
|
|
862
|
+
Record paths do not traverse array intermediates in computed-rule contexts;
|
|
863
|
+
collection submit uses its own item-schema pipeline. The canonical Metadata key
|
|
864
|
+
policy rejects reserved control names such as `constructor`, `toString` and
|
|
865
|
+
`hasOwnProperty`; payload helper support does not relax that policy. Existing
|
|
866
|
+
stored definitions with such keys require a backend migration.
|
|
867
|
+
|
|
868
|
+
Read-only/disabled does not automatically mean omission from `getRawValue()`.
|
|
869
|
+
The canonical backend command request projection excludes read-only custom fields
|
|
870
|
+
from properties and required, while response schemas retain them for display.
|
|
871
|
+
Use the exact operation request schema; merging response fields into commands or
|
|
872
|
+
adding an unimplemented `x-ui.submitPolicy` adapter would break that boundary.
|
|
873
|
+
Reconciliation treats a successful empty schema as authoritative. Removed
|
|
874
|
+
server-backed fields become hidden, disabled and `submitPolicy: 'omit'`, including
|
|
875
|
+
manual sync and Filter; explicit local fields remain local. Reappearance restores
|
|
876
|
+
the current server constraints rather than stale saved required/type/enum/items.
|
|
877
|
+
|
|
878
|
+
Each fresh schema-loading cycle revalidates HTTP and normalizes its body; compiled
|
|
879
|
+
L1 is not a readiness shortcut. A matching 304 can reuse the cached representation.
|
|
880
|
+
Status 0, denied access, malformed schema and failed saved-config reconciliation
|
|
881
|
+
cannot make the old form ready. Authorization errors show access feedback without
|
|
882
|
+
a generic retry action; timeout/transport failures retain their retry surface.
|
|
883
|
+
Schema loading/error or a known unconfirmed enterprise context blocks submit.
|
|
884
|
+
Context changes cancel obsolete reads, revalidate metadata and invalidate the old
|
|
885
|
+
initial-value seed; retry is not a general cross-context autosave guarantee.
|
|
886
|
+
|
|
887
|
+
The confirmed enterprise context supplies effective tenant/locale and context
|
|
888
|
+
version. Explicit schema URLs conflicting with that context are rejected. Identity
|
|
889
|
+
visible only to cookies/interceptors still requires a captured context version or
|
|
890
|
+
complete cache/session invalidation by the host; backend authorization is always
|
|
891
|
+
required. See the [enterprise review](https://github.com/codexrodrigues/praxis-ui-angular/pull/658)
|
|
892
|
+
for source, candidate gates, host proof and remaining adoption limits.
|
|
893
|
+
|
|
736
894
|
<!-- praxis-npm-catalog-links:start -->
|
|
737
895
|
## Official documentation and examples
|
|
738
896
|
|