@taprootio/espalier 6.3.0 → 6.4.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 +8 -0
- package/custom-elements.json +558 -542
- package/dist/box/esp-box.d.ts +35 -0
- package/dist/box/esp-box.js +24 -9
- package/dist/dialog/esp-dialog.d.ts +76 -0
- package/dist/dialog/esp-dialog.js +29 -17
- package/espalier.css-data.json +16 -0
- package/espalier.token-manifest.json +24 -0
- package/package.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -7716,7 +7716,7 @@
|
|
|
7716
7716
|
},
|
|
7717
7717
|
"privacy": "public",
|
|
7718
7718
|
"default": "false",
|
|
7719
|
-
"description": "Whether the box should take up the full screen. Useful when\ndisplaying a dialog in full-screen mode.\n\n```html\n<esp-box>\n <h2>Box things</h2>\n <esp-box>\n <h2>Box in box</h2>\n <esp-button label=\"Toggle full screen\"></esp-button>\n </esp-box>\n</esp-box>\n<script>\n let fullScreen = false;\n const theBox = findByTagName(\"esp-box\")[0];\n const theButton = findByTagName(\"esp-button\")[0];\n theButton.addEventListener(\"esp-clicked\", () => {\n fullScreen = !fullScreen;\n\n if(fullScreen) {\n theBox.setAttribute(\"full-screen\", true);\n } else {\n theBox.removeAttribute(\"full-screen\");\n }\n });\n</script>\n```",
|
|
7719
|
+
"description": "Whether the box should take up the full screen. Useful when\ndisplaying a dialog in full-screen mode.\n\n```html\n<esp-box>\n <h2>Box things</h2>\n <esp-box>\n <h2>Box in box</h2>\n <esp-button label=\"Toggle full screen\"></esp-button>\n </esp-box>\n</esp-box>\n<script>\n let fullScreen = false;\n const theBox = findByTagName(\"esp-box\")[0];\n const theButton = findByTagName(\"esp-button\")[0];\n theButton.addEventListener(\"esp-clicked\", () => {\n fullScreen = !fullScreen;\n\n if(fullScreen) {\n theBox.setAttribute(\"full-screen\", true);\n } else {\n theBox.removeAttribute(\"full-screen\");\n }\n });\n</script>\n```\n\nA full-screen box fills the viewport. Inside a\n[bounded dialog](/components/dialog) it fills exactly the dialog's\nrectangle instead: it takes its position and size from the same\n`--esp-dialog-inset-*` custom properties, set on the `esp-dialog` or any\nancestor of the box.\n\n```html\n<style>\n esp-dialog.bounded-box {\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-box\" full-screen>\n <esp-box full-screen>\n <h2>Box in a bounded dialog</h2>\n <p>This box fills the rectangle the dialog is bounded to.</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```",
|
|
7720
7720
|
"attribute": "full-screen"
|
|
7721
7721
|
},
|
|
7722
7722
|
{
|
|
@@ -8451,7 +8451,7 @@
|
|
|
8451
8451
|
"text": "boolean"
|
|
8452
8452
|
},
|
|
8453
8453
|
"default": "false",
|
|
8454
|
-
"description": "Whether the box should take up the full screen. Useful when\ndisplaying a dialog in full-screen mode.\n\n```html\n<esp-box>\n <h2>Box things</h2>\n <esp-box>\n <h2>Box in box</h2>\n <esp-button label=\"Toggle full screen\"></esp-button>\n </esp-box>\n</esp-box>\n<script>\n let fullScreen = false;\n const theBox = findByTagName(\"esp-box\")[0];\n const theButton = findByTagName(\"esp-button\")[0];\n theButton.addEventListener(\"esp-clicked\", () => {\n fullScreen = !fullScreen;\n\n if(fullScreen) {\n theBox.setAttribute(\"full-screen\", true);\n } else {\n theBox.removeAttribute(\"full-screen\");\n }\n });\n</script>\n```",
|
|
8454
|
+
"description": "Whether the box should take up the full screen. Useful when\ndisplaying a dialog in full-screen mode.\n\n```html\n<esp-box>\n <h2>Box things</h2>\n <esp-box>\n <h2>Box in box</h2>\n <esp-button label=\"Toggle full screen\"></esp-button>\n </esp-box>\n</esp-box>\n<script>\n let fullScreen = false;\n const theBox = findByTagName(\"esp-box\")[0];\n const theButton = findByTagName(\"esp-button\")[0];\n theButton.addEventListener(\"esp-clicked\", () => {\n fullScreen = !fullScreen;\n\n if(fullScreen) {\n theBox.setAttribute(\"full-screen\", true);\n } else {\n theBox.removeAttribute(\"full-screen\");\n }\n });\n</script>\n```\n\nA full-screen box fills the viewport. Inside a\n[bounded dialog](/components/dialog) it fills exactly the dialog's\nrectangle instead: it takes its position and size from the same\n`--esp-dialog-inset-*` custom properties, set on the `esp-dialog` or any\nancestor of the box.\n\n```html\n<style>\n esp-dialog.bounded-box {\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-box\" full-screen>\n <esp-box full-screen>\n <h2>Box in a bounded dialog</h2>\n <p>This box fills the rectangle the dialog is bounded to.</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```",
|
|
8455
8455
|
"fieldName": "fullScreen"
|
|
8456
8456
|
},
|
|
8457
8457
|
{
|
|
@@ -19417,7 +19417,7 @@
|
|
|
19417
19417
|
"declarations": [
|
|
19418
19418
|
{
|
|
19419
19419
|
"kind": "class",
|
|
19420
|
-
"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.",
|
|
19420
|
+
"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```",
|
|
19421
19421
|
"name": "EspalierDialog",
|
|
19422
19422
|
"cssProperties": [
|
|
19423
19423
|
{
|
|
@@ -19427,6 +19427,22 @@
|
|
|
19427
19427
|
{
|
|
19428
19428
|
"description": "The opacity of the dialog overlay background.",
|
|
19429
19429
|
"name": "--esp-dialog-bg-opacity"
|
|
19430
|
+
},
|
|
19431
|
+
{
|
|
19432
|
+
"description": "The top edge of the area the dialog covers, as a length from the viewport top. Defaults to `0px`.",
|
|
19433
|
+
"name": "--esp-dialog-inset-block-start"
|
|
19434
|
+
},
|
|
19435
|
+
{
|
|
19436
|
+
"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`.",
|
|
19437
|
+
"name": "--esp-dialog-inset-inline-start"
|
|
19438
|
+
},
|
|
19439
|
+
{
|
|
19440
|
+
"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`.",
|
|
19441
|
+
"name": "--esp-dialog-inset-inline-end"
|
|
19442
|
+
},
|
|
19443
|
+
{
|
|
19444
|
+
"description": "The bottom edge of the area the dialog covers, as a length from the viewport bottom. Defaults to `0px`.",
|
|
19445
|
+
"name": "--esp-dialog-inset-block-end"
|
|
19430
19446
|
}
|
|
19431
19447
|
],
|
|
19432
19448
|
"slots": [
|
|
@@ -86617,60 +86633,40 @@
|
|
|
86617
86633
|
},
|
|
86618
86634
|
{
|
|
86619
86635
|
"kind": "javascript-module",
|
|
86620
|
-
"path": "dist/
|
|
86636
|
+
"path": "dist/tabs/esp-tab-group.js",
|
|
86621
86637
|
"declarations": [
|
|
86622
86638
|
{
|
|
86623
86639
|
"kind": "class",
|
|
86624
|
-
"description": "
|
|
86625
|
-
"name": "
|
|
86640
|
+
"description": "A tabbed interface that groups multiple\n[esp-tab](/components/tabs) elements. The tab strip is\ngenerated automatically from each child's `label` attribute.\nOnly one tab panel is visible at a time.\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\n```html\n<esp-tab-group>\n <esp-tab label=\"Overview\">\n <p>Overview content goes here.</p>\n </esp-tab>\n <esp-tab label=\"Details\">\n <p>Detailed information lives here.</p>\n </esp-tab>\n <esp-tab label=\"Settings\">\n <p>Configuration options.</p>\n </esp-tab>\n</esp-tab-group>\n```\n\n### Pre-selected tab\n\nSet `active` on a child `esp-tab` to make it the initially\nvisible panel:\n\n```html\n<esp-tab-group>\n <esp-tab label=\"Alpha\">\n <p>Alpha panel.</p>\n </esp-tab>\n <esp-tab label=\"Beta\" active>\n <p>Beta starts active.</p>\n </esp-tab>\n</esp-tab-group>\n```\n\n### Disabled tab\n\nIndividual tabs can be disabled:\n\n```html\n<esp-tab-group>\n <esp-tab label=\"Available\">\n <p>You can select this tab.</p>\n </esp-tab>\n <esp-tab label=\"Locked\" disabled>\n <p>This tab cannot be reached.</p>\n </esp-tab>\n <esp-tab label=\"Also available\">\n <p>This tab works too.</p>\n </esp-tab>\n</esp-tab-group>\n```\n\n### Disabled group\n\nSet `disabled` on the group to disable all tabs at once:\n\n```html\n<esp-tab-group disabled>\n <esp-tab label=\"One\">\n <p>All tabs are disabled.</p>\n </esp-tab>\n <esp-tab label=\"Two\">\n <p>Cannot switch to this.</p>\n </esp-tab>\n</esp-tab-group>\n```\n\n### Zone theming\n\nTab groups pick up zone theming from a `context` attribute:\n\n```html\n<esp-tab-group context=\"quiet\">\n <esp-tab label=\"First\">\n <p>Zone-correct content.</p>\n </esp-tab>\n <esp-tab label=\"Second\">\n <p>More content.</p>\n </esp-tab>\n</esp-tab-group>\n```\n\n### Listening for tab changes\n\n```html\n<esp-tab-group>\n <esp-tab label=\"Tab 1\">\n <p>First panel.</p>\n </esp-tab>\n <esp-tab label=\"Tab 2\">\n <p>Second panel.</p>\n </esp-tab>\n</esp-tab-group>\n<script>\n const tabs = findByTagName(\"esp-tab-group\")[0];\n tabs.addEventListener(\"esp-tab-group-changed\", (ev) => {\n console.log(\"Switched to:\", ev.detail.label, \"at index\", ev.detail.index);\n });\n</script>\n```",
|
|
86641
|
+
"name": "EspalierTabGroup",
|
|
86626
86642
|
"cssProperties": [
|
|
86627
86643
|
{
|
|
86628
|
-
"description": "
|
|
86629
|
-
"name": "--esp-
|
|
86630
|
-
},
|
|
86631
|
-
{
|
|
86632
|
-
"description": "The height of the switch track. Defaults to `var(--esp-size-normal-to-medium)`.",
|
|
86633
|
-
"name": "--esp-switch-height"
|
|
86634
|
-
},
|
|
86635
|
-
{
|
|
86636
|
-
"description": "The diameter of the thumb. Defaults to `calc(var(--esp-switch-height) - 4px)`.",
|
|
86637
|
-
"name": "--esp-switch-thumb-size"
|
|
86638
|
-
},
|
|
86639
|
-
{
|
|
86640
|
-
"description": "The track background color when the switch is off. Defaults to `var(--esp-color-border)`.",
|
|
86641
|
-
"name": "--esp-switch-track-color"
|
|
86642
|
-
},
|
|
86643
|
-
{
|
|
86644
|
-
"description": "The track background color when the switch is on. Defaults to `var(--esp-color-action-background)`.",
|
|
86645
|
-
"name": "--esp-switch-track-color-on"
|
|
86646
|
-
},
|
|
86647
|
-
{
|
|
86648
|
-
"description": "The thumb color. Defaults to `var(--esp-color-layer-1)`.",
|
|
86649
|
-
"name": "--esp-switch-thumb-color"
|
|
86644
|
+
"description": "Border color of the tab group container.",
|
|
86645
|
+
"name": "--esp-tab-color-border"
|
|
86650
86646
|
},
|
|
86651
86647
|
{
|
|
86652
|
-
"description": "
|
|
86653
|
-
"name": "--esp-
|
|
86648
|
+
"description": "Background color of the overall component.",
|
|
86649
|
+
"name": "--esp-tab-color-background"
|
|
86654
86650
|
},
|
|
86655
86651
|
{
|
|
86656
|
-
"description": "
|
|
86657
|
-
"name": "--esp-
|
|
86652
|
+
"description": "Background color of the tab strip.",
|
|
86653
|
+
"name": "--esp-tab-color-strip-background"
|
|
86658
86654
|
},
|
|
86659
86655
|
{
|
|
86660
|
-
"description": "
|
|
86661
|
-
"name": "--esp-
|
|
86656
|
+
"description": "Tab button hover background.",
|
|
86657
|
+
"name": "--esp-tab-color-button-hover"
|
|
86662
86658
|
},
|
|
86663
86659
|
{
|
|
86664
|
-
"description": "
|
|
86665
|
-
"name": "--esp-
|
|
86660
|
+
"description": "Active tab button background.",
|
|
86661
|
+
"name": "--esp-tab-color-button-active"
|
|
86666
86662
|
},
|
|
86667
86663
|
{
|
|
86668
|
-
"description": "Text color
|
|
86669
|
-
"name": "--esp-
|
|
86664
|
+
"description": "Text color for tab buttons.",
|
|
86665
|
+
"name": "--esp-tab-color-text"
|
|
86670
86666
|
},
|
|
86671
86667
|
{
|
|
86672
|
-
"description": "
|
|
86673
|
-
"name": "--esp-
|
|
86668
|
+
"description": "Padding inside the panel area and tab buttons.",
|
|
86669
|
+
"name": "--esp-tab-size-padding"
|
|
86674
86670
|
},
|
|
86675
86671
|
{
|
|
86676
86672
|
"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.",
|
|
@@ -86729,194 +86725,108 @@
|
|
|
86729
86725
|
}
|
|
86730
86726
|
}
|
|
86731
86727
|
],
|
|
86728
|
+
"cssParts": [
|
|
86729
|
+
{
|
|
86730
|
+
"description": "The tab strip container.",
|
|
86731
|
+
"name": "tab-list"
|
|
86732
|
+
},
|
|
86733
|
+
{
|
|
86734
|
+
"description": "Each individual tab button in the strip.",
|
|
86735
|
+
"name": "tab-button"
|
|
86736
|
+
},
|
|
86737
|
+
{
|
|
86738
|
+
"description": "The panel area below the tab strip.",
|
|
86739
|
+
"name": "panels"
|
|
86740
|
+
}
|
|
86741
|
+
],
|
|
86732
86742
|
"slots": [
|
|
86733
86743
|
{
|
|
86734
|
-
"description": "
|
|
86744
|
+
"description": "Place `esp-tab` elements in the default slot.",
|
|
86735
86745
|
"name": ""
|
|
86736
86746
|
}
|
|
86737
86747
|
],
|
|
86738
86748
|
"members": [
|
|
86739
86749
|
{
|
|
86740
86750
|
"kind": "field",
|
|
86741
|
-
"name": "
|
|
86742
|
-
"type": {
|
|
86743
|
-
"text": "boolean"
|
|
86744
|
-
},
|
|
86745
|
-
"static": true,
|
|
86746
|
-
"default": "true"
|
|
86747
|
-
},
|
|
86748
|
-
{
|
|
86749
|
-
"kind": "field",
|
|
86750
|
-
"name": "internals",
|
|
86751
|
+
"name": "panelsSlot",
|
|
86751
86752
|
"privacy": "private"
|
|
86752
86753
|
},
|
|
86753
86754
|
{
|
|
86754
86755
|
"kind": "field",
|
|
86755
|
-
"name": "
|
|
86756
|
-
"privacy": "private",
|
|
86757
|
-
"default": "new FormFieldController({ host: this, internals: this.internals, getFormValue: () => (this.checked ? this.value || \"on\" : null), getValidity: () => { if (this.required && !this.checked) { return { flags: { valueMissing: true }, message: this.requiredMessage || \"Please toggle this switch to continue.\", }; } return null; }, onReset: () => { this.checked = false; }, onRestore: (state: string) => { this.checked = state === \"on\" || state === this.value; }, onDisabled: (isDisabled: boolean) => { this.disabled = isDisabled; }, })"
|
|
86758
|
-
},
|
|
86759
|
-
{
|
|
86760
|
-
"kind": "field",
|
|
86761
|
-
"name": "formItemDescription",
|
|
86762
|
-
"privacy": "private",
|
|
86763
|
-
"default": "new FormFieldDescriptionController({ host: this, getTarget: () => this.shadowRoot?.querySelector<HTMLElement>(\".switch-control\"), })"
|
|
86764
|
-
},
|
|
86765
|
-
{
|
|
86766
|
-
"kind": "field",
|
|
86767
|
-
"name": "mode",
|
|
86768
|
-
"type": {
|
|
86769
|
-
"text": "\"switch\" | \"text\""
|
|
86770
|
-
},
|
|
86771
|
-
"privacy": "public",
|
|
86772
|
-
"default": "\"switch\"",
|
|
86773
|
-
"description": "The visual presentation of the switch.\n- `\"switch\"` (default) renders a track-and-thumb toggle.\n- `\"text\"` renders two side-by-side text labels with a\n sliding highlight behind the active one.",
|
|
86774
|
-
"attribute": "mode",
|
|
86775
|
-
"reflects": true
|
|
86776
|
-
},
|
|
86777
|
-
{
|
|
86778
|
-
"kind": "field",
|
|
86779
|
-
"name": "offLabel",
|
|
86780
|
-
"type": {
|
|
86781
|
-
"text": "string"
|
|
86782
|
-
},
|
|
86783
|
-
"privacy": "public",
|
|
86784
|
-
"default": "\"\"",
|
|
86785
|
-
"description": "Label shown for the unchecked (off) state when\n`mode=\"text\"`.",
|
|
86786
|
-
"attribute": "off-label"
|
|
86787
|
-
},
|
|
86788
|
-
{
|
|
86789
|
-
"kind": "field",
|
|
86790
|
-
"name": "onLabel",
|
|
86791
|
-
"type": {
|
|
86792
|
-
"text": "string"
|
|
86793
|
-
},
|
|
86794
|
-
"privacy": "public",
|
|
86795
|
-
"default": "\"\"",
|
|
86796
|
-
"description": "Label shown for the checked (on) state when\n`mode=\"text\"`.",
|
|
86797
|
-
"attribute": "on-label"
|
|
86798
|
-
},
|
|
86799
|
-
{
|
|
86800
|
-
"kind": "field",
|
|
86801
|
-
"name": "checked",
|
|
86802
|
-
"type": {
|
|
86803
|
-
"text": "boolean"
|
|
86804
|
-
},
|
|
86805
|
-
"privacy": "public",
|
|
86806
|
-
"default": "false",
|
|
86807
|
-
"description": "Whether the switch is in the on state.",
|
|
86808
|
-
"attribute": "checked",
|
|
86809
|
-
"reflects": true
|
|
86810
|
-
},
|
|
86811
|
-
{
|
|
86812
|
-
"kind": "field",
|
|
86813
|
-
"name": "value",
|
|
86814
|
-
"type": {
|
|
86815
|
-
"text": "string"
|
|
86816
|
-
},
|
|
86817
|
-
"privacy": "public",
|
|
86818
|
-
"default": "\"\"",
|
|
86819
|
-
"description": "The value associated with this switch. Submitted with the\nform when the switch is on.",
|
|
86820
|
-
"attribute": "value"
|
|
86821
|
-
},
|
|
86822
|
-
{
|
|
86823
|
-
"kind": "field",
|
|
86824
|
-
"name": "name",
|
|
86825
|
-
"type": {
|
|
86826
|
-
"text": "string"
|
|
86827
|
-
},
|
|
86828
|
-
"privacy": "public",
|
|
86829
|
-
"default": "\"\"",
|
|
86830
|
-
"description": "The name used when the switch participates in a `<form>`.",
|
|
86831
|
-
"attribute": "name",
|
|
86832
|
-
"reflects": true
|
|
86833
|
-
},
|
|
86834
|
-
{
|
|
86835
|
-
"kind": "field",
|
|
86836
|
-
"name": "required",
|
|
86756
|
+
"name": "disabled",
|
|
86837
86757
|
"type": {
|
|
86838
86758
|
"text": "boolean"
|
|
86839
86759
|
},
|
|
86840
86760
|
"privacy": "public",
|
|
86841
86761
|
"default": "false",
|
|
86842
|
-
"description": "
|
|
86843
|
-
"attribute": "
|
|
86762
|
+
"description": "Disables all tabs in the group, preventing any tab from\nbeing selected.",
|
|
86763
|
+
"attribute": "disabled",
|
|
86844
86764
|
"reflects": true
|
|
86845
86765
|
},
|
|
86846
86766
|
{
|
|
86847
86767
|
"kind": "field",
|
|
86848
|
-
"name": "
|
|
86849
|
-
"type": {
|
|
86850
|
-
"text": "string"
|
|
86851
|
-
},
|
|
86852
|
-
"privacy": "public",
|
|
86853
|
-
"default": "\"\"",
|
|
86854
|
-
"description": "A custom message to display when the switch is required but\nnot on. Defaults to `\"Please toggle this switch to continue.\"`\nwhen not set.\n\n```html\n<esp-switch required required-message=\"You must accept the terms.\">\n I accept\n</esp-switch>\n```",
|
|
86855
|
-
"attribute": "required-message"
|
|
86856
|
-
},
|
|
86857
|
-
{
|
|
86858
|
-
"kind": "field",
|
|
86859
|
-
"name": "disabled",
|
|
86768
|
+
"name": "tabData",
|
|
86860
86769
|
"type": {
|
|
86861
|
-
"text": "
|
|
86770
|
+
"text": "TabData[]"
|
|
86862
86771
|
},
|
|
86863
|
-
"privacy": "
|
|
86864
|
-
"default": "
|
|
86865
|
-
"description": "Controls whether the switch is disabled.",
|
|
86866
|
-
"attribute": "disabled",
|
|
86867
|
-
"reflects": true
|
|
86772
|
+
"privacy": "private",
|
|
86773
|
+
"default": "[]"
|
|
86868
86774
|
},
|
|
86869
86775
|
{
|
|
86870
86776
|
"kind": "method",
|
|
86871
|
-
"name": "
|
|
86872
|
-
"privacy": "
|
|
86777
|
+
"name": "getTabs",
|
|
86778
|
+
"privacy": "private",
|
|
86873
86779
|
"return": {
|
|
86874
86780
|
"type": {
|
|
86875
|
-
"text": "
|
|
86876
|
-
}
|
|
86877
|
-
},
|
|
86878
|
-
"parameters": [
|
|
86879
|
-
{
|
|
86880
|
-
"name": "options",
|
|
86881
|
-
"optional": true,
|
|
86882
|
-
"type": {
|
|
86883
|
-
"text": "FocusOptions"
|
|
86884
|
-
}
|
|
86781
|
+
"text": "EspalierTab[]"
|
|
86885
86782
|
}
|
|
86886
|
-
|
|
86887
|
-
"description": "Focus the switch control."
|
|
86783
|
+
}
|
|
86888
86784
|
},
|
|
86889
86785
|
{
|
|
86890
86786
|
"kind": "method",
|
|
86891
|
-
"name": "
|
|
86892
|
-
"privacy": "
|
|
86787
|
+
"name": "syncTabData",
|
|
86788
|
+
"privacy": "private",
|
|
86893
86789
|
"return": {
|
|
86894
86790
|
"type": {
|
|
86895
86791
|
"text": "void"
|
|
86896
86792
|
}
|
|
86897
|
-
}
|
|
86898
|
-
"description": "Re-run constraint validation and dispatch `esp-validity-changed`."
|
|
86793
|
+
}
|
|
86899
86794
|
},
|
|
86900
86795
|
{
|
|
86901
86796
|
"kind": "method",
|
|
86902
|
-
"name": "
|
|
86903
|
-
"privacy": "
|
|
86797
|
+
"name": "activateTab",
|
|
86798
|
+
"privacy": "private",
|
|
86904
86799
|
"return": {
|
|
86905
86800
|
"type": {
|
|
86906
|
-
"text": "
|
|
86801
|
+
"text": "void"
|
|
86907
86802
|
}
|
|
86908
86803
|
},
|
|
86909
|
-
"
|
|
86804
|
+
"parameters": [
|
|
86805
|
+
{
|
|
86806
|
+
"name": "index",
|
|
86807
|
+
"type": {
|
|
86808
|
+
"text": "number"
|
|
86809
|
+
}
|
|
86810
|
+
}
|
|
86811
|
+
]
|
|
86910
86812
|
},
|
|
86911
86813
|
{
|
|
86912
86814
|
"kind": "method",
|
|
86913
|
-
"name": "
|
|
86815
|
+
"name": "handleTabClick",
|
|
86914
86816
|
"privacy": "private",
|
|
86915
86817
|
"return": {
|
|
86916
86818
|
"type": {
|
|
86917
86819
|
"text": "void"
|
|
86918
86820
|
}
|
|
86919
|
-
}
|
|
86821
|
+
},
|
|
86822
|
+
"parameters": [
|
|
86823
|
+
{
|
|
86824
|
+
"name": "index",
|
|
86825
|
+
"type": {
|
|
86826
|
+
"text": "number"
|
|
86827
|
+
}
|
|
86828
|
+
}
|
|
86829
|
+
]
|
|
86920
86830
|
},
|
|
86921
86831
|
{
|
|
86922
86832
|
"kind": "method",
|
|
@@ -86938,7 +86848,7 @@
|
|
|
86938
86848
|
},
|
|
86939
86849
|
{
|
|
86940
86850
|
"kind": "method",
|
|
86941
|
-
"name": "
|
|
86851
|
+
"name": "handleChildUpdated",
|
|
86942
86852
|
"privacy": "private",
|
|
86943
86853
|
"return": {
|
|
86944
86854
|
"type": {
|
|
@@ -86948,69 +86858,13 @@
|
|
|
86948
86858
|
},
|
|
86949
86859
|
{
|
|
86950
86860
|
"kind": "method",
|
|
86951
|
-
"name": "
|
|
86952
|
-
"privacy": "private",
|
|
86953
|
-
"return": {
|
|
86954
|
-
"type": {
|
|
86955
|
-
"text": "string"
|
|
86956
|
-
}
|
|
86957
|
-
}
|
|
86958
|
-
},
|
|
86959
|
-
{
|
|
86960
|
-
"kind": "method",
|
|
86961
|
-
"name": "getTextModeAriaLabel",
|
|
86861
|
+
"name": "handleSlotChange",
|
|
86962
86862
|
"privacy": "private",
|
|
86963
|
-
"return": {
|
|
86964
|
-
"type": {
|
|
86965
|
-
"text": "string"
|
|
86966
|
-
}
|
|
86967
|
-
}
|
|
86968
|
-
},
|
|
86969
|
-
{
|
|
86970
|
-
"kind": "method",
|
|
86971
|
-
"name": "formResetCallback",
|
|
86972
86863
|
"return": {
|
|
86973
86864
|
"type": {
|
|
86974
86865
|
"text": "void"
|
|
86975
86866
|
}
|
|
86976
|
-
}
|
|
86977
|
-
"description": "Called by the browser when the owning `<form>` is reset."
|
|
86978
|
-
},
|
|
86979
|
-
{
|
|
86980
|
-
"kind": "method",
|
|
86981
|
-
"name": "formStateRestoreCallback",
|
|
86982
|
-
"return": {
|
|
86983
|
-
"type": {
|
|
86984
|
-
"text": "void"
|
|
86985
|
-
}
|
|
86986
|
-
},
|
|
86987
|
-
"parameters": [
|
|
86988
|
-
{
|
|
86989
|
-
"name": "state",
|
|
86990
|
-
"type": {
|
|
86991
|
-
"text": "string"
|
|
86992
|
-
}
|
|
86993
|
-
}
|
|
86994
|
-
],
|
|
86995
|
-
"description": "Called by the browser to restore form state (bfcache, etc.)."
|
|
86996
|
-
},
|
|
86997
|
-
{
|
|
86998
|
-
"kind": "method",
|
|
86999
|
-
"name": "formDisabledCallback",
|
|
87000
|
-
"return": {
|
|
87001
|
-
"type": {
|
|
87002
|
-
"text": "void"
|
|
87003
|
-
}
|
|
87004
|
-
},
|
|
87005
|
-
"parameters": [
|
|
87006
|
-
{
|
|
87007
|
-
"name": "isDisabled",
|
|
87008
|
-
"type": {
|
|
87009
|
-
"text": "boolean"
|
|
87010
|
-
}
|
|
87011
|
-
}
|
|
87012
|
-
],
|
|
87013
|
-
"description": "Called by the browser when a parent `<fieldset>` is enabled or disabled."
|
|
86867
|
+
}
|
|
87014
86868
|
},
|
|
87015
86869
|
{
|
|
87016
86870
|
"kind": "field",
|
|
@@ -87740,99 +87594,20 @@
|
|
|
87740
87594
|
"events": [
|
|
87741
87595
|
{
|
|
87742
87596
|
"type": {
|
|
87743
|
-
"text": "CustomEvent<{
|
|
87744
|
-
},
|
|
87745
|
-
"description": "Fired when the switch is toggled. The detail contains the new `checked` state and the switch `value`.",
|
|
87746
|
-
"name": "esp-value-changed"
|
|
87747
|
-
},
|
|
87748
|
-
{
|
|
87749
|
-
"type": {
|
|
87750
|
-
"text": "CustomEvent<{ valid: boolean; message: string }>"
|
|
87597
|
+
"text": "CustomEvent<{ index: number; label: string }>"
|
|
87751
87598
|
},
|
|
87752
|
-
"description": "Fired
|
|
87753
|
-
"name": "esp-
|
|
87599
|
+
"description": "Fired when the active tab changes. The detail contains the `index` and `label` of the newly active tab.",
|
|
87600
|
+
"name": "esp-tab-group-changed"
|
|
87754
87601
|
}
|
|
87755
87602
|
],
|
|
87756
87603
|
"attributes": [
|
|
87757
|
-
{
|
|
87758
|
-
"name": "mode",
|
|
87759
|
-
"type": {
|
|
87760
|
-
"text": "\"switch\" | \"text\""
|
|
87761
|
-
},
|
|
87762
|
-
"default": "\"switch\"",
|
|
87763
|
-
"description": "The visual presentation of the switch.\n- `\"switch\"` (default) renders a track-and-thumb toggle.\n- `\"text\"` renders two side-by-side text labels with a\n sliding highlight behind the active one.",
|
|
87764
|
-
"fieldName": "mode"
|
|
87765
|
-
},
|
|
87766
|
-
{
|
|
87767
|
-
"name": "off-label",
|
|
87768
|
-
"type": {
|
|
87769
|
-
"text": "string"
|
|
87770
|
-
},
|
|
87771
|
-
"default": "\"\"",
|
|
87772
|
-
"description": "Label shown for the unchecked (off) state when\n`mode=\"text\"`.",
|
|
87773
|
-
"fieldName": "offLabel"
|
|
87774
|
-
},
|
|
87775
|
-
{
|
|
87776
|
-
"name": "on-label",
|
|
87777
|
-
"type": {
|
|
87778
|
-
"text": "string"
|
|
87779
|
-
},
|
|
87780
|
-
"default": "\"\"",
|
|
87781
|
-
"description": "Label shown for the checked (on) state when\n`mode=\"text\"`.",
|
|
87782
|
-
"fieldName": "onLabel"
|
|
87783
|
-
},
|
|
87784
|
-
{
|
|
87785
|
-
"name": "checked",
|
|
87786
|
-
"type": {
|
|
87787
|
-
"text": "boolean"
|
|
87788
|
-
},
|
|
87789
|
-
"default": "false",
|
|
87790
|
-
"description": "Whether the switch is in the on state.",
|
|
87791
|
-
"fieldName": "checked"
|
|
87792
|
-
},
|
|
87793
|
-
{
|
|
87794
|
-
"name": "value",
|
|
87795
|
-
"type": {
|
|
87796
|
-
"text": "string"
|
|
87797
|
-
},
|
|
87798
|
-
"default": "\"\"",
|
|
87799
|
-
"description": "The value associated with this switch. Submitted with the\nform when the switch is on.",
|
|
87800
|
-
"fieldName": "value"
|
|
87801
|
-
},
|
|
87802
|
-
{
|
|
87803
|
-
"name": "name",
|
|
87804
|
-
"type": {
|
|
87805
|
-
"text": "string"
|
|
87806
|
-
},
|
|
87807
|
-
"default": "\"\"",
|
|
87808
|
-
"description": "The name used when the switch participates in a `<form>`.",
|
|
87809
|
-
"fieldName": "name"
|
|
87810
|
-
},
|
|
87811
|
-
{
|
|
87812
|
-
"name": "required",
|
|
87813
|
-
"type": {
|
|
87814
|
-
"text": "boolean"
|
|
87815
|
-
},
|
|
87816
|
-
"default": "false",
|
|
87817
|
-
"description": "When true, the switch must be on before the form can\nbe submitted.",
|
|
87818
|
-
"fieldName": "required"
|
|
87819
|
-
},
|
|
87820
|
-
{
|
|
87821
|
-
"name": "required-message",
|
|
87822
|
-
"type": {
|
|
87823
|
-
"text": "string"
|
|
87824
|
-
},
|
|
87825
|
-
"default": "\"\"",
|
|
87826
|
-
"description": "A custom message to display when the switch is required but\nnot on. Defaults to `\"Please toggle this switch to continue.\"`\nwhen not set.\n\n```html\n<esp-switch required required-message=\"You must accept the terms.\">\n I accept\n</esp-switch>\n```",
|
|
87827
|
-
"fieldName": "requiredMessage"
|
|
87828
|
-
},
|
|
87829
87604
|
{
|
|
87830
87605
|
"name": "disabled",
|
|
87831
87606
|
"type": {
|
|
87832
87607
|
"text": "boolean"
|
|
87833
87608
|
},
|
|
87834
87609
|
"default": "false",
|
|
87835
|
-
"description": "
|
|
87610
|
+
"description": "Disables all tabs in the group, preventing any tab from\nbeing selected.",
|
|
87836
87611
|
"fieldName": "disabled"
|
|
87837
87612
|
},
|
|
87838
87613
|
{
|
|
@@ -87888,84 +87663,60 @@
|
|
|
87888
87663
|
"name": "EspalierElementBase",
|
|
87889
87664
|
"module": "dist/shared/esp-element-base.js"
|
|
87890
87665
|
},
|
|
87666
|
+
"tagName": "esp-tab-group",
|
|
87667
|
+
"customElement": true,
|
|
87891
87668
|
"docPageTitle": {
|
|
87892
|
-
"name": "
|
|
87893
|
-
"description": ""
|
|
87669
|
+
"name": "Tab",
|
|
87670
|
+
"description": "Group"
|
|
87894
87671
|
},
|
|
87895
87672
|
"docUrl": {
|
|
87896
|
-
"name": "/components/
|
|
87673
|
+
"name": "/components/tabs",
|
|
87897
87674
|
"description": ""
|
|
87898
87675
|
},
|
|
87899
87676
|
"menuGroup": {
|
|
87900
|
-
"name": "
|
|
87901
|
-
"description": "
|
|
87677
|
+
"name": "Navigation",
|
|
87678
|
+
"description": ""
|
|
87902
87679
|
},
|
|
87903
87680
|
"menuLabel": {
|
|
87904
|
-
"name": "
|
|
87905
|
-
"description": ""
|
|
87681
|
+
"name": "Tab",
|
|
87682
|
+
"description": "Group"
|
|
87906
87683
|
},
|
|
87907
87684
|
"menuIcon": {
|
|
87908
|
-
"name": "
|
|
87685
|
+
"name": "layout-navbar",
|
|
87909
87686
|
"description": ""
|
|
87910
|
-
}
|
|
87911
|
-
"tagName": "esp-switch",
|
|
87912
|
-
"customElement": true
|
|
87687
|
+
}
|
|
87913
87688
|
}
|
|
87914
87689
|
],
|
|
87915
87690
|
"exports": [
|
|
87916
87691
|
{
|
|
87917
87692
|
"kind": "js",
|
|
87918
|
-
"name": "
|
|
87693
|
+
"name": "EspalierTabGroup",
|
|
87919
87694
|
"declaration": {
|
|
87920
|
-
"name": "
|
|
87921
|
-
"module": "dist/
|
|
87695
|
+
"name": "EspalierTabGroup",
|
|
87696
|
+
"module": "dist/tabs/esp-tab-group.js"
|
|
87922
87697
|
}
|
|
87923
87698
|
},
|
|
87924
87699
|
{
|
|
87925
87700
|
"kind": "custom-element-definition",
|
|
87926
|
-
"name": "esp-
|
|
87701
|
+
"name": "esp-tab-group",
|
|
87927
87702
|
"declaration": {
|
|
87928
|
-
"name": "
|
|
87929
|
-
"module": "dist/
|
|
87703
|
+
"name": "EspalierTabGroup",
|
|
87704
|
+
"module": "dist/tabs/esp-tab-group.js"
|
|
87930
87705
|
}
|
|
87931
87706
|
}
|
|
87932
87707
|
]
|
|
87933
87708
|
},
|
|
87934
87709
|
{
|
|
87935
87710
|
"kind": "javascript-module",
|
|
87936
|
-
"path": "dist/tabs/esp-tab
|
|
87711
|
+
"path": "dist/tabs/esp-tab.js",
|
|
87937
87712
|
"declarations": [
|
|
87938
87713
|
{
|
|
87939
87714
|
"kind": "class",
|
|
87940
|
-
"description": "A
|
|
87941
|
-
"name": "
|
|
87715
|
+
"description": "A single tab panel used inside\n[esp-tab-group](/components/tabs). Each tab provides a\n`label` that appears in the generated tab strip and a default\nslot for the panel content.\n\n```html\n<esp-tab-group>\n <esp-tab label=\"First\">\n <p>Content for the first tab.</p>\n </esp-tab>\n <esp-tab label=\"Second\">\n <p>Content for the second tab.</p>\n </esp-tab>\n</esp-tab-group>\n```\n\n### Pre-selected tab\n\nSet the `active` attribute to make a tab active on load:\n\n```html\n<esp-tab-group>\n <esp-tab label=\"One\">\n <p>Not active by default.</p>\n </esp-tab>\n <esp-tab label=\"Two\" active>\n <p>This tab starts active.</p>\n </esp-tab>\n</esp-tab-group>\n```\n\n### Disabled tab\n\n```html\n<esp-tab-group>\n <esp-tab label=\"Enabled\">\n <p>This tab works normally.</p>\n </esp-tab>\n <esp-tab label=\"Disabled\" disabled>\n <p>Cannot reach this panel.</p>\n </esp-tab>\n</esp-tab-group>\n```",
|
|
87716
|
+
"name": "EspalierTab",
|
|
87942
87717
|
"cssProperties": [
|
|
87943
87718
|
{
|
|
87944
|
-
"description": "
|
|
87945
|
-
"name": "--esp-tab-color-border"
|
|
87946
|
-
},
|
|
87947
|
-
{
|
|
87948
|
-
"description": "Background color of the overall component.",
|
|
87949
|
-
"name": "--esp-tab-color-background"
|
|
87950
|
-
},
|
|
87951
|
-
{
|
|
87952
|
-
"description": "Background color of the tab strip.",
|
|
87953
|
-
"name": "--esp-tab-color-strip-background"
|
|
87954
|
-
},
|
|
87955
|
-
{
|
|
87956
|
-
"description": "Tab button hover background.",
|
|
87957
|
-
"name": "--esp-tab-color-button-hover"
|
|
87958
|
-
},
|
|
87959
|
-
{
|
|
87960
|
-
"description": "Active tab button background.",
|
|
87961
|
-
"name": "--esp-tab-color-button-active"
|
|
87962
|
-
},
|
|
87963
|
-
{
|
|
87964
|
-
"description": "Text color for tab buttons.",
|
|
87965
|
-
"name": "--esp-tab-color-text"
|
|
87966
|
-
},
|
|
87967
|
-
{
|
|
87968
|
-
"description": "Padding inside the panel area and tab buttons.",
|
|
87719
|
+
"description": "Padding inside the panel area.",
|
|
87969
87720
|
"name": "--esp-tab-size-padding"
|
|
87970
87721
|
},
|
|
87971
87722
|
{
|
|
@@ -88027,144 +87778,51 @@
|
|
|
88027
87778
|
],
|
|
88028
87779
|
"cssParts": [
|
|
88029
87780
|
{
|
|
88030
|
-
"description": "The
|
|
88031
|
-
"name": "
|
|
88032
|
-
},
|
|
88033
|
-
{
|
|
88034
|
-
"description": "Each individual tab button in the strip.",
|
|
88035
|
-
"name": "tab-button"
|
|
88036
|
-
},
|
|
88037
|
-
{
|
|
88038
|
-
"description": "The panel area below the tab strip.",
|
|
88039
|
-
"name": "panels"
|
|
87781
|
+
"description": "The panel wrapper element.",
|
|
87782
|
+
"name": "panel"
|
|
88040
87783
|
}
|
|
88041
87784
|
],
|
|
88042
87785
|
"slots": [
|
|
88043
87786
|
{
|
|
88044
|
-
"description": "
|
|
87787
|
+
"description": "The default slot holds the panel content displayed when this tab is active. Label, active-state, and disabled-state updates are reported through a private coordination event consumed by the parent tab group.",
|
|
88045
87788
|
"name": ""
|
|
88046
87789
|
}
|
|
88047
87790
|
],
|
|
88048
87791
|
"members": [
|
|
88049
87792
|
{
|
|
88050
87793
|
"kind": "field",
|
|
88051
|
-
"name": "
|
|
88052
|
-
"
|
|
87794
|
+
"name": "label",
|
|
87795
|
+
"type": {
|
|
87796
|
+
"text": "string"
|
|
87797
|
+
},
|
|
87798
|
+
"privacy": "public",
|
|
87799
|
+
"default": "\"\"",
|
|
87800
|
+
"description": "The text displayed in the tab button within the tab strip.",
|
|
87801
|
+
"attribute": "label"
|
|
88053
87802
|
},
|
|
88054
87803
|
{
|
|
88055
87804
|
"kind": "field",
|
|
88056
|
-
"name": "
|
|
87805
|
+
"name": "active",
|
|
88057
87806
|
"type": {
|
|
88058
87807
|
"text": "boolean"
|
|
88059
87808
|
},
|
|
88060
87809
|
"privacy": "public",
|
|
88061
87810
|
"default": "false",
|
|
88062
|
-
"description": "
|
|
88063
|
-
"attribute": "
|
|
87811
|
+
"description": "Whether this tab is currently active (its panel is visible).",
|
|
87812
|
+
"attribute": "active",
|
|
88064
87813
|
"reflects": true
|
|
88065
87814
|
},
|
|
88066
87815
|
{
|
|
88067
87816
|
"kind": "field",
|
|
88068
|
-
"name": "
|
|
87817
|
+
"name": "disabled",
|
|
88069
87818
|
"type": {
|
|
88070
|
-
"text": "
|
|
88071
|
-
},
|
|
88072
|
-
"privacy": "private",
|
|
88073
|
-
"default": "[]"
|
|
88074
|
-
},
|
|
88075
|
-
{
|
|
88076
|
-
"kind": "method",
|
|
88077
|
-
"name": "getTabs",
|
|
88078
|
-
"privacy": "private",
|
|
88079
|
-
"return": {
|
|
88080
|
-
"type": {
|
|
88081
|
-
"text": "EspalierTab[]"
|
|
88082
|
-
}
|
|
88083
|
-
}
|
|
88084
|
-
},
|
|
88085
|
-
{
|
|
88086
|
-
"kind": "method",
|
|
88087
|
-
"name": "syncTabData",
|
|
88088
|
-
"privacy": "private",
|
|
88089
|
-
"return": {
|
|
88090
|
-
"type": {
|
|
88091
|
-
"text": "void"
|
|
88092
|
-
}
|
|
88093
|
-
}
|
|
88094
|
-
},
|
|
88095
|
-
{
|
|
88096
|
-
"kind": "method",
|
|
88097
|
-
"name": "activateTab",
|
|
88098
|
-
"privacy": "private",
|
|
88099
|
-
"return": {
|
|
88100
|
-
"type": {
|
|
88101
|
-
"text": "void"
|
|
88102
|
-
}
|
|
88103
|
-
},
|
|
88104
|
-
"parameters": [
|
|
88105
|
-
{
|
|
88106
|
-
"name": "index",
|
|
88107
|
-
"type": {
|
|
88108
|
-
"text": "number"
|
|
88109
|
-
}
|
|
88110
|
-
}
|
|
88111
|
-
]
|
|
88112
|
-
},
|
|
88113
|
-
{
|
|
88114
|
-
"kind": "method",
|
|
88115
|
-
"name": "handleTabClick",
|
|
88116
|
-
"privacy": "private",
|
|
88117
|
-
"return": {
|
|
88118
|
-
"type": {
|
|
88119
|
-
"text": "void"
|
|
88120
|
-
}
|
|
88121
|
-
},
|
|
88122
|
-
"parameters": [
|
|
88123
|
-
{
|
|
88124
|
-
"name": "index",
|
|
88125
|
-
"type": {
|
|
88126
|
-
"text": "number"
|
|
88127
|
-
}
|
|
88128
|
-
}
|
|
88129
|
-
]
|
|
88130
|
-
},
|
|
88131
|
-
{
|
|
88132
|
-
"kind": "method",
|
|
88133
|
-
"name": "handleKeyDown",
|
|
88134
|
-
"privacy": "private",
|
|
88135
|
-
"return": {
|
|
88136
|
-
"type": {
|
|
88137
|
-
"text": "void"
|
|
88138
|
-
}
|
|
87819
|
+
"text": "boolean"
|
|
88139
87820
|
},
|
|
88140
|
-
"
|
|
88141
|
-
|
|
88142
|
-
|
|
88143
|
-
|
|
88144
|
-
|
|
88145
|
-
}
|
|
88146
|
-
}
|
|
88147
|
-
]
|
|
88148
|
-
},
|
|
88149
|
-
{
|
|
88150
|
-
"kind": "method",
|
|
88151
|
-
"name": "handleChildUpdated",
|
|
88152
|
-
"privacy": "private",
|
|
88153
|
-
"return": {
|
|
88154
|
-
"type": {
|
|
88155
|
-
"text": "void"
|
|
88156
|
-
}
|
|
88157
|
-
}
|
|
88158
|
-
},
|
|
88159
|
-
{
|
|
88160
|
-
"kind": "method",
|
|
88161
|
-
"name": "handleSlotChange",
|
|
88162
|
-
"privacy": "private",
|
|
88163
|
-
"return": {
|
|
88164
|
-
"type": {
|
|
88165
|
-
"text": "void"
|
|
88166
|
-
}
|
|
88167
|
-
}
|
|
87821
|
+
"privacy": "public",
|
|
87822
|
+
"default": "false",
|
|
87823
|
+
"description": "Whether this tab is disabled (cannot be selected).",
|
|
87824
|
+
"attribute": "disabled",
|
|
87825
|
+
"reflects": true
|
|
88168
87826
|
},
|
|
88169
87827
|
{
|
|
88170
87828
|
"kind": "field",
|
|
@@ -88891,23 +88549,33 @@
|
|
|
88891
88549
|
}
|
|
88892
88550
|
}
|
|
88893
88551
|
],
|
|
88894
|
-
"events": [
|
|
88552
|
+
"events": [],
|
|
88553
|
+
"attributes": [
|
|
88895
88554
|
{
|
|
88555
|
+
"name": "label",
|
|
88896
88556
|
"type": {
|
|
88897
|
-
"text": "
|
|
88557
|
+
"text": "string"
|
|
88898
88558
|
},
|
|
88899
|
-
"
|
|
88900
|
-
"
|
|
88901
|
-
|
|
88902
|
-
|
|
88903
|
-
|
|
88559
|
+
"default": "\"\"",
|
|
88560
|
+
"description": "The text displayed in the tab button within the tab strip.",
|
|
88561
|
+
"fieldName": "label"
|
|
88562
|
+
},
|
|
88563
|
+
{
|
|
88564
|
+
"name": "active",
|
|
88565
|
+
"type": {
|
|
88566
|
+
"text": "boolean"
|
|
88567
|
+
},
|
|
88568
|
+
"default": "false",
|
|
88569
|
+
"description": "Whether this tab is currently active (its panel is visible).",
|
|
88570
|
+
"fieldName": "active"
|
|
88571
|
+
},
|
|
88904
88572
|
{
|
|
88905
88573
|
"name": "disabled",
|
|
88906
88574
|
"type": {
|
|
88907
88575
|
"text": "boolean"
|
|
88908
88576
|
},
|
|
88909
88577
|
"default": "false",
|
|
88910
|
-
"description": "
|
|
88578
|
+
"description": "Whether this tab is disabled (cannot be selected).",
|
|
88911
88579
|
"fieldName": "disabled"
|
|
88912
88580
|
},
|
|
88913
88581
|
{
|
|
@@ -88963,61 +88631,97 @@
|
|
|
88963
88631
|
"name": "EspalierElementBase",
|
|
88964
88632
|
"module": "dist/shared/esp-element-base.js"
|
|
88965
88633
|
},
|
|
88966
|
-
"tagName": "esp-tab
|
|
88634
|
+
"tagName": "esp-tab",
|
|
88967
88635
|
"customElement": true,
|
|
88968
88636
|
"docPageTitle": {
|
|
88969
88637
|
"name": "Tab",
|
|
88970
|
-
"description": "
|
|
88638
|
+
"description": ""
|
|
88971
88639
|
},
|
|
88972
88640
|
"docUrl": {
|
|
88973
|
-
"name": "/components/tabs",
|
|
88641
|
+
"name": "/components/tabs/tab",
|
|
88974
88642
|
"description": ""
|
|
88975
88643
|
},
|
|
88976
88644
|
"menuGroup": {
|
|
88977
88645
|
"name": "Navigation",
|
|
88978
88646
|
"description": ""
|
|
88979
|
-
},
|
|
88980
|
-
"menuLabel": {
|
|
88981
|
-
"name": "Tab",
|
|
88982
|
-
"description": "Group"
|
|
88983
|
-
},
|
|
88984
|
-
"menuIcon": {
|
|
88985
|
-
"name": "layout-navbar",
|
|
88986
|
-
"description": ""
|
|
88987
88647
|
}
|
|
88988
88648
|
}
|
|
88989
88649
|
],
|
|
88990
88650
|
"exports": [
|
|
88991
88651
|
{
|
|
88992
88652
|
"kind": "js",
|
|
88993
|
-
"name": "
|
|
88653
|
+
"name": "EspalierTab",
|
|
88994
88654
|
"declaration": {
|
|
88995
|
-
"name": "
|
|
88996
|
-
"module": "dist/tabs/esp-tab
|
|
88655
|
+
"name": "EspalierTab",
|
|
88656
|
+
"module": "dist/tabs/esp-tab.js"
|
|
88997
88657
|
}
|
|
88998
88658
|
},
|
|
88999
88659
|
{
|
|
89000
88660
|
"kind": "custom-element-definition",
|
|
89001
|
-
"name": "esp-tab
|
|
88661
|
+
"name": "esp-tab",
|
|
89002
88662
|
"declaration": {
|
|
89003
|
-
"name": "
|
|
89004
|
-
"module": "dist/tabs/esp-tab
|
|
88663
|
+
"name": "EspalierTab",
|
|
88664
|
+
"module": "dist/tabs/esp-tab.js"
|
|
89005
88665
|
}
|
|
89006
88666
|
}
|
|
89007
88667
|
]
|
|
89008
88668
|
},
|
|
89009
88669
|
{
|
|
89010
88670
|
"kind": "javascript-module",
|
|
89011
|
-
"path": "dist/
|
|
88671
|
+
"path": "dist/switch/esp-switch.js",
|
|
89012
88672
|
"declarations": [
|
|
89013
88673
|
{
|
|
89014
88674
|
"kind": "class",
|
|
89015
|
-
"description": "
|
|
89016
|
-
"name": "
|
|
88675
|
+
"description": "An on/off switch for settings that take effect immediately. Use a\ncheckbox when the choice should be applied with a later form submission.\n\n```html\n<esp-box>\n <esp-form-item label=\"Notifications\">\n <esp-switch value=\"notifications\">\n Enable notifications\n </esp-switch>\n </esp-form-item>\n</esp-box>\n```\n\n```html\n<esp-box>\n <esp-switch checked value=\"dark-mode\">\n Dark mode\n </esp-switch>\n <esp-switch disabled value=\"disabled-opt\">\n Disabled option\n </esp-switch>\n</esp-box>\n```\n\n### Text mode\n\nSet `mode=\"text\"` with `off-label` and `on-label` to render a\ntwo-option text toggle instead of a track and thumb. This is\nideal for binary choices like a billing-period selector:\n\n```html\n<esp-box>\n <esp-switch\n mode=\"text\"\n off-label=\"Monthly\"\n on-label=\"Annual\"\n value=\"annual\"\n >Billing period</esp-switch>\n</esp-box>\n```\n\nThe slotted text is visually hidden in text mode and folded\ninto the control's accessible label together with the current\nselected option. Screen readers will announce both the label\nand the active choice while the `off-label` / `on-label`\ntext is presented visually.",
|
|
88676
|
+
"name": "EspalierSwitch",
|
|
89017
88677
|
"cssProperties": [
|
|
89018
88678
|
{
|
|
89019
|
-
"description": "
|
|
89020
|
-
"name": "--esp-
|
|
88679
|
+
"description": "The width of the switch track. Defaults to `calc(var(--esp-size-normal-to-medium) * 1.75)`.",
|
|
88680
|
+
"name": "--esp-switch-width"
|
|
88681
|
+
},
|
|
88682
|
+
{
|
|
88683
|
+
"description": "The height of the switch track. Defaults to `var(--esp-size-normal-to-medium)`.",
|
|
88684
|
+
"name": "--esp-switch-height"
|
|
88685
|
+
},
|
|
88686
|
+
{
|
|
88687
|
+
"description": "The diameter of the thumb. Defaults to `calc(var(--esp-switch-height) - 4px)`.",
|
|
88688
|
+
"name": "--esp-switch-thumb-size"
|
|
88689
|
+
},
|
|
88690
|
+
{
|
|
88691
|
+
"description": "The track background color when the switch is off. Defaults to `var(--esp-color-border)`.",
|
|
88692
|
+
"name": "--esp-switch-track-color"
|
|
88693
|
+
},
|
|
88694
|
+
{
|
|
88695
|
+
"description": "The track background color when the switch is on. Defaults to `var(--esp-color-action-background)`.",
|
|
88696
|
+
"name": "--esp-switch-track-color-on"
|
|
88697
|
+
},
|
|
88698
|
+
{
|
|
88699
|
+
"description": "The thumb color. Defaults to `var(--esp-color-layer-1)`.",
|
|
88700
|
+
"name": "--esp-switch-thumb-color"
|
|
88701
|
+
},
|
|
88702
|
+
{
|
|
88703
|
+
"description": "The color of the focus ring shadow. Defaults to `var(--esp-color-shadow)`.",
|
|
88704
|
+
"name": "--esp-switch-focus-shadow"
|
|
88705
|
+
},
|
|
88706
|
+
{
|
|
88707
|
+
"description": "Padding inside each text-mode label cell. Defaults to `var(--esp-size-tiny) var(--esp-size-small)`.",
|
|
88708
|
+
"name": "--esp-switch-text-padding"
|
|
88709
|
+
},
|
|
88710
|
+
{
|
|
88711
|
+
"description": "Font size for text-mode labels. Defaults to `var(--esp-size-font)`.",
|
|
88712
|
+
"name": "--esp-switch-text-font-size"
|
|
88713
|
+
},
|
|
88714
|
+
{
|
|
88715
|
+
"description": "Text color of the active label in text mode. Defaults to `var(--esp-color-action-text)`.",
|
|
88716
|
+
"name": "--esp-switch-text-active-color"
|
|
88717
|
+
},
|
|
88718
|
+
{
|
|
88719
|
+
"description": "Text color of the inactive label in text mode. Defaults to `var(--esp-color-layer-1)`.",
|
|
88720
|
+
"name": "--esp-switch-text-inactive-color"
|
|
88721
|
+
},
|
|
88722
|
+
{
|
|
88723
|
+
"description": "Background color of the sliding highlight in text mode. Defaults to `var(--esp-color-action-background)`.",
|
|
88724
|
+
"name": "--esp-switch-text-highlight-color"
|
|
89021
88725
|
},
|
|
89022
88726
|
{
|
|
89023
88727
|
"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.",
|
|
@@ -89076,42 +88780,131 @@
|
|
|
89076
88780
|
}
|
|
89077
88781
|
}
|
|
89078
88782
|
],
|
|
89079
|
-
"cssParts": [
|
|
89080
|
-
{
|
|
89081
|
-
"description": "The panel wrapper element.",
|
|
89082
|
-
"name": "panel"
|
|
89083
|
-
}
|
|
89084
|
-
],
|
|
89085
88783
|
"slots": [
|
|
89086
88784
|
{
|
|
89087
|
-
"description": "The
|
|
88785
|
+
"description": "The label text for the switch. In default mode this renders beside the track; in text mode it is visually hidden and included in the control's accessible label.",
|
|
89088
88786
|
"name": ""
|
|
89089
88787
|
}
|
|
89090
88788
|
],
|
|
89091
88789
|
"members": [
|
|
89092
88790
|
{
|
|
89093
88791
|
"kind": "field",
|
|
89094
|
-
"name": "
|
|
88792
|
+
"name": "formAssociated",
|
|
88793
|
+
"type": {
|
|
88794
|
+
"text": "boolean"
|
|
88795
|
+
},
|
|
88796
|
+
"static": true,
|
|
88797
|
+
"default": "true"
|
|
88798
|
+
},
|
|
88799
|
+
{
|
|
88800
|
+
"kind": "field",
|
|
88801
|
+
"name": "internals",
|
|
88802
|
+
"privacy": "private"
|
|
88803
|
+
},
|
|
88804
|
+
{
|
|
88805
|
+
"kind": "field",
|
|
88806
|
+
"name": "formCtrl",
|
|
88807
|
+
"privacy": "private",
|
|
88808
|
+
"default": "new FormFieldController({ host: this, internals: this.internals, getFormValue: () => (this.checked ? this.value || \"on\" : null), getValidity: () => { if (this.required && !this.checked) { return { flags: { valueMissing: true }, message: this.requiredMessage || \"Please toggle this switch to continue.\", }; } return null; }, onReset: () => { this.checked = false; }, onRestore: (state: string) => { this.checked = state === \"on\" || state === this.value; }, onDisabled: (isDisabled: boolean) => { this.disabled = isDisabled; }, })"
|
|
88809
|
+
},
|
|
88810
|
+
{
|
|
88811
|
+
"kind": "field",
|
|
88812
|
+
"name": "formItemDescription",
|
|
88813
|
+
"privacy": "private",
|
|
88814
|
+
"default": "new FormFieldDescriptionController({ host: this, getTarget: () => this.shadowRoot?.querySelector<HTMLElement>(\".switch-control\"), })"
|
|
88815
|
+
},
|
|
88816
|
+
{
|
|
88817
|
+
"kind": "field",
|
|
88818
|
+
"name": "mode",
|
|
88819
|
+
"type": {
|
|
88820
|
+
"text": "\"switch\" | \"text\""
|
|
88821
|
+
},
|
|
88822
|
+
"privacy": "public",
|
|
88823
|
+
"default": "\"switch\"",
|
|
88824
|
+
"description": "The visual presentation of the switch.\n- `\"switch\"` (default) renders a track-and-thumb toggle.\n- `\"text\"` renders two side-by-side text labels with a\n sliding highlight behind the active one.",
|
|
88825
|
+
"attribute": "mode",
|
|
88826
|
+
"reflects": true
|
|
88827
|
+
},
|
|
88828
|
+
{
|
|
88829
|
+
"kind": "field",
|
|
88830
|
+
"name": "offLabel",
|
|
89095
88831
|
"type": {
|
|
89096
88832
|
"text": "string"
|
|
89097
88833
|
},
|
|
89098
88834
|
"privacy": "public",
|
|
89099
88835
|
"default": "\"\"",
|
|
89100
|
-
"description": "
|
|
89101
|
-
"attribute": "label"
|
|
88836
|
+
"description": "Label shown for the unchecked (off) state when\n`mode=\"text\"`.",
|
|
88837
|
+
"attribute": "off-label"
|
|
89102
88838
|
},
|
|
89103
88839
|
{
|
|
89104
88840
|
"kind": "field",
|
|
89105
|
-
"name": "
|
|
88841
|
+
"name": "onLabel",
|
|
88842
|
+
"type": {
|
|
88843
|
+
"text": "string"
|
|
88844
|
+
},
|
|
88845
|
+
"privacy": "public",
|
|
88846
|
+
"default": "\"\"",
|
|
88847
|
+
"description": "Label shown for the checked (on) state when\n`mode=\"text\"`.",
|
|
88848
|
+
"attribute": "on-label"
|
|
88849
|
+
},
|
|
88850
|
+
{
|
|
88851
|
+
"kind": "field",
|
|
88852
|
+
"name": "checked",
|
|
89106
88853
|
"type": {
|
|
89107
88854
|
"text": "boolean"
|
|
89108
88855
|
},
|
|
89109
88856
|
"privacy": "public",
|
|
89110
88857
|
"default": "false",
|
|
89111
|
-
"description": "Whether
|
|
89112
|
-
"attribute": "
|
|
88858
|
+
"description": "Whether the switch is in the on state.",
|
|
88859
|
+
"attribute": "checked",
|
|
89113
88860
|
"reflects": true
|
|
89114
88861
|
},
|
|
88862
|
+
{
|
|
88863
|
+
"kind": "field",
|
|
88864
|
+
"name": "value",
|
|
88865
|
+
"type": {
|
|
88866
|
+
"text": "string"
|
|
88867
|
+
},
|
|
88868
|
+
"privacy": "public",
|
|
88869
|
+
"default": "\"\"",
|
|
88870
|
+
"description": "The value associated with this switch. Submitted with the\nform when the switch is on.",
|
|
88871
|
+
"attribute": "value"
|
|
88872
|
+
},
|
|
88873
|
+
{
|
|
88874
|
+
"kind": "field",
|
|
88875
|
+
"name": "name",
|
|
88876
|
+
"type": {
|
|
88877
|
+
"text": "string"
|
|
88878
|
+
},
|
|
88879
|
+
"privacy": "public",
|
|
88880
|
+
"default": "\"\"",
|
|
88881
|
+
"description": "The name used when the switch participates in a `<form>`.",
|
|
88882
|
+
"attribute": "name",
|
|
88883
|
+
"reflects": true
|
|
88884
|
+
},
|
|
88885
|
+
{
|
|
88886
|
+
"kind": "field",
|
|
88887
|
+
"name": "required",
|
|
88888
|
+
"type": {
|
|
88889
|
+
"text": "boolean"
|
|
88890
|
+
},
|
|
88891
|
+
"privacy": "public",
|
|
88892
|
+
"default": "false",
|
|
88893
|
+
"description": "When true, the switch must be on before the form can\nbe submitted.",
|
|
88894
|
+
"attribute": "required",
|
|
88895
|
+
"reflects": true
|
|
88896
|
+
},
|
|
88897
|
+
{
|
|
88898
|
+
"kind": "field",
|
|
88899
|
+
"name": "requiredMessage",
|
|
88900
|
+
"type": {
|
|
88901
|
+
"text": "string"
|
|
88902
|
+
},
|
|
88903
|
+
"privacy": "public",
|
|
88904
|
+
"default": "\"\"",
|
|
88905
|
+
"description": "A custom message to display when the switch is required but\nnot on. Defaults to `\"Please toggle this switch to continue.\"`\nwhen not set.\n\n```html\n<esp-switch required required-message=\"You must accept the terms.\">\n I accept\n</esp-switch>\n```",
|
|
88906
|
+
"attribute": "required-message"
|
|
88907
|
+
},
|
|
89115
88908
|
{
|
|
89116
88909
|
"kind": "field",
|
|
89117
88910
|
"name": "disabled",
|
|
@@ -89120,10 +88913,156 @@
|
|
|
89120
88913
|
},
|
|
89121
88914
|
"privacy": "public",
|
|
89122
88915
|
"default": "false",
|
|
89123
|
-
"description": "
|
|
88916
|
+
"description": "Controls whether the switch is disabled.",
|
|
89124
88917
|
"attribute": "disabled",
|
|
89125
88918
|
"reflects": true
|
|
89126
88919
|
},
|
|
88920
|
+
{
|
|
88921
|
+
"kind": "method",
|
|
88922
|
+
"name": "focus",
|
|
88923
|
+
"privacy": "public",
|
|
88924
|
+
"return": {
|
|
88925
|
+
"type": {
|
|
88926
|
+
"text": "void"
|
|
88927
|
+
}
|
|
88928
|
+
},
|
|
88929
|
+
"parameters": [
|
|
88930
|
+
{
|
|
88931
|
+
"name": "options",
|
|
88932
|
+
"optional": true,
|
|
88933
|
+
"type": {
|
|
88934
|
+
"text": "FocusOptions"
|
|
88935
|
+
}
|
|
88936
|
+
}
|
|
88937
|
+
],
|
|
88938
|
+
"description": "Focus the switch control."
|
|
88939
|
+
},
|
|
88940
|
+
{
|
|
88941
|
+
"kind": "method",
|
|
88942
|
+
"name": "validate",
|
|
88943
|
+
"privacy": "public",
|
|
88944
|
+
"return": {
|
|
88945
|
+
"type": {
|
|
88946
|
+
"text": "void"
|
|
88947
|
+
}
|
|
88948
|
+
},
|
|
88949
|
+
"description": "Re-run constraint validation and dispatch `esp-validity-changed`."
|
|
88950
|
+
},
|
|
88951
|
+
{
|
|
88952
|
+
"kind": "method",
|
|
88953
|
+
"name": "checkValidity",
|
|
88954
|
+
"privacy": "public",
|
|
88955
|
+
"return": {
|
|
88956
|
+
"type": {
|
|
88957
|
+
"text": "boolean"
|
|
88958
|
+
}
|
|
88959
|
+
},
|
|
88960
|
+
"description": "Check whether the current state is valid (delegates to ElementInternals)."
|
|
88961
|
+
},
|
|
88962
|
+
{
|
|
88963
|
+
"kind": "method",
|
|
88964
|
+
"name": "toggle",
|
|
88965
|
+
"privacy": "private",
|
|
88966
|
+
"return": {
|
|
88967
|
+
"type": {
|
|
88968
|
+
"text": "void"
|
|
88969
|
+
}
|
|
88970
|
+
}
|
|
88971
|
+
},
|
|
88972
|
+
{
|
|
88973
|
+
"kind": "method",
|
|
88974
|
+
"name": "handleKeyDown",
|
|
88975
|
+
"privacy": "private",
|
|
88976
|
+
"return": {
|
|
88977
|
+
"type": {
|
|
88978
|
+
"text": "void"
|
|
88979
|
+
}
|
|
88980
|
+
},
|
|
88981
|
+
"parameters": [
|
|
88982
|
+
{
|
|
88983
|
+
"name": "ev",
|
|
88984
|
+
"type": {
|
|
88985
|
+
"text": "KeyboardEvent"
|
|
88986
|
+
}
|
|
88987
|
+
}
|
|
88988
|
+
]
|
|
88989
|
+
},
|
|
88990
|
+
{
|
|
88991
|
+
"kind": "method",
|
|
88992
|
+
"name": "handleLabelSlotChange",
|
|
88993
|
+
"privacy": "private",
|
|
88994
|
+
"return": {
|
|
88995
|
+
"type": {
|
|
88996
|
+
"text": "void"
|
|
88997
|
+
}
|
|
88998
|
+
}
|
|
88999
|
+
},
|
|
89000
|
+
{
|
|
89001
|
+
"kind": "method",
|
|
89002
|
+
"name": "getCurrentTextModeLabel",
|
|
89003
|
+
"privacy": "private",
|
|
89004
|
+
"return": {
|
|
89005
|
+
"type": {
|
|
89006
|
+
"text": "string"
|
|
89007
|
+
}
|
|
89008
|
+
}
|
|
89009
|
+
},
|
|
89010
|
+
{
|
|
89011
|
+
"kind": "method",
|
|
89012
|
+
"name": "getTextModeAriaLabel",
|
|
89013
|
+
"privacy": "private",
|
|
89014
|
+
"return": {
|
|
89015
|
+
"type": {
|
|
89016
|
+
"text": "string"
|
|
89017
|
+
}
|
|
89018
|
+
}
|
|
89019
|
+
},
|
|
89020
|
+
{
|
|
89021
|
+
"kind": "method",
|
|
89022
|
+
"name": "formResetCallback",
|
|
89023
|
+
"return": {
|
|
89024
|
+
"type": {
|
|
89025
|
+
"text": "void"
|
|
89026
|
+
}
|
|
89027
|
+
},
|
|
89028
|
+
"description": "Called by the browser when the owning `<form>` is reset."
|
|
89029
|
+
},
|
|
89030
|
+
{
|
|
89031
|
+
"kind": "method",
|
|
89032
|
+
"name": "formStateRestoreCallback",
|
|
89033
|
+
"return": {
|
|
89034
|
+
"type": {
|
|
89035
|
+
"text": "void"
|
|
89036
|
+
}
|
|
89037
|
+
},
|
|
89038
|
+
"parameters": [
|
|
89039
|
+
{
|
|
89040
|
+
"name": "state",
|
|
89041
|
+
"type": {
|
|
89042
|
+
"text": "string"
|
|
89043
|
+
}
|
|
89044
|
+
}
|
|
89045
|
+
],
|
|
89046
|
+
"description": "Called by the browser to restore form state (bfcache, etc.)."
|
|
89047
|
+
},
|
|
89048
|
+
{
|
|
89049
|
+
"kind": "method",
|
|
89050
|
+
"name": "formDisabledCallback",
|
|
89051
|
+
"return": {
|
|
89052
|
+
"type": {
|
|
89053
|
+
"text": "void"
|
|
89054
|
+
}
|
|
89055
|
+
},
|
|
89056
|
+
"parameters": [
|
|
89057
|
+
{
|
|
89058
|
+
"name": "isDisabled",
|
|
89059
|
+
"type": {
|
|
89060
|
+
"text": "boolean"
|
|
89061
|
+
}
|
|
89062
|
+
}
|
|
89063
|
+
],
|
|
89064
|
+
"description": "Called by the browser when a parent `<fieldset>` is enabled or disabled."
|
|
89065
|
+
},
|
|
89127
89066
|
{
|
|
89128
89067
|
"kind": "field",
|
|
89129
89068
|
"name": "seedColorBacker",
|
|
@@ -89849,25 +89788,94 @@
|
|
|
89849
89788
|
}
|
|
89850
89789
|
}
|
|
89851
89790
|
],
|
|
89852
|
-
"events": [
|
|
89791
|
+
"events": [
|
|
89792
|
+
{
|
|
89793
|
+
"type": {
|
|
89794
|
+
"text": "CustomEvent<{ checked: boolean; value: string }>"
|
|
89795
|
+
},
|
|
89796
|
+
"description": "Fired when the switch is toggled. The detail contains the new `checked` state and the switch `value`.",
|
|
89797
|
+
"name": "esp-value-changed"
|
|
89798
|
+
},
|
|
89799
|
+
{
|
|
89800
|
+
"type": {
|
|
89801
|
+
"text": "CustomEvent<{ valid: boolean; message: string }>"
|
|
89802
|
+
},
|
|
89803
|
+
"description": "Fired whenever constraint validation runs.",
|
|
89804
|
+
"name": "esp-validity-changed"
|
|
89805
|
+
}
|
|
89806
|
+
],
|
|
89853
89807
|
"attributes": [
|
|
89854
89808
|
{
|
|
89855
|
-
"name": "
|
|
89809
|
+
"name": "mode",
|
|
89810
|
+
"type": {
|
|
89811
|
+
"text": "\"switch\" | \"text\""
|
|
89812
|
+
},
|
|
89813
|
+
"default": "\"switch\"",
|
|
89814
|
+
"description": "The visual presentation of the switch.\n- `\"switch\"` (default) renders a track-and-thumb toggle.\n- `\"text\"` renders two side-by-side text labels with a\n sliding highlight behind the active one.",
|
|
89815
|
+
"fieldName": "mode"
|
|
89816
|
+
},
|
|
89817
|
+
{
|
|
89818
|
+
"name": "off-label",
|
|
89856
89819
|
"type": {
|
|
89857
89820
|
"text": "string"
|
|
89858
89821
|
},
|
|
89859
89822
|
"default": "\"\"",
|
|
89860
|
-
"description": "
|
|
89861
|
-
"fieldName": "
|
|
89823
|
+
"description": "Label shown for the unchecked (off) state when\n`mode=\"text\"`.",
|
|
89824
|
+
"fieldName": "offLabel"
|
|
89862
89825
|
},
|
|
89863
89826
|
{
|
|
89864
|
-
"name": "
|
|
89827
|
+
"name": "on-label",
|
|
89828
|
+
"type": {
|
|
89829
|
+
"text": "string"
|
|
89830
|
+
},
|
|
89831
|
+
"default": "\"\"",
|
|
89832
|
+
"description": "Label shown for the checked (on) state when\n`mode=\"text\"`.",
|
|
89833
|
+
"fieldName": "onLabel"
|
|
89834
|
+
},
|
|
89835
|
+
{
|
|
89836
|
+
"name": "checked",
|
|
89865
89837
|
"type": {
|
|
89866
89838
|
"text": "boolean"
|
|
89867
89839
|
},
|
|
89868
89840
|
"default": "false",
|
|
89869
|
-
"description": "Whether
|
|
89870
|
-
"fieldName": "
|
|
89841
|
+
"description": "Whether the switch is in the on state.",
|
|
89842
|
+
"fieldName": "checked"
|
|
89843
|
+
},
|
|
89844
|
+
{
|
|
89845
|
+
"name": "value",
|
|
89846
|
+
"type": {
|
|
89847
|
+
"text": "string"
|
|
89848
|
+
},
|
|
89849
|
+
"default": "\"\"",
|
|
89850
|
+
"description": "The value associated with this switch. Submitted with the\nform when the switch is on.",
|
|
89851
|
+
"fieldName": "value"
|
|
89852
|
+
},
|
|
89853
|
+
{
|
|
89854
|
+
"name": "name",
|
|
89855
|
+
"type": {
|
|
89856
|
+
"text": "string"
|
|
89857
|
+
},
|
|
89858
|
+
"default": "\"\"",
|
|
89859
|
+
"description": "The name used when the switch participates in a `<form>`.",
|
|
89860
|
+
"fieldName": "name"
|
|
89861
|
+
},
|
|
89862
|
+
{
|
|
89863
|
+
"name": "required",
|
|
89864
|
+
"type": {
|
|
89865
|
+
"text": "boolean"
|
|
89866
|
+
},
|
|
89867
|
+
"default": "false",
|
|
89868
|
+
"description": "When true, the switch must be on before the form can\nbe submitted.",
|
|
89869
|
+
"fieldName": "required"
|
|
89870
|
+
},
|
|
89871
|
+
{
|
|
89872
|
+
"name": "required-message",
|
|
89873
|
+
"type": {
|
|
89874
|
+
"text": "string"
|
|
89875
|
+
},
|
|
89876
|
+
"default": "\"\"",
|
|
89877
|
+
"description": "A custom message to display when the switch is required but\nnot on. Defaults to `\"Please toggle this switch to continue.\"`\nwhen not set.\n\n```html\n<esp-switch required required-message=\"You must accept the terms.\">\n I accept\n</esp-switch>\n```",
|
|
89878
|
+
"fieldName": "requiredMessage"
|
|
89871
89879
|
},
|
|
89872
89880
|
{
|
|
89873
89881
|
"name": "disabled",
|
|
@@ -89875,7 +89883,7 @@
|
|
|
89875
89883
|
"text": "boolean"
|
|
89876
89884
|
},
|
|
89877
89885
|
"default": "false",
|
|
89878
|
-
"description": "
|
|
89886
|
+
"description": "Controls whether the switch is disabled.",
|
|
89879
89887
|
"fieldName": "disabled"
|
|
89880
89888
|
},
|
|
89881
89889
|
{
|
|
@@ -89931,37 +89939,45 @@
|
|
|
89931
89939
|
"name": "EspalierElementBase",
|
|
89932
89940
|
"module": "dist/shared/esp-element-base.js"
|
|
89933
89941
|
},
|
|
89934
|
-
"tagName": "esp-tab",
|
|
89935
|
-
"customElement": true,
|
|
89936
89942
|
"docPageTitle": {
|
|
89937
|
-
"name": "
|
|
89943
|
+
"name": "Switch",
|
|
89938
89944
|
"description": ""
|
|
89939
89945
|
},
|
|
89940
89946
|
"docUrl": {
|
|
89941
|
-
"name": "/components/
|
|
89947
|
+
"name": "/components/switch",
|
|
89942
89948
|
"description": ""
|
|
89943
89949
|
},
|
|
89944
89950
|
"menuGroup": {
|
|
89945
|
-
"name": "
|
|
89951
|
+
"name": "Form",
|
|
89952
|
+
"description": "Controls"
|
|
89953
|
+
},
|
|
89954
|
+
"menuLabel": {
|
|
89955
|
+
"name": "Switch",
|
|
89946
89956
|
"description": ""
|
|
89947
|
-
}
|
|
89957
|
+
},
|
|
89958
|
+
"menuIcon": {
|
|
89959
|
+
"name": "button",
|
|
89960
|
+
"description": ""
|
|
89961
|
+
},
|
|
89962
|
+
"tagName": "esp-switch",
|
|
89963
|
+
"customElement": true
|
|
89948
89964
|
}
|
|
89949
89965
|
],
|
|
89950
89966
|
"exports": [
|
|
89951
89967
|
{
|
|
89952
89968
|
"kind": "js",
|
|
89953
|
-
"name": "
|
|
89969
|
+
"name": "EspalierSwitch",
|
|
89954
89970
|
"declaration": {
|
|
89955
|
-
"name": "
|
|
89956
|
-
"module": "dist/
|
|
89971
|
+
"name": "EspalierSwitch",
|
|
89972
|
+
"module": "dist/switch/esp-switch.js"
|
|
89957
89973
|
}
|
|
89958
89974
|
},
|
|
89959
89975
|
{
|
|
89960
89976
|
"kind": "custom-element-definition",
|
|
89961
|
-
"name": "esp-
|
|
89977
|
+
"name": "esp-switch",
|
|
89962
89978
|
"declaration": {
|
|
89963
|
-
"name": "
|
|
89964
|
-
"module": "dist/
|
|
89979
|
+
"name": "EspalierSwitch",
|
|
89980
|
+
"module": "dist/switch/esp-switch.js"
|
|
89965
89981
|
}
|
|
89966
89982
|
}
|
|
89967
89983
|
]
|