@almadar/std 3.2.1 → 3.2.2

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 (262) hide show
  1. package/behaviors/exports/atoms/std-async.orb +41 -24
  2. package/behaviors/exports/atoms/std-browse.orb +12 -5
  3. package/behaviors/exports/atoms/std-cache-aside.orb +256 -42
  4. package/behaviors/exports/atoms/std-circuit-breaker.orb +577 -97
  5. package/behaviors/exports/atoms/std-collision.orb +278 -206
  6. package/behaviors/exports/atoms/std-combat-log.orb +6 -1
  7. package/behaviors/exports/atoms/std-combat.orb +6 -1
  8. package/behaviors/exports/atoms/std-confirmation.orb +212 -7
  9. package/behaviors/exports/atoms/std-dialogue-box.orb +6 -1
  10. package/behaviors/exports/atoms/std-display.orb +166 -21
  11. package/behaviors/exports/atoms/std-drawer.orb +208 -104
  12. package/behaviors/exports/atoms/std-filter.orb +211 -18
  13. package/behaviors/exports/atoms/std-game-audio.orb +6 -1
  14. package/behaviors/exports/atoms/std-game-canvas2d.orb +6 -1
  15. package/behaviors/exports/atoms/std-game-canvas3d.orb +6 -1
  16. package/behaviors/exports/atoms/std-game-hud.orb +6 -1
  17. package/behaviors/exports/atoms/std-game-menu.orb +6 -1
  18. package/behaviors/exports/atoms/std-game-over-screen.orb +6 -1
  19. package/behaviors/exports/atoms/std-gameflow.orb +100 -5
  20. package/behaviors/exports/atoms/std-input.orb +142 -137
  21. package/behaviors/exports/atoms/std-inventory-panel.orb +6 -1
  22. package/behaviors/exports/atoms/std-isometric-canvas.orb +6 -1
  23. package/behaviors/exports/atoms/std-loading.orb +27 -76
  24. package/behaviors/exports/atoms/std-modal.orb +177 -93
  25. package/behaviors/exports/atoms/std-movement.orb +401 -31
  26. package/behaviors/exports/atoms/std-notification.orb +46 -95
  27. package/behaviors/exports/atoms/std-overworld.orb +44 -16
  28. package/behaviors/exports/atoms/std-pagination.orb +26 -89
  29. package/behaviors/exports/atoms/std-physics2d.orb +6 -1
  30. package/behaviors/exports/atoms/std-platformer-canvas.orb +6 -1
  31. package/behaviors/exports/atoms/std-quest.orb +309 -34
  32. package/behaviors/exports/atoms/std-rate-limiter.orb +410 -157
  33. package/behaviors/exports/atoms/std-score-board.orb +6 -1
  34. package/behaviors/exports/atoms/std-score.orb +211 -11
  35. package/behaviors/exports/atoms/std-search.orb +28 -27
  36. package/behaviors/exports/atoms/std-selection.orb +160 -121
  37. package/behaviors/exports/atoms/std-simulation-canvas.orb +6 -1
  38. package/behaviors/exports/atoms/std-sort.orb +134 -24
  39. package/behaviors/exports/atoms/std-sprite.orb +6 -1
  40. package/behaviors/exports/atoms/std-tabs.orb +25 -15
  41. package/behaviors/exports/atoms/std-timer.orb +483 -91
  42. package/behaviors/exports/atoms/std-undo.orb +211 -81
  43. package/behaviors/exports/atoms/std-wizard.orb +31 -34
  44. package/behaviors/exports/molecules/std-builder-game.orb +6 -1
  45. package/behaviors/exports/molecules/std-cart.orb +6 -1
  46. package/behaviors/exports/molecules/std-classifier-game.orb +6 -1
  47. package/behaviors/exports/molecules/std-debugger-game.orb +6 -1
  48. package/behaviors/exports/molecules/std-detail.orb +12 -5
  49. package/behaviors/exports/molecules/std-event-handler-game.orb +6 -1
  50. package/behaviors/exports/molecules/std-geospatial.orb +28 -9
  51. package/behaviors/exports/molecules/std-inventory.orb +28 -9
  52. package/behaviors/exports/molecules/std-list.orb +392 -5
  53. package/behaviors/exports/molecules/std-messaging.orb +12 -5
  54. package/behaviors/exports/molecules/std-negotiator-game.orb +6 -1
  55. package/behaviors/exports/molecules/std-platformer-game.orb +40 -1
  56. package/behaviors/exports/molecules/std-puzzle-game.orb +26 -1
  57. package/behaviors/exports/molecules/std-sequencer-game.orb +6 -1
  58. package/behaviors/exports/molecules/std-simulator-game.orb +6 -1
  59. package/behaviors/exports/molecules/std-turn-based-battle.orb +40 -1
  60. package/behaviors/exports/organisms/std-api-gateway.orb +1145 -403
  61. package/behaviors/exports/organisms/std-arcade-game.orb +94 -4
  62. package/behaviors/exports/organisms/std-booking-system.orb +2165 -1605
  63. package/behaviors/exports/organisms/std-cicd-pipeline.orb +581 -47
  64. package/behaviors/exports/organisms/std-cms.orb +1713 -947
  65. package/behaviors/exports/organisms/std-coding-academy.orb +180 -380
  66. package/behaviors/exports/organisms/std-crm.orb +1669 -1153
  67. package/behaviors/exports/organisms/std-devops-dashboard.orb +1430 -378
  68. package/behaviors/exports/organisms/std-ecommerce.orb +2361 -1601
  69. package/behaviors/exports/organisms/std-finance-tracker.orb +622 -438
  70. package/behaviors/exports/organisms/std-healthcare.orb +1687 -1125
  71. package/behaviors/exports/organisms/std-helpdesk.orb +626 -407
  72. package/behaviors/exports/organisms/std-hr-portal.orb +1309 -714
  73. package/behaviors/exports/organisms/std-iot-dashboard.orb +1247 -335
  74. package/behaviors/exports/organisms/std-lms.orb +658 -362
  75. package/behaviors/exports/organisms/std-platformer-app.orb +56 -8
  76. package/behaviors/exports/organisms/std-project-manager.orb +1697 -1183
  77. package/behaviors/exports/organisms/std-puzzle-app.orb +20 -0
  78. package/behaviors/exports/organisms/std-realtime-chat.orb +552 -28
  79. package/behaviors/exports/organisms/std-rpg-game.orb +397 -56
  80. package/behaviors/exports/organisms/std-social-feed.orb +12 -8
  81. package/behaviors/exports/organisms/std-stem-lab.orb +175 -290
  82. package/behaviors/exports/organisms/std-strategy-game.orb +252 -395
  83. package/behaviors/exports/organisms/std-trading-dashboard.orb +718 -524
  84. package/behaviors/exports/validation-report.json +252 -252
  85. package/behaviors/exports/verify-results.json +13 -0
  86. package/dist/behaviors/exports/atoms/std-async.orb +41 -24
  87. package/dist/behaviors/exports/atoms/std-browse.orb +12 -5
  88. package/dist/behaviors/exports/atoms/std-cache-aside.orb +256 -42
  89. package/dist/behaviors/exports/atoms/std-circuit-breaker.orb +577 -97
  90. package/dist/behaviors/exports/atoms/std-collision.orb +278 -206
  91. package/dist/behaviors/exports/atoms/std-combat-log.orb +6 -1
  92. package/dist/behaviors/exports/atoms/std-combat.orb +6 -1
  93. package/dist/behaviors/exports/atoms/std-confirmation.orb +212 -7
  94. package/dist/behaviors/exports/atoms/std-dialogue-box.orb +6 -1
  95. package/dist/behaviors/exports/atoms/std-display.orb +166 -21
  96. package/dist/behaviors/exports/atoms/std-drawer.orb +208 -104
  97. package/dist/behaviors/exports/atoms/std-filter.orb +211 -18
  98. package/dist/behaviors/exports/atoms/std-game-audio.orb +6 -1
  99. package/dist/behaviors/exports/atoms/std-game-canvas2d.orb +6 -1
  100. package/dist/behaviors/exports/atoms/std-game-canvas3d.orb +6 -1
  101. package/dist/behaviors/exports/atoms/std-game-hud.orb +6 -1
  102. package/dist/behaviors/exports/atoms/std-game-menu.orb +6 -1
  103. package/dist/behaviors/exports/atoms/std-game-over-screen.orb +6 -1
  104. package/dist/behaviors/exports/atoms/std-gameflow.orb +100 -5
  105. package/dist/behaviors/exports/atoms/std-input.orb +142 -137
  106. package/dist/behaviors/exports/atoms/std-inventory-panel.orb +6 -1
  107. package/dist/behaviors/exports/atoms/std-isometric-canvas.orb +6 -1
  108. package/dist/behaviors/exports/atoms/std-loading.orb +27 -76
  109. package/dist/behaviors/exports/atoms/std-modal.orb +177 -93
  110. package/dist/behaviors/exports/atoms/std-movement.orb +401 -31
  111. package/dist/behaviors/exports/atoms/std-notification.orb +46 -95
  112. package/dist/behaviors/exports/atoms/std-overworld.orb +44 -16
  113. package/dist/behaviors/exports/atoms/std-pagination.orb +26 -89
  114. package/dist/behaviors/exports/atoms/std-physics2d.orb +6 -1
  115. package/dist/behaviors/exports/atoms/std-platformer-canvas.orb +6 -1
  116. package/dist/behaviors/exports/atoms/std-quest.orb +309 -34
  117. package/dist/behaviors/exports/atoms/std-rate-limiter.orb +410 -157
  118. package/dist/behaviors/exports/atoms/std-score-board.orb +6 -1
  119. package/dist/behaviors/exports/atoms/std-score.orb +211 -11
  120. package/dist/behaviors/exports/atoms/std-search.orb +28 -27
  121. package/dist/behaviors/exports/atoms/std-selection.orb +160 -121
  122. package/dist/behaviors/exports/atoms/std-simulation-canvas.orb +6 -1
  123. package/dist/behaviors/exports/atoms/std-sort.orb +134 -24
  124. package/dist/behaviors/exports/atoms/std-sprite.orb +6 -1
  125. package/dist/behaviors/exports/atoms/std-tabs.orb +25 -15
  126. package/dist/behaviors/exports/atoms/std-timer.orb +483 -91
  127. package/dist/behaviors/exports/atoms/std-undo.orb +211 -81
  128. package/dist/behaviors/exports/atoms/std-wizard.orb +31 -34
  129. package/dist/behaviors/exports/molecules/std-builder-game.orb +6 -1
  130. package/dist/behaviors/exports/molecules/std-cart.orb +6 -1
  131. package/dist/behaviors/exports/molecules/std-classifier-game.orb +6 -1
  132. package/dist/behaviors/exports/molecules/std-debugger-game.orb +6 -1
  133. package/dist/behaviors/exports/molecules/std-detail.orb +12 -5
  134. package/dist/behaviors/exports/molecules/std-event-handler-game.orb +6 -1
  135. package/dist/behaviors/exports/molecules/std-geospatial.orb +28 -9
  136. package/dist/behaviors/exports/molecules/std-inventory.orb +28 -9
  137. package/dist/behaviors/exports/molecules/std-list.orb +392 -5
  138. package/dist/behaviors/exports/molecules/std-messaging.orb +12 -5
  139. package/dist/behaviors/exports/molecules/std-negotiator-game.orb +6 -1
  140. package/dist/behaviors/exports/molecules/std-platformer-game.orb +40 -1
  141. package/dist/behaviors/exports/molecules/std-puzzle-game.orb +26 -1
  142. package/dist/behaviors/exports/molecules/std-sequencer-game.orb +6 -1
  143. package/dist/behaviors/exports/molecules/std-simulator-game.orb +6 -1
  144. package/dist/behaviors/exports/molecules/std-turn-based-battle.orb +40 -1
  145. package/dist/behaviors/exports/organisms/std-api-gateway.orb +1145 -403
  146. package/dist/behaviors/exports/organisms/std-arcade-game.orb +94 -4
  147. package/dist/behaviors/exports/organisms/std-booking-system.orb +2165 -1605
  148. package/dist/behaviors/exports/organisms/std-cicd-pipeline.orb +581 -47
  149. package/dist/behaviors/exports/organisms/std-cms.orb +1713 -947
  150. package/dist/behaviors/exports/organisms/std-coding-academy.orb +180 -380
  151. package/dist/behaviors/exports/organisms/std-crm.orb +1669 -1153
  152. package/dist/behaviors/exports/organisms/std-devops-dashboard.orb +1430 -378
  153. package/dist/behaviors/exports/organisms/std-ecommerce.orb +2361 -1601
  154. package/dist/behaviors/exports/organisms/std-finance-tracker.orb +622 -438
  155. package/dist/behaviors/exports/organisms/std-healthcare.orb +1687 -1125
  156. package/dist/behaviors/exports/organisms/std-helpdesk.orb +626 -407
  157. package/dist/behaviors/exports/organisms/std-hr-portal.orb +1309 -714
  158. package/dist/behaviors/exports/organisms/std-iot-dashboard.orb +1247 -335
  159. package/dist/behaviors/exports/organisms/std-lms.orb +658 -362
  160. package/dist/behaviors/exports/organisms/std-platformer-app.orb +56 -8
  161. package/dist/behaviors/exports/organisms/std-project-manager.orb +1697 -1183
  162. package/dist/behaviors/exports/organisms/std-puzzle-app.orb +20 -0
  163. package/dist/behaviors/exports/organisms/std-realtime-chat.orb +552 -28
  164. package/dist/behaviors/exports/organisms/std-rpg-game.orb +397 -56
  165. package/dist/behaviors/exports/organisms/std-social-feed.orb +12 -8
  166. package/dist/behaviors/exports/organisms/std-stem-lab.orb +175 -290
  167. package/dist/behaviors/exports/organisms/std-strategy-game.orb +252 -395
  168. package/dist/behaviors/exports/organisms/std-trading-dashboard.orb +718 -524
  169. package/dist/behaviors/exports/validation-report.json +252 -252
  170. package/dist/behaviors/exports/verify-results.json +13 -0
  171. package/dist/behaviors/functions/index.js +715 -593
  172. package/dist/behaviors/functions/index.js.map +1 -1
  173. package/dist/behaviors/index.js +715 -593
  174. package/dist/behaviors/index.js.map +1 -1
  175. package/dist/exports/atoms/std-async.orb +41 -24
  176. package/dist/exports/atoms/std-browse.orb +12 -5
  177. package/dist/exports/atoms/std-cache-aside.orb +256 -42
  178. package/dist/exports/atoms/std-circuit-breaker.orb +577 -97
  179. package/dist/exports/atoms/std-collision.orb +278 -206
  180. package/dist/exports/atoms/std-combat-log.orb +6 -1
  181. package/dist/exports/atoms/std-combat.orb +6 -1
  182. package/dist/exports/atoms/std-confirmation.orb +212 -7
  183. package/dist/exports/atoms/std-dialogue-box.orb +6 -1
  184. package/dist/exports/atoms/std-display.orb +166 -21
  185. package/dist/exports/atoms/std-drawer.orb +208 -104
  186. package/dist/exports/atoms/std-filter.orb +211 -18
  187. package/dist/exports/atoms/std-game-audio.orb +6 -1
  188. package/dist/exports/atoms/std-game-canvas2d.orb +6 -1
  189. package/dist/exports/atoms/std-game-canvas3d.orb +6 -1
  190. package/dist/exports/atoms/std-game-hud.orb +6 -1
  191. package/dist/exports/atoms/std-game-menu.orb +6 -1
  192. package/dist/exports/atoms/std-game-over-screen.orb +6 -1
  193. package/dist/exports/atoms/std-gameflow.orb +100 -5
  194. package/dist/exports/atoms/std-input.orb +142 -137
  195. package/dist/exports/atoms/std-inventory-panel.orb +6 -1
  196. package/dist/exports/atoms/std-isometric-canvas.orb +6 -1
  197. package/dist/exports/atoms/std-loading.orb +27 -76
  198. package/dist/exports/atoms/std-modal.orb +177 -93
  199. package/dist/exports/atoms/std-movement.orb +401 -31
  200. package/dist/exports/atoms/std-notification.orb +46 -95
  201. package/dist/exports/atoms/std-overworld.orb +44 -16
  202. package/dist/exports/atoms/std-pagination.orb +26 -89
  203. package/dist/exports/atoms/std-physics2d.orb +6 -1
  204. package/dist/exports/atoms/std-platformer-canvas.orb +6 -1
  205. package/dist/exports/atoms/std-quest.orb +309 -34
  206. package/dist/exports/atoms/std-rate-limiter.orb +410 -157
  207. package/dist/exports/atoms/std-score-board.orb +6 -1
  208. package/dist/exports/atoms/std-score.orb +211 -11
  209. package/dist/exports/atoms/std-search.orb +28 -27
  210. package/dist/exports/atoms/std-selection.orb +160 -121
  211. package/dist/exports/atoms/std-simulation-canvas.orb +6 -1
  212. package/dist/exports/atoms/std-sort.orb +134 -24
  213. package/dist/exports/atoms/std-sprite.orb +6 -1
  214. package/dist/exports/atoms/std-tabs.orb +25 -15
  215. package/dist/exports/atoms/std-timer.orb +483 -91
  216. package/dist/exports/atoms/std-undo.orb +211 -81
  217. package/dist/exports/atoms/std-wizard.orb +31 -34
  218. package/dist/exports/molecules/std-builder-game.orb +6 -1
  219. package/dist/exports/molecules/std-cart.orb +6 -1
  220. package/dist/exports/molecules/std-classifier-game.orb +6 -1
  221. package/dist/exports/molecules/std-debugger-game.orb +6 -1
  222. package/dist/exports/molecules/std-detail.orb +12 -5
  223. package/dist/exports/molecules/std-event-handler-game.orb +6 -1
  224. package/dist/exports/molecules/std-geospatial.orb +28 -9
  225. package/dist/exports/molecules/std-inventory.orb +28 -9
  226. package/dist/exports/molecules/std-list.orb +392 -5
  227. package/dist/exports/molecules/std-messaging.orb +12 -5
  228. package/dist/exports/molecules/std-negotiator-game.orb +6 -1
  229. package/dist/exports/molecules/std-platformer-game.orb +40 -1
  230. package/dist/exports/molecules/std-puzzle-game.orb +26 -1
  231. package/dist/exports/molecules/std-sequencer-game.orb +6 -1
  232. package/dist/exports/molecules/std-simulator-game.orb +6 -1
  233. package/dist/exports/molecules/std-turn-based-battle.orb +40 -1
  234. package/dist/exports/organisms/std-api-gateway.orb +1145 -403
  235. package/dist/exports/organisms/std-arcade-game.orb +94 -4
  236. package/dist/exports/organisms/std-booking-system.orb +2165 -1605
  237. package/dist/exports/organisms/std-cicd-pipeline.orb +581 -47
  238. package/dist/exports/organisms/std-cms.orb +1713 -947
  239. package/dist/exports/organisms/std-coding-academy.orb +180 -380
  240. package/dist/exports/organisms/std-crm.orb +1669 -1153
  241. package/dist/exports/organisms/std-devops-dashboard.orb +1430 -378
  242. package/dist/exports/organisms/std-ecommerce.orb +2361 -1601
  243. package/dist/exports/organisms/std-finance-tracker.orb +622 -438
  244. package/dist/exports/organisms/std-healthcare.orb +1687 -1125
  245. package/dist/exports/organisms/std-helpdesk.orb +626 -407
  246. package/dist/exports/organisms/std-hr-portal.orb +1309 -714
  247. package/dist/exports/organisms/std-iot-dashboard.orb +1247 -335
  248. package/dist/exports/organisms/std-lms.orb +658 -362
  249. package/dist/exports/organisms/std-platformer-app.orb +56 -8
  250. package/dist/exports/organisms/std-project-manager.orb +1697 -1183
  251. package/dist/exports/organisms/std-puzzle-app.orb +20 -0
  252. package/dist/exports/organisms/std-realtime-chat.orb +552 -28
  253. package/dist/exports/organisms/std-rpg-game.orb +397 -56
  254. package/dist/exports/organisms/std-social-feed.orb +12 -8
  255. package/dist/exports/organisms/std-stem-lab.orb +175 -290
  256. package/dist/exports/organisms/std-strategy-game.orb +252 -395
  257. package/dist/exports/organisms/std-trading-dashboard.orb +718 -524
  258. package/dist/exports/validation-report.json +252 -252
  259. package/dist/exports/verify-results.json +13 -0
  260. package/dist/index.js +715 -593
  261. package/dist/index.js.map +1 -1
  262. package/package.json +1 -1
