@almadar/std 14.15.1 → 14.17.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.
Files changed (121) hide show
  1. package/behaviors/registry/app/atoms/std-branching-logic.orb +84 -84
  2. package/behaviors/registry/app/atoms/std-checkin.orb +60 -60
  3. package/behaviors/registry/app/atoms/std-dunning.orb +72 -76
  4. package/behaviors/registry/app/atoms/std-event.orb +62 -62
  5. package/behaviors/registry/app/atoms/std-flag.orb +72 -72
  6. package/behaviors/registry/app/atoms/std-geosearch.orb +29 -29
  7. package/behaviors/registry/app/atoms/std-image-upload-multi.orb +54 -56
  8. package/behaviors/registry/app/atoms/std-invoice.orb +193 -65
  9. package/behaviors/registry/app/atoms/std-kitchen-display.orb +58 -58
  10. package/behaviors/registry/app/atoms/std-menu.orb +44 -44
  11. package/behaviors/registry/app/atoms/std-mod-queue.orb +38 -38
  12. package/behaviors/registry/app/atoms/std-modifier-group.orb +56 -56
  13. package/behaviors/registry/app/atoms/std-page-tree.orb +55 -55
  14. package/behaviors/registry/app/atoms/std-payout-ledger.orb +66 -66
  15. package/behaviors/registry/app/atoms/std-question-bank.orb +62 -62
  16. package/behaviors/registry/app/atoms/std-rating-review.orb +67 -67
  17. package/behaviors/registry/app/atoms/std-recurring-charge.orb +74 -74
  18. package/behaviors/registry/app/atoms/std-response-collector.orb +44 -44
  19. package/behaviors/registry/app/atoms/std-rich-editor.orb +68 -68
  20. package/behaviors/registry/app/atoms/std-route-optimize.orb +49 -49
  21. package/behaviors/registry/app/atoms/std-saved-search.orb +72 -72
  22. package/behaviors/registry/app/atoms/std-signature-capture.orb +86 -86
  23. package/behaviors/registry/app/atoms/std-table-map.orb +46 -46
  24. package/behaviors/registry/app/atoms/std-tag-taxonomy.orb +73 -92
  25. package/behaviors/registry/app/atoms/std-technician-dispatch.orb +42 -42
  26. package/behaviors/registry/app/atoms/std-thread.orb +59 -59
  27. package/behaviors/registry/app/atoms/std-ticket-tier.orb +53 -53
  28. package/behaviors/registry/app/atoms/std-trial.orb +67 -67
  29. package/behaviors/registry/app/atoms/std-version-history.orb +93 -93
  30. package/behaviors/registry/app/atoms/std-vote.orb +40 -40
  31. package/behaviors/registry/app/atoms/std-waitlist.orb +50 -50
  32. package/behaviors/registry/app/atoms/std-work-order.orb +48 -48
  33. package/behaviors/registry/app/organisms/std-api-gateway.orb +201 -201
  34. package/behaviors/registry/app/organisms/std-booking-system.orb +676 -676
  35. package/behaviors/registry/app/organisms/std-cicd-pipeline.orb +285 -285
  36. package/behaviors/registry/app/organisms/std-cms.orb +265 -265
  37. package/behaviors/registry/app/organisms/std-coding-academy.orb +179 -179
  38. package/behaviors/registry/app/organisms/std-crm.orb +258 -258
  39. package/behaviors/registry/app/organisms/std-devops-dashboard.orb +403 -403
  40. package/behaviors/registry/app/organisms/std-ecommerce.orb +681 -681
  41. package/behaviors/registry/app/organisms/std-event-ticketing.orb +217 -217
  42. package/behaviors/registry/app/organisms/std-field-service.orb +190 -190
  43. package/behaviors/registry/app/organisms/std-finance-tracker.orb +205 -205
  44. package/behaviors/registry/app/organisms/std-forum.orb +141 -141
  45. package/behaviors/registry/app/organisms/std-healthcare.orb +540 -540
  46. package/behaviors/registry/app/organisms/std-helpdesk.orb +175 -175
  47. package/behaviors/registry/app/organisms/std-hr-portal.orb +444 -444
  48. package/behaviors/registry/app/organisms/std-iot-dashboard.orb +344 -344
  49. package/behaviors/registry/app/organisms/std-listings.orb +157 -157
  50. package/behaviors/registry/app/organisms/std-lms.orb +422 -422
  51. package/behaviors/registry/app/organisms/std-marketplace.orb +232 -234
  52. package/behaviors/registry/app/organisms/std-project-manager.orb +193 -193
  53. package/behaviors/registry/app/organisms/std-realtime-chat.orb +248 -248
  54. package/behaviors/registry/app/organisms/std-restaurant-pos.orb +134 -134
  55. package/behaviors/registry/app/organisms/std-social-feed.orb +156 -156
  56. package/behaviors/registry/app/organisms/std-subscription-billing.orb +183 -183
  57. package/behaviors/registry/app/organisms/std-survey.orb +122 -122
  58. package/behaviors/registry/app/organisms/std-trading-dashboard.orb +274 -274
  59. package/behaviors/registry/app/organisms/std-wiki.orb +144 -144
  60. package/dist/behaviors/behaviors-registry.json +1 -1
  61. package/dist/behaviors/registry/app/atoms/std-branching-logic.orb +84 -84
  62. package/dist/behaviors/registry/app/atoms/std-checkin.orb +60 -60
  63. package/dist/behaviors/registry/app/atoms/std-dunning.orb +72 -76
  64. package/dist/behaviors/registry/app/atoms/std-event.orb +62 -62
  65. package/dist/behaviors/registry/app/atoms/std-flag.orb +72 -72
  66. package/dist/behaviors/registry/app/atoms/std-geosearch.orb +29 -29
  67. package/dist/behaviors/registry/app/atoms/std-image-upload-multi.orb +54 -56
  68. package/dist/behaviors/registry/app/atoms/std-invoice.orb +193 -65
  69. package/dist/behaviors/registry/app/atoms/std-kitchen-display.orb +58 -58
  70. package/dist/behaviors/registry/app/atoms/std-menu.orb +44 -44
  71. package/dist/behaviors/registry/app/atoms/std-mod-queue.orb +38 -38
  72. package/dist/behaviors/registry/app/atoms/std-modifier-group.orb +56 -56
  73. package/dist/behaviors/registry/app/atoms/std-page-tree.orb +55 -55
  74. package/dist/behaviors/registry/app/atoms/std-payout-ledger.orb +66 -66
  75. package/dist/behaviors/registry/app/atoms/std-question-bank.orb +62 -62
  76. package/dist/behaviors/registry/app/atoms/std-rating-review.orb +67 -67
  77. package/dist/behaviors/registry/app/atoms/std-recurring-charge.orb +74 -74
  78. package/dist/behaviors/registry/app/atoms/std-response-collector.orb +44 -44
  79. package/dist/behaviors/registry/app/atoms/std-rich-editor.orb +68 -68
  80. package/dist/behaviors/registry/app/atoms/std-route-optimize.orb +49 -49
  81. package/dist/behaviors/registry/app/atoms/std-saved-search.orb +72 -72
  82. package/dist/behaviors/registry/app/atoms/std-signature-capture.orb +86 -86
  83. package/dist/behaviors/registry/app/atoms/std-table-map.orb +46 -46
  84. package/dist/behaviors/registry/app/atoms/std-tag-taxonomy.orb +73 -92
  85. package/dist/behaviors/registry/app/atoms/std-technician-dispatch.orb +42 -42
  86. package/dist/behaviors/registry/app/atoms/std-thread.orb +59 -59
  87. package/dist/behaviors/registry/app/atoms/std-ticket-tier.orb +53 -53
  88. package/dist/behaviors/registry/app/atoms/std-trial.orb +67 -67
  89. package/dist/behaviors/registry/app/atoms/std-version-history.orb +93 -93
  90. package/dist/behaviors/registry/app/atoms/std-vote.orb +40 -40
  91. package/dist/behaviors/registry/app/atoms/std-waitlist.orb +50 -50
  92. package/dist/behaviors/registry/app/atoms/std-work-order.orb +48 -48
  93. package/dist/behaviors/registry/app/organisms/std-api-gateway.orb +201 -201
  94. package/dist/behaviors/registry/app/organisms/std-booking-system.orb +676 -676
  95. package/dist/behaviors/registry/app/organisms/std-cicd-pipeline.orb +285 -285
  96. package/dist/behaviors/registry/app/organisms/std-cms.orb +265 -265
  97. package/dist/behaviors/registry/app/organisms/std-coding-academy.orb +179 -179
  98. package/dist/behaviors/registry/app/organisms/std-crm.orb +258 -258
  99. package/dist/behaviors/registry/app/organisms/std-devops-dashboard.orb +403 -403
  100. package/dist/behaviors/registry/app/organisms/std-ecommerce.orb +681 -681
  101. package/dist/behaviors/registry/app/organisms/std-event-ticketing.orb +217 -217
  102. package/dist/behaviors/registry/app/organisms/std-field-service.orb +190 -190
  103. package/dist/behaviors/registry/app/organisms/std-finance-tracker.orb +205 -205
  104. package/dist/behaviors/registry/app/organisms/std-forum.orb +141 -141
  105. package/dist/behaviors/registry/app/organisms/std-healthcare.orb +540 -540
  106. package/dist/behaviors/registry/app/organisms/std-helpdesk.orb +175 -175
  107. package/dist/behaviors/registry/app/organisms/std-hr-portal.orb +444 -444
  108. package/dist/behaviors/registry/app/organisms/std-iot-dashboard.orb +344 -344
  109. package/dist/behaviors/registry/app/organisms/std-listings.orb +157 -157
  110. package/dist/behaviors/registry/app/organisms/std-lms.orb +422 -422
  111. package/dist/behaviors/registry/app/organisms/std-marketplace.orb +232 -234
  112. package/dist/behaviors/registry/app/organisms/std-project-manager.orb +193 -193
  113. package/dist/behaviors/registry/app/organisms/std-realtime-chat.orb +248 -248
  114. package/dist/behaviors/registry/app/organisms/std-restaurant-pos.orb +134 -134
  115. package/dist/behaviors/registry/app/organisms/std-social-feed.orb +156 -156
  116. package/dist/behaviors/registry/app/organisms/std-subscription-billing.orb +183 -183
  117. package/dist/behaviors/registry/app/organisms/std-survey.orb +122 -122
  118. package/dist/behaviors/registry/app/organisms/std-trading-dashboard.orb +274 -274
  119. package/dist/behaviors/registry/app/organisms/std-wiki.orb +144 -144
  120. package/dist/behaviors-registry.json +1 -1
  121. package/package.json +1 -1
