@almadar/std 14.26.0 → 14.27.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 (151) hide show
  1. package/behaviors/registry/app/atoms/std-applicant.orb +496 -42
  2. package/behaviors/registry/app/atoms/std-approval-request.orb +433 -593
  3. package/behaviors/registry/app/atoms/std-campaign-goal.orb +438 -228
  4. package/behaviors/registry/app/atoms/std-change-order.orb +565 -307
  5. package/behaviors/registry/app/atoms/std-chart-of-accounts.orb +434 -97
  6. package/behaviors/registry/app/atoms/std-checkin.orb +434 -270
  7. package/behaviors/registry/app/atoms/std-class-roster.orb +495 -61
  8. package/behaviors/registry/app/atoms/std-class-session.orb +485 -104
  9. package/behaviors/registry/app/atoms/std-court-deadline.orb +519 -88
  10. package/behaviors/registry/app/atoms/std-customer-account.orb +577 -97
  11. package/behaviors/registry/app/atoms/std-donation-receipt.orb +498 -55
  12. package/behaviors/registry/app/atoms/std-donor.orb +445 -135
  13. package/behaviors/registry/app/atoms/std-drip-sequence.orb +445 -62
  14. package/behaviors/registry/app/atoms/std-driver.orb +465 -480
  15. package/behaviors/registry/app/atoms/std-dunning.orb +450 -512
  16. package/behaviors/registry/app/atoms/std-email-broadcast.orb +517 -64
  17. package/behaviors/registry/app/atoms/std-event.orb +465 -667
  18. package/behaviors/registry/app/atoms/std-health-score.orb +368 -371
  19. package/behaviors/registry/app/atoms/std-help-article.orb +373 -506
  20. package/behaviors/registry/app/atoms/std-help-category.orb +344 -359
  21. package/behaviors/registry/app/atoms/std-interview-slot.orb +490 -48
  22. package/behaviors/registry/app/atoms/std-invoice.orb +494 -291
  23. package/behaviors/registry/app/atoms/std-kitchen-display.orb +588 -96
  24. package/behaviors/registry/app/atoms/std-lease.orb +506 -190
  25. package/behaviors/registry/app/atoms/std-ledger-entry.orb +483 -154
  26. package/behaviors/registry/app/atoms/std-maintenance-request.orb +642 -192
  27. package/behaviors/registry/app/atoms/std-matter.orb +486 -318
  28. package/behaviors/registry/app/atoms/std-membership.orb +512 -102
  29. package/behaviors/registry/app/atoms/std-menu.orb +775 -183
  30. package/behaviors/registry/app/atoms/std-modifier-group.orb +522 -104
  31. package/behaviors/registry/app/atoms/std-nps-survey.orb +319 -327
  32. package/behaviors/registry/app/atoms/std-offer-letter.orb +497 -47
  33. package/behaviors/registry/app/atoms/std-payout-ledger.orb +378 -362
  34. package/behaviors/registry/app/atoms/std-question-bank.orb +379 -346
  35. package/behaviors/registry/app/atoms/std-receipt.orb +553 -44
  36. package/behaviors/registry/app/atoms/std-recurring-charge.orb +419 -832
  37. package/behaviors/registry/app/atoms/std-renewal-risk.orb +370 -421
  38. package/behaviors/registry/app/atoms/std-rent-charge.orb +657 -55
  39. package/behaviors/registry/app/atoms/std-reorder-rule.orb +510 -59
  40. package/behaviors/registry/app/atoms/std-response-collector.orb +451 -144
  41. package/behaviors/registry/app/atoms/std-rfi.orb +502 -461
  42. package/behaviors/registry/app/atoms/std-route-optimize.orb +448 -158
  43. package/behaviors/registry/app/atoms/std-segment.orb +360 -98
  44. package/behaviors/registry/app/atoms/std-stock-level.orb +486 -103
  45. package/behaviors/registry/app/atoms/std-submittal.orb +538 -526
  46. package/behaviors/registry/app/atoms/std-table-map.orb +88 -51
  47. package/behaviors/registry/app/atoms/std-technician-dispatch.orb +653 -71
  48. package/behaviors/registry/app/atoms/std-telematics-event.orb +310 -215
  49. package/behaviors/registry/app/atoms/std-template-editor.orb +513 -90
  50. package/behaviors/registry/app/atoms/std-tenant.orb +525 -66
  51. package/behaviors/registry/app/atoms/std-ticket-tier.orb +472 -460
  52. package/behaviors/registry/app/atoms/std-time-entry.orb +354 -317
  53. package/behaviors/registry/app/atoms/std-timesheet.orb +551 -284
  54. package/behaviors/registry/app/atoms/std-trial.orb +410 -317
  55. package/behaviors/registry/app/atoms/std-vehicle.orb +398 -563
  56. package/behaviors/registry/app/atoms/std-waitlist.orb +372 -283
  57. package/behaviors/registry/app/atoms/std-warehouse.orb +273 -214
  58. package/behaviors/registry/app/atoms/std-work-order.orb +628 -240
  59. package/behaviors/registry/app/molecules/std-applicant-form.orb +89 -83
  60. package/behaviors/registry/app/molecules/std-application.orb +178 -263
  61. package/behaviors/registry/app/molecules/std-broadcast-builder.orb +67 -176
  62. package/behaviors/registry/app/molecules/std-cart.orb +78 -72
  63. package/behaviors/registry/app/molecules/std-form-builder.orb +437 -176
  64. package/behaviors/registry/app/molecules/std-ledger-entry-form.orb +608 -89
  65. package/behaviors/registry/app/molecules/std-stock-adjustment.orb +501 -102
  66. package/behaviors/registry/app/molecules/std-vendor-onboarding.orb +383 -469
  67. package/behaviors/registry/core/atoms/std-billable-hour.orb +495 -91
  68. package/behaviors/registry/core/atoms/std-branching-logic.orb +271 -600
  69. package/behaviors/registry/core/atoms/std-file-store.orb +534 -164
  70. package/behaviors/registry/core/atoms/std-gallery.orb +118 -101
  71. package/behaviors/registry/core/atoms/std-image-upload-multi.orb +87 -57
  72. package/behaviors/registry/core/atoms/std-page-tree.orb +342 -484
  73. package/behaviors/registry/core/atoms/std-rich-editor.orb +288 -416
  74. package/behaviors/registry/core/atoms/std-version-history.orb +454 -430
  75. package/behaviors/registry/core/molecules/std-wizard-form.orb +222 -147
  76. package/dist/behaviors/registry/app/atoms/std-applicant.orb +496 -42
  77. package/dist/behaviors/registry/app/atoms/std-approval-request.orb +433 -593
  78. package/dist/behaviors/registry/app/atoms/std-campaign-goal.orb +438 -228
  79. package/dist/behaviors/registry/app/atoms/std-change-order.orb +565 -307
  80. package/dist/behaviors/registry/app/atoms/std-chart-of-accounts.orb +434 -97
  81. package/dist/behaviors/registry/app/atoms/std-checkin.orb +434 -270
  82. package/dist/behaviors/registry/app/atoms/std-class-roster.orb +495 -61
  83. package/dist/behaviors/registry/app/atoms/std-class-session.orb +485 -104
  84. package/dist/behaviors/registry/app/atoms/std-court-deadline.orb +519 -88
  85. package/dist/behaviors/registry/app/atoms/std-customer-account.orb +577 -97
  86. package/dist/behaviors/registry/app/atoms/std-donation-receipt.orb +498 -55
  87. package/dist/behaviors/registry/app/atoms/std-donor.orb +445 -135
  88. package/dist/behaviors/registry/app/atoms/std-drip-sequence.orb +445 -62
  89. package/dist/behaviors/registry/app/atoms/std-driver.orb +465 -480
  90. package/dist/behaviors/registry/app/atoms/std-dunning.orb +450 -512
  91. package/dist/behaviors/registry/app/atoms/std-email-broadcast.orb +517 -64
  92. package/dist/behaviors/registry/app/atoms/std-event.orb +465 -667
  93. package/dist/behaviors/registry/app/atoms/std-health-score.orb +368 -371
  94. package/dist/behaviors/registry/app/atoms/std-help-article.orb +373 -506
  95. package/dist/behaviors/registry/app/atoms/std-help-category.orb +344 -359
  96. package/dist/behaviors/registry/app/atoms/std-interview-slot.orb +490 -48
  97. package/dist/behaviors/registry/app/atoms/std-invoice.orb +494 -291
  98. package/dist/behaviors/registry/app/atoms/std-kitchen-display.orb +588 -96
  99. package/dist/behaviors/registry/app/atoms/std-lease.orb +506 -190
  100. package/dist/behaviors/registry/app/atoms/std-ledger-entry.orb +483 -154
  101. package/dist/behaviors/registry/app/atoms/std-maintenance-request.orb +642 -192
  102. package/dist/behaviors/registry/app/atoms/std-matter.orb +486 -318
  103. package/dist/behaviors/registry/app/atoms/std-membership.orb +512 -102
  104. package/dist/behaviors/registry/app/atoms/std-menu.orb +775 -183
  105. package/dist/behaviors/registry/app/atoms/std-modifier-group.orb +522 -104
  106. package/dist/behaviors/registry/app/atoms/std-nps-survey.orb +319 -327
  107. package/dist/behaviors/registry/app/atoms/std-offer-letter.orb +497 -47
  108. package/dist/behaviors/registry/app/atoms/std-payout-ledger.orb +378 -362
  109. package/dist/behaviors/registry/app/atoms/std-question-bank.orb +379 -346
  110. package/dist/behaviors/registry/app/atoms/std-receipt.orb +553 -44
  111. package/dist/behaviors/registry/app/atoms/std-recurring-charge.orb +419 -832
  112. package/dist/behaviors/registry/app/atoms/std-renewal-risk.orb +370 -421
  113. package/dist/behaviors/registry/app/atoms/std-rent-charge.orb +657 -55
  114. package/dist/behaviors/registry/app/atoms/std-reorder-rule.orb +510 -59
  115. package/dist/behaviors/registry/app/atoms/std-response-collector.orb +451 -144
  116. package/dist/behaviors/registry/app/atoms/std-rfi.orb +502 -461
  117. package/dist/behaviors/registry/app/atoms/std-route-optimize.orb +448 -158
  118. package/dist/behaviors/registry/app/atoms/std-segment.orb +360 -98
  119. package/dist/behaviors/registry/app/atoms/std-stock-level.orb +486 -103
  120. package/dist/behaviors/registry/app/atoms/std-submittal.orb +538 -526
  121. package/dist/behaviors/registry/app/atoms/std-table-map.orb +88 -51
  122. package/dist/behaviors/registry/app/atoms/std-technician-dispatch.orb +653 -71
  123. package/dist/behaviors/registry/app/atoms/std-telematics-event.orb +310 -215
  124. package/dist/behaviors/registry/app/atoms/std-template-editor.orb +513 -90
  125. package/dist/behaviors/registry/app/atoms/std-tenant.orb +525 -66
  126. package/dist/behaviors/registry/app/atoms/std-ticket-tier.orb +472 -460
  127. package/dist/behaviors/registry/app/atoms/std-time-entry.orb +354 -317
  128. package/dist/behaviors/registry/app/atoms/std-timesheet.orb +551 -284
  129. package/dist/behaviors/registry/app/atoms/std-trial.orb +410 -317
  130. package/dist/behaviors/registry/app/atoms/std-vehicle.orb +398 -563
  131. package/dist/behaviors/registry/app/atoms/std-waitlist.orb +372 -283
  132. package/dist/behaviors/registry/app/atoms/std-warehouse.orb +273 -214
  133. package/dist/behaviors/registry/app/atoms/std-work-order.orb +628 -240
  134. package/dist/behaviors/registry/app/molecules/std-applicant-form.orb +89 -83
  135. package/dist/behaviors/registry/app/molecules/std-application.orb +178 -263
  136. package/dist/behaviors/registry/app/molecules/std-broadcast-builder.orb +67 -176
  137. package/dist/behaviors/registry/app/molecules/std-cart.orb +78 -72
  138. package/dist/behaviors/registry/app/molecules/std-form-builder.orb +437 -176
  139. package/dist/behaviors/registry/app/molecules/std-ledger-entry-form.orb +608 -89
  140. package/dist/behaviors/registry/app/molecules/std-stock-adjustment.orb +501 -102
  141. package/dist/behaviors/registry/app/molecules/std-vendor-onboarding.orb +383 -469
  142. package/dist/behaviors/registry/core/atoms/std-billable-hour.orb +495 -91
  143. package/dist/behaviors/registry/core/atoms/std-branching-logic.orb +271 -600
  144. package/dist/behaviors/registry/core/atoms/std-file-store.orb +534 -164
  145. package/dist/behaviors/registry/core/atoms/std-gallery.orb +118 -101
  146. package/dist/behaviors/registry/core/atoms/std-image-upload-multi.orb +87 -57
  147. package/dist/behaviors/registry/core/atoms/std-page-tree.orb +342 -484
  148. package/dist/behaviors/registry/core/atoms/std-rich-editor.orb +288 -416
  149. package/dist/behaviors/registry/core/atoms/std-version-history.orb +454 -430
  150. package/dist/behaviors/registry/core/molecules/std-wizard-form.orb +222 -147
  151. package/package.json +1 -1