@@ -22,7 +22,12 @@
22
22
  {
23
23
  "name": "status",
24
24
  "type": "string",
25
- "default": "active"
25
+ "default": "active",
26
+ "values": [
27
+ "active",
28
+ "inactive",
29
+ "pending"
30
+ ]
26
31
  },
27
32
  {
28
33
  "name": "createdAt",
@@ -23,7 +23,12 @@
23
23
  {
24
24
  "name": "status",
25
25
  "type": "string",
26
- "default": "active"
26
+ "default": "active",
27
+ "values": [
28
+ "active",
29
+ "inactive",
30
+ "pending"
31
+ ]
27
32
  },
28
33
  {
29
34
  "name": "createdAt",
@@ -142,7 +147,9 @@
142
147
  }
143
148
  ],
144
149
  "className": "transition-shadow hover:shadow-md cursor-pointer",
145
- "children": [
150
+ "renderItem": [
151
+ "fn",
152
+ "item",
146
153
  {
147
154
  "type": "stack",
148
155
  "direction": "vertical",
@@ -168,13 +175,13 @@
168
175
  {
169
176
  "type": "typography",
170
177
  "variant": "h4",
171
- "content": "@entity.name"
178
+ "content": "@item.name"
172
179
  }
173
180
  ]
174
181
  },
175
182
  {
176
183
  "type": "badge",
177
- "label": "@entity.description"
184
+ "label": "@item.description"
178
185
  }
179
186
  ]
