@chobantonov/jsonforms-extended-spec 0.3.0 → 1.0.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 (40) hide show
  1. package/conformance/authoring.json +243 -0
  2. package/conformance/behavior.json +1755 -22
  3. package/docs/audit.md +17 -2
  4. package/docs/conditional-fields.md +105 -16
  5. package/docs/external-resources-proposal.md +8 -2
  6. package/docs/implementation-guide.md +76 -89
  7. package/docs/implementation-pitfalls.md +260 -12
  8. package/docs/implementation-web-typescript.md +2 -5
  9. package/docs/renderer-and-demo.md +47 -34
  10. package/docs/spec.md +169 -47
  11. package/docs/todo.md +59 -22
  12. package/examples/catalog.json +16 -1
  13. package/examples/conditional-fields/README.md +10 -0
  14. package/examples/conditional-template-slots/README.md +14 -0
  15. package/examples/conditional-template-slots/config.json +7 -0
  16. package/examples/conditional-template-slots/data.json +5 -0
  17. package/examples/conditional-template-slots/schema.json +37 -0
  18. package/examples/conditional-template-slots/translations.json +16 -0
  19. package/examples/conditional-template-slots/uischema.json +22 -0
  20. package/examples/group-layout/README.md +26 -1
  21. package/examples/group-layout/uischema.json +50 -41
  22. package/examples/index.js +4 -3
  23. package/examples/kitchen-sink/README.md +93 -4
  24. package/examples/kitchen-sink/config.json +7 -0
  25. package/examples/kitchen-sink/data.json +14 -2
  26. package/examples/kitchen-sink/invalid-data.json +13 -1
  27. package/examples/kitchen-sink/schema.json +100 -1
  28. package/examples/kitchen-sink/translations.json +80 -2
  29. package/examples/kitchen-sink/uischema.json +239 -5
  30. package/examples/label-interpolation/README.md +17 -1
  31. package/examples/label-interpolation/translations.json +8 -4
  32. package/examples/label-interpolation/uischema.json +25 -6
  33. package/package.json +1 -1
  34. package/schemas/README.md +10 -0
  35. package/schemas/jsonforms-extended-uischema.schema.json +8 -18
  36. package/schemas/jsonforms-uischema.schema.json +8 -18
  37. package/typescript/README.md +6 -0
  38. package/typescript/lib/authoring/forSchema.d.ts +10 -6
  39. package/typescript/src/authoring/forSchema.ts +10 -6
  40. package/typescript/test/typedAuthoringCoverage.test.ts +15 -7
package/docs/spec.md CHANGED
@@ -30,7 +30,9 @@ fallback that preserves data.
30
30
  Sections 1–28 define the model and renderer behavior. Section 29 defines the
31
31
  schema artifacts and validation boundary. Section 30 covers host integration,
32
32
  demo behavior and accessibility. Appendix A records proposals that are **not
33
- part of v1 conformance**. The examples are portable assets, with explicit host
33
+ part of v1 conformance**. Appendix B contains accepted supplemental contracts;
34
+ its placement does not make them proposals or certify adapter support. The
35
+ examples are portable assets, with explicit host
34
36
  requirements in [the catalog](../examples/catalog.json).
35
37
 
36
38
  ## Contents
