@solid-design-system/components 4.0.0-next.7 → 4.0.0-next.8
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.BUUMCPDC.js → chunk.AA7WA27A.js} +2 -2
- package/cdn/chunks/{chunk.WHEYQDOD.js → chunk.OVVNTNS7.js} +2 -2
- package/cdn/components/combobox/combobox.js +1 -1
- package/cdn/components/select/select.js +1 -1
- package/cdn/custom-elements.json +17 -1
- package/cdn/solid-components.bundle.js +4 -4
- package/cdn/solid-components.iife.js +4 -4
- package/cdn/solid-components.js +1 -1
- package/cdn/web-types.json +7 -5
- 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.2IZXJHH7.js +1 -1
- package/cdn-versioned/chunks/chunk.36Z2VDHI.js +1 -1
- package/cdn-versioned/chunks/chunk.3ATYVOO4.js +1 -1
- package/cdn-versioned/chunks/chunk.4HIKTDIM.js +3 -3
- package/cdn-versioned/chunks/chunk.4W3WLVGR.js +1 -1
- package/cdn-versioned/chunks/chunk.5FM4F3Y4.js +1 -1
- 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.BUUMCPDC.js → chunk.AA7WA27A.js} +4 -4
- package/cdn-versioned/chunks/chunk.APMDRZQD.js +1 -1
- package/cdn-versioned/chunks/chunk.C2PA7CKF.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.DMLGBWCL.js +1 -1
- package/cdn-versioned/chunks/chunk.DVHKKAVM.js +1 -1
- package/cdn-versioned/chunks/chunk.EWWGLHC5.js +1 -1
- package/cdn-versioned/chunks/chunk.F7J6HN76.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.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.ISEQUO4U.js +1 -1
- package/cdn-versioned/chunks/chunk.ITRQVXFY.js +1 -1
- package/cdn-versioned/chunks/chunk.IZKUI5WK.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.MPP7HYX7.js +1 -1
- package/cdn-versioned/chunks/chunk.MX22EZXK.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 -1
- package/cdn-versioned/chunks/chunk.OVV7TNT2.js +1 -1
- package/cdn-versioned/chunks/{chunk.WHEYQDOD.js → chunk.OVVNTNS7.js} +4 -4
- package/cdn-versioned/chunks/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.TA7CZCP3.js +1 -1
- package/cdn-versioned/chunks/chunk.U443X4TI.js +1 -1
- 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.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/chunks/chunk.ZRIABVVM.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/combobox/combobox.js +1 -1
- 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/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/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/select/select.js +1 -1
- 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 +1 -1
- package/cdn-versioned/components/video/video.d.ts +1 -1
- package/cdn-versioned/custom-elements.json +218 -202
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +17 -17
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +17 -17
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +80 -80
- package/cdn-versioned/web-types.json +143 -141
- package/dist/chunks/{chunk.PPBZXQVJ.js → chunk.4XDHTC3C.js} +2 -2
- package/dist/chunks/{chunk.B44AE4VW.js → chunk.O3ZFWYJW.js} +2 -2
- package/dist/components/combobox/combobox.js +1 -1
- package/dist/components/select/select.js +1 -1
- package/dist/custom-elements.json +17 -1
- package/dist/solid-components.js +2 -2
- package/dist/web-types.json +7 -5
- 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.4JZQQD4L.js +3 -3
- package/dist-versioned/chunks/chunk.4QKRGAOL.js +4 -4
- package/dist-versioned/chunks/chunk.4RGGPCD5.js +2 -2
- package/dist-versioned/chunks/{chunk.PPBZXQVJ.js → chunk.4XDHTC3C.js} +28 -28
- 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.727ERQ4F.js +2 -2
- package/dist-versioned/chunks/chunk.743FPQRN.js +2 -2
- package/dist-versioned/chunks/chunk.76ZNNLGN.js +1 -1
- package/dist-versioned/chunks/chunk.7OHSCBBX.js +1 -1
- package/dist-versioned/chunks/chunk.BG3M5FUP.js +13 -13
- 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.DQPVSTUQ.js +3 -3
- package/dist-versioned/chunks/chunk.EKFRFDTB.js +5 -5
- package/dist-versioned/chunks/chunk.H655M7FD.js +1 -1
- package/dist-versioned/chunks/chunk.HPR3PWAE.js +3 -3
- 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.KTJRTRDJ.js +5 -5
- 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.B44AE4VW.js → chunk.O3ZFWYJW.js} +31 -31
- 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.TWXYFPBS.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.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/combobox/combobox.js +1 -1
- 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/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/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/select/select.js +1 -1
- 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 +1 -1
- package/dist-versioned/components/video/video.d.ts +1 -1
- package/dist-versioned/custom-elements.json +218 -202
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +2 -2
- package/dist-versioned/vscode.html-custom-data.json +80 -80
- package/dist-versioned/web-types.json +143 -141
- package/package.json +1 -1
|
@@ -79,7 +79,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
79
79
|
this.value = "";
|
|
80
80
|
this.defaultValue = "";
|
|
81
81
|
this.size = "lg";
|
|
82
|
-
this.placeholder =
|
|
82
|
+
this.placeholder = "";
|
|
83
83
|
this.maxOptionsTagLabel = this.localize.term("tagsSelected");
|
|
84
84
|
this.disabled = false;
|
|
85
85
|
this.clearable = false;
|
|
@@ -791,7 +791,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
791
791
|
"appearance-none outline-none bg-transparent flex-auto min-w-0",
|
|
792
792
|
cursorStyles,
|
|
793
793
|
this.selectedTextLabel && !this.multiple ? "placeholder-black" : "placeholder-neutral-700"
|
|
794
|
-
)}" 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(
|
|
794
|
+
)}" type="text" placeholder="${this.selectedTextLabel && !this.multiple ? this.selectedTextLabel : this.placeholder || this.localize.term("comboboxDefaultPlaceholder")}" .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(
|
|
795
795
|
"flex justify-center",
|
|
796
796
|
iconMarginLeft,
|
|
797
797
|
this.value.length > 0 ? "visible" : "invisible"
|
|
@@ -70,7 +70,7 @@ var SdSelect = class extends SolidElement {
|
|
|
70
70
|
this.size = "lg";
|
|
71
71
|
this.placement = "bottom";
|
|
72
72
|
this.label = "";
|
|
73
|
-
this.placeholder =
|
|
73
|
+
this.placeholder = "";
|
|
74
74
|
this.maxOptionsTagLabel = this.localize.term("tagsSelected");
|
|
75
75
|
this.disabled = false;
|
|
76
76
|
this.helpText = "";
|
|
@@ -620,7 +620,7 @@ var SdSelect = class extends SolidElement {
|
|
|
620
620
|
"appearance-none outline-none flex-grow bg-transparent w-full placeholder-neutral-700",
|
|
621
621
|
cursorStyles,
|
|
622
622
|
this.multiple && this.useTags && this.value.length > 0 ? "hidden" : ""
|
|
623
|
-
)}" type="text"
|
|
623
|
+
)}" type="text" .disabled="${this.disabled}" placeholder="${this.placeholder || this.localize.term("selectDefaultPlaceholder")}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open ? "true" : "false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled ? "true" : "false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="help-text invalid-message" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${this.multiple && this.useTags ? html`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>` : ""}<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(
|
|
624
624
|
"select__clear flex justify-center",
|
|
625
625
|
iconMarginLeft,
|
|
626
626
|
this.value.length > 0 ? "visible" : "invisible"
|
|
@@ -3930,6 +3930,10 @@
|
|
|
3930
3930
|
{
|
|
3931
3931
|
"kind": "field",
|
|
3932
3932
|
"name": "placeholder",
|
|
3933
|
+
"type": {
|
|
3934
|
+
"text": "string"
|
|
3935
|
+
},
|
|
3936
|
+
"default": "''",
|
|
3933
3937
|
"description": "Placeholder text to show as a hint when the combobox is empty.",
|
|
3934
3938
|
"attribute": "placeholder"
|
|
3935
3939
|
},
|
|
@@ -4307,6 +4311,10 @@
|
|
|
4307
4311
|
},
|
|
4308
4312
|
{
|
|
4309
4313
|
"name": "placeholder",
|
|
4314
|
+
"type": {
|
|
4315
|
+
"text": "string"
|
|
4316
|
+
},
|
|
4317
|
+
"default": "''",
|
|
4310
4318
|
"description": "Placeholder text to show as a hint when the combobox is empty.",
|
|
4311
4319
|
"fieldName": "placeholder"
|
|
4312
4320
|
},
|
|
@@ -12342,6 +12350,10 @@
|
|
|
12342
12350
|
{
|
|
12343
12351
|
"kind": "field",
|
|
12344
12352
|
"name": "placeholder",
|
|
12353
|
+
"type": {
|
|
12354
|
+
"text": "string"
|
|
12355
|
+
},
|
|
12356
|
+
"default": "''",
|
|
12345
12357
|
"description": "Placeholder text to show as a hint when the select is empty.",
|
|
12346
12358
|
"attribute": "placeholder"
|
|
12347
12359
|
},
|
|
@@ -12683,6 +12695,10 @@
|
|
|
12683
12695
|
},
|
|
12684
12696
|
{
|
|
12685
12697
|
"name": "placeholder",
|
|
12698
|
+
"type": {
|
|
12699
|
+
"text": "string"
|
|
12700
|
+
},
|
|
12701
|
+
"default": "''",
|
|
12686
12702
|
"description": "Placeholder text to show as a hint when the select is empty.",
|
|
12687
12703
|
"fieldName": "placeholder"
|
|
12688
12704
|
},
|
|
@@ -16696,7 +16712,7 @@
|
|
|
16696
16712
|
"package": {
|
|
16697
16713
|
"name": "@solid-design-system/components",
|
|
16698
16714
|
"description": "Solid Design System: Components",
|
|
16699
|
-
"version": "4.0.0-next.
|
|
16715
|
+
"version": "4.0.0-next.8",
|
|
16700
16716
|
"author": "Union Investment",
|
|
16701
16717
|
"homepage": "https://solid-design-system.fe.union-investment.de/docs/",
|
|
16702
16718
|
"license": "MIT"
|
package/dist/solid-components.js
CHANGED
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunks/chunk.SPBPHTSS.js";
|
|
20
20
|
import {
|
|
21
21
|
SdSelect
|
|
22
|
-
} from "./chunks/chunk.
|
|
22
|
+
} from "./chunks/chunk.O3ZFWYJW.js";
|
|
23
23
|
import {
|
|
24
24
|
SdStep
|
|
25
25
|
} from "./chunks/chunk.3LGDUVS4.js";
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
} from "./chunks/chunk.65BWRJEA.js";
|
|
98
98
|
import {
|
|
99
99
|
SdCombobox
|
|
100
|
-
} from "./chunks/chunk.
|
|
100
|
+
} from "./chunks/chunk.4XDHTC3C.js";
|
|
101
101
|
import {
|
|
102
102
|
SdTag
|
|
103
103
|
} from "./chunks/chunk.NM6QP6RJ.js";
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@solid-design-system/components",
|
|
4
|
-
"version": "4.0.0-next.
|
|
4
|
+
"version": "4.0.0-next.8",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -1366,7 +1366,7 @@
|
|
|
1366
1366
|
{
|
|
1367
1367
|
"name": "placeholder",
|
|
1368
1368
|
"description": "Placeholder text to show as a hint when the combobox is empty.",
|
|
1369
|
-
"value": { "type": "string" }
|
|
1369
|
+
"value": { "type": "string", "default": "''" }
|
|
1370
1370
|
},
|
|
1371
1371
|
{
|
|
1372
1372
|
"name": "max-options-tag-label",
|
|
@@ -1584,7 +1584,8 @@
|
|
|
1584
1584
|
},
|
|
1585
1585
|
{
|
|
1586
1586
|
"name": "placeholder",
|
|
1587
|
-
"description": "Placeholder text to show as a hint when the combobox is empty."
|
|
1587
|
+
"description": "Placeholder text to show as a hint when the combobox is empty.",
|
|
1588
|
+
"type": "string"
|
|
1588
1589
|
},
|
|
1589
1590
|
{
|
|
1590
1591
|
"name": "maxOptionsTagLabel",
|
|
@@ -4777,7 +4778,7 @@
|
|
|
4777
4778
|
{
|
|
4778
4779
|
"name": "placeholder",
|
|
4779
4780
|
"description": "Placeholder text to show as a hint when the select is empty.",
|
|
4780
|
-
"value": { "type": "string" }
|
|
4781
|
+
"value": { "type": "string", "default": "''" }
|
|
4781
4782
|
},
|
|
4782
4783
|
{
|
|
4783
4784
|
"name": "max-options-tag-label",
|
|
@@ -4962,7 +4963,8 @@
|
|
|
4962
4963
|
},
|
|
4963
4964
|
{
|
|
4964
4965
|
"name": "placeholder",
|
|
4965
|
-
"description": "Placeholder text to show as a hint when the select is empty."
|
|
4966
|
+
"description": "Placeholder text to show as a hint when the select is empty.",
|
|
4967
|
+
"type": "string"
|
|
4966
4968
|
},
|
|
4967
4969
|
{
|
|
4968
4970
|
"name": "maxOptionsTagLabel",
|
|
@@ -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-0-next-
|
|
35
|
+
this.emit('sd-4-0-0-next-8-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-0-next-
|
|
77
|
+
<sd-4-0-0-next-8-icon name="check" library="system" aria-hidden="true"></sd-4-0-0-next-8-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-0-next-
|
|
87
|
+
<sd-4-0-0-next-8-icon name="chevron-right" library="system" aria-hidden="true"></sd-4-0-0-next-8-icon>
|
|
88
88
|
</span>
|
|
89
89
|
</div>
|
|
90
90
|
`;
|
|
@@ -168,7 +168,7 @@ __decorateClass([
|
|
|
168
168
|
watch(["checked"], { waitUntilFirstUpdate: true })
|
|
169
169
|
], SdSwitch.prototype, "handleStateChange", 1);
|
|
170
170
|
SdSwitch = __decorateClass([
|
|
171
|
-
customElement("sd-4-0-0-next-
|
|
171
|
+
customElement("sd-4-0-0-next-8-switch")
|
|
172
172
|
], SdSwitch);
|
|
173
173
|
|
|
174
174
|
export {
|
|
@@ -81,7 +81,7 @@ var SdStep = class extends SolidElement {
|
|
|
81
81
|
!this.disabled && !this.current && !this.notInteractive && "text-primary group-hover:text-primary-500 group-hover:fill-primary-500",
|
|
82
82
|
this.notInteractive && "text-primary",
|
|
83
83
|
this.size === "lg" ? "text-lg" : "text-sm"
|
|
84
|
-
)}">${!this.disabled && !this.current && !this.notInteractive ? html`<sd-4-0-0-next-
|
|
84
|
+
)}">${!this.disabled && !this.current && !this.notInteractive ? html`<sd-4-0-0-next-8-icon name="status-check" library="system"></sd-4-0-0-next-8-icon>` : html`${this.index}`}</slot></${tag}>${this.noTail ? "" : html`<div part="tail" class="${cx(
|
|
85
85
|
this.orientation === "horizontal" ? "border-t w-full my-auto mr-2" : "border-l flex-grow flex-shrink-0 basis-auto h-full w-[1px] mx-auto",
|
|
86
86
|
!this.disabled && !this.current && !this.notInteractive ? " border-primary group-hover:border-primary-500" : "border-neutral-400"
|
|
87
87
|
)}"></div>`}</div><div part="text-container" class="${cx("mt-4 break-words flex flex-col gap-2", this.orientation === "horizontal" ? "text-center w-40" : "w-max text-left", this.disabled && "!text-neutral-700", this.notInteractive ? "ml-3" : "mr-4")}"><div part="label" id="label" class="${cx("!font-bold sd-paragraph", this.disabled && "!text-neutral-700", !this.disabled && !this.current && !this.notInteractive ? "!text-primary group-hover:!text-primary-500 group-hover:cursor-pointer" : "text-black")}"><slot name="label">${this.label}</slot></div><div part="description" id="description" class="${cx("sd-paragraph sd-paragraph--size-sm", this.disabled && "!text-neutral-700")}">${this.description || html`<slot></slot>`}</div></div></div>`;
|
|
@@ -131,7 +131,7 @@ __decorateClass([
|
|
|
131
131
|
watch("notInteractive")
|
|
132
132
|
], SdStep.prototype, "handleInteractivityChange", 1);
|
|
133
133
|
SdStep = __decorateClass([
|
|
134
|
-
customElement("sd-4-0-0-next-
|
|
134
|
+
customElement("sd-4-0-0-next-8-step")
|
|
135
135
|
], SdStep);
|
|
136
136
|
|
|
137
137
|
export {
|
|
@@ -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-0-next-
|
|
67
|
+
<sd-4-0-0-next-8-icon library="system" name="chevron-down"></sd-4-0-0-next-8-icon>
|
|
68
68
|
</slot>
|
|
69
69
|
<slot name="collapse-icon" class=${cx(!this.open && "hidden")}>
|
|
70
|
-
<sd-4-0-0-next-
|
|
70
|
+
<sd-4-0-0-next-8-icon library="system" name="chevron-down"></sd-4-0-0-next-8-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-0-next-
|
|
88
|
+
customElement("sd-4-0-0-next-8-quickfact")
|
|
89
89
|
], SdQuickfact);
|
|
90
90
|
setDefaultAnimation("quickfact.show", {
|
|
91
91
|
keyframes: [
|
|
@@ -214,7 +214,7 @@ var SdButton = class extends SolidElement {
|
|
|
214
214
|
md: "ml-2",
|
|
215
215
|
lg: "ml-2"
|
|
216
216
|
}[this.size]
|
|
217
|
-
)}"></slot>${this.loading ? html`<sd-4-0-0-next-
|
|
217
|
+
)}"></slot>${this.loading ? html`<sd-4-0-0-next-8-spinner class="${cx("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-4-0-0-next-8-spinner>` : ""}</${tag}>`;
|
|
218
218
|
}
|
|
219
219
|
};
|
|
220
220
|
/**
|
|
@@ -222,13 +222,13 @@ var SdButton = class extends SolidElement {
|
|
|
222
222
|
*/
|
|
223
223
|
SdButton.styles = [
|
|
224
224
|
...SolidElement.styles,
|
|
225
|
-
css`:host{cursor:pointer;display:inline-block;position:relative;width:var(--sd-spacing-auto,auto)}sd-4-0-0-next-
|
|
225
|
+
css`:host{cursor:pointer;display:inline-block;position:relative;width:var(--sd-spacing-auto,auto)}sd-4-0-0-next-8-spinner{--indicator-color:currentColor;--track-color:var(--tw-varcolor-200)}::slotted(sd-4-0-0-next-8-badge){pointer-events:none;position:absolute;right:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);--tw-translate-x:50%!important;--tw-translate-y:-50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}::slotted(sd-4-0-0-next-8-icon),sd-4-0-0-next-8-spinner{font-size:calc(var(--tw-varspacing)/2)}`
|
|
226
226
|
];
|
|
227
227
|
__decorateClass([
|
|
228
228
|
query("a, button")
|
|
229
229
|
], SdButton.prototype, "button", 2);
|
|
230
230
|
__decorateClass([
|
|
231
|
-
queryAssignedElements({ selector: "sd-4-0-0-next-
|
|
231
|
+
queryAssignedElements({ selector: "sd-4-0-0-next-8-icon" })
|
|
232
232
|
], SdButton.prototype, "_iconsInDefaultSlot", 2);
|
|
233
233
|
__decorateClass([
|
|
234
234
|
state()
|
|
@@ -291,7 +291,7 @@ __decorateClass([
|
|
|
291
291
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
292
292
|
], SdButton.prototype, "handleDisabledChange", 1);
|
|
293
293
|
SdButton = __decorateClass([
|
|
294
|
-
customElement("sd-4-0-0-next-
|
|
294
|
+
customElement("sd-4-0-0-next-8-button")
|
|
295
295
|
], SdButton);
|
|
296
296
|
|
|
297
297
|
export {
|
|
@@ -32,7 +32,7 @@ var SdDivider = class extends SolidElement {
|
|
|
32
32
|
*/
|
|
33
33
|
SdDivider.styles = [
|
|
34
34
|
...SolidElement.styles,
|
|
35
|
-
css`:host{margin:var(--sd-spacing-0,0)}:host(sd-4-0-0-next-
|
|
35
|
+
css`:host{margin:var(--sd-spacing-0,0)}:host(sd-4-0-0-next-8-divider[orientation=horizontal]){display:block}:host(sd-4-0-0-next-8-divider[orientation=vertical]){display:inline-block}`
|
|
36
36
|
];
|
|
37
37
|
__decorateClass([
|
|
38
38
|
property({ reflect: true })
|
|
@@ -41,7 +41,7 @@ __decorateClass([
|
|
|
41
41
|
property({ type: Boolean, reflect: true })
|
|
42
42
|
], SdDivider.prototype, "inverted", 2);
|
|
43
43
|
SdDivider = __decorateClass([
|
|
44
|
-
customElement("sd-4-0-0-next-
|
|
44
|
+
customElement("sd-4-0-0-next-8-divider")
|
|
45
45
|
], SdDivider);
|
|
46
46
|
|
|
47
47
|
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-8-input"]
|
|
66
66
|
});
|
|
67
67
|
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
|
68
68
|
this.localize = new LocalizeController(this);
|
|
@@ -79,7 +79,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
79
79
|
this.value = "";
|
|
80
80
|
this.defaultValue = "";
|
|
81
81
|
this.size = "lg";
|
|
82
|
-
this.placeholder =
|
|
82
|
+
this.placeholder = "";
|
|
83
83
|
this.maxOptionsTagLabel = this.localize.term("tagsSelected");
|
|
84
84
|
this.disabled = false;
|
|
85
85
|
this.clearable = false;
|
|
@@ -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-0-next-
|
|
106
|
+
return html`<sd-4-0-0-next-8-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-0-next-
|
|
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-0-next-8-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-0-next-
|
|
232
|
+
if (item.tagName.toLowerCase() === "sd-4-0-0-next-8-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-8-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-8-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.maxOptionsTagLabel}</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.maxOptionsTagLabel}</sd-4-0-0-next-8-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-0-next-
|
|
367
|
+
const option = target.closest("sd-4-0-0-next-8-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-0-next-
|
|
419
|
+
return [...this.filteredWrapper.querySelectorAll("sd-4-0-0-next-8-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-0-next-
|
|
545
|
+
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-4-0-0-next-8-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-0-next-
|
|
575
|
+
/** Receives incoming event detail from sd-4-0-0-next-8-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-0-next-
|
|
587
|
+
if (customElements.get("sd-4-0-0-next-8-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-0-next-
|
|
714
|
-
customElements.whenDefined("sd-4-0-0-next-
|
|
713
|
+
if (!customElements.get("sd-4-0-0-next-8-option")) {
|
|
714
|
+
customElements.whenDefined("sd-4-0-0-next-8-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-0-next-
|
|
726
|
+
option.id = option.id || `sd-4-0-0-next-8-combobox-option-${index}`;
|
|
727
727
|
});
|
|
728
728
|
slottedOptgroups.forEach((optgroup, index) => {
|
|
729
|
-
optgroup.id = optgroup.id || `sd-4-0-0-next-
|
|
729
|
+
optgroup.id = optgroup.id || `sd-4-0-0-next-8-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-0-next-
|
|
777
|
+
)}"></div><sd-4-0-0-next-8-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="
|
|
@@ -791,32 +791,32 @@ var SdCombobox = class extends SolidElement {
|
|
|
791
791
|
"appearance-none outline-none bg-transparent flex-auto min-w-0",
|
|
792
792
|
cursorStyles,
|
|
793
793
|
this.selectedTextLabel && !this.multiple ? "placeholder-black" : "placeholder-neutral-700"
|
|
794
|
-
)}" 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(
|
|
794
|
+
)}" type="text" placeholder="${this.selectedTextLabel && !this.multiple ? this.selectedTextLabel : this.placeholder || this.localize.term("comboboxDefaultPlaceholder")}" .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(
|
|
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-0-next-
|
|
798
|
+
)}" 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-8-icon class="${cx("text-icon-fill-neutral-800", iconSize)}" name="closing-round" library="system"></sd-4-0-0-next-8-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-4-0-0-next-8-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="system" name="risk"></sd-4-0-0-next-8-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-4-0-0-next-8-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="system" name="status-check"></sd-4-0-0-next-8-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-0-next-
|
|
802
|
+
)}"><sd-4-0-0-next-8-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-8-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-0-next-
|
|
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-0-next-8-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-0-next-
|
|
811
|
-
"sd-4-0-0-next-
|
|
812
|
-
"sd-4-0-0-next-
|
|
810
|
+
"sd-4-0-0-next-8-icon": SdIcon,
|
|
811
|
+
"sd-4-0-0-next-8-popup": SdPopup,
|
|
812
|
+
"sd-4-0-0-next-8-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-0-next-
|
|
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-0-next-8-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-4-0-0-next-8-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-8-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-8-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-4-0-0-next-8-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-8-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-0-next-
|
|
819
|
+
query("sd-4-0-0-next-8-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-0-next-
|
|
971
|
+
customElement("sd-4-0-0-next-8-combobox")
|
|
972
972
|
], SdCombobox);
|
|
973
973
|
setDefaultAnimation("combobox.show", {
|
|
974
974
|
keyframes: [
|
|
@@ -25,7 +25,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
25
25
|
this.label = "";
|
|
26
26
|
}
|
|
27
27
|
getAllCheckboxes() {
|
|
28
|
-
return [...this.querySelectorAll("sd-4-0-0-next-
|
|
28
|
+
return [...this.querySelectorAll("sd-4-0-0-next-8-checkbox")];
|
|
29
29
|
}
|
|
30
30
|
async syncCheckboxElements() {
|
|
31
31
|
const checkboxes = this.getAllCheckboxes();
|
|
@@ -38,10 +38,10 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
40
|
syncCheckboxes() {
|
|
41
|
-
if (customElements.get("sd-4-0-0-next-
|
|
41
|
+
if (customElements.get("sd-4-0-0-next-8-checkbox")) {
|
|
42
42
|
this.syncCheckboxElements();
|
|
43
43
|
} else {
|
|
44
|
-
customElements.whenDefined("sd-4-0-0-next-
|
|
44
|
+
customElements.whenDefined("sd-4-0-0-next-8-checkbox").then(() => this.syncCheckboxes());
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
handleSizeChange() {
|
|
@@ -75,7 +75,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
75
75
|
*/
|
|
76
76
|
SdCheckboxGroup.styles = [
|
|
77
77
|
...SolidElement.styles,
|
|
78
|
-
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-0-0-next-
|
|
78
|
+
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-0-0-next-8-checkbox){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-4-0-0-next-8-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-4-0-0-next-8-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-4-0-0-next-8-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-0-0-next-8-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-0-0-next-8-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`
|
|
79
79
|
];
|
|
80
80
|
__decorateClass([
|
|
81
81
|
property({ reflect: true })
|
|
@@ -93,7 +93,7 @@ __decorateClass([
|
|
|
93
93
|
watch("invalid", { waitUntilFirstUpdate: true })
|
|
94
94
|
], SdCheckboxGroup.prototype, "handleInvalid", 1);
|
|
95
95
|
SdCheckboxGroup = __decorateClass([
|
|
96
|
-
customElement("sd-4-0-0-next-
|
|
96
|
+
customElement("sd-4-0-0-next-8-checkbox-group")
|
|
97
97
|
], SdCheckboxGroup);
|
|
98
98
|
|
|
99
99
|
export {
|
|
@@ -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-0-next-
|
|
21
|
+
this.componentId = `sd-4-0-0-next-8-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-0-next-
|
|
51
|
+
customElement("sd-4-0-0-next-8-tab-panel")
|
|
52
52
|
], SdTabPanel);
|
|
53
53
|
|
|
54
54
|
export {
|