@asteby/metacore-genui 2.3.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.
@@ -44,7 +44,7 @@ export type StateList = Scalar[];
44
44
  * This interface was referenced by `GenuiV2`'s JSON-Schema
45
45
  * via the `definition` "block".
46
46
  */
47
- export type Block = BlockStack | BlockGrid | BlockTabs | BlockSection | BlockText | BlockMarkdown | BlockAlert | BlockEmpty | BlockCard | BlockList | BlockKpi | BlockStats | BlockLinks | BlockTimeline | BlockTable | BlockModelView | BlockView | BlockChart | BlockForm | BlockWizard | BlockConfirm | BlockSettings | BlockMedia | BlockSlot | BlockExt | BlockMap | BlockMetric | BlockDiagram;
47
+ export type Block = BlockStack | BlockGrid | BlockTabs | BlockSection | BlockText | BlockMarkdown | BlockAlert | BlockEmpty | BlockCard | BlockList | BlockKpi | BlockKpiCard | BlockStats | BlockLinks | BlockTimeline | BlockTable | BlockModelView | BlockView | BlockChart | BlockForm | BlockWizard | BlockConfirm | BlockSettings | BlockMedia | BlockSlot | BlockExt | BlockMap | BlockMetric | BlockDiagram;
48
48
  /**
49
49
  * Identificador único dentro del documento.
50
50
  *
@@ -52,6 +52,27 @@ export type Block = BlockStack | BlockGrid | BlockTabs | BlockSection | BlockTex
52
52
  * via the `definition` "id".
53
53
  */
54
54
  export type Id = string;
55
+ /**
56
+ * Nombre de región de un grid con `areas` (page@1).
57
+ *
58
+ * This interface was referenced by `GenuiV2`'s JSON-Schema
59
+ * via the `definition` "area".
60
+ */
61
+ export type Area = string;
62
+ /**
63
+ * Pista de `grid.columns`/`grid.rows`: auto, Nfr, Npx o minmax(Npx, Nfr|Npx). Sin CSS libre.
64
+ *
65
+ * This interface was referenced by `GenuiV2`'s JSON-Schema
66
+ * via the `definition` "gridTrack".
67
+ */
68
+ export type GridTrack = string;
69
+ /**
70
+ * Fila de la plantilla de `grid.areas`: nombres de región o `.` (celda vacía) separados por un espacio.
71
+ *
72
+ * This interface was referenced by `GenuiV2`'s JSON-Schema
73
+ * via the `definition` "areaRow".
74
+ */
75
+ export type AreaRow = string;
55
76
  /**
56
77
  * 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.
57
78
  *
@@ -59,6 +80,41 @@ export type Id = string;
59
80
  * via the `definition` "key".
60
81
  */
61
82
  export type Key = string;
83
+ /**
84
+ * Icono de una opción de tabs: conjunto cerrado.
85
+ *
86
+ * This interface was referenced by `GenuiV2`'s JSON-Schema
87
+ * via the `definition` "tabIcon".
88
+ */
89
+ export type TabIcon = 'map' | 'cards' | 'table' | 'dashboard' | 'list' | 'calendar' | 'chart';
90
+ /**
91
+ * Clave de permiso del manifiesto (<addon>.<recurso>.<acción>).
92
+ *
93
+ * This interface was referenced by `GenuiV2`'s JSON-Schema
94
+ * via the `definition` "permissionKey".
95
+ */
96
+ export type PermissionKey = string;
97
+ /**
98
+ * Bloque custom registrado: <addon>.<nombre>@<mayor>.
99
+ *
100
+ * This interface was referenced by `GenuiV2`'s JSON-Schema
101
+ * via the `definition` "extName".
102
+ */
103
+ export type ExtName = string;
104
+ /**
105
+ * Marco de una sección/vista: card (el host pinta marco y estados) o bare.
106
+ *
107
+ * This interface was referenced by `GenuiV2`'s JSON-Schema
108
+ * via the `definition` "chrome".
109
+ */
110
+ export type Chrome = 'card' | 'bare';
111
+ /**
112
+ * Referencia a data.<nombre>.
113
+ *
114
+ * This interface was referenced by `GenuiV2`'s JSON-Schema
115
+ * via the `definition` "source".
116
+ */
117
+ export type Source = string;
62
118
  /**
63
119
  * Texto visible: literal, clave i18n o vinculación.
64
120
  *
@@ -122,19 +178,19 @@ export type Link = string;
122
178
  */
123
179
  export type StatFormat = 'number' | 'currency' | 'percent' | 'compact' | 'date' | 'datetime' | 'relative_date';
