@almadar/std 16.234.0 → 16.236.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 (245) hide show
  1. package/behaviors/behaviors-registry.json +4402 -1898
  2. package/behaviors/lolo/infra/atoms/std-approval-gate.lolo +25 -41
  3. package/behaviors/lolo/infra/atoms/std-audit-capture.lolo +0 -5
  4. package/behaviors/lolo/infra/atoms/std-cache-aside.lolo +0 -24
  5. package/behaviors/lolo/infra/atoms/std-circuit-breaker.lolo +1 -17
  6. package/behaviors/lolo/infra/atoms/std-data-erasure.lolo +17 -24
  7. package/behaviors/lolo/infra/atoms/std-data-import.lolo +8 -11
  8. package/behaviors/lolo/infra/atoms/std-game-clock.lolo +2 -0
  9. package/behaviors/lolo/infra/atoms/std-knowledge-loop.lolo +0 -5
  10. package/behaviors/lolo/infra/atoms/std-lifecycle.lolo +3 -1
  11. package/behaviors/lolo/infra/atoms/std-mod-queue.lolo +40 -18
  12. package/behaviors/lolo/infra/atoms/std-notification-preferences.lolo +20 -11
  13. package/behaviors/lolo/infra/atoms/std-notify-on-event.lolo +0 -5
  14. package/behaviors/lolo/infra/atoms/std-permission-matrix.lolo +23 -11
  15. package/behaviors/lolo/infra/atoms/std-rate-limiter.lolo +84 -22
  16. package/behaviors/lolo/infra/atoms/std-status-lifecycle.lolo +1 -6
  17. package/behaviors/lolo/ml/atoms/std-graph-builder.lolo +3 -1
  18. package/behaviors/lolo/ml/atoms/std-ml-classify.lolo +0 -4
  19. package/behaviors/lolo/ml/atoms/std-ml-similarity.lolo +0 -4
  20. package/behaviors/lolo/ui/avl/atoms/ui-avl-state-machine.lolo +12 -0
  21. package/behaviors/lolo/ui/core/atoms/std-app-layout.lolo +55 -9
  22. package/behaviors/lolo/ui/core/atoms/std-app-search.lolo +6 -2
  23. package/behaviors/lolo/ui/core/atoms/std-billable-hour.lolo +19 -14
  24. package/behaviors/lolo/ui/core/atoms/std-board.lolo +77 -27
  25. package/behaviors/lolo/ui/core/atoms/std-browse.lolo +44 -28
  26. package/behaviors/lolo/ui/core/atoms/std-calendar.lolo +7 -3
  27. package/behaviors/lolo/ui/core/atoms/std-esign-flow.lolo +25 -13
  28. package/behaviors/lolo/ui/core/atoms/std-esign-request.lolo +5 -0
  29. package/behaviors/lolo/ui/core/atoms/std-event-log.lolo +0 -5
  30. package/behaviors/lolo/ui/core/atoms/std-export.lolo +0 -10
  31. package/behaviors/lolo/ui/core/atoms/std-file-store.lolo +7 -3
  32. package/behaviors/lolo/ui/core/atoms/std-form-advanced.lolo +1 -6
  33. package/behaviors/lolo/ui/core/atoms/std-geosearch.lolo +1 -0
  34. package/behaviors/lolo/ui/core/atoms/std-graphs.lolo +20 -4
  35. package/behaviors/lolo/ui/core/atoms/std-import.lolo +0 -5
  36. package/behaviors/lolo/ui/core/atoms/std-list.lolo +46 -32
  37. package/behaviors/lolo/ui/core/atoms/std-modal-editor.lolo +2 -2
  38. package/behaviors/lolo/ui/core/atoms/std-rating-review.lolo +12 -13
  39. package/behaviors/lolo/ui/core/atoms/std-record-detail.lolo +16 -12
  40. package/behaviors/lolo/ui/core/atoms/std-recurrence.lolo +10 -1
  41. package/behaviors/lolo/ui/core/atoms/std-role-gate.lolo +39 -0
  42. package/behaviors/lolo/ui/core/atoms/std-saved-search.lolo +78 -16
  43. package/behaviors/lolo/ui/core/atoms/std-selection.lolo +15 -10
  44. package/behaviors/lolo/ui/core/atoms/std-stats.lolo +5 -5
  45. package/behaviors/lolo/ui/core/atoms/std-tag-taxonomy.lolo +3 -0
  46. package/behaviors/lolo/ui/core/atoms/std-thread.lolo +41 -73
  47. package/behaviors/lolo/ui/core/atoms/std-version-history.lolo +20 -11
  48. package/behaviors/lolo/ui/core/atoms/std-vote.lolo +0 -4
  49. package/behaviors/lolo/ui/core/atoms/std-wizard.lolo +3 -3
  50. package/behaviors/lolo/ui/core/atoms/ui-presence.lolo +21 -0
  51. package/behaviors/lolo/ui/core/molecules/ui-breadcrumb.lolo +6 -1
  52. package/behaviors/lolo/ui/core/molecules/ui-chart.lolo +11 -1
  53. package/behaviors/lolo/ui/core/molecules/ui-code-block.lolo +13 -8
  54. package/behaviors/lolo/ui/core/molecules/ui-command-palette.lolo +7 -2
  55. package/behaviors/lolo/ui/core/molecules/ui-commit-row.lolo +2 -2
  56. package/behaviors/lolo/ui/core/molecules/ui-confirm-dialog.lolo +8 -0
  57. package/behaviors/lolo/ui/core/molecules/ui-data-grid.lolo +41 -3
  58. package/behaviors/lolo/ui/core/molecules/ui-data-list.lolo +41 -3
  59. package/behaviors/lolo/ui/core/molecules/ui-document-details.lolo +30 -9
  60. package/behaviors/lolo/ui/core/molecules/ui-document-panel.lolo +8 -3
  61. package/behaviors/lolo/ui/core/molecules/ui-document-viewer.lolo +6 -1
  62. package/behaviors/lolo/ui/core/molecules/ui-drawer.lolo +13 -0
  63. package/behaviors/lolo/ui/core/molecules/ui-floating-action-button.lolo +6 -1
  64. package/behaviors/lolo/ui/core/molecules/ui-floating-toolbar.lolo +6 -1
  65. package/behaviors/lolo/ui/core/molecules/ui-form-actions.lolo +6 -1
  66. package/behaviors/lolo/ui/core/molecules/ui-graph-canvas.lolo +6 -1
  67. package/behaviors/lolo/ui/core/molecules/ui-menu.lolo +6 -1
  68. package/behaviors/lolo/ui/core/molecules/ui-meter.lolo +6 -1
  69. package/behaviors/lolo/ui/core/molecules/ui-modal.lolo +5 -0
  70. package/behaviors/lolo/ui/core/molecules/ui-page-header.lolo +11 -1
  71. package/behaviors/lolo/ui/core/molecules/ui-page-transition.lolo +1 -1
  72. package/behaviors/lolo/ui/core/molecules/ui-swipeable-row.lolo +44 -15
  73. package/behaviors/lolo/ui/core/molecules/ui-table-view.lolo +41 -3
  74. package/behaviors/lolo/ui/core/molecules/ui-tabs.lolo +8 -2
  75. package/behaviors/lolo/ui/core/organisms/ui-detail-panel.lolo +66 -12
  76. package/behaviors/lolo/ui/core/organisms/ui-entity-cards.lolo +9 -3
  77. package/behaviors/lolo/ui/core/organisms/ui-entity-list.lolo +9 -3
  78. package/behaviors/lolo/ui/core/organisms/ui-entity-table.lolo +18 -9
  79. package/behaviors/lolo/ui/core/organisms/ui-form-section.lolo +55 -10
  80. package/behaviors/lolo/ui/core/organisms/ui-form.lolo +55 -10
  81. package/behaviors/lolo/ui/core/organisms/ui-media-gallery.lolo +8 -3
  82. package/behaviors/lolo/ui/core/organisms/ui-state-machine-view.lolo +12 -0
  83. package/behaviors/lolo/ui/core/organisms/ui-timeline.lolo +8 -3
  84. package/behaviors/lolo/ui/core/templates/ui-counter-template.lolo +2 -44
  85. package/behaviors/lolo/ui/core/templates/ui-dashboard-layout.lolo +6 -1
  86. package/behaviors/lolo/ui/core/templates/ui-generic-app-template.lolo +2 -37
  87. package/behaviors/lolo/ui/game/atoms/ui-game-menu.lolo +8 -2
  88. package/behaviors/lolo/ui/game/organisms/std-arcade-board-3d.lolo +2 -2
  89. package/behaviors/lolo/ui/game/organisms/std-crew-board-2d.lolo +0 -4
  90. package/behaviors/lolo/ui/game/organisms/std-platformer-puzzle.lolo +2 -66
  91. package/behaviors/lolo/ui/game/organisms/std-tactics-board-2d.lolo +0 -4
  92. package/behaviors/lolo/ui/game/organisms/std-worldmap-board-2d.lolo +0 -4
  93. package/behaviors/lolo/ui/learning/atoms/std-learn-stepper.lolo +6 -6
  94. package/behaviors/lolo-behavior-contracts.json +1 -1
  95. package/behaviors/registry/factory-signatures.json +1 -1
  96. package/behaviors/registry/infra/atoms/std-approval-gate.orb +124 -67
  97. package/behaviors/registry/infra/atoms/std-audit-capture.orb +0 -8
  98. package/behaviors/registry/infra/atoms/std-cache-aside.orb +0 -84
  99. package/behaviors/registry/infra/atoms/std-circuit-breaker.orb +1 -44
  100. package/behaviors/registry/infra/atoms/std-data-erasure.orb +124 -55
  101. package/behaviors/registry/infra/atoms/std-data-import.orb +12 -11
  102. package/behaviors/registry/infra/atoms/std-game-clock.orb +31 -0
  103. package/behaviors/registry/infra/atoms/std-knowledge-loop.orb +0 -57
  104. package/behaviors/registry/infra/atoms/std-lifecycle.orb +43 -0
  105. package/behaviors/registry/infra/atoms/std-mod-queue.orb +379 -103
  106. package/behaviors/registry/infra/atoms/std-notification-preferences.orb +126 -12
  107. package/behaviors/registry/infra/atoms/std-notify-on-event.orb +0 -11
  108. package/behaviors/registry/infra/atoms/std-permission-matrix.orb +128 -12
  109. package/behaviors/registry/infra/atoms/std-rate-limiter.orb +287 -72
  110. package/behaviors/registry/infra/atoms/std-status-lifecycle.orb +5 -8
  111. package/behaviors/registry/ml/atoms/std-graph-builder.orb +11 -0
  112. package/behaviors/registry/ml/atoms/std-ml-classify.orb +0 -7
  113. package/behaviors/registry/ml/atoms/std-ml-similarity.orb +0 -7
  114. package/behaviors/registry/ui/avl/atoms/ui-avl-state-machine.orb +82 -0
  115. package/behaviors/registry/ui/core/atoms/std-app-layout.orb +417 -9
  116. package/behaviors/registry/ui/core/atoms/std-app-search.orb +53 -1
  117. package/behaviors/registry/ui/core/atoms/std-billable-hour.orb +209 -19
  118. package/behaviors/registry/ui/core/atoms/std-board.orb +242 -61
  119. package/behaviors/registry/ui/core/atoms/std-browse.orb +295 -41
  120. package/behaviors/registry/ui/core/atoms/std-calendar.orb +96 -2
  121. package/behaviors/registry/ui/core/atoms/std-esign-flow.orb +122 -15
  122. package/behaviors/registry/ui/core/atoms/std-esign-request.orb +11 -0
  123. package/behaviors/registry/ui/core/atoms/std-event-log.orb +0 -8
  124. package/behaviors/registry/ui/core/atoms/std-export.orb +0 -16
  125. package/behaviors/registry/ui/core/atoms/std-file-store.orb +109 -2
  126. package/behaviors/registry/ui/core/atoms/std-form-advanced.orb +1 -43
  127. package/behaviors/registry/ui/core/atoms/std-geosearch.orb +5 -0
  128. package/behaviors/registry/ui/core/atoms/std-graphs.orb +173 -66
  129. package/behaviors/registry/ui/core/atoms/std-import.orb +0 -8
  130. package/behaviors/registry/ui/core/atoms/std-list.orb +226 -34
  131. package/behaviors/registry/ui/core/atoms/std-modal-editor.orb +10 -1
  132. package/behaviors/registry/ui/core/atoms/std-rating-review.orb +37 -19
  133. package/behaviors/registry/ui/core/atoms/std-record-detail.orb +204 -11
  134. package/behaviors/registry/ui/core/atoms/std-recurrence.orb +89 -4
  135. package/behaviors/registry/ui/core/atoms/std-role-gate.orb +217 -0
  136. package/behaviors/registry/ui/core/atoms/std-saved-search.orb +419 -19
  137. package/behaviors/registry/ui/core/atoms/std-selection.orb +140 -10
  138. package/behaviors/registry/ui/core/atoms/std-stats.orb +73 -1
  139. package/behaviors/registry/ui/core/atoms/std-tag-taxonomy.orb +3 -0
  140. package/behaviors/registry/ui/core/atoms/std-thread.orb +190 -115
  141. package/behaviors/registry/ui/core/atoms/std-version-history.orb +127 -13
  142. package/behaviors/registry/ui/core/atoms/std-vote.orb +0 -9
  143. package/behaviors/registry/ui/core/atoms/std-wizard.orb +33 -3
  144. package/behaviors/registry/ui/core/atoms/ui-presence.orb +59 -0
  145. package/behaviors/registry/ui/core/molecules/ui-breadcrumb.orb +53 -1
  146. package/behaviors/registry/ui/core/molecules/ui-chart.orb +68 -1
  147. package/behaviors/registry/ui/core/molecules/ui-code-block.orb +291 -8
  148. package/behaviors/registry/ui/core/molecules/ui-command-palette.orb +87 -2
  149. package/behaviors/registry/ui/core/molecules/ui-commit-row.orb +3 -2
  150. package/behaviors/registry/ui/core/molecules/ui-confirm-dialog.orb +32 -0
  151. package/behaviors/registry/ui/core/molecules/ui-data-grid.orb +189 -3
  152. package/behaviors/registry/ui/core/molecules/ui-data-list.orb +189 -3
  153. package/behaviors/registry/ui/core/molecules/ui-document-details.orb +81 -24
  154. package/behaviors/registry/ui/core/molecules/ui-document-panel.orb +121 -3
  155. package/behaviors/registry/ui/core/molecules/ui-document-viewer.orb +53 -1
  156. package/behaviors/registry/ui/core/molecules/ui-drawer.orb +40 -0
  157. package/behaviors/registry/ui/core/molecules/ui-floating-action-button.orb +53 -1
  158. package/behaviors/registry/ui/core/molecules/ui-floating-toolbar.orb +53 -1
  159. package/behaviors/registry/ui/core/molecules/ui-form-actions.orb +53 -1
  160. package/behaviors/registry/ui/core/molecules/ui-graph-canvas.orb +53 -1
  161. package/behaviors/registry/ui/core/molecules/ui-menu.orb +57 -1
  162. package/behaviors/registry/ui/core/molecules/ui-meter.orb +53 -1
  163. package/behaviors/registry/ui/core/molecules/ui-modal.orb +8 -0
  164. package/behaviors/registry/ui/core/molecules/ui-page-header.orb +60 -1
  165. package/behaviors/registry/ui/core/molecules/ui-page-transition.orb +1 -1
  166. package/behaviors/registry/ui/core/molecules/ui-swipeable-row.orb +393 -23
  167. package/behaviors/registry/ui/core/molecules/ui-table-view.orb +189 -3
  168. package/behaviors/registry/ui/core/molecules/ui-tabs.orb +99 -2
  169. package/behaviors/registry/ui/core/organisms/ui-detail-panel.orb +282 -20
  170. package/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +130 -3
  171. package/behaviors/registry/ui/core/organisms/ui-entity-list.orb +130 -3
  172. package/behaviors/registry/ui/core/organisms/ui-entity-table.orb +367 -9
  173. package/behaviors/registry/ui/core/organisms/ui-form-section.orb +104 -13
  174. package/behaviors/registry/ui/core/organisms/ui-form.orb +104 -13
  175. package/behaviors/registry/ui/core/organisms/ui-media-gallery.orb +121 -3
  176. package/behaviors/registry/ui/core/organisms/ui-state-machine-view.orb +82 -0
  177. package/behaviors/registry/ui/core/organisms/ui-timeline.orb +121 -3
  178. package/behaviors/registry/ui/core/templates/ui-counter-template.orb +1 -172
  179. package/behaviors/registry/ui/core/templates/ui-dashboard-layout.orb +53 -1
  180. package/behaviors/registry/ui/core/templates/ui-generic-app-template.orb +1 -116
  181. package/behaviors/registry/ui/game/atoms/ui-game-menu.orb +99 -2
  182. package/behaviors/registry/ui/game/organisms/std-arcade-board-3d.orb +10 -0
  183. package/behaviors/registry/ui/game/organisms/std-crew-board-2d.orb +0 -7
  184. package/behaviors/registry/ui/game/organisms/std-platformer-puzzle.orb +1 -807
  185. package/behaviors/registry/ui/game/organisms/std-tactics-board-2d.orb +0 -7
  186. package/behaviors/registry/ui/game/organisms/std-worldmap-board-2d.orb +0 -7
  187. package/behaviors/registry/ui/learning/atoms/std-learn-stepper.orb +6 -0
  188. package/canonical-operators.json +18 -1
  189. package/dist/behaviors/exports-reader.js +7662 -3762
  190. package/dist/behaviors/functions/index.d.ts +309 -104
  191. package/dist/behaviors/functions/index.js +7651 -3762
  192. package/dist/behaviors/index.d.ts +1 -1
  193. package/dist/behaviors/index.js +7663 -3763
  194. package/dist/behaviors/query.js +7662 -3762
  195. package/dist/behaviors-embeddings.hash.json +3 -3
  196. package/dist/behaviors-embeddings.json +35 -27
  197. package/dist/behaviors-registry.json +4402 -1898
  198. package/dist/index.d.ts +3 -3
  199. package/dist/index.js +7697 -3763
  200. package/dist/knob-embeddings.hash.json +3 -3
  201. package/dist/knob-embeddings.json +612 -352
  202. package/dist/modules/anim.d.ts +1 -1
  203. package/dist/modules/array.d.ts +1 -1
  204. package/dist/modules/array.js +15 -0
  205. package/dist/modules/async.d.ts +1 -1
  206. package/dist/modules/async.js +9 -0
  207. package/dist/modules/behavior.d.ts +1 -1
  208. package/dist/modules/browser.d.ts +1 -1
  209. package/dist/modules/composition.d.ts +1 -1
  210. package/dist/modules/contract.d.ts +1 -1
  211. package/dist/modules/core.d.ts +1 -1
  212. package/dist/modules/core.js +10 -0
  213. package/dist/modules/data.d.ts +1 -1
  214. package/dist/modules/ease.d.ts +1 -1
  215. package/dist/modules/format.d.ts +1 -1
  216. package/dist/modules/geo.d.ts +1 -1
  217. package/dist/modules/graph.d.ts +1 -1
  218. package/dist/modules/grid.d.ts +1 -1
  219. package/dist/modules/index.d.ts +1 -1
  220. package/dist/modules/index.js +34 -0
  221. package/dist/modules/integration.d.ts +1 -1
  222. package/dist/modules/json.d.ts +1 -1
  223. package/dist/modules/llm.d.ts +1 -1
  224. package/dist/modules/math.d.ts +1 -1
  225. package/dist/modules/memory.d.ts +1 -1
  226. package/dist/modules/nn.d.ts +1 -1
  227. package/dist/modules/noise.d.ts +1 -1
  228. package/dist/modules/object.d.ts +1 -1
  229. package/dist/modules/os.d.ts +1 -1
  230. package/dist/modules/path.d.ts +1 -1
  231. package/dist/modules/prob.d.ts +1 -1
  232. package/dist/modules/session.d.ts +1 -1
  233. package/dist/modules/str.d.ts +1 -1
  234. package/dist/modules/tensor.d.ts +1 -1
  235. package/dist/modules/time.d.ts +1 -1
  236. package/dist/modules/trace.d.ts +1 -1
  237. package/dist/modules/train.d.ts +1 -1
  238. package/dist/modules/validate.d.ts +1 -1
  239. package/dist/modules/vector.d.ts +1 -1
  240. package/dist/modules/workspace.d.ts +1 -1
  241. package/dist/registry/factory-signatures.json +1 -1
  242. package/dist/registry.d.ts +5 -2
  243. package/dist/registry.js +55 -1
  244. package/dist/{types-DwAW4Nni.d.ts → types-DLx38UFZ.d.ts} +31 -4
  245. package/package.json +2 -2
