@taprootio/espalier 4.15.0 → 4.16.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 +12 -0
- package/custom-elements.json +871 -847
- package/dist/breadcrumbs/esp-breadcrumb.d.ts +20 -4
- package/dist/breadcrumbs/esp-breadcrumb.js +20 -6
- package/dist/breadcrumbs/esp-breadcrumbs.d.ts +16 -2
- package/dist/breadcrumbs/esp-breadcrumbs.js +6 -7
- package/dist/button/esp-button.js +29 -10
- package/dist/tabs/esp-tab-group.js +15 -5
- package/espalier.css-data.json +11 -3
- package/espalier.token-manifest.json +16 -4
- package/package.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -8499,12 +8499,24 @@
|
|
|
8499
8499
|
"name": "EspalierBreadcrumb",
|
|
8500
8500
|
"cssProperties": [
|
|
8501
8501
|
{
|
|
8502
|
-
"description": "The text color of the breadcrumb link.",
|
|
8502
|
+
"description": "The text color of the breadcrumb link. Defaults to `var(--esp-color-link)`, so a trail reads as navigation in the same ink as the links in the surrounding content.",
|
|
8503
8503
|
"name": "--esp-breadcrumb-color"
|
|
8504
8504
|
},
|
|
8505
8505
|
{
|
|
8506
|
-
"description": "The text color on hover.",
|
|
8506
|
+
"description": "The text color on hover. Defaults to `var(--esp-color-link-hover)`.",
|
|
8507
8507
|
"name": "--esp-breadcrumb-hover-color"
|
|
8508
|
+
},
|
|
8509
|
+
{
|
|
8510
|
+
"description": "The background behind a hovered link. Defaults to `var(--esp-color-link-hover-bg)`.",
|
|
8511
|
+
"name": "--esp-breadcrumb-hover-background"
|
|
8512
|
+
},
|
|
8513
|
+
{
|
|
8514
|
+
"description": "The text color of the current-page crumb, which is not a link. Defaults to `--esp-breadcrumb-color` when that is set, then to `var(--esp-color-headings)`, keeping the current page distinct from the links beside it.",
|
|
8515
|
+
"name": "--esp-breadcrumb-current-color"
|
|
8516
|
+
},
|
|
8517
|
+
{
|
|
8518
|
+
"description": "The color of the separator icons. Defaults to `oklch(from var(--esp-color-link) l c calc(h + 90))`, an accent that takes the link ink's scheme-adapted lightness and chroma at a different hue, so the arrows are their own color rather than the heading color. Set it on `esp-breadcrumbs` to recolor a whole trail, or on one `esp-breadcrumb` to recolor a single arrow.",
|
|
8519
|
+
"name": "--esp-breadcrumb-separator-color"
|
|
8508
8520
|
}
|
|
8509
8521
|
],
|
|
8510
8522
|
"members": [
|
|
@@ -8549,13 +8561,14 @@
|
|
|
8549
8561
|
},
|
|
8550
8562
|
"privacy": "public",
|
|
8551
8563
|
"default": "false",
|
|
8552
|
-
"description": "
|
|
8564
|
+
"description": "Marks this crumb as the end of the trail. The parent\n`esp-breadcrumbs` sets it to pick the down-arrow separator and\nthe current-crumb styling. It does not decide link versus label —\na crumb that carries a `url` stays clickable wherever it sits, so\na trail can end at its deepest folder.",
|
|
8553
8565
|
"attribute": "is-last-element"
|
|
8554
8566
|
},
|
|
8555
8567
|
{
|
|
8556
8568
|
"kind": "method",
|
|
8557
8569
|
"name": "_renderLink",
|
|
8558
|
-
"privacy": "private"
|
|
8570
|
+
"privacy": "private",
|
|
8571
|
+
"description": "A crumb points somewhere or it is the current page. Only the\nlatter renders as a label.\n\nThis replaced an older rule where the *last* crumb was always a\nlabel regardless of its `url`, so the same markup can render\ndifferently than it did before 4.16.0. That shipped as a minor\nbump on purpose, and reviewers have asked about it: the public\nsurface is additive — no property, attribute, event, slot, or\ncustom property was removed or renamed — and the previous\nrendering stays reachable by omitting `url`, which is what a\ncurrent-page crumb should do anyway. See ESP0215 for the full\nrationale before re-litigating it."
|
|
8559
8572
|
}
|
|
8560
8573
|
],
|
|
8561
8574
|
"attributes": [
|
|
@@ -8592,7 +8605,7 @@
|
|
|
8592
8605
|
"text": "boolean"
|
|
8593
8606
|
},
|
|
8594
8607
|
"default": "false",
|
|
8595
|
-
"description": "
|
|
8608
|
+
"description": "Marks this crumb as the end of the trail. The parent\n`esp-breadcrumbs` sets it to pick the down-arrow separator and\nthe current-crumb styling. It does not decide link versus label —\na crumb that carries a `url` stays clickable wherever it sits, so\na trail can end at its deepest folder.",
|
|
8596
8609
|
"fieldName": "isLastElement"
|
|
8597
8610
|
}
|
|
8598
8611
|
],
|
|
@@ -8641,11 +8654,11 @@
|
|
|
8641
8654
|
"declarations": [
|
|
8642
8655
|
{
|
|
8643
8656
|
"kind": "class",
|
|
8644
|
-
"description": "Used to display breadcrumb navigation. By default, the breadcrumbs\nwill be separated by right-arrows, with the final item having a\ndown-arrow after it.\n[esp-breadcrumb](/components/breadcrumbs/breadcrumb) instances\nshould be placed in the default slot to build out the navigation.\n\n```html\n<esp-breadcrumbs>\n <esp-breadcrumb label=\"One\" url=\"#\"></esp-breadcrumb>\n <esp-breadcrumb label=\"Two\" url=\"#\"></esp-breadcrumb>\n <esp-breadcrumb label=\"Three\" url=\"#\"></esp-breadcrumb>\n</esp-breadcrumbs>\n```\n\nCustom separators can be specified in the `<esp-breadcrumb>`:\n\n```html\n<esp-breadcrumbs>\n <esp-breadcrumb label=\"One\" url=\"#\"\n separator=\"<svg><use href='/assets/icons.svg#rocket' /></svg>\">\n </esp-breadcrumb>\n <esp-breadcrumb label=\"Two\" url=\"#\"\n separator=\"<svg><use href='/assets/icons.svg#rocket' /></svg>\">\n </esp-breadcrumb>\n <esp-breadcrumb label=\"Three\" url=\"#\"\n separator=\"<svg><use href='/assets/icons.svg#flower' /></svg>\">\n </esp-breadcrumb>\n</esp-breadcrumbs>\n```",
|
|
8657
|
+
"description": "Used to display breadcrumb navigation. By default, the breadcrumbs\nwill be separated by right-arrows, with the final item having a\ndown-arrow after it.\n[esp-breadcrumb](/components/breadcrumbs/breadcrumb) instances\nshould be placed in the default slot to build out the navigation.\n\n```html\n<esp-breadcrumbs>\n <esp-breadcrumb label=\"One\" url=\"#\"></esp-breadcrumb>\n <esp-breadcrumb label=\"Two\" url=\"#\"></esp-breadcrumb>\n <esp-breadcrumb label=\"Three\" url=\"#\"></esp-breadcrumb>\n</esp-breadcrumbs>\n```\n\nEvery crumb with a `url` is a link, including the last one — a trail\nmay end at the deepest folder rather than at the current page. Leave\n`url` off a crumb to render it as the italic current-page label:\n\n```html\n<esp-breadcrumbs>\n <esp-breadcrumb label=\"Code\" url=\"/code\"></esp-breadcrumb>\n <esp-breadcrumb label=\"This page\"></esp-breadcrumb>\n</esp-breadcrumbs>\n```\n\nCustom separators can be specified in the `<esp-breadcrumb>`:\n\n```html\n<esp-breadcrumbs>\n <esp-breadcrumb label=\"One\" url=\"#\"\n separator=\"<svg><use href='/assets/icons.svg#rocket' /></svg>\">\n </esp-breadcrumb>\n <esp-breadcrumb label=\"Two\" url=\"#\"\n separator=\"<svg><use href='/assets/icons.svg#rocket' /></svg>\">\n </esp-breadcrumb>\n <esp-breadcrumb label=\"Three\" url=\"#\"\n separator=\"<svg><use href='/assets/icons.svg#flower' /></svg>\">\n </esp-breadcrumb>\n</esp-breadcrumbs>\n```",
|
|
8645
8658
|
"name": "EspalierBreadcrumbs",
|
|
8646
8659
|
"cssProperties": [
|
|
8647
8660
|
{
|
|
8648
|
-
"description": "
|
|
8661
|
+
"description": "The color of the separator icons. Defaults to `oklch(from var(--esp-color-link) l c calc(h + 90))`, an accent that takes the link ink's scheme-adapted lightness and chroma at a different hue, so the arrows are their own color rather than the heading color. Set it on `esp-breadcrumbs` to recolor a whole trail, or on one `esp-breadcrumb` to recolor a single arrow. ```html <style> esp-breadcrumbs#custom-crumb { --esp-breadcrumb-separator-color: red; } </style> <esp-breadcrumbs id=\"custom-crumb\"> <esp-breadcrumb label=\"One\" url=\"#\" separator=\"<svg><use href='/assets/icons.svg#rocket' /></svg>\"> </esp-breadcrumb> <esp-breadcrumb label=\"Two\" url=\"#\" separator=\"<svg><use href='/assets/icons.svg#rocket' /></svg>\"> </esp-breadcrumb> <esp-breadcrumb label=\"Three\" url=\"#\" separator=\"<svg><use href='/assets/icons.svg#flower' /></svg>\"> </esp-breadcrumb> </esp-breadcrumbs> ```",
|
|
8649
8662
|
"name": "--esp-breadcrumb-separator-color"
|
|
8650
8663
|
},
|
|
8651
8664
|
{
|
|
@@ -8717,6 +8730,17 @@
|
|
|
8717
8730
|
"name": "itemsSlot",
|
|
8718
8731
|
"privacy": "private"
|
|
8719
8732
|
},
|
|
8733
|
+
{
|
|
8734
|
+
"kind": "method",
|
|
8735
|
+
"name": "assignSeparators",
|
|
8736
|
+
"privacy": "private",
|
|
8737
|
+
"return": {
|
|
8738
|
+
"type": {
|
|
8739
|
+
"text": "void"
|
|
8740
|
+
}
|
|
8741
|
+
},
|
|
8742
|
+
"description": "Point every crumb's arrow at the next one and mark the end of the\ntrail.\n\n`isLastElement` is set for every crumb, including one that supplies\nits own separator — that flag drives the current-crumb styling, not\njust the arrow, so skipping it left a custom-separator crumb unable\nto end a trail. Only the arrow itself defers to a custom separator.\n\nA crumb already carrying one of the two arrows below is one this\nelement wrote, so re-pointing it is safe; anything else is the\nconsumer's and is left alone, whenever they set it.\n\nThe emptiness test is a truthiness check rather than a length: Lit\nsets a `type: String` property to `null` when its attribute is\nremoved, and reading `.length` off that throws — reachable as soon\nas this runs again on a slot change."
|
|
8743
|
+
},
|
|
8720
8744
|
{
|
|
8721
8745
|
"kind": "field",
|
|
8722
8746
|
"name": "seedColorBacker",
|
|
@@ -84934,60 +84958,40 @@
|
|
|
84934
84958
|
},
|
|
84935
84959
|
{
|
|
84936
84960
|
"kind": "javascript-module",
|
|
84937
|
-
"path": "dist/
|
|
84961
|
+
"path": "dist/tabs/esp-tab-group.js",
|
|
84938
84962
|
"declarations": [
|
|
84939
84963
|
{
|
|
84940
84964
|
"kind": "class",
|
|
84941
|
-
"description": "A
|
|
84942
|
-
"name": "
|
|
84965
|
+
"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\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```",
|
|
84966
|
+
"name": "EspalierTabGroup",
|
|
84943
84967
|
"cssProperties": [
|
|
84944
84968
|
{
|
|
84945
|
-
"description": "
|
|
84946
|
-
"name": "--esp-
|
|
84947
|
-
},
|
|
84948
|
-
{
|
|
84949
|
-
"description": "The height of the switch track. Defaults to `var(--esp-size-normal-to-medium)`.",
|
|
84950
|
-
"name": "--esp-switch-height"
|
|
84951
|
-
},
|
|
84952
|
-
{
|
|
84953
|
-
"description": "The diameter of the thumb. Defaults to `calc(var(--esp-switch-height) - 4px)`.",
|
|
84954
|
-
"name": "--esp-switch-thumb-size"
|
|
84955
|
-
},
|
|
84956
|
-
{
|
|
84957
|
-
"description": "The track background color when the switch is off. Defaults to `var(--esp-color-border)`.",
|
|
84958
|
-
"name": "--esp-switch-track-color"
|
|
84959
|
-
},
|
|
84960
|
-
{
|
|
84961
|
-
"description": "The track background color when the switch is on. Defaults to `var(--esp-color-action-background)`.",
|
|
84962
|
-
"name": "--esp-switch-track-color-on"
|
|
84963
|
-
},
|
|
84964
|
-
{
|
|
84965
|
-
"description": "The thumb color. Defaults to `var(--esp-color-layer-1)`.",
|
|
84966
|
-
"name": "--esp-switch-thumb-color"
|
|
84969
|
+
"description": "Border color of the tab group container.",
|
|
84970
|
+
"name": "--esp-tab-color-border"
|
|
84967
84971
|
},
|
|
84968
84972
|
{
|
|
84969
|
-
"description": "
|
|
84970
|
-
"name": "--esp-
|
|
84973
|
+
"description": "Background color of the overall component.",
|
|
84974
|
+
"name": "--esp-tab-color-background"
|
|
84971
84975
|
},
|
|
84972
84976
|
{
|
|
84973
|
-
"description": "
|
|
84974
|
-
"name": "--esp-
|
|
84977
|
+
"description": "Background color of the tab strip.",
|
|
84978
|
+
"name": "--esp-tab-color-strip-background"
|
|
84975
84979
|
},
|
|
84976
84980
|
{
|
|
84977
|
-
"description": "
|
|
84978
|
-
"name": "--esp-
|
|
84981
|
+
"description": "Tab button hover background.",
|
|
84982
|
+
"name": "--esp-tab-color-button-hover"
|
|
84979
84983
|
},
|
|
84980
84984
|
{
|
|
84981
|
-
"description": "
|
|
84982
|
-
"name": "--esp-
|
|
84985
|
+
"description": "Active tab button background.",
|
|
84986
|
+
"name": "--esp-tab-color-button-active"
|
|
84983
84987
|
},
|
|
84984
84988
|
{
|
|
84985
|
-
"description": "Text color
|
|
84986
|
-
"name": "--esp-
|
|
84989
|
+
"description": "Text color for tab buttons.",
|
|
84990
|
+
"name": "--esp-tab-color-text"
|
|
84987
84991
|
},
|
|
84988
84992
|
{
|
|
84989
|
-
"description": "
|
|
84990
|
-
"name": "--esp-
|
|
84993
|
+
"description": "Padding inside the panel area and tab buttons.",
|
|
84994
|
+
"name": "--esp-tab-size-padding"
|
|
84991
84995
|
},
|
|
84992
84996
|
{
|
|
84993
84997
|
"description": "Background color of the shared field shell. Defaults to `var(--esp-color-layer-2)`.",
|
|
@@ -85046,194 +85050,108 @@
|
|
|
85046
85050
|
}
|
|
85047
85051
|
}
|
|
85048
85052
|
],
|
|
85053
|
+
"cssParts": [
|
|
85054
|
+
{
|
|
85055
|
+
"description": "The tab strip container.",
|
|
85056
|
+
"name": "tab-list"
|
|
85057
|
+
},
|
|
85058
|
+
{
|
|
85059
|
+
"description": "Each individual tab button in the strip.",
|
|
85060
|
+
"name": "tab-button"
|
|
85061
|
+
},
|
|
85062
|
+
{
|
|
85063
|
+
"description": "The panel area below the tab strip.",
|
|
85064
|
+
"name": "panels"
|
|
85065
|
+
}
|
|
85066
|
+
],
|
|
85049
85067
|
"slots": [
|
|
85050
85068
|
{
|
|
85051
|
-
"description": "
|
|
85069
|
+
"description": "Place `esp-tab` elements in the default slot.",
|
|
85052
85070
|
"name": ""
|
|
85053
85071
|
}
|
|
85054
85072
|
],
|
|
85055
85073
|
"members": [
|
|
85056
85074
|
{
|
|
85057
85075
|
"kind": "field",
|
|
85058
|
-
"name": "
|
|
85059
|
-
"type": {
|
|
85060
|
-
"text": "boolean"
|
|
85061
|
-
},
|
|
85062
|
-
"static": true,
|
|
85063
|
-
"default": "true"
|
|
85064
|
-
},
|
|
85065
|
-
{
|
|
85066
|
-
"kind": "field",
|
|
85067
|
-
"name": "internals",
|
|
85076
|
+
"name": "panelsSlot",
|
|
85068
85077
|
"privacy": "private"
|
|
85069
85078
|
},
|
|
85070
85079
|
{
|
|
85071
85080
|
"kind": "field",
|
|
85072
|
-
"name": "
|
|
85073
|
-
"privacy": "private",
|
|
85074
|
-
"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; }, })"
|
|
85075
|
-
},
|
|
85076
|
-
{
|
|
85077
|
-
"kind": "field",
|
|
85078
|
-
"name": "formItemDescription",
|
|
85079
|
-
"privacy": "private",
|
|
85080
|
-
"default": "new FormFieldDescriptionController({ host: this, getTarget: () => this.shadowRoot?.querySelector<HTMLElement>(\".switch-control\"), })"
|
|
85081
|
-
},
|
|
85082
|
-
{
|
|
85083
|
-
"kind": "field",
|
|
85084
|
-
"name": "mode",
|
|
85085
|
-
"type": {
|
|
85086
|
-
"text": "\"switch\" | \"text\""
|
|
85087
|
-
},
|
|
85088
|
-
"privacy": "public",
|
|
85089
|
-
"default": "\"switch\"",
|
|
85090
|
-
"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.",
|
|
85091
|
-
"attribute": "mode",
|
|
85092
|
-
"reflects": true
|
|
85093
|
-
},
|
|
85094
|
-
{
|
|
85095
|
-
"kind": "field",
|
|
85096
|
-
"name": "offLabel",
|
|
85097
|
-
"type": {
|
|
85098
|
-
"text": "string"
|
|
85099
|
-
},
|
|
85100
|
-
"privacy": "public",
|
|
85101
|
-
"default": "\"\"",
|
|
85102
|
-
"description": "Label shown for the unchecked (off) state when\n`mode=\"text\"`.",
|
|
85103
|
-
"attribute": "off-label"
|
|
85104
|
-
},
|
|
85105
|
-
{
|
|
85106
|
-
"kind": "field",
|
|
85107
|
-
"name": "onLabel",
|
|
85108
|
-
"type": {
|
|
85109
|
-
"text": "string"
|
|
85110
|
-
},
|
|
85111
|
-
"privacy": "public",
|
|
85112
|
-
"default": "\"\"",
|
|
85113
|
-
"description": "Label shown for the checked (on) state when\n`mode=\"text\"`.",
|
|
85114
|
-
"attribute": "on-label"
|
|
85115
|
-
},
|
|
85116
|
-
{
|
|
85117
|
-
"kind": "field",
|
|
85118
|
-
"name": "checked",
|
|
85119
|
-
"type": {
|
|
85120
|
-
"text": "boolean"
|
|
85121
|
-
},
|
|
85122
|
-
"privacy": "public",
|
|
85123
|
-
"default": "false",
|
|
85124
|
-
"description": "Whether the switch is in the on state.",
|
|
85125
|
-
"attribute": "checked",
|
|
85126
|
-
"reflects": true
|
|
85127
|
-
},
|
|
85128
|
-
{
|
|
85129
|
-
"kind": "field",
|
|
85130
|
-
"name": "value",
|
|
85131
|
-
"type": {
|
|
85132
|
-
"text": "string"
|
|
85133
|
-
},
|
|
85134
|
-
"privacy": "public",
|
|
85135
|
-
"default": "\"\"",
|
|
85136
|
-
"description": "The value associated with this switch. Submitted with the\nform when the switch is on.",
|
|
85137
|
-
"attribute": "value"
|
|
85138
|
-
},
|
|
85139
|
-
{
|
|
85140
|
-
"kind": "field",
|
|
85141
|
-
"name": "name",
|
|
85142
|
-
"type": {
|
|
85143
|
-
"text": "string"
|
|
85144
|
-
},
|
|
85145
|
-
"privacy": "public",
|
|
85146
|
-
"default": "\"\"",
|
|
85147
|
-
"description": "The name used when the switch participates in a `<form>`.",
|
|
85148
|
-
"attribute": "name",
|
|
85149
|
-
"reflects": true
|
|
85150
|
-
},
|
|
85151
|
-
{
|
|
85152
|
-
"kind": "field",
|
|
85153
|
-
"name": "required",
|
|
85081
|
+
"name": "disabled",
|
|
85154
85082
|
"type": {
|
|
85155
85083
|
"text": "boolean"
|
|
85156
85084
|
},
|
|
85157
85085
|
"privacy": "public",
|
|
85158
85086
|
"default": "false",
|
|
85159
|
-
"description": "
|
|
85160
|
-
"attribute": "
|
|
85087
|
+
"description": "Disables all tabs in the group, preventing any tab from\nbeing selected.",
|
|
85088
|
+
"attribute": "disabled",
|
|
85161
85089
|
"reflects": true
|
|
85162
85090
|
},
|
|
85163
85091
|
{
|
|
85164
85092
|
"kind": "field",
|
|
85165
|
-
"name": "
|
|
85166
|
-
"type": {
|
|
85167
|
-
"text": "string"
|
|
85168
|
-
},
|
|
85169
|
-
"privacy": "public",
|
|
85170
|
-
"default": "\"\"",
|
|
85171
|
-
"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```",
|
|
85172
|
-
"attribute": "required-message"
|
|
85173
|
-
},
|
|
85174
|
-
{
|
|
85175
|
-
"kind": "field",
|
|
85176
|
-
"name": "disabled",
|
|
85093
|
+
"name": "tabData",
|
|
85177
85094
|
"type": {
|
|
85178
|
-
"text": "
|
|
85095
|
+
"text": "TabData[]"
|
|
85179
85096
|
},
|
|
85180
|
-
"privacy": "
|
|
85181
|
-
"default": "
|
|
85182
|
-
"description": "Controls whether the switch is disabled.",
|
|
85183
|
-
"attribute": "disabled",
|
|
85184
|
-
"reflects": true
|
|
85097
|
+
"privacy": "private",
|
|
85098
|
+
"default": "[]"
|
|
85185
85099
|
},
|
|
85186
85100
|
{
|
|
85187
85101
|
"kind": "method",
|
|
85188
|
-
"name": "
|
|
85189
|
-
"privacy": "
|
|
85102
|
+
"name": "getTabs",
|
|
85103
|
+
"privacy": "private",
|
|
85190
85104
|
"return": {
|
|
85191
85105
|
"type": {
|
|
85192
|
-
"text": "
|
|
85193
|
-
}
|
|
85194
|
-
},
|
|
85195
|
-
"parameters": [
|
|
85196
|
-
{
|
|
85197
|
-
"name": "options",
|
|
85198
|
-
"optional": true,
|
|
85199
|
-
"type": {
|
|
85200
|
-
"text": "FocusOptions"
|
|
85201
|
-
}
|
|
85106
|
+
"text": "EspalierTab[]"
|
|
85202
85107
|
}
|
|
85203
|
-
|
|
85204
|
-
"description": "Focus the switch control."
|
|
85108
|
+
}
|
|
85205
85109
|
},
|
|
85206
85110
|
{
|
|
85207
85111
|
"kind": "method",
|
|
85208
|
-
"name": "
|
|
85209
|
-
"privacy": "
|
|
85112
|
+
"name": "syncTabData",
|
|
85113
|
+
"privacy": "private",
|
|
85210
85114
|
"return": {
|
|
85211
85115
|
"type": {
|
|
85212
85116
|
"text": "void"
|
|
85213
85117
|
}
|
|
85214
|
-
}
|
|
85215
|
-
"description": "Re-run constraint validation and dispatch `esp-validity-changed`."
|
|
85118
|
+
}
|
|
85216
85119
|
},
|
|
85217
85120
|
{
|
|
85218
85121
|
"kind": "method",
|
|
85219
|
-
"name": "
|
|
85220
|
-
"privacy": "
|
|
85122
|
+
"name": "activateTab",
|
|
85123
|
+
"privacy": "private",
|
|
85221
85124
|
"return": {
|
|
85222
85125
|
"type": {
|
|
85223
|
-
"text": "
|
|
85126
|
+
"text": "void"
|
|
85224
85127
|
}
|
|
85225
85128
|
},
|
|
85226
|
-
"
|
|
85129
|
+
"parameters": [
|
|
85130
|
+
{
|
|
85131
|
+
"name": "index",
|
|
85132
|
+
"type": {
|
|
85133
|
+
"text": "number"
|
|
85134
|
+
}
|
|
85135
|
+
}
|
|
85136
|
+
]
|
|
85227
85137
|
},
|
|
85228
85138
|
{
|
|
85229
85139
|
"kind": "method",
|
|
85230
|
-
"name": "
|
|
85140
|
+
"name": "handleTabClick",
|
|
85231
85141
|
"privacy": "private",
|
|
85232
85142
|
"return": {
|
|
85233
85143
|
"type": {
|
|
85234
85144
|
"text": "void"
|
|
85235
85145
|
}
|
|
85236
|
-
}
|
|
85146
|
+
},
|
|
85147
|
+
"parameters": [
|
|
85148
|
+
{
|
|
85149
|
+
"name": "index",
|
|
85150
|
+
"type": {
|
|
85151
|
+
"text": "number"
|
|
85152
|
+
}
|
|
85153
|
+
}
|
|
85154
|
+
]
|
|
85237
85155
|
},
|
|
85238
85156
|
{
|
|
85239
85157
|
"kind": "method",
|
|
@@ -85255,7 +85173,7 @@
|
|
|
85255
85173
|
},
|
|
85256
85174
|
{
|
|
85257
85175
|
"kind": "method",
|
|
85258
|
-
"name": "
|
|
85176
|
+
"name": "handleChildUpdated",
|
|
85259
85177
|
"privacy": "private",
|
|
85260
85178
|
"return": {
|
|
85261
85179
|
"type": {
|
|
@@ -85265,69 +85183,13 @@
|
|
|
85265
85183
|
},
|
|
85266
85184
|
{
|
|
85267
85185
|
"kind": "method",
|
|
85268
|
-
"name": "
|
|
85269
|
-
"privacy": "private",
|
|
85270
|
-
"return": {
|
|
85271
|
-
"type": {
|
|
85272
|
-
"text": "string"
|
|
85273
|
-
}
|
|
85274
|
-
}
|
|
85275
|
-
},
|
|
85276
|
-
{
|
|
85277
|
-
"kind": "method",
|
|
85278
|
-
"name": "getTextModeAriaLabel",
|
|
85186
|
+
"name": "handleSlotChange",
|
|
85279
85187
|
"privacy": "private",
|
|
85280
|
-
"return": {
|
|
85281
|
-
"type": {
|
|
85282
|
-
"text": "string"
|
|
85283
|
-
}
|
|
85284
|
-
}
|
|
85285
|
-
},
|
|
85286
|
-
{
|
|
85287
|
-
"kind": "method",
|
|
85288
|
-
"name": "formResetCallback",
|
|
85289
|
-
"return": {
|
|
85290
|
-
"type": {
|
|
85291
|
-
"text": "void"
|
|
85292
|
-
}
|
|
85293
|
-
},
|
|
85294
|
-
"description": "Called by the browser when the owning `<form>` is reset."
|
|
85295
|
-
},
|
|
85296
|
-
{
|
|
85297
|
-
"kind": "method",
|
|
85298
|
-
"name": "formStateRestoreCallback",
|
|
85299
|
-
"return": {
|
|
85300
|
-
"type": {
|
|
85301
|
-
"text": "void"
|
|
85302
|
-
}
|
|
85303
|
-
},
|
|
85304
|
-
"parameters": [
|
|
85305
|
-
{
|
|
85306
|
-
"name": "state",
|
|
85307
|
-
"type": {
|
|
85308
|
-
"text": "string"
|
|
85309
|
-
}
|
|
85310
|
-
}
|
|
85311
|
-
],
|
|
85312
|
-
"description": "Called by the browser to restore form state (bfcache, etc.)."
|
|
85313
|
-
},
|
|
85314
|
-
{
|
|
85315
|
-
"kind": "method",
|
|
85316
|
-
"name": "formDisabledCallback",
|
|
85317
85188
|
"return": {
|
|
85318
85189
|
"type": {
|
|
85319
85190
|
"text": "void"
|
|
85320
85191
|
}
|
|
85321
|
-
}
|
|
85322
|
-
"parameters": [
|
|
85323
|
-
{
|
|
85324
|
-
"name": "isDisabled",
|
|
85325
|
-
"type": {
|
|
85326
|
-
"text": "boolean"
|
|
85327
|
-
}
|
|
85328
|
-
}
|
|
85329
|
-
],
|
|
85330
|
-
"description": "Called by the browser when a parent `<fieldset>` is enabled or disabled."
|
|
85192
|
+
}
|
|
85331
85193
|
},
|
|
85332
85194
|
{
|
|
85333
85195
|
"kind": "field",
|
|
@@ -86057,99 +85919,20 @@
|
|
|
86057
85919
|
"events": [
|
|
86058
85920
|
{
|
|
86059
85921
|
"type": {
|
|
86060
|
-
"text": "CustomEvent<{
|
|
86061
|
-
},
|
|
86062
|
-
"description": "Fired when the switch is toggled. The detail contains the new `checked` state and the switch `value`.",
|
|
86063
|
-
"name": "esp-value-changed"
|
|
86064
|
-
},
|
|
86065
|
-
{
|
|
86066
|
-
"type": {
|
|
86067
|
-
"text": "CustomEvent<{ valid: boolean; message: string }>"
|
|
85922
|
+
"text": "CustomEvent<{ index: number; label: string }>"
|
|
86068
85923
|
},
|
|
86069
|
-
"description": "Fired
|
|
86070
|
-
"name": "esp-
|
|
85924
|
+
"description": "Fired when the active tab changes. The detail contains the `index` and `label` of the newly active tab.",
|
|
85925
|
+
"name": "esp-tab-group-changed"
|
|
86071
85926
|
}
|
|
86072
85927
|
],
|
|
86073
85928
|
"attributes": [
|
|
86074
|
-
{
|
|
86075
|
-
"name": "mode",
|
|
86076
|
-
"type": {
|
|
86077
|
-
"text": "\"switch\" | \"text\""
|
|
86078
|
-
},
|
|
86079
|
-
"default": "\"switch\"",
|
|
86080
|
-
"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.",
|
|
86081
|
-
"fieldName": "mode"
|
|
86082
|
-
},
|
|
86083
|
-
{
|
|
86084
|
-
"name": "off-label",
|
|
86085
|
-
"type": {
|
|
86086
|
-
"text": "string"
|
|
86087
|
-
},
|
|
86088
|
-
"default": "\"\"",
|
|
86089
|
-
"description": "Label shown for the unchecked (off) state when\n`mode=\"text\"`.",
|
|
86090
|
-
"fieldName": "offLabel"
|
|
86091
|
-
},
|
|
86092
|
-
{
|
|
86093
|
-
"name": "on-label",
|
|
86094
|
-
"type": {
|
|
86095
|
-
"text": "string"
|
|
86096
|
-
},
|
|
86097
|
-
"default": "\"\"",
|
|
86098
|
-
"description": "Label shown for the checked (on) state when\n`mode=\"text\"`.",
|
|
86099
|
-
"fieldName": "onLabel"
|
|
86100
|
-
},
|
|
86101
|
-
{
|
|
86102
|
-
"name": "checked",
|
|
86103
|
-
"type": {
|
|
86104
|
-
"text": "boolean"
|
|
86105
|
-
},
|
|
86106
|
-
"default": "false",
|
|
86107
|
-
"description": "Whether the switch is in the on state.",
|
|
86108
|
-
"fieldName": "checked"
|
|
86109
|
-
},
|
|
86110
|
-
{
|
|
86111
|
-
"name": "value",
|
|
86112
|
-
"type": {
|
|
86113
|
-
"text": "string"
|
|
86114
|
-
},
|
|
86115
|
-
"default": "\"\"",
|
|
86116
|
-
"description": "The value associated with this switch. Submitted with the\nform when the switch is on.",
|
|
86117
|
-
"fieldName": "value"
|
|
86118
|
-
},
|
|
86119
|
-
{
|
|
86120
|
-
"name": "name",
|
|
86121
|
-
"type": {
|
|
86122
|
-
"text": "string"
|
|
86123
|
-
},
|
|
86124
|
-
"default": "\"\"",
|
|
86125
|
-
"description": "The name used when the switch participates in a `<form>`.",
|
|
86126
|
-
"fieldName": "name"
|
|
86127
|
-
},
|
|
86128
|
-
{
|
|
86129
|
-
"name": "required",
|
|
86130
|
-
"type": {
|
|
86131
|
-
"text": "boolean"
|
|
86132
|
-
},
|
|
86133
|
-
"default": "false",
|
|
86134
|
-
"description": "When true, the switch must be on before the form can\nbe submitted.",
|
|
86135
|
-
"fieldName": "required"
|
|
86136
|
-
},
|
|
86137
|
-
{
|
|
86138
|
-
"name": "required-message",
|
|
86139
|
-
"type": {
|
|
86140
|
-
"text": "string"
|
|
86141
|
-
},
|
|
86142
|
-
"default": "\"\"",
|
|
86143
|
-
"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```",
|
|
86144
|
-
"fieldName": "requiredMessage"
|
|
86145
|
-
},
|
|
86146
85929
|
{
|
|
86147
85930
|
"name": "disabled",
|
|
86148
85931
|
"type": {
|
|
86149
85932
|
"text": "boolean"
|
|
86150
85933
|
},
|
|
86151
85934
|
"default": "false",
|
|
86152
|
-
"description": "
|
|
85935
|
+
"description": "Disables all tabs in the group, preventing any tab from\nbeing selected.",
|
|
86153
85936
|
"fieldName": "disabled"
|
|
86154
85937
|
},
|
|
86155
85938
|
{
|
|
@@ -86194,84 +85977,60 @@
|
|
|
86194
85977
|
"name": "EspalierElementBase",
|
|
86195
85978
|
"module": "dist/shared/esp-element-base.js"
|
|
86196
85979
|
},
|
|
85980
|
+
"tagName": "esp-tab-group",
|
|
85981
|
+
"customElement": true,
|
|
86197
85982
|
"docPageTitle": {
|
|
86198
|
-
"name": "
|
|
86199
|
-
"description": ""
|
|
85983
|
+
"name": "Tab",
|
|
85984
|
+
"description": "Group"
|
|
86200
85985
|
},
|
|
86201
85986
|
"docUrl": {
|
|
86202
|
-
"name": "/components/
|
|
85987
|
+
"name": "/components/tabs",
|
|
86203
85988
|
"description": ""
|
|
86204
85989
|
},
|
|
86205
85990
|
"menuGroup": {
|
|
86206
|
-
"name": "
|
|
86207
|
-
"description": "
|
|
85991
|
+
"name": "Navigation",
|
|
85992
|
+
"description": ""
|
|
86208
85993
|
},
|
|
86209
85994
|
"menuLabel": {
|
|
86210
|
-
"name": "
|
|
86211
|
-
"description": ""
|
|
85995
|
+
"name": "Tab",
|
|
85996
|
+
"description": "Group"
|
|
86212
85997
|
},
|
|
86213
85998
|
"menuIcon": {
|
|
86214
|
-
"name": "
|
|
85999
|
+
"name": "layout-navbar",
|
|
86215
86000
|
"description": ""
|
|
86216
|
-
}
|
|
86217
|
-
"tagName": "esp-switch",
|
|
86218
|
-
"customElement": true
|
|
86001
|
+
}
|
|
86219
86002
|
}
|
|
86220
86003
|
],
|
|
86221
86004
|
"exports": [
|
|
86222
86005
|
{
|
|
86223
86006
|
"kind": "js",
|
|
86224
|
-
"name": "
|
|
86007
|
+
"name": "EspalierTabGroup",
|
|
86225
86008
|
"declaration": {
|
|
86226
|
-
"name": "
|
|
86227
|
-
"module": "dist/
|
|
86009
|
+
"name": "EspalierTabGroup",
|
|
86010
|
+
"module": "dist/tabs/esp-tab-group.js"
|
|
86228
86011
|
}
|
|
86229
86012
|
},
|
|
86230
86013
|
{
|
|
86231
86014
|
"kind": "custom-element-definition",
|
|
86232
|
-
"name": "esp-
|
|
86015
|
+
"name": "esp-tab-group",
|
|
86233
86016
|
"declaration": {
|
|
86234
|
-
"name": "
|
|
86235
|
-
"module": "dist/
|
|
86017
|
+
"name": "EspalierTabGroup",
|
|
86018
|
+
"module": "dist/tabs/esp-tab-group.js"
|
|
86236
86019
|
}
|
|
86237
86020
|
}
|
|
86238
86021
|
]
|
|
86239
86022
|
},
|
|
86240
86023
|
{
|
|
86241
86024
|
"kind": "javascript-module",
|
|
86242
|
-
"path": "dist/tabs/esp-tab
|
|
86025
|
+
"path": "dist/tabs/esp-tab.js",
|
|
86243
86026
|
"declarations": [
|
|
86244
86027
|
{
|
|
86245
86028
|
"kind": "class",
|
|
86246
|
-
"description": "A
|
|
86247
|
-
"name": "
|
|
86029
|
+
"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```",
|
|
86030
|
+
"name": "EspalierTab",
|
|
86248
86031
|
"cssProperties": [
|
|
86249
86032
|
{
|
|
86250
|
-
"description": "
|
|
86251
|
-
"name": "--esp-tab-color-border"
|
|
86252
|
-
},
|
|
86253
|
-
{
|
|
86254
|
-
"description": "Background color of the overall component.",
|
|
86255
|
-
"name": "--esp-tab-color-background"
|
|
86256
|
-
},
|
|
86257
|
-
{
|
|
86258
|
-
"description": "Background color of the tab strip.",
|
|
86259
|
-
"name": "--esp-tab-color-strip-background"
|
|
86260
|
-
},
|
|
86261
|
-
{
|
|
86262
|
-
"description": "Tab button hover background.",
|
|
86263
|
-
"name": "--esp-tab-color-button-hover"
|
|
86264
|
-
},
|
|
86265
|
-
{
|
|
86266
|
-
"description": "Active tab button background.",
|
|
86267
|
-
"name": "--esp-tab-color-button-active"
|
|
86268
|
-
},
|
|
86269
|
-
{
|
|
86270
|
-
"description": "Text color for tab buttons.",
|
|
86271
|
-
"name": "--esp-tab-color-text"
|
|
86272
|
-
},
|
|
86273
|
-
{
|
|
86274
|
-
"description": "Padding inside the panel area and tab buttons.",
|
|
86033
|
+
"description": "Padding inside the panel area.",
|
|
86275
86034
|
"name": "--esp-tab-size-padding"
|
|
86276
86035
|
},
|
|
86277
86036
|
{
|
|
@@ -86333,144 +86092,51 @@
|
|
|
86333
86092
|
],
|
|
86334
86093
|
"cssParts": [
|
|
86335
86094
|
{
|
|
86336
|
-
"description": "The
|
|
86337
|
-
"name": "
|
|
86338
|
-
},
|
|
86339
|
-
{
|
|
86340
|
-
"description": "Each individual tab button in the strip.",
|
|
86341
|
-
"name": "tab-button"
|
|
86342
|
-
},
|
|
86343
|
-
{
|
|
86344
|
-
"description": "The panel area below the tab strip.",
|
|
86345
|
-
"name": "panels"
|
|
86095
|
+
"description": "The panel wrapper element.",
|
|
86096
|
+
"name": "panel"
|
|
86346
86097
|
}
|
|
86347
86098
|
],
|
|
86348
86099
|
"slots": [
|
|
86349
86100
|
{
|
|
86350
|
-
"description": "
|
|
86101
|
+
"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.",
|
|
86351
86102
|
"name": ""
|
|
86352
86103
|
}
|
|
86353
86104
|
],
|
|
86354
86105
|
"members": [
|
|
86355
86106
|
{
|
|
86356
86107
|
"kind": "field",
|
|
86357
|
-
"name": "
|
|
86358
|
-
"
|
|
86108
|
+
"name": "label",
|
|
86109
|
+
"type": {
|
|
86110
|
+
"text": "string"
|
|
86111
|
+
},
|
|
86112
|
+
"privacy": "public",
|
|
86113
|
+
"default": "\"\"",
|
|
86114
|
+
"description": "The text displayed in the tab button within the tab strip.",
|
|
86115
|
+
"attribute": "label"
|
|
86359
86116
|
},
|
|
86360
86117
|
{
|
|
86361
86118
|
"kind": "field",
|
|
86362
|
-
"name": "
|
|
86119
|
+
"name": "active",
|
|
86363
86120
|
"type": {
|
|
86364
86121
|
"text": "boolean"
|
|
86365
86122
|
},
|
|
86366
86123
|
"privacy": "public",
|
|
86367
86124
|
"default": "false",
|
|
86368
|
-
"description": "
|
|
86369
|
-
"attribute": "
|
|
86125
|
+
"description": "Whether this tab is currently active (its panel is visible).",
|
|
86126
|
+
"attribute": "active",
|
|
86370
86127
|
"reflects": true
|
|
86371
86128
|
},
|
|
86372
86129
|
{
|
|
86373
86130
|
"kind": "field",
|
|
86374
|
-
"name": "
|
|
86131
|
+
"name": "disabled",
|
|
86375
86132
|
"type": {
|
|
86376
|
-
"text": "
|
|
86377
|
-
},
|
|
86378
|
-
"privacy": "private",
|
|
86379
|
-
"default": "[]"
|
|
86380
|
-
},
|
|
86381
|
-
{
|
|
86382
|
-
"kind": "method",
|
|
86383
|
-
"name": "getTabs",
|
|
86384
|
-
"privacy": "private",
|
|
86385
|
-
"return": {
|
|
86386
|
-
"type": {
|
|
86387
|
-
"text": "EspalierTab[]"
|
|
86388
|
-
}
|
|
86389
|
-
}
|
|
86390
|
-
},
|
|
86391
|
-
{
|
|
86392
|
-
"kind": "method",
|
|
86393
|
-
"name": "syncTabData",
|
|
86394
|
-
"privacy": "private",
|
|
86395
|
-
"return": {
|
|
86396
|
-
"type": {
|
|
86397
|
-
"text": "void"
|
|
86398
|
-
}
|
|
86399
|
-
}
|
|
86400
|
-
},
|
|
86401
|
-
{
|
|
86402
|
-
"kind": "method",
|
|
86403
|
-
"name": "activateTab",
|
|
86404
|
-
"privacy": "private",
|
|
86405
|
-
"return": {
|
|
86406
|
-
"type": {
|
|
86407
|
-
"text": "void"
|
|
86408
|
-
}
|
|
86409
|
-
},
|
|
86410
|
-
"parameters": [
|
|
86411
|
-
{
|
|
86412
|
-
"name": "index",
|
|
86413
|
-
"type": {
|
|
86414
|
-
"text": "number"
|
|
86415
|
-
}
|
|
86416
|
-
}
|
|
86417
|
-
]
|
|
86418
|
-
},
|
|
86419
|
-
{
|
|
86420
|
-
"kind": "method",
|
|
86421
|
-
"name": "handleTabClick",
|
|
86422
|
-
"privacy": "private",
|
|
86423
|
-
"return": {
|
|
86424
|
-
"type": {
|
|
86425
|
-
"text": "void"
|
|
86426
|
-
}
|
|
86427
|
-
},
|
|
86428
|
-
"parameters": [
|
|
86429
|
-
{
|
|
86430
|
-
"name": "index",
|
|
86431
|
-
"type": {
|
|
86432
|
-
"text": "number"
|
|
86433
|
-
}
|
|
86434
|
-
}
|
|
86435
|
-
]
|
|
86436
|
-
},
|
|
86437
|
-
{
|
|
86438
|
-
"kind": "method",
|
|
86439
|
-
"name": "handleKeyDown",
|
|
86440
|
-
"privacy": "private",
|
|
86441
|
-
"return": {
|
|
86442
|
-
"type": {
|
|
86443
|
-
"text": "void"
|
|
86444
|
-
}
|
|
86133
|
+
"text": "boolean"
|
|
86445
86134
|
},
|
|
86446
|
-
"
|
|
86447
|
-
|
|
86448
|
-
|
|
86449
|
-
|
|
86450
|
-
|
|
86451
|
-
}
|
|
86452
|
-
}
|
|
86453
|
-
]
|
|
86454
|
-
},
|
|
86455
|
-
{
|
|
86456
|
-
"kind": "method",
|
|
86457
|
-
"name": "handleChildUpdated",
|
|
86458
|
-
"privacy": "private",
|
|
86459
|
-
"return": {
|
|
86460
|
-
"type": {
|
|
86461
|
-
"text": "void"
|
|
86462
|
-
}
|
|
86463
|
-
}
|
|
86464
|
-
},
|
|
86465
|
-
{
|
|
86466
|
-
"kind": "method",
|
|
86467
|
-
"name": "handleSlotChange",
|
|
86468
|
-
"privacy": "private",
|
|
86469
|
-
"return": {
|
|
86470
|
-
"type": {
|
|
86471
|
-
"text": "void"
|
|
86472
|
-
}
|
|
86473
|
-
}
|
|
86135
|
+
"privacy": "public",
|
|
86136
|
+
"default": "false",
|
|
86137
|
+
"description": "Whether this tab is disabled (cannot be selected).",
|
|
86138
|
+
"attribute": "disabled",
|
|
86139
|
+
"reflects": true
|
|
86474
86140
|
},
|
|
86475
86141
|
{
|
|
86476
86142
|
"kind": "field",
|
|
@@ -87197,23 +86863,33 @@
|
|
|
87197
86863
|
}
|
|
87198
86864
|
}
|
|
87199
86865
|
],
|
|
87200
|
-
"events": [
|
|
86866
|
+
"events": [],
|
|
86867
|
+
"attributes": [
|
|
87201
86868
|
{
|
|
86869
|
+
"name": "label",
|
|
87202
86870
|
"type": {
|
|
87203
|
-
"text": "
|
|
86871
|
+
"text": "string"
|
|
87204
86872
|
},
|
|
87205
|
-
"
|
|
87206
|
-
"
|
|
87207
|
-
|
|
87208
|
-
|
|
87209
|
-
|
|
86873
|
+
"default": "\"\"",
|
|
86874
|
+
"description": "The text displayed in the tab button within the tab strip.",
|
|
86875
|
+
"fieldName": "label"
|
|
86876
|
+
},
|
|
86877
|
+
{
|
|
86878
|
+
"name": "active",
|
|
86879
|
+
"type": {
|
|
86880
|
+
"text": "boolean"
|
|
86881
|
+
},
|
|
86882
|
+
"default": "false",
|
|
86883
|
+
"description": "Whether this tab is currently active (its panel is visible).",
|
|
86884
|
+
"fieldName": "active"
|
|
86885
|
+
},
|
|
87210
86886
|
{
|
|
87211
86887
|
"name": "disabled",
|
|
87212
86888
|
"type": {
|
|
87213
86889
|
"text": "boolean"
|
|
87214
86890
|
},
|
|
87215
86891
|
"default": "false",
|
|
87216
|
-
"description": "
|
|
86892
|
+
"description": "Whether this tab is disabled (cannot be selected).",
|
|
87217
86893
|
"fieldName": "disabled"
|
|
87218
86894
|
},
|
|
87219
86895
|
{
|
|
@@ -87258,61 +86934,97 @@
|
|
|
87258
86934
|
"name": "EspalierElementBase",
|
|
87259
86935
|
"module": "dist/shared/esp-element-base.js"
|
|
87260
86936
|
},
|
|
87261
|
-
"tagName": "esp-tab
|
|
86937
|
+
"tagName": "esp-tab",
|
|
87262
86938
|
"customElement": true,
|
|
87263
86939
|
"docPageTitle": {
|
|
87264
86940
|
"name": "Tab",
|
|
87265
|
-
"description": "
|
|
86941
|
+
"description": ""
|
|
87266
86942
|
},
|
|
87267
86943
|
"docUrl": {
|
|
87268
|
-
"name": "/components/tabs",
|
|
86944
|
+
"name": "/components/tabs/tab",
|
|
87269
86945
|
"description": ""
|
|
87270
86946
|
},
|
|
87271
86947
|
"menuGroup": {
|
|
87272
86948
|
"name": "Navigation",
|
|
87273
86949
|
"description": ""
|
|
87274
|
-
},
|
|
87275
|
-
"menuLabel": {
|
|
87276
|
-
"name": "Tab",
|
|
87277
|
-
"description": "Group"
|
|
87278
|
-
},
|
|
87279
|
-
"menuIcon": {
|
|
87280
|
-
"name": "layout-navbar",
|
|
87281
|
-
"description": ""
|
|
87282
86950
|
}
|
|
87283
86951
|
}
|
|
87284
86952
|
],
|
|
87285
86953
|
"exports": [
|
|
87286
86954
|
{
|
|
87287
86955
|
"kind": "js",
|
|
87288
|
-
"name": "
|
|
86956
|
+
"name": "EspalierTab",
|
|
87289
86957
|
"declaration": {
|
|
87290
|
-
"name": "
|
|
87291
|
-
"module": "dist/tabs/esp-tab
|
|
86958
|
+
"name": "EspalierTab",
|
|
86959
|
+
"module": "dist/tabs/esp-tab.js"
|
|
87292
86960
|
}
|
|
87293
86961
|
},
|
|
87294
86962
|
{
|
|
87295
86963
|
"kind": "custom-element-definition",
|
|
87296
|
-
"name": "esp-tab
|
|
86964
|
+
"name": "esp-tab",
|
|
87297
86965
|
"declaration": {
|
|
87298
|
-
"name": "
|
|
87299
|
-
"module": "dist/tabs/esp-tab
|
|
86966
|
+
"name": "EspalierTab",
|
|
86967
|
+
"module": "dist/tabs/esp-tab.js"
|
|
87300
86968
|
}
|
|
87301
86969
|
}
|
|
87302
86970
|
]
|
|
87303
86971
|
},
|
|
87304
86972
|
{
|
|
87305
86973
|
"kind": "javascript-module",
|
|
87306
|
-
"path": "dist/
|
|
86974
|
+
"path": "dist/switch/esp-switch.js",
|
|
87307
86975
|
"declarations": [
|
|
87308
86976
|
{
|
|
87309
86977
|
"kind": "class",
|
|
87310
|
-
"description": "A
|
|
87311
|
-
"name": "
|
|
86978
|
+
"description": "A toggle switch for boolean on/off values. Uses a CSS-only\ntrack-and-thumb design with a smooth sliding transition.\nFunctionally equivalent to a checkbox but visually communicates\nan immediate state change rather than a deferred selection.\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.",
|
|
86979
|
+
"name": "EspalierSwitch",
|
|
87312
86980
|
"cssProperties": [
|
|
87313
86981
|
{
|
|
87314
|
-
"description": "
|
|
87315
|
-
"name": "--esp-
|
|
86982
|
+
"description": "The width of the switch track. Defaults to `calc(var(--esp-size-normal-to-medium) * 1.75)`.",
|
|
86983
|
+
"name": "--esp-switch-width"
|
|
86984
|
+
},
|
|
86985
|
+
{
|
|
86986
|
+
"description": "The height of the switch track. Defaults to `var(--esp-size-normal-to-medium)`.",
|
|
86987
|
+
"name": "--esp-switch-height"
|
|
86988
|
+
},
|
|
86989
|
+
{
|
|
86990
|
+
"description": "The diameter of the thumb. Defaults to `calc(var(--esp-switch-height) - 4px)`.",
|
|
86991
|
+
"name": "--esp-switch-thumb-size"
|
|
86992
|
+
},
|
|
86993
|
+
{
|
|
86994
|
+
"description": "The track background color when the switch is off. Defaults to `var(--esp-color-border)`.",
|
|
86995
|
+
"name": "--esp-switch-track-color"
|
|
86996
|
+
},
|
|
86997
|
+
{
|
|
86998
|
+
"description": "The track background color when the switch is on. Defaults to `var(--esp-color-action-background)`.",
|
|
86999
|
+
"name": "--esp-switch-track-color-on"
|
|
87000
|
+
},
|
|
87001
|
+
{
|
|
87002
|
+
"description": "The thumb color. Defaults to `var(--esp-color-layer-1)`.",
|
|
87003
|
+
"name": "--esp-switch-thumb-color"
|
|
87004
|
+
},
|
|
87005
|
+
{
|
|
87006
|
+
"description": "The color of the focus ring shadow. Defaults to `var(--esp-color-shadow)`.",
|
|
87007
|
+
"name": "--esp-switch-focus-shadow"
|
|
87008
|
+
},
|
|
87009
|
+
{
|
|
87010
|
+
"description": "Padding inside each text-mode label cell. Defaults to `var(--esp-size-tiny) var(--esp-size-small)`.",
|
|
87011
|
+
"name": "--esp-switch-text-padding"
|
|
87012
|
+
},
|
|
87013
|
+
{
|
|
87014
|
+
"description": "Font size for text-mode labels. Defaults to `var(--esp-size-font)`.",
|
|
87015
|
+
"name": "--esp-switch-text-font-size"
|
|
87016
|
+
},
|
|
87017
|
+
{
|
|
87018
|
+
"description": "Text color of the active label in text mode. Defaults to `var(--esp-color-action-text)`.",
|
|
87019
|
+
"name": "--esp-switch-text-active-color"
|
|
87020
|
+
},
|
|
87021
|
+
{
|
|
87022
|
+
"description": "Text color of the inactive label in text mode. Defaults to `var(--esp-color-layer-1)`.",
|
|
87023
|
+
"name": "--esp-switch-text-inactive-color"
|
|
87024
|
+
},
|
|
87025
|
+
{
|
|
87026
|
+
"description": "Background color of the sliding highlight in text mode. Defaults to `var(--esp-color-action-background)`.",
|
|
87027
|
+
"name": "--esp-switch-text-highlight-color"
|
|
87316
87028
|
},
|
|
87317
87029
|
{
|
|
87318
87030
|
"description": "Background color of the shared field shell. Defaults to `var(--esp-color-layer-2)`.",
|
|
@@ -87371,42 +87083,131 @@
|
|
|
87371
87083
|
}
|
|
87372
87084
|
}
|
|
87373
87085
|
],
|
|
87374
|
-
"cssParts": [
|
|
87375
|
-
{
|
|
87376
|
-
"description": "The panel wrapper element.",
|
|
87377
|
-
"name": "panel"
|
|
87378
|
-
}
|
|
87379
|
-
],
|
|
87380
87086
|
"slots": [
|
|
87381
87087
|
{
|
|
87382
|
-
"description": "The
|
|
87088
|
+
"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.",
|
|
87383
87089
|
"name": ""
|
|
87384
87090
|
}
|
|
87385
87091
|
],
|
|
87386
87092
|
"members": [
|
|
87387
87093
|
{
|
|
87388
87094
|
"kind": "field",
|
|
87389
|
-
"name": "
|
|
87095
|
+
"name": "formAssociated",
|
|
87096
|
+
"type": {
|
|
87097
|
+
"text": "boolean"
|
|
87098
|
+
},
|
|
87099
|
+
"static": true,
|
|
87100
|
+
"default": "true"
|
|
87101
|
+
},
|
|
87102
|
+
{
|
|
87103
|
+
"kind": "field",
|
|
87104
|
+
"name": "internals",
|
|
87105
|
+
"privacy": "private"
|
|
87106
|
+
},
|
|
87107
|
+
{
|
|
87108
|
+
"kind": "field",
|
|
87109
|
+
"name": "formCtrl",
|
|
87110
|
+
"privacy": "private",
|
|
87111
|
+
"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; }, })"
|
|
87112
|
+
},
|
|
87113
|
+
{
|
|
87114
|
+
"kind": "field",
|
|
87115
|
+
"name": "formItemDescription",
|
|
87116
|
+
"privacy": "private",
|
|
87117
|
+
"default": "new FormFieldDescriptionController({ host: this, getTarget: () => this.shadowRoot?.querySelector<HTMLElement>(\".switch-control\"), })"
|
|
87118
|
+
},
|
|
87119
|
+
{
|
|
87120
|
+
"kind": "field",
|
|
87121
|
+
"name": "mode",
|
|
87122
|
+
"type": {
|
|
87123
|
+
"text": "\"switch\" | \"text\""
|
|
87124
|
+
},
|
|
87125
|
+
"privacy": "public",
|
|
87126
|
+
"default": "\"switch\"",
|
|
87127
|
+
"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.",
|
|
87128
|
+
"attribute": "mode",
|
|
87129
|
+
"reflects": true
|
|
87130
|
+
},
|
|
87131
|
+
{
|
|
87132
|
+
"kind": "field",
|
|
87133
|
+
"name": "offLabel",
|
|
87390
87134
|
"type": {
|
|
87391
87135
|
"text": "string"
|
|
87392
87136
|
},
|
|
87393
87137
|
"privacy": "public",
|
|
87394
87138
|
"default": "\"\"",
|
|
87395
|
-
"description": "
|
|
87396
|
-
"attribute": "label"
|
|
87139
|
+
"description": "Label shown for the unchecked (off) state when\n`mode=\"text\"`.",
|
|
87140
|
+
"attribute": "off-label"
|
|
87397
87141
|
},
|
|
87398
87142
|
{
|
|
87399
87143
|
"kind": "field",
|
|
87400
|
-
"name": "
|
|
87144
|
+
"name": "onLabel",
|
|
87145
|
+
"type": {
|
|
87146
|
+
"text": "string"
|
|
87147
|
+
},
|
|
87148
|
+
"privacy": "public",
|
|
87149
|
+
"default": "\"\"",
|
|
87150
|
+
"description": "Label shown for the checked (on) state when\n`mode=\"text\"`.",
|
|
87151
|
+
"attribute": "on-label"
|
|
87152
|
+
},
|
|
87153
|
+
{
|
|
87154
|
+
"kind": "field",
|
|
87155
|
+
"name": "checked",
|
|
87401
87156
|
"type": {
|
|
87402
87157
|
"text": "boolean"
|
|
87403
87158
|
},
|
|
87404
87159
|
"privacy": "public",
|
|
87405
87160
|
"default": "false",
|
|
87406
|
-
"description": "Whether
|
|
87407
|
-
"attribute": "
|
|
87161
|
+
"description": "Whether the switch is in the on state.",
|
|
87162
|
+
"attribute": "checked",
|
|
87408
87163
|
"reflects": true
|
|
87409
87164
|
},
|
|
87165
|
+
{
|
|
87166
|
+
"kind": "field",
|
|
87167
|
+
"name": "value",
|
|
87168
|
+
"type": {
|
|
87169
|
+
"text": "string"
|
|
87170
|
+
},
|
|
87171
|
+
"privacy": "public",
|
|
87172
|
+
"default": "\"\"",
|
|
87173
|
+
"description": "The value associated with this switch. Submitted with the\nform when the switch is on.",
|
|
87174
|
+
"attribute": "value"
|
|
87175
|
+
},
|
|
87176
|
+
{
|
|
87177
|
+
"kind": "field",
|
|
87178
|
+
"name": "name",
|
|
87179
|
+
"type": {
|
|
87180
|
+
"text": "string"
|
|
87181
|
+
},
|
|
87182
|
+
"privacy": "public",
|
|
87183
|
+
"default": "\"\"",
|
|
87184
|
+
"description": "The name used when the switch participates in a `<form>`.",
|
|
87185
|
+
"attribute": "name",
|
|
87186
|
+
"reflects": true
|
|
87187
|
+
},
|
|
87188
|
+
{
|
|
87189
|
+
"kind": "field",
|
|
87190
|
+
"name": "required",
|
|
87191
|
+
"type": {
|
|
87192
|
+
"text": "boolean"
|
|
87193
|
+
},
|
|
87194
|
+
"privacy": "public",
|
|
87195
|
+
"default": "false",
|
|
87196
|
+
"description": "When true, the switch must be on before the form can\nbe submitted.",
|
|
87197
|
+
"attribute": "required",
|
|
87198
|
+
"reflects": true
|
|
87199
|
+
},
|
|
87200
|
+
{
|
|
87201
|
+
"kind": "field",
|
|
87202
|
+
"name": "requiredMessage",
|
|
87203
|
+
"type": {
|
|
87204
|
+
"text": "string"
|
|
87205
|
+
},
|
|
87206
|
+
"privacy": "public",
|
|
87207
|
+
"default": "\"\"",
|
|
87208
|
+
"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```",
|
|
87209
|
+
"attribute": "required-message"
|
|
87210
|
+
},
|
|
87410
87211
|
{
|
|
87411
87212
|
"kind": "field",
|
|
87412
87213
|
"name": "disabled",
|
|
@@ -87415,10 +87216,156 @@
|
|
|
87415
87216
|
},
|
|
87416
87217
|
"privacy": "public",
|
|
87417
87218
|
"default": "false",
|
|
87418
|
-
"description": "
|
|
87219
|
+
"description": "Controls whether the switch is disabled.",
|
|
87419
87220
|
"attribute": "disabled",
|
|
87420
87221
|
"reflects": true
|
|
87421
87222
|
},
|
|
87223
|
+
{
|
|
87224
|
+
"kind": "method",
|
|
87225
|
+
"name": "focus",
|
|
87226
|
+
"privacy": "public",
|
|
87227
|
+
"return": {
|
|
87228
|
+
"type": {
|
|
87229
|
+
"text": "void"
|
|
87230
|
+
}
|
|
87231
|
+
},
|
|
87232
|
+
"parameters": [
|
|
87233
|
+
{
|
|
87234
|
+
"name": "options",
|
|
87235
|
+
"optional": true,
|
|
87236
|
+
"type": {
|
|
87237
|
+
"text": "FocusOptions"
|
|
87238
|
+
}
|
|
87239
|
+
}
|
|
87240
|
+
],
|
|
87241
|
+
"description": "Focus the switch control."
|
|
87242
|
+
},
|
|
87243
|
+
{
|
|
87244
|
+
"kind": "method",
|
|
87245
|
+
"name": "validate",
|
|
87246
|
+
"privacy": "public",
|
|
87247
|
+
"return": {
|
|
87248
|
+
"type": {
|
|
87249
|
+
"text": "void"
|
|
87250
|
+
}
|
|
87251
|
+
},
|
|
87252
|
+
"description": "Re-run constraint validation and dispatch `esp-validity-changed`."
|
|
87253
|
+
},
|
|
87254
|
+
{
|
|
87255
|
+
"kind": "method",
|
|
87256
|
+
"name": "checkValidity",
|
|
87257
|
+
"privacy": "public",
|
|
87258
|
+
"return": {
|
|
87259
|
+
"type": {
|
|
87260
|
+
"text": "boolean"
|
|
87261
|
+
}
|
|
87262
|
+
},
|
|
87263
|
+
"description": "Check whether the current state is valid (delegates to ElementInternals)."
|
|
87264
|
+
},
|
|
87265
|
+
{
|
|
87266
|
+
"kind": "method",
|
|
87267
|
+
"name": "toggle",
|
|
87268
|
+
"privacy": "private",
|
|
87269
|
+
"return": {
|
|
87270
|
+
"type": {
|
|
87271
|
+
"text": "void"
|
|
87272
|
+
}
|
|
87273
|
+
}
|
|
87274
|
+
},
|
|
87275
|
+
{
|
|
87276
|
+
"kind": "method",
|
|
87277
|
+
"name": "handleKeyDown",
|
|
87278
|
+
"privacy": "private",
|
|
87279
|
+
"return": {
|
|
87280
|
+
"type": {
|
|
87281
|
+
"text": "void"
|
|
87282
|
+
}
|
|
87283
|
+
},
|
|
87284
|
+
"parameters": [
|
|
87285
|
+
{
|
|
87286
|
+
"name": "ev",
|
|
87287
|
+
"type": {
|
|
87288
|
+
"text": "KeyboardEvent"
|
|
87289
|
+
}
|
|
87290
|
+
}
|
|
87291
|
+
]
|
|
87292
|
+
},
|
|
87293
|
+
{
|
|
87294
|
+
"kind": "method",
|
|
87295
|
+
"name": "handleLabelSlotChange",
|
|
87296
|
+
"privacy": "private",
|
|
87297
|
+
"return": {
|
|
87298
|
+
"type": {
|
|
87299
|
+
"text": "void"
|
|
87300
|
+
}
|
|
87301
|
+
}
|
|
87302
|
+
},
|
|
87303
|
+
{
|
|
87304
|
+
"kind": "method",
|
|
87305
|
+
"name": "getCurrentTextModeLabel",
|
|
87306
|
+
"privacy": "private",
|
|
87307
|
+
"return": {
|
|
87308
|
+
"type": {
|
|
87309
|
+
"text": "string"
|
|
87310
|
+
}
|
|
87311
|
+
}
|
|
87312
|
+
},
|
|
87313
|
+
{
|
|
87314
|
+
"kind": "method",
|
|
87315
|
+
"name": "getTextModeAriaLabel",
|
|
87316
|
+
"privacy": "private",
|
|
87317
|
+
"return": {
|
|
87318
|
+
"type": {
|
|
87319
|
+
"text": "string"
|
|
87320
|
+
}
|
|
87321
|
+
}
|
|
87322
|
+
},
|
|
87323
|
+
{
|
|
87324
|
+
"kind": "method",
|
|
87325
|
+
"name": "formResetCallback",
|
|
87326
|
+
"return": {
|
|
87327
|
+
"type": {
|
|
87328
|
+
"text": "void"
|
|
87329
|
+
}
|
|
87330
|
+
},
|
|
87331
|
+
"description": "Called by the browser when the owning `<form>` is reset."
|
|
87332
|
+
},
|
|
87333
|
+
{
|
|
87334
|
+
"kind": "method",
|
|
87335
|
+
"name": "formStateRestoreCallback",
|
|
87336
|
+
"return": {
|
|
87337
|
+
"type": {
|
|
87338
|
+
"text": "void"
|
|
87339
|
+
}
|
|
87340
|
+
},
|
|
87341
|
+
"parameters": [
|
|
87342
|
+
{
|
|
87343
|
+
"name": "state",
|
|
87344
|
+
"type": {
|
|
87345
|
+
"text": "string"
|
|
87346
|
+
}
|
|
87347
|
+
}
|
|
87348
|
+
],
|
|
87349
|
+
"description": "Called by the browser to restore form state (bfcache, etc.)."
|
|
87350
|
+
},
|
|
87351
|
+
{
|
|
87352
|
+
"kind": "method",
|
|
87353
|
+
"name": "formDisabledCallback",
|
|
87354
|
+
"return": {
|
|
87355
|
+
"type": {
|
|
87356
|
+
"text": "void"
|
|
87357
|
+
}
|
|
87358
|
+
},
|
|
87359
|
+
"parameters": [
|
|
87360
|
+
{
|
|
87361
|
+
"name": "isDisabled",
|
|
87362
|
+
"type": {
|
|
87363
|
+
"text": "boolean"
|
|
87364
|
+
}
|
|
87365
|
+
}
|
|
87366
|
+
],
|
|
87367
|
+
"description": "Called by the browser when a parent `<fieldset>` is enabled or disabled."
|
|
87368
|
+
},
|
|
87422
87369
|
{
|
|
87423
87370
|
"kind": "field",
|
|
87424
87371
|
"name": "seedColorBacker",
|
|
@@ -88144,25 +88091,94 @@
|
|
|
88144
88091
|
}
|
|
88145
88092
|
}
|
|
88146
88093
|
],
|
|
88147
|
-
"events": [
|
|
88094
|
+
"events": [
|
|
88095
|
+
{
|
|
88096
|
+
"type": {
|
|
88097
|
+
"text": "CustomEvent<{ checked: boolean; value: string }>"
|
|
88098
|
+
},
|
|
88099
|
+
"description": "Fired when the switch is toggled. The detail contains the new `checked` state and the switch `value`.",
|
|
88100
|
+
"name": "esp-value-changed"
|
|
88101
|
+
},
|
|
88102
|
+
{
|
|
88103
|
+
"type": {
|
|
88104
|
+
"text": "CustomEvent<{ valid: boolean; message: string }>"
|
|
88105
|
+
},
|
|
88106
|
+
"description": "Fired whenever constraint validation runs.",
|
|
88107
|
+
"name": "esp-validity-changed"
|
|
88108
|
+
}
|
|
88109
|
+
],
|
|
88148
88110
|
"attributes": [
|
|
88149
88111
|
{
|
|
88150
|
-
"name": "
|
|
88112
|
+
"name": "mode",
|
|
88113
|
+
"type": {
|
|
88114
|
+
"text": "\"switch\" | \"text\""
|
|
88115
|
+
},
|
|
88116
|
+
"default": "\"switch\"",
|
|
88117
|
+
"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.",
|
|
88118
|
+
"fieldName": "mode"
|
|
88119
|
+
},
|
|
88120
|
+
{
|
|
88121
|
+
"name": "off-label",
|
|
88151
88122
|
"type": {
|
|
88152
88123
|
"text": "string"
|
|
88153
88124
|
},
|
|
88154
88125
|
"default": "\"\"",
|
|
88155
|
-
"description": "
|
|
88156
|
-
"fieldName": "
|
|
88126
|
+
"description": "Label shown for the unchecked (off) state when\n`mode=\"text\"`.",
|
|
88127
|
+
"fieldName": "offLabel"
|
|
88157
88128
|
},
|
|
88158
88129
|
{
|
|
88159
|
-
"name": "
|
|
88130
|
+
"name": "on-label",
|
|
88131
|
+
"type": {
|
|
88132
|
+
"text": "string"
|
|
88133
|
+
},
|
|
88134
|
+
"default": "\"\"",
|
|
88135
|
+
"description": "Label shown for the checked (on) state when\n`mode=\"text\"`.",
|
|
88136
|
+
"fieldName": "onLabel"
|
|
88137
|
+
},
|
|
88138
|
+
{
|
|
88139
|
+
"name": "checked",
|
|
88160
88140
|
"type": {
|
|
88161
88141
|
"text": "boolean"
|
|
88162
88142
|
},
|
|
88163
88143
|
"default": "false",
|
|
88164
|
-
"description": "Whether
|
|
88165
|
-
"fieldName": "
|
|
88144
|
+
"description": "Whether the switch is in the on state.",
|
|
88145
|
+
"fieldName": "checked"
|
|
88146
|
+
},
|
|
88147
|
+
{
|
|
88148
|
+
"name": "value",
|
|
88149
|
+
"type": {
|
|
88150
|
+
"text": "string"
|
|
88151
|
+
},
|
|
88152
|
+
"default": "\"\"",
|
|
88153
|
+
"description": "The value associated with this switch. Submitted with the\nform when the switch is on.",
|
|
88154
|
+
"fieldName": "value"
|
|
88155
|
+
},
|
|
88156
|
+
{
|
|
88157
|
+
"name": "name",
|
|
88158
|
+
"type": {
|
|
88159
|
+
"text": "string"
|
|
88160
|
+
},
|
|
88161
|
+
"default": "\"\"",
|
|
88162
|
+
"description": "The name used when the switch participates in a `<form>`.",
|
|
88163
|
+
"fieldName": "name"
|
|
88164
|
+
},
|
|
88165
|
+
{
|
|
88166
|
+
"name": "required",
|
|
88167
|
+
"type": {
|
|
88168
|
+
"text": "boolean"
|
|
88169
|
+
},
|
|
88170
|
+
"default": "false",
|
|
88171
|
+
"description": "When true, the switch must be on before the form can\nbe submitted.",
|
|
88172
|
+
"fieldName": "required"
|
|
88173
|
+
},
|
|
88174
|
+
{
|
|
88175
|
+
"name": "required-message",
|
|
88176
|
+
"type": {
|
|
88177
|
+
"text": "string"
|
|
88178
|
+
},
|
|
88179
|
+
"default": "\"\"",
|
|
88180
|
+
"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```",
|
|
88181
|
+
"fieldName": "requiredMessage"
|
|
88166
88182
|
},
|
|
88167
88183
|
{
|
|
88168
88184
|
"name": "disabled",
|
|
@@ -88170,7 +88186,7 @@
|
|
|
88170
88186
|
"text": "boolean"
|
|
88171
88187
|
},
|
|
88172
88188
|
"default": "false",
|
|
88173
|
-
"description": "
|
|
88189
|
+
"description": "Controls whether the switch is disabled.",
|
|
88174
88190
|
"fieldName": "disabled"
|
|
88175
88191
|
},
|
|
88176
88192
|
{
|
|
@@ -88215,37 +88231,45 @@
|
|
|
88215
88231
|
"name": "EspalierElementBase",
|
|
88216
88232
|
"module": "dist/shared/esp-element-base.js"
|
|
88217
88233
|
},
|
|
88218
|
-
"tagName": "esp-tab",
|
|
88219
|
-
"customElement": true,
|
|
88220
88234
|
"docPageTitle": {
|
|
88221
|
-
"name": "
|
|
88235
|
+
"name": "Switch",
|
|
88222
88236
|
"description": ""
|
|
88223
88237
|
},
|
|
88224
88238
|
"docUrl": {
|
|
88225
|
-
"name": "/components/
|
|
88239
|
+
"name": "/components/switch",
|
|
88226
88240
|
"description": ""
|
|
88227
88241
|
},
|
|
88228
88242
|
"menuGroup": {
|
|
88229
|
-
"name": "
|
|
88243
|
+
"name": "Form",
|
|
88244
|
+
"description": "Controls"
|
|
88245
|
+
},
|
|
88246
|
+
"menuLabel": {
|
|
88247
|
+
"name": "Switch",
|
|
88230
88248
|
"description": ""
|
|
88231
|
-
}
|
|
88249
|
+
},
|
|
88250
|
+
"menuIcon": {
|
|
88251
|
+
"name": "button",
|
|
88252
|
+
"description": ""
|
|
88253
|
+
},
|
|
88254
|
+
"tagName": "esp-switch",
|
|
88255
|
+
"customElement": true
|
|
88232
88256
|
}
|
|
88233
88257
|
],
|
|
88234
88258
|
"exports": [
|
|
88235
88259
|
{
|
|
88236
88260
|
"kind": "js",
|
|
88237
|
-
"name": "
|
|
88261
|
+
"name": "EspalierSwitch",
|
|
88238
88262
|
"declaration": {
|
|
88239
|
-
"name": "
|
|
88240
|
-
"module": "dist/
|
|
88263
|
+
"name": "EspalierSwitch",
|
|
88264
|
+
"module": "dist/switch/esp-switch.js"
|
|
88241
88265
|
}
|
|
88242
88266
|
},
|
|
88243
88267
|
{
|
|
88244
88268
|
"kind": "custom-element-definition",
|
|
88245
|
-
"name": "esp-
|
|
88269
|
+
"name": "esp-switch",
|
|
88246
88270
|
"declaration": {
|
|
88247
|
-
"name": "
|
|
88248
|
-
"module": "dist/
|
|
88271
|
+
"name": "EspalierSwitch",
|
|
88272
|
+
"module": "dist/switch/esp-switch.js"
|
|
88249
88273
|
}
|
|
88250
88274
|
}
|
|
88251
88275
|
]
|
|
@@ -96800,307 +96824,6 @@
|
|
|
96800
96824
|
"declarations": [],
|
|
96801
96825
|
"exports": []
|
|
96802
96826
|
},
|
|
96803
|
-
{
|
|
96804
|
-
"kind": "javascript-module",
|
|
96805
|
-
"path": "dist/root/helpers/compute-semantic-properties.js",
|
|
96806
|
-
"declarations": [
|
|
96807
|
-
{
|
|
96808
|
-
"kind": "function",
|
|
96809
|
-
"name": "computeSemanticProperties",
|
|
96810
|
-
"return": {
|
|
96811
|
-
"type": {
|
|
96812
|
-
"text": "Record<string, string>"
|
|
96813
|
-
}
|
|
96814
|
-
},
|
|
96815
|
-
"parameters": [
|
|
96816
|
-
{
|
|
96817
|
-
"name": "theme",
|
|
96818
|
-
"type": {
|
|
96819
|
-
"text": "EspalierTheme"
|
|
96820
|
-
}
|
|
96821
|
-
},
|
|
96822
|
-
{
|
|
96823
|
-
"name": "variants",
|
|
96824
|
-
"type": {
|
|
96825
|
-
"text": "Record<ColorSource, OklchColor>"
|
|
96826
|
-
}
|
|
96827
|
-
},
|
|
96828
|
-
{
|
|
96829
|
-
"name": "options",
|
|
96830
|
-
"default": "{}",
|
|
96831
|
-
"type": {
|
|
96832
|
-
"text": "ComputeSemanticPropertiesOptions"
|
|
96833
|
-
}
|
|
96834
|
-
}
|
|
96835
|
-
],
|
|
96836
|
-
"description": "Derive the complete twenty-three-token semantic table for a resolved theme.\n\nRoot output, context scopes, and intent overlays all use\nthis function so their APCA pairings cannot drift apart."
|
|
96837
|
-
}
|
|
96838
|
-
],
|
|
96839
|
-
"exports": [
|
|
96840
|
-
{
|
|
96841
|
-
"kind": "js",
|
|
96842
|
-
"name": "computeSemanticProperties",
|
|
96843
|
-
"declaration": {
|
|
96844
|
-
"name": "computeSemanticProperties",
|
|
96845
|
-
"module": "dist/root/helpers/compute-semantic-properties.js"
|
|
96846
|
-
}
|
|
96847
|
-
}
|
|
96848
|
-
]
|
|
96849
|
-
},
|
|
96850
|
-
{
|
|
96851
|
-
"kind": "javascript-module",
|
|
96852
|
-
"path": "dist/root/helpers/compute-theme-properties.js",
|
|
96853
|
-
"declarations": [
|
|
96854
|
-
{
|
|
96855
|
-
"kind": "function",
|
|
96856
|
-
"name": "dataSeriesProperties",
|
|
96857
|
-
"return": {
|
|
96858
|
-
"type": {
|
|
96859
|
-
"text": "Record<string, string>"
|
|
96860
|
-
}
|
|
96861
|
-
},
|
|
96862
|
-
"parameters": [
|
|
96863
|
-
{
|
|
96864
|
-
"name": "theme",
|
|
96865
|
-
"type": {
|
|
96866
|
-
"text": "EspalierTheme"
|
|
96867
|
-
}
|
|
96868
|
-
},
|
|
96869
|
-
{
|
|
96870
|
-
"name": "seed",
|
|
96871
|
-
"type": {
|
|
96872
|
-
"text": "OklchColor"
|
|
96873
|
-
}
|
|
96874
|
-
},
|
|
96875
|
-
{
|
|
96876
|
-
"name": "resolve",
|
|
96877
|
-
"type": {
|
|
96878
|
-
"text": "(source: unknown, label: string) => string"
|
|
96879
|
-
}
|
|
96880
|
-
},
|
|
96881
|
-
{
|
|
96882
|
-
"description": "Optional sink for the theme fit report (ESP0163). When\nsupplied, each semantic derivation is appended as it is emitted —\nthe emitted value read back out of the property record, and the\npre-enforcement value taken from the derivation itself — so a report\ndescribes this run rather than re-deriving it. When omitted the\npipeline does no reporting work at all.",
|
|
96883
|
-
"name": "trace"
|
|
96884
|
-
}
|
|
96885
|
-
],
|
|
96886
|
-
"description": "Emit the categorical series identities from a theme's data palette.\n\nShared between the root emission and the zone-table path (the zone\ncompanions need the identities without re-emitting them), so the two\ncan never resolve a palette differently."
|
|
96887
|
-
},
|
|
96888
|
-
{
|
|
96889
|
-
"kind": "function",
|
|
96890
|
-
"name": "computeThemeProperties",
|
|
96891
|
-
"return": {
|
|
96892
|
-
"type": {
|
|
96893
|
-
"text": "Record<string, string>"
|
|
96894
|
-
}
|
|
96895
|
-
},
|
|
96896
|
-
"parameters": [
|
|
96897
|
-
{
|
|
96898
|
-
"name": "theme",
|
|
96899
|
-
"type": {
|
|
96900
|
-
"text": "EspalierTheme"
|
|
96901
|
-
}
|
|
96902
|
-
},
|
|
96903
|
-
{
|
|
96904
|
-
"name": "scheme",
|
|
96905
|
-
"type": {
|
|
96906
|
-
"text": "\"light\" | \"dark\""
|
|
96907
|
-
}
|
|
96908
|
-
},
|
|
96909
|
-
{
|
|
96910
|
-
"name": "trace",
|
|
96911
|
-
"optional": true,
|
|
96912
|
-
"type": {
|
|
96913
|
-
"text": "ThemeFitTraceEntry[]"
|
|
96914
|
-
}
|
|
96915
|
-
}
|
|
96916
|
-
]
|
|
96917
|
-
}
|
|
96918
|
-
],
|
|
96919
|
-
"exports": [
|
|
96920
|
-
{
|
|
96921
|
-
"kind": "js",
|
|
96922
|
-
"name": "dataSeriesProperties",
|
|
96923
|
-
"declaration": {
|
|
96924
|
-
"name": "dataSeriesProperties",
|
|
96925
|
-
"module": "dist/root/helpers/compute-theme-properties.js"
|
|
96926
|
-
}
|
|
96927
|
-
},
|
|
96928
|
-
{
|
|
96929
|
-
"kind": "js",
|
|
96930
|
-
"name": "computeThemeProperties",
|
|
96931
|
-
"declaration": {
|
|
96932
|
-
"name": "computeThemeProperties",
|
|
96933
|
-
"module": "dist/root/helpers/compute-theme-properties.js"
|
|
96934
|
-
}
|
|
96935
|
-
}
|
|
96936
|
-
]
|
|
96937
|
-
},
|
|
96938
|
-
{
|
|
96939
|
-
"kind": "javascript-module",
|
|
96940
|
-
"path": "dist/root/helpers/compute-variants.js",
|
|
96941
|
-
"declarations": [],
|
|
96942
|
-
"exports": [
|
|
96943
|
-
{
|
|
96944
|
-
"kind": "js",
|
|
96945
|
-
"name": "computeVariants",
|
|
96946
|
-
"declaration": {
|
|
96947
|
-
"name": "computeVariants",
|
|
96948
|
-
"module": "../../shared/variant-engine.js"
|
|
96949
|
-
}
|
|
96950
|
-
},
|
|
96951
|
-
{
|
|
96952
|
-
"kind": "js",
|
|
96953
|
-
"name": "resolveMappingSource",
|
|
96954
|
-
"declaration": {
|
|
96955
|
-
"name": "resolveMappingSource",
|
|
96956
|
-
"module": "../../shared/variant-engine.js"
|
|
96957
|
-
}
|
|
96958
|
-
}
|
|
96959
|
-
]
|
|
96960
|
-
},
|
|
96961
|
-
{
|
|
96962
|
-
"kind": "javascript-module",
|
|
96963
|
-
"path": "dist/root/helpers/data-companion-properties.js",
|
|
96964
|
-
"declarations": [
|
|
96965
|
-
{
|
|
96966
|
-
"kind": "variable",
|
|
96967
|
-
"name": "DATA_WASH_SERIES_SHARE",
|
|
96968
|
-
"type": {
|
|
96969
|
-
"text": "number"
|
|
96970
|
-
},
|
|
96971
|
-
"default": "0.75",
|
|
96972
|
-
"description": "The series' share of the wash mix — the documented fill recipe."
|
|
96973
|
-
},
|
|
96974
|
-
{
|
|
96975
|
-
"kind": "variable",
|
|
96976
|
-
"name": "DATA_TINT_SERIES_SHARE",
|
|
96977
|
-
"type": {
|
|
96978
|
-
"text": "number"
|
|
96979
|
-
},
|
|
96980
|
-
"default": "0.12",
|
|
96981
|
-
"description": "The series' share of the subtle tint mix behind ordinary copy."
|
|
96982
|
-
},
|
|
96983
|
-
{
|
|
96984
|
-
"kind": "function",
|
|
96985
|
-
"name": "dataCompanionProperties",
|
|
96986
|
-
"return": {
|
|
96987
|
-
"type": {
|
|
96988
|
-
"text": "Record<string, string>"
|
|
96989
|
-
}
|
|
96990
|
-
},
|
|
96991
|
-
"parameters": [
|
|
96992
|
-
{
|
|
96993
|
-
"name": "properties",
|
|
96994
|
-
"type": {
|
|
96995
|
-
"text": "Record<string, string>"
|
|
96996
|
-
}
|
|
96997
|
-
},
|
|
96998
|
-
{
|
|
96999
|
-
"name": "inheritedSeries",
|
|
97000
|
-
"optional": true,
|
|
97001
|
-
"type": {
|
|
97002
|
-
"text": "Record<string, string>"
|
|
97003
|
-
}
|
|
97004
|
-
}
|
|
97005
|
-
],
|
|
97006
|
-
"description": "Compute the wash, tint, and ink companions for every series token\npresent in an emitted property table, against that table's own background.\n\nReads the *emitted* strings — the same read-back principle as the fit\nreport — so a companion can never disagree with the identity token or\nthe background it composes with. Zone tables pass their own table and\nget zone-correct companions; tables without series tokens (a zone\ntable, which inherits the root's identities) take them from\n`inheritedSeries`, the root-emitted table."
|
|
97007
|
-
}
|
|
97008
|
-
],
|
|
97009
|
-
"exports": [
|
|
97010
|
-
{
|
|
97011
|
-
"kind": "js",
|
|
97012
|
-
"name": "DATA_WASH_SERIES_SHARE",
|
|
97013
|
-
"declaration": {
|
|
97014
|
-
"name": "DATA_WASH_SERIES_SHARE",
|
|
97015
|
-
"module": "dist/root/helpers/data-companion-properties.js"
|
|
97016
|
-
}
|
|
97017
|
-
},
|
|
97018
|
-
{
|
|
97019
|
-
"kind": "js",
|
|
97020
|
-
"name": "DATA_TINT_SERIES_SHARE",
|
|
97021
|
-
"declaration": {
|
|
97022
|
-
"name": "DATA_TINT_SERIES_SHARE",
|
|
97023
|
-
"module": "dist/root/helpers/data-companion-properties.js"
|
|
97024
|
-
}
|
|
97025
|
-
},
|
|
97026
|
-
{
|
|
97027
|
-
"kind": "js",
|
|
97028
|
-
"name": "dataCompanionProperties",
|
|
97029
|
-
"declaration": {
|
|
97030
|
-
"name": "dataCompanionProperties",
|
|
97031
|
-
"module": "dist/root/helpers/data-companion-properties.js"
|
|
97032
|
-
}
|
|
97033
|
-
}
|
|
97034
|
-
]
|
|
97035
|
-
},
|
|
97036
|
-
{
|
|
97037
|
-
"kind": "javascript-module",
|
|
97038
|
-
"path": "dist/root/helpers/lightness-key-to-css.js",
|
|
97039
|
-
"declarations": [
|
|
97040
|
-
{
|
|
97041
|
-
"kind": "function",
|
|
97042
|
-
"name": "lightnessKeyToCSS",
|
|
97043
|
-
"return": {
|
|
97044
|
-
"type": {
|
|
97045
|
-
"text": "string"
|
|
97046
|
-
}
|
|
97047
|
-
},
|
|
97048
|
-
"parameters": [
|
|
97049
|
-
{
|
|
97050
|
-
"name": "key",
|
|
97051
|
-
"type": {
|
|
97052
|
-
"text": "string"
|
|
97053
|
-
}
|
|
97054
|
-
}
|
|
97055
|
-
],
|
|
97056
|
-
"description": "Map a camelCase import(\"../../shared/theme.js\").LightnessKey\nto its CSS custom-property name.\n\n```\nraised1 → --esp-l-raised-1\nsurface → --esp-l-surface\n```"
|
|
97057
|
-
}
|
|
97058
|
-
],
|
|
97059
|
-
"exports": [
|
|
97060
|
-
{
|
|
97061
|
-
"kind": "js",
|
|
97062
|
-
"name": "lightnessKeyToCSS",
|
|
97063
|
-
"declaration": {
|
|
97064
|
-
"name": "lightnessKeyToCSS",
|
|
97065
|
-
"module": "dist/root/helpers/lightness-key-to-css.js"
|
|
97066
|
-
}
|
|
97067
|
-
}
|
|
97068
|
-
]
|
|
97069
|
-
},
|
|
97070
|
-
{
|
|
97071
|
-
"kind": "javascript-module",
|
|
97072
|
-
"path": "dist/root/helpers/lightness-ramp-properties.js",
|
|
97073
|
-
"declarations": [
|
|
97074
|
-
{
|
|
97075
|
-
"kind": "function",
|
|
97076
|
-
"name": "lightnessRampProperties",
|
|
97077
|
-
"return": {
|
|
97078
|
-
"type": {
|
|
97079
|
-
"text": "Record<string, string>"
|
|
97080
|
-
}
|
|
97081
|
-
},
|
|
97082
|
-
"parameters": [
|
|
97083
|
-
{
|
|
97084
|
-
"name": "theme",
|
|
97085
|
-
"type": {
|
|
97086
|
-
"text": "EspalierTheme"
|
|
97087
|
-
}
|
|
97088
|
-
}
|
|
97089
|
-
],
|
|
97090
|
-
"description": "The `--esp-l-*` ramp custom properties for a theme, in the percentage\nformat consumers expect inside relative color syntax — for example\n`oklch(from var(--esp-color-danger) var(--esp-l-raised-2) c h)`.\n\nEmitted by `<esp-root>` for the page and re-emitted by context zones\nfrom their merged theme, so ramp-derived styling — the `.intent-*`\nsurface classes, component chrome — re-derives against the zone's\nactual ramp instead of the root's. Without the zone emission a dark\nzone's class-styled chrome mixes provenance: a surface placed by the\nroot's light ramp under ink drawn from the zone's dark-surface table."
|
|
97091
|
-
}
|
|
97092
|
-
],
|
|
97093
|
-
"exports": [
|
|
97094
|
-
{
|
|
97095
|
-
"kind": "js",
|
|
97096
|
-
"name": "lightnessRampProperties",
|
|
97097
|
-
"declaration": {
|
|
97098
|
-
"name": "lightnessRampProperties",
|
|
97099
|
-
"module": "dist/root/helpers/lightness-ramp-properties.js"
|
|
97100
|
-
}
|
|
97101
|
-
}
|
|
97102
|
-
]
|
|
97103
|
-
},
|
|
97104
96827
|
{
|
|
97105
96828
|
"kind": "javascript-module",
|
|
97106
96829
|
"path": "dist/shared/svgs/calendar-icon.js",
|
|
@@ -97500,6 +97223,307 @@
|
|
|
97500
97223
|
}
|
|
97501
97224
|
}
|
|
97502
97225
|
]
|
|
97226
|
+
},
|
|
97227
|
+
{
|
|
97228
|
+
"kind": "javascript-module",
|
|
97229
|
+
"path": "dist/root/helpers/compute-semantic-properties.js",
|
|
97230
|
+
"declarations": [
|
|
97231
|
+
{
|
|
97232
|
+
"kind": "function",
|
|
97233
|
+
"name": "computeSemanticProperties",
|
|
97234
|
+
"return": {
|
|
97235
|
+
"type": {
|
|
97236
|
+
"text": "Record<string, string>"
|
|
97237
|
+
}
|
|
97238
|
+
},
|
|
97239
|
+
"parameters": [
|
|
97240
|
+
{
|
|
97241
|
+
"name": "theme",
|
|
97242
|
+
"type": {
|
|
97243
|
+
"text": "EspalierTheme"
|
|
97244
|
+
}
|
|
97245
|
+
},
|
|
97246
|
+
{
|
|
97247
|
+
"name": "variants",
|
|
97248
|
+
"type": {
|
|
97249
|
+
"text": "Record<ColorSource, OklchColor>"
|
|
97250
|
+
}
|
|
97251
|
+
},
|
|
97252
|
+
{
|
|
97253
|
+
"name": "options",
|
|
97254
|
+
"default": "{}",
|
|
97255
|
+
"type": {
|
|
97256
|
+
"text": "ComputeSemanticPropertiesOptions"
|
|
97257
|
+
}
|
|
97258
|
+
}
|
|
97259
|
+
],
|
|
97260
|
+
"description": "Derive the complete twenty-three-token semantic table for a resolved theme.\n\nRoot output, context scopes, and intent overlays all use\nthis function so their APCA pairings cannot drift apart."
|
|
97261
|
+
}
|
|
97262
|
+
],
|
|
97263
|
+
"exports": [
|
|
97264
|
+
{
|
|
97265
|
+
"kind": "js",
|
|
97266
|
+
"name": "computeSemanticProperties",
|
|
97267
|
+
"declaration": {
|
|
97268
|
+
"name": "computeSemanticProperties",
|
|
97269
|
+
"module": "dist/root/helpers/compute-semantic-properties.js"
|
|
97270
|
+
}
|
|
97271
|
+
}
|
|
97272
|
+
]
|
|
97273
|
+
},
|
|
97274
|
+
{
|
|
97275
|
+
"kind": "javascript-module",
|
|
97276
|
+
"path": "dist/root/helpers/compute-theme-properties.js",
|
|
97277
|
+
"declarations": [
|
|
97278
|
+
{
|
|
97279
|
+
"kind": "function",
|
|
97280
|
+
"name": "dataSeriesProperties",
|
|
97281
|
+
"return": {
|
|
97282
|
+
"type": {
|
|
97283
|
+
"text": "Record<string, string>"
|
|
97284
|
+
}
|
|
97285
|
+
},
|
|
97286
|
+
"parameters": [
|
|
97287
|
+
{
|
|
97288
|
+
"name": "theme",
|
|
97289
|
+
"type": {
|
|
97290
|
+
"text": "EspalierTheme"
|
|
97291
|
+
}
|
|
97292
|
+
},
|
|
97293
|
+
{
|
|
97294
|
+
"name": "seed",
|
|
97295
|
+
"type": {
|
|
97296
|
+
"text": "OklchColor"
|
|
97297
|
+
}
|
|
97298
|
+
},
|
|
97299
|
+
{
|
|
97300
|
+
"name": "resolve",
|
|
97301
|
+
"type": {
|
|
97302
|
+
"text": "(source: unknown, label: string) => string"
|
|
97303
|
+
}
|
|
97304
|
+
},
|
|
97305
|
+
{
|
|
97306
|
+
"description": "Optional sink for the theme fit report (ESP0163). When\nsupplied, each semantic derivation is appended as it is emitted —\nthe emitted value read back out of the property record, and the\npre-enforcement value taken from the derivation itself — so a report\ndescribes this run rather than re-deriving it. When omitted the\npipeline does no reporting work at all.",
|
|
97307
|
+
"name": "trace"
|
|
97308
|
+
}
|
|
97309
|
+
],
|
|
97310
|
+
"description": "Emit the categorical series identities from a theme's data palette.\n\nShared between the root emission and the zone-table path (the zone\ncompanions need the identities without re-emitting them), so the two\ncan never resolve a palette differently."
|
|
97311
|
+
},
|
|
97312
|
+
{
|
|
97313
|
+
"kind": "function",
|
|
97314
|
+
"name": "computeThemeProperties",
|
|
97315
|
+
"return": {
|
|
97316
|
+
"type": {
|
|
97317
|
+
"text": "Record<string, string>"
|
|
97318
|
+
}
|
|
97319
|
+
},
|
|
97320
|
+
"parameters": [
|
|
97321
|
+
{
|
|
97322
|
+
"name": "theme",
|
|
97323
|
+
"type": {
|
|
97324
|
+
"text": "EspalierTheme"
|
|
97325
|
+
}
|
|
97326
|
+
},
|
|
97327
|
+
{
|
|
97328
|
+
"name": "scheme",
|
|
97329
|
+
"type": {
|
|
97330
|
+
"text": "\"light\" | \"dark\""
|
|
97331
|
+
}
|
|
97332
|
+
},
|
|
97333
|
+
{
|
|
97334
|
+
"name": "trace",
|
|
97335
|
+
"optional": true,
|
|
97336
|
+
"type": {
|
|
97337
|
+
"text": "ThemeFitTraceEntry[]"
|
|
97338
|
+
}
|
|
97339
|
+
}
|
|
97340
|
+
]
|
|
97341
|
+
}
|
|
97342
|
+
],
|
|
97343
|
+
"exports": [
|
|
97344
|
+
{
|
|
97345
|
+
"kind": "js",
|
|
97346
|
+
"name": "dataSeriesProperties",
|
|
97347
|
+
"declaration": {
|
|
97348
|
+
"name": "dataSeriesProperties",
|
|
97349
|
+
"module": "dist/root/helpers/compute-theme-properties.js"
|
|
97350
|
+
}
|
|
97351
|
+
},
|
|
97352
|
+
{
|
|
97353
|
+
"kind": "js",
|
|
97354
|
+
"name": "computeThemeProperties",
|
|
97355
|
+
"declaration": {
|
|
97356
|
+
"name": "computeThemeProperties",
|
|
97357
|
+
"module": "dist/root/helpers/compute-theme-properties.js"
|
|
97358
|
+
}
|
|
97359
|
+
}
|
|
97360
|
+
]
|
|
97361
|
+
},
|
|
97362
|
+
{
|
|
97363
|
+
"kind": "javascript-module",
|
|
97364
|
+
"path": "dist/root/helpers/compute-variants.js",
|
|
97365
|
+
"declarations": [],
|
|
97366
|
+
"exports": [
|
|
97367
|
+
{
|
|
97368
|
+
"kind": "js",
|
|
97369
|
+
"name": "computeVariants",
|
|
97370
|
+
"declaration": {
|
|
97371
|
+
"name": "computeVariants",
|
|
97372
|
+
"module": "../../shared/variant-engine.js"
|
|
97373
|
+
}
|
|
97374
|
+
},
|
|
97375
|
+
{
|
|
97376
|
+
"kind": "js",
|
|
97377
|
+
"name": "resolveMappingSource",
|
|
97378
|
+
"declaration": {
|
|
97379
|
+
"name": "resolveMappingSource",
|
|
97380
|
+
"module": "../../shared/variant-engine.js"
|
|
97381
|
+
}
|
|
97382
|
+
}
|
|
97383
|
+
]
|
|
97384
|
+
},
|
|
97385
|
+
{
|
|
97386
|
+
"kind": "javascript-module",
|
|
97387
|
+
"path": "dist/root/helpers/data-companion-properties.js",
|
|
97388
|
+
"declarations": [
|
|
97389
|
+
{
|
|
97390
|
+
"kind": "variable",
|
|
97391
|
+
"name": "DATA_WASH_SERIES_SHARE",
|
|
97392
|
+
"type": {
|
|
97393
|
+
"text": "number"
|
|
97394
|
+
},
|
|
97395
|
+
"default": "0.75",
|
|
97396
|
+
"description": "The series' share of the wash mix — the documented fill recipe."
|
|
97397
|
+
},
|
|
97398
|
+
{
|
|
97399
|
+
"kind": "variable",
|
|
97400
|
+
"name": "DATA_TINT_SERIES_SHARE",
|
|
97401
|
+
"type": {
|
|
97402
|
+
"text": "number"
|
|
97403
|
+
},
|
|
97404
|
+
"default": "0.12",
|
|
97405
|
+
"description": "The series' share of the subtle tint mix behind ordinary copy."
|
|
97406
|
+
},
|
|
97407
|
+
{
|
|
97408
|
+
"kind": "function",
|
|
97409
|
+
"name": "dataCompanionProperties",
|
|
97410
|
+
"return": {
|
|
97411
|
+
"type": {
|
|
97412
|
+
"text": "Record<string, string>"
|
|
97413
|
+
}
|
|
97414
|
+
},
|
|
97415
|
+
"parameters": [
|
|
97416
|
+
{
|
|
97417
|
+
"name": "properties",
|
|
97418
|
+
"type": {
|
|
97419
|
+
"text": "Record<string, string>"
|
|
97420
|
+
}
|
|
97421
|
+
},
|
|
97422
|
+
{
|
|
97423
|
+
"name": "inheritedSeries",
|
|
97424
|
+
"optional": true,
|
|
97425
|
+
"type": {
|
|
97426
|
+
"text": "Record<string, string>"
|
|
97427
|
+
}
|
|
97428
|
+
}
|
|
97429
|
+
],
|
|
97430
|
+
"description": "Compute the wash, tint, and ink companions for every series token\npresent in an emitted property table, against that table's own background.\n\nReads the *emitted* strings — the same read-back principle as the fit\nreport — so a companion can never disagree with the identity token or\nthe background it composes with. Zone tables pass their own table and\nget zone-correct companions; tables without series tokens (a zone\ntable, which inherits the root's identities) take them from\n`inheritedSeries`, the root-emitted table."
|
|
97431
|
+
}
|
|
97432
|
+
],
|
|
97433
|
+
"exports": [
|
|
97434
|
+
{
|
|
97435
|
+
"kind": "js",
|
|
97436
|
+
"name": "DATA_WASH_SERIES_SHARE",
|
|
97437
|
+
"declaration": {
|
|
97438
|
+
"name": "DATA_WASH_SERIES_SHARE",
|
|
97439
|
+
"module": "dist/root/helpers/data-companion-properties.js"
|
|
97440
|
+
}
|
|
97441
|
+
},
|
|
97442
|
+
{
|
|
97443
|
+
"kind": "js",
|
|
97444
|
+
"name": "DATA_TINT_SERIES_SHARE",
|
|
97445
|
+
"declaration": {
|
|
97446
|
+
"name": "DATA_TINT_SERIES_SHARE",
|
|
97447
|
+
"module": "dist/root/helpers/data-companion-properties.js"
|
|
97448
|
+
}
|
|
97449
|
+
},
|
|
97450
|
+
{
|
|
97451
|
+
"kind": "js",
|
|
97452
|
+
"name": "dataCompanionProperties",
|
|
97453
|
+
"declaration": {
|
|
97454
|
+
"name": "dataCompanionProperties",
|
|
97455
|
+
"module": "dist/root/helpers/data-companion-properties.js"
|
|
97456
|
+
}
|
|
97457
|
+
}
|
|
97458
|
+
]
|
|
97459
|
+
},
|
|
97460
|
+
{
|
|
97461
|
+
"kind": "javascript-module",
|
|
97462
|
+
"path": "dist/root/helpers/lightness-key-to-css.js",
|
|
97463
|
+
"declarations": [
|
|
97464
|
+
{
|
|
97465
|
+
"kind": "function",
|
|
97466
|
+
"name": "lightnessKeyToCSS",
|
|
97467
|
+
"return": {
|
|
97468
|
+
"type": {
|
|
97469
|
+
"text": "string"
|
|
97470
|
+
}
|
|
97471
|
+
},
|
|
97472
|
+
"parameters": [
|
|
97473
|
+
{
|
|
97474
|
+
"name": "key",
|
|
97475
|
+
"type": {
|
|
97476
|
+
"text": "string"
|
|
97477
|
+
}
|
|
97478
|
+
}
|
|
97479
|
+
],
|
|
97480
|
+
"description": "Map a camelCase import(\"../../shared/theme.js\").LightnessKey\nto its CSS custom-property name.\n\n```\nraised1 → --esp-l-raised-1\nsurface → --esp-l-surface\n```"
|
|
97481
|
+
}
|
|
97482
|
+
],
|
|
97483
|
+
"exports": [
|
|
97484
|
+
{
|
|
97485
|
+
"kind": "js",
|
|
97486
|
+
"name": "lightnessKeyToCSS",
|
|
97487
|
+
"declaration": {
|
|
97488
|
+
"name": "lightnessKeyToCSS",
|
|
97489
|
+
"module": "dist/root/helpers/lightness-key-to-css.js"
|
|
97490
|
+
}
|
|
97491
|
+
}
|
|
97492
|
+
]
|
|
97493
|
+
},
|
|
97494
|
+
{
|
|
97495
|
+
"kind": "javascript-module",
|
|
97496
|
+
"path": "dist/root/helpers/lightness-ramp-properties.js",
|
|
97497
|
+
"declarations": [
|
|
97498
|
+
{
|
|
97499
|
+
"kind": "function",
|
|
97500
|
+
"name": "lightnessRampProperties",
|
|
97501
|
+
"return": {
|
|
97502
|
+
"type": {
|
|
97503
|
+
"text": "Record<string, string>"
|
|
97504
|
+
}
|
|
97505
|
+
},
|
|
97506
|
+
"parameters": [
|
|
97507
|
+
{
|
|
97508
|
+
"name": "theme",
|
|
97509
|
+
"type": {
|
|
97510
|
+
"text": "EspalierTheme"
|
|
97511
|
+
}
|
|
97512
|
+
}
|
|
97513
|
+
],
|
|
97514
|
+
"description": "The `--esp-l-*` ramp custom properties for a theme, in the percentage\nformat consumers expect inside relative color syntax — for example\n`oklch(from var(--esp-color-danger) var(--esp-l-raised-2) c h)`.\n\nEmitted by `<esp-root>` for the page and re-emitted by context zones\nfrom their merged theme, so ramp-derived styling — the `.intent-*`\nsurface classes, component chrome — re-derives against the zone's\nactual ramp instead of the root's. Without the zone emission a dark\nzone's class-styled chrome mixes provenance: a surface placed by the\nroot's light ramp under ink drawn from the zone's dark-surface table."
|
|
97515
|
+
}
|
|
97516
|
+
],
|
|
97517
|
+
"exports": [
|
|
97518
|
+
{
|
|
97519
|
+
"kind": "js",
|
|
97520
|
+
"name": "lightnessRampProperties",
|
|
97521
|
+
"declaration": {
|
|
97522
|
+
"name": "lightnessRampProperties",
|
|
97523
|
+
"module": "dist/root/helpers/lightness-ramp-properties.js"
|
|
97524
|
+
}
|
|
97525
|
+
}
|
|
97526
|
+
]
|
|
97503
97527
|
}
|
|
97504
97528
|
]
|
|
97505
97529
|
}
|