@almadar/std 11.0.0 → 11.2.2

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.
@@ -563,22 +563,22 @@
563
563
  "render-ui",
564
564
  "main",
565
565
  {
566
+ "type": "stack",
567
+ "gap": "md",
568
+ "className": "py-12",
569
+ "align": "center",
570
+ "direction": "vertical",
566
571
  "children": [
567
572
  {
568
573
  "type": "spinner"
569
574
  },
570
575
  {
571
- "content": "Loading…",
572
- "type": "typography",
573
576
  "variant": "caption",
574
- "color": "muted"
577
+ "type": "typography",
578
+ "color": "muted",
579
+ "content": "Loading…"
575
580
  }
576
- ],
577
- "className": "py-12",
578
- "direction": "vertical",
579
- "gap": "md",
580
- "align": "center",
581
- "type": "stack"
581
+ ]
582
582
  }
583
583
  ]
584
584
  ]
@@ -592,32 +592,9 @@
592
592
  "render-ui",
593
593
  "main",
594
594
  {
595
- "appName": "CRM",
596
- "navItems": [
597
- {
598
- "icon": "users",
599
- "label": "Contacts",
600
- "href": "/contacts"
601
- },
602
- {
603
- "label": "Deals",
604
- "href": "/deals",
605
- "icon": "briefcase"
606
- },
607
- {
608
- "icon": "bar-chart-2",
609
- "label": "Pipeline",
610
- "href": "/pipeline"
611
- },
612
- {
613
- "label": "Notes",
614
- "href": "/notes",
615
- "icon": "file-text"
616
- }
617
- ],
618
- "type": "dashboard-layout",
619
595
  "children": [
620
596
  {
597
+ "direction": "vertical",
621
598
  "className": "max-w-5xl mx-auto w-full",
622
599
  "gap": "lg",
623
600
  "type": "stack",
@@ -625,11 +602,14 @@
625
602
  {
626
603
  "justify": "between",
627
604
  "align": "center",
605
+ "direction": "horizontal",
606
+ "type": "stack",
607
+ "gap": "md",
628
608
  "children": [
629
609
  {
630
- "direction": "horizontal",
631
610
  "gap": "sm",
632
611
  "align": "center",
612
+ "direction": "horizontal",
633
613
  "children": [
634
614
  {
635
615
  "name": "users",
@@ -644,44 +624,60 @@
644
624
  "type": "stack"
645
625
  },
646
626
  {
647
- "gap": "sm",
627
+ "direction": "horizontal",
628
+ "type": "stack",
648
629
  "children": [
649
630
  {
631
+ "action": "CREATE",
650
632
  "icon": "plus",
651
633
  "type": "button",
652
- "label": "Add Contact",
653
- "action": "CREATE",
654
- "variant": "primary"
634
+ "variant": "primary",
635
+ "label": "Add Contact"
655
636
  }
656
637
  ],
657
- "type": "stack",
658
- "direction": "horizontal"
638
+ "gap": "sm"
659
639
  }
660
- ],
661
- "direction": "horizontal",
662
- "gap": "md",
663
- "type": "stack"
640
+ ]
664
641
  },
665
642
  {
666
643
  "type": "divider"
667
644
  },
668
645
  {
669
- "cols": 1.0,
670
646
  "children": [
671
647
  {
672
- "type": "stat-display",
673
- "value": "@entity",
674
648
  "icon": "users",
675
- "label": "Total Contacts"
649
+ "label": "Total Contacts",
650
+ "type": "stat-display",
651
+ "value": "@payload.data.length"
676
652
  }
677
653
  ],
678
- "type": "simple-grid"
654
+ "type": "simple-grid",
655
+ "cols": 1.0
679
656
  },
680
657
  {
681
658
  "type": "divider"
682
659
  },
683
660
  {
661
+ "type": "data-list",
684
662
  "entity": "@payload.data",
663
+ "itemActions": [
664
+ {
665
+ "label": "View",
666
+ "event": "VIEW",
667
+ "variant": "ghost"
668
+ },
669
+ {
670
+ "event": "EDIT",
671
+ "variant": "ghost",
672
+ "label": "Edit"
673
+ },
674
+ {
675
+ "event": "DELETE",
676
+ "label": "Delete",
677
+ "variant": "danger"
678
+ }
679
+ ],
680
+ "fields": [],
685
681
  "columns": [
686
682
  {
687
683
  "name": "name",
@@ -701,36 +697,40 @@
701
697
  "variant": "caption"
702
698
  },
703
699
  {
704
- "variant": "caption",
705
- "name": "phone"
706
- }
707
- ],
708
- "fields": [],
709
- "type": "data-list",
710
- "itemActions": [
711
- {
712
- "variant": "ghost",
713
- "label": "View",
714
- "event": "VIEW"
715
- },
716
- {
717
- "label": "Edit",
718
- "event": "EDIT",
719
- "variant": "ghost"
720
- },
721
- {
722
- "event": "DELETE",
723
- "variant": "danger",
724
- "label": "Delete"
700
+ "name": "phone",
701
+ "variant": "caption"
725
702
  }
726
703
  ],
727
704
  "variant": "card",
728
705
  "gap": "sm"
729
706
  }
730
- ],
731
- "direction": "vertical"
707
+ ]
732
708
  }
733
- ]
709
+ ],
710
+ "type": "dashboard-layout",
711
+ "navItems": [
712
+ {
713
+ "icon": "users",
714
+ "label": "Contacts",
715
+ "href": "/contacts"
716
+ },
717
+ {
718
+ "icon": "briefcase",
719
+ "href": "/deals",
720
+ "label": "Deals"
721
+ },
722
+ {
723
+ "href": "/pipeline",
724
+ "icon": "bar-chart-2",
725
+ "label": "Pipeline"
726
+ },
727
+ {
728
+ "icon": "file-text",
729
+ "href": "/notes",
730
+ "label": "Notes"
731
+ }
732
+ ],
733
+ "appName": "CRM"
734
734
  }
735
735
  ]
736
736
  ]
@@ -744,36 +744,36 @@
744
744
  "render-ui",
745
745
  "main",
746
746
  {
747
- "type": "stack",
747
+ "gap": "md",
748
+ "direction": "vertical",
748
749
  "children": [
749
750
  {
750
- "color": "destructive",
751
+ "name": "alert-triangle",
751
752
  "type": "icon",
752
- "name": "alert-triangle"
753
+ "color": "destructive"
753
754
  },
754
755
  {
755
- "content": "Failed to load contact",
756
+ "type": "typography",
756
757
  "variant": "h3",
757
- "type": "typography"
758
+ "content": "Failed to load contact"
758
759
  },
759
760
  {
760
- "content": "@payload.error",
761
761
  "type": "typography",
762
- "color": "muted",
763
- "variant": "body"
762
+ "variant": "body",
763
+ "content": "@payload.error",
764
+ "color": "muted"
764
765
  },
765
766
  {
766
- "action": "INIT",
767
- "variant": "primary",
767
+ "icon": "rotate-ccw",
768
768
  "label": "Retry",
769
+ "action": "INIT",
769
770
  "type": "button",
770
- "icon": "rotate-ccw"
771
+ "variant": "primary"
771
772
  }
772
773
  ],
773
- "align": "center",
774
- "direction": "vertical",
775
- "gap": "md",
776
- "className": "py-12"
774
+ "className": "py-12",
775
+ "type": "stack",
776
+ "align": "center"
777
777
  }
778
778
  ]
779
779
  ]
@@ -946,8 +946,8 @@
946
946
  "Contact",
947
947
  {
948
948
  "emit": {
949
- "failure": "ContactLoadFailed",
950
- "success": "ContactLoaded"
949
+ "success": "ContactLoaded",
950
+ "failure": "ContactLoadFailed"
951
951
  }
952
952
  }
953
953
  ]
@@ -972,30 +972,33 @@
972
972
  "render-ui",
973
973
  "modal",
974
974
  {
975
- "type": "stack",
976
975
  "gap": "md",
976
+ "type": "stack",
977
977
  "direction": "vertical",
978
978
  "children": [
979
979
  {
980
- "type": "stack",
981
- "gap": "sm",
982
980
  "children": [
983
981
  {
984
- "name": "plus-circle",
985
- "type": "icon"
982
+ "type": "icon",
983
+ "name": "plus-circle"
986
984
  },
987
985
  {
988
- "content": "New Contact",
989
986
  "variant": "h3",
987
+ "content": "New Contact",
990
988
  "type": "typography"
991
989
  }
992
990
  ],
993
- "direction": "horizontal"
991
+ "direction": "horizontal",
992
+ "gap": "sm",
993
+ "type": "stack"
994
994
  },
995
995
  {
996
996
  "type": "divider"
997
997
  },
998
998
  {
999
+ "type": "form-section",
1000
+ "cancelEvent": "CLOSE",
1001
+ "mode": "create",
999
1002
  "fields": [
1000
1003
  "name",
1001
1004
  "company",
@@ -1003,9 +1006,6 @@
1003
1006
  "phone",
1004
1007
  "status"
1005
1008
  ],
1006
- "mode": "create",
1007
- "type": "form-section",
1008
- "cancelEvent": "CLOSE",
1009
1009
  "submitEvent": "SAVE"
1010
1010
  }
1011
1011
  ]
@@ -1049,8 +1049,8 @@
1049
1049
  "@payload.data",
1050
1050
  {
1051
1051
  "emit": {
1052
- "failure": "ContactSaveFailed",
1053
- "success": "ContactSaved"
1052
+ "success": "ContactSaved",
1053
+ "failure": "ContactSaveFailed"
1054
1054
  }
1055
1055
  }
1056
1056
  ],
@@ -1251,8 +1251,8 @@
1251
1251
  "Contact",
1252
1252
  {
1253
1253
  "emit": {
1254
- "failure": "ContactLoadFailed",
1255
- "success": "ContactLoaded"
1254
+ "success": "ContactLoaded",
1255
+ "failure": "ContactLoadFailed"
1256
1256
  }
1257
1257
  }
1258
1258
  ]
@@ -1267,40 +1267,41 @@
1267
1267
  "fetch",
1268
1268
  "Contact",
1269
1269
  {
1270
+ "id": "@payload.id",
1270
1271
  "emit": {
1271
1272
  "failure": "ContactLoadFailed",
1272
1273
  "success": "ContactLoaded"
1273
- },
1274
- "id": "@payload.id"
1274
+ }
1275
1275
  }
1276
1276
  ],
1277
1277
  [
1278
1278
  "render-ui",
1279
1279
  "modal",
1280
1280
  {
1281
+ "gap": "md",
1281
1282
  "children": [
1282
1283
  {
1283
1284
  "children": [
1284
1285
  {
1285
- "type": "icon",
1286
- "name": "edit"
1286
+ "name": "edit",
1287
+ "type": "icon"
1287
1288
  },
1288
1289
  {
1289
- "content": "Edit Contact",
1290
1290
  "type": "typography",
1291
+ "content": "Edit Contact",
1291
1292
  "variant": "h3"
1292
1293
  }
1293
1294
  ],
1294
- "direction": "horizontal",
1295
1295
  "type": "stack",
1296
+ "direction": "horizontal",
1296
1297
  "gap": "sm"
1297
1298
  },
1298
1299
  {
1299
1300
  "type": "divider"
1300
1301
  },
1301
1302
  {
1303
+ "submitEvent": "SAVE",
1302
1304
  "cancelEvent": "CLOSE",
1303
- "mode": "edit",
1304
1305
  "fields": [
1305
1306
  "name",
1306
1307
  "company",
@@ -1308,14 +1309,13 @@
1308
1309
  "phone",
1309
1310
  "status"
1310
1311
  ],
1311
- "submitEvent": "SAVE",
1312
1312
  "type": "form-section",
1313
- "entity": "@payload.row"
1313
+ "entity": "@payload.row",
1314
+ "mode": "edit"
1314
1315
  }
1315
1316
  ],
1316
- "direction": "vertical",
1317
- "gap": "md",
1318
- "type": "stack"
1317
+ "type": "stack",
1318
+ "direction": "vertical"
1319
1319
  }
1320
1320
  ]
1321
1321
  ]
@@ -1492,8 +1492,8 @@
1492
1492
  "Contact",
1493
1493
  {
1494
1494
  "emit": {
1495
- "success": "ContactLoaded",
1496
- "failure": "ContactLoadFailed"
1495
+ "failure": "ContactLoadFailed",
1496
+ "success": "ContactLoaded"
1497
1497
  }
1498
1498
  }
1499
1499
  ]
@@ -1510,8 +1510,8 @@
1510
1510
  {
1511
1511
  "id": "@payload.id",
1512
1512
  "emit": {
1513
- "success": "ContactLoaded",
1514
- "failure": "ContactLoadFailed"
1513
+ "failure": "ContactLoadFailed",
1514
+ "success": "ContactLoaded"
1515
1515
  }
1516
1516
  }
