@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,760 @@
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
+ "name": "selectedId",
33
+ "type": "string",
34
+ "default": ""
35
+ }
36
+ ]
37
+ },
38
+ "traits": [
39
+ {
40
+ "name": "ItemSelection",
41
+ "linkedEntity": "Item",
42
+ "category": "interaction",
43
+ "stateMachine": {
44
+ "states": [
45
+ {
46
+ "name": "idle",
47
+ "isInitial": true
48
+ },
49
+ {
50
+ "name": "selecting"
51
+ },
52
+ {
53
+ "name": "selected"
54
+ }
55
+ ],
56
+ "events": [
57
+ {
58
+ "key": "INIT",
59
+ "name": "Initialize"
60
+ },
61
+ {
62
+ "key": "SELECT",
63
+ "name": "Select",
64
+ "payload": [
65
+ {
66
+ "name": "id",
67
+ "type": "string",
68
+ "required": true
69
+ }
70
+ ]
71
+ },
72
+ {
73
+ "key": "DESELECT",
74
+ "name": "Deselect"
75
+ },
76
+ {
77
+ "key": "CLEAR",
78
+ "name": "Clear"
79
+ },
80
+ {
81
+ "key": "CONFIRM_SELECTION",
82
+ "name": "Confirm Selection"
83
+ }
84
+ ],
85
+ "transitions": [
86
+ {
87
+ "from": "idle",
88
+ "to": "idle",
89
+ "event": "INIT",
90
+ "effects": [
91
+ [
92
+ "fetch",
93
+ "Item"
94
+ ],
95
+ [
96
+ "render-ui",
97
+ "main",
98
+ {
99
+ "type": "stack",
100
+ "direction": "vertical",
101
+ "gap": "lg",
102
+ "children": [
103
+ {
104
+ "type": "stack",
105
+ "direction": "horizontal",
106
+ "gap": "sm",
107
+ "align": "center",
108
+ "children": [
109
+ {
110
+ "type": "icon",
111
+ "name": "check-square",
112
+ "size": "lg"
113
+ },
114
+ {
115
+ "type": "typography",
116
+ "content": "Items",
117
+ "variant": "h2"
118
+ }
119
+ ]
120
+ },
121
+ {
122
+ "type": "divider"
123
+ },
124
+ {
125
+ "type": "typography",
126
+ "variant": "caption",
127
+ "color": "muted",
128
+ "content": "Choose a item to continue."
129
+ },
130
+ {
131
+ "type": "data-grid",
132
+ "entity": "Item",
133
+ "emptyIcon": "inbox",
134
+ "emptyTitle": "No items yet",
135
+ "emptyDescription": "Add items to see them here.",
136
+ "className": "transition-shadow hover:shadow-md cursor-pointer",
137
+ "children": [
138
+ {
139
+ "type": "stack",
140
+ "direction": "horizontal",
141
+ "gap": "sm",
142
+ "align": "center",
143
+ "children": [
144
+ {
145
+ "type": "icon",
146
+ "name": "circle",
147
+ "size": "sm",
148
+ "color": "muted"
149
+ },
150
+ {
151
+ "type": "typography",
152
+ "variant": "h4",
153
+ "content": "@entity.name"
154
+ },
155
+ {
156
+ "type": "button",
157
+ "label": "Select",
158
+ "event": "SELECT",
159
+ "variant": "ghost",
160
+ "icon": "check"
161
+ }
162
+ ]
163
+ }
164
+ ]
165
+ }
166
+ ]
167
+ }
168
+ ]
169
+ ]
170
+ },
171
+ {
172
+ "from": "idle",
173
+ "to": "selecting",
174
+ "event": "SELECT",
175
+ "effects": [
176
+ [
177
+ "set",
178
+ "@entity.selectedId",
179
+ "@payload.id"
180
+ ],
181
+ [
182
+ "render-ui",
183
+ "main",
184
+ {
185
+ "type": "stack",
186
+ "direction": "vertical",
187
+ "gap": "lg",
188
+ "children": [
189
+ {
190
+ "type": "stack",
191
+ "direction": "horizontal",
192
+ "gap": "md",
193
+ "justify": "space-between",
194
+ "align": "center",
195
+ "children": [
196
+ {
197
+ "type": "stack",
198
+ "direction": "horizontal",
199
+ "gap": "md",
200
+ "align": "center",
201
+ "children": [
202
+ {
203
+ "type": "icon",
204
+ "name": "check-square",
205
+ "size": "lg"
206
+ },
207
+ {
208
+ "type": "typography",
209
+ "content": "Items",
210
+ "variant": "h2"
211
+ }
212
+ ]
213
+ },
214
+ {
215
+ "type": "stack",
216
+ "direction": "horizontal",
217
+ "gap": "sm",
218
+ "align": "center",
219
+ "children": [
220
+ {
221
+ "type": "badge",
222
+ "label": "Selecting"
223
+ },
224
+ {
225
+ "type": "button",
226
+ "label": "Clear",
227
+ "event": "CLEAR",
228
+ "variant": "ghost",
229
+ "icon": "x"
230
+ }
231
+ ]
232
+ }
233
+ ]
234
+ },
235
+ {
236
+ "type": "divider"
237
+ },
238
+ {
239
+ "type": "stack",
240
+ "direction": "horizontal",
241
+ "gap": "md",
242
+ "align": "center",
243
+ "children": [
244
+ {
245
+ "type": "typography",
246
+ "variant": "caption",
247
+ "content": "Selected ID:"
248
+ },
249
+ {
250
+ "type": "typography",
251
+ "variant": "body",
252
+ "content": "@entity.selectedId"
253
+ }
254
+ ]
255
+ },
256
+ {
257
+ "type": "stack",
258
+ "direction": "horizontal",
259
+ "gap": "sm",
260
+ "justify": "center",
261
+ "children": [
262
+ {
263
+ "type": "button",
264
+ "label": "Confirm",
265
+ "event": "CONFIRM_SELECTION",
266
+ "variant": "primary",
267
+ "icon": "check"
268
+ },
269
+ {
270
+ "type": "button",
271
+ "label": "Deselect",
272
+ "event": "DESELECT",
273
+ "variant": "ghost",
274
+ "icon": "x"
275
+ }
276
+ ]
277
+ }
278
+ ]
279
+ }
280
+ ]
281
+ ]
282
+ },
283
+ {
284
+ "from": "selecting",
285
+ "to": "selecting",
286
+ "event": "SELECT",
287
+ "effects": [
288
+ [
289
+ "set",
290
+ "@entity.selectedId",
291
+ "@payload.id"
292
+ ],
293
+ [
294
+ "render-ui",
295
+ "main",
296
+ {
297
+ "type": "stack",
298
+ "direction": "vertical",
299
+ "gap": "lg",
300
+ "children": [
301
+ {
302
+ "type": "stack",
303
+ "direction": "horizontal",
304
+ "gap": "md",
305
+ "justify": "space-between",
306
+ "align": "center",
307
+ "children": [
308
+ {
309
+ "type": "stack",
310
+ "direction": "horizontal",
311
+ "gap": "md",
312
+ "align": "center",
313
+ "children": [
314
+ {
315
+ "type": "icon",
316
+ "name": "check-square",
317
+ "size": "lg"
318
+ },
319
+ {
320
+ "type": "typography",
321
+ "content": "Items",
322
+ "variant": "h2"
323
+ }
324
+ ]
325
+ },
326
+ {
327
+ "type": "stack",
328
+ "direction": "horizontal",
329
+ "gap": "sm",
330
+ "align": "center",
331
+ "children": [
332
+ {
333
+ "type": "badge",
334
+ "label": "Selecting"
335
+ },
336
+ {
337
+ "type": "button",
338
+ "label": "Clear",
339
+ "event": "CLEAR",
340
+ "variant": "ghost",
341
+ "icon": "x"
342
+ }
343
+ ]
344
+ }
345
+ ]
346
+ },
347
+ {
348
+ "type": "divider"
349
+ },
350
+ {
351
+ "type": "stack",
352
+ "direction": "horizontal",
353
+ "gap": "md",
354
+ "align": "center",
355
+ "children": [
356
+ {
357
+ "type": "typography",
358
+ "variant": "caption",
359
+ "content": "Selected ID:"
360
+ },
361
+ {
362
+ "type": "typography",
363
+ "variant": "body",
364
+ "content": "@entity.selectedId"
365
+ }
366
+ ]
367
+ },
368
+ {
369
+ "type": "stack",
370
+ "direction": "horizontal",
371
+ "gap": "sm",
372
+ "justify": "center",
373
+ "children": [
374
+ {
375
+ "type": "button",
376
+ "label": "Confirm",
377
+ "event": "CONFIRM_SELECTION",
378
+ "variant": "primary",
379
+ "icon": "check"
380
+ },
381
+ {
382
+ "type": "button",
383
+ "label": "Deselect",
384
+ "event": "DESELECT",
385
+ "variant": "ghost",
386
+ "icon": "x"
387
+ }
388
+ ]
389
+ }
390
+ ]
391
+ }
392
+ ]
393
+ ]
394
+ },
395
+ {
396
+ "from": "selecting",
397
+ "to": "idle",
398
+ "event": "DESELECT",
399
+ "effects": [
400
+ [
401
+ "set",
402
+ "@entity.selectedId",
403
+ ""
404
+ ],
405
+ [
406
+ "fetch",
407
+ "Item"
408
+ ],
409
+ [
410
+ "render-ui",
411
+ "main",
412
+ {
413
+ "type": "stack",
414
+ "direction": "vertical",
415
+ "gap": "lg",
416
+ "children": [
417
+ {
418
+ "type": "stack",
419
+ "direction": "horizontal",
420
+ "gap": "sm",
421
+ "align": "center",
422
+ "children": [
423
+ {
424
+ "type": "icon",
425
+ "name": "check-square",
426
+ "size": "lg"
427
+ },
428
+ {
429
+ "type": "typography",
430
+ "content": "Items",
431
+ "variant": "h2"
432
+ }
433
+ ]
434
+ },
435
+ {
436
+ "type": "divider"
437
+ },
438
+ {
439
+ "type": "typography",
440
+ "variant": "caption",
441
+ "color": "muted",
442
+ "content": "Choose a item to continue."
443
+ },
444
+ {
445
+ "type": "data-grid",
446
+ "entity": "Item",
447
+ "emptyIcon": "inbox",
448
+ "emptyTitle": "No items yet",
449
+ "emptyDescription": "Add items to see them here.",
450
+ "className": "transition-shadow hover:shadow-md cursor-pointer",
451
+ "children": [
452
+ {
453
+ "type": "stack",
454
+ "direction": "horizontal",
455
+ "gap": "sm",
456
+ "align": "center",
457
+ "children": [
458
+ {
459
+ "type": "icon",
460
+ "name": "circle",
461
+ "size": "sm",
462
+ "color": "muted"
463
+ },
464
+ {
465
+ "type": "typography",
466
+ "variant": "h4",
467
+ "content": "@entity.name"
468
+ },
469
+ {
470
+ "type": "button",
471
+ "label": "Select",
472
+ "event": "SELECT",
473
+ "variant": "ghost",
474
+ "icon": "check"
475
+ }
476
+ ]
477
+ }
478
+ ]
479
+ }
480
+ ]
481
+ }
482
+ ]
483
+ ]
484
+ },
485
+ {
486
+ "from": "selecting",
487
+ "to": "idle",
488
+ "event": "CLEAR",
489
+ "effects": [
490
+ [
491
+ "set",
492
+ "@entity.selectedId",
493
+ ""
494
+ ],
495
+ [
496
+ "fetch",
497
+ "Item"
498
+ ],
499
+ [
500
+ "render-ui",
501
+ "main",
502
+ {
503
+ "type": "stack",
504
+ "direction": "vertical",
505
+ "gap": "lg",
506
+ "children": [
507
+ {
508
+ "type": "stack",
509
+ "direction": "horizontal",
510
+ "gap": "sm",
511
+ "align": "center",
512
+ "children": [
513
+ {
514
+ "type": "icon",
515
+ "name": "check-square",
516
+ "size": "lg"
517
+ },
518
+ {
519
+ "type": "typography",
520
+ "content": "Items",
521
+ "variant": "h2"
522
+ }
523
+ ]
524
+ },
525
+ {
526
+ "type": "divider"
527
+ },
528
+ {
529
+ "type": "typography",
530
+ "variant": "caption",
531
+ "color": "muted",
532
+ "content": "Choose a item to continue."
533
+ },
534
+ {
535
+ "type": "data-grid",
536
+ "entity": "Item",
537
+ "emptyIcon": "inbox",
538
+ "emptyTitle": "No items yet",
539
+ "emptyDescription": "Add items to see them here.",
540
+ "className": "transition-shadow hover:shadow-md cursor-pointer",
541
+ "children": [
542
+ {
543
+ "type": "stack",
544
+ "direction": "horizontal",
545
+ "gap": "sm",
546
+ "align": "center",
547
+ "children": [
548
+ {
549
+ "type": "icon",
550
+ "name": "circle",
551
+ "size": "sm",
552
+ "color": "muted"
553
+ },
554
+ {
555
+ "type": "typography",
556
+ "variant": "h4",
557
+ "content": "@entity.name"
558
+ },
559
+ {
560
+ "type": "button",
561
+ "label": "Select",
562
+ "event": "SELECT",
563
+ "variant": "ghost",
564
+ "icon": "check"
565
+ }
566
+ ]
567
+ }
568
+ ]
569
+ }
570
+ ]
571
+ }
572
+ ]
573
+ ]
574
+ },
575
+ {
576
+ "from": "selecting",
577
+ "to": "selected",
578
+ "event": "CONFIRM_SELECTION",
579
+ "effects": [
580
+ [
581
+ "render-ui",
582
+ "main",
583
+ {
584
+ "type": "stack",
585
+ "direction": "vertical",
586
+ "gap": "lg",
587
+ "children": [
588
+ {
589
+ "type": "stack",
590
+ "direction": "horizontal",
591
+ "gap": "md",
592
+ "justify": "space-between",
593
+ "align": "center",
594
+ "children": [
595
+ {
596
+ "type": "stack",
597
+ "direction": "horizontal",
598
+ "gap": "md",
599
+ "align": "center",
600
+ "children": [
601
+ {
602
+ "type": "icon",
603
+ "name": "check-circle",
604
+ "size": "lg"
605
+ },
606
+ {
607
+ "type": "typography",
608
+ "content": "Selection Confirmed",
609
+ "variant": "h2"
610
+ }
611
+ ]
612
+ },
613
+ {
614
+ "type": "badge",
615
+ "label": "Confirmed"
616
+ }
617
+ ]
618
+ },
619
+ {
620
+ "type": "divider"
621
+ },
622
+ {
623
+ "type": "stack",
624
+ "direction": "horizontal",
625
+ "gap": "md",
626
+ "align": "center",
627
+ "children": [
628
+ {
629
+ "type": "typography",
630
+ "variant": "caption",
631
+ "content": "Selected ID:"
632
+ },
633
+ {
634
+ "type": "typography",
635
+ "variant": "body",
636
+ "content": "@entity.selectedId"
637
+ }
638
+ ]
639
+ },
640
+ {
641
+ "type": "button",
642
+ "label": "Clear Selection",
643
+ "event": "CLEAR",
644
+ "variant": "ghost",
645
+ "icon": "rotate-ccw"
646
+ }
647
+ ]
648
+ }
649
+ ]
650
+ ]
651
+ },
652
+ {
653
+ "from": "selected",
654
+ "to": "idle",
655
+ "event": "CLEAR",
656
+ "effects": [
657
+ [
658
+ "set",
659
+ "@entity.selectedId",
660
+ ""
661
+ ],
662
+ [
663
+ "fetch",
664
+ "Item"
665
+ ],
666
+ [
667
+ "render-ui",
668
+ "main",
669
+ {
670
+ "type": "stack",
671
+ "direction": "vertical",
672
+ "gap": "lg",
673
+ "children": [
674
+ {
675
+ "type": "stack",
676
+ "direction": "horizontal",
677
+ "gap": "sm",
678
+ "align": "center",
679
+ "children": [
680
+ {
681
+ "type": "icon",
682
+ "name": "check-square",
683
+ "size": "lg"
684
+ },
685
+ {
686
+ "type": "typography",
687
+ "content": "Items",
688
+ "variant": "h2"
689
+ }
690
+ ]
691
+ },
692
+ {
693
+ "type": "divider"
694
+ },
695
+ {
696
+ "type": "typography",
697
+ "variant": "caption",
698
+ "color": "muted",
699
+ "content": "Choose a item to continue."
700
+ },
701
+ {
702
+ "type": "data-grid",
703
+ "entity": "Item",
704
+ "emptyIcon": "inbox",
705
+ "emptyTitle": "No items yet",
706
+ "emptyDescription": "Add items to see them here.",
707
+ "className": "transition-shadow hover:shadow-md cursor-pointer",
708
+ "children": [
709
+ {
710
+ "type": "stack",
711
+ "direction": "horizontal",
712
+ "gap": "sm",
713
+ "align": "center",
714
+ "children": [
715
+ {
716
+ "type": "icon",
717
+ "name": "circle",
718
+ "size": "sm",
719
+ "color": "muted"
720
+ },
721
+ {
722
+ "type": "typography",
723
+ "variant": "h4",
724
+ "content": "@entity.name"
725
+ },
726
+ {
727
+ "type": "button",
728
+ "label": "Select",
729
+ "event": "SELECT",
730
+ "variant": "ghost",
731
+ "icon": "check"
732
+ }
733
+ ]
734
+ }
735
+ ]
736
+ }
737
+ ]
738
+ }
739
+ ]
740
+ ]
741
+ }
742
+ ]
743
+ }
744
+ }
745
+ ],
746
+ "pages": [
747
+ {
748
+ "name": "ItemSelectionPage",
749
+ "path": "/items/selection",
750
+ "traits": [
751
+ {
752
+ "ref": "ItemSelection"
753
+ }
754
+ ]
755
+ }
756
+ ]
757
+ }
758
+ ],
759
+ "description": "Selection behavior parameterized for any domain. Provides item selection from a list with confirm/deselect controls. Three states: idle, selecting, selected with transitions for the full lifecycle."
760
+ }