@@ -102,6 +102,69 @@
102
102
  "category": "interaction",
103
103
  "linkedEntity": "JournalTransaction",
104
104
  "emits": [
105
+ {
106
+ "event": "OPEN_TRANSACTION",
107
+ "payloadSchema": [
108
+ {
109
+ "name": "id",
110
+ "type": "string",
111
+ "required": true
112
+ },
113
+ {
114
+ "name": "row.id",
115
+ "type": "string",
116
+ "required": true
117
+ },
118
+ {
119
+ "name": "row.transactionDate",
120
+ "type": "string",
121
+ "required": true
122
+ },
123
+ {
124
+ "name": "row.description",
125
+ "type": "string"
126
+ },
127
+ {
128
+ "name": "row.debitAccountId",
129
+ "type": "string"
130
+ },
131
+ {
132
+ "name": "row.debitAccountName",
133
+ "type": "string"
134
+ },
135
+ {
136
+ "name": "row.creditAccountId",
137
+ "type": "string"
138
+ },
139
+ {
140
+ "name": "row.creditAccountName",
141
+ "type": "string"
142
+ },
143
+ {
144
+ "name": "row.amount",
145
+ "type": "number"
146
+ },
147
+ {
148
+ "name": "row.referenceType",
149
+ "type": "string"
150
+ },
151
+ {
152
+ "name": "row.referenceId",
153
+ "type": "string"
154
+ },
155
+ {
156
+ "name": "row.isPosted",
157
+ "type": "boolean"
158
+ },
159
+ {
160
+ "name": "row.pendingId",
161
+ "type": "string"
162
+ }
163
+ ]
164
+ },
165
+ {
166
+ "event": "CLOSE_VIEW"
167
+ },
105
168
  {
106
169
  "event": "CREATE"
107
170
  },
@@ -227,8 +290,6 @@
227
290
  },
