@almadar/std 14.9.0 → 14.10.0

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 (35) hide show
  1. package/behaviors/registry/app/organisms/std-api-gateway.orb +419 -171
  2. package/behaviors/registry/app/organisms/std-booking-system.orb +760 -620
  3. package/behaviors/registry/app/organisms/std-cicd-pipeline.orb +477 -229
  4. package/behaviors/registry/app/organisms/std-cms.orb +433 -298
  5. package/behaviors/registry/app/organisms/std-crm.orb +355 -215
  6. package/behaviors/registry/app/organisms/std-devops-dashboard.orb +504 -369
  7. package/behaviors/registry/app/organisms/std-finance-tracker.orb +271 -189
  8. package/behaviors/registry/app/organisms/std-healthcare.orb +676 -468
  9. package/behaviors/registry/app/organisms/std-helpdesk.orb +246 -166
  10. package/behaviors/registry/app/organisms/std-hr-portal.orb +534 -399
  11. package/behaviors/registry/app/organisms/std-iot-dashboard.orb +420 -340
  12. package/behaviors/registry/app/organisms/std-lms.orb +462 -378
  13. package/behaviors/registry/app/organisms/std-project-manager.orb +282 -200
  14. package/behaviors/registry/app/organisms/std-realtime-chat.orb +317 -235
  15. package/behaviors/registry/app/organisms/std-social-feed.orb +256 -137
  16. package/behaviors/registry/app/organisms/std-trading-dashboard.orb +342 -218
  17. package/behaviors/registry/core/molecules/std-app-layout.orb +90 -21
  18. package/dist/behaviors/registry/app/organisms/std-api-gateway.orb +419 -171
  19. package/dist/behaviors/registry/app/organisms/std-booking-system.orb +760 -620
  20. package/dist/behaviors/registry/app/organisms/std-cicd-pipeline.orb +477 -229
  21. package/dist/behaviors/registry/app/organisms/std-cms.orb +433 -298
  22. package/dist/behaviors/registry/app/organisms/std-crm.orb +355 -215
  23. package/dist/behaviors/registry/app/organisms/std-devops-dashboard.orb +504 -369
  24. package/dist/behaviors/registry/app/organisms/std-finance-tracker.orb +271 -189
  25. package/dist/behaviors/registry/app/organisms/std-healthcare.orb +676 -468
  26. package/dist/behaviors/registry/app/organisms/std-helpdesk.orb +246 -166
  27. package/dist/behaviors/registry/app/organisms/std-hr-portal.orb +534 -399
  28. package/dist/behaviors/registry/app/organisms/std-iot-dashboard.orb +420 -340
  29. package/dist/behaviors/registry/app/organisms/std-lms.orb +462 -378
  30. package/dist/behaviors/registry/app/organisms/std-project-manager.orb +282 -200
  31. package/dist/behaviors/registry/app/organisms/std-realtime-chat.orb +317 -235
  32. package/dist/behaviors/registry/app/organisms/std-social-feed.orb +256 -137
  33. package/dist/behaviors/registry/app/organisms/std-trading-dashboard.orb +342 -218
  34. package/dist/behaviors/registry/core/molecules/std-app-layout.orb +90 -21
  35. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "std-app-layout",
