@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,685 @@
1
+ {
2
+ "type": "VerticalLayout",
3
+ "options": {
4
+ "gap": "1rem"
5
+ },
6
+ "elements": [
7
+ {
8
+ "type": "Label",
9
+ "i18n": "intro"
10
+ },
11
+ {
12
+ "type": "Categorization",
13
+ "elements": [
14
+ {
15
+ "type": "Category",
16
+ "name": "table",
17
+ "i18n": "tableTab",
18
+ "label": "Table",
19
+ "elements": [
20
+ {
21
+ "type": "Label",
22
+ "i18n": "table"
23
+ },
24
+ {
25
+ "type": "Control",
26
+ "scope": "#/properties/sessions",
27
+ "options": {
28
+ "table": true,
29
+ "showSortButtons": true,
30
+ "cells": {
31
+ "room": {
32
+ "summary": {
33
+ "type": "Control",
34
+ "scope": "#/properties/name",
35
+ "options": {}
36
+ },
37
+ "detail": {
38
+ "type": "VerticalLayout",
39
+ "elements": [
40
+ {
41
+ "type": "Control",
42
+ "scope": "#/properties/name",
43
+ "options": {}
44
+ },
45
+ {
46
+ "type": "Control",
47
+ "scope": "#/properties/floor",
48
+ "options": {}
49
+ }
50
+ ]
51
+ }
52
+ }
53
+ },
54
+ "collapsible": true
55
+ }
56
+ }
57
+ ]
58
+ },
59
+ {
60
+ "type": "Category",
61
+ "name": "expandable",
62
+ "i18n": "expandableTab",
63
+ "label": "Expandable",
64
+ "elements": [
65
+ {
66
+ "type": "Label",
67
+ "i18n": "expandable"
68
+ },
69
+ {
70
+ "type": "Control",
71
+ "scope": "#/properties/speakers",
72
+ "options": {
73
+ "elementLabelProp": "name",
74
+ "showSortButtons": true,
75
+ "detail": {
76
+ "type": "VerticalLayout",
77
+ "elements": [
78
+ {
79
+ "type": "Control",
80
+ "scope": "#/properties/name",
81
+ "options": {}
82
+ },
83
+ {
84
+ "type": "Control",
85
+ "scope": "#/properties/track",
86
+ "options": {}
87
+ },
88
+ {
89
+ "type": "Control",
90
+ "scope": "#/properties/bio",
91
+ "options": {
92
+ "multi": true
93
+ }
94
+ },
95
+ {
96
+ "type": "Control",
97
+ "scope": "#/properties/links",
98
+ "options": {}
99
+ }
100
+ ]
101
+ },
102
+ "collapsible": true
103
+ }
104
+ },
105
+ {
106
+ "type": "Label",
107
+ "i18n": "expandableOptions"
108
+ },
109
+ {
110
+ "type": "Control",
111
+ "scope": "#/properties/announcements",
112
+ "options": {
113
+ "elementLabelProp": "text",
114
+ "collapsed": true,
115
+ "collapseNewItems": true,
116
+ "hideAvatar": true,
117
+ "hideArraySummaryValidation": true,
118
+ "collapsible": true
119
+ }
120
+ }
121
+ ]
122
+ },
123
+ {
124
+ "type": "Category",
125
+ "name": "listWithDetail",
126
+ "i18n": "listTab",
127
+ "label": "List with detail",
128
+ "elements": [
129
+ {
130
+ "type": "Label",
131
+ "i18n": "list"
132
+ },
133
+ {
134
+ "type": "ListWithDetail",
135
+ "scope": "#/properties/sponsors",
136
+ "options": {
137
+ "elementLabelProp": "name",
138
+ "detail": {
139
+ "type": "VerticalLayout",
140
+ "elements": [
141
+ {
142
+ "type": "Control",
143
+ "scope": "#/properties/name",
144
+ "options": {}
145
+ },
146
+ {
147
+ "type": "Control",
148
+ "scope": "#/properties/tier",
149
+ "options": {}
150
+ },
151
+ {
152
+ "type": "Control",
153
+ "scope": "#/properties/notes",
154
+ "options": {
155
+ "multi": true
156
+ }
157
+ }
158
+ ]
159
+ },
160
+ "collapsible": true
161
+ }
162
+ }
163
+ ]
164
+ },
165
+ {
166
+ "type": "Category",
167
+ "name": "grid",
168
+ "i18n": "gridTab",
169
+ "label": "AG Grid",
170
+ "elements": [
171
+ {
172
+ "type": "Label",
173
+ "i18n": "grid"
174
+ },
175
+ {
176
+ "type": "Control",
177
+ "scope": "#/properties/tickets",
178
+ "options": {
179
+ "variant": "ag-grid",
180
+ "showSortButtons": true,
181
+ "height": 260,
182
+ "cells": {
183
+ "holder": {
184
+ "summary": {
185
+ "type": "Control",
186
+ "scope": "#/properties/name",
187
+ "options": {}
188
+ },
189
+ "detail": {
190
+ "type": "VerticalLayout",
191
+ "elements": [
192
+ {
193
+ "type": "Control",
194
+ "scope": "#/properties/name",
195
+ "options": {}
196
+ },
197
+ {
198
+ "type": "Control",
199
+ "scope": "#/properties/email",
200
+ "options": {}
201
+ }
202
+ ]
203
+ }
204
+ }
205
+ },
206
+ "collapsible": true
207
+ }
208
+ }
209
+ ]
210
+ },
211
+ {
212
+ "type": "Category",
213
+ "name": "cells",
214
+ "label": "Scalar and composite cells",
215
+ "i18n": "cellsTab",
216
+ "elements": [
217
+ {
218
+ "type": "Label",
219
+ "i18n": "cells"
220
+ },
221
+ {
222
+ "type": "Control",
223
+ "scope": "#/properties/staff",
224
+ "options": {
225
+ "table": true,
226
+ "showSortButtons": true,
227
+ "cells": {
228
+ "address": {
229
+ "summary": {
230
+ "type": "Control",
231
+ "scope": "#/properties/street",
232
+ "options": {}
233
+ },
234
+ "showEmptyButton": true,
235
+ "detail": {
236
+ "type": "VerticalLayout",
237
+ "elements": [
238
+ {
239
+ "type": "Control",
240
+ "scope": "#/properties/street"
241
+ },
242
+ {
243
+ "type": "HorizontalLayout",
244
+ "elements": [
245
+ {
246
+ "type": "Control",
247
+ "scope": "#/properties/city"
248
+ },
249
+ {
250
+ "type": "Control",
251
+ "scope": "#/properties/postalCode"
252
+ }
253
+ ]
254
+ },
255
+ {
256
+ "type": "Control",
257
+ "scope": "#/properties/country"
258
+ }
259
+ ]
260
+ }
261
+ },
262
+ "phoneNumbers": {
263
+ "summary": {
264
+ "type": "Control",
265
+ "scope": "#"
266
+ },
267
+ "detail": {
268
+ "type": "Control",
269
+ "scope": "#"
270
+ },
271
+ "showEmptyButton": true
272
+ }
273
+ },
274
+ "collapsible": true
275
+ }
276
+ },
277
+ {
278
+ "type": "Control",
279
+ "scope": "#/properties/staff",
280
+ "options": {
281
+ "variant": "ag-grid",
282
+ "height": 430,
283
+ "showSortButtons": true,
284
+ "cells": {
285
+ "address": {
286
+ "summary": {
287
+ "type": "Control",
288
+ "scope": "#/properties/street",
289
+ "options": {}
290
+ },
291
+ "showEmptyButton": true,
292
+ "detail": {
293
+ "type": "VerticalLayout",
294
+ "elements": [
295
+ {
296
+ "type": "Control",
297
+ "scope": "#/properties/street"
298
+ },
299
+ {
300
+ "type": "HorizontalLayout",
301
+ "elements": [
302
+ {
303
+ "type": "Control",
304
+ "scope": "#/properties/city"
305
+ },
306
+ {
307
+ "type": "Control",
308
+ "scope": "#/properties/postalCode"
309
+ }
310
+ ]
311
+ },
312
+ {
313
+ "type": "Control",
314
+ "scope": "#/properties/country"
315
+ }
316
+ ]
317
+ }
318
+ },
319
+ "phoneNumbers": {
320
+ "summary": {
321
+ "type": "Control",
322
+ "scope": "#"
323
+ },
324
+ "detail": {
325
+ "type": "Control",
326
+ "scope": "#"
327
+ },
328
+ "showEmptyButton": true
329
+ }
330
+ },
331
+ "agGridOptions": {
332
+ "pagination": true,
333
+ "paginationPageSize": 1,
334
+ "paginationPageSizeSelector": [
335
+ 1,
336
+ 2,
337
+ 10
338
+ ],
339
+ "columnDefs": [
340
+ {
341
+ "field": "name",
342
+ "width": 170
343
+ },
344
+ {
345
+ "field": "age",
346
+ "width": 170
347
+ },
348
+ {
349
+ "field": "role",
350
+ "width": 170
351
+ },
352
+ {
353
+ "field": "badge",
354
+ "width": 170
355
+ },
356
+ {
357
+ "field": "tenure",
358
+ "width": 170
359
+ },
360
+ {
361
+ "field": "date",
362
+ "width": 170
363
+ },
364
+ {
365
+ "field": "time",
366
+ "width": 170
367
+ },
368
+ {
369
+ "field": "dateTime",
370
+ "width": 240
371
+ },
372
+ {
373
+ "field": "active",
374
+ "width": 170,
375
+ "filter": false
376
+ },
377
+ {
378
+ "field": "address",
379
+ "width": 240,
380
+ "filter": false
381
+ },
382
+ {
383
+ "field": "phoneNumbers",
384
+ "width": 240,
385
+ "filter": false
386
+ }
387
+ ]
388
+ },
389
+ "collapsible": true
390
+ }
391
+ }
392
+ ]
393
+ },
394
+ {
395
+ "type": "Category",
396
+ "name": "bounds",
397
+ "i18n": "boundsTab",
398
+ "label": "Add, remove and bounds",
399
+ "elements": [
400
+ {
401
+ "type": "Label",
402
+ "i18n": "bounds"
403
+ },
404
+ {
405
+ "type": "Control",
406
+ "scope": "#/properties/rounds",
407
+ "options": {
408
+ "elementLabelProp": "name",
409
+ "showSortButtons": true,
410
+ "collapsible": true
411
+ }
412
+ },
413
+ {
414
+ "type": "Label",
415
+ "i18n": "disabled"
416
+ },
417
+ {
418
+ "type": "Control",
419
+ "scope": "#/properties/checklist",
420
+ "options": {
421
+ "disableAdd": true,
422
+ "disableRemove": true,
423
+ "collapsible": true
424
+ }
425
+ },
426
+ {
427
+ "type": "Label",
428
+ "i18n": "contains"
429
+ },
430
+ {
431
+ "type": "Control",
432
+ "scope": "#/properties/reviewers",
433
+ "options": {
434
+ "collapsible": true
435
+ },
436
+ "i18n": "arrayControls.reviewers"
437
+ }
438
+ ]
439
+ },
440
+ {
441
+ "type": "Category",
442
+ "name": "rowDialog",
443
+ "label": "Row and cell dialogs",
444
+ "i18n": "rowDialogTab",
445
+ "elements": [
446
+ {
447
+ "type": "Label",
448
+ "i18n": "rowDialogHelp",
449
+ "text": "Edit details opens the whole session. Editing Room opens only the complex cell. Both dialogs can be moved by their header, resized from the corner, and maximized or restored. Apply commits; Cancel discards the draft."
450
+ },
451
+ {
452
+ "type": "Control",
453
+ "scope": "#/properties/sessions",
454
+ "options": {
455
+ "table": true,
456
+ "showSortButtons": true,
457
+ "cells": {
458
+ "room": {
459
+ "summary": {
460
+ "type": "Control",
461
+ "scope": "#/properties/name",
462
+ "options": {}
463
+ },
464
+ "detail": {
465
+ "type": "VerticalLayout",
466
+ "elements": [
467
+ {
468
+ "type": "Control",
469
+ "scope": "#/properties/name",
470
+ "options": {}
471
+ },
472
+ {
473
+ "type": "Control",
474
+ "scope": "#/properties/floor",
475
+ "options": {}
476
+ }
477
+ ]
478
+ },
479
+ "dialog": {
480
+ "width": 720,
481
+ "height": "60vh",
482
+ "draggable": true,
483
+ "resizable": true,
484
+ "maximizable": true
485
+ }
486
+ }
487
+ },
488
+ "collapsible": true,
489
+ "rowDetail": {
490
+ "presentation": "dialog",
491
+ "detail": {
492
+ "type": "VerticalLayout",
493
+ "elements": [
494
+ {
495
+ "type": "Control",
496
+ "scope": "#/properties/title"
497
+ },
498
+ {
499
+ "type": "Control",
500
+ "scope": "#/properties/track"
501
+ },
502
+ {
503
+ "type": "Control",
504
+ "scope": "#/properties/minutes"
505
+ },
506
+ {
507
+ "type": "Control",
508
+ "scope": "#/properties/room"
509
+ }
510
+ ]
511
+ },
512
+ "dialog": {
513
+ "width": 900,
514
+ "height": "75vh",
515
+ "draggable": true,
516
+ "resizable": true,
517
+ "maximizable": true
518
+ }
519
+ }
520
+ }
521
+ }
522
+ ]
523
+ },
524
+ {
525
+ "type": "Category",
526
+ "name": "rowSide",
527
+ "label": "Side panel",
528
+ "i18n": "rowSideTab",
529
+ "elements": [
530
+ {
531
+ "type": "Label",
532
+ "i18n": "rowSideHelp",
533
+ "text": "Edit a session in the side panel; changes apply immediately. Room still has its own movable, resizable, maximizable cell dialog."
534
+ },
535
+ {
536
+ "type": "Control",
537
+ "scope": "#/properties/sessions",
538
+ "options": {
539
+ "table": true,
540
+ "showSortButtons": true,
541
+ "cells": {
542
+ "room": {
543
+ "summary": {
544
+ "type": "Control",
545
+ "scope": "#/properties/name",
546
+ "options": {}
547
+ },
548
+ "detail": {
549
+ "type": "VerticalLayout",
550
+ "elements": [
551
+ {
552
+ "type": "Control",
553
+ "scope": "#/properties/name",
554
+ "options": {}
555
+ },
556
+ {
557
+ "type": "Control",
558
+ "scope": "#/properties/floor",
559
+ "options": {}
560
+ }
561
+ ]
562
+ },
563
+ "dialog": {
564
+ "width": 720,
565
+ "height": "60vh",
566
+ "draggable": true,
567
+ "resizable": true,
568
+ "maximizable": true
569
+ }
570
+ }
571
+ },
572
+ "collapsible": true,
573
+ "rowDetail": {
574
+ "presentation": "panel",
575
+ "detail": {
576
+ "type": "VerticalLayout",
577
+ "elements": [
578
+ {
579
+ "type": "Control",
580
+ "scope": "#/properties/title"
581
+ },
582
+ {
583
+ "type": "Control",
584
+ "scope": "#/properties/track"
585
+ },
586
+ {
587
+ "type": "Control",
588
+ "scope": "#/properties/minutes"
589
+ },
590
+ {
591
+ "type": "Control",
592
+ "scope": "#/properties/room"
593
+ }
594
+ ]
595
+ },
596
+ "placement": "right",
597
+ "collapsed": false
598
+ }
599
+ }
600
+ }
601
+ ]
602
+ },
603
+ {
604
+ "type": "Category",
605
+ "name": "rowBottom",
606
+ "label": "Bottom panel",
607
+ "i18n": "rowBottomTab",
608
+ "elements": [
609
+ {
610
+ "type": "Label",
611
+ "i18n": "rowBottomHelp",
612
+ "text": "Edit details opens the initially collapsed bottom panel. Changes apply immediately; Room uses an independent cell dialog."
613
+ },
614
+ {
615
+ "type": "Control",
616
+ "scope": "#/properties/sessions",
617
+ "options": {
618
+ "table": true,
619
+ "showSortButtons": true,
620
+ "cells": {
621
+ "room": {
622
+ "summary": {
623
+ "type": "Control",
624
+ "scope": "#/properties/name",
625
+ "options": {}
626
+ },
627
+ "detail": {
628
+ "type": "VerticalLayout",
629
+ "elements": [
630
+ {
631
+ "type": "Control",
632
+ "scope": "#/properties/name",
633
+ "options": {}
634
+ },
635
+ {
636
+ "type": "Control",
637
+ "scope": "#/properties/floor",
638
+ "options": {}
639
+ }
640
+ ]
641
+ },
642
+ "dialog": {
643
+ "width": 720,
644
+ "height": "60vh",
645
+ "draggable": true,
646
+ "resizable": true,
647
+ "maximizable": true
648
+ }
649
+ }
650
+ },
651
+ "collapsible": true,
652
+ "rowDetail": {
653
+ "presentation": "panel",
654
+ "detail": {
655
+ "type": "VerticalLayout",
656
+ "elements": [
657
+ {
658
+ "type": "Control",
659
+ "scope": "#/properties/title"
660
+ },
661
+ {
662
+ "type": "Control",
663
+ "scope": "#/properties/track"
664
+ },
665
+ {
666
+ "type": "Control",
667
+ "scope": "#/properties/minutes"
668
+ },
669
+ {
670
+ "type": "Control",
671
+ "scope": "#/properties/room"
672
+ }
673
+ ]
674
+ },
675
+ "placement": "bottom",
676
+ "collapsed": true
677
+ }
678
+ }
679
+ }
680
+ ]
681
+ }
682
+ ]
683
+ }
684
+ ]
685
+ }
@@ -0,0 +1,11 @@
1
+ # Array detail modes
2
+
3
+ Register the trusted uischemas.json entries before rendering this example.
4
+ DEFAULT shows the ordinary table for these flat items. GENERATE (shown lowercase)
5
+ renders both fields despite a matching registered layout. REGISTERED shows only
6
+ Registered name. The fallback collection has no registry match and shows both
7
+ fields. Inline uses the supplied horizontal layout and labels. GENERATED also
8
+ shows Registered name: upstream core recognizes GENERATE for forced generation.
9
+
10
+ All controls edit separate copies of the same sample values. Inline and registered
11
+ layouts intentionally omit fields without deleting those values.