@taprootio/espalier 7.3.0 → 7.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/custom-elements.json +1432 -1230
- package/dist/badge/esp-badge.d.ts +39 -0
- package/dist/badge/esp-badge.js +35 -6
- package/dist/breadcrumbs/esp-breadcrumb.d.ts +1 -0
- package/dist/breadcrumbs/esp-breadcrumb.js +11 -3
- package/dist/breadcrumbs/esp-breadcrumbs.js +6 -6
- package/dist/cli/theme-check.js +2 -2
- package/dist/footer/esp-footer-link-group.js +11 -8
- package/dist/footer/esp-footer.d.ts +3 -3
- package/dist/footer/esp-footer.js +11 -9
- package/dist/footer/paint-registration.js +1 -1
- package/dist/root/esp-root.js +37 -7
- package/dist/root/helpers/compute-semantic-properties.js +1 -1
- package/dist/root/helpers/compute-theme-properties.js +1 -1
- package/dist/shared/color-engine.js +1 -1
- package/dist/shared/component-property-diagnostics.js +1 -1
- package/dist/shared/component-property-normalizer.js +1 -1
- package/dist/shared/esp-element-base.js +2 -2
- package/dist/shared/footer-ink-styles.js +18 -0
- package/dist/shared/footer-ink.js +1 -0
- package/dist/shared/paint-catalog.js +1 -1
- package/dist/shared/paint-fit.js +1 -1
- package/dist/shared/public-token-catalog.generated.js +1 -1
- package/dist/shared/settable-component-properties.js +1 -1
- package/dist/shared/theme-fit-report.d.ts +6 -4
- package/dist/shared/theme-fit-report.js +1 -1
- package/dist/testing/observe-paint.iife.js +2 -2
- package/espalier.css-data.json +47 -3
- package/espalier.token-manifest.json +190 -3
- package/package.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -5921,7 +5921,7 @@
|
|
|
5921
5921
|
"declarations": [
|
|
5922
5922
|
{
|
|
5923
5923
|
"kind": "class",
|
|
5924
|
-
"description": "A compact status chip for counts, labels, and semantic state.\n\nBadges truncate long labels with an ellipsis when their container\nconstrains them. Leave enough inline space for critical status text\nthat must remain fully visible.\n\n```html\n<div style=\"display: flex; flex-wrap: wrap; gap: var(--esp-size-tiny);\">\n <esp-badge>Draft</esp-badge>\n <esp-badge intent=\"success\" icon=\"circle-dot\">Published</esp-badge>\n <esp-badge intent=\"warning\">Pending review</esp-badge>\n <esp-badge intent=\"danger\" icon=\"circle-x\">Banned</esp-badge>\n <esp-badge intent=\"info\" size=\"medium\" icon=\"info-i\">12 updates</esp-badge>\n</div>\n```",
|
|
5924
|
+
"description": "A compact status chip for counts, labels, and semantic state.\n\nBadges truncate long labels with an ellipsis when their container\nconstrains them. Leave enough inline space for critical status text\nthat must remain fully visible.\n\nPut a badge inside an anchor and set `linked` for link styling. A\nsmall chain mark identifies the link without relying on color. In the\nlight DOM under `esp-root`, add `data-esp-badge-link` to an anchor that\ncontains only the badge to put the interaction paint and focus ring on it.\nThe anchor owns navigation and keyboard focus.\n\n```html\n<a href=\"#badge\" data-esp-badge-link><esp-badge linked>Soups</esp-badge></a>\n```\n\n```html\n<div style=\"display: flex; flex-wrap: wrap; gap: var(--esp-size-tiny);\">\n <esp-badge>Draft</esp-badge>\n <esp-badge intent=\"success\" icon=\"circle-dot\">Published</esp-badge>\n <esp-badge intent=\"warning\">Pending review</esp-badge>\n <esp-badge intent=\"danger\" icon=\"circle-x\">Banned</esp-badge>\n <esp-badge intent=\"info\" size=\"medium\" icon=\"info-i\">12 updates</esp-badge>\n</div>\n```",
|
|
5925
5925
|
"name": "EspalierBadge",
|
|
5926
5926
|
"cssProperties": [
|
|
5927
5927
|
{
|
|
@@ -5932,6 +5932,46 @@
|
|
|
5932
5932
|
"description": "Text color of a neutral badge. Defaults to `var(--esp-color-text)`. The theme fits it against the neutral badge background at APCA Lc 75 when either property is set in the theme.",
|
|
5933
5933
|
"name": "--esp-badge-color"
|
|
5934
5934
|
},
|
|
5935
|
+
{
|
|
5936
|
+
"description": "Resting fill of a linked badge. Defaults to `var(--esp-color-background)`.",
|
|
5937
|
+
"name": "--esp-badge-link-background"
|
|
5938
|
+
},
|
|
5939
|
+
{
|
|
5940
|
+
"description": "Resting border of a linked badge. Defaults to `var(--esp-color-link)`.",
|
|
5941
|
+
"name": "--esp-badge-link-border-color"
|
|
5942
|
+
},
|
|
5943
|
+
{
|
|
5944
|
+
"description": "Resting ink of a linked badge. Defaults to `var(--esp-color-link)`. The theme fits this ink against the resting fill at APCA Lc 75 when either property is set.",
|
|
5945
|
+
"name": "--esp-badge-link-color"
|
|
5946
|
+
},
|
|
5947
|
+
{
|
|
5948
|
+
"description": "Hover fill of a linked badge. Defaults to `var(--esp-color-link-hover-bg)`.",
|
|
5949
|
+
"name": "--esp-badge-link-hover-background"
|
|
5950
|
+
},
|
|
5951
|
+
{
|
|
5952
|
+
"description": "Hover border of a linked badge. Defaults to `var(--esp-color-link-hover)`.",
|
|
5953
|
+
"name": "--esp-badge-link-hover-border-color"
|
|
5954
|
+
},
|
|
5955
|
+
{
|
|
5956
|
+
"description": "Hover ink of a linked badge. Defaults to `var(--esp-color-link-hover)`. The theme fits this ink against the hover fill at APCA Lc 75 when either property is set.",
|
|
5957
|
+
"name": "--esp-badge-link-hover-color"
|
|
5958
|
+
},
|
|
5959
|
+
{
|
|
5960
|
+
"description": "Focus fill of a linked badge. Defaults to `var(--esp-color-link-hover-bg)`.",
|
|
5961
|
+
"name": "--esp-badge-link-focus-background"
|
|
5962
|
+
},
|
|
5963
|
+
{
|
|
5964
|
+
"description": "Focus border of a linked badge. Defaults to `var(--esp-color-link-hover)`.",
|
|
5965
|
+
"name": "--esp-badge-link-focus-border-color"
|
|
5966
|
+
},
|
|
5967
|
+
{
|
|
5968
|
+
"description": "Keyboard focus ink of a linked badge inside the light DOM of `esp-root`. Defaults to `var(--esp-color-link-hover)`. The theme fits this ink against the focus fill at APCA Lc 75 when either property is set.",
|
|
5969
|
+
"name": "--esp-badge-link-focus-color"
|
|
5970
|
+
},
|
|
5971
|
+
{
|
|
5972
|
+
"description": "Color of the outer keyboard focus ring on a badge inside a light-DOM anchor marked `data-esp-badge-link`. Defaults to `var(--esp-color-link)`. Choose a color with at least 3:1 contrast against the surface surrounding the badge.",
|
|
5973
|
+
"name": "--esp-badge-link-focus-ring-color"
|
|
5974
|
+
},
|
|
5935
5975
|
{
|
|
5936
5976
|
"description": "Border color of a neutral badge. Defaults to `var(--esp-color-border)`.",
|
|
5937
5977
|
"name": "--esp-badge-border-color"
|
|
@@ -6059,6 +6099,18 @@
|
|
|
6059
6099
|
"attribute": "size",
|
|
6060
6100
|
"reflects": true
|
|
6061
6101
|
},
|
|
6102
|
+
{
|
|
6103
|
+
"kind": "field",
|
|
6104
|
+
"name": "linked",
|
|
6105
|
+
"type": {
|
|
6106
|
+
"text": "boolean"
|
|
6107
|
+
},
|
|
6108
|
+
"privacy": "public",
|
|
6109
|
+
"default": "false",
|
|
6110
|
+
"description": "Use the linked color set in place of the neutral and intent colors inside a native anchor.",
|
|
6111
|
+
"attribute": "linked",
|
|
6112
|
+
"reflects": true
|
|
6113
|
+
},
|
|
6062
6114
|
{
|
|
6063
6115
|
"kind": "field",
|
|
6064
6116
|
"name": "seedColorBacker",
|
|
@@ -6574,6 +6626,15 @@
|
|
|
6574
6626
|
"description": "Badge size.",
|
|
6575
6627
|
"fieldName": "size"
|
|
6576
6628
|
},
|
|
6629
|
+
{
|
|
6630
|
+
"name": "linked",
|
|
6631
|
+
"type": {
|
|
6632
|
+
"text": "boolean"
|
|
6633
|
+
},
|
|
6634
|
+
"default": "false",
|
|
6635
|
+
"description": "Use the linked color set in place of the neutral and intent colors inside a native anchor.",
|
|
6636
|
+
"fieldName": "linked"
|
|
6637
|
+
},
|
|
6577
6638
|
{
|
|
6578
6639
|
"type": {
|
|
6579
6640
|
"text": "\"1\"|\"2\"|\"3\"|\"4\""
|
|
@@ -7467,6 +7528,10 @@
|
|
|
7467
7528
|
{
|
|
7468
7529
|
"description": "Width and height of a separator icon. Defaults to `var(--esp-size-normal-to-medium)`. The settable range is 0.5rem to 2rem.",
|
|
7469
7530
|
"name": "--esp-breadcrumb-separator-size"
|
|
7531
|
+
},
|
|
7532
|
+
{
|
|
7533
|
+
"description": "Built-in line mark weight, from 0.5 to 6 in SVG units. Defaults to `2`.",
|
|
7534
|
+
"name": "--esp-breadcrumb-separator-stroke-width"
|
|
7470
7535
|
}
|
|
7471
7536
|
],
|
|
7472
7537
|
"slots": [
|
|
@@ -17566,231 +17631,6 @@
|
|
|
17566
17631
|
}
|
|
17567
17632
|
]
|
|
17568
17633
|
},
|
|
17569
|
-
{
|
|
17570
|
-
"kind": "javascript-module",
|
|
17571
|
-
"path": "dist/dialog/esp-dialog.js",
|
|
17572
|
-
"declarations": [
|
|
17573
|
-
{
|
|
17574
|
-
"kind": "class",
|
|
17575
|
-
"description": "Shows content in a modal dialog. By default, on large screens the\ndialog content is centered horizontally near the top of the\nscreen. On small screens, the content always tries to take up\nthe full screen width.\n\nA field fills one layer above the surface it sits on.\nUse `surface-layer=\"1|2|3|4\"` to select the default painted layer.\n\nWhen opened, the dialog:\n- Moves focus to the first `[autofocus]` element inside the slotted\n content, then the first focusable element (or the dialog container\n itself if none is found).\n- Traps focus so that `Tab` and `Shift+Tab` cycle only through\n elements inside the dialog.\n- Closes when the user presses `Escape`.\n- Marks all sibling content as `inert` to prevent screen reader\n and keyboard access to the page behind the overlay.\n- Restores focus to the element that was focused before the\n dialog was opened.\n\n### Bounded dialog\n\nA dialog covers the whole viewport by default. Set the four inset custom\nproperties on the `esp-dialog` host to confine it to a rectangle and leave\nthe rest of the page visible, for example to keep a header or a live preview\non screen while a full-screen editor is open. The vellum (the dialog's\nscrolling surface) and its backdrop paint only inside the rectangle, and a\nslotted `esp-box full-screen` fills exactly that rectangle.\n\nThe insets are lengths (`0px`, `4rem`, `var(--header-height)`), not unitless\nnumbers, and they are measured from the viewport edges. They are logical, so\n\"inline start\" is the left edge in left-to-right text and the right edge in\nright-to-left text. Because custom properties inherit, a dialog nested inside\na bounded dialog's markup is bounded the same way unless it sets its own\ninsets.\n\nBounds change only where the dialog paints. What stays reachable is decided\nby the same rules as an unbounded dialog:\n\n- The dialog has no click-outside dismissal, bounded or not. It closes on\n `Escape`, an `esp-form-dialog-close-requested` event, or `toggleOpen()`, so\n a click on the uncovered region never counts as an \"outside\" click.\n- The dialog marks `inert` the siblings of its anchor element, not the\n regions its bounds leave uncovered. The anchor is `esp-page`'s dialog drop\n zone when the dialog sits in the page's markup, so there the page's\n internal tracks (header, menus, preview, help, footer) are inert and not\n clickable even where the dialog does not cover them. A dialog that is a\n direct child of another component's shadow root is anchored on the nearest\n ancestor host that has a light-DOM parent, and only that host's siblings\n go inert; the page around it stays live. A dialog wrapped in an element\n inside that shadow root is anchored on itself, so its siblings in the\n wrapper go inert instead.\n- A region that is not inert receives clicks and keyboard focus. The focus\n trap wraps `Tab` and `Shift+Tab` at the dialog's first and last focusable\n elements, and `Escape` is handled on the dialog, both only while focus is\n inside it. A click on an uncovered control moves focus there, and from then\n on `Tab` continues through the page and `Escape` no longer closes the\n dialog. Set `inert` on the uncovered regions that must not be reachable\n while the dialog is open (an inert region is also skipped by screen\n readers).\n- Bounds assume a horizontal writing mode: the insets are logical, but the\n dialog's width and height are physical.\n\n```html\n<style>\n esp-dialog.bounded {\n --esp-dialog-inset-block-start: 6rem;\n --esp-dialog-inset-inline-start: 3rem;\n --esp-dialog-inset-inline-end: 3rem;\n --esp-dialog-inset-block-end: 2rem;\n }\n</style>\n<esp-dialog class=\"bounded\" full-screen>\n <esp-box full-screen>\n <h2>Bounded dialog</h2>\n <p>The page above and around this box stays visible.</p>\n <esp-button intent=\"danger\" label=\"Close\"></esp-button>\n </esp-box>\n</esp-dialog>\n<esp-button label=\"Show Dialog\"></esp-button>\n<script>\n const theDialog = findByTagName(\"esp-dialog\")[0];\n const buttons = findByTagName(\"esp-button\");\n buttons[0].addEventListener(\"esp-clicked\", () => {\n theDialog.toggleOpen();\n });\n buttons[1].addEventListener(\"esp-clicked\", () => {\n theDialog.toggleOpen();\n });\n</script>\n```",
|
|
17576
|
-
"name": "EspalierDialog",
|
|
17577
|
-
"cssProperties": [
|
|
17578
|
-
{
|
|
17579
|
-
"description": "The background color of the dialog overlay.",
|
|
17580
|
-
"name": "--esp-color-dialog-bg"
|
|
17581
|
-
},
|
|
17582
|
-
{
|
|
17583
|
-
"description": "The opacity of the dialog overlay background.",
|
|
17584
|
-
"name": "--esp-dialog-bg-opacity"
|
|
17585
|
-
},
|
|
17586
|
-
{
|
|
17587
|
-
"description": "The top edge of the area the dialog covers, as a length from the viewport top. Defaults to `0px`.",
|
|
17588
|
-
"name": "--esp-dialog-inset-block-start"
|
|
17589
|
-
},
|
|
17590
|
-
{
|
|
17591
|
-
"description": "The leading edge (left in left-to-right text) of the area the dialog covers, as a length from the viewport edge. Defaults to `0px`.",
|
|
17592
|
-
"name": "--esp-dialog-inset-inline-start"
|
|
17593
|
-
},
|
|
17594
|
-
{
|
|
17595
|
-
"description": "The trailing edge (right in left-to-right text) of the area the dialog covers, as a length from the viewport edge. Defaults to `0px`.",
|
|
17596
|
-
"name": "--esp-dialog-inset-inline-end"
|
|
17597
|
-
},
|
|
17598
|
-
{
|
|
17599
|
-
"description": "The bottom edge of the area the dialog covers, as a length from the viewport bottom. Defaults to `0px`.",
|
|
17600
|
-
"name": "--esp-dialog-inset-block-end"
|
|
17601
|
-
}
|
|
17602
|
-
],
|
|
17603
|
-
"slots": [
|
|
17604
|
-
{
|
|
17605
|
-
"description": "Place content to show modally in the default slot. ```html <esp-dialog> <esp-box> <h2>Showing something</h2> <p>There could be controls or a confirmation or anything here.</p> <esp-button intent=\"danger\" label=\"Close\"></esp-button> </esp-box> </esp-dialog> <esp-button label=\"Show Dialog\"></esp-button> <script> const theDialog = findByTagName(\"esp-dialog\")[0]; const buttons = findByTagName(\"esp-button\"); buttons[0].addEventListener(\"esp-clicked\", () => { theDialog.toggleOpen(); }); buttons[1].addEventListener(\"esp-clicked\", () => { theDialog.toggleOpen(); }); </script> ``` Dialogs work well as containers for complex forms. Picker menus, inputs, and other interactive controls render correctly inside the dialog overlay. ```html <esp-dialog> <esp-box> <h2>Add Item</h2> <esp-form-item label=\"Name\" autofocus> <esp-input placeholder=\"Enter a name\"></esp-input> </esp-form-item> <esp-form-item label=\"Category\"> <esp-pick-one placeholder=\"Choose a category\"> <esp-picker-item text=\"Electronics\" value=\"electronics\"></esp-picker-item> <esp-picker-item text=\"Clothing\" value=\"clothing\"></esp-picker-item> <esp-picker-item text=\"Books\" value=\"books\"></esp-picker-item> <esp-picker-item text=\"Home & Garden\" value=\"home-garden\"></esp-picker-item> </esp-pick-one> </esp-form-item> <esp-form-item label=\"Notes\"> <esp-textarea placeholder=\"Optional notes\"></esp-textarea> </esp-form-item> <esp-button intent=\"success\" label=\"Save\"></esp-button> <esp-button intent=\"danger\" label=\"Cancel\"></esp-button> </esp-box> </esp-dialog> <esp-button label=\"Open Form\"></esp-button> <script> const dialog = findByTagName(\"esp-dialog\")[0]; const buttons = findByTagName(\"esp-button\"); const openBtn = buttons[buttons.length - 1]; const cancelBtn = buttons[1]; openBtn.addEventListener(\"esp-clicked\", () => { dialog.toggleOpen(); }); cancelBtn.addEventListener(\"esp-clicked\", () => { dialog.toggleOpen(); }); </script> ```",
|
|
17606
|
-
"name": ""
|
|
17607
|
-
}
|
|
17608
|
-
],
|
|
17609
|
-
"members": [
|
|
17610
|
-
{
|
|
17611
|
-
"kind": "field",
|
|
17612
|
-
"name": "dialogSlot",
|
|
17613
|
-
"privacy": "private"
|
|
17614
|
-
},
|
|
17615
|
-
{
|
|
17616
|
-
"kind": "field",
|
|
17617
|
-
"name": "vellumRef",
|
|
17618
|
-
"privacy": "private"
|
|
17619
|
-
},
|
|
17620
|
-
{
|
|
17621
|
-
"kind": "field",
|
|
17622
|
-
"name": "isOpen",
|
|
17623
|
-
"type": {
|
|
17624
|
-
"text": "boolean"
|
|
17625
|
-
},
|
|
17626
|
-
"privacy": "private",
|
|
17627
|
-
"default": "false"
|
|
17628
|
-
},
|
|
17629
|
-
{
|
|
17630
|
-
"kind": "field",
|
|
17631
|
-
"name": "_overlay",
|
|
17632
|
-
"privacy": "private",
|
|
17633
|
-
"default": "new OverlayController({ host: this, getFocusTrapContainer: () => this.vellumRef.value ?? null, getFocusFallback: () => this.vellumRef.value ?? null, })"
|
|
17634
|
-
},
|
|
17635
|
-
{
|
|
17636
|
-
"kind": "field",
|
|
17637
|
-
"name": "_closeReason",
|
|
17638
|
-
"type": {
|
|
17639
|
-
"text": "\"escape\" | \"close-dialog\" | \"api\""
|
|
17640
|
-
},
|
|
17641
|
-
"privacy": "private",
|
|
17642
|
-
"default": "\"api\"",
|
|
17643
|
-
"description": "Tracks why the dialog is closing so lifecycle events can\nreport it. Reset to `\"api\"` after each close cycle."
|
|
17644
|
-
},
|
|
17645
|
-
{
|
|
17646
|
-
"kind": "field",
|
|
17647
|
-
"name": "_lifecycleToken",
|
|
17648
|
-
"type": {
|
|
17649
|
-
"text": "number"
|
|
17650
|
-
},
|
|
17651
|
-
"privacy": "private",
|
|
17652
|
-
"default": "0",
|
|
17653
|
-
"description": "Monotonic token used to invalidate async open/close lifecycle\ncallbacks from earlier toggle cycles."
|
|
17654
|
-
},
|
|
17655
|
-
{
|
|
17656
|
-
"kind": "field",
|
|
17657
|
-
"name": "fullScreen",
|
|
17658
|
-
"type": {
|
|
17659
|
-
"text": "boolean"
|
|
17660
|
-
},
|
|
17661
|
-
"privacy": "public",
|
|
17662
|
-
"default": "false",
|
|
17663
|
-
"description": "If true, the dialog will take up the full screen. On\nsmall screens, the dialog will always be full screen.\n\n```html\n<esp-dialog full-screen>\n <esp-box full-screen>\n <h2>Full screen dialog</h2>\n <p>There could be controls or a confirmation or anything here.</p>\n <esp-button intent=\"danger\" label=\"Close\"></esp-button>\n </esp-box>\n</esp-dialog>\n<esp-button label=\"Show Dialog\"></esp-button>\n<script>\n const theDialog = findByTagName(\"esp-dialog\")[0];\n const buttons = findByTagName(\"esp-button\");\n buttons[0].addEventListener(\"esp-clicked\", () => {\n theDialog.toggleOpen();\n });\n buttons[1].addEventListener(\"esp-clicked\", () => {\n theDialog.toggleOpen();\n });\n</script>\n```",
|
|
17664
|
-
"attribute": "full-screen"
|
|
17665
|
-
},
|
|
17666
|
-
{
|
|
17667
|
-
"kind": "method",
|
|
17668
|
-
"name": "toggleOpen",
|
|
17669
|
-
"privacy": "public",
|
|
17670
|
-
"description": "Show or hide the dialog content. When opening, focus moves\ninto the dialog and sibling content is marked `inert`. When\nclosing, focus is restored to the element that was focused\nbefore the dialog opened.\n\nDispatches lifecycle events:\n- `esp-dialog-opened` after the dialog is fully rendered and\n focus has moved in.\n- `esp-dialog-closing` (cancelable) before the close begins.\n- `esp-dialog-closed` after the close completes."
|
|
17671
|
-
},
|
|
17672
|
-
{
|
|
17673
|
-
"kind": "method",
|
|
17674
|
-
"name": "_handleKeyDown",
|
|
17675
|
-
"privacy": "private",
|
|
17676
|
-
"return": {
|
|
17677
|
-
"type": {
|
|
17678
|
-
"text": "void"
|
|
17679
|
-
}
|
|
17680
|
-
},
|
|
17681
|
-
"parameters": [
|
|
17682
|
-
{
|
|
17683
|
-
"name": "ev",
|
|
17684
|
-
"type": {
|
|
17685
|
-
"text": "KeyboardEvent"
|
|
17686
|
-
}
|
|
17687
|
-
}
|
|
17688
|
-
]
|
|
17689
|
-
},
|
|
17690
|
-
{
|
|
17691
|
-
"kind": "method",
|
|
17692
|
-
"name": "_moveFocusIntoDialog",
|
|
17693
|
-
"privacy": "private",
|
|
17694
|
-
"return": {
|
|
17695
|
-
"type": {
|
|
17696
|
-
"text": "void"
|
|
17697
|
-
}
|
|
17698
|
-
},
|
|
17699
|
-
"description": "Move focus to the first autofocus element inside the slotted\ncontent, then the first focusable element. If no focusable\nelement is found, focus the vellum container itself (which has\n`tabindex=\"-1\"`)."
|
|
17700
|
-
}
|
|
17701
|
-
],
|
|
17702
|
-
"events": [
|
|
17703
|
-
{
|
|
17704
|
-
"type": {
|
|
17705
|
-
"text": "CustomEvent<{}>"
|
|
17706
|
-
},
|
|
17707
|
-
"description": "Fired after the dialog has been promoted to its final DOM position, rendered, and focus has moved in. Safe to initialize third-party widgets (e.g. Stripe Elements) or measure layout at this point.",
|
|
17708
|
-
"name": "esp-dialog-opened"
|
|
17709
|
-
},
|
|
17710
|
-
{
|
|
17711
|
-
"type": {
|
|
17712
|
-
"text": "CustomEvent<{ reason: \"escape\" | \"close-dialog\" | \"api\" }>"
|
|
17713
|
-
},
|
|
17714
|
-
"description": "Fired before the dialog begins closing. Call `event.preventDefault()` to cancel the close (e.g. for unsaved-changes confirmation). The `reason` indicates what triggered the close: `\"escape\"` for the Escape key, `\"close-dialog\"` for a `esp-form-dialog-close-requested` event from slotted content (typically `<esp-form method=\"dialog\">`), or `\"api\"` for a direct `toggleOpen()` call.",
|
|
17715
|
-
"name": "esp-dialog-closing"
|
|
17716
|
-
},
|
|
17717
|
-
{
|
|
17718
|
-
"type": {
|
|
17719
|
-
"text": "CustomEvent<{ reason: \"escape\" | \"close-dialog\" | \"api\" }>"
|
|
17720
|
-
},
|
|
17721
|
-
"description": "Fired after the dialog has fully closed, inert state has been restored, and focus has returned to the previously focused element. Safe to tear down resources.",
|
|
17722
|
-
"name": "esp-dialog-closed"
|
|
17723
|
-
}
|
|
17724
|
-
],
|
|
17725
|
-
"attributes": [
|
|
17726
|
-
{
|
|
17727
|
-
"type": {
|
|
17728
|
-
"text": "\"1\"|\"2\"|\"3\"|\"4\""
|
|
17729
|
-
},
|
|
17730
|
-
"description": "Declares the painted surface depth; defaults to layer 3.",
|
|
17731
|
-
"name": "surface-layer"
|
|
17732
|
-
},
|
|
17733
|
-
{
|
|
17734
|
-
"name": "full-screen",
|
|
17735
|
-
"type": {
|
|
17736
|
-
"text": "boolean"
|
|
17737
|
-
},
|
|
17738
|
-
"default": "false",
|
|
17739
|
-
"description": "If true, the dialog will take up the full screen. On\nsmall screens, the dialog will always be full screen.\n\n```html\n<esp-dialog full-screen>\n <esp-box full-screen>\n <h2>Full screen dialog</h2>\n <p>There could be controls or a confirmation or anything here.</p>\n <esp-button intent=\"danger\" label=\"Close\"></esp-button>\n </esp-box>\n</esp-dialog>\n<esp-button label=\"Show Dialog\"></esp-button>\n<script>\n const theDialog = findByTagName(\"esp-dialog\")[0];\n const buttons = findByTagName(\"esp-button\");\n buttons[0].addEventListener(\"esp-clicked\", () => {\n theDialog.toggleOpen();\n });\n buttons[1].addEventListener(\"esp-clicked\", () => {\n theDialog.toggleOpen();\n });\n</script>\n```",
|
|
17740
|
-
"fieldName": "fullScreen"
|
|
17741
|
-
}
|
|
17742
|
-
],
|
|
17743
|
-
"superclass": {
|
|
17744
|
-
"name": "LitElement",
|
|
17745
|
-
"package": "lit"
|
|
17746
|
-
},
|
|
17747
|
-
"tagName": "esp-dialog",
|
|
17748
|
-
"customElement": true,
|
|
17749
|
-
"docPageTitle": {
|
|
17750
|
-
"name": "Dialog",
|
|
17751
|
-
"description": ""
|
|
17752
|
-
},
|
|
17753
|
-
"docUrl": {
|
|
17754
|
-
"name": "/components/dialog",
|
|
17755
|
-
"description": ""
|
|
17756
|
-
},
|
|
17757
|
-
"menuGroup": {
|
|
17758
|
-
"name": "Structure",
|
|
17759
|
-
"description": ""
|
|
17760
|
-
},
|
|
17761
|
-
"menuOrder": {
|
|
17762
|
-
"name": "6",
|
|
17763
|
-
"description": ""
|
|
17764
|
-
},
|
|
17765
|
-
"menuLabel": {
|
|
17766
|
-
"name": "Dialog",
|
|
17767
|
-
"description": ""
|
|
17768
|
-
},
|
|
17769
|
-
"menuIcon": {
|
|
17770
|
-
"name": "focus-centered",
|
|
17771
|
-
"description": ""
|
|
17772
|
-
}
|
|
17773
|
-
}
|
|
17774
|
-
],
|
|
17775
|
-
"exports": [
|
|
17776
|
-
{
|
|
17777
|
-
"kind": "js",
|
|
17778
|
-
"name": "EspalierDialog",
|
|
17779
|
-
"declaration": {
|
|
17780
|
-
"name": "EspalierDialog",
|
|
17781
|
-
"module": "dist/dialog/esp-dialog.js"
|
|
17782
|
-
}
|
|
17783
|
-
},
|
|
17784
|
-
{
|
|
17785
|
-
"kind": "custom-element-definition",
|
|
17786
|
-
"name": "esp-dialog",
|
|
17787
|
-
"declaration": {
|
|
17788
|
-
"name": "EspalierDialog",
|
|
17789
|
-
"module": "dist/dialog/esp-dialog.js"
|
|
17790
|
-
}
|
|
17791
|
-
}
|
|
17792
|
-
]
|
|
17793
|
-
},
|
|
17794
17634
|
{
|
|
17795
17635
|
"kind": "javascript-module",
|
|
17796
17636
|
"path": "dist/empty-state/esp-empty-state.js",
|
|
@@ -18560,21 +18400,58 @@
|
|
|
18560
18400
|
},
|
|
18561
18401
|
{
|
|
18562
18402
|
"kind": "javascript-module",
|
|
18563
|
-
"path": "dist/
|
|
18403
|
+
"path": "dist/dialog/esp-dialog.js",
|
|
18564
18404
|
"declarations": [
|
|
18565
18405
|
{
|
|
18566
18406
|
"kind": "class",
|
|
18567
|
-
"description": "
|
|
18568
|
-
"name": "
|
|
18407
|
+
"description": "Shows content in a modal dialog. By default, on large screens the\ndialog content is centered horizontally near the top of the\nscreen. On small screens, the content always tries to take up\nthe full screen width.\n\nA field fills one layer above the surface it sits on.\nUse `surface-layer=\"1|2|3|4\"` to select the default painted layer.\n\nWhen opened, the dialog:\n- Moves focus to the first `[autofocus]` element inside the slotted\n content, then the first focusable element (or the dialog container\n itself if none is found).\n- Traps focus so that `Tab` and `Shift+Tab` cycle only through\n elements inside the dialog.\n- Closes when the user presses `Escape`.\n- Marks all sibling content as `inert` to prevent screen reader\n and keyboard access to the page behind the overlay.\n- Restores focus to the element that was focused before the\n dialog was opened.\n\n### Bounded dialog\n\nA dialog covers the whole viewport by default. Set the four inset custom\nproperties on the `esp-dialog` host to confine it to a rectangle and leave\nthe rest of the page visible, for example to keep a header or a live preview\non screen while a full-screen editor is open. The vellum (the dialog's\nscrolling surface) and its backdrop paint only inside the rectangle, and a\nslotted `esp-box full-screen` fills exactly that rectangle.\n\nThe insets are lengths (`0px`, `4rem`, `var(--header-height)`), not unitless\nnumbers, and they are measured from the viewport edges. They are logical, so\n\"inline start\" is the left edge in left-to-right text and the right edge in\nright-to-left text. Because custom properties inherit, a dialog nested inside\na bounded dialog's markup is bounded the same way unless it sets its own\ninsets.\n\nBounds change only where the dialog paints. What stays reachable is decided\nby the same rules as an unbounded dialog:\n\n- The dialog has no click-outside dismissal, bounded or not. It closes on\n `Escape`, an `esp-form-dialog-close-requested` event, or `toggleOpen()`, so\n a click on the uncovered region never counts as an \"outside\" click.\n- The dialog marks `inert` the siblings of its anchor element, not the\n regions its bounds leave uncovered. The anchor is `esp-page`'s dialog drop\n zone when the dialog sits in the page's markup, so there the page's\n internal tracks (header, menus, preview, help, footer) are inert and not\n clickable even where the dialog does not cover them. A dialog that is a\n direct child of another component's shadow root is anchored on the nearest\n ancestor host that has a light-DOM parent, and only that host's siblings\n go inert; the page around it stays live. A dialog wrapped in an element\n inside that shadow root is anchored on itself, so its siblings in the\n wrapper go inert instead.\n- A region that is not inert receives clicks and keyboard focus. The focus\n trap wraps `Tab` and `Shift+Tab` at the dialog's first and last focusable\n elements, and `Escape` is handled on the dialog, both only while focus is\n inside it. A click on an uncovered control moves focus there, and from then\n on `Tab` continues through the page and `Escape` no longer closes the\n dialog. Set `inert` on the uncovered regions that must not be reachable\n while the dialog is open (an inert region is also skipped by screen\n readers).\n- Bounds assume a horizontal writing mode: the insets are logical, but the\n dialog's width and height are physical.\n\n```html\n<style>\n esp-dialog.bounded {\n --esp-dialog-inset-block-start: 6rem;\n --esp-dialog-inset-inline-start: 3rem;\n --esp-dialog-inset-inline-end: 3rem;\n --esp-dialog-inset-block-end: 2rem;\n }\n</style>\n<esp-dialog class=\"bounded\" full-screen>\n <esp-box full-screen>\n <h2>Bounded dialog</h2>\n <p>The page above and around this box stays visible.</p>\n <esp-button intent=\"danger\" label=\"Close\"></esp-button>\n </esp-box>\n</esp-dialog>\n<esp-button label=\"Show Dialog\"></esp-button>\n<script>\n const theDialog = findByTagName(\"esp-dialog\")[0];\n const buttons = findByTagName(\"esp-button\");\n buttons[0].addEventListener(\"esp-clicked\", () => {\n theDialog.toggleOpen();\n });\n buttons[1].addEventListener(\"esp-clicked\", () => {\n theDialog.toggleOpen();\n });\n</script>\n```",
|
|
18408
|
+
"name": "EspalierDialog",
|
|
18409
|
+
"cssProperties": [
|
|
18410
|
+
{
|
|
18411
|
+
"description": "The background color of the dialog overlay.",
|
|
18412
|
+
"name": "--esp-color-dialog-bg"
|
|
18413
|
+
},
|
|
18414
|
+
{
|
|
18415
|
+
"description": "The opacity of the dialog overlay background.",
|
|
18416
|
+
"name": "--esp-dialog-bg-opacity"
|
|
18417
|
+
},
|
|
18418
|
+
{
|
|
18419
|
+
"description": "The top edge of the area the dialog covers, as a length from the viewport top. Defaults to `0px`.",
|
|
18420
|
+
"name": "--esp-dialog-inset-block-start"
|
|
18421
|
+
},
|
|
18422
|
+
{
|
|
18423
|
+
"description": "The leading edge (left in left-to-right text) of the area the dialog covers, as a length from the viewport edge. Defaults to `0px`.",
|
|
18424
|
+
"name": "--esp-dialog-inset-inline-start"
|
|
18425
|
+
},
|
|
18426
|
+
{
|
|
18427
|
+
"description": "The trailing edge (right in left-to-right text) of the area the dialog covers, as a length from the viewport edge. Defaults to `0px`.",
|
|
18428
|
+
"name": "--esp-dialog-inset-inline-end"
|
|
18429
|
+
},
|
|
18430
|
+
{
|
|
18431
|
+
"description": "The bottom edge of the area the dialog covers, as a length from the viewport bottom. Defaults to `0px`.",
|
|
18432
|
+
"name": "--esp-dialog-inset-block-end"
|
|
18433
|
+
}
|
|
18434
|
+
],
|
|
18435
|
+
"slots": [
|
|
18436
|
+
{
|
|
18437
|
+
"description": "Place content to show modally in the default slot. ```html <esp-dialog> <esp-box> <h2>Showing something</h2> <p>There could be controls or a confirmation or anything here.</p> <esp-button intent=\"danger\" label=\"Close\"></esp-button> </esp-box> </esp-dialog> <esp-button label=\"Show Dialog\"></esp-button> <script> const theDialog = findByTagName(\"esp-dialog\")[0]; const buttons = findByTagName(\"esp-button\"); buttons[0].addEventListener(\"esp-clicked\", () => { theDialog.toggleOpen(); }); buttons[1].addEventListener(\"esp-clicked\", () => { theDialog.toggleOpen(); }); </script> ``` Dialogs work well as containers for complex forms. Picker menus, inputs, and other interactive controls render correctly inside the dialog overlay. ```html <esp-dialog> <esp-box> <h2>Add Item</h2> <esp-form-item label=\"Name\" autofocus> <esp-input placeholder=\"Enter a name\"></esp-input> </esp-form-item> <esp-form-item label=\"Category\"> <esp-pick-one placeholder=\"Choose a category\"> <esp-picker-item text=\"Electronics\" value=\"electronics\"></esp-picker-item> <esp-picker-item text=\"Clothing\" value=\"clothing\"></esp-picker-item> <esp-picker-item text=\"Books\" value=\"books\"></esp-picker-item> <esp-picker-item text=\"Home & Garden\" value=\"home-garden\"></esp-picker-item> </esp-pick-one> </esp-form-item> <esp-form-item label=\"Notes\"> <esp-textarea placeholder=\"Optional notes\"></esp-textarea> </esp-form-item> <esp-button intent=\"success\" label=\"Save\"></esp-button> <esp-button intent=\"danger\" label=\"Cancel\"></esp-button> </esp-box> </esp-dialog> <esp-button label=\"Open Form\"></esp-button> <script> const dialog = findByTagName(\"esp-dialog\")[0]; const buttons = findByTagName(\"esp-button\"); const openBtn = buttons[buttons.length - 1]; const cancelBtn = buttons[1]; openBtn.addEventListener(\"esp-clicked\", () => { dialog.toggleOpen(); }); cancelBtn.addEventListener(\"esp-clicked\", () => { dialog.toggleOpen(); }); </script> ```",
|
|
18438
|
+
"name": ""
|
|
18439
|
+
}
|
|
18440
|
+
],
|
|
18569
18441
|
"members": [
|
|
18570
18442
|
{
|
|
18571
18443
|
"kind": "field",
|
|
18572
|
-
"name": "
|
|
18444
|
+
"name": "dialogSlot",
|
|
18573
18445
|
"privacy": "private"
|
|
18574
18446
|
},
|
|
18575
18447
|
{
|
|
18576
18448
|
"kind": "field",
|
|
18577
|
-
"name": "
|
|
18449
|
+
"name": "vellumRef",
|
|
18450
|
+
"privacy": "private"
|
|
18451
|
+
},
|
|
18452
|
+
{
|
|
18453
|
+
"kind": "field",
|
|
18454
|
+
"name": "isOpen",
|
|
18578
18455
|
"type": {
|
|
18579
18456
|
"text": "boolean"
|
|
18580
18457
|
},
|
|
@@ -18583,347 +18460,589 @@
|
|
|
18583
18460
|
},
|
|
18584
18461
|
{
|
|
18585
18462
|
"kind": "field",
|
|
18586
|
-
"name": "
|
|
18463
|
+
"name": "_overlay",
|
|
18464
|
+
"privacy": "private",
|
|
18465
|
+
"default": "new OverlayController({ host: this, getFocusTrapContainer: () => this.vellumRef.value ?? null, getFocusFallback: () => this.vellumRef.value ?? null, })"
|
|
18466
|
+
},
|
|
18467
|
+
{
|
|
18468
|
+
"kind": "field",
|
|
18469
|
+
"name": "_closeReason",
|
|
18587
18470
|
"type": {
|
|
18588
|
-
"text": "
|
|
18471
|
+
"text": "\"escape\" | \"close-dialog\" | \"api\""
|
|
18589
18472
|
},
|
|
18590
|
-
"privacy": "
|
|
18591
|
-
"default": "\"
|
|
18592
|
-
"description": "
|
|
18593
|
-
"attribute": "accept"
|
|
18473
|
+
"privacy": "private",
|
|
18474
|
+
"default": "\"api\"",
|
|
18475
|
+
"description": "Tracks why the dialog is closing so lifecycle events can\nreport it. Reset to `\"api\"` after each close cycle."
|
|
18594
18476
|
},
|
|
18595
18477
|
{
|
|
18596
18478
|
"kind": "field",
|
|
18597
|
-
"name": "
|
|
18479
|
+
"name": "_lifecycleToken",
|
|
18598
18480
|
"type": {
|
|
18599
|
-
"text": "
|
|
18481
|
+
"text": "number"
|
|
18600
18482
|
},
|
|
18601
|
-
"privacy": "
|
|
18602
|
-
"default": "
|
|
18603
|
-
"description": "
|
|
18604
|
-
"attribute": "choose-text"
|
|
18483
|
+
"privacy": "private",
|
|
18484
|
+
"default": "0",
|
|
18485
|
+
"description": "Monotonic token used to invalidate async open/close lifecycle\ncallbacks from earlier toggle cycles."
|
|
18605
18486
|
},
|
|
18606
18487
|
{
|
|
18607
18488
|
"kind": "field",
|
|
18608
|
-
"name": "
|
|
18489
|
+
"name": "fullScreen",
|
|
18609
18490
|
"type": {
|
|
18610
18491
|
"text": "boolean"
|
|
18611
18492
|
},
|
|
18612
18493
|
"privacy": "public",
|
|
18613
18494
|
"default": "false",
|
|
18614
|
-
"description": "
|
|
18615
|
-
"attribute": "
|
|
18495
|
+
"description": "If true, the dialog will take up the full screen. On\nsmall screens, the dialog will always be full screen.\n\n```html\n<esp-dialog full-screen>\n <esp-box full-screen>\n <h2>Full screen dialog</h2>\n <p>There could be controls or a confirmation or anything here.</p>\n <esp-button intent=\"danger\" label=\"Close\"></esp-button>\n </esp-box>\n</esp-dialog>\n<esp-button label=\"Show Dialog\"></esp-button>\n<script>\n const theDialog = findByTagName(\"esp-dialog\")[0];\n const buttons = findByTagName(\"esp-button\");\n buttons[0].addEventListener(\"esp-clicked\", () => {\n theDialog.toggleOpen();\n });\n buttons[1].addEventListener(\"esp-clicked\", () => {\n theDialog.toggleOpen();\n });\n</script>\n```",
|
|
18496
|
+
"attribute": "full-screen"
|
|
18616
18497
|
},
|
|
18617
18498
|
{
|
|
18618
|
-
"kind": "
|
|
18619
|
-
"name": "
|
|
18620
|
-
"privacy": "
|
|
18499
|
+
"kind": "method",
|
|
18500
|
+
"name": "toggleOpen",
|
|
18501
|
+
"privacy": "public",
|
|
18502
|
+
"description": "Show or hide the dialog content. When opening, focus moves\ninto the dialog and sibling content is marked `inert`. When\nclosing, focus is restored to the element that was focused\nbefore the dialog opened.\n\nDispatches lifecycle events:\n- `esp-dialog-opened` after the dialog is fully rendered and\n focus has moved in.\n- `esp-dialog-closing` (cancelable) before the close begins.\n- `esp-dialog-closed` after the close completes."
|
|
18621
18503
|
},
|
|
18622
18504
|
{
|
|
18623
18505
|
"kind": "method",
|
|
18624
|
-
"name": "
|
|
18625
|
-
"privacy": "
|
|
18626
|
-
"
|
|
18506
|
+
"name": "_handleKeyDown",
|
|
18507
|
+
"privacy": "private",
|
|
18508
|
+
"return": {
|
|
18509
|
+
"type": {
|
|
18510
|
+
"text": "void"
|
|
18511
|
+
}
|
|
18512
|
+
},
|
|
18513
|
+
"parameters": [
|
|
18514
|
+
{
|
|
18515
|
+
"name": "ev",
|
|
18516
|
+
"type": {
|
|
18517
|
+
"text": "KeyboardEvent"
|
|
18518
|
+
}
|
|
18519
|
+
}
|
|
18520
|
+
]
|
|
18627
18521
|
},
|
|
18628
18522
|
{
|
|
18629
|
-
"kind": "
|
|
18630
|
-
"name": "
|
|
18523
|
+
"kind": "method",
|
|
18524
|
+
"name": "_moveFocusIntoDialog",
|
|
18525
|
+
"privacy": "private",
|
|
18526
|
+
"return": {
|
|
18527
|
+
"type": {
|
|
18528
|
+
"text": "void"
|
|
18529
|
+
}
|
|
18530
|
+
},
|
|
18531
|
+
"description": "Move focus to the first autofocus element inside the slotted\ncontent, then the first focusable element. If no focusable\nelement is found, focus the vellum container itself (which has\n`tabindex=\"-1\"`)."
|
|
18532
|
+
}
|
|
18533
|
+
],
|
|
18534
|
+
"events": [
|
|
18535
|
+
{
|
|
18631
18536
|
"type": {
|
|
18632
|
-
"text": "
|
|
18537
|
+
"text": "CustomEvent<{}>"
|
|
18633
18538
|
},
|
|
18634
|
-
"
|
|
18635
|
-
"
|
|
18636
|
-
"inheritedFrom": {
|
|
18637
|
-
"name": "EspalierElementBase",
|
|
18638
|
-
"module": "dist/shared/esp-element-base.js"
|
|
18639
|
-
}
|
|
18539
|
+
"description": "Fired after the dialog has been promoted to its final DOM position, rendered, and focus has moved in. Safe to initialize third-party widgets (e.g. Stripe Elements) or measure layout at this point.",
|
|
18540
|
+
"name": "esp-dialog-opened"
|
|
18640
18541
|
},
|
|
18641
18542
|
{
|
|
18642
|
-
"
|
|
18643
|
-
|
|
18644
|
-
|
|
18645
|
-
"
|
|
18646
|
-
"
|
|
18647
|
-
"inheritedFrom": {
|
|
18648
|
-
"name": "EspalierElementBase",
|
|
18649
|
-
"module": "dist/shared/esp-element-base.js"
|
|
18650
|
-
}
|
|
18543
|
+
"type": {
|
|
18544
|
+
"text": "CustomEvent<{ reason: \"escape\" | \"close-dialog\" | \"api\" }>"
|
|
18545
|
+
},
|
|
18546
|
+
"description": "Fired before the dialog begins closing. Call `event.preventDefault()` to cancel the close (e.g. for unsaved-changes confirmation). The `reason` indicates what triggered the close: `\"escape\"` for the Escape key, `\"close-dialog\"` for a `esp-form-dialog-close-requested` event from slotted content (typically `<esp-form method=\"dialog\">`), or `\"api\"` for a direct `toggleOpen()` call.",
|
|
18547
|
+
"name": "esp-dialog-closing"
|
|
18651
18548
|
},
|
|
18652
18549
|
{
|
|
18653
|
-
"kind": "field",
|
|
18654
|
-
"name": "espRoot",
|
|
18655
18550
|
"type": {
|
|
18656
|
-
"text": "
|
|
18551
|
+
"text": "CustomEvent<{ reason: \"escape\" | \"close-dialog\" | \"api\" }>"
|
|
18657
18552
|
},
|
|
18658
|
-
"
|
|
18659
|
-
"
|
|
18553
|
+
"description": "Fired after the dialog has fully closed, inert state has been restored, and focus has returned to the previously focused element. Safe to tear down resources.",
|
|
18554
|
+
"name": "esp-dialog-closed"
|
|
18555
|
+
}
|
|
18556
|
+
],
|
|
18557
|
+
"attributes": [
|
|
18558
|
+
{
|
|
18559
|
+
"type": {
|
|
18560
|
+
"text": "\"1\"|\"2\"|\"3\"|\"4\""
|
|
18561
|
+
},
|
|
18562
|
+
"description": "Declares the painted surface depth; defaults to layer 3.",
|
|
18563
|
+
"name": "surface-layer"
|
|
18564
|
+
},
|
|
18565
|
+
{
|
|
18566
|
+
"name": "full-screen",
|
|
18567
|
+
"type": {
|
|
18568
|
+
"text": "boolean"
|
|
18569
|
+
},
|
|
18570
|
+
"default": "false",
|
|
18571
|
+
"description": "If true, the dialog will take up the full screen. On\nsmall screens, the dialog will always be full screen.\n\n```html\n<esp-dialog full-screen>\n <esp-box full-screen>\n <h2>Full screen dialog</h2>\n <p>There could be controls or a confirmation or anything here.</p>\n <esp-button intent=\"danger\" label=\"Close\"></esp-button>\n </esp-box>\n</esp-dialog>\n<esp-button label=\"Show Dialog\"></esp-button>\n<script>\n const theDialog = findByTagName(\"esp-dialog\")[0];\n const buttons = findByTagName(\"esp-button\");\n buttons[0].addEventListener(\"esp-clicked\", () => {\n theDialog.toggleOpen();\n });\n buttons[1].addEventListener(\"esp-clicked\", () => {\n theDialog.toggleOpen();\n });\n</script>\n```",
|
|
18572
|
+
"fieldName": "fullScreen"
|
|
18573
|
+
}
|
|
18574
|
+
],
|
|
18575
|
+
"superclass": {
|
|
18576
|
+
"name": "LitElement",
|
|
18577
|
+
"package": "lit"
|
|
18578
|
+
},
|
|
18579
|
+
"tagName": "esp-dialog",
|
|
18580
|
+
"customElement": true,
|
|
18581
|
+
"docPageTitle": {
|
|
18582
|
+
"name": "Dialog",
|
|
18583
|
+
"description": ""
|
|
18584
|
+
},
|
|
18585
|
+
"docUrl": {
|
|
18586
|
+
"name": "/components/dialog",
|
|
18587
|
+
"description": ""
|
|
18588
|
+
},
|
|
18589
|
+
"menuGroup": {
|
|
18590
|
+
"name": "Structure",
|
|
18591
|
+
"description": ""
|
|
18592
|
+
},
|
|
18593
|
+
"menuOrder": {
|
|
18594
|
+
"name": "6",
|
|
18595
|
+
"description": ""
|
|
18596
|
+
},
|
|
18597
|
+
"menuLabel": {
|
|
18598
|
+
"name": "Dialog",
|
|
18599
|
+
"description": ""
|
|
18600
|
+
},
|
|
18601
|
+
"menuIcon": {
|
|
18602
|
+
"name": "focus-centered",
|
|
18603
|
+
"description": ""
|
|
18604
|
+
}
|
|
18605
|
+
}
|
|
18606
|
+
],
|
|
18607
|
+
"exports": [
|
|
18608
|
+
{
|
|
18609
|
+
"kind": "js",
|
|
18610
|
+
"name": "EspalierDialog",
|
|
18611
|
+
"declaration": {
|
|
18612
|
+
"name": "EspalierDialog",
|
|
18613
|
+
"module": "dist/dialog/esp-dialog.js"
|
|
18614
|
+
}
|
|
18615
|
+
},
|
|
18616
|
+
{
|
|
18617
|
+
"kind": "custom-element-definition",
|
|
18618
|
+
"name": "esp-dialog",
|
|
18619
|
+
"declaration": {
|
|
18620
|
+
"name": "EspalierDialog",
|
|
18621
|
+
"module": "dist/dialog/esp-dialog.js"
|
|
18622
|
+
}
|
|
18623
|
+
}
|
|
18624
|
+
]
|
|
18625
|
+
},
|
|
18626
|
+
{
|
|
18627
|
+
"kind": "javascript-module",
|
|
18628
|
+
"path": "dist/flyout/esp-flyout.js",
|
|
18629
|
+
"declarations": [
|
|
18630
|
+
{
|
|
18631
|
+
"kind": "class",
|
|
18632
|
+
"description": "A panel for help and additional information. Uses spare page width when\navailable and switches to an overlay when the workspace cannot fit it.\n\nPlace one `esp-flyout` in an `esp-page`'s `flyout` slot. The panel\nlives on the canvas after any persistent preview, outside the content\nsurface. It negotiates between `--esp-page-flyout-min-width` and\n`--esp-page-flyout-max-width`; preview receives flexible room first. The page\ndecides where help goes, from widest viewport to narrowest:\n\n1. **Gutter** — the panel occupies the right canvas gutter. When the\n gutter already has room, it claims existing spare canvas and the\n main content does not move at all, on any alignment.\n2. **Shift** — when the gutter is not quite wide enough, the surface\n slides toward `start` by exactly the shortfall (no more) to free\n the difference.\n3. **Docked sidebar** — once the gutter is gone, the panel competes\n for width with the main well; content narrows but is never\n covered.\n4. **Overlay drawer** — when the complete sidebar + main + help\n minimums do not fit, or below `COMPACT_VIEWPORT_MEDIA_QUERY` (the\n same breakpoint the `esp-menu` drawer uses), the panel becomes a fixed\n drawer over a vellum backdrop. Set `mode=\"overlay\"` to get this\n presentation at every width.\n\nThe panel is styled as a tear-off piece: a dotted perforation on\nits leading edge, rounded trailing corners, and no shadow — all\noverridable through the `--esp-flyout-*` tokens below.\nAn anchored panel shown with preview keeps its caret at the main/preview\nedge and receives a non-interactive dotted bridge across preview from the\npage. A short, thick terminus on the preview/help seam completes that\nconnection; no consumer positioning is required.\n\nA11y follows the presentation. In the in-grid modes (1–3) the\nflyout is a non-modal `complementary` landmark named by its\n`heading`, opening it never steals focus, and boundary scrolling chains\nback to the main document. In the overlay-drawer mode (4) it is a true\nmodal: `role=\"dialog\"` + `aria-modal`, the\nbackground goes inert, scroll is locked, focus moves into the drawer\nand is trapped, and focus is restored on close. `Escape` closes it\nin every mode.\n\n```html\n<style>\nesp-page.flyout-demo {\n --esp-page-main-max-width: 420px;\n --esp-page-canvas-background: var(--esp-color-layer-1);\n &::part(wrapper) {\n min-height: 320px;\n height: 320px;\n }\n > div {\n padding: var(--esp-size-padding);\n }\n}\n</style>\n<esp-page class=\"flyout-demo\" align=\"center\">\n <esp-flyout slot=\"flyout\" heading=\"More info\" id=\"demo-flyout\" standalone>\n <p>Spare width claimed; the well shifted only enough to make room.</p>\n </esp-flyout>\n <div>\n <esp-button id=\"toggle-flyout\" label=\"Toggle flyout\" collapsed></esp-button>\n </div>\n</esp-page>\n<script>\n const flyout = findById(\"demo-flyout\");\n findById(\"toggle-flyout\").addEventListener(\"esp-clicked\", () => flyout.toggle());\n</script>\n```\n\nBy default the panel is a tear-off — a dotted perforation on its\nleading edge, rounded trailing corners, no shadow. Add\n`match-surface` to lift the trailing edge with the page's surface\nedge shadow, so the flyout reads as a raised peer of the content it\nflies out from while staying attached at the leading perforation:\n\n```html\n<style>\nesp-page.flyout-match-demo {\n --esp-page-main-max-width: 420px;\n &::part(wrapper) {\n min-height: 320px;\n height: 320px;\n }\n > div {\n padding: var(--esp-size-padding);\n }\n}\n</style>\n<esp-page class=\"flyout-match-demo\" align=\"center\">\n <esp-flyout slot=\"flyout\" heading=\"More info\" id=\"match-flyout\" match-surface standalone>\n <p>Attached at the perforation, trailing edge raised like the surface.</p>\n </esp-flyout>\n <div>\n <esp-button id=\"toggle-match\" label=\"Toggle flyout\" collapsed></esp-button>\n </div>\n</esp-page>\n<script>\n const matchFlyout = findById(\"match-flyout\");\n findById(\"toggle-match\").addEventListener(\"esp-clicked\", () => matchFlyout.toggle());\n</script>\n```\n\nWhen the page has no spare width to claim — a `kind=\"full\"` page,\nor a capped page on a viewport at the cap — the open flyout docks\nas a right sidebar and the content makes room:\n\n```html\n<style>\nesp-page.flyout-docked-demo {\n &::part(wrapper) {\n min-height: 320px;\n height: 320px;\n }\n > div {\n padding: var(--esp-size-padding);\n }\n}\n</style>\n<esp-page class=\"flyout-docked-demo\" kind=\"full\">\n <esp-flyout slot=\"flyout\" heading=\"Docked\" id=\"docked-flyout\" standalone>\n <p>No gutter to claim, so the content narrows instead.</p>\n </esp-flyout>\n <div>\n <p>A <code>kind=\"full\"</code> page has no canvas gutters at any\n width — the flyout squeezes the main well and never covers it.</p>\n <esp-button id=\"toggle-docked\" label=\"Toggle flyout\" collapsed></esp-button>\n </div>\n</esp-page>\n<script>\n const dockedFlyout = findById(\"docked-flyout\");\n findById(\"toggle-docked\").addEventListener(\"esp-clicked\", () => dockedFlyout.toggle());\n</script>\n```\n\nBelow `COMPACT_VIEWPORT_MEDIA_QUERY` every flyout becomes a fixed\noverlay drawer over a vellum — there is no room for a side-by-side\nsplit on a phone. `mode=\"overlay\"` forces that presentation at any\nwidth (try it here; `Escape` or the vellum closes it):\n\n```html\n<style>\nesp-page.flyout-overlay-demo {\n &::part(wrapper) {\n min-height: 160px;\n height: 160px;\n }\n > div {\n padding: var(--esp-size-padding);\n }\n}\n</style>\n<esp-page class=\"flyout-overlay-demo\">\n <esp-flyout slot=\"flyout\" heading=\"Overlay drawer\" mode=\"overlay\" id=\"overlay-flyout\" standalone>\n <p>A fixed drawer over a vellum — what every flyout becomes on\n small viewports.</p>\n </esp-flyout>\n <div>\n <esp-button id=\"open-overlay\" label=\"Open overlay flyout\" collapsed></esp-button>\n </div>\n</esp-page>\n<script>\n const overlayFlyout = findById(\"overlay-flyout\");\n findById(\"open-overlay\").addEventListener(\"esp-clicked\", () => overlayFlyout.toggle());\n</script>\n```\n\nComponents that cannot know where the flyout lives can request it\nover the bus with `showFlyout()` — the same pattern `showToast()`\nuses. A second request swaps the content in place; it never\nstacks. Content passed as a string renders as plain text; pass a\n`Node` for rich content. Pass the triggering element as `anchor` to\nalign the in-grid panel with that control and keep both in the same\nscroll flow. If the panel would cross the visible viewport's bottom,\nit shifts up only far enough to fit and returns to its natural trigger\nalignment as the page scrolls. Content taller than the viewport\nscrolls inside the panel. Pass `fullHeight: true` (or set the\n`full-height` attribute) when a reading surface should fill the visible\nblock-size even when its content is short. Overlay drawers stay\nviewport-fixed.\n\nBus requests anchored inside nested pages are presented by the\noutermost containing page's flyout by default. This keeps previews,\nembedded tools, and nested layouts from trapping application-level\nhelp or detail panels. Set `scope=\"nearest\"` on a nested flyout when\nthat page should explicitly own requests originating inside it.\nThe demos above are each driven by their own toggle button, so they\nare marked `standalone` to opt out of the bus entirely.\n\n```html\n<style>\nesp-page.flyout-bus-demo {\n --esp-page-main-max-width: 420px;\n &::part(wrapper) {\n min-height: 320px;\n }\n > div {\n padding: var(--esp-size-padding);\n }\n .flyout-demo-copy {\n max-inline-size: 42ch;\n }\n}\n</style>\n<esp-page class=\"flyout-bus-demo\">\n <esp-flyout slot=\"flyout\"></esp-flyout>\n <div>\n <esp-button id=\"show-apples\" label=\"Apples\" collapsed></esp-button>\n <div class=\"flyout-demo-copy\">\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod\n tempor incididunt ut labore et dolore magna aliqua.</p>\n <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi\n ut aliquip ex ea commodo consequat.</p>\n <p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum\n dolore eu fugiat nulla pariatur.</p>\n </div>\n <esp-button id=\"show-pears\" label=\"Pears\" collapsed></esp-button>\n <template id=\"pears-description\">\n <p>Ripen pears at room temperature until the neck yields gently to\n pressure, then refrigerate them to slow further ripening.</p>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer\n nec odio. Praesent libero. Sed cursus ante dapibus diam.</p>\n <p>Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis\n sagittis ipsum. Praesent mauris. Fusce nec tellus sed augue semper\n porta.</p>\n <p>Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent\n taciti sociosqu ad litora torquent per conubia nostra.</p>\n <p>Curabitur sodales ligula in libero. Sed dignissim lacinia nunc.\n Curabitur tortor. Pellentesque nibh. Aenean quam.</p>\n <p>In scelerisque sem at dolor. Maecenas mattis. Sed convallis\n tristique sem. Proin ut ligula vel nunc egestas porttitor.</p>\n <p>Morbi lectus risus, iaculis vel, suscipit quis, luctus non,\n massa. Fusce ac turpis quis ligula lacinia aliquet.</p>\n <p>Mauris ipsum. Nulla metus metus, ullamcorper vel, tincidunt sed,\n euismod in, nibh. Quisque volutpat condimentum velit.</p>\n </template>\n <div class=\"flyout-demo-copy\">\n <p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia\n deserunt mollit anim id est laborum.</p>\n <p>Curabitur pretium tincidunt lacus. Nulla gravida orci a odio, nullam\n varius, turpis et commodo pharetra.</p>\n </div>\n </div>\n</esp-page>\n<script>\n const applesButton = findById(\"show-apples\");\n applesButton.addEventListener(\"esp-clicked\", () => {\n showFlyout({ heading: \"Apples\", content: \"Crisp. Store cold.\", anchor: applesButton });\n });\n const pearsButton = findById(\"show-pears\");\n const pearsDescription = findById(\"pears-description\");\n pearsButton.addEventListener(\"esp-clicked\", () => {\n showFlyout({\n heading: \"Pears\",\n content: pearsDescription.content.cloneNode(true),\n anchor: pearsButton,\n });\n });\n</script>\n```",
|
|
18633
|
+
"name": "EspalierFlyout",
|
|
18634
|
+
"cssProperties": [
|
|
18635
|
+
{
|
|
18636
|
+
"description": "The background color of the panel. Defaults to `var(--esp-color-background)`.",
|
|
18637
|
+
"name": "--esp-flyout-background"
|
|
18638
|
+
},
|
|
18639
|
+
{
|
|
18640
|
+
"description": "The border on the panel's leading edge. Defaults to the tear-off perforation, `1px dotted var(--esp-color-border)`.",
|
|
18641
|
+
"name": "--esp-flyout-border"
|
|
18642
|
+
},
|
|
18643
|
+
{
|
|
18644
|
+
"description": "The radius of the panel's trailing corners. Defaults to `var(--esp-size-border-radius)`; the overlay drawer squares them.",
|
|
18645
|
+
"name": "--esp-flyout-radius"
|
|
18646
|
+
},
|
|
18647
|
+
{
|
|
18648
|
+
"description": "The panel's shadow. Defaults to `none` in the gutter/docked modes (the perforation does the separating) and to a drawer shadow in overlay mode.",
|
|
18649
|
+
"name": "--esp-flyout-shadow"
|
|
18650
|
+
},
|
|
18651
|
+
{
|
|
18652
|
+
"description": "Padding inside the panel's header and content regions. Defaults to `var(--esp-size-padding)`.",
|
|
18653
|
+
"name": "--esp-flyout-padding"
|
|
18654
|
+
},
|
|
18655
|
+
{
|
|
18656
|
+
"description": "Stack order of the overlay-drawer mode. Defaults to `3000` — above page chrome, below the dialog drop zone (4000). Set it on the `esp-page` (or an ancestor), not on the flyout itself: the page reads the same token to hoist the drawer's aside above its header.",
|
|
18657
|
+
"name": "--esp-flyout-z-index"
|
|
18658
|
+
},
|
|
18659
|
+
{
|
|
18660
|
+
"description": "Background color of the shared field shell. Defaults to one layer above the nearest declared surface, capped at `var(--esp-color-layer-4)`, or `var(--esp-color-layer-2)` without a declared surface. An explicit override wins.",
|
|
18661
|
+
"name": "--esp-field-background",
|
|
18660
18662
|
"inheritedFrom": {
|
|
18661
18663
|
"name": "EspalierElementBase",
|
|
18662
18664
|
"module": "dist/shared/esp-element-base.js"
|
|
18663
18665
|
}
|
|
18664
18666
|
},
|
|
18665
18667
|
{
|
|
18666
|
-
"
|
|
18667
|
-
"name": "
|
|
18668
|
-
"type": {
|
|
18669
|
-
"text": "string"
|
|
18670
|
-
},
|
|
18671
|
-
"privacy": "private",
|
|
18672
|
-
"default": "\"\"",
|
|
18668
|
+
"description": "Border color of the shared field shell. Defaults to `var(--esp-color-border)`.",
|
|
18669
|
+
"name": "--esp-field-border-color",
|
|
18673
18670
|
"inheritedFrom": {
|
|
18674
18671
|
"name": "EspalierElementBase",
|
|
18675
18672
|
"module": "dist/shared/esp-element-base.js"
|
|
18676
18673
|
}
|
|
18677
18674
|
},
|
|
18678
18675
|
{
|
|
18679
|
-
"
|
|
18680
|
-
"name": "
|
|
18681
|
-
"privacy": "private",
|
|
18682
|
-
"readonly": true,
|
|
18683
|
-
"default": "new ScopedStyleDeclarations(this)",
|
|
18676
|
+
"description": "Border width of the shared field shell. Defaults to `1px`.",
|
|
18677
|
+
"name": "--esp-field-border-width",
|
|
18684
18678
|
"inheritedFrom": {
|
|
18685
18679
|
"name": "EspalierElementBase",
|
|
18686
18680
|
"module": "dist/shared/esp-element-base.js"
|
|
18687
18681
|
}
|
|
18688
18682
|
},
|
|
18689
18683
|
{
|
|
18690
|
-
"
|
|
18691
|
-
"name": "
|
|
18692
|
-
"privacy": "private",
|
|
18693
|
-
"readonly": true,
|
|
18694
|
-
"default": "new Set<string>()",
|
|
18684
|
+
"description": "Text color used inside the shared field shell. Defaults to `var(--esp-color-text)`.",
|
|
18685
|
+
"name": "--esp-field-text-color",
|
|
18695
18686
|
"inheritedFrom": {
|
|
18696
18687
|
"name": "EspalierElementBase",
|
|
18697
18688
|
"module": "dist/shared/esp-element-base.js"
|
|
18698
18689
|
}
|
|
18699
18690
|
},
|
|
18700
18691
|
{
|
|
18701
|
-
"
|
|
18702
|
-
"name": "
|
|
18703
|
-
"type": {
|
|
18704
|
-
"text": "EspalierIntentVariant"
|
|
18705
|
-
},
|
|
18706
|
-
"privacy": "protected",
|
|
18707
|
-
"default": "\"neutral\"",
|
|
18692
|
+
"description": "Hover background color of the shared field shell. Derived from `--esp-field-background`.",
|
|
18693
|
+
"name": "--esp-field-hover-bg",
|
|
18708
18694
|
"inheritedFrom": {
|
|
18709
18695
|
"name": "EspalierElementBase",
|
|
18710
18696
|
"module": "dist/shared/esp-element-base.js"
|
|
18711
18697
|
}
|
|
18712
18698
|
},
|
|
18713
18699
|
{
|
|
18714
|
-
"
|
|
18715
|
-
"name": "
|
|
18716
|
-
"type": {
|
|
18717
|
-
"text": "boolean"
|
|
18718
|
-
},
|
|
18719
|
-
"privacy": "protected",
|
|
18720
|
-
"default": "true",
|
|
18721
|
-
"description": "Whether a non-neutral intent emits its inline tokens\n(`--esp-color-primary` and the filled-action pair). Interactive\ncontrols need them; chrome whose intent treatment is class-based\n(badges, callouts, status pills — see `intentSurfaceTokens`) opts\nout so a decorative intent never rewrites inherited tokens for\nslotted content.",
|
|
18700
|
+
"description": "Focus background color of the shared field shell. Derived from `--esp-field-background`.",
|
|
18701
|
+
"name": "--esp-field-focus-bg",
|
|
18722
18702
|
"inheritedFrom": {
|
|
18723
18703
|
"name": "EspalierElementBase",
|
|
18724
18704
|
"module": "dist/shared/esp-element-base.js"
|
|
18725
18705
|
}
|
|
18726
18706
|
},
|
|
18727
18707
|
{
|
|
18728
|
-
"
|
|
18729
|
-
"name": "
|
|
18730
|
-
"privacy": "private",
|
|
18731
|
-
"readonly": true,
|
|
18732
|
-
"default": "new Set<string>()",
|
|
18708
|
+
"description": "Shadow color used for shared field focus treatment. Defaults to `var(--esp-color-shadow)`.",
|
|
18709
|
+
"name": "--esp-field-focus-shadow",
|
|
18733
18710
|
"inheritedFrom": {
|
|
18734
18711
|
"name": "EspalierElementBase",
|
|
18735
18712
|
"module": "dist/shared/esp-element-base.js"
|
|
18736
18713
|
}
|
|
18714
|
+
}
|
|
18715
|
+
],
|
|
18716
|
+
"cssParts": [
|
|
18717
|
+
{
|
|
18718
|
+
"description": "The panel surface.",
|
|
18719
|
+
"name": "panel"
|
|
18720
|
+
},
|
|
18721
|
+
{
|
|
18722
|
+
"description": "The heading/close-button row.",
|
|
18723
|
+
"name": "header"
|
|
18724
|
+
},
|
|
18725
|
+
{
|
|
18726
|
+
"description": "The scrollable content region wrapping the slot.",
|
|
18727
|
+
"name": "content"
|
|
18728
|
+
}
|
|
18729
|
+
],
|
|
18730
|
+
"slots": [
|
|
18731
|
+
{
|
|
18732
|
+
"description": "The flyout's content.",
|
|
18733
|
+
"name": ""
|
|
18734
|
+
}
|
|
18735
|
+
],
|
|
18736
|
+
"members": [
|
|
18737
|
+
{
|
|
18738
|
+
"kind": "field",
|
|
18739
|
+
"name": "open",
|
|
18740
|
+
"type": {
|
|
18741
|
+
"text": "boolean"
|
|
18742
|
+
},
|
|
18743
|
+
"privacy": "public",
|
|
18744
|
+
"default": "false",
|
|
18745
|
+
"description": "Whether the flyout is open. Reflected so the initial state can\nbe declared in markup; `esp-page` mirrors it (via the lifecycle\nevents and the slot) onto its own `flyout-open` attribute to\ndrive the grid.",
|
|
18746
|
+
"attribute": "open",
|
|
18747
|
+
"reflects": true
|
|
18737
18748
|
},
|
|
18738
18749
|
{
|
|
18739
18750
|
"kind": "field",
|
|
18740
|
-
"name": "
|
|
18751
|
+
"name": "heading",
|
|
18741
18752
|
"type": {
|
|
18742
18753
|
"text": "string"
|
|
18743
18754
|
},
|
|
18744
18755
|
"privacy": "public",
|
|
18745
|
-
"
|
|
18746
|
-
|
|
18747
|
-
|
|
18748
|
-
}
|
|
18756
|
+
"default": "\"\"",
|
|
18757
|
+
"description": "Heading text for the panel's header row. Also becomes the\nflyout's accessible name unless the author set an `aria-label`.\nAn open overlay without either uses the fallback name \"Flyout\" so\nits dialog is never exposed without an accessible name.",
|
|
18758
|
+
"attribute": "heading"
|
|
18749
18759
|
},
|
|
18750
18760
|
{
|
|
18751
18761
|
"kind": "field",
|
|
18752
|
-
"name": "
|
|
18762
|
+
"name": "mode",
|
|
18763
|
+
"type": {
|
|
18764
|
+
"text": "\"auto\" | \"overlay\""
|
|
18765
|
+
},
|
|
18753
18766
|
"privacy": "public",
|
|
18754
|
-
"
|
|
18755
|
-
|
|
18756
|
-
|
|
18757
|
-
|
|
18767
|
+
"default": "\"auto\"",
|
|
18768
|
+
"description": "Placement behavior.\n\n- `\"auto\"` (default) — the page's placement ladder: gutter,\n docked sidebar, then overlay drawer when the complete in-grid\n minimums do not fit or below `COMPACT_VIEWPORT_MEDIA_QUERY`.\n- `\"overlay\"` — always the fixed overlay drawer, at any width.\n The page never reserves a grid track for an overlay-mode\n flyout.",
|
|
18769
|
+
"attribute": "mode",
|
|
18770
|
+
"reflects": true
|
|
18758
18771
|
},
|
|
18759
18772
|
{
|
|
18760
|
-
"kind": "
|
|
18761
|
-
"name": "
|
|
18762
|
-
"
|
|
18763
|
-
|
|
18764
|
-
"type": {
|
|
18765
|
-
"text": "void"
|
|
18766
|
-
}
|
|
18773
|
+
"kind": "field",
|
|
18774
|
+
"name": "anchor",
|
|
18775
|
+
"type": {
|
|
18776
|
+
"text": "HTMLElement | undefined"
|
|
18767
18777
|
},
|
|
18768
|
-
"
|
|
18769
|
-
|
|
18770
|
-
"name": "resolveTarget",
|
|
18771
|
-
"type": {
|
|
18772
|
-
"text": "() => HTMLElement | null | undefined"
|
|
18773
|
-
}
|
|
18774
|
-
},
|
|
18775
|
-
{
|
|
18776
|
-
"name": "options",
|
|
18777
|
-
"optional": true,
|
|
18778
|
-
"type": {
|
|
18779
|
-
"text": "FocusOptions"
|
|
18780
|
-
}
|
|
18781
|
-
}
|
|
18782
|
-
],
|
|
18783
|
-
"inheritedFrom": {
|
|
18784
|
-
"name": "EspalierElementBase",
|
|
18785
|
-
"module": "dist/shared/esp-element-base.js"
|
|
18786
|
-
}
|
|
18778
|
+
"privacy": "public",
|
|
18779
|
+
"description": "Triggering element whose block-start edge the in-grid panel should\nalign with. Anchored panels size to their content when it fits, shift\nonly enough to remain visible when it does not, and keep an edge\nmarker aligned with the trigger. Overlay drawers ignore this geometry\nand remain fixed to the viewport."
|
|
18787
18780
|
},
|
|
18788
18781
|
{
|
|
18789
|
-
"kind": "
|
|
18790
|
-
"name": "
|
|
18791
|
-
"
|
|
18792
|
-
|
|
18793
|
-
"type": {
|
|
18794
|
-
"text": "void"
|
|
18795
|
-
}
|
|
18782
|
+
"kind": "field",
|
|
18783
|
+
"name": "fullHeight",
|
|
18784
|
+
"type": {
|
|
18785
|
+
"text": "boolean"
|
|
18796
18786
|
},
|
|
18797
|
-
"
|
|
18798
|
-
|
|
18799
|
-
|
|
18800
|
-
|
|
18801
|
-
|
|
18802
|
-
}
|
|
18803
|
-
},
|
|
18804
|
-
{
|
|
18805
|
-
"name": "options",
|
|
18806
|
-
"optional": true,
|
|
18807
|
-
"type": {
|
|
18808
|
-
"text": "FocusOptions"
|
|
18809
|
-
}
|
|
18810
|
-
}
|
|
18811
|
-
],
|
|
18812
|
-
"inheritedFrom": {
|
|
18813
|
-
"name": "EspalierElementBase",
|
|
18814
|
-
"module": "dist/shared/esp-element-base.js"
|
|
18815
|
-
}
|
|
18787
|
+
"privacy": "public",
|
|
18788
|
+
"default": "false",
|
|
18789
|
+
"description": "Fill the visible block-size in gutter and docked modes. The content\nregion scrolls independently. Overlay drawers already fill the viewport.",
|
|
18790
|
+
"attribute": "full-height",
|
|
18791
|
+
"reflects": true
|
|
18816
18792
|
},
|
|
18817
18793
|
{
|
|
18818
|
-
"kind": "
|
|
18819
|
-
"name": "
|
|
18820
|
-
"
|
|
18821
|
-
|
|
18822
|
-
"type": {
|
|
18823
|
-
"text": "void"
|
|
18824
|
-
}
|
|
18794
|
+
"kind": "field",
|
|
18795
|
+
"name": "matchSurface",
|
|
18796
|
+
"type": {
|
|
18797
|
+
"text": "boolean"
|
|
18825
18798
|
},
|
|
18826
|
-
"
|
|
18827
|
-
|
|
18828
|
-
|
|
18829
|
-
|
|
18830
|
-
|
|
18831
|
-
}
|
|
18832
|
-
}
|
|
18833
|
-
],
|
|
18834
|
-
"inheritedFrom": {
|
|
18835
|
-
"name": "EspalierElementBase",
|
|
18836
|
-
"module": "dist/shared/esp-element-base.js"
|
|
18837
|
-
}
|
|
18799
|
+
"privacy": "public",
|
|
18800
|
+
"default": "false",
|
|
18801
|
+
"description": "When set on a flyout slotted into an `esp-page`, the panel lifts\nits **trailing** edge with the page's surface edge shadow, so it\nreads as a raised peer of the content surface it flies out from\nrather than the shadowless tear-off. The **leading** edge keeps\nits dotted perforation and casts no shadow, so the panel stays\nattached at the tear line instead of floating over the content.\nThe trailing-corner radius is still `--esp-flyout-radius`. No\neffect on a standalone flyout — there is no page surface to match.",
|
|
18802
|
+
"attribute": "match-surface",
|
|
18803
|
+
"reflects": true
|
|
18838
18804
|
},
|
|
18839
18805
|
{
|
|
18840
18806
|
"kind": "field",
|
|
18841
|
-
"name": "
|
|
18807
|
+
"name": "standalone",
|
|
18842
18808
|
"type": {
|
|
18843
|
-
"text": "
|
|
18809
|
+
"text": "boolean"
|
|
18844
18810
|
},
|
|
18845
18811
|
"privacy": "public",
|
|
18846
|
-
"default": "
|
|
18847
|
-
"description": "
|
|
18848
|
-
"attribute": "
|
|
18849
|
-
"reflects": true
|
|
18850
|
-
"inheritedFrom": {
|
|
18851
|
-
"name": "EspalierElementBase",
|
|
18852
|
-
"module": "dist/shared/esp-element-base.js"
|
|
18853
|
-
}
|
|
18812
|
+
"default": "false",
|
|
18813
|
+
"description": "Whether this flyout ignores the shared `showFlyout()` /\n`closeFlyout()` bus and is driven only through its own\n`show()` / `close()` / `toggle()` API.\n\nBy default a flyout services the bus, so a single flyout in a\npage \"just works\" as the target of `showFlyout()` — the same\nzero-config model as `<esp-toaster>` and `showToast()`. Anchored\nrequests resolve to one page scope according to `scope`; set\n`standalone` on flyouts that should never answer the bus.",
|
|
18814
|
+
"attribute": "standalone",
|
|
18815
|
+
"reflects": true
|
|
18854
18816
|
},
|
|
18855
18817
|
{
|
|
18856
18818
|
"kind": "field",
|
|
18857
|
-
"name": "
|
|
18819
|
+
"name": "scope",
|
|
18858
18820
|
"type": {
|
|
18859
|
-
"text": "
|
|
18821
|
+
"text": "\"outermost\" | \"nearest\""
|
|
18860
18822
|
},
|
|
18861
18823
|
"privacy": "public",
|
|
18862
|
-
"
|
|
18863
|
-
"
|
|
18864
|
-
"
|
|
18865
|
-
"
|
|
18866
|
-
"name": "EspalierElementBase",
|
|
18867
|
-
"module": "dist/shared/esp-element-base.js"
|
|
18868
|
-
}
|
|
18824
|
+
"default": "\"outermost\"",
|
|
18825
|
+
"description": "Which containing page owns anchored bus requests.\n\n- `\"outermost\"` (default) routes to the flyout in the outermost\n `esp-page` containing the request trigger.\n- `\"nearest\"` explicitly gives this flyout precedence for requests\n originating in its own page or nested descendants.\n\nA `scope=\"nearest\"` flyout must be a light-DOM descendant of the\n`esp-page` whose requests it owns so that page can discover it.\n\nRequests without an `anchor` or `returnFocusTo` have no local context,\nso only outermost page flyouts service them. Use the instance API for\na directly controlled nested flyout.",
|
|
18826
|
+
"attribute": "scope",
|
|
18827
|
+
"reflects": true
|
|
18869
18828
|
},
|
|
18870
18829
|
{
|
|
18871
18830
|
"kind": "field",
|
|
18872
|
-
"name": "
|
|
18831
|
+
"name": "returnFocusTo",
|
|
18873
18832
|
"type": {
|
|
18874
|
-
"text": "
|
|
18833
|
+
"text": "HTMLElement | undefined"
|
|
18875
18834
|
},
|
|
18876
18835
|
"privacy": "public",
|
|
18877
|
-
"description": "
|
|
18878
|
-
"attribute": "context",
|
|
18879
|
-
"reflects": true,
|
|
18880
|
-
"inheritedFrom": {
|
|
18881
|
-
"name": "EspalierElementBase",
|
|
18882
|
-
"module": "dist/shared/esp-element-base.js"
|
|
18883
|
-
}
|
|
18836
|
+
"description": "Element to return focus to when the flyout closes. In the in-grid\nmodes it is focused only if focus is inside the flyout at close;\nin the overlay-drawer mode it overrides the modal treatment's\nautomatic restore-to-opener. Usually supplied through\n`showFlyout({ returnFocusTo })`."
|
|
18884
18837
|
},
|
|
18885
18838
|
{
|
|
18886
|
-
"kind": "
|
|
18887
|
-
"name": "
|
|
18839
|
+
"kind": "field",
|
|
18840
|
+
"name": "overlayReturnFocusTo",
|
|
18841
|
+
"type": {
|
|
18842
|
+
"text": "HTMLElement | undefined"
|
|
18843
|
+
},
|
|
18888
18844
|
"privacy": "private",
|
|
18889
|
-
"
|
|
18890
|
-
|
|
18845
|
+
"description": "`returnFocusTo` captured at close time for the overlay teardown,\nwhich runs after `close()` (in `updated()`): the modal treatment\nrestores focus to the pre-open element, and this explicit target\nmust win over that."
|
|
18846
|
+
},
|
|
18847
|
+
{
|
|
18848
|
+
"kind": "field",
|
|
18849
|
+
"name": "lastGeneratedAriaLabel",
|
|
18850
|
+
"type": {
|
|
18851
|
+
"text": "string | null"
|
|
18852
|
+
},
|
|
18853
|
+
"privacy": "private",
|
|
18854
|
+
"default": "null",
|
|
18855
|
+
"description": "The last `aria-label` this component generated from `heading` or\nthe overlay fallback, or `null` if none. The flyout only rewrites\n`aria-label` when the current value is absent or still equals what\nit last generated, so a label the author sets at any time — in\nmarkup or later — wins."
|
|
18856
|
+
},
|
|
18857
|
+
{
|
|
18858
|
+
"kind": "field",
|
|
18859
|
+
"name": "boundKeydown",
|
|
18860
|
+
"privacy": "private"
|
|
18861
|
+
},
|
|
18862
|
+
{
|
|
18863
|
+
"kind": "field",
|
|
18864
|
+
"name": "boundShowRequest",
|
|
18865
|
+
"privacy": "private"
|
|
18866
|
+
},
|
|
18867
|
+
{
|
|
18868
|
+
"kind": "field",
|
|
18869
|
+
"name": "boundCloseRequest",
|
|
18870
|
+
"privacy": "private"
|
|
18871
|
+
},
|
|
18872
|
+
{
|
|
18873
|
+
"kind": "field",
|
|
18874
|
+
"name": "boundOverlayMediaChange",
|
|
18875
|
+
"privacy": "private"
|
|
18876
|
+
},
|
|
18877
|
+
{
|
|
18878
|
+
"kind": "field",
|
|
18879
|
+
"name": "boundAnchorViewportChange",
|
|
18880
|
+
"privacy": "private"
|
|
18881
|
+
},
|
|
18882
|
+
{
|
|
18883
|
+
"kind": "field",
|
|
18884
|
+
"name": "boundFullHeightRequest",
|
|
18885
|
+
"privacy": "private"
|
|
18886
|
+
},
|
|
18887
|
+
{
|
|
18888
|
+
"kind": "field",
|
|
18889
|
+
"name": "anchorGeometryFrame",
|
|
18890
|
+
"privacy": "private",
|
|
18891
|
+
"default": "new RafThrottle(() => this.syncAnchorGeometry())"
|
|
18892
|
+
},
|
|
18893
|
+
{
|
|
18894
|
+
"kind": "field",
|
|
18895
|
+
"name": "trackingAnchorPosition",
|
|
18896
|
+
"type": {
|
|
18897
|
+
"text": "boolean"
|
|
18898
|
+
},
|
|
18899
|
+
"privacy": "private",
|
|
18900
|
+
"default": "false"
|
|
18901
|
+
},
|
|
18902
|
+
{
|
|
18903
|
+
"kind": "field",
|
|
18904
|
+
"name": "anchorResizeObserver",
|
|
18905
|
+
"type": {
|
|
18906
|
+
"text": "ResizeObserver | undefined"
|
|
18907
|
+
},
|
|
18908
|
+
"privacy": "private"
|
|
18909
|
+
},
|
|
18910
|
+
{
|
|
18911
|
+
"kind": "field",
|
|
18912
|
+
"name": "observedAnchorPanel",
|
|
18913
|
+
"type": {
|
|
18914
|
+
"text": "HTMLElement | undefined"
|
|
18915
|
+
},
|
|
18916
|
+
"privacy": "private"
|
|
18917
|
+
},
|
|
18918
|
+
{
|
|
18919
|
+
"kind": "field",
|
|
18920
|
+
"name": "busSubscribed",
|
|
18921
|
+
"type": {
|
|
18922
|
+
"text": "boolean"
|
|
18923
|
+
},
|
|
18924
|
+
"privacy": "private",
|
|
18925
|
+
"default": "false",
|
|
18926
|
+
"description": "Whether the bus handlers are currently registered. EspBus does\nnot dedupe subscriptions, so this guards against double-adds."
|
|
18927
|
+
},
|
|
18928
|
+
{
|
|
18929
|
+
"kind": "field",
|
|
18930
|
+
"name": "panelRef",
|
|
18931
|
+
"privacy": "private"
|
|
18932
|
+
},
|
|
18933
|
+
{
|
|
18934
|
+
"kind": "field",
|
|
18935
|
+
"name": "overlay",
|
|
18936
|
+
"privacy": "private",
|
|
18937
|
+
"default": "new OverlayController({ host: this, getFocusTrapContainer: () => this.panelRef.value ?? null, getFocusFallback: () => this.panelRef.value ?? null, promote: false, })",
|
|
18938
|
+
"description": "Modal treatment for the overlay-drawer presentation only. It does\nnot promote out of the page slot, so the flyout keeps its grid\nplacement and `esp-flyout-state-changed` sync; inert anchors on the\nflyout's own position, making its page siblings inert."
|
|
18939
|
+
},
|
|
18940
|
+
{
|
|
18941
|
+
"kind": "field",
|
|
18942
|
+
"name": "overlayMediaQuery",
|
|
18943
|
+
"type": {
|
|
18944
|
+
"text": "MediaQueryList | undefined"
|
|
18945
|
+
},
|
|
18946
|
+
"privacy": "private",
|
|
18947
|
+
"description": "Media query matching the overlay-drawer viewport range."
|
|
18948
|
+
},
|
|
18949
|
+
{
|
|
18950
|
+
"kind": "field",
|
|
18951
|
+
"name": "overlayActive",
|
|
18952
|
+
"type": {
|
|
18953
|
+
"text": "boolean"
|
|
18954
|
+
},
|
|
18955
|
+
"privacy": "private",
|
|
18956
|
+
"default": "false",
|
|
18957
|
+
"description": "Whether the modal (overlay) treatment is currently applied."
|
|
18958
|
+
},
|
|
18959
|
+
{
|
|
18960
|
+
"kind": "field",
|
|
18961
|
+
"name": "baseRole",
|
|
18962
|
+
"type": {
|
|
18963
|
+
"text": "string"
|
|
18964
|
+
},
|
|
18965
|
+
"privacy": "private",
|
|
18966
|
+
"default": "\"complementary\"",
|
|
18967
|
+
"description": "The landmark role to restore when leaving the overlay treatment\n(the author's role, or the default `complementary`)."
|
|
18968
|
+
},
|
|
18969
|
+
{
|
|
18970
|
+
"kind": "field",
|
|
18971
|
+
"name": "effectiveOverlay",
|
|
18972
|
+
"type": {
|
|
18973
|
+
"text": "boolean"
|
|
18974
|
+
},
|
|
18975
|
+
"privacy": "private",
|
|
18976
|
+
"description": "Whether the flyout is presenting as an overlay drawer — either\nforced via `mode=\"overlay\"` or below the mobile threshold. The\nmodal a11y treatment applies exactly in this state; the in-grid\nmodes stay a non-modal `complementary` landmark.",
|
|
18977
|
+
"readonly": true
|
|
18978
|
+
},
|
|
18979
|
+
{
|
|
18980
|
+
"kind": "method",
|
|
18981
|
+
"name": "syncBusSubscription",
|
|
18982
|
+
"privacy": "private",
|
|
18983
|
+
"return": {
|
|
18984
|
+
"type": {
|
|
18891
18985
|
"text": "void"
|
|
18892
18986
|
}
|
|
18893
18987
|
},
|
|
18894
|
-
"description": "
|
|
18895
|
-
"inheritedFrom": {
|
|
18896
|
-
"name": "EspalierElementBase",
|
|
18897
|
-
"module": "dist/shared/esp-element-base.js"
|
|
18898
|
-
}
|
|
18988
|
+
"description": "Subscribe to the shared bus unless `standalone`; idempotent so\nit is safe to call from both connect and a `standalone` change."
|
|
18899
18989
|
},
|
|
18900
18990
|
{
|
|
18901
18991
|
"kind": "method",
|
|
18902
|
-
"name": "
|
|
18992
|
+
"name": "unsubscribeBus",
|
|
18903
18993
|
"privacy": "private",
|
|
18904
18994
|
"return": {
|
|
18905
18995
|
"type": {
|
|
18906
|
-
"text": "
|
|
18996
|
+
"text": "void"
|
|
18997
|
+
}
|
|
18998
|
+
}
|
|
18999
|
+
},
|
|
19000
|
+
{
|
|
19001
|
+
"kind": "method",
|
|
19002
|
+
"name": "show",
|
|
19003
|
+
"privacy": "public",
|
|
19004
|
+
"return": {
|
|
19005
|
+
"type": {
|
|
19006
|
+
"text": "void"
|
|
19007
|
+
}
|
|
19008
|
+
},
|
|
19009
|
+
"description": "Open the flyout with its current content. In the in-grid modes it\ndoes not move focus; in the overlay-drawer mode it moves focus\ninto the drawer as a modal."
|
|
19010
|
+
},
|
|
19011
|
+
{
|
|
19012
|
+
"kind": "method",
|
|
19013
|
+
"name": "close",
|
|
19014
|
+
"privacy": "public",
|
|
19015
|
+
"return": {
|
|
19016
|
+
"type": {
|
|
19017
|
+
"text": "void"
|
|
18907
19018
|
}
|
|
18908
19019
|
},
|
|
18909
19020
|
"parameters": [
|
|
18910
19021
|
{
|
|
18911
|
-
"name": "
|
|
19022
|
+
"name": "reason",
|
|
19023
|
+
"default": "\"programmatic\"",
|
|
18912
19024
|
"type": {
|
|
18913
|
-
"text": "
|
|
19025
|
+
"text": "FlyoutCloseReason"
|
|
18914
19026
|
}
|
|
18915
19027
|
}
|
|
18916
19028
|
],
|
|
18917
|
-
"description": "
|
|
18918
|
-
"inheritedFrom": {
|
|
18919
|
-
"name": "EspalierElementBase",
|
|
18920
|
-
"module": "dist/shared/esp-element-base.js"
|
|
18921
|
-
}
|
|
19029
|
+
"description": "Close the flyout. In the in-grid modes, if focus is inside the\nflyout it is returned to `returnFocusTo` when one was provided; in\nthe overlay-drawer mode the modal treatment restores focus to\nwherever it was when the drawer opened, unless `returnFocusTo`\nnames an explicit target — the explicit target wins."
|
|
18922
19030
|
},
|
|
18923
19031
|
{
|
|
18924
19032
|
"kind": "method",
|
|
18925
|
-
"name": "
|
|
18926
|
-
"privacy": "
|
|
19033
|
+
"name": "toggle",
|
|
19034
|
+
"privacy": "public",
|
|
19035
|
+
"return": {
|
|
19036
|
+
"type": {
|
|
19037
|
+
"text": "void"
|
|
19038
|
+
}
|
|
19039
|
+
},
|
|
19040
|
+
"description": "Toggle the flyout between open and closed."
|
|
19041
|
+
},
|
|
19042
|
+
{
|
|
19043
|
+
"kind": "method",
|
|
19044
|
+
"name": "handleShowRequest",
|
|
19045
|
+
"privacy": "private",
|
|
18927
19046
|
"return": {
|
|
18928
19047
|
"type": {
|
|
18929
19048
|
"text": "void"
|
|
@@ -18931,822 +19050,531 @@
|
|
|
18931
19050
|
},
|
|
18932
19051
|
"parameters": [
|
|
18933
19052
|
{
|
|
18934
|
-
"name": "
|
|
19053
|
+
"name": "config",
|
|
18935
19054
|
"type": {
|
|
18936
|
-
"text": "
|
|
19055
|
+
"text": "FlyoutConfig"
|
|
18937
19056
|
}
|
|
18938
19057
|
}
|
|
18939
19058
|
],
|
|
18940
|
-
"description": "
|
|
18941
|
-
"inheritedFrom": {
|
|
18942
|
-
"name": "EspalierElementBase",
|
|
18943
|
-
"module": "dist/shared/esp-element-base.js"
|
|
18944
|
-
}
|
|
19059
|
+
"description": "Service a `\"show-flyout\"` bus request: swap in the requested\nheading/content (never stacking) and open."
|
|
18945
19060
|
},
|
|
18946
19061
|
{
|
|
18947
19062
|
"kind": "method",
|
|
18948
|
-
"name": "
|
|
19063
|
+
"name": "shouldHandleShowRequest",
|
|
18949
19064
|
"privacy": "private",
|
|
18950
19065
|
"return": {
|
|
18951
19066
|
"type": {
|
|
18952
|
-
"text": "
|
|
19067
|
+
"text": "boolean"
|
|
18953
19068
|
}
|
|
18954
19069
|
},
|
|
18955
19070
|
"parameters": [
|
|
18956
19071
|
{
|
|
18957
|
-
"name": "
|
|
19072
|
+
"name": "config",
|
|
18958
19073
|
"type": {
|
|
18959
|
-
"text": "
|
|
19074
|
+
"text": "FlyoutConfig"
|
|
18960
19075
|
}
|
|
18961
19076
|
}
|
|
18962
|
-
]
|
|
18963
|
-
"inheritedFrom": {
|
|
18964
|
-
"name": "EspalierElementBase",
|
|
18965
|
-
"module": "dist/shared/esp-element-base.js"
|
|
18966
|
-
}
|
|
18967
|
-
},
|
|
18968
|
-
{
|
|
18969
|
-
"kind": "field",
|
|
18970
|
-
"name": "applyReadyRoot",
|
|
18971
|
-
"privacy": "private",
|
|
18972
|
-
"readonly": true,
|
|
18973
|
-
"inheritedFrom": {
|
|
18974
|
-
"name": "EspalierElementBase",
|
|
18975
|
-
"module": "dist/shared/esp-element-base.js"
|
|
18976
|
-
}
|
|
19077
|
+
]
|
|
18977
19078
|
},
|
|
18978
19079
|
{
|
|
18979
19080
|
"kind": "method",
|
|
18980
|
-
"name": "
|
|
19081
|
+
"name": "getPageChain",
|
|
18981
19082
|
"privacy": "private",
|
|
18982
19083
|
"return": {
|
|
18983
19084
|
"type": {
|
|
18984
|
-
"text": "
|
|
19085
|
+
"text": "HTMLElement[]"
|
|
18985
19086
|
}
|
|
18986
19087
|
},
|
|
18987
|
-
"
|
|
18988
|
-
|
|
18989
|
-
|
|
18990
|
-
|
|
19088
|
+
"parameters": [
|
|
19089
|
+
{
|
|
19090
|
+
"name": "from",
|
|
19091
|
+
"type": {
|
|
19092
|
+
"text": "Element"
|
|
19093
|
+
}
|
|
19094
|
+
}
|
|
19095
|
+
]
|
|
18991
19096
|
},
|
|
18992
19097
|
{
|
|
18993
19098
|
"kind": "method",
|
|
18994
|
-
"name": "
|
|
18995
|
-
"privacy": "
|
|
19099
|
+
"name": "hasNearestScopeFlyout",
|
|
19100
|
+
"privacy": "private",
|
|
18996
19101
|
"return": {
|
|
18997
19102
|
"type": {
|
|
18998
|
-
"text": ""
|
|
19103
|
+
"text": "boolean"
|
|
18999
19104
|
}
|
|
19000
19105
|
},
|
|
19001
19106
|
"parameters": [
|
|
19002
19107
|
{
|
|
19003
|
-
"name": "
|
|
19108
|
+
"name": "page",
|
|
19004
19109
|
"type": {
|
|
19005
|
-
"text": "
|
|
19006
|
-
}
|
|
19007
|
-
"description": "The selector of the element to look for"
|
|
19110
|
+
"text": "HTMLElement"
|
|
19111
|
+
}
|
|
19008
19112
|
}
|
|
19009
|
-
]
|
|
19010
|
-
"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.",
|
|
19011
|
-
"inheritedFrom": {
|
|
19012
|
-
"name": "EspalierElementBase",
|
|
19013
|
-
"module": "dist/shared/esp-element-base.js"
|
|
19014
|
-
}
|
|
19113
|
+
]
|
|
19015
19114
|
},
|
|
19016
19115
|
{
|
|
19017
|
-
"kind": "
|
|
19018
|
-
"name": "
|
|
19019
|
-
"type": {
|
|
19020
|
-
"text": "Readonly<\n Record<EspalierIntentVariant, ColorSource | \"\">\n >"
|
|
19021
|
-
},
|
|
19116
|
+
"kind": "method",
|
|
19117
|
+
"name": "handleKeydown",
|
|
19022
19118
|
"privacy": "private",
|
|
19023
|
-
"
|
|
19024
|
-
|
|
19025
|
-
|
|
19026
|
-
|
|
19027
|
-
|
|
19028
|
-
|
|
19029
|
-
|
|
19030
|
-
|
|
19119
|
+
"return": {
|
|
19120
|
+
"type": {
|
|
19121
|
+
"text": "void"
|
|
19122
|
+
}
|
|
19123
|
+
},
|
|
19124
|
+
"parameters": [
|
|
19125
|
+
{
|
|
19126
|
+
"name": "ev",
|
|
19127
|
+
"type": {
|
|
19128
|
+
"text": "KeyboardEvent"
|
|
19129
|
+
}
|
|
19130
|
+
}
|
|
19131
|
+
]
|
|
19031
19132
|
},
|
|
19032
19133
|
{
|
|
19033
|
-
"kind": "
|
|
19034
|
-
"name": "
|
|
19035
|
-
"type": {
|
|
19036
|
-
"text": "ReadonlySet<SemanticColorName>"
|
|
19037
|
-
},
|
|
19134
|
+
"kind": "method",
|
|
19135
|
+
"name": "focusIsInside",
|
|
19038
19136
|
"privacy": "private",
|
|
19039
|
-
"
|
|
19040
|
-
|
|
19041
|
-
|
|
19042
|
-
|
|
19043
|
-
"inheritedFrom": {
|
|
19044
|
-
"name": "EspalierElementBase",
|
|
19045
|
-
"module": "dist/shared/esp-element-base.js"
|
|
19137
|
+
"return": {
|
|
19138
|
+
"type": {
|
|
19139
|
+
"text": "boolean"
|
|
19140
|
+
}
|
|
19046
19141
|
}
|
|
19047
19142
|
},
|
|
19048
19143
|
{
|
|
19049
19144
|
"kind": "method",
|
|
19050
|
-
"name": "
|
|
19051
|
-
"privacy": "
|
|
19145
|
+
"name": "syncAnchorGeometry",
|
|
19146
|
+
"privacy": "private",
|
|
19052
19147
|
"return": {
|
|
19053
19148
|
"type": {
|
|
19054
19149
|
"text": "void"
|
|
19055
19150
|
}
|
|
19056
19151
|
},
|
|
19057
|
-
"description": "
|
|
19058
|
-
"inheritedFrom": {
|
|
19059
|
-
"name": "EspalierElementBase",
|
|
19060
|
-
"module": "dist/shared/esp-element-base.js"
|
|
19061
|
-
}
|
|
19152
|
+
"description": "Position an anchored in-grid flyout at the trigger. Content-height\npanels shift upward only when they would overflow; explicitly\nfull-height panels use the complete scrollport. The leading-edge\nmarker remains aligned with the trigger for contextual help and is\nomitted from the full-height reading surface."
|
|
19062
19153
|
},
|
|
19063
19154
|
{
|
|
19064
19155
|
"kind": "method",
|
|
19065
|
-
"name": "
|
|
19156
|
+
"name": "getVisibleBlockBounds",
|
|
19066
19157
|
"privacy": "private",
|
|
19067
19158
|
"return": {
|
|
19068
19159
|
"type": {
|
|
19069
|
-
"text": "{
|
|
19160
|
+
"text": "{ top: number; bottom: number }"
|
|
19070
19161
|
}
|
|
19071
19162
|
},
|
|
19072
|
-
"
|
|
19073
|
-
{
|
|
19074
|
-
"name": "theme",
|
|
19075
|
-
"type": {
|
|
19076
|
-
"text": "EspalierTheme"
|
|
19077
|
-
}
|
|
19078
|
-
}
|
|
19079
|
-
],
|
|
19080
|
-
"description": "Resolve this host's own context name over the active root theme.",
|
|
19081
|
-
"inheritedFrom": {
|
|
19082
|
-
"name": "EspalierElementBase",
|
|
19083
|
-
"module": "dist/shared/esp-element-base.js"
|
|
19084
|
-
}
|
|
19163
|
+
"description": "Intersect the visual viewport with every scrolling ancestor. This\nkeeps the flyout usable both on the document and inside a bounded\nlive-example pane such as WTFM's demo container."
|
|
19085
19164
|
},
|
|
19086
19165
|
{
|
|
19087
19166
|
"kind": "method",
|
|
19088
|
-
"name": "
|
|
19167
|
+
"name": "composedParent",
|
|
19089
19168
|
"privacy": "private",
|
|
19090
19169
|
"return": {
|
|
19091
19170
|
"type": {
|
|
19092
|
-
"text": "
|
|
19171
|
+
"text": "Element | null"
|
|
19093
19172
|
}
|
|
19094
19173
|
},
|
|
19095
19174
|
"parameters": [
|
|
19096
19175
|
{
|
|
19097
|
-
"name": "
|
|
19176
|
+
"name": "element",
|
|
19098
19177
|
"type": {
|
|
19099
|
-
"text": "
|
|
19178
|
+
"text": "Element"
|
|
19100
19179
|
}
|
|
19101
19180
|
}
|
|
19102
|
-
]
|
|
19103
|
-
"description": "Warn about an unknown context only once the root's theme has\nsettled (ESP0177).\n\nA script-mounted theme lands after its descendants first render, so\na zone naming a context the theme *does* define would otherwise\nwarn about a state that was never rendered to anyone. Waiting for\nthe root to settle — an author theme resolved, or the pre-theme\nwindow closed with none — makes the warning describe the settled\ntheme instead of a transient one. It is deferred, never dropped: a\ngenuinely missing context still warns, just after the window.",
|
|
19104
|
-
"inheritedFrom": {
|
|
19105
|
-
"name": "EspalierElementBase",
|
|
19106
|
-
"module": "dist/shared/esp-element-base.js"
|
|
19107
|
-
}
|
|
19181
|
+
]
|
|
19108
19182
|
},
|
|
19109
19183
|
{
|
|
19110
19184
|
"kind": "method",
|
|
19111
|
-
"name": "
|
|
19185
|
+
"name": "setGeometryProperty",
|
|
19112
19186
|
"privacy": "private",
|
|
19113
19187
|
"return": {
|
|
19114
19188
|
"type": {
|
|
19115
|
-
"text": "
|
|
19189
|
+
"text": "void"
|
|
19116
19190
|
}
|
|
19117
19191
|
},
|
|
19118
19192
|
"parameters": [
|
|
19119
19193
|
{
|
|
19120
|
-
"name": "
|
|
19194
|
+
"name": "name",
|
|
19121
19195
|
"type": {
|
|
19122
|
-
"text": "
|
|
19196
|
+
"text": "string"
|
|
19123
19197
|
}
|
|
19124
19198
|
},
|
|
19125
19199
|
{
|
|
19126
|
-
"name": "
|
|
19200
|
+
"name": "value",
|
|
19127
19201
|
"type": {
|
|
19128
19202
|
"text": "string"
|
|
19129
19203
|
}
|
|
19130
19204
|
}
|
|
19131
|
-
]
|
|
19132
|
-
|
|
19133
|
-
"inheritedFrom": {
|
|
19134
|
-
"name": "EspalierElementBase",
|
|
19135
|
-
"module": "dist/shared/esp-element-base.js"
|
|
19136
|
-
}
|
|
19137
|
-
}
|
|
19138
|
-
],
|
|
19139
|
-
"events": [
|
|
19205
|
+
]
|
|
19206
|
+
},
|
|
19140
19207
|
{
|
|
19141
|
-
"
|
|
19142
|
-
|
|
19143
|
-
|
|
19144
|
-
"
|
|
19145
|
-
|
|
19146
|
-
|
|
19147
|
-
|
|
19148
|
-
|
|
19208
|
+
"kind": "method",
|
|
19209
|
+
"name": "clearAnchorGeometry",
|
|
19210
|
+
"privacy": "private",
|
|
19211
|
+
"return": {
|
|
19212
|
+
"type": {
|
|
19213
|
+
"text": "void"
|
|
19214
|
+
}
|
|
19215
|
+
}
|
|
19216
|
+
},
|
|
19149
19217
|
{
|
|
19150
|
-
"
|
|
19151
|
-
"
|
|
19152
|
-
|
|
19153
|
-
|
|
19154
|
-
|
|
19155
|
-
|
|
19156
|
-
|
|
19218
|
+
"kind": "method",
|
|
19219
|
+
"name": "clearAnchorPlacementGeometry",
|
|
19220
|
+
"privacy": "private",
|
|
19221
|
+
"return": {
|
|
19222
|
+
"type": {
|
|
19223
|
+
"text": "void"
|
|
19224
|
+
}
|
|
19225
|
+
}
|
|
19157
19226
|
},
|
|
19158
19227
|
{
|
|
19159
|
-
"
|
|
19160
|
-
"
|
|
19161
|
-
|
|
19162
|
-
|
|
19163
|
-
|
|
19164
|
-
|
|
19165
|
-
|
|
19228
|
+
"kind": "method",
|
|
19229
|
+
"name": "scheduleAnchorGeometrySync",
|
|
19230
|
+
"privacy": "private",
|
|
19231
|
+
"return": {
|
|
19232
|
+
"type": {
|
|
19233
|
+
"text": "void"
|
|
19234
|
+
}
|
|
19235
|
+
}
|
|
19166
19236
|
},
|
|
19167
19237
|
{
|
|
19168
|
-
"
|
|
19169
|
-
"
|
|
19170
|
-
|
|
19171
|
-
|
|
19172
|
-
|
|
19173
|
-
|
|
19174
|
-
|
|
19238
|
+
"kind": "method",
|
|
19239
|
+
"name": "syncAnchorTracking",
|
|
19240
|
+
"privacy": "private",
|
|
19241
|
+
"return": {
|
|
19242
|
+
"type": {
|
|
19243
|
+
"text": "void"
|
|
19244
|
+
}
|
|
19245
|
+
}
|
|
19175
19246
|
},
|
|
19176
19247
|
{
|
|
19177
|
-
"
|
|
19178
|
-
|
|
19179
|
-
|
|
19180
|
-
"
|
|
19181
|
-
|
|
19182
|
-
|
|
19183
|
-
|
|
19184
|
-
"module": "dist/shared/esp-element-base.js"
|
|
19248
|
+
"kind": "method",
|
|
19249
|
+
"name": "stopAnchorTracking",
|
|
19250
|
+
"privacy": "private",
|
|
19251
|
+
"return": {
|
|
19252
|
+
"type": {
|
|
19253
|
+
"text": "void"
|
|
19254
|
+
}
|
|
19185
19255
|
}
|
|
19186
19256
|
},
|
|
19187
19257
|
{
|
|
19188
|
-
"
|
|
19189
|
-
"
|
|
19190
|
-
|
|
19258
|
+
"kind": "method",
|
|
19259
|
+
"name": "syncOverlayModal",
|
|
19260
|
+
"privacy": "private",
|
|
19261
|
+
"return": {
|
|
19262
|
+
"type": {
|
|
19263
|
+
"text": "void"
|
|
19264
|
+
}
|
|
19191
19265
|
},
|
|
19192
|
-
"
|
|
19193
|
-
"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.",
|
|
19194
|
-
"fieldName": "scheme",
|
|
19195
|
-
"inheritedFrom": {
|
|
19196
|
-
"name": "EspalierElementBase",
|
|
19197
|
-
"module": "dist/shared/esp-element-base.js"
|
|
19198
|
-
}
|
|
19266
|
+
"description": "Apply modal a11y exactly when the flyout is open **and** presenting\nas an overlay drawer, and remove it otherwise. Called on open/mode\nchanges and when the viewport crosses the overlay threshold.\n\nModal treatment = background inert, scroll lock, `role=\"dialog\"` +\n`aria-modal`, focus moved into the drawer and trapped, and focus\nrestored on teardown — all via the (non-promoting) Overlay\ncontroller, so the flyout never leaves its page slot. The in-grid\nmodes stay a non-modal `complementary` landmark with no focus\nmanagement."
|
|
19199
19267
|
},
|
|
19200
19268
|
{
|
|
19201
|
-
"
|
|
19202
|
-
"
|
|
19203
|
-
|
|
19269
|
+
"kind": "method",
|
|
19270
|
+
"name": "updateGeneratedAriaLabel",
|
|
19271
|
+
"privacy": "private",
|
|
19272
|
+
"return": {
|
|
19273
|
+
"type": {
|
|
19274
|
+
"text": "void"
|
|
19275
|
+
}
|
|
19204
19276
|
},
|
|
19205
|
-
"description": "
|
|
19206
|
-
"fieldName": "intent",
|
|
19207
|
-
"inheritedFrom": {
|
|
19208
|
-
"name": "EspalierElementBase",
|
|
19209
|
-
"module": "dist/shared/esp-element-base.js"
|
|
19210
|
-
}
|
|
19277
|
+
"description": "Mirror `heading` into `aria-label`, or apply a stable fallback\nwhile this is an overlay dialog, without clobbering a label the\nauthor controls (see lastGeneratedAriaLabel)."
|
|
19211
19278
|
},
|
|
19212
19279
|
{
|
|
19213
|
-
"
|
|
19280
|
+
"kind": "field",
|
|
19281
|
+
"name": "seedColorBacker",
|
|
19214
19282
|
"type": {
|
|
19215
19283
|
"text": "string"
|
|
19216
19284
|
},
|
|
19217
|
-
"
|
|
19218
|
-
"
|
|
19219
|
-
"inheritedFrom": {
|
|
19220
|
-
"name": "EspalierElementBase",
|
|
19221
|
-
"module": "dist/shared/esp-element-base.js"
|
|
19222
|
-
}
|
|
19223
|
-
}
|
|
19224
|
-
],
|
|
19225
|
-
"superclass": {
|
|
19226
|
-
"name": "EspalierElementBase",
|
|
19227
|
-
"module": "dist/shared/esp-element-base.js"
|
|
19228
|
-
},
|
|
19229
|
-
"tagName": "esp-file-upload",
|
|
19230
|
-
"customElement": true,
|
|
19231
|
-
"docPageTitle": {
|
|
19232
|
-
"name": "File",
|
|
19233
|
-
"description": "Upload"
|
|
19234
|
-
},
|
|
19235
|
-
"docUrl": {
|
|
19236
|
-
"name": "/components/file-upload",
|
|
19237
|
-
"description": ""
|
|
19238
|
-
},
|
|
19239
|
-
"menuGroup": {
|
|
19240
|
-
"name": "Form",
|
|
19241
|
-
"description": "Controls"
|
|
19242
|
-
},
|
|
19243
|
-
"menuLabel": {
|
|
19244
|
-
"name": "File",
|
|
19245
|
-
"description": "Upload"
|
|
19246
|
-
},
|
|
19247
|
-
"menuIcon": {
|
|
19248
|
-
"name": "upload",
|
|
19249
|
-
"description": ""
|
|
19250
|
-
},
|
|
19251
|
-
"cssProperties": [
|
|
19252
|
-
{
|
|
19253
|
-
"description": "Background color of the shared field shell. Defaults to one layer above the nearest declared surface, capped at `var(--esp-color-layer-4)`, or `var(--esp-color-layer-2)` without a declared surface. An explicit override wins.",
|
|
19254
|
-
"name": "--esp-field-background",
|
|
19285
|
+
"privacy": "private",
|
|
19286
|
+
"default": "\"oklch(0.7 0.125 216)\"",
|
|
19255
19287
|
"inheritedFrom": {
|
|
19256
19288
|
"name": "EspalierElementBase",
|
|
19257
19289
|
"module": "dist/shared/esp-element-base.js"
|
|
19258
19290
|
}
|
|
19259
19291
|
},
|
|
19260
19292
|
{
|
|
19261
|
-
"
|
|
19262
|
-
"name": "
|
|
19293
|
+
"kind": "field",
|
|
19294
|
+
"name": "rootObserver",
|
|
19295
|
+
"privacy": "private",
|
|
19296
|
+
"readonly": true,
|
|
19297
|
+
"default": "new GoverningRootObserver(this, (root, previousRoot) => { if (root !== previousRoot) { this.scopedTokens.clear(); this.governingRootChanged(root); // Render the fallback sprite if re-slotting leaves this connected host without a root. if (this.isConnected) this.requestUpdate(); } if (root) { this.syncRootMetadata(root); this.rootObserver.whenReady(this.applyReadyRoot); } })",
|
|
19263
19298
|
"inheritedFrom": {
|
|
19264
19299
|
"name": "EspalierElementBase",
|
|
19265
19300
|
"module": "dist/shared/esp-element-base.js"
|
|
19266
19301
|
}
|
|
19267
19302
|
},
|
|
19268
19303
|
{
|
|
19269
|
-
"
|
|
19270
|
-
"name": "
|
|
19304
|
+
"kind": "field",
|
|
19305
|
+
"name": "espRoot",
|
|
19306
|
+
"type": {
|
|
19307
|
+
"text": "EspalierRoot | null"
|
|
19308
|
+
},
|
|
19309
|
+
"privacy": "private",
|
|
19310
|
+
"readonly": true,
|
|
19271
19311
|
"inheritedFrom": {
|
|
19272
19312
|
"name": "EspalierElementBase",
|
|
19273
19313
|
"module": "dist/shared/esp-element-base.js"
|
|
19274
19314
|
}
|
|
19275
19315
|
},
|
|
19276
19316
|
{
|
|
19277
|
-
"
|
|
19278
|
-
"name": "
|
|
19317
|
+
"kind": "field",
|
|
19318
|
+
"name": "contextBacker",
|
|
19319
|
+
"type": {
|
|
19320
|
+
"text": "string"
|
|
19321
|
+
},
|
|
19322
|
+
"privacy": "private",
|
|
19323
|
+
"default": "\"\"",
|
|
19279
19324
|
"inheritedFrom": {
|
|
19280
19325
|
"name": "EspalierElementBase",
|
|
19281
19326
|
"module": "dist/shared/esp-element-base.js"
|
|
19282
19327
|
}
|
|
19283
19328
|
},
|
|
19284
19329
|
{
|
|
19285
|
-
"
|
|
19286
|
-
"name": "
|
|
19330
|
+
"kind": "field",
|
|
19331
|
+
"name": "scopedTokens",
|
|
19332
|
+
"privacy": "private",
|
|
19333
|
+
"readonly": true,
|
|
19334
|
+
"default": "new ScopedStyleDeclarations(this)",
|
|
19287
19335
|
"inheritedFrom": {
|
|
19288
19336
|
"name": "EspalierElementBase",
|
|
19289
19337
|
"module": "dist/shared/esp-element-base.js"
|
|
19290
19338
|
}
|
|
19291
19339
|
},
|
|
19292
19340
|
{
|
|
19293
|
-
"
|
|
19294
|
-
"name": "
|
|
19341
|
+
"kind": "field",
|
|
19342
|
+
"name": "warnedUnknownContexts",
|
|
19343
|
+
"privacy": "private",
|
|
19344
|
+
"readonly": true,
|
|
19345
|
+
"default": "new Set<string>()",
|
|
19295
19346
|
"inheritedFrom": {
|
|
19296
19347
|
"name": "EspalierElementBase",
|
|
19297
19348
|
"module": "dist/shared/esp-element-base.js"
|
|
19298
19349
|
}
|
|
19299
19350
|
},
|
|
19300
19351
|
{
|
|
19301
|
-
"
|
|
19302
|
-
"name": "
|
|
19352
|
+
"kind": "field",
|
|
19353
|
+
"name": "intentBacker",
|
|
19354
|
+
"type": {
|
|
19355
|
+
"text": "EspalierIntentVariant"
|
|
19356
|
+
},
|
|
19357
|
+
"privacy": "protected",
|
|
19358
|
+
"default": "\"neutral\"",
|
|
19303
19359
|
"inheritedFrom": {
|
|
19304
19360
|
"name": "EspalierElementBase",
|
|
19305
19361
|
"module": "dist/shared/esp-element-base.js"
|
|
19306
19362
|
}
|
|
19307
|
-
}
|
|
19308
|
-
]
|
|
19309
|
-
}
|
|
19310
|
-
],
|
|
19311
|
-
"exports": [
|
|
19312
|
-
{
|
|
19313
|
-
"kind": "js",
|
|
19314
|
-
"name": "EspalierFileUpload",
|
|
19315
|
-
"declaration": {
|
|
19316
|
-
"name": "EspalierFileUpload",
|
|
19317
|
-
"module": "dist/file-upload/esp-file-upload.js"
|
|
19318
|
-
}
|
|
19319
|
-
},
|
|
19320
|
-
{
|
|
19321
|
-
"kind": "custom-element-definition",
|
|
19322
|
-
"name": "esp-file-upload",
|
|
19323
|
-
"declaration": {
|
|
19324
|
-
"name": "EspalierFileUpload",
|
|
19325
|
-
"module": "dist/file-upload/esp-file-upload.js"
|
|
19326
|
-
}
|
|
19327
|
-
}
|
|
19328
|
-
]
|
|
19329
|
-
},
|
|
19330
|
-
{
|
|
19331
|
-
"kind": "javascript-module",
|
|
19332
|
-
"path": "dist/flyout/esp-flyout.js",
|
|
19333
|
-
"declarations": [
|
|
19334
|
-
{
|
|
19335
|
-
"kind": "class",
|
|
19336
|
-
"description": "A panel for help and additional information. Uses spare page width when\navailable and switches to an overlay when the workspace cannot fit it.\n\nPlace one `esp-flyout` in an `esp-page`'s `flyout` slot. The panel\nlives on the canvas after any persistent preview, outside the content\nsurface. It negotiates between `--esp-page-flyout-min-width` and\n`--esp-page-flyout-max-width`; preview receives flexible room first. The page\ndecides where help goes, from widest viewport to narrowest:\n\n1. **Gutter** — the panel occupies the right canvas gutter. When the\n gutter already has room, it claims existing spare canvas and the\n main content does not move at all, on any alignment.\n2. **Shift** — when the gutter is not quite wide enough, the surface\n slides toward `start` by exactly the shortfall (no more) to free\n the difference.\n3. **Docked sidebar** — once the gutter is gone, the panel competes\n for width with the main well; content narrows but is never\n covered.\n4. **Overlay drawer** — when the complete sidebar + main + help\n minimums do not fit, or below `COMPACT_VIEWPORT_MEDIA_QUERY` (the\n same breakpoint the `esp-menu` drawer uses), the panel becomes a fixed\n drawer over a vellum backdrop. Set `mode=\"overlay\"` to get this\n presentation at every width.\n\nThe panel is styled as a tear-off piece: a dotted perforation on\nits leading edge, rounded trailing corners, and no shadow — all\noverridable through the `--esp-flyout-*` tokens below.\nAn anchored panel shown with preview keeps its caret at the main/preview\nedge and receives a non-interactive dotted bridge across preview from the\npage. A short, thick terminus on the preview/help seam completes that\nconnection; no consumer positioning is required.\n\nA11y follows the presentation. In the in-grid modes (1–3) the\nflyout is a non-modal `complementary` landmark named by its\n`heading`, opening it never steals focus, and boundary scrolling chains\nback to the main document. In the overlay-drawer mode (4) it is a true\nmodal: `role=\"dialog\"` + `aria-modal`, the\nbackground goes inert, scroll is locked, focus moves into the drawer\nand is trapped, and focus is restored on close. `Escape` closes it\nin every mode.\n\n```html\n<style>\nesp-page.flyout-demo {\n --esp-page-main-max-width: 420px;\n --esp-page-canvas-background: var(--esp-color-layer-1);\n &::part(wrapper) {\n min-height: 320px;\n height: 320px;\n }\n > div {\n padding: var(--esp-size-padding);\n }\n}\n</style>\n<esp-page class=\"flyout-demo\" align=\"center\">\n <esp-flyout slot=\"flyout\" heading=\"More info\" id=\"demo-flyout\" standalone>\n <p>Spare width claimed; the well shifted only enough to make room.</p>\n </esp-flyout>\n <div>\n <esp-button id=\"toggle-flyout\" label=\"Toggle flyout\" collapsed></esp-button>\n </div>\n</esp-page>\n<script>\n const flyout = findById(\"demo-flyout\");\n findById(\"toggle-flyout\").addEventListener(\"esp-clicked\", () => flyout.toggle());\n</script>\n```\n\nBy default the panel is a tear-off — a dotted perforation on its\nleading edge, rounded trailing corners, no shadow. Add\n`match-surface` to lift the trailing edge with the page's surface\nedge shadow, so the flyout reads as a raised peer of the content it\nflies out from while staying attached at the leading perforation:\n\n```html\n<style>\nesp-page.flyout-match-demo {\n --esp-page-main-max-width: 420px;\n &::part(wrapper) {\n min-height: 320px;\n height: 320px;\n }\n > div {\n padding: var(--esp-size-padding);\n }\n}\n</style>\n<esp-page class=\"flyout-match-demo\" align=\"center\">\n <esp-flyout slot=\"flyout\" heading=\"More info\" id=\"match-flyout\" match-surface standalone>\n <p>Attached at the perforation, trailing edge raised like the surface.</p>\n </esp-flyout>\n <div>\n <esp-button id=\"toggle-match\" label=\"Toggle flyout\" collapsed></esp-button>\n </div>\n</esp-page>\n<script>\n const matchFlyout = findById(\"match-flyout\");\n findById(\"toggle-match\").addEventListener(\"esp-clicked\", () => matchFlyout.toggle());\n</script>\n```\n\nWhen the page has no spare width to claim — a `kind=\"full\"` page,\nor a capped page on a viewport at the cap — the open flyout docks\nas a right sidebar and the content makes room:\n\n```html\n<style>\nesp-page.flyout-docked-demo {\n &::part(wrapper) {\n min-height: 320px;\n height: 320px;\n }\n > div {\n padding: var(--esp-size-padding);\n }\n}\n</style>\n<esp-page class=\"flyout-docked-demo\" kind=\"full\">\n <esp-flyout slot=\"flyout\" heading=\"Docked\" id=\"docked-flyout\" standalone>\n <p>No gutter to claim, so the content narrows instead.</p>\n </esp-flyout>\n <div>\n <p>A <code>kind=\"full\"</code> page has no canvas gutters at any\n width — the flyout squeezes the main well and never covers it.</p>\n <esp-button id=\"toggle-docked\" label=\"Toggle flyout\" collapsed></esp-button>\n </div>\n</esp-page>\n<script>\n const dockedFlyout = findById(\"docked-flyout\");\n findById(\"toggle-docked\").addEventListener(\"esp-clicked\", () => dockedFlyout.toggle());\n</script>\n```\n\nBelow `COMPACT_VIEWPORT_MEDIA_QUERY` every flyout becomes a fixed\noverlay drawer over a vellum — there is no room for a side-by-side\nsplit on a phone. `mode=\"overlay\"` forces that presentation at any\nwidth (try it here; `Escape` or the vellum closes it):\n\n```html\n<style>\nesp-page.flyout-overlay-demo {\n &::part(wrapper) {\n min-height: 160px;\n height: 160px;\n }\n > div {\n padding: var(--esp-size-padding);\n }\n}\n</style>\n<esp-page class=\"flyout-overlay-demo\">\n <esp-flyout slot=\"flyout\" heading=\"Overlay drawer\" mode=\"overlay\" id=\"overlay-flyout\" standalone>\n <p>A fixed drawer over a vellum — what every flyout becomes on\n small viewports.</p>\n </esp-flyout>\n <div>\n <esp-button id=\"open-overlay\" label=\"Open overlay flyout\" collapsed></esp-button>\n </div>\n</esp-page>\n<script>\n const overlayFlyout = findById(\"overlay-flyout\");\n findById(\"open-overlay\").addEventListener(\"esp-clicked\", () => overlayFlyout.toggle());\n</script>\n```\n\nComponents that cannot know where the flyout lives can request it\nover the bus with `showFlyout()` — the same pattern `showToast()`\nuses. A second request swaps the content in place; it never\nstacks. Content passed as a string renders as plain text; pass a\n`Node` for rich content. Pass the triggering element as `anchor` to\nalign the in-grid panel with that control and keep both in the same\nscroll flow. If the panel would cross the visible viewport's bottom,\nit shifts up only far enough to fit and returns to its natural trigger\nalignment as the page scrolls. Content taller than the viewport\nscrolls inside the panel. Pass `fullHeight: true` (or set the\n`full-height` attribute) when a reading surface should fill the visible\nblock-size even when its content is short. Overlay drawers stay\nviewport-fixed.\n\nBus requests anchored inside nested pages are presented by the\noutermost containing page's flyout by default. This keeps previews,\nembedded tools, and nested layouts from trapping application-level\nhelp or detail panels. Set `scope=\"nearest\"` on a nested flyout when\nthat page should explicitly own requests originating inside it.\nThe demos above are each driven by their own toggle button, so they\nare marked `standalone` to opt out of the bus entirely.\n\n```html\n<style>\nesp-page.flyout-bus-demo {\n --esp-page-main-max-width: 420px;\n &::part(wrapper) {\n min-height: 320px;\n }\n > div {\n padding: var(--esp-size-padding);\n }\n .flyout-demo-copy {\n max-inline-size: 42ch;\n }\n}\n</style>\n<esp-page class=\"flyout-bus-demo\">\n <esp-flyout slot=\"flyout\"></esp-flyout>\n <div>\n <esp-button id=\"show-apples\" label=\"Apples\" collapsed></esp-button>\n <div class=\"flyout-demo-copy\">\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod\n tempor incididunt ut labore et dolore magna aliqua.</p>\n <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi\n ut aliquip ex ea commodo consequat.</p>\n <p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum\n dolore eu fugiat nulla pariatur.</p>\n </div>\n <esp-button id=\"show-pears\" label=\"Pears\" collapsed></esp-button>\n <template id=\"pears-description\">\n <p>Ripen pears at room temperature until the neck yields gently to\n pressure, then refrigerate them to slow further ripening.</p>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer\n nec odio. Praesent libero. Sed cursus ante dapibus diam.</p>\n <p>Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis\n sagittis ipsum. Praesent mauris. Fusce nec tellus sed augue semper\n porta.</p>\n <p>Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent\n taciti sociosqu ad litora torquent per conubia nostra.</p>\n <p>Curabitur sodales ligula in libero. Sed dignissim lacinia nunc.\n Curabitur tortor. Pellentesque nibh. Aenean quam.</p>\n <p>In scelerisque sem at dolor. Maecenas mattis. Sed convallis\n tristique sem. Proin ut ligula vel nunc egestas porttitor.</p>\n <p>Morbi lectus risus, iaculis vel, suscipit quis, luctus non,\n massa. Fusce ac turpis quis ligula lacinia aliquet.</p>\n <p>Mauris ipsum. Nulla metus metus, ullamcorper vel, tincidunt sed,\n euismod in, nibh. Quisque volutpat condimentum velit.</p>\n </template>\n <div class=\"flyout-demo-copy\">\n <p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia\n deserunt mollit anim id est laborum.</p>\n <p>Curabitur pretium tincidunt lacus. Nulla gravida orci a odio, nullam\n varius, turpis et commodo pharetra.</p>\n </div>\n </div>\n</esp-page>\n<script>\n const applesButton = findById(\"show-apples\");\n applesButton.addEventListener(\"esp-clicked\", () => {\n showFlyout({ heading: \"Apples\", content: \"Crisp. Store cold.\", anchor: applesButton });\n });\n const pearsButton = findById(\"show-pears\");\n const pearsDescription = findById(\"pears-description\");\n pearsButton.addEventListener(\"esp-clicked\", () => {\n showFlyout({\n heading: \"Pears\",\n content: pearsDescription.content.cloneNode(true),\n anchor: pearsButton,\n });\n });\n</script>\n```",
|
|
19337
|
-
"name": "EspalierFlyout",
|
|
19338
|
-
"cssProperties": [
|
|
19339
|
-
{
|
|
19340
|
-
"description": "The background color of the panel. Defaults to `var(--esp-color-background)`.",
|
|
19341
|
-
"name": "--esp-flyout-background"
|
|
19342
|
-
},
|
|
19343
|
-
{
|
|
19344
|
-
"description": "The border on the panel's leading edge. Defaults to the tear-off perforation, `1px dotted var(--esp-color-border)`.",
|
|
19345
|
-
"name": "--esp-flyout-border"
|
|
19346
|
-
},
|
|
19347
|
-
{
|
|
19348
|
-
"description": "The radius of the panel's trailing corners. Defaults to `var(--esp-size-border-radius)`; the overlay drawer squares them.",
|
|
19349
|
-
"name": "--esp-flyout-radius"
|
|
19350
19363
|
},
|
|
19351
19364
|
{
|
|
19352
|
-
"
|
|
19353
|
-
"name": "
|
|
19354
|
-
|
|
19355
|
-
|
|
19356
|
-
|
|
19357
|
-
"
|
|
19358
|
-
|
|
19359
|
-
|
|
19360
|
-
"description": "Stack order of the overlay-drawer mode. Defaults to `3000` — above page chrome, below the dialog drop zone (4000). Set it on the `esp-page` (or an ancestor), not on the flyout itself: the page reads the same token to hoist the drawer's aside above its header.",
|
|
19361
|
-
"name": "--esp-flyout-z-index"
|
|
19362
|
-
},
|
|
19363
|
-
{
|
|
19364
|
-
"description": "Background color of the shared field shell. Defaults to one layer above the nearest declared surface, capped at `var(--esp-color-layer-4)`, or `var(--esp-color-layer-2)` without a declared surface. An explicit override wins.",
|
|
19365
|
-
"name": "--esp-field-background",
|
|
19365
|
+
"kind": "field",
|
|
19366
|
+
"name": "intentEmitsTokens",
|
|
19367
|
+
"type": {
|
|
19368
|
+
"text": "boolean"
|
|
19369
|
+
},
|
|
19370
|
+
"privacy": "protected",
|
|
19371
|
+
"default": "true",
|
|
19372
|
+
"description": "Whether a non-neutral intent emits its inline tokens\n(`--esp-color-primary` and the filled-action pair). Interactive\ncontrols need them; chrome whose intent treatment is class-based\n(badges, callouts, status pills — see `intentSurfaceTokens`) opts\nout so a decorative intent never rewrites inherited tokens for\nslotted content.",
|
|
19366
19373
|
"inheritedFrom": {
|
|
19367
19374
|
"name": "EspalierElementBase",
|
|
19368
19375
|
"module": "dist/shared/esp-element-base.js"
|
|
19369
19376
|
}
|
|
19370
19377
|
},
|
|
19371
19378
|
{
|
|
19372
|
-
"
|
|
19373
|
-
"name": "
|
|
19379
|
+
"kind": "field",
|
|
19380
|
+
"name": "warnedUnknownIntents",
|
|
19381
|
+
"privacy": "private",
|
|
19382
|
+
"readonly": true,
|
|
19383
|
+
"default": "new Set<string>()",
|
|
19374
19384
|
"inheritedFrom": {
|
|
19375
19385
|
"name": "EspalierElementBase",
|
|
19376
19386
|
"module": "dist/shared/esp-element-base.js"
|
|
19377
19387
|
}
|
|
19378
19388
|
},
|
|
19379
19389
|
{
|
|
19380
|
-
"
|
|
19381
|
-
"name": "
|
|
19390
|
+
"kind": "field",
|
|
19391
|
+
"name": "seedColor",
|
|
19392
|
+
"type": {
|
|
19393
|
+
"text": "string"
|
|
19394
|
+
},
|
|
19395
|
+
"privacy": "public",
|
|
19382
19396
|
"inheritedFrom": {
|
|
19383
19397
|
"name": "EspalierElementBase",
|
|
19384
19398
|
"module": "dist/shared/esp-element-base.js"
|
|
19385
19399
|
}
|
|
19386
19400
|
},
|
|
19387
19401
|
{
|
|
19388
|
-
"
|
|
19389
|
-
"name": "
|
|
19402
|
+
"kind": "field",
|
|
19403
|
+
"name": "correlationId",
|
|
19404
|
+
"privacy": "public",
|
|
19390
19405
|
"inheritedFrom": {
|
|
19391
19406
|
"name": "EspalierElementBase",
|
|
19392
19407
|
"module": "dist/shared/esp-element-base.js"
|
|
19393
19408
|
}
|
|
19394
19409
|
},
|
|
19395
19410
|
{
|
|
19396
|
-
"
|
|
19397
|
-
"name": "
|
|
19411
|
+
"kind": "method",
|
|
19412
|
+
"name": "focusResolvedElementAfterUpdate",
|
|
19413
|
+
"privacy": "protected",
|
|
19414
|
+
"return": {
|
|
19415
|
+
"type": {
|
|
19416
|
+
"text": "void"
|
|
19417
|
+
}
|
|
19418
|
+
},
|
|
19419
|
+
"parameters": [
|
|
19420
|
+
{
|
|
19421
|
+
"name": "resolveTarget",
|
|
19422
|
+
"type": {
|
|
19423
|
+
"text": "() => HTMLElement | null | undefined"
|
|
19424
|
+
}
|
|
19425
|
+
},
|
|
19426
|
+
{
|
|
19427
|
+
"name": "options",
|
|
19428
|
+
"optional": true,
|
|
19429
|
+
"type": {
|
|
19430
|
+
"text": "FocusOptions"
|
|
19431
|
+
}
|
|
19432
|
+
}
|
|
19433
|
+
],
|
|
19398
19434
|
"inheritedFrom": {
|
|
19399
19435
|
"name": "EspalierElementBase",
|
|
19400
19436
|
"module": "dist/shared/esp-element-base.js"
|
|
19401
19437
|
}
|
|
19402
19438
|
},
|
|
19403
19439
|
{
|
|
19404
|
-
"
|
|
19405
|
-
"name": "
|
|
19440
|
+
"kind": "method",
|
|
19441
|
+
"name": "focusShadowElementAfterUpdate",
|
|
19442
|
+
"privacy": "protected",
|
|
19443
|
+
"return": {
|
|
19444
|
+
"type": {
|
|
19445
|
+
"text": "void"
|
|
19446
|
+
}
|
|
19447
|
+
},
|
|
19448
|
+
"parameters": [
|
|
19449
|
+
{
|
|
19450
|
+
"name": "selector",
|
|
19451
|
+
"type": {
|
|
19452
|
+
"text": "string"
|
|
19453
|
+
}
|
|
19454
|
+
},
|
|
19455
|
+
{
|
|
19456
|
+
"name": "options",
|
|
19457
|
+
"optional": true,
|
|
19458
|
+
"type": {
|
|
19459
|
+
"text": "FocusOptions"
|
|
19460
|
+
}
|
|
19461
|
+
}
|
|
19462
|
+
],
|
|
19406
19463
|
"inheritedFrom": {
|
|
19407
19464
|
"name": "EspalierElementBase",
|
|
19408
19465
|
"module": "dist/shared/esp-element-base.js"
|
|
19409
19466
|
}
|
|
19410
19467
|
},
|
|
19411
19468
|
{
|
|
19412
|
-
"
|
|
19413
|
-
"name": "
|
|
19469
|
+
"kind": "method",
|
|
19470
|
+
"name": "emitValueChanged",
|
|
19471
|
+
"privacy": "protected",
|
|
19472
|
+
"return": {
|
|
19473
|
+
"type": {
|
|
19474
|
+
"text": "void"
|
|
19475
|
+
}
|
|
19476
|
+
},
|
|
19477
|
+
"parameters": [
|
|
19478
|
+
{
|
|
19479
|
+
"name": "detail",
|
|
19480
|
+
"type": {
|
|
19481
|
+
"text": "T"
|
|
19482
|
+
}
|
|
19483
|
+
}
|
|
19484
|
+
],
|
|
19414
19485
|
"inheritedFrom": {
|
|
19415
19486
|
"name": "EspalierElementBase",
|
|
19416
19487
|
"module": "dist/shared/esp-element-base.js"
|
|
19417
19488
|
}
|
|
19418
|
-
}
|
|
19419
|
-
],
|
|
19420
|
-
"cssParts": [
|
|
19421
|
-
{
|
|
19422
|
-
"description": "The panel surface.",
|
|
19423
|
-
"name": "panel"
|
|
19424
|
-
},
|
|
19425
|
-
{
|
|
19426
|
-
"description": "The heading/close-button row.",
|
|
19427
|
-
"name": "header"
|
|
19428
|
-
},
|
|
19429
|
-
{
|
|
19430
|
-
"description": "The scrollable content region wrapping the slot.",
|
|
19431
|
-
"name": "content"
|
|
19432
|
-
}
|
|
19433
|
-
],
|
|
19434
|
-
"slots": [
|
|
19435
|
-
{
|
|
19436
|
-
"description": "The flyout's content.",
|
|
19437
|
-
"name": ""
|
|
19438
|
-
}
|
|
19439
|
-
],
|
|
19440
|
-
"members": [
|
|
19441
|
-
{
|
|
19442
|
-
"kind": "field",
|
|
19443
|
-
"name": "open",
|
|
19444
|
-
"type": {
|
|
19445
|
-
"text": "boolean"
|
|
19446
|
-
},
|
|
19447
|
-
"privacy": "public",
|
|
19448
|
-
"default": "false",
|
|
19449
|
-
"description": "Whether the flyout is open. Reflected so the initial state can\nbe declared in markup; `esp-page` mirrors it (via the lifecycle\nevents and the slot) onto its own `flyout-open` attribute to\ndrive the grid.",
|
|
19450
|
-
"attribute": "open",
|
|
19451
|
-
"reflects": true
|
|
19452
|
-
},
|
|
19453
|
-
{
|
|
19454
|
-
"kind": "field",
|
|
19455
|
-
"name": "heading",
|
|
19456
|
-
"type": {
|
|
19457
|
-
"text": "string"
|
|
19458
|
-
},
|
|
19459
|
-
"privacy": "public",
|
|
19460
|
-
"default": "\"\"",
|
|
19461
|
-
"description": "Heading text for the panel's header row. Also becomes the\nflyout's accessible name unless the author set an `aria-label`.\nAn open overlay without either uses the fallback name \"Flyout\" so\nits dialog is never exposed without an accessible name.",
|
|
19462
|
-
"attribute": "heading"
|
|
19463
|
-
},
|
|
19464
|
-
{
|
|
19465
|
-
"kind": "field",
|
|
19466
|
-
"name": "mode",
|
|
19467
|
-
"type": {
|
|
19468
|
-
"text": "\"auto\" | \"overlay\""
|
|
19469
|
-
},
|
|
19470
|
-
"privacy": "public",
|
|
19471
|
-
"default": "\"auto\"",
|
|
19472
|
-
"description": "Placement behavior.\n\n- `\"auto\"` (default) — the page's placement ladder: gutter,\n docked sidebar, then overlay drawer when the complete in-grid\n minimums do not fit or below `COMPACT_VIEWPORT_MEDIA_QUERY`.\n- `\"overlay\"` — always the fixed overlay drawer, at any width.\n The page never reserves a grid track for an overlay-mode\n flyout.",
|
|
19473
|
-
"attribute": "mode",
|
|
19474
|
-
"reflects": true
|
|
19475
|
-
},
|
|
19476
|
-
{
|
|
19477
|
-
"kind": "field",
|
|
19478
|
-
"name": "anchor",
|
|
19479
|
-
"type": {
|
|
19480
|
-
"text": "HTMLElement | undefined"
|
|
19481
|
-
},
|
|
19482
|
-
"privacy": "public",
|
|
19483
|
-
"description": "Triggering element whose block-start edge the in-grid panel should\nalign with. Anchored panels size to their content when it fits, shift\nonly enough to remain visible when it does not, and keep an edge\nmarker aligned with the trigger. Overlay drawers ignore this geometry\nand remain fixed to the viewport."
|
|
19484
|
-
},
|
|
19485
|
-
{
|
|
19486
|
-
"kind": "field",
|
|
19487
|
-
"name": "fullHeight",
|
|
19488
|
-
"type": {
|
|
19489
|
-
"text": "boolean"
|
|
19490
|
-
},
|
|
19491
|
-
"privacy": "public",
|
|
19492
|
-
"default": "false",
|
|
19493
|
-
"description": "Fill the visible block-size in gutter and docked modes. The content\nregion scrolls independently. Overlay drawers already fill the viewport.",
|
|
19494
|
-
"attribute": "full-height",
|
|
19495
|
-
"reflects": true
|
|
19496
|
-
},
|
|
19497
|
-
{
|
|
19498
|
-
"kind": "field",
|
|
19499
|
-
"name": "matchSurface",
|
|
19500
|
-
"type": {
|
|
19501
|
-
"text": "boolean"
|
|
19502
|
-
},
|
|
19503
|
-
"privacy": "public",
|
|
19504
|
-
"default": "false",
|
|
19505
|
-
"description": "When set on a flyout slotted into an `esp-page`, the panel lifts\nits **trailing** edge with the page's surface edge shadow, so it\nreads as a raised peer of the content surface it flies out from\nrather than the shadowless tear-off. The **leading** edge keeps\nits dotted perforation and casts no shadow, so the panel stays\nattached at the tear line instead of floating over the content.\nThe trailing-corner radius is still `--esp-flyout-radius`. No\neffect on a standalone flyout — there is no page surface to match.",
|
|
19506
|
-
"attribute": "match-surface",
|
|
19507
|
-
"reflects": true
|
|
19508
|
-
},
|
|
19509
|
-
{
|
|
19510
|
-
"kind": "field",
|
|
19511
|
-
"name": "standalone",
|
|
19512
|
-
"type": {
|
|
19513
|
-
"text": "boolean"
|
|
19514
|
-
},
|
|
19515
|
-
"privacy": "public",
|
|
19516
|
-
"default": "false",
|
|
19517
|
-
"description": "Whether this flyout ignores the shared `showFlyout()` /\n`closeFlyout()` bus and is driven only through its own\n`show()` / `close()` / `toggle()` API.\n\nBy default a flyout services the bus, so a single flyout in a\npage \"just works\" as the target of `showFlyout()` — the same\nzero-config model as `<esp-toaster>` and `showToast()`. Anchored\nrequests resolve to one page scope according to `scope`; set\n`standalone` on flyouts that should never answer the bus.",
|
|
19518
|
-
"attribute": "standalone",
|
|
19519
|
-
"reflects": true
|
|
19520
19489
|
},
|
|
19521
19490
|
{
|
|
19522
19491
|
"kind": "field",
|
|
19523
|
-
"name": "
|
|
19492
|
+
"name": "scheme",
|
|
19524
19493
|
"type": {
|
|
19525
|
-
"text": "\"
|
|
19494
|
+
"text": "\"dark\" | \"light\""
|
|
19526
19495
|
},
|
|
19527
19496
|
"privacy": "public",
|
|
19528
|
-
"default": "\"
|
|
19529
|
-
"description": "
|
|
19530
|
-
"attribute": "
|
|
19531
|
-
"reflects": true
|
|
19497
|
+
"default": "\"light\"",
|
|
19498
|
+
"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.",
|
|
19499
|
+
"attribute": "scheme",
|
|
19500
|
+
"reflects": true,
|
|
19501
|
+
"inheritedFrom": {
|
|
19502
|
+
"name": "EspalierElementBase",
|
|
19503
|
+
"module": "dist/shared/esp-element-base.js"
|
|
19504
|
+
}
|
|
19532
19505
|
},
|
|
19533
19506
|
{
|
|
19534
19507
|
"kind": "field",
|
|
19535
|
-
"name": "
|
|
19508
|
+
"name": "intent",
|
|
19536
19509
|
"type": {
|
|
19537
|
-
"text": "
|
|
19510
|
+
"text": "EspalierIntentVariant"
|
|
19538
19511
|
},
|
|
19539
19512
|
"privacy": "public",
|
|
19540
|
-
"description": "
|
|
19541
|
-
|
|
19542
|
-
|
|
19543
|
-
"
|
|
19544
|
-
|
|
19545
|
-
|
|
19546
|
-
|
|
19547
|
-
},
|
|
19548
|
-
"privacy": "private",
|
|
19549
|
-
"description": "`returnFocusTo` captured at close time for the overlay teardown,\nwhich runs after `close()` (in `updated()`): the modal treatment\nrestores focus to the pre-open element, and this explicit target\nmust win over that."
|
|
19550
|
-
},
|
|
19551
|
-
{
|
|
19552
|
-
"kind": "field",
|
|
19553
|
-
"name": "lastGeneratedAriaLabel",
|
|
19554
|
-
"type": {
|
|
19555
|
-
"text": "string | null"
|
|
19556
|
-
},
|
|
19557
|
-
"privacy": "private",
|
|
19558
|
-
"default": "null",
|
|
19559
|
-
"description": "The last `aria-label` this component generated from `heading` or\nthe overlay fallback, or `null` if none. The flyout only rewrites\n`aria-label` when the current value is absent or still equals what\nit last generated, so a label the author sets at any time — in\nmarkup or later — wins."
|
|
19560
|
-
},
|
|
19561
|
-
{
|
|
19562
|
-
"kind": "field",
|
|
19563
|
-
"name": "boundKeydown",
|
|
19564
|
-
"privacy": "private"
|
|
19565
|
-
},
|
|
19566
|
-
{
|
|
19567
|
-
"kind": "field",
|
|
19568
|
-
"name": "boundShowRequest",
|
|
19569
|
-
"privacy": "private"
|
|
19570
|
-
},
|
|
19571
|
-
{
|
|
19572
|
-
"kind": "field",
|
|
19573
|
-
"name": "boundCloseRequest",
|
|
19574
|
-
"privacy": "private"
|
|
19575
|
-
},
|
|
19576
|
-
{
|
|
19577
|
-
"kind": "field",
|
|
19578
|
-
"name": "boundOverlayMediaChange",
|
|
19579
|
-
"privacy": "private"
|
|
19580
|
-
},
|
|
19581
|
-
{
|
|
19582
|
-
"kind": "field",
|
|
19583
|
-
"name": "boundAnchorViewportChange",
|
|
19584
|
-
"privacy": "private"
|
|
19585
|
-
},
|
|
19586
|
-
{
|
|
19587
|
-
"kind": "field",
|
|
19588
|
-
"name": "boundFullHeightRequest",
|
|
19589
|
-
"privacy": "private"
|
|
19590
|
-
},
|
|
19591
|
-
{
|
|
19592
|
-
"kind": "field",
|
|
19593
|
-
"name": "anchorGeometryFrame",
|
|
19594
|
-
"privacy": "private",
|
|
19595
|
-
"default": "new RafThrottle(() => this.syncAnchorGeometry())"
|
|
19596
|
-
},
|
|
19597
|
-
{
|
|
19598
|
-
"kind": "field",
|
|
19599
|
-
"name": "trackingAnchorPosition",
|
|
19600
|
-
"type": {
|
|
19601
|
-
"text": "boolean"
|
|
19602
|
-
},
|
|
19603
|
-
"privacy": "private",
|
|
19604
|
-
"default": "false"
|
|
19605
|
-
},
|
|
19606
|
-
{
|
|
19607
|
-
"kind": "field",
|
|
19608
|
-
"name": "anchorResizeObserver",
|
|
19609
|
-
"type": {
|
|
19610
|
-
"text": "ResizeObserver | undefined"
|
|
19611
|
-
},
|
|
19612
|
-
"privacy": "private"
|
|
19613
|
-
},
|
|
19614
|
-
{
|
|
19615
|
-
"kind": "field",
|
|
19616
|
-
"name": "observedAnchorPanel",
|
|
19617
|
-
"type": {
|
|
19618
|
-
"text": "HTMLElement | undefined"
|
|
19619
|
-
},
|
|
19620
|
-
"privacy": "private"
|
|
19621
|
-
},
|
|
19622
|
-
{
|
|
19623
|
-
"kind": "field",
|
|
19624
|
-
"name": "busSubscribed",
|
|
19625
|
-
"type": {
|
|
19626
|
-
"text": "boolean"
|
|
19627
|
-
},
|
|
19628
|
-
"privacy": "private",
|
|
19629
|
-
"default": "false",
|
|
19630
|
-
"description": "Whether the bus handlers are currently registered. EspBus does\nnot dedupe subscriptions, so this guards against double-adds."
|
|
19631
|
-
},
|
|
19632
|
-
{
|
|
19633
|
-
"kind": "field",
|
|
19634
|
-
"name": "panelRef",
|
|
19635
|
-
"privacy": "private"
|
|
19636
|
-
},
|
|
19637
|
-
{
|
|
19638
|
-
"kind": "field",
|
|
19639
|
-
"name": "overlay",
|
|
19640
|
-
"privacy": "private",
|
|
19641
|
-
"default": "new OverlayController({ host: this, getFocusTrapContainer: () => this.panelRef.value ?? null, getFocusFallback: () => this.panelRef.value ?? null, promote: false, })",
|
|
19642
|
-
"description": "Modal treatment for the overlay-drawer presentation only. It does\nnot promote out of the page slot, so the flyout keeps its grid\nplacement and `esp-flyout-state-changed` sync; inert anchors on the\nflyout's own position, making its page siblings inert."
|
|
19643
|
-
},
|
|
19644
|
-
{
|
|
19645
|
-
"kind": "field",
|
|
19646
|
-
"name": "overlayMediaQuery",
|
|
19647
|
-
"type": {
|
|
19648
|
-
"text": "MediaQueryList | undefined"
|
|
19649
|
-
},
|
|
19650
|
-
"privacy": "private",
|
|
19651
|
-
"description": "Media query matching the overlay-drawer viewport range."
|
|
19652
|
-
},
|
|
19653
|
-
{
|
|
19654
|
-
"kind": "field",
|
|
19655
|
-
"name": "overlayActive",
|
|
19656
|
-
"type": {
|
|
19657
|
-
"text": "boolean"
|
|
19658
|
-
},
|
|
19659
|
-
"privacy": "private",
|
|
19660
|
-
"default": "false",
|
|
19661
|
-
"description": "Whether the modal (overlay) treatment is currently applied."
|
|
19662
|
-
},
|
|
19663
|
-
{
|
|
19664
|
-
"kind": "field",
|
|
19665
|
-
"name": "baseRole",
|
|
19666
|
-
"type": {
|
|
19667
|
-
"text": "string"
|
|
19668
|
-
},
|
|
19669
|
-
"privacy": "private",
|
|
19670
|
-
"default": "\"complementary\"",
|
|
19671
|
-
"description": "The landmark role to restore when leaving the overlay treatment\n(the author's role, or the default `complementary`)."
|
|
19513
|
+
"description": "The element's [intent](/espalier-guides/) — its meaning: `neutral`\n(no pin), or `success`, `warning`, `danger`, `info` — each pinned\nto its fixed status family (blue for `info`), retunable per theme\nvia `intents`. On token-emitting controls a non-neutral intent pins the\nfilled-action pair to that family, derived over the governing\nzone's theme; class-styled chrome (badges, callouts, status pills)\nopts out of inline emission and renders its treatment from CSS\nclasses instead. An intent never repaints the surrounding zone,\nwhich is what contexts are for. Removing the attribute restores\nthe element's own default intent.",
|
|
19514
|
+
"attribute": "intent",
|
|
19515
|
+
"reflects": true,
|
|
19516
|
+
"inheritedFrom": {
|
|
19517
|
+
"name": "EspalierElementBase",
|
|
19518
|
+
"module": "dist/shared/esp-element-base.js"
|
|
19519
|
+
}
|
|
19672
19520
|
},
|
|
19673
19521
|
{
|
|
19674
19522
|
"kind": "field",
|
|
19675
|
-
"name": "
|
|
19523
|
+
"name": "context",
|
|
19676
19524
|
"type": {
|
|
19677
|
-
"text": "
|
|
19678
|
-
},
|
|
19679
|
-
"privacy": "
|
|
19680
|
-
"description": "
|
|
19681
|
-
"
|
|
19682
|
-
|
|
19683
|
-
|
|
19684
|
-
|
|
19685
|
-
|
|
19686
|
-
"privacy": "private",
|
|
19687
|
-
"return": {
|
|
19688
|
-
"type": {
|
|
19689
|
-
"text": "void"
|
|
19690
|
-
}
|
|
19691
|
-
},
|
|
19692
|
-
"description": "Subscribe to the shared bus unless `standalone`; idempotent so\nit is safe to call from both connect and a `standalone` change."
|
|
19693
|
-
},
|
|
19694
|
-
{
|
|
19695
|
-
"kind": "method",
|
|
19696
|
-
"name": "unsubscribeBus",
|
|
19697
|
-
"privacy": "private",
|
|
19698
|
-
"return": {
|
|
19699
|
-
"type": {
|
|
19700
|
-
"text": "void"
|
|
19701
|
-
}
|
|
19525
|
+
"text": "string"
|
|
19526
|
+
},
|
|
19527
|
+
"privacy": "public",
|
|
19528
|
+
"description": "A theme-defined color zone. The selected context rebinds designer-facing\nroles and emits a complete, contrast-enforced semantic token table on this\nhost for descendants to inherit.",
|
|
19529
|
+
"attribute": "context",
|
|
19530
|
+
"reflects": true,
|
|
19531
|
+
"inheritedFrom": {
|
|
19532
|
+
"name": "EspalierElementBase",
|
|
19533
|
+
"module": "dist/shared/esp-element-base.js"
|
|
19702
19534
|
}
|
|
19703
19535
|
},
|
|
19704
19536
|
{
|
|
19705
19537
|
"kind": "method",
|
|
19706
|
-
"name": "
|
|
19707
|
-
"privacy": "
|
|
19538
|
+
"name": "refreshDescendantIntentDerivations",
|
|
19539
|
+
"privacy": "private",
|
|
19708
19540
|
"return": {
|
|
19709
19541
|
"type": {
|
|
19710
19542
|
"text": "void"
|
|
19711
19543
|
}
|
|
19712
19544
|
},
|
|
19713
|
-
"description": "
|
|
19545
|
+
"description": "A zone rebinding must reach descendants whose intent pairs derive\nover it. Root-level changes arrive over the bus, but the context\nattribute is plain DOM state with no bus event, so the zone host\nwalks its FLATTENED subtree — crossing open shadow roots and\nfollowing slot assignment, the tree its table cascades along — and\nlets each Espalier descendant re-apply against the current\nancestry. Idempotent for hosts this zone doesn't govern; the\nvisited set guards the slot/light diamond (a host's light children\nare also its slots' assigned elements).",
|
|
19546
|
+
"inheritedFrom": {
|
|
19547
|
+
"name": "EspalierElementBase",
|
|
19548
|
+
"module": "dist/shared/esp-element-base.js"
|
|
19549
|
+
}
|
|
19714
19550
|
},
|
|
19715
19551
|
{
|
|
19716
19552
|
"kind": "method",
|
|
19717
|
-
"name": "
|
|
19718
|
-
"privacy": "
|
|
19553
|
+
"name": "resolveAncestorZoneTheme",
|
|
19554
|
+
"privacy": "private",
|
|
19719
19555
|
"return": {
|
|
19720
19556
|
"type": {
|
|
19721
|
-
"text": "
|
|
19557
|
+
"text": "EspalierTheme | null"
|
|
19722
19558
|
}
|
|
19723
19559
|
},
|
|
19724
19560
|
"parameters": [
|
|
19725
19561
|
{
|
|
19726
|
-
"name": "
|
|
19727
|
-
"default": "\"programmatic\"",
|
|
19562
|
+
"name": "activeTheme",
|
|
19728
19563
|
"type": {
|
|
19729
|
-
"text": "
|
|
19564
|
+
"text": "EspalierTheme"
|
|
19730
19565
|
}
|
|
19731
19566
|
}
|
|
19732
19567
|
],
|
|
19733
|
-
"description": "
|
|
19734
|
-
|
|
19735
|
-
|
|
19736
|
-
|
|
19737
|
-
|
|
19738
|
-
"privacy": "public",
|
|
19739
|
-
"return": {
|
|
19740
|
-
"type": {
|
|
19741
|
-
"text": "void"
|
|
19742
|
-
}
|
|
19743
|
-
},
|
|
19744
|
-
"description": "Toggle the flyout between open and closed."
|
|
19568
|
+
"description": "The nearest ancestor zone the active theme can actually compile,\nwalking the flattened tree — through assigned slots and out of\nshadow roots — because that is the tree the zone's emitted table\ncascades along: a consumer shell may declare its zone around a\n`<slot>` inside its own shadow. A zone host with an unresolvable\ncontext emits nothing and inherits the next zone out, so unknown\nnames are skipped rather than collapsed to the root theme. Bounded\nby this element's esp-root.",
|
|
19569
|
+
"inheritedFrom": {
|
|
19570
|
+
"name": "EspalierElementBase",
|
|
19571
|
+
"module": "dist/shared/esp-element-base.js"
|
|
19572
|
+
}
|
|
19745
19573
|
},
|
|
19746
19574
|
{
|
|
19747
19575
|
"kind": "method",
|
|
19748
|
-
"name": "
|
|
19749
|
-
"privacy": "
|
|
19576
|
+
"name": "governingRootChanged",
|
|
19577
|
+
"privacy": "protected",
|
|
19750
19578
|
"return": {
|
|
19751
19579
|
"type": {
|
|
19752
19580
|
"text": "void"
|
|
@@ -19754,231 +19582,464 @@
|
|
|
19754
19582
|
},
|
|
19755
19583
|
"parameters": [
|
|
19756
19584
|
{
|
|
19757
|
-
"name": "
|
|
19585
|
+
"name": "_root",
|
|
19758
19586
|
"type": {
|
|
19759
|
-
"text": "
|
|
19587
|
+
"text": "EspalierRoot | null"
|
|
19760
19588
|
}
|
|
19761
19589
|
}
|
|
19762
19590
|
],
|
|
19763
|
-
"description": "
|
|
19591
|
+
"description": "Called when this host gains, loses or changes its nearest root.",
|
|
19592
|
+
"inheritedFrom": {
|
|
19593
|
+
"name": "EspalierElementBase",
|
|
19594
|
+
"module": "dist/shared/esp-element-base.js"
|
|
19595
|
+
}
|
|
19764
19596
|
},
|
|
19765
19597
|
{
|
|
19766
19598
|
"kind": "method",
|
|
19767
|
-
"name": "
|
|
19599
|
+
"name": "syncRootMetadata",
|
|
19768
19600
|
"privacy": "private",
|
|
19769
19601
|
"return": {
|
|
19770
19602
|
"type": {
|
|
19771
|
-
"text": "
|
|
19603
|
+
"text": "void"
|
|
19772
19604
|
}
|
|
19773
19605
|
},
|
|
19774
19606
|
"parameters": [
|
|
19775
19607
|
{
|
|
19776
|
-
"name": "
|
|
19608
|
+
"name": "root",
|
|
19777
19609
|
"type": {
|
|
19778
|
-
"text": "
|
|
19610
|
+
"text": "EspalierRoot"
|
|
19779
19611
|
}
|
|
19780
19612
|
}
|
|
19781
|
-
]
|
|
19613
|
+
],
|
|
19614
|
+
"inheritedFrom": {
|
|
19615
|
+
"name": "EspalierElementBase",
|
|
19616
|
+
"module": "dist/shared/esp-element-base.js"
|
|
19617
|
+
}
|
|
19782
19618
|
},
|
|
19783
19619
|
{
|
|
19784
|
-
"kind": "
|
|
19785
|
-
"name": "
|
|
19620
|
+
"kind": "field",
|
|
19621
|
+
"name": "applyReadyRoot",
|
|
19786
19622
|
"privacy": "private",
|
|
19787
|
-
"
|
|
19788
|
-
|
|
19789
|
-
|
|
19790
|
-
|
|
19791
|
-
}
|
|
19792
|
-
"parameters": [
|
|
19793
|
-
{
|
|
19794
|
-
"name": "from",
|
|
19795
|
-
"type": {
|
|
19796
|
-
"text": "Element"
|
|
19797
|
-
}
|
|
19798
|
-
}
|
|
19799
|
-
]
|
|
19623
|
+
"readonly": true,
|
|
19624
|
+
"inheritedFrom": {
|
|
19625
|
+
"name": "EspalierElementBase",
|
|
19626
|
+
"module": "dist/shared/esp-element-base.js"
|
|
19627
|
+
}
|
|
19800
19628
|
},
|
|
19801
19629
|
{
|
|
19802
19630
|
"kind": "method",
|
|
19803
|
-
"name": "
|
|
19631
|
+
"name": "applyTokensWhenRootReady",
|
|
19804
19632
|
"privacy": "private",
|
|
19805
19633
|
"return": {
|
|
19806
19634
|
"type": {
|
|
19807
|
-
"text": "
|
|
19635
|
+
"text": "void"
|
|
19808
19636
|
}
|
|
19809
19637
|
},
|
|
19810
|
-
"
|
|
19811
|
-
|
|
19812
|
-
|
|
19813
|
-
|
|
19814
|
-
"text": "HTMLElement"
|
|
19815
|
-
}
|
|
19816
|
-
}
|
|
19817
|
-
]
|
|
19638
|
+
"inheritedFrom": {
|
|
19639
|
+
"name": "EspalierElementBase",
|
|
19640
|
+
"module": "dist/shared/esp-element-base.js"
|
|
19641
|
+
}
|
|
19818
19642
|
},
|
|
19819
19643
|
{
|
|
19820
19644
|
"kind": "method",
|
|
19821
|
-
"name": "
|
|
19822
|
-
"privacy": "
|
|
19645
|
+
"name": "traverseToClosest",
|
|
19646
|
+
"privacy": "public",
|
|
19823
19647
|
"return": {
|
|
19824
19648
|
"type": {
|
|
19825
|
-
"text": "
|
|
19649
|
+
"text": ""
|
|
19826
19650
|
}
|
|
19827
19651
|
},
|
|
19828
19652
|
"parameters": [
|
|
19829
19653
|
{
|
|
19830
|
-
"name": "
|
|
19654
|
+
"name": "selector",
|
|
19831
19655
|
"type": {
|
|
19832
|
-
"text": "
|
|
19833
|
-
}
|
|
19656
|
+
"text": "string"
|
|
19657
|
+
},
|
|
19658
|
+
"description": "The selector of the element to look for"
|
|
19834
19659
|
}
|
|
19835
|
-
]
|
|
19660
|
+
],
|
|
19661
|
+
"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.",
|
|
19662
|
+
"inheritedFrom": {
|
|
19663
|
+
"name": "EspalierElementBase",
|
|
19664
|
+
"module": "dist/shared/esp-element-base.js"
|
|
19665
|
+
}
|
|
19836
19666
|
},
|
|
19837
19667
|
{
|
|
19838
|
-
"kind": "
|
|
19839
|
-
"name": "
|
|
19668
|
+
"kind": "field",
|
|
19669
|
+
"name": "intentColorSources",
|
|
19670
|
+
"type": {
|
|
19671
|
+
"text": "Readonly<\n Record<EspalierIntentVariant, ColorSource | \"\">\n >"
|
|
19672
|
+
},
|
|
19840
19673
|
"privacy": "private",
|
|
19841
|
-
"
|
|
19842
|
-
|
|
19843
|
-
|
|
19844
|
-
|
|
19674
|
+
"static": true,
|
|
19675
|
+
"readonly": true,
|
|
19676
|
+
"default": "{ danger: \"danger\", info: \"info\", neutral: \"\", success: \"success\", warning: \"warning\", }",
|
|
19677
|
+
"description": "Intent color sources: the meaning-bearing families an intent pins\nthe filled-action pair to. `neutral` pins nothing; each other\nintent maps to its own fixed status family (ESP0172 gave `info` a\nreal blue family, replacing the complementary borrow the retired\nvariant system used), and a theme's `intents` field retunes the\nfamily colors themselves.",
|
|
19678
|
+
"inheritedFrom": {
|
|
19679
|
+
"name": "EspalierElementBase",
|
|
19680
|
+
"module": "dist/shared/esp-element-base.js"
|
|
19845
19681
|
}
|
|
19846
19682
|
},
|
|
19847
19683
|
{
|
|
19848
|
-
"kind": "
|
|
19849
|
-
"name": "
|
|
19684
|
+
"kind": "field",
|
|
19685
|
+
"name": "semanticActionTokens",
|
|
19686
|
+
"type": {
|
|
19687
|
+
"text": "ReadonlySet<SemanticColorName>"
|
|
19688
|
+
},
|
|
19850
19689
|
"privacy": "private",
|
|
19690
|
+
"static": true,
|
|
19691
|
+
"readonly": true,
|
|
19692
|
+
"default": "new Set<SemanticColorName>([\"actionBackground\", \"actionText\"])",
|
|
19693
|
+
"description": "Semantic tokens that paint a control's filled action surface — the\npair an intent recolors. Everything else inherits the zone cascade,\nwhich is the ESP0166 fix: under the SHY fitted theme the retired\nvariant re-seeding painted a danger callout's *background* mint\ngreen; an intent leaves the zone's surfaces alone and pins only the\naction pair (plus `--esp-color-primary` for state derivations) to\nthe intent's own status family — fixed hues by default, retunable\nper theme via `intents`. Task 098's\nguarantee survives structurally: the\npin is by source, so no theme mapping can rotate a destructive /\nwarning / positive action off its semantic hue.",
|
|
19694
|
+
"inheritedFrom": {
|
|
19695
|
+
"name": "EspalierElementBase",
|
|
19696
|
+
"module": "dist/shared/esp-element-base.js"
|
|
19697
|
+
}
|
|
19698
|
+
},
|
|
19699
|
+
{
|
|
19700
|
+
"kind": "method",
|
|
19701
|
+
"name": "applyScopedColorTokens",
|
|
19702
|
+
"privacy": "protected",
|
|
19851
19703
|
"return": {
|
|
19852
19704
|
"type": {
|
|
19853
19705
|
"text": "void"
|
|
19854
19706
|
}
|
|
19855
19707
|
},
|
|
19856
|
-
"description": "
|
|
19708
|
+
"description": "Compute and apply context- and intent-specific semantic color tokens.\n\nWith no context and a `neutral` intent, all semantic tokens cascade\nfrom `<esp-root>` and previous overrides are cleared. A context\nemits the zone's complete twenty-three-token table; a non-neutral intent\nthen overlays the filled-action pair, derived over the governing\nzone's theme — this host's own context, or the nearest ancestor\nzone's — so its APCA enforcement runs against the zone's actual\naction surface.",
|
|
19709
|
+
"inheritedFrom": {
|
|
19710
|
+
"name": "EspalierElementBase",
|
|
19711
|
+
"module": "dist/shared/esp-element-base.js"
|
|
19712
|
+
}
|
|
19857
19713
|
},
|
|
19858
19714
|
{
|
|
19859
19715
|
"kind": "method",
|
|
19860
|
-
"name": "
|
|
19716
|
+
"name": "resolveContextTheme",
|
|
19861
19717
|
"privacy": "private",
|
|
19862
19718
|
"return": {
|
|
19863
19719
|
"type": {
|
|
19864
|
-
"text": "{
|
|
19720
|
+
"text": "{ applied: false; theme: EspalierTheme } | { applied: true; name: string; theme: EspalierTheme }"
|
|
19865
19721
|
}
|
|
19866
19722
|
},
|
|
19867
|
-
"
|
|
19723
|
+
"parameters": [
|
|
19724
|
+
{
|
|
19725
|
+
"name": "theme",
|
|
19726
|
+
"type": {
|
|
19727
|
+
"text": "EspalierTheme"
|
|
19728
|
+
}
|
|
19729
|
+
}
|
|
19730
|
+
],
|
|
19731
|
+
"description": "Resolve this host's own context name over the active root theme.",
|
|
19732
|
+
"inheritedFrom": {
|
|
19733
|
+
"name": "EspalierElementBase",
|
|
19734
|
+
"module": "dist/shared/esp-element-base.js"
|
|
19735
|
+
}
|
|
19868
19736
|
},
|
|
19869
19737
|
{
|
|
19870
19738
|
"kind": "method",
|
|
19871
|
-
"name": "
|
|
19739
|
+
"name": "warnUnknownContextWhenSettled",
|
|
19872
19740
|
"privacy": "private",
|
|
19873
19741
|
"return": {
|
|
19874
19742
|
"type": {
|
|
19875
|
-
"text": "
|
|
19743
|
+
"text": "void"
|
|
19876
19744
|
}
|
|
19877
19745
|
},
|
|
19878
19746
|
"parameters": [
|
|
19879
19747
|
{
|
|
19880
|
-
"name": "
|
|
19748
|
+
"name": "name",
|
|
19881
19749
|
"type": {
|
|
19882
|
-
"text": "
|
|
19750
|
+
"text": "string"
|
|
19883
19751
|
}
|
|
19884
19752
|
}
|
|
19885
|
-
]
|
|
19753
|
+
],
|
|
19754
|
+
"description": "Warn about an unknown context only once the root's theme has\nsettled (ESP0177).\n\nA script-mounted theme lands after its descendants first render, so\na zone naming a context the theme *does* define would otherwise\nwarn about a state that was never rendered to anyone. Waiting for\nthe root to settle — an author theme resolved, or the pre-theme\nwindow closed with none — makes the warning describe the settled\ntheme instead of a transient one. It is deferred, never dropped: a\ngenuinely missing context still warns, just after the window.",
|
|
19755
|
+
"inheritedFrom": {
|
|
19756
|
+
"name": "EspalierElementBase",
|
|
19757
|
+
"module": "dist/shared/esp-element-base.js"
|
|
19758
|
+
}
|
|
19886
19759
|
},
|
|
19887
19760
|
{
|
|
19888
19761
|
"kind": "method",
|
|
19889
|
-
"name": "
|
|
19762
|
+
"name": "resolveNamedContextTheme",
|
|
19890
19763
|
"privacy": "private",
|
|
19891
19764
|
"return": {
|
|
19892
19765
|
"type": {
|
|
19893
|
-
"text": "
|
|
19766
|
+
"text": "EspalierTheme | null"
|
|
19894
19767
|
}
|
|
19895
19768
|
},
|
|
19896
19769
|
"parameters": [
|
|
19897
19770
|
{
|
|
19898
|
-
"name": "
|
|
19771
|
+
"name": "theme",
|
|
19899
19772
|
"type": {
|
|
19900
|
-
"text": "
|
|
19773
|
+
"text": "EspalierTheme"
|
|
19901
19774
|
}
|
|
19902
19775
|
},
|
|
19903
19776
|
{
|
|
19904
|
-
"name": "
|
|
19777
|
+
"name": "name",
|
|
19905
19778
|
"type": {
|
|
19906
19779
|
"text": "string"
|
|
19907
19780
|
}
|
|
19908
19781
|
}
|
|
19909
|
-
]
|
|
19782
|
+
],
|
|
19783
|
+
"description": "Compile a named context's theme, or null when the theme doesn't\ndefine it. Delegates to the exported compiler so a DOM-less consumer\n(the fit-report suite, a check script) inspects exactly the theme a\nzone host renders — the drift this shared path exists to prevent\n(ESP0175).",
|
|
19784
|
+
"inheritedFrom": {
|
|
19785
|
+
"name": "EspalierElementBase",
|
|
19786
|
+
"module": "dist/shared/esp-element-base.js"
|
|
19787
|
+
}
|
|
19788
|
+
}
|
|
19789
|
+
],
|
|
19790
|
+
"events": [
|
|
19791
|
+
{
|
|
19792
|
+
"type": {
|
|
19793
|
+
"text": "CustomEvent<{}>"
|
|
19794
|
+
},
|
|
19795
|
+
"description": "Fired by `show()` when the flyout opens.",
|
|
19796
|
+
"name": "esp-flyout-opened"
|
|
19910
19797
|
},
|
|
19911
19798
|
{
|
|
19912
|
-
"
|
|
19913
|
-
|
|
19914
|
-
|
|
19915
|
-
"
|
|
19916
|
-
|
|
19917
|
-
"text": "void"
|
|
19918
|
-
}
|
|
19919
|
-
}
|
|
19799
|
+
"type": {
|
|
19800
|
+
"text": "CustomEvent<{reason: FlyoutCloseReason}>"
|
|
19801
|
+
},
|
|
19802
|
+
"description": "Fired by `close()` when the flyout closes. `reason` is `\"escape\"`, `\"vellum\"`, `\"button\"`, or `\"programmatic\"`.",
|
|
19803
|
+
"name": "esp-flyout-closed"
|
|
19920
19804
|
},
|
|
19921
19805
|
{
|
|
19922
|
-
"
|
|
19923
|
-
|
|
19924
|
-
|
|
19925
|
-
"
|
|
19926
|
-
|
|
19927
|
-
|
|
19928
|
-
|
|
19806
|
+
"type": {
|
|
19807
|
+
"text": "CustomEvent<{}>"
|
|
19808
|
+
},
|
|
19809
|
+
"description": "Fired on every `open`, `mode`, or `anchor` change, including direct property assignment (not just `show()`/`close()`). `esp-page` uses it to keep its layout in sync; most consumers want `esp-flyout-opened`/`esp-flyout-closed` instead.",
|
|
19810
|
+
"name": "esp-flyout-state-changed"
|
|
19811
|
+
}
|
|
19812
|
+
],
|
|
19813
|
+
"attributes": [
|
|
19814
|
+
{
|
|
19815
|
+
"name": "open",
|
|
19816
|
+
"type": {
|
|
19817
|
+
"text": "boolean"
|
|
19818
|
+
},
|
|
19819
|
+
"default": "false",
|
|
19820
|
+
"description": "Whether the flyout is open. Reflected so the initial state can\nbe declared in markup; `esp-page` mirrors it (via the lifecycle\nevents and the slot) onto its own `flyout-open` attribute to\ndrive the grid.",
|
|
19821
|
+
"fieldName": "open"
|
|
19822
|
+
},
|
|
19823
|
+
{
|
|
19824
|
+
"name": "heading",
|
|
19825
|
+
"type": {
|
|
19826
|
+
"text": "string"
|
|
19827
|
+
},
|
|
19828
|
+
"default": "\"\"",
|
|
19829
|
+
"description": "Heading text for the panel's header row. Also becomes the\nflyout's accessible name unless the author set an `aria-label`.\nAn open overlay without either uses the fallback name \"Flyout\" so\nits dialog is never exposed without an accessible name.",
|
|
19830
|
+
"fieldName": "heading"
|
|
19831
|
+
},
|
|
19832
|
+
{
|
|
19833
|
+
"name": "mode",
|
|
19834
|
+
"type": {
|
|
19835
|
+
"text": "\"auto\" | \"overlay\""
|
|
19836
|
+
},
|
|
19837
|
+
"default": "\"auto\"",
|
|
19838
|
+
"description": "Placement behavior.\n\n- `\"auto\"` (default) — the page's placement ladder: gutter,\n docked sidebar, then overlay drawer when the complete in-grid\n minimums do not fit or below `COMPACT_VIEWPORT_MEDIA_QUERY`.\n- `\"overlay\"` — always the fixed overlay drawer, at any width.\n The page never reserves a grid track for an overlay-mode\n flyout.",
|
|
19839
|
+
"fieldName": "mode"
|
|
19840
|
+
},
|
|
19841
|
+
{
|
|
19842
|
+
"name": "full-height",
|
|
19843
|
+
"type": {
|
|
19844
|
+
"text": "boolean"
|
|
19845
|
+
},
|
|
19846
|
+
"default": "false",
|
|
19847
|
+
"description": "Fill the visible block-size in gutter and docked modes. The content\nregion scrolls independently. Overlay drawers already fill the viewport.",
|
|
19848
|
+
"fieldName": "fullHeight"
|
|
19849
|
+
},
|
|
19850
|
+
{
|
|
19851
|
+
"name": "match-surface",
|
|
19852
|
+
"type": {
|
|
19853
|
+
"text": "boolean"
|
|
19854
|
+
},
|
|
19855
|
+
"default": "false",
|
|
19856
|
+
"description": "When set on a flyout slotted into an `esp-page`, the panel lifts\nits **trailing** edge with the page's surface edge shadow, so it\nreads as a raised peer of the content surface it flies out from\nrather than the shadowless tear-off. The **leading** edge keeps\nits dotted perforation and casts no shadow, so the panel stays\nattached at the tear line instead of floating over the content.\nThe trailing-corner radius is still `--esp-flyout-radius`. No\neffect on a standalone flyout — there is no page surface to match.",
|
|
19857
|
+
"fieldName": "matchSurface"
|
|
19858
|
+
},
|
|
19859
|
+
{
|
|
19860
|
+
"name": "standalone",
|
|
19861
|
+
"type": {
|
|
19862
|
+
"text": "boolean"
|
|
19863
|
+
},
|
|
19864
|
+
"default": "false",
|
|
19865
|
+
"description": "Whether this flyout ignores the shared `showFlyout()` /\n`closeFlyout()` bus and is driven only through its own\n`show()` / `close()` / `toggle()` API.\n\nBy default a flyout services the bus, so a single flyout in a\npage \"just works\" as the target of `showFlyout()` — the same\nzero-config model as `<esp-toaster>` and `showToast()`. Anchored\nrequests resolve to one page scope according to `scope`; set\n`standalone` on flyouts that should never answer the bus.",
|
|
19866
|
+
"fieldName": "standalone"
|
|
19867
|
+
},
|
|
19868
|
+
{
|
|
19869
|
+
"name": "scope",
|
|
19870
|
+
"type": {
|
|
19871
|
+
"text": "\"outermost\" | \"nearest\""
|
|
19872
|
+
},
|
|
19873
|
+
"default": "\"outermost\"",
|
|
19874
|
+
"description": "Which containing page owns anchored bus requests.\n\n- `\"outermost\"` (default) routes to the flyout in the outermost\n `esp-page` containing the request trigger.\n- `\"nearest\"` explicitly gives this flyout precedence for requests\n originating in its own page or nested descendants.\n\nA `scope=\"nearest\"` flyout must be a light-DOM descendant of the\n`esp-page` whose requests it owns so that page can discover it.\n\nRequests without an `anchor` or `returnFocusTo` have no local context,\nso only outermost page flyouts service them. Use the instance API for\na directly controlled nested flyout.",
|
|
19875
|
+
"fieldName": "scope"
|
|
19876
|
+
},
|
|
19877
|
+
{
|
|
19878
|
+
"type": {
|
|
19879
|
+
"text": "\"1\"|\"2\"|\"3\"|\"4\""
|
|
19880
|
+
},
|
|
19881
|
+
"description": "Declares the painted surface depth. Fields use the next local layer, capped at layer 4.",
|
|
19882
|
+
"name": "surface-layer",
|
|
19883
|
+
"inheritedFrom": {
|
|
19884
|
+
"name": "EspalierElementBase",
|
|
19885
|
+
"module": "dist/shared/esp-element-base.js"
|
|
19929
19886
|
}
|
|
19930
19887
|
},
|
|
19931
19888
|
{
|
|
19932
|
-
"
|
|
19933
|
-
"
|
|
19934
|
-
|
|
19935
|
-
|
|
19936
|
-
|
|
19937
|
-
|
|
19938
|
-
|
|
19889
|
+
"name": "scheme",
|
|
19890
|
+
"type": {
|
|
19891
|
+
"text": "\"dark\" | \"light\""
|
|
19892
|
+
},
|
|
19893
|
+
"default": "\"light\"",
|
|
19894
|
+
"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.",
|
|
19895
|
+
"fieldName": "scheme",
|
|
19896
|
+
"inheritedFrom": {
|
|
19897
|
+
"name": "EspalierElementBase",
|
|
19898
|
+
"module": "dist/shared/esp-element-base.js"
|
|
19939
19899
|
}
|
|
19940
19900
|
},
|
|
19941
19901
|
{
|
|
19942
|
-
"
|
|
19943
|
-
"
|
|
19944
|
-
|
|
19945
|
-
|
|
19946
|
-
|
|
19947
|
-
|
|
19948
|
-
|
|
19902
|
+
"name": "intent",
|
|
19903
|
+
"type": {
|
|
19904
|
+
"text": "EspalierIntentVariant"
|
|
19905
|
+
},
|
|
19906
|
+
"description": "The element's [intent](/espalier-guides/) — its meaning: `neutral`\n(no pin), or `success`, `warning`, `danger`, `info` — each pinned\nto its fixed status family (blue for `info`), retunable per theme\nvia `intents`. On token-emitting controls a non-neutral intent pins the\nfilled-action pair to that family, derived over the governing\nzone's theme; class-styled chrome (badges, callouts, status pills)\nopts out of inline emission and renders its treatment from CSS\nclasses instead. An intent never repaints the surrounding zone,\nwhich is what contexts are for. Removing the attribute restores\nthe element's own default intent.",
|
|
19907
|
+
"fieldName": "intent",
|
|
19908
|
+
"inheritedFrom": {
|
|
19909
|
+
"name": "EspalierElementBase",
|
|
19910
|
+
"module": "dist/shared/esp-element-base.js"
|
|
19949
19911
|
}
|
|
19950
19912
|
},
|
|
19951
19913
|
{
|
|
19952
|
-
"
|
|
19953
|
-
"
|
|
19954
|
-
|
|
19955
|
-
|
|
19956
|
-
|
|
19957
|
-
|
|
19958
|
-
|
|
19914
|
+
"name": "context",
|
|
19915
|
+
"type": {
|
|
19916
|
+
"text": "string"
|
|
19917
|
+
},
|
|
19918
|
+
"description": "A theme-defined color zone. The selected context rebinds designer-facing\nroles and emits a complete, contrast-enforced semantic token table on this\nhost for descendants to inherit.",
|
|
19919
|
+
"fieldName": "context",
|
|
19920
|
+
"inheritedFrom": {
|
|
19921
|
+
"name": "EspalierElementBase",
|
|
19922
|
+
"module": "dist/shared/esp-element-base.js"
|
|
19959
19923
|
}
|
|
19924
|
+
}
|
|
19925
|
+
],
|
|
19926
|
+
"superclass": {
|
|
19927
|
+
"name": "EspalierElementBase",
|
|
19928
|
+
"module": "dist/shared/esp-element-base.js"
|
|
19929
|
+
},
|
|
19930
|
+
"docPageTitle": {
|
|
19931
|
+
"name": "Flyout",
|
|
19932
|
+
"description": ""
|
|
19933
|
+
},
|
|
19934
|
+
"docUrl": {
|
|
19935
|
+
"name": "/components/flyout",
|
|
19936
|
+
"description": ""
|
|
19937
|
+
},
|
|
19938
|
+
"menuGroup": {
|
|
19939
|
+
"name": "Structure",
|
|
19940
|
+
"description": ""
|
|
19941
|
+
},
|
|
19942
|
+
"menuOrder": {
|
|
19943
|
+
"name": "3",
|
|
19944
|
+
"description": ""
|
|
19945
|
+
},
|
|
19946
|
+
"menuLabel": {
|
|
19947
|
+
"name": "Flyout",
|
|
19948
|
+
"description": ""
|
|
19949
|
+
},
|
|
19950
|
+
"menuIcon": {
|
|
19951
|
+
"name": "layout",
|
|
19952
|
+
"description": ""
|
|
19953
|
+
},
|
|
19954
|
+
"tagName": "esp-flyout",
|
|
19955
|
+
"customElement": true
|
|
19956
|
+
}
|
|
19957
|
+
],
|
|
19958
|
+
"exports": [
|
|
19959
|
+
{
|
|
19960
|
+
"kind": "js",
|
|
19961
|
+
"name": "EspalierFlyout",
|
|
19962
|
+
"declaration": {
|
|
19963
|
+
"name": "EspalierFlyout",
|
|
19964
|
+
"module": "dist/flyout/esp-flyout.js"
|
|
19965
|
+
}
|
|
19966
|
+
},
|
|
19967
|
+
{
|
|
19968
|
+
"kind": "custom-element-definition",
|
|
19969
|
+
"name": "esp-flyout",
|
|
19970
|
+
"declaration": {
|
|
19971
|
+
"name": "EspalierFlyout",
|
|
19972
|
+
"module": "dist/flyout/esp-flyout.js"
|
|
19973
|
+
}
|
|
19974
|
+
}
|
|
19975
|
+
]
|
|
19976
|
+
},
|
|
19977
|
+
{
|
|
19978
|
+
"kind": "javascript-module",
|
|
19979
|
+
"path": "dist/file-upload/esp-file-upload.js",
|
|
19980
|
+
"declarations": [
|
|
19981
|
+
{
|
|
19982
|
+
"kind": "class",
|
|
19983
|
+
"description": "Used to upload files.\n\n```html\n<esp-file-upload choose-text=\"Upload Document\"></esp-file-upload>\n<script>\n const theFileUpload = findByTagName(\"esp-file-upload\")[0];\n theFileUpload.addEventListener(\"esp-file-upload-files-selected\", () => {\n showToast({\n message: `You selected a file!`,\n icon: \"info-i\",\n duration: 2,\n onClosed: () => {\n theFileUpload.finishedProcessingFiles();\n },\n });\n });\n</script>\n```",
|
|
19984
|
+
"name": "EspalierFileUpload",
|
|
19985
|
+
"members": [
|
|
19986
|
+
{
|
|
19987
|
+
"kind": "field",
|
|
19988
|
+
"name": "uploadInput",
|
|
19989
|
+
"privacy": "private"
|
|
19960
19990
|
},
|
|
19961
19991
|
{
|
|
19962
|
-
"kind": "
|
|
19963
|
-
"name": "
|
|
19992
|
+
"kind": "field",
|
|
19993
|
+
"name": "processingFiles",
|
|
19994
|
+
"type": {
|
|
19995
|
+
"text": "boolean"
|
|
19996
|
+
},
|
|
19964
19997
|
"privacy": "private",
|
|
19965
|
-
"
|
|
19966
|
-
|
|
19967
|
-
|
|
19968
|
-
|
|
19998
|
+
"default": "false"
|
|
19999
|
+
},
|
|
20000
|
+
{
|
|
20001
|
+
"kind": "field",
|
|
20002
|
+
"name": "accept",
|
|
20003
|
+
"type": {
|
|
20004
|
+
"text": "string"
|
|
19969
20005
|
},
|
|
19970
|
-
"
|
|
20006
|
+
"privacy": "public",
|
|
20007
|
+
"default": "\"*\"",
|
|
20008
|
+
"description": "The accepted file types. For example, to allow JPEG, PNG, and WebP images:\n\n`image/jpeg, image/png, image/webp`",
|
|
20009
|
+
"attribute": "accept"
|
|
19971
20010
|
},
|
|
19972
20011
|
{
|
|
19973
|
-
"kind": "
|
|
19974
|
-
"name": "
|
|
19975
|
-
"
|
|
19976
|
-
|
|
19977
|
-
"type": {
|
|
19978
|
-
"text": "void"
|
|
19979
|
-
}
|
|
20012
|
+
"kind": "field",
|
|
20013
|
+
"name": "chooseText",
|
|
20014
|
+
"type": {
|
|
20015
|
+
"text": "string"
|
|
19980
20016
|
},
|
|
19981
|
-
"
|
|
20017
|
+
"privacy": "public",
|
|
20018
|
+
"default": "\"Choose File\"",
|
|
20019
|
+
"description": "The text to display on the button.",
|
|
20020
|
+
"attribute": "choose-text"
|
|
20021
|
+
},
|
|
20022
|
+
{
|
|
20023
|
+
"kind": "field",
|
|
20024
|
+
"name": "multiple",
|
|
20025
|
+
"type": {
|
|
20026
|
+
"text": "boolean"
|
|
20027
|
+
},
|
|
20028
|
+
"privacy": "public",
|
|
20029
|
+
"default": "false",
|
|
20030
|
+
"description": "Allow multiple files to be selected.",
|
|
20031
|
+
"attribute": "multiple"
|
|
20032
|
+
},
|
|
20033
|
+
{
|
|
20034
|
+
"kind": "field",
|
|
20035
|
+
"name": "filesSelected",
|
|
20036
|
+
"privacy": "private"
|
|
20037
|
+
},
|
|
20038
|
+
{
|
|
20039
|
+
"kind": "method",
|
|
20040
|
+
"name": "finishedProcessingFiles",
|
|
20041
|
+
"privacy": "public",
|
|
20042
|
+
"description": "The `esp-file-upload-files-selected` event sets the file upload to a processing state.\nCall this method when you have finished processing the selected files\nto reset the file upload."
|
|
19982
20043
|
},
|
|
19983
20044
|
{
|
|
19984
20045
|
"kind": "field",
|
|
@@ -20494,89 +20555,39 @@
|
|
|
20494
20555
|
"events": [
|
|
20495
20556
|
{
|
|
20496
20557
|
"type": {
|
|
20497
|
-
"text": "CustomEvent<
|
|
20498
|
-
},
|
|
20499
|
-
"description": "Fired by `show()` when the flyout opens.",
|
|
20500
|
-
"name": "esp-flyout-opened"
|
|
20501
|
-
},
|
|
20502
|
-
{
|
|
20503
|
-
"type": {
|
|
20504
|
-
"text": "CustomEvent<{reason: FlyoutCloseReason}>"
|
|
20505
|
-
},
|
|
20506
|
-
"description": "Fired by `close()` when the flyout closes. `reason` is `\"escape\"`, `\"vellum\"`, `\"button\"`, or `\"programmatic\"`.",
|
|
20507
|
-
"name": "esp-flyout-closed"
|
|
20508
|
-
},
|
|
20509
|
-
{
|
|
20510
|
-
"type": {
|
|
20511
|
-
"text": "CustomEvent<{}>"
|
|
20558
|
+
"text": "CustomEvent<FileList>"
|
|
20512
20559
|
},
|
|
20513
|
-
"description": "Fired
|
|
20514
|
-
"name": "esp-
|
|
20560
|
+
"description": "Fired after the user selects one or more files.",
|
|
20561
|
+
"name": "esp-file-upload-files-selected"
|
|
20515
20562
|
}
|
|
20516
20563
|
],
|
|
20517
20564
|
"attributes": [
|
|
20518
20565
|
{
|
|
20519
|
-
"name": "
|
|
20520
|
-
"type": {
|
|
20521
|
-
"text": "boolean"
|
|
20522
|
-
},
|
|
20523
|
-
"default": "false",
|
|
20524
|
-
"description": "Whether the flyout is open. Reflected so the initial state can\nbe declared in markup; `esp-page` mirrors it (via the lifecycle\nevents and the slot) onto its own `flyout-open` attribute to\ndrive the grid.",
|
|
20525
|
-
"fieldName": "open"
|
|
20526
|
-
},
|
|
20527
|
-
{
|
|
20528
|
-
"name": "heading",
|
|
20566
|
+
"name": "accept",
|
|
20529
20567
|
"type": {
|
|
20530
20568
|
"text": "string"
|
|
20531
20569
|
},
|
|
20532
|
-
"default": "\"
|
|
20533
|
-
"description": "
|
|
20534
|
-
"fieldName": "
|
|
20535
|
-
},
|
|
20536
|
-
{
|
|
20537
|
-
"name": "mode",
|
|
20538
|
-
"type": {
|
|
20539
|
-
"text": "\"auto\" | \"overlay\""
|
|
20540
|
-
},
|
|
20541
|
-
"default": "\"auto\"",
|
|
20542
|
-
"description": "Placement behavior.\n\n- `\"auto\"` (default) — the page's placement ladder: gutter,\n docked sidebar, then overlay drawer when the complete in-grid\n minimums do not fit or below `COMPACT_VIEWPORT_MEDIA_QUERY`.\n- `\"overlay\"` — always the fixed overlay drawer, at any width.\n The page never reserves a grid track for an overlay-mode\n flyout.",
|
|
20543
|
-
"fieldName": "mode"
|
|
20544
|
-
},
|
|
20545
|
-
{
|
|
20546
|
-
"name": "full-height",
|
|
20547
|
-
"type": {
|
|
20548
|
-
"text": "boolean"
|
|
20549
|
-
},
|
|
20550
|
-
"default": "false",
|
|
20551
|
-
"description": "Fill the visible block-size in gutter and docked modes. The content\nregion scrolls independently. Overlay drawers already fill the viewport.",
|
|
20552
|
-
"fieldName": "fullHeight"
|
|
20570
|
+
"default": "\"*\"",
|
|
20571
|
+
"description": "The accepted file types. For example, to allow JPEG, PNG, and WebP images:\n\n`image/jpeg, image/png, image/webp`",
|
|
20572
|
+
"fieldName": "accept"
|
|
20553
20573
|
},
|
|
20554
20574
|
{
|
|
20555
|
-
"name": "
|
|
20575
|
+
"name": "choose-text",
|
|
20556
20576
|
"type": {
|
|
20557
|
-
"text": "
|
|
20577
|
+
"text": "string"
|
|
20558
20578
|
},
|
|
20559
|
-
"default": "
|
|
20560
|
-
"description": "
|
|
20561
|
-
"fieldName": "
|
|
20579
|
+
"default": "\"Choose File\"",
|
|
20580
|
+
"description": "The text to display on the button.",
|
|
20581
|
+
"fieldName": "chooseText"
|
|
20562
20582
|
},
|
|
20563
20583
|
{
|
|
20564
|
-
"name": "
|
|
20584
|
+
"name": "multiple",
|
|
20565
20585
|
"type": {
|
|
20566
20586
|
"text": "boolean"
|
|
20567
20587
|
},
|
|
20568
20588
|
"default": "false",
|
|
20569
|
-
"description": "
|
|
20570
|
-
"fieldName": "
|
|
20571
|
-
},
|
|
20572
|
-
{
|
|
20573
|
-
"name": "scope",
|
|
20574
|
-
"type": {
|
|
20575
|
-
"text": "\"outermost\" | \"nearest\""
|
|
20576
|
-
},
|
|
20577
|
-
"default": "\"outermost\"",
|
|
20578
|
-
"description": "Which containing page owns anchored bus requests.\n\n- `\"outermost\"` (default) routes to the flyout in the outermost\n `esp-page` containing the request trigger.\n- `\"nearest\"` explicitly gives this flyout precedence for requests\n originating in its own page or nested descendants.\n\nA `scope=\"nearest\"` flyout must be a light-DOM descendant of the\n`esp-page` whose requests it owns so that page can discover it.\n\nRequests without an `anchor` or `returnFocusTo` have no local context,\nso only outermost page flyouts service them. Use the instance API for\na directly controlled nested flyout.",
|
|
20579
|
-
"fieldName": "scope"
|
|
20589
|
+
"description": "Allow multiple files to be selected.",
|
|
20590
|
+
"fieldName": "multiple"
|
|
20580
20591
|
},
|
|
20581
20592
|
{
|
|
20582
20593
|
"type": {
|
|
@@ -20631,49 +20642,103 @@
|
|
|
20631
20642
|
"name": "EspalierElementBase",
|
|
20632
20643
|
"module": "dist/shared/esp-element-base.js"
|
|
20633
20644
|
},
|
|
20645
|
+
"tagName": "esp-file-upload",
|
|
20646
|
+
"customElement": true,
|
|
20634
20647
|
"docPageTitle": {
|
|
20635
|
-
"name": "
|
|
20636
|
-
"description": ""
|
|
20648
|
+
"name": "File",
|
|
20649
|
+
"description": "Upload"
|
|
20637
20650
|
},
|
|
20638
20651
|
"docUrl": {
|
|
20639
|
-
"name": "/components/
|
|
20652
|
+
"name": "/components/file-upload",
|
|
20640
20653
|
"description": ""
|
|
20641
20654
|
},
|
|
20642
20655
|
"menuGroup": {
|
|
20643
|
-
"name": "
|
|
20644
|
-
"description": ""
|
|
20645
|
-
},
|
|
20646
|
-
"menuOrder": {
|
|
20647
|
-
"name": "3",
|
|
20648
|
-
"description": ""
|
|
20656
|
+
"name": "Form",
|
|
20657
|
+
"description": "Controls"
|
|
20649
20658
|
},
|
|
20650
20659
|
"menuLabel": {
|
|
20651
|
-
"name": "
|
|
20652
|
-
"description": ""
|
|
20660
|
+
"name": "File",
|
|
20661
|
+
"description": "Upload"
|
|
20653
20662
|
},
|
|
20654
20663
|
"menuIcon": {
|
|
20655
|
-
"name": "
|
|
20664
|
+
"name": "upload",
|
|
20656
20665
|
"description": ""
|
|
20657
20666
|
},
|
|
20658
|
-
"
|
|
20659
|
-
|
|
20667
|
+
"cssProperties": [
|
|
20668
|
+
{
|
|
20669
|
+
"description": "Background color of the shared field shell. Defaults to one layer above the nearest declared surface, capped at `var(--esp-color-layer-4)`, or `var(--esp-color-layer-2)` without a declared surface. An explicit override wins.",
|
|
20670
|
+
"name": "--esp-field-background",
|
|
20671
|
+
"inheritedFrom": {
|
|
20672
|
+
"name": "EspalierElementBase",
|
|
20673
|
+
"module": "dist/shared/esp-element-base.js"
|
|
20674
|
+
}
|
|
20675
|
+
},
|
|
20676
|
+
{
|
|
20677
|
+
"description": "Border color of the shared field shell. Defaults to `var(--esp-color-border)`.",
|
|
20678
|
+
"name": "--esp-field-border-color",
|
|
20679
|
+
"inheritedFrom": {
|
|
20680
|
+
"name": "EspalierElementBase",
|
|
20681
|
+
"module": "dist/shared/esp-element-base.js"
|
|
20682
|
+
}
|
|
20683
|
+
},
|
|
20684
|
+
{
|
|
20685
|
+
"description": "Border width of the shared field shell. Defaults to `1px`.",
|
|
20686
|
+
"name": "--esp-field-border-width",
|
|
20687
|
+
"inheritedFrom": {
|
|
20688
|
+
"name": "EspalierElementBase",
|
|
20689
|
+
"module": "dist/shared/esp-element-base.js"
|
|
20690
|
+
}
|
|
20691
|
+
},
|
|
20692
|
+
{
|
|
20693
|
+
"description": "Text color used inside the shared field shell. Defaults to `var(--esp-color-text)`.",
|
|
20694
|
+
"name": "--esp-field-text-color",
|
|
20695
|
+
"inheritedFrom": {
|
|
20696
|
+
"name": "EspalierElementBase",
|
|
20697
|
+
"module": "dist/shared/esp-element-base.js"
|
|
20698
|
+
}
|
|
20699
|
+
},
|
|
20700
|
+
{
|
|
20701
|
+
"description": "Hover background color of the shared field shell. Derived from `--esp-field-background`.",
|
|
20702
|
+
"name": "--esp-field-hover-bg",
|
|
20703
|
+
"inheritedFrom": {
|
|
20704
|
+
"name": "EspalierElementBase",
|
|
20705
|
+
"module": "dist/shared/esp-element-base.js"
|
|
20706
|
+
}
|
|
20707
|
+
},
|
|
20708
|
+
{
|
|
20709
|
+
"description": "Focus background color of the shared field shell. Derived from `--esp-field-background`.",
|
|
20710
|
+
"name": "--esp-field-focus-bg",
|
|
20711
|
+
"inheritedFrom": {
|
|
20712
|
+
"name": "EspalierElementBase",
|
|
20713
|
+
"module": "dist/shared/esp-element-base.js"
|
|
20714
|
+
}
|
|
20715
|
+
},
|
|
20716
|
+
{
|
|
20717
|
+
"description": "Shadow color used for shared field focus treatment. Defaults to `var(--esp-color-shadow)`.",
|
|
20718
|
+
"name": "--esp-field-focus-shadow",
|
|
20719
|
+
"inheritedFrom": {
|
|
20720
|
+
"name": "EspalierElementBase",
|
|
20721
|
+
"module": "dist/shared/esp-element-base.js"
|
|
20722
|
+
}
|
|
20723
|
+
}
|
|
20724
|
+
]
|
|
20660
20725
|
}
|
|
20661
20726
|
],
|
|
20662
20727
|
"exports": [
|
|
20663
20728
|
{
|
|
20664
20729
|
"kind": "js",
|
|
20665
|
-
"name": "
|
|
20730
|
+
"name": "EspalierFileUpload",
|
|
20666
20731
|
"declaration": {
|
|
20667
|
-
"name": "
|
|
20668
|
-
"module": "dist/
|
|
20732
|
+
"name": "EspalierFileUpload",
|
|
20733
|
+
"module": "dist/file-upload/esp-file-upload.js"
|
|
20669
20734
|
}
|
|
20670
20735
|
},
|
|
20671
20736
|
{
|
|
20672
20737
|
"kind": "custom-element-definition",
|
|
20673
|
-
"name": "esp-
|
|
20738
|
+
"name": "esp-file-upload",
|
|
20674
20739
|
"declaration": {
|
|
20675
|
-
"name": "
|
|
20676
|
-
"module": "dist/
|
|
20740
|
+
"name": "EspalierFileUpload",
|
|
20741
|
+
"module": "dist/file-upload/esp-file-upload.js"
|
|
20677
20742
|
}
|
|
20678
20743
|
}
|
|
20679
20744
|
]
|
|
@@ -24718,7 +24783,7 @@
|
|
|
24718
24783
|
"name": "--esp-footer-color"
|
|
24719
24784
|
},
|
|
24720
24785
|
{
|
|
24721
|
-
"description": "Heading and configured-brand color.
|
|
24786
|
+
"description": "Heading and configured-brand color. The theme fits its headings color to the default footer surface.",
|
|
24722
24787
|
"name": "--esp-footer-heading-color"
|
|
24723
24788
|
},
|
|
24724
24789
|
{
|
|
@@ -24730,7 +24795,7 @@
|
|
|
24730
24795
|
"name": "--esp-footer-heading-font-size"
|
|
24731
24796
|
},
|
|
24732
24797
|
{
|
|
24733
|
-
"description": "Link color.
|
|
24798
|
+
"description": "Link color. The theme fits its link color to the default footer surface.",
|
|
24734
24799
|
"name": "--esp-footer-link-color"
|
|
24735
24800
|
},
|
|
24736
24801
|
{
|
|
@@ -24754,7 +24819,7 @@
|
|
|
24754
24819
|
"name": "--esp-footer-link-hover-bg"
|
|
24755
24820
|
},
|
|
24756
24821
|
{
|
|
24757
|
-
"description": "Focus-visible outline for footer links. Defaults to
|
|
24822
|
+
"description": "Focus-visible outline for footer links. Defaults to a 2px solid outline in the footer link color.",
|
|
24758
24823
|
"name": "--esp-footer-focus-outline"
|
|
24759
24824
|
},
|
|
24760
24825
|
{
|
|
@@ -26672,7 +26737,7 @@
|
|
|
26672
26737
|
"type": {
|
|
26673
26738
|
"text": "PaintRegistration"
|
|
26674
26739
|
},
|
|
26675
|
-
"default": "{ entriesByRole: { footer: [ { element: \"footer-heading\", foreground:
|
|
26740
|
+
"default": "{ derivations: { [FOOTER_HEADING_INK]: ({ readProperty, readColor }) => parsePaintColor( readProperty(\"--esp-footer-heading-color\") ?? (readProperty(FOOTER_INK_MODE) === \"semantic\" ? undefined : readProperty(FOOTER_INK_PROPERTIES.headings)) ?? readColor(\"headings\") ?? \"\", ), [FOOTER_LINK_INK]: ({ readProperty, readColor }) => parsePaintColor( readProperty(\"--esp-footer-link-color\") ?? (readProperty(FOOTER_INK_MODE) === \"semantic\" ? undefined : readProperty(FOOTER_INK_PROPERTIES.link)) ?? readColor(\"link\") ?? \"\", ), }, entriesByRole: { footer: [ { element: \"footer-heading\", foreground: FOOTER_HEADING_INK, background: \"layer2\", state: \"rest\", kind: \"text\", flags: [\"footerHeadings\"], }, { element: \"footer-body\", foreground: \"text\", background: \"layer2\", state: \"rest\", kind: \"text\", flags: [\"footerBody\"], }, ...PAINT_INTERACTIONS.flatMap((state): PaintEntry[] => { const hover = isPaintHover(state); const focus = isPaintFocus(state); const linkText = { foreground: hover ? \"linkHover\" : FOOTER_LINK_INK, background: hover ? footerLinkHoverBackground : \"layer2\", state, kind: \"text\" as const, }; const pairs: PaintEntry[] = [ { ...linkText, element: \"footer-link\", flags: [\"footerLinks\"] }, { ...linkText, element: \"brand-text\", foreground: hover ? \"linkHover\" : \"brand-color\", flags: state === \"rest\" ? [\"brandText\"] : [\"brandText\", \"brandLink\"], }, ]; if (focus) { for (const [element, flag] of [[\"footer-link\", \"footerLinks\"], [\"brand-link\", \"brandLink\"]]) { pairs.push({ element, foreground: FOOTER_LINK_INK, background: \"layer2\", state, kind: \"ring\", flags: [flag], }); } } return pairs; }), ], }, targets: { footer: [footerBrand, footerContent] }, }"
|
|
26676
26741
|
}
|
|
26677
26742
|
],
|
|
26678
26743
|
"exports": [
|
|
@@ -67094,7 +67159,7 @@
|
|
|
67094
67159
|
"kind": "field",
|
|
67095
67160
|
"name": "lightDomStyles",
|
|
67096
67161
|
"static": true,
|
|
67097
|
-
"default": "` ${surfaceLayerAttributes(\"esp-root [surface-layer]\").cssText} /* ── Base typography ──────────────────────────────────── */ esp-root { font-family: var(--_esp-font-body-effective, var(--esp-font-body, system-ui, sans-serif)); 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-effective, var(--esp-font-body, system-ui, sans-serif)); } /* ── 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-effective, var(--esp-font-body, system-ui, sans-serif)); 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-effective, var( --esp-font-headings, var(--_esp-font-body-effective, var(--esp-font-body, system-ui, sans-serif)) ) ); font-weight: var(--esp-font-weight-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; color: var(--esp-color-headings); } esp-root h4 { font-size: var(--esp-type-medium); line-height: 1.3; color: var(--esp-heading-4-color, var(--esp-color-headings)); } esp-root h3 { font-size: var(--esp-type-big); line-height: 1.2; color: var(--esp-heading-3-color, var(--esp-color-headings)); } esp-root h2 { font-size: var(--esp-type-large); line-height: 1.15; color: var(--esp-heading-2-color, var(--esp-color-headings)); } esp-root h1 { font-size: var(--esp-type-huge); line-height: 1.1; color: var(--esp-heading-1-color, var(--esp-color-headings)); } /* ── Code / Pre ───────────────────────────────────────── */ esp-root pre, esp-root code { font-family: var(--_esp-font-monospace-effective, var(--esp-font-monospace, 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; } /* ── Footer scope ─────────────────────────────────────── */ /* esp-footer documents --esp-footer-color and --esp-footer-link-color as its text and link colors, but the base rules above set paragraph and link colors directly and outrank the footer's own rules (a page-level rule even beats ::slotted). These restate them one element higher so the footer variables win (ESP0261). The :not([class]) rule is needed to outrank the bold-link rule above. Hover and focus come last because they tie with it at (0,1,3). */ esp-root esp-footer :is(p, ul, ol, li) { color: var(--esp-footer-color, var(--esp-color-text)); } esp-root esp-footer :is(h1, h2, h3, h4, h5, h6) { color: var(--esp-footer-heading-color, var(--esp-color-headings)); } esp-root esp-footer h2 { font-size: var(--esp-footer-heading-font-size, var(--esp-type-normal)); } esp-root esp-footer a, esp-root esp-footer a:not([class]) { color: var(--esp-footer-link-color, var(--esp-color-link)); } esp-root esp-footer a:not([class]) { text-decoration-line: var(--esp-footer-link-decoration, underline); text-underline-offset: var(--esp-footer-link-underline-offset, auto); text-decoration-thickness: var(--esp-footer-link-underline-thickness, auto); } esp-root esp-footer esp-footer-link-group a:not([class]) { text-underline-offset: var(--esp-footer-link-underline-offset, 0.18em); } esp-root esp-footer a:hover { color: var(--esp-footer-link-hover-color, var(--esp-color-link-hover)); background-color: var(--esp-footer-link-hover-bg, var(--esp-color-link-hover-bg)); } esp-root esp-footer a:not([class]):hover { text-decoration-line: underline; } esp-root esp-footer a:focus-visible { outline: var( --esp-footer-focus-outline, 2px solid var(--esp-footer-link-color, var(--esp-color-link)) ); outline-offset: 3px; } /* Only bare links take the ring's corner radius; a classed link keeps its own shape, such as a pill or button, while focused. */ esp-root esp-footer a:not([class]):focus-visible { border-radius: var(--esp-size-border-radius); } `",
|
|
67162
|
+
"default": "` ${surfaceLayerAttributes(\"esp-root [surface-layer]\").cssText} /* ── Base typography ──────────────────────────────────── */ esp-root { font-family: var(--_esp-font-body-effective, var(--esp-font-body, system-ui, sans-serif)); 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-effective, var(--esp-font-body, system-ui, sans-serif)); } /* ── 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; } /* The anchor supplies focus feedback until the badge has its own ring. */ esp-root a[data-esp-badge-link]:has(> esp-badge[linked]:defined) { background-color: transparent; text-decoration: none; } esp-root a[data-esp-badge-link]:focus-visible:has(> esp-badge[linked]:defined) { outline: none; } esp-root a:focus-visible > esp-badge[linked]::part(badge) { background: var(--esp-badge-link-focus-background, var(--esp-color-link-hover-bg)); border-color: var(--esp-badge-link-focus-border-color, var(--esp-color-link-hover)); color: var(--esp-badge-link-focus-color, var(--esp-color-link-hover)); } esp-root a[data-esp-badge-link]:focus-visible > esp-badge[linked]:defined::part(badge) { outline: 2px solid var(--esp-badge-link-focus-ring-color, var(--esp-color-link)); outline-offset: 3px; } @media (forced-colors: active) { esp-root a[data-esp-badge-link]:focus-visible > esp-badge[linked]:defined::part(badge) { outline-color: Highlight; } } /* ── 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-effective, var(--esp-font-body, system-ui, sans-serif)); 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-effective, var( --esp-font-headings, var(--_esp-font-body-effective, var(--esp-font-body, system-ui, sans-serif)) ) ); font-weight: var(--esp-font-weight-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; color: var(--esp-color-headings); } esp-root h4 { font-size: var(--esp-type-medium); line-height: 1.3; color: var(--esp-heading-4-color, var(--esp-color-headings)); } esp-root h3 { font-size: var(--esp-type-big); line-height: 1.2; color: var(--esp-heading-3-color, var(--esp-color-headings)); } esp-root h2 { font-size: var(--esp-type-large); line-height: 1.15; color: var(--esp-heading-2-color, var(--esp-color-headings)); } esp-root h1 { font-size: var(--esp-type-huge); line-height: 1.1; color: var(--esp-heading-1-color, var(--esp-color-headings)); } /* ── Code / Pre ───────────────────────────────────────── */ esp-root pre, esp-root code { font-family: var(--_esp-font-monospace-effective, var(--esp-font-monospace, 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; } /* ── Footer scope ─────────────────────────────────────── */ /* esp-footer documents --esp-footer-color and --esp-footer-link-color as its text and link colors, but the base rules above set paragraph and link colors directly and outrank the footer's own rules (a page-level rule even beats ::slotted). These restate them one element higher so the footer variables win (ESP0261). The :not([class]) rule is needed to outrank the bold-link rule above. Hover and focus come last because they tie with it at (0,1,3). */ esp-root esp-footer :is(p, ul, ol, li) { color: var(--esp-footer-color, var(--esp-color-text)); } esp-root esp-footer :is(h1, h2, h3, h4, h5, h6) { ${footerHeadingFit.cssText} color: var(--esp-footer-heading-color, var(--_esp-footer-local-fitted-heading-color, var(--esp-color-headings))); } esp-root esp-footer h2 { font-size: var(--esp-footer-heading-font-size, var(--esp-type-normal)); } esp-root esp-footer a, esp-root esp-footer a:not([class]) { ${footerLinkFit.cssText} color: var(--esp-footer-link-color, var(--_esp-footer-local-fitted-link-color, var(--esp-color-link))); } esp-root esp-footer a:not([class]) { text-decoration-line: var(--esp-footer-link-decoration, underline); text-underline-offset: var(--esp-footer-link-underline-offset, auto); text-decoration-thickness: var(--esp-footer-link-underline-thickness, auto); } esp-root esp-footer esp-footer-link-group a:not([class]) { text-underline-offset: var(--esp-footer-link-underline-offset, 0.18em); } esp-root esp-footer a:hover { color: var(--esp-footer-link-hover-color, var(--esp-color-link-hover)); background-color: var(--esp-footer-link-hover-bg, var(--esp-color-link-hover-bg)); } esp-root esp-footer a:not([class]):hover { text-decoration-line: underline; } esp-root esp-footer a:focus-visible { ${footerLinkFit.cssText} outline: var( --esp-footer-focus-outline, 2px solid var(--esp-footer-link-color, var(--_esp-footer-local-fitted-link-color, var(--esp-color-link))) ); outline-offset: 3px; } /* Only bare links take the ring's corner radius; a classed link keeps its own shape, such as a pill or button, while focused. */ esp-root esp-footer a:not([class]):focus-visible { border-radius: var(--esp-size-border-radius); } `",
|
|
67098
67163
|
"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."
|
|
67099
67164
|
}
|
|
67100
67165
|
],
|
|
@@ -70300,9 +70365,14 @@
|
|
|
70300
70365
|
"text": "number"
|
|
70301
70366
|
},
|
|
70302
70367
|
"description": "The minimum absolute $L_c$ score (default 60)"
|
|
70368
|
+
},
|
|
70369
|
+
{
|
|
70370
|
+
"name": "tryOppositePolarity",
|
|
70371
|
+
"default": "false",
|
|
70372
|
+
"description": "Whether to try the other direction if needed"
|
|
70303
70373
|
}
|
|
70304
70374
|
],
|
|
70305
|
-
"description": "Adjust a text color toward the target absolute APCA Lc score.\n\nIf the current contrast is insufficient, lightness is\nadjusted (made darker on light bg, lighter on dark bg)\nuntil the target is met or the lightness boundary is hit."
|
|
70375
|
+
"description": "Adjust a text color toward the target absolute APCA Lc score.\n\nIf the current contrast is insufficient, lightness is\nadjusted (made darker on light bg, lighter on dark bg)\nuntil the target is met or the lightness boundary is hit. A caller may\nallow a second pass when only the opposite boundary can meet the target."
|
|
70306
70376
|
},
|
|
70307
70377
|
{
|
|
70308
70378
|
"kind": "function",
|
|
@@ -70451,6 +70521,11 @@
|
|
|
70451
70521
|
"text": "(requested: OklchColor) => void"
|
|
70452
70522
|
},
|
|
70453
70523
|
"description": "Optional observer, invoked with the **pre-enforcement**\nderivation — the value the mapping asked for, before `ensureContrast`\nis allowed to move it. It receives the very binding enforcement then\nconsumes, so an observer cannot report a \"requested\" value the engine\ndid not actually start from (ESP0163). Omitted on the production path,\nwhere the optional call costs nothing."
|
|
70524
|
+
},
|
|
70525
|
+
{
|
|
70526
|
+
"name": "tryOppositePolarity",
|
|
70527
|
+
"default": "false",
|
|
70528
|
+
"description": "Whether to try the other direction if needed"
|
|
70454
70529
|
}
|
|
70455
70530
|
],
|
|
70456
70531
|
"description": "Derive a semantic color with automatic APCA contrast\nenforcement against a reference background."
|
|
@@ -73590,6 +73665,126 @@
|
|
|
73590
73665
|
"declarations": [],
|
|
73591
73666
|
"exports": []
|
|
73592
73667
|
},
|
|
73668
|
+
{
|
|
73669
|
+
"kind": "javascript-module",
|
|
73670
|
+
"path": "dist/shared/footer-ink-styles.js",
|
|
73671
|
+
"declarations": [
|
|
73672
|
+
{
|
|
73673
|
+
"kind": "variable",
|
|
73674
|
+
"name": "footerInkLayerStyles",
|
|
73675
|
+
"default": "css` :host { --_esp-footer-fit-prefix: ; --_esp-footer-ink-mode: fitted; } :host([surface-layer=\"1\"]), :host([surface-layer=\"3\"]), :host([surface-layer=\"4\"]) { --_esp-footer-fit-prefix: initial; --_esp-footer-ink-mode: semantic; } `"
|
|
73676
|
+
},
|
|
73677
|
+
{
|
|
73678
|
+
"kind": "variable",
|
|
73679
|
+
"name": "footerHeadingFit",
|
|
73680
|
+
"default": "css` --_esp-footer-local-fitted-heading-color: var(--_esp-footer-fit-prefix) var(--_esp-footer-fitted-heading-color); `"
|
|
73681
|
+
},
|
|
73682
|
+
{
|
|
73683
|
+
"kind": "variable",
|
|
73684
|
+
"name": "footerLinkFit",
|
|
73685
|
+
"default": "css` --_esp-footer-local-fitted-link-color: var(--_esp-footer-fit-prefix) var(--_esp-footer-fitted-link-color); `"
|
|
73686
|
+
}
|
|
73687
|
+
],
|
|
73688
|
+
"exports": [
|
|
73689
|
+
{
|
|
73690
|
+
"kind": "js",
|
|
73691
|
+
"name": "footerInkLayerStyles",
|
|
73692
|
+
"declaration": {
|
|
73693
|
+
"name": "footerInkLayerStyles",
|
|
73694
|
+
"module": "dist/shared/footer-ink-styles.js"
|
|
73695
|
+
}
|
|
73696
|
+
},
|
|
73697
|
+
{
|
|
73698
|
+
"kind": "js",
|
|
73699
|
+
"name": "footerHeadingFit",
|
|
73700
|
+
"declaration": {
|
|
73701
|
+
"name": "footerHeadingFit",
|
|
73702
|
+
"module": "dist/shared/footer-ink-styles.js"
|
|
73703
|
+
}
|
|
73704
|
+
},
|
|
73705
|
+
{
|
|
73706
|
+
"kind": "js",
|
|
73707
|
+
"name": "footerLinkFit",
|
|
73708
|
+
"declaration": {
|
|
73709
|
+
"name": "footerLinkFit",
|
|
73710
|
+
"module": "dist/shared/footer-ink-styles.js"
|
|
73711
|
+
}
|
|
73712
|
+
}
|
|
73713
|
+
]
|
|
73714
|
+
},
|
|
73715
|
+
{
|
|
73716
|
+
"kind": "javascript-module",
|
|
73717
|
+
"path": "dist/shared/footer-ink.js",
|
|
73718
|
+
"declarations": [
|
|
73719
|
+
{
|
|
73720
|
+
"kind": "variable",
|
|
73721
|
+
"name": "FOOTER_INK_PROPERTIES",
|
|
73722
|
+
"type": {
|
|
73723
|
+
"text": "{\n headings: \"--_esp-footer-fitted-heading-color\",\n link: \"--_esp-footer-fitted-link-color\",\n}"
|
|
73724
|
+
},
|
|
73725
|
+
"default": "{ headings: \"--_esp-footer-fitted-heading-color\", link: \"--_esp-footer-fitted-link-color\", }",
|
|
73726
|
+
"description": "The compiler's fitted defaults for the footer's layer-2 ground."
|
|
73727
|
+
},
|
|
73728
|
+
{
|
|
73729
|
+
"kind": "variable",
|
|
73730
|
+
"name": "FOOTER_INK_MODE",
|
|
73731
|
+
"type": {
|
|
73732
|
+
"text": "string"
|
|
73733
|
+
},
|
|
73734
|
+
"default": "\"--_esp-footer-ink-mode\""
|
|
73735
|
+
},
|
|
73736
|
+
{
|
|
73737
|
+
"kind": "variable",
|
|
73738
|
+
"name": "FOOTER_HEADING_INK",
|
|
73739
|
+
"type": {
|
|
73740
|
+
"text": "string"
|
|
73741
|
+
},
|
|
73742
|
+
"default": "\"footer-heading-ink\""
|
|
73743
|
+
},
|
|
73744
|
+
{
|
|
73745
|
+
"kind": "variable",
|
|
73746
|
+
"name": "FOOTER_LINK_INK",
|
|
73747
|
+
"type": {
|
|
73748
|
+
"text": "string"
|
|
73749
|
+
},
|
|
73750
|
+
"default": "\"footer-link-ink\""
|
|
73751
|
+
}
|
|
73752
|
+
],
|
|
73753
|
+
"exports": [
|
|
73754
|
+
{
|
|
73755
|
+
"kind": "js",
|
|
73756
|
+
"name": "FOOTER_INK_PROPERTIES",
|
|
73757
|
+
"declaration": {
|
|
73758
|
+
"name": "FOOTER_INK_PROPERTIES",
|
|
73759
|
+
"module": "dist/shared/footer-ink.js"
|
|
73760
|
+
}
|
|
73761
|
+
},
|
|
73762
|
+
{
|
|
73763
|
+
"kind": "js",
|
|
73764
|
+
"name": "FOOTER_INK_MODE",
|
|
73765
|
+
"declaration": {
|
|
73766
|
+
"name": "FOOTER_INK_MODE",
|
|
73767
|
+
"module": "dist/shared/footer-ink.js"
|
|
73768
|
+
}
|
|
73769
|
+
},
|
|
73770
|
+
{
|
|
73771
|
+
"kind": "js",
|
|
73772
|
+
"name": "FOOTER_HEADING_INK",
|
|
73773
|
+
"declaration": {
|
|
73774
|
+
"name": "FOOTER_HEADING_INK",
|
|
73775
|
+
"module": "dist/shared/footer-ink.js"
|
|
73776
|
+
}
|
|
73777
|
+
},
|
|
73778
|
+
{
|
|
73779
|
+
"kind": "js",
|
|
73780
|
+
"name": "FOOTER_LINK_INK",
|
|
73781
|
+
"declaration": {
|
|
73782
|
+
"name": "FOOTER_LINK_INK",
|
|
73783
|
+
"module": "dist/shared/footer-ink.js"
|
|
73784
|
+
}
|
|
73785
|
+
}
|
|
73786
|
+
]
|
|
73787
|
+
},
|
|
73593
73788
|
{
|
|
73594
73789
|
"kind": "javascript-module",
|
|
73595
73790
|
"path": "dist/shared/footer-logo-geometry.js",
|
|
@@ -78582,7 +78777,7 @@
|
|
|
78582
78777
|
}
|
|
78583
78778
|
}
|
|
78584
78779
|
],
|
|
78585
|
-
"description": "Render a report as `console.table` rows.\n\nExposed separately from printThemeFitReport so a host can put\nthe same rows somewhere other than the console."
|
|
78780
|
+
"description": "Render a report as `console.table` rows, with distinct names for footer inks.\n\nExposed separately from printThemeFitReport so a host can put\nthe same rows somewhere other than the console."
|
|
78586
78781
|
},
|
|
78587
78782
|
{
|
|
78588
78783
|
"kind": "function",
|
|
@@ -96436,6 +96631,13 @@
|
|
|
96436
96631
|
"type": {
|
|
96437
96632
|
"text": "ComponentPropertyCompileTarget"
|
|
96438
96633
|
}
|
|
96634
|
+
},
|
|
96635
|
+
{
|
|
96636
|
+
"name": "footerTrace",
|
|
96637
|
+
"optional": true,
|
|
96638
|
+
"type": {
|
|
96639
|
+
"text": "ThemeFitTraceEntry[]"
|
|
96640
|
+
}
|
|
96439
96641
|
}
|
|
96440
96642
|
]
|
|
96441
96643
|
}
|