@taprootio/espalier 2.12.1 → 2.13.1
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/CHANGELOG.md +33 -0
- package/custom-elements.json +1115 -1099
- package/dist/page/esp-page.d.ts +27 -13
- package/dist/page/esp-page.js +79 -41
- package/espalier.token-manifest.json +13 -1
- package/package.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -40061,7 +40061,7 @@
|
|
|
40061
40061
|
"name": "--esp-page-main-min-width"
|
|
40062
40062
|
},
|
|
40063
40063
|
{
|
|
40064
|
-
"description": "Maximum width of the main content well. Defaults from `kind`: `1536px` (wide), `768px` (narrow), or unbounded (full). Surplus width beyond it becomes canvas gutters.",
|
|
40064
|
+
"description": "Maximum width of the main content well. Defaults from `kind`: `1536px` (wide), `768px` (narrow), or unbounded (full). An explicit value overrides every kind default, including `full`. Surplus width beyond it becomes canvas gutters.",
|
|
40065
40065
|
"name": "--esp-page-main-max-width"
|
|
40066
40066
|
},
|
|
40067
40067
|
{
|
|
@@ -40116,6 +40116,10 @@
|
|
|
40116
40116
|
"description": "Minimum preview width. Defaults to `22.5rem` (360px, a reasonable mobile-device surface).",
|
|
40117
40117
|
"name": "--esp-page-preview-min-width"
|
|
40118
40118
|
},
|
|
40119
|
+
{
|
|
40120
|
+
"description": "Initial automatic preview target, clamped between the preview minimum and maximum. When unset, the established preview-first flexible allocation remains in effect. A retained pointer or keyboard resize preference supersedes this target.",
|
|
40121
|
+
"name": "--esp-page-preview-default-width"
|
|
40122
|
+
},
|
|
40119
40123
|
{
|
|
40120
40124
|
"description": "Maximum preview width. Defaults to `48rem`. Preview receives flexible trailing space before help grows.",
|
|
40121
40125
|
"name": "--esp-page-preview-max-width"
|
|
@@ -40124,6 +40128,10 @@
|
|
|
40124
40128
|
"description": "Minimum in-grid help width. Defaults to `20rem`.",
|
|
40125
40129
|
"name": "--esp-page-flyout-min-width"
|
|
40126
40130
|
},
|
|
40131
|
+
{
|
|
40132
|
+
"description": "Initial automatic in-grid help target, clamped between the help minimum and maximum. When unset, the established flexible allocation remains in effect. A retained pointer or keyboard resize preference supersedes this target.",
|
|
40133
|
+
"name": "--esp-page-flyout-default-width"
|
|
40134
|
+
},
|
|
40127
40135
|
{
|
|
40128
40136
|
"description": "Maximum help width and overlay drawer cap before the `85vw` viewport cap. Defaults to `30rem`.",
|
|
40129
40137
|
"name": "--esp-page-flyout-max-width"
|
|
@@ -40277,11 +40285,11 @@
|
|
|
40277
40285
|
"name": "right"
|
|
40278
40286
|
},
|
|
40279
40287
|
{
|
|
40280
|
-
"description": "Persistent preview content placed after the main surface and before help. It grows from `--esp-page-preview-min-width` to `--esp-page-preview-max-width`, starts at viewport top
|
|
40288
|
+
"description": "Persistent preview content placed after the main surface and before help. It grows from `--esp-page-preview-min-width` to `--esp-page-preview-max-width`, starting at `--esp-page-preview-default-width` when that token is set. It starts at viewport top and gives its content an independent `100dvh` vertical scroller. At either scroll boundary, wheel and trackpad motion chains back to the main document. Unlike flyout content, preview content is never replaced by the flyout request bus.",
|
|
40281
40289
|
"name": "preview"
|
|
40282
40290
|
},
|
|
40283
40291
|
{
|
|
40284
|
-
"description": "A transient `esp-flyout` panel that lives on the canvas after preview. Closed it costs no width; open it grows from `--esp-page-flyout-min-width` to `--esp-page-flyout-max-width`
|
|
40292
|
+
"description": "A transient `esp-flyout` panel that lives on the canvas after preview. Closed it costs no width; open it grows from `--esp-page-flyout-min-width` to `--esp-page-flyout-max-width`, starting at `--esp-page-flyout-default-width` when that token is set. It receives remaining flexible space after preview when no default is set, then docks as a width-competing right sidebar when no gutter exists and becomes an overlay drawer on small viewports. The persistent `right` aside and the transient flyout are complementary, not alternatives. A flyout opened with an `anchor` aligns to that trigger and stays in the same document scroll flow. When a preview is visible, its caret and non-interactive dotted bridge cross the preview back to the anchor, ending at a short thick marker on the preview/help seam.",
|
|
40285
40293
|
"name": "flyout"
|
|
40286
40294
|
},
|
|
40287
40295
|
{
|
|
@@ -40324,6 +40332,11 @@
|
|
|
40324
40332
|
"name": "previewMinWidthProbe",
|
|
40325
40333
|
"privacy": "private"
|
|
40326
40334
|
},
|
|
40335
|
+
{
|
|
40336
|
+
"kind": "field",
|
|
40337
|
+
"name": "previewDefaultWidthProbe",
|
|
40338
|
+
"privacy": "private"
|
|
40339
|
+
},
|
|
40327
40340
|
{
|
|
40328
40341
|
"kind": "field",
|
|
40329
40342
|
"name": "previewMaxWidthProbe",
|
|
@@ -40334,6 +40347,11 @@
|
|
|
40334
40347
|
"name": "flyoutMinWidthProbe",
|
|
40335
40348
|
"privacy": "private"
|
|
40336
40349
|
},
|
|
40350
|
+
{
|
|
40351
|
+
"kind": "field",
|
|
40352
|
+
"name": "flyoutDefaultWidthProbe",
|
|
40353
|
+
"privacy": "private"
|
|
40354
|
+
},
|
|
40337
40355
|
{
|
|
40338
40356
|
"kind": "field",
|
|
40339
40357
|
"name": "flyoutMaxWidthProbe",
|
|
@@ -40344,6 +40362,11 @@
|
|
|
40344
40362
|
"name": "mainMinWidthProbe",
|
|
40345
40363
|
"privacy": "private"
|
|
40346
40364
|
},
|
|
40365
|
+
{
|
|
40366
|
+
"kind": "field",
|
|
40367
|
+
"name": "mainConfiguredMaxWidthProbe",
|
|
40368
|
+
"privacy": "private"
|
|
40369
|
+
},
|
|
40347
40370
|
{
|
|
40348
40371
|
"kind": "field",
|
|
40349
40372
|
"name": "mainMaxWidthProbe",
|
|
@@ -40791,7 +40814,7 @@
|
|
|
40791
40814
|
}
|
|
40792
40815
|
},
|
|
40793
40816
|
{
|
|
40794
|
-
"name": "
|
|
40817
|
+
"name": "enforceTarget",
|
|
40795
40818
|
"default": "false"
|
|
40796
40819
|
}
|
|
40797
40820
|
]
|
|
@@ -40828,100 +40851,97 @@
|
|
|
40828
40851
|
},
|
|
40829
40852
|
{
|
|
40830
40853
|
"kind": "method",
|
|
40831
|
-
"name": "
|
|
40854
|
+
"name": "visiblePageInlineBounds",
|
|
40832
40855
|
"privacy": "private",
|
|
40833
40856
|
"return": {
|
|
40834
40857
|
"type": {
|
|
40835
|
-
"text": "
|
|
40858
|
+
"text": "{ left: number; right: number; width: number }"
|
|
40859
|
+
}
|
|
40860
|
+
}
|
|
40861
|
+
},
|
|
40862
|
+
{
|
|
40863
|
+
"kind": "method",
|
|
40864
|
+
"name": "probeWidth",
|
|
40865
|
+
"privacy": "private",
|
|
40866
|
+
"return": {
|
|
40867
|
+
"type": {
|
|
40868
|
+
"text": "number"
|
|
40836
40869
|
}
|
|
40837
40870
|
},
|
|
40838
40871
|
"parameters": [
|
|
40839
40872
|
{
|
|
40840
|
-
"name": "
|
|
40841
|
-
"type": {
|
|
40842
|
-
"text": "boolean"
|
|
40843
|
-
}
|
|
40844
|
-
},
|
|
40845
|
-
{
|
|
40846
|
-
"name": "flyoutOpen",
|
|
40873
|
+
"name": "probe",
|
|
40847
40874
|
"type": {
|
|
40848
|
-
"text": "
|
|
40875
|
+
"text": "ReturnType<typeof createRef<HTMLDivElement>>"
|
|
40849
40876
|
}
|
|
40850
40877
|
}
|
|
40851
40878
|
]
|
|
40852
40879
|
},
|
|
40853
40880
|
{
|
|
40854
40881
|
"kind": "method",
|
|
40855
|
-
"name": "
|
|
40882
|
+
"name": "optionalWidth",
|
|
40856
40883
|
"privacy": "private",
|
|
40857
40884
|
"return": {
|
|
40858
40885
|
"type": {
|
|
40859
|
-
"text": "number"
|
|
40886
|
+
"text": "number | null"
|
|
40860
40887
|
}
|
|
40861
40888
|
},
|
|
40862
40889
|
"parameters": [
|
|
40863
40890
|
{
|
|
40864
|
-
"name": "
|
|
40865
|
-
"type": {
|
|
40866
|
-
"text": "boolean"
|
|
40867
|
-
}
|
|
40868
|
-
},
|
|
40869
|
-
{
|
|
40870
|
-
"name": "flyoutOpen",
|
|
40871
|
-
"type": {
|
|
40872
|
-
"text": "boolean"
|
|
40873
|
-
}
|
|
40874
|
-
},
|
|
40875
|
-
{
|
|
40876
|
-
"name": "previewMinWidth",
|
|
40877
|
-
"type": {
|
|
40878
|
-
"text": "number"
|
|
40879
|
-
}
|
|
40880
|
-
},
|
|
40881
|
-
{
|
|
40882
|
-
"name": "previewMaxWidth",
|
|
40883
|
-
"type": {
|
|
40884
|
-
"text": "number"
|
|
40885
|
-
}
|
|
40886
|
-
},
|
|
40887
|
-
{
|
|
40888
|
-
"name": "flyoutMinWidth",
|
|
40891
|
+
"name": "propertyName",
|
|
40889
40892
|
"type": {
|
|
40890
|
-
"text": "
|
|
40893
|
+
"text": "string"
|
|
40891
40894
|
}
|
|
40892
40895
|
},
|
|
40893
40896
|
{
|
|
40894
|
-
"name": "
|
|
40897
|
+
"name": "probe",
|
|
40895
40898
|
"type": {
|
|
40896
|
-
"text": "
|
|
40899
|
+
"text": "ReturnType<typeof createRef<HTMLDivElement>>"
|
|
40897
40900
|
}
|
|
40898
40901
|
}
|
|
40899
40902
|
]
|
|
40900
40903
|
},
|
|
40901
40904
|
{
|
|
40902
40905
|
"kind": "method",
|
|
40903
|
-
"name": "
|
|
40906
|
+
"name": "syncMainMaximumConfiguration",
|
|
40904
40907
|
"privacy": "private",
|
|
40905
40908
|
"return": {
|
|
40906
40909
|
"type": {
|
|
40907
|
-
"text": "
|
|
40910
|
+
"text": "void"
|
|
40908
40911
|
}
|
|
40909
40912
|
}
|
|
40910
40913
|
},
|
|
40911
40914
|
{
|
|
40912
40915
|
"kind": "method",
|
|
40913
|
-
"name": "
|
|
40916
|
+
"name": "workspaceWidthCapacity",
|
|
40914
40917
|
"privacy": "private",
|
|
40915
40918
|
"return": {
|
|
40916
40919
|
"type": {
|
|
40917
|
-
"text": "
|
|
40920
|
+
"text": "WorkspaceWidthCapacity"
|
|
40918
40921
|
}
|
|
40919
40922
|
},
|
|
40920
|
-
"
|
|
40923
|
+
"parameters": [
|
|
40924
|
+
{
|
|
40925
|
+
"name": "minMainWidth",
|
|
40926
|
+
"type": {
|
|
40927
|
+
"text": "number"
|
|
40928
|
+
}
|
|
40929
|
+
},
|
|
40930
|
+
{
|
|
40931
|
+
"name": "maxMainWidth",
|
|
40932
|
+
"type": {
|
|
40933
|
+
"text": "number"
|
|
40934
|
+
}
|
|
40935
|
+
},
|
|
40936
|
+
{
|
|
40937
|
+
"name": "reservedInlineWidth",
|
|
40938
|
+
"default": "0"
|
|
40939
|
+
}
|
|
40940
|
+
]
|
|
40921
40941
|
},
|
|
40922
40942
|
{
|
|
40923
40943
|
"kind": "method",
|
|
40924
|
-
"name": "
|
|
40944
|
+
"name": "workspaceTargetWidth",
|
|
40925
40945
|
"privacy": "private",
|
|
40926
40946
|
"return": {
|
|
40927
40947
|
"type": {
|
|
@@ -40930,9 +40950,21 @@
|
|
|
40930
40950
|
},
|
|
40931
40951
|
"parameters": [
|
|
40932
40952
|
{
|
|
40933
|
-
"name": "
|
|
40953
|
+
"name": "capacity",
|
|
40934
40954
|
"type": {
|
|
40935
|
-
"text": "
|
|
40955
|
+
"text": "WorkspaceWidthCapacity"
|
|
40956
|
+
}
|
|
40957
|
+
},
|
|
40958
|
+
{
|
|
40959
|
+
"name": "minimumWorkspaceWidth",
|
|
40960
|
+
"type": {
|
|
40961
|
+
"text": "number"
|
|
40962
|
+
}
|
|
40963
|
+
},
|
|
40964
|
+
{
|
|
40965
|
+
"name": "preferredWorkspaceTargetWidth",
|
|
40966
|
+
"type": {
|
|
40967
|
+
"text": "number"
|
|
40936
40968
|
}
|
|
40937
40969
|
}
|
|
40938
40970
|
]
|
|
@@ -40988,6 +41020,20 @@
|
|
|
40988
41020
|
"type": {
|
|
40989
41021
|
"text": "number"
|
|
40990
41022
|
}
|
|
41023
|
+
},
|
|
41024
|
+
{
|
|
41025
|
+
"name": "previewDefaultWidth",
|
|
41026
|
+
"default": "null",
|
|
41027
|
+
"type": {
|
|
41028
|
+
"text": "number | null"
|
|
41029
|
+
}
|
|
41030
|
+
},
|
|
41031
|
+
{
|
|
41032
|
+
"name": "flyoutDefaultWidth",
|
|
41033
|
+
"default": "null",
|
|
41034
|
+
"type": {
|
|
41035
|
+
"text": "number | null"
|
|
41036
|
+
}
|
|
40991
41037
|
}
|
|
40992
41038
|
]
|
|
40993
41039
|
},
|
|
@@ -41337,36 +41383,6 @@
|
|
|
41337
41383
|
}
|
|
41338
41384
|
]
|
|
41339
41385
|
},
|
|
41340
|
-
{
|
|
41341
|
-
"kind": "method",
|
|
41342
|
-
"name": "preferredWorkspaceFitsWithNavigation",
|
|
41343
|
-
"privacy": "private",
|
|
41344
|
-
"return": {
|
|
41345
|
-
"type": {
|
|
41346
|
-
"text": "boolean"
|
|
41347
|
-
}
|
|
41348
|
-
},
|
|
41349
|
-
"parameters": [
|
|
41350
|
-
{
|
|
41351
|
-
"name": "minMainWidth",
|
|
41352
|
-
"type": {
|
|
41353
|
-
"text": "number"
|
|
41354
|
-
}
|
|
41355
|
-
},
|
|
41356
|
-
{
|
|
41357
|
-
"name": "requestedWorkspaceWidth",
|
|
41358
|
-
"type": {
|
|
41359
|
-
"text": "number"
|
|
41360
|
-
}
|
|
41361
|
-
},
|
|
41362
|
-
{
|
|
41363
|
-
"name": "collapsedSidebarWidth",
|
|
41364
|
-
"type": {
|
|
41365
|
-
"text": "number"
|
|
41366
|
-
}
|
|
41367
|
-
}
|
|
41368
|
-
]
|
|
41369
|
-
},
|
|
41370
41386
|
{
|
|
41371
41387
|
"kind": "method",
|
|
41372
41388
|
"name": "workspaceGeometrySample",
|
|
@@ -41589,7 +41605,7 @@
|
|
|
41589
41605
|
},
|
|
41590
41606
|
"privacy": "public",
|
|
41591
41607
|
"default": "\"wide\"",
|
|
41592
|
-
"description": "The layout mode of the page.\n\n- `wide` (default) — constrains the main content well to 1536px.\n Optimized for high-density dashboards and complex data grids.\n- `narrow` — constrains the main content well to 768px and applies\n a `max-inline-size: 66ch` reading measure. Optimized for\n long-form reading content.\n- `full` — no max-width constraint
|
|
41608
|
+
"description": "The layout mode of the page.\n\n- `wide` (default) — constrains the main content well to 1536px.\n Optimized for high-density dashboards and complex data grids.\n- `narrow` — constrains the main content well to 768px and applies\n a `max-inline-size: 66ch` reading measure. Optimized for\n long-form reading content.\n- `full` — no max-width constraint unless\n `--esp-page-main-max-width` is explicitly configured. Optimized for\n immersive canvases like maps or design tools and finite authoring\n workspaces that opt back into a cap.",
|
|
41593
41609
|
"attribute": "kind",
|
|
41594
41610
|
"reflects": true
|
|
41595
41611
|
},
|
|
@@ -41601,7 +41617,7 @@
|
|
|
41601
41617
|
},
|
|
41602
41618
|
"privacy": "public",
|
|
41603
41619
|
"default": "\"start\"",
|
|
41604
|
-
"description": "Horizontal alignment of the content **surface** (left aside + main\nwell + right aside) within the page once the viewport is wider than\nthe content cap. The surplus width becomes styleable **canvas**\ngutters on the outer edges, weighted by this attribute.\n\n- `start` (default) — the surface hugs the leading edge; all spare\n width collects in the trailing gutter. This reproduces today's\n layout.\n- `center` — spare width is split evenly into both gutters, centering\n the surface.\n- `end` — the surface hugs the trailing edge; spare width collects in\n the leading gutter.\n\nHas no effect when `kind=\"full\"`
|
|
41620
|
+
"description": "Horizontal alignment of the content **surface** (left aside + main\nwell + right aside) within the page once the viewport is wider than\nthe content cap. The surplus width becomes styleable **canvas**\ngutters on the outer edges, weighted by this attribute.\n\n- `start` (default) — the surface hugs the leading edge; all spare\n width collects in the trailing gutter. This reproduces today's\n layout.\n- `center` — spare width is split evenly into both gutters, centering\n the surface.\n- `end` — the surface hugs the trailing edge; spare width collects in\n the leading gutter.\n\nHas no effect when an unconfigured `kind=\"full\"` leaves main unbounded,\nor on viewports narrower than the complete visible workspace cap.",
|
|
41605
41621
|
"attribute": "align",
|
|
41606
41622
|
"reflects": true
|
|
41607
41623
|
},
|
|
@@ -42280,7 +42296,7 @@
|
|
|
42280
42296
|
"text": "\"wide\" | \"narrow\" | \"full\""
|
|
42281
42297
|
},
|
|
42282
42298
|
"default": "\"wide\"",
|
|
42283
|
-
"description": "The layout mode of the page.\n\n- `wide` (default) — constrains the main content well to 1536px.\n Optimized for high-density dashboards and complex data grids.\n- `narrow` — constrains the main content well to 768px and applies\n a `max-inline-size: 66ch` reading measure. Optimized for\n long-form reading content.\n- `full` — no max-width constraint
|
|
42299
|
+
"description": "The layout mode of the page.\n\n- `wide` (default) — constrains the main content well to 1536px.\n Optimized for high-density dashboards and complex data grids.\n- `narrow` — constrains the main content well to 768px and applies\n a `max-inline-size: 66ch` reading measure. Optimized for\n long-form reading content.\n- `full` — no max-width constraint unless\n `--esp-page-main-max-width` is explicitly configured. Optimized for\n immersive canvases like maps or design tools and finite authoring\n workspaces that opt back into a cap.",
|
|
42284
42300
|
"fieldName": "kind"
|
|
42285
42301
|
},
|
|
42286
42302
|
{
|
|
@@ -42289,7 +42305,7 @@
|
|
|
42289
42305
|
"text": "\"start\" | \"center\" | \"end\""
|
|
42290
42306
|
},
|
|
42291
42307
|
"default": "\"start\"",
|
|
42292
|
-
"description": "Horizontal alignment of the content **surface** (left aside + main\nwell + right aside) within the page once the viewport is wider than\nthe content cap. The surplus width becomes styleable **canvas**\ngutters on the outer edges, weighted by this attribute.\n\n- `start` (default) — the surface hugs the leading edge; all spare\n width collects in the trailing gutter. This reproduces today's\n layout.\n- `center` — spare width is split evenly into both gutters, centering\n the surface.\n- `end` — the surface hugs the trailing edge; spare width collects in\n the leading gutter.\n\nHas no effect when `kind=\"full\"`
|
|
42308
|
+
"description": "Horizontal alignment of the content **surface** (left aside + main\nwell + right aside) within the page once the viewport is wider than\nthe content cap. The surplus width becomes styleable **canvas**\ngutters on the outer edges, weighted by this attribute.\n\n- `start` (default) — the surface hugs the leading edge; all spare\n width collects in the trailing gutter. This reproduces today's\n layout.\n- `center` — spare width is split evenly into both gutters, centering\n the surface.\n- `end` — the surface hugs the trailing edge; spare width collects in\n the leading gutter.\n\nHas no effect when an unconfigured `kind=\"full\"` leaves main unbounded,\nor on viewports narrower than the complete visible workspace cap.",
|
|
42293
42309
|
"fieldName": "align"
|
|
42294
42310
|
},
|
|
42295
42311
|
{
|
|
@@ -52229,132 +52245,136 @@
|
|
|
52229
52245
|
},
|
|
52230
52246
|
{
|
|
52231
52247
|
"kind": "javascript-module",
|
|
52232
|
-
"path": "dist/
|
|
52248
|
+
"path": "dist/search/esp-search.js",
|
|
52233
52249
|
"declarations": [
|
|
52234
52250
|
{
|
|
52235
52251
|
"kind": "class",
|
|
52236
|
-
"description": "
|
|
52237
|
-
"name": "
|
|
52238
|
-
"
|
|
52252
|
+
"description": "Modal search overlay with a Cmd+K / Ctrl+K interaction pattern.\n\n`<esp-search>` is a pure UI shell with no search-engine dependency.\nConsumers wire it to any search backend (Pagefind, MiniSearch, API,\netc.) by listening for `search-requested` events and calling\n`setResults()` with the matches.",
|
|
52253
|
+
"name": "EspalierSearch",
|
|
52254
|
+
"cssProperties": [
|
|
52239
52255
|
{
|
|
52240
|
-
"description": "
|
|
52241
|
-
"name": ""
|
|
52242
|
-
}
|
|
52243
|
-
],
|
|
52244
|
-
"members": [
|
|
52256
|
+
"description": "Maximum width of the search panel. Defaults to `40rem`.",
|
|
52257
|
+
"name": "--esp-search-max-width"
|
|
52258
|
+
},
|
|
52245
52259
|
{
|
|
52246
|
-
"
|
|
52247
|
-
"name": "
|
|
52248
|
-
"privacy": "public",
|
|
52249
|
-
"static": true,
|
|
52250
|
-
"return": {
|
|
52251
|
-
"type": {
|
|
52252
|
-
"text": "void"
|
|
52253
|
-
}
|
|
52254
|
-
},
|
|
52255
|
-
"parameters": [
|
|
52256
|
-
{
|
|
52257
|
-
"name": "name",
|
|
52258
|
-
"type": {
|
|
52259
|
-
"text": "string"
|
|
52260
|
-
}
|
|
52261
|
-
},
|
|
52262
|
-
{
|
|
52263
|
-
"name": "definition",
|
|
52264
|
-
"type": {
|
|
52265
|
-
"text": "ImageTextureDefinition"
|
|
52266
|
-
}
|
|
52267
|
-
}
|
|
52268
|
-
],
|
|
52269
|
-
"description": "Register (or replace) a named, image-backed banner-texture preset.\nAny `esp-image` banner under a root selects it with `texture=\"<name>\"`;\nbanners already pointing at the name re-render, so registration at\nmount and markup order never race. Static delegate to\n`registerImageTexture` so script-only contexts (docs demos, published\nsites) can reach it from the root element without module imports."
|
|
52260
|
+
"description": "Maximum height of the results list. Defaults to `60vh`.",
|
|
52261
|
+
"name": "--esp-search-max-height"
|
|
52270
52262
|
},
|
|
52271
52263
|
{
|
|
52272
|
-
"
|
|
52273
|
-
"name": "
|
|
52274
|
-
"privacy": "public",
|
|
52275
|
-
"static": true,
|
|
52276
|
-
"return": {
|
|
52277
|
-
"type": {
|
|
52278
|
-
"text": "Map<string, Readonly<ImageTextureDefinition>>"
|
|
52279
|
-
}
|
|
52280
|
-
},
|
|
52281
|
-
"description": "Snapshot of the registered texture presets, for building pickers."
|
|
52264
|
+
"description": "Backdrop color behind the panel. Defaults to `oklch(0.15 0 0 / 0.6)`.",
|
|
52265
|
+
"name": "--esp-search-backdrop"
|
|
52282
52266
|
},
|
|
52283
52267
|
{
|
|
52284
|
-
"
|
|
52285
|
-
"name": "
|
|
52286
|
-
"type": {
|
|
52287
|
-
"text": "\"light\" | \"dark\" | \"\""
|
|
52288
|
-
},
|
|
52289
|
-
"privacy": "private",
|
|
52290
|
-
"default": "\"\""
|
|
52268
|
+
"description": "Background color of the search panel. Defaults to `var(--esp-color-layer-1)`.",
|
|
52269
|
+
"name": "--esp-search-panel-background"
|
|
52291
52270
|
},
|
|
52292
52271
|
{
|
|
52293
|
-
"
|
|
52294
|
-
"name": "
|
|
52295
|
-
"type": {
|
|
52296
|
-
"text": "boolean"
|
|
52297
|
-
},
|
|
52298
|
-
"privacy": "private",
|
|
52299
|
-
"default": "false"
|
|
52272
|
+
"description": "Box shadow of the search panel.",
|
|
52273
|
+
"name": "--esp-search-panel-shadow"
|
|
52300
52274
|
},
|
|
52301
52275
|
{
|
|
52302
|
-
"
|
|
52303
|
-
"name": "
|
|
52304
|
-
"type": {
|
|
52305
|
-
"text": "boolean"
|
|
52306
|
-
},
|
|
52307
|
-
"privacy": "private",
|
|
52308
|
-
"default": "false"
|
|
52276
|
+
"description": "Divider and loading-track color used by the search panel. Defaults to `var(--esp-color-border)`.",
|
|
52277
|
+
"name": "--esp-search-border-color"
|
|
52309
52278
|
},
|
|
52310
52279
|
{
|
|
52311
|
-
"
|
|
52312
|
-
"name": "
|
|
52313
|
-
"type": {
|
|
52314
|
-
"text": "boolean"
|
|
52315
|
-
},
|
|
52316
|
-
"privacy": "private",
|
|
52317
|
-
"default": "false"
|
|
52280
|
+
"description": "Main text color used by the search UI. Defaults to `var(--esp-color-text)`.",
|
|
52281
|
+
"name": "--esp-search-text-color"
|
|
52318
52282
|
},
|
|
52319
52283
|
{
|
|
52320
|
-
"
|
|
52321
|
-
"name": "
|
|
52322
|
-
"type": {
|
|
52323
|
-
"text": "MediaQueryList | null"
|
|
52324
|
-
},
|
|
52325
|
-
"privacy": "private",
|
|
52326
|
-
"default": "null"
|
|
52284
|
+
"description": "Muted text color for placeholders, excerpts, and empty states.",
|
|
52285
|
+
"name": "--esp-search-muted-color"
|
|
52327
52286
|
},
|
|
52328
52287
|
{
|
|
52329
|
-
"
|
|
52330
|
-
"name": "
|
|
52331
|
-
"type": {
|
|
52332
|
-
"text": "string"
|
|
52333
|
-
},
|
|
52334
|
-
"privacy": "private",
|
|
52335
|
-
"default": "\"\""
|
|
52288
|
+
"description": "Title color for result rows. Defaults to `var(--esp-color-headings)`.",
|
|
52289
|
+
"name": "--esp-search-title-color"
|
|
52336
52290
|
},
|
|
52337
52291
|
{
|
|
52338
|
-
"
|
|
52339
|
-
"name": "
|
|
52340
|
-
|
|
52341
|
-
|
|
52342
|
-
|
|
52343
|
-
"
|
|
52344
|
-
|
|
52292
|
+
"description": "Background color of the active result row. Defaults to `var(--esp-color-layer-2)`.",
|
|
52293
|
+
"name": "--esp-search-active-background"
|
|
52294
|
+
},
|
|
52295
|
+
{
|
|
52296
|
+
"description": "Background color applied to `<mark>` highlights inside excerpts.",
|
|
52297
|
+
"name": "--esp-search-highlight-background"
|
|
52298
|
+
},
|
|
52299
|
+
{
|
|
52300
|
+
"description": "Accent color of the loading spinner. Defaults to `var(--esp-color-primary)`.",
|
|
52301
|
+
"name": "--esp-search-loading-indicator-color"
|
|
52302
|
+
},
|
|
52303
|
+
{
|
|
52304
|
+
"description": "Track color of the loading spinner. Defaults to `var(--esp-search-border-color)`.",
|
|
52305
|
+
"name": "--esp-search-loading-indicator-track-color"
|
|
52306
|
+
},
|
|
52307
|
+
{
|
|
52308
|
+
"description": "Background color of the shared field shell. Defaults to `var(--esp-color-layer-2)`.",
|
|
52309
|
+
"name": "--esp-field-background",
|
|
52310
|
+
"inheritedFrom": {
|
|
52311
|
+
"name": "EspalierElementBase",
|
|
52312
|
+
"module": "dist/shared/esp-element-base.js"
|
|
52313
|
+
}
|
|
52314
|
+
},
|
|
52315
|
+
{
|
|
52316
|
+
"description": "Border color of the shared field shell. Defaults to `var(--esp-color-border)`.",
|
|
52317
|
+
"name": "--esp-field-border-color",
|
|
52318
|
+
"inheritedFrom": {
|
|
52319
|
+
"name": "EspalierElementBase",
|
|
52320
|
+
"module": "dist/shared/esp-element-base.js"
|
|
52321
|
+
}
|
|
52322
|
+
},
|
|
52323
|
+
{
|
|
52324
|
+
"description": "Border width of the shared field shell. Defaults to `1px`.",
|
|
52325
|
+
"name": "--esp-field-border-width",
|
|
52326
|
+
"inheritedFrom": {
|
|
52327
|
+
"name": "EspalierElementBase",
|
|
52328
|
+
"module": "dist/shared/esp-element-base.js"
|
|
52329
|
+
}
|
|
52330
|
+
},
|
|
52331
|
+
{
|
|
52332
|
+
"description": "Text color used inside the shared field shell. Defaults to `var(--esp-color-text)`.",
|
|
52333
|
+
"name": "--esp-field-text-color",
|
|
52334
|
+
"inheritedFrom": {
|
|
52335
|
+
"name": "EspalierElementBase",
|
|
52336
|
+
"module": "dist/shared/esp-element-base.js"
|
|
52337
|
+
}
|
|
52338
|
+
},
|
|
52339
|
+
{
|
|
52340
|
+
"description": "Hover background color of the shared field shell. Derived from `--esp-field-background`.",
|
|
52341
|
+
"name": "--esp-field-hover-bg",
|
|
52342
|
+
"inheritedFrom": {
|
|
52343
|
+
"name": "EspalierElementBase",
|
|
52344
|
+
"module": "dist/shared/esp-element-base.js"
|
|
52345
|
+
}
|
|
52346
|
+
},
|
|
52347
|
+
{
|
|
52348
|
+
"description": "Focus background color of the shared field shell. Derived from `--esp-field-background`.",
|
|
52349
|
+
"name": "--esp-field-focus-bg",
|
|
52350
|
+
"inheritedFrom": {
|
|
52351
|
+
"name": "EspalierElementBase",
|
|
52352
|
+
"module": "dist/shared/esp-element-base.js"
|
|
52353
|
+
}
|
|
52345
52354
|
},
|
|
52355
|
+
{
|
|
52356
|
+
"description": "Shadow color used for shared field focus treatment. Defaults to `var(--esp-color-shadow)`.",
|
|
52357
|
+
"name": "--esp-field-focus-shadow",
|
|
52358
|
+
"inheritedFrom": {
|
|
52359
|
+
"name": "EspalierElementBase",
|
|
52360
|
+
"module": "dist/shared/esp-element-base.js"
|
|
52361
|
+
}
|
|
52362
|
+
}
|
|
52363
|
+
],
|
|
52364
|
+
"members": [
|
|
52346
52365
|
{
|
|
52347
52366
|
"kind": "field",
|
|
52348
|
-
"name": "
|
|
52367
|
+
"name": "placeholder",
|
|
52349
52368
|
"type": {
|
|
52350
|
-
"text": "
|
|
52369
|
+
"text": "string"
|
|
52351
52370
|
},
|
|
52352
|
-
"
|
|
52353
|
-
"
|
|
52371
|
+
"default": "\"Search\\u2026\"",
|
|
52372
|
+
"description": "Placeholder text for the search input.",
|
|
52373
|
+
"attribute": "placeholder"
|
|
52354
52374
|
},
|
|
52355
52375
|
{
|
|
52356
52376
|
"kind": "field",
|
|
52357
|
-
"name": "
|
|
52377
|
+
"name": "isOpen",
|
|
52358
52378
|
"type": {
|
|
52359
52379
|
"text": "boolean"
|
|
52360
52380
|
},
|
|
@@ -52363,178 +52383,114 @@
|
|
|
52363
52383
|
},
|
|
52364
52384
|
{
|
|
52365
52385
|
"kind": "field",
|
|
52366
|
-
"name": "
|
|
52386
|
+
"name": "results",
|
|
52367
52387
|
"type": {
|
|
52368
|
-
"text": "
|
|
52388
|
+
"text": "SearchResult[]"
|
|
52369
52389
|
},
|
|
52370
52390
|
"privacy": "private",
|
|
52371
|
-
"
|
|
52372
|
-
"default": "0"
|
|
52373
|
-
},
|
|
52374
|
-
{
|
|
52375
|
-
"kind": "field",
|
|
52376
|
-
"name": "handleDocumentClick",
|
|
52377
|
-
"privacy": "private",
|
|
52378
|
-
"static": true,
|
|
52379
|
-
"readonly": true
|
|
52391
|
+
"default": "[]"
|
|
52380
52392
|
},
|
|
52381
52393
|
{
|
|
52382
52394
|
"kind": "field",
|
|
52383
|
-
"name": "
|
|
52384
|
-
"
|
|
52385
|
-
|
|
52386
|
-
},
|
|
52387
|
-
{
|
|
52388
|
-
"kind": "method",
|
|
52389
|
-
"name": "subscribeScoped",
|
|
52390
|
-
"privacy": "public",
|
|
52391
|
-
"return": {
|
|
52392
|
-
"type": {
|
|
52393
|
-
"text": "() => void"
|
|
52394
|
-
}
|
|
52395
|
+
"name": "loading",
|
|
52396
|
+
"type": {
|
|
52397
|
+
"text": "boolean"
|
|
52395
52398
|
},
|
|
52396
|
-
"
|
|
52397
|
-
|
|
52398
|
-
"name": "event",
|
|
52399
|
-
"type": {
|
|
52400
|
-
"text": "K"
|
|
52401
|
-
},
|
|
52402
|
-
"description": "Root-scoped theme event to observe."
|
|
52403
|
-
},
|
|
52404
|
-
{
|
|
52405
|
-
"name": "handler",
|
|
52406
|
-
"type": {
|
|
52407
|
-
"text": "(payload: SchemeEvents[K]) => void"
|
|
52408
|
-
},
|
|
52409
|
-
"description": "Callback invoked with that event's typed payload."
|
|
52410
|
-
}
|
|
52411
|
-
],
|
|
52412
|
-
"description": "Subscribe to a theme event published by this root only.\n\nAll roots share Espalier's global bus. This method filters foreign and\nnested-root payloads by `correlationId` and returns a cleanup function.\nIt reports changes after mount; read initial state from this root."
|
|
52399
|
+
"privacy": "private",
|
|
52400
|
+
"default": "false"
|
|
52413
52401
|
},
|
|
52414
52402
|
{
|
|
52415
52403
|
"kind": "field",
|
|
52416
|
-
"name": "
|
|
52404
|
+
"name": "query",
|
|
52417
52405
|
"type": {
|
|
52418
52406
|
"text": "string"
|
|
52419
52407
|
},
|
|
52420
|
-
"privacy": "
|
|
52421
|
-
"default": "\"\""
|
|
52422
|
-
"description": "Base64-encoded JSON partial theme for the **light** scheme.\n\nOnly fields you wish to override need to be present — all\nothers inherit from the built-in light defaults.\n\n```html\n<esp-root\n light-theme=\"eyJzZWVkQ29sb3IiOiJva2xjaCgwLjcgMC4xNSAyODUpIn0=\"\n scheme=\"light\">\n <esp-box><h2>Purple light theme</h2></esp-box>\n</esp-root>\n```",
|
|
52423
|
-
"attribute": "light-theme"
|
|
52408
|
+
"privacy": "private",
|
|
52409
|
+
"default": "\"\""
|
|
52424
52410
|
},
|
|
52425
52411
|
{
|
|
52426
52412
|
"kind": "field",
|
|
52427
|
-
"name": "
|
|
52413
|
+
"name": "activeIndex",
|
|
52428
52414
|
"type": {
|
|
52429
|
-
"text": "
|
|
52415
|
+
"text": "number"
|
|
52430
52416
|
},
|
|
52431
|
-
"privacy": "
|
|
52432
|
-
"default": "
|
|
52433
|
-
"description": "Base64-encoded JSON partial theme for the **dark** scheme.\n\n```html\n<esp-root\n dark-theme=\"eyJzZWVkQ29sb3IiOiJva2xjaCgwLjcgMC4xNSAyODUpIn0=\"\n scheme=\"dark\">\n <esp-box><h2>Purple dark theme</h2></esp-box>\n</esp-root>\n```",
|
|
52434
|
-
"attribute": "dark-theme"
|
|
52417
|
+
"privacy": "private",
|
|
52418
|
+
"default": "-1"
|
|
52435
52419
|
},
|
|
52436
52420
|
{
|
|
52437
52421
|
"kind": "field",
|
|
52438
|
-
"name": "
|
|
52439
|
-
"
|
|
52440
|
-
"text": "string"
|
|
52441
|
-
},
|
|
52442
|
-
"privacy": "public",
|
|
52443
|
-
"default": "\"/css/fonts/\"",
|
|
52444
|
-
"description": "Root path for locally-cached font CSS files used by\n`<esp-font-picker>` to load font previews.\n\nThe directory must contain the individual font CSS files\ngenerated by `npm run build-fonts`. These files must be\nserved at stable, predictable paths (no filename hashing)\nbecause the picker constructs URLs by font family name.",
|
|
52445
|
-
"attribute": "font-css-root"
|
|
52422
|
+
"name": "vellumRef",
|
|
52423
|
+
"privacy": "private"
|
|
52446
52424
|
},
|
|
52447
52425
|
{
|
|
52448
52426
|
"kind": "field",
|
|
52449
|
-
"name": "
|
|
52450
|
-
"
|
|
52451
|
-
"text": "string"
|
|
52452
|
-
},
|
|
52453
|
-
"privacy": "public",
|
|
52454
|
-
"default": "\"\"",
|
|
52455
|
-
"description": "Full URL to the `font-definitions.json` catalog used by\n`<esp-font-picker>`.\n\nWhen set, the picker fetches from this URL instead of\n`{fontCSSRoot}font-definitions.json`. This allows the JSON\nto be served through a cache-busting asset pipeline while\nthe individual font CSS files remain at stable paths.",
|
|
52456
|
-
"attribute": "font-definitions-url"
|
|
52427
|
+
"name": "inputRef",
|
|
52428
|
+
"privacy": "private"
|
|
52457
52429
|
},
|
|
52458
52430
|
{
|
|
52459
52431
|
"kind": "field",
|
|
52460
|
-
"name": "
|
|
52461
|
-
"
|
|
52462
|
-
"text": "\"auto\" | \"none\""
|
|
52463
|
-
},
|
|
52464
|
-
"privacy": "public",
|
|
52465
|
-
"default": "\"auto\"",
|
|
52466
|
-
"description": "Controls whether Espalier may inject runtime Google Fonts CDN\nstylesheet links for selected Google Fonts.\n\n`auto` preserves the default behavior: theme font families and\nselected Google font-picker values may load full fonts from\n`fonts.googleapis.com`. `none` prevents those runtime Google\nFonts links, leaving local preview CSS and web-safe font stacks\navailable for locked-down, offline, or strict-CSP environments.",
|
|
52467
|
-
"attribute": "google-font-loading"
|
|
52432
|
+
"name": "resultsRef",
|
|
52433
|
+
"privacy": "private"
|
|
52468
52434
|
},
|
|
52469
52435
|
{
|
|
52470
52436
|
"kind": "field",
|
|
52471
|
-
"name": "
|
|
52472
|
-
"
|
|
52473
|
-
|
|
52474
|
-
},
|
|
52475
|
-
"
|
|
52476
|
-
"default": "\"/assets/icons.svg\"",
|
|
52477
|
-
"description": "Full URL to the SVG sprite used by component-owned `icon`\nattributes.\n\nComponents append the validated icon name as a fragment, so\nthis should point to the sprite file itself, without `#icon`.\nUse this when your application serves the sprite from a\nsubpath, CDN, or cache-busted asset pipeline. Set it to an\nempty string to disable generated sprite icon URLs for this root.\n\n```html\n<esp-root icon-sprite-url=\"/dist/icons.abc123.svg\">\n <esp-button icon=\"save\" label=\"Save\"></esp-button>\n</esp-root>\n```",
|
|
52478
|
-
"attribute": "icon-sprite-url"
|
|
52437
|
+
"name": "idPrefix",
|
|
52438
|
+
"privacy": "private",
|
|
52439
|
+
"readonly": true,
|
|
52440
|
+
"default": "`esp-search-${this.correlationId}`",
|
|
52441
|
+
"description": "Per-instance ID prefix for ARIA id attributes (listbox + options)."
|
|
52479
52442
|
},
|
|
52480
52443
|
{
|
|
52481
52444
|
"kind": "field",
|
|
52482
|
-
"name": "
|
|
52483
|
-
"
|
|
52484
|
-
|
|
52485
|
-
},
|
|
52486
|
-
"privacy": "public",
|
|
52487
|
-
"default": "\"light\"",
|
|
52488
|
-
"description": "Initial color scheme to apply when `scheme` is not set.\n\nUse `light` or `dark` for a fixed published-site default, or\n`system` to follow the visitor's `prefers-color-scheme` before\nthey toggle the active `scheme`.",
|
|
52489
|
-
"attribute": "default-scheme",
|
|
52490
|
-
"reflects": true
|
|
52445
|
+
"name": "_overlay",
|
|
52446
|
+
"privacy": "private",
|
|
52447
|
+
"default": "new OverlayController({ host: this, getFocusTrapContainer: () => this.vellumRef.value ?? null, getFocusFallback: () => this.inputRef.value ?? null, })"
|
|
52491
52448
|
},
|
|
52492
52449
|
{
|
|
52493
|
-
"kind": "
|
|
52494
|
-
"name": "
|
|
52495
|
-
"type": {
|
|
52496
|
-
"text": "\"dark\" | \"light\""
|
|
52497
|
-
},
|
|
52450
|
+
"kind": "method",
|
|
52451
|
+
"name": "show",
|
|
52498
52452
|
"privacy": "public",
|
|
52499
|
-
"
|
|
52500
|
-
|
|
52501
|
-
|
|
52502
|
-
|
|
52453
|
+
"return": {
|
|
52454
|
+
"type": {
|
|
52455
|
+
"text": "void"
|
|
52456
|
+
}
|
|
52457
|
+
},
|
|
52458
|
+
"description": "Open the search overlay and focus the input."
|
|
52503
52459
|
},
|
|
52504
52460
|
{
|
|
52505
|
-
"kind": "
|
|
52506
|
-
"name": "
|
|
52507
|
-
"type": {
|
|
52508
|
-
"text": "string"
|
|
52509
|
-
},
|
|
52461
|
+
"kind": "method",
|
|
52462
|
+
"name": "hide",
|
|
52510
52463
|
"privacy": "public",
|
|
52511
|
-
"
|
|
52512
|
-
|
|
52464
|
+
"return": {
|
|
52465
|
+
"type": {
|
|
52466
|
+
"text": "void"
|
|
52467
|
+
}
|
|
52468
|
+
},
|
|
52469
|
+
"description": "Close the search overlay and restore focus."
|
|
52513
52470
|
},
|
|
52514
52471
|
{
|
|
52515
52472
|
"kind": "method",
|
|
52516
|
-
"name": "
|
|
52517
|
-
"privacy": "
|
|
52518
|
-
"static": true,
|
|
52473
|
+
"name": "setResults",
|
|
52474
|
+
"privacy": "public",
|
|
52519
52475
|
"return": {
|
|
52520
52476
|
"type": {
|
|
52521
|
-
"text": "
|
|
52477
|
+
"text": "void"
|
|
52522
52478
|
}
|
|
52523
52479
|
},
|
|
52524
52480
|
"parameters": [
|
|
52525
52481
|
{
|
|
52526
|
-
"name": "
|
|
52482
|
+
"name": "results",
|
|
52527
52483
|
"type": {
|
|
52528
|
-
"text": "
|
|
52484
|
+
"text": "SearchResult[]"
|
|
52529
52485
|
}
|
|
52530
52486
|
}
|
|
52531
52487
|
],
|
|
52532
|
-
"description": "
|
|
52488
|
+
"description": "Update the displayed search results."
|
|
52533
52489
|
},
|
|
52534
52490
|
{
|
|
52535
52491
|
"kind": "method",
|
|
52536
|
-
"name": "
|
|
52537
|
-
"privacy": "
|
|
52492
|
+
"name": "setLoading",
|
|
52493
|
+
"privacy": "public",
|
|
52538
52494
|
"return": {
|
|
52539
52495
|
"type": {
|
|
52540
52496
|
"text": "void"
|
|
@@ -52542,88 +52498,89 @@
|
|
|
52542
52498
|
},
|
|
52543
52499
|
"parameters": [
|
|
52544
52500
|
{
|
|
52545
|
-
"name": "
|
|
52546
|
-
"type": {
|
|
52547
|
-
"text": "\"body\" | \"headings\" | \"brand\" | \"monospace\""
|
|
52548
|
-
}
|
|
52549
|
-
},
|
|
52550
|
-
{
|
|
52551
|
-
"name": "family",
|
|
52552
|
-
"type": {
|
|
52553
|
-
"text": "string"
|
|
52554
|
-
}
|
|
52555
|
-
},
|
|
52556
|
-
{
|
|
52557
|
-
"name": "weight",
|
|
52558
|
-
"optional": true,
|
|
52501
|
+
"name": "loading",
|
|
52559
52502
|
"type": {
|
|
52560
|
-
"text": "
|
|
52503
|
+
"text": "boolean"
|
|
52561
52504
|
}
|
|
52562
52505
|
}
|
|
52563
52506
|
],
|
|
52564
|
-
"description": "
|
|
52507
|
+
"description": "Show or hide the loading indicator."
|
|
52565
52508
|
},
|
|
52566
52509
|
{
|
|
52567
52510
|
"kind": "method",
|
|
52568
|
-
"name": "
|
|
52511
|
+
"name": "handleInput",
|
|
52569
52512
|
"privacy": "private",
|
|
52570
52513
|
"return": {
|
|
52571
52514
|
"type": {
|
|
52572
52515
|
"text": "void"
|
|
52573
52516
|
}
|
|
52574
52517
|
},
|
|
52575
|
-
"
|
|
52518
|
+
"parameters": [
|
|
52519
|
+
{
|
|
52520
|
+
"name": "e",
|
|
52521
|
+
"type": {
|
|
52522
|
+
"text": "Event"
|
|
52523
|
+
}
|
|
52524
|
+
}
|
|
52525
|
+
]
|
|
52576
52526
|
},
|
|
52577
52527
|
{
|
|
52578
52528
|
"kind": "method",
|
|
52579
|
-
"name": "
|
|
52529
|
+
"name": "selectResult",
|
|
52580
52530
|
"privacy": "private",
|
|
52581
52531
|
"return": {
|
|
52582
52532
|
"type": {
|
|
52583
52533
|
"text": "void"
|
|
52584
52534
|
}
|
|
52585
|
-
}
|
|
52586
|
-
},
|
|
52587
|
-
{
|
|
52588
|
-
"kind": "field",
|
|
52589
|
-
"name": "activeTheme",
|
|
52590
|
-
"type": {
|
|
52591
|
-
"text": "EspalierTheme"
|
|
52592
52535
|
},
|
|
52593
|
-
"
|
|
52594
|
-
|
|
52595
|
-
|
|
52536
|
+
"parameters": [
|
|
52537
|
+
{
|
|
52538
|
+
"name": "result",
|
|
52539
|
+
"type": {
|
|
52540
|
+
"text": "SearchResult"
|
|
52541
|
+
}
|
|
52542
|
+
}
|
|
52543
|
+
]
|
|
52596
52544
|
},
|
|
52597
52545
|
{
|
|
52598
52546
|
"kind": "method",
|
|
52599
|
-
"name": "
|
|
52547
|
+
"name": "handleKeyDown",
|
|
52600
52548
|
"privacy": "private",
|
|
52601
52549
|
"return": {
|
|
52602
52550
|
"type": {
|
|
52603
52551
|
"text": "void"
|
|
52604
52552
|
}
|
|
52605
52553
|
},
|
|
52606
|
-
"
|
|
52607
|
-
|
|
52608
|
-
|
|
52609
|
-
|
|
52610
|
-
|
|
52611
|
-
|
|
52612
|
-
|
|
52554
|
+
"parameters": [
|
|
52555
|
+
{
|
|
52556
|
+
"name": "ev",
|
|
52557
|
+
"type": {
|
|
52558
|
+
"text": "KeyboardEvent"
|
|
52559
|
+
}
|
|
52560
|
+
}
|
|
52561
|
+
]
|
|
52613
52562
|
},
|
|
52614
52563
|
{
|
|
52615
52564
|
"kind": "method",
|
|
52616
|
-
"name": "
|
|
52565
|
+
"name": "handleBackdropClick",
|
|
52617
52566
|
"privacy": "private",
|
|
52618
52567
|
"return": {
|
|
52619
52568
|
"type": {
|
|
52620
52569
|
"text": "void"
|
|
52621
52570
|
}
|
|
52622
|
-
}
|
|
52571
|
+
},
|
|
52572
|
+
"parameters": [
|
|
52573
|
+
{
|
|
52574
|
+
"name": "ev",
|
|
52575
|
+
"type": {
|
|
52576
|
+
"text": "MouseEvent"
|
|
52577
|
+
}
|
|
52578
|
+
}
|
|
52579
|
+
]
|
|
52623
52580
|
},
|
|
52624
52581
|
{
|
|
52625
52582
|
"kind": "method",
|
|
52626
|
-
"name": "
|
|
52583
|
+
"name": "scrollActiveIntoView",
|
|
52627
52584
|
"privacy": "private",
|
|
52628
52585
|
"return": {
|
|
52629
52586
|
"type": {
|
|
@@ -52632,479 +52589,500 @@
|
|
|
52632
52589
|
}
|
|
52633
52590
|
},
|
|
52634
52591
|
{
|
|
52635
|
-
"kind": "
|
|
52636
|
-
"name": "
|
|
52592
|
+
"kind": "field",
|
|
52593
|
+
"name": "hasListbox",
|
|
52594
|
+
"type": {
|
|
52595
|
+
"text": "boolean"
|
|
52596
|
+
},
|
|
52637
52597
|
"privacy": "private",
|
|
52638
|
-
"
|
|
52639
|
-
|
|
52640
|
-
"text": "void"
|
|
52641
|
-
}
|
|
52642
|
-
}
|
|
52598
|
+
"description": "Whether the listbox is currently rendered in the DOM.",
|
|
52599
|
+
"readonly": true
|
|
52643
52600
|
},
|
|
52644
52601
|
{
|
|
52645
|
-
"kind": "
|
|
52646
|
-
"name": "
|
|
52602
|
+
"kind": "field",
|
|
52603
|
+
"name": "listboxId",
|
|
52604
|
+
"type": {
|
|
52605
|
+
"text": "string"
|
|
52606
|
+
},
|
|
52647
52607
|
"privacy": "private",
|
|
52648
|
-
"
|
|
52649
|
-
"type": {
|
|
52650
|
-
"text": "\"light\" | \"dark\""
|
|
52651
|
-
}
|
|
52652
|
-
}
|
|
52608
|
+
"readonly": true
|
|
52653
52609
|
},
|
|
52654
52610
|
{
|
|
52655
52611
|
"kind": "method",
|
|
52656
|
-
"name": "
|
|
52612
|
+
"name": "optionId",
|
|
52657
52613
|
"privacy": "private",
|
|
52658
52614
|
"return": {
|
|
52659
52615
|
"type": {
|
|
52660
|
-
"text": "
|
|
52616
|
+
"text": "string"
|
|
52661
52617
|
}
|
|
52662
|
-
}
|
|
52618
|
+
},
|
|
52619
|
+
"parameters": [
|
|
52620
|
+
{
|
|
52621
|
+
"name": "index",
|
|
52622
|
+
"type": {
|
|
52623
|
+
"text": "number"
|
|
52624
|
+
}
|
|
52625
|
+
}
|
|
52626
|
+
]
|
|
52663
52627
|
},
|
|
52664
52628
|
{
|
|
52665
|
-
"kind": "
|
|
52666
|
-
"name": "
|
|
52629
|
+
"kind": "method",
|
|
52630
|
+
"name": "renderResults",
|
|
52667
52631
|
"privacy": "private"
|
|
52668
52632
|
},
|
|
52669
52633
|
{
|
|
52670
52634
|
"kind": "field",
|
|
52671
|
-
"name": "
|
|
52672
|
-
"static": true,
|
|
52673
|
-
"default": "` /* ── Base typography ──────────────────────────────────── */ esp-root { font-family: var(--esp-font-body); font-weight: var(--esp-font-weight-body); line-height: 1.5; font-size: var(--esp-type-normal); color: var(--esp-color-text); } /* ── Lists ────────────────────────────────────────────── */ esp-root ul[role=\"list\"], esp-root ol[role=\"list\"] { list-style: none; } esp-root ul li::marker, esp-root ol li::marker { font-weight: bold; } /* ── Form controls ────────────────────────────────────── */ esp-root input, esp-root select, esp-root button { font-family: var(--esp-font-body); } /* ── Links ────────────────────────────────────────────── */ esp-root a:not([class]) { text-decoration-skip-ink: auto; font-weight: bold; color: var(--esp-color-link); } esp-root a { text-decoration: underline; text-decoration-skip-ink: auto; color: var(--esp-color-link); } esp-root a:hover { background-color: var(--esp-color-link-hover-bg); color: var(--esp-color-link-hover); text-decoration: none; } /* ── Inherited text styles ────────────────────────────── */ esp-root input, esp-root button, esp-root textarea, esp-root select, esp-root p, esp-root ul, esp-root li { font-family: var(--esp-font-body); color: var(--esp-color-text); font-size: inherit; } esp-root textarea:not([rows]) { min-height: 10em; } /* ── Headings ─────────────────────────────────────────── */ esp-root h1, esp-root h2, esp-root h3, esp-root h4, esp-root h5 { font-family: var(--esp-font-headings); font-weight: var(--esp-font-weight-headings); color: var(--esp-color-headings); margin: var(--esp-size-small-to-normal) 0 var(--esp-size-tiny-to-small); } esp-root h5 { font-size: var(--esp-type-small); line-height: 1.4; } esp-root h4 { font-size: var(--esp-type-medium); line-height: 1.3; } esp-root h3 { font-size: var(--esp-type-big); line-height: 1.2; } esp-root h2 { font-size: var(--esp-type-large); line-height: 1.15; } esp-root h1 { font-size: var(--esp-type-huge); line-height: 1.1; } /* ── Code / Pre ───────────────────────────────────────── */ esp-root pre, esp-root code { font-family: var(--esp-font-monospace); font-weight: var(--esp-font-weight-monospace); } esp-root code { font-size: var(--esp-type-small); background: var(--esp-color-layer-1); border-radius: var(--esp-size-border-radius); padding: 0 0.35em; display: inline-block; border: 1px dotted var(--esp-color-border); } esp-root pre { background-color: var(--esp-color-layer-1); border-radius: var(--esp-size-border-radius); border: 1px dotted var(--esp-color-border); } esp-root pre > code { font-size: var(--esp-type-tiny); display: block; background: none; border: none; hyphens: none; tab-size: 2; white-space: pre; padding: var(--esp-size-padding); overflow: auto; line-height: 1.8; } /* ── Images ────────────────────────────────────────────── */ esp-root img, esp-root picture { max-width: 100%; display: block; } `",
|
|
52674
|
-
"description": "Light-DOM styles injected into `document.head` so that\nslotted content (headings, links, code blocks, lists, etc.)\ninherits the design-system tokens defined on `:host`.\nSelectors are scoped to `esp-root` descendants to avoid\nleaking into content outside the root."
|
|
52675
|
-
}
|
|
52676
|
-
],
|
|
52677
|
-
"attributes": [
|
|
52678
|
-
{
|
|
52679
|
-
"name": "light-theme",
|
|
52635
|
+
"name": "seedColorBacker",
|
|
52680
52636
|
"type": {
|
|
52681
52637
|
"text": "string"
|
|
52682
52638
|
},
|
|
52683
|
-
"
|
|
52684
|
-
"
|
|
52685
|
-
"
|
|
52639
|
+
"privacy": "private",
|
|
52640
|
+
"default": "\"oklch(0.7 0.125 216)\"",
|
|
52641
|
+
"inheritedFrom": {
|
|
52642
|
+
"name": "EspalierElementBase",
|
|
52643
|
+
"module": "dist/shared/esp-element-base.js"
|
|
52644
|
+
}
|
|
52686
52645
|
},
|
|
52687
52646
|
{
|
|
52688
|
-
"
|
|
52647
|
+
"kind": "field",
|
|
52648
|
+
"name": "espRoot",
|
|
52689
52649
|
"type": {
|
|
52690
|
-
"text": "
|
|
52650
|
+
"text": "EspalierRoot | null"
|
|
52691
52651
|
},
|
|
52692
|
-
"
|
|
52693
|
-
"
|
|
52694
|
-
"
|
|
52652
|
+
"privacy": "private",
|
|
52653
|
+
"default": "null",
|
|
52654
|
+
"inheritedFrom": {
|
|
52655
|
+
"name": "EspalierElementBase",
|
|
52656
|
+
"module": "dist/shared/esp-element-base.js"
|
|
52657
|
+
}
|
|
52695
52658
|
},
|
|
52696
52659
|
{
|
|
52697
|
-
"
|
|
52698
|
-
"
|
|
52699
|
-
|
|
52700
|
-
|
|
52701
|
-
"default": "
|
|
52702
|
-
"
|
|
52703
|
-
|
|
52660
|
+
"kind": "field",
|
|
52661
|
+
"name": "variantTokenOriginalValues",
|
|
52662
|
+
"privacy": "private",
|
|
52663
|
+
"readonly": true,
|
|
52664
|
+
"default": "new Map< string, { generatedPriority: string; generatedValue: string; originalPriority: string; originalValue: string | null; } >()",
|
|
52665
|
+
"inheritedFrom": {
|
|
52666
|
+
"name": "EspalierElementBase",
|
|
52667
|
+
"module": "dist/shared/esp-element-base.js"
|
|
52668
|
+
}
|
|
52704
52669
|
},
|
|
52705
52670
|
{
|
|
52706
|
-
"
|
|
52671
|
+
"kind": "field",
|
|
52672
|
+
"name": "rootEventSubscriptionsActive",
|
|
52707
52673
|
"type": {
|
|
52708
|
-
"text": "
|
|
52674
|
+
"text": "boolean"
|
|
52709
52675
|
},
|
|
52710
|
-
"
|
|
52711
|
-
"
|
|
52712
|
-
"
|
|
52676
|
+
"privacy": "private",
|
|
52677
|
+
"default": "false",
|
|
52678
|
+
"inheritedFrom": {
|
|
52679
|
+
"name": "EspalierElementBase",
|
|
52680
|
+
"module": "dist/shared/esp-element-base.js"
|
|
52681
|
+
}
|
|
52713
52682
|
},
|
|
52714
52683
|
{
|
|
52715
|
-
"
|
|
52684
|
+
"kind": "field",
|
|
52685
|
+
"name": "subscribedRoot",
|
|
52716
52686
|
"type": {
|
|
52717
|
-
"text": "
|
|
52687
|
+
"text": "EspalierRoot | null"
|
|
52718
52688
|
},
|
|
52719
|
-
"
|
|
52720
|
-
"
|
|
52721
|
-
"
|
|
52689
|
+
"privacy": "private",
|
|
52690
|
+
"default": "null",
|
|
52691
|
+
"inheritedFrom": {
|
|
52692
|
+
"name": "EspalierElementBase",
|
|
52693
|
+
"module": "dist/shared/esp-element-base.js"
|
|
52694
|
+
}
|
|
52722
52695
|
},
|
|
52723
52696
|
{
|
|
52724
|
-
"
|
|
52697
|
+
"kind": "field",
|
|
52698
|
+
"name": "rootEventUnsubscribers",
|
|
52725
52699
|
"type": {
|
|
52726
|
-
"text": "
|
|
52700
|
+
"text": "Array<() => void>"
|
|
52727
52701
|
},
|
|
52728
|
-
"
|
|
52729
|
-
"
|
|
52730
|
-
"
|
|
52702
|
+
"privacy": "private",
|
|
52703
|
+
"default": "[]",
|
|
52704
|
+
"inheritedFrom": {
|
|
52705
|
+
"name": "EspalierElementBase",
|
|
52706
|
+
"module": "dist/shared/esp-element-base.js"
|
|
52707
|
+
}
|
|
52731
52708
|
},
|
|
52732
52709
|
{
|
|
52733
|
-
"
|
|
52710
|
+
"kind": "field",
|
|
52711
|
+
"name": "variantBacker",
|
|
52734
52712
|
"type": {
|
|
52735
|
-
"text": "
|
|
52713
|
+
"text": "EspalierVariant"
|
|
52736
52714
|
},
|
|
52737
|
-
"
|
|
52738
|
-
"
|
|
52739
|
-
"
|
|
52715
|
+
"privacy": "protected",
|
|
52716
|
+
"default": "\"primary\"",
|
|
52717
|
+
"inheritedFrom": {
|
|
52718
|
+
"name": "EspalierElementBase",
|
|
52719
|
+
"module": "dist/shared/esp-element-base.js"
|
|
52720
|
+
}
|
|
52740
52721
|
},
|
|
52741
52722
|
{
|
|
52742
|
-
"
|
|
52723
|
+
"kind": "field",
|
|
52724
|
+
"name": "seedColor",
|
|
52743
52725
|
"type": {
|
|
52744
|
-
"text": "
|
|
52726
|
+
"text": "string"
|
|
52745
52727
|
},
|
|
52746
|
-
"
|
|
52747
|
-
"default": "\"light\"",
|
|
52748
|
-
"fieldName": "scheme"
|
|
52749
|
-
}
|
|
52750
|
-
],
|
|
52751
|
-
"superclass": {
|
|
52752
|
-
"name": "LitElement",
|
|
52753
|
-
"package": "lit"
|
|
52754
|
-
},
|
|
52755
|
-
"tagName": "esp-root",
|
|
52756
|
-
"customElement": true,
|
|
52757
|
-
"docPageTitle": {
|
|
52758
|
-
"name": "Root",
|
|
52759
|
-
"description": ""
|
|
52760
|
-
},
|
|
52761
|
-
"docUrl": {
|
|
52762
|
-
"name": "/components/root",
|
|
52763
|
-
"description": ""
|
|
52764
|
-
},
|
|
52765
|
-
"menuGroup": {
|
|
52766
|
-
"name": "Structure",
|
|
52767
|
-
"description": ""
|
|
52768
|
-
},
|
|
52769
|
-
"menuOrder": {
|
|
52770
|
-
"name": "1",
|
|
52771
|
-
"description": ""
|
|
52772
|
-
},
|
|
52773
|
-
"menuLabel": {
|
|
52774
|
-
"name": "Root",
|
|
52775
|
-
"description": ""
|
|
52776
|
-
},
|
|
52777
|
-
"menuIcon": {
|
|
52778
|
-
"name": "building",
|
|
52779
|
-
"description": ""
|
|
52780
|
-
}
|
|
52781
|
-
}
|
|
52782
|
-
],
|
|
52783
|
-
"exports": [
|
|
52784
|
-
{
|
|
52785
|
-
"kind": "js",
|
|
52786
|
-
"name": "registerImageTexture",
|
|
52787
|
-
"declaration": {
|
|
52788
|
-
"name": "registerImageTexture",
|
|
52789
|
-
"module": "../shared/image-texture-registry.js"
|
|
52790
|
-
}
|
|
52791
|
-
},
|
|
52792
|
-
{
|
|
52793
|
-
"kind": "js",
|
|
52794
|
-
"name": "registeredImageTextures",
|
|
52795
|
-
"declaration": {
|
|
52796
|
-
"name": "registeredImageTextures",
|
|
52797
|
-
"module": "../shared/image-texture-registry.js"
|
|
52798
|
-
}
|
|
52799
|
-
},
|
|
52800
|
-
{
|
|
52801
|
-
"kind": "js",
|
|
52802
|
-
"name": "BUILT_IN_IMAGE_TEXTURES",
|
|
52803
|
-
"declaration": {
|
|
52804
|
-
"name": "BUILT_IN_IMAGE_TEXTURES",
|
|
52805
|
-
"module": "../shared/image-texture-registry.js"
|
|
52806
|
-
}
|
|
52807
|
-
},
|
|
52808
|
-
{
|
|
52809
|
-
"kind": "js",
|
|
52810
|
-
"name": "ImageTextureDefinition",
|
|
52811
|
-
"declaration": {
|
|
52812
|
-
"name": "ImageTextureDefinition",
|
|
52813
|
-
"module": "../shared/image-texture-registry.js"
|
|
52814
|
-
}
|
|
52815
|
-
},
|
|
52816
|
-
{
|
|
52817
|
-
"kind": "js",
|
|
52818
|
-
"name": "SchemeEvents",
|
|
52819
|
-
"declaration": {
|
|
52820
|
-
"name": "SchemeEvents",
|
|
52821
|
-
"module": "../shared/bus-events.js"
|
|
52822
|
-
}
|
|
52823
|
-
},
|
|
52824
|
-
{
|
|
52825
|
-
"kind": "js",
|
|
52826
|
-
"name": "EspalierRoot",
|
|
52827
|
-
"declaration": {
|
|
52828
|
-
"name": "EspalierRoot",
|
|
52829
|
-
"module": "dist/root/esp-root.js"
|
|
52830
|
-
}
|
|
52831
|
-
},
|
|
52832
|
-
{
|
|
52833
|
-
"kind": "custom-element-definition",
|
|
52834
|
-
"name": "esp-root",
|
|
52835
|
-
"declaration": {
|
|
52836
|
-
"name": "EspalierRoot",
|
|
52837
|
-
"module": "dist/root/esp-root.js"
|
|
52838
|
-
}
|
|
52839
|
-
}
|
|
52840
|
-
]
|
|
52841
|
-
},
|
|
52842
|
-
{
|
|
52843
|
-
"kind": "javascript-module",
|
|
52844
|
-
"path": "dist/search/esp-search.js",
|
|
52845
|
-
"declarations": [
|
|
52846
|
-
{
|
|
52847
|
-
"kind": "class",
|
|
52848
|
-
"description": "Modal search overlay with a Cmd+K / Ctrl+K interaction pattern.\n\n`<esp-search>` is a pure UI shell with no search-engine dependency.\nConsumers wire it to any search backend (Pagefind, MiniSearch, API,\netc.) by listening for `search-requested` events and calling\n`setResults()` with the matches.",
|
|
52849
|
-
"name": "EspalierSearch",
|
|
52850
|
-
"cssProperties": [
|
|
52851
|
-
{
|
|
52852
|
-
"description": "Maximum width of the search panel. Defaults to `40rem`.",
|
|
52853
|
-
"name": "--esp-search-max-width"
|
|
52854
|
-
},
|
|
52855
|
-
{
|
|
52856
|
-
"description": "Maximum height of the results list. Defaults to `60vh`.",
|
|
52857
|
-
"name": "--esp-search-max-height"
|
|
52858
|
-
},
|
|
52859
|
-
{
|
|
52860
|
-
"description": "Backdrop color behind the panel. Defaults to `oklch(0.15 0 0 / 0.6)`.",
|
|
52861
|
-
"name": "--esp-search-backdrop"
|
|
52862
|
-
},
|
|
52863
|
-
{
|
|
52864
|
-
"description": "Background color of the search panel. Defaults to `var(--esp-color-layer-1)`.",
|
|
52865
|
-
"name": "--esp-search-panel-background"
|
|
52866
|
-
},
|
|
52867
|
-
{
|
|
52868
|
-
"description": "Box shadow of the search panel.",
|
|
52869
|
-
"name": "--esp-search-panel-shadow"
|
|
52870
|
-
},
|
|
52871
|
-
{
|
|
52872
|
-
"description": "Divider and loading-track color used by the search panel. Defaults to `var(--esp-color-border)`.",
|
|
52873
|
-
"name": "--esp-search-border-color"
|
|
52874
|
-
},
|
|
52875
|
-
{
|
|
52876
|
-
"description": "Main text color used by the search UI. Defaults to `var(--esp-color-text)`.",
|
|
52877
|
-
"name": "--esp-search-text-color"
|
|
52878
|
-
},
|
|
52879
|
-
{
|
|
52880
|
-
"description": "Muted text color for placeholders, excerpts, and empty states.",
|
|
52881
|
-
"name": "--esp-search-muted-color"
|
|
52882
|
-
},
|
|
52883
|
-
{
|
|
52884
|
-
"description": "Title color for result rows. Defaults to `var(--esp-color-headings)`.",
|
|
52885
|
-
"name": "--esp-search-title-color"
|
|
52886
|
-
},
|
|
52887
|
-
{
|
|
52888
|
-
"description": "Background color of the active result row. Defaults to `var(--esp-color-layer-2)`.",
|
|
52889
|
-
"name": "--esp-search-active-background"
|
|
52890
|
-
},
|
|
52891
|
-
{
|
|
52892
|
-
"description": "Background color applied to `<mark>` highlights inside excerpts.",
|
|
52893
|
-
"name": "--esp-search-highlight-background"
|
|
52894
|
-
},
|
|
52895
|
-
{
|
|
52896
|
-
"description": "Accent color of the loading spinner. Defaults to `var(--esp-color-primary)`.",
|
|
52897
|
-
"name": "--esp-search-loading-indicator-color"
|
|
52898
|
-
},
|
|
52899
|
-
{
|
|
52900
|
-
"description": "Track color of the loading spinner. Defaults to `var(--esp-search-border-color)`.",
|
|
52901
|
-
"name": "--esp-search-loading-indicator-track-color"
|
|
52902
|
-
},
|
|
52903
|
-
{
|
|
52904
|
-
"description": "Background color of the shared field shell. Defaults to `var(--esp-color-layer-2)`.",
|
|
52905
|
-
"name": "--esp-field-background",
|
|
52728
|
+
"privacy": "public",
|
|
52906
52729
|
"inheritedFrom": {
|
|
52907
52730
|
"name": "EspalierElementBase",
|
|
52908
52731
|
"module": "dist/shared/esp-element-base.js"
|
|
52909
52732
|
}
|
|
52910
52733
|
},
|
|
52911
52734
|
{
|
|
52912
|
-
"
|
|
52913
|
-
"name": "
|
|
52735
|
+
"kind": "field",
|
|
52736
|
+
"name": "correlationId",
|
|
52737
|
+
"privacy": "public",
|
|
52914
52738
|
"inheritedFrom": {
|
|
52915
52739
|
"name": "EspalierElementBase",
|
|
52916
52740
|
"module": "dist/shared/esp-element-base.js"
|
|
52917
52741
|
}
|
|
52918
52742
|
},
|
|
52919
52743
|
{
|
|
52920
|
-
"
|
|
52921
|
-
"name": "
|
|
52744
|
+
"kind": "method",
|
|
52745
|
+
"name": "focusResolvedElementAfterUpdate",
|
|
52746
|
+
"privacy": "protected",
|
|
52747
|
+
"return": {
|
|
52748
|
+
"type": {
|
|
52749
|
+
"text": "void"
|
|
52750
|
+
}
|
|
52751
|
+
},
|
|
52752
|
+
"parameters": [
|
|
52753
|
+
{
|
|
52754
|
+
"name": "resolveTarget",
|
|
52755
|
+
"type": {
|
|
52756
|
+
"text": "() => HTMLElement | null | undefined"
|
|
52757
|
+
}
|
|
52758
|
+
},
|
|
52759
|
+
{
|
|
52760
|
+
"name": "options",
|
|
52761
|
+
"optional": true,
|
|
52762
|
+
"type": {
|
|
52763
|
+
"text": "FocusOptions"
|
|
52764
|
+
}
|
|
52765
|
+
}
|
|
52766
|
+
],
|
|
52922
52767
|
"inheritedFrom": {
|
|
52923
52768
|
"name": "EspalierElementBase",
|
|
52924
52769
|
"module": "dist/shared/esp-element-base.js"
|
|
52925
52770
|
}
|
|
52926
52771
|
},
|
|
52927
52772
|
{
|
|
52928
|
-
"
|
|
52929
|
-
"name": "
|
|
52773
|
+
"kind": "method",
|
|
52774
|
+
"name": "focusShadowElementAfterUpdate",
|
|
52775
|
+
"privacy": "protected",
|
|
52776
|
+
"return": {
|
|
52777
|
+
"type": {
|
|
52778
|
+
"text": "void"
|
|
52779
|
+
}
|
|
52780
|
+
},
|
|
52781
|
+
"parameters": [
|
|
52782
|
+
{
|
|
52783
|
+
"name": "selector",
|
|
52784
|
+
"type": {
|
|
52785
|
+
"text": "string"
|
|
52786
|
+
}
|
|
52787
|
+
},
|
|
52788
|
+
{
|
|
52789
|
+
"name": "options",
|
|
52790
|
+
"optional": true,
|
|
52791
|
+
"type": {
|
|
52792
|
+
"text": "FocusOptions"
|
|
52793
|
+
}
|
|
52794
|
+
}
|
|
52795
|
+
],
|
|
52930
52796
|
"inheritedFrom": {
|
|
52931
52797
|
"name": "EspalierElementBase",
|
|
52932
52798
|
"module": "dist/shared/esp-element-base.js"
|
|
52933
52799
|
}
|
|
52934
52800
|
},
|
|
52935
52801
|
{
|
|
52936
|
-
"
|
|
52937
|
-
"name": "
|
|
52802
|
+
"kind": "method",
|
|
52803
|
+
"name": "emitValueChanged",
|
|
52804
|
+
"privacy": "protected",
|
|
52805
|
+
"return": {
|
|
52806
|
+
"type": {
|
|
52807
|
+
"text": "void"
|
|
52808
|
+
}
|
|
52809
|
+
},
|
|
52810
|
+
"parameters": [
|
|
52811
|
+
{
|
|
52812
|
+
"name": "detail",
|
|
52813
|
+
"type": {
|
|
52814
|
+
"text": "T"
|
|
52815
|
+
}
|
|
52816
|
+
}
|
|
52817
|
+
],
|
|
52938
52818
|
"inheritedFrom": {
|
|
52939
52819
|
"name": "EspalierElementBase",
|
|
52940
52820
|
"module": "dist/shared/esp-element-base.js"
|
|
52941
52821
|
}
|
|
52942
52822
|
},
|
|
52943
52823
|
{
|
|
52944
|
-
"
|
|
52945
|
-
"name": "
|
|
52824
|
+
"kind": "field",
|
|
52825
|
+
"name": "scheme",
|
|
52826
|
+
"type": {
|
|
52827
|
+
"text": "\"dark\" | \"light\""
|
|
52828
|
+
},
|
|
52829
|
+
"privacy": "public",
|
|
52830
|
+
"default": "\"light\"",
|
|
52831
|
+
"description": "The scheme to use for the component. This property is used internally\nto control the light/dark scheme so it matches the scheme of\n[esp-root](/components/root). It should not be set manually, it\nexists as an attribute for styling purposes.",
|
|
52832
|
+
"attribute": "scheme",
|
|
52833
|
+
"reflects": true,
|
|
52946
52834
|
"inheritedFrom": {
|
|
52947
52835
|
"name": "EspalierElementBase",
|
|
52948
52836
|
"module": "dist/shared/esp-element-base.js"
|
|
52949
52837
|
}
|
|
52950
52838
|
},
|
|
52951
52839
|
{
|
|
52952
|
-
"
|
|
52953
|
-
"name": "
|
|
52840
|
+
"kind": "field",
|
|
52841
|
+
"name": "variant",
|
|
52842
|
+
"type": {
|
|
52843
|
+
"text": "EspalierVariant"
|
|
52844
|
+
},
|
|
52845
|
+
"privacy": "public",
|
|
52846
|
+
"description": "The [color variant](/guides/color/variants) of the element.",
|
|
52847
|
+
"attribute": "variant",
|
|
52848
|
+
"reflects": true,
|
|
52954
52849
|
"inheritedFrom": {
|
|
52955
52850
|
"name": "EspalierElementBase",
|
|
52956
52851
|
"module": "dist/shared/esp-element-base.js"
|
|
52957
52852
|
}
|
|
52958
|
-
}
|
|
52959
|
-
],
|
|
52960
|
-
"members": [
|
|
52961
|
-
{
|
|
52962
|
-
"kind": "field",
|
|
52963
|
-
"name": "placeholder",
|
|
52964
|
-
"type": {
|
|
52965
|
-
"text": "string"
|
|
52966
|
-
},
|
|
52967
|
-
"default": "\"Search\\u2026\"",
|
|
52968
|
-
"description": "Placeholder text for the search input.",
|
|
52969
|
-
"attribute": "placeholder"
|
|
52970
52853
|
},
|
|
52971
52854
|
{
|
|
52972
|
-
"kind": "
|
|
52973
|
-
"name": "
|
|
52974
|
-
"type": {
|
|
52975
|
-
"text": "boolean"
|
|
52976
|
-
},
|
|
52855
|
+
"kind": "method",
|
|
52856
|
+
"name": "syncRootFromDom",
|
|
52977
52857
|
"privacy": "private",
|
|
52978
|
-
"
|
|
52858
|
+
"return": {
|
|
52859
|
+
"type": {
|
|
52860
|
+
"text": "EspalierRoot | null"
|
|
52861
|
+
}
|
|
52862
|
+
},
|
|
52863
|
+
"parameters": [
|
|
52864
|
+
{
|
|
52865
|
+
"name": "throwIfMissing",
|
|
52866
|
+
"type": {
|
|
52867
|
+
"text": "boolean"
|
|
52868
|
+
}
|
|
52869
|
+
}
|
|
52870
|
+
],
|
|
52871
|
+
"inheritedFrom": {
|
|
52872
|
+
"name": "EspalierElementBase",
|
|
52873
|
+
"module": "dist/shared/esp-element-base.js"
|
|
52874
|
+
}
|
|
52979
52875
|
},
|
|
52980
52876
|
{
|
|
52981
|
-
"kind": "
|
|
52982
|
-
"name": "
|
|
52983
|
-
"type": {
|
|
52984
|
-
"text": "SearchResult[]"
|
|
52985
|
-
},
|
|
52877
|
+
"kind": "method",
|
|
52878
|
+
"name": "subscribeToRootEvents",
|
|
52986
52879
|
"privacy": "private",
|
|
52987
|
-
"
|
|
52880
|
+
"return": {
|
|
52881
|
+
"type": {
|
|
52882
|
+
"text": "void"
|
|
52883
|
+
}
|
|
52884
|
+
},
|
|
52885
|
+
"parameters": [
|
|
52886
|
+
{
|
|
52887
|
+
"name": "root",
|
|
52888
|
+
"type": {
|
|
52889
|
+
"text": "EspalierRoot"
|
|
52890
|
+
}
|
|
52891
|
+
}
|
|
52892
|
+
],
|
|
52893
|
+
"inheritedFrom": {
|
|
52894
|
+
"name": "EspalierElementBase",
|
|
52895
|
+
"module": "dist/shared/esp-element-base.js"
|
|
52896
|
+
}
|
|
52988
52897
|
},
|
|
52989
52898
|
{
|
|
52990
|
-
"kind": "
|
|
52991
|
-
"name": "
|
|
52992
|
-
"type": {
|
|
52993
|
-
"text": "boolean"
|
|
52994
|
-
},
|
|
52899
|
+
"kind": "method",
|
|
52900
|
+
"name": "unsubscribeFromRootEvents",
|
|
52995
52901
|
"privacy": "private",
|
|
52996
|
-
"
|
|
52902
|
+
"return": {
|
|
52903
|
+
"type": {
|
|
52904
|
+
"text": "void"
|
|
52905
|
+
}
|
|
52906
|
+
},
|
|
52907
|
+
"inheritedFrom": {
|
|
52908
|
+
"name": "EspalierElementBase",
|
|
52909
|
+
"module": "dist/shared/esp-element-base.js"
|
|
52910
|
+
}
|
|
52997
52911
|
},
|
|
52998
52912
|
{
|
|
52999
52913
|
"kind": "field",
|
|
53000
|
-
"name": "
|
|
53001
|
-
"type": {
|
|
53002
|
-
"text": "string"
|
|
53003
|
-
},
|
|
52914
|
+
"name": "handleSeedColorChanged",
|
|
53004
52915
|
"privacy": "private",
|
|
53005
|
-
"
|
|
52916
|
+
"inheritedFrom": {
|
|
52917
|
+
"name": "EspalierElementBase",
|
|
52918
|
+
"module": "dist/shared/esp-element-base.js"
|
|
52919
|
+
}
|
|
53006
52920
|
},
|
|
53007
52921
|
{
|
|
53008
52922
|
"kind": "field",
|
|
53009
|
-
"name": "
|
|
53010
|
-
"type": {
|
|
53011
|
-
"text": "number"
|
|
53012
|
-
},
|
|
52923
|
+
"name": "handleSchemeChanged",
|
|
53013
52924
|
"privacy": "private",
|
|
53014
|
-
"
|
|
52925
|
+
"inheritedFrom": {
|
|
52926
|
+
"name": "EspalierElementBase",
|
|
52927
|
+
"module": "dist/shared/esp-element-base.js"
|
|
52928
|
+
}
|
|
53015
52929
|
},
|
|
53016
52930
|
{
|
|
53017
52931
|
"kind": "field",
|
|
53018
|
-
"name": "
|
|
53019
|
-
"privacy": "private"
|
|
52932
|
+
"name": "handleThemeChanged",
|
|
52933
|
+
"privacy": "private",
|
|
52934
|
+
"inheritedFrom": {
|
|
52935
|
+
"name": "EspalierElementBase",
|
|
52936
|
+
"module": "dist/shared/esp-element-base.js"
|
|
52937
|
+
}
|
|
53020
52938
|
},
|
|
53021
52939
|
{
|
|
53022
52940
|
"kind": "field",
|
|
53023
|
-
"name": "
|
|
53024
|
-
"privacy": "private"
|
|
52941
|
+
"name": "handleIconSpriteUrlChanged",
|
|
52942
|
+
"privacy": "private",
|
|
52943
|
+
"inheritedFrom": {
|
|
52944
|
+
"name": "EspalierElementBase",
|
|
52945
|
+
"module": "dist/shared/esp-element-base.js"
|
|
52946
|
+
}
|
|
53025
52947
|
},
|
|
53026
52948
|
{
|
|
53027
|
-
"kind": "
|
|
53028
|
-
"name": "
|
|
53029
|
-
"privacy": "
|
|
52949
|
+
"kind": "method",
|
|
52950
|
+
"name": "traverseToClosest",
|
|
52951
|
+
"privacy": "public",
|
|
52952
|
+
"return": {
|
|
52953
|
+
"type": {
|
|
52954
|
+
"text": ""
|
|
52955
|
+
}
|
|
52956
|
+
},
|
|
52957
|
+
"parameters": [
|
|
52958
|
+
{
|
|
52959
|
+
"name": "selector",
|
|
52960
|
+
"type": {
|
|
52961
|
+
"text": "string"
|
|
52962
|
+
},
|
|
52963
|
+
"description": "The selector of the element to look for"
|
|
52964
|
+
}
|
|
52965
|
+
],
|
|
52966
|
+
"description": "Traverse up the DOM tree to find the closest element that\nmatches the selector. This method is aware of shadow DOM\nboundaries and will traverse through them to find the element.",
|
|
52967
|
+
"inheritedFrom": {
|
|
52968
|
+
"name": "EspalierElementBase",
|
|
52969
|
+
"module": "dist/shared/esp-element-base.js"
|
|
52970
|
+
}
|
|
53030
52971
|
},
|
|
53031
52972
|
{
|
|
53032
52973
|
"kind": "field",
|
|
53033
|
-
"name": "
|
|
52974
|
+
"name": "textContrast",
|
|
52975
|
+
"type": {
|
|
52976
|
+
"text": "Partial<\n Record<SemanticColorName, { bg: SemanticColorName; targetLc: number }>\n >"
|
|
52977
|
+
},
|
|
53034
52978
|
"privacy": "private",
|
|
52979
|
+
"static": true,
|
|
53035
52980
|
"readonly": true,
|
|
53036
|
-
"default": "
|
|
53037
|
-
"description": "
|
|
52981
|
+
"default": "{ text: { bg: \"background\", targetLc: 75 }, dangerText: { bg: \"background\", targetLc: 75 }, headings: { bg: \"background\", targetLc: 60 }, headingsHover: { bg: \"background\", targetLc: 60 }, link: { bg: \"background\", targetLc: 75 }, linkHover: { bg: \"background\", targetLc: 75 }, actionText: { bg: \"actionBackground\", targetLc: 75 }, inputCaret: { bg: \"layer2\", targetLc: 60 }, inputSelection: { bg: \"inputSelectionBg\", targetLc: 60 }, }",
|
|
52982
|
+
"description": "Text tokens that require APCA contrast enforcement.\n\nEach entry maps a text-bearing semantic token to:\n - `bg`: the semantic token it sits on (reference color)\n - `targetLc`: the minimum |Lc| the text must achieve",
|
|
52983
|
+
"inheritedFrom": {
|
|
52984
|
+
"name": "EspalierElementBase",
|
|
52985
|
+
"module": "dist/shared/esp-element-base.js"
|
|
52986
|
+
}
|
|
53038
52987
|
},
|
|
53039
52988
|
{
|
|
53040
52989
|
"kind": "field",
|
|
53041
|
-
"name": "
|
|
52990
|
+
"name": "statusVariantSources",
|
|
52991
|
+
"type": {
|
|
52992
|
+
"text": "ReadonlySet<ColorSource>"
|
|
52993
|
+
},
|
|
53042
52994
|
"privacy": "private",
|
|
53043
|
-
"
|
|
52995
|
+
"static": true,
|
|
52996
|
+
"readonly": true,
|
|
52997
|
+
"default": "new Set<ColorSource>([ \"danger\", \"success\", \"warning\", ])",
|
|
52998
|
+
"description": "Variant color sources whose meaning is carried by a fixed hue rather\nthan the brand seed — the destructive / positive / warning status\nfamilies (ADR-004). For these variants the filled-action tokens are\npinned to the variant's own color so a theme cannot make them look\nlike an ordinary brand action. See task 098.",
|
|
52999
|
+
"inheritedFrom": {
|
|
53000
|
+
"name": "EspalierElementBase",
|
|
53001
|
+
"module": "dist/shared/esp-element-base.js"
|
|
53002
|
+
}
|
|
53044
53003
|
},
|
|
53045
53004
|
{
|
|
53046
|
-
"kind": "
|
|
53047
|
-
"name": "
|
|
53048
|
-
"
|
|
53049
|
-
|
|
53050
|
-
"type": {
|
|
53051
|
-
"text": "void"
|
|
53052
|
-
}
|
|
53005
|
+
"kind": "field",
|
|
53006
|
+
"name": "semanticActionTokens",
|
|
53007
|
+
"type": {
|
|
53008
|
+
"text": "ReadonlySet<SemanticColorName>"
|
|
53053
53009
|
},
|
|
53054
|
-
"
|
|
53010
|
+
"privacy": "private",
|
|
53011
|
+
"static": true,
|
|
53012
|
+
"readonly": true,
|
|
53013
|
+
"default": "new Set<SemanticColorName>([\"actionBackground\", \"actionText\"])",
|
|
53014
|
+
"description": "Semantic tokens that paint a control's filled action surface. For a\nstatus variant these always derive from the variant's own color, so\nthe Taproot \"Buttons\" semantic group (which re-points\n`actionBackground` / `actionText` to a brand source) cannot rotate a\ndestructive / warning / positive action off its semantic hue. See\ntask 098.",
|
|
53015
|
+
"inheritedFrom": {
|
|
53016
|
+
"name": "EspalierElementBase",
|
|
53017
|
+
"module": "dist/shared/esp-element-base.js"
|
|
53018
|
+
}
|
|
53055
53019
|
},
|
|
53056
53020
|
{
|
|
53057
53021
|
"kind": "method",
|
|
53058
|
-
"name": "
|
|
53059
|
-
"privacy": "
|
|
53022
|
+
"name": "applyVariantTokens",
|
|
53023
|
+
"privacy": "protected",
|
|
53060
53024
|
"return": {
|
|
53061
53025
|
"type": {
|
|
53062
53026
|
"text": "void"
|
|
53063
53027
|
}
|
|
53064
53028
|
},
|
|
53065
|
-
"
|
|
53029
|
+
"inheritedFrom": {
|
|
53030
|
+
"name": "EspalierElementBase",
|
|
53031
|
+
"module": "dist/shared/esp-element-base.js"
|
|
53032
|
+
}
|
|
53066
53033
|
},
|
|
53067
53034
|
{
|
|
53068
53035
|
"kind": "method",
|
|
53069
|
-
"name": "
|
|
53070
|
-
"privacy": "
|
|
53036
|
+
"name": "effectiveVariantTokenSource",
|
|
53037
|
+
"privacy": "private",
|
|
53071
53038
|
"return": {
|
|
53072
53039
|
"type": {
|
|
53073
|
-
"text": "
|
|
53040
|
+
"text": "ColorSource"
|
|
53074
53041
|
}
|
|
53075
53042
|
},
|
|
53076
53043
|
"parameters": [
|
|
53077
53044
|
{
|
|
53078
|
-
"name": "
|
|
53045
|
+
"name": "name",
|
|
53079
53046
|
"type": {
|
|
53080
|
-
"text": "
|
|
53047
|
+
"text": "SemanticColorName"
|
|
53048
|
+
}
|
|
53049
|
+
},
|
|
53050
|
+
{
|
|
53051
|
+
"name": "mappedSource",
|
|
53052
|
+
"type": {
|
|
53053
|
+
"text": "ColorSource"
|
|
53054
|
+
}
|
|
53055
|
+
},
|
|
53056
|
+
{
|
|
53057
|
+
"name": "isStatusVariant",
|
|
53058
|
+
"type": {
|
|
53059
|
+
"text": "boolean"
|
|
53081
53060
|
}
|
|
53082
53061
|
}
|
|
53083
53062
|
],
|
|
53084
|
-
"description": "
|
|
53063
|
+
"description": "Resolve the color source used to derive a semantic token for the\nactive variant.\n\nNormally this is the theme's mapping source, so the variant performs a\nfull palette shift relative to its own color. The exception is the\nmeaning-bearing status variants (`danger`, `success`, `warning`): their\nfilled-action tokens (`actionBackground`, `actionText`) are pinned to\nthe variant's own color — the `primary` entry of the sub-variant\npalette, which is the variant color itself — so a theme that re-points\nthe Buttons semantic group to a brand source cannot rotate a\ndestructive / warning / positive action off its semantic hue. Ordinary\nbrand and primary variants keep full theme customization. See task 098.",
|
|
53064
|
+
"inheritedFrom": {
|
|
53065
|
+
"name": "EspalierElementBase",
|
|
53066
|
+
"module": "dist/shared/esp-element-base.js"
|
|
53067
|
+
}
|
|
53085
53068
|
},
|
|
53086
53069
|
{
|
|
53087
53070
|
"kind": "method",
|
|
53088
|
-
"name": "
|
|
53089
|
-
"privacy": "
|
|
53071
|
+
"name": "getVariantColorSource",
|
|
53072
|
+
"privacy": "protected",
|
|
53090
53073
|
"return": {
|
|
53091
53074
|
"type": {
|
|
53092
|
-
"text": "
|
|
53075
|
+
"text": "ColorSource | \"\""
|
|
53093
53076
|
}
|
|
53094
53077
|
},
|
|
53095
|
-
"
|
|
53096
|
-
|
|
53097
|
-
|
|
53098
|
-
|
|
53099
|
-
"text": "boolean"
|
|
53100
|
-
}
|
|
53101
|
-
}
|
|
53102
|
-
],
|
|
53103
|
-
"description": "Show or hide the loading indicator."
|
|
53078
|
+
"inheritedFrom": {
|
|
53079
|
+
"name": "EspalierElementBase",
|
|
53080
|
+
"module": "dist/shared/esp-element-base.js"
|
|
53081
|
+
}
|
|
53104
53082
|
},
|
|
53105
53083
|
{
|
|
53106
53084
|
"kind": "method",
|
|
53107
|
-
"name": "
|
|
53085
|
+
"name": "setVariantTokenProperty",
|
|
53108
53086
|
"privacy": "private",
|
|
53109
53087
|
"return": {
|
|
53110
53088
|
"type": {
|
|
@@ -53113,35 +53091,175 @@
|
|
|
53113
53091
|
},
|
|
53114
53092
|
"parameters": [
|
|
53115
53093
|
{
|
|
53116
|
-
"name": "
|
|
53094
|
+
"name": "name",
|
|
53117
53095
|
"type": {
|
|
53118
|
-
"text": "
|
|
53096
|
+
"text": "string"
|
|
53097
|
+
}
|
|
53098
|
+
},
|
|
53099
|
+
{
|
|
53100
|
+
"name": "value",
|
|
53101
|
+
"type": {
|
|
53102
|
+
"text": "string"
|
|
53119
53103
|
}
|
|
53120
53104
|
}
|
|
53121
|
-
]
|
|
53105
|
+
],
|
|
53106
|
+
"inheritedFrom": {
|
|
53107
|
+
"name": "EspalierElementBase",
|
|
53108
|
+
"module": "dist/shared/esp-element-base.js"
|
|
53109
|
+
}
|
|
53122
53110
|
},
|
|
53123
53111
|
{
|
|
53124
53112
|
"kind": "method",
|
|
53125
|
-
"name": "
|
|
53113
|
+
"name": "clearVariantTokens",
|
|
53126
53114
|
"privacy": "private",
|
|
53127
53115
|
"return": {
|
|
53128
53116
|
"type": {
|
|
53129
53117
|
"text": "void"
|
|
53130
53118
|
}
|
|
53131
53119
|
},
|
|
53132
|
-
"
|
|
53133
|
-
|
|
53134
|
-
|
|
53135
|
-
|
|
53136
|
-
|
|
53137
|
-
|
|
53138
|
-
|
|
53139
|
-
|
|
53120
|
+
"inheritedFrom": {
|
|
53121
|
+
"name": "EspalierElementBase",
|
|
53122
|
+
"module": "dist/shared/esp-element-base.js"
|
|
53123
|
+
}
|
|
53124
|
+
}
|
|
53125
|
+
],
|
|
53126
|
+
"events": [
|
|
53127
|
+
{
|
|
53128
|
+
"description": "The user changed the query input. Fires on every keystroke (not debounced) so consumers can track the latest query and discard stale async results. Consumers that need debouncing should apply it themselves (e.g. Pagefind's `debouncedSearch()`). `detail: { query: string }`",
|
|
53129
|
+
"name": "search-requested"
|
|
53130
|
+
},
|
|
53131
|
+
{
|
|
53132
|
+
"description": "The user chose a result. `detail: { url: string }`",
|
|
53133
|
+
"name": "result-selected"
|
|
53134
|
+
},
|
|
53135
|
+
{
|
|
53136
|
+
"description": "The overlay was closed (Escape, backdrop click, or result selection). Consumers should use this to cancel in-flight searches or discard pending results. `detail: {}`",
|
|
53137
|
+
"name": "search-closed"
|
|
53138
|
+
},
|
|
53139
|
+
{
|
|
53140
|
+
"name": "value-changed",
|
|
53141
|
+
"type": {
|
|
53142
|
+
"text": "CustomEvent"
|
|
53143
|
+
},
|
|
53144
|
+
"inheritedFrom": {
|
|
53145
|
+
"name": "EspalierElementBase",
|
|
53146
|
+
"module": "dist/shared/esp-element-base.js"
|
|
53147
|
+
}
|
|
53148
|
+
}
|
|
53149
|
+
],
|
|
53150
|
+
"attributes": [
|
|
53151
|
+
{
|
|
53152
|
+
"name": "placeholder",
|
|
53153
|
+
"type": {
|
|
53154
|
+
"text": "string"
|
|
53155
|
+
},
|
|
53156
|
+
"default": "\"Search\\u2026\"",
|
|
53157
|
+
"description": "Placeholder text for the search input.",
|
|
53158
|
+
"fieldName": "placeholder"
|
|
53159
|
+
},
|
|
53160
|
+
{
|
|
53161
|
+
"name": "scheme",
|
|
53162
|
+
"type": {
|
|
53163
|
+
"text": "\"dark\" | \"light\""
|
|
53164
|
+
},
|
|
53165
|
+
"default": "\"light\"",
|
|
53166
|
+
"description": "The scheme to use for the component. This property is used internally\nto control the light/dark scheme so it matches the scheme of\n[esp-root](/components/root). It should not be set manually, it\nexists as an attribute for styling purposes.",
|
|
53167
|
+
"fieldName": "scheme",
|
|
53168
|
+
"inheritedFrom": {
|
|
53169
|
+
"name": "EspalierElementBase",
|
|
53170
|
+
"module": "dist/shared/esp-element-base.js"
|
|
53171
|
+
}
|
|
53140
53172
|
},
|
|
53173
|
+
{
|
|
53174
|
+
"name": "variant",
|
|
53175
|
+
"type": {
|
|
53176
|
+
"text": "EspalierVariant"
|
|
53177
|
+
},
|
|
53178
|
+
"description": "The [color variant](/guides/color/variants) of the element.",
|
|
53179
|
+
"fieldName": "variant",
|
|
53180
|
+
"inheritedFrom": {
|
|
53181
|
+
"name": "EspalierElementBase",
|
|
53182
|
+
"module": "dist/shared/esp-element-base.js"
|
|
53183
|
+
}
|
|
53184
|
+
}
|
|
53185
|
+
],
|
|
53186
|
+
"superclass": {
|
|
53187
|
+
"name": "EspalierElementBase",
|
|
53188
|
+
"module": "dist/shared/esp-element-base.js"
|
|
53189
|
+
},
|
|
53190
|
+
"docUrl": {
|
|
53191
|
+
"name": "/components/search",
|
|
53192
|
+
"description": ""
|
|
53193
|
+
},
|
|
53194
|
+
"docPageTitle": {
|
|
53195
|
+
"name": "Search",
|
|
53196
|
+
"description": ""
|
|
53197
|
+
},
|
|
53198
|
+
"menuLabel": {
|
|
53199
|
+
"name": "Search",
|
|
53200
|
+
"description": ""
|
|
53201
|
+
},
|
|
53202
|
+
"menuGroup": {
|
|
53203
|
+
"name": "Interaction",
|
|
53204
|
+
"description": ""
|
|
53205
|
+
},
|
|
53206
|
+
"menuOrder": {
|
|
53207
|
+
"name": "5",
|
|
53208
|
+
"description": ""
|
|
53209
|
+
},
|
|
53210
|
+
"docSections": {
|
|
53211
|
+
"name": "examples,properties,events,cssprops",
|
|
53212
|
+
"description": ""
|
|
53213
|
+
},
|
|
53214
|
+
"tagName": "esp-search",
|
|
53215
|
+
"customElement": true,
|
|
53216
|
+
"examples": [
|
|
53217
|
+
{
|
|
53218
|
+
"title": "Basic search (consumer wiring not shown)",
|
|
53219
|
+
"body": "```html\n<esp-search placeholder=\"Search docs...\"></esp-search>\n```"
|
|
53220
|
+
}
|
|
53221
|
+
]
|
|
53222
|
+
}
|
|
53223
|
+
],
|
|
53224
|
+
"exports": [
|
|
53225
|
+
{
|
|
53226
|
+
"kind": "js",
|
|
53227
|
+
"name": "EspalierSearch",
|
|
53228
|
+
"declaration": {
|
|
53229
|
+
"name": "EspalierSearch",
|
|
53230
|
+
"module": "dist/search/esp-search.js"
|
|
53231
|
+
}
|
|
53232
|
+
},
|
|
53233
|
+
{
|
|
53234
|
+
"kind": "custom-element-definition",
|
|
53235
|
+
"name": "esp-search",
|
|
53236
|
+
"declaration": {
|
|
53237
|
+
"name": "EspalierSearch",
|
|
53238
|
+
"module": "dist/search/esp-search.js"
|
|
53239
|
+
}
|
|
53240
|
+
}
|
|
53241
|
+
]
|
|
53242
|
+
},
|
|
53243
|
+
{
|
|
53244
|
+
"kind": "javascript-module",
|
|
53245
|
+
"path": "dist/root/esp-root.js",
|
|
53246
|
+
"declarations": [
|
|
53247
|
+
{
|
|
53248
|
+
"kind": "class",
|
|
53249
|
+
"description": "Root container for the Espalier design system.\n\nProvides the full design-token pipeline — colors, scales, and\nfonts — to every descendant component. All tokens are\nJS-computed from a pair of Base64-encoded theme objects and\nemitted as CSS custom properties on the host element.\n\n### Theme API\n\nSupply a `light-theme` and/or `dark-theme` attribute containing\na **Base64-encoded JSON** partial theme. Fields you omit fall\nback to built-in defaults. Switch between them with `scheme`.\n\n```html\n<esp-root\n light-theme=\"eyJzZWVkQ29sb3IiOiJva2xjaCgwLjcgMC4yIDE1NSkifQ==\"\n scheme=\"light\">\n <esp-box>\n <h2>Themed content</h2>\n </esp-box>\n</esp-root>\n```\n\n### Nested theme previews and scoped events\n\nA nested root creates a scoped theme for its descendants. It does not create\na separate event bus: every root publishes theme changes through the same\nEspalier singleton. Subscribe through the root whose changes you own so a\nnested preview cannot be mistaken for an application-level theme change.\n\n```ts\nconst applicationRoot = document.querySelector<EspalierRoot>(\"#application-theme\")!;\n\nconst unsubscribe = applicationRoot.subscribeScoped(\"scheme-changed\", ({ scheme }) => {\n localStorage.setItem(\"scheme\", scheme);\n});\n\n// Initial state is read directly; scoped events report later changes only.\nrenderScheme(applicationRoot.scheme);\n\n// Call when the owning integration is disposed.\nunsubscribe();\n```\n\nThis contract covers `scheme-changed`, `seed-color-changed`,\n`theme-changed`, and `icon-sprite-url-changed`. Components derived from\n`EspalierElementBase` use the same closest-root filter internally.\n\nThe root also owns the application's banner-texture vocabulary:\n`EspalierRoot.registerTexture(name, definition)` registers an\nimage-backed texture preset that any\n[esp-image](/components/image) banner in the application selects with\n`texture=\"<name>\"`, and `EspalierRoot.registeredTextures()` enumerates\nthe presets for building texture pickers.",
|
|
53250
|
+
"name": "EspalierRoot",
|
|
53251
|
+
"slots": [
|
|
53252
|
+
{
|
|
53253
|
+
"description": "Place Espalier components and content here.",
|
|
53254
|
+
"name": ""
|
|
53255
|
+
}
|
|
53256
|
+
],
|
|
53257
|
+
"members": [
|
|
53141
53258
|
{
|
|
53142
53259
|
"kind": "method",
|
|
53143
|
-
"name": "
|
|
53144
|
-
"privacy": "
|
|
53260
|
+
"name": "registerTexture",
|
|
53261
|
+
"privacy": "public",
|
|
53262
|
+
"static": true,
|
|
53145
53263
|
"return": {
|
|
53146
53264
|
"type": {
|
|
53147
53265
|
"text": "void"
|
|
@@ -53149,272 +53267,240 @@
|
|
|
53149
53267
|
},
|
|
53150
53268
|
"parameters": [
|
|
53151
53269
|
{
|
|
53152
|
-
"name": "
|
|
53270
|
+
"name": "name",
|
|
53153
53271
|
"type": {
|
|
53154
|
-
"text": "
|
|
53272
|
+
"text": "string"
|
|
53155
53273
|
}
|
|
53156
|
-
}
|
|
53157
|
-
]
|
|
53158
|
-
},
|
|
53159
|
-
{
|
|
53160
|
-
"kind": "method",
|
|
53161
|
-
"name": "handleBackdropClick",
|
|
53162
|
-
"privacy": "private",
|
|
53163
|
-
"return": {
|
|
53164
|
-
"type": {
|
|
53165
|
-
"text": "void"
|
|
53166
|
-
}
|
|
53167
|
-
},
|
|
53168
|
-
"parameters": [
|
|
53274
|
+
},
|
|
53169
53275
|
{
|
|
53170
|
-
"name": "
|
|
53276
|
+
"name": "definition",
|
|
53171
53277
|
"type": {
|
|
53172
|
-
"text": "
|
|
53278
|
+
"text": "ImageTextureDefinition"
|
|
53173
53279
|
}
|
|
53174
53280
|
}
|
|
53175
|
-
]
|
|
53281
|
+
],
|
|
53282
|
+
"description": "Register (or replace) a named, image-backed banner-texture preset.\nAny `esp-image` banner under a root selects it with `texture=\"<name>\"`;\nbanners already pointing at the name re-render, so registration at\nmount and markup order never race. Static delegate to\n`registerImageTexture` so script-only contexts (docs demos, published\nsites) can reach it from the root element without module imports."
|
|
53176
53283
|
},
|
|
53177
53284
|
{
|
|
53178
53285
|
"kind": "method",
|
|
53179
|
-
"name": "
|
|
53180
|
-
"privacy": "
|
|
53286
|
+
"name": "registeredTextures",
|
|
53287
|
+
"privacy": "public",
|
|
53288
|
+
"static": true,
|
|
53181
53289
|
"return": {
|
|
53182
53290
|
"type": {
|
|
53183
|
-
"text": "
|
|
53291
|
+
"text": "Map<string, Readonly<ImageTextureDefinition>>"
|
|
53184
53292
|
}
|
|
53185
|
-
}
|
|
53293
|
+
},
|
|
53294
|
+
"description": "Snapshot of the registered texture presets, for building pickers."
|
|
53186
53295
|
},
|
|
53187
53296
|
{
|
|
53188
53297
|
"kind": "field",
|
|
53189
|
-
"name": "
|
|
53298
|
+
"name": "schemeBacker",
|
|
53190
53299
|
"type": {
|
|
53191
|
-
"text": "
|
|
53300
|
+
"text": "\"light\" | \"dark\" | \"\""
|
|
53192
53301
|
},
|
|
53193
53302
|
"privacy": "private",
|
|
53194
|
-
"
|
|
53195
|
-
"readonly": true
|
|
53303
|
+
"default": "\"\""
|
|
53196
53304
|
},
|
|
53197
53305
|
{
|
|
53198
53306
|
"kind": "field",
|
|
53199
|
-
"name": "
|
|
53307
|
+
"name": "schemeExplicitlySet",
|
|
53200
53308
|
"type": {
|
|
53201
|
-
"text": "
|
|
53309
|
+
"text": "boolean"
|
|
53202
53310
|
},
|
|
53203
53311
|
"privacy": "private",
|
|
53204
|
-
"
|
|
53312
|
+
"default": "false"
|
|
53205
53313
|
},
|
|
53206
53314
|
{
|
|
53207
|
-
"kind": "
|
|
53208
|
-
"name": "
|
|
53209
|
-
"
|
|
53210
|
-
|
|
53211
|
-
"type": {
|
|
53212
|
-
"text": "string"
|
|
53213
|
-
}
|
|
53315
|
+
"kind": "field",
|
|
53316
|
+
"name": "resolvingDefaultScheme",
|
|
53317
|
+
"type": {
|
|
53318
|
+
"text": "boolean"
|
|
53214
53319
|
},
|
|
53215
|
-
"
|
|
53216
|
-
|
|
53217
|
-
"name": "index",
|
|
53218
|
-
"type": {
|
|
53219
|
-
"text": "number"
|
|
53220
|
-
}
|
|
53221
|
-
}
|
|
53222
|
-
]
|
|
53223
|
-
},
|
|
53224
|
-
{
|
|
53225
|
-
"kind": "method",
|
|
53226
|
-
"name": "renderResults",
|
|
53227
|
-
"privacy": "private"
|
|
53320
|
+
"privacy": "private",
|
|
53321
|
+
"default": "false"
|
|
53228
53322
|
},
|
|
53229
53323
|
{
|
|
53230
53324
|
"kind": "field",
|
|
53231
|
-
"name": "
|
|
53325
|
+
"name": "themeEventsReady",
|
|
53232
53326
|
"type": {
|
|
53233
|
-
"text": "
|
|
53327
|
+
"text": "boolean"
|
|
53234
53328
|
},
|
|
53235
53329
|
"privacy": "private",
|
|
53236
|
-
"default": "
|
|
53237
|
-
"inheritedFrom": {
|
|
53238
|
-
"name": "EspalierElementBase",
|
|
53239
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53240
|
-
}
|
|
53330
|
+
"default": "false"
|
|
53241
53331
|
},
|
|
53242
53332
|
{
|
|
53243
53333
|
"kind": "field",
|
|
53244
|
-
"name": "
|
|
53334
|
+
"name": "systemSchemeQuery",
|
|
53245
53335
|
"type": {
|
|
53246
|
-
"text": "
|
|
53336
|
+
"text": "MediaQueryList | null"
|
|
53247
53337
|
},
|
|
53248
53338
|
"privacy": "private",
|
|
53249
|
-
"default": "null"
|
|
53250
|
-
"inheritedFrom": {
|
|
53251
|
-
"name": "EspalierElementBase",
|
|
53252
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53253
|
-
}
|
|
53339
|
+
"default": "null"
|
|
53254
53340
|
},
|
|
53255
53341
|
{
|
|
53256
53342
|
"kind": "field",
|
|
53257
|
-
"name": "
|
|
53343
|
+
"name": "lastSeedColor",
|
|
53344
|
+
"type": {
|
|
53345
|
+
"text": "string"
|
|
53346
|
+
},
|
|
53258
53347
|
"privacy": "private",
|
|
53259
|
-
"
|
|
53260
|
-
"default": "new Map< string, { generatedPriority: string; generatedValue: string; originalPriority: string; originalValue: string | null; } >()",
|
|
53261
|
-
"inheritedFrom": {
|
|
53262
|
-
"name": "EspalierElementBase",
|
|
53263
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53264
|
-
}
|
|
53348
|
+
"default": "\"\""
|
|
53265
53349
|
},
|
|
53266
53350
|
{
|
|
53267
53351
|
"kind": "field",
|
|
53268
|
-
"name": "
|
|
53352
|
+
"name": "resolvedLightTheme",
|
|
53269
53353
|
"type": {
|
|
53270
|
-
"text": "
|
|
53354
|
+
"text": "EspalierTheme"
|
|
53271
53355
|
},
|
|
53272
53356
|
"privacy": "private",
|
|
53273
|
-
"default": "
|
|
53274
|
-
"inheritedFrom": {
|
|
53275
|
-
"name": "EspalierElementBase",
|
|
53276
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53277
|
-
}
|
|
53357
|
+
"default": "{ ...DEFAULT_LIGHT_THEME }"
|
|
53278
53358
|
},
|
|
53279
53359
|
{
|
|
53280
53360
|
"kind": "field",
|
|
53281
|
-
"name": "
|
|
53361
|
+
"name": "resolvedDarkTheme",
|
|
53282
53362
|
"type": {
|
|
53283
|
-
"text": "
|
|
53363
|
+
"text": "EspalierTheme"
|
|
53284
53364
|
},
|
|
53285
53365
|
"privacy": "private",
|
|
53286
|
-
"default": "
|
|
53287
|
-
"inheritedFrom": {
|
|
53288
|
-
"name": "EspalierElementBase",
|
|
53289
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53290
|
-
}
|
|
53366
|
+
"default": "{ ...DEFAULT_DARK_THEME }"
|
|
53291
53367
|
},
|
|
53292
53368
|
{
|
|
53293
53369
|
"kind": "field",
|
|
53294
|
-
"name": "
|
|
53370
|
+
"name": "documentClickRegistrationActive",
|
|
53295
53371
|
"type": {
|
|
53296
|
-
"text": "
|
|
53372
|
+
"text": "boolean"
|
|
53297
53373
|
},
|
|
53298
53374
|
"privacy": "private",
|
|
53299
|
-
"default": "
|
|
53300
|
-
"inheritedFrom": {
|
|
53301
|
-
"name": "EspalierElementBase",
|
|
53302
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53303
|
-
}
|
|
53375
|
+
"default": "false"
|
|
53304
53376
|
},
|
|
53305
53377
|
{
|
|
53306
53378
|
"kind": "field",
|
|
53307
|
-
"name": "
|
|
53379
|
+
"name": "connectedRootCount",
|
|
53308
53380
|
"type": {
|
|
53309
|
-
"text": "
|
|
53381
|
+
"text": "number"
|
|
53310
53382
|
},
|
|
53311
|
-
"privacy": "
|
|
53312
|
-
"
|
|
53313
|
-
"
|
|
53314
|
-
"name": "EspalierElementBase",
|
|
53315
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53316
|
-
}
|
|
53383
|
+
"privacy": "private",
|
|
53384
|
+
"static": true,
|
|
53385
|
+
"default": "0"
|
|
53317
53386
|
},
|
|
53318
53387
|
{
|
|
53319
53388
|
"kind": "field",
|
|
53320
|
-
"name": "
|
|
53321
|
-
"
|
|
53322
|
-
|
|
53323
|
-
|
|
53324
|
-
"privacy": "public",
|
|
53325
|
-
"inheritedFrom": {
|
|
53326
|
-
"name": "EspalierElementBase",
|
|
53327
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53328
|
-
}
|
|
53389
|
+
"name": "handleDocumentClick",
|
|
53390
|
+
"privacy": "private",
|
|
53391
|
+
"static": true,
|
|
53392
|
+
"readonly": true
|
|
53329
53393
|
},
|
|
53330
53394
|
{
|
|
53331
53395
|
"kind": "field",
|
|
53332
53396
|
"name": "correlationId",
|
|
53333
53397
|
"privacy": "public",
|
|
53334
|
-
"
|
|
53335
|
-
"name": "EspalierElementBase",
|
|
53336
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53337
|
-
}
|
|
53398
|
+
"description": "Unique ID for correlating bus events across multiple roots."
|
|
53338
53399
|
},
|
|
53339
53400
|
{
|
|
53340
53401
|
"kind": "method",
|
|
53341
|
-
"name": "
|
|
53342
|
-
"privacy": "
|
|
53402
|
+
"name": "subscribeScoped",
|
|
53403
|
+
"privacy": "public",
|
|
53343
53404
|
"return": {
|
|
53344
53405
|
"type": {
|
|
53345
|
-
"text": "void"
|
|
53406
|
+
"text": "() => void"
|
|
53346
53407
|
}
|
|
53347
53408
|
},
|
|
53348
53409
|
"parameters": [
|
|
53349
53410
|
{
|
|
53350
|
-
"name": "
|
|
53411
|
+
"name": "event",
|
|
53351
53412
|
"type": {
|
|
53352
|
-
"text": "
|
|
53353
|
-
}
|
|
53413
|
+
"text": "K"
|
|
53414
|
+
},
|
|
53415
|
+
"description": "Root-scoped theme event to observe."
|
|
53354
53416
|
},
|
|
53355
53417
|
{
|
|
53356
|
-
"name": "
|
|
53357
|
-
"optional": true,
|
|
53418
|
+
"name": "handler",
|
|
53358
53419
|
"type": {
|
|
53359
|
-
"text": "
|
|
53360
|
-
}
|
|
53420
|
+
"text": "(payload: SchemeEvents[K]) => void"
|
|
53421
|
+
},
|
|
53422
|
+
"description": "Callback invoked with that event's typed payload."
|
|
53361
53423
|
}
|
|
53362
53424
|
],
|
|
53363
|
-
"
|
|
53364
|
-
|
|
53365
|
-
|
|
53366
|
-
|
|
53425
|
+
"description": "Subscribe to a theme event published by this root only.\n\nAll roots share Espalier's global bus. This method filters foreign and\nnested-root payloads by `correlationId` and returns a cleanup function.\nIt reports changes after mount; read initial state from this root."
|
|
53426
|
+
},
|
|
53427
|
+
{
|
|
53428
|
+
"kind": "field",
|
|
53429
|
+
"name": "lightThemeAttr",
|
|
53430
|
+
"type": {
|
|
53431
|
+
"text": "string"
|
|
53432
|
+
},
|
|
53433
|
+
"privacy": "public",
|
|
53434
|
+
"default": "\"\"",
|
|
53435
|
+
"description": "Base64-encoded JSON partial theme for the **light** scheme.\n\nOnly fields you wish to override need to be present — all\nothers inherit from the built-in light defaults.\n\n```html\n<esp-root\n light-theme=\"eyJzZWVkQ29sb3IiOiJva2xjaCgwLjcgMC4xNSAyODUpIn0=\"\n scheme=\"light\">\n <esp-box><h2>Purple light theme</h2></esp-box>\n</esp-root>\n```",
|
|
53436
|
+
"attribute": "light-theme"
|
|
53437
|
+
},
|
|
53438
|
+
{
|
|
53439
|
+
"kind": "field",
|
|
53440
|
+
"name": "darkThemeAttr",
|
|
53441
|
+
"type": {
|
|
53442
|
+
"text": "string"
|
|
53443
|
+
},
|
|
53444
|
+
"privacy": "public",
|
|
53445
|
+
"default": "\"\"",
|
|
53446
|
+
"description": "Base64-encoded JSON partial theme for the **dark** scheme.\n\n```html\n<esp-root\n dark-theme=\"eyJzZWVkQ29sb3IiOiJva2xjaCgwLjcgMC4xNSAyODUpIn0=\"\n scheme=\"dark\">\n <esp-box><h2>Purple dark theme</h2></esp-box>\n</esp-root>\n```",
|
|
53447
|
+
"attribute": "dark-theme"
|
|
53448
|
+
},
|
|
53449
|
+
{
|
|
53450
|
+
"kind": "field",
|
|
53451
|
+
"name": "fontCSSRoot",
|
|
53452
|
+
"type": {
|
|
53453
|
+
"text": "string"
|
|
53454
|
+
},
|
|
53455
|
+
"privacy": "public",
|
|
53456
|
+
"default": "\"/css/fonts/\"",
|
|
53457
|
+
"description": "Root path for locally-cached font CSS files used by\n`<esp-font-picker>` to load font previews.\n\nThe directory must contain the individual font CSS files\ngenerated by `npm run build-fonts`. These files must be\nserved at stable, predictable paths (no filename hashing)\nbecause the picker constructs URLs by font family name.",
|
|
53458
|
+
"attribute": "font-css-root"
|
|
53459
|
+
},
|
|
53460
|
+
{
|
|
53461
|
+
"kind": "field",
|
|
53462
|
+
"name": "fontDefinitionsUrl",
|
|
53463
|
+
"type": {
|
|
53464
|
+
"text": "string"
|
|
53465
|
+
},
|
|
53466
|
+
"privacy": "public",
|
|
53467
|
+
"default": "\"\"",
|
|
53468
|
+
"description": "Full URL to the `font-definitions.json` catalog used by\n`<esp-font-picker>`.\n\nWhen set, the picker fetches from this URL instead of\n`{fontCSSRoot}font-definitions.json`. This allows the JSON\nto be served through a cache-busting asset pipeline while\nthe individual font CSS files remain at stable paths.",
|
|
53469
|
+
"attribute": "font-definitions-url"
|
|
53470
|
+
},
|
|
53471
|
+
{
|
|
53472
|
+
"kind": "field",
|
|
53473
|
+
"name": "googleFontLoading",
|
|
53474
|
+
"type": {
|
|
53475
|
+
"text": "\"auto\" | \"none\""
|
|
53476
|
+
},
|
|
53477
|
+
"privacy": "public",
|
|
53478
|
+
"default": "\"auto\"",
|
|
53479
|
+
"description": "Controls whether Espalier may inject runtime Google Fonts CDN\nstylesheet links for selected Google Fonts.\n\n`auto` preserves the default behavior: theme font families and\nselected Google font-picker values may load full fonts from\n`fonts.googleapis.com`. `none` prevents those runtime Google\nFonts links, leaving local preview CSS and web-safe font stacks\navailable for locked-down, offline, or strict-CSP environments.",
|
|
53480
|
+
"attribute": "google-font-loading"
|
|
53367
53481
|
},
|
|
53368
53482
|
{
|
|
53369
|
-
"kind": "
|
|
53370
|
-
"name": "
|
|
53371
|
-
"
|
|
53372
|
-
|
|
53373
|
-
"type": {
|
|
53374
|
-
"text": "void"
|
|
53375
|
-
}
|
|
53483
|
+
"kind": "field",
|
|
53484
|
+
"name": "iconSpriteUrl",
|
|
53485
|
+
"type": {
|
|
53486
|
+
"text": "string"
|
|
53376
53487
|
},
|
|
53377
|
-
"
|
|
53378
|
-
|
|
53379
|
-
|
|
53380
|
-
|
|
53381
|
-
"text": "string"
|
|
53382
|
-
}
|
|
53383
|
-
},
|
|
53384
|
-
{
|
|
53385
|
-
"name": "options",
|
|
53386
|
-
"optional": true,
|
|
53387
|
-
"type": {
|
|
53388
|
-
"text": "FocusOptions"
|
|
53389
|
-
}
|
|
53390
|
-
}
|
|
53391
|
-
],
|
|
53392
|
-
"inheritedFrom": {
|
|
53393
|
-
"name": "EspalierElementBase",
|
|
53394
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53395
|
-
}
|
|
53488
|
+
"privacy": "public",
|
|
53489
|
+
"default": "\"/assets/icons.svg\"",
|
|
53490
|
+
"description": "Full URL to the SVG sprite used by component-owned `icon`\nattributes.\n\nComponents append the validated icon name as a fragment, so\nthis should point to the sprite file itself, without `#icon`.\nUse this when your application serves the sprite from a\nsubpath, CDN, or cache-busted asset pipeline. Set it to an\nempty string to disable generated sprite icon URLs for this root.\n\n```html\n<esp-root icon-sprite-url=\"/dist/icons.abc123.svg\">\n <esp-button icon=\"save\" label=\"Save\"></esp-button>\n</esp-root>\n```",
|
|
53491
|
+
"attribute": "icon-sprite-url"
|
|
53396
53492
|
},
|
|
53397
53493
|
{
|
|
53398
|
-
"kind": "
|
|
53399
|
-
"name": "
|
|
53400
|
-
"
|
|
53401
|
-
|
|
53402
|
-
"type": {
|
|
53403
|
-
"text": "void"
|
|
53404
|
-
}
|
|
53494
|
+
"kind": "field",
|
|
53495
|
+
"name": "defaultScheme",
|
|
53496
|
+
"type": {
|
|
53497
|
+
"text": "\"light\" | \"dark\" | \"system\""
|
|
53405
53498
|
},
|
|
53406
|
-
"
|
|
53407
|
-
|
|
53408
|
-
|
|
53409
|
-
|
|
53410
|
-
|
|
53411
|
-
}
|
|
53412
|
-
}
|
|
53413
|
-
],
|
|
53414
|
-
"inheritedFrom": {
|
|
53415
|
-
"name": "EspalierElementBase",
|
|
53416
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53417
|
-
}
|
|
53499
|
+
"privacy": "public",
|
|
53500
|
+
"default": "\"light\"",
|
|
53501
|
+
"description": "Initial color scheme to apply when `scheme` is not set.\n\nUse `light` or `dark` for a fixed published-site default, or\n`system` to follow the visitor's `prefers-color-scheme` before\nthey toggle the active `scheme`.",
|
|
53502
|
+
"attribute": "default-scheme",
|
|
53503
|
+
"reflects": true
|
|
53418
53504
|
},
|
|
53419
53505
|
{
|
|
53420
53506
|
"kind": "field",
|
|
@@ -53423,55 +53509,44 @@
|
|
|
53423
53509
|
"text": "\"dark\" | \"light\""
|
|
53424
53510
|
},
|
|
53425
53511
|
"privacy": "public",
|
|
53512
|
+
"description": "The active color scheme.\n\nLight scheme\n\n```html\n<esp-root scheme=\"light\">\n <esp-box>\n <h2>Light Scheme</h2>\n <esp-button label=\"I am light\"></esp-button>\n </esp-box>\n</esp-root>\n```\n\nDark scheme\n\n```html\n<esp-root scheme=\"dark\">\n <esp-box>\n <h2>Dark Scheme</h2>\n <esp-button label=\"I am dark\"></esp-button>\n </esp-box>\n</esp-root>\n```",
|
|
53426
53513
|
"default": "\"light\"",
|
|
53427
|
-
"description": "The scheme to use for the component. This property is used internally\nto control the light/dark scheme so it matches the scheme of\n[esp-root](/components/root). It should not be set manually, it\nexists as an attribute for styling purposes.",
|
|
53428
53514
|
"attribute": "scheme",
|
|
53429
|
-
"reflects": true
|
|
53430
|
-
"inheritedFrom": {
|
|
53431
|
-
"name": "EspalierElementBase",
|
|
53432
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53433
|
-
}
|
|
53515
|
+
"reflects": true
|
|
53434
53516
|
},
|
|
53435
53517
|
{
|
|
53436
53518
|
"kind": "field",
|
|
53437
|
-
"name": "
|
|
53519
|
+
"name": "seedColor",
|
|
53438
53520
|
"type": {
|
|
53439
|
-
"text": "
|
|
53521
|
+
"text": "string"
|
|
53440
53522
|
},
|
|
53441
53523
|
"privacy": "public",
|
|
53442
|
-
"description": "The
|
|
53443
|
-
"
|
|
53444
|
-
"reflects": true,
|
|
53445
|
-
"inheritedFrom": {
|
|
53446
|
-
"name": "EspalierElementBase",
|
|
53447
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53448
|
-
}
|
|
53524
|
+
"description": "The effective seed color from the active theme.\n\nRead-only — supply a theme attribute with a different\n`seedColor` value to change.",
|
|
53525
|
+
"readonly": true
|
|
53449
53526
|
},
|
|
53450
53527
|
{
|
|
53451
53528
|
"kind": "method",
|
|
53452
|
-
"name": "
|
|
53529
|
+
"name": "extractFamily",
|
|
53453
53530
|
"privacy": "private",
|
|
53531
|
+
"static": true,
|
|
53454
53532
|
"return": {
|
|
53455
53533
|
"type": {
|
|
53456
|
-
"text": "
|
|
53534
|
+
"text": "string"
|
|
53457
53535
|
}
|
|
53458
53536
|
},
|
|
53459
53537
|
"parameters": [
|
|
53460
53538
|
{
|
|
53461
|
-
"name": "
|
|
53539
|
+
"name": "cssValue",
|
|
53462
53540
|
"type": {
|
|
53463
|
-
"text": "
|
|
53541
|
+
"text": "string"
|
|
53464
53542
|
}
|
|
53465
53543
|
}
|
|
53466
53544
|
],
|
|
53467
|
-
"
|
|
53468
|
-
"name": "EspalierElementBase",
|
|
53469
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53470
|
-
}
|
|
53545
|
+
"description": "Extract the bare font family name from a CSS `font-family`\nvalue like `\"Roboto\", sans-serif` → `Roboto`."
|
|
53471
53546
|
},
|
|
53472
53547
|
{
|
|
53473
53548
|
"kind": "method",
|
|
53474
|
-
"name": "
|
|
53549
|
+
"name": "injectGoogleFontLink",
|
|
53475
53550
|
"privacy": "private",
|
|
53476
53551
|
"return": {
|
|
53477
53552
|
"type": {
|
|
@@ -53480,358 +53555,299 @@
|
|
|
53480
53555
|
},
|
|
53481
53556
|
"parameters": [
|
|
53482
53557
|
{
|
|
53483
|
-
"name": "
|
|
53558
|
+
"name": "slot",
|
|
53484
53559
|
"type": {
|
|
53485
|
-
"text": "
|
|
53560
|
+
"text": "\"body\" | \"headings\" | \"brand\" | \"monospace\""
|
|
53561
|
+
}
|
|
53562
|
+
},
|
|
53563
|
+
{
|
|
53564
|
+
"name": "family",
|
|
53565
|
+
"type": {
|
|
53566
|
+
"text": "string"
|
|
53567
|
+
}
|
|
53568
|
+
},
|
|
53569
|
+
{
|
|
53570
|
+
"name": "weight",
|
|
53571
|
+
"optional": true,
|
|
53572
|
+
"type": {
|
|
53573
|
+
"text": "string"
|
|
53486
53574
|
}
|
|
53487
53575
|
}
|
|
53488
53576
|
],
|
|
53489
|
-
"
|
|
53490
|
-
"name": "EspalierElementBase",
|
|
53491
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53492
|
-
}
|
|
53577
|
+
"description": "Inject (or replace) a Google Fonts `<link>` for a given slot.\n\nEach slot (`body`, `headings`, `brand`, `monospace`) gets at most one\n`<link>` scoped to this root instance by its correlationId,\nidentified by `data-esp-font=\"<correlationId>-<slot>\"`.\nThis ensures multiple `<esp-root>` instances on the same page\ndo not overwrite each other's font links."
|
|
53493
53578
|
},
|
|
53494
53579
|
{
|
|
53495
53580
|
"kind": "method",
|
|
53496
|
-
"name": "
|
|
53581
|
+
"name": "syncGoogleFontLinks",
|
|
53497
53582
|
"privacy": "private",
|
|
53498
53583
|
"return": {
|
|
53499
53584
|
"type": {
|
|
53500
53585
|
"text": "void"
|
|
53501
53586
|
}
|
|
53502
53587
|
},
|
|
53503
|
-
"
|
|
53504
|
-
"name": "EspalierElementBase",
|
|
53505
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53506
|
-
}
|
|
53507
|
-
},
|
|
53508
|
-
{
|
|
53509
|
-
"kind": "field",
|
|
53510
|
-
"name": "handleSeedColorChanged",
|
|
53511
|
-
"privacy": "private",
|
|
53512
|
-
"inheritedFrom": {
|
|
53513
|
-
"name": "EspalierElementBase",
|
|
53514
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53515
|
-
}
|
|
53516
|
-
},
|
|
53517
|
-
{
|
|
53518
|
-
"kind": "field",
|
|
53519
|
-
"name": "handleSchemeChanged",
|
|
53520
|
-
"privacy": "private",
|
|
53521
|
-
"inheritedFrom": {
|
|
53522
|
-
"name": "EspalierElementBase",
|
|
53523
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53524
|
-
}
|
|
53525
|
-
},
|
|
53526
|
-
{
|
|
53527
|
-
"kind": "field",
|
|
53528
|
-
"name": "handleThemeChanged",
|
|
53529
|
-
"privacy": "private",
|
|
53530
|
-
"inheritedFrom": {
|
|
53531
|
-
"name": "EspalierElementBase",
|
|
53532
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53533
|
-
}
|
|
53534
|
-
},
|
|
53535
|
-
{
|
|
53536
|
-
"kind": "field",
|
|
53537
|
-
"name": "handleIconSpriteUrlChanged",
|
|
53538
|
-
"privacy": "private",
|
|
53539
|
-
"inheritedFrom": {
|
|
53540
|
-
"name": "EspalierElementBase",
|
|
53541
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53542
|
-
}
|
|
53588
|
+
"description": "Ensure Google Font `<link>` tags match the active theme's\nfont families. Called from `willUpdate()` after theme\nresolution."
|
|
53543
53589
|
},
|
|
53544
53590
|
{
|
|
53545
53591
|
"kind": "method",
|
|
53546
|
-
"name": "
|
|
53547
|
-
"privacy": "
|
|
53592
|
+
"name": "removeRuntimeGoogleFontLinks",
|
|
53593
|
+
"privacy": "private",
|
|
53548
53594
|
"return": {
|
|
53549
53595
|
"type": {
|
|
53550
|
-
"text": ""
|
|
53551
|
-
}
|
|
53552
|
-
},
|
|
53553
|
-
"parameters": [
|
|
53554
|
-
{
|
|
53555
|
-
"name": "selector",
|
|
53556
|
-
"type": {
|
|
53557
|
-
"text": "string"
|
|
53558
|
-
},
|
|
53559
|
-
"description": "The selector of the element to look for"
|
|
53596
|
+
"text": "void"
|
|
53560
53597
|
}
|
|
53561
|
-
],
|
|
53562
|
-
"description": "Traverse up the DOM tree to find the closest element that\nmatches the selector. This method is aware of shadow DOM\nboundaries and will traverse through them to find the element.",
|
|
53563
|
-
"inheritedFrom": {
|
|
53564
|
-
"name": "EspalierElementBase",
|
|
53565
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53566
53598
|
}
|
|
53567
53599
|
},
|
|
53568
53600
|
{
|
|
53569
53601
|
"kind": "field",
|
|
53570
|
-
"name": "
|
|
53602
|
+
"name": "activeTheme",
|
|
53571
53603
|
"type": {
|
|
53572
|
-
"text": "
|
|
53604
|
+
"text": "EspalierTheme"
|
|
53573
53605
|
},
|
|
53574
|
-
"privacy": "
|
|
53575
|
-
"
|
|
53576
|
-
"readonly": true
|
|
53577
|
-
"default": "{ text: { bg: \"background\", targetLc: 75 }, dangerText: { bg: \"background\", targetLc: 75 }, headings: { bg: \"background\", targetLc: 60 }, headingsHover: { bg: \"background\", targetLc: 60 }, link: { bg: \"background\", targetLc: 75 }, linkHover: { bg: \"background\", targetLc: 75 }, actionText: { bg: \"actionBackground\", targetLc: 75 }, inputCaret: { bg: \"layer2\", targetLc: 60 }, inputSelection: { bg: \"inputSelectionBg\", targetLc: 60 }, }",
|
|
53578
|
-
"description": "Text tokens that require APCA contrast enforcement.\n\nEach entry maps a text-bearing semantic token to:\n - `bg`: the semantic token it sits on (reference color)\n - `targetLc`: the minimum |Lc| the text must achieve",
|
|
53579
|
-
"inheritedFrom": {
|
|
53580
|
-
"name": "EspalierElementBase",
|
|
53581
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53582
|
-
}
|
|
53606
|
+
"privacy": "public",
|
|
53607
|
+
"description": "Returns the resolved theme for the active scheme.",
|
|
53608
|
+
"readonly": true
|
|
53583
53609
|
},
|
|
53584
53610
|
{
|
|
53585
|
-
"kind": "
|
|
53586
|
-
"name": "
|
|
53587
|
-
"type": {
|
|
53588
|
-
"text": "ReadonlySet<ColorSource>"
|
|
53589
|
-
},
|
|
53611
|
+
"kind": "method",
|
|
53612
|
+
"name": "resolveThemes",
|
|
53590
53613
|
"privacy": "private",
|
|
53591
|
-
"
|
|
53592
|
-
|
|
53593
|
-
|
|
53594
|
-
|
|
53595
|
-
|
|
53596
|
-
|
|
53597
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53598
|
-
}
|
|
53614
|
+
"return": {
|
|
53615
|
+
"type": {
|
|
53616
|
+
"text": "void"
|
|
53617
|
+
}
|
|
53618
|
+
},
|
|
53619
|
+
"description": "Re-merge default → theme-attribute for both schemes.\nCalled in `willUpdate()` whenever any input property changes."
|
|
53599
53620
|
},
|
|
53600
53621
|
{
|
|
53601
53622
|
"kind": "field",
|
|
53602
|
-
"name": "
|
|
53603
|
-
"type": {
|
|
53604
|
-
"text": "ReadonlySet<SemanticColorName>"
|
|
53605
|
-
},
|
|
53623
|
+
"name": "resizeObserver",
|
|
53606
53624
|
"privacy": "private",
|
|
53607
|
-
"
|
|
53608
|
-
"readonly": true,
|
|
53609
|
-
"default": "new Set<SemanticColorName>([\"actionBackground\", \"actionText\"])",
|
|
53610
|
-
"description": "Semantic tokens that paint a control's filled action surface. For a\nstatus variant these always derive from the variant's own color, so\nthe Taproot \"Buttons\" semantic group (which re-points\n`actionBackground` / `actionText` to a brand source) cannot rotate a\ndestructive / warning / positive action off its semantic hue. See\ntask 098.",
|
|
53611
|
-
"inheritedFrom": {
|
|
53612
|
-
"name": "EspalierElementBase",
|
|
53613
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53614
|
-
}
|
|
53625
|
+
"default": "new ResizeObserver(() => { getEspBus().publish(\"window-resized\", { emWidth: window.innerWidth / parseFloat(getComputedStyle(document.documentElement).fontSize), emHeight: window.innerHeight / parseFloat(getComputedStyle(document.documentElement).fontSize), pxWidth: window.innerWidth, pxHeight: window.innerHeight, }); })"
|
|
53615
53626
|
},
|
|
53616
53627
|
{
|
|
53617
53628
|
"kind": "method",
|
|
53618
|
-
"name": "
|
|
53619
|
-
"privacy": "
|
|
53629
|
+
"name": "registerDocumentClickBridge",
|
|
53630
|
+
"privacy": "private",
|
|
53620
53631
|
"return": {
|
|
53621
|
-
"type": {
|
|
53622
|
-
"text": "void"
|
|
53623
|
-
}
|
|
53624
|
-
},
|
|
53625
|
-
"inheritedFrom": {
|
|
53626
|
-
"name": "EspalierElementBase",
|
|
53627
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53632
|
+
"type": {
|
|
53633
|
+
"text": "void"
|
|
53634
|
+
}
|
|
53628
53635
|
}
|
|
53629
53636
|
},
|
|
53630
53637
|
{
|
|
53631
53638
|
"kind": "method",
|
|
53632
|
-
"name": "
|
|
53639
|
+
"name": "unregisterDocumentClickBridge",
|
|
53633
53640
|
"privacy": "private",
|
|
53634
53641
|
"return": {
|
|
53635
53642
|
"type": {
|
|
53636
|
-
"text": "
|
|
53637
|
-
}
|
|
53638
|
-
},
|
|
53639
|
-
"parameters": [
|
|
53640
|
-
{
|
|
53641
|
-
"name": "name",
|
|
53642
|
-
"type": {
|
|
53643
|
-
"text": "SemanticColorName"
|
|
53644
|
-
}
|
|
53645
|
-
},
|
|
53646
|
-
{
|
|
53647
|
-
"name": "mappedSource",
|
|
53648
|
-
"type": {
|
|
53649
|
-
"text": "ColorSource"
|
|
53650
|
-
}
|
|
53651
|
-
},
|
|
53652
|
-
{
|
|
53653
|
-
"name": "isStatusVariant",
|
|
53654
|
-
"type": {
|
|
53655
|
-
"text": "boolean"
|
|
53656
|
-
}
|
|
53643
|
+
"text": "void"
|
|
53657
53644
|
}
|
|
53658
|
-
],
|
|
53659
|
-
"description": "Resolve the color source used to derive a semantic token for the\nactive variant.\n\nNormally this is the theme's mapping source, so the variant performs a\nfull palette shift relative to its own color. The exception is the\nmeaning-bearing status variants (`danger`, `success`, `warning`): their\nfilled-action tokens (`actionBackground`, `actionText`) are pinned to\nthe variant's own color — the `primary` entry of the sub-variant\npalette, which is the variant color itself — so a theme that re-points\nthe Buttons semantic group to a brand source cannot rotate a\ndestructive / warning / positive action off its semantic hue. Ordinary\nbrand and primary variants keep full theme customization. See task 098.",
|
|
53660
|
-
"inheritedFrom": {
|
|
53661
|
-
"name": "EspalierElementBase",
|
|
53662
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53663
53645
|
}
|
|
53664
53646
|
},
|
|
53665
53647
|
{
|
|
53666
53648
|
"kind": "method",
|
|
53667
|
-
"name": "
|
|
53668
|
-
"privacy": "
|
|
53649
|
+
"name": "applyDefaultScheme",
|
|
53650
|
+
"privacy": "private",
|
|
53669
53651
|
"return": {
|
|
53670
53652
|
"type": {
|
|
53671
|
-
"text": "
|
|
53653
|
+
"text": "void"
|
|
53672
53654
|
}
|
|
53673
|
-
},
|
|
53674
|
-
"inheritedFrom": {
|
|
53675
|
-
"name": "EspalierElementBase",
|
|
53676
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53677
53655
|
}
|
|
53678
53656
|
},
|
|
53679
53657
|
{
|
|
53680
53658
|
"kind": "method",
|
|
53681
|
-
"name": "
|
|
53659
|
+
"name": "resolveDefaultScheme",
|
|
53682
53660
|
"privacy": "private",
|
|
53683
53661
|
"return": {
|
|
53684
53662
|
"type": {
|
|
53685
|
-
"text": "
|
|
53686
|
-
}
|
|
53687
|
-
},
|
|
53688
|
-
"parameters": [
|
|
53689
|
-
{
|
|
53690
|
-
"name": "name",
|
|
53691
|
-
"type": {
|
|
53692
|
-
"text": "string"
|
|
53693
|
-
}
|
|
53694
|
-
},
|
|
53695
|
-
{
|
|
53696
|
-
"name": "value",
|
|
53697
|
-
"type": {
|
|
53698
|
-
"text": "string"
|
|
53699
|
-
}
|
|
53663
|
+
"text": "\"light\" | \"dark\""
|
|
53700
53664
|
}
|
|
53701
|
-
],
|
|
53702
|
-
"inheritedFrom": {
|
|
53703
|
-
"name": "EspalierElementBase",
|
|
53704
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53705
53665
|
}
|
|
53706
53666
|
},
|
|
53707
53667
|
{
|
|
53708
53668
|
"kind": "method",
|
|
53709
|
-
"name": "
|
|
53669
|
+
"name": "syncSystemSchemeListener",
|
|
53710
53670
|
"privacy": "private",
|
|
53711
53671
|
"return": {
|
|
53712
53672
|
"type": {
|
|
53713
53673
|
"text": "void"
|
|
53714
53674
|
}
|
|
53715
|
-
},
|
|
53716
|
-
"inheritedFrom": {
|
|
53717
|
-
"name": "EspalierElementBase",
|
|
53718
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53719
53675
|
}
|
|
53676
|
+
},
|
|
53677
|
+
{
|
|
53678
|
+
"kind": "field",
|
|
53679
|
+
"name": "handleSystemSchemeChange",
|
|
53680
|
+
"privacy": "private"
|
|
53681
|
+
},
|
|
53682
|
+
{
|
|
53683
|
+
"kind": "field",
|
|
53684
|
+
"name": "lightDomStyles",
|
|
53685
|
+
"static": true,
|
|
53686
|
+
"default": "` /* ── Base typography ──────────────────────────────────── */ esp-root { font-family: var(--esp-font-body); font-weight: var(--esp-font-weight-body); line-height: 1.5; font-size: var(--esp-type-normal); color: var(--esp-color-text); } /* ── Lists ────────────────────────────────────────────── */ esp-root ul[role=\"list\"], esp-root ol[role=\"list\"] { list-style: none; } esp-root ul li::marker, esp-root ol li::marker { font-weight: bold; } /* ── Form controls ────────────────────────────────────── */ esp-root input, esp-root select, esp-root button { font-family: var(--esp-font-body); } /* ── Links ────────────────────────────────────────────── */ esp-root a:not([class]) { text-decoration-skip-ink: auto; font-weight: bold; color: var(--esp-color-link); } esp-root a { text-decoration: underline; text-decoration-skip-ink: auto; color: var(--esp-color-link); } esp-root a:hover { background-color: var(--esp-color-link-hover-bg); color: var(--esp-color-link-hover); text-decoration: none; } /* ── Inherited text styles ────────────────────────────── */ esp-root input, esp-root button, esp-root textarea, esp-root select, esp-root p, esp-root ul, esp-root li { font-family: var(--esp-font-body); color: var(--esp-color-text); font-size: inherit; } esp-root textarea:not([rows]) { min-height: 10em; } /* ── Headings ─────────────────────────────────────────── */ esp-root h1, esp-root h2, esp-root h3, esp-root h4, esp-root h5 { font-family: var(--esp-font-headings); font-weight: var(--esp-font-weight-headings); color: var(--esp-color-headings); margin: var(--esp-size-small-to-normal) 0 var(--esp-size-tiny-to-small); } esp-root h5 { font-size: var(--esp-type-small); line-height: 1.4; } esp-root h4 { font-size: var(--esp-type-medium); line-height: 1.3; } esp-root h3 { font-size: var(--esp-type-big); line-height: 1.2; } esp-root h2 { font-size: var(--esp-type-large); line-height: 1.15; } esp-root h1 { font-size: var(--esp-type-huge); line-height: 1.1; } /* ── Code / Pre ───────────────────────────────────────── */ esp-root pre, esp-root code { font-family: var(--esp-font-monospace); font-weight: var(--esp-font-weight-monospace); } esp-root code { font-size: var(--esp-type-small); background: var(--esp-color-layer-1); border-radius: var(--esp-size-border-radius); padding: 0 0.35em; display: inline-block; border: 1px dotted var(--esp-color-border); } esp-root pre { background-color: var(--esp-color-layer-1); border-radius: var(--esp-size-border-radius); border: 1px dotted var(--esp-color-border); } esp-root pre > code { font-size: var(--esp-type-tiny); display: block; background: none; border: none; hyphens: none; tab-size: 2; white-space: pre; padding: var(--esp-size-padding); overflow: auto; line-height: 1.8; } /* ── Images ────────────────────────────────────────────── */ esp-root img, esp-root picture { max-width: 100%; display: block; } `",
|
|
53687
|
+
"description": "Light-DOM styles injected into `document.head` so that\nslotted content (headings, links, code blocks, lists, etc.)\ninherits the design-system tokens defined on `:host`.\nSelectors are scoped to `esp-root` descendants to avoid\nleaking into content outside the root."
|
|
53720
53688
|
}
|
|
53721
53689
|
],
|
|
53722
|
-
"
|
|
53690
|
+
"attributes": [
|
|
53723
53691
|
{
|
|
53724
|
-
"
|
|
53725
|
-
"
|
|
53692
|
+
"name": "light-theme",
|
|
53693
|
+
"type": {
|
|
53694
|
+
"text": "string"
|
|
53695
|
+
},
|
|
53696
|
+
"default": "\"\"",
|
|
53697
|
+
"description": "Base64-encoded JSON partial theme for the **light** scheme.\n\nOnly fields you wish to override need to be present — all\nothers inherit from the built-in light defaults.\n\n```html\n<esp-root\n light-theme=\"eyJzZWVkQ29sb3IiOiJva2xjaCgwLjcgMC4xNSAyODUpIn0=\"\n scheme=\"light\">\n <esp-box><h2>Purple light theme</h2></esp-box>\n</esp-root>\n```",
|
|
53698
|
+
"fieldName": "lightThemeAttr"
|
|
53726
53699
|
},
|
|
53727
53700
|
{
|
|
53728
|
-
"
|
|
53729
|
-
"
|
|
53701
|
+
"name": "dark-theme",
|
|
53702
|
+
"type": {
|
|
53703
|
+
"text": "string"
|
|
53704
|
+
},
|
|
53705
|
+
"default": "\"\"",
|
|
53706
|
+
"description": "Base64-encoded JSON partial theme for the **dark** scheme.\n\n```html\n<esp-root\n dark-theme=\"eyJzZWVkQ29sb3IiOiJva2xjaCgwLjcgMC4xNSAyODUpIn0=\"\n scheme=\"dark\">\n <esp-box><h2>Purple dark theme</h2></esp-box>\n</esp-root>\n```",
|
|
53707
|
+
"fieldName": "darkThemeAttr"
|
|
53730
53708
|
},
|
|
53731
53709
|
{
|
|
53732
|
-
"
|
|
53733
|
-
"
|
|
53710
|
+
"name": "font-css-root",
|
|
53711
|
+
"type": {
|
|
53712
|
+
"text": "string"
|
|
53713
|
+
},
|
|
53714
|
+
"default": "\"/css/fonts/\"",
|
|
53715
|
+
"description": "Root path for locally-cached font CSS files used by\n`<esp-font-picker>` to load font previews.\n\nThe directory must contain the individual font CSS files\ngenerated by `npm run build-fonts`. These files must be\nserved at stable, predictable paths (no filename hashing)\nbecause the picker constructs URLs by font family name.",
|
|
53716
|
+
"fieldName": "fontCSSRoot"
|
|
53734
53717
|
},
|
|
53735
53718
|
{
|
|
53736
|
-
"name": "
|
|
53719
|
+
"name": "font-definitions-url",
|
|
53737
53720
|
"type": {
|
|
53738
|
-
"text": "
|
|
53721
|
+
"text": "string"
|
|
53739
53722
|
},
|
|
53740
|
-
"
|
|
53741
|
-
|
|
53742
|
-
|
|
53743
|
-
|
|
53744
|
-
}
|
|
53745
|
-
],
|
|
53746
|
-
"attributes": [
|
|
53723
|
+
"default": "\"\"",
|
|
53724
|
+
"description": "Full URL to the `font-definitions.json` catalog used by\n`<esp-font-picker>`.\n\nWhen set, the picker fetches from this URL instead of\n`{fontCSSRoot}font-definitions.json`. This allows the JSON\nto be served through a cache-busting asset pipeline while\nthe individual font CSS files remain at stable paths.",
|
|
53725
|
+
"fieldName": "fontDefinitionsUrl"
|
|
53726
|
+
},
|
|
53747
53727
|
{
|
|
53748
|
-
"name": "
|
|
53728
|
+
"name": "google-font-loading",
|
|
53729
|
+
"type": {
|
|
53730
|
+
"text": "\"auto\" | \"none\""
|
|
53731
|
+
},
|
|
53732
|
+
"default": "\"auto\"",
|
|
53733
|
+
"description": "Controls whether Espalier may inject runtime Google Fonts CDN\nstylesheet links for selected Google Fonts.\n\n`auto` preserves the default behavior: theme font families and\nselected Google font-picker values may load full fonts from\n`fonts.googleapis.com`. `none` prevents those runtime Google\nFonts links, leaving local preview CSS and web-safe font stacks\navailable for locked-down, offline, or strict-CSP environments.",
|
|
53734
|
+
"fieldName": "googleFontLoading"
|
|
53735
|
+
},
|
|
53736
|
+
{
|
|
53737
|
+
"name": "icon-sprite-url",
|
|
53749
53738
|
"type": {
|
|
53750
53739
|
"text": "string"
|
|
53751
53740
|
},
|
|
53752
|
-
"default": "\"
|
|
53753
|
-
"description": "
|
|
53754
|
-
"fieldName": "
|
|
53741
|
+
"default": "\"/assets/icons.svg\"",
|
|
53742
|
+
"description": "Full URL to the SVG sprite used by component-owned `icon`\nattributes.\n\nComponents append the validated icon name as a fragment, so\nthis should point to the sprite file itself, without `#icon`.\nUse this when your application serves the sprite from a\nsubpath, CDN, or cache-busted asset pipeline. Set it to an\nempty string to disable generated sprite icon URLs for this root.\n\n```html\n<esp-root icon-sprite-url=\"/dist/icons.abc123.svg\">\n <esp-button icon=\"save\" label=\"Save\"></esp-button>\n</esp-root>\n```",
|
|
53743
|
+
"fieldName": "iconSpriteUrl"
|
|
53755
53744
|
},
|
|
53756
53745
|
{
|
|
53757
|
-
"name": "scheme",
|
|
53746
|
+
"name": "default-scheme",
|
|
53758
53747
|
"type": {
|
|
53759
|
-
"text": "\"dark\" | \"
|
|
53748
|
+
"text": "\"light\" | \"dark\" | \"system\""
|
|
53760
53749
|
},
|
|
53761
53750
|
"default": "\"light\"",
|
|
53762
|
-
"description": "
|
|
53763
|
-
"fieldName": "
|
|
53764
|
-
"inheritedFrom": {
|
|
53765
|
-
"name": "EspalierElementBase",
|
|
53766
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53767
|
-
}
|
|
53751
|
+
"description": "Initial color scheme to apply when `scheme` is not set.\n\nUse `light` or `dark` for a fixed published-site default, or\n`system` to follow the visitor's `prefers-color-scheme` before\nthey toggle the active `scheme`.",
|
|
53752
|
+
"fieldName": "defaultScheme"
|
|
53768
53753
|
},
|
|
53769
53754
|
{
|
|
53770
|
-
"name": "
|
|
53755
|
+
"name": "scheme",
|
|
53771
53756
|
"type": {
|
|
53772
|
-
"text": "
|
|
53757
|
+
"text": "\"dark\" | \"light\""
|
|
53773
53758
|
},
|
|
53774
|
-
"description": "The
|
|
53775
|
-
"
|
|
53776
|
-
"
|
|
53777
|
-
"name": "EspalierElementBase",
|
|
53778
|
-
"module": "dist/shared/esp-element-base.js"
|
|
53779
|
-
}
|
|
53759
|
+
"description": "The active color scheme.\n\nLight scheme\n\n```html\n<esp-root scheme=\"light\">\n <esp-box>\n <h2>Light Scheme</h2>\n <esp-button label=\"I am light\"></esp-button>\n </esp-box>\n</esp-root>\n```\n\nDark scheme\n\n```html\n<esp-root scheme=\"dark\">\n <esp-box>\n <h2>Dark Scheme</h2>\n <esp-button label=\"I am dark\"></esp-button>\n </esp-box>\n</esp-root>\n```",
|
|
53760
|
+
"default": "\"light\"",
|
|
53761
|
+
"fieldName": "scheme"
|
|
53780
53762
|
}
|
|
53781
53763
|
],
|
|
53782
53764
|
"superclass": {
|
|
53783
|
-
"name": "
|
|
53784
|
-
"
|
|
53785
|
-
},
|
|
53786
|
-
"docUrl": {
|
|
53787
|
-
"name": "/components/search",
|
|
53788
|
-
"description": ""
|
|
53765
|
+
"name": "LitElement",
|
|
53766
|
+
"package": "lit"
|
|
53789
53767
|
},
|
|
53768
|
+
"tagName": "esp-root",
|
|
53769
|
+
"customElement": true,
|
|
53790
53770
|
"docPageTitle": {
|
|
53791
|
-
"name": "
|
|
53771
|
+
"name": "Root",
|
|
53792
53772
|
"description": ""
|
|
53793
53773
|
},
|
|
53794
|
-
"
|
|
53795
|
-
"name": "
|
|
53774
|
+
"docUrl": {
|
|
53775
|
+
"name": "/components/root",
|
|
53796
53776
|
"description": ""
|
|
53797
53777
|
},
|
|
53798
53778
|
"menuGroup": {
|
|
53799
|
-
"name": "
|
|
53779
|
+
"name": "Structure",
|
|
53800
53780
|
"description": ""
|
|
53801
53781
|
},
|
|
53802
53782
|
"menuOrder": {
|
|
53803
|
-
"name": "
|
|
53783
|
+
"name": "1",
|
|
53804
53784
|
"description": ""
|
|
53805
53785
|
},
|
|
53806
|
-
"
|
|
53807
|
-
"name": "
|
|
53786
|
+
"menuLabel": {
|
|
53787
|
+
"name": "Root",
|
|
53808
53788
|
"description": ""
|
|
53809
53789
|
},
|
|
53810
|
-
"
|
|
53811
|
-
|
|
53812
|
-
|
|
53813
|
-
|
|
53814
|
-
"title": "Basic search (consumer wiring not shown)",
|
|
53815
|
-
"body": "```html\n<esp-search placeholder=\"Search docs...\"></esp-search>\n```"
|
|
53816
|
-
}
|
|
53817
|
-
]
|
|
53790
|
+
"menuIcon": {
|
|
53791
|
+
"name": "building",
|
|
53792
|
+
"description": ""
|
|
53793
|
+
}
|
|
53818
53794
|
}
|
|
53819
53795
|
],
|
|
53820
53796
|
"exports": [
|
|
53821
53797
|
{
|
|
53822
53798
|
"kind": "js",
|
|
53823
|
-
"name": "
|
|
53799
|
+
"name": "registerImageTexture",
|
|
53824
53800
|
"declaration": {
|
|
53825
|
-
"name": "
|
|
53826
|
-
"module": "
|
|
53801
|
+
"name": "registerImageTexture",
|
|
53802
|
+
"module": "../shared/image-texture-registry.js"
|
|
53803
|
+
}
|
|
53804
|
+
},
|
|
53805
|
+
{
|
|
53806
|
+
"kind": "js",
|
|
53807
|
+
"name": "registeredImageTextures",
|
|
53808
|
+
"declaration": {
|
|
53809
|
+
"name": "registeredImageTextures",
|
|
53810
|
+
"module": "../shared/image-texture-registry.js"
|
|
53811
|
+
}
|
|
53812
|
+
},
|
|
53813
|
+
{
|
|
53814
|
+
"kind": "js",
|
|
53815
|
+
"name": "BUILT_IN_IMAGE_TEXTURES",
|
|
53816
|
+
"declaration": {
|
|
53817
|
+
"name": "BUILT_IN_IMAGE_TEXTURES",
|
|
53818
|
+
"module": "../shared/image-texture-registry.js"
|
|
53819
|
+
}
|
|
53820
|
+
},
|
|
53821
|
+
{
|
|
53822
|
+
"kind": "js",
|
|
53823
|
+
"name": "ImageTextureDefinition",
|
|
53824
|
+
"declaration": {
|
|
53825
|
+
"name": "ImageTextureDefinition",
|
|
53826
|
+
"module": "../shared/image-texture-registry.js"
|
|
53827
|
+
}
|
|
53828
|
+
},
|
|
53829
|
+
{
|
|
53830
|
+
"kind": "js",
|
|
53831
|
+
"name": "SchemeEvents",
|
|
53832
|
+
"declaration": {
|
|
53833
|
+
"name": "SchemeEvents",
|
|
53834
|
+
"module": "../shared/bus-events.js"
|
|
53835
|
+
}
|
|
53836
|
+
},
|
|
53837
|
+
{
|
|
53838
|
+
"kind": "js",
|
|
53839
|
+
"name": "EspalierRoot",
|
|
53840
|
+
"declaration": {
|
|
53841
|
+
"name": "EspalierRoot",
|
|
53842
|
+
"module": "dist/root/esp-root.js"
|
|
53827
53843
|
}
|
|
53828
53844
|
},
|
|
53829
53845
|
{
|
|
53830
53846
|
"kind": "custom-element-definition",
|
|
53831
|
-
"name": "esp-
|
|
53847
|
+
"name": "esp-root",
|
|
53832
53848
|
"declaration": {
|
|
53833
|
-
"name": "
|
|
53834
|
-
"module": "dist/
|
|
53849
|
+
"name": "EspalierRoot",
|
|
53850
|
+
"module": "dist/root/esp-root.js"
|
|
53835
53851
|
}
|
|
53836
53852
|
}
|
|
53837
53853
|
]
|