@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,650 @@
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": "pendingId",
33
+ "type": "string",
34
+ "default": ""
35
+ }
36
+ ]
37
+ },
38
+ "traits": [
39
+ {
40
+ "name": "ItemBrowse",
41
+ "linkedEntity": "Item",
42
+ "category": "interaction",
43
+ "listens": [
44
+ {
45
+ "event": "CONFIRMED",
46
+ "triggers": "CONFIRMED"
47
+ }
48
+ ],
49
+ "stateMachine": {
50
+ "states": [
51
+ {
52
+ "name": "browsing",
53
+ "isInitial": true
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": "CONFIRMED",
74
+ "name": "CONFIRMED",
75
+ "payload": [
76
+ {
77
+ "name": "data",
78
+ "type": "object",
79
+ "required": true
80
+ }
81
+ ]
82
+ }
83
+ ],
84
+ "transitions": [
85
+ {
86
+ "from": "browsing",
87
+ "to": "browsing",
88
+ "event": "INIT",
89
+ "effects": [
90
+ [
91
+ "fetch",
92
+ "Item"
93
+ ],
94
+ [
95
+ "render-ui",
96
+ "main",
97
+ {
98
+ "type": "stack",
99
+ "direction": "vertical",
100
+ "gap": "lg",
101
+ "children": [
102
+ {
103
+ "type": "stack",
104
+ "direction": "horizontal",
105
+ "gap": "md",
106
+ "justify": "space-between",
107
+ "children": [
108
+ {
109
+ "type": "stack",
110
+ "direction": "horizontal",
111
+ "gap": "sm",
112
+ "align": "center",
113
+ "children": [
114
+ {
115
+ "type": "icon",
116
+ "name": "map-pin",
117
+ "size": "lg"
118
+ },
119
+ {
120
+ "type": "typography",
121
+ "content": "Items Picker",
122
+ "variant": "h2"
123
+ }
124
+ ]
125
+ }
126
+ ]
127
+ },
128
+ {
129
+ "type": "divider"
130
+ },
131
+ {
132
+ "type": "data-grid",
133
+ "entity": "Item",
134
+ "emptyIcon": "inbox",
135
+ "emptyTitle": "No items found",
136
+ "emptyDescription": "No items are available to select.",
137
+ "itemActions": [
138
+ {
139
+ "label": "Select Item",
140
+ "event": "SELECT"
141
+ }
142
+ ],
143
+ "className": "transition-shadow hover:shadow-md cursor-pointer",
144
+ "children": [
145
+ {
146
+ "type": "stack",
147
+ "direction": "vertical",
148
+ "gap": "sm",
149
+ "children": [
150
+ {
151
+ "type": "stack",
152
+ "direction": "horizontal",
153
+ "justify": "space-between",
154
+ "align": "center",
155
+ "children": [
156
+ {
157
+ "type": "stack",
158
+ "direction": "horizontal",
159
+ "gap": "sm",
160
+ "align": "center",
161
+ "children": [
162
+ {
163
+ "type": "icon",
164
+ "name": "map-pin",
165
+ "size": "sm"
166
+ },
167
+ {
168
+ "type": "typography",
169
+ "variant": "h4",
170
+ "content": "@entity.name"
171
+ }
172
+ ]
173
+ },
174
+ {
175
+ "type": "badge",
176
+ "label": "@entity.description"
177
+ }
178
+ ]
179
+ },
180
+ {
181
+ "type": "typography",
182
+ "variant": "caption",
183
+ "color": "muted",
184
+ "content": "@entity.status"
185
+ }
186
+ ]
187
+ }
188
+ ]
189
+ }
190
+ ]
191
+ }
192
+ ]
193
+ ]
194
+ },
195
+ {
196
+ "from": "browsing",
197
+ "to": "browsing",
198
+ "event": "CONFIRMED",
199
+ "effects": [
200
+ [
201
+ "fetch",
202
+ "Item"
203
+ ]
204
+ ]
205
+ }
206
+ ]
207
+ }
208
+ },
209
+ {
210
+ "name": "ItemSelect",
211
+ "linkedEntity": "Item",
212
+ "category": "interaction",
213
+ "stateMachine": {
214
+ "states": [
215
+ {
216
+ "name": "closed",
217
+ "isInitial": true
218
+ },
219
+ {
220
+ "name": "open"
221
+ }
222
+ ],
223
+ "events": [
224
+ {
225
+ "key": "INIT",
226
+ "name": "Initialize"
227
+ },
228
+ {
229
+ "key": "SELECT",
230
+ "name": "Open",
231
+ "payload": [
232
+ {
233
+ "name": "id",
234
+ "type": "string",
235
+ "required": true
236
+ }
237
+ ]
238
+ },
239
+ {
240
+ "key": "CLOSE",
241
+ "name": "Close"
242
+ },
243
+ {
244
+ "key": "CONFIRM_SELECT",
245
+ "name": "Save",
246
+ "payload": [
247
+ {
248
+ "name": "data",
249
+ "type": "object",
250
+ "required": true
251
+ }
252
+ ]
253
+ }
254
+ ],
255
+ "transitions": [
256
+ {
257
+ "from": "closed",
258
+ "to": "closed",
259
+ "event": "INIT",
260
+ "effects": [
261
+ [
262
+ "fetch",
263
+ "Item"
264
+ ]
265
+ ]
266
+ },
267
+ {
268
+ "from": "closed",
269
+ "to": "open",
270
+ "event": "SELECT",
271
+ "effects": [
272
+ [
273
+ "fetch",
274
+ "Item",
275
+ "@payload.id"
276
+ ],
277
+ [
278
+ "render-ui",
279
+ "modal",
280
+ {
281
+ "type": "stack",
282
+ "direction": "vertical",
283
+ "gap": "md",
284
+ "children": [
285
+ {
286
+ "type": "stack",
287
+ "direction": "horizontal",
288
+ "gap": "sm",
289
+ "align": "center",
290
+ "children": [
291
+ {
292
+ "type": "icon",
293
+ "name": "map-pin",
294
+ "size": "md"
295
+ },
296
+ {
297
+ "type": "typography",
298
+ "variant": "h3",
299
+ "content": "@entity.name"
300
+ }
301
+ ]
302
+ },
303
+ {
304
+ "type": "divider"
305
+ },
306
+ {
307
+ "type": "stack",
308
+ "direction": "horizontal",
309
+ "gap": "md",
310
+ "children": [
311
+ {
312
+ "type": "typography",
313
+ "variant": "caption",
314
+ "content": "Name"
315
+ },
316
+ {
317
+ "type": "typography",
318
+ "variant": "body",
319
+ "content": "@entity.name"
320
+ }
321
+ ]
322
+ },
323
+ {
324
+ "type": "stack",
325
+ "direction": "horizontal",
326
+ "gap": "md",
327
+ "children": [
328
+ {
329
+ "type": "typography",
330
+ "variant": "caption",
331
+ "content": "Description"
332
+ },
333
+ {
334
+ "type": "typography",
335
+ "variant": "body",
336
+ "content": "@entity.description"
337
+ }
338
+ ]
339
+ },
340
+ {
341
+ "type": "stack",
342
+ "direction": "horizontal",
343
+ "gap": "md",
344
+ "children": [
345
+ {
346
+ "type": "typography",
347
+ "variant": "caption",
348
+ "content": "Status"
349
+ },
350
+ {
351
+ "type": "typography",
352
+ "variant": "body",
353
+ "content": "@entity.status"
354
+ }
355
+ ]
356
+ },
357
+ {
358
+ "type": "stack",
359
+ "direction": "horizontal",
360
+ "gap": "md",
361
+ "children": [
362
+ {
363
+ "type": "typography",
364
+ "variant": "caption",
365
+ "content": "CreatedAt"
366
+ },
367
+ {
368
+ "type": "typography",
369
+ "variant": "body",
370
+ "content": "@entity.createdAt"
371
+ }
372
+ ]
373
+ },
374
+ {
375
+ "type": "stack",
376
+ "direction": "horizontal",
377
+ "gap": "md",
378
+ "children": [
379
+ {
380
+ "type": "typography",
381
+ "variant": "caption",
382
+ "content": "PendingId"
383
+ },
384
+ {
385
+ "type": "typography",
386
+ "variant": "body",
387
+ "content": "@entity.pendingId"
388
+ }
389
+ ]
390
+ },
391
+ {
392
+ "type": "divider"
393
+ },
394
+ {
395
+ "type": "stack",
396
+ "direction": "horizontal",
397
+ "gap": "sm",
398
+ "justify": "end",
399
+ "children": [
400
+ {
401
+ "type": "button",
402
+ "label": "Cancel",
403
+ "event": "CLOSE",
404
+ "variant": "ghost"
405
+ },
406
+ {
407
+ "type": "button",
408
+ "label": "Confirm Selection",
409
+ "event": "CONFIRM_SELECT",
410
+ "variant": "primary",
411
+ "icon": "check"
412
+ }
413
+ ]
414
+ }
415
+ ]
416
+ }
417
+ ]
418
+ ]
419
+ },
420
+ {
421
+ "from": "open",
422
+ "to": "closed",
423
+ "event": "CLOSE",
424
+ "effects": [
425
+ [
426
+ "render-ui",
427
+ "modal",
428
+ null
429
+ ]
430
+ ]
431
+ },
432
+ {
433
+ "from": "open",
434
+ "to": "closed",
435
+ "event": "CONFIRM_SELECT",
436
+ "effects": [
437
+ [
438
+ "render-ui",
439
+ "modal",
440
+ null
441
+ ]
442
+ ]
443
+ }
444
+ ]
445
+ }
446
+ },
447
+ {
448
+ "name": "ItemConfirmSelect",
449
+ "linkedEntity": "Item",
450
+ "category": "interaction",
451
+ "emits": [
452
+ {
453
+ "event": "CONFIRMED"
454
+ }
455
+ ],
456
+ "stateMachine": {
457
+ "states": [
458
+ {
459
+ "name": "idle",
460
+ "isInitial": true
461
+ },
462
+ {
463
+ "name": "confirming"
464
+ }
465
+ ],
466
+ "events": [
467
+ {
468
+ "key": "INIT",
469
+ "name": "Initialize"
470
+ },
471
+ {
472
+ "key": "CONFIRM_SELECT",
473
+ "name": "Request Confirmation",
474
+ "payload": [
475
+ {
476
+ "name": "id",
477
+ "type": "string",
478
+ "required": true
479
+ }
480
+ ]
481
+ },
482
+ {
483
+ "key": "CONFIRMED",
484
+ "name": "Confirm"
485
+ },
486
+ {
487
+ "key": "CANCEL",
488
+ "name": "Cancel"
489
+ },
490
+ {
491
+ "key": "CLOSE",
492
+ "name": "Close"
493
+ }
494
+ ],
495
+ "transitions": [
496
+ {
497
+ "from": "idle",
498
+ "to": "idle",
499
+ "event": "INIT",
500
+ "effects": [
501
+ [
502
+ "fetch",
503
+ "Item"
504
+ ]
505
+ ]
506
+ },
507
+ {
508
+ "from": "idle",
509
+ "to": "confirming",
510
+ "event": "CONFIRM_SELECT",
511
+ "effects": [
512
+ [
513
+ "set",
514
+ "@entity.pendingId",
515
+ "@payload.id"
516
+ ],
517
+ [
518
+ "fetch",
519
+ "Item",
520
+ "@payload.id"
521
+ ],
522
+ [
523
+ "render-ui",
524
+ "modal",
525
+ {
526
+ "type": "stack",
527
+ "direction": "vertical",
528
+ "gap": "md",
529
+ "children": [
530
+ {
531
+ "type": "stack",
532
+ "direction": "horizontal",
533
+ "gap": "sm",
534
+ "align": "center",
535
+ "children": [
536
+ {
537
+ "type": "icon",
538
+ "name": "check-circle",
539
+ "size": "md"
540
+ },
541
+ {
542
+ "type": "typography",
543
+ "content": "Confirm Item Selection",
544
+ "variant": "h3"
545
+ }
546
+ ]
547
+ },
548
+ {
549
+ "type": "divider"
550
+ },
551
+ {
552
+ "type": "typography",
553
+ "content": "Are you sure you want to select this item?",
554
+ "variant": "body"
555
+ },
556
+ {
557
+ "type": "stack",
558
+ "direction": "horizontal",
559
+ "gap": "sm",
560
+ "justify": "end",
561
+ "children": [
562
+ {
563
+ "type": "button",
564
+ "label": "Cancel",
565
+ "event": "CANCEL",
566
+ "variant": "ghost"
567
+ },
568
+ {
569
+ "type": "button",
570
+ "label": "Confirm",
571
+ "event": "CONFIRMED",
572
+ "variant": "danger",
573
+ "icon": "check"
574
+ }
575
+ ]
576
+ }
577
+ ]
578
+ }
579
+ ]
580
+ ]
581
+ },
582
+ {
583
+ "from": "confirming",
584
+ "to": "idle",
585
+ "event": "CONFIRMED",
586
+ "effects": [
587
+ [
588
+ "fetch",
589
+ "Item"
590
+ ],
591
+ [
592
+ "render-ui",
593
+ "modal",
594
+ null
595
+ ],
596
+ [
597
+ "emit",
598
+ "CONFIRMED"
599
+ ]
600
+ ]
601
+ },
602
+ {
603
+ "from": "confirming",
604
+ "to": "idle",
605
+ "event": "CANCEL",
606
+ "effects": [
607
+ [
608
+ "render-ui",
609
+ "modal",
610
+ null
611
+ ]
612
+ ]
613
+ },
614
+ {
615
+ "from": "confirming",
616
+ "to": "idle",
617
+ "event": "CLOSE",
618
+ "effects": [
619
+ [
620
+ "render-ui",
621
+ "modal",
622
+ null
623
+ ]
624
+ ]
625
+ }
626
+ ]
627
+ }
628
+ }
629
+ ],
630
+ "pages": [
631
+ {
632
+ "name": "ItemPage",
633
+ "path": "/items",
634
+ "traits": [
635
+ {
636
+ "ref": "ItemBrowse"
637
+ },
638
+ {
639
+ "ref": "ItemSelect"
640
+ },
641
+ {
642
+ "ref": "ItemConfirmSelect"
643
+ }
644
+ ]
645
+ }
646
+ ]
647
+ }
648
+ ],
649
+ "description": "Location selection molecule. Composes atoms via shared event bus: - stdBrowse: location list with \"Select\" item action (fires SELECT) - stdModal: select/view location detail (responds to SELECT) - stdConfirmation: confirm location selection (responds to CONFIRM_SELECT) No emits/listens wiring. Traits on the same page share the event bus. Only the trait with a matching transition from its current state responds."
650
+ }