228
291
  {
229
292
  "event": "JournalTransactionLoaded",
230
- "description": "Fired when the journal-transaction collection finishes loading",
231
- "scope": "internal",
232
293
  "payloadSchema": [
233
294
  {
234
295
  "name": "data",
@@ -238,8 +299,6 @@
238
299
  },
239
300
  {
240
301
  "event": "JournalTransactionLoadFailed",
241
- "description": "Fired when the journal-transaction collection fails to load",
242
- "scope": "internal",
243
302
  "payloadSchema": [
244
303
  {
245
304
  "name": "error",
@@ -287,6 +346,9 @@
287
346
  {
288
347
  "name": "browsing"
289
348
  },
349
+ {
350
+ "name": "viewing_single"
351
+ },
290
352
  {
291
353
  "name": "error"
292
354
  }
@@ -320,17 +382,58 @@
320
382
  }
321
383
  ]
322
384
  },
385
+ {
386
+ "key": "OPEN_TRANSACTION",
387
+ "name": "Open Transaction",
388
+ "payloadSchema": [
389
+ {
390
+ "name": "id",
391
+ "type": "string",
392
+ "required": true
393
+ },
394
+ {
395
+ "name": "row",
396
+ "type": "JournalTransaction"
397
+ }
398
+ ]
399
+ },
323
400
  {
324
401
  "key": "CREATE",
325
402
  "name": "Create"
326
403
  },
327
404
  {
328
405
  "key": "POST_TRANSACTION",
329
- "name": "Post Transaction"
406
+ "name": "Post Transaction",
407
+ "payloadSchema": [
408
+ {
409
+ "name": "id",
410
+ "type": "string",
411
+ "required": true
412
+ },
413
+ {
414
+ "name": "row",
415
+ "type": "JournalTransaction"
416
+ }
417
+ ]
330
418
  },
331
419
  {
332
420
  "key": "REQUEST_DELETE",
333
- "name": "Request Delete"
421
+ "name": "Request Delete",
422
+ "payloadSchema": [
423
+ {
424
+ "name": "id",
425
+ "type": "string",
426
+ "required": true
427
+ },
428
+ {
429
+ "name": "row",
430
+ "type": "JournalTransaction"
431
+ }
432
+ ]
433
+ },
434
+ {
435
+ "key": "CLOSE_VIEW",
436
+ "name": "Close View"
334
437
  }
335
438
  ],
336
439
  "transitions": [
@@ -344,8 +447,8 @@
344
447
  "JournalTransaction",
345
448
  {
346
449
  "emit": {
347
- "failure": "JournalTransactionLoadFailed",
348
- "success": "JournalTransactionLoaded"
450
+ "success": "JournalTransactionLoaded",
451
+ "failure": "JournalTransactionLoadFailed"
349
452
  }
350
453
  }
351
454
  ],
@@ -353,10 +456,11 @@
353
456
  "render-ui",
354
457
  "main",
355
458
  {
356
- "gap": "md",
357
459
  "direction": "vertical",
358
- "align": "center",
359
460
  "type": "stack",
461
+ "gap": "md",
462
+ "align": "center",
463
+ "className": "py-12",
360
464
  "children": [
361
465
  {
362
466
  "type": "spinner"
@@ -364,11 +468,10 @@
364
468
  {
365
469
  "type": "typography",
366
470
  "color": "muted",
367
- "variant": "caption",
368
- "content": "Loading transactions…"
471
+ "content": "Loading transactions…",
472
+ "variant": "caption"
369
473
  }
370
- ],
371
- "className": "py-12"
474
+ ]
372
475
  }
373
476
  ]
