@almadar/std 14.26.0 → 14.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/behaviors/registry/app/atoms/std-applicant.orb +496 -42
  2. package/behaviors/registry/app/atoms/std-approval-chain.orb +106 -0
  3. package/behaviors/registry/app/atoms/std-approval-request.orb +433 -593
  4. package/behaviors/registry/app/atoms/std-campaign-goal.orb +438 -228
  5. package/behaviors/registry/app/atoms/std-change-order.orb +565 -307
  6. package/behaviors/registry/app/atoms/std-chart-of-accounts.orb +434 -97
  7. package/behaviors/registry/app/atoms/std-checkin.orb +434 -270
  8. package/behaviors/registry/app/atoms/std-class-roster.orb +495 -61
  9. package/behaviors/registry/app/atoms/std-class-session.orb +485 -104
  10. package/behaviors/registry/app/atoms/std-court-deadline.orb +519 -88
  11. package/behaviors/registry/app/atoms/std-customer-account.orb +577 -97
  12. package/behaviors/registry/app/atoms/std-donation-receipt.orb +498 -55
  13. package/behaviors/registry/app/atoms/std-donor.orb +445 -135
  14. package/behaviors/registry/app/atoms/std-drip-sequence.orb +445 -62
  15. package/behaviors/registry/app/atoms/std-driver.orb +465 -480
  16. package/behaviors/registry/app/atoms/std-dunning.orb +450 -512
  17. package/behaviors/registry/app/atoms/std-email-broadcast.orb +517 -64
  18. package/behaviors/registry/app/atoms/std-event.orb +465 -667
  19. package/behaviors/registry/app/atoms/std-health-score.orb +368 -371
  20. package/behaviors/registry/app/atoms/std-help-article.orb +373 -506
  21. package/behaviors/registry/app/atoms/std-help-category.orb +344 -359
  22. package/behaviors/registry/app/atoms/std-interview-slot.orb +490 -48
  23. package/behaviors/registry/app/atoms/std-invoice.orb +494 -291
  24. package/behaviors/registry/app/atoms/std-kitchen-display.orb +588 -96
  25. package/behaviors/registry/app/atoms/std-lease.orb +506 -190
  26. package/behaviors/registry/app/atoms/std-ledger-entry.orb +483 -154
  27. package/behaviors/registry/app/atoms/std-maintenance-request.orb +642 -192
  28. package/behaviors/registry/app/atoms/std-matter.orb +486 -318
  29. package/behaviors/registry/app/atoms/std-membership.orb +512 -102
  30. package/behaviors/registry/app/atoms/std-menu.orb +775 -183
  31. package/behaviors/registry/app/atoms/std-modifier-group.orb +522 -104
  32. package/behaviors/registry/app/atoms/std-multi-party-transaction.orb +130 -0
  33. package/behaviors/registry/app/atoms/std-nps-survey.orb +319 -327
  34. package/behaviors/registry/app/atoms/std-offer-letter.orb +497 -47
  35. package/behaviors/registry/app/atoms/std-payout-ledger.orb +378 -362
  36. package/behaviors/registry/app/atoms/std-pipeline.orb +139 -0
  37. package/behaviors/registry/app/atoms/std-question-bank.orb +379 -346
  38. package/behaviors/registry/app/atoms/std-receipt.orb +553 -44
  39. package/behaviors/registry/app/atoms/std-recurring-charge.orb +419 -832
  40. package/behaviors/registry/app/atoms/std-recurring-schedule.orb +94 -0
  41. package/behaviors/registry/app/atoms/std-renewal-risk.orb +370 -421
  42. package/behaviors/registry/app/atoms/std-rent-charge.orb +657 -55
  43. package/behaviors/registry/app/atoms/std-reorder-rule.orb +510 -59
  44. package/behaviors/registry/app/atoms/std-response-collector.orb +451 -144
  45. package/behaviors/registry/app/atoms/std-rfi.orb +502 -461
  46. package/behaviors/registry/app/atoms/std-route-optimize.orb +448 -158
  47. package/behaviors/registry/app/atoms/std-segment.orb +360 -98
  48. package/behaviors/registry/app/atoms/std-stock-level.orb +486 -103
  49. package/behaviors/registry/app/atoms/std-submittal.orb +538 -526
  50. package/behaviors/registry/app/atoms/std-table-map.orb +88 -51
  51. package/behaviors/registry/app/atoms/std-technician-dispatch.orb +653 -71
  52. package/behaviors/registry/app/atoms/std-telematics-event.orb +310 -215
  53. package/behaviors/registry/app/atoms/std-template-editor.orb +513 -90
  54. package/behaviors/registry/app/atoms/std-tenant.orb +525 -66
  55. package/behaviors/registry/app/atoms/std-ticket-tier.orb +472 -460
  56. package/behaviors/registry/app/atoms/std-time-entry.orb +354 -317
  57. package/behaviors/registry/app/atoms/std-timeline.orb +108 -0
  58. package/behaviors/registry/app/atoms/std-timesheet.orb +551 -284
  59. package/behaviors/registry/app/atoms/std-trial.orb +410 -317
  60. package/behaviors/registry/app/atoms/std-vehicle.orb +398 -563
  61. package/behaviors/registry/app/atoms/std-waitlist.orb +372 -283
  62. package/behaviors/registry/app/atoms/std-warehouse.orb +273 -214
  63. package/behaviors/registry/app/atoms/std-wizard-branching.orb +129 -0
  64. package/behaviors/registry/app/atoms/std-work-order.orb +628 -240
  65. package/behaviors/registry/app/molecules/std-applicant-form.orb +89 -83
  66. package/behaviors/registry/app/molecules/std-application.orb +178 -263
  67. package/behaviors/registry/app/molecules/std-broadcast-builder.orb +67 -176
  68. package/behaviors/registry/app/molecules/std-cart.orb +78 -72
  69. package/behaviors/registry/app/molecules/std-form-builder.orb +437 -176
  70. package/behaviors/registry/app/molecules/std-ledger-entry-form.orb +608 -89
  71. package/behaviors/registry/app/molecules/std-stock-adjustment.orb +501 -102
  72. package/behaviors/registry/app/molecules/std-vendor-onboarding.orb +383 -469
  73. package/behaviors/registry/core/atoms/std-billable-hour.orb +495 -91
  74. package/behaviors/registry/core/atoms/std-board.orb +1367 -0
  75. package/behaviors/registry/core/atoms/std-branching-logic.orb +271 -600
  76. package/behaviors/registry/core/atoms/std-event-log.orb +777 -0
  77. package/behaviors/registry/core/atoms/std-file-store.orb +534 -164
  78. package/behaviors/registry/core/atoms/std-gallery.orb +118 -101
  79. package/behaviors/registry/core/atoms/std-image-upload-multi.orb +87 -57
  80. package/behaviors/registry/core/atoms/std-multi-party-flow.orb +1313 -0
  81. package/behaviors/registry/core/atoms/std-page-tree.orb +342 -484
  82. package/behaviors/registry/core/atoms/std-recurrence.orb +937 -0
  83. package/behaviors/registry/core/atoms/std-rich-editor.orb +288 -416
  84. package/behaviors/registry/core/atoms/std-step-flow.orb +1155 -0
  85. package/behaviors/registry/core/atoms/std-version-history.orb +454 -430
  86. package/behaviors/registry/core/atoms/std-wizard.orb +1085 -0
  87. package/behaviors/registry/core/molecules/std-wizard-form.orb +222 -147
  88. package/dist/behaviors/registry/app/atoms/std-applicant.orb +496 -42
  89. package/dist/behaviors/registry/app/atoms/std-approval-chain.orb +106 -0
  90. package/dist/behaviors/registry/app/atoms/std-approval-request.orb +433 -593
  91. package/dist/behaviors/registry/app/atoms/std-campaign-goal.orb +438 -228
  92. package/dist/behaviors/registry/app/atoms/std-change-order.orb +565 -307
  93. package/dist/behaviors/registry/app/atoms/std-chart-of-accounts.orb +434 -97
  94. package/dist/behaviors/registry/app/atoms/std-checkin.orb +434 -270
  95. package/dist/behaviors/registry/app/atoms/std-class-roster.orb +495 -61
  96. package/dist/behaviors/registry/app/atoms/std-class-session.orb +485 -104
  97. package/dist/behaviors/registry/app/atoms/std-court-deadline.orb +519 -88
  98. package/dist/behaviors/registry/app/atoms/std-customer-account.orb +577 -97
  99. package/dist/behaviors/registry/app/atoms/std-donation-receipt.orb +498 -55
  100. package/dist/behaviors/registry/app/atoms/std-donor.orb +445 -135
  101. package/dist/behaviors/registry/app/atoms/std-drip-sequence.orb +445 -62
  102. package/dist/behaviors/registry/app/atoms/std-driver.orb +465 -480
  103. package/dist/behaviors/registry/app/atoms/std-dunning.orb +450 -512
  104. package/dist/behaviors/registry/app/atoms/std-email-broadcast.orb +517 -64
  105. package/dist/behaviors/registry/app/atoms/std-event.orb +465 -667
  106. package/dist/behaviors/registry/app/atoms/std-health-score.orb +368 -371
  107. package/dist/behaviors/registry/app/atoms/std-help-article.orb +373 -506
  108. package/dist/behaviors/registry/app/atoms/std-help-category.orb +344 -359
  109. package/dist/behaviors/registry/app/atoms/std-interview-slot.orb +490 -48
  110. package/dist/behaviors/registry/app/atoms/std-invoice.orb +494 -291
  111. package/dist/behaviors/registry/app/atoms/std-kitchen-display.orb +588 -96
  112. package/dist/behaviors/registry/app/atoms/std-lease.orb +506 -190
  113. package/dist/behaviors/registry/app/atoms/std-ledger-entry.orb +483 -154
  114. package/dist/behaviors/registry/app/atoms/std-maintenance-request.orb +642 -192
  115. package/dist/behaviors/registry/app/atoms/std-matter.orb +486 -318
  116. package/dist/behaviors/registry/app/atoms/std-membership.orb +512 -102
  117. package/dist/behaviors/registry/app/atoms/std-menu.orb +775 -183
  118. package/dist/behaviors/registry/app/atoms/std-modifier-group.orb +522 -104
  119. package/dist/behaviors/registry/app/atoms/std-multi-party-transaction.orb +130 -0
  120. package/dist/behaviors/registry/app/atoms/std-nps-survey.orb +319 -327
  121. package/dist/behaviors/registry/app/atoms/std-offer-letter.orb +497 -47
  122. package/dist/behaviors/registry/app/atoms/std-payout-ledger.orb +378 -362
  123. package/dist/behaviors/registry/app/atoms/std-pipeline.orb +139 -0
  124. package/dist/behaviors/registry/app/atoms/std-question-bank.orb +379 -346
  125. package/dist/behaviors/registry/app/atoms/std-receipt.orb +553 -44
  126. package/dist/behaviors/registry/app/atoms/std-recurring-charge.orb +419 -832
  127. package/dist/behaviors/registry/app/atoms/std-recurring-schedule.orb +94 -0
  128. package/dist/behaviors/registry/app/atoms/std-renewal-risk.orb +370 -421
  129. package/dist/behaviors/registry/app/atoms/std-rent-charge.orb +657 -55
  130. package/dist/behaviors/registry/app/atoms/std-reorder-rule.orb +510 -59
  131. package/dist/behaviors/registry/app/atoms/std-response-collector.orb +451 -144
  132. package/dist/behaviors/registry/app/atoms/std-rfi.orb +502 -461
  133. package/dist/behaviors/registry/app/atoms/std-route-optimize.orb +448 -158
  134. package/dist/behaviors/registry/app/atoms/std-segment.orb +360 -98
  135. package/dist/behaviors/registry/app/atoms/std-stock-level.orb +486 -103
  136. package/dist/behaviors/registry/app/atoms/std-submittal.orb +538 -526
  137. package/dist/behaviors/registry/app/atoms/std-table-map.orb +88 -51
  138. package/dist/behaviors/registry/app/atoms/std-technician-dispatch.orb +653 -71
  139. package/dist/behaviors/registry/app/atoms/std-telematics-event.orb +310 -215
  140. package/dist/behaviors/registry/app/atoms/std-template-editor.orb +513 -90
  141. package/dist/behaviors/registry/app/atoms/std-tenant.orb +525 -66
  142. package/dist/behaviors/registry/app/atoms/std-ticket-tier.orb +472 -460
  143. package/dist/behaviors/registry/app/atoms/std-time-entry.orb +354 -317
  144. package/dist/behaviors/registry/app/atoms/std-timeline.orb +108 -0
  145. package/dist/behaviors/registry/app/atoms/std-timesheet.orb +551 -284
  146. package/dist/behaviors/registry/app/atoms/std-trial.orb +410 -317
  147. package/dist/behaviors/registry/app/atoms/std-vehicle.orb +398 -563
  148. package/dist/behaviors/registry/app/atoms/std-waitlist.orb +372 -283
  149. package/dist/behaviors/registry/app/atoms/std-warehouse.orb +273 -214
  150. package/dist/behaviors/registry/app/atoms/std-wizard-branching.orb +129 -0
  151. package/dist/behaviors/registry/app/atoms/std-work-order.orb +628 -240
  152. package/dist/behaviors/registry/app/molecules/std-applicant-form.orb +89 -83
  153. package/dist/behaviors/registry/app/molecules/std-application.orb +178 -263
  154. package/dist/behaviors/registry/app/molecules/std-broadcast-builder.orb +67 -176
  155. package/dist/behaviors/registry/app/molecules/std-cart.orb +78 -72
  156. package/dist/behaviors/registry/app/molecules/std-form-builder.orb +437 -176
  157. package/dist/behaviors/registry/app/molecules/std-ledger-entry-form.orb +608 -89
  158. package/dist/behaviors/registry/app/molecules/std-stock-adjustment.orb +501 -102
  159. package/dist/behaviors/registry/app/molecules/std-vendor-onboarding.orb +383 -469
  160. package/dist/behaviors/registry/core/atoms/std-billable-hour.orb +495 -91
  161. package/dist/behaviors/registry/core/atoms/std-board.orb +1367 -0
  162. package/dist/behaviors/registry/core/atoms/std-branching-logic.orb +271 -600
  163. package/dist/behaviors/registry/core/atoms/std-event-log.orb +777 -0
  164. package/dist/behaviors/registry/core/atoms/std-file-store.orb +534 -164
  165. package/dist/behaviors/registry/core/atoms/std-gallery.orb +118 -101
  166. package/dist/behaviors/registry/core/atoms/std-image-upload-multi.orb +87 -57
  167. package/dist/behaviors/registry/core/atoms/std-multi-party-flow.orb +1313 -0
  168. package/dist/behaviors/registry/core/atoms/std-page-tree.orb +342 -484
  169. package/dist/behaviors/registry/core/atoms/std-recurrence.orb +937 -0
  170. package/dist/behaviors/registry/core/atoms/std-rich-editor.orb +288 -416
  171. package/dist/behaviors/registry/core/atoms/std-step-flow.orb +1155 -0
  172. package/dist/behaviors/registry/core/atoms/std-version-history.orb +454 -430
  173. package/dist/behaviors/registry/core/atoms/std-wizard.orb +1085 -0
  174. package/dist/behaviors/registry/core/molecules/std-wizard-form.orb +222 -147
  175. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "std-warehouse",