@@ -19,10 +19,10 @@
19
19
  "parent": "trt_01KXG04RR2H3KMQGZ10VB5VQ6D",
20
20
  "renames": []
21
21
  },
22
- "evt_01M1WZ4WX4KTRXEMYZG2C6QQNP": {
22
+ "evt_01M3RWGF9CAFMRJZT6PCAM34A4": {
23
23
  "bakedName": "SwipeableRowLoaded",
24
24
  "curName": "SwipeableRowLoaded",
25
- "id": "evt_01M1WZ4WX4KTRXEMYZG2C6QQNP",
25
+ "id": "evt_01M3RWGF9CAFMRJZT6PCAM34A4",
26
26
  "kind": "event",
27
27
  "owner": "workspace",
28
28
  "parent": "trt_01KXG04RR2H3KMQGZ10VB5VQ6D",
@@ -126,6 +126,14 @@
126
126
  "required": true,
127
127
  "type": "string"
128
128
  },
129
+ "roles": {
130
+ "items": {
131
+ "type": "string"
132
+ },
133
+ "name": "roles",
134
+ "required": false,
135
+ "type": "array"
136
+ },
129
137
  "variant": {
130
138
  "name": "variant",
131
139
  "required": false,
@@ -136,6 +144,11 @@
136
144
  "danger",
137
145
  "ghost"
138
146
  ]
147
+ },
148
+ "when": {
149
+ "name": "when",
150
+ "required": false,
151
+ "type": "object"
139
152
  }
