@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,1602 @@
1
+ [
2
+ {
3
+ "id": "span-gap",
4
+ "section": "6.3",
5
+ "input": {
6
+ "width": 800,
7
+ "gridColumns": 16,
8
+ "gap": 16,
9
+ "span": 8
10
+ },
11
+ "expected": {
12
+ "width": 392
13
+ }
14
+ },
15
+ {
16
+ "id": "visible-children",
17
+ "section": "6.5",
18
+ "input": {
19
+ "visible": [
20
+ true,
21
+ false,
22
+ true
23
+ ]
24
+ },
25
+ "expected": {
26
+ "participatingIndices": [
27
+ 0,
28
+ 2
29
+ ],
30
+ "gapCount": 1
31
+ }
32
+ },
33
+ {
34
+ "id": "expression-own-constructor",
35
+ "section": "9.7",
36
+ "input": {
37
+ "data": {
38
+ "constructor": "part",
39
+ "name": "Jo"
40
+ },
41
+ "expression": "data.name"
42
+ },
43
+ "expected": {
44
+ "value": "Jo"
45
+ }
46
+ },
47
+ {
48
+ "id": "url-script",
49
+ "section": "12",
50
+ "input": {
51
+ "url": "java\nscript:alert(1)"
52
+ },
53
+ "expected": {
54
+ "allowed": false
55
+ }
56
+ },
57
+ {
58
+ "id": "script-default-closed",
59
+ "section": "14.2",
60
+ "input": {
61
+ "button": {
62
+ "type": "Button",
63
+ "script": "return 1;"
64
+ },
65
+ "config": {}
66
+ },
67
+ "expected": {
68
+ "executed": false,
69
+ "diagnostic": "script.evaluationDisabled"
70
+ }
71
+ },
72
+ {
73
+ "id": "markdown-substitution",
74
+ "section": "9.4",
75
+ "input": {
76
+ "text": "Hello {name}",
77
+ "params": {
78
+ "name": "**Jo**"
79
+ },
80
+ "markup": "markdown"
81
+ },
82
+ "expected": {
83
+ "text": "Hello **Jo**",
84
+ "substitutionCreatesMarkup": false
85
+ }
86
+ },
87
+ {
88
+ "id": "outside-enum",
89
+ "section": "19",
90
+ "input": {
91
+ "schema": {
92
+ "enum": [
93
+ "A",
94
+ "B"
95
+ ]
96
+ },
97
+ "data": "C",
98
+ "interaction": "mount"
99
+ },
100
+ "expected": {
101
+ "data": "C",
102
+ "changes": 0
103
+ }
104
+ },
105
+ {
106
+ "id": "tuple-fill-prefix",
107
+ "section": "18.11",
108
+ "input": {
109
+ "schema": {
110
+ "type": "array",
111
+ "items": [
112
+ {
113
+ "type": "string"
114
+ },
115
+ {
116
+ "type": "integer"
117
+ }
118
+ ]
119
+ },
120
+ "data": [],
121
+ "edit": {
122
+ "index": 1,
123
+ "value": 30
124
+ }
125
+ },
126
+ "expected": {
127
+ "data": [
128
+ "",
129
+ 30
130
+ ],
131
+ "changes": 1
132
+ }
133
+ },
134
+ {
135
+ "id": "confirmation-complex-old",
136
+ "section": "14.3",
137
+ "input": {
138
+ "policy": "complex",
139
+ "old": {
140
+ "name": "Jo"
141
+ },
142
+ "new": ""
143
+ },
144
+ "expected": {
145
+ "confirm": true
146
+ }
147
+ },
148
+ {
149
+ "id": "array-error-boundary",
150
+ "section": "8.3",
151
+ "input": {
152
+ "container": "employees.1",
153
+ "errorPath": "employees.10.name"
154
+ },
155
+ "expected": {
156
+ "contributes": false
157
+ }
158
+ },
159
+ {
160
+ "id": "duration-unchanged",
161
+ "section": "18.18.2",
162
+ "input": {
163
+ "data": "P0W",
164
+ "actions": [
165
+ "open",
166
+ "apply"
167
+ ]
168
+ },
169
+ "expected": {
170
+ "data": "P0W",
171
+ "changes": 0
172
+ }
173
+ },
174
+ {
175
+ "id": "pending-delete",
176
+ "section": "18.4",
177
+ "input": {
178
+ "data": [
179
+ "Jo",
180
+ "Sam"
181
+ ],
182
+ "actions": [
183
+ {
184
+ "queueEdit": {
185
+ "index": 0,
186
+ "value": "Jane"
187
+ }
188
+ },
189
+ {
190
+ "deleteIndex": 0
191
+ },
192
+ "flush"
193
+ ]
194
+ },
195
+ "expected": {
196
+ "data": [
197
+ "Sam"
198
+ ]
199
+ }
200
+ },
201
+ {
202
+ "id": "dialog-cancel",
203
+ "section": "18.13",
204
+ "input": {
205
+ "data": {
206
+ "city": "Sofia"
207
+ },
208
+ "actions": [
209
+ "open",
210
+ {
211
+ "edit": {
212
+ "city": "Paris"
213
+ }
214
+ },
215
+ "cancel"
216
+ ]
217
+ },
218
+ "expected": {
219
+ "data": {
220
+ "city": "Sofia"
221
+ },
222
+ "changes": 0
223
+ }
224
+ },
225
+ {
226
+ "id": "accordion-close",
227
+ "section": "8.8",
228
+ "input": {
229
+ "openCategory": "details",
230
+ "action": "activate-details"
231
+ },
232
+ "expected": {
233
+ "openCategory": null,
234
+ "dataChanges": 0
235
+ }
236
+ },
237
+ {
238
+ "id": "port-choice-reload",
239
+ "section": "docs/implementation-pitfalls.md#p01--values-are-compared-by-json-content",
240
+ "input": {
241
+ "schema": {
242
+ "enum": [
243
+ {
244
+ "a": 1,
245
+ "b": 2
246
+ },
247
+ [
248
+ 1,
249
+ 2
250
+ ]
251
+ ]
252
+ },
253
+ "data": {
254
+ "b": 2,
255
+ "a": 1
256
+ },
257
+ "actions": [
258
+ "Reload data by parsing independent JSON."
259
+ ]
260
+ },
261
+ "expected": {
262
+ "selectedChoiceIndex": 0,
263
+ "storedValueType": "object"
264
+ }
265
+ },
266
+ {
267
+ "id": "port-literal-key",
268
+ "section": "docs/implementation-pitfalls.md#p02--property-keys-are-literal-data",
269
+ "input": {
270
+ "data": {
271
+ "legacy.key": "A",
272
+ "legacy": {
273
+ "key": "B"
274
+ },
275
+ "": "C"
276
+ },
277
+ "actions": [
278
+ "Edit the literal legacy.key property to D."
279
+ ]
280
+ },
281
+ "expected": {
282
+ "data": {
283
+ "legacy.key": "D",
284
+ "legacy": {
285
+ "key": "B"
286
+ },
287
+ "": "C"
288
+ }
289
+ }
290
+ },
291
+ {
292
+ "id": "port-pattern-intersection",
293
+ "section": "docs/implementation-pitfalls.md#p03--pattern-constraints-intersect",
294
+ "input": {
295
+ "schema": {
296
+ "type": "object",
297
+ "patternProperties": {
298
+ "^x": {
299
+ "type": "object",
300
+ "properties": {
301
+ "left": {
302
+ "type": "string"
303
+ }
304
+ }
305
+ },
306
+ "x$": {
307
+ "type": "object",
308
+ "properties": {
309
+ "right": {
310
+ "type": "integer"
311
+ }
312
+ }
313
+ }
314
+ }
315
+ },
316
+ "data": {
317
+ "x": {
318
+ "left": "a",
319
+ "right": 2
320
+ }
321
+ }
322
+ },
323
+ "expected": {
324
+ "editableFieldsAtX": [
325
+ "left",
326
+ "right"
327
+ ]
328
+ }
329
+ },
330
+ {
331
+ "id": "port-numeric-intent",
332
+ "section": "docs/implementation-pitfalls.md#p05--numeric-editor-intent-is-not-encoded-in-json",
333
+ "input": {
334
+ "schema": {
335
+ "type": [
336
+ "integer",
337
+ "number"
338
+ ]
339
+ },
340
+ "data": 2,
341
+ "actions": [
342
+ "Select Number without editing the value.",
343
+ "Enter 2.5.",
344
+ "Select Integer without editing the value."
345
+ ]
346
+ },
347
+ "expected": {
348
+ "data": 2.5,
349
+ "selectedEditor": "integer",
350
+ "localWholeNumberError": true,
351
+ "documentValid": true
352
+ }
353
+ },
354
+ {
355
+ "id": "port-branch-feedback",
356
+ "section": "docs/implementation-pitfalls.md#p06--document-validity-and-displayed-branch-feedback-differ",
357
+ "input": {
358
+ "schema": {
359
+ "anyOf": [
360
+ {
361
+ "type": "string",
362
+ "maxLength": 5
363
+ },
364
+ {
365
+ "type": "string",
366
+ "minLength": 3
367
+ }
368
+ ]
369
+ },
370
+ "data": "Longer text",
371
+ "actions": [
372
+ "Display the short-text branch.",
373
+ "Observe feedback with validateActiveBranch true.",
374
+ "Set the control option validateActiveBranch to false."
375
+ ]
376
+ },
377
+ "expected": {
378
+ "documentValidThroughout": true,
379
+ "localErrorWhenEnabled": true,
380
+ "localErrorWhenDisabled": false,
381
+ "extraBranchValidationWhenDisabled": false
382
+ }
383
+ },
384
+ {
385
+ "id": "port-summary-search",
386
+ "section": "docs/implementation-pitfalls.md#p11--summaries-are-part-of-table-behavior",
387
+ "input": {
388
+ "data": [
389
+ {
390
+ "contact": {
391
+ "city": "Boston"
392
+ }
393
+ },
394
+ {
395
+ "contact": {
396
+ "city": "Seattle"
397
+ }
398
+ }
399
+ ],
400
+ "summaryDescription": "A Label summary renders the contact city as bold Markdown, using permitted interpolation.",
401
+ "actions": [
402
+ "Filter the Contact column for Boston."
403
+ ]
404
+ },
405
+ "expected": {
406
+ "matchingRowIndices": [
407
+ 0
408
+ ],
409
+ "filterTextForFirstRow": "Boston",
410
+ "dataUnchanged": true
411
+ }
412
+ },
413
+ {
414
+ "id": "port-cell-error-placement",
415
+ "section": "docs/implementation-pitfalls.md#p08--errors-belong-to-their-data-location",
416
+ "input": {
417
+ "schema": {
418
+ "type": "array",
419
+ "items": {
420
+ "type": "object",
421
+ "properties": {
422
+ "active": {
423
+ "type": "boolean"
424
+ }
425
+ }
426
+ }
427
+ },
428
+ "data": [
429
+ {
430
+ "active": true
431
+ },
432
+ {
433
+ "active": "false"
434
+ }
435
+ ]
436
+ },
437
+ "expected": {
438
+ "invalidCell": {
439
+ "row": 1,
440
+ "property": "active"
441
+ },
442
+ "localAccessibleFeedback": true,
443
+ "containerDescendantNotice": true,
444
+ "ordinaryInlineCellHelp": false
445
+ }
446
+ },
447
+ {
448
+ "id": "template-data-subscription-replacement",
449
+ "section": "13",
450
+ "input": {
451
+ "data": {
452
+ "a.b": "literal",
453
+ "a": {
454
+ "b": "nested"
455
+ }
456
+ },
457
+ "reads": [
458
+ [
459
+ "a.b"
460
+ ],
461
+ [
462
+ "a",
463
+ "b"
464
+ ]
465
+ ],
466
+ "replacement": {
467
+ "a.b": "replaced",
468
+ "a": {
469
+ "b": "new"
470
+ }
471
+ }
472
+ },
473
+ "expected": {
474
+ "initialValues": [
475
+ "literal",
476
+ "nested"
477
+ ],
478
+ "valuesAfterReplacement": [
479
+ "replaced",
480
+ "new"
481
+ ],
482
+ "literalAndNestedKeysDistinct": true
483
+ }
484
+ },
485
+ {
486
+ "id": "template-policy-update-preserves-draft",
487
+ "section": "12, 13",
488
+ "input": {
489
+ "href": "/details",
490
+ "initialUrlPolicy": {
491
+ "allowRelative": true
492
+ },
493
+ "replacementUrlPolicy": {
494
+ "allowRelative": false
495
+ },
496
+ "unsavedInput": "draft",
497
+ "templateSourceUnchanged": true
498
+ },
499
+ "expected": {
500
+ "hrefAfterReplacement": null,
501
+ "controlRemounted": false,
502
+ "unsavedInput": "draft",
503
+ "templateStatePreserved": true
504
+ }
505
+ },
506
+ {
507
+ "id": "adornment-display-only",
508
+ "section": "18.3a",
509
+ "input": {
510
+ "data": {
511
+ "weight": 2.4
512
+ },
513
+ "options": {
514
+ "endAdornment": [
515
+ {
516
+ "kind": "text",
517
+ "text": "kg"
518
+ },
519
+ {
520
+ "kind": "icon",
521
+ "icon": "information",
522
+ "label": "Help",
523
+ "tooltip": "Unpackaged weight"
524
+ }
525
+ ]
526
+ },
527
+ "edit": {
528
+ "weight": 3.1
529
+ }
530
+ },
531
+ "expected": {
532
+ "data": {
533
+ "weight": 3.1
534
+ },
535
+ "adornmentIncludedInValue": false,
536
+ "existingInputActionsPreserved": true
537
+ }
538
+ },
539
+ {
540
+ "id": "adornment-translation-and-icon-fallback",
541
+ "section": "18.3a",
542
+ "input": {
543
+ "locale": "bg",
544
+ "options": {
545
+ "endAdornment": {
546
+ "kind": "icon",
547
+ "icon": "information",
548
+ "label": "Help",
549
+ "tooltip": "About this value",
550
+ "i18n": "weight.help"
551
+ }
552
+ },
553
+ "catalog": {
554
+ "weight.help.label": "Помощ",
555
+ "weight.help.tooltip": "За тази стойност"
556
+ },
557
+ "iconAvailable": false
558
+ },
559
+ "expected": {
560
+ "visibleFallback": "Помощ",
561
+ "accessibleName": "Помощ",
562
+ "tooltip": "За тази стойност",
563
+ "dataChanged": false
564
+ }
565
+ },
566
+ {
567
+ "id": "adornment-ordered-composition",
568
+ "section": "18.3a",
569
+ "input": {
570
+ "options": {
571
+ "startAdornment": "€",
572
+ "endAdornment": [
573
+ {
574
+ "kind": "text",
575
+ "text": "kg"
576
+ },
577
+ {
578
+ "kind": "icon",
579
+ "icon": "information",
580
+ "label": "Help"
581
+ }
582
+ ]
583
+ }
584
+ },
585
+ "expected": {
586
+ "start": [
587
+ "€"
588
+ ],
589
+ "end": [
590
+ "kg",
591
+ "information"
592
+ ],
593
+ "storedValueUnchanged": true
594
+ }
595
+ },
596
+ {
597
+ "id": "adornment-outer-edge-native-controls",
598
+ "section": "18.3a",
599
+ "input": {
600
+ "control": "date-time picker",
601
+ "nativeStart": [
602
+ "pickerIcon"
603
+ ],
604
+ "nativeEnd": [
605
+ "clearButton",
606
+ "pickerTrigger"
607
+ ],
608
+ "options": {
609
+ "startAdornment": "Due",
610
+ "endAdornment": {
611
+ "kind": "icon",
612
+ "icon": "information",
613
+ "label": "Help"
614
+ }
615
+ }
616
+ },
617
+ "expected": {
618
+ "logicalOrder": [
619
+ "Due",
620
+ "pickerIcon",
621
+ "input",
622
+ "clearButton",
623
+ "pickerTrigger",
624
+ "information"
625
+ ],
626
+ "pickerOperable": true,
627
+ "clearOperable": true,
628
+ "dataChangedByAdornment": false
629
+ }
630
+ },
631
+ {
632
+ "id": "adornment-library-slot-convention",
633
+ "section": "18.3a",
634
+ "input": {
635
+ "control": "select",
636
+ "nativeEnd": [
637
+ "clearButton",
638
+ "dropdownArrow"
639
+ ],
640
+ "options": {
641
+ "endAdornment": {
642
+ "kind": "text",
643
+ "text": "per item"
644
+ }
645
+ },
646
+ "libraryConvention": [
647
+ "input",
648
+ "clearButton",
649
+ "per item",
650
+ "dropdownArrow"
651
+ ]
652
+ },
653
+ "expected": {
654
+ "logicalOrder": [
655
+ "input",
656
+ "clearButton",
657
+ "per item",
658
+ "dropdownArrow"
659
+ ],
660
+ "nativeConventionPreserved": true,
661
+ "clearOperable": true,
662
+ "dropdownOperable": true
663
+ }
664
+ },
665
+ {
666
+ "id": "group-header-accessible-name",
667
+ "section": "8.1",
668
+ "input": {
669
+ "groupLabel": "Contact",
670
+ "header": [
671
+ {
672
+ "type": "Button",
673
+ "label": "Help"
674
+ },
675
+ {
676
+ "type": "Label",
677
+ "text": "Verified",
678
+ "i18n": "contact.heading"
679
+ },
680
+ {
681
+ "type": "Label",
682
+ "text": "Supporting text"
683
+ }
684
+ ],
685
+ "catalog": {
686
+ "contact.heading.text": "Потвърдено"
687
+ },
688
+ "locale": "bg"
689
+ },
690
+ "expected": {
691
+ "groupAccessibleName": "Потвърдено",
692
+ "groupLabelRepeatedVisually": false
693
+ }
694
+ },
695
+ {
696
+ "id": "adornment-text-like-variant-coverage",
697
+ "section": "18.3a",
698
+ "input": {
699
+ "variants": [
700
+ "time",
701
+ "duration",
702
+ "cron",
703
+ "password"
704
+ ],
705
+ "nativeActions": {
706
+ "time": [
707
+ "pickerTrigger",
708
+ "clearButton"
709
+ ],
710
+ "duration": [
711
+ "pickerTrigger",
712
+ "clearButton"
713
+ ],
714
+ "cron": [
715
+ "pickerTrigger",
716
+ "clearButton"
717
+ ],
718
+ "password": [
719
+ "revealButton",
720
+ "clearButton"
721
+ ]
722
+ },
723
+ "options": {
724
+ "startAdornment": {
725
+ "kind": "text",
726
+ "text": "Prefix"
727
+ },
728
+ "endAdornment": {
729
+ "kind": "icon",
730
+ "icon": "information",
731
+ "label": "Help"
732
+ }
733
+ }
734
+ },
735
+ "expected": {
736
+ "eachSupportedVariantKeepsNativeActions": true,
737
+ "startBeforeNativeLeadingParts": true,
738
+ "endAfterNativeTrailingPartsUnlessLibraryConvention": true,
739
+ "typedValueExcludesAdornments": true,
740
+ "passwordRevealDoesNotChangeData": true
741
+ }
742
+ },
743
+ {
744
+ "id": "adapter-operation-policy",
745
+ "section": "14",
746
+ "input": {
747
+ "button": {
748
+ "action": "save",
749
+ "paramsOmitted": true,
750
+ "handlerPending": true
751
+ },
752
+ "script": {
753
+ "body": "return this.params",
754
+ "allowScriptEvaluation": false
755
+ },
756
+ "delete": {
757
+ "catalogId": "agGrid",
758
+ "confirmation": "always",
759
+ "selectedRows": [
760
+ {
761
+ "name": "one"
762
+ },
763
+ {
764
+ "name": "two"
765
+ }
766
+ ]
767
+ }
768
+ },
769
+ "expected": {
770
+ "buttonParams": {},
771
+ "buttonBusyUntilHandlerSettles": true,
772
+ "duplicateActivationDoesNotRepeatAction": true,
773
+ "stringScriptNotExecuted": true,
774
+ "scriptDisabledDiagnostic": true,
775
+ "batchDeletePromptsOnce": true,
776
+ "cancelPreservesRows": true,
777
+ "acceptDeletesOnlySelectedRows": true
778
+ }
779
+ },
780
+ {
781
+ "id": "primitive-presence-presentation",
782
+ "section": "18.20, 19",
783
+ "input": {
784
+ "switchValues": [
785
+ {
786
+ "present": false
787
+ },
788
+ {
789
+ "present": true,
790
+ "value": null
791
+ },
792
+ {
793
+ "present": true,
794
+ "value": false
795
+ },
796
+ {
797
+ "present": true,
798
+ "value": "false"
799
+ }
800
+ ],
801
+ "nullValues": [
802
+ {
803
+ "present": false
804
+ },
805
+ {
806
+ "present": true,
807
+ "value": null
808
+ },
809
+ {
810
+ "present": true,
811
+ "value": "legacy"
812
+ }
813
+ ]
814
+ },
815
+ "expected": {
816
+ "switchStates": [
817
+ "off-with-localized-unset-description",
818
+ "off-with-localized-unset-description",
819
+ "off-without-unset-description",
820
+ "off-with-localized-invalid-description"
821
+ ],
822
+ "nullStates": [
823
+ "not-set",
824
+ "set",
825
+ "invalid"
826
+ ],
827
+ "mountDoesNotWriteData": true,
828
+ "externalReplacementRefreshesStatus": true,
829
+ "sameSemanticsInCells": true
830
+ }
831
+ },
832
+ {
833
+ "id": "styling-named-values",
834
+ "section": "9.4a",
835
+ "input": {
836
+ "uischema": {
837
+ "type": "Label",
838
+ "text": "{member} selected {plan}; {member} confirmed.",
839
+ "options": {
840
+ "interpolate": true,
841
+ "textParams": {
842
+ "member": "Morgan",
843
+ "plan": "Studio"
844
+ }
845
+ }
846
+ },
847
+ "config": {
848
+ "jsonformsExtended": {
849
+ "markup": {
850
+ "textParamSpans": true
851
+ }
852
+ }
853
+ },
854
+ "platform": "HTML"
855
+ },
856
+ "expected": {
857
+ "text": "Morgan selected Studio; Morgan confirmed.",
858
+ "parameterSpans": [
859
+ "member",
860
+ "plan",
861
+ "member"
862
+ ],
863
+ "sameTextAndAccessibilityAsDisabled": true
864
+ }
865
+ },
866
+ {
867
+ "id": "styling-switch-off",
868
+ "section": "9.4a",
869
+ "input": {
870
+ "uischema": {
871
+ "type": "Label",
872
+ "text": "{member} selected {plan}; {member} confirmed.",
873
+ "options": {
874
+ "interpolate": true,
875
+ "textParams": {
876
+ "member": "Morgan",
877
+ "plan": "Studio"
878
+ }
879
+ }
880
+ },
881
+ "settings": [
882
+ {},
883
+ {
884
+ "jsonformsExtended": {
885
+ "markup": {
886
+ "textParamSpans": false
887
+ }
888
+ }
889
+ }
890
+ ],
891
+ "platform": "HTML"
892
+ },
893
+ "expected": {
894
+ "parameterSpans": [],
895
+ "markerTracking": false,
896
+ "additionalMarkdownParse": false
897
+ }
898
+ },
899
+ {
900
+ "id": "styling-eligibility",
901
+ "section": "9.4a",
902
+ "input": {
903
+ "text": "{count} {active} {empty} {optional} {count + 1} {locale} {{count}}",
904
+ "params": {
905
+ "count": 0,
906
+ "active": false,
907
+ "empty": "",
908
+ "optional": null
909
+ },
910
+ "textParamSpans": true,
911
+ "interpolate": true,
912
+ "locale": "en"
913
+ },
914
+ "expected": {
915
+ "parameterSpans": [
916
+ "count",
917
+ "active"
918
+ ],
919
+ "spanTexts": [
920
+ "0",
921
+ "false"
922
+ ],
923
+ "absentDataDiagnostic": false,
924
+ "sameOutputAfterUnwrappingAsDisabled": true
925
+ }
926
+ },
927
+ {
928
+ "id": "styling-interpolation-off",
929
+ "section": "9.4a",
930
+ "input": {
931
+ "uischema": {
932
+ "type": "Label",
933
+ "text": "{member} selected {plan}; {member} confirmed.",
934
+ "options": {
935
+ "interpolate": false,
936
+ "textParams": {
937
+ "member": "Morgan",
938
+ "plan": "Studio"
939
+ }
940
+ }
941
+ },
942
+ "textParamSpans": true
943
+ },
944
+ "expected": {
945
+ "parameterSpans": [],
946
+ "text": "{member} selected {plan}; {member} confirmed."
947
+ }
948
+ },
949
+ {
950
+ "id": "styling-translation-order",
951
+ "section": "9.4a",
952
+ "input": {
953
+ "params": {
954
+ "member": "Morgan",
955
+ "plan": "Studio"
956
+ },
957
+ "messages": [
958
+ "{member}: {plan}",
959
+ "{plan}: {member}"
960
+ ],
961
+ "interpolate": true,
962
+ "textParamSpans": true
963
+ },
964
+ "expected": {
965
+ "parameterSpanOrders": [
966
+ [
967
+ "member",
968
+ "plan"
969
+ ],
970
+ [
971
+ "plan",
972
+ "member"
973
+ ]
974
+ ],
975
+ "namesDerivedFromDataPaths": false
976
+ }
977
+ },
978
+ {
979
+ "id": "styling-markdown-equivalence",
980
+ "section": "9.4a",
981
+ "input": {
982
+ "profiles": [
983
+ "basic",
984
+ "extended"
985
+ ],
986
+ "interpolate": true,
987
+ "textParamSpans": [
988
+ false,
989
+ true
990
+ ],
991
+ "params": {
992
+ "member": "(Morgan)",
993
+ "literal": "*[guide](javascript:alert(1))*",
994
+ "plan": "Studio",
995
+ "lines": "First\nSecond",
996
+ "private": "Member"
997
+ },
998
+ "templates": [
999
+ "**{member}**",
1000
+ "word**{member}**word",
1001
+ "{member}{plan}",
1002
+ "`{member}`",
1003
+ "{lines}",
1004
+ "{private}",
1005
+ "{literal}",
1006
+ "# {member}",
1007
+ "- {member}\n- {plan}",
1008
+ "> {member}",
1009
+ "| Member |\n| --- |\n| {member} |",
1010
+ "```\n{member}\n```"
1011
+ ]
1012
+ },
1013
+ "expected": {
1014
+ "afterUnwrappingGeneratedSpans": "Same rendered tree, text and attributes as the disabled result for every template/profile.",
1015
+ "strongSpanWhenSafe": "**{member}** contains the member span inside strong.",
1016
+ "literalCreatesLink": false,
1017
+ "originalPrivateUseCharactersPreserved": true,
1018
+ "fallback": "Use unmarked Label output when equivalence cannot be guaranteed.",
1019
+ "internalMarkersVisible": false
1020
+ }
1021
+ },
1022
+ {
1023
+ "id": "styling-markdown-urls",
1024
+ "section": "9.4a",
1025
+ "input": {
1026
+ "text": "[{member}]({url})",
1027
+ "params": {
1028
+ "member": "Morgan"
1029
+ },
1030
+ "urlValues": [
1031
+ "https://example.com/membership_a?q=1",
1032
+ "javascript:alert(1)"
1033
+ ],
1034
+ "interpolate": true,
1035
+ "markup": "markdown",
1036
+ "textParamSpans": true,
1037
+ "urlPolicy": "Default §12 policy"
1038
+ },
1039
+ "expected": {
1040
+ "safeHref": "https://example.com/membership_a?q=1",
1041
+ "unsafeHrefRefused": true,
1042
+ "spansInAttributes": false,
1043
+ "urlPolicyReceivesSameUrlAsDisabled": true,
1044
+ "sameOutputAfterUnwrappingAsDisabled": true
1045
+ }
1046
+ },
1047
+ {
1048
+ "id": "styling-part-normalization",
1049
+ "section": "5.7",
1050
+ "input": {
1051
+ "uncheckedParts": [
1052
+ " summary \"]x summary\tprominent 7notes ",
1053
+ [
1054
+ "summary"
1055
+ ],
1056
+ "",
1057
+ " \t\n",
1058
+ "bad.name 7notes"
1059
+ ]
1060
+ },
1061
+ "expected": {
1062
+ "normalizedParts": [
1063
+ "summary prominent",
1064
+ null,
1065
+ null,
1066
+ null,
1067
+ null
1068
+ ],
1069
+ "emitAttributeForNull": false,
1070
+ "inferredFromI18nNameScopeOrType": false,
1071
+ "addsRoleAriaOrBehavior": false
1072
+ }
1073
+ },
1074
+ {
1075
+ "id": "styling-part-placement",
1076
+ "section": "5.7",
1077
+ "input": {
1078
+ "platform": "HTML",
1079
+ "elements": [
1080
+ "Label",
1081
+ "Control",
1082
+ "Button",
1083
+ "nested layout",
1084
+ "registered custom element"
1085
+ ],
1086
+ "part": "summary prominent",
1087
+ "contexts": [
1088
+ "layout slot",
1089
+ "root without slot",
1090
+ "Group region without slot",
1091
+ "Category dispatch without slot"
1092
+ ],
1093
+ "hiddenChildHasPart": true
1094
+ },
1095
+ "expected": {
1096
+ "attribute": "data-part=\"summary prominent\"",
1097
+ "placementByContext": [
1098
+ "existing parent layout slot",
1099
+ null,
1100
+ null,
1101
+ null
1102
+ ],
1103
+ "tokenSelectors": [
1104
+ "[data-part~=\"summary\"]",
1105
+ "[data-part~=\"prominent\"]"
1106
+ ],
1107
+ "nestedLayoutMarkerOnItsOwnParentSlot": true,
1108
+ "additionalLayoutSpaceForHiddenChild": false,
1109
+ "builtInStyles": false
1110
+ }
1111
+ },
1112
+ {
1113
+ "id": "styling-canvas-noop",
1114
+ "section": "5.7",
1115
+ "input": {
1116
+ "platform": "Non-HTML canvas",
1117
+ "capability": "Documented no-op for both hooks",
1118
+ "uischema": {
1119
+ "type": "Label",
1120
+ "text": "{member} selected {plan}; {member} confirmed.",
1121
+ "options": {
1122
+ "interpolate": true,
1123
+ "textParams": {
1124
+ "member": "Morgan",
1125
+ "plan": "Studio"
1126
+ }
1127
+ }
1128
+ },
1129
+ "part": "summary",
1130
+ "textParamSpans": true
1131
+ },
1132
+ "expected": {
1133
+ "sameContentAccessibilityInteractionAndDataAsWithoutHooks": true,
1134
+ "domRequired": false,
1135
+ "stylingCallbackRequired": false,
1136
+ "reportsImplementedHtmlMarkers": false
1137
+ }
1138
+ },
1139
+ {
1140
+ "id": "styling-label-override-precedence",
1141
+ "section": "9.4a",
1142
+ "input": {
1143
+ "platform": "HTML",
1144
+ "text": "Membership: {plan}",
1145
+ "params": {
1146
+ "plan": "Studio"
1147
+ },
1148
+ "cases": [
1149
+ {
1150
+ "config": {},
1151
+ "options": {
1152
+ "interpolate": true
1153
+ },
1154
+ "expectedEffectiveValue": false
1155
+ },
1156
+ {
1157
+ "config": {},
1158
+ "options": {
1159
+ "interpolate": true,
1160
+ "textParamSpans": false
1161
+ },
1162
+ "expectedEffectiveValue": false
1163
+ },
1164
+ {
1165
+ "config": {},
1166
+ "options": {
1167
+ "interpolate": true,
1168
+ "textParamSpans": true
1169
+ },
1170
+ "expectedEffectiveValue": true
1171
+ },
1172
+ {
1173
+ "config": {
1174
+ "jsonformsExtended": {
1175
+ "markup": {
1176
+ "textParamSpans": false
1177
+ }
1178
+ }
1179
+ },
1180
+ "options": {
1181
+ "interpolate": true
1182
+ },
1183
+ "expectedEffectiveValue": false
1184
+ },
1185
+ {
1186
+ "config": {
1187
+ "jsonformsExtended": {
1188
+ "markup": {
1189
+ "textParamSpans": false
1190
+ }
1191
+ }
1192
+ },
1193
+ "options": {
1194
+ "interpolate": true,
1195
+ "textParamSpans": false
1196
+ },
1197
+ "expectedEffectiveValue": false
1198
+ },
1199
+ {
1200
+ "config": {
1201
+ "jsonformsExtended": {
1202
+ "markup": {
1203
+ "textParamSpans": false
1204
+ }
1205
+ }
1206
+ },
1207
+ "options": {
1208
+ "interpolate": true,
1209
+ "textParamSpans": true
1210
+ },
1211
+ "expectedEffectiveValue": true
1212
+ },
1213
+ {
1214
+ "config": {
1215
+ "jsonformsExtended": {
1216
+ "markup": {
1217
+ "textParamSpans": true
1218
+ }
1219
+ }
1220
+ },
1221
+ "options": {
1222
+ "interpolate": true
1223
+ },
1224
+ "expectedEffectiveValue": true
1225
+ },
1226
+ {
1227
+ "config": {
1228
+ "jsonformsExtended": {
1229
+ "markup": {
1230
+ "textParamSpans": true
1231
+ }
1232
+ }
1233
+ },
1234
+ "options": {
1235
+ "interpolate": true,
1236
+ "textParamSpans": false
1237
+ },
1238
+ "expectedEffectiveValue": false
1239
+ },
1240
+ {
1241
+ "config": {
1242
+ "jsonformsExtended": {
1243
+ "markup": {
1244
+ "textParamSpans": true
1245
+ }
1246
+ }
1247
+ },
1248
+ "options": {
1249
+ "interpolate": true,
1250
+ "textParamSpans": true
1251
+ },
1252
+ "expectedEffectiveValue": true
1253
+ }
1254
+ ]
1255
+ },
1256
+ "expected": {
1257
+ "resolution": "Label option, then host default, then false.",
1258
+ "parameterSpanNamesWhenEffectiveTrue": [
1259
+ "plan"
1260
+ ],
1261
+ "parameterSpansWhenEffectiveFalse": [],
1262
+ "markerTrackingWhenEffectiveFalse": false,
1263
+ "additionalMarkdownParseWhenEffectiveFalse": false,
1264
+ "sameTextAndAccessibilityInEveryCase": true,
1265
+ "hostFalseIsPermissionGate": false
1266
+ }
1267
+ },
1268
+ {
1269
+ "id": "styling-label-override-updates",
1270
+ "section": "9.4a",
1271
+ "input": {
1272
+ "platform": "HTML",
1273
+ "text": "Membership: {plan}",
1274
+ "params": {
1275
+ "plan": "Studio"
1276
+ },
1277
+ "interpolate": true,
1278
+ "steps": [
1279
+ {
1280
+ "hostDefault": false
1281
+ },
1282
+ {
1283
+ "localOverride": true
1284
+ },
1285
+ {
1286
+ "hostDefault": true
1287
+ },
1288
+ {
1289
+ "localOverride": false
1290
+ },
1291
+ {
1292
+ "removeLocalOverride": true
1293
+ },
1294
+ {
1295
+ "hostDefault": false
1296
+ }
1297
+ ],
1298
+ "parentLayoutOptions": {
1299
+ "textParamSpans": true
1300
+ }
1301
+ },
1302
+ "expected": {
1303
+ "effectiveValues": [
1304
+ false,
1305
+ true,
1306
+ true,
1307
+ false,
1308
+ true,
1309
+ false
1310
+ ],
1311
+ "parentLayoutOptionCascades": false,
1312
+ "unchangedTextFormattingUrlPolicyAccessibilityAndData": true,
1313
+ "spanRemovalDoesNotRemoveSubstitutionText": true
1314
+ }
1315
+ },
1316
+ {
1317
+ "id": "conditional-layout-business",
1318
+ "section": "Conditional fields",
1319
+ "input": {
1320
+ "schema": {
1321
+ "type": "object",
1322
+ "properties": {
1323
+ "customerType": {
1324
+ "type": "string",
1325
+ "enum": [
1326
+ "personal",
1327
+ "business"
1328
+ ]
1329
+ },
1330
+ "name": {
1331
+ "type": "string"
1332
+ },
1333
+ "purchaseOrder": {
1334
+ "type": "string"
1335
+ }
1336
+ },
1337
+ "if": {
1338
+ "properties": {
1339
+ "customerType": {
1340
+ "const": "business"
1341
+ }
1342
+ },
1343
+ "required": [
1344
+ "customerType"
1345
+ ]
1346
+ },
1347
+ "then": {
1348
+ "properties": {
1349
+ "vatNumber": {
1350
+ "type": "string",
1351
+ "minLength": 3
1352
+ }
1353
+ },
1354
+ "required": [
1355
+ "vatNumber",
1356
+ "name"
1357
+ ]
1358
+ },
1359
+ "else": {
1360
+ "properties": {
1361
+ "nickname": {
1362
+ "type": "string"
1363
+ }
1364
+ }
1365
+ },
1366
+ "dependencies": {
1367
+ "purchaseOrder": {
1368
+ "properties": {
1369
+ "billingAddress": {
1370
+ "type": "string"
1371
+ }
1372
+ },
1373
+ "required": [
1374
+ "billingAddress"
1375
+ ]
1376
+ }
1377
+ }
1378
+ },
1379
+ "uischema": {
1380
+ "type": "VerticalLayout",
1381
+ "options": {
1382
+ "conditionalFields": true
1383
+ },
1384
+ "elements": [
1385
+ {
1386
+ "type": "Control",
1387
+ "scope": "#/properties/customerType"
1388
+ },
1389
+ {
1390
+ "type": "Control",
1391
+ "scope": "#/properties/name"
1392
+ },
1393
+ {
1394
+ "type": "Control",
1395
+ "scope": "#/properties/purchaseOrder"
1396
+ },
1397
+ {
1398
+ "type": "Control",
1399
+ "scope": "#/properties/vatNumber"
1400
+ },
1401
+ {
1402
+ "type": "Control",
1403
+ "scope": "#/properties/nickname"
1404
+ }
1405
+ ]
1406
+ },
1407
+ "data": {
1408
+ "customerType": "business",
1409
+ "name": "Ada",
1410
+ "vatNumber": "VAT123",
1411
+ "nickname": "A"
1412
+ }
1413
+ },
1414
+ "expected": {
1415
+ "visibleProperties": [
1416
+ "customerType",
1417
+ "name",
1418
+ "purchaseOrder",
1419
+ "vatNumber"
1420
+ ],
1421
+ "requiredProperties": [
1422
+ "vatNumber",
1423
+ "name"
1424
+ ],
1425
+ "dataUnchanged": true,
1426
+ "originalSchemaValidation": true
1427
+ }
1428
+ },
1429
+ {
1430
+ "id": "conditional-layout-personal",
1431
+ "section": "Conditional fields",
1432
+ "input": {
1433
+ "schema": {
1434
+ "type": "object",
1435
+ "properties": {
1436
+ "customerType": {
1437
+ "type": "string",
1438
+ "enum": [
1439
+ "personal",
1440
+ "business"
1441
+ ]
1442
+ },
1443
+ "name": {
1444
+ "type": "string"
1445
+ },
1446
+ "purchaseOrder": {
1447
+ "type": "string"
1448
+ }
1449
+ },
1450
+ "if": {
1451
+ "properties": {
1452
+ "customerType": {
1453
+ "const": "business"
1454
+ }
1455
+ },
1456
+ "required": [
1457
+ "customerType"
1458
+ ]
1459
+ },
1460
+ "then": {
1461
+ "properties": {
1462
+ "vatNumber": {
1463
+ "type": "string",
1464
+ "minLength": 3
1465
+ }
1466
+ },
1467
+ "required": [
1468
+ "vatNumber",
1469
+ "name"
1470
+ ]
1471
+ },
1472
+ "else": {
1473
+ "properties": {
1474
+ "nickname": {
1475
+ "type": "string"
1476
+ }
1477
+ }
1478
+ },
1479
+ "dependencies": {
1480
+ "purchaseOrder": {
1481
+ "properties": {
1482
+ "billingAddress": {
1483
+ "type": "string"
1484
+ }
1485
+ },
1486
+ "required": [
1487
+ "billingAddress"
1488
+ ]
1489
+ }
1490
+ }
1491
+ },
1492
+ "uischema": {
1493
+ "type": "VerticalLayout",
1494
+ "options": {
1495
+ "conditionalFields": true
1496
+ },
1497
+ "elements": [
1498
+ {
1499
+ "type": "Control",
1500
+ "scope": "#/properties/customerType"
1501
+ },
1502
+ {
1503
+ "type": "Control",
1504
+ "scope": "#/properties/name"
1505
+ },
1506
+ {
1507
+ "type": "Control",
1508
+ "scope": "#/properties/purchaseOrder"
1509
+ },
1510
+ {
1511
+ "type": "Control",
1512
+ "scope": "#/properties/vatNumber"
1513
+ },
1514
+ {
1515
+ "type": "Control",
1516
+ "scope": "#/properties/nickname"
1517
+ }
1518
+ ]
1519
+ },
1520
+ "data": {
1521
+ "customerType": "personal",
1522
+ "name": "Ada",
1523
+ "vatNumber": "VAT123",
1524
+ "nickname": "A"
1525
+ }
1526
+ },
1527
+ "expected": {
1528
+ "visibleProperties": [
1529
+ "customerType",
1530
+ "name",
1531
+ "purchaseOrder",
1532
+ "nickname"
1533
+ ],
1534
+ "requiredProperties": [],
1535
+ "dataUnchanged": true,
1536
+ "originalSchemaValidation": true
1537
+ }
1538
+ },
1539
+ {
1540
+ "id": "conditional-layout-local-opt-out",
1541
+ "section": "Conditional fields",
1542
+ "input": {
1543
+ "entryType": "Group",
1544
+ "local": false,
1545
+ "global": true,
1546
+ "nestedLayouts": [
1547
+ "VerticalLayout",
1548
+ "HorizontalLayout"
1549
+ ]
1550
+ },
1551
+ "expected": {
1552
+ "projectionEnabled": false,
1553
+ "nestedLayoutsCannotReactivate": true
1554
+ }
1555
+ },
1556
+ {
1557
+ "id": "conditional-layout-object-boundaries",
1558
+ "section": "Conditional fields",
1559
+ "input": {
1560
+ "rootKind": "personal",
1561
+ "nestedKind": "business",
1562
+ "arrayItemKinds": [
1563
+ "business",
1564
+ "personal"
1565
+ ],
1566
+ "validationMode": "NoValidation"
1567
+ },
1568
+ "expected": {
1569
+ "evaluateEachObjectIndependently": true,
1570
+ "requiredMarkersFollowEachObject": true,
1571
+ "noDataMutation": true,
1572
+ "independentHostFormsAtSameRootPath": true
1573
+ }
1574
+ },
1575
+ {
1576
+ "id": "conditional-layout-placement",
1577
+ "section": "Conditional fields",
1578
+ "input": {
1579
+ "layouts": [
1580
+ "VerticalLayout",
1581
+ "HorizontalLayout",
1582
+ "Group",
1583
+ "Categorization"
1584
+ ],
1585
+ "categoryVariants": [
1586
+ "tabs",
1587
+ "stepper",
1588
+ "accordion"
1589
+ ],
1590
+ "baseFieldRequiredInThen": true,
1591
+ "retainedInactiveValues": true
1592
+ },
1593
+ "expected": {
1594
+ "preserveAuthoredOrderAndContainers": true,
1595
+ "baseFieldAlwaysVisible": true,
1596
+ "asteriskFollowsActiveRequiredUnion": true,
1597
+ "insertUnplacedBranchFields": false,
1598
+ "uiRulesStillApply": true,
1599
+ "preserveEmptyContainers": true
1600
+ }
1601
+ }
1602
+ ]