@@ -314,8 +314,8 @@
314
314
  "UploadedImage",
315
315
  {
316
316
  "emit": {
317
- "failure": "UploadedImageLoadFailed",
318
- "success": "UploadedImageLoaded"
317
+ "success": "UploadedImageLoaded",
318
+ "failure": "UploadedImageLoadFailed"
319
319
  }
320
320
  }
321
321
  ],
@@ -323,22 +323,22 @@
323
323
  "render-ui",
324
324
  "main",
325
325
  {
326
- "direction": "vertical",
327
- "gap": "md",
328
- "type": "stack",
329
326
  "align": "center",
327
+ "type": "stack",
328
+ "className": "py-12",
330
329
  "children": [
331
330
  {
332
331
  "type": "spinner"
333
332
  },
334
333
  {
335
- "content": "Loading images…",
336
- "color": "muted",
337
334
  "variant": "caption",
338
- "type": "typography"
335
+ "type": "typography",
336
+ "color": "muted",
337
+ "content": "Loading images…"
339
338
  }
340
339
  ],
341
- "className": "py-12"
340
+ "gap": "md",
341
+ "direction": "vertical"
342
342
  }
343
343
  ]
344
344
  ]
@@ -352,8 +352,8 @@
352
352
  "render-ui",
353
353
  "main",
