@threadlabs/looma 0.43.2 → 0.44.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/components/ui-callout/ui-callout.html +4 -4
- package/components/ui-dialog/ui-dialog.html +0 -4
- package/components/ui-editor-footnote-editor/ui-editor-footnote-editor.html +4 -50
- package/components/ui-editor-footnote-editor/ui-editor-footnote-editor.js +10 -31
- package/dist/index.js +1 -1
- package/docs/README.md +19 -3
- package/docs/card.html +1 -1
- package/docs/catalog-view.js +11 -5
- package/docs/catalog-view.mjs +4 -3
- package/docs/catalog.json +73 -109
- package/docs/catalog.mjs +1 -1
- package/docs/customizer-render.mjs +9 -8
- package/docs/customizer.js +8 -8
- package/docs/documentation.css +2 -2
- package/docs/examples/ui-editor-footnote-editor/examples/01-note.behavior.js +9 -0
- package/docs/fonts.mjs +1 -1
- package/docs/index.mjs +1 -1
- package/docs/render.mjs +1 -1
- package/docs/site.mjs +14 -5
- package/docs/theme.mjs +96 -16
- package/editor/chunks/extensions.js +10 -0
- package/editor/extensions/footnote.d.ts +1 -0
- package/editor/footnote-editing.d.ts +16 -27
- package/package.json +2 -2
- package/styles/ui-callout.css +4 -4
- package/styles/ui-dialog.css +0 -8
- package/theme-dark.css +9 -9
- package/theme-high-contrast.css +4 -0
- package/theme-light.css +6 -6
- package/tokens.css +20 -18
- package/vanilla/UiEditorFootnoteEditor.d.ts +0 -5
- package/vanilla/UiEditorFootnoteEditor.js +20 -68
- package/vue/UiCallout.vue +4 -4
- package/vue/UiDialog.vue +0 -7
- package/vue/UiEditorFootnoteEditor.d.ts +11 -29
- package/vue/UiEditorFootnoteEditor.vue +21 -173
- package/vue/chunks/UiCallout.js +1 -1
- package/vue/chunks/UiDialog.js +1 -1
- package/vue/chunks/UiEditorFootnoteEditor.js +34 -226
- package/vue/chunks/UiEditorImageToolbar.js +1 -1
- package/vue/chunks/UiEditorLinkForm.js +1 -1
- package/vue/chunks/compact.js +565 -0
- package/vue/components.css +320 -327
- package/vue/editor/LoomaEditor.d.ts +2 -2
- package/vue/editor/compact/index.js +1 -562
- package/vue/editor/index.js +173 -80
- package/vue/index.js +2 -2
package/docs/catalog.json
CHANGED
|
@@ -463,7 +463,7 @@
|
|
|
463
463
|
],
|
|
464
464
|
"schemaVersion": 1,
|
|
465
465
|
"package": "@threadlabs/looma",
|
|
466
|
-
"version": "0.
|
|
466
|
+
"version": "0.44.0",
|
|
467
467
|
"groups": [
|
|
468
468
|
{
|
|
469
469
|
"id": "layout",
|
|
@@ -535,6 +535,7 @@
|
|
|
535
535
|
"description": "Named content for the primary region."
|
|
536
536
|
}
|
|
537
537
|
],
|
|
538
|
+
"summary": "Form and dialog actions, ordered by purpose.",
|
|
538
539
|
"group": "layout",
|
|
539
540
|
"id": "@threadlabs/looma/ui-action-bar",
|
|
540
541
|
"title": "Action Bar",
|
|
@@ -1945,6 +1946,7 @@
|
|
|
1945
1946
|
"description": "Default child content."
|
|
1946
1947
|
}
|
|
1947
1948
|
],
|
|
1949
|
+
"summary": "A link or current location in a breadcrumb trail.",
|
|
1948
1950
|
"group": "display",
|
|
1949
1951
|
"navigationParent": "ui-breadcrumbs",
|
|
1950
1952
|
"id": "@threadlabs/looma/ui-breadcrumb-item",
|
|
@@ -2026,6 +2028,7 @@
|
|
|
2026
2028
|
"description": "Default child content."
|
|
2027
2029
|
}
|
|
2028
2030
|
],
|
|
2031
|
+
"summary": "A linked path from the top level to the current page.",
|
|
2029
2032
|
"group": "display",
|
|
2030
2033
|
"id": "@threadlabs/looma/ui-breadcrumbs",
|
|
2031
2034
|
"title": "Breadcrumbs",
|
|
@@ -3273,9 +3276,9 @@
|
|
|
3273
3276
|
"declarations": [
|
|
3274
3277
|
"var(--ui-info-soft-border)",
|
|
3275
3278
|
"var(--ui-border-strong)",
|
|
3276
|
-
"var(--ui-success-soft-border)",
|
|
3277
3279
|
"var(--ui-accent-soft-border)",
|
|
3278
3280
|
"var(--ui-warning-soft-border)",
|
|
3281
|
+
"var(--ui-success-soft-border)",
|
|
3279
3282
|
"var(--ui-danger-soft-border)"
|
|
3280
3283
|
]
|
|
3281
3284
|
},
|
|
@@ -3296,9 +3299,9 @@
|
|
|
3296
3299
|
"declarations": [
|
|
3297
3300
|
"var(--ui-info-subtle-text)",
|
|
3298
3301
|
"var(--ui-text-secondary)",
|
|
3299
|
-
"var(--ui-success-subtle-text)",
|
|
3300
3302
|
"var(--ui-accent-subtle-text)",
|
|
3301
3303
|
"var(--ui-warning-subtle-text)",
|
|
3304
|
+
"var(--ui-success-subtle-text)",
|
|
3302
3305
|
"var(--ui-danger-subtle-text)"
|
|
3303
3306
|
]
|
|
3304
3307
|
},
|
|
@@ -3338,9 +3341,9 @@
|
|
|
3338
3341
|
"declarations": [
|
|
3339
3342
|
"var(--ui-info-soft)",
|
|
3340
3343
|
"var(--ui-surface-muted)",
|
|
3341
|
-
"var(--ui-success-soft)",
|
|
3342
3344
|
"var(--ui-accent-soft)",
|
|
3343
3345
|
"var(--ui-warning-soft)",
|
|
3346
|
+
"var(--ui-success-soft)",
|
|
3344
3347
|
"var(--ui-danger-soft)"
|
|
3345
3348
|
]
|
|
3346
3349
|
},
|
|
@@ -3349,9 +3352,9 @@
|
|
|
3349
3352
|
"declarations": [
|
|
3350
3353
|
"var(--ui-info-subtle-text)",
|
|
3351
3354
|
"var(--ui-text-primary)",
|
|
3352
|
-
"var(--ui-success-subtle-text)",
|
|
3353
3355
|
"var(--ui-accent-subtle-text)",
|
|
3354
3356
|
"var(--ui-warning-subtle-text)",
|
|
3357
|
+
"var(--ui-success-subtle-text)",
|
|
3355
3358
|
"var(--ui-danger-subtle-text)",
|
|
3356
3359
|
"var(--ui-callout-text, var(--_callout-tone-text))"
|
|
3357
3360
|
]
|
|
@@ -3526,8 +3529,8 @@
|
|
|
3526
3529
|
"id": "@threadlabs/looma/ui-callout/02-tone-values",
|
|
3527
3530
|
"name": "02-tone-values",
|
|
3528
3531
|
"title": "Tone values",
|
|
3529
|
-
"description": "
|
|
3530
|
-
"markup": "<ui-stack gap=\"s\">\n <ui-callout tone=\"note\">Note message.</ui-callout>\n <ui-callout tone=\"tip\">Tip message.</ui-callout>\n <ui-callout tone=\"important\">Important message.</ui-callout>\n <ui-callout tone=\"warning\">Warning message.</ui-callout>\n <ui-callout tone=\"danger\">Danger message.</ui-callout>\n <ui-callout tone=\"success\">Success message.</ui-callout>\n</ui-stack>",
|
|
3532
|
+
"description": "Advice, emphasis, warnings, and confirmations have distinct icons and colors. Tip shares Info’s palette; Caution uses danger styling.",
|
|
3533
|
+
"markup": "<ui-stack gap=\"s\">\n <ui-callout tone=\"note\">Note message.</ui-callout>\n <ui-callout tone=\"tip\">Tip message.</ui-callout>\n <ui-callout tone=\"info\">Info message.</ui-callout>\n <ui-callout tone=\"important\">Important message.</ui-callout>\n <ui-callout tone=\"warning\">Warning message.</ui-callout>\n <ui-callout tone=\"danger\">Danger message.</ui-callout>\n <ui-callout tone=\"success\">Success message.</ui-callout>\n</ui-stack>",
|
|
3531
3534
|
"resizable": false,
|
|
3532
3535
|
"bindings": "",
|
|
3533
3536
|
"frameworks": {}
|
|
@@ -3861,6 +3864,7 @@
|
|
|
3861
3864
|
"description": "Default child content."
|
|
3862
3865
|
}
|
|
3863
3866
|
],
|
|
3867
|
+
"summary": "A surface that groups related content.",
|
|
3864
3868
|
"group": "display",
|
|
3865
3869
|
"id": "@threadlabs/looma/ui-card",
|
|
3866
3870
|
"title": "Card",
|
|
@@ -4249,6 +4253,7 @@
|
|
|
4249
4253
|
"description": "Named content for the description region."
|
|
4250
4254
|
}
|
|
4251
4255
|
],
|
|
4256
|
+
"summary": "A labeled checkbox with checked and mixed states.",
|
|
4252
4257
|
"group": "forms",
|
|
4253
4258
|
"id": "@threadlabs/looma/ui-checkbox",
|
|
4254
4259
|
"title": "Checkbox",
|
|
@@ -6978,6 +6983,7 @@
|
|
|
6978
6983
|
"description": "Default child content."
|
|
6979
6984
|
}
|
|
6980
6985
|
],
|
|
6986
|
+
"summary": "Actions opened by right-click, long-press, or the keyboard menu key.",
|
|
6981
6987
|
"group": "overlay",
|
|
6982
6988
|
"id": "@threadlabs/looma/ui-context-menu",
|
|
6983
6989
|
"title": "Context Menu",
|
|
@@ -7070,6 +7076,7 @@
|
|
|
7070
7076
|
"description": "Default child content."
|
|
7071
7077
|
}
|
|
7072
7078
|
],
|
|
7079
|
+
"summary": "Content centered within a page or its available space.",
|
|
7073
7080
|
"group": "layout",
|
|
7074
7081
|
"id": "@threadlabs/looma/ui-cover",
|
|
7075
7082
|
"title": "Cover",
|
|
@@ -7729,6 +7736,7 @@
|
|
|
7729
7736
|
"description": "Default child content."
|
|
7730
7737
|
}
|
|
7731
7738
|
],
|
|
7739
|
+
"summary": "Labeled values arranged in rows, columns, or tiles.",
|
|
7732
7740
|
"group": "display",
|
|
7733
7741
|
"id": "@threadlabs/looma/ui-description-list",
|
|
7734
7742
|
"title": "Description List",
|
|
@@ -9128,9 +9136,9 @@
|
|
|
9128
9136
|
}
|
|
9129
9137
|
],
|
|
9130
9138
|
"slots": [],
|
|
9139
|
+
"title": "Block Actions",
|
|
9131
9140
|
"group": "editor",
|
|
9132
9141
|
"id": "@threadlabs/looma/ui-editor-block-actions",
|
|
9133
|
-
"title": "Editor Block Actions",
|
|
9134
9142
|
"resource": "@threadlabs/looma/components/ui-editor-block-actions/ui-editor-block-actions.html",
|
|
9135
9143
|
"targets": [
|
|
9136
9144
|
"html-next",
|
|
@@ -9260,9 +9268,9 @@
|
|
|
9260
9268
|
}
|
|
9261
9269
|
],
|
|
9262
9270
|
"slots": [],
|
|
9271
|
+
"title": "Chip Editor",
|
|
9263
9272
|
"group": "editor",
|
|
9264
9273
|
"id": "@threadlabs/looma/ui-editor-chip-editor",
|
|
9265
|
-
"title": "Editor Chip Editor",
|
|
9266
9274
|
"resource": "@threadlabs/looma/components/ui-editor-chip-editor/ui-editor-chip-editor.html",
|
|
9267
9275
|
"targets": [
|
|
9268
9276
|
"html-next",
|
|
@@ -9371,9 +9379,9 @@
|
|
|
9371
9379
|
}
|
|
9372
9380
|
],
|
|
9373
9381
|
"slots": [],
|
|
9382
|
+
"title": "Code Language",
|
|
9374
9383
|
"group": "editor",
|
|
9375
9384
|
"id": "@threadlabs/looma/ui-editor-code-language",
|
|
9376
|
-
"title": "Editor Code Language",
|
|
9377
9385
|
"resource": "@threadlabs/looma/components/ui-editor-code-language/ui-editor-code-language.html",
|
|
9378
9386
|
"targets": [
|
|
9379
9387
|
"html-next",
|
|
@@ -9406,7 +9414,7 @@
|
|
|
9406
9414
|
"tag": "ui-editor-footnote-editor",
|
|
9407
9415
|
"package": "@threadlabs/looma",
|
|
9408
9416
|
"root": "div",
|
|
9409
|
-
"description": "The
|
|
9417
|
+
"description": "The floating footnote editor frame. Compose a rich-text field in its default slot, or use its simple note field. The document numbers references automatically; Changes apply as you type; Escape or clicking away closes the editor.",
|
|
9410
9418
|
"designTokens": {
|
|
9411
9419
|
"sources": [
|
|
9412
9420
|
"packages/looma/src/components/ui-editor-footnote-editor/ui-editor-footnote-editor.html"
|
|
@@ -9415,57 +9423,18 @@
|
|
|
9415
9423
|
"shared": []
|
|
9416
9424
|
},
|
|
9417
9425
|
"attributes": [
|
|
9418
|
-
{
|
|
9419
|
-
"name": "editable",
|
|
9420
|
-
"property": "editable",
|
|
9421
|
-
"description": "Whether the note's text can be edited here. A note with formatting or more than one block shows its text read-only; Go to note edits it in the document.",
|
|
9422
|
-
"type": "boolean",
|
|
9423
|
-
"default": false
|
|
9424
|
-
},
|
|
9425
|
-
{
|
|
9426
|
-
"name": "error",
|
|
9427
|
-
"property": "error",
|
|
9428
|
-
"description": "Why the label field's label was not used. While set, the field is invalid and shows it.",
|
|
9429
|
-
"type": "string",
|
|
9430
|
-
"default": ""
|
|
9431
|
-
},
|
|
9432
|
-
{
|
|
9433
|
-
"name": "label",
|
|
9434
|
-
"property": "label",
|
|
9435
|
-
"description": "The footnote's label, which its references and its note share, shown between [^ and ].",
|
|
9436
|
-
"type": "string",
|
|
9437
|
-
"default": ""
|
|
9438
|
-
},
|
|
9439
9426
|
{
|
|
9440
9427
|
"name": "note",
|
|
9441
9428
|
"property": "note",
|
|
9442
|
-
"description": "
|
|
9429
|
+
"description": "Content for the default plain-text field. Supply rich editing content through the default slot.",
|
|
9443
9430
|
"type": "string",
|
|
9444
9431
|
"default": ""
|
|
9445
9432
|
}
|
|
9446
9433
|
],
|
|
9447
9434
|
"properties": [
|
|
9448
|
-
{
|
|
9449
|
-
"name": "editable",
|
|
9450
|
-
"description": "Whether the note's text can be edited here. A note with formatting or more than one block shows its text read-only; Go to note edits it in the document.",
|
|
9451
|
-
"type": "boolean",
|
|
9452
|
-
"default": false
|
|
9453
|
-
},
|
|
9454
|
-
{
|
|
9455
|
-
"name": "error",
|
|
9456
|
-
"description": "Why the label field's label was not used. While set, the field is invalid and shows it.",
|
|
9457
|
-
"type": "string",
|
|
9458
|
-
"default": ""
|
|
9459
|
-
},
|
|
9460
|
-
{
|
|
9461
|
-
"name": "label",
|
|
9462
|
-
"description": "The footnote's label, which its references and its note share, shown between [^ and ].",
|
|
9463
|
-
"type": "string",
|
|
9464
|
-
"default": ""
|
|
9465
|
-
},
|
|
9466
9435
|
{
|
|
9467
9436
|
"name": "note",
|
|
9468
|
-
"description": "
|
|
9437
|
+
"description": "Content for the default plain-text field. Supply rich editing content through the default slot.",
|
|
9469
9438
|
"type": "string",
|
|
9470
9439
|
"default": ""
|
|
9471
9440
|
}
|
|
@@ -9477,25 +9446,6 @@
|
|
|
9477
9446
|
"detailSchema": "object",
|
|
9478
9447
|
"detailDocs": "Emitted with the declared detail payload."
|
|
9479
9448
|
},
|
|
9480
|
-
{
|
|
9481
|
-
"name": "go",
|
|
9482
|
-
"detailType": "\"object\"",
|
|
9483
|
-
"detailSchema": "object",
|
|
9484
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
9485
|
-
},
|
|
9486
|
-
{
|
|
9487
|
-
"name": "label",
|
|
9488
|
-
"detailType": "{ readonly label: string }",
|
|
9489
|
-
"detailSchema": "object",
|
|
9490
|
-
"fields": [
|
|
9491
|
-
{
|
|
9492
|
-
"path": "label",
|
|
9493
|
-
"type": "string",
|
|
9494
|
-
"required": true
|
|
9495
|
-
}
|
|
9496
|
-
],
|
|
9497
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
9498
|
-
},
|
|
9499
9449
|
{
|
|
9500
9450
|
"name": "text",
|
|
9501
9451
|
"detailType": "{ readonly text: string }",
|
|
@@ -9510,10 +9460,16 @@
|
|
|
9510
9460
|
"detailDocs": "Emitted with the declared detail payload."
|
|
9511
9461
|
}
|
|
9512
9462
|
],
|
|
9513
|
-
"slots": [
|
|
9463
|
+
"slots": [
|
|
9464
|
+
{
|
|
9465
|
+
"name": "default",
|
|
9466
|
+
"description": "Default child content."
|
|
9467
|
+
}
|
|
9468
|
+
],
|
|
9469
|
+
"title": "Footnote Editor",
|
|
9470
|
+
"summary": "A floating editor for a note’s content; numbering is automatic.",
|
|
9514
9471
|
"group": "editor",
|
|
9515
9472
|
"id": "@threadlabs/looma/ui-editor-footnote-editor",
|
|
9516
|
-
"title": "Editor Footnote Editor",
|
|
9517
9473
|
"resource": "@threadlabs/looma/components/ui-editor-footnote-editor/ui-editor-footnote-editor.html",
|
|
9518
9474
|
"targets": [
|
|
9519
9475
|
"html-next",
|
|
@@ -9523,29 +9479,20 @@
|
|
|
9523
9479
|
{
|
|
9524
9480
|
"id": "@threadlabs/looma/ui-editor-footnote-editor/01-note",
|
|
9525
9481
|
"name": "01-note",
|
|
9526
|
-
"title": "
|
|
9527
|
-
"description": "
|
|
9528
|
-
"markup": "<ui-
|
|
9482
|
+
"title": "Floating note",
|
|
9483
|
+
"description": "Edit the note's content in a floating surface. The document assigns reference numbers automatically.",
|
|
9484
|
+
"markup": "<ui-button id=\"edit-footnote\">Edit footnote</ui-button>\n<ui-popover data-note-popover for=\"edit-footnote\"><ui-editor-footnote-editor\n data-note-editor\n note=\"The figures are from the 2024 survey.\"\n ></ui-editor-footnote-editor></ui-popover>",
|
|
9529
9485
|
"resizable": false,
|
|
9530
9486
|
"bindings": "",
|
|
9531
|
-
"frameworks": {}
|
|
9487
|
+
"frameworks": {},
|
|
9488
|
+
"behavior": "@threadlabs/looma/docs/examples/ui-editor-footnote-editor/examples/01-note.behavior.js"
|
|
9532
9489
|
},
|
|
9533
9490
|
{
|
|
9534
9491
|
"id": "@threadlabs/looma/ui-editor-footnote-editor/02-formatted-note",
|
|
9535
9492
|
"name": "02-formatted-note",
|
|
9536
|
-
"title": "
|
|
9537
|
-
"description": "
|
|
9538
|
-
"markup": "<ui-editor-footnote-editor
|
|
9539
|
-
"resizable": false,
|
|
9540
|
-
"bindings": "",
|
|
9541
|
-
"frameworks": {}
|
|
9542
|
-
},
|
|
9543
|
-
{
|
|
9544
|
-
"id": "@threadlabs/looma/ui-editor-footnote-editor/03-label-in-use",
|
|
9545
|
-
"name": "03-label-in-use",
|
|
9546
|
-
"title": "Label in use",
|
|
9547
|
-
"description": "A label another footnote uses is not applied, and the field says why.",
|
|
9548
|
-
"markup": "<ui-editor-footnote-editor label=\"2\" note=\"Measured on a cold start.\" editable error=\"Another footnote uses this label.\"> </ui-editor-footnote-editor>",
|
|
9493
|
+
"title": "Note field",
|
|
9494
|
+
"description": "The standalone frame provides a simple field; the full document editor composes its rich-text field in this same slot.",
|
|
9495
|
+
"markup": "<ui-editor-footnote-editor note=\"Each test ran three times. The median is reported.\"></ui-editor-footnote-editor>",
|
|
9549
9496
|
"resizable": false,
|
|
9550
9497
|
"bindings": "",
|
|
9551
9498
|
"frameworks": {}
|
|
@@ -9660,9 +9607,9 @@
|
|
|
9660
9607
|
}
|
|
9661
9608
|
],
|
|
9662
9609
|
"slots": [],
|
|
9610
|
+
"title": "Image Toolbar",
|
|
9663
9611
|
"group": "editor",
|
|
9664
9612
|
"id": "@threadlabs/looma/ui-editor-image-toolbar",
|
|
9665
|
-
"title": "Editor Image Toolbar",
|
|
9666
9613
|
"resource": "@threadlabs/looma/components/ui-editor-image-toolbar/ui-editor-image-toolbar.html",
|
|
9667
9614
|
"targets": [
|
|
9668
9615
|
"html-next",
|
|
@@ -9826,9 +9773,9 @@
|
|
|
9826
9773
|
}
|
|
9827
9774
|
],
|
|
9828
9775
|
"slots": [],
|
|
9776
|
+
"title": "Insert Table Grid",
|
|
9829
9777
|
"group": "editor",
|
|
9830
9778
|
"id": "@threadlabs/looma/ui-editor-insert-table-grid",
|
|
9831
|
-
"title": "Editor Insert Table Grid",
|
|
9832
9779
|
"resource": "@threadlabs/looma/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html",
|
|
9833
9780
|
"targets": [
|
|
9834
9781
|
"html-next",
|
|
@@ -9953,9 +9900,9 @@
|
|
|
9953
9900
|
}
|
|
9954
9901
|
],
|
|
9955
9902
|
"slots": [],
|
|
9903
|
+
"title": "Link Card",
|
|
9956
9904
|
"group": "editor",
|
|
9957
9905
|
"id": "@threadlabs/looma/ui-editor-link-card",
|
|
9958
|
-
"title": "Editor Link Card",
|
|
9959
9906
|
"resource": "@threadlabs/looma/components/ui-editor-link-card/ui-editor-link-card.html",
|
|
9960
9907
|
"targets": [
|
|
9961
9908
|
"html-next",
|
|
@@ -10290,9 +10237,9 @@
|
|
|
10290
10237
|
}
|
|
10291
10238
|
],
|
|
10292
10239
|
"slots": [],
|
|
10240
|
+
"title": "Link Form",
|
|
10293
10241
|
"group": "editor",
|
|
10294
10242
|
"id": "@threadlabs/looma/ui-editor-link-form",
|
|
10295
|
-
"title": "Editor Link Form",
|
|
10296
10243
|
"resource": "@threadlabs/looma/components/ui-editor-link-form/ui-editor-link-form.html",
|
|
10297
10244
|
"targets": [
|
|
10298
10245
|
"html-next",
|
|
@@ -10682,9 +10629,9 @@
|
|
|
10682
10629
|
"description": "Named content for the empty region."
|
|
10683
10630
|
}
|
|
10684
10631
|
],
|
|
10632
|
+
"title": "Mention Menu",
|
|
10685
10633
|
"group": "editor",
|
|
10686
10634
|
"id": "@threadlabs/looma/ui-editor-mention-menu",
|
|
10687
|
-
"title": "Editor Mention Menu",
|
|
10688
10635
|
"resource": "@threadlabs/looma/components/ui-editor-mention-menu/ui-editor-mention-menu.html",
|
|
10689
10636
|
"targets": [
|
|
10690
10637
|
"html-next",
|
|
@@ -10840,10 +10787,10 @@
|
|
|
10840
10787
|
"description": "Default child content."
|
|
10841
10788
|
}
|
|
10842
10789
|
],
|
|
10790
|
+
"title": "Mention Menu Item",
|
|
10843
10791
|
"group": "editor",
|
|
10844
10792
|
"navigationParent": "ui-editor-mention-menu",
|
|
10845
10793
|
"id": "@threadlabs/looma/ui-editor-mention-menu-item",
|
|
10846
|
-
"title": "Editor Mention Menu Item",
|
|
10847
10794
|
"resource": "@threadlabs/looma/components/ui-editor-mention-menu-item/ui-editor-mention-menu-item.html",
|
|
10848
10795
|
"targets": [
|
|
10849
10796
|
"html-next",
|
|
@@ -11225,9 +11172,9 @@
|
|
|
11225
11172
|
"description": "Named content for the footer region."
|
|
11226
11173
|
}
|
|
11227
11174
|
],
|
|
11175
|
+
"title": "Slash Menu",
|
|
11228
11176
|
"group": "editor",
|
|
11229
11177
|
"id": "@threadlabs/looma/ui-editor-slash-menu",
|
|
11230
|
-
"title": "Editor Slash Menu",
|
|
11231
11178
|
"resource": "@threadlabs/looma/components/ui-editor-slash-menu/ui-editor-slash-menu.html",
|
|
11232
11179
|
"targets": [
|
|
11233
11180
|
"html-next",
|
|
@@ -11332,10 +11279,10 @@
|
|
|
11332
11279
|
"description": "Default child content."
|
|
11333
11280
|
}
|
|
11334
11281
|
],
|
|
11282
|
+
"title": "Slash Menu Group",
|
|
11335
11283
|
"group": "editor",
|
|
11336
11284
|
"navigationParent": "ui-editor-slash-menu",
|
|
11337
11285
|
"id": "@threadlabs/looma/ui-editor-slash-menu-group",
|
|
11338
|
-
"title": "Editor Slash Menu Group",
|
|
11339
11286
|
"resource": "@threadlabs/looma/components/ui-editor-slash-menu-group/ui-editor-slash-menu-group.html",
|
|
11340
11287
|
"targets": [
|
|
11341
11288
|
"html-next",
|
|
@@ -11498,10 +11445,10 @@
|
|
|
11498
11445
|
"description": "Default child content."
|
|
11499
11446
|
}
|
|
11500
11447
|
],
|
|
11448
|
+
"title": "Slash Menu Item",
|
|
11501
11449
|
"group": "editor",
|
|
11502
11450
|
"navigationParent": "ui-editor-slash-menu",
|
|
11503
11451
|
"id": "@threadlabs/looma/ui-editor-slash-menu-item",
|
|
11504
|
-
"title": "Editor Slash Menu Item",
|
|
11505
11452
|
"resource": "@threadlabs/looma/components/ui-editor-slash-menu-item/ui-editor-slash-menu-item.html",
|
|
11506
11453
|
"targets": [
|
|
11507
11454
|
"html-next",
|
|
@@ -11742,9 +11689,9 @@
|
|
|
11742
11689
|
}
|
|
11743
11690
|
],
|
|
11744
11691
|
"slots": [],
|
|
11692
|
+
"title": "Table Context Menu",
|
|
11745
11693
|
"group": "editor",
|
|
11746
11694
|
"id": "@threadlabs/looma/ui-editor-table-context-menu",
|
|
11747
|
-
"title": "Editor Table Context Menu",
|
|
11748
11695
|
"resource": "@threadlabs/looma/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html",
|
|
11749
11696
|
"targets": [
|
|
11750
11697
|
"html-next",
|
|
@@ -12168,9 +12115,9 @@
|
|
|
12168
12115
|
"description": "Default child content."
|
|
12169
12116
|
}
|
|
12170
12117
|
],
|
|
12118
|
+
"title": "Table Overlay",
|
|
12171
12119
|
"group": "editor",
|
|
12172
12120
|
"id": "@threadlabs/looma/ui-editor-table-overlay",
|
|
12173
|
-
"title": "Editor Table Overlay",
|
|
12174
12121
|
"resource": "@threadlabs/looma/components/ui-editor-table-overlay/ui-editor-table-overlay.html",
|
|
12175
12122
|
"targets": [
|
|
12176
12123
|
"html-next",
|
|
@@ -12438,9 +12385,9 @@
|
|
|
12438
12385
|
}
|
|
12439
12386
|
],
|
|
12440
12387
|
"slots": [],
|
|
12388
|
+
"title": "Table Toolbar",
|
|
12441
12389
|
"group": "editor",
|
|
12442
12390
|
"id": "@threadlabs/looma/ui-editor-table-toolbar",
|
|
12443
|
-
"title": "Editor Table Toolbar",
|
|
12444
12391
|
"resource": "@threadlabs/looma/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html",
|
|
12445
12392
|
"targets": [
|
|
12446
12393
|
"html-next",
|
|
@@ -12625,9 +12572,10 @@
|
|
|
12625
12572
|
"description": "Default child content."
|
|
12626
12573
|
}
|
|
12627
12574
|
],
|
|
12575
|
+
"title": "Toolbar",
|
|
12576
|
+
"summary": "A scrolling row for editor commands.",
|
|
12628
12577
|
"group": "editor",
|
|
12629
12578
|
"id": "@threadlabs/looma/ui-editor-toolbar",
|
|
12630
|
-
"title": "Editor Toolbar",
|
|
12631
12579
|
"resource": "@threadlabs/looma/components/ui-editor-toolbar/ui-editor-toolbar.html",
|
|
12632
12580
|
"targets": [
|
|
12633
12581
|
"html-next",
|
|
@@ -16077,6 +16025,7 @@
|
|
|
16077
16025
|
"description": "Default child content."
|
|
16078
16026
|
}
|
|
16079
16027
|
],
|
|
16028
|
+
"summary": "A visible list of single or multiple choices.",
|
|
16080
16029
|
"group": "forms",
|
|
16081
16030
|
"id": "@threadlabs/looma/ui-listbox",
|
|
16082
16031
|
"title": "Listbox",
|
|
@@ -17252,6 +17201,7 @@
|
|
|
17252
17201
|
],
|
|
17253
17202
|
"events": [],
|
|
17254
17203
|
"slots": [],
|
|
17204
|
+
"summary": "A measured value shown as a share of a total.",
|
|
17255
17205
|
"group": "display",
|
|
17256
17206
|
"id": "@threadlabs/looma/ui-meter",
|
|
17257
17207
|
"title": "Meter",
|
|
@@ -17957,6 +17907,7 @@
|
|
|
17957
17907
|
"description": "Named content for the actions region."
|
|
17958
17908
|
}
|
|
17959
17909
|
],
|
|
17910
|
+
"summary": "A page title with supporting text and actions.",
|
|
17960
17911
|
"group": "display",
|
|
17961
17912
|
"id": "@threadlabs/looma/ui-page-header",
|
|
17962
17913
|
"title": "Page Header",
|
|
@@ -18230,6 +18181,7 @@
|
|
|
18230
18181
|
"description": "Default child content."
|
|
18231
18182
|
}
|
|
18232
18183
|
],
|
|
18184
|
+
"summary": "Previous, next, and numbered links for paged results.",
|
|
18233
18185
|
"group": "display",
|
|
18234
18186
|
"id": "@threadlabs/looma/ui-pagination",
|
|
18235
18187
|
"title": "Pagination",
|
|
@@ -19555,6 +19507,7 @@
|
|
|
19555
19507
|
"description": "Default child content."
|
|
19556
19508
|
}
|
|
19557
19509
|
],
|
|
19510
|
+
"summary": "A scrolling region with fades that indicate more content.",
|
|
19558
19511
|
"group": "layout",
|
|
19559
19512
|
"id": "@threadlabs/looma/ui-scroll-area",
|
|
19560
19513
|
"title": "Scroll Area",
|
|
@@ -19786,6 +19739,7 @@
|
|
|
19786
19739
|
"description": "Named content for the trailing region."
|
|
19787
19740
|
}
|
|
19788
19741
|
],
|
|
19742
|
+
"summary": "A selectable search result with optional supporting content.",
|
|
19789
19743
|
"group": "overlay",
|
|
19790
19744
|
"navigationParent": "ui-search-shell",
|
|
19791
19745
|
"id": "@threadlabs/looma/ui-search-result-row",
|
|
@@ -20114,6 +20068,7 @@
|
|
|
20114
20068
|
"description": "Named content for the footer region."
|
|
20115
20069
|
}
|
|
20116
20070
|
],
|
|
20071
|
+
"summary": "A search dialog with query, results, status, and action regions.",
|
|
20117
20072
|
"group": "overlay",
|
|
20118
20073
|
"id": "@threadlabs/looma/ui-search-shell",
|
|
20119
20074
|
"title": "Search Shell",
|
|
@@ -20327,6 +20282,7 @@
|
|
|
20327
20282
|
"description": "Default child content."
|
|
20328
20283
|
}
|
|
20329
20284
|
],
|
|
20285
|
+
"summary": "A titled group of content with optional actions.",
|
|
20330
20286
|
"group": "display",
|
|
20331
20287
|
"id": "@threadlabs/looma/ui-section",
|
|
20332
20288
|
"title": "Section",
|
|
@@ -21217,6 +21173,7 @@
|
|
|
21217
21173
|
"description": "Default child content."
|
|
21218
21174
|
}
|
|
21219
21175
|
],
|
|
21176
|
+
"summary": "A collapsible side panel that becomes a drawer on small screens.",
|
|
21220
21177
|
"group": "layout",
|
|
21221
21178
|
"id": "@threadlabs/looma/ui-sidebar",
|
|
21222
21179
|
"title": "Sidebar",
|
|
@@ -21262,7 +21219,7 @@
|
|
|
21262
21219
|
"tag": "ui-site-header",
|
|
21263
21220
|
"package": "@threadlabs/looma",
|
|
21264
21221
|
"root": "header",
|
|
21265
|
-
"description": "A
|
|
21222
|
+
"description": "A site-wide header with branding, primary navigation, actions, and a mobile menu trigger. Branding remains visible when navigation collapses. Applications supply links, routing, and menu behavior; use TopBar for contextual application tools.",
|
|
21266
21223
|
"designTokens": {
|
|
21267
21224
|
"sources": [
|
|
21268
21225
|
"packages/looma/src/components/ui-site-header/ui-site-header.html"
|
|
@@ -21431,6 +21388,7 @@
|
|
|
21431
21388
|
"description": "Named content for the actions region."
|
|
21432
21389
|
}
|
|
21433
21390
|
],
|
|
21391
|
+
"summary": "Site branding, primary navigation, and actions with a mobile menu.",
|
|
21434
21392
|
"group": "display",
|
|
21435
21393
|
"id": "@threadlabs/looma/ui-site-header",
|
|
21436
21394
|
"title": "Site Header",
|
|
@@ -21574,6 +21532,7 @@
|
|
|
21574
21532
|
],
|
|
21575
21533
|
"events": [],
|
|
21576
21534
|
"slots": [],
|
|
21535
|
+
"summary": "Placeholder shapes that reserve space while content loads.",
|
|
21577
21536
|
"group": "display",
|
|
21578
21537
|
"id": "@threadlabs/looma/ui-skeleton",
|
|
21579
21538
|
"title": "Skeleton",
|
|
@@ -21922,6 +21881,7 @@
|
|
|
21922
21881
|
],
|
|
21923
21882
|
"events": [],
|
|
21924
21883
|
"slots": [],
|
|
21884
|
+
"summary": "A compact indicator that work is in progress.",
|
|
21925
21885
|
"group": "display",
|
|
21926
21886
|
"id": "@threadlabs/looma/ui-spinner",
|
|
21927
21887
|
"title": "Spinner",
|
|
@@ -22147,7 +22107,7 @@
|
|
|
22147
22107
|
"tag": "ui-status-message",
|
|
22148
22108
|
"package": "@threadlabs/looma",
|
|
22149
22109
|
"root": "div",
|
|
22150
|
-
"description": "
|
|
22110
|
+
"description": "Shows the loading, empty, or failed state of a content area, with an optional next action. Inline layout uses the surrounding area’s existing boundary; panel adds a boundary, and fill centers a whole-view state. Loading and empty states use a live status region; errors use an alert. Use Callout for static guidance and FormField for errors tied to a specific input.",
|
|
22151
22111
|
"designTokens": {
|
|
22152
22112
|
"sources": [
|
|
22153
22113
|
"packages/looma/src/components/ui-status-message/ui-status-message.html"
|
|
@@ -22269,6 +22229,7 @@
|
|
|
22269
22229
|
"description": "Named content for the action region."
|
|
22270
22230
|
}
|
|
22271
22231
|
],
|
|
22232
|
+
"summary": "Loading, empty, and failed states within a content area.",
|
|
22272
22233
|
"group": "display",
|
|
22273
22234
|
"id": "@threadlabs/looma/ui-status-message",
|
|
22274
22235
|
"title": "Status Message",
|
|
@@ -22292,8 +22253,8 @@
|
|
|
22292
22253
|
"id": "@threadlabs/looma/ui-status-message/01-kinds",
|
|
22293
22254
|
"name": "01-kinds",
|
|
22294
22255
|
"title": "Empty, loading, and error",
|
|
22295
|
-
"description": "
|
|
22296
|
-
"markup": "<ui-stack gap=\"s\">\n <ui-status-message heading=\"No pages yet\">Pages you create appear here.<ui-button slot=\"action\" size=\"sm\" variant=\"solid\"\n
|
|
22256
|
+
"description": "Inline states inside existing cards. The card supplies the boundary; the status announces its state and offers a next step.",
|
|
22257
|
+
"markup": "<ui-stack gap=\"s\">\n <ui-card><ui-status-message heading=\"No pages yet\">Pages you create appear here.<ui-button slot=\"action\" size=\"sm\" variant=\"solid\"\n >Create a page</ui-button></ui-status-message></ui-card>\n <ui-card><ui-status-message kind=\"loading\">Loading pages…</ui-status-message></ui-card>\n <ui-card><ui-status-message kind=\"error\">Activity could not be loaded.</ui-status-message></ui-card>\n</ui-stack>",
|
|
22297
22258
|
"resizable": false,
|
|
22298
22259
|
"bindings": "",
|
|
22299
22260
|
"frameworks": {}
|
|
@@ -23104,6 +23065,7 @@
|
|
|
23104
23065
|
"description": "Default child content."
|
|
23105
23066
|
}
|
|
23106
23067
|
],
|
|
23068
|
+
"summary": "Presentation for an authored semantic HTML table.",
|
|
23107
23069
|
"group": "display",
|
|
23108
23070
|
"id": "@threadlabs/looma/ui-table",
|
|
23109
23071
|
"title": "Table",
|
|
@@ -23879,6 +23841,7 @@
|
|
|
23879
23841
|
"description": "Default child content."
|
|
23880
23842
|
}
|
|
23881
23843
|
],
|
|
23844
|
+
"summary": "Shared text roles, from body copy to headings and captions.",
|
|
23882
23845
|
"group": "display",
|
|
23883
23846
|
"id": "@threadlabs/looma/ui-text",
|
|
23884
23847
|
"title": "Text",
|
|
@@ -25399,7 +25362,7 @@
|
|
|
25399
25362
|
"tag": "ui-top-bar",
|
|
25400
25363
|
"package": "@threadlabs/looma",
|
|
25401
25364
|
"root": "header",
|
|
25402
|
-
"description": "
|
|
25365
|
+
"description": "A sticky toolbar for an application view, with leading controls, a title, optional search, and trailing actions. Use SiteHeader for site branding, primary navigation, and mobile navigation collapse.",
|
|
25403
25366
|
"designTokens": {
|
|
25404
25367
|
"sources": [
|
|
25405
25368
|
"packages/looma/src/components/ui-top-bar/ui-top-bar.html"
|
|
@@ -25490,9 +25453,10 @@
|
|
|
25490
25453
|
"description": "Named content for the actions region."
|
|
25491
25454
|
}
|
|
25492
25455
|
],
|
|
25456
|
+
"title": "Application toolbar",
|
|
25457
|
+
"summary": "A sticky app toolbar for a title, search, and contextual actions.",
|
|
25493
25458
|
"group": "display",
|
|
25494
25459
|
"id": "@threadlabs/looma/ui-top-bar",
|
|
25495
|
-
"title": "Top Bar",
|
|
25496
25460
|
"resource": "@threadlabs/looma/components/ui-top-bar/ui-top-bar.html",
|
|
25497
25461
|
"targets": [
|
|
25498
25462
|
"html-next",
|
package/docs/catalog.mjs
CHANGED
|
@@ -61,7 +61,7 @@ export async function discoverComponents({ root, directory, packageName, groups
|
|
|
61
61
|
const events = (definition.declarations ?? []).filter(item => item.kind === 'event').map(event => ({ name: event.name, detailType: event.shape ? typeScriptType(event.shape) : String(event.type), detailDocs: docs.events?.[event.name] ?? '' }));
|
|
62
62
|
const slots = (definition.slots ?? []).map(slot => ({ name: slot.name ?? 'default', description: docs.slots?.[slot.name ?? 'default'] ?? '' }));
|
|
63
63
|
const tokens = [...new Set([...definition.css.matchAll(/var\(\s*(--[\w-]+)/g)].map(match => match[1]))].sort();
|
|
64
|
-
components.push({ id, package: packageName, tag: contract.tag, title: docs.title ?? titleOf(contract.tag), description: docs.description ?? contract.summary ?? '', group: docs.group ?? 'project', ...(docs.navigationParent ? { navigationParent: docs.navigationParent } : {}), root: contract.nativeElement, source, resource: source, targets: ['html-next'], attributes, properties, events, slots, designTokens: { sources: [path.relative(root, source)], component: [], shared: tokens.map(name => ({ name, fallbacks: [] })) }, examples: await readExamples(path.join(path.dirname(source), 'examples'), id) });
|
|
64
|
+
components.push({ id, package: packageName, tag: contract.tag, title: docs.title ?? titleOf(contract.tag), description: docs.description ?? contract.summary ?? '', ...(docs.summary ? { summary: docs.summary } : {}), group: docs.group ?? 'project', ...(docs.navigationParent ? { navigationParent: docs.navigationParent } : {}), root: contract.nativeElement, source, resource: source, targets: ['html-next'], attributes, properties, events, slots, designTokens: { sources: [path.relative(root, source)], component: [], shared: tokens.map(name => ({ name, fallbacks: [] })) }, examples: await readExamples(path.join(path.dirname(source), 'examples'), id) });
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
const categories = components.some(component => component.group === 'project') && !groups.some(group => group.id === 'project') ? [...groups, { id: 'project', label: 'Project components' }] : groups;
|