140
153
  },
141
154
  "type": "object"
@@ -169,6 +182,14 @@
169
182
  "required": true,
170
183
  "type": "string"
171
184
  },
185
+ "roles": {
186
+ "items": {
187
+ "type": "string"
188
+ },
189
+ "name": "roles",
190
+ "required": false,
191
+ "type": "array"
192
+ },
172
193
  "variant": {
173
194
  "name": "variant",
174
195
  "required": false,
@@ -179,6 +200,11 @@
179
200
  "danger",
180
201
  "ghost"
181
202
  ]
203
+ },
204
+ "when": {
205
+ "name": "when",
206
+ "required": false,
207
+ "type": "object"
182
208
  }
183
209
  },
184
210
  "type": "object"
@@ -189,8 +215,8 @@
189
215
  },
190
216
  "selfFetch": {
191
217
  "default": true,
192
- "description": "true (default) = standalone mount self-populates on INIT. false = a composing atom owns the fetch and routes its loaded event here — suppresses the wrapper's own un-hydrated fetch so it cannot race the composer's.",
193
- "label": "Fetch its own rows on mount?",
218
+ "description": "true (default) = a mount that carries an id loads that one row (never the collection); a create-mode mount skips the load. false = a composing atom owns the load.",
219
+ "label": "Fetch its own row on mount?",
194
220
  "tier": "internal",
195
221
  "type": "boolean"
196
222
  },
