@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.
- package/behaviors/registry/app/atoms/std-applicant.orb +496 -42
- package/behaviors/registry/app/atoms/std-approval-request.orb +433 -593
- package/behaviors/registry/app/atoms/std-campaign-goal.orb +438 -228
- package/behaviors/registry/app/atoms/std-change-order.orb +565 -307
- package/behaviors/registry/app/atoms/std-chart-of-accounts.orb +434 -97
- package/behaviors/registry/app/atoms/std-checkin.orb +434 -270
- package/behaviors/registry/app/atoms/std-class-roster.orb +495 -61
- package/behaviors/registry/app/atoms/std-class-session.orb +485 -104
- package/behaviors/registry/app/atoms/std-court-deadline.orb +519 -88
- package/behaviors/registry/app/atoms/std-customer-account.orb +577 -97
- package/behaviors/registry/app/atoms/std-donation-receipt.orb +498 -55
- package/behaviors/registry/app/atoms/std-donor.orb +445 -135
- package/behaviors/registry/app/atoms/std-drip-sequence.orb +445 -62
- package/behaviors/registry/app/atoms/std-driver.orb +465 -480
- package/behaviors/registry/app/atoms/std-dunning.orb +450 -512
- package/behaviors/registry/app/atoms/std-email-broadcast.orb +517 -64
- package/behaviors/registry/app/atoms/std-event.orb +465 -667
- package/behaviors/registry/app/atoms/std-health-score.orb +368 -371
- package/behaviors/registry/app/atoms/std-help-article.orb +373 -506
- package/behaviors/registry/app/atoms/std-help-category.orb +344 -359
- package/behaviors/registry/app/atoms/std-interview-slot.orb +490 -48
- package/behaviors/registry/app/atoms/std-invoice.orb +494 -291
- package/behaviors/registry/app/atoms/std-kitchen-display.orb +588 -96
- package/behaviors/registry/app/atoms/std-lease.orb +506 -190
- package/behaviors/registry/app/atoms/std-ledger-entry.orb +483 -154
- package/behaviors/registry/app/atoms/std-maintenance-request.orb +642 -192
- package/behaviors/registry/app/atoms/std-matter.orb +486 -318
- package/behaviors/registry/app/atoms/std-membership.orb +512 -102
- package/behaviors/registry/app/atoms/std-menu.orb +775 -183
- package/behaviors/registry/app/atoms/std-modifier-group.orb +522 -104
- package/behaviors/registry/app/atoms/std-nps-survey.orb +319 -327
- package/behaviors/registry/app/atoms/std-offer-letter.orb +497 -47
- package/behaviors/registry/app/atoms/std-payout-ledger.orb +378 -362
- package/behaviors/registry/app/atoms/std-question-bank.orb +379 -346
- package/behaviors/registry/app/atoms/std-receipt.orb +553 -44
- package/behaviors/registry/app/atoms/std-recurring-charge.orb +419 -832
- package/behaviors/registry/app/atoms/std-renewal-risk.orb +370 -421
- package/behaviors/registry/app/atoms/std-rent-charge.orb +657 -55
- package/behaviors/registry/app/atoms/std-reorder-rule.orb +510 -59
- package/behaviors/registry/app/atoms/std-response-collector.orb +451 -144
- package/behaviors/registry/app/atoms/std-rfi.orb +502 -461
- package/behaviors/registry/app/atoms/std-route-optimize.orb +448 -158
- package/behaviors/registry/app/atoms/std-segment.orb +360 -98
- package/behaviors/registry/app/atoms/std-stock-level.orb +486 -103
- package/behaviors/registry/app/atoms/std-submittal.orb +538 -526
- package/behaviors/registry/app/atoms/std-table-map.orb +88 -51
- package/behaviors/registry/app/atoms/std-technician-dispatch.orb +653 -71
- package/behaviors/registry/app/atoms/std-telematics-event.orb +310 -215
- package/behaviors/registry/app/atoms/std-template-editor.orb +513 -90
- package/behaviors/registry/app/atoms/std-tenant.orb +525 -66
- package/behaviors/registry/app/atoms/std-ticket-tier.orb +472 -460
- package/behaviors/registry/app/atoms/std-time-entry.orb +354 -317
- package/behaviors/registry/app/atoms/std-timesheet.orb +551 -284
- package/behaviors/registry/app/atoms/std-trial.orb +410 -317
- package/behaviors/registry/app/atoms/std-vehicle.orb +398 -563
- package/behaviors/registry/app/atoms/std-waitlist.orb +372 -283
- package/behaviors/registry/app/atoms/std-warehouse.orb +273 -214
- package/behaviors/registry/app/atoms/std-work-order.orb +628 -240
- package/behaviors/registry/app/molecules/std-applicant-form.orb +89 -83
- package/behaviors/registry/app/molecules/std-application.orb +178 -263
- package/behaviors/registry/app/molecules/std-broadcast-builder.orb +67 -176
- package/behaviors/registry/app/molecules/std-cart.orb +78 -72
- package/behaviors/registry/app/molecules/std-form-builder.orb +437 -176
- package/behaviors/registry/app/molecules/std-ledger-entry-form.orb +608 -89
- package/behaviors/registry/app/molecules/std-stock-adjustment.orb +501 -102
- package/behaviors/registry/app/molecules/std-vendor-onboarding.orb +383 -469
- package/behaviors/registry/core/atoms/std-billable-hour.orb +495 -91
- package/behaviors/registry/core/atoms/std-branching-logic.orb +271 -600
- package/behaviors/registry/core/atoms/std-file-store.orb +534 -164
- package/behaviors/registry/core/atoms/std-gallery.orb +118 -101
- package/behaviors/registry/core/atoms/std-image-upload-multi.orb +87 -57
- package/behaviors/registry/core/atoms/std-page-tree.orb +342 -484
- package/behaviors/registry/core/atoms/std-rich-editor.orb +288 -416
- package/behaviors/registry/core/atoms/std-version-history.orb +454 -430
- package/behaviors/registry/core/molecules/std-wizard-form.orb +222 -147
- package/dist/behaviors/registry/app/atoms/std-applicant.orb +496 -42
- package/dist/behaviors/registry/app/atoms/std-approval-request.orb +433 -593
- package/dist/behaviors/registry/app/atoms/std-campaign-goal.orb +438 -228
- package/dist/behaviors/registry/app/atoms/std-change-order.orb +565 -307
- package/dist/behaviors/registry/app/atoms/std-chart-of-accounts.orb +434 -97
- package/dist/behaviors/registry/app/atoms/std-checkin.orb +434 -270
- package/dist/behaviors/registry/app/atoms/std-class-roster.orb +495 -61
- package/dist/behaviors/registry/app/atoms/std-class-session.orb +485 -104
- package/dist/behaviors/registry/app/atoms/std-court-deadline.orb +519 -88
- package/dist/behaviors/registry/app/atoms/std-customer-account.orb +577 -97
- package/dist/behaviors/registry/app/atoms/std-donation-receipt.orb +498 -55
- package/dist/behaviors/registry/app/atoms/std-donor.orb +445 -135
- package/dist/behaviors/registry/app/atoms/std-drip-sequence.orb +445 -62
- package/dist/behaviors/registry/app/atoms/std-driver.orb +465 -480
- package/dist/behaviors/registry/app/atoms/std-dunning.orb +450 -512
- package/dist/behaviors/registry/app/atoms/std-email-broadcast.orb +517 -64
- package/dist/behaviors/registry/app/atoms/std-event.orb +465 -667
- package/dist/behaviors/registry/app/atoms/std-health-score.orb +368 -371
- package/dist/behaviors/registry/app/atoms/std-help-article.orb +373 -506
- package/dist/behaviors/registry/app/atoms/std-help-category.orb +344 -359
- package/dist/behaviors/registry/app/atoms/std-interview-slot.orb +490 -48
- package/dist/behaviors/registry/app/atoms/std-invoice.orb +494 -291
- package/dist/behaviors/registry/app/atoms/std-kitchen-display.orb +588 -96
- package/dist/behaviors/registry/app/atoms/std-lease.orb +506 -190
- package/dist/behaviors/registry/app/atoms/std-ledger-entry.orb +483 -154
- package/dist/behaviors/registry/app/atoms/std-maintenance-request.orb +642 -192
- package/dist/behaviors/registry/app/atoms/std-matter.orb +486 -318
- package/dist/behaviors/registry/app/atoms/std-membership.orb +512 -102
- package/dist/behaviors/registry/app/atoms/std-menu.orb +775 -183
- package/dist/behaviors/registry/app/atoms/std-modifier-group.orb +522 -104
- package/dist/behaviors/registry/app/atoms/std-nps-survey.orb +319 -327
- package/dist/behaviors/registry/app/atoms/std-offer-letter.orb +497 -47
- package/dist/behaviors/registry/app/atoms/std-payout-ledger.orb +378 -362
- package/dist/behaviors/registry/app/atoms/std-question-bank.orb +379 -346
- package/dist/behaviors/registry/app/atoms/std-receipt.orb +553 -44
- package/dist/behaviors/registry/app/atoms/std-recurring-charge.orb +419 -832
- package/dist/behaviors/registry/app/atoms/std-renewal-risk.orb +370 -421
- package/dist/behaviors/registry/app/atoms/std-rent-charge.orb +657 -55
- package/dist/behaviors/registry/app/atoms/std-reorder-rule.orb +510 -59
- package/dist/behaviors/registry/app/atoms/std-response-collector.orb +451 -144
- package/dist/behaviors/registry/app/atoms/std-rfi.orb +502 -461
- package/dist/behaviors/registry/app/atoms/std-route-optimize.orb +448 -158
- package/dist/behaviors/registry/app/atoms/std-segment.orb +360 -98
- package/dist/behaviors/registry/app/atoms/std-stock-level.orb +486 -103
- package/dist/behaviors/registry/app/atoms/std-submittal.orb +538 -526
- package/dist/behaviors/registry/app/atoms/std-table-map.orb +88 -51
- package/dist/behaviors/registry/app/atoms/std-technician-dispatch.orb +653 -71
- package/dist/behaviors/registry/app/atoms/std-telematics-event.orb +310 -215
- package/dist/behaviors/registry/app/atoms/std-template-editor.orb +513 -90
- package/dist/behaviors/registry/app/atoms/std-tenant.orb +525 -66
- package/dist/behaviors/registry/app/atoms/std-ticket-tier.orb +472 -460
- package/dist/behaviors/registry/app/atoms/std-time-entry.orb +354 -317
- package/dist/behaviors/registry/app/atoms/std-timesheet.orb +551 -284
- package/dist/behaviors/registry/app/atoms/std-trial.orb +410 -317
- package/dist/behaviors/registry/app/atoms/std-vehicle.orb +398 -563
- package/dist/behaviors/registry/app/atoms/std-waitlist.orb +372 -283
- package/dist/behaviors/registry/app/atoms/std-warehouse.orb +273 -214
- package/dist/behaviors/registry/app/atoms/std-work-order.orb +628 -240
- package/dist/behaviors/registry/app/molecules/std-applicant-form.orb +89 -83
- package/dist/behaviors/registry/app/molecules/std-application.orb +178 -263
- package/dist/behaviors/registry/app/molecules/std-broadcast-builder.orb +67 -176
- package/dist/behaviors/registry/app/molecules/std-cart.orb +78 -72
- package/dist/behaviors/registry/app/molecules/std-form-builder.orb +437 -176
- package/dist/behaviors/registry/app/molecules/std-ledger-entry-form.orb +608 -89
- package/dist/behaviors/registry/app/molecules/std-stock-adjustment.orb +501 -102
- package/dist/behaviors/registry/app/molecules/std-vendor-onboarding.orb +383 -469
- package/dist/behaviors/registry/core/atoms/std-billable-hour.orb +495 -91
- package/dist/behaviors/registry/core/atoms/std-branching-logic.orb +271 -600
- package/dist/behaviors/registry/core/atoms/std-file-store.orb +534 -164
- package/dist/behaviors/registry/core/atoms/std-gallery.orb +118 -101
- package/dist/behaviors/registry/core/atoms/std-image-upload-multi.orb +87 -57
- package/dist/behaviors/registry/core/atoms/std-page-tree.orb +342 -484
- package/dist/behaviors/registry/core/atoms/std-rich-editor.orb +288 -416
- package/dist/behaviors/registry/core/atoms/std-version-history.orb +454 -430
- package/dist/behaviors/registry/core/molecules/std-wizard-form.orb +222 -147
- package/package.json +1 -1
|
@@ -88,6 +88,79 @@
|
|
|
88
88
|
"category": "interaction",
|
|
89
89
|
"linkedEntity": "MenuItem",
|
|
90
90
|
"emits": [
|
|
91
|
+
{
|
|
92
|
+
"event": "OPEN_ITEM",
|
|
93
|
+
"payloadSchema": [
|
|
94
|
+
{
|
|
95
|
+
"name": "id",
|
|
96
|
+
"type": "string",
|
|
97
|
+
"required": true
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "row.id",
|
|
101
|
+
"type": "string",
|
|
102
|
+
"required": true
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "row.name",
|
|
106
|
+
"type": "string",
|
|
107
|
+
"required": true
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "row.description",
|
|
111
|
+
"type": "string"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "row.price",
|
|
115
|
+
"type": "number",
|
|
116
|
+
"required": true
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "row.currency",
|
|
120
|
+
"type": "string"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "row.category",
|
|
124
|
+
"type": "string",
|
|
125
|
+
"required": true
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "row.imageUrl",
|
|
129
|
+
"type": "string"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "row.available",
|
|
133
|
+
"type": "boolean"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "row.availableFrom",
|
|
137
|
+
"type": "string"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "row.availableUntil",
|
|
141
|
+
"type": "string"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "row.tags",
|
|
145
|
+
"type": "[string]"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "row.modifierGroupIds",
|
|
149
|
+
"type": "[string]"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "row.prepTimeMinutes",
|
|
153
|
+
"type": "number"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "row.order",
|
|
157
|
+
"type": "number"
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"event": "CLOSE_VIEW"
|
|
163
|
+
},
|
|
91
164
|
{
|
|
92
165
|
"event": "CREATE",
|
|
93
166
|
"payloadSchema": [
|
|
@@ -553,6 +626,9 @@
|
|
|
553
626
|
{
|
|
554
627
|
"name": "browsing"
|
|
555
628
|
},
|
|
629
|
+
{
|
|
630
|
+
"name": "viewing_single"
|
|
631
|
+
},
|
|
556
632
|
{
|
|
557
633
|
"name": "error"
|
|
558
634
|
}
|
|
@@ -587,42 +663,11 @@
|
|
|
587
663
|
]
|
|
588
664
|
},
|
|
589
665
|
{
|
|
590
|
-
"key": "
|
|
591
|
-
"name": "
|
|
592
|
-
"payloadSchema": [
|
|
593
|
-
{
|
|
594
|
-
"name": "data",
|
|
595
|
-
"type": "object",
|
|
596
|
-
"required": true
|
|
597
|
-
}
|
|
598
|
-
]
|
|
599
|
-
},
|
|
600
|
-
{
|
|
601
|
-
"key": "UPDATE",
|
|
602
|
-
"name": "Update",
|
|
603
|
-
"payloadSchema": [
|
|
604
|
-
{
|
|
605
|
-
"name": "itemId",
|
|
606
|
-
"type": "string",
|
|
607
|
-
"required": true
|
|
608
|
-
},
|
|
609
|
-
{
|
|
610
|
-
"name": "row",
|
|
611
|
-
"type": "MenuItem"
|
|
612
|
-
},
|
|
613
|
-
{
|
|
614
|
-
"name": "data",
|
|
615
|
-
"type": "object",
|
|
616
|
-
"required": true
|
|
617
|
-
}
|
|
618
|
-
]
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
"key": "TOGGLE_AVAILABLE",
|
|
622
|
-
"name": "Toggle Available",
|
|
666
|
+
"key": "OPEN_ITEM",
|
|
667
|
+
"name": "Open Item",
|
|
623
668
|
"payloadSchema": [
|
|
624
669
|
{
|
|
625
|
-
"name": "
|
|
670
|
+
"name": "id",
|
|
626
671
|
"type": "string",
|
|
627
672
|
"required": true
|
|
628
673
|
},
|
|
@@ -690,6 +735,56 @@
|
|
|
690
735
|
"type": "string"
|
|
691
736
|
}
|
|
692
737
|
]
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"key": "CLOSE_VIEW",
|
|
741
|
+
"name": "Close View"
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
"key": "CREATE",
|
|
745
|
+
"name": "Create",
|
|
746
|
+
"payloadSchema": [
|
|
747
|
+
{
|
|
748
|
+
"name": "data",
|
|
749
|
+
"type": "object",
|
|
750
|
+
"required": true
|
|
751
|
+
}
|
|
752
|
+
]
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
"key": "UPDATE",
|
|
756
|
+
"name": "Update",
|
|
757
|
+
"payloadSchema": [
|
|
758
|
+
{
|
|
759
|
+
"name": "itemId",
|
|
760
|
+
"type": "string",
|
|
761
|
+
"required": true
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"name": "row",
|
|
765
|
+
"type": "MenuItem"
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"name": "data",
|
|
769
|
+
"type": "object",
|
|
770
|
+
"required": true
|
|
771
|
+
}
|
|
772
|
+
]
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
"key": "TOGGLE_AVAILABLE",
|
|
776
|
+
"name": "Toggle Available",
|
|
777
|
+
"payloadSchema": [
|
|
778
|
+
{
|
|
779
|
+
"name": "itemId",
|
|
780
|
+
"type": "string",
|
|
781
|
+
"required": true
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"name": "row",
|
|
785
|
+
"type": "MenuItem"
|
|
786
|
+
}
|
|
787
|
+
]
|
|
693
788
|
}
|
|
694
789
|
],
|
|
695
790
|
"transitions": [
|
|
@@ -712,22 +807,22 @@
|
|
|
712
807
|
"render-ui",
|
|
713
808
|
"main",
|
|
714
809
|
{
|
|
810
|
+
"gap": "md",
|
|
811
|
+
"align": "center",
|
|
812
|
+
"type": "stack",
|
|
813
|
+
"className": "py-12",
|
|
715
814
|
"children": [
|
|
716
815
|
{
|
|
717
816
|
"type": "spinner"
|
|
718
817
|
},
|
|
719
818
|
{
|
|
720
|
-
"type": "typography",
|
|
721
|
-
"color": "muted",
|
|
722
819
|
"variant": "caption",
|
|
723
|
-
"content": "Loading menu…"
|
|
820
|
+
"content": "Loading menu…",
|
|
821
|
+
"type": "typography",
|
|
822
|
+
"color": "muted"
|
|
724
823
|
}
|
|
725
824
|
],
|
|
726
|
-
"
|
|
727
|
-
"direction": "vertical",
|
|
728
|
-
"align": "center",
|
|
729
|
-
"className": "py-12",
|
|
730
|
-
"gap": "md"
|
|
825
|
+
"direction": "vertical"
|
|
731
826
|
}
|
|
732
827
|
]
|
|
733
828
|
]
|
|
@@ -743,21 +838,51 @@
|
|
|
743
838
|
{
|
|
744
839
|
"gap": "md",
|
|
745
840
|
"type": "stack",
|
|
746
|
-
"direction": "vertical",
|
|
747
841
|
"children": [
|
|
748
842
|
{
|
|
749
843
|
"type": "stack",
|
|
750
844
|
"direction": "horizontal",
|
|
751
|
-
"
|
|
845
|
+
"align": "center",
|
|
752
846
|
"children": [
|
|
753
847
|
{
|
|
754
848
|
"name": "utensils",
|
|
755
849
|
"type": "icon"
|
|
756
850
|
},
|
|
757
851
|
{
|
|
758
|
-
"variant": "h3",
|
|
759
852
|
"type": "typography",
|
|
760
|
-
"content": "@config.title"
|
|
853
|
+
"content": "@config.title",
|
|
854
|
+
"variant": "h3"
|
|
855
|
+
}
|
|
856
|
+
],
|
|
857
|
+
"gap": "sm"
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
"cols": 4.0,
|
|
861
|
+
"type": "simple-grid",
|
|
862
|
+
"children": [
|
|
863
|
+
{
|
|
864
|
+
"label": "Menu items",
|
|
865
|
+
"type": "stat-display",
|
|
866
|
+
"icon": "utensils",
|
|
867
|
+
"value": "@payload.data.length"
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"value": "62",
|
|
871
|
+
"icon": "check-circle",
|
|
872
|
+
"label": "Available",
|
|
873
|
+
"type": "stat-display"
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
"icon": "list",
|
|
877
|
+
"type": "stat-display",
|
|
878
|
+
"value": "8",
|
|
879
|
+
"label": "Categories"
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"value": "$14.50",
|
|
883
|
+
"type": "stat-display",
|
|
884
|
+
"label": "Avg price",
|
|
885
|
+
"icon": "dollar-sign"
|
|
761
886
|
}
|
|
762
887
|
]
|
|
763
888
|
},
|
|
@@ -767,40 +892,33 @@
|
|
|
767
892
|
{
|
|
768
893
|
"itemActions": [
|
|
769
894
|
{
|
|
770
|
-
"label": "Update",
|
|
771
|
-
"variant": "secondary",
|
|
772
|
-
"event": "UPDATE",
|
|
773
|
-
"icon": "edit"
|
|
774
|
-
},
|
|
775
|
-
{
|
|
776
|
-
"event": "TOGGLE_AVAILABLE",
|
|
777
895
|
"variant": "primary",
|
|
778
|
-
"icon": "
|
|
779
|
-
"label": "
|
|
896
|
+
"icon": "arrow-right",
|
|
897
|
+
"label": "Open",
|
|
898
|
+
"event": "OPEN_ITEM"
|
|
780
899
|
},
|
|
781
900
|
{
|
|
782
901
|
"event": "DELETE",
|
|
902
|
+
"variant": "danger",
|
|
783
903
|
"label": "Delete",
|
|
784
|
-
"icon": "trash"
|
|
785
|
-
"variant": "danger"
|
|
904
|
+
"icon": "trash"
|
|
786
905
|
}
|
|
787
906
|
],
|
|
788
|
-
"type": "data-grid",
|
|
789
907
|
"fields": [
|
|
790
908
|
{
|
|
791
|
-
"variant": "
|
|
792
|
-
"
|
|
793
|
-
"
|
|
909
|
+
"variant": "caption",
|
|
910
|
+
"label": "Item",
|
|
911
|
+
"name": "name"
|
|
794
912
|
},
|
|
795
913
|
{
|
|
796
|
-
"
|
|
914
|
+
"label": "Category",
|
|
797
915
|
"name": "category",
|
|
798
|
-
"
|
|
916
|
+
"variant": "badge"
|
|
799
917
|
},
|
|
800
918
|
{
|
|
801
|
-
"
|
|
919
|
+
"name": "price",
|
|
802
920
|
"label": "Price",
|
|
803
|
-
"
|
|
921
|
+
"variant": "caption"
|
|
804
922
|
},
|
|
805
923
|
{
|
|
806
924
|
"label": "Currency",
|
|
@@ -808,28 +926,23 @@
|
|
|
808
926
|
"name": "currency"
|
|
809
927
|
},
|
|
810
928
|
{
|
|
929
|
+
"variant": "caption",
|
|
811
930
|
"name": "prepTimeMinutes",
|
|
812
|
-
"label": "Prep (min)"
|
|
813
|
-
"variant": "caption"
|
|
931
|
+
"label": "Prep (min)"
|
|
814
932
|
},
|
|
815
933
|
{
|
|
816
934
|
"label": "Available",
|
|
817
|
-
"
|
|
818
|
-
"
|
|
935
|
+
"name": "available",
|
|
936
|
+
"variant": "badge"
|
|
819
937
|
}
|
|
820
938
|
],
|
|
939
|
+
"gap": "sm",
|
|
940
|
+
"type": "data-grid",
|
|
821
941
|
"cols": 1.0,
|
|
822
|
-
"entity": "@payload.data"
|
|
823
|
-
"gap": "sm"
|
|
824
|
-
},
|
|
825
|
-
{
|
|
826
|
-
"type": "button",
|
|
827
|
-
"action": "CREATE",
|
|
828
|
-
"icon": "plus",
|
|
829
|
-
"label": "New Item",
|
|
830
|
-
"variant": "primary"
|
|
942
|
+
"entity": "@payload.data"
|
|
831
943
|
}
|
|
832
|
-
]
|
|
944
|
+
],
|
|
945
|
+
"direction": "vertical"
|
|
833
946
|
}
|
|
834
947
|
]
|
|
835
948
|
]
|
|
@@ -852,32 +965,13 @@
|
|
|
852
965
|
},
|
|
853
966
|
{
|
|
854
967
|
"from": "browsing",
|
|
855
|
-
"to": "
|
|
856
|
-
"event": "
|
|
857
|
-
"effects": [
|
|
858
|
-
[
|
|
859
|
-
"persist",
|
|
860
|
-
"create",
|
|
861
|
-
"MenuItem",
|
|
862
|
-
"@payload.data",
|
|
863
|
-
{
|
|
864
|
-
"emit": {
|
|
865
|
-
"success": "MenuItemCreated",
|
|
866
|
-
"failure": "MenuItemWriteFailed"
|
|
867
|
-
}
|
|
868
|
-
}
|
|
869
|
-
]
|
|
870
|
-
]
|
|
871
|
-
},
|
|
872
|
-
{
|
|
873
|
-
"from": "browsing",
|
|
874
|
-
"to": "loading",
|
|
875
|
-
"event": "UPDATE",
|
|
968
|
+
"to": "viewing_single",
|
|
969
|
+
"event": "OPEN_ITEM",
|
|
876
970
|
"effects": [
|
|
877
971
|
[
|
|
878
972
|
"set",
|
|
879
973
|
"@entity.id",
|
|
880
|
-
"@payload.
|
|
974
|
+
"@payload.row.id"
|
|
881
975
|
],
|
|
882
976
|
[
|
|
883
977
|
"set",
|
|
@@ -945,41 +1039,193 @@
|
|
|
945
1039
|
"@payload.row.order"
|
|
946
1040
|
],
|
|
947
1041
|
[
|
|
948
|
-
"
|
|
949
|
-
"
|
|
950
|
-
"MenuItem",
|
|
951
|
-
"@entity",
|
|
1042
|
+
"render-ui",
|
|
1043
|
+
"main",
|
|
952
1044
|
{
|
|
953
|
-
"
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
1045
|
+
"gap": "md",
|
|
1046
|
+
"children": [
|
|
1047
|
+
{
|
|
1048
|
+
"type": "stack",
|
|
1049
|
+
"direction": "horizontal",
|
|
1050
|
+
"gap": "sm",
|
|
1051
|
+
"align": "center",
|
|
1052
|
+
"children": [
|
|
1053
|
+
{
|
|
1054
|
+
"type": "button",
|
|
1055
|
+
"action": "CLOSE_VIEW",
|
|
1056
|
+
"label": "Back",
|
|
1057
|
+
"variant": "ghost"
|
|
1058
|
+
},
|
|
1059
|
+
{
|
|
1060
|
+
"type": "icon",
|
|
1061
|
+
"name": "utensils"
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
"variant": "h3",
|
|
1065
|
+
"type": "typography",
|
|
1066
|
+
"content": "@entity.name"
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
"type": "badge",
|
|
1070
|
+
"label": "@entity.category",
|
|
1071
|
+
"variant": "primary"
|
|
1072
|
+
}
|
|
1073
|
+
]
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
"type": "divider"
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
"gap": "sm",
|
|
1080
|
+
"children": [
|
|
1081
|
+
{
|
|
1082
|
+
"type": "stack",
|
|
1083
|
+
"direction": "horizontal",
|
|
1084
|
+
"gap": "md",
|
|
1085
|
+
"children": [
|
|
1086
|
+
{
|
|
1087
|
+
"color": "muted",
|
|
1088
|
+
"content": "Description",
|
|
1089
|
+
"type": "typography",
|
|
1090
|
+
"variant": "caption"
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
"content": "@entity.description",
|
|
1094
|
+
"variant": "body",
|
|
1095
|
+
"type": "typography"
|
|
1096
|
+
}
|
|
1097
|
+
]
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
"gap": "md",
|
|
1101
|
+
"type": "stack",
|
|
1102
|
+
"direction": "horizontal",
|
|
1103
|
+
"children": [
|
|
1104
|
+
{
|
|
1105
|
+
"variant": "caption",
|
|
1106
|
+
"type": "typography",
|
|
1107
|
+
"color": "muted",
|
|
1108
|
+
"content": "Available from"
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
"type": "typography",
|
|
1112
|
+
"variant": "body",
|
|
1113
|
+
"content": "@entity.availableFrom"
|
|
1114
|
+
}
|
|
1115
|
+
]
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
"children": [
|
|
1119
|
+
{
|
|
1120
|
+
"color": "muted",
|
|
1121
|
+
"variant": "caption",
|
|
1122
|
+
"type": "typography",
|
|
1123
|
+
"content": "Available until"
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
"variant": "body",
|
|
1127
|
+
"type": "typography",
|
|
1128
|
+
"content": "@entity.availableUntil"
|
|
1129
|
+
}
|
|
1130
|
+
],
|
|
1131
|
+
"type": "stack",
|
|
1132
|
+
"direction": "horizontal",
|
|
1133
|
+
"gap": "md"
|
|
1134
|
+
}
|
|
1135
|
+
],
|
|
1136
|
+
"direction": "vertical",
|
|
1137
|
+
"type": "stack"
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
"type": "divider"
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
"children": [
|
|
1144
|
+
{
|
|
1145
|
+
"type": "stat-display",
|
|
1146
|
+
"icon": "dollar-sign",
|
|
1147
|
+
"value": "@entity.price",
|
|
1148
|
+
"label": "Price"
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
"label": "Currency",
|
|
1152
|
+
"type": "stat-display",
|
|
1153
|
+
"value": "@entity.currency",
|
|
1154
|
+
"icon": "circle-dollar-sign"
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
"value": "@entity.prepTimeMinutes",
|
|
1158
|
+
"icon": "clock",
|
|
1159
|
+
"type": "stat-display",
|
|
1160
|
+
"label": "Prep (min)"
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"label": "Order",
|
|
1164
|
+
"icon": "list-ordered",
|
|
1165
|
+
"value": "@entity.order",
|
|
1166
|
+
"type": "stat-display"
|
|
1167
|
+
}
|
|
1168
|
+
],
|
|
1169
|
+
"type": "simple-grid",
|
|
1170
|
+
"cols": 4.0
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
"align": "center",
|
|
1174
|
+
"type": "stack",
|
|
1175
|
+
"gap": "sm",
|
|
1176
|
+
"direction": "horizontal",
|
|
1177
|
+
"children": [
|
|
1178
|
+
{
|
|
1179
|
+
"label": "Toggle Available",
|
|
1180
|
+
"action": "TOGGLE_AVAILABLE",
|
|
1181
|
+
"type": "button",
|
|
1182
|
+
"actionPayload": {
|
|
1183
|
+
"itemId": "@entity.id",
|
|
1184
|
+
"row": "@entity"
|
|
1185
|
+
},
|
|
1186
|
+
"variant": "primary"
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
"label": "Delete",
|
|
1190
|
+
"type": "button",
|
|
1191
|
+
"variant": "danger",
|
|
1192
|
+
"actionPayload": {
|
|
1193
|
+
"itemId": "@entity.id",
|
|
1194
|
+
"row": "@entity"
|
|
1195
|
+
},
|
|
1196
|
+
"action": "DELETE"
|
|
1197
|
+
}
|
|
1198
|
+
]
|
|
1199
|
+
}
|
|
1200
|
+
],
|
|
1201
|
+
"type": "stack",
|
|
1202
|
+
"direction": "vertical"
|
|
1203
|
+
}
|
|
1204
|
+
]
|
|
1205
|
+
]
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
"from": "browsing",
|
|
1209
|
+
"to": "loading",
|
|
1210
|
+
"event": "DELETE",
|
|
1211
|
+
"effects": [
|
|
1212
|
+
[
|
|
1213
|
+
"set",
|
|
1214
|
+
"@entity.id",
|
|
1215
|
+
"@payload.itemId"
|
|
1216
|
+
],
|
|
1217
|
+
[
|
|
1218
|
+
"set",
|
|
1219
|
+
"@entity.name",
|
|
1220
|
+
"@payload.row.name"
|
|
1221
|
+
],
|
|
1222
|
+
[
|
|
1223
|
+
"set",
|
|
1224
|
+
"@entity.description",
|
|
1225
|
+
"@payload.row.description"
|
|
1226
|
+
],
|
|
1227
|
+
[
|
|
1228
|
+
"set",
|
|
983
1229
|
"@entity.price",
|
|
984
1230
|
"@payload.row.price"
|
|
985
1231
|
],
|
|
@@ -1001,10 +1247,7 @@
|
|
|
1001
1247
|
[
|
|
1002
1248
|
"set",
|
|
1003
1249
|
"@entity.available",
|
|
1004
|
-
|
|
1005
|
-
"not",
|
|
1006
|
-
"@payload.row.available"
|
|
1007
|
-
]
|
|
1250
|
+
"@payload.row.available"
|
|
1008
1251
|
],
|
|
1009
1252
|
[
|
|
1010
1253
|
"set",
|
|
@@ -1038,22 +1281,191 @@
|
|
|
1038
1281
|
],
|
|
1039
1282
|
[
|
|
1040
1283
|
"persist",
|
|
1041
|
-
"
|
|
1284
|
+
"delete",
|
|
1042
1285
|
"MenuItem",
|
|
1043
1286
|
"@entity",
|
|
1044
1287
|
{
|
|
1045
1288
|
"emit": {
|
|
1046
|
-
"
|
|
1047
|
-
"
|
|
1289
|
+
"success": "MenuItemDeleted",
|
|
1290
|
+
"failure": "MenuItemWriteFailed"
|
|
1048
1291
|
}
|
|
1049
1292
|
}
|
|
1293
|
+
],
|
|
1294
|
+
[
|
|
1295
|
+
"render-ui",
|
|
1296
|
+
"main",
|
|
1297
|
+
{
|
|
1298
|
+
"direction": "vertical",
|
|
1299
|
+
"className": "py-12",
|
|
1300
|
+
"type": "stack",
|
|
1301
|
+
"align": "center",
|
|
1302
|
+
"gap": "md",
|
|
1303
|
+
"children": [
|
|
1304
|
+
{
|
|
1305
|
+
"type": "spinner"
|
|
1306
|
+
},
|
|
1307
|
+
{
|
|
1308
|
+
"type": "typography",
|
|
1309
|
+
"color": "muted",
|
|
1310
|
+
"content": "Deleting menu item…",
|
|
1311
|
+
"variant": "caption"
|
|
1312
|
+
}
|
|
1313
|
+
]
|
|
1314
|
+
}
|
|
1050
1315
|
]
|
|
1051
1316
|
]
|
|
1052
1317
|
},
|
|
1053
1318
|
{
|
|
1054
1319
|
"from": "browsing",
|
|
1055
1320
|
"to": "loading",
|
|
1056
|
-
"event": "
|
|
1321
|
+
"event": "MenuItemCreated",
|
|
1322
|
+
"effects": [
|
|
1323
|
+
[
|
|
1324
|
+
"fetch",
|
|
1325
|
+
"MenuItem",
|
|
1326
|
+
{
|
|
1327
|
+
"emit": {
|
|
1328
|
+
"failure": "MenuItemLoadFailed",
|
|
1329
|
+
"success": "MenuItemLoaded"
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
]
|
|
1333
|
+
]
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
"from": "browsing",
|
|
1337
|
+
"to": "loading",
|
|
1338
|
+
"event": "MenuItemUpdated",
|
|
1339
|
+
"effects": [
|
|
1340
|
+
[
|
|
1341
|
+
"fetch",
|
|
1342
|
+
"MenuItem",
|
|
1343
|
+
{
|
|
1344
|
+
"emit": {
|
|
1345
|
+
"failure": "MenuItemLoadFailed",
|
|
1346
|
+
"success": "MenuItemLoaded"
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
]
|
|
1350
|
+
]
|
|
1351
|
+
},
|
|
1352
|
+
{
|
|
1353
|
+
"from": "browsing",
|
|
1354
|
+
"to": "loading",
|
|
1355
|
+
"event": "MenuItemDeleted",
|
|
1356
|
+
"effects": [
|
|
1357
|
+
[
|
|
1358
|
+
"fetch",
|
|
1359
|
+
"MenuItem",
|
|
1360
|
+
{
|
|
1361
|
+
"emit": {
|
|
1362
|
+
"failure": "MenuItemLoadFailed",
|
|
1363
|
+
"success": "MenuItemLoaded"
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
]
|
|
1367
|
+
]
|
|
1368
|
+
},
|
|
1369
|
+
{
|
|
1370
|
+
"from": "browsing",
|
|
1371
|
+
"to": "browsing",
|
|
1372
|
+
"event": "MenuItemWriteFailed",
|
|
1373
|
+
"effects": [
|
|
1374
|
+
[
|
|
1375
|
+
"render-ui",
|
|
1376
|
+
"main",
|
|
1377
|
+
{
|
|
1378
|
+
"variant": "error",
|
|
1379
|
+
"message": "@payload.error",
|
|
1380
|
+
"type": "alert"
|
|
1381
|
+
}
|
|
1382
|
+
]
|
|
1383
|
+
]
|
|
1384
|
+
},
|
|
1385
|
+
{
|
|
1386
|
+
"from": "viewing_single",
|
|
1387
|
+
"to": "loading",
|
|
1388
|
+
"event": "CLOSE_VIEW",
|
|
1389
|
+
"effects": [
|
|
1390
|
+
[
|
|
1391
|
+
"fetch",
|
|
1392
|
+
"MenuItem",
|
|
1393
|
+
{
|
|
1394
|
+
"emit": {
|
|
1395
|
+
"failure": "MenuItemLoadFailed",
|
|
1396
|
+
"success": "MenuItemLoaded"
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
],
|
|
1400
|
+
[
|
|
1401
|
+
"render-ui",
|
|
1402
|
+
"main",
|
|
1403
|
+
{
|
|
1404
|
+
"type": "stack",
|
|
1405
|
+
"direction": "vertical",
|
|
1406
|
+
"gap": "md",
|
|
1407
|
+
"align": "center",
|
|
1408
|
+
"className": "py-12",
|
|
1409
|
+
"children": [
|
|
1410
|
+
{
|
|
1411
|
+
"type": "spinner"
|
|
1412
|
+
},
|
|
1413
|
+
{
|
|
1414
|
+
"type": "typography",
|
|
1415
|
+
"content": "Loading menu…",
|
|
1416
|
+
"color": "muted",
|
|
1417
|
+
"variant": "caption"
|
|
1418
|
+
}
|
|
1419
|
+
]
|
|
1420
|
+
}
|
|
1421
|
+
]
|
|
1422
|
+
]
|
|
1423
|
+
},
|
|
1424
|
+
{
|
|
1425
|
+
"from": "viewing_single",
|
|
1426
|
+
"to": "loading",
|
|
1427
|
+
"event": "CREATE",
|
|
1428
|
+
"effects": [
|
|
1429
|
+
[
|
|
1430
|
+
"persist",
|
|
1431
|
+
"create",
|
|
1432
|
+
"MenuItem",
|
|
1433
|
+
"@payload.data",
|
|
1434
|
+
{
|
|
1435
|
+
"emit": {
|
|
1436
|
+
"failure": "MenuItemWriteFailed",
|
|
1437
|
+
"success": "MenuItemCreated"
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
],
|
|
1441
|
+
[
|
|
1442
|
+
"render-ui",
|
|
1443
|
+
"main",
|
|
1444
|
+
{
|
|
1445
|
+
"align": "center",
|
|
1446
|
+
"gap": "md",
|
|
1447
|
+
"className": "py-12",
|
|
1448
|
+
"direction": "vertical",
|
|
1449
|
+
"type": "stack",
|
|
1450
|
+
"children": [
|
|
1451
|
+
{
|
|
1452
|
+
"type": "spinner"
|
|
1453
|
+
},
|
|
1454
|
+
{
|
|
1455
|
+
"color": "muted",
|
|
1456
|
+
"content": "Creating menu item…",
|
|
1457
|
+
"variant": "caption",
|
|
1458
|
+
"type": "typography"
|
|
1459
|
+
}
|
|
1460
|
+
]
|
|
1461
|
+
}
|
|
1462
|
+
]
|
|
1463
|
+
]
|
|
1464
|
+
},
|
|
1465
|
+
{
|
|
1466
|
+
"from": "viewing_single",
|
|
1467
|
+
"to": "loading",
|
|
1468
|
+
"event": "UPDATE",
|
|
1057
1469
|
"effects": [
|
|
1058
1470
|
[
|
|
1059
1471
|
"set",
|
|
@@ -1127,81 +1539,261 @@
|
|
|
1127
1539
|
],
|
|
1128
1540
|
[
|
|
1129
1541
|
"persist",
|
|
1130
|
-
"
|
|
1542
|
+
"update",
|
|
1131
1543
|
"MenuItem",
|
|
1132
1544
|
"@entity",
|
|
1133
1545
|
{
|
|
1134
1546
|
"emit": {
|
|
1135
|
-
"
|
|
1136
|
-
"
|
|
1547
|
+
"success": "MenuItemUpdated",
|
|
1548
|
+
"failure": "MenuItemWriteFailed"
|
|
1137
1549
|
}
|
|
1138
1550
|
}
|
|
1139
|
-
]
|
|
1140
|
-
]
|
|
1141
|
-
},
|
|
1142
|
-
{
|
|
1143
|
-
"from": "browsing",
|
|
1144
|
-
"to": "loading",
|
|
1145
|
-
"event": "MenuItemCreated",
|
|
1146
|
-
"effects": [
|
|
1551
|
+
],
|
|
1147
1552
|
[
|
|
1148
|
-
"
|
|
1149
|
-
"
|
|
1553
|
+
"render-ui",
|
|
1554
|
+
"main",
|
|
1150
1555
|
{
|
|
1151
|
-
"
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1556
|
+
"align": "center",
|
|
1557
|
+
"gap": "md",
|
|
1558
|
+
"type": "stack",
|
|
1559
|
+
"children": [
|
|
1560
|
+
{
|
|
1561
|
+
"type": "spinner"
|
|
1562
|
+
},
|
|
1563
|
+
{
|
|
1564
|
+
"variant": "caption",
|
|
1565
|
+
"content": "Updating menu item…",
|
|
1566
|
+
"color": "muted",
|
|
1567
|
+
"type": "typography"
|
|
1568
|
+
}
|
|
1569
|
+
],
|
|
1570
|
+
"direction": "vertical",
|
|
1571
|
+
"className": "py-12"
|
|
1155
1572
|
}
|
|
1156
1573
|
]
|
|
1157
1574
|
]
|
|
1158
1575
|
},
|
|
1159
1576
|
{
|
|
1160
|
-
"from": "
|
|
1577
|
+
"from": "viewing_single",
|
|
1161
1578
|
"to": "loading",
|
|
1162
|
-
"event": "
|
|
1579
|
+
"event": "TOGGLE_AVAILABLE",
|
|
1163
1580
|
"effects": [
|
|
1164
1581
|
[
|
|
1165
|
-
"
|
|
1582
|
+
"set",
|
|
1583
|
+
"@entity.id",
|
|
1584
|
+
"@payload.itemId"
|
|
1585
|
+
],
|
|
1586
|
+
[
|
|
1587
|
+
"set",
|
|
1588
|
+
"@entity.name",
|
|
1589
|
+
"@payload.row.name"
|
|
1590
|
+
],
|
|
1591
|
+
[
|
|
1592
|
+
"set",
|
|
1593
|
+
"@entity.description",
|
|
1594
|
+
"@payload.row.description"
|
|
1595
|
+
],
|
|
1596
|
+
[
|
|
1597
|
+
"set",
|
|
1598
|
+
"@entity.price",
|
|
1599
|
+
"@payload.row.price"
|
|
1600
|
+
],
|
|
1601
|
+
[
|
|
1602
|
+
"set",
|
|
1603
|
+
"@entity.currency",
|
|
1604
|
+
"@payload.row.currency"
|
|
1605
|
+
],
|
|
1606
|
+
[
|
|
1607
|
+
"set",
|
|
1608
|
+
"@entity.category",
|
|
1609
|
+
"@payload.row.category"
|
|
1610
|
+
],
|
|
1611
|
+
[
|
|
1612
|
+
"set",
|
|
1613
|
+
"@entity.imageUrl",
|
|
1614
|
+
"@payload.row.imageUrl"
|
|
1615
|
+
],
|
|
1616
|
+
[
|
|
1617
|
+
"set",
|
|
1618
|
+
"@entity.available",
|
|
1619
|
+
[
|
|
1620
|
+
"not",
|
|
1621
|
+
"@payload.row.available"
|
|
1622
|
+
]
|
|
1623
|
+
],
|
|
1624
|
+
[
|
|
1625
|
+
"set",
|
|
1626
|
+
"@entity.availableFrom",
|
|
1627
|
+
"@payload.row.availableFrom"
|
|
1628
|
+
],
|
|
1629
|
+
[
|
|
1630
|
+
"set",
|
|
1631
|
+
"@entity.availableUntil",
|
|
1632
|
+
"@payload.row.availableUntil"
|
|
1633
|
+
],
|
|
1634
|
+
[
|
|
1635
|
+
"set",
|
|
1636
|
+
"@entity.tags",
|
|
1637
|
+
"@payload.row.tags"
|
|
1638
|
+
],
|
|
1639
|
+
[
|
|
1640
|
+
"set",
|
|
1641
|
+
"@entity.modifierGroupIds",
|
|
1642
|
+
"@payload.row.modifierGroupIds"
|
|
1643
|
+
],
|
|
1644
|
+
[
|
|
1645
|
+
"set",
|
|
1646
|
+
"@entity.prepTimeMinutes",
|
|
1647
|
+
"@payload.row.prepTimeMinutes"
|
|
1648
|
+
],
|
|
1649
|
+
[
|
|
1650
|
+
"set",
|
|
1651
|
+
"@entity.order",
|
|
1652
|
+
"@payload.row.order"
|
|
1653
|
+
],
|
|
1654
|
+
[
|
|
1655
|
+
"persist",
|
|
1656
|
+
"update",
|
|
1166
1657
|
"MenuItem",
|
|
1658
|
+
"@entity",
|
|
1167
1659
|
{
|
|
1168
1660
|
"emit": {
|
|
1169
|
-
"success": "
|
|
1170
|
-
"failure": "
|
|
1661
|
+
"success": "MenuItemUpdated",
|
|
1662
|
+
"failure": "MenuItemWriteFailed"
|
|
1171
1663
|
}
|
|
1172
1664
|
}
|
|
1665
|
+
],
|
|
1666
|
+
[
|
|
1667
|
+
"render-ui",
|
|
1668
|
+
"main",
|
|
1669
|
+
{
|
|
1670
|
+
"className": "py-12",
|
|
1671
|
+
"direction": "vertical",
|
|
1672
|
+
"type": "stack",
|
|
1673
|
+
"gap": "md",
|
|
1674
|
+
"align": "center",
|
|
1675
|
+
"children": [
|
|
1676
|
+
{
|
|
1677
|
+
"type": "spinner"
|
|
1678
|
+
},
|
|
1679
|
+
{
|
|
1680
|
+
"type": "typography",
|
|
1681
|
+
"color": "muted",
|
|
1682
|
+
"variant": "caption",
|
|
1683
|
+
"content": "Toggling availability…"
|
|
1684
|
+
}
|
|
1685
|
+
]
|
|
1686
|
+
}
|
|
1173
1687
|
]
|
|
1174
1688
|
]
|
|
1175
1689
|
},
|
|
1176
1690
|
{
|
|
1177
|
-
"from": "
|
|
1691
|
+
"from": "viewing_single",
|
|
1178
1692
|
"to": "loading",
|
|
1179
|
-
"event": "
|
|
1693
|
+
"event": "DELETE",
|
|
1180
1694
|
"effects": [
|
|
1181
1695
|
[
|
|
1182
|
-
"
|
|
1696
|
+
"set",
|
|
1697
|
+
"@entity.id",
|
|
1698
|
+
"@payload.itemId"
|
|
1699
|
+
],
|
|
1700
|
+
[
|
|
1701
|
+
"set",
|
|
1702
|
+
"@entity.name",
|
|
1703
|
+
"@payload.row.name"
|
|
1704
|
+
],
|
|
1705
|
+
[
|
|
1706
|
+
"set",
|
|
1707
|
+
"@entity.description",
|
|
1708
|
+
"@payload.row.description"
|
|
1709
|
+
],
|
|
1710
|
+
[
|
|
1711
|
+
"set",
|
|
1712
|
+
"@entity.price",
|
|
1713
|
+
"@payload.row.price"
|
|
1714
|
+
],
|
|
1715
|
+
[
|
|
1716
|
+
"set",
|
|
1717
|
+
"@entity.currency",
|
|
1718
|
+
"@payload.row.currency"
|
|
1719
|
+
],
|
|
1720
|
+
[
|
|
1721
|
+
"set",
|
|
1722
|
+
"@entity.category",
|
|
1723
|
+
"@payload.row.category"
|
|
1724
|
+
],
|
|
1725
|
+
[
|
|
1726
|
+
"set",
|
|
1727
|
+
"@entity.imageUrl",
|
|
1728
|
+
"@payload.row.imageUrl"
|
|
1729
|
+
],
|
|
1730
|
+
[
|
|
1731
|
+
"set",
|
|
1732
|
+
"@entity.available",
|
|
1733
|
+
"@payload.row.available"
|
|
1734
|
+
],
|
|
1735
|
+
[
|
|
1736
|
+
"set",
|
|
1737
|
+
"@entity.availableFrom",
|
|
1738
|
+
"@payload.row.availableFrom"
|
|
1739
|
+
],
|
|
1740
|
+
[
|
|
1741
|
+
"set",
|
|
1742
|
+
"@entity.availableUntil",
|
|
1743
|
+
"@payload.row.availableUntil"
|
|
1744
|
+
],
|
|
1745
|
+
[
|
|
1746
|
+
"set",
|
|
1747
|
+
"@entity.tags",
|
|
1748
|
+
"@payload.row.tags"
|
|
1749
|
+
],
|
|
1750
|
+
[
|
|
1751
|
+
"set",
|
|
1752
|
+
"@entity.modifierGroupIds",
|
|
1753
|
+
"@payload.row.modifierGroupIds"
|
|
1754
|
+
],
|
|
1755
|
+
[
|
|
1756
|
+
"set",
|
|
1757
|
+
"@entity.prepTimeMinutes",
|
|
1758
|
+
"@payload.row.prepTimeMinutes"
|
|
1759
|
+
],
|
|
1760
|
+
[
|
|
1761
|
+
"set",
|
|
1762
|
+
"@entity.order",
|
|
1763
|
+
"@payload.row.order"
|
|
1764
|
+
],
|
|
1765
|
+
[
|
|
1766
|
+
"persist",
|
|
1767
|
+
"delete",
|
|
1183
1768
|
"MenuItem",
|
|
1769
|
+
"@entity",
|
|
1184
1770
|
{
|
|
1185
1771
|
"emit": {
|
|
1186
|
-
"success": "
|
|
1187
|
-
"failure": "
|
|
1772
|
+
"success": "MenuItemDeleted",
|
|
1773
|
+
"failure": "MenuItemWriteFailed"
|
|
1188
1774
|
}
|
|
1189
1775
|
}
|
|
1190
|
-
]
|
|
1191
|
-
]
|
|
1192
|
-
},
|
|
1193
|
-
{
|
|
1194
|
-
"from": "browsing",
|
|
1195
|
-
"to": "browsing",
|
|
1196
|
-
"event": "MenuItemWriteFailed",
|
|
1197
|
-
"effects": [
|
|
1776
|
+
],
|
|
1198
1777
|
[
|
|
1199
1778
|
"render-ui",
|
|
1200
1779
|
"main",
|
|
1201
1780
|
{
|
|
1202
|
-
"
|
|
1203
|
-
|
|
1204
|
-
|
|
1781
|
+
"children": [
|
|
1782
|
+
{
|
|
1783
|
+
"type": "spinner"
|
|
1784
|
+
},
|
|
1785
|
+
{
|
|
1786
|
+
"variant": "caption",
|
|
1787
|
+
"type": "typography",
|
|
1788
|
+
"color": "muted",
|
|
1789
|
+
"content": "Deleting menu item…"
|
|
1790
|
+
}
|
|
1791
|
+
],
|
|
1792
|
+
"type": "stack",
|
|
1793
|
+
"align": "center",
|
|
1794
|
+
"gap": "md",
|
|
1795
|
+
"direction": "vertical",
|
|
1796
|
+
"className": "py-12"
|
|
1205
1797
|
}
|
|
1206
1798
|
]
|
|
1207
1799
|
]
|
|
@@ -1225,8 +1817,8 @@
|
|
|
1225
1817
|
"render-ui",
|
|
1226
1818
|
"main",
|
|
1227
1819
|
{
|
|
1228
|
-
"
|
|
1229
|
-
"
|
|
1820
|
+
"size": "sm",
|
|
1821
|
+
"type": "spinner"
|
|
1230
1822
|
}
|
|
1231
1823
|
]
|
|
1232
1824
|
]
|