@almadar/std 3.2.1 → 3.2.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 (262) hide show
  1. package/behaviors/exports/atoms/std-async.orb +41 -24
  2. package/behaviors/exports/atoms/std-browse.orb +12 -5
  3. package/behaviors/exports/atoms/std-cache-aside.orb +256 -42
  4. package/behaviors/exports/atoms/std-circuit-breaker.orb +577 -97
  5. package/behaviors/exports/atoms/std-collision.orb +278 -206
  6. package/behaviors/exports/atoms/std-combat-log.orb +6 -1
  7. package/behaviors/exports/atoms/std-combat.orb +6 -1
  8. package/behaviors/exports/atoms/std-confirmation.orb +212 -7
  9. package/behaviors/exports/atoms/std-dialogue-box.orb +6 -1
  10. package/behaviors/exports/atoms/std-display.orb +166 -21
  11. package/behaviors/exports/atoms/std-drawer.orb +208 -104
  12. package/behaviors/exports/atoms/std-filter.orb +211 -18
  13. package/behaviors/exports/atoms/std-game-audio.orb +6 -1
  14. package/behaviors/exports/atoms/std-game-canvas2d.orb +6 -1
  15. package/behaviors/exports/atoms/std-game-canvas3d.orb +6 -1
  16. package/behaviors/exports/atoms/std-game-hud.orb +6 -1
  17. package/behaviors/exports/atoms/std-game-menu.orb +6 -1
  18. package/behaviors/exports/atoms/std-game-over-screen.orb +6 -1
  19. package/behaviors/exports/atoms/std-gameflow.orb +100 -5
  20. package/behaviors/exports/atoms/std-input.orb +142 -137
  21. package/behaviors/exports/atoms/std-inventory-panel.orb +6 -1
  22. package/behaviors/exports/atoms/std-isometric-canvas.orb +6 -1
  23. package/behaviors/exports/atoms/std-loading.orb +27 -76
  24. package/behaviors/exports/atoms/std-modal.orb +177 -93
  25. package/behaviors/exports/atoms/std-movement.orb +401 -31
  26. package/behaviors/exports/atoms/std-notification.orb +46 -95
  27. package/behaviors/exports/atoms/std-overworld.orb +44 -16
  28. package/behaviors/exports/atoms/std-pagination.orb +26 -89
  29. package/behaviors/exports/atoms/std-physics2d.orb +6 -1
  30. package/behaviors/exports/atoms/std-platformer-canvas.orb +6 -1
  31. package/behaviors/exports/atoms/std-quest.orb +309 -34
  32. package/behaviors/exports/atoms/std-rate-limiter.orb +410 -157
  33. package/behaviors/exports/atoms/std-score-board.orb +6 -1
  34. package/behaviors/exports/atoms/std-score.orb +211 -11
  35. package/behaviors/exports/atoms/std-search.orb +28 -27
  36. package/behaviors/exports/atoms/std-selection.orb +160 -121
  37. package/behaviors/exports/atoms/std-simulation-canvas.orb +6 -1
  38. package/behaviors/exports/atoms/std-sort.orb +134 -24
  39. package/behaviors/exports/atoms/std-sprite.orb +6 -1
  40. package/behaviors/exports/atoms/std-tabs.orb +25 -15
  41. package/behaviors/exports/atoms/std-timer.orb +483 -91
  42. package/behaviors/exports/atoms/std-undo.orb +211 -81
  43. package/behaviors/exports/atoms/std-wizard.orb +31 -34
  44. package/behaviors/exports/molecules/std-builder-game.orb +6 -1
  45. package/behaviors/exports/molecules/std-cart.orb +6 -1
  46. package/behaviors/exports/molecules/std-classifier-game.orb +6 -1
  47. package/behaviors/exports/molecules/std-debugger-game.orb +6 -1
  48. package/behaviors/exports/molecules/std-detail.orb +12 -5
  49. package/behaviors/exports/molecules/std-event-handler-game.orb +6 -1
  50. package/behaviors/exports/molecules/std-geospatial.orb +28 -9
  51. package/behaviors/exports/molecules/std-inventory.orb +28 -9
  52. package/behaviors/exports/molecules/std-list.orb +392 -5
  53. package/behaviors/exports/molecules/std-messaging.orb +12 -5
  54. package/behaviors/exports/molecules/std-negotiator-game.orb +6 -1
  55. package/behaviors/exports/molecules/std-platformer-game.orb +40 -1
  56. package/behaviors/exports/molecules/std-puzzle-game.orb +26 -1
  57. package/behaviors/exports/molecules/std-sequencer-game.orb +6 -1
  58. package/behaviors/exports/molecules/std-simulator-game.orb +6 -1
  59. package/behaviors/exports/molecules/std-turn-based-battle.orb +40 -1
  60. package/behaviors/exports/organisms/std-api-gateway.orb +1145 -403
  61. package/behaviors/exports/organisms/std-arcade-game.orb +94 -4
  62. package/behaviors/exports/organisms/std-booking-system.orb +2165 -1605
  63. package/behaviors/exports/organisms/std-cicd-pipeline.orb +581 -47
  64. package/behaviors/exports/organisms/std-cms.orb +1713 -947
  65. package/behaviors/exports/organisms/std-coding-academy.orb +180 -380
  66. package/behaviors/exports/organisms/std-crm.orb +1669 -1153
  67. package/behaviors/exports/organisms/std-devops-dashboard.orb +1430 -378
  68. package/behaviors/exports/organisms/std-ecommerce.orb +2361 -1601
  69. package/behaviors/exports/organisms/std-finance-tracker.orb +622 -438
  70. package/behaviors/exports/organisms/std-healthcare.orb +1687 -1125
  71. package/behaviors/exports/organisms/std-helpdesk.orb +626 -407
  72. package/behaviors/exports/organisms/std-hr-portal.orb +1309 -714
  73. package/behaviors/exports/organisms/std-iot-dashboard.orb +1247 -335
  74. package/behaviors/exports/organisms/std-lms.orb +658 -362
  75. package/behaviors/exports/organisms/std-platformer-app.orb +56 -8
  76. package/behaviors/exports/organisms/std-project-manager.orb +1697 -1183
  77. package/behaviors/exports/organisms/std-puzzle-app.orb +20 -0
  78. package/behaviors/exports/organisms/std-realtime-chat.orb +552 -28
  79. package/behaviors/exports/organisms/std-rpg-game.orb +397 -56
  80. package/behaviors/exports/organisms/std-social-feed.orb +12 -8
  81. package/behaviors/exports/organisms/std-stem-lab.orb +175 -290
  82. package/behaviors/exports/organisms/std-strategy-game.orb +252 -395
  83. package/behaviors/exports/organisms/std-trading-dashboard.orb +718 -524
  84. package/behaviors/exports/validation-report.json +252 -252
  85. package/behaviors/exports/verify-results.json +13 -0
  86. package/dist/behaviors/exports/atoms/std-async.orb +41 -24
  87. package/dist/behaviors/exports/atoms/std-browse.orb +12 -5
  88. package/dist/behaviors/exports/atoms/std-cache-aside.orb +256 -42
  89. package/dist/behaviors/exports/atoms/std-circuit-breaker.orb +577 -97
  90. package/dist/behaviors/exports/atoms/std-collision.orb +278 -206
  91. package/dist/behaviors/exports/atoms/std-combat-log.orb +6 -1
  92. package/dist/behaviors/exports/atoms/std-combat.orb +6 -1
  93. package/dist/behaviors/exports/atoms/std-confirmation.orb +212 -7
  94. package/dist/behaviors/exports/atoms/std-dialogue-box.orb +6 -1
  95. package/dist/behaviors/exports/atoms/std-display.orb +166 -21
  96. package/dist/behaviors/exports/atoms/std-drawer.orb +208 -104
  97. package/dist/behaviors/exports/atoms/std-filter.orb +211 -18
  98. package/dist/behaviors/exports/atoms/std-game-audio.orb +6 -1
  99. package/dist/behaviors/exports/atoms/std-game-canvas2d.orb +6 -1
  100. package/dist/behaviors/exports/atoms/std-game-canvas3d.orb +6 -1
  101. package/dist/behaviors/exports/atoms/std-game-hud.orb +6 -1
  102. package/dist/behaviors/exports/atoms/std-game-menu.orb +6 -1
  103. package/dist/behaviors/exports/atoms/std-game-over-screen.orb +6 -1
  104. package/dist/behaviors/exports/atoms/std-gameflow.orb +100 -5
  105. package/dist/behaviors/exports/atoms/std-input.orb +142 -137
  106. package/dist/behaviors/exports/atoms/std-inventory-panel.orb +6 -1
  107. package/dist/behaviors/exports/atoms/std-isometric-canvas.orb +6 -1
  108. package/dist/behaviors/exports/atoms/std-loading.orb +27 -76
  109. package/dist/behaviors/exports/atoms/std-modal.orb +177 -93
  110. package/dist/behaviors/exports/atoms/std-movement.orb +401 -31
  111. package/dist/behaviors/exports/atoms/std-notification.orb +46 -95
  112. package/dist/behaviors/exports/atoms/std-overworld.orb +44 -16
  113. package/dist/behaviors/exports/atoms/std-pagination.orb +26 -89
  114. package/dist/behaviors/exports/atoms/std-physics2d.orb +6 -1
  115. package/dist/behaviors/exports/atoms/std-platformer-canvas.orb +6 -1
  116. package/dist/behaviors/exports/atoms/std-quest.orb +309 -34
  117. package/dist/behaviors/exports/atoms/std-rate-limiter.orb +410 -157
  118. package/dist/behaviors/exports/atoms/std-score-board.orb +6 -1
  119. package/dist/behaviors/exports/atoms/std-score.orb +211 -11
  120. package/dist/behaviors/exports/atoms/std-search.orb +28 -27
  121. package/dist/behaviors/exports/atoms/std-selection.orb +160 -121
  122. package/dist/behaviors/exports/atoms/std-simulation-canvas.orb +6 -1
  123. package/dist/behaviors/exports/atoms/std-sort.orb +134 -24
  124. package/dist/behaviors/exports/atoms/std-sprite.orb +6 -1
  125. package/dist/behaviors/exports/atoms/std-tabs.orb +25 -15
  126. package/dist/behaviors/exports/atoms/std-timer.orb +483 -91
  127. package/dist/behaviors/exports/atoms/std-undo.orb +211 -81
  128. package/dist/behaviors/exports/atoms/std-wizard.orb +31 -34
  129. package/dist/behaviors/exports/molecules/std-builder-game.orb +6 -1
  130. package/dist/behaviors/exports/molecules/std-cart.orb +6 -1
  131. package/dist/behaviors/exports/molecules/std-classifier-game.orb +6 -1
  132. package/dist/behaviors/exports/molecules/std-debugger-game.orb +6 -1
  133. package/dist/behaviors/exports/molecules/std-detail.orb +12 -5
  134. package/dist/behaviors/exports/molecules/std-event-handler-game.orb +6 -1
  135. package/dist/behaviors/exports/molecules/std-geospatial.orb +28 -9
  136. package/dist/behaviors/exports/molecules/std-inventory.orb +28 -9
  137. package/dist/behaviors/exports/molecules/std-list.orb +392 -5
  138. package/dist/behaviors/exports/molecules/std-messaging.orb +12 -5
  139. package/dist/behaviors/exports/molecules/std-negotiator-game.orb +6 -1
  140. package/dist/behaviors/exports/molecules/std-platformer-game.orb +40 -1
  141. package/dist/behaviors/exports/molecules/std-puzzle-game.orb +26 -1
  142. package/dist/behaviors/exports/molecules/std-sequencer-game.orb +6 -1
  143. package/dist/behaviors/exports/molecules/std-simulator-game.orb +6 -1
  144. package/dist/behaviors/exports/molecules/std-turn-based-battle.orb +40 -1
  145. package/dist/behaviors/exports/organisms/std-api-gateway.orb +1145 -403
  146. package/dist/behaviors/exports/organisms/std-arcade-game.orb +94 -4
  147. package/dist/behaviors/exports/organisms/std-booking-system.orb +2165 -1605
  148. package/dist/behaviors/exports/organisms/std-cicd-pipeline.orb +581 -47
  149. package/dist/behaviors/exports/organisms/std-cms.orb +1713 -947
  150. package/dist/behaviors/exports/organisms/std-coding-academy.orb +180 -380
  151. package/dist/behaviors/exports/organisms/std-crm.orb +1669 -1153
  152. package/dist/behaviors/exports/organisms/std-devops-dashboard.orb +1430 -378
  153. package/dist/behaviors/exports/organisms/std-ecommerce.orb +2361 -1601
  154. package/dist/behaviors/exports/organisms/std-finance-tracker.orb +622 -438
  155. package/dist/behaviors/exports/organisms/std-healthcare.orb +1687 -1125
  156. package/dist/behaviors/exports/organisms/std-helpdesk.orb +626 -407
  157. package/dist/behaviors/exports/organisms/std-hr-portal.orb +1309 -714
  158. package/dist/behaviors/exports/organisms/std-iot-dashboard.orb +1247 -335
  159. package/dist/behaviors/exports/organisms/std-lms.orb +658 -362
  160. package/dist/behaviors/exports/organisms/std-platformer-app.orb +56 -8
  161. package/dist/behaviors/exports/organisms/std-project-manager.orb +1697 -1183
  162. package/dist/behaviors/exports/organisms/std-puzzle-app.orb +20 -0
  163. package/dist/behaviors/exports/organisms/std-realtime-chat.orb +552 -28
  164. package/dist/behaviors/exports/organisms/std-rpg-game.orb +397 -56
  165. package/dist/behaviors/exports/organisms/std-social-feed.orb +12 -8
  166. package/dist/behaviors/exports/organisms/std-stem-lab.orb +175 -290
  167. package/dist/behaviors/exports/organisms/std-strategy-game.orb +252 -395
  168. package/dist/behaviors/exports/organisms/std-trading-dashboard.orb +718 -524
  169. package/dist/behaviors/exports/validation-report.json +252 -252
  170. package/dist/behaviors/exports/verify-results.json +13 -0
  171. package/dist/behaviors/functions/index.js +715 -593
  172. package/dist/behaviors/functions/index.js.map +1 -1
  173. package/dist/behaviors/index.js +715 -593
  174. package/dist/behaviors/index.js.map +1 -1
  175. package/dist/exports/atoms/std-async.orb +41 -24
  176. package/dist/exports/atoms/std-browse.orb +12 -5
  177. package/dist/exports/atoms/std-cache-aside.orb +256 -42
  178. package/dist/exports/atoms/std-circuit-breaker.orb +577 -97
  179. package/dist/exports/atoms/std-collision.orb +278 -206
  180. package/dist/exports/atoms/std-combat-log.orb +6 -1
  181. package/dist/exports/atoms/std-combat.orb +6 -1
  182. package/dist/exports/atoms/std-confirmation.orb +212 -7
  183. package/dist/exports/atoms/std-dialogue-box.orb +6 -1
  184. package/dist/exports/atoms/std-display.orb +166 -21
  185. package/dist/exports/atoms/std-drawer.orb +208 -104
  186. package/dist/exports/atoms/std-filter.orb +211 -18
  187. package/dist/exports/atoms/std-game-audio.orb +6 -1
  188. package/dist/exports/atoms/std-game-canvas2d.orb +6 -1
  189. package/dist/exports/atoms/std-game-canvas3d.orb +6 -1
  190. package/dist/exports/atoms/std-game-hud.orb +6 -1
  191. package/dist/exports/atoms/std-game-menu.orb +6 -1
  192. package/dist/exports/atoms/std-game-over-screen.orb +6 -1
  193. package/dist/exports/atoms/std-gameflow.orb +100 -5
  194. package/dist/exports/atoms/std-input.orb +142 -137
  195. package/dist/exports/atoms/std-inventory-panel.orb +6 -1
  196. package/dist/exports/atoms/std-isometric-canvas.orb +6 -1
  197. package/dist/exports/atoms/std-loading.orb +27 -76
  198. package/dist/exports/atoms/std-modal.orb +177 -93
  199. package/dist/exports/atoms/std-movement.orb +401 -31
  200. package/dist/exports/atoms/std-notification.orb +46 -95
  201. package/dist/exports/atoms/std-overworld.orb +44 -16
  202. package/dist/exports/atoms/std-pagination.orb +26 -89
  203. package/dist/exports/atoms/std-physics2d.orb +6 -1
  204. package/dist/exports/atoms/std-platformer-canvas.orb +6 -1
  205. package/dist/exports/atoms/std-quest.orb +309 -34
  206. package/dist/exports/atoms/std-rate-limiter.orb +410 -157
  207. package/dist/exports/atoms/std-score-board.orb +6 -1
  208. package/dist/exports/atoms/std-score.orb +211 -11
  209. package/dist/exports/atoms/std-search.orb +28 -27
  210. package/dist/exports/atoms/std-selection.orb +160 -121
  211. package/dist/exports/atoms/std-simulation-canvas.orb +6 -1
  212. package/dist/exports/atoms/std-sort.orb +134 -24
  213. package/dist/exports/atoms/std-sprite.orb +6 -1
  214. package/dist/exports/atoms/std-tabs.orb +25 -15
  215. package/dist/exports/atoms/std-timer.orb +483 -91
  216. package/dist/exports/atoms/std-undo.orb +211 -81
  217. package/dist/exports/atoms/std-wizard.orb +31 -34
  218. package/dist/exports/molecules/std-builder-game.orb +6 -1
  219. package/dist/exports/molecules/std-cart.orb +6 -1
  220. package/dist/exports/molecules/std-classifier-game.orb +6 -1
  221. package/dist/exports/molecules/std-debugger-game.orb +6 -1
  222. package/dist/exports/molecules/std-detail.orb +12 -5
  223. package/dist/exports/molecules/std-event-handler-game.orb +6 -1
  224. package/dist/exports/molecules/std-geospatial.orb +28 -9
  225. package/dist/exports/molecules/std-inventory.orb +28 -9
  226. package/dist/exports/molecules/std-list.orb +392 -5
  227. package/dist/exports/molecules/std-messaging.orb +12 -5
  228. package/dist/exports/molecules/std-negotiator-game.orb +6 -1
  229. package/dist/exports/molecules/std-platformer-game.orb +40 -1
  230. package/dist/exports/molecules/std-puzzle-game.orb +26 -1
  231. package/dist/exports/molecules/std-sequencer-game.orb +6 -1
  232. package/dist/exports/molecules/std-simulator-game.orb +6 -1
  233. package/dist/exports/molecules/std-turn-based-battle.orb +40 -1
  234. package/dist/exports/organisms/std-api-gateway.orb +1145 -403
  235. package/dist/exports/organisms/std-arcade-game.orb +94 -4
  236. package/dist/exports/organisms/std-booking-system.orb +2165 -1605
  237. package/dist/exports/organisms/std-cicd-pipeline.orb +581 -47
  238. package/dist/exports/organisms/std-cms.orb +1713 -947
  239. package/dist/exports/organisms/std-coding-academy.orb +180 -380
  240. package/dist/exports/organisms/std-crm.orb +1669 -1153
  241. package/dist/exports/organisms/std-devops-dashboard.orb +1430 -378
  242. package/dist/exports/organisms/std-ecommerce.orb +2361 -1601
  243. package/dist/exports/organisms/std-finance-tracker.orb +622 -438
  244. package/dist/exports/organisms/std-healthcare.orb +1687 -1125
  245. package/dist/exports/organisms/std-helpdesk.orb +626 -407
  246. package/dist/exports/organisms/std-hr-portal.orb +1309 -714
  247. package/dist/exports/organisms/std-iot-dashboard.orb +1247 -335
  248. package/dist/exports/organisms/std-lms.orb +658 -362
  249. package/dist/exports/organisms/std-platformer-app.orb +56 -8
  250. package/dist/exports/organisms/std-project-manager.orb +1697 -1183
  251. package/dist/exports/organisms/std-puzzle-app.orb +20 -0
  252. package/dist/exports/organisms/std-realtime-chat.orb +552 -28
  253. package/dist/exports/organisms/std-rpg-game.orb +397 -56
  254. package/dist/exports/organisms/std-social-feed.orb +12 -8
  255. package/dist/exports/organisms/std-stem-lab.orb +175 -290
  256. package/dist/exports/organisms/std-strategy-game.orb +252 -395
  257. package/dist/exports/organisms/std-trading-dashboard.orb +718 -524
  258. package/dist/exports/validation-report.json +252 -252
  259. package/dist/exports/verify-results.json +13 -0
  260. package/dist/index.js +715 -593
  261. package/dist/index.js.map +1 -1
  262. package/package.json +1 -1
