@almadar/std 3.1.0 → 3.1.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 (256) hide show
  1. package/behaviors/exports/atoms/std-async.orb +2 -1
  2. package/behaviors/exports/atoms/std-browse.orb +2 -1
  3. package/behaviors/exports/atoms/std-cache-aside.orb +2 -1
  4. package/behaviors/exports/atoms/std-circuit-breaker.orb +2 -1
  5. package/behaviors/exports/atoms/std-collision.orb +2 -1
  6. package/behaviors/exports/atoms/std-combat-log.orb +2 -1
  7. package/behaviors/exports/atoms/std-combat.orb +2 -1
  8. package/behaviors/exports/atoms/std-confirmation.orb +2 -1
  9. package/behaviors/exports/atoms/std-dialogue-box.orb +2 -1
  10. package/behaviors/exports/atoms/std-display.orb +2 -1
  11. package/behaviors/exports/atoms/std-drawer.orb +2 -1
  12. package/behaviors/exports/atoms/std-filter.orb +2 -1
  13. package/behaviors/exports/atoms/std-game-audio.orb +2 -1
  14. package/behaviors/exports/atoms/std-game-hud.orb +2 -1
  15. package/behaviors/exports/atoms/std-game-menu.orb +2 -1
  16. package/behaviors/exports/atoms/std-game-over-screen.orb +2 -1
  17. package/behaviors/exports/atoms/std-gameflow.orb +2 -1
  18. package/behaviors/exports/atoms/std-input.orb +2 -1
  19. package/behaviors/exports/atoms/std-inventory-panel.orb +2 -1
  20. package/behaviors/exports/atoms/std-isometric-canvas.orb +2 -1
  21. package/behaviors/exports/atoms/std-loading.orb +2 -1
  22. package/behaviors/exports/atoms/std-modal.orb +2 -1
  23. package/behaviors/exports/atoms/std-movement.orb +2 -1
  24. package/behaviors/exports/atoms/std-notification.orb +2 -1
  25. package/behaviors/exports/atoms/std-overworld.orb +2 -1
  26. package/behaviors/exports/atoms/std-pagination.orb +2 -1
  27. package/behaviors/exports/atoms/std-physics2d.orb +2 -1
  28. package/behaviors/exports/atoms/std-platformer-canvas.orb +2 -1
  29. package/behaviors/exports/atoms/std-quest.orb +2 -1
  30. package/behaviors/exports/atoms/std-rate-limiter.orb +2 -1
  31. package/behaviors/exports/atoms/std-score-board.orb +2 -1
  32. package/behaviors/exports/atoms/std-score.orb +2 -1
  33. package/behaviors/exports/atoms/std-search.orb +2 -1
  34. package/behaviors/exports/atoms/std-selection.orb +2 -1
  35. package/behaviors/exports/atoms/std-simulation-canvas.orb +2 -1
  36. package/behaviors/exports/atoms/std-sort.orb +2 -1
  37. package/behaviors/exports/atoms/std-sprite.orb +2 -1
  38. package/behaviors/exports/atoms/std-tabs.orb +2 -1
  39. package/behaviors/exports/atoms/std-timer.orb +2 -1
  40. package/behaviors/exports/atoms/std-undo.orb +2 -1
  41. package/behaviors/exports/atoms/std-wizard.orb +2 -1
  42. package/behaviors/exports/molecules/std-builder-game.orb +2 -1
  43. package/behaviors/exports/molecules/std-cart.orb +2 -1
  44. package/behaviors/exports/molecules/std-classifier-game.orb +2 -1
  45. package/behaviors/exports/molecules/std-debugger-game.orb +2 -1
  46. package/behaviors/exports/molecules/std-detail.orb +2 -1
  47. package/behaviors/exports/molecules/std-event-handler-game.orb +2 -1
  48. package/behaviors/exports/molecules/std-geospatial.orb +2 -1
  49. package/behaviors/exports/molecules/std-inventory.orb +2 -1
  50. package/behaviors/exports/molecules/std-list.orb +2 -1
  51. package/behaviors/exports/molecules/std-messaging.orb +2 -1
  52. package/behaviors/exports/molecules/std-negotiator-game.orb +2 -1
  53. package/behaviors/exports/molecules/std-platformer-game.orb +2 -1
  54. package/behaviors/exports/molecules/std-puzzle-game.orb +2 -1
  55. package/behaviors/exports/molecules/std-sequencer-game.orb +2 -1
  56. package/behaviors/exports/molecules/std-simulator-game.orb +2 -1
  57. package/behaviors/exports/molecules/std-turn-based-battle.orb +2 -1
  58. package/behaviors/exports/organisms/std-api-gateway.orb +2 -1
  59. package/behaviors/exports/organisms/std-arcade-game.orb +2 -1
  60. package/behaviors/exports/organisms/std-booking-system.orb +2 -1
  61. package/behaviors/exports/organisms/std-cicd-pipeline.orb +2 -1
  62. package/behaviors/exports/organisms/std-cms.orb +2 -1
  63. package/behaviors/exports/organisms/std-coding-academy.orb +2 -1
  64. package/behaviors/exports/organisms/std-crm.orb +2 -1
  65. package/behaviors/exports/organisms/std-devops-dashboard.orb +2 -1
  66. package/behaviors/exports/organisms/std-ecommerce.orb +2 -1
  67. package/behaviors/exports/organisms/std-finance-tracker.orb +2 -1
  68. package/behaviors/exports/organisms/std-healthcare.orb +2 -1
  69. package/behaviors/exports/organisms/std-helpdesk.orb +2 -1
  70. package/behaviors/exports/organisms/std-hr-portal.orb +2 -1
  71. package/behaviors/exports/organisms/std-iot-dashboard.orb +2 -1
  72. package/behaviors/exports/organisms/std-lms.orb +2 -1
  73. package/behaviors/exports/organisms/std-logic-training.orb +2 -1
  74. package/behaviors/exports/organisms/std-platformer-app.orb +2 -1
  75. package/behaviors/exports/organisms/std-project-manager.orb +2 -1
  76. package/behaviors/exports/organisms/std-puzzle-app.orb +2 -1
  77. package/behaviors/exports/organisms/std-realtime-chat.orb +2 -1
  78. package/behaviors/exports/organisms/std-rpg-game.orb +2 -1
  79. package/behaviors/exports/organisms/std-social-feed.orb +2 -1
  80. package/behaviors/exports/organisms/std-stem-lab.orb +2 -1
  81. package/behaviors/exports/organisms/std-strategy-game.orb +2 -1
  82. package/behaviors/exports/organisms/std-trading-dashboard.orb +2 -1
  83. package/dist/behaviors/exports/atoms/std-async.orb +421 -0
  84. package/dist/behaviors/exports/atoms/std-browse.orb +174 -0
  85. package/dist/behaviors/exports/atoms/std-cache-aside.orb +882 -0
  86. package/dist/behaviors/exports/atoms/std-circuit-breaker.orb +502 -0
  87. package/dist/behaviors/exports/atoms/std-collision.orb +617 -0
  88. package/dist/behaviors/exports/atoms/std-combat-log.orb +146 -0
  89. package/dist/behaviors/exports/atoms/std-combat.orb +411 -0
  90. package/dist/behaviors/exports/atoms/std-confirmation.orb +283 -0
  91. package/dist/behaviors/exports/atoms/std-dialogue-box.orb +239 -0
  92. package/dist/behaviors/exports/atoms/std-display.orb +843 -0
  93. package/dist/behaviors/exports/atoms/std-drawer.orb +317 -0
  94. package/dist/behaviors/exports/atoms/std-filter.orb +443 -0
  95. package/dist/behaviors/exports/atoms/std-game-audio.orb +114 -0
  96. package/dist/behaviors/exports/atoms/std-game-hud.orb +152 -0
  97. package/dist/behaviors/exports/atoms/std-game-menu.orb +212 -0
  98. package/dist/behaviors/exports/atoms/std-game-over-screen.orb +196 -0
  99. package/dist/behaviors/exports/atoms/std-gameflow.orb +319 -0
  100. package/dist/behaviors/exports/atoms/std-input.orb +630 -0
  101. package/dist/behaviors/exports/atoms/std-inventory-panel.orb +256 -0
  102. package/dist/behaviors/exports/atoms/std-isometric-canvas.orb +632 -0
  103. package/dist/behaviors/exports/atoms/std-loading.orb +512 -0
  104. package/dist/behaviors/exports/atoms/std-modal.orb +271 -0
  105. package/dist/behaviors/exports/atoms/std-movement.orb +1038 -0
  106. package/dist/behaviors/exports/atoms/std-notification.orb +419 -0
  107. package/dist/behaviors/exports/atoms/std-overworld.orb +484 -0
  108. package/dist/behaviors/exports/atoms/std-pagination.orb +332 -0
  109. package/dist/behaviors/exports/atoms/std-physics2d.orb +420 -0
  110. package/dist/behaviors/exports/atoms/std-platformer-canvas.orb +258 -0
  111. package/dist/behaviors/exports/atoms/std-quest.orb +981 -0
  112. package/dist/behaviors/exports/atoms/std-rate-limiter.orb +639 -0
  113. package/dist/behaviors/exports/atoms/std-score-board.orb +239 -0
  114. package/dist/behaviors/exports/atoms/std-score.orb +467 -0
  115. package/dist/behaviors/exports/atoms/std-search.orb +374 -0
  116. package/dist/behaviors/exports/atoms/std-selection.orb +760 -0
  117. package/dist/behaviors/exports/atoms/std-simulation-canvas.orb +184 -0
  118. package/dist/behaviors/exports/atoms/std-sort.orb +579 -0
  119. package/dist/behaviors/exports/atoms/std-sprite.orb +157 -0
  120. package/dist/behaviors/exports/atoms/std-tabs.orb +275 -0
  121. package/dist/behaviors/exports/atoms/std-timer.orb +1031 -0
  122. package/dist/behaviors/exports/atoms/std-undo.orb +695 -0
  123. package/dist/behaviors/exports/atoms/std-wizard.orb +667 -0
  124. package/dist/behaviors/exports/molecules/std-builder-game.orb +184 -0
  125. package/dist/behaviors/exports/molecules/std-cart.orb +592 -0
  126. package/dist/behaviors/exports/molecules/std-classifier-game.orb +184 -0
  127. package/dist/behaviors/exports/molecules/std-debugger-game.orb +184 -0
  128. package/dist/behaviors/exports/molecules/std-detail.orb +590 -0
  129. package/dist/behaviors/exports/molecules/std-event-handler-game.orb +184 -0
  130. package/dist/behaviors/exports/molecules/std-geospatial.orb +650 -0
  131. package/dist/behaviors/exports/molecules/std-inventory.orb +854 -0
  132. package/dist/behaviors/exports/molecules/std-list.orb +955 -0
  133. package/dist/behaviors/exports/molecules/std-messaging.orb +586 -0
  134. package/dist/behaviors/exports/molecules/std-negotiator-game.orb +184 -0
  135. package/dist/behaviors/exports/molecules/std-platformer-game.orb +497 -0
  136. package/dist/behaviors/exports/molecules/std-puzzle-game.orb +528 -0
  137. package/dist/behaviors/exports/molecules/std-sequencer-game.orb +184 -0
  138. package/dist/behaviors/exports/molecules/std-simulator-game.orb +184 -0
  139. package/dist/behaviors/exports/molecules/std-turn-based-battle.orb +444 -0
  140. package/dist/behaviors/exports/organisms/std-api-gateway.orb +2297 -0
  141. package/dist/behaviors/exports/organisms/std-arcade-game.orb +834 -0
  142. package/dist/behaviors/exports/organisms/std-booking-system.orb +3978 -0
  143. package/dist/behaviors/exports/organisms/std-cicd-pipeline.orb +2215 -0
  144. package/dist/behaviors/exports/organisms/std-cms.orb +2645 -0
  145. package/dist/behaviors/exports/organisms/std-coding-academy.orb +1395 -0
  146. package/dist/behaviors/exports/organisms/std-crm.orb +3542 -0
  147. package/dist/behaviors/exports/organisms/std-devops-dashboard.orb +3135 -0
  148. package/dist/behaviors/exports/organisms/std-ecommerce.orb +3744 -0
  149. package/dist/behaviors/exports/organisms/std-finance-tracker.orb +2386 -0
  150. package/dist/behaviors/exports/organisms/std-healthcare.orb +4680 -0
  151. package/dist/behaviors/exports/organisms/std-helpdesk.orb +2565 -0
  152. package/dist/behaviors/exports/organisms/std-hr-portal.orb +4030 -0
  153. package/dist/behaviors/exports/organisms/std-iot-dashboard.orb +2298 -0
  154. package/dist/behaviors/exports/organisms/std-lms.orb +2855 -0
  155. package/dist/behaviors/exports/organisms/std-logic-training.orb +599 -0
  156. package/dist/behaviors/exports/organisms/std-platformer-app.orb +1570 -0
  157. package/dist/behaviors/exports/organisms/std-project-manager.orb +3022 -0
  158. package/dist/behaviors/exports/organisms/std-puzzle-app.orb +744 -0
  159. package/dist/behaviors/exports/organisms/std-realtime-chat.orb +2381 -0
  160. package/dist/behaviors/exports/organisms/std-rpg-game.orb +2805 -0
  161. package/dist/behaviors/exports/organisms/std-social-feed.orb +1222 -0
  162. package/dist/behaviors/exports/organisms/std-stem-lab.orb +1211 -0
  163. package/dist/behaviors/exports/organisms/std-strategy-game.orb +1762 -0
  164. package/dist/behaviors/exports/organisms/std-trading-dashboard.orb +2218 -0
  165. package/dist/behaviors/exports-reader.d.ts +2 -0
  166. package/dist/behaviors/exports-reader.js +5 -3
  167. package/dist/behaviors/exports-reader.js.map +1 -1
  168. package/dist/behaviors/index.js +5 -3
  169. package/dist/behaviors/index.js.map +1 -1
  170. package/dist/exports/atoms/std-async.orb +421 -0
  171. package/dist/exports/atoms/std-browse.orb +174 -0
  172. package/dist/exports/atoms/std-cache-aside.orb +882 -0
  173. package/dist/exports/atoms/std-circuit-breaker.orb +502 -0
  174. package/dist/exports/atoms/std-collision.orb +617 -0
  175. package/dist/exports/atoms/std-combat-log.orb +146 -0
  176. package/dist/exports/atoms/std-combat.orb +411 -0
  177. package/dist/exports/atoms/std-confirmation.orb +283 -0
  178. package/dist/exports/atoms/std-dialogue-box.orb +239 -0
  179. package/dist/exports/atoms/std-display.orb +843 -0
  180. package/dist/exports/atoms/std-drawer.orb +317 -0
  181. package/dist/exports/atoms/std-filter.orb +443 -0
  182. package/dist/exports/atoms/std-game-audio.orb +114 -0
  183. package/dist/exports/atoms/std-game-hud.orb +152 -0
  184. package/dist/exports/atoms/std-game-menu.orb +212 -0
  185. package/dist/exports/atoms/std-game-over-screen.orb +196 -0
  186. package/dist/exports/atoms/std-gameflow.orb +319 -0
  187. package/dist/exports/atoms/std-input.orb +630 -0
  188. package/dist/exports/atoms/std-inventory-panel.orb +256 -0
  189. package/dist/exports/atoms/std-isometric-canvas.orb +632 -0
  190. package/dist/exports/atoms/std-loading.orb +512 -0
  191. package/dist/exports/atoms/std-modal.orb +271 -0
  192. package/dist/exports/atoms/std-movement.orb +1038 -0
  193. package/dist/exports/atoms/std-notification.orb +419 -0
  194. package/dist/exports/atoms/std-overworld.orb +484 -0
  195. package/dist/exports/atoms/std-pagination.orb +332 -0
  196. package/dist/exports/atoms/std-physics2d.orb +420 -0
  197. package/dist/exports/atoms/std-platformer-canvas.orb +258 -0
  198. package/dist/exports/atoms/std-quest.orb +981 -0
  199. package/dist/exports/atoms/std-rate-limiter.orb +639 -0
  200. package/dist/exports/atoms/std-score-board.orb +239 -0
  201. package/dist/exports/atoms/std-score.orb +467 -0
  202. package/dist/exports/atoms/std-search.orb +374 -0
  203. package/dist/exports/atoms/std-selection.orb +760 -0
  204. package/dist/exports/atoms/std-simulation-canvas.orb +184 -0
  205. package/dist/exports/atoms/std-sort.orb +579 -0
  206. package/dist/exports/atoms/std-sprite.orb +157 -0
  207. package/dist/exports/atoms/std-tabs.orb +275 -0
  208. package/dist/exports/atoms/std-timer.orb +1031 -0
  209. package/dist/exports/atoms/std-undo.orb +695 -0
  210. package/dist/exports/atoms/std-wizard.orb +667 -0
  211. package/dist/exports/molecules/std-builder-game.orb +184 -0
  212. package/dist/exports/molecules/std-cart.orb +592 -0
  213. package/dist/exports/molecules/std-classifier-game.orb +184 -0
  214. package/dist/exports/molecules/std-debugger-game.orb +184 -0
  215. package/dist/exports/molecules/std-detail.orb +590 -0
  216. package/dist/exports/molecules/std-event-handler-game.orb +184 -0
  217. package/dist/exports/molecules/std-geospatial.orb +650 -0
  218. package/dist/exports/molecules/std-inventory.orb +854 -0
  219. package/dist/exports/molecules/std-list.orb +955 -0
  220. package/dist/exports/molecules/std-messaging.orb +586 -0
  221. package/dist/exports/molecules/std-negotiator-game.orb +184 -0
  222. package/dist/exports/molecules/std-platformer-game.orb +497 -0
  223. package/dist/exports/molecules/std-puzzle-game.orb +528 -0
  224. package/dist/exports/molecules/std-sequencer-game.orb +184 -0
  225. package/dist/exports/molecules/std-simulator-game.orb +184 -0
  226. package/dist/exports/molecules/std-turn-based-battle.orb +444 -0
  227. package/dist/exports/organisms/std-api-gateway.orb +2297 -0
  228. package/dist/exports/organisms/std-arcade-game.orb +834 -0
  229. package/dist/exports/organisms/std-booking-system.orb +3978 -0
  230. package/dist/exports/organisms/std-cicd-pipeline.orb +2215 -0
  231. package/dist/exports/organisms/std-cms.orb +2645 -0
  232. package/dist/exports/organisms/std-coding-academy.orb +1395 -0
  233. package/dist/exports/organisms/std-crm.orb +3542 -0
  234. package/dist/exports/organisms/std-devops-dashboard.orb +3135 -0
  235. package/dist/exports/organisms/std-ecommerce.orb +3744 -0
  236. package/dist/exports/organisms/std-finance-tracker.orb +2386 -0
  237. package/dist/exports/organisms/std-healthcare.orb +4680 -0
  238. package/dist/exports/organisms/std-helpdesk.orb +2565 -0
  239. package/dist/exports/organisms/std-hr-portal.orb +4030 -0
  240. package/dist/exports/organisms/std-iot-dashboard.orb +2298 -0
  241. package/dist/exports/organisms/std-lms.orb +2855 -0
  242. package/dist/exports/organisms/std-logic-training.orb +599 -0
  243. package/dist/exports/organisms/std-platformer-app.orb +1570 -0
  244. package/dist/exports/organisms/std-project-manager.orb +3022 -0
  245. package/dist/exports/organisms/std-puzzle-app.orb +744 -0
  246. package/dist/exports/organisms/std-realtime-chat.orb +2381 -0
  247. package/dist/exports/organisms/std-rpg-game.orb +2805 -0
  248. package/dist/exports/organisms/std-social-feed.orb +1222 -0
  249. package/dist/exports/organisms/std-stem-lab.orb +1211 -0
  250. package/dist/exports/organisms/std-strategy-game.orb +1762 -0
  251. package/dist/exports/organisms/std-trading-dashboard.orb +2218 -0
  252. package/dist/index.js +5 -3
  253. package/dist/index.js.map +1 -1
  254. package/package.json +1 -1
  255. package/behaviors/exports/atoms/std-game-canvas-2d.orb +0 -135
  256. package/behaviors/exports/atoms/std-game-canvas-3d.orb +0 -224
