@chobantonov/jsonforms-extended-spec 0.3.0 → 0.4.0

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.
Files changed (32) hide show
  1. package/conformance/behavior.json +1503 -5
  2. package/docs/audit.md +17 -2
  3. package/docs/conditional-fields.md +101 -16
  4. package/docs/external-resources-proposal.md +8 -2
  5. package/docs/implementation-guide.md +75 -89
  6. package/docs/implementation-pitfalls.md +232 -6
  7. package/docs/implementation-web-typescript.md +2 -5
  8. package/docs/renderer-and-demo.md +47 -34
  9. package/docs/spec.md +85 -13
  10. package/docs/todo.md +58 -21
  11. package/examples/catalog.json +16 -1
  12. package/examples/conditional-fields/README.md +10 -0
  13. package/examples/conditional-template-slots/README.md +14 -0
  14. package/examples/conditional-template-slots/config.json +7 -0
  15. package/examples/conditional-template-slots/data.json +5 -0
  16. package/examples/conditional-template-slots/schema.json +37 -0
  17. package/examples/conditional-template-slots/translations.json +16 -0
  18. package/examples/conditional-template-slots/uischema.json +22 -0
  19. package/examples/index.js +3 -2
  20. package/examples/kitchen-sink/README.md +93 -4
  21. package/examples/kitchen-sink/config.json +7 -0
  22. package/examples/kitchen-sink/data.json +14 -2
  23. package/examples/kitchen-sink/invalid-data.json +13 -1
  24. package/examples/kitchen-sink/schema.json +100 -1
  25. package/examples/kitchen-sink/translations.json +80 -2
  26. package/examples/kitchen-sink/uischema.json +239 -4
  27. package/examples/label-interpolation/README.md +17 -1
  28. package/examples/label-interpolation/translations.json +8 -4
  29. package/examples/label-interpolation/uischema.json +25 -6
  30. package/package.json +1 -1
  31. package/schemas/jsonforms-extended-uischema.schema.json +3 -3
  32. package/schemas/jsonforms-uischema.schema.json +3 -3
package/docs/audit.md CHANGED
@@ -5,6 +5,12 @@ Audited on 2026-09-27 against the local `jsonforms-react-renderers` checkout at
5
5
  `3.9.0-alpha.1`. The historical comparison used
6
6
  `jsonforms-vuetify-webcomponent/packages/example/src/core/jsonschema/specification`.
7
7
 
