@chobantonov/jsonforms-extended-spec 0.2.0 → 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 (31) hide show
  1. package/conformance/authoring.json +511 -0
  2. package/conformance/behavior.json +875 -4
  3. package/conformance/config-consumption.json +13 -2
  4. package/docs/conditional-fields.md +44 -2
  5. package/docs/implementation-guide.md +56 -3
  6. package/docs/implementation-pitfalls.md +167 -1
  7. package/docs/spec.md +156 -7
  8. package/docs/todo.md +17 -0
  9. package/examples/README.md +8 -2
  10. package/examples/additional-errors/README.md +7 -0
  11. package/examples/additional-properties/README.md +15 -0
  12. package/examples/color-control/README.md +4 -1
  13. package/examples/conditional-fields/README.md +11 -3
  14. package/examples/conditional-fields/translations.json +4 -2
  15. package/examples/conditional-fields/uischema.json +67 -7
  16. package/examples/index.js +2 -2
  17. package/examples/label-interpolation/README.md +41 -0
  18. package/examples/label-interpolation/config.json +8 -2
  19. package/examples/label-interpolation/uischema.json +6 -2
  20. package/package.json +1 -1
  21. package/schemas/README.md +8 -3
  22. package/schemas/jsonforms-config.schema.json +1 -1
  23. package/schemas/jsonforms-extended-config.schema.json +5 -0
  24. package/schemas/jsonforms-extended-uischema.schema.json +10 -1
  25. package/schemas/jsonforms-uischema.schema.json +14 -1
  26. package/typescript/README.md +8 -2
  27. package/typescript/lib/authoring/forSchema.d.ts +10 -1
  28. package/typescript/src/authoring/forSchema.ts +10 -1
  29. package/typescript/test/schemaContract.test.ts +12 -0
  30. package/typescript/test/typedAuthoring.test.ts +12 -1
  31. package/typescript/test/typedAuthoringCoverage.test.ts +33 -0
@@ -668,11 +668,23 @@
668
668
  "input": {
669
669
  "groupLabel": "Contact",
670
670
  "header": [
671
- { "type": "Button", "label": "Help" },
672
- { "type": "Label", "text": "Verified", "i18n": "contact.heading" },
673
- { "type": "Label", "text": "Supporting text" }
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
+ }
674
684
  ],
675
- "catalog": { "contact.heading.text": "Потвърдено" },
685
+ "catalog": {
686
+ "contact.heading.text": "Потвърдено"
687
+ },
676
688
  "locale": "bg"
677
689
  },
678
690
  "expected": {
@@ -727,5 +739,864 @@
727
739
  "typedValueExcludesAdornments": true,
728
740
  "passwordRevealDoesNotChangeData": true
729
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
+ }
730
1601
  }
731
1602
  ]