@@ -22,11 +22,26 @@
22
22
  {
23
23
  "name": "status",
24
24
  "type": "string",
25
- "default": "active"
25
+ "default": "active",
26
+ "values": [
27
+ "active",
28
+ "inactive",
29
+ "pending"
30
+ ]
26
31
  },
27
32
  {
28
33
  "name": "createdAt",
29
34
  "type": "string"
35
+ },
36
+ {
37
+ "name": "hitCount",
38
+ "type": "number",
39
+ "default": 0
40
+ },
41
+ {
42
+ "name": "cacheAge",
43
+ "type": "number",
44
+ "default": 0
30
45
  }
31
46
  ]
32
47
  },
@@ -105,25 +120,39 @@
105
120
  "type": "stack",
106
121
  "direction": "horizontal",
107
122
  "gap": "md",
123
+ "justify": "space-between",
108
124
  "children": [
109
125
  {
110
- "type": "icon",
111
- "name": "database",
112
- "size": "lg"
126
+ "type": "stack",
127
+ "direction": "horizontal",
128
+ "gap": "md",
129
+ "children": [
130
+ {
131
+ "type": "icon",
132
+ "name": "database",
133
+ "size": "lg"
134
+ },
135
+ {
136
+ "type": "typography",
137
+ "content": "CacheEntrys Cache",
138
+ "variant": "h2"
139
+ }
140
+ ]
113
141
  },
114
142
  {
115
- "type": "typography",
116
- "content": "CacheEntrys Cache",
117
- "variant": "h2"
143
+ "type": "button",
144
+ "label": "Fetch",
145
+ "event": "FETCH",
146
+ "variant": "primary",
147
+ "icon": "download"
118
148
  }
119
149
  ]