354
354
  {
355
- "type": "stack",
356
355
  "gap": "md",
356
+ "type": "stack",
357
357
  "direction": "vertical",
358
358
  "children": [
359
359
  {
@@ -362,19 +362,18 @@
362
362
  "type": "typography"
363
363
  },
364
364
  {
365
+ "maxFiles": "@config.maxImages",
366
+ "description": "or click to browse",
365
367
  "icon": "image-plus",
368
+ "maxSize": "@config.maxBytesPerImage",
366
369
  "label": "Drop images here",
367
- "maxFiles": "@config.maxImages",
368
- "action": "UPLOAD",
369
- "type": "upload-drop-zone",
370
370
  "accept": "@config.accept",
371
- "maxSize": "@config.maxBytesPerImage",
372
- "description": "or click to browse"
371
+ "action": "UPLOAD",
372
+ "type": "upload-drop-zone"
373
373
  },
374
374
  {
375
- "data": "@payload.data",
376
- "type": "media-gallery",
377
- "entity": "UploadedImage"
375
+ "entity": "@payload.data",
376
+ "type": "media-gallery"
378
377
  }
379
378
  ]
380
379
  }
@@ -390,8 +389,8 @@
390
389
  "render-ui",
391
390
  "main",
392
391
  {
393
- "type": "alert",
394
392
  "message": "@payload.error",
393
+ "type": "alert",
395
394
  "variant": "error"
396
395
  }