@@ -200,6 +226,13 @@
200
226
  "label": "Threshold",
201
227
  "tier": "presentation",
202
228
  "type": "number"
229
+ },
230
+ "viewerRole": {
231
+ "default": "",
232
+ "description": "The viewer's role that each action's `roles` is checked against; bind it at the call site (e.g. `viewerRole: @user.role`). Empty = only actions with no `roles` show.",
233
+ "label": "Viewer's role",
234
+ "tier": "policy",
235
+ "type": "string"
203
236
  }
204
237
  },
205
238
  "effectRow": [
@@ -214,9 +247,9 @@
214
247
  ],
215
248
  "emits": [
216
249
  {
217
- "description": "SwipeableRow rows finished loading; payload.data holds the collection.",
250
+ "description": "SwipeableRow row finished loading; payload.data holds the single row.",
218
251
  "event": "SwipeableRowLoaded",
219
- "eventId": "evt_01M1WZ4WX4KTRXEMYZG2C6QQNP",
252
+ "eventId": "evt_01M3RWGF9CAFMRJZT6PCAM34A4",
220
253
  "payloadSchema": [
221
254
  {
222
255
  "entity": "SwipeableRowItem",
@@ -228,7 +261,7 @@
228
261
  "type": "string"
229
262
  }
230
263
  ],
231
- "type": "[object]"
264
+ "type": "object"
232
265
  }
233
266
  ],