180
187
  },
@@ -182,7 +189,7 @@
182
189
  "type": "typography",
183
190
  "variant": "caption",
184
191
  "color": "muted",
185
- "content": "@entity.status"
192
+ "content": "@item.status"
186
193
  }
187
194
  ]
188
195
  }
@@ -536,7 +543,7 @@
536
543
  "children": [
537
544
  {
538
545
  "type": "icon",
539
- "name": "check-circle",
546
+ "name": "alert-triangle",
540
547
  "size": "md"
541
548
  },
542
549
  {
@@ -550,9 +557,9 @@
550
557
  "type": "divider"
551
558
  },
552
559
  {
553
- "type": "typography",
554
- "content": "Are you sure you want to select this location?",
555
- "variant": "body"
560
+ "type": "alert",
561
+ "variant": "danger",
562
+ "message": "Are you sure you want to select this location?"
556
563
  },
557
564
  {
558
565
  "type": "stack",
@@ -594,6 +601,10 @@
594
601
  "modal",
595
602
  null
596
603
  ],
604
+ [
605
+ "fetch",
606
+ "Location"
607
+ ],
597
608
  [
598
609
  "emit",
599
610
  "CONFIRMED"
@@ -609,6 +620,10 @@
609
620
  "render-ui",
610
621
  "modal",
611
622
  null
623
+ ],
624
+ [
625
+ "fetch",
626
+ "Location"
612
627
  ]
613
628
  ]
