@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.
@@ -447,6 +447,9 @@
447
447
  },
448
448
  "format": {
449
449
  "$ref": "#/$defs/statFormat"
450
+ },
451
+ "action": {
452
+ "$ref": "#/$defs/action"
450
453
  }
451
454
  }
452
455
  },
@@ -1362,6 +1365,83 @@
1362
1365
  "pattern": "^data\\.[A-Za-z_][A-Za-z0-9_]{0,63}$",
1363
1366
  "description": "Referencia a data.<nombre>."
1364
1367
  },
1368
+ "area": {
1369
+ "type": "string",
1370
+ "pattern": "^[a-z][a-z0-9_]{0,31}$",
1371
+ "description": "Nombre de región de un grid con `areas` (page@1)."
1372
+ },
1373
+ "areaRow": {
1374
+ "type": "string",
1375
+ "maxLength": 400,
1376
+ "pattern": "^(\\.|[a-z][a-z0-9_]{0,31})( (\\.|[a-z][a-z0-9_]{0,31})){0,11}$",
1377
+ "description": "Fila de la plantilla de `grid.areas`: nombres de región o `.` (celda vacía) separados por un espacio."
1378
+ },
1379
+ "gridTrack": {
1380
+ "type": "string",
1381
+ "maxLength": 64,
1382
+ "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) *\\))$",
1383
+ "description": "Pista de `grid.columns`/`grid.rows`: auto, Nfr, Npx o minmax(Npx, Nfr|Npx). Sin CSS libre."
1384
+ },
1385
+ "statePath": {
1386
+ "type": "string",
1387
+ "pattern": "^(?!(?:.*\\.)?(?:__proto__|constructor|prototype)(?:\\.|$))state(\\.[A-Za-z_][A-Za-z0-9_]{0,63}|\\.[0-9]{1,3}){1,6}$",
1388
+ "x-no-proto": true,
1389
+ "description": "Ruta de escritura en el estado de la página: raíz state."
1390
+ },
1391
+ "permissionKey": {
1392
+ "type": "string",
1393
+ "maxLength": 128,
1394
+ "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_:]*)+$",
1395
+ "description": "Clave de permiso del manifiesto (<addon>.<recurso>.<acción>)."
1396
+ },
1397
+ "chrome": {
1398
+ "enum": [
1399
+ "card",
1400
+ "bare"
1401
+ ],
1402
+ "description": "Marco de una sección/vista: card (el host pinta marco y estados) o bare."
1403
+ },
1404
+ "tabIcon": {
1405
+ "enum": [
1406
+ "map",
1407
+ "cards",
1408
+ "table",
1409
+ "dashboard",
1410
+ "list",
1411
+ "calendar",
1412
+ "chart"
1413
+ ],
1414
+ "description": "Icono de una opción de tabs: conjunto cerrado."
1415
+ },
1416
+ "extName": {
1417
+ "type": "string",
1418
+ "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9_]{0,63}\\.[a-z][a-z0-9_]{0,63}@[0-9]{1,3}$",
1419
+ "x-no-proto": true,
1420
+ "description": "Bloque custom registrado: <addon>.<nombre>@<mayor>."
1421
+ },
1422
+ "extProps": {
1423
+ "type": "object",
1424
+ "maxProperties": 16,
1425
+ "additionalProperties": {
1426
+ "anyOf": [
1427
+ {
1428
+ "$ref": "#/$defs/scalar"
1429
+ },
1430
+ {
1431
+ "type": "array",
1432
+ "items": {
1433
+ "type": [
1434
+ "string",
1435
+ "number",
1436
+ "boolean"
1437
+ ]
1438
+ },
1439
+ "maxItems": 50
1440
+ }
1441
+ ]
1442
+ },
1443
+ "description": "Props escalares de un bloque custom; sin objetos libres."
1444
+ },
1365
1445
  "overlay": {
1366
1446
  "type": "object",
1367
1447
  "additionalProperties": false,
@@ -1426,6 +1506,9 @@
1426
1506
  {
1427
1507
  "$ref": "#/$defs/block_kpi"
1428
1508
  },
1509
+ {
1510
+ "$ref": "#/$defs/block_kpi_card"
1511
+ },
1429
1512
  {
1430
1513
  "$ref": "#/$defs/block_stats"
1431
1514
  },
@@ -1500,6 +1583,9 @@
1500
1583
  "type": "string",
1501
1584
  "maxLength": 2000
1502
1585
  },