120
150
  },
121
151
  {
122
- "type": "button",
123
- "label": "Fetch",
124
- "event": "FETCH",
125
- "variant": "primary",
126
- "icon": "download"
152
+ "type": "status-dot",
153
+ "status": "inactive",
154
+ "pulse": false,
155
+ "label": "Empty"
127
156
  }
128
157
  ]
129
158
  },
@@ -185,9 +214,12 @@
185
214
  "type": "stack",
186
215
  "direction": "horizontal",
187
216
  "gap": "sm",
217
+ "align": "center",
188
218
  "children": [
189
219
  {
190
- "type": "badge",
220
+ "type": "status-dot",
221
+ "status": "success",
222
+ "pulse": false,
191
223
  "label": "Cached"
192
224
  },
193
225
  {
@@ -204,13 +236,45 @@
204
236
  {
205
237
  "type": "divider"
206
238
  },
239
+ {
240
+ "type": "simple-grid",
241
+ "columns": 2,
242
+ "children": [
243
+ {
244
+ "type": "stat-display",
245
+ "label": "Hit Count",
246
+ "value": [
247
+ "object/get",
248
+ [
249
+ "array/first",
250
+ "@entity"
251
+ ],
252
+ "hitCount"
253
+ ]
254
+ },
255
+ {
256
+ "type": "stat-display",
257
+ "label": "Cache Age",
258
+ "value": [
259
+ "object/get",
260
+ [
261
+ "array/first",
262
+ "@entity"
263
+ ],
264
+ "cacheAge"
265
+ ]
266
+ }
267
+ ]
268
+ },
207
269
  {
208
270
  "type": "data-grid",
209
271
  "entity": "CacheEntry",
210
272
  "emptyIcon": "inbox",
211
273
  "emptyTitle": "Cache is empty",
212
274
  "emptyDescription": "Fetch data to populate the cache.",
213
- "children": [
275
+ "renderItem": [
276
+ "fn",
277
+ "item",
214
278
  {
215
279
  "type": "stack",
216
280
  "direction": "vertical",
@@ -236,20 +300,20 @@
236
300
  {
237
301
  "type": "typography",
238
302
  "variant": "h4",
239
- "content": "@entity.name"
303
+ "content": "@item.name"
240
304
  }
241
305
  ]
242
306
  },
243
307
  {
244
308
  "type": "badge",
245
- "label": "@entity.description"
309
+ "label": "@item.description"
246
310
  }
247
311
  ]
248
312
  },
249
313
  {
250
314
  "type": "typography",
251
315
  "variant": "caption",
252
- "content": "@entity.status"
316
+ "content": "@item.status"
253
317
  }
254
318
  ]
255
319
  }
