@almadar/std 16.188.0 → 16.190.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 (46) hide show
  1. package/behaviors/lolo/ui/core/.hand-authored.json +0 -4
  2. package/behaviors/lolo/ui/core/atoms/std-calendar.lolo +20 -8
  3. package/behaviors/lolo/ui/core/atoms/std-record-detail.lolo +428 -26
  4. package/behaviors/lolo/ui/core/atoms/std-related.lolo +5 -1
  5. package/behaviors/lolo/ui/core/atoms/std-version-history.lolo +1 -1
  6. package/behaviors/lolo/ui/core/molecules/ui-document-details.lolo +80 -0
  7. package/behaviors/lolo/ui/core/molecules/ui-document-panel.lolo +213 -0
  8. package/behaviors/lolo/ui/core/molecules/{ui-rich-block-editor.lolo → ui-rich-text-editor.lolo} +25 -25
  9. package/behaviors/lolo/ui/game/atoms/std-choice-gate.lolo +100 -0
  10. package/behaviors/lolo/ui/game/atoms/std-coef-pad.lolo +114 -0
  11. package/behaviors/lolo/ui/game/atoms/std-curve-fog.lolo +50 -0
  12. package/behaviors/lolo/ui/game/atoms/std-pad-lock.lolo +5 -1
  13. package/behaviors/lolo/ui/game/atoms/std-platformer-body.lolo +29 -3
  14. package/behaviors/lolo/ui/game/atoms/std-zone-card.lolo +95 -0
  15. package/behaviors/lolo/ui/game/organisms/std-platformer-board-2d.lolo +9 -0
  16. package/behaviors/registry/ui/core/atoms/std-calendar.orb +51 -27
  17. package/behaviors/registry/ui/core/atoms/std-record-detail.orb +2399 -180
  18. package/behaviors/registry/ui/core/atoms/std-related.orb +23 -1
  19. package/behaviors/registry/ui/core/atoms/std-version-history.orb +1 -1
  20. package/behaviors/registry/ui/core/molecules/ui-document-details.orb +342 -0
  21. package/behaviors/registry/ui/core/molecules/ui-document-panel.orb +655 -0
  22. package/behaviors/registry/ui/core/molecules/{ui-rich-block-editor.orb → ui-rich-text-editor.orb} +84 -97
  23. package/behaviors/registry/ui/game/atoms/std-choice-gate.orb +855 -0
  24. package/behaviors/registry/ui/game/atoms/std-coef-pad.orb +928 -0
  25. package/behaviors/registry/ui/game/atoms/std-curve-fog.orb +337 -0
  26. package/behaviors/registry/ui/game/atoms/std-pad-lock.orb +31 -1
  27. package/behaviors/registry/ui/game/atoms/std-platformer-body.orb +847 -401
  28. package/behaviors/registry/ui/game/atoms/std-zone-card.orb +642 -0
  29. package/behaviors/registry/ui/game/organisms/std-platformer-board-2d.orb +38 -6
  30. package/dist/behaviors/exports-reader.js +6491 -6163
  31. package/dist/behaviors/functions/index.d.ts +669 -300
  32. package/dist/behaviors/functions/index.js +6469 -6152
  33. package/dist/behaviors/index.d.ts +1 -1
  34. package/dist/behaviors/index.js +6492 -6164
  35. package/dist/behaviors/query.js +6491 -6163
  36. package/dist/behaviors-embeddings.hash.json +3 -3
  37. package/dist/behaviors-embeddings.json +367 -375
  38. package/dist/behaviors-registry.json +4104 -2597
  39. package/dist/index.d.ts +1 -1
  40. package/dist/index.js +6492 -6164
  41. package/dist/knob-embeddings.hash.json +3 -3
  42. package/dist/knob-embeddings.json +1 -1
  43. package/dist/registry/factory-signatures.json +1 -1
  44. package/package.json +4 -4
  45. package/behaviors/lolo/ui/core/atoms/std-rich-editor.lolo +0 -790
  46. package/behaviors/registry/ui/core/atoms/std-rich-editor.orb +0 -2225