374
477
  ]
@@ -382,74 +485,71 @@
382
485
  "render-ui",
383
486
  "main",
384
487
  {
488
+ "gap": "md",
489
+ "direction": "vertical",
385
490
  "children": [
386
491
  {
387
- "justify": "between",
388
- "gap": "md",
389
492
  "type": "stack",
390
493
  "children": [
391
494
  {
392
- "direction": "horizontal",
393
- "children": [
394
- {
395
- "name": "book-open",
396
- "type": "icon"
397
- },
398
- {
399
- "content": "Journal Transactions",
400
- "variant": "h2",
401
- "type": "typography"
402
- }
403
- ],
404
- "type": "stack",
405
- "gap": "md"
495
+ "type": "icon",
496
+ "name": "book-open"
406
497
  },
407
498
  {
408
- "type": "button",
409
- "variant": "primary",
410
- "label": "New Transaction",
411
- "icon": "plus",
412
- "action": "CREATE"
499
+ "variant": "h3",
500
+ "content": "Journal Transactions",
501
+ "type": "typography"
413
502
  }
414
503
  ],
504
+ "align": "center",
505
+ "gap": "sm",
415
506
  "direction": "horizontal"
416
507
  },
417
508
  {
418
- "currentStep": 1.0,
419
- "steps": [
509
+ "children": [
420
510
  {
421
- "title": "Draft",
422
- "id": "draft"
511
+ "label": "Total entries",
512
+ "value": "@payload.data.length",
513
+ "type": "stat-display",
514
+ "icon": "book-open"
423
515
  },
424
516
  {
425
- "id": "balance-check",
426
- "title": "Balance Check"
517
+ "icon": "check-circle",
518
+ "label": "Posted",
519
+ "value": "84",
520
+ "type": "stat-display"
427
521
  },
428
522
  {
429
- "title": "Review",
430
- "id": "review"
523
+ "type": "stat-display",
524
+ "label": "Draft",
525
+ "icon": "edit",
526
+ "value": "12"
431
527
  },
432
528
  {
433
- "id": "post",
434
- "title": "Post"
529
+ "label": "Net amount",
530
+ "icon": "dollar-sign",
531
+ "value": "$248,500",
532
+ "type": "stat-display"
435
533
  }
436
534
  ],
437
- "type": "wizard-progress"
535
+ "cols": 4.0,
536
+ "type": "simple-grid"
438
537
  },
439
538
  {
440
539
  "type": "divider"
441
540
  },
442
541
  {
542
+ "type": "data-grid",
443
543
  "fields": [
444
544
  {
445
- "label": "Date",
446
545
  "variant": "caption",
447
- "name": "transactionDate"
546
+ "name": "transactionDate",
547
+ "label": "Date"
448
548
  },
449
549
  {
450
- "variant": "body",
451
- "name": "description",
452
- "label": "Description"
550
+ "variant": "caption",
551
+ "label": "Description",
552
+ "name": "description"
453
553
  },
454
554
  {
455
555
  "variant": "caption",
@@ -457,40 +557,40 @@
457
557
  "label": "Debit"
458
558
  },
459
559
  {
460
- "label": "Credit",
461
560
  "name": "creditAccountName",
561
+ "label": "Credit",
462
562
  "variant": "caption"
463
563
  },
464
564
  {
565
+ "variant": "caption",
465
566
  "label": "Amount",
466
- "variant": "badge",
467
567
  "name": "amount"
468
568
  },
469
569
  {
470
- "name": "isPosted",
471
- "label": "Posted",
472
- "variant": "badge"
570
+ "variant": "badge",
571
+ "name": "referenceType",
572
+ "label": "Type"
473
573
  }
474
574
  ],
475
- "type": "data-grid",
476
575
  "entity": "@payload.data",
576
+ "cols": 1.0,
577
+ "gap": "sm",
477
578
  "itemActions": [
478
579
  {
479
- "event": "POST_TRANSACTION",
480
- "variant": "primary",
481
- "label": "Post"
580
+ "event": "OPEN_TRANSACTION",
581
+ "label": "Open",
582
+ "icon": "arrow-right",
583
+ "variant": "primary"
482
584
  },
483
585
  {
484
- "label": "Delete",
485
586
  "event": "REQUEST_DELETE",
587
+ "label": "Delete",
486
588
  "variant": "danger"
487
589
  }
488
590
  ]
489
591
  }
490
592
  ],
491
- "type": "stack",
492
- "gap": "lg",
493
- "direction": "vertical"
593
+ "type": "stack"
494
594
  }
495
595
  ]