1586
+ "area": {
1587
+ "$ref": "#/$defs/area"
1588
+ },
1503
1589
  "direction": {
1504
1590
  "enum": [
1505
1591
  "vertical",
@@ -1540,10 +1626,53 @@
1540
1626
  "type": "string",
1541
1627
  "maxLength": 2000
1542
1628
  },
1629
+ "area": {
1630
+ "$ref": "#/$defs/area"
1631
+ },
1543
1632
  "columns": {
1544
- "type": "integer",
1545
- "minimum": 1,
1546
- "maximum": 4
1633
+ "anyOf": [
1634
+ {
1635
+ "type": "integer",
1636
+ "minimum": 1,
1637
+ "maximum": 4
1638
+ },
1639
+ {
1640
+ "type": "array",
1641
+ "items": {
1642
+ "$ref": "#/$defs/gridTrack"
1643
+ },
1644
+ "maxItems": 12,
1645
+ "minItems": 1
1646
+ }
1647
+ ],
1648
+ "description": "Número de columnas (1-4) o, con `areas`, una pista por columna."
1649
+ },
1650
+ "rows": {
1651
+ "type": "array",
1652
+ "items": {
1653
+ "$ref": "#/$defs/gridTrack"
1654
+ },
1655
+ "maxItems": 24,
1656
+ "minItems": 1,
1657
+ "description": "Pistas de fila (solo con `areas`)."
1658
+ },
1659
+ "areas": {
1660
+ "type": "array",
1661
+ "items": {
1662
+ "$ref": "#/$defs/areaRow"
1663
+ },
1664
+ "maxItems": 24,
1665
+ "minItems": 1,
1666
+ "description": "Plantilla de regiones; cada hijo declara `area`."
1667
+ },
1668
+ "mobile": {
1669
+ "type": "array",
1670
+ "items": {
1671
+ "$ref": "#/$defs/area"
1672
+ },
1673
+ "maxItems": 24,
1674
+ "minItems": 1,
1675
+ "description": "Orden de regiones en pantalla angosta, una por fila."
1547
1676
  },
1548
1677
  "title": {
1549
1678
  "$ref": "#/$defs/label"
@@ -1579,6 +1708,9 @@
1579
1708
  "type": "string",
1580
1709
  "maxLength": 2000
1581
1710
  },
1711
+ "area": {
1712
+ "$ref": "#/$defs/area"
1713
+ },
1582
1714
  "state": {
1583
1715
  "$ref": "#/$defs/bindingPath"
1584
1716
  },
@@ -1589,8 +1721,7 @@
1589
1721
  "additionalProperties": false,
1590
1722
  "required": [
1591
1723
  "key",
1592
- "label",
1593
- "blocks"
1724
+ "label"
1594
1725
  ],
1595
1726
  "properties": {
1596
1727
  "key": {
@@ -1606,11 +1737,47 @@
1606
1737
  },
1607
1738
  "maxItems": 24,
1608
1739
  "minItems": 1
1740
+ },
1741
+ "icon": {
1742
+ "$ref": "#/$defs/tabIcon"
1743
+ },
1744
+ "permission": {
1745
+ "$ref": "#/$defs/permissionKey"
1746
+ },
1747
+ "component": {
1748
+ "$ref": "#/$defs/extName"
1749
+ },
1750
+ "props": {
1751
+ "$ref": "#/$defs/extProps"
1609
1752
  }
1610
1753
  }
1611
1754
  },
1612
1755
  "maxItems": 8,
1613
1756
  "minItems": 1
1757
+ },
1758
+ "variant": {
1759
+ "enum": [
1760
+ "tabs",
1761
+ "segmented"
1762
+ ]
1763
+ },
1764
+ "default": {
1765
+ "$ref": "#/$defs/key"
1766
+ },
1767
+ "keep_alive": {
1768
+ "type": "boolean"
1769
+ },
1770
+ "chrome": {
1771
+ "$ref": "#/$defs/chrome"
1772
+ },
1773
+ "label": {
1774
+ "$ref": "#/$defs/label"
1775
+ },
1776
+ "mobile": {
1777
+ "enum": [
1778
+ "select",
1779
+ "scroll"
1780
+ ]
1614
1781
  }
1615
1782
  }
1616
1783
  },
@@ -1618,9 +1785,7 @@
1618
1785
  "type": "object",
1619
1786
  "additionalProperties": false,
