@solid-design-system/components 7.0.2 → 7.1.0
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.JQV2BZ2E.js +12 -0
- package/cdn/chunks/chunk.PEHSUZ2L.js +2 -0
- package/cdn/components/carousel/carousel.js +1 -1
- package/cdn/components/datepicker/datepicker.d.ts +4 -0
- package/cdn/components/datepicker/datepicker.js +1 -1
- package/cdn/custom-elements.json +33 -1
- package/cdn/solid-components.bundle.js +3 -3
- package/cdn/solid-components.iife.js +3 -3
- package/cdn/solid-components.js +1 -1
- package/cdn/vscode.html-custom-data.json +6 -1
- package/cdn/web-types.json +24 -2
- package/cdn-versioned/chunks/chunk.2C3UQTSS.js +2 -2
- package/cdn-versioned/chunks/chunk.2O3FM7UB.js +2 -2
- package/cdn-versioned/chunks/chunk.35XPUMS2.js +1 -1
- package/cdn-versioned/chunks/chunk.37JCS2XH.js +5 -5
- package/cdn-versioned/chunks/chunk.3IZUMERL.js +2 -2
- package/cdn-versioned/chunks/chunk.3RIAU3TH.js +3 -3
- package/cdn-versioned/chunks/chunk.4GA43M6X.js +2 -2
- package/cdn-versioned/chunks/chunk.4QTJXGRR.js +2 -2
- package/cdn-versioned/chunks/chunk.ADVB3FPU.js +2 -2
- package/cdn-versioned/chunks/chunk.AJGTKHU5.js +2 -2
- package/cdn-versioned/chunks/chunk.C37LGAL3.js +2 -2
- package/cdn-versioned/chunks/chunk.CGMKBGJU.js +2 -2
- package/cdn-versioned/chunks/chunk.CQNFI34K.js +2 -2
- package/cdn-versioned/chunks/chunk.DCAJAXUP.js +2 -2
- package/cdn-versioned/chunks/chunk.DS2MKMMN.js +3 -3
- package/cdn-versioned/chunks/chunk.DSKB3SEU.js +1 -1
- package/cdn-versioned/chunks/chunk.GA3PWYR4.js +2 -2
- package/cdn-versioned/chunks/chunk.HNBY226D.js +1 -1
- package/cdn-versioned/chunks/chunk.HY624TPC.js +2 -2
- package/cdn-versioned/chunks/chunk.I7OVY27Y.js +10 -10
- package/cdn-versioned/chunks/chunk.IFLRUJCI.js +2 -2
- package/cdn-versioned/chunks/chunk.IQBZ7GRB.js +2 -2
- package/cdn-versioned/chunks/chunk.J45556RK.js +1 -1
- package/cdn-versioned/chunks/chunk.JMX6KLDZ.js +2 -2
- package/cdn-versioned/chunks/chunk.JQV2BZ2E.js +12 -0
- package/cdn-versioned/chunks/chunk.KE2YEQDL.js +2 -2
- package/cdn-versioned/chunks/chunk.LZRL7OLU.js +1 -1
- package/cdn-versioned/chunks/chunk.MR54F6CV.js +2 -2
- package/cdn-versioned/chunks/chunk.MYPRMCUO.js +1 -1
- package/cdn-versioned/chunks/chunk.N4L76IWF.js +1 -1
- package/cdn-versioned/chunks/chunk.NGU7NO3O.js +5 -5
- package/cdn-versioned/chunks/chunk.NJKSWXOS.js +2 -2
- package/cdn-versioned/chunks/chunk.NOP4DTP2.js +2 -2
- package/cdn-versioned/chunks/chunk.OOIX4OAP.js +2 -2
- package/cdn-versioned/chunks/chunk.P7GMFHO5.js +1 -1
- package/cdn-versioned/chunks/chunk.PCXVXYU2.js +2 -2
- package/cdn-versioned/chunks/chunk.PEHSUZ2L.js +2 -0
- package/cdn-versioned/chunks/chunk.PFPUD5HR.js +2 -2
- package/cdn-versioned/chunks/chunk.PKCNX4R2.js +2 -2
- package/cdn-versioned/chunks/chunk.PQW77KHE.js +2 -2
- package/cdn-versioned/chunks/chunk.PURR56D5.js +2 -2
- package/cdn-versioned/chunks/chunk.Q63S2Z2M.js +2 -2
- package/cdn-versioned/chunks/chunk.QK3WCIP5.js +2 -2
- package/cdn-versioned/chunks/chunk.RHC6WZ6V.js +2 -2
- package/cdn-versioned/chunks/chunk.RRJCCIDH.js +1 -1
- package/cdn-versioned/chunks/chunk.SPL6VR5S.js +2 -2
- package/cdn-versioned/chunks/chunk.SSE7T5OF.js +2 -2
- package/cdn-versioned/chunks/chunk.SZNU4NHI.js +1 -1
- package/cdn-versioned/chunks/chunk.T7I5MFNS.js +2 -2
- package/cdn-versioned/chunks/chunk.TIMZJKMF.js +2 -2
- package/cdn-versioned/chunks/chunk.TX5WPWH2.js +2 -2
- package/cdn-versioned/chunks/chunk.UI3ZVKSU.js +2 -2
- package/cdn-versioned/chunks/chunk.V6IM4GAA.js +2 -2
- package/cdn-versioned/chunks/chunk.VPBXFCBA.js +2 -2
- package/cdn-versioned/chunks/chunk.VSX5LY2D.js +2 -2
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WL6NNNG5.js +2 -2
- package/cdn-versioned/chunks/chunk.WQZWYMH3.js +1 -1
- package/cdn-versioned/chunks/chunk.WUXX2P2S.js +2 -2
- package/cdn-versioned/chunks/chunk.XGVG7F7T.js +2 -2
- package/cdn-versioned/chunks/chunk.XHYIXZF4.js +2 -2
- package/cdn-versioned/chunks/chunk.XZ5JTM6K.js +2 -2
- package/cdn-versioned/chunks/chunk.Y4ZS3BWH.js +2 -2
- package/cdn-versioned/chunks/chunk.YUDSN6HJ.js +3 -3
- package/cdn-versioned/chunks/chunk.Z2M7BQV5.js +2 -2
- 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/carousel.js +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 +5 -1
- package/cdn-versioned/components/datepicker/datepicker.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/file-selector/file-selector.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/progress-bar/progress-bar.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/skeleton/skeleton.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/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 +298 -266
- package/cdn-versioned/internal/form.js +2 -2
- package/cdn-versioned/solid-components.bundle.js +81 -81
- package/cdn-versioned/solid-components.css +3 -3
- package/cdn-versioned/solid-components.iife.js +81 -81
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +120 -115
- package/cdn-versioned/web-types.json +195 -173
- package/dist/chunks/{chunk.UDTZN5OG.js → chunk.RRSERGVO.js} +37 -2
- package/dist/chunks/{chunk.I46TZJHO.js → chunk.Z4IULIBO.js} +5 -5
- package/dist/components/carousel/carousel.js +1 -1
- package/dist/components/datepicker/datepicker.d.ts +4 -0
- package/dist/components/datepicker/datepicker.js +1 -1
- package/dist/custom-elements.json +33 -1
- package/dist/solid-components.js +2 -2
- package/dist/vscode.html-custom-data.json +6 -1
- package/dist/web-types.json +24 -2
- package/dist-versioned/chunks/chunk.2EXNVXP2.js +2 -2
- package/dist-versioned/chunks/chunk.2M6Y3YHU.js +4 -4
- package/dist-versioned/chunks/chunk.2NXJZVSN.js +11 -11
- package/dist-versioned/chunks/chunk.2OT7JZJP.js +10 -10
- package/dist-versioned/chunks/chunk.2Y2MTVGF.js +3 -3
- package/dist-versioned/chunks/chunk.3PHACHZ2.js +7 -7
- package/dist-versioned/chunks/chunk.42XKKRQ2.js +6 -6
- package/dist-versioned/chunks/chunk.4FXMBMSY.js +3 -3
- package/dist-versioned/chunks/chunk.4JC6XNQW.js +4 -4
- package/dist-versioned/chunks/chunk.4VWOZ477.js +4 -4
- package/dist-versioned/chunks/chunk.5JPFIM5W.js +3 -3
- package/dist-versioned/chunks/chunk.5TU4CAN7.js +6 -6
- package/dist-versioned/chunks/chunk.65FELEDA.js +3 -3
- package/dist-versioned/chunks/chunk.67LY7Y75.js +4 -4
- package/dist-versioned/chunks/chunk.6F52A4JB.js +3 -3
- package/dist-versioned/chunks/chunk.72LCNWVE.js +3 -3
- package/dist-versioned/chunks/chunk.7DQB3MN6.js +7 -7
- package/dist-versioned/chunks/chunk.7EXDALNL.js +5 -5
- package/dist-versioned/chunks/chunk.AHIYNPL4.js +1 -1
- package/dist-versioned/chunks/chunk.ALJ34SPY.js +4 -4
- package/dist-versioned/chunks/chunk.B5BWUIZC.js +2 -2
- package/dist-versioned/chunks/chunk.BW5BXFWA.js +5 -5
- package/dist-versioned/chunks/chunk.C3L34J75.js +1 -1
- package/dist-versioned/chunks/chunk.C3WIBDGG.js +2 -2
- package/dist-versioned/chunks/chunk.C4HDZU75.js +2 -2
- package/dist-versioned/chunks/chunk.CB7PF3MZ.js +6 -6
- package/dist-versioned/chunks/chunk.CXFXIMXV.js +13 -13
- package/dist-versioned/chunks/chunk.DF2LZ65H.js +2 -2
- package/dist-versioned/chunks/chunk.DGLSKBZE.js +3 -3
- package/dist-versioned/chunks/chunk.DZED227Y.js +1 -1
- package/dist-versioned/chunks/chunk.EQIZ7J5Z.js +25 -25
- package/dist-versioned/chunks/chunk.ES5DW7MC.js +2 -2
- package/dist-versioned/chunks/chunk.HFRDUE6W.js +11 -11
- package/dist-versioned/chunks/chunk.I3DVEGNB.js +11 -11
- package/dist-versioned/chunks/chunk.JKJXDDJU.js +3 -3
- package/dist-versioned/chunks/chunk.JPGYEMXS.js +2 -2
- package/dist-versioned/chunks/chunk.JXDY64LH.js +10 -10
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/chunk.KSU44YSO.js +7 -7
- package/dist-versioned/chunks/chunk.KXUT6UJL.js +2 -2
- package/dist-versioned/chunks/chunk.MPHRXV2B.js +1 -1
- package/dist-versioned/chunks/chunk.N5RQE7OC.js +1 -1
- package/dist-versioned/chunks/chunk.PAXRRXRW.js +4 -4
- package/dist-versioned/chunks/chunk.PGECK7YI.js +1 -1
- package/dist-versioned/chunks/chunk.QGCJ4WUV.js +5 -5
- package/dist-versioned/chunks/chunk.QIYLIH7P.js +5 -5
- package/dist-versioned/chunks/chunk.QNHUD2SQ.js +42 -42
- package/dist-versioned/chunks/{chunk.UDTZN5OG.js → chunk.RRSERGVO.js} +46 -11
- package/dist-versioned/chunks/chunk.S2ZVBJYN.js +5 -5
- package/dist-versioned/chunks/chunk.SEWHXNAY.js +5 -5
- package/dist-versioned/chunks/chunk.SG7H3CVK.js +12 -12
- package/dist-versioned/chunks/chunk.SMRP2JEM.js +1 -1
- package/dist-versioned/chunks/chunk.TFAIMBF7.js +11 -11
- package/dist-versioned/chunks/chunk.TLAI6IVF.js +2 -2
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.UORTR6WB.js +5 -5
- package/dist-versioned/chunks/chunk.VX7JXCCH.js +2 -2
- package/dist-versioned/chunks/chunk.XAU2YS2A.js +5 -5
- package/dist-versioned/chunks/chunk.XQMBT64Z.js +8 -8
- package/dist-versioned/chunks/chunk.YJ46MX3X.js +6 -6
- package/dist-versioned/chunks/chunk.YKGIJFJM.js +23 -23
- package/dist-versioned/chunks/chunk.YRKHHYV5.js +2 -2
- package/dist-versioned/chunks/{chunk.I46TZJHO.js → chunk.Z4IULIBO.js} +15 -15
- package/dist-versioned/chunks/chunk.ZLPWCNY6.js +14 -14
- package/dist-versioned/chunks/chunk.ZQ6CXL6H.js +5 -5
- 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/carousel.js +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 +5 -1
- package/dist-versioned/components/datepicker/datepicker.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/file-selector/file-selector.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/progress-bar/progress-bar.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/skeleton/skeleton.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/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 +298 -266
- package/dist-versioned/internal/form.js +2 -2
- package/dist-versioned/solid-components.css +3 -3
- package/dist-versioned/solid-components.js +2 -2
- package/dist-versioned/vscode.html-custom-data.json +120 -115
- package/dist-versioned/web-types.json +195 -173
- package/package.json +3 -3
- package/cdn/chunks/chunk.5SQTIWWY.js +0 -12
- package/cdn/chunks/chunk.7OG7ICBB.js +0 -2
- package/cdn-versioned/chunks/chunk.5SQTIWWY.js +0 -12
- package/cdn-versioned/chunks/chunk.7OG7ICBB.js +0 -2
|
@@ -129,7 +129,7 @@ var SdScrollable = class extends SolidElement {
|
|
|
129
129
|
down: this.upButton
|
|
130
130
|
}[direction];
|
|
131
131
|
const label = reachedStart ? `${this.localize.term("scrolled")}. ${this.localize.term("scrollToEnd")}` : `${this.localize.term("scrolled")}. ${this.localize.term("scrollToStart")}`;
|
|
132
|
-
(_c = oppositeButton == null ? void 0 : oppositeButton.querySelector("sd-7-0-
|
|
132
|
+
(_c = oppositeButton == null ? void 0 : oppositeButton.querySelector("sd-7-1-0-icon")) == null ? void 0 : _c.setAttribute("label", label);
|
|
133
133
|
if (isKeyboardTriggered) {
|
|
134
134
|
oppositeButton == null ? void 0 : oppositeButton.focus();
|
|
135
135
|
} else {
|
|
@@ -141,7 +141,7 @@ var SdScrollable = class extends SolidElement {
|
|
|
141
141
|
const scrollTo = ["left", "up"].includes(direction) ? "start" : "end";
|
|
142
142
|
const label = scrollTo === "start" ? this.localize.term("scrollToStart") : this.localize.term("scrollToEnd");
|
|
143
143
|
const button = e.target;
|
|
144
|
-
(_a = button.querySelector("sd-7-0-
|
|
144
|
+
(_a = button.querySelector("sd-7-1-0-icon")) == null ? void 0 : _a.setAttribute("label", label);
|
|
145
145
|
}
|
|
146
146
|
render() {
|
|
147
147
|
const scrollButtonClasses = "relative p-0 border-0 bg-transparent cursor-pointer w-5 h-5 flex items-center justify-center sd-interactive rounded-md flex text-lg";
|
|
@@ -158,16 +158,16 @@ var SdScrollable = class extends SolidElement {
|
|
|
158
158
|
)}" @scroll="${this.handleContainerScroll}" tabindex="0"><div id="announcement-container" role="status" class="sr-only"></div><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons ? html`${this.isScrollHorizontalEnabled ? html`<div part="button-left" class="${cx(
|
|
159
159
|
"absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8 transition-opacity duration-medium ease-in-out",
|
|
160
160
|
!this.canScroll.left && "opacity-0 pointer-events-none"
|
|
161
|
-
)}"><button part="button-start" class="${cx(scrollButtonClasses)}" aria-hidden="${ifDefined(!this.canScroll.left || void 0)}" tabindex="${ifDefined(!this.canScroll.left ? -1 : void 0)}" @click="${(e) => this.handleScroll("left", e)}" @blur="${(e) => this.handleButtonBlur("left", e)}"><slot name="icon-start"><sd-7-0-
|
|
161
|
+
)}"><button part="button-start" class="${cx(scrollButtonClasses)}" aria-hidden="${ifDefined(!this.canScroll.left || void 0)}" tabindex="${ifDefined(!this.canScroll.left ? -1 : void 0)}" @click="${(e) => this.handleScroll("left", e)}" @blur="${(e) => this.handleButtonBlur("left", e)}"><slot name="icon-start"><sd-7-1-0-icon library="_internal" name="chevron-top" class="rotate-[-90deg]" label="${this.localize.term("scrollToStart")}"></sd-7-1-0-icon></slot></button></div><div part="button-right" class="${cx(
|
|
162
162
|
"absolute z-10 flex items-center justify-center top-0 right-0 h-full w-8 transition-opacity duration-medium ease-in-out",
|
|
163
163
|
!this.canScroll.right && "opacity-0 pointer-events-none"
|
|
164
|
-
)}"><button part="button-end" class="${cx(scrollButtonClasses)}" aria-hidden="${ifDefined(!this.canScroll.right || void 0)}" tabindex="${ifDefined(!this.canScroll.right ? -1 : void 0)}" @click="${(e) => this.handleScroll("right", e)}" @blur="${(e) => this.handleButtonBlur("right", e)}"><slot name="icon-end"><sd-7-0-
|
|
164
|
+
)}"><button part="button-end" class="${cx(scrollButtonClasses)}" aria-hidden="${ifDefined(!this.canScroll.right || void 0)}" tabindex="${ifDefined(!this.canScroll.right ? -1 : void 0)}" @click="${(e) => this.handleScroll("right", e)}" @blur="${(e) => this.handleButtonBlur("right", e)}"><slot name="icon-end"><sd-7-1-0-icon library="_internal" name="chevron-bottom" class="rotate-[-90deg]" label="${this.localize.term("scrollToEnd")}"></sd-7-1-0-icon></slot></button></div>` : null} ${this.isScrollVerticalEnabled ? html`<div part="button-top" class="${cx(
|
|
165
165
|
"absolute z-10 flex items-center justify-center top-0 left-0 w-full h-8 transition-opacity duration-medium ease-in-out",
|
|
166
166
|
!this.canScroll.up && "opacity-0 pointer-events-none"
|
|
167
|
-
)}"><button part="button-start" class="${cx(scrollButtonClasses)}" aria-hidden="${ifDefined(!this.canScroll.up || void 0)}" tabindex="${ifDefined(!this.canScroll.up ? -1 : void 0)}" @click="${(e) => this.handleScroll("up", e)}" @blur="${(e) => this.handleButtonBlur("up", e)}"><slot name="icon-start"><sd-7-0-
|
|
167
|
+
)}"><button part="button-start" class="${cx(scrollButtonClasses)}" aria-hidden="${ifDefined(!this.canScroll.up || void 0)}" tabindex="${ifDefined(!this.canScroll.up ? -1 : void 0)}" @click="${(e) => this.handleScroll("up", e)}" @blur="${(e) => this.handleButtonBlur("up", e)}"><slot name="icon-start"><sd-7-1-0-icon library="_internal" name="chevron-top" label="${this.localize.term("scrollToStart")}"></sd-7-1-0-icon></slot></button></div><div part="button-bottom" class="${cx(
|
|
168
168
|
"absolute z-10 flex items-center justify-center bottom-0 left-0 w-full h-8 transition-opacity duration-medium ease-in-out",
|
|
169
169
|
!this.canScroll.down && "opacity-0 pointer-events-none"
|
|
170
|
-
)}"><button part="button-end" class="${cx(scrollButtonClasses)}" aria-hidden="${ifDefined(!this.canScroll.down || void 0)}" tabindex="${ifDefined(!this.canScroll.down ? -1 : void 0)}" @click="${(e) => this.handleScroll("down", e)}" @blur="${(e) => this.handleButtonBlur("down", e)}"><slot name="icon-end"><sd-7-0-
|
|
170
|
+
)}"><button part="button-end" class="${cx(scrollButtonClasses)}" aria-hidden="${ifDefined(!this.canScroll.down || void 0)}" tabindex="${ifDefined(!this.canScroll.down ? -1 : void 0)}" @click="${(e) => this.handleScroll("down", e)}" @blur="${(e) => this.handleButtonBlur("down", e)}"><slot name="icon-end"><sd-7-1-0-icon library="_internal" name="chevron-bottom" label="${this.localize.term("scrollToEnd")}"></sd-7-1-0-icon></slot></button></div>` : null}` : null} ${this.shadows ? html`${this.isScrollHorizontalEnabled ? html`<div part="shadow-left" class="${cx(
|
|
171
171
|
"left top-0 left-0 w-[6px] h-full",
|
|
172
172
|
scrollShadowClasses,
|
|
173
173
|
this.canScroll.left ? "opacity-100" : "opacity-0"
|
|
@@ -189,7 +189,7 @@ var SdScrollable = class extends SolidElement {
|
|
|
189
189
|
SdScrollable.styles = [
|
|
190
190
|
...SolidElement.styles,
|
|
191
191
|
css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
192
|
-
:host{--gradient-color:transparent;--gradient:var(--gradient-color) 0%,rgba(var(--sd-color-background-white, rgba(var(--sd-color-white)))) 80%,rgba(var(--sd-color-background-white, rgba(var(--sd-color-white)))) 100%;position:relative;display:flex;overflow:hidden}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-radius-sm,.125rem)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1,.25rem);width:var(--sd-spacing-1,.25rem)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,transparent 50%,rgba(24,24,24,.4) 100%)}[part=shadow-right]{background:linear-gradient(90deg,transparent 50%,rgba(24,24,24,.4) 100%)}[part=shadow-top]{background:linear-gradient(0deg,transparent 50%,rgba(24,24,24,.4) 100%)}[part=shadow-bottom]{background:linear-gradient(180deg,transparent 50%,rgba(24,24,24,.4) 100%)}.sd-7-0-
|
|
192
|
+
:host{--gradient-color:transparent;--gradient:var(--gradient-color) 0%,rgba(var(--sd-color-background-white, rgba(var(--sd-color-white)))) 80%,rgba(var(--sd-color-background-white, rgba(var(--sd-color-white)))) 100%;position:relative;display:flex;overflow:hidden}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-radius-sm,.125rem)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1,.25rem);width:var(--sd-spacing-1,.25rem)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,transparent 50%,rgba(24,24,24,.4) 100%)}[part=shadow-right]{background:linear-gradient(90deg,transparent 50%,rgba(24,24,24,.4) 100%)}[part=shadow-top]{background:linear-gradient(0deg,transparent 50%,rgba(24,24,24,.4) 100%)}[part=shadow-bottom]{background:linear-gradient(180deg,transparent 50%,rgba(24,24,24,.4) 100%)}.sd-7-1-0-icon--top{align-self:flex-start}.sd-7-1-0-icon--down{align-self:flex-end}`
|
|
193
193
|
];
|
|
194
194
|
__decorateClass([
|
|
195
195
|
query('[part="button-right"] button')
|
|
@@ -237,7 +237,7 @@ __decorateClass([
|
|
|
237
237
|
state()
|
|
238
238
|
], SdScrollable.prototype, "isScrollVerticalEnabled", 2);
|
|
239
239
|
SdScrollable = __decorateClass([
|
|
240
|
-
customElement("sd-7-0-
|
|
240
|
+
customElement("sd-7-1-0-scrollable")
|
|
241
241
|
], SdScrollable);
|
|
242
242
|
|
|
243
243
|
export {
|
|
@@ -55,19 +55,19 @@ var SdProgressBar = class extends SolidElement {
|
|
|
55
55
|
this.isLoading ? this.localize.term("loading") : this.valueFormatter(this.clampedValue)
|
|
56
56
|
)}" aria-label="${ifDefined(!hasLabel ? this.label || this.localize.term("progress") : void 0)}" aria-labelledby="${ifDefined(hasLabel ? "label" : this.label)}" style="${`--percentage: ${this.percentage}%;`}">${this.isLoading ? html`<div part="track" class="${cx(
|
|
57
57
|
"absolute top-0 left-0 h-full progress-bar__track--loading-left",
|
|
58
|
-
this.inverted ? "sd-7-0-
|
|
58
|
+
this.inverted ? "sd-7-1-0-progress-bar__slide-bar--inverted-color-background" : "sd-7-1-0-progress-bar__slide-bar-color-background"
|
|
59
59
|
)}"></div><div part="track" class="${cx(
|
|
60
60
|
"absolute top-0 right-0 h-full progress-bar__track--loading-right",
|
|
61
|
-
this.inverted ? "sd-7-0-
|
|
61
|
+
this.inverted ? "sd-7-1-0-progress-bar__slide-bar--inverted-color-background" : "sd-7-1-0-progress-bar__slide-bar-color-background"
|
|
62
62
|
)}"></div><div part="indicator" class="${cx(
|
|
63
63
|
"absolute top-0 h-full progress-bar__indicator--loading",
|
|
64
|
-
this.inverted ? "sd-7-0-
|
|
64
|
+
this.inverted ? "sd-7-1-0-progress-bar--active--inverted-color-background" : "bg-accent"
|
|
65
65
|
)}"></div>` : html`<div part="indicator" class="${cx(
|
|
66
66
|
"w-[var(--percentage)]",
|
|
67
|
-
this.inverted ? "sd-7-0-
|
|
67
|
+
this.inverted ? "sd-7-1-0-progress-bar--active--inverted-color-background" : "bg-accent"
|
|
68
68
|
)}"></div>${this.value && this.value > 0 && this.value < this.safeMax ? html`<div class="w-0.5 shrink-0"></div>` : nothing}<div part="track" class="${cx(
|
|
69
69
|
"flex-1",
|
|
70
|
-
this.inverted ? "sd-7-0-
|
|
70
|
+
this.inverted ? "sd-7-1-0-progress-bar__slide-bar--inverted-color-background" : "sd-7-1-0-progress-bar__slide-bar-color-background"
|
|
71
71
|
)}"></div>`}</div>${this.showValue ? html`<span class="${cx(
|
|
72
72
|
"text-neutral-700 text-xs w-shrink-0",
|
|
73
73
|
this.inverted ? "text-white" : "text-neutral-700",
|
|
@@ -103,7 +103,7 @@ __decorateClass([
|
|
|
103
103
|
property({ attribute: false })
|
|
104
104
|
], SdProgressBar.prototype, "valueFormatter", 2);
|
|
105
105
|
SdProgressBar = __decorateClass([
|
|
106
|
-
customElement("sd-7-0-
|
|
106
|
+
customElement("sd-7-1-0-progress-bar")
|
|
107
107
|
], SdProgressBar);
|
|
108
108
|
|
|
109
109
|
export {
|
|
@@ -98,11 +98,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
98
98
|
return normalizedOption.includes(normalizedQuery) || normalizedOptionLabel.includes(normalizedQuery);
|
|
99
99
|
};
|
|
100
100
|
this.getTag = (option) => {
|
|
101
|
-
return html`<sd-7-0-
|
|
101
|
+
return html`<sd-7-1-0-tag class="min-w-0 max-w-full" ?disabled="${this.disabled}" part="tag" exportparts="
|
|
102
102
|
base:tag__base,
|
|
103
103
|
content:tag__content,
|
|
104
104
|
removable-indicator:tag__removable-indicator,
|
|
105
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-7-0-
|
|
105
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-7-1-0-tag>`;
|
|
106
106
|
};
|
|
107
107
|
this.handleDocumentFocusIn = (event) => {
|
|
108
108
|
const path = event.composedPath();
|
|
@@ -241,9 +241,9 @@ var SdCombobox = class extends SolidElement {
|
|
|
241
241
|
return html`${typeof optionHtml === "string" ? unsafeHTML(optionHtml) : optionHtml}`;
|
|
242
242
|
};
|
|
243
243
|
return this.filteredOptions.map((item) => {
|
|
244
|
-
if (item.tagName.toLowerCase() === "sd-7-0-
|
|
244
|
+
if (item.tagName.toLowerCase() === "sd-7-1-0-optgroup") {
|
|
245
245
|
Array.from(item.children).forEach((option) => {
|
|
246
|
-
if (option.tagName.toLowerCase() === "sd-7-0-
|
|
246
|
+
if (option.tagName.toLowerCase() === "sd-7-1-0-option") {
|
|
247
247
|
renderOption(option);
|
|
248
248
|
}
|
|
249
249
|
});
|
|
@@ -263,11 +263,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
263
263
|
});
|
|
264
264
|
} else {
|
|
265
265
|
return [
|
|
266
|
-
html`<sd-7-0-
|
|
266
|
+
html`<sd-7-1-0-tag class="min-w-0 max-w-full" ?disabled="${this.disabled}" part="tag" exportparts="
|
|
267
267
|
base:tag__base,
|
|
268
268
|
content:tag__content,
|
|
269
269
|
removable-indicator:tag__removable-indicator,
|
|
270
|
-
" 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-7-0-
|
|
270
|
+
" 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-7-1-0-tag>`
|
|
271
271
|
];
|
|
272
272
|
}
|
|
273
273
|
}
|
|
@@ -403,7 +403,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
403
403
|
}
|
|
404
404
|
handleOptionClick(event) {
|
|
405
405
|
const target = event.target;
|
|
406
|
-
const option = target.closest("sd-7-0-
|
|
406
|
+
const option = target.closest("sd-7-1-0-option");
|
|
407
407
|
const oldValue = this.value;
|
|
408
408
|
if (option && !option.disabled) {
|
|
409
409
|
if (this.multiple) {
|
|
@@ -455,7 +455,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
455
455
|
scrollIntoView(this.getCurrentOption(), this.listbox, "vertical", "auto");
|
|
456
456
|
}
|
|
457
457
|
getAllFilteredOptions() {
|
|
458
|
-
return [...this.filteredWrapper.querySelectorAll("sd-7-0-
|
|
458
|
+
return [...this.filteredWrapper.querySelectorAll("sd-7-1-0-option")];
|
|
459
459
|
}
|
|
460
460
|
getCurrentOption() {
|
|
461
461
|
return this.getAllFilteredOptions().find((option) => option.current);
|
|
@@ -585,7 +585,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
585
585
|
clonedOption.selected = option.selected;
|
|
586
586
|
clonedOption.checkbox = option.checkbox;
|
|
587
587
|
clonedOption.size = option.size;
|
|
588
|
-
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-7-0-
|
|
588
|
+
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-7-1-0-optgroup";
|
|
589
589
|
if (!hasOptgroup) {
|
|
590
590
|
return clonedOption;
|
|
591
591
|
}
|
|
@@ -609,7 +609,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
609
609
|
this.formControlController.emitInvalidEvent(event);
|
|
610
610
|
this.invalidMessage.textContent = event.target.validationMessage;
|
|
611
611
|
}
|
|
612
|
-
/** Receives incoming event detail from sd-7-0-
|
|
612
|
+
/** Receives incoming event detail from sd-7-1-0-popup and updates local state for conditional styling. */
|
|
613
613
|
handleCurrentPlacement(e) {
|
|
614
614
|
const incomingPlacement = e.detail;
|
|
615
615
|
if (incomingPlacement) {
|
|
@@ -621,7 +621,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
621
621
|
}
|
|
622
622
|
handleUseTagsChange() {
|
|
623
623
|
const allOptions = this.getAllFilteredOptions();
|
|
624
|
-
if (customElements.get("sd-7-0-
|
|
624
|
+
if (customElements.get("sd-7-1-0-option")) {
|
|
625
625
|
allOptions.forEach((option) => {
|
|
626
626
|
option.checkbox = this.multiple;
|
|
627
627
|
});
|
|
@@ -750,8 +750,8 @@ var SdCombobox = class extends SolidElement {
|
|
|
750
750
|
return filterOnlyOptgroups(getAssignedElementsForSlot(this.defaultSlot));
|
|
751
751
|
}
|
|
752
752
|
async handleDefaultSlotChange() {
|
|
753
|
-
if (!customElements.get("sd-7-0-
|
|
754
|
-
customElements.whenDefined("sd-7-0-
|
|
753
|
+
if (!customElements.get("sd-7-1-0-option")) {
|
|
754
|
+
customElements.whenDefined("sd-7-1-0-option").then(() => this.handleDefaultSlotChange());
|
|
755
755
|
return;
|
|
756
756
|
}
|
|
757
757
|
const slottedOptions = this.getSlottedOptions();
|
|
@@ -763,10 +763,10 @@ var SdCombobox = class extends SolidElement {
|
|
|
763
763
|
if (this.multiple) {
|
|
764
764
|
option.checkbox = true;
|
|
765
765
|
}
|
|
766
|
-
option.id = option.id || `sd-7-0-
|
|
766
|
+
option.id = option.id || `sd-7-1-0-combobox-option-${index}`;
|
|
767
767
|
});
|
|
768
768
|
slottedOptgroups.forEach((optgroup, index) => {
|
|
769
|
-
optgroup.id = optgroup.id || `sd-7-0-
|
|
769
|
+
optgroup.id = optgroup.id || `sd-7-1-0-combobox-optgroup-${index}`;
|
|
770
770
|
});
|
|
771
771
|
await this.syncSelectedOptionsAndValue();
|
|
772
772
|
if (this.multiple) {
|
|
@@ -831,7 +831,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
831
831
|
default: "form-control-color-border"
|
|
832
832
|
}[selectState],
|
|
833
833
|
this.open && (this.currentPlacement === "bottom" ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
|
|
834
|
-
)}"></div><sd-7-0-
|
|
834
|
+
)}"></div><sd-7-1-0-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
|
835
835
|
"inline-flex relative w-full",
|
|
836
836
|
this.currentPlacement === "bottom" ? "origin-top" : "origin-bottom"
|
|
837
837
|
)}" placement="${this.placement}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
|
@@ -860,18 +860,18 @@ var SdCombobox = class extends SolidElement {
|
|
|
860
860
|
"flex justify-center",
|
|
861
861
|
iconMarginLeft,
|
|
862
862
|
this.value.length > 0 ? "visible" : "invisible"
|
|
863
|
-
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-7-0-
|
|
863
|
+
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-7-1-0-icon class="${cx("text-neutral-700", iconSize)}" name="close-circle" library="_internal"></sd-7-1-0-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-7-1-0-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="_internal" name="risk"></sd-7-1-0-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-7-1-0-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="_internal" name="confirm-circle"></sd-7-1-0-icon>` : ""}<slot name="right" part="right" class="${cx(
|
|
864
864
|
"inline-flex ml-2 leading-[0]",
|
|
865
865
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : "form-control-color-icon-fill",
|
|
866
866
|
iconSize
|
|
867
|
-
)}">${this.type !== "search" ? html`<sd-7-0-
|
|
867
|
+
)}">${this.type !== "search" ? html`<sd-7-1-0-icon class="${cx(
|
|
868
868
|
"transition-transform duration-medium ease-in-out",
|
|
869
869
|
this.open ? "rotate-180" : "rotate-0"
|
|
870
|
-
)}" name="chevron-bottom" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-7-0-
|
|
870
|
+
)}" name="chevron-bottom" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-7-1-0-icon>` : ""}</slot>${this.type === "search" ? html`<button class="${cx("flex items-center", iconMarginLeft)}" type="button" @mousedown="${this.preventLoosingFocus}" @click="${this.handleSearchClick}"><sd-7-1-0-icon class="${cx(iconColor, iconSize)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-7-1-0-icon></button>` : html`<button class="combobox-button absolute top-2" tabindex="-1" aria-hidden="true" @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(
|
|
871
871
|
"bg-white px-2 py-3 relative border-primary overflow-y-auto",
|
|
872
872
|
this.open && "shadow-listbox transition-shadow duration-medium ease-in-out",
|
|
873
873
|
this.currentPlacement === "bottom" ? "border-r-2 border-b-2 border-l-2 form-control__listbox-border-bottom-right-radius form-control__listbox-border-bottom-left-radius" : "border-r-2 border-t-2 border-l-2 form-control__listbox-border-top-right-radius form-control__listbox-border-top-left-radius"
|
|
874
|
-
)}" 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-7-0-
|
|
874
|
+
)}" 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-7-1-0-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx(
|
|
875
875
|
"text-sm mt-1",
|
|
876
876
|
hasHelpText ? "block" : "hidden",
|
|
877
877
|
this.visuallyDisabled || this.disabled ? "text-neutral-500" : "text-neutral-700"
|
|
@@ -881,10 +881,10 @@ var SdCombobox = class extends SolidElement {
|
|
|
881
881
|
SdCombobox.styles = [
|
|
882
882
|
...SolidElement.styles,
|
|
883
883
|
css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
884
|
-
: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,174 174 174))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500,174 174 174))}:host([visually-disabled]) input{caret-color:transparent}:host([size=sm]) .combobox-button{right:var(--sd-spacing-4,1rem);height:var(--sd-spacing-4,1rem);width:var(--sd-spacing-4,1rem)}:host([size=md]) .combobox-button{right:.85rem;height:var(--sd-spacing-6,1.5rem);width:var(--sd-spacing-6,1.5rem)}:host([size=lg]) .combobox-button{right:var(--sd-spacing-3,.75rem);height:var(--sd-spacing-8,2rem);width:var(--sd-spacing-8,2rem)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-7-0-
|
|
884
|
+
: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,174 174 174))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500,174 174 174))}:host([visually-disabled]) input{caret-color:transparent}:host([size=sm]) .combobox-button{right:var(--sd-spacing-4,1rem);height:var(--sd-spacing-4,1rem);width:var(--sd-spacing-4,1rem)}:host([size=md]) .combobox-button{right:.85rem;height:var(--sd-spacing-6,1.5rem);width:var(--sd-spacing-6,1.5rem)}:host([size=lg]) .combobox-button{right:var(--sd-spacing-3,.75rem);height:var(--sd-spacing-8,2rem);width:var(--sd-spacing-8,2rem)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-7-1-0-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-7-1-0-tag::part(base){border-radius:var(--sd-radius,.25rem);border-width:var(--sd-combobox__tag-border-width,.0625rem);padding-inline:var(--sd-spacing-1,.25rem)}sd-7-1-0-tag::part(content){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--tag-max-width,15ch)}sd-7-1-0-tag[size=lg]::part(base){padding-inline:var(--sd-spacing-2,.5rem)}sd-7-1-0-tag[disabled=false]::part(base):hover{background-color:rgba(var(--sd-color-background-primary-100,236 240 249))}[part=filtered-listbox] sd-7-1-0-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;--tw-font-weight:var(--sd-font-weight-bold, 600);font-weight:var(--sd-font-weight-bold,600);color:inherit}:host([type=search]) sd-7-1-0-icon[name=magnifying-glass],[part=chevron]{color:rgba(var(--sd-form-control-color-icon-fill))}:host([disabled])::part(chevron),:host([type=search][disabled]) sd-7-1-0-icon[name=magnifying-glass],:host([type=search][visually-disabled]) sd-7-1-0-icon[name=magnifying-glass],:host([visually-disabled])::part(chevron){color:rgba(var(--sd-color-icon-fill-neutral-500,--sd-color-neutral-500))}@property --tw-font-weight{syntax:"*";inherits:false}`
|
|
885
885
|
];
|
|
886
886
|
__decorateClass([
|
|
887
|
-
query("sd-7-0-
|
|
887
|
+
query("sd-7-1-0-popup")
|
|
888
888
|
], SdCombobox.prototype, "popup", 2);
|
|
889
889
|
__decorateClass([
|
|
890
890
|
query('[part="combobox"]')
|
|
@@ -1048,7 +1048,7 @@ __decorateClass([
|
|
|
1048
1048
|
watch(["size", "floatingLabel"])
|
|
1049
1049
|
], SdCombobox.prototype, "handleSizeChange", 1);
|
|
1050
1050
|
SdCombobox = __decorateClass([
|
|
1051
|
-
customElement("sd-7-0-
|
|
1051
|
+
customElement("sd-7-1-0-combobox")
|
|
1052
1052
|
], SdCombobox);
|
|
1053
1053
|
setDefaultAnimation("combobox.show", {
|
|
1054
1054
|
keyframes: [{ opacity: 0 }, { opacity: 1 }],
|
|
@@ -17,7 +17,7 @@ var SdSkeleton = class extends SolidElement {
|
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
19
|
return html`<div part="base" aria-hidden="true" class="${cx(
|
|
20
|
-
"sd-7-0-
|
|
20
|
+
"sd-7-1-0-skeleton-color w-full h-full animate-pulse",
|
|
21
21
|
{
|
|
22
22
|
rectangular: "rounded-sm",
|
|
23
23
|
circular: "rounded-full inline-block"
|
|
@@ -34,7 +34,7 @@ __decorateClass([
|
|
|
34
34
|
property({ type: String, reflect: true })
|
|
35
35
|
], SdSkeleton.prototype, "variant", 2);
|
|
36
36
|
SdSkeleton = __decorateClass([
|
|
37
|
-
customElement("sd-7-0-
|
|
37
|
+
customElement("sd-7-1-0-skeleton")
|
|
38
38
|
], SdSkeleton);
|
|
39
39
|
|
|
40
40
|
export {
|
|
@@ -64,15 +64,15 @@ var SdCarousel = class extends SolidElement {
|
|
|
64
64
|
if (!this.isFocused) this.next();
|
|
65
65
|
});
|
|
66
66
|
this.scrollController = new ScrollController(this);
|
|
67
|
-
this.slides = this.getElementsByTagName("sd-7-0-
|
|
67
|
+
this.slides = this.getElementsByTagName("sd-7-1-0-carousel-item");
|
|
68
68
|
// determines which slide is displayed
|
|
69
69
|
// A map containing the state of all the slides
|
|
70
70
|
this.intersectionObserverEntries = /* @__PURE__ */ new Map();
|
|
71
71
|
this.localize = new LocalizeController(this);
|
|
72
72
|
this.userInteracted = false;
|
|
73
73
|
this.fadeController = new FadeController(this);
|
|
74
|
-
this.handleUserInteraction = () => {
|
|
75
|
-
this.userInteracted =
|
|
74
|
+
this.handleUserInteraction = (e) => {
|
|
75
|
+
this.userInteracted = e.type === "keydown";
|
|
76
76
|
};
|
|
77
77
|
this.handleSlotChange = (mutations) => {
|
|
78
78
|
const needsInitialization = mutations.some(
|
|
@@ -93,7 +93,7 @@ var SdCarousel = class extends SolidElement {
|
|
|
93
93
|
}
|
|
94
94
|
connectedCallback() {
|
|
95
95
|
super.connectedCallback();
|
|
96
|
-
["
|
|
96
|
+
["mousedown", "keydown"].forEach((event) => this.addEventListener(event, this.handleUserInteraction));
|
|
97
97
|
this.addEventListener("focusin", this.handleFocus);
|
|
98
98
|
this.addEventListener("focusout", this.handleBlur);
|
|
99
99
|
this.addEventListener("keydown", this.handleKeyDown);
|
|
@@ -121,7 +121,7 @@ var SdCarousel = class extends SolidElement {
|
|
|
121
121
|
super.disconnectedCallback();
|
|
122
122
|
this.intersectionObserver.disconnect();
|
|
123
123
|
this.mutationObserver.disconnect();
|
|
124
|
-
["
|
|
124
|
+
["mousedown", "keydown"].forEach((event) => this.removeEventListener(event, this.handleUserInteraction));
|
|
125
125
|
this.removeEventListener("focusin", this.handleFocus);
|
|
126
126
|
this.removeEventListener("focusout", this.handleBlur);
|
|
127
127
|
this.removeEventListener("keydown", this.handleKeyDown);
|
|
@@ -476,7 +476,7 @@ var SdCarousel = class extends SolidElement {
|
|
|
476
476
|
if (e.detail) {
|
|
477
477
|
this.autoplayControls.blur();
|
|
478
478
|
}
|
|
479
|
-
}}"><slot name="autoplay-start" class="${cx(!this.pausedAutoplay ? "hidden" : "")}"><sd-7-0-
|
|
479
|
+
}}"><slot name="autoplay-start" class="${cx(!this.pausedAutoplay ? "hidden" : "")}"><sd-7-1-0-icon class="h-6 w-6 grid place-items-center" library="_internal" name="play"></sd-7-1-0-icon></slot><slot name="autoplay-pause" class="${cx(this.pausedAutoplay ? "hidden" : "")}"><sd-7-1-0-icon class="h-6 w-6 grid place-items-center" library="_internal" name="pause"></sd-7-1-0-icon></slot></button><div class="carousel__announcement sr-only" aria-live="${!this.autoplay || this.pausedAutoplay || this.isFocused ? "polite" : "off"}" aria-atomic="true"></div><div id="scroll-container" part="scroll-container" class="${cx(
|
|
480
480
|
`carousel__slides mb-6 max-h-full w-full items-center justify-items-center`,
|
|
481
481
|
this.inverted ? "focus-visible:focus-outline-inverted" : "focus-visible:focus-outline",
|
|
482
482
|
this.fade ? "relative overflow-hidden" : `grid overflow-auto overscroll-x-contain grid-flow-col auto-rows-[100%] snap-x snap-mandatory overflow-y-hidden`
|
|
@@ -490,25 +490,25 @@ var SdCarousel = class extends SolidElement {
|
|
|
490
490
|
)}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${prevEnabled ? "false" : "true"}" @click="${prevEnabled ? (e) => {
|
|
491
491
|
this.previous();
|
|
492
492
|
this.unblockAutoplay(e, this.previousButton);
|
|
493
|
-
} : null}"><slot name="previous-icon"><sd-7-0-
|
|
493
|
+
} : null}"><slot name="previous-icon"><sd-7-1-0-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="_internal" name="${isLtr ? "chevron-bottom" : "chevron-top"}"></sd-7-1-0-icon></slot></button> ${this.variant === "dot" ? html`<div part="pagination-dot" role="tablist" class="${cx("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${map(range(pagesCount), (index) => {
|
|
494
494
|
const isActive = index + 1 === currentPage;
|
|
495
495
|
return html`<button part="pagination-item ${isActive ? "pagination-item--active" : ""}" class="${cx(
|
|
496
496
|
"carousel__pagination-item",
|
|
497
497
|
"block cursor-pointer bg-none border-0 rounded-full",
|
|
498
498
|
isActive ? "bg-accent" : "",
|
|
499
499
|
this.inverted ? "focus-within:focus-outline-inverted" : "focus-within:focus-outline"
|
|
500
|
-
)}" role="tab" tabindex="0" aria-selected="${isActive ? "true" : "false"}" aria-label="${this.localize.term("goToSlide", index + 1, pagesCount)}" @click="${(e) => {
|
|
500
|
+
)}" role="tab" tabindex="0" aria-selected="${isActive ? "true" : "false"}" aria-label="${this.localize.term("goToSlide", index + 1, pagesCount)}" @mousedown="${(e) => e.preventDefault()}" @click="${(e) => {
|
|
501
501
|
this.goToSlide(index * slidesPerMove);
|
|
502
502
|
this.unblockAutoplay(e, this.paginationItems[index]);
|
|
503
503
|
}}"><span class="${cx(
|
|
504
|
-
"h-4 w-4 block border sd-7-0-
|
|
505
|
-
this.inverted ? "sd-7-0-
|
|
504
|
+
"h-4 w-4 block border sd-7-1-0-carousel__pager-dot-border-width rounded-full transition-colors duration-slow hover:duration-fast ease-in-out",
|
|
505
|
+
this.inverted ? "sd-7-1-0-carousel__pager-dot--inverted-border hover:border-primary-200" : "border-primary hover:border-primary-500",
|
|
506
506
|
isActive && "border-none",
|
|
507
|
-
isActive ? this.inverted ? "sd-7-0-
|
|
507
|
+
isActive ? this.inverted ? "sd-7-1-0-carousel__pager-dot--inverted-background hover:sd-7-1-0-carousel__pager-dot--inverted--hovered-background" : "sd-7-1-0-carousel__pager-dot-background hover:bg-accent-550" : ""
|
|
508
508
|
)}"></span></button>`;
|
|
509
509
|
})}</div>` : html`<span part="pagination-number" class="carousel__pagination number flex gap-0.5 cursor-default select-none" aria-controls="scroll-container"><span part="pagination-item" class="${cx(
|
|
510
510
|
"w-5 text-center border-b-2",
|
|
511
|
-
this.inverted ? "text-white sd-7-0-
|
|
511
|
+
this.inverted ? "text-white sd-7-1-0-carousel--active--inverted-color-border" : "text-black sd-7-1-0-carousel--active-color-border"
|
|
512
512
|
)}">${currentPage}</span> <span part="pagination-divider" class="${cx("scale-y-[1.5]", "text-center", this.inverted ? "text-white" : "text-black")}">/</span> <span part="pagination-item" class="${cx("w-5 text-center", this.inverted ? "text-white" : "text-black")}">${pagesCount}</span></span>`} <button part="navigation-button navigation-button--next" id="carousel__navigation-button--next" ?disabled="${!nextEnabled ? true : false}" class="${cx(
|
|
513
513
|
"!ml-6 !rounded-sm sd-interactive transition-colors duration-fast ease-in-out",
|
|
514
514
|
!nextEnabled && "sd-interactive--disabled",
|
|
@@ -516,13 +516,13 @@ var SdCarousel = class extends SolidElement {
|
|
|
516
516
|
)}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${nextEnabled ? "false" : "true"}" @click="${nextEnabled ? (e) => {
|
|
517
517
|
this.next();
|
|
518
518
|
this.unblockAutoplay(e, this.nextButton);
|
|
519
|
-
} : null}"><slot name="next-icon"><sd-7-0-
|
|
519
|
+
} : null}"><slot name="next-icon"><sd-7-1-0-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="_internal" name="${isLtr ? "chevron-top" : "chevron-bottom"}"></sd-7-1-0-icon></slot></button></div></div></div>`;
|
|
520
520
|
}
|
|
521
521
|
};
|
|
522
522
|
SdCarousel.styles = [
|
|
523
523
|
...SolidElement.styles,
|
|
524
524
|
css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
525
|
-
:host{--slide-gap:var(--sl-spacing-medium, 1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:'. slides .' '. pagination .'}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1) * var(--slide-gap)) / var(--slides-per-page));grid-auto-columns:var(--slide-size);-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);scroll-padding-inline:var(--scroll-hint);padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}[part=autoplay-controls]{z-index:1}:host([fade]){--carousel-height:auto}:host([fade]) .carousel__slides{position:relative;display:block;overflow:hidden;height:var(--carousel-height)}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-7-0-
|
|
525
|
+
:host{--slide-gap:var(--sl-spacing-medium, 1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:'. slides .' '. pagination .'}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1) * var(--slide-gap)) / var(--slides-per-page));grid-auto-columns:var(--slide-size);-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);scroll-padding-inline:var(--scroll-hint);padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}[part=autoplay-controls]{z-index:1}:host([fade]){--carousel-height:auto}:host([fade]) .carousel__slides{position:relative;display:block;overflow:hidden;height:var(--carousel-height)}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-7-1-0-button::part(label){pointer-events:none;display:flex;flex:auto;align-items:center}`
|
|
526
526
|
];
|
|
527
527
|
__decorateClass([
|
|
528
528
|
query('[part~="autoplay-controls"]')
|
|
@@ -607,7 +607,7 @@ __decorateClass([
|
|
|
607
607
|
watch("autoplayInterval")
|
|
608
608
|
], SdCarousel.prototype, "handleautoplayIntervalChange", 1);
|
|
609
609
|
SdCarousel = __decorateClass([
|
|
610
|
-
customElement("sd-7-0-
|
|
610
|
+
customElement("sd-7-1-0-carousel")
|
|
611
611
|
], SdCarousel);
|
|
612
612
|
|
|
613
613
|
export {
|
|
@@ -37,8 +37,8 @@ var SdTabGroup = class extends SolidElement {
|
|
|
37
37
|
}
|
|
38
38
|
connectedCallback() {
|
|
39
39
|
const whenAllDefined = Promise.all([
|
|
40
|
-
customElements.whenDefined("sd-7-0-
|
|
41
|
-
customElements.whenDefined("sd-7-0-
|
|
40
|
+
customElements.whenDefined("sd-7-1-0-tab"),
|
|
41
|
+
customElements.whenDefined("sd-7-1-0-tab-panel")
|
|
42
42
|
]);
|
|
43
43
|
super.connectedCallback();
|
|
44
44
|
this.resizeObserver = new ResizeObserver(() => {
|
|
@@ -86,20 +86,20 @@ var SdTabGroup = class extends SolidElement {
|
|
|
86
86
|
}
|
|
87
87
|
getAllTabs(options = { includeDisabled: true }) {
|
|
88
88
|
const slot = this.shadowRoot.querySelector('slot[name="nav"]');
|
|
89
|
-
return Array.from(slot.assignedElements()).map((el) => el.tagName.toLocaleLowerCase() === "sd-7-0-
|
|
90
|
-
return el && options.includeDisabled ? el.tagName.toLowerCase() === "sd-7-0-
|
|
89
|
+
return Array.from(slot.assignedElements()).map((el) => el.tagName.toLocaleLowerCase() === "sd-7-1-0-tab" ? el : el.querySelector("sd-7-1-0-tab")).filter((el) => {
|
|
90
|
+
return el && options.includeDisabled ? el.tagName.toLowerCase() === "sd-7-1-0-tab" : el.tagName.toLowerCase() === "sd-7-1-0-tab" && !el.disabled;
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
getAllPanels() {
|
|
94
|
-
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-7-0-
|
|
94
|
+
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-7-1-0-tab-panel");
|
|
95
95
|
}
|
|
96
96
|
getActiveTab() {
|
|
97
97
|
return this.tabs.find((t) => t.matches(":focus"));
|
|
98
98
|
}
|
|
99
99
|
handleClick(event) {
|
|
100
100
|
const target = event.target;
|
|
101
|
-
const tab = target.closest("sd-7-0-
|
|
102
|
-
const tabGroup = tab == null ? void 0 : tab.closest("sd-7-0-
|
|
101
|
+
const tab = target.closest("sd-7-1-0-tab");
|
|
102
|
+
const tabGroup = tab == null ? void 0 : tab.closest("sd-7-1-0-tab-group");
|
|
103
103
|
if (tabGroup !== this) {
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
@@ -109,8 +109,8 @@ var SdTabGroup = class extends SolidElement {
|
|
|
109
109
|
}
|
|
110
110
|
handleKeyDown(event) {
|
|
111
111
|
const target = event.target;
|
|
112
|
-
const tab = target.closest("sd-7-0-
|
|
113
|
-
const tabGroup = tab == null ? void 0 : tab.closest("sd-7-0-
|
|
112
|
+
const tab = target.closest("sd-7-1-0-tab");
|
|
113
|
+
const tabGroup = tab == null ? void 0 : tab.closest("sd-7-1-0-tab-group");
|
|
114
114
|
if (tabGroup !== this) {
|
|
115
115
|
return;
|
|
116
116
|
}
|
|
@@ -137,7 +137,7 @@ var SdTabGroup = class extends SolidElement {
|
|
|
137
137
|
if (["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"].includes(event.key)) {
|
|
138
138
|
const activeEl = this.tabs.find((t) => t.matches(":focus"));
|
|
139
139
|
const isRtl = this.localize.dir() === "rtl";
|
|
140
|
-
if ((activeEl == null ? void 0 : activeEl.tagName.toLowerCase()) === "sd-7-0-
|
|
140
|
+
if ((activeEl == null ? void 0 : activeEl.tagName.toLowerCase()) === "sd-7-1-0-tab") {
|
|
141
141
|
let index = this.tabs.indexOf(activeEl);
|
|
142
142
|
if (event.key === "Home") {
|
|
143
143
|
index = 0;
|
|
@@ -258,16 +258,16 @@ var SdTabGroup = class extends SolidElement {
|
|
|
258
258
|
return html`<div part="base" class="${cx("flex flex-col rounded-none")}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}"><div part="nav" class="${cx(this.hasScrollControls && "relative py-0 px-12")}">${this.hasScrollControls ? html`<button part="scroll-button--start" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" disabled="${ifDefined(!this.canScroll.left || void 0)}" class="${cx(
|
|
259
259
|
"sd-interactive flex items-center justify-center absolute top-0 bottom-0 left-0 !outline-offset-0 border-b border-neutral-400 z-10",
|
|
260
260
|
this.localize.dir() === "rtl" && "left-auto right-0"
|
|
261
|
-
)}" @click="${this.handleScrollToStart}"><sd-7-0-
|
|
261
|
+
)}" @click="${this.handleScrollToStart}"><sd-7-1-0-icon library="_internal" name="${isRtl ? "chevron-top" : "chevron-bottom"}" label="previous" class="${cx("h-6 w-12 rotate-90 grid place-items-center")}"></sd-7-1-0-icon></button>` : ""}<div part="scroll-container" class="flex overflow-x-auto focus-visible:focus-outline !outline-offset-0"><div part="tabs" class="${cx("flex flex-auto relative flex-row")}" role="tablist">${((_a = this.activeTab) == null ? void 0 : _a.variant) !== "container" ? html`<div part="active-tab-indicator" id="indicator" class="absolute h-1 bg-accent bottom-0 transition-[transform,width] duration-medium ease-in-out z-30 navigable__current-indicator-height navigable__current-indicator-border-radius"></div>` : ""}<div part="separation" class="border-neutral-400 absolute w-full h-0.25 bottom-0 border-b z-10"></div><slot name="nav" @slotchange="${this.syncTabsAndPanels}"></slot></div></div>${this.hasScrollControls ? html`<button part="scroll-button--end" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" disabled="${ifDefined(!this.canScroll.right || void 0)}" class="${cx(
|
|
262
262
|
"sd-interactive flex items-center justify-center absolute top-0 bottom-0 right-0 !outline-offset-0 border-b border-neutral-400 z-10",
|
|
263
263
|
this.localize.dir() === "rtl" && "right-auto left-0"
|
|
264
|
-
)}" @click="${this.handleScrollToEnd}"><sd-7-0-
|
|
264
|
+
)}" @click="${this.handleScrollToEnd}"><sd-7-1-0-icon library="_internal" name="${isRtl ? "chevron-bottom" : "chevron-top"}" label="next" class="${cx("h-6 w-12 rotate-90 grid place-items-center")}"></sd-7-1-0-icon></button>` : ""}</div><slot part="body" class="${cx("block auto py-8 px-6", this.variant === "container" && "border border-neutral-400 border-t-0")}" @slotchange="${this.syncTabsAndPanels}"></slot></div>`;
|
|
265
265
|
}
|
|
266
266
|
};
|
|
267
267
|
SdTabGroup.styles = [
|
|
268
268
|
...SolidElement.styles,
|
|
269
269
|
css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
270
|
-
:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:0;width:0}::slotted(sd-7-0-
|
|
270
|
+
:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:0;width:0}::slotted(sd-7-1-0-tab-panel){--padding:1rem 0}::slotted(sd-7-1-0-tab-panel:focus-visible){outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:var(--outline-color-primary)}`
|
|
271
271
|
];
|
|
272
272
|
__decorateClass([
|
|
273
273
|
query("[part=base]")
|
|
@@ -300,7 +300,7 @@ __decorateClass([
|
|
|
300
300
|
debounce(20)
|
|
301
301
|
], SdTabGroup.prototype, "handleScroll", 1);
|
|
302
302
|
SdTabGroup = __decorateClass([
|
|
303
|
-
customElement("sd-7-0-
|
|
303
|
+
customElement("sd-7-1-0-tab-group")
|
|
304
304
|
], SdTabGroup);
|
|
305
305
|
|
|
306
306
|
export {
|
|
@@ -57,13 +57,13 @@ var SdTeaser = class extends SolidElement {
|
|
|
57
57
|
"teaser-has-headline": this.hasSlotController.test("headline")
|
|
58
58
|
};
|
|
59
59
|
return html`<div class="${cx(
|
|
60
|
-
"flex sd-7-0-
|
|
60
|
+
"flex sd-7-1-0-teaser-border-radius",
|
|
61
61
|
{
|
|
62
62
|
white: "bg-white",
|
|
63
|
-
"white border-neutral-400": "bg-white border sd-7-0-
|
|
64
|
-
"neutral-100": "sd-7-0-
|
|
63
|
+
"white border-neutral-400": "bg-white border sd-7-1-0-teaser--neutral-400-color-border",
|
|
64
|
+
"neutral-100": "sd-7-1-0-teaser--neutral-100-color-background",
|
|
65
65
|
primary: "bg-primary text-white",
|
|
66
|
-
"primary-100": "sd-7-0-
|
|
66
|
+
"primary-100": "sd-7-1-0-teaser--primary-100-color-background"
|
|
67
67
|
}[this.variant],
|
|
68
68
|
this._orientation === "vertical" && "flex-col",
|
|
69
69
|
this._orientation === "horizontal" && "flex-row gap-8",
|
|
@@ -105,7 +105,7 @@ __decorateClass([
|
|
|
105
105
|
state()
|
|
106
106
|
], SdTeaser.prototype, "_orientation", 2);
|
|
107
107
|
SdTeaser = __decorateClass([
|
|
108
|
-
customElement("sd-7-0-
|
|
108
|
+
customElement("sd-7-1-0-teaser")
|
|
109
109
|
], SdTeaser);
|
|
110
110
|
|
|
111
111
|
export {
|