496
596
  ]
@@ -504,52 +604,455 @@
504
604
  "render-ui",
505
605
  "main",
506
606
  {
607
+ "type": "alert",
608
+ "message": "@payload.error",
609
+ "variant": "error"
610
+ }
611
+ ]
612
+ ]
613
+ },
614
+ {
615
+ "from": "browsing",
616
+ "to": "viewing_single",
617
+ "event": "OPEN_TRANSACTION",
618
+ "effects": [
619
+ [
620
+ "set",
621
+ "@entity.id",
622
+ "@payload.row.id"
623
+ ],
624
+ [
625
+ "set",
626
+ "@entity.transactionDate",
627
+ "@payload.row.transactionDate"
628
+ ],
629
+ [
630
+ "set",
631
+ "@entity.description",
632
+ "@payload.row.description"
633
+ ],
634
+ [
635
+ "set",
636
+ "@entity.debitAccountId",
637
+ "@payload.row.debitAccountId"
638
+ ],
639
+ [
640
+ "set",
641
+ "@entity.debitAccountName",
642
+ "@payload.row.debitAccountName"
643
+ ],
644
+ [
645
+ "set",
646
+ "@entity.creditAccountId",
647
+ "@payload.row.creditAccountId"
648
+ ],
649
+ [
650
+ "set",
651
+ "@entity.creditAccountName",
652
+ "@payload.row.creditAccountName"
653
+ ],
654
+ [
655
+ "set",
656
+ "@entity.amount",
657
+ "@payload.row.amount"
658
+ ],
659
+ [
660
+ "set",
661
+ "@entity.referenceType",
662
+ "@payload.row.referenceType"
663
+ ],
664
+ [
665
+ "set",
666
+ "@entity.referenceId",
667
+ "@payload.row.referenceId"
668
+ ],
669
+ [
670
+ "render-ui",
671
+ "main",
672
+ {
673
+ "direction": "vertical",
674
+ "gap": "md",
507
675
  "type": "stack",
676
+ "children": [
677
+ {
678
+ "align": "center",
679
+ "direction": "horizontal",
680
+ "gap": "sm",
681
+ "children": [
682
+ {
683
+ "type": "button",
684
+ "label": "Back",
685
+ "variant": "ghost",
686
+ "action": "CLOSE_VIEW"
687
+ },
688
+ {
689
+ "type": "icon",
690
+ "name": "book-open"
691
+ },
692
+ {
693
+ "content": "@entity.description",
694
+ "type": "typography",
695
+ "variant": "h3"
696
+ },
697
+ {
698
+ "label": "@entity.referenceType",
699
+ "variant": "primary",
700
+ "type": "badge"
701
+ }
702
+ ],
703
+ "type": "stack"
704
+ },
705
+ {
706
+ "type": "divider"
707
+ },
708
+ {
709
+ "children": [
710
+ {
711
+ "gap": "md",
712
+ "type": "stack",
713
+ "direction": "horizontal",
714
+ "children": [
715
+ {
716
+ "color": "muted",
717
+ "variant": "caption",
718
+ "type": "typography",
719
+ "content": "Debit Account"
720
+ },
721
+ {
722
+ "type": "typography",
723
+ "variant": "body",
724
+ "content": "@entity.debitAccountName"
725
+ }
726
+ ]
727
+ },
728
+ {
729
+ "direction": "horizontal",
730
+ "children": [
731
+ {
732
+ "color": "muted",
733
+ "variant": "caption",
734
+ "type": "typography",
735
+ "content": "Credit Account"
736
+ },
737
+ {
738
+ "variant": "body",
739
+ "type": "typography",
740
+ "content": "@entity.creditAccountName"
741
+ }
742
+ ],
743
+ "type": "stack",
744
+ "gap": "md"
745
+ },
746
+ {
747
+ "children": [
748
+ {
749
+ "color": "muted",
750
+ "variant": "caption",
751
+ "type": "typography",
752
+ "content": "Reference"
753
+ },
754
+ {
755
+ "content": "@entity.referenceId",
756
+ "variant": "body",
757
+ "type": "typography"
758
+ }
759
+ ],
760
+ "type": "stack",
761
+ "gap": "md",
762
+ "direction": "horizontal"
763
+ }
764
+ ],
765
+ "direction": "vertical",
766
+ "type": "stack",
767
+ "gap": "sm"
768
+ },
769
+ {
770
+ "type": "divider"
771
+ },
772
+ {
773
+ "children": [
774
+ {
775
+ "label": "Amount",
776
+ "type": "stat-display",
777
+ "value": "@entity.amount",
778
+ "icon": "dollar-sign"
779
+ },
780
+ {
781
+ "value": "@entity.transactionDate",
782
+ "type": "stat-display",
783
+ "label": "Date",
784
+ "icon": "calendar"
785
+ },
786
+ {
787
+ "icon": "tag",
788
+ "value": "@entity.referenceType",
789
+ "type": "stat-display",
790
+ "label": "Type"
791
+ }
792
+ ],
793
+ "type": "simple-grid",
794
+ "cols": 3.0
795
+ },
796
+ {
797
+ "direction": "horizontal",
798
+ "gap": "sm",
799
+ "type": "stack",
800
+ "children": [
801
+ {
802
+ "label": "Post Transaction",
803
+ "actionPayload": {
804
+ "row": "@entity",
805
+ "id": "@entity.id"
806
+ },
807
+ "type": "button",
808
+ "variant": "primary",
809
+ "action": "POST_TRANSACTION"
810
+ },
811
+ {
812
+ "label": "Delete",
813
+ "variant": "danger",
814
+ "type": "button",
815
+ "action": "REQUEST_DELETE",
816
+ "actionPayload": {
817
+ "id": "@entity.id",
818
+ "row": "@entity"
819
+ }
820
+ }
821
+ ],
822
+ "align": "center"
823
+ }
824
+ ]
825
+ }
826
+ ]
827
+ ]
828
+ },
829
+ {
830
+ "from": "browsing",
831
+ "to": "loading",
832
+ "event": "CREATE",
833
+ "effects": [
834
+ [
835
+ "fetch",
836
+ "JournalTransaction",
837
+ {
838
+ "emit": {
839
+ "failure": "JournalTransactionLoadFailed",
840
+ "success": "JournalTransactionLoaded"
841
+ }
842
+ }
843
+ ],
844
+ [
845
+ "render-ui",
846
+ "main",
847
+ {
848
+ "type": "stack",
849
+ "align": "center",
850
+ "className": "py-12",
851
+ "direction": "vertical",
852
+ "children": [
853
+ {
854
+ "type": "spinner"
855
+ },
856
+ {
857
+ "color": "muted",
858
+ "content": "Opening new transaction…",
859
+ "variant": "caption",
860
+ "type": "typography"
861
+ }
862
+ ],
863
+ "gap": "md"
864
+ }
865
+ ]
866
+ ]
867
+ },
868
+ {
869
+ "from": "browsing",
870
+ "to": "loading",
871
+ "event": "POST_TRANSACTION",
872
+ "effects": [
873
+ [
874
+ "set",
875
+ "@entity.id",
876
+ "@payload.id"
877
+ ],
878
+ [
879
+ "fetch",
880
+ "JournalTransaction",
881
+ {
882
+ "emit": {
883
+ "failure": "JournalTransactionLoadFailed",
884
+ "success": "JournalTransactionLoaded"
885
+ }
886
+ }
887
+ ],
888
+ [
889
+ "render-ui",
890
+ "main",
891
+ {
892
+ "align": "center",
508
893
  "gap": "md",
894
+ "type": "stack",
895
+ "children": [
896
+ {
897
+ "type": "spinner"
898
+ },
899
+ {
900
+ "type": "typography",
901
+ "content": "Posting transaction…",
902
+ "color": "muted",
903
+ "variant": "caption"
904
+ }
905
+ ],
509
906
  "className": "py-12",
907
+ "direction": "vertical"
908
+ }
909
+ ]
910
+ ]
911
+ },
912
+ {
913
+ "from": "browsing",
914
+ "to": "loading",
915
+ "event": "REQUEST_DELETE",
916
+ "effects": [
917
+ [
918
+ "set",
919
+ "@entity.id",
920
+ "@payload.id"
921
+ ],
922
+ [
923
+ "fetch",
924
+ "JournalTransaction",
925
+ {
926
+ "emit": {
927
+ "success": "JournalTransactionLoaded",
928
+ "failure": "JournalTransactionLoadFailed"
929
+ }
930
+ }
931
+ ],
932
+ [
933
+ "render-ui",
934
+ "main",
935
+ {
510
936
  "children": [
511
937
  {
512
- "color": "destructive",
513
- "name": "alert-triangle",
514
- "type": "icon"
938
+ "type": "spinner"
515
939
  },
516
940
  {
941
+ "content": "Removing transaction…",
517
942
  "type": "typography",
518
- "variant": "h3",
519
- "content": "Failed to load transactions"
943
+ "color": "muted",
944
+ "variant": "caption"
945
+ }
946
+ ],
947
+ "direction": "vertical",
948
+ "type": "stack",
949
+ "gap": "md",
950
+ "align": "center",
951
+ "className": "py-12"
952
+ }
953
+ ]
954
+ ]
955
+ },
956
+ {
957
+ "from": "viewing_single",
958
+ "to": "loading",
959
+ "event": "CLOSE_VIEW",
960
+ "effects": [
961
+ [
962
+ "fetch",
963
+ "JournalTransaction",
964
+ {
965
+ "emit": {
966
+ "failure": "JournalTransactionLoadFailed",
967
+ "success": "JournalTransactionLoaded"
968
+ }
969
+ }
970
+ ],
971
+ [
972
+ "render-ui",
973
+ "main",
974
+ {
975
+ "direction": "vertical",
976
+ "gap": "md",
977
+ "type": "stack",
978
+ "className": "py-12",
979
+ "children": [
980
+ {
981
+ "type": "spinner"
520
982
  },
521
983
  {
984
+ "variant": "caption",
985
+ "content": "Loading transactions…",
522
986
  "color": "muted",
523
- "content": "@payload.error",
524
- "type": "typography",
525
- "variant": "body"
987
+ "type": "typography"
988
+ }
989
+ ],
990
+ "align": "center"
991
+ }
992
+ ]
993
+ ]
994
+ },
995
+ {
996
+ "from": "viewing_single",
997
+ "to": "loading",
998
+ "event": "POST_TRANSACTION",
999
+ "effects": [
1000
+ [
1001
+ "set",
1002
+ "@entity.id",
1003
+ "@payload.id"
1004
+ ],
1005
+ [
1006
+ "fetch",
1007
+ "JournalTransaction",
1008
+ {
1009
+ "emit": {
1010
+ "success": "JournalTransactionLoaded",
1011
+ "failure": "JournalTransactionLoadFailed"
1012
+ }
1013
+ }
1014
+ ],
1015
+ [
1016
+ "render-ui",
1017
+ "main",
1018
+ {
1019
+ "gap": "md",
1020
+ "children": [
1021
+ {
1022
+ "type": "spinner"
526
1023
  },
527
1024
  {
528
- "icon": "rotate-ccw",
529
- "variant": "primary",
530
- "type": "button",
531
- "label": "Retry",
532
- "action": "INIT"
1025
+ "type": "typography",
1026
+ "content": "Posting transaction…",
1027
+ "variant": "caption",
1028
+ "color": "muted"
533
1029
  }
534
1030
  ],
1031
+ "type": "stack",
535
1032
  "align": "center",
1033
+ "className": "py-12",
536
1034
  "direction": "vertical"
537
1035
  }
538
1036
  ]
539
1037
  ]
540
1038
  },