1517
1517
  ],
@@ -1519,111 +1519,110 @@
1519
1519
  "render-ui",
1520
1520
  "modal",
1521
1521
  {
1522
- "direction": "vertical",
1523
- "gap": "md",
1524
1522
  "type": "stack",
1523
+ "gap": "md",
1525
1524
  "children": [
1526
1525
  {
1527
1526
  "align": "center",
1528
- "type": "stack",
1527
+ "gap": "sm",
1528
+ "direction": "horizontal",
1529
1529
  "children": [
1530
1530
  {
1531
- "name": "eye",
1532
- "type": "icon"
1531
+ "type": "icon",
1532
+ "name": "eye"
1533
1533
  },
1534
1534
  {
1535
- "content": "@entity.name",
1536
1535
  "type": "typography",
1537
- "variant": "h3"
1536
+ "variant": "h3",
1537
+ "content": "@entity.name"
1538
1538
  }
1539
1539
  ],
1540
- "direction": "horizontal",
1541
- "gap": "sm"
1540
+ "type": "stack"
1542
1541
  },
1543
1542
  {
1544
1543
  "type": "divider"
1545
1544
  },
1546
1545
  {
1546
+ "direction": "horizontal",
1547
1547
  "gap": "md",
1548
- "type": "stack",
1549
1548
  "children": [
1550
1549
  {
1551
- "variant": "caption",
1552
1550
  "content": "Name",
1551
+ "variant": "caption",
1553
1552
  "type": "typography"
1554
1553
  },
1555
1554
  {
1556
1555
  "type": "typography",
1557
- "content": "@entity.name",
1558
- "variant": "body"
1556
+ "variant": "body",
1557
+ "content": "@entity.name"
1559
1558
  }
1560
1559
  ],
1561
- "direction": "horizontal"
1560
+ "type": "stack"
1562
1561
  },
1563
1562
  {
1564
- "direction": "horizontal",
1565
- "gap": "md",
1566
1563
  "type": "stack",
1564
+ "gap": "md",
1567
1565
  "children": [
1568
1566
  {
1569
- "variant": "caption",
1567
+ "type": "typography",
1570
1568
  "content": "Company",
1571
- "type": "typography"
1569
+ "variant": "caption"
1572
1570
  },
1573
1571
  {
1574
- "type": "typography",
1572
+ "variant": "body",
1575
1573
  "content": "@entity.company",
1576
- "variant": "body"
1577
- }
1578
- ]
1579
- },
1580
- {
1581
- "gap": "md",
1582
- "children": [
1583
- {
1584
- "variant": "caption",
1585
- "content": "Email",
1586
1574
  "type": "typography"
1587
- },
1588
- {
1589
- "type": "typography",
1590
- "variant": "body",
1591
- "content": "@entity.email"
1592
1575
  }
1593
1576
  ],
1594
- "type": "stack",
1595
1577
  "direction": "horizontal"
1596
1578
  },
1597
1579
  {
1598
- "gap": "md",
1599
1580
  "children": [
1600
1581
  {
1601
1582
  "variant": "caption",
1602
1583
  "type": "typography",
1603
- "content": "Phone"
1584
+ "content": "Email"
1604
1585
  },
1605
1586
  {
1606
1587
  "type": "typography",
1607
- "content": "@entity.phone",
1588
+ "content": "@entity.email",
1608
1589
  "variant": "body"
1609
1590
  }
1610
1591
  ],
1611
- "type": "stack",
1612
- "direction": "horizontal"
1592
+ "gap": "md",
1593
+ "direction": "horizontal",
1594
+ "type": "stack"
1613
1595
  },
1614
1596
  {
1615
1597
  "gap": "md",
1616
- "direction": "horizontal",
1617
1598
  "children": [
1618
1599
  {
1600
+ "content": "Phone",
1619
1601
  "variant": "caption",
1602
+ "type": "typography"
1603
+ },
1604
+ {
1605
+ "content": "@entity.phone",
1606
+ "variant": "body",
1607
+ "type": "typography"
1608
+ }
1609
+ ],
1610
+ "direction": "horizontal",
1611
+ "type": "stack"
1612
+ },
1613
+ {
1614
+ "direction": "horizontal",
1615
+ "gap": "md",
1616
+ "children": [
1617
+ {
1620
1618
  "type": "typography",
1619
+ "variant": "caption",
1621
1620
  "content": "Status"
1622
1621
  },
1623
1622
  {
1623
+ "type": "typography",
1624
1624
  "variant": "body",
1625
- "content": "@entity.status",
1626
- "type": "typography"
1625
+ "content": "@entity.status"
1627
1626
  }
1628
1627
  ],
1629
1628
  "type": "stack"
@@ -1632,27 +1631,28 @@
1632
1631
  "type": "divider"
1633
1632
  },
1634
1633
  {
1635
- "type": "stack",
1636
- "direction": "horizontal",
1637
- "gap": "sm",
1638
- "justify": "end",
1639
1634
  "children": [
1640
1635
  {
1641
1636
  "action": "EDIT",
1642
- "variant": "primary",
1643
- "icon": "edit",
1637
+ "type": "button",
1644
1638
  "label": "Edit",
1645
- "type": "button"
1639
+ "variant": "primary",
1640
+ "icon": "edit"
1646
1641
  },
1647
1642
  {
1643
+ "label": "Close",
1648
1644
  "type": "button",
1649
1645
  "action": "CLOSE",
1650
- "label": "Close",
1651
1646
  "variant": "ghost"
1652
1647
  }
1653
- ]
1648
+ ],
1649
+ "gap": "sm",
1650
+ "direction": "horizontal",
1651
+ "type": "stack",
1652
+ "justify": "end"
1654
1653
  }
1655
- ]
1654
+ ],
1655
+ "direction": "vertical"
1656
1656
  }
1657
1657
  ]
1658
1658
  ]
@@ -1893,11 +1893,11 @@
1893
1893
  "fetch",
1894
1894
  "Contact",
1895
1895
  {
1896
+ "id": "@payload.id",
1896
1897
  "emit": {
1897
1898
  "failure": "ContactLoadFailed",
1898
1899
  "success": "ContactLoaded"
1899
- },
1900
- "id": "@payload.id"
1900
+ }
1901
1901
  }
1902
1902
  ],
1903
1903
  [
@@ -1909,50 +1909,50 @@
1909
1909
  "type": "stack",
1910
1910
  "children": [
1911
1911
  {
1912
- "direction": "horizontal",
1913
1912
  "type": "stack",
1914
1913
  "gap": "sm",
1914
+ "direction": "horizontal",
1915
+ "align": "center",
1915
1916
  "children": [
1916
1917
  {
1917
1918
  "type": "icon",
1918
1919
  "name": "alert-triangle"
1919
1920
  },
1920
1921
  {
1922
+ "type": "typography",
1921
1923
  "content": "Delete Contact",
1922
- "variant": "h3",
1923
- "type": "typography"
1924
+ "variant": "h3"
1924
1925
  }
1925
- ],
1926
- "align": "center"
1926
+ ]
1927
1927
  },
1928
1928
  {
1929
1929
  "type": "divider"
1930
1930
  },
1931
1931
  {
1932
- "message": "This action cannot be undone.",
1933
1932
  "type": "alert",
1934
- "variant": "error"
1933
+ "variant": "error",
1934
+ "message": "This action cannot be undone."
1935
1935
  },
1936
1936
  {
1937
- "gap": "sm",
1938
1937
  "type": "stack",
1938
+ "gap": "sm",
1939
1939
  "justify": "end",
1940
+ "direction": "horizontal",
1940
1941
  "children": [
1941
1942
  {
1942
- "variant": "ghost",
1943
+ "label": "Cancel",
1943
1944
  "type": "button",
1944
- "action": "CANCEL",
1945
- "label": "Cancel"
1945
+ "variant": "ghost",
1946
+ "action": "CANCEL"
1946
1947
  },
1947
1948
  {
1948
- "type": "button",
1949
- "action": "CONFIRM_DELETE",
1950
1949
  "variant": "danger",
1950
+ "label": "Delete",
1951
+ "type": "button",
1951
1952
  "icon": "check",
1952
- "label": "Delete"
1953
+ "action": "CONFIRM_DELETE"
1953
1954
  }
1954
- ],
1955
- "direction": "horizontal"
1955
+ ]
1956
1956
  }
1957
1957
  ]
1958
1958
  }
@@ -1971,8 +1971,8 @@
1971
1971
  "@entity.pendingId",
1972
1972
  {
1973
1973
  "emit": {
1974
- "failure": "ContactDeleteFailed",
1975
- "success": "ContactDeleted"
1974
+ "success": "ContactDeleted",
1975
+ "failure": "ContactDeleteFailed"
1976
1976
  }
1977
1977
  }
1978
1978
  ],
@@ -2257,8 +2257,8 @@
2257
2257
  "Deal",
2258
2258
  {
2259
2259
  "emit": {
2260
- "success": "DealLoaded",
2261
- "failure": "DealLoadFailed"
2260
+ "failure": "DealLoadFailed",
2261
+ "success": "DealLoaded"
2262
2262
  }
2263
2263
  }
2264
2264
  ],
@@ -2267,6 +2267,7 @@
2267
2267
  "main",
2268
2268
  {
2269
2269
  "gap": "md",
2270
+ "align": "center",
2270
2271
  "children": [
2271
2272
  {
2272
2273
  "type": "spinner"
@@ -2274,11 +2275,10 @@
2274
2275
  {
2275
2276
  "color": "muted",
2276
2277
  "type": "typography",
2277
- "variant": "caption",
2278
- "content": "Loading…"
2278
+ "content": "Loading…",
2279
+ "variant": "caption"
2279
2280
  }
2280
2281
  ],
2281
- "align": "center",
2282
2282
  "type": "stack",
2283
2283
  "className": "py-12",
2284
2284
  "direction": "vertical"
@@ -2296,53 +2296,71 @@
2296
2296
  "main",
2297
2297
  {
2298
2298
  "type": "dashboard-layout",
2299
+ "navItems": [
2300
+ {
2301
+ "icon": "users",
2302
+ "label": "Contacts",
2303
+ "href": "/contacts"
2304
+ },
2305
+ {
2306
+ "href": "/deals",
2307
+ "label": "Deals",
2308
+ "icon": "briefcase"
2309
+ },
2310
+ {
2311
+ "href": "/pipeline",
2312
+ "icon": "bar-chart-2",
2313
+ "label": "Pipeline"
2314
+ },
2315
+ {
2316
+ "label": "Notes",
2317
+ "href": "/notes",
2318
+ "icon": "file-text"
2319
+ }
2320
+ ],
2299
2321
  "appName": "CRM",
2300
2322
  "children": [
2301
2323
  {
2302
- "direction": "vertical",
2303
- "type": "stack",
2304
- "gap": "lg",
2305
- "className": "max-w-5xl mx-auto w-full",
2306
2324
  "children": [
2307
2325
  {
2308
2326
  "align": "center",
2309
2327
  "type": "stack",
2328
+ "gap": "md",
2310
2329
  "direction": "horizontal",
2330
+ "justify": "between",
2311
2331
  "children": [
2312
2332
  {
2313
2333
  "direction": "horizontal",
2314
- "align": "center",
2315
2334
  "gap": "sm",
2316
- "type": "stack",
2317
2335
  "children": [
2318
2336
  {
2319
2337
  "type": "icon",
2320
2338
  "name": "briefcase"
2321
2339
  },
2322
2340
  {
2323
- "variant": "h2",
2324
2341
  "content": "Deals",
2325
- "type": "typography"
2342
+ "type": "typography",
2343
+ "variant": "h2"
2326
2344
  }
2327
- ]
2345
+ ],
2346
+ "align": "center",
2347
+ "type": "stack"
2328
2348
  },
2329
2349
  {
2330
- "type": "stack",
2331
- "gap": "sm",
2350
+ "direction": "horizontal",
2332
2351
  "children": [
2333
2352
  {
2334
- "type": "button",
2335
- "icon": "plus",
2336
2353
  "action": "CREATE",
2354
+ "type": "button",
2337
2355
  "label": "New Deal",
2338
- "variant": "primary"
2356
+ "variant": "primary",
2357
+ "icon": "plus"
2339
2358
  }
2340
2359
  ],
2341
- "direction": "horizontal"
2360
+ "gap": "sm",
2361
+ "type": "stack"
2342
2362
  }
2343
- ],
2344
- "justify": "between",
2345
- "gap": "md"
2363
+ ]
2346
2364
  },
2347
2365
  {
2348
2366
  "type": "divider"
@@ -2351,26 +2369,30 @@
2351
2369
  "itemActions": [
2352
2370
  {
2353
2371
  "label": "View",
2354
- "variant": "ghost",
2355
- "event": "VIEW"
2372
+ "event": "VIEW",
2373
+ "variant": "ghost"
2356
2374
  },
2357
2375
  {
2358
2376
  "label": "Edit",
2359
- "event": "EDIT",
2360
- "variant": "ghost"
2377
+ "variant": "ghost",
2378
+ "event": "EDIT"
2361
2379
  },
2362
2380
  {
2381
+ "event": "DELETE",
2363
2382
  "variant": "danger",
2364
- "label": "Delete",
2365
- "event": "DELETE"
2383
+ "label": "Delete"
2366
2384
  }
2367
2385
  ],
2386
+ "entity": "@payload.data",
2387
+ "cols": 2.0,
2388
+ "gap": "md",
2368
2389
  "fields": [],
2390
+ "type": "data-grid",
2369
2391
  "columns": [
2370
2392
  {
2371
- "name": "title",
2372
2393
  "variant": "h3",
2373
- "icon": "briefcase"
2394
+ "icon": "briefcase",
2395
+ "name": "title"
2374
2396
  },
2375
2397
  {
2376
2398
  "variant": "badge",
@@ -2378,43 +2400,21 @@
2378
2400
  },
2379
2401
  {
2380
2402
  "variant": "h4",
2381
- "format": "currency",
2382
- "name": "value"
2403
+ "name": "value",
2404
+ "format": "currency"
2383
2405
  },
2384
2406
  {
2385
2407
  "name": "contactId",
2386
2408
  "label": "Contact",
2387
2409
  "variant": "caption"
2388
2410
  }
2389
- ],
2390
- "gap": "md",
2391
- "entity": "@payload.data",
2392
- "type": "data-grid",
2393
- "cols": 2.0
2411
+ ]
2394
2412
  }
2395
- ]
2396
- }
2397
- ],
2398
- "navItems": [
2399
- {
2400
- "label": "Contacts",
2401
- "href": "/contacts",
2402
- "icon": "users"
2403
- },
2404
- {
2405
- "label": "Deals",
2406
- "href": "/deals",
2407
- "icon": "briefcase"
2408
- },
2409
- {
2410
- "icon": "bar-chart-2",
2411
- "href": "/pipeline",
2412
- "label": "Pipeline"
2413
- },
2414
- {
2415
- "label": "Notes",
2416
- "icon": "file-text",
2417
- "href": "/notes"
2413
+ ],
2414
+ "direction": "vertical",
2415
+ "gap": "lg",
2416
+ "className": "max-w-5xl mx-auto w-full",
2417
+ "type": "stack"
2418
2418
  }