234
267
  "scope": "internal",
@@ -252,13 +285,21 @@
252
285
  "stateMachine": {
253
286
  "events": [
254
287
  {
288
+ "description": "Mount payload; a host that routes to this panel by id (a :id page param) passes it here.",
255
289
  "id": "evt_01KXG04RR2SB60JTQCVEN867B6",
256
290
  "key": "INIT",
257
- "name": "Initialize"
291
+ "name": "Initialize",
292
+ "payloadSchema": [
293
+ {
294
+ "name": "id",
295
+ "type": "string"
296
+ }
297
+ ],
298
+ "tier": "internal"
258
299
  },
259
300
  {
260
- "description": "SwipeableRow rows finished loading; payload.data holds the collection.",
261
- "id": "evt_01M1WZ4WX4KTRXEMYZG2C6QQNP",
301
+ "description": "SwipeableRow row finished loading; payload.data holds the single row.",
302
+ "id": "evt_01M3RWGF9CAFMRJZT6PCAM34A4",
262
303
  "key": "SwipeableRowLoaded",
263
304
  "name": "Swipeable row loaded",
264
305
  "payloadSchema": [
@@ -272,7 +313,7 @@
272
313
  "type": "string"
273
314
  }
274
315
  ],
275
- "type": "[object]"
316
+ "type": "object"
276
317
  }
277
318
  ],