3
3
  "version": "1.0.0",
4
- "description": "std-warehouse — physical or logical storage location where stock lives. Used by inventory and retail to scope stock counts.",
4
+ "description": "std-warehouse — physical or logical storage location. Lists warehouses in `browsing`; opens a warehouse detail view (name, code, address, type, active flag, total SKU count) in `viewing_single`.",
5
5
  "orbitals": [
6
6
  {
7
7
  "name": "WarehouseOrbital",
@@ -65,9 +65,42 @@
65
65
  "name": "id",
66
66
  "type": "string",
67
67
  "required": true
68
+ },
69
+ {
70
+ "name": "row.id",
71
+ "type": "string",
72
+ "required": true
73
+ },
74
+ {
75
+ "name": "row.name",
76
+ "type": "string",
77
+ "required": true
78
+ },
79
+ {
80
+ "name": "row.code",
81
+ "type": "string"
82
+ },
83
+ {
84
+ "name": "row.address",
85
+ "type": "string"
86
+ },
87
+ {
88
+ "name": "row.type",
89
+ "type": "string"
90
+ },
91
+ {
92
+ "name": "row.isActive",
93
+ "type": "boolean"
94
+ },
95
+ {
96
+ "name": "row.totalSkus",
97
+ "type": "number"
68
98
  }
69
99
  ]