614
629
  },
@@ -621,6 +636,10 @@
621
636
  "render-ui",
622
637
  "modal",
623
638
  null
639
+ ],
640
+ [
641
+ "fetch",
642
+ "Location"
624
643
  ]
625
644
  ]
626
645
  }
@@ -23,7 +23,12 @@
23
23
  {
24
24
  "name": "status",
25
25
  "type": "string",
26
- "default": "active"
26
+ "default": "active",
27
+ "values": [
28
+ "active",
29
+ "inactive",
30
+ "pending"
31
+ ]
27
32
  },
28
33
  {
29
34
  "name": "createdAt",
@@ -206,7 +211,9 @@
206
211
  }
207
212
  ],
208
213
  "className": "transition-shadow hover:shadow-md cursor-pointer",
209
- "children": [
214
+ "renderItem": [
215
+ "fn",
216
+ "item",
210
217
  {
211
218
  "type": "stack",
212
219
  "direction": "vertical",
@@ -232,13 +239,13 @@
232
239
  {
233
240
  "type": "typography",
234
241
  "variant": "h4",
235
- "content": "@entity.name"
242
+ "content": "@item.name"
236
243
  }
237
244
  ]
238
245
  },
239
246
  {
240
247
  "type": "badge",
241
- "label": "@entity.description"
248
+ "label": "@item.description"
242
249
  }
243
250
  ]