1620
1787
  "required": [
1621
- "type",
1622
- "title",
1623
- "blocks"
1788
+ "type"
1624
1789
  ],
1625
1790
  "properties": {
1626
1791
  "type": {
@@ -1636,6 +1801,9 @@
1636
1801
  "type": "string",
1637
1802
  "maxLength": 2000
1638
1803
  },
1804
+ "area": {
1805
+ "$ref": "#/$defs/area"
1806
+ },
1639
1807
  "title": {
1640
1808
  "$ref": "#/$defs/label"
1641
1809
  },
@@ -1652,6 +1820,38 @@
1652
1820
  },
1653
1821
  "maxItems": 24,
1654
1822
  "minItems": 1
1823
+ },
1824
+ "mode": {
1825
+ "enum": [
1826
+ "declarative",
1827
+ "hybrid",
1828
+ "custom"
1829
+ ],
1830
+ "description": "declarative|hybrid usan `blocks`; custom usa `component`."
1831
+ },
1832
+ "permission": {
1833
+ "$ref": "#/$defs/permissionKey"
1834
+ },
1835
+ "on_denied": {
1836
+ "enum": [
1837
+ "hide",
1838
+ "notice"
1839
+ ]
1840
+ },
1841
+ "chrome": {
1842
+ "$ref": "#/$defs/chrome"
1843
+ },
1844
+ "source": {
1845
+ "$ref": "#/$defs/source"
1846
+ },
1847
+ "empty": {
1848
+ "$ref": "#/$defs/label"
1849
+ },
1850
+ "component": {
1851
+ "$ref": "#/$defs/extName"
1852
+ },
1853
+ "props": {
1854
+ "$ref": "#/$defs/extProps"
1655
1855
  }
1656
1856
  }
1657
1857
  },
@@ -1676,6 +1876,9 @@
1676
1876
  "type": "string",
1677
1877
  "maxLength": 2000
1678
1878
  },
1879
+ "area": {
1880
+ "$ref": "#/$defs/area"
1881
+ },
1679
1882
  "text": {
1680
1883
  "$ref": "#/$defs/text"
1681
1884
  },
@@ -1705,6 +1908,9 @@
1705
1908
  "type": "string",
1706
1909
  "maxLength": 2000
1707
1910
  },
1911
+ "area": {
1912
+ "$ref": "#/$defs/area"
1913
+ },
1708
1914
  "markdown": {
1709
1915
  "type": "string",
1710
1916
  "maxLength": 8000
@@ -1732,6 +1938,9 @@
1732
1938
  "type": "string",
1733
1939
  "maxLength": 2000
1734
1940
  },
1941
+ "area": {
1942
+ "$ref": "#/$defs/area"
1943
+ },
1735
1944
  "title": {
1736
1945
  "$ref": "#/$defs/label"
1737
1946
  },
@@ -1764,6 +1973,9 @@
1764
1973
  "type": "string",
1765
1974
  "maxLength": 2000
1766
1975
  },
1976
+ "area": {
1977
+ "$ref": "#/$defs/area"
1978
+ },
1767
1979
  "title": {
1768
1980
  "$ref": "#/$defs/label"
1769
1981
  },
@@ -1801,6 +2013,9 @@
1801
2013
  "type": "string",
1802
2014
  "maxLength": 2000
1803
2015
  },
2016
+ "area": {
2017
+ "$ref": "#/$defs/area"
2018
+ },
1804
2019
  "title": {
1805
2020
  "$ref": "#/$defs/label"
1806
2021
  },
@@ -1856,6 +2071,9 @@
1856
2071
  "type": "string",
1857
2072
  "maxLength": 2000
1858
2073
  },
2074
+ "area": {
2075
+ "$ref": "#/$defs/area"
2076
+ },
1859
2077
  "title": {
1860
2078
  "$ref": "#/$defs/label"
1861
2079
  },
@@ -1908,6 +2126,9 @@
1908
2126
  "type": "string",
1909
2127
  "maxLength": 2000
1910
2128
  },
2129
+ "area": {
2130
+ "$ref": "#/$defs/area"
2131
+ },
1911
2132
  "title": {
1912
2133
  "$ref": "#/$defs/label"
1913
2134
  },
@@ -1921,6 +2142,65 @@
1921
2142
  }
1922
2143
  }
1923
2144
  },