397
396
  ]
@@ -409,8 +408,8 @@
409
408
  "@payload.files",
410
409
  {
411
410
  "emit": {
412
- "success": "UploadedImageCreated",
413
- "failure": "UploadedImageUploadFailed"
411
+ "failure": "UploadedImageUploadFailed",
412
+ "success": "UploadedImageCreated"
414
413
  }
415
414
  }
416
415
  ],
@@ -418,24 +417,24 @@
418
417
  "render-ui",
419
418
  "main",
420
419
  {
421
- "direction": "vertical",
422
- "align": "center",
423
420
  "children": [
424
421
  {
425
- "variant": "h3",
426
422
  "type": "typography",
427
- "content": "Uploading images…"
423
+ "content": "Uploading images…",
424
+ "variant": "h3"
428
425
  },
429
426
  {
430
- "value": 0.0,
431
- "type": "progress-bar",
427
+ "max": 100.0,
432
428
  "progressType": "linear",
433
- "max": 100.0
429
+ "value": 0.0,
430
+ "type": "progress-bar"
434
431
  }
435
432
  ],
433
+ "direction": "vertical",
436
434
  "type": "stack",
437
- "gap": "md",
438
- "className": "py-12"
435
+ "className": "py-12",
436
+ "align": "center",
437
+ "gap": "md"
439
438
  }
440
439
  ]
441
440
  ]
@@ -502,8 +501,8 @@
502
501
  "UploadedImage",
503
502
  {
504
503
  "emit": {
505
- "failure": "UploadedImageLoadFailed",
506
- "success": "UploadedImageLoaded"
504
+ "success": "UploadedImageLoaded",
505
+ "failure": "UploadedImageLoadFailed"
507
506
  }
508
507
  }
509
508
  ],
@@ -511,10 +510,8 @@
511
510
  "render-ui",
512
511
  "main",
513
512
  {
514
- "align": "center",
515
- "className": "py-12",
516
513
  "gap": "md",
517
- "direction": "vertical",
514
+ "className": "py-12",
518
515
  "type": "stack",
519
516
  "children": [
520
517
  {
@@ -527,7 +524,9 @@
527
524
  "variant": "h3",
528
525
  "content": "Upload complete"
529
526
  }
530
- ]
527
+ ],
528
+ "direction": "vertical",
529
+ "align": "center"
531
530
  }
532
531
  ]
533
532
  ]
@@ -541,9 +540,9 @@
541
540
  "render-ui",
542
541
  "main",
543
542
  {
543
+ "type": "alert",
544
544
  "variant": "error",
545
- "message": "@payload.error",
546
- "type": "alert"
545
+ "message": "@payload.error"
547
546
  }
548
547
  ]
549
548
  ]
@@ -557,6 +556,9 @@
557
556
  "render-ui",
558
557
  "main",
559
558
  {
559
+ "direction": "vertical",
560
+ "gap": "md",
561
+ "type": "stack",
560
562
  "children": [
561
563
  {
562
564
  "type": "typography",
@@ -564,24 +566,20 @@
564
566
  "variant": "h3"
565
567
  },
566
568
  {
567
- "label": "Drop images here",
569
+ "maxSize": "@config.maxBytesPerImage",
568
570
  "icon": "image-plus",
569
571
  "maxFiles": "@config.maxImages",
572
+ "label": "Drop images here",
570
573
  "description": "or click to browse",
571
- "type": "upload-drop-zone",
572
- "maxSize": "@config.maxBytesPerImage",
574
+ "action": "UPLOAD",
573
575
  "accept": "@config.accept",
574
- "action": "UPLOAD"
576
+ "type": "upload-drop-zone"
575
577
  },
576
578
  {
577
- "entity": "UploadedImage",
578
- "data": "@payload.data",
579
- "type": "media-gallery"
579
+ "type": "media-gallery",
580
+ "entity": "@payload.data"
580
581
  }
581
- ],
582
- "type": "stack",
583
- "gap": "md",
584
- "direction": "vertical"
582
+ ]
585
583
  }
586
584
  ]