8
+ This is a historical snapshot, not a current renderer inventory. Counts, source
9
+ comparisons and core-version observations below apply to the audited revision.
10
+ Later authoring contracts and their validation boundary are maintained in
11
+ [spec §29](spec.md#29-json-schema-artifacts-and-validation-boundary); current
12
+ adapter verification belongs in renderer projects.
13
+
8
14
  ## Result
9
15
 
10
16
  The source documents and worked examples were transferred successfully. The
@@ -36,8 +42,9 @@ setting does not establish adapter support.
36
42
  standalone `.mjs` hooks where needed. The package tests their imports and the
37
43
  UI schemas returned by the object and tuple registries.
38
44
 
39
- The published schemas describe current authoring inputs. `start`/`responsive`
40
- are reserved, and `showRemoveButton` remains unimplemented.
45
+ The published schemas describe accepted authoring inputs. `start`/`responsive`
46
+ remain reserved in the spec, with no published shape definitions;
47
+ `showRemoveButton` is also absent pending a settled contract and implementation.
41
48
  `separateReadonlyFromDisabled` is described without claiming renderer support.
42
49
 
43
50
  ## Coverage reviewed
@@ -148,3 +155,11 @@ build tools and source filenames were replaced with neutral responsibilities.
148
155
  Original source hashes and reconciliation decisions remain in `provenance.json`.
149
156
  Redundant historical copies and the separate coverage map have been removed.
150
157
  This reconciliation does not certify that every renderer implements every contract.
158
+
159
+ ## Job-application example provenance
160
+
161
+ This is a job-application example, inspired by the Svelte demo's
162
+ `packages/jsonforms-svelte-demo-common/src/lib/examples/job` schema, UI schemas,
163
+ translations and host actions. Its applicant/job-preference/experience/reference/
164
+ résumé/declaration workflow is the basis for further expansion. This is an adaptation,
165
+ not a direct port: Svelte app-store actions and dynamic defaults are not copied.
@@ -4,8 +4,7 @@
4
4
 
5
5
  Conditional presentation is opt-in: options.conditionalFields on an object
6
6
  Control or an object-context layout entry overrides
7
- config.jsonformsExtended.conditionalFields, default false. A root VerticalLayout,
8
- HorizontalLayout, Group or Categorization can therefore activate presentation
7
+ config.jsonformsExtended.conditionalFields, default false. A root VerticalLayout, HorizontalLayout, Group, Categorization, TemplateLayout, Template or Slot can therefore activate presentation
9
8
  without a wrapping Control. Categories and all nested layout variants participate
10
9
  in that presentation, including tabs, steppers and accordions. A layout does not
11
10
  create a data binding: evaluate against the current object schema and data path,
@@ -13,21 +12,58 @@ not the document root when rendering a nested object or an array item.
13
12
 
14
13
  The first layout at an object boundary owns the option for its layout subtree.
15
14
  Resolve its local boolean before the global default; a local false disables that
16
- projection even when nested layouts omit the option. Descendant layouts inherit
17
- this decision and cannot reverse a projection already applied at that boundary.
18
- Category is normally structural content of a Categorization and inherits its
19
- owner's setting. Configure the Categorization, not an individual Category.
15
+ projection. Only the owning layout entry's option is read for that layout
16
+ subtree: descendant layouts inherit the decision and MUST ignore their own
17
+ options.conditionalFields, whether true or false. This applies both to enabling
18
+ and disabling projection. Category is structural content of a Categorization
19
+ and inherits its owner's setting; its own option is ignored. Configure the
20
+ Categorization, not an individual Category. The option is also ignored on
21
+ any element that is neither an object Control nor a supported layout entry.
20
22
  Object Controls continue to own their own projection and detail layouts.
21
23
  A same-object Control can reuse the inherited projection and reserved inactive
22
24
  property names; an explicit local false restores its original object schema for
23
25
  its own detail. Layout filtering must not enter that Control's options.detail.
24
- New nested object and array-item boundaries resolve their options independently.
26
+ A whole-value editor bound to the current object (for example, a code editor
27
+ at scope "#" or a custom whole-object editor) MUST receive the original authored
28
+ object schema and reference context, including conditions and inactive property
29
+ constraints. It is not an individual field to omit through layout filtering.
30
+ Projection is for object field presentation, not a replacement schema for every
31
+ Control dispatched beneath a layout. A same-object Control presenting object
32
+ fields may reuse the inherited projection as described above; its local false
33
+ still restores the original schema. Scope alone does not distinguish a
34
+ whole-value editor from an object field editor. New nested object and array-item
35
+ boundaries resolve their options independently.
25
36
  Ownership is also local to the host form instance. An embedded independent form
26
37
  must not inherit another form's projection or disabled state merely because
27
38
  both use the root data path.
28
39
 
40
+ TemplateLayout, registered Template containers and Slot outlets may own an
41
+ object-boundary projection using the same local/global option precedence. A
42
+ registered template's resolved layout inherits its owner's projection; registry
43
+ lookup MUST NOT lose the active field set or create a new object boundary.
44
+
45
+ For templates, conditional omission MUST NOT erase an authored child address.
46
+ Resolve names and collision rules against the original authored child list,
47
+ including children currently inactive. Unnamed child names use their authored
48
+ decimal position. Preserve named and numeric lookup, ordered iteration and
49
+ repeated occurrences without compacting inactive positions into another child.
50
+ A known inactive slot renders no field, no fallback and no unknown-slot warning.
51
+ Its delegated field renderer MUST NOT be mounted. The authored document and
52
+ inactive data remain unchanged; rendering another branch restores the same slot.
53
+ A genuinely unknown name retains the profile's diagnostic/fallback behavior.
54
+ These rules apply to partials, native Slot components and supported expression
55
+ or component-style references. They do not require a profile to support an
56
+ otherwise unsupported template language or syntax.
57
+
29
58
  Existing UI rules and validator behavior are unchanged when omitted.
30
59
 
60
+ Discovery and projection use the same supported reference context. An opted-in
61
+ allOf can contribute properties and required names even without an if; ordinary
62
+ constraint-only branches do not introduce a field projection. Object-context
63
+ layout entry accepts an absent type, type object, or a type array containing
64
+ object. This eligibility does not select a union editor or convert null data into
65
+ an object. Original validation remains authoritative for every permitted type.
66
+
31
67
  Evaluate if against the current object using the host validator and original
32
68
  reference context. Apply then if it matches and else otherwise; do not derive
33
69
  activity from validation error lists. Conditions still apply in NoValidation.
@@ -49,11 +85,35 @@ Retained inactive properties are reserved from the additional-property editor.
49
85
 
50
86
  Moving controls among groups, columns and categories must not change conditional
51
87
  semantics or introduce frames. Preserve layout options, regions, rules, order and
52
- empty authored containers. Apply ordinary UI rules after determining active
53
- conditional bindings. Project once per owning object boundary, rather than
88
+ empty authored containers. A Group's header, footer and cover belong to the same
89
+ object boundary as its body: field bindings use the projection and inactive
90
+ branch-only bindings are omitted, including a directly bound cover Control.
91
+ Layouts inside regions inherit the owner's decision; filtering still stops at
92
+ Control detail boundaries. Preserve unbound region content and apply the normal
93
+ Group presentation rules when a region becomes empty. Apply ordinary UI rules
94
+ after determining active conditional bindings. Project once per owning object boundary, rather than
54
95
  reevaluating the same conditions for every nested layout. Never traverse a child
55
96
  Control's options.detail as if it belonged to the parent object.
56
97
 
98
+ Filtering a sibling MUST NOT discard a retained editor's focus, draft value or
99
+ pending update merely because its position in the filtered list changed.
100
+ Repeated bindings are separate authored occurrences and MUST retain independent
101
+ editing state. A change to an editor's own binding, selected renderer or value type
102
+ may require replacement; removing an unrelated binding does not. These are
103
+ observable requirements, not a requirement to use a particular component identity
104
+ mechanism. They apply to Group regions and splitter panes as well as ordinary
105
+ layout children.
106
+
107
+ Renderers SHOULD cache immutable-schema discovery and reuse unchanged presentation
108
+ structure. Editing an ordinary value need not rebuild the presentation when branch
109
+ decisions, dependency presence and effective constraints are unchanged. Equal
110
+ visible field names alone do not establish equal presentation: requiredness and
111
+ constraints can still differ. Always evaluate active conditions against current
112
+ data. Do not remove data-mutation protection from host validator evaluation as a
113
+ performance shortcut. Disabled projection MUST NOT evaluate conditional predicates
114
+ or filter authored layout content; lightweight ownership bookkeeping may remain
115
+ to preserve nested override rules and live configuration behavior.
116
+
57
117
  Only the presentation schema is projected. Original document validation remains
58
118
  authoritative, including additionalProperties and branch constraints. Projection
59
119
  must retain overlapping property constraints rather than replace earlier ones.
@@ -67,15 +127,24 @@ Generated object details include active properties. Explicit detail layouts and
67
127
  registered layouts keep their authored order and containers; ordinary Control
68
128
  scopes bind against the active object schema. Inactive branch-only bindings are
69
129
  omitted. Group fields wherever desired, including tabs and columns. No special
70
- additional-properties collection is required. Empty authored containers are kept.
130
+ additional-properties collection is required. Empty authored containers are kept:
131
+ conditional filtering MUST NOT prune a Group, Category, Categorization or plain
132
+ layout merely because its children were filtered out. An empty HorizontalLayout
133
+ or VerticalLayout may have no visible interior, but retains its existing parent
134
+ layout slot and applicable options, including a slot's styling marker (§5.7 of
135
+ the specification). This does not require an extra wrapper, minimum size, fixed
136
+ gap or identical pixels across platforms. Ordinary UI rules may still hide a
137
+ container; styling markers MUST NOT give hidden elements layout space.
71
138
  Standard detail GENERATE/REGISTERED/inline semantics remain in effect.
