@almadar/std 16.21.2 → 16.21.4

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 (57) hide show
  1. package/behaviors/registry/agent/atoms/std-agent-activity-log.orb +5 -0
  2. package/behaviors/registry/agent/atoms/std-agent-classifier.orb +5 -0
  3. package/behaviors/registry/agent/atoms/std-agent-completion.orb +8 -0
  4. package/behaviors/registry/agent/atoms/std-agent-context-window.orb +9 -0
  5. package/behaviors/registry/agent/atoms/std-agent-memory.orb +5 -0
  6. package/behaviors/registry/agent/atoms/std-agent-provider.orb +8 -0
  7. package/behaviors/registry/agent/atoms/std-agent-search.orb +5 -0
  8. package/behaviors/registry/agent/atoms/std-agent-tool-call.orb +5 -0
  9. package/behaviors/registry/core/atoms/std-app-search.orb +560 -0
  10. package/behaviors/registry/core/atoms/std-autocomplete.orb +382 -0
  11. package/behaviors/registry/core/atoms/std-event-log.orb +15 -0
  12. package/behaviors/registry/core/atoms/std-filter.orb +8 -0
  13. package/behaviors/registry/core/atoms/std-push.orb +7 -0
  14. package/behaviors/registry/core/atoms/std-recurrence.orb +17 -0
  15. package/behaviors/registry/core/atoms/std-search.orb +7 -0
  16. package/behaviors/registry/core/atoms/std-wizard.orb +20 -0
  17. package/behaviors/registry/infra/atoms/std-notify-on-event.orb +82 -57
  18. package/behaviors/registry/infra/atoms/std-status-lifecycle.orb +306 -0
  19. package/dist/behaviors/behaviors-registry.json +447 -11
  20. package/dist/behaviors/registry/agent/atoms/std-agent-activity-log.orb +5 -0
  21. package/dist/behaviors/registry/agent/atoms/std-agent-classifier.orb +5 -0
  22. package/dist/behaviors/registry/agent/atoms/std-agent-completion.orb +8 -0
  23. package/dist/behaviors/registry/agent/atoms/std-agent-context-window.orb +9 -0
  24. package/dist/behaviors/registry/agent/atoms/std-agent-memory.orb +5 -0
  25. package/dist/behaviors/registry/agent/atoms/std-agent-provider.orb +8 -0
  26. package/dist/behaviors/registry/agent/atoms/std-agent-search.orb +5 -0
  27. package/dist/behaviors/registry/agent/atoms/std-agent-tool-call.orb +5 -0
  28. package/dist/behaviors/registry/core/atoms/std-app-search.orb +560 -0
  29. package/dist/behaviors/registry/core/atoms/std-autocomplete.orb +382 -0
  30. package/dist/behaviors/registry/core/atoms/std-event-log.orb +15 -0
  31. package/dist/behaviors/registry/core/atoms/std-filter.orb +8 -0
  32. package/dist/behaviors/registry/core/atoms/std-push.orb +7 -0
  33. package/dist/behaviors/registry/core/atoms/std-recurrence.orb +17 -0
  34. package/dist/behaviors/registry/core/atoms/std-search.orb +7 -0
  35. package/dist/behaviors/registry/core/atoms/std-wizard.orb +20 -0
  36. package/dist/behaviors/registry/infra/atoms/std-notify-on-event.orb +82 -57
  37. package/dist/behaviors/registry/infra/atoms/std-status-lifecycle.orb +306 -0
  38. package/dist/behaviors-registry.json +447 -11
  39. package/dist/registry/agent/atoms/std-agent-activity-log.orb +5 -0
  40. package/dist/registry/agent/atoms/std-agent-classifier.orb +5 -0
  41. package/dist/registry/agent/atoms/std-agent-completion.orb +8 -0
  42. package/dist/registry/agent/atoms/std-agent-context-window.orb +9 -0
  43. package/dist/registry/agent/atoms/std-agent-memory.orb +5 -0
  44. package/dist/registry/agent/atoms/std-agent-provider.orb +8 -0
  45. package/dist/registry/agent/atoms/std-agent-search.orb +5 -0
  46. package/dist/registry/agent/atoms/std-agent-tool-call.orb +5 -0
  47. package/dist/registry/core/atoms/std-app-search.orb +560 -0
  48. package/dist/registry/core/atoms/std-autocomplete.orb +382 -0
  49. package/dist/registry/core/atoms/std-event-log.orb +15 -0
  50. package/dist/registry/core/atoms/std-filter.orb +8 -0
  51. package/dist/registry/core/atoms/std-push.orb +7 -0
  52. package/dist/registry/core/atoms/std-recurrence.orb +17 -0
  53. package/dist/registry/core/atoms/std-search.orb +7 -0
  54. package/dist/registry/core/atoms/std-wizard.orb +20 -0
  55. package/dist/registry/infra/atoms/std-notify-on-event.orb +82 -57
  56. package/dist/registry/infra/atoms/std-status-lifecycle.orb +306 -0
  57. package/package.json +1 -1