278
319
  "synonyms": "loaded, fetched, retrieved",
@@ -282,6 +323,9 @@
282
323
  "states": [
283
324
  {
284
325
  "isInitial": true,
326
+ "name": "resolving"
327
+ },
328
+ {
285
329
  "name": "idle"
286
330
  }
287
331
  ],
@@ -294,7 +338,8 @@
294
338
  {
295
339
  "emit": {
296
340
  "success": "SwipeableRowLoaded"
297
- }
341
+ },
342
+ "id": "@payload.id"
298
343
  }
299
344
  ],
300
345
  [
@@ -304,8 +349,74 @@
304
349
  "children": "@config.children",
305
350
  "className": "@config.className",
306
351
  "itemData": "@entity",
307
- "leftActions": "@config.leftActions",
308
- "rightActions": "@config.rightActions",
352
+ "leftActions": [
353
+ "array/filter",
354
+ "@config.leftActions",
355
+ [
356
+ "fn",
357
+ "action",
358
+ [
359
+ "or",
360
+ [
361
+ "=",
362
+ [
363
+ "array/len",
364
+ [
365
+ "object/get",
366
+ "@action",
367
+ "roles",
368
+ []
369
+ ]
370
+ ],
371
+ 0.0
372
+ ],
373
+ [
374
+ "array/includes",
375
+ [
376
+ "object/get",
377
+ "@action",
378
+ "roles",
379
+ []
380
+ ],
381
+ "@config.viewerRole"
382
+ ]
383
+ ]
384
+ ]
385
+ ],
386
+ "rightActions": [
387
+ "array/filter",
388
+ "@config.rightActions",
389
+ [
390
+ "fn",
391
+ "action",
392
+ [
393
+ "or",
394
+ [
395
+ "=",
396
+ [
397
+ "array/len",
398
+ [
399
+ "object/get",
400
+ "@action",
401
+ "roles",
402
+ []
403
+ ]
404
+ ],
405
+ 0.0
406
+ ],
407
+ [
408
+ "array/includes",
409
+ [
410
+ "object/get",
411
+ "@action",
412
+ "roles",
413
+ []
414
+ ],
415
+ "@config.viewerRole"
416
+ ]
417
+ ]
418
+ ]
419
+ ],
309
420
  "threshold": "@config.threshold",
310
421
  "type": "swipeable-row"
311
422
  }
