@threadlabs/looma 0.44.2 → 0.44.3
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/shared/icons.js +1 -0
- package/components/ui-badge/ui-badge.html +7 -6
- package/components/ui-button/ui-button.html +47 -2
- package/components/ui-card/ui-card.html +6 -6
- package/components/ui-color-picker/ui-color-picker.html +12 -5
- package/components/ui-color-picker/ui-color-picker.js +20 -6
- package/components/ui-dialog/ui-dialog.html +5 -6
- package/components/ui-icon/ui-icon.html +1 -0
- package/components/ui-icon-button/ui-icon-button.html +59 -4
- package/components/ui-menu/ui-menu.html +5 -6
- package/components/ui-number-input/ui-number-input.html +7 -0
- package/components/ui-popover/ui-popover.html +5 -6
- package/components/ui-slider/ui-slider.html +6 -0
- package/components/ui-tooltip/ui-tooltip.html +8 -5
- package/components/ui-tree-item/ui-tree-item.html +7 -1
- package/dist/index.js +1 -1
- package/docs/README.md +8 -4
- package/docs/catalog.json +469 -3704
- package/docs/customizer-render.mjs +55 -36
- package/docs/customizer.js +48 -33
- package/docs/fonts.mjs +28 -0
- package/docs/theme.mjs +39 -14
- package/editor/icons.d.ts +1 -0
- package/editor/index.js +2 -1
- package/package.json +1 -1
- package/styles/ui-badge.css +11 -10
- package/styles/ui-button.css +47 -2
- package/styles/ui-card.css +4 -4
- package/styles/ui-color-picker.css +105 -2
- package/styles/ui-dialog.css +10 -12
- package/styles/ui-icon-button.css +59 -4
- package/styles/ui-menu.css +5 -6
- package/styles/ui-number-input.css +6 -0
- package/styles/ui-popover.css +5 -6
- package/styles/ui-slider.css +3 -0
- package/styles/ui-tooltip.css +8 -5
- package/styles/ui-tree-item.css +12 -2
- package/theme-system.css +28 -16
- package/tokens.css +7 -0
- package/vanilla/UiColorPicker.d.ts +1 -0
- package/vanilla/UiColorPicker.js +32 -28
- package/vanilla/UiIcon.js +1 -1
- package/vanilla/UiNumberInput.d.ts +1 -0
- package/vanilla/UiNumberInput.js +53 -43
- package/vanilla/UiSlider.d.ts +1 -0
- package/vanilla/UiSlider.js +65 -57
- package/vanilla/UiTreeItem.js +1 -1
- package/vue/UiBadge.vue +7 -9
- package/vue/UiButton.vue +56 -2
- package/vue/UiCard.vue +13 -5
- package/vue/UiColorPicker.d.ts +6 -0
- package/vue/UiColorPicker.vue +156 -6
- package/vue/UiDialog.vue +22 -12
- package/vue/UiIcon.vue +1 -0
- package/vue/UiIconButton.vue +62 -4
- package/vue/UiMenu.vue +11 -6
- package/vue/UiNumberInput.d.ts +6 -0
- package/vue/UiNumberInput.vue +47 -1
- package/vue/UiPopover.vue +11 -6
- package/vue/UiSlider.d.ts +6 -0
- package/vue/UiSlider.vue +37 -1
- package/vue/UiTooltip.vue +11 -5
- package/vue/UiTreeItem.vue +19 -3
- package/vue/chunks/UiBadge.js +1 -1
- package/vue/chunks/UiButton.js +1 -1
- package/vue/chunks/UiCard.js +2 -2
- package/vue/chunks/UiColorPicker.js +60 -11
- package/vue/chunks/UiDialog.js +1 -1
- package/vue/chunks/UiIcon.js +5 -1
- package/vue/chunks/UiIconButton.js +1 -1
- package/vue/chunks/UiMenu.js +1 -1
- package/vue/chunks/UiNumberInput.js +31 -2
- package/vue/chunks/UiPopover.js +1 -1
- package/vue/chunks/UiSlider.js +33 -2
- package/vue/chunks/UiTooltip.js +1 -1
- package/vue/chunks/UiTreeItem.js +3 -3
- package/vue/components.css +457 -84
- package/vue/editor/index.js +4 -0
- package/docs/examples/ui-editor-footnote-editor/examples/01-note.behavior.js +0 -9
- package/docs/examples/ui-editor-mention-menu/examples/00-preview.behavior.js +0 -1
- package/docs/examples/ui-editor-slash-menu/examples/00-preview.behavior.js +0 -81
- package/docs/examples/ui-editor-table-overlay/examples/00-preview.behavior.js +0 -24
package/docs/catalog.json
CHANGED
|
@@ -463,7 +463,7 @@
|
|
|
463
463
|
],
|
|
464
464
|
"schemaVersion": 1,
|
|
465
465
|
"package": "@threadlabs/looma",
|
|
466
|
-
"version": "0.44.
|
|
466
|
+
"version": "0.44.3",
|
|
467
467
|
"groups": [
|
|
468
468
|
{
|
|
469
469
|
"id": "layout",
|
|
@@ -481,10 +481,6 @@
|
|
|
481
481
|
"id": "display",
|
|
482
482
|
"label": "Display"
|
|
483
483
|
},
|
|
484
|
-
{
|
|
485
|
-
"id": "editor",
|
|
486
|
-
"label": "Editor"
|
|
487
|
-
},
|
|
488
484
|
{
|
|
489
485
|
"id": "extras",
|
|
490
486
|
"label": "Extras"
|
|
@@ -1280,8 +1276,8 @@
|
|
|
1280
1276
|
"var(--ui-info-subtle-text, var(--ui-info-solid))"
|
|
1281
1277
|
],
|
|
1282
1278
|
"fallbacks": [
|
|
1283
|
-
"color-mix(in srgb, var(--_badge-surface) 85%, var(--
|
|
1284
|
-
"
|
|
1279
|
+
"color-mix(in srgb, var(--_badge-surface) 85%, var(--_badge-inverse-ink))",
|
|
1280
|
+
"color-mix(in srgb, var(--_badge-surface) 35%, var(--_badge-inverse-ink))",
|
|
1285
1281
|
"var(--ui-text-primary)"
|
|
1286
1282
|
]
|
|
1287
1283
|
},
|
|
@@ -1391,8 +1387,8 @@
|
|
|
1391
1387
|
"name": "--ui-badge-text",
|
|
1392
1388
|
"fallbacks": [
|
|
1393
1389
|
"var(--_badge-color-text, var(--_badge-text))",
|
|
1394
|
-
"var(--_badge-color-text, color-mix(in srgb, var(--_badge-surface) 85%, var(--
|
|
1395
|
-
"var(--_badge-color-text,
|
|
1390
|
+
"var(--_badge-color-text, color-mix(in srgb, var(--_badge-surface) 85%, var(--_badge-inverse-ink)))",
|
|
1391
|
+
"var(--_badge-color-text, color-mix(in srgb, var(--_badge-surface) 35%, var(--_badge-inverse-ink)))",
|
|
1396
1392
|
"inherit",
|
|
1397
1393
|
"var(--_badge-color-text, var(--ui-text-primary))"
|
|
1398
1394
|
]
|
|
@@ -2070,6 +2066,20 @@
|
|
|
2070
2066
|
"packages/looma/src/components/ui-button/ui-button.html"
|
|
2071
2067
|
],
|
|
2072
2068
|
"component": [
|
|
2069
|
+
{
|
|
2070
|
+
"name": "--_tone-outline-border",
|
|
2071
|
+
"declarations": [
|
|
2072
|
+
"var(--ui-accent-outline-border, var(--ui-accent-subtle-text))",
|
|
2073
|
+
"var(--ui-accent-secondary-outline-border, var(--ui-accent-secondary-subtle-text))",
|
|
2074
|
+
"var(--ui-accent-tertiary-outline-border, var(--ui-accent-tertiary-subtle-text))",
|
|
2075
|
+
"var(--ui-control-border)",
|
|
2076
|
+
"var(--ui-danger-outline-border, var(--ui-danger-subtle-text))",
|
|
2077
|
+
"var(--ui-success-outline-border, var(--ui-success-subtle-text))",
|
|
2078
|
+
"var(--ui-warning-outline-border, var(--ui-warning-subtle-text))",
|
|
2079
|
+
"var(--ui-info-outline-border, var(--ui-info-subtle-text))",
|
|
2080
|
+
"var(--_hue-text)"
|
|
2081
|
+
]
|
|
2082
|
+
},
|
|
2073
2083
|
{
|
|
2074
2084
|
"name": "--ui-action-shadow",
|
|
2075
2085
|
"declarations": [
|
|
@@ -2097,6 +2107,7 @@
|
|
|
2097
2107
|
"var(--ui-info-border, var(--ui-info))"
|
|
2098
2108
|
],
|
|
2099
2109
|
"fallbacks": [
|
|
2110
|
+
"var(--_tone-outline-border, var(--_tone-text))",
|
|
2100
2111
|
"var(--ui-border)",
|
|
2101
2112
|
"var(--ui-control-border)",
|
|
2102
2113
|
"var(--ui-control-border, var(--ui-border-strong))"
|
|
@@ -2146,6 +2157,7 @@
|
|
|
2146
2157
|
"var(--ui-info-hover-border, var(--ui-info-hover))"
|
|
2147
2158
|
],
|
|
2148
2159
|
"fallbacks": [
|
|
2160
|
+
"color-mix(in srgb, var(--_tone-text) 35%, var(--_tone-outline-border))",
|
|
2149
2161
|
"var(--ui-border-strong)",
|
|
2150
2162
|
"var(--ui-control-border-hover)",
|
|
2151
2163
|
"var(--ui-control-border-hover, var(--ui-text-secondary))"
|
|
@@ -2154,7 +2166,8 @@
|
|
|
2154
2166
|
{
|
|
2155
2167
|
"name": "--ui-button-hover-surface",
|
|
2156
2168
|
"fallbacks": [
|
|
2157
|
-
"
|
|
2169
|
+
"transparent",
|
|
2170
|
+
"oklch(from var(--_tone-text) l c h / calc(12% * var(--ui-tonal-opacity, 1)))",
|
|
2158
2171
|
"var(--ui-neutral-hover)",
|
|
2159
2172
|
"var(--ui-control-surface, var(--ui-surface-elevated))"
|
|
2160
2173
|
]
|
|
@@ -2207,8 +2220,8 @@
|
|
|
2207
2220
|
"name": "--ui-button-surface",
|
|
2208
2221
|
"fallbacks": [
|
|
2209
2222
|
"oklch(from var(--_tone) l c h / calc(5% * var(--ui-tonal-opacity, 1)))",
|
|
2210
|
-
"var(--ui-neutral-surface)",
|
|
2211
2223
|
"transparent",
|
|
2224
|
+
"var(--ui-neutral-surface)",
|
|
2212
2225
|
"var(--ui-control-surface, var(--ui-surface-elevated))"
|
|
2213
2226
|
]
|
|
2214
2227
|
},
|
|
@@ -2227,6 +2240,22 @@
|
|
|
2227
2240
|
"fallbacks": [
|
|
2228
2241
|
"inherit"
|
|
2229
2242
|
]
|
|
2243
|
+
},
|
|
2244
|
+
{
|
|
2245
|
+
"name": "--ui-neutral-highlight",
|
|
2246
|
+
"declarations": [
|
|
2247
|
+
"var(--ui-accent-highlight, none)",
|
|
2248
|
+
"var(--ui-accent-secondary-highlight, none)",
|
|
2249
|
+
"var(--ui-accent-tertiary-highlight, none)",
|
|
2250
|
+
"var(--ui-neutral-highlight, none)",
|
|
2251
|
+
"var(--ui-danger-highlight, none)",
|
|
2252
|
+
"var(--ui-success-highlight, none)",
|
|
2253
|
+
"var(--ui-warning-highlight, none)",
|
|
2254
|
+
"var(--ui-info-highlight, none)"
|
|
2255
|
+
],
|
|
2256
|
+
"fallbacks": [
|
|
2257
|
+
"none"
|
|
2258
|
+
]
|
|
2230
2259
|
}
|
|
2231
2260
|
],
|
|
2232
2261
|
"shared": [
|
|
@@ -2269,6 +2298,18 @@
|
|
|
2269
2298
|
"var(--ui-accent-hover)"
|
|
2270
2299
|
]
|
|
2271
2300
|
},
|
|
2301
|
+
{
|
|
2302
|
+
"name": "--ui-accent-hover-highlight",
|
|
2303
|
+
"fallbacks": [
|
|
2304
|
+
"none"
|
|
2305
|
+
]
|
|
2306
|
+
},
|
|
2307
|
+
{
|
|
2308
|
+
"name": "--ui-accent-outline-border",
|
|
2309
|
+
"fallbacks": [
|
|
2310
|
+
"var(--ui-accent-subtle-text)"
|
|
2311
|
+
]
|
|
2312
|
+
},
|
|
2272
2313
|
{
|
|
2273
2314
|
"name": "--ui-accent-secondary"
|
|
2274
2315
|
},
|
|
@@ -2308,9 +2349,21 @@
|
|
|
2308
2349
|
"var(--ui-accent-secondary-hover)"
|
|
2309
2350
|
]
|
|
2310
2351
|
},
|
|
2352
|
+
{
|
|
2353
|
+
"name": "--ui-accent-secondary-hover-highlight",
|
|
2354
|
+
"fallbacks": [
|
|
2355
|
+
"none"
|
|
2356
|
+
]
|
|
2357
|
+
},
|
|
2311
2358
|
{
|
|
2312
2359
|
"name": "--ui-accent-secondary-on-strong"
|
|
2313
2360
|
},
|
|
2361
|
+
{
|
|
2362
|
+
"name": "--ui-accent-secondary-outline-border",
|
|
2363
|
+
"fallbacks": [
|
|
2364
|
+
"var(--ui-accent-secondary-subtle-text)"
|
|
2365
|
+
]
|
|
2366
|
+
},
|
|
2314
2367
|
{
|
|
2315
2368
|
"name": "--ui-accent-secondary-subtle-text"
|
|
2316
2369
|
},
|
|
@@ -2359,9 +2412,21 @@
|
|
|
2359
2412
|
"var(--ui-accent-tertiary-hover)"
|
|
2360
2413
|
]
|
|
2361
2414
|
},
|
|
2415
|
+
{
|
|
2416
|
+
"name": "--ui-accent-tertiary-hover-highlight",
|
|
2417
|
+
"fallbacks": [
|
|
2418
|
+
"none"
|
|
2419
|
+
]
|
|
2420
|
+
},
|
|
2362
2421
|
{
|
|
2363
2422
|
"name": "--ui-accent-tertiary-on-strong"
|
|
2364
2423
|
},
|
|
2424
|
+
{
|
|
2425
|
+
"name": "--ui-accent-tertiary-outline-border",
|
|
2426
|
+
"fallbacks": [
|
|
2427
|
+
"var(--ui-accent-tertiary-subtle-text)"
|
|
2428
|
+
]
|
|
2429
|
+
},
|
|
2365
2430
|
{
|
|
2366
2431
|
"name": "--ui-accent-tertiary-subtle-text"
|
|
2367
2432
|
},
|
|
@@ -2506,6 +2571,18 @@
|
|
|
2506
2571
|
"var(--ui-danger-hover)"
|
|
2507
2572
|
]
|
|
2508
2573
|
},
|
|
2574
|
+
{
|
|
2575
|
+
"name": "--ui-danger-hover-highlight",
|
|
2576
|
+
"fallbacks": [
|
|
2577
|
+
"none"
|
|
2578
|
+
]
|
|
2579
|
+
},
|
|
2580
|
+
{
|
|
2581
|
+
"name": "--ui-danger-outline-border",
|
|
2582
|
+
"fallbacks": [
|
|
2583
|
+
"var(--ui-danger-subtle-text)"
|
|
2584
|
+
]
|
|
2585
|
+
},
|
|
2509
2586
|
{
|
|
2510
2587
|
"name": "--ui-danger-subtle-text"
|
|
2511
2588
|
},
|
|
@@ -2590,9 +2667,21 @@
|
|
|
2590
2667
|
"var(--ui-info-hover)"
|
|
2591
2668
|
]
|
|
2592
2669
|
},
|
|
2670
|
+
{
|
|
2671
|
+
"name": "--ui-info-hover-highlight",
|
|
2672
|
+
"fallbacks": [
|
|
2673
|
+
"none"
|
|
2674
|
+
]
|
|
2675
|
+
},
|
|
2593
2676
|
{
|
|
2594
2677
|
"name": "--ui-info-on-strong"
|
|
2595
2678
|
},
|
|
2679
|
+
{
|
|
2680
|
+
"name": "--ui-info-outline-border",
|
|
2681
|
+
"fallbacks": [
|
|
2682
|
+
"var(--ui-info-subtle-text)"
|
|
2683
|
+
]
|
|
2684
|
+
},
|
|
2596
2685
|
{
|
|
2597
2686
|
"name": "--ui-info-subtle-text"
|
|
2598
2687
|
},
|
|
@@ -2623,12 +2712,6 @@
|
|
|
2623
2712
|
"0 0 transparent"
|
|
2624
2713
|
]
|
|
2625
2714
|
},
|
|
2626
|
-
{
|
|
2627
|
-
"name": "--ui-neutral-highlight",
|
|
2628
|
-
"fallbacks": [
|
|
2629
|
-
"none"
|
|
2630
|
-
]
|
|
2631
|
-
},
|
|
2632
2715
|
{
|
|
2633
2716
|
"name": "--ui-neutral-hover"
|
|
2634
2717
|
},
|
|
@@ -2728,9 +2811,21 @@
|
|
|
2728
2811
|
"var(--ui-success-hover)"
|
|
2729
2812
|
]
|
|
2730
2813
|
},
|
|
2814
|
+
{
|
|
2815
|
+
"name": "--ui-success-hover-highlight",
|
|
2816
|
+
"fallbacks": [
|
|
2817
|
+
"none"
|
|
2818
|
+
]
|
|
2819
|
+
},
|
|
2731
2820
|
{
|
|
2732
2821
|
"name": "--ui-success-on-strong"
|
|
2733
2822
|
},
|
|
2823
|
+
{
|
|
2824
|
+
"name": "--ui-success-outline-border",
|
|
2825
|
+
"fallbacks": [
|
|
2826
|
+
"var(--ui-success-subtle-text)"
|
|
2827
|
+
]
|
|
2828
|
+
},
|
|
2734
2829
|
{
|
|
2735
2830
|
"name": "--ui-success-subtle-text"
|
|
2736
2831
|
},
|
|
@@ -2743,7 +2838,8 @@
|
|
|
2743
2838
|
{
|
|
2744
2839
|
"name": "--ui-surface-highlight",
|
|
2745
2840
|
"fallbacks": [
|
|
2746
|
-
"none"
|
|
2841
|
+
"none",
|
|
2842
|
+
"linear-gradient(transparent, transparent)"
|
|
2747
2843
|
]
|
|
2748
2844
|
},
|
|
2749
2845
|
{
|
|
@@ -2800,9 +2896,21 @@
|
|
|
2800
2896
|
"var(--ui-warning-hover)"
|
|
2801
2897
|
]
|
|
2802
2898
|
},
|
|
2899
|
+
{
|
|
2900
|
+
"name": "--ui-warning-hover-highlight",
|
|
2901
|
+
"fallbacks": [
|
|
2902
|
+
"none"
|
|
2903
|
+
]
|
|
2904
|
+
},
|
|
2803
2905
|
{
|
|
2804
2906
|
"name": "--ui-warning-on-strong"
|
|
2805
2907
|
},
|
|
2908
|
+
{
|
|
2909
|
+
"name": "--ui-warning-outline-border",
|
|
2910
|
+
"fallbacks": [
|
|
2911
|
+
"var(--ui-warning-subtle-text)"
|
|
2912
|
+
]
|
|
2913
|
+
},
|
|
2806
2914
|
{
|
|
2807
2915
|
"name": "--ui-warning-subtle-text"
|
|
2808
2916
|
}
|
|
@@ -3636,6 +3744,12 @@
|
|
|
3636
3744
|
"0 0 transparent"
|
|
3637
3745
|
]
|
|
3638
3746
|
},
|
|
3747
|
+
{
|
|
3748
|
+
"name": "--ui-material-highlight",
|
|
3749
|
+
"fallbacks": [
|
|
3750
|
+
"var(--ui-surface-highlight, linear-gradient(transparent, transparent))"
|
|
3751
|
+
]
|
|
3752
|
+
},
|
|
3639
3753
|
{
|
|
3640
3754
|
"name": "--ui-radius-lg"
|
|
3641
3755
|
},
|
|
@@ -3761,7 +3875,7 @@
|
|
|
3761
3875
|
{
|
|
3762
3876
|
"name": "treatment",
|
|
3763
3877
|
"property": "treatment",
|
|
3764
|
-
"description": "How much of the theme's decorative material the surface expresses. standard preserves its restrained treatment; expressive uses the full material treatment. Its glass rim can transmit and frost the surrounding scene while content
|
|
3878
|
+
"description": "How much of the theme's decorative material the surface expresses. standard preserves its restrained treatment; expressive uses the full material treatment. Its glass rim can transmit and frost the surrounding scene while content stays nearly opaque. Surface separation controls the rim, independently of frosting. This does not add elevation or require glass.",
|
|
3765
3879
|
"type": "keyword",
|
|
3766
3880
|
"default": "standard",
|
|
3767
3881
|
"options": [
|
|
@@ -3837,7 +3951,7 @@
|
|
|
3837
3951
|
},
|
|
3838
3952
|
{
|
|
3839
3953
|
"name": "treatment",
|
|
3840
|
-
"description": "How much of the theme's decorative material the surface expresses. standard preserves its restrained treatment; expressive uses the full material treatment. Its glass rim can transmit and frost the surrounding scene while content
|
|
3954
|
+
"description": "How much of the theme's decorative material the surface expresses. standard preserves its restrained treatment; expressive uses the full material treatment. Its glass rim can transmit and frost the surrounding scene while content stays nearly opaque. Surface separation controls the rim, independently of frosting. This does not add elevation or require glass.",
|
|
3841
3955
|
"type": "\"standard\" | \"expressive\"",
|
|
3842
3956
|
"default": "standard",
|
|
3843
3957
|
"options": [
|
|
@@ -4749,10 +4863,20 @@
|
|
|
4749
4863
|
},
|
|
4750
4864
|
{
|
|
4751
4865
|
"name": "--ui-text-primary"
|
|
4866
|
+
},
|
|
4867
|
+
{
|
|
4868
|
+
"name": "--ui-text-secondary"
|
|
4752
4869
|
}
|
|
4753
4870
|
]
|
|
4754
4871
|
},
|
|
4755
4872
|
"attributes": [
|
|
4873
|
+
{
|
|
4874
|
+
"name": "clearable",
|
|
4875
|
+
"property": "clearable",
|
|
4876
|
+
"description": "Allows None in the editor. An empty value shows a slashed swatch and emits the same input/change events with an empty string.",
|
|
4877
|
+
"type": "boolean",
|
|
4878
|
+
"default": false
|
|
4879
|
+
},
|
|
4756
4880
|
{
|
|
4757
4881
|
"name": "disabled",
|
|
4758
4882
|
"property": "disabled",
|
|
@@ -4796,12 +4920,18 @@
|
|
|
4796
4920
|
{
|
|
4797
4921
|
"name": "value",
|
|
4798
4922
|
"property": "value",
|
|
4799
|
-
"description": "An opaque sRGB colour as six hexadecimal digits prefixed with
|
|
4923
|
+
"description": "An opaque sRGB colour as six hexadecimal digits prefixed with #, or an empty string for None when clearable. User edits emit input and change with detail.value. Invalid values are ignored. Set name to include the value in form submission.",
|
|
4800
4924
|
"type": "string",
|
|
4801
4925
|
"default": "#000000"
|
|
4802
4926
|
}
|
|
4803
4927
|
],
|
|
4804
4928
|
"properties": [
|
|
4929
|
+
{
|
|
4930
|
+
"name": "clearable",
|
|
4931
|
+
"description": "Allows None in the editor. An empty value shows a slashed swatch and emits the same input/change events with an empty string.",
|
|
4932
|
+
"type": "boolean",
|
|
4933
|
+
"default": false
|
|
4934
|
+
},
|
|
4805
4935
|
{
|
|
4806
4936
|
"name": "disabled",
|
|
4807
4937
|
"description": "Prevents opening and editing.",
|
|
@@ -4839,7 +4969,7 @@
|
|
|
4839
4969
|
},
|
|
4840
4970
|
{
|
|
4841
4971
|
"name": "value",
|
|
4842
|
-
"description": "An opaque sRGB colour as six hexadecimal digits prefixed with
|
|
4972
|
+
"description": "An opaque sRGB colour as six hexadecimal digits prefixed with #, or an empty string for None when clearable. User edits emit input and change with detail.value. Invalid values are ignored. Set name to include the value in form submission.",
|
|
4843
4973
|
"type": "string",
|
|
4844
4974
|
"default": "#000000"
|
|
4845
4975
|
}
|
|
@@ -4901,6 +5031,16 @@
|
|
|
4901
5031
|
"resizable": false,
|
|
4902
5032
|
"bindings": "",
|
|
4903
5033
|
"frameworks": {}
|
|
5034
|
+
},
|
|
5035
|
+
{
|
|
5036
|
+
"id": "@threadlabs/looma/ui-color-picker/02-optional",
|
|
5037
|
+
"name": "02-optional",
|
|
5038
|
+
"title": "Optional colors",
|
|
5039
|
+
"description": "Allow None inside each picker without a separate mode control. An empty value shows a slashed swatch.",
|
|
5040
|
+
"markup": "<ui-cluster>\n <ui-color-picker clearable value=\"\" label=\"Optional secondary accent\"></ui-color-picker>\n <ui-color-picker clearable value=\"#fc5b69\" label=\"Optional supporting accent\"></ui-color-picker>\n</ui-cluster>",
|
|
5041
|
+
"resizable": false,
|
|
5042
|
+
"bindings": "",
|
|
5043
|
+
"frameworks": {}
|
|
4904
5044
|
}
|
|
4905
5045
|
]
|
|
4906
5046
|
},
|
|
@@ -7308,7 +7448,7 @@
|
|
|
7308
7448
|
}
|
|
7309
7449
|
],
|
|
7310
7450
|
"slots": [],
|
|
7311
|
-
"group": "
|
|
7451
|
+
"group": "extras",
|
|
7312
7452
|
"id": "@threadlabs/looma/ui-curve-editor",
|
|
7313
7453
|
"title": "Curve Editor",
|
|
7314
7454
|
"resource": "@threadlabs/looma/components/ui-curve-editor/ui-curve-editor.html",
|
|
@@ -7845,7 +7985,7 @@
|
|
|
7845
7985
|
"name": "--ui-dialog-surface",
|
|
7846
7986
|
"fallbacks": [
|
|
7847
7987
|
"var(--ui-overlay-surface, var(--ui-surface-elevated))",
|
|
7848
|
-
"var(--ui-material-content, var(--ui-overlay-surface, var(--ui-surface-elevated)))"
|
|
7988
|
+
"var(--_ui-material-underpaint, var(--ui-material-content, var(--ui-overlay-surface, var(--ui-surface-elevated))))"
|
|
7849
7989
|
]
|
|
7850
7990
|
},
|
|
7851
7991
|
{
|
|
@@ -7907,6 +8047,12 @@
|
|
|
7907
8047
|
"0 0 transparent"
|
|
7908
8048
|
]
|
|
7909
8049
|
},
|
|
8050
|
+
{
|
|
8051
|
+
"name": "--ui-material-highlight",
|
|
8052
|
+
"fallbacks": [
|
|
8053
|
+
"var(--ui-surface-highlight, linear-gradient(transparent, transparent))"
|
|
8054
|
+
]
|
|
8055
|
+
},
|
|
7910
8056
|
{
|
|
7911
8057
|
"name": "--ui-motion-base"
|
|
7912
8058
|
},
|
|
@@ -8922,3696 +9068,147 @@
|
|
|
8922
9068
|
{
|
|
8923
9069
|
"name": "change",
|
|
8924
9070
|
"detailType": "{ readonly value: string; readonly previousValue: string; readonly trigger: \"keyboard\" | \"pointer\" | \"programmatic\" }",
|
|
8925
|
-
"detailSchema": "object",
|
|
8926
|
-
"fields": [
|
|
8927
|
-
{
|
|
8928
|
-
"path": "value",
|
|
8929
|
-
"type": "string",
|
|
8930
|
-
"required": true
|
|
8931
|
-
},
|
|
8932
|
-
{
|
|
8933
|
-
"path": "previousValue",
|
|
8934
|
-
"type": "string",
|
|
8935
|
-
"required": true
|
|
8936
|
-
},
|
|
8937
|
-
{
|
|
8938
|
-
"path": "trigger",
|
|
8939
|
-
"type": "keyword",
|
|
8940
|
-
"required": true,
|
|
8941
|
-
"values": [
|
|
8942
|
-
"keyboard",
|
|
8943
|
-
"pointer",
|
|
8944
|
-
"programmatic"
|
|
8945
|
-
]
|
|
8946
|
-
}
|
|
8947
|
-
],
|
|
8948
|
-
"detailDocs": "Emitted when a toggleable control changes checked state."
|
|
8949
|
-
},
|
|
8950
|
-
{
|
|
8951
|
-
"name": "edit-change",
|
|
8952
|
-
"detailType": "{ readonly edit: boolean; readonly reason: \"activate\" | \"commit\" | \"cancel\" | \"light-dismiss\" | \"escape\" | \"programmatic\"; readonly trigger: \"keyboard\" | \"pointer\" | \"programmatic\" }",
|
|
8953
|
-
"detailSchema": "object",
|
|
8954
|
-
"fields": [
|
|
8955
|
-
{
|
|
8956
|
-
"path": "edit",
|
|
8957
|
-
"type": "boolean",
|
|
8958
|
-
"required": true
|
|
8959
|
-
},
|
|
8960
|
-
{
|
|
8961
|
-
"path": "reason",
|
|
8962
|
-
"type": "keyword",
|
|
8963
|
-
"required": true,
|
|
8964
|
-
"values": [
|
|
8965
|
-
"activate",
|
|
8966
|
-
"commit",
|
|
8967
|
-
"cancel",
|
|
8968
|
-
"light-dismiss",
|
|
8969
|
-
"escape",
|
|
8970
|
-
"programmatic"
|
|
8971
|
-
]
|
|
8972
|
-
},
|
|
8973
|
-
{
|
|
8974
|
-
"path": "trigger",
|
|
8975
|
-
"type": "keyword",
|
|
8976
|
-
"required": true,
|
|
8977
|
-
"values": [
|
|
8978
|
-
"keyboard",
|
|
8979
|
-
"pointer",
|
|
8980
|
-
"programmatic"
|
|
8981
|
-
]
|
|
8982
|
-
}
|
|
8983
|
-
],
|
|
8984
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
8985
|
-
},
|
|
8986
|
-
{
|
|
8987
|
-
"name": "input",
|
|
8988
|
-
"detailType": "{ readonly value: string; readonly trigger: \"keyboard\" | \"pointer\" | \"programmatic\" }",
|
|
8989
|
-
"detailSchema": "object",
|
|
8990
|
-
"fields": [
|
|
8991
|
-
{
|
|
8992
|
-
"path": "value",
|
|
8993
|
-
"type": "string",
|
|
8994
|
-
"required": true
|
|
8995
|
-
},
|
|
8996
|
-
{
|
|
8997
|
-
"path": "trigger",
|
|
8998
|
-
"type": "keyword",
|
|
8999
|
-
"required": true,
|
|
9000
|
-
"values": [
|
|
9001
|
-
"keyboard",
|
|
9002
|
-
"pointer",
|
|
9003
|
-
"programmatic"
|
|
9004
|
-
]
|
|
9005
|
-
}
|
|
9006
|
-
],
|
|
9007
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
9008
|
-
}
|
|
9009
|
-
],
|
|
9010
|
-
"slots": [],
|
|
9011
|
-
"group": "forms",
|
|
9012
|
-
"id": "@threadlabs/looma/ui-editable",
|
|
9013
|
-
"title": "Editable",
|
|
9014
|
-
"resource": "@threadlabs/looma/components/ui-editable/ui-editable.html",
|
|
9015
|
-
"targets": [
|
|
9016
|
-
"html-next",
|
|
9017
|
-
"vue"
|
|
9018
|
-
],
|
|
9019
|
-
"examples": [
|
|
9020
|
-
{
|
|
9021
|
-
"id": "@threadlabs/looma/ui-editable/01-default",
|
|
9022
|
-
"name": "01-default",
|
|
9023
|
-
"title": "Default",
|
|
9024
|
-
"description": "Click the text (or focus it and press Enter) to edit it in place. Enter or clicking away saves; Escape cancels. The control keeps the same size in both states.",
|
|
9025
|
-
"markup": "<ui-editable value=\"Editable text\" label=\"Project title\"> </ui-editable>",
|
|
9026
|
-
"resizable": false,
|
|
9027
|
-
"bindings": "",
|
|
9028
|
-
"frameworks": {}
|
|
9029
|
-
},
|
|
9030
|
-
{
|
|
9031
|
-
"id": "@threadlabs/looma/ui-editable/02-hint-rename",
|
|
9032
|
-
"name": "02-hint-rename",
|
|
9033
|
-
"title": "hint=\"Rename\"",
|
|
9034
|
-
"description": "Hint adds visible text beside the value to signal that it can be edited. Nothing is shown unless you ask for it.",
|
|
9035
|
-
"markup": "<ui-editable value=\"Quarterly roadmap\" label=\"Document title\" hint=\"Rename\"> </ui-editable>",
|
|
9036
|
-
"resizable": false,
|
|
9037
|
-
"bindings": "",
|
|
9038
|
-
"frameworks": {}
|
|
9039
|
-
},
|
|
9040
|
-
{
|
|
9041
|
-
"id": "@threadlabs/looma/ui-editable/03-actions",
|
|
9042
|
-
"name": "03-actions",
|
|
9043
|
-
"title": "actions",
|
|
9044
|
-
"description": "Actions shows explicit Save and Cancel buttons while editing, for cases where an implicit save on Enter or blur is not enough.",
|
|
9045
|
-
"markup": "<ui-editable value=\"Quarterly roadmap\" label=\"Document title\" actions> </ui-editable>",
|
|
9046
|
-
"resizable": false,
|
|
9047
|
-
"bindings": "",
|
|
9048
|
-
"frameworks": {}
|
|
9049
|
-
},
|
|
9050
|
-
{
|
|
9051
|
-
"id": "@threadlabs/looma/ui-editable/04-edit-and-disabled",
|
|
9052
|
-
"name": "04-edit-and-disabled",
|
|
9053
|
-
"title": "edit and disabled",
|
|
9054
|
-
"description": "Edit starts in edit mode; disabled prevents entering it.",
|
|
9055
|
-
"markup": "<ui-stack gap=\"s\" align=\"start\">\n <ui-editable value=\"Editing now\" label=\"Title\" edit> </ui-editable>\n <ui-editable value=\"Locked title\" label=\"Locked title\" disabled> </ui-editable>\n</ui-stack>",
|
|
9056
|
-
"resizable": false,
|
|
9057
|
-
"bindings": "",
|
|
9058
|
-
"frameworks": {}
|
|
9059
|
-
},
|
|
9060
|
-
{
|
|
9061
|
-
"id": "@threadlabs/looma/ui-editable/05-constraints",
|
|
9062
|
-
"name": "05-constraints",
|
|
9063
|
-
"title": "Required short text",
|
|
9064
|
-
"description": "Native required and maximum-length constraints keep an invalid draft open. Action labels and the empty placeholder can match the field.",
|
|
9065
|
-
"markup": "<ui-editable\n label=\"Short name\"\n value=\"Untitled\"\n actions\n required\n max-length=\"24\"\n placeholder=\"Enter a short name\"\n save-label=\"Apply\"\n cancel-label=\"Discard\"\n></ui-editable>",
|
|
9066
|
-
"resizable": false,
|
|
9067
|
-
"bindings": "",
|
|
9068
|
-
"frameworks": {}
|
|
9069
|
-
}
|
|
9070
|
-
]
|
|
9071
|
-
},
|
|
9072
|
-
{
|
|
9073
|
-
"tag": "ui-editor-block-actions",
|
|
9074
|
-
"package": "@threadlabs/looma",
|
|
9075
|
-
"root": "div",
|
|
9076
|
-
"description": "The editor's block menu: insert a paragraph below, duplicate, or delete the block that holds the caret.",
|
|
9077
|
-
"designTokens": {
|
|
9078
|
-
"sources": [
|
|
9079
|
-
"packages/looma/src/components/ui-editor-block-actions/ui-editor-block-actions.html"
|
|
9080
|
-
],
|
|
9081
|
-
"component": [],
|
|
9082
|
-
"shared": []
|
|
9083
|
-
},
|
|
9084
|
-
"attributes": [
|
|
9085
|
-
{
|
|
9086
|
-
"name": "for",
|
|
9087
|
-
"property": "for",
|
|
9088
|
-
"description": "The id of the button that opens the menu and anchors it.",
|
|
9089
|
-
"type": "string",
|
|
9090
|
-
"default": ""
|
|
9091
|
-
},
|
|
9092
|
-
{
|
|
9093
|
-
"name": "placement",
|
|
9094
|
-
"property": "placement",
|
|
9095
|
-
"description": "Where the menu opens beside its button; top-start suits a toolbar docked at the bottom of the screen.",
|
|
9096
|
-
"type": "keyword",
|
|
9097
|
-
"default": "bottom-start",
|
|
9098
|
-
"options": [
|
|
9099
|
-
"bottom-start",
|
|
9100
|
-
"top-start"
|
|
9101
|
-
]
|
|
9102
|
-
}
|
|
9103
|
-
],
|
|
9104
|
-
"properties": [
|
|
9105
|
-
{
|
|
9106
|
-
"name": "for",
|
|
9107
|
-
"description": "The id of the button that opens the menu and anchors it.",
|
|
9108
|
-
"type": "string",
|
|
9109
|
-
"default": ""
|
|
9110
|
-
},
|
|
9111
|
-
{
|
|
9112
|
-
"name": "placement",
|
|
9113
|
-
"description": "Where the menu opens beside its button; top-start suits a toolbar docked at the bottom of the screen.",
|
|
9114
|
-
"type": "\"bottom-start\" | \"top-start\"",
|
|
9115
|
-
"default": "bottom-start",
|
|
9116
|
-
"options": [
|
|
9117
|
-
"bottom-start",
|
|
9118
|
-
"top-start"
|
|
9119
|
-
]
|
|
9120
|
-
}
|
|
9121
|
-
],
|
|
9122
|
-
"events": [
|
|
9123
|
-
{
|
|
9124
|
-
"name": "action",
|
|
9125
|
-
"detailType": "{ readonly action: \"insert-below\" | \"duplicate\" | \"delete\" }",
|
|
9126
|
-
"detailSchema": "object",
|
|
9127
|
-
"fields": [
|
|
9128
|
-
{
|
|
9129
|
-
"path": "action",
|
|
9130
|
-
"type": "keyword",
|
|
9131
|
-
"required": true,
|
|
9132
|
-
"values": [
|
|
9133
|
-
"insert-below",
|
|
9134
|
-
"duplicate",
|
|
9135
|
-
"delete"
|
|
9136
|
-
]
|
|
9137
|
-
}
|
|
9138
|
-
],
|
|
9139
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
9140
|
-
}
|
|
9141
|
-
],
|
|
9142
|
-
"slots": [],
|
|
9143
|
-
"title": "Block Actions",
|
|
9144
|
-
"group": "editor",
|
|
9145
|
-
"id": "@threadlabs/looma/ui-editor-block-actions",
|
|
9146
|
-
"resource": "@threadlabs/looma/components/ui-editor-block-actions/ui-editor-block-actions.html",
|
|
9147
|
-
"targets": [
|
|
9148
|
-
"html-next",
|
|
9149
|
-
"vue"
|
|
9150
|
-
],
|
|
9151
|
-
"examples": [
|
|
9152
|
-
{
|
|
9153
|
-
"id": "@threadlabs/looma/ui-editor-block-actions/01-menu",
|
|
9154
|
-
"name": "01-menu",
|
|
9155
|
-
"title": "Block actions",
|
|
9156
|
-
"description": "The editor toolbar's Block actions button opens the menu; each choice requests an action on the block that holds the caret.",
|
|
9157
|
-
"markup": "<ui-icon-button id=\"block-actions-example\" label=\"Block actions\" variant=\"ghost\"><ui-icon name=\"ellipsis\"></ui-icon></ui-icon-button>\n<ui-editor-block-actions for=\"block-actions-example\"> </ui-editor-block-actions>",
|
|
9158
|
-
"resizable": false,
|
|
9159
|
-
"bindings": "",
|
|
9160
|
-
"frameworks": {}
|
|
9161
|
-
},
|
|
9162
|
-
{
|
|
9163
|
-
"id": "@threadlabs/looma/ui-editor-block-actions/02-above",
|
|
9164
|
-
"name": "02-above",
|
|
9165
|
-
"title": "Above its button",
|
|
9166
|
-
"description": "placement=\"top-start\" opens the menu above the button, for a toolbar that sits at the bottom of the screen.",
|
|
9167
|
-
"markup": "<ui-icon-button id=\"block-actions-above\" label=\"Block actions\" variant=\"ghost\"><ui-icon name=\"ellipsis\"></ui-icon></ui-icon-button>\n<ui-editor-block-actions for=\"block-actions-above\" placement=\"top-start\"> </ui-editor-block-actions>",
|
|
9168
|
-
"resizable": false,
|
|
9169
|
-
"bindings": "",
|
|
9170
|
-
"frameworks": {}
|
|
9171
|
-
}
|
|
9172
|
-
]
|
|
9173
|
-
},
|
|
9174
|
-
{
|
|
9175
|
-
"tag": "ui-editor-chip-editor",
|
|
9176
|
-
"package": "@threadlabs/looma",
|
|
9177
|
-
"root": "div",
|
|
9178
|
-
"description": "The editor's chip editor: a field for the chip's text and swatches for its colour.",
|
|
9179
|
-
"designTokens": {
|
|
9180
|
-
"sources": [
|
|
9181
|
-
"packages/looma/src/components/ui-editor-chip-editor/ui-editor-chip-editor.html"
|
|
9182
|
-
],
|
|
9183
|
-
"component": [],
|
|
9184
|
-
"shared": []
|
|
9185
|
-
},
|
|
9186
|
-
"attributes": [
|
|
9187
|
-
{
|
|
9188
|
-
"name": "color",
|
|
9189
|
-
"property": "color",
|
|
9190
|
-
"description": "The chip's colour, checked among the swatches.",
|
|
9191
|
-
"type": "keyword",
|
|
9192
|
-
"default": "neutral",
|
|
9193
|
-
"options": [
|
|
9194
|
-
"neutral",
|
|
9195
|
-
"blue",
|
|
9196
|
-
"green",
|
|
9197
|
-
"yellow",
|
|
9198
|
-
"red",
|
|
9199
|
-
"purple"
|
|
9200
|
-
]
|
|
9201
|
-
},
|
|
9202
|
-
{
|
|
9203
|
-
"name": "label",
|
|
9204
|
-
"property": "label",
|
|
9205
|
-
"description": "The chip's text, shown in the field as the reader edits it.",
|
|
9206
|
-
"type": "string",
|
|
9207
|
-
"default": ""
|
|
9208
|
-
}
|
|
9209
|
-
],
|
|
9210
|
-
"properties": [
|
|
9211
|
-
{
|
|
9212
|
-
"name": "color",
|
|
9213
|
-
"description": "The chip's colour, checked among the swatches.",
|
|
9214
|
-
"type": "\"neutral\" | \"blue\" | \"green\" | \"yellow\" | \"red\" | \"purple\"",
|
|
9215
|
-
"default": "neutral",
|
|
9216
|
-
"options": [
|
|
9217
|
-
"neutral",
|
|
9218
|
-
"blue",
|
|
9219
|
-
"green",
|
|
9220
|
-
"yellow",
|
|
9221
|
-
"red",
|
|
9222
|
-
"purple"
|
|
9223
|
-
]
|
|
9224
|
-
},
|
|
9225
|
-
{
|
|
9226
|
-
"name": "label",
|
|
9227
|
-
"description": "The chip's text, shown in the field as the reader edits it.",
|
|
9228
|
-
"type": "string",
|
|
9229
|
-
"default": ""
|
|
9230
|
-
}
|
|
9231
|
-
],
|
|
9232
|
-
"events": [
|
|
9233
|
-
{
|
|
9234
|
-
"name": "color",
|
|
9235
|
-
"detailType": "{ readonly color: \"neutral\" | \"blue\" | \"green\" | \"yellow\" | \"red\" | \"purple\" }",
|
|
9236
|
-
"detailSchema": "object",
|
|
9237
|
-
"fields": [
|
|
9238
|
-
{
|
|
9239
|
-
"path": "color",
|
|
9240
|
-
"type": "keyword",
|
|
9241
|
-
"required": true,
|
|
9242
|
-
"values": [
|
|
9243
|
-
"neutral",
|
|
9244
|
-
"blue",
|
|
9245
|
-
"green",
|
|
9246
|
-
"yellow",
|
|
9247
|
-
"red",
|
|
9248
|
-
"purple"
|
|
9249
|
-
]
|
|
9250
|
-
}
|
|
9251
|
-
],
|
|
9252
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
9253
|
-
},
|
|
9254
|
-
{
|
|
9255
|
-
"name": "done",
|
|
9256
|
-
"detailType": "\"object\"",
|
|
9257
|
-
"detailSchema": "object",
|
|
9258
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
9259
|
-
},
|
|
9260
|
-
{
|
|
9261
|
-
"name": "label",
|
|
9262
|
-
"detailType": "{ readonly label: string }",
|
|
9263
|
-
"detailSchema": "object",
|
|
9264
|
-
"fields": [
|
|
9265
|
-
{
|
|
9266
|
-
"path": "label",
|
|
9267
|
-
"type": "string",
|
|
9268
|
-
"required": true
|
|
9269
|
-
}
|
|
9270
|
-
],
|
|
9271
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
9272
|
-
}
|
|
9273
|
-
],
|
|
9274
|
-
"slots": [],
|
|
9275
|
-
"title": "Chip Editor",
|
|
9276
|
-
"group": "editor",
|
|
9277
|
-
"id": "@threadlabs/looma/ui-editor-chip-editor",
|
|
9278
|
-
"resource": "@threadlabs/looma/components/ui-editor-chip-editor/ui-editor-chip-editor.html",
|
|
9279
|
-
"targets": [
|
|
9280
|
-
"html-next",
|
|
9281
|
-
"vue"
|
|
9282
|
-
],
|
|
9283
|
-
"examples": [
|
|
9284
|
-
{
|
|
9285
|
-
"id": "@threadlabs/looma/ui-editor-chip-editor/01-chip",
|
|
9286
|
-
"name": "01-chip",
|
|
9287
|
-
"title": "Chip",
|
|
9288
|
-
"description": "The text field edits the chip's text, and the swatches choose its colour; Enter or Escape in the field reports done.",
|
|
9289
|
-
"markup": "<ui-editor-chip-editor label=\"In progress\" color=\"blue\"> </ui-editor-chip-editor>",
|
|
9290
|
-
"resizable": false,
|
|
9291
|
-
"bindings": "",
|
|
9292
|
-
"frameworks": {}
|
|
9293
|
-
},
|
|
9294
|
-
{
|
|
9295
|
-
"id": "@threadlabs/looma/ui-editor-chip-editor/02-new-chip",
|
|
9296
|
-
"name": "02-new-chip",
|
|
9297
|
-
"title": "New chip",
|
|
9298
|
-
"description": "A chip with no text yet shows the field's placeholder and the neutral swatch checked.",
|
|
9299
|
-
"markup": "<ui-editor-chip-editor> </ui-editor-chip-editor>",
|
|
9300
|
-
"resizable": false,
|
|
9301
|
-
"bindings": "",
|
|
9302
|
-
"frameworks": {}
|
|
9303
|
-
}
|
|
9304
|
-
]
|
|
9305
|
-
},
|
|
9306
|
-
{
|
|
9307
|
-
"tag": "ui-editor-code-language",
|
|
9308
|
-
"package": "@threadlabs/looma",
|
|
9309
|
-
"root": "div",
|
|
9310
|
-
"description": "The code block's language picker: a compact combobox of the languages the editor can highlight, with Auto first.",
|
|
9311
|
-
"designTokens": {
|
|
9312
|
-
"sources": [
|
|
9313
|
-
"packages/looma/src/components/ui-editor-code-language/ui-editor-code-language.html"
|
|
9314
|
-
],
|
|
9315
|
-
"component": [],
|
|
9316
|
-
"shared": []
|
|
9317
|
-
},
|
|
9318
|
-
"attributes": [
|
|
9319
|
-
{
|
|
9320
|
-
"name": "languages",
|
|
9321
|
-
"property": "languages",
|
|
9322
|
-
"description": "The languages to offer, in order, each with its label; the editor lists Auto first and marks a saved language it cannot highlight.",
|
|
9323
|
-
"type": "list(object)",
|
|
9324
|
-
"fields": [
|
|
9325
|
-
{
|
|
9326
|
-
"path": "[].value",
|
|
9327
|
-
"type": "string",
|
|
9328
|
-
"required": true
|
|
9329
|
-
},
|
|
9330
|
-
{
|
|
9331
|
-
"path": "[].label",
|
|
9332
|
-
"type": "string",
|
|
9333
|
-
"required": true
|
|
9334
|
-
}
|
|
9335
|
-
]
|
|
9336
|
-
},
|
|
9337
|
-
{
|
|
9338
|
-
"name": "value",
|
|
9339
|
-
"property": "value",
|
|
9340
|
-
"description": "The code block's language, or auto to detect it.",
|
|
9341
|
-
"type": "string",
|
|
9342
|
-
"default": "auto"
|
|
9343
|
-
}
|
|
9344
|
-
],
|
|
9345
|
-
"properties": [
|
|
9346
|
-
{
|
|
9347
|
-
"name": "languages",
|
|
9348
|
-
"description": "The languages to offer, in order, each with its label; the editor lists Auto first and marks a saved language it cannot highlight.",
|
|
9349
|
-
"type": "readonly ({ readonly value: string; readonly label: string })[]",
|
|
9350
|
-
"fields": [
|
|
9351
|
-
{
|
|
9352
|
-
"path": "[].value",
|
|
9353
|
-
"type": "string",
|
|
9354
|
-
"required": true
|
|
9355
|
-
},
|
|
9356
|
-
{
|
|
9357
|
-
"path": "[].label",
|
|
9358
|
-
"type": "string",
|
|
9359
|
-
"required": true
|
|
9360
|
-
}
|
|
9361
|
-
]
|
|
9362
|
-
},
|
|
9363
|
-
{
|
|
9364
|
-
"name": "value",
|
|
9365
|
-
"description": "The code block's language, or auto to detect it.",
|
|
9366
|
-
"type": "string",
|
|
9367
|
-
"default": "auto"
|
|
9368
|
-
}
|
|
9369
|
-
],
|
|
9370
|
-
"events": [
|
|
9371
|
-
{
|
|
9372
|
-
"name": "language",
|
|
9373
|
-
"detailType": "{ readonly value: string }",
|
|
9374
|
-
"detailSchema": "object",
|
|
9375
|
-
"fields": [
|
|
9376
|
-
{
|
|
9377
|
-
"path": "value",
|
|
9378
|
-
"type": "string",
|
|
9379
|
-
"required": true
|
|
9380
|
-
}
|
|
9381
|
-
],
|
|
9382
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
9383
|
-
}
|
|
9384
|
-
],
|
|
9385
|
-
"slots": [],
|
|
9386
|
-
"title": "Code Language",
|
|
9387
|
-
"group": "editor",
|
|
9388
|
-
"id": "@threadlabs/looma/ui-editor-code-language",
|
|
9389
|
-
"resource": "@threadlabs/looma/components/ui-editor-code-language/ui-editor-code-language.html",
|
|
9390
|
-
"targets": [
|
|
9391
|
-
"html-next",
|
|
9392
|
-
"vue"
|
|
9393
|
-
],
|
|
9394
|
-
"examples": [
|
|
9395
|
-
{
|
|
9396
|
-
"id": "@threadlabs/looma/ui-editor-code-language/01-languages",
|
|
9397
|
-
"name": "01-languages",
|
|
9398
|
-
"title": "Languages",
|
|
9399
|
-
"description": "The picker lists Auto and the languages the editor can highlight, and reports the one chosen.",
|
|
9400
|
-
"markup": "<ui-editor-code-language\n id=\"code-language\"\n value=\"javascript\"\n languages='[{\"value\":\"auto\",\"label\":\"Auto\"},{\"value\":\"css\",\"label\":\"CSS\"},{\"value\":\"html\",\"label\":\"HTML\"},{\"value\":\"javascript\",\"label\":\"JAVASCRIPT\"},{\"value\":\"typescript\",\"label\":\"TYPESCRIPT\"}]'\n>\n</ui-editor-code-language>",
|
|
9401
|
-
"resizable": false,
|
|
9402
|
-
"bindings": "languages=codeLanguages",
|
|
9403
|
-
"frameworks": {}
|
|
9404
|
-
},
|
|
9405
|
-
{
|
|
9406
|
-
"id": "@threadlabs/looma/ui-editor-code-language/02-auto",
|
|
9407
|
-
"name": "02-auto",
|
|
9408
|
-
"title": "Auto",
|
|
9409
|
-
"description": "With value=\"auto\" the picker shows Auto, for a code block whose language the editor detects.",
|
|
9410
|
-
"markup": "<ui-editor-code-language\n id=\"code-language-auto\"\n value=\"auto\"\n languages='[{\"value\":\"auto\",\"label\":\"Auto\"},{\"value\":\"css\",\"label\":\"CSS\"},{\"value\":\"html\",\"label\":\"HTML\"},{\"value\":\"javascript\",\"label\":\"JAVASCRIPT\"},{\"value\":\"typescript\",\"label\":\"TYPESCRIPT\"}]'\n>\n</ui-editor-code-language>",
|
|
9411
|
-
"resizable": false,
|
|
9412
|
-
"bindings": "languages=codeLanguages",
|
|
9413
|
-
"frameworks": {}
|
|
9414
|
-
}
|
|
9415
|
-
]
|
|
9416
|
-
},
|
|
9417
|
-
{
|
|
9418
|
-
"tag": "ui-editor-footnote-editor",
|
|
9419
|
-
"package": "@threadlabs/looma",
|
|
9420
|
-
"root": "div",
|
|
9421
|
-
"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.",
|
|
9422
|
-
"designTokens": {
|
|
9423
|
-
"sources": [
|
|
9424
|
-
"packages/looma/src/components/ui-editor-footnote-editor/ui-editor-footnote-editor.html"
|
|
9425
|
-
],
|
|
9426
|
-
"component": [],
|
|
9427
|
-
"shared": []
|
|
9428
|
-
},
|
|
9429
|
-
"attributes": [
|
|
9430
|
-
{
|
|
9431
|
-
"name": "note",
|
|
9432
|
-
"property": "note",
|
|
9433
|
-
"description": "Content for the default plain-text field. Supply rich editing content through the default slot.",
|
|
9434
|
-
"type": "string",
|
|
9435
|
-
"default": ""
|
|
9436
|
-
}
|
|
9437
|
-
],
|
|
9438
|
-
"properties": [
|
|
9439
|
-
{
|
|
9440
|
-
"name": "note",
|
|
9441
|
-
"description": "Content for the default plain-text field. Supply rich editing content through the default slot.",
|
|
9442
|
-
"type": "string",
|
|
9443
|
-
"default": ""
|
|
9444
|
-
}
|
|
9445
|
-
],
|
|
9446
|
-
"events": [
|
|
9447
|
-
{
|
|
9448
|
-
"name": "done",
|
|
9449
|
-
"detailType": "\"object\"",
|
|
9450
|
-
"detailSchema": "object",
|
|
9451
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
9452
|
-
},
|
|
9453
|
-
{
|
|
9454
|
-
"name": "text",
|
|
9455
|
-
"detailType": "{ readonly text: string }",
|
|
9456
|
-
"detailSchema": "object",
|
|
9457
|
-
"fields": [
|
|
9458
|
-
{
|
|
9459
|
-
"path": "text",
|
|
9460
|
-
"type": "string",
|
|
9461
|
-
"required": true
|
|
9462
|
-
}
|
|
9463
|
-
],
|
|
9464
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
9465
|
-
}
|
|
9466
|
-
],
|
|
9467
|
-
"slots": [
|
|
9468
|
-
{
|
|
9469
|
-
"name": "default",
|
|
9470
|
-
"description": "Default child content."
|
|
9471
|
-
}
|
|
9472
|
-
],
|
|
9473
|
-
"title": "Footnote Editor",
|
|
9474
|
-
"summary": "A floating editor for a note’s content; numbering is automatic.",
|
|
9475
|
-
"group": "editor",
|
|
9476
|
-
"id": "@threadlabs/looma/ui-editor-footnote-editor",
|
|
9477
|
-
"resource": "@threadlabs/looma/components/ui-editor-footnote-editor/ui-editor-footnote-editor.html",
|
|
9478
|
-
"targets": [
|
|
9479
|
-
"html-next",
|
|
9480
|
-
"vue"
|
|
9481
|
-
],
|
|
9482
|
-
"examples": [
|
|
9483
|
-
{
|
|
9484
|
-
"id": "@threadlabs/looma/ui-editor-footnote-editor/01-note",
|
|
9485
|
-
"name": "01-note",
|
|
9486
|
-
"title": "Floating note",
|
|
9487
|
-
"description": "Edit the note's content in a floating surface. The document assigns reference numbers automatically.",
|
|
9488
|
-
"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>",
|
|
9489
|
-
"resizable": false,
|
|
9490
|
-
"bindings": "",
|
|
9491
|
-
"frameworks": {},
|
|
9492
|
-
"behavior": "@threadlabs/looma/docs/examples/ui-editor-footnote-editor/examples/01-note.behavior.js"
|
|
9493
|
-
},
|
|
9494
|
-
{
|
|
9495
|
-
"id": "@threadlabs/looma/ui-editor-footnote-editor/02-formatted-note",
|
|
9496
|
-
"name": "02-formatted-note",
|
|
9497
|
-
"title": "Note field",
|
|
9498
|
-
"description": "The standalone frame provides a simple field; the full document editor composes its rich-text field in this same slot.",
|
|
9499
|
-
"markup": "<ui-editor-footnote-editor note=\"Each test ran three times. The median is reported.\"></ui-editor-footnote-editor>",
|
|
9500
|
-
"resizable": false,
|
|
9501
|
-
"bindings": "",
|
|
9502
|
-
"frameworks": {}
|
|
9503
|
-
}
|
|
9504
|
-
]
|
|
9505
|
-
},
|
|
9506
|
-
{
|
|
9507
|
-
"tag": "ui-editor-image-toolbar",
|
|
9508
|
-
"package": "@threadlabs/looma",
|
|
9509
|
-
"root": "div",
|
|
9510
|
-
"description": "Contextual actions for a selected image: four placement commands, a description form, and delete.",
|
|
9511
|
-
"designTokens": {
|
|
9512
|
-
"sources": [
|
|
9513
|
-
"packages/looma/src/components/ui-editor-image-toolbar/ui-editor-image-toolbar.html"
|
|
9514
|
-
],
|
|
9515
|
-
"component": [],
|
|
9516
|
-
"shared": []
|
|
9517
|
-
},
|
|
9518
|
-
"attributes": [
|
|
9519
|
-
{
|
|
9520
|
-
"name": "alt",
|
|
9521
|
-
"property": "alt",
|
|
9522
|
-
"description": "The selected image's description, which the description form starts from.",
|
|
9523
|
-
"type": "string",
|
|
9524
|
-
"default": ""
|
|
9525
|
-
},
|
|
9526
|
-
{
|
|
9527
|
-
"name": "placement",
|
|
9528
|
-
"property": "placement",
|
|
9529
|
-
"description": "How the selected image sits in the text; its command shows as pressed.",
|
|
9530
|
-
"type": "keyword",
|
|
9531
|
-
"default": "block",
|
|
9532
|
-
"options": [
|
|
9533
|
-
"block",
|
|
9534
|
-
"center",
|
|
9535
|
-
"wrap-left",
|
|
9536
|
-
"wrap-right"
|
|
9537
|
-
]
|
|
9538
|
-
},
|
|
9539
|
-
{
|
|
9540
|
-
"name": "target",
|
|
9541
|
-
"property": "target",
|
|
9542
|
-
"description": "Identifies the image the toolbar acts on. When it changes, an open description draft is cancelled rather than applied to another image.",
|
|
9543
|
-
"type": "string",
|
|
9544
|
-
"default": ""
|
|
9545
|
-
}
|
|
9546
|
-
],
|
|
9547
|
-
"properties": [
|
|
9548
|
-
{
|
|
9549
|
-
"name": "alt",
|
|
9550
|
-
"description": "The selected image's description, which the description form starts from.",
|
|
9551
|
-
"type": "string",
|
|
9552
|
-
"default": ""
|
|
9553
|
-
},
|
|
9554
|
-
{
|
|
9555
|
-
"name": "placement",
|
|
9556
|
-
"description": "How the selected image sits in the text; its command shows as pressed.",
|
|
9557
|
-
"type": "\"block\" | \"center\" | \"wrap-left\" | \"wrap-right\"",
|
|
9558
|
-
"default": "block",
|
|
9559
|
-
"options": [
|
|
9560
|
-
"block",
|
|
9561
|
-
"center",
|
|
9562
|
-
"wrap-left",
|
|
9563
|
-
"wrap-right"
|
|
9564
|
-
]
|
|
9565
|
-
},
|
|
9566
|
-
{
|
|
9567
|
-
"name": "target",
|
|
9568
|
-
"description": "Identifies the image the toolbar acts on. When it changes, an open description draft is cancelled rather than applied to another image.",
|
|
9569
|
-
"type": "string",
|
|
9570
|
-
"default": ""
|
|
9571
|
-
}
|
|
9572
|
-
],
|
|
9573
|
-
"events": [
|
|
9574
|
-
{
|
|
9575
|
-
"name": "delete",
|
|
9576
|
-
"detailType": "\"object\"",
|
|
9577
|
-
"detailSchema": "object",
|
|
9578
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
9579
|
-
},
|
|
9580
|
-
{
|
|
9581
|
-
"name": "describe",
|
|
9582
|
-
"detailType": "{ readonly alt: string }",
|
|
9583
|
-
"detailSchema": "object",
|
|
9584
|
-
"fields": [
|
|
9585
|
-
{
|
|
9586
|
-
"path": "alt",
|
|
9587
|
-
"type": "string",
|
|
9588
|
-
"required": true
|
|
9589
|
-
}
|
|
9590
|
-
],
|
|
9591
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
9592
|
-
},
|
|
9593
|
-
{
|
|
9594
|
-
"name": "placement",
|
|
9595
|
-
"detailType": "{ readonly placement: \"block\" | \"center\" | \"wrap-left\" | \"wrap-right\" }",
|
|
9596
|
-
"detailSchema": "object",
|
|
9597
|
-
"fields": [
|
|
9598
|
-
{
|
|
9599
|
-
"path": "placement",
|
|
9600
|
-
"type": "keyword",
|
|
9601
|
-
"required": true,
|
|
9602
|
-
"values": [
|
|
9603
|
-
"block",
|
|
9604
|
-
"center",
|
|
9605
|
-
"wrap-left",
|
|
9606
|
-
"wrap-right"
|
|
9607
|
-
]
|
|
9608
|
-
}
|
|
9609
|
-
],
|
|
9610
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
9611
|
-
}
|
|
9612
|
-
],
|
|
9613
|
-
"slots": [],
|
|
9614
|
-
"title": "Image Toolbar",
|
|
9615
|
-
"group": "editor",
|
|
9616
|
-
"id": "@threadlabs/looma/ui-editor-image-toolbar",
|
|
9617
|
-
"resource": "@threadlabs/looma/components/ui-editor-image-toolbar/ui-editor-image-toolbar.html",
|
|
9618
|
-
"targets": [
|
|
9619
|
-
"html-next",
|
|
9620
|
-
"vue"
|
|
9621
|
-
],
|
|
9622
|
-
"examples": [
|
|
9623
|
-
{
|
|
9624
|
-
"id": "@threadlabs/looma/ui-editor-image-toolbar/01-placement",
|
|
9625
|
-
"name": "01-placement",
|
|
9626
|
-
"title": "Placement",
|
|
9627
|
-
"description": "The placement property marks how the selected image sits in the text; each command requests another placement.",
|
|
9628
|
-
"markup": "<ui-editor-image-toolbar placement=\"center\" alt=\"A mountain lake at dawn\" target=\"image-1\"> </ui-editor-image-toolbar>",
|
|
9629
|
-
"resizable": false,
|
|
9630
|
-
"bindings": "",
|
|
9631
|
-
"frameworks": {}
|
|
9632
|
-
},
|
|
9633
|
-
{
|
|
9634
|
-
"id": "@threadlabs/looma/ui-editor-image-toolbar/02-wrapped",
|
|
9635
|
-
"name": "02-wrapped",
|
|
9636
|
-
"title": "Wrapped image",
|
|
9637
|
-
"description": "A wrapped image marks its wrap command; Image description opens a form for the alt text, and Delete image requests removal.",
|
|
9638
|
-
"markup": "<ui-editor-image-toolbar placement=\"wrap-left\" alt=\"\" target=\"image-2\"> </ui-editor-image-toolbar>",
|
|
9639
|
-
"resizable": false,
|
|
9640
|
-
"bindings": "",
|
|
9641
|
-
"frameworks": {}
|
|
9642
|
-
}
|
|
9643
|
-
]
|
|
9644
|
-
},
|
|
9645
|
-
{
|
|
9646
|
-
"tag": "ui-editor-insert-table-grid",
|
|
9647
|
-
"package": "@threadlabs/looma",
|
|
9648
|
-
"root": "div",
|
|
9649
|
-
"description": "Grid picker for table dimensions and optional header-row intent.",
|
|
9650
|
-
"designTokens": {
|
|
9651
|
-
"sources": [
|
|
9652
|
-
"packages/looma/src/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html"
|
|
9653
|
-
],
|
|
9654
|
-
"component": [],
|
|
9655
|
-
"shared": [
|
|
9656
|
-
{
|
|
9657
|
-
"name": "--ui-accent"
|
|
9658
|
-
},
|
|
9659
|
-
{
|
|
9660
|
-
"name": "--ui-accent-solid",
|
|
9661
|
-
"fallbacks": [
|
|
9662
|
-
"var(--ui-accent)"
|
|
9663
|
-
]
|
|
9664
|
-
},
|
|
9665
|
-
{
|
|
9666
|
-
"name": "--ui-border-strong"
|
|
9667
|
-
},
|
|
9668
|
-
{
|
|
9669
|
-
"name": "--ui-border-width"
|
|
9670
|
-
},
|
|
9671
|
-
{
|
|
9672
|
-
"name": "--ui-control-border"
|
|
9673
|
-
},
|
|
9674
|
-
{
|
|
9675
|
-
"name": "--ui-focus-ring"
|
|
9676
|
-
},
|
|
9677
|
-
{
|
|
9678
|
-
"name": "--ui-focus-width"
|
|
9679
|
-
},
|
|
9680
|
-
{
|
|
9681
|
-
"name": "--ui-font-size-sm"
|
|
9682
|
-
},
|
|
9683
|
-
{
|
|
9684
|
-
"name": "--ui-radius-md"
|
|
9685
|
-
},
|
|
9686
|
-
{
|
|
9687
|
-
"name": "--ui-radius-sm"
|
|
9688
|
-
},
|
|
9689
|
-
{
|
|
9690
|
-
"name": "--ui-scroll-fade-size",
|
|
9691
|
-
"fallbacks": [
|
|
9692
|
-
"24px"
|
|
9693
|
-
]
|
|
9694
|
-
},
|
|
9695
|
-
{
|
|
9696
|
-
"name": "--ui-shadow-lg",
|
|
9697
|
-
"fallbacks": [
|
|
9698
|
-
"0 10px 15px -3px rgb(0 0 0 / 0.1)"
|
|
9699
|
-
]
|
|
9700
|
-
},
|
|
9701
|
-
{
|
|
9702
|
-
"name": "--ui-space-2"
|
|
9703
|
-
},
|
|
9704
|
-
{
|
|
9705
|
-
"name": "--ui-space-3"
|
|
9706
|
-
},
|
|
9707
|
-
{
|
|
9708
|
-
"name": "--ui-surface"
|
|
9709
|
-
},
|
|
9710
|
-
{
|
|
9711
|
-
"name": "--ui-text-muted"
|
|
9712
|
-
}
|
|
9713
|
-
]
|
|
9714
|
-
},
|
|
9715
|
-
"attributes": [
|
|
9716
|
-
{
|
|
9717
|
-
"name": "header-row",
|
|
9718
|
-
"property": "headerRow",
|
|
9719
|
-
"description": "Whether table insertion initially includes a header row.",
|
|
9720
|
-
"type": "boolean",
|
|
9721
|
-
"default": false
|
|
9722
|
-
},
|
|
9723
|
-
{
|
|
9724
|
-
"name": "max-cols",
|
|
9725
|
-
"property": "maxCols",
|
|
9726
|
-
"description": "The most columns the grid offers (at most 10).",
|
|
9727
|
-
"type": "integer",
|
|
9728
|
-
"default": 8
|
|
9729
|
-
},
|
|
9730
|
-
{
|
|
9731
|
-
"name": "max-rows",
|
|
9732
|
-
"property": "maxRows",
|
|
9733
|
-
"description": "The most rows the grid offers (at most 10).",
|
|
9734
|
-
"type": "integer",
|
|
9735
|
-
"default": 8
|
|
9736
|
-
},
|
|
9737
|
-
{
|
|
9738
|
-
"name": "open",
|
|
9739
|
-
"property": "open",
|
|
9740
|
-
"description": "Whether the grid is shown.",
|
|
9741
|
-
"type": "boolean",
|
|
9742
|
-
"default": false
|
|
9743
|
-
}
|
|
9744
|
-
],
|
|
9745
|
-
"properties": [
|
|
9746
|
-
{
|
|
9747
|
-
"name": "headerRow",
|
|
9748
|
-
"description": "Whether table insertion initially includes a header row.",
|
|
9749
|
-
"type": "boolean",
|
|
9750
|
-
"default": false
|
|
9751
|
-
},
|
|
9752
|
-
{
|
|
9753
|
-
"name": "maxCols",
|
|
9754
|
-
"description": "The most columns the grid offers (at most 10).",
|
|
9755
|
-
"type": "number",
|
|
9756
|
-
"default": 8
|
|
9757
|
-
},
|
|
9758
|
-
{
|
|
9759
|
-
"name": "maxRows",
|
|
9760
|
-
"description": "The most rows the grid offers (at most 10).",
|
|
9761
|
-
"type": "number",
|
|
9762
|
-
"default": 8
|
|
9763
|
-
},
|
|
9764
|
-
{
|
|
9765
|
-
"name": "open",
|
|
9766
|
-
"description": "Whether the grid is shown.",
|
|
9767
|
-
"type": "boolean",
|
|
9768
|
-
"default": false
|
|
9769
|
-
}
|
|
9770
|
-
],
|
|
9771
|
-
"events": [
|
|
9772
|
-
{
|
|
9773
|
-
"name": "insert",
|
|
9774
|
-
"detailType": "{ rows: number; cols: number; withHeaderRow: boolean }",
|
|
9775
|
-
"detailSchema": "object({ rows: integer, cols: integer, withHeaderRow: boolean })",
|
|
9776
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
9777
|
-
}
|
|
9778
|
-
],
|
|
9779
|
-
"slots": [],
|
|
9780
|
-
"title": "Insert Table Grid",
|
|
9781
|
-
"group": "editor",
|
|
9782
|
-
"id": "@threadlabs/looma/ui-editor-insert-table-grid",
|
|
9783
|
-
"resource": "@threadlabs/looma/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html",
|
|
9784
|
-
"targets": [
|
|
9785
|
-
"html-next",
|
|
9786
|
-
"vue"
|
|
9787
|
-
],
|
|
9788
|
-
"examples": [
|
|
9789
|
-
{
|
|
9790
|
-
"id": "@threadlabs/looma/ui-editor-insert-table-grid/01-open-and-grid-limits",
|
|
9791
|
-
"name": "01-open-and-grid-limits",
|
|
9792
|
-
"title": "Open and grid limits",
|
|
9793
|
-
"description": "Open makes the picker visible while max-rows and max-cols bound its dimensions.",
|
|
9794
|
-
"markup": "<ui-editor-insert-table-grid open max-rows=\"3\" max-cols=\"4\"> </ui-editor-insert-table-grid>",
|
|
9795
|
-
"resizable": false,
|
|
9796
|
-
"bindings": "",
|
|
9797
|
-
"frameworks": {}
|
|
9798
|
-
},
|
|
9799
|
-
{
|
|
9800
|
-
"id": "@threadlabs/looma/ui-editor-insert-table-grid/02-max-rows-6-max-cols-6-and-header-row",
|
|
9801
|
-
"name": "02-max-rows-6-max-cols-6-and-header-row",
|
|
9802
|
-
"title": "max-rows=\"6\", max-cols=\"6\", and header-row",
|
|
9803
|
-
"description": "The maximum row and column properties bound the picker; header-row opts into a checked header-row choice.",
|
|
9804
|
-
"markup": "<ui-editor-insert-table-grid open max-rows=\"6\" max-cols=\"6\" header-row> </ui-editor-insert-table-grid>",
|
|
9805
|
-
"resizable": false,
|
|
9806
|
-
"bindings": "",
|
|
9807
|
-
"frameworks": {}
|
|
9808
|
-
}
|
|
9809
|
-
]
|
|
9810
|
-
},
|
|
9811
|
-
{
|
|
9812
|
-
"tag": "ui-editor-link-card",
|
|
9813
|
-
"package": "@threadlabs/looma",
|
|
9814
|
-
"root": "div",
|
|
9815
|
-
"description": "The actions bar for a link in the editor: its destination, Open link, Edit link, and Remove link.",
|
|
9816
|
-
"designTokens": {
|
|
9817
|
-
"sources": [
|
|
9818
|
-
"packages/looma/src/components/ui-editor-link-card/ui-editor-link-card.html"
|
|
9819
|
-
],
|
|
9820
|
-
"component": [],
|
|
9821
|
-
"shared": []
|
|
9822
|
-
},
|
|
9823
|
-
"attributes": [
|
|
9824
|
-
{
|
|
9825
|
-
"name": "detail",
|
|
9826
|
-
"property": "detail",
|
|
9827
|
-
"description": "A second line under the label, such as where the destination lives.",
|
|
9828
|
-
"type": "string",
|
|
9829
|
-
"default": ""
|
|
9830
|
-
},
|
|
9831
|
-
{
|
|
9832
|
-
"name": "href",
|
|
9833
|
-
"property": "href",
|
|
9834
|
-
"description": "The link's destination, shown when there is no label.",
|
|
9835
|
-
"type": "string",
|
|
9836
|
-
"default": ""
|
|
9837
|
-
},
|
|
9838
|
-
{
|
|
9839
|
-
"name": "label",
|
|
9840
|
-
"property": "label",
|
|
9841
|
-
"description": "The resolved destination's name, such as a page title, shown in place of the address.",
|
|
9842
|
-
"type": "string",
|
|
9843
|
-
"default": ""
|
|
9844
|
-
},
|
|
9845
|
-
{
|
|
9846
|
-
"name": "open-href",
|
|
9847
|
-
"property": "openHref",
|
|
9848
|
-
"description": "The address Open link opens in a new tab; without it the card offers no Open link. The editor passes the destination only when it is an http, https, mailto, tel, or relative address.",
|
|
9849
|
-
"type": "string",
|
|
9850
|
-
"default": ""
|
|
9851
|
-
},
|
|
9852
|
-
{
|
|
9853
|
-
"name": "target-label",
|
|
9854
|
-
"property": "targetLabel",
|
|
9855
|
-
"description": "What a resolved destination is called, as in \"Page: Guide\" for a screen reader.",
|
|
9856
|
-
"type": "string",
|
|
9857
|
-
"default": "Item"
|
|
9858
|
-
}
|
|
9859
|
-
],
|
|
9860
|
-
"properties": [
|
|
9861
|
-
{
|
|
9862
|
-
"name": "detail",
|
|
9863
|
-
"description": "A second line under the label, such as where the destination lives.",
|
|
9864
|
-
"type": "string",
|
|
9865
|
-
"default": ""
|
|
9866
|
-
},
|
|
9867
|
-
{
|
|
9868
|
-
"name": "href",
|
|
9869
|
-
"description": "The link's destination, shown when there is no label.",
|
|
9870
|
-
"type": "string",
|
|
9871
|
-
"default": ""
|
|
9872
|
-
},
|
|
9873
|
-
{
|
|
9874
|
-
"name": "label",
|
|
9875
|
-
"description": "The resolved destination's name, such as a page title, shown in place of the address.",
|
|
9876
|
-
"type": "string",
|
|
9877
|
-
"default": ""
|
|
9878
|
-
},
|
|
9879
|
-
{
|
|
9880
|
-
"name": "openHref",
|
|
9881
|
-
"description": "The address Open link opens in a new tab; without it the card offers no Open link. The editor passes the destination only when it is an http, https, mailto, tel, or relative address.",
|
|
9882
|
-
"type": "string",
|
|
9883
|
-
"default": ""
|
|
9884
|
-
},
|
|
9885
|
-
{
|
|
9886
|
-
"name": "targetLabel",
|
|
9887
|
-
"description": "What a resolved destination is called, as in \"Page: Guide\" for a screen reader.",
|
|
9888
|
-
"type": "string",
|
|
9889
|
-
"default": "Item"
|
|
9890
|
-
}
|
|
9891
|
-
],
|
|
9892
|
-
"events": [
|
|
9893
|
-
{
|
|
9894
|
-
"name": "edit",
|
|
9895
|
-
"detailType": "\"object\"",
|
|
9896
|
-
"detailSchema": "object",
|
|
9897
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
9898
|
-
},
|
|
9899
|
-
{
|
|
9900
|
-
"name": "remove",
|
|
9901
|
-
"detailType": "\"object\"",
|
|
9902
|
-
"detailSchema": "object",
|
|
9903
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
9904
|
-
}
|
|
9905
|
-
],
|
|
9906
|
-
"slots": [],
|
|
9907
|
-
"title": "Link Card",
|
|
9908
|
-
"group": "editor",
|
|
9909
|
-
"id": "@threadlabs/looma/ui-editor-link-card",
|
|
9910
|
-
"resource": "@threadlabs/looma/components/ui-editor-link-card/ui-editor-link-card.html",
|
|
9911
|
-
"targets": [
|
|
9912
|
-
"html-next",
|
|
9913
|
-
"vue"
|
|
9914
|
-
],
|
|
9915
|
-
"examples": [
|
|
9916
|
-
{
|
|
9917
|
-
"id": "@threadlabs/looma/ui-editor-link-card/00-preview",
|
|
9918
|
-
"name": "00-preview",
|
|
9919
|
-
"title": "Linked page",
|
|
9920
|
-
"description": "A resolved page title leaves room for the link actions.",
|
|
9921
|
-
"markup": "<ui-editor-link-card href=\"https://example.com/guide\" open-href=\"https://example.com/guide\" label=\"Guide\"></ui-editor-link-card>",
|
|
9922
|
-
"resizable": false,
|
|
9923
|
-
"stretch": true,
|
|
9924
|
-
"bindings": "",
|
|
9925
|
-
"frameworks": {}
|
|
9926
|
-
},
|
|
9927
|
-
{
|
|
9928
|
-
"id": "@threadlabs/looma/ui-editor-link-card/01-address",
|
|
9929
|
-
"name": "01-address",
|
|
9930
|
-
"title": "Address",
|
|
9931
|
-
"description": "A link without a resolved destination shows its address, with Open link, Edit link, and Remove link.",
|
|
9932
|
-
"markup": "<ui-editor-link-card href=\"https://example.com/guides/getting-started\" open-href=\"https://example.com/guides/getting-started\"> </ui-editor-link-card>",
|
|
9933
|
-
"resizable": false,
|
|
9934
|
-
"bindings": "",
|
|
9935
|
-
"frameworks": {}
|
|
9936
|
-
},
|
|
9937
|
-
{
|
|
9938
|
-
"id": "@threadlabs/looma/ui-editor-link-card/02-resolved",
|
|
9939
|
-
"name": "02-resolved",
|
|
9940
|
-
"title": "Resolved destination",
|
|
9941
|
-
"description": "A link that resolves to a page shows the page's name and where it lives; screen readers hear it as \"Page: Guide\".",
|
|
9942
|
-
"markup": "<ui-editor-link-card href=\"/guides/intro\" open-href=\"/guides/intro\" label=\"Guide\" detail=\"Personal / Guides\" target-label=\"Page\"> </ui-editor-link-card>",
|
|
9943
|
-
"resizable": false,
|
|
9944
|
-
"bindings": "",
|
|
9945
|
-
"frameworks": {}
|
|
9946
|
-
},
|
|
9947
|
-
{
|
|
9948
|
-
"id": "@threadlabs/looma/ui-editor-link-card/03-without-open-link",
|
|
9949
|
-
"name": "03-without-open-link",
|
|
9950
|
-
"title": "Without Open link",
|
|
9951
|
-
"description": "Without open-href the card offers Edit link and Remove link only; the editor leaves it out for an address it does not open, such as ftp.",
|
|
9952
|
-
"markup": "<ui-editor-link-card href=\"ftp://files.example.com/archive\"> </ui-editor-link-card>",
|
|
9953
|
-
"resizable": false,
|
|
9954
|
-
"bindings": "",
|
|
9955
|
-
"frameworks": {}
|
|
9956
|
-
}
|
|
9957
|
-
]
|
|
9958
|
-
},
|
|
9959
|
-
{
|
|
9960
|
-
"tag": "ui-editor-link-form",
|
|
9961
|
-
"package": "@threadlabs/looma",
|
|
9962
|
-
"root": "form",
|
|
9963
|
-
"description": "The editor's form for adding or editing a link: a destination field, its search results or Open in new tab, and the link's text when there is none yet.",
|
|
9964
|
-
"designTokens": {
|
|
9965
|
-
"sources": [
|
|
9966
|
-
"packages/looma/src/components/ui-editor-link-form/ui-editor-link-form.html"
|
|
9967
|
-
],
|
|
9968
|
-
"component": [],
|
|
9969
|
-
"shared": []
|
|
9970
|
-
},
|
|
9971
|
-
"attributes": [
|
|
9972
|
-
{
|
|
9973
|
-
"name": "error",
|
|
9974
|
-
"property": "error",
|
|
9975
|
-
"description": "A problem to show under the fields, announced as an alert.",
|
|
9976
|
-
"type": "string",
|
|
9977
|
-
"default": ""
|
|
9978
|
-
},
|
|
9979
|
-
{
|
|
9980
|
-
"name": "existing",
|
|
9981
|
-
"property": "existing",
|
|
9982
|
-
"description": "Whether the link already exists, so the heading reads Edit link rather than Add link.",
|
|
9983
|
-
"type": "boolean",
|
|
9984
|
-
"default": false
|
|
9985
|
-
},
|
|
9986
|
-
{
|
|
9987
|
-
"name": "mode",
|
|
9988
|
-
"property": "mode",
|
|
9989
|
-
"description": "What the destination field holds: an address, which offers Open in new tab, or a search, which lists results.",
|
|
9990
|
-
"type": "keyword",
|
|
9991
|
-
"default": "url",
|
|
9992
|
-
"options": [
|
|
9993
|
-
"url",
|
|
9994
|
-
"target"
|
|
9995
|
-
]
|
|
9996
|
-
},
|
|
9997
|
-
{
|
|
9998
|
-
"name": "new-tab",
|
|
9999
|
-
"property": "newTab",
|
|
10000
|
-
"description": "Whether Open in new tab is checked.",
|
|
10001
|
-
"type": "boolean",
|
|
10002
|
-
"default": false
|
|
10003
|
-
},
|
|
10004
|
-
{
|
|
10005
|
-
"name": "placeholder",
|
|
10006
|
-
"property": "placeholder",
|
|
10007
|
-
"description": "The destination field's placeholder.",
|
|
10008
|
-
"type": "string",
|
|
10009
|
-
"default": "https://example.com"
|
|
10010
|
-
},
|
|
10011
|
-
{
|
|
10012
|
-
"name": "results",
|
|
10013
|
-
"property": "results",
|
|
10014
|
-
"description": "The destinations a search found.",
|
|
10015
|
-
"type": "list(object)",
|
|
10016
|
-
"fields": [
|
|
10017
|
-
{
|
|
10018
|
-
"path": "[].id",
|
|
10019
|
-
"type": "string",
|
|
10020
|
-
"required": true
|
|
10021
|
-
},
|
|
10022
|
-
{
|
|
10023
|
-
"path": "[].label",
|
|
10024
|
-
"type": "string",
|
|
10025
|
-
"required": true
|
|
10026
|
-
},
|
|
10027
|
-
{
|
|
10028
|
-
"path": "[].detail",
|
|
10029
|
-
"type": "string",
|
|
10030
|
-
"required": false
|
|
10031
|
-
}
|
|
10032
|
-
]
|
|
10033
|
-
},
|
|
10034
|
-
{
|
|
10035
|
-
"name": "searchable",
|
|
10036
|
-
"property": "searchable",
|
|
10037
|
-
"description": "Whether the destination field searches for a destination as well as taking an address. A searchable field has a search icon and a Clear search button.",
|
|
10038
|
-
"type": "boolean",
|
|
10039
|
-
"default": false
|
|
10040
|
-
},
|
|
10041
|
-
{
|
|
10042
|
-
"name": "selected",
|
|
10043
|
-
"property": "selected",
|
|
10044
|
-
"description": "The id of the chosen result, which shows a check.",
|
|
10045
|
-
"type": "string",
|
|
10046
|
-
"default": ""
|
|
10047
|
-
},
|
|
10048
|
-
{
|
|
10049
|
-
"name": "status",
|
|
10050
|
-
"property": "status",
|
|
10051
|
-
"description": "A line above the results, such as Searching… or No results found., announced politely. Shown only for a search.",
|
|
10052
|
-
"type": "string",
|
|
10053
|
-
"default": ""
|
|
10054
|
-
},
|
|
10055
|
-
{
|
|
10056
|
-
"name": "text",
|
|
10057
|
-
"property": "text",
|
|
10058
|
-
"description": "The Text field's value.",
|
|
10059
|
-
"type": "string",
|
|
10060
|
-
"default": ""
|
|
10061
|
-
},
|
|
10062
|
-
{
|
|
10063
|
-
"name": "text-editable",
|
|
10064
|
-
"property": "textEditable",
|
|
10065
|
-
"description": "Shows a Text field, for a link added where no text is selected.",
|
|
10066
|
-
"type": "boolean",
|
|
10067
|
-
"default": false
|
|
10068
|
-
},
|
|
10069
|
-
{
|
|
10070
|
-
"name": "value",
|
|
10071
|
-
"property": "value",
|
|
10072
|
-
"description": "The destination field's text: the address, or the search.",
|
|
10073
|
-
"type": "string",
|
|
10074
|
-
"default": ""
|
|
10075
|
-
}
|
|
10076
|
-
],
|
|
10077
|
-
"properties": [
|
|
10078
|
-
{
|
|
10079
|
-
"name": "error",
|
|
10080
|
-
"description": "A problem to show under the fields, announced as an alert.",
|
|
10081
|
-
"type": "string",
|
|
10082
|
-
"default": ""
|
|
10083
|
-
},
|
|
10084
|
-
{
|
|
10085
|
-
"name": "existing",
|
|
10086
|
-
"description": "Whether the link already exists, so the heading reads Edit link rather than Add link.",
|
|
10087
|
-
"type": "boolean",
|
|
10088
|
-
"default": false
|
|
10089
|
-
},
|
|
10090
|
-
{
|
|
10091
|
-
"name": "mode",
|
|
10092
|
-
"description": "What the destination field holds: an address, which offers Open in new tab, or a search, which lists results.",
|
|
10093
|
-
"type": "\"url\" | \"target\"",
|
|
10094
|
-
"default": "url",
|
|
10095
|
-
"options": [
|
|
10096
|
-
"url",
|
|
10097
|
-
"target"
|
|
10098
|
-
]
|
|
10099
|
-
},
|
|
10100
|
-
{
|
|
10101
|
-
"name": "newTab",
|
|
10102
|
-
"description": "Whether Open in new tab is checked.",
|
|
10103
|
-
"type": "boolean",
|
|
10104
|
-
"default": false
|
|
10105
|
-
},
|
|
10106
|
-
{
|
|
10107
|
-
"name": "placeholder",
|
|
10108
|
-
"description": "The destination field's placeholder.",
|
|
10109
|
-
"type": "string",
|
|
10110
|
-
"default": "https://example.com"
|
|
10111
|
-
},
|
|
10112
|
-
{
|
|
10113
|
-
"name": "results",
|
|
10114
|
-
"description": "The destinations a search found.",
|
|
10115
|
-
"type": "readonly ({ readonly id: string; readonly label: string; readonly detail?: string | null })[]",
|
|
10116
|
-
"fields": [
|
|
10117
|
-
{
|
|
10118
|
-
"path": "[].id",
|
|
10119
|
-
"type": "string",
|
|
10120
|
-
"required": true
|
|
10121
|
-
},
|
|
10122
|
-
{
|
|
10123
|
-
"path": "[].label",
|
|
10124
|
-
"type": "string",
|
|
10125
|
-
"required": true
|
|
10126
|
-
},
|
|
10127
|
-
{
|
|
10128
|
-
"path": "[].detail",
|
|
10129
|
-
"type": "string",
|
|
10130
|
-
"required": false
|
|
10131
|
-
}
|
|
10132
|
-
]
|
|
10133
|
-
},
|
|
10134
|
-
{
|
|
10135
|
-
"name": "searchable",
|
|
10136
|
-
"description": "Whether the destination field searches for a destination as well as taking an address. A searchable field has a search icon and a Clear search button.",
|
|
10137
|
-
"type": "boolean",
|
|
10138
|
-
"default": false
|
|
10139
|
-
},
|
|
10140
|
-
{
|
|
10141
|
-
"name": "selected",
|
|
10142
|
-
"description": "The id of the chosen result, which shows a check.",
|
|
10143
|
-
"type": "string",
|
|
10144
|
-
"default": ""
|
|
10145
|
-
},
|
|
10146
|
-
{
|
|
10147
|
-
"name": "status",
|
|
10148
|
-
"description": "A line above the results, such as Searching… or No results found., announced politely. Shown only for a search.",
|
|
10149
|
-
"type": "string",
|
|
10150
|
-
"default": ""
|
|
10151
|
-
},
|
|
10152
|
-
{
|
|
10153
|
-
"name": "text",
|
|
10154
|
-
"description": "The Text field's value.",
|
|
10155
|
-
"type": "string",
|
|
10156
|
-
"default": ""
|
|
10157
|
-
},
|
|
10158
|
-
{
|
|
10159
|
-
"name": "textEditable",
|
|
10160
|
-
"description": "Shows a Text field, for a link added where no text is selected.",
|
|
10161
|
-
"type": "boolean",
|
|
10162
|
-
"default": false
|
|
10163
|
-
},
|
|
10164
|
-
{
|
|
10165
|
-
"name": "value",
|
|
10166
|
-
"description": "The destination field's text: the address, or the search.",
|
|
10167
|
-
"type": "string",
|
|
10168
|
-
"default": ""
|
|
10169
|
-
}
|
|
10170
|
-
],
|
|
10171
|
-
"events": [
|
|
10172
|
-
{
|
|
10173
|
-
"name": "choose",
|
|
10174
|
-
"detailType": "{ readonly id: string }",
|
|
10175
|
-
"detailSchema": "object",
|
|
10176
|
-
"fields": [
|
|
10177
|
-
{
|
|
10178
|
-
"path": "id",
|
|
10179
|
-
"type": "string",
|
|
10180
|
-
"required": true
|
|
10181
|
-
}
|
|
10182
|
-
],
|
|
10183
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
10184
|
-
},
|
|
10185
|
-
{
|
|
10186
|
-
"name": "clear",
|
|
10187
|
-
"detailType": "\"object\"",
|
|
10188
|
-
"detailSchema": "object",
|
|
10189
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
10190
|
-
},
|
|
10191
|
-
{
|
|
10192
|
-
"name": "destination",
|
|
10193
|
-
"detailType": "{ readonly value: string }",
|
|
10194
|
-
"detailSchema": "object",
|
|
10195
|
-
"fields": [
|
|
10196
|
-
{
|
|
10197
|
-
"path": "value",
|
|
10198
|
-
"type": "string",
|
|
10199
|
-
"required": true
|
|
10200
|
-
}
|
|
10201
|
-
],
|
|
10202
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
10203
|
-
},
|
|
10204
|
-
{
|
|
10205
|
-
"name": "dismiss",
|
|
10206
|
-
"detailType": "\"object\"",
|
|
10207
|
-
"detailSchema": "object",
|
|
10208
|
-
"detailDocs": "Emitted when a toast item is dismissed from its region."
|
|
10209
|
-
},
|
|
10210
|
-
{
|
|
10211
|
-
"name": "new-tab",
|
|
10212
|
-
"detailType": "{ readonly newTab: boolean }",
|
|
10213
|
-
"detailSchema": "object",
|
|
10214
|
-
"fields": [
|
|
10215
|
-
{
|
|
10216
|
-
"path": "newTab",
|
|
10217
|
-
"type": "boolean",
|
|
10218
|
-
"required": true
|
|
10219
|
-
}
|
|
10220
|
-
],
|
|
10221
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
10222
|
-
},
|
|
10223
|
-
{
|
|
10224
|
-
"name": "save",
|
|
10225
|
-
"detailType": "\"object\"",
|
|
10226
|
-
"detailSchema": "object",
|
|
10227
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
10228
|
-
},
|
|
10229
|
-
{
|
|
10230
|
-
"name": "text",
|
|
10231
|
-
"detailType": "{ readonly text: string }",
|
|
10232
|
-
"detailSchema": "object",
|
|
10233
|
-
"fields": [
|
|
10234
|
-
{
|
|
10235
|
-
"path": "text",
|
|
10236
|
-
"type": "string",
|
|
10237
|
-
"required": true
|
|
10238
|
-
}
|
|
10239
|
-
],
|
|
10240
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
10241
|
-
}
|
|
10242
|
-
],
|
|
10243
|
-
"slots": [],
|
|
10244
|
-
"title": "Link Form",
|
|
10245
|
-
"group": "editor",
|
|
10246
|
-
"id": "@threadlabs/looma/ui-editor-link-form",
|
|
10247
|
-
"resource": "@threadlabs/looma/components/ui-editor-link-form/ui-editor-link-form.html",
|
|
10248
|
-
"targets": [
|
|
10249
|
-
"html-next",
|
|
10250
|
-
"vue"
|
|
10251
|
-
],
|
|
10252
|
-
"examples": [
|
|
10253
|
-
{
|
|
10254
|
-
"id": "@threadlabs/looma/ui-editor-link-form/01-address",
|
|
10255
|
-
"name": "01-address",
|
|
10256
|
-
"title": "Address",
|
|
10257
|
-
"description": "Without search the field takes an address, with Open in new tab below it. Enter saves the link and Escape closes the form.",
|
|
10258
|
-
"markup": "<ui-editor-link-form existing value=\"https://example.com/guides\" new-tab> </ui-editor-link-form>",
|
|
10259
|
-
"resizable": false,
|
|
10260
|
-
"bindings": "",
|
|
10261
|
-
"frameworks": {}
|
|
10262
|
-
},
|
|
10263
|
-
{
|
|
10264
|
-
"id": "@threadlabs/looma/ui-editor-link-form/02-search",
|
|
10265
|
-
"name": "02-search",
|
|
10266
|
-
"title": "Search results",
|
|
10267
|
-
"description": "A searchable field lists the destinations a search found; the arrow keys move from the field through the results, and choosing one reports choose.",
|
|
10268
|
-
"markup": "<ui-editor-link-form\n id=\"link-form-search\"\n searchable\n mode=\"target\"\n value=\"Guide\"\n placeholder=\"Search pages or paste a URL…\"\n results='[{\"id\":\"one\",\"label\":\"Guide\",\"detail\":\"Personal / Guides\"},{\"id\":\"two\",\"label\":\"Guide to tables\",\"detail\":\"Team / Docs\"}]'\n>\n</ui-editor-link-form>",
|
|
10269
|
-
"resizable": false,
|
|
10270
|
-
"bindings": "results=linkFormResults",
|
|
10271
|
-
"frameworks": {}
|
|
10272
|
-
},
|
|
10273
|
-
{
|
|
10274
|
-
"id": "@threadlabs/looma/ui-editor-link-form/03-new-link-text",
|
|
10275
|
-
"name": "03-new-link-text",
|
|
10276
|
-
"title": "New link with text",
|
|
10277
|
-
"description": "A link added where no text is selected also asks for its text; a problem shows as an alert under the fields.",
|
|
10278
|
-
"markup": "<ui-editor-link-form\n searchable\n mode=\"target\"\n placeholder=\"Search pages or paste a URL…\"\n status=\"Type at least two letters to search.\"\n text-editable\n error=\"Enter link text.\"\n>\n</ui-editor-link-form>",
|
|
10279
|
-
"resizable": false,
|
|
10280
|
-
"bindings": "",
|
|
10281
|
-
"frameworks": {}
|
|
10282
|
-
}
|
|
10283
|
-
]
|
|
10284
|
-
},
|
|
10285
|
-
{
|
|
10286
|
-
"tag": "ui-editor-mention-menu",
|
|
10287
|
-
"package": "@threadlabs/looma",
|
|
10288
|
-
"root": "div",
|
|
10289
|
-
"description": "Bounded, responsive suggestion surface for an app-provided people directory.",
|
|
10290
|
-
"designTokens": {
|
|
10291
|
-
"sources": [
|
|
10292
|
-
"packages/looma/src/components/ui-editor-mention-menu/ui-editor-mention-menu.html"
|
|
10293
|
-
],
|
|
10294
|
-
"component": [],
|
|
10295
|
-
"shared": [
|
|
10296
|
-
{
|
|
10297
|
-
"name": "--ui-accent-soft",
|
|
10298
|
-
"fallbacks": [
|
|
10299
|
-
"var(--ui-accent-subtle)"
|
|
10300
|
-
]
|
|
10301
|
-
},
|
|
10302
|
-
{
|
|
10303
|
-
"name": "--ui-accent-subtle",
|
|
10304
|
-
"fallbacks": [
|
|
10305
|
-
"rgb(59 130 246 / 0.1)"
|
|
10306
|
-
]
|
|
10307
|
-
},
|
|
10308
|
-
{
|
|
10309
|
-
"name": "--ui-accent-subtle-text"
|
|
10310
|
-
},
|
|
10311
|
-
{
|
|
10312
|
-
"name": "--ui-border-divider"
|
|
10313
|
-
},
|
|
10314
|
-
{
|
|
10315
|
-
"name": "--ui-border-strong"
|
|
10316
|
-
},
|
|
10317
|
-
{
|
|
10318
|
-
"name": "--ui-border-width"
|
|
10319
|
-
},
|
|
10320
|
-
{
|
|
10321
|
-
"name": "--ui-font-medium"
|
|
10322
|
-
},
|
|
10323
|
-
{
|
|
10324
|
-
"name": "--ui-font-normal"
|
|
10325
|
-
},
|
|
10326
|
-
{
|
|
10327
|
-
"name": "--ui-font-semibold"
|
|
10328
|
-
},
|
|
10329
|
-
{
|
|
10330
|
-
"name": "--ui-font-size-sm"
|
|
10331
|
-
},
|
|
10332
|
-
{
|
|
10333
|
-
"name": "--ui-font-size-xs"
|
|
10334
|
-
},
|
|
10335
|
-
{
|
|
10336
|
-
"name": "--ui-radius-dialog"
|
|
10337
|
-
},
|
|
10338
|
-
{
|
|
10339
|
-
"name": "--ui-radius-round"
|
|
10340
|
-
},
|
|
10341
|
-
{
|
|
10342
|
-
"name": "--ui-scroll-fade-size",
|
|
10343
|
-
"fallbacks": [
|
|
10344
|
-
"24px"
|
|
10345
|
-
]
|
|
10346
|
-
},
|
|
10347
|
-
{
|
|
10348
|
-
"name": "--ui-shadow-lg",
|
|
10349
|
-
"fallbacks": [
|
|
10350
|
-
"0 8px 24px rgb(0 0 0 / 0.12)"
|
|
10351
|
-
]
|
|
10352
|
-
},
|
|
10353
|
-
{
|
|
10354
|
-
"name": "--ui-space-1"
|
|
10355
|
-
},
|
|
10356
|
-
{
|
|
10357
|
-
"name": "--ui-space-2"
|
|
10358
|
-
},
|
|
10359
|
-
{
|
|
10360
|
-
"name": "--ui-space-3"
|
|
10361
|
-
},
|
|
10362
|
-
{
|
|
10363
|
-
"name": "--ui-surface"
|
|
10364
|
-
},
|
|
10365
|
-
{
|
|
10366
|
-
"name": "--ui-text-muted"
|
|
10367
|
-
},
|
|
10368
|
-
{
|
|
10369
|
-
"name": "--ui-text-primary"
|
|
10370
|
-
},
|
|
10371
|
-
{
|
|
10372
|
-
"name": "--ui-text-secondary"
|
|
10373
|
-
}
|
|
10374
|
-
]
|
|
10375
|
-
},
|
|
10376
|
-
"attributes": [
|
|
10377
|
-
{
|
|
10378
|
-
"name": "anchor-rect",
|
|
10379
|
-
"property": "anchorRect",
|
|
10380
|
-
"description": "Where the @ was typed, in viewport coordinates.",
|
|
10381
|
-
"type": "object",
|
|
10382
|
-
"fields": [
|
|
10383
|
-
{
|
|
10384
|
-
"path": "left",
|
|
10385
|
-
"type": "number",
|
|
10386
|
-
"required": false
|
|
10387
|
-
},
|
|
10388
|
-
{
|
|
10389
|
-
"path": "top",
|
|
10390
|
-
"type": "number",
|
|
10391
|
-
"required": false
|
|
10392
|
-
},
|
|
10393
|
-
{
|
|
10394
|
-
"path": "right",
|
|
10395
|
-
"type": "number",
|
|
10396
|
-
"required": false
|
|
10397
|
-
},
|
|
10398
|
-
{
|
|
10399
|
-
"path": "bottom",
|
|
10400
|
-
"type": "number",
|
|
10401
|
-
"required": false
|
|
10402
|
-
},
|
|
10403
|
-
{
|
|
10404
|
-
"path": "x",
|
|
10405
|
-
"type": "number",
|
|
10406
|
-
"required": false
|
|
10407
|
-
},
|
|
10408
|
-
{
|
|
10409
|
-
"path": "y",
|
|
10410
|
-
"type": "number",
|
|
10411
|
-
"required": false
|
|
10412
|
-
},
|
|
10413
|
-
{
|
|
10414
|
-
"path": "width",
|
|
10415
|
-
"type": "number",
|
|
10416
|
-
"required": false
|
|
10417
|
-
},
|
|
10418
|
-
{
|
|
10419
|
-
"path": "height",
|
|
10420
|
-
"type": "number",
|
|
10421
|
-
"required": false
|
|
10422
|
-
}
|
|
10423
|
-
]
|
|
10424
|
-
},
|
|
10425
|
-
{
|
|
10426
|
-
"name": "items",
|
|
10427
|
-
"property": "items",
|
|
10428
|
-
"description": "The people the menu offers.",
|
|
10429
|
-
"type": "list(object)",
|
|
10430
|
-
"fields": [
|
|
10431
|
-
{
|
|
10432
|
-
"path": "[].id",
|
|
10433
|
-
"type": "string",
|
|
10434
|
-
"required": true
|
|
10435
|
-
},
|
|
10436
|
-
{
|
|
10437
|
-
"path": "[].label",
|
|
10438
|
-
"type": "string",
|
|
10439
|
-
"required": true
|
|
10440
|
-
},
|
|
10441
|
-
{
|
|
10442
|
-
"path": "[].detail",
|
|
10443
|
-
"type": "string",
|
|
10444
|
-
"required": false
|
|
10445
|
-
},
|
|
10446
|
-
{
|
|
10447
|
-
"path": "[].initials",
|
|
10448
|
-
"type": "string",
|
|
10449
|
-
"required": false
|
|
10450
|
-
}
|
|
10451
|
-
]
|
|
10452
|
-
},
|
|
10453
|
-
{
|
|
10454
|
-
"name": "label",
|
|
10455
|
-
"property": "label",
|
|
10456
|
-
"description": "Accessible name of the suggestion list.",
|
|
10457
|
-
"type": "string",
|
|
10458
|
-
"default": "Mentions"
|
|
10459
|
-
},
|
|
10460
|
-
{
|
|
10461
|
-
"name": "loading",
|
|
10462
|
-
"property": "loading",
|
|
10463
|
-
"description": "Whether a search is in progress.",
|
|
10464
|
-
"type": "boolean",
|
|
10465
|
-
"default": false
|
|
10466
|
-
},
|
|
10467
|
-
{
|
|
10468
|
-
"name": "loading-label",
|
|
10469
|
-
"property": "loadingLabel",
|
|
10470
|
-
"description": "Status text shown while loading an empty result list.",
|
|
10471
|
-
"type": "string",
|
|
10472
|
-
"default": "Searching…"
|
|
10473
|
-
},
|
|
10474
|
-
{
|
|
10475
|
-
"name": "open",
|
|
10476
|
-
"property": "open",
|
|
10477
|
-
"description": "Whether the menu is open.",
|
|
10478
|
-
"type": "boolean",
|
|
10479
|
-
"default": false
|
|
10480
|
-
},
|
|
10481
|
-
{
|
|
10482
|
-
"name": "query",
|
|
10483
|
-
"property": "query",
|
|
10484
|
-
"description": "The text typed after the @.",
|
|
10485
|
-
"type": "string",
|
|
10486
|
-
"default": ""
|
|
10487
|
-
},
|
|
10488
|
-
{
|
|
10489
|
-
"name": "selected-index",
|
|
10490
|
-
"property": "selectedIndex",
|
|
10491
|
-
"description": "The zero-based index of the highlighted person, capped at the last one shown, and announced through aria-activedescendant. The menu does not handle arrow keys itself: the editor sets this as the user moves, while hovering a person highlights them and reports a highlight event.",
|
|
10492
|
-
"type": "integer",
|
|
10493
|
-
"default": 0
|
|
10494
|
-
}
|
|
10495
|
-
],
|
|
10496
|
-
"properties": [
|
|
10497
|
-
{
|
|
10498
|
-
"name": "anchorRect",
|
|
10499
|
-
"description": "Where the @ was typed, in viewport coordinates.",
|
|
10500
|
-
"type": "{ readonly left?: number | null; readonly top?: number | null; readonly right?: number | null; readonly bottom?: number | null; readonly x?: number | null; readonly y?: number | null; readonly width?: number | null; readonly height?: number | null }",
|
|
10501
|
-
"fields": [
|
|
10502
|
-
{
|
|
10503
|
-
"path": "left",
|
|
10504
|
-
"type": "number",
|
|
10505
|
-
"required": false
|
|
10506
|
-
},
|
|
10507
|
-
{
|
|
10508
|
-
"path": "top",
|
|
10509
|
-
"type": "number",
|
|
10510
|
-
"required": false
|
|
10511
|
-
},
|
|
10512
|
-
{
|
|
10513
|
-
"path": "right",
|
|
10514
|
-
"type": "number",
|
|
10515
|
-
"required": false
|
|
10516
|
-
},
|
|
10517
|
-
{
|
|
10518
|
-
"path": "bottom",
|
|
10519
|
-
"type": "number",
|
|
10520
|
-
"required": false
|
|
10521
|
-
},
|
|
10522
|
-
{
|
|
10523
|
-
"path": "x",
|
|
10524
|
-
"type": "number",
|
|
10525
|
-
"required": false
|
|
10526
|
-
},
|
|
10527
|
-
{
|
|
10528
|
-
"path": "y",
|
|
10529
|
-
"type": "number",
|
|
10530
|
-
"required": false
|
|
10531
|
-
},
|
|
10532
|
-
{
|
|
10533
|
-
"path": "width",
|
|
10534
|
-
"type": "number",
|
|
10535
|
-
"required": false
|
|
10536
|
-
},
|
|
10537
|
-
{
|
|
10538
|
-
"path": "height",
|
|
10539
|
-
"type": "number",
|
|
10540
|
-
"required": false
|
|
10541
|
-
}
|
|
10542
|
-
]
|
|
10543
|
-
},
|
|
10544
|
-
{
|
|
10545
|
-
"name": "items",
|
|
10546
|
-
"description": "The people the menu offers.",
|
|
10547
|
-
"type": "readonly ({ readonly id: string; readonly label: string; readonly detail?: string | null; readonly initials?: string | null })[]",
|
|
10548
|
-
"fields": [
|
|
10549
|
-
{
|
|
10550
|
-
"path": "[].id",
|
|
10551
|
-
"type": "string",
|
|
10552
|
-
"required": true
|
|
10553
|
-
},
|
|
10554
|
-
{
|
|
10555
|
-
"path": "[].label",
|
|
10556
|
-
"type": "string",
|
|
10557
|
-
"required": true
|
|
10558
|
-
},
|
|
10559
|
-
{
|
|
10560
|
-
"path": "[].detail",
|
|
10561
|
-
"type": "string",
|
|
10562
|
-
"required": false
|
|
10563
|
-
},
|
|
10564
|
-
{
|
|
10565
|
-
"path": "[].initials",
|
|
10566
|
-
"type": "string",
|
|
10567
|
-
"required": false
|
|
10568
|
-
}
|
|
10569
|
-
]
|
|
10570
|
-
},
|
|
10571
|
-
{
|
|
10572
|
-
"name": "label",
|
|
10573
|
-
"description": "Accessible name of the suggestion list.",
|
|
10574
|
-
"type": "string",
|
|
10575
|
-
"default": "Mentions"
|
|
10576
|
-
},
|
|
10577
|
-
{
|
|
10578
|
-
"name": "loading",
|
|
10579
|
-
"description": "Whether a search is in progress.",
|
|
10580
|
-
"type": "boolean",
|
|
10581
|
-
"default": false
|
|
10582
|
-
},
|
|
10583
|
-
{
|
|
10584
|
-
"name": "loadingLabel",
|
|
10585
|
-
"description": "Status text shown while loading an empty result list.",
|
|
10586
|
-
"type": "string",
|
|
10587
|
-
"default": "Searching…"
|
|
10588
|
-
},
|
|
10589
|
-
{
|
|
10590
|
-
"name": "open",
|
|
10591
|
-
"description": "Whether the menu is open.",
|
|
10592
|
-
"type": "boolean",
|
|
10593
|
-
"default": false
|
|
10594
|
-
},
|
|
10595
|
-
{
|
|
10596
|
-
"name": "query",
|
|
10597
|
-
"description": "The text typed after the @.",
|
|
10598
|
-
"type": "string",
|
|
10599
|
-
"default": ""
|
|
10600
|
-
},
|
|
10601
|
-
{
|
|
10602
|
-
"name": "selectedIndex",
|
|
10603
|
-
"description": "The zero-based index of the highlighted person, capped at the last one shown, and announced through aria-activedescendant. The menu does not handle arrow keys itself: the editor sets this as the user moves, while hovering a person highlights them and reports a highlight event.",
|
|
10604
|
-
"type": "number",
|
|
10605
|
-
"default": 0
|
|
10606
|
-
}
|
|
10607
|
-
],
|
|
10608
|
-
"events": [
|
|
10609
|
-
{
|
|
10610
|
-
"name": "highlight",
|
|
10611
|
-
"detailType": "{ index: number; value: string }",
|
|
10612
|
-
"detailSchema": "object({ index: integer, value: string })",
|
|
10613
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
10614
|
-
},
|
|
10615
|
-
{
|
|
10616
|
-
"name": "select",
|
|
10617
|
-
"detailType": "{ index: number; value: string }",
|
|
10618
|
-
"detailSchema": "object({ index: integer, value: string })",
|
|
10619
|
-
"detailDocs": "Emitted when a selectable option becomes active."
|
|
10620
|
-
}
|
|
10621
|
-
],
|
|
10622
|
-
"slots": [
|
|
10623
|
-
{
|
|
10624
|
-
"name": "header",
|
|
10625
|
-
"description": "Named content for the header region."
|
|
10626
|
-
},
|
|
10627
|
-
{
|
|
10628
|
-
"name": "default",
|
|
10629
|
-
"description": "Default child content."
|
|
10630
|
-
},
|
|
10631
|
-
{
|
|
10632
|
-
"name": "empty",
|
|
10633
|
-
"description": "Named content for the empty region."
|
|
10634
|
-
}
|
|
10635
|
-
],
|
|
10636
|
-
"title": "Mention Menu",
|
|
10637
|
-
"group": "editor",
|
|
10638
|
-
"id": "@threadlabs/looma/ui-editor-mention-menu",
|
|
10639
|
-
"resource": "@threadlabs/looma/components/ui-editor-mention-menu/ui-editor-mention-menu.html",
|
|
10640
|
-
"targets": [
|
|
10641
|
-
"html-next",
|
|
10642
|
-
"vue"
|
|
10643
|
-
],
|
|
10644
|
-
"examples": [
|
|
10645
|
-
{
|
|
10646
|
-
"id": "@threadlabs/looma/ui-editor-mention-menu/00-preview",
|
|
10647
|
-
"name": "00-preview",
|
|
10648
|
-
"title": "Mention a teammate",
|
|
10649
|
-
"description": "Open the interactive surface when needed; it starts closed in the component directory.",
|
|
10650
|
-
"markup": "<ui-button data-demo-trigger aria-haspopup=\"listbox\" aria-expanded=\"false\" aria-controls=\"preview-mentions\"\n>Mention a teammate</ui-button><ui-editor-mention-menu\n id=\"preview-mentions\"\n tabindex=\"-1\"\n data-demo-surface\n items='[{\"id\":\"maya\",\"label\":\"Maya Chen\",\"detail\":\"Design\",\"initials\":\"MC\"},{\"id\":\"noah\",\"label\":\"Noah Williams\",\"detail\":\"Engineering\",\"initials\":\"NW\"}]'\n></ui-editor-mention-menu>",
|
|
10651
|
-
"resizable": false,
|
|
10652
|
-
"bindings": "items=people",
|
|
10653
|
-
"frameworks": {},
|
|
10654
|
-
"behavior": "@threadlabs/looma/docs/examples/ui-editor-mention-menu/examples/00-preview.behavior.js"
|
|
10655
|
-
},
|
|
10656
|
-
{
|
|
10657
|
-
"id": "@threadlabs/looma/ui-editor-mention-menu/01-open",
|
|
10658
|
-
"name": "01-open",
|
|
10659
|
-
"title": "Open",
|
|
10660
|
-
"description": "The open property exposes the supplied suggestion controls.",
|
|
10661
|
-
"markup": "<ui-editor-mention-menu\n id=\"mention-menu\"\n anchor-rect='{\"left\":0,\"top\":0,\"right\":240,\"bottom\":40,\"x\":0,\"y\":0,\"width\":240,\"height\":40}'\n items='[{\"id\":\"maya\",\"label\":\"Maya Chen\",\"detail\":\"Design\",\"initials\":\"MC\"},{\"id\":\"noah\",\"label\":\"Noah Williams\",\"detail\":\"Engineering\",\"initials\":\"NW\"}]'\n open\n>\n</ui-editor-mention-menu>",
|
|
10662
|
-
"resizable": false,
|
|
10663
|
-
"bindings": "items=mentionItems anchor-rect=anchorRect",
|
|
10664
|
-
"frameworks": {}
|
|
10665
|
-
},
|
|
10666
|
-
{
|
|
10667
|
-
"id": "@threadlabs/looma/ui-editor-mention-menu/02-loading-and-query",
|
|
10668
|
-
"name": "02-loading-and-query",
|
|
10669
|
-
"title": "loading and query",
|
|
10670
|
-
"description": "Loading preserves the menu surface while query records the text being resolved.",
|
|
10671
|
-
"markup": "<ui-editor-mention-menu\n id=\"loading-mention-menu\"\n anchor-rect='{\"left\":0,\"top\":0,\"right\":240,\"bottom\":40,\"x\":0,\"y\":0,\"width\":240,\"height\":40}'\n items='[{\"id\":\"maya\",\"label\":\"Maya Chen\",\"detail\":\"Design\",\"initials\":\"MC\"},{\"id\":\"noah\",\"label\":\"Noah Williams\",\"detail\":\"Engineering\",\"initials\":\"NW\"}]'\n open\n loading\n query=\"ma\"\n>\n</ui-editor-mention-menu>",
|
|
10672
|
-
"resizable": false,
|
|
10673
|
-
"bindings": "items=mentionItems anchor-rect=anchorRect",
|
|
10674
|
-
"frameworks": {}
|
|
10675
|
-
},
|
|
10676
|
-
{
|
|
10677
|
-
"id": "@threadlabs/looma/ui-editor-mention-menu/03-authored-people",
|
|
10678
|
-
"name": "03-authored-people",
|
|
10679
|
-
"title": "Authored people",
|
|
10680
|
-
"description": "Mention Menu Item accepts a stable value, fallback initials or an avatar in its start slot, and an optional detail.",
|
|
10681
|
-
"markup": "<ui-editor-mention-menu open aria-label=\"People\" anchor-rect='{\"left\":0,\"top\":0,\"right\":240,\"bottom\":40}'>\n <div slot=\"header\">People in this document</div>\n <ui-editor-mention-menu-item value=\"ada\" initials=\"AL\" detail=\"Design\">Ada Lovelace</ui-editor-mention-menu-item>\n <ui-editor-mention-menu-item value=\"grace\" initials=\"GH\" detail=\"Engineering\">Grace Hopper</ui-editor-mention-menu-item>\n <div slot=\"empty\">No matching people</div>\n</ui-editor-mention-menu>",
|
|
10682
|
-
"resizable": false,
|
|
10683
|
-
"bindings": "",
|
|
10684
|
-
"frameworks": {}
|
|
10685
|
-
}
|
|
10686
|
-
]
|
|
10687
|
-
},
|
|
10688
|
-
{
|
|
10689
|
-
"tag": "ui-editor-mention-menu-item",
|
|
10690
|
-
"package": "@threadlabs/looma",
|
|
10691
|
-
"root": "li",
|
|
10692
|
-
"description": "An authored person in a Mention Menu.",
|
|
10693
|
-
"designTokens": {
|
|
10694
|
-
"sources": [
|
|
10695
|
-
"packages/looma/src/components/ui-editor-mention-menu-item/ui-editor-mention-menu-item.html"
|
|
10696
|
-
],
|
|
10697
|
-
"component": [],
|
|
10698
|
-
"shared": [
|
|
10699
|
-
{
|
|
10700
|
-
"name": "--ui-accent-soft"
|
|
10701
|
-
},
|
|
10702
|
-
{
|
|
10703
|
-
"name": "--ui-accent-subtle"
|
|
10704
|
-
},
|
|
10705
|
-
{
|
|
10706
|
-
"name": "--ui-accent-subtle-text"
|
|
10707
|
-
},
|
|
10708
|
-
{
|
|
10709
|
-
"name": "--ui-font-medium"
|
|
10710
|
-
},
|
|
10711
|
-
{
|
|
10712
|
-
"name": "--ui-font-semibold"
|
|
10713
|
-
},
|
|
10714
|
-
{
|
|
10715
|
-
"name": "--ui-font-size-sm"
|
|
10716
|
-
},
|
|
10717
|
-
{
|
|
10718
|
-
"name": "--ui-font-size-xs"
|
|
10719
|
-
},
|
|
10720
|
-
{
|
|
10721
|
-
"name": "--ui-radius-round"
|
|
10722
|
-
},
|
|
10723
|
-
{
|
|
10724
|
-
"name": "--ui-space-2"
|
|
10725
|
-
},
|
|
10726
|
-
{
|
|
10727
|
-
"name": "--ui-space-3"
|
|
10728
|
-
},
|
|
10729
|
-
{
|
|
10730
|
-
"name": "--ui-surface"
|
|
10731
|
-
},
|
|
10732
|
-
{
|
|
10733
|
-
"name": "--ui-text-muted"
|
|
10734
|
-
},
|
|
10735
|
-
{
|
|
10736
|
-
"name": "--ui-text-primary"
|
|
10737
|
-
}
|
|
10738
|
-
]
|
|
10739
|
-
},
|
|
10740
|
-
"attributes": [
|
|
10741
|
-
{
|
|
10742
|
-
"name": "detail",
|
|
10743
|
-
"property": "detail",
|
|
10744
|
-
"description": "Secondary text, such as a team or role.",
|
|
10745
|
-
"type": "string",
|
|
10746
|
-
"default": ""
|
|
10747
|
-
},
|
|
10748
|
-
{
|
|
10749
|
-
"name": "initials",
|
|
10750
|
-
"property": "initials",
|
|
10751
|
-
"description": "Text fallback for the start slot when no avatar is supplied.",
|
|
10752
|
-
"type": "string",
|
|
10753
|
-
"default": ""
|
|
10754
|
-
},
|
|
10755
|
-
{
|
|
10756
|
-
"name": "value",
|
|
10757
|
-
"property": "value",
|
|
10758
|
-
"description": "Stable identifier reported by the containing Mention Menu when this person is chosen.",
|
|
10759
|
-
"type": "string",
|
|
10760
|
-
"default": ""
|
|
10761
|
-
}
|
|
10762
|
-
],
|
|
10763
|
-
"properties": [
|
|
10764
|
-
{
|
|
10765
|
-
"name": "detail",
|
|
10766
|
-
"description": "Secondary text, such as a team or role.",
|
|
10767
|
-
"type": "string",
|
|
10768
|
-
"default": ""
|
|
10769
|
-
},
|
|
10770
|
-
{
|
|
10771
|
-
"name": "initials",
|
|
10772
|
-
"description": "Text fallback for the start slot when no avatar is supplied.",
|
|
10773
|
-
"type": "string",
|
|
10774
|
-
"default": ""
|
|
10775
|
-
},
|
|
10776
|
-
{
|
|
10777
|
-
"name": "value",
|
|
10778
|
-
"description": "Stable identifier reported by the containing Mention Menu when this person is chosen.",
|
|
10779
|
-
"type": "string",
|
|
10780
|
-
"default": ""
|
|
10781
|
-
}
|
|
10782
|
-
],
|
|
10783
|
-
"events": [],
|
|
10784
|
-
"slots": [
|
|
10785
|
-
{
|
|
10786
|
-
"name": "start",
|
|
10787
|
-
"description": "Named content for the start region."
|
|
10788
|
-
},
|
|
10789
|
-
{
|
|
10790
|
-
"name": "default",
|
|
10791
|
-
"description": "Default child content."
|
|
10792
|
-
}
|
|
10793
|
-
],
|
|
10794
|
-
"title": "Mention Menu Item",
|
|
10795
|
-
"group": "editor",
|
|
10796
|
-
"navigationParent": "ui-editor-mention-menu",
|
|
10797
|
-
"id": "@threadlabs/looma/ui-editor-mention-menu-item",
|
|
10798
|
-
"resource": "@threadlabs/looma/components/ui-editor-mention-menu-item/ui-editor-mention-menu-item.html",
|
|
10799
|
-
"targets": [
|
|
10800
|
-
"html-next",
|
|
10801
|
-
"vue"
|
|
10802
|
-
],
|
|
10803
|
-
"examples": [
|
|
10804
|
-
{
|
|
10805
|
-
"id": "@threadlabs/looma/ui-editor-mention-menu-item/01-person",
|
|
10806
|
-
"name": "01-person",
|
|
10807
|
-
"title": "Authored person",
|
|
10808
|
-
"description": "The item reports its stable value through the enclosing Mention Menu.",
|
|
10809
|
-
"markup": "<ui-editor-mention-menu open aria-label=\"People\" anchor-rect='{\"left\":0,\"top\":0,\"right\":240,\"bottom\":40}'>\n <ui-editor-mention-menu-item value=\"ada\" initials=\"AL\" detail=\"Design\">Ada Lovelace</ui-editor-mention-menu-item>\n</ui-editor-mention-menu>",
|
|
10810
|
-
"resizable": false,
|
|
10811
|
-
"bindings": "",
|
|
10812
|
-
"frameworks": {}
|
|
10813
|
-
},
|
|
10814
|
-
{
|
|
10815
|
-
"id": "@threadlabs/looma/ui-editor-mention-menu-item/02-avatar",
|
|
10816
|
-
"name": "02-avatar",
|
|
10817
|
-
"title": "Avatar and detail",
|
|
10818
|
-
"description": "A supplied Avatar replaces initials while the person name and role remain readable.",
|
|
10819
|
-
"markup": "<ui-editor-mention-menu open aria-label=\"People\" anchor-rect='{\"left\":0,\"top\":0,\"right\":240,\"bottom\":40}'>\n <ui-editor-mention-menu-item value=\"grace\" detail=\"Engineering\">\n <ui-avatar slot=\"start\" name=\"Grace Hopper\" size=\"sm\"></ui-avatar>\n Grace Hopper\n </ui-editor-mention-menu-item>\n</ui-editor-mention-menu>",
|
|
10820
|
-
"resizable": false,
|
|
10821
|
-
"bindings": "",
|
|
10822
|
-
"frameworks": {}
|
|
10823
|
-
}
|
|
10824
|
-
]
|
|
10825
|
-
},
|
|
10826
|
-
{
|
|
10827
|
-
"tag": "ui-editor-slash-menu",
|
|
10828
|
-
"package": "@threadlabs/looma",
|
|
10829
|
-
"root": "div",
|
|
10830
|
-
"description": "Responsive suggestion surface for app-provided slash commands.",
|
|
10831
|
-
"designTokens": {
|
|
10832
|
-
"sources": [
|
|
10833
|
-
"packages/looma/src/components/ui-editor-slash-menu/ui-editor-slash-menu.html"
|
|
10834
|
-
],
|
|
10835
|
-
"component": [],
|
|
10836
|
-
"shared": [
|
|
10837
|
-
{
|
|
10838
|
-
"name": "--ui-accent"
|
|
10839
|
-
},
|
|
10840
|
-
{
|
|
10841
|
-
"name": "--ui-accent-contrast"
|
|
10842
|
-
},
|
|
10843
|
-
{
|
|
10844
|
-
"name": "--ui-accent-subtle",
|
|
10845
|
-
"fallbacks": [
|
|
10846
|
-
"rgb(59 130 246 / 0.1)"
|
|
10847
|
-
]
|
|
10848
|
-
},
|
|
10849
|
-
{
|
|
10850
|
-
"name": "--ui-border"
|
|
10851
|
-
},
|
|
10852
|
-
{
|
|
10853
|
-
"name": "--ui-border-divider"
|
|
10854
|
-
},
|
|
10855
|
-
{
|
|
10856
|
-
"name": "--ui-border-strong"
|
|
10857
|
-
},
|
|
10858
|
-
{
|
|
10859
|
-
"name": "--ui-border-width"
|
|
10860
|
-
},
|
|
10861
|
-
{
|
|
10862
|
-
"name": "--ui-editor-toolbar-icon-stroke-width",
|
|
10863
|
-
"fallbacks": [
|
|
10864
|
-
"1.75"
|
|
10865
|
-
]
|
|
10866
|
-
},
|
|
10867
|
-
{
|
|
10868
|
-
"name": "--ui-font-bold"
|
|
10869
|
-
},
|
|
10870
|
-
{
|
|
10871
|
-
"name": "--ui-font-family-mono",
|
|
10872
|
-
"fallbacks": [
|
|
10873
|
-
"ui-monospace, monospace"
|
|
10874
|
-
]
|
|
10875
|
-
},
|
|
10876
|
-
{
|
|
10877
|
-
"name": "--ui-font-medium"
|
|
10878
|
-
},
|
|
10879
|
-
{
|
|
10880
|
-
"name": "--ui-font-semibold"
|
|
10881
|
-
},
|
|
10882
|
-
{
|
|
10883
|
-
"name": "--ui-font-size-2xs"
|
|
10884
|
-
},
|
|
10885
|
-
{
|
|
10886
|
-
"name": "--ui-font-size-sm"
|
|
10887
|
-
},
|
|
10888
|
-
{
|
|
10889
|
-
"name": "--ui-font-size-xs"
|
|
10890
|
-
},
|
|
10891
|
-
{
|
|
10892
|
-
"name": "--ui-radius-dialog"
|
|
10893
|
-
},
|
|
10894
|
-
{
|
|
10895
|
-
"name": "--ui-radius-md"
|
|
10896
|
-
},
|
|
10897
|
-
{
|
|
10898
|
-
"name": "--ui-radius-sm"
|
|
10899
|
-
},
|
|
10900
|
-
{
|
|
10901
|
-
"name": "--ui-scroll-fade-size",
|
|
10902
|
-
"fallbacks": [
|
|
10903
|
-
"24px"
|
|
10904
|
-
]
|
|
10905
|
-
},
|
|
10906
|
-
{
|
|
10907
|
-
"name": "--ui-shadow-lg",
|
|
10908
|
-
"fallbacks": [
|
|
10909
|
-
"0 8px 24px rgb(0 0 0 / 0.12)"
|
|
10910
|
-
]
|
|
10911
|
-
},
|
|
10912
|
-
{
|
|
10913
|
-
"name": "--ui-space-1"
|
|
10914
|
-
},
|
|
10915
|
-
{
|
|
10916
|
-
"name": "--ui-space-2"
|
|
10917
|
-
},
|
|
10918
|
-
{
|
|
10919
|
-
"name": "--ui-space-3"
|
|
10920
|
-
},
|
|
10921
|
-
{
|
|
10922
|
-
"name": "--ui-space-4"
|
|
10923
|
-
},
|
|
10924
|
-
{
|
|
10925
|
-
"name": "--ui-surface"
|
|
10926
|
-
},
|
|
10927
|
-
{
|
|
10928
|
-
"name": "--ui-surface-hover"
|
|
10929
|
-
},
|
|
10930
|
-
{
|
|
10931
|
-
"name": "--ui-text"
|
|
10932
|
-
},
|
|
10933
|
-
{
|
|
10934
|
-
"name": "--ui-text-muted"
|
|
10935
|
-
},
|
|
10936
|
-
{
|
|
10937
|
-
"name": "--ui-text-secondary"
|
|
10938
|
-
}
|
|
10939
|
-
]
|
|
10940
|
-
},
|
|
10941
|
-
"attributes": [
|
|
10942
|
-
{
|
|
10943
|
-
"name": "anchor-rect",
|
|
10944
|
-
"property": "anchorRect",
|
|
10945
|
-
"description": "Where the slash was typed, in viewport coordinates.",
|
|
10946
|
-
"type": "object",
|
|
10947
|
-
"fields": [
|
|
10948
|
-
{
|
|
10949
|
-
"path": "left",
|
|
10950
|
-
"type": "number",
|
|
10951
|
-
"required": false
|
|
10952
|
-
},
|
|
10953
|
-
{
|
|
10954
|
-
"path": "top",
|
|
10955
|
-
"type": "number",
|
|
10956
|
-
"required": false
|
|
10957
|
-
},
|
|
10958
|
-
{
|
|
10959
|
-
"path": "right",
|
|
10960
|
-
"type": "number",
|
|
10961
|
-
"required": false
|
|
10962
|
-
},
|
|
10963
|
-
{
|
|
10964
|
-
"path": "bottom",
|
|
10965
|
-
"type": "number",
|
|
10966
|
-
"required": false
|
|
10967
|
-
},
|
|
10968
|
-
{
|
|
10969
|
-
"path": "x",
|
|
10970
|
-
"type": "number",
|
|
10971
|
-
"required": false
|
|
10972
|
-
},
|
|
10973
|
-
{
|
|
10974
|
-
"path": "y",
|
|
10975
|
-
"type": "number",
|
|
10976
|
-
"required": false
|
|
10977
|
-
},
|
|
10978
|
-
{
|
|
10979
|
-
"path": "width",
|
|
10980
|
-
"type": "number",
|
|
10981
|
-
"required": false
|
|
10982
|
-
},
|
|
10983
|
-
{
|
|
10984
|
-
"path": "height",
|
|
10985
|
-
"type": "number",
|
|
10986
|
-
"required": false
|
|
10987
|
-
}
|
|
10988
|
-
]
|
|
10989
|
-
},
|
|
10990
|
-
{
|
|
10991
|
-
"name": "items",
|
|
10992
|
-
"property": "items",
|
|
10993
|
-
"description": "Integration-supplied commands. Authored Slash Menu Item children are the markup alternative.",
|
|
10994
|
-
"type": "list(object)",
|
|
10995
|
-
"fields": [
|
|
10996
|
-
{
|
|
10997
|
-
"path": "[].value",
|
|
10998
|
-
"type": "string",
|
|
10999
|
-
"required": false
|
|
11000
|
-
},
|
|
11001
|
-
{
|
|
11002
|
-
"path": "[].title",
|
|
11003
|
-
"type": "string",
|
|
11004
|
-
"required": true
|
|
11005
|
-
},
|
|
11006
|
-
{
|
|
11007
|
-
"path": "[].description",
|
|
11008
|
-
"type": "string",
|
|
11009
|
-
"required": true
|
|
11010
|
-
},
|
|
11011
|
-
{
|
|
11012
|
-
"path": "[].icon",
|
|
11013
|
-
"type": "string",
|
|
11014
|
-
"required": true
|
|
11015
|
-
}
|
|
11016
|
-
]
|
|
11017
|
-
},
|
|
11018
|
-
{
|
|
11019
|
-
"name": "label",
|
|
11020
|
-
"property": "label",
|
|
11021
|
-
"description": "Accessible name of the suggestion list, used unless an aria-label or aria-labelledby is authored.",
|
|
11022
|
-
"type": "string",
|
|
11023
|
-
"default": "Insert block"
|
|
11024
|
-
},
|
|
11025
|
-
{
|
|
11026
|
-
"name": "open",
|
|
11027
|
-
"property": "open",
|
|
11028
|
-
"description": "Whether the menu is open.",
|
|
11029
|
-
"type": "boolean",
|
|
11030
|
-
"default": false
|
|
11031
|
-
},
|
|
11032
|
-
{
|
|
11033
|
-
"name": "query",
|
|
11034
|
-
"property": "query",
|
|
11035
|
-
"description": "The text typed after the slash.",
|
|
11036
|
-
"type": "string",
|
|
11037
|
-
"default": ""
|
|
11038
|
-
},
|
|
11039
|
-
{
|
|
11040
|
-
"name": "selected-index",
|
|
11041
|
-
"property": "selectedIndex",
|
|
11042
|
-
"description": "The zero-based index of the highlighted item. The menu does not handle arrow keys itself: the editor sets this as the user moves, while hovering an item highlights it and reports a highlight event.",
|
|
11043
|
-
"type": "integer",
|
|
11044
|
-
"default": 0
|
|
11045
|
-
}
|
|
11046
|
-
],
|
|
11047
|
-
"properties": [
|
|
11048
|
-
{
|
|
11049
|
-
"name": "anchorRect",
|
|
11050
|
-
"description": "Where the slash was typed, in viewport coordinates.",
|
|
11051
|
-
"type": "{ readonly left?: number | null; readonly top?: number | null; readonly right?: number | null; readonly bottom?: number | null; readonly x?: number | null; readonly y?: number | null; readonly width?: number | null; readonly height?: number | null }",
|
|
11052
|
-
"fields": [
|
|
11053
|
-
{
|
|
11054
|
-
"path": "left",
|
|
11055
|
-
"type": "number",
|
|
11056
|
-
"required": false
|
|
11057
|
-
},
|
|
11058
|
-
{
|
|
11059
|
-
"path": "top",
|
|
11060
|
-
"type": "number",
|
|
11061
|
-
"required": false
|
|
11062
|
-
},
|
|
11063
|
-
{
|
|
11064
|
-
"path": "right",
|
|
11065
|
-
"type": "number",
|
|
11066
|
-
"required": false
|
|
11067
|
-
},
|
|
11068
|
-
{
|
|
11069
|
-
"path": "bottom",
|
|
11070
|
-
"type": "number",
|
|
11071
|
-
"required": false
|
|
11072
|
-
},
|
|
11073
|
-
{
|
|
11074
|
-
"path": "x",
|
|
11075
|
-
"type": "number",
|
|
11076
|
-
"required": false
|
|
11077
|
-
},
|
|
11078
|
-
{
|
|
11079
|
-
"path": "y",
|
|
11080
|
-
"type": "number",
|
|
11081
|
-
"required": false
|
|
11082
|
-
},
|
|
11083
|
-
{
|
|
11084
|
-
"path": "width",
|
|
11085
|
-
"type": "number",
|
|
11086
|
-
"required": false
|
|
11087
|
-
},
|
|
11088
|
-
{
|
|
11089
|
-
"path": "height",
|
|
11090
|
-
"type": "number",
|
|
11091
|
-
"required": false
|
|
11092
|
-
}
|
|
11093
|
-
]
|
|
11094
|
-
},
|
|
11095
|
-
{
|
|
11096
|
-
"name": "items",
|
|
11097
|
-
"description": "Integration-supplied commands. Authored Slash Menu Item children are the markup alternative.",
|
|
11098
|
-
"type": "readonly ({ readonly value?: string | null; readonly title: string; readonly description: string; readonly icon: string })[]",
|
|
11099
|
-
"fields": [
|
|
11100
|
-
{
|
|
11101
|
-
"path": "[].value",
|
|
11102
|
-
"type": "string",
|
|
11103
|
-
"required": false
|
|
11104
|
-
},
|
|
11105
|
-
{
|
|
11106
|
-
"path": "[].title",
|
|
11107
|
-
"type": "string",
|
|
11108
|
-
"required": true
|
|
11109
|
-
},
|
|
11110
|
-
{
|
|
11111
|
-
"path": "[].description",
|
|
11112
|
-
"type": "string",
|
|
11113
|
-
"required": true
|
|
11114
|
-
},
|
|
11115
|
-
{
|
|
11116
|
-
"path": "[].icon",
|
|
11117
|
-
"type": "string",
|
|
11118
|
-
"required": true
|
|
11119
|
-
}
|
|
11120
|
-
]
|
|
11121
|
-
},
|
|
11122
|
-
{
|
|
11123
|
-
"name": "label",
|
|
11124
|
-
"description": "Accessible name of the suggestion list, used unless an aria-label or aria-labelledby is authored.",
|
|
11125
|
-
"type": "string",
|
|
11126
|
-
"default": "Insert block"
|
|
11127
|
-
},
|
|
11128
|
-
{
|
|
11129
|
-
"name": "open",
|
|
11130
|
-
"description": "Whether the menu is open.",
|
|
11131
|
-
"type": "boolean",
|
|
11132
|
-
"default": false
|
|
11133
|
-
},
|
|
11134
|
-
{
|
|
11135
|
-
"name": "query",
|
|
11136
|
-
"description": "The text typed after the slash.",
|
|
11137
|
-
"type": "string",
|
|
11138
|
-
"default": ""
|
|
11139
|
-
},
|
|
11140
|
-
{
|
|
11141
|
-
"name": "selectedIndex",
|
|
11142
|
-
"description": "The zero-based index of the highlighted item. The menu does not handle arrow keys itself: the editor sets this as the user moves, while hovering an item highlights it and reports a highlight event.",
|
|
11143
|
-
"type": "number",
|
|
11144
|
-
"default": 0
|
|
11145
|
-
}
|
|
11146
|
-
],
|
|
11147
|
-
"events": [
|
|
11148
|
-
{
|
|
11149
|
-
"name": "highlight",
|
|
11150
|
-
"detailType": "{ index: number; value: string }",
|
|
11151
|
-
"detailSchema": "object({ index: integer, value: string })",
|
|
11152
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
11153
|
-
},
|
|
11154
|
-
{
|
|
11155
|
-
"name": "select",
|
|
11156
|
-
"detailType": "{ index: number; value: string }",
|
|
11157
|
-
"detailSchema": "object({ index: integer, value: string })",
|
|
11158
|
-
"detailDocs": "Emitted when a selectable option becomes active."
|
|
11159
|
-
}
|
|
11160
|
-
],
|
|
11161
|
-
"slots": [
|
|
11162
|
-
{
|
|
11163
|
-
"name": "header",
|
|
11164
|
-
"description": "Named content for the header region."
|
|
11165
|
-
},
|
|
11166
|
-
{
|
|
11167
|
-
"name": "default",
|
|
11168
|
-
"description": "Default child content."
|
|
11169
|
-
},
|
|
11170
|
-
{
|
|
11171
|
-
"name": "empty",
|
|
11172
|
-
"description": "Named content for the empty region."
|
|
11173
|
-
},
|
|
11174
|
-
{
|
|
11175
|
-
"name": "footer",
|
|
11176
|
-
"description": "Named content for the footer region."
|
|
11177
|
-
}
|
|
11178
|
-
],
|
|
11179
|
-
"title": "Slash Menu",
|
|
11180
|
-
"group": "editor",
|
|
11181
|
-
"id": "@threadlabs/looma/ui-editor-slash-menu",
|
|
11182
|
-
"resource": "@threadlabs/looma/components/ui-editor-slash-menu/ui-editor-slash-menu.html",
|
|
11183
|
-
"targets": [
|
|
11184
|
-
"html-next",
|
|
11185
|
-
"vue"
|
|
11186
|
-
],
|
|
11187
|
-
"examples": [
|
|
11188
|
-
{
|
|
11189
|
-
"id": "@threadlabs/looma/ui-editor-slash-menu/00-preview",
|
|
11190
|
-
"name": "00-preview",
|
|
11191
|
-
"title": "Insert a block",
|
|
11192
|
-
"description": "Open the interactive surface when needed; it starts closed in the component directory.",
|
|
11193
|
-
"markup": "<ui-button data-demo-trigger aria-haspopup=\"listbox\" aria-expanded=\"false\" aria-controls=\"preview-commands\">Insert a block</ui-button>\n<ui-editor-slash-menu id=\"preview-commands\" data-demo-surface tabindex=\"-1\">\n <ui-editor-slash-menu-item id=\"preview-text\" value=\"text\" icon=\"pilcrow\" description=\"Plain paragraph\">Text</ui-editor-slash-menu-item>\n <ui-editor-slash-menu-item id=\"preview-table\" value=\"table\" icon=\"table\" description=\"Rows and columns\">Table</ui-editor-slash-menu-item>\n</ui-editor-slash-menu>",
|
|
11194
|
-
"resizable": false,
|
|
11195
|
-
"bindings": "",
|
|
11196
|
-
"frameworks": {},
|
|
11197
|
-
"behavior": "@threadlabs/looma/docs/examples/ui-editor-slash-menu/examples/00-preview.behavior.js"
|
|
11198
|
-
},
|
|
11199
|
-
{
|
|
11200
|
-
"id": "@threadlabs/looma/ui-editor-slash-menu/01-open",
|
|
11201
|
-
"name": "01-open",
|
|
11202
|
-
"title": "Open",
|
|
11203
|
-
"description": "The open property exposes the supplied command controls.",
|
|
11204
|
-
"markup": "<ui-editor-slash-menu\n id=\"slash-menu\"\n anchor-rect='{\"left\":0,\"top\":0,\"right\":240,\"bottom\":40,\"x\":0,\"y\":0,\"width\":240,\"height\":40}'\n items='[{\"value\":\"text\",\"title\":\"Text\",\"description\":\"Plain paragraph\",\"icon\":\"pilcrow\"},{\"value\":\"table\",\"title\":\"Table\",\"description\":\"Rows and columns\",\"icon\":\"table\"}]'\n open\n>\n</ui-editor-slash-menu>",
|
|
11205
|
-
"resizable": false,
|
|
11206
|
-
"bindings": "items=slashItems anchor-rect=anchorRect",
|
|
11207
|
-
"frameworks": {}
|
|
11208
|
-
},
|
|
11209
|
-
{
|
|
11210
|
-
"id": "@threadlabs/looma/ui-editor-slash-menu/02-query-and-selected-index",
|
|
11211
|
-
"name": "02-query-and-selected-index",
|
|
11212
|
-
"title": "query and selected-index",
|
|
11213
|
-
"description": "Query records the active filter while selected-index identifies the keyboard-active result.",
|
|
11214
|
-
"markup": "<ui-editor-slash-menu\n id=\"filtered-slash-menu\"\n anchor-rect='{\"left\":0,\"top\":0,\"right\":240,\"bottom\":40,\"x\":0,\"y\":0,\"width\":240,\"height\":40}'\n items='[{\"value\":\"table\",\"title\":\"Table\",\"description\":\"Rows and columns\",\"icon\":\"table\"}]'\n open\n query=\"table\"\n selected-index=\"0\"\n>\n</ui-editor-slash-menu>",
|
|
11215
|
-
"resizable": false,
|
|
11216
|
-
"bindings": "items=slashItems anchor-rect=anchorRect",
|
|
11217
|
-
"frameworks": {}
|
|
11218
|
-
},
|
|
11219
|
-
{
|
|
11220
|
-
"id": "@threadlabs/looma/ui-editor-slash-menu/03-authored-groups",
|
|
11221
|
-
"name": "03-authored-groups",
|
|
11222
|
-
"title": "Authored groups and search terms",
|
|
11223
|
-
"description": "Child items own stable values; groups and keywords make a larger command set easy to scan and filter.",
|
|
11224
|
-
"markup": "<ui-editor-slash-menu open query=\"h1\" aria-label=\"Document commands\" anchor-rect='{\"left\":0,\"top\":0,\"right\":240,\"bottom\":40}'>\n <ui-editor-slash-menu-group label=\"Basic blocks\">\n <ui-editor-slash-menu-item value=\"heading-1\" icon=\"heading-1\" description=\"Large section heading\" keywords=\"h1 title\">Heading 1</ui-editor-slash-menu-item>\n <ui-editor-slash-menu-item value=\"paragraph\" icon=\"pilcrow\">Paragraph</ui-editor-slash-menu-item>\n </ui-editor-slash-menu-group>\n <ui-editor-slash-menu-group label=\"Media\">\n <ui-editor-slash-menu-item value=\"table\" icon=\"table\">Table</ui-editor-slash-menu-item>\n </ui-editor-slash-menu-group>\n <div slot=\"empty\">No matching commands</div>\n <div slot=\"footer\">Use arrow keys to choose a command.</div>\n</ui-editor-slash-menu>",
|
|
11225
|
-
"resizable": false,
|
|
11226
|
-
"bindings": "",
|
|
11227
|
-
"frameworks": {}
|
|
11228
|
-
}
|
|
11229
|
-
]
|
|
11230
|
-
},
|
|
11231
|
-
{
|
|
11232
|
-
"tag": "ui-editor-slash-menu-group",
|
|
11233
|
-
"package": "@threadlabs/looma",
|
|
11234
|
-
"root": "li",
|
|
11235
|
-
"description": "Names related Slash Menu Items for sighted and assistive technology users.",
|
|
11236
|
-
"designTokens": {
|
|
11237
|
-
"sources": [
|
|
11238
|
-
"packages/looma/src/components/ui-editor-slash-menu-group/ui-editor-slash-menu-group.html"
|
|
11239
|
-
],
|
|
11240
|
-
"component": [],
|
|
11241
|
-
"shared": [
|
|
11242
|
-
{
|
|
11243
|
-
"name": "--ui-font-semibold"
|
|
11244
|
-
},
|
|
11245
|
-
{
|
|
11246
|
-
"name": "--ui-font-size-xs"
|
|
11247
|
-
},
|
|
11248
|
-
{
|
|
11249
|
-
"name": "--ui-space-1"
|
|
11250
|
-
},
|
|
11251
|
-
{
|
|
11252
|
-
"name": "--ui-space-2"
|
|
11253
|
-
},
|
|
11254
|
-
{
|
|
11255
|
-
"name": "--ui-space-3"
|
|
11256
|
-
},
|
|
11257
|
-
{
|
|
11258
|
-
"name": "--ui-text-muted"
|
|
11259
|
-
}
|
|
11260
|
-
]
|
|
11261
|
-
},
|
|
11262
|
-
"attributes": [
|
|
11263
|
-
{
|
|
11264
|
-
"name": "label",
|
|
11265
|
-
"property": "label",
|
|
11266
|
-
"description": "Names this group of related slash commands.",
|
|
11267
|
-
"type": "string",
|
|
11268
|
-
"default": ""
|
|
11269
|
-
}
|
|
11270
|
-
],
|
|
11271
|
-
"properties": [
|
|
11272
|
-
{
|
|
11273
|
-
"name": "label",
|
|
11274
|
-
"description": "Names this group of related slash commands.",
|
|
11275
|
-
"type": "string",
|
|
11276
|
-
"default": ""
|
|
11277
|
-
}
|
|
11278
|
-
],
|
|
11279
|
-
"events": [],
|
|
11280
|
-
"slots": [
|
|
11281
|
-
{
|
|
11282
|
-
"name": "default",
|
|
11283
|
-
"description": "Default child content."
|
|
11284
|
-
}
|
|
11285
|
-
],
|
|
11286
|
-
"title": "Slash Menu Group",
|
|
11287
|
-
"group": "editor",
|
|
11288
|
-
"navigationParent": "ui-editor-slash-menu",
|
|
11289
|
-
"id": "@threadlabs/looma/ui-editor-slash-menu-group",
|
|
11290
|
-
"resource": "@threadlabs/looma/components/ui-editor-slash-menu-group/ui-editor-slash-menu-group.html",
|
|
11291
|
-
"targets": [
|
|
11292
|
-
"html-next",
|
|
11293
|
-
"vue"
|
|
11294
|
-
],
|
|
11295
|
-
"examples": [
|
|
11296
|
-
{
|
|
11297
|
-
"id": "@threadlabs/looma/ui-editor-slash-menu-group/01-basic",
|
|
11298
|
-
"name": "01-basic",
|
|
11299
|
-
"title": "Named command group",
|
|
11300
|
-
"description": "A group names related commands and disappears when none of its items match the query.",
|
|
11301
|
-
"markup": "<ui-editor-slash-menu open aria-label=\"Document commands\" anchor-rect='{\"left\":0,\"top\":0,\"right\":240,\"bottom\":40}'>\n <ui-editor-slash-menu-group label=\"Basic blocks\">\n <ui-editor-slash-menu-item value=\"heading-1\" icon=\"heading-1\">Heading 1</ui-editor-slash-menu-item>\n <ui-editor-slash-menu-item value=\"paragraph\" icon=\"pilcrow\">Paragraph</ui-editor-slash-menu-item>\n </ui-editor-slash-menu-group>\n</ui-editor-slash-menu>",
|
|
11302
|
-
"resizable": false,
|
|
11303
|
-
"bindings": "",
|
|
11304
|
-
"frameworks": {}
|
|
11305
|
-
},
|
|
11306
|
-
{
|
|
11307
|
-
"id": "@threadlabs/looma/ui-editor-slash-menu-group/02-filtered",
|
|
11308
|
-
"name": "02-filtered",
|
|
11309
|
-
"title": "Filtered group",
|
|
11310
|
-
"description": "A matching command keeps its named group visible while unrelated groups disappear.",
|
|
11311
|
-
"markup": "<ui-editor-slash-menu open query=\"table\" aria-label=\"Document commands\" anchor-rect='{\"left\":0,\"top\":0,\"right\":240,\"bottom\":40}'>\n <ui-editor-slash-menu-group label=\"Insert\">\n <ui-editor-slash-menu-item value=\"table\" icon=\"table\">Table</ui-editor-slash-menu-item>\n </ui-editor-slash-menu-group>\n <ui-editor-slash-menu-group label=\"Text\">\n <ui-editor-slash-menu-item value=\"heading-1\" icon=\"heading-1\">Heading 1</ui-editor-slash-menu-item>\n </ui-editor-slash-menu-group>\n</ui-editor-slash-menu>",
|
|
11312
|
-
"resizable": false,
|
|
11313
|
-
"bindings": "",
|
|
11314
|
-
"frameworks": {}
|
|
11315
|
-
}
|
|
11316
|
-
]
|
|
11317
|
-
},
|
|
11318
|
-
{
|
|
11319
|
-
"tag": "ui-editor-slash-menu-item",
|
|
11320
|
-
"package": "@threadlabs/looma",
|
|
11321
|
-
"root": "li",
|
|
11322
|
-
"description": "An authored command in a Slash Menu.",
|
|
11323
|
-
"designTokens": {
|
|
11324
|
-
"sources": [
|
|
11325
|
-
"packages/looma/src/components/ui-editor-slash-menu-item/ui-editor-slash-menu-item.html"
|
|
11326
|
-
],
|
|
11327
|
-
"component": [],
|
|
11328
|
-
"shared": [
|
|
11329
|
-
{
|
|
11330
|
-
"name": "--ui-accent-subtle"
|
|
11331
|
-
},
|
|
11332
|
-
{
|
|
11333
|
-
"name": "--ui-border"
|
|
11334
|
-
},
|
|
11335
|
-
{
|
|
11336
|
-
"name": "--ui-border-width"
|
|
11337
|
-
},
|
|
11338
|
-
{
|
|
11339
|
-
"name": "--ui-disabled-surface"
|
|
11340
|
-
},
|
|
11341
|
-
{
|
|
11342
|
-
"name": "--ui-disabled-text"
|
|
11343
|
-
},
|
|
11344
|
-
{
|
|
11345
|
-
"name": "--ui-font-medium"
|
|
11346
|
-
},
|
|
11347
|
-
{
|
|
11348
|
-
"name": "--ui-font-size-sm"
|
|
11349
|
-
},
|
|
11350
|
-
{
|
|
11351
|
-
"name": "--ui-font-size-xs"
|
|
11352
|
-
},
|
|
11353
|
-
{
|
|
11354
|
-
"name": "--ui-radius-md"
|
|
11355
|
-
},
|
|
11356
|
-
{
|
|
11357
|
-
"name": "--ui-space-2"
|
|
11358
|
-
},
|
|
11359
|
-
{
|
|
11360
|
-
"name": "--ui-space-3"
|
|
11361
|
-
},
|
|
11362
|
-
{
|
|
11363
|
-
"name": "--ui-surface-hover"
|
|
11364
|
-
},
|
|
11365
|
-
{
|
|
11366
|
-
"name": "--ui-text-muted"
|
|
11367
|
-
},
|
|
11368
|
-
{
|
|
11369
|
-
"name": "--ui-text-primary"
|
|
11370
|
-
},
|
|
11371
|
-
{
|
|
11372
|
-
"name": "--ui-text-secondary"
|
|
11373
|
-
}
|
|
11374
|
-
]
|
|
11375
|
-
},
|
|
11376
|
-
"attributes": [
|
|
11377
|
-
{
|
|
11378
|
-
"name": "description",
|
|
11379
|
-
"property": "description",
|
|
11380
|
-
"description": "One line explaining the command.",
|
|
11381
|
-
"type": "string",
|
|
11382
|
-
"default": ""
|
|
11383
|
-
},
|
|
11384
|
-
{
|
|
11385
|
-
"name": "disabled",
|
|
11386
|
-
"property": "disabled",
|
|
11387
|
-
"description": "Keeps the command visible but unavailable for selection.",
|
|
11388
|
-
"type": "boolean",
|
|
11389
|
-
"default": false
|
|
11390
|
-
},
|
|
11391
|
-
{
|
|
11392
|
-
"name": "icon",
|
|
11393
|
-
"property": "icon",
|
|
11394
|
-
"description": "A Lucide icon name for the leading symbol.",
|
|
11395
|
-
"type": "string",
|
|
11396
|
-
"default": ""
|
|
11397
|
-
},
|
|
11398
|
-
{
|
|
11399
|
-
"name": "keywords",
|
|
11400
|
-
"property": "keywords",
|
|
11401
|
-
"description": "Additional space-separated search terms matched by the containing Slash Menu.",
|
|
11402
|
-
"type": "string",
|
|
11403
|
-
"default": ""
|
|
11404
|
-
},
|
|
11405
|
-
{
|
|
11406
|
-
"name": "value",
|
|
11407
|
-
"property": "value",
|
|
11408
|
-
"description": "Stable identifier reported by the containing Slash Menu when this command is chosen.",
|
|
11409
|
-
"type": "string",
|
|
11410
|
-
"default": ""
|
|
11411
|
-
}
|
|
11412
|
-
],
|
|
11413
|
-
"properties": [
|
|
11414
|
-
{
|
|
11415
|
-
"name": "description",
|
|
11416
|
-
"description": "One line explaining the command.",
|
|
11417
|
-
"type": "string",
|
|
11418
|
-
"default": ""
|
|
11419
|
-
},
|
|
11420
|
-
{
|
|
11421
|
-
"name": "disabled",
|
|
11422
|
-
"description": "Keeps the command visible but unavailable for selection.",
|
|
11423
|
-
"type": "boolean",
|
|
11424
|
-
"default": false
|
|
11425
|
-
},
|
|
11426
|
-
{
|
|
11427
|
-
"name": "icon",
|
|
11428
|
-
"description": "A Lucide icon name for the leading symbol.",
|
|
11429
|
-
"type": "string",
|
|
11430
|
-
"default": ""
|
|
11431
|
-
},
|
|
11432
|
-
{
|
|
11433
|
-
"name": "keywords",
|
|
11434
|
-
"description": "Additional space-separated search terms matched by the containing Slash Menu.",
|
|
11435
|
-
"type": "string",
|
|
11436
|
-
"default": ""
|
|
11437
|
-
},
|
|
11438
|
-
{
|
|
11439
|
-
"name": "value",
|
|
11440
|
-
"description": "Stable identifier reported by the containing Slash Menu when this command is chosen.",
|
|
11441
|
-
"type": "string",
|
|
11442
|
-
"default": ""
|
|
11443
|
-
}
|
|
11444
|
-
],
|
|
11445
|
-
"events": [],
|
|
11446
|
-
"slots": [
|
|
11447
|
-
{
|
|
11448
|
-
"name": "default",
|
|
11449
|
-
"description": "Default child content."
|
|
11450
|
-
}
|
|
11451
|
-
],
|
|
11452
|
-
"title": "Slash Menu Item",
|
|
11453
|
-
"group": "editor",
|
|
11454
|
-
"navigationParent": "ui-editor-slash-menu",
|
|
11455
|
-
"id": "@threadlabs/looma/ui-editor-slash-menu-item",
|
|
11456
|
-
"resource": "@threadlabs/looma/components/ui-editor-slash-menu-item/ui-editor-slash-menu-item.html",
|
|
11457
|
-
"targets": [
|
|
11458
|
-
"html-next",
|
|
11459
|
-
"vue"
|
|
11460
|
-
],
|
|
11461
|
-
"examples": [
|
|
11462
|
-
{
|
|
11463
|
-
"id": "@threadlabs/looma/ui-editor-slash-menu-item/01-command",
|
|
11464
|
-
"name": "01-command",
|
|
11465
|
-
"title": "Authored command",
|
|
11466
|
-
"description": "A command can be found by its text or additional keywords.",
|
|
11467
|
-
"markup": "<ui-editor-slash-menu open aria-label=\"Document commands\" anchor-rect='{\"left\":0,\"top\":0,\"right\":240,\"bottom\":40}'>\n <ui-editor-slash-menu-item value=\"heading-1\" icon=\"heading-1\" keywords=\"h1 title\" description=\"Large section heading\">Heading 1</ui-editor-slash-menu-item>\n</ui-editor-slash-menu>",
|
|
11468
|
-
"resizable": false,
|
|
11469
|
-
"bindings": "",
|
|
11470
|
-
"frameworks": {}
|
|
11471
|
-
},
|
|
11472
|
-
{
|
|
11473
|
-
"id": "@threadlabs/looma/ui-editor-slash-menu-item/02-disabled",
|
|
11474
|
-
"name": "02-disabled",
|
|
11475
|
-
"title": "Unavailable command",
|
|
11476
|
-
"description": "A disabled command remains visible for orientation but cannot be chosen.",
|
|
11477
|
-
"markup": "<ui-editor-slash-menu open aria-label=\"Document commands\" anchor-rect='{\"left\":0,\"top\":0,\"right\":240,\"bottom\":40}'>\n <ui-editor-slash-menu-item value=\"table\" icon=\"table\" description=\"Available now\">Table</ui-editor-slash-menu-item>\n <ui-editor-slash-menu-item value=\"image\" icon=\"image\" description=\"Upload access required\" disabled>Image</ui-editor-slash-menu-item>\n</ui-editor-slash-menu>",
|
|
11478
|
-
"resizable": false,
|
|
11479
|
-
"bindings": "",
|
|
11480
|
-
"frameworks": {}
|
|
11481
|
-
}
|
|
11482
|
-
]
|
|
11483
|
-
},
|
|
11484
|
-
{
|
|
11485
|
-
"tag": "ui-editor-table-context-menu",
|
|
11486
|
-
"package": "@threadlabs/looma",
|
|
11487
|
-
"root": "div",
|
|
11488
|
-
"description": "Cell and table action menu whose available commands are controlled by app-provided capabilities.",
|
|
11489
|
-
"designTokens": {
|
|
11490
|
-
"sources": [
|
|
11491
|
-
"packages/looma/src/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html"
|
|
11492
|
-
],
|
|
11493
|
-
"component": [],
|
|
11494
|
-
"shared": [
|
|
11495
|
-
{
|
|
11496
|
-
"name": "--ui-accent-subtle",
|
|
11497
|
-
"fallbacks": [
|
|
11498
|
-
"rgb(59 130 246 / 0.1)"
|
|
11499
|
-
]
|
|
11500
|
-
},
|
|
11501
|
-
{
|
|
11502
|
-
"name": "--ui-border"
|
|
11503
|
-
},
|
|
11504
|
-
{
|
|
11505
|
-
"name": "--ui-border-divider"
|
|
11506
|
-
},
|
|
11507
|
-
{
|
|
11508
|
-
"name": "--ui-border-strong"
|
|
11509
|
-
},
|
|
11510
|
-
{
|
|
11511
|
-
"name": "--ui-border-width"
|
|
11512
|
-
},
|
|
11513
|
-
{
|
|
11514
|
-
"name": "--ui-danger-subtle-text"
|
|
11515
|
-
},
|
|
11516
|
-
{
|
|
11517
|
-
"name": "--ui-editor-toolbar-icon-stroke-width",
|
|
11518
|
-
"fallbacks": [
|
|
11519
|
-
"1.75"
|
|
11520
|
-
]
|
|
11521
|
-
},
|
|
11522
|
-
{
|
|
11523
|
-
"name": "--ui-font-size-2xs"
|
|
11524
|
-
},
|
|
11525
|
-
{
|
|
11526
|
-
"name": "--ui-font-size-sm"
|
|
11527
|
-
},
|
|
11528
|
-
{
|
|
11529
|
-
"name": "--ui-radius-lg"
|
|
11530
|
-
},
|
|
11531
|
-
{
|
|
11532
|
-
"name": "--ui-radius-round"
|
|
11533
|
-
},
|
|
11534
|
-
{
|
|
11535
|
-
"name": "--ui-radius-sm"
|
|
11536
|
-
},
|
|
11537
|
-
{
|
|
11538
|
-
"name": "--ui-shadow-lg",
|
|
11539
|
-
"fallbacks": [
|
|
11540
|
-
"0 10px 15px -3px rgb(0 0 0 / 0.1)"
|
|
11541
|
-
]
|
|
11542
|
-
},
|
|
11543
|
-
{
|
|
11544
|
-
"name": "--ui-space-1"
|
|
11545
|
-
},
|
|
11546
|
-
{
|
|
11547
|
-
"name": "--ui-space-2"
|
|
11548
|
-
},
|
|
11549
|
-
{
|
|
11550
|
-
"name": "--ui-surface"
|
|
11551
|
-
},
|
|
11552
|
-
{
|
|
11553
|
-
"name": "--ui-surface-hover"
|
|
11554
|
-
},
|
|
11555
|
-
{
|
|
11556
|
-
"name": "--ui-text"
|
|
11557
|
-
},
|
|
11558
|
-
{
|
|
11559
|
-
"name": "--ui-text-muted"
|
|
11560
|
-
}
|
|
11561
|
-
]
|
|
11562
|
-
},
|
|
11563
|
-
"attributes": [
|
|
11564
|
-
{
|
|
11565
|
-
"name": "actions",
|
|
11566
|
-
"property": "actions",
|
|
11567
|
-
"description": "The complete set of commands the current selection permits.",
|
|
11568
|
-
"type": "list(keyword)"
|
|
11569
|
-
},
|
|
11570
|
-
{
|
|
11571
|
-
"name": "cell-background",
|
|
11572
|
-
"property": "cellBackground",
|
|
11573
|
-
"description": "Identifies the background choice that is active for the current cell.",
|
|
11574
|
-
"type": "string",
|
|
11575
|
-
"default": ""
|
|
11576
|
-
},
|
|
11577
|
-
{
|
|
11578
|
-
"name": "header-column",
|
|
11579
|
-
"property": "headerColumn",
|
|
11580
|
-
"description": "Whether the table's first column currently uses header cells.",
|
|
11581
|
-
"type": "boolean",
|
|
11582
|
-
"default": false
|
|
11583
|
-
},
|
|
11584
|
-
{
|
|
11585
|
-
"name": "header-row",
|
|
11586
|
-
"property": "headerRow",
|
|
11587
|
-
"description": "Whether the table's first row currently uses header cells.",
|
|
11588
|
-
"type": "boolean",
|
|
11589
|
-
"default": false
|
|
11590
|
-
},
|
|
11591
|
-
{
|
|
11592
|
-
"name": "open",
|
|
11593
|
-
"property": "open",
|
|
11594
|
-
"description": "Shows the menu at the position owned by the editor integration.",
|
|
11595
|
-
"type": "boolean",
|
|
11596
|
-
"default": false
|
|
11597
|
-
},
|
|
11598
|
-
{
|
|
11599
|
-
"name": "scope",
|
|
11600
|
-
"property": "scope",
|
|
11601
|
-
"description": "Keeps structure actions relevant to a cell, row handle, or column handle.",
|
|
11602
|
-
"type": "keyword",
|
|
11603
|
-
"default": "cell",
|
|
11604
|
-
"options": [
|
|
11605
|
-
"cell",
|
|
11606
|
-
"row",
|
|
11607
|
-
"column"
|
|
11608
|
-
]
|
|
11609
|
-
}
|
|
11610
|
-
],
|
|
11611
|
-
"properties": [
|
|
11612
|
-
{
|
|
11613
|
-
"name": "actions",
|
|
11614
|
-
"description": "The complete set of commands the current selection permits.",
|
|
11615
|
-
"type": "readonly (\"align-left\" | \"align-center\" | \"align-right\" | \"background-none\" | \"background-gray\" | \"background-yellow\" | \"background-blue\" | \"background-green\" | \"background-red\" | \"add-row-before\" | \"add-row-after\" | \"add-column-before\" | \"add-column-after\" | \"toggle-header-row\" | \"toggle-header-column\" | \"move-row-up\" | \"move-row-down\" | \"move-column-left\" | \"move-column-right\" | \"clear-cells\" | \"merge-cells\" | \"split-cell\" | \"delete-row\" | \"delete-column\" | \"delete-table\")[]"
|
|
11616
|
-
},
|
|
11617
|
-
{
|
|
11618
|
-
"name": "cellBackground",
|
|
11619
|
-
"description": "Identifies the background choice that is active for the current cell.",
|
|
11620
|
-
"type": "string",
|
|
11621
|
-
"default": ""
|
|
11622
|
-
},
|
|
11623
|
-
{
|
|
11624
|
-
"name": "headerColumn",
|
|
11625
|
-
"description": "Whether the table's first column currently uses header cells.",
|
|
11626
|
-
"type": "boolean",
|
|
11627
|
-
"default": false
|
|
11628
|
-
},
|
|
11629
|
-
{
|
|
11630
|
-
"name": "headerRow",
|
|
11631
|
-
"description": "Whether the table's first row currently uses header cells.",
|
|
11632
|
-
"type": "boolean",
|
|
11633
|
-
"default": false
|
|
11634
|
-
},
|
|
11635
|
-
{
|
|
11636
|
-
"name": "open",
|
|
11637
|
-
"description": "Shows the menu at the position owned by the editor integration.",
|
|
11638
|
-
"type": "boolean",
|
|
11639
|
-
"default": false
|
|
11640
|
-
},
|
|
11641
|
-
{
|
|
11642
|
-
"name": "scope",
|
|
11643
|
-
"description": "Keeps structure actions relevant to a cell, row handle, or column handle.",
|
|
11644
|
-
"type": "\"cell\" | \"row\" | \"column\"",
|
|
11645
|
-
"default": "cell",
|
|
11646
|
-
"options": [
|
|
11647
|
-
"cell",
|
|
11648
|
-
"row",
|
|
11649
|
-
"column"
|
|
11650
|
-
]
|
|
11651
|
-
}
|
|
11652
|
-
],
|
|
11653
|
-
"events": [
|
|
11654
|
-
{
|
|
11655
|
-
"name": "action",
|
|
11656
|
-
"detailType": "{ readonly action: \"align-left\" | \"align-center\" | \"align-right\" | \"background-none\" | \"background-gray\" | \"background-yellow\" | \"background-blue\" | \"background-green\" | \"background-red\" | \"add-row-before\" | \"add-row-after\" | \"add-column-before\" | \"add-column-after\" | \"toggle-header-row\" | \"toggle-header-column\" | \"move-row-up\" | \"move-row-down\" | \"move-column-left\" | \"move-column-right\" | \"clear-cells\" | \"merge-cells\" | \"split-cell\" | \"delete-row\" | \"delete-column\" | \"delete-table\" }",
|
|
11657
|
-
"detailSchema": "object",
|
|
11658
|
-
"fields": [
|
|
11659
|
-
{
|
|
11660
|
-
"path": "action",
|
|
11661
|
-
"type": "keyword",
|
|
11662
|
-
"required": true,
|
|
11663
|
-
"values": [
|
|
11664
|
-
"align-left",
|
|
11665
|
-
"align-center",
|
|
11666
|
-
"align-right",
|
|
11667
|
-
"background-none",
|
|
11668
|
-
"background-gray",
|
|
11669
|
-
"background-yellow",
|
|
11670
|
-
"background-blue",
|
|
11671
|
-
"background-green",
|
|
11672
|
-
"background-red",
|
|
11673
|
-
"add-row-before",
|
|
11674
|
-
"add-row-after",
|
|
11675
|
-
"add-column-before",
|
|
11676
|
-
"add-column-after",
|
|
11677
|
-
"toggle-header-row",
|
|
11678
|
-
"toggle-header-column",
|
|
11679
|
-
"move-row-up",
|
|
11680
|
-
"move-row-down",
|
|
11681
|
-
"move-column-left",
|
|
11682
|
-
"move-column-right",
|
|
11683
|
-
"clear-cells",
|
|
11684
|
-
"merge-cells",
|
|
11685
|
-
"split-cell",
|
|
11686
|
-
"delete-row",
|
|
11687
|
-
"delete-column",
|
|
11688
|
-
"delete-table"
|
|
11689
|
-
]
|
|
11690
|
-
}
|
|
11691
|
-
],
|
|
11692
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
11693
|
-
}
|
|
11694
|
-
],
|
|
11695
|
-
"slots": [],
|
|
11696
|
-
"title": "Table Context Menu",
|
|
11697
|
-
"group": "editor",
|
|
11698
|
-
"id": "@threadlabs/looma/ui-editor-table-context-menu",
|
|
11699
|
-
"resource": "@threadlabs/looma/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html",
|
|
11700
|
-
"targets": [
|
|
11701
|
-
"html-next",
|
|
11702
|
-
"vue"
|
|
11703
|
-
],
|
|
11704
|
-
"examples": [
|
|
11705
|
-
{
|
|
11706
|
-
"id": "@threadlabs/looma/ui-editor-table-context-menu/01-open",
|
|
11707
|
-
"name": "01-open",
|
|
11708
|
-
"title": "Open",
|
|
11709
|
-
"description": "The open property exposes the supplied table commands.",
|
|
11710
|
-
"markup": "<ui-editor-table-context-menu id=\"table-context-menu\" actions='[\"add-row-after\",\"add-column-after\"]' open> </ui-editor-table-context-menu>",
|
|
11711
|
-
"resizable": false,
|
|
11712
|
-
"bindings": "actions=tableActionsBasic",
|
|
11713
|
-
"frameworks": {}
|
|
11714
|
-
},
|
|
11715
|
-
{
|
|
11716
|
-
"id": "@threadlabs/looma/ui-editor-table-context-menu/02-actions",
|
|
11717
|
-
"name": "02-actions",
|
|
11718
|
-
"title": "Actions",
|
|
11719
|
-
"description": "The actions property contains the exact commands supported by the current selection; unsupported commands are absent.",
|
|
11720
|
-
"markup": "<ui-editor-table-context-menu\n id=\"context-menu-actions\"\n actions='[\"align-left\",\"align-center\",\"align-right\",\"background-none\",\"background-yellow\",\"add-row-before\",\"add-row-after\",\"add-column-before\",\"add-column-after\",\"toggle-header-row\",\"toggle-header-column\",\"move-row-down\",\"move-column-right\",\"merge-cells\",\"delete-table\"]'\n open\n cell-background=\"#fef3c7\"\n header-row\n>\n</ui-editor-table-context-menu>",
|
|
11721
|
-
"resizable": false,
|
|
11722
|
-
"bindings": "actions=tableActions",
|
|
11723
|
-
"frameworks": {}
|
|
11724
|
-
},
|
|
11725
|
-
{
|
|
11726
|
-
"id": "@threadlabs/looma/ui-editor-table-context-menu/03-row-scope",
|
|
11727
|
-
"name": "03-row-scope",
|
|
11728
|
-
"title": "Row actions",
|
|
11729
|
-
"description": "A menu opened from a row handle keeps row structure actions and hides column structure actions.",
|
|
11730
|
-
"markup": "<ui-editor-table-context-menu\n open\n scope=\"row\"\n actions='[\"add-row-before\",\"add-column-before\",\"move-row-up\",\"move-column-left\",\"delete-row\",\"delete-column\",\"toggle-header-row\"]'\n header-row\n>\n</ui-editor-table-context-menu>",
|
|
11731
|
-
"resizable": false,
|
|
11732
|
-
"bindings": "",
|
|
11733
|
-
"frameworks": {}
|
|
11734
|
-
}
|
|
11735
|
-
]
|
|
11736
|
-
},
|
|
11737
|
-
{
|
|
11738
|
-
"tag": "ui-editor-table-overlay",
|
|
11739
|
-
"package": "@threadlabs/looma",
|
|
11740
|
-
"root": "div",
|
|
11741
|
-
"description": "Anticipatory table controls for exact-boundary insertion and table actions.",
|
|
11742
|
-
"designTokens": {
|
|
11743
|
-
"sources": [
|
|
11744
|
-
"packages/looma/src/components/ui-editor-table-overlay/ui-editor-table-overlay.html"
|
|
11745
|
-
],
|
|
11746
|
-
"component": [],
|
|
11747
|
-
"shared": [
|
|
11748
|
-
{
|
|
11749
|
-
"name": "--ui-accent-line-width"
|
|
11750
|
-
},
|
|
11751
|
-
{
|
|
11752
|
-
"name": "--ui-accent-solid"
|
|
11753
|
-
},
|
|
11754
|
-
{
|
|
11755
|
-
"name": "--ui-affordance-direct-color",
|
|
11756
|
-
"fallbacks": [
|
|
11757
|
-
"var(--ui-accent-solid)"
|
|
11758
|
-
]
|
|
11759
|
-
},
|
|
11760
|
-
{
|
|
11761
|
-
"name": "--ui-affordance-guide-color",
|
|
11762
|
-
"fallbacks": [
|
|
11763
|
-
"var(--ui-border-strong)"
|
|
11764
|
-
]
|
|
11765
|
-
},
|
|
11766
|
-
{
|
|
11767
|
-
"name": "--ui-affordance-guide-opacity"
|
|
11768
|
-
},
|
|
11769
|
-
{
|
|
11770
|
-
"name": "--ui-affordance-guide-size"
|
|
11771
|
-
},
|
|
11772
|
-
{
|
|
11773
|
-
"name": "--ui-affordance-motion",
|
|
11774
|
-
"fallbacks": [
|
|
11775
|
-
"var(--ui-motion-fast)"
|
|
11776
|
-
]
|
|
11777
|
-
},
|
|
11778
|
-
{
|
|
11779
|
-
"name": "--ui-affordance-near-color",
|
|
11780
|
-
"fallbacks": [
|
|
11781
|
-
"var(--ui-border-strong)",
|
|
11782
|
-
"var(--ui-text-secondary)"
|
|
11783
|
-
]
|
|
11784
|
-
},
|
|
11785
|
-
{
|
|
11786
|
-
"name": "--ui-border-strong"
|
|
11787
|
-
},
|
|
11788
|
-
{
|
|
11789
|
-
"name": "--ui-border-width"
|
|
11790
|
-
},
|
|
11791
|
-
{
|
|
11792
|
-
"name": "--ui-focus-ring"
|
|
11793
|
-
},
|
|
11794
|
-
{
|
|
11795
|
-
"name": "--ui-focus-width"
|
|
11796
|
-
},
|
|
11797
|
-
{
|
|
11798
|
-
"name": "--ui-font-medium"
|
|
11799
|
-
},
|
|
11800
|
-
{
|
|
11801
|
-
"name": "--ui-font-size-xs"
|
|
11802
|
-
},
|
|
11803
|
-
{
|
|
11804
|
-
"name": "--ui-line-height-md"
|
|
11805
|
-
},
|
|
11806
|
-
{
|
|
11807
|
-
"name": "--ui-motion-ease"
|
|
11808
|
-
},
|
|
11809
|
-
{
|
|
11810
|
-
"name": "--ui-motion-fast"
|
|
11811
|
-
},
|
|
11812
|
-
{
|
|
11813
|
-
"name": "--ui-radius-round"
|
|
11814
|
-
},
|
|
11815
|
-
{
|
|
11816
|
-
"name": "--ui-radius-sm"
|
|
11817
|
-
},
|
|
11818
|
-
{
|
|
11819
|
-
"name": "--ui-shadow-sm",
|
|
11820
|
-
"fallbacks": [
|
|
11821
|
-
"0 1px 3px rgb(0 0 0 / 0.1)"
|
|
11822
|
-
]
|
|
11823
|
-
},
|
|
11824
|
-
{
|
|
11825
|
-
"name": "--ui-shadow-xs",
|
|
11826
|
-
"fallbacks": [
|
|
11827
|
-
"0 1px 2px rgb(0 0 0 / 0.05)"
|
|
11828
|
-
]
|
|
11829
|
-
},
|
|
11830
|
-
{
|
|
11831
|
-
"name": "--ui-space-1"
|
|
11832
|
-
},
|
|
11833
|
-
{
|
|
11834
|
-
"name": "--ui-space-2"
|
|
11835
|
-
},
|
|
11836
|
-
{
|
|
11837
|
-
"name": "--ui-surface"
|
|
11838
|
-
},
|
|
11839
|
-
{
|
|
11840
|
-
"name": "--ui-surface-elevated"
|
|
11841
|
-
},
|
|
11842
|
-
{
|
|
11843
|
-
"name": "--ui-surface-muted"
|
|
11844
|
-
},
|
|
11845
|
-
{
|
|
11846
|
-
"name": "--ui-text-on-accent"
|
|
11847
|
-
},
|
|
11848
|
-
{
|
|
11849
|
-
"name": "--ui-text-primary"
|
|
11850
|
-
},
|
|
11851
|
-
{
|
|
11852
|
-
"name": "--ui-text-secondary"
|
|
11853
|
-
}
|
|
11854
|
-
]
|
|
11855
|
-
},
|
|
11856
|
-
"attributes": [
|
|
11857
|
-
{
|
|
11858
|
-
"name": "geometry",
|
|
11859
|
-
"property": "geometry",
|
|
11860
|
-
"description": "The authoritative editor-measured table boundaries and active or hovered cell rectangles.",
|
|
11861
|
-
"type": "object",
|
|
11862
|
-
"fields": [
|
|
11863
|
-
{
|
|
11864
|
-
"path": "rowBoundaries",
|
|
11865
|
-
"type": "list(number)",
|
|
11866
|
-
"required": true
|
|
11867
|
-
},
|
|
11868
|
-
{
|
|
11869
|
-
"path": "columnBoundaries",
|
|
11870
|
-
"type": "list(number)",
|
|
11871
|
-
"required": true
|
|
11872
|
-
},
|
|
11873
|
-
{
|
|
11874
|
-
"path": "activeCell",
|
|
11875
|
-
"type": "object",
|
|
11876
|
-
"required": false
|
|
11877
|
-
},
|
|
11878
|
-
{
|
|
11879
|
-
"path": "activeCell.left",
|
|
11880
|
-
"type": "number",
|
|
11881
|
-
"required": true
|
|
11882
|
-
},
|
|
11883
|
-
{
|
|
11884
|
-
"path": "activeCell.top",
|
|
11885
|
-
"type": "number",
|
|
11886
|
-
"required": true
|
|
11887
|
-
},
|
|
11888
|
-
{
|
|
11889
|
-
"path": "activeCell.width",
|
|
11890
|
-
"type": "number",
|
|
11891
|
-
"required": true
|
|
11892
|
-
},
|
|
11893
|
-
{
|
|
11894
|
-
"path": "activeCell.height",
|
|
11895
|
-
"type": "number",
|
|
11896
|
-
"required": true
|
|
11897
|
-
},
|
|
11898
|
-
{
|
|
11899
|
-
"path": "activeCell.rowIndex",
|
|
11900
|
-
"type": "integer",
|
|
11901
|
-
"required": true
|
|
11902
|
-
},
|
|
11903
|
-
{
|
|
11904
|
-
"path": "activeCell.columnIndex",
|
|
11905
|
-
"type": "integer",
|
|
11906
|
-
"required": true
|
|
11907
|
-
},
|
|
11908
|
-
{
|
|
11909
|
-
"path": "hoveredCell",
|
|
11910
|
-
"type": "object",
|
|
11911
|
-
"required": false
|
|
11912
|
-
},
|
|
11913
|
-
{
|
|
11914
|
-
"path": "hoveredCell.left",
|
|
11915
|
-
"type": "number",
|
|
11916
|
-
"required": true
|
|
11917
|
-
},
|
|
11918
|
-
{
|
|
11919
|
-
"path": "hoveredCell.top",
|
|
11920
|
-
"type": "number",
|
|
11921
|
-
"required": true
|
|
11922
|
-
},
|
|
11923
|
-
{
|
|
11924
|
-
"path": "hoveredCell.width",
|
|
11925
|
-
"type": "number",
|
|
11926
|
-
"required": true
|
|
11927
|
-
},
|
|
11928
|
-
{
|
|
11929
|
-
"path": "hoveredCell.height",
|
|
11930
|
-
"type": "number",
|
|
11931
|
-
"required": true
|
|
11932
|
-
},
|
|
11933
|
-
{
|
|
11934
|
-
"path": "hoveredCell.rowIndex",
|
|
11935
|
-
"type": "integer",
|
|
11936
|
-
"required": true
|
|
11937
|
-
},
|
|
11938
|
-
{
|
|
11939
|
-
"path": "hoveredCell.columnIndex",
|
|
11940
|
-
"type": "integer",
|
|
11941
|
-
"required": true
|
|
11942
|
-
}
|
|
11943
|
-
]
|
|
11944
|
-
},
|
|
11945
|
-
{
|
|
11946
|
-
"name": "open",
|
|
11947
|
-
"property": "open",
|
|
11948
|
-
"description": "Shows the controls after the editor has supplied current geometry.",
|
|
11949
|
-
"type": "boolean",
|
|
11950
|
-
"default": false
|
|
11951
|
-
}
|
|
11952
|
-
],
|
|
11953
|
-
"properties": [
|
|
11954
|
-
{
|
|
11955
|
-
"name": "geometry",
|
|
11956
|
-
"description": "The authoritative editor-measured table boundaries and active or hovered cell rectangles.",
|
|
11957
|
-
"type": "{ readonly rowBoundaries: readonly (number)[]; readonly columnBoundaries: readonly (number)[]; readonly activeCell?: { readonly left: number; readonly top: number; readonly width: number; readonly height: number; readonly rowIndex: number; readonly columnIndex: number } | null; readonly hoveredCell?: { readonly left: number; readonly top: number; readonly width: number; readonly height: number; readonly rowIndex: number; readonly columnIndex: number } | null }",
|
|
11958
|
-
"fields": [
|
|
11959
|
-
{
|
|
11960
|
-
"path": "rowBoundaries",
|
|
11961
|
-
"type": "list(number)",
|
|
11962
|
-
"required": true
|
|
11963
|
-
},
|
|
11964
|
-
{
|
|
11965
|
-
"path": "columnBoundaries",
|
|
11966
|
-
"type": "list(number)",
|
|
11967
|
-
"required": true
|
|
11968
|
-
},
|
|
11969
|
-
{
|
|
11970
|
-
"path": "activeCell",
|
|
11971
|
-
"type": "object",
|
|
11972
|
-
"required": false
|
|
11973
|
-
},
|
|
11974
|
-
{
|
|
11975
|
-
"path": "activeCell.left",
|
|
11976
|
-
"type": "number",
|
|
11977
|
-
"required": true
|
|
11978
|
-
},
|
|
11979
|
-
{
|
|
11980
|
-
"path": "activeCell.top",
|
|
11981
|
-
"type": "number",
|
|
11982
|
-
"required": true
|
|
11983
|
-
},
|
|
11984
|
-
{
|
|
11985
|
-
"path": "activeCell.width",
|
|
11986
|
-
"type": "number",
|
|
11987
|
-
"required": true
|
|
11988
|
-
},
|
|
11989
|
-
{
|
|
11990
|
-
"path": "activeCell.height",
|
|
11991
|
-
"type": "number",
|
|
11992
|
-
"required": true
|
|
11993
|
-
},
|
|
11994
|
-
{
|
|
11995
|
-
"path": "activeCell.rowIndex",
|
|
11996
|
-
"type": "integer",
|
|
11997
|
-
"required": true
|
|
11998
|
-
},
|
|
11999
|
-
{
|
|
12000
|
-
"path": "activeCell.columnIndex",
|
|
12001
|
-
"type": "integer",
|
|
12002
|
-
"required": true
|
|
12003
|
-
},
|
|
12004
|
-
{
|
|
12005
|
-
"path": "hoveredCell",
|
|
12006
|
-
"type": "object",
|
|
12007
|
-
"required": false
|
|
12008
|
-
},
|
|
12009
|
-
{
|
|
12010
|
-
"path": "hoveredCell.left",
|
|
12011
|
-
"type": "number",
|
|
12012
|
-
"required": true
|
|
12013
|
-
},
|
|
12014
|
-
{
|
|
12015
|
-
"path": "hoveredCell.top",
|
|
12016
|
-
"type": "number",
|
|
12017
|
-
"required": true
|
|
12018
|
-
},
|
|
12019
|
-
{
|
|
12020
|
-
"path": "hoveredCell.width",
|
|
12021
|
-
"type": "number",
|
|
12022
|
-
"required": true
|
|
12023
|
-
},
|
|
12024
|
-
{
|
|
12025
|
-
"path": "hoveredCell.height",
|
|
12026
|
-
"type": "number",
|
|
12027
|
-
"required": true
|
|
12028
|
-
},
|
|
12029
|
-
{
|
|
12030
|
-
"path": "hoveredCell.rowIndex",
|
|
12031
|
-
"type": "integer",
|
|
12032
|
-
"required": true
|
|
12033
|
-
},
|
|
12034
|
-
{
|
|
12035
|
-
"path": "hoveredCell.columnIndex",
|
|
12036
|
-
"type": "integer",
|
|
12037
|
-
"required": true
|
|
12038
|
-
}
|
|
12039
|
-
]
|
|
12040
|
-
},
|
|
12041
|
-
{
|
|
12042
|
-
"name": "open",
|
|
12043
|
-
"description": "Shows the controls after the editor has supplied current geometry.",
|
|
12044
|
-
"type": "boolean",
|
|
12045
|
-
"default": false
|
|
12046
|
-
}
|
|
12047
|
-
],
|
|
12048
|
-
"events": [
|
|
12049
|
-
{
|
|
12050
|
-
"name": "add-column-after",
|
|
12051
|
-
"detailType": "{ boundaryIndex: number }",
|
|
12052
|
-
"detailSchema": "object({ boundaryIndex: integer })",
|
|
12053
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
12054
|
-
},
|
|
12055
|
-
{
|
|
12056
|
-
"name": "add-column-before",
|
|
12057
|
-
"detailType": "{ boundaryIndex: number }",
|
|
12058
|
-
"detailSchema": "object({ boundaryIndex: integer })",
|
|
12059
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
12060
|
-
},
|
|
12061
|
-
{
|
|
12062
|
-
"name": "add-row-after",
|
|
12063
|
-
"detailType": "{ boundaryIndex: number }",
|
|
12064
|
-
"detailSchema": "object({ boundaryIndex: integer })",
|
|
12065
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
12066
|
-
},
|
|
12067
|
-
{
|
|
12068
|
-
"name": "add-row-before",
|
|
12069
|
-
"detailType": "{ boundaryIndex: number }",
|
|
12070
|
-
"detailSchema": "object({ boundaryIndex: integer })",
|
|
12071
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
12072
|
-
},
|
|
12073
|
-
{
|
|
12074
|
-
"name": "open-cell-menu",
|
|
12075
|
-
"detailType": "{ rowIndex: number; columnIndex: number; anchor: { left: number; top: number; right: number; bottom: number } }",
|
|
12076
|
-
"detailSchema": "object({ rowIndex: integer, columnIndex: integer, anchor: object({ left: number, top: number, right: number, bottom: number }) })",
|
|
12077
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
12078
|
-
},
|
|
12079
|
-
{
|
|
12080
|
-
"name": "open-column-menu",
|
|
12081
|
-
"detailType": "{ rowIndex: number; columnIndex: number; anchor: { left: number; top: number; right: number; bottom: number } }",
|
|
12082
|
-
"detailSchema": "object({ rowIndex: integer, columnIndex: integer, anchor: object({ left: number, top: number, right: number, bottom: number }) })",
|
|
12083
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
12084
|
-
},
|
|
12085
|
-
{
|
|
12086
|
-
"name": "open-row-menu",
|
|
12087
|
-
"detailType": "{ rowIndex: number; columnIndex: number; anchor: { left: number; top: number; right: number; bottom: number } }",
|
|
12088
|
-
"detailSchema": "object({ rowIndex: integer, columnIndex: integer, anchor: object({ left: number, top: number, right: number, bottom: number }) })",
|
|
12089
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
12090
|
-
},
|
|
12091
|
-
{
|
|
12092
|
-
"name": "reorder-column",
|
|
12093
|
-
"detailType": "{ fromIndex: number; toIndex: number }",
|
|
12094
|
-
"detailSchema": "object({ fromIndex: integer, toIndex: integer })",
|
|
12095
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
12096
|
-
},
|
|
12097
|
-
{
|
|
12098
|
-
"name": "reorder-row",
|
|
12099
|
-
"detailType": "{ fromIndex: number; toIndex: number }",
|
|
12100
|
-
"detailSchema": "object({ fromIndex: integer, toIndex: integer })",
|
|
12101
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
12102
|
-
},
|
|
12103
|
-
{
|
|
12104
|
-
"name": "select-column",
|
|
12105
|
-
"detailType": "{ rowIndex: number; columnIndex: number }",
|
|
12106
|
-
"detailSchema": "object({ rowIndex: integer, columnIndex: integer })",
|
|
12107
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
12108
|
-
},
|
|
12109
|
-
{
|
|
12110
|
-
"name": "select-row",
|
|
12111
|
-
"detailType": "{ rowIndex: number; columnIndex: number }",
|
|
12112
|
-
"detailSchema": "object({ rowIndex: integer, columnIndex: integer })",
|
|
12113
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
12114
|
-
}
|
|
12115
|
-
],
|
|
12116
|
-
"slots": [
|
|
12117
|
-
{
|
|
12118
|
-
"name": "default",
|
|
12119
|
-
"description": "Default child content."
|
|
12120
|
-
}
|
|
12121
|
-
],
|
|
12122
|
-
"title": "Table Overlay",
|
|
12123
|
-
"group": "editor",
|
|
12124
|
-
"id": "@threadlabs/looma/ui-editor-table-overlay",
|
|
12125
|
-
"resource": "@threadlabs/looma/components/ui-editor-table-overlay/ui-editor-table-overlay.html",
|
|
12126
|
-
"targets": [
|
|
12127
|
-
"html-next",
|
|
12128
|
-
"vue"
|
|
12129
|
-
],
|
|
12130
|
-
"examples": [
|
|
12131
|
-
{
|
|
12132
|
-
"id": "@threadlabs/looma/ui-editor-table-overlay/00-preview",
|
|
12133
|
-
"name": "00-preview",
|
|
12134
|
-
"title": "Table edge controls",
|
|
12135
|
-
"description": "A small table with measured row and column boundaries; hover an edge to reveal its insertion action.",
|
|
12136
|
-
"markup": "<ui-editor-table-overlay data-demo-table-controls open><ui-table><table aria-label=\"Example table\">\n <tbody>\n <tr>\n <td>A1</td>\n <td>B1</td>\n </tr>\n <tr>\n <td>A2</td>\n <td>B2</td>\n </tr>\n </tbody>\n </table></ui-table></ui-editor-table-overlay>",
|
|
12137
|
-
"resizable": false,
|
|
12138
|
-
"stretch": true,
|
|
12139
|
-
"bindings": "",
|
|
12140
|
-
"frameworks": {},
|
|
12141
|
-
"behavior": "@threadlabs/looma/docs/examples/ui-editor-table-overlay/examples/00-preview.behavior.js"
|
|
12142
|
-
},
|
|
12143
|
-
{
|
|
12144
|
-
"id": "@threadlabs/looma/ui-editor-table-overlay/01-open-with-geometry",
|
|
12145
|
-
"name": "01-open-with-geometry",
|
|
12146
|
-
"title": "Open with geometry",
|
|
12147
|
-
"description": "Open exposes controls at the row, column, and active-cell coordinates supplied through the geometry property.",
|
|
12148
|
-
"markup": "<div class=\"demo-editor-table-stage\">\n <table aria-label=\"Example table\">\n <tbody>\n <tr>\n <td>A1</td>\n <td>B1</td>\n </tr>\n <tr>\n <td>A2</td>\n <td>B2</td>\n </tr>\n </tbody>\n </table>\n <ui-editor-table-overlay\n id=\"editor-table-overlay-overlay\"\n geometry='{\"rowBoundaries\":[0,48,96],\"columnBoundaries\":[0,120,240],\"activeCell\":{\"left\":0,\"top\":0,\"width\":120,\"height\":48,\"rowIndex\":0,\"columnIndex\":0}}'\n open\n >\n </ui-editor-table-overlay>\n</div>",
|
|
12149
|
-
"resizable": false,
|
|
12150
|
-
"bindings": "geometry=tableGeometry",
|
|
12151
|
-
"frameworks": {}
|
|
12152
|
-
},
|
|
12153
|
-
{
|
|
12154
|
-
"id": "@threadlabs/looma/ui-editor-table-overlay/02-hovered-cell-geometry",
|
|
12155
|
-
"name": "02-hovered-cell-geometry",
|
|
12156
|
-
"title": "Hovered cell geometry",
|
|
12157
|
-
"description": "Adding hoveredCell to the same geometry record exposes row and column selectors for that cell.",
|
|
12158
|
-
"markup": "<div class=\"demo-editor-table-stage demo-editor-table-stage--three\">\n <table aria-label=\"Example table\">\n <tbody>\n <tr>\n <td>A1</td>\n <td>B1</td>\n <td>C1</td>\n </tr>\n <tr>\n <td>A2</td>\n <td>B2</td>\n <td>C2</td>\n </tr>\n <tr>\n <td>A3</td>\n <td>B3</td>\n <td>C3</td>\n </tr>\n </tbody>\n </table>\n <ui-editor-table-overlay\n id=\"three-table-overlay\"\n geometry='{\"rowBoundaries\":[0,40,80,120],\"columnBoundaries\":[0,80,160,240],\"activeCell\":{\"left\":80,\"top\":40,\"width\":80,\"height\":40,\"rowIndex\":1,\"columnIndex\":1},\"hoveredCell\":{\"left\":80,\"top\":40,\"width\":80,\"height\":40,\"rowIndex\":1,\"columnIndex\":1}}'\n open\n >\n </ui-editor-table-overlay>\n</div>",
|
|
12159
|
-
"resizable": false,
|
|
12160
|
-
"bindings": "geometry=tableGeometry",
|
|
12161
|
-
"frameworks": {}
|
|
12162
|
-
}
|
|
12163
|
-
]
|
|
12164
|
-
},
|
|
12165
|
-
{
|
|
12166
|
-
"tag": "ui-editor-table-toolbar",
|
|
12167
|
-
"package": "@threadlabs/looma",
|
|
12168
|
-
"root": "div",
|
|
12169
|
-
"description": "Selection-aware quick toolbar for table alignment and structural actions.",
|
|
12170
|
-
"designTokens": {
|
|
12171
|
-
"sources": [
|
|
12172
|
-
"packages/looma/src/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html"
|
|
12173
|
-
],
|
|
12174
|
-
"component": [],
|
|
12175
|
-
"shared": [
|
|
12176
|
-
{
|
|
12177
|
-
"name": "--ui-accent-soft",
|
|
12178
|
-
"fallbacks": [
|
|
12179
|
-
"var(--ui-accent-subtle)"
|
|
12180
|
-
]
|
|
12181
|
-
},
|
|
12182
|
-
{
|
|
12183
|
-
"name": "--ui-accent-subtle"
|
|
12184
|
-
},
|
|
12185
|
-
{
|
|
12186
|
-
"name": "--ui-accent-subtle-text"
|
|
12187
|
-
},
|
|
12188
|
-
{
|
|
12189
|
-
"name": "--ui-border"
|
|
12190
|
-
},
|
|
12191
|
-
{
|
|
12192
|
-
"name": "--ui-border-divider"
|
|
12193
|
-
},
|
|
12194
|
-
{
|
|
12195
|
-
"name": "--ui-border-strong"
|
|
12196
|
-
},
|
|
12197
|
-
{
|
|
12198
|
-
"name": "--ui-border-width"
|
|
12199
|
-
},
|
|
12200
|
-
{
|
|
12201
|
-
"name": "--ui-danger"
|
|
12202
|
-
},
|
|
12203
|
-
{
|
|
12204
|
-
"name": "--ui-danger-subtle-text"
|
|
12205
|
-
},
|
|
12206
|
-
{
|
|
12207
|
-
"name": "--ui-editor-toolbar-icon-size",
|
|
12208
|
-
"fallbacks": [
|
|
12209
|
-
"1rem"
|
|
12210
|
-
]
|
|
12211
|
-
},
|
|
12212
|
-
{
|
|
12213
|
-
"name": "--ui-editor-toolbar-icon-stroke-width",
|
|
12214
|
-
"fallbacks": [
|
|
12215
|
-
"1.75"
|
|
12216
|
-
]
|
|
12217
|
-
},
|
|
12218
|
-
{
|
|
12219
|
-
"name": "--ui-font-size-2xs"
|
|
12220
|
-
},
|
|
12221
|
-
{
|
|
12222
|
-
"name": "--ui-font-size-sm"
|
|
12223
|
-
},
|
|
12224
|
-
{
|
|
12225
|
-
"name": "--ui-radius-md"
|
|
12226
|
-
},
|
|
12227
|
-
{
|
|
12228
|
-
"name": "--ui-radius-round"
|
|
12229
|
-
},
|
|
12230
|
-
{
|
|
12231
|
-
"name": "--ui-radius-sm"
|
|
12232
|
-
},
|
|
12233
|
-
{
|
|
12234
|
-
"name": "--ui-shadow-lg",
|
|
12235
|
-
"fallbacks": [
|
|
12236
|
-
"0 10px 15px -3px rgb(0 0 0 / 0.1)"
|
|
12237
|
-
]
|
|
12238
|
-
},
|
|
12239
|
-
{
|
|
12240
|
-
"name": "--ui-space-1"
|
|
12241
|
-
},
|
|
12242
|
-
{
|
|
12243
|
-
"name": "--ui-space-2"
|
|
12244
|
-
},
|
|
12245
|
-
{
|
|
12246
|
-
"name": "--ui-surface"
|
|
12247
|
-
},
|
|
12248
|
-
{
|
|
12249
|
-
"name": "--ui-surface-hover"
|
|
12250
|
-
},
|
|
12251
|
-
{
|
|
12252
|
-
"name": "--ui-text-muted"
|
|
12253
|
-
},
|
|
12254
|
-
{
|
|
12255
|
-
"name": "--ui-text-primary"
|
|
12256
|
-
}
|
|
12257
|
-
]
|
|
12258
|
-
},
|
|
12259
|
-
"attributes": [
|
|
12260
|
-
{
|
|
12261
|
-
"name": "actions",
|
|
12262
|
-
"property": "actions",
|
|
12263
|
-
"description": "The complete set of commands the current selection permits.",
|
|
12264
|
-
"type": "list(keyword)"
|
|
12265
|
-
},
|
|
12266
|
-
{
|
|
12267
|
-
"name": "cell-alignment",
|
|
12268
|
-
"property": "cellAlignment",
|
|
12269
|
-
"description": "Marks the alignment command that is active for the current cell.",
|
|
12270
|
-
"type": "keyword",
|
|
12271
|
-
"default": "left",
|
|
12272
|
-
"options": [
|
|
12273
|
-
"left",
|
|
12274
|
-
"center",
|
|
12275
|
-
"right"
|
|
12276
|
-
]
|
|
12277
|
-
},
|
|
12278
|
-
{
|
|
12279
|
-
"name": "cell-background",
|
|
12280
|
-
"property": "cellBackground",
|
|
12281
|
-
"description": "Identifies the background choice that is active for the current cell.",
|
|
12282
|
-
"type": "string",
|
|
12283
|
-
"default": ""
|
|
12284
|
-
},
|
|
12285
|
-
{
|
|
12286
|
-
"name": "header-column",
|
|
12287
|
-
"property": "headerColumn",
|
|
12288
|
-
"description": "Whether the table's first column currently uses header cells.",
|
|
12289
|
-
"type": "boolean",
|
|
12290
|
-
"default": false
|
|
12291
|
-
},
|
|
12292
|
-
{
|
|
12293
|
-
"name": "header-row",
|
|
12294
|
-
"property": "headerRow",
|
|
12295
|
-
"description": "Whether the table's first row currently uses header cells.",
|
|
12296
|
-
"type": "boolean",
|
|
12297
|
-
"default": false
|
|
12298
|
-
},
|
|
12299
|
-
{
|
|
12300
|
-
"name": "open",
|
|
12301
|
-
"property": "open",
|
|
12302
|
-
"description": "Shows the toolbar while a table selection is active.",
|
|
12303
|
-
"type": "boolean",
|
|
12304
|
-
"default": false
|
|
12305
|
-
}
|
|
12306
|
-
],
|
|
12307
|
-
"properties": [
|
|
12308
|
-
{
|
|
12309
|
-
"name": "actions",
|
|
12310
|
-
"description": "The complete set of commands the current selection permits.",
|
|
12311
|
-
"type": "readonly (\"align-left\" | \"align-center\" | \"align-right\" | \"background-none\" | \"background-gray\" | \"background-yellow\" | \"background-blue\" | \"background-green\" | \"background-red\" | \"add-row-before\" | \"add-row-after\" | \"add-column-before\" | \"add-column-after\" | \"toggle-header-row\" | \"toggle-header-column\" | \"move-row-up\" | \"move-row-down\" | \"move-column-left\" | \"move-column-right\" | \"clear-cells\" | \"merge-cells\" | \"split-cell\" | \"delete-row\" | \"delete-column\" | \"delete-table\")[]"
|
|
12312
|
-
},
|
|
12313
|
-
{
|
|
12314
|
-
"name": "cellAlignment",
|
|
12315
|
-
"description": "Marks the alignment command that is active for the current cell.",
|
|
12316
|
-
"type": "\"left\" | \"center\" | \"right\"",
|
|
12317
|
-
"default": "left",
|
|
12318
|
-
"options": [
|
|
12319
|
-
"left",
|
|
12320
|
-
"center",
|
|
12321
|
-
"right"
|
|
12322
|
-
]
|
|
12323
|
-
},
|
|
12324
|
-
{
|
|
12325
|
-
"name": "cellBackground",
|
|
12326
|
-
"description": "Identifies the background choice that is active for the current cell.",
|
|
12327
|
-
"type": "string",
|
|
12328
|
-
"default": ""
|
|
12329
|
-
},
|
|
12330
|
-
{
|
|
12331
|
-
"name": "headerColumn",
|
|
12332
|
-
"description": "Whether the table's first column currently uses header cells.",
|
|
12333
|
-
"type": "boolean",
|
|
12334
|
-
"default": false
|
|
12335
|
-
},
|
|
12336
|
-
{
|
|
12337
|
-
"name": "headerRow",
|
|
12338
|
-
"description": "Whether the table's first row currently uses header cells.",
|
|
12339
|
-
"type": "boolean",
|
|
12340
|
-
"default": false
|
|
12341
|
-
},
|
|
12342
|
-
{
|
|
12343
|
-
"name": "open",
|
|
12344
|
-
"description": "Shows the toolbar while a table selection is active.",
|
|
12345
|
-
"type": "boolean",
|
|
12346
|
-
"default": false
|
|
12347
|
-
}
|
|
12348
|
-
],
|
|
12349
|
-
"events": [
|
|
12350
|
-
{
|
|
12351
|
-
"name": "action",
|
|
12352
|
-
"detailType": "{ readonly action: \"align-left\" | \"align-center\" | \"align-right\" | \"background-none\" | \"background-gray\" | \"background-yellow\" | \"background-blue\" | \"background-green\" | \"background-red\" | \"add-row-before\" | \"add-row-after\" | \"add-column-before\" | \"add-column-after\" | \"toggle-header-row\" | \"toggle-header-column\" | \"move-row-up\" | \"move-row-down\" | \"move-column-left\" | \"move-column-right\" | \"clear-cells\" | \"merge-cells\" | \"split-cell\" | \"delete-row\" | \"delete-column\" | \"delete-table\" }",
|
|
12353
|
-
"detailSchema": "object",
|
|
12354
|
-
"fields": [
|
|
12355
|
-
{
|
|
12356
|
-
"path": "action",
|
|
12357
|
-
"type": "keyword",
|
|
12358
|
-
"required": true,
|
|
12359
|
-
"values": [
|
|
12360
|
-
"align-left",
|
|
12361
|
-
"align-center",
|
|
12362
|
-
"align-right",
|
|
12363
|
-
"background-none",
|
|
12364
|
-
"background-gray",
|
|
12365
|
-
"background-yellow",
|
|
12366
|
-
"background-blue",
|
|
12367
|
-
"background-green",
|
|
12368
|
-
"background-red",
|
|
12369
|
-
"add-row-before",
|
|
12370
|
-
"add-row-after",
|
|
12371
|
-
"add-column-before",
|
|
12372
|
-
"add-column-after",
|
|
12373
|
-
"toggle-header-row",
|
|
12374
|
-
"toggle-header-column",
|
|
12375
|
-
"move-row-up",
|
|
12376
|
-
"move-row-down",
|
|
12377
|
-
"move-column-left",
|
|
12378
|
-
"move-column-right",
|
|
12379
|
-
"clear-cells",
|
|
12380
|
-
"merge-cells",
|
|
12381
|
-
"split-cell",
|
|
12382
|
-
"delete-row",
|
|
12383
|
-
"delete-column",
|
|
12384
|
-
"delete-table"
|
|
12385
|
-
]
|
|
12386
|
-
}
|
|
12387
|
-
],
|
|
12388
|
-
"detailDocs": "Emitted with the declared detail payload."
|
|
12389
|
-
}
|
|
12390
|
-
],
|
|
12391
|
-
"slots": [],
|
|
12392
|
-
"title": "Table Toolbar",
|
|
12393
|
-
"group": "editor",
|
|
12394
|
-
"id": "@threadlabs/looma/ui-editor-table-toolbar",
|
|
12395
|
-
"resource": "@threadlabs/looma/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html",
|
|
12396
|
-
"targets": [
|
|
12397
|
-
"html-next",
|
|
12398
|
-
"vue"
|
|
12399
|
-
],
|
|
12400
|
-
"examples": [
|
|
12401
|
-
{
|
|
12402
|
-
"id": "@threadlabs/looma/ui-editor-table-toolbar/01-open",
|
|
12403
|
-
"name": "01-open",
|
|
12404
|
-
"title": "Open",
|
|
12405
|
-
"description": "The open property exposes the available table controls.",
|
|
12406
|
-
"markup": "<ui-editor-table-toolbar id=\"table-toolbar\" actions='[\"add-row-after\",\"add-column-after\"]' open> </ui-editor-table-toolbar>",
|
|
12407
|
-
"resizable": false,
|
|
12408
|
-
"bindings": "actions=tableActionsBasic",
|
|
12409
|
-
"frameworks": {}
|
|
12410
|
-
},
|
|
12411
|
-
{
|
|
12412
|
-
"id": "@threadlabs/looma/ui-editor-table-toolbar/02-actions",
|
|
12413
|
-
"name": "02-actions",
|
|
12414
|
-
"title": "Actions",
|
|
12415
|
-
"description": "Cell-alignment marks the active command while actions contains the exact commands supported by the selection.",
|
|
12416
|
-
"markup": "<ui-editor-table-toolbar\n id=\"toolbar-actions\"\n actions='[\"align-left\",\"align-center\",\"align-right\",\"background-none\",\"background-yellow\",\"add-row-before\",\"add-row-after\",\"add-column-before\",\"add-column-after\",\"toggle-header-row\",\"toggle-header-column\",\"move-row-down\",\"move-column-right\",\"merge-cells\",\"delete-table\"]'\n open\n cell-alignment=\"center\"\n cell-background=\"#fef3c7\"\n header-row\n>\n</ui-editor-table-toolbar>",
|
|
12417
|
-
"resizable": false,
|
|
12418
|
-
"bindings": "actions=tableActions",
|
|
12419
|
-
"frameworks": {}
|
|
12420
|
-
}
|
|
12421
|
-
]
|
|
12422
|
-
},
|
|
12423
|
-
{
|
|
12424
|
-
"tag": "ui-editor-toolbar",
|
|
12425
|
-
"package": "@threadlabs/looma",
|
|
12426
|
-
"root": "div",
|
|
12427
|
-
"description": "Semantic, slot-based toolbar frame for app-owned editor command controls. It keeps its controls on one row that scrolls sideways when space runs out, fading each edge that hides controls with the fade every Looma scroller uses (see [Scroll Area](/components/ui-scroll-area)); `--ui-editor-toolbar-fade-size` sets the fade's width.",
|
|
12428
|
-
"designTokens": {
|
|
12429
|
-
"sources": [
|
|
12430
|
-
"packages/looma/src/components/ui-editor-toolbar/ui-editor-toolbar.html"
|
|
12431
|
-
],
|
|
12432
|
-
"component": [
|
|
12433
|
-
{
|
|
12434
|
-
"name": "--ui-editor-toolbar-border",
|
|
12435
|
-
"fallbacks": [
|
|
12436
|
-
"var(--ui-border-divider)",
|
|
12437
|
-
"var(--ui-border-strong)"
|
|
12438
|
-
]
|
|
12439
|
-
},
|
|
12440
|
-
{
|
|
12441
|
-
"name": "--ui-editor-toolbar-divider",
|
|
12442
|
-
"fallbacks": [
|
|
12443
|
-
"var(--ui-border-divider)"
|
|
12444
|
-
]
|
|
12445
|
-
},
|
|
12446
|
-
{
|
|
12447
|
-
"name": "--ui-editor-toolbar-divider-margin",
|
|
12448
|
-
"fallbacks": [
|
|
12449
|
-
"4px"
|
|
12450
|
-
]
|
|
12451
|
-
},
|
|
12452
|
-
{
|
|
12453
|
-
"name": "--ui-editor-toolbar-fade-size",
|
|
12454
|
-
"fallbacks": [
|
|
12455
|
-
"var(--ui-scroll-fade-size, 24px)"
|
|
12456
|
-
]
|
|
12457
|
-
},
|
|
12458
|
-
{
|
|
12459
|
-
"name": "--ui-editor-toolbar-floating-padding",
|
|
12460
|
-
"fallbacks": [
|
|
12461
|
-
"4px"
|
|
12462
|
-
]
|
|
12463
|
-
},
|
|
12464
|
-
{
|
|
12465
|
-
"name": "--ui-editor-toolbar-floating-radius",
|
|
12466
|
-
"fallbacks": [
|
|
12467
|
-
"var(--ui-radius-lg)"
|
|
12468
|
-
]
|
|
12469
|
-
},
|
|
12470
|
-
{
|
|
12471
|
-
"name": "--ui-editor-toolbar-floating-shadow",
|
|
12472
|
-
"fallbacks": [
|
|
12473
|
-
"var(--ui-shadow-lg, 0 10px 24px rgb(0 0 0 / 0.12))"
|
|
12474
|
-
]
|
|
12475
|
-
},
|
|
12476
|
-
{
|
|
12477
|
-
"name": "--ui-editor-toolbar-gap",
|
|
12478
|
-
"fallbacks": [
|
|
12479
|
-
"2px"
|
|
12480
|
-
]
|
|
12481
|
-
},
|
|
12482
|
-
{
|
|
12483
|
-
"name": "--ui-editor-toolbar-min-height",
|
|
12484
|
-
"fallbacks": [
|
|
12485
|
-
"48px"
|
|
12486
|
-
]
|
|
12487
|
-
},
|
|
12488
|
-
{
|
|
12489
|
-
"name": "--ui-editor-toolbar-mobile-min-height",
|
|
12490
|
-
"fallbacks": [
|
|
12491
|
-
"56px"
|
|
12492
|
-
]
|
|
12493
|
-
},
|
|
12494
|
-
{
|
|
12495
|
-
"name": "--ui-editor-toolbar-mobile-shadow",
|
|
12496
|
-
"fallbacks": [
|
|
12497
|
-
"0 -2px 8px rgb(0 0 0 / 0.06)"
|
|
12498
|
-
]
|
|
12499
|
-
},
|
|
12500
|
-
{
|
|
12501
|
-
"name": "--ui-editor-toolbar-padding-block",
|
|
12502
|
-
"fallbacks": [
|
|
12503
|
-
"6px"
|
|
12504
|
-
]
|
|
12505
|
-
},
|
|
12506
|
-
{
|
|
12507
|
-
"name": "--ui-editor-toolbar-padding-inline",
|
|
12508
|
-
"fallbacks": [
|
|
12509
|
-
"12px"
|
|
12510
|
-
]
|
|
12511
|
-
},
|
|
12512
|
-
{
|
|
12513
|
-
"name": "--ui-editor-toolbar-surface",
|
|
12514
|
-
"fallbacks": [
|
|
12515
|
-
"var(--ui-surface)"
|
|
12516
|
-
]
|
|
12517
|
-
},
|
|
12518
|
-
{
|
|
12519
|
-
"name": "--ui-editor-toolbar-z-index",
|
|
12520
|
-
"fallbacks": [
|
|
12521
|
-
"10"
|
|
12522
|
-
]
|
|
12523
|
-
}
|
|
12524
|
-
],
|
|
12525
|
-
"shared": [
|
|
12526
|
-
{
|
|
12527
|
-
"name": "--ui-border-divider"
|
|
12528
|
-
},
|
|
12529
|
-
{
|
|
12530
|
-
"name": "--ui-border-strong"
|
|
12531
|
-
},
|
|
12532
|
-
{
|
|
12533
|
-
"name": "--ui-border-width"
|
|
12534
|
-
},
|
|
12535
|
-
{
|
|
12536
|
-
"name": "--ui-radius-lg"
|
|
12537
|
-
},
|
|
12538
|
-
{
|
|
12539
|
-
"name": "--ui-scroll-fade-size",
|
|
12540
|
-
"fallbacks": [
|
|
12541
|
-
"24px"
|
|
12542
|
-
]
|
|
12543
|
-
},
|
|
12544
|
-
{
|
|
12545
|
-
"name": "--ui-shadow-lg",
|
|
12546
|
-
"fallbacks": [
|
|
12547
|
-
"0 10px 24px rgb(0 0 0 / 0.12)"
|
|
12548
|
-
]
|
|
12549
|
-
},
|
|
12550
|
-
{
|
|
12551
|
-
"name": "--ui-surface"
|
|
12552
|
-
}
|
|
12553
|
-
]
|
|
12554
|
-
},
|
|
12555
|
-
"attributes": [
|
|
12556
|
-
{
|
|
12557
|
-
"name": "floating",
|
|
12558
|
-
"property": "floating",
|
|
12559
|
-
"description": "Shows the toolbar as a floating bar beside the selection rather than pinned to the editor.",
|
|
12560
|
-
"type": "boolean",
|
|
12561
|
-
"default": false
|
|
12562
|
-
}
|
|
12563
|
-
],
|
|
12564
|
-
"properties": [
|
|
9071
|
+
"detailSchema": "object",
|
|
9072
|
+
"fields": [
|
|
9073
|
+
{
|
|
9074
|
+
"path": "value",
|
|
9075
|
+
"type": "string",
|
|
9076
|
+
"required": true
|
|
9077
|
+
},
|
|
9078
|
+
{
|
|
9079
|
+
"path": "previousValue",
|
|
9080
|
+
"type": "string",
|
|
9081
|
+
"required": true
|
|
9082
|
+
},
|
|
9083
|
+
{
|
|
9084
|
+
"path": "trigger",
|
|
9085
|
+
"type": "keyword",
|
|
9086
|
+
"required": true,
|
|
9087
|
+
"values": [
|
|
9088
|
+
"keyboard",
|
|
9089
|
+
"pointer",
|
|
9090
|
+
"programmatic"
|
|
9091
|
+
]
|
|
9092
|
+
}
|
|
9093
|
+
],
|
|
9094
|
+
"detailDocs": "Emitted when a toggleable control changes checked state."
|
|
9095
|
+
},
|
|
12565
9096
|
{
|
|
12566
|
-
"name": "
|
|
12567
|
-
"
|
|
12568
|
-
"
|
|
12569
|
-
"
|
|
12570
|
-
|
|
12571
|
-
|
|
12572
|
-
|
|
12573
|
-
|
|
9097
|
+
"name": "edit-change",
|
|
9098
|
+
"detailType": "{ readonly edit: boolean; readonly reason: \"activate\" | \"commit\" | \"cancel\" | \"light-dismiss\" | \"escape\" | \"programmatic\"; readonly trigger: \"keyboard\" | \"pointer\" | \"programmatic\" }",
|
|
9099
|
+
"detailSchema": "object",
|
|
9100
|
+
"fields": [
|
|
9101
|
+
{
|
|
9102
|
+
"path": "edit",
|
|
9103
|
+
"type": "boolean",
|
|
9104
|
+
"required": true
|
|
9105
|
+
},
|
|
9106
|
+
{
|
|
9107
|
+
"path": "reason",
|
|
9108
|
+
"type": "keyword",
|
|
9109
|
+
"required": true,
|
|
9110
|
+
"values": [
|
|
9111
|
+
"activate",
|
|
9112
|
+
"commit",
|
|
9113
|
+
"cancel",
|
|
9114
|
+
"light-dismiss",
|
|
9115
|
+
"escape",
|
|
9116
|
+
"programmatic"
|
|
9117
|
+
]
|
|
9118
|
+
},
|
|
9119
|
+
{
|
|
9120
|
+
"path": "trigger",
|
|
9121
|
+
"type": "keyword",
|
|
9122
|
+
"required": true,
|
|
9123
|
+
"values": [
|
|
9124
|
+
"keyboard",
|
|
9125
|
+
"pointer",
|
|
9126
|
+
"programmatic"
|
|
9127
|
+
]
|
|
9128
|
+
}
|
|
9129
|
+
],
|
|
9130
|
+
"detailDocs": "Emitted with the declared detail payload."
|
|
9131
|
+
},
|
|
12574
9132
|
{
|
|
12575
|
-
"name": "
|
|
12576
|
-
"
|
|
9133
|
+
"name": "input",
|
|
9134
|
+
"detailType": "{ readonly value: string; readonly trigger: \"keyboard\" | \"pointer\" | \"programmatic\" }",
|
|
9135
|
+
"detailSchema": "object",
|
|
9136
|
+
"fields": [
|
|
9137
|
+
{
|
|
9138
|
+
"path": "value",
|
|
9139
|
+
"type": "string",
|
|
9140
|
+
"required": true
|
|
9141
|
+
},
|
|
9142
|
+
{
|
|
9143
|
+
"path": "trigger",
|
|
9144
|
+
"type": "keyword",
|
|
9145
|
+
"required": true,
|
|
9146
|
+
"values": [
|
|
9147
|
+
"keyboard",
|
|
9148
|
+
"pointer",
|
|
9149
|
+
"programmatic"
|
|
9150
|
+
]
|
|
9151
|
+
}
|
|
9152
|
+
],
|
|
9153
|
+
"detailDocs": "Emitted with the declared detail payload."
|
|
12577
9154
|
}
|
|
12578
9155
|
],
|
|
12579
|
-
"
|
|
12580
|
-
"
|
|
12581
|
-
"
|
|
12582
|
-
"
|
|
12583
|
-
"resource": "@threadlabs/looma/components/ui-
|
|
9156
|
+
"slots": [],
|
|
9157
|
+
"group": "forms",
|
|
9158
|
+
"id": "@threadlabs/looma/ui-editable",
|
|
9159
|
+
"title": "Editable",
|
|
9160
|
+
"resource": "@threadlabs/looma/components/ui-editable/ui-editable.html",
|
|
12584
9161
|
"targets": [
|
|
12585
9162
|
"html-next",
|
|
12586
9163
|
"vue"
|
|
12587
9164
|
],
|
|
12588
9165
|
"examples": [
|
|
12589
9166
|
{
|
|
12590
|
-
"id": "@threadlabs/looma/ui-
|
|
9167
|
+
"id": "@threadlabs/looma/ui-editable/01-default",
|
|
12591
9168
|
"name": "01-default",
|
|
12592
9169
|
"title": "Default",
|
|
12593
|
-
"description": "
|
|
12594
|
-
"markup": "<ui-
|
|
9170
|
+
"description": "Click the text (or focus it and press Enter) to edit it in place. Enter or clicking away saves; Escape cancels. The control keeps the same size in both states.",
|
|
9171
|
+
"markup": "<ui-editable value=\"Editable text\" label=\"Project title\"> </ui-editable>",
|
|
12595
9172
|
"resizable": false,
|
|
12596
9173
|
"bindings": "",
|
|
12597
9174
|
"frameworks": {}
|
|
12598
9175
|
},
|
|
12599
9176
|
{
|
|
12600
|
-
"id": "@threadlabs/looma/ui-
|
|
12601
|
-
"name": "02-
|
|
12602
|
-
"title": "
|
|
12603
|
-
"description": "
|
|
12604
|
-
"markup": "<ui-
|
|
9177
|
+
"id": "@threadlabs/looma/ui-editable/02-hint-rename",
|
|
9178
|
+
"name": "02-hint-rename",
|
|
9179
|
+
"title": "hint=\"Rename\"",
|
|
9180
|
+
"description": "Hint adds visible text beside the value to signal that it can be edited. Nothing is shown unless you ask for it.",
|
|
9181
|
+
"markup": "<ui-editable value=\"Quarterly roadmap\" label=\"Document title\" hint=\"Rename\"> </ui-editable>",
|
|
12605
9182
|
"resizable": false,
|
|
12606
9183
|
"bindings": "",
|
|
12607
9184
|
"frameworks": {}
|
|
12608
9185
|
},
|
|
12609
9186
|
{
|
|
12610
|
-
"id": "@threadlabs/looma/ui-
|
|
12611
|
-
"name": "03-
|
|
12612
|
-
"title": "
|
|
12613
|
-
"description": "
|
|
12614
|
-
"markup": "<
|
|
9187
|
+
"id": "@threadlabs/looma/ui-editable/03-actions",
|
|
9188
|
+
"name": "03-actions",
|
|
9189
|
+
"title": "actions",
|
|
9190
|
+
"description": "Actions shows explicit Save and Cancel buttons while editing, for cases where an implicit save on Enter or blur is not enough.",
|
|
9191
|
+
"markup": "<ui-editable value=\"Quarterly roadmap\" label=\"Document title\" actions> </ui-editable>",
|
|
9192
|
+
"resizable": false,
|
|
9193
|
+
"bindings": "",
|
|
9194
|
+
"frameworks": {}
|
|
9195
|
+
},
|
|
9196
|
+
{
|
|
9197
|
+
"id": "@threadlabs/looma/ui-editable/04-edit-and-disabled",
|
|
9198
|
+
"name": "04-edit-and-disabled",
|
|
9199
|
+
"title": "edit and disabled",
|
|
9200
|
+
"description": "Edit starts in edit mode; disabled prevents entering it.",
|
|
9201
|
+
"markup": "<ui-stack gap=\"s\" align=\"start\">\n <ui-editable value=\"Editing now\" label=\"Title\" edit> </ui-editable>\n <ui-editable value=\"Locked title\" label=\"Locked title\" disabled> </ui-editable>\n</ui-stack>",
|
|
9202
|
+
"resizable": false,
|
|
9203
|
+
"bindings": "",
|
|
9204
|
+
"frameworks": {}
|
|
9205
|
+
},
|
|
9206
|
+
{
|
|
9207
|
+
"id": "@threadlabs/looma/ui-editable/05-constraints",
|
|
9208
|
+
"name": "05-constraints",
|
|
9209
|
+
"title": "Required short text",
|
|
9210
|
+
"description": "Native required and maximum-length constraints keep an invalid draft open. Action labels and the empty placeholder can match the field.",
|
|
9211
|
+
"markup": "<ui-editable\n label=\"Short name\"\n value=\"Untitled\"\n actions\n required\n max-length=\"24\"\n placeholder=\"Enter a short name\"\n save-label=\"Apply\"\n cancel-label=\"Discard\"\n></ui-editable>",
|
|
12615
9212
|
"resizable": false,
|
|
12616
9213
|
"bindings": "",
|
|
12617
9214
|
"frameworks": {}
|
|
@@ -13027,7 +9624,15 @@
|
|
|
13027
9624
|
"var(--ui-success-border, var(--ui-success))",
|
|
13028
9625
|
"var(--ui-warning-border, var(--ui-warning))",
|
|
13029
9626
|
"var(--ui-info-border, var(--ui-info))",
|
|
13030
|
-
"var(--ui-control-border, var(--ui-neutral-surface))"
|
|
9627
|
+
"var(--ui-control-border, var(--ui-neutral-surface))",
|
|
9628
|
+
"var(--ui-accent-outline-border, var(--ui-accent-subtle-text))",
|
|
9629
|
+
"var(--ui-accent-secondary-outline-border, var(--ui-accent-secondary-subtle-text))",
|
|
9630
|
+
"var(--ui-accent-tertiary-outline-border, var(--ui-accent-tertiary-subtle-text))",
|
|
9631
|
+
"var(--ui-danger-outline-border, var(--ui-danger-subtle-text))",
|
|
9632
|
+
"var(--ui-success-outline-border, var(--ui-success-subtle-text))",
|
|
9633
|
+
"var(--ui-warning-outline-border, var(--ui-warning-subtle-text))",
|
|
9634
|
+
"var(--ui-info-outline-border, var(--ui-info-subtle-text))",
|
|
9635
|
+
"var(--ui-control-border)"
|
|
13031
9636
|
],
|
|
13032
9637
|
"fallbacks": [
|
|
13033
9638
|
"var(--_icon-button-border, var(--ui-control-border, var(--ui-border-strong)))",
|
|
@@ -13059,6 +9664,7 @@
|
|
|
13059
9664
|
"var(--ui-control-border-hover, var(--ui-neutral-hover))"
|
|
13060
9665
|
],
|
|
13061
9666
|
"fallbacks": [
|
|
9667
|
+
"color-mix(in srgb, var(--_icon-button-text, var(--ui-accent-subtle-text)) 35%, var(--_tone-outline-border))",
|
|
13062
9668
|
"var(--_icon-button-hover-border, var(--ui-control-border-hover, var(--ui-control-border)))"
|
|
13063
9669
|
]
|
|
13064
9670
|
},
|
|
@@ -13066,6 +9672,7 @@
|
|
|
13066
9672
|
"name": "--ui-icon-button-hover-surface",
|
|
13067
9673
|
"fallbacks": [
|
|
13068
9674
|
"color-mix(in srgb, currentColor 8%, transparent)",
|
|
9675
|
+
"transparent",
|
|
13069
9676
|
"var(--ui-neutral-hover)"
|
|
13070
9677
|
]
|
|
13071
9678
|
},
|
|
@@ -13092,7 +9699,8 @@
|
|
|
13092
9699
|
{
|
|
13093
9700
|
"name": "--ui-icon-button-outline-surface",
|
|
13094
9701
|
"fallbacks": [
|
|
13095
|
-
"var(--_icon-button-outline-surface, var(--ui-surface-default))"
|
|
9702
|
+
"var(--_icon-button-outline-surface, var(--ui-surface-default))",
|
|
9703
|
+
"var(--_icon-button-outline-surface, transparent)"
|
|
13096
9704
|
]
|
|
13097
9705
|
},
|
|
13098
9706
|
{
|
|
@@ -13148,6 +9756,28 @@
|
|
|
13148
9756
|
"fallbacks": [
|
|
13149
9757
|
"transparent"
|
|
13150
9758
|
]
|
|
9759
|
+
},
|
|
9760
|
+
{
|
|
9761
|
+
"name": "--ui-icon-button-text",
|
|
9762
|
+
"fallbacks": [
|
|
9763
|
+
"var(--_icon-button-text, var(--ui-accent-subtle-text))"
|
|
9764
|
+
]
|
|
9765
|
+
},
|
|
9766
|
+
{
|
|
9767
|
+
"name": "--ui-neutral-highlight",
|
|
9768
|
+
"declarations": [
|
|
9769
|
+
"var(--ui-accent-highlight, none)",
|
|
9770
|
+
"var(--ui-accent-secondary-highlight, none)",
|
|
9771
|
+
"var(--ui-accent-tertiary-highlight, none)",
|
|
9772
|
+
"var(--ui-danger-highlight, none)",
|
|
9773
|
+
"var(--ui-success-highlight, none)",
|
|
9774
|
+
"var(--ui-warning-highlight, none)",
|
|
9775
|
+
"var(--ui-info-highlight, none)",
|
|
9776
|
+
"var(--ui-neutral-highlight, none)"
|
|
9777
|
+
],
|
|
9778
|
+
"fallbacks": [
|
|
9779
|
+
"none"
|
|
9780
|
+
]
|
|
13151
9781
|
}
|
|
13152
9782
|
],
|
|
13153
9783
|
"shared": [
|
|
@@ -13194,6 +9824,18 @@
|
|
|
13194
9824
|
"var(--ui-accent-hover)"
|
|
13195
9825
|
]
|
|
13196
9826
|
},
|
|
9827
|
+
{
|
|
9828
|
+
"name": "--ui-accent-hover-highlight",
|
|
9829
|
+
"fallbacks": [
|
|
9830
|
+
"none"
|
|
9831
|
+
]
|
|
9832
|
+
},
|
|
9833
|
+
{
|
|
9834
|
+
"name": "--ui-accent-outline-border",
|
|
9835
|
+
"fallbacks": [
|
|
9836
|
+
"var(--ui-accent-subtle-text)"
|
|
9837
|
+
]
|
|
9838
|
+
},
|
|
13197
9839
|
{
|
|
13198
9840
|
"name": "--ui-accent-secondary"
|
|
13199
9841
|
},
|
|
@@ -13236,6 +9878,18 @@
|
|
|
13236
9878
|
"var(--ui-accent-secondary-hover)"
|
|
13237
9879
|
]
|
|
13238
9880
|
},
|
|
9881
|
+
{
|
|
9882
|
+
"name": "--ui-accent-secondary-hover-highlight",
|
|
9883
|
+
"fallbacks": [
|
|
9884
|
+
"none"
|
|
9885
|
+
]
|
|
9886
|
+
},
|
|
9887
|
+
{
|
|
9888
|
+
"name": "--ui-accent-secondary-outline-border",
|
|
9889
|
+
"fallbacks": [
|
|
9890
|
+
"var(--ui-accent-secondary-subtle-text)"
|
|
9891
|
+
]
|
|
9892
|
+
},
|
|
13239
9893
|
{
|
|
13240
9894
|
"name": "--ui-accent-secondary-solid"
|
|
13241
9895
|
},
|
|
@@ -13296,6 +9950,18 @@
|
|
|
13296
9950
|
"var(--ui-accent-tertiary-hover)"
|
|
13297
9951
|
]
|
|
13298
9952
|
},
|
|
9953
|
+
{
|
|
9954
|
+
"name": "--ui-accent-tertiary-hover-highlight",
|
|
9955
|
+
"fallbacks": [
|
|
9956
|
+
"none"
|
|
9957
|
+
]
|
|
9958
|
+
},
|
|
9959
|
+
{
|
|
9960
|
+
"name": "--ui-accent-tertiary-outline-border",
|
|
9961
|
+
"fallbacks": [
|
|
9962
|
+
"var(--ui-accent-tertiary-subtle-text)"
|
|
9963
|
+
]
|
|
9964
|
+
},
|
|
13299
9965
|
{
|
|
13300
9966
|
"name": "--ui-accent-tertiary-solid"
|
|
13301
9967
|
},
|
|
@@ -13410,9 +10076,21 @@
|
|
|
13410
10076
|
"var(--ui-danger-hover)"
|
|
13411
10077
|
]
|
|
13412
10078
|
},
|
|
10079
|
+
{
|
|
10080
|
+
"name": "--ui-danger-hover-highlight",
|
|
10081
|
+
"fallbacks": [
|
|
10082
|
+
"none"
|
|
10083
|
+
]
|
|
10084
|
+
},
|
|
13413
10085
|
{
|
|
13414
10086
|
"name": "--ui-danger-on-strong"
|
|
13415
10087
|
},
|
|
10088
|
+
{
|
|
10089
|
+
"name": "--ui-danger-outline-border",
|
|
10090
|
+
"fallbacks": [
|
|
10091
|
+
"var(--ui-danger-subtle-text)"
|
|
10092
|
+
]
|
|
10093
|
+
},
|
|
13416
10094
|
{
|
|
13417
10095
|
"name": "--ui-danger-subtle-text"
|
|
13418
10096
|
},
|
|
@@ -13485,9 +10163,21 @@
|
|
|
13485
10163
|
"var(--ui-info-hover)"
|
|
13486
10164
|
]
|
|
13487
10165
|
},
|
|
10166
|
+
{
|
|
10167
|
+
"name": "--ui-info-hover-highlight",
|
|
10168
|
+
"fallbacks": [
|
|
10169
|
+
"none"
|
|
10170
|
+
]
|
|
10171
|
+
},
|
|
13488
10172
|
{
|
|
13489
10173
|
"name": "--ui-info-on-strong"
|
|
13490
10174
|
},
|
|
10175
|
+
{
|
|
10176
|
+
"name": "--ui-info-outline-border",
|
|
10177
|
+
"fallbacks": [
|
|
10178
|
+
"var(--ui-info-subtle-text)"
|
|
10179
|
+
]
|
|
10180
|
+
},
|
|
13491
10181
|
{
|
|
13492
10182
|
"name": "--ui-info-subtle-text"
|
|
13493
10183
|
},
|
|
@@ -13518,12 +10208,6 @@
|
|
|
13518
10208
|
"0 0 transparent"
|
|
13519
10209
|
]
|
|
13520
10210
|
},
|
|
13521
|
-
{
|
|
13522
|
-
"name": "--ui-neutral-highlight",
|
|
13523
|
-
"fallbacks": [
|
|
13524
|
-
"none"
|
|
13525
|
-
]
|
|
13526
|
-
},
|
|
13527
10211
|
{
|
|
13528
10212
|
"name": "--ui-neutral-hover"
|
|
13529
10213
|
},
|
|
@@ -13596,9 +10280,21 @@
|
|
|
13596
10280
|
"var(--ui-success-hover)"
|
|
13597
10281
|
]
|
|
13598
10282
|
},
|
|
10283
|
+
{
|
|
10284
|
+
"name": "--ui-success-hover-highlight",
|
|
10285
|
+
"fallbacks": [
|
|
10286
|
+
"none"
|
|
10287
|
+
]
|
|
10288
|
+
},
|
|
13599
10289
|
{
|
|
13600
10290
|
"name": "--ui-success-on-strong"
|
|
13601
10291
|
},
|
|
10292
|
+
{
|
|
10293
|
+
"name": "--ui-success-outline-border",
|
|
10294
|
+
"fallbacks": [
|
|
10295
|
+
"var(--ui-success-subtle-text)"
|
|
10296
|
+
]
|
|
10297
|
+
},
|
|
13602
10298
|
{
|
|
13603
10299
|
"name": "--ui-success-subtle-text"
|
|
13604
10300
|
},
|
|
@@ -13608,7 +10304,8 @@
|
|
|
13608
10304
|
{
|
|
13609
10305
|
"name": "--ui-surface-highlight",
|
|
13610
10306
|
"fallbacks": [
|
|
13611
|
-
"none"
|
|
10307
|
+
"none",
|
|
10308
|
+
"linear-gradient(transparent, transparent)"
|
|
13612
10309
|
]
|
|
13613
10310
|
},
|
|
13614
10311
|
{
|
|
@@ -13623,6 +10320,12 @@
|
|
|
13623
10320
|
{
|
|
13624
10321
|
"name": "--ui-text-secondary"
|
|
13625
10322
|
},
|
|
10323
|
+
{
|
|
10324
|
+
"name": "--ui-tonal-opacity",
|
|
10325
|
+
"fallbacks": [
|
|
10326
|
+
"1"
|
|
10327
|
+
]
|
|
10328
|
+
},
|
|
13626
10329
|
{
|
|
13627
10330
|
"name": "--ui-warning"
|
|
13628
10331
|
},
|
|
@@ -13665,9 +10368,21 @@
|
|
|
13665
10368
|
"var(--ui-warning-hover)"
|
|
13666
10369
|
]
|
|
13667
10370
|
},
|
|
10371
|
+
{
|
|
10372
|
+
"name": "--ui-warning-hover-highlight",
|
|
10373
|
+
"fallbacks": [
|
|
10374
|
+
"none"
|
|
10375
|
+
]
|
|
10376
|
+
},
|
|
13668
10377
|
{
|
|
13669
10378
|
"name": "--ui-warning-on-strong"
|
|
13670
10379
|
},
|
|
10380
|
+
{
|
|
10381
|
+
"name": "--ui-warning-outline-border",
|
|
10382
|
+
"fallbacks": [
|
|
10383
|
+
"var(--ui-warning-subtle-text)"
|
|
10384
|
+
]
|
|
10385
|
+
},
|
|
13671
10386
|
{
|
|
13672
10387
|
"name": "--ui-warning-subtle-text"
|
|
13673
10388
|
}
|
|
@@ -16095,7 +12810,7 @@
|
|
|
16095
12810
|
"name": "--ui-menu-surface",
|
|
16096
12811
|
"fallbacks": [
|
|
16097
12812
|
"var(--ui-overlay-surface, var(--ui-surface-elevated))",
|
|
16098
|
-
"var(--ui-material-content, var(--ui-overlay-surface, var(--ui-surface-elevated)))"
|
|
12813
|
+
"var(--_ui-material-underpaint, var(--ui-material-content, var(--ui-overlay-surface, var(--ui-surface-elevated))))"
|
|
16099
12814
|
]
|
|
16100
12815
|
},
|
|
16101
12816
|
{
|
|
@@ -16157,6 +12872,12 @@
|
|
|
16157
12872
|
"0 0 transparent"
|
|
16158
12873
|
]
|
|
16159
12874
|
},
|
|
12875
|
+
{
|
|
12876
|
+
"name": "--ui-material-highlight",
|
|
12877
|
+
"fallbacks": [
|
|
12878
|
+
"var(--ui-surface-highlight, linear-gradient(transparent, transparent))"
|
|
12879
|
+
]
|
|
12880
|
+
},
|
|
16160
12881
|
{
|
|
16161
12882
|
"name": "--ui-motion-ease"
|
|
16162
12883
|
},
|
|
@@ -17619,6 +14340,13 @@
|
|
|
17619
14340
|
]
|
|
17620
14341
|
},
|
|
17621
14342
|
"attributes": [
|
|
14343
|
+
{
|
|
14344
|
+
"name": "compact",
|
|
14345
|
+
"property": "compact",
|
|
14346
|
+
"description": "Shows just the exact field, retaining arrow-key stepping and arithmetic without separate step buttons.",
|
|
14347
|
+
"type": "boolean",
|
|
14348
|
+
"default": false
|
|
14349
|
+
},
|
|
17622
14350
|
{
|
|
17623
14351
|
"name": "disabled",
|
|
17624
14352
|
"property": "disabled",
|
|
@@ -17689,6 +14417,12 @@
|
|
|
17689
14417
|
}
|
|
17690
14418
|
],
|
|
17691
14419
|
"properties": [
|
|
14420
|
+
{
|
|
14421
|
+
"name": "compact",
|
|
14422
|
+
"description": "Shows just the exact field, retaining arrow-key stepping and arithmetic without separate step buttons.",
|
|
14423
|
+
"type": "boolean",
|
|
14424
|
+
"default": false
|
|
14425
|
+
},
|
|
17692
14426
|
{
|
|
17693
14427
|
"name": "disabled",
|
|
17694
14428
|
"description": "Prevents typing, stepping and pointer or keyboard changes while keeping the value visible.",
|
|
@@ -18278,7 +15012,7 @@
|
|
|
18278
15012
|
"name": "--ui-popover-surface",
|
|
18279
15013
|
"fallbacks": [
|
|
18280
15014
|
"var(--ui-overlay-surface, var(--ui-surface-elevated))",
|
|
18281
|
-
"var(--ui-material-content, var(--ui-overlay-surface, var(--ui-surface-elevated)))"
|
|
15015
|
+
"var(--_ui-material-underpaint, var(--ui-material-content, var(--ui-overlay-surface, var(--ui-surface-elevated))))"
|
|
18282
15016
|
]
|
|
18283
15017
|
},
|
|
18284
15018
|
{
|
|
@@ -18331,6 +15065,12 @@
|
|
|
18331
15065
|
"0 0 transparent"
|
|
18332
15066
|
]
|
|
18333
15067
|
},
|
|
15068
|
+
{
|
|
15069
|
+
"name": "--ui-material-highlight",
|
|
15070
|
+
"fallbacks": [
|
|
15071
|
+
"var(--ui-surface-highlight, linear-gradient(transparent, transparent))"
|
|
15072
|
+
]
|
|
15073
|
+
},
|
|
18334
15074
|
{
|
|
18335
15075
|
"name": "--ui-motion-ease"
|
|
18336
15076
|
},
|
|
@@ -21646,6 +18386,13 @@
|
|
|
21646
18386
|
]
|
|
21647
18387
|
},
|
|
21648
18388
|
"attributes": [
|
|
18389
|
+
{
|
|
18390
|
+
"name": "compact",
|
|
18391
|
+
"property": "compact",
|
|
18392
|
+
"description": "Pairs a short exact field with the track, without separate step buttons. Keyboard stepping and arithmetic remain available.",
|
|
18393
|
+
"type": "boolean",
|
|
18394
|
+
"default": false
|
|
18395
|
+
},
|
|
21649
18396
|
{
|
|
21650
18397
|
"name": "disabled",
|
|
21651
18398
|
"property": "disabled",
|
|
@@ -21716,6 +18463,12 @@
|
|
|
21716
18463
|
}
|
|
21717
18464
|
],
|
|
21718
18465
|
"properties": [
|
|
18466
|
+
{
|
|
18467
|
+
"name": "compact",
|
|
18468
|
+
"description": "Pairs a short exact field with the track, without separate step buttons. Keyboard stepping and arithmetic remain available.",
|
|
18469
|
+
"type": "boolean",
|
|
18470
|
+
"default": false
|
|
18471
|
+
},
|
|
21719
18472
|
{
|
|
21720
18473
|
"name": "disabled",
|
|
21721
18474
|
"description": "Prevents typing, stepping and pointer or keyboard changes while keeping the value visible.",
|
|
@@ -24966,7 +21719,7 @@
|
|
|
24966
21719
|
"name": "--ui-tooltip-surface",
|
|
24967
21720
|
"fallbacks": [
|
|
24968
21721
|
"var(--ui-overlay-surface, var(--ui-surface-elevated))",
|
|
24969
|
-
"var(--ui-material-content, var(--ui-overlay-surface, var(--ui-surface-elevated)))"
|
|
21722
|
+
"var(--_ui-material-underpaint, var(--ui-material-content, var(--ui-overlay-surface, var(--ui-surface-elevated))))"
|
|
24970
21723
|
]
|
|
24971
21724
|
},
|
|
24972
21725
|
{
|
|
@@ -25028,6 +21781,12 @@
|
|
|
25028
21781
|
"var(--ui-surface-elevated)"
|
|
25029
21782
|
]
|
|
25030
21783
|
},
|
|
21784
|
+
{
|
|
21785
|
+
"name": "--ui-material-highlight",
|
|
21786
|
+
"fallbacks": [
|
|
21787
|
+
"var(--ui-surface-highlight, linear-gradient(transparent, transparent))"
|
|
21788
|
+
]
|
|
21789
|
+
},
|
|
25031
21790
|
{
|
|
25032
21791
|
"name": "--ui-motion-ease"
|
|
25033
21792
|
},
|
|
@@ -25077,6 +21836,12 @@
|
|
|
25077
21836
|
{
|
|
25078
21837
|
"name": "--ui-surface-elevated"
|
|
25079
21838
|
},
|
|
21839
|
+
{
|
|
21840
|
+
"name": "--ui-surface-highlight",
|
|
21841
|
+
"fallbacks": [
|
|
21842
|
+
"linear-gradient(transparent, transparent)"
|
|
21843
|
+
]
|
|
21844
|
+
},
|
|
25080
21845
|
{
|
|
25081
21846
|
"name": "--ui-surface-separation",
|
|
25082
21847
|
"fallbacks": [
|