@chobantonov/jsonforms-extended-spec 0.0.0-stage → 0.3.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 (366) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +126 -2
  3. package/conformance/authoring.json +2680 -0
  4. package/conformance/behavior.json +1602 -0
  5. package/conformance/config-consumption.json +1542 -0
  6. package/conformance/expected-invalid.json +20 -0
  7. package/docs/audit.md +150 -0
  8. package/docs/conditional-fields.md +122 -0
  9. package/docs/draft-07-visual-support.md +43 -0
  10. package/docs/external-resources-proposal.md +536 -0
  11. package/docs/implementation-guide.md +233 -0
  12. package/docs/implementation-pitfalls.md +968 -0
  13. package/docs/implementation-web-typescript.md +41 -0
  14. package/docs/renderer-and-demo.md +1347 -0
  15. package/docs/renderer-selection.md +99 -0
  16. package/docs/spec.md +8470 -0
  17. package/docs/todo.md +166 -0
  18. package/examples/README.md +127 -0
  19. package/examples/additional-errors/README.md +176 -0
  20. package/examples/additional-errors/config.json +3 -0
  21. package/examples/additional-errors/data.json +11 -0
  22. package/examples/additional-errors/schema.json +56 -0
  23. package/examples/additional-errors/translations.json +64 -0
  24. package/examples/additional-errors/uischema.json +158 -0
  25. package/examples/additional-items-pagination/README.md +8 -0
  26. package/examples/additional-items-pagination/config.json +10 -0
  27. package/examples/additional-items-pagination/data.json +22 -0
  28. package/examples/additional-items-pagination/schema.json +30 -0
  29. package/examples/additional-items-pagination/translations.json +16 -0
  30. package/examples/additional-items-pagination/uischema.json +39 -0
  31. package/examples/additional-properties/README.md +203 -0
  32. package/examples/additional-properties/config.json +5 -0
  33. package/examples/additional-properties/data.json +31 -0
  34. package/examples/additional-properties/schema.json +78 -0
  35. package/examples/additional-properties/translations.json +80 -0
  36. package/examples/additional-properties/uischema.json +104 -0
  37. package/examples/ag-grid/README.md +62 -0
  38. package/examples/ag-grid/config.json +14 -0
  39. package/examples/ag-grid/data.json +124 -0
  40. package/examples/ag-grid/schema.json +48 -0
  41. package/examples/ag-grid/translations.json +58 -0
  42. package/examples/ag-grid/uischema.json +671 -0
  43. package/examples/array-choices/README.md +150 -0
  44. package/examples/array-choices/config.json +4 -0
  45. package/examples/array-choices/data.json +10 -0
  46. package/examples/array-choices/schema.json +68 -0
  47. package/examples/array-choices/translations.json +64 -0
  48. package/examples/array-choices/uischema.json +97 -0
  49. package/examples/array-controls/README.md +237 -0
  50. package/examples/array-controls/config.json +4 -0
  51. package/examples/array-controls/data.json +147 -0
  52. package/examples/array-controls/schema.json +374 -0
  53. package/examples/array-controls/translations.json +186 -0
  54. package/examples/array-controls/uischema.json +685 -0
  55. package/examples/array-detail-modes/README.md +11 -0
  56. package/examples/array-detail-modes/data.json +38 -0
  57. package/examples/array-detail-modes/schema.json +89 -0
  58. package/examples/array-detail-modes/translations.json +36 -0
  59. package/examples/array-detail-modes/uischema.json +73 -0
  60. package/examples/array-detail-modes/uischemas.d.mts +2 -0
  61. package/examples/array-detail-modes/uischemas.json +15 -0
  62. package/examples/boolean-controls/README.md +109 -0
  63. package/examples/boolean-controls/config.json +3 -0
  64. package/examples/boolean-controls/data.json +27 -0
  65. package/examples/boolean-controls/schema.json +98 -0
  66. package/examples/boolean-controls/translations.json +94 -0
  67. package/examples/boolean-controls/uischema.json +126 -0
  68. package/examples/button-actions/README.md +259 -0
  69. package/examples/button-actions/config.json +7 -0
  70. package/examples/button-actions/data.json +5 -0
  71. package/examples/button-actions/host.mjs +14 -0
  72. package/examples/button-actions/schema.json +20 -0
  73. package/examples/button-actions/translations.json +60 -0
  74. package/examples/button-actions/uischema.json +179 -0
  75. package/examples/catalog.json +634 -0
  76. package/examples/categorization/README.md +132 -0
  77. package/examples/categorization/config.json +7 -0
  78. package/examples/categorization/data.json +8 -0
  79. package/examples/categorization/schema.json +29 -0
  80. package/examples/categorization/translations.json +72 -0
  81. package/examples/categorization/uischema.json +288 -0
  82. package/examples/choice-controls/README.md +136 -0
  83. package/examples/choice-controls/config.json +10 -0
  84. package/examples/choice-controls/data.json +61 -0
  85. package/examples/choice-controls/schema.json +406 -0
  86. package/examples/choice-controls/translations.json +154 -0
  87. package/examples/choice-controls/uischema.json +575 -0
  88. package/examples/choice-controls/uischemas.d.mts +2 -0
  89. package/examples/choice-controls/uischemas.json +16 -0
  90. package/examples/code-editor/README.md +74 -0
  91. package/examples/code-editor/data.json +8 -0
  92. package/examples/code-editor/schema.json +28 -0
  93. package/examples/code-editor/translations.json +20 -0
  94. package/examples/code-editor/uischema.json +77 -0
  95. package/examples/collection-pagination/README.md +5 -0
  96. package/examples/collection-pagination/config.json +1 -0
  97. package/examples/collection-pagination/data.json +64 -0
  98. package/examples/collection-pagination/schema.json +23 -0
  99. package/examples/collection-pagination/translations.json +14 -0
  100. package/examples/collection-pagination/uischema.json +14 -0
  101. package/examples/color-control/README.md +154 -0
  102. package/examples/color-control/config.json +7 -0
  103. package/examples/color-control/data.json +11 -0
  104. package/examples/color-control/schema.json +61 -0
  105. package/examples/color-control/translations.json +76 -0
  106. package/examples/color-control/uischema.json +106 -0
  107. package/examples/combinators/README.md +223 -0
  108. package/examples/combinators/config.json +9 -0
  109. package/examples/combinators/data.json +23 -0
  110. package/examples/combinators/schema.json +232 -0
  111. package/examples/combinators/translations.json +178 -0
  112. package/examples/combinators/uischema.json +158 -0
  113. package/examples/conditional-fields/README.md +27 -0
  114. package/examples/conditional-fields/config.json +5 -0
  115. package/examples/conditional-fields/data.json +7 -0
  116. package/examples/conditional-fields/schema.json +59 -0
  117. package/examples/conditional-fields/translations.json +32 -0
  118. package/examples/conditional-fields/uischema.json +131 -0
  119. package/examples/container-validation-indicator/README.md +187 -0
  120. package/examples/container-validation-indicator/config.json +9 -0
  121. package/examples/container-validation-indicator/data.json +68 -0
  122. package/examples/container-validation-indicator/schema.json +222 -0
  123. package/examples/container-validation-indicator/translations.json +120 -0
  124. package/examples/container-validation-indicator/uischema.json +98 -0
  125. package/examples/cron-control/README.md +155 -0
  126. package/examples/cron-control/data.json +15 -0
  127. package/examples/cron-control/schema.json +72 -0
  128. package/examples/cron-control/translations.json +80 -0
  129. package/examples/cron-control/uischema.json +91 -0
  130. package/examples/destructive-confirmation/README.md +210 -0
  131. package/examples/destructive-confirmation/config.json +17 -0
  132. package/examples/destructive-confirmation/data.json +86 -0
  133. package/examples/destructive-confirmation/schema.json +204 -0
  134. package/examples/destructive-confirmation/translations.json +112 -0
  135. package/examples/destructive-confirmation/uischema.json +105 -0
  136. package/examples/draft-07-metaschema/README.md +11 -0
  137. package/examples/draft-07-metaschema/config.json +3 -0
  138. package/examples/draft-07-metaschema/data.json +25 -0
  139. package/examples/draft-07-metaschema/schema.json +172 -0
  140. package/examples/draft-07-metaschema/translations.json +10 -0
  141. package/examples/draft-07-metaschema/uischema.json +14 -0
  142. package/examples/dynamic-playground/README.md +95 -0
  143. package/examples/dynamic-playground/config.json +8 -0
  144. package/examples/dynamic-playground/configuration.json +152 -0
  145. package/examples/dynamic-playground/data.json +15 -0
  146. package/examples/dynamic-playground/dynamic-uischema.json +379 -0
  147. package/examples/dynamic-playground/host.mjs +37 -0
  148. package/examples/dynamic-playground/schema.json +48 -0
  149. package/examples/dynamic-playground/translations.json +76 -0
  150. package/examples/dynamic-playground/uischema.json +36 -0
  151. package/examples/editor-details/README.md +10 -0
  152. package/examples/editor-details/data.json +18 -0
  153. package/examples/editor-details/schema.json +49 -0
  154. package/examples/editor-details/translations.json +28 -0
  155. package/examples/editor-details/uischema.json +53 -0
  156. package/examples/editor-details/uischemas.d.mts +2 -0
  157. package/examples/editor-details/uischemas.json +14 -0
  158. package/examples/file-control/README.md +108 -0
  159. package/examples/file-control/data.json +28 -0
  160. package/examples/file-control/schema.json +89 -0
  161. package/examples/file-control/translations.json +46 -0
  162. package/examples/file-control/uischema.json +152 -0
  163. package/examples/group-layout/README.md +149 -0
  164. package/examples/group-layout/config.json +10 -0
  165. package/examples/group-layout/data.json +9 -0
  166. package/examples/group-layout/schema.json +51 -0
  167. package/examples/group-layout/translations.json +62 -0
  168. package/examples/group-layout/uischema.json +249 -0
  169. package/examples/index.d.ts +17 -0
  170. package/examples/index.js +69 -0
  171. package/examples/input-adornments/README.md +68 -0
  172. package/examples/input-adornments/data.json +41 -0
  173. package/examples/input-adornments/schema.json +207 -0
  174. package/examples/input-adornments/translations.json +106 -0
  175. package/examples/input-adornments/uischema.json +695 -0
  176. package/examples/job-application/README.md +23 -0
  177. package/examples/job-application/config.json +10 -0
  178. package/examples/job-application/data.json +68 -0
  179. package/examples/job-application/schema.json +196 -0
  180. package/examples/job-application/translations.json +388 -0
  181. package/examples/job-application/uischema.json +218 -0
  182. package/examples/job-application/uischemas.json +153 -0
  183. package/examples/json-editor/README.md +28 -0
  184. package/examples/json-editor/schema.json +1 -0
  185. package/examples/json-editor/translations.json +10 -0
  186. package/examples/json-editor/uischema.json +16 -0
  187. package/examples/json-inference/README.md +33 -0
  188. package/examples/json-inference/translations.json +10 -0
  189. package/examples/json-inference/uischema.json +16 -0
  190. package/examples/kitchen-sink/README.md +86 -0
  191. package/examples/kitchen-sink/config.json +14 -0
  192. package/examples/kitchen-sink/data.json +263 -0
  193. package/examples/kitchen-sink/invalid-data.json +263 -0
  194. package/examples/kitchen-sink/schema.json +515 -0
  195. package/examples/kitchen-sink/translations.json +270 -0
  196. package/examples/kitchen-sink/uischema.json +722 -0
  197. package/examples/label-interpolation/README.md +241 -0
  198. package/examples/label-interpolation/config.json +14 -0
  199. package/examples/label-interpolation/data.json +13 -0
  200. package/examples/label-interpolation/schema.json +64 -0
  201. package/examples/label-interpolation/translations.json +94 -0
  202. package/examples/label-interpolation/uischema.json +379 -0
  203. package/examples/layout-sizing/README.md +162 -0
  204. package/examples/layout-sizing/config.json +10 -0
  205. package/examples/layout-sizing/data.json +14 -0
  206. package/examples/layout-sizing/schema.json +58 -0
  207. package/examples/layout-sizing/translations.json +42 -0
  208. package/examples/layout-sizing/uischema.json +558 -0
  209. package/examples/markup-label/README.md +109 -0
  210. package/examples/markup-label/config.json +16 -0
  211. package/examples/markup-label/data.json +5 -0
  212. package/examples/markup-label/schema.json +24 -0
  213. package/examples/markup-label/translations.json +40 -0
  214. package/examples/markup-label/uischema.json +149 -0
  215. package/examples/mixed-control/README.md +164 -0
  216. package/examples/mixed-control/config.json +11 -0
  217. package/examples/mixed-control/data.json +70 -0
  218. package/examples/mixed-control/schema.json +221 -0
  219. package/examples/mixed-control/translations.json +158 -0
  220. package/examples/mixed-control/uischema.json +211 -0
  221. package/examples/null-control/README.md +111 -0
  222. package/examples/null-control/config.json +4 -0
  223. package/examples/null-control/data.json +6 -0
  224. package/examples/null-control/schema.json +36 -0
  225. package/examples/null-control/translations.json +42 -0
  226. package/examples/null-control/uischema.json +56 -0
  227. package/examples/numeric-controls/README.md +94 -0
  228. package/examples/numeric-controls/config.json +4 -0
  229. package/examples/numeric-controls/data.json +8 -0
  230. package/examples/numeric-controls/schema.json +52 -0
  231. package/examples/numeric-controls/translations.json +56 -0
  232. package/examples/numeric-controls/uischema.json +77 -0
  233. package/examples/object-control/README.md +220 -0
  234. package/examples/object-control/config.json +4 -0
  235. package/examples/object-control/data.json +62 -0
  236. package/examples/object-control/schema.json +252 -0
  237. package/examples/object-control/translations.json +160 -0
  238. package/examples/object-control/uischema.json +275 -0
  239. package/examples/object-control/uischemas.d.mts +2 -0
  240. package/examples/object-control/uischemas.json +59 -0
  241. package/examples/password-control/README.md +119 -0
  242. package/examples/password-control/config.json +3 -0
  243. package/examples/password-control/data.json +18 -0
  244. package/examples/password-control/schema.json +65 -0
  245. package/examples/password-control/translations.json +64 -0
  246. package/examples/password-control/uischema.json +94 -0
  247. package/examples/pre-touch-errors/README.md +176 -0
  248. package/examples/pre-touch-errors/config.json +4 -0
  249. package/examples/pre-touch-errors/data.json +5 -0
  250. package/examples/pre-touch-errors/schema.json +56 -0
  251. package/examples/pre-touch-errors/translations.json +68 -0
  252. package/examples/pre-touch-errors/uischema.json +85 -0
  253. package/examples/presentation/README.md +148 -0
  254. package/examples/presentation/config.json +9 -0
  255. package/examples/presentation/data.json +6 -0
  256. package/examples/presentation/schema.json +21 -0
  257. package/examples/presentation/translations.json +64 -0
  258. package/examples/presentation/uischema.json +210 -0
  259. package/examples/property-pagination/README.md +5 -0
  260. package/examples/property-pagination/config.json +1 -0
  261. package/examples/property-pagination/data.json +17 -0
  262. package/examples/property-pagination/schema.json +14 -0
  263. package/examples/property-pagination/translations.json +10 -0
  264. package/examples/property-pagination/uischema.json +24 -0
  265. package/examples/recursive-tree/README.md +49 -0
  266. package/examples/recursive-tree/config.json +1 -0
  267. package/examples/recursive-tree/data.json +40 -0
  268. package/examples/recursive-tree/schema.json +89 -0
  269. package/examples/recursive-tree/translations.json +42 -0
  270. package/examples/recursive-tree/uischema.json +84 -0
  271. package/examples/recursive-tree/uischemas.d.mts +2 -0
  272. package/examples/recursive-tree/uischemas.json +51 -0
  273. package/examples/split-layout/README.md +123 -0
  274. package/examples/split-layout/config.json +3 -0
  275. package/examples/split-layout/data.json +13 -0
  276. package/examples/split-layout/schema.json +50 -0
  277. package/examples/split-layout/translations.json +50 -0
  278. package/examples/split-layout/uischema.json +204 -0
  279. package/examples/string-controls/README.md +159 -0
  280. package/examples/string-controls/config.json +5 -0
  281. package/examples/string-controls/data.json +13 -0
  282. package/examples/string-controls/schema.json +70 -0
  283. package/examples/string-controls/translations.json +76 -0
  284. package/examples/string-controls/uischema.json +148 -0
  285. package/examples/table-row-details/README.md +69 -0
  286. package/examples/table-row-details/config.json +7 -0
  287. package/examples/table-row-details/data.json +280 -0
  288. package/examples/table-row-details/schema.json +61 -0
  289. package/examples/table-row-details/translations.json +56 -0
  290. package/examples/table-row-details/uischema.json +1303 -0
  291. package/examples/template-layout/README.md +250 -0
  292. package/examples/template-layout/config.json +9 -0
  293. package/examples/template-layout/data.json +20 -0
  294. package/examples/template-layout/host.mjs +13 -0
  295. package/examples/template-layout/schema.json +48 -0
  296. package/examples/template-layout/translations.json +70 -0
  297. package/examples/template-layout/uischema.json +177 -0
  298. package/examples/template-slots/README.md +19 -0
  299. package/examples/template-slots/data.json +4 -0
  300. package/examples/template-slots/schema.json +11 -0
  301. package/examples/template-slots/translations.json +26 -0
  302. package/examples/template-slots/uischema.json +47 -0
  303. package/examples/template-slots/uischemas.d.mts +2 -0
  304. package/examples/template-slots/uischemas.json +56 -0
  305. package/examples/temporal-controls/README.md +325 -0
  306. package/examples/temporal-controls/data.json +44 -0
  307. package/examples/temporal-controls/schema.json +208 -0
  308. package/examples/temporal-controls/translations.json +156 -0
  309. package/examples/temporal-controls/uischema.json +297 -0
  310. package/examples/tree-max-depth/README.md +5 -0
  311. package/examples/tree-max-depth/config.json +3 -0
  312. package/examples/tree-max-depth/data.json +31 -0
  313. package/examples/tree-max-depth/schema.json +258 -0
  314. package/examples/tree-max-depth/translations.json +42 -0
  315. package/examples/tree-max-depth/uischema.json +16 -0
  316. package/examples/tree-max-depth/uischemas.d.mts +2 -0
  317. package/examples/tree-max-depth/uischemas.json +50 -0
  318. package/examples/tuple-control/README.md +335 -0
  319. package/examples/tuple-control/config.json +4 -0
  320. package/examples/tuple-control/data.json +61 -0
  321. package/examples/tuple-control/schema.json +218 -0
  322. package/examples/tuple-control/translations.json +142 -0
  323. package/examples/tuple-control/uischema.json +128 -0
  324. package/examples/tuple-control/uischemas.d.mts +2 -0
  325. package/examples/tuple-control/uischemas.json +125 -0
  326. package/examples/validator-profile/README.md +197 -0
  327. package/examples/validator-profile/config.json +9 -0
  328. package/examples/validator-profile/data.json +16 -0
  329. package/examples/validator-profile/schema.json +139 -0
  330. package/examples/validator-profile/translations.json +34 -0
  331. package/examples/validator-profile/uischema.json +59 -0
  332. package/package.json +83 -3
  333. package/provenance.json +140 -0
  334. package/schemas/README.md +82 -0
  335. package/schemas/example.schema.json +37 -0
  336. package/schemas/jsonforms-config.schema.json +427 -0
  337. package/schemas/jsonforms-dynamic-uischema.schema.json +220 -0
  338. package/schemas/jsonforms-extended-config.schema.json +332 -0
  339. package/schemas/jsonforms-extended-uischema.schema.json +1932 -0
  340. package/schemas/jsonforms-rule.schema.json +104 -0
  341. package/schemas/jsonforms-uischema.schema.json +1434 -0
  342. package/typescript/README.md +546 -0
  343. package/typescript/lib/authoring/cssLength.d.ts +33 -0
  344. package/typescript/lib/authoring/cssLength.js +25 -0
  345. package/typescript/lib/authoring/dynamic.d.ts +73 -0
  346. package/typescript/lib/authoring/dynamic.js +8 -0
  347. package/typescript/lib/authoring/forSchema.d.ts +385 -0
  348. package/typescript/lib/authoring/forSchema.js +84 -0
  349. package/typescript/lib/authoring/schemaTypes.d.ts +111 -0
  350. package/typescript/lib/authoring/schemaTypes.js +15 -0
  351. package/typescript/lib/index.d.ts +4 -0
  352. package/typescript/lib/index.js +20 -0
  353. package/typescript/package.json +1 -0
  354. package/typescript/src/authoring/cssLength.ts +79 -0
  355. package/typescript/src/authoring/dynamic.ts +96 -0
  356. package/typescript/src/authoring/forSchema.ts +428 -0
  357. package/typescript/src/authoring/schemaTypes.ts +143 -0
  358. package/typescript/src/index.ts +4 -0
  359. package/typescript/test/schemaContract.test.ts +638 -0
  360. package/typescript/test/tsconfig.json +10 -0
  361. package/typescript/test/typedAuthoring.test.ts +151 -0
  362. package/typescript/test/typedAuthoringCoverage.test.ts +178 -0
  363. package/typescript/test/typedAuthoringCssLength.test.ts +81 -0
  364. package/typescript/test/typedAuthoringNames.test.ts +90 -0
  365. package/typescript/test/typedDynamic.test.ts +88 -0
  366. package/typescript/tsconfig.json +15 -0