2419
2419
  ]
2420
2420
  }
@@ -2430,10 +2430,11 @@
2430
2430
  "render-ui",
2431
2431
  "main",
2432
2432
  {
2433
+ "gap": "md",
2433
2434
  "type": "stack",
2434
- "className": "py-12",
2435
2435
  "align": "center",
2436
- "gap": "md",
2436
+ "direction": "vertical",
2437
+ "className": "py-12",
2437
2438
  "children": [
2438
2439
  {
2439
2440
  "type": "icon",
@@ -2441,25 +2442,24 @@
2441
2442
  "color": "destructive"
2442
2443
  },
2443
2444
  {
2445
+ "content": "Failed to load deal",
2444
2446
  "variant": "h3",
2445
- "type": "typography",
2446
- "content": "Failed to load deal"
2447
+ "type": "typography"
2447
2448
  },
2448
2449
  {
2449
- "variant": "body",
2450
- "color": "muted",
2451
2450
  "content": "@payload.error",
2452
- "type": "typography"
2451
+ "color": "muted",
2452
+ "type": "typography",
2453
+ "variant": "body"
2453
2454
  },
2454
2455
  {
2455
- "label": "Retry",
2456
2456
  "action": "INIT",
2457
2457
  "icon": "rotate-ccw",
2458
+ "label": "Retry",
2458
2459
  "type": "button",
2459
2460
  "variant": "primary"
2460
2461
  }
2461
- ],
2462
- "direction": "vertical"
2462
+ ]
2463
2463
  }
2464
2464
  ]
2465
2465
  ]
@@ -2652,13 +2652,13 @@
2652
2652
  {
2653
2653
  "children": [
2654
2654
  {
2655
+ "type": "stack",
2655
2656
  "direction": "horizontal",
2656
2657
  "gap": "sm",
2657
- "type": "stack",
2658
2658
  "children": [
2659
2659
  {
2660
- "name": "plus-circle",
2661
- "type": "icon"
2660
+ "type": "icon",
2661
+ "name": "plus-circle"
2662
2662
  },
2663
2663
  {
2664
2664
  "type": "typography",
@@ -2671,6 +2671,8 @@
2671
2671
  "type": "divider"
2672
2672
  },
2673
2673
  {
2674
+ "mode": "create",
2675
+ "type": "form-section",
2674
2676
  "fields": [
2675
2677
  "title",
2676
2678
  "contactId",
@@ -2678,14 +2680,12 @@
2678
2680
  "stage",
2679
2681
  "closedAt"
2680
2682
  ],
2681
- "type": "form-section",
2682
- "cancelEvent": "CLOSE",
2683
2683
  "submitEvent": "SAVE",
2684
- "mode": "create"
2684
+ "cancelEvent": "CLOSE"
2685
2685
  }
2686
2686
  ],
2687
- "direction": "vertical",
2688
2687
  "gap": "md",
2688
+ "direction": "vertical",
2689
2689
  "type": "stack"
2690
2690
  }
2691
2691
  ]
@@ -2727,8 +2727,8 @@
2727
2727
  "@payload.data",
2728
2728
  {
2729
2729
  "emit": {
2730
- "failure": "DealSaveFailed",
2731
- "success": "DealSaved"
2730
+ "success": "DealSaved",
2731
+ "failure": "DealSaveFailed"
2732
2732
  }
2733
2733
  }
2734
2734
  ],
@@ -2938,8 +2938,8 @@
2938
2938
  {
2939
2939
  "id": "@payload.id",
2940
2940
  "emit": {
2941
- "failure": "DealLoadFailed",
2942
- "success": "DealLoaded"
2941
+ "success": "DealLoaded",
2942
+ "failure": "DealLoadFailed"
2943
2943
  }
2944
2944
  }
2945
2945
  ],
@@ -2947,30 +2947,32 @@
2947
2947
  "render-ui",
2948
2948
  "modal",
2949
2949
  {
2950
- "gap": "md",
2951
2950
  "direction": "vertical",
2952
- "type": "stack",
2953
2951
  "children": [
2954
2952
  {
2955
- "gap": "sm",
2953
+ "direction": "horizontal",
2956
2954
  "children": [
2957
2955
  {
2958
- "name": "edit",
2959
- "type": "icon"
2956
+ "type": "icon",
2957
+ "name": "edit"
2960
2958
  },
2961
2959
  {
2962
- "content": "Edit Deal",
2963
2960
  "type": "typography",
2964
- "variant": "h3"
2961
+ "variant": "h3",
2962
+ "content": "Edit Deal"
2965
2963
  }
2966
2964
  ],
2967
- "type": "stack",
2968
- "direction": "horizontal"
2965
+ "gap": "sm",
2966
+ "type": "stack"
2969
2967
  },
2970
2968
  {
2971
2969
  "type": "divider"
2972
2970
  },
2973
2971
  {
2972
+ "submitEvent": "SAVE",
2973
+ "cancelEvent": "CLOSE",
2974
+ "type": "form-section",
2975
+ "mode": "edit",
2974
2976
  "fields": [
2975
2977
  "title",
2976
2978
  "contactId",
@@ -2978,13 +2980,11 @@
2978
2980
  "stage",
2979
2981
  "closedAt"
2980
2982
  ],
2981
- "entity": "@payload.row",
2982
- "submitEvent": "SAVE",
2983
- "type": "form-section",
2984
- "mode": "edit",
2985
- "cancelEvent": "CLOSE"
2983
+ "entity": "@payload.row"
2986
2984
  }
2987
- ]
2985
+ ],
2986
+ "gap": "md",
2987
+ "type": "stack"
2988
2988
  }
2989
2989
  ]
2990
2990
  ]
@@ -3171,8 +3171,8 @@
3171
3171
  {
3172
3172
  "id": "@payload.id",
3173
3173
  "emit": {
3174
- "failure": "DealLoadFailed",
3175
- "success": "DealLoaded"
3174
+ "success": "DealLoaded",
3175
+ "failure": "DealLoadFailed"
3176
3176
  }
3177
3177
  }
3178
3178
  ],
@@ -3180,37 +3180,35 @@
3180
3180
  "render-ui",
3181
3181
  "modal",
3182
3182
  {
3183
- "direction": "vertical",
3184
- "type": "stack",
3185
3183
  "children": [
3186
3184
  {
3187
3185
  "type": "stack",
3188
- "direction": "horizontal",
3186
+ "gap": "sm",
3187
+ "align": "center",
3189
3188
  "children": [
3190
3189
  {
3191
- "name": "eye",
3192
- "type": "icon"
3190
+ "type": "icon",
3191
+ "name": "eye"
3193
3192
  },
3194
3193
  {
3194
+ "variant": "h3",
3195
3195
  "content": "@entity.title",
3196
- "type": "typography",
3197
- "variant": "h3"
3196
+ "type": "typography"
3198
3197
  }
3199
3198
  ],
3200
- "align": "center",
3201
- "gap": "sm"
3199
+ "direction": "horizontal"
3202
3200
  },
3203
3201
  {
3204
3202
  "type": "divider"
3205
3203
  },
3206
3204
  {
3207
- "direction": "horizontal",
3208
3205
  "gap": "md",
3206
+ "type": "stack",
3209
3207
  "children": [
3210
3208
  {
3211
- "content": "Title",
3209
+ "type": "typography",
3212
3210
  "variant": "caption",
3213
- "type": "typography"
3211
+ "content": "Title"
3214
3212
  },
3215
3213
  {
3216
3214
  "type": "typography",
@@ -3218,26 +3216,28 @@
3218
3216
  "content": "@entity.title"
3219
3217
  }
3220
3218
  ],
3221
- "type": "stack"
3219
+ "direction": "horizontal"
3222
3220
  },
3223
3221
  {
3224
- "type": "stack",
3225
- "gap": "md",
3226
3222
  "direction": "horizontal",
3223
+ "gap": "md",
3224
+ "type": "stack",
3227
3225
  "children": [
3228
3226
  {
3229
- "variant": "caption",
3227
+ "content": "Contact ID",
3230
3228
  "type": "typography",
3231
- "content": "Contact ID"
3229
+ "variant": "caption"
3232
3230
  },
3233
3231
  {
3234
- "variant": "body",
3235
3232
  "type": "typography",
3233
+ "variant": "body",
3236
3234
  "content": "@entity.contactId"
3237
3235
  }
3238
3236
  ]
3239
3237
  },
3240
3238
  {
3239
+ "type": "stack",
3240
+ "direction": "horizontal",
3241
3241
  "children": [
3242
3242
  {
3243
3243
  "type": "typography",
@@ -3246,20 +3246,20 @@
3246
3246
  },
3247
3247
  {
3248
3248
  "variant": "body",
3249
- "content": "@entity.value",
3250
- "type": "typography"
3249
+ "type": "typography",
3250
+ "content": "@entity.value"
3251
3251
  }
3252
3252
  ],
3253
- "type": "stack",
3254
- "gap": "md",
3255
- "direction": "horizontal"
3253
+ "gap": "md"
3256
3254
  },
3257
3255
  {
3256
+ "type": "stack",
3257
+ "direction": "horizontal",
3258
3258
  "children": [
3259
3259
  {
3260
- "content": "Stage",
3261
3260
  "variant": "caption",
3262
- "type": "typography"
3261
+ "type": "typography",
3262
+ "content": "Stage"
3263
3263
  },
3264
3264
  {
3265
3265
  "type": "typography",
@@ -3267,53 +3267,53 @@
3267
3267
  "content": "@entity.stage"
3268
3268
  }
3269
3269
  ],
3270
- "gap": "md",
3271
- "direction": "horizontal",
3272
- "type": "stack"
3270
+ "gap": "md"
3273
3271
  },
3274
3272
  {
3273
+ "type": "stack",
3275
3274
  "direction": "horizontal",
3276
3275
  "children": [
3277
3276
  {
3278
- "variant": "caption",
3279
3277
  "content": "Closed At",
3278
+ "variant": "caption",
3280
3279
  "type": "typography"
3281
3280
  },
3282
3281
  {
3282
+ "type": "typography",
3283
3283
  "content": "@entity.closedAt",
3284
- "variant": "body",
3285
- "type": "typography"
3284
+ "variant": "body"
3286
3285
  }
3287
3286
  ],
3288
- "type": "stack",
3289
3287
  "gap": "md"
3290
3288
  },
3291
3289
  {
3292
3290
  "type": "divider"
3293
3291
  },
3294
3292
  {
3295
- "direction": "horizontal",
3296
3293
  "gap": "sm",
3297
- "type": "stack",
3298
3294
  "children": [
3299
3295
  {
3300
3296
  "type": "button",
3301
- "label": "Edit",
3302
3297
  "variant": "primary",
3303
3298
  "icon": "edit",
3304
- "action": "EDIT"
3299
+ "action": "EDIT",
3300
+ "label": "Edit"
3305
3301
  },
3306
3302
  {
3307
- "action": "CLOSE",
3303
+ "type": "button",
3308
3304
  "label": "Close",
3309
3305
  "variant": "ghost",
3310
- "type": "button"
3306
+ "action": "CLOSE"
3311
3307
  }
3312
3308
  ],
3313
- "justify": "end"
3309
+ "justify": "end",
3310
+ "direction": "horizontal",
3311
+ "type": "stack"
3314
3312
  }
3315
3313
  ],
3316
- "gap": "md"
3314
+ "gap": "md",
3315
+ "type": "stack",
3316
+ "direction": "vertical"
3317
3317
  }
