@asteby/metacore-genui 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -6
- package/dist/diagram.d.ts +34 -0
- package/dist/diagram.d.ts.map +1 -0
- package/dist/diagram.js +103 -0
- package/dist/diagram.js.map +1 -0
- package/dist/generated/genui-v2-schema.d.ts +387 -30
- package/dist/generated/genui-v2-schema.d.ts.map +1 -1
- package/dist/generated/genui-v2-schema.js +511 -32
- package/dist/generated/genui-v2-schema.js.map +1 -1
- package/dist/generated/genui-v2.d.ts +346 -2
- package/dist/generated/genui-v2.d.ts.map +1 -1
- package/dist/generative-ui.d.ts +11 -1
- package/dist/generative-ui.d.ts.map +1 -1
- package/dist/generative-ui.js +3 -3
- package/dist/generative-ui.js.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/map-points.d.ts +31 -0
- package/dist/map-points.d.ts.map +1 -0
- package/dist/map-points.js +60 -0
- package/dist/map-points.js.map +1 -0
- package/dist/markdown.d.ts +13 -0
- package/dist/markdown.d.ts.map +1 -0
- package/dist/markdown.js +63 -0
- package/dist/markdown.js.map +1 -0
- package/dist/metric.d.ts +12 -0
- package/dist/metric.d.ts.map +1 -0
- package/dist/metric.js +80 -0
- package/dist/metric.js.map +1 -0
- package/dist/registry.d.ts +69 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +49 -0
- package/dist/registry.js.map +1 -0
- package/dist/render-v2.d.ts +23 -0
- package/dist/render-v2.d.ts.map +1 -0
- package/dist/render-v2.js +166 -0
- package/dist/render-v2.js.map +1 -0
- package/dist/validate-v2.d.ts.map +1 -1
- package/dist/validate-v2.js +48 -1
- package/dist/validate-v2.js.map +1 -1
- package/package.json +2 -2
- package/schema/genui-v2.schema.json +443 -32
|
@@ -129,14 +129,15 @@ export const GENUI_V2_SCHEMA = {
|
|
|
129
129
|
},
|
|
130
130
|
"id": {
|
|
131
131
|
"type": "string",
|
|
132
|
-
"pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
|
|
133
|
-
"description": "Identificador único dentro del documento."
|
|
132
|
+
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[A-Za-z][A-Za-z0-9_-]{0,63}$",
|
|
133
|
+
"description": "Identificador único dentro del documento.",
|
|
134
|
+
"x-no-proto": true
|
|
134
135
|
},
|
|
135
136
|
"key": {
|
|
136
137
|
"type": "string",
|
|
137
|
-
"pattern": "^(?!(
|
|
138
|
+
"pattern": "^(?=.{1,64}$)(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$",
|
|
138
139
|
"x-no-proto": true,
|
|
139
|
-
"description": "Clave de campo, columna o entrada
|
|
140
|
+
"description": "Clave de campo, columna o entrada: segmentos no vacíos [A-Za-z_][A-Za-z0-9_]* separados por punto (sin \"a..b\" ni \"a.\"); ningún segmento puede ser __proto__, constructor ni prototype."
|
|
140
141
|
},
|
|
141
142
|
"bindingPath": {
|
|
142
143
|
"type": "string",
|
|
@@ -166,7 +167,8 @@ export const GENUI_V2_SCHEMA = {
|
|
|
166
167
|
"properties": {
|
|
167
168
|
"$t": {
|
|
168
169
|
"type": "string",
|
|
169
|
-
"pattern": "^[A-Za-z0-9_.:-]{1,128}$"
|
|
170
|
+
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[A-Za-z0-9_.:-]{1,128}$",
|
|
171
|
+
"x-no-proto": true
|
|
170
172
|
},
|
|
171
173
|
"args": {
|
|
172
174
|
"type": "object",
|
|
@@ -246,7 +248,8 @@ export const GENUI_V2_SCHEMA = {
|
|
|
246
248
|
},
|
|
247
249
|
"name": {
|
|
248
250
|
"type": "string",
|
|
249
|
-
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
|
|
251
|
+
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[A-Za-z_][A-Za-z0-9_]{0,63}$",
|
|
252
|
+
"x-no-proto": true
|
|
250
253
|
},
|
|
251
254
|
"predicate": {
|
|
252
255
|
"type": "object",
|
|
@@ -390,7 +393,8 @@ export const GENUI_V2_SCHEMA = {
|
|
|
390
393
|
"type": "object",
|
|
391
394
|
"maxProperties": 24,
|
|
392
395
|
"propertyNames": {
|
|
393
|
-
"pattern": "^[A-Za-z_][A-Za-z0-9_
|
|
396
|
+
"pattern": "^(?=.{1,64}$)(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$",
|
|
397
|
+
"x-no-proto": true
|
|
394
398
|
},
|
|
395
399
|
"additionalProperties": {
|
|
396
400
|
"$ref": "#/$defs/value"
|
|
@@ -536,7 +540,8 @@ export const GENUI_V2_SCHEMA = {
|
|
|
536
540
|
},
|
|
537
541
|
"icon": {
|
|
538
542
|
"type": "string",
|
|
539
|
-
"pattern": "^[a-z][a-z0-9-]{0,63}$"
|
|
543
|
+
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9-]{0,63}$",
|
|
544
|
+
"x-no-proto": true
|
|
540
545
|
},
|
|
541
546
|
"confirm": {
|
|
542
547
|
"type": "object",
|
|
@@ -589,7 +594,8 @@ export const GENUI_V2_SCHEMA = {
|
|
|
589
594
|
},
|
|
590
595
|
"icon": {
|
|
591
596
|
"type": "string",
|
|
592
|
-
"pattern": "^[a-z][a-z0-9-]{0,63}$"
|
|
597
|
+
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9-]{0,63}$",
|
|
598
|
+
"x-no-proto": true
|
|
593
599
|
},
|
|
594
600
|
"confirm": {
|
|
595
601
|
"type": "object",
|
|
@@ -615,8 +621,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
615
621
|
},
|
|
616
622
|
"action": {
|
|
617
623
|
"type": "string",
|
|
618
|
-
"pattern": "^[a-z][a-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*){1,3}$",
|
|
619
|
-
"description": "Acción del manifest <addon>.<Model>.<key>."
|
|
624
|
+
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*){1,3}$",
|
|
625
|
+
"description": "Acción del manifest <addon>.<Model>.<key>.",
|
|
626
|
+
"x-no-proto": true
|
|
620
627
|
},
|
|
621
628
|
"record": {
|
|
622
629
|
"$ref": "#/$defs/value"
|
|
@@ -685,7 +692,8 @@ export const GENUI_V2_SCHEMA = {
|
|
|
685
692
|
},
|
|
686
693
|
"icon": {
|
|
687
694
|
"type": "string",
|
|
688
|
-
"pattern": "^[a-z][a-z0-9-]{0,63}$"
|
|
695
|
+
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9-]{0,63}$",
|
|
696
|
+
"x-no-proto": true
|
|
689
697
|
},
|
|
690
698
|
"confirm": {
|
|
691
699
|
"type": "object",
|
|
@@ -717,7 +725,8 @@ export const GENUI_V2_SCHEMA = {
|
|
|
717
725
|
},
|
|
718
726
|
"action": {
|
|
719
727
|
"type": "string",
|
|
720
|
-
"pattern": "^[a-z][a-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*){1,3}$"
|
|
728
|
+
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*){1,3}$",
|
|
729
|
+
"x-no-proto": true
|
|
721
730
|
}
|
|
722
731
|
}
|
|
723
732
|
},
|
|
@@ -746,7 +755,8 @@ export const GENUI_V2_SCHEMA = {
|
|
|
746
755
|
},
|
|
747
756
|
"icon": {
|
|
748
757
|
"type": "string",
|
|
749
|
-
"pattern": "^[a-z][a-z0-9-]{0,63}$"
|
|
758
|
+
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9-]{0,63}$",
|
|
759
|
+
"x-no-proto": true
|
|
750
760
|
},
|
|
751
761
|
"confirm": {
|
|
752
762
|
"type": "object",
|
|
@@ -804,7 +814,8 @@ export const GENUI_V2_SCHEMA = {
|
|
|
804
814
|
},
|
|
805
815
|
"icon": {
|
|
806
816
|
"type": "string",
|
|
807
|
-
"pattern": "^[a-z][a-z0-9-]{0,63}$"
|
|
817
|
+
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9-]{0,63}$",
|
|
818
|
+
"x-no-proto": true
|
|
808
819
|
},
|
|
809
820
|
"confirm": {
|
|
810
821
|
"type": "object",
|
|
@@ -866,7 +877,8 @@ export const GENUI_V2_SCHEMA = {
|
|
|
866
877
|
},
|
|
867
878
|
"icon": {
|
|
868
879
|
"type": "string",
|
|
869
|
-
"pattern": "^[a-z][a-z0-9-]{0,63}$"
|
|
880
|
+
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9-]{0,63}$",
|
|
881
|
+
"x-no-proto": true
|
|
870
882
|
},
|
|
871
883
|
"confirm": {
|
|
872
884
|
"type": "object",
|
|
@@ -928,7 +940,8 @@ export const GENUI_V2_SCHEMA = {
|
|
|
928
940
|
},
|
|
929
941
|
"icon": {
|
|
930
942
|
"type": "string",
|
|
931
|
-
"pattern": "^[a-z][a-z0-9-]{0,63}$"
|
|
943
|
+
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9-]{0,63}$",
|
|
944
|
+
"x-no-proto": true
|
|
932
945
|
},
|
|
933
946
|
"confirm": {
|
|
934
947
|
"type": "object",
|
|
@@ -980,7 +993,8 @@ export const GENUI_V2_SCHEMA = {
|
|
|
980
993
|
},
|
|
981
994
|
"icon": {
|
|
982
995
|
"type": "string",
|
|
983
|
-
"pattern": "^[a-z][a-z0-9-]{0,63}$"
|
|
996
|
+
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9-]{0,63}$",
|
|
997
|
+
"x-no-proto": true
|
|
984
998
|
},
|
|
985
999
|
"confirm": {
|
|
986
1000
|
"type": "object",
|
|
@@ -1034,7 +1048,8 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1034
1048
|
},
|
|
1035
1049
|
"icon": {
|
|
1036
1050
|
"type": "string",
|
|
1037
|
-
"pattern": "^[a-z][a-z0-9-]{0,63}$"
|
|
1051
|
+
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9-]{0,63}$",
|
|
1052
|
+
"x-no-proto": true
|
|
1038
1053
|
},
|
|
1039
1054
|
"confirm": {
|
|
1040
1055
|
"type": "object",
|
|
@@ -1092,7 +1107,8 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1092
1107
|
},
|
|
1093
1108
|
"icon": {
|
|
1094
1109
|
"type": "string",
|
|
1095
|
-
"pattern": "^[a-z][a-z0-9-]{0,63}$"
|
|
1110
|
+
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9-]{0,63}$",
|
|
1111
|
+
"x-no-proto": true
|
|
1096
1112
|
},
|
|
1097
1113
|
"confirm": {
|
|
1098
1114
|
"type": "object",
|
|
@@ -1145,7 +1161,8 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1145
1161
|
},
|
|
1146
1162
|
"icon": {
|
|
1147
1163
|
"type": "string",
|
|
1148
|
-
"pattern": "^[a-z][a-z0-9-]{0,63}$"
|
|
1164
|
+
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9-]{0,63}$",
|
|
1165
|
+
"x-no-proto": true
|
|
1149
1166
|
},
|
|
1150
1167
|
"confirm": {
|
|
1151
1168
|
"type": "object",
|
|
@@ -1171,7 +1188,8 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1171
1188
|
},
|
|
1172
1189
|
"id": {
|
|
1173
1190
|
"type": "string",
|
|
1174
|
-
"pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*){1,3}$"
|
|
1191
|
+
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*){1,3}$",
|
|
1192
|
+
"x-no-proto": true
|
|
1175
1193
|
},
|
|
1176
1194
|
"params": {
|
|
1177
1195
|
"type": "object",
|
|
@@ -1229,8 +1247,8 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1229
1247
|
"maxLength": 160
|
|
1230
1248
|
},
|
|
1231
1249
|
"depends_on": {
|
|
1232
|
-
"
|
|
1233
|
-
"
|
|
1250
|
+
"$ref": "#/$defs/key",
|
|
1251
|
+
"description": "Clave de otro campo del mismo formulario."
|
|
1234
1252
|
},
|
|
1235
1253
|
"visible_when": {
|
|
1236
1254
|
"type": "object",
|
|
@@ -1289,7 +1307,8 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1289
1307
|
},
|
|
1290
1308
|
"widget": {
|
|
1291
1309
|
"type": "string",
|
|
1292
|
-
"pattern": "^[a-z][a-z0-9_]{0,31}$"
|
|
1310
|
+
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9_]{0,31}$",
|
|
1311
|
+
"x-no-proto": true
|
|
1293
1312
|
},
|
|
1294
1313
|
"section": {
|
|
1295
1314
|
"type": "string",
|
|
@@ -1327,7 +1346,8 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1327
1346
|
},
|
|
1328
1347
|
"widget": {
|
|
1329
1348
|
"type": "string",
|
|
1330
|
-
"pattern": "^[a-z][a-z0-9_]*\\.dashboard\\.[a-z][a-z0-9_]*$"
|
|
1349
|
+
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9_]*\\.dashboard\\.[a-z][a-z0-9_]*$",
|
|
1350
|
+
"x-no-proto": true
|
|
1331
1351
|
},
|
|
1332
1352
|
"inline": {
|
|
1333
1353
|
"type": "array",
|
|
@@ -1449,6 +1469,15 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1449
1469
|
},
|
|
1450
1470
|
{
|
|
1451
1471
|
"$ref": "#/$defs/block_ext"
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
"$ref": "#/$defs/block_map"
|
|
1475
|
+
},
|
|
1476
|
+
{
|
|
1477
|
+
"$ref": "#/$defs/block_metric"
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
"$ref": "#/$defs/block_diagram"
|
|
1452
1481
|
}
|
|
1453
1482
|
]
|
|
1454
1483
|
},
|
|
@@ -1745,7 +1774,8 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1745
1774
|
},
|
|
1746
1775
|
"icon": {
|
|
1747
1776
|
"type": "string",
|
|
1748
|
-
"pattern": "^[a-z][a-z0-9-]{0,63}$"
|
|
1777
|
+
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9-]{0,63}$",
|
|
1778
|
+
"x-no-proto": true
|
|
1749
1779
|
},
|
|
1750
1780
|
"actions": {
|
|
1751
1781
|
"$ref": "#/$defs/actions"
|
|
@@ -2528,7 +2558,8 @@ export const GENUI_V2_SCHEMA = {
|
|
|
2528
2558
|
"properties": {
|
|
2529
2559
|
"id": {
|
|
2530
2560
|
"type": "string",
|
|
2531
|
-
"pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*){1,3}$"
|
|
2561
|
+
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*){1,3}$",
|
|
2562
|
+
"x-no-proto": true
|
|
2532
2563
|
},
|
|
2533
2564
|
"label": {
|
|
2534
2565
|
"type": "string",
|
|
@@ -2591,7 +2622,8 @@ export const GENUI_V2_SCHEMA = {
|
|
|
2591
2622
|
},
|
|
2592
2623
|
"addon": {
|
|
2593
2624
|
"type": "string",
|
|
2594
|
-
"pattern": "^[a-z][a-z0-9_]{0,63}$"
|
|
2625
|
+
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9_]{0,63}$",
|
|
2626
|
+
"x-no-proto": true
|
|
2595
2627
|
},
|
|
2596
2628
|
"keys": {
|
|
2597
2629
|
"type": "array",
|
|
@@ -2639,7 +2671,7 @@ export const GENUI_V2_SCHEMA = {
|
|
|
2639
2671
|
"src": {
|
|
2640
2672
|
"type": "string",
|
|
2641
2673
|
"maxLength": 2048,
|
|
2642
|
-
"pattern": "^(asset:[A-Za-z0-9_-]{1,64}|/[^/\\\\\\s][^\\\\\\s]*)$"
|
|
2674
|
+
"pattern": "^(asset:(?!(?:__proto__|constructor|prototype)$)[A-Za-z0-9_-]{1,64}|/[^/\\\\\\s][^\\\\\\s]*)$"
|
|
2643
2675
|
},
|
|
2644
2676
|
"alt": {
|
|
2645
2677
|
"type": "string",
|
|
@@ -2683,7 +2715,8 @@ export const GENUI_V2_SCHEMA = {
|
|
|
2683
2715
|
},
|
|
2684
2716
|
"name": {
|
|
2685
2717
|
"type": "string",
|
|
2686
|
-
"pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*){1,3}$"
|
|
2718
|
+
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*){1,3}$",
|
|
2719
|
+
"x-no-proto": true
|
|
2687
2720
|
},
|
|
2688
2721
|
"record": {
|
|
2689
2722
|
"$ref": "#/$defs/value"
|
|
@@ -2713,7 +2746,8 @@ export const GENUI_V2_SCHEMA = {
|
|
|
2713
2746
|
},
|
|
2714
2747
|
"ext": {
|
|
2715
2748
|
"type": "string",
|
|
2716
|
-
"pattern": "^[a-z][a-z0-9_]{0,63}\\.[a-z][a-z0-9_]{0,63}@[0-9]{1,3}$"
|
|
2749
|
+
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9_]{0,63}\\.[a-z][a-z0-9_]{0,63}@[0-9]{1,3}$",
|
|
2750
|
+
"x-no-proto": true
|
|
2717
2751
|
},
|
|
2718
2752
|
"props": {
|
|
2719
2753
|
"type": "object",
|
|
@@ -2738,6 +2772,383 @@ export const GENUI_V2_SCHEMA = {
|
|
|
2738
2772
|
}
|
|
2739
2773
|
}
|
|
2740
2774
|
}
|
|
2775
|
+
},
|
|
2776
|
+
"mapPoint": {
|
|
2777
|
+
"type": "object",
|
|
2778
|
+
"additionalProperties": false,
|
|
2779
|
+
"required": [
|
|
2780
|
+
"key",
|
|
2781
|
+
"lat",
|
|
2782
|
+
"lng",
|
|
2783
|
+
"label"
|
|
2784
|
+
],
|
|
2785
|
+
"properties": {
|
|
2786
|
+
"key": {
|
|
2787
|
+
"$ref": "#/$defs/key"
|
|
2788
|
+
},
|
|
2789
|
+
"lat": {
|
|
2790
|
+
"type": "number",
|
|
2791
|
+
"minimum": -90,
|
|
2792
|
+
"maximum": 90
|
|
2793
|
+
},
|
|
2794
|
+
"lng": {
|
|
2795
|
+
"type": "number",
|
|
2796
|
+
"minimum": -180,
|
|
2797
|
+
"maximum": 180
|
|
2798
|
+
},
|
|
2799
|
+
"label": {
|
|
2800
|
+
"$ref": "#/$defs/label"
|
|
2801
|
+
},
|
|
2802
|
+
"status": {
|
|
2803
|
+
"type": "string",
|
|
2804
|
+
"maxLength": 64
|
|
2805
|
+
},
|
|
2806
|
+
"group": {
|
|
2807
|
+
"type": "string",
|
|
2808
|
+
"maxLength": 64
|
|
2809
|
+
},
|
|
2810
|
+
"tone": {
|
|
2811
|
+
"$ref": "#/$defs/tone"
|
|
2812
|
+
},
|
|
2813
|
+
"details": {
|
|
2814
|
+
"type": "array",
|
|
2815
|
+
"maxItems": 8,
|
|
2816
|
+
"items": {
|
|
2817
|
+
"type": "object",
|
|
2818
|
+
"additionalProperties": false,
|
|
2819
|
+
"required": [
|
|
2820
|
+
"value"
|
|
2821
|
+
],
|
|
2822
|
+
"properties": {
|
|
2823
|
+
"label": {
|
|
2824
|
+
"$ref": "#/$defs/label"
|
|
2825
|
+
},
|
|
2826
|
+
"value": {
|
|
2827
|
+
"$ref": "#/$defs/text"
|
|
2828
|
+
}
|
|
2829
|
+
}
|
|
2830
|
+
}
|
|
2831
|
+
}
|
|
2832
|
+
}
|
|
2833
|
+
},
|
|
2834
|
+
"mapFields": {
|
|
2835
|
+
"type": "object",
|
|
2836
|
+
"additionalProperties": false,
|
|
2837
|
+
"description": "Columnas de la fuente que alimentan cada punto.",
|
|
2838
|
+
"properties": {
|
|
2839
|
+
"key": {
|
|
2840
|
+
"$ref": "#/$defs/key"
|
|
2841
|
+
},
|
|
2842
|
+
"lat": {
|
|
2843
|
+
"$ref": "#/$defs/key"
|
|
2844
|
+
},
|
|
2845
|
+
"lng": {
|
|
2846
|
+
"$ref": "#/$defs/key"
|
|
2847
|
+
},
|
|
2848
|
+
"label": {
|
|
2849
|
+
"$ref": "#/$defs/key"
|
|
2850
|
+
},
|
|
2851
|
+
"status": {
|
|
2852
|
+
"$ref": "#/$defs/key"
|
|
2853
|
+
},
|
|
2854
|
+
"group": {
|
|
2855
|
+
"$ref": "#/$defs/key"
|
|
2856
|
+
},
|
|
2857
|
+
"tone": {
|
|
2858
|
+
"$ref": "#/$defs/key"
|
|
2859
|
+
}
|
|
2860
|
+
}
|
|
2861
|
+
},
|
|
2862
|
+
"block_map": {
|
|
2863
|
+
"type": "object",
|
|
2864
|
+
"additionalProperties": false,
|
|
2865
|
+
"required": [
|
|
2866
|
+
"type",
|
|
2867
|
+
"summary"
|
|
2868
|
+
],
|
|
2869
|
+
"properties": {
|
|
2870
|
+
"type": {
|
|
2871
|
+
"const": "map"
|
|
2872
|
+
},
|
|
2873
|
+
"id": {
|
|
2874
|
+
"$ref": "#/$defs/id"
|
|
2875
|
+
},
|
|
2876
|
+
"when": {
|
|
2877
|
+
"$ref": "#/$defs/predicate"
|
|
2878
|
+
},
|
|
2879
|
+
"fallback": {
|
|
2880
|
+
"type": "string",
|
|
2881
|
+
"maxLength": 2000
|
|
2882
|
+
},
|
|
2883
|
+
"title": {
|
|
2884
|
+
"$ref": "#/$defs/label"
|
|
2885
|
+
},
|
|
2886
|
+
"points": {
|
|
2887
|
+
"type": "array",
|
|
2888
|
+
"items": {
|
|
2889
|
+
"$ref": "#/$defs/mapPoint"
|
|
2890
|
+
},
|
|
2891
|
+
"maxItems": 200
|
|
2892
|
+
},
|
|
2893
|
+
"source": {
|
|
2894
|
+
"$ref": "#/$defs/source"
|
|
2895
|
+
},
|
|
2896
|
+
"fields": {
|
|
2897
|
+
"$ref": "#/$defs/mapFields"
|
|
2898
|
+
},
|
|
2899
|
+
"status_tones": {
|
|
2900
|
+
"type": "object",
|
|
2901
|
+
"maxProperties": 16,
|
|
2902
|
+
"propertyNames": {
|
|
2903
|
+
"pattern": "^[A-Za-z0-9_.:-]{1,64}$"
|
|
2904
|
+
},
|
|
2905
|
+
"additionalProperties": {
|
|
2906
|
+
"$ref": "#/$defs/tone"
|
|
2907
|
+
},
|
|
2908
|
+
"description": "Color por estado: status -> Tone (nunca colores literales)."
|
|
2909
|
+
},
|
|
2910
|
+
"group_by": {
|
|
2911
|
+
"enum": [
|
|
2912
|
+
"status",
|
|
2913
|
+
"group"
|
|
2914
|
+
]
|
|
2915
|
+
},
|
|
2916
|
+
"legend": {
|
|
2917
|
+
"type": "boolean"
|
|
2918
|
+
},
|
|
2919
|
+
"cluster": {
|
|
2920
|
+
"type": "boolean"
|
|
2921
|
+
},
|
|
2922
|
+
"tooltip": {
|
|
2923
|
+
"type": "boolean"
|
|
2924
|
+
},
|
|
2925
|
+
"detail_panel": {
|
|
2926
|
+
"type": "boolean",
|
|
2927
|
+
"description": "Panel lateral con el detalle del punto seleccionado."
|
|
2928
|
+
},
|
|
2929
|
+
"on_select": {
|
|
2930
|
+
"$ref": "#/$defs/action"
|
|
2931
|
+
},
|
|
2932
|
+
"height": {
|
|
2933
|
+
"enum": [
|
|
2934
|
+
"sm",
|
|
2935
|
+
"md",
|
|
2936
|
+
"lg"
|
|
2937
|
+
]
|
|
2938
|
+
},
|
|
2939
|
+
"summary": {
|
|
2940
|
+
"type": "string",
|
|
2941
|
+
"maxLength": 2000,
|
|
2942
|
+
"description": "Resumen accesible (obligatorio)."
|
|
2943
|
+
}
|
|
2944
|
+
}
|
|
2945
|
+
},
|
|
2946
|
+
"block_metric": {
|
|
2947
|
+
"type": "object",
|
|
2948
|
+
"additionalProperties": false,
|
|
2949
|
+
"required": [
|
|
2950
|
+
"type",
|
|
2951
|
+
"label"
|
|
2952
|
+
],
|
|
2953
|
+
"properties": {
|
|
2954
|
+
"type": {
|
|
2955
|
+
"const": "metric"
|
|
2956
|
+
},
|
|
2957
|
+
"id": {
|
|
2958
|
+
"$ref": "#/$defs/id"
|
|
2959
|
+
},
|
|
2960
|
+
"when": {
|
|
2961
|
+
"$ref": "#/$defs/predicate"
|
|
2962
|
+
},
|
|
2963
|
+
"fallback": {
|
|
2964
|
+
"type": "string",
|
|
2965
|
+
"maxLength": 2000
|
|
2966
|
+
},
|
|
2967
|
+
"label": {
|
|
2968
|
+
"$ref": "#/$defs/label"
|
|
2969
|
+
},
|
|
2970
|
+
"value": {
|
|
2971
|
+
"$ref": "#/$defs/value"
|
|
2972
|
+
},
|
|
2973
|
+
"source": {
|
|
2974
|
+
"$ref": "#/$defs/source"
|
|
2975
|
+
},
|
|
2976
|
+
"field": {
|
|
2977
|
+
"$ref": "#/$defs/key"
|
|
2978
|
+
},
|
|
2979
|
+
"format": {
|
|
2980
|
+
"$ref": "#/$defs/statFormat"
|
|
2981
|
+
},
|
|
2982
|
+
"trend": {
|
|
2983
|
+
"enum": [
|
|
2984
|
+
"up",
|
|
2985
|
+
"down",
|
|
2986
|
+
"flat"
|
|
2987
|
+
]
|
|
2988
|
+
},
|
|
2989
|
+
"delta": {
|
|
2990
|
+
"type": "string",
|
|
2991
|
+
"maxLength": 64
|
|
2992
|
+
},
|
|
2993
|
+
"compare": {
|
|
2994
|
+
"type": "string",
|
|
2995
|
+
"maxLength": 160
|
|
2996
|
+
},
|
|
2997
|
+
"tone": {
|
|
2998
|
+
"$ref": "#/$defs/tone"
|
|
2999
|
+
},
|
|
3000
|
+
"thresholds": {
|
|
3001
|
+
"type": "array",
|
|
3002
|
+
"maxItems": 4,
|
|
3003
|
+
"items": {
|
|
3004
|
+
"type": "object",
|
|
3005
|
+
"additionalProperties": false,
|
|
3006
|
+
"required": [
|
|
3007
|
+
"at",
|
|
3008
|
+
"tone"
|
|
3009
|
+
],
|
|
3010
|
+
"properties": {
|
|
3011
|
+
"at": {
|
|
3012
|
+
"type": "number"
|
|
3013
|
+
},
|
|
3014
|
+
"tone": {
|
|
3015
|
+
"$ref": "#/$defs/tone"
|
|
3016
|
+
}
|
|
3017
|
+
}
|
|
3018
|
+
},
|
|
3019
|
+
"description": "Tono por severidad: el umbral mayor alcanzado por el valor gana."
|
|
3020
|
+
},
|
|
3021
|
+
"spark": {
|
|
3022
|
+
"type": "array",
|
|
3023
|
+
"maxItems": 60,
|
|
3024
|
+
"items": {
|
|
3025
|
+
"type": "number"
|
|
3026
|
+
}
|
|
3027
|
+
},
|
|
3028
|
+
"spark_field": {
|
|
3029
|
+
"$ref": "#/$defs/key"
|
|
3030
|
+
},
|
|
3031
|
+
"hint": {
|
|
3032
|
+
"$ref": "#/$defs/label"
|
|
3033
|
+
}
|
|
3034
|
+
}
|
|
3035
|
+
},
|
|
3036
|
+
"diagramNode": {
|
|
3037
|
+
"type": "object",
|
|
3038
|
+
"additionalProperties": false,
|
|
3039
|
+
"required": [
|
|
3040
|
+
"id",
|
|
3041
|
+
"label"
|
|
3042
|
+
],
|
|
3043
|
+
"properties": {
|
|
3044
|
+
"id": {
|
|
3045
|
+
"$ref": "#/$defs/key"
|
|
3046
|
+
},
|
|
3047
|
+
"label": {
|
|
3048
|
+
"$ref": "#/$defs/label"
|
|
3049
|
+
},
|
|
3050
|
+
"kind": {
|
|
3051
|
+
"enum": [
|
|
3052
|
+
"service",
|
|
3053
|
+
"database",
|
|
3054
|
+
"queue",
|
|
3055
|
+
"user",
|
|
3056
|
+
"external",
|
|
3057
|
+
"group",
|
|
3058
|
+
"generic"
|
|
3059
|
+
]
|
|
3060
|
+
},
|
|
3061
|
+
"tone": {
|
|
3062
|
+
"$ref": "#/$defs/tone"
|
|
3063
|
+
},
|
|
3064
|
+
"detail": {
|
|
3065
|
+
"type": "string",
|
|
3066
|
+
"maxLength": 160
|
|
3067
|
+
},
|
|
3068
|
+
"route": {
|
|
3069
|
+
"$ref": "#/$defs/route"
|
|
3070
|
+
}
|
|
3071
|
+
}
|
|
3072
|
+
},
|
|
3073
|
+
"diagramEdge": {
|
|
3074
|
+
"type": "object",
|
|
3075
|
+
"additionalProperties": false,
|
|
3076
|
+
"required": [
|
|
3077
|
+
"from",
|
|
3078
|
+
"to"
|
|
3079
|
+
],
|
|
3080
|
+
"properties": {
|
|
3081
|
+
"from": {
|
|
3082
|
+
"$ref": "#/$defs/key"
|
|
3083
|
+
},
|
|
3084
|
+
"to": {
|
|
3085
|
+
"$ref": "#/$defs/key"
|
|
3086
|
+
},
|
|
3087
|
+
"label": {
|
|
3088
|
+
"$ref": "#/$defs/label"
|
|
3089
|
+
},
|
|
3090
|
+
"tone": {
|
|
3091
|
+
"$ref": "#/$defs/tone"
|
|
3092
|
+
},
|
|
3093
|
+
"style": {
|
|
3094
|
+
"enum": [
|
|
3095
|
+
"solid",
|
|
3096
|
+
"dashed"
|
|
3097
|
+
]
|
|
3098
|
+
}
|
|
3099
|
+
}
|
|
3100
|
+
},
|
|
3101
|
+
"block_diagram": {
|
|
3102
|
+
"type": "object",
|
|
3103
|
+
"additionalProperties": false,
|
|
3104
|
+
"required": [
|
|
3105
|
+
"type",
|
|
3106
|
+
"nodes",
|
|
3107
|
+
"summary"
|
|
3108
|
+
],
|
|
3109
|
+
"properties": {
|
|
3110
|
+
"type": {
|
|
3111
|
+
"const": "diagram"
|
|
3112
|
+
},
|
|
3113
|
+
"id": {
|
|
3114
|
+
"$ref": "#/$defs/id"
|
|
3115
|
+
},
|
|
3116
|
+
"when": {
|
|
3117
|
+
"$ref": "#/$defs/predicate"
|
|
3118
|
+
},
|
|
3119
|
+
"fallback": {
|
|
3120
|
+
"type": "string",
|
|
3121
|
+
"maxLength": 2000
|
|
3122
|
+
},
|
|
3123
|
+
"title": {
|
|
3124
|
+
"$ref": "#/$defs/label"
|
|
3125
|
+
},
|
|
3126
|
+
"direction": {
|
|
3127
|
+
"enum": [
|
|
3128
|
+
"lr",
|
|
3129
|
+
"tb"
|
|
3130
|
+
]
|
|
3131
|
+
},
|
|
3132
|
+
"nodes": {
|
|
3133
|
+
"type": "array",
|
|
3134
|
+
"items": {
|
|
3135
|
+
"$ref": "#/$defs/diagramNode"
|
|
3136
|
+
},
|
|
3137
|
+
"maxItems": 60,
|
|
3138
|
+
"minItems": 1
|
|
3139
|
+
},
|
|
3140
|
+
"edges": {
|
|
3141
|
+
"type": "array",
|
|
3142
|
+
"items": {
|
|
3143
|
+
"$ref": "#/$defs/diagramEdge"
|
|
3144
|
+
},
|
|
3145
|
+
"maxItems": 120
|
|
3146
|
+
},
|
|
3147
|
+
"summary": {
|
|
3148
|
+
"type": "string",
|
|
3149
|
+
"maxLength": 2000
|
|
3150
|
+
}
|
|
3151
|
+
}
|
|
2741
3152
|
}
|
|
2742
3153
|
}
|
|
2743
3154
|
};
|
|
@@ -3155,6 +3566,74 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3155
3566
|
"type",
|
|
3156
3567
|
"ext"
|
|
3157
3568
|
]
|
|
3569
|
+
},
|
|
3570
|
+
"map": {
|
|
3571
|
+
"allowed": [
|
|
3572
|
+
"type",
|
|
3573
|
+
"id",
|
|
3574
|
+
"when",
|
|
3575
|
+
"fallback",
|
|
3576
|
+
"title",
|
|
3577
|
+
"points",
|
|
3578
|
+
"source",
|
|
3579
|
+
"fields",
|
|
3580
|
+
"status_tones",
|
|
3581
|
+
"group_by",
|
|
3582
|
+
"legend",
|
|
3583
|
+
"cluster",
|
|
3584
|
+
"tooltip",
|
|
3585
|
+
"detail_panel",
|
|
3586
|
+
"on_select",
|
|
3587
|
+
"height",
|
|
3588
|
+
"summary"
|
|
3589
|
+
],
|
|
3590
|
+
"required": [
|
|
3591
|
+
"type",
|
|
3592
|
+
"summary"
|
|
3593
|
+
]
|
|
3594
|
+
},
|
|
3595
|
+
"metric": {
|
|
3596
|
+
"allowed": [
|
|
3597
|
+
"type",
|
|
3598
|
+
"id",
|
|
3599
|
+
"when",
|
|
3600
|
+
"fallback",
|
|
3601
|
+
"label",
|
|
3602
|
+
"value",
|
|
3603
|
+
"source",
|
|
3604
|
+
"field",
|
|
3605
|
+
"format",
|
|
3606
|
+
"trend",
|
|
3607
|
+
"delta",
|
|
3608
|
+
"compare",
|
|
3609
|
+
"tone",
|
|
3610
|
+
"thresholds",
|
|
3611
|
+
"spark",
|
|
3612
|
+
"spark_field",
|
|
3613
|
+
"hint"
|
|
3614
|
+
],
|
|
3615
|
+
"required": [
|
|
3616
|
+
"type",
|
|
3617
|
+
"label"
|
|
3618
|
+
]
|
|
3619
|
+
},
|
|
3620
|
+
"diagram": {
|
|
3621
|
+
"allowed": [
|
|
3622
|
+
"type",
|
|
3623
|
+
"id",
|
|
3624
|
+
"when",
|
|
3625
|
+
"fallback",
|
|
3626
|
+
"title",
|
|
3627
|
+
"direction",
|
|
3628
|
+
"nodes",
|
|
3629
|
+
"edges",
|
|
3630
|
+
"summary"
|
|
3631
|
+
],
|
|
3632
|
+
"required": [
|
|
3633
|
+
"type",
|
|
3634
|
+
"nodes",
|
|
3635
|
+
"summary"
|
|
3636
|
+
]
|
|
3158
3637
|
}
|
|
3159
3638
|
};
|
|
3160
3639
|
//# sourceMappingURL=genui-v2-schema.js.map
|