@@ -304,9 +368,12 @@
304
368
  "type": "stack",
305
369
  "direction": "horizontal",
306
370
  "gap": "sm",
371
+ "align": "center",
307
372
  "children": [
308
373
  {
309
- "type": "badge",
374
+ "type": "status-dot",
375
+ "status": "success",
376
+ "pulse": false,
310
377
  "label": "Cached"
311
378
  },
312
379
  {
@@ -323,13 +390,45 @@
323
390
  {
324
391
  "type": "divider"
325
392
  },
393
+ {
394
+ "type": "simple-grid",
395
+ "columns": 2,
396
+ "children": [
397
+ {
398
+ "type": "stat-display",
399
+ "label": "Hit Count",
400
+ "value": [
401
+ "object/get",
402
+ [
403
+ "array/first",
404
+ "@entity"
405
+ ],
406
+ "hitCount"
407
+ ]
408
+ },
409
+ {
410
+ "type": "stat-display",
411
+ "label": "Cache Age",
412
+ "value": [
413
+ "object/get",
414
+ [
415
+ "array/first",
416
+ "@entity"
417
+ ],
418
+ "cacheAge"
419
+ ]
420
+ }
421
+ ]
422
+ },
326
423
  {
327
424
  "type": "data-grid",
328
425
  "entity": "CacheEntry",
329
426
  "emptyIcon": "inbox",
330
427
  "emptyTitle": "Cache is empty",
331
428
  "emptyDescription": "Fetch data to populate the cache.",
332
- "children": [
429
+ "renderItem": [
430
+ "fn",
431
+ "item",
333
432
  {
334
433
  "type": "stack",
335
434
  "direction": "vertical",
@@ -355,20 +454,20 @@
355
454
  {
356
455
  "type": "typography",
357
456
  "variant": "h4",
358
- "content": "@entity.name"
457
+ "content": "@item.name"
359
458
  }
360
459
  ]
361
460
  },
362
461
  {
363
462
  "type": "badge",
364
- "label": "@entity.description"
463
+ "label": "@item.description"
365
464
  }
366
465
  ]
367
466
  },
368
467
  {
369
468
  "type": "typography",
370
469
  "variant": "caption",
371
- "content": "@entity.status"
470
+ "content": "@item.status"
372
471
  }
373
472
  ]
374
473
  }
