@almadar/std 14.5.0 → 14.5.1
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.
|
@@ -69,20 +69,22 @@
|
|
|
69
69
|
"ref": "AppShell.traits.AppLayout",
|
|
70
70
|
"name": "ProductAppLayout",
|
|
71
71
|
"config": {
|
|
72
|
+
"searchEvent": "PRODUCT_SEARCH",
|
|
73
|
+
"notificationClickEvent": "PRODUCT_NOTIFICATIONS_OPEN",
|
|
72
74
|
"navItems": [
|
|
73
75
|
{
|
|
74
|
-
"label": "Products",
|
|
75
76
|
"href": "/products",
|
|
76
|
-
"icon": "package"
|
|
77
|
+
"icon": "package",
|
|
78
|
+
"label": "Products"
|
|
77
79
|
},
|
|
78
80
|
{
|
|
79
|
-
"label": "Cart",
|
|
80
81
|
"href": "/cart",
|
|
82
|
+
"label": "Cart",
|
|
81
83
|
"icon": "shopping-cart"
|
|
82
84
|
},
|
|
83
85
|
{
|
|
84
|
-
"icon": "credit-card",
|
|
85
86
|
"href": "/checkout",
|
|
87
|
+
"icon": "credit-card",
|
|
86
88
|
"label": "Checkout"
|
|
87
89
|
},
|
|
88
90
|
{
|
|
@@ -91,22 +93,20 @@
|
|
|
91
93
|
"href": "/orders"
|
|
92
94
|
}
|
|
93
95
|
],
|
|
94
|
-
"notifications": [],
|
|
95
|
-
"appName": "EcommerceApp",
|
|
96
|
-
"searchEvent": "PRODUCT_SEARCH",
|
|
97
|
-
"contentTrait": "@trait.ProductCatalog",
|
|
98
96
|
"topBarActions": [
|
|
99
97
|
{
|
|
100
|
-
"
|
|
98
|
+
"event": "CART_OPEN",
|
|
101
99
|
"icon": "shopping-cart",
|
|
102
|
-
"
|
|
100
|
+
"label": "Cart"
|
|
103
101
|
}
|
|
104
102
|
],
|
|
105
|
-
"
|
|
103
|
+
"contentTrait": "@trait.ProductCatalog",
|
|
104
|
+
"appName": "EcommerceApp",
|
|
105
|
+
"notifications": []
|
|
106
106
|
},
|
|
107
107
|
"events": {
|
|
108
|
-
"
|
|
109
|
-
"
|
|
108
|
+
"NOTIFY_CLICK": "PRODUCT_NOTIFICATIONS_OPEN",
|
|
109
|
+
"SEARCH": "PRODUCT_SEARCH"
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
{
|
|
@@ -189,55 +189,55 @@
|
|
|
189
189
|
"render-ui",
|
|
190
190
|
"main",
|
|
191
191
|
{
|
|
192
|
-
"direction": "vertical",
|
|
193
|
-
"type": "stack",
|
|
194
192
|
"children": [
|
|
195
193
|
{
|
|
196
|
-
"align": "center",
|
|
197
|
-
"gap": "md",
|
|
198
194
|
"children": [
|
|
199
195
|
{
|
|
200
|
-
"
|
|
196
|
+
"direction": "horizontal",
|
|
201
197
|
"children": [
|
|
202
198
|
{
|
|
203
199
|
"name": "package",
|
|
204
200
|
"type": "icon"
|
|
205
201
|
},
|
|
206
202
|
{
|
|
207
|
-
"type": "typography",
|
|
208
203
|
"content": "Products",
|
|
204
|
+
"type": "typography",
|
|
209
205
|
"variant": "h2"
|
|
210
206
|
}
|
|
211
207
|
],
|
|
212
|
-
"type": "stack",
|
|
213
208
|
"gap": "sm",
|
|
214
|
-
"
|
|
209
|
+
"align": "center",
|
|
210
|
+
"type": "stack"
|
|
215
211
|
},
|
|
216
212
|
{
|
|
213
|
+
"gap": "sm",
|
|
217
214
|
"children": [
|
|
218
215
|
{
|
|
219
|
-
"icon": "plus",
|
|
220
216
|
"variant": "primary",
|
|
221
217
|
"action": "CREATE",
|
|
218
|
+
"icon": "plus",
|
|
222
219
|
"type": "button",
|
|
223
220
|
"label": "Create Product"
|
|
224
221
|
}
|
|
225
222
|
],
|
|
226
223
|
"type": "stack",
|
|
227
|
-
"gap": "sm",
|
|
228
224
|
"direction": "horizontal"
|
|
229
225
|
}
|
|
230
226
|
],
|
|
231
|
-
"justify": "between",
|
|
232
227
|
"type": "stack",
|
|
233
|
-
"direction": "horizontal"
|
|
228
|
+
"direction": "horizontal",
|
|
229
|
+
"align": "center",
|
|
230
|
+
"justify": "between",
|
|
231
|
+
"gap": "md"
|
|
234
232
|
},
|
|
235
233
|
{
|
|
236
234
|
"type": "divider"
|
|
237
235
|
},
|
|
238
236
|
"@trait.ProductBrowseList"
|
|
239
237
|
],
|
|
240
|
-
"gap": "lg"
|
|
238
|
+
"gap": "lg",
|
|
239
|
+
"direction": "vertical",
|
|
240
|
+
"type": "stack"
|
|
241
241
|
}
|
|
242
242
|
]
|
|
243
243
|
]
|
|
@@ -256,34 +256,34 @@
|
|
|
256
256
|
"render-ui",
|
|
257
257
|
"main",
|
|
258
258
|
{
|
|
259
|
+
"align": "center",
|
|
260
|
+
"type": "stack",
|
|
261
|
+
"direction": "vertical",
|
|
262
|
+
"gap": "md",
|
|
259
263
|
"children": [
|
|
260
264
|
{
|
|
261
|
-
"
|
|
262
|
-
"
|
|
265
|
+
"type": "icon",
|
|
266
|
+
"name": "bell"
|
|
263
267
|
},
|
|
264
268
|
{
|
|
265
|
-
"type": "typography",
|
|
266
269
|
"variant": "h3",
|
|
267
|
-
"content": "No notifications"
|
|
270
|
+
"content": "No notifications",
|
|
271
|
+
"type": "typography"
|
|
268
272
|
},
|
|
269
273
|
{
|
|
270
|
-
"type": "typography",
|
|
271
|
-
"content": "You're all caught up.",
|
|
272
274
|
"variant": "caption",
|
|
273
|
-
"color": "muted"
|
|
275
|
+
"color": "muted",
|
|
276
|
+
"type": "typography",
|
|
277
|
+
"content": "You're all caught up."
|
|
274
278
|
},
|
|
275
279
|
{
|
|
276
|
-
"action": "INIT",
|
|
277
280
|
"label": "Back to products",
|
|
278
281
|
"variant": "ghost",
|
|
282
|
+
"action": "INIT",
|
|
279
283
|
"type": "button"
|
|
280
284
|
}
|
|
281
285
|
],
|
|
282
|
-
"
|
|
283
|
-
"type": "stack",
|
|
284
|
-
"className": "py-8",
|
|
285
|
-
"gap": "md",
|
|
286
|
-
"direction": "vertical"
|
|
286
|
+
"className": "py-8"
|
|
287
287
|
}
|
|
288
288
|
]
|
|
289
289
|
]
|
|
@@ -297,17 +297,35 @@
|
|
|
297
297
|
"name": "ProductBrowseList",
|
|
298
298
|
"linkedEntity": "Product",
|
|
299
299
|
"config": {
|
|
300
|
+
"gap": "md",
|
|
301
|
+
"itemActions": [
|
|
302
|
+
{
|
|
303
|
+
"label": "View",
|
|
304
|
+
"event": "VIEW",
|
|
305
|
+
"variant": "ghost"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"event": "EDIT",
|
|
309
|
+
"variant": "ghost",
|
|
310
|
+
"label": "Edit"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"label": "Delete",
|
|
314
|
+
"variant": "danger",
|
|
315
|
+
"event": "DELETE"
|
|
316
|
+
}
|
|
317
|
+
],
|
|
300
318
|
"imageField": "imageUrl",
|
|
301
319
|
"cols": 3.0,
|
|
302
320
|
"fields": [
|
|
303
321
|
{
|
|
322
|
+
"variant": "h3",
|
|
304
323
|
"name": "name",
|
|
305
|
-
"icon": "package"
|
|
306
|
-
"variant": "h3"
|
|
324
|
+
"icon": "package"
|
|
307
325
|
},
|
|
308
326
|
{
|
|
309
|
-
"
|
|
310
|
-
"
|
|
327
|
+
"variant": "badge",
|
|
328
|
+
"name": "category"
|
|
311
329
|
},
|
|
312
330
|
{
|
|
313
331
|
"name": "price",
|
|
@@ -315,32 +333,14 @@
|
|
|
315
333
|
"format": "currency"
|
|
316
334
|
},
|
|
317
335
|
{
|
|
318
|
-
"
|
|
319
|
-
"
|
|
336
|
+
"name": "sku",
|
|
337
|
+
"variant": "caption"
|
|
320
338
|
},
|
|
321
339
|
{
|
|
322
|
-
"label": "In Stock",
|
|
323
340
|
"variant": "body",
|
|
341
|
+
"format": "boolean",
|
|
324
342
|
"name": "inStock",
|
|
325
|
-
"
|
|
326
|
-
}
|
|
327
|
-
],
|
|
328
|
-
"gap": "md",
|
|
329
|
-
"itemActions": [
|
|
330
|
-
{
|
|
331
|
-
"label": "View",
|
|
332
|
-
"event": "VIEW",
|
|
333
|
-
"variant": "ghost"
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
"variant": "ghost",
|
|
337
|
-
"event": "EDIT",
|
|
338
|
-
"label": "Edit"
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
"event": "DELETE",
|
|
342
|
-
"label": "Delete",
|
|
343
|
-
"variant": "danger"
|
|
343
|
+
"label": "In Stock"
|
|
344
344
|
}
|
|
345
345
|
]
|
|
346
346
|
},
|
|
@@ -545,8 +545,8 @@
|
|
|
545
545
|
"Product",
|
|
546
546
|
{
|
|
547
547
|
"emit": {
|
|
548
|
-
"
|
|
549
|
-
"
|
|
548
|
+
"failure": "ProductLoadFailed",
|
|
549
|
+
"success": "ProductLoaded"
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
]
|
|
@@ -571,33 +571,30 @@
|
|
|
571
571
|
"render-ui",
|
|
572
572
|
"modal",
|
|
573
573
|
{
|
|
574
|
-
"type": "stack",
|
|
575
574
|
"direction": "vertical",
|
|
576
575
|
"gap": "md",
|
|
577
576
|
"children": [
|
|
578
577
|
{
|
|
579
578
|
"gap": "sm",
|
|
580
|
-
"direction": "horizontal",
|
|
581
579
|
"type": "stack",
|
|
582
580
|
"children": [
|
|
583
581
|
{
|
|
584
|
-
"
|
|
585
|
-
"
|
|
582
|
+
"type": "icon",
|
|
583
|
+
"name": "plus-circle"
|
|
586
584
|
},
|
|
587
585
|
{
|
|
586
|
+
"variant": "h3",
|
|
588
587
|
"type": "typography",
|
|
589
|
-
"content": "Create Product"
|
|
590
|
-
"variant": "h3"
|
|
588
|
+
"content": "Create Product"
|
|
591
589
|
}
|
|
592
|
-
]
|
|
590
|
+
],
|
|
591
|
+
"direction": "horizontal"
|
|
593
592
|
},
|
|
594
593
|
{
|
|
595
594
|
"type": "divider"
|
|
596
595
|
},
|
|
597
596
|
{
|
|
598
597
|
"cancelEvent": "CLOSE",
|
|
599
|
-
"type": "form-section",
|
|
600
|
-
"mode": "create",
|
|
601
598
|
"fields": [
|
|
602
599
|
"name",
|
|
603
600
|
"description",
|
|
@@ -606,9 +603,12 @@
|
|
|
606
603
|
"sku",
|
|
607
604
|
"inStock"
|
|
608
605
|
],
|
|
606
|
+
"type": "form-section",
|
|
607
|
+
"mode": "create",
|
|
609
608
|
"submitEvent": "SAVE"
|
|
610
609
|
}
|
|
611
|
-
]
|
|
610
|
+
],
|
|
611
|
+
"type": "stack"
|
|
612
612
|
}
|
|
613
613
|
]
|
|
614
614
|
]
|
|
@@ -869,8 +869,8 @@
|
|
|
869
869
|
"Product",
|
|
870
870
|
{
|
|
871
871
|
"emit": {
|
|
872
|
-
"
|
|
873
|
-
"
|
|
872
|
+
"failure": "ProductLoadFailed",
|
|
873
|
+
"success": "ProductLoaded"
|
|
874
874
|
}
|
|
875
875
|
}
|
|
876
876
|
]
|
|
@@ -885,28 +885,26 @@
|
|
|
885
885
|
"fetch",
|
|
886
886
|
"Product",
|
|
887
887
|
{
|
|
888
|
-
"id": "@payload.id",
|
|
889
888
|
"emit": {
|
|
890
|
-
"
|
|
891
|
-
"
|
|
892
|
-
}
|
|
889
|
+
"failure": "ProductLoadFailed",
|
|
890
|
+
"success": "ProductLoaded"
|
|
891
|
+
},
|
|
892
|
+
"id": "@payload.id"
|
|
893
893
|
}
|
|
894
894
|
],
|
|
895
895
|
[
|
|
896
896
|
"render-ui",
|
|
897
897
|
"modal",
|
|
898
898
|
{
|
|
899
|
-
"direction": "vertical",
|
|
900
|
-
"gap": "md",
|
|
901
899
|
"children": [
|
|
902
900
|
{
|
|
903
|
-
"gap": "sm",
|
|
904
901
|
"direction": "horizontal",
|
|
902
|
+
"gap": "sm",
|
|
905
903
|
"type": "stack",
|
|
906
904
|
"children": [
|
|
907
905
|
{
|
|
908
|
-
"
|
|
909
|
-
"
|
|
906
|
+
"type": "icon",
|
|
907
|
+
"name": "edit"
|
|
910
908
|
},
|
|
911
909
|
{
|
|
912
910
|
"content": "Edit Product",
|
|
@@ -919,10 +917,9 @@
|
|
|
919
917
|
"type": "divider"
|
|
920
918
|
},
|
|
921
919
|
{
|
|
922
|
-
"cancelEvent": "CLOSE",
|
|
923
920
|
"entity": "@payload.row",
|
|
924
|
-
"mode": "edit",
|
|
925
921
|
"type": "form-section",
|
|
922
|
+
"mode": "edit",
|
|
926
923
|
"fields": [
|
|
927
924
|
"name",
|
|
928
925
|
"description",
|
|
@@ -931,10 +928,13 @@
|
|
|
931
928
|
"sku",
|
|
932
929
|
"inStock"
|
|
933
930
|
],
|
|
934
|
-
"submitEvent": "SAVE"
|
|
931
|
+
"submitEvent": "SAVE",
|
|
932
|
+
"cancelEvent": "CLOSE"
|
|
935
933
|
}
|
|
936
934
|
],
|
|
937
|
-
"type": "stack"
|
|
935
|
+
"type": "stack",
|
|
936
|
+
"direction": "vertical",
|
|
937
|
+
"gap": "md"
|
|
938
938
|
}
|
|
939
939
|
]
|
|
940
940
|
]
|
|
@@ -1164,8 +1164,8 @@
|
|
|
1164
1164
|
"Product",
|
|
1165
1165
|
{
|
|
1166
1166
|
"emit": {
|
|
1167
|
-
"
|
|
1168
|
-
"
|
|
1167
|
+
"success": "ProductLoaded",
|
|
1168
|
+
"failure": "ProductLoadFailed"
|
|
1169
1169
|
}
|
|
1170
1170
|
}
|
|
1171
1171
|
]
|
|
@@ -1180,61 +1180,62 @@
|
|
|
1180
1180
|
"fetch",
|
|
1181
1181
|
"Product",
|
|
1182
1182
|
{
|
|
1183
|
+
"id": "@payload.id",
|
|
1183
1184
|
"emit": {
|
|
1184
1185
|
"success": "ProductLoaded",
|
|
1185
1186
|
"failure": "ProductLoadFailed"
|
|
1186
|
-
}
|
|
1187
|
-
"id": "@payload.id"
|
|
1187
|
+
}
|
|
1188
1188
|
}
|
|
1189
1189
|
],
|
|
1190
1190
|
[
|
|
1191
1191
|
"render-ui",
|
|
1192
1192
|
"modal",
|
|
1193
1193
|
{
|
|
1194
|
+
"type": "stack",
|
|
1195
|
+
"direction": "vertical",
|
|
1194
1196
|
"children": [
|
|
1195
1197
|
{
|
|
1198
|
+
"gap": "sm",
|
|
1196
1199
|
"children": [
|
|
1197
1200
|
{
|
|
1198
1201
|
"type": "icon",
|
|
1199
1202
|
"name": "eye"
|
|
1200
1203
|
},
|
|
1201
1204
|
{
|
|
1202
|
-
"type": "typography",
|
|
1203
1205
|
"variant": "h3",
|
|
1204
|
-
"content": "@entity.name"
|
|
1206
|
+
"content": "@entity.name",
|
|
1207
|
+
"type": "typography"
|
|
1205
1208
|
}
|
|
1206
1209
|
],
|
|
1207
|
-
"
|
|
1210
|
+
"align": "center",
|
|
1208
1211
|
"direction": "horizontal",
|
|
1209
|
-
"type": "stack"
|
|
1210
|
-
"align": "center"
|
|
1212
|
+
"type": "stack"
|
|
1211
1213
|
},
|
|
1212
1214
|
{
|
|
1213
1215
|
"type": "divider"
|
|
1214
1216
|
},
|
|
1215
1217
|
{
|
|
1216
|
-
"gap": "md",
|
|
1217
1218
|
"direction": "horizontal",
|
|
1218
1219
|
"type": "stack",
|
|
1220
|
+
"gap": "md",
|
|
1219
1221
|
"children": [
|
|
1220
1222
|
{
|
|
1221
|
-
"
|
|
1223
|
+
"content": "Name",
|
|
1222
1224
|
"type": "typography",
|
|
1223
|
-
"
|
|
1225
|
+
"variant": "caption"
|
|
1224
1226
|
},
|
|
1225
1227
|
{
|
|
1226
|
-
"
|
|
1228
|
+
"type": "typography",
|
|
1227
1229
|
"variant": "body",
|
|
1228
|
-
"
|
|
1230
|
+
"content": "@entity.name"
|
|
1229
1231
|
}
|
|
1230
1232
|
]
|
|
1231
1233
|
},
|
|
1232
1234
|
{
|
|
1233
|
-
"direction": "horizontal",
|
|
1234
1235
|
"children": [
|
|
1235
1236
|
{
|
|
1236
|
-
"variant": "caption",
|
|
1237
1237
|
"content": "Description",
|
|
1238
|
+
"variant": "caption",
|
|
1238
1239
|
"type": "typography"
|
|
1239
1240
|
},
|
|
1240
1241
|
{
|
|
@@ -1244,104 +1245,103 @@
|
|
|
1244
1245
|
}
|
|
1245
1246
|
],
|
|
1246
1247
|
"type": "stack",
|
|
1248
|
+
"direction": "horizontal",
|
|
1247
1249
|
"gap": "md"
|
|
1248
1250
|
},
|
|
1249
1251
|
{
|
|
1250
1252
|
"gap": "md",
|
|
1251
1253
|
"type": "stack",
|
|
1254
|
+
"direction": "horizontal",
|
|
1252
1255
|
"children": [
|
|
1253
1256
|
{
|
|
1257
|
+
"content": "Price",
|
|
1254
1258
|
"type": "typography",
|
|
1255
|
-
"variant": "caption"
|
|
1256
|
-
"content": "Price"
|
|
1259
|
+
"variant": "caption"
|
|
1257
1260
|
},
|
|
1258
1261
|
{
|
|
1259
1262
|
"type": "typography",
|
|
1260
1263
|
"variant": "body",
|
|
1261
1264
|
"content": "@entity.price"
|
|
1262
1265
|
}
|
|
1263
|
-
]
|
|
1264
|
-
"direction": "horizontal"
|
|
1266
|
+
]
|
|
1265
1267
|
},
|
|
1266
1268
|
{
|
|
1267
|
-
"gap": "md",
|
|
1268
|
-
"type": "stack",
|
|
1269
|
-
"direction": "horizontal",
|
|
1270
1269
|
"children": [
|
|
1271
1270
|
{
|
|
1272
|
-
"variant": "caption",
|
|
1273
1271
|
"content": "Category",
|
|
1274
|
-
"type": "typography"
|
|
1272
|
+
"type": "typography",
|
|
1273
|
+
"variant": "caption"
|
|
1275
1274
|
},
|
|
1276
1275
|
{
|
|
1277
|
-
"
|
|
1276
|
+
"variant": "body",
|
|
1278
1277
|
"type": "typography",
|
|
1279
|
-
"
|
|
1278
|
+
"content": "@entity.category"
|
|
1280
1279
|
}
|
|
1281
|
-
]
|
|
1280
|
+
],
|
|
1281
|
+
"gap": "md",
|
|
1282
|
+
"type": "stack",
|
|
1283
|
+
"direction": "horizontal"
|
|
1282
1284
|
},
|
|
1283
1285
|
{
|
|
1284
1286
|
"gap": "md",
|
|
1285
|
-
"type": "stack",
|
|
1286
|
-
"direction": "horizontal",
|
|
1287
1287
|
"children": [
|
|
1288
1288
|
{
|
|
1289
1289
|
"type": "typography",
|
|
1290
|
-
"
|
|
1291
|
-
"
|
|
1290
|
+
"variant": "caption",
|
|
1291
|
+
"content": "Sku"
|
|
1292
1292
|
},
|
|
1293
1293
|
{
|
|
1294
|
-
"type": "typography",
|
|
1295
1294
|
"variant": "body",
|
|
1296
|
-
"content": "@entity.sku"
|
|
1295
|
+
"content": "@entity.sku",
|
|
1296
|
+
"type": "typography"
|
|
1297
1297
|
}
|
|
1298
|
-
]
|
|
1298
|
+
],
|
|
1299
|
+
"direction": "horizontal",
|
|
1300
|
+
"type": "stack"
|
|
1299
1301
|
},
|
|
1300
1302
|
{
|
|
1301
|
-
"type": "stack",
|
|
1302
|
-
"direction": "horizontal",
|
|
1303
|
-
"gap": "md",
|
|
1304
1303
|
"children": [
|
|
1305
1304
|
{
|
|
1305
|
+
"variant": "caption",
|
|
1306
1306
|
"content": "In Stock",
|
|
1307
|
-
"type": "typography"
|
|
1308
|
-
"variant": "caption"
|
|
1307
|
+
"type": "typography"
|
|
1309
1308
|
},
|
|
1310
1309
|
{
|
|
1311
|
-
"
|
|
1310
|
+
"variant": "body",
|
|
1312
1311
|
"type": "typography",
|
|
1313
|
-
"
|
|
1312
|
+
"content": "@entity.inStock"
|
|
1314
1313
|
}
|
|
1315
|
-
]
|
|
1314
|
+
],
|
|
1315
|
+
"type": "stack",
|
|
1316
|
+
"direction": "horizontal",
|
|
1317
|
+
"gap": "md"
|
|
1316
1318
|
},
|
|
1317
1319
|
{
|
|
1318
1320
|
"type": "divider"
|
|
1319
1321
|
},
|
|
1320
1322
|
{
|
|
1321
1323
|
"gap": "sm",
|
|
1324
|
+
"justify": "end",
|
|
1325
|
+
"direction": "horizontal",
|
|
1322
1326
|
"children": [
|
|
1323
1327
|
{
|
|
1328
|
+
"label": "Edit",
|
|
1324
1329
|
"action": "EDIT",
|
|
1325
|
-
"
|
|
1330
|
+
"icon": "edit",
|
|
1326
1331
|
"variant": "primary",
|
|
1327
|
-
"
|
|
1328
|
-
"icon": "edit"
|
|
1332
|
+
"type": "button"
|
|
1329
1333
|
},
|
|
1330
1334
|
{
|
|
1331
|
-
"variant": "ghost",
|
|
1332
|
-
"label": "Close",
|
|
1333
1335
|
"action": "CLOSE",
|
|
1334
|
-
"type": "button"
|
|
1336
|
+
"type": "button",
|
|
1337
|
+
"variant": "ghost",
|
|
1338
|
+
"label": "Close"
|
|
1335
1339
|
}
|
|
1336
1340
|
],
|
|
1337
|
-
"justify": "end",
|
|
1338
|
-
"direction": "horizontal",
|
|
1339
1341
|
"type": "stack"
|
|
1340
1342
|
}
|
|
1341
1343
|
],
|
|
1342
|
-
"gap": "md"
|
|
1343
|
-
"type": "stack",
|
|
1344
|
-
"direction": "vertical"
|
|
1344
|
+
"gap": "md"
|
|
1345
1345
|
}
|
|
1346
1346
|
]
|
|
1347
1347
|
]
|
|
@@ -1603,57 +1603,57 @@
|
|
|
1603
1603
|
"render-ui",
|
|
1604
1604
|
"modal",
|
|
1605
1605
|
{
|
|
1606
|
-
"direction": "vertical",
|
|
1607
|
-
"gap": "md",
|
|
1608
1606
|
"children": [
|
|
1609
1607
|
{
|
|
1610
1608
|
"type": "stack",
|
|
1609
|
+
"direction": "horizontal",
|
|
1611
1610
|
"align": "center",
|
|
1611
|
+
"gap": "sm",
|
|
1612
1612
|
"children": [
|
|
1613
1613
|
{
|
|
1614
|
-
"
|
|
1615
|
-
"
|
|
1614
|
+
"name": "alert-triangle",
|
|
1615
|
+
"type": "icon"
|
|
1616
1616
|
},
|
|
1617
1617
|
{
|
|
1618
1618
|
"type": "typography",
|
|
1619
|
-
"
|
|
1620
|
-
"
|
|
1619
|
+
"content": "Delete Product",
|
|
1620
|
+
"variant": "h3"
|
|
1621
1621
|
}
|
|
1622
|
-
]
|
|
1623
|
-
"direction": "horizontal",
|
|
1624
|
-
"gap": "sm"
|
|
1622
|
+
]
|
|
1625
1623
|
},
|
|
1626
1624
|
{
|
|
1627
1625
|
"type": "divider"
|
|
1628
1626
|
},
|
|
1629
1627
|
{
|
|
1628
|
+
"type": "alert",
|
|
1630
1629
|
"variant": "error",
|
|
1631
|
-
"message": "This action cannot be undone."
|
|
1632
|
-
"type": "alert"
|
|
1630
|
+
"message": "This action cannot be undone."
|
|
1633
1631
|
},
|
|
1634
1632
|
{
|
|
1635
|
-
"direction": "horizontal",
|
|
1636
1633
|
"children": [
|
|
1637
1634
|
{
|
|
1638
1635
|
"type": "button",
|
|
1639
|
-
"action": "CANCEL",
|
|
1640
1636
|
"label": "Cancel",
|
|
1637
|
+
"action": "CANCEL",
|
|
1641
1638
|
"variant": "ghost"
|
|
1642
1639
|
},
|
|
1643
1640
|
{
|
|
1644
1641
|
"type": "button",
|
|
1642
|
+
"label": "Delete",
|
|
1645
1643
|
"icon": "check",
|
|
1646
1644
|
"variant": "danger",
|
|
1647
|
-
"label": "Delete",
|
|
1648
1645
|
"action": "CONFIRM_DELETE"
|
|
1649
1646
|
}
|
|
1650
1647
|
],
|
|
1651
|
-
"justify": "end",
|
|
1652
1648
|
"type": "stack",
|
|
1649
|
+
"justify": "end",
|
|
1650
|
+
"direction": "horizontal",
|
|
1653
1651
|
"gap": "sm"
|
|
1654
1652
|
}
|
|
1655
1653
|
],
|
|
1656
|
-
"type": "stack"
|
|
1654
|
+
"type": "stack",
|
|
1655
|
+
"direction": "vertical",
|
|
1656
|
+
"gap": "md"
|
|
1657
1657
|
}
|
|
1658
1658
|
]
|
|
1659
1659
|
]
|
|
@@ -1670,8 +1670,8 @@
|
|
|
1670
1670
|
"@entity.pendingId",
|
|
1671
1671
|
{
|
|
1672
1672
|
"emit": {
|
|
1673
|
-
"
|
|
1674
|
-
"
|
|
1673
|
+
"failure": "ProductDeleteFailed",
|
|
1674
|
+
"success": "ProductDeleted"
|
|
1675
1675
|
}
|
|
1676
1676
|
}
|
|
1677
1677
|
],
|
|
@@ -1993,8 +1993,8 @@
|
|
|
1993
1993
|
"CartItem",
|
|
1994
1994
|
{
|
|
1995
1995
|
"emit": {
|
|
1996
|
-
"
|
|
1997
|
-
"
|
|
1996
|
+
"failure": "CartItemLoadFailed",
|
|
1997
|
+
"success": "CartItemLoaded"
|
|
1998
1998
|
}
|
|
1999
1999
|
}
|
|
2000
2000
|
],
|
|
@@ -2002,20 +2002,20 @@
|
|
|
2002
2002
|
"render-ui",
|
|
2003
2003
|
"main",
|
|
2004
2004
|
{
|
|
2005
|
+
"type": "stack",
|
|
2005
2006
|
"className": "py-12",
|
|
2006
2007
|
"children": [
|
|
2007
2008
|
{
|
|
2008
2009
|
"type": "spinner"
|
|
2009
2010
|
},
|
|
2010
2011
|
{
|
|
2011
|
-
"color": "muted",
|
|
2012
2012
|
"variant": "caption",
|
|
2013
|
+
"color": "muted",
|
|
2013
2014
|
"type": "typography",
|
|
2014
2015
|
"content": "Loading…"
|
|
2015
2016
|
}
|
|
2016
2017
|
],
|
|
2017
2018
|
"direction": "vertical",
|
|
2018
|
-
"type": "stack",
|
|
2019
2019
|
"align": "center",
|
|
2020
2020
|
"gap": "md"
|
|
2021
2021
|
}
|
|
@@ -2032,36 +2032,39 @@
|
|
|
2032
2032
|
"main",
|
|
2033
2033
|
{
|
|
2034
2034
|
"appName": "EcommerceApp",
|
|
2035
|
+
"type": "dashboard-layout",
|
|
2035
2036
|
"navItems": [
|
|
2036
2037
|
{
|
|
2037
|
-
"label": "Products",
|
|
2038
2038
|
"href": "/products",
|
|
2039
|
+
"label": "Products",
|
|
2039
2040
|
"icon": "package"
|
|
2040
2041
|
},
|
|
2041
2042
|
{
|
|
2042
2043
|
"label": "Cart",
|
|
2043
|
-
"
|
|
2044
|
-
"
|
|
2044
|
+
"icon": "shopping-cart",
|
|
2045
|
+
"href": "/cart"
|
|
2045
2046
|
},
|
|
2046
2047
|
{
|
|
2048
|
+
"href": "/checkout",
|
|
2047
2049
|
"icon": "credit-card",
|
|
2048
|
-
"label": "Checkout"
|
|
2049
|
-
"href": "/checkout"
|
|
2050
|
+
"label": "Checkout"
|
|
2050
2051
|
},
|
|
2051
2052
|
{
|
|
2052
|
-
"icon": "clipboard-list",
|
|
2053
2053
|
"label": "Orders",
|
|
2054
|
-
"href": "/orders"
|
|
2054
|
+
"href": "/orders",
|
|
2055
|
+
"icon": "clipboard-list"
|
|
2055
2056
|
}
|
|
2056
2057
|
],
|
|
2057
2058
|
"children": [
|
|
2058
2059
|
{
|
|
2060
|
+
"type": "stack",
|
|
2059
2061
|
"children": [
|
|
2060
2062
|
{
|
|
2063
|
+
"direction": "horizontal",
|
|
2061
2064
|
"children": [
|
|
2062
2065
|
{
|
|
2063
|
-
"gap": "md",
|
|
2064
2066
|
"direction": "horizontal",
|
|
2067
|
+
"gap": "md",
|
|
2065
2068
|
"type": "stack",
|
|
2066
2069
|
"children": [
|
|
2067
2070
|
{
|
|
@@ -2069,41 +2072,41 @@
|
|
|
2069
2072
|
"name": "shopping-cart"
|
|
2070
2073
|
},
|
|
2071
2074
|
{
|
|
2075
|
+
"variant": "h2",
|
|
2072
2076
|
"type": "typography",
|
|
2073
|
-
"content": "Shopping Cart"
|
|
2074
|
-
"variant": "h2"
|
|
2077
|
+
"content": "Shopping Cart"
|
|
2075
2078
|
}
|
|
2076
2079
|
]
|
|
2077
2080
|
},
|
|
2078
2081
|
{
|
|
2082
|
+
"action": "ADD_ITEM",
|
|
2083
|
+
"type": "button",
|
|
2079
2084
|
"icon": "plus",
|
|
2080
|
-
"variant": "primary",
|
|
2081
2085
|
"label": "Add Item",
|
|
2082
|
-
"
|
|
2083
|
-
"action": "ADD_ITEM"
|
|
2086
|
+
"variant": "primary"
|
|
2084
2087
|
}
|
|
2085
2088
|
],
|
|
2086
|
-
"justify": "between",
|
|
2087
2089
|
"gap": "md",
|
|
2088
|
-
"
|
|
2089
|
-
"
|
|
2090
|
+
"type": "stack",
|
|
2091
|
+
"justify": "between"
|
|
2090
2092
|
},
|
|
2091
2093
|
{
|
|
2092
2094
|
"type": "divider"
|
|
2093
2095
|
},
|
|
2094
2096
|
{
|
|
2097
|
+
"cols": 3.0,
|
|
2095
2098
|
"children": [
|
|
2096
2099
|
{
|
|
2097
2100
|
"label": "Items",
|
|
2098
|
-
"type": "stat-display",
|
|
2099
2101
|
"icon": "package",
|
|
2102
|
+
"type": "stat-display",
|
|
2100
2103
|
"value": "@payload.data.length"
|
|
2101
2104
|
},
|
|
2102
2105
|
{
|
|
2103
|
-
"value": "@payload.data.length",
|
|
2104
2106
|
"label": "Subtotal",
|
|
2107
|
+
"type": "stat-display",
|
|
2105
2108
|
"icon": "dollar-sign",
|
|
2106
|
-
"
|
|
2109
|
+
"value": "@payload.data.length"
|
|
2107
2110
|
},
|
|
2108
2111
|
{
|
|
2109
2112
|
"value": "@payload.data.length",
|
|
@@ -2112,33 +2115,23 @@
|
|
|
2112
2115
|
"label": "Total"
|
|
2113
2116
|
}
|
|
2114
2117
|
],
|
|
2115
|
-
"cols": 3.0,
|
|
2116
2118
|
"type": "simple-grid"
|
|
2117
2119
|
},
|
|
2118
2120
|
{
|
|
2119
2121
|
"type": "divider"
|
|
2120
2122
|
},
|
|
2121
2123
|
{
|
|
2122
|
-
"entity": "@payload.data",
|
|
2123
|
-
"itemActions": [
|
|
2124
|
-
{
|
|
2125
|
-
"label": "Remove",
|
|
2126
|
-
"event": "REQUEST_REMOVE",
|
|
2127
|
-
"variant": "danger"
|
|
2128
|
-
}
|
|
2129
|
-
],
|
|
2130
|
-
"type": "data-grid",
|
|
2131
2124
|
"fields": [
|
|
2132
2125
|
{
|
|
2133
|
-
"label": "Product Name",
|
|
2134
2126
|
"icon": "shopping-cart",
|
|
2127
|
+
"variant": "h4",
|
|
2135
2128
|
"name": "productName",
|
|
2136
|
-
"
|
|
2129
|
+
"label": "Product Name"
|
|
2137
2130
|
},
|
|
2138
2131
|
{
|
|
2132
|
+
"label": "Quantity",
|
|
2139
2133
|
"variant": "caption",
|
|
2140
2134
|
"format": "currency",
|
|
2141
|
-
"label": "Quantity",
|
|
2142
2135
|
"name": "quantity"
|
|
2143
2136
|
},
|
|
2144
2137
|
{
|
|
@@ -2146,22 +2139,29 @@
|
|
|
2146
2139
|
"label": "Unit Price",
|
|
2147
2140
|
"variant": "badge"
|
|
2148
2141
|
}
|
|
2149
|
-
]
|
|
2142
|
+
],
|
|
2143
|
+
"itemActions": [
|
|
2144
|
+
{
|
|
2145
|
+
"variant": "danger",
|
|
2146
|
+
"event": "REQUEST_REMOVE",
|
|
2147
|
+
"label": "Remove"
|
|
2148
|
+
}
|
|
2149
|
+
],
|
|
2150
|
+
"entity": "@payload.data",
|
|
2151
|
+
"type": "data-grid"
|
|
2150
2152
|
},
|
|
2151
2153
|
{
|
|
2152
2154
|
"type": "button",
|
|
2153
|
-
"icon": "arrow-right",
|
|
2154
2155
|
"label": "Proceed to Checkout",
|
|
2155
2156
|
"variant": "primary",
|
|
2157
|
+
"icon": "arrow-right",
|
|
2156
2158
|
"action": "PROCEED_CHECKOUT"
|
|
2157
2159
|
}
|
|
2158
2160
|
],
|
|
2159
|
-
"direction": "vertical",
|
|
2160
2161
|
"gap": "lg",
|
|
2161
|
-
"
|
|
2162
|
+
"direction": "vertical"
|
|
2162
2163
|
}
|
|
2163
|
-
]
|
|
2164
|
-
"type": "dashboard-layout"
|
|
2164
|
+
]
|
|
2165
2165
|
}
|
|
2166
2166
|
]
|
|
2167
2167
|
]
|
|
@@ -2177,9 +2177,9 @@
|
|
|
2177
2177
|
{
|
|
2178
2178
|
"children": [
|
|
2179
2179
|
{
|
|
2180
|
-
"
|
|
2180
|
+
"type": "icon",
|
|
2181
2181
|
"color": "destructive",
|
|
2182
|
-
"
|
|
2182
|
+
"name": "alert-triangle"
|
|
2183
2183
|
},
|
|
2184
2184
|
{
|
|
2185
2185
|
"type": "typography",
|
|
@@ -2187,24 +2187,24 @@
|
|
|
2187
2187
|
"variant": "h3"
|
|
2188
2188
|
},
|
|
2189
2189
|
{
|
|
2190
|
-
"content": "@payload.error",
|
|
2191
|
-
"variant": "body",
|
|
2192
2190
|
"type": "typography",
|
|
2193
|
-
"color": "muted"
|
|
2191
|
+
"color": "muted",
|
|
2192
|
+
"variant": "body",
|
|
2193
|
+
"content": "@payload.error"
|
|
2194
2194
|
},
|
|
2195
2195
|
{
|
|
2196
|
+
"label": "Retry",
|
|
2196
2197
|
"type": "button",
|
|
2197
|
-
"icon": "rotate-ccw",
|
|
2198
|
-
"action": "INIT",
|
|
2199
2198
|
"variant": "primary",
|
|
2200
|
-
"
|
|
2199
|
+
"action": "INIT",
|
|
2200
|
+
"icon": "rotate-ccw"
|
|
2201
2201
|
}
|
|
2202
2202
|
],
|
|
2203
|
-
"
|
|
2203
|
+
"type": "stack",
|
|
2204
2204
|
"direction": "vertical",
|
|
2205
2205
|
"gap": "md",
|
|
2206
|
-
"
|
|
2207
|
-
"
|
|
2206
|
+
"align": "center",
|
|
2207
|
+
"className": "py-12"
|
|
2208
2208
|
}
|
|
2209
2209
|
]
|
|
2210
2210
|
]
|
|
@@ -2219,8 +2219,8 @@
|
|
|
2219
2219
|
"CartItem",
|
|
2220
2220
|
{
|
|
2221
2221
|
"emit": {
|
|
2222
|
-
"
|
|
2223
|
-
"
|
|
2222
|
+
"success": "CartItemLoaded",
|
|
2223
|
+
"failure": "CartItemLoadFailed"
|
|
2224
2224
|
}
|
|
2225
2225
|
}
|
|
2226
2226
|
],
|
|
@@ -2228,22 +2228,22 @@
|
|
|
2228
2228
|
"render-ui",
|
|
2229
2229
|
"main",
|
|
2230
2230
|
{
|
|
2231
|
-
"type": "stack",
|
|
2232
|
-
"gap": "md",
|
|
2233
2231
|
"align": "center",
|
|
2234
|
-
"className": "py-12",
|
|
2235
2232
|
"children": [
|
|
2236
2233
|
{
|
|
2237
2234
|
"type": "spinner"
|
|
2238
2235
|
},
|
|
2239
2236
|
{
|
|
2240
2237
|
"content": "Preparing checkout…",
|
|
2241
|
-
"color": "muted",
|
|
2242
2238
|
"type": "typography",
|
|
2243
|
-
"variant": "caption"
|
|
2239
|
+
"variant": "caption",
|
|
2240
|
+
"color": "muted"
|
|
2244
2241
|
}
|
|
2245
2242
|
],
|
|
2246
|
-
"direction": "vertical"
|
|
2243
|
+
"direction": "vertical",
|
|
2244
|
+
"gap": "md",
|
|
2245
|
+
"type": "stack",
|
|
2246
|
+
"className": "py-12"
|
|
2247
2247
|
}
|
|
2248
2248
|
]
|
|
2249
2249
|
]
|
|
@@ -2257,109 +2257,109 @@
|
|
|
2257
2257
|
"render-ui",
|
|
2258
2258
|
"main",
|
|
2259
2259
|
{
|
|
2260
|
-
"
|
|
2261
|
-
{
|
|
2262
|
-
"label": "Products",
|
|
2263
|
-
"href": "/products",
|
|
2264
|
-
"icon": "package"
|
|
2265
|
-
},
|
|
2266
|
-
{
|
|
2267
|
-
"href": "/cart",
|
|
2268
|
-
"icon": "shopping-cart",
|
|
2269
|
-
"label": "Cart"
|
|
2270
|
-
},
|
|
2271
|
-
{
|
|
2272
|
-
"label": "Checkout",
|
|
2273
|
-
"href": "/checkout",
|
|
2274
|
-
"icon": "credit-card"
|
|
2275
|
-
},
|
|
2276
|
-
{
|
|
2277
|
-
"href": "/orders",
|
|
2278
|
-
"label": "Orders",
|
|
2279
|
-
"icon": "clipboard-list"
|
|
2280
|
-
}
|
|
2281
|
-
],
|
|
2260
|
+
"type": "dashboard-layout",
|
|
2282
2261
|
"children": [
|
|
2283
2262
|
{
|
|
2284
|
-
"type": "stack",
|
|
2285
|
-
"direction": "vertical",
|
|
2286
2263
|
"children": [
|
|
2287
2264
|
{
|
|
2288
|
-
"gap": "sm",
|
|
2289
2265
|
"direction": "horizontal",
|
|
2290
|
-
"
|
|
2266
|
+
"gap": "sm",
|
|
2291
2267
|
"children": [
|
|
2292
2268
|
{
|
|
2293
|
-
"
|
|
2294
|
-
"
|
|
2269
|
+
"type": "icon",
|
|
2270
|
+
"name": "clipboard"
|
|
2295
2271
|
},
|
|
2296
2272
|
{
|
|
2297
|
-
"type": "typography",
|
|
2298
2273
|
"content": "Checkout",
|
|
2299
|
-
"variant": "h2"
|
|
2274
|
+
"variant": "h2",
|
|
2275
|
+
"type": "typography"
|
|
2300
2276
|
}
|
|
2301
|
-
]
|
|
2277
|
+
],
|
|
2278
|
+
"type": "stack"
|
|
2302
2279
|
},
|
|
2303
2280
|
{
|
|
2304
2281
|
"type": "divider"
|
|
2305
2282
|
},
|
|
2306
2283
|
{
|
|
2307
|
-
"type": "data-grid",
|
|
2308
|
-
"itemActions": [
|
|
2309
|
-
{
|
|
2310
|
-
"variant": "danger",
|
|
2311
|
-
"label": "Remove",
|
|
2312
|
-
"event": "REQUEST_REMOVE"
|
|
2313
|
-
}
|
|
2314
|
-
],
|
|
2315
|
-
"entity": "@payload.data",
|
|
2316
2284
|
"fields": [
|
|
2317
2285
|
{
|
|
2318
2286
|
"name": "productName",
|
|
2319
|
-
"label": "Product Name",
|
|
2320
2287
|
"variant": "h4",
|
|
2321
|
-
"icon": "shopping-cart"
|
|
2288
|
+
"icon": "shopping-cart",
|
|
2289
|
+
"label": "Product Name"
|
|
2322
2290
|
},
|
|
2323
2291
|
{
|
|
2324
|
-
"
|
|
2325
|
-
"name": "quantity",
|
|
2292
|
+
"format": "currency",
|
|
2326
2293
|
"variant": "caption",
|
|
2327
|
-
"
|
|
2294
|
+
"name": "quantity",
|
|
2295
|
+
"label": "Quantity"
|
|
2328
2296
|
},
|
|
2329
2297
|
{
|
|
2298
|
+
"variant": "badge",
|
|
2330
2299
|
"name": "unitPrice",
|
|
2331
|
-
"label": "Unit Price"
|
|
2332
|
-
|
|
2300
|
+
"label": "Unit Price"
|
|
2301
|
+
}
|
|
2302
|
+
],
|
|
2303
|
+
"entity": "@payload.data",
|
|
2304
|
+
"type": "data-grid",
|
|
2305
|
+
"itemActions": [
|
|
2306
|
+
{
|
|
2307
|
+
"event": "REQUEST_REMOVE",
|
|
2308
|
+
"variant": "danger",
|
|
2309
|
+
"label": "Remove"
|
|
2333
2310
|
}
|
|
2334
2311
|
]
|
|
2335
2312
|
},
|
|
2336
2313
|
{
|
|
2337
|
-
"
|
|
2338
|
-
"gap": "sm",
|
|
2339
|
-
"justify": "end",
|
|
2314
|
+
"direction": "horizontal",
|
|
2340
2315
|
"children": [
|
|
2341
2316
|
{
|
|
2342
|
-
"action": "BACK_TO_CART",
|
|
2343
|
-
"label": "Back to Cart",
|
|
2344
2317
|
"type": "button",
|
|
2345
2318
|
"variant": "ghost",
|
|
2346
|
-
"icon": "arrow-left"
|
|
2319
|
+
"icon": "arrow-left",
|
|
2320
|
+
"action": "BACK_TO_CART",
|
|
2321
|
+
"label": "Back to Cart"
|
|
2347
2322
|
},
|
|
2348
2323
|
{
|
|
2349
|
-
"type": "button",
|
|
2350
2324
|
"label": "Confirm Order",
|
|
2351
|
-
"action": "CONFIRM_ORDER",
|
|
2352
2325
|
"variant": "primary",
|
|
2353
|
-
"icon": "check"
|
|
2326
|
+
"icon": "check",
|
|
2327
|
+
"type": "button",
|
|
2328
|
+
"action": "CONFIRM_ORDER"
|
|
2354
2329
|
}
|
|
2355
2330
|
],
|
|
2356
|
-
"
|
|
2331
|
+
"gap": "sm",
|
|
2332
|
+
"type": "stack",
|
|
2333
|
+
"justify": "end"
|
|
2357
2334
|
}
|
|
2358
2335
|
],
|
|
2359
|
-
"
|
|
2336
|
+
"type": "stack",
|
|
2337
|
+
"gap": "lg",
|
|
2338
|
+
"direction": "vertical"
|
|
2339
|
+
}
|
|
2340
|
+
],
|
|
2341
|
+
"navItems": [
|
|
2342
|
+
{
|
|
2343
|
+
"label": "Products",
|
|
2344
|
+
"href": "/products",
|
|
2345
|
+
"icon": "package"
|
|
2346
|
+
},
|
|
2347
|
+
{
|
|
2348
|
+
"label": "Cart",
|
|
2349
|
+
"href": "/cart",
|
|
2350
|
+
"icon": "shopping-cart"
|
|
2351
|
+
},
|
|
2352
|
+
{
|
|
2353
|
+
"icon": "credit-card",
|
|
2354
|
+
"label": "Checkout",
|
|
2355
|
+
"href": "/checkout"
|
|
2356
|
+
},
|
|
2357
|
+
{
|
|
2358
|
+
"label": "Orders",
|
|
2359
|
+
"href": "/orders",
|
|
2360
|
+
"icon": "clipboard-list"
|
|
2360
2361
|
}
|
|
2361
2362
|
],
|
|
2362
|
-
"type": "dashboard-layout",
|
|
2363
2363
|
"appName": "EcommerceApp"
|
|
2364
2364
|
}
|
|
2365
2365
|
]
|
|
@@ -2404,23 +2404,23 @@
|
|
|
2404
2404
|
"appName": "EcommerceApp",
|
|
2405
2405
|
"navItems": [
|
|
2406
2406
|
{
|
|
2407
|
-
"href": "/products",
|
|
2408
2407
|
"label": "Products",
|
|
2409
|
-
"icon": "package"
|
|
2408
|
+
"icon": "package",
|
|
2409
|
+
"href": "/products"
|
|
2410
2410
|
},
|
|
2411
2411
|
{
|
|
2412
|
-
"
|
|
2412
|
+
"label": "Cart",
|
|
2413
2413
|
"icon": "shopping-cart",
|
|
2414
|
-
"
|
|
2414
|
+
"href": "/cart"
|
|
2415
2415
|
},
|
|
2416
2416
|
{
|
|
2417
|
-
"icon": "credit-card",
|
|
2418
2417
|
"href": "/checkout",
|
|
2418
|
+
"icon": "credit-card",
|
|
2419
2419
|
"label": "Checkout"
|
|
2420
2420
|
},
|
|
2421
2421
|
{
|
|
2422
|
-
"href": "/orders",
|
|
2423
2422
|
"label": "Orders",
|
|
2423
|
+
"href": "/orders",
|
|
2424
2424
|
"icon": "clipboard-list"
|
|
2425
2425
|
}
|
|
2426
2426
|
],
|
|
@@ -2434,24 +2434,24 @@
|
|
|
2434
2434
|
"name": "check-circle"
|
|
2435
2435
|
},
|
|
2436
2436
|
{
|
|
2437
|
-
"variant": "h2",
|
|
2438
2437
|
"type": "typography",
|
|
2438
|
+
"variant": "h2",
|
|
2439
2439
|
"content": "Order Confirmed"
|
|
2440
2440
|
},
|
|
2441
2441
|
{
|
|
2442
|
-
"
|
|
2442
|
+
"variant": "body",
|
|
2443
2443
|
"content": "Your order has been placed successfully.",
|
|
2444
|
-
"
|
|
2444
|
+
"type": "typography"
|
|
2445
2445
|
},
|
|
2446
2446
|
{
|
|
2447
|
-
"label": "Continue Shopping",
|
|
2448
2447
|
"type": "button",
|
|
2449
2448
|
"variant": "primary",
|
|
2450
|
-
"action": "INIT"
|
|
2449
|
+
"action": "INIT",
|
|
2450
|
+
"label": "Continue Shopping"
|
|
2451
2451
|
}
|
|
2452
2452
|
],
|
|
2453
|
-
"
|
|
2454
|
-
"
|
|
2453
|
+
"direction": "vertical",
|
|
2454
|
+
"align": "center"
|
|
2455
2455
|
}
|
|
2456
2456
|
],
|
|
2457
2457
|
"type": "dashboard-layout"
|
|
@@ -2639,8 +2639,8 @@
|
|
|
2639
2639
|
"CartItem",
|
|
2640
2640
|
{
|
|
2641
2641
|
"emit": {
|
|
2642
|
-
"
|
|
2643
|
-
"
|
|
2642
|
+
"failure": "CartItemLoadFailed",
|
|
2643
|
+
"success": "CartItemLoaded"
|
|
2644
2644
|
}
|
|
2645
2645
|
}
|
|
2646
2646
|
],
|
|
@@ -2648,9 +2648,9 @@
|
|
|
2648
2648
|
"render-ui",
|
|
2649
2649
|
"modal",
|
|
2650
2650
|
{
|
|
2651
|
-
"type": "stack",
|
|
2652
2651
|
"gap": "md",
|
|
2653
2652
|
"direction": "vertical",
|
|
2653
|
+
"type": "stack",
|
|
2654
2654
|
"children": [
|
|
2655
2655
|
{
|
|
2656
2656
|
"direction": "horizontal",
|
|
@@ -2658,13 +2658,13 @@
|
|
|
2658
2658
|
"gap": "sm",
|
|
2659
2659
|
"children": [
|
|
2660
2660
|
{
|
|
2661
|
-
"
|
|
2662
|
-
"
|
|
2661
|
+
"type": "icon",
|
|
2662
|
+
"name": "plus-circle"
|
|
2663
2663
|
},
|
|
2664
2664
|
{
|
|
2665
2665
|
"content": "Add Item",
|
|
2666
|
-
"
|
|
2667
|
-
"
|
|
2666
|
+
"variant": "h3",
|
|
2667
|
+
"type": "typography"
|
|
2668
2668
|
}
|
|
2669
2669
|
]
|
|
2670
2670
|
},
|
|
@@ -2672,16 +2672,16 @@
|
|
|
2672
2672
|
"type": "divider"
|
|
2673
2673
|
},
|
|
2674
2674
|
{
|
|
2675
|
-
"submitEvent": "SAVE",
|
|
2676
|
-
"cancelEvent": "CLOSE",
|
|
2677
|
-
"type": "form-section",
|
|
2678
2675
|
"fields": [
|
|
2679
2676
|
"productName",
|
|
2680
2677
|
"quantity",
|
|
2681
2678
|
"unitPrice",
|
|
2682
2679
|
"totalPrice"
|
|
2683
2680
|
],
|
|
2684
|
-
"mode": "create"
|
|
2681
|
+
"mode": "create",
|
|
2682
|
+
"type": "form-section",
|
|
2683
|
+
"cancelEvent": "CLOSE",
|
|
2684
|
+
"submitEvent": "SAVE"
|
|
2685
2685
|
}
|
|
2686
2686
|
]
|
|
2687
2687
|
}
|
|
@@ -2910,8 +2910,8 @@
|
|
|
2910
2910
|
"CartItem",
|
|
2911
2911
|
{
|
|
2912
2912
|
"emit": {
|
|
2913
|
-
"
|
|
2914
|
-
"
|
|
2913
|
+
"failure": "CartItemLoadFailed",
|
|
2914
|
+
"success": "CartItemLoaded"
|
|
2915
2915
|
}
|
|
2916
2916
|
}
|
|
2917
2917
|
]
|
|
@@ -2932,8 +2932,8 @@
|
|
|
2932
2932
|
"CartItem",
|
|
2933
2933
|
{
|
|
2934
2934
|
"emit": {
|
|
2935
|
-
"
|
|
2936
|
-
"
|
|
2935
|
+
"failure": "CartItemLoadFailed",
|
|
2936
|
+
"success": "CartItemLoaded"
|
|
2937
2937
|
},
|
|
2938
2938
|
"id": "@payload.id"
|
|
2939
2939
|
}
|
|
@@ -2942,10 +2942,11 @@
|
|
|
2942
2942
|
"render-ui",
|
|
2943
2943
|
"modal",
|
|
2944
2944
|
{
|
|
2945
|
+
"type": "stack",
|
|
2946
|
+
"direction": "vertical",
|
|
2947
|
+
"gap": "md",
|
|
2945
2948
|
"children": [
|
|
2946
2949
|
{
|
|
2947
|
-
"align": "center",
|
|
2948
|
-
"gap": "sm",
|
|
2949
2950
|
"children": [
|
|
2950
2951
|
{
|
|
2951
2952
|
"name": "alert-triangle",
|
|
@@ -2957,6 +2958,8 @@
|
|
|
2957
2958
|
"type": "typography"
|
|
2958
2959
|
}
|
|
2959
2960
|
],
|
|
2961
|
+
"align": "center",
|
|
2962
|
+
"gap": "sm",
|
|
2960
2963
|
"type": "stack",
|
|
2961
2964
|
"direction": "horizontal"
|
|
2962
2965
|
},
|
|
@@ -2964,35 +2967,32 @@
|
|
|
2964
2967
|
"type": "divider"
|
|
2965
2968
|
},
|
|
2966
2969
|
{
|
|
2967
|
-
"type": "alert",
|
|
2968
2970
|
"message": "Are you sure you want to remove this item from your cart?",
|
|
2971
|
+
"type": "alert",
|
|
2969
2972
|
"variant": "error"
|
|
2970
2973
|
},
|
|
2971
2974
|
{
|
|
2972
2975
|
"gap": "sm",
|
|
2973
|
-
"type": "stack",
|
|
2974
|
-
"direction": "horizontal",
|
|
2975
2976
|
"justify": "end",
|
|
2976
2977
|
"children": [
|
|
2977
2978
|
{
|
|
2978
|
-
"type": "button",
|
|
2979
|
-
"action": "CANCEL",
|
|
2980
2979
|
"label": "Cancel",
|
|
2980
|
+
"action": "CANCEL",
|
|
2981
|
+
"type": "button",
|
|
2981
2982
|
"variant": "ghost"
|
|
2982
2983
|
},
|
|
2983
2984
|
{
|
|
2984
|
-
"label": "Remove",
|
|
2985
2985
|
"type": "button",
|
|
2986
|
-
"
|
|
2986
|
+
"action": "CONFIRM_REMOVE",
|
|
2987
2987
|
"variant": "danger",
|
|
2988
|
-
"
|
|
2988
|
+
"icon": "check",
|
|
2989
|
+
"label": "Remove"
|
|
2989
2990
|
}
|
|
2990
|
-
]
|
|
2991
|
+
],
|
|
2992
|
+
"type": "stack",
|
|
2993
|
+
"direction": "horizontal"
|
|
2991
2994
|
}
|
|
2992
|
-
]
|
|
2993
|
-
"direction": "vertical",
|
|
2994
|
-
"type": "stack",
|
|
2995
|
-
"gap": "md"
|
|
2995
|
+
]
|
|
2996
2996
|
}
|
|
2997
2997
|
]
|
|
2998
2998
|
]
|
|
@@ -3031,8 +3031,8 @@
|
|
|
3031
3031
|
"CartItem",
|
|
3032
3032
|
{
|
|
3033
3033
|
"emit": {
|
|
3034
|
-
"
|
|
3035
|
-
"
|
|
3034
|
+
"success": "CartItemLoaded",
|
|
3035
|
+
"failure": "CartItemLoadFailed"
|
|
3036
3036
|
}
|
|
3037
3037
|
}
|
|
3038
3038
|
]
|
|
@@ -3165,10 +3165,10 @@
|
|
|
3165
3165
|
"ref": "Stripe.traits.ServiceStripeStripe",
|
|
3166
3166
|
"name": "CheckoutPayment",
|
|
3167
3167
|
"config": {
|
|
3168
|
-
"currency": "usd",
|
|
3169
3168
|
"amount": 0.0,
|
|
3169
|
+
"uiTrait": "@trait.CheckoutPaymentForm",
|
|
3170
3170
|
"metadata": {},
|
|
3171
|
-
"
|
|
3171
|
+
"currency": "usd"
|
|
3172
3172
|
},
|
|
3173
3173
|
"listens": [
|
|
3174
3174
|
{
|
|
@@ -3223,21 +3223,19 @@
|
|
|
3223
3223
|
"render-ui",
|
|
3224
3224
|
"main",
|
|
3225
3225
|
{
|
|
3226
|
-
"type": "stack",
|
|
3227
|
-
"direction": "vertical",
|
|
3228
3226
|
"children": [
|
|
3229
3227
|
{
|
|
3230
|
-
"type": "alert",
|
|
3231
3228
|
"variant": "info",
|
|
3229
|
+
"type": "alert",
|
|
3232
3230
|
"message": "Enter card details to complete your order."
|
|
3233
3231
|
},
|
|
3234
3232
|
{
|
|
3235
3233
|
"placeholder": "Card number",
|
|
3236
|
-
"
|
|
3237
|
-
"
|
|
3234
|
+
"type": "input",
|
|
3235
|
+
"inputType": "text"
|
|
3238
3236
|
},
|
|
3239
3237
|
{
|
|
3240
|
-
"
|
|
3238
|
+
"type": "stack",
|
|
3241
3239
|
"children": [
|
|
3242
3240
|
{
|
|
3243
3241
|
"placeholder": "MM/YY",
|
|
@@ -3245,22 +3243,24 @@
|
|
|
3245
3243
|
"type": "input"
|
|
3246
3244
|
},
|
|
3247
3245
|
{
|
|
3246
|
+
"type": "input",
|
|
3248
3247
|
"inputType": "text",
|
|
3249
|
-
"placeholder": "CVC"
|
|
3250
|
-
"type": "input"
|
|
3248
|
+
"placeholder": "CVC"
|
|
3251
3249
|
}
|
|
3252
3250
|
],
|
|
3253
|
-
"
|
|
3251
|
+
"gap": "sm",
|
|
3254
3252
|
"direction": "horizontal"
|
|
3255
3253
|
},
|
|
3256
3254
|
{
|
|
3257
|
-
"type": "button",
|
|
3258
3255
|
"label": "Pay now",
|
|
3259
|
-
"
|
|
3256
|
+
"icon": "credit-card",
|
|
3260
3257
|
"action": "CREATE_PAYMENT",
|
|
3261
|
-
"
|
|
3258
|
+
"type": "button",
|
|
3259
|
+
"variant": "primary"
|
|
3262
3260
|
}
|
|
3263
3261
|
],
|
|
3262
|
+
"direction": "vertical",
|
|
3263
|
+
"type": "stack",
|
|
3264
3264
|
"gap": "md"
|
|
3265
3265
|
}
|
|
3266
3266
|
]
|
|
@@ -3404,14 +3404,7 @@
|
|
|
3404
3404
|
},
|
|
3405
3405
|
{
|
|
3406
3406
|
"key": "COMPLETE",
|
|
3407
|
-
"name": "Complete"
|
|
3408
|
-
"payloadSchema": [
|
|
3409
|
-
{
|
|
3410
|
-
"name": "data",
|
|
3411
|
-
"type": "object",
|
|
3412
|
-
"required": true
|
|
3413
|
-
}
|
|
3414
|
-
]
|
|
3407
|
+
"name": "Complete"
|
|
3415
3408
|
},
|
|
3416
3409
|
{
|
|
3417
3410
|
"key": "RESTART",
|
|
@@ -3509,45 +3502,46 @@
|
|
|
3509
3502
|
"render-ui",
|
|
3510
3503
|
"main",
|
|
3511
3504
|
{
|
|
3512
|
-
"direction": "vertical",
|
|
3513
3505
|
"children": [
|
|
3514
3506
|
{
|
|
3507
|
+
"content": "Checkout",
|
|
3515
3508
|
"type": "typography",
|
|
3516
|
-
"variant": "h2"
|
|
3517
|
-
"content": "Checkout"
|
|
3509
|
+
"variant": "h2"
|
|
3518
3510
|
},
|
|
3519
3511
|
{
|
|
3520
|
-
"currentStep": 0.0,
|
|
3521
3512
|
"steps": [
|
|
3522
3513
|
"Customer Info",
|
|
3523
3514
|
"Shipping",
|
|
3524
3515
|
"Payment",
|
|
3525
3516
|
"Review"
|
|
3526
3517
|
],
|
|
3518
|
+
"currentStep": 0.0,
|
|
3527
3519
|
"type": "wizard-progress"
|
|
3528
3520
|
},
|
|
3529
3521
|
{
|
|
3530
3522
|
"type": "divider"
|
|
3531
3523
|
},
|
|
3532
3524
|
{
|
|
3533
|
-
"
|
|
3525
|
+
"type": "typography",
|
|
3534
3526
|
"variant": "h3",
|
|
3535
|
-
"
|
|
3527
|
+
"content": "Customer Info"
|
|
3536
3528
|
},
|
|
3537
3529
|
{
|
|
3538
|
-
"
|
|
3539
|
-
"cancelEvent": "INIT",
|
|
3530
|
+
"submitLabel": "Continue",
|
|
3540
3531
|
"mode": "create",
|
|
3541
|
-
"
|
|
3532
|
+
"showCancel": false,
|
|
3533
|
+
"submitEvent": "NEXT",
|
|
3542
3534
|
"fields": [
|
|
3543
3535
|
"customerName",
|
|
3544
3536
|
"email"
|
|
3545
|
-
]
|
|
3537
|
+
],
|
|
3538
|
+
"type": "form-section"
|
|
3546
3539
|
}
|
|
3547
3540
|
],
|
|
3548
|
-
"
|
|
3541
|
+
"gap": "lg",
|
|
3549
3542
|
"className": "max-w-xl mx-auto w-full",
|
|
3550
|
-
"
|
|
3543
|
+
"type": "stack",
|
|
3544
|
+
"direction": "vertical"
|
|
3551
3545
|
}
|
|
3552
3546
|
]
|
|
3553
3547
|
]
|
|
@@ -3571,6 +3565,10 @@
|
|
|
3571
3565
|
"render-ui",
|
|
3572
3566
|
"main",
|
|
3573
3567
|
{
|
|
3568
|
+
"type": "stack",
|
|
3569
|
+
"gap": "lg",
|
|
3570
|
+
"className": "max-w-xl mx-auto w-full",
|
|
3571
|
+
"direction": "vertical",
|
|
3574
3572
|
"children": [
|
|
3575
3573
|
{
|
|
3576
3574
|
"variant": "h2",
|
|
@@ -3578,38 +3576,36 @@
|
|
|
3578
3576
|
"type": "typography"
|
|
3579
3577
|
},
|
|
3580
3578
|
{
|
|
3581
|
-
"currentStep": 1.0,
|
|
3582
3579
|
"steps": [
|
|
3583
3580
|
"Customer Info",
|
|
3584
3581
|
"Shipping",
|
|
3585
3582
|
"Payment",
|
|
3586
3583
|
"Review"
|
|
3587
3584
|
],
|
|
3588
|
-
"type": "wizard-progress"
|
|
3585
|
+
"type": "wizard-progress",
|
|
3586
|
+
"currentStep": 1.0
|
|
3589
3587
|
},
|
|
3590
3588
|
{
|
|
3591
3589
|
"type": "divider"
|
|
3592
3590
|
},
|
|
3593
3591
|
{
|
|
3594
|
-
"type": "typography",
|
|
3595
3592
|
"variant": "h3",
|
|
3593
|
+
"type": "typography",
|
|
3596
3594
|
"content": "Shipping Address"
|
|
3597
3595
|
},
|
|
3598
3596
|
{
|
|
3597
|
+
"cancelLabel": "Back",
|
|
3598
|
+
"submitEvent": "NEXT",
|
|
3599
3599
|
"mode": "edit",
|
|
3600
3600
|
"fields": [
|
|
3601
3601
|
"shippingAddress"
|
|
3602
3602
|
],
|
|
3603
|
-
"
|
|
3604
|
-
"submitEvent": "NEXT",
|
|
3603
|
+
"entity": "@entity",
|
|
3605
3604
|
"cancelEvent": "PREV",
|
|
3606
|
-
"
|
|
3605
|
+
"submitLabel": "Continue",
|
|
3606
|
+
"type": "form-section"
|
|
3607
3607
|
}
|
|
3608
|
-
]
|
|
3609
|
-
"direction": "vertical",
|
|
3610
|
-
"type": "stack",
|
|
3611
|
-
"gap": "lg",
|
|
3612
|
-
"className": "max-w-xl mx-auto w-full"
|
|
3608
|
+
]
|
|
3613
3609
|
}
|
|
3614
3610
|
]
|
|
3615
3611
|
]
|
|
@@ -3628,45 +3624,51 @@
|
|
|
3628
3624
|
"render-ui",
|
|
3629
3625
|
"main",
|
|
3630
3626
|
{
|
|
3631
|
-
"className": "max-w-xl mx-auto w-full",
|
|
3632
3627
|
"children": [
|
|
3633
3628
|
{
|
|
3634
3629
|
"content": "Checkout",
|
|
3635
|
-
"
|
|
3636
|
-
"
|
|
3630
|
+
"variant": "h2",
|
|
3631
|
+
"type": "typography"
|
|
3637
3632
|
},
|
|
3638
3633
|
{
|
|
3639
|
-
"type": "wizard-progress",
|
|
3640
3634
|
"steps": [
|
|
3641
3635
|
"Customer Info",
|
|
3642
3636
|
"Shipping",
|
|
3643
3637
|
"Payment",
|
|
3644
3638
|
"Review"
|
|
3645
3639
|
],
|
|
3640
|
+
"type": "wizard-progress",
|
|
3646
3641
|
"currentStep": 2.0
|
|
3647
3642
|
},
|
|
3648
3643
|
{
|
|
3649
3644
|
"type": "divider"
|
|
3650
3645
|
},
|
|
3651
3646
|
{
|
|
3647
|
+
"type": "typography",
|
|
3652
3648
|
"content": "Payment",
|
|
3653
|
-
"variant": "h3"
|
|
3654
|
-
"type": "typography"
|
|
3649
|
+
"variant": "h3"
|
|
3655
3650
|
},
|
|
3656
3651
|
"@trait.CheckoutPayment",
|
|
3657
3652
|
{
|
|
3658
|
-
"
|
|
3659
|
-
"
|
|
3660
|
-
"
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3653
|
+
"justify": "start",
|
|
3654
|
+
"direction": "horizontal",
|
|
3655
|
+
"children": [
|
|
3656
|
+
{
|
|
3657
|
+
"icon": "arrow-left",
|
|
3658
|
+
"action": "PREV",
|
|
3659
|
+
"type": "button",
|
|
3660
|
+
"label": "Back",
|
|
3661
|
+
"variant": "ghost"
|
|
3662
|
+
}
|
|
3663
|
+
],
|
|
3664
|
+
"type": "stack",
|
|
3665
|
+
"gap": "sm"
|
|
3665
3666
|
}
|
|
3666
3667
|
],
|
|
3667
|
-
"direction": "vertical",
|
|
3668
3668
|
"type": "stack",
|
|
3669
|
-
"
|
|
3669
|
+
"direction": "vertical",
|
|
3670
|
+
"gap": "lg",
|
|
3671
|
+
"className": "max-w-xl mx-auto w-full"
|
|
3670
3672
|
}
|
|
3671
3673
|
]
|
|
3672
3674
|
]
|
|
@@ -3680,46 +3682,47 @@
|
|
|
3680
3682
|
"render-ui",
|
|
3681
3683
|
"main",
|
|
3682
3684
|
{
|
|
3683
|
-
"gap": "lg",
|
|
3684
|
-
"direction": "vertical",
|
|
3685
3685
|
"className": "max-w-xl mx-auto w-full",
|
|
3686
|
+
"direction": "vertical",
|
|
3687
|
+
"type": "stack",
|
|
3686
3688
|
"children": [
|
|
3687
3689
|
{
|
|
3688
|
-
"
|
|
3690
|
+
"type": "typography",
|
|
3689
3691
|
"variant": "h2",
|
|
3690
|
-
"
|
|
3692
|
+
"content": "Checkout"
|
|
3691
3693
|
},
|
|
3692
3694
|
{
|
|
3695
|
+
"currentStep": 0.0,
|
|
3693
3696
|
"steps": [
|
|
3694
3697
|
"Customer Info",
|
|
3695
3698
|
"Shipping",
|
|
3696
3699
|
"Payment",
|
|
3697
3700
|
"Review"
|
|
3698
3701
|
],
|
|
3699
|
-
"currentStep": 0.0,
|
|
3700
3702
|
"type": "wizard-progress"
|
|
3701
3703
|
},
|
|
3702
3704
|
{
|
|
3703
3705
|
"type": "divider"
|
|
3704
3706
|
},
|
|
3705
3707
|
{
|
|
3706
|
-
"
|
|
3708
|
+
"content": "Customer Info",
|
|
3707
3709
|
"type": "typography",
|
|
3708
|
-
"
|
|
3710
|
+
"variant": "h3"
|
|
3709
3711
|
},
|
|
3710
3712
|
{
|
|
3711
|
-
"
|
|
3712
|
-
"
|
|
3713
|
+
"type": "form-section",
|
|
3714
|
+
"submitLabel": "Continue",
|
|
3715
|
+
"showCancel": false,
|
|
3713
3716
|
"fields": [
|
|
3714
3717
|
"customerName",
|
|
3715
3718
|
"email"
|
|
3716
3719
|
],
|
|
3720
|
+
"entity": "@entity",
|
|
3717
3721
|
"mode": "edit",
|
|
3718
|
-
"
|
|
3719
|
-
"entity": "@entity"
|
|
3722
|
+
"submitEvent": "NEXT"
|
|
3720
3723
|
}
|
|
3721
3724
|
],
|
|
3722
|
-
"
|
|
3725
|
+
"gap": "lg"
|
|
3723
3726
|
}
|
|
3724
3727
|
]
|
|
3725
3728
|
]
|
|
@@ -3733,76 +3736,78 @@
|
|
|
3733
3736
|
"render-ui",
|
|
3734
3737
|
"main",
|
|
3735
3738
|
{
|
|
3739
|
+
"type": "stack",
|
|
3736
3740
|
"direction": "vertical",
|
|
3737
|
-
"className": "max-w-xl mx-auto w-full",
|
|
3738
3741
|
"gap": "lg",
|
|
3739
|
-
"
|
|
3742
|
+
"className": "max-w-xl mx-auto w-full",
|
|
3740
3743
|
"children": [
|
|
3741
3744
|
{
|
|
3742
|
-
"type": "typography",
|
|
3743
3745
|
"variant": "h2",
|
|
3744
|
-
"
|
|
3746
|
+
"type": "typography",
|
|
3747
|
+
"content": "Review your order"
|
|
3745
3748
|
},
|
|
3746
3749
|
{
|
|
3747
|
-
"
|
|
3750
|
+
"currentStep": 3.0,
|
|
3748
3751
|
"steps": [
|
|
3749
3752
|
"Customer Info",
|
|
3750
3753
|
"Shipping",
|
|
3751
3754
|
"Payment",
|
|
3752
3755
|
"Review"
|
|
3753
3756
|
],
|
|
3754
|
-
"
|
|
3757
|
+
"type": "wizard-progress"
|
|
3755
3758
|
},
|
|
3756
3759
|
{
|
|
3757
3760
|
"type": "divider"
|
|
3758
3761
|
},
|
|
3759
3762
|
{
|
|
3763
|
+
"gap": "sm",
|
|
3764
|
+
"direction": "vertical",
|
|
3765
|
+
"type": "stack",
|
|
3760
3766
|
"children": [
|
|
3761
3767
|
{
|
|
3768
|
+
"direction": "horizontal",
|
|
3762
3769
|
"type": "stack",
|
|
3770
|
+
"gap": "md",
|
|
3771
|
+
"justify": "between",
|
|
3763
3772
|
"children": [
|
|
3764
3773
|
{
|
|
3774
|
+
"content": "Customer",
|
|
3765
3775
|
"type": "typography",
|
|
3766
|
-
"variant": "caption"
|
|
3767
|
-
"content": "Customer"
|
|
3776
|
+
"variant": "caption"
|
|
3768
3777
|
},
|
|
3769
3778
|
{
|
|
3770
3779
|
"variant": "body",
|
|
3771
3780
|
"content": "@entity.customerName",
|
|
3772
3781
|
"type": "typography"
|
|
3773
3782
|
}
|
|
3774
|
-
]
|
|
3775
|
-
"gap": "md",
|
|
3776
|
-
"direction": "horizontal",
|
|
3777
|
-
"justify": "between"
|
|
3783
|
+
]
|
|
3778
3784
|
},
|
|
3779
3785
|
{
|
|
3780
|
-
"
|
|
3786
|
+
"direction": "horizontal",
|
|
3781
3787
|
"type": "stack",
|
|
3788
|
+
"gap": "md",
|
|
3789
|
+
"justify": "between",
|
|
3782
3790
|
"children": [
|
|
3783
3791
|
{
|
|
3784
|
-
"content": "Email",
|
|
3785
3792
|
"variant": "caption",
|
|
3793
|
+
"content": "Email",
|
|
3786
3794
|
"type": "typography"
|
|
3787
3795
|
},
|
|
3788
3796
|
{
|
|
3797
|
+
"type": "typography",
|
|
3789
3798
|
"content": "@entity.email",
|
|
3790
|
-
"variant": "body"
|
|
3791
|
-
"type": "typography"
|
|
3799
|
+
"variant": "body"
|
|
3792
3800
|
}
|
|
3793
|
-
]
|
|
3794
|
-
"direction": "horizontal",
|
|
3795
|
-
"gap": "md"
|
|
3801
|
+
]
|
|
3796
3802
|
},
|
|
3797
3803
|
{
|
|
3798
3804
|
"type": "stack",
|
|
3799
|
-
"direction": "horizontal",
|
|
3800
3805
|
"justify": "between",
|
|
3801
3806
|
"children": [
|
|
3802
3807
|
{
|
|
3803
3808
|
"content": "Shipping",
|
|
3804
|
-
"
|
|
3805
|
-
"
|
|
3809
|
+
"type": "typography",
|
|
3810
|
+
"variant": "caption"
|
|
3806
3811
|
},
|
|
3807
3812
|
{
|
|
3808
3813
|
"variant": "body",
|
|
@@ -3810,40 +3815,53 @@
|
|
|
3810
3815
|
"content": "@entity.shippingAddress"
|
|
3811
3816
|
}
|
|
3812
3817
|
],
|
|
3818
|
+
"direction": "horizontal",
|
|
3813
3819
|
"gap": "md"
|
|
3814
3820
|
},
|
|
3815
3821
|
{
|
|
3816
|
-
"
|
|
3822
|
+
"gap": "md",
|
|
3823
|
+
"type": "stack",
|
|
3817
3824
|
"justify": "between",
|
|
3825
|
+
"direction": "horizontal",
|
|
3818
3826
|
"children": [
|
|
3819
3827
|
{
|
|
3820
|
-
"content": "Order
|
|
3828
|
+
"content": "Order total",
|
|
3821
3829
|
"variant": "caption",
|
|
3822
3830
|
"type": "typography"
|
|
3823
3831
|
},
|
|
3824
3832
|
{
|
|
3833
|
+
"variant": "body",
|
|
3825
3834
|
"content": "@entity.orderTotal",
|
|
3826
|
-
"type": "typography"
|
|
3827
|
-
"variant": "body"
|
|
3835
|
+
"type": "typography"
|
|
3828
3836
|
}
|
|
3829
|
-
]
|
|
3830
|
-
"gap": "md",
|
|
3831
|
-
"type": "stack"
|
|
3837
|
+
]
|
|
3832
3838
|
}
|
|
3833
|
-
]
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
"
|
|
3839
|
+
]
|
|
3840
|
+
},
|
|
3841
|
+
{
|
|
3842
|
+
"type": "divider"
|
|
3837
3843
|
},
|
|
3838
3844
|
{
|
|
3839
|
-
"
|
|
3840
|
-
"
|
|
3841
|
-
"
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3845
|
+
"justify": "between",
|
|
3846
|
+
"type": "stack",
|
|
3847
|
+
"children": [
|
|
3848
|
+
{
|
|
3849
|
+
"label": "Back",
|
|
3850
|
+
"variant": "ghost",
|
|
3851
|
+
"type": "button",
|
|
3852
|
+
"icon": "arrow-left",
|
|
3853
|
+
"action": "PREV"
|
|
3854
|
+
},
|
|
3855
|
+
{
|
|
3856
|
+
"variant": "primary",
|
|
3857
|
+
"type": "button",
|
|
3858
|
+
"label": "Place order",
|
|
3859
|
+
"action": "COMPLETE",
|
|
3860
|
+
"icon": "check"
|
|
3861
|
+
}
|
|
3862
|
+
],
|
|
3863
|
+
"gap": "sm",
|
|
3864
|
+
"direction": "horizontal"
|
|
3847
3865
|
}
|
|
3848
3866
|
]
|
|
3849
3867
|
}
|
|
@@ -3860,44 +3878,46 @@
|
|
|
3860
3878
|
"main",
|
|
3861
3879
|
{
|
|
3862
3880
|
"type": "stack",
|
|
3863
|
-
"direction": "vertical",
|
|
3864
|
-
"gap": "lg",
|
|
3865
|
-
"className": "max-w-xl mx-auto w-full",
|
|
3866
3881
|
"children": [
|
|
3867
3882
|
{
|
|
3868
3883
|
"variant": "h2",
|
|
3869
|
-
"
|
|
3870
|
-
"
|
|
3884
|
+
"type": "typography",
|
|
3885
|
+
"content": "Checkout"
|
|
3871
3886
|
},
|
|
3872
3887
|
{
|
|
3873
|
-
"currentStep": 1.0,
|
|
3874
3888
|
"type": "wizard-progress",
|
|
3875
3889
|
"steps": [
|
|
3876
3890
|
"Customer Info",
|
|
3877
3891
|
"Shipping",
|
|
3878
3892
|
"Payment",
|
|
3879
3893
|
"Review"
|
|
3880
|
-
]
|
|
3894
|
+
],
|
|
3895
|
+
"currentStep": 1.0
|
|
3881
3896
|
},
|
|
3882
3897
|
{
|
|
3883
3898
|
"type": "divider"
|
|
3884
3899
|
},
|
|
3885
3900
|
{
|
|
3886
3901
|
"variant": "h3",
|
|
3887
|
-
"
|
|
3888
|
-
"
|
|
3902
|
+
"type": "typography",
|
|
3903
|
+
"content": "Shipping Address"
|
|
3889
3904
|
},
|
|
3890
3905
|
{
|
|
3891
3906
|
"type": "form-section",
|
|
3892
|
-
"
|
|
3893
|
-
"
|
|
3894
|
-
"cancelEvent": "PREV",
|
|
3907
|
+
"cancelLabel": "Back",
|
|
3908
|
+
"submitLabel": "Continue",
|
|
3895
3909
|
"fields": [
|
|
3896
3910
|
"shippingAddress"
|
|
3897
3911
|
],
|
|
3912
|
+
"cancelEvent": "PREV",
|
|
3913
|
+
"entity": "@entity",
|
|
3914
|
+
"submitEvent": "NEXT",
|
|
3898
3915
|
"mode": "edit"
|
|
3899
3916
|
}
|
|
3900
|
-
]
|
|
3917
|
+
],
|
|
3918
|
+
"gap": "lg",
|
|
3919
|
+
"direction": "vertical",
|
|
3920
|
+
"className": "max-w-xl mx-auto w-full"
|
|
3901
3921
|
}
|
|
3902
3922
|
]
|
|
3903
3923
|
]
|
|
@@ -3916,11 +3936,11 @@
|
|
|
3916
3936
|
"persist",
|
|
3917
3937
|
"create",
|
|
3918
3938
|
"Checkout",
|
|
3919
|
-
"@
|
|
3939
|
+
"@entity",
|
|
3920
3940
|
{
|
|
3921
3941
|
"emit": {
|
|
3922
|
-
"
|
|
3923
|
-
"
|
|
3942
|
+
"failure": "CheckoutSaveFailed",
|
|
3943
|
+
"success": "CheckoutSaved"
|
|
3924
3944
|
}
|
|
3925
3945
|
}
|
|
3926
3946
|
],
|
|
@@ -3940,35 +3960,35 @@
|
|
|
3940
3960
|
"render-ui",
|
|
3941
3961
|
"main",
|
|
3942
3962
|
{
|
|
3963
|
+
"align": "center",
|
|
3964
|
+
"gap": "lg",
|
|
3965
|
+
"className": "max-w-xl mx-auto w-full py-12",
|
|
3943
3966
|
"type": "stack",
|
|
3944
3967
|
"direction": "vertical",
|
|
3945
|
-
"className": "max-w-xl mx-auto w-full py-12",
|
|
3946
3968
|
"children": [
|
|
3947
3969
|
{
|
|
3948
|
-
"
|
|
3949
|
-
"
|
|
3970
|
+
"name": "check-circle",
|
|
3971
|
+
"type": "icon"
|
|
3950
3972
|
},
|
|
3951
3973
|
{
|
|
3952
3974
|
"type": "typography",
|
|
3953
|
-
"
|
|
3954
|
-
"
|
|
3975
|
+
"content": "Order placed",
|
|
3976
|
+
"variant": "h2"
|
|
3955
3977
|
},
|
|
3956
3978
|
{
|
|
3957
3979
|
"color": "muted",
|
|
3958
|
-
"variant": "body",
|
|
3959
3980
|
"type": "typography",
|
|
3960
|
-
"content": "Your order is confirmed and on its way."
|
|
3981
|
+
"content": "Your order is confirmed and on its way.",
|
|
3982
|
+
"variant": "body"
|
|
3961
3983
|
},
|
|
3962
3984
|
{
|
|
3963
|
-
"
|
|
3964
|
-
"variant": "ghost",
|
|
3965
|
-
"label": "Start New",
|
|
3985
|
+
"label": "Start new order",
|
|
3966
3986
|
"type": "button",
|
|
3987
|
+
"variant": "ghost",
|
|
3988
|
+
"icon": "rotate-ccw",
|
|
3967
3989
|
"action": "RESTART"
|
|
3968
3990
|
}
|
|
3969
|
-
]
|
|
3970
|
-
"gap": "lg",
|
|
3971
|
-
"align": "center"
|
|
3991
|
+
]
|
|
3972
3992
|
}
|
|
3973
3993
|
]
|
|
3974
3994
|
]
|
|
@@ -3983,11 +4003,12 @@
|
|
|
3983
4003
|
"main",
|
|
3984
4004
|
{
|
|
3985
4005
|
"direction": "vertical",
|
|
3986
|
-
"
|
|
4006
|
+
"gap": "lg",
|
|
4007
|
+
"className": "max-w-xl mx-auto w-full",
|
|
3987
4008
|
"children": [
|
|
3988
4009
|
{
|
|
3989
|
-
"variant": "h2",
|
|
3990
4010
|
"content": "Checkout",
|
|
4011
|
+
"variant": "h2",
|
|
3991
4012
|
"type": "typography"
|
|
3992
4013
|
},
|
|
3993
4014
|
{
|
|
@@ -4004,14 +4025,28 @@
|
|
|
4004
4025
|
"type": "divider"
|
|
4005
4026
|
},
|
|
4006
4027
|
{
|
|
4028
|
+
"content": "Payment",
|
|
4007
4029
|
"variant": "h3",
|
|
4008
|
-
"type": "typography"
|
|
4009
|
-
"content": "Payment"
|
|
4030
|
+
"type": "typography"
|
|
4010
4031
|
},
|
|
4011
|
-
"@trait.CheckoutPayment"
|
|
4032
|
+
"@trait.CheckoutPayment",
|
|
4033
|
+
{
|
|
4034
|
+
"children": [
|
|
4035
|
+
{
|
|
4036
|
+
"type": "button",
|
|
4037
|
+
"variant": "ghost",
|
|
4038
|
+
"icon": "arrow-left",
|
|
4039
|
+
"label": "Back",
|
|
4040
|
+
"action": "PREV"
|
|
4041
|
+
}
|
|
4042
|
+
],
|
|
4043
|
+
"gap": "sm",
|
|
4044
|
+
"direction": "horizontal",
|
|
4045
|
+
"type": "stack",
|
|
4046
|
+
"justify": "start"
|
|
4047
|
+
}
|
|
4012
4048
|
],
|
|
4013
|
-
"
|
|
4014
|
-
"gap": "lg"
|
|
4049
|
+
"type": "stack"
|
|
4015
4050
|
}
|
|
4016
4051
|
]
|
|
4017
4052
|
]
|
|
@@ -4050,45 +4085,46 @@
|
|
|
4050
4085
|
"render-ui",
|
|
4051
4086
|
"main",
|
|
4052
4087
|
{
|
|
4088
|
+
"type": "stack",
|
|
4089
|
+
"gap": "lg",
|
|
4090
|
+
"className": "max-w-xl mx-auto w-full",
|
|
4053
4091
|
"children": [
|
|
4054
4092
|
{
|
|
4055
4093
|
"type": "typography",
|
|
4056
|
-
"
|
|
4057
|
-
"
|
|
4094
|
+
"variant": "h2",
|
|
4095
|
+
"content": "Checkout"
|
|
4058
4096
|
},
|
|
4059
4097
|
{
|
|
4060
4098
|
"type": "wizard-progress",
|
|
4099
|
+
"currentStep": 0.0,
|
|
4061
4100
|
"steps": [
|
|
4062
4101
|
"Customer Info",
|
|
4063
4102
|
"Shipping",
|
|
4064
4103
|
"Payment",
|
|
4065
4104
|
"Review"
|
|
4066
|
-
]
|
|
4067
|
-
"currentStep": 0.0
|
|
4105
|
+
]
|
|
4068
4106
|
},
|
|
4069
4107
|
{
|
|
4070
4108
|
"type": "divider"
|
|
4071
4109
|
},
|
|
4072
4110
|
{
|
|
4111
|
+
"variant": "h3",
|
|
4073
4112
|
"content": "Customer Info",
|
|
4074
|
-
"type": "typography"
|
|
4075
|
-
"variant": "h3"
|
|
4113
|
+
"type": "typography"
|
|
4076
4114
|
},
|
|
4077
4115
|
{
|
|
4078
|
-
"
|
|
4079
|
-
"submitEvent": "NEXT",
|
|
4080
|
-
"type": "form-section",
|
|
4081
|
-
"mode": "create",
|
|
4116
|
+
"submitLabel": "Continue",
|
|
4082
4117
|
"fields": [
|
|
4083
4118
|
"customerName",
|
|
4084
4119
|
"email"
|
|
4085
|
-
]
|
|
4120
|
+
],
|
|
4121
|
+
"showCancel": false,
|
|
4122
|
+
"submitEvent": "NEXT",
|
|
4123
|
+
"type": "form-section",
|
|
4124
|
+
"mode": "create"
|
|
4086
4125
|
}
|
|
4087
4126
|
],
|
|
4088
|
-
"
|
|
4089
|
-
"direction": "vertical",
|
|
4090
|
-
"gap": "lg",
|
|
4091
|
-
"className": "max-w-xl mx-auto w-full"
|
|
4127
|
+
"direction": "vertical"
|
|
4092
4128
|
}
|
|
4093
4129
|
]
|
|
4094
4130
|
]
|
|
@@ -4439,8 +4475,8 @@
|
|
|
4439
4475
|
"OrderRecord",
|
|
4440
4476
|
{
|
|
4441
4477
|
"emit": {
|
|
4442
|
-
"
|
|
4443
|
-
"
|
|
4478
|
+
"success": "OrderRecordLoaded",
|
|
4479
|
+
"failure": "OrderRecordLoadFailed"
|
|
4444
4480
|
}
|
|
4445
4481
|
}
|
|
4446
4482
|
],
|
|
@@ -4448,22 +4484,22 @@
|
|
|
4448
4484
|
"render-ui",
|
|
4449
4485
|
"main",
|
|
4450
4486
|
{
|
|
4487
|
+
"className": "py-12",
|
|
4488
|
+
"type": "stack",
|
|
4489
|
+
"direction": "vertical",
|
|
4451
4490
|
"children": [
|
|
4452
4491
|
{
|
|
4453
4492
|
"type": "spinner"
|
|
4454
4493
|
},
|
|
4455
4494
|
{
|
|
4456
|
-
"
|
|
4457
|
-
"color": "muted",
|
|
4495
|
+
"type": "typography",
|
|
4458
4496
|
"variant": "caption",
|
|
4459
|
-
"
|
|
4497
|
+
"content": "Loading…",
|
|
4498
|
+
"color": "muted"
|
|
4460
4499
|
}
|
|
4461
4500
|
],
|
|
4462
|
-
"direction": "vertical",
|
|
4463
4501
|
"gap": "md",
|
|
4464
|
-
"
|
|
4465
|
-
"align": "center",
|
|
4466
|
-
"type": "stack"
|
|
4502
|
+
"align": "center"
|
|
4467
4503
|
}
|
|
4468
4504
|
]
|
|
4469
4505
|
]
|
|
@@ -4479,9 +4515,9 @@
|
|
|
4479
4515
|
{
|
|
4480
4516
|
"navItems": [
|
|
4481
4517
|
{
|
|
4482
|
-
"label": "Products",
|
|
4483
4518
|
"href": "/products",
|
|
4484
|
-
"icon": "package"
|
|
4519
|
+
"icon": "package",
|
|
4520
|
+
"label": "Products"
|
|
4485
4521
|
},
|
|
4486
4522
|
{
|
|
4487
4523
|
"icon": "shopping-cart",
|
|
@@ -4489,9 +4525,9 @@
|
|
|
4489
4525
|
"href": "/cart"
|
|
4490
4526
|
},
|
|
4491
4527
|
{
|
|
4492
|
-
"icon": "credit-card",
|
|
4493
4528
|
"label": "Checkout",
|
|
4494
|
-
"href": "/checkout"
|
|
4529
|
+
"href": "/checkout",
|
|
4530
|
+
"icon": "credit-card"
|
|
4495
4531
|
},
|
|
4496
4532
|
{
|
|
4497
4533
|
"label": "Orders",
|
|
@@ -4499,27 +4535,24 @@
|
|
|
4499
4535
|
"href": "/orders"
|
|
4500
4536
|
}
|
|
4501
4537
|
],
|
|
4538
|
+
"type": "dashboard-layout",
|
|
4502
4539
|
"appName": "EcommerceApp",
|
|
4503
4540
|
"children": [
|
|
4504
4541
|
{
|
|
4505
|
-
"className": "max-w-5xl mx-auto w-full",
|
|
4506
4542
|
"direction": "vertical",
|
|
4543
|
+
"type": "stack",
|
|
4507
4544
|
"children": [
|
|
4508
4545
|
{
|
|
4509
|
-
"
|
|
4546
|
+
"justify": "between",
|
|
4510
4547
|
"gap": "md",
|
|
4511
|
-
"
|
|
4548
|
+
"direction": "horizontal",
|
|
4512
4549
|
"align": "center",
|
|
4513
|
-
"justify": "between",
|
|
4514
4550
|
"children": [
|
|
4515
4551
|
{
|
|
4516
|
-
"type": "stack",
|
|
4517
|
-
"direction": "horizontal",
|
|
4518
|
-
"gap": "sm",
|
|
4519
4552
|
"children": [
|
|
4520
4553
|
{
|
|
4521
|
-
"
|
|
4522
|
-
"
|
|
4554
|
+
"type": "icon",
|
|
4555
|
+
"name": "clipboard-list"
|
|
4523
4556
|
},
|
|
4524
4557
|
{
|
|
4525
4558
|
"content": "Order History",
|
|
@@ -4527,33 +4560,40 @@
|
|
|
4527
4560
|
"variant": "h2"
|
|
4528
4561
|
}
|
|
4529
4562
|
],
|
|
4530
|
-
"
|
|
4563
|
+
"gap": "sm",
|
|
4564
|
+
"type": "stack",
|
|
4565
|
+
"align": "center",
|
|
4566
|
+
"direction": "horizontal"
|
|
4531
4567
|
},
|
|
4532
4568
|
{
|
|
4533
|
-
"direction": "horizontal",
|
|
4534
4569
|
"type": "stack",
|
|
4535
|
-
"
|
|
4570
|
+
"direction": "horizontal",
|
|
4536
4571
|
"children": [
|
|
4537
4572
|
{
|
|
4538
|
-
"label": "Create OrderRecord",
|
|
4539
|
-
"variant": "primary",
|
|
4540
|
-
"icon": "plus",
|
|
4541
4573
|
"type": "button",
|
|
4574
|
+
"icon": "plus",
|
|
4575
|
+
"variant": "primary",
|
|
4576
|
+
"label": "Create OrderRecord",
|
|
4542
4577
|
"action": "CREATE"
|
|
4543
4578
|
}
|
|
4544
|
-
]
|
|
4579
|
+
],
|
|
4580
|
+
"gap": "sm"
|
|
4545
4581
|
}
|
|
4546
|
-
]
|
|
4582
|
+
],
|
|
4583
|
+
"type": "stack"
|
|
4547
4584
|
},
|
|
4548
4585
|
{
|
|
4549
4586
|
"type": "divider"
|
|
4550
4587
|
},
|
|
4551
4588
|
{
|
|
4589
|
+
"variant": "card",
|
|
4590
|
+
"gap": "sm",
|
|
4591
|
+
"entity": "@payload.data",
|
|
4552
4592
|
"itemActions": [
|
|
4553
4593
|
{
|
|
4554
4594
|
"variant": "ghost",
|
|
4555
|
-
"
|
|
4556
|
-
"
|
|
4595
|
+
"label": "View",
|
|
4596
|
+
"event": "VIEW"
|
|
4557
4597
|
},
|
|
4558
4598
|
{
|
|
4559
4599
|
"event": "EDIT",
|
|
@@ -4561,49 +4601,45 @@
|
|
|
4561
4601
|
"label": "Edit"
|
|
4562
4602
|
},
|
|
4563
4603
|
{
|
|
4564
|
-
"label": "Delete",
|
|
4565
4604
|
"event": "DELETE",
|
|
4566
|
-
"variant": "danger"
|
|
4605
|
+
"variant": "danger",
|
|
4606
|
+
"label": "Delete"
|
|
4567
4607
|
}
|
|
4568
4608
|
],
|
|
4569
4609
|
"type": "data-list",
|
|
4570
|
-
"variant": "card",
|
|
4571
|
-
"entity": "@payload.data",
|
|
4572
|
-
"gap": "sm",
|
|
4573
4610
|
"fields": [
|
|
4574
4611
|
{
|
|
4612
|
+
"label": "Customer",
|
|
4575
4613
|
"icon": "clipboard-list",
|
|
4576
|
-
"variant": "h3",
|
|
4577
4614
|
"name": "customerName",
|
|
4578
|
-
"
|
|
4615
|
+
"variant": "h3"
|
|
4579
4616
|
},
|
|
4580
4617
|
{
|
|
4581
4618
|
"name": "status",
|
|
4582
4619
|
"variant": "badge"
|
|
4583
4620
|
},
|
|
4584
4621
|
{
|
|
4622
|
+
"format": "currency",
|
|
4585
4623
|
"variant": "h4",
|
|
4586
|
-
"name": "orderTotal",
|
|
4587
4624
|
"label": "Total",
|
|
4588
|
-
"
|
|
4625
|
+
"name": "orderTotal"
|
|
4589
4626
|
},
|
|
4590
4627
|
{
|
|
4591
4628
|
"variant": "caption",
|
|
4592
4629
|
"name": "email"
|
|
4593
4630
|
},
|
|
4594
4631
|
{
|
|
4632
|
+
"name": "shippingAddress",
|
|
4595
4633
|
"variant": "caption",
|
|
4596
|
-
"label": "Address"
|
|
4597
|
-
"name": "shippingAddress"
|
|
4634
|
+
"label": "Address"
|
|
4598
4635
|
}
|
|
4599
4636
|
]
|
|
4600
4637
|
}
|
|
4601
4638
|
],
|
|
4602
|
-
"
|
|
4639
|
+
"className": "max-w-5xl mx-auto w-full",
|
|
4603
4640
|
"gap": "lg"
|
|
4604
4641
|
}
|
|
4605
|
-
]
|
|
4606
|
-
"type": "dashboard-layout"
|
|
4642
|
+
]
|
|
4607
4643
|
}
|
|
4608
4644
|
]
|
|
4609
4645
|
]
|
|
@@ -4619,34 +4655,34 @@
|
|
|
4619
4655
|
{
|
|
4620
4656
|
"children": [
|
|
4621
4657
|
{
|
|
4622
|
-
"color": "destructive",
|
|
4623
4658
|
"type": "icon",
|
|
4659
|
+
"color": "destructive",
|
|
4624
4660
|
"name": "alert-triangle"
|
|
4625
4661
|
},
|
|
4626
4662
|
{
|
|
4627
|
-
"variant": "h3",
|
|
4628
4663
|
"content": "Failed to load orderrecord",
|
|
4664
|
+
"variant": "h3",
|
|
4629
4665
|
"type": "typography"
|
|
4630
4666
|
},
|
|
4631
4667
|
{
|
|
4632
|
-
"type": "typography",
|
|
4633
4668
|
"variant": "body",
|
|
4669
|
+
"type": "typography",
|
|
4634
4670
|
"color": "muted",
|
|
4635
4671
|
"content": "@payload.error"
|
|
4636
4672
|
},
|
|
4637
4673
|
{
|
|
4638
|
-
"icon": "rotate-ccw",
|
|
4639
|
-
"action": "INIT",
|
|
4640
4674
|
"label": "Retry",
|
|
4641
4675
|
"variant": "primary",
|
|
4642
|
-
"type": "button"
|
|
4676
|
+
"type": "button",
|
|
4677
|
+
"icon": "rotate-ccw",
|
|
4678
|
+
"action": "INIT"
|
|
4643
4679
|
}
|
|
4644
4680
|
],
|
|
4645
|
-
"gap": "md",
|
|
4646
4681
|
"align": "center",
|
|
4647
4682
|
"type": "stack",
|
|
4648
4683
|
"direction": "vertical",
|
|
4649
|
-
"className": "py-12"
|
|
4684
|
+
"className": "py-12",
|
|
4685
|
+
"gap": "md"
|
|
4650
4686
|
}
|
|
4651
4687
|
]
|
|
4652
4688
|
]
|
|
@@ -4838,8 +4874,8 @@
|
|
|
4838
4874
|
"OrderRecord",
|
|
4839
4875
|
{
|
|
4840
4876
|
"emit": {
|
|
4841
|
-
"
|
|
4842
|
-
"
|
|
4877
|
+
"failure": "OrderRecordLoadFailed",
|
|
4878
|
+
"success": "OrderRecordLoaded"
|
|
4843
4879
|
}
|
|
4844
4880
|
}
|
|
4845
4881
|
],
|
|
@@ -4847,13 +4883,14 @@
|
|
|
4847
4883
|
"render-ui",
|
|
4848
4884
|
"modal",
|
|
4849
4885
|
{
|
|
4850
|
-
"
|
|
4886
|
+
"direction": "vertical",
|
|
4887
|
+
"gap": "md",
|
|
4851
4888
|
"children": [
|
|
4852
4889
|
{
|
|
4853
4890
|
"children": [
|
|
4854
4891
|
{
|
|
4855
|
-
"
|
|
4856
|
-
"
|
|
4892
|
+
"type": "icon",
|
|
4893
|
+
"name": "plus-circle"
|
|
4857
4894
|
},
|
|
4858
4895
|
{
|
|
4859
4896
|
"type": "typography",
|
|
@@ -4861,14 +4898,18 @@
|
|
|
4861
4898
|
"content": "Create OrderRecord"
|
|
4862
4899
|
}
|
|
4863
4900
|
],
|
|
4864
|
-
"type": "stack",
|
|
4865
4901
|
"gap": "sm",
|
|
4866
|
-
"direction": "horizontal"
|
|
4902
|
+
"direction": "horizontal",
|
|
4903
|
+
"type": "stack"
|
|
4867
4904
|
},
|
|
4868
4905
|
{
|
|
4869
4906
|
"type": "divider"
|
|
4870
4907
|
},
|
|
4871
4908
|
{
|
|
4909
|
+
"mode": "create",
|
|
4910
|
+
"submitEvent": "SAVE",
|
|
4911
|
+
"type": "form-section",
|
|
4912
|
+
"cancelEvent": "CLOSE",
|
|
4872
4913
|
"fields": [
|
|
4873
4914
|
"customerName",
|
|
4874
4915
|
"email",
|
|
@@ -4876,15 +4917,10 @@
|
|
|
4876
4917
|
"paymentMethod",
|
|
4877
4918
|
"orderTotal",
|
|
4878
4919
|
"status"
|
|
4879
|
-
]
|
|
4880
|
-
"mode": "create",
|
|
4881
|
-
"submitEvent": "SAVE",
|
|
4882
|
-
"cancelEvent": "CLOSE",
|
|
4883
|
-
"type": "form-section"
|
|
4920
|
+
]
|
|
4884
4921
|
}
|
|
4885
4922
|
],
|
|
4886
|
-
"
|
|
4887
|
-
"gap": "md"
|
|
4923
|
+
"type": "stack"
|
|
4888
4924
|
}
|
|
4889
4925
|
]
|
|
4890
4926
|
]
|
|
@@ -5136,8 +5172,8 @@
|
|
|
5136
5172
|
"OrderRecord",
|
|
5137
5173
|
{
|
|
5138
5174
|
"emit": {
|
|
5139
|
-
"
|
|
5140
|
-
"
|
|
5175
|
+
"success": "OrderRecordLoaded",
|
|
5176
|
+
"failure": "OrderRecordLoadFailed"
|
|
5141
5177
|
}
|
|
5142
5178
|
}
|
|
5143
5179
|
]
|
|
@@ -5152,40 +5188,40 @@
|
|
|
5152
5188
|
"fetch",
|
|
5153
5189
|
"OrderRecord",
|
|
5154
5190
|
{
|
|
5191
|
+
"id": "@payload.id",
|
|
5155
5192
|
"emit": {
|
|
5156
|
-
"
|
|
5157
|
-
"
|
|
5158
|
-
}
|
|
5159
|
-
"id": "@payload.id"
|
|
5193
|
+
"success": "OrderRecordLoaded",
|
|
5194
|
+
"failure": "OrderRecordLoadFailed"
|
|
5195
|
+
}
|
|
5160
5196
|
}
|
|
5161
5197
|
],
|
|
5162
5198
|
[
|
|
5163
5199
|
"render-ui",
|
|
5164
5200
|
"modal",
|
|
5165
5201
|
{
|
|
5166
|
-
"gap": "md",
|
|
5167
|
-
"type": "stack",
|
|
5168
5202
|
"children": [
|
|
5169
5203
|
{
|
|
5170
|
-
"type": "stack",
|
|
5171
|
-
"direction": "horizontal",
|
|
5172
5204
|
"gap": "sm",
|
|
5205
|
+
"type": "stack",
|
|
5173
5206
|
"children": [
|
|
5174
5207
|
{
|
|
5175
5208
|
"type": "icon",
|
|
5176
5209
|
"name": "edit"
|
|
5177
5210
|
},
|
|
5178
5211
|
{
|
|
5179
|
-
"
|
|
5212
|
+
"type": "typography",
|
|
5180
5213
|
"variant": "h3",
|
|
5181
|
-
"
|
|
5214
|
+
"content": "Edit OrderRecord"
|
|
5182
5215
|
}
|
|
5183
|
-
]
|
|
5216
|
+
],
|
|
5217
|
+
"direction": "horizontal"
|
|
5184
5218
|
},
|
|
5185
5219
|
{
|
|
5186
5220
|
"type": "divider"
|
|
5187
5221
|
},
|
|
5188
5222
|
{
|
|
5223
|
+
"type": "form-section",
|
|
5224
|
+
"submitEvent": "SAVE",
|
|
5189
5225
|
"mode": "edit",
|
|
5190
5226
|
"fields": [
|
|
5191
5227
|
"customerName",
|
|
@@ -5195,13 +5231,13 @@
|
|
|
5195
5231
|
"orderTotal",
|
|
5196
5232
|
"status"
|
|
5197
5233
|
],
|
|
5198
|
-
"
|
|
5199
|
-
"
|
|
5200
|
-
"submitEvent": "SAVE",
|
|
5201
|
-
"cancelEvent": "CLOSE"
|
|
5234
|
+
"cancelEvent": "CLOSE",
|
|
5235
|
+
"entity": "@payload.row"
|
|
5202
5236
|
}
|
|
5203
5237
|
],
|
|
5204
|
-
"direction": "vertical"
|
|
5238
|
+
"direction": "vertical",
|
|
5239
|
+
"gap": "md",
|
|
5240
|
+
"type": "stack"
|
|
5205
5241
|
}
|
|
5206
5242
|
]
|
|
5207
5243
|
]
|
|
@@ -5423,8 +5459,8 @@
|
|
|
5423
5459
|
"OrderRecord",
|
|
5424
5460
|
{
|
|
5425
5461
|
"emit": {
|
|
5426
|
-
"
|
|
5427
|
-
"
|
|
5462
|
+
"failure": "OrderRecordLoadFailed",
|
|
5463
|
+
"success": "OrderRecordLoaded"
|
|
5428
5464
|
}
|
|
5429
5465
|
}
|
|
5430
5466
|
]
|
|
@@ -5439,11 +5475,11 @@
|
|
|
5439
5475
|
"fetch",
|
|
5440
5476
|
"OrderRecord",
|
|
5441
5477
|
{
|
|
5442
|
-
"id": "@payload.id",
|
|
5443
5478
|
"emit": {
|
|
5444
5479
|
"success": "OrderRecordLoaded",
|
|
5445
5480
|
"failure": "OrderRecordLoadFailed"
|
|
5446
|
-
}
|
|
5481
|
+
},
|
|
5482
|
+
"id": "@payload.id"
|
|
5447
5483
|
}
|
|
5448
5484
|
],
|
|
5449
5485
|
[
|
|
@@ -5455,108 +5491,108 @@
|
|
|
5455
5491
|
"children": [
|
|
5456
5492
|
{
|
|
5457
5493
|
"align": "center",
|
|
5458
|
-
"type": "stack",
|
|
5459
|
-
"direction": "horizontal",
|
|
5460
|
-
"gap": "sm",
|
|
5461
5494
|
"children": [
|
|
5462
5495
|
{
|
|
5463
5496
|
"type": "icon",
|
|
5464
5497
|
"name": "eye"
|
|
5465
5498
|
},
|
|
5466
5499
|
{
|
|
5467
|
-
"
|
|
5500
|
+
"type": "typography",
|
|
5468
5501
|
"content": "@entity.customerName",
|
|
5469
|
-
"
|
|
5502
|
+
"variant": "h3"
|
|
5470
5503
|
}
|
|
5471
|
-
]
|
|
5504
|
+
],
|
|
5505
|
+
"type": "stack",
|
|
5506
|
+
"direction": "horizontal",
|
|
5507
|
+
"gap": "sm"
|
|
5472
5508
|
},
|
|
5473
5509
|
{
|
|
5474
5510
|
"type": "divider"
|
|
5475
5511
|
},
|
|
5476
5512
|
{
|
|
5513
|
+
"direction": "horizontal",
|
|
5514
|
+
"type": "stack",
|
|
5515
|
+
"gap": "md",
|
|
5477
5516
|
"children": [
|
|
5478
5517
|
{
|
|
5518
|
+
"variant": "caption",
|
|
5479
5519
|
"type": "typography",
|
|
5480
|
-
"content": "Customer Name"
|
|
5481
|
-
"variant": "caption"
|
|
5520
|
+
"content": "Customer Name"
|
|
5482
5521
|
},
|
|
5483
5522
|
{
|
|
5484
|
-
"variant": "body",
|
|
5485
5523
|
"content": "@entity.customerName",
|
|
5524
|
+
"variant": "body",
|
|
5486
5525
|
"type": "typography"
|
|
5487
5526
|
}
|
|
5488
|
-
]
|
|
5489
|
-
"type": "stack",
|
|
5490
|
-
"gap": "md",
|
|
5491
|
-
"direction": "horizontal"
|
|
5527
|
+
]
|
|
5492
5528
|
},
|
|
5493
5529
|
{
|
|
5494
5530
|
"type": "stack",
|
|
5495
5531
|
"direction": "horizontal",
|
|
5496
|
-
"gap": "md",
|
|
5497
5532
|
"children": [
|
|
5498
5533
|
{
|
|
5499
|
-
"variant": "caption",
|
|
5500
5534
|
"content": "Email",
|
|
5501
|
-
"type": "typography"
|
|
5535
|
+
"type": "typography",
|
|
5536
|
+
"variant": "caption"
|
|
5502
5537
|
},
|
|
5503
5538
|
{
|
|
5539
|
+
"content": "@entity.email",
|
|
5504
5540
|
"variant": "body",
|
|
5505
|
-
"type": "typography"
|
|
5506
|
-
"content": "@entity.email"
|
|
5541
|
+
"type": "typography"
|
|
5507
5542
|
}
|
|
5508
|
-
]
|
|
5543
|
+
],
|
|
5544
|
+
"gap": "md"
|
|
5509
5545
|
},
|
|
5510
5546
|
{
|
|
5547
|
+
"gap": "md",
|
|
5548
|
+
"type": "stack",
|
|
5549
|
+
"direction": "horizontal",
|
|
5511
5550
|
"children": [
|
|
5512
5551
|
{
|
|
5513
|
-
"
|
|
5552
|
+
"variant": "caption",
|
|
5514
5553
|
"content": "Shipping Address",
|
|
5515
|
-
"
|
|
5554
|
+
"type": "typography"
|
|
5516
5555
|
},
|
|
5517
5556
|
{
|
|
5518
|
-
"variant": "body",
|
|
5519
5557
|
"content": "@entity.shippingAddress",
|
|
5520
|
-
"type": "typography"
|
|
5558
|
+
"type": "typography",
|
|
5559
|
+
"variant": "body"
|
|
5521
5560
|
}
|
|
5522
|
-
]
|
|
5523
|
-
"direction": "horizontal",
|
|
5524
|
-
"gap": "md",
|
|
5525
|
-
"type": "stack"
|
|
5561
|
+
]
|
|
5526
5562
|
},
|
|
5527
5563
|
{
|
|
5564
|
+
"gap": "md",
|
|
5565
|
+
"direction": "horizontal",
|
|
5528
5566
|
"children": [
|
|
5529
5567
|
{
|
|
5530
|
-
"type": "typography",
|
|
5531
5568
|
"variant": "caption",
|
|
5532
|
-
"content": "Payment Method"
|
|
5569
|
+
"content": "Payment Method",
|
|
5570
|
+
"type": "typography"
|
|
5533
5571
|
},
|
|
5534
5572
|
{
|
|
5535
5573
|
"variant": "body",
|
|
5536
|
-
"
|
|
5537
|
-
"
|
|
5574
|
+
"type": "typography",
|
|
5575
|
+
"content": "@entity.paymentMethod"
|
|
5538
5576
|
}
|
|
5539
5577
|
],
|
|
5540
|
-
"
|
|
5541
|
-
"type": "stack",
|
|
5542
|
-
"gap": "md"
|
|
5578
|
+
"type": "stack"
|
|
5543
5579
|
},
|
|
5544
5580
|
{
|
|
5545
|
-
"
|
|
5581
|
+
"type": "stack",
|
|
5546
5582
|
"gap": "md",
|
|
5547
5583
|
"children": [
|
|
5548
5584
|
{
|
|
5549
|
-
"type": "typography",
|
|
5550
5585
|
"content": "Order Total",
|
|
5586
|
+
"type": "typography",
|
|
5551
5587
|
"variant": "caption"
|
|
5552
5588
|
},
|
|
5553
5589
|
{
|
|
5590
|
+
"variant": "body",
|
|
5554
5591
|
"type": "typography",
|
|
5555
|
-
"content": "@entity.orderTotal"
|
|
5556
|
-
"variant": "body"
|
|
5592
|
+
"content": "@entity.orderTotal"
|
|
5557
5593
|
}
|
|
5558
5594
|
],
|
|
5559
|
-
"
|
|
5595
|
+
"direction": "horizontal"
|
|
5560
5596
|
},
|
|
5561
5597
|
{
|
|
5562
5598
|
"direction": "horizontal",
|
|
@@ -5567,9 +5603,9 @@
|
|
|
5567
5603
|
"variant": "caption"
|
|
5568
5604
|
},
|
|
5569
5605
|
{
|
|
5570
|
-
"
|
|
5606
|
+
"type": "typography",
|
|
5571
5607
|
"content": "@entity.status",
|
|
5572
|
-
"
|
|
5608
|
+
"variant": "body"
|
|
5573
5609
|
}
|
|
5574
5610
|
],
|
|
5575
5611
|
"type": "stack",
|
|
@@ -5579,25 +5615,25 @@
|
|
|
5579
5615
|
"type": "divider"
|
|
5580
5616
|
},
|
|
5581
5617
|
{
|
|
5618
|
+
"gap": "sm",
|
|
5582
5619
|
"children": [
|
|
5583
5620
|
{
|
|
5584
5621
|
"type": "button",
|
|
5585
|
-
"icon": "edit",
|
|
5586
|
-
"variant": "primary",
|
|
5587
5622
|
"label": "Edit",
|
|
5588
|
-
"
|
|
5623
|
+
"variant": "primary",
|
|
5624
|
+
"action": "EDIT",
|
|
5625
|
+
"icon": "edit"
|
|
5589
5626
|
},
|
|
5590
5627
|
{
|
|
5591
|
-
"label": "Close",
|
|
5592
|
-
"variant": "ghost",
|
|
5593
5628
|
"action": "CLOSE",
|
|
5594
|
-
"
|
|
5629
|
+
"label": "Close",
|
|
5630
|
+
"type": "button",
|
|
5631
|
+
"variant": "ghost"
|
|
5595
5632
|
}
|
|
5596
5633
|
],
|
|
5597
5634
|
"type": "stack",
|
|
5598
|
-
"
|
|
5599
|
-
"
|
|
5600
|
-
"justify": "end"
|
|
5635
|
+
"justify": "end",
|
|
5636
|
+
"direction": "horizontal"
|
|
5601
5637
|
}
|
|
5602
5638
|
],
|
|
5603
5639
|
"gap": "md"
|
|
@@ -5843,11 +5879,11 @@
|
|
|
5843
5879
|
"fetch",
|
|
5844
5880
|
"OrderRecord",
|
|
5845
5881
|
{
|
|
5846
|
-
"id": "@payload.id",
|
|
5847
5882
|
"emit": {
|
|
5848
|
-
"
|
|
5849
|
-
"
|
|
5850
|
-
}
|
|
5883
|
+
"success": "OrderRecordLoaded",
|
|
5884
|
+
"failure": "OrderRecordLoadFailed"
|
|
5885
|
+
},
|
|
5886
|
+
"id": "@payload.id"
|
|
5851
5887
|
}
|
|
5852
5888
|
],
|
|
5853
5889
|
[
|
|
@@ -5859,32 +5895,35 @@
|
|
|
5859
5895
|
"gap": "md",
|
|
5860
5896
|
"children": [
|
|
5861
5897
|
{
|
|
5862
|
-
"align": "center",
|
|
5863
5898
|
"type": "stack",
|
|
5899
|
+
"direction": "horizontal",
|
|
5864
5900
|
"gap": "sm",
|
|
5901
|
+
"align": "center",
|
|
5865
5902
|
"children": [
|
|
5866
5903
|
{
|
|
5867
5904
|
"type": "icon",
|
|
5868
5905
|
"name": "alert-triangle"
|
|
5869
5906
|
},
|
|
5870
5907
|
{
|
|
5908
|
+
"type": "typography",
|
|
5871
5909
|
"content": "Delete OrderRecord",
|
|
5872
|
-
"variant": "h3"
|
|
5873
|
-
"type": "typography"
|
|
5910
|
+
"variant": "h3"
|
|
5874
5911
|
}
|
|
5875
|
-
]
|
|
5876
|
-
"direction": "horizontal"
|
|
5912
|
+
]
|
|
5877
5913
|
},
|
|
5878
5914
|
{
|
|
5879
5915
|
"type": "divider"
|
|
5880
5916
|
},
|
|
5881
5917
|
{
|
|
5918
|
+
"message": "This action cannot be undone.",
|
|
5882
5919
|
"type": "alert",
|
|
5883
|
-
"variant": "error"
|
|
5884
|
-
"message": "This action cannot be undone."
|
|
5920
|
+
"variant": "error"
|
|
5885
5921
|
},
|
|
5886
5922
|
{
|
|
5887
5923
|
"direction": "horizontal",
|
|
5924
|
+
"gap": "sm",
|
|
5925
|
+
"justify": "end",
|
|
5926
|
+
"type": "stack",
|
|
5888
5927
|
"children": [
|
|
5889
5928
|
{
|
|
5890
5929
|
"action": "CANCEL",
|
|
@@ -5893,16 +5932,13 @@
|
|
|
5893
5932
|
"label": "Cancel"
|
|
5894
5933
|
},
|
|
5895
5934
|
{
|
|
5896
|
-
"
|
|
5935
|
+
"icon": "check",
|
|
5897
5936
|
"variant": "danger",
|
|
5937
|
+
"type": "button",
|
|
5898
5938
|
"label": "Delete",
|
|
5899
|
-
"action": "CONFIRM_DELETE"
|
|
5900
|
-
"icon": "check"
|
|
5939
|
+
"action": "CONFIRM_DELETE"
|
|
5901
5940
|
}
|
|
5902
|
-
]
|
|
5903
|
-
"justify": "end",
|
|
5904
|
-
"type": "stack",
|
|
5905
|
-
"gap": "sm"
|
|
5941
|
+
]
|
|
5906
5942
|
}
|
|
5907
5943
|
]
|
|
5908
5944
|
}
|
|
@@ -5943,8 +5979,8 @@
|
|
|
5943
5979
|
"OrderRecord",
|
|
5944
5980
|
{
|
|
5945
5981
|
"emit": {
|
|
5946
|
-
"
|
|
5947
|
-
"
|
|
5982
|
+
"failure": "OrderRecordLoadFailed",
|
|
5983
|
+
"success": "OrderRecordLoaded"
|
|
5948
5984
|
}
|
|
5949
5985
|
}
|
|
5950
5986
|
],
|
|
@@ -5976,8 +6012,8 @@
|
|
|
5976
6012
|
"OrderRecord",
|
|
5977
6013
|
{
|
|
5978
6014
|
"emit": {
|
|
5979
|
-
"
|
|
5980
|
-
"
|
|
6015
|
+
"success": "OrderRecordLoaded",
|
|
6016
|
+
"failure": "OrderRecordLoadFailed"
|
|
5981
6017
|
}
|
|
5982
6018
|
}
|
|
5983
6019
|
]
|
|
@@ -6005,8 +6041,8 @@
|
|
|
6005
6041
|
"OrderRecord",
|
|
6006
6042
|
{
|
|
6007
6043
|
"emit": {
|
|
6008
|
-
"
|
|
6009
|
-
"
|
|
6044
|
+
"success": "OrderRecordLoaded",
|
|
6045
|
+
"failure": "OrderRecordLoadFailed"
|
|
6010
6046
|
}
|
|
6011
6047
|
}
|
|
6012
6048
|
]
|