587
585
  ]
@@ -589,21 +587,21 @@
589
587
  ]
590
588
  },
591
589
  "config": {
592
- "maxBytesPerImage": {
593
- "type": "number",
594
- "default": 10485760.0
595
- },
596
590
  "title": {
597
591
  "type": "string",
598
592
  "default": "Upload Images"
599
593
  },
594
+ "accept": {
595
+ "type": "string",
596
+ "default": "image/*"
597
+ },
600
598
  "maxImages": {
601
599
  "type": "number",
602
600
  "default": 10.0
603
601
  },
604
- "accept": {
605
- "type": "string",
606
- "default": "image/*"
602
+ "maxBytesPerImage": {
603
+ "type": "number",
604
+ "default": 10485760.0
607
605
  }
608
606
  },
609
607
  "scope": "collection"
@@ -549,8 +549,8 @@
549
549
  "InvoiceRecord",
550
550
  {
551
551
  "emit": {
552
- "success": "InvoiceLoaded",
553
- "failure": "InvoiceLoadFailed"
552
+ "failure": "InvoiceLoadFailed",
553
+ "success": "InvoiceLoaded"
554
554
  }
555
555
  }
556
556
  ],
@@ -558,22 +558,22 @@
558
558
  "render-ui",
559
559
  "main",
560
560
  {
561
- "direction": "vertical",
562
561
  "children": [
563
562
  {
564
563
  "type": "spinner"
565
564
  },
566
565
  {
567
- "variant": "caption",
566
+ "content": "Loading invoices…",
568
567
  "color": "muted",
569
568
  "type": "typography",
570
- "content": "Loading invoices…"
569
+ "variant": "caption"
571
570
  }
572
571
  ],
573
- "align": "center",
572
+ "type": "stack",
573
+ "direction": "vertical",
574
574
  "className": "py-12",
575
575
  "gap": "md",
576
- "type": "stack"
576
+ "align": "center"
577
577
  }
578
578
  ]
579
579
  ]
@@ -590,6 +590,7 @@
590
590
  "children": [
591
591
  {
592
592
  "gap": "sm",
593
+ "direction": "horizontal",
593
594
  "children": [
594
595
  {
595
596
  "type": "icon",
@@ -597,71 +598,71 @@
597
598
  },
598
599
  {
599
600
  "variant": "h3",
600
- "content": "@config.title",
601
- "type": "typography"
601
+ "type": "typography",
602
+ "content": "@config.title"
602
603
  }
603
604
  ],
604
- "type": "stack",
605
- "direction": "horizontal"
605
+ "type": "stack"
606
606
  },
607
607
  {
608
608
  "type": "divider"
609
609
  },
610
610
  {
611
+ "cols": 1.0,
611
612
  "itemActions": [
612
613
  {
613
- "label": "View",
614
614
  "event": "VIEW",
615
615
  "variant": "secondary",
616
+ "label": "View",
616
617
  "icon": "eye"
617
618
  },
618
619
  {
619
620
  "label": "Send",
620
- "event": "SEND",
621
621
  "icon": "send",
622
+ "event": "SEND",
622
623
  "variant": "primary"
623
624
  },
624
625
  {
625
- "icon": "check",
626
626
  "event": "MARK_PAID",
627
+ "icon": "check",
627
628
  "label": "Mark Paid",
628
629
  "variant": "primary"
629
630
  },
630
631
  {
631
- "event": "VOID",
632
632
  "icon": "x",
633
- "variant": "destructive",
634
- "label": "Void"
633
+ "label": "Void",
634
+ "variant": "danger",
635
+ "event": "VOID"
635
636
  },
636
637
  {
638
+ "variant": "danger",
637
639
  "event": "REFUND",
638
- "label": "Refund",
639
- "variant": "destructive",
640
- "icon": "rotate-ccw"
640
+ "icon": "rotate-ccw",
641
+ "label": "Refund"
641
642
  }
642
643
  ],
643
- "cols": 1.0,
644
644
  "type": "data-grid",
645
+ "entity": "@payload.data",
645
646
  "gap": "sm",
646
647
  "fields": [
647
648
  {
648
649
  "name": "invoiceNumber",
649
- "variant": "caption",
650
- "label": "Invoice #"
650
+ "label": "Invoice #",
651
+ "variant": "caption"
651
652
  },
652
653
  {
653
- "name": "customerId",
654
654
  "variant": "caption",
655
+ "name": "customerId",
655
656
  "label": "Customer"
656
657
  },
657
658
  {
658
- "name": "status",
659
659
  "label": "Status",
660
+ "name": "status",
660
661
  "variant": "badge"
661
662
  },
662
663
  {
663
- "name": "total",
664
664
  "label": "Total",
665
+ "name": "total",
665
666
  "variant": "caption"
666
667
  },
667
668
  {
@@ -670,17 +671,16 @@
670
671
  "label": "Currency"
671
672
  },
672
673
  {
673
- "variant": "caption",
674
674
  "name": "dueAt",
675
+ "variant": "caption",
675
676
  "label": "Due"
676
677
  }
677
- ],
678
- "entity": "@payload.data"
678
+ ]
679
679
  }