3
- "version": "1.2.0",
4
- "description": "std-app-layout — dashboard-layout chrome (sidebar nav + top bar with search + topBarActions + notifications) wrapping a single contentTrait slot. Use for list-style apps (CMS / helpdesk / CRM): the chrome stays stable while the consumer's content trait renders the data, and the consumer can add domain icons (cart / profile / help) via topBarActions.",
3
+ "version": "1.4.0",
4
+ "description": "std-app-layout — dashboard-layout chrome (sidebar nav + top bar with search + topBarActions + notifications) wrapping a single contentTrait slot. Use for list-style apps (CMS / helpdesk / CRM): the chrome stays stable while the consumer's content trait renders the data, and the consumer can add domain icons (cart / profile / help) via topBarActions. Bind once per orbital — the consumer rebinds linkedEntity via `XAppLayout = AppShell.traits.AppLayout -> XEntity` so multiple orbitals in one file each get their own chrome without colliding on a shared atom entity.",
5
5
  "orbitals": [
6
6
  {
7
7
  "name": "AppLayoutOrbital",
@@ -20,6 +20,7 @@
20
20
  {
21
21
  "name": "AppLayout",
22
22
  "category": "interaction",
23
+ "linkedEntity": "AppLayoutState",
23
24
  "emits": [
24
25
  {
25
26
  "event": "SEARCH",
@@ -40,6 +41,30 @@
40
41
  "type": "string"
41
42
  }
42
43
  ]
44
+ },
45
+ {
46
+ "event": "AppLayoutStateLoaded",
47
+ "scope": "internal",
48
+ "payloadSchema": [
49
+ {
50
+ "name": "data",
51
+ "type": "[AppLayoutState]"
52
+ }
53
+ ]
54
+ },
55
+ {
56
+ "event": "AppLayoutStateLoadFailed",
57
+ "scope": "internal",
58
+ "payloadSchema": [
59
+ {
60
+ "name": "error",
61
+ "type": "string"
62
+ },
63
+ {
64
+ "name": "code",
65
+ "type": "string"
66
+ }
67
+ ]
43
68
  }
44
69
  ],
45
70
  "stateMachine": {
@@ -54,6 +79,30 @@
54
79
  "key": "INIT",
55
80
  "name": "Initialize"
56
81
  },
82
+ {
83
+ "key": "AppLayoutStateLoaded",
84
+ "name": "AppLayoutState loaded",
85
+ "payloadSchema": [
86
+ {
87
+ "name": "data",
88
+ "type": "[AppLayoutState]"
89
+ }
90
+ ]
91
+ },
92
+ {
93
+ "key": "AppLayoutStateLoadFailed",
94
+ "name": "AppLayoutState load failed",
95
+ "payloadSchema": [
96
+ {
97
+ "name": "error",
98
+ "type": "string"
99
+ },
100
+ {
101
+ "name": "code",
102
+ "type": "string"
103
+ }
104
+ ]
105
+ },
57
106
  {
58
107
  "key": "SEARCH",
59
108
  "name": "Search"
@@ -69,32 +118,52 @@
69
118
  "to": "composing",
70
119
  "event": "INIT",
71
120
  "effects": [
121
+ [
122
+ "fetch",
123
+ "AppLayoutState",
124
+ {
125
+ "emit": {
126
+ "failure": "AppLayoutStateLoadFailed",
127
+ "success": "AppLayoutStateLoaded"
128
+ }
129
+ }
130
+ ],
72
131
  [
73
132
  "render-ui",
74
133
  "main",
75
134
  {
135
+ "notificationClickEvent": "@config.notificationClickEvent",
76
136
  "notifications": "@config.notifications",
137
+ "navItems": "@config.navItems",
77
138
  "searchEvent": "@config.searchEvent",
78
- "appName": "@config.appName",
79
139
  "topBarActions": "@config.topBarActions",
80
- "navItems": "@config.navItems",
81
- "type": "dashboard-layout",
82
140
  "children": [
83
141
  {
84
- "type": "stack",
85
- "className": "max-w-5xl mx-auto w-full",
86
- "direction": "vertical",
87
142
  "children": [
88
143
  "@config.contentTrait"
89
144
  ],
90
- "gap": "lg"
145
+ "gap": "lg",
146
+ "type": "stack",
147
+ "direction": "vertical",
148
+ "className": "max-w-5xl mx-auto w-full"
91
149
  }
92
150
  ],
93
- "notificationClickEvent": "@config.notificationClickEvent"
151
+ "type": "dashboard-layout",
152
+ "appName": "@config.appName"
94
153
  }
95
154
  ]
96
155
  ]
97
156
  },
157
+ {
158
+ "from": "composing",
159
+ "to": "composing",
160
+ "event": "AppLayoutStateLoaded"
161
+ },
162
+ {
163
+ "from": "composing",
164
+ "to": "composing",
165
+ "event": "AppLayoutStateLoadFailed"
166
+ },
98
167
  {
99
168
  "from": "composing",
100
169
  "to": "composing",
@@ -108,14 +177,14 @@
108
177
  ]
109
178
  },
110
179
  "config": {
180
+ "searchEvent": {
181
+ "type": "string",
182
+ "default": "SEARCH"
183
+ },
111
184
  "contentTrait": {
112
185
  "type": "trait"
113
186
  },
114
- "appName": {
115
- "type": "string",
116
- "default": "App"
117
- },
118
- "notifications": {
187
+ "navItems": {
119
188
  "type": "[object]",
120
189
  "default": []
121
190
  },
@@ -123,17 +192,17 @@
123
192
  "type": "[object]",
124
193
  "default": []
125
194
  },
126
- "searchEvent": {
195
+ "appName": {
127
196
  "type": "string",
128
- "default": "SEARCH"
197
+ "default": "App"
198
+ },
199
+ "notifications": {
200
+ "type": "[object]",
201
+ "default": []
129
202
  },
130
203
  "notificationClickEvent": {
131
204
  "type": "string",
132
205
  "default": "NOTIFY_CLICK"
133
- },
134
- "navItems": {
135
- "type": "[object]",
136
- "default": []
137
206
  }
138
207
  },
139
208
  "scope": "instance"