124
180
  /**
125
- * Referencia a data.<nombre>.
181
+ * Tipos de campo (field.kind).
126
182
  *
127
183
  * This interface was referenced by `GenuiV2`'s JSON-Schema
128
- * via the `definition` "source".
184
+ * via the `definition` "fieldKind".
129
185
  */
130
- export type Source = string;
186
+ export type FieldKind = 'text' | 'textarea' | 'number' | 'integer' | 'email' | 'url' | 'phone' | 'date' | 'datetime' | 'time' | 'boolean' | 'switch' | 'select' | 'multiselect' | 'search';
131
187
  /**
132
- * Tipos de campo (field.kind).
188
+ * Ruta de escritura en el estado de la página: raíz state.
133
189
  *
134
190
  * This interface was referenced by `GenuiV2`'s JSON-Schema
135
- * via the `definition` "fieldKind".
191
+ * via the `definition` "statePath".
136
192
  */
137
- export type FieldKind = 'text' | 'textarea' | 'number' | 'integer' | 'email' | 'url' | 'phone' | 'date' | 'datetime' | 'time' | 'boolean' | 'switch' | 'select' | 'multiselect' | 'search';
193
+ export type StatePath = string;
138
194
  /**
139
195
  * This interface was referenced by `GenuiV2`'s JSON-Schema
140
196
  * via the `definition` "widgetSize".
@@ -236,6 +292,7 @@ export interface BlockStack {
236
292
  id?: Id;
237
293
  when?: Predicate;
238
294
  fallback?: string;
295
+ area?: Area;
239
296
  direction?: 'vertical' | 'horizontal';
240
297
  title?: Label;
241
298
  /**
@@ -272,7 +329,57 @@ export interface BlockGrid {
272
329
  id?: Id;
273
330
  when?: Predicate;
274
331
  fallback?: string;
275
- columns?: number;
332
+ area?: Area;
333
+ /**
334
+ * Número de columnas (1-4) o, con `areas`, una pista por columna.
335
+ */
336
+ columns?: number | [GridTrack] | [GridTrack, GridTrack] | [GridTrack, GridTrack, GridTrack] | [GridTrack, GridTrack, GridTrack, GridTrack] | [GridTrack, GridTrack, GridTrack, GridTrack, GridTrack] | [GridTrack, GridTrack, GridTrack, GridTrack, GridTrack, GridTrack] | [GridTrack, GridTrack, GridTrack, GridTrack, GridTrack, GridTrack, GridTrack] | [GridTrack, GridTrack, GridTrack, GridTrack, GridTrack, GridTrack, GridTrack, GridTrack] | [GridTrack, GridTrack, GridTrack, GridTrack, GridTrack, GridTrack, GridTrack, GridTrack, GridTrack] | [GridTrack, GridTrack, GridTrack, GridTrack, GridTrack, GridTrack, GridTrack, GridTrack, GridTrack, GridTrack] | [
337
+ GridTrack,
338
+ GridTrack,
339
+ GridTrack,
340
+ GridTrack,
341
+ GridTrack,
342
+ GridTrack,
343
+ GridTrack,
344
+ GridTrack,
345
+ GridTrack,
346
+ GridTrack,
347
+ GridTrack
348
+ ] | [
349
+ GridTrack,
350
+ GridTrack,
351
+ GridTrack,
352
+ GridTrack,
353
+ GridTrack,
354
+ GridTrack,
355
+ GridTrack,
356
+ GridTrack,
357
+ GridTrack,
358
+ GridTrack,
359
+ GridTrack,
360
+ GridTrack
361
+ ];
362
+ /**
363
+ * Pistas de fila (solo con `areas`).
364
+ *
365
+ * @minItems 1
366
+ * @maxItems 24
367
+ */
368
+ rows?: [GridTrack, ...GridTrack[]];
369
+ /**
370
+ * Plantilla de regiones; cada hijo declara `area`.
371
+ *
372
+ * @minItems 1
373
+ * @maxItems 24
374
+ */
375
+ areas?: [AreaRow, ...AreaRow[]];
376
+ /**
377
+ * Orden de regiones en pantalla angosta, una por fila.
378
+ *
379
+ * @minItems 1
380
+ * @maxItems 24
381
+ */
382
+ mobile?: [Area, ...Area[]];
276
383
  title?: Label;
277
384
  /**
278
385
  * @minItems 1
@@ -289,6 +396,7 @@ export interface BlockTabs {
289
396
  id?: Id;
290
397
  when?: Predicate;
291
398
  fallback?: string;
399
+ area?: Area;
292
400
  state?: BindingPath;
293
401
  /**
294
402
  * @minItems 1
@@ -302,7 +410,11 @@ export interface BlockTabs {
302
410
  * @minItems 1
303
411
  * @maxItems 24
304
412
  */
