@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,4030 @@
1
+ {
2
+ "name": "HRPortal",
3
+ "version": "1.0.0",
4
+ "orbitals": [
5
+ {
6
+ "name": "EmployeeOrbital",
7
+ "entity": {
8
+ "name": "Employee",
9
+ "persistence": "runtime",
10
+ "fields": [
11
+ {
12
+ "name": "id",
13
+ "type": "string",
14
+ "required": true
15
+ },
16
+ {
17
+ "name": "name",
18
+ "type": "string",
19
+ "default": ""
20
+ },
21
+ {
22
+ "name": "email",
23
+ "type": "string",
24
+ "default": ""
25
+ },
26
+ {
27
+ "name": "department",
28
+ "type": "string",
29
+ "default": ""
30
+ },
31
+ {
32
+ "name": "role",
33
+ "type": "string",
34
+ "default": ""
35
+ },
36
+ {
37
+ "name": "startDate",
38
+ "type": "string",
39
+ "default": ""
40
+ }
41
+ ]
42
+ },
43
+ "traits": [
44
+ {
45
+ "name": "EmployeeBrowse",
46
+ "linkedEntity": "Employee",
47
+ "category": "interaction",
48
+ "listens": [
49
+ {
50
+ "event": "EMPLOYEE_CREATED",
51
+ "triggers": "EMPLOYEE_CREATED"
52
+ },
53
+ {
54
+ "event": "EMPLOYEE_UPDATED",
55
+ "triggers": "EMPLOYEE_UPDATED"
56
+ }
57
+ ],
58
+ "stateMachine": {
59
+ "states": [
60
+ {
61
+ "name": "browsing",
62
+ "isInitial": true
63
+ },
64
+ {
65
+ "name": "deleting"
66
+ }
67
+ ],
68
+ "events": [
69
+ {
70
+ "key": "INIT",
71
+ "name": "Initialize"
72
+ },
73
+ {
74
+ "key": "CREATE",
75
+ "name": "CREATE"
76
+ },
77
+ {
78
+ "key": "VIEW",
79
+ "name": "VIEW",
80
+ "payload": [
81
+ {
82
+ "name": "id",
83
+ "type": "string",
84
+ "required": true
85
+ }
86
+ ]
87
+ },
88
+ {
89
+ "key": "EDIT",
90
+ "name": "EDIT",
91
+ "payload": [
92
+ {
93
+ "name": "id",
94
+ "type": "string",
95
+ "required": true
96
+ }
97
+ ]
98
+ },
99
+ {
100
+ "key": "DELETE",
101
+ "name": "DELETE",
102
+ "payload": [
103
+ {
104
+ "name": "id",
105
+ "type": "string",
106
+ "required": true
107
+ }
108
+ ]
109
+ },
110
+ {
111
+ "key": "EMPLOYEE_CREATED",
112
+ "name": "EMPLOYEE_CREATED",
113
+ "payload": [
114
+ {
115
+ "name": "data",
116
+ "type": "object",
117
+ "required": true
118
+ }
119
+ ]
120
+ },
121
+ {
122
+ "key": "EMPLOYEE_UPDATED",
123
+ "name": "EMPLOYEE_UPDATED",
124
+ "payload": [
125
+ {
126
+ "name": "data",
127
+ "type": "object",
128
+ "required": true
129
+ }
130
+ ]
131
+ },
132
+ {
133
+ "key": "CONFIRM_DELETE",
134
+ "name": "Confirm Delete"
135
+ },
136
+ {
137
+ "key": "CANCEL",
138
+ "name": "Cancel"
139
+ },
140
+ {
141
+ "key": "CLOSE",
142
+ "name": "Close"
143
+ }
144
+ ],
145
+ "transitions": [
146
+ {
147
+ "from": "browsing",
148
+ "to": "browsing",
149
+ "event": "INIT",
150
+ "effects": [
151
+ [
152
+ "fetch",
153
+ "Employee"
154
+ ],
155
+ [
156
+ "render-ui",
157
+ "main",
158
+ {
159
+ "type": "stack",
160
+ "direction": "vertical",
161
+ "gap": "lg",
162
+ "children": [
163
+ {
164
+ "type": "stack",
165
+ "direction": "horizontal",
166
+ "gap": "md",
167
+ "justify": "space-between",
168
+ "children": [
169
+ {
170
+ "type": "stack",
171
+ "direction": "horizontal",
172
+ "gap": "sm",
173
+ "align": "center",
174
+ "children": [
175
+ {
176
+ "type": "icon",
177
+ "name": "users",
178
+ "size": "lg"
179
+ },
180
+ {
181
+ "type": "typography",
182
+ "content": "Employees",
183
+ "variant": "h2"
184
+ }
185
+ ]
186
+ },
187
+ {
188
+ "type": "stack",
189
+ "direction": "horizontal",
190
+ "gap": "sm",
191
+ "children": [
192
+ {
193
+ "type": "button",
194
+ "label": "Add Employee",
195
+ "event": "CREATE",
196
+ "variant": "primary",
197
+ "icon": "plus"
198
+ }
199
+ ]
200
+ }
201
+ ]
202
+ },
203
+ {
204
+ "type": "divider"
205
+ },
206
+ {
207
+ "type": "data-grid",
208
+ "entity": "Employee",
209
+ "emptyIcon": "inbox",
210
+ "emptyTitle": "No employees yet",
211
+ "emptyDescription": "Create your first employee to get started.",
212
+ "itemActions": [
213
+ {
214
+ "label": "View",
215
+ "event": "VIEW"
216
+ },
217
+ {
218
+ "label": "Edit",
219
+ "event": "EDIT"
220
+ },
221
+ {
222
+ "label": "Delete",
223
+ "event": "DELETE",
224
+ "variant": "danger"
225
+ }
226
+ ],
227
+ "className": "transition-shadow hover:shadow-md cursor-pointer",
228
+ "children": [
229
+ {
230
+ "type": "stack",
231
+ "direction": "vertical",
232
+ "gap": "sm",
233
+ "children": [
234
+ {
235
+ "type": "stack",
236
+ "direction": "horizontal",
237
+ "justify": "space-between",
238
+ "align": "center",
239
+ "children": [
240
+ {
241
+ "type": "stack",
242
+ "direction": "horizontal",
243
+ "gap": "sm",
244
+ "align": "center",
245
+ "children": [
246
+ {
247
+ "type": "icon",
248
+ "name": "users",
249
+ "size": "sm"
250
+ },
251
+ {
252
+ "type": "typography",
253
+ "variant": "h4",
254
+ "content": "@entity.name"
255
+ }
256
+ ]
257
+ },
258
+ {
259
+ "type": "badge",
260
+ "label": "@entity.email"
261
+ }
262
+ ]
263
+ },
264
+ {
265
+ "type": "typography",
266
+ "variant": "caption",
267
+ "color": "muted",
268
+ "content": "@entity.department"
269
+ }
270
+ ]
271
+ }
272
+ ]
273
+ }
274
+ ]
275
+ }
276
+ ]
277
+ ]
278
+ },
279
+ {
280
+ "from": "browsing",
281
+ "to": "browsing",
282
+ "event": "EMPLOYEE_CREATED",
283
+ "effects": [
284
+ [
285
+ "fetch",
286
+ "Employee"
287
+ ]
288
+ ]
289
+ },
290
+ {
291
+ "from": "browsing",
292
+ "to": "browsing",
293
+ "event": "EMPLOYEE_UPDATED",
294
+ "effects": [
295
+ [
296
+ "fetch",
297
+ "Employee"
298
+ ]
299
+ ]
300
+ },
301
+ {
302
+ "from": "browsing",
303
+ "to": "deleting",
304
+ "event": "DELETE",
305
+ "effects": [
306
+ [
307
+ "fetch",
308
+ "Employee",
309
+ "@payload.id"
310
+ ],
311
+ [
312
+ "render-ui",
313
+ "modal",
314
+ {
315
+ "type": "stack",
316
+ "direction": "vertical",
317
+ "gap": "md",
318
+ "children": [
319
+ {
320
+ "type": "stack",
321
+ "direction": "horizontal",
322
+ "gap": "sm",
323
+ "children": [
324
+ {
325
+ "type": "icon",
326
+ "name": "trash-2",
327
+ "size": "md"
328
+ },
329
+ {
330
+ "type": "typography",
331
+ "content": "Delete Employee",
332
+ "variant": "h3"
333
+ }
334
+ ]
335
+ },
336
+ {
337
+ "type": "divider"
338
+ },
339
+ {
340
+ "type": "typography",
341
+ "content": "Are you sure you want to delete this employee?",
342
+ "variant": "body"
343
+ },
344
+ {
345
+ "type": "stack",
346
+ "direction": "horizontal",
347
+ "gap": "sm",
348
+ "justify": "end",
349
+ "children": [
350
+ {
351
+ "type": "button",
352
+ "label": "Cancel",
353
+ "event": "CANCEL",
354
+ "variant": "ghost"
355
+ },
356
+ {
357
+ "type": "button",
358
+ "label": "Delete",
359
+ "event": "CONFIRM_DELETE",
360
+ "variant": "danger",
361
+ "icon": "trash"
362
+ }
363
+ ]
364
+ }
365
+ ]
366
+ }
367
+ ]
368
+ ]
369
+ },
370
+ {
371
+ "from": "deleting",
372
+ "to": "browsing",
373
+ "event": "CONFIRM_DELETE",
374
+ "effects": [
375
+ [
376
+ "persist",
377
+ "delete",
378
+ "Employee",
379
+ "@entity.id"
380
+ ],
381
+ [
382
+ "render-ui",
383
+ "modal",
384
+ null
385
+ ],
386
+ [
387
+ "fetch",
388
+ "Employee"
389
+ ],
390
+ [
391
+ "notify",
392
+ "Employee deleted successfully"
393
+ ]
394
+ ]
395
+ },
396
+ {
397
+ "from": "deleting",
398
+ "to": "browsing",
399
+ "event": "CANCEL",
400
+ "effects": [
401
+ [
402
+ "render-ui",
403
+ "modal",
404
+ null
405
+ ]
406
+ ]
407
+ },
408
+ {
409
+ "from": "deleting",
410
+ "to": "browsing",
411
+ "event": "CLOSE",
412
+ "effects": [
413
+ [
414
+ "render-ui",
415
+ "modal",
416
+ null
417
+ ]
418
+ ]
419
+ }
420
+ ]
421
+ },
422
+ "emits": [
423
+ {
424
+ "event": "ONBOARD",
425
+ "description": "Start onboarding for a new employee",
426
+ "payload": [
427
+ {
428
+ "name": "id",
429
+ "type": "string",
430
+ "required": true
431
+ }
432
+ ],
433
+ "scope": "external"
434
+ }
435
+ ]
436
+ },
437
+ {
438
+ "name": "EmployeeCreate",
439
+ "linkedEntity": "Employee",
440
+ "category": "interaction",
441
+ "emits": [
442
+ {
443
+ "event": "EMPLOYEE_CREATED"
444
+ }
445
+ ],
446
+ "stateMachine": {
447
+ "states": [
448
+ {
449
+ "name": "closed",
450
+ "isInitial": true
451
+ },
452
+ {
453
+ "name": "open"
454
+ }
455
+ ],
456
+ "events": [
457
+ {
458
+ "key": "INIT",
459
+ "name": "Initialize"
460
+ },
461
+ {
462
+ "key": "CREATE",
463
+ "name": "Open"
464
+ },
465
+ {
466
+ "key": "CLOSE",
467
+ "name": "Close"
468
+ },
469
+ {
470
+ "key": "SAVE",
471
+ "name": "Save",
472
+ "payload": [
473
+ {
474
+ "name": "data",
475
+ "type": "object",
476
+ "required": true
477
+ }
478
+ ]
479
+ }
480
+ ],
481
+ "transitions": [
482
+ {
483
+ "from": "closed",
484
+ "to": "closed",
485
+ "event": "INIT",
486
+ "effects": [
487
+ [
488
+ "fetch",
489
+ "Employee"
490
+ ]
491
+ ]
492
+ },
493
+ {
494
+ "from": "closed",
495
+ "to": "open",
496
+ "event": "CREATE",
497
+ "effects": [
498
+ [
499
+ "fetch",
500
+ "Employee"
501
+ ],
502
+ [
503
+ "render-ui",
504
+ "modal",
505
+ {
506
+ "type": "stack",
507
+ "direction": "vertical",
508
+ "gap": "md",
509
+ "children": [
510
+ {
511
+ "type": "stack",
512
+ "direction": "horizontal",
513
+ "gap": "sm",
514
+ "children": [
515
+ {
516
+ "type": "icon",
517
+ "name": "plus-circle",
518
+ "size": "md"
519
+ },
520
+ {
521
+ "type": "typography",
522
+ "content": "New Employee",
523
+ "variant": "h3"
524
+ }
525
+ ]
526
+ },
527
+ {
528
+ "type": "divider"
529
+ },
530
+ {
531
+ "type": "form-section",
532
+ "entity": "Employee",
533
+ "mode": "create",
534
+ "submitEvent": "SAVE",
535
+ "cancelEvent": "CLOSE",
536
+ "fields": [
537
+ "name",
538
+ "email",
539
+ "department",
540
+ "role",
541
+ "startDate"
542
+ ]
543
+ }
544
+ ]
545
+ }
546
+ ]
547
+ ]
548
+ },
549
+ {
550
+ "from": "open",
551
+ "to": "closed",
552
+ "event": "CLOSE",
553
+ "effects": [
554
+ [
555
+ "render-ui",
556
+ "modal",
557
+ null
558
+ ]
559
+ ]
560
+ },
561
+ {
562
+ "from": "open",
563
+ "to": "closed",
564
+ "event": "SAVE",
565
+ "effects": [
566
+ [
567
+ "persist",
568
+ "create",
569
+ "Employee",
570
+ "@payload.data"
571
+ ],
572
+ [
573
+ "fetch",
574
+ "Employee"
575
+ ],
576
+ [
577
+ "render-ui",
578
+ "modal",
579
+ null
580
+ ],
581
+ [
582
+ "emit",
583
+ "EMPLOYEE_CREATED"
584
+ ],
585
+ [
586
+ "notify",
587
+ "Employee created successfully"
588
+ ]
589
+ ]
590
+ }
591
+ ]
592
+ }
593
+ },
594
+ {
595
+ "name": "EmployeeEdit",
596
+ "linkedEntity": "Employee",
597
+ "category": "interaction",
598
+ "emits": [
599
+ {
600
+ "event": "EMPLOYEE_UPDATED"
601
+ }
602
+ ],
603
+ "stateMachine": {
604
+ "states": [
605
+ {
606
+ "name": "closed",
607
+ "isInitial": true
608
+ },
609
+ {
610
+ "name": "open"
611
+ }
612
+ ],
613
+ "events": [
614
+ {
615
+ "key": "INIT",
616
+ "name": "Initialize"
617
+ },
618
+ {
619
+ "key": "EDIT",
620
+ "name": "Open",
621
+ "payload": [
622
+ {
623
+ "name": "id",
624
+ "type": "string",
625
+ "required": true
626
+ }
627
+ ]
628
+ },
629
+ {
630
+ "key": "CLOSE",
631
+ "name": "Close"
632
+ },
633
+ {
634
+ "key": "SAVE",
635
+ "name": "Save",
636
+ "payload": [
637
+ {
638
+ "name": "data",
639
+ "type": "object",
640
+ "required": true
641
+ }
642
+ ]
643
+ }
644
+ ],
645
+ "transitions": [
646
+ {
647
+ "from": "closed",
648
+ "to": "closed",
649
+ "event": "INIT",
650
+ "effects": [
651
+ [
652
+ "fetch",
653
+ "Employee"
654
+ ]
655
+ ]
656
+ },
657
+ {
658
+ "from": "closed",
659
+ "to": "open",
660
+ "event": "EDIT",
661
+ "effects": [
662
+ [
663
+ "fetch",
664
+ "Employee",
665
+ "@payload.id"
666
+ ],
667
+ [
668
+ "render-ui",
669
+ "modal",
670
+ {
671
+ "type": "stack",
672
+ "direction": "vertical",
673
+ "gap": "md",
674
+ "children": [
675
+ {
676
+ "type": "stack",
677
+ "direction": "horizontal",
678
+ "gap": "sm",
679
+ "children": [
680
+ {
681
+ "type": "icon",
682
+ "name": "edit",
683
+ "size": "md"
684
+ },
685
+ {
686
+ "type": "typography",
687
+ "content": "Edit Employee",
688
+ "variant": "h3"
689
+ }
690
+ ]
691
+ },
692
+ {
693
+ "type": "divider"
694
+ },
695
+ {
696
+ "type": "form-section",
697
+ "entity": "Employee",
698
+ "mode": "edit",
699
+ "submitEvent": "SAVE",
700
+ "cancelEvent": "CLOSE",
701
+ "fields": [
702
+ "name",
703
+ "email",
704
+ "department",
705
+ "role",
706
+ "startDate"
707
+ ]
708
+ }
709
+ ]
710
+ }
711
+ ]
712
+ ]
713
+ },
714
+ {
715
+ "from": "open",
716
+ "to": "closed",
717
+ "event": "CLOSE",
718
+ "effects": [
719
+ [
720
+ "render-ui",
721
+ "modal",
722
+ null
723
+ ]
724
+ ]
725
+ },
726
+ {
727
+ "from": "open",
728
+ "to": "closed",
729
+ "event": "SAVE",
730
+ "effects": [
731
+ [
732
+ "persist",
733
+ "update",
734
+ "Employee",
735
+ "@payload.data"
736
+ ],
737
+ [
738
+ "fetch",
739
+ "Employee"
740
+ ],
741
+ [
742
+ "render-ui",
743
+ "modal",
744
+ null
745
+ ],
746
+ [
747
+ "emit",
748
+ "EMPLOYEE_UPDATED"
749
+ ],
750
+ [
751
+ "notify",
752
+ "Employee updated successfully"
753
+ ]
754
+ ]
755
+ }
756
+ ]
757
+ }
758
+ },
759
+ {
760
+ "name": "EmployeeView",
761
+ "linkedEntity": "Employee",
762
+ "category": "interaction",
763
+ "stateMachine": {
764
+ "states": [
765
+ {
766
+ "name": "closed",
767
+ "isInitial": true
768
+ },
769
+ {
770
+ "name": "open"
771
+ }
772
+ ],
773
+ "events": [
774
+ {
775
+ "key": "INIT",
776
+ "name": "Initialize"
777
+ },
778
+ {
779
+ "key": "VIEW",
780
+ "name": "Open",
781
+ "payload": [
782
+ {
783
+ "name": "id",
784
+ "type": "string",
785
+ "required": true
786
+ }
787
+ ]
788
+ },
789
+ {
790
+ "key": "CLOSE",
791
+ "name": "Close"
792
+ }
793
+ ],
794
+ "transitions": [
795
+ {
796
+ "from": "closed",
797
+ "to": "closed",
798
+ "event": "INIT",
799
+ "effects": [
800
+ [
801
+ "fetch",
802
+ "Employee"
803
+ ]
804
+ ]
805
+ },
806
+ {
807
+ "from": "closed",
808
+ "to": "open",
809
+ "event": "VIEW",
810
+ "effects": [
811
+ [
812
+ "fetch",
813
+ "Employee",
814
+ "@payload.id"
815
+ ],
816
+ [
817
+ "render-ui",
818
+ "modal",
819
+ {
820
+ "type": "stack",
821
+ "direction": "vertical",
822
+ "gap": "md",
823
+ "children": [
824
+ {
825
+ "type": "stack",
826
+ "direction": "horizontal",
827
+ "gap": "sm",
828
+ "align": "center",
829
+ "children": [
830
+ {
831
+ "type": "icon",
832
+ "name": "eye",
833
+ "size": "md"
834
+ },
835
+ {
836
+ "type": "typography",
837
+ "variant": "h3",
838
+ "content": "@entity.name"
839
+ }
840
+ ]
841
+ },
842
+ {
843
+ "type": "divider"
844
+ },
845
+ {
846
+ "type": "stack",
847
+ "direction": "horizontal",
848
+ "gap": "md",
849
+ "children": [
850
+ {
851
+ "type": "typography",
852
+ "variant": "caption",
853
+ "content": "Name"
854
+ },
855
+ {
856
+ "type": "typography",
857
+ "variant": "body",
858
+ "content": "@entity.name"
859
+ }
860
+ ]
861
+ },
862
+ {
863
+ "type": "stack",
864
+ "direction": "horizontal",
865
+ "gap": "md",
866
+ "children": [
867
+ {
868
+ "type": "typography",
869
+ "variant": "caption",
870
+ "content": "Email"
871
+ },
872
+ {
873
+ "type": "typography",
874
+ "variant": "body",
875
+ "content": "@entity.email"
876
+ }
877
+ ]
878
+ },
879
+ {
880
+ "type": "stack",
881
+ "direction": "horizontal",
882
+ "gap": "md",
883
+ "children": [
884
+ {
885
+ "type": "typography",
886
+ "variant": "caption",
887
+ "content": "Department"
888
+ },
889
+ {
890
+ "type": "typography",
891
+ "variant": "body",
892
+ "content": "@entity.department"
893
+ }
894
+ ]
895
+ },
896
+ {
897
+ "type": "stack",
898
+ "direction": "horizontal",
899
+ "gap": "md",
900
+ "children": [
901
+ {
902
+ "type": "typography",
903
+ "variant": "caption",
904
+ "content": "Role"
905
+ },
906
+ {
907
+ "type": "typography",
908
+ "variant": "body",
909
+ "content": "@entity.role"
910
+ }
911
+ ]
912
+ },
913
+ {
914
+ "type": "stack",
915
+ "direction": "horizontal",
916
+ "gap": "md",
917
+ "children": [
918
+ {
919
+ "type": "typography",
920
+ "variant": "caption",
921
+ "content": "StartDate"
922
+ },
923
+ {
924
+ "type": "typography",
925
+ "variant": "body",
926
+ "content": "@entity.startDate"
927
+ }
928
+ ]
929
+ },
930
+ {
931
+ "type": "divider"
932
+ },
933
+ {
934
+ "type": "stack",
935
+ "direction": "horizontal",
936
+ "gap": "sm",
937
+ "justify": "end",
938
+ "children": [
939
+ {
940
+ "type": "button",
941
+ "label": "Edit",
942
+ "event": "EDIT",
943
+ "variant": "primary",
944
+ "icon": "edit"
945
+ },
946
+ {
947
+ "type": "button",
948
+ "label": "Close",
949
+ "event": "CLOSE",
950
+ "variant": "ghost"
951
+ }
952
+ ]
953
+ }
954
+ ]
955
+ }
956
+ ]
957
+ ]
958
+ },
959
+ {
960
+ "from": "open",
961
+ "to": "closed",
962
+ "event": "CLOSE",
963
+ "effects": [
964
+ [
965
+ "render-ui",
966
+ "modal",
967
+ null
968
+ ]
969
+ ]
970
+ }
971
+ ]
972
+ }
973
+ }
974
+ ],
975
+ "pages": [
976
+ {
977
+ "name": "EmployeesPage",
978
+ "path": "/employees",
979
+ "isInitial": true,
980
+ "traits": [
981
+ {
982
+ "ref": "EmployeeBrowse"
983
+ },
984
+ {
985
+ "ref": "EmployeeCreate"
986
+ },
987
+ {
988
+ "ref": "EmployeeEdit"
989
+ },
990
+ {
991
+ "ref": "EmployeeView"
992
+ }
993
+ ]
994
+ }
995
+ ]
996
+ },
997
+ {
998
+ "name": "OnboardingOrbital",
999
+ "entity": {
1000
+ "name": "Onboarding",
1001
+ "persistence": "runtime",
1002
+ "fields": [
1003
+ {
1004
+ "name": "id",
1005
+ "type": "string",
1006
+ "required": true
1007
+ },
1008
+ {
1009
+ "name": "employeeName",
1010
+ "type": "string",
1011
+ "default": ""
1012
+ },
1013
+ {
1014
+ "name": "department",
1015
+ "type": "string",
1016
+ "default": ""
1017
+ },
1018
+ {
1019
+ "name": "manager",
1020
+ "type": "string",
1021
+ "default": ""
1022
+ },
1023
+ {
1024
+ "name": "equipmentReady",
1025
+ "type": "boolean",
1026
+ "default": false
1027
+ },
1028
+ {
1029
+ "name": "accessGranted",
1030
+ "type": "boolean",
1031
+ "default": false
1032
+ }
1033
+ ]
1034
+ },
1035
+ "traits": [
1036
+ {
1037
+ "name": "OnboardingWizard",
1038
+ "linkedEntity": "Onboarding",
1039
+ "category": "interaction",
1040
+ "stateMachine": {
1041
+ "states": [
1042
+ {
1043
+ "name": "step1",
1044
+ "isInitial": true
1045
+ },
1046
+ {
1047
+ "name": "step2"
1048
+ },
1049
+ {
1050
+ "name": "step3"
1051
+ },
1052
+ {
1053
+ "name": "review"
1054
+ },
1055
+ {
1056
+ "name": "complete"
1057
+ }
1058
+ ],
1059
+ "events": [
1060
+ {
1061
+ "key": "INIT",
1062
+ "name": "Initialize"
1063
+ },
1064
+ {
1065
+ "key": "NEXT",
1066
+ "name": "Next Step",
1067
+ "payload": [
1068
+ {
1069
+ "name": "data",
1070
+ "type": "object",
1071
+ "required": true
1072
+ }
1073
+ ]
1074
+ },
1075
+ {
1076
+ "key": "PREV",
1077
+ "name": "Previous Step"
1078
+ },
1079
+ {
1080
+ "key": "COMPLETE",
1081
+ "name": "Complete Wizard",
1082
+ "payload": [
1083
+ {
1084
+ "name": "data",
1085
+ "type": "object",
1086
+ "required": true
1087
+ }
1088
+ ]
1089
+ },
1090
+ {
1091
+ "key": "RESTART",
1092
+ "name": "Restart Wizard"
1093
+ }
1094
+ ],
1095
+ "transitions": [
1096
+ {
1097
+ "from": "step1",
1098
+ "to": "step1",
1099
+ "event": "INIT",
1100
+ "effects": [
1101
+ [
1102
+ "fetch",
1103
+ "Onboarding"
1104
+ ],
1105
+ [
1106
+ "render-ui",
1107
+ "main",
1108
+ {
1109
+ "type": "stack",
1110
+ "direction": "vertical",
1111
+ "gap": "lg",
1112
+ "children": [
1113
+ {
1114
+ "type": "stack",
1115
+ "direction": "horizontal",
1116
+ "gap": "sm",
1117
+ "align": "center",
1118
+ "children": [
1119
+ {
1120
+ "type": "icon",
1121
+ "name": "clipboard-check",
1122
+ "size": "lg"
1123
+ },
1124
+ {
1125
+ "type": "typography",
1126
+ "content": "Employee Onboarding",
1127
+ "variant": "h2"
1128
+ }
1129
+ ]
1130
+ },
1131
+ {
1132
+ "type": "badge",
1133
+ "label": "Step 1 of 3"
1134
+ },
1135
+ {
1136
+ "type": "wizard-progress",
1137
+ "steps": [
1138
+ "Employee Details",
1139
+ "Manager Assignment",
1140
+ "Setup Checklist"
1141
+ ],
1142
+ "currentStep": 0
1143
+ },
1144
+ {
1145
+ "type": "divider"
1146
+ },
1147
+ {
1148
+ "type": "typography",
1149
+ "content": "Employee Details",
1150
+ "variant": "h3"
1151
+ },
1152
+ {
1153
+ "type": "form-section",
1154
+ "entity": "Onboarding",
1155
+ "mode": "create",
1156
+ "submitEvent": "NEXT",
1157
+ "cancelEvent": "INIT",
1158
+ "fields": [
1159
+ "employeeName",
1160
+ "department"
1161
+ ]
1162
+ },
1163
+ {
1164
+ "type": "stack",
1165
+ "direction": "horizontal",
1166
+ "gap": "sm",
1167
+ "justify": "end",
1168
+ "children": [
1169
+ {
1170
+ "type": "button",
1171
+ "label": "Next",
1172
+ "event": "NEXT",
1173
+ "variant": "primary",
1174
+ "icon": "arrow-right"
1175
+ }
1176
+ ]
1177
+ }
1178
+ ]
1179
+ }
1180
+ ]
1181
+ ]
1182
+ },
1183
+ {
1184
+ "from": "step1",
1185
+ "to": "step2",
1186
+ "event": "NEXT",
1187
+ "effects": [
1188
+ [
1189
+ "fetch",
1190
+ "Onboarding"
1191
+ ],
1192
+ [
1193
+ "render-ui",
1194
+ "main",
1195
+ {
1196
+ "type": "stack",
1197
+ "direction": "vertical",
1198
+ "gap": "lg",
1199
+ "children": [
1200
+ {
1201
+ "type": "stack",
1202
+ "direction": "horizontal",
1203
+ "gap": "sm",
1204
+ "align": "center",
1205
+ "children": [
1206
+ {
1207
+ "type": "icon",
1208
+ "name": "clipboard-check",
1209
+ "size": "lg"
1210
+ },
1211
+ {
1212
+ "type": "typography",
1213
+ "content": "Employee Onboarding",
1214
+ "variant": "h2"
1215
+ }
1216
+ ]
1217
+ },
1218
+ {
1219
+ "type": "badge",
1220
+ "label": "Step 2 of 3"
1221
+ },
1222
+ {
1223
+ "type": "wizard-progress",
1224
+ "steps": [
1225
+ "Employee Details",
1226
+ "Manager Assignment",
1227
+ "Setup Checklist"
1228
+ ],
1229
+ "currentStep": 1
1230
+ },
1231
+ {
1232
+ "type": "divider"
1233
+ },
1234
+ {
1235
+ "type": "typography",
1236
+ "content": "Manager Assignment",
1237
+ "variant": "h3"
1238
+ },
1239
+ {
1240
+ "type": "form-section",
1241
+ "entity": "Onboarding",
1242
+ "mode": "create",
1243
+ "submitEvent": "NEXT",
1244
+ "cancelEvent": "PREV",
1245
+ "fields": [
1246
+ "manager"
1247
+ ]
1248
+ },
1249
+ {
1250
+ "type": "stack",
1251
+ "direction": "horizontal",
1252
+ "gap": "sm",
1253
+ "justify": "end",
1254
+ "children": [
1255
+ {
1256
+ "type": "button",
1257
+ "label": "Back",
1258
+ "event": "PREV",
1259
+ "variant": "ghost",
1260
+ "icon": "arrow-left"
1261
+ },
1262
+ {
1263
+ "type": "button",
1264
+ "label": "Next",
1265
+ "event": "NEXT",
1266
+ "variant": "primary",
1267
+ "icon": "arrow-right"
1268
+ }
1269
+ ]
1270
+ }
1271
+ ]
1272
+ }
1273
+ ]
1274
+ ]
1275
+ },
1276
+ {
1277
+ "from": "step2",
1278
+ "to": "step3",
1279
+ "event": "NEXT",
1280
+ "effects": [
1281
+ [
1282
+ "fetch",
1283
+ "Onboarding"
1284
+ ],
1285
+ [
1286
+ "render-ui",
1287
+ "main",
1288
+ {
1289
+ "type": "stack",
1290
+ "direction": "vertical",
1291
+ "gap": "lg",
1292
+ "children": [
1293
+ {
1294
+ "type": "stack",
1295
+ "direction": "horizontal",
1296
+ "gap": "sm",
1297
+ "align": "center",
1298
+ "children": [
1299
+ {
1300
+ "type": "icon",
1301
+ "name": "clipboard-check",
1302
+ "size": "lg"
1303
+ },
1304
+ {
1305
+ "type": "typography",
1306
+ "content": "Employee Onboarding",
1307
+ "variant": "h2"
1308
+ }
1309
+ ]
1310
+ },
1311
+ {
1312
+ "type": "badge",
1313
+ "label": "Step 3 of 3"
1314
+ },
1315
+ {
1316
+ "type": "wizard-progress",
1317
+ "steps": [
1318
+ "Employee Details",
1319
+ "Manager Assignment",
1320
+ "Setup Checklist"
1321
+ ],
1322
+ "currentStep": 2
1323
+ },
1324
+ {
1325
+ "type": "divider"
1326
+ },
1327
+ {
1328
+ "type": "typography",
1329
+ "content": "Setup Checklist",
1330
+ "variant": "h3"
1331
+ },
1332
+ {
1333
+ "type": "form-section",
1334
+ "entity": "Onboarding",
1335
+ "mode": "create",
1336
+ "submitEvent": "NEXT",
1337
+ "cancelEvent": "PREV",
1338
+ "fields": [
1339
+ "equipmentReady",
1340
+ "accessGranted"
1341
+ ]
1342
+ },
1343
+ {
1344
+ "type": "stack",
1345
+ "direction": "horizontal",
1346
+ "gap": "sm",
1347
+ "justify": "end",
1348
+ "children": [
1349
+ {
1350
+ "type": "button",
1351
+ "label": "Back",
1352
+ "event": "PREV",
1353
+ "variant": "ghost",
1354
+ "icon": "arrow-left"
1355
+ },
1356
+ {
1357
+ "type": "button",
1358
+ "label": "Next",
1359
+ "event": "NEXT",
1360
+ "variant": "primary",
1361
+ "icon": "arrow-right"
1362
+ }
1363
+ ]
1364
+ }
1365
+ ]
1366
+ }
1367
+ ]
1368
+ ]
1369
+ },
1370
+ {
1371
+ "from": "step3",
1372
+ "to": "review",
1373
+ "event": "NEXT",
1374
+ "effects": [
1375
+ [
1376
+ "fetch",
1377
+ "Onboarding"
1378
+ ],
1379
+ [
1380
+ "render-ui",
1381
+ "main",
1382
+ {
1383
+ "type": "stack",
1384
+ "direction": "vertical",
1385
+ "gap": "lg",
1386
+ "children": [
1387
+ {
1388
+ "type": "stack",
1389
+ "direction": "horizontal",
1390
+ "gap": "sm",
1391
+ "align": "center",
1392
+ "children": [
1393
+ {
1394
+ "type": "icon",
1395
+ "name": "clipboard-check",
1396
+ "size": "lg"
1397
+ },
1398
+ {
1399
+ "type": "typography",
1400
+ "content": "Employee Onboarding",
1401
+ "variant": "h2"
1402
+ }
1403
+ ]
1404
+ },
1405
+ {
1406
+ "type": "badge",
1407
+ "label": "Review"
1408
+ },
1409
+ {
1410
+ "type": "wizard-progress",
1411
+ "steps": [
1412
+ "Employee Details",
1413
+ "Manager Assignment",
1414
+ "Setup Checklist"
1415
+ ],
1416
+ "currentStep": 3
1417
+ },
1418
+ {
1419
+ "type": "divider"
1420
+ },
1421
+ {
1422
+ "type": "data-list",
1423
+ "entity": "Onboarding",
1424
+ "children": [
1425
+ {
1426
+ "type": "stack",
1427
+ "direction": "vertical",
1428
+ "gap": "sm",
1429
+ "children": [
1430
+ {
1431
+ "type": "stack",
1432
+ "direction": "horizontal",
1433
+ "gap": "md",
1434
+ "justify": "space-between",
1435
+ "children": [
1436
+ {
1437
+ "type": "typography",
1438
+ "variant": "caption",
1439
+ "content": "EmployeeName"
1440
+ },
1441
+ {
1442
+ "type": "typography",
1443
+ "variant": "body",
1444
+ "content": "@entity.employeeName"
1445
+ }
1446
+ ]
1447
+ },
1448
+ {
1449
+ "type": "stack",
1450
+ "direction": "horizontal",
1451
+ "gap": "md",
1452
+ "justify": "space-between",
1453
+ "children": [
1454
+ {
1455
+ "type": "typography",
1456
+ "variant": "caption",
1457
+ "content": "Department"
1458
+ },
1459
+ {
1460
+ "type": "typography",
1461
+ "variant": "body",
1462
+ "content": "@entity.department"
1463
+ }
1464
+ ]
1465
+ },
1466
+ {
1467
+ "type": "stack",
1468
+ "direction": "horizontal",
1469
+ "gap": "md",
1470
+ "justify": "space-between",
1471
+ "children": [
1472
+ {
1473
+ "type": "typography",
1474
+ "variant": "caption",
1475
+ "content": "Manager"
1476
+ },
1477
+ {
1478
+ "type": "typography",
1479
+ "variant": "body",
1480
+ "content": "@entity.manager"
1481
+ }
1482
+ ]
1483
+ },
1484
+ {
1485
+ "type": "stack",
1486
+ "direction": "horizontal",
1487
+ "gap": "md",
1488
+ "justify": "space-between",
1489
+ "children": [
1490
+ {
1491
+ "type": "typography",
1492
+ "variant": "caption",
1493
+ "content": "EquipmentReady"
1494
+ },
1495
+ {
1496
+ "type": "typography",
1497
+ "variant": "body",
1498
+ "content": "@entity.equipmentReady"
1499
+ }
1500
+ ]
1501
+ },
1502
+ {
1503
+ "type": "stack",
1504
+ "direction": "horizontal",
1505
+ "gap": "md",
1506
+ "justify": "space-between",
1507
+ "children": [
1508
+ {
1509
+ "type": "typography",
1510
+ "variant": "caption",
1511
+ "content": "AccessGranted"
1512
+ },
1513
+ {
1514
+ "type": "typography",
1515
+ "variant": "body",
1516
+ "content": "@entity.accessGranted"
1517
+ }
1518
+ ]
1519
+ }
1520
+ ]
1521
+ }
1522
+ ]
1523
+ },
1524
+ {
1525
+ "type": "stack",
1526
+ "direction": "horizontal",
1527
+ "gap": "sm",
1528
+ "justify": "end",
1529
+ "children": [
1530
+ {
1531
+ "type": "button",
1532
+ "label": "Back",
1533
+ "event": "PREV",
1534
+ "variant": "ghost",
1535
+ "icon": "arrow-left"
1536
+ },
1537
+ {
1538
+ "type": "button",
1539
+ "label": "Complete",
1540
+ "event": "COMPLETE",
1541
+ "variant": "primary",
1542
+ "icon": "check"
1543
+ }
1544
+ ]
1545
+ }
1546
+ ]
1547
+ }
1548
+ ]
1549
+ ]
1550
+ },
1551
+ {
1552
+ "from": "step2",
1553
+ "to": "step1",
1554
+ "event": "PREV",
1555
+ "effects": [
1556
+ [
1557
+ "fetch",
1558
+ "Onboarding"
1559
+ ],
1560
+ [
1561
+ "render-ui",
1562
+ "main",
1563
+ {
1564
+ "type": "stack",
1565
+ "direction": "vertical",
1566
+ "gap": "lg",
1567
+ "children": [
1568
+ {
1569
+ "type": "stack",
1570
+ "direction": "horizontal",
1571
+ "gap": "sm",
1572
+ "align": "center",
1573
+ "children": [
1574
+ {
1575
+ "type": "icon",
1576
+ "name": "clipboard-check",
1577
+ "size": "lg"
1578
+ },
1579
+ {
1580
+ "type": "typography",
1581
+ "content": "Employee Onboarding",
1582
+ "variant": "h2"
1583
+ }
1584
+ ]
1585
+ },
1586
+ {
1587
+ "type": "badge",
1588
+ "label": "Step 1 of 3"
1589
+ },
1590
+ {
1591
+ "type": "wizard-progress",
1592
+ "steps": [
1593
+ "Employee Details",
1594
+ "Manager Assignment",
1595
+ "Setup Checklist"
1596
+ ],
1597
+ "currentStep": 0
1598
+ },
1599
+ {
1600
+ "type": "divider"
1601
+ },
1602
+ {
1603
+ "type": "typography",
1604
+ "content": "Employee Details",
1605
+ "variant": "h3"
1606
+ },
1607
+ {
1608
+ "type": "form-section",
1609
+ "entity": "Onboarding",
1610
+ "mode": "create",
1611
+ "submitEvent": "NEXT",
1612
+ "cancelEvent": "INIT",
1613
+ "fields": [
1614
+ "employeeName",
1615
+ "department"
1616
+ ]
1617
+ },
1618
+ {
1619
+ "type": "stack",
1620
+ "direction": "horizontal",
1621
+ "gap": "sm",
1622
+ "justify": "end",
1623
+ "children": [
1624
+ {
1625
+ "type": "button",
1626
+ "label": "Next",
1627
+ "event": "NEXT",
1628
+ "variant": "primary",
1629
+ "icon": "arrow-right"
1630
+ }
1631
+ ]
1632
+ }
1633
+ ]
1634
+ }
1635
+ ]
1636
+ ]
1637
+ },
1638
+ {
1639
+ "from": "step3",
1640
+ "to": "step2",
1641
+ "event": "PREV",
1642
+ "effects": [
1643
+ [
1644
+ "fetch",
1645
+ "Onboarding"
1646
+ ],
1647
+ [
1648
+ "render-ui",
1649
+ "main",
1650
+ {
1651
+ "type": "stack",
1652
+ "direction": "vertical",
1653
+ "gap": "lg",
1654
+ "children": [
1655
+ {
1656
+ "type": "stack",
1657
+ "direction": "horizontal",
1658
+ "gap": "sm",
1659
+ "align": "center",
1660
+ "children": [
1661
+ {
1662
+ "type": "icon",
1663
+ "name": "clipboard-check",
1664
+ "size": "lg"
1665
+ },
1666
+ {
1667
+ "type": "typography",
1668
+ "content": "Employee Onboarding",
1669
+ "variant": "h2"
1670
+ }
1671
+ ]
1672
+ },
1673
+ {
1674
+ "type": "badge",
1675
+ "label": "Step 2 of 3"
1676
+ },
1677
+ {
1678
+ "type": "wizard-progress",
1679
+ "steps": [
1680
+ "Employee Details",
1681
+ "Manager Assignment",
1682
+ "Setup Checklist"
1683
+ ],
1684
+ "currentStep": 1
1685
+ },
1686
+ {
1687
+ "type": "divider"
1688
+ },
1689
+ {
1690
+ "type": "typography",
1691
+ "content": "Manager Assignment",
1692
+ "variant": "h3"
1693
+ },
1694
+ {
1695
+ "type": "form-section",
1696
+ "entity": "Onboarding",
1697
+ "mode": "create",
1698
+ "submitEvent": "NEXT",
1699
+ "cancelEvent": "PREV",
1700
+ "fields": [
1701
+ "manager"
1702
+ ]
1703
+ },
1704
+ {
1705
+ "type": "stack",
1706
+ "direction": "horizontal",
1707
+ "gap": "sm",
1708
+ "justify": "end",
1709
+ "children": [
1710
+ {
1711
+ "type": "button",
1712
+ "label": "Back",
1713
+ "event": "PREV",
1714
+ "variant": "ghost",
1715
+ "icon": "arrow-left"
1716
+ },
1717
+ {
1718
+ "type": "button",
1719
+ "label": "Next",
1720
+ "event": "NEXT",
1721
+ "variant": "primary",
1722
+ "icon": "arrow-right"
1723
+ }
1724
+ ]
1725
+ }
1726
+ ]
1727
+ }
1728
+ ]
1729
+ ]
1730
+ },
1731
+ {
1732
+ "from": "review",
1733
+ "to": "step3",
1734
+ "event": "PREV",
1735
+ "effects": [
1736
+ [
1737
+ "fetch",
1738
+ "Onboarding"
1739
+ ],
1740
+ [
1741
+ "render-ui",
1742
+ "main",
1743
+ {
1744
+ "type": "stack",
1745
+ "direction": "vertical",
1746
+ "gap": "lg",
1747
+ "children": [
1748
+ {
1749
+ "type": "stack",
1750
+ "direction": "horizontal",
1751
+ "gap": "sm",
1752
+ "align": "center",
1753
+ "children": [
1754
+ {
1755
+ "type": "icon",
1756
+ "name": "clipboard-check",
1757
+ "size": "lg"
1758
+ },
1759
+ {
1760
+ "type": "typography",
1761
+ "content": "Employee Onboarding",
1762
+ "variant": "h2"
1763
+ }
1764
+ ]
1765
+ },
1766
+ {
1767
+ "type": "badge",
1768
+ "label": "Step 3 of 3"
1769
+ },
1770
+ {
1771
+ "type": "wizard-progress",
1772
+ "steps": [
1773
+ "Employee Details",
1774
+ "Manager Assignment",
1775
+ "Setup Checklist"
1776
+ ],
1777
+ "currentStep": 2
1778
+ },
1779
+ {
1780
+ "type": "divider"
1781
+ },
1782
+ {
1783
+ "type": "typography",
1784
+ "content": "Setup Checklist",
1785
+ "variant": "h3"
1786
+ },
1787
+ {
1788
+ "type": "form-section",
1789
+ "entity": "Onboarding",
1790
+ "mode": "create",
1791
+ "submitEvent": "NEXT",
1792
+ "cancelEvent": "PREV",
1793
+ "fields": [
1794
+ "equipmentReady",
1795
+ "accessGranted"
1796
+ ]
1797
+ },
1798
+ {
1799
+ "type": "stack",
1800
+ "direction": "horizontal",
1801
+ "gap": "sm",
1802
+ "justify": "end",
1803
+ "children": [
1804
+ {
1805
+ "type": "button",
1806
+ "label": "Back",
1807
+ "event": "PREV",
1808
+ "variant": "ghost",
1809
+ "icon": "arrow-left"
1810
+ },
1811
+ {
1812
+ "type": "button",
1813
+ "label": "Next",
1814
+ "event": "NEXT",
1815
+ "variant": "primary",
1816
+ "icon": "arrow-right"
1817
+ }
1818
+ ]
1819
+ }
1820
+ ]
1821
+ }
1822
+ ]
1823
+ ]
1824
+ },
1825
+ {
1826
+ "from": "review",
1827
+ "to": "complete",
1828
+ "event": "COMPLETE",
1829
+ "effects": [
1830
+ [
1831
+ "persist",
1832
+ "create",
1833
+ "Onboarding",
1834
+ "@payload.data"
1835
+ ],
1836
+ [
1837
+ "notify",
1838
+ "success",
1839
+ "Onboarding created successfully"
1840
+ ],
1841
+ [
1842
+ "render-ui",
1843
+ "main",
1844
+ {
1845
+ "type": "stack",
1846
+ "direction": "vertical",
1847
+ "gap": "lg",
1848
+ "align": "center",
1849
+ "children": [
1850
+ {
1851
+ "type": "icon",
1852
+ "name": "check-circle",
1853
+ "size": "lg"
1854
+ },
1855
+ {
1856
+ "type": "typography",
1857
+ "content": "Onboarding Complete!",
1858
+ "variant": "h2"
1859
+ },
1860
+ {
1861
+ "type": "typography",
1862
+ "content": "The new employee has been fully onboarded.",
1863
+ "variant": "body"
1864
+ },
1865
+ {
1866
+ "type": "button",
1867
+ "label": "Start New",
1868
+ "event": "RESTART",
1869
+ "variant": "primary",
1870
+ "icon": "refresh-cw"
1871
+ }
1872
+ ]
1873
+ }
1874
+ ]
1875
+ ]
1876
+ },
1877
+ {
1878
+ "from": "complete",
1879
+ "to": "step1",
1880
+ "event": "RESTART",
1881
+ "effects": [
1882
+ [
1883
+ "fetch",
1884
+ "Onboarding"
1885
+ ],
1886
+ [
1887
+ "render-ui",
1888
+ "main",
1889
+ {
1890
+ "type": "stack",
1891
+ "direction": "vertical",
1892
+ "gap": "lg",
1893
+ "children": [
1894
+ {
1895
+ "type": "stack",
1896
+ "direction": "horizontal",
1897
+ "gap": "sm",
1898
+ "align": "center",
1899
+ "children": [
1900
+ {
1901
+ "type": "icon",
1902
+ "name": "clipboard-check",
1903
+ "size": "lg"
1904
+ },
1905
+ {
1906
+ "type": "typography",
1907
+ "content": "Employee Onboarding",
1908
+ "variant": "h2"
1909
+ }
1910
+ ]
1911
+ },
1912
+ {
1913
+ "type": "badge",
1914
+ "label": "Step 1 of 3"
1915
+ },
1916
+ {
1917
+ "type": "wizard-progress",
1918
+ "steps": [
1919
+ "Employee Details",
1920
+ "Manager Assignment",
1921
+ "Setup Checklist"
1922
+ ],
1923
+ "currentStep": 0
1924
+ },
1925
+ {
1926
+ "type": "divider"
1927
+ },
1928
+ {
1929
+ "type": "typography",
1930
+ "content": "Employee Details",
1931
+ "variant": "h3"
1932
+ },
1933
+ {
1934
+ "type": "form-section",
1935
+ "entity": "Onboarding",
1936
+ "mode": "create",
1937
+ "submitEvent": "NEXT",
1938
+ "cancelEvent": "INIT",
1939
+ "fields": [
1940
+ "employeeName",
1941
+ "department"
1942
+ ]
1943
+ },
1944
+ {
1945
+ "type": "stack",
1946
+ "direction": "horizontal",
1947
+ "gap": "sm",
1948
+ "justify": "end",
1949
+ "children": [
1950
+ {
1951
+ "type": "button",
1952
+ "label": "Next",
1953
+ "event": "NEXT",
1954
+ "variant": "primary",
1955
+ "icon": "arrow-right"
1956
+ }
1957
+ ]
1958
+ }
1959
+ ]
1960
+ }
1961
+ ]
1962
+ ]
1963
+ },
1964
+ {
1965
+ "from": "complete",
1966
+ "to": "step1",
1967
+ "event": "INIT",
1968
+ "effects": [
1969
+ [
1970
+ "fetch",
1971
+ "Onboarding"
1972
+ ],
1973
+ [
1974
+ "render-ui",
1975
+ "main",
1976
+ {
1977
+ "type": "stack",
1978
+ "direction": "vertical",
1979
+ "gap": "lg",
1980
+ "children": [
1981
+ {
1982
+ "type": "stack",
1983
+ "direction": "horizontal",
1984
+ "gap": "sm",
1985
+ "align": "center",
1986
+ "children": [
1987
+ {
1988
+ "type": "icon",
1989
+ "name": "clipboard-check",
1990
+ "size": "lg"
1991
+ },
1992
+ {
1993
+ "type": "typography",
1994
+ "content": "Employee Onboarding",
1995
+ "variant": "h2"
1996
+ }
1997
+ ]
1998
+ },
1999
+ {
2000
+ "type": "badge",
2001
+ "label": "Step 1 of 3"
2002
+ },
2003
+ {
2004
+ "type": "wizard-progress",
2005
+ "steps": [
2006
+ "Employee Details",
2007
+ "Manager Assignment",
2008
+ "Setup Checklist"
2009
+ ],
2010
+ "currentStep": 0
2011
+ },
2012
+ {
2013
+ "type": "divider"
2014
+ },
2015
+ {
2016
+ "type": "typography",
2017
+ "content": "Employee Details",
2018
+ "variant": "h3"
2019
+ },
2020
+ {
2021
+ "type": "form-section",
2022
+ "entity": "Onboarding",
2023
+ "mode": "create",
2024
+ "submitEvent": "NEXT",
2025
+ "cancelEvent": "INIT",
2026
+ "fields": [
2027
+ "employeeName",
2028
+ "department"
2029
+ ]
2030
+ },
2031
+ {
2032
+ "type": "stack",
2033
+ "direction": "horizontal",
2034
+ "gap": "sm",
2035
+ "justify": "end",
2036
+ "children": [
2037
+ {
2038
+ "type": "button",
2039
+ "label": "Next",
2040
+ "event": "NEXT",
2041
+ "variant": "primary",
2042
+ "icon": "arrow-right"
2043
+ }
2044
+ ]
2045
+ }
2046
+ ]
2047
+ }
2048
+ ]
2049
+ ]
2050
+ }
2051
+ ]
2052
+ },
2053
+ "listens": [
2054
+ {
2055
+ "event": "ONBOARD",
2056
+ "triggers": "INIT",
2057
+ "scope": "external"
2058
+ }
2059
+ ]
2060
+ }
2061
+ ],
2062
+ "pages": [
2063
+ {
2064
+ "name": "OnboardingPage",
2065
+ "path": "/onboarding",
2066
+ "traits": [
2067
+ {
2068
+ "ref": "OnboardingWizard"
2069
+ }
2070
+ ]
2071
+ }
2072
+ ]
2073
+ },
2074
+ {
2075
+ "name": "TimeOffOrbital",
2076
+ "entity": {
2077
+ "name": "TimeOff",
2078
+ "persistence": "runtime",
2079
+ "fields": [
2080
+ {
2081
+ "name": "id",
2082
+ "type": "string",
2083
+ "required": true
2084
+ },
2085
+ {
2086
+ "name": "employeeName",
2087
+ "type": "string",
2088
+ "default": ""
2089
+ },
2090
+ {
2091
+ "name": "leaveType",
2092
+ "type": "string",
2093
+ "default": "vacation"
2094
+ },
2095
+ {
2096
+ "name": "startDate",
2097
+ "type": "string",
2098
+ "default": ""
2099
+ },
2100
+ {
2101
+ "name": "endDate",
2102
+ "type": "string",
2103
+ "default": ""
2104
+ },
2105
+ {
2106
+ "name": "status",
2107
+ "type": "string",
2108
+ "default": "pending"
2109
+ }
2110
+ ]
2111
+ },
2112
+ "traits": [
2113
+ {
2114
+ "name": "TimeOffBrowse",
2115
+ "linkedEntity": "TimeOff",
2116
+ "category": "interaction",
2117
+ "listens": [
2118
+ {
2119
+ "event": "TIME_OFF_CREATED",
2120
+ "triggers": "TIME_OFF_CREATED"
2121
+ },
2122
+ {
2123
+ "event": "TIME_OFF_UPDATED",
2124
+ "triggers": "TIME_OFF_UPDATED"
2125
+ }
2126
+ ],
2127
+ "stateMachine": {
2128
+ "states": [
2129
+ {
2130
+ "name": "browsing",
2131
+ "isInitial": true
2132
+ },
2133
+ {
2134
+ "name": "deleting"
2135
+ }
2136
+ ],
2137
+ "events": [
2138
+ {
2139
+ "key": "INIT",
2140
+ "name": "Initialize"
2141
+ },
2142
+ {
2143
+ "key": "CREATE",
2144
+ "name": "CREATE"
2145
+ },
2146
+ {
2147
+ "key": "VIEW",
2148
+ "name": "VIEW",
2149
+ "payload": [
2150
+ {
2151
+ "name": "id",
2152
+ "type": "string",
2153
+ "required": true
2154
+ }
2155
+ ]
2156
+ },
2157
+ {
2158
+ "key": "EDIT",
2159
+ "name": "EDIT",
2160
+ "payload": [
2161
+ {
2162
+ "name": "id",
2163
+ "type": "string",
2164
+ "required": true
2165
+ }
2166
+ ]
2167
+ },
2168
+ {
2169
+ "key": "DELETE",
2170
+ "name": "DELETE",
2171
+ "payload": [
2172
+ {
2173
+ "name": "id",
2174
+ "type": "string",
2175
+ "required": true
2176
+ }
2177
+ ]
2178
+ },
2179
+ {
2180
+ "key": "TIME_OFF_CREATED",
2181
+ "name": "TIME_OFF_CREATED",
2182
+ "payload": [
2183
+ {
2184
+ "name": "data",
2185
+ "type": "object",
2186
+ "required": true
2187
+ }
2188
+ ]
2189
+ },
2190
+ {
2191
+ "key": "TIME_OFF_UPDATED",
2192
+ "name": "TIME_OFF_UPDATED",
2193
+ "payload": [
2194
+ {
2195
+ "name": "data",
2196
+ "type": "object",
2197
+ "required": true
2198
+ }
2199
+ ]
2200
+ },
2201
+ {
2202
+ "key": "CONFIRM_DELETE",
2203
+ "name": "Confirm Delete"
2204
+ },
2205
+ {
2206
+ "key": "CANCEL",
2207
+ "name": "Cancel"
2208
+ },
2209
+ {
2210
+ "key": "CLOSE",
2211
+ "name": "Close"
2212
+ }
2213
+ ],
2214
+ "transitions": [
2215
+ {
2216
+ "from": "browsing",
2217
+ "to": "browsing",
2218
+ "event": "INIT",
2219
+ "effects": [
2220
+ [
2221
+ "fetch",
2222
+ "TimeOff"
2223
+ ],
2224
+ [
2225
+ "render-ui",
2226
+ "main",
2227
+ {
2228
+ "type": "stack",
2229
+ "direction": "vertical",
2230
+ "gap": "lg",
2231
+ "children": [
2232
+ {
2233
+ "type": "stack",
2234
+ "direction": "horizontal",
2235
+ "gap": "md",
2236
+ "justify": "space-between",
2237
+ "children": [
2238
+ {
2239
+ "type": "stack",
2240
+ "direction": "horizontal",
2241
+ "gap": "sm",
2242
+ "align": "center",
2243
+ "children": [
2244
+ {
2245
+ "type": "icon",
2246
+ "name": "calendar",
2247
+ "size": "lg"
2248
+ },
2249
+ {
2250
+ "type": "typography",
2251
+ "content": "Time Off Requests",
2252
+ "variant": "h2"
2253
+ }
2254
+ ]
2255
+ },
2256
+ {
2257
+ "type": "stack",
2258
+ "direction": "horizontal",
2259
+ "gap": "sm",
2260
+ "children": [
2261
+ {
2262
+ "type": "button",
2263
+ "label": "Request Time Off",
2264
+ "event": "CREATE",
2265
+ "variant": "primary",
2266
+ "icon": "plus"
2267
+ }
2268
+ ]
2269
+ }
2270
+ ]
2271
+ },
2272
+ {
2273
+ "type": "divider"
2274
+ },
2275
+ {
2276
+ "type": "data-grid",
2277
+ "entity": "TimeOff",
2278
+ "emptyIcon": "inbox",
2279
+ "emptyTitle": "No timeoffs yet",
2280
+ "emptyDescription": "Create your first timeoff to get started.",
2281
+ "itemActions": [
2282
+ {
2283
+ "label": "View",
2284
+ "event": "VIEW"
2285
+ },
2286
+ {
2287
+ "label": "Edit",
2288
+ "event": "EDIT"
2289
+ },
2290
+ {
2291
+ "label": "Delete",
2292
+ "event": "DELETE",
2293
+ "variant": "danger"
2294
+ }
2295
+ ],
2296
+ "className": "transition-shadow hover:shadow-md cursor-pointer",
2297
+ "children": [
2298
+ {
2299
+ "type": "stack",
2300
+ "direction": "vertical",
2301
+ "gap": "sm",
2302
+ "children": [
2303
+ {
2304
+ "type": "stack",
2305
+ "direction": "horizontal",
2306
+ "justify": "space-between",
2307
+ "align": "center",
2308
+ "children": [
2309
+ {
2310
+ "type": "stack",
2311
+ "direction": "horizontal",
2312
+ "gap": "sm",
2313
+ "align": "center",
2314
+ "children": [
2315
+ {
2316
+ "type": "icon",
2317
+ "name": "calendar",
2318
+ "size": "sm"
2319
+ },
2320
+ {
2321
+ "type": "typography",
2322
+ "variant": "h4",
2323
+ "content": "@entity.employeeName"
2324
+ }
2325
+ ]
2326
+ },
2327
+ {
2328
+ "type": "badge",
2329
+ "label": "@entity.leaveType"
2330
+ }
2331
+ ]
2332
+ },
2333
+ {
2334
+ "type": "typography",
2335
+ "variant": "caption",
2336
+ "color": "muted",
2337
+ "content": "@entity.startDate"
2338
+ }
2339
+ ]
2340
+ }
2341
+ ]
2342
+ }
2343
+ ]
2344
+ }
2345
+ ]
2346
+ ]
2347
+ },
2348
+ {
2349
+ "from": "browsing",
2350
+ "to": "browsing",
2351
+ "event": "TIME_OFF_CREATED",
2352
+ "effects": [
2353
+ [
2354
+ "fetch",
2355
+ "TimeOff"
2356
+ ]
2357
+ ]
2358
+ },
2359
+ {
2360
+ "from": "browsing",
2361
+ "to": "browsing",
2362
+ "event": "TIME_OFF_UPDATED",
2363
+ "effects": [
2364
+ [
2365
+ "fetch",
2366
+ "TimeOff"
2367
+ ]
2368
+ ]
2369
+ },
2370
+ {
2371
+ "from": "browsing",
2372
+ "to": "deleting",
2373
+ "event": "DELETE",
2374
+ "effects": [
2375
+ [
2376
+ "fetch",
2377
+ "TimeOff",
2378
+ "@payload.id"
2379
+ ],
2380
+ [
2381
+ "render-ui",
2382
+ "modal",
2383
+ {
2384
+ "type": "stack",
2385
+ "direction": "vertical",
2386
+ "gap": "md",
2387
+ "children": [
2388
+ {
2389
+ "type": "stack",
2390
+ "direction": "horizontal",
2391
+ "gap": "sm",
2392
+ "children": [
2393
+ {
2394
+ "type": "icon",
2395
+ "name": "trash-2",
2396
+ "size": "md"
2397
+ },
2398
+ {
2399
+ "type": "typography",
2400
+ "content": "Delete TimeOff",
2401
+ "variant": "h3"
2402
+ }
2403
+ ]
2404
+ },
2405
+ {
2406
+ "type": "divider"
2407
+ },
2408
+ {
2409
+ "type": "typography",
2410
+ "content": "Are you sure you want to delete this timeoff?",
2411
+ "variant": "body"
2412
+ },
2413
+ {
2414
+ "type": "stack",
2415
+ "direction": "horizontal",
2416
+ "gap": "sm",
2417
+ "justify": "end",
2418
+ "children": [
2419
+ {
2420
+ "type": "button",
2421
+ "label": "Cancel",
2422
+ "event": "CANCEL",
2423
+ "variant": "ghost"
2424
+ },
2425
+ {
2426
+ "type": "button",
2427
+ "label": "Delete",
2428
+ "event": "CONFIRM_DELETE",
2429
+ "variant": "danger",
2430
+ "icon": "trash"
2431
+ }
2432
+ ]
2433
+ }
2434
+ ]
2435
+ }
2436
+ ]
2437
+ ]
2438
+ },
2439
+ {
2440
+ "from": "deleting",
2441
+ "to": "browsing",
2442
+ "event": "CONFIRM_DELETE",
2443
+ "effects": [
2444
+ [
2445
+ "persist",
2446
+ "delete",
2447
+ "TimeOff",
2448
+ "@entity.id"
2449
+ ],
2450
+ [
2451
+ "render-ui",
2452
+ "modal",
2453
+ null
2454
+ ],
2455
+ [
2456
+ "fetch",
2457
+ "TimeOff"
2458
+ ],
2459
+ [
2460
+ "notify",
2461
+ "TimeOff deleted successfully"
2462
+ ]
2463
+ ]
2464
+ },
2465
+ {
2466
+ "from": "deleting",
2467
+ "to": "browsing",
2468
+ "event": "CANCEL",
2469
+ "effects": [
2470
+ [
2471
+ "render-ui",
2472
+ "modal",
2473
+ null
2474
+ ]
2475
+ ]
2476
+ },
2477
+ {
2478
+ "from": "deleting",
2479
+ "to": "browsing",
2480
+ "event": "CLOSE",
2481
+ "effects": [
2482
+ [
2483
+ "render-ui",
2484
+ "modal",
2485
+ null
2486
+ ]
2487
+ ]
2488
+ }
2489
+ ]
2490
+ },
2491
+ "emits": [
2492
+ {
2493
+ "event": "APPROVE_LEAVE",
2494
+ "description": "Approve leave and update org chart",
2495
+ "payload": [
2496
+ {
2497
+ "name": "id",
2498
+ "type": "string",
2499
+ "required": true
2500
+ }
2501
+ ],
2502
+ "scope": "external"
2503
+ }
2504
+ ]
2505
+ },
2506
+ {
2507
+ "name": "TimeOffCreate",
2508
+ "linkedEntity": "TimeOff",
2509
+ "category": "interaction",
2510
+ "emits": [
2511
+ {
2512
+ "event": "TIME_OFF_CREATED"
2513
+ }
2514
+ ],
2515
+ "stateMachine": {
2516
+ "states": [
2517
+ {
2518
+ "name": "closed",
2519
+ "isInitial": true
2520
+ },
2521
+ {
2522
+ "name": "open"
2523
+ }
2524
+ ],
2525
+ "events": [
2526
+ {
2527
+ "key": "INIT",
2528
+ "name": "Initialize"
2529
+ },
2530
+ {
2531
+ "key": "CREATE",
2532
+ "name": "Open"
2533
+ },
2534
+ {
2535
+ "key": "CLOSE",
2536
+ "name": "Close"
2537
+ },
2538
+ {
2539
+ "key": "SAVE",
2540
+ "name": "Save",
2541
+ "payload": [
2542
+ {
2543
+ "name": "data",
2544
+ "type": "object",
2545
+ "required": true
2546
+ }
2547
+ ]
2548
+ }
2549
+ ],
2550
+ "transitions": [
2551
+ {
2552
+ "from": "closed",
2553
+ "to": "closed",
2554
+ "event": "INIT",
2555
+ "effects": [
2556
+ [
2557
+ "fetch",
2558
+ "TimeOff"
2559
+ ]
2560
+ ]
2561
+ },
2562
+ {
2563
+ "from": "closed",
2564
+ "to": "open",
2565
+ "event": "CREATE",
2566
+ "effects": [
2567
+ [
2568
+ "fetch",
2569
+ "TimeOff"
2570
+ ],
2571
+ [
2572
+ "render-ui",
2573
+ "modal",
2574
+ {
2575
+ "type": "stack",
2576
+ "direction": "vertical",
2577
+ "gap": "md",
2578
+ "children": [
2579
+ {
2580
+ "type": "stack",
2581
+ "direction": "horizontal",
2582
+ "gap": "sm",
2583
+ "children": [
2584
+ {
2585
+ "type": "icon",
2586
+ "name": "plus-circle",
2587
+ "size": "md"
2588
+ },
2589
+ {
2590
+ "type": "typography",
2591
+ "content": "New Time Off Request",
2592
+ "variant": "h3"
2593
+ }
2594
+ ]
2595
+ },
2596
+ {
2597
+ "type": "divider"
2598
+ },
2599
+ {
2600
+ "type": "form-section",
2601
+ "entity": "TimeOff",
2602
+ "mode": "create",
2603
+ "submitEvent": "SAVE",
2604
+ "cancelEvent": "CLOSE",
2605
+ "fields": [
2606
+ "employeeName",
2607
+ "leaveType",
2608
+ "startDate",
2609
+ "endDate",
2610
+ "status"
2611
+ ]
2612
+ }
2613
+ ]
2614
+ }
2615
+ ]
2616
+ ]
2617
+ },
2618
+ {
2619
+ "from": "open",
2620
+ "to": "closed",
2621
+ "event": "CLOSE",
2622
+ "effects": [
2623
+ [
2624
+ "render-ui",
2625
+ "modal",
2626
+ null
2627
+ ]
2628
+ ]
2629
+ },
2630
+ {
2631
+ "from": "open",
2632
+ "to": "closed",
2633
+ "event": "SAVE",
2634
+ "effects": [
2635
+ [
2636
+ "persist",
2637
+ "create",
2638
+ "TimeOff",
2639
+ "@payload.data"
2640
+ ],
2641
+ [
2642
+ "fetch",
2643
+ "TimeOff"
2644
+ ],
2645
+ [
2646
+ "render-ui",
2647
+ "modal",
2648
+ null
2649
+ ],
2650
+ [
2651
+ "emit",
2652
+ "TIME_OFF_CREATED"
2653
+ ],
2654
+ [
2655
+ "notify",
2656
+ "TimeOff created successfully"
2657
+ ]
2658
+ ]
2659
+ }
2660
+ ]
2661
+ }
2662
+ },
2663
+ {
2664
+ "name": "TimeOffEdit",
2665
+ "linkedEntity": "TimeOff",
2666
+ "category": "interaction",
2667
+ "emits": [
2668
+ {
2669
+ "event": "TIME_OFF_UPDATED"
2670
+ }
2671
+ ],
2672
+ "stateMachine": {
2673
+ "states": [
2674
+ {
2675
+ "name": "closed",
2676
+ "isInitial": true
2677
+ },
2678
+ {
2679
+ "name": "open"
2680
+ }
2681
+ ],
2682
+ "events": [
2683
+ {
2684
+ "key": "INIT",
2685
+ "name": "Initialize"
2686
+ },
2687
+ {
2688
+ "key": "EDIT",
2689
+ "name": "Open",
2690
+ "payload": [
2691
+ {
2692
+ "name": "id",
2693
+ "type": "string",
2694
+ "required": true
2695
+ }
2696
+ ]
2697
+ },
2698
+ {
2699
+ "key": "CLOSE",
2700
+ "name": "Close"
2701
+ },
2702
+ {
2703
+ "key": "SAVE",
2704
+ "name": "Save",
2705
+ "payload": [
2706
+ {
2707
+ "name": "data",
2708
+ "type": "object",
2709
+ "required": true
2710
+ }
2711
+ ]
2712
+ }
2713
+ ],
2714
+ "transitions": [
2715
+ {
2716
+ "from": "closed",
2717
+ "to": "closed",
2718
+ "event": "INIT",
2719
+ "effects": [
2720
+ [
2721
+ "fetch",
2722
+ "TimeOff"
2723
+ ]
2724
+ ]
2725
+ },
2726
+ {
2727
+ "from": "closed",
2728
+ "to": "open",
2729
+ "event": "EDIT",
2730
+ "effects": [
2731
+ [
2732
+ "fetch",
2733
+ "TimeOff",
2734
+ "@payload.id"
2735
+ ],
2736
+ [
2737
+ "render-ui",
2738
+ "modal",
2739
+ {
2740
+ "type": "stack",
2741
+ "direction": "vertical",
2742
+ "gap": "md",
2743
+ "children": [
2744
+ {
2745
+ "type": "stack",
2746
+ "direction": "horizontal",
2747
+ "gap": "sm",
2748
+ "children": [
2749
+ {
2750
+ "type": "icon",
2751
+ "name": "edit",
2752
+ "size": "md"
2753
+ },
2754
+ {
2755
+ "type": "typography",
2756
+ "content": "Edit TimeOff",
2757
+ "variant": "h3"
2758
+ }
2759
+ ]
2760
+ },
2761
+ {
2762
+ "type": "divider"
2763
+ },
2764
+ {
2765
+ "type": "form-section",
2766
+ "entity": "TimeOff",
2767
+ "mode": "edit",
2768
+ "submitEvent": "SAVE",
2769
+ "cancelEvent": "CLOSE",
2770
+ "fields": [
2771
+ "employeeName",
2772
+ "leaveType",
2773
+ "startDate",
2774
+ "endDate",
2775
+ "status"
2776
+ ]
2777
+ }
2778
+ ]
2779
+ }
2780
+ ]
2781
+ ]
2782
+ },
2783
+ {
2784
+ "from": "open",
2785
+ "to": "closed",
2786
+ "event": "CLOSE",
2787
+ "effects": [
2788
+ [
2789
+ "render-ui",
2790
+ "modal",
2791
+ null
2792
+ ]
2793
+ ]
2794
+ },
2795
+ {
2796
+ "from": "open",
2797
+ "to": "closed",
2798
+ "event": "SAVE",
2799
+ "effects": [
2800
+ [
2801
+ "persist",
2802
+ "update",
2803
+ "TimeOff",
2804
+ "@payload.data"
2805
+ ],
2806
+ [
2807
+ "fetch",
2808
+ "TimeOff"
2809
+ ],
2810
+ [
2811
+ "render-ui",
2812
+ "modal",
2813
+ null
2814
+ ],
2815
+ [
2816
+ "emit",
2817
+ "TIME_OFF_UPDATED"
2818
+ ],
2819
+ [
2820
+ "notify",
2821
+ "TimeOff updated successfully"
2822
+ ]
2823
+ ]
2824
+ }
2825
+ ]
2826
+ }
2827
+ },
2828
+ {
2829
+ "name": "TimeOffView",
2830
+ "linkedEntity": "TimeOff",
2831
+ "category": "interaction",
2832
+ "stateMachine": {
2833
+ "states": [
2834
+ {
2835
+ "name": "closed",
2836
+ "isInitial": true
2837
+ },
2838
+ {
2839
+ "name": "open"
2840
+ }
2841
+ ],
2842
+ "events": [
2843
+ {
2844
+ "key": "INIT",
2845
+ "name": "Initialize"
2846
+ },
2847
+ {
2848
+ "key": "VIEW",
2849
+ "name": "Open",
2850
+ "payload": [
2851
+ {
2852
+ "name": "id",
2853
+ "type": "string",
2854
+ "required": true
2855
+ }
2856
+ ]
2857
+ },
2858
+ {
2859
+ "key": "CLOSE",
2860
+ "name": "Close"
2861
+ }
2862
+ ],
2863
+ "transitions": [
2864
+ {
2865
+ "from": "closed",
2866
+ "to": "closed",
2867
+ "event": "INIT",
2868
+ "effects": [
2869
+ [
2870
+ "fetch",
2871
+ "TimeOff"
2872
+ ]
2873
+ ]
2874
+ },
2875
+ {
2876
+ "from": "closed",
2877
+ "to": "open",
2878
+ "event": "VIEW",
2879
+ "effects": [
2880
+ [
2881
+ "fetch",
2882
+ "TimeOff",
2883
+ "@payload.id"
2884
+ ],
2885
+ [
2886
+ "render-ui",
2887
+ "modal",
2888
+ {
2889
+ "type": "stack",
2890
+ "direction": "vertical",
2891
+ "gap": "md",
2892
+ "children": [
2893
+ {
2894
+ "type": "stack",
2895
+ "direction": "horizontal",
2896
+ "gap": "sm",
2897
+ "align": "center",
2898
+ "children": [
2899
+ {
2900
+ "type": "icon",
2901
+ "name": "eye",
2902
+ "size": "md"
2903
+ },
2904
+ {
2905
+ "type": "typography",
2906
+ "variant": "h3",
2907
+ "content": "@entity.employeeName"
2908
+ }
2909
+ ]
2910
+ },
2911
+ {
2912
+ "type": "divider"
2913
+ },
2914
+ {
2915
+ "type": "stack",
2916
+ "direction": "horizontal",
2917
+ "gap": "md",
2918
+ "children": [
2919
+ {
2920
+ "type": "typography",
2921
+ "variant": "caption",
2922
+ "content": "EmployeeName"
2923
+ },
2924
+ {
2925
+ "type": "typography",
2926
+ "variant": "body",
2927
+ "content": "@entity.employeeName"
2928
+ }
2929
+ ]
2930
+ },
2931
+ {
2932
+ "type": "stack",
2933
+ "direction": "horizontal",
2934
+ "gap": "md",
2935
+ "children": [
2936
+ {
2937
+ "type": "typography",
2938
+ "variant": "caption",
2939
+ "content": "LeaveType"
2940
+ },
2941
+ {
2942
+ "type": "typography",
2943
+ "variant": "body",
2944
+ "content": "@entity.leaveType"
2945
+ }
2946
+ ]
2947
+ },
2948
+ {
2949
+ "type": "stack",
2950
+ "direction": "horizontal",
2951
+ "gap": "md",
2952
+ "children": [
2953
+ {
2954
+ "type": "typography",
2955
+ "variant": "caption",
2956
+ "content": "StartDate"
2957
+ },
2958
+ {
2959
+ "type": "typography",
2960
+ "variant": "body",
2961
+ "content": "@entity.startDate"
2962
+ }
2963
+ ]
2964
+ },
2965
+ {
2966
+ "type": "stack",
2967
+ "direction": "horizontal",
2968
+ "gap": "md",
2969
+ "children": [
2970
+ {
2971
+ "type": "typography",
2972
+ "variant": "caption",
2973
+ "content": "EndDate"
2974
+ },
2975
+ {
2976
+ "type": "typography",
2977
+ "variant": "body",
2978
+ "content": "@entity.endDate"
2979
+ }
2980
+ ]
2981
+ },
2982
+ {
2983
+ "type": "stack",
2984
+ "direction": "horizontal",
2985
+ "gap": "md",
2986
+ "children": [
2987
+ {
2988
+ "type": "typography",
2989
+ "variant": "caption",
2990
+ "content": "Status"
2991
+ },
2992
+ {
2993
+ "type": "typography",
2994
+ "variant": "body",
2995
+ "content": "@entity.status"
2996
+ }
2997
+ ]
2998
+ },
2999
+ {
3000
+ "type": "divider"
3001
+ },
3002
+ {
3003
+ "type": "stack",
3004
+ "direction": "horizontal",
3005
+ "gap": "sm",
3006
+ "justify": "end",
3007
+ "children": [
3008
+ {
3009
+ "type": "button",
3010
+ "label": "Edit",
3011
+ "event": "EDIT",
3012
+ "variant": "primary",
3013
+ "icon": "edit"
3014
+ },
3015
+ {
3016
+ "type": "button",
3017
+ "label": "Close",
3018
+ "event": "CLOSE",
3019
+ "variant": "ghost"
3020
+ }
3021
+ ]
3022
+ }
3023
+ ]
3024
+ }
3025
+ ]
3026
+ ]
3027
+ },
3028
+ {
3029
+ "from": "open",
3030
+ "to": "closed",
3031
+ "event": "CLOSE",
3032
+ "effects": [
3033
+ [
3034
+ "render-ui",
3035
+ "modal",
3036
+ null
3037
+ ]
3038
+ ]
3039
+ }
3040
+ ]
3041
+ }
3042
+ }
3043
+ ],
3044
+ "pages": [
3045
+ {
3046
+ "name": "TimeOffPage",
3047
+ "path": "/timeoff",
3048
+ "traits": [
3049
+ {
3050
+ "ref": "TimeOffBrowse"
3051
+ },
3052
+ {
3053
+ "ref": "TimeOffCreate"
3054
+ },
3055
+ {
3056
+ "ref": "TimeOffEdit"
3057
+ },
3058
+ {
3059
+ "ref": "TimeOffView"
3060
+ }
3061
+ ]
3062
+ }
3063
+ ]
3064
+ },
3065
+ {
3066
+ "name": "OrgChartOrbital",
3067
+ "entity": {
3068
+ "name": "OrgChart",
3069
+ "persistence": "runtime",
3070
+ "fields": [
3071
+ {
3072
+ "name": "id",
3073
+ "type": "string",
3074
+ "required": true
3075
+ },
3076
+ {
3077
+ "name": "totalEmployees",
3078
+ "type": "number",
3079
+ "default": 0
3080
+ },
3081
+ {
3082
+ "name": "departments",
3083
+ "type": "number",
3084
+ "default": 0
3085
+ },
3086
+ {
3087
+ "name": "openPositions",
3088
+ "type": "number",
3089
+ "default": 0
3090
+ },
3091
+ {
3092
+ "name": "avgTenure",
3093
+ "type": "string",
3094
+ "default": "0 years"
3095
+ },
3096
+ {
3097
+ "name": "headcount",
3098
+ "type": "number",
3099
+ "default": 0
3100
+ }
3101
+ ]
3102
+ },
3103
+ "traits": [
3104
+ {
3105
+ "name": "OrgChartDisplay",
3106
+ "linkedEntity": "OrgChart",
3107
+ "category": "interaction",
3108
+ "stateMachine": {
3109
+ "states": [
3110
+ {
3111
+ "name": "loading",
3112
+ "isInitial": true
3113
+ },
3114
+ {
3115
+ "name": "displaying"
3116
+ },
3117
+ {
3118
+ "name": "refreshing"
3119
+ }
3120
+ ],
3121
+ "events": [
3122
+ {
3123
+ "key": "INIT",
3124
+ "name": "Initialize"
3125
+ },
3126
+ {
3127
+ "key": "LOADED",
3128
+ "name": "Loaded"
3129
+ },
3130
+ {
3131
+ "key": "REFRESH",
3132
+ "name": "Refresh"
3133
+ },
3134
+ {
3135
+ "key": "REFRESHED",
3136
+ "name": "Refreshed"
3137
+ }
3138
+ ],
3139
+ "transitions": [
3140
+ {
3141
+ "from": "loading",
3142
+ "to": "displaying",
3143
+ "event": "INIT",
3144
+ "effects": [
3145
+ [
3146
+ "fetch",
3147
+ "OrgChart"
3148
+ ],
3149
+ [
3150
+ "render-ui",
3151
+ "main",
3152
+ {
3153
+ "type": "stack",
3154
+ "direction": "vertical",
3155
+ "gap": "lg",
3156
+ "children": [
3157
+ {
3158
+ "type": "stack",
3159
+ "direction": "horizontal",
3160
+ "gap": "md",
3161
+ "justify": "space-between",
3162
+ "children": [
3163
+ {
3164
+ "type": "stack",
3165
+ "direction": "horizontal",
3166
+ "gap": "md",
3167
+ "children": [
3168
+ {
3169
+ "type": "icon",
3170
+ "name": "git-branch",
3171
+ "size": "lg"
3172
+ },
3173
+ {
3174
+ "type": "typography",
3175
+ "content": "Org Chart",
3176
+ "variant": "h2"
3177
+ }
3178
+ ]
3179
+ },
3180
+ {
3181
+ "type": "button",
3182
+ "label": "Refresh",
3183
+ "event": "REFRESH",
3184
+ "variant": "secondary",
3185
+ "icon": "refresh-cw"
3186
+ }
3187
+ ]
3188
+ },
3189
+ {
3190
+ "type": "divider"
3191
+ },
3192
+ {
3193
+ "type": "simple-grid",
3194
+ "columns": 3,
3195
+ "children": [
3196
+ {
3197
+ "type": "card",
3198
+ "children": [
3199
+ {
3200
+ "type": "stack",
3201
+ "direction": "vertical",
3202
+ "gap": "sm",
3203
+ "children": [
3204
+ {
3205
+ "type": "typography",
3206
+ "variant": "caption",
3207
+ "content": "TotalEmployees"
3208
+ },
3209
+ {
3210
+ "type": "typography",
3211
+ "variant": "h3",
3212
+ "content": "@entity.totalEmployees"
3213
+ }
3214
+ ]
3215
+ }
3216
+ ]
3217
+ },
3218
+ {
3219
+ "type": "card",
3220
+ "children": [
3221
+ {
3222
+ "type": "stack",
3223
+ "direction": "vertical",
3224
+ "gap": "sm",
3225
+ "children": [
3226
+ {
3227
+ "type": "typography",
3228
+ "variant": "caption",
3229
+ "content": "Departments"
3230
+ },
3231
+ {
3232
+ "type": "typography",
3233
+ "variant": "h3",
3234
+ "content": "@entity.departments"
3235
+ }
3236
+ ]
3237
+ }
3238
+ ]
3239
+ },
3240
+ {
3241
+ "type": "card",
3242
+ "children": [
3243
+ {
3244
+ "type": "stack",
3245
+ "direction": "vertical",
3246
+ "gap": "sm",
3247
+ "children": [
3248
+ {
3249
+ "type": "typography",
3250
+ "variant": "caption",
3251
+ "content": "OpenPositions"
3252
+ },
3253
+ {
3254
+ "type": "typography",
3255
+ "variant": "h3",
3256
+ "content": "@entity.openPositions"
3257
+ }
3258
+ ]
3259
+ }
3260
+ ]
3261
+ },
3262
+ {
3263
+ "type": "card",
3264
+ "children": [
3265
+ {
3266
+ "type": "stack",
3267
+ "direction": "vertical",
3268
+ "gap": "sm",
3269
+ "children": [
3270
+ {
3271
+ "type": "typography",
3272
+ "variant": "caption",
3273
+ "content": "AvgTenure"
3274
+ },
3275
+ {
3276
+ "type": "typography",
3277
+ "variant": "h3",
3278
+ "content": "@entity.avgTenure"
3279
+ }
3280
+ ]
3281
+ }
3282
+ ]
3283
+ },
3284
+ {
3285
+ "type": "card",
3286
+ "children": [
3287
+ {
3288
+ "type": "stack",
3289
+ "direction": "vertical",
3290
+ "gap": "sm",
3291
+ "children": [
3292
+ {
3293
+ "type": "typography",
3294
+ "variant": "caption",
3295
+ "content": "Headcount"
3296
+ },
3297
+ {
3298
+ "type": "typography",
3299
+ "variant": "h3",
3300
+ "content": "@entity.headcount"
3301
+ }
3302
+ ]
3303
+ }
3304
+ ]
3305
+ }
3306
+ ]
3307
+ }
3308
+ ]
3309
+ }
3310
+ ]
3311
+ ]
3312
+ },
3313
+ {
3314
+ "from": "loading",
3315
+ "to": "displaying",
3316
+ "event": "LOADED",
3317
+ "effects": [
3318
+ [
3319
+ "fetch",
3320
+ "OrgChart"
3321
+ ],
3322
+ [
3323
+ "render-ui",
3324
+ "main",
3325
+ {
3326
+ "type": "stack",
3327
+ "direction": "vertical",
3328
+ "gap": "lg",
3329
+ "children": [
3330
+ {
3331
+ "type": "stack",
3332
+ "direction": "horizontal",
3333
+ "gap": "md",
3334
+ "justify": "space-between",
3335
+ "children": [
3336
+ {
3337
+ "type": "stack",
3338
+ "direction": "horizontal",
3339
+ "gap": "md",
3340
+ "children": [
3341
+ {
3342
+ "type": "icon",
3343
+ "name": "git-branch",
3344
+ "size": "lg"
3345
+ },
3346
+ {
3347
+ "type": "typography",
3348
+ "content": "Org Chart",
3349
+ "variant": "h2"
3350
+ }
3351
+ ]
3352
+ },
3353
+ {
3354
+ "type": "button",
3355
+ "label": "Refresh",
3356
+ "event": "REFRESH",
3357
+ "variant": "secondary",
3358
+ "icon": "refresh-cw"
3359
+ }
3360
+ ]
3361
+ },
3362
+ {
3363
+ "type": "divider"
3364
+ },
3365
+ {
3366
+ "type": "simple-grid",
3367
+ "columns": 3,
3368
+ "children": [
3369
+ {
3370
+ "type": "card",
3371
+ "children": [
3372
+ {
3373
+ "type": "stack",
3374
+ "direction": "vertical",
3375
+ "gap": "sm",
3376
+ "children": [
3377
+ {
3378
+ "type": "typography",
3379
+ "variant": "caption",
3380
+ "content": "TotalEmployees"
3381
+ },
3382
+ {
3383
+ "type": "typography",
3384
+ "variant": "h3",
3385
+ "content": "@entity.totalEmployees"
3386
+ }
3387
+ ]
3388
+ }
3389
+ ]
3390
+ },
3391
+ {
3392
+ "type": "card",
3393
+ "children": [
3394
+ {
3395
+ "type": "stack",
3396
+ "direction": "vertical",
3397
+ "gap": "sm",
3398
+ "children": [
3399
+ {
3400
+ "type": "typography",
3401
+ "variant": "caption",
3402
+ "content": "Departments"
3403
+ },
3404
+ {
3405
+ "type": "typography",
3406
+ "variant": "h3",
3407
+ "content": "@entity.departments"
3408
+ }
3409
+ ]
3410
+ }
3411
+ ]
3412
+ },
3413
+ {
3414
+ "type": "card",
3415
+ "children": [
3416
+ {
3417
+ "type": "stack",
3418
+ "direction": "vertical",
3419
+ "gap": "sm",
3420
+ "children": [
3421
+ {
3422
+ "type": "typography",
3423
+ "variant": "caption",
3424
+ "content": "OpenPositions"
3425
+ },
3426
+ {
3427
+ "type": "typography",
3428
+ "variant": "h3",
3429
+ "content": "@entity.openPositions"
3430
+ }
3431
+ ]
3432
+ }
3433
+ ]
3434
+ },
3435
+ {
3436
+ "type": "card",
3437
+ "children": [
3438
+ {
3439
+ "type": "stack",
3440
+ "direction": "vertical",
3441
+ "gap": "sm",
3442
+ "children": [
3443
+ {
3444
+ "type": "typography",
3445
+ "variant": "caption",
3446
+ "content": "AvgTenure"
3447
+ },
3448
+ {
3449
+ "type": "typography",
3450
+ "variant": "h3",
3451
+ "content": "@entity.avgTenure"
3452
+ }
3453
+ ]
3454
+ }
3455
+ ]
3456
+ },
3457
+ {
3458
+ "type": "card",
3459
+ "children": [
3460
+ {
3461
+ "type": "stack",
3462
+ "direction": "vertical",
3463
+ "gap": "sm",
3464
+ "children": [
3465
+ {
3466
+ "type": "typography",
3467
+ "variant": "caption",
3468
+ "content": "Headcount"
3469
+ },
3470
+ {
3471
+ "type": "typography",
3472
+ "variant": "h3",
3473
+ "content": "@entity.headcount"
3474
+ }
3475
+ ]
3476
+ }
3477
+ ]
3478
+ }
3479
+ ]
3480
+ }
3481
+ ]
3482
+ }
3483
+ ]
3484
+ ]
3485
+ },
3486
+ {
3487
+ "from": "displaying",
3488
+ "to": "displaying",
3489
+ "event": "INIT",
3490
+ "effects": [
3491
+ [
3492
+ "fetch",
3493
+ "OrgChart"
3494
+ ],
3495
+ [
3496
+ "render-ui",
3497
+ "main",
3498
+ {
3499
+ "type": "stack",
3500
+ "direction": "vertical",
3501
+ "gap": "lg",
3502
+ "children": [
3503
+ {
3504
+ "type": "stack",
3505
+ "direction": "horizontal",
3506
+ "gap": "md",
3507
+ "justify": "space-between",
3508
+ "children": [
3509
+ {
3510
+ "type": "stack",
3511
+ "direction": "horizontal",
3512
+ "gap": "md",
3513
+ "children": [
3514
+ {
3515
+ "type": "icon",
3516
+ "name": "git-branch",
3517
+ "size": "lg"
3518
+ },
3519
+ {
3520
+ "type": "typography",
3521
+ "content": "Org Chart",
3522
+ "variant": "h2"
3523
+ }
3524
+ ]
3525
+ },
3526
+ {
3527
+ "type": "button",
3528
+ "label": "Refresh",
3529
+ "event": "REFRESH",
3530
+ "variant": "secondary",
3531
+ "icon": "refresh-cw"
3532
+ }
3533
+ ]
3534
+ },
3535
+ {
3536
+ "type": "divider"
3537
+ },
3538
+ {
3539
+ "type": "simple-grid",
3540
+ "columns": 3,
3541
+ "children": [
3542
+ {
3543
+ "type": "card",
3544
+ "children": [
3545
+ {
3546
+ "type": "stack",
3547
+ "direction": "vertical",
3548
+ "gap": "sm",
3549
+ "children": [
3550
+ {
3551
+ "type": "typography",
3552
+ "variant": "caption",
3553
+ "content": "TotalEmployees"
3554
+ },
3555
+ {
3556
+ "type": "typography",
3557
+ "variant": "h3",
3558
+ "content": "@entity.totalEmployees"
3559
+ }
3560
+ ]
3561
+ }
3562
+ ]
3563
+ },
3564
+ {
3565
+ "type": "card",
3566
+ "children": [
3567
+ {
3568
+ "type": "stack",
3569
+ "direction": "vertical",
3570
+ "gap": "sm",
3571
+ "children": [
3572
+ {
3573
+ "type": "typography",
3574
+ "variant": "caption",
3575
+ "content": "Departments"
3576
+ },
3577
+ {
3578
+ "type": "typography",
3579
+ "variant": "h3",
3580
+ "content": "@entity.departments"
3581
+ }
3582
+ ]
3583
+ }
3584
+ ]
3585
+ },
3586
+ {
3587
+ "type": "card",
3588
+ "children": [
3589
+ {
3590
+ "type": "stack",
3591
+ "direction": "vertical",
3592
+ "gap": "sm",
3593
+ "children": [
3594
+ {
3595
+ "type": "typography",
3596
+ "variant": "caption",
3597
+ "content": "OpenPositions"
3598
+ },
3599
+ {
3600
+ "type": "typography",
3601
+ "variant": "h3",
3602
+ "content": "@entity.openPositions"
3603
+ }
3604
+ ]
3605
+ }
3606
+ ]
3607
+ },
3608
+ {
3609
+ "type": "card",
3610
+ "children": [
3611
+ {
3612
+ "type": "stack",
3613
+ "direction": "vertical",
3614
+ "gap": "sm",
3615
+ "children": [
3616
+ {
3617
+ "type": "typography",
3618
+ "variant": "caption",
3619
+ "content": "AvgTenure"
3620
+ },
3621
+ {
3622
+ "type": "typography",
3623
+ "variant": "h3",
3624
+ "content": "@entity.avgTenure"
3625
+ }
3626
+ ]
3627
+ }
3628
+ ]
3629
+ },
3630
+ {
3631
+ "type": "card",
3632
+ "children": [
3633
+ {
3634
+ "type": "stack",
3635
+ "direction": "vertical",
3636
+ "gap": "sm",
3637
+ "children": [
3638
+ {
3639
+ "type": "typography",
3640
+ "variant": "caption",
3641
+ "content": "Headcount"
3642
+ },
3643
+ {
3644
+ "type": "typography",
3645
+ "variant": "h3",
3646
+ "content": "@entity.headcount"
3647
+ }
3648
+ ]
3649
+ }
3650
+ ]
3651
+ }
3652
+ ]
3653
+ }
3654
+ ]
3655
+ }
3656
+ ]
3657
+ ]
3658
+ },
3659
+ {
3660
+ "from": "displaying",
3661
+ "to": "refreshing",
3662
+ "event": "REFRESH",
3663
+ "effects": [
3664
+ [
3665
+ "fetch",
3666
+ "OrgChart"
3667
+ ],
3668
+ [
3669
+ "render-ui",
3670
+ "main",
3671
+ {
3672
+ "type": "stack",
3673
+ "direction": "vertical",
3674
+ "gap": "lg",
3675
+ "children": [
3676
+ {
3677
+ "type": "stack",
3678
+ "direction": "horizontal",
3679
+ "gap": "md",
3680
+ "justify": "space-between",
3681
+ "children": [
3682
+ {
3683
+ "type": "stack",
3684
+ "direction": "horizontal",
3685
+ "gap": "md",
3686
+ "children": [
3687
+ {
3688
+ "type": "icon",
3689
+ "name": "git-branch",
3690
+ "size": "lg"
3691
+ },
3692
+ {
3693
+ "type": "typography",
3694
+ "content": "Org Chart",
3695
+ "variant": "h2"
3696
+ }
3697
+ ]
3698
+ },
3699
+ {
3700
+ "type": "button",
3701
+ "label": "Refresh",
3702
+ "event": "REFRESH",
3703
+ "variant": "secondary",
3704
+ "icon": "refresh-cw"
3705
+ }
3706
+ ]
3707
+ },
3708
+ {
3709
+ "type": "divider"
3710
+ },
3711
+ {
3712
+ "type": "simple-grid",
3713
+ "columns": 3,
3714
+ "children": [
3715
+ {
3716
+ "type": "card",
3717
+ "children": [
3718
+ {
3719
+ "type": "stack",
3720
+ "direction": "vertical",
3721
+ "gap": "sm",
3722
+ "children": [
3723
+ {
3724
+ "type": "typography",
3725
+ "variant": "caption",
3726
+ "content": "TotalEmployees"
3727
+ },
3728
+ {
3729
+ "type": "typography",
3730
+ "variant": "h3",
3731
+ "content": "@entity.totalEmployees"
3732
+ }
3733
+ ]
3734
+ }
3735
+ ]
3736
+ },
3737
+ {
3738
+ "type": "card",
3739
+ "children": [
3740
+ {
3741
+ "type": "stack",
3742
+ "direction": "vertical",
3743
+ "gap": "sm",
3744
+ "children": [
3745
+ {
3746
+ "type": "typography",
3747
+ "variant": "caption",
3748
+ "content": "Departments"
3749
+ },
3750
+ {
3751
+ "type": "typography",
3752
+ "variant": "h3",
3753
+ "content": "@entity.departments"
3754
+ }
3755
+ ]
3756
+ }
3757
+ ]
3758
+ },
3759
+ {
3760
+ "type": "card",
3761
+ "children": [
3762
+ {
3763
+ "type": "stack",
3764
+ "direction": "vertical",
3765
+ "gap": "sm",
3766
+ "children": [
3767
+ {
3768
+ "type": "typography",
3769
+ "variant": "caption",
3770
+ "content": "OpenPositions"
3771
+ },
3772
+ {
3773
+ "type": "typography",
3774
+ "variant": "h3",
3775
+ "content": "@entity.openPositions"
3776
+ }
3777
+ ]
3778
+ }
3779
+ ]
3780
+ },
3781
+ {
3782
+ "type": "card",
3783
+ "children": [
3784
+ {
3785
+ "type": "stack",
3786
+ "direction": "vertical",
3787
+ "gap": "sm",
3788
+ "children": [
3789
+ {
3790
+ "type": "typography",
3791
+ "variant": "caption",
3792
+ "content": "AvgTenure"
3793
+ },
3794
+ {
3795
+ "type": "typography",
3796
+ "variant": "h3",
3797
+ "content": "@entity.avgTenure"
3798
+ }
3799
+ ]
3800
+ }
3801
+ ]
3802
+ },
3803
+ {
3804
+ "type": "card",
3805
+ "children": [
3806
+ {
3807
+ "type": "stack",
3808
+ "direction": "vertical",
3809
+ "gap": "sm",
3810
+ "children": [
3811
+ {
3812
+ "type": "typography",
3813
+ "variant": "caption",
3814
+ "content": "Headcount"
3815
+ },
3816
+ {
3817
+ "type": "typography",
3818
+ "variant": "h3",
3819
+ "content": "@entity.headcount"
3820
+ }
3821
+ ]
3822
+ }
3823
+ ]
3824
+ }
3825
+ ]
3826
+ }
3827
+ ]
3828
+ }
3829
+ ]
3830
+ ]
3831
+ },
3832
+ {
3833
+ "from": "refreshing",
3834
+ "to": "displaying",
3835
+ "event": "REFRESHED",
3836
+ "effects": [
3837
+ [
3838
+ "fetch",
3839
+ "OrgChart"
3840
+ ],
3841
+ [
3842
+ "render-ui",
3843
+ "main",
3844
+ {
3845
+ "type": "stack",
3846
+ "direction": "vertical",
3847
+ "gap": "lg",
3848
+ "children": [
3849
+ {
3850
+ "type": "stack",
3851
+ "direction": "horizontal",
3852
+ "gap": "md",
3853
+ "justify": "space-between",
3854
+ "children": [
3855
+ {
3856
+ "type": "stack",
3857
+ "direction": "horizontal",
3858
+ "gap": "md",
3859
+ "children": [
3860
+ {
3861
+ "type": "icon",
3862
+ "name": "git-branch",
3863
+ "size": "lg"
3864
+ },
3865
+ {
3866
+ "type": "typography",
3867
+ "content": "Org Chart",
3868
+ "variant": "h2"
3869
+ }
3870
+ ]
3871
+ },
3872
+ {
3873
+ "type": "button",
3874
+ "label": "Refresh",
3875
+ "event": "REFRESH",
3876
+ "variant": "secondary",
3877
+ "icon": "refresh-cw"
3878
+ }
3879
+ ]
3880
+ },
3881
+ {
3882
+ "type": "divider"
3883
+ },
3884
+ {
3885
+ "type": "simple-grid",
3886
+ "columns": 3,
3887
+ "children": [
3888
+ {
3889
+ "type": "card",
3890
+ "children": [
3891
+ {
3892
+ "type": "stack",
3893
+ "direction": "vertical",
3894
+ "gap": "sm",
3895
+ "children": [
3896
+ {
3897
+ "type": "typography",
3898
+ "variant": "caption",
3899
+ "content": "TotalEmployees"
3900
+ },
3901
+ {
3902
+ "type": "typography",
3903
+ "variant": "h3",
3904
+ "content": "@entity.totalEmployees"
3905
+ }
3906
+ ]
3907
+ }
3908
+ ]
3909
+ },
3910
+ {
3911
+ "type": "card",
3912
+ "children": [
3913
+ {
3914
+ "type": "stack",
3915
+ "direction": "vertical",
3916
+ "gap": "sm",
3917
+ "children": [
3918
+ {
3919
+ "type": "typography",
3920
+ "variant": "caption",
3921
+ "content": "Departments"
3922
+ },
3923
+ {
3924
+ "type": "typography",
3925
+ "variant": "h3",
3926
+ "content": "@entity.departments"
3927
+ }
3928
+ ]
3929
+ }
3930
+ ]
3931
+ },
3932
+ {
3933
+ "type": "card",
3934
+ "children": [
3935
+ {
3936
+ "type": "stack",
3937
+ "direction": "vertical",
3938
+ "gap": "sm",
3939
+ "children": [
3940
+ {
3941
+ "type": "typography",
3942
+ "variant": "caption",
3943
+ "content": "OpenPositions"
3944
+ },
3945
+ {
3946
+ "type": "typography",
3947
+ "variant": "h3",
3948
+ "content": "@entity.openPositions"
3949
+ }
3950
+ ]
3951
+ }
3952
+ ]
3953
+ },
3954
+ {
3955
+ "type": "card",
3956
+ "children": [
3957
+ {
3958
+ "type": "stack",
3959
+ "direction": "vertical",
3960
+ "gap": "sm",
3961
+ "children": [
3962
+ {
3963
+ "type": "typography",
3964
+ "variant": "caption",
3965
+ "content": "AvgTenure"
3966
+ },
3967
+ {
3968
+ "type": "typography",
3969
+ "variant": "h3",
3970
+ "content": "@entity.avgTenure"
3971
+ }
3972
+ ]
3973
+ }
3974
+ ]
3975
+ },
3976
+ {
3977
+ "type": "card",
3978
+ "children": [
3979
+ {
3980
+ "type": "stack",
3981
+ "direction": "vertical",
3982
+ "gap": "sm",
3983
+ "children": [
3984
+ {
3985
+ "type": "typography",
3986
+ "variant": "caption",
3987
+ "content": "Headcount"
3988
+ },
3989
+ {
3990
+ "type": "typography",
3991
+ "variant": "h3",
3992
+ "content": "@entity.headcount"
3993
+ }
3994
+ ]
3995
+ }
3996
+ ]
3997
+ }
3998
+ ]
3999
+ }
4000
+ ]
4001
+ }
4002
+ ]
4003
+ ]
4004
+ }
4005
+ ]
4006
+ },
4007
+ "listens": [
4008
+ {
4009
+ "event": "APPROVE_LEAVE",
4010
+ "triggers": "INIT",
4011
+ "scope": "external"
4012
+ }
4013
+ ]
4014
+ }
4015
+ ],
4016
+ "pages": [
4017
+ {
4018
+ "name": "OrgChartPage",
4019
+ "path": "/org-chart",
4020
+ "traits": [
4021
+ {
4022
+ "ref": "OrgChartDisplay"
4023
+ }
4024
+ ]
4025
+ }
4026
+ ]
4027
+ }
4028
+ ],
4029
+ "description": "HR portal organism. Composes molecules via compose: - stdList(Employee): CRUD list of employees - stdWizard(Onboarding): multi-step onboarding wizard - stdList(TimeOff): CRUD list of time-off requests - stdDisplay(OrgChart): read-only org chart dashboard Pages: /employees (initial), /onboarding, /timeoff, /org-chart Connections: ONBOARD (employees->onboarding), APPROVE_LEAVE (timeoff->orgchart)"
4030
+ }