@genesislcap/foundation-forms 14.116.1 → 14.117.1-alpha-7cac6ae.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.
- package/README.md +6 -6
- package/dist/custom-elements.json +198 -198
- package/dist/dts/jsonforms/renderers/StringControlRenderer.d.ts.map +1 -1
- package/dist/dts/types.d.ts +165 -13
- package/dist/dts/types.d.ts.map +1 -1
- package/dist/esm/jsonforms/renderers/StringControlRenderer.js +30 -15
- package/dist/foundation-forms.api.json +290 -25
- package/dist/foundation-forms.d.ts +185 -25
- package/docs/api/foundation-forms.arrayrendereroptions.md +17 -0
- package/docs/api/foundation-forms.categorizationrendereroptions.md +17 -0
- package/docs/api/foundation-forms.connectedrenderersoptions.md +20 -0
- package/docs/api/foundation-forms.grouprendereroptions.md +15 -0
- package/docs/api/foundation-forms.md +13 -5
- package/docs/api/foundation-forms.standardrendereroptions.md +19 -0
- package/docs/api/foundation-forms.stepperorientationoptions.md +17 -0
- package/docs/api/foundation-forms.stepperorientationtype.md +1 -0
- package/docs/api/foundation-forms.stepperrendereroptions.md +15 -0
- package/docs/api/foundation-forms.stringrendereroptions.md +16 -0
- package/docs/api/foundation-forms.uischema.md +3 -2
- package/docs/api/foundation-forms.uischemaelement.md +1 -0
- package/docs/api/foundation-forms.uischemaelementoptions.md +3 -19
- package/docs/api/foundation-forms.uischemaelementtype.md +2 -1
- package/docs/api-report.md +55 -26
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -356,7 +356,7 @@ const arrayUISchema = {
|
|
|
356
356
|
type: "VerticalLayout",
|
|
357
357
|
elements: [
|
|
358
358
|
{
|
|
359
|
-
type: "
|
|
359
|
+
type: "Control",
|
|
360
360
|
scope: "#/properties/users",
|
|
361
361
|
options: {
|
|
362
362
|
childUiSchema: {
|
|
@@ -421,7 +421,7 @@ const categoryUISchema = {
|
|
|
421
421
|
type: "Categorization",
|
|
422
422
|
elements: [
|
|
423
423
|
{
|
|
424
|
-
type: "
|
|
424
|
+
type: "Control",
|
|
425
425
|
scope: "#/properties/basic",
|
|
426
426
|
label: "Personal information",
|
|
427
427
|
options: {
|
|
@@ -443,7 +443,7 @@ const categoryUISchema = {
|
|
|
443
443
|
},
|
|
444
444
|
},
|
|
445
445
|
{
|
|
446
|
-
type: "
|
|
446
|
+
type: "Control",
|
|
447
447
|
label: "Address",
|
|
448
448
|
scope: "#/properties/address",
|
|
449
449
|
options: {
|
|
@@ -540,7 +540,7 @@ const uiSchemaStepper = {
|
|
|
540
540
|
type: 'Stepper',
|
|
541
541
|
elements: [
|
|
542
542
|
{
|
|
543
|
-
type: '
|
|
543
|
+
type: 'Control',
|
|
544
544
|
scope: '#/properties/person',
|
|
545
545
|
label: 'Entity',
|
|
546
546
|
options: {
|
|
@@ -575,7 +575,7 @@ const uiSchemaStepper = {
|
|
|
575
575
|
},
|
|
576
576
|
},
|
|
577
577
|
{
|
|
578
|
-
type: '
|
|
578
|
+
type: 'Control',
|
|
579
579
|
label: 'Doc',
|
|
580
580
|
scope: '#/properties/address',
|
|
581
581
|
options: {
|
|
@@ -610,7 +610,7 @@ const uiSchemaStepper = {
|
|
|
610
610
|
},
|
|
611
611
|
},
|
|
612
612
|
{
|
|
613
|
-
type: '
|
|
613
|
+
type: 'Control',
|
|
614
614
|
label: 'Primary doc',
|
|
615
615
|
scope: '#/properties/vegetarianOptions',
|
|
616
616
|
options: {
|
|
@@ -1023,6 +1023,204 @@
|
|
|
1023
1023
|
}
|
|
1024
1024
|
]
|
|
1025
1025
|
},
|
|
1026
|
+
{
|
|
1027
|
+
"kind": "javascript-module",
|
|
1028
|
+
"path": "src/jsonforms/testers/isDate.ts",
|
|
1029
|
+
"declarations": [
|
|
1030
|
+
{
|
|
1031
|
+
"kind": "variable",
|
|
1032
|
+
"name": "isOneOfDate"
|
|
1033
|
+
}
|
|
1034
|
+
],
|
|
1035
|
+
"exports": [
|
|
1036
|
+
{
|
|
1037
|
+
"kind": "js",
|
|
1038
|
+
"name": "isOneOfDate",
|
|
1039
|
+
"declaration": {
|
|
1040
|
+
"name": "isOneOfDate",
|
|
1041
|
+
"module": "src/jsonforms/testers/isDate.ts"
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
]
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
"kind": "javascript-module",
|
|
1048
|
+
"path": "src/jsonforms/testers/isInvisible.ts",
|
|
1049
|
+
"declarations": [
|
|
1050
|
+
{
|
|
1051
|
+
"kind": "function",
|
|
1052
|
+
"name": "isInvisible",
|
|
1053
|
+
"return": {
|
|
1054
|
+
"type": {
|
|
1055
|
+
"text": "boolean"
|
|
1056
|
+
}
|
|
1057
|
+
},
|
|
1058
|
+
"parameters": [
|
|
1059
|
+
{
|
|
1060
|
+
"name": "uischema",
|
|
1061
|
+
"type": {
|
|
1062
|
+
"text": "UISchemaElement"
|
|
1063
|
+
}
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
"name": "schema",
|
|
1067
|
+
"type": {
|
|
1068
|
+
"text": "JsonSchema"
|
|
1069
|
+
}
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
"name": "context",
|
|
1073
|
+
"type": {
|
|
1074
|
+
"text": "TesterContext"
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
]
|
|
1078
|
+
}
|
|
1079
|
+
],
|
|
1080
|
+
"exports": [
|
|
1081
|
+
{
|
|
1082
|
+
"kind": "js",
|
|
1083
|
+
"name": "isInvisible",
|
|
1084
|
+
"declaration": {
|
|
1085
|
+
"name": "isInvisible",
|
|
1086
|
+
"module": "src/jsonforms/testers/isInvisible.ts"
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
]
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
"kind": "javascript-module",
|
|
1093
|
+
"path": "src/jsonforms/testers/isLayoutArray.ts",
|
|
1094
|
+
"declarations": [
|
|
1095
|
+
{
|
|
1096
|
+
"kind": "variable",
|
|
1097
|
+
"name": "isLayoutArray"
|
|
1098
|
+
}
|
|
1099
|
+
],
|
|
1100
|
+
"exports": [
|
|
1101
|
+
{
|
|
1102
|
+
"kind": "js",
|
|
1103
|
+
"name": "isLayoutArray",
|
|
1104
|
+
"declaration": {
|
|
1105
|
+
"name": "isLayoutArray",
|
|
1106
|
+
"module": "src/jsonforms/testers/isLayoutArray.ts"
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
]
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
"kind": "javascript-module",
|
|
1113
|
+
"path": "src/jsonforms/testers/isOneOfBoolean.ts",
|
|
1114
|
+
"declarations": [
|
|
1115
|
+
{
|
|
1116
|
+
"kind": "variable",
|
|
1117
|
+
"name": "isOneOfBoolean"
|
|
1118
|
+
}
|
|
1119
|
+
],
|
|
1120
|
+
"exports": [
|
|
1121
|
+
{
|
|
1122
|
+
"kind": "js",
|
|
1123
|
+
"name": "isOneOfBoolean",
|
|
1124
|
+
"declaration": {
|
|
1125
|
+
"name": "isOneOfBoolean",
|
|
1126
|
+
"module": "src/jsonforms/testers/isOneOfBoolean.ts"
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
]
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
"kind": "javascript-module",
|
|
1133
|
+
"path": "src/jsonforms/testers/isOneOfEnum.ts",
|
|
1134
|
+
"declarations": [
|
|
1135
|
+
{
|
|
1136
|
+
"kind": "variable",
|
|
1137
|
+
"name": "isOneOfEnum"
|
|
1138
|
+
}
|
|
1139
|
+
],
|
|
1140
|
+
"exports": [
|
|
1141
|
+
{
|
|
1142
|
+
"kind": "js",
|
|
1143
|
+
"name": "isOneOfEnum",
|
|
1144
|
+
"declaration": {
|
|
1145
|
+
"name": "isOneOfEnum",
|
|
1146
|
+
"module": "src/jsonforms/testers/isOneOfEnum.ts"
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
]
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
"kind": "javascript-module",
|
|
1153
|
+
"path": "src/jsonforms/testers/isOneOfNumber.ts",
|
|
1154
|
+
"declarations": [
|
|
1155
|
+
{
|
|
1156
|
+
"kind": "variable",
|
|
1157
|
+
"name": "isOneOfNumber"
|
|
1158
|
+
}
|
|
1159
|
+
],
|
|
1160
|
+
"exports": [
|
|
1161
|
+
{
|
|
1162
|
+
"kind": "js",
|
|
1163
|
+
"name": "isOneOfNumber",
|
|
1164
|
+
"declaration": {
|
|
1165
|
+
"name": "isOneOfNumber",
|
|
1166
|
+
"module": "src/jsonforms/testers/isOneOfNumber.ts"
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
]
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
"kind": "javascript-module",
|
|
1173
|
+
"path": "src/jsonforms/testers/isOneOfOptionMultiselect.ts",
|
|
1174
|
+
"declarations": [
|
|
1175
|
+
{
|
|
1176
|
+
"kind": "variable",
|
|
1177
|
+
"name": "isOneOfOptionMultiselect"
|
|
1178
|
+
}
|
|
1179
|
+
],
|
|
1180
|
+
"exports": [
|
|
1181
|
+
{
|
|
1182
|
+
"kind": "js",
|
|
1183
|
+
"name": "isOneOfOptionMultiselect",
|
|
1184
|
+
"declaration": {
|
|
1185
|
+
"name": "isOneOfOptionMultiselect",
|
|
1186
|
+
"module": "src/jsonforms/testers/isOneOfOptionMultiselect.ts"
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
]
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
"kind": "javascript-module",
|
|
1193
|
+
"path": "src/jsonforms/testers/optionIs.ts",
|
|
1194
|
+
"declarations": [
|
|
1195
|
+
{
|
|
1196
|
+
"kind": "function",
|
|
1197
|
+
"name": "optionIs",
|
|
1198
|
+
"return": {
|
|
1199
|
+
"type": {
|
|
1200
|
+
"text": "Tester"
|
|
1201
|
+
}
|
|
1202
|
+
},
|
|
1203
|
+
"parameters": [
|
|
1204
|
+
{
|
|
1205
|
+
"name": "optionName",
|
|
1206
|
+
"type": {
|
|
1207
|
+
"text": "string"
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
]
|
|
1211
|
+
}
|
|
1212
|
+
],
|
|
1213
|
+
"exports": [
|
|
1214
|
+
{
|
|
1215
|
+
"kind": "js",
|
|
1216
|
+
"name": "optionIs",
|
|
1217
|
+
"declaration": {
|
|
1218
|
+
"name": "optionIs",
|
|
1219
|
+
"module": "src/jsonforms/testers/optionIs.ts"
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
]
|
|
1223
|
+
},
|
|
1026
1224
|
{
|
|
1027
1225
|
"kind": "javascript-module",
|
|
1028
1226
|
"path": "src/jsonforms/renderers/ArrayListWrapperRenderer.ts",
|
|
@@ -2416,204 +2614,6 @@
|
|
|
2416
2614
|
}
|
|
2417
2615
|
}
|
|
2418
2616
|
]
|
|
2419
|
-
},
|
|
2420
|
-
{
|
|
2421
|
-
"kind": "javascript-module",
|
|
2422
|
-
"path": "src/jsonforms/testers/isDate.ts",
|
|
2423
|
-
"declarations": [
|
|
2424
|
-
{
|
|
2425
|
-
"kind": "variable",
|
|
2426
|
-
"name": "isOneOfDate"
|
|
2427
|
-
}
|
|
2428
|
-
],
|
|
2429
|
-
"exports": [
|
|
2430
|
-
{
|
|
2431
|
-
"kind": "js",
|
|
2432
|
-
"name": "isOneOfDate",
|
|
2433
|
-
"declaration": {
|
|
2434
|
-
"name": "isOneOfDate",
|
|
2435
|
-
"module": "src/jsonforms/testers/isDate.ts"
|
|
2436
|
-
}
|
|
2437
|
-
}
|
|
2438
|
-
]
|
|
2439
|
-
},
|
|
2440
|
-
{
|
|
2441
|
-
"kind": "javascript-module",
|
|
2442
|
-
"path": "src/jsonforms/testers/isInvisible.ts",
|
|
2443
|
-
"declarations": [
|
|
2444
|
-
{
|
|
2445
|
-
"kind": "function",
|
|
2446
|
-
"name": "isInvisible",
|
|
2447
|
-
"return": {
|
|
2448
|
-
"type": {
|
|
2449
|
-
"text": "boolean"
|
|
2450
|
-
}
|
|
2451
|
-
},
|
|
2452
|
-
"parameters": [
|
|
2453
|
-
{
|
|
2454
|
-
"name": "uischema",
|
|
2455
|
-
"type": {
|
|
2456
|
-
"text": "UISchemaElement"
|
|
2457
|
-
}
|
|
2458
|
-
},
|
|
2459
|
-
{
|
|
2460
|
-
"name": "schema",
|
|
2461
|
-
"type": {
|
|
2462
|
-
"text": "JsonSchema"
|
|
2463
|
-
}
|
|
2464
|
-
},
|
|
2465
|
-
{
|
|
2466
|
-
"name": "context",
|
|
2467
|
-
"type": {
|
|
2468
|
-
"text": "TesterContext"
|
|
2469
|
-
}
|
|
2470
|
-
}
|
|
2471
|
-
]
|
|
2472
|
-
}
|
|
2473
|
-
],
|
|
2474
|
-
"exports": [
|
|
2475
|
-
{
|
|
2476
|
-
"kind": "js",
|
|
2477
|
-
"name": "isInvisible",
|
|
2478
|
-
"declaration": {
|
|
2479
|
-
"name": "isInvisible",
|
|
2480
|
-
"module": "src/jsonforms/testers/isInvisible.ts"
|
|
2481
|
-
}
|
|
2482
|
-
}
|
|
2483
|
-
]
|
|
2484
|
-
},
|
|
2485
|
-
{
|
|
2486
|
-
"kind": "javascript-module",
|
|
2487
|
-
"path": "src/jsonforms/testers/isLayoutArray.ts",
|
|
2488
|
-
"declarations": [
|
|
2489
|
-
{
|
|
2490
|
-
"kind": "variable",
|
|
2491
|
-
"name": "isLayoutArray"
|
|
2492
|
-
}
|
|
2493
|
-
],
|
|
2494
|
-
"exports": [
|
|
2495
|
-
{
|
|
2496
|
-
"kind": "js",
|
|
2497
|
-
"name": "isLayoutArray",
|
|
2498
|
-
"declaration": {
|
|
2499
|
-
"name": "isLayoutArray",
|
|
2500
|
-
"module": "src/jsonforms/testers/isLayoutArray.ts"
|
|
2501
|
-
}
|
|
2502
|
-
}
|
|
2503
|
-
]
|
|
2504
|
-
},
|
|
2505
|
-
{
|
|
2506
|
-
"kind": "javascript-module",
|
|
2507
|
-
"path": "src/jsonforms/testers/isOneOfBoolean.ts",
|
|
2508
|
-
"declarations": [
|
|
2509
|
-
{
|
|
2510
|
-
"kind": "variable",
|
|
2511
|
-
"name": "isOneOfBoolean"
|
|
2512
|
-
}
|
|
2513
|
-
],
|
|
2514
|
-
"exports": [
|
|
2515
|
-
{
|
|
2516
|
-
"kind": "js",
|
|
2517
|
-
"name": "isOneOfBoolean",
|
|
2518
|
-
"declaration": {
|
|
2519
|
-
"name": "isOneOfBoolean",
|
|
2520
|
-
"module": "src/jsonforms/testers/isOneOfBoolean.ts"
|
|
2521
|
-
}
|
|
2522
|
-
}
|
|
2523
|
-
]
|
|
2524
|
-
},
|
|
2525
|
-
{
|
|
2526
|
-
"kind": "javascript-module",
|
|
2527
|
-
"path": "src/jsonforms/testers/isOneOfEnum.ts",
|
|
2528
|
-
"declarations": [
|
|
2529
|
-
{
|
|
2530
|
-
"kind": "variable",
|
|
2531
|
-
"name": "isOneOfEnum"
|
|
2532
|
-
}
|
|
2533
|
-
],
|
|
2534
|
-
"exports": [
|
|
2535
|
-
{
|
|
2536
|
-
"kind": "js",
|
|
2537
|
-
"name": "isOneOfEnum",
|
|
2538
|
-
"declaration": {
|
|
2539
|
-
"name": "isOneOfEnum",
|
|
2540
|
-
"module": "src/jsonforms/testers/isOneOfEnum.ts"
|
|
2541
|
-
}
|
|
2542
|
-
}
|
|
2543
|
-
]
|
|
2544
|
-
},
|
|
2545
|
-
{
|
|
2546
|
-
"kind": "javascript-module",
|
|
2547
|
-
"path": "src/jsonforms/testers/isOneOfNumber.ts",
|
|
2548
|
-
"declarations": [
|
|
2549
|
-
{
|
|
2550
|
-
"kind": "variable",
|
|
2551
|
-
"name": "isOneOfNumber"
|
|
2552
|
-
}
|
|
2553
|
-
],
|
|
2554
|
-
"exports": [
|
|
2555
|
-
{
|
|
2556
|
-
"kind": "js",
|
|
2557
|
-
"name": "isOneOfNumber",
|
|
2558
|
-
"declaration": {
|
|
2559
|
-
"name": "isOneOfNumber",
|
|
2560
|
-
"module": "src/jsonforms/testers/isOneOfNumber.ts"
|
|
2561
|
-
}
|
|
2562
|
-
}
|
|
2563
|
-
]
|
|
2564
|
-
},
|
|
2565
|
-
{
|
|
2566
|
-
"kind": "javascript-module",
|
|
2567
|
-
"path": "src/jsonforms/testers/isOneOfOptionMultiselect.ts",
|
|
2568
|
-
"declarations": [
|
|
2569
|
-
{
|
|
2570
|
-
"kind": "variable",
|
|
2571
|
-
"name": "isOneOfOptionMultiselect"
|
|
2572
|
-
}
|
|
2573
|
-
],
|
|
2574
|
-
"exports": [
|
|
2575
|
-
{
|
|
2576
|
-
"kind": "js",
|
|
2577
|
-
"name": "isOneOfOptionMultiselect",
|
|
2578
|
-
"declaration": {
|
|
2579
|
-
"name": "isOneOfOptionMultiselect",
|
|
2580
|
-
"module": "src/jsonforms/testers/isOneOfOptionMultiselect.ts"
|
|
2581
|
-
}
|
|
2582
|
-
}
|
|
2583
|
-
]
|
|
2584
|
-
},
|
|
2585
|
-
{
|
|
2586
|
-
"kind": "javascript-module",
|
|
2587
|
-
"path": "src/jsonforms/testers/optionIs.ts",
|
|
2588
|
-
"declarations": [
|
|
2589
|
-
{
|
|
2590
|
-
"kind": "function",
|
|
2591
|
-
"name": "optionIs",
|
|
2592
|
-
"return": {
|
|
2593
|
-
"type": {
|
|
2594
|
-
"text": "Tester"
|
|
2595
|
-
}
|
|
2596
|
-
},
|
|
2597
|
-
"parameters": [
|
|
2598
|
-
{
|
|
2599
|
-
"name": "optionName",
|
|
2600
|
-
"type": {
|
|
2601
|
-
"text": "string"
|
|
2602
|
-
}
|
|
2603
|
-
}
|
|
2604
|
-
]
|
|
2605
|
-
}
|
|
2606
|
-
],
|
|
2607
|
-
"exports": [
|
|
2608
|
-
{
|
|
2609
|
-
"kind": "js",
|
|
2610
|
-
"name": "optionIs",
|
|
2611
|
-
"declaration": {
|
|
2612
|
-
"name": "optionIs",
|
|
2613
|
-
"module": "src/jsonforms/testers/optionIs.ts"
|
|
2614
|
-
}
|
|
2615
|
-
}
|
|
2616
|
-
]
|
|
2617
2617
|
}
|
|
2618
2618
|
]
|
|
2619
2619
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StringControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/StringControlRenderer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StringControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/StringControlRenderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AASvD,eAAO,MAAM,gCAAgC,YAAY,MAAM,0EAsC9D,CAAC;AACF,eAAO,MAAM,6BAA6B,uEAEzC,CAAC"}
|
package/dist/dts/types.d.ts
CHANGED
|
@@ -3,43 +3,195 @@ import { JsonFormsState, OwnPropsOfControl, RankedTester, StatePropsOfControl }
|
|
|
3
3
|
import { ViewTemplate } from '@microsoft/fast-element';
|
|
4
4
|
import { ErrorObject } from 'ajv';
|
|
5
5
|
import { DispatchRenderer } from './jsonforms/renderers/dispatch-renderer';
|
|
6
|
-
/**
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
/**
|
|
7
|
+
* The layouts and control types, which allow you to customize the arrangement of forms.
|
|
8
|
+
* @public
|
|
9
|
+
* */
|
|
10
|
+
export type UiSchemaElementType = 'Control' | 'VerticalLayout' | 'LayoutVertical2Columns' | 'Categorization' | 'Group' | 'Stepper' | 'HorizontalLayout';
|
|
11
|
+
/**
|
|
12
|
+
* Available orientation for stepper renderer.
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
9
15
|
export type StepperOrientationType = 'vertical' | 'horizontal';
|
|
10
|
-
/**
|
|
11
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Available configuration options for connected combobox/multiselect.
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export type ConnectedRenderersOptions = {
|
|
21
|
+
/**
|
|
22
|
+
* Activates the async search by changing the criteria based on the value from the search-bar.
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
12
25
|
async?: boolean;
|
|
13
|
-
|
|
26
|
+
/**
|
|
27
|
+
* The name of the target Data Server query or Request Server requestReply.
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
14
30
|
allOptionsResourceName?: string;
|
|
31
|
+
/**
|
|
32
|
+
* A property that is set to configure the resource to which combobox/multiselect is connected.
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
15
35
|
datasourceConfig?: DatasourceOptions;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Specifies which field should be used as underlying data used when changing selection.
|
|
38
|
+
* @public
|
|
39
|
+
*/
|
|
19
40
|
valueField?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Field used to display label for the component.
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
20
45
|
labelField?: string;
|
|
21
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Property to which we can provide the data to be used instead of data from the server.
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
22
50
|
data?: any[];
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Configuration options available for array renderer.
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
export type ArrayRendererOptions = {
|
|
57
|
+
/**
|
|
58
|
+
* ChildUiSchema allows you to pass a UiSchema for a particular element,
|
|
59
|
+
* which can then be multiplied many times by the renderer.
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
23
62
|
childUiSchema?: UiSchema;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Orientation options available for stepper renderer.
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
export type StepperOrientationOptions = {
|
|
69
|
+
/**
|
|
70
|
+
* Configuration options available for the stepper renderer which set the renderer horizontally or vertically.
|
|
71
|
+
* @public
|
|
72
|
+
*/
|
|
73
|
+
orientation?: StepperOrientationType;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Configuration options available for categorization renderer.
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
export type CategorizationRendererOptions = {
|
|
80
|
+
/**
|
|
81
|
+
* childElements allows you to pass the UiSchema array in which the renderers groups will be located
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
24
84
|
childElements?: UiSchema[];
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Configuration options available for group renderer.
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
export type GroupRendererOptions = CategorizationRendererOptions;
|
|
91
|
+
/**
|
|
92
|
+
* Configuration options available for stepper renderer.
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
export type StepperRendererOptions = CategorizationRendererOptions;
|
|
96
|
+
/**
|
|
97
|
+
* Configuration options available for string renderer.
|
|
98
|
+
* @public
|
|
99
|
+
*/
|
|
100
|
+
export type StringRendererOptions = {
|
|
101
|
+
/**
|
|
102
|
+
* Changes the type attribute in the string renderer from text to password.
|
|
103
|
+
* @public
|
|
104
|
+
*/
|
|
105
|
+
isPassword?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Setting this property enables text-area instead of text-field.
|
|
108
|
+
* @public
|
|
109
|
+
*/
|
|
110
|
+
textarea?: boolean;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Standard configuration options available for all renderers.
|
|
114
|
+
* @public
|
|
115
|
+
*/
|
|
116
|
+
export type StandardRendererOptions = {
|
|
117
|
+
/**
|
|
118
|
+
* Setting this property allows you to hide the renderer.
|
|
119
|
+
* @public
|
|
120
|
+
*/
|
|
121
|
+
hidden?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Setting this property enables client-side validation.
|
|
124
|
+
* @public
|
|
125
|
+
*/
|
|
126
|
+
validateFn?: (data: any, path: string, label: string) => ErrorObject[];
|
|
25
127
|
i18n?: {
|
|
26
128
|
[key: string]: any;
|
|
27
129
|
};
|
|
28
130
|
};
|
|
29
|
-
/**
|
|
131
|
+
/**
|
|
132
|
+
* All configuration options that are available.
|
|
133
|
+
* @public
|
|
134
|
+
*/
|
|
135
|
+
export type UiSchemaElementOptions = ConnectedRenderersOptions | ArrayRendererOptions | CategorizationRendererOptions | GroupRendererOptions | StepperRendererOptions | StringRendererOptions | StandardRendererOptions;
|
|
136
|
+
/**
|
|
137
|
+
* A UiSchemaElement that displays property values in a user interface element.
|
|
138
|
+
* @public
|
|
139
|
+
*/
|
|
30
140
|
export type UiSchemaElement = {
|
|
141
|
+
/**
|
|
142
|
+
* The layouts and control types, which allow you to customize the arrangement of forms.
|
|
143
|
+
* @public
|
|
144
|
+
* */
|
|
31
145
|
type: UiSchemaElementType;
|
|
146
|
+
/**
|
|
147
|
+
* The mandatory scope property, which expects a JSON schema reference value, defines to which property of the data the control should be bound to.
|
|
148
|
+
* @public
|
|
149
|
+
*/
|
|
32
150
|
scope: string;
|
|
151
|
+
/**
|
|
152
|
+
* By default, controls use the name of property they point to as a label.
|
|
153
|
+
* Setting this property allows you to change the label.
|
|
154
|
+
* @public
|
|
155
|
+
*/
|
|
33
156
|
label?: string;
|
|
157
|
+
/**
|
|
158
|
+
* Setting this property allows you to change the placeholder in input renderers.
|
|
159
|
+
* @public
|
|
160
|
+
*/
|
|
34
161
|
placeholder?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Optional attribute options that determine how the control is rendered.
|
|
164
|
+
* @public
|
|
165
|
+
*/
|
|
35
166
|
options?: UiSchemaElementOptions;
|
|
36
167
|
};
|
|
37
|
-
/**
|
|
168
|
+
/**
|
|
169
|
+
* The UI schema, which is passed to JSON Forms, describes the general layout of a form and is just a regular JSON object.
|
|
170
|
+
* It describes the form by means of different UI schema elements, which can often be categorized into either Controls or Layouts.
|
|
171
|
+
* @public
|
|
172
|
+
*/
|
|
38
173
|
export type UiSchema = {
|
|
174
|
+
/**
|
|
175
|
+
* The layouts and control types, which allow you to customize the arrangement of forms.
|
|
176
|
+
* @public
|
|
177
|
+
* */
|
|
39
178
|
type: UiSchemaElementType;
|
|
179
|
+
/**
|
|
180
|
+
* All layouts need to declare an elements property which contains the children which are to be arranged by the layout.
|
|
181
|
+
* It is expected to be an array of UI Schema elements, e.g. controls or other layouts.
|
|
182
|
+
* @public
|
|
183
|
+
*/
|
|
40
184
|
elements: UiSchemaElement[];
|
|
185
|
+
/**
|
|
186
|
+
* Allows changing the design-system for renderers.
|
|
187
|
+
* @public
|
|
188
|
+
*/
|
|
41
189
|
dsPrefix?: string;
|
|
42
|
-
|
|
190
|
+
/**
|
|
191
|
+
* Options for changing the orientation for the stepper renderer.
|
|
192
|
+
* @public
|
|
193
|
+
*/
|
|
194
|
+
options?: StepperOrientationOptions;
|
|
43
195
|
};
|
|
44
196
|
/** @public */
|
|
45
197
|
export type RendererEntry = {
|
package/dist/dts/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAE3E
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,yBAA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