3318
3318
  ]
3319
3319
  ]
@@ -3548,8 +3548,8 @@
3548
3548
  {
3549
3549
  "id": "@payload.id",
3550
3550
  "emit": {
3551
- "success": "DealLoaded",
3552
- "failure": "DealLoadFailed"
3551
+ "failure": "DealLoadFailed",
3552
+ "success": "DealLoaded"
3553
3553
  }
3554
3554
  }
3555
3555
  ],
@@ -3557,13 +3557,15 @@
3557
3557
  "render-ui",
3558
3558
  "modal",
3559
3559
  {
3560
+ "direction": "vertical",
3561
+ "type": "stack",
3560
3562
  "gap": "md",
3561
3563
  "children": [
3562
3564
  {
3563
3565
  "children": [
3564
3566
  {
3565
- "type": "icon",
3566
- "name": "alert-triangle"
3567
+ "name": "alert-triangle",
3568
+ "type": "icon"
3567
3569
  },
3568
3570
  {
3569
3571
  "variant": "h3",
@@ -3571,43 +3573,41 @@
3571
3573
  "content": "Delete Deal"
3572
3574
  }
3573
3575
  ],
3574
- "type": "stack",
3575
3576
  "direction": "horizontal",
3576
- "align": "center",
3577
- "gap": "sm"
3577
+ "type": "stack",
3578
+ "gap": "sm",
3579
+ "align": "center"
3578
3580
  },
3579
3581
  {
3580
3582
  "type": "divider"
3581
3583
  },
3582
3584
  {
3585
+ "type": "alert",
3583
3586
  "variant": "error",
3584
- "message": "This action cannot be undone.",
3585
- "type": "alert"
3587
+ "message": "This action cannot be undone."
3586
3588
  },
3587
3589
  {
3588
- "type": "stack",
3590
+ "gap": "sm",
3591
+ "justify": "end",
3589
3592
  "children": [
3590
3593
  {
3591
- "action": "CANCEL",
3592
3594
  "label": "Cancel",
3593
- "variant": "ghost",
3594
- "type": "button"
3595
+ "action": "CANCEL",
3596
+ "type": "button",
3597
+ "variant": "ghost"
3595
3598
  },
3596
3599
  {
3597
3600
  "variant": "danger",
3598
- "action": "CONFIRM_DELETE",
3599
- "icon": "check",
3600
3601
  "type": "button",
3602
+ "icon": "check",
3603
+ "action": "CONFIRM_DELETE",
3601
3604
  "label": "Delete"
3602
3605
  }
3603
3606
  ],
3604
3607
  "direction": "horizontal",
3605
- "gap": "sm",
3606
- "justify": "end"
3608
+ "type": "stack"
3607
3609
  }
3608
- ],
3609
- "type": "stack",
3610
- "direction": "vertical"
3610
+ ]
3611
3611
  }
3612
3612
  ]
3613
3613
  ]
@@ -3646,8 +3646,8 @@
3646
3646
  "Deal",
3647
3647
  {
3648
3648
  "emit": {
3649
- "success": "DealLoaded",
3650
- "failure": "DealLoadFailed"
3649
+ "failure": "DealLoadFailed",
3650
+ "success": "DealLoaded"
3651
3651
  }
3652
3652
  }
3653
3653
  ],
@@ -3708,8 +3708,8 @@
3708
3708
  "Deal",
3709
3709
  {
3710
3710
  "emit": {
3711
- "failure": "DealLoadFailed",
3712
- "success": "DealLoaded"
3711
+ "success": "DealLoaded",
3712
+ "failure": "DealLoadFailed"
3713
3713
  }
3714
3714
  }
3715
3715
  ]
@@ -3885,8 +3885,8 @@
3885
3885
  "Pipeline",
3886
3886
  {
3887
3887
  "emit": {
3888
- "success": "PipelineLoaded",
3889
- "failure": "PipelineLoadFailed"
3888
+ "failure": "PipelineLoadFailed",
3889
+ "success": "PipelineLoaded"
3890
3890
  }
3891
3891
  }
3892
3892
  ],
@@ -3894,14 +3894,37 @@
3894
3894
  "render-ui",
3895
3895
  "main",
3896
3896
  {
3897
+ "navItems": [
3898
+ {
3899
+ "label": "Contacts",
3900
+ "icon": "users",
3901
+ "href": "/contacts"
3902
+ },
3903
+ {
3904
+ "icon": "briefcase",
3905
+ "label": "Deals",
3906
+ "href": "/deals"
3907
+ },
3908
+ {
3909
+ "label": "Pipeline",
3910
+ "icon": "bar-chart-2",
3911
+ "href": "/pipeline"
3912
+ },
3913
+ {
3914
+ "label": "Notes",
3915
+ "icon": "file-text",
3916
+ "href": "/notes"
3917
+ }
3918
+ ],
3897
3919
  "type": "dashboard-layout",
3920
+ "appName": "CRM",
3898
3921
  "children": [
3899
3922
  {
3900
3923
  "children": [
3901
3924
  {
3902
- "direction": "vertical",
3903
3925
  "gap": "lg",
3904
3926
  "type": "stack",
3927
+ "direction": "vertical",
3905
3928
  "children": [
3906
3929
  {
3907
3930
  "type": "breadcrumb",
@@ -3916,48 +3939,49 @@
3916
3939
  ]
3917
3940
  },
3918
3941
  {
3942
+ "type": "stack",
3943
+ "justify": "between",
3919
3944
  "gap": "md",
3920
3945
  "children": [
3921
3946
  {
3922
3947
  "direction": "horizontal",
3948
+ "type": "stack",
3949
+ "gap": "md",
3923
3950
  "children": [
3924
3951
  {
3925
- "type": "icon",
3926
- "name": "bar-chart-2"
3952
+ "name": "bar-chart-2",
3953
+ "type": "icon"
3927
3954
  },
3928
3955
  {
3929
- "content": "Pipeline",
3956
+ "type": "typography",
3930
3957
  "variant": "h2",
3931
- "type": "typography"
3958
+ "content": "Pipeline"
3932
3959
  }
3933
- ],
3934
- "gap": "md",
3935
- "type": "stack"
3960
+ ]
3936
3961
  },
3937
3962
  {
3938
3963
  "action": "REFRESH",
3939
- "icon": "refresh-cw",
3940
- "label": "Refresh",
3941
3964
  "type": "button",
3942
- "variant": "secondary"
3965
+ "label": "Refresh",
3966
+ "variant": "secondary",
3967
+ "icon": "refresh-cw"
3943
3968
  }
3944
3969
  ],
3945
- "type": "stack",
3946
- "direction": "horizontal",
3947
- "justify": "between"
3970
+ "direction": "horizontal"
3948
3971
  },
3949
3972
  {
3950
3973
  "type": "divider"
3951
3974
  },
3952
3975
  {
3976
+ "type": "box",
3977
+ "padding": "md",
3953
3978
  "children": [
3954
3979
  {
3955
- "cols": 3.0,
3956
3980
  "children": [
3957
3981
  {
3958
- "value": "@entity.totalDeals",
3982
+ "type": "stat-display",
3959
3983
  "label": "TotalDeals",
3960
- "type": "stat-display"
3984
+ "value": "@entity.totalDeals"
3961
3985
  },
3962
3986
  {
3963
3987
  "label": "TotalValue",
@@ -3970,9 +3994,9 @@
3970
3994
  "value": "@entity.wonDeals"
3971
3995
  },
3972
3996
  {
3973
- "label": "LostDeals",
3997
+ "type": "stat-display",
3974
3998
  "value": "@entity.lostDeals",
3975
- "type": "stat-display"
3999
+ "label": "LostDeals"
3976
4000
  },
3977
4001
  {
3978
4002
  "value": "@entity.conversionRate",
@@ -3980,60 +4004,59 @@
3980
4004
  "type": "stat-display"
3981
4005
  }
3982
4006
  ],
4007
+ "cols": 3.0,
3983
4008
  "type": "simple-grid"
3984
4009
  }
3985
- ],
3986
- "padding": "md",
3987
- "type": "box"
4010
+ ]
3988
4011
  },
3989
4012
  {
3990
4013
  "type": "divider"
3991
4014
  },
3992
4015
  {
4016
+ "type": "grid",
4017
+ "cols": 2.0,
3993
4018
  "children": [
3994
4019
  {
3995
- "type": "card",
3996
4020
  "children": [
3997
4021
  {
3998
4022
  "type": "typography",
3999
4023
  "variant": "caption",
4000
4024
  "content": "Chart View"
4001
4025
  }
4002
- ]
4026
+ ],
4027
+ "type": "card"
4003
4028
  },
4004
4029
  {
4005
- "type": "card",
4006
4030
  "children": [
4007
4031
  {
4032
+ "type": "typography",
4008
4033
  "variant": "caption",
4009
- "content": "Graph View",
4010
- "type": "typography"
4034
+ "content": "Graph View"
4011
4035
  }
4012
- ]
4036
+ ],
4037
+ "type": "card"
4013
4038
  }
4014
4039
  ],
4015
- "gap": "md",
4016
- "type": "grid",
4017
- "cols": 2.0
4040
+ "gap": "md"
4018
4041
  },
4019
4042
  {
4020
4043
  "type": "line-chart",
4021
4044
  "data": [
4022
4045
  {
4023
- "value": 12.0,
4024
- "date": "Jan"
4046
+ "date": "Jan",
4047
+ "value": 12.0
4025
4048
  },
4026
4049
  {
4027
4050
  "date": "Feb",
4028
4051
  "value": 19.0
4029
4052
  },
4030
4053
  {
4031
- "value": 15.0,
4032
- "date": "Mar"
4054
+ "date": "Mar",
4055
+ "value": 15.0
4033
4056
  },
4034
4057
  {
4035
- "value": 25.0,
4036
- "date": "Apr"
4058
+ "date": "Apr",
4059
+ "value": 25.0
4037
4060
  },
4038
4061
  {
4039
4062
  "value": 22.0,
@@ -4046,27 +4069,27 @@
4046
4069
  ]
4047
4070
  },
4048
4071
  {
4049
- "type": "chart-legend",
4050
4072
  "items": [
4051
4073
  {
4052
- "color": "primary",
4053
- "label": "Current"
4074
+ "label": "Current",
4075
+ "color": "primary"
4054
4076
  },
4055
4077
  {
4056
4078
  "label": "Previous",
4057
4079
  "color": "muted"
4058
4080
  }
4059
- ]
4081
+ ],
4082
+ "type": "chart-legend"
4060
4083
  },
4061
4084
  {
4062
4085
  "nodes": [
4063
4086
  {
4064
- "label": "Start",
4065
- "id": "a"
4087
+ "id": "a",
4088
+ "label": "Start"
4066
4089
  },
4067
4090
  {
4068
- "label": "Process",
4069
- "id": "b"
4091
+ "id": "b",
4092
+ "label": "Process"
4070
4093
  },
4071
4094
  {
4072
4095
  "label": "End",
@@ -4079,42 +4102,19 @@
4079
4102
  "target": "b"
4080
4103
  },
4081
4104
  {
4082
- "source": "b",
4083
- "target": "c"
4105
+ "target": "c",
4106
+ "source": "b"
4084
4107
  }
4085
4108
  ],
4109
+ "height": 200.0,
4086
4110
  "type": "graph-view",
4087
- "width": 400.0,
4088
- "height": 200.0
4111
+ "width": 400.0
4089
4112
  }
4090
4113
  ]
4091
4114
  }
4092
4115
  ],
4093
4116
  "type": "scaled-diagram"
4094
4117
  }
