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