@@ -429,9 +528,12 @@
429
528
  "type": "stack",
430
529
  "direction": "horizontal",
431
530
  "gap": "sm",
531
+ "align": "center",
432
532
  "children": [
433
533
  {
434
- "type": "badge",
534
+ "type": "status-dot",
535
+ "status": "success",
536
+ "pulse": false,
435
537
  "label": "Cached"
436
538
  },
437
539
  {
@@ -448,13 +550,45 @@
448
550
  {
449
551
  "type": "divider"
450
552
  },
553
+ {
554
+ "type": "simple-grid",
555
+ "columns": 2,
556
+ "children": [
557
+ {
558
+ "type": "stat-display",
559
+ "label": "Hit Count",
560
+ "value": [
561
+ "object/get",
562
+ [
563
+ "array/first",
564
+ "@entity"
565
+ ],
566
+ "hitCount"
567
+ ]
568
+ },
569
+ {
570
+ "type": "stat-display",
571
+ "label": "Cache Age",
572
+ "value": [
573
+ "object/get",
574
+ [
575
+ "array/first",
576
+ "@entity"
577
+ ],
578
+ "cacheAge"
579
+ ]
580
+ }
581
+ ]
582
+ },
451
583
  {
452
584
  "type": "data-grid",
453
585
  "entity": "CacheEntry",
454
586
  "emptyIcon": "inbox",
455
587
  "emptyTitle": "Cache is empty",
456
588
  "emptyDescription": "Fetch data to populate the cache.",
457
- "children": [
589
+ "renderItem": [
590
+ "fn",
591
+ "item",
458
592
  {
459
593
  "type": "stack",
460
594
  "direction": "vertical",
@@ -480,20 +614,20 @@
480
614
  {
481
615
  "type": "typography",
482
616
  "variant": "h4",
483
- "content": "@entity.name"
617
+ "content": "@item.name"
484
618
  }
485
619
  ]
486
620
  },
487
621
  {
488
622
  "type": "badge",
489
- "label": "@entity.description"
623
+ "label": "@item.description"
490
624
  }
491
625
  ]
492
626
  },
493
627
  {
494
628
  "type": "typography",
495
629
  "variant": "caption",
496
- "content": "@entity.status"
630
+ "content": "@item.status"
497
631
  }
498
632
  ]
499
633
  }
