@chobantonov/jsonforms-extended-spec 0.0.0-stage → 0.2.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 +2169 -0
  4. package/conformance/behavior.json +731 -0
  5. package/conformance/config-consumption.json +1531 -0
  6. package/conformance/expected-invalid.json +20 -0
  7. package/docs/audit.md +150 -0
  8. package/docs/conditional-fields.md +80 -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 +180 -0
  12. package/docs/implementation-pitfalls.md +802 -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 +8321 -0
  17. package/docs/todo.md +149 -0
  18. package/examples/README.md +121 -0
  19. package/examples/additional-errors/README.md +169 -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 +188 -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 +151 -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 +19 -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 +30 -0
  118. package/examples/conditional-fields/uischema.json +71 -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 +200 -0
  198. package/examples/label-interpolation/config.json +8 -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 +375 -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 +77 -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 +327 -0
  339. package/schemas/jsonforms-extended-uischema.schema.json +1923 -0
  340. package/schemas/jsonforms-rule.schema.json +104 -0
  341. package/schemas/jsonforms-uischema.schema.json +1421 -0
  342. package/typescript/README.md +540 -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 +376 -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 +419 -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 +626 -0
  360. package/typescript/test/tsconfig.json +10 -0
  361. package/typescript/test/typedAuthoring.test.ts +140 -0
  362. package/typescript/test/typedAuthoringCoverage.test.ts +145 -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,187 @@