72
139
 
73
- The implemented first slice discovers properties, required names, if/then/else,
140
+ The initial discovery scope covers properties, required names, if/then/else,
74
141
  allOf and Draft-07 dependencies at each rendered object boundary. It does not
75
142
  infer fields from not, contains or alternatives inside anyOf/oneOf. Arbitrary
76
143
  remote references, nested $id rebasing and contradictory editor constraints
77
- are not certified. Branch ownership under reusable Template/Slot models is not
78
- filtered by this first slice; author branch fields directly in the detail layout.
144
+ are not certified. Template/Slot ownership and inactive-slot address preservation
145
+ are part of the accepted contract above. The [conditional template example](../examples/conditional-template-slots/README.md)
146
+ and `conditional-template-*` vectors describe acceptance cases; their presence
147
+ does not establish that an adapter implements them.
79
148
 
80
149
  ## Graphical editor contract
81
150
 
@@ -106,9 +175,25 @@ by this feature. Keep JSON Schema validation and UI-schema placement separate.
106
175
 
107
176
  The conditional-fields example demonstrates both object-Control and direct-layout
108
177
  entry points. The conditional-layout behavior vectors are portable acceptance
109
- inputs, not executed renderer tests. Direct-layout support is being implemented
110
- for React only; other renderer platforms are unverified for this extension.
111
- Record real registry test results in each renderer repository.
178
+ inputs, not executed renderer tests. This package does not certify current React
179
+ or other adapter support for direct-layout entry, Group regions, whole-value
180
+ schema preservation, template slots, editor continuity or diagnostic ownership.
181
+ Record real registry test results and the tested revision in each renderer
182
+ repository. The dated source audit below has its own narrower evidence boundary.
183
+
184
+ ### Svelte source audit (2026-12-03)
185
+
186
+ Inspection of the Svelte checkout at `d7ae9954` found object-Control conditional
187
+ projection, but did not establish direct-layout entry support. Its discovery
188
+ helper rescans conditional/reference/allOf structure; its layout filter recreates
189
+ containers and traverses `elements`, without filtering Group regions. Portable
190
+ layout and region child keys use positions, so conditional removal before a
191
+ retained editor presents the same identity risk described in the pitfalls.
192
+ The object-detail path passes its projected schema onward; whole-value editor
193
+ restoration needs component-level verification. These are source audit findings,
194
+ not claims that renderer interaction cases were executed or that the port has
195
+ adopted the clarified layout contract. Existing projection/dynamic-tree helper
196
+ tests do not establish focus, draft or performance behavior in native components.
112
197
 