@@ -67,6 +69,7 @@ requirements in [the catalog](../examples/catalog.json).
67
69
  - [29. JSON schema artifacts and validation boundary](#29-json-schema-artifacts-and-validation-boundary)
68
70
  - [30. Host, demo and accessibility contracts](#30-host-demo-and-accessibility-contracts)
69
71
  - [Appendix A. Proposals outside v1 conformance](#appendix-a-proposals-outside-v1-conformance)
72
+ - [Appendix B. Accepted supplemental contracts](#appendix-b-accepted-supplemental-contracts)
70
73
 
71
74
  ## 1. Purpose and portability
72
75
 
@@ -219,6 +222,14 @@ Three consequences follow, and each has been got wrong:
219
222
  resolves within its own construct; a duplicate *within* one construct is a
220
223
  configuration error and MUST be diagnosed rather than resolved by position.
221
224
 
225
+ ### 2.2 `slot` assigns placement in the immediate parent
226
+
227
+ `slot` is an optional, nonempty, case-sensitive string field on an element,
228
+ independent of its `name`, label and options. It assigns that child to a named
229
+ destination supported by its immediate parent. Omission uses the parent's normal
230
+ placement. Group destinations and fallback behavior are defined in [§8.1](#81-group).
231
+ This field does not rename a Template or change structural Slot lookup.
232
+
222
233
  ## 3. Runtime context and the action contract
223
234
 
224
235
  A reference web context:
@@ -788,31 +799,67 @@ does not look like a mistake.
788
799
  An ordinary Group presents related controls as a labelled section. Its default
789
800
  visual treatment belongs to the renderer family and requires no variant.
790
801
 
791
- Groups may also declare optional structural regions. `cover` is one
792
- UI-schema element displayed as prominent media in the card; `header` is
793
- an array of authored elements in the heading area; `footer` is an array of
794
- elements displayed after the body, including actions or other content. These are
795
- top-level fields, not `options`, and use ordinary renderer dispatch with the
796
- Group's schema, data path, enabled state and renderer registry. An empty region
797
- renders nothing. `elements` remains the body. A renderer family chooses the
798
- native component and styling for each region; none of these fields requires a
799
- Card component or a particular pixel arrangement.
800
-
801
- When `header` is present, its authored elements provide the heading; renderers
802
- prefer them over `label` and do not repeat the Group label. Without a header,
803
- `label` remains the title and accessible name. A header may contain two `Label`
804
- elements for a title and supporting text; renderers give the second a smaller,
805
- muted treatment. When the header contains a `Label`, the first such Label's
806
- resolved text is the Group's accessible name, including after a locale change;
807
- otherwise the Group label remains the accessible name. For a collapsible Group,
808
- the existing status and chevron stay
809
- at the far right of the heading row. The cover and one heading area remain
810
- visible when collapsed. Only the body and footer hide. Keep authored
811
- interactive content in `header` outside the disclosure trigger. Footer content
812
- remains outside the trigger too. Group visibility hides all regions;
813
- enabled/read-only behavior and rule visibility apply to dispatched children as
814
- usual. Region children do not become body descendants for the Group's
815
- data-presence or validation indicators; only `elements` define that aggregate.
802
+ All Group children are authored in `elements`. A direct child may declare the
803
+ optional top-level `slot` field: `"cover"` places it before the heading,
804
+ `"header"` supplies the authored heading, and `"footer"` places it after the
805
+ body. Children not selected for a region form the body in authored relative
806
+ order, including children without `slot`. Group
807
+ orders the regions as cover, heading, body and footer regardless of their
808
+ positions in `elements`. There is no Group-level `slots` mapping or activation
809
+ switch. With no slot assignments, the Group is an ordinary body-only Group.
810
+
811
+ Each region uses the **first direct child in authored `elements` order** whose
812
+ `slot` exactly matches that region. Later children with the same slot name remain
813
+ in the body, as if their `slot` were omitted. Unrecognized slot names likewise
814
+ use ordinary body placement. These are valid fallback cases, not configuration
815
+ errors; no child is discarded or rendered twice. Body fallback children follow
816
+ ordinary body collapse, data-presence and validation-indicator behavior.
817
+
818
+ Authors SHOULD assign only one child to each recognized slot. To intentionally
819
+ compose multiple elements in a region, put them in one ordinary layout assigned
820
+ to that slot. Group does not automatically combine repeated assignments.
821
+
822
+ `slot` is placement metadata read by the immediate parent, independent of `name`.
823
+ For example, a Template can have `name: "partner-summary"` and `slot: "header"`:
824
+ its name still selects the registered template. A child named `header` without a
825
+ `slot` remains body content. Nested assignments do not fill an ancestor Group's
826
+ regions. Other parent constructs define their own slot support; parents without
827
+ such support retain ordinary child placement.
828
+ `slot` is not `options.slot`, a styling part, or a structural `Slot` element.
829
+
830
+ Dispatch every region child through the normal registry with the Group's schema,
831
+ data path and enabled state. Generic child traversal uses `elements` for all
832
+ regions. Determine placement and occurrence identity from authored children
833
+ before conditional or rule filtering. Hiding or conditionally omitting the first
834
+ matching child does not promote a later match from the body. A hidden region
835
+ stays assigned and never falls into the body; filtering must not remount surviving body editors. An empty
836
+ region renders nothing. Renderer families choose native components and styling;
837
+ slot assignments require neither a Card component nor identical pixels.
838
+ The former Group-level `cover`, `header` and `footer` child fields are no longer
839
+ part of this contract; migrate their content into slotted `elements` children.
840
+ Open authoring schemas may preserve those unknown keys without validating their
841
+ contents or implying support.
842
+
843
+ An authored header supplies the heading instead of repeating the Group label.
844
+ When no header content is visible, use `label` as the visible title and accessible
845
+ name. For the header child's own Label, or Labels within its authored layout
846
+ children, the first visible Label in depth-first authored order supplies the
847
+ resolved accessible name. Do not search Control details, registered Template
848
+ expansions or other independent content contexts for a title; when no eligible
849
+ Label exists, use the Group label as the accessible name. Resolve effective Label
850
+ text and recompute after locale, dynamic-text or visibility changes. A header
851
+ layout may contain a title Label followed by a supporting Label; renderers SHOULD
852
+ give the supporting Label a smaller, muted treatment.
853
+
854
+ For a collapsible Group, the existing status and chevron stay at the far right of
855
+ the heading row. The cover and one heading area remain visible when collapsed;
856
+ only the body and footer hide. Keep authored interactive header and footer content
857
+ outside the disclosure trigger. Group visibility hides every region. Enabled,
858
+ read-only and rule behavior apply to dispatched children as usual. Group data-presence
859
+ and validation indicators aggregate only the body children and their
860
+ descendants, including duplicate/unknown-slot fallback children and excluding
861
+ children selected for regions, even though all children are stored
862
+ in `elements`. This presentation boundary does not change document validation.
816
863
 
817
864
  For Groups that declare regions, keep the authored content in one card frame.
818
865
  In a collapsible presentation, the cover and one heading area stay inside the
@@ -832,13 +879,19 @@ their card library's sections where available, or its documented composition pat
832
879
  {
833
880
  "type": "Group",
834
881
  "options": { "collapsible": true, "collapsed": true },
835
- "cover": { "type": "ImageView", "src": "/hotel.jpg", "alt": "Hotel courtyard", "options": { "width": "100%" } },
836
- "header": [
837
- { "type": "Label", "text": "Hospitality partner" },
838
- { "type": "Label", "text": "Verified member since 2018" }
839
- ],
840
- "elements": [{ "type": "Control", "scope": "#/properties/name" }],
841
- "footer": [{ "type": "Button", "label": "View partnership", "action": "viewPartner" }]
882
+ "elements": [
883
+ { "type": "ImageView", "slot": "cover", "src": "/hotel.jpg", "alt": "Hotel courtyard", "options": { "width": "100%" } },
884
+ {
885
+ "type": "VerticalLayout",
886
+ "slot": "header",
887
+ "elements": [
888
+ { "type": "Label", "text": "Hospitality partner" },
889
+ { "type": "Label", "text": "Verified member since 2018" }
890
+ ]
891
+ },
892
+ { "type": "Control", "scope": "#/properties/name" },
893
+ { "type": "Button", "slot": "footer", "label": "View partnership", "action": "viewPartner" }
894
+ ]
842
895
  }
843
896
  ```
844
897
 
@@ -849,13 +902,13 @@ name control and footer button.
849
902
  `ImageView` retains its URL policy and alternative-text rules (§13.1); `Button`
850
903
  retains the action, disabled and pending rules (§14). Authors can place any
851
904
  supported UI-schema element in a region, but should keep editable fields in
852
- `elements` so collapse and section indicators have predictable meaning.
905
+ unslotted body children so collapse and section indicators have predictable meaning.
853
906
 
854
907
  | Option | Default | Behaviour |
855
908
  | --- | --- | --- |
856
909
  | `collapsible` | `false` | Enables an accessible disclosure control |
857
910
  | `collapsed` | `false` | Initializes expansion and synchronizes it when the effective boolean changes. Ignored unless `collapsible` is true |
858
- | `showDataIndicator` | `false` | Shows a data-presence indicator when at least one bound descendant contains data |
911
+ | `showDataIndicator` | `false` | Shows a data-presence indicator when at least one bound body descendant contains data |
859
912
  | `showValidationIndicator` | `false` | Shows an aggregated descendant-error indicator. See §8.3 |
860
913
 
861
914
  ```json
@@ -1264,7 +1317,22 @@ or silently enable overlay expressions through the interpolation gate.
1264
1317
  | | may reference |
1265
1318
  | --- | --- |
1266
1319
  | a `textParams` **value** | `data`, `item`, `config`, `context`, subject to the interpolation gate; `locale` |
1267
- | the **text** | the declared `textParams`, and `locale` |
1320
+ | the **text** | only the declared `textParams` |
1321
+
1322
+ The text scope MUST NOT inject `locale` or any other ambient variable. To
1323
+ show the host locale, declare it explicitly, for example
1324
+ `"textParams": { "language": "{locale}" }`, then use `{language}` in the text.
1325
+ `locale` remains available to parameter expressions even when the interpolation
1326
+ data-access gate is closed; this does not enable data namespaces. A parameter
1327
+ may itself be named `locale`: `"textParams": { "locale": "{locale}" }` reads
1328
+ the host locale on the right and exposes a declared parameter on the left.
1329
+ Parameter evaluation does not read the text scope, so there is no self-reference.
1330
+ Undeclared `{locale}` in text follows the unknown-variable diagnostic rule (§9.5).
1331
+ Locale-aware formatting functions still use the active host locale (§9.3).
1332
+
1333
+ This replaces the earlier implicit text variable. Migrate existing messages by
1334
+ adding an explicit parameter; renderers MUST NOT retain an undeclared-locale
1335
+ exception in the canonical text scope.
1268
1336
 
1269
1337
  A translated string MUST NOT be able to name a data path. `{data.customerName}`
1270
1338
  written in the text resolves to nothing and is reported, however open the gate
@@ -1389,7 +1457,9 @@ value from the Label's own option, then
1389
1457
  when the host default is absent or `false`. The host setting is a default,
1390
1458
  not a permission gate. Omit the local option to inherit that default; a schema
1391
1459
  validator MUST NOT insert a local `false` for an omitted option. This option
1392
- does not cascade from a parent layout to its descendants.
1460
+ does not cascade from a parent layout to its descendants. As defensive handling
1461
+ of unchecked input, a renderer MUST ignore a non-boolean local
1462
+ `options.textParamSpans` and resolve the effective value as if it were omitted.
1393
1463
 
1394
1464
  When the effective value is true, an HTML renderer implementing the capability
1395
1465
  wraps each nonempty substitution of a bare declared parameter name in a
@@ -1422,9 +1492,12 @@ The attribute uses the declared parameter name, never its expression, data
1422
1492
  path or resolved value. Set attributes through a safe attribute API or escape
1423
1493
  them correctly when serializing HTML. Repeated occurrences receive the same
1424
1494
  name; translated messages may reorder them without changing their names.
1425
- Expressions such as `{seats + 1}`, reserved variables such as `{locale}`, and
1426
- escaped literal braces receive no marker. Missing or empty substitutions
1427
- produce no span; rendered `0` and `false` are nonempty values. Existing failure
1495
+ Expressions such as `{seats + 1}`, undeclared identifiers and escaped literal
1496
+ braces receive no marker. Eligibility is determined from declared `textParams`
1497
+ keys, not from whether an expression is a bare identifier. A declared parameter
1498
+ named `locale` is eligible just like any other parameter; an undeclared
1499
+ `{locale}` is an authoring error (§9.1), not an implicit substitution. Missing
1500
+ or empty substitutions produce no span; rendered `0` and `false` are nonempty values. Existing failure
1428
1501
  handling and diagnostics (§9.5) remain unchanged.
1429
1502
 
1430
1503
  Markers MUST preserve text content, accessible reading order, link targets,
@@ -2486,7 +2559,16 @@ stale slot editors.
2486
2559
 
2487
2560
  **Children are addressed by name.** Each named child is available to the
2488
2561
  template as a placeholder that mounts its delegated renderer. Unnamed children
2489
- receive their decimal index as a fallback name; explicit names are recommended.
2562
+ receive their authored decimal index as a fallback name; explicit names are recommended.
2563
+ Conditional projection MUST preserve the authored address set and collision
2564
+ resolution. Known inactive slots render nothing, without unknown-slot diagnostics
2565
+ or fallback activation. Ordered child views MUST NOT alias a later child into an
2566
+ inactive numeric address, even when the numeric name was explicit. Iteration
2567
+ renders only active content while retaining slot identity. A profile that supports
2568
+ component-style child references applies the same rule to those references;
2569
+ unknown names and unsupported syntax retain their diagnostics. See
2570
+ [conditional fields](conditional-fields.md) for object-boundary ownership.
2571
+
2490
2572
 
2491
2573
  Two requirements that are easy to satisfy incorrectly:
2492
2574
 
@@ -2725,6 +2807,14 @@ libraries MUST NOT give these values different meanings.
2725
2807
  | UI-schema options | `options.readonly` requests read-only behaviour independently of schema annotation |
2726
2808
  | JSON Schema | `readOnly` is the standard spelling. Lowercase is **not** the schema keyword |
2727
2809
 
2810
+ JSON Forms core integrations also preserve core's compatibility spelling
2811
+ `options.readOnly` and `config.readOnly`. Within either source, a boolean
2812
+ `readonly` takes precedence over a boolean `readOnly`; the normal source
2813
+ precedence below still applies. Adapters MUST NOT silently strip these options
2814
+ before core resolves them. Use lowercase `readonly` in portable UI/config
2815
+ examples; other integrations MAY support the compatibility alias. This does not
2816
+ change the JSON Schema keyword's spelling.
2817
+
2728
2818
  JSON Schema `readOnly` is an **annotation**. Standard validation does not
2729
2819
  compare previous and new values, nor enforce immutability because the
2730
2820
  annotation is present. The rendering integration enforces editing
@@ -7973,6 +8063,7 @@ for offline validation; no network resolver is required.
7973
8063
  | `jsonforms-config.schema.json` | Common defaults and shared extension configuration |
7974
8064
  | `jsonforms-extended-config.schema.json` | Extended configuration and security blocks |
7975
8065
  | `example.schema.json` | Example catalog entry and host requirements |
8066
+ | `jsonforms-dynamic-uischema.schema.json` | Separate experimental `$dynamic` descriptor profile (§11); not static v1 conformance |
7976
8067
  | `jsonforms-rule.schema.json` | Standalone serialized rules, shared by both UI profiles |
7977
8068
 
7978
8069
  Unknown options and extension namespaces remain open. Known fields retain their
@@ -7986,7 +8077,9 @@ schema or config. This is separate from a form validator deliberately applying
7986
8077
  defaults to business data under §15.9.
7987
8078
 
7988
8079
  Structural checks cover option shapes, nested UI elements, mutually exclusive
7989
- Button action/script fields. Future dynamic descriptors are not defined. They cannot prove
8080
+ Button action/script fields. The common and extended static UI profiles do not
8081
+ define `$dynamic` descriptors; the separate experimental schema validates their
8082
+ syntax. Structural checks cannot prove
7990
8083
  that a Control scope resolves, a named category exists, a CSS length is useful,
7991
8084
  an expression is safe to execute, a bound is comparable, or a renderer behaves
7992
8085
  correctly. Those require semantic and behavioral conformance tests. Neither a
@@ -8011,7 +8104,7 @@ claim renderer conformance or execute scripts embedded in example documents.
8011
8104
 
8012
8105
  The detailed host and demo acceptance requirements are maintained in
8013
8106
  [Renderer and demo guide](renderer-and-demo.md). See the
8014
- [documentation coverage map](audit.md) for historical sources.
8107
+ [authoring-schema audit and source reconciliation](audit.md) for historical sources.
8015
8108
 
8016
8109
  ### 30.1 Host parity and reusable behavior
8017
8110
 
@@ -8093,6 +8186,13 @@ publish limitations rather than treating a schema definition or a worked example
8093
8186
  as proof of runtime support. External choice providers have no canonical option
8094
8187
  in this version; any relationship to the experimental overlay resolver still needs design.
8095
8188
 
8189
+ ## Appendix B. Accepted supplemental contracts
8190
+
8191
+ These sections supplement the model and renderer requirements above. They are
8192
+ accepted contracts, subject to capability declarations and documented platform
8193
+ limits; they are not the proposals in Appendix A. Existing section anchors remain
8194
+ stable for links from examples and implementation guides.
8195
+
8096
8196
  ### Array panel collapsing
8097
8197
 
8098
8198
  All array presentations (table, expandable items, list with detail, and AG Grid)
@@ -8113,7 +8213,12 @@ shared controls, normal tables, AG Grid and detail editors with English/Bulgaria
8113
8213
  authoring catalogs. It includes valid and deliberately invalid data fixtures.
8114
8214
  Phone validation is an explicit international syntax pattern; it does not prove
8115
8215
  reachability. Standard email/date/time format validation must be enabled by the
8116
- host. See the example for component coverage and library-locale requirements.
8216
+ host. Its root layout opts into conditional work-location and relocation fields;
8217
+ employment cards, skills chips, language selection, adornments and live translated
8218
+ summaries demonstrate additional portable contracts. A separate Demo guide tab
8219
+ identifies what to try while applicant-facing captions stay business-oriented.
8220
+ Named substitution and slot markers require host styling for a visible effect.
8221
+ See the example for component coverage, adapter limits and library-locale requirements.
8117
8222
 
8118
8223
 
8119
8224
  ### Direct errors on arrays and objects
@@ -8401,13 +8506,20 @@ which navigates arbitrary JSON structure.
8401
8506
 
8402
8507
  The selected node's child collection retains native add/delete behavior and
8403
8508
  uses links to child editors rather than recursively expanding their fields.
8509
+ Tree rows also expose rename and delete actions. Rename edits the configured
8510
+ label property's value, not an object key, and validates the new value against
8511
+ its schema. Delete removes the node from its parent's child array and respects
8512
+ minItems, read-only ancestors, and deletion confirmation (the mixed catalog).
8513
+ The displayed root cannot be deleted. Confirmation rechecks the current target
8514
+ and permissions to avoid deleting a replacement node at a reused array index.
8404
8515
  Editing a node preserves sibling data. Node error indicators include descendants
8405
8516
  and follow the container-indicator and validation-visibility settings. After a
8406
8517
  selected node is removed, select its closest remaining parent. Navigation remains
8407
8518
  available in read-only forms; mutations remain disabled.
8408
8519
 
8409
8520
  The recursive-tree example includes a Tree editor tab for comparison. See the
8410
- implementation guide for renderer coverage.
8521
+ [implementation guide](implementation-guide.md#recursive-node-tree-presentation)
8522
+ for acceptance guidance; renderer projects record their own executed coverage.
8411
8523
 
8412
8524
  ### Array detail resolution
8413
8525
 
@@ -8461,10 +8573,20 @@ See the editor-details example.
8461
8573
 
8462
8574
  See [conditional field presentation and graphical authoring](conditional-fields.md).
8463
8575
  Use `options.conditionalFields: true` on an object Control or an object-context
8464
- layout entry (VerticalLayout, HorizontalLayout, Group or Categorization), or use
8576
+ layout entry (VerticalLayout, HorizontalLayout, Group, Categorization, TemplateLayout, Template or Slot), or use
8465
8577
  `config.jsonformsExtended.conditionalFields` as the default. Local false opts out.
8466
8578
  The entry owns the projection for descendant layouts and Categories at that
8467
- object boundary. Nested object and array-item boundaries resolve independently.
8579
+ object boundary; their local options are ignored in both directions. Group
8580
+ regions participate in the same filtering. Whole-value editors retain the
8581
+ original schema. Nested object, array-item and independent host form boundaries
8582
+ resolve independently.
8583
+ Filtering the last child from a Group region MUST preserve compatible body
8584
+ editor instances, focus and local drafts. Choose a stable enclosing frame from
8585
+ the authored layout, or use an equivalent reconciliation strategy. Render only
8586
+ active region contents; retaining identity must not expose inactive controls.
8587
+ Projection diagnostics belong to the boundary that evaluated the projection.
8588
+ Descendants reusing it MUST NOT emit or display its failures again. Independent
8589
+ object paths and forms retain their own diagnostics even when messages match.
8468
8590
  Explicit layouts preserve placement and update conditional required indicators
8469
8591
  without generating extra controls. See the conditional-fields contract for
8470
8592
  ownership, validation, examples and platform support limits.
package/docs/todo.md CHANGED
@@ -6,12 +6,24 @@ This backlog separates proposals from implementation work. Renderer projects
6
6
  record their own coverage and implementation issues.
7
7
 
8
8
  - **FUTURE:** discuss and refine the design before implementing it.
9
- - **TODO:** complete or verify implementation and behavior tests before exposing
10
- the option in the published schemas.
9
+ - **TODO:** remaining implementation or adapter verification. For a proposed
10
+ authoring option, complete the promotion checklist before publishing its shape.
11
+ Verification of an accepted contract does not remove it from the schemas.
12
+ - **EXPERIMENTAL:** a separate opt-in profile whose portable conformance remains
13
+ unsettled, even when schema/type/example assets already exist.
11
14
 
12
15
  Unknown extension keys remain allowed by the schemas. Such acceptance does not
13
- validate the feature's shape or claim it is supported. We do not publish a second
14
- schema containing speculative options.
16
+ validate the feature's shape or claim it is supported. Speculative options stay
17
+ out of the static schemas; the explicitly experimental `$dynamic` profile has
18
+ its own schema and does not promote those options into static conformance.
19
+
20
+ ## Review boundary
21
+
22
+ Reviewed against this package on 2026-12-04: schemas, TypeScript authoring,
23
+ examples, behavior vectors and validation tests. This repository ships no
24
+ renderer adapter; the list below does not certify current React, Svelte, Vue or
25
+ native support. Dated source audits retain their stated revision and scope.
26
+ Renderer projects own execution results and remaining implementation issues.
15
27
 
16
28
  ## Accepted optional host styling hooks — adapter verification
17
29
 
@@ -26,9 +38,11 @@ Run the `styling-*` behavior vectors and the
26
38
  [membership walkthrough](../examples/label-interpolation/README.md#optional-host-css-hooks)
27
39
  through each adapter before claiming support. Verify slot placement, translated
28
40
  substitution names, local/host boolean precedence in both directions, Markdown
29
- equivalence, URL decisions, accessibility and disabled-path processing. Record native mappings or documented no-op fallbacks
30
- and Shadow Root styling limits. Renderer execution remains unverified here;
31
- the config-consumption inventory explicitly records that boundary.
41
+ equivalence, URL decisions, accessibility and disabled-path processing. Record
42
+ native mappings or documented no-op fallbacks and Shadow Root styling limits.
43
+ Renderer execution remains unverified here; the
44
+ [config-consumption inventory](../conformance/config-consumption.json) records
45
+ source-level evidence and its limits.
32
46
 
33
47
  ## TODO — portable input adornment verification
34
48
 
@@ -60,7 +74,7 @@ separate from the experimental descriptor schema and adapter tests.
60
74
  environment snapshots and reevaluation when input namespaces change.
61
75
  - Resolution before renderer/cell selection, parent-consumed metadata, and
62
76
  nested/detail occurrences.
63
- - Group `cover`, `header`, and `footer` children resolve through dynamic
77
+ - Group children with `slot: "cover"`, `slot: "header"`, and `slot: "footer"` resolve through dynamic
64
78
  dispatch. Verify region updates, the effective header Label's accessible
65
79
  name, and preservation of the mounted body editor.
66
80
  - Immediate draft discard on editor replacement, scope-change editing sessions,
@@ -105,12 +119,16 @@ from the overlay resolver and does not grant CEL or trusted-function activation.
105
119
 
106
120
  ## Proposed authoring features awaiting design or implementation
107
121
 
108
- Composite-dialog removal settings,
109
- a separate clear-button option, pending-analysis/submit policy, touch-aware
110
- container summaries, and structured diagnostics require a settled contract and
111
- behavioral evidence before their authoring shapes are promoted. Their absence
112
- from the published schemas is intentional; permissive extension keys do not
113
- promise support.
122
+ Composite-dialog removal settings (`showRemoveButton` / `removeLabel`) and
123
+ additional authoring shapes for pending-analysis/submit policy, touch-aware
124
+ container summaries, and structured diagnostics still need design and behavioral
125
+ evidence before promotion. Their absence from the published schemas is
126
+ intentional; permissive extension keys do not promise support.
127
+
128
+ The existing `clearable` option is already published. Pending-edit validity
129
+ (§18.4), pre-touch filtering (§15.7), and diagnostic guidance (§21) also have
130
+ accepted contracts; completing their adapter integration is separate from
131
+ designing new serialized settings.
114
132
 
115
133
  Implementation-specific findings belong in each renderer project.
116
134
 
@@ -136,11 +154,13 @@ must never be interpreted as evidence that a renderer implements it.
136
154
  Broader conditional composition coverage remains open. Each renderer project
137
155
  tracks its own executable work.
138
156
 
139
- - Extend conditional discovery and authored placement across anyOf/oneOf,
140
- referenced branches and named templates, with reference-scope regressions.
157
+ - Extend conditional discovery into anyOf/oneOf alternatives. Local-reference,
158
+ allOf and named-template placement contracts already have examples and
159
+ acceptance vectors; execute and broaden their adapter coverage rather than
160
+ treating those contracts as undesigned.
141
161
  - Add contains matching-item feedback and explanations of not failures. Do not
142
162
  infer editable fields from a negated schema.
143
- - Implement boolean false presentation with absence as the quiet default:
163
+ - Verify boolean false presentation with absence as the quiet default:
144
164
  hide absent optional forbidden fields and exclude them from add choices.
145
165
  Existing forbidden data must have visible feedback and an allowed removal
146
166
  path, without automatic deletion. Root false and required false properties
@@ -157,10 +177,27 @@ Drag/drop must preserve field bindings and unknown options. These editor feature
157
177
  are planned work, not implemented capabilities or new published option shapes.
158
178
  See [conditional authoring guidance](conditional-fields.md).
159
179
 
180
+ ## TODO — accepted conditional and template adapter verification
181
+
182
+ The [conditional contract](conditional-fields.md) includes direct-layout entry,
183
+ Group regions, whole-value schema preservation, local override ownership,
184
+ reference-aware discovery and Template/Slot address reservation. It is no longer
185
+ limited to direct fields in an object detail. Execute the `conditional-layout-*`,
186
+ `conditional-discovery-*` and `conditional-template-*` cases through each claimed
187
+ adapter. Include retained focus/drafts, stable Group frames, bounded static work,
188
+ independent forms and projection-diagnostic ownership. Keep the dated Svelte
189
+ source findings separate from renderer interaction evidence.
190
+
191
+ Named-template lookup, caller slot overrides and recursion boundaries also have
192
+ accepted contracts and vectors. Verify diagnostics and cycle termination in
193
+ renderer repositories; missing execution is not a missing authoring design.
194
+
160
195
  ## Completed authoring work
161
196
 
162
- Mixed type-specific details, shared editor detail modes, conditional object field
163
- discovery and Template/Slot examples now have documented authoring contracts and
164
- regression coverage. Their implemented slices are in the published schemas.
165
- Remaining conditional-composition and named-template diagnostic/cycle gaps belong
166
- in renderer backlogs. The drag-and-drop editor itself remains future work.
197
+ Mixed type-specific details, shared editor detail modes, conditional object and
198
+ layout presentation, Template/Slot placement, `clearable`, and the experimental
199
+ dynamic schema/playground have documented contracts and package validation
200
+ coverage. Static authoring shapes are published; `$dynamic` descriptors use their
201
+ separate experimental schema. These checks validate assets and authoring, not
202
+ renderer interaction. Remaining adapter verification stays above and in renderer
203
+ backlogs. The drag-and-drop editor itself remains future work.
@@ -201,6 +201,20 @@
201
201
  ],
202
202
  "hostRequirements": []
203
203
  },
204
+ {
205
+ "id": "conditional-template-slots",
206
+ "title": "Conditional template slots",
207
+ "files": [
208
+ "config.json",
209
+ "data.json",
210
+ "schema.json",
211
+ "translations.json",
212
+ "uischema.json"
213
+ ],
214
+ "hostRequirements": [
215
+ "Register the Ractive TemplateLayout profile and allow script evaluation for this trusted template."
216
+ ]
217
+ },
204
218
  {
205
219
  "id": "container-validation-indicator",
206
220
  "title": "Container validation indicator",
@@ -363,7 +377,8 @@
363
377
  "config.json"
364
378
  ],
365
379
  "hostRequirements": [
366
- "Register base and extended renderers/cells, including AG Grid and Monaco. Enable standard format validation and load English or Bulgarian renderer messages. Phone validation checks international syntax, not assignment or reachability."
380
+ "Register base and extended renderers/cells, including AG Grid and Monaco. Enable standard format validation and load English or Bulgarian renderer messages. Phone validation checks international syntax, not assignment or reachability.",
381
+ "Support conditional object-context layouts, choice cards, chips, multi-select and portable input adornments (semantic lock/information icons). Label interpolation uses dynamicValues; optional part/textParamSpans styling requires host CSS in the form styling scope. Report unsupported capabilities; no experimental $dynamic or template engine is required."
367
382
  ]
368
383
  },
369
384
  {
@@ -25,3 +25,13 @@ visibility of those base fields.
25
25
 
26
26
  This example supports graphical authoring through serializable control scopes,
27
27
  detail layouts and config. It does not include a drag-and-drop editor.
28
+
29
+
30
+ Additional acceptance cases in conformance/behavior.json cover conditions reached
31
+ through allOf/$ref, ordinary allOf properties and required names without an if,
32
+ and direct layouts whose schema type is ["object", "null"]. They reuse explicit
33
+ name/vat/nickname placement. Business data requires name and vat; personal data
34
+ replaces vat with nickname except in the unconditional allOf case. Nullable layouts
35
+ must preserve null through null/object/null transitions. Separate reference-context
36
+ cases check cache isolation, missing references and cycles. These are additional
37
+ acceptance vectors rather than new tabs in the interactive example.
@@ -0,0 +1,14 @@
1
+ # Conditional template slots
2
+
3
+ This root TemplateLayout owns the object projection. The three authored decimal
4
+ slots are customer type (0), VAT (1), and notes (2). With personal data, slot 1 is
5
+ known but empty; notes stays in slot 2. Business data restores VAT and requires
6
+ both VAT and notes. Switching back retains VAT in data and removes the two
7
+ conditional required indicators. No unknown-slot warning or fallback is expected.
8
+
9
+ The Ractive profile requires the host's explicit script-evaluation permission.
10
+ Use it only for trusted templates. Equivalent acceptance vectors cover named and
11
+ explicit numeric addresses, supported JSX references, compiled native slots,
12
+ registered Template/Slot composition, unknown names and retained editor focus.
13
+ Profile support must be verified in an adapter; these fixtures alone do not
14
+ certify any renderer. The original schema remains the document validator.
@@ -0,0 +1,7 @@
1
+ {
2
+ "jsonformsExtended": {
3
+ "security": {
4
+ "allowScriptEvaluation": true
5
+ }
6
+ }
7
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "kind": "personal",
3
+ "vatNumber": "BG123",
4
+ "notes": "Retained notes"
5
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "kind": {
5
+ "type": "string",
6
+ "enum": [
7
+ "personal",
8
+ "business"
9
+ ]
10
+ },
11
+ "notes": {
12
+ "type": "string"
13
+ }
14
+ },
15
+ "if": {
16
+ "properties": {
17
+ "kind": {
18
+ "const": "business"
19
+ }
20
+ },
21
+ "required": [
22
+ "kind"
23
+ ]
24
+ },
25
+ "then": {
26
+ "properties": {
27
+ "vatNumber": {
28
+ "type": "string",
29
+ "minLength": 3
30
+ }
31
+ },
32
+ "required": [
33
+ "vatNumber",
34
+ "notes"
35
+ ]
36
+ }
37
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "en": {
3
+ "kind.label": "Customer type",
4
+ "kind.personal": "Personal",
5
+ "kind.business": "Business",
6
+ "vatNumber.label": "VAT number",
7
+ "notes.label": "Notes"
8
+ },
9
+ "bg": {
10
+ "kind.label": "Вид клиент",
11
+ "kind.personal": "Физическо лице",
12
+ "kind.business": "Фирма",
13
+ "vatNumber.label": "ДДС номер",
14
+ "notes.label": "Бележки"
15
+ }
16
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "type": "TemplateLayout",
3
+ "lang": "ractive",
4
+ "options": {
5
+ "conditionalFields": true
6
+ },
7
+ "template": "<section><div data-kind>{{>0}}</div><div data-vat>{{>1}}</div><div data-notes>{{>2}}</div></section>",
8
+ "elements": [
9
+ {
10
+ "type": "Control",
11
+ "scope": "#/properties/kind"
12
+ },
13
+ {
14
+ "type": "Control",
15
+ "scope": "#/properties/vatNumber"
16
+ },
17
+ {
18
+ "type": "Control",
19
+ "scope": "#/properties/notes"
20
+ }
21
+ ]
22
+ }