244
251
  },
@@ -246,7 +253,7 @@
246
253
  "type": "typography",
247
254
  "variant": "caption",
248
255
  "color": "muted",
249
- "content": "@entity.status"
256
+ "content": "@item.status"
250
257
  }
251
258
  ]
252
259
  }
@@ -727,7 +734,7 @@
727
734
  "children": [
728
735
  {
729
736
  "type": "icon",
730
- "name": "trash-2",
737
+ "name": "alert-triangle",
731
738
  "size": "md"
732
739
  },
733
740
  {
@@ -741,9 +748,9 @@
741
748
  "type": "divider"
742
749
  },
743
750
  {
744
- "type": "typography",
745
- "content": "Are you sure you want to drop this inventoryitem?",
746
- "variant": "body"
751
+ "type": "alert",
752
+ "variant": "danger",
753
+ "message": "Are you sure you want to drop this inventoryitem?"
747
754
  },
748
755
  {
749
756
  "type": "stack",
@@ -791,6 +798,10 @@
791
798
  "modal",
792
799
  null
793
800
  ],
801
+ [
802
+ "fetch",
803
+ "InventoryItem"
804
+ ],
794
805
  [
795
806
  "emit",
796
807
  "CONFIRM_DROP"
@@ -810,6 +821,10 @@
810
821
  "render-ui",
811
822
  "modal",
812
823
  null
824
+ ],
825
+ [
826
+ "fetch",
827
+ "InventoryItem"
813
828
  ]
814
829
  ]