4095
- ],
4096
- "appName": "CRM",
4097
- "navItems": [
4098
- {
4099
- "label": "Contacts",
4100
- "icon": "users",
4101
- "href": "/contacts"
4102
- },
4103
- {
4104
- "href": "/deals",
4105
- "icon": "briefcase",
4106
- "label": "Deals"
4107
- },
4108
- {
4109
- "label": "Pipeline",
4110
- "icon": "bar-chart-2",
4111
- "href": "/pipeline"
4112
- },
4113
- {
4114
- "href": "/notes",
4115
- "label": "Notes",
4116
- "icon": "file-text"
4117
- }
4118
4118
  ]
4119
4119
  }
4120
4120
  ]
@@ -4130,8 +4130,8 @@
4130
4130
  "Pipeline",
4131
4131
  {
4132
4132
  "emit": {
4133
- "failure": "PipelineLoadFailed",
4134
- "success": "PipelineLoaded"
4133
+ "success": "PipelineLoaded",
4134
+ "failure": "PipelineLoadFailed"
4135
4135
  }
4136
4136
  }
4137
4137
  ],
@@ -4139,19 +4139,44 @@
4139
4139
  "render-ui",
4140
4140
  "main",
4141
4141
  {
4142
- "appName": "CRM",
4143
4142
  "type": "dashboard-layout",
4143
+ "appName": "CRM",
4144
+ "navItems": [
4145
+ {
4146
+ "label": "Contacts",
4147
+ "icon": "users",
4148
+ "href": "/contacts"
4149
+ },
4150
+ {
4151
+ "icon": "briefcase",
4152
+ "label": "Deals",
4153
+ "href": "/deals"
4154
+ },
4155
+ {
4156
+ "href": "/pipeline",
4157
+ "icon": "bar-chart-2",
4158
+ "label": "Pipeline"
4159
+ },
4160
+ {
4161
+ "href": "/notes",
4162
+ "label": "Notes",
4163
+ "icon": "file-text"
4164
+ }
4165
+ ],
4144
4166
  "children": [
4145
4167
  {
4168
+ "type": "scaled-diagram",
4146
4169
  "children": [
4147
4170
  {
4171
+ "direction": "vertical",
4172
+ "type": "stack",
4148
4173
  "children": [
4149
4174
  {
4150
4175
  "type": "breadcrumb",
4151
4176
  "items": [
4152
4177
  {
4153
- "href": "/",
4154
- "label": "Home"
4178
+ "label": "Home",
4179
+ "href": "/"
4155
4180
  },
4156
4181
  {
4157
4182
  "label": "Pipeline"
@@ -4159,13 +4184,15 @@
4159
4184
  ]
4160
4185
  },
4161
4186
  {
4187
+ "type": "stack",
4162
4188
  "children": [
4163
4189
  {
4164
- "type": "stack",
4190
+ "direction": "horizontal",
4191
+ "gap": "md",
4165
4192
  "children": [
4166
4193
  {
4167
- "name": "bar-chart-2",
4168
- "type": "icon"
4194
+ "type": "icon",
4195
+ "name": "bar-chart-2"
4169
4196
  },
4170
4197
  {
4171
4198
  "type": "typography",
@@ -4173,49 +4200,48 @@
4173
4200
  "variant": "h2"
4174
4201
  }
4175
4202
  ],
4176
- "direction": "horizontal",
4177
- "gap": "md"
4203
+ "type": "stack"
4178
4204
  },
4179
4205
  {
4180
4206
  "type": "button",
4181
- "label": "Refresh",
4182
4207
  "variant": "secondary",
4183
4208
  "action": "REFRESH",
4209
+ "label": "Refresh",
4184
4210
  "icon": "refresh-cw"
4185
4211
  }
4186
4212
  ],
4187
4213
  "justify": "between",
4188
- "direction": "horizontal",
4189
4214
  "gap": "md",
4190
- "type": "stack"
4215
+ "direction": "horizontal"
4191
4216
  },
4192
4217
  {
4193
4218
  "type": "divider"
4194
4219
  },
4195
4220
  {
4221
+ "type": "box",
4196
4222
  "padding": "md",
4197
4223
  "children": [
4198
4224
  {
4199
4225
  "children": [
4200
4226
  {
4227
+ "value": "@entity.totalDeals",
4201
4228
  "label": "TotalDeals",
4202
- "type": "stat-display",
4203
- "value": "@entity.totalDeals"
4229
+ "type": "stat-display"
4204
4230
  },
4205
4231
  {
4206
- "label": "TotalValue",
4232
+ "value": "@entity.totalValue",
4207
4233
  "type": "stat-display",
4208
- "value": "@entity.totalValue"
4234
+ "label": "TotalValue"
4209
4235
  },
4210
4236
  {
4211
- "value": "@entity.wonDeals",
4212
4237
  "type": "stat-display",
4213
- "label": "WonDeals"
4238
+ "label": "WonDeals",
4239
+ "value": "@entity.wonDeals"
4214
4240
  },
4215
4241
  {
4216
- "value": "@entity.lostDeals",
4242
+ "label": "LostDeals",
4217
4243
  "type": "stat-display",
4218
- "label": "LostDeals"
4244
+ "value": "@entity.lostDeals"
4219
4245
  },
4220
4246
  {
4221
4247
  "type": "stat-display",
@@ -4226,44 +4252,43 @@
4226
4252
  "type": "simple-grid",
4227
4253
  "cols": 3.0
4228
4254
  }
4229
- ],
4230
- "type": "box"
4255
+ ]
4231
4256
  },
4232
4257
  {
4233
4258
  "type": "divider"
4234
4259
  },
4235
4260
  {
4236
4261
  "cols": 2.0,
4237
- "gap": "md",
4238
4262
  "type": "grid",
4239
4263
  "children": [
4240
4264
  {
4241
- "type": "card",
4242
4265
  "children": [
4243
4266
  {
4244
4267
  "type": "typography",
4245
- "variant": "caption",
4246
- "content": "Chart View"
4268
+ "content": "Chart View",
4269
+ "variant": "caption"
4247
4270
  }
4248
- ]
4271
+ ],
4272
+ "type": "card"
4249
4273
  },
4250
4274
  {
4251
4275
  "children": [
4252
4276
  {
4253
4277
  "type": "typography",
4254
- "variant": "caption",
4255
- "content": "Graph View"
4278
+ "content": "Graph View",
4279
+ "variant": "caption"
4256
4280
  }
4257
4281
  ],
4258
4282
  "type": "card"
4259
4283
  }
4260
- ]
4284
+ ],
4285
+ "gap": "md"
4261
4286
  },
4262
4287
  {
4263
4288
  "data": [
4264
4289
  {
4265
- "date": "Jan",
4266
- "value": 12.0
4290
+ "value": 12.0,
4291
+ "date": "Jan"
4267
4292
  },
4268
4293
  {
4269
4294
  "value": 19.0,
@@ -4278,32 +4303,42 @@
4278
4303
  "value": 25.0
4279
4304
  },
4280
4305
  {
4281
- "date": "May",
4282
- "value": 22.0
4306
+ "value": 22.0,
4307
+ "date": "May"
4283
4308
  },
4284
4309
  {
4285
- "value": 30.0,
4286
- "date": "Jun"
4310
+ "date": "Jun",
4311
+ "value": 30.0
4287
4312
  }
4288
4313
  ],
4289
4314
  "type": "line-chart"
4290
4315
  },
4291
4316
  {
4292
- "type": "chart-legend",
4293
4317
  "items": [
4294
4318
  {
4295
- "label": "Current",
4296
- "color": "primary"
4319
+ "color": "primary",
4320
+ "label": "Current"
4297
4321
  },
4298
4322
  {
4299
- "label": "Previous",
4300
- "color": "muted"
4323
+ "color": "muted",
4324
+ "label": "Previous"
4301
4325
  }
4302
- ]
4326
+ ],
4327
+ "type": "chart-legend"
4303
4328
  },
4304
4329
  {
4305
4330
  "type": "graph-view",
4306
4331
  "height": 200.0,
4332
+ "edges": [
4333
+ {
4334
+ "source": "a",
4335
+ "target": "b"
4336
+ },
4337
+ {
4338
+ "target": "c",
4339
+ "source": "b"
4340
+ }
4341
+ ],
4307
4342
  "width": 400.0,
4308
4343
  "nodes": [
4309
4344
  {
@@ -4315,50 +4350,15 @@
4315
4350
  "label": "Process"
4316
4351
  },
4317
4352
  {
4318
- "id": "c",
4319
- "label": "End"
4320
- }
4321
- ],
4322
- "edges": [
4323
- {
4324
- "source": "a",
4325
- "target": "b"
4326
- },
4327
- {
4328
- "source": "b",
4329
- "target": "c"
4353
+ "label": "End",
4354
+ "id": "c"
4330
4355
  }
4331
4356
  ]
4332
4357
  }
4333
4358
  ],
4334
- "type": "stack",
4335
- "direction": "vertical",
4336
4359
  "gap": "lg"
4337
4360
  }
4338
- ],
4339
- "type": "scaled-diagram"
4340
- }
4341
- ],
4342
- "navItems": [
4343
- {
4344
- "label": "Contacts",
4345
- "href": "/contacts",
4346
- "icon": "users"
4347
- },
4348
- {
4349
- "icon": "briefcase",
4350
- "label": "Deals",
4351
- "href": "/deals"
4352
- },
4353
- {
4354
- "label": "Pipeline",
4355
- "href": "/pipeline",
4356
- "icon": "bar-chart-2"
4357
- },
4358
- {
4359
- "href": "/notes",
4360
- "label": "Notes",
4361
- "icon": "file-text"
4361
+ ]
4362
4362
  }
4363
4363
  ]
4364
4364
  }
@@ -4384,38 +4384,16 @@
4384
4384
  "render-ui",
4385
4385
  "main",
