@solid-design-system/components 4.0.0-next.0 → 4.0.0-next.2
Sign up to get free protection for your applications and to get access to all the features.
- package/cdn/chunks/chunk.O4UXOQEI.js +1 -0
- package/cdn/chunks/{chunk.WP6KSGSU.js → chunk.PBPFKJKV.js} +1 -1
- package/cdn/chunks/chunk.U443X4TI.js +1 -0
- package/cdn/components/divider/divider.js +1 -1
- package/cdn/components/optgroup/optgroup.js +1 -1
- package/cdn/components/teaser/teaser.js +1 -1
- package/cdn/custom-elements.json +1 -1
- package/cdn/solid-components.bundle.js +2 -2
- package/cdn/solid-components.iife.js +2 -2
- 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.24SF73MY.js +1 -1
- package/cdn-versioned/chunks/chunk.2UHPWLJE.js +1 -1
- package/cdn-versioned/chunks/chunk.36Z2VDHI.js +1 -1
- package/cdn-versioned/chunks/chunk.4W3WLVGR.js +1 -1
- package/cdn-versioned/chunks/chunk.5BROLR6V.js +4 -4
- package/cdn-versioned/chunks/chunk.5ZDWEJDB.js +1 -1
- package/cdn-versioned/chunks/chunk.65NSSTJE.js +1 -1
- package/cdn-versioned/chunks/chunk.6JBTCFHE.js +2 -2
- package/cdn-versioned/chunks/chunk.7M7VCE7R.js +1 -1
- package/cdn-versioned/chunks/chunk.7RJ3O2FV.js +1 -1
- package/cdn-versioned/chunks/chunk.APMDRZQD.js +1 -1
- package/cdn-versioned/chunks/chunk.BTRVMAGL.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.DVHKKAVM.js +1 -1
- package/cdn-versioned/chunks/chunk.E7HNNYP6.js +1 -1
- package/cdn-versioned/chunks/chunk.EWWGLHC5.js +1 -1
- package/cdn-versioned/chunks/chunk.FD54463O.js +1 -1
- package/cdn-versioned/chunks/chunk.FFNTXFC3.js +1 -1
- package/cdn-versioned/chunks/chunk.FREYGZDJ.js +1 -1
- package/cdn-versioned/chunks/chunk.FX3ED655.js +1 -1
- package/cdn-versioned/chunks/chunk.GOVNZSCO.js +1 -1
- package/cdn-versioned/chunks/chunk.GQSLHWQC.js +1 -1
- package/cdn-versioned/chunks/chunk.GUOHZTA7.js +1 -1
- package/cdn-versioned/chunks/chunk.ISEQUO4U.js +1 -1
- package/cdn-versioned/chunks/chunk.IVXFAQNG.js +4 -4
- package/cdn-versioned/chunks/chunk.IZKUI5WK.js +1 -1
- package/cdn-versioned/chunks/chunk.KFW32Q4Q.js +1 -1
- package/cdn-versioned/chunks/chunk.KMLMMBY4.js +1 -1
- package/cdn-versioned/chunks/chunk.LLXTYJXF.js +1 -1
- package/cdn-versioned/chunks/chunk.LZEFLOSA.js +1 -1
- package/cdn-versioned/chunks/chunk.MMRILMYU.js +1 -1
- package/cdn-versioned/chunks/chunk.MPP7HYX7.js +1 -1
- package/cdn-versioned/chunks/chunk.ND7BT52X.js +1 -1
- package/cdn-versioned/chunks/chunk.NUB5WHGD.js +1 -1
- package/cdn-versioned/chunks/chunk.O4UXOQEI.js +1 -0
- package/cdn-versioned/chunks/chunk.OVV7TNT2.js +1 -1
- package/cdn-versioned/chunks/{chunk.WP6KSGSU.js → chunk.PBPFKJKV.js} +1 -1
- package/cdn-versioned/chunks/chunk.QFNCQQ6S.js +1 -1
- package/cdn-versioned/chunks/chunk.QNZWJACC.js +2 -2
- package/cdn-versioned/chunks/chunk.R354E6ZD.js +1 -1
- package/cdn-versioned/chunks/chunk.SNUMAAEG.js +1 -1
- package/cdn-versioned/chunks/chunk.TA7CZCP3.js +1 -1
- package/cdn-versioned/chunks/chunk.U443X4TI.js +1 -0
- package/cdn-versioned/chunks/chunk.UBFU6D5B.js +1 -1
- package/cdn-versioned/chunks/chunk.URB2K7JQ.js +1 -1
- package/cdn-versioned/chunks/chunk.VNKUGTKM.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WENTMXB2.js +1 -1
- package/cdn-versioned/chunks/chunk.WGNXYONB.js +1 -1
- package/cdn-versioned/chunks/chunk.WMRFVNYU.js +1 -1
- package/cdn-versioned/chunks/chunk.WQAPHFVM.js +1 -1
- package/cdn-versioned/chunks/chunk.YF5WEC4R.js +2 -2
- package/cdn-versioned/chunks/chunk.ZFA2VPUT.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/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/divider/divider.js +1 -1
- package/cdn-versioned/components/drawer/drawer.d.ts +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/notification/notification.d.ts +1 -1
- package/cdn-versioned/components/optgroup/optgroup.d.ts +2 -2
- package/cdn-versioned/components/optgroup/optgroup.js +1 -1
- 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/teaser/teaser.js +1 -1
- package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
- package/cdn-versioned/components/tooltip/tooltip.d.ts +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 +13 -13
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +13 -13
- 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.JIKTGTDS.js → chunk.4RGGPCD5.js} +1 -1
- package/dist/chunks/{chunk.KJFKVSZA.js → chunk.76ZNNLGN.js} +3 -3
- package/dist/chunks/{chunk.4WYIZLVF.js → chunk.EKFRFDTB.js} +1 -1
- package/dist/components/divider/divider.js +1 -1
- package/dist/components/optgroup/optgroup.js +2 -2
- package/dist/components/teaser/teaser.js +1 -1
- package/dist/custom-elements.json +1 -1
- package/dist/solid-components.js +3 -3
- 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.2IBVAXOX.js +1 -1
- package/dist-versioned/chunks/chunk.3IT4HBTI.js +1 -1
- package/dist-versioned/chunks/chunk.3LGDUVS4.js +2 -2
- package/dist-versioned/chunks/chunk.4QKRGAOL.js +4 -4
- package/dist-versioned/chunks/{chunk.JIKTGTDS.js → chunk.4RGGPCD5.js} +3 -3
- package/dist-versioned/chunks/chunk.56SNEGI4.js +13 -13
- package/dist-versioned/chunks/chunk.65BWRJEA.js +5 -5
- package/dist-versioned/chunks/chunk.6CUAQSFA.js +2 -2
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.6JI7NL3E.js +2 -2
- package/dist-versioned/chunks/chunk.727ERQ4F.js +2 -2
- package/dist-versioned/chunks/{chunk.KJFKVSZA.js → chunk.76ZNNLGN.js} +4 -4
- package/dist-versioned/chunks/chunk.7BEDTYS7.js +2 -2
- package/dist-versioned/chunks/chunk.7OHSCBBX.js +1 -1
- package/dist-versioned/chunks/chunk.BVC5FY4L.js +13 -13
- package/dist-versioned/chunks/chunk.BXB5WF23.js +5 -5
- package/dist-versioned/chunks/chunk.D6JZ4IKM.js +1 -1
- package/dist-versioned/chunks/chunk.DAM3ICHP.js +2 -2
- package/dist-versioned/chunks/chunk.DQPVSTUQ.js +3 -3
- package/dist-versioned/chunks/chunk.EFEBQQHC.js +26 -26
- package/dist-versioned/chunks/{chunk.4WYIZLVF.js → chunk.EKFRFDTB.js} +6 -6
- package/dist-versioned/chunks/chunk.H655M7FD.js +1 -1
- package/dist-versioned/chunks/chunk.HPR3PWAE.js +3 -3
- package/dist-versioned/chunks/chunk.I3PY3VYP.js +29 -29
- package/dist-versioned/chunks/chunk.IN3GJ5QL.js +3 -3
- package/dist-versioned/chunks/chunk.J2XBUIBC.js +2 -2
- package/dist-versioned/chunks/chunk.J7MMF6WJ.js +2 -2
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/chunk.MTSAWJLV.js +2 -2
- package/dist-versioned/chunks/chunk.NM6QP6RJ.js +2 -2
- package/dist-versioned/chunks/chunk.PDRECIYA.js +1 -1
- package/dist-versioned/chunks/chunk.PGZ5AWZ2.js +9 -9
- package/dist-versioned/chunks/chunk.PIR4YJUS.js +2 -2
- package/dist-versioned/chunks/chunk.QAZYUCBK.js +6 -6
- package/dist-versioned/chunks/chunk.QCICV36Z.js +6 -6
- package/dist-versioned/chunks/chunk.QP3SM2LZ.js +3 -3
- package/dist-versioned/chunks/chunk.R4BETATX.js +1 -1
- package/dist-versioned/chunks/chunk.RNSJAVQE.js +1 -1
- package/dist-versioned/chunks/chunk.RZRTIYXA.js +1 -1
- package/dist-versioned/chunks/chunk.SPBPHTSS.js +2 -2
- package/dist-versioned/chunks/chunk.SSH6ATRK.js +2 -2
- package/dist-versioned/chunks/chunk.U5NFPAOX.js +2 -2
- package/dist-versioned/chunks/chunk.U6RY25TF.js +2 -2
- package/dist-versioned/chunks/chunk.UC5E3AEF.js +1 -1
- package/dist-versioned/chunks/chunk.UDZYWRPT.js +1 -1
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.V7TQ6VJU.js +1 -1
- package/dist-versioned/chunks/chunk.VHGHICFG.js +2 -2
- package/dist-versioned/chunks/chunk.WWS3CQ2Z.js +5 -5
- package/dist-versioned/chunks/chunk.XVFJS7VS.js +5 -5
- package/dist-versioned/chunks/chunk.Z2UY62T2.js +1 -1
- package/dist-versioned/chunks/chunk.ZGPGFEVP.js +5 -5
- package/dist-versioned/chunks/chunk.ZWJI7SLE.js +11 -11
- 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/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/divider/divider.js +1 -1
- package/dist-versioned/components/drawer/drawer.d.ts +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/notification/notification.d.ts +1 -1
- package/dist-versioned/components/optgroup/optgroup.d.ts +2 -2
- package/dist-versioned/components/optgroup/optgroup.js +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/teaser/teaser.js +1 -1
- package/dist-versioned/components/textarea/textarea.d.ts +1 -1
- package/dist-versioned/components/tooltip/tooltip.d.ts +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 +3 -3
- 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.CJDJTJIA.js +0 -1
- package/cdn/chunks/chunk.CZ3W7KBI.js +0 -1
- package/cdn-versioned/chunks/chunk.CJDJTJIA.js +0 -1
- package/cdn-versioned/chunks/chunk.CZ3W7KBI.js +0 -1
@@ -76,10 +76,10 @@ var SdRadioGroup = class extends SolidElement {
|
|
76
76
|
this.formControlController.updateValidity();
|
77
77
|
}
|
78
78
|
getAllRadios() {
|
79
|
-
return [...this.querySelectorAll("sd-4-0-0-next-
|
79
|
+
return [...this.querySelectorAll("sd-4-0-0-next-2-radio, sd-4-0-0-next-2-radio-button")];
|
80
80
|
}
|
81
81
|
handleRadioClick(event) {
|
82
|
-
const target = event.target.closest("sd-4-0-0-next-
|
82
|
+
const target = event.target.closest("sd-4-0-0-next-2-radio, sd-4-0-0-next-2-radio-button");
|
83
83
|
const radios = this.getAllRadios();
|
84
84
|
const oldValue = this.value;
|
85
85
|
if (target.disabled) {
|
@@ -156,7 +156,7 @@ var SdRadioGroup = class extends SolidElement {
|
|
156
156
|
}
|
157
157
|
})
|
158
158
|
);
|
159
|
-
this.hasButtonGroup = radios.some((radio) => radio.tagName.toLowerCase() === "sd-4-0-0-next-
|
159
|
+
this.hasButtonGroup = radios.some((radio) => radio.tagName.toLowerCase() === "sd-4-0-0-next-2-radio-button");
|
160
160
|
if (!radios.some((radio) => radio.checked)) {
|
161
161
|
if (this.hasButtonGroup) {
|
162
162
|
const buttonRadio = (_a = radios[0].shadowRoot) == null ? void 0 : _a.querySelector("button");
|
@@ -168,26 +168,26 @@ var SdRadioGroup = class extends SolidElement {
|
|
168
168
|
}
|
169
169
|
}
|
170
170
|
if (this.hasButtonGroup) {
|
171
|
-
const buttonGroup = (_b = this.shadowRoot) == null ? void 0 : _b.querySelector("sd-4-0-0-next-
|
171
|
+
const buttonGroup = (_b = this.shadowRoot) == null ? void 0 : _b.querySelector("sd-4-0-0-next-2-button-group");
|
172
172
|
if (buttonGroup) {
|
173
173
|
buttonGroup.disableRole = true;
|
174
174
|
}
|
175
175
|
}
|
176
176
|
}
|
177
177
|
syncRadios() {
|
178
|
-
if (customElements.get("sd-4-0-0-next-
|
178
|
+
if (customElements.get("sd-4-0-0-next-2-radio") && customElements.get("sd-4-0-0-next-2-radio-button")) {
|
179
179
|
this.syncRadioElements();
|
180
180
|
return;
|
181
181
|
}
|
182
|
-
if (customElements.get("sd-4-0-0-next-
|
182
|
+
if (customElements.get("sd-4-0-0-next-2-radio")) {
|
183
183
|
this.syncRadioElements();
|
184
184
|
} else {
|
185
|
-
customElements.whenDefined("sd-4-0-0-next-
|
185
|
+
customElements.whenDefined("sd-4-0-0-next-2-radio").then(() => this.syncRadios());
|
186
186
|
}
|
187
|
-
if (customElements.get("sd-4-0-0-next-
|
187
|
+
if (customElements.get("sd-4-0-0-next-2-radio-button")) {
|
188
188
|
this.syncRadioElements();
|
189
189
|
} else {
|
190
|
-
customElements.whenDefined("sd-4-0-0-next-
|
190
|
+
customElements.whenDefined("sd-4-0-0-next-2-radio-button").then(() => this.syncRadios());
|
191
191
|
}
|
192
192
|
}
|
193
193
|
updateCheckedRadio() {
|
@@ -259,16 +259,16 @@ var SdRadioGroup = class extends SolidElement {
|
|
259
259
|
vertical: "flex-col",
|
260
260
|
horizontal: "flex-row"
|
261
261
|
}[this.orientation]
|
262
|
-
)}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup ? html`<sd-4-0-0-next-
|
262
|
+
)}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup ? html`<sd-4-0-0-next-2-button-group part="button-group" exportparts="base:button-group__base" role="presentation">${defaultSlot}</sd-4-0-0-next-2-button-group>` : defaultSlot}</div></fieldset>${this.formControlController.renderInvalidMessage()}`;
|
263
263
|
}
|
264
264
|
};
|
265
|
-
SdRadioGroup.dependencies = { "sd-4-0-0-next-
|
265
|
+
SdRadioGroup.dependencies = { "sd-4-0-0-next-2-button-group": SdButtonGroup };
|
266
266
|
/**
|
267
267
|
* Inherits Tailwind classes and includes additional styling.
|
268
268
|
*/
|
269
269
|
SdRadioGroup.styles = [
|
270
270
|
...SolidElement.styles,
|
271
|
-
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-0-0-next-
|
271
|
+
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-0-0-next-2-radio){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-4-0-0-next-2-radio:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-4-0-0-next-2-radio){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-4-0-0-next-2-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-0-0-next-2-radio){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-0-0-next-2-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([required]) #label:after{content:" *"}`
|
272
272
|
];
|
273
273
|
__decorateClass([
|
274
274
|
query("slot:not([name])")
|
@@ -322,7 +322,7 @@ __decorateClass([
|
|
322
322
|
watch("value")
|
323
323
|
], SdRadioGroup.prototype, "handleValueChange", 1);
|
324
324
|
SdRadioGroup = __decorateClass([
|
325
|
-
customElement("sd-4-0-0-next-
|
325
|
+
customElement("sd-4-0-0-next-2-radio-group")
|
326
326
|
], SdRadioGroup);
|
327
327
|
|
328
328
|
export {
|
@@ -112,16 +112,16 @@ var SdNavigationItem = class extends SolidElement {
|
|
112
112
|
isAccordion ? "grow" : "w-full",
|
113
113
|
slots["description"] || this.separated ? "pb-1" : horizontalPaddingBottom,
|
114
114
|
this.calculatePaddingX
|
115
|
-
)}">${this.divider && this.vertical ? html`<sd-4-0-0-next-
|
115
|
+
)}">${this.divider && this.vertical ? html`<sd-4-0-0-next-2-divider part="divider" class="${cx("w-full transition-all absolute -top-0.25 left-0", this.calculatePaddingX)}"></sd-4-0-0-next-2-divider>` : ""} <span part="content-container" class="inline-flex items-center flex-auto">${this.separated ? html`<a class="${cx(
|
116
116
|
"mr-4 w-full inline-flex items-center pl-4 cursor-pointer relative focus-visible:focus-outline hover:bg-neutral-200 group transition-all min-h-[48px]",
|
117
117
|
!slots["description"] && "py-4"
|
118
|
-
)}" href="${ifDefined(isLink ? this.href : void 0)}" target="${ifDefined(isLink ? this.target : void 0)}" download="${ifDefined(isLink ? this.download : void 0)}"><slot part="content" class="inline"></slot></a>` : html`<slot part="content" class="inline"></slot>`} </span>${(this.chevron || slots["children"]) && this.vertical ? this.separated ? html`<button type="button" title="toggle-details" class="sd-interactive sd-interactive--reset" @click="${this.handleClickSummary}"><sd-4-0-0-next-
|
118
|
+
)}" href="${ifDefined(isLink ? this.href : void 0)}" target="${ifDefined(isLink ? this.target : void 0)}" download="${ifDefined(isLink ? this.download : void 0)}"><slot part="content" class="inline"></slot></a>` : html`<slot part="content" class="inline"></slot>`} </span>${(this.chevron || slots["children"]) && this.vertical ? this.separated ? html`<button type="button" title="toggle-details" class="sd-interactive sd-interactive--reset" @click="${this.handleClickSummary}"><sd-4-0-0-next-2-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${cx(
|
119
119
|
"mr-4 h-6 w-6 transition-all",
|
120
120
|
isAccordion || this.separated ? this.open ? "rotate-180" : "rotate-0" : "rotate-[270deg]"
|
121
|
-
)}"></sd-4-0-0-next-
|
121
|
+
)}"></sd-4-0-0-next-2-icon></button>` : html`<sd-4-0-0-next-2-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${cx(
|
122
122
|
"h-6 w-6 ml-2 transition-all",
|
123
123
|
isAccordion ? this.open ? "rotate-180" : "rotate-0" : "rotate-[270deg]"
|
124
|
-
)}"></sd-4-0-0-next-
|
124
|
+
)}"></sd-4-0-0-next-2-icon>` : ""} </span>${slots["description"] && this.vertical ? html`<slot name="description" part="description" class="${cx(
|
125
125
|
"inline-block text-sm text-left text-black",
|
126
126
|
isAccordion || this.separated ? "grow" : "w-full",
|
127
127
|
this.separated ? "px-4" : this.calculatePaddingX,
|
@@ -186,7 +186,7 @@ __decorateClass([
|
|
186
186
|
property({ type: Boolean, reflect: true })
|
187
187
|
], SdNavigationItem.prototype, "separated", 2);
|
188
188
|
SdNavigationItem = __decorateClass([
|
189
|
-
customElement("sd-4-0-0-next-
|
189
|
+
customElement("sd-4-0-0-next-2-navigation-item")
|
190
190
|
], SdNavigationItem);
|
191
191
|
|
192
192
|
export {
|
@@ -116,7 +116,7 @@ var SdAccordion = class extends SolidElement {
|
|
116
116
|
)}"></div><slot name="summary" part="summary" class="flex flex-auto items-center text-left">${this.summary}</slot><span part="summary-icon" class="${cx(
|
117
117
|
"flex flex-grow-0 flex-shrink-0 flex-auto items-center transition-all ease-in-out duration-300 text-xl",
|
118
118
|
this.open && "rotate-180"
|
119
|
-
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-4-0-0-next-
|
119
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-4-0-0-next-2-icon library="system" name="chevron-down"></sd-4-0-0-next-2-icon></slot><slot name="collapse-icon" class="${cx(!this.open && "hidden")}"><sd-4-0-0-next-2-icon library="system" name="chevron-down"></sd-4-0-0-next-2-icon></slot></span></header><div part="content" id="content" class="overflow-hidden"><slot part="content__slot" class="block px-4 py-6" role="region" aria-labelledby="header"></slot></div></div>`;
|
120
120
|
}
|
121
121
|
};
|
122
122
|
SdAccordion.styles = [
|
@@ -142,7 +142,7 @@ __decorateClass([
|
|
142
142
|
watch("open", { waitUntilFirstUpdate: true })
|
143
143
|
], SdAccordion.prototype, "handleOpenChange", 1);
|
144
144
|
SdAccordion = __decorateClass([
|
145
|
-
customElement("sd-4-0-0-next-
|
145
|
+
customElement("sd-4-0-0-next-2-accordion")
|
146
146
|
], SdAccordion);
|
147
147
|
setDefaultAnimation("accordion.show", {
|
148
148
|
keyframes: [
|
@@ -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-0-next-
|
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-0-next-2-icon library="system" name="chevron-up" class="rotate-[-90deg]" label="${this.localize.term("scrollToStart")}"></sd-4-0-0-next-2-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-0-next-2-icon library="system" name="chevron-down" class="rotate-[-90deg]" label="${this.localize.term("scrollToEnd")}"></sd-4-0-0-next-2-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-0-next-2-icon library="system" name="chevron-up" label="${this.localize.term("scrollToStart")}"></sd-4-0-0-next-2-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-0-next-2-icon library="system" name="chevron-down" label="${this.localize.term("scrollToEnd")}"></sd-4-0-0-next-2-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-0-next-
|
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-0-next-2-icon--top{align-self:flex-start}.sd-4-0-0-next-2-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-0-next-
|
172
|
+
customElement("sd-4-0-0-next-2-scrollable")
|
173
173
|
], SdScrollable);
|
174
174
|
|
175
175
|
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-0-next-
|
65
|
+
assumeInteractionOn: ["sd-blur", "sd-4-0-0-next-2-input"]
|
66
66
|
});
|
67
67
|
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
68
68
|
this.localize = new LocalizeController(this);
|
@@ -102,11 +102,11 @@ var SdCombobox = class extends SolidElement {
|
|
102
102
|
return normalizedOption.includes(normalizedQuery) || normalizedOptionLabel.includes(normalizedQuery);
|
103
103
|
};
|
104
104
|
this.getTag = (option) => {
|
105
|
-
return html`<sd-4-0-0-next-
|
105
|
+
return html`<sd-4-0-0-next-2-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
106
106
|
base:tag__base,
|
107
107
|
content:tag__content,
|
108
108
|
removable-indicator:tag__removable-indicator,
|
109
|
-
" 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-0-next-
|
109
|
+
" 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-0-next-2-tag>`;
|
110
110
|
};
|
111
111
|
this.handleDocumentFocusIn = (event) => {
|
112
112
|
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-0-next-
|
232
|
+
if (item.tagName.toLowerCase() === "sd-4-0-0-next-2-optgroup") {
|
233
233
|
Array.from(item.children).forEach((option) => {
|
234
|
-
if (option.tagName.toLowerCase() === "sd-4-0-0-next-
|
234
|
+
if (option.tagName.toLowerCase() === "sd-4-0-0-next-2-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-0-next-
|
254
|
+
html`<sd-4-0-0-next-2-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-0-next-
|
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-0-next-2-tag>`
|
259
259
|
];
|
260
260
|
}
|
261
261
|
}
|
@@ -362,7 +362,7 @@ var SdCombobox = class extends SolidElement {
|
|
362
362
|
}
|
363
363
|
handleOptionClick(event) {
|
364
364
|
const target = event.target;
|
365
|
-
const option = target.closest("sd-4-0-0-next-
|
365
|
+
const option = target.closest("sd-4-0-0-next-2-option");
|
366
366
|
const oldValue = this.value;
|
367
367
|
if (option && !option.disabled) {
|
368
368
|
if (this.multiple) {
|
@@ -414,7 +414,7 @@ var SdCombobox = class extends SolidElement {
|
|
414
414
|
scrollIntoView(this.getCurrentOption(), this.listbox, "vertical", "auto");
|
415
415
|
}
|
416
416
|
getAllFilteredOptions() {
|
417
|
-
return [...this.filteredWrapper.querySelectorAll("sd-4-0-0-next-
|
417
|
+
return [...this.filteredWrapper.querySelectorAll("sd-4-0-0-next-2-option")];
|
418
418
|
}
|
419
419
|
getCurrentOption() {
|
420
420
|
return this.getAllFilteredOptions().find((option) => option.current);
|
@@ -538,7 +538,7 @@ var SdCombobox = class extends SolidElement {
|
|
538
538
|
const clonedOption = option.cloneNode(true);
|
539
539
|
clonedOption.current = clonedOption.value === ((_a = this.lastOption) == null ? void 0 : _a.value);
|
540
540
|
clonedOption.selected = option.selected;
|
541
|
-
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-4-0-0-next-
|
541
|
+
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-4-0-0-next-2-optgroup";
|
542
542
|
if (!hasOptgroup) {
|
543
543
|
return clonedOption;
|
544
544
|
}
|
@@ -568,7 +568,7 @@ var SdCombobox = class extends SolidElement {
|
|
568
568
|
handleMouseLeave() {
|
569
569
|
this.hasHover = false;
|
570
570
|
}
|
571
|
-
/** Receives incoming event detail from sd-4-0-0-next-
|
571
|
+
/** Receives incoming event detail from sd-4-0-0-next-2-popup and updates local state for conditional styling. */
|
572
572
|
handleCurrentPlacement(e) {
|
573
573
|
const incomingPlacement = e.detail;
|
574
574
|
if (incomingPlacement) {
|
@@ -580,7 +580,7 @@ var SdCombobox = class extends SolidElement {
|
|
580
580
|
}
|
581
581
|
handleUseTagsChange() {
|
582
582
|
const allOptions = this.getAllFilteredOptions();
|
583
|
-
if (customElements.get("sd-4-0-0-next-
|
583
|
+
if (customElements.get("sd-4-0-0-next-2-option")) {
|
584
584
|
allOptions.forEach((option) => {
|
585
585
|
option.checkbox = this.multiple;
|
586
586
|
});
|
@@ -706,8 +706,8 @@ var SdCombobox = class extends SolidElement {
|
|
706
706
|
return filterOnlyOptgroups(getAssignedElementsForSlot(this.defaultSlot));
|
707
707
|
}
|
708
708
|
async handleDefaultSlotChange() {
|
709
|
-
if (!customElements.get("sd-4-0-0-next-
|
710
|
-
customElements.whenDefined("sd-4-0-0-next-
|
709
|
+
if (!customElements.get("sd-4-0-0-next-2-option")) {
|
710
|
+
customElements.whenDefined("sd-4-0-0-next-2-option").then(() => this.handleDefaultSlotChange());
|
711
711
|
return;
|
712
712
|
}
|
713
713
|
const slottedOptions = this.getSlottedOptions();
|
@@ -716,10 +716,10 @@ var SdCombobox = class extends SolidElement {
|
|
716
716
|
if (this.multiple) {
|
717
717
|
option.checkbox = true;
|
718
718
|
}
|
719
|
-
option.id = option.id || `sd-4-0-0-next-
|
719
|
+
option.id = option.id || `sd-4-0-0-next-2-combobox-option-${index}`;
|
720
720
|
});
|
721
721
|
slottedOptgroups.forEach((optgroup, index) => {
|
722
|
-
optgroup.id = optgroup.id || `sd-4-0-0-next-
|
722
|
+
optgroup.id = optgroup.id || `sd-4-0-0-next-2-combobox-optgroup-${index}`;
|
723
723
|
});
|
724
724
|
await this.syncSelectedOptionsAndValue();
|
725
725
|
if (this.multiple) {
|
@@ -770,7 +770,7 @@ var SdCombobox = class extends SolidElement {
|
|
770
770
|
default: "border-neutral-800"
|
771
771
|
}[selectState],
|
772
772
|
this.open && (this.currentPlacement === "bottom" ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
|
773
|
-
)}"></div><sd-4-0-0-next-
|
773
|
+
)}"></div><sd-4-0-0-next-2-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
774
774
|
"inline-flex relative w-full",
|
775
775
|
this.currentPlacement === "bottom" ? "origin-top" : "origin-bottom"
|
776
776
|
)}" placement="${this.placement}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
@@ -787,28 +787,28 @@ var SdCombobox = class extends SolidElement {
|
|
787
787
|
"appearance-none outline-none bg-transparent flex-auto min-w-0",
|
788
788
|
cursorStyles,
|
789
789
|
this.selectedTextLabel && !this.multiple ? "placeholder-black" : "placeholder-neutral-700"
|
790
|
-
)}" type="text" placeholder="${this.selectedTextLabel && !this.multiple ? this.selectedTextLabel : this.placeholder}" .disabled="${this.disabled}" .value="${this.displayInputValue}" autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded="${this.open}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-autocomplete="list" aria-owns="listbox" @input="${this.handleInput}" @change="${this.handleChange}"><div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map((option) => option == null ? void 0 : option.getTextLabel()).join(", ")}</div><input class="${cx("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10", cursorStyles)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value) ? this.value.join(", ") : this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${() => this.focus()}" @invalid="${this.handleInvalid}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("flex justify-center", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-0-0-next-
|
790
|
+
)}" type="text" placeholder="${this.selectedTextLabel && !this.multiple ? this.selectedTextLabel : this.placeholder}" .disabled="${this.disabled}" .value="${this.displayInputValue}" autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded="${this.open}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-autocomplete="list" aria-owns="listbox" @input="${this.handleInput}" @change="${this.handleChange}"><div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map((option) => option == null ? void 0 : option.getTextLabel()).join(", ")}</div><input class="${cx("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10", cursorStyles)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value) ? this.value.join(", ") : this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${() => this.focus()}" @invalid="${this.handleInvalid}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("flex justify-center", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-0-0-next-2-icon class="${cx("text-icon-fill-neutral-800", iconSize)}" name="closing-round" library="system"></sd-4-0-0-next-2-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-4-0-0-next-2-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="system" name="risk"></sd-4-0-0-next-2-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-4-0-0-next-2-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="system" name="status-check"></sd-4-0-0-next-2-icon>` : ""}<slot name="right" part="right" class="${cx(
|
791
791
|
"inline-flex ml-2 leading-[0]",
|
792
792
|
this.disabled ? "text-neutral-500" : "text-primary",
|
793
793
|
iconSize
|
794
|
-
)}"><sd-4-0-0-next-
|
794
|
+
)}"><sd-4-0-0-next-2-icon class="${cx("transition-all", this.open ? "rotate-180" : "rotate-0")}" name="chevron-down" part="chevron" library="system" color="currentColor"></sd-4-0-0-next-2-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${cx(
|
795
795
|
"bg-white px-2 py-3 relative border-primary overflow-y-auto",
|
796
796
|
this.open && "shadow",
|
797
797
|
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"
|
798
|
-
)}" 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-0-next-
|
798
|
+
)}" 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-0-next-2-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()}`;
|
799
799
|
}
|
800
800
|
};
|
801
801
|
SdCombobox.dependencies = {
|
802
|
-
"sd-4-0-0-next-
|
803
|
-
"sd-4-0-0-next-
|
804
|
-
"sd-4-0-0-next-
|
802
|
+
"sd-4-0-0-next-2-icon": SdIcon,
|
803
|
+
"sd-4-0-0-next-2-popup": SdPopup,
|
804
|
+
"sd-4-0-0-next-2-tag": SdTag
|
805
805
|
};
|
806
806
|
SdCombobox.styles = [
|
807
807
|
...SolidElement.styles,
|
808
|
-
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-0-next-
|
808
|
+
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-0-next-2-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-4-0-0-next-2-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-0-next-2-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-4-0-0-next-2-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-4-0-0-next-2-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-0-next-2-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;color:inherit;font-weight:700}`
|
809
809
|
];
|
810
810
|
__decorateClass([
|
811
|
-
query("sd-4-0-0-next-
|
811
|
+
query("sd-4-0-0-next-2-popup")
|
812
812
|
], SdCombobox.prototype, "popup", 2);
|
813
813
|
__decorateClass([
|
814
814
|
query('[part="combobox"]')
|
@@ -957,7 +957,7 @@ __decorateClass([
|
|
957
957
|
watch("open", { waitUntilFirstUpdate: true })
|
958
958
|
], SdCombobox.prototype, "handleOpenChange", 1);
|
959
959
|
SdCombobox = __decorateClass([
|
960
|
-
customElement("sd-4-0-0-next-
|
960
|
+
customElement("sd-4-0-0-next-2-combobox")
|
961
961
|
], SdCombobox);
|
962
962
|
setDefaultAnimation("combobox.show", {
|
963
963
|
keyframes: [
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import {
|
2
2
|
SdDivider
|
3
|
-
} from "./chunk.
|
3
|
+
} from "./chunk.4RGGPCD5.js";
|
4
4
|
import {
|
5
5
|
watch
|
6
6
|
} from "./chunk.X2OQMWGY.js";
|
@@ -24,11 +24,11 @@ var SdOptgroup = class extends SolidElement {
|
|
24
24
|
this.label = "";
|
25
25
|
}
|
26
26
|
/**
|
27
|
-
* Syncs the disabled prop for all slotted sd-4-0-0-next-
|
27
|
+
* Syncs the disabled prop for all slotted sd-4-0-0-next-2-options when it is triggered
|
28
28
|
*/
|
29
29
|
handleDisableOptions() {
|
30
30
|
const { disabled } = this;
|
31
|
-
this.defaultSlot.assignedElements().filter((opt) => opt.tagName.toLowerCase() === "sd-4-0-0-next-
|
31
|
+
this.defaultSlot.assignedElements().filter((opt) => opt.tagName.toLowerCase() === "sd-4-0-0-next-2-option").forEach((opt) => {
|
32
32
|
opt.disabled = disabled;
|
33
33
|
});
|
34
34
|
}
|
@@ -37,11 +37,11 @@ var SdOptgroup = class extends SolidElement {
|
|
37
37
|
}
|
38
38
|
render() {
|
39
39
|
const { disabled } = this;
|
40
|
-
return html`<div role="${disabled ? "presentation" : "group"}" class="${cx(this.disabled ? "text-neutral-500" : "")}" part="base" aria-labelledby="group-label"><sd-4-0-0-next-
|
40
|
+
return html`<div role="${disabled ? "presentation" : "group"}" class="${cx(this.disabled ? "text-neutral-500" : "")}" part="base" aria-labelledby="group-label"><sd-4-0-0-next-2-divider id="divider" class="pt-2 pb-4" part="divider"></sd-4-0-0-next-2-divider><div part="label-container" class="${cx(this.disabled ? "text-neutral-500" : "text-black")} px-4 font-bold text-left" role="presentation" id="group-label"><slot name="label"><span>${this.label}</span></slot></div><div role="group" part="options"><slot @slotchange="${this.handleDisableOptions}"></slot></div></div>`;
|
41
41
|
}
|
42
42
|
};
|
43
43
|
SdOptgroup.dependencies = {
|
44
|
-
"sd-4-0-0-next-
|
44
|
+
"sd-4-0-0-next-2-divider": SdDivider
|
45
45
|
};
|
46
46
|
SdOptgroup.styles = [
|
47
47
|
...SolidElement.styles,
|
@@ -60,7 +60,7 @@ __decorateClass([
|
|
60
60
|
watch("disabled", { waitUntilFirstUpdate: true })
|
61
61
|
], SdOptgroup.prototype, "handleDisabledChange", 1);
|
62
62
|
SdOptgroup = __decorateClass([
|
63
|
-
customElement("sd-4-0-0-next-
|
63
|
+
customElement("sd-4-0-0-next-2-optgroup")
|
64
64
|
], SdOptgroup);
|
65
65
|
|
66
66
|
export {
|
@@ -137,7 +137,7 @@ __decorateClass([
|
|
137
137
|
state()
|
138
138
|
], SdBrandshape.prototype, "componentBreakpoint", 2);
|
139
139
|
SdBrandshape = __decorateClass([
|
140
|
-
customElement("sd-4-0-0-next-
|
140
|
+
customElement("sd-4-0-0-next-2-brandshape")
|
141
141
|
], SdBrandshape);
|
142
142
|
|
143
143
|
export {
|
@@ -111,7 +111,7 @@ var SdCheckbox = class extends SolidElement {
|
|
111
111
|
render() {
|
112
112
|
const checkboxState = this.disabled && this.indeterminate ? "disabledIndeterminate" : this.disabled && this.checked ? "disabledChecked" : this.disabled ? "disabled" : this.showInvalidStyle && this.indeterminate ? "invalidIndeterminate" : this.showInvalidStyle ? "invalid" : this.checked || this.indeterminate ? "filled" : "default";
|
113
113
|
return html`<label part="base" class="${cx(
|
114
|
-
"sd-4-0-0-next-
|
114
|
+
"sd-4-0-0-next-2-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",
|
115
115
|
this.disabled && "hover:cursor-not-allowed",
|
116
116
|
{
|
117
117
|
/* sizes, fonts */
|
@@ -137,7 +137,7 @@ var SdCheckbox = class extends SolidElement {
|
|
137
137
|
filled: "border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",
|
138
138
|
default: "border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"
|
139
139
|
}[checkboxState]
|
140
|
-
)}">${this.checked ? html`<sd-4-0-0-next-
|
140
|
+
)}">${this.checked ? html`<sd-4-0-0-next-2-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-4-0-0-next-2-icon>` : ""} ${!this.checked && this.indeterminate ? html`<sd-4-0-0-next-2-icon part="indeterminate-icon" class="text-white w-3 h-3" library="system" name="status-minus"></sd-4-0-0-next-2-icon>` : ""} </span><span part="label" id="label" class="${cx(
|
141
141
|
"select-none inline-block ml-2",
|
142
142
|
this.disabled ? "text-neutral-500" : this.showInvalidStyle ? "text-error" : "text-black"
|
143
143
|
)}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`;
|
@@ -196,7 +196,7 @@ __decorateClass([
|
|
196
196
|
watch(["checked", "indeterminate"], { waitUntilFirstUpdate: true })
|
197
197
|
], SdCheckbox.prototype, "handleStateChange", 1);
|
198
198
|
SdCheckbox = __decorateClass([
|
199
|
-
customElement("sd-4-0-0-next-
|
199
|
+
customElement("sd-4-0-0-next-2-checkbox")
|
200
200
|
], SdCheckbox);
|
201
201
|
|
202
202
|
export {
|