@solid-design-system/components 4.0.0-next.7 → 4.0.0-next.9
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.GT3LHFGJ.js +1 -0
- package/cdn/chunks/{chunk.WHEYQDOD.js → chunk.OVVNTNS7.js} +2 -2
- package/cdn/components/badge/badge.d.ts +1 -1
- package/cdn/components/badge/badge.js +1 -1
- package/cdn/components/combobox/combobox.js +1 -1
- package/cdn/components/select/select.js +1 -1
- package/cdn/custom-elements.json +21 -5
- package/cdn/solid-components.bundle.js +5 -5
- package/cdn/solid-components.iife.js +5 -5
- package/cdn/solid-components.js +1 -1
- package/cdn/vscode.html-custom-data.json +1 -5
- package/cdn/web-types.json +10 -8
- 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.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.GT3LHFGJ.js +1 -0
- 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 +2 -2
- package/cdn-versioned/components/badge/badge.js +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 +222 -206
- 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 +81 -85
- package/cdn-versioned/web-types.json +146 -144
- package/dist/chunks/{chunk.PPBZXQVJ.js → chunk.4XDHTC3C.js} +2 -2
- package/dist/chunks/{chunk.B44AE4VW.js → chunk.O3ZFWYJW.js} +2 -2
- package/dist/chunks/{chunk.RZRTIYXA.js → chunk.RIKFGIMH.js} +4 -4
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/combobox/combobox.js +1 -1
- package/dist/components/select/select.js +1 -1
- package/dist/custom-elements.json +21 -5
- package/dist/solid-components.js +3 -3
- package/dist/vscode.html-custom-data.json +1 -5
- package/dist/web-types.json +10 -8
- 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.RZRTIYXA.js → chunk.RIKFGIMH.js} +5 -5
- package/dist-versioned/chunks/chunk.RNSJAVQE.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 +2 -2
- package/dist-versioned/components/badge/badge.js +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 +222 -206
- 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 +81 -85
- package/dist-versioned/web-types.json +146 -144
- package/package.json +1 -1
- package/cdn/chunks/chunk.7M7VCE7R.js +0 -1
- package/cdn-versioned/chunks/chunk.7M7VCE7R.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/components/combobox/utils.ts
|
|
2
2
|
var getAssignedElementsForSlot = (slot) => Array.from(slot.assignedElements({ flatten: true }));
|
|
3
|
-
var getOptionOrNestedOptions = (item) => item.tagName.toLocaleLowerCase() === "sd-4-0-0-next-
|
|
4
|
-
var isOptgroup = (item) => item.tagName.toLocaleLowerCase() === "sd-4-0-0-next-
|
|
3
|
+
var getOptionOrNestedOptions = (item) => item.tagName.toLocaleLowerCase() === "sd-4-0-0-next-9-option" ? item : Array.from(item.querySelectorAll(":scope > sd-4-0-0-next-9-option"));
|
|
4
|
+
var isOptgroup = (item) => item.tagName.toLocaleLowerCase() === "sd-4-0-0-next-9-optgroup";
|
|
5
5
|
var getAllOptions = (items) => items.map(getOptionOrNestedOptions);
|
|
6
6
|
var filterOnlyOptgroups = (items) => items.filter(isOptgroup);
|
|
7
7
|
var normalizeString = (str) => str.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase();
|
|
@@ -323,7 +323,7 @@ __decorateClass([
|
|
|
323
323
|
property({ attribute: "auto-size-padding", type: Number })
|
|
324
324
|
], SdPopup.prototype, "autoSizePadding", 2);
|
|
325
325
|
SdPopup = __decorateClass([
|
|
326
|
-
customElement("sd-4-0-0-next-
|
|
326
|
+
customElement("sd-4-0-0-next-9-popup")
|
|
327
327
|
], SdPopup);
|
|
328
328
|
|
|
329
329
|
export {
|
|
@@ -203,7 +203,7 @@ var SdTextarea = class extends SolidElement {
|
|
|
203
203
|
"flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none",
|
|
204
204
|
this.disabled && "cursor-not-allowed",
|
|
205
205
|
textSize
|
|
206
|
-
)}" title="${this.title}" name="${ifDefined(this.name)}" .value="${live(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" rows="${ifDefined(this.rows)}" autocapitalize="${ifDefined(this.autocapitalize)}" autocorrect="${ifDefined(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${ifDefined(this.spellcheck)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle ? html`<sd-4-0-0-next-
|
|
206
|
+
)}" title="${this.title}" name="${ifDefined(this.name)}" .value="${live(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" rows="${ifDefined(this.rows)}" autocapitalize="${ifDefined(this.autocapitalize)}" autocorrect="${ifDefined(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${ifDefined(this.spellcheck)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle ? html`<sd-4-0-0-next-9-icon class="${cx("text-error absolute right-4 bg-white group-hover:bg-neutral-200", iconSizeMarginLeft)}" library="system" name="risk" part="invalid-icon"></sd-4-0-0-next-9-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-4-0-0-next-9-icon class="${cx("text-success absolute right-4 bg-white group-hover:bg-neutral-200", iconSizeMarginLeft)}" library="system" name="status-check" part="valid-icon"></sd-4-0-0-next-9-icon>` : ""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700", hasHelpText ? "block" : "hidden")}" aria-hidden="${hasHelpText ? "false" : "true"}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`;
|
|
207
207
|
}
|
|
208
208
|
};
|
|
209
209
|
/**
|
|
@@ -314,7 +314,7 @@ __decorateClass([
|
|
|
314
314
|
watch("value", { waitUntilFirstUpdate: true })
|
|
315
315
|
], SdTextarea.prototype, "handleValueChange", 1);
|
|
316
316
|
SdTextarea = __decorateClass([
|
|
317
|
-
customElement("sd-4-0-0-next-
|
|
317
|
+
customElement("sd-4-0-0-next-9-textarea")
|
|
318
318
|
], SdTextarea);
|
|
319
319
|
|
|
320
320
|
export {
|
|
@@ -175,15 +175,15 @@ var SdTooltip = class extends SolidElement {
|
|
|
175
175
|
render() {
|
|
176
176
|
const isStart = this.placement.endsWith("-start");
|
|
177
177
|
const isEnd = this.placement.endsWith("-end");
|
|
178
|
-
return html`<sd-4-0-0-next-
|
|
178
|
+
return html`<sd-4-0-0-next-9-popup part="base" exportparts="
|
|
179
179
|
popup:base__popup,
|
|
180
180
|
arrow:base__arrow
|
|
181
|
-
" class="${cx(this.open && "tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{ start: 2, end: -2, default: 0 }[isStart ? "start" : isEnd ? "end" : "default"] * (this.size === "sm" ? -1 : 1)}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift arrow auto-size="vertical" arrow-padding="0"><slot slot="anchor" aria-describedby="tooltip" class="${cx(this.size === "lg" ? "text-xl" : "text-base")}"><button class="flex sd-interactive rounded-full"><sd-4-0-0-next-
|
|
181
|
+
" class="${cx(this.open && "tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{ start: 2, end: -2, default: 0 }[isStart ? "start" : isEnd ? "end" : "default"] * (this.size === "sm" ? -1 : 1)}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift arrow auto-size="vertical" arrow-padding="0"><slot slot="anchor" aria-describedby="tooltip" class="${cx(this.size === "lg" ? "text-xl" : "text-base")}"><button class="flex sd-interactive rounded-full"><sd-4-0-0-next-9-icon library="system" name="info-circle" class="${cx(this.disabled && "sd-interactive--disabled")}"></sd-4-0-0-next-9-icon></button></slot><slot name="content" part="body" id="tooltip" class="bg-primary text-white py-3 px-4 block rounded-none text-sm text-left" role="tooltip" aria-label="Tooltip" aria-live="${this.open ? "polite" : "off"}">${this.content}</slot></sd-4-0-0-next-9-popup>`;
|
|
182
182
|
}
|
|
183
183
|
};
|
|
184
184
|
SdTooltip.styles = [
|
|
185
185
|
...SolidElement.styles,
|
|
186
|
-
css`:host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-4-0-0-next-
|
|
186
|
+
css`:host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-4-0-0-next-9-popup{--arrow-color:rgb(var(--sd-color-primary,0 53 142)/1);--arrow-size:10px}sd-4-0-0-next-9-popup::part(popup){pointer-events:none;z-index:10;--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-4-0-0-next-9-popup::part(arrow){--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-4-0-0-next-9-popup[placement^=top]::part(popup){transform-origin:bottom}sd-4-0-0-next-9-popup[placement^=bottom]::part(popup){transform-origin:top}#tooltip{max-width:var(--max-width)}::slotted([slot=content]){max-height:var(--auto-size-available-height)!important;max-width:var(--auto-size-available-width)!important;overflow:auto}`
|
|
187
187
|
];
|
|
188
188
|
__decorateClass([
|
|
189
189
|
query("slot:not([name])")
|
|
@@ -192,7 +192,7 @@ __decorateClass([
|
|
|
192
192
|
query("#tooltip")
|
|
193
193
|
], SdTooltip.prototype, "body", 2);
|
|
194
194
|
__decorateClass([
|
|
195
|
-
query("sd-4-0-0-next-
|
|
195
|
+
query("sd-4-0-0-next-9-popup")
|
|
196
196
|
], SdTooltip.prototype, "popup", 2);
|
|
197
197
|
__decorateClass([
|
|
198
198
|
property()
|
|
@@ -225,7 +225,7 @@ __decorateClass([
|
|
|
225
225
|
watch("disabled")
|
|
226
226
|
], SdTooltip.prototype, "handleDisabledChange", 1);
|
|
227
227
|
SdTooltip = __decorateClass([
|
|
228
|
-
customElement("sd-4-0-0-next-
|
|
228
|
+
customElement("sd-4-0-0-next-9-tooltip")
|
|
229
229
|
], SdTooltip);
|
|
230
230
|
setDefaultAnimation("tooltip.show", {
|
|
231
231
|
keyframes: [
|
|
@@ -136,7 +136,7 @@ var SdNotification = class extends SolidElement {
|
|
|
136
136
|
() => {
|
|
137
137
|
toastStack.removeChild(this);
|
|
138
138
|
resolve();
|
|
139
|
-
if (toastStack.querySelector("sd-4-0-0-next-
|
|
139
|
+
if (toastStack.querySelector("sd-4-0-0-next-9-notification") === null) {
|
|
140
140
|
toastStack.remove();
|
|
141
141
|
}
|
|
142
142
|
},
|
|
@@ -153,15 +153,15 @@ var SdNotification = class extends SolidElement {
|
|
|
153
153
|
warning: "bg-warning",
|
|
154
154
|
error: "bg-error"
|
|
155
155
|
}[this.variant]
|
|
156
|
-
)}"><sd-4-0-0-next-
|
|
156
|
+
)}"><sd-4-0-0-next-9-icon name="${{
|
|
157
157
|
info: "info-circle",
|
|
158
158
|
success: "confirm-circle",
|
|
159
159
|
warning: "exclamation-circle",
|
|
160
160
|
error: "warning"
|
|
161
|
-
}[this.variant] || ""}" library="system" class="h-6 w-6 text-white"></sd-4-0-0-next-
|
|
161
|
+
}[this.variant] || ""}" library="system" class="h-6 w-6 text-white"></sd-4-0-0-next-9-icon></slot><div part="content" class="${cx(
|
|
162
162
|
"h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white",
|
|
163
163
|
"border-solid border-[1px] border-l-0 border-neutral-400"
|
|
164
|
-
)}"><slot part="message" class="block w-full pl-3 py-2" aria-live="polite"></slot>${this.closable ? html`<sd-4-0-0-next-
|
|
164
|
+
)}"><slot part="message" class="block w-full pl-3 py-2" aria-live="polite"></slot>${this.closable ? html`<sd-4-0-0-next-9-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-4-0-0-next-9-icon label="${this.localize.term("close")}" name="close" library="system" color="currentColor"></sd-4-0-0-next-9-icon></sd-4-0-0-next-9-button>` : ""}</div>${this.durationIndicator ? html`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${cx(`absolute w-0 h-[2px] bottom-0 bg-primary z-10 animate-grow`)}"></div><div part="duration-indicator__total" class="w-full h-[2px] bottom-0 absolute border border-neutral-400"></div>` : ""}</div>`;
|
|
165
165
|
}
|
|
166
166
|
};
|
|
167
167
|
/**
|
|
@@ -199,7 +199,7 @@ __decorateClass([
|
|
|
199
199
|
watch("duration")
|
|
200
200
|
], SdNotification.prototype, "handleDurationChange", 1);
|
|
201
201
|
SdNotification = __decorateClass([
|
|
202
|
-
customElement("sd-4-0-0-next-
|
|
202
|
+
customElement("sd-4-0-0-next-9-notification")
|
|
203
203
|
], SdNotification);
|
|
204
204
|
setDefaultAnimation("notification.show", {
|
|
205
205
|
keyframes: [
|
|
@@ -17,19 +17,19 @@ var SdButtonGroup = class extends SolidElement {
|
|
|
17
17
|
}
|
|
18
18
|
handleFocus(event) {
|
|
19
19
|
const button = findButton(event.target);
|
|
20
|
-
button == null ? void 0 : button.classList.add("sd-4-0-0-next-
|
|
20
|
+
button == null ? void 0 : button.classList.add("sd-4-0-0-next-9-button-group__button--focus");
|
|
21
21
|
}
|
|
22
22
|
handleBlur(event) {
|
|
23
23
|
const button = findButton(event.target);
|
|
24
|
-
button == null ? void 0 : button.classList.remove("sd-4-0-0-next-
|
|
24
|
+
button == null ? void 0 : button.classList.remove("sd-4-0-0-next-9-button-group__button--focus");
|
|
25
25
|
}
|
|
26
26
|
handleMouseOver(event) {
|
|
27
27
|
const button = findButton(event.target);
|
|
28
|
-
button == null ? void 0 : button.classList.add("sd-4-0-0-next-
|
|
28
|
+
button == null ? void 0 : button.classList.add("sd-4-0-0-next-9-button-group__button--hover");
|
|
29
29
|
}
|
|
30
30
|
handleMouseOut(event) {
|
|
31
31
|
const button = findButton(event.target);
|
|
32
|
-
button == null ? void 0 : button.classList.remove("sd-4-0-0-next-
|
|
32
|
+
button == null ? void 0 : button.classList.remove("sd-4-0-0-next-9-button-group__button--hover");
|
|
33
33
|
}
|
|
34
34
|
handleSlotChange() {
|
|
35
35
|
const slottedElements = [...this.defaultSlot.assignedElements({ flatten: true })];
|
|
@@ -37,11 +37,11 @@ var SdButtonGroup = class extends SolidElement {
|
|
|
37
37
|
const index = slottedElements.indexOf(el);
|
|
38
38
|
const button = findButton(el);
|
|
39
39
|
if (button !== null) {
|
|
40
|
-
button.classList.add("sd-4-0-0-next-
|
|
41
|
-
button.classList.toggle("sd-4-0-0-next-
|
|
42
|
-
button.classList.toggle("sd-4-0-0-next-
|
|
43
|
-
button.classList.toggle("sd-4-0-0-next-
|
|
44
|
-
button.classList.toggle("sd-4-0-0-next-
|
|
40
|
+
button.classList.add("sd-4-0-0-next-9-button-group__button");
|
|
41
|
+
button.classList.toggle("sd-4-0-0-next-9-button-group__button--first", index === 0);
|
|
42
|
+
button.classList.toggle("sd-4-0-0-next-9-button-group__button--inner", index > 0 && index < slottedElements.length - 1);
|
|
43
|
+
button.classList.toggle("sd-4-0-0-next-9-button-group__button--last", index === slottedElements.length - 1);
|
|
44
|
+
button.classList.toggle("sd-4-0-0-next-9-button-group__button--radio", button.tagName.toLowerCase() === "sd-4-0-0-next-9-radio-button");
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
}
|
|
@@ -63,11 +63,11 @@ __decorateClass([
|
|
|
63
63
|
property()
|
|
64
64
|
], SdButtonGroup.prototype, "label", 2);
|
|
65
65
|
SdButtonGroup = __decorateClass([
|
|
66
|
-
customElement("sd-4-0-0-next-
|
|
66
|
+
customElement("sd-4-0-0-next-9-button-group")
|
|
67
67
|
], SdButtonGroup);
|
|
68
68
|
function findButton(el) {
|
|
69
69
|
var _a;
|
|
70
|
-
const selector = "sd-4-0-0-next-
|
|
70
|
+
const selector = "sd-4-0-0-next-9-button, sd-4-0-0-next-9-radio-button";
|
|
71
71
|
return (_a = el.closest(selector)) != null ? _a : el.querySelector(selector);
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import SolidElement from '../../internal/solid-element';
|
|
2
2
|
export default class SdBadge extends SolidElement {
|
|
3
3
|
size: 'lg' | 'md' | 'sm';
|
|
4
|
-
variant: '
|
|
4
|
+
variant: 'blue' | 'green' | 'red';
|
|
5
5
|
inverted: boolean;
|
|
6
6
|
render(): import("lit").TemplateResult<1>;
|
|
7
7
|
static styles: import("lit").CSSResult[];
|
|
8
8
|
}
|
|
9
9
|
declare global {
|
|
10
10
|
interface HTMLElementTagNameMap {
|
|
11
|
-
'sd-4-0-0-next-
|
|
11
|
+
'sd-4-0-0-next-9-badge': SdBadge;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -9,9 +9,9 @@ import type SdOptgroup from '../optgroup/optgroup.js';
|
|
|
9
9
|
import type SdOption from '../option/option';
|
|
10
10
|
export default class SdCombobox extends SolidElement implements SolidFormControl {
|
|
11
11
|
static dependencies: {
|
|
12
|
-
'sd-4-0-0-next-
|
|
13
|
-
'sd-4-0-0-next-
|
|
14
|
-
'sd-4-0-0-next-
|
|
12
|
+
'sd-4-0-0-next-9-icon': typeof SdIcon;
|
|
13
|
+
'sd-4-0-0-next-9-popup': typeof SdPopup;
|
|
14
|
+
'sd-4-0-0-next-9-tag': typeof SdTag;
|
|
15
15
|
};
|
|
16
16
|
private readonly formControlController;
|
|
17
17
|
private readonly hasSlotController;
|
|
@@ -125,6 +125,6 @@ export default class SdCombobox extends SolidElement implements SolidFormControl
|
|
|
125
125
|
}
|
|
126
126
|
declare global {
|
|
127
127
|
interface HTMLElementTagNameMap {
|
|
128
|
-
'sd-4-0-0-next-
|
|
128
|
+
'sd-4-0-0-next-9-combobox': SdCombobox;
|
|
129
129
|
}
|
|
130
130
|
}
|
|
@@ -2,7 +2,7 @@ import SdDivider from '../divider/divider';
|
|
|
2
2
|
import SolidElement from '../../internal/solid-element';
|
|
3
3
|
export default class SdOptgroup extends SolidElement {
|
|
4
4
|
static dependencies: {
|
|
5
|
-
'sd-4-0-0-next-
|
|
5
|
+
'sd-4-0-0-next-9-divider': typeof SdDivider;
|
|
6
6
|
};
|
|
7
7
|
defaultSlot: HTMLSlotElement;
|
|
8
8
|
private handleDisableOptions;
|
|
@@ -14,6 +14,6 @@ export default class SdOptgroup extends SolidElement {
|
|
|
14
14
|
}
|
|
15
15
|
declare global {
|
|
16
16
|
interface HTMLElementTagNameMap {
|
|
17
|
-
'sd-4-0-0-next-
|
|
17
|
+
'sd-4-0-0-next-9-optgroup': SdOptgroup;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -4,7 +4,7 @@ import SolidElement from '../../internal/solid-element';
|
|
|
4
4
|
import type { SolidFormControl } from '../../internal/solid-element';
|
|
5
5
|
export default class SdRadioGroup extends SolidElement implements SolidFormControl {
|
|
6
6
|
static dependencies: {
|
|
7
|
-
'sd-4-0-0-next-
|
|
7
|
+
'sd-4-0-0-next-9-button-group': typeof SdButtonGroup;
|
|
8
8
|
};
|
|
9
9
|
protected readonly formControlController: FormControlController;
|
|
10
10
|
private readonly hasSlotController;
|
|
@@ -48,6 +48,6 @@ export default class SdRadioGroup extends SolidElement implements SolidFormContr
|
|
|
48
48
|
}
|
|
49
49
|
declare global {
|
|
50
50
|
interface HTMLElementTagNameMap {
|
|
51
|
-
'sd-4-0-0-next-
|
|
51
|
+
'sd-4-0-0-next-9-radio-group': SdRadioGroup;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -8,9 +8,9 @@ import type { TemplateResult } from 'lit';
|
|
|
8
8
|
import type SdOption from '../option/option';
|
|
9
9
|
export default class SdSelect extends SolidElement implements SolidFormControl {
|
|
10
10
|
static dependencies: {
|
|
11
|
-
'sd-4-0-0-next-
|
|
12
|
-
'sd-4-0-0-next-
|
|
13
|
-
'sd-4-0-0-next-
|
|
11
|
+
'sd-4-0-0-next-9-icon': typeof SdIcon;
|
|
12
|
+
'sd-4-0-0-next-9-popup': typeof SdPopup;
|
|
13
|
+
'sd-4-0-0-next-9-tag': typeof SdTag;
|
|
14
14
|
};
|
|
15
15
|
private readonly formControlController;
|
|
16
16
|
private readonly hasSlotController;
|
|
@@ -104,6 +104,6 @@ export default class SdSelect extends SolidElement implements SolidFormControl {
|
|
|
104
104
|
}
|
|
105
105
|
declare global {
|
|
106
106
|
interface HTMLElementTagNameMap {
|
|
107
|
-
'sd-4-0-0-next-
|
|
107
|
+
'sd-4-0-0-next-9-select': SdSelect;
|
|
108
108
|
}
|
|
109
109
|
}
|