4386
4386
  {
4387
- "type": "dashboard-layout",
4388
- "navItems": [
4389
- {
4390
- "icon": "users",
4391
- "href": "/contacts",
4392
- "label": "Contacts"
4393
- },
4394
- {
4395
- "href": "/deals",
4396
- "label": "Deals",
4397
- "icon": "briefcase"
4398
- },
4399
- {
4400
- "label": "Pipeline",
4401
- "href": "/pipeline",
4402
- "icon": "bar-chart-2"
4403
- },
4404
- {
4405
- "icon": "file-text",
4406
- "label": "Notes",
4407
- "href": "/notes"
4408
- }
4409
- ],
4410
- "appName": "CRM",
4411
4387
  "children": [
4412
4388
  {
4389
+ "type": "scaled-diagram",
4413
4390
  "children": [
4414
4391
  {
4415
- "direction": "vertical",
4392
+ "gap": "lg",
4416
4393
  "type": "stack",
4417
4394
  "children": [
4418
4395
  {
4396
+ "type": "breadcrumb",
4419
4397
  "items": [
4420
4398
  {
4421
4399
  "href": "/",
@@ -4424,46 +4402,49 @@
4424
4402
  {
4425
4403
  "label": "Pipeline"
4426
4404
  }
4427
- ],
4428
- "type": "breadcrumb"
4405
+ ]
4429
4406
  },
4430
4407
  {
4431
- "direction": "horizontal",
4432
4408
  "type": "stack",
4433
4409
  "justify": "between",
4434
4410
  "children": [
4435
4411
  {
4412
+ "direction": "horizontal",
4436
4413
  "type": "stack",
4437
- "gap": "md",
4438
4414
  "children": [
4439
4415
  {
4440
- "name": "bar-chart-2",
4441
- "type": "icon"
4416
+ "type": "icon",
4417
+ "name": "bar-chart-2"
4442
4418
  },
4443
4419
  {
4444
4420
  "type": "typography",
4445
- "content": "Pipeline",
4446
- "variant": "h2"
4421
+ "variant": "h2",
4422
+ "content": "Pipeline"
4447
4423
  }
4448
4424
  ],
4449
- "direction": "horizontal"
4425
+ "gap": "md"
4450
4426
  },
4451
4427
  {
4452
4428
  "type": "button",
4453
- "action": "REFRESH",
4454
4429
  "label": "Refresh",
4455
- "icon": "refresh-cw",
4456
- "variant": "secondary"
4430
+ "action": "REFRESH",
4431
+ "variant": "secondary",
4432
+ "icon": "refresh-cw"
4457
4433
  }
4458
4434
  ],
4435
+ "direction": "horizontal",
4459
4436
  "gap": "md"
4460
4437
  },
4461
4438
  {
4462
4439
  "type": "divider"
4463
4440
  },
4464
4441
  {
4442
+ "type": "box",
4443
+ "padding": "md",
4465
4444
  "children": [
4466
4445
  {
4446
+ "type": "simple-grid",
4447
+ "cols": 3.0,
4467
4448
  "children": [
4468
4449
  {
4469
4450
  "value": "@entity.totalDeals",
@@ -4471,85 +4452,81 @@
4471
4452
  "label": "TotalDeals"
4472
4453
  },
4473
4454
  {
4474
- "value": "@entity.totalValue",
4475
4455
  "type": "stat-display",
4476
- "label": "TotalValue"
4456
+ "label": "TotalValue",
4457
+ "value": "@entity.totalValue"
4477
4458
  },
4478
4459
  {
4479
- "value": "@entity.wonDeals",
4480
4460
  "type": "stat-display",
4481
- "label": "WonDeals"
4461
+ "label": "WonDeals",
4462
+ "value": "@entity.wonDeals"
4482
4463
  },
4483
4464
  {
4484
- "type": "stat-display",
4465
+ "label": "LostDeals",
4485
4466
  "value": "@entity.lostDeals",
4486
- "label": "LostDeals"
4467
+ "type": "stat-display"
4487
4468
  },
4488
4469
  {
4489
- "value": "@entity.conversionRate",
4490
4470
  "type": "stat-display",
4491
- "label": "ConversionRate"
4471
+ "label": "ConversionRate",
4472
+ "value": "@entity.conversionRate"
4492
4473
  }
4493
- ],
4494
- "type": "simple-grid",
4495
- "cols": 3.0
4474
+ ]
4496
4475
  }
4497
- ],
4498
- "padding": "md",
4499
- "type": "box"
4476
+ ]
4500
4477
  },
4501
4478
  {
4502
4479
  "type": "divider"
4503
4480
  },
4504
4481
  {
4482
+ "type": "grid",
4505
4483
  "cols": 2.0,
4484
+ "gap": "md",
4506
4485
  "children": [
4507
4486
  {
4508
- "type": "card",
4509
4487
  "children": [
4510
4488
  {
4511
- "type": "typography",
4512
4489
  "variant": "caption",
4490
+ "type": "typography",
4513
4491
  "content": "Chart View"
4514
4492
  }
4515
- ]
4493
+ ],
4494
+ "type": "card"
4516
4495
  },
4517
4496
  {
4518
- "type": "card",
4519
4497
  "children": [
4520
4498
  {
4521
- "type": "typography",
4522
4499
  "variant": "caption",
4500
+ "type": "typography",
4523
4501
  "content": "Graph View"
4524
4502
  }
4525
- ]
4503
+ ],
4504
+ "type": "card"
4526
4505
  }
4527
- ],
4528
- "gap": "md",
4529
- "type": "grid"
4506
+ ]
4530
4507
  },
4531
4508
  {
4532
4509
  "type": "line-chart",
4533
4510
  "data": [
4534
4511
  {
4535
- "date": "Jan",
4536
- "value": 12.0
4512
+ "value": 12.0,
4513
+ "date": "Jan"
4537
4514
  },
4538
4515
  {
4539
- "value": 19.0,
4540
- "date": "Feb"
4516
+ "date": "Feb",
4517
+ "value": 19.0
4541
4518
  },
4542
4519
  {
4543
- "value": 15.0,
4544
- "date": "Mar"
4520
+ "date": "Mar",
4521
+ "value": 15.0
4545
4522
  },
4546
4523
  {
4547
- "date": "Apr",
4548
- "value": 25.0
4524
+ "value": 25.0,
4525
+ "date": "Apr"
4549
4526
  },
4550
4527
  {
4551
- "date": "May",
4552
- "value": 22.0
4528
+ "value": 22.0,
4529
+ "date": "May"
4553
4530
  },
4554
4531
  {
4555
4532
  "date": "Jun",
@@ -4558,54 +4535,77 @@
4558
4535
  ]
4559
4536
  },
4560
4537
  {
4561
- "type": "chart-legend",
4562
4538
  "items": [
4563
4539
  {
4564
4540
  "color": "primary",
4565
4541
  "label": "Current"
4566
4542
  },
4567
4543
  {
4568
- "label": "Previous",
4569
- "color": "muted"
4544
+ "color": "muted",
4545
+ "label": "Previous"
4570
4546
  }
4571
- ]
4547
+ ],
4548
+ "type": "chart-legend"
4572
4549
  },
4573
4550
  {
4574
- "edges": [
4575
- {
4576
- "source": "a",
4577
- "target": "b"
4578
- },
4579
- {
4580
- "source": "b",
4581
- "target": "c"
4582
- }
4583
- ],
4551
+ "type": "graph-view",
4584
4552
  "nodes": [
4585
4553
  {
4586
- "id": "a",
4587
- "label": "Start"
4554
+ "label": "Start",
4555
+ "id": "a"
4588
4556
  },
4589
4557
  {
4590
4558
  "id": "b",
4591
4559
  "label": "Process"
4592
4560
  },
4593
4561
  {
4594
- "id": "c",
4595
- "label": "End"
4562
+ "label": "End",
4563
+ "id": "c"
4596
4564
  }
4597
4565
  ],
4598
- "type": "graph-view",
4599
- "width": 400.0,
4600
- "height": 200.0
4566
+ "edges": [
4567
+ {
4568
+ "target": "b",
4569
+ "source": "a"
4570
+ },
4571
+ {
4572
+ "source": "b",
4573
+ "target": "c"
4574
+ }
4575
+ ],
4576
+ "height": 200.0,
4577
+ "width": 400.0
4601
4578
  }
4602
4579
  ],
4603
- "gap": "lg"
4580
+ "direction": "vertical"
4604
4581
  }
4605
- ],
4606
- "type": "scaled-diagram"
4582
+ ]
4607
4583
  }
4608
- ]
4584
+ ],
4585
+ "type": "dashboard-layout",
4586
+ "navItems": [
4587
+ {
4588
+ "icon": "users",
4589
+ "label": "Contacts",
4590
+ "href": "/contacts"
4591
+ },
4592
+ {
4593
+ "href": "/deals",
4594
+ "label": "Deals",
4595
+ "icon": "briefcase"
4596
+ },
4597
+ {
4598
+ "label": "Pipeline",
4599
+ "href": "/pipeline",
4600
+ "icon": "bar-chart-2"
4601
+ },
4602
+ {
4603
+ "icon": "file-text",
4604
+ "label": "Notes",
4605
+ "href": "/notes"
4606
+ }
4607
+ ],
4608
+ "appName": "CRM"
4609
4609
  }
4610
4610
  ]
4611
4611
  ]
@@ -4620,8 +4620,8 @@
4620
4620
  "Pipeline",
4621
4621
  {
4622
4622
  "emit": {
4623
- "failure": "PipelineLoadFailed",
4624
- "success": "PipelineLoaded"
4623
+ "success": "PipelineLoaded",
4624
+ "failure": "PipelineLoadFailed"
4625
4625
  }
4626
4626
  }
4627
4627
  ],
@@ -4629,75 +4629,75 @@
4629
4629
  "render-ui",
4630
4630
  "main",
4631
4631
  {
4632
- "type": "dashboard-layout",
4633
- "appName": "CRM",
4634
4632
  "children": [
4635
4633
  {
4634
+ "type": "scaled-diagram",
4636
4635
  "children": [
4637
4636
  {
4638
- "type": "stack",
4639
- "direction": "vertical",
4640
4637
  "gap": "lg",
4638
+ "direction": "vertical",
4641
4639
  "children": [
4642
4640
  {
4643
- "type": "breadcrumb",
4644
4641
  "items": [
4645
4642
  {
4646
- "href": "/",
4647
- "label": "Home"
4643
+ "label": "Home",
4644
+ "href": "/"
4648
4645
  },
4649
4646
  {
4650
4647
  "label": "Pipeline"
4651
4648
  }
4652
- ]
4649
+ ],
4650
+ "type": "breadcrumb"
4653
4651
  },
4654
4652
  {
4653
+ "justify": "between",
4655
4654
  "children": [
4656
4655
  {
4657
- "direction": "horizontal",
4658
4656
  "type": "stack",
4659
- "gap": "md",
4660
4657
  "children": [
4661
4658
  {
4662
4659
  "type": "icon",
4663
4660
  "name": "bar-chart-2"
4664
4661
  },
4665
4662
  {
4666
- "content": "Pipeline",
4663
+ "type": "typography",
4667
4664
  "variant": "h2",
4668
- "type": "typography"
4665
+ "content": "Pipeline"
4669
4666
  }
4670
- ]
4667
+ ],
4668
+ "gap": "md",
4669
+ "direction": "horizontal"
4671
4670
  },
4672
4671
  {
4672
+ "label": "Refresh",
4673
4673
  "variant": "secondary",
4674
4674
  "action": "REFRESH",
4675
- "type": "button",
4676
4675
  "icon": "refresh-cw",
4677
- "label": "Refresh"
4676
+ "type": "button"
4678
4677
  }
4679
4678
  ],
4679
+ "gap": "md",
4680
4680
  "type": "stack",
4681
- "direction": "horizontal",
4682
- "justify": "between",
4683
- "gap": "md"
4681
+ "direction": "horizontal"
4684
4682
  },
4685
4683
  {
4686
4684
  "type": "divider"
4687
4685
  },
4688
4686
  {
4687
+ "type": "box",
4689
4688
  "children": [
4690
4689
  {
4690
+ "type": "simple-grid",
4691
4691
  "cols": 3.0,
4692
4692
  "children": [
4693
4693
  {
4694
+ "type": "stat-display",
4694
4695
  "label": "TotalDeals",
4695
- "value": "@entity.totalDeals",
4696
- "type": "stat-display"
4696
+ "value": "@entity.totalDeals"
4697
4697
  },
4698
4698
  {
4699
- "label": "TotalValue",
4700
4699
  "value": "@entity.totalValue",
4700
+ "label": "TotalValue",
4701
4701
  "type": "stat-display"
4702
4702
  },
4703
4703
  {
@@ -4711,48 +4711,47 @@
4711
4711
  "type": "stat-display"
4712
4712
  },
4713
4713
  {
4714
- "label": "ConversionRate",
4715
4714
  "value": "@entity.conversionRate",
4716
- "type": "stat-display"
4715
+ "type": "stat-display",
4716
+ "label": "ConversionRate"
4717
4717
  }
4718
- ],
4719
- "type": "simple-grid"
4718
+ ]
4720
4719
  }
4721
4720
  ],
4722
- "type": "box",
4723
4721
  "padding": "md"
4724
4722
  },
4725
4723
  {
4726
4724
  "type": "divider"
4727
4725
  },
4728
4726
  {
4729
- "type": "grid",
4730
4727
  "cols": 2.0,
4728
+ "type": "grid",
4731
4729
  "children": [
4732
4730
  {
4733
4731
  "type": "card",
4734
4732
  "children": [
4735
4733
  {
4736
4734
  "content": "Chart View",
4737
- "type": "typography",
4738
- "variant": "caption"
4735
+ "variant": "caption",
4736
+ "type": "typography"
4739
4737
  }
4740
4738
  ]
4741
4739
  },
4742
4740
  {
4741
+ "type": "card",
4743
4742
  "children": [
4744
4743
  {
4744
+ "content": "Graph View",
4745
4745
  "type": "typography",
4746
- "variant": "caption",
4747
- "content": "Graph View"
4746
+ "variant": "caption"
4748
4747
  }
4749
- ],
4750
- "type": "card"
4748
+ ]
4751
4749
  }
4752
4750
  ],
4753
4751
  "gap": "md"
4754
4752
  },
4755
4753
  {
4754
+ "type": "line-chart",
4756
4755
  "data": [
4757
4756
  {
4758
4757
  "date": "Jan",
@@ -4767,8 +4766,8 @@
4767
4766
  "date": "Mar"
4768
4767
  },
4769
4768
  {
4770
- "value": 25.0,
4771
- "date": "Apr"
4769
+ "date": "Apr",
4770
+ "value": 25.0
4772
4771
  },
4773
4772
  {
4774
4773
  "date": "May",
@@ -4778,40 +4777,37 @@
4778
4777
  "date": "Jun",
4779
4778
  "value": 30.0
4780
4779
  }
4781
- ],
4782
- "type": "line-chart"
4780
+ ]
4783
4781
  },
4784
4782
  {
4785
- "type": "chart-legend",
4786
4783
  "items": [
4787
4784
  {
4788
4785
  "color": "primary",
4789
4786
  "label": "Current"
4790
4787
  },
4791
4788
  {
4792
- "color": "muted",
4793
- "label": "Previous"
4789
+ "label": "Previous",
4790
+ "color": "muted"
4794
4791
  }
4795
- ]
4792
+ ],
4793
+ "type": "chart-legend"
4796
4794
  },