680
680
  ],
681
+ "gap": "md",
681
682
  "type": "stack",
682
- "direction": "vertical",
683
- "gap": "md"
683
+ "direction": "vertical"
684
684
  }
685
685
  ]
686
686
  ]
@@ -694,9 +694,9 @@
694
694
  "render-ui",
695
695
  "main",
696
696
  {
697
- "type": "alert",
698
697
  "variant": "error",
699
- "message": "@payload.error"
698
+ "message": "@payload.error",
699
+ "type": "alert"
700
700
  }
701
701
  ]
702
702
  ]
@@ -750,20 +750,148 @@
750
750
  "render-ui",
751
751
  "main",
752
752
  {
753
- "dueAt": "@entity.dueAt",
754
- "from": {
755
- "name": "Your Company"
756
- },
757
- "notes": "@entity.notes",
758
- "issuedAt": "@entity.issuedAt",
759
- "status": "@entity.status",
760
- "items": [],
761
- "currency": "@entity.currency",
762
- "invoiceNumber": "@entity.invoiceNumber",
763
- "to": {
764
- "id": "@entity.customerId"
765
- },
766
- "type": "invoice"
753
+ "type": "stack",
754
+ "children": [
755
+ {
756
+ "gap": "sm",
757
+ "direction": "horizontal",
758
+ "type": "stack",
759
+ "children": [
760
+ {
761
+ "name": "receipt",
762
+ "type": "icon"
763
+ },
764
+ {
765
+ "content": "@entity.invoiceNumber",
766
+ "type": "typography",
767
+ "variant": "h3"
768
+ },
769
+ {
770
+ "variant": "secondary",
771
+ "label": "@entity.status",
772
+ "type": "badge"
773
+ }
774
+ ]
775
+ },
776
+ {
777
+ "type": "divider"
778
+ },
779
+ {
780
+ "type": "stack",
781
+ "gap": "lg",
782
+ "children": [
783
+ {
784
+ "type": "stack",
785
+ "children": [
786
+ {
787
+ "type": "typography",
788
+ "content": "Issued",
789
+ "color": "muted",
790
+ "variant": "caption"
791
+ },
792
+ {
793
+ "content": "@entity.issuedAt",
794
+ "variant": "body2",
795
+ "type": "typography"
796
+ }
797
+ ],
798
+ "direction": "vertical",
799
+ "gap": "xs"
800
+ },
801
+ {
802
+ "direction": "vertical",
803
+ "children": [
804
+ {
805
+ "content": "Due",
806
+ "variant": "caption",
807
+ "type": "typography",
808
+ "color": "muted"
809
+ },
810
+ {
811
+ "content": "@entity.dueAt",
812
+ "variant": "body2",
813
+ "type": "typography"
814
+ }
815
+ ],
816
+ "type": "stack",
817
+ "gap": "xs"
818
+ },
819
+ {
820
+ "children": [
821
+ {
822
+ "type": "typography",
823
+ "content": "Currency",
824
+ "variant": "caption",
825
+ "color": "muted"
826
+ },
827
+ {
828
+ "type": "typography",
829
+ "content": "@entity.currency",
830
+ "variant": "body2"
831
+ }
832
+ ],
833
+ "direction": "vertical",
834
+ "type": "stack",
835
+ "gap": "xs"
836
+ }
837
+ ],
838
+ "direction": "horizontal"
839
+ },
840
+ {
841
+ "type": "divider"
842
+ },
843
+ {
844
+ "content": "@entity.notes",
845
+ "variant": "body2",
846
+ "type": "typography",
847
+ "color": "muted"
848
+ },
849
+ {
850
+ "direction": "horizontal",
851
+ "justify": "end",
852
+ "children": [
853
+ {
854
+ "variant": "primary",
855
+ "action": "SEND",
856
+ "label": "Send",
857
+ "type": "button",
858
+ "icon": "send"
859
+ },
860
+ {
861
+ "variant": "primary",
862
+ "icon": "check",
863
+ "label": "Mark Paid",
864
+ "type": "button",
865
+ "action": "MARK_PAID"
866
+ },
867
+ {
868
+ "action": "VOID",
869
+ "type": "button",
870
+ "icon": "x",
871
+ "label": "Void",
872
+ "variant": "danger"
873
+ },
874
+ {
875
+ "icon": "rotate-ccw",
876
+ "variant": "danger",
877
+ "label": "Refund",
878
+ "type": "button",
879
+ "action": "REFUND"
880
+ },
881
+ {
882
+ "variant": "secondary",
883
+ "action": "INIT",
884
+ "label": "Back",
885
+ "type": "button",
886
+ "icon": "arrow-left"
887
+ }
888
+ ],
889
+ "type": "stack",
890
+ "gap": "sm"
891
+ }
892
+ ],
893
+ "gap": "md",
894
+ "direction": "vertical"
767
895
  }
