@solid-design-system/components 4.0.5 → 4.0.7
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/cdn/chunks/{chunk.7JRCI5T7.js → chunk.3H546YPQ.js} +1 -1
- package/cdn/chunks/chunk.4EXZ2RBI.js +1 -0
- package/cdn/chunks/{chunk.PPMFZ77L.js → chunk.LXL4FWEA.js} +1 -1
- package/cdn/chunks/chunk.MOQCXANY.js +4 -0
- package/cdn/components/audio/audio.js +1 -1
- package/cdn/components/drawer/drawer.js +1 -1
- package/cdn/components/navigation-item/navigation-item.js +1 -1
- package/cdn/components/tooltip/tooltip.d.ts +1 -0
- package/cdn/components/tooltip/tooltip.js +1 -1
- package/cdn/custom-elements.json +1 -1
- package/cdn/solid-components.bundle.js +10 -10
- package/cdn/solid-components.iife.js +11 -11
- package/cdn/solid-components.js +1 -1
- package/cdn/web-types.json +1 -1
- package/cdn-versioned/_components/menu/menu.js +1 -1
- package/cdn-versioned/_components/menu/menu.styles.js +1 -1
- package/cdn-versioned/_components/menu-item/menu-item.js +2 -2
- package/cdn-versioned/chunks/chunk.25ETUACJ.js +1 -1
- package/cdn-versioned/chunks/chunk.27EYM5XP.js +4 -4
- package/cdn-versioned/chunks/chunk.2H5XA4I4.js +1 -1
- package/cdn-versioned/chunks/chunk.2OLKGLBS.js +1 -1
- package/cdn-versioned/chunks/{chunk.7JRCI5T7.js → chunk.3H546YPQ.js} +1 -1
- package/cdn-versioned/chunks/chunk.4EXZ2RBI.js +1 -0
- package/cdn-versioned/chunks/chunk.4QUXWXQ7.js +1 -1
- package/cdn-versioned/chunks/chunk.5CIQRJCC.js +1 -1
- package/cdn-versioned/chunks/chunk.65NSSTJE.js +1 -1
- package/cdn-versioned/chunks/chunk.7ZYFSBMR.js +1 -1
- package/cdn-versioned/chunks/chunk.A63P52TG.js +1 -1
- package/cdn-versioned/chunks/chunk.A772RQJV.js +1 -1
- package/cdn-versioned/chunks/chunk.ANH5V2SE.js +2 -2
- package/cdn-versioned/chunks/chunk.AS7L23H2.js +2 -2
- package/cdn-versioned/chunks/chunk.B3H3PR6Y.js +1 -1
- package/cdn-versioned/chunks/chunk.B5YKUN6P.js +1 -1
- package/cdn-versioned/chunks/chunk.B6I2NZMP.js +4 -4
- package/cdn-versioned/chunks/chunk.BAO3UVTY.js +1 -1
- package/cdn-versioned/chunks/chunk.CAJUSOAF.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.D4RLVVDK.js +1 -1
- package/cdn-versioned/chunks/chunk.DUM4IQT6.js +1 -1
- package/cdn-versioned/chunks/chunk.EDD4HHHP.js +1 -1
- package/cdn-versioned/chunks/chunk.EJKLI2Q4.js +1 -1
- package/cdn-versioned/chunks/chunk.EP7OA5FU.js +1 -1
- package/cdn-versioned/chunks/chunk.GNYJN5QM.js +3 -3
- package/cdn-versioned/chunks/chunk.GQU4LYQ6.js +1 -1
- package/cdn-versioned/chunks/chunk.GX6NOXTL.js +1 -1
- package/cdn-versioned/chunks/chunk.JUGW2WJP.js +1 -1
- package/cdn-versioned/chunks/chunk.LPXG67S4.js +1 -1
- package/cdn-versioned/chunks/chunk.LQZOBUFT.js +1 -1
- package/cdn-versioned/chunks/chunk.LVDI5OTS.js +1 -1
- package/cdn-versioned/chunks/{chunk.PPMFZ77L.js → chunk.LXL4FWEA.js} +1 -1
- package/cdn-versioned/chunks/chunk.MOQCXANY.js +4 -0
- package/cdn-versioned/chunks/chunk.N5OYRZY6.js +1 -1
- package/cdn-versioned/chunks/chunk.OCT5SOOS.js +1 -1
- package/cdn-versioned/chunks/chunk.QA3NVZY4.js +1 -1
- package/cdn-versioned/chunks/chunk.QOQO2KP5.js +1 -1
- package/cdn-versioned/chunks/chunk.QV7OIYLT.js +1 -1
- package/cdn-versioned/chunks/chunk.QWPCVRMH.js +1 -1
- package/cdn-versioned/chunks/chunk.SJ2JO4KS.js +1 -1
- package/cdn-versioned/chunks/chunk.SWUGEKNC.js +1 -1
- package/cdn-versioned/chunks/chunk.TR52VDPR.js +1 -1
- package/cdn-versioned/chunks/chunk.U5SOEJO4.js +1 -1
- package/cdn-versioned/chunks/chunk.V3WIIJLB.js +1 -1
- package/cdn-versioned/chunks/chunk.VYV6SKST.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WADGCWRK.js +1 -1
- package/cdn-versioned/chunks/chunk.WG3IQMLL.js +1 -1
- package/cdn-versioned/chunks/chunk.WNV6OGRG.js +1 -1
- package/cdn-versioned/chunks/chunk.WVYVGVBF.js +1 -1
- package/cdn-versioned/chunks/chunk.Y67MAFTR.js +1 -1
- package/cdn-versioned/chunks/chunk.ZWWTEE7R.js +1 -1
- package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/cdn-versioned/components/animation/animation.d.ts +1 -1
- package/cdn-versioned/components/audio/audio.d.ts +1 -1
- package/cdn-versioned/components/audio/audio.js +1 -1
- package/cdn-versioned/components/badge/badge.d.ts +1 -1
- package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/cdn-versioned/components/button/button.d.ts +1 -1
- package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
- package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
- package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/cdn-versioned/components/combobox/combobox.d.ts +4 -4
- package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
- package/cdn-versioned/components/divider/divider.d.ts +1 -1
- package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
- package/cdn-versioned/components/drawer/drawer.js +1 -1
- package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
- package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/cdn-versioned/components/header/header.d.ts +1 -1
- package/cdn-versioned/components/icon/icon.d.ts +1 -1
- package/cdn-versioned/components/include/include.d.ts +1 -1
- package/cdn-versioned/components/input/input.d.ts +1 -1
- package/cdn-versioned/components/link/link.d.ts +1 -1
- package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.js +1 -1
- package/cdn-versioned/components/notification/notification.d.ts +1 -1
- package/cdn-versioned/components/optgroup/optgroup.d.ts +2 -2
- package/cdn-versioned/components/option/option.d.ts +1 -1
- package/cdn-versioned/components/popup/popup.d.ts +1 -1
- package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/cdn-versioned/components/radio/radio.d.ts +1 -1
- package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +2 -2
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +4 -4
- package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
- package/cdn-versioned/components/step/step.d.ts +1 -1
- package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
- package/cdn-versioned/components/switch/switch.d.ts +1 -1
- package/cdn-versioned/components/tab/tab.d.ts +1 -1
- package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/cdn-versioned/components/tag/tag.d.ts +1 -1
- package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
- package/cdn-versioned/components/tooltip/tooltip.d.ts +2 -1
- package/cdn-versioned/components/tooltip/tooltip.js +1 -1
- package/cdn-versioned/components/video/video.d.ts +1 -1
- package/cdn-versioned/custom-elements.json +202 -202
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +18 -18
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +20 -20
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +80 -80
- package/cdn-versioned/web-types.json +137 -137
- package/dist/chunks/{chunk.32MPDFO4.js → chunk.F63YFNZS.js} +1 -1
- package/dist/chunks/{chunk.3KYVW6TB.js → chunk.K3JCC7KV.js} +11 -0
- package/dist/chunks/{chunk.LU65KM4S.js → chunk.OZU372TI.js} +6 -3
- package/dist/components/audio/audio.js +2 -2
- package/dist/components/drawer/drawer.js +1 -1
- package/dist/components/navigation-item/navigation-item.js +1 -1
- package/dist/components/tooltip/tooltip.d.ts +1 -0
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/custom-elements.json +1 -1
- package/dist/solid-components.js +11 -11
- package/dist/web-types.json +1 -1
- package/dist-versioned/_components/menu/menu.js +1 -1
- package/dist-versioned/_components/menu/menu.styles.js +1 -1
- package/dist-versioned/_components/menu-item/menu-item.js +2 -2
- package/dist-versioned/chunks/chunk.274HT4QS.js +3 -3
- package/dist-versioned/chunks/chunk.2FXKQI26.js +2 -2
- package/dist-versioned/chunks/chunk.4MHQ63NW.js +26 -26
- package/dist-versioned/chunks/chunk.4Q7KKH5Z.js +2 -2
- package/dist-versioned/chunks/chunk.674S2Z6M.js +1 -1
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.7E7C4YEQ.js +3 -3
- package/dist-versioned/chunks/chunk.A5S7GZJI.js +3 -3
- package/dist-versioned/chunks/chunk.ACST636J.js +1 -1
- package/dist-versioned/chunks/chunk.AJ7V76EG.js +1 -1
- package/dist-versioned/chunks/chunk.AKF4KQEW.js +2 -2
- package/dist-versioned/chunks/chunk.AQZSZKBJ.js +13 -13
- package/dist-versioned/chunks/chunk.BJIZPRT4.js +5 -5
- package/dist-versioned/chunks/chunk.CCQCEONR.js +2 -2
- package/dist-versioned/chunks/chunk.D26WCHLT.js +6 -6
- package/dist-versioned/chunks/chunk.DPY2TYIS.js +9 -9
- package/dist-versioned/chunks/chunk.DU3O42BH.js +2 -2
- package/dist-versioned/chunks/chunk.EH2FHVPN.js +3 -3
- package/dist-versioned/chunks/{chunk.32MPDFO4.js → chunk.F63YFNZS.js} +6 -6
- package/dist-versioned/chunks/chunk.FFKZQXJ2.js +2 -2
- package/dist-versioned/chunks/chunk.FTXUZOXH.js +2 -2
- package/dist-versioned/chunks/chunk.H5ARRBLT.js +2 -2
- package/dist-versioned/chunks/chunk.H5BDO4H5.js +11 -11
- package/dist-versioned/chunks/chunk.HFHUY7YD.js +1 -1
- package/dist-versioned/chunks/chunk.HP2TVELZ.js +1 -1
- package/dist-versioned/chunks/chunk.IN7RNHBF.js +1 -1
- package/dist-versioned/chunks/chunk.JIWTAZZS.js +5 -5
- package/dist-versioned/chunks/chunk.JZB2D4IZ.js +1 -1
- package/dist-versioned/chunks/{chunk.3KYVW6TB.js → chunk.K3JCC7KV.js} +16 -5
- package/dist-versioned/chunks/chunk.KH4M6HPE.js +2 -2
- package/dist-versioned/chunks/chunk.KPA6BEFU.js +5 -5
- package/dist-versioned/chunks/{chunk.TGJ2SBPH.js → chunk.KQAHFLVX.js} +9 -9
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/chunk.L32THKSR.js +3 -3
- package/dist-versioned/chunks/chunk.L5XQ7O4S.js +2 -2
- package/dist-versioned/chunks/chunk.LZA2QYUU.js +1 -1
- package/dist-versioned/chunks/chunk.NUIZDE7R.js +1 -1
- package/dist-versioned/chunks/chunk.NY5S53W2.js +13 -13
- package/dist-versioned/chunks/chunk.OBWOMZNU.js +2 -2
- package/dist-versioned/chunks/chunk.OMBVLHXJ.js +1 -1
- package/dist-versioned/chunks/chunk.OR7JTZLE.js +2 -2
- package/dist-versioned/chunks/{chunk.LU65KM4S.js → chunk.OZU372TI.js} +7 -4
- package/dist-versioned/chunks/chunk.PRXP5CUW.js +5 -5
- package/dist-versioned/chunks/chunk.PT7MDSWH.js +1 -1
- package/dist-versioned/chunks/chunk.QTFIZJGB.js +2 -2
- package/dist-versioned/chunks/chunk.QUYKT56M.js +1 -1
- package/dist-versioned/chunks/chunk.SNCHAQYL.js +4 -4
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.VTUCPGYW.js +1 -1
- package/dist-versioned/chunks/chunk.X2PI2F35.js +1 -1
- package/dist-versioned/chunks/chunk.XL2PSGM5.js +2 -2
- package/dist-versioned/chunks/chunk.XQNY7RZD.js +29 -29
- package/dist-versioned/chunks/chunk.Y7254YJM.js +2 -2
- package/dist-versioned/components/accordion/accordion.d.ts +1 -1
- package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist-versioned/components/animation/animation.d.ts +1 -1
- package/dist-versioned/components/audio/audio.d.ts +1 -1
- package/dist-versioned/components/audio/audio.js +2 -2
- package/dist-versioned/components/badge/badge.d.ts +1 -1
- package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/dist-versioned/components/button/button.d.ts +1 -1
- package/dist-versioned/components/button-group/button-group.d.ts +1 -1
- package/dist-versioned/components/carousel/carousel.d.ts +1 -1
- package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist-versioned/components/combobox/combobox.d.ts +4 -4
- package/dist-versioned/components/dialog/dialog.d.ts +1 -1
- package/dist-versioned/components/divider/divider.d.ts +1 -1
- package/dist-versioned/components/drawer/drawer.d.ts +1 -1
- package/dist-versioned/components/drawer/drawer.js +1 -1
- package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/dist-versioned/components/expandable/expandable.d.ts +1 -1
- package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/dist-versioned/components/header/header.d.ts +1 -1
- package/dist-versioned/components/icon/icon.d.ts +1 -1
- package/dist-versioned/components/include/include.d.ts +1 -1
- package/dist-versioned/components/input/input.d.ts +1 -1
- package/dist-versioned/components/link/link.d.ts +1 -1
- package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist-versioned/components/navigation-item/navigation-item.js +1 -1
- package/dist-versioned/components/notification/notification.d.ts +1 -1
- package/dist-versioned/components/optgroup/optgroup.d.ts +2 -2
- package/dist-versioned/components/option/option.d.ts +1 -1
- package/dist-versioned/components/popup/popup.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/dist-versioned/components/radio/radio.d.ts +1 -1
- package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/dist-versioned/components/radio-group/radio-group.d.ts +2 -2
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +4 -4
- package/dist-versioned/components/spinner/spinner.d.ts +1 -1
- package/dist-versioned/components/step/step.d.ts +1 -1
- package/dist-versioned/components/step-group/step-group.d.ts +1 -1
- package/dist-versioned/components/switch/switch.d.ts +1 -1
- package/dist-versioned/components/tab/tab.d.ts +1 -1
- package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist-versioned/components/tag/tag.d.ts +1 -1
- package/dist-versioned/components/textarea/textarea.d.ts +1 -1
- package/dist-versioned/components/tooltip/tooltip.d.ts +2 -1
- package/dist-versioned/components/tooltip/tooltip.js +1 -1
- package/dist-versioned/components/video/video.d.ts +1 -1
- package/dist-versioned/custom-elements.json +202 -202
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +11 -11
- package/dist-versioned/vscode.html-custom-data.json +80 -80
- package/dist-versioned/web-types.json +137 -137
- package/package.json +1 -1
- package/cdn/chunks/chunk.6SJ5NDAJ.js +0 -4
- package/cdn/chunks/chunk.OF353WP5.js +0 -1
- package/cdn-versioned/chunks/chunk.6SJ5NDAJ.js +0 -4
- package/cdn-versioned/chunks/chunk.OF353WP5.js +0 -1
- package/dist/chunks/{chunk.TGJ2SBPH.js → chunk.KQAHFLVX.js} +3 -3
|
@@ -128,7 +128,7 @@ var SdNavigationItem = class extends SolidElement {
|
|
|
128
128
|
horizontalPaddingBottom
|
|
129
129
|
)}"></slot>` : ""}</${tag}>`;
|
|
130
130
|
if (isAccordion) {
|
|
131
|
-
return html`<details aria-expanded="${this.open}" part="details" id="navigation-item-details" ?open="${this.open}" class="relative
|
|
131
|
+
return html`<details aria-expanded="${this.open}" part="details" id="navigation-item-details" ?open="${this.open}" class="relative">${root}<slot name="children"></slot></details>`;
|
|
132
132
|
}
|
|
133
133
|
if (this.separated) {
|
|
134
134
|
return html`<div part="details" id="navigation-item-details" class="relative flex flex-col">${root}${this.open ? html`<slot name="children"></slot>` : ""}</div>`;
|
|
@@ -61,6 +61,7 @@ var SdTooltip = class extends SolidElement {
|
|
|
61
61
|
}
|
|
62
62
|
firstUpdated() {
|
|
63
63
|
this.body.hidden = !this.open;
|
|
64
|
+
this.formatDefaultSlot(this.defaultSlot);
|
|
64
65
|
if (this.open) {
|
|
65
66
|
this.popup.active = true;
|
|
66
67
|
this.popup.reposition();
|
|
@@ -75,6 +76,16 @@ var SdTooltip = class extends SolidElement {
|
|
|
75
76
|
this.removeEventListener("mouseover", this.handleMouseOver);
|
|
76
77
|
this.removeEventListener("mouseout", this.handleMouseOut);
|
|
77
78
|
}
|
|
79
|
+
// removes empty text nodes from the default slot
|
|
80
|
+
formatDefaultSlot(slot) {
|
|
81
|
+
const nodes = slot.assignedNodes({ flatten: true });
|
|
82
|
+
nodes.forEach((node) => {
|
|
83
|
+
var _a, _b;
|
|
84
|
+
if (node.nodeType === Node.TEXT_NODE && !((_a = node == null ? void 0 : node.textContent) == null ? void 0 : _a.trim())) {
|
|
85
|
+
(_b = node == null ? void 0 : node.parentNode) == null ? void 0 : _b.removeChild(node);
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
}
|
|
78
89
|
handleBlur() {
|
|
79
90
|
if (this.hasTrigger("focus")) {
|
|
80
91
|
this.hide();
|
|
@@ -35,7 +35,6 @@ import {
|
|
|
35
35
|
|
|
36
36
|
// src/components/drawer/drawer.ts
|
|
37
37
|
import { css, html } from "lit";
|
|
38
|
-
import { ifDefined } from "lit/directives/if-defined.js";
|
|
39
38
|
import { property, query } from "lit/decorators.js";
|
|
40
39
|
|
|
41
40
|
// src/internal/string.ts
|
|
@@ -112,6 +111,7 @@ var SdDrawer = class extends SolidElement {
|
|
|
112
111
|
}
|
|
113
112
|
await Promise.all([stopAnimations(this.drawer), stopAnimations(this.overlay)]);
|
|
114
113
|
this.drawer.hidden = false;
|
|
114
|
+
this.drawer.removeAttribute("inert");
|
|
115
115
|
requestAnimationFrame(() => {
|
|
116
116
|
const sdInitialFocus = this.emit("sd-initial-focus", { cancelable: true });
|
|
117
117
|
if (!sdInitialFocus.defaultPrevented) {
|
|
@@ -123,6 +123,8 @@ var SdDrawer = class extends SolidElement {
|
|
|
123
123
|
}
|
|
124
124
|
if (autoFocusTarget) {
|
|
125
125
|
autoFocusTarget.setAttribute("autofocus", "");
|
|
126
|
+
} else {
|
|
127
|
+
this.closeButton.focus();
|
|
126
128
|
}
|
|
127
129
|
});
|
|
128
130
|
const panelAnimation = getAnimation(this, `drawer.show${uppercaseFirstLetter(this.placement)}`, {
|
|
@@ -157,6 +159,7 @@ var SdDrawer = class extends SolidElement {
|
|
|
157
159
|
})
|
|
158
160
|
]);
|
|
159
161
|
this.drawer.hidden = true;
|
|
162
|
+
this.drawer.setAttribute("inert", "");
|
|
160
163
|
this.overlay.hidden = false;
|
|
161
164
|
this.panel.hidden = false;
|
|
162
165
|
const trigger = this.originalTrigger;
|
|
@@ -201,12 +204,12 @@ var SdDrawer = class extends SolidElement {
|
|
|
201
204
|
"block top-0 left-0 right-0 bottom-0 bg-neutral-800/75 pointer-events-auto",
|
|
202
205
|
this.contained ? "absolute" : "fixed"
|
|
203
206
|
)}" @click="${() => this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${cx(
|
|
204
|
-
"absolute flex flex-col z-10 max-w-full max-h-full bg-white shadow-lg overflow-auto pointer-events-auto focus:outline-none",
|
|
207
|
+
"absolute flex flex-col gap-4 z-10 max-w-full max-h-full bg-white shadow-lg overflow-auto pointer-events-auto focus:outline-none",
|
|
205
208
|
{
|
|
206
209
|
end: "top-0 end-0 bottom-auto start-auto w-[--width] h-full",
|
|
207
210
|
start: "top-0 end-auto bottom-auto start-0 w-[--width] h-full"
|
|
208
211
|
}[this.placement]
|
|
209
|
-
)}" role="dialog" aria-modal="true" aria-
|
|
212
|
+
)}" role="dialog" aria-modal="true" aria-label="${this.label}" tabindex="0">${!this.noHeader ? html`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:56px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ml-4 absolute top-2 right-2"><sd-button variant="tertiary" size="lg" part="close-button" @click="${() => this.requestClose("close-button")}"><sd-icon label="${this.localize.term("close")}" name="close" library="system"></sd-icon></sd-button></div></header>` : html`<sd-button variant="tertiary" size="lg" part="close-button" @click="${() => this.requestClose("close-button")}" class="absolute top-2 right-2"><sd-icon label="${this.localize.term("close")}" name="close" library="system"></sd-icon></sd-button>`}<div part="body" class="flex-auto block px-4" role="region" tabindex="0"><slot></slot></div><footer part="footer" class="${cx(this.hasSlotController.test("footer") ? "text-left p-4" : "hidden")}"><slot name="footer"></slot></footer></div></div>`;
|
|
210
213
|
}
|
|
211
214
|
};
|
|
212
215
|
SdDrawer.styles = [
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SdAudio
|
|
3
|
-
} from "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.KQAHFLVX.js";
|
|
4
|
+
import "../../chunks/chunk.POFWU6ZT.js";
|
|
4
5
|
import "../../chunks/chunk.YEZS5ZR2.js";
|
|
5
6
|
import "../../chunks/chunk.YKM42GKF.js";
|
|
6
7
|
import "../../chunks/chunk.MNYQWRJE.js";
|
|
7
8
|
import "../../chunks/chunk.2S2CNWKY.js";
|
|
8
9
|
import "../../chunks/chunk.HFHUY7YD.js";
|
|
9
|
-
import "../../chunks/chunk.POFWU6ZT.js";
|
|
10
10
|
import "../../chunks/chunk.S3NI7NKU.js";
|
|
11
11
|
export {
|
|
12
12
|
SdAudio as default
|
|
@@ -16708,7 +16708,7 @@
|
|
|
16708
16708
|
"package": {
|
|
16709
16709
|
"name": "@solid-design-system/components",
|
|
16710
16710
|
"description": "Solid Design System: Components",
|
|
16711
|
-
"version": "4.0.
|
|
16711
|
+
"version": "4.0.7",
|
|
16712
16712
|
"author": "Union Investment",
|
|
16713
16713
|
"homepage": "https://solid-design-system.fe.union-investment.de/docs/",
|
|
16714
16714
|
"license": "MIT"
|
package/dist/solid-components.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunks/chunk.Y7254YJM.js";
|
|
14
14
|
import {
|
|
15
15
|
SdTooltip
|
|
16
|
-
} from "./chunks/chunk.
|
|
16
|
+
} from "./chunks/chunk.K3JCC7KV.js";
|
|
17
17
|
import {
|
|
18
18
|
SdVideo
|
|
19
19
|
} from "./chunks/chunk.2FXKQI26.js";
|
|
@@ -73,19 +73,19 @@ import {
|
|
|
73
73
|
} from "./chunks/chunk.HP2TVELZ.js";
|
|
74
74
|
import {
|
|
75
75
|
SdNavigationItem
|
|
76
|
-
} from "./chunks/chunk.
|
|
76
|
+
} from "./chunks/chunk.F63YFNZS.js";
|
|
77
77
|
import {
|
|
78
78
|
SdNotification
|
|
79
79
|
} from "./chunks/chunk.KPA6BEFU.js";
|
|
80
80
|
import {
|
|
81
81
|
SdDropdown
|
|
82
82
|
} from "./chunks/chunk.DPY2TYIS.js";
|
|
83
|
-
import {
|
|
84
|
-
SdFlipcard
|
|
85
|
-
} from "./chunks/chunk.JIWTAZZS.js";
|
|
86
83
|
import {
|
|
87
84
|
SdExpandable
|
|
88
85
|
} from "./chunks/chunk.H5ARRBLT.js";
|
|
86
|
+
import {
|
|
87
|
+
SdFlipcard
|
|
88
|
+
} from "./chunks/chunk.JIWTAZZS.js";
|
|
89
89
|
import {
|
|
90
90
|
SdHeader
|
|
91
91
|
} from "./chunks/chunk.PT7MDSWH.js";
|
|
@@ -115,13 +115,10 @@ import {
|
|
|
115
115
|
} from "./chunks/chunk.AKF4KQEW.js";
|
|
116
116
|
import {
|
|
117
117
|
SdDrawer
|
|
118
|
-
} from "./chunks/chunk.
|
|
118
|
+
} from "./chunks/chunk.OZU372TI.js";
|
|
119
119
|
import "./chunks/chunk.VBQLCQSN.js";
|
|
120
120
|
import "./chunks/chunk.XHCTCU2Q.js";
|
|
121
121
|
import "./chunks/chunk.WDWV53JP.js";
|
|
122
|
-
import {
|
|
123
|
-
SdBadge
|
|
124
|
-
} from "./chunks/chunk.QUYKT56M.js";
|
|
125
122
|
import {
|
|
126
123
|
SdBrandshape
|
|
127
124
|
} from "./chunks/chunk.OMBVLHXJ.js";
|
|
@@ -167,9 +164,13 @@ import {
|
|
|
167
164
|
} from "./chunks/chunk.LZA2QYUU.js";
|
|
168
165
|
import "./chunks/chunk.X2OQMWGY.js";
|
|
169
166
|
import "./chunks/chunk.TJOP7HQP.js";
|
|
167
|
+
import {
|
|
168
|
+
SdBadge
|
|
169
|
+
} from "./chunks/chunk.QUYKT56M.js";
|
|
170
170
|
import {
|
|
171
171
|
SdAudio
|
|
172
|
-
} from "./chunks/chunk.
|
|
172
|
+
} from "./chunks/chunk.KQAHFLVX.js";
|
|
173
|
+
import "./chunks/chunk.POFWU6ZT.js";
|
|
173
174
|
import "./chunks/chunk.YEZS5ZR2.js";
|
|
174
175
|
import {
|
|
175
176
|
LocalizeController
|
|
@@ -177,7 +178,6 @@ import {
|
|
|
177
178
|
import "./chunks/chunk.MNYQWRJE.js";
|
|
178
179
|
import "./chunks/chunk.2S2CNWKY.js";
|
|
179
180
|
import "./chunks/chunk.HFHUY7YD.js";
|
|
180
|
-
import "./chunks/chunk.POFWU6ZT.js";
|
|
181
181
|
import "./chunks/chunk.S3NI7NKU.js";
|
|
182
182
|
export {
|
|
183
183
|
LocalizeController,
|
package/dist/web-types.json
CHANGED
|
@@ -32,7 +32,7 @@ let SdMenu = class SdMenu extends SolidElement {
|
|
|
32
32
|
if (item.type === 'checkbox') {
|
|
33
33
|
item.checked = !item.checked;
|
|
34
34
|
}
|
|
35
|
-
this.emit('sd-4-0-
|
|
35
|
+
this.emit('sd-4-0-7-select', { detail: { item } });
|
|
36
36
|
}
|
|
37
37
|
handleKeyDown(event) {
|
|
38
38
|
if (event.key === 'Enter') {
|
|
@@ -74,7 +74,7 @@ let SdMenuItem = class SdMenuItem extends SolidElement {
|
|
|
74
74
|
})}
|
|
75
75
|
>
|
|
76
76
|
<span part="checked-icon" class="menu-item__check">
|
|
77
|
-
<sd-4-0-
|
|
77
|
+
<sd-4-0-7-icon name="check" library="system" aria-hidden="true"></sd-4-0-7-icon>
|
|
78
78
|
</span>
|
|
79
79
|
|
|
80
80
|
<slot name="prefix" part="prefix" class="menu-item__prefix"></slot>
|
|
@@ -84,7 +84,7 @@ let SdMenuItem = class SdMenuItem extends SolidElement {
|
|
|
84
84
|
<slot name="suffix" part="suffix" class="menu-item__suffix"></slot>
|
|
85
85
|
|
|
86
86
|
<span class="menu-item__chevron">
|
|
87
|
-
<sd-4-0-
|
|
87
|
+
<sd-4-0-7-icon name="chevron-right" library="system" aria-hidden="true"></sd-4-0-7-icon>
|
|
88
88
|
</span>
|
|
89
89
|
</div>
|
|
90
90
|
`;
|
|
@@ -131,12 +131,12 @@ var SdScrollable = class extends SolidElement {
|
|
|
131
131
|
this.orientation === "auto" && "scroll-auto overflow-auto",
|
|
132
132
|
this.scrollbars ? "show-scrollbars" : "hide-scrollbars",
|
|
133
133
|
this.inset ? "p-4" : ""
|
|
134
|
-
)}" @scroll="${this.updateScrollIndicatorVisibility}" tabindex="0"><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons ? html`${this.isScrollHorizontalEnabled ? html`${this.canScroll.left ? html`<div part="button-left" class="absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8"><button part="button-start" class="${cx(scrollButtonClasses)}" @click="${(e) => this.handleScroll("left", e)}"><slot name="icon-start"><sd-4-0-
|
|
134
|
+
)}" @scroll="${this.updateScrollIndicatorVisibility}" tabindex="0"><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons ? html`${this.isScrollHorizontalEnabled ? html`${this.canScroll.left ? html`<div part="button-left" class="absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8"><button part="button-start" class="${cx(scrollButtonClasses)}" @click="${(e) => this.handleScroll("left", e)}"><slot name="icon-start"><sd-4-0-7-icon library="system" name="chevron-up" class="rotate-[-90deg]" label="${this.localize.term("scrollToStart")}"></sd-4-0-7-icon></slot></button></div>` : null} ${this.canScroll.right ? html`<div part="button-right" class="absolute z-10 flex items-center justify-center top-0 right-0 h-full w-8"><button part="button-end" class="${cx(scrollButtonClasses)}" @click="${(e) => this.handleScroll("right", e)}"><slot name="icon-end"><sd-4-0-7-icon library="system" name="chevron-down" class="rotate-[-90deg]" label="${this.localize.term("scrollToEnd")}"></sd-4-0-7-icon></slot></button></div>` : null}` : null} ${this.isScrollVerticalEnabled ? html`${this.canScroll.up ? html`<div part="button-top" class="absolute z-10 flex items-center justify-center top-0 left-0 w-full h-8"><button part="button-start" class="${cx(scrollButtonClasses)}" @click="${(e) => this.handleScroll("up", e)}"><slot name="icon-start"><sd-4-0-7-icon library="system" name="chevron-up" label="${this.localize.term("scrollToStart")}"></sd-4-0-7-icon></slot></button></div>` : null} ${this.canScroll.down ? html`<div part="button-bottom" class="absolute z-10 flex items-center justify-center bottom-0 left-0 w-full h-8"><button part="button-end" class="${cx(scrollButtonClasses)}" @click="${(e) => this.handleScroll("down", e)}"><slot name="icon-end"><sd-4-0-7-icon library="system" name="chevron-down" label="${this.localize.term("scrollToEnd")}"></sd-4-0-7-icon></slot></button></div>` : null}` : null}` : null} ${this.shadows ? html`${this.isScrollHorizontalEnabled ? html`${this.canScroll.left ? html`<div part="shadow-left" class="${scrollShadowClasses} left top-0 left-0 w-[6px] h-full"></div>` : null} ${this.canScroll.right ? html`<div part="shadow-right" class="${scrollShadowClasses} right top-0 right-0 w-[6px] h-full"></div>` : null}` : null} ${this.isScrollVerticalEnabled ? html`${this.canScroll.up ? html`<div part="shadow-top" class="${scrollShadowClasses} top top-0 left-0 w-full h-[6px]"></div>` : null} ${this.canScroll.down ? html`<div part="shadow-bottom" class="${scrollShadowClasses} bottom bottom-0 left-0 w-full h-[6px]"></div>` : null}` : null}` : null}`;
|
|
135
135
|
}
|
|
136
136
|
};
|
|
137
137
|
SdScrollable.styles = [
|
|
138
138
|
...SolidElement.styles,
|
|
139
|
-
css`:host{--gradient-color:hsla(0,0%,100%,0);--gradient:var(--gradient-color) 0%,#fff 80%,#fff 100%;display:flex;overflow:hidden;position:relative}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-border-radius-sm,.125rem)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1,.25rem);width:var(--sd-spacing-1,.25rem)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-right]{background:linear-gradient(90deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-top]{background:linear-gradient(0deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-bottom]{background:linear-gradient(180deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}.sd-4-0-
|
|
139
|
+
css`:host{--gradient-color:hsla(0,0%,100%,0);--gradient:var(--gradient-color) 0%,#fff 80%,#fff 100%;display:flex;overflow:hidden;position:relative}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-border-radius-sm,.125rem)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1,.25rem);width:var(--sd-spacing-1,.25rem)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-right]{background:linear-gradient(90deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-top]{background:linear-gradient(0deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-bottom]{background:linear-gradient(180deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}.sd-4-0-7-icon--top{align-self:flex-start}.sd-4-0-7-icon--down{align-self:flex-end}`
|
|
140
140
|
];
|
|
141
141
|
__decorateClass([
|
|
142
142
|
property({ type: String, reflect: true })
|
|
@@ -169,7 +169,7 @@ __decorateClass([
|
|
|
169
169
|
state()
|
|
170
170
|
], SdScrollable.prototype, "isKeyboardNavigation", 2);
|
|
171
171
|
SdScrollable = __decorateClass([
|
|
172
|
-
customElement("sd-4-0-
|
|
172
|
+
customElement("sd-4-0-7-scrollable")
|
|
173
173
|
], SdScrollable);
|
|
174
174
|
|
|
175
175
|
export {
|
|
@@ -99,7 +99,7 @@ var SdVideo = class extends SolidElement {
|
|
|
99
99
|
this.playing ? "opacity-0" : "opacity-100",
|
|
100
100
|
this.isBelowBreakpoint ? "w-[48px] h-[48px]" : "w-[96px] h-[96px]",
|
|
101
101
|
"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 p-4 bg-white bg-opacity-75 rounded-full play-pause-transition outline-2 outline-offset-2 group-focus-visible:outline"
|
|
102
|
-
)}"><slot name="play-icon" part="play-icon" class="${cx(this.isBelowBreakpoint ? "text-[2rem]" : "text-[4rem]")}"><sd-4-0-
|
|
102
|
+
)}"><slot name="play-icon" part="play-icon" class="${cx(this.isBelowBreakpoint ? "text-[2rem]" : "text-[4rem]")}"><sd-4-0-7-icon id="default-play-icon" library="system" name="start"></sd-4-0-7-icon></slot></div></button> ${this.hasSlotController.test("poster") ? html`<slot name="poster" role="presentation" @transitionend="${this.hidePoster}"></slot>` : null}<slot></slot></div>`;
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
105
|
SdVideo.styles = [
|
|
@@ -116,7 +116,7 @@ __decorateClass([
|
|
|
116
116
|
property({ type: Boolean })
|
|
117
117
|
], SdVideo.prototype, "isBelowBreakpoint", 2);
|
|
118
118
|
SdVideo = __decorateClass([
|
|
119
|
-
customElement("sd-4-0-
|
|
119
|
+
customElement("sd-4-0-7-video")
|
|
120
120
|
], SdVideo);
|
|
121
121
|
|
|
122
122
|
export {
|
|
@@ -62,7 +62,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
62
62
|
constructor() {
|
|
63
63
|
super(...arguments);
|
|
64
64
|
this.formControlController = new FormControlController(this, {
|
|
65
|
-
assumeInteractionOn: ["sd-blur", "sd-4-0-
|
|
65
|
+
assumeInteractionOn: ["sd-blur", "sd-4-0-7-input"]
|
|
66
66
|
});
|
|
67
67
|
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
|
68
68
|
this.localize = new LocalizeController(this);
|
|
@@ -103,11 +103,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
103
103
|
return normalizedOption.includes(normalizedQuery) || normalizedOptionLabel.includes(normalizedQuery);
|
|
104
104
|
};
|
|
105
105
|
this.getTag = (option) => {
|
|
106
|
-
return html`<sd-4-0-
|
|
106
|
+
return html`<sd-4-0-7-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
|
107
107
|
base:tag__base,
|
|
108
108
|
content:tag__content,
|
|
109
109
|
removable-indicator:tag__removable-indicator,
|
|
110
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-4-0-
|
|
110
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-4-0-7-tag>`;
|
|
111
111
|
};
|
|
112
112
|
this.handleDocumentFocusIn = (event) => {
|
|
113
113
|
const path = event.composedPath();
|
|
@@ -229,9 +229,9 @@ var SdCombobox = class extends SolidElement {
|
|
|
229
229
|
return html`${typeof optionHtml === "string" ? unsafeHTML(optionHtml) : optionHtml}`;
|
|
230
230
|
};
|
|
231
231
|
return this.filteredOptions.map((item) => {
|
|
232
|
-
if (item.tagName.toLowerCase() === "sd-4-0-
|
|
232
|
+
if (item.tagName.toLowerCase() === "sd-4-0-7-optgroup") {
|
|
233
233
|
Array.from(item.children).forEach((option) => {
|
|
234
|
-
if (option.tagName.toLowerCase() === "sd-4-0-
|
|
234
|
+
if (option.tagName.toLowerCase() === "sd-4-0-7-option") {
|
|
235
235
|
renderOption(option);
|
|
236
236
|
}
|
|
237
237
|
});
|
|
@@ -251,11 +251,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
251
251
|
});
|
|
252
252
|
} else {
|
|
253
253
|
return [
|
|
254
|
-
html`<sd-4-0-
|
|
254
|
+
html`<sd-4-0-7-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
|
255
255
|
base:tag__base,
|
|
256
256
|
content:tag__content,
|
|
257
257
|
removable-indicator:tag__removable-indicator,
|
|
258
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-4-0-
|
|
258
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-4-0-7-tag>`
|
|
259
259
|
];
|
|
260
260
|
}
|
|
261
261
|
}
|
|
@@ -364,7 +364,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
364
364
|
}
|
|
365
365
|
handleOptionClick(event) {
|
|
366
366
|
const target = event.target;
|
|
367
|
-
const option = target.closest("sd-4-0-
|
|
367
|
+
const option = target.closest("sd-4-0-7-option");
|
|
368
368
|
const oldValue = this.value;
|
|
369
369
|
if (option && !option.disabled) {
|
|
370
370
|
if (this.multiple) {
|
|
@@ -416,7 +416,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
416
416
|
scrollIntoView(this.getCurrentOption(), this.listbox, "vertical", "auto");
|
|
417
417
|
}
|
|
418
418
|
getAllFilteredOptions() {
|
|
419
|
-
return [...this.filteredWrapper.querySelectorAll("sd-4-0-
|
|
419
|
+
return [...this.filteredWrapper.querySelectorAll("sd-4-0-7-option")];
|
|
420
420
|
}
|
|
421
421
|
getCurrentOption() {
|
|
422
422
|
return this.getAllFilteredOptions().find((option) => option.current);
|
|
@@ -542,7 +542,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
542
542
|
clonedOption.selected = option.selected;
|
|
543
543
|
clonedOption.checkbox = option.checkbox;
|
|
544
544
|
clonedOption.size = option.size;
|
|
545
|
-
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-4-0-
|
|
545
|
+
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-4-0-7-optgroup";
|
|
546
546
|
if (!hasOptgroup) {
|
|
547
547
|
return clonedOption;
|
|
548
548
|
}
|
|
@@ -572,7 +572,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
572
572
|
handleMouseLeave() {
|
|
573
573
|
this.hasHover = false;
|
|
574
574
|
}
|
|
575
|
-
/** Receives incoming event detail from sd-4-0-
|
|
575
|
+
/** Receives incoming event detail from sd-4-0-7-popup and updates local state for conditional styling. */
|
|
576
576
|
handleCurrentPlacement(e) {
|
|
577
577
|
const incomingPlacement = e.detail;
|
|
578
578
|
if (incomingPlacement) {
|
|
@@ -584,7 +584,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
584
584
|
}
|
|
585
585
|
handleUseTagsChange() {
|
|
586
586
|
const allOptions = this.getAllFilteredOptions();
|
|
587
|
-
if (customElements.get("sd-4-0-
|
|
587
|
+
if (customElements.get("sd-4-0-7-option")) {
|
|
588
588
|
allOptions.forEach((option) => {
|
|
589
589
|
option.checkbox = this.multiple;
|
|
590
590
|
});
|
|
@@ -710,8 +710,8 @@ var SdCombobox = class extends SolidElement {
|
|
|
710
710
|
return filterOnlyOptgroups(getAssignedElementsForSlot(this.defaultSlot));
|
|
711
711
|
}
|
|
712
712
|
async handleDefaultSlotChange() {
|
|
713
|
-
if (!customElements.get("sd-4-0-
|
|
714
|
-
customElements.whenDefined("sd-4-0-
|
|
713
|
+
if (!customElements.get("sd-4-0-7-option")) {
|
|
714
|
+
customElements.whenDefined("sd-4-0-7-option").then(() => this.handleDefaultSlotChange());
|
|
715
715
|
return;
|
|
716
716
|
}
|
|
717
717
|
const slottedOptions = this.getSlottedOptions();
|
|
@@ -723,10 +723,10 @@ var SdCombobox = class extends SolidElement {
|
|
|
723
723
|
if (this.multiple) {
|
|
724
724
|
option.checkbox = true;
|
|
725
725
|
}
|
|
726
|
-
option.id = option.id || `sd-4-0-
|
|
726
|
+
option.id = option.id || `sd-4-0-7-combobox-option-${index}`;
|
|
727
727
|
});
|
|
728
728
|
slottedOptgroups.forEach((optgroup, index) => {
|
|
729
|
-
optgroup.id = optgroup.id || `sd-4-0-
|
|
729
|
+
optgroup.id = optgroup.id || `sd-4-0-7-combobox-optgroup-${index}`;
|
|
730
730
|
});
|
|
731
731
|
await this.syncSelectedOptionsAndValue();
|
|
732
732
|
if (this.multiple) {
|
|
@@ -774,7 +774,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
774
774
|
default: "border-neutral-800"
|
|
775
775
|
}[selectState],
|
|
776
776
|
this.open && (this.currentPlacement === "bottom" ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
|
|
777
|
-
)}"></div><sd-4-0-
|
|
777
|
+
)}"></div><sd-4-0-7-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
|
778
778
|
"inline-flex relative w-full",
|
|
779
779
|
this.currentPlacement === "bottom" ? "origin-top" : "origin-bottom"
|
|
780
780
|
)}" placement="${this.placement}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
|
@@ -795,28 +795,28 @@ var SdCombobox = class extends SolidElement {
|
|
|
795
795
|
"flex justify-center",
|
|
796
796
|
iconMarginLeft,
|
|
797
797
|
this.value.length > 0 ? "visible" : "invisible"
|
|
798
|
-
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-0-
|
|
798
|
+
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-0-7-icon class="${cx("text-icon-fill-neutral-800", iconSize)}" name="closing-round" library="system"></sd-4-0-7-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-4-0-7-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="system" name="risk"></sd-4-0-7-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-4-0-7-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="system" name="status-check"></sd-4-0-7-icon>` : ""}<slot name="right" part="right" class="${cx(
|
|
799
799
|
"inline-flex ml-2 leading-[0]",
|
|
800
800
|
this.disabled ? "text-neutral-500" : "text-primary",
|
|
801
801
|
iconSize
|
|
802
|
-
)}"><sd-4-0-
|
|
802
|
+
)}"><sd-4-0-7-icon class="${cx("transition-all", this.open ? "rotate-180" : "rotate-0")}" name="chevron-down" part="chevron" library="system" color="currentColor"></sd-4-0-7-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${cx(
|
|
803
803
|
"bg-white px-2 py-3 relative border-primary overflow-y-auto",
|
|
804
804
|
this.open && "shadow",
|
|
805
805
|
this.currentPlacement === "bottom" ? "border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default" : "border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default"
|
|
806
|
-
)}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox" class="overflow-y-scroll">${this.filteredOptions.length === 0 ? html`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>` : this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-4-0-
|
|
806
|
+
)}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox" class="overflow-y-scroll">${this.filteredOptions.length === 0 ? html`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>` : this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-4-0-7-popup></div><div part="form-control-help-text" id="help-text" class="text-sm text-neutral-700" aria-hidden="${!hasHelpText}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`;
|
|
807
807
|
}
|
|
808
808
|
};
|
|
809
809
|
SdCombobox.dependencies = {
|
|
810
|
-
"sd-4-0-
|
|
811
|
-
"sd-4-0-
|
|
812
|
-
"sd-4-0-
|
|
810
|
+
"sd-4-0-7-icon": SdIcon,
|
|
811
|
+
"sd-4-0-7-popup": SdPopup,
|
|
812
|
+
"sd-4-0-7-tag": SdTag
|
|
813
813
|
};
|
|
814
814
|
SdCombobox.styles = [
|
|
815
815
|
...SolidElement.styles,
|
|
816
|
-
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-4-0-
|
|
816
|
+
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-4-0-7-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-4-0-7-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-4-0-7-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-4-0-7-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-4-0-7-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}[part=filtered-listbox] sd-4-0-7-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;color:inherit;font-weight:700}`
|
|
817
817
|
];
|
|
818
818
|
__decorateClass([
|
|
819
|
-
query("sd-4-0-
|
|
819
|
+
query("sd-4-0-7-popup")
|
|
820
820
|
], SdCombobox.prototype, "popup", 2);
|
|
821
821
|
__decorateClass([
|
|
822
822
|
query('[part="combobox"]')
|
|
@@ -968,7 +968,7 @@ __decorateClass([
|
|
|
968
968
|
watch("open", { waitUntilFirstUpdate: true })
|
|
969
969
|
], SdCombobox.prototype, "handleOpenChange", 1);
|
|
970
970
|
SdCombobox = __decorateClass([
|
|
971
|
-
customElement("sd-4-0-
|
|
971
|
+
customElement("sd-4-0-7-combobox")
|
|
972
972
|
], SdCombobox);
|
|
973
973
|
setDefaultAnimation("combobox.show", {
|
|
974
974
|
keyframes: [
|
|
@@ -18,7 +18,7 @@ var SdTabPanel = class extends SolidElement {
|
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments);
|
|
20
20
|
this.attrId = ++id;
|
|
21
|
-
this.componentId = `sd-4-0-
|
|
21
|
+
this.componentId = `sd-4-0-7-tab-panel-${this.attrId}`;
|
|
22
22
|
this.name = "";
|
|
23
23
|
this.active = false;
|
|
24
24
|
}
|
|
@@ -48,7 +48,7 @@ __decorateClass([
|
|
|
48
48
|
watch("active")
|
|
49
49
|
], SdTabPanel.prototype, "handleActiveChange", 1);
|
|
50
50
|
SdTabPanel = __decorateClass([
|
|
51
|
-
customElement("sd-4-0-
|
|
51
|
+
customElement("sd-4-0-7-tab-panel")
|
|
52
52
|
], SdTabPanel);
|
|
53
53
|
|
|
54
54
|
export {
|
|
@@ -10,7 +10,7 @@ function setupAutocomplete(selector, { setValueOnSelection, scrollSelectionIntoV
|
|
|
10
10
|
var _a, _b;
|
|
11
11
|
const ul = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("ul");
|
|
12
12
|
ul == null ? void 0 : ul.setAttribute("part", "listbox");
|
|
13
|
-
const popup = document.createElement("sd-4-0-
|
|
13
|
+
const popup = document.createElement("sd-4-0-7-popup");
|
|
14
14
|
popup.appendChild(ul);
|
|
15
15
|
(_b = sdInput.shadowRoot) == null ? void 0 : _b.appendChild(popup);
|
|
16
16
|
popup == null ? void 0 : popup.setAttribute("exportparts", "popup__content");
|
|
@@ -22,7 +22,7 @@ function setupAutocomplete(selector, { setValueOnSelection, scrollSelectionIntoV
|
|
|
22
22
|
popup.anchor = sdInput;
|
|
23
23
|
popup.sync = "width";
|
|
24
24
|
}
|
|
25
|
-
const styles = css`sd-4-0-
|
|
25
|
+
const styles = css`sd-4-0-7-popup::part(popup){border-bottom-left-radius:var(--sd-border-radius-default,.25rem);border-bottom-right-radius:var(--sd-border-radius-default,.25rem);border-width:0 2px 2px;overflow-y:scroll;z-index:var(--sd-z-index-dropdown,900);--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-bg-opacity,1));padding:var(--sd-spacing-3,.75rem) var(--sd-spacing-2,.5rem);--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-4-0-7-popup li{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}sd-4-0-7-popup li:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--tw-bg-opacity,1))}sd-4-0-7-popup li{list-style-type:""}sd-4-0-7-popup li mark{background-color:transparent;font-weight:700}sd-4-0-7-popup li:not(:has(sd-4-0-7-option)){cursor:pointer;font-size:var(--sd-font-size-base,1rem);padding:var(--sd-spacing-3,.75rem) var(--sd-spacing-4,1rem);--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity,1))}sd-4-0-7-popup li:not(:has(sd-4-0-7-option)):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}sd-4-0-7-popup li[aria-selected=true]{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}`;
|
|
26
26
|
const styleSheet = new CSSStyleSheet();
|
|
27
27
|
styleSheet.replaceSync(styles);
|
|
28
28
|
sdInput.shadowRoot.adoptedStyleSheets = [...sdInput.shadowRoot.adoptedStyleSheets, styleSheet];
|
|
@@ -35,13 +35,13 @@ function setupAutocomplete(selector, { setValueOnSelection, scrollSelectionIntoV
|
|
|
35
35
|
}
|
|
36
36
|
input.addEventListener("open", () => {
|
|
37
37
|
var _a, _b, _c, _d, _e, _f;
|
|
38
|
-
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-4-0-
|
|
38
|
+
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-4-0-7-popup")) == null ? void 0 : _b.setAttribute("active", "true");
|
|
39
39
|
(_d = (_c = sdInput.shadowRoot) == null ? void 0 : _c.querySelector('[part="border"]')) == null ? void 0 : _d.classList.add("rounded-b-none");
|
|
40
40
|
(_f = (_e = sdInput.shadowRoot) == null ? void 0 : _e.querySelector('[part="form-control"]')) == null ? void 0 : _f.classList.add("z-50");
|
|
41
41
|
});
|
|
42
42
|
input.addEventListener("close", () => {
|
|
43
43
|
var _a, _b, _c, _d, _e, _f;
|
|
44
|
-
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-4-0-
|
|
44
|
+
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-4-0-7-popup")) == null ? void 0 : _b.removeAttribute("active");
|
|
45
45
|
(_d = (_c = sdInput.shadowRoot) == null ? void 0 : _c.querySelector('[part="border"]')) == null ? void 0 : _d.classList.remove("rounded-b-none");
|
|
46
46
|
(_f = (_e = sdInput.shadowRoot) == null ? void 0 : _e.querySelector('[part="form-control"]')) == null ? void 0 : _f.classList.remove("z-50");
|
|
47
47
|
});
|
|
@@ -64,10 +64,10 @@ var SdQuickfact = class extends SdAccordion {
|
|
|
64
64
|
!this.expandable && "hidden"
|
|
65
65
|
)}
|
|
66
66
|
><slot name="expand-icon" class=${cx(this.open && "hidden")}>
|
|
67
|
-
<sd-4-0-
|
|
67
|
+
<sd-4-0-7-icon library="system" name="chevron-down"></sd-4-0-7-icon>
|
|
68
68
|
</slot>
|
|
69
69
|
<slot name="collapse-icon" class=${cx(!this.open && "hidden")}>
|
|
70
|
-
<sd-4-0-
|
|
70
|
+
<sd-4-0-7-icon library="system" name="chevron-down"></sd-4-0-7-icon> </slot
|
|
71
71
|
></span>
|
|
72
72
|
</${header}>
|
|
73
73
|
<div part="content" id="content" class=${cx("overflow-hidden", !this.expandable && "hidden")}>
|
|
@@ -85,7 +85,7 @@ __decorateClass([
|
|
|
85
85
|
property({ type: Boolean, reflect: true })
|
|
86
86
|
], SdQuickfact.prototype, "expandable", 2);
|
|
87
87
|
SdQuickfact = __decorateClass([
|
|
88
|
-
customElement("sd-4-0-
|
|
88
|
+
customElement("sd-4-0-7-quickfact")
|
|
89
89
|
], SdQuickfact);
|
|
90
90
|
setDefaultAnimation("quickfact.show", {
|
|
91
91
|
keyframes: [
|