4797
4795
  {
4796
+ "type": "graph-view",
4798
4797
  "nodes": [
4799
4798
  {
4800
4799
  "id": "a",
4801
4800
  "label": "Start"
4802
4801
  },
4803
4802
  {
4804
- "id": "b",
4805
- "label": "Process"
4803
+ "label": "Process",
4804
+ "id": "b"
4806
4805
  },
4807
4806
  {
4808
- "id": "c",
4809
- "label": "End"
4807
+ "label": "End",
4808
+ "id": "c"
4810
4809
  }
4811
4810
  ],
4812
- "type": "graph-view",
4813
- "height": 200.0,
4814
- "width": 400.0,
4815
4811
  "edges": [
4816
4812
  {
4817
4813
  "target": "b",
@@ -4821,14 +4817,17 @@
4821
4817
  "source": "b",
4822
4818
  "target": "c"
4823
4819
  }
4824
- ]
4820
+ ],
4821
+ "width": 400.0,
4822
+ "height": 200.0
4825
4823
  }
4826
- ]
4824
+ ],
4825
+ "type": "stack"
4827
4826
  }
4828
- ],
4829
- "type": "scaled-diagram"
4827
+ ]
4830
4828
  }
4831
4829
  ],
4830
+ "appName": "CRM",
4832
4831
  "navItems": [
4833
4832
  {
4834
4833
  "label": "Contacts",
@@ -4841,16 +4840,17 @@
4841
4840
  "icon": "briefcase"
4842
4841
  },
4843
4842
  {
4843
+ "icon": "bar-chart-2",
4844
4844
  "label": "Pipeline",
4845
- "href": "/pipeline",
4846
- "icon": "bar-chart-2"
4845
+ "href": "/pipeline"
4847
4846
  },
4848
4847
  {
4848
+ "icon": "file-text",
4849
4849
  "label": "Notes",
4850
- "href": "/notes",
4851
- "icon": "file-text"
4850
+ "href": "/notes"
4852
4851
  }
4853
- ]
4852
+ ],
4853
+ "type": "dashboard-layout"
4854
4854
  }
4855
4855
  ]
4856
4856
  ]
@@ -4865,8 +4865,8 @@
4865
4865
  "Pipeline",
4866
4866
  {
4867
4867
  "emit": {
4868
- "success": "PipelineLoaded",
4869
- "failure": "PipelineLoadFailed"
4868
+ "failure": "PipelineLoadFailed",
4869
+ "success": "PipelineLoaded"
4870
4870
  }
4871
4871
  }
4872
4872
  ],
@@ -4874,36 +4874,11 @@
4874
4874
  "render-ui",
4875
4875
  "main",
4876
4876
  {
4877
- "type": "dashboard-layout",
4878
- "appName": "CRM",
4879
- "navItems": [
4880
- {
4881
- "icon": "users",
4882
- "label": "Contacts",
4883
- "href": "/contacts"
4884
- },
4885
- {
4886
- "label": "Deals",
4887
- "icon": "briefcase",
4888
- "href": "/deals"
4889
- },
4890
- {
4891
- "icon": "bar-chart-2",
4892
- "href": "/pipeline",
4893
- "label": "Pipeline"
4894
- },
4895
- {
4896
- "icon": "file-text",
4897
- "href": "/notes",
4898
- "label": "Notes"
4899
- }
4900
- ],
4901
4877
  "children": [
4902
4878
  {
4903
4879
  "type": "scaled-diagram",
4904
4880
  "children": [
4905
4881
  {
4906
- "direction": "vertical",
4907
4882
  "gap": "lg",
4908
4883
  "type": "stack",
4909
4884
  "children": [
@@ -4911,8 +4886,8 @@
4911
4886
  "type": "breadcrumb",
4912
4887
  "items": [
4913
4888
  {
4914
- "label": "Home",
4915
- "href": "/"
4889
+ "href": "/",
4890
+ "label": "Home"
4916
4891
  },
4917
4892
  {
4918
4893
  "label": "Pipeline"
@@ -4920,17 +4895,13 @@
4920
4895
  ]
4921
4896
  },
4922
4897
  {
4923
- "type": "stack",
4924
- "direction": "horizontal",
4925
4898
  "gap": "md",
4926
- "justify": "between",
4927
4899
  "children": [
4928
4900
  {
4929
- "direction": "horizontal",
4930
4901
  "children": [
4931
4902
  {
4932
- "name": "bar-chart-2",
4933
- "type": "icon"
4903
+ "type": "icon",
4904
+ "name": "bar-chart-2"
4934
4905
  },
4935
4906
  {
4936
4907
  "content": "Pipeline",
@@ -4938,102 +4909,105 @@
4938
4909
  "type": "typography"
4939
4910
  }
4940
4911
  ],
4941
- "type": "stack",
4942
- "gap": "md"
4912
+ "gap": "md",
4913
+ "direction": "horizontal",
4914
+ "type": "stack"
4943
4915
  },
4944
4916
  {
4917
+ "type": "button",
4918
+ "variant": "secondary",
4945
4919
  "icon": "refresh-cw",
4946
4920
  "label": "Refresh",
4947
- "action": "REFRESH",
4948
- "type": "button",
4949
- "variant": "secondary"
4921
+ "action": "REFRESH"
4950
4922
  }
4951
- ]
4923
+ ],
4924
+ "type": "stack",
4925
+ "direction": "horizontal",
4926
+ "justify": "between"
4952
4927
  },
4953
4928
  {
4954
4929
  "type": "divider"
4955
4930
  },
4956
4931
  {
4932
+ "type": "box",
4933
+ "padding": "md",
4957
4934
  "children": [
4958
4935
  {
4959
4936
  "cols": 3.0,
4937
+ "type": "simple-grid",
4960
4938
  "children": [
4961
4939
  {
4962
- "value": "@entity.totalDeals",
4963
4940
  "type": "stat-display",
4964
- "label": "TotalDeals"
4941
+ "label": "TotalDeals",
4942
+ "value": "@entity.totalDeals"
4965
4943
  },
4966
4944
  {
4967
4945
  "type": "stat-display",
4968
- "value": "@entity.totalValue",
4969
- "label": "TotalValue"
4946
+ "label": "TotalValue",
4947
+ "value": "@entity.totalValue"
4970
4948
  },
4971
4949
  {
4972
- "label": "WonDeals",
4973
4950
  "type": "stat-display",
4974
- "value": "@entity.wonDeals"
4951
+ "value": "@entity.wonDeals",
4952
+ "label": "WonDeals"
4975
4953
  },
4976
4954
  {
4955
+ "value": "@entity.lostDeals",
4977
4956
  "type": "stat-display",
4978
- "label": "LostDeals",
4979
- "value": "@entity.lostDeals"
4957
+ "label": "LostDeals"
4980
4958
  },
4981
4959
  {
4982
- "value": "@entity.conversionRate",
4960
+ "type": "stat-display",
4983
4961
  "label": "ConversionRate",
4984
- "type": "stat-display"
4962
+ "value": "@entity.conversionRate"
4985
4963
  }
4986
- ],
4987
- "type": "simple-grid"
4964
+ ]
4988
4965
  }
4989
- ],
4990
- "type": "box",
4991
- "padding": "md"
4966
+ ]
4992
4967
  },
4993
4968
  {
4994
4969
  "type": "divider"
4995
4970
  },
4996
4971
  {
4997
4972
  "type": "grid",
4998
- "cols": 2.0,
4973
+ "gap": "md",
4999
4974
  "children": [
5000
4975
  {
4976
+ "type": "card",
5001
4977
  "children": [
5002
4978
  {
5003
4979
  "type": "typography",
5004
4980
  "variant": "caption",
5005
4981
  "content": "Chart View"
5006
4982
  }
5007
- ],
5008
- "type": "card"
4983
+ ]
5009
4984
  },
5010
4985
  {
5011
- "type": "card",
5012
4986
  "children": [
5013
4987
  {
5014
- "type": "typography",
5015
4988
  "variant": "caption",
5016
- "content": "Graph View"
4989
+ "content": "Graph View",
4990
+ "type": "typography"
5017
4991
  }
5018
- ]
4992
+ ],
4993
+ "type": "card"
5019
4994
  }
5020
4995
  ],
5021
- "gap": "md"
4996
+ "cols": 2.0
5022
4997
  },
5023
4998
  {
5024
- "type": "line-chart",
5025
4999
  "data": [
5026
5000
  {
5027
- "date": "Jan",
5028
- "value": 12.0
5001
+ "value": 12.0,
5002
+ "date": "Jan"
5029
5003
  },
5030
5004
  {
5031
- "date": "Feb",
5032
- "value": 19.0
5005
+ "value": 19.0,
5006
+ "date": "Feb"
5033
5007
  },
5034
5008
  {
5035
- "date": "Mar",
5036
- "value": 15.0
5009
+ "value": 15.0,
5010
+ "date": "Mar"
5037
5011
  },
5038
5012
  {
5039
5013
  "date": "Apr",
@@ -5047,10 +5021,10 @@
5047
5021
  "date": "Jun",
5048
5022
  "value": 30.0
5049
5023
  }
5050
- ]
5024
+ ],
5025
+ "type": "line-chart"
5051
5026
  },
5052
5027
  {
5053
- "type": "chart-legend",
5054
5028
  "items": [
5055
5029
  {
5056
5030
  "color": "primary",
@@ -5060,15 +5034,14 @@
5060
5034
  "label": "Previous",
5061
5035
  "color": "muted"
5062
5036
  }
5063
- ]
5037
+ ],
5038
+ "type": "chart-legend"
5064
5039
  },
5065
5040
  {
5066
- "width": 400.0,
5067
- "type": "graph-view",
5068
5041
  "nodes": [
5069
5042
  {
5070
- "label": "Start",
5071
- "id": "a"
5043
+ "id": "a",
5044
+ "label": "Start"
5072
5045
  },
5073
5046
  {
5074
5047
  "label": "Process",
@@ -5079,23 +5052,50 @@
5079
5052
  "id": "c"
5080
5053
  }
5081
5054
  ],
5082
- "height": 200.0,
5055
+ "width": 400.0,
5083
5056
  "edges": [
5084
5057
  {
5085
- "target": "b",
5086
- "source": "a"
5058
+ "source": "a",
5059
+ "target": "b"
5087
5060
  },
5088
5061
  {
5089
- "source": "b",
5090
- "target": "c"
5062
+ "target": "c",
5063
+ "source": "b"
5091
5064
  }
5092
- ]
5065
+ ],
5066
+ "height": 200.0,
5067
+ "type": "graph-view"
5093
5068
  }
5094
- ]
5069
+ ],
5070
+ "direction": "vertical"
5095
5071
  }
5096
5072
  ]
5097
5073
  }
5098
- ]
5074
+ ],
5075
+ "navItems": [
5076
+ {
5077
+ "label": "Contacts",
5078
+ "href": "/contacts",
5079
+ "icon": "users"
5080
+ },
5081
+ {
5082
+ "icon": "briefcase",
5083
+ "label": "Deals",
5084
+ "href": "/deals"
5085
+ },
5086
+ {
5087
+ "href": "/pipeline",
5088
+ "icon": "bar-chart-2",
5089
+ "label": "Pipeline"
5090
+ },
5091
+ {
5092
+ "href": "/notes",
5093
+ "icon": "file-text",
5094
+ "label": "Notes"
5095
+ }
5096
+ ],
5097
+ "appName": "CRM",
5098
+ "type": "dashboard-layout"
5099
5099
  }
5100
5100
  ]
5101
5101
  ]
@@ -5237,8 +5237,8 @@
5237
5237
  "Note",
5238
5238
  {
5239
5239
  "emit": {
5240
- "failure": "NoteLoadFailed",
5241
- "success": "NoteLoaded"
5240
+ "success": "NoteLoaded",
5241
+ "failure": "NoteLoadFailed"
5242
5242
  }
5243
5243
  }
5244
5244
  ],
@@ -5246,20 +5246,20 @@
5246
5246
  "render-ui",
5247
5247
  "main",
5248
5248
  {
5249
+ "type": "stack",
5250
+ "gap": "md",
5249
5251
  "align": "center",
5250
5252
  "direction": "vertical",
5251
- "gap": "md",
5252
- "type": "stack",
5253
5253
  "className": "py-12",
5254
5254
  "children": [
5255
5255
  {
5256
5256
  "type": "spinner"
5257
5257
  },
5258
5258
  {
5259
- "color": "muted",
5259
+ "content": "Loading…",
5260
5260
  "variant": "caption",
5261
- "type": "typography",
5262
- "content": "Loading…"
5261
+ "color": "muted",
5262
+ "type": "typography"
5263
5263
  }
5264
5264
  ]
5265
5265
  }
@@ -5275,8 +5275,6 @@
5275
5275
  "render-ui",
5276
5276
  "main",