2145
+ "block_kpi_card": {
2146
+ "type": "object",
2147
+ "additionalProperties": false,
2148
+ "required": [
2149
+ "type",
2150
+ "label",
2151
+ "value"
2152
+ ],
2153
+ "properties": {
2154
+ "type": {
2155
+ "const": "kpi_card"
2156
+ },
2157
+ "id": {
2158
+ "$ref": "#/$defs/id"
2159
+ },
2160
+ "when": {
2161
+ "$ref": "#/$defs/predicate"
2162
+ },
2163
+ "fallback": {
2164
+ "type": "string",
2165
+ "maxLength": 2000
2166
+ },
2167
+ "area": {
2168
+ "$ref": "#/$defs/area"
2169
+ },
2170
+ "label": {
2171
+ "$ref": "#/$defs/label"
2172
+ },
2173
+ "value": {
2174
+ "$ref": "#/$defs/value"
2175
+ },
2176
+ "format": {
2177
+ "$ref": "#/$defs/statFormat"
2178
+ },
2179
+ "trend": {
2180
+ "anyOf": [
2181
+ {
2182
+ "enum": [
2183
+ "up",
2184
+ "down",
2185
+ "flat"
2186
+ ]
2187
+ },
2188
+ {
2189
+ "$ref": "#/$defs/ref"
2190
+ }
2191
+ ]
2192
+ },
2193
+ "tone": {
2194
+ "$ref": "#/$defs/tone"
2195
+ },
2196
+ "hint": {
2197
+ "$ref": "#/$defs/label"
2198
+ },
2199
+ "cta": {
2200
+ "$ref": "#/$defs/action"
2201
+ }
2202
+ }
2203
+ },
1924
2204
  "block_stats": {
1925
2205
  "type": "object",
1926
2206
  "additionalProperties": false,
@@ -1941,6 +2221,9 @@
1941
2221
  "type": "string",
1942
2222
  "maxLength": 2000
1943
2223
  },
2224
+ "area": {
2225
+ "$ref": "#/$defs/area"
2226
+ },
1944
2227
  "title": {
1945
2228
  "$ref": "#/$defs/label"
1946
2229
  },
@@ -1992,6 +2275,9 @@
1992
2275
  "type": "string",
1993
2276
  "maxLength": 2000
1994
2277
  },
2278
+ "area": {
2279
+ "$ref": "#/$defs/area"
2280
+ },
1995
2281
  "title": {
1996
2282
  "$ref": "#/$defs/label"
1997
2283
  },
@@ -2025,6 +2311,9 @@
2025
2311
  "type": "string",
2026
2312
  "maxLength": 2000
2027
2313
  },
2314
+ "area": {
2315
+ "$ref": "#/$defs/area"
2316
+ },
2028
2317
  "title": {
2029
2318
  "$ref": "#/$defs/label"
2030
2319
  },
@@ -2062,6 +2351,9 @@
2062
2351
  "type": "string",
2063
2352
  "maxLength": 2000
2064
2353
  },
2354
+ "area": {
2355
+ "$ref": "#/$defs/area"
2356
+ },
2065
2357
  "title": {
2066
2358
  "$ref": "#/$defs/label"
2067
2359
  },
@@ -2145,6 +2437,9 @@
2145
2437
  "type": "string",
2146
2438
  "maxLength": 2000
2147
2439
  },
2440
+ "area": {
2441
+ "$ref": "#/$defs/area"
2442
+ },
2148
2443
  "title": {
2149
2444
  "$ref": "#/$defs/label"
2150
2445
  },
@@ -2198,6 +2493,9 @@
2198
2493
  "type": "string",
2199
2494
  "maxLength": 2000
2200
2495
  },
2496
+ "area": {
2497
+ "$ref": "#/$defs/area"
2498
+ },
2201
2499
  "title": {
2202
2500
  "$ref": "#/$defs/label"
2203
2501
  },
@@ -2247,6 +2545,9 @@
2247
2545
  "type": "string",
2248
2546
  "maxLength": 2000
2249
2547
  },
2548
+ "area": {
2549
+ "$ref": "#/$defs/area"
2550
+ },
2250
2551
  "title": {
2251
2552
  "$ref": "#/$defs/label"
2252
2553
  },
@@ -2317,6 +2618,9 @@
2317
2618
  "type": "string",
2318
2619
  "maxLength": 2000
2319
2620
  },
2621
+ "area": {
2622
+ "$ref": "#/$defs/area"
2623
+ },
2320
2624
  "title": {
2321
2625
  "$ref": "#/$defs/label"
2322
2626
  },