70
100
  },
101
+ {
102
+ "event": "CLOSE_WAREHOUSE"
103
+ },
71
104
  {
72
105
  "event": "WarehouseLoaded",
73
106
  "payloadSchema": [
@@ -100,6 +133,9 @@
100
133
  {
101
134
  "name": "browsing"
102
135
  },
136
+ {
137
+ "name": "viewing_single"
138
+ },
103
139
  {
104
140
  "name": "error"
105
141
  }
@@ -141,8 +177,16 @@
141
177
  "name": "id",
142
178
  "type": "string",
143
179
  "required": true
180
+ },
181
+ {
182
+ "name": "row",
183
+ "type": "Warehouse"
144
184
  }
145
185
  ]
186
+ },
187
+ {
188
+ "key": "CLOSE_WAREHOUSE",
189
+ "name": "Close Warehouse"
146
190
  }
147
191
  ],
148
192
  "transitions": [
@@ -156,8 +200,8 @@
156
200
  "Warehouse",
157
201
  {
158
202
  "emit": {
159
- "success": "WarehouseLoaded",
160
- "failure": "WarehouseLoadFailed"
203
+ "failure": "WarehouseLoadFailed",
204
+ "success": "WarehouseLoaded"
161
205
  }
162
206
  }
163
207
  ],