113
198
  ## Follow-up priorities
114
199
 
@@ -1,9 +1,15 @@
1
1
  # JSON Forms Extended — External Resources and Reactive Data Binding
2
2
 
3
- **Status:** Proposed design for specification review
3
+ **Status:** Proposed design for specification review; outside static v1 conformance\
4
4
  **Scope:** Portable UI schema contract, host-provided resource resolution, runtime integration, security, and optional interaction capabilities
5
5
  **Target runtimes:** React, Vue, Svelte, Kotlin/Android, and other JSON Forms-compatible implementations
6
6
 
7
+ This document does not define published authoring options or current adapter
8
+ support. It proposes an extension to the [experimental `$dynamic` profile](spec.md#11-dynamic-values-and-path-grammar);
9
+ `resources` is not an existing evaluation namespace. Requirements and “V1” below
10
+ refer to a future resource profile, not the consolidated specification's v1.
11
+ See the [backlog](todo.md#future--other-designs) for promotion status.
12
+
7
13
  ## 1. Executive decision
8
14
 
9
15
  Introduce a **small, portable external-resource binding contract** rather than a REST-aware renderer or a full application orchestration framework.
@@ -51,7 +57,7 @@ A Camunda task form needs to select an assignee. The host may retrieve users fro
51
57
  ```text
52
58
  Extended UI Schema
53
59
  ├── Control / Layout / custom renderer options
54
- ├── $resource references (virtual names + parameters)
60
+ ├── $resources aliases (virtual names + parameters)
55
61
  └── $dynamic bindings (arbitrary target paths)
56
62
  │
57
63
  ▼
@@ -11,7 +11,7 @@ This guide is for new renderer implementations, including ports to other languag
11
11
  5. [Web and TypeScript notes](implementation-web-typescript.md), where applicable.
12
12
  6. [Behavior vectors](../conformance/behavior.json) and [examples](../examples/README.md).
13
13
 
14
- The specification and renderer acceptance guide govern requirements. This guide explains how to preserve them; it does not turn gaps in an existing implementation into the contract. The [Draft-07 audit](draft-07-visual-support.md) records known limits, not a universal certification. If these documents conflict, identify and reconcile the conflict instead of silently copying a reference implementation.
14
+ The specification and renderer acceptance guide govern requirements. This guide explains how to preserve them; it does not turn gaps in an existing implementation into the contract. The [Draft-07 checklist](draft-07-visual-support.md) defines editing cases to verify, not a universal certification. If these documents conflict, identify and reconcile the conflict instead of silently copying a reference implementation.
15
15
 
16
16
  ## What a comparable implementation preserves
17
17
 
@@ -33,7 +33,7 @@ Use native components and theme tokens. A native error icon may differ in shape;
33
33
  | Input adornment | Apply to supported input-like variants, including time, duration, cron and password where they expose a coherent text-entry surface. By default, start sits before native leading icons and end after native trailing icons. Use an established library slot order where applicable; translated content remains accessible without entering the value or obscuring built-in actions. |
34
34
  | Invalid ordinary control | Native invalid styling, accessible state and the applicable error indicator; readable error text below the control. Tooltip-only feedback is insufficient. |
35
35
  | Table cell | Column header supplies the label. Compact local feedback belongs beside/in the cell; error text is available through the accessible indicator/tooltip instead of expanding every row. |
36
- | Container | Direct errors stay at the container boundary; descendant errors use a localized summary and do not replace field-level feedback. |
36
+ | Container | Direct errors stay at the container boundary; descendant summaries follow the container-specific contract and do not replace field-level feedback. Object direct-error feedback excludes a child-error notice. |
37
37
  | Dynamic property | One property-name label. Name error indicator stays beside it, with edit/delete actions aligned separately. |
38
38
  | Object | The resolved Group identifies the object boundary. Do not replace it with a VerticalLayout merely because the title is absent. Omit empty static sections and redundant internal frames. |
39
39
  | Collection | Pagination remains inside the collection boundary, below its content. |
@@ -61,98 +61,50 @@ When work reveals an ambiguity or a commonly overlooked behavior:
61
61
  4. Record platform limits explicitly. Keep normative requirements separate from optimization advice and implementation certification.
62
62
  5. Link the new material from the relevant example or guide.
63
63
 
64
- Do not catalogue every typo, missing import or accidental regression. Record lessons another competent implementer could reasonably miss when reading the schema/specification. Describe the final behavior rather than a chronological bug history. The entries below were seeded from renderer fixes and existing spec material; they are not an exhaustive audit of all historical changes.
64
+ Do not catalogue every typo, missing import or accidental regression. Record lessons another competent implementer could reasonably miss when reading the schema/specification. Describe the final behavior rather than a chronological bug history. The [pitfalls](implementation-pitfalls.md) collect these lessons; they are not an exhaustive audit of all historical changes.
65
65
 
66
- ### Authoring mixed values as JSON code
67
-
68
- Set `options.structuredLayout: "code"` on a mixed Control, or `jsonformsExtended.mixed.structuredLayout: "code"` in config. Tree remains the default. Code mode edits the entire value, including scalars and null, without a separate type selector. It requires the extended Monaco renderer registry and the additional-error provider (`ExtendedJsonForms`, or the additional-error store integration).
69
-
70
- Monaco validates the bound section schema, with local references resolved against the document schema. Invalid JSON text stays in the editor and contributes an owner-scoped additional error; it must not overwrite the last parsed value. Parsed values update normally and AJV reports schema errors. Do not duplicate Monaco schema diagnostics into additional errors. Hosts must gate submission on additional errors as well as schema errors, because an invalid draft is newer than the stored value. Multiple editor models must retain independent schema registrations and clean them up on unmount.
66
+ ## Authoring mixed values as JSON code
71
67
 
68
+ Use the [mixed code contract](spec.md#authoring-mixed-values-as-json-code) for
69
+ configuration and parsing/error semantics. Verify independent model registrations,
70
+ local-reference context, additional-error ownership and submission gating through
71
+ the actual host integration. An invalid draft must remain editable without
72
+ replacing the last parsed value.
72
73
 
73
74
  ## Recursive node tree presentation
74
75
 
75
- A Control can opt into a tree with a selected-node detail pane using
76
- `options.recursiveTree: { childrenProperty: "children", labelProperty: "name" }`.
77
- Both properties name direct members of each node, not dotted paths. The tree
78
- omits intermediate collection and scalar-property entries. Unnamed nodes use
79
- an index label. The optional `detail` UI schema is relative to the selected node;
80
- it must not enable recursiveTree again. Branch layouts from the UI schema
81
- registry remain available. Without this option, recursive controls retain their
82
- existing nested presentation. This differs from mixed `structuredLayout: "tree"`,
83
- which navigates arbitrary JSON structure.
84
-
85
- The selected node's child collection retains native add/delete behavior and
86
- uses links to child editors rather than recursively expanding their fields.
87
- Tree rows also expose rename and delete actions. Rename edits the configured
88
- label property's value, not an object key, and validates the new value against
89
- its schema. Delete removes the node from its parent's child array and respects
90
- minItems, read-only ancestors, and deletion confirmation (the mixed catalog).
91
- The displayed root cannot be deleted. Confirmation rechecks the current target
92
- and permissions to avoid deleting a replacement node at a reused array index.
93
- Editing a node preserves sibling data. Node error indicators include descendants
94
- and follow the container-indicator and validation-visibility settings. After a
95
- selected node is removed, select its closest remaining parent. Navigation remains
96
- available in read-only forms; mutations remain disabled.
97
-
98
- The recursive-tree example includes a Tree editor tab for comparison.
76
+ The [recursive node tree contract](spec.md#recursive-node-tree-presentation)
77
+ distinguishes node-label renaming from mixed-tree object-key renaming. Exercise
78
+ child creation, ancestor permissions, confirmation after target replacement,
79
+ root deletion prevention and parent selection after removal. Use the
80
+ [recursive-tree example](../examples/recursive-tree/README.md); publish executed
81
+ adapter results separately from the example's acceptance instructions.
99
82
 
100
83
  ## Array detail resolution
101
84
 
102
- Array controls support these case-insensitive string modes:
103
-
104
- | detail | Behavior |
105
- | --- | --- |
106
- | Omitted or DEFAULT | Keep normal array presentation. Schema nesting may still require a nested editor. |
107
- | GENERATE | Use a nested editor and generate its detail UI schema without consulting the registry. |
108
- | REGISTERED | Use a nested editor; consult the UI-schema registry, then generate if no entry matches. |
109
- | Other strings, including GENERATED | Same registry-first behavior as REGISTERED, matching JSON Forms core. |
110
- | Inline UI schema | Use that layout for the item, with scopes relative to the item schema. |
111
-
112
- GENERATE is the canonical upstream implementation spelling. The upstream controls
113
- webpage says GENERATED, but that spelling does not bypass the registry in core.
114
- An explicit table option retains this project's table-selection precedence.
115
- Registry lookup and detail rendering are separate from renderer selection:
116
- DEFAULT does not force a table for structurally nested items.
117
- Use the existing detail mechanism for custom layouts instead of inventing a
118
- second generated/registered switch.
119
-
120
- The array-detail-modes example demonstrates a matching registry entry, generation,
121
- inline layout, DEFAULT, and registry fallback.
85
+ Follow [§18.6](spec.md#186-shared-detail-ui-schema-selection) and the
86
+ [array mode table](spec.md#array-detail-resolution). Verify registry bypass for
87
+ `GENERATE`, registry-first handling for `GENERATED`, and normal nested selection
88
+ with `DEFAULT` through the real registry. The
89
+ [array-detail-modes example](../examples/array-detail-modes/README.md) provides
90
+ matching, fallback and inline cases.
122
91
 
123
92
  ## Editor detail modes and mixed type overrides
124
93
 
125
- The detail resolver is also used for object and mixed editors. Explicit editor
126
- details in composite cells, tuple-field editors, recursiveTree.detail, and row
127
- editors accept the same string modes or inline layout. GENERATE bypasses registry
128
- lookup and preserves that intent through a fallback Control. REGISTERED and other
129
- strings use the registry before the context-specific fallback. DEFAULT preserves
130
- normal presentation; it does not mean table outside array selection. An omitted
131
- option retains the editor's existing default, which may already be a registered
132
- layout. Scopes in inline layouts are relative to the edited value's schema.
133
-
134
- Tuple container detail remains a position layout scoped to the whole tuple.
135
- Do not apply an array-item editor layout to each tuple position.
136
-
137
- Mixed controls accept object-detail, array-detail, string-detail, number-detail,
138
- integer-detail, boolean-detail, and null-detail. For the current mixed value,
139
- the selected type's option takes precedence over detail, including string modes.
140
- This is a project extension, not a new upstream detail mode. It does not change
141
- structuredLayout (tree/nested/code). Tree mode uses it for that mixed value's root
142
- detail pane; it does not impose a root-specific layout on every descendant.
143
- Code presentation edits the whole value and does not use these field layouts.
144
- Null retains the existing no-value-control presentation.
145
-
146
- See the editor-details example.
94
+ Use the [editor detail contract](spec.md#editor-detail-modes-and-mixed-type-overrides)
95
+ and [editor-details example](../examples/editor-details/README.md). Check that
96
+ registry-bypass intent survives fallback dispatch, inline scopes remain relative
97
+ to the edited value, and mixed root-specific details do not leak to descendants.
98
+ Keep tuple position layouts distinct from item editor layouts.
147
99
 
148
100
  ## Named templates are separate from ranked detail lookup
149
101
 
150
- Resolve Template.name against entry.uischema.name in registry order without
151
- calling testers. Slot.name resolves the inherited caller-content map, with local
152
- named children overriding it; fallback is the first Slot.elements child.
153
- Preserve schema, path and enabled state through both dispatches. A UI-model name
154
- is not a data binding. Named-only registry entries should return -1 from testers
155
- so ordinary detail selection does not accidentally choose them.
102
+ Follow [Template and Slot lookup](spec.md#134-template-and-slot) independently
103
+ of ranked detail selection. Preserve schema, path and enabled state through
104
+ both dispatches. Named-only registry entries should return -1 from testers so
105
+ ordinary detail selection does not accidentally choose them. See the
106
+ [lookup ownership pitfall](implementation-pitfalls.md#template-lookup-policies-have-different-ownership-boundaries)
107
+ for duplicate names and recursion boundaries.
156
108
 
157
109
  The template-slots example covers supplied content, fallback, empty slots and
158
110
  nested overrides. Implementations should also check missing-name diagnostics,
@@ -162,23 +114,33 @@ duplicate-name diagnostics and cycle protection against the normative requiremen
162
114
 
163
115
  See [conditional field presentation and graphical authoring](conditional-fields.md).
164
116
  Use `options.conditionalFields: true` on an object Control or an object-context
165
- layout entry (VerticalLayout, HorizontalLayout, Group or Categorization), or use
117
+ layout entry (VerticalLayout, HorizontalLayout, Group, Categorization, TemplateLayout, Template or Slot), or use
166
118
  `config.jsonformsExtended.conditionalFields` as the default. Local false opts out.
167
119
  The entry owns the projection for descendant layouts and Categories at that
168
- object boundary. Nested object and array-item boundaries resolve independently.
120
+ object boundary; their local options are ignored in either direction. Filter
121
+ Group regions as well as bodies, and retain empty authored containers and
122
+ existing layout slots. Whole-value editors retain the original schema; object
123
+ field editors may reuse the projection. Nested object and array-item boundaries
124
+ resolve independently. Reset inherited state at every independent host form,
125
+ even when its data path matches the enclosing form.
169
126
  Explicit layouts preserve placement and update conditional required indicators
170
127
  without generating extra controls. See the conditional-fields contract for
171
128
  ownership, validation, examples and platform support limits.
172
129
 
173
130
 
131
+ Preserve retained editors' focus, drafts and pending writes when an earlier
132
+ conditional binding disappears, including Group regions and splitter panes. Keep
133
+ occurrence identity separate from filtered indices and data-binding scope. Cache
134
+ immutable discovery and reuse unchanged projections without caching away current
135
+ condition evaluation. See [editor continuity](implementation-pitfalls.md#conditional-filtering-must-preserve-retained-editing-sessions)
136
+ and [bounded static work](implementation-pitfalls.md#conditional-presentation-needs-a-bounded-static-path).
137
+
174
138
  ## Choice-card branch details
175
139
 
176
- Resolve each branch card's detail mode before dispatching its editor. GENERATE
177
- must bypass registry selection, including a previously selected registered
178
- layout; REGISTERED uses the resolved branch schema with the control's schema
179
- scope, data path and document root. Inline layouts remain relative to the branch
180
- value. Missing registrations fall back to generation. Value-choice cards do not
181
- use branch editors.
140
+ Apply the [choice-card detail contract](spec.md#choice-cards) before dispatching
141
+ the branch editor. Check registry bypass even after a registered detail was
142
+ selected, then verify nested scope and reference-root preservation through the
143
+ actual renderer. Value-choice cards do not use branch editors.
182
144
 
183
145
  The choice-controls Card detail modes example covers generation with a matching
184
146
  registry, registry selection and fallback, inline layouts, and editing a nested
@@ -227,7 +189,31 @@ Compare marker-enabled and marker-disabled Markdown output after unwrapping
227
189
  only generated spans. Preserve parsing and URL decisions, and use unmarked
228
190
  output if equivalence is uncertain. Resolve the Label's own `options.textParamSpans`
229
191
  before the host default and then false; explicit false must survive option
230
- merging. The host default is not a permission gate, and layout options do not
192
+ merging. Ignore unchecked non-boolean local values as omitted. Derive marker
193
+ eligibility only from declared parameter keys. Text has no implicit locale:
194
+ expose it through a parameter such as `"language": "{locale}"`; a parameter
195
+ named `locale` is also valid. The host default is not a permission gate, and layout options do not
231
196
  cascade. Skip tracking and additional parsing when the effective value is false. See the [pitfall](implementation-pitfalls.md#host-styling-markers-must-not-change-content)
232
197
  and the acceptance cases in the [Label example](../examples/label-interpolation/README.md).
233
198
  Renderer support remains unverified until an adapter executes the cases.
199
+
200
+
201
+ ### Conditional discovery and object eligibility
202
+
203
+ Use the original reference root during both conditional discovery and projection.
204
+ Include supported referenced branches and ordinary allOf field contributions;
205
+ cache only completed searches by schema and reference-root identity. Object-context
206
+ layout eligibility includes type arrays containing object. Preserve null values
207
+ and original document validation. See the conditional discovery pitfall and the
208
+ conditional-layout-discovery-* behavior vectors for adapter acceptance cases.
209
+
210
+
211
+ ### Templates inside conditional projections
212
+
213
+ TemplateLayout, Template and Slot participate in object-boundary projection.
214
+ Keep known inactive child slots addressable as empty content. Preserve authored
215
+ numeric addresses and iteration, not just explicit name maps; dense-array fallback
216
+ can otherwise reintroduce aliases. Distinguish known inactive slots from unknown
217
+ names, retain genuine diagnostics, and forward the projection through registered
218
+ layouts. Execute conditional-template-* acceptance vectors and see the associated
219
+ pitfall for focus/selection and DOM staging requirements.