@@ -132,6 +132,13 @@
132
132
  {
133
133
  "category": "interaction",
134
134
  "config": {
135
+ "labelField": {
136
+ "default": "name",
137
+ "description": "Name of the field on the (rebound) related row rendered as the row label and carried as SELECT_RELATED's name — set it to `title` (etc.) whenever the bound entity labels rows differently. The rows are mapped through this at render time, because a trait-level `fields {}` rename is declaration-only on the runtime path and every populated row used to render a blank label.",
138
+ "label": "Which field labels each related row?",
139
+ "tier": "presentation",
140
+ "type": "string"
141
+ },
135
142
  "relationField": {
136
143
  "default": "",
137
144
  "description": "RelatedItem field compared against SHOW_RELATED's key to scope the fetch to one parent document; empty renders the full unfiltered collection (default).",
@@ -444,7 +451,22 @@
444
451
  "type": "divider"
445
452
  },
446
453
  {
447
- "entity": "@payload.data",
454
+ "entity": [
455
+ "array/map",
456
+ "@payload.data",
457
+ [
458
+ "fn",
459
+ "row",
460
+ {
461
+ "id": "@row.id",
462
+ "name": [
463
+ "object/get",
464
+ "@row",
465
+ "@config.labelField"
466
+ ]
467
+ }
468
+ ]
469
+ ],
448
470
  "fields": [],
449
471
  "look": "@config.tableLook",
450
472
  "renderItem": [
@@ -172,7 +172,7 @@
172
172
  "type": "string"
173
173
  },
174
174
  {
175
- "description": "The textual data of the revision.",
175
+ "description": "The snapshotted body of the revision — plain text or the rich-text HTML a document-look record carries. Rollback hands the whole row back to the host, which restores content onto the source document.",
176
176
  "name": "content",
177
177
  "synonyms": "text, body, data, value",
178
178
  "type": "string"
@@ -0,0 +1,342 @@
1
+ {
2
+ "description": "DocumentDetails — the document's metadata as a compact settings card for the rail beside a DocumentPanel, each property committing in place. — UI factory (1:1 with the @almadar/ui document-details pattern).",
3
+ "ledger": {
4
+ "entries": {
5
+ "ent_01M13ZXC5915PAZWDBTP787F3C": {
6
+ "bakedName": "DocumentDetailsItem",
7
+ "curName": "DocumentDetailsItem",
8
+ "id": "ent_01M13ZXC5915PAZWDBTP787F3C",
9
+ "kind": "entity",
10
+ "owner": "workspace",
11
+ "renames": []
12
+ },
13
+ "evt_01M13ZXC59HB41Z83ZYJR50JQP": {
14
+ "bakedName": "DocumentDetailsLoaded",
15
+ "curName": "DocumentDetailsLoaded",
16
+ "id": "evt_01M13ZXC59HB41Z83ZYJR50JQP",
17
+ "kind": "event",
18
+ "owner": "workspace",
19
+ "parent": "trt_01M13ZXC5906BVQKXF5JMWBD0E",
20
+ "renames": []
21
+ },
22
+ "evt_01M13ZXC59R4VP1T1DHD262B08": {
23
+ "bakedName": "@config.metaCommitEvent",
24
+ "curName": "@config.metaCommitEvent",
25
+ "id": "evt_01M13ZXC59R4VP1T1DHD262B08",
26
+ "kind": "event",
27
+ "owner": "workspace",
28
+ "parent": "trt_01M13ZXC5906BVQKXF5JMWBD0E",
29
+ "renames": []
30
+ },
31
+ "evt_01M13ZXC59XKCDATMN4TVFVMZ7": {
32
+ "bakedName": "INIT",
33
+ "curName": "INIT",
34
+ "id": "evt_01M13ZXC59XKCDATMN4TVFVMZ7",
35
+ "kind": "event",
36
+ "owner": "workspace",
37
+ "parent": "trt_01M13ZXC5906BVQKXF5JMWBD0E",
38
+ "renames": []
39
+ },
40
+ "orb_01M13ZXC59HR3466AAAMSKD8MY": {
41
+ "bakedName": "DocumentDetailsOrbital",
42
+ "curName": "DocumentDetailsOrbital",
43
+ "id": "orb_01M13ZXC59HR3466AAAMSKD8MY",
44
+ "kind": "orbital",
45
+ "owner": "workspace",
46
+ "renames": []
47
+ },
48
+ "pag_01M13ZXC59XXQ26RB47SYE4W95": {
49
+ "bakedName": "DocumentDetailsPage",
50
+ "curName": "DocumentDetailsPage",
51
+ "id": "pag_01M13ZXC59XXQ26RB47SYE4W95",
52
+ "kind": "page",
53
+ "owner": "workspace",
54
+ "renames": []
55
+ },
56
+ "trt_01M13ZXC5906BVQKXF5JMWBD0E": {
57
+ "bakedName": "DocumentDetailsRender",
58
+ "curName": "DocumentDetailsRender",
59
+ "id": "trt_01M13ZXC5906BVQKXF5JMWBD0E",
60
+ "kind": "trait",
61
+ "owner": "workspace",
62
+ "renames": []
63
+ }
64
+ },
65
+ "schemaVersion": 1
66
+ },
67
+ "name": "ui-document-details",
68
+ "orbitals": [
69
+ {
70
+ "entity": {
71
+ "fields": [
72
+ {
73
+ "name": "id",
74
+ "required": true,
75
+ "type": "string"
76
+ }
77
+ ],
78
+ "id": "ent_01M13ZXC5915PAZWDBTP787F3C",
79
+ "name": "DocumentDetailsItem",
80
+ "persistence": "runtime"
81
+ },
82
+ "id": "orb_01M13ZXC59HR3466AAAMSKD8MY",
83
+ "name": "DocumentDetailsOrbital",
84
+ "pages": [
85
+ {
86
+ "id": "pag_01M13ZXC59XXQ26RB47SYE4W95",
87
+ "name": "DocumentDetailsPage",
88
+ "path": "/document-details",
89
+ "traits": [
90
+ {
91
+ "ref": "DocumentDetailsRender",
92
+ "refId": "trt_01M13ZXC5906BVQKXF5JMWBD0E"
93
+ }
94
+ ]
95
+ }
96
+ ],
97
+ "traits": [
98
+ {
99
+ "category": "interaction",
100
+ "config": {
101
+ "className": {
102
+ "description": "className prop",
103
+ "label": "Class Name",
104
+ "tier": "presentation",
105
+ "type": "string"
106
+ },
107
+ "fields": {
108
+ "default": [],
109
+ "description": "The properties shown; empty renders nothing.",
110
+ "items": {
111
+ "properties": {
112
+ "format": {
113
+ "name": "format",
114
+ "required": false,
115
+ "type": "string",
116
+ "values": [
117
+ "date",
118
+ "currency",
119
+ "number",
120
+ "boolean",
121
+ "percent"
122
+ ]
123
+ },
124
+ "header": {
125
+ "name": "header",
126
+ "required": false,
127
+ "type": "string"
128
+ },
129
+ "icon": {
130
+ "name": "icon",
131
+ "required": false,
132
+ "type": "string"
133
+ },
134
+ "key": {
135
+ "name": "key",
136
+ "required": false,
137
+ "type": "string"
138
+ },
139
+ "kind": {
140
+ "name": "kind",
141
+ "required": false,
142
+ "type": "string",
143
+ "values": [
144
+ "text",
145
+ "boolean",
146
+ "select",
147
+ "readonly"
148
+ ]
149
+ },
150
+ "label": {
151
+ "name": "label",
152
+ "required": false,
153
+ "type": "string"
154
+ },
155
+ "name": {
156
+ "name": "name",
157
+ "required": false,
158
+ "type": "string"
159
+ },
160
+ "options": {
161
+ "items": {
162
+ "type": "string"
163
+ },
164
+ "name": "options",
165
+ "required": false,
166
+ "type": "array"
167
+ }
168
+ },
169
+ "type": "object"
170
+ },
171
+ "label": "Fields",
172
+ "tier": "presentation",
173
+ "type": "[DocumentDetailsFieldsItem]"
174
+ },
175
+ "metaCommitEvent": {
176
+ "default": "META_COMMIT",
177
+ "description": "Emitted when a property commits: { id, patch } — patch carries the id plus the one changed field, ready for a partial persist update.",
178
+ "label": "Meta Commit Event",
179
+ "tier": "presentation",
180
+ "type": "string"
181
+ },
182
+ "title": {
183
+ "description": "Card heading (defaults to the localized 'Details')",
184
+ "label": "Title",
185
+ "tier": "presentation",
186
+ "type": "string"
187
+ }
188
+ },
189
+ "emits": [
190
+ {
191
+ "description": "Emitted when a property commits: { id, patch } — patch carries the id plus the one changed field, ready for a partial persist update.",
192
+ "event": "@config.metaCommitEvent",
193
+ "eventId": "evt_01M13ZXC59R4VP1T1DHD262B08",
194
+ "payloadSchema": [
195
+ {
196
+ "name": "id",
197
+ "required": true,
198
+ "type": "string"
199
+ },
200
+ {
201
+ "name": "patch",
202
+ "required": true,
203
+ "type": "object"
204
+ }
205
+ ],
206
+ "scope": "external",
207
+ "tier": "essential"
208
+ },
209
+ {
210
+ "description": "DocumentDetails rows finished loading; payload.data holds the collection.",
211
+ "event": "DocumentDetailsLoaded",
212
+ "eventId": "evt_01M13ZXC59HB41Z83ZYJR50JQP",
213
+ "payloadSchema": [
214
+ {
215
+ "name": "data",
216
+ "type": "[DocumentDetailsItem]"
217
+ }
218
+ ],
219
+ "scope": "internal",
220
+ "synonyms": "loaded, fetched, retrieved",
221
+ "tier": "essential"
222
+ }
223
+ ],
224
+ "entityContract": {
225
+ "provides": [],
226
+ "requires": []
227
+ },
228
+ "entityRebindable": true,
229
+ "entityRefIds": {
230
+ "DocumentDetailsItem": "ent_01M13ZXC5915PAZWDBTP787F3C"
231
+ },
232
+ "id": "trt_01M13ZXC5906BVQKXF5JMWBD0E",
233
+ "linkedEntity": "DocumentDetailsItem",
234
+ "linkedEntityId": "ent_01M13ZXC5915PAZWDBTP787F3C",
235
+ "name": "DocumentDetailsRender",
236
+ "scope": "instance",
237
+ "stateMachine": {
238
+ "events": [
239
+ {
240
+ "id": "evt_01M13ZXC59XKCDATMN4TVFVMZ7",
241
+ "key": "INIT",
242
+ "name": "Initialize"
243
+ },
244
+ {
245
+ "description": "DocumentDetails rows finished loading; payload.data holds the collection.",
246
+ "id": "evt_01M13ZXC59HB41Z83ZYJR50JQP",
247
+ "key": "DocumentDetailsLoaded",
248
+ "name": "Document details loaded",
249
+ "payloadSchema": [
250
+ {
251
+ "name": "data",
252
+ "type": "[DocumentDetailsItem]"
253
+ }
254
+ ],
255
+ "synonyms": "loaded, fetched, retrieved",
256
+ "tier": "essential"
257
+ },
258
+ {
259
+ "description": "Emitted when a property commits: { id, patch } — patch carries the id plus the one changed field, ready for a partial persist update.",
260
+ "id": "evt_01M13ZXC59R4VP1T1DHD262B08",
261
+ "key": "@config.metaCommitEvent",
262
+ "name": "@config.meta commit event",
263
+ "payloadSchema": [
264
+ {
265
+ "name": "id",
266
+ "required": true,
267
+ "type": "string"
268
+ },
269
+ {
270
+ "name": "patch",
271
+ "required": true,
272
+ "type": "object"
273
+ }
274
+ ],
275
+ "tier": "essential"
276
+ }
277
+ ],
278
+ "states": [
279
+ {
280
+ "isInitial": true,
281
+ "name": "idle"
282
+ }
283
+ ],
284
+ "transitions": [
285
+ {
286
+ "effects": [
287
+ [
288
+ "fetch",
289
+ "DocumentDetailsItem",
290
+ {
291
+ "emit": {
292
+ "success": "DocumentDetailsLoaded"
293
+ }
294
+ }
295
+ ],
296
+ [
297
+ "render-ui",
298
+ "main",
299
+ {
300
+ "className": "@config.className",
301
+ "entity": "@entity",
302
+ "fields": "@config.fields",
303
+ "metaCommitEvent": "@config.metaCommitEvent",
304
+ "title": "@config.title",
305
+ "type": "document-details"
306
+ }
307
+ ]
308
+ ],
309
+ "event": "INIT",
310
+ "eventId": "evt_01M13ZXC59XKCDATMN4TVFVMZ7",
311
+ "from": "idle",
312
+ "to": "idle"
313
+ },
314
+ {
315
+ "effects": [
316
+ [
317
+ "render-ui",
318
+ "main",
319
+ {
320
+ "className": "@config.className",
321
+ "entity": "@payload.data",
322
+ "fields": "@config.fields",
323
+ "metaCommitEvent": "@config.metaCommitEvent",
324
+ "title": "@config.title",
325
+ "type": "document-details"
326
+ }
327
+ ]
328
+ ],
329
+ "event": "DocumentDetailsLoaded",
330
+ "eventId": "evt_01M13ZXC59HB41Z83ZYJR50JQP",
331
+ "from": "idle",
332
+ "to": "idle"
333
+ }
334
+ ]
335
+ }
336
+ }
337
+ ]
338
+ }
339
+ ],
340
+ "schemaVersion": 1,
341
+ "version": "1.0.0"
342
+ }