@@ -165,22 +209,23 @@
165
209
  "render-ui",
166
210
  "main",
167
211
  {
168
- "type": "stack",
169
- "gap": "md",
212
+ "direction": "vertical",
170
213
  "children": [
171
214
  {
172
- "type": "spinner"
215
+ "type": "spinner",
216
+ "size": "md"
173
217
  },
174
218
  {
175
- "color": "muted",
176
- "content": "Loading locations…",
219
+ "type": "typography",
177
220
  "variant": "caption",
178
- "type": "typography"
221
+ "content": "Loading locations…",
222
+ "color": "muted"
179
223
  }
180
224
  ],
181
- "direction": "vertical",
182
- "align": "center",
183
- "className": "py-12"
225
+ "className": "py-12",
226
+ "type": "stack",
227
+ "gap": "md",
228
+ "align": "center"
184
229
  }
185
230
  ]
186
231
  ]
@@ -194,235 +239,80 @@
194
239
  "render-ui",
195
240
  "main",
196
241
  {
197
- "direction": "vertical",
198
- "gap": "md",
199
242
  "type": "stack",
243
+ "direction": "vertical",
200
244
  "children": [
201
245
  {
246
+ "direction": "horizontal",
247
+ "gap": "sm",
248
+ "align": "center",
202
249
  "children": [
203
250
  {
204
251
  "name": "warehouse",
205
252
  "type": "icon"
206
253
  },
207
254
  {
255
+ "variant": "h3",
208
256
  "type": "typography",
209
- "content": "@config.title",
210
- "variant": "h3"
257
+ "content": "@config.title"
211
258
  }
212
259
  ],
213
- "type": "stack",
214
- "gap": "sm",
215
- "direction": "horizontal"
260
+ "type": "stack"
216
261
  },
217
262
  {
218
- "items": [
219
- {
220
- "label": "Warehouses",
221
- "id": "warehouses"
222
- },
223
- {
224
- "label": "Bins",
225
- "id": "bins"
226
- },
227
- {
228
- "id": "zones",
229
- "label": "Zones"
230
- }
231
- ],
232
- "type": "tabs",
233
- "activeTab": "warehouses"
234
- },
235
- {
236
- "type": "grid",
237
- "gap": "md",
238
- "cols": 3.0,
239
263
  "children": [
240
264
  {
241
- "icon": "package",
242
- "type": "resource-counter",
243
- "max": 10000.0,
244
- "label": "Total SKUs",
245
- "value": 0.0,
246
- "size": "md",
247
- "color": "text-emerald-400"
265
+ "label": "Total locations",
266
+ "type": "stat-display",
267
+ "icon": "warehouse",
268
+ "value": "@payload.data.length"
248
269
  },
249
270
  {
250
- "icon": "boxes",
251
- "type": "resource-counter",
252
- "label": "Pallets",
253
- "max": 500.0,
254
- "value": 320.0,
255
- "color": "text-blue-400",
256
- "size": "md"
257
- },
258
- {
259
- "effects": [
260
- {
261
- "icon": "alert-triangle",
262
- "label": "Below reorder"
263
- }
264
- ],
265
- "name": "Low-stock alert: SKU-4421",
266
- "type": "enemy-plate",
267
- "health": 4.0,
268
- "maxHealth": 100.0,
269
- "level": 1.0
270
- }
271
- ]
272
- },
273
- {
274
- "children": [
275
- {
276
- "quantity": 12.0,
277
- "label": "Bin A-01",
278
- "type": "item-slot",
279
- "selected": false,
280
- "icon": "package",
281
- "rarity": "common",
282
- "size": "md",
283
- "empty": false
284
- },
285
- {
286
- "icon": "package",
287
- "label": "Bin A-02",
288
- "quantity": 8.0,
289
- "rarity": "uncommon",
290
- "size": "md",
291
- "empty": false,
292
- "selected": false,
293
- "type": "item-slot"
294
- },
295
- {
296
- "quantity": 0.0,
297
- "type": "item-slot",
298
- "icon": "package",
299
- "label": "Bin A-03",
300
- "size": "md",
301
- "selected": false,
302
- "empty": true,
303
- "rarity": "common"
271
+ "value": "12",
272
+ "type": "stat-display",
273
+ "icon": "check-circle",
274
+ "label": "Active"
304
275
  },
305
276
  {
306
- "icon": "package",
307
- "selected": true,
308
- "empty": false,
309
- "label": "Bin A-04",
310
- "type": "item-slot",
311
- "quantity": 3.0,
312
- "size": "md",
313
- "rarity": "rare"
314
- }
315
- ],
316
- "type": "grid",
317
- "cols": 4.0,
318
- "gap": "sm"
319
- },
320
- {
321
- "active": [
322
- {
323
- "icon": "zap",
324
- "label": "Fast Pick",
325
- "id": "fastpick"
277
+ "label": "Total SKUs",
278
+ "value": "48,392",
279
+ "type": "stat-display",
280
+ "icon": "package"
326
281
  },
327
282
  {
328
- "id": "scan",
329
- "label": "Auto Scan",
330
- "icon": "scan"
283
+ "type": "stat-display",
284
+ "value": "73%",
285
+ "icon": "bar-chart",
286
+ "label": "Avg utilization"
331
287
  }
332
288
  ],
333
- "maxSlots": 4.0,
334
- "type": "powerup-slots"
335
- },
336
- {
337
- "canCraft": true,
338
- "output": {
339
- "label": "Kit 01",
340
- "rarity": "rare",
341
- "icon": "box"
342
- },
343
- "type": "crafting-recipe",
344
- "inputs": [
345
- {
346
- "label": "Part A",
347
- "icon": "package",
348
- "available": 2.0,
349
- "required": 2.0
350
- },
351
- {
352
- "icon": "package",
353
- "required": 1.0,
354
- "label": "Part B",
355
- "available": 1.0
356
- }
357
- ]
358
- },
359
- {
360
- "type": "file-tree",
361
- "indent": 16.0,
362
- "tree": [
363
- {
364
- "children": [
365
- {
366
- "path": "/wh01/a",
367
- "children": [
368
- {
369
- "path": "/wh01/a/01",
370
- "name": "Bin A-01",
371
- "type": "file"
372
- },
373
- {
374
- "name": "Bin A-02",
375
- "path": "/wh01/a/02",
376
- "type": "file"
377
- }
378
- ],
379
- "type": "dir",
380
- "name": "Aisle A"
381
- },
382
- {
383
- "type": "dir",
384
- "children": [
385
- {
386
- "path": "/wh01/b/01",
387
- "name": "Bin B-01",
388
- "type": "file"
389
- }
390
- ],
391
- "name": "Aisle B",
392
- "path": "/wh01/b"
393
- }
394
- ],
395
- "path": "/wh01",
396
- "name": "Warehouse 01",
397
- "type": "dir"
398
- }
399
- ]
289
+ "type": "simple-grid",
290
+ "cols": 4.0
400
291
  },
401
292
  {
402
293
  "type": "divider"
403
294
  },
404
295
  {
405
- "cols": 1.0,
406
296
  "fields": [
407
297
  {
298
+ "label": "Code",
408
299
  "variant": "caption",
409
- "name": "code",
410
- "label": "Code"
300
+ "name": "code"
411
301
  },
412
302
  {
303
+ "variant": "caption",
413
304
  "name": "name",
414
- "label": "Name",
415
- "variant": "caption"
305
+ "label": "Name"
416
306
  },
417
307
  {
308
+ "label": "Type",
418
309
  "variant": "badge",
419
- "name": "type",
420
- "label": "Type"
310
+ "name": "type"
421
311
  },
422
312
  {
423
- "label": "SKUs",
313
+ "variant": "caption",
424
314
  "name": "totalSkus",
425
- "variant": "caption"
315
+ "label": "SKUs"
426
316
  },
427
317
  {
428
318
  "name": "isActive",
@@ -431,18 +321,20 @@
431
321
  }
432
322
  ],
433
323
  "type": "data-grid",
324
+ "gap": "sm",
434
325
  "itemActions": [
435
326
  {
436
- "label": "Open",
437
- "icon": "arrow-right",
438
327
  "event": "OPEN_WAREHOUSE",
439
- "variant": "primary"
328
+ "variant": "primary",
329
+ "label": "Open",
330
+ "icon": "arrow-right"
440
331
  }
441
332
  ],
442
333
  "entity": "@payload.data",
443
- "gap": "sm"
334
+ "cols": 1.0
444
335
  }
445
- ]
336
+ ],
337
+ "gap": "md"
446
338
  }