@@ -0,0 +1,579 @@
1
+ {
2
+ "name": "ItemOrbital",
3
+ "orbitals": [
4
+ {
5
+ "name": "ItemOrbital",
6
+ "entity": {
7
+ "name": "Item",
8
+ "persistence": "runtime",
9
+ "fields": [
10
+ {
11
+ "name": "id",
12
+ "type": "string"
13
+ },
14
+ {
15
+ "name": "name",
16
+ "type": "string"
17
+ },
18
+ {
19
+ "name": "description",
20
+ "type": "string"
21
+ },
22
+ {
23
+ "name": "status",
24
+ "type": "string",
25
+ "default": "active"
26
+ },
27
+ {
28
+ "name": "createdAt",
29
+ "type": "string"
30
+ }
31
+ ]
32
+ },
33
+ "traits": [
34
+ {
35
+ "name": "ItemSort",
36
+ "linkedEntity": "Item",
37
+ "category": "interaction",
38
+ "stateMachine": {
39
+ "states": [
40
+ {
41
+ "name": "idle",
42
+ "isInitial": true
43
+ },
44
+ {
45
+ "name": "sorted"
46
+ }
47
+ ],
48
+ "events": [
49
+ {
50
+ "key": "INIT",
51
+ "name": "Initialize"
52
+ },
53
+ {
54
+ "key": "SORT",
55
+ "name": "Sort"
56
+ }
57
+ ],
58
+ "transitions": [
59
+ {
60
+ "from": "idle",
61
+ "to": "idle",
62
+ "event": "INIT",
63
+ "effects": [
64
+ [
65
+ "fetch",
66
+ "Item"
67
+ ],
68
+ [
69
+ "render-ui",
70
+ "main",
71
+ {
72
+ "type": "stack",
73
+ "direction": "vertical",
74
+ "gap": "lg",
75
+ "children": [
76
+ {
77
+ "type": "stack",
78
+ "direction": "horizontal",
79
+ "gap": "sm",
80
+ "justify": "space-between",
81
+ "align": "center",
82
+ "children": [
83
+ {
84
+ "type": "stack",
85
+ "direction": "horizontal",
86
+ "gap": "sm",
87
+ "align": "center",
88
+ "children": [
89
+ {
90
+ "type": "icon",
91
+ "name": "arrow-up-down",
92
+ "size": "lg"
93
+ },
94
+ {
95
+ "type": "typography",
96
+ "content": "Items",
97
+ "variant": "h2"
98
+ }
99
+ ]
100
+ }
101
+ ]
102
+ },
103
+ {
104
+ "type": "divider"
105
+ },
106
+ {
107
+ "type": "stack",
108
+ "direction": "horizontal",
109
+ "gap": "sm",
110
+ "align": "center",
111
+ "children": [
112
+ {
113
+ "type": "typography",
114
+ "variant": "caption",
115
+ "color": "muted",
116
+ "content": "Sort by"
117
+ },
118
+ {
119
+ "type": "button",
120
+ "label": "Name",
121
+ "event": "SORT",
122
+ "variant": "secondary",
123
+ "icon": "arrow-up-down"
124
+ },
125
+ {
126
+ "type": "button",
127
+ "label": "Description",
128
+ "event": "SORT",
129
+ "variant": "secondary",
130
+ "icon": "arrow-up-down"
131
+ },
132
+ {
133
+ "type": "button",
134
+ "label": "Status",
135
+ "event": "SORT",
136
+ "variant": "secondary",
137
+ "icon": "arrow-up-down"
138
+ },
139
+ {
140
+ "type": "button",
141
+ "label": "CreatedAt",
142
+ "event": "SORT",
143
+ "variant": "secondary",
144
+ "icon": "arrow-up-down"
145
+ }
146
+ ]
147
+ },
148
+ {
149
+ "type": "data-grid",
150
+ "entity": "Item",
151
+ "emptyIcon": "inbox",
152
+ "emptyTitle": "No items yet",
153
+ "emptyDescription": "Add items to see them here.",
154
+ "className": "transition-shadow hover:shadow-md cursor-pointer",
155
+ "children": [
156
+ {
157
+ "type": "stack",
158
+ "direction": "vertical",
159
+ "gap": "sm",
160
+ "children": [
161
+ {
162
+ "type": "typography",
163
+ "variant": "h4",
164
+ "content": "@entity.name"
165
+ },
166
+ {
167
+ "type": "typography",
168
+ "variant": "caption",
169
+ "color": "muted",
170
+ "content": "@entity.description"
171
+ }
172
+ ]
173
+ }
174
+ ]
175
+ }
176
+ ]
177
+ }
178
+ ]
179
+ ]
180
+ },
181
+ {
182
+ "from": "idle",
183
+ "to": "sorted",
184
+ "event": "SORT",
185
+ "effects": [
186
+ [
187
+ "fetch",
188
+ "Item"
189
+ ],
190
+ [
191
+ "render-ui",
192
+ "main",
193
+ {
194
+ "type": "stack",
195
+ "direction": "vertical",
196
+ "gap": "lg",
197
+ "children": [
198
+ {
199
+ "type": "stack",
200
+ "direction": "horizontal",
201
+ "gap": "sm",
202
+ "justify": "space-between",
203
+ "align": "center",
204
+ "children": [
205
+ {
206
+ "type": "stack",
207
+ "direction": "horizontal",
208
+ "gap": "sm",
209
+ "align": "center",
210
+ "children": [
211
+ {
212
+ "type": "icon",
213
+ "name": "arrow-up-down",
214
+ "size": "lg"
215
+ },
216
+ {
217
+ "type": "typography",
218
+ "content": "Items",
219
+ "variant": "h2"
220
+ }
221
+ ]
222
+ },
223
+ {
224
+ "type": "button",
225
+ "label": "Clear sort",
226
+ "event": "INIT",
227
+ "variant": "ghost",
228
+ "icon": "x"
229
+ }
230
+ ]
231
+ },
232
+ {
233
+ "type": "divider"
234
+ },
235
+ {
236
+ "type": "stack",
237
+ "direction": "horizontal",
238
+ "gap": "sm",
239
+ "align": "center",
240
+ "children": [
241
+ {
242
+ "type": "typography",
243
+ "variant": "caption",
244
+ "color": "muted",
245
+ "content": "Sort by"
246
+ },
247
+ {
248
+ "type": "button",
249
+ "label": "Name",
250
+ "event": "SORT",
251
+ "variant": "primary",
252
+ "icon": "chevron-up"
253
+ },
254
+ {
255
+ "type": "button",
256
+ "label": "Description",
257
+ "event": "SORT",
258
+ "variant": "secondary",
259
+ "icon": "arrow-up-down"
260
+ },
261
+ {
262
+ "type": "button",
263
+ "label": "Status",
264
+ "event": "SORT",
265
+ "variant": "secondary",
266
+ "icon": "arrow-up-down"
267
+ },
268
+ {
269
+ "type": "button",
270
+ "label": "CreatedAt",
271
+ "event": "SORT",
272
+ "variant": "secondary",
273
+ "icon": "arrow-up-down"
274
+ }
275
+ ]
276
+ },
277
+ {
278
+ "type": "data-grid",
279
+ "entity": "Item",
280
+ "emptyIcon": "inbox",
281
+ "emptyTitle": "No items yet",
282
+ "emptyDescription": "Add items to see them here.",
283
+ "className": "transition-shadow hover:shadow-md cursor-pointer",
284
+ "children": [
285
+ {
286
+ "type": "stack",
287
+ "direction": "vertical",
288
+ "gap": "sm",
289
+ "children": [
290
+ {
291
+ "type": "typography",
292
+ "variant": "h4",
293
+ "content": "@entity.name"
294
+ },
295
+ {
296
+ "type": "typography",
297
+ "variant": "caption",
298
+ "color": "muted",
299
+ "content": "@entity.description"
300
+ }
301
+ ]
302
+ }
303
+ ]
304
+ }
305
+ ]
306
+ }
307
+ ]
308
+ ]
309
+ },
310
+ {
311
+ "from": "sorted",
312
+ "to": "sorted",
313
+ "event": "SORT",
314
+ "effects": [
315
+ [
316
+ "fetch",
317
+ "Item"
318
+ ],
319
+ [
320
+ "render-ui",
321
+ "main",
322
+ {
323
+ "type": "stack",
324
+ "direction": "vertical",
325
+ "gap": "lg",
326
+ "children": [
327
+ {
328
+ "type": "stack",
329
+ "direction": "horizontal",
330
+ "gap": "sm",
331
+ "justify": "space-between",
332
+ "align": "center",
333
+ "children": [
334
+ {
335
+ "type": "stack",
336
+ "direction": "horizontal",
337
+ "gap": "sm",
338
+ "align": "center",
339
+ "children": [
340
+ {
341
+ "type": "icon",
342
+ "name": "arrow-up-down",
343
+ "size": "lg"
344
+ },
345
+ {
346
+ "type": "typography",
347
+ "content": "Items",
348
+ "variant": "h2"
349
+ }
350
+ ]
351
+ },
352
+ {
353
+ "type": "button",
354
+ "label": "Clear sort",
355
+ "event": "INIT",
356
+ "variant": "ghost",
357
+ "icon": "x"
358
+ }
359
+ ]
360
+ },
361
+ {
362
+ "type": "divider"
363
+ },
364
+ {
365
+ "type": "stack",
366
+ "direction": "horizontal",
367
+ "gap": "sm",
368
+ "align": "center",
369
+ "children": [
370
+ {
371
+ "type": "typography",
372
+ "variant": "caption",
373
+ "color": "muted",
374
+ "content": "Sort by"
375
+ },
376
+ {
377
+ "type": "button",
378
+ "label": "Name",
379
+ "event": "SORT",
380
+ "variant": "primary",
381
+ "icon": "chevron-up"
382
+ },
383
+ {
384
+ "type": "button",
385
+ "label": "Description",
386
+ "event": "SORT",
387
+ "variant": "secondary",
388
+ "icon": "arrow-up-down"
389
+ },
390
+ {
391
+ "type": "button",
392
+ "label": "Status",
393
+ "event": "SORT",
394
+ "variant": "secondary",
395
+ "icon": "arrow-up-down"
396
+ },
397
+ {
398
+ "type": "button",
399
+ "label": "CreatedAt",
400
+ "event": "SORT",
401
+ "variant": "secondary",
402
+ "icon": "arrow-up-down"
403
+ }
404
+ ]
405
+ },
406
+ {
407
+ "type": "data-grid",
408
+ "entity": "Item",
409
+ "emptyIcon": "inbox",
410
+ "emptyTitle": "No items yet",
411
+ "emptyDescription": "Add items to see them here.",
412
+ "className": "transition-shadow hover:shadow-md cursor-pointer",
413
+ "children": [
414
+ {
415
+ "type": "stack",
416
+ "direction": "vertical",
417
+ "gap": "sm",
418
+ "children": [
419
+ {
420
+ "type": "typography",
421
+ "variant": "h4",
422
+ "content": "@entity.name"
423
+ },
424
+ {
425
+ "type": "typography",
426
+ "variant": "caption",
427
+ "color": "muted",
428
+ "content": "@entity.description"
429
+ }
430
+ ]
431
+ }
432
+ ]
433
+ }
434
+ ]
435
+ }
436
+ ]
437
+ ]
438
+ },
439
+ {
440
+ "from": "sorted",
441
+ "to": "idle",
442
+ "event": "INIT",
443
+ "effects": [
444
+ [
445
+ "fetch",
446
+ "Item"
447
+ ],
448
+ [
449
+ "render-ui",
450
+ "main",
451
+ {
452
+ "type": "stack",
453
+ "direction": "vertical",
454
+ "gap": "lg",
455
+ "children": [
456
+ {
457
+ "type": "stack",
458
+ "direction": "horizontal",
459
+ "gap": "sm",
460
+ "justify": "space-between",
461
+ "align": "center",
462
+ "children": [
463
+ {
464
+ "type": "stack",
465
+ "direction": "horizontal",
466
+ "gap": "sm",
467
+ "align": "center",
468
+ "children": [
469
+ {
470
+ "type": "icon",
471
+ "name": "arrow-up-down",
472
+ "size": "lg"
473
+ },
474
+ {
475
+ "type": "typography",
476
+ "content": "Items",
477
+ "variant": "h2"
478
+ }
479
+ ]
480
+ }
481
+ ]
482
+ },
483
+ {
484
+ "type": "divider"
485
+ },
486
+ {
487
+ "type": "stack",
488
+ "direction": "horizontal",
489
+ "gap": "sm",
490
+ "align": "center",
491
+ "children": [
492
+ {
493
+ "type": "typography",
494
+ "variant": "caption",
495
+ "color": "muted",
496
+ "content": "Sort by"
497
+ },
498
+ {
499
+ "type": "button",
500
+ "label": "Name",
501
+ "event": "SORT",
502
+ "variant": "secondary",
503
+ "icon": "arrow-up-down"
504
+ },
505
+ {
506
+ "type": "button",
507
+ "label": "Description",
508
+ "event": "SORT",
509
+ "variant": "secondary",
510
+ "icon": "arrow-up-down"
511
+ },
512
+ {
513
+ "type": "button",
514
+ "label": "Status",
515
+ "event": "SORT",
516
+ "variant": "secondary",
517
+ "icon": "arrow-up-down"
518
+ },
519
+ {
520
+ "type": "button",
521
+ "label": "CreatedAt",
522
+ "event": "SORT",
523
+ "variant": "secondary",
524
+ "icon": "arrow-up-down"
525
+ }
526
+ ]
527
+ },
528
+ {
529
+ "type": "data-grid",
530
+ "entity": "Item",
531
+ "emptyIcon": "inbox",
532
+ "emptyTitle": "No items yet",
533
+ "emptyDescription": "Add items to see them here.",
534
+ "className": "transition-shadow hover:shadow-md cursor-pointer",
535
+ "children": [
536
+ {
537
+ "type": "stack",
538
+ "direction": "vertical",
539
+ "gap": "sm",
540
+ "children": [
541
+ {
542
+ "type": "typography",
543
+ "variant": "h4",
544
+ "content": "@entity.name"
545
+ },
546
+ {
547
+ "type": "typography",
548
+ "variant": "caption",
549
+ "color": "muted",
550
+ "content": "@entity.description"
551
+ }
552
+ ]
553
+ }
554
+ ]
555
+ }
556
+ ]
557
+ }
558
+ ]
559
+ ]
560
+ }
561
+ ]
562
+ }
563
+ }
564
+ ],
565
+ "pages": [
566
+ {
567
+ "name": "ItemSortPage",
568
+ "path": "/items",
569
+ "traits": [
570
+ {
571
+ "ref": "ItemSort"
572
+ }
573
+ ]
574
+ }
575
+ ]
576
+ }
577
+ ],
578
+ "description": "Sort atom. Shows sort-by buttons for each sortable field. Clicking a field name sorts by that field. Clicking again toggles direction."
579
+ }