@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
@@ -118,6 +118,42 @@
118
118
  "parent": "trt_01KXG04HEK12VXNQKHPXBN5YWN",
119
119
  "renames": []
120
120
  },
121
+ "evt_01M3R78EJFAK3X937CRFBNVQ3C": {
122
+ "bakedName": "SavedSearchCreated",
123
+ "curName": "SavedSearchCreated",
124
+ "id": "evt_01M3R78EJFAK3X937CRFBNVQ3C",
125
+ "kind": "event",
126
+ "owner": "workspace",
127
+ "parent": "trt_01KXG04HEK12VXNQKHPXBN5YWN",
128
+ "renames": []
129
+ },
130
+ "evt_01M3R78EJFB3MQR8T2JZSX2AXB": {
131
+ "bakedName": "TRACK_QUERY",
132
+ "curName": "TRACK_QUERY",
133
+ "id": "evt_01M3R78EJFB3MQR8T2JZSX2AXB",
134
+ "kind": "event",
135
+ "owner": "workspace",
136
+ "parent": "trt_01KXG04HEK12VXNQKHPXBN5YWN",
137
+ "renames": []
138
+ },
139
+ "evt_01M3R78EJFTDDS9MFJHWF8YTWF": {
140
+ "bakedName": "TRACK_FILTERS",
141
+ "curName": "TRACK_FILTERS",
142
+ "id": "evt_01M3R78EJFTDDS9MFJHWF8YTWF",
143
+ "kind": "event",
144
+ "owner": "workspace",
145
+ "parent": "trt_01KXG04HEK12VXNQKHPXBN5YWN",
146
+ "renames": []
147
+ },
148
+ "evt_01M3R78EJFW0PVT55R4G57AB8K": {
149
+ "bakedName": "SAVE_CURRENT",
150
+ "curName": "SAVE_CURRENT",
151
+ "id": "evt_01M3R78EJFW0PVT55R4G57AB8K",
152
+ "kind": "event",
153
+ "owner": "workspace",
154
+ "parent": "trt_01KXG04HEK12VXNQKHPXBN5YWN",
155
+ "renames": []
156
+ },
121
157
  "orb_01KXG04HEK41V0ZGXWG1TYBR76": {
122
158
  "bakedName": "SavedSearchOrbital",
123
159
  "curName": "SavedSearchOrbital",
@@ -237,6 +273,77 @@
237
273
  {
238
274
  "category": "interaction",
239
275
  "config": {
276
+ "defaultSearchName": {
277
+ "default": "Saved search",
278
+ "description": "Name given to a saved search when the current search has no query text (filters only). Renamable afterwards.",
279
+ "label": "Default saved-search name",
280
+ "tier": "presentation",
281
+ "type": "string"
282
+ },
283
+ "itemActions": {
284
+ "default": [
285
+ {
286
+ "event": "TOGGLE_ALERT",
287
+ "icon": "bell",
288
+ "label": "Toggle alert",
289
+ "variant": "secondary"
290
+ },
291
+ {
292
+ "event": "EDIT",
293
+ "icon": "pencil",
294
+ "label": "Edit",
295
+ "variant": "secondary"
296
+ },
297
+ {
298
+ "event": "DELETE",
299
+ "icon": "trash-2",
300
+ "label": "Delete",
301
+ "variant": "danger"
302
+ }
303
+ ],
304
+ "description": "Actions offered on each row; give an item `roles` to show it only to those viewer roles.",
305
+ "items": {
306
+ "properties": {
307
+ "event": {
308
+ "name": "event",
309
+ "required": false,
310
+ "type": "event"
311
+ },
312
+ "icon": {
313
+ "name": "icon",
314
+ "required": false,
315
+ "type": "string"
316
+ },
317
+ "label": {
318
+ "name": "label",
319
+ "required": true,
320
+ "type": "string"
321
+ },
322
+ "roles": {
323
+ "items": {
324
+ "type": "string"
325
+ },
326
+ "name": "roles",
327
+ "required": false,
328
+ "type": "array"
329
+ },
330
+ "variant": {
331
+ "name": "variant",
332
+ "required": false,
333
+ "type": "string"
334
+ },
335
+ "when": {
336
+ "name": "when",
337
+ "required": false,
338
+ "type": "object"
339
+ }
340
+ },
341
+ "type": "object"
342
+ },
343
+ "label": "Row actions",
344
+ "tier": "presentation",
345
+ "type": "[ItemAction]"
346
+ },
240
347
  "tableLook": {
241
348
  "default": "dense",
242
349
  "description": "Layer 2 visual treatment for the data table rendered by this atom.",
@@ -257,6 +364,13 @@
257
364
  "label": "Section title",
258
365
  "tier": "presentation",
259
366
  "type": "string"
367
+ },
368
+ "viewerRole": {
369
+ "default": "",
370
+ "description": "The signed-in viewer's role that each action's `roles` is checked against. Bind it explicitly at the call site (e.g. `viewerRole: @user.role`) in an app whose identity carries a role; left empty, only actions with no `roles` show.",
371
+ "label": "Viewer's role",
372
+ "tier": "policy",
373
+ "type": "string"
260
374
  }
261
375
  },
262
376
  "effectRow": [
@@ -280,6 +394,10 @@
280
394
  "kind": "set",
281
395
  "resource": "@entity.alertFrequency"
282
396
  },
397
+ {
398
+ "kind": "set",
399
+ "resource": "@entity.filters"
400
+ },
283
401
  {
284
402
  "kind": "set",
285
403
  "resource": "@entity.id"
@@ -287,6 +405,10 @@
287
405
  {
288
406
  "kind": "set",
289
407
  "resource": "@entity.name"
408
+ },
409
+ {
410
+ "kind": "set",
411
+ "resource": "@entity.query"
290
412
  }
291
413
  ],
292
414
  "emits": [
@@ -450,6 +572,55 @@
450
572
  "synonyms": "error, failure, load error",
451
573
  "tier": "internal"
452
574
  },
575
+ {
576
+ "description": "Indicates the current search has been saved as a new row.",
577
+ "event": "SavedSearchCreated",
578
+ "eventId": "evt_01M3R78EJFAK3X937CRFBNVQ3C",
579
+ "payloadEntity": "SavedSearch",
580
+ "payloadSchema": [
581
+ {
582
+ "name": "id",
583
+ "required": true,
584
+ "type": "string"
585
+ },
586
+ {
587
+ "name": "name",
588
+ "required": true,
589
+ "type": "string"
590
+ },
591
+ {
592
+ "name": "query",
593
+ "type": "string"
594
+ },
595
+ {
596
+ "name": "filters",
597
+ "type": "Map<string,scalar>"
598
+ },
599
+ {
600
+ "name": "alertEnabled",
601
+ "type": "boolean"
602
+ },
603
+ {
604
+ "name": "alertFrequency",
605
+ "type": "string"
606
+ },
607
+ {
608
+ "name": "userId",
609
+ "type": "string"
610
+ },
611
+ {
612
+ "name": "lastNotifiedAt",
613
+ "type": "datetime"
614
+ },
615
+ {
616
+ "name": "createdAt",
617
+ "type": "string"
618
+ }
619
+ ],
620
+ "scope": "internal",
621
+ "synonyms": "saved, created, bookmarked",
622
+ "tier": "presentation"
623
+ },
453
624
  {
454
625
  "description": "Indicates a saved search has been modified and persisted.",
455
626
  "event": "SavedSearchUpdated",
@@ -637,6 +808,48 @@
637
808
  "synonyms": "remove, discard, clear",
638
809
  "tier": "presentation"
639
810
  },
811
+ {
812
+ "description": "The page's current search text changed.",
813
+ "id": "evt_01M3R78EJFB3MQR8T2JZSX2AXB",
814
+ "key": "TRACK_QUERY",
815
+ "name": "Track Query",
816
+ "payloadSchema": [
817
+ {
818
+ "name": "query",
819
+ "type": "string"
820
+ }
821
+ ],
822
+ "synonyms": "search changed, query changed, typed search",
823
+ "tier": "domain"
824
+ },
825
+ {
826
+ "description": "The page's current filters changed.",
827
+ "id": "evt_01M3R78EJFTDDS9MFJHWF8YTWF",
828
+ "key": "TRACK_FILTERS",
829
+ "name": "Track Filters",
830
+ "payloadSchema": [
831
+ {
832
+ "name": "field",
833
+ "required": true,
834
+ "type": "string"
835
+ },
836
+ {
837
+ "name": "value",
838
+ "required": true,
839
+ "type": "string"
840
+ }
841
+ ],
842
+ "synonyms": "filters changed, criteria changed",
843
+ "tier": "domain"
844
+ },
845
+ {
846
+ "description": "Save the page's current search and filters as a new saved search.",
847
+ "id": "evt_01M3R78EJFW0PVT55R4G57AB8K",
848
+ "key": "SAVE_CURRENT",
849
+ "name": "Save Current",
850
+ "synonyms": "save search, bookmark search, remember search",
851
+ "tier": "domain"
852
+ },
640
853
  {
641
854
  "description": "Indicates a saved search is being modified.",
642
855
  "id": "evt_01KXG04HEPKXNXT78X9K6N7YJ0",
@@ -716,6 +929,55 @@
716
929
  "synonyms": "removed, purged, discarded",
717
930
  "tier": "presentation"
718
931
  },
932
+ {
933
+ "description": "Indicates the current search has been saved as a new row.",
934
+ "id": "evt_01M3R78EJFAK3X937CRFBNVQ3C",
935
+ "key": "SavedSearchCreated",
936
+ "name": "SavedSearch created",
937
+ "payloadEntity": "SavedSearch",
938
+ "payloadSchema": [
939
+ {
940
+ "name": "id",
941
+ "required": true,
942
+ "type": "string"
943
+ },
944
+ {
945
+ "name": "name",
946
+ "required": true,
947
+ "type": "string"
948
+ },
949
+ {
950
+ "name": "query",
951
+ "type": "string"
952
+ },
953
+ {
954
+ "name": "filters",
955
+ "type": "Map<string,scalar>"
956
+ },
957
+ {
958
+ "name": "alertEnabled",
959
+ "type": "boolean"
960
+ },
961
+ {
962
+ "name": "alertFrequency",
963
+ "type": "string"
964
+ },
965
+ {
966
+ "name": "userId",
967
+ "type": "string"
968
+ },
969
+ {
970
+ "name": "lastNotifiedAt",
971
+ "type": "datetime"
972
+ },
973
+ {
974
+ "name": "createdAt",
975
+ "type": "string"
976
+ }
977
+ ],
978
+ "synonyms": "saved, created, bookmarked",
979
+ "tier": "presentation"
980
+ },
719
981
  {
720
982
  "description": "Indicates a saved search has been renamed.",
721
983
  "id": "evt_01KXG04HEPMJ6WX5J8GGH4BD6B",
@@ -873,24 +1135,38 @@
873
1135
  ],
874
1136
  "gap": "sm",
875
1137
  "itemActions": [
876
- {
877
- "event": "TOGGLE_ALERT",
878
- "icon": "bell",
879
- "label": "Toggle alert",
880
- "variant": "secondary"
881
- },
882
- {
883
- "event": "EDIT",
884
- "icon": "pencil",
885
- "label": "Edit",
886
- "variant": "secondary"
887
- },
888
- {
889
- "event": "DELETE",
890
- "icon": "trash-2",
891
- "label": "Delete",
892
- "variant": "danger"
893
- }
1138
+ "array/filter",
1139
+ "@config.itemActions",
1140
+ [
1141
+ "fn",
1142
+ "action",
1143
+ [
1144
+ "or",
1145
+ [
1146
+ "=",
1147
+ [
1148
+ "array/len",
1149
+ [
1150
+ "object/get",
1151
+ "@action",
1152
+ "roles",
1153
+ []
1154
+ ]
1155
+ ],
1156
+ 0.0
1157
+ ],
1158
+ [
1159
+ "array/includes",
1160
+ [
1161
+ "object/get",
1162
+ "@action",
1163
+ "roles",
1164
+ []
1165
+ ],
1166
+ "@config.viewerRole"
1167
+ ]
1168
+ ]
1169
+ ]
894
1170
  ],
895
1171
  "look": "@config.tableLook",
896
1172
  "type": "data-grid"
@@ -1019,6 +1295,83 @@
1019
1295
  "from": "browsing",
1020
1296
  "to": "browsing"
1021
1297
  },
1298
+ {
1299
+ "effects": [
1300
+ [
1301
+ "set",
1302
+ "@entity.query",
1303
+ "@payload.query"
1304
+ ]
1305
+ ],
1306
+ "event": "TRACK_QUERY",
1307
+ "eventId": "evt_01M3R78EJFB3MQR8T2JZSX2AXB",
1308
+ "from": "browsing",
1309
+ "to": "browsing"
1310
+ },
1311
+ {
1312
+ "effects": [
1313
+ [
1314
+ "set",
1315
+ "@entity.filters",
1316
+ [
1317
+ "if",
1318
+ [
1319
+ "=",
1320
+ "@payload.value",
1321
+ ""
1322
+ ],
1323
+ [
1324
+ "object/omit",
1325
+ "@entity.filters",
1326
+ [
1327
+ "@payload.field"
1328
+ ]
1329
+ ],
1330
+ [
1331
+ "object/set",
1332
+ "@entity.filters",
1333
+ "@payload.field",
1334
+ "@payload.value"
1335
+ ]
1336
+ ]
1337
+ ]
1338
+ ],
1339
+ "event": "TRACK_FILTERS",
1340
+ "eventId": "evt_01M3R78EJFTDDS9MFJHWF8YTWF",
1341
+ "from": "browsing",
1342
+ "to": "browsing"
1343
+ },
1344
+ {
1345
+ "effects": [
1346
+ [
1347
+ "persist",
1348
+ "create",
1349
+ "SavedSearch",
1350
+ {
1351
+ "createdAt": "@now",
1352
+ "filters": "@entity.filters",
1353
+ "name": [
1354
+ "if",
1355
+ "@entity.query",
1356
+ "@entity.query",
1357
+ "@config.defaultSearchName"
1358
+ ],
1359
+ "query": "@entity.query",
1360
+ "userId": "@user.id"
1361
+ },
1362
+ {
1363
+ "emit": {
1364
+ "failure": "SavedSearchLoadFailed",
1365
+ "success": "SavedSearchCreated"
1366
+ }
1367
+ }
1368
+ ]
1369
+ ],
1370
+ "event": "SAVE_CURRENT",
1371
+ "eventId": "evt_01M3R78EJFW0PVT55R4G57AB8K",
1372
+ "from": "browsing",
1373
+ "to": "browsing"
1374
+ },
1022
1375
  {
1023
1376
  "effects": [
1024
1377
  [
@@ -1151,6 +1504,24 @@
1151
1504
  "from": "browsing",
1152
1505
  "to": "loading"
1153
1506
  },
1507
+ {
1508
+ "effects": [
1509
+ [
1510
+ "fetch",
1511
+ "SavedSearch",
1512
+ {
1513
+ "emit": {
1514
+ "failure": "SavedSearchLoadFailed",
1515
+ "success": "SavedSearchLoaded"
1516
+ }
1517
+ }
1518
+ ]
1519
+ ],
1520
+ "event": "SavedSearchCreated",
1521
+ "eventId": "evt_01M3R78EJFAK3X937CRFBNVQ3C",
1522
+ "from": "browsing",
1523
+ "to": "loading"
1524
+ },
1154
1525
  {
1155
1526
  "effects": [
1156
1527
  [
@@ -1261,7 +1632,36 @@
1261
1632
  ]
1262
1633
  }
1263
1634
  }
1264
- ]
1635
+ ],
1636
+ "types": {
1637
+ "ItemAction": [
1638
+ {
1639
+ "name": "label",
1640
+ "required": true,
1641
+ "type": "string"
1642
+ },
1643
+ {
1644
+ "name": "event",
1645
+ "type": "event"
1646
+ },
1647
+ {
1648
+ "name": "variant",
1649
+ "type": "string"
1650
+ },
1651
+ {
1652
+ "name": "icon",
1653
+ "type": "string"
1654
+ },
1655
+ {
1656
+ "name": "roles",
1657
+ "type": "[string]"
1658
+ },
1659
+ {
1660
+ "name": "when",
1661
+ "type": "SExpr"
1662
+ }
1663
+ ]
1664
+ }
1265
1665
  }
1266
1666
  ],
1267
1667
  "schemaVersion": 1,