@almadar/std 16.196.0 → 16.197.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.
- package/behaviors/lolo/ui/core/atoms/std-browse.lolo +1 -1
- package/behaviors/lolo/ui/core/atoms/std-record-detail.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-chart.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-code-block.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-document-viewer.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-floating-action-button.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-form-actions.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-graph-canvas.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-menu.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-meter.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-page-header.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-qr-scanner.lolo +3 -1
- package/behaviors/lolo/ui/core/molecules/ui-tabs.lolo +2 -2
- package/behaviors/lolo/ui/core/organisms/ui-entity-cards.lolo +0 -1
- package/behaviors/lolo/ui/core/organisms/ui-entity-table.lolo +3 -4
- package/behaviors/lolo/ui/core/organisms/ui-media-gallery.lolo +1 -1
- package/behaviors/lolo/ui/game/atoms/ui-game-menu.lolo +2 -5
- package/behaviors/registry/ui/core/atoms/std-browse.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-record-detail.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-chart.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-code-block.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-document-viewer.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-floating-action-button.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-form-actions.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-graph-canvas.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-menu.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-meter.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-page-header.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-qr-scanner.orb +26 -4
- package/behaviors/registry/ui/core/molecules/ui-tabs.orb +2 -2
- package/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +0 -5
- package/behaviors/registry/ui/core/organisms/ui-entity-table.orb +3 -8
- package/behaviors/registry/ui/core/organisms/ui-media-gallery.orb +1 -1
- package/behaviors/registry/ui/game/atoms/ui-game-menu.orb +2 -20
- package/dist/behaviors/exports-reader.js +6 -16
- package/dist/behaviors/functions/index.d.ts +3 -1
- package/dist/behaviors/functions/index.js +6 -16
- package/dist/behaviors/index.js +6 -16
- package/dist/behaviors/query.js +6 -16
- package/dist/behaviors-embeddings.hash.json +3 -3
- package/dist/behaviors-embeddings.json +1 -1
- package/dist/behaviors-registry.json +1 -1
- package/dist/index.js +6 -16
- package/dist/knob-embeddings.hash.json +3 -3
- package/dist/knob-embeddings.json +1 -1
- package/dist/registry/factory-signatures.json +1 -1
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@ app std-record-detail "1.0.0"
|
|
|
2
2
|
"std-record-detail — single primitive: detail-panel. Owns the fetch-one-record state machine (loading → viewing → error, with RETRY), the record counterpart to std-browse's collection machine. Consumers configure fields/sections/actions and the title/subtitle/status bindings; the atom fetches by the id (or, for slug-routed records, the slug) carried on INIT and renders the panel. `detailLook` (panel default / slide-over / page / document) selects the render body, exactly as std-browse's browseLook selects a collection shape. The `document` look is for records whose shape IS a document (wiki page, note, article): the pure writing surface — a big inline-editable title with the rich-text body DIRECTLY beneath it, Edit/Done and the actions menu tucked into the header corner — where clicking the body drops a cursor in, every typing pause autosaves (CONTENT_SAVED, which the host persists QUIETLY — no refetch, or the editor unmounts mid-keystroke), and Done emits CONTENT_COMMITTED (the host refetches and snapshots version history on this one). Metadata never sits between the title and the words: compose the sibling RecordItemDetails trait beside the doc for a Gutenberg-style settings rail. A row minted blank by a document-first create arrives with draft=1 on INIT and opens straight in the editor. Pair with std-detail-layout for the back + breadcrumb chrome — that atom owns navigation, this one owns the record — exactly as a list page pairs std-browse with std-app-layout."
|
|
3
3
|
;; @capabilities "record detail, single record view, entity detail panel, drill-down record, show one record, record profile, detail page, view details, document editor, wiki page, note taking, article body, rich text editing, write and edit content"
|
|
4
4
|
orbital RecordItemOrbital {
|
|
5
|
-
type RecordAction = { label : string!, event :
|
|
5
|
+
type RecordAction = { label : string!, event : event!, icon : string, variant : primary | secondary | ghost | danger }
|
|
6
6
|
type RecordFieldSpec = { key : string!, header : string, format : date | currency | number | boolean | percent }
|
|
7
7
|
type MetaFieldSpec = { key : string!, label : string, kind : text | boolean | select | readonly, options : [string], icon : string, format : date | currency | number | boolean | percent }
|
|
8
8
|
type RecordSection = { title : string!, fields : [string] }
|
|
@@ -10,7 +10,7 @@ orbital TabsOrbital {
|
|
|
10
10
|
iconAsset : TabsItemsItemIconAsset
|
|
11
11
|
badge : string
|
|
12
12
|
disabled : boolean
|
|
13
|
-
event :
|
|
13
|
+
event : event
|
|
14
14
|
active : boolean
|
|
15
15
|
}
|
|
16
16
|
type TabsItemsItemIconAsset = {
|
|
@@ -36,7 +36,7 @@ orbital TabsOrbital {
|
|
|
36
36
|
iconAsset : TabsTabsItemIconAsset
|
|
37
37
|
badge : string
|
|
38
38
|
disabled : boolean
|
|
39
|
-
event :
|
|
39
|
+
event : event
|
|
40
40
|
active : boolean
|
|
41
41
|
}
|
|
42
42
|
type TabsTabsItemIconAsset = {
|
|
@@ -26,9 +26,8 @@ orbital EntityTableOrbital {
|
|
|
26
26
|
}
|
|
27
27
|
type EntityTableItemActionsItem = {
|
|
28
28
|
label : string!
|
|
29
|
-
event :
|
|
29
|
+
event : event
|
|
30
30
|
navigatesTo : string
|
|
31
|
-
action : string
|
|
32
31
|
placement : "row" | "bulk"
|
|
33
32
|
icon : icon
|
|
34
33
|
variant : "default" | "primary" | "secondary" | "ghost" | "danger"
|
|
@@ -41,13 +40,13 @@ orbital EntityTableOrbital {
|
|
|
41
40
|
label : string!
|
|
42
41
|
icon : icon
|
|
43
42
|
variant : "default" | "danger"
|
|
44
|
-
event :
|
|
43
|
+
event : event
|
|
45
44
|
}
|
|
46
45
|
type EntityTableBulkActionsItem = {
|
|
47
46
|
label : string!
|
|
48
47
|
icon : icon
|
|
49
48
|
variant : "default" | "danger"
|
|
50
|
-
event :
|
|
49
|
+
event : event
|
|
51
50
|
}
|
|
52
51
|
|
|
53
52
|
entity EntityTableItem [runtime] {
|
|
@@ -4,22 +4,20 @@ orbital GameMenuOrbital {
|
|
|
4
4
|
type GameMenuOptionsItem = {
|
|
5
5
|
id : string
|
|
6
6
|
label : string!
|
|
7
|
-
event :
|
|
7
|
+
event : event
|
|
8
8
|
navigatesTo : string
|
|
9
9
|
variant : "primary" | "secondary" | "ghost"
|
|
10
10
|
disabled : boolean
|
|
11
11
|
subLabel : string
|
|
12
|
-
action : string
|
|
13
12
|
}
|
|
14
13
|
type GameMenuMenuItemsItem = {
|
|
15
14
|
id : string
|
|
16
15
|
label : string!
|
|
17
|
-
event :
|
|
16
|
+
event : event
|
|
18
17
|
navigatesTo : string
|
|
19
18
|
variant : "primary" | "secondary" | "ghost"
|
|
20
19
|
disabled : boolean
|
|
21
20
|
subLabel : string
|
|
22
|
-
action : string
|
|
23
21
|
}
|
|
24
22
|
type GameMenuLogo = {
|
|
25
23
|
url : asset!
|
|
@@ -43,7 +41,6 @@ orbital GameMenuOrbital {
|
|
|
43
41
|
variant : "primary" | "secondary" | "ghost"
|
|
44
42
|
disabled : boolean
|
|
45
43
|
subLabel : string
|
|
46
|
-
action : string
|
|
47
44
|
}
|
|
48
45
|
|
|
49
46
|
entity GameMenuItem [runtime] {
|
|
@@ -176,8 +176,19 @@
|
|
|
176
176
|
"type": "object"
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
|
-
"name": "
|
|
180
|
-
"
|
|
179
|
+
"name": "text",
|
|
180
|
+
"required": true,
|
|
181
|
+
"type": "string"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "format",
|
|
185
|
+
"required": true,
|
|
186
|
+
"type": "string"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"name": "timestamp",
|
|
190
|
+
"required": true,
|
|
191
|
+
"type": "number"
|
|
181
192
|
}
|
|
182
193
|
],
|
|
183
194
|
"scope": "external",
|
|
@@ -232,8 +243,19 @@
|
|
|
232
243
|
"type": "object"
|
|
233
244
|
},
|
|
234
245
|
{
|
|
235
|
-
"name": "
|
|
236
|
-
"
|
|
246
|
+
"name": "text",
|
|
247
|
+
"required": true,
|
|
248
|
+
"type": "string"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"name": "format",
|
|
252
|
+
"required": true,
|
|
253
|
+
"type": "string"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "timestamp",
|
|
257
|
+
"required": true,
|
|
258
|
+
"type": "number"
|
|
237
259
|
}
|
|
238
260
|
],
|
|
239
261
|
"tier": "essential"
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"event": {
|
|
136
136
|
"name": "event",
|
|
137
137
|
"required": false,
|
|
138
|
-
"type": "
|
|
138
|
+
"type": "event"
|
|
139
139
|
},
|
|
140
140
|
"icon": {
|
|
141
141
|
"name": "icon",
|
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
"event": {
|
|
305
305
|
"name": "event",
|
|
306
306
|
"required": false,
|
|
307
|
-
"type": "
|
|
307
|
+
"type": "event"
|
|
308
308
|
},
|
|
309
309
|
"icon": {
|
|
310
310
|
"name": "icon",
|
|
@@ -286,11 +286,6 @@
|
|
|
286
286
|
"description": "Actions for each card item (schema-driven)",
|
|
287
287
|
"items": {
|
|
288
288
|
"properties": {
|
|
289
|
-
"action": {
|
|
290
|
-
"name": "action",
|
|
291
|
-
"required": false,
|
|
292
|
-
"type": "string"
|
|
293
|
-
},
|
|
294
289
|
"event": {
|
|
295
290
|
"name": "event",
|
|
296
291
|
"required": false,
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"event": {
|
|
117
117
|
"name": "event",
|
|
118
118
|
"required": false,
|
|
119
|
-
"type": "
|
|
119
|
+
"type": "event"
|
|
120
120
|
},
|
|
121
121
|
"icon": {
|
|
122
122
|
"name": "icon",
|
|
@@ -339,15 +339,10 @@
|
|
|
339
339
|
"description": "Item actions from generated code - maps to rowActions",
|
|
340
340
|
"items": {
|
|
341
341
|
"properties": {
|
|
342
|
-
"action": {
|
|
343
|
-
"name": "action",
|
|
344
|
-
"required": false,
|
|
345
|
-
"type": "string"
|
|
346
|
-
},
|
|
347
342
|
"event": {
|
|
348
343
|
"name": "event",
|
|
349
344
|
"required": false,
|
|
350
|
-
"type": "
|
|
345
|
+
"type": "event"
|
|
351
346
|
},
|
|
352
347
|
"icon": {
|
|
353
348
|
"name": "icon",
|
|
@@ -427,7 +422,7 @@
|
|
|
427
422
|
"event": {
|
|
428
423
|
"name": "event",
|
|
429
424
|
"required": false,
|
|
430
|
-
"type": "
|
|
425
|
+
"type": "event"
|
|
431
426
|
},
|
|
432
427
|
"icon": {
|
|
433
428
|
"name": "icon",
|
|
@@ -194,11 +194,6 @@
|
|
|
194
194
|
"description": "Alias for options (schema compatibility)",
|
|
195
195
|
"items": {
|
|
196
196
|
"properties": {
|
|
197
|
-
"action": {
|
|
198
|
-
"name": "action",
|
|
199
|
-
"required": false,
|
|
200
|
-
"type": "string"
|
|
201
|
-
},
|
|
202
197
|
"disabled": {
|
|
203
198
|
"name": "disabled",
|
|
204
199
|
"required": false,
|
|
@@ -207,7 +202,7 @@
|
|
|
207
202
|
"event": {
|
|
208
203
|
"name": "event",
|
|
209
204
|
"required": false,
|
|
210
|
-
"type": "
|
|
205
|
+
"type": "event"
|
|
211
206
|
},
|
|
212
207
|
"id": {
|
|
213
208
|
"name": "id",
|
|
@@ -258,11 +253,6 @@
|
|
|
258
253
|
"description": "Menu options - accepts readonly for compatibility with generated const arrays",
|
|
259
254
|
"items": {
|
|
260
255
|
"properties": {
|
|
261
|
-
"action": {
|
|
262
|
-
"name": "action",
|
|
263
|
-
"required": false,
|
|
264
|
-
"type": "string"
|
|
265
|
-
},
|
|
266
256
|
"disabled": {
|
|
267
257
|
"name": "disabled",
|
|
268
258
|
"required": false,
|
|
@@ -271,7 +261,7 @@
|
|
|
271
261
|
"event": {
|
|
272
262
|
"name": "event",
|
|
273
263
|
"required": false,
|
|
274
|
-
"type": "
|
|
264
|
+
"type": "event"
|
|
275
265
|
},
|
|
276
266
|
"id": {
|
|
277
267
|
"name": "id",
|
|
@@ -361,10 +351,6 @@
|
|
|
361
351
|
{
|
|
362
352
|
"name": "subLabel",
|
|
363
353
|
"type": "string"
|
|
364
|
-
},
|
|
365
|
-
{
|
|
366
|
-
"name": "action",
|
|
367
|
-
"type": "string"
|
|
368
354
|
}
|
|
369
355
|
],
|
|
370
356
|
"type": "object"
|
|
@@ -431,10 +417,6 @@
|
|
|
431
417
|
{
|
|
432
418
|
"name": "subLabel",
|
|
433
419
|
"type": "string"
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
"name": "action",
|
|
437
|
-
"type": "string"
|
|
438
420
|
}
|
|
439
421
|
],
|
|
440
422
|
"type": "object"
|
|
@@ -16192,7 +16192,7 @@ function stdBrowseBrowseItemOrbital(params = {}) {
|
|
|
16192
16192
|
"event": {
|
|
16193
16193
|
"name": "event",
|
|
16194
16194
|
"required": true,
|
|
16195
|
-
"type": "
|
|
16195
|
+
"type": "event"
|
|
16196
16196
|
},
|
|
16197
16197
|
"icon": {
|
|
16198
16198
|
"name": "icon",
|
|
@@ -65425,7 +65425,7 @@ function stdRecordDetailRecordItemOrbital(params = {}) {
|
|
|
65425
65425
|
"event": {
|
|
65426
65426
|
"name": "event",
|
|
65427
65427
|
"required": true,
|
|
65428
|
-
"type": "
|
|
65428
|
+
"type": "event"
|
|
65429
65429
|
},
|
|
65430
65430
|
"icon": {
|
|
65431
65431
|
"name": "icon",
|
|
@@ -147803,11 +147803,6 @@ function stdUiEntityCardsEntityCardsOrbital(params = {}) {
|
|
|
147803
147803
|
"description": "Actions for each card item (schema-driven)",
|
|
147804
147804
|
"items": {
|
|
147805
147805
|
"properties": {
|
|
147806
|
-
"action": {
|
|
147807
|
-
"name": "action",
|
|
147808
|
-
"required": false,
|
|
147809
|
-
"type": "string"
|
|
147810
|
-
},
|
|
147811
147806
|
"event": {
|
|
147812
147807
|
"name": "event",
|
|
147813
147808
|
"required": false,
|
|
@@ -148812,7 +148807,7 @@ function stdUiEntityTableEntityTableOrbital(params = {}) {
|
|
|
148812
148807
|
"event": {
|
|
148813
148808
|
"name": "event",
|
|
148814
148809
|
"required": false,
|
|
148815
|
-
"type": "
|
|
148810
|
+
"type": "event"
|
|
148816
148811
|
},
|
|
148817
148812
|
"icon": {
|
|
148818
148813
|
"name": "icon",
|
|
@@ -149035,15 +149030,10 @@ function stdUiEntityTableEntityTableOrbital(params = {}) {
|
|
|
149035
149030
|
"description": "Item actions from generated code - maps to rowActions",
|
|
149036
149031
|
"items": {
|
|
149037
149032
|
"properties": {
|
|
149038
|
-
"action": {
|
|
149039
|
-
"name": "action",
|
|
149040
|
-
"required": false,
|
|
149041
|
-
"type": "string"
|
|
149042
|
-
},
|
|
149043
149033
|
"event": {
|
|
149044
149034
|
"name": "event",
|
|
149045
149035
|
"required": false,
|
|
149046
|
-
"type": "
|
|
149036
|
+
"type": "event"
|
|
149047
149037
|
},
|
|
149048
149038
|
"icon": {
|
|
149049
149039
|
"name": "icon",
|
|
@@ -149123,7 +149113,7 @@ function stdUiEntityTableEntityTableOrbital(params = {}) {
|
|
|
149123
149113
|
"event": {
|
|
149124
149114
|
"name": "event",
|
|
149125
149115
|
"required": false,
|
|
149126
|
-
"type": "
|
|
149116
|
+
"type": "event"
|
|
149127
149117
|
},
|
|
149128
149118
|
"icon": {
|
|
149129
149119
|
"name": "icon",
|
|
@@ -153426,7 +153416,7 @@ function stdUiMediaGalleryMediaGalleryOrbital(params = {}) {
|
|
|
153426
153416
|
"event": {
|
|
153427
153417
|
"name": "event",
|
|
153428
153418
|
"required": false,
|
|
153429
|
-
"type": "
|
|
153419
|
+
"type": "event"
|
|
153430
153420
|
},
|
|
153431
153421
|
"label": {
|
|
153432
153422
|
"name": "label",
|
|
@@ -38503,7 +38503,9 @@ type StdUiQrScannerEventKey = 'INIT' | 'SCAN';
|
|
|
38503
38503
|
*/
|
|
38504
38504
|
interface StdUiQrScannerScanPayload {
|
|
38505
38505
|
result?: EntityRow;
|
|
38506
|
-
|
|
38506
|
+
text: string;
|
|
38507
|
+
format: string;
|
|
38508
|
+
timestamp: number;
|
|
38507
38509
|
}
|
|
38508
38510
|
/**
|
|
38509
38511
|
* Typed call-site config block for this trait — every
|