815
830
  },
@@ -822,6 +837,10 @@
822
837
  "render-ui",
823
838
  "modal",
824
839
  null
840
+ ],
841
+ [
842
+ "fetch",
843
+ "InventoryItem"
825
844
  ]
826
845
  ]
827
846
  }
@@ -23,7 +23,12 @@
23
23
  {
24
24
  "name": "status",
25
25
  "type": "string",
26
- "default": "active"
26
+ "default": "active",
27
+ "values": [
28
+ "active",
29
+ "inactive",
30
+ "pending"
31
+ ]
27
32
  },
28
33
  {
29
34
  "name": "createdAt",
@@ -216,7 +221,9 @@
216
221
  }
217
222
  ],
218
223
  "className": "transition-shadow hover:shadow-md cursor-pointer",
219
- "children": [
224
+ "renderItem": [
225
+ "fn",
226
+ "item",
220
227
  {
221
228
  "type": "stack",
222
229
  "direction": "vertical",
@@ -242,13 +249,13 @@
242
249
  {
243
250
  "type": "typography",
244
251
  "variant": "h4",
245
- "content": "@entity.name"
252
+ "content": "@item.name"
246
253
  }
247
254
  ]
248
255
  },
249
256
  {
250
257
  "type": "badge",
251
- "label": "@entity.description"
258
+ "label": "@item.description"
252
259
  }
253
260
  ]
254
261
  },
@@ -256,7 +263,7 @@
256
263
  "type": "typography",
257
264
  "variant": "caption",
258
265
  "color": "muted",
259
- "content": "@entity.status"
266
+ "content": "@item.status"
260
267
  }
261
268
  ]
262
269
  }
@@ -378,6 +385,130 @@
378
385
  "fetch",
379
386
  "ListItem"
380
387
  ],
