@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
@@ -129,91 +129,51 @@
129
129
  "columns": 3,
130
130
  "children": [
131
131
  {
132
- "type": "card",
133
- "children": [
134
- {
135
- "type": "stack",
136
- "direction": "vertical",
137
- "gap": "sm",
138
- "children": [
139
- {
140
- "type": "typography",
141
- "variant": "caption",
142
- "content": "TotalValue"
143
- },
144
- {
145
- "type": "typography",
146
- "variant": "h3",
147
- "content": "@entity.totalValue"
148
- }
149
- ]
150
- }
132
+ "type": "stat-display",
133
+ "label": "TotalValue",
134
+ "value": [
135
+ "object/get",
136
+ [
137
+ "array/first",
138
+ "@entity"
139
+ ],
140
+ "totalValue"
151
141
  ]
152
142
  },
153
143
  {
154
- "type": "card",
155
- "children": [
156
- {
157
- "type": "stack",
158
- "direction": "vertical",
159
- "gap": "sm",
160
- "children": [
161
- {
162
- "type": "typography",
163
- "variant": "caption",
164
- "content": "DailyChange"
165
- },
166
- {
167
- "type": "typography",
168
- "variant": "h3",
169
- "content": "@entity.dailyChange"
170
- }
171
- ]
172
- }
144
+ "type": "stat-display",
145
+ "label": "DailyChange",
146
+ "value": [
147
+ "object/get",
148
+ [
149
+ "array/first",
150
+ "@entity"
151
+ ],
152
+ "dailyChange"
173
153
  ]
174
154
  },
175
155
  {
176
- "type": "card",
177
- "children": [
178
- {
179
- "type": "stack",
180
- "direction": "vertical",
181
- "gap": "sm",
182
- "children": [
183
- {
184
- "type": "typography",
185
- "variant": "caption",
186
- "content": "Positions"
187
- },
188
- {
189
- "type": "typography",
190
- "variant": "h3",
191
- "content": "@entity.positions"
192
- }
193
- ]
194
- }
156
+ "type": "stat-display",
157
+ "label": "Positions",
158
+ "value": [
159
+ "object/get",
160
+ [
161
+ "array/first",
162
+ "@entity"
163
+ ],
164
+ "positions"
195
165
  ]
196
166
  },
197
167
  {
198
- "type": "card",
199
- "children": [
200
- {
201
- "type": "stack",
202
- "direction": "vertical",
203
- "gap": "sm",
204
- "children": [
205
- {
206
- "type": "typography",
207
- "variant": "caption",
208
- "content": "CashBalance"
209
- },
210
- {
211
- "type": "typography",
212
- "variant": "h3",
213
- "content": "@entity.cashBalance"
214
- }
215
- ]
216
- }
168
+ "type": "stat-display",
169
+ "label": "CashBalance",
170
+ "value": [
171
+ "object/get",
172
+ [
173
+ "array/first",
174
+ "@entity"
175
+ ],
176
+ "cashBalance"
217
177
  ]
218
178
  }
219
179
  ]
@@ -280,91 +240,51 @@
280
240
  "columns": 3,
281
241
  "children": [
282
242
  {
283
- "type": "card",
284
- "children": [
285
- {
286
- "type": "stack",
287
- "direction": "vertical",
288
- "gap": "sm",
289
- "children": [
290
- {
291
- "type": "typography",
292
- "variant": "caption",
293
- "content": "TotalValue"
294
- },
295
- {
296
- "type": "typography",
297
- "variant": "h3",
298
- "content": "@entity.totalValue"
299
- }
300
- ]
301
- }
243
+ "type": "stat-display",
244
+ "label": "TotalValue",
245
+ "value": [
246
+ "object/get",
247
+ [
248
+ "array/first",
249
+ "@entity"
250
+ ],
251
+ "totalValue"
302
252
  ]
303
253
  },
304
254
  {
305
- "type": "card",
306
- "children": [
307
- {
308
- "type": "stack",
309
- "direction": "vertical",
310
- "gap": "sm",
311
- "children": [
312
- {
313
- "type": "typography",
314
- "variant": "caption",
315
- "content": "DailyChange"
316
- },
317
- {
318
- "type": "typography",
319
- "variant": "h3",
320
- "content": "@entity.dailyChange"
321
- }
322
- ]
323
- }
255
+ "type": "stat-display",
256
+ "label": "DailyChange",
257
+ "value": [
258
+ "object/get",
259
+ [
260
+ "array/first",
261
+ "@entity"
262
+ ],
263
+ "dailyChange"
324
264
  ]
325
265
  },
326
266
  {
327
- "type": "card",
328
- "children": [
329
- {
330
- "type": "stack",
331
- "direction": "vertical",
332
- "gap": "sm",
333
- "children": [
334
- {
335
- "type": "typography",
336
- "variant": "caption",
337
- "content": "Positions"
338
- },
339
- {
340
- "type": "typography",
341
- "variant": "h3",
342
- "content": "@entity.positions"
343
- }
344
- ]
345
- }
267
+ "type": "stat-display",
268
+ "label": "Positions",
269
+ "value": [
270
+ "object/get",
271
+ [
272
+ "array/first",
273
+ "@entity"
274
+ ],
275
+ "positions"
346
276
  ]
347
277
  },
348
278
  {
349
- "type": "card",
350
- "children": [
351
- {
352
- "type": "stack",
353
- "direction": "vertical",
354
- "gap": "sm",
355
- "children": [
356
- {
357
- "type": "typography",
358
- "variant": "caption",
359
- "content": "CashBalance"
360
- },
361
- {
362
- "type": "typography",
363
- "variant": "h3",
364
- "content": "@entity.cashBalance"
365
- }
366
- ]
367
- }
279
+ "type": "stat-display",
280
+ "label": "CashBalance",
281
+ "value": [
282
+ "object/get",
283
+ [
284
+ "array/first",
285
+ "@entity"
286
+ ],
287
+ "cashBalance"
368
288
  ]
369
289
  }
370
290
  ]
@@ -431,91 +351,51 @@
431
351
  "columns": 3,
432
352
  "children": [
433
353
  {
434
- "type": "card",
435
- "children": [
436
- {
437
- "type": "stack",
438
- "direction": "vertical",
439
- "gap": "sm",
440
- "children": [
441
- {
442
- "type": "typography",
443
- "variant": "caption",
444
- "content": "TotalValue"
445
- },
446
- {
447
- "type": "typography",
448
- "variant": "h3",
449
- "content": "@entity.totalValue"
450
- }
451
- ]
452
- }
354
+ "type": "stat-display",
355
+ "label": "TotalValue",
356
+ "value": [
357
+ "object/get",
358
+ [
359
+ "array/first",
360
+ "@entity"
361
+ ],
362
+ "totalValue"
453
363
  ]
454
364
  },
455
365
  {
456
- "type": "card",
457
- "children": [
458
- {
459
- "type": "stack",
460
- "direction": "vertical",
461
- "gap": "sm",
462
- "children": [
463
- {
464
- "type": "typography",
465
- "variant": "caption",
466
- "content": "DailyChange"
467
- },
468
- {
469
- "type": "typography",
470
- "variant": "h3",
471
- "content": "@entity.dailyChange"
472
- }
473
- ]
474
- }
366
+ "type": "stat-display",
367
+ "label": "DailyChange",
368
+ "value": [
369
+ "object/get",
370
+ [
371
+ "array/first",
372
+ "@entity"
373
+ ],
374
+ "dailyChange"
475
375
  ]
476
376
  },
477
377
  {
478
- "type": "card",
479
- "children": [
480
- {
481
- "type": "stack",
482
- "direction": "vertical",
483
- "gap": "sm",
484
- "children": [
485
- {
486
- "type": "typography",
487
- "variant": "caption",
488
- "content": "Positions"
489
- },
490
- {
491
- "type": "typography",
492
- "variant": "h3",
493
- "content": "@entity.positions"
494
- }
495
- ]
496
- }
378
+ "type": "stat-display",
379
+ "label": "Positions",
380
+ "value": [
381
+ "object/get",
382
+ [
383
+ "array/first",
384
+ "@entity"
385
+ ],
386
+ "positions"
497
387
  ]
498
388
  },
499
389
  {
500
- "type": "card",
501
- "children": [
502
- {
503
- "type": "stack",
504
- "direction": "vertical",
505
- "gap": "sm",
506
- "children": [
507
- {
508
- "type": "typography",
509
- "variant": "caption",
510
- "content": "CashBalance"
511
- },
512
- {
513
- "type": "typography",
514
- "variant": "h3",
515
- "content": "@entity.cashBalance"
516
- }
517
- ]
518
- }
390
+ "type": "stat-display",
391
+ "label": "CashBalance",
392
+ "value": [
393
+ "object/get",
394
+ [
395
+ "array/first",
396
+ "@entity"
397
+ ],
398
+ "cashBalance"
519
399
  ]
520
400
  }
521
401
  ]
@@ -582,91 +462,51 @@
582
462
  "columns": 3,
583
463
  "children": [
584
464
  {
585
- "type": "card",
586
- "children": [
587
- {
588
- "type": "stack",
589
- "direction": "vertical",
590
- "gap": "sm",
591
- "children": [
592
- {
593
- "type": "typography",
594
- "variant": "caption",
595
- "content": "TotalValue"
596
- },
597
- {
598
- "type": "typography",
599
- "variant": "h3",
600
- "content": "@entity.totalValue"
601
- }
602
- ]
603
- }
465
+ "type": "stat-display",
466
+ "label": "TotalValue",
467
+ "value": [
468
+ "object/get",
469
+ [
470
+ "array/first",
471
+ "@entity"
472
+ ],
473
+ "totalValue"
604
474
  ]
605
475
  },
606
476
  {
607
- "type": "card",
608
- "children": [
609
- {
610
- "type": "stack",
611
- "direction": "vertical",
612
- "gap": "sm",
613
- "children": [
614
- {
615
- "type": "typography",
616
- "variant": "caption",
617
- "content": "DailyChange"
618
- },
619
- {
620
- "type": "typography",
621
- "variant": "h3",
622
- "content": "@entity.dailyChange"
623
- }
624
- ]
625
- }
477
+ "type": "stat-display",
478
+ "label": "DailyChange",
479
+ "value": [
480
+ "object/get",
481
+ [
482
+ "array/first",
483
+ "@entity"
484
+ ],
485
+ "dailyChange"
626
486
  ]
627
487
  },
628
488
  {
629
- "type": "card",
630
- "children": [
631
- {
632
- "type": "stack",
633
- "direction": "vertical",
634
- "gap": "sm",
635
- "children": [
636
- {
637
- "type": "typography",
638
- "variant": "caption",
639
- "content": "Positions"
640
- },
641
- {
642
- "type": "typography",
643
- "variant": "h3",
644
- "content": "@entity.positions"
645
- }
646
- ]
647
- }
489
+ "type": "stat-display",
490
+ "label": "Positions",
491
+ "value": [
492
+ "object/get",
493
+ [
494
+ "array/first",
495
+ "@entity"
496
+ ],
497
+ "positions"
648
498
  ]
649
499
  },
650
500
  {
651
- "type": "card",
652
- "children": [
653
- {
654
- "type": "stack",
655
- "direction": "vertical",
656
- "gap": "sm",
657
- "children": [
658
- {
659
- "type": "typography",
660
- "variant": "caption",
661
- "content": "CashBalance"
662
- },
663
- {
664
- "type": "typography",
665
- "variant": "h3",
666
- "content": "@entity.cashBalance"
667
- }
668
- ]
669
- }
501
+ "type": "stat-display",
502
+ "label": "CashBalance",
503
+ "value": [
504
+ "object/get",
505
+ [
506
+ "array/first",
507
+ "@entity"
508
+ ],
509
+ "cashBalance"
670
510
  ]
671
511
  }
672
512
  ]
@@ -733,91 +573,51 @@
733
573
  "columns": 3,
734
574
  "children": [
735
575
  {
736
- "type": "card",
737
- "children": [
738
- {
739
- "type": "stack",
740
- "direction": "vertical",
741
- "gap": "sm",
742
- "children": [
743
- {
744
- "type": "typography",
745
- "variant": "caption",
746
- "content": "TotalValue"
747
- },
748
- {
749
- "type": "typography",
750
- "variant": "h3",
751
- "content": "@entity.totalValue"
752
- }
753
- ]
754
- }
576
+ "type": "stat-display",
577
+ "label": "TotalValue",
578
+ "value": [
579
+ "object/get",
580
+ [
581
+ "array/first",
582
+ "@entity"
583
+ ],
584
+ "totalValue"
755
585
  ]
756
586
  },
757
587
  {
758
- "type": "card",
759
- "children": [
760
- {
761
- "type": "stack",
762
- "direction": "vertical",
763
- "gap": "sm",
764
- "children": [
765
- {
766
- "type": "typography",
767
- "variant": "caption",
768
- "content": "DailyChange"
769
- },
770
- {
771
- "type": "typography",
772
- "variant": "h3",
773
- "content": "@entity.dailyChange"
774
- }
775
- ]
776
- }
588
+ "type": "stat-display",
589
+ "label": "DailyChange",
590
+ "value": [
591
+ "object/get",
592
+ [
593
+ "array/first",
594
+ "@entity"
595
+ ],
596
+ "dailyChange"
777
597
  ]
778
598
  },
779
599
  {
780
- "type": "card",
781
- "children": [
782
- {
783
- "type": "stack",
784
- "direction": "vertical",
785
- "gap": "sm",
786
- "children": [
787
- {
788
- "type": "typography",
789
- "variant": "caption",
790
- "content": "Positions"
791
- },
792
- {
793
- "type": "typography",
794
- "variant": "h3",
795
- "content": "@entity.positions"
796
- }
797
- ]
798
- }
600
+ "type": "stat-display",
601
+ "label": "Positions",
602
+ "value": [
603
+ "object/get",
604
+ [
605
+ "array/first",
606
+ "@entity"
607
+ ],
608
+ "positions"
799
609
  ]
800
610
  },
801
611
  {
802
- "type": "card",
803
- "children": [
804
- {
805
- "type": "stack",
806
- "direction": "vertical",
807
- "gap": "sm",
808
- "children": [
809
- {
810
- "type": "typography",
811
- "variant": "caption",
812
- "content": "CashBalance"
813
- },
814
- {
815
- "type": "typography",
816
- "variant": "h3",
817
- "content": "@entity.cashBalance"
818
- }
819
- ]
820
- }
612
+ "type": "stat-display",
613
+ "label": "CashBalance",
614
+ "value": [
615
+ "object/get",
616
+ [
617
+ "array/first",
618
+ "@entity"
619
+ ],
620
+ "cashBalance"
821
621
  ]
822
622
  }
823
623
  ]
@@ -967,24 +767,405 @@
967
767
  ]
968
768
  },
969
769
  {
970
- "key": "CONFIRM_DELETE",
971
- "name": "Confirm Delete"
972
- },
973
- {
974
- "key": "CANCEL",
975
- "name": "Cancel"
976
- },
977
- {
978
- "key": "CLOSE",
979
- "name": "Close"
980
- }
981
- ],
982
- "transitions": [
983
- {
984
- "from": "browsing",
770
+ "key": "CONFIRM_DELETE",
771
+ "name": "Confirm Delete"
772
+ },
773
+ {
774
+ "key": "CANCEL",
775
+ "name": "Cancel"
776
+ },
777
+ {
778
+ "key": "CLOSE",
779
+ "name": "Close"
780
+ }
781
+ ],
782
+ "transitions": [
783
+ {
784
+ "from": "browsing",
785
+ "to": "browsing",
786
+ "event": "INIT",
787
+ "effects": [
788
+ [
789
+ "fetch",
790
+ "TradeOrder"
791
+ ],
792
+ [
793
+ "render-ui",
794
+ "main",
795
+ {
796
+ "type": "stack",
797
+ "direction": "vertical",
798
+ "gap": "lg",
799
+ "children": [
800
+ {
801
+ "type": "stack",
802
+ "direction": "horizontal",
803
+ "gap": "md",
804
+ "justify": "space-between",
805
+ "children": [
806
+ {
807
+ "type": "stack",
808
+ "direction": "horizontal",
809
+ "gap": "sm",
810
+ "align": "center",
811
+ "children": [
812
+ {
813
+ "type": "icon",
814
+ "name": "shopping-cart",
815
+ "size": "lg"
816
+ },
817
+ {
818
+ "type": "typography",
819
+ "content": "Trade Orders",
820
+ "variant": "h2"
821
+ }
822
+ ]
823
+ },
824
+ {
825
+ "type": "stack",
826
+ "direction": "horizontal",
827
+ "gap": "sm",
828
+ "children": [
829
+ {
830
+ "type": "button",
831
+ "label": "Create TradeOrder",
832
+ "event": "CREATE",
833
+ "variant": "primary",
834
+ "icon": "plus"
835
+ }
836
+ ]
837
+ }
838
+ ]
839
+ },
840
+ {
841
+ "type": "divider"
842
+ },
843
+ {
844
+ "type": "data-grid",
845
+ "entity": "TradeOrder",
846
+ "emptyIcon": "inbox",
847
+ "emptyTitle": "No tradeorders yet",
848
+ "emptyDescription": "Create your first tradeorder to get started.",
849
+ "itemActions": [
850
+ {
851
+ "label": "View",
852
+ "event": "VIEW"
853
+ },
854
+ {
855
+ "label": "Edit",
856
+ "event": "EDIT"
857
+ },
858
+ {
859
+ "label": "Delete",
860
+ "event": "DELETE",
861
+ "variant": "danger"
862
+ }
863
+ ],
864
+ "className": "transition-shadow hover:shadow-md cursor-pointer",
865
+ "renderItem": [
866
+ "fn",
867
+ "item",
868
+ {
869
+ "type": "stack",
870
+ "direction": "vertical",
871
+ "gap": "sm",
872
+ "children": [
873
+ {
874
+ "type": "stack",
875
+ "direction": "horizontal",
876
+ "justify": "space-between",
877
+ "align": "center",
878
+ "children": [
879
+ {
880
+ "type": "stack",
881
+ "direction": "horizontal",
882
+ "gap": "sm",
883
+ "align": "center",
884
+ "children": [
885
+ {
886
+ "type": "icon",
887
+ "name": "shopping-cart",
888
+ "size": "sm"
889
+ },
890
+ {
891
+ "type": "typography",
892
+ "variant": "h4",
893
+ "content": "@item.symbol"
894
+ }
895
+ ]
896
+ },
897
+ {
898
+ "type": "badge",
899
+ "label": "@item.side"
900
+ }
901
+ ]
902
+ },
903
+ {
904
+ "type": "typography",
905
+ "variant": "caption",
906
+ "color": "muted",
907
+ "content": "@item.quantity"
908
+ }
909
+ ]
910
+ }
911
+ ]
912
+ }
913
+ ]
914
+ }
915
+ ]
916
+ ]
917
+ },
918
+ {
919
+ "from": "browsing",
920
+ "to": "browsing",
921
+ "event": "TRADE_ORDER_CREATED",
922
+ "effects": [
923
+ [
924
+ "fetch",
925
+ "TradeOrder"
926
+ ]
927
+ ]
928
+ },
929
+ {
930
+ "from": "browsing",
931
+ "to": "browsing",
932
+ "event": "TRADE_ORDER_UPDATED",
933
+ "effects": [
934
+ [
935
+ "fetch",
936
+ "TradeOrder"
937
+ ]
938
+ ]
939
+ },
940
+ {
941
+ "from": "browsing",
942
+ "to": "deleting",
943
+ "event": "DELETE",
944
+ "effects": [
945
+ [
946
+ "fetch",
947
+ "TradeOrder",
948
+ "@payload.id"
949
+ ],
950
+ [
951
+ "render-ui",
952
+ "modal",
953
+ {
954
+ "type": "stack",
955
+ "direction": "vertical",
956
+ "gap": "md",
957
+ "children": [
958
+ {
959
+ "type": "stack",
960
+ "direction": "horizontal",
961
+ "gap": "sm",
962
+ "children": [
963
+ {
964
+ "type": "icon",
965
+ "name": "trash-2",
966
+ "size": "md"
967
+ },
968
+ {
969
+ "type": "typography",
970
+ "content": "Delete TradeOrder",
971
+ "variant": "h3"
972
+ }
973
+ ]
974
+ },
975
+ {
976
+ "type": "divider"
977
+ },
978
+ {
979
+ "type": "typography",
980
+ "content": "Are you sure you want to delete this tradeorder?",
981
+ "variant": "body"
982
+ },
983
+ {
984
+ "type": "stack",
985
+ "direction": "horizontal",
986
+ "gap": "sm",
987
+ "justify": "end",
988
+ "children": [
989
+ {
990
+ "type": "button",
991
+ "label": "Cancel",
992
+ "event": "CANCEL",
993
+ "variant": "ghost"
994
+ },
995
+ {
996
+ "type": "button",
997
+ "label": "Delete",
998
+ "event": "CONFIRM_DELETE",
999
+ "variant": "danger",
1000
+ "icon": "trash"
1001
+ }
1002
+ ]
1003
+ }
1004
+ ]
1005
+ }
1006
+ ]
1007
+ ]
1008
+ },
1009
+ {
1010
+ "from": "deleting",
1011
+ "to": "browsing",
1012
+ "event": "CONFIRM_DELETE",
1013
+ "effects": [
1014
+ [
1015
+ "persist",
1016
+ "delete",
1017
+ "TradeOrder",
1018
+ "@entity.id"
1019
+ ],
1020
+ [
1021
+ "render-ui",
1022
+ "modal",
1023
+ null
1024
+ ],
1025
+ [
1026
+ "fetch",
1027
+ "TradeOrder"
1028
+ ],
1029
+ [
1030
+ "render-ui",
1031
+ "main",
1032
+ {
1033
+ "type": "stack",
1034
+ "direction": "vertical",
1035
+ "gap": "lg",
1036
+ "children": [
1037
+ {
1038
+ "type": "stack",
1039
+ "direction": "horizontal",
1040
+ "gap": "md",
1041
+ "justify": "space-between",
1042
+ "children": [
1043
+ {
1044
+ "type": "stack",
1045
+ "direction": "horizontal",
1046
+ "gap": "sm",
1047
+ "align": "center",
1048
+ "children": [
1049
+ {
1050
+ "type": "icon",
1051
+ "name": "shopping-cart",
1052
+ "size": "lg"
1053
+ },
1054
+ {
1055
+ "type": "typography",
1056
+ "content": "Trade Orders",
1057
+ "variant": "h2"
1058
+ }
1059
+ ]
1060
+ },
1061
+ {
1062
+ "type": "stack",
1063
+ "direction": "horizontal",
1064
+ "gap": "sm",
1065
+ "children": [
1066
+ {
1067
+ "type": "button",
1068
+ "label": "Create TradeOrder",
1069
+ "event": "CREATE",
1070
+ "variant": "primary",
1071
+ "icon": "plus"
1072
+ }
1073
+ ]
1074
+ }
1075
+ ]
1076
+ },
1077
+ {
1078
+ "type": "divider"
1079
+ },
1080
+ {
1081
+ "type": "data-grid",
1082
+ "entity": "TradeOrder",
1083
+ "emptyIcon": "inbox",
1084
+ "emptyTitle": "No tradeorders yet",
1085
+ "emptyDescription": "Create your first tradeorder to get started.",
1086
+ "itemActions": [
1087
+ {
1088
+ "label": "View",
1089
+ "event": "VIEW"
1090
+ },
1091
+ {
1092
+ "label": "Edit",
1093
+ "event": "EDIT"
1094
+ },
1095
+ {
1096
+ "label": "Delete",
1097
+ "event": "DELETE",
1098
+ "variant": "danger"
1099
+ }
1100
+ ],
1101
+ "className": "transition-shadow hover:shadow-md cursor-pointer",
1102
+ "renderItem": [
1103
+ "fn",
1104
+ "item",
1105
+ {
1106
+ "type": "stack",
1107
+ "direction": "vertical",
1108
+ "gap": "sm",
1109
+ "children": [
1110
+ {
1111
+ "type": "stack",
1112
+ "direction": "horizontal",
1113
+ "justify": "space-between",
1114
+ "align": "center",
1115
+ "children": [
1116
+ {
1117
+ "type": "stack",
1118
+ "direction": "horizontal",
1119
+ "gap": "sm",
1120
+ "align": "center",
1121
+ "children": [
1122
+ {
1123
+ "type": "icon",
1124
+ "name": "shopping-cart",
1125
+ "size": "sm"
1126
+ },
1127
+ {
1128
+ "type": "typography",
1129
+ "variant": "h4",
1130
+ "content": "@item.symbol"
1131
+ }
1132
+ ]
1133
+ },
1134
+ {
1135
+ "type": "badge",
1136
+ "label": "@item.side"
1137
+ }
1138
+ ]
1139
+ },
1140
+ {
1141
+ "type": "typography",
1142
+ "variant": "caption",
1143
+ "color": "muted",
1144
+ "content": "@item.quantity"
1145
+ }
1146
+ ]
1147
+ }
1148
+ ]
1149
+ }
1150
+ ]
1151
+ }
1152
+ ],
1153
+ [
1154
+ "notify",
1155
+ "TradeOrder deleted successfully"
1156
+ ]
1157
+ ]
1158
+ },
1159
+ {
1160
+ "from": "deleting",
985
1161
  "to": "browsing",
986
- "event": "INIT",
1162
+ "event": "CANCEL",
987
1163
  "effects": [
1164
+ [
1165
+ "render-ui",
1166
+ "modal",
1167
+ null
1168
+ ],
988
1169
  [
989
1170
  "fetch",
990
1171
  "TradeOrder"
@@ -1062,7 +1243,9 @@
1062
1243
  }
1063
1244
  ],
1064
1245
  "className": "transition-shadow hover:shadow-md cursor-pointer",
1065
- "children": [
1246
+ "renderItem": [
1247
+ "fn",
1248
+ "item",
1066
1249
  {
1067
1250
  "type": "stack",
1068
1251
  "direction": "vertical",
@@ -1088,13 +1271,13 @@
1088
1271
  {
1089
1272
  "type": "typography",
1090
1273
  "variant": "h4",
1091
- "content": "@entity.symbol"
1274
+ "content": "@item.symbol"
1092
1275
  }
1093
1276
  ]
1094
1277
  },
1095
1278
  {
1096
1279
  "type": "badge",
1097
- "label": "@entity.side"
1280
+ "label": "@item.side"
1098
1281
  }
1099
1282
  ]
1100
1283
  },
@@ -1102,7 +1285,7 @@
1102
1285
  "type": "typography",
1103
1286
  "variant": "caption",
1104
1287
  "color": "muted",
1105
- "content": "@entity.quantity"
1288
+ "content": "@item.quantity"
1106
1289
  }
1107
1290
  ]
1108
1291
  }
@@ -1114,59 +1297,64 @@
1114
1297
  ]
1115
1298
  },
1116
1299
  {
1117
- "from": "browsing",
1300
+ "from": "deleting",
1118
1301
  "to": "browsing",
1119
- "event": "TRADE_ORDER_CREATED",
1302
+ "event": "CLOSE",
1120
1303
  "effects": [
1121
1304
  [
1122
- "fetch",
1123
- "TradeOrder"
1124
- ]
1125
- ]
1126
- },
1127
- {
1128
- "from": "browsing",
1129
- "to": "browsing",
1130
- "event": "TRADE_ORDER_UPDATED",
1131
- "effects": [
1305
+ "render-ui",
1306
+ "modal",
1307
+ null
1308
+ ],
1132
1309
  [
1133
1310
  "fetch",
1134
1311
  "TradeOrder"
1135
- ]
1136
- ]
1137
- },
1138
- {
1139
- "from": "browsing",
1140
- "to": "deleting",
1141
- "event": "DELETE",
1142
- "effects": [
1143
- [
1144
- "fetch",
1145
- "TradeOrder",
1146
- "@payload.id"
1147
1312
  ],
1148
1313
  [
1149
1314
  "render-ui",
1150
- "modal",
1315
+ "main",
1151
1316
  {
1152
1317
  "type": "stack",
1153
1318
  "direction": "vertical",
1154
- "gap": "md",
1319
+ "gap": "lg",
1155
1320
  "children": [
1156
1321
  {
1157
1322
  "type": "stack",
1158
1323
  "direction": "horizontal",
1159
- "gap": "sm",
1324
+ "gap": "md",
1325
+ "justify": "space-between",
1160
1326
  "children": [
1161
1327
  {
1162
- "type": "icon",
1163
- "name": "trash-2",
1164
- "size": "md"
1328
+ "type": "stack",
1329
+ "direction": "horizontal",
1330
+ "gap": "sm",
1331
+ "align": "center",
1332
+ "children": [
1333
+ {
1334
+ "type": "icon",
1335
+ "name": "shopping-cart",
1336
+ "size": "lg"
1337
+ },
1338
+ {
1339
+ "type": "typography",
1340
+ "content": "Trade Orders",
1341
+ "variant": "h2"
1342
+ }
1343
+ ]
1165
1344
  },
1166
1345
  {
1167
- "type": "typography",
1168
- "content": "Delete TradeOrder",
1169
- "variant": "h3"
1346
+ "type": "stack",
1347
+ "direction": "horizontal",
1348
+ "gap": "sm",
1349
+ "children": [
1350
+ {
1351
+ "type": "button",
1352
+ "label": "Create TradeOrder",
1353
+ "event": "CREATE",
1354
+ "variant": "primary",
1355
+ "icon": "plus"
1356
+ }
1357
+ ]
1170
1358
  }
1171
1359
  ]
1172
1360
  },
@@ -1174,28 +1362,72 @@
1174
1362
  "type": "divider"
1175
1363
  },
1176
1364
  {
1177
- "type": "typography",
1178
- "content": "Are you sure you want to delete this tradeorder?",
1179
- "variant": "body"
1180
- },
1181
- {
1182
- "type": "stack",
1183
- "direction": "horizontal",
1184
- "gap": "sm",
1185
- "justify": "end",
1186
- "children": [
1365
+ "type": "data-grid",
1366
+ "entity": "TradeOrder",
1367
+ "emptyIcon": "inbox",
1368
+ "emptyTitle": "No tradeorders yet",
1369
+ "emptyDescription": "Create your first tradeorder to get started.",
1370
+ "itemActions": [
1187
1371
  {
1188
- "type": "button",
1189
- "label": "Cancel",
1190
- "event": "CANCEL",
1191
- "variant": "ghost"
1372
+ "label": "View",
1373
+ "event": "VIEW"
1374
+ },
1375
+ {
1376
+ "label": "Edit",
1377
+ "event": "EDIT"
1192
1378
  },
1193
1379
  {
1194
- "type": "button",
1195
1380
  "label": "Delete",
1196
- "event": "CONFIRM_DELETE",
1197
- "variant": "danger",
1198
- "icon": "trash"
1381
+ "event": "DELETE",
1382
+ "variant": "danger"
1383
+ }
1384
+ ],
1385
+ "className": "transition-shadow hover:shadow-md cursor-pointer",
1386
+ "renderItem": [
1387
+ "fn",
1388
+ "item",
1389
+ {
1390
+ "type": "stack",
1391
+ "direction": "vertical",
1392
+ "gap": "sm",
1393
+ "children": [
1394
+ {
1395
+ "type": "stack",
1396
+ "direction": "horizontal",
1397
+ "justify": "space-between",
1398
+ "align": "center",
1399
+ "children": [
1400
+ {
1401
+ "type": "stack",
1402
+ "direction": "horizontal",
1403
+ "gap": "sm",
1404
+ "align": "center",
1405
+ "children": [
1406
+ {
1407
+ "type": "icon",
1408
+ "name": "shopping-cart",
1409
+ "size": "sm"
1410
+ },
1411
+ {
1412
+ "type": "typography",
1413
+ "variant": "h4",
1414
+ "content": "@item.symbol"
1415
+ }
1416
+ ]
1417
+ },
1418
+ {
1419
+ "type": "badge",
1420
+ "label": "@item.side"
1421
+ }
1422
+ ]
1423
+ },
1424
+ {
1425
+ "type": "typography",
1426
+ "variant": "caption",
1427
+ "color": "muted",
1428
+ "content": "@item.quantity"
1429
+ }
1430
+ ]
1199
1431
  }
1200
1432
  ]
1201
1433
  }
@@ -1203,56 +1435,6 @@
1203
1435
  }
1204
1436
  ]
1205
1437
  ]
1206
- },
1207
- {
1208
- "from": "deleting",
1209
- "to": "browsing",
1210
- "event": "CONFIRM_DELETE",
1211
- "effects": [
1212
- [
1213
- "persist",
1214
- "delete",
1215
- "TradeOrder",
1216
- "@entity.id"
1217
- ],
1218
- [
1219
- "render-ui",
1220
- "modal",
1221
- null
1222
- ],
1223
- [
1224
- "fetch",
1225
- "TradeOrder"
1226
- ],
1227
- [
1228
- "notify",
1229
- "TradeOrder deleted successfully"
1230
- ]
1231
- ]
1232
- },
1233
- {
1234
- "from": "deleting",
1235
- "to": "browsing",
1236
- "event": "CANCEL",
1237
- "effects": [
1238
- [
1239
- "render-ui",
1240
- "modal",
1241
- null
1242
- ]
1243
- ]
1244
- },
1245
- {
1246
- "from": "deleting",
1247
- "to": "browsing",
1248
- "event": "CLOSE",
1249
- "effects": [
1250
- [
1251
- "render-ui",
1252
- "modal",
1253
- null
1254
- ]
1255
- ]
1256
1438
  }
1257
1439
  ]
1258
1440
  }
@@ -1930,6 +2112,12 @@
1930
2112
  {
1931
2113
  "type": "divider"
1932
2114
  },
2115
+ {
2116
+ "type": "typography",
2117
+ "variant": "body",
2118
+ "color": "muted",
2119
+ "content": "Ready to start marketfeed operation."
2120
+ },
1933
2121
  {
1934
2122
  "type": "button",
1935
2123
  "label": "Start",
@@ -1957,14 +2145,13 @@
1957
2145
  "align": "center",
1958
2146
  "children": [
1959
2147
  {
1960
- "type": "icon",
1961
- "name": "loader",
1962
- "size": "lg"
2148
+ "type": "loading-state",
2149
+ "title": "Connecting to market feed...",
2150
+ "message": "Processing marketfeed..."
1963
2151
  },
1964
2152
  {
1965
- "type": "typography",
1966
- "content": "Connecting to market feed...",
1967
- "variant": "h3"
2153
+ "type": "skeleton",
2154
+ "variant": "text"
1968
2155
  }
1969
2156
  ]
1970
2157
  }
@@ -1997,9 +2184,9 @@
1997
2184
  "size": "lg"
1998
2185
  },
1999
2186
  {
2000
- "type": "typography",
2001
- "content": "Market feed connected.",
2002
- "variant": "h3"
2187
+ "type": "alert",
2188
+ "variant": "success",
2189
+ "message": "Market feed connected."
2003
2190
  },
2004
2191
  {
2005
2192
  "type": "stack",
@@ -2040,14 +2227,10 @@
2040
2227
  "align": "center",
2041
2228
  "children": [
2042
2229
  {
2043
- "type": "icon",
2044
- "name": "alert-circle",
2045
- "size": "lg"
2046
- },
2047
- {
2048
- "type": "typography",
2049
- "content": "Market feed disconnected.",
2050
- "variant": "h3"
2230
+ "type": "error-state",
2231
+ "title": "Operation Failed",
2232
+ "message": "Market feed disconnected.",
2233
+ "onRetry": "RETRY"
2051
2234
  },
2052
2235
  {
2053
2236
  "type": "stack",
@@ -2111,6 +2294,12 @@
2111
2294
  {
2112
2295
  "type": "divider"
2113
2296
  },
2297
+ {
2298
+ "type": "typography",
2299
+ "variant": "body",
2300
+ "color": "muted",
2301
+ "content": "Ready to start marketfeed operation."
2302
+ },
2114
2303
  {
2115
2304
  "type": "button",
2116
2305
  "label": "Start",
@@ -2158,6 +2347,12 @@
2158
2347
  {
2159
2348
  "type": "divider"
2160
2349
  },
2350
+ {
2351
+ "type": "typography",
2352
+ "variant": "body",
2353
+ "color": "muted",
2354
+ "content": "Ready to start marketfeed operation."
2355
+ },
2161
2356
  {
2162
2357
  "type": "button",
2163
2358
  "label": "Start",
@@ -2185,14 +2380,13 @@
2185
2380
  "align": "center",
2186
2381
  "children": [
2187
2382
  {
2188
- "type": "icon",
2189
- "name": "loader",
2190
- "size": "lg"
2383
+ "type": "loading-state",
2384
+ "title": "Connecting to market feed...",
2385
+ "message": "Processing marketfeed..."
2191
2386
  },
2192
2387
  {
2193
- "type": "typography",
2194
- "content": "Connecting to market feed...",
2195
- "variant": "h3"
2388
+ "type": "skeleton",
2389
+ "variant": "text"
2196
2390
  }
2197
2391
  ]
2198
2392
  }