@@ -313,8 +424,20 @@
313
424
  ],
314
425
  "event": "INIT",
315
426
  "eventId": "evt_01KXG04RR2SB60JTQCVEN867B6",
316
- "from": "idle",
317
- "guard": "@config.selfFetch",
427
+ "from": "resolving",
428
+ "guard": [
429
+ "and",
430
+ "@config.selfFetch",
431
+ [
432
+ "!=",
433
+ [
434
+ "str/default",
435
+ "@payload.id",
436
+ ""
437
+ ],
438
+ ""
439
+ ]
440
+ ],
318
441
  "to": "idle"
319
442
  },
320
443
  {
@@ -326,8 +449,74 @@
326
449
  "children": "@config.children",
327
450
  "className": "@config.className",
328
451
  "itemData": "@entity",
329
- "leftActions": "@config.leftActions",
330
- "rightActions": "@config.rightActions",
452
+ "leftActions": [
453
+ "array/filter",
454
+ "@config.leftActions",
455
+ [
456
+ "fn",
457
+ "action",
458
+ [
459
+ "or",
460
+ [
461
+ "=",
462
+ [
463
+ "array/len",
464
+ [
465
+ "object/get",
466
+ "@action",
467
+ "roles",
468
+ []
469
+ ]
470
+ ],
471
+ 0.0
472
+ ],
473
+ [
474
+ "array/includes",
475
+ [
476
+ "object/get",
477
+ "@action",
478
+ "roles",
479
+ []
480
+ ],
481
+ "@config.viewerRole"
482
+ ]
483
+ ]
484
+ ]
485
+ ],
486
+ "rightActions": [
487
+ "array/filter",
488
+ "@config.rightActions",
489
+ [
490
+ "fn",
491
+ "action",
492
+ [
493
+ "or",
494
+ [
495
+ "=",
496
+ [
497
+ "array/len",
498
+ [
499
+ "object/get",
500
+ "@action",
501
+ "roles",
502
+ []
503
+ ]
504
+ ],
505
+ 0.0
506
+ ],
507
+ [
508
+ "array/includes",
509
+ [
510
+ "object/get",
511
+ "@action",
512
+ "roles",
513
+ []
514
+ ],
515
+ "@config.viewerRole"
516
+ ]
517
+ ]
518
+ ]
519
+ ],
331
520
  "threshold": "@config.threshold",
332
521
  "type": "swipeable-row"
333
522
  }
@@ -335,11 +524,110 @@
335
524
  ],
336
525
  "event": "INIT",
337
526
  "eventId": "evt_01KXG04RR2SB60JTQCVEN867B6",
