@solid-design-system/components 6.0.0-next.13 → 6.0.0-next.14
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.SOZMBJQS.js → chunk.PNNFETDE.js} +2 -2
- package/cdn/components/step/step.js +1 -1
- package/cdn/custom-elements.json +1 -1
- package/cdn/solid-components.bundle.js +1 -1
- package/cdn/solid-components.iife.js +1 -1
- package/cdn/solid-components.js +1 -1
- package/cdn/web-types.json +1 -1
- package/cdn-versioned/chunks/chunk.2YVFFSZ2.js +2 -2
- package/cdn-versioned/chunks/chunk.44VVOUNS.js +2 -2
- package/cdn-versioned/chunks/chunk.47MRK77Q.js +2 -2
- package/cdn-versioned/chunks/chunk.4B2UGI4Q.js +2 -2
- package/cdn-versioned/chunks/chunk.4BA5ZOGJ.js +2 -2
- package/cdn-versioned/chunks/chunk.4XOGRPML.js +2 -2
- package/cdn-versioned/chunks/chunk.4YIPRD2R.js +2 -2
- package/cdn-versioned/chunks/chunk.56CEBIDO.js +2 -2
- package/cdn-versioned/chunks/chunk.6K6UAUJB.js +2 -2
- package/cdn-versioned/chunks/chunk.6NT553UW.js +3 -3
- package/cdn-versioned/chunks/chunk.6YG52QHB.js +2 -2
- package/cdn-versioned/chunks/chunk.7CPADVOB.js +8 -8
- package/cdn-versioned/chunks/chunk.7FOCBEJX.js +2 -2
- package/cdn-versioned/chunks/chunk.AJWY5KT4.js +1 -1
- package/cdn-versioned/chunks/chunk.AQPYT3YS.js +2 -2
- package/cdn-versioned/chunks/chunk.BM3H7EWP.js +1 -1
- package/cdn-versioned/chunks/chunk.BNUZ66HV.js +2 -2
- package/cdn-versioned/chunks/chunk.CCBHAIEN.js +2 -2
- package/cdn-versioned/chunks/chunk.CDP46OS4.js +1 -1
- package/cdn-versioned/chunks/chunk.CMUYA4JA.js +2 -2
- package/cdn-versioned/chunks/chunk.CUX2GVLG.js +2 -2
- package/cdn-versioned/chunks/chunk.E2IHOEZ2.js +2 -2
- package/cdn-versioned/chunks/chunk.EPZHTJOD.js +2 -2
- package/cdn-versioned/chunks/chunk.FDIETORH.js +1 -1
- package/cdn-versioned/chunks/chunk.FGIDTNRY.js +2 -2
- package/cdn-versioned/chunks/chunk.FUFYA576.js +2 -2
- package/cdn-versioned/chunks/chunk.FZDWRR4M.js +2 -2
- package/cdn-versioned/chunks/chunk.H5OTIIDM.js +1 -1
- package/cdn-versioned/chunks/chunk.HW2XROMU.js +1 -1
- package/cdn-versioned/chunks/chunk.HXH2R7SD.js +2 -2
- package/cdn-versioned/chunks/chunk.JLPSMSYV.js +2 -2
- package/cdn-versioned/chunks/chunk.JS2HQ2N4.js +1 -1
- package/cdn-versioned/chunks/chunk.JV3CZSIV.js +2 -2
- package/cdn-versioned/chunks/chunk.K4PQBCFA.js +2 -2
- package/cdn-versioned/chunks/chunk.K5JMQ4UD.js +2 -2
- package/cdn-versioned/chunks/chunk.K647VAIN.js +2 -2
- package/cdn-versioned/chunks/chunk.KMYA4EDE.js +1 -1
- package/cdn-versioned/chunks/chunk.KOCOMSSL.js +2 -2
- package/cdn-versioned/chunks/chunk.N2D2FFWH.js +2 -2
- package/cdn-versioned/chunks/{chunk.SOZMBJQS.js → chunk.PNNFETDE.js} +2 -2
- package/cdn-versioned/chunks/chunk.PQLUBSLH.js +2 -2
- package/cdn-versioned/chunks/chunk.RY2KL7E3.js +1 -1
- package/cdn-versioned/chunks/chunk.SPW5M7X6.js +2 -2
- package/cdn-versioned/chunks/chunk.SQ7Q6ATD.js +2 -2
- package/cdn-versioned/chunks/chunk.T527FME4.js +2 -2
- package/cdn-versioned/chunks/chunk.TNXNTP3E.js +1 -1
- package/cdn-versioned/chunks/chunk.TQKGKW36.js +2 -2
- package/cdn-versioned/chunks/chunk.UHDNXYVU.js +1 -1
- package/cdn-versioned/chunks/chunk.V2RD6VHQ.js +3 -3
- package/cdn-versioned/chunks/chunk.V6OZYBBZ.js +2 -2
- package/cdn-versioned/chunks/chunk.VRBKTE6L.js +2 -2
- package/cdn-versioned/chunks/chunk.VVX7QSXX.js +2 -2
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WDWBQF3Q.js +1 -1
- package/cdn-versioned/chunks/chunk.XM7DA5LT.js +5 -5
- package/cdn-versioned/chunks/chunk.XUSHLNK2.js +2 -2
- package/cdn-versioned/chunks/chunk.XVIS3URC.js +5 -5
- package/cdn-versioned/chunks/chunk.YFRDMK6W.js +2 -2
- package/cdn-versioned/chunks/chunk.YH3VRHVM.js +2 -2
- package/cdn-versioned/chunks/chunk.YYVAO5XU.js +2 -2
- package/cdn-versioned/chunks/chunk.ZRYG64PN.js +2 -2
- package/cdn-versioned/chunks/chunk.ZSTABGTZ.js +2 -2
- package/cdn-versioned/chunks/chunk.ZT3DQGPM.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/breadcrumb/breadcrumb.d.ts +1 -1
- package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.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 +1 -1
- package/cdn-versioned/components/datepicker/datepicker.d.ts +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/loader/loader.d.ts +1 -1
- package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/cdn-versioned/components/menu/menu.d.ts +1 -1
- package/cdn-versioned/components/menu-item/menu-item.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 +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 +1 -1
- package/cdn-versioned/components/range/range.d.ts +1 -1
- package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +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/step.js +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/theme-listener/theme-listener.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 +248 -248
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +78 -78
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +78 -78
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +94 -94
- package/cdn-versioned/web-types.json +163 -163
- package/dist/chunks/{chunk.264U7CMA.js → chunk.TQFVQIUF.js} +1 -1
- package/dist/components/step/step.js +1 -1
- package/dist/custom-elements.json +1 -1
- package/dist/solid-components.js +1 -1
- package/dist/web-types.json +1 -1
- package/dist-versioned/chunks/chunk.2NCOG3MU.js +2 -2
- package/dist-versioned/chunks/chunk.342A5SCB.js +1 -1
- package/dist-versioned/chunks/chunk.36MFTGER.js +3 -3
- package/dist-versioned/chunks/chunk.3FNTXOOI.js +4 -4
- package/dist-versioned/chunks/chunk.52VGL2RV.js +2 -2
- package/dist-versioned/chunks/chunk.6AAIPQYI.js +3 -3
- package/dist-versioned/chunks/chunk.6E6VJJCZ.js +4 -4
- package/dist-versioned/chunks/chunk.723WXRZK.js +12 -12
- package/dist-versioned/chunks/chunk.7PCENRTO.js +12 -12
- package/dist-versioned/chunks/chunk.A7UPZVBX.js +4 -4
- package/dist-versioned/chunks/chunk.BPFUHSE6.js +4 -4
- package/dist-versioned/chunks/chunk.CCVS6SCT.js +4 -4
- package/dist-versioned/chunks/chunk.CREFZXWR.js +5 -5
- package/dist-versioned/chunks/chunk.CSMEO2UQ.js +8 -8
- package/dist-versioned/chunks/chunk.CSQ6UNT7.js +2 -2
- package/dist-versioned/chunks/chunk.DXTBP2P6.js +2 -2
- package/dist-versioned/chunks/chunk.DZS26LXZ.js +3 -3
- package/dist-versioned/chunks/chunk.ECSSDS7T.js +14 -14
- package/dist-versioned/chunks/chunk.EERHCK7O.js +6 -6
- package/dist-versioned/chunks/chunk.EMU4ZNFB.js +5 -5
- package/dist-versioned/chunks/chunk.GDO3P6PZ.js +1 -1
- package/dist-versioned/chunks/chunk.GP6R4ZF6.js +1 -1
- package/dist-versioned/chunks/chunk.HEU4LDJX.js +3 -3
- package/dist-versioned/chunks/chunk.HHTYBBNM.js +2 -2
- package/dist-versioned/chunks/chunk.HSMUS45Y.js +24 -24
- package/dist-versioned/chunks/chunk.HYD6CWKB.js +3 -3
- package/dist-versioned/chunks/chunk.ISASQGOE.js +11 -11
- package/dist-versioned/chunks/chunk.IUD4JFEG.js +24 -24
- package/dist-versioned/chunks/chunk.IXLKTULT.js +3 -3
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/chunk.KR3X7M5B.js +5 -5
- package/dist-versioned/chunks/chunk.KS4PRECL.js +4 -4
- package/dist-versioned/chunks/chunk.LGBFWOCJ.js +4 -4
- package/dist-versioned/chunks/chunk.LJIVAP6V.js +1 -1
- package/dist-versioned/chunks/chunk.LOVLLOYE.js +7 -7
- package/dist-versioned/chunks/chunk.MASJX3XP.js +1 -1
- package/dist-versioned/chunks/chunk.OC76JBYD.js +2 -2
- package/dist-versioned/chunks/chunk.OILA72IM.js +1 -1
- package/dist-versioned/chunks/chunk.Q57H4HOI.js +7 -7
- package/dist-versioned/chunks/chunk.QH2KLXTB.js +3 -3
- package/dist-versioned/chunks/chunk.QQX5RCHL.js +8 -8
- package/dist-versioned/chunks/chunk.QYZE4ARE.js +3 -3
- package/dist-versioned/chunks/chunk.SF447PE7.js +2 -2
- package/dist-versioned/chunks/chunk.SGCOHQSI.js +26 -26
- package/dist-versioned/chunks/chunk.SWXSBRRQ.js +2 -2
- package/dist-versioned/chunks/chunk.SYXN6E4T.js +1 -1
- package/dist-versioned/chunks/chunk.SZ7IRQY4.js +3 -3
- package/dist-versioned/chunks/{chunk.264U7CMA.js → chunk.TQFVQIUF.js} +4 -4
- package/dist-versioned/chunks/chunk.U2RRRJY3.js +4 -4
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.VBJNVPBU.js +1 -1
- package/dist-versioned/chunks/chunk.VLIPMAVX.js +6 -6
- package/dist-versioned/chunks/chunk.WLZ64OXQ.js +6 -6
- package/dist-versioned/chunks/chunk.WN5EV4N3.js +4 -4
- package/dist-versioned/chunks/chunk.WTA5BTJL.js +5 -5
- package/dist-versioned/chunks/chunk.XCQC3F3H.js +3 -3
- package/dist-versioned/chunks/chunk.XTHUPXCS.js +8 -8
- package/dist-versioned/chunks/chunk.XTNHNEFI.js +2 -2
- package/dist-versioned/chunks/chunk.YHJOW7S3.js +2 -2
- package/dist-versioned/chunks/chunk.YIIMAPVO.js +2 -2
- package/dist-versioned/chunks/chunk.YSE5ZECP.js +1 -1
- package/dist-versioned/chunks/chunk.Z32LVC6A.js +5 -5
- package/dist-versioned/chunks/chunk.ZHEFFMES.js +3 -3
- 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/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist-versioned/components/breadcrumb-item/breadcrumb-item.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 +1 -1
- package/dist-versioned/components/datepicker/datepicker.d.ts +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/loader/loader.d.ts +1 -1
- package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/dist-versioned/components/menu/menu.d.ts +1 -1
- package/dist-versioned/components/menu-item/menu-item.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 +1 -1
- 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 +1 -1
- package/dist-versioned/components/range/range.d.ts +1 -1
- package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +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/step.js +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/theme-listener/theme-listener.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 +248 -248
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +1 -1
- package/dist-versioned/vscode.html-custom-data.json +94 -94
- package/dist-versioned/web-types.json +163 -163
- package/package.json +1 -1
|
@@ -54,7 +54,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
54
54
|
constructor() {
|
|
55
55
|
super(...arguments);
|
|
56
56
|
this.formControlController = new FormControlController(this, {
|
|
57
|
-
assumeInteractionOn: ["sd-blur", "sd-6-0-0-next-
|
|
57
|
+
assumeInteractionOn: ["sd-blur", "sd-6-0-0-next-14-input"]
|
|
58
58
|
});
|
|
59
59
|
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
|
60
60
|
this.localize = new LocalizeController(this);
|
|
@@ -97,11 +97,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
97
97
|
return normalizedOption.includes(normalizedQuery) || normalizedOptionLabel.includes(normalizedQuery);
|
|
98
98
|
};
|
|
99
99
|
this.getTag = (option) => {
|
|
100
|
-
return html`<sd-6-0-0-next-
|
|
100
|
+
return html`<sd-6-0-0-next-14-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
|
101
101
|
base:tag__base,
|
|
102
102
|
content:tag__content,
|
|
103
103
|
removable-indicator:tag__removable-indicator,
|
|
104
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-6-0-0-next-
|
|
104
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-6-0-0-next-14-tag>`;
|
|
105
105
|
};
|
|
106
106
|
this.handleDocumentFocusIn = (event) => {
|
|
107
107
|
const path = event.composedPath();
|
|
@@ -236,9 +236,9 @@ var SdCombobox = class extends SolidElement {
|
|
|
236
236
|
return html`${typeof optionHtml === "string" ? unsafeHTML(optionHtml) : optionHtml}`;
|
|
237
237
|
};
|
|
238
238
|
return this.filteredOptions.map((item) => {
|
|
239
|
-
if (item.tagName.toLowerCase() === "sd-6-0-0-next-
|
|
239
|
+
if (item.tagName.toLowerCase() === "sd-6-0-0-next-14-optgroup") {
|
|
240
240
|
Array.from(item.children).forEach((option) => {
|
|
241
|
-
if (option.tagName.toLowerCase() === "sd-6-0-0-next-
|
|
241
|
+
if (option.tagName.toLowerCase() === "sd-6-0-0-next-14-option") {
|
|
242
242
|
renderOption(option);
|
|
243
243
|
}
|
|
244
244
|
});
|
|
@@ -258,11 +258,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
258
258
|
});
|
|
259
259
|
} else {
|
|
260
260
|
return [
|
|
261
|
-
html`<sd-6-0-0-next-
|
|
261
|
+
html`<sd-6-0-0-next-14-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
|
262
262
|
base:tag__base,
|
|
263
263
|
content:tag__content,
|
|
264
264
|
removable-indicator:tag__removable-indicator,
|
|
265
|
-
" 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-6-0-0-next-
|
|
265
|
+
" 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-6-0-0-next-14-tag>`
|
|
266
266
|
];
|
|
267
267
|
}
|
|
268
268
|
}
|
|
@@ -381,7 +381,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
381
381
|
}
|
|
382
382
|
handleOptionClick(event) {
|
|
383
383
|
const target = event.target;
|
|
384
|
-
const option = target.closest("sd-6-0-0-next-
|
|
384
|
+
const option = target.closest("sd-6-0-0-next-14-option");
|
|
385
385
|
const oldValue = this.value;
|
|
386
386
|
if (option && !option.disabled) {
|
|
387
387
|
if (this.multiple) {
|
|
@@ -433,7 +433,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
433
433
|
scrollIntoView(this.getCurrentOption(), this.listbox, "vertical", "auto");
|
|
434
434
|
}
|
|
435
435
|
getAllFilteredOptions() {
|
|
436
|
-
return [...this.filteredWrapper.querySelectorAll("sd-6-0-0-next-
|
|
436
|
+
return [...this.filteredWrapper.querySelectorAll("sd-6-0-0-next-14-option")];
|
|
437
437
|
}
|
|
438
438
|
getCurrentOption() {
|
|
439
439
|
return this.getAllFilteredOptions().find((option) => option.current);
|
|
@@ -563,7 +563,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
563
563
|
clonedOption.selected = option.selected;
|
|
564
564
|
clonedOption.checkbox = option.checkbox;
|
|
565
565
|
clonedOption.size = option.size;
|
|
566
|
-
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-6-0-0-next-
|
|
566
|
+
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-6-0-0-next-14-optgroup";
|
|
567
567
|
if (!hasOptgroup) {
|
|
568
568
|
return clonedOption;
|
|
569
569
|
}
|
|
@@ -587,7 +587,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
587
587
|
this.formControlController.emitInvalidEvent(event);
|
|
588
588
|
this.invalidMessage.textContent = event.target.validationMessage;
|
|
589
589
|
}
|
|
590
|
-
/** Receives incoming event detail from sd-6-0-0-next-
|
|
590
|
+
/** Receives incoming event detail from sd-6-0-0-next-14-popup and updates local state for conditional styling. */
|
|
591
591
|
handleCurrentPlacement(e) {
|
|
592
592
|
const incomingPlacement = e.detail;
|
|
593
593
|
if (incomingPlacement) {
|
|
@@ -599,7 +599,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
599
599
|
}
|
|
600
600
|
handleUseTagsChange() {
|
|
601
601
|
const allOptions = this.getAllFilteredOptions();
|
|
602
|
-
if (customElements.get("sd-6-0-0-next-
|
|
602
|
+
if (customElements.get("sd-6-0-0-next-14-option")) {
|
|
603
603
|
allOptions.forEach((option) => {
|
|
604
604
|
option.checkbox = this.multiple;
|
|
605
605
|
});
|
|
@@ -725,8 +725,8 @@ var SdCombobox = class extends SolidElement {
|
|
|
725
725
|
return filterOnlyOptgroups(getAssignedElementsForSlot(this.defaultSlot));
|
|
726
726
|
}
|
|
727
727
|
async handleDefaultSlotChange() {
|
|
728
|
-
if (!customElements.get("sd-6-0-0-next-
|
|
729
|
-
customElements.whenDefined("sd-6-0-0-next-
|
|
728
|
+
if (!customElements.get("sd-6-0-0-next-14-option")) {
|
|
729
|
+
customElements.whenDefined("sd-6-0-0-next-14-option").then(() => this.handleDefaultSlotChange());
|
|
730
730
|
return;
|
|
731
731
|
}
|
|
732
732
|
const slottedOptions = this.getSlottedOptions();
|
|
@@ -738,10 +738,10 @@ var SdCombobox = class extends SolidElement {
|
|
|
738
738
|
if (this.multiple) {
|
|
739
739
|
option.checkbox = true;
|
|
740
740
|
}
|
|
741
|
-
option.id = option.id || `sd-6-0-0-next-
|
|
741
|
+
option.id = option.id || `sd-6-0-0-next-14-combobox-option-${index}`;
|
|
742
742
|
});
|
|
743
743
|
slottedOptgroups.forEach((optgroup, index) => {
|
|
744
|
-
optgroup.id = optgroup.id || `sd-6-0-0-next-
|
|
744
|
+
optgroup.id = optgroup.id || `sd-6-0-0-next-14-combobox-optgroup-${index}`;
|
|
745
745
|
});
|
|
746
746
|
await this.syncSelectedOptionsAndValue();
|
|
747
747
|
if (this.multiple) {
|
|
@@ -789,7 +789,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
789
789
|
default: "form-control-color-border"
|
|
790
790
|
}[selectState],
|
|
791
791
|
this.open && (this.currentPlacement === "bottom" ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
|
|
792
|
-
)}"></div><sd-6-0-0-next-
|
|
792
|
+
)}"></div><sd-6-0-0-next-14-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
|
793
793
|
"inline-flex relative w-full",
|
|
794
794
|
this.currentPlacement === "bottom" ? "origin-top" : "origin-bottom"
|
|
795
795
|
)}" placement="${this.placement}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
|
@@ -812,27 +812,27 @@ var SdCombobox = class extends SolidElement {
|
|
|
812
812
|
"flex justify-center",
|
|
813
813
|
iconMarginLeft,
|
|
814
814
|
this.value.length > 0 ? "visible" : "invisible"
|
|
815
|
-
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-6-0-0-next-
|
|
815
|
+
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-6-0-0-next-14-icon class="${cx("text-neutral-700", iconSize)}" name="closing-round" library="_internal"></sd-6-0-0-next-14-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-6-0-0-next-14-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="_internal" name="risk"></sd-6-0-0-next-14-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-6-0-0-next-14-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="_internal" name="confirm-circle"></sd-6-0-0-next-14-icon>` : ""}<slot name="right" part="right" class="${cx(
|
|
816
816
|
"inline-flex ml-2 leading-[0]",
|
|
817
817
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : "text-primary",
|
|
818
818
|
iconSize
|
|
819
|
-
)}">${this.type !== "search" ? html`<sd-6-0-0-next-
|
|
819
|
+
)}">${this.type !== "search" ? html`<sd-6-0-0-next-14-icon class="${cx(
|
|
820
820
|
"transition-transform duration-medium ease-in-out",
|
|
821
821
|
this.open ? "rotate-180" : "rotate-0"
|
|
822
|
-
)}" name="chevron-down" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-6-0-0-next-
|
|
822
|
+
)}" name="chevron-down" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-6-0-0-next-14-icon>` : ""}</slot>${this.type === "search" ? html`<button class="${cx("flex items-center sd-interactive", iconMarginLeft)}" type="button"><sd-6-0-0-next-14-icon class="${cx(iconColor, iconSize)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-6-0-0-next-14-icon></button>` : html`<button class="sd-interactive combobox-button absolute top-2" @keydown="${this.handleComboboxMouseDown}" type="button"><span class="sr-only">${this.localize.term("open")}</span></button>`}</div><div id="listbox" role="${ifDefined(!this.multiple ? "listbox" : void 0)}" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${cx(
|
|
823
823
|
"bg-white px-2 py-3 relative border-primary overflow-y-auto",
|
|
824
824
|
this.open && "shadow transition-shadow duration-medium ease-in-out",
|
|
825
825
|
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"
|
|
826
|
-
)}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox">${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-6-0-0-next-
|
|
826
|
+
)}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox">${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-6-0-0-next-14-popup></div><div part="form-control-help-text" id="help-text" class="text-sm text-neutral-700 mt-1" aria-hidden="${!hasHelpText}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`;
|
|
827
827
|
}
|
|
828
828
|
};
|
|
829
829
|
SdCombobox.styles = [
|
|
830
830
|
...SolidElement.styles,
|
|
831
831
|
css`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
832
|
-
:host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([visually-disabled]) input{caret-color:transparent}:host([size=sm]) .combobox-button{right:var(--sd-spacing-4);height:var(--sd-spacing-4);width:var(--sd-spacing-4)}:host([size=md]) .combobox-button{right:.85rem;height:var(--sd-spacing-6);width:var(--sd-spacing-6)}:host([size=lg]) .combobox-button{right:var(--sd-spacing-3);height:var(--sd-spacing-8);width:var(--sd-spacing-8)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-6-0-0-next-
|
|
832
|
+
:host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([visually-disabled]) input{caret-color:transparent}:host([size=sm]) .combobox-button{right:var(--sd-spacing-4);height:var(--sd-spacing-4);width:var(--sd-spacing-4)}:host([size=md]) .combobox-button{right:.85rem;height:var(--sd-spacing-6);width:var(--sd-spacing-6)}:host([size=lg]) .combobox-button{right:var(--sd-spacing-3);height:var(--sd-spacing-8);width:var(--sd-spacing-8)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-6-0-0-next-14-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-6-0-0-next-14-tag::part(base){border-radius:var(--sd-radius);padding-inline:var(--sd-spacing-1)}sd-6-0-0-next-14-tag::part(content){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--tag-max-width,15ch)}sd-6-0-0-next-14-tag[size=lg]::part(base){padding-inline:var(--sd-spacing-2)}sd-6-0-0-next-14-tag[disabled=false]::part(base):hover{background-color:rgba(var(--sd-color-background-primary-100))}[part=filtered-listbox] sd-6-0-0-next-14-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;--tw-font-weight:var(--sd-font-weight-bold);font-weight:var(--sd-font-weight-bold);color:inherit}@property --tw-font-weight{syntax:"*";inherits:false}`
|
|
833
833
|
];
|
|
834
834
|
__decorateClass([
|
|
835
|
-
query("sd-6-0-0-next-
|
|
835
|
+
query("sd-6-0-0-next-14-popup")
|
|
836
836
|
], SdCombobox.prototype, "popup", 2);
|
|
837
837
|
__decorateClass([
|
|
838
838
|
query('[part="combobox"]')
|
|
@@ -990,7 +990,7 @@ __decorateClass([
|
|
|
990
990
|
watch("open", { waitUntilFirstUpdate: true })
|
|
991
991
|
], SdCombobox.prototype, "handleOpenChange", 1);
|
|
992
992
|
SdCombobox = __decorateClass([
|
|
993
|
-
customElement("sd-6-0-0-next-
|
|
993
|
+
customElement("sd-6-0-0-next-14-combobox")
|
|
994
994
|
], SdCombobox);
|
|
995
995
|
setDefaultAnimation("combobox.show", {
|
|
996
996
|
keyframes: [{ opacity: 0 }, { opacity: 1 }],
|
|
@@ -31,12 +31,12 @@ var SdQuickfact = class extends SdAccordion {
|
|
|
31
31
|
this.expandable && "cursor-pointer select-none"
|
|
32
32
|
)}" role="${ifDefined(this.expandable ? "button" : void 0)}" aria-expanded="${ifDefined(this.expandable ? this.open ? "true" : "false" : void 0)}" aria-controls="${ifDefined(this.expandable ? "content" : void 0)}" tabindex="${this.expandable ? "0" : "-1"}" @click="${this.expandable ? this.handleSummaryClick : null}" @keydown="${this.expandable ? this.handleSummaryKeyDown : null}"><div part="icon" class="${cx("flex flex-grow-0 flex-shrink-0 flex-auto items-center", !this.expandable && "cursor-default")}"><slot name="icon"></slot></div><slot name="summary" part="summary" class="${cx(
|
|
33
33
|
"flex flex-auto items-start text-left text-base leading-normal font-normal sm:leading-tight sm:text-3xl sm:text-center",
|
|
34
|
-
this.expandable ? "sd-6-0-0-next-
|
|
34
|
+
this.expandable ? "sd-6-0-0-next-14-quickfact--expandable-color-text" : "text-black cursor-default"
|
|
35
35
|
)}">${this.summary}</slot><span part="summary-icon" class="${cx(
|
|
36
36
|
"flex flex-grow-0 flex-shrink-0 flex-auto self-start sm:self-center transition-transform ease-in-out duration-medium text-xl sm:mt-2",
|
|
37
37
|
this.open && "rotate-180",
|
|
38
38
|
!this.expandable && "hidden"
|
|
39
|
-
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-6-0-0-next-
|
|
39
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-6-0-0-next-14-icon library="_internal" name="chevron-down" class="group-hover:text-primary-500 transition-colors ease-in-out duration-medium"></sd-6-0-0-next-14-icon></slot><slot name="collapse-icon" class="${cx(!this.open && "hidden")}"><sd-6-0-0-next-14-icon library="_internal" name="chevron-down" class="group-hover:text-primary-500 transition-colors ease-in-out duration-medium"></sd-6-0-0-next-14-icon></slot></span></${header}><div part="content" id="content" class="${cx("overflow-hidden", !this.expandable && "hidden")}"><slot part="content__slot" class="block" role="region" aria-labelledby="header"></slot></div></${base}>`;
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
SdQuickfact.styles = [
|
|
@@ -48,7 +48,7 @@ __decorateClass([
|
|
|
48
48
|
property({ type: Boolean, reflect: true })
|
|
49
49
|
], SdQuickfact.prototype, "expandable", 2);
|
|
50
50
|
SdQuickfact = __decorateClass([
|
|
51
|
-
customElement("sd-6-0-0-next-
|
|
51
|
+
customElement("sd-6-0-0-next-14-quickfact")
|
|
52
52
|
], SdQuickfact);
|
|
53
53
|
setDefaultAnimation("quickfact.show", {
|
|
54
54
|
keyframes: [{ height: "0" }, { height: "auto" }],
|
|
@@ -48,7 +48,7 @@ var SubmenuController = class {
|
|
|
48
48
|
if (event.target === this.host) {
|
|
49
49
|
event.preventDefault();
|
|
50
50
|
event.stopPropagation();
|
|
51
|
-
} else if (event.target instanceof Element && (event.target.tagName === "sd-6-0-0-next-
|
|
51
|
+
} else if (event.target instanceof Element && (event.target.tagName === "sd-6-0-0-next-14-menu-item" || ((_a = event.target.role) == null ? void 0 : _a.startsWith("menuitem")))) {
|
|
52
52
|
const type = event.target.getAttribute("type");
|
|
53
53
|
if (type !== "checkbox") {
|
|
54
54
|
this.disableSubmenu();
|
|
@@ -69,7 +69,7 @@ var SubmenuController = class {
|
|
|
69
69
|
// Set the safe triangle values for the submenu when the position changes
|
|
70
70
|
this.handlePopupReposition = () => {
|
|
71
71
|
const submenuSlot = this.host.renderRoot.querySelector("slot[name='submenu']");
|
|
72
|
-
const menu = submenuSlot == null ? void 0 : submenuSlot.assignedElements({ flatten: true }).filter((el) => el.localName === "sd-6-0-0-next-
|
|
72
|
+
const menu = submenuSlot == null ? void 0 : submenuSlot.assignedElements({ flatten: true }).filter((el) => el.localName === "sd-6-0-0-next-14-menu")[0];
|
|
73
73
|
const isRtl = getComputedStyle(this.host).direction === "rtl";
|
|
74
74
|
if (!menu) {
|
|
75
75
|
return;
|
|
@@ -141,7 +141,7 @@ var SubmenuController = class {
|
|
|
141
141
|
}
|
|
142
142
|
let menuItems = null;
|
|
143
143
|
for (const elt of submenuSlot.assignedElements()) {
|
|
144
|
-
menuItems = elt.querySelectorAll("sd-6-0-0-next-
|
|
144
|
+
menuItems = elt.querySelectorAll("sd-6-0-0-next-14-menu-item, [role^='menuitem']");
|
|
145
145
|
if (menuItems.length !== 0) {
|
|
146
146
|
break;
|
|
147
147
|
}
|
|
@@ -220,7 +220,7 @@ var SubmenuController = class {
|
|
|
220
220
|
if (!this.isConnected) {
|
|
221
221
|
return html`<slot name="submenu" hidden></slot>`;
|
|
222
222
|
}
|
|
223
|
-
return html`<sd-6-0-0-next-
|
|
223
|
+
return html`<sd-6-0-0-next-14-popup ${ref(this.popupRef)} placement="${isRtl ? "left-start" : "right-start"}" anchor="anchor" flip flip-fallback-strategy="best-fit" skidding="${this.skidding}" strategy="fixed" auto-size="vertical" auto-size-padding="10"><slot name="submenu"></slot></sd-6-0-0-next-14-popup>`;
|
|
224
224
|
}
|
|
225
225
|
};
|
|
226
226
|
|
|
@@ -26,7 +26,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
26
26
|
this.helpText = "";
|
|
27
27
|
}
|
|
28
28
|
getAllCheckboxes() {
|
|
29
|
-
return [...this.querySelectorAll("sd-6-0-0-next-
|
|
29
|
+
return [...this.querySelectorAll("sd-6-0-0-next-14-checkbox")];
|
|
30
30
|
}
|
|
31
31
|
async syncCheckboxElements() {
|
|
32
32
|
const checkboxes = this.getAllCheckboxes();
|
|
@@ -39,10 +39,10 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
41
|
syncCheckboxes() {
|
|
42
|
-
if (customElements.get("sd-6-0-0-next-
|
|
42
|
+
if (customElements.get("sd-6-0-0-next-14-checkbox")) {
|
|
43
43
|
this.syncCheckboxElements();
|
|
44
44
|
} else {
|
|
45
|
-
customElements.whenDefined("sd-6-0-0-next-
|
|
45
|
+
customElements.whenDefined("sd-6-0-0-next-14-checkbox").then(() => this.syncCheckboxes());
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
handleSizeChange() {
|
|
@@ -80,7 +80,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
80
80
|
SdCheckboxGroup.styles = [
|
|
81
81
|
...SolidElement.styles,
|
|
82
82
|
css`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
83
|
-
:host{display:block}:host([orientation=vertical]) ::slotted(sd-6-0-0-next-
|
|
83
|
+
:host{display:block}:host([orientation=vertical]) ::slotted(sd-6-0-0-next-14-checkbox){margin-bottom:var(--sd-spacing-2);display:flex}:host([orientation=vertical]) ::slotted(sd-6-0-0-next-14-checkbox:last-of-type){margin-bottom:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]) ::slotted(sd-6-0-0-next-14-checkbox){margin-right:var(--sd-spacing-6)}:host([orientation=horizontal]) ::slotted(sd-6-0-0-next-14-checkbox:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-6-0-0-next-14-checkbox){margin-right:var(--sd-spacing-4)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-6-0-0-next-14-checkbox:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}`
|
|
84
84
|
];
|
|
85
85
|
__decorateClass([
|
|
86
86
|
property({ type: String, reflect: true })
|
|
@@ -101,7 +101,7 @@ __decorateClass([
|
|
|
101
101
|
watch("invalid", { waitUntilFirstUpdate: true })
|
|
102
102
|
], SdCheckboxGroup.prototype, "handleInvalid", 1);
|
|
103
103
|
SdCheckboxGroup = __decorateClass([
|
|
104
|
-
customElement("sd-6-0-0-next-
|
|
104
|
+
customElement("sd-6-0-0-next-14-checkbox-group")
|
|
105
105
|
], SdCheckboxGroup);
|
|
106
106
|
|
|
107
107
|
export {
|
|
@@ -22,9 +22,9 @@ var SdBadge = class extends SolidElement {
|
|
|
22
22
|
"inline-flex items-center justify-center gap-x-[1px] text-center font-bold whitespace-nowrap border rounded-full select-none cursor-[inherit]",
|
|
23
23
|
{
|
|
24
24
|
/* variants */
|
|
25
|
-
blue: !this.inverted ? "text-white bg-primary-500 border-white" : "sd-6-0-0-next-
|
|
26
|
-
green: !this.inverted ? "text-white sd-6-0-0-next-
|
|
27
|
-
red: !this.inverted ? "text-white sd-6-0-0-next-
|
|
25
|
+
blue: !this.inverted ? "text-white bg-primary-500 border-white" : "sd-6-0-0-next-14-badge--blue--inverted-color-text sd-6-0-0-next-14-badge--blue--inverted-color-background border-primary",
|
|
26
|
+
green: !this.inverted ? "text-white sd-6-0-0-next-14-badge--green-color-background border-white" : "sd-6-0-0-next-14-badge--green-color--inverted-text sd-6-0-0-next-14-badge--green-color--inverted-background border-primary",
|
|
27
|
+
red: !this.inverted ? "text-white sd-6-0-0-next-14-badge--red-color-background border-white" : "sd-6-0-0-next-14-badge--red--inverted-text sd-6-0-0-next-14-badge--red--inverted-background border-primary"
|
|
28
28
|
}[this.variant]
|
|
29
29
|
)}"><span id="content" part="content" class="${cx(this.size === "sm" && "sr-only")}"><slot></slot></span></span>`;
|
|
30
30
|
}
|
|
@@ -44,7 +44,7 @@ __decorateClass([
|
|
|
44
44
|
property({ type: Boolean, reflect: true })
|
|
45
45
|
], SdBadge.prototype, "inverted", 2);
|
|
46
46
|
SdBadge = __decorateClass([
|
|
47
|
-
customElement("sd-6-0-0-next-
|
|
47
|
+
customElement("sd-6-0-0-next-14-badge")
|
|
48
48
|
], SdBadge);
|
|
49
49
|
|
|
50
50
|
export {
|
|
@@ -78,7 +78,7 @@ var SdRange = class extends SolidElement {
|
|
|
78
78
|
var _a, _b;
|
|
79
79
|
const tooltip = thumb.parentElement;
|
|
80
80
|
await tooltip.updateComplete;
|
|
81
|
-
(_b = (_a = tooltip.shadowRoot) == null ? void 0 : _a.querySelector("sd-6-0-0-next-
|
|
81
|
+
(_b = (_a = tooltip.shadowRoot) == null ? void 0 : _a.querySelector("sd-6-0-0-next-14-popup")) == null ? void 0 : _b.setAttribute("distance", "14");
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
willUpdate(changedProperties) {
|
|
@@ -411,10 +411,10 @@ var SdRange = class extends SolidElement {
|
|
|
411
411
|
ariaLabel = this.tooltipFormatter(value);
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
return html`<sd-6-0-0-next-
|
|
414
|
+
return html`<sd-6-0-0-next-14-tooltip hoist trigger="${this.tooltip === "on-interaction" ? "focus" : "manual"}" disabled="${ifDefined(this.disabled || this.visuallyDisabled || this.tooltip === "hidden" ? true : void 0)}"><div id="${id}" part="thumb" role="slider" tabindex="${this.disabled || this.visuallyDisabled ? -1 : 0}" aria-disabled="${ifDefined(this.disabled || this.visuallyDisabled ? "true" : void 0)}" aria-labelledby="${ariaLabeledBy}" aria-label="${ariaLabel}" aria-valuemax="${this.max}" aria-valuemin="${this.min}" aria-valuenow="${value}" aria-valuetext="${this.tooltipFormatter(value)}" data-range-id="${rangeId}" data-disabled="${ifDefined(this.disabled || this.visuallyDisabled || void 0)}" @pointerdown="${this.onClickThumb}" @pointermove="${this.onDragThumb}" @pointerup="${this.onReleaseThumb}" @pointercancel="${this.onReleaseThumb}" @pointerleave="${this.onReleaseThumb}" @keydown="${this.onKeyPress}" @focus="${this.onFocusThumb}" class="${cx(
|
|
415
415
|
"rounded-full absolute top-0 size-4 hover:cursor-grab after:-inset-2",
|
|
416
416
|
this.disabled || this.visuallyDisabled ? "outline-none" : "cursor-pointer focus-visible:focus-outline"
|
|
417
|
-
)}"></div></sd-6-0-0-next-
|
|
417
|
+
)}"></div></sd-6-0-0-next-14-tooltip>`;
|
|
418
418
|
});
|
|
419
419
|
}
|
|
420
420
|
render() {
|
|
@@ -484,7 +484,7 @@ __decorateClass([
|
|
|
484
484
|
property({ type: String })
|
|
485
485
|
], SdRange.prototype, "value", 1);
|
|
486
486
|
SdRange = __decorateClass([
|
|
487
|
-
customElement("sd-6-0-0-next-
|
|
487
|
+
customElement("sd-6-0-0-next-14-range")
|
|
488
488
|
], SdRange);
|
|
489
489
|
|
|
490
490
|
export {
|