388
+ [
389
+ "render-ui",
390
+ "main",
391
+ {
392
+ "type": "stack",
393
+ "direction": "vertical",
394
+ "gap": "lg",
395
+ "children": [
396
+ {
397
+ "type": "stack",
398
+ "direction": "horizontal",
399
+ "gap": "md",
400
+ "justify": "space-between",
401
+ "children": [
402
+ {
403
+ "type": "stack",
404
+ "direction": "horizontal",
405
+ "gap": "sm",
406
+ "align": "center",
407
+ "children": [
408
+ {
409
+ "type": "icon",
410
+ "name": "list",
411
+ "size": "lg"
412
+ },
413
+ {
414
+ "type": "typography",
415
+ "content": "ListItems",
416
+ "variant": "h2"
417
+ }
418
+ ]
419
+ },
420
+ {
421
+ "type": "stack",
422
+ "direction": "horizontal",
423
+ "gap": "sm",
424
+ "children": [
425
+ {
426
+ "type": "button",
427
+ "label": "Create ListItem",
428
+ "event": "CREATE",
429
+ "variant": "primary",
430
+ "icon": "plus"
431
+ }
432
+ ]
433
+ }
434
+ ]
435
+ },
436
+ {
437
+ "type": "divider"
438
+ },
439
+ {
440
+ "type": "data-grid",
441
+ "entity": "ListItem",
442
+ "emptyIcon": "inbox",
443
+ "emptyTitle": "No listitems yet",
444
+ "emptyDescription": "Create your first listitem to get started.",
445
+ "itemActions": [
446
+ {
447
+ "label": "View",
448
+ "event": "VIEW"
449
+ },
450
+ {
451
+ "label": "Edit",
452
+ "event": "EDIT"
453
+ },
454
+ {
455
+ "label": "Delete",
456
+ "event": "DELETE",
457
+ "variant": "danger"
458
+ }
459
+ ],
460
+ "className": "transition-shadow hover:shadow-md cursor-pointer",
461
+ "renderItem": [
462
+ "fn",
463
+ "item",
464
+ {
465
+ "type": "stack",
466
+ "direction": "vertical",
467
+ "gap": "sm",
468
+ "children": [
469
+ {
470
+ "type": "stack",
471
+ "direction": "horizontal",
472
+ "justify": "space-between",
473
+ "align": "center",
474
+ "children": [
475
+ {
476
+ "type": "stack",
477
+ "direction": "horizontal",
478
+ "gap": "sm",
479
+ "align": "center",
480
+ "children": [
481
+ {
482
+ "type": "icon",
483
+ "name": "list",
484
+ "size": "sm"
485
+ },
486
+ {
487
+ "type": "typography",
488
+ "variant": "h4",
489
+ "content": "@item.name"
490
+ }
491
+ ]
492
+ },
493
+ {
494
+ "type": "badge",
495
+ "label": "@item.description"
496
+ }
497
+ ]
498
+ },
499
+ {
500
+ "type": "typography",
501
+ "variant": "caption",
502
+ "color": "muted",
503
+ "content": "@item.status"
504
+ }
505
+ ]
506
+ }
507
+ ]
508
+ }
509
+ ]
510
+ }
511
+ ],
381
512
  [
382
513
  "notify",
383
514
  "ListItem deleted successfully"
@@ -393,6 +524,134 @@
393
524
  "render-ui",
394
525
  "modal",
395
526
  null
527
+ ],
528
+ [
529
+ "fetch",
530
+ "ListItem"
531
+ ],
532
+ [
533
+ "render-ui",
534
+ "main",
535
+ {
536
+ "type": "stack",
537
+ "direction": "vertical",
538
+ "gap": "lg",
539
+ "children": [
540
+ {
541
+ "type": "stack",
542
+ "direction": "horizontal",
543
+ "gap": "md",
544
+ "justify": "space-between",
545
+ "children": [
546
+ {
547
+ "type": "stack",
548
+ "direction": "horizontal",
549
+ "gap": "sm",
550
+ "align": "center",
551
+ "children": [
552
+ {
553
+ "type": "icon",
554
+ "name": "list",
555
+ "size": "lg"
556
+ },
557
+ {
558
+ "type": "typography",
559
+ "content": "ListItems",
560
+ "variant": "h2"
561
+ }
562
+ ]
563
+ },
564
+ {
565
+ "type": "stack",
566
+ "direction": "horizontal",
567
+ "gap": "sm",
568
+ "children": [
569
+ {
570
+ "type": "button",
571
+ "label": "Create ListItem",
572
+ "event": "CREATE",
573
+ "variant": "primary",
574
+ "icon": "plus"
575
+ }
576
+ ]
577
+ }
578
+ ]
579
+ },
580
+ {
581
+ "type": "divider"
582
+ },
583
+ {
584
+ "type": "data-grid",
585
+ "entity": "ListItem",
586
+ "emptyIcon": "inbox",
587
+ "emptyTitle": "No listitems yet",
588
+ "emptyDescription": "Create your first listitem to get started.",
589
+ "itemActions": [
590
+ {
591
+ "label": "View",
592
+ "event": "VIEW"
593
+ },
594
+ {
595
+ "label": "Edit",
596
+ "event": "EDIT"
597
+ },
598
+ {
599
+ "label": "Delete",
600
+ "event": "DELETE",
601
+ "variant": "danger"
602
+ }
603
+ ],
604
+ "className": "transition-shadow hover:shadow-md cursor-pointer",
605
+ "renderItem": [
606
+ "fn",
607
+ "item",
608
+ {
609
+ "type": "stack",
610
+ "direction": "vertical",
611
+ "gap": "sm",
612
+ "children": [
613
+ {
614
+ "type": "stack",
615
+ "direction": "horizontal",
616
+ "justify": "space-between",
617
+ "align": "center",
618
+ "children": [
619
+ {
620
+ "type": "stack",
621
+ "direction": "horizontal",
622
+ "gap": "sm",
623
+ "align": "center",
624
+ "children": [
625
+ {
626
+ "type": "icon",
627
+ "name": "list",
628
+ "size": "sm"
629
+ },
630
+ {
631
+ "type": "typography",
632
+ "variant": "h4",
633
+ "content": "@item.name"
634
+ }
635
+ ]
636
+ },
637
+ {
638
+ "type": "badge",
639
+ "label": "@item.description"
640
+ }
641
+ ]
642
+ },
643
+ {
644
+ "type": "typography",
645
+ "variant": "caption",
646
+ "color": "muted",
647
+ "content": "@item.status"
648
+ }
649
+ ]
650
+ }
651
+ ]
652
+ }
653
+ ]
654
+ }
396
655
  ]