541
1039
  {
542
- "from": "browsing",
1040
+ "from": "viewing_single",
543
1041
  "to": "loading",
544
- "event": "INIT",
1042
+ "event": "REQUEST_DELETE",
545
1043
  "effects": [
1044
+ [
1045
+ "set",
1046
+ "@entity.id",
1047
+ "@payload.id"
1048
+ ],
546
1049
  [
547
1050
  "fetch",
548
1051
  "JournalTransaction",
549
1052
  {
550
1053
  "emit": {
551
- "failure": "JournalTransactionLoadFailed",
552
- "success": "JournalTransactionLoaded"
1054
+ "success": "JournalTransactionLoaded",
1055
+ "failure": "JournalTransactionLoadFailed"
553
1056
  }
554
1057
  }
555
1058
  ],
@@ -557,7 +1060,22 @@
557
1060
  "render-ui",
558
1061
  "main",
559
1062
  {
560
- "type": "spinner"
1063
+ "children": [
1064
+ {
1065
+ "type": "spinner"
1066
+ },
1067
+ {
1068
+ "content": "Removing transaction…",
1069
+ "color": "muted",
1070
+ "type": "typography",
1071
+ "variant": "caption"
1072
+ }
1073
+ ],
1074
+ "type": "stack",
1075
+ "direction": "vertical",
1076
+ "gap": "md",
1077
+ "align": "center",
1078
+ "className": "py-12"
561
1079
  }
562
1080
  ]
563
1081
  ]