@@ -548,9 +682,12 @@
548
682
  "type": "stack",
549
683
  "direction": "horizontal",
550
684
  "gap": "sm",
685
+ "align": "center",
551
686
  "children": [
552
687
  {
553
- "type": "badge",
688
+ "type": "status-dot",
689
+ "status": "warning",
690
+ "pulse": true,
554
691
  "label": "Stale"
555
692
  },
556
693
  {
@@ -567,13 +704,20 @@
567
704
  {
568
705
  "type": "divider"
569
706
  },
707
+ {
708
+ "type": "alert",
709
+ "variant": "warning",
710
+ "message": "Cache data is stale. Refresh to get the latest data."
711
+ },
570
712
  {
571
713
  "type": "data-grid",
572
714
  "entity": "CacheEntry",
573
715
  "emptyIcon": "inbox",
574
716
  "emptyTitle": "Cache is empty",
575
717
  "emptyDescription": "Fetch data to populate the cache.",
576
- "children": [
718
+ "renderItem": [
719
+ "fn",
720
+ "item",
577
721
  {
578
722
  "type": "stack",
579
723
  "direction": "vertical",
@@ -599,20 +743,20 @@
599
743
  {
600
744
  "type": "typography",
601
745
  "variant": "h4",
602
- "content": "@entity.name"
746
+ "content": "@item.name"
603
747
  }
604
748
  ]
605
749
  },
606
750
  {
607
751
  "type": "badge",
608
- "label": "@entity.description"
752
+ "label": "@item.description"
609
753
  }
610
754
  ]
611
755
  },
612
756
  {
613
757
  "type": "typography",
614
758
  "variant": "caption",
615
- "content": "@entity.status"
759
+ "content": "@item.status"
616
760
  }
617
761
  ]
618
762
  }
