@solid-design-system/components 4.0.0-next.3 → 4.0.0-next.4
Sign up to get free protection for your applications and to get access to all the features.
- package/cdn/chunks/chunk.ITRQVXFY.js +1 -0
- package/cdn/components/tab/tab.d.ts +1 -0
- package/cdn/components/tab/tab.js +1 -1
- package/cdn/custom-elements.json +1 -1
- package/cdn/solid-components.bundle.js +7 -7
- 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/_components/menu/menu.js +1 -1
- package/cdn-versioned/_components/menu/menu.styles.js +1 -1
- package/cdn-versioned/_components/menu-item/menu-item.js +2 -2
- package/cdn-versioned/chunks/chunk.24SF73MY.js +1 -1
- package/cdn-versioned/chunks/chunk.36Z2VDHI.js +1 -1
- package/cdn-versioned/chunks/chunk.3ATYVOO4.js +1 -1
- package/cdn-versioned/chunks/chunk.4HIKTDIM.js +3 -3
- package/cdn-versioned/chunks/chunk.4W3WLVGR.js +1 -1
- package/cdn-versioned/chunks/chunk.5ZDWEJDB.js +1 -1
- package/cdn-versioned/chunks/chunk.65NSSTJE.js +1 -1
- package/cdn-versioned/chunks/chunk.6JBTCFHE.js +2 -2
- package/cdn-versioned/chunks/chunk.7M7VCE7R.js +1 -1
- package/cdn-versioned/chunks/chunk.7RJ3O2FV.js +1 -1
- package/cdn-versioned/chunks/chunk.APMDRZQD.js +1 -1
- package/cdn-versioned/chunks/chunk.C2PA7CKF.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.DEX5VJGX.js +4 -4
- package/cdn-versioned/chunks/chunk.DMLGBWCL.js +1 -1
- package/cdn-versioned/chunks/chunk.DVHKKAVM.js +1 -1
- package/cdn-versioned/chunks/chunk.EWWGLHC5.js +1 -1
- package/cdn-versioned/chunks/chunk.F7J6HN76.js +1 -1
- package/cdn-versioned/chunks/chunk.FD54463O.js +1 -1
- package/cdn-versioned/chunks/chunk.FFNTXFC3.js +1 -1
- package/cdn-versioned/chunks/chunk.FX3ED655.js +1 -1
- package/cdn-versioned/chunks/chunk.GOVNZSCO.js +1 -1
- package/cdn-versioned/chunks/chunk.GQSLHWQC.js +1 -1
- package/cdn-versioned/chunks/chunk.ISEQUO4U.js +1 -1
- package/cdn-versioned/chunks/chunk.ITRQVXFY.js +1 -0
- package/cdn-versioned/chunks/chunk.IZKUI5WK.js +1 -1
- package/cdn-versioned/chunks/chunk.KMLMMBY4.js +1 -1
- package/cdn-versioned/chunks/chunk.LLXTYJXF.js +1 -1
- package/cdn-versioned/chunks/chunk.LZEFLOSA.js +1 -1
- package/cdn-versioned/chunks/chunk.MPP7HYX7.js +1 -1
- package/cdn-versioned/chunks/chunk.MX22EZXK.js +1 -1
- package/cdn-versioned/chunks/chunk.ND7BT52X.js +1 -1
- package/cdn-versioned/chunks/chunk.NUB5WHGD.js +1 -1
- package/cdn-versioned/chunks/chunk.O4UXOQEI.js +1 -1
- package/cdn-versioned/chunks/chunk.OVV7TNT2.js +1 -1
- package/cdn-versioned/chunks/chunk.PBPFKJKV.js +1 -1
- package/cdn-versioned/chunks/chunk.QFNCQQ6S.js +1 -1
- package/cdn-versioned/chunks/chunk.QNZWJACC.js +2 -2
- package/cdn-versioned/chunks/chunk.R354E6ZD.js +1 -1
- package/cdn-versioned/chunks/chunk.ROBLMI7Q.js +4 -4
- package/cdn-versioned/chunks/chunk.SNUMAAEG.js +1 -1
- package/cdn-versioned/chunks/chunk.TA7CZCP3.js +1 -1
- package/cdn-versioned/chunks/chunk.U443X4TI.js +1 -1
- package/cdn-versioned/chunks/chunk.UBFU6D5B.js +1 -1
- package/cdn-versioned/chunks/chunk.URB2K7JQ.js +1 -1
- package/cdn-versioned/chunks/chunk.VNKUGTKM.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WENTMXB2.js +1 -1
- package/cdn-versioned/chunks/chunk.WGNXYONB.js +1 -1
- package/cdn-versioned/chunks/chunk.WQAPHFVM.js +1 -1
- package/cdn-versioned/chunks/chunk.YF5WEC4R.js +2 -2
- package/cdn-versioned/chunks/chunk.ZFA2VPUT.js +1 -1
- package/cdn-versioned/chunks/chunk.ZRIABVVM.js +1 -1
- package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/cdn-versioned/components/animation/animation.d.ts +1 -1
- package/cdn-versioned/components/audio/audio.d.ts +1 -1
- package/cdn-versioned/components/badge/badge.d.ts +1 -1
- package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/cdn-versioned/components/button/button.d.ts +1 -1
- package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
- package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
- package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/cdn-versioned/components/combobox/combobox.d.ts +4 -4
- package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
- package/cdn-versioned/components/divider/divider.d.ts +1 -1
- package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
- package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
- package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/cdn-versioned/components/header/header.d.ts +1 -1
- package/cdn-versioned/components/icon/icon.d.ts +1 -1
- package/cdn-versioned/components/include/include.d.ts +1 -1
- package/cdn-versioned/components/input/input.d.ts +1 -1
- package/cdn-versioned/components/link/link.d.ts +1 -1
- package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/cdn-versioned/components/notification/notification.d.ts +1 -1
- package/cdn-versioned/components/optgroup/optgroup.d.ts +2 -2
- package/cdn-versioned/components/option/option.d.ts +1 -1
- package/cdn-versioned/components/popup/popup.d.ts +1 -1
- package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/cdn-versioned/components/radio/radio.d.ts +1 -1
- package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +2 -2
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +4 -4
- package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
- package/cdn-versioned/components/step/step.d.ts +1 -1
- package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
- package/cdn-versioned/components/switch/switch.d.ts +1 -1
- package/cdn-versioned/components/tab/tab.d.ts +2 -1
- package/cdn-versioned/components/tab/tab.js +1 -1
- package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/cdn-versioned/components/tag/tag.d.ts +1 -1
- package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
- package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/cdn-versioned/components/video/video.d.ts +1 -1
- package/cdn-versioned/custom-elements.json +202 -202
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +17 -17
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +17 -17
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +80 -80
- package/cdn-versioned/web-types.json +137 -137
- package/dist/chunks/{chunk.7BEDTYS7.js → chunk.743FPQRN.js} +8 -1
- package/dist/components/tab/tab.d.ts +1 -0
- package/dist/components/tab/tab.js +2 -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/_components/menu/menu.js +1 -1
- package/dist-versioned/_components/menu/menu.styles.js +1 -1
- package/dist-versioned/_components/menu-item/menu-item.js +2 -2
- package/dist-versioned/chunks/chunk.2IBVAXOX.js +1 -1
- package/dist-versioned/chunks/chunk.3IT4HBTI.js +1 -1
- package/dist-versioned/chunks/chunk.3LGDUVS4.js +2 -2
- package/dist-versioned/chunks/chunk.4JZQQD4L.js +3 -3
- package/dist-versioned/chunks/chunk.4QKRGAOL.js +4 -4
- package/dist-versioned/chunks/chunk.4RGGPCD5.js +2 -2
- package/dist-versioned/chunks/chunk.56SNEGI4.js +13 -13
- package/dist-versioned/chunks/chunk.65BWRJEA.js +5 -5
- package/dist-versioned/chunks/chunk.6CUAQSFA.js +2 -2
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.727ERQ4F.js +2 -2
- package/dist-versioned/chunks/{chunk.7BEDTYS7.js → chunk.743FPQRN.js} +10 -3
- package/dist-versioned/chunks/chunk.76ZNNLGN.js +1 -1
- package/dist-versioned/chunks/chunk.7OHSCBBX.js +1 -1
- package/dist-versioned/chunks/chunk.BVC5FY4L.js +13 -13
- package/dist-versioned/chunks/chunk.BXB5WF23.js +5 -5
- package/dist-versioned/chunks/chunk.D6JZ4IKM.js +1 -1
- package/dist-versioned/chunks/chunk.DQPVSTUQ.js +3 -3
- package/dist-versioned/chunks/chunk.EFEBQQHC.js +26 -26
- package/dist-versioned/chunks/chunk.EKFRFDTB.js +5 -5
- package/dist-versioned/chunks/chunk.H655M7FD.js +1 -1
- package/dist-versioned/chunks/chunk.HPR3PWAE.js +3 -3
- package/dist-versioned/chunks/chunk.I3PY3VYP.js +29 -29
- package/dist-versioned/chunks/chunk.IN3GJ5QL.js +3 -3
- package/dist-versioned/chunks/chunk.J2XBUIBC.js +2 -2
- package/dist-versioned/chunks/chunk.J7MMF6WJ.js +2 -2
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/chunk.MTSAWJLV.js +2 -2
- package/dist-versioned/chunks/chunk.NM6QP6RJ.js +2 -2
- package/dist-versioned/chunks/chunk.PDRECIYA.js +1 -1
- package/dist-versioned/chunks/chunk.PGZ5AWZ2.js +9 -9
- package/dist-versioned/chunks/chunk.PIR4YJUS.js +2 -2
- package/dist-versioned/chunks/chunk.QAZYUCBK.js +6 -6
- package/dist-versioned/chunks/chunk.QCICV36Z.js +6 -6
- package/dist-versioned/chunks/chunk.QP3SM2LZ.js +3 -3
- package/dist-versioned/chunks/chunk.R4BETATX.js +1 -1
- package/dist-versioned/chunks/chunk.RNSJAVQE.js +1 -1
- package/dist-versioned/chunks/chunk.RZRTIYXA.js +1 -1
- package/dist-versioned/chunks/chunk.SPBPHTSS.js +2 -2
- package/dist-versioned/chunks/chunk.SSH6ATRK.js +2 -2
- package/dist-versioned/chunks/chunk.TWXYFPBS.js +2 -2
- package/dist-versioned/chunks/chunk.U5NFPAOX.js +2 -2
- package/dist-versioned/chunks/chunk.U6RY25TF.js +2 -2
- package/dist-versioned/chunks/chunk.UC5E3AEF.js +1 -1
- package/dist-versioned/chunks/chunk.UDZYWRPT.js +1 -1
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.V7TQ6VJU.js +1 -1
- package/dist-versioned/chunks/chunk.VHGHICFG.js +2 -2
- package/dist-versioned/chunks/chunk.WWS3CQ2Z.js +5 -5
- package/dist-versioned/chunks/chunk.XVFJS7VS.js +5 -5
- package/dist-versioned/chunks/chunk.Z2UY62T2.js +1 -1
- package/dist-versioned/chunks/chunk.ZGPGFEVP.js +5 -5
- package/dist-versioned/chunks/chunk.ZWJI7SLE.js +11 -11
- package/dist-versioned/components/accordion/accordion.d.ts +1 -1
- package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist-versioned/components/animation/animation.d.ts +1 -1
- package/dist-versioned/components/audio/audio.d.ts +1 -1
- package/dist-versioned/components/badge/badge.d.ts +1 -1
- package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/dist-versioned/components/button/button.d.ts +1 -1
- package/dist-versioned/components/button-group/button-group.d.ts +1 -1
- package/dist-versioned/components/carousel/carousel.d.ts +1 -1
- package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist-versioned/components/combobox/combobox.d.ts +4 -4
- package/dist-versioned/components/dialog/dialog.d.ts +1 -1
- package/dist-versioned/components/divider/divider.d.ts +1 -1
- package/dist-versioned/components/drawer/drawer.d.ts +1 -1
- package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/dist-versioned/components/expandable/expandable.d.ts +1 -1
- package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/dist-versioned/components/header/header.d.ts +1 -1
- package/dist-versioned/components/icon/icon.d.ts +1 -1
- package/dist-versioned/components/include/include.d.ts +1 -1
- package/dist-versioned/components/input/input.d.ts +1 -1
- package/dist-versioned/components/link/link.d.ts +1 -1
- package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist-versioned/components/notification/notification.d.ts +1 -1
- package/dist-versioned/components/optgroup/optgroup.d.ts +2 -2
- package/dist-versioned/components/option/option.d.ts +1 -1
- package/dist-versioned/components/popup/popup.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/dist-versioned/components/radio/radio.d.ts +1 -1
- package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/dist-versioned/components/radio-group/radio-group.d.ts +2 -2
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +4 -4
- package/dist-versioned/components/spinner/spinner.d.ts +1 -1
- package/dist-versioned/components/step/step.d.ts +1 -1
- package/dist-versioned/components/step-group/step-group.d.ts +1 -1
- package/dist-versioned/components/switch/switch.d.ts +1 -1
- package/dist-versioned/components/tab/tab.d.ts +2 -1
- package/dist-versioned/components/tab/tab.js +2 -1
- package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist-versioned/components/tag/tag.d.ts +1 -1
- package/dist-versioned/components/textarea/textarea.d.ts +1 -1
- package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/dist-versioned/components/video/video.d.ts +1 -1
- package/dist-versioned/custom-elements.json +202 -202
- 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 +80 -80
- package/dist-versioned/web-types.json +137 -137
- package/package.json +1 -1
- package/cdn/chunks/chunk.MMRILMYU.js +0 -1
- package/cdn-versioned/chunks/chunk.MMRILMYU.js +0 -1
@@ -112,16 +112,16 @@ var SdNavigationItem = class extends SolidElement {
|
|
112
112
|
isAccordion ? "grow" : "w-full",
|
113
113
|
slots["description"] || this.separated ? "pb-1" : horizontalPaddingBottom,
|
114
114
|
this.calculatePaddingX
|
115
|
-
)}">${this.divider && this.vertical ? html`<sd-4-0-0-next-
|
115
|
+
)}">${this.divider && this.vertical ? html`<sd-4-0-0-next-4-divider part="divider" class="${cx("w-full transition-all absolute -top-0.25 left-0", this.calculatePaddingX)}"></sd-4-0-0-next-4-divider>` : ""} <span part="content-container" class="inline-flex items-center flex-auto">${this.separated ? html`<a class="${cx(
|
116
116
|
"mr-4 w-full inline-flex items-center pl-4 cursor-pointer relative focus-visible:focus-outline hover:bg-neutral-200 group transition-all min-h-[48px]",
|
117
117
|
!slots["description"] && "py-4"
|
118
|
-
)}" href="${ifDefined(isLink ? this.href : void 0)}" target="${ifDefined(isLink ? this.target : void 0)}" download="${ifDefined(isLink ? this.download : void 0)}"><slot part="content" class="inline"></slot></a>` : html`<slot part="content" class="inline"></slot>`} </span>${(this.chevron || slots["children"]) && this.vertical ? this.separated ? html`<button type="button" title="toggle-details" class="sd-interactive sd-interactive--reset" @click="${this.handleClickSummary}"><sd-4-0-0-next-
|
118
|
+
)}" href="${ifDefined(isLink ? this.href : void 0)}" target="${ifDefined(isLink ? this.target : void 0)}" download="${ifDefined(isLink ? this.download : void 0)}"><slot part="content" class="inline"></slot></a>` : html`<slot part="content" class="inline"></slot>`} </span>${(this.chevron || slots["children"]) && this.vertical ? this.separated ? html`<button type="button" title="toggle-details" class="sd-interactive sd-interactive--reset" @click="${this.handleClickSummary}"><sd-4-0-0-next-4-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${cx(
|
119
119
|
"mr-4 h-6 w-6 transition-all",
|
120
120
|
isAccordion || this.separated ? this.open ? "rotate-180" : "rotate-0" : "rotate-[270deg]"
|
121
|
-
)}"></sd-4-0-0-next-
|
121
|
+
)}"></sd-4-0-0-next-4-icon></button>` : html`<sd-4-0-0-next-4-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${cx(
|
122
122
|
"h-6 w-6 ml-2 transition-all",
|
123
123
|
isAccordion ? this.open ? "rotate-180" : "rotate-0" : "rotate-[270deg]"
|
124
|
-
)}"></sd-4-0-0-next-
|
124
|
+
)}"></sd-4-0-0-next-4-icon>` : ""} </span>${slots["description"] && this.vertical ? html`<slot name="description" part="description" class="${cx(
|
125
125
|
"inline-block text-sm text-left text-black",
|
126
126
|
isAccordion || this.separated ? "grow" : "w-full",
|
127
127
|
this.separated ? "px-4" : this.calculatePaddingX,
|
@@ -186,7 +186,7 @@ __decorateClass([
|
|
186
186
|
property({ type: Boolean, reflect: true })
|
187
187
|
], SdNavigationItem.prototype, "separated", 2);
|
188
188
|
SdNavigationItem = __decorateClass([
|
189
|
-
customElement("sd-4-0-0-next-
|
189
|
+
customElement("sd-4-0-0-next-4-navigation-item")
|
190
190
|
], SdNavigationItem);
|
191
191
|
|
192
192
|
export {
|
@@ -131,12 +131,12 @@ var SdScrollable = class extends SolidElement {
|
|
131
131
|
this.orientation === "auto" && "scroll-auto overflow-auto",
|
132
132
|
this.scrollbars ? "show-scrollbars" : "hide-scrollbars",
|
133
133
|
this.inset ? "p-4" : ""
|
134
|
-
)}" @scroll="${this.updateScrollIndicatorVisibility}" tabindex="0"><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons ? html`${this.isScrollHorizontalEnabled ? html`${this.canScroll.left ? html`<div part="button-left" class="absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8"><button part="button-start" class="${cx(scrollButtonClasses)}" @click="${(e) => this.handleScroll("left", e)}"><slot name="icon-start"><sd-4-0-0-next-
|
134
|
+
)}" @scroll="${this.updateScrollIndicatorVisibility}" tabindex="0"><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons ? html`${this.isScrollHorizontalEnabled ? html`${this.canScroll.left ? html`<div part="button-left" class="absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8"><button part="button-start" class="${cx(scrollButtonClasses)}" @click="${(e) => this.handleScroll("left", e)}"><slot name="icon-start"><sd-4-0-0-next-4-icon library="system" name="chevron-up" class="rotate-[-90deg]" label="${this.localize.term("scrollToStart")}"></sd-4-0-0-next-4-icon></slot></button></div>` : null} ${this.canScroll.right ? html`<div part="button-right" class="absolute z-10 flex items-center justify-center top-0 right-0 h-full w-8"><button part="button-end" class="${cx(scrollButtonClasses)}" @click="${(e) => this.handleScroll("right", e)}"><slot name="icon-end"><sd-4-0-0-next-4-icon library="system" name="chevron-down" class="rotate-[-90deg]" label="${this.localize.term("scrollToEnd")}"></sd-4-0-0-next-4-icon></slot></button></div>` : null}` : null} ${this.isScrollVerticalEnabled ? html`${this.canScroll.up ? html`<div part="button-top" class="absolute z-10 flex items-center justify-center top-0 left-0 w-full h-8"><button part="button-start" class="${cx(scrollButtonClasses)}" @click="${(e) => this.handleScroll("up", e)}"><slot name="icon-start"><sd-4-0-0-next-4-icon library="system" name="chevron-up" label="${this.localize.term("scrollToStart")}"></sd-4-0-0-next-4-icon></slot></button></div>` : null} ${this.canScroll.down ? html`<div part="button-bottom" class="absolute z-10 flex items-center justify-center bottom-0 left-0 w-full h-8"><button part="button-end" class="${cx(scrollButtonClasses)}" @click="${(e) => this.handleScroll("down", e)}"><slot name="icon-end"><sd-4-0-0-next-4-icon library="system" name="chevron-down" label="${this.localize.term("scrollToEnd")}"></sd-4-0-0-next-4-icon></slot></button></div>` : null}` : null}` : null} ${this.shadows ? html`${this.isScrollHorizontalEnabled ? html`${this.canScroll.left ? html`<div part="shadow-left" class="${scrollShadowClasses} left top-0 left-0 w-[6px] h-full"></div>` : null} ${this.canScroll.right ? html`<div part="shadow-right" class="${scrollShadowClasses} right top-0 right-0 w-[6px] h-full"></div>` : null}` : null} ${this.isScrollVerticalEnabled ? html`${this.canScroll.up ? html`<div part="shadow-top" class="${scrollShadowClasses} top top-0 left-0 w-full h-[6px]"></div>` : null} ${this.canScroll.down ? html`<div part="shadow-bottom" class="${scrollShadowClasses} bottom bottom-0 left-0 w-full h-[6px]"></div>` : null}` : null}` : null}`;
|
135
135
|
}
|
136
136
|
};
|
137
137
|
SdScrollable.styles = [
|
138
138
|
...SolidElement.styles,
|
139
|
-
css`:host{--gradient-color:hsla(0,0%,100%,0);--gradient:var(--gradient-color) 0%,#fff 80%,#fff 100%;display:flex;overflow:hidden;position:relative}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-border-radius-sm,.125rem)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1,.25rem);width:var(--sd-spacing-1,.25rem)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-right]{background:linear-gradient(90deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-top]{background:linear-gradient(0deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-bottom]{background:linear-gradient(180deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}.sd-4-0-0-next-
|
139
|
+
css`:host{--gradient-color:hsla(0,0%,100%,0);--gradient:var(--gradient-color) 0%,#fff 80%,#fff 100%;display:flex;overflow:hidden;position:relative}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-border-radius-sm,.125rem)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1,.25rem);width:var(--sd-spacing-1,.25rem)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-right]{background:linear-gradient(90deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-top]{background:linear-gradient(0deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-bottom]{background:linear-gradient(180deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}.sd-4-0-0-next-4-icon--top{align-self:flex-start}.sd-4-0-0-next-4-icon--down{align-self:flex-end}`
|
140
140
|
];
|
141
141
|
__decorateClass([
|
142
142
|
property({ type: String, reflect: true })
|
@@ -169,7 +169,7 @@ __decorateClass([
|
|
169
169
|
state()
|
170
170
|
], SdScrollable.prototype, "isKeyboardNavigation", 2);
|
171
171
|
SdScrollable = __decorateClass([
|
172
|
-
customElement("sd-4-0-0-next-
|
172
|
+
customElement("sd-4-0-0-next-4-scrollable")
|
173
173
|
], SdScrollable);
|
174
174
|
|
175
175
|
export {
|
@@ -62,7 +62,7 @@ var SdCombobox = class extends SolidElement {
|
|
62
62
|
constructor() {
|
63
63
|
super(...arguments);
|
64
64
|
this.formControlController = new FormControlController(this, {
|
65
|
-
assumeInteractionOn: ["sd-blur", "sd-4-0-0-next-
|
65
|
+
assumeInteractionOn: ["sd-blur", "sd-4-0-0-next-4-input"]
|
66
66
|
});
|
67
67
|
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
68
68
|
this.localize = new LocalizeController(this);
|
@@ -102,11 +102,11 @@ var SdCombobox = class extends SolidElement {
|
|
102
102
|
return normalizedOption.includes(normalizedQuery) || normalizedOptionLabel.includes(normalizedQuery);
|
103
103
|
};
|
104
104
|
this.getTag = (option) => {
|
105
|
-
return html`<sd-4-0-0-next-
|
105
|
+
return html`<sd-4-0-0-next-4-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
106
106
|
base:tag__base,
|
107
107
|
content:tag__content,
|
108
108
|
removable-indicator:tag__removable-indicator,
|
109
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-4-0-0-next-
|
109
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-4-0-0-next-4-tag>`;
|
110
110
|
};
|
111
111
|
this.handleDocumentFocusIn = (event) => {
|
112
112
|
const path = event.composedPath();
|
@@ -229,9 +229,9 @@ var SdCombobox = class extends SolidElement {
|
|
229
229
|
return html`${typeof optionHtml === "string" ? unsafeHTML(optionHtml) : optionHtml}`;
|
230
230
|
};
|
231
231
|
return this.filteredOptions.map((item) => {
|
232
|
-
if (item.tagName.toLowerCase() === "sd-4-0-0-next-
|
232
|
+
if (item.tagName.toLowerCase() === "sd-4-0-0-next-4-optgroup") {
|
233
233
|
Array.from(item.children).forEach((option) => {
|
234
|
-
if (option.tagName.toLowerCase() === "sd-4-0-0-next-
|
234
|
+
if (option.tagName.toLowerCase() === "sd-4-0-0-next-4-option") {
|
235
235
|
renderOption(option);
|
236
236
|
}
|
237
237
|
});
|
@@ -251,11 +251,11 @@ var SdCombobox = class extends SolidElement {
|
|
251
251
|
});
|
252
252
|
} else {
|
253
253
|
return [
|
254
|
-
html`<sd-4-0-0-next-
|
254
|
+
html`<sd-4-0-0-next-4-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
255
255
|
base:tag__base,
|
256
256
|
content:tag__content,
|
257
257
|
removable-indicator:tag__removable-indicator,
|
258
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-4-0-0-next-
|
258
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-4-0-0-next-4-tag>`
|
259
259
|
];
|
260
260
|
}
|
261
261
|
}
|
@@ -362,7 +362,7 @@ var SdCombobox = class extends SolidElement {
|
|
362
362
|
}
|
363
363
|
handleOptionClick(event) {
|
364
364
|
const target = event.target;
|
365
|
-
const option = target.closest("sd-4-0-0-next-
|
365
|
+
const option = target.closest("sd-4-0-0-next-4-option");
|
366
366
|
const oldValue = this.value;
|
367
367
|
if (option && !option.disabled) {
|
368
368
|
if (this.multiple) {
|
@@ -414,7 +414,7 @@ var SdCombobox = class extends SolidElement {
|
|
414
414
|
scrollIntoView(this.getCurrentOption(), this.listbox, "vertical", "auto");
|
415
415
|
}
|
416
416
|
getAllFilteredOptions() {
|
417
|
-
return [...this.filteredWrapper.querySelectorAll("sd-4-0-0-next-
|
417
|
+
return [...this.filteredWrapper.querySelectorAll("sd-4-0-0-next-4-option")];
|
418
418
|
}
|
419
419
|
getCurrentOption() {
|
420
420
|
return this.getAllFilteredOptions().find((option) => option.current);
|
@@ -538,7 +538,7 @@ var SdCombobox = class extends SolidElement {
|
|
538
538
|
const clonedOption = option.cloneNode(true);
|
539
539
|
clonedOption.current = clonedOption.value === ((_a = this.lastOption) == null ? void 0 : _a.value);
|
540
540
|
clonedOption.selected = option.selected;
|
541
|
-
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-4-0-0-next-
|
541
|
+
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-4-0-0-next-4-optgroup";
|
542
542
|
if (!hasOptgroup) {
|
543
543
|
return clonedOption;
|
544
544
|
}
|
@@ -568,7 +568,7 @@ var SdCombobox = class extends SolidElement {
|
|
568
568
|
handleMouseLeave() {
|
569
569
|
this.hasHover = false;
|
570
570
|
}
|
571
|
-
/** Receives incoming event detail from sd-4-0-0-next-
|
571
|
+
/** Receives incoming event detail from sd-4-0-0-next-4-popup and updates local state for conditional styling. */
|
572
572
|
handleCurrentPlacement(e) {
|
573
573
|
const incomingPlacement = e.detail;
|
574
574
|
if (incomingPlacement) {
|
@@ -580,7 +580,7 @@ var SdCombobox = class extends SolidElement {
|
|
580
580
|
}
|
581
581
|
handleUseTagsChange() {
|
582
582
|
const allOptions = this.getAllFilteredOptions();
|
583
|
-
if (customElements.get("sd-4-0-0-next-
|
583
|
+
if (customElements.get("sd-4-0-0-next-4-option")) {
|
584
584
|
allOptions.forEach((option) => {
|
585
585
|
option.checkbox = this.multiple;
|
586
586
|
});
|
@@ -706,8 +706,8 @@ var SdCombobox = class extends SolidElement {
|
|
706
706
|
return filterOnlyOptgroups(getAssignedElementsForSlot(this.defaultSlot));
|
707
707
|
}
|
708
708
|
async handleDefaultSlotChange() {
|
709
|
-
if (!customElements.get("sd-4-0-0-next-
|
710
|
-
customElements.whenDefined("sd-4-0-0-next-
|
709
|
+
if (!customElements.get("sd-4-0-0-next-4-option")) {
|
710
|
+
customElements.whenDefined("sd-4-0-0-next-4-option").then(() => this.handleDefaultSlotChange());
|
711
711
|
return;
|
712
712
|
}
|
713
713
|
const slottedOptions = this.getSlottedOptions();
|
@@ -716,10 +716,10 @@ var SdCombobox = class extends SolidElement {
|
|
716
716
|
if (this.multiple) {
|
717
717
|
option.checkbox = true;
|
718
718
|
}
|
719
|
-
option.id = option.id || `sd-4-0-0-next-
|
719
|
+
option.id = option.id || `sd-4-0-0-next-4-combobox-option-${index}`;
|
720
720
|
});
|
721
721
|
slottedOptgroups.forEach((optgroup, index) => {
|
722
|
-
optgroup.id = optgroup.id || `sd-4-0-0-next-
|
722
|
+
optgroup.id = optgroup.id || `sd-4-0-0-next-4-combobox-optgroup-${index}`;
|
723
723
|
});
|
724
724
|
await this.syncSelectedOptionsAndValue();
|
725
725
|
if (this.multiple) {
|
@@ -770,7 +770,7 @@ var SdCombobox = class extends SolidElement {
|
|
770
770
|
default: "border-neutral-800"
|
771
771
|
}[selectState],
|
772
772
|
this.open && (this.currentPlacement === "bottom" ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
|
773
|
-
)}"></div><sd-4-0-0-next-
|
773
|
+
)}"></div><sd-4-0-0-next-4-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
774
774
|
"inline-flex relative w-full",
|
775
775
|
this.currentPlacement === "bottom" ? "origin-top" : "origin-bottom"
|
776
776
|
)}" placement="${this.placement}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
@@ -787,28 +787,28 @@ var SdCombobox = class extends SolidElement {
|
|
787
787
|
"appearance-none outline-none bg-transparent flex-auto min-w-0",
|
788
788
|
cursorStyles,
|
789
789
|
this.selectedTextLabel && !this.multiple ? "placeholder-black" : "placeholder-neutral-700"
|
790
|
-
)}" type="text" placeholder="${this.selectedTextLabel && !this.multiple ? this.selectedTextLabel : this.placeholder}" .disabled="${this.disabled}" .value="${this.displayInputValue}" autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded="${this.open}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-autocomplete="list" aria-owns="listbox" @input="${this.handleInput}" @change="${this.handleChange}"><div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map((option) => option == null ? void 0 : option.getTextLabel()).join(", ")}</div><input class="${cx("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10", cursorStyles)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value) ? this.value.join(", ") : this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${() => this.focus()}" @invalid="${this.handleInvalid}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("flex justify-center", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-0-0-next-
|
790
|
+
)}" type="text" placeholder="${this.selectedTextLabel && !this.multiple ? this.selectedTextLabel : this.placeholder}" .disabled="${this.disabled}" .value="${this.displayInputValue}" autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded="${this.open}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-autocomplete="list" aria-owns="listbox" @input="${this.handleInput}" @change="${this.handleChange}"><div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map((option) => option == null ? void 0 : option.getTextLabel()).join(", ")}</div><input class="${cx("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10", cursorStyles)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value) ? this.value.join(", ") : this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${() => this.focus()}" @invalid="${this.handleInvalid}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("flex justify-center", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-0-0-next-4-icon class="${cx("text-icon-fill-neutral-800", iconSize)}" name="closing-round" library="system"></sd-4-0-0-next-4-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-4-0-0-next-4-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="system" name="risk"></sd-4-0-0-next-4-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-4-0-0-next-4-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="system" name="status-check"></sd-4-0-0-next-4-icon>` : ""}<slot name="right" part="right" class="${cx(
|
791
791
|
"inline-flex ml-2 leading-[0]",
|
792
792
|
this.disabled ? "text-neutral-500" : "text-primary",
|
793
793
|
iconSize
|
794
|
-
)}"><sd-4-0-0-next-
|
794
|
+
)}"><sd-4-0-0-next-4-icon class="${cx("transition-all", this.open ? "rotate-180" : "rotate-0")}" name="chevron-down" part="chevron" library="system" color="currentColor"></sd-4-0-0-next-4-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${cx(
|
795
795
|
"bg-white px-2 py-3 relative border-primary overflow-y-auto",
|
796
796
|
this.open && "shadow",
|
797
797
|
this.currentPlacement === "bottom" ? "border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default" : "border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default"
|
798
|
-
)}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox" class="overflow-y-scroll">${this.filteredOptions.length === 0 ? html`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>` : this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-4-0-0-next-
|
798
|
+
)}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox" class="overflow-y-scroll">${this.filteredOptions.length === 0 ? html`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>` : this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-4-0-0-next-4-popup></div><div part="form-control-help-text" id="help-text" class="text-sm text-neutral-700" aria-hidden="${!hasHelpText}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`;
|
799
799
|
}
|
800
800
|
};
|
801
801
|
SdCombobox.dependencies = {
|
802
|
-
"sd-4-0-0-next-
|
803
|
-
"sd-4-0-0-next-
|
804
|
-
"sd-4-0-0-next-
|
802
|
+
"sd-4-0-0-next-4-icon": SdIcon,
|
803
|
+
"sd-4-0-0-next-4-popup": SdPopup,
|
804
|
+
"sd-4-0-0-next-4-tag": SdTag
|
805
805
|
};
|
806
806
|
SdCombobox.styles = [
|
807
807
|
...SolidElement.styles,
|
808
|
-
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-4-0-0-next-
|
808
|
+
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-4-0-0-next-4-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-4-0-0-next-4-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-4-0-0-next-4-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-4-0-0-next-4-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-4-0-0-next-4-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}[part=filtered-listbox] sd-4-0-0-next-4-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;color:inherit;font-weight:700}`
|
809
809
|
];
|
810
810
|
__decorateClass([
|
811
|
-
query("sd-4-0-0-next-
|
811
|
+
query("sd-4-0-0-next-4-popup")
|
812
812
|
], SdCombobox.prototype, "popup", 2);
|
813
813
|
__decorateClass([
|
814
814
|
query('[part="combobox"]')
|
@@ -957,7 +957,7 @@ __decorateClass([
|
|
957
957
|
watch("open", { waitUntilFirstUpdate: true })
|
958
958
|
], SdCombobox.prototype, "handleOpenChange", 1);
|
959
959
|
SdCombobox = __decorateClass([
|
960
|
-
customElement("sd-4-0-0-next-
|
960
|
+
customElement("sd-4-0-0-next-4-combobox")
|
961
961
|
], SdCombobox);
|
962
962
|
setDefaultAnimation("combobox.show", {
|
963
963
|
keyframes: [
|
@@ -24,11 +24,11 @@ var SdOptgroup = class extends SolidElement {
|
|
24
24
|
this.label = "";
|
25
25
|
}
|
26
26
|
/**
|
27
|
-
* Syncs the disabled prop for all slotted sd-4-0-0-next-
|
27
|
+
* Syncs the disabled prop for all slotted sd-4-0-0-next-4-options when it is triggered
|
28
28
|
*/
|
29
29
|
handleDisableOptions() {
|
30
30
|
const { disabled } = this;
|
31
|
-
this.defaultSlot.assignedElements().filter((opt) => opt.tagName.toLowerCase() === "sd-4-0-0-next-
|
31
|
+
this.defaultSlot.assignedElements().filter((opt) => opt.tagName.toLowerCase() === "sd-4-0-0-next-4-option").forEach((opt) => {
|
32
32
|
opt.disabled = disabled;
|
33
33
|
});
|
34
34
|
}
|
@@ -37,11 +37,11 @@ var SdOptgroup = class extends SolidElement {
|
|
37
37
|
}
|
38
38
|
render() {
|
39
39
|
const { disabled } = this;
|
40
|
-
return html`<div role="${disabled ? "presentation" : "group"}" class="${cx(this.disabled ? "text-neutral-500" : "")}" part="base" aria-labelledby="group-label"><sd-4-0-0-next-
|
40
|
+
return html`<div role="${disabled ? "presentation" : "group"}" class="${cx(this.disabled ? "text-neutral-500" : "")}" part="base" aria-labelledby="group-label"><sd-4-0-0-next-4-divider id="divider" class="pt-2 pb-4" part="divider"></sd-4-0-0-next-4-divider><div part="label-container" class="${cx(this.disabled ? "text-neutral-500" : "text-black")} px-4 font-bold text-left" role="presentation" id="group-label"><slot name="label"><span>${this.label}</span></slot></div><div role="group" part="options"><slot @slotchange="${this.handleDisableOptions}"></slot></div></div>`;
|
41
41
|
}
|
42
42
|
};
|
43
43
|
SdOptgroup.dependencies = {
|
44
|
-
"sd-4-0-0-next-
|
44
|
+
"sd-4-0-0-next-4-divider": SdDivider
|
45
45
|
};
|
46
46
|
SdOptgroup.styles = [
|
47
47
|
...SolidElement.styles,
|
@@ -60,7 +60,7 @@ __decorateClass([
|
|
60
60
|
watch("disabled", { waitUntilFirstUpdate: true })
|
61
61
|
], SdOptgroup.prototype, "handleDisabledChange", 1);
|
62
62
|
SdOptgroup = __decorateClass([
|
63
|
-
customElement("sd-4-0-0-next-
|
63
|
+
customElement("sd-4-0-0-next-4-optgroup")
|
64
64
|
], SdOptgroup);
|
65
65
|
|
66
66
|
export {
|
@@ -137,7 +137,7 @@ __decorateClass([
|
|
137
137
|
state()
|
138
138
|
], SdBrandshape.prototype, "componentBreakpoint", 2);
|
139
139
|
SdBrandshape = __decorateClass([
|
140
|
-
customElement("sd-4-0-0-next-
|
140
|
+
customElement("sd-4-0-0-next-4-brandshape")
|
141
141
|
], SdBrandshape);
|
142
142
|
|
143
143
|
export {
|
@@ -111,7 +111,7 @@ var SdCheckbox = class extends SolidElement {
|
|
111
111
|
render() {
|
112
112
|
const checkboxState = this.disabled && this.indeterminate ? "disabledIndeterminate" : this.disabled && this.checked ? "disabledChecked" : this.disabled ? "disabled" : this.showInvalidStyle && this.indeterminate ? "invalidIndeterminate" : this.showInvalidStyle ? "invalid" : this.checked || this.indeterminate ? "filled" : "default";
|
113
113
|
return html`<label part="base" class="${cx(
|
114
|
-
"sd-4-0-0-next-
|
114
|
+
"sd-4-0-0-next-4-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",
|
115
115
|
this.disabled && "hover:cursor-not-allowed",
|
116
116
|
{
|
117
117
|
/* sizes, fonts */
|
@@ -137,7 +137,7 @@ var SdCheckbox = class extends SolidElement {
|
|
137
137
|
filled: "border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",
|
138
138
|
default: "border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"
|
139
139
|
}[checkboxState]
|
140
|
-
)}">${this.checked ? html`<sd-4-0-0-next-
|
140
|
+
)}">${this.checked ? html`<sd-4-0-0-next-4-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-4-0-0-next-4-icon>` : ""} ${!this.checked && this.indeterminate ? html`<sd-4-0-0-next-4-icon part="indeterminate-icon" class="text-white w-3 h-3" library="system" name="status-minus"></sd-4-0-0-next-4-icon>` : ""} </span><span part="label" id="label" class="${cx(
|
141
141
|
"select-none inline-block ml-2",
|
142
142
|
this.disabled ? "text-neutral-500" : this.showInvalidStyle ? "text-error" : "text-black"
|
143
143
|
)}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`;
|
@@ -196,7 +196,7 @@ __decorateClass([
|
|
196
196
|
watch(["checked", "indeterminate"], { waitUntilFirstUpdate: true })
|
197
197
|
], SdCheckbox.prototype, "handleStateChange", 1);
|
198
198
|
SdCheckbox = __decorateClass([
|
199
|
-
customElement("sd-4-0-0-next-
|
199
|
+
customElement("sd-4-0-0-next-4-checkbox")
|
200
200
|
], SdCheckbox);
|
201
201
|
|
202
202
|
export {
|
@@ -53,7 +53,7 @@ var SdSelect = class extends SolidElement {
|
|
53
53
|
constructor() {
|
54
54
|
super(...arguments);
|
55
55
|
this.formControlController = new FormControlController(this, {
|
56
|
-
assumeInteractionOn: ["sd-blur", "sd-4-0-0-next-
|
56
|
+
assumeInteractionOn: ["sd-blur", "sd-4-0-0-next-4-input"]
|
57
57
|
});
|
58
58
|
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
59
59
|
this.localize = new LocalizeController(this);
|
@@ -85,11 +85,11 @@ var SdSelect = class extends SolidElement {
|
|
85
85
|
this.styleOnValid = false;
|
86
86
|
this.hoist = false;
|
87
87
|
this.getTag = (option) => {
|
88
|
-
return html`<sd-4-0-0-next-
|
88
|
+
return html`<sd-4-0-0-next-4-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
89
89
|
base:tag__base,
|
90
90
|
content:tag__content,
|
91
91
|
removable-indicator:tag__removable-indicator,
|
92
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-4-0-0-next-
|
92
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-4-0-0-next-4-tag>`;
|
93
93
|
};
|
94
94
|
this.handleDocumentFocusIn = (event) => {
|
95
95
|
const path = event.composedPath();
|
@@ -100,7 +100,7 @@ var SdSelect = class extends SolidElement {
|
|
100
100
|
this.handleDocumentKeyDown = (event) => {
|
101
101
|
const target = event.target;
|
102
102
|
const isClearButton = target.closest(".select__clear") !== null;
|
103
|
-
const isIconButton = target.closest("sd-4-0-0-next-
|
103
|
+
const isIconButton = target.closest("sd-4-0-0-next-4-icon-button") !== null;
|
104
104
|
if (isClearButton || isIconButton) {
|
105
105
|
return;
|
106
106
|
}
|
@@ -233,8 +233,8 @@ var SdSelect = class extends SolidElement {
|
|
233
233
|
if (event.key === "Backspace" && this.multiple) {
|
234
234
|
event.stopPropagation();
|
235
235
|
const tagParent = (_a = event.currentTarget) == null ? void 0 : _a.parentElement;
|
236
|
-
const previousTag = (_b = tagParent == null ? void 0 : tagParent.previousElementSibling) == null ? void 0 : _b.querySelector("sd-4-0-0-next-
|
237
|
-
const nextTag = (_c = tagParent == null ? void 0 : tagParent.nextElementSibling) == null ? void 0 : _c.querySelector("sd-4-0-0-next-
|
236
|
+
const previousTag = (_b = tagParent == null ? void 0 : tagParent.previousElementSibling) == null ? void 0 : _b.querySelector("sd-4-0-0-next-4-tag");
|
237
|
+
const nextTag = (_c = tagParent == null ? void 0 : tagParent.nextElementSibling) == null ? void 0 : _c.querySelector("sd-4-0-0-next-4-tag");
|
238
238
|
this.handleTagRemove(new CustomEvent("sd-remove"), option);
|
239
239
|
this.updateComplete.then(() => {
|
240
240
|
if (nextTag) {
|
@@ -253,7 +253,7 @@ var SdSelect = class extends SolidElement {
|
|
253
253
|
this.handleTagRemove(new CustomEvent("sd-remove"), this.selectedOptions[this.selectedOptions.length - 1]);
|
254
254
|
this.updateComplete.then(() => {
|
255
255
|
var _a;
|
256
|
-
const tags = (_a = this.shadowRoot) == null ? void 0 : _a.querySelectorAll("sd-4-0-0-next-
|
256
|
+
const tags = (_a = this.shadowRoot) == null ? void 0 : _a.querySelectorAll("sd-4-0-0-next-4-tag");
|
257
257
|
if (tags && tags.length > 0) {
|
258
258
|
tags == null ? void 0 : tags[(tags == null ? void 0 : tags.length) - 1].focus();
|
259
259
|
} else {
|
@@ -298,7 +298,7 @@ var SdSelect = class extends SolidElement {
|
|
298
298
|
}
|
299
299
|
handleOptionClick(event) {
|
300
300
|
const target = event.target;
|
301
|
-
const option = target.closest("sd-4-0-0-next-
|
301
|
+
const option = target.closest("sd-4-0-0-next-4-option");
|
302
302
|
const oldValue = this.value;
|
303
303
|
if (option && !option.disabled) {
|
304
304
|
if (this.multiple) {
|
@@ -323,7 +323,7 @@ var SdSelect = class extends SolidElement {
|
|
323
323
|
const allOptions = this.getAllOptions();
|
324
324
|
const value = Array.isArray(this.value) ? this.value : [this.value];
|
325
325
|
const values = [];
|
326
|
-
if (customElements.get("sd-4-0-0-next-
|
326
|
+
if (customElements.get("sd-4-0-0-next-4-option")) {
|
327
327
|
allOptions.forEach((option) => {
|
328
328
|
if (this.multiple) {
|
329
329
|
option.checkbox = true;
|
@@ -332,7 +332,7 @@ var SdSelect = class extends SolidElement {
|
|
332
332
|
});
|
333
333
|
this.setSelectedOptions(allOptions.filter((el) => value.includes(el.value)));
|
334
334
|
} else {
|
335
|
-
customElements.whenDefined("sd-4-0-0-next-
|
335
|
+
customElements.whenDefined("sd-4-0-0-next-4-option").then(() => this.handleDefaultSlotChange());
|
336
336
|
}
|
337
337
|
}
|
338
338
|
handleTagRemove(event, option) {
|
@@ -349,13 +349,13 @@ var SdSelect = class extends SolidElement {
|
|
349
349
|
});
|
350
350
|
}
|
351
351
|
}
|
352
|
-
// Gets an array of all <sd-4-0-0-next-
|
352
|
+
// Gets an array of all <sd-4-0-0-next-4-option> elements
|
353
353
|
getAllOptions() {
|
354
|
-
return [...this.querySelectorAll("sd-4-0-0-next-
|
354
|
+
return [...this.querySelectorAll("sd-4-0-0-next-4-option")];
|
355
355
|
}
|
356
|
-
// Gets the first <sd-4-0-0-next-
|
356
|
+
// Gets the first <sd-4-0-0-next-4-option> element
|
357
357
|
getFirstOption() {
|
358
|
-
return this.querySelector("sd-4-0-0-next-
|
358
|
+
return this.querySelector("sd-4-0-0-next-4-option");
|
359
359
|
}
|
360
360
|
// Sets the current option, which is the option the user is currently interacting with (e.g. via keyboard). Only one
|
361
361
|
// option may be "current" at a time.
|
@@ -438,11 +438,11 @@ var SdSelect = class extends SolidElement {
|
|
438
438
|
});
|
439
439
|
} else {
|
440
440
|
return [
|
441
|
-
html`<sd-4-0-0-next-
|
441
|
+
html`<sd-4-0-0-next-4-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
442
442
|
base:tag__base,
|
443
443
|
content:tag__content,
|
444
444
|
removable-indicator:tag__removable-indicator,
|
445
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-4-0-0-next-
|
445
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-4-0-0-next-4-tag>`
|
446
446
|
];
|
447
447
|
}
|
448
448
|
}
|
@@ -457,7 +457,7 @@ var SdSelect = class extends SolidElement {
|
|
457
457
|
handleMouseLeave() {
|
458
458
|
this.hasHover = false;
|
459
459
|
}
|
460
|
-
/** Receives incoming event detail from sd-4-0-0-next-
|
460
|
+
/** Receives incoming event detail from sd-4-0-0-next-4-popup and updates local state for conditional styling. */
|
461
461
|
handleCurrentPlacement(e) {
|
462
462
|
const incomingPlacement = e.detail;
|
463
463
|
if (incomingPlacement) {
|
@@ -466,7 +466,7 @@ var SdSelect = class extends SolidElement {
|
|
466
466
|
}
|
467
467
|
handleUseTagsChange() {
|
468
468
|
const allOptions = this.getAllOptions();
|
469
|
-
if (customElements.get("sd-4-0-0-next-
|
469
|
+
if (customElements.get("sd-4-0-0-next-4-option")) {
|
470
470
|
allOptions.forEach((option) => {
|
471
471
|
option.checkbox = this.multiple;
|
472
472
|
});
|
@@ -600,7 +600,7 @@ var SdSelect = class extends SolidElement {
|
|
600
600
|
default: "border-neutral-800"
|
601
601
|
}[selectState],
|
602
602
|
this.open && (this.currentPlacement === "bottom" ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
|
603
|
-
)}"></div><sd-4-0-0-next-
|
603
|
+
)}"></div><sd-4-0-0-next-4-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
604
604
|
"inline-flex relative w-full",
|
605
605
|
this.currentPlacement === "bottom" ? "origin-top" : "origin-bottom"
|
606
606
|
)}" placement="${this.placement}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
@@ -617,35 +617,35 @@ var SdSelect = class extends SolidElement {
|
|
617
617
|
"appearance-none outline-none flex-grow bg-transparent w-full placeholder-neutral-700",
|
618
618
|
cursorStyles,
|
619
619
|
this.multiple && this.useTags && this.value.length > 0 ? "hidden" : ""
|
620
|
-
)}" type="text" placeholder="${this.placeholder}" .disabled="${this.disabled}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open ? "true" : "false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled ? "true" : "false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="help-text invalid-message" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${this.multiple && this.useTags ? html`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>` : ""}<div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map((option) => option == null ? void 0 : option.getTextLabel()).join(", ")}</div><input class="${cx("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10", cursorStyles)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value) ? this.value.join(", ") : this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${() => this.focus()}" @invalid="${this.handleInvalid}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("select__clear flex justify-center", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-0-0-next-
|
620
|
+
)}" type="text" placeholder="${this.placeholder}" .disabled="${this.disabled}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open ? "true" : "false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled ? "true" : "false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="help-text invalid-message" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${this.multiple && this.useTags ? html`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>` : ""}<div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map((option) => option == null ? void 0 : option.getTextLabel()).join(", ")}</div><input class="${cx("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10", cursorStyles)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value) ? this.value.join(", ") : this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${() => this.focus()}" @invalid="${this.handleInvalid}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("select__clear flex justify-center", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-0-0-next-4-icon class="${cx("text-icon-fill-neutral-800", iconSize)}" library="system" name="closing-round"></sd-4-0-0-next-4-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-4-0-0-next-4-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="system" name="risk"></sd-4-0-0-next-4-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-4-0-0-next-4-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="system" name="status-check"></sd-4-0-0-next-4-icon>` : ""}<slot name="expand-icon" part="expand-icon" class="${cx(
|
621
621
|
"inline-flex ml-2 transition-all",
|
622
622
|
this.open ? "rotate-180" : "rotate-0",
|
623
623
|
this.disabled ? "text-neutral-500" : "text-primary",
|
624
624
|
iconSize
|
625
|
-
)}"><sd-4-0-0-next-
|
625
|
+
)}"><sd-4-0-0-next-4-icon name="chevron-down" part="chevron" library="system" color="currentColor"></sd-4-0-0-next-4-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open ? "true" : "false"}" aria-multiselectable="${this.multiple ? "true" : "false"}" aria-labelledby="label" part="listbox" class="${cx(
|
626
626
|
"bg-white px-2 py-3 relative border-primary overflow-y-scroll",
|
627
627
|
this.open && "shadow",
|
628
628
|
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"
|
629
|
-
)}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-4-0-0-next-
|
629
|
+
)}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-4-0-0-next-4-popup></div><div class="text-sm text-neutral-700" part="form-control-help-text" id="help-text" aria-hidden="${hasHelpText ? "false" : "true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`;
|
630
630
|
}
|
631
631
|
};
|
632
632
|
SdSelect.dependencies = {
|
633
|
-
"sd-4-0-0-next-
|
634
|
-
"sd-4-0-0-next-
|
635
|
-
"sd-4-0-0-next-
|
633
|
+
"sd-4-0-0-next-4-icon": SdIcon,
|
634
|
+
"sd-4-0-0-next-4-popup": SdPopup,
|
635
|
+
"sd-4-0-0-next-4-tag": SdTag
|
636
636
|
};
|
637
637
|
/**
|
638
638
|
* Inherits global stylesheet including TailwindCSS
|
639
639
|
*/
|
640
640
|
SdSelect.styles = [
|
641
641
|
...SolidElement.styles,
|
642
|
-
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-4-0-0-next-
|
642
|
+
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-4-0-0-next-4-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-4-0-0-next-4-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-4-0-0-next-4-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-4-0-0-next-4-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}`
|
643
643
|
];
|
644
644
|
__decorateClass([
|
645
|
-
queryAssignedElements({ selector: "sd-4-0-0-next-
|
645
|
+
queryAssignedElements({ selector: "sd-4-0-0-next-4-option" })
|
646
646
|
], SdSelect.prototype, "_optionsInDefaultSlot", 2);
|
647
647
|
__decorateClass([
|
648
|
-
query("sd-4-0-0-next-
|
648
|
+
query("sd-4-0-0-next-4-popup")
|
649
649
|
], SdSelect.prototype, "popup", 2);
|
650
650
|
__decorateClass([
|
651
651
|
query('[part="combobox"]')
|
@@ -767,7 +767,7 @@ __decorateClass([
|
|
767
767
|
watch("value", { waitUntilFirstUpdate: true })
|
768
768
|
], SdSelect.prototype, "handleValueChange", 1);
|
769
769
|
SdSelect = __decorateClass([
|
770
|
-
customElement("sd-4-0-0-next-
|
770
|
+
customElement("sd-4-0-0-next-4-select")
|
771
771
|
], SdSelect);
|
772
772
|
setDefaultAnimation("select.show", {
|
773
773
|
keyframes: [
|
@@ -41,16 +41,16 @@ var SdAccordionGroup = class extends SolidElement {
|
|
41
41
|
};
|
42
42
|
SdAccordionGroup.styles = [
|
43
43
|
...SolidElement.styles,
|
44
|
-
css`:host{display:block}::slotted(sd-4-0-0-next-
|
44
|
+
css`:host{display:block}::slotted(sd-4-0-0-next-4-accordion:not(:first-of-type)){margin-top:-1px}`
|
45
45
|
];
|
46
46
|
__decorateClass([
|
47
|
-
queryAssignedElements({ selector: "sd-4-0-0-next-
|
47
|
+
queryAssignedElements({ selector: "sd-4-0-0-next-4-accordion" })
|
48
48
|
], SdAccordionGroup.prototype, "_accordionsInDefaultSlot", 2);
|
49
49
|
__decorateClass([
|
50
50
|
property({ attribute: "close-others", type: Boolean })
|
51
51
|
], SdAccordionGroup.prototype, "closeOthers", 2);
|
52
52
|
SdAccordionGroup = __decorateClass([
|
53
|
-
customElement("sd-4-0-0-next-
|
53
|
+
customElement("sd-4-0-0-next-4-accordion-group")
|
54
54
|
], SdAccordionGroup);
|
55
55
|
|
56
56
|
export {
|
@@ -71,7 +71,7 @@ var SdExpandable = class extends SolidElement {
|
|
71
71
|
"sd-interactive sd-interactive--reset !h-full !justify-center !w-full !text-base !flex !items-center !underline !underline-offset-2 !toggle",
|
72
72
|
this.inverted && "sd-interactive--inverted",
|
73
73
|
!this.inverted ? "!focus-visible:focus-outline" : "!focus-visible:focus-outline-inverted"
|
74
|
-
)}" @click="${this.onToggleClick}">${this.open ? html`<slot name="toggle-open"><sd-4-0-0-next-
|
74
|
+
)}" @click="${this.onToggleClick}">${this.open ? html`<slot name="toggle-open"><sd-4-0-0-next-4-icon class="mr-2 text-xl" library="system" name="chevron-up"></sd-4-0-0-next-4-icon>${this.localize.term("showLess")}</slot>` : html`<slot name="toggle-closed"><sd-4-0-0-next-4-icon class="mr-2 text-xl" library="system" name="chevron-down"></sd-4-0-0-next-4-icon>${this.localize.term("showMore")}</slot>`}</button>`;
|
75
75
|
}
|
76
76
|
firstUpdated() {
|
77
77
|
this.cloneContentToLightDOM();
|
@@ -108,7 +108,7 @@ __decorateClass([
|
|
108
108
|
watch("open", { waitUntilFirstUpdate: true })
|
109
109
|
], SdExpandable.prototype, "onOpenChange", 1);
|
110
110
|
SdExpandable = __decorateClass([
|
111
|
-
customElement("sd-4-0-0-next-
|
111
|
+
customElement("sd-4-0-0-next-4-expandable")
|
112
112
|
], SdExpandable);
|
113
113
|
|
114
114
|
export {
|