305
- blocks: [Block, ...Block[]];
413
+ blocks?: [Block, ...Block[]];
414
+ icon?: TabIcon;
415
+ permission?: PermissionKey;
416
+ component?: ExtName;
417
+ props?: ExtProps;
306
418
  }
307
419
  ] | [
308
420
  {
@@ -312,7 +424,11 @@ export interface BlockTabs {
312
424
  * @minItems 1
313
425
  * @maxItems 24
314
426
  */
315
- blocks: [Block, ...Block[]];
427
+ blocks?: [Block, ...Block[]];
428
+ icon?: TabIcon;
429
+ permission?: PermissionKey;
430
+ component?: ExtName;
431
+ props?: ExtProps;
316
432
  },
317
433
  {
318
434
  key: Key;
@@ -321,7 +437,11 @@ export interface BlockTabs {
321
437
  * @minItems 1
322
438
  * @maxItems 24
323
439
  */
324
- blocks: [Block, ...Block[]];
440
+ blocks?: [Block, ...Block[]];
441
+ icon?: TabIcon;
442
+ permission?: PermissionKey;
443
+ component?: ExtName;
444
+ props?: ExtProps;
325
445
  }
326
446
  ] | [
327
447
  {
@@ -331,7 +451,11 @@ export interface BlockTabs {
331
451
  * @minItems 1
332
452
  * @maxItems 24
333
453
  */
334
- blocks: [Block, ...Block[]];
454
+ blocks?: [Block, ...Block[]];
455
+ icon?: TabIcon;
456
+ permission?: PermissionKey;
457
+ component?: ExtName;
458
+ props?: ExtProps;
335
459
  },
336
460
  {
337
461
  key: Key;
@@ -340,7 +464,11 @@ export interface BlockTabs {
340
464
  * @minItems 1
341
465
  * @maxItems 24
342
466
  */
343
- blocks: [Block, ...Block[]];
467
+ blocks?: [Block, ...Block[]];
468
+ icon?: TabIcon;
469
+ permission?: PermissionKey;
470
+ component?: ExtName;
471
+ props?: ExtProps;
344
472
  },
345
473
  {
346
474
  key: Key;
@@ -349,7 +477,11 @@ export interface BlockTabs {
349
477
  * @minItems 1
350
478
  * @maxItems 24
351
479
  */
352
- blocks: [Block, ...Block[]];
480
+ blocks?: [Block, ...Block[]];
481
+ icon?: TabIcon;
482
+ permission?: PermissionKey;
483
+ component?: ExtName;
484
+ props?: ExtProps;
353
485
  }
354
486
  ] | [
355
487
  {
@@ -359,7 +491,11 @@ export interface BlockTabs {
359
491
  * @minItems 1
360
492
  * @maxItems 24
361
493
  */
362
- blocks: [Block, ...Block[]];
494
+ blocks?: [Block, ...Block[]];
495
+ icon?: TabIcon;
496
+ permission?: PermissionKey;
497
+ component?: ExtName;
498
+ props?: ExtProps;
363
499
  },
364
500
  {
365
501
  key: Key;
@@ -368,7 +504,11 @@ export interface BlockTabs {
368
504
  * @minItems 1
369
505
  * @maxItems 24
370
506
  */
371
- blocks: [Block, ...Block[]];
507
+ blocks?: [Block, ...Block[]];
508
+ icon?: TabIcon;
509
+ permission?: PermissionKey;
510
+ component?: ExtName;
511
+ props?: ExtProps;
372
512
  },
373
513
  {
374
514
  key: Key;
@@ -377,7 +517,11 @@ export interface BlockTabs {
377
517
  * @minItems 1
378
518
  * @maxItems 24
379
519
  */
380
- blocks: [Block, ...Block[]];
520
+ blocks?: [Block, ...Block[]];
521
+ icon?: TabIcon;
522
+ permission?: PermissionKey;
523
+ component?: ExtName;
524
+ props?: ExtProps;
381
525
  },
382
526
  {
383
527
  key: Key;
@@ -386,7 +530,11 @@ export interface BlockTabs {
386
530
  * @minItems 1
387
531
  * @maxItems 24
388
532
  */
389
- blocks: [Block, ...Block[]];
533
+ blocks?: [Block, ...Block[]];
534
+ icon?: TabIcon;
535
+ permission?: PermissionKey;
536
+ component?: ExtName;
537
+ props?: ExtProps;
390
538
  }
391
539
  ] | [
392
540
  {
@@ -396,7 +544,11 @@ export interface BlockTabs {
396
544
  * @minItems 1
397
545
  * @maxItems 24
398
546
  */
399
- blocks: [Block, ...Block[]];
547
+ blocks?: [Block, ...Block[]];
548
+ icon?: TabIcon;
549
+ permission?: PermissionKey;
550
+ component?: ExtName;
551
+ props?: ExtProps;
400
552
  },
401
553
  {
402
554
  key: Key;
@@ -405,7 +557,11 @@ export interface BlockTabs {
405
557
  * @minItems 1
406
558
  * @maxItems 24
407
559
  */
408
- blocks: [Block, ...Block[]];
560
+ blocks?: [Block, ...Block[]];
561
+ icon?: TabIcon;
562
+ permission?: PermissionKey;
563
+ component?: ExtName;
564
+ props?: ExtProps;
409
565
  },
410
566
  {
411
567
  key: Key;
@@ -414,7 +570,11 @@ export interface BlockTabs {
414
570
  * @minItems 1
415
571
  * @maxItems 24
416
572
  */
417
- blocks: [Block, ...Block[]];
573
+ blocks?: [Block, ...Block[]];
574
+ icon?: TabIcon;
575
+ permission?: PermissionKey;
576
+ component?: ExtName;
577
+ props?: ExtProps;
418
578
  },
419
579
  {
420
580
  key: Key;
@@ -423,7 +583,11 @@ export interface BlockTabs {
423
583
  * @minItems 1
424
584
  * @maxItems 24
425
585
  */
426
- blocks: [Block, ...Block[]];
586
+ blocks?: [Block, ...Block[]];
587
+ icon?: TabIcon;
588
+ permission?: PermissionKey;
589
+ component?: ExtName;
590
+ props?: ExtProps;
427
591
  },
428
592
  {
429
593
  key: Key;
@@ -432,7 +596,11 @@ export interface BlockTabs {
432
596
  * @minItems 1
433
597
  * @maxItems 24
434
598
  */
435
- blocks: [Block, ...Block[]];
599
+ blocks?: [Block, ...Block[]];
600
+ icon?: TabIcon;
601
+ permission?: PermissionKey;
602
+ component?: ExtName;
603
+ props?: ExtProps;
436
604
  }
437
605
  ] | [
438
606
  {
@@ -442,7 +610,11 @@ export interface BlockTabs {
442
610
  * @minItems 1
443
611
  * @maxItems 24
444
612
  */
445
- blocks: [Block, ...Block[]];
613
+ blocks?: [Block, ...Block[]];
614
+ icon?: TabIcon;
615
+ permission?: PermissionKey;
616
+ component?: ExtName;
617
+ props?: ExtProps;
446
618
  },
447
619
  {
448
620
  key: Key;
@@ -451,7 +623,11 @@ export interface BlockTabs {
451
623
  * @minItems 1
452
624
  * @maxItems 24
453
625
  */
454
- blocks: [Block, ...Block[]];
626
+ blocks?: [Block, ...Block[]];
627
+ icon?: TabIcon;
628
+ permission?: PermissionKey;
629
+ component?: ExtName;
630
+ props?: ExtProps;
455
631
  },
456
632
  {
457
633
  key: Key;
@@ -460,7 +636,11 @@ export interface BlockTabs {
460
636
  * @minItems 1
461
637
  * @maxItems 24
462
638
  */
463
- blocks: [Block, ...Block[]];
639
+ blocks?: [Block, ...Block[]];
640
+ icon?: TabIcon;
641
+ permission?: PermissionKey;
642
+ component?: ExtName;
643
+ props?: ExtProps;
464
644
  },
465
645
  {
466
646
  key: Key;
@@ -469,7 +649,11 @@ export interface BlockTabs {
469
649
  * @minItems 1
470
650
  * @maxItems 24
471
651
  */
472
- blocks: [Block, ...Block[]];
652
+ blocks?: [Block, ...Block[]];
653
+ icon?: TabIcon;
654
+ permission?: PermissionKey;
655
+ component?: ExtName;
656
+ props?: ExtProps;
473
657
  },
474
658
  {
475
659
  key: Key;
@@ -478,7 +662,11 @@ export interface BlockTabs {
478
662
  * @minItems 1
479
663
  * @maxItems 24
480
664
  */
481
- blocks: [Block, ...Block[]];
665
+ blocks?: [Block, ...Block[]];
666
+ icon?: TabIcon;
667
+ permission?: PermissionKey;
668
+ component?: ExtName;
669
+ props?: ExtProps;
482
670
  },
483
671
  {
484
672
  key: Key;
@@ -487,7 +675,11 @@ export interface BlockTabs {
487
675
  * @minItems 1
488
676
  * @maxItems 24
489
677
  */
490
- blocks: [Block, ...Block[]];
678
+ blocks?: [Block, ...Block[]];
679
+ icon?: TabIcon;
680
+ permission?: PermissionKey;
681
+ component?: ExtName;
682
+ props?: ExtProps;
491
683
  }
492
684
  ] | [
493
685
  {
@@ -497,7 +689,11 @@ export interface BlockTabs {
497
689
  * @minItems 1
498
690
  * @maxItems 24
499
691
  */
500
- blocks: [Block, ...Block[]];
692
+ blocks?: [Block, ...Block[]];
693
+ icon?: TabIcon;
694
+ permission?: PermissionKey;
695
+ component?: ExtName;
696
+ props?: ExtProps;
501
697
  },
502
698
  {
503
699
  key: Key;
@@ -506,7 +702,11 @@ export interface BlockTabs {
506
702
  * @minItems 1
507
703
  * @maxItems 24
508
704
  */
509
- blocks: [Block, ...Block[]];
705
+ blocks?: [Block, ...Block[]];
706
+ icon?: TabIcon;
707
+ permission?: PermissionKey;
708
+ component?: ExtName;
709
+ props?: ExtProps;
510
710
  },
511
711
  {
512
712
  key: Key;
@@ -515,7 +715,11 @@ export interface BlockTabs {
515
715
  * @minItems 1
516
716
  * @maxItems 24
517
717
  */
518
- blocks: [Block, ...Block[]];
718
+ blocks?: [Block, ...Block[]];
719
+ icon?: TabIcon;
720
+ permission?: PermissionKey;
721
+ component?: ExtName;
722
+ props?: ExtProps;
519
723
  },
520
724
  {
521
725
  key: Key;
@@ -524,7 +728,11 @@ export interface BlockTabs {
524
728
  * @minItems 1
525
729
  * @maxItems 24
526
730
  */
527
- blocks: [Block, ...Block[]];
731
+ blocks?: [Block, ...Block[]];
732
+ icon?: TabIcon;
733
+ permission?: PermissionKey;
734
+ component?: ExtName;
735
+ props?: ExtProps;
528
736
  },
529
737
  {
530
738
  key: Key;
@@ -533,7 +741,11 @@ export interface BlockTabs {
533
741
  * @minItems 1
534
742
  * @maxItems 24
535
743
  */
536
- blocks: [Block, ...Block[]];
744
+ blocks?: [Block, ...Block[]];
745
+ icon?: TabIcon;
746
+ permission?: PermissionKey;
747
+ component?: ExtName;
748
+ props?: ExtProps;
537
749
  },
538
750
  {
539
751
  key: Key;
@@ -542,7 +754,11 @@ export interface BlockTabs {
542
754
  * @minItems 1
543
755
  * @maxItems 24
544
756
  */
545
- blocks: [Block, ...Block[]];
757
+ blocks?: [Block, ...Block[]];
758
+ icon?: TabIcon;
759
+ permission?: PermissionKey;
760
+ component?: ExtName;
761
+ props?: ExtProps;
546
762
  },
547
763
  {
548
764
  key: Key;
@@ -551,7 +767,11 @@ export interface BlockTabs {
551
767
  * @minItems 1
552
768
  * @maxItems 24
553
769
  */
554
- blocks: [Block, ...Block[]];
770
+ blocks?: [Block, ...Block[]];
771
+ icon?: TabIcon;
772
+ permission?: PermissionKey;
773
+ component?: ExtName;
774
+ props?: ExtProps;
555
775
  }
556
776
  ] | [
557
777
  {
@@ -561,7 +781,11 @@ export interface BlockTabs {
561
781
  * @minItems 1
562
782
  * @maxItems 24
563
783
  */
564
- blocks: [Block, ...Block[]];
784
+ blocks?: [Block, ...Block[]];
785
+ icon?: TabIcon;
786
+ permission?: PermissionKey;
787
+ component?: ExtName;
788
+ props?: ExtProps;
565
789
  },
566
790
  {
567
791
  key: Key;
@@ -570,7 +794,11 @@ export interface BlockTabs {
570
794
  * @minItems 1
571
795
  * @maxItems 24
572
796
  */
573
- blocks: [Block, ...Block[]];
797
+ blocks?: [Block, ...Block[]];
798
+ icon?: TabIcon;
799
+ permission?: PermissionKey;
800
+ component?: ExtName;
801
+ props?: ExtProps;
574
802
  },
575
803
  {
576
804
  key: Key;
@@ -579,7 +807,11 @@ export interface BlockTabs {
579
807
  * @minItems 1
580
808
  * @maxItems 24
581
809
  */
582
- blocks: [Block, ...Block[]];
810
+ blocks?: [Block, ...Block[]];
811
+ icon?: TabIcon;
812
+ permission?: PermissionKey;
813
+ component?: ExtName;
814
+ props?: ExtProps;
583
815
  },
584
816
  {
585
817
  key: Key;
@@ -588,7 +820,11 @@ export interface BlockTabs {
588
820
  * @minItems 1
589
821
  * @maxItems 24
590
822
  */
591
- blocks: [Block, ...Block[]];
823
+ blocks?: [Block, ...Block[]];
824
+ icon?: TabIcon;
825
+ permission?: PermissionKey;
826
+ component?: ExtName;
827
+ props?: ExtProps;
592
828
  },
593
829
  {
594
830
  key: Key;
@@ -597,7 +833,11 @@ export interface BlockTabs {
597
833
  * @minItems 1
598
834
  * @maxItems 24
599
835
  */
600
- blocks: [Block, ...Block[]];
836
+ blocks?: [Block, ...Block[]];
837
+ icon?: TabIcon;
838
+ permission?: PermissionKey;
839
+ component?: ExtName;
840
+ props?: ExtProps;
601
841
  },
602
842
  {
603
843
  key: Key;
@@ -606,7 +846,11 @@ export interface BlockTabs {
606
846
  * @minItems 1
607
847
  * @maxItems 24
608
848
  */
609
- blocks: [Block, ...Block[]];
849
+ blocks?: [Block, ...Block[]];
850
+ icon?: TabIcon;
851
+ permission?: PermissionKey;
852
+ component?: ExtName;
853
+ props?: ExtProps;
610
854
  },
611
855
  {
612
856
  key: Key;
@@ -615,7 +859,11 @@ export interface BlockTabs {
615
859
  * @minItems 1
616
860
  * @maxItems 24
617
861
  */
618
- blocks: [Block, ...Block[]];
862
+ blocks?: [Block, ...Block[]];
863
+ icon?: TabIcon;
864
+ permission?: PermissionKey;
865
+ component?: ExtName;
866
+ props?: ExtProps;
619
867
  },
620
868
  {
621
869
  key: Key;
@@ -624,9 +872,28 @@ export interface BlockTabs {
624
872
  * @minItems 1
625
873
  * @maxItems 24
626
874
  */
627
- blocks: [Block, ...Block[]];
875
+ blocks?: [Block, ...Block[]];
876
+ icon?: TabIcon;
877
+ permission?: PermissionKey;
878
+ component?: ExtName;
879
+ props?: ExtProps;
628
880
  }
629
881
  ];
882
+ variant?: 'tabs' | 'segmented';
883
+ default?: Key;
884
+ keep_alive?: boolean;
885
+ chrome?: Chrome;
886
+ label?: Label;
887
+ mobile?: 'select' | 'scroll';
888
+ }
889
+ /**
890
+ * Props escalares de un bloque custom; sin objetos libres.
891
+ *
892
+ * This interface was referenced by `GenuiV2`'s JSON-Schema
893
+ * via the `definition` "extProps".
894
+ */
895
+ export interface ExtProps {
896
+ [k: string]: Scalar | (string | number | boolean)[];
630
897
  }
631
898
  /**
632
899
  * This interface was referenced by `GenuiV2`'s JSON-Schema
@@ -637,14 +904,26 @@ export interface BlockSection {
637
904
  id?: Id;
638
905
  when?: Predicate;
639
906
  fallback?: string;
640
- title: Label;
907
+ area?: Area;
908
+ title?: Label;
641
909
  collapsible?: boolean;
642
910
  collapsed?: boolean;
643
911
  /**
644
912
  * @minItems 1
645
913
  * @maxItems 24
646
914
  */
647
- blocks: [Block, ...Block[]];
915
+ blocks?: [Block, ...Block[]];
916
+ /**
917
+ * declarative|hybrid usan `blocks`; custom usa `component`.
918
+ */
919
+ mode?: 'declarative' | 'hybrid' | 'custom';
920
+ permission?: PermissionKey;
921
+ on_denied?: 'hide' | 'notice';
922
+ chrome?: Chrome;
923
+ source?: Source;
924
+ empty?: Label;
925
+ component?: ExtName;
926
+ props?: ExtProps;
648
927
  }
649
928
  /**
650
929
  * This interface was referenced by `GenuiV2`'s JSON-Schema
@@ -655,6 +934,7 @@ export interface BlockText {
655
934
  id?: Id;
656
935
  when?: Predicate;
657
936
  fallback?: string;
937
+ area?: Area;
658
938
  text: Text;
659
939
  tone?: Tone;
660
940
  }
@@ -667,6 +947,7 @@ export interface BlockMarkdown {
667
947
  id?: Id;
668
948
  when?: Predicate;
669
949
  fallback?: string;
950
+ area?: Area;
670
951
  markdown: string;
671
952
  }
672
953
  /**
@@ -678,6 +959,7 @@ export interface BlockAlert {
678
959
  id?: Id;
679
960
  when?: Predicate;
680
961
  fallback?: string;
962
+ area?: Area;
681
963
  title?: Label;
682
964
  text: Text;
683
965
  tone?: Tone;
@@ -691,6 +973,7 @@ export interface BlockEmpty {
691
973
  id?: Id;
692
974
  when?: Predicate;
693
975
  fallback?: string;
976
+ area?: Area;
694
977
  title: Label;
695
978
  text?: Text;
696
979
  icon?: string;
@@ -941,6 +1224,7 @@ export interface BlockCard {
941
1224
  id?: Id;
942
1225
  when?: Predicate;
943
1226
  fallback?: string;
1227
+ area?: Area;
944
1228
  title: Label;
945
1229
  subtitle?: Label;
946
1230
  body?: Text;
@@ -982,6 +1266,7 @@ export interface BlockList {
982
1266
  id?: Id;
983
1267
  when?: Predicate;
984
1268
  fallback?: string;
1269
+ area?: Area;
985
1270
  title?: Label;
986
1271
  /**
987
1272
  * @minItems 1
@@ -1011,6 +1296,7 @@ export interface BlockKpi {
1011
1296
  id?: Id;
1012
1297
  when?: Predicate;
1013
1298
  fallback?: string;
1299
+ area?: Area;
1014
1300
  title?: Label;
1015
1301
  /**
1016
1302
  * @minItems 1
@@ -1036,6 +1322,25 @@ export interface Item {
1036
1322
  status?: string;
1037
1323
  tone?: Tone;
1038
1324
  format?: StatFormat;
1325
+ action?: Action;
1326
+ }
1327
+ /**
1328
+ * This interface was referenced by `GenuiV2`'s JSON-Schema
1329
+ * via the `definition` "block_kpi_card".
1330
+ */
1331
+ export interface BlockKpiCard {
1332
+ type: 'kpi_card';
1333
+ id?: Id;
1334
+ when?: Predicate;
1335
+ fallback?: string;
1336
+ area?: Area;
1337
+ label: Label;
1338
+ value: Value;
1339
+ format?: StatFormat;
1340
+ trend?: ('up' | 'down' | 'flat') | Ref;
1341
+ tone?: Tone;
1342
+ hint?: Label;
1343
+ cta?: Action;
1039
1344
  }
1040
1345
  /**
1041
1346
  * This interface was referenced by `GenuiV2`'s JSON-Schema
@@ -1046,6 +1351,7 @@ export interface BlockStats {
1046
1351
  id?: Id;
1047
1352
  when?: Predicate;
1048
1353
  fallback?: string;
1354
+ area?: Area;
1049
1355
  title?: Label;
1050
1356
  source?: Source;
1051
1357
  format?: StatFormat;
@@ -1066,6 +1372,7 @@ export interface BlockLinks {
1066
1372
  id?: Id;
1067
1373
  when?: Predicate;
1068
1374
  fallback?: string;
1375
+ area?: Area;
1069
1376
  title?: Label;
1070
1377
  /**
1071
1378
  * @minItems 1
@@ -1082,6 +1389,7 @@ export interface BlockTimeline {
1082
1389
  id?: Id;
1083
1390
  when?: Predicate;
1084
1391
  fallback?: string;
1392
+ area?: Area;
1085
1393
  title?: Label;
1086
1394
  /**
1087
1395
  * @minItems 1
@@ -1099,6 +1407,7 @@ export interface BlockTable {
1099
1407
  id?: Id;
1100
1408
  when?: Predicate;
1101
1409
  fallback?: string;
1410
+ area?: Area;
1102
1411
  title?: Label;
1103
1412
  caption?: Label;
1104
1413
  /**
@@ -1141,6 +1450,7 @@ export interface BlockModelView {
1141
1450
  id?: Id;
1142
1451
  when?: Predicate;
1143
1452
  fallback?: string;
1453
+ area?: Area;
1144
1454
  title?: Label;
1145
1455
  model: Key;
1146
1456
  view?: 'table' | 'kanban' | 'calendar' | 'map' | 'timeline' | 'chart';
@@ -1161,6 +1471,7 @@ export interface BlockView {
1161
1471
  id?: Id;
1162
1472
  when?: Predicate;
1163
1473
  fallback?: string;
1474
+ area?: Area;
1164
1475
  title?: Label;
1165
1476
  model: Key;
1166
1477
  record?: Value;
@@ -1182,6 +1493,7 @@ export interface BlockChart {
1182
1493
  id?: Id;
1183
1494
  when?: Predicate;
1184
1495
  fallback?: string;
1496
+ area?: Area;
1185
1497
  title?: Label;
1186
1498
  kind: 'bar' | 'line' | 'area' | 'pie' | 'donut' | 'sparkline';
1187
1499
  x: Key;
@@ -1209,6 +1521,7 @@ export interface BlockForm {
1209
1521
  id?: Id;
1210
1522
  when?: Predicate;
1211
1523
  fallback?: string;
1524
+ area?: Area;
1212
1525
  title?: Label;
1213
1526
  description?: Text;
1214
1527
  /**
@@ -1619,6 +1932,7 @@ export interface BlockWizard {
1619
1932
  id?: Id;
1620
1933
  when?: Predicate;
1621
1934
  fallback?: string;
1935
+ area?: Area;
1622
1936
  title?: Label;
1623
1937
  description?: Text;
1624
1938
  /**
@@ -1977,6 +2291,7 @@ export interface BlockConfirm {
1977
2291
  id?: Id;
1978
2292
  when?: Predicate;
1979
2293
  fallback?: string;
2294
+ area?: Area;
1980
2295
  title: Label;
1981
2296
  description?: Text;
1982
2297
  /**
@@ -3131,6 +3446,7 @@ export interface BlockSettings {
3131
3446
  id?: Id;
3132
3447
  when?: Predicate;
3133
3448
  fallback?: string;
3449
+ area?: Area;
3134
3450
  addon: string;
3135
3451
  /**
3136
3452
  * @maxItems 40
@@ -3148,6 +3464,7 @@ export interface BlockMedia {
3148
3464
  id?: Id;
3149
3465
  when?: Predicate;
3150
3466
  fallback?: string;
3467
+ area?: Area;
3151
3468
  src: string;
3152
3469
  alt: string;
3153
3470
  width: number;
@@ -3163,6 +3480,7 @@ export interface BlockSlot {
3163
3480
  id?: Id;
3164
3481
  when?: Predicate;
3165
3482
  fallback?: string;
3483
+ area?: Area;
3166
3484
  name: string;
3167
3485
  record?: Value;
3168
3486
  }
@@ -3175,10 +3493,9 @@ export interface BlockExt {
3175
3493
  id?: Id;
3176
3494
  when?: Predicate;
3177
3495
  fallback?: string;
3178
- ext: string;
3179
- props?: {
3180
- [k: string]: Scalar | (string | number | boolean)[];
3181
- };
3496
+ area?: Area;
3497
+ ext: ExtName;
3498
+ props?: ExtProps;
3182
3499
  }
3183
3500
  /**
3184
3501
  * This interface was referenced by `GenuiV2`'s JSON-Schema
@@ -3189,6 +3506,7 @@ export interface BlockMap {
3189
3506
  id?: Id;
3190
3507
  when?: Predicate;
3191
3508
  fallback?: string;
3509
+ area?: Area;
3192
3510
  title?: Label;
3193
3511
  /**
3194
3512
  * @maxItems 200
@@ -3216,6 +3534,7 @@ export interface BlockMap {
3216
3534
  * Resumen accesible (obligatorio).
3217
3535
  */
3218
3536
  summary: string;
3537
+ select?: StatePath;
3219
3538
  }
3220
3539
  /**
3221
3540
  * This interface was referenced by `GenuiV2`'s JSON-Schema
@@ -3410,6 +3729,7 @@ export interface BlockMetric {
3410
3729
  id?: Id;
3411
3730
  when?: Predicate;
3412
3731
  fallback?: string;
3732
+ area?: Area;
3413
3733
  label: Label;
3414
3734
  value?: Value;
3415
3735
  source?: Source;
@@ -3485,6 +3805,7 @@ export interface BlockDiagram {
3485
3805
  id?: Id;
3486
3806
  when?: Predicate;
3487
3807
  fallback?: string;
3808
+ area?: Area;
3488
3809
  title?: Label;
3489
3810
  direction?: 'lr' | 'tb';
3490
3811
  /**