@asteby/metacore-genui 2.2.0 → 2.4.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 +14 -0
- package/dist/generated/genui-v2-schema.d.ts +298 -21
- package/dist/generated/genui-v2-schema.d.ts.map +1 -1
- package/dist/generated/genui-v2-schema.js +415 -37
- package/dist/generated/genui-v2-schema.js.map +1 -1
- package/dist/generated/genui-v2.d.ts +371 -50
- package/dist/generated/genui-v2.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/page/blocks.d.ts +122 -0
- package/dist/page/blocks.d.ts.map +1 -0
- package/dist/page/blocks.js +419 -0
- package/dist/page/blocks.js.map +1 -0
- package/dist/page/context.d.ts +74 -0
- package/dist/page/context.d.ts.map +1 -0
- package/dist/page/context.js +167 -0
- package/dist/page/context.js.map +1 -0
- package/dist/page/custom.d.ts +55 -0
- package/dist/page/custom.d.ts.map +1 -0
- package/dist/page/custom.js +27 -0
- package/dist/page/custom.js.map +1 -0
- package/dist/page/index.d.ts +4 -0
- package/dist/page/index.d.ts.map +1 -0
- package/dist/page/index.js +5 -0
- package/dist/page/index.js.map +1 -0
- package/dist/validate-v2.d.ts.map +1 -1
- package/dist/validate-v2.js +73 -2
- package/dist/validate-v2.js.map +1 -1
- package/package.json +2 -2
- package/schema/genui-v2.schema.json +344 -31
|
@@ -449,6 +449,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
449
449
|
},
|
|
450
450
|
"format": {
|
|
451
451
|
"$ref": "#/$defs/statFormat"
|
|
452
|
+
},
|
|
453
|
+
"action": {
|
|
454
|
+
"$ref": "#/$defs/action"
|
|
452
455
|
}
|
|
453
456
|
}
|
|
454
457
|
},
|
|
@@ -1364,6 +1367,83 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1364
1367
|
"pattern": "^data\\.[A-Za-z_][A-Za-z0-9_]{0,63}$",
|
|
1365
1368
|
"description": "Referencia a data.<nombre>."
|
|
1366
1369
|
},
|
|
1370
|
+
"area": {
|
|
1371
|
+
"type": "string",
|
|
1372
|
+
"pattern": "^[a-z][a-z0-9_]{0,31}$",
|
|
1373
|
+
"description": "Nombre de región de un grid con `areas` (page@1)."
|
|
1374
|
+
},
|
|
1375
|
+
"areaRow": {
|
|
1376
|
+
"type": "string",
|
|
1377
|
+
"maxLength": 400,
|
|
1378
|
+
"pattern": "^(\\.|[a-z][a-z0-9_]{0,31})( (\\.|[a-z][a-z0-9_]{0,31})){0,11}$",
|
|
1379
|
+
"description": "Fila de la plantilla de `grid.areas`: nombres de región o `.` (celda vacía) separados por un espacio."
|
|
1380
|
+
},
|
|
1381
|
+
"gridTrack": {
|
|
1382
|
+
"type": "string",
|
|
1383
|
+
"maxLength": 64,
|
|
1384
|
+
"pattern": "^(auto|[0-9]+(\\.[0-9]+)?fr|[0-9]{1,4}px|minmax\\( *[0-9]{1,4}px *, *([0-9]+(\\.[0-9]+)?fr|[0-9]{1,4}px) *\\))$",
|
|
1385
|
+
"description": "Pista de `grid.columns`/`grid.rows`: auto, Nfr, Npx o minmax(Npx, Nfr|Npx). Sin CSS libre."
|
|
1386
|
+
},
|
|
1387
|
+
"statePath": {
|
|
1388
|
+
"type": "string",
|
|
1389
|
+
"pattern": "^(?!(?:.*\\.)?(?:__proto__|constructor|prototype)(?:\\.|$))state(\\.[A-Za-z_][A-Za-z0-9_]{0,63}|\\.[0-9]{1,3}){1,6}$",
|
|
1390
|
+
"x-no-proto": true,
|
|
1391
|
+
"description": "Ruta de escritura en el estado de la página: raíz state."
|
|
1392
|
+
},
|
|
1393
|
+
"permissionKey": {
|
|
1394
|
+
"type": "string",
|
|
1395
|
+
"maxLength": 128,
|
|
1396
|
+
"pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_:]*)+$",
|
|
1397
|
+
"description": "Clave de permiso del manifiesto (<addon>.<recurso>.<acción>)."
|
|
1398
|
+
},
|
|
1399
|
+
"chrome": {
|
|
1400
|
+
"enum": [
|
|
1401
|
+
"card",
|
|
1402
|
+
"bare"
|
|
1403
|
+
],
|
|
1404
|
+
"description": "Marco de una sección/vista: card (el host pinta marco y estados) o bare."
|
|
1405
|
+
},
|
|
1406
|
+
"tabIcon": {
|
|
1407
|
+
"enum": [
|
|
1408
|
+
"map",
|
|
1409
|
+
"cards",
|
|
1410
|
+
"table",
|
|
1411
|
+
"dashboard",
|
|
1412
|
+
"list",
|
|
1413
|
+
"calendar",
|
|
1414
|
+
"chart"
|
|
1415
|
+
],
|
|
1416
|
+
"description": "Icono de una opción de tabs: conjunto cerrado."
|
|
1417
|
+
},
|
|
1418
|
+
"extName": {
|
|
1419
|
+
"type": "string",
|
|
1420
|
+
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9_]{0,63}\\.[a-z][a-z0-9_]{0,63}@[0-9]{1,3}$",
|
|
1421
|
+
"x-no-proto": true,
|
|
1422
|
+
"description": "Bloque custom registrado: <addon>.<nombre>@<mayor>."
|
|
1423
|
+
},
|
|
1424
|
+
"extProps": {
|
|
1425
|
+
"type": "object",
|
|
1426
|
+
"maxProperties": 16,
|
|
1427
|
+
"additionalProperties": {
|
|
1428
|
+
"anyOf": [
|
|
1429
|
+
{
|
|
1430
|
+
"$ref": "#/$defs/scalar"
|
|
1431
|
+
},
|
|
1432
|
+
{
|
|
1433
|
+
"type": "array",
|
|
1434
|
+
"items": {
|
|
1435
|
+
"type": [
|
|
1436
|
+
"string",
|
|
1437
|
+
"number",
|
|
1438
|
+
"boolean"
|
|
1439
|
+
]
|
|
1440
|
+
},
|
|
1441
|
+
"maxItems": 50
|
|
1442
|
+
}
|
|
1443
|
+
]
|
|
1444
|
+
},
|
|
1445
|
+
"description": "Props escalares de un bloque custom; sin objetos libres."
|
|
1446
|
+
},
|
|
1367
1447
|
"overlay": {
|
|
1368
1448
|
"type": "object",
|
|
1369
1449
|
"additionalProperties": false,
|
|
@@ -1428,6 +1508,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1428
1508
|
{
|
|
1429
1509
|
"$ref": "#/$defs/block_kpi"
|
|
1430
1510
|
},
|
|
1511
|
+
{
|
|
1512
|
+
"$ref": "#/$defs/block_kpi_card"
|
|
1513
|
+
},
|
|
1431
1514
|
{
|
|
1432
1515
|
"$ref": "#/$defs/block_stats"
|
|
1433
1516
|
},
|
|
@@ -1502,6 +1585,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1502
1585
|
"type": "string",
|
|
1503
1586
|
"maxLength": 2000
|
|
1504
1587
|
},
|
|
1588
|
+
"area": {
|
|
1589
|
+
"$ref": "#/$defs/area"
|
|
1590
|
+
},
|
|
1505
1591
|
"direction": {
|
|
1506
1592
|
"enum": [
|
|
1507
1593
|
"vertical",
|
|
@@ -1542,10 +1628,53 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1542
1628
|
"type": "string",
|
|
1543
1629
|
"maxLength": 2000
|
|
1544
1630
|
},
|
|
1631
|
+
"area": {
|
|
1632
|
+
"$ref": "#/$defs/area"
|
|
1633
|
+
},
|
|
1545
1634
|
"columns": {
|
|
1546
|
-
"
|
|
1547
|
-
|
|
1548
|
-
|
|
1635
|
+
"anyOf": [
|
|
1636
|
+
{
|
|
1637
|
+
"type": "integer",
|
|
1638
|
+
"minimum": 1,
|
|
1639
|
+
"maximum": 4
|
|
1640
|
+
},
|
|
1641
|
+
{
|
|
1642
|
+
"type": "array",
|
|
1643
|
+
"items": {
|
|
1644
|
+
"$ref": "#/$defs/gridTrack"
|
|
1645
|
+
},
|
|
1646
|
+
"maxItems": 12,
|
|
1647
|
+
"minItems": 1
|
|
1648
|
+
}
|
|
1649
|
+
],
|
|
1650
|
+
"description": "Número de columnas (1-4) o, con `areas`, una pista por columna."
|
|
1651
|
+
},
|
|
1652
|
+
"rows": {
|
|
1653
|
+
"type": "array",
|
|
1654
|
+
"items": {
|
|
1655
|
+
"$ref": "#/$defs/gridTrack"
|
|
1656
|
+
},
|
|
1657
|
+
"maxItems": 24,
|
|
1658
|
+
"minItems": 1,
|
|
1659
|
+
"description": "Pistas de fila (solo con `areas`)."
|
|
1660
|
+
},
|
|
1661
|
+
"areas": {
|
|
1662
|
+
"type": "array",
|
|
1663
|
+
"items": {
|
|
1664
|
+
"$ref": "#/$defs/areaRow"
|
|
1665
|
+
},
|
|
1666
|
+
"maxItems": 24,
|
|
1667
|
+
"minItems": 1,
|
|
1668
|
+
"description": "Plantilla de regiones; cada hijo declara `area`."
|
|
1669
|
+
},
|
|
1670
|
+
"mobile": {
|
|
1671
|
+
"type": "array",
|
|
1672
|
+
"items": {
|
|
1673
|
+
"$ref": "#/$defs/area"
|
|
1674
|
+
},
|
|
1675
|
+
"maxItems": 24,
|
|
1676
|
+
"minItems": 1,
|
|
1677
|
+
"description": "Orden de regiones en pantalla angosta, una por fila."
|
|
1549
1678
|
},
|
|
1550
1679
|
"title": {
|
|
1551
1680
|
"$ref": "#/$defs/label"
|
|
@@ -1581,6 +1710,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1581
1710
|
"type": "string",
|
|
1582
1711
|
"maxLength": 2000
|
|
1583
1712
|
},
|
|
1713
|
+
"area": {
|
|
1714
|
+
"$ref": "#/$defs/area"
|
|
1715
|
+
},
|
|
1584
1716
|
"state": {
|
|
1585
1717
|
"$ref": "#/$defs/bindingPath"
|
|
1586
1718
|
},
|
|
@@ -1591,8 +1723,7 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1591
1723
|
"additionalProperties": false,
|
|
1592
1724
|
"required": [
|
|
1593
1725
|
"key",
|
|
1594
|
-
"label"
|
|
1595
|
-
"blocks"
|
|
1726
|
+
"label"
|
|
1596
1727
|
],
|
|
1597
1728
|
"properties": {
|
|
1598
1729
|
"key": {
|
|
@@ -1608,11 +1739,47 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1608
1739
|
},
|
|
1609
1740
|
"maxItems": 24,
|
|
1610
1741
|
"minItems": 1
|
|
1742
|
+
},
|
|
1743
|
+
"icon": {
|
|
1744
|
+
"$ref": "#/$defs/tabIcon"
|
|
1745
|
+
},
|
|
1746
|
+
"permission": {
|
|
1747
|
+
"$ref": "#/$defs/permissionKey"
|
|
1748
|
+
},
|
|
1749
|
+
"component": {
|
|
1750
|
+
"$ref": "#/$defs/extName"
|
|
1751
|
+
},
|
|
1752
|
+
"props": {
|
|
1753
|
+
"$ref": "#/$defs/extProps"
|
|
1611
1754
|
}
|
|
1612
1755
|
}
|
|
1613
1756
|
},
|
|
1614
1757
|
"maxItems": 8,
|
|
1615
1758
|
"minItems": 1
|
|
1759
|
+
},
|
|
1760
|
+
"variant": {
|
|
1761
|
+
"enum": [
|
|
1762
|
+
"tabs",
|
|
1763
|
+
"segmented"
|
|
1764
|
+
]
|
|
1765
|
+
},
|
|
1766
|
+
"default": {
|
|
1767
|
+
"$ref": "#/$defs/key"
|
|
1768
|
+
},
|
|
1769
|
+
"keep_alive": {
|
|
1770
|
+
"type": "boolean"
|
|
1771
|
+
},
|
|
1772
|
+
"chrome": {
|
|
1773
|
+
"$ref": "#/$defs/chrome"
|
|
1774
|
+
},
|
|
1775
|
+
"label": {
|
|
1776
|
+
"$ref": "#/$defs/label"
|
|
1777
|
+
},
|
|
1778
|
+
"mobile": {
|
|
1779
|
+
"enum": [
|
|
1780
|
+
"select",
|
|
1781
|
+
"scroll"
|
|
1782
|
+
]
|
|
1616
1783
|
}
|
|
1617
1784
|
}
|
|
1618
1785
|
},
|
|
@@ -1620,9 +1787,7 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1620
1787
|
"type": "object",
|
|
1621
1788
|
"additionalProperties": false,
|
|
1622
1789
|
"required": [
|
|
1623
|
-
"type"
|
|
1624
|
-
"title",
|
|
1625
|
-
"blocks"
|
|
1790
|
+
"type"
|
|
1626
1791
|
],
|
|
1627
1792
|
"properties": {
|
|
1628
1793
|
"type": {
|
|
@@ -1638,6 +1803,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1638
1803
|
"type": "string",
|
|
1639
1804
|
"maxLength": 2000
|
|
1640
1805
|
},
|
|
1806
|
+
"area": {
|
|
1807
|
+
"$ref": "#/$defs/area"
|
|
1808
|
+
},
|
|
1641
1809
|
"title": {
|
|
1642
1810
|
"$ref": "#/$defs/label"
|
|
1643
1811
|
},
|
|
@@ -1654,6 +1822,38 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1654
1822
|
},
|
|
1655
1823
|
"maxItems": 24,
|
|
1656
1824
|
"minItems": 1
|
|
1825
|
+
},
|
|
1826
|
+
"mode": {
|
|
1827
|
+
"enum": [
|
|
1828
|
+
"declarative",
|
|
1829
|
+
"hybrid",
|
|
1830
|
+
"custom"
|
|
1831
|
+
],
|
|
1832
|
+
"description": "declarative|hybrid usan `blocks`; custom usa `component`."
|
|
1833
|
+
},
|
|
1834
|
+
"permission": {
|
|
1835
|
+
"$ref": "#/$defs/permissionKey"
|
|
1836
|
+
},
|
|
1837
|
+
"on_denied": {
|
|
1838
|
+
"enum": [
|
|
1839
|
+
"hide",
|
|
1840
|
+
"notice"
|
|
1841
|
+
]
|
|
1842
|
+
},
|
|
1843
|
+
"chrome": {
|
|
1844
|
+
"$ref": "#/$defs/chrome"
|
|
1845
|
+
},
|
|
1846
|
+
"source": {
|
|
1847
|
+
"$ref": "#/$defs/source"
|
|
1848
|
+
},
|
|
1849
|
+
"empty": {
|
|
1850
|
+
"$ref": "#/$defs/label"
|
|
1851
|
+
},
|
|
1852
|
+
"component": {
|
|
1853
|
+
"$ref": "#/$defs/extName"
|
|
1854
|
+
},
|
|
1855
|
+
"props": {
|
|
1856
|
+
"$ref": "#/$defs/extProps"
|
|
1657
1857
|
}
|
|
1658
1858
|
}
|
|
1659
1859
|
},
|
|
@@ -1678,6 +1878,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1678
1878
|
"type": "string",
|
|
1679
1879
|
"maxLength": 2000
|
|
1680
1880
|
},
|
|
1881
|
+
"area": {
|
|
1882
|
+
"$ref": "#/$defs/area"
|
|
1883
|
+
},
|
|
1681
1884
|
"text": {
|
|
1682
1885
|
"$ref": "#/$defs/text"
|
|
1683
1886
|
},
|
|
@@ -1707,6 +1910,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1707
1910
|
"type": "string",
|
|
1708
1911
|
"maxLength": 2000
|
|
1709
1912
|
},
|
|
1913
|
+
"area": {
|
|
1914
|
+
"$ref": "#/$defs/area"
|
|
1915
|
+
},
|
|
1710
1916
|
"markdown": {
|
|
1711
1917
|
"type": "string",
|
|
1712
1918
|
"maxLength": 8000
|
|
@@ -1734,6 +1940,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1734
1940
|
"type": "string",
|
|
1735
1941
|
"maxLength": 2000
|
|
1736
1942
|
},
|
|
1943
|
+
"area": {
|
|
1944
|
+
"$ref": "#/$defs/area"
|
|
1945
|
+
},
|
|
1737
1946
|
"title": {
|
|
1738
1947
|
"$ref": "#/$defs/label"
|
|
1739
1948
|
},
|
|
@@ -1766,6 +1975,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1766
1975
|
"type": "string",
|
|
1767
1976
|
"maxLength": 2000
|
|
1768
1977
|
},
|
|
1978
|
+
"area": {
|
|
1979
|
+
"$ref": "#/$defs/area"
|
|
1980
|
+
},
|
|
1769
1981
|
"title": {
|
|
1770
1982
|
"$ref": "#/$defs/label"
|
|
1771
1983
|
},
|
|
@@ -1803,6 +2015,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1803
2015
|
"type": "string",
|
|
1804
2016
|
"maxLength": 2000
|
|
1805
2017
|
},
|
|
2018
|
+
"area": {
|
|
2019
|
+
"$ref": "#/$defs/area"
|
|
2020
|
+
},
|
|
1806
2021
|
"title": {
|
|
1807
2022
|
"$ref": "#/$defs/label"
|
|
1808
2023
|
},
|
|
@@ -1858,6 +2073,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1858
2073
|
"type": "string",
|
|
1859
2074
|
"maxLength": 2000
|
|
1860
2075
|
},
|
|
2076
|
+
"area": {
|
|
2077
|
+
"$ref": "#/$defs/area"
|
|
2078
|
+
},
|
|
1861
2079
|
"title": {
|
|
1862
2080
|
"$ref": "#/$defs/label"
|
|
1863
2081
|
},
|
|
@@ -1910,6 +2128,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1910
2128
|
"type": "string",
|
|
1911
2129
|
"maxLength": 2000
|
|
1912
2130
|
},
|
|
2131
|
+
"area": {
|
|
2132
|
+
"$ref": "#/$defs/area"
|
|
2133
|
+
},
|
|
1913
2134
|
"title": {
|
|
1914
2135
|
"$ref": "#/$defs/label"
|
|
1915
2136
|
},
|
|
@@ -1923,6 +2144,65 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1923
2144
|
}
|
|
1924
2145
|
}
|
|
1925
2146
|
},
|
|
2147
|
+
"block_kpi_card": {
|
|
2148
|
+
"type": "object",
|
|
2149
|
+
"additionalProperties": false,
|
|
2150
|
+
"required": [
|
|
2151
|
+
"type",
|
|
2152
|
+
"label",
|
|
2153
|
+
"value"
|
|
2154
|
+
],
|
|
2155
|
+
"properties": {
|
|
2156
|
+
"type": {
|
|
2157
|
+
"const": "kpi_card"
|
|
2158
|
+
},
|
|
2159
|
+
"id": {
|
|
2160
|
+
"$ref": "#/$defs/id"
|
|
2161
|
+
},
|
|
2162
|
+
"when": {
|
|
2163
|
+
"$ref": "#/$defs/predicate"
|
|
2164
|
+
},
|
|
2165
|
+
"fallback": {
|
|
2166
|
+
"type": "string",
|
|
2167
|
+
"maxLength": 2000
|
|
2168
|
+
},
|
|
2169
|
+
"area": {
|
|
2170
|
+
"$ref": "#/$defs/area"
|
|
2171
|
+
},
|
|
2172
|
+
"label": {
|
|
2173
|
+
"$ref": "#/$defs/label"
|
|
2174
|
+
},
|
|
2175
|
+
"value": {
|
|
2176
|
+
"$ref": "#/$defs/value"
|
|
2177
|
+
},
|
|
2178
|
+
"format": {
|
|
2179
|
+
"$ref": "#/$defs/statFormat"
|
|
2180
|
+
},
|
|
2181
|
+
"trend": {
|
|
2182
|
+
"anyOf": [
|
|
2183
|
+
{
|
|
2184
|
+
"enum": [
|
|
2185
|
+
"up",
|
|
2186
|
+
"down",
|
|
2187
|
+
"flat"
|
|
2188
|
+
]
|
|
2189
|
+
},
|
|
2190
|
+
{
|
|
2191
|
+
"$ref": "#/$defs/ref"
|
|
2192
|
+
}
|
|
2193
|
+
]
|
|
2194
|
+
},
|
|
2195
|
+
"tone": {
|
|
2196
|
+
"$ref": "#/$defs/tone"
|
|
2197
|
+
},
|
|
2198
|
+
"hint": {
|
|
2199
|
+
"$ref": "#/$defs/label"
|
|
2200
|
+
},
|
|
2201
|
+
"cta": {
|
|
2202
|
+
"$ref": "#/$defs/action"
|
|
2203
|
+
}
|
|
2204
|
+
}
|
|
2205
|
+
},
|
|
1926
2206
|
"block_stats": {
|
|
1927
2207
|
"type": "object",
|
|
1928
2208
|
"additionalProperties": false,
|
|
@@ -1943,6 +2223,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1943
2223
|
"type": "string",
|
|
1944
2224
|
"maxLength": 2000
|
|
1945
2225
|
},
|
|
2226
|
+
"area": {
|
|
2227
|
+
"$ref": "#/$defs/area"
|
|
2228
|
+
},
|
|
1946
2229
|
"title": {
|
|
1947
2230
|
"$ref": "#/$defs/label"
|
|
1948
2231
|
},
|
|
@@ -1994,6 +2277,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
1994
2277
|
"type": "string",
|
|
1995
2278
|
"maxLength": 2000
|
|
1996
2279
|
},
|
|
2280
|
+
"area": {
|
|
2281
|
+
"$ref": "#/$defs/area"
|
|
2282
|
+
},
|
|
1997
2283
|
"title": {
|
|
1998
2284
|
"$ref": "#/$defs/label"
|
|
1999
2285
|
},
|
|
@@ -2027,6 +2313,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
2027
2313
|
"type": "string",
|
|
2028
2314
|
"maxLength": 2000
|
|
2029
2315
|
},
|
|
2316
|
+
"area": {
|
|
2317
|
+
"$ref": "#/$defs/area"
|
|
2318
|
+
},
|
|
2030
2319
|
"title": {
|
|
2031
2320
|
"$ref": "#/$defs/label"
|
|
2032
2321
|
},
|
|
@@ -2064,6 +2353,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
2064
2353
|
"type": "string",
|
|
2065
2354
|
"maxLength": 2000
|
|
2066
2355
|
},
|
|
2356
|
+
"area": {
|
|
2357
|
+
"$ref": "#/$defs/area"
|
|
2358
|
+
},
|
|
2067
2359
|
"title": {
|
|
2068
2360
|
"$ref": "#/$defs/label"
|
|
2069
2361
|
},
|
|
@@ -2147,6 +2439,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
2147
2439
|
"type": "string",
|
|
2148
2440
|
"maxLength": 2000
|
|
2149
2441
|
},
|
|
2442
|
+
"area": {
|
|
2443
|
+
"$ref": "#/$defs/area"
|
|
2444
|
+
},
|
|
2150
2445
|
"title": {
|
|
2151
2446
|
"$ref": "#/$defs/label"
|
|
2152
2447
|
},
|
|
@@ -2200,6 +2495,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
2200
2495
|
"type": "string",
|
|
2201
2496
|
"maxLength": 2000
|
|
2202
2497
|
},
|
|
2498
|
+
"area": {
|
|
2499
|
+
"$ref": "#/$defs/area"
|
|
2500
|
+
},
|
|
2203
2501
|
"title": {
|
|
2204
2502
|
"$ref": "#/$defs/label"
|
|
2205
2503
|
},
|
|
@@ -2249,6 +2547,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
2249
2547
|
"type": "string",
|
|
2250
2548
|
"maxLength": 2000
|
|
2251
2549
|
},
|
|
2550
|
+
"area": {
|
|
2551
|
+
"$ref": "#/$defs/area"
|
|
2552
|
+
},
|
|
2252
2553
|
"title": {
|
|
2253
2554
|
"$ref": "#/$defs/label"
|
|
2254
2555
|
},
|
|
@@ -2319,6 +2620,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
2319
2620
|
"type": "string",
|
|
2320
2621
|
"maxLength": 2000
|
|
2321
2622
|
},
|
|
2623
|
+
"area": {
|
|
2624
|
+
"$ref": "#/$defs/area"
|
|
2625
|
+
},
|
|
2322
2626
|
"title": {
|
|
2323
2627
|
"$ref": "#/$defs/label"
|
|
2324
2628
|
},
|
|
@@ -2401,6 +2705,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
2401
2705
|
"type": "string",
|
|
2402
2706
|
"maxLength": 2000
|
|
2403
2707
|
},
|
|
2708
|
+
"area": {
|
|
2709
|
+
"$ref": "#/$defs/area"
|
|
2710
|
+
},
|
|
2404
2711
|
"title": {
|
|
2405
2712
|
"$ref": "#/$defs/label"
|
|
2406
2713
|
},
|
|
@@ -2484,6 +2791,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
2484
2791
|
"type": "string",
|
|
2485
2792
|
"maxLength": 2000
|
|
2486
2793
|
},
|
|
2794
|
+
"area": {
|
|
2795
|
+
"$ref": "#/$defs/area"
|
|
2796
|
+
},
|
|
2487
2797
|
"title": {
|
|
2488
2798
|
"$ref": "#/$defs/label"
|
|
2489
2799
|
},
|
|
@@ -2620,6 +2930,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
2620
2930
|
"type": "string",
|
|
2621
2931
|
"maxLength": 2000
|
|
2622
2932
|
},
|
|
2933
|
+
"area": {
|
|
2934
|
+
"$ref": "#/$defs/area"
|
|
2935
|
+
},
|
|
2623
2936
|
"addon": {
|
|
2624
2937
|
"type": "string",
|
|
2625
2938
|
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9_]{0,63}$",
|
|
@@ -2668,6 +2981,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
2668
2981
|
"type": "string",
|
|
2669
2982
|
"maxLength": 2000
|
|
2670
2983
|
},
|
|
2984
|
+
"area": {
|
|
2985
|
+
"$ref": "#/$defs/area"
|
|
2986
|
+
},
|
|
2671
2987
|
"src": {
|
|
2672
2988
|
"type": "string",
|
|
2673
2989
|
"maxLength": 2048,
|
|
@@ -2713,6 +3029,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
2713
3029
|
"type": "string",
|
|
2714
3030
|
"maxLength": 2000
|
|
2715
3031
|
},
|
|
3032
|
+
"area": {
|
|
3033
|
+
"$ref": "#/$defs/area"
|
|
3034
|
+
},
|
|
2716
3035
|
"name": {
|
|
2717
3036
|
"type": "string",
|
|
2718
3037
|
"pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*){1,3}$",
|
|
@@ -2744,32 +3063,14 @@ export const GENUI_V2_SCHEMA = {
|
|
|
2744
3063
|
"type": "string",
|
|
2745
3064
|
"maxLength": 2000
|
|
2746
3065
|
},
|
|
3066
|
+
"area": {
|
|
3067
|
+
"$ref": "#/$defs/area"
|
|
3068
|
+
},
|
|
2747
3069
|
"ext": {
|
|
2748
|
-
"
|
|
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
|
|
3070
|
+
"$ref": "#/$defs/extName"
|
|
2751
3071
|
},
|
|
2752
3072
|
"props": {
|
|
2753
|
-
"
|
|
2754
|
-
"maxProperties": 16,
|
|
2755
|
-
"additionalProperties": {
|
|
2756
|
-
"anyOf": [
|
|
2757
|
-
{
|
|
2758
|
-
"$ref": "#/$defs/scalar"
|
|
2759
|
-
},
|
|
2760
|
-
{
|
|
2761
|
-
"type": "array",
|
|
2762
|
-
"items": {
|
|
2763
|
-
"type": [
|
|
2764
|
-
"string",
|
|
2765
|
-
"number",
|
|
2766
|
-
"boolean"
|
|
2767
|
-
]
|
|
2768
|
-
},
|
|
2769
|
-
"maxItems": 50
|
|
2770
|
-
}
|
|
2771
|
-
]
|
|
2772
|
-
}
|
|
3073
|
+
"$ref": "#/$defs/extProps"
|
|
2773
3074
|
}
|
|
2774
3075
|
}
|
|
2775
3076
|
},
|
|
@@ -2880,6 +3181,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
2880
3181
|
"type": "string",
|
|
2881
3182
|
"maxLength": 2000
|
|
2882
3183
|
},
|
|
3184
|
+
"area": {
|
|
3185
|
+
"$ref": "#/$defs/area"
|
|
3186
|
+
},
|
|
2883
3187
|
"title": {
|
|
2884
3188
|
"$ref": "#/$defs/label"
|
|
2885
3189
|
},
|
|
@@ -2940,6 +3244,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
2940
3244
|
"type": "string",
|
|
2941
3245
|
"maxLength": 2000,
|
|
2942
3246
|
"description": "Resumen accesible (obligatorio)."
|
|
3247
|
+
},
|
|
3248
|
+
"select": {
|
|
3249
|
+
"$ref": "#/$defs/statePath"
|
|
2943
3250
|
}
|
|
2944
3251
|
}
|
|
2945
3252
|
},
|
|
@@ -2964,6 +3271,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
2964
3271
|
"type": "string",
|
|
2965
3272
|
"maxLength": 2000
|
|
2966
3273
|
},
|
|
3274
|
+
"area": {
|
|
3275
|
+
"$ref": "#/$defs/area"
|
|
3276
|
+
},
|
|
2967
3277
|
"label": {
|
|
2968
3278
|
"$ref": "#/$defs/label"
|
|
2969
3279
|
},
|
|
@@ -3120,6 +3430,9 @@ export const GENUI_V2_SCHEMA = {
|
|
|
3120
3430
|
"type": "string",
|
|
3121
3431
|
"maxLength": 2000
|
|
3122
3432
|
},
|
|
3433
|
+
"area": {
|
|
3434
|
+
"$ref": "#/$defs/area"
|
|
3435
|
+
},
|
|
3123
3436
|
"title": {
|
|
3124
3437
|
"$ref": "#/$defs/label"
|
|
3125
3438
|
},
|
|
@@ -3160,6 +3473,7 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3160
3473
|
"id",
|
|
3161
3474
|
"when",
|
|
3162
3475
|
"fallback",
|
|
3476
|
+
"area",
|
|
3163
3477
|
"direction",
|
|
3164
3478
|
"title",
|
|
3165
3479
|
"blocks"
|
|
@@ -3175,7 +3489,11 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3175
3489
|
"id",
|
|
3176
3490
|
"when",
|
|
3177
3491
|
"fallback",
|
|
3492
|
+
"area",
|
|
3178
3493
|
"columns",
|
|
3494
|
+
"rows",
|
|
3495
|
+
"areas",
|
|
3496
|
+
"mobile",
|
|
3179
3497
|
"title",
|
|
3180
3498
|
"blocks"
|
|
3181
3499
|
],
|
|
@@ -3190,8 +3508,15 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3190
3508
|
"id",
|
|
3191
3509
|
"when",
|
|
3192
3510
|
"fallback",
|
|
3511
|
+
"area",
|
|
3193
3512
|
"state",
|
|
3194
|
-
"tabs"
|
|
3513
|
+
"tabs",
|
|
3514
|
+
"variant",
|
|
3515
|
+
"default",
|
|
3516
|
+
"keep_alive",
|
|
3517
|
+
"chrome",
|
|
3518
|
+
"label",
|
|
3519
|
+
"mobile"
|
|
3195
3520
|
],
|
|
3196
3521
|
"required": [
|
|
3197
3522
|
"type",
|
|
@@ -3204,15 +3529,22 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3204
3529
|
"id",
|
|
3205
3530
|
"when",
|
|
3206
3531
|
"fallback",
|
|
3532
|
+
"area",
|
|
3207
3533
|
"title",
|
|
3208
3534
|
"collapsible",
|
|
3209
3535
|
"collapsed",
|
|
3210
|
-
"blocks"
|
|
3536
|
+
"blocks",
|
|
3537
|
+
"mode",
|
|
3538
|
+
"permission",
|
|
3539
|
+
"on_denied",
|
|
3540
|
+
"chrome",
|
|
3541
|
+
"source",
|
|
3542
|
+
"empty",
|
|
3543
|
+
"component",
|
|
3544
|
+
"props"
|
|
3211
3545
|
],
|
|
3212
3546
|
"required": [
|
|
3213
|
-
"type"
|
|
3214
|
-
"title",
|
|
3215
|
-
"blocks"
|
|
3547
|
+
"type"
|
|
3216
3548
|
]
|
|
3217
3549
|
},
|
|
3218
3550
|
"text": {
|
|
@@ -3221,6 +3553,7 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3221
3553
|
"id",
|
|
3222
3554
|
"when",
|
|
3223
3555
|
"fallback",
|
|
3556
|
+
"area",
|
|
3224
3557
|
"text",
|
|
3225
3558
|
"tone"
|
|
3226
3559
|
],
|
|
@@ -3235,6 +3568,7 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3235
3568
|
"id",
|
|
3236
3569
|
"when",
|
|
3237
3570
|
"fallback",
|
|
3571
|
+
"area",
|
|
3238
3572
|
"markdown"
|
|
3239
3573
|
],
|
|
3240
3574
|
"required": [
|
|
@@ -3248,6 +3582,7 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3248
3582
|
"id",
|
|
3249
3583
|
"when",
|
|
3250
3584
|
"fallback",
|
|
3585
|
+
"area",
|
|
3251
3586
|
"title",
|
|
3252
3587
|
"text",
|
|
3253
3588
|
"tone"
|
|
@@ -3263,6 +3598,7 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3263
3598
|
"id",
|
|
3264
3599
|
"when",
|
|
3265
3600
|
"fallback",
|
|
3601
|
+
"area",
|
|
3266
3602
|
"title",
|
|
3267
3603
|
"text",
|
|
3268
3604
|
"icon",
|
|
@@ -3279,6 +3615,7 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3279
3615
|
"id",
|
|
3280
3616
|
"when",
|
|
3281
3617
|
"fallback",
|
|
3618
|
+
"area",
|
|
3282
3619
|
"title",
|
|
3283
3620
|
"subtitle",
|
|
3284
3621
|
"body",
|
|
@@ -3299,6 +3636,7 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3299
3636
|
"id",
|
|
3300
3637
|
"when",
|
|
3301
3638
|
"fallback",
|
|
3639
|
+
"area",
|
|
3302
3640
|
"title",
|
|
3303
3641
|
"items"
|
|
3304
3642
|
],
|
|
@@ -3313,6 +3651,7 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3313
3651
|
"id",
|
|
3314
3652
|
"when",
|
|
3315
3653
|
"fallback",
|
|
3654
|
+
"area",
|
|
3316
3655
|
"title",
|
|
3317
3656
|
"items"
|
|
3318
3657
|
],
|
|
@@ -3321,12 +3660,34 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3321
3660
|
"items"
|
|
3322
3661
|
]
|
|
3323
3662
|
},
|
|
3663
|
+
"kpi_card": {
|
|
3664
|
+
"allowed": [
|
|
3665
|
+
"type",
|
|
3666
|
+
"id",
|
|
3667
|
+
"when",
|
|
3668
|
+
"fallback",
|
|
3669
|
+
"area",
|
|
3670
|
+
"label",
|
|
3671
|
+
"value",
|
|
3672
|
+
"format",
|
|
3673
|
+
"trend",
|
|
3674
|
+
"tone",
|
|
3675
|
+
"hint",
|
|
3676
|
+
"cta"
|
|
3677
|
+
],
|
|
3678
|
+
"required": [
|
|
3679
|
+
"type",
|
|
3680
|
+
"label",
|
|
3681
|
+
"value"
|
|
3682
|
+
]
|
|
3683
|
+
},
|
|
3324
3684
|
"stats": {
|
|
3325
3685
|
"allowed": [
|
|
3326
3686
|
"type",
|
|
3327
3687
|
"id",
|
|
3328
3688
|
"when",
|
|
3329
3689
|
"fallback",
|
|
3690
|
+
"area",
|
|
3330
3691
|
"title",
|
|
3331
3692
|
"source",
|
|
3332
3693
|
"format",
|
|
@@ -3344,6 +3705,7 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3344
3705
|
"id",
|
|
3345
3706
|
"when",
|
|
3346
3707
|
"fallback",
|
|
3708
|
+
"area",
|
|
3347
3709
|
"title",
|
|
3348
3710
|
"items"
|
|
3349
3711
|
],
|
|
@@ -3358,6 +3720,7 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3358
3720
|
"id",
|
|
3359
3721
|
"when",
|
|
3360
3722
|
"fallback",
|
|
3723
|
+
"area",
|
|
3361
3724
|
"title",
|
|
3362
3725
|
"items",
|
|
3363
3726
|
"source"
|
|
@@ -3372,6 +3735,7 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3372
3735
|
"id",
|
|
3373
3736
|
"when",
|
|
3374
3737
|
"fallback",
|
|
3738
|
+
"area",
|
|
3375
3739
|
"title",
|
|
3376
3740
|
"caption",
|
|
3377
3741
|
"columns",
|
|
@@ -3394,6 +3758,7 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3394
3758
|
"id",
|
|
3395
3759
|
"when",
|
|
3396
3760
|
"fallback",
|
|
3761
|
+
"area",
|
|
3397
3762
|
"title",
|
|
3398
3763
|
"model",
|
|
3399
3764
|
"view",
|
|
@@ -3411,6 +3776,7 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3411
3776
|
"id",
|
|
3412
3777
|
"when",
|
|
3413
3778
|
"fallback",
|
|
3779
|
+
"area",
|
|
3414
3780
|
"title",
|
|
3415
3781
|
"model",
|
|
3416
3782
|
"record",
|
|
@@ -3428,6 +3794,7 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3428
3794
|
"id",
|
|
3429
3795
|
"when",
|
|
3430
3796
|
"fallback",
|
|
3797
|
+
"area",
|
|
3431
3798
|
"title",
|
|
3432
3799
|
"kind",
|
|
3433
3800
|
"x",
|
|
@@ -3453,6 +3820,7 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3453
3820
|
"id",
|
|
3454
3821
|
"when",
|
|
3455
3822
|
"fallback",
|
|
3823
|
+
"area",
|
|
3456
3824
|
"title",
|
|
3457
3825
|
"description",
|
|
3458
3826
|
"fields",
|
|
@@ -3471,6 +3839,7 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3471
3839
|
"id",
|
|
3472
3840
|
"when",
|
|
3473
3841
|
"fallback",
|
|
3842
|
+
"area",
|
|
3474
3843
|
"title",
|
|
3475
3844
|
"description",
|
|
3476
3845
|
"fields",
|
|
@@ -3488,6 +3857,7 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3488
3857
|
"id",
|
|
3489
3858
|
"when",
|
|
3490
3859
|
"fallback",
|
|
3860
|
+
"area",
|
|
3491
3861
|
"title",
|
|
3492
3862
|
"description",
|
|
3493
3863
|
"fields",
|
|
@@ -3508,6 +3878,7 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3508
3878
|
"id",
|
|
3509
3879
|
"when",
|
|
3510
3880
|
"fallback",
|
|
3881
|
+
"area",
|
|
3511
3882
|
"addon",
|
|
3512
3883
|
"keys",
|
|
3513
3884
|
"scope",
|
|
@@ -3525,6 +3896,7 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3525
3896
|
"id",
|
|
3526
3897
|
"when",
|
|
3527
3898
|
"fallback",
|
|
3899
|
+
"area",
|
|
3528
3900
|
"src",
|
|
3529
3901
|
"alt",
|
|
3530
3902
|
"width",
|
|
@@ -3545,6 +3917,7 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3545
3917
|
"id",
|
|
3546
3918
|
"when",
|
|
3547
3919
|
"fallback",
|
|
3920
|
+
"area",
|
|
3548
3921
|
"name",
|
|
3549
3922
|
"record"
|
|
3550
3923
|
],
|
|
@@ -3559,6 +3932,7 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3559
3932
|
"id",
|
|
3560
3933
|
"when",
|
|
3561
3934
|
"fallback",
|
|
3935
|
+
"area",
|
|
3562
3936
|
"ext",
|
|
3563
3937
|
"props"
|
|
3564
3938
|
],
|
|
@@ -3573,6 +3947,7 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3573
3947
|
"id",
|
|
3574
3948
|
"when",
|
|
3575
3949
|
"fallback",
|
|
3950
|
+
"area",
|
|
3576
3951
|
"title",
|
|
3577
3952
|
"points",
|
|
3578
3953
|
"source",
|
|
@@ -3585,7 +3960,8 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3585
3960
|
"detail_panel",
|
|
3586
3961
|
"on_select",
|
|
3587
3962
|
"height",
|
|
3588
|
-
"summary"
|
|
3963
|
+
"summary",
|
|
3964
|
+
"select"
|
|
3589
3965
|
],
|
|
3590
3966
|
"required": [
|
|
3591
3967
|
"type",
|
|
@@ -3598,6 +3974,7 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3598
3974
|
"id",
|
|
3599
3975
|
"when",
|
|
3600
3976
|
"fallback",
|
|
3977
|
+
"area",
|
|
3601
3978
|
"label",
|
|
3602
3979
|
"value",
|
|
3603
3980
|
"source",
|
|
@@ -3623,6 +4000,7 @@ export const GENUI_V2_BLOCKS = {
|
|
|
3623
4000
|
"id",
|
|
3624
4001
|
"when",
|
|
3625
4002
|
"fallback",
|
|
4003
|
+
"area",
|
|
3626
4004
|
"title",
|
|
3627
4005
|
"direction",
|
|
3628
4006
|
"nodes",
|