397
656
  ]
398
657
  },
@@ -405,6 +664,134 @@
405
664
  "render-ui",
406
665
  "modal",
407
666
  null
667
+ ],
668
+ [
669
+ "fetch",
670
+ "ListItem"
671
+ ],
672
+ [
673
+ "render-ui",
674
+ "main",
675
+ {
676
+ "type": "stack",
677
+ "direction": "vertical",
678
+ "gap": "lg",
679
+ "children": [
680
+ {
681
+ "type": "stack",
682
+ "direction": "horizontal",
683
+ "gap": "md",
684
+ "justify": "space-between",
685
+ "children": [
686
+ {
687
+ "type": "stack",
688
+ "direction": "horizontal",
689
+ "gap": "sm",
690
+ "align": "center",
691
+ "children": [
692
+ {
693
+ "type": "icon",
694
+ "name": "list",
695
+ "size": "lg"
696
+ },
697
+ {
698
+ "type": "typography",
699
+ "content": "ListItems",
700
+ "variant": "h2"
701
+ }
702
+ ]
703
+ },
704
+ {
705
+ "type": "stack",
706
+ "direction": "horizontal",
707
+ "gap": "sm",
708
+ "children": [
709
+ {
710
+ "type": "button",
711
+ "label": "Create ListItem",
712
+ "event": "CREATE",
713
+ "variant": "primary",
714
+ "icon": "plus"
715
+ }
716
+ ]
717
+ }
718
+ ]
719
+ },
720
+ {
721
+ "type": "divider"
722
+ },
723
+ {
724
+ "type": "data-grid",
725
+ "entity": "ListItem",
726
+ "emptyIcon": "inbox",
727
+ "emptyTitle": "No listitems yet",
728
+ "emptyDescription": "Create your first listitem to get started.",
729
+ "itemActions": [
730
+ {
731
+ "label": "View",
732
+ "event": "VIEW"
733
+ },
734
+ {
735
+ "label": "Edit",
736
+ "event": "EDIT"
737
+ },
738
+ {
739
+ "label": "Delete",
740
+ "event": "DELETE",
741
+ "variant": "danger"
742
+ }
743
+ ],
744
+ "className": "transition-shadow hover:shadow-md cursor-pointer",
745
+ "renderItem": [
746
+ "fn",
747
+ "item",
748
+ {
749
+ "type": "stack",
750
+ "direction": "vertical",
751
+ "gap": "sm",
752
+ "children": [
753
+ {
754
+ "type": "stack",
755
+ "direction": "horizontal",
756
+ "justify": "space-between",
757
+ "align": "center",
758
+ "children": [
759
+ {
760
+ "type": "stack",
761
+ "direction": "horizontal",
762
+ "gap": "sm",
763
+ "align": "center",
764
+ "children": [
765
+ {
766
+ "type": "icon",
767
+ "name": "list",
768
+ "size": "sm"
769
+ },
770
+ {
771
+ "type": "typography",
772
+ "variant": "h4",
773
+ "content": "@item.name"
774
+ }
775
+ ]
776
+ },
777
+ {
778
+ "type": "badge",
779
+ "label": "@item.description"
780
+ }
781
+ ]
782
+ },
783
+ {
784
+ "type": "typography",
785
+ "variant": "caption",
786
+ "color": "muted",
787
+ "content": "@item.status"
788
+ }
789
+ ]
790
+ }
791
+ ]
792
+ }
793
+ ]
794
+ }
408
795
  ]
409
796
  ]
410
797
  }