768
896
  ]
769
897
  ]
@@ -809,8 +937,8 @@
809
937
  },
810
938
  {
811
939
  "emit": {
812
- "success": "InvoiceUpdated",
813
- "failure": "InvoiceUpdateFailed"
940
+ "failure": "InvoiceUpdateFailed",
941
+ "success": "InvoiceUpdated"
814
942
  }
815
943
  }
816
944
  ]
@@ -916,8 +1044,8 @@
916
1044
  "InvoiceRecord",
917
1045
  {
918
1046
  "emit": {
919
- "failure": "InvoiceLoadFailed",
920
- "success": "InvoiceLoaded"
1047
+ "success": "InvoiceLoaded",
1048
+ "failure": "InvoiceLoadFailed"
921
1049
  }
922
1050
  }
923
1051
  ]
@@ -932,9 +1060,9 @@
932
1060
  "render-ui",
933
1061
  "main",
934
1062
  {
935
- "message": "@payload.error",
1063
+ "variant": "error",
936
1064
  "type": "alert",
937
- "variant": "error"
1065
+ "message": "@payload.error"
938
1066
  }
939
1067
  ]
940
1068
  ]
@@ -965,9 +1093,9 @@
965
1093
  "render-ui",
966
1094
  "main",
967
1095
  {
1096
+ "type": "alert",
968
1097
  "variant": "error",
969
- "message": "@payload.error",
970
- "type": "alert"
1098
+ "message": "@payload.error"
971
1099
  }
972
1100
  ]
973
1101
  ]
@@ -982,8 +1110,8 @@
982
1110
  "InvoiceRecord",
983
1111
  {
984
1112
  "emit": {
985
- "success": "InvoiceLoaded",
986
- "failure": "InvoiceLoadFailed"
1113
+ "failure": "InvoiceLoadFailed",
1114
+ "success": "InvoiceLoaded"
987
1115
  }
988
1116
  }
989
1117
  ]
@@ -1016,8 +1144,8 @@
1016
1144
  "InvoiceRecord",
1017
1145
  {
1018
1146
  "emit": {
1019
- "success": "InvoiceLoaded",
1020
- "failure": "InvoiceLoadFailed"
1147
+ "failure": "InvoiceLoadFailed",
1148
+ "success": "InvoiceLoaded"
1021
1149
  }
1022
1150
  }
1023
1151
  ],
@@ -1025,8 +1153,8 @@
1025
1153
  "render-ui",
1026
1154
  "main",
1027
1155
  {
1028
- "size": "sm",
1029
- "type": "spinner"
1156
+ "type": "spinner",
1157
+ "size": "sm"
1030
1158
  }
1031
1159
  ]
1032
1160
  ]
@@ -1034,13 +1162,13 @@
1034
1162
  ]
1035
1163
  },
1036
1164
  "config": {
1037
- "title": {
1038
- "type": "string",
1039
- "default": "Invoices"
1040
- },
1041
1165
  "refundTiersJson": {
1042
1166
  "type": "string",
1043
1167
  "default": "[]"
1168
+ },
1169
+ "title": {
1170
+ "type": "string",
1171
+ "default": "Invoices"
1044
1172
  }
1045
1173
  },
1046
1174
  "scope": "collection"