@@ -0,0 +1,382 @@
1
+ {
2
+ "name": "std-autocomplete",
3
+ "version": "1.0.0",
4
+ "description": "std-autocomplete — reusable inline typeahead: as the user types (AUTO_QUERY), fetches the linked entity filtered by @config.searchField and shows a compact suggestions list; picking one emits AUTO_SELECTED { id } for the consumer to open the record or fill a field. Rebind to any entity; configure searchField + the label field shown per suggestion.",
5
+ "orbitals": [
6
+ {
7
+ "name": "AutocompleteOrbital",
8
+ "entity": {
9
+ "name": "AutoTarget",
10
+ "persistence": "runtime",
11
+ "fields": [
12
+ {
13
+ "name": "id",
14
+ "type": "string",
15
+ "required": true
16
+ },
17
+ {
18
+ "name": "name",
19
+ "type": "string",
20
+ "description": "The primary label matched + shown per suggestion.",
21
+ "synonyms": "title, label, productName"
22
+ },
23
+ {
24
+ "name": "searchTerm",
25
+ "type": "string",
26
+ "default": "",
27
+ "intrinsic": true,
28
+ "description": "The current typed query.",
29
+ "synonyms": "query, term, q"
30
+ }
31
+ ]
32
+ },
33
+ "traits": [
34
+ {
35
+ "name": "Autocomplete",
36
+ "entityRebindable": true,
37
+ "entityContract": {
38
+ "requires": [],
39
+ "provides": [
40
+ "searchTerm"
41
+ ]
42
+ },
43
+ "category": "interaction",
44
+ "linkedEntity": "AutoTarget",
45
+ "emits": [
46
+ {
47
+ "event": "AutoLoaded",
48
+ "description": "Suggestion matches loaded",
49
+ "scope": "internal",
50
+ "payloadSchema": [
51
+ {
52
+ "name": "data",
53
+ "type": "[AutoTarget]"
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ "event": "AutoFailed",
59
+ "description": "Suggestion fetch failed",
60
+ "scope": "internal",
61
+ "payloadSchema": [
62
+ {
63
+ "name": "error",
64
+ "type": "string"
65
+ }
66
+ ]
67
+ },
68
+ {
69
+ "event": "AUTO_SELECTED",
70
+ "description": "A suggestion was picked; carries the chosen record id for the consumer to open or bind.",
71
+ "synonyms": "select, choose, pick",
72
+ "tier": "essential",
73
+ "scope": "external",
74
+ "payloadSchema": [
75
+ {
76
+ "name": "id",
77
+ "type": "string",
78
+ "required": true
79
+ }
80
+ ]
81
+ }
82
+ ],
83
+ "stateMachine": {
84
+ "states": [
85
+ {
86
+ "name": "idle",
87
+ "isInitial": true
88
+ }
89
+ ],
90
+ "events": [
91
+ {
92
+ "key": "INIT",
93
+ "name": "Initialize"
94
+ },
95
+ {
96
+ "key": "AUTO_QUERY",
97
+ "name": "Auto Query",
98
+ "description": "The user typed/submitted a query in the typeahead input.",
99
+ "synonyms": "type, query, search",
100
+ "tier": "essential",
101
+ "payloadSchema": [
102
+ {
103
+ "name": "value",
104
+ "type": "string"
105
+ }
106
+ ]
107
+ },
108
+ {
109
+ "key": "AutoLoaded",
110
+ "name": "Auto loaded",
111
+ "payloadSchema": [
112
+ {
113
+ "name": "data",
114
+ "type": "[AutoTarget]"
115
+ }
116
+ ]
117
+ },
118
+ {
119
+ "key": "AUTO_SELECT",
120
+ "name": "Auto Select",
121
+ "description": "The user clicked a suggestion.",
122
+ "synonyms": "pick, choose, open",
123
+ "tier": "essential",
124
+ "payloadSchema": [
125
+ {
126
+ "name": "id",
127
+ "type": "string",
128
+ "required": true
129
+ }
130
+ ]
131
+ },
132
+ {
133
+ "key": "AutoFailed",
134
+ "name": "Auto failed",
135
+ "payloadSchema": [
136
+ {
137
+ "name": "error",
138
+ "type": "string"
139
+ }
140
+ ]
141
+ },
142
+ {
143
+ "key": "AUTO_SELECTED",
144
+ "name": "Auto Selected",
145
+ "description": "A suggestion was picked; carries the chosen record id for the consumer to open or bind.",
146
+ "synonyms": "select, choose, pick",
147
+ "tier": "essential"
148
+ }
149
+ ],
150
+ "transitions": [
151
+ {
152
+ "from": "idle",
153
+ "to": "idle",
154
+ "event": "INIT",
155
+ "effects": [
156
+ [
157
+ "fetch",
158
+ "AutoTarget",
159
+ {}
160
+ ],
161
+ [
162
+ "render-ui",
163
+ "main",
164
+ {
165
+ "event": "AUTO_QUERY",
166
+ "placeholder": "@config.placeholder",
167
+ "type": "search-input",
168
+ "query": "@entity.searchTerm"
169
+ }
170
+ ]
171
+ ]
172
+ },
173
+ {
174
+ "from": "idle",
175
+ "to": "idle",
176
+ "event": "AUTO_QUERY",
177
+ "effects": [
178
+ [
179
+ "set",
180
+ "@entity.searchTerm",
181
+ "@payload.value"
182
+ ],
183
+ [
184
+ "fetch",
185
+ "AutoTarget",
186
+ {
187
+ "filter": [
188
+ "or",
189
+ [
190
+ "=",
191
+ "@payload.value",
192
+ ""
193
+ ],
194
+ [
195
+ "str/includes",
196
+ [
197
+ "object/get",
198
+ "@entity",
199
+ "@config.searchField"
200
+ ],
201
+ "@payload.value"
202
+ ]
203
+ ],
204
+ "emit": {
205
+ "success": "AutoLoaded",
206
+ "failure": "AutoFailed"
207
+ }
208
+ }
209
+ ],
210
+ [
211
+ "render-ui",
212
+ "main",
213
+ {
214
+ "gap": "xs",
215
+ "direction": "vertical",
216
+ "children": [
217
+ {
218
+ "type": "search-input",
219
+ "event": "AUTO_QUERY",
220
+ "query": "@entity.searchTerm",
221
+ "placeholder": "@config.placeholder"
222
+ },
223
+ {
224
+ "type": "spinner",
225
+ "size": "sm"
226
+ }
227
+ ],
228
+ "type": "stack"
229
+ }
230
+ ]
231
+ ]
232
+ },
233
+ {
234
+ "from": "idle",
235
+ "to": "idle",
236
+ "event": "AutoLoaded",
237
+ "effects": [
238
+ [
239
+ "render-ui",
240
+ "main",
241
+ {
242
+ "children": [
243
+ {
244
+ "event": "AUTO_QUERY",
245
+ "query": "@entity.searchTerm",
246
+ "type": "search-input",
247
+ "placeholder": "@config.placeholder"
248
+ },
249
+ {
250
+ "entity": "@payload.data",
251
+ "fields": "@config.suggestionFields",
252
+ "type": "data-list",
253
+ "itemActions": [
254
+ {
255
+ "variant": "ghost",
256
+ "label": "Open",
257
+ "event": "AUTO_SELECT"
258
+ }
259
+ ]
260
+ }
261
+ ],
262
+ "gap": "xs",
263
+ "direction": "vertical",
264
+ "type": "stack"
265
+ }
266
+ ]
267
+ ]
268
+ },
269
+ {
270
+ "from": "idle",
271
+ "to": "idle",
272
+ "event": "AUTO_SELECT",
273
+ "effects": [
274
+ [
275
+ "emit",
276
+ "AUTO_SELECTED",
277
+ {
278
+ "id": "@payload.id"
279
+ }
280
+ ],
281
+ [
282
+ "render-ui",
283
+ "main",
284
+ {
285
+ "event": "AUTO_QUERY",
286
+ "placeholder": "@config.placeholder",
287
+ "query": "@entity.searchTerm",
288
+ "type": "search-input"
289
+ }
290
+ ]
291
+ ]
292
+ },
293
+ {
294
+ "from": "idle",
295
+ "to": "idle",
296
+ "event": "AutoFailed",
297
+ "effects": [
298
+ [
299
+ "render-ui",
300
+ "main",
301
+ {
302
+ "query": "@entity.searchTerm",
303
+ "type": "search-input",
304
+ "placeholder": "@config.placeholder",
305
+ "event": "AUTO_QUERY"
306
+ }
307
+ ]
308
+ ]
309
+ }
310
+ ]
311
+ },
312
+ "config": {
313
+ "searchField": {
314
+ "type": "string",
315
+ "default": "name",
316
+ "label": "Search field",
317
+ "description": "Entity field matched against the typed query (case-insensitive substring).",
318
+ "tier": "presentation"
319
+ },
320
+ "placeholder": {
321
+ "type": "string",
322
+ "default": "Search…",
323
+ "label": "Placeholder",
324
+ "description": "Hint text in the empty typeahead input.",
325
+ "tier": "presentation"
326
+ },
327
+ "suggestionFields": {
328
+ "type": "[AutoSuggestSpec]",
329
+ "default": [
330
+ {
331
+ "label": "Name",
332
+ "name": "name",
333
+ "variant": "body"
334
+ }
335
+ ],
336
+ "label": "Suggestion fields",
337
+ "description": "Fields shown per suggestion row.",
338
+ "tier": "presentation",
339
+ "items": {
340
+ "type": "object",
341
+ "properties": {
342
+ "label": {
343
+ "name": "label",
344
+ "type": "string",
345
+ "required": false
346
+ },
347
+ "variant": {
348
+ "name": "variant",
349
+ "type": "string",
350
+ "required": false
351
+ },
352
+ "icon": {
353
+ "name": "icon",
354
+ "type": "string",
355
+ "required": false
356
+ },
357
+ "name": {
358
+ "name": "name",
359
+ "type": "string",
360
+ "required": true
361
+ }
362
+ }
363
+ }
364
+ }
365
+ },
366
+ "scope": "collection"
367
+ }
368
+ ],
369
+ "pages": [
370
+ {
371
+ "name": "AutocompletePage",
372
+ "path": "/autocomplete",
373
+ "traits": [
374
+ {
375
+ "ref": "Autocomplete"
376
+ }
377
+ ]
378
+ }
379
+ ]
380
+ }
381
+ ]
382
+ }
@@ -232,6 +232,21 @@
232
232
  "name": "EventLogTimeline",
233
233
  "category": "interaction",
234
234
  "linkedEntity": "EventLogView",
235
+ "entityRebindable": true,
236
+ "entityContract": {
237
+ "requires": [],
238
+ "provides": [
239
+ "allEntries",
240
+ "backfillDate",
241
+ "backfillDescription",
242
+ "backfillKind",
243
+ "backfillTitle",
244
+ "entries",
245
+ "errorMessage",
246
+ "filterChips",
247
+ "filterKind"
248
+ ]
249
+ },
235
250
  "emits": [
236
251
  {
237
252
  "event": "APPLY_FILTER",
@@ -33,6 +33,14 @@
33
33
  "name": "FilterTargetFilter",
34
34
  "category": "interaction",
35
35
  "linkedEntity": "FilterTarget",
36
+ "entityRebindable": true,
37
+ "entityContract": {
38
+ "requires": [],
39
+ "provides": [
40
+ "field",
41
+ "value"
42
+ ]
43
+ },
36
44
  "emits": [
37
45
  {
38
46
  "event": "FILTER",
@@ -27,6 +27,13 @@
27
27
  "name": "PushSubscriberIndicator",
28
28
  "category": "interaction",
29
29
  "linkedEntity": "PushSubscriber",
30
+ "entityRebindable": true,
31
+ "entityContract": {
32
+ "requires": [],
33
+ "provides": [
34
+ "status"
35
+ ]
36
+ },
30
37
  "emits": [
31
38
  {
32
39
  "event": "PUSH_RECEIVED",
@@ -186,6 +186,23 @@
186
186
  "name": "RecurrenceEditor",
187
187
  "category": "interaction",
188
188
  "linkedEntity": "RecurrenceView",
189
+ "entityRebindable": true,
190
+ "entityContract": {
191
+ "requires": [],
192
+ "provides": [
193
+ "currentOccurrenceDate",
194
+ "currentOccurrenceId",
195
+ "currentOccurrenceLabel",
196
+ "endAfterCount",
197
+ "endDate",
198
+ "errorMessage",
199
+ "frequency",
200
+ "interval",
201
+ "occurrences",
202
+ "rescheduleDate",
203
+ "startDate"
204
+ ]
205
+ },
189
206
  "emits": [
190
207
  {
191
208
  "event": "EDIT_RULE",
@@ -27,6 +27,13 @@
27
27
  "name": "SearchResultSearch",
28
28
  "category": "interaction",
29
29
  "linkedEntity": "SearchResult",
30
+ "entityRebindable": true,
31
+ "entityContract": {
32
+ "requires": [],
33
+ "provides": [
34
+ "searchTerm"
35
+ ]
36
+ },
30
37
  "emits": [
31
38
  {
32
39
  "event": "SEARCH",
@@ -191,6 +191,26 @@
191
191
  "name": "WizardForm",
192
192
  "category": "interaction",
193
193
  "linkedEntity": "WizardView",
194
+ "entityRebindable": true,
195
+ "entityContract": {
196
+ "requires": [],
197
+ "provides": [
198
+ "cancelReason",
199
+ "completionMessage",
200
+ "currentFields",
201
+ "currentStepDescription",
202
+ "currentStepIcon",
203
+ "currentStepIndex",
204
+ "currentStepLabel",
205
+ "errorMessage",
206
+ "isFirstStep",
207
+ "isLastStep",
208
+ "primaryActionIcon",
209
+ "primaryActionLabel",
210
+ "totalSteps",
211
+ "wizardSteps"
212
+ ]
213
+ },
194
214
  "emits": [
195
215
  {
196
216
  "event": "ADVANCE",