@@ -667,9 +811,12 @@
667
811
  "type": "stack",
668
812
  "direction": "horizontal",
669
813
  "gap": "sm",
814
+ "align": "center",
670
815
  "children": [
671
816
  {
672
- "type": "badge",
817
+ "type": "status-dot",
818
+ "status": "success",
819
+ "pulse": false,
673
820
  "label": "Cached"
674
821
  },
675
822
  {
@@ -686,13 +833,45 @@
686
833
  {
687
834
  "type": "divider"
688
835
  },
836
+ {
837
+ "type": "simple-grid",
838
+ "columns": 2,
839
+ "children": [
840
+ {
841
+ "type": "stat-display",
842
+ "label": "Hit Count",
843
+ "value": [
844
+ "object/get",
845
+ [
846
+ "array/first",
847
+ "@entity"
848
+ ],
849
+ "hitCount"
850
+ ]
851
+ },
852
+ {
853
+ "type": "stat-display",
854
+ "label": "Cache Age",
855
+ "value": [
856
+ "object/get",
857
+ [
858
+ "array/first",
859
+ "@entity"
860
+ ],
861
+ "cacheAge"
862
+ ]
863
+ }
864
+ ]
865
+ },
689
866
  {
690
867
  "type": "data-grid",
691
868
  "entity": "CacheEntry",
692
869
  "emptyIcon": "inbox",
693
870
  "emptyTitle": "Cache is empty",
694
871
  "emptyDescription": "Fetch data to populate the cache.",
695
- "children": [
872
+ "renderItem": [
873
+ "fn",
874
+ "item",
696
875
  {
697
876
  "type": "stack",
698
877
  "direction": "vertical",
@@ -718,20 +897,20 @@
718
897
  {
719
898
  "type": "typography",
720
899
  "variant": "h4",
721
- "content": "@entity.name"
900
+ "content": "@item.name"
722
901
  }
723
902
  ]
724
903
  },
725
904
  {
726
905
  "type": "badge",
727
- "label": "@entity.description"
906
+ "label": "@item.description"
728
907
  }
729
908
  ]
730
909
  },
731
910
  {
732
911
  "type": "typography",
733
912
  "variant": "caption",
734
- "content": "@entity.status"
913
+ "content": "@item.status"
735
914
  }
736
915
  ]
737
916
  }