5277
5277
  {
5278
- "appName": "CRM",
5279
- "type": "dashboard-layout",
5280
5278
  "navItems": [
5281
5279
  {
5282
5280
  "icon": "users",
@@ -5289,99 +5287,101 @@
5289
5287
  "icon": "briefcase"
5290
5288
  },
5291
5289
  {
5292
- "href": "/pipeline",
5293
5290
  "label": "Pipeline",
5291
+ "href": "/pipeline",
5294
5292
  "icon": "bar-chart-2"
5295
5293
  },
5296
5294
  {
5295
+ "href": "/notes",
5297
5296
  "icon": "file-text",
5298
- "label": "Notes",
5299
- "href": "/notes"
5297
+ "label": "Notes"
5300
5298
  }
5301
5299
  ],
5302
5300
  "children": [
5303
5301
  {
5302
+ "direction": "vertical",
5303
+ "gap": "lg",
5304
+ "type": "stack",
5304
5305
  "children": [
5305
5306
  {
5306
- "direction": "horizontal",
5307
5307
  "justify": "between",
5308
- "type": "stack",
5309
5308
  "align": "center",
5310
- "gap": "md",
5311
5309
  "children": [
5312
5310
  {
5313
- "direction": "horizontal",
5314
- "gap": "sm",
5315
- "type": "stack",
5316
5311
  "align": "center",
5317
5312
  "children": [
5318
5313
  {
5319
- "name": "file-text",
5320
- "type": "icon"
5314
+ "type": "icon",
5315
+ "name": "file-text"
5321
5316
  },
5322
5317
  {
5323
- "variant": "h2",
5324
5318
  "type": "typography",
5319
+ "variant": "h2",
5325
5320
  "content": "Notes"
5326
5321
  }
5327
- ]
5322
+ ],
5323
+ "gap": "sm",
5324
+ "direction": "horizontal",
5325
+ "type": "stack"
5328
5326
  },
5329
5327
  {
5330
5328
  "children": [
5331
5329
  {
5332
- "action": "COMPOSE",
5333
- "variant": "primary",
5334
- "label": "Compose",
5335
5330
  "type": "button",
5336
- "icon": "edit"
5331
+ "variant": "primary",
5332
+ "action": "COMPOSE",
5333
+ "icon": "edit",
5334
+ "label": "Compose"
5337
5335
  }
5338
5336
  ],
5337
+ "type": "stack",
5339
5338
  "gap": "sm",
5340
- "direction": "horizontal",
5341
- "type": "stack"
5339
+ "direction": "horizontal"
5342
5340
  }
5343
- ]
5341
+ ],
5342
+ "gap": "md",
5343
+ "direction": "horizontal",
5344
+ "type": "stack"
5344
5345
  },
5345
5346
  {
5346
5347
  "type": "divider"
5347
5348
  },
5348
5349
  {
5349
- "gap": "sm",
5350
5350
  "variant": "card",
5351
+ "gap": "sm",
5352
+ "fields": [],
5351
5353
  "columns": [
5352
5354
  {
5353
- "name": "subject",
5354
5355
  "variant": "h4",
5355
- "icon": "file-text"
5356
+ "icon": "file-text",
5357
+ "name": "subject"
5356
5358
  },
5357
5359
  {
5358
5360
  "name": "author",
5359
5361
  "variant": "caption"
5360
5362
  },
5361
5363
  {
5364
+ "name": "createdAt",
5362
5365
  "format": "date",
5363
- "variant": "caption",
5364
- "name": "createdAt"
5366
+ "variant": "caption"
5365
5367
  }
5366
5368
  ],
5367
- "type": "data-list",
5368
- "fields": [],
5369
5369
  "entity": "@payload.data",
5370
+ "type": "data-list",
5370
5371
  "itemActions": [
5371
5372
  {
5373
+ "event": "VIEW",
5372
5374
  "variant": "ghost",
5373
- "label": "View",
5374
- "event": "VIEW"
5375
+ "label": "View"
5375
5376
  }
5376
5377
  ]
5377
5378
  }
5378
5379
  ],
5379
- "direction": "vertical",
5380
- "className": "max-w-5xl mx-auto w-full",
5381
- "gap": "lg",
5382
- "type": "stack"
5380
+ "className": "max-w-5xl mx-auto w-full"
5383
5381
  }
5384
- ]
5382
+ ],
5383
+ "type": "dashboard-layout",
5384
+ "appName": "CRM"
5385
5385
  }
5386
5386
  ]
5387
5387
  ]
@@ -5395,36 +5395,36 @@
5395
5395
  "render-ui",
5396
5396
  "main",
5397
5397
  {
5398
+ "className": "py-12",
5398
5399
  "align": "center",
5399
5400
  "children": [
5400
5401
  {
5401
- "color": "destructive",
5402
+ "name": "alert-triangle",
5402
5403
  "type": "icon",
5403
- "name": "alert-triangle"
5404
+ "color": "destructive"
5404
5405
  },
5405
5406
  {
5406
- "content": "Failed to load note",
5407
5407
  "variant": "h3",
5408
+ "content": "Failed to load note",
5408
5409
  "type": "typography"
5409
5410
  },
5410
5411
  {
5411
- "variant": "body",
5412
5412
  "type": "typography",
5413
+ "variant": "body",
5413
5414
  "content": "@payload.error",
5414
5415
  "color": "muted"
5415
5416
  },
5416
5417
  {
5417
- "label": "Retry",
5418
- "action": "INIT",
5419
5418
  "variant": "primary",
5420
5419
  "type": "button",
5421
- "icon": "rotate-ccw"
5420
+ "icon": "rotate-ccw",
5421
+ "action": "INIT",
5422
+ "label": "Retry"
5422
5423
  }
5423
5424
  ],
5424
- "gap": "md",
5425
- "className": "py-12",
5426
5425
  "direction": "vertical",
5427
- "type": "stack"
5426
+ "type": "stack",
5427
+ "gap": "md"
5428
5428
  }
5429
5429
  ]
5430
5430
  ]
@@ -5585,8 +5585,8 @@
5585
5585
  "Note",
5586
5586
  {
5587
5587
  "emit": {
5588
- "failure": "NoteLoadFailed",
5589
- "success": "NoteLoaded"
5588
+ "success": "NoteLoaded",
5589
+ "failure": "NoteLoadFailed"
5590
5590
  }
5591
5591
  }
5592
5592
  ]
@@ -5601,25 +5601,23 @@
5601
5601
  "render-ui",
5602
5602
  "modal",
5603
5603
  {
5604
- "gap": "md",
5605
5604
  "type": "stack",
5606
- "direction": "vertical",
5607
5605
  "children": [
5608
5606
  {
5609
- "type": "stack",
5610
- "gap": "sm",
5611
- "direction": "horizontal",
5612
5607
  "children": [
5613
5608
  {
5614
- "type": "icon",
5615
- "name": "edit"
5609
+ "name": "edit",
5610
+ "type": "icon"
5616
5611
  },
5617
5612
  {
5618
- "type": "typography",
5619
5613
  "content": "New Note",
5614
+ "type": "typography",
5620
5615
  "variant": "h3"
5621
5616
  }
5622
- ]
5617
+ ],
5618
+ "type": "stack",
5619
+ "direction": "horizontal",
5620
+ "gap": "sm"
5623
5621
  },
5624
5622
  {
5625
5623
  "type": "divider"
@@ -5627,15 +5625,17 @@
5627
5625
  {
5628
5626
  "type": "form-section",
5629
5627
  "submitEvent": "SEND",
5628
+ "mode": "create",
5630
5629
  "cancelEvent": "CLOSE",
5631
5630
  "fields": [
5632
5631
  "subject",
5633
5632
  "body",
5634
5633
  "author"
5635
- ],
5636
- "mode": "create"
5634
+ ]
5637
5635
  }
5638
- ]
5636
+ ],
5637
+ "direction": "vertical",
5638
+ "gap": "md"
5639
5639
  }
5640
5640
  ]
5641
5641
  ]
@@ -5800,8 +5800,8 @@
5800
5800
  "Note",
5801
5801
  {
5802
5802
  "emit": {
5803
- "failure": "NoteLoadFailed",
5804
- "success": "NoteLoaded"
5803
+ "success": "NoteLoaded",
5804
+ "failure": "NoteLoadFailed"
5805
5805
  }
5806
5806
  }
5807
5807
  ]
@@ -5816,33 +5816,31 @@
5816
5816
  "fetch",
5817
5817
  "Note",
5818
5818
  {
5819
+ "id": "@payload.id",
5819
5820
  "emit": {
5820
5821
  "failure": "NoteLoadFailed",
5821
5822
  "success": "NoteLoaded"
5822
- },
5823
- "id": "@payload.id"
5823
+ }
5824
5824
  }
5825
5825
  ],
5826
5826
  [
5827
5827
  "render-ui",
5828
5828
  "modal",
5829
5829
  {
5830
- "type": "stack",
5831
- "direction": "vertical",
5832
5830
  "children": [
5833
5831
  {
5834
- "direction": "horizontal",
5835
- "type": "stack",
5836
5832
  "gap": "sm",
5833
+ "type": "stack",
5834
+ "direction": "horizontal",
5837
5835
  "children": [
5838
5836
  {
5839
5837
  "type": "icon",
5840
5838
  "name": "eye"
5841
5839
  },
5842
5840
  {
5841
+ "type": "typography",
5843
5842
  "variant": "h3",
5844
- "content": "@entity.subject",
5845
- "type": "typography"
5843
+ "content": "@entity.subject"
5846
5844
  }
5847
5845
  ],
5848
5846
  "align": "center"
@@ -5851,24 +5849,24 @@
5851
5849
  "type": "divider"
5852
5850
  },
5853
5851
  {
5852
+ "direction": "horizontal",
5854
5853
  "gap": "md",
5854
+ "type": "stack",
5855
5855
  "children": [
5856
5856
  {
5857
- "variant": "caption",
5858
5857
  "content": "Subject",
5858
+ "variant": "caption",
5859
5859
  "type": "typography"
5860
5860
  },
5861
5861
  {
5862
+ "type": "typography",
5862
5863
  "content": "@entity.subject",
5863
- "variant": "body",
5864
- "type": "typography"
5864
+ "variant": "body"
5865
5865
  }
5866
- ],
5867
- "direction": "horizontal",
5868
- "type": "stack"
5866
+ ]
5869
5867
  },
5870
5868
  {
5871
- "type": "stack",
5869
+ "gap": "md",
5872
5870
  "direction": "horizontal",
5873
5871
  "children": [
5874
5872
  {
@@ -5878,36 +5876,34 @@
5878
5876
  },
5879
5877
  {
5880
5878
  "type": "typography",
5881
- "variant": "body",
5882
- "content": "@entity.body"
5879
+ "content": "@entity.body",
5880
+ "variant": "body"
5883
5881
  }
5884
5882
  ],
5885
- "gap": "md"
5883
+ "type": "stack"
5886
5884
  },
5887
5885
  {
5888
- "gap": "md",
5889
5886
  "type": "stack",
5887
+ "direction": "horizontal",
5888
+ "gap": "md",
5890
5889
  "children": [
5891
5890
  {
5891
+ "content": "Author",
5892
5892
  "type": "typography",
5893
- "variant": "caption",
5894
- "content": "Author"
5893
+ "variant": "caption"
5895
5894
  },
5896
5895
  {
5896
+ "content": "@entity.author",
5897
5897
  "type": "typography",
5898
- "variant": "body",
5899
- "content": "@entity.author"
5898
+ "variant": "body"
5900
5899
  }
5901
- ],
5902
- "direction": "horizontal"
5900
+ ]
5903
5901
  },
5904
5902
  {
5905
- "direction": "horizontal",
5906
- "type": "stack",
5907
5903
  "children": [
5908
5904
  {
5909
- "variant": "caption",
5910
5905
  "content": "Created At",
5906
+ "variant": "caption",
5911
5907
  "type": "typography"
5912
5908
  },
5913
5909
  {
@@ -5916,27 +5912,31 @@
5916
5912
  "content": "@entity.createdAt"
5917
5913
  }
5918
5914
  ],
5919
- "gap": "md"
5915
+ "direction": "horizontal",
5916
+ "gap": "md",
5917
+ "type": "stack"
5920
5918
  },
5921
5919
  {
5922
5920
  "type": "divider"
5923
5921
  },
5924
5922
  {
5925
- "justify": "end",
5926
- "type": "stack",
5923
+ "direction": "horizontal",
5927
5924
  "children": [
5928
5925
  {
5929
- "type": "button",
5930
5926
  "action": "CLOSE",
5931
- "label": "Close",
5932
- "variant": "ghost"
5927
+ "variant": "ghost",
5928
+ "type": "button",
5929
+ "label": "Close"
5933
5930
  }
5934
5931
  ],
5932
+ "type": "stack",
5935
5933
  "gap": "sm",
5936
- "direction": "horizontal"
5934
+ "justify": "end"
5937
5935
  }
5938
5936
  ],
5939
- "gap": "md"
5937
+ "type": "stack",
5938
+ "gap": "md",
5939
+ "direction": "vertical"
5940
5940
  }
5941
5941
  ]
5942
5942
  ]