338
- "from": "idle",
527
+ "from": "resolving",
339
528
  "guard": [
340
529
  "not",
341
- "@config.selfFetch"
530
+ [
531
+ "and",
532
+ "@config.selfFetch",
533
+ [
534
+ "!=",
535
+ [
536
+ "str/default",
537
+ "@payload.id",
538
+ ""
539
+ ],
540
+ ""
541
+ ]
542
+ ]
543
+ ],
544
+ "to": "idle"
545
+ },
546
+ {
547
+ "effects": [
548
+ [
549
+ "render-ui",
550
+ "main",
551
+ {
552
+ "children": "@config.children",
553
+ "className": "@config.className",
554
+ "itemData": "@entity",
555
+ "leftActions": [
556
+ "array/filter",
557
+ "@config.leftActions",
558
+ [
559
+ "fn",
560
+ "action",
561
+ [
562
+ "or",
563
+ [
564
+ "=",
565
+ [
566
+ "array/len",
567
+ [
568
+ "object/get",
569
+ "@action",
570
+ "roles",
571
+ []
572
+ ]
573
+ ],
574
+ 0.0
575
+ ],
576
+ [
577
+ "array/includes",
578
+ [
579
+ "object/get",
580
+ "@action",
581
+ "roles",
582
+ []
583
+ ],
584
+ "@config.viewerRole"
585
+ ]
586
+ ]
587
+ ]
588
+ ],
589
+ "rightActions": [
590
+ "array/filter",
591
+ "@config.rightActions",
592
+ [
593
+ "fn",
594
+ "action",
595
+ [
596
+ "or",
597
+ [
598
+ "=",
599
+ [
600
+ "array/len",
601
+ [
602
+ "object/get",
603
+ "@action",
604
+ "roles",
605
+ []
606
+ ]
607
+ ],
608
+ 0.0
609
+ ],
610
+ [
611
+ "array/includes",
612
+ [
613
+ "object/get",
614
+ "@action",
615
+ "roles",
616
+ []
617
+ ],
618
+ "@config.viewerRole"
619
+ ]
620
+ ]
621
+ ]
622
+ ],
623
+ "threshold": "@config.threshold",
624
+ "type": "swipeable-row"
625
+ }
626
+ ]
342
627
  ],
628
+ "event": "INIT",
629
+ "eventId": "evt_01KXG04RR2SB60JTQCVEN867B6",
630
+ "from": "idle",
343
631
  "to": "idle"
344
632
  },
345
633
  {
@@ -351,15 +639,81 @@
351
639
  "children": "@config.children",
352
640
  "className": "@config.className",
353
641
  "itemData": "@payload.data",
354
- "leftActions": "@config.leftActions",
355
- "rightActions": "@config.rightActions",
642
+ "leftActions": [
643
+ "array/filter",
644
+ "@config.leftActions",
645
+ [
646
+ "fn",
647
+ "action",
648
+ [
649
+ "or",
650
+ [
651
+ "=",
652
+ [
653
+ "array/len",
654
+ [
655
+ "object/get",
656
+ "@action",
657
+ "roles",
658
+ []
659
+ ]
660
+ ],
661
+ 0.0
662
+ ],
663
+ [
664
+ "array/includes",
665
+ [
666
+ "object/get",
667
+ "@action",
668
+ "roles",
669
+ []
670
+ ],
671
+ "@config.viewerRole"
672
+ ]
673
+ ]
674
+ ]
675
+ ],
676
+ "rightActions": [
677
+ "array/filter",
678
+ "@config.rightActions",
679
+ [
680
+ "fn",
681
+ "action",
682
+ [
683
+ "or",
684
+ [
685
+ "=",
686
+ [
687
+ "array/len",
688
+ [
689
+ "object/get",
690
+ "@action",
691
+ "roles",
692
+ []
693
+ ]
694
+ ],
695
+ 0.0
696
+ ],
697
+ [
698
+ "array/includes",
699
+ [
700
+ "object/get",
701
+ "@action",
702
+ "roles",
703
+ []
704
+ ],
705
+ "@config.viewerRole"
706
+ ]
707
+ ]
708
+ ]
709
+ ],
356
710
  "threshold": "@config.threshold",
357
711
  "type": "swipeable-row"
358
712
  }
359
713
  ]
360
714
  ],
361
715
  "event": "SwipeableRowLoaded",
362
- "eventId": "evt_01M1WZ4WX4KTRXEMYZG2C6QQNP",
716
+ "eventId": "evt_01M3RWGF9CAFMRJZT6PCAM34A4",
363
717
  "from": "idle",
364
718
  "to": "idle"
365
719
  }
@@ -390,6 +744,14 @@
390
744
  {
391
745
  "name": "eventPayload",
392
746
  "type": "@payload(.event)"
747
+ },
748
+ {
749
+ "name": "when",
750
+ "type": "SExpr"
751
+ },
752
+ {
753
+ "name": "roles",
754
+ "type": "[string]"
393
755
  }
394
756
  ],
395
757
  "SwipeableRowRightActionsItem": [
@@ -414,6 +776,14 @@
414
776
  {
415
777
  "name": "eventPayload",
416
778
  "type": "@payload(.event)"
779
+ },
780
+ {
781
+ "name": "when",
782
+ "type": "SExpr"
783
+ },
784
+ {
785
+ "name": "roles",
786
+ "type": "[string]"
417
787
  }
418
788
  ]
419
789
  }