@@ -2399,6 +2703,9 @@
2399
2703
  "type": "string",
2400
2704
  "maxLength": 2000
2401
2705
  },
2706
+ "area": {
2707
+ "$ref": "#/$defs/area"
2708
+ },
2402
2709
  "title": {
2403
2710
  "$ref": "#/$defs/label"
2404
2711
  },
@@ -2482,6 +2789,9 @@
2482
2789
  "type": "string",
2483
2790
  "maxLength": 2000
2484
2791
  },
2792
+ "area": {
2793
+ "$ref": "#/$defs/area"
2794
+ },
2485
2795
  "title": {
2486
2796
  "$ref": "#/$defs/label"
2487
2797
  },
@@ -2618,6 +2928,9 @@
2618
2928
  "type": "string",
2619
2929
  "maxLength": 2000
2620
2930
  },
2931
+ "area": {
2932
+ "$ref": "#/$defs/area"
2933
+ },
2621
2934
  "addon": {
2622
2935
  "type": "string",
2623
2936
  "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9_]{0,63}$",
@@ -2666,6 +2979,9 @@
2666
2979
  "type": "string",
2667
2980
  "maxLength": 2000
2668
2981
  },
2982
+ "area": {
2983
+ "$ref": "#/$defs/area"
2984
+ },
2669
2985
  "src": {
2670
2986
  "type": "string",
2671
2987
  "maxLength": 2048,
@@ -2711,6 +3027,9 @@
2711
3027
  "type": "string",
2712
3028
  "maxLength": 2000
2713
3029
  },
3030
+ "area": {
3031
+ "$ref": "#/$defs/area"
3032
+ },
2714
3033
  "name": {
2715
3034
  "type": "string",
2716
3035
  "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*){1,3}$",
@@ -2742,32 +3061,14 @@
2742
3061
  "type": "string",
2743
3062
  "maxLength": 2000
2744
3063
  },
3064
+ "area": {
3065
+ "$ref": "#/$defs/area"
3066
+ },
2745
3067
  "ext": {
2746
- "type": "string",
2747
- "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9_]{0,63}\\.[a-z][a-z0-9_]{0,63}@[0-9]{1,3}$",
2748
- "x-no-proto": true
3068
+ "$ref": "#/$defs/extName"
2749
3069
  },
2750
3070
  "props": {
2751
- "type": "object",
2752
- "maxProperties": 16,
2753
- "additionalProperties": {
2754
- "anyOf": [
2755
- {
2756
- "$ref": "#/$defs/scalar"
2757
- },
2758
- {
2759
- "type": "array",
2760
- "items": {
2761
- "type": [
2762
- "string",
2763
- "number",
2764
- "boolean"
2765
- ]
2766
- },
2767
- "maxItems": 50
2768
- }
2769
- ]
2770
- }
3071
+ "$ref": "#/$defs/extProps"
2771
3072
  }
2772
3073
  }
2773
3074
  },
@@ -2878,6 +3179,9 @@
2878
3179
  "type": "string",
2879
3180
  "maxLength": 2000
2880
3181
  },
3182
+ "area": {
3183
+ "$ref": "#/$defs/area"
3184
+ },
2881
3185
  "title": {
2882
3186
  "$ref": "#/$defs/label"
2883
3187
  },
@@ -2938,6 +3242,9 @@
2938
3242
  "type": "string",
2939
3243
  "maxLength": 2000,
2940
3244
  "description": "Resumen accesible (obligatorio)."
3245
+ },
3246
+ "select": {
3247
+ "$ref": "#/$defs/statePath"
2941
3248
  }
2942
3249
  }
2943
3250
  },
@@ -2962,6 +3269,9 @@
2962
3269
  "type": "string",
2963
3270
  "maxLength": 2000
2964
3271
  },
3272
+ "area": {
3273
+ "$ref": "#/$defs/area"
3274
+ },
2965
3275
  "label": {
2966
3276
  "$ref": "#/$defs/label"
2967
3277
  },
@@ -3118,6 +3428,9 @@
3118
3428
  "type": "string",
3119
3429
  "maxLength": 2000
3120
3430
  },
3431
+ "area": {
3432
+ "$ref": "#/$defs/area"
3433
+ },
3121
3434
  "title": {
3122
3435
  "$ref": "#/$defs/label"
3123
3436
  },