@@ -786,9 +965,12 @@
786
965
  "type": "stack",
787
966
  "direction": "horizontal",
788
967
  "gap": "sm",
968
+ "align": "center",
789
969
  "children": [
790
970
  {
791
- "type": "badge",
971
+ "type": "status-dot",
972
+ "status": "success",
973
+ "pulse": false,
792
974
  "label": "Cached"
793
975
  },
794
976
  {
@@ -805,13 +987,45 @@
805
987
  {
806
988
  "type": "divider"
807
989
  },
990
+ {
991
+ "type": "simple-grid",
992
+ "columns": 2,
993
+ "children": [
994
+ {
995
+ "type": "stat-display",
996
+ "label": "Hit Count",
997
+ "value": [
998
+ "object/get",
999
+ [
1000
+ "array/first",
1001
+ "@entity"
1002
+ ],
1003
+ "hitCount"
1004
+ ]
1005
+ },
1006
+ {
1007
+ "type": "stat-display",
1008
+ "label": "Cache Age",
1009
+ "value": [
1010
+ "object/get",
1011
+ [
1012
+ "array/first",
1013
+ "@entity"
1014
+ ],
1015
+ "cacheAge"
1016
+ ]
1017
+ }
1018
+ ]
1019
+ },
808
1020
  {
809
1021
  "type": "data-grid",
810
1022
  "entity": "CacheEntry",
811
1023
  "emptyIcon": "inbox",
812
1024
  "emptyTitle": "Cache is empty",
813
1025
  "emptyDescription": "Fetch data to populate the cache.",
814
- "children": [
1026
+ "renderItem": [
1027
+ "fn",
1028
+ "item",
815
1029
  {
816
1030
  "type": "stack",
817
1031
  "direction": "vertical",
@@ -837,20 +1051,20 @@
837
1051
  {
838
1052
  "type": "typography",
839
1053
  "variant": "h4",
840
- "content": "@entity.name"
1054
+ "content": "@item.name"
841
1055
  }
842
1056
  ]
843
1057
  },
844
1058
  {
845
1059
  "type": "badge",
846
- "label": "@entity.description"
1060
+ "label": "@item.description"
847
1061
  }
848
1062
  ]
849
1063
  },
850
1064
  {
851
1065
  "type": "typography",
852
1066
  "variant": "caption",
853
- "content": "@entity.status"
1067
+ "content": "@item.status"
854
1068
  }
855
1069
  ]
856
1070
  }