@almadar/std 14.15.0 → 14.16.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.
@@ -551,8 +551,8 @@
551
551
  "DunningCase",
552
552
  {
553
553
  "emit": {
554
- "success": "DunningCaseLoaded",
555
- "failure": "DunningCaseLoadFailed"
554
+ "failure": "DunningCaseLoadFailed",
555
+ "success": "DunningCaseLoaded"
556
556
  }
557
557
  }
558
558
  ],
@@ -560,22 +560,22 @@
560
560
  "render-ui",
561
561
  "main",
562
562
  {
563
- "align": "center",
564
563
  "children": [
565
564
  {
566
565
  "type": "spinner"
567
566
  },
568
567
  {
569
568
  "variant": "caption",
570
- "type": "typography",
571
569
  "content": "Loading dunning cases…",
570
+ "type": "typography",
572
571
  "color": "muted"
573
572
  }
574
573
  ],
575
574
  "direction": "vertical",
575
+ "type": "stack",
576
576
  "className": "py-12",
577
- "gap": "md",
578
- "type": "stack"
577
+ "align": "center",
578
+ "gap": "md"
579
579
  }
580
580
  ]
581
581
  ]
@@ -589,42 +589,65 @@
589
589
  "render-ui",
590
590
  "main",
591
591
  {
592
+ "direction": "vertical",
593
+ "type": "stack",
594
+ "gap": "md",
592
595
  "children": [
593
596
  {
597
+ "type": "stack",
598
+ "gap": "sm",
599
+ "direction": "horizontal",
594
600
  "children": [
595
601
  {
596
- "name": "alert-triangle",
597
- "type": "icon"
602
+ "type": "icon",
603
+ "name": "alert-triangle"
598
604
  },
599
605
  {
600
- "content": "@config.title",
601
606
  "type": "typography",
607
+ "content": "@config.title",
602
608
  "variant": "h3"
603
609
  }
604
- ],
605
- "direction": "horizontal",
606
- "type": "stack",
607
- "gap": "sm"
610
+ ]
608
611
  },
609
612
  {
610
613
  "type": "divider"
611
614
  },
612
615
  {
616
+ "itemActions": [
617
+ {
618
+ "variant": "primary",
619
+ "label": "Escalate",
620
+ "event": "ESCALATE",
621
+ "icon": "arrow-up"
622
+ },
623
+ {
624
+ "event": "RESOLVE",
625
+ "label": "Resolve",
626
+ "icon": "check",
627
+ "variant": "secondary"
628
+ },
629
+ {
630
+ "icon": "ban",
631
+ "variant": "danger",
632
+ "label": "Suspend",
633
+ "event": "SUSPEND"
634
+ }
635
+ ],
613
636
  "fields": [
614
637
  {
615
- "name": "subscriptionId",
616
638
  "label": "Subscription",
617
- "variant": "caption"
639
+ "variant": "caption",
640
+ "name": "subscriptionId"
618
641
  },
619
642
  {
620
643
  "name": "customerId",
621
- "label": "Customer",
622
- "variant": "caption"
644
+ "variant": "caption",
645
+ "label": "Customer"
623
646
  },
624
647
  {
648
+ "name": "severity",
625
649
  "variant": "badge",
626
- "label": "Severity",
627
- "name": "severity"
650
+ "label": "Severity"
628
651
  },
629
652
  {
630
653
  "label": "Attempt",
@@ -632,45 +655,22 @@
632
655
  "name": "attemptNumber"
633
656
  },
634
657
  {
658
+ "name": "amountDue",
635
659
  "label": "Amount Due",
636
- "variant": "caption",
637
- "name": "amountDue"
660
+ "variant": "caption"
638
661
  },
639
662
  {
640
- "name": "status",
641
663
  "label": "Status",
664
+ "name": "status",
642
665
  "variant": "badge"
643
666
  }
644
667
  ],
645
- "itemActions": [
646
- {
647
- "label": "Escalate",
648
- "variant": "primary",
649
- "icon": "arrow-up",
650
- "event": "ESCALATE"
651
- },
652
- {
653
- "label": "Resolve",
654
- "variant": "secondary",
655
- "event": "RESOLVE",
656
- "icon": "check"
657
- },
658
- {
659
- "variant": "destructive",
660
- "label": "Suspend",
661
- "event": "SUSPEND",
662
- "icon": "ban"
663
- }
664
- ],
665
- "cols": 1.0,
666
668
  "type": "data-grid",
669
+ "cols": 1.0,
667
670
  "gap": "sm",
668
671
  "entity": "@payload.data"
669
672
  }
670
- ],
671
- "direction": "vertical",
672
- "gap": "md",
673
- "type": "stack"
673
+ ]
674
674
  }
675
675
  ]
676
676
  ]
@@ -684,9 +684,9 @@
684
684
  "render-ui",
685
685
  "main",
686
686
  {
687
- "message": "@payload.error",
688
687
  "variant": "error",
689
- "type": "alert"
688
+ "type": "alert",
689
+ "message": "@payload.error"
690
690
  }
691
691
  ]
692
692
  ]
@@ -759,15 +759,11 @@
759
759
  "render-ui",
760
760
  "main",
761
761
  {
762
- "currency": "@entity.currency",
763
- "amountDue": "@entity.amountDue",
764
- "type": "dunning-banner",
765
- "attemptsTotal": "@entity.attemptsTotal",
766
- "attemptNumber": "@entity.attemptNumber",
767
- "severity": "@entity.severity",
768
- "failedAt": "@entity.failedAt",
769
- "nextRetryAt": "@entity.nextRetryAt",
770
- "dismissible": false
762
+ "dismissible": false,
763
+ "title": "Payment failed",
764
+ "variant": "warning",
765
+ "message": "Attempt @entity.attemptNumber of @entity.attemptsTotal — amount @entity.amountDue @entity.currency. Next retry @entity.nextRetryAt.",
766
+ "type": "alert"
771
767
  }
772
768
  ],
773
769
  [
@@ -806,8 +802,8 @@
806
802
  "@entity",
807
803
  {
808
804
  "emit": {
809
- "success": "DunningCaseUpdated",
810
- "failure": "DunningCaseUpdateFailed"
805
+ "failure": "DunningCaseUpdateFailed",
806
+ "success": "DunningCaseUpdated"
811
807
  }
812
808
  }
813
809
  ]
@@ -835,8 +831,8 @@
835
831
  "@entity",
836
832
  {
837
833
  "emit": {
838
- "success": "ServiceSuspended",
839
- "failure": "DunningCaseUpdateFailed"
834
+ "failure": "DunningCaseUpdateFailed",
835
+ "success": "ServiceSuspended"
840
836
  }
841
837
  }
842
838
  ]
@@ -869,8 +865,8 @@
869
865
  "DunningCase",
870
866
  {
871
867
  "emit": {
872
- "failure": "DunningCaseLoadFailed",
873
- "success": "DunningCaseLoaded"
868
+ "success": "DunningCaseLoaded",
869
+ "failure": "DunningCaseLoadFailed"
874
870
  }
875
871
  }
876
872
  ]
@@ -885,9 +881,9 @@
885
881
  "render-ui",
886
882
  "main",
887
883
  {
884
+ "type": "alert",
888
885
  "variant": "error",
889
- "message": "@payload.error",
890
- "type": "alert"
886
+ "message": "@payload.error"
891
887
  }
892
888
  ]
893
889
  ]