@@ -0,0 +1,1347 @@
1
+ # Renderer Set and Demo Application Specification
2
+
3
+ This is the maintained renderer and demo acceptance guide. It complements
4
+ [spec.md](spec.md), especially §30, and the [renderer selection guide](renderer-selection.md).
5
+ The [coverage map](audit.md) explains the archived sources.
6
+ Portable data and option semantics are governed by spec.md when wording differs.
7
+
8
+ For implementation traps and cross-platform acceptance checks, also read the
9
+ [implementation guide](implementation-guide.md) and [pitfalls](implementation-pitfalls.md).
10
+
11
+ ## 1. Purpose
12
+
13
+ This document is the implementation and acceptance specification for every
14
+ renderer set and renderer demo in an implementation. It is intended to make a
15
+ new UI-library integration predictable: the JSON Forms behavior and demo
16
+ features remain consistent, while the visual language and component APIs come
17
+ from the selected UI library.
18
+
19
+ The specification has two distinct contracts:
20
+
21
+ 1. The **demo application contract** defines the common application structure,
22
+ navigation, editors, settings, responsive behavior, and Framework-native/Web Component
23
+ switching.
24
+ 2. The **renderer contract** defines how JSON Schema, UI Schema, data,
25
+ validation, and configuration must map to controls from a UI library.
26
+
27
+ The UI library is the source of truth for component appearance, interaction,
28
+ and API usage. Existing JSON Forms demos can inform feature coverage and information
29
+ architecture; they are not a reason to replace native library components with
30
+ generic imitations.
31
+
32
+ ## 2. Normative language
33
+
34
+ The terms **MUST**, **MUST NOT**, **SHOULD**, and **MAY** describe requirements:
35
+
36
+ - **MUST**: required for acceptance.
37
+ - **MUST NOT**: prohibited.
38
+ - **SHOULD**: expected unless a documented UI-library limitation prevents it.
39
+ - **MAY**: optional behavior.
40
+
41
+ ## 3. Core principles
42
+
43
+ ### 3.1 UI-library fidelity
44
+
45
+ - Renderers MUST use the actual components and documented composition patterns
46
+ of the selected UI library.
47
+ - Components copied or generated from an upstream component repository, such
48
+ as Shadcn components, MUST remain recognizable upstream components.
49
+ - A renderer set MUST NOT substitute native HTML controls or a simplified
50
+ internal component set when the UI library provides the corresponding
51
+ component. This includes date, time, date-time, select, dialog, popover,
52
+ tabs, buttons, checkboxes, and similar controls.
53
+ - Thin integration code is allowed where JSON Forms and the UI library have
54
+ different event or value contracts. Such integration belongs in the
55
+ renderer that needs it or in a clearly named utility. It MUST NOT become a
56
+ parallel, simplified UI component library.
57
+ - The UI library's accessibility model, focus behavior, keyboard behavior,
58
+ variants, sizing, theming, and portal behavior SHOULD be preserved.
59
+
60
+ ### 3.2 File ownership and structure
61
+
62
+ - Every renderer MUST have its own file.
63
+ - Every reusable UI component MUST have its own file.
64
+ - Unrelated renderers or UI components MUST NOT be collapsed into a single
65
+ component-set or adapter file.
66
+ - Index files MAY contain exports and registry entries only. They MUST NOT hide
67
+ renderer implementations.
68
+ - Shared behavior MAY be placed in focused utility files when it is genuinely
69
+ shared and has tests.
70
+
71
+ ### 3.3 Behavioral parity
72
+
73
+ - All renderer sets MUST interpret the same schema, UI Schema, configuration,
74
+ and data with equivalent semantics.
75
+ - Visual presentation SHOULD follow the UI library, but switching renderer
76
+ sets MUST NOT change the data shape.
77
+ - Rendering MUST NOT initialize a value with the wrong JSON type. For example,
78
+ an `allOf` object MUST NOT be treated as an array merely because it has no
79
+ direct `type` property.
80
+ - Framework-native and Web Component modes MUST render the same renderer registry and
81
+ expose the same form behavior.
82
+
83
+ ## 4. Workspace architecture
84
+
85
+ Keep the base renderer registry, optional extended registry, demo application,
86
+ and optional browser Web Component independently consumable. Share framework
87
+ behavior below UI-family adapters, and share demo state separately from rendering.
88
+ The names and directory layout are implementation choices.
89
+
90
+ - Each UI library MUST have its own independently built demo.
91
+ - An aggregate examples application MUST link to or embed the demos rather than
92
+ combining every UI library into one bundle.
93
+ - Renderer packages MUST remain usable without the demo application.
94
+ - Extended renderers MUST remain an optional registry.
95
+ - Browser Web Components MUST reuse the native host's renderer and cell registries.
96
+
97
+ ## 5. Tooling contract
98
+
99
+ Use the framework's supported build, type-check, test, development-server and
100
+ preview tools. Document reproducible commands and keep dependency lockfiles
101
+ current. A renderer's integration tests MUST exercise its public registries.
102
+ Vite, Vitest and pnpm are optional tooling choices, not requirements for other
103
+ frameworks or languages.
104
+
105
+ ## 6. Demo application layout
106
+
107
+ ### 6.1 Desktop information architecture
108
+
109
+ The desktop application follows this structure:
110
+
111
+ ```text
112
+ ┌──────────────────────────────────────────────────────────────────────┐
113
+ │ Menu Library logo + JSON Forms <UI> <framework> View/tools/settings │
114
+ ├───────────────┬──────────────────────────────────────────────────────┤
115
+ │ Search │ Example title │
116
+ │ │ ┌──────────────────────────────────────────────────┐ │
117
+ │ Example list │ │ Demo and Data | Schema | UI Schema | ... Config │ │
118
+ │ │ ├──────────────────────────────────────────────────┤ │
119
+ │ Active item │ │ JSON Forms Actions │ │
120
+ │ highlighted │ │ ┌────────────────────────┬─────────────────────┐ │ │
121
+ │ │ │ │ Demo form │ Data editor │ │ │
122
+ │ Scrolls │ │ │ │ Reload / Apply │ │ │
123
+ │ independently │ │ └────────────────────────┴─────────────────────┘ │ │
124
+ │ │ └──────────────────────────────────────────────────┘ │
125
+ └───────────────┴──────────────────────────────────────────────────────┘
126
+ ```
127
+
128
+ - The header MUST remain fixed at the top.
129
+ - The header's left group MUST contain the sidebar toggle, library mark, and
130
+ demo name. Activating the brand returns to the demo home page.
131
+ - The header's right group MUST contain compact, accessible tool actions.
132
+ - The example sidebar MUST begin below the header, remain fixed on desktop,
133
+ and scroll independently from the workspace.
134
+ - Opening the sidebar MUST shift the desktop workspace rather than cover it.
135
+ - The workspace MUST begin below the fixed header and provide enough padding
136
+ that content never sits underneath it.
137
+ - The current example title MUST appear above the tabbed work area.
138
+ - The tabbed work area MUST be visually contained using the UI library's card,
139
+ panel, surface, or equivalent component.
140
+
141
+ ### 6.2 Header tools
142
+
143
+ The header MUST provide, in this logical order:
144
+
145
+ 1. Form-only/full-UI toggle.
146
+ 2. Framework-native/Web Component toggle when a Web Component is available.
147
+ 3. Repository link.
148
+ 4. Theme customization/settings entry points.
149
+
150
+ The Framework-native/Web Component toggle is a top-level application action. It MUST NOT
151
+ also appear in the settings panel. It MUST use the Web Components logo rather
152
+ than a generic package, cube, or framework icon. The logo's foreground MUST
153
+ remain legible in light and dark themes, and it SHOULD use the same Y-axis spin
154
+ animation while Web Component mode is active.
155
+ Reduced-motion preferences MUST disable that animation.
156
+
157
+ Each icon-only action MUST have an accessible name, tooltip or title, pressed
158
+ state where applicable, and visible keyboard focus.
159
+
160
+ ### 6.3 Sidebar
161
+
162
+ - The sidebar MUST contain a search field above the example list.
163
+ - Search MUST filter examples by label without changing the active form data.
164
+ - The active example MUST be visually distinct.
165
+ - Long labels MUST wrap rather than overflow.
166
+ - Selecting an example MUST update the URL hash so examples are deep-linkable.
167
+ - An empty search result MUST display a useful message.
168
+ - The menu button MUST be able to hide and restore the sidebar.
169
+
170
+ ### 6.4 Responsive behavior
171
+
172
+ - On narrow screens, the sidebar MUST become an overlay/drawer with a
173
+ dismissible backdrop.
174
+ - The main workspace MUST use the full viewport width when the sidebar is
175
+ closed or when form-only mode is active.
176
+ - Header branding MAY hide its text on very narrow screens, but the library
177
+ mark and accessible name MUST remain.
178
+ - Tab lists MAY scroll horizontally; tab labels MUST NOT be compressed into
179
+ unreadable text.
180
+ - The side-by-side demo/data layout MUST stack when the available width cannot
181
+ support both panes.
182
+ - Forms MUST not introduce page-level horizontal scrolling at supported
183
+ viewport widths.
184
+
185
+ ## 7. Demo views and behavior
186
+
187
+ ### 7.1 Home view
188
+
189
+ The home view MUST include:
190
+
191
+ - the library logo or mark;
192
+ - a clear `JSON Forms <framework> <UI library>` title;
193
+ - the `More Forms. Less Code.` tagline;
194
+ - an action that opens the first example.
195
+
196
+ Logos MUST remain legible in light and dark mode. SVGs that use
197
+ `currentColor` SHOULD be rendered inline when theme inheritance is required.
198
+
199
+ ### 7.2 Example workspace
200
+
201
+ The workspace MUST expose these tabs:
202
+
203
+ - Demo or Demo and Data
204
+ - Schema
205
+ - UI Schema
206
+ - UI Schemas
207
+ - Internationalization
208
+ - Config
209
+ - Data, when Data is not already visible beside the demo
210
+
211
+ The Demo tab label MUST display the current validation error count when the
212
+ count is greater than zero.
213
+
214
+ Example-specific actions MUST appear on the same row as the `JSON Forms`
215
+ heading and MUST use the selected UI library's buttons.
216
+
217
+ ### 7.3 Demo and Data layout
218
+
219
+ The preferred desktop layout starts at approximately 75% form and 25% data
220
+ editor:
221
+
222
+ - The form is on the inline-start side.
223
+ - The live data editor is on the inline-end side.
224
+ - The two panes MUST use the selected UI library's splitter or resizable-panel
225
+ component. A fixed grid is not sufficient when both panes are visible.
226
+ - The splitter MUST let the user drag the divider to give either the form or
227
+ the data editor the larger visible area.
228
+ - The splitter SHOULD start at 75% form and 25% data, and each pane SHOULD keep
229
+ a usable minimum size rather than allowing its content to disappear.
230
+ - The resize handle MUST be visually discoverable and keyboard accessible when
231
+ the UI library supports keyboard resizing.
232
+ - The panes are separated by the splitter's library-native handle and styling.
233
+ - RTL mode MUST reverse the inline direction naturally.
234
+ - At narrow viewport widths the panes MAY stack vertically. In the stacked
235
+ layout the resize handle MUST be removed unless a vertical splitter remains
236
+ useful and accessible.
237
+ - The data editor MUST provide reload and apply actions.
238
+ - Reload and Apply MUST use the selected UI library's icon buttons. Each action
239
+ MUST provide a tooltip and an accessible name.
240
+ - Editing JSON does not update the form until Apply is activated.
241
+ - Reload restores the editor text from the selected example's original data;
242
+ it does not change the active form until Apply is activated.
243
+ - Form changes MUST update the data model and validation count.
244
+
245
+ ### 7.4 JSON editors
246
+
247
+ - Schema, UI Schema, UI Schemas, Internationalization, Config, and Data MUST
248
+ use a JSON-aware editor.
249
+ - Editors MUST follow the active light/dark mode.
250
+ - Every editor view MUST provide Reload and Apply behavior.
251
+ - Invalid JSON MUST not silently replace the current working model. The demo
252
+ SHOULD show a useful parse error.
253
+ - Applying one editor MUST update only the corresponding JSON Forms property.
254
+
255
+ ### 7.5 Form-only mode
256
+
257
+ - Form-only mode MUST hide demo chrome that is not part of the rendered form,
258
+ including the sidebar, example title, tabs, data pane, and settings panel.
259
+ - The form MUST retain the selected theme, direction, locale, validation mode,
260
+ configuration, provider settings, and current data.
261
+ - Leaving form-only mode MUST restore the previous example and state.
262
+
263
+ ## 8. Settings specification
264
+
265
+ Settings MUST appear in an end-side drawer or equivalent UI-library overlay.
266
+ The overlay MUST have a heading, concise explanation, close action, scrollable
267
+ content, focus management, and a dismissible backdrop.
268
+
269
+ ### 8.1 Common settings
270
+
271
+ Every demo MUST support:
272
+
273
+ | Setting | Values/default | Required behavior |
274
+ | ----------- | --------------------------------------------------- | ---------------------------------------------------------------------------- |
275
+ | Mode | System, Light, Dark; default System | System follows `prefers-color-scheme`; editors and forms update immediately. |
276
+ | Direction | LTR, RTL; default LTR | Applies to shell, form, overlays, and Web Component. |
277
+ | Locale | English, German, Bulgarian, browser locale | Updates JSON Forms internationalization without resetting data. |
278
+ | Validation | Validate and show, Validate and hide, No validation | Maps directly to JSON Forms validation modes. |
279
+ | Demo Layout | Default, Demo and Data | Changes presentation only. |
280
+ | Restrict | Default on | Enforces schema length, array size, and related restrictions. |
281
+ | Read-only | Default off | Disables mutation while preserving readable values and navigation. |
282
+
283
+ The common options section MUST also expose:
284
+
285
+ - Hide Required Asterisk
286
+ - Show Unfocused Description
287
+ - Collapse New Array Items
288
+ - Hide Array Summary Validation
289
+ - Collapse Arrays Initially
290
+ - Hide Array Item Avatar
291
+ - Enable Filter Errors Before Touch
292
+ - Filter Error Keywords Before Touch
293
+ - Allow Additional Properties By Default
294
+
295
+ Option names and descriptions SHOULD remain consistent across demos.
296
+
297
+ ### 8.2 UI-library settings
298
+
299
+ Each renderer demo MAY add provider or theme settings specific to its library,
300
+ for example accent color, density, component size, border radius, or theme
301
+ algorithm.
302
+
303
+ - These settings MUST use the UI library's supported provider or token API.
304
+ - They MUST affect Framework-native and Web Component views equivalently.
305
+ - Defaults MUST produce a recognizable standard theme for that library.
306
+ - Customization MUST not alter schema semantics or data.
307
+
308
+ ### 8.3 Settings persistence
309
+
310
+ The demo host MUST remember the settings that describe a user's durable visual
311
+ preferences:
312
+
313
+ - mode (`system`, `light`, or `dark`);
314
+ - locale;
315
+ - demo layout (`default` or `demo-and-data`); and
316
+ - renderer-specific provider or design-system settings.
317
+
318
+ Persistence MUST be exposed through a small platform storage abstraction and
319
+ MUST NOT be coupled directly to a browser API inside renderer components. The
320
+ web demo uses `localStorage` by default. Android, iOS, desktop, and other hosts
321
+ MAY provide their platform preference store instead; such hosts are not
322
+ required or expected to emulate `localStorage`. Both synchronous web storage
323
+ and asynchronous native storage adapters SHOULD be supported. Missing,
324
+ blocked, unavailable, or corrupt storage MUST fall back to defaults without
325
+ preventing the form from rendering.
326
+
327
+ Direction, validation mode, and the generic JSON Forms configuration toggles
328
+ are session settings and are not persisted by default. Read-only state and
329
+ top-level view state are represented in the URL as described below. A host MAY
330
+ persist additional settings only when its product requirements explicitly call
331
+ for that behavior.
332
+
333
+ Storage keys MUST be scoped by renderer demo so UI-library-specific settings
334
+ cannot leak into another renderer set. Stored data SHOULD carry a schema
335
+ version so future implementations can migrate or safely discard old values.
336
+
337
+ ### 8.4 URL query contract
338
+
339
+ Demo URLs MUST support these query parameters:
340
+
341
+ | Parameter | Values | Default/behavior |
342
+ | ------------------ | ----------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
343
+ | `read-only` | `true`, `false` | `false`; controls JSON Forms read-only mode. |
344
+ | `form-only` | `true`, `false` | `false`; switches the top-level form-only view. |
345
+ | `active-tab` | `demo`, `schema`, `uiSchema`, `uiSchemas`, `internationalization`, `config`, `data` | `demo`; selects the workspace tab. |
346
+ | `use-webcomponent` | `true`, `false` | `false`; selects the Web Component host when one is available. |
347
+ | `drawer` | `true`, `false` | Viewport-dependent; controls whether the example drawer is open. |
348
+
349
+ For compatibility with different routers, implementations MUST read supported
350
+ parameters from either the normal URL query or the query portion following the
351
+ example hash. Hash-query values take precedence when both are present. Web
352
+ demos that use the hash as the example route SHOULD write the canonical form:
353
+
354
+ ```text
355
+ /#mixed?form-only=true&active-tab=schema
356
+ ```
357
+
358
+ Writers SHOULD omit values equal to their defaults, preserve unrelated query
359
+ parameters, and normalize a supported parameter to one location when the user
360
+ changes it. Only the literal value `true` enables a Boolean parameter. Browser
361
+ back/forward navigation and direct URL loading MUST update the corresponding
362
+ view without resetting the selected example or its data.
363
+
364
+ Example hash routes MUST be percent-encoded when written and decoded before
365
+ matching an example name. Labels or legacy example identifiers containing
366
+ spaces or other reserved URL characters MUST therefore open on the first
367
+ selection and remain selected after `hashchange` or browser navigation.
368
+
369
+ ## 9. Renderer behavior contract
370
+
371
+ ### 9.1 Common control anatomy
372
+
373
+ Every control SHOULD use this visual order:
374
+
375
+ 1. Label and required indicator.
376
+ 2. Input/control.
377
+ 3. Description or helper text.
378
+ 4. Validation message.
379
+
380
+ Requirements:
381
+
382
+ - Labels MUST be programmatically associated with controls.
383
+ - Required indicators MUST reflect JSON Schema requirements and respect
384
+ `hideRequiredAsterisk`.
385
+ - Descriptions MUST use UI Schema or schema descriptions and respect the
386
+ unfocused-description option.
387
+ - Validation messages MUST be associated through `aria-describedby` or the UI
388
+ library's equivalent accessibility API.
389
+ - Invalid, focused, disabled, and read-only states MUST use the UI library's
390
+ standard styling.
391
+ - Hidden controls MUST not render.
392
+ - Disabled controls MUST not emit changes.
393
+ - Clearing an optional value SHOULD produce `undefined` unless JSON Forms or
394
+ the schema requires a different representation.
395
+ - Renderers MUST call `handleChange` with the correct JSON Forms path and value
396
+ type.
397
+
398
+ #### 9.1.1 Clear actions
399
+
400
+ Editable controls that can hold a scalar or textual value SHOULD provide a
401
+ compact icon-only Clear value action. This includes, where applicable, text
402
+ inputs, textareas, password and masked inputs, number and integer inputs,
403
+ date/time inputs, editable comboboxes, enum dropdowns, one-of enum dropdowns,
404
+ full `oneOf` selectors, and mixed-type selectors.
405
+
406
+ - Clearability SHOULD be enabled by default and MAY be disabled with the
407
+ applied `clearable` option or an equivalent documented renderer option.
408
+ - The Clear value action MUST exist only when the control currently has data.
409
+ Empty string, `undefined`, and `null` normally count as empty; a valid false
410
+ or zero value MUST still count as data.
411
+ - The icon SHOULD be visually revealed when the control or its wrapper has
412
+ focus, when its selection UI is active, or when the pointer hovers over it.
413
+ It SHOULD remain hidden at other times so it does not compete with the
414
+ primary input. Touch and keyboard users MUST still be able to reveal and
415
+ activate it without hover.
416
+ - The action MUST use the UI library's recognizable clear/close icon, have an
417
+ accessible name such as `Clear value`, and preserve visible keyboard focus.
418
+ - Activating Clear MUST NOT accidentally open a dropdown, submit the form, or
419
+ move focus away before the clear operation is committed. Inputs SHOULD
420
+ reserve sufficient inline-end padding so the icon never covers their value
421
+ or a dropdown indicator.
422
+ - Disabled and read-only controls MUST NOT expose an active Clear action.
423
+ - Clearing normally emits `undefined`, removing an optional object property.
424
+ A renderer MAY use a type-specific empty value only when required by the
425
+ established JSON Forms behavior, for example to preserve a dynamic property
426
+ key while clearing its value.
427
+ - A required control MAY still be cleared unless the selected UI library has a
428
+ documented restriction. The resulting empty value MUST expose the normal
429
+ required validation state; the renderer MUST NOT immediately restore the
430
+ previous value or silently choose a replacement.
431
+
432
+ ### 9.2 Primitive controls
433
+
434
+ The base renderer set MUST cover:
435
+
436
+ - string and multiline string;
437
+ - number and integer;
438
+ - boolean checkbox;
439
+ - boolean toggle when selected by UI Schema options;
440
+ - enum select;
441
+ - radio group where supported/configured;
442
+ - slider where supported/configured;
443
+ - labels and static text;
444
+ - null and mixed types, when included in the renderer set.
445
+
446
+ Numeric controls MUST preserve numeric values rather than returning strings.
447
+ Integer controls MUST prevent or reject fractional values according to the UI
448
+ library and JSON Forms conventions.
449
+
450
+ Enum controls MUST preserve the original option values, including numeric and
451
+ boolean enum values, and MUST display translated labels when available.
452
+
453
+ Selection controls MUST represent an absent value as genuinely unselected:
454
+
455
+ - When data is `undefined`, `null`, or the renderer's established empty value,
456
+ the trigger MUST show a placeholder and MUST NOT preselect the first item.
457
+ - Merely rendering or opening a dropdown MUST NOT initialize form data.
458
+ - A schema or application default MAY appear selected only after that default
459
+ has actually been applied to the JSON Forms data model.
460
+ - Required state MUST NOT cause implicit selection. An unselected required
461
+ dropdown remains unselected and displays its required validation error.
462
+ - These rules apply to enum and one-of enum controls, full `oneOf` or variant
463
+ selectors, mixed-type selectors, and other single-selection controls.
464
+
465
+ ### 9.3 Date and time controls
466
+
467
+ - Date, time, and date-time formats MUST use the UI library's real picker
468
+ components when they exist.
469
+ - Native `input[type=date]`, `input[type=time]`, or
470
+ `input[type=datetime-local]` MUST NOT be used merely as a shortcut when the
471
+ UI library provides a picker.
472
+ - Date values MUST remain `YYYY-MM-DD` strings.
473
+ - Time values MUST retain the precision required by the schema/example.
474
+ - Date-time values MUST use the project's established ISO representation.
475
+ - Picker popovers MUST be keyboard accessible and correctly themed.
476
+ - Clear actions MUST be available for optional values.
477
+ - Date-time controls SHOULD present date and time selection in one coherent
478
+ popover or workflow.
479
+
480
+ #### 9.3.1 Display and storage formats
481
+
482
+ Date, time, and date-time controls MUST support distinct display and storage
483
+ formats supplied through the applied UI Schema options. The established option
484
+ names are:
485
+
486
+ | Schema format | Display option | Storage option |
487
+ | ------------- | ---------------- | -------------------- |
488
+ | `date` | `dateFormat` | `dateSaveFormat` |
489
+ | `time` | `timeFormat` | `timeSaveFormat` |
490
+ | `date-time` | `dateTimeFormat` | `dateTimeSaveFormat` |
491
+
492
+ The display option controls how the value appears in the input and picker. The
493
+ storage option controls the string emitted to JSON Forms through
494
+ `handleChange`. For example, a date may be displayed as `MM/DD/YYYY` while the
495
+ data model stores `YYYY-MM-DD`.
496
+
497
+ - Renderers MUST read these values from the applied UI Schema options, including
498
+ the renderer configuration merged by JSON Forms.
499
+ - A configured display format MUST be used for visible text, placeholder or
500
+ input parsing, picker precision, and 12/24-hour presentation where relevant.
501
+ - A configured save format MUST be used whenever picker selection or valid
502
+ typed input updates the data model.
503
+ - Existing data MUST be parsed using at least the configured save format, the
504
+ configured display format, and the canonical JSON Schema formats supported
505
+ by the renderer. A renderer MUST therefore display previously stored values
506
+ even when display and save formats differ.
507
+ - Locale-specific display formats MAY expand localized tokens, but changing the
508
+ locale MUST NOT silently rewrite the stored value or change its storage
509
+ format.
510
+ - Seconds, fractional seconds, AM/PM, and time-zone offsets MUST be preserved
511
+ when required by the configured formats. A renderer MUST NOT introduce an
512
+ unintended local/UTC conversion.
513
+ - Incomplete or invalid typed input MUST NOT be serialized as a different valid
514
+ value. The renderer SHOULD retain the editable text or expose validation
515
+ feedback until the value can be parsed according to the display format.
516
+ - Clearing an optional control MUST use the renderer set's established JSON
517
+ Forms clear value and MUST NOT emit a formatted representation of an invalid
518
+ date.
519
+ - When no save format is configured, the renderer MUST use the JSON Forms
520
+ default storage format for the corresponding schema format. When no display
521
+ format is configured, it SHOULD use the UI library's locale-aware default or
522
+ the renderer set's documented default without changing storage semantics.
523
+ - Controls and cells for the same schema format MUST implement equivalent
524
+ parsing and serialization behavior.
525
+ - Framework-native and Web Component modes MUST honor the same display and save options.
526
+
527
+ The renderer set MUST document which formatting token syntax it accepts. If
528
+ the UI library uses a different token system, the integration layer MUST map
529
+ the established UI Schema option values consistently or document the supported
530
+ syntax without changing the option names.
531
+
532
+ ### 9.4 Objects and groups
533
+
534
+ - Object properties MUST render as object fields, never as an array or generic
535
+ mixed-type selector.
536
+ - Generated object UI Schemas SHOULD use a vertical layout unless the example
537
+ or registered UI Schema requests another layout.
538
+ - A named nested object SHOULD have a visible group/card title.
539
+ - Root objects SHOULD avoid redundant outer titles and borders.
540
+ - Object controls MUST support dynamic properties governed by `properties`,
541
+ `patternProperties`, `additionalProperties`, and `propertyNames`.
542
+
543
+ ### 9.5 Arrays
544
+
545
+ - Arrays MUST display a clear title and add action.
546
+ - Arrays whose item schema is unrestricted (`items: true`) MUST render through
547
+ the normal array presentation. Each added or existing item MUST dispatch to
548
+ the mixed-type renderer; the array control itself MUST NOT report that no
549
+ applicable renderer exists. This includes JSON Schema `examples` arrays.
550
+ - Array items MUST have stable paths and keys.
551
+ - Add MUST create a schema-valid default item of the correct type.
552
+ - Remove MUST target the intended indexes and respect `minItems` when
553
+ `restrict` is enabled.
554
+ - Add MUST respect `maxItems` when `restrict` is enabled.
555
+ - Object-array items SHOULD expose a useful label when an element-label
556
+ property is configured.
557
+ - Detail, list-with-detail, table/grid, and primitive-array presentations MUST
558
+ preserve identical array data semantics.
559
+ - A `ListWithDetail` UI Schema MUST support primitive item schemas as well as
560
+ object item schemas; it MUST NOT fall through to a missing-renderer message.
561
+ Primitive list-with-detail arrays SHOULD use the renderer set's normal
562
+ library-native accordion/detail-item presentation, with an expandable row
563
+ and regular dispatched value control for each item.
564
+ - Collapse and summary-validation options MUST behave consistently.
565
+
566
+ ### 9.6 Dynamic object properties
567
+
568
+ Dynamic object-property support includes `patternProperties` and
569
+ `propertyNames`; it is not limited to the `additionalProperties` keyword. The
570
+ renderer MUST provide:
571
+
572
+ - a `Property Name` input and compact add icon/action;
573
+ - an inline, translated validation message for invalid, empty, or duplicate
574
+ names;
575
+ - one rendered value control per dynamic property;
576
+ - compact rename and delete icon actions aligned with the property;
577
+ - a UI-library dialog for rename confirmation;
578
+ - restrictions for `required`, `minProperties`, `maxProperties`, read-only
579
+ state, and `additionalProperties: false`;
580
+ - support for `allowAdditionalPropertiesIfMissing`.
581
+
582
+ Actions SHOULD use recognizable add, edit, and delete icons rather than large
583
+ text buttons when the UI library's pattern is icon-based.
584
+
585
+ #### 9.6.1 Property-name validation
586
+
587
+ - The `propertyNames` schema MUST validate names entered by both Add and Rename.
588
+ The complete schema MUST be honored, not only its `pattern`; this includes
589
+ constraints such as `minLength`, `maxLength`, `format`, `enum`, `const`, and
590
+ composed schemas when supported by the configured AJV.
591
+ - A `$ref` in `propertyNames` MUST resolve against the root schema.
592
+ - Property-name validation MUST reuse the parent JSON Forms AJV instance so
593
+ custom formats, keywords, draft behavior, and AJV options remain consistent.
594
+ - A name already present in the object MUST be rejected, except that a Rename
595
+ operation may retain its current name until a different name is committed.
596
+ - Names that cannot be represented safely by JSON Forms' data-path syntax MUST
597
+ be rejected with a useful error instead of writing to the wrong path.
598
+ - When `additionalProperties` is `false` and `patternProperties` is present,
599
+ Add and Rename MUST accept names matching at least one allowed pattern and
600
+ reject names matching none. Explicit `propertyNames` constraints still
601
+ apply.
602
+ - Validation errors produced by `propertyNames` MUST use the configured JSON
603
+ Forms error translator where available.
604
+
605
+ For example, the following object accepts keys such as `string_title` and
606
+ `number_count`, renders a different value control for each prefix, and rejects
607
+ every other dynamic key:
608
+
609
+ ```json
610
+ {
611
+ "type": "object",
612
+ "propertyNames": {
613
+ "pattern": "^(string|number)_[A-Za-z0-9_]+$"
614
+ },
615
+ "patternProperties": {
616
+ "^string_": { "type": "string" },
617
+ "^number_": { "type": "number" }
618
+ },
619
+ "additionalProperties": false
620
+ }
621
+ ```
622
+
623
+ `patternProperties` keys are regular expressions rather than literal prefixes
624
+ or glob expressions. They are not implicitly anchored, so schema authors must
625
+ use `^` and `$` when a full-name match is intended.
626
+
627
+ #### 9.6.2 Selecting the dynamic value schema
628
+
629
+ For each property name, the renderer MUST determine the value schema according
630
+ to JSON Schema semantics:
631
+
632
+ 1. A schema in `properties` applies to an explicitly declared name. Declared
633
+ names are reserved and MUST NOT also appear as additional-property rows.
634
+ 2. Every schema in `patternProperties` whose regular expression matches the
635
+ property name applies. If several patterns match, all matching constraints
636
+ MUST be composed; selecting only the first match is insufficient.
637
+ 3. `additionalProperties` applies only when the name is not covered by
638
+ `properties` or any `patternProperties` entry. Its schema may be `true`,
639
+ `false`, an object schema, or a `$ref`.
640
+ 4. When `additionalProperties` is absent, JSON Schema treats additional values
641
+ as allowed. The renderer MUST expose the unrestricted Add action when the
642
+ applied option `allowAdditionalPropertiesIfMissing` is enabled; matching
643
+ `patternProperties` entries remain available independently of that option.
644
+ Existing dynamic data MUST still render even when the option is disabled.
645
+
646
+ All applicable `$ref` values MUST resolve against the root schema. The selected
647
+ or composed schema determines the value renderer and the default value created
648
+ by Add. Object, array, primitive, null, and mixed schemas MUST retain their
649
+ correct JSON data types.
650
+
651
+ If a rename changes which pattern schema applies, the value MUST be rendered
652
+ and validated against the newly applicable schema without silently coercing,
653
+ discarding, or replacing the existing value.
654
+
655
+ #### 9.6.3 Mutation and synchronization
656
+
657
+ - Add MUST preserve the new key even when its schema-valid default is empty or
658
+ undefined according to the renderer's normal initialization rules.
659
+ - Clearing a dynamic property's value control MUST preserve the property key
660
+ and reset its value to the schema-derived default (including an explicit
661
+ schema `default`; otherwise `""` for strings, `0` for numbers/integers,
662
+ `false` for booleans, `[]` for arrays, `{}` for objects, and `null` for the
663
+ null type). Only the property's explicit Delete action may remove that key
664
+ from the object.
665
+ - Rename MUST preserve the property's value and object-key ordering as far as
666
+ JavaScript object semantics allow. It MUST be atomic: validation failure
667
+ leaves the original key and value unchanged.
668
+ - Delete MUST remove only the selected dynamic property and MUST respect
669
+ `required` and `minProperties` when restrictions are enabled.
670
+ - Add MUST respect `maxProperties` when restrictions are enabled.
671
+ - External data changes that add, remove, rename, or reorder dynamic keys MUST
672
+ update the rendered rows. A value-only change MUST NOT unnecessarily rebuild
673
+ the property's renderer or lose its interaction state.
674
+ - Nested dynamic properties MUST use correct data paths and inherit renderer,
675
+ cell, configuration, validation, internationalization, middleware, and AJV
676
+ context from the parent form.
677
+ - Framework-native and Web Component modes MUST implement identical dynamic-property
678
+ behavior.
679
+
680
+ ### 9.7 Combinators and references
681
+
682
+ The base renderer registry MUST correctly support:
683
+
684
+ - `$ref`
685
+ - `allOf`
686
+ - `anyOf`
687
+ - `oneOf`
688
+
689
+ Rules:
690
+
691
+ - `$ref` MUST resolve against the root schema.
692
+ - `allOf` MUST render all composed constraints against the same data path.
693
+ - An `allOf` composed from object schemas MUST render the combined object
694
+ fields. It MUST NOT display a JSON-type selector or initialize array data.
695
+ - `anyOf` and `oneOf` MUST offer a clear variant selection mechanism when more
696
+ than one alternative can be chosen.
697
+ - With no current value, a variant selector MUST begin unselected and render
698
+ only its selector, shared combinator properties, and validation feedback. It
699
+ MUST NOT preselect or render the first variant merely because the field is
700
+ required. The selected variant detail is rendered only after data fits a
701
+ variant or the user explicitly selects one.
702
+ - Switching alternatives MUST create or retain data according to JSON Forms'
703
+ combinator semantics; it MUST NOT leave data in an unrelated JSON type.
704
+ - Registered detail UI Schemas MUST take precedence over generated detail UI
705
+ Schemas.
706
+ - Mixed-type fallback renderers MUST NOT claim schemas handled by a dedicated
707
+ combinator renderer.
708
+
709
+ ### 9.8 Mixed-type renderer
710
+
711
+ A mixed-type renderer handles a schema that genuinely permits more than one
712
+ JSON data type, including an array-valued `type` and unrestricted schemas such
713
+ as `items: true`. It MUST NOT claim an `allOf`, `anyOf`, `oneOf`, ordinary
714
+ object, or other schema for which a more specific renderer exists.
715
+
716
+ The renderer MUST derive its available choices from the resolved schema. Its
717
+ selection MUST follow the current data type, with JSON Schema `number`
718
+ accepting integer data. Selecting a different type MUST replace the value with
719
+ a schema-valid default of that type. A registered per-type detail UI Schema, such as
720
+ `object-detail` or `array-detail`, MUST be honored.
721
+
722
+ When deriving that value, a schema `default` MUST be used only when its runtime
723
+ JSON type is compatible with the newly selected type (`integer` is compatible
724
+ with `number`). An incompatible default from another allowed branch MUST be
725
+ ignored. For example, changing a schema with `type: ['object', 'boolean']` and
726
+ `default: true` to `object` must create the schema-derived object default rather
727
+ than immediately restoring `true` and switching the selector back to boolean.
728
+
729
+ #### 9.8.1 Primitive presentation
730
+
731
+ When the selected value is a primitive or `null`, the mixed renderer MUST look
732
+ and behave like a normal one-line form control:
733
+
734
+ - A compact type-selection dropdown appears at the inline-start of the row.
735
+ - A populated, editable type-selection dropdown MUST provide a Clear value
736
+ button by default. It MAY use the UI library's integrated clear affordance
737
+ or a separate compact, library-styled icon button beside or within the
738
+ dropdown wrapper. The action MUST follow Section 9.1.1, including accessible
739
+ naming, hover/focus visibility, disabled/read-only behavior, and support for
740
+ disabling clearability through the applied `clearable` option. Activating it
741
+ MUST NOT open the dropdown. For an ordinary mixed field, clearing leaves the
742
+ value absent and the selector unselected. This requirement also applies to
743
+ type selectors in structured mixed-value headers and tree-node details.
744
+ Dynamic-property values remain subject to the explicit-delete rule in
745
+ Section 9.6.3: clearing MUST preserve the key and reset its value to the
746
+ schema-derived default, rather than remove the property.
747
+ - The control for the selected primitive appears beside it in the remaining
748
+ width and SHOULD have the same visual height as the dropdown.
749
+ - For a boolean value, the checkbox or switch MUST retain its native size and
750
+ be vertically centered against the type selector's visible input box. The
751
+ selector and boolean control MUST share a row that aligns their centers;
752
+ labels, descriptions, and validation feedback MUST sit outside that row so
753
+ they do not shift the alignment. Implementations MUST NOT approximate this
754
+ with fixed top padding. This applies to checked, unchecked, disabled, and
755
+ invalid states, including nested mixed values, in every renderer set.
756
+ - The active value control MUST be rendered through the normal renderer and
757
+ cell registries rather than through a mixed-renderer-specific imitation.
758
+ - The mixed field label MUST appear exactly once above the selector/value row.
759
+ The embedded primitive control MUST suppress its own duplicate label so its
760
+ input aligns directly beside the type selector. This rule also applies to
761
+ primitive values of dynamic `additionalProperties` and `patternProperties`.
762
+ - Label, description, required, validation, focus, enabled, disabled, and
763
+ read-only behavior MUST follow the common control contract.
764
+ - Choosing `null` or having no selected type MUST not leave a stale primitive
765
+ input visible.
766
+ - With absent data, no type is selected and only the type selector, label,
767
+ description, and validation feedback are shown. The renderer MUST NOT select
768
+ the first allowed type automatically, including when the field is required;
769
+ the required error remains visible until a type/value is explicitly chosen
770
+ or supplied by the data model.
771
+ - While no type is selected, the type selector and its validation feedback MUST
772
+ use the full width normally available to the selector/value row; the layout
773
+ MUST NOT reserve an empty value-control column. After a primitive type is
774
+ selected, the selector returns to its compact inline-start column and the
775
+ value control occupies the remaining width.
776
+
777
+ #### 9.8.2 Object and array presentation
778
+
779
+ When a root mixed value is an object or array, it MUST use a UI-library-native
780
+ collapsible panel or accordion. The header MUST retain the type selector at
781
+ the inline-start followed by the field label. Selecting an object or array
782
+ from a primitive state SHOULD open the panel automatically.
783
+
784
+ The expanded panel MUST contain two resizable panes, initially approximately
785
+ 25% tree and 75% detail:
786
+
787
+ 1. The inline-start pane is a searchable, expandable tree of the current data.
788
+ 2. The inline-end pane renders the control for the selected tree node.
789
+
790
+ The collapse/expand action SHOULD be positioned at the inline-end of the
791
+ header. The selected type MUST NOT be repeated as a second header label (for
792
+ example, `array` followed by another `array`); only a distinct field label may
793
+ follow the type selector.
794
+
795
+ The tree and detail panes MUST provide the following behavior:
796
+
797
+ - The tree root represents the mixed control itself. It MUST use the
798
+ same JSON object/array type-icon slot used by descendant nodes, or an
799
+ equivalent `{}`/`[]` mark, instead of a generic `Value` label. The root MUST
800
+ NOT render the mark as plain label text or duplicate it in both the icon and
801
+ label positions. Objects and arrays are always shown hierarchically;
802
+ primitive children MAY be hidden initially.
803
+ - Show/Hide primitives MUST be an eye/eye-off icon action on the root tree
804
+ row, with a tooltip and accessible name. It MUST NOT consume a separate row
805
+ as a text button.
806
+ - Tree nodes MUST show a stable, recognizable icon or compact glyph for their
807
+ actual JSON type: `[]` for arrays, a check mark for booleans, `#` for integer
808
+ and number values, a prohibited/null mark for `null`, `{}` for objects, and a
809
+ text-lines mark for strings. The root object or array uses its `{}` or `[]`
810
+ mark in the same type-icon slot and MUST NOT repeat the mark as label text.
811
+ Sibling rows MUST share one indentation level regardless of their value type.
812
+ The selected state and expansion state MUST remain visually distinct. Array
813
+ elements MUST use labels such as `Item 0` rather than exposing JSON Forms
814
+ path syntax. Row actions MUST occupy the inline-end of the full tree row and
815
+ MUST NOT squeeze, offset, or change the indentation of the label.
816
+ - Search MUST retain matching descendants and their ancestors and expand the
817
+ matching branches sufficiently to make results visible.
818
+ - The root node SHOULD be expanded initially, but descendant object and array
819
+ branches MUST NOT all be expanded by default. Selecting or navigating to a
820
+ descendant MUST expand its ancestors; search MAY temporarily expand only the
821
+ branches required to reveal its matches.
822
+ - The tree and detail panes MUST have bounded, independent overflow when the
823
+ selected detail is tall. Any horizontal tree scrollbar MUST remain directly
824
+ below the visible tree viewport instead of being pushed to the bottom of the
825
+ detail form or full page.
826
+ - Selecting a node MUST show its regular dispatched JSON Forms control in the
827
+ detail pane. The node schema MUST first resolve applicable `$ref` values,
828
+ including schemas inherited through `properties`, `patternProperties`,
829
+ `additionalProperties`, array `items`, and recursive references. Registered
830
+ detail UI Schemas MUST be matched against that resolved node schema and path;
831
+ map entries such as JSON Schema's `properties.name` MUST therefore render the
832
+ registered meta-schema detail rather than a generic mixed-object fallback.
833
+ Breadcrumbs SHOULD identify the selected path and allow navigation to its
834
+ ancestors. The unlabeled root structured segment MUST use
835
+ the same JSON object/array type icon as the tree without duplicating `{}` or
836
+ `[]` as label text. Every descendant segment MUST use only its property or
837
+ `Item N` path label; it MUST NOT add a redundant type icon. Every ancestor
838
+ segment MUST use the UI library's native interactive breadcrumb/link behavior,
839
+ including pointer cursor, hover, focus, and keyboard affordances. The current
840
+ segment MUST remain non-interactive and use the default cursor.
841
+ - The detail pane for every selected non-root node MUST begin with a compact
842
+ type selector derived from that node's resolved schema. This applies equally
843
+ to primitive, `null`, object, and array nodes, so all permitted type changes
844
+ are available from one consistent position. For primitive nodes, the compact
845
+ selector MUST appear at the inline-start of the same row as the value control,
846
+ matching the presentation of ordinary mixed primitive fields; the value
847
+ control fills the remaining width. On narrow screens this row MUST stack with
848
+ the selector above the value control. For `null`, only the selector is shown.
849
+ For object and array nodes, the selector remains above the complex detail
850
+ renderer so that the renderer receives the full pane width. The root node
851
+ MUST NOT repeat this selector because its selector is already present in the
852
+ outer mixed panel header. Selecting another type MUST replace only the
853
+ selected node with that type's schema-derived default and keep the node
854
+ selected.
855
+ - A nested mixed value whose selected type is an object or array MUST NOT
856
+ recursively create another tree/detail editor inside the detail pane. It
857
+ MUST render only its compact type selector and a library-native View/eye
858
+ icon action with a tooltip and accessible name. This also applies when the
859
+ nested value is rendered as a child row by the regular object or array
860
+ renderer: the child row keeps the selector and View icon instead of embedding
861
+ another object/array editor or collapsible mixed panel. The field's control
862
+ wrapper MUST own the label and the complete selector/View row: the selector
863
+ and View action are sibling controls in one horizontal, cross-axis-centered
864
+ container beneath that shared label. Implementations MUST NOT place the View
865
+ action outside the labeled control wrapper or align it with fixed padding,
866
+ margin, or another estimate of label height. Description and validation
867
+ feedback belong below the complete row.
868
+ - Activating the nested View action MUST select that object or array in the
869
+ existing root tree, expand its ancestor tree nodes, and render the selected
870
+ object's or array's regular control in the existing right-hand detail pane.
871
+ - Object properties MAY be renamed only when their names are dynamic (for
872
+ example, properties supplied by `patternProperties` or
873
+ `additionalProperties`). Declared property names and array indexes MUST NOT
874
+ be renameable.
875
+ - Every non-root item SHOULD expose Delete when deletion is permitted. Rename
876
+ and Delete actions SHOULD be compact, accessible icon actions shown on hover
877
+ and keyboard focus without changing row layout.
878
+ - Rename MUST validate empty and duplicate names, `propertyNames`, matching
879
+ `patternProperties`, JSON Forms path safety, and any configured AJV rules.
880
+ It MUST preserve the value and key ordering and MUST leave the original data
881
+ unchanged when validation fails.
882
+ - Delete MUST respect enabled/read-only state and, when `restrict` is enabled,
883
+ applicable `required`, `minProperties`, and `minItems` constraints. Deleting
884
+ a non-empty object or array MUST require confirmation and explain that its
885
+ nested content will also be removed.
886
+ - Structural external changes MUST rebuild the tree without losing the active
887
+ path when it remains valid. Value-only changes SHOULD preserve expansion,
888
+ selection, and editor interaction state.
889
+
890
+ #### 9.8.3 Visual acceptance layout
891
+
892
+ At desktop widths, implementations SHOULD match the following composition.
893
+ The notation describes placement, not literal text or a required visual style:
894
+
895
+ ```text
896
+ Primitive value
897
+ Field label
898
+ [ compact type selector ][ value control fills remaining width ]
899
+
900
+ Absent value
901
+ Field label
902
+ [ full-width type selector ]
903
+ [ validation feedback ]
904
+
905
+ Object or array value
906
+ [ compact root type selector ][ distinct field label ] [ collapse action ]
907
+ ┌───────────────────────── resizable split ──────────────────────────────┐
908
+ │ Search tree... │ [root type icon] / Property / Item N │
909
+ │ root type icon [eye] │ │
910
+ │ child type icon Label │ selected primitive: │
911
+ │ child type icon Label │ [ compact type selector ][ value control ] │
912
+ │ │ │
913
+ │ │ selected object/array: │
914
+ │ │ [ compact type selector ] │
915
+ │ │ [ regular object/array detail renderer ] │
916
+ └────────────────────────────────────────────────────────────────────────┘
917
+ ```
918
+
919
+ The structured root occupies the tree's type-icon position and has no `Value`,
920
+ `{}`, or `[]` text label beside it. Only the root breadcrumb uses a type icon,
921
+ because it has no path label. All later breadcrumb segments use only their
922
+ property name or `Item N` label. Clickable ancestors use the UI library's link
923
+ cursor and interaction states; the current segment does not.
924
+
925
+ Within a regular object or array renderer, a nested mixed object or array is a
926
+ compact control with this structure:
927
+
928
+ ```text
929
+ Field label
930
+ [ compact type selector ][ View icon ]
931
+ [ description or validation feedback ]
932
+ ```
933
+
934
+ The label and feedback wrap the complete row, while the selector and View icon
935
+ are flex/grid siblings aligned by the row itself. Their alignment MUST remain
936
+ correct when labels wrap, typography changes, feedback appears, or a host
937
+ supplies a custom control wrapper. The control does not embed another mixed
938
+ tree/detail panel. A dynamic property is laid out as one property label with
939
+ its Rename/Delete icon actions, followed by the same aligned mixed-value row;
940
+ the primitive input MUST NOT introduce a second copy of the property label.
941
+
942
+ At narrow widths, selector/value rows stack to one column with the type selector
943
+ above the value control. Implementations MAY stack the tree and detail panes or
944
+ provide another platform-native responsive presentation, but all navigation,
945
+ selection, editing, and action behavior MUST remain available.
946
+
947
+ The tree MUST use appropriate `tree`, `treeitem`, expansion, and selection
948
+ semantics. Tree rows, disclosure controls, type selection, breadcrumbs, and
949
+ item actions MUST be keyboard accessible.
950
+
951
+ ### 9.9 Layouts
952
+
953
+ The base renderer set MUST include:
954
+
955
+ - vertical layout;
956
+ - horizontal layout with wrapping at narrow widths;
957
+ - group layout;
958
+ - categorization/tabs;
959
+ - array layouts required by the base examples.
960
+
961
+ When supported by the renderer family, it SHOULD also include categorization
962
+ steppers and list-with-detail layouts.
963
+
964
+ Layouts MUST preserve child visibility, enabled/read-only state, paths,
965
+ renderer/cell registries, and responsive behavior.
966
+
967
+ ### 9.10 Extended renderers
968
+
969
+ Extended renderers are optional additions to the base registry, but a new
970
+ renderer family SHOULD provide UI-library-native implementations for the
971
+ extended examples it enables. Current extended capabilities include:
972
+
973
+ - action button elements;
974
+ - color control;
975
+ - duration control;
976
+ - file control;
977
+ - null control;
978
+ - AG Grid array control;
979
+ - Monaco editor control;
980
+ - split layout;
981
+ - template, named-template, and slot renderers.
982
+
983
+ An extended renderer MUST live in its own file and MUST have a tester whose
984
+ rank does not accidentally override unrelated base schemas.
985
+
986
+ #### 9.10.1 Monaco editor renderer
987
+
988
+ The Monaco renderer is an opt-in code editor selected by UI Schema options. It
989
+ MUST use Monaco Editor itself and MUST NOT replace it with a textarea styled to
990
+ look like a code editor.
991
+
992
+ The established selection and value options are:
993
+
994
+ | Option | Meaning |
995
+ | ----------------------------------- | -------------------------------------------------------------------------- |
996
+ | `format: "code"` | Opts the control into code-editor rendering. |
997
+ | `language` | Sets a fixed Monaco language identifier. |
998
+ | `:language` | Resolves the Monaco language identifier from a root-data path. |
999
+ | `convertJson` | Pretty-prints JSON-compatible data and parses editor text back to JSON. |
1000
+ | `monaco.rows` | Sets the normal fixed editor height in text rows. |
1001
+ | `monaco.autoGrow` | Grows the editor with its content. |
1002
+ | `monaco.minRows` / `monaco.maxRows` | Clamp auto-growing editor height. |
1003
+ | `monaco.options` | Passes supported standalone-editor construction options through to Monaco. |
1004
+ | `monaco.initActions` | Runs named Monaco actions after initialization. |
1005
+
1006
+ - A string control with `format: "code"` and either `language` or
1007
+ `:language` MUST be eligible for this renderer.
1008
+ - A non-string JSON value MAY use the renderer when `language: "json"` and
1009
+ `convertJson: true` are both present.
1010
+ - `:language` takes precedence over `language`. It MUST react to changes in
1011
+ the referenced form data and update the existing Monaco model language so
1012
+ tokenization, validation, and language services change immediately.
1013
+ - Without a valid language option, the editor SHOULD use `plaintext`.
1014
+ - Ordinary code values MUST remain strings. An empty optional string SHOULD
1015
+ use the renderer set's normal cleared value, usually `undefined`.
1016
+ - With `convertJson`, valid edits MUST update the form with the parsed JSON
1017
+ value rather than a JSON string. Invalid or incomplete JSON MUST remain
1018
+ editable in Monaco and MUST NOT replace the last valid form value.
1019
+ - External data changes MUST update the editor without causing feedback loops,
1020
+ cursor loss from unnecessary model replacement, or duplicate change events.
1021
+
1022
+ The renderer MUST use the normal control wrapper for label, description,
1023
+ required state, errors, focus, and accessibility. Disabled and read-only state
1024
+ MUST make Monaco read-only and MUST prevent edits from reaching JSON Forms.
1025
+ Validation state MUST remain visible around the editor without obscuring
1026
+ Monaco's own diagnostics.
1027
+
1028
+ The editor MUST support a maximize/restore action, restore with Escape while
1029
+ maximized, and recalculate its layout after container, pane, row-count, or
1030
+ maximize changes. Auto-grow MUST count model lines and remain within the
1031
+ configured minimum and maximum. Multiple editor instances MUST maintain
1032
+ independent values, languages, options, heights, focus, and disposal.
1033
+
1034
+ #### 9.10.2 Monaco theme and Web Component behavior
1035
+
1036
+ - Monaco MUST follow explicit `light`, `dark`, and `system` modes on initial
1037
+ render and on every later transition, including light to dark to light.
1038
+ - Editor, gutter, minimap, selection, diagnostics, and maximize controls MUST
1039
+ remain legible and visually integrated with the selected UI library. A
1040
+ renderer family MAY supply scoped surface colors when its native dark
1041
+ surface differs from Monaco's built-in theme.
1042
+ - Monaco themes are process-global. A renderer MAY switch only the built-in
1043
+ `vs` and `vs-dark` fallback themes; it MUST preserve a custom Monaco theme
1044
+ installed by the host and MUST NOT unexpectedly retheme demo data editors or
1045
+ other Monaco instances.
1046
+ - Theme detection MUST inspect the surrounding application or Shadow DOM host,
1047
+ not the editor's own previously assigned color scheme, so an editor cannot
1048
+ lock itself in dark mode.
1049
+ - Monaco's structural styles and renderer-specific styles MUST be installed in
1050
+ the active document or ShadowRoot. A Web Component MUST therefore look and
1051
+ behave like the framework-native renderer rather than depending on document
1052
+ styles that cannot cross the shadow boundary.
1053
+ - Monaco web workers and language services MUST work in development,
1054
+ production builds, and Web Component bundles without relying on a globally
1055
+ preloaded Monaco instance.
1056
+ - All subscriptions, models, observers, workers owned by the component, and
1057
+ editor instances MUST be cleaned up when the control is destroyed. Shared
1058
+ host-owned Monaco resources MUST NOT be disposed by an individual control.
1059
+
1060
+ #### 9.10.3 Runtime applicability of web-specific renderers
1061
+
1062
+ AG Grid, Monaco Editor, and template/named-template/slot renderers are
1063
+ web-platform integrations. They are expected for renderer families targeting
1064
+ a browser, including React, Svelte, Vue, Lit, and browser-targeted variants of
1065
+ other languages or frameworks.
1066
+
1067
+ They are not required for renderer sets targeting a native, non-web runtime,
1068
+ such as Flutter native applications, Kotlin/JVM or Compose native UI, Swing,
1069
+ SWT, iOS, or Android views. Those renderer sets MAY omit these extensions or
1070
+ provide documented native equivalents, such as a native data grid, code
1071
+ editor, or composition/template mechanism. They MUST NOT claim exact AG Grid,
1072
+ Monaco, or DOM-template compatibility unless the actual web implementation is
1073
+ hosted. Applicability is determined by the deployment runtime, not solely by
1074
+ the implementation language: a Kotlin or Flutter browser target may still
1075
+ implement the web contract.
1076
+
1077
+ ## 10. Cells
1078
+
1079
+ Renderer sets that support table or compact array presentation MUST provide
1080
+ cells for the applicable primitive types:
1081
+
1082
+ - boolean and boolean toggle;
1083
+ - date and time;
1084
+ - enum and one-of enum;
1085
+ - integer, number, and formatted number;
1086
+ - text.
1087
+
1088
+ Cells MUST preserve value types and read-only/disabled behavior. A cell MAY be
1089
+ visually denser than a full control but MUST use the UI library's components.
1090
+
1091
+ ## 11. Tester and registry rules
1092
+
1093
+ - Every renderer and cell MUST export a tester with an intentional rank.
1094
+ - Specific format, combinator, and UI Schema testers MUST outrank generic
1095
+ object, array, primitive, or mixed-type fallbacks.
1096
+ - Registry order MUST be readable and grouped by controls, complex renderers,
1097
+ layouts, additional renderers, and cells.
1098
+ - A fallback tester MUST document which otherwise unsupported schemas it is
1099
+ intended to claim.
1100
+ - A renderer MUST be tested through the full registry, not only as an isolated
1101
+ component, whenever tester competition can affect selection.
1102
+
1103
+ ## 12. Web Component parity
1104
+
1105
+ The Web Component is another host for the same renderer set, not a simplified
1106
+ renderer implementation.
1107
+
1108
+ - It MUST use the same base and extended registries as framework-native mode.
1109
+ - It MUST accept and update data, schema, UI Schema, UI Schemas, config,
1110
+ read-only state, validation mode, locale, translations, additional errors,
1111
+ direction, theme mode, and renderer-specific settings.
1112
+ - It MUST emit data/error changes and action events with stable event shapes.
1113
+ - Shadow DOM styles MUST contain the actual UI-library styles required by the
1114
+ renderer components.
1115
+ - The Web Component MUST NOT use a hand-written approximation of the UI
1116
+ library's controls.
1117
+ - Light/dark tokens, dimensions, typography, validation states, descriptions,
1118
+ and spacing MUST match framework-native mode.
1119
+ - The Shadow DOM host's CSS `color-scheme` MUST explicitly match the selected
1120
+ light or dark mode so native scrollbars and other browser controls do not use
1121
+ an unrelated operating-system preference.
1122
+ - Translation fallback MUST use JSON Forms defaults; untranslated internal
1123
+ keys such as `property.description` or `property.error.required` MUST NOT be
1124
+ visible.
1125
+ - Popovers, dialogs, selects, calendars, and other portalled components MUST be
1126
+ styled and functional across the Shadow DOM boundary.
1127
+ - Switching between Framework-native and Web Component modes MUST preserve current data
1128
+ and settings.
1129
+
1130
+ ## 13. Theme, RTL, and accessibility
1131
+
1132
+ ### 13.1 Theme
1133
+
1134
+ - All surfaces, controls, overlays, editors, and icons MUST support light and
1135
+ dark mode.
1136
+ - Text and validation colors MUST meet reasonable contrast requirements.
1137
+ - Logos and icons MUST remain visible against their containers in both modes.
1138
+ - Renderer-specific tokens MUST be scoped so one demo cannot leak styles into
1139
+ another demo in the aggregate application.
1140
+
1141
+ ### 13.2 RTL
1142
+
1143
+ - Direction MUST use logical inline properties where possible.
1144
+ - Sidebar placement, settings drawer placement, form/data panes, icons with
1145
+ directional meaning, and control alignment MUST behave correctly in RTL.
1146
+ - Data paths and JSON text remain unchanged.
1147
+
1148
+ ### 13.3 Accessibility
1149
+
1150
+ - All interactive elements MUST be keyboard reachable.
1151
+ - Icon-only controls MUST have accessible names.
1152
+ - Dialogs and drawers MUST manage focus and support Escape when the library
1153
+ provides that behavior.
1154
+ - Tabs, selects, checkboxes, and toggles MUST expose their standard roles and
1155
+ states.
1156
+ - Errors MUST be announced or associated with their controls.
1157
+ - Focus indicators MUST not be removed unless replaced with an equally visible
1158
+ UI-library focus treatment.
1159
+
1160
+ ## 14. Testing specification
1161
+
1162
+ Tests exist to validate JSON Forms integration and application contracts, not
1163
+ to retest the upstream UI library.
1164
+
1165
+ ### 14.1 What to test
1166
+
1167
+ Each renderer SHOULD test:
1168
+
1169
+ - tester selection and rank where ambiguity is possible;
1170
+ - rendering through the actual renderer registry;
1171
+ - value conversion and `handleChange` output;
1172
+ - Clear value availability only for populated, enabled controls, its
1173
+ hover/focus visibility, accessible name, and emitted clear value;
1174
+ - unselected dropdown behavior, including no implicit first selection and a
1175
+ required error without data initialization;
1176
+ - disabled, read-only, hidden, required, description, and error behavior;
1177
+ - library-component composition when accidental fallback to native HTML is a
1178
+ risk;
1179
+ - schema edge cases relevant to the renderer;
1180
+ - accessibility attributes that the integration is responsible for.
1181
+
1182
+ Complex renderers MUST test data-shape preservation. Required regression cases
1183
+ include:
1184
+
1185
+ - `allOf` object composition remains an object;
1186
+ - arrays respect min/max restrictions;
1187
+ - mixed primitive values use the one-line selector/control presentation and
1188
+ switching type creates the correct default value;
1189
+ - mixed objects and arrays use the collapsible tree/detail presentation,
1190
+ preserve selection during synchronization, navigate nested structures, and
1191
+ enforce rename/delete permissions and restrictions;
1192
+ - dynamic-property add, rename, delete, duplicate-name, `propertyNames`,
1193
+ `patternProperties`, schema-selection, `$ref`, and restriction behavior;
1194
+ - date/time/date-time pickers emit the expected serialized values, including a
1195
+ regression case where display and save formats differ;
1196
+ - Monaco tester selection, reactive language changes, string/JSON conversion,
1197
+ invalid JSON retention, fixed/auto-growing height, and maximize/restore;
1198
+ - Monaco light/dark/system transitions, especially light to dark to light,
1199
+ multiple-instance isolation, custom host-theme preservation, and Shadow DOM
1200
+ styling in Web Component mode;
1201
+ - Framework-native and Web Component registries expose equivalent renderers.
1202
+
1203
+ ### 14.2 What not to test
1204
+
1205
+ - Do not create tests whose only purpose is to prove that an unmodified
1206
+ upstream button, alert, tab, input, or other UI-library primitive works.
1207
+ - Do not snapshot large amounts of upstream component markup.
1208
+ - Do not duplicate the UI library's own accessibility or interaction suite.
1209
+
1210
+ An upstream component test is justified only when the implementation repository modifies
1211
+ the component or depends on a specific integration detail that could regress.
1212
+
1213
+ ### 14.3 Required verification
1214
+
1215
+ Before a renderer-set change is considered complete:
1216
+
1217
+ 1. Run focused tests for the changed renderer.
1218
+ 2. Build the base renderer package.
1219
+ 3. Build the extended renderer package when affected.
1220
+ 4. Build the Web Component package when affected.
1221
+ 5. Build the corresponding demo with its documented toolchain.
1222
+ 6. Run the implementation repository’s documented test command.
1223
+ 7. Run formatting and `git diff --check`.
1224
+ 8. Visually inspect representative examples in light, dark, RTL, responsive,
1225
+ framework-native, and Web Component modes when browser testing is available.
1226
+
1227
+ ## 15. New renderer-set implementation sequence
1228
+
1229
+ 1. **Inventory the UI library.** Identify its provider, theme system, icons,
1230
+ form controls, pickers, layouts, overlays, tables, and accessibility APIs.
1231
+ 2. **Create the base renderer package.** Keep every renderer, cell, and reusable
1232
+ UI component in its own file.
1233
+ 3. **Implement primitive controls.** Establish labels, descriptions, errors,
1234
+ value conversion, and read-only behavior first.
1235
+ 4. **Implement layouts and complex renderers.** Include objects, arrays,
1236
+ dynamic properties (`patternProperties`, `additionalProperties`, and
1237
+ `propertyNames`), `$ref`, and combinators before relying on a mixed fallback.
1238
+ 5. **Add cells.** Cover every compact/table type supported by the examples.
1239
+ 6. **Create extended renderers.** Use the UI library for every visual control;
1240
+ reuse only genuinely UI-independent behavior.
1241
+ 7. **Create the Web Component.** Reuse the same registries and package the real
1242
+ styles for its Shadow DOM.
1243
+ 8. **Create the independent demo app.** Supply the library shell, demo UI
1244
+ controls, logo, provider settings, and theme wrapper to
1245
+ the shared demo layer.
1246
+ 9. **Add the app to the aggregate selector.** Keep its build output isolated in
1247
+ its own subdirectory.
1248
+ 10. **Add integration tests and run the acceptance checklist.** Test schemas
1249
+ through the full registry and verify that data shapes never depend on the
1250
+ selected renderer family.
1251
+
1252
+ ## 16. Acceptance checklist
1253
+
1254
+ A new renderer set is ready when all answers are yes:
1255
+
1256
+ - [ ] Does it use real UI-library components rather than simplified adapters?
1257
+ - [ ] Is every renderer and reusable component in its own file?
1258
+ - [ ] Are base, extended, Web Component, and demo projects separated?
1259
+ - [ ] Do package and demo builds work with the documented framework toolchain?
1260
+ - [ ] Does the independent demo implement the complete shared shell contract?
1261
+ - [ ] Are all settings present, with Restrict enabled by default?
1262
+ - [ ] Do light, dark, system, LTR, RTL, and responsive modes work?
1263
+ - [ ] Does Demo and Data use the UI library's splitter, allow either pane to
1264
+ become larger, and retain usable minimum pane sizes?
1265
+ - [ ] Do all JSON editors, form-only mode, and deep links work?
1266
+ - [ ] Are date/time/date-time controls real UI-library pickers, and do they
1267
+ honor separate UI Schema display and save formats?
1268
+ - [ ] Do applicable populated inputs, textareas, numeric controls, and
1269
+ dropdowns expose an accessible Clear value icon on hover/focus without
1270
+ obscuring the value?
1271
+ - [ ] Do enum, one-of, mixed, and other selection controls remain genuinely
1272
+ unselected when data is absent, including when required, rather than
1273
+ silently choosing their first option?
1274
+ - [ ] Do objects, arrays, `patternProperties`, `additionalProperties`,
1275
+ `propertyNames`, `$ref`, `allOf`, `anyOf`, and `oneOf` preserve correct
1276
+ data shapes and schema behavior?
1277
+ - [ ] Does the mixed renderer use a one-line selector/control for primitives
1278
+ and a collapsible, searchable tree/detail split for objects and arrays,
1279
+ with schema-aware rename and delete actions?
1280
+ - [ ] Does the Monaco renderer react to language and theme changes, preserve
1281
+ invalid JSON while editing, isolate multiple instances, and work in the
1282
+ Web Component Shadow DOM?
1283
+ - [ ] Are AG Grid, Monaco, and template renderers required only for applicable
1284
+ browser runtimes, with native omissions or equivalents documented?
1285
+ - [ ] Do Framework-native and Web Component modes look and behave equivalently?
1286
+ - [ ] Are tests focused on renderer integration rather than upstream
1287
+ primitives?
1288
+ - [ ] Do focused tests, package builds, demo builds, and the documented test command pass?
1289
+
1290
+ ## 17. Source-of-truth priority
1291
+
1292
+ When references disagree, use this order:
1293
+
1294
+ 1. JSON Schema and JSON Forms semantics for data and validation behavior.
1295
+ 2. The selected UI library's official API and components for appearance and
1296
+ interaction.
1297
+ 3. This guide for host architecture and demo behavior. spec.md remains authoritative for portable semantics.
1298
+ 4. Existing renderer demos and implementations as visual and feature references.
1299
+
1300
+ Any intentional deviation MUST be documented in the renderer package README
1301
+ and covered by a test when it changes observable behavior.
1302
+
1303
+
1304
+ ## Component ownership
1305
+
1306
+ When a UI library distributes component source, consuming hosts own those
1307
+ components and keep them aligned with their chosen upstream version. Renderers
1308
+ use a documented component interface rather than shipping competing private
1309
+ copies. Native and Web Component hosts must both supply the real component
1310
+ styles and dependencies. Framework-specific aliases and filenames belong in
1311
+ implementation setup guides.
1312
+
1313
+ ## Catalog registration and validation summary
1314
+
1315
+ Demos MUST discover specification examples from the spec package catalog or
1316
+ example module, without a second per-example registry in each renderer project.
1317
+ Use `spec-<id>` for stable links and `Spec: <title>` for display labels. Keep official
1318
+ JSON Forms examples in their own `jsonforms-` namespace. New catalog entries
1319
+ appear after rebuilding/updating the spec package; no renderer registration edit
1320
+ is required. Framework-native enhancements are optional and cannot gate discovery.
1321
+
1322
+ Demo and Demo and Data tabs SHOULD use one shared validation-summary icon across
1323
+ renderer families, with an error count and the actual errors available on hover
1324
+ and keyboard focus. The icon has an accessible name. Additional errors remain
1325
+ visible alongside schema validation errors, with useful paths and source labels
1326
+ where available. A count alone is insufficient to explain an invalid form.
1327
+
1328
+ ### Example source navigation
1329
+
1330
+ When a demo hosts both spec fixtures and original JSON Forms examples, provide
1331
+ an **Example source** selector above sidebar search: **Spec examples**, **JSON
1332
+ Forms originals**, and **All examples**. Prefer Spec initially when present;
1333
+ otherwise use All. All also includes host-specific additions. Search combines
1334
+ with this filter rather than replacing it. Identify sources from registration
1335
+ metadata, not arbitrary display-label matching.
1336
+
1337
+ Filtering changes the navigation list only. Preserve the currently open form
1338
+ and its edits, and allow direct example URLs even if their source is excluded
1339
+ from the menu. Show an empty-results state when search and source have no
1340
+ matches. Use the host UI library's accessible select or equivalent navigation
1341
+ control. The source choice may remain session-local; it is not form config.
1342
+
1343
+ ### Layout default conformance
1344
+
1345
+ All ports must follow the portable defaults in §7.1. Native field margins must
1346
+ not add to the managed layout gap. Each renderer project records verification
1347
+ against this contract.