@@ -572,8 +1090,8 @@
572
1090
  "JournalTransaction",
573
1091
  {
574
1092
  "emit": {
575
- "failure": "JournalTransactionLoadFailed",
576
- "success": "JournalTransactionLoaded"
1093
+ "success": "JournalTransactionLoaded",
1094
+ "failure": "JournalTransactionLoadFailed"
577
1095
  }
578
1096
  }
579
1097
  ],
@@ -581,7 +1099,8 @@
581
1099
  "render-ui",
582
1100
  "main",
583
1101
  {
584
- "type": "spinner"
1102
+ "type": "spinner",
1103
+ "size": "sm"
585
1104
  }
586
1105
  ]
587
1106
  ]
@@ -595,9 +1114,9 @@
595
1114
  "name": "JournalTransactionCreate",
596
1115
  "linkedEntity": "JournalTransaction",
597
1116
  "config": {
1117
+ "icon": "plus-circle",
598
1118
  "mode": "create",
599
1119
  "title": "New Transaction",
600
- "icon": "plus-circle",
601
1120
  "fields": [
602
1121
  "transactionDate",
603
1122
  "description",
@@ -627,10 +1146,10 @@
627
1146
  "name": "JournalTransactionDelete",
628
1147
  "linkedEntity": "JournalTransaction",
629
1148
  "config": {
630
- "alertMessage": "This action cannot be undone.",
631
- "title": "Delete Transaction",
632
1149
  "confirmLabel": "Delete",
633
- "icon": "alert-triangle"
1150
+ "icon": "alert-triangle",
1151
+ "title": "Delete Transaction",
1152
+ "alertMessage": "This action cannot be undone."
634
1153
  },
635
1154
  "events": {
636
1155
  "REQUEST": "DELETE",