@solid-design-system/components 5.13.8 → 5.13.10
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.JKIKZPKF.js → chunk.45T4HDVU.js} +4 -4
- package/cdn/components/select/select.d.ts +1 -1
- package/cdn/components/select/select.js +1 -1
- package/cdn/custom-elements.json +1 -1
- package/cdn/solid-components.bundle.js +6 -6
- package/cdn/solid-components.iife.js +10 -10
- package/cdn/solid-components.js +1 -1
- package/cdn/web-types.json +1 -1
- package/cdn-versioned/chunks/chunk.2IRWQCRF.js +1 -1
- package/cdn-versioned/chunks/chunk.45T4HDVU.js +11 -0
- package/cdn-versioned/chunks/chunk.4G5K45OD.js +1 -1
- package/cdn-versioned/chunks/chunk.4YGHSZYG.js +1 -1
- package/cdn-versioned/chunks/chunk.5V7VV5QB.js +1 -1
- package/cdn-versioned/chunks/chunk.6HLS5XU2.js +1 -1
- package/cdn-versioned/chunks/chunk.6U6DCUJY.js +1 -1
- package/cdn-versioned/chunks/chunk.6Z73BB5V.js +1 -1
- package/cdn-versioned/chunks/chunk.76ARSQLO.js +1 -1
- package/cdn-versioned/chunks/chunk.ANXPK3TU.js +1 -1
- package/cdn-versioned/chunks/chunk.BBD6RMZH.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.DOIZO725.js +1 -1
- package/cdn-versioned/chunks/chunk.EYOFW6DA.js +1 -1
- package/cdn-versioned/chunks/chunk.FRD44MJU.js +1 -1
- package/cdn-versioned/chunks/chunk.FWIDWQST.js +1 -1
- package/cdn-versioned/chunks/chunk.G4GHS2AG.js +1 -1
- package/cdn-versioned/chunks/chunk.GGNESNM4.js +1 -1
- package/cdn-versioned/chunks/chunk.GOF4ZVCF.js +4 -4
- package/cdn-versioned/chunks/chunk.H254FIFJ.js +1 -1
- package/cdn-versioned/chunks/chunk.HQD5PMJ6.js +1 -1
- package/cdn-versioned/chunks/chunk.INLCQRRA.js +1 -1
- package/cdn-versioned/chunks/chunk.IRWI7GRR.js +1 -1
- package/cdn-versioned/chunks/chunk.J5O47B25.js +1 -1
- package/cdn-versioned/chunks/chunk.K4BO42UJ.js +1 -1
- package/cdn-versioned/chunks/chunk.K5HOAQJY.js +1 -1
- package/cdn-versioned/chunks/chunk.K6CGISQW.js +1 -1
- package/cdn-versioned/chunks/chunk.KMRAQBKA.js +1 -1
- package/cdn-versioned/chunks/chunk.LH5TWCSQ.js +1 -1
- package/cdn-versioned/chunks/chunk.LHEXO22N.js +1 -1
- package/cdn-versioned/chunks/chunk.LHYT7HFQ.js +1 -1
- package/cdn-versioned/chunks/chunk.MBID57NT.js +2 -2
- package/cdn-versioned/chunks/chunk.MTTULBJJ.js +1 -1
- package/cdn-versioned/chunks/chunk.MVLJOBJ3.js +1 -1
- package/cdn-versioned/chunks/chunk.N43BOWAM.js +1 -1
- package/cdn-versioned/chunks/chunk.N5CQJHZQ.js +1 -1
- package/cdn-versioned/chunks/chunk.OYYGJJPP.js +1 -1
- package/cdn-versioned/chunks/chunk.P7RMWM44.js +1 -1
- package/cdn-versioned/chunks/chunk.PBB3HNYR.js +1 -1
- package/cdn-versioned/chunks/chunk.PHEBYNEA.js +1 -1
- package/cdn-versioned/chunks/chunk.PK2BOC64.js +1 -1
- package/cdn-versioned/chunks/chunk.PYFKECFP.js +1 -1
- package/cdn-versioned/chunks/chunk.Q5MHHB4U.js +1 -1
- package/cdn-versioned/chunks/chunk.RHSPP6ZZ.js +1 -1
- package/cdn-versioned/chunks/chunk.SRKXQ6FG.js +1 -1
- package/cdn-versioned/chunks/chunk.SZNIL4KZ.js +1 -1
- package/cdn-versioned/chunks/chunk.T27666UD.js +1 -1
- package/cdn-versioned/chunks/chunk.T64D3FLT.js +1 -1
- package/cdn-versioned/chunks/chunk.TSX2YUC7.js +1 -1
- package/cdn-versioned/chunks/chunk.TUFRTO4T.js +1 -1
- package/cdn-versioned/chunks/chunk.U24DDUI7.js +1 -1
- package/cdn-versioned/chunks/chunk.UQHI5B2R.js +1 -1
- package/cdn-versioned/chunks/chunk.VIW3UATS.js +1 -1
- package/cdn-versioned/chunks/chunk.VPPELN6X.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.XG62EPWD.js +1 -1
- package/cdn-versioned/chunks/chunk.YMSIMSMY.js +1 -1
- package/cdn-versioned/chunks/chunk.YRRYK5NI.js +1 -1
- package/cdn-versioned/chunks/chunk.Z4CNPMCB.js +1 -1
- package/cdn-versioned/chunks/chunk.ZA6VOBKL.js +1 -1
- package/cdn-versioned/chunks/chunk.ZKEBLFG4.js +1 -1
- package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/cdn-versioned/components/animation/animation.d.ts +1 -1
- package/cdn-versioned/components/audio/audio.d.ts +1 -1
- package/cdn-versioned/components/badge/badge.d.ts +1 -1
- package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/cdn-versioned/components/button/button.d.ts +1 -1
- package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
- package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
- package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
- package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
- package/cdn-versioned/components/divider/divider.d.ts +1 -1
- package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
- package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
- package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/cdn-versioned/components/header/header.d.ts +1 -1
- package/cdn-versioned/components/icon/icon.d.ts +1 -1
- package/cdn-versioned/components/include/include.d.ts +1 -1
- package/cdn-versioned/components/input/input.d.ts +1 -1
- package/cdn-versioned/components/link/link.d.ts +1 -1
- package/cdn-versioned/components/loader/loader.d.ts +1 -1
- package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/cdn-versioned/components/menu/menu.d.ts +1 -1
- package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/cdn-versioned/components/notification/notification.d.ts +1 -1
- package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/cdn-versioned/components/option/option.d.ts +1 -1
- package/cdn-versioned/components/popup/popup.d.ts +1 -1
- package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/cdn-versioned/components/radio/radio.d.ts +1 -1
- package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/cdn-versioned/components/range/range.d.ts +1 -1
- package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +2 -2
- package/cdn-versioned/components/select/select.js +1 -1
- package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
- package/cdn-versioned/components/step/step.d.ts +1 -1
- package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
- package/cdn-versioned/components/switch/switch.d.ts +1 -1
- package/cdn-versioned/components/tab/tab.d.ts +1 -1
- package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/cdn-versioned/components/tag/tag.d.ts +1 -1
- package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
- package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/cdn-versioned/components/video/video.d.ts +1 -1
- package/cdn-versioned/custom-elements.json +238 -238
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +13 -13
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +14 -14
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +91 -91
- package/cdn-versioned/web-types.json +154 -154
- package/dist/chunks/{chunk.AZJYD66N.js → chunk.OI362D7N.js} +18 -12
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/select/select.js +1 -1
- package/dist/custom-elements.json +1 -1
- package/dist/solid-components.js +1 -1
- package/dist/web-types.json +1 -1
- package/dist-versioned/chunks/chunk.2LGZXRL4.js +1 -1
- package/dist-versioned/chunks/chunk.2LUZ5ADD.js +1 -1
- package/dist-versioned/chunks/chunk.2SWC2CD2.js +3 -3
- package/dist-versioned/chunks/chunk.3KHJBMC3.js +14 -14
- package/dist-versioned/chunks/chunk.3M4X7AEY.js +2 -2
- package/dist-versioned/chunks/chunk.3V55NXJN.js +4 -4
- package/dist-versioned/chunks/chunk.4WRDUSNG.js +2 -2
- package/dist-versioned/chunks/chunk.5IFTI3YX.js +11 -11
- package/dist-versioned/chunks/chunk.5WIXR2JN.js +6 -6
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.6DQNB3SA.js +12 -12
- package/dist-versioned/chunks/chunk.77NSPIFM.js +3 -3
- package/dist-versioned/chunks/chunk.7EDAY5SR.js +5 -5
- package/dist-versioned/chunks/chunk.7RNERN6N.js +1 -1
- package/dist-versioned/chunks/chunk.7VTXJNYA.js +1 -1
- package/dist-versioned/chunks/chunk.7ZBLKJT5.js +1 -1
- package/dist-versioned/chunks/chunk.AAM4EQUJ.js +2 -2
- package/dist-versioned/chunks/chunk.BWILTNTK.js +1 -1
- package/dist-versioned/chunks/chunk.DHGVK7PH.js +1 -1
- package/dist-versioned/chunks/chunk.ELZAOG6X.js +2 -2
- package/dist-versioned/chunks/chunk.EV2J2MEU.js +1 -1
- package/dist-versioned/chunks/chunk.FFBPU23K.js +5 -5
- package/dist-versioned/chunks/chunk.HGH5QNIU.js +4 -4
- package/dist-versioned/chunks/chunk.HS7LHZQD.js +1 -1
- package/dist-versioned/chunks/chunk.IJFMUKNI.js +4 -4
- package/dist-versioned/chunks/chunk.JEZL6XOP.js +2 -2
- package/dist-versioned/chunks/chunk.JT54G5CA.js +5 -5
- package/dist-versioned/chunks/chunk.JW3IIMMD.js +2 -2
- package/dist-versioned/chunks/chunk.K3X5P6CZ.js +2 -2
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/chunk.KMZJOXPV.js +1 -1
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/chunk.LG4F5X4T.js +2 -2
- package/dist-versioned/chunks/chunk.LH6QPA5C.js +3 -3
- package/dist-versioned/chunks/chunk.LJ3YEQTI.js +3 -3
- package/dist-versioned/chunks/chunk.MOXWYOS4.js +1 -1
- package/dist-versioned/chunks/chunk.MUJYVT7H.js +3 -3
- package/dist-versioned/chunks/chunk.NGFE3KFR.js +1 -1
- package/dist-versioned/chunks/chunk.NTFOK2AA.js +1 -1
- package/dist-versioned/chunks/{chunk.AZJYD66N.js → chunk.OI362D7N.js} +44 -38
- package/dist-versioned/chunks/chunk.OSOEO2ZC.js +5 -5
- package/dist-versioned/chunks/chunk.OWWOKHLM.js +3 -3
- package/dist-versioned/chunks/chunk.QI2AW6AQ.js +1 -1
- package/dist-versioned/chunks/chunk.QUGFVQCM.js +8 -8
- package/dist-versioned/chunks/chunk.QVXVVXID.js +2 -2
- package/dist-versioned/chunks/chunk.S7SZ7PIX.js +2 -2
- package/dist-versioned/chunks/chunk.UERVAUNW.js +1 -1
- package/dist-versioned/chunks/chunk.UGN3I35T.js +3 -3
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.V34O6IDJ.js +2 -2
- package/dist-versioned/chunks/chunk.VE7RWFMR.js +2 -2
- package/dist-versioned/chunks/chunk.VSDARV47.js +2 -2
- package/dist-versioned/chunks/chunk.W77IAZZL.js +2 -2
- package/dist-versioned/chunks/chunk.WI2LQTA7.js +2 -2
- package/dist-versioned/chunks/chunk.WNXSYKQB.js +24 -24
- package/dist-versioned/chunks/chunk.X5J22XAO.js +3 -3
- package/dist-versioned/chunks/chunk.X6XICQDG.js +6 -6
- package/dist-versioned/chunks/chunk.XHPPN7XW.js +12 -12
- package/dist-versioned/chunks/chunk.YCDY43E5.js +1 -1
- package/dist-versioned/chunks/chunk.YGOB765P.js +6 -6
- package/dist-versioned/chunks/chunk.ZEI4OKHM.js +2 -2
- package/dist-versioned/components/accordion/accordion.d.ts +1 -1
- package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist-versioned/components/animation/animation.d.ts +1 -1
- package/dist-versioned/components/audio/audio.d.ts +1 -1
- package/dist-versioned/components/badge/badge.d.ts +1 -1
- package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/dist-versioned/components/button/button.d.ts +1 -1
- package/dist-versioned/components/button-group/button-group.d.ts +1 -1
- package/dist-versioned/components/carousel/carousel.d.ts +1 -1
- package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist-versioned/components/combobox/combobox.d.ts +1 -1
- package/dist-versioned/components/dialog/dialog.d.ts +1 -1
- package/dist-versioned/components/divider/divider.d.ts +1 -1
- package/dist-versioned/components/drawer/drawer.d.ts +1 -1
- package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/dist-versioned/components/expandable/expandable.d.ts +1 -1
- package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/dist-versioned/components/header/header.d.ts +1 -1
- package/dist-versioned/components/icon/icon.d.ts +1 -1
- package/dist-versioned/components/include/include.d.ts +1 -1
- package/dist-versioned/components/input/input.d.ts +1 -1
- package/dist-versioned/components/link/link.d.ts +1 -1
- package/dist-versioned/components/loader/loader.d.ts +1 -1
- package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/dist-versioned/components/menu/menu.d.ts +1 -1
- package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
- package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist-versioned/components/notification/notification.d.ts +1 -1
- package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/dist-versioned/components/option/option.d.ts +1 -1
- package/dist-versioned/components/popup/popup.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/dist-versioned/components/radio/radio.d.ts +1 -1
- package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/dist-versioned/components/range/range.d.ts +1 -1
- package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +2 -2
- package/dist-versioned/components/select/select.js +1 -1
- package/dist-versioned/components/spinner/spinner.d.ts +1 -1
- package/dist-versioned/components/step/step.d.ts +1 -1
- package/dist-versioned/components/step-group/step-group.d.ts +1 -1
- package/dist-versioned/components/switch/switch.d.ts +1 -1
- package/dist-versioned/components/tab/tab.d.ts +1 -1
- package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist-versioned/components/tag/tag.d.ts +1 -1
- package/dist-versioned/components/textarea/textarea.d.ts +1 -1
- package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/dist-versioned/components/video/video.d.ts +1 -1
- package/dist-versioned/custom-elements.json +238 -238
- 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 +91 -91
- package/dist-versioned/web-types.json +154 -154
- package/package.json +2 -2
- package/cdn-versioned/chunks/chunk.JKIKZPKF.js +0 -11
|
@@ -206,15 +206,15 @@ var SdTooltip = class extends SolidElement {
|
|
|
206
206
|
render() {
|
|
207
207
|
const isStart = this.placement.endsWith("-start");
|
|
208
208
|
const isEnd = this.placement.endsWith("-end");
|
|
209
|
-
return html`<sd-5-13-
|
|
209
|
+
return html`<sd-5-13-10-popup part="base" exportparts="
|
|
210
210
|
popup:base__popup,
|
|
211
211
|
arrow:base__arrow
|
|
212
|
-
" class="${cx(this.open && "tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{ start: 2, end: -2, default: 0 }[isStart ? "start" : isEnd ? "end" : "default"] * (this.size === "sm" ? -1 : 1)}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift arrow auto-size="vertical" arrow-padding="0">${this.hasCustomTrigger ? html`<slot slot="anchor"></slot>` : html`<button slot="anchor" aria-describedby="tooltip" class="${cx("flex sd-interactive rounded-full", this.size === "lg" ? "text-xl" : "text-base")}" ?disabled="${this.disabled}" aria-expanded="${this.open}" aria-controls="tooltip"><sd-5-13-
|
|
212
|
+
" class="${cx(this.open && "tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{ start: 2, end: -2, default: 0 }[isStart ? "start" : isEnd ? "end" : "default"] * (this.size === "sm" ? -1 : 1)}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift arrow auto-size="vertical" arrow-padding="0">${this.hasCustomTrigger ? html`<slot slot="anchor"></slot>` : html`<button slot="anchor" aria-describedby="tooltip" class="${cx("flex sd-interactive rounded-full", this.size === "lg" ? "text-xl" : "text-base")}" ?disabled="${this.disabled}" aria-expanded="${this.open}" aria-controls="tooltip"><sd-5-13-10-icon library="_internal" name="info-circle" label="Tooltip" class="${cx(this.disabled && "sd-interactive--disabled")}"></sd-5-13-10-icon></button>`}<slot name="content" part="body" id="tooltip" class="bg-primary text-white py-3 px-4 block rounded-none text-sm text-left" role="tooltip" aria-label="${this.content}" aria-live="${this.open ? "polite" : "off"}">${this.content}</slot></sd-5-13-10-popup>`;
|
|
213
213
|
}
|
|
214
214
|
};
|
|
215
215
|
SdTooltip.styles = [
|
|
216
216
|
...SolidElement.styles,
|
|
217
|
-
css`:host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-5-13-
|
|
217
|
+
css`:host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-5-13-10-popup{--arrow-color:rgb(var(--sd-color-primary,0 53 142)/1);--arrow-size:10px}sd-5-13-10-popup::part(popup){pointer-events:none;z-index:10;--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-5-13-10-popup::part(arrow){--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-5-13-10-popup[placement^=top]::part(popup){transform-origin:bottom}sd-5-13-10-popup[placement^=bottom]::part(popup){transform-origin:top}#tooltip{max-width:var(--max-width)}::slotted([slot=content]){max-height:var(--auto-size-available-height)!important;max-width:var(--auto-size-available-width)!important;overflow:auto}`
|
|
218
218
|
];
|
|
219
219
|
__decorateClass([
|
|
220
220
|
query("slot:not([name])")
|
|
@@ -223,7 +223,7 @@ __decorateClass([
|
|
|
223
223
|
query("#tooltip")
|
|
224
224
|
], SdTooltip.prototype, "body", 2);
|
|
225
225
|
__decorateClass([
|
|
226
|
-
query("sd-5-13-
|
|
226
|
+
query("sd-5-13-10-popup")
|
|
227
227
|
], SdTooltip.prototype, "popup", 2);
|
|
228
228
|
__decorateClass([
|
|
229
229
|
property({ type: String, reflect: true })
|
|
@@ -256,7 +256,7 @@ __decorateClass([
|
|
|
256
256
|
watch("disabled")
|
|
257
257
|
], SdTooltip.prototype, "handleDisabledChange", 1);
|
|
258
258
|
SdTooltip = __decorateClass([
|
|
259
|
-
customElement("sd-5-13-
|
|
259
|
+
customElement("sd-5-13-10-tooltip")
|
|
260
260
|
], SdTooltip);
|
|
261
261
|
setDefaultAnimation("tooltip.show", {
|
|
262
262
|
keyframes: [{ opacity: 0 }, { opacity: 1 }],
|
|
@@ -385,7 +385,7 @@ var SdInput = class extends SolidElement {
|
|
|
385
385
|
this.size === "sm" ? "h-6" : "h-8",
|
|
386
386
|
textSize
|
|
387
387
|
)}" type="${this.type === "password" && this.passwordVisible ? "text" : this.type}" title="${this.title}" name="${ifDefined(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" min="${ifDefined(this.min)}" max="${ifDefined(this.max)}" step="${ifDefined(this.step)}" .value="${live(this.value)}" autocapitalize="${ifDefined(this.type === "password" ? "off" : this.autocapitalize)}" autocomplete="${// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
388
|
-
ifDefined(this.autocomplete)}" autocorrect="${ifDefined(this.type === "password" ? "off" : this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${ifDefined(this.pattern)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-disabled="${this.visuallyDisabled || this.disabled ? "true" : "false"}" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("flex justify-center", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-5-13-
|
|
388
|
+
ifDefined(this.autocomplete)}" autocorrect="${ifDefined(this.type === "password" ? "off" : this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${ifDefined(this.pattern)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-disabled="${this.visuallyDisabled || this.disabled ? "true" : "false"}" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("flex justify-center", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-5-13-10-icon class="${cx("text-neutral-700", iconSize)}" library="_internal" name="closing-round"></sd-5-13-10-icon></slot></button>` : ""} ${this.passwordToggle && this.type === "password" ? html`<button aria-label="${this.localize.term(this.passwordVisible ? "hidePassword" : "showPassword")}" part="password-toggle-button" class="${cx("flex items-center sd-interactive", iconMarginLeft)}" type="button" @click="${this.handlePasswordToggle}">${this.passwordVisible ? html`<slot name="show-password-icon"><sd-5-13-10-icon class="${cx(iconColor, iconSize)}" library="_internal" name="eye"></sd-5-13-10-icon></slot>` : html`<slot name="hide-password-icon"><sd-5-13-10-icon class="${cx(iconColor, iconSize)}" library="_internal" name="eye-crossed-out"></sd-5-13-10-icon></slot>`}</button>` : ""} ${(this.type === "date" || this.type === "datetime-local") && !isFirefox ? html`<sd-5-13-10-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="_internal" name="calendar"></sd-5-13-10-icon>` : ""} ${this.type === "time" ? html`<sd-5-13-10-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="_internal" name="clock"></sd-5-13-10-icon>` : ""} ${this.type === "search" ? html`<button class="${cx("flex items-center sd-interactive", iconMarginLeft)}" type="button" @click="${this.handleSearchClick}"><sd-5-13-10-icon class="${cx(iconColor, iconSize)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-5-13-10-icon></button>` : ""} ${this.showInvalidStyle ? html`<sd-5-13-10-icon part="invalid-icon" class="${cx("text-error", iconMarginLeft, iconSize)}" library="_internal" name="risk"></sd-5-13-10-icon>` : ""} ${this.showValidStyle && this.styleOnValid ? html`<sd-5-13-10-icon class="${cx("text-success flex-shrink-0", iconMarginLeft, iconSize)}" library="_internal" name="status-check" part="valid-icon"></sd-5-13-10-icon>` : ""} ${slots["right"] ? html`<slot name="right" part="right" class="${cx("inline-flex", iconColor, iconMarginLeft, iconSize)}"></slot>` : ""} ${this.type === "number" && this.spinButtons ? html`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${longPress({ start: () => this.handleStepDown(), end: () => this.handleChange() })} tabindex="-1"><slot name="decrement-number-stepper"><sd-5-13-10-icon name="system/minus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-5-13-10-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${longPress({ start: () => this.handleStepUp(), end: () => this.handleChange() })} tabindex="-1"><slot name="increment-number-stepper"><sd-5-13-10-icon name="system/plus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-5-13-10-icon></slot></button></div>` : ""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700 mt-2", hasHelpText ? "block" : "hidden")}" aria-hidden="${!hasHelpText}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`;
|
|
389
389
|
}
|
|
390
390
|
};
|
|
391
391
|
/**
|
|
@@ -393,7 +393,7 @@ var SdInput = class extends SolidElement {
|
|
|
393
393
|
*/
|
|
394
394
|
SdInput.styles = [
|
|
395
395
|
...SolidElement.styles,
|
|
396
|
-
css`:host{box-sizing:border-box;display:inline-block;position:relative;text-align:left;width:100%}:host([vertical]){display:block}:host([required]) #label:after{content:" *"}:host([visually-disabled]) input{caret-color:transparent}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-5-13-
|
|
396
|
+
css`:host{box-sizing:border-box;display:inline-block;position:relative;text-align:left;width:100%}:host([vertical]){display:block}:host([required]) #label:after{content:" *"}:host([visually-disabled]) input{caret-color:transparent}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-5-13-10-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}`
|
|
397
397
|
];
|
|
398
398
|
__decorateClass([
|
|
399
399
|
query("#input")
|
|
@@ -523,7 +523,7 @@ __decorateClass([
|
|
|
523
523
|
watch("value", { waitUntilFirstUpdate: true })
|
|
524
524
|
], SdInput.prototype, "handleValueChange", 1);
|
|
525
525
|
SdInput = __decorateClass([
|
|
526
|
-
customElement("sd-5-13-
|
|
526
|
+
customElement("sd-5-13-10-input")
|
|
527
527
|
], SdInput);
|
|
528
528
|
|
|
529
529
|
export {
|
|
@@ -25,7 +25,7 @@ SdCarouselItem.styles = [
|
|
|
25
25
|
css`:host{align-items:center;aspect-ratio:var(--aspect-ratio);display:flex;flex-direction:column;height:100%;justify-content:center;scroll-snap-align:start;scroll-snap-stop:always;width:100%}::slotted(img){height:100%;-o-object-fit:cover;object-fit:cover;width:100%}`
|
|
26
26
|
];
|
|
27
27
|
SdCarouselItem = __decorateClass([
|
|
28
|
-
customElement("sd-5-13-
|
|
28
|
+
customElement("sd-5-13-10-carousel-item")
|
|
29
29
|
], SdCarouselItem);
|
|
30
30
|
|
|
31
31
|
export {
|
|
@@ -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-5-13-
|
|
132
|
+
(_c = oppositeButton == null ? void 0 : oppositeButton.querySelector("sd-5-13-10-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-5-13-
|
|
144
|
+
(_a = button.querySelector("sd-5-13-10-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-5-13-
|
|
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-5-13-10-icon library="_internal" name="chevron-up" class="rotate-[-90deg]" label="${this.localize.term("scrollToStart")}"></sd-5-13-10-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-5-13-
|
|
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-5-13-10-icon library="_internal" name="chevron-down" class="rotate-[-90deg]" label="${this.localize.term("scrollToEnd")}"></sd-5-13-10-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-5-13-
|
|
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-5-13-10-icon library="_internal" name="chevron-up" label="${this.localize.term("scrollToStart")}"></sd-5-13-10-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-5-13-
|
|
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-5-13-10-icon library="_internal" name="chevron-down" label="${this.localize.term("scrollToEnd")}"></sd-5-13-10-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"
|
|
@@ -188,7 +188,7 @@ var SdScrollable = class extends SolidElement {
|
|
|
188
188
|
};
|
|
189
189
|
SdScrollable.styles = [
|
|
190
190
|
...SolidElement.styles,
|
|
191
|
-
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-5-13-
|
|
191
|
+
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-5-13-10-icon--top{align-self:flex-start}.sd-5-13-10-icon--down{align-self:flex-end}`
|
|
192
192
|
];
|
|
193
193
|
__decorateClass([
|
|
194
194
|
query('[part="button-right"] button')
|
|
@@ -236,7 +236,7 @@ __decorateClass([
|
|
|
236
236
|
state()
|
|
237
237
|
], SdScrollable.prototype, "isScrollVerticalEnabled", 2);
|
|
238
238
|
SdScrollable = __decorateClass([
|
|
239
|
-
customElement("sd-5-13-
|
|
239
|
+
customElement("sd-5-13-10-scrollable")
|
|
240
240
|
], SdScrollable);
|
|
241
241
|
|
|
242
242
|
export {
|
|
@@ -88,7 +88,7 @@ var SdRadioButton = class extends SolidElement {
|
|
|
88
88
|
};
|
|
89
89
|
SdRadioButton.styles = [
|
|
90
90
|
...SolidElement.styles,
|
|
91
|
-
css`:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;inset:var(--sd-spacing-0,0);opacity:var(--sd-opacity-0,0);outline-color:rgb(var(--sd-color-error,204 25 55)/1);outline-style:dotted;outline-width:1px;position:absolute;z-index:-10}.lg-label,.lg-no-label{height:var(--sd-spacing-12,3rem)}.lg-no-label{padding-left:var(--sd-spacing-5,1.25rem);padding-right:var(--sd-spacing-5,1.25rem)}.md-label,.md-no-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{padding-left:var(--sd-spacing-4,1rem);padding-right:var(--sd-spacing-4,1rem)}.sm-label,.sm-no-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{padding-left:var(--sd-spacing-3,.75rem);padding-right:var(--sd-spacing-3,.75rem)}:host([size=lg].sd-5-13-
|
|
91
|
+
css`:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;inset:var(--sd-spacing-0,0);opacity:var(--sd-opacity-0,0);outline-color:rgb(var(--sd-color-error,204 25 55)/1);outline-style:dotted;outline-width:1px;position:absolute;z-index:-10}.lg-label,.lg-no-label{height:var(--sd-spacing-12,3rem)}.lg-no-label{padding-left:var(--sd-spacing-5,1.25rem);padding-right:var(--sd-spacing-5,1.25rem)}.md-label,.md-no-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{padding-left:var(--sd-spacing-4,1rem);padding-right:var(--sd-spacing-4,1rem)}.sm-label,.sm-no-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{padding-left:var(--sd-spacing-3,.75rem);padding-right:var(--sd-spacing-3,.75rem)}:host([size=lg].sd-5-13-10-button-group__button:not(.sd-5-13-10-button-group__button--first)){margin-inline-start:calc(var(--sd-spacing-3,.75rem)*-1)}:host([size=md].sd-5-13-10-button-group__button:not(.sd-5-13-10-button-group__button--first)){margin-inline-start:calc(var(--sd-spacing-2,.5rem)*-1)}:host([size=sm].sd-5-13-10-button-group__button:not(.sd-5-13-10-button-group__button--first)){margin-inline-start:calc(var(--sd-spacing-1,.25rem)*-1)}:host(.sd-5-13-10-button-group__button--hover){z-index:20}:host(.sd-5-13-10-button-group__button--focus),:host(.sd-5-13-10-button-group__button[checked]){z-index:10}`
|
|
92
92
|
];
|
|
93
93
|
__decorateClass([
|
|
94
94
|
query(".button")
|
|
@@ -118,7 +118,7 @@ __decorateClass([
|
|
|
118
118
|
watch(["disabled", "visually-disabled"], { waitUntilFirstUpdate: true })
|
|
119
119
|
], SdRadioButton.prototype, "handleDisabledChange", 1);
|
|
120
120
|
SdRadioButton = __decorateClass([
|
|
121
|
-
customElement("sd-5-13-
|
|
121
|
+
customElement("sd-5-13-10-radio-button")
|
|
122
122
|
], SdRadioButton);
|
|
123
123
|
|
|
124
124
|
export {
|
|
@@ -94,7 +94,7 @@ var SdExpandable = class extends SolidElement {
|
|
|
94
94
|
)}" @click="${this.onToggleClick}" aria-expanded="${this.open}"><div class="${cx("h-full justify-center w-full text-base flex items-center toggle")}"><span part="toggle-icon" class="${cx(
|
|
95
95
|
"flex items-center mr-2 transition-transform duration-medium ease-in-out",
|
|
96
96
|
this.open && "rotate-180"
|
|
97
|
-
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-5-13-
|
|
97
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-5-13-10-icon library="_internal" name="chevron-down" class="text-xl"></sd-5-13-10-icon></slot><slot name="collapse-icon" class="${cx(!this.open && "hidden")}"><sd-5-13-10-icon library="_internal" name="chevron-down" class="text-xl"></sd-5-13-10-icon></slot></span><slot name="toggle-closed" class="${cx(this.open && "hidden")}">${this.localize.term("showMore")}</slot><slot name="toggle-open" class="${cx(!this.open && "hidden")}">${this.localize.term("showLess")}</slot></div></button><details part="details" ?inert="${ifDefined(!this.open)}"><summary part="summary" aria-hidden="true" class="cursor-pointer overflow-hidden list-none"><slot name="clone"></slot></summary><div part="content" class="content content-preview overflow-hidden relative"><slot></slot></div></details></div>`;
|
|
98
98
|
}
|
|
99
99
|
firstUpdated() {
|
|
100
100
|
this.cloneContentToLightDOM();
|
|
@@ -134,7 +134,7 @@ __decorateClass([
|
|
|
134
134
|
watch("open", { waitUntilFirstUpdate: true })
|
|
135
135
|
], SdExpandable.prototype, "onOpenChange", 1);
|
|
136
136
|
SdExpandable = __decorateClass([
|
|
137
|
-
customElement("sd-5-13-
|
|
137
|
+
customElement("sd-5-13-10-expandable")
|
|
138
138
|
], SdExpandable);
|
|
139
139
|
setDefaultAnimation("expandable.show", {
|
|
140
140
|
keyframes: [{ height: "var(--component-expandable-max-block-size, 90px)" }, { height: "auto" }],
|
|
@@ -172,7 +172,7 @@ __decorateClass([
|
|
|
172
172
|
watch(["checked"], { waitUntilFirstUpdate: true })
|
|
173
173
|
], SdSwitch.prototype, "handleStateChange", 1);
|
|
174
174
|
SdSwitch = __decorateClass([
|
|
175
|
-
customElement("sd-5-13-
|
|
175
|
+
customElement("sd-5-13-10-switch")
|
|
176
176
|
], SdSwitch);
|
|
177
177
|
|
|
178
178
|
export {
|
|
@@ -118,7 +118,7 @@ var SdCheckbox = class extends SolidElement {
|
|
|
118
118
|
render() {
|
|
119
119
|
const checkboxState = this.disabled && this.indeterminate ? "disabledIndeterminate" : this.disabled && this.checked ? "disabledChecked" : this.disabled ? "disabled" : this.visuallyDisabled ? "visuallyDisabled" : this.showInvalidStyle && this.indeterminate ? "invalidIndeterminate" : this.showInvalidStyle ? "invalid" : this.checked || this.indeterminate ? "filled" : "default";
|
|
120
120
|
return html`<label part="base" class="${cx(
|
|
121
|
-
"sd-5-13-
|
|
121
|
+
"sd-5-13-10-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",
|
|
122
122
|
(this.disabled || this.visuallyDisabled) && "hover:cursor-not-allowed",
|
|
123
123
|
{
|
|
124
124
|
/* sizes, fonts */
|
|
@@ -157,7 +157,7 @@ var SdCheckbox = class extends SolidElement {
|
|
|
157
157
|
filled: "bg-accent group-hover:bg-accent-550",
|
|
158
158
|
default: "hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"
|
|
159
159
|
}[checkboxState]
|
|
160
|
-
)}"></div></div>${this.checked ? html`<sd-5-13-
|
|
160
|
+
)}"></div></div>${this.checked ? html`<sd-5-13-10-icon part="checked-icon" class="text-white w-3 h-3" library="_internal" name="status-check"></sd-5-13-10-icon>` : ""} ${!this.checked && this.indeterminate ? html`<sd-5-13-10-icon part="indeterminate-icon" class="text-white w-3 h-3" library="_internal" name="status-minus"></sd-5-13-10-icon>` : ""} </span><span part="label" id="label" class="${cx(
|
|
161
161
|
"select-none inline-block ml-2",
|
|
162
162
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : this.showInvalidStyle ? "text-error" : "text-black"
|
|
163
163
|
)}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`;
|
|
@@ -219,7 +219,7 @@ __decorateClass([
|
|
|
219
219
|
watch(["checked", "indeterminate"], { waitUntilFirstUpdate: true })
|
|
220
220
|
], SdCheckbox.prototype, "handleStateChange", 1);
|
|
221
221
|
SdCheckbox = __decorateClass([
|
|
222
|
-
customElement("sd-5-13-
|
|
222
|
+
customElement("sd-5-13-10-checkbox")
|
|
223
223
|
], SdCheckbox);
|
|
224
224
|
|
|
225
225
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/components/combobox/utils.ts
|
|
2
2
|
var getAssignedElementsForSlot = (slot) => Array.from(slot.assignedElements({ flatten: true }));
|
|
3
|
-
var getOptionOrNestedOptions = (item) => item.tagName.toLocaleLowerCase() === "sd-5-13-
|
|
4
|
-
var isOptgroup = (item) => item.tagName.toLocaleLowerCase() === "sd-5-13-
|
|
3
|
+
var getOptionOrNestedOptions = (item) => item.tagName.toLocaleLowerCase() === "sd-5-13-10-option" ? item : Array.from(item.querySelectorAll(":scope > sd-5-13-10-option"));
|
|
4
|
+
var isOptgroup = (item) => item.tagName.toLocaleLowerCase() === "sd-5-13-10-optgroup";
|
|
5
5
|
var getAllOptions = (items) => items.map(getOptionOrNestedOptions);
|
|
6
6
|
var filterOnlyOptgroups = (items) => items.filter(isOptgroup);
|
|
7
7
|
var normalizeString = (str) => str.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase();
|
|
@@ -142,7 +142,7 @@ var SdAccordion = class extends SolidElement {
|
|
|
142
142
|
)}"></div><slot name="summary" part="summary" class="flex flex-auto items-center text-left">${this.summary}</slot><span part="summary-icon" class="${cx(
|
|
143
143
|
"flex flex-grow-0 flex-shrink-0 flex-auto items-center transition-all ease-in-out duration-medium text-xl",
|
|
144
144
|
this.open && "rotate-180"
|
|
145
|
-
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-5-13-
|
|
145
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-5-13-10-icon library="_internal" name="chevron-down"></sd-5-13-10-icon></slot><slot name="collapse-icon" class="${cx(!this.open && "hidden")}"><sd-5-13-10-icon library="_internal" name="chevron-down"></sd-5-13-10-icon></slot></span></summary><div part="content" id="content" class="overflow-hidden"><slot part="content__slot" class="block px-4 py-6" role="region" aria-labelledby="header"></slot></div></details>`;
|
|
146
146
|
}
|
|
147
147
|
};
|
|
148
148
|
SdAccordion.styles = [
|
|
@@ -168,7 +168,7 @@ __decorateClass([
|
|
|
168
168
|
watch("open", { waitUntilFirstUpdate: true })
|
|
169
169
|
], SdAccordion.prototype, "handleOpenChange", 1);
|
|
170
170
|
SdAccordion = __decorateClass([
|
|
171
|
-
customElement("sd-5-13-
|
|
171
|
+
customElement("sd-5-13-10-accordion")
|
|
172
172
|
], SdAccordion);
|
|
173
173
|
setDefaultAnimation("accordion.show", {
|
|
174
174
|
keyframes: [
|
|
@@ -208,7 +208,7 @@ var SdDrawer = class extends SolidElement {
|
|
|
208
208
|
end: "top-0 end-0 bottom-auto start-auto w-[--width] h-full",
|
|
209
209
|
start: "top-0 end-auto bottom-auto start-0 w-[--width] h-full"
|
|
210
210
|
}[this.placement]
|
|
211
|
-
)}" role="dialog" aria-modal="true" aria-label="${this.label}" tabindex="0">${!this.noHeader ? html`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:56px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ms-4 absolute top-2 end-2"><sd-5-13-
|
|
211
|
+
)}" role="dialog" aria-modal="true" aria-label="${this.label}" tabindex="0">${!this.noHeader ? html`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:56px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ms-4 absolute top-2 end-2"><sd-5-13-10-button variant="tertiary" size="lg" part="close-button" @click="${() => this.requestClose("close-button")}"><sd-5-13-10-icon label="${this.localize.term("close")}" name="close" library="_internal"></sd-5-13-10-icon></sd-5-13-10-button></div></header>` : html`<sd-5-13-10-button variant="tertiary" size="lg" part="close-button" @click="${() => this.requestClose("close-button")}" class="absolute top-2 end-2"><sd-5-13-10-icon label="${this.localize.term("close")}" name="close" library="_internal"></sd-5-13-10-icon></sd-5-13-10-button>`}<div part="body" class="flex-auto block px-4 focus-visible:focus-outline !-outline-offset-2" tabindex="0"><slot></slot></div><footer part="footer" class="${cx(this.hasSlotController.test("footer") ? "text-left p-4" : "hidden")}"><slot name="footer"></slot></footer></div></section>`;
|
|
212
212
|
}
|
|
213
213
|
};
|
|
214
214
|
SdDrawer.styles = [
|
|
@@ -249,7 +249,7 @@ __decorateClass([
|
|
|
249
249
|
watch("contained", { waitUntilFirstUpdate: true })
|
|
250
250
|
], SdDrawer.prototype, "handleNoModalChange", 1);
|
|
251
251
|
SdDrawer = __decorateClass([
|
|
252
|
-
customElement("sd-5-13-
|
|
252
|
+
customElement("sd-5-13-10-drawer")
|
|
253
253
|
], SdDrawer);
|
|
254
254
|
setDefaultAnimation("drawer.showStart", {
|
|
255
255
|
keyframes: [
|
|
@@ -93,7 +93,7 @@ var SdOption = class extends SolidElement {
|
|
|
93
93
|
)}"></span> ${this.checkbox ? html`<span id="control" part="control ${this.selected ? " control--checked" : "control--unchecked"}" class="${cx(
|
|
94
94
|
"relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4 mr-2",
|
|
95
95
|
this.disabled ? "border-neutral-500" : this.selected ? "bg-accent border-accent" : "bg-white border-neutral-800"
|
|
96
|
-
)}">${this.selected ? html`<sd-5-13-
|
|
96
|
+
)}">${this.selected ? html`<sd-5-13-10-icon part="checked-icon" class="text-white w-3 h-3" library="_internal" name="status-check"></sd-5-13-10-icon>` : ""}</span>` : ""} ${slots["left"] ? html`<slot name="left" part="left" class="inline-flex mr-2"></slot>` : ""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${slots["right"] ? html`<slot name="right" part="right" class="inline-flex ml-2"></slot>` : ""}</div>`;
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
99
|
/**
|
|
@@ -140,7 +140,7 @@ __decorateClass([
|
|
|
140
140
|
watch("value")
|
|
141
141
|
], SdOption.prototype, "handleValueChange", 1);
|
|
142
142
|
SdOption = __decorateClass([
|
|
143
|
-
customElement("sd-5-13-
|
|
143
|
+
customElement("sd-5-13-10-option")
|
|
144
144
|
], SdOption);
|
|
145
145
|
|
|
146
146
|
export {
|
|
@@ -84,7 +84,7 @@ var SdLink = class extends SolidElement {
|
|
|
84
84
|
};
|
|
85
85
|
SdLink.styles = [
|
|
86
86
|
...SolidElement.styles,
|
|
87
|
-
css`::slotted(sd-5-13-
|
|
87
|
+
css`::slotted(sd-5-13-10-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-5-13-10-icon){font-size:var(--sd-font-size-base,1rem)}:host([size=lg][standalone]) ::slotted(sd-5-13-10-icon){font-size:var(--sd-font-size-xl,1.5rem)}`
|
|
88
88
|
];
|
|
89
89
|
__decorateClass([
|
|
90
90
|
query("a")
|
|
@@ -111,7 +111,7 @@ __decorateClass([
|
|
|
111
111
|
property({ reflect: true })
|
|
112
112
|
], SdLink.prototype, "download", 2);
|
|
113
113
|
SdLink = __decorateClass([
|
|
114
|
-
customElement("sd-5-13-
|
|
114
|
+
customElement("sd-5-13-10-link")
|
|
115
115
|
], SdLink);
|
|
116
116
|
|
|
117
117
|
export {
|
|
@@ -32,7 +32,7 @@ var SdDivider = class extends SolidElement {
|
|
|
32
32
|
*/
|
|
33
33
|
SdDivider.styles = [
|
|
34
34
|
...SolidElement.styles,
|
|
35
|
-
css`:host{margin:var(--sd-spacing-0,0)}:host(sd-5-13-
|
|
35
|
+
css`:host{margin:var(--sd-spacing-0,0)}:host(sd-5-13-10-divider[orientation=horizontal]){display:block}:host(sd-5-13-10-divider[orientation=vertical]){display:inline-block}`
|
|
36
36
|
];
|
|
37
37
|
__decorateClass([
|
|
38
38
|
property({ type: String, reflect: true })
|
|
@@ -41,7 +41,7 @@ __decorateClass([
|
|
|
41
41
|
property({ type: Boolean, reflect: true })
|
|
42
42
|
], SdDivider.prototype, "inverted", 2);
|
|
43
43
|
SdDivider = __decorateClass([
|
|
44
|
-
customElement("sd-5-13-
|
|
44
|
+
customElement("sd-5-13-10-divider")
|
|
45
45
|
], SdDivider);
|
|
46
46
|
|
|
47
47
|
export {
|
|
@@ -54,7 +54,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
54
54
|
constructor() {
|
|
55
55
|
super(...arguments);
|
|
56
56
|
this.formControlController = new FormControlController(this, {
|
|
57
|
-
assumeInteractionOn: ["sd-blur", "sd-5-13-
|
|
57
|
+
assumeInteractionOn: ["sd-blur", "sd-5-13-10-input"]
|
|
58
58
|
});
|
|
59
59
|
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
|
60
60
|
this.localize = new LocalizeController(this);
|
|
@@ -97,11 +97,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
97
97
|
return normalizedOption.includes(normalizedQuery) || normalizedOptionLabel.includes(normalizedQuery);
|
|
98
98
|
};
|
|
99
99
|
this.getTag = (option) => {
|
|
100
|
-
return html`<sd-5-13-
|
|
100
|
+
return html`<sd-5-13-10-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
|
101
101
|
base:tag__base,
|
|
102
102
|
content:tag__content,
|
|
103
103
|
removable-indicator:tag__removable-indicator,
|
|
104
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-5-13-
|
|
104
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-5-13-10-tag>`;
|
|
105
105
|
};
|
|
106
106
|
this.handleDocumentFocusIn = (event) => {
|
|
107
107
|
const path = event.composedPath();
|
|
@@ -236,9 +236,9 @@ var SdCombobox = class extends SolidElement {
|
|
|
236
236
|
return html`${typeof optionHtml === "string" ? unsafeHTML(optionHtml) : optionHtml}`;
|
|
237
237
|
};
|
|
238
238
|
return this.filteredOptions.map((item) => {
|
|
239
|
-
if (item.tagName.toLowerCase() === "sd-5-13-
|
|
239
|
+
if (item.tagName.toLowerCase() === "sd-5-13-10-optgroup") {
|
|
240
240
|
Array.from(item.children).forEach((option) => {
|
|
241
|
-
if (option.tagName.toLowerCase() === "sd-5-13-
|
|
241
|
+
if (option.tagName.toLowerCase() === "sd-5-13-10-option") {
|
|
242
242
|
renderOption(option);
|
|
243
243
|
}
|
|
244
244
|
});
|
|
@@ -258,11 +258,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
258
258
|
});
|
|
259
259
|
} else {
|
|
260
260
|
return [
|
|
261
|
-
html`<sd-5-13-
|
|
261
|
+
html`<sd-5-13-10-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
|
262
262
|
base:tag__base,
|
|
263
263
|
content:tag__content,
|
|
264
264
|
removable-indicator:tag__removable-indicator,
|
|
265
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-5-13-
|
|
265
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-5-13-10-tag>`
|
|
266
266
|
];
|
|
267
267
|
}
|
|
268
268
|
}
|
|
@@ -381,7 +381,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
381
381
|
}
|
|
382
382
|
handleOptionClick(event) {
|
|
383
383
|
const target = event.target;
|
|
384
|
-
const option = target.closest("sd-5-13-
|
|
384
|
+
const option = target.closest("sd-5-13-10-option");
|
|
385
385
|
const oldValue = this.value;
|
|
386
386
|
if (option && !option.disabled) {
|
|
387
387
|
if (this.multiple) {
|
|
@@ -433,7 +433,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
433
433
|
scrollIntoView(this.getCurrentOption(), this.listbox, "vertical", "auto");
|
|
434
434
|
}
|
|
435
435
|
getAllFilteredOptions() {
|
|
436
|
-
return [...this.filteredWrapper.querySelectorAll("sd-5-13-
|
|
436
|
+
return [...this.filteredWrapper.querySelectorAll("sd-5-13-10-option")];
|
|
437
437
|
}
|
|
438
438
|
getCurrentOption() {
|
|
439
439
|
return this.getAllFilteredOptions().find((option) => option.current);
|
|
@@ -563,7 +563,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
563
563
|
clonedOption.selected = option.selected;
|
|
564
564
|
clonedOption.checkbox = option.checkbox;
|
|
565
565
|
clonedOption.size = option.size;
|
|
566
|
-
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-5-13-
|
|
566
|
+
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-5-13-10-optgroup";
|
|
567
567
|
if (!hasOptgroup) {
|
|
568
568
|
return clonedOption;
|
|
569
569
|
}
|
|
@@ -587,7 +587,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
587
587
|
this.formControlController.emitInvalidEvent(event);
|
|
588
588
|
this.invalidMessage.textContent = event.target.validationMessage;
|
|
589
589
|
}
|
|
590
|
-
/** Receives incoming event detail from sd-5-13-
|
|
590
|
+
/** Receives incoming event detail from sd-5-13-10-popup and updates local state for conditional styling. */
|
|
591
591
|
handleCurrentPlacement(e) {
|
|
592
592
|
const incomingPlacement = e.detail;
|
|
593
593
|
if (incomingPlacement) {
|
|
@@ -599,7 +599,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
599
599
|
}
|
|
600
600
|
handleUseTagsChange() {
|
|
601
601
|
const allOptions = this.getAllFilteredOptions();
|
|
602
|
-
if (customElements.get("sd-5-13-
|
|
602
|
+
if (customElements.get("sd-5-13-10-option")) {
|
|
603
603
|
allOptions.forEach((option) => {
|
|
604
604
|
option.checkbox = this.multiple;
|
|
605
605
|
});
|
|
@@ -725,8 +725,8 @@ var SdCombobox = class extends SolidElement {
|
|
|
725
725
|
return filterOnlyOptgroups(getAssignedElementsForSlot(this.defaultSlot));
|
|
726
726
|
}
|
|
727
727
|
async handleDefaultSlotChange() {
|
|
728
|
-
if (!customElements.get("sd-5-13-
|
|
729
|
-
customElements.whenDefined("sd-5-13-
|
|
728
|
+
if (!customElements.get("sd-5-13-10-option")) {
|
|
729
|
+
customElements.whenDefined("sd-5-13-10-option").then(() => this.handleDefaultSlotChange());
|
|
730
730
|
return;
|
|
731
731
|
}
|
|
732
732
|
const slottedOptions = this.getSlottedOptions();
|
|
@@ -738,10 +738,10 @@ var SdCombobox = class extends SolidElement {
|
|
|
738
738
|
if (this.multiple) {
|
|
739
739
|
option.checkbox = true;
|
|
740
740
|
}
|
|
741
|
-
option.id = option.id || `sd-5-13-
|
|
741
|
+
option.id = option.id || `sd-5-13-10-combobox-option-${index}`;
|
|
742
742
|
});
|
|
743
743
|
slottedOptgroups.forEach((optgroup, index) => {
|
|
744
|
-
optgroup.id = optgroup.id || `sd-5-13-
|
|
744
|
+
optgroup.id = optgroup.id || `sd-5-13-10-combobox-optgroup-${index}`;
|
|
745
745
|
});
|
|
746
746
|
await this.syncSelectedOptionsAndValue();
|
|
747
747
|
if (this.multiple) {
|
|
@@ -789,7 +789,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
789
789
|
default: "border-neutral-800"
|
|
790
790
|
}[selectState],
|
|
791
791
|
this.open && (this.currentPlacement === "bottom" ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
|
|
792
|
-
)}"></div><sd-5-13-
|
|
792
|
+
)}"></div><sd-5-13-10-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
|
793
793
|
"inline-flex relative w-full",
|
|
794
794
|
this.currentPlacement === "bottom" ? "origin-top" : "origin-bottom"
|
|
795
795
|
)}" placement="${this.placement}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
|
@@ -811,26 +811,26 @@ var SdCombobox = class extends SolidElement {
|
|
|
811
811
|
"flex justify-center",
|
|
812
812
|
iconMarginLeft,
|
|
813
813
|
this.value.length > 0 ? "visible" : "invisible"
|
|
814
|
-
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-5-13-
|
|
814
|
+
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-5-13-10-icon class="${cx("text-neutral-700", iconSize)}" name="closing-round" library="_internal"></sd-5-13-10-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-5-13-10-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="_internal" name="risk"></sd-5-13-10-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-5-13-10-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="_internal" name="status-check"></sd-5-13-10-icon>` : ""}<slot name="right" part="right" class="${cx(
|
|
815
815
|
"inline-flex ml-2 leading-[0]",
|
|
816
816
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : "text-primary",
|
|
817
817
|
iconSize
|
|
818
|
-
)}">${this.type !== "search" ? html`<sd-5-13-
|
|
818
|
+
)}">${this.type !== "search" ? html`<sd-5-13-10-icon class="${cx(
|
|
819
819
|
"transition-transform duration-medium ease-in-out",
|
|
820
820
|
this.open ? "rotate-180" : "rotate-0"
|
|
821
|
-
)}" name="chevron-down" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-5-13-
|
|
821
|
+
)}" name="chevron-down" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-5-13-10-icon>` : ""}</slot>${this.type === "search" ? html`<button class="${cx("flex items-center sd-interactive", iconMarginLeft)}" type="button"><sd-5-13-10-icon class="${cx(iconColor, iconSize)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-5-13-10-icon></button>` : html`<button class="sd-interactive combobox-button absolute top-2" @keydown="${this.handleComboboxMouseDown}" type="button"><span class="sr-only">${this.localize.term("open")}</span></button>`}</div><div id="listbox" role="${ifDefined(!this.multiple ? "listbox" : void 0)}" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${cx(
|
|
822
822
|
"bg-white px-2 py-3 relative border-primary overflow-y-auto",
|
|
823
823
|
this.open && "shadow transition-shadow duration-medium ease-in-out",
|
|
824
824
|
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"
|
|
825
|
-
)}" 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-5-13-
|
|
825
|
+
)}" 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-5-13-10-popup></div><div part="form-control-help-text" id="help-text" class="text-sm text-neutral-700 mt-2" aria-hidden="${!hasHelpText}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`;
|
|
826
826
|
}
|
|
827
827
|
};
|
|
828
828
|
SdCombobox.styles = [
|
|
829
829
|
...SolidElement.styles,
|
|
830
|
-
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([visually-disabled]) input{caret-color:transparent}:host([size=sm]) .combobox-button{height:var(--sd-spacing-4,1rem);right:var(--sd-spacing-4,1rem);width:var(--sd-spacing-4,1rem)}:host([size=md]) .combobox-button{height:var(--sd-spacing-6,1.5rem);right:.85rem;width:var(--sd-spacing-6,1.5rem)}:host([size=lg]) .combobox-button{height:var(--sd-spacing-8,2rem);right:var(--sd-spacing-3,.75rem);width:var(--sd-spacing-8,2rem)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-5-13-
|
|
830
|
+
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([visually-disabled]) input{caret-color:transparent}:host([size=sm]) .combobox-button{height:var(--sd-spacing-4,1rem);right:var(--sd-spacing-4,1rem);width:var(--sd-spacing-4,1rem)}:host([size=md]) .combobox-button{height:var(--sd-spacing-6,1.5rem);right:.85rem;width:var(--sd-spacing-6,1.5rem)}:host([size=lg]) .combobox-button{height:var(--sd-spacing-8,2rem);right:var(--sd-spacing-3,.75rem);width:var(--sd-spacing-8,2rem)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-5-13-10-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-5-13-10-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-5-13-10-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-5-13-10-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-5-13-10-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-5-13-10-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;color:inherit;font-weight:700}`
|
|
831
831
|
];
|
|
832
832
|
__decorateClass([
|
|
833
|
-
query("sd-5-13-
|
|
833
|
+
query("sd-5-13-10-popup")
|
|
834
834
|
], SdCombobox.prototype, "popup", 2);
|
|
835
835
|
__decorateClass([
|
|
836
836
|
query('[part="combobox"]')
|
|
@@ -988,7 +988,7 @@ __decorateClass([
|
|
|
988
988
|
watch("open", { waitUntilFirstUpdate: true })
|
|
989
989
|
], SdCombobox.prototype, "handleOpenChange", 1);
|
|
990
990
|
SdCombobox = __decorateClass([
|
|
991
|
-
customElement("sd-5-13-
|
|
991
|
+
customElement("sd-5-13-10-combobox")
|
|
992
992
|
], SdCombobox);
|
|
993
993
|
setDefaultAnimation("combobox.show", {
|
|
994
994
|
keyframes: [{ opacity: 0 }, { opacity: 1 }],
|
|
@@ -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-5-13-
|
|
44
|
+
css`:host{display:block}::slotted(sd-5-13-10-accordion:not(:first-of-type)){margin-top:-1px}`
|
|
45
45
|
];
|
|
46
46
|
__decorateClass([
|
|
47
|
-
queryAssignedElements({ selector: "sd-5-13-
|
|
47
|
+
queryAssignedElements({ selector: "sd-5-13-10-accordion" })
|
|
48
48
|
], SdAccordionGroup.prototype, "_accordionsInDefaultSlot", 2);
|
|
49
49
|
__decorateClass([
|
|
50
50
|
property({ attribute: "close-others", type: Boolean, reflect: true })
|
|
51
51
|
], SdAccordionGroup.prototype, "closeOthers", 2);
|
|
52
52
|
SdAccordionGroup = __decorateClass([
|
|
53
|
-
customElement("sd-5-13-
|
|
53
|
+
customElement("sd-5-13-10-accordion-group")
|
|
54
54
|
], SdAccordionGroup);
|
|
55
55
|
|
|
56
56
|
export {
|