447
339
  ]
448
340
  ]
@@ -457,29 +349,196 @@
457
349
  "main",
458
350
  {
459
351
  "message": "@payload.error",
460
- "variant": "error",
461
- "type": "alert"
352
+ "type": "alert",
353
+ "variant": "error"
462
354
  }
463
355
  ]
464
356
  ]
465
357
  },
466
358
  {
467
359
  "from": "browsing",
468
- "to": "browsing",
360
+ "to": "viewing_single",
469
361
  "event": "OPEN_WAREHOUSE",
470
362
  "effects": [
471
363
  [
472
364
  "set",
473
365
  "@entity.id",
474
- "@payload.id"
366
+ "@payload.row.id"
367
+ ],
368
+ [
369
+ "set",
370
+ "@entity.name",
371
+ "@payload.row.name"
372
+ ],
373
+ [
374
+ "set",
375
+ "@entity.code",
376
+ "@payload.row.code"
377
+ ],
378
+ [
379
+ "set",
380
+ "@entity.address",
381
+ "@payload.row.address"
382
+ ],
383
+ [
384
+ "set",
385
+ "@entity.type",
386
+ "@payload.row.type"
387
+ ],
388
+ [
389
+ "set",
390
+ "@entity.isActive",
391
+ "@payload.row.isActive"
392
+ ],
393
+ [
394
+ "set",
395
+ "@entity.totalSkus",
396
+ "@payload.row.totalSkus"
475
397
  ],
476
398
  [
477
399
  "render-ui",
478
400
  "main",
479
401
  {
480
- "message": "Opened location",
481
- "type": "alert",
482
- "variant": "info"
402
+ "direction": "vertical",
403
+ "children": [
404
+ {
405
+ "gap": "sm",
406
+ "align": "center",
407
+ "type": "stack",
408
+ "direction": "horizontal",
409
+ "children": [
410
+ {
411
+ "type": "button",
412
+ "label": "Back",
413
+ "variant": "ghost",
414
+ "action": "CLOSE_WAREHOUSE"
415
+ },
416
+ {
417
+ "type": "icon",
418
+ "name": "warehouse"
419
+ },
420
+ {
421
+ "content": "@entity.name",
422
+ "variant": "h3",
423
+ "type": "typography"
424
+ },
425
+ {
426
+ "label": "@entity.type",
427
+ "variant": "default",
428
+ "type": "badge"
429
+ }
430
+ ]
431
+ },
432
+ {
433
+ "type": "divider"
434
+ },
435
+ {
436
+ "type": "stack",
437
+ "direction": "vertical",
438
+ "children": [
439
+ {
440
+ "gap": "md",
441
+ "direction": "horizontal",
442
+ "type": "stack",
443
+ "children": [
444
+ {
445
+ "color": "muted",
446
+ "type": "typography",
447
+ "content": "Code",
448
+ "variant": "caption"
449
+ },
450
+ {
451
+ "content": "@entity.code",
452
+ "type": "typography",
453
+ "variant": "body"
454
+ }
455
+ ]
456
+ },
457
+ {
458
+ "gap": "md",
459
+ "type": "stack",
460
+ "direction": "horizontal",
461
+ "children": [
462
+ {
463
+ "type": "typography",
464
+ "color": "muted",
465
+ "content": "Address",
466
+ "variant": "caption"
467
+ },
468
+ {
469
+ "content": "@entity.address",
470
+ "variant": "body",
471
+ "type": "typography"
472
+ }
473
+ ]
474
+ }
475
+ ],
476
+ "gap": "sm"
477
+ },
478
+ {
479
+ "type": "divider"
480
+ },
481
+ {
482
+ "cols": 2.0,
483
+ "children": [
484
+ {
485
+ "type": "stat-display",
486
+ "label": "Total SKUs",
487
+ "value": "@entity.totalSkus",
488
+ "icon": "package"
489
+ },
490
+ {
491
+ "value": "@entity.type",
492
+ "type": "stat-display",
493
+ "icon": "tag",
494
+ "label": "Type"
495
+ }
496
+ ],
497
+ "type": "simple-grid"
498
+ }
499
+ ],
500
+ "type": "stack",
501
+ "gap": "md"
502
+ }
503
+ ]
504
+ ]
505
+ },
506
+ {
507
+ "from": "viewing_single",
508
+ "to": "loading",
509
+ "event": "CLOSE_WAREHOUSE",
510
+ "effects": [
511
+ [
512
+ "fetch",
513
+ "Warehouse",
514
+ {
515
+ "emit": {
516
+ "failure": "WarehouseLoadFailed",
517
+ "success": "WarehouseLoaded"
518
+ }
519
+ }
520
+ ],
521
+ [
522
+ "render-ui",
523
+ "main",
524
+ {
525
+ "type": "stack",
526
+ "align": "center",
527
+ "children": [
528
+ {
529
+ "type": "spinner",
530
+ "size": "md"
531
+ },
532
+ {
533
+ "variant": "caption",
534
+ "color": "muted",
535
+ "content": "Loading locations…",
536
+ "type": "typography"
537
+ }
538
+ ],
539
+ "direction": "vertical",
540
+ "gap": "md",
541
+ "className": "py-12"
483
542
  }
484
543
  ]
485
544
  ]
@@ -503,8 +562,8 @@
503
562
  "render-ui",
504
563
  "main",
505
564
  {
506
- "type": "spinner",
507
- "size": "sm"
565
+ "size": "sm",
566
+ "type": "spinner"
508
567
  }
509
568
  ]
510
569
  ]