1
+ # Example: container validation indicator
2
+
3
+ **Example ID:** `container-validation-indicator`\
4
+ **Demo entry:** **Spec: Container validation indicator** (`#spec-container-validation-indicator`)\
5
+ **Domain:** employee onboarding\
6
+ **Specs covered:**
7
+
8
+ - [Container validation indicator](../../docs/spec.md#83-the-container-validation-indicator)
9
+ - [configuration namespacing](../../docs/spec.md#83-the-container-validation-indicator)
10
+
11
+ One example serves both because they are inseparable in practice: the indicator
12
+ is the first option to use the namespaced config tier, so its `config.json` is
13
+ also the worked demonstration of where a project-extension key belongs.
14
+
15
+ ## Files
16
+
17
+ | File | Role |
18
+ | --- | --- |
19
+ | `schema.json` | JSON Schema. Constraints demonstrate single and multiple descendant errors. |
20
+ | `uischema.json` | UI Schema: a stepper Categorization containing a collapsible Group and an array control. |
21
+ | `data.json` | Data with invalid nested fields and valid comparison rows. |
22
+ | `config.json` | Global config, showing the flat tier and the `jsonformsExtended` tier side by side. |
23
+ | `translations.json` | English and Bulgarian catalogs, as §24 of the specification requires. Switch locale in the demo to see either; the Internationalization tab shows and edits them. |
24
+
25
+ There is no `uischemas.json`: this example registers no detail UI schemas. Add
26
+ one only where an example actually needs ranked detail selection.
27
+
28
+ ## What the form contains
29
+
30
+ ```text
31
+ Full name <- valid
32
+ Categorization (stepper)
33
+ Personal details <- indicator: 1 error
34
+ Start date <- valid
35
+ Group "Emergency contact" <- indicator: 1 error, collapsed
36
+ Contact name <- valid
37
+ Relationship <- valid
38
+ Phone number <- minLength 7 fails on "112"
39
+ Compliance <- indicator suppressed
40
+ Certifications (array) <- indicator suppressed by the element
41
+ 1. First aid certificate <- valid
42
+ 2. (unnamed) <- required "name" fails
43
+ ```
44
+
45
+ ## Unbound elements carry an explicit `i18n` prefix
46
+
47
+ The Group and both Categories declare `i18n` — `emergencyContact`,
48
+ `personalDetails`, `compliance`. This is not decoration.
49
+
50
+ A `Control` has a scope, so core derives a translation prefix from its data
51
+ path: `#/properties/certifications` gives the prefix `certifications`, and
52
+ `certifications.label` resolves with nothing authored. **A Group or Category
53
+ has no scope**, so there is nothing to derive from — core calls
54
+ `getI18nKeyPrefixBySchema(undefined, uischema)`, which can only return
55
+ `uischema.i18n`. Without it the lookup key becomes the *literal label text*:
56
+
57
+ ```ts
58
+ const i18nKey = typeof i18nKeyPrefix === 'string'
59
+ ? `${i18nKeyPrefix}.label`
60
+ : stringifiedLabel; // "Emergency contact"
61
+ ```
62
+
63
+ So a catalog entry keyed `emergencyContact.label` would never be consulted, and
64
+ the group would stay English in every locale.
65
+
66
+ There is no correlation to infer, either: a plain Group is free to hold controls
67
+ from several different objects, or none at all, so core cannot guess which part
68
+ of the schema it corresponds to. The prefix has to be authored.
69
+
70
+ `test/specExampleLabels.test.ts` pins this, including the negative case —
71
+ removing `i18n` makes the Bulgarian label fall back to the English literal.
72
+
73
+ ## Validation state
74
+
75
+ The emergency contact has a short phone number. Certifications include a
76
+ missing name and two entries with an empty name and invalid date, demonstrating
77
+ multi-error summaries. The Composite cells step adds a separate two-row table:
78
+
79
+ | Row | Contact object cell | Experience array cell |
80
+ | --- | --- | --- |
81
+ | Alex Rivera | One error: required City is missing; Phone still exists. | Two errors: the item lacks Company and Role. |
82
+ | Blair Chen | Valid, no cell indicator. | Valid, no cell indicator. |
83
+
84
+ Open the first Contact cell's indicator to inspect its required-field message.
85
+ Open the first Experience cell's indicator to inspect the two-error summary.
86
+ Opening either cell's detail editor shows the individual field errors. The valid
87
+ second row must not inherit the first row's indicators. Scalar cell error icons
88
+ and composite indicators stay on the same line as their editor or summary.
89
+
90
+ ## Expected behavior
91
+
92
+ With `config.jsonformsExtended.showValidationIndicator` set to `true`:
93
+
94
+ 1. **The Group shows an indicator while collapsed.** This is the case the
95
+ proposal exists for — the phone error is otherwise invisible, because the
96
+ section is `collapsed: true` on load. Opening the group shows the ordinary
97
+ field message as well.
98
+ 2. **The "Personal details" category header shows an indicator.** The error is
99
+ a descendant of that category, so it aggregates upward. The "Compliance"
100
+ header also aggregates, because §3 propagation is unconditional — see open
101
+ question 4 in the spec, which asks whether it should be.
102
+ 3. **The certifications array shows no indicator**, because the element sets
103
+ `options.showValidationIndicator: false`. Its array-level presentation is
104
+ unaffected: `minItems: 1` is satisfied here, but were the array emptied, the
105
+ `minItems` message would still appear beneath the toolbar. The option never
106
+ suppresses a container's own errors (§3.1).
107
+ 4. **The Group's data-presence dot and its error indicator are different
108
+ things.** `showDataIndicator: true` is also set, so the group shows both.
109
+ The dot means "there is data in here"; the error indicator means "there is
110
+ something to fix". The specification is explicit that the data indicator
111
+ "does not imply validity".
112
+ 5. **The dot carries a tooltip**, on hover and on keyboard focus, sharing one
113
+ translated string with its accessible name. The key is
114
+ `group.dataIndicator`, default **"Section contains data"** — supplied in
115
+ both locales in `translations.json`. The wording deliberately says *data*,
116
+ not *edits*: this group is populated from `data.json`, so the dot appears on
117
+ load without anyone having typed. See
118
+ [4](../../docs/spec.md#83-the-container-validation-indicator).
119
+
120
+ ## Fallback behavior
121
+
122
+ | Situation | Result |
123
+ | --- | --- |
124
+ | `showValidationIndicator` absent everywhere | Container-type defaults apply: the array keeps its indicator, Group and Category show none. The form looks as it does today. |
125
+ | Renderer does not implement the option | Nothing is shown for Group/Category; array behavior is unchanged. No error, no data change. |
126
+ | `validationMode: "ValidateAndHide"` | No indicator, because the underlying schema errors are not displayable. Validity is unchanged. |
127
+ | Pre-touch filtering enabled for `required` | The certifications error is suppressed until that child is touched; the indicator must reappear once it is. |
128
+
129
+ ## Config tiers demonstrated
130
+
131
+ ```json
132
+ {
133
+ "restrict": true,
134
+ "showUnfocusedDescription": true,
135
+ "hideRequiredAsterisk": false,
136
+
137
+ "jsonformsExtended": {
138
+ "showValidationIndicator": true
139
+ }
140
+ }
141
+ ```
142
+
143
+ `restrict`, `showUnfocusedDescription` and `hideRequiredAsterisk` are established
144
+ conventions and stay **top level**. `showValidationIndicator`
145
+ is a new project extension, so its global default is **namespaced**. The
146
+ per-element override in `uischema.json` is flat:
147
+ `options.showValidationIndicator`, never
148
+ `options.jsonformsExtended.showValidationIndicator`.
149
+
150
+ ## Conformance scope
151
+
152
+ This walkthrough describes the portable contract. Renderer support must be checked
153
+ by a host adapter; the package validates the authored assets, not live UI behavior.
154
+
155
+ ## Standalone host setup
156
+
157
+ Load the JSON assets listed in [the catalog](../catalog.json) into a host
158
+ with the relevant renderer capabilities. No framework registration module is
159
+ required by this package.
160
+
161
+ ## Combined error summary
162
+
163
+ The certification rows deliberately contain more than three errors. Open the array
164
+ indicator to see separate messages with row context, then expand and collapse the
165
+ list. The certificate-name schema uses `errorMessage` with English and Bulgarian
166
+ translations to demonstrate actionable business wording. Validation counts remain
167
+ unchanged when the summary is collapsed.
168
+
169
+ ## Combinator cells
170
+
171
+ The Composite cells table also includes three object-valued combinator columns.
172
+ Each uses the normal compact object cell and opens the combinator editor in its
173
+ detail dialog. Alex's row deliberately fails each constraint; Blair's row is valid.
174
+
175
+ | Column | Invalid case | Expected feedback |
176
+ | --- | --- | --- |
177
+ | OneOf contact | Both email and phone branches match. | The cell indicates the oneOf failure; exactly one branch must match. |
178
+ | AnyOf contact | Neither email nor phone exists. | The cell summarizes branch-required errors and the anyOf failure. |
179
+ | AllOf contact | Phone has only two characters. | The cell indicates the nested phone minLength failure. |
180
+
181
+ Open each cell to inspect its detail presentation and field errors. Valid sibling
182
+ cells have no indicator. Widen the pane or scroll the
183
+ table horizontally to reach all columns; error markers stay beside summaries.
184
+
185
+ Check oneOf branch selection and anyOf branch navigation. Each alternative
186
+ declares its object type and editable fields,
187
+ so the example tests contact editors rather than unconstrained mixed values.
@@ -0,0 +1,9 @@
1
+ {
2
+ "restrict": true,
3
+ "showUnfocusedDescription": true,
4
+ "hideRequiredAsterisk": false,
5
+
6
+ "jsonformsExtended": {
7
+ "showValidationIndicator": true
8
+ }
9
+ }
@@ -0,0 +1,68 @@
1
+ {
2
+ "fullName": "John Doe",
3
+ "startDate": "2026-10-01",
4
+ "emergencyContact": {
5
+ "name": "Jane Doe",
6
+ "relationship": "Partner",
7
+ "phone": "112"
8
+ },
9
+ "certifications": [
10
+ {
11
+ "name": "First aid certificate",
12
+ "expiresOn": "2027-03-14"
13
+ },
14
+ {
15
+ "expiresOn": "2026-11-30"
16
+ },
17
+ {
18
+ "name": "",
19
+ "expiresOn": "not-a-date"
20
+ },
21
+ {
22
+ "name": "",
23
+ "expiresOn": "not-a-date"
24
+ }
25
+ ],
26
+ "applicants": [
27
+ {
28
+ "name": "Alex Rivera",
29
+ "contact": {
30
+ "phone": "555-0100"
31
+ },
32
+ "experience": [
33
+ {}
34
+ ],
35
+ "oneOfContact": {
36
+ "email": "alex@example.com",
37
+ "phone": "555-0100"
38
+ },
39
+ "anyOfContact": {},
40
+ "allOfContact": {
41
+ "city": "Boston",
42
+ "phone": "12"
43
+ }
44
+ },
45
+ {
46
+ "name": "Blair Chen",
47
+ "contact": {
48
+ "city": "Seattle"
49
+ },
50
+ "experience": [
51
+ {
52
+ "company": "Northwind",
53
+ "role": "Developer"
54
+ }
55
+ ],
56
+ "oneOfContact": {
57
+ "email": "blair@example.com"
58
+ },
59
+ "anyOfContact": {
60
+ "phone": "555-0101"
61
+ },
62
+ "allOfContact": {
63
+ "city": "Seattle",
64
+ "phone": "555-0101"
65
+ }
66
+ }
67
+ ]
68
+ }
@@ -0,0 +1,222 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "required": [
5
+ "fullName",
6
+ "emergencyContact"
7
+ ],
8
+ "properties": {
9
+ "fullName": {
10
+ "type": "string",
11
+ "minLength": 1,
12
+ "title": "Full name",
13
+ "description": "Name as it appears on the employment contract."
14
+ },
15
+ "startDate": {
16
+ "type": "string",
17
+ "format": "date",
18
+ "title": "Start date"
19
+ },
20
+ "emergencyContact": {
21
+ "type": "object",
22
+ "title": "Emergency contact",
23
+ "required": [
24
+ "name",
25
+ "phone"
26
+ ],
27
+ "properties": {
28
+ "name": {
29
+ "type": "string",
30
+ "minLength": 1,
31
+ "title": "Contact name"
32
+ },
33
+ "relationship": {
34
+ "type": "string",
35
+ "title": "Relationship",
36
+ "enum": [
37
+ "Partner",
38
+ "Parent",
39
+ "Sibling",
40
+ "Friend"
41
+ ]
42
+ },
43
+ "phone": {
44
+ "type": "string",
45
+ "minLength": 7,
46
+ "title": "Phone number",
47
+ "description": "Include the country code, for example +359 2 000 0000."
48
+ }
49
+ }
50
+ },
51
+ "certifications": {
52
+ "type": "array",
53
+ "title": "Certifications",
54
+ "minItems": 1,
55
+ "items": {
56
+ "type": "object",
57
+ "required": [
58
+ "name",
59
+ "expiresOn"
60
+ ],
61
+ "properties": {
62
+ "name": {
63
+ "type": "string",
64
+ "minLength": 1,
65
+ "title": "Certificate",
66
+ "errorMessage": {
67
+ "minLength": "certificateNameRequired"
68
+ }
69
+ },
70
+ "expiresOn": {
71
+ "type": "string",
72
+ "format": "date",
73
+ "title": "Expires on"
74
+ }
75
+ }
76
+ }
77
+ },
78
+ "applicants": {
79
+ "type": "array",
80
+ "title": "Applicants",
81
+ "items": {
82
+ "type": "object",
83
+ "properties": {
84
+ "name": {
85
+ "type": "string",
86
+ "title": "Name"
87
+ },
88
+ "contact": {
89
+ "type": "object",
90
+ "title": "Contact",
91
+ "required": [
92
+ "city"
93
+ ],
94
+ "properties": {
95
+ "city": {
96
+ "type": "string",
97
+ "title": "City"
98
+ },
99
+ "phone": {
100
+ "type": "string",
101
+ "title": "Phone"
102
+ }
103
+ }
104
+ },
105
+ "experience": {
106
+ "type": "array",
107
+ "title": "Experience",
108
+ "items": {
109
+ "type": "object",
110
+ "required": [
111
+ "company",
112
+ "role"
113
+ ],
114
+ "properties": {
115
+ "company": {
116
+ "type": "string",
117
+ "title": "Company"
118
+ },
119
+ "role": {
120
+ "type": "string",
121
+ "title": "Role"
122
+ }
123
+ }
124
+ }
125
+ },
126
+ "oneOfContact": {
127
+ "type": "object",
128
+ "title": "OneOf contact",
129
+ "oneOf": [
130
+ {
131
+ "title": "Email contact",
132
+ "required": [
133
+ "email"
134
+ ],
135
+ "properties": {
136
+ "email": {
137
+ "type": "string",
138
+ "minLength": 3
139
+ }
140
+ },
141
+ "type": "object"
142
+ },
143
+ {
144
+ "title": "Phone contact",
145
+ "required": [
146
+ "phone"
147
+ ],
148
+ "properties": {
149
+ "phone": {
150
+ "type": "string",
151
+ "minLength": 7
152
+ }
153
+ },
154
+ "type": "object"
155
+ }
156
+ ]
157
+ },
158
+ "anyOfContact": {
159
+ "type": "object",
160
+ "title": "AnyOf contact",
161
+ "anyOf": [
162
+ {
163
+ "title": "Email available",
164
+ "required": [
165
+ "email"
166
+ ],
167
+ "type": "object",
168
+ "properties": {
169
+ "email": {
170
+ "type": "string",
171
+ "minLength": 3
172
+ }
173
+ }
174
+ },
175
+ {
176
+ "title": "Phone available",
177
+ "required": [
178
+ "phone"
179
+ ],
180
+ "type": "object",
181
+ "properties": {
182
+ "phone": {
183
+ "type": "string",
184
+ "minLength": 7
185
+ }
186
+ }
187
+ }
188
+ ]
189
+ },
190
+ "allOfContact": {
191
+ "type": "object",
192
+ "title": "AllOf contact",
193
+ "allOf": [
194
+ {
195
+ "required": [
196
+ "city"
197
+ ],
198
+ "properties": {
199
+ "city": {
200
+ "type": "string",
201
+ "minLength": 1
202
+ }
203
+ }
204
+ },
205
+ {
206
+ "required": [
207
+ "phone"
208
+ ],
209
+ "properties": {
210
+ "phone": {
211
+ "type": "string",
212
+ "minLength": 7
213
+ }
214
+ }
215
+ }
216
+ ]
217
+ }
218
+ }
219
+ }
220
+ }
221
+ }
222
+ }
@@ -0,0 +1,120 @@
1
+ {
2
+ "en": {
3
+ "error.minLength": "This value is too short.",
4
+ "error.required": "This field is required.",
5
+ "certifications.label": "Certifications",
6
+ "emergencyContact.label": "Emergency contact",
7
+ "group.dataIndicator": "Section contains data",
8
+ "personalDetails.label": "Personal details",
9
+ "compliance.label": "Compliance",
10
+ "validation.containerError": "{count} error in this section",
11
+ "validation.containerErrors": "{count} errors in this section",
12
+ "validation.containerHasErrors": "This section contains errors",
13
+ "error.errorMessage.certificateNameRequired": "Enter the name printed on the certificate.",
14
+ "validation.showMore": "Show {count} more",
15
+ "validation.showLess": "Show less",
16
+ "compositeCells.label": "Composite cells",
17
+ "applicants.label": "Applicants",
18
+ "applicants.name.label": "Name",
19
+ "applicants.contact.label": "Contact",
20
+ "applicants.contact.city.label": "City",
21
+ "applicants.contact.phone.label": "Phone",
22
+ "applicants.experience.label": "Experience",
23
+ "applicants.experience.company.label": "Company",
24
+ "applicants.experience.role.label": "Role",
25
+ "applicants.oneOfContact.label": "OneOf contact",
26
+ "applicants.anyOfContact.label": "AnyOf contact",
27
+ "applicants.allOfContact.label": "AllOf contact",
28
+ "specContainerValidation.schema.properties.fullName.label": "Full name",
29
+ "specContainerValidation.schema.properties.fullName.description": "Name as it appears on the employment contract.",
30
+ "specContainerValidation.schema.properties.startDate.label": "Start date",
31
+ "specContainerValidation.schema.properties.emergencyContact.label": "Emergency contact",
32
+ "specContainerValidation.schema.properties.emergencyContact.properties.name.label": "Contact name",
33
+ "specContainerValidation.schema.properties.emergencyContact.properties.relationship.label": "Relationship",
34
+ "specContainerValidation.schema.properties.emergencyContact.properties.relationship.Partner": "Partner",
35
+ "specContainerValidation.schema.properties.emergencyContact.properties.relationship.Parent": "Parent",
36
+ "specContainerValidation.schema.properties.emergencyContact.properties.relationship.Sibling": "Sibling",
37
+ "specContainerValidation.schema.properties.emergencyContact.properties.relationship.Friend": "Friend",
38
+ "specContainerValidation.schema.properties.emergencyContact.properties.phone.label": "Phone number",
39
+ "specContainerValidation.schema.properties.emergencyContact.properties.phone.description": "Include the country code, for example +359 2 000 0000.",
40
+ "specContainerValidation.schema.properties.certifications.label": "Certifications",
41
+ "specContainerValidation.schema.properties.certifications.items.properties.name.label": "Certificate",
42
+ "specContainerValidation.schema.properties.certifications.items.properties.expiresOn.label": "Expires on",
43
+ "specContainerValidation.schema.properties.applicants.label": "Applicants",
44
+ "specContainerValidation.schema.properties.applicants.items.properties.name.label": "Name",
45
+ "specContainerValidation.schema.properties.applicants.items.properties.contact.label": "Contact",
46
+ "specContainerValidation.schema.properties.applicants.items.properties.contact.properties.city.label": "City",
47
+ "specContainerValidation.schema.properties.applicants.items.properties.contact.properties.phone.label": "Phone",
48
+ "specContainerValidation.schema.properties.applicants.items.properties.experience.label": "Experience",
49
+ "specContainerValidation.schema.properties.applicants.items.properties.experience.items.properties.company.label": "Company",
50
+ "specContainerValidation.schema.properties.applicants.items.properties.experience.items.properties.role.label": "Role",
51
+ "specContainerValidation.schema.properties.applicants.items.properties.oneOfContact.label": "OneOf contact",
52
+ "specContainerValidation.schema.properties.applicants.items.properties.oneOfContact.oneOf.0.label": "Email contact",
53
+ "specContainerValidation.schema.properties.applicants.items.properties.oneOfContact.oneOf.1.label": "Phone contact",
54
+ "specContainerValidation.schema.properties.applicants.items.properties.anyOfContact.label": "AnyOf contact",
55
+ "specContainerValidation.schema.properties.applicants.items.properties.anyOfContact.anyOf.0.label": "Email available",
56
+ "specContainerValidation.schema.properties.applicants.items.properties.anyOfContact.anyOf.1.label": "Phone available",
57
+ "specContainerValidation.schema.properties.applicants.items.properties.allOfContact.label": "AllOf contact",
58
+ "categorization.previous": "Previous",
59
+ "categorization.next": "Next"
60
+ },
61
+ "bg": {
62
+ "error.minLength": "Стойността е твърде къса.",
63
+ "error.required": "Полето е задължително.",
64
+ "certifications.label": "Сертификати",
65
+ "emergencyContact.label": "Лице за контакт при спешност",
66
+ "group.dataIndicator": "Разделът съдържа данни",
67
+ "personalDetails.label": "Лични данни",
68
+ "compliance.label": "Съответствие",
69
+ "validation.containerError": "{count} грешка в този раздел",
70
+ "validation.containerErrors": "{count} грешки в този раздел",
71
+ "validation.containerHasErrors": "Разделът съдържа грешки",
72
+ "error.errorMessage.certificateNameRequired": "Въведете името, отпечатано на сертификата.",
73
+ "validation.showMore": "Покажи още {count}",
74
+ "validation.showLess": "Покажи по-малко",
75
+ "compositeCells.label": "Съставни клетки",
76
+ "applicants.label": "Кандидати",
77
+ "applicants.name.label": "Име",
78
+ "applicants.contact.label": "Контакт",
79
+ "applicants.contact.city.label": "Град",
80
+ "applicants.contact.phone.label": "Телефон",
81
+ "applicants.experience.label": "Опит",
82
+ "applicants.experience.company.label": "Компания",
83
+ "applicants.experience.role.label": "Длъжност",
84
+ "applicants.oneOfContact.label": "Контакт oneOf",
85
+ "applicants.anyOfContact.label": "Контакт anyOf",
86
+ "applicants.allOfContact.label": "Контакт allOf",
87
+ "specContainerValidation.schema.properties.fullName.label": "Пълно име",
88
+ "specContainerValidation.schema.properties.fullName.description": "Името, както е записано в трудовия договор.",
89
+ "specContainerValidation.schema.properties.startDate.label": "Начална дата",
90
+ "specContainerValidation.schema.properties.emergencyContact.label": "Лице за контакт при спешност",
91
+ "specContainerValidation.schema.properties.emergencyContact.properties.name.label": "Име на лицето за контакт",
92
+ "specContainerValidation.schema.properties.emergencyContact.properties.relationship.label": "Връзка",
93
+ "specContainerValidation.schema.properties.emergencyContact.properties.relationship.Partner": "Партньор",
94
+ "specContainerValidation.schema.properties.emergencyContact.properties.relationship.Parent": "Родител",
95
+ "specContainerValidation.schema.properties.emergencyContact.properties.relationship.Sibling": "Брат или сестра",
96
+ "specContainerValidation.schema.properties.emergencyContact.properties.relationship.Friend": "Приятел",
97
+ "specContainerValidation.schema.properties.emergencyContact.properties.phone.label": "Телефонен номер",
98
+ "specContainerValidation.schema.properties.emergencyContact.properties.phone.description": "Включете кода на държавата, например +359 2 000 0000.",
99
+ "specContainerValidation.schema.properties.certifications.label": "Сертификати",
100
+ "specContainerValidation.schema.properties.certifications.items.properties.name.label": "Сертификат",
101
+ "specContainerValidation.schema.properties.certifications.items.properties.expiresOn.label": "Валиден до",
102
+ "specContainerValidation.schema.properties.applicants.label": "Кандидати",
103
+ "specContainerValidation.schema.properties.applicants.items.properties.name.label": "Име",
104
+ "specContainerValidation.schema.properties.applicants.items.properties.contact.label": "Контакт",
105
+ "specContainerValidation.schema.properties.applicants.items.properties.contact.properties.city.label": "Град",
106
+ "specContainerValidation.schema.properties.applicants.items.properties.contact.properties.phone.label": "Телефон",
107
+ "specContainerValidation.schema.properties.applicants.items.properties.experience.label": "Опит",
108
+ "specContainerValidation.schema.properties.applicants.items.properties.experience.items.properties.company.label": "Компания",
109
+ "specContainerValidation.schema.properties.applicants.items.properties.experience.items.properties.role.label": "Длъжност",
110
+ "specContainerValidation.schema.properties.applicants.items.properties.oneOfContact.label": "Контакт oneOf",
111
+ "specContainerValidation.schema.properties.applicants.items.properties.oneOfContact.oneOf.0.label": "Контакт по имейл",
112
+ "specContainerValidation.schema.properties.applicants.items.properties.oneOfContact.oneOf.1.label": "Контакт по телефон",
113
+ "specContainerValidation.schema.properties.applicants.items.properties.anyOfContact.label": "Контакт anyOf",
114
+ "specContainerValidation.schema.properties.applicants.items.properties.anyOfContact.anyOf.0.label": "Наличен имейл",
115
+ "specContainerValidation.schema.properties.applicants.items.properties.anyOfContact.anyOf.1.label": "Наличен телефон",
116
+ "specContainerValidation.schema.properties.applicants.items.properties.allOfContact.label": "Контакт allOf",
117
+ "categorization.previous": "Назад",
118
+ "categorization.next": "Напред"
119
+ }
120
+ }