view-contracts 0.5.11 → 0.5.13
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/cli-contract.yaml +1 -1
- package/dist/preview.mjs +148 -140
- package/dist/preview.mjs.map +4 -4
- package/dist/types/renderers/compose/lowering/lowerToCompose.d.ts +2 -1
- package/dist/types/renderers/react/dataAttributes.d.ts +2 -0
- package/dist/types/renderers/swiftui/lowering/lowerToSwiftUI.d.ts +2 -1
- package/dist/types/src/compiler/jsxToIr.d.ts +2 -1
- package/dist/types/src/compiler/viewPartial.d.ts +3 -1
- package/dist/types/src/config.d.ts +1 -3
- package/dist/types/src/dsl/types.d.ts +2 -3
- package/dist/types/src/ir/types.d.ts +8 -0
- package/dist/types/src/lib/projectPath.d.ts +2 -0
- package/dist/types/src/lib/rendererPaths.d.ts +2 -0
- package/dist/types/src/renderer/native/optionalGate.d.ts +33 -0
- package/dist/types/src/scaffold/standalone.d.ts +2 -2
- package/dist/types/src/schema/dsl-catalog.d.ts +1 -0
- package/dist/types/src/schema/loadSchema.d.ts +7 -0
- package/dist/types/src/schema/types.d.ts +31 -0
- package/dist/types/src/validate/validateViewProps.d.ts +0 -3
- package/dist/view-contracts.bundle.mjs +214 -200
- package/dist/view-contracts.bundle.mjs.map +4 -4
- package/docs/cli-reference.md +1 -1
- package/package.json +1 -1
- package/renderers/compose/README.md +1 -0
- package/renderers/compose/lowering/lowerToCompose.ts +54 -25
- package/renderers/compose/renderComponents.ts +6 -18
- package/renderers/react/dataAttributes.ts +4 -0
- package/renderers/react/lowering/lowerToJsx.ts +45 -11
- package/renderers/react/preview/vocabulary.tsx +7 -3
- package/renderers/react/renderComponents.ts +2 -8
- package/renderers/swiftui/README.md +1 -0
- package/renderers/swiftui/lowering/lowerToSwiftUI.ts +34 -13
- package/renderers/swiftui/renderComponents.ts +6 -18
- package/spec/ui-dsl.schema.json +263 -0
- package/src/dsl/types.ts +2 -3
- package/renderers/react/templates/handlers.ts.hbs +0 -4
package/spec/ui-dsl.schema.json
CHANGED
|
@@ -106,6 +106,11 @@
|
|
|
106
106
|
"url",
|
|
107
107
|
"tel"
|
|
108
108
|
],
|
|
109
|
+
"buttonType": [
|
|
110
|
+
"button",
|
|
111
|
+
"submit",
|
|
112
|
+
"reset"
|
|
113
|
+
],
|
|
109
114
|
"clip": [
|
|
110
115
|
"none",
|
|
111
116
|
"bounds",
|
|
@@ -118,6 +123,16 @@
|
|
|
118
123
|
"x-category": "identity",
|
|
119
124
|
"description": "Stable identifier for tests and diff updates"
|
|
120
125
|
},
|
|
126
|
+
"data": {
|
|
127
|
+
"type": "object",
|
|
128
|
+
"x-category": "identity",
|
|
129
|
+
"description": "Custom data attributes { key: value }; web only (data-<kebab-key>), not rendered on native"
|
|
130
|
+
},
|
|
131
|
+
"title": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"x-category": "identity",
|
|
134
|
+
"description": "Screen title; accessible name of the page"
|
|
135
|
+
},
|
|
121
136
|
"role": {
|
|
122
137
|
"type": "string",
|
|
123
138
|
"x-category": "identity",
|
|
@@ -358,6 +373,22 @@
|
|
|
358
373
|
"x-category": "identity",
|
|
359
374
|
"description": "Form field name (for FormData) or icon token in the renderer icon set"
|
|
360
375
|
},
|
|
376
|
+
"action": {
|
|
377
|
+
"type": "action",
|
|
378
|
+
"x-category": "interaction",
|
|
379
|
+
"description": "Action descriptor { name, params? }; the element's click/submit action (takes precedence over onClick/onSubmit)"
|
|
380
|
+
},
|
|
381
|
+
"href": {
|
|
382
|
+
"type": "string",
|
|
383
|
+
"x-category": "interaction",
|
|
384
|
+
"description": "Navigation target URL"
|
|
385
|
+
},
|
|
386
|
+
"type": {
|
|
387
|
+
"type": "string",
|
|
388
|
+
"x-category": "interaction",
|
|
389
|
+
"enum": "buttonType",
|
|
390
|
+
"description": "Button behavior inside a Form; default button"
|
|
391
|
+
},
|
|
361
392
|
"onClick": {
|
|
362
393
|
"type": "action",
|
|
363
394
|
"x-category": "interaction",
|
|
@@ -408,6 +439,16 @@
|
|
|
408
439
|
"type": "string",
|
|
409
440
|
"x-category": "data"
|
|
410
441
|
},
|
|
442
|
+
"rows": {
|
|
443
|
+
"type": "number",
|
|
444
|
+
"x-category": "size",
|
|
445
|
+
"description": "Visible text lines"
|
|
446
|
+
},
|
|
447
|
+
"wrap": {
|
|
448
|
+
"type": "boolean",
|
|
449
|
+
"x-category": "layout",
|
|
450
|
+
"description": "Wrap children onto new lines when they overflow"
|
|
451
|
+
},
|
|
411
452
|
"options": {
|
|
412
453
|
"type": "array",
|
|
413
454
|
"x-category": "data",
|
|
@@ -508,6 +549,12 @@
|
|
|
508
549
|
"id": {
|
|
509
550
|
"$ref": "#/properties/id"
|
|
510
551
|
},
|
|
552
|
+
"data": {
|
|
553
|
+
"$ref": "#/properties/data"
|
|
554
|
+
},
|
|
555
|
+
"visible": {
|
|
556
|
+
"$ref": "#/properties/visible"
|
|
557
|
+
},
|
|
511
558
|
"padding": {
|
|
512
559
|
"$ref": "#/properties/padding"
|
|
513
560
|
},
|
|
@@ -536,6 +583,12 @@
|
|
|
536
583
|
"id": {
|
|
537
584
|
"$ref": "#/properties/id"
|
|
538
585
|
},
|
|
586
|
+
"title": {
|
|
587
|
+
"$ref": "#/properties/title"
|
|
588
|
+
},
|
|
589
|
+
"data": {
|
|
590
|
+
"$ref": "#/properties/data"
|
|
591
|
+
},
|
|
539
592
|
"visible": {
|
|
540
593
|
"$ref": "#/properties/visible"
|
|
541
594
|
},
|
|
@@ -567,6 +620,12 @@
|
|
|
567
620
|
"id": {
|
|
568
621
|
"$ref": "#/properties/id"
|
|
569
622
|
},
|
|
623
|
+
"data": {
|
|
624
|
+
"$ref": "#/properties/data"
|
|
625
|
+
},
|
|
626
|
+
"visible": {
|
|
627
|
+
"$ref": "#/properties/visible"
|
|
628
|
+
},
|
|
570
629
|
"padding": {
|
|
571
630
|
"$ref": "#/properties/padding"
|
|
572
631
|
},
|
|
@@ -591,9 +650,18 @@
|
|
|
591
650
|
"id": {
|
|
592
651
|
"$ref": "#/properties/id"
|
|
593
652
|
},
|
|
653
|
+
"data": {
|
|
654
|
+
"$ref": "#/properties/data"
|
|
655
|
+
},
|
|
594
656
|
"visible": {
|
|
595
657
|
"$ref": "#/properties/visible"
|
|
596
658
|
},
|
|
659
|
+
"role": {
|
|
660
|
+
"$ref": "#/properties/role"
|
|
661
|
+
},
|
|
662
|
+
"label": {
|
|
663
|
+
"$ref": "#/properties/label"
|
|
664
|
+
},
|
|
597
665
|
"width": {
|
|
598
666
|
"$ref": "#/properties/width"
|
|
599
667
|
},
|
|
@@ -676,12 +744,24 @@
|
|
|
676
744
|
"id": {
|
|
677
745
|
"$ref": "#/properties/id"
|
|
678
746
|
},
|
|
747
|
+
"data": {
|
|
748
|
+
"$ref": "#/properties/data"
|
|
749
|
+
},
|
|
679
750
|
"visible": {
|
|
680
751
|
"$ref": "#/properties/visible"
|
|
681
752
|
},
|
|
753
|
+
"role": {
|
|
754
|
+
"$ref": "#/properties/role"
|
|
755
|
+
},
|
|
756
|
+
"label": {
|
|
757
|
+
"$ref": "#/properties/label"
|
|
758
|
+
},
|
|
682
759
|
"gap": {
|
|
683
760
|
"$ref": "#/properties/gap"
|
|
684
761
|
},
|
|
762
|
+
"wrap": {
|
|
763
|
+
"$ref": "#/properties/wrap"
|
|
764
|
+
},
|
|
685
765
|
"align": {
|
|
686
766
|
"$ref": "#/properties/align"
|
|
687
767
|
},
|
|
@@ -725,9 +805,18 @@
|
|
|
725
805
|
"id": {
|
|
726
806
|
"$ref": "#/properties/id"
|
|
727
807
|
},
|
|
808
|
+
"data": {
|
|
809
|
+
"$ref": "#/properties/data"
|
|
810
|
+
},
|
|
728
811
|
"visible": {
|
|
729
812
|
"$ref": "#/properties/visible"
|
|
730
813
|
},
|
|
814
|
+
"role": {
|
|
815
|
+
"$ref": "#/properties/role"
|
|
816
|
+
},
|
|
817
|
+
"label": {
|
|
818
|
+
"$ref": "#/properties/label"
|
|
819
|
+
},
|
|
731
820
|
"gap": {
|
|
732
821
|
"$ref": "#/properties/gap"
|
|
733
822
|
},
|
|
@@ -774,9 +863,18 @@
|
|
|
774
863
|
"id": {
|
|
775
864
|
"$ref": "#/properties/id"
|
|
776
865
|
},
|
|
866
|
+
"data": {
|
|
867
|
+
"$ref": "#/properties/data"
|
|
868
|
+
},
|
|
777
869
|
"visible": {
|
|
778
870
|
"$ref": "#/properties/visible"
|
|
779
871
|
},
|
|
872
|
+
"role": {
|
|
873
|
+
"$ref": "#/properties/role"
|
|
874
|
+
},
|
|
875
|
+
"label": {
|
|
876
|
+
"$ref": "#/properties/label"
|
|
877
|
+
},
|
|
780
878
|
"gap": {
|
|
781
879
|
"$ref": "#/properties/gap"
|
|
782
880
|
},
|
|
@@ -812,6 +910,12 @@
|
|
|
812
910
|
"id": {
|
|
813
911
|
"$ref": "#/properties/id"
|
|
814
912
|
},
|
|
913
|
+
"data": {
|
|
914
|
+
"$ref": "#/properties/data"
|
|
915
|
+
},
|
|
916
|
+
"visible": {
|
|
917
|
+
"$ref": "#/properties/visible"
|
|
918
|
+
},
|
|
815
919
|
"width": {
|
|
816
920
|
"$ref": "#/properties/width"
|
|
817
921
|
},
|
|
@@ -837,6 +941,12 @@
|
|
|
837
941
|
"id": {
|
|
838
942
|
"$ref": "#/properties/id"
|
|
839
943
|
},
|
|
944
|
+
"data": {
|
|
945
|
+
"$ref": "#/properties/data"
|
|
946
|
+
},
|
|
947
|
+
"visible": {
|
|
948
|
+
"$ref": "#/properties/visible"
|
|
949
|
+
},
|
|
840
950
|
"axis": {
|
|
841
951
|
"$ref": "#/properties/axis"
|
|
842
952
|
},
|
|
@@ -856,6 +966,12 @@
|
|
|
856
966
|
"id": {
|
|
857
967
|
"$ref": "#/properties/id"
|
|
858
968
|
},
|
|
969
|
+
"data": {
|
|
970
|
+
"$ref": "#/properties/data"
|
|
971
|
+
},
|
|
972
|
+
"visible": {
|
|
973
|
+
"$ref": "#/properties/visible"
|
|
974
|
+
},
|
|
859
975
|
"axis": {
|
|
860
976
|
"$ref": "#/properties/axis"
|
|
861
977
|
},
|
|
@@ -893,6 +1009,9 @@
|
|
|
893
1009
|
"id": {
|
|
894
1010
|
"$ref": "#/properties/id"
|
|
895
1011
|
},
|
|
1012
|
+
"data": {
|
|
1013
|
+
"$ref": "#/properties/data"
|
|
1014
|
+
},
|
|
896
1015
|
"gap": {
|
|
897
1016
|
"$ref": "#/properties/gap"
|
|
898
1017
|
},
|
|
@@ -924,6 +1043,9 @@
|
|
|
924
1043
|
"id": {
|
|
925
1044
|
"$ref": "#/properties/id"
|
|
926
1045
|
},
|
|
1046
|
+
"data": {
|
|
1047
|
+
"$ref": "#/properties/data"
|
|
1048
|
+
},
|
|
927
1049
|
"selected": {
|
|
928
1050
|
"$ref": "#/properties/selected"
|
|
929
1051
|
},
|
|
@@ -955,6 +1077,9 @@
|
|
|
955
1077
|
"id": {
|
|
956
1078
|
"$ref": "#/properties/id"
|
|
957
1079
|
},
|
|
1080
|
+
"data": {
|
|
1081
|
+
"$ref": "#/properties/data"
|
|
1082
|
+
},
|
|
958
1083
|
"visible": {
|
|
959
1084
|
"$ref": "#/properties/visible"
|
|
960
1085
|
},
|
|
@@ -1019,12 +1144,21 @@
|
|
|
1019
1144
|
"id": {
|
|
1020
1145
|
"$ref": "#/properties/id"
|
|
1021
1146
|
},
|
|
1147
|
+
"data": {
|
|
1148
|
+
"$ref": "#/properties/data"
|
|
1149
|
+
},
|
|
1022
1150
|
"visible": {
|
|
1023
1151
|
"$ref": "#/properties/visible"
|
|
1024
1152
|
},
|
|
1153
|
+
"action": {
|
|
1154
|
+
"$ref": "#/properties/action"
|
|
1155
|
+
},
|
|
1025
1156
|
"onClick": {
|
|
1026
1157
|
"$ref": "#/properties/onClick"
|
|
1027
1158
|
},
|
|
1159
|
+
"href": {
|
|
1160
|
+
"$ref": "#/properties/href"
|
|
1161
|
+
},
|
|
1028
1162
|
"label": {
|
|
1029
1163
|
"$ref": "#/properties/label"
|
|
1030
1164
|
},
|
|
@@ -1050,6 +1184,9 @@
|
|
|
1050
1184
|
"id": {
|
|
1051
1185
|
"$ref": "#/properties/id"
|
|
1052
1186
|
},
|
|
1187
|
+
"data": {
|
|
1188
|
+
"$ref": "#/properties/data"
|
|
1189
|
+
},
|
|
1053
1190
|
"visible": {
|
|
1054
1191
|
"$ref": "#/properties/visible"
|
|
1055
1192
|
},
|
|
@@ -1090,6 +1227,9 @@
|
|
|
1090
1227
|
"id": {
|
|
1091
1228
|
"$ref": "#/properties/id"
|
|
1092
1229
|
},
|
|
1230
|
+
"data": {
|
|
1231
|
+
"$ref": "#/properties/data"
|
|
1232
|
+
},
|
|
1093
1233
|
"visible": {
|
|
1094
1234
|
"$ref": "#/properties/visible"
|
|
1095
1235
|
},
|
|
@@ -1121,15 +1261,24 @@
|
|
|
1121
1261
|
"id": {
|
|
1122
1262
|
"$ref": "#/properties/id"
|
|
1123
1263
|
},
|
|
1264
|
+
"data": {
|
|
1265
|
+
"$ref": "#/properties/data"
|
|
1266
|
+
},
|
|
1124
1267
|
"visible": {
|
|
1125
1268
|
"$ref": "#/properties/visible"
|
|
1126
1269
|
},
|
|
1127
1270
|
"enabled": {
|
|
1128
1271
|
"$ref": "#/properties/enabled"
|
|
1129
1272
|
},
|
|
1273
|
+
"action": {
|
|
1274
|
+
"$ref": "#/properties/action"
|
|
1275
|
+
},
|
|
1130
1276
|
"onClick": {
|
|
1131
1277
|
"$ref": "#/properties/onClick"
|
|
1132
1278
|
},
|
|
1279
|
+
"type": {
|
|
1280
|
+
"$ref": "#/properties/type"
|
|
1281
|
+
},
|
|
1133
1282
|
"label": {
|
|
1134
1283
|
"$ref": "#/properties/label"
|
|
1135
1284
|
},
|
|
@@ -1184,15 +1333,24 @@
|
|
|
1184
1333
|
"id": {
|
|
1185
1334
|
"$ref": "#/properties/id"
|
|
1186
1335
|
},
|
|
1336
|
+
"data": {
|
|
1337
|
+
"$ref": "#/properties/data"
|
|
1338
|
+
},
|
|
1187
1339
|
"visible": {
|
|
1188
1340
|
"$ref": "#/properties/visible"
|
|
1189
1341
|
},
|
|
1190
1342
|
"enabled": {
|
|
1191
1343
|
"$ref": "#/properties/enabled"
|
|
1192
1344
|
},
|
|
1345
|
+
"action": {
|
|
1346
|
+
"$ref": "#/properties/action"
|
|
1347
|
+
},
|
|
1193
1348
|
"onClick": {
|
|
1194
1349
|
"$ref": "#/properties/onClick"
|
|
1195
1350
|
},
|
|
1351
|
+
"type": {
|
|
1352
|
+
"$ref": "#/properties/type"
|
|
1353
|
+
},
|
|
1196
1354
|
"label": {
|
|
1197
1355
|
"$ref": "#/properties/label"
|
|
1198
1356
|
},
|
|
@@ -1227,6 +1385,9 @@
|
|
|
1227
1385
|
"id": {
|
|
1228
1386
|
"$ref": "#/properties/id"
|
|
1229
1387
|
},
|
|
1388
|
+
"data": {
|
|
1389
|
+
"$ref": "#/properties/data"
|
|
1390
|
+
},
|
|
1230
1391
|
"visible": {
|
|
1231
1392
|
"$ref": "#/properties/visible"
|
|
1232
1393
|
},
|
|
@@ -1318,6 +1479,9 @@
|
|
|
1318
1479
|
"id": {
|
|
1319
1480
|
"$ref": "#/properties/id"
|
|
1320
1481
|
},
|
|
1482
|
+
"data": {
|
|
1483
|
+
"$ref": "#/properties/data"
|
|
1484
|
+
},
|
|
1321
1485
|
"visible": {
|
|
1322
1486
|
"$ref": "#/properties/visible"
|
|
1323
1487
|
},
|
|
@@ -1360,6 +1524,9 @@
|
|
|
1360
1524
|
"minHeight": {
|
|
1361
1525
|
"$ref": "#/properties/minHeight"
|
|
1362
1526
|
},
|
|
1527
|
+
"rows": {
|
|
1528
|
+
"$ref": "#/properties/rows"
|
|
1529
|
+
},
|
|
1363
1530
|
"label": {
|
|
1364
1531
|
"$ref": "#/properties/label"
|
|
1365
1532
|
},
|
|
@@ -1400,6 +1567,9 @@
|
|
|
1400
1567
|
"id": {
|
|
1401
1568
|
"$ref": "#/properties/id"
|
|
1402
1569
|
},
|
|
1570
|
+
"data": {
|
|
1571
|
+
"$ref": "#/properties/data"
|
|
1572
|
+
},
|
|
1403
1573
|
"visible": {
|
|
1404
1574
|
"$ref": "#/properties/visible"
|
|
1405
1575
|
},
|
|
@@ -1476,6 +1646,9 @@
|
|
|
1476
1646
|
"id": {
|
|
1477
1647
|
"$ref": "#/properties/id"
|
|
1478
1648
|
},
|
|
1649
|
+
"data": {
|
|
1650
|
+
"$ref": "#/properties/data"
|
|
1651
|
+
},
|
|
1479
1652
|
"visible": {
|
|
1480
1653
|
"$ref": "#/properties/visible"
|
|
1481
1654
|
},
|
|
@@ -1491,6 +1664,9 @@
|
|
|
1491
1664
|
"binding": {
|
|
1492
1665
|
"$ref": "#/properties/binding"
|
|
1493
1666
|
},
|
|
1667
|
+
"name": {
|
|
1668
|
+
"$ref": "#/properties/name"
|
|
1669
|
+
},
|
|
1494
1670
|
"label": {
|
|
1495
1671
|
"$ref": "#/properties/label"
|
|
1496
1672
|
},
|
|
@@ -1514,6 +1690,9 @@
|
|
|
1514
1690
|
"id": {
|
|
1515
1691
|
"$ref": "#/properties/id"
|
|
1516
1692
|
},
|
|
1693
|
+
"data": {
|
|
1694
|
+
"$ref": "#/properties/data"
|
|
1695
|
+
},
|
|
1517
1696
|
"visible": {
|
|
1518
1697
|
"$ref": "#/properties/visible"
|
|
1519
1698
|
},
|
|
@@ -1526,6 +1705,9 @@
|
|
|
1526
1705
|
"binding": {
|
|
1527
1706
|
"$ref": "#/properties/binding"
|
|
1528
1707
|
},
|
|
1708
|
+
"name": {
|
|
1709
|
+
"$ref": "#/properties/name"
|
|
1710
|
+
},
|
|
1529
1711
|
"label": {
|
|
1530
1712
|
"$ref": "#/properties/label"
|
|
1531
1713
|
},
|
|
@@ -1551,6 +1733,9 @@
|
|
|
1551
1733
|
"id": {
|
|
1552
1734
|
"$ref": "#/properties/id"
|
|
1553
1735
|
},
|
|
1736
|
+
"data": {
|
|
1737
|
+
"$ref": "#/properties/data"
|
|
1738
|
+
},
|
|
1554
1739
|
"visible": {
|
|
1555
1740
|
"$ref": "#/properties/visible"
|
|
1556
1741
|
},
|
|
@@ -1563,6 +1748,9 @@
|
|
|
1563
1748
|
"binding": {
|
|
1564
1749
|
"$ref": "#/properties/binding"
|
|
1565
1750
|
},
|
|
1751
|
+
"name": {
|
|
1752
|
+
"$ref": "#/properties/name"
|
|
1753
|
+
},
|
|
1566
1754
|
"label": {
|
|
1567
1755
|
"$ref": "#/properties/label"
|
|
1568
1756
|
},
|
|
@@ -1585,12 +1773,24 @@
|
|
|
1585
1773
|
"id": {
|
|
1586
1774
|
"$ref": "#/properties/id"
|
|
1587
1775
|
},
|
|
1776
|
+
"data": {
|
|
1777
|
+
"$ref": "#/properties/data"
|
|
1778
|
+
},
|
|
1588
1779
|
"visible": {
|
|
1589
1780
|
"$ref": "#/properties/visible"
|
|
1590
1781
|
},
|
|
1782
|
+
"role": {
|
|
1783
|
+
"$ref": "#/properties/role"
|
|
1784
|
+
},
|
|
1785
|
+
"label": {
|
|
1786
|
+
"$ref": "#/properties/label"
|
|
1787
|
+
},
|
|
1591
1788
|
"gap": {
|
|
1592
1789
|
"$ref": "#/properties/gap"
|
|
1593
1790
|
},
|
|
1791
|
+
"action": {
|
|
1792
|
+
"$ref": "#/properties/action"
|
|
1793
|
+
},
|
|
1594
1794
|
"onSubmit": {
|
|
1595
1795
|
"$ref": "#/properties/onSubmit"
|
|
1596
1796
|
},
|
|
@@ -1610,6 +1810,9 @@
|
|
|
1610
1810
|
"id": {
|
|
1611
1811
|
"$ref": "#/properties/id"
|
|
1612
1812
|
},
|
|
1813
|
+
"data": {
|
|
1814
|
+
"$ref": "#/properties/data"
|
|
1815
|
+
},
|
|
1613
1816
|
"visible": {
|
|
1614
1817
|
"$ref": "#/properties/visible"
|
|
1615
1818
|
},
|
|
@@ -1645,6 +1848,9 @@
|
|
|
1645
1848
|
"id": {
|
|
1646
1849
|
"$ref": "#/properties/id"
|
|
1647
1850
|
},
|
|
1851
|
+
"data": {
|
|
1852
|
+
"$ref": "#/properties/data"
|
|
1853
|
+
},
|
|
1648
1854
|
"visible": {
|
|
1649
1855
|
"$ref": "#/properties/visible"
|
|
1650
1856
|
},
|
|
@@ -1675,6 +1881,9 @@
|
|
|
1675
1881
|
"id": {
|
|
1676
1882
|
"$ref": "#/properties/id"
|
|
1677
1883
|
},
|
|
1884
|
+
"data": {
|
|
1885
|
+
"$ref": "#/properties/data"
|
|
1886
|
+
},
|
|
1678
1887
|
"visible": {
|
|
1679
1888
|
"$ref": "#/properties/visible"
|
|
1680
1889
|
},
|
|
@@ -1698,6 +1907,9 @@
|
|
|
1698
1907
|
"id": {
|
|
1699
1908
|
"$ref": "#/properties/id"
|
|
1700
1909
|
},
|
|
1910
|
+
"data": {
|
|
1911
|
+
"$ref": "#/properties/data"
|
|
1912
|
+
},
|
|
1701
1913
|
"visible": {
|
|
1702
1914
|
"$ref": "#/properties/visible"
|
|
1703
1915
|
},
|
|
@@ -1721,6 +1933,9 @@
|
|
|
1721
1933
|
"id": {
|
|
1722
1934
|
"$ref": "#/properties/id"
|
|
1723
1935
|
},
|
|
1936
|
+
"data": {
|
|
1937
|
+
"$ref": "#/properties/data"
|
|
1938
|
+
},
|
|
1724
1939
|
"visible": {
|
|
1725
1940
|
"$ref": "#/properties/visible"
|
|
1726
1941
|
},
|
|
@@ -1743,6 +1958,9 @@
|
|
|
1743
1958
|
"id": {
|
|
1744
1959
|
"$ref": "#/properties/id"
|
|
1745
1960
|
},
|
|
1961
|
+
"data": {
|
|
1962
|
+
"$ref": "#/properties/data"
|
|
1963
|
+
},
|
|
1746
1964
|
"visible": {
|
|
1747
1965
|
"$ref": "#/properties/visible"
|
|
1748
1966
|
},
|
|
@@ -1765,9 +1983,15 @@
|
|
|
1765
1983
|
"id": {
|
|
1766
1984
|
"$ref": "#/properties/id"
|
|
1767
1985
|
},
|
|
1986
|
+
"data": {
|
|
1987
|
+
"$ref": "#/properties/data"
|
|
1988
|
+
},
|
|
1768
1989
|
"visible": {
|
|
1769
1990
|
"$ref": "#/properties/visible"
|
|
1770
1991
|
},
|
|
1992
|
+
"role": {
|
|
1993
|
+
"$ref": "#/properties/role"
|
|
1994
|
+
},
|
|
1771
1995
|
"variant": {
|
|
1772
1996
|
"$ref": "#/properties/variant"
|
|
1773
1997
|
}
|
|
@@ -1784,6 +2008,9 @@
|
|
|
1784
2008
|
"id": {
|
|
1785
2009
|
"$ref": "#/properties/id"
|
|
1786
2010
|
},
|
|
2011
|
+
"data": {
|
|
2012
|
+
"$ref": "#/properties/data"
|
|
2013
|
+
},
|
|
1787
2014
|
"visible": {
|
|
1788
2015
|
"$ref": "#/properties/visible"
|
|
1789
2016
|
},
|
|
@@ -1822,6 +2049,15 @@
|
|
|
1822
2049
|
"x-tier": "core",
|
|
1823
2050
|
"x-category": "data",
|
|
1824
2051
|
"properties": {
|
|
2052
|
+
"id": {
|
|
2053
|
+
"$ref": "#/properties/id"
|
|
2054
|
+
},
|
|
2055
|
+
"data": {
|
|
2056
|
+
"$ref": "#/properties/data"
|
|
2057
|
+
},
|
|
2058
|
+
"visible": {
|
|
2059
|
+
"$ref": "#/properties/visible"
|
|
2060
|
+
},
|
|
1825
2061
|
"height": {
|
|
1826
2062
|
"$ref": "#/properties/height"
|
|
1827
2063
|
},
|
|
@@ -1853,6 +2089,15 @@
|
|
|
1853
2089
|
"x-tier": "core",
|
|
1854
2090
|
"x-category": "data",
|
|
1855
2091
|
"properties": {
|
|
2092
|
+
"id": {
|
|
2093
|
+
"$ref": "#/properties/id"
|
|
2094
|
+
},
|
|
2095
|
+
"data": {
|
|
2096
|
+
"$ref": "#/properties/data"
|
|
2097
|
+
},
|
|
2098
|
+
"visible": {
|
|
2099
|
+
"$ref": "#/properties/visible"
|
|
2100
|
+
},
|
|
1856
2101
|
"label": {
|
|
1857
2102
|
"$ref": "#/properties/label"
|
|
1858
2103
|
},
|
|
@@ -1896,6 +2141,15 @@
|
|
|
1896
2141
|
"x-tier": "core",
|
|
1897
2142
|
"x-category": "data",
|
|
1898
2143
|
"properties": {
|
|
2144
|
+
"id": {
|
|
2145
|
+
"$ref": "#/properties/id"
|
|
2146
|
+
},
|
|
2147
|
+
"data": {
|
|
2148
|
+
"$ref": "#/properties/data"
|
|
2149
|
+
},
|
|
2150
|
+
"visible": {
|
|
2151
|
+
"$ref": "#/properties/visible"
|
|
2152
|
+
},
|
|
1899
2153
|
"each": {
|
|
1900
2154
|
"$ref": "#/properties/each"
|
|
1901
2155
|
},
|
|
@@ -1927,6 +2181,15 @@
|
|
|
1927
2181
|
"x-tier": "core",
|
|
1928
2182
|
"x-category": "data",
|
|
1929
2183
|
"properties": {
|
|
2184
|
+
"id": {
|
|
2185
|
+
"$ref": "#/properties/id"
|
|
2186
|
+
},
|
|
2187
|
+
"data": {
|
|
2188
|
+
"$ref": "#/properties/data"
|
|
2189
|
+
},
|
|
2190
|
+
"visible": {
|
|
2191
|
+
"$ref": "#/properties/visible"
|
|
2192
|
+
},
|
|
1930
2193
|
"width": {
|
|
1931
2194
|
"$ref": "#/properties/width"
|
|
1932
2195
|
},
|
package/src/dsl/types.ts
CHANGED
|
@@ -31,10 +31,9 @@ export type FieldSize = 'sm' | 'md' | 'lg';
|
|
|
31
31
|
*/
|
|
32
32
|
export interface CommonProps {
|
|
33
33
|
id?: string;
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
/** Custom data attributes; web only (`data-<kebab-key>`). */
|
|
35
|
+
data?: Record<string, string | number | boolean>;
|
|
36
36
|
children?: ReactNode;
|
|
37
|
-
hidden?: boolean;
|
|
38
37
|
width?: number;
|
|
39
38
|
minWidth?: number;
|
|
40
39
|
maxWidth?: number;
|