@solid-design-system/components 6.29.0 → 6.29.1
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.FVGRD6FB.js → chunk.AM4XV4Z3.js} +1 -1
- package/cdn/components/notification/notification.js +1 -1
- package/cdn/custom-elements.json +169 -169
- package/cdn/solid-components.bundle.js +1 -1
- package/cdn/solid-components.iife.js +1 -1
- package/cdn/solid-components.js +1 -1
- package/cdn/vscode.html-custom-data.json +22 -22
- package/cdn/web-types.json +46 -46
- package/cdn-versioned/chunks/chunk.2QDU75ZN.js +2 -2
- package/cdn-versioned/chunks/chunk.2RKSDCDG.js +2 -2
- package/cdn-versioned/chunks/chunk.36QLPRT4.js +2 -2
- package/cdn-versioned/chunks/chunk.3AMTNKLX.js +10 -10
- package/cdn-versioned/chunks/chunk.3WFZS3BV.js +2 -2
- package/cdn-versioned/chunks/chunk.3WYCL4IT.js +2 -2
- package/cdn-versioned/chunks/chunk.4YAUNXGE.js +2 -2
- package/cdn-versioned/chunks/chunk.5LFQBAR4.js +2 -2
- package/cdn-versioned/chunks/chunk.6PD5QPCL.js +2 -2
- package/cdn-versioned/chunks/chunk.7PBHJ3AA.js +2 -2
- package/cdn-versioned/chunks/chunk.7VEYTFRZ.js +2 -2
- package/cdn-versioned/chunks/chunk.AHBE5NFY.js +2 -2
- package/cdn-versioned/chunks/{chunk.FVGRD6FB.js → chunk.AM4XV4Z3.js} +2 -2
- package/cdn-versioned/chunks/chunk.ANATT6AT.js +2 -2
- package/cdn-versioned/chunks/chunk.AO6JCKAN.js +2 -2
- package/cdn-versioned/chunks/chunk.AOREPZKA.js +2 -2
- package/cdn-versioned/chunks/chunk.ARHQV4EC.js +1 -1
- package/cdn-versioned/chunks/chunk.ASKKOJCO.js +2 -2
- package/cdn-versioned/chunks/chunk.C45254AN.js +2 -2
- package/cdn-versioned/chunks/chunk.CXBBQLKH.js +2 -2
- package/cdn-versioned/chunks/chunk.DAOJL6S4.js +1 -1
- package/cdn-versioned/chunks/chunk.DPQT6F7D.js +2 -2
- package/cdn-versioned/chunks/chunk.DSKB3SEU.js +1 -1
- package/cdn-versioned/chunks/chunk.E534YUSM.js +2 -2
- package/cdn-versioned/chunks/chunk.EI4IMAYD.js +2 -2
- package/cdn-versioned/chunks/chunk.ESAXBMID.js +1 -1
- package/cdn-versioned/chunks/chunk.EUMQZSE2.js +2 -2
- package/cdn-versioned/chunks/chunk.EYIJIVD6.js +2 -2
- package/cdn-versioned/chunks/chunk.F3U2DTSD.js +2 -2
- package/cdn-versioned/chunks/chunk.GIS4DVXQ.js +2 -2
- package/cdn-versioned/chunks/chunk.GJX26DHL.js +2 -2
- package/cdn-versioned/chunks/chunk.GSAQ2Q4R.js +2 -2
- package/cdn-versioned/chunks/chunk.HPIATY3V.js +2 -2
- package/cdn-versioned/chunks/chunk.IFEBOLGE.js +2 -2
- package/cdn-versioned/chunks/chunk.JBAA7CJY.js +2 -2
- package/cdn-versioned/chunks/chunk.JE3YJUVL.js +2 -2
- package/cdn-versioned/chunks/chunk.JL2MPTKO.js +2 -2
- package/cdn-versioned/chunks/chunk.K5N6255P.js +2 -2
- package/cdn-versioned/chunks/chunk.KIOINDJP.js +2 -2
- package/cdn-versioned/chunks/chunk.L2ZKD7MK.js +2 -2
- package/cdn-versioned/chunks/chunk.L336NHPB.js +2 -2
- package/cdn-versioned/chunks/chunk.LZRL7OLU.js +1 -1
- package/cdn-versioned/chunks/chunk.NFGX5YRE.js +3 -3
- package/cdn-versioned/chunks/chunk.NM7MY55L.js +5 -5
- package/cdn-versioned/chunks/chunk.NP23CN3G.js +1 -1
- package/cdn-versioned/chunks/chunk.NXMAZ6GM.js +1 -1
- package/cdn-versioned/chunks/chunk.PKZ4ESIN.js +2 -2
- package/cdn-versioned/chunks/chunk.PYCLTLDF.js +1 -1
- package/cdn-versioned/chunks/chunk.QSJUZLB2.js +2 -2
- package/cdn-versioned/chunks/chunk.QVVPGDHH.js +2 -2
- package/cdn-versioned/chunks/chunk.QZRU4P73.js +2 -2
- package/cdn-versioned/chunks/chunk.T2SNKUUJ.js +1 -1
- package/cdn-versioned/chunks/chunk.TSUM3HLK.js +2 -2
- package/cdn-versioned/chunks/chunk.U27XNZYB.js +5 -5
- package/cdn-versioned/chunks/chunk.VP43465X.js +2 -2
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WBW76Z2R.js +1 -1
- package/cdn-versioned/chunks/chunk.WD66IVTH.js +2 -2
- package/cdn-versioned/chunks/chunk.WEIQTVUC.js +2 -2
- package/cdn-versioned/chunks/chunk.WZRSNXL5.js +2 -2
- package/cdn-versioned/chunks/chunk.YOZZZJAW.js +1 -1
- package/cdn-versioned/chunks/chunk.YV24RFB5.js +2 -2
- package/cdn-versioned/chunks/chunk.Z4YHZJIF.js +3 -3
- package/cdn-versioned/chunks/chunk.ZKZHOLT2.js +3 -3
- package/cdn-versioned/chunks/chunk.ZVWS6LEP.js +1 -1
- package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/cdn-versioned/components/animation/animation.d.ts +1 -1
- package/cdn-versioned/components/audio/audio.d.ts +1 -1
- package/cdn-versioned/components/badge/badge.d.ts +1 -1
- package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/cdn-versioned/components/button/button.d.ts +1 -1
- package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
- package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
- package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
- package/cdn-versioned/components/datepicker/datepicker.d.ts +1 -1
- package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
- package/cdn-versioned/components/divider/divider.d.ts +1 -1
- package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
- package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
- package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/cdn-versioned/components/header/header.d.ts +1 -1
- package/cdn-versioned/components/icon/icon.d.ts +1 -1
- package/cdn-versioned/components/include/include.d.ts +1 -1
- package/cdn-versioned/components/input/input.d.ts +1 -1
- package/cdn-versioned/components/link/link.d.ts +1 -1
- package/cdn-versioned/components/loader/loader.d.ts +1 -1
- package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/cdn-versioned/components/menu/menu.d.ts +1 -1
- package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/cdn-versioned/components/notification/notification.d.ts +1 -1
- package/cdn-versioned/components/notification/notification.js +1 -1
- package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/cdn-versioned/components/option/option.d.ts +1 -1
- package/cdn-versioned/components/popup/popup.d.ts +1 -1
- package/cdn-versioned/components/progress-bar/progress-bar.d.ts +1 -1
- package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/cdn-versioned/components/radio/radio.d.ts +1 -1
- package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/cdn-versioned/components/range/range.d.ts +1 -1
- package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +1 -1
- package/cdn-versioned/components/skeleton/skeleton.d.ts +1 -1
- package/cdn-versioned/components/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/theme-listener/theme-listener.d.ts +1 -1
- package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/cdn-versioned/components/video/video.d.ts +1 -1
- package/cdn-versioned/custom-elements.json +423 -423
- package/cdn-versioned/internal/form.js +2 -2
- package/cdn-versioned/solid-components.bundle.js +81 -81
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +81 -81
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +134 -134
- package/cdn-versioned/web-types.json +211 -211
- package/dist/chunks/{chunk.SRHXZUZH.js → chunk.DZ52GJMF.js} +1 -1
- package/dist/components/notification/notification.js +1 -1
- package/dist/custom-elements.json +1 -1
- package/dist/solid-components.js +4 -4
- package/dist/web-types.json +1 -1
- package/dist-versioned/chunks/chunk.2R6BV36X.js +3 -3
- package/dist-versioned/chunks/chunk.3SKQW3OF.js +1 -1
- package/dist-versioned/chunks/chunk.5JXNGWGO.js +6 -6
- package/dist-versioned/chunks/chunk.5LPEWRVH.js +1 -1
- package/dist-versioned/chunks/chunk.67F53YIT.js +3 -3
- package/dist-versioned/chunks/chunk.6A5KL2ME.js +2 -2
- package/dist-versioned/chunks/chunk.6CQHWDTR.js +2 -2
- package/dist-versioned/chunks/chunk.73VNCNET.js +5 -5
- package/dist-versioned/chunks/chunk.7QCSVC6W.js +5 -5
- package/dist-versioned/chunks/chunk.AQ2YHTJT.js +5 -5
- package/dist-versioned/chunks/chunk.AQPWS7H5.js +1 -1
- package/dist-versioned/chunks/chunk.BHAJNYNR.js +2 -2
- package/dist-versioned/chunks/chunk.C3WIBDGG.js +2 -2
- package/dist-versioned/chunks/chunk.DANLADQA.js +6 -6
- package/dist-versioned/chunks/chunk.DEKB47SU.js +7 -7
- package/dist-versioned/chunks/{chunk.SRHXZUZH.js → chunk.DZ52GJMF.js} +11 -11
- package/dist-versioned/chunks/chunk.E7TO66OI.js +11 -11
- package/dist-versioned/chunks/chunk.EVXE6QT5.js +5 -5
- package/dist-versioned/chunks/chunk.FGGJHWJQ.js +4 -4
- package/dist-versioned/chunks/chunk.G3YXVIXP.js +5 -5
- package/dist-versioned/chunks/chunk.G4M5E52C.js +11 -11
- package/dist-versioned/chunks/chunk.GGTNOUL3.js +2 -2
- package/dist-versioned/chunks/chunk.GKK76LN5.js +10 -10
- package/dist-versioned/chunks/chunk.J2IWPOVN.js +5 -5
- package/dist-versioned/chunks/chunk.JZERVNQH.js +4 -4
- package/dist-versioned/chunks/chunk.KBLFP77D.js +4 -4
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/chunk.KLDMZEUO.js +1 -1
- package/dist-versioned/chunks/chunk.KOYTK43J.js +8 -8
- package/dist-versioned/chunks/chunk.KPKOJGRC.js +2 -2
- package/dist-versioned/chunks/chunk.L3QZLYWI.js +5 -5
- package/dist-versioned/chunks/chunk.LCMQJOE7.js +2 -2
- package/dist-versioned/chunks/chunk.M74NHLSR.js +25 -25
- package/dist-versioned/chunks/chunk.NEPWG7EE.js +2 -2
- package/dist-versioned/chunks/chunk.NZOLXA5P.js +4 -4
- package/dist-versioned/chunks/chunk.OPHYFYBJ.js +7 -7
- package/dist-versioned/chunks/chunk.OVLIDOUF.js +6 -6
- package/dist-versioned/chunks/chunk.Q6BM6VB4.js +13 -13
- package/dist-versioned/chunks/chunk.QGERTGJH.js +4 -4
- package/dist-versioned/chunks/chunk.QP6NYUMR.js +3 -3
- package/dist-versioned/chunks/chunk.RM4W3RUJ.js +2 -2
- package/dist-versioned/chunks/chunk.RZYQYD7F.js +23 -23
- package/dist-versioned/chunks/chunk.S7MVQQ7P.js +10 -10
- package/dist-versioned/chunks/chunk.SFQPANQ4.js +42 -42
- package/dist-versioned/chunks/chunk.SMXDKTQJ.js +1 -1
- package/dist-versioned/chunks/chunk.SUBKF7CK.js +6 -6
- package/dist-versioned/chunks/chunk.SZX2DZVG.js +3 -3
- package/dist-versioned/chunks/chunk.T73O2TL3.js +1 -1
- package/dist-versioned/chunks/chunk.TCCVXGO3.js +5 -5
- package/dist-versioned/chunks/chunk.TD274Z54.js +2 -2
- package/dist-versioned/chunks/chunk.TH56Y5BD.js +12 -12
- package/dist-versioned/chunks/chunk.U3TJBK63.js +7 -7
- package/dist-versioned/chunks/chunk.UHD76K4J.js +6 -6
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.UPUTDGVP.js +14 -14
- package/dist-versioned/chunks/chunk.UU33HKYA.js +3 -3
- package/dist-versioned/chunks/chunk.WQ53PAAJ.js +1 -1
- package/dist-versioned/chunks/chunk.WWVBSSYI.js +3 -3
- package/dist-versioned/chunks/chunk.XDHACCFS.js +5 -5
- package/dist-versioned/chunks/chunk.YJ3HFB7U.js +10 -10
- package/dist-versioned/chunks/chunk.YVETO4SL.js +1 -1
- package/dist-versioned/chunks/chunk.YXXCQXMG.js +3 -3
- package/dist-versioned/chunks/chunk.ZJE7OCFV.js +2 -2
- package/dist-versioned/chunks/chunk.ZN6NBM5K.js +12 -12
- package/dist-versioned/chunks/chunk.ZOAGCGB2.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/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/dist-versioned/components/button/button.d.ts +1 -1
- package/dist-versioned/components/button-group/button-group.d.ts +1 -1
- package/dist-versioned/components/carousel/carousel.d.ts +1 -1
- package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist-versioned/components/combobox/combobox.d.ts +1 -1
- package/dist-versioned/components/datepicker/datepicker.d.ts +1 -1
- package/dist-versioned/components/dialog/dialog.d.ts +1 -1
- package/dist-versioned/components/divider/divider.d.ts +1 -1
- package/dist-versioned/components/drawer/drawer.d.ts +1 -1
- package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/dist-versioned/components/expandable/expandable.d.ts +1 -1
- package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/dist-versioned/components/header/header.d.ts +1 -1
- package/dist-versioned/components/icon/icon.d.ts +1 -1
- package/dist-versioned/components/include/include.d.ts +1 -1
- package/dist-versioned/components/input/input.d.ts +1 -1
- package/dist-versioned/components/link/link.d.ts +1 -1
- package/dist-versioned/components/loader/loader.d.ts +1 -1
- package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/dist-versioned/components/menu/menu.d.ts +1 -1
- package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
- package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist-versioned/components/notification/notification.d.ts +1 -1
- package/dist-versioned/components/notification/notification.js +1 -1
- package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/dist-versioned/components/option/option.d.ts +1 -1
- package/dist-versioned/components/popup/popup.d.ts +1 -1
- package/dist-versioned/components/progress-bar/progress-bar.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/dist-versioned/components/radio/radio.d.ts +1 -1
- package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/dist-versioned/components/range/range.d.ts +1 -1
- package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +1 -1
- package/dist-versioned/components/skeleton/skeleton.d.ts +1 -1
- package/dist-versioned/components/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/theme-listener/theme-listener.d.ts +1 -1
- package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/dist-versioned/components/video/video.d.ts +1 -1
- package/dist-versioned/custom-elements.json +423 -423
- package/dist-versioned/internal/form.js +2 -2
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +4 -4
- package/dist-versioned/vscode.html-custom-data.json +134 -134
- package/dist-versioned/web-types.json +211 -211
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as y,b as k}from"./chunk.I2H6CZK5.js";import{a as $}from"./chunk.LHSR56PH.js";import{a as c,c as d}from"./chunk.B2NUKX6G.js";import{a as g}from"./chunk.KLRPP4NQ.js";import{a as H}from"./chunk.VAM5SM3O.js";import{a as o}from"./chunk.4ZZFYCXX.js";import{a as f}from"./chunk.NYKJXI3Q.js";import{a as T,b as s,d as p,h as w}from"./chunk.ESAXBMID.js";import{b as v,e as u}from"./chunk.OBAEIKIV.js";import{b as n,e as l,f as b}from"./chunk.W4QBFD6E.js";import{e}from"./chunk.6EV4YU6C.js";var m={"top-right":null,"bottom-center":null},E=()=>{Object.entries(m).forEach(([a])=>{let h=document.querySelector(`#sd-toast-stack--${a}`);if(h){h.setAttribute("role","region"),m[a]=h;return}m[a]=Object.assign(document.createElement("div"),{role:"region",id:`sd-toast-stack--${a}`,className:`sd-toast-stack sd-toast-stack--${a}`})})};E();var t=class extends w{constructor(){super(...arguments);this.localize=new H(this);this.variant="info";this.open=!1;this.closable=!1;this.duration=1/0;this.durationIndicator=!1;this.toastStack="top-right";this.remainingDuration=this.duration;this.startTime=Date.now()}get stack(){return m[this.toastStack]}connectedCallback(){super.connectedCallback(),this.stack.parentElement||(document.body.append(this.stack),this.stack.ariaLabel=this.localize.term("notifications"))}disconnectedCallback(){super.disconnectedCallback()}firstUpdated(){this.wrapper.hidden=!this.open}startAutoHide(){clearTimeout(this.autoHideTimeout),this.startTime=Date.now(),this.remainingDuration=this.duration,this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>this.hide(),this.duration))}onHover(){clearTimeout(this.autoHideTimeout),this.duration<1/0&&(this.remainingDuration-=Date.now()-this.startTime)}onHoverEnd(){this.startTime=Date.now(),clearTimeout(this.autoHideTimeout),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>{this.hide()},this.remainingDuration))}handleCloseClick(){this.hide()}handleKeyDown(i){this.closable&&i.key==="Escape"&&this.hide()}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.duration<1/0&&this.startAutoHide(),await Promise.all([l(this.base),l(this.wrapper)]),this.wrapper.hidden=!1;let i=d(this,"notification.show",{dir:this.localize.dir()}),r=d(this,`notification.wrapper.show${y(k(this.toastStack))}`,{dir:this.localize.dir()});await Promise.all([n(this.base,b(i.keyframes,this.base.scrollHeight),i.options),n(this.wrapper,r.keyframes,r.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await Promise.all([l(this.base),l(this.wrapper)]);let i=d(this,"notification.hide",{dir:this.localize.dir()}),r=d(this,`notification.wrapper.hide${y(k(this.toastStack))}`,{dir:this.localize.dir()});await Promise.all([n(this.base,b(i.keyframes,this.base.scrollHeight),i.options),n(this.wrapper,r.keyframes,r.options)]),this.wrapper.hidden=!0,this.emit("sd-after-hide")}}handleDurationChange(){this.startAutoHide()}async show(){if(!this.open)return this.open=!0,g(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,g(this,"sd-after-hide")}async toast(){return new Promise(i=>{this.stack.parentElement===null&&document.body.append(this.stack),this.stack.appendChild(this),requestAnimationFrame(()=>{this.clientWidth,this.show()}),this.addEventListener("sd-after-hide",()=>{this.stack.removeChild(this),i()},{once:!0})})}render(){return u`<div part="base" class="${o("w-full flex items-stretch m-2 focus-visible:focus-outline")}" id="notification" tabindex="${$(this.closable?"0":void 0)}" role="alert" aria-labelledby="message" aria-hidden="${this.open?"false":"true"}" @mouseenter="${this.onHover}" @mouseleave="${this.onHoverEnd}" @keydown="${this.handleKeyDown}"><div part="wrapper" class="${o("w-full h-fit overflow-hidden flex items-stretch relative")}"><slot name="icon" part="icon" class="${o("min-w-min flex items-center px-3 justify-center",{info:"bg-info",success:"bg-success",warning:"bg-warning",error:"bg-error"}[this.variant])}"><sd-icon name="${{info:"info-circle",success:"confirm-circle",warning:"exclamation-circle",error:"
|
|
1
|
+
import{a as y,b as k}from"./chunk.I2H6CZK5.js";import{a as $}from"./chunk.LHSR56PH.js";import{a as c,c as d}from"./chunk.B2NUKX6G.js";import{a as g}from"./chunk.KLRPP4NQ.js";import{a as H}from"./chunk.VAM5SM3O.js";import{a as o}from"./chunk.4ZZFYCXX.js";import{a as f}from"./chunk.NYKJXI3Q.js";import{a as T,b as s,d as p,h as w}from"./chunk.ESAXBMID.js";import{b as v,e as u}from"./chunk.OBAEIKIV.js";import{b as n,e as l,f as b}from"./chunk.W4QBFD6E.js";import{e}from"./chunk.6EV4YU6C.js";var m={"top-right":null,"bottom-center":null},E=()=>{Object.entries(m).forEach(([a])=>{let h=document.querySelector(`#sd-toast-stack--${a}`);if(h){h.setAttribute("role","region"),m[a]=h;return}m[a]=Object.assign(document.createElement("div"),{role:"region",id:`sd-toast-stack--${a}`,className:`sd-toast-stack sd-toast-stack--${a}`})})};E();var t=class extends w{constructor(){super(...arguments);this.localize=new H(this);this.variant="info";this.open=!1;this.closable=!1;this.duration=1/0;this.durationIndicator=!1;this.toastStack="top-right";this.remainingDuration=this.duration;this.startTime=Date.now()}get stack(){return m[this.toastStack]}connectedCallback(){super.connectedCallback(),this.stack.parentElement||(document.body.append(this.stack),this.stack.ariaLabel=this.localize.term("notifications"))}disconnectedCallback(){super.disconnectedCallback()}firstUpdated(){this.wrapper.hidden=!this.open}startAutoHide(){clearTimeout(this.autoHideTimeout),this.startTime=Date.now(),this.remainingDuration=this.duration,this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>this.hide(),this.duration))}onHover(){clearTimeout(this.autoHideTimeout),this.duration<1/0&&(this.remainingDuration-=Date.now()-this.startTime)}onHoverEnd(){this.startTime=Date.now(),clearTimeout(this.autoHideTimeout),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>{this.hide()},this.remainingDuration))}handleCloseClick(){this.hide()}handleKeyDown(i){this.closable&&i.key==="Escape"&&this.hide()}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.duration<1/0&&this.startAutoHide(),await Promise.all([l(this.base),l(this.wrapper)]),this.wrapper.hidden=!1;let i=d(this,"notification.show",{dir:this.localize.dir()}),r=d(this,`notification.wrapper.show${y(k(this.toastStack))}`,{dir:this.localize.dir()});await Promise.all([n(this.base,b(i.keyframes,this.base.scrollHeight),i.options),n(this.wrapper,r.keyframes,r.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await Promise.all([l(this.base),l(this.wrapper)]);let i=d(this,"notification.hide",{dir:this.localize.dir()}),r=d(this,`notification.wrapper.hide${y(k(this.toastStack))}`,{dir:this.localize.dir()});await Promise.all([n(this.base,b(i.keyframes,this.base.scrollHeight),i.options),n(this.wrapper,r.keyframes,r.options)]),this.wrapper.hidden=!0,this.emit("sd-after-hide")}}handleDurationChange(){this.startAutoHide()}async show(){if(!this.open)return this.open=!0,g(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,g(this,"sd-after-hide")}async toast(){return new Promise(i=>{this.stack.parentElement===null&&document.body.append(this.stack),this.stack.appendChild(this),requestAnimationFrame(()=>{this.clientWidth,this.show()}),this.addEventListener("sd-after-hide",()=>{this.stack.removeChild(this),i()},{once:!0})})}render(){return u`<div part="base" class="${o("w-full flex items-stretch m-2 focus-visible:focus-outline")}" id="notification" tabindex="${$(this.closable?"0":void 0)}" role="alert" aria-labelledby="message" aria-hidden="${this.open?"false":"true"}" @mouseenter="${this.onHover}" @mouseleave="${this.onHoverEnd}" @keydown="${this.handleKeyDown}"><div part="wrapper" class="${o("w-full h-fit overflow-hidden flex items-stretch relative")}"><slot name="icon" part="icon" class="${o("min-w-min flex items-center px-3 justify-center",{info:"bg-info",success:"bg-success",warning:"bg-warning",error:"bg-error"}[this.variant])}"><sd-icon name="${{info:"info-circle",success:"confirm-circle",warning:"exclamation-circle",error:"risk"}[this.variant]||""}" library="_internal" class="h-6 w-6 text-white"></sd-icon></slot><div part="content" class="${o("h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white","border-solid border-[1px] border-l-0 sd-notification-color-border",{info:"sd-notification--info-color-background",success:"sd-notification--success-color-background",warning:"sd-notification--warning-color-background",error:"sd-notification--error-color-background"}[this.variant])}"><slot id="message" part="message" class="block w-full pl-3 py-2"></slot>${this.closable?u`<sd-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-icon></sd-button>`:""}</div>${this.durationIndicator?u`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${o("absolute w-0 h-[2px] bottom-0 sd-notification__duration-indicator-color-background z-10 animate-grow")}"></div><div part="duration-indicator__total" class="w-full h-[2px] bottom-0 absolute border border-neutral-400"></div>`:""}</div></div>`}};t.styles=[...w.styles,v`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
2
2
|
:host{display:contents}#notification:hover #duration-indicator__elapsed{animation-play-state:paused!important}`],e([p('[part~="base"]')],t.prototype,"base",2),e([p('[part~="wrapper"]')],t.prototype,"wrapper",2),e([p('[part~="close-button"]')],t.prototype,"close",2),e([s({type:String,reflect:!0})],t.prototype,"variant",2),e([s({type:Boolean,reflect:!0})],t.prototype,"open",2),e([s({type:Boolean,reflect:!0})],t.prototype,"closable",2),e([s({type:Number,reflect:!0})],t.prototype,"duration",2),e([s({type:Boolean,reflect:!0,attribute:"duration-indicator"})],t.prototype,"durationIndicator",2),e([s({type:String,reflect:!0,attribute:"toast-stack"})],t.prototype,"toastStack",2),e([f("open",{waitUntilFirstUpdate:!0})],t.prototype,"handleOpenChange",1),e([f("duration")],t.prototype,"handleDurationChange",1),t=e([T("sd-notification")],t);c("notification.show",{keyframes:[{opacity:0,height:0},{opacity:1,height:"auto"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});c("notification.hide",{keyframes:[{opacity:1,height:"auto"},{opacity:0,height:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});c("notification.wrapper.showTopRight",{keyframes:[{bottom:"32px"},{bottom:"0"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});c("notification.wrapper.hideTopRight",{keyframes:[{bottom:"0"},{bottom:"32px"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});export{t as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk.
|
|
1
|
+
import{a}from"../../chunks/chunk.AM4XV4Z3.js";import"../../chunks/chunk.I2H6CZK5.js";import"../../chunks/chunk.3AMTNKLX.js";import"../../chunks/chunk.NXMAZ6GM.js";import"../../chunks/chunk.ARHQV4EC.js";import"../../chunks/chunk.LZRL7OLU.js";import"../../chunks/chunk.LHSR56PH.js";import"../../chunks/chunk.CGQ2BPPZ.js";import"../../chunks/chunk.B2NUKX6G.js";import"../../chunks/chunk.NL7YFV4O.js";import"../../chunks/chunk.KLRPP4NQ.js";import"../../chunks/chunk.6PD5QPCL.js";import"../../chunks/chunk.W5O4FM6B.js";import"../../chunks/chunk.QQD62QOV.js";import"../../chunks/chunk.NYJUQAML.js";import"../../chunks/chunk.TRGIF57L.js";import"../../chunks/chunk.MB7SWCJ2.js";import"../../chunks/chunk.U7TS5SGA.js";import"../../chunks/chunk.PYHYYOBE.js";import"../../chunks/chunk.TWZDCIM2.js";import"../../chunks/chunk.MWDEA25W.js";import"../../chunks/chunk.VAM5SM3O.js";import"../../chunks/chunk.PB7NJRWC.js";import"../../chunks/chunk.NADOKI3X.js";import"../../chunks/chunk.4XDRYWQQ.js";import"../../chunks/chunk.4ZZFYCXX.js";import"../../chunks/chunk.NYKJXI3Q.js";import"../../chunks/chunk.ESAXBMID.js";import"../../chunks/chunk.OBAEIKIV.js";import"../../chunks/chunk.W4QBFD6E.js";import"../../chunks/chunk.6EV4YU6C.js";export{a as default};
|
package/cdn/custom-elements.json
CHANGED
|
@@ -11912,174 +11912,6 @@
|
|
|
11912
11912
|
}
|
|
11913
11913
|
]
|
|
11914
11914
|
},
|
|
11915
|
-
{
|
|
11916
|
-
"kind": "javascript-module",
|
|
11917
|
-
"path": "components/menu/menu.js",
|
|
11918
|
-
"declarations": [
|
|
11919
|
-
{
|
|
11920
|
-
"kind": "class",
|
|
11921
|
-
"description": "",
|
|
11922
|
-
"name": "SdMenu",
|
|
11923
|
-
"slots": [
|
|
11924
|
-
{
|
|
11925
|
-
"description": "The menu's content.",
|
|
11926
|
-
"name": ""
|
|
11927
|
-
}
|
|
11928
|
-
],
|
|
11929
|
-
"members": [
|
|
11930
|
-
{
|
|
11931
|
-
"kind": "field",
|
|
11932
|
-
"name": "localize",
|
|
11933
|
-
"privacy": "public",
|
|
11934
|
-
"default": "new LocalizeController(this)"
|
|
11935
|
-
},
|
|
11936
|
-
{
|
|
11937
|
-
"kind": "field",
|
|
11938
|
-
"name": "dir",
|
|
11939
|
-
"type": {
|
|
11940
|
-
"text": "'ltr' | 'rtl' | 'auto'"
|
|
11941
|
-
},
|
|
11942
|
-
"description": "The element's directionality.",
|
|
11943
|
-
"attribute": "dir",
|
|
11944
|
-
"inheritedFrom": {
|
|
11945
|
-
"name": "SolidElement",
|
|
11946
|
-
"module": "internal/solid-element.js"
|
|
11947
|
-
}
|
|
11948
|
-
},
|
|
11949
|
-
{
|
|
11950
|
-
"kind": "field",
|
|
11951
|
-
"name": "lang",
|
|
11952
|
-
"type": {
|
|
11953
|
-
"text": "string"
|
|
11954
|
-
},
|
|
11955
|
-
"description": "The element's language.",
|
|
11956
|
-
"attribute": "lang",
|
|
11957
|
-
"inheritedFrom": {
|
|
11958
|
-
"name": "SolidElement",
|
|
11959
|
-
"module": "internal/solid-element.js"
|
|
11960
|
-
}
|
|
11961
|
-
},
|
|
11962
|
-
{
|
|
11963
|
-
"kind": "method",
|
|
11964
|
-
"name": "emit",
|
|
11965
|
-
"parameters": [
|
|
11966
|
-
{
|
|
11967
|
-
"name": "name",
|
|
11968
|
-
"type": {
|
|
11969
|
-
"text": "string"
|
|
11970
|
-
}
|
|
11971
|
-
},
|
|
11972
|
-
{
|
|
11973
|
-
"name": "options",
|
|
11974
|
-
"optional": true,
|
|
11975
|
-
"type": {
|
|
11976
|
-
"text": "CustomEventInit"
|
|
11977
|
-
}
|
|
11978
|
-
}
|
|
11979
|
-
],
|
|
11980
|
-
"description": "Emits a custom event with more convenient defaults.",
|
|
11981
|
-
"inheritedFrom": {
|
|
11982
|
-
"name": "SolidElement",
|
|
11983
|
-
"module": "internal/solid-element.js"
|
|
11984
|
-
}
|
|
11985
|
-
},
|
|
11986
|
-
{
|
|
11987
|
-
"kind": "method",
|
|
11988
|
-
"name": "token",
|
|
11989
|
-
"return": {
|
|
11990
|
-
"type": {
|
|
11991
|
-
"text": "T"
|
|
11992
|
-
}
|
|
11993
|
-
},
|
|
11994
|
-
"parameters": [
|
|
11995
|
-
{
|
|
11996
|
-
"name": "name",
|
|
11997
|
-
"type": {
|
|
11998
|
-
"text": "string"
|
|
11999
|
-
}
|
|
12000
|
-
},
|
|
12001
|
-
{
|
|
12002
|
-
"name": "fallback",
|
|
12003
|
-
"type": {
|
|
12004
|
-
"text": "T"
|
|
12005
|
-
}
|
|
12006
|
-
}
|
|
12007
|
-
],
|
|
12008
|
-
"description": "Retrieves the value of a css variable token.",
|
|
12009
|
-
"inheritedFrom": {
|
|
12010
|
-
"name": "SolidElement",
|
|
12011
|
-
"module": "internal/solid-element.js"
|
|
12012
|
-
}
|
|
12013
|
-
}
|
|
12014
|
-
],
|
|
12015
|
-
"events": [
|
|
12016
|
-
{
|
|
12017
|
-
"description": "Emitted when a menu item is selected.",
|
|
12018
|
-
"name": "sd-select"
|
|
12019
|
-
}
|
|
12020
|
-
],
|
|
12021
|
-
"superclass": {
|
|
12022
|
-
"name": "SolidElement",
|
|
12023
|
-
"module": "/src/internal/solid-element"
|
|
12024
|
-
},
|
|
12025
|
-
"summary": "Used as a list of choices to the user, such as a set of actions or functions.",
|
|
12026
|
-
"status": "experimental",
|
|
12027
|
-
"since": "5.9.0",
|
|
12028
|
-
"dependencies": [
|
|
12029
|
-
"sd-menu-item",
|
|
12030
|
-
"sd-divider",
|
|
12031
|
-
"sd-icon",
|
|
12032
|
-
"sd-dropdown"
|
|
12033
|
-
],
|
|
12034
|
-
"tagName": "sd-menu",
|
|
12035
|
-
"customElement": true,
|
|
12036
|
-
"attributes": [
|
|
12037
|
-
{
|
|
12038
|
-
"name": "dir",
|
|
12039
|
-
"type": {
|
|
12040
|
-
"text": "'ltr' | 'rtl' | 'auto'"
|
|
12041
|
-
},
|
|
12042
|
-
"description": "The element's directionality.",
|
|
12043
|
-
"fieldName": "dir",
|
|
12044
|
-
"inheritedFrom": {
|
|
12045
|
-
"name": "SolidElement",
|
|
12046
|
-
"module": "src/internal/solid-element.ts"
|
|
12047
|
-
}
|
|
12048
|
-
},
|
|
12049
|
-
{
|
|
12050
|
-
"name": "lang",
|
|
12051
|
-
"type": {
|
|
12052
|
-
"text": "string"
|
|
12053
|
-
},
|
|
12054
|
-
"description": "The element's language.",
|
|
12055
|
-
"fieldName": "lang",
|
|
12056
|
-
"inheritedFrom": {
|
|
12057
|
-
"name": "SolidElement",
|
|
12058
|
-
"module": "src/internal/solid-element.ts"
|
|
12059
|
-
}
|
|
12060
|
-
}
|
|
12061
|
-
]
|
|
12062
|
-
}
|
|
12063
|
-
],
|
|
12064
|
-
"exports": [
|
|
12065
|
-
{
|
|
12066
|
-
"kind": "js",
|
|
12067
|
-
"name": "default",
|
|
12068
|
-
"declaration": {
|
|
12069
|
-
"name": "SdMenu",
|
|
12070
|
-
"module": "components/menu/menu.js"
|
|
12071
|
-
}
|
|
12072
|
-
},
|
|
12073
|
-
{
|
|
12074
|
-
"kind": "custom-element-definition",
|
|
12075
|
-
"name": "sd-menu",
|
|
12076
|
-
"declaration": {
|
|
12077
|
-
"name": "SdMenu",
|
|
12078
|
-
"module": "components/menu/menu.js"
|
|
12079
|
-
}
|
|
12080
|
-
}
|
|
12081
|
-
]
|
|
12082
|
-
},
|
|
12083
11915
|
{
|
|
12084
11916
|
"kind": "javascript-module",
|
|
12085
11917
|
"path": "components/map-marker/map-marker.js",
|
|
@@ -12443,6 +12275,174 @@
|
|
|
12443
12275
|
}
|
|
12444
12276
|
]
|
|
12445
12277
|
},
|
|
12278
|
+
{
|
|
12279
|
+
"kind": "javascript-module",
|
|
12280
|
+
"path": "components/menu/menu.js",
|
|
12281
|
+
"declarations": [
|
|
12282
|
+
{
|
|
12283
|
+
"kind": "class",
|
|
12284
|
+
"description": "",
|
|
12285
|
+
"name": "SdMenu",
|
|
12286
|
+
"slots": [
|
|
12287
|
+
{
|
|
12288
|
+
"description": "The menu's content.",
|
|
12289
|
+
"name": ""
|
|
12290
|
+
}
|
|
12291
|
+
],
|
|
12292
|
+
"members": [
|
|
12293
|
+
{
|
|
12294
|
+
"kind": "field",
|
|
12295
|
+
"name": "localize",
|
|
12296
|
+
"privacy": "public",
|
|
12297
|
+
"default": "new LocalizeController(this)"
|
|
12298
|
+
},
|
|
12299
|
+
{
|
|
12300
|
+
"kind": "field",
|
|
12301
|
+
"name": "dir",
|
|
12302
|
+
"type": {
|
|
12303
|
+
"text": "'ltr' | 'rtl' | 'auto'"
|
|
12304
|
+
},
|
|
12305
|
+
"description": "The element's directionality.",
|
|
12306
|
+
"attribute": "dir",
|
|
12307
|
+
"inheritedFrom": {
|
|
12308
|
+
"name": "SolidElement",
|
|
12309
|
+
"module": "internal/solid-element.js"
|
|
12310
|
+
}
|
|
12311
|
+
},
|
|
12312
|
+
{
|
|
12313
|
+
"kind": "field",
|
|
12314
|
+
"name": "lang",
|
|
12315
|
+
"type": {
|
|
12316
|
+
"text": "string"
|
|
12317
|
+
},
|
|
12318
|
+
"description": "The element's language.",
|
|
12319
|
+
"attribute": "lang",
|
|
12320
|
+
"inheritedFrom": {
|
|
12321
|
+
"name": "SolidElement",
|
|
12322
|
+
"module": "internal/solid-element.js"
|
|
12323
|
+
}
|
|
12324
|
+
},
|
|
12325
|
+
{
|
|
12326
|
+
"kind": "method",
|
|
12327
|
+
"name": "emit",
|
|
12328
|
+
"parameters": [
|
|
12329
|
+
{
|
|
12330
|
+
"name": "name",
|
|
12331
|
+
"type": {
|
|
12332
|
+
"text": "string"
|
|
12333
|
+
}
|
|
12334
|
+
},
|
|
12335
|
+
{
|
|
12336
|
+
"name": "options",
|
|
12337
|
+
"optional": true,
|
|
12338
|
+
"type": {
|
|
12339
|
+
"text": "CustomEventInit"
|
|
12340
|
+
}
|
|
12341
|
+
}
|
|
12342
|
+
],
|
|
12343
|
+
"description": "Emits a custom event with more convenient defaults.",
|
|
12344
|
+
"inheritedFrom": {
|
|
12345
|
+
"name": "SolidElement",
|
|
12346
|
+
"module": "internal/solid-element.js"
|
|
12347
|
+
}
|
|
12348
|
+
},
|
|
12349
|
+
{
|
|
12350
|
+
"kind": "method",
|
|
12351
|
+
"name": "token",
|
|
12352
|
+
"return": {
|
|
12353
|
+
"type": {
|
|
12354
|
+
"text": "T"
|
|
12355
|
+
}
|
|
12356
|
+
},
|
|
12357
|
+
"parameters": [
|
|
12358
|
+
{
|
|
12359
|
+
"name": "name",
|
|
12360
|
+
"type": {
|
|
12361
|
+
"text": "string"
|
|
12362
|
+
}
|
|
12363
|
+
},
|
|
12364
|
+
{
|
|
12365
|
+
"name": "fallback",
|
|
12366
|
+
"type": {
|
|
12367
|
+
"text": "T"
|
|
12368
|
+
}
|
|
12369
|
+
}
|
|
12370
|
+
],
|
|
12371
|
+
"description": "Retrieves the value of a css variable token.",
|
|
12372
|
+
"inheritedFrom": {
|
|
12373
|
+
"name": "SolidElement",
|
|
12374
|
+
"module": "internal/solid-element.js"
|
|
12375
|
+
}
|
|
12376
|
+
}
|
|
12377
|
+
],
|
|
12378
|
+
"events": [
|
|
12379
|
+
{
|
|
12380
|
+
"description": "Emitted when a menu item is selected.",
|
|
12381
|
+
"name": "sd-select"
|
|
12382
|
+
}
|
|
12383
|
+
],
|
|
12384
|
+
"superclass": {
|
|
12385
|
+
"name": "SolidElement",
|
|
12386
|
+
"module": "/src/internal/solid-element"
|
|
12387
|
+
},
|
|
12388
|
+
"summary": "Used as a list of choices to the user, such as a set of actions or functions.",
|
|
12389
|
+
"status": "experimental",
|
|
12390
|
+
"since": "5.9.0",
|
|
12391
|
+
"dependencies": [
|
|
12392
|
+
"sd-menu-item",
|
|
12393
|
+
"sd-divider",
|
|
12394
|
+
"sd-icon",
|
|
12395
|
+
"sd-dropdown"
|
|
12396
|
+
],
|
|
12397
|
+
"tagName": "sd-menu",
|
|
12398
|
+
"customElement": true,
|
|
12399
|
+
"attributes": [
|
|
12400
|
+
{
|
|
12401
|
+
"name": "dir",
|
|
12402
|
+
"type": {
|
|
12403
|
+
"text": "'ltr' | 'rtl' | 'auto'"
|
|
12404
|
+
},
|
|
12405
|
+
"description": "The element's directionality.",
|
|
12406
|
+
"fieldName": "dir",
|
|
12407
|
+
"inheritedFrom": {
|
|
12408
|
+
"name": "SolidElement",
|
|
12409
|
+
"module": "src/internal/solid-element.ts"
|
|
12410
|
+
}
|
|
12411
|
+
},
|
|
12412
|
+
{
|
|
12413
|
+
"name": "lang",
|
|
12414
|
+
"type": {
|
|
12415
|
+
"text": "string"
|
|
12416
|
+
},
|
|
12417
|
+
"description": "The element's language.",
|
|
12418
|
+
"fieldName": "lang",
|
|
12419
|
+
"inheritedFrom": {
|
|
12420
|
+
"name": "SolidElement",
|
|
12421
|
+
"module": "src/internal/solid-element.ts"
|
|
12422
|
+
}
|
|
12423
|
+
}
|
|
12424
|
+
]
|
|
12425
|
+
}
|
|
12426
|
+
],
|
|
12427
|
+
"exports": [
|
|
12428
|
+
{
|
|
12429
|
+
"kind": "js",
|
|
12430
|
+
"name": "default",
|
|
12431
|
+
"declaration": {
|
|
12432
|
+
"name": "SdMenu",
|
|
12433
|
+
"module": "components/menu/menu.js"
|
|
12434
|
+
}
|
|
12435
|
+
},
|
|
12436
|
+
{
|
|
12437
|
+
"kind": "custom-element-definition",
|
|
12438
|
+
"name": "sd-menu",
|
|
12439
|
+
"declaration": {
|
|
12440
|
+
"name": "SdMenu",
|
|
12441
|
+
"module": "components/menu/menu.js"
|
|
12442
|
+
}
|
|
12443
|
+
}
|
|
12444
|
+
]
|
|
12445
|
+
},
|
|
12446
12446
|
{
|
|
12447
12447
|
"kind": "javascript-module",
|
|
12448
12448
|
"path": "components/menu-item/menu-item.js",
|
|
@@ -23723,7 +23723,7 @@
|
|
|
23723
23723
|
"package": {
|
|
23724
23724
|
"name": "@solid-design-system/components",
|
|
23725
23725
|
"description": "Solid Design System: Components",
|
|
23726
|
-
"version": "6.29.
|
|
23726
|
+
"version": "6.29.1",
|
|
23727
23727
|
"author": "Union Investment",
|
|
23728
23728
|
"homepage": "https://solid-design-system.fe.union-investment.de/docs/",
|
|
23729
23729
|
"license": "MIT"
|
|
@@ -248,7 +248,7 @@ sd-button::part(base){display:flex;height:var(--sd-spacing-12);width:var(--sd-sp
|
|
|
248
248
|
:host{display:block}#motion-wrapper{mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-position:center;-webkit-mask-position:center;mask-size:contain;-webkit-mask-size:contain}:host([variant=cluster]) [part=base],svg{width:calc(var(--sd-spacing-12,3rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=base]{height:calc(var(--sd-spacing-12,3rem) * var(--map-marker-scaling,1))}:host(:not([variant=cluster])) [part=base]{height:calc(var(--sd-spacing-16,4rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=content]{font-size:calc(var(--sd-font-size-sm,.875rem) * var(--map-marker-scaling,1))}:host([variant=place]) [part=content]{margin-top:calc(var(--sd-spacing-2) * -1);font-size:calc(var(--sd-font-size-3xl,2rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=motion-wrapper]>div>div{background-color:rgba(var(--sd-map-marker--cluster--hover-color-background))}:host([variant=main]) [part=marker],:host([variant=place]) [part=marker]{--tw-drop-shadow-size:drop-shadow(var(--sd-drop-shadow));--tw-drop-shadow:drop-shadow(var(--sd-drop-shadow));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}:host([variant=main]) #marker-circle{width:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));height:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));left:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));right:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));top:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1))}#marker-circle{background-color:rgba(var(--sd-color-icon-fill-white,rgba(var(--sd-color-white))))}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}`],s([d({type:String,reflect:!0})],Bt.prototype,"variant",2),s([d({type:String,reflect:!0})],Bt.prototype,"state",2),s([d({type:Boolean,reflect:!0})],Bt.prototype,"animated",2),s([d({type:Boolean,reflect:!0,attribute:"not-interactive"})],Bt.prototype,"notInteractive",2),s([d({type:String,reflect:!0})],Bt.prototype,"href",2),s([d({type:String,reflect:!0})],Bt.prototype,"target",2),s([d({reflect:!0})],Bt.prototype,"label",2),Bt=s([k("sd-map-marker")],Bt);var Re=class extends f{constructor(){super(...arguments);this.localize=new _(this);this.handleOutsideClick=t=>{this.contains(t.target)||this.getAllItems().forEach(e=>e.classList.remove("menu-item-focus"))}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menu"),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick)}handleClick(t){let e=["menuitem","menuitemcheckbox"],i=t.composedPath(),a=i.find(u=>{var m;return e.includes(((m=u==null?void 0:u.getAttribute)==null?void 0:m.call(u,"role"))||"")});if(!a||i.find(u=>{var m;return((m=u==null?void 0:u.getAttribute)==null?void 0:m.call(u,"role"))==="menu"})!==this)return;let h=a;h.type==="checkbox"&&(h.checked=!h.checked),this.emit("sd-select",{detail:{item:h}})}handleKeyDown(t){if(t.key==="Escape"){let e=this.getCurrentItem();e==null||e.classList.remove("menu-item-focus")}else if(t.key==="Enter"||t.key===" "){let e=this.getCurrentItem();t.preventDefault(),t.stopPropagation(),e==null||e.classList.remove("menu-item-focus"),e==null||e.click()}else if(["ArrowDown","ArrowUp","Home","End"].includes(t.key)){let e=this.getAllItems(),i=this.getCurrentItem(),a=i?e.indexOf(i):0;if(i==null||i.classList.remove("menu-item-focus"),e.length>0){t.preventDefault(),t.stopPropagation();let n=(l,h)=>{let u=l;for(let m of e)if(u=(u+h+e.length)%e.length,!e[u].disabled)return u;return l};if(t.key==="ArrowDown")a=n(a,1);else if(t.key==="ArrowUp")a=n(a,-1);else if(t.key==="Home")a=e.findIndex(l=>!l.disabled),a===-1&&(a=0);else if(t.key==="End"){a=e.length-1;for(let l=e.length-1;l>=0;l--)if(!e[l].disabled){a=l;break}}this.setCurrentItem(e[a]),e[a].focus(),e[a].classList.add("menu-item-focus")}}}handleMouseDown(t){let e=t.target;this.isMenuItem(e)&&this.setCurrentItem(e)}handleSlotChange(){let t=this.getAllItems();t.length>0&&this.setCurrentItem(t[0])}isMenuItem(t){var e;return t.tagName.toLowerCase()==="sd-menu-item"||["menuitem","menuitemcheckbox","menuitemradio"].includes((e=t.getAttribute("role"))!=null?e:"")}getAllItems(){return[...this.defaultSlot.assignedElements({flatten:!0})].filter(t=>!!this.isMenuItem(t))}getCurrentItem(){return this.getAllItems().find(t=>t.getAttribute("tabindex")==="0")}setCurrentItem(t){this.getAllItems().forEach(i=>{i.setAttribute("tabindex",i===t?"0":"-1")})}render(){return p`<slot @slotchange="${this.handleSlotChange}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}" @mousedown="${this.handleMouseDown}"></slot>`}};Re.styles=[...f.styles,x`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
249
249
|
:host{position:relative;display:block;overflow:auto;overscroll-behavior:auto;border-radius:var(--sd-radius-md);padding-inline:var(--sd-spacing-2);padding-block:var(--sd-spacing-3);--tw-shadow:var(--sd-shadow)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}::slotted(sd-divider){padding-block:var(--sd-spacing-3)}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}`],s([v("slot")],Re.prototype,"defaultSlot",2),Re=s([k("sd-menu")],Re);var _a=()=>new Ao,Ao=class{},Do=new WeakMap,Da=Jt(class extends Sr{render(o){return N}update(o,[r]){var e;let t=r!==this.G;return t&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.G=r,this.ht=(e=o.options)==null?void 0:e.host,this.rt(this.ct=o.element)),N}rt(o){var r;if(this.G!==void 0)if(this.isConnected||(o=void 0),typeof this.G=="function"){let t=(r=this.ht)!=null?r:globalThis,e=Do.get(t);e===void 0&&(e=new WeakMap,Do.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){var o,r,t;return typeof this.G=="function"?(r=Do.get((o=this.ht)!=null?o:globalThis))==null?void 0:r.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var qi=class{constructor(r,t){this.popupRef=_a();this.enableSubmenuTimer=-1;this.isConnected=!1;this.isPopupConnected=!1;this.skidding=0;this.submenuOpenDelay=100;this.handleMouseMove=r=>{this.host.style.setProperty("--safe-triangle-cursor-x",`${r.clientX}px`),this.host.style.setProperty("--safe-triangle-cursor-y",`${r.clientY}px`)};this.handleMouseOver=()=>{this.hasSlotController.test("submenu")&&this.enableSubmenu()};this.handleKeyDown=r=>{switch(r.key){case"Escape":case"Tab":this.disableSubmenu();break;case"ArrowLeft":r.target!==this.host&&(r.preventDefault(),r.stopPropagation(),this.host.focus(),this.disableSubmenu());break;case"ArrowRight":case"Enter":case" ":this.handleSubmenuEntry(r);break;default:break}};this.handleClick=r=>{var t;r.target===this.host?(r.preventDefault(),r.stopPropagation()):r.target instanceof Element&&(r.target.tagName==="sd-menu-item"||(t=r.target.role)!=null&&t.startsWith("menuitem"))&&r.target.getAttribute("type")!=="checkbox"&&this.disableSubmenu()};this.handleFocusOut=r=>{r.relatedTarget&&r.relatedTarget instanceof Element&&this.host.contains(r.relatedTarget)||this.disableSubmenu()};this.handlePopupMouseover=r=>{r.stopPropagation()};this.handlePopupReposition=()=>{let r=this.host.renderRoot.querySelector("slot[name='submenu']"),t=r==null?void 0:r.assignedElements({flatten:!0}).filter(h=>h.localName==="sd-menu")[0],e=getComputedStyle(this.host).direction==="rtl";if(!t)return;let{left:i,top:a,width:n,height:l}=t.getBoundingClientRect();this.host.style.setProperty("--safe-triangle-submenu-start-x",`${e?i+n:i}px`),this.host.style.setProperty("--safe-triangle-submenu-start-y",`${a}px`),this.host.style.setProperty("--safe-triangle-submenu-end-x",`${e?i+n:i}px`),this.host.style.setProperty("--safe-triangle-submenu-end-y",`${a+l}px`)};(this.host=r).addController(this),this.hasSlotController=t}hostConnected(){this.hasSlotController.test("submenu")&&!this.host.disabled&&this.addListeners()}hostDisconnected(){this.removeListeners()}hostUpdated(){this.hasSlotController.test("submenu")&&!this.host.disabled?(this.addListeners(),this.updateSkidding()):this.removeListeners()}addListeners(){this.isConnected||(this.host.addEventListener("mousemove",this.handleMouseMove),this.host.addEventListener("mouseover",this.handleMouseOver),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("click",this.handleClick),this.host.addEventListener("focusout",this.handleFocusOut),this.isConnected=!0),this.isPopupConnected||this.popupRef.value&&(this.popupRef.value.addEventListener("mouseover",this.handlePopupMouseover),this.popupRef.value.addEventListener("sd-reposition",this.handlePopupReposition),this.isPopupConnected=!0)}removeListeners(){this.isConnected&&(this.host.removeEventListener("mousemove",this.handleMouseMove),this.host.removeEventListener("mouseover",this.handleMouseOver),this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("click",this.handleClick),this.host.removeEventListener("focusout",this.handleFocusOut),this.isConnected=!1),this.isPopupConnected&&this.popupRef.value&&(this.popupRef.value.removeEventListener("mouseover",this.handlePopupMouseover),this.popupRef.value.removeEventListener("sd-reposition",this.handlePopupReposition),this.isPopupConnected=!1)}handleSubmenuEntry(r){let t=this.host.renderRoot.querySelector("slot[name='submenu']");if(!t){console.error("Cannot activate a submenu if no corresponding menuitem can be found.",this);return}let e=null;for(let i of t.assignedElements())if(e=i.querySelectorAll("sd-menu-item, [role^='menuitem']"),e.length!==0)break;if(!(!e||e.length===0)){e[0].setAttribute("tabindex","0");for(let i=1;i!==e.length;++i)e[i].setAttribute("tabindex","-1");this.popupRef.value&&(r.preventDefault(),r.stopPropagation(),this.popupRef.value.active?e[0]instanceof HTMLElement&&e[0].focus():(this.enableSubmenu(!1),this.host.updateComplete.then(()=>{e[0]instanceof HTMLElement&&e[0].focus()}),this.host.requestUpdate()))}}setSubmenuState(r){this.popupRef.value&&this.popupRef.value.active!==r&&(this.popupRef.value.active=r,this.host.requestUpdate())}enableSubmenu(r=!0){r?(window.clearTimeout(this.enableSubmenuTimer),this.enableSubmenuTimer=window.setTimeout(()=>{this.setSubmenuState(!0)},this.submenuOpenDelay)):this.setSubmenuState(!0)}disableSubmenu(){window.clearTimeout(this.enableSubmenuTimer),this.setSubmenuState(!1)}updateSkidding(){var i;if(!((i=this.host.parentElement)!=null&&i.computedStyleMap))return;let r=this.host.parentElement.computedStyleMap(),e=["padding-top","border-top-width","margin-top"].reduce((a,n)=>{var m;let l=(m=r.get(n))!=null?m:new CSSUnitValue(0,"px"),u=(l instanceof CSSUnitValue?l:new CSSUnitValue(0,"px")).to("px");return a-u.value},0);this.skidding=e}isExpanded(){return this.popupRef.value?this.popupRef.value.active:!1}renderSubmenu(){let r=getComputedStyle(this.host).direction==="rtl";return this.isConnected?p`<sd-popup ${Da(this.popupRef)} placement="${r?"left-start":"right-start"}" anchor="anchor" flip flip-fallback-strategy="best-fit" skidding="${this.skidding}" strategy="fixed" auto-size="vertical" auto-size-padding="10"><slot name="submenu"></slot></sd-popup>`:p`<slot name="submenu" hidden></slot>`}};var Tt=class extends f{constructor(){super(...arguments);this.type="normal";this.checked=!1;this.disabled=!1;this.value="";this.chevron=!1;this.hasSlotController=new O(this,"submenu");this.submenuController=new qi(this,this.hasSlotController);this.handleHostClick=t=>{this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())};this.handleMouseOver=t=>{this.focus(),t.stopPropagation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleHostClick),this.addEventListener("mouseover",this.handleMouseOver)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleHostClick),this.removeEventListener("mouseover",this.handleMouseOver)}handleDefaultSlotChange(){let t=this.getTextLabel();if(typeof this.cachedTextLabel=="undefined"){this.cachedTextLabel=t;return}t!==this.cachedTextLabel&&(this.cachedTextLabel=t,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleCheckedChange(){if(this.checked&&this.type!=="checkbox"){this.checked=!1,console.error('The checked attribute can only be used on menu items with type="checkbox"',this);return}this.type==="checkbox"?this.setAttribute("aria-checked",this.checked?"true":"false"):this.removeAttribute("aria-checked")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.setAttribute("tabindex",this.disabled?"-1":"0")}handleTypeChange(){this.type==="checkbox"?(this.setAttribute("role","menuitemcheckbox"),this.setAttribute("aria-checked",this.checked?"true":"false")):(this.setAttribute("role","menuitem"),this.removeAttribute("aria-checked"))}getTextLabel(){return Vs(this.defaultSlot)}isSubmenu(){return this.hasSlotController.test("submenu")}render(){let t=this.submenuController.isExpanded(),e={label:this.hasSlotController.test("[default]"),iconIndent:this.hasSlotController.test("icon-indent")};return p`<div id="anchor" part="base" class="${c("relative flex items-stretch whitespace-nowrap py-3 px-4 no-wrap !navigable-border-radius",this.disabled?"outline-none cursor-not-allowed sd-menu--disabled-color-text hover:bg-transparent":"cursor-pointer sd-menu-color-text hover:bg-neutral-200",this.isSubmenu()&&t&&"submenu-expanded")}" .disabled="${this.disabled}" ?aria-haspopup="${this.isSubmenu()}" ?aria-expanded="${!!t}">${this.type==="checkbox"?p`<span part="checked-icon" class="${c("flex items-center justify-center grow-0 shrink-0 basis-auto",this.checked?"visible":"invisible")}"><sd-icon name="status-check" library="sd-status-assets" aria-hidden="true"></sd-icon></span>`:""} ${e.iconIndent?p`<slot name="icon-indent" part="icon-indent" class="flex items-center grow-0 shrink-0 basis-auto mr-2"></slot>`:""}<slot part="label" class="inline-flex grow shrink basis-auto text-ellipsis overflow-hidden" @slotchange="${this.handleDefaultSlotChange}"></slot>${this.chevron||this.isSubmenu()?p`<span part="submenu-icon" class="flex items-center justify-center grow-0 shrink-0 basis-auto ml-3"><sd-icon name="chevron-right" library="_internal" aria-hidden="true" class="h-6 w-6"></sd-icon></span>`:""} ${this.submenuController.renderSubmenu()}</div>`}};Tt.styles=[...f.styles,x`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
250
250
|
:host{--submenu-offset:-6px;display:block}:host(:focus-visible){--tw-outline-style:none;outline-style:none}::slotted(sd-icon){height:var(--sd-spacing-6);width:var(--sd-spacing-6)}[part=checked-icon]{margin-right:var(--sd-spacing-3)}.submenu-expanded::after{position:fixed;top:0;right:0;bottom:0;left:0;z-index:calc(var(z-dropdown) - 1);--tw-content:'';content:var(--tw-content);clip-path:polygon(var(--safe-triangle-cursor-x,0) var(--safe-triangle-cursor-y,0),var(--safe-triangle-submenu-start-x,0) var(--safe-triangle-submenu-start-y,0),var(--safe-triangle-submenu-end-x,0) var(--safe-triangle-submenu-end-y,0))}:host(:hover:not([aria-disabled=true],:focus-visible)) [part=base]{background-color:rgba(var(--sd-color-background-neutral-200));--tw-outline-style:none;outline-style:none}:host(:focus-visible:not([aria-disabled=true])) [part=base]{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:var(--outline-color-primary);outline-offset:-2px}:host(.menu-item-focus) [part=base]{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:var(--outline-color-primary);outline-offset:-2px}:host(:hover) [part=base]{--tw-outline-style:none;outline-style:none}//TODO clean up sd-menu-color-icon variable replacing with sd-menu-item-color-icon-fill (breakingchange) :host [part=icon-indent],:host [part=checked-icon],:host [part=submenu-icon]{color:rgba(var(--sd-menu-color-icon,var(--sd-menu-item-color-icon-fill)))}//TODO clean up sd-menu--disabled-color-icon variable replacing with sd-menu-item--disabled-color-icon-fill (breakingchange) :host([aria-disabled=true]) [part=icon-indent]{color:rgba(var(--sd-menu--disabled-color-icon,var(--sd-menu-item--disabled-color-icon-fill)))}sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);background-color:rgba(var(--sd-color-background-white));margin-left:var(--submenu-offset)}::slotted(sd-menu){max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}.sd-menu-color-text{color:rgba(var(--sd-menu-color-text,var(--sd-menu-item-color-text)))}.sd-menu--disabled-color-text{color:rgba(var(--sd-menu--disabled-color-text,var(--sd-menu-item--disabled-color-text)))}@property --tw-content{syntax:"*";inherits:false;initial-value:""}`],s([v("slot:not([name])")],Tt.prototype,"defaultSlot",2),s([v('part="base"')],Tt.prototype,"menuItem",2),s([d()],Tt.prototype,"type",2),s([d({type:Boolean,reflect:!0})],Tt.prototype,"checked",2),s([d({type:Boolean,reflect:!0})],Tt.prototype,"disabled",2),s([d()],Tt.prototype,"value",2),s([d({type:Boolean,reflect:!0})],Tt.prototype,"chevron",2),s([C("checked")],Tt.prototype,"handleCheckedChange",1),s([C("disabled")],Tt.prototype,"handleDisabledChange",1),s([C("type")],Tt.prototype,"handleTypeChange",1),Tt=s([k("sd-menu-item")],Tt);var dt=class extends f{constructor(){super(...arguments);this.hasSlotController=new O(this,"[default]","description","children");this.localize=new _(this);this.vertical=!1;this.size="md";this.current=!1;this.disabled=!1;this.stacked=!1;this.chevron=!1;this.relaxed=!1;this.divider=!1;this.indented=!1;this.open=!1;this.separated=!1}get isButton(){return!this.href&&!this.hasSlotController.test("children")}get isLink(){return!!this.href}get isAccordion(){return!this.separated&&!this.href&&this.hasSlotController.test("children")}get isIconOnly(){if(!this.defaultSlot)return!1;let t=this.defaultSlot.assignedNodes({flatten:!0});return t.length>0&&t.every(e=>{var i;return e.nodeType===Node.TEXT_NODE?!((i=e.textContent)!=null&&i.trim()):e.nodeType===Node.ELEMENT_NODE?e.tagName.toLowerCase()==="sd-icon":!1})}get isStackedHorizontal(){return!this.vertical&&this.stacked}handleClickButton(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}handleClickSummary(t){t.preventDefault(),t.stopPropagation(),this.disabled||(this.open?this.hideDetails():this.showDetails())}hideDetails(){this.open=!1,this.emit("sd-hide",{cancelable:!0})}showDetails(){this.open=!0,this.emit("sd-show",{cancelable:!0})}get calculatePaddingX(){return this.relaxed&&this.indented?"pl-8 pr-4":this.relaxed?"px-4":this.indented?"pl-4":""}get tag(){return this.separated&&!this.isLink?rt`div`:this.isAccordion&&!this.isLink?rt`summary`:this.isLink?rt`a`:rt`button`}focus(){var t;this.disabled||(t=this.button)==null||t.focus()}blur(){var t;(t=this.button)==null||t.blur()}render(){let t=this.tag,e=this.isLink,i=this.isButton,a=this.isAccordion,n=this.isIconOnly,l={label:this.hasSlotController.test("[default]"),main:this.hasSlotController.test("main"),description:this.hasSlotController.test("description"),children:this.hasSlotController.test("children")},h=this.vertical?"py-3":this.isStackedHorizontal?"pt-1 pb-0":"py-2",u=q`<${t} part="base" class="${c("flex items-center cursor-pointer relative focus-visible:focus-outline group hover:bg-neutral-200 transition-colors duration-fast ease-in-out min-h-[48px] navigable-border-radius",this.isStackedHorizontal?"text-xs leading-4.5":{md:"navigable-font-size",lg:"text-lg",sm:"text-[14px]"}[this.size],this.disabled?"text-neutral-500 pointer-events-none":"sd-navigation-item--default-color-text",this.current&&!this.disabled&&"sd-navigation-item--current-color-text",this.current&&!this.isStackedHorizontal&&"font-bold",!this.current&&!this.isStackedHorizontal&&"choice-control-font-weight",!a&&"w-full",this.divider&&this.vertical&&"mt-0.25",!this.vertical&&(this.isStackedHorizontal?"inline-flex flex-col items-center justify-center text-center rounded-full wrap":"inline-flex items-center"),!this.separated&&"hover:bg-neutral-200 group transition-colors duration-fast ease-in-out min-h-[48px]",n?"justify-center aspect-square p-3":this.isStackedHorizontal?"px-8":"px-4")}" aria-current="${$(this.current?"page":void 0)}" aria-disabled="${this.disabled}" aria-labelledby="content" aria-describedby="description" ?disabled="${$(i?this.disabled:void 0)}" href="${$(e?this.href:void 0)}" target="${$(e?this.target:void 0)}" download="${$(e?this.download:void 0)}" rel="${$(e&&this.target?"noreferrer noopener":void 0)}" tabindex="${this.disabled?"-1":"0"}" @click="${this.separated?void 0:a?this.handleClickSummary:i?this.handleClickButton:void 0}"><div part="current-indicator" class="${c("absolute bg-accent pointer-events-none navigable__current-indicator-border-radius",this.isStackedHorizontal&&"hidden",this.vertical?"navigable__current-indicator-width h-[calc(100%-16px)] top-2 left-0 group-hover:h-full group-hover:top-0":"navigable__current-indicator-height w-[calc(100%-16px)] left-2 bottom-0 group-hover:w-full group-hover:left-0 transition-all",this.disabled&&"bg-neutral-500")}"></div><div class="${c("inline-flex flex-col justify-center gap-1 w-full h-full",this.isStackedHorizontal&&"flex-col items-center")}"><span part="content-area" class="${c("relative inline-flex justify-between items-center",a?"grow":"w-full",this.isStackedHorizontal&&"justify-center",l.description&&"pt-3",!l.description&&!this.separated&&h,this.calculatePaddingX)}">${this.divider&&this.vertical?q`<sd-divider part="divider" class="${c("w-full transition-all absolute -top-0.25 left-0",this.calculatePaddingX)}"></sd-divider>`:""} <span id="content" part="content-container" class="${c("inline-flex items-center",this.vertical?"flex-auto gap-2":this.isStackedHorizontal?"relative text-center pb-1":"flex-auto flex-col justify-center gap-1 text-center")}"><slot part="content" class="${c("inline-flex items-center",this.vertical?"gap-2":this.isStackedHorizontal?"flex-col justify-center gap-1 text-center":"justify-center gap-1 text-center")}"></slot>${this.isStackedHorizontal?q`<span part="current-indicator" aria-hidden="true" class="${c("absolute left-0 right-0 bottom-0 h-[2px] pointer-events-none bg-accent navigable__current-indicator-border-radius",this.disabled&&"bg-neutral-500")}"></span>`:""} </span>${this.chevron||l.children&&this.vertical&&!this.separated?q`<sd-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${c("h-6 w-6 ml-2 transition-all",a?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon>`:""} </span>${l.description&&this.vertical?q`<slot id="description" name="description" part="description" class="${c("inline-block text-sm text-left font-normal text-black pb-3",a||this.separated?"grow":"w-full",this.calculatePaddingX)}"></slot>`:""}</div></${t}>`;return this.separated?q`<div part="details" id="navigation-item-details" class="relative flex flex-col"><div class="flex items-start">${u} ${l.children&&this.vertical?q`<button type="button" title="${this.open?this.localize.term("collapseNavigationItem"):this.localize.term("expandNavigationItem")}" class="sd-interactive sd-interactive--reset -mt-1" @click="${this.handleClickSummary}"><sd-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${c("m-4 h-6 w-6 transition-all",a||this.separated?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon></button>`:""}</div>${this.open?q`<slot name="children"></slot>`:""}</div>`:a?q`<details aria-expanded="${this.open}" part="details" id="navigation-item-details" ?open="${this.open}" class="relative">${u}<slot name="children"></slot></details>`:q`${u}`}};dt.styles=[...f.styles,x`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
251
|
-
:host{position:relative;box-sizing:border-box;display:inline-block}:host([vertical]){display:block}:host([stacked]:not([vertical])) ::slotted(sd-icon){height:var(--sd-spacing-6);width:var(--sd-spacing-6)}.sd-navigation-item--current-color-text{color:rgb(var(--sd-navigation-item--current-color-text,var(--sd-navigation-item-color-text)))}details summary::-webkit-details-marker{display:none}[part=current-indicator]{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-0);--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);transition:width var(--sd-duration-fast) ease-in-out,height var(--sd-duration-fast) ease-in-out,left var(--sd-duration-fast) ease-in-out,top var(--sd-duration-fast) ease-in-out,opacity var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out var(--sd-duration-fast)}:host([current]) [part=current-indicator]{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-100);transition:width var(--sd-duration-fast) ease-in-out,height var(--sd-duration-fast) ease-in-out,left var(--sd-duration-fast) ease-in-out,top var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-duration{syntax:"*";inherits:false}`],s([v('[part="base"]')],dt.prototype,"button",2),s([v("slot:not([name])")],dt.prototype,"defaultSlot",2),s([d({type:Boolean,reflect:!0})],dt.prototype,"vertical",2),s([d({type:String,reflect:!0})],dt.prototype,"size",2),s([d({reflect:!0})],dt.prototype,"href",2),s([d({type:String,reflect:!0})],dt.prototype,"target",2),s([d({reflect:!0})],dt.prototype,"download",2),s([d({type:Boolean,reflect:!0})],dt.prototype,"current",2),s([d({type:Boolean,reflect:!0})],dt.prototype,"disabled",2),s([d({type:Boolean,reflect:!0})],dt.prototype,"stacked",2),s([d({type:Boolean,reflect:!0})],dt.prototype,"chevron",2),s([d({type:Boolean,reflect:!0})],dt.prototype,"relaxed",2),s([d({type:Boolean,reflect:!0})],dt.prototype,"divider",2),s([d({type:Boolean,reflect:!0})],dt.prototype,"indented",2),s([d({type:Boolean,reflect:!0})],dt.prototype,"open",2),s([d({type:Boolean,reflect:!0})],dt.prototype,"separated",2),dt=s([k("sd-navigation-item")],dt);var Ki={"top-right":null,"bottom-center":null},Nd=()=>{Object.entries(Ki).forEach(([o])=>{let r=document.querySelector(`#sd-toast-stack--${o}`);if(r){r.setAttribute("role","region"),Ki[o]=r;return}Ki[o]=Object.assign(document.createElement("div"),{role:"region",id:`sd-toast-stack--${o}`,className:`sd-toast-stack sd-toast-stack--${o}`})})};Nd();var Et=class extends f{constructor(){super(...arguments);this.localize=new _(this);this.variant="info";this.open=!1;this.closable=!1;this.duration=1/0;this.durationIndicator=!1;this.toastStack="top-right";this.remainingDuration=this.duration;this.startTime=Date.now()}get stack(){return Ki[this.toastStack]}connectedCallback(){super.connectedCallback(),this.stack.parentElement||(document.body.append(this.stack),this.stack.ariaLabel=this.localize.term("notifications"))}disconnectedCallback(){super.disconnectedCallback()}firstUpdated(){this.wrapper.hidden=!this.open}startAutoHide(){clearTimeout(this.autoHideTimeout),this.startTime=Date.now(),this.remainingDuration=this.duration,this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>this.hide(),this.duration))}onHover(){clearTimeout(this.autoHideTimeout),this.duration<1/0&&(this.remainingDuration-=Date.now()-this.startTime)}onHoverEnd(){this.startTime=Date.now(),clearTimeout(this.autoHideTimeout),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>{this.hide()},this.remainingDuration))}handleCloseClick(){this.hide()}handleKeyDown(t){this.closable&&t.key==="Escape"&&this.hide()}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.duration<1/0&&this.startAutoHide(),await Promise.all([X(this.base),X(this.wrapper)]),this.wrapper.hidden=!1;let t=j(this,"notification.show",{dir:this.localize.dir()}),e=j(this,`notification.wrapper.show${Cr(xo(this.toastStack))}`,{dir:this.localize.dir()});await Promise.all([W(this.base,xe(t.keyframes,this.base.scrollHeight),t.options),W(this.wrapper,e.keyframes,e.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await Promise.all([X(this.base),X(this.wrapper)]);let t=j(this,"notification.hide",{dir:this.localize.dir()}),e=j(this,`notification.wrapper.hide${Cr(xo(this.toastStack))}`,{dir:this.localize.dir()});await Promise.all([W(this.base,xe(t.keyframes,this.base.scrollHeight),t.options),W(this.wrapper,e.keyframes,e.options)]),this.wrapper.hidden=!0,this.emit("sd-after-hide")}}handleDurationChange(){this.startAutoHide()}async show(){if(!this.open)return this.open=!0,Q(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,Q(this,"sd-after-hide")}async toast(){return new Promise(t=>{this.stack.parentElement===null&&document.body.append(this.stack),this.stack.appendChild(this),requestAnimationFrame(()=>{this.clientWidth,this.show()}),this.addEventListener("sd-after-hide",()=>{this.stack.removeChild(this),t()},{once:!0})})}render(){return p`<div part="base" class="${c("w-full flex items-stretch m-2 focus-visible:focus-outline")}" id="notification" tabindex="${$(this.closable?"0":void 0)}" role="alert" aria-labelledby="message" aria-hidden="${this.open?"false":"true"}" @mouseenter="${this.onHover}" @mouseleave="${this.onHoverEnd}" @keydown="${this.handleKeyDown}"><div part="wrapper" class="${c("w-full h-fit overflow-hidden flex items-stretch relative")}"><slot name="icon" part="icon" class="${c("min-w-min flex items-center px-3 justify-center",{info:"bg-info",success:"bg-success",warning:"bg-warning",error:"bg-error"}[this.variant])}"><sd-icon name="${{info:"info-circle",success:"confirm-circle",warning:"exclamation-circle",error:"
|
|
251
|
+
:host{position:relative;box-sizing:border-box;display:inline-block}:host([vertical]){display:block}:host([stacked]:not([vertical])) ::slotted(sd-icon){height:var(--sd-spacing-6);width:var(--sd-spacing-6)}.sd-navigation-item--current-color-text{color:rgb(var(--sd-navigation-item--current-color-text,var(--sd-navigation-item-color-text)))}details summary::-webkit-details-marker{display:none}[part=current-indicator]{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-0);--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);transition:width var(--sd-duration-fast) ease-in-out,height var(--sd-duration-fast) ease-in-out,left var(--sd-duration-fast) ease-in-out,top var(--sd-duration-fast) ease-in-out,opacity var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out var(--sd-duration-fast)}:host([current]) [part=current-indicator]{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-100);transition:width var(--sd-duration-fast) ease-in-out,height var(--sd-duration-fast) ease-in-out,left var(--sd-duration-fast) ease-in-out,top var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-duration{syntax:"*";inherits:false}`],s([v('[part="base"]')],dt.prototype,"button",2),s([v("slot:not([name])")],dt.prototype,"defaultSlot",2),s([d({type:Boolean,reflect:!0})],dt.prototype,"vertical",2),s([d({type:String,reflect:!0})],dt.prototype,"size",2),s([d({reflect:!0})],dt.prototype,"href",2),s([d({type:String,reflect:!0})],dt.prototype,"target",2),s([d({reflect:!0})],dt.prototype,"download",2),s([d({type:Boolean,reflect:!0})],dt.prototype,"current",2),s([d({type:Boolean,reflect:!0})],dt.prototype,"disabled",2),s([d({type:Boolean,reflect:!0})],dt.prototype,"stacked",2),s([d({type:Boolean,reflect:!0})],dt.prototype,"chevron",2),s([d({type:Boolean,reflect:!0})],dt.prototype,"relaxed",2),s([d({type:Boolean,reflect:!0})],dt.prototype,"divider",2),s([d({type:Boolean,reflect:!0})],dt.prototype,"indented",2),s([d({type:Boolean,reflect:!0})],dt.prototype,"open",2),s([d({type:Boolean,reflect:!0})],dt.prototype,"separated",2),dt=s([k("sd-navigation-item")],dt);var Ki={"top-right":null,"bottom-center":null},Nd=()=>{Object.entries(Ki).forEach(([o])=>{let r=document.querySelector(`#sd-toast-stack--${o}`);if(r){r.setAttribute("role","region"),Ki[o]=r;return}Ki[o]=Object.assign(document.createElement("div"),{role:"region",id:`sd-toast-stack--${o}`,className:`sd-toast-stack sd-toast-stack--${o}`})})};Nd();var Et=class extends f{constructor(){super(...arguments);this.localize=new _(this);this.variant="info";this.open=!1;this.closable=!1;this.duration=1/0;this.durationIndicator=!1;this.toastStack="top-right";this.remainingDuration=this.duration;this.startTime=Date.now()}get stack(){return Ki[this.toastStack]}connectedCallback(){super.connectedCallback(),this.stack.parentElement||(document.body.append(this.stack),this.stack.ariaLabel=this.localize.term("notifications"))}disconnectedCallback(){super.disconnectedCallback()}firstUpdated(){this.wrapper.hidden=!this.open}startAutoHide(){clearTimeout(this.autoHideTimeout),this.startTime=Date.now(),this.remainingDuration=this.duration,this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>this.hide(),this.duration))}onHover(){clearTimeout(this.autoHideTimeout),this.duration<1/0&&(this.remainingDuration-=Date.now()-this.startTime)}onHoverEnd(){this.startTime=Date.now(),clearTimeout(this.autoHideTimeout),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>{this.hide()},this.remainingDuration))}handleCloseClick(){this.hide()}handleKeyDown(t){this.closable&&t.key==="Escape"&&this.hide()}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.duration<1/0&&this.startAutoHide(),await Promise.all([X(this.base),X(this.wrapper)]),this.wrapper.hidden=!1;let t=j(this,"notification.show",{dir:this.localize.dir()}),e=j(this,`notification.wrapper.show${Cr(xo(this.toastStack))}`,{dir:this.localize.dir()});await Promise.all([W(this.base,xe(t.keyframes,this.base.scrollHeight),t.options),W(this.wrapper,e.keyframes,e.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await Promise.all([X(this.base),X(this.wrapper)]);let t=j(this,"notification.hide",{dir:this.localize.dir()}),e=j(this,`notification.wrapper.hide${Cr(xo(this.toastStack))}`,{dir:this.localize.dir()});await Promise.all([W(this.base,xe(t.keyframes,this.base.scrollHeight),t.options),W(this.wrapper,e.keyframes,e.options)]),this.wrapper.hidden=!0,this.emit("sd-after-hide")}}handleDurationChange(){this.startAutoHide()}async show(){if(!this.open)return this.open=!0,Q(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,Q(this,"sd-after-hide")}async toast(){return new Promise(t=>{this.stack.parentElement===null&&document.body.append(this.stack),this.stack.appendChild(this),requestAnimationFrame(()=>{this.clientWidth,this.show()}),this.addEventListener("sd-after-hide",()=>{this.stack.removeChild(this),t()},{once:!0})})}render(){return p`<div part="base" class="${c("w-full flex items-stretch m-2 focus-visible:focus-outline")}" id="notification" tabindex="${$(this.closable?"0":void 0)}" role="alert" aria-labelledby="message" aria-hidden="${this.open?"false":"true"}" @mouseenter="${this.onHover}" @mouseleave="${this.onHoverEnd}" @keydown="${this.handleKeyDown}"><div part="wrapper" class="${c("w-full h-fit overflow-hidden flex items-stretch relative")}"><slot name="icon" part="icon" class="${c("min-w-min flex items-center px-3 justify-center",{info:"bg-info",success:"bg-success",warning:"bg-warning",error:"bg-error"}[this.variant])}"><sd-icon name="${{info:"info-circle",success:"confirm-circle",warning:"exclamation-circle",error:"risk"}[this.variant]||""}" library="_internal" class="h-6 w-6 text-white"></sd-icon></slot><div part="content" class="${c("h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white","border-solid border-[1px] border-l-0 sd-notification-color-border",{info:"sd-notification--info-color-background",success:"sd-notification--success-color-background",warning:"sd-notification--warning-color-background",error:"sd-notification--error-color-background"}[this.variant])}"><slot id="message" part="message" class="block w-full pl-3 py-2"></slot>${this.closable?p`<sd-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-icon></sd-button>`:""}</div>${this.durationIndicator?p`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${c("absolute w-0 h-[2px] bottom-0 sd-notification__duration-indicator-color-background z-10 animate-grow")}"></div><div part="duration-indicator__total" class="w-full h-[2px] bottom-0 absolute border border-neutral-400"></div>`:""}</div></div>`}};Et.styles=[...f.styles,x`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
252
252
|
:host{display:contents}#notification:hover #duration-indicator__elapsed{animation-play-state:paused!important}`],s([v('[part~="base"]')],Et.prototype,"base",2),s([v('[part~="wrapper"]')],Et.prototype,"wrapper",2),s([v('[part~="close-button"]')],Et.prototype,"close",2),s([d({type:String,reflect:!0})],Et.prototype,"variant",2),s([d({type:Boolean,reflect:!0})],Et.prototype,"open",2),s([d({type:Boolean,reflect:!0})],Et.prototype,"closable",2),s([d({type:Number,reflect:!0})],Et.prototype,"duration",2),s([d({type:Boolean,reflect:!0,attribute:"duration-indicator"})],Et.prototype,"durationIndicator",2),s([d({type:String,reflect:!0,attribute:"toast-stack"})],Et.prototype,"toastStack",2),s([C("open",{waitUntilFirstUpdate:!0})],Et.prototype,"handleOpenChange",1),s([C("duration")],Et.prototype,"handleDurationChange",1),Et=s([k("sd-notification")],Et);F("notification.show",{keyframes:[{opacity:0,height:0},{opacity:1,height:"auto"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});F("notification.hide",{keyframes:[{opacity:1,height:"auto"},{opacity:0,height:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});F("notification.wrapper.showTopRight",{keyframes:[{bottom:"32px"},{bottom:"0"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});F("notification.wrapper.hideTopRight",{keyframes:[{bottom:"0"},{bottom:"32px"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});var ae=class extends f{constructor(){super(...arguments);this.localize=new _(this);this.disabled=!1;this.label=""}handleDisableOptions(){let{disabled:t}=this;this.defaultSlot.assignedElements().filter(e=>e.tagName.toLowerCase()==="sd-option").forEach(e=>{e.disabled=t})}handleDisabledChange(){this.handleDisableOptions()}render(){let{disabled:t}=this;return q`<div role="${t?"presentation":"group"}" class="${c(this.disabled?"text-neutral-500":"")}" part="base" aria-labelledby="group-label"><sd-divider id="divider" class="pt-2 pb-4" part="divider"></sd-divider><div part="label-container" class="${c(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="listbox" part="options" aria-label="${this.localize.term("optionGroup")}"><slot @slotchange="${this.handleDisableOptions}"></slot></div></div>`}};ae.styles=[...f.styles,x`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
253
253
|
:host{--display-divider:block}#divider{display:var(--display-divider)}`],s([v("slot:not([name])")],ae.prototype,"defaultSlot",2),s([d({reflect:!0,type:Boolean})],ae.prototype,"disabled",2),s([d({type:String,reflect:!0})],ae.prototype,"label",2),s([C("disabled",{waitUntilFirstUpdate:!0})],ae.prototype,"handleDisabledChange",1),ae=s([k("sd-optgroup")],ae);var xt=class extends f{constructor(){super(...arguments);this.hasSlotController=new O(this,"default","left","right");this.current=!1;this.selected=!1;this.hasHover=!1;this.isKeyboardFocus=!1;this.size="lg";this.checkbox=!1;this.disabled=!1;this.value=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","option"),this.setAttribute("aria-selected","false")}handleDefaultSlotChange(){let t=this.getTextLabel();if(typeof this.cachedTextLabel=="undefined"){this.cachedTextLabel=t;return}t!==this.cachedTextLabel&&(this.cachedTextLabel=t,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}handleValueChange(){this.value.includes(" ")&&(console.error("Option values cannot include a space. All spaces have been replaced with underscores.",this),this.value=this.value.replace(/ /g,"_"))}getTextLabel(){var t;return((t=this.textContent)!=null?t:"").trim()}render(){let t={default:this.hasSlotController.test("default"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right")};return p`<div part="base" style="word-break:break-word" class="${c("px-4 flex items-start w-full transition-colors duration-fast ease-in-out text-left text-base relative",{sm:"text-base py-1",md:"text-base py-2",lg:"text-base py-3"}[this.size],this.disabled?"text-neutral-500 cursor-not-allowed":"text-black cursor-pointer",this.hasHover&&!this.disabled?"bg-neutral-200":"",this.isKeyboardFocus?"focus-outline focus-outline-offset":"",this.current&&"bg-neutral-200")}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><span class="${c("absolute w-full left-0 top-0 pointer-events-none transition-[height,top] duration-fast ease-in-out border-l-4 h-[calc(100%-8px)]",this.selected&&!this.checkbox?"border-accent":"border-transparent",this.disabled&&"border-neutral-500 top-1",!this.disabled&&this.hasHover?"h-full top-0":"top-1")}"></span> ${this.checkbox?p`<span id="control" part="control ${this.selected?" control--checked":"control--unchecked"}" class="${c("relative flex flex-shrink-0 items-center justify-center border sd-checkbox-border-width rounded-sm h-4 w-4 mr-2",{sm:"mt-0.5",md:"mt-1",lg:"mt-1"}[this.size],this.disabled?"sd-option--disabled-color-border":this.selected?"bg-accent border-accent":"bg-white form-control-color-border")}">${this.selected?p`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="_internal" name="status-check"></sd-icon>`:""}</span>`:""} ${t.left?p`<slot name="left" part="left" class="inline-flex mr-2"></slot>`:""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${t.right?p`<slot name="right" part="right" class="inline-flex ml-2"></slot>`:""}</div>`}};xt.styles=[...f.styles,x`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
254
254
|
:host{position:relative;display:block;width:100%;--tw-outline-style:none!important;outline-style:none!important}.focus-outline-offset{outline-offset:-2px}.sd-option--disabled-color-border{border-color:rgb(var(--sd-option--disabled-color-border))}`],s([v('[part="base"]')],xt.prototype,"defaultSlot",2),s([L()],xt.prototype,"current",2),s([L()],xt.prototype,"selected",2),s([L()],xt.prototype,"hasHover",2),s([L()],xt.prototype,"isKeyboardFocus",2),s([d({type:String,reflect:!0})],xt.prototype,"size",2),s([d({type:Boolean,reflect:!0})],xt.prototype,"checkbox",2),s([d({type:Boolean,reflect:!0})],xt.prototype,"disabled",2),s([d({type:String,reflect:!0})],xt.prototype,"value",2),s([C("disabled")],xt.prototype,"handleDisabledChange",1),s([C("selected")],xt.prototype,"handleSelectedChange",1),s([C("value")],xt.prototype,"handleValueChange",1),xt=s([k("sd-option")],xt);var Nt=class extends f{constructor(){super();this.hasSlotController=new O(this,"label");this.value=null;this.max=100;this.label="";this.valuePosition=null;this.inverted=!1;this.showLabel=!1;this.localize=new _(this);this.valueFormatter=this.localize.number.bind(this.localize)}get safeMax(){return this.max>0?this.max:100}get clampedValue(){var t;return Math.min(Math.max((t=this.value)!=null?t:0,0),this.safeMax)}get percentage(){return this.clampedValue/this.safeMax*100}get isLoading(){return this.value===void 0||this.value===null||isNaN(this.value)}get showValue(){return!this.isLoading&&(this.valuePosition==="right"||this.valuePosition==="bottom")}render(){let t={label:this.hasSlotController.test("label")},e=this.label?!0:!!t.label;return p`<div part="base" class="text-start" aria-hidden="${!e}">${e?p`<label part="label" id="label" class="${c("text-base",!this.showLabel&&"sr-only",this.inverted?"text-white":"text-black")}" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label>`:N}<div class="${c(this.valuePosition==="right"?"flex flex-row items-center gap-2 -mt-1":this.valuePosition==="bottom"?"flex flex-col gap-1 mt-1":"mt-1")}"><div part="bar" id="bar" class="${c("w-full h-[var(--height,0.125rem)]",this.isLoading?"relative ":"flex")}" role="progressbar" aria-valuemin="0" aria-valuemax="${this.safeMax}" aria-valuenow="${$(this.isLoading?void 0:this.valueFormatter(this.clampedValue))}" aria-valuetext="${$(this.isLoading?this.localize.term("loading"):this.valueFormatter(this.clampedValue))}" aria-label="${$(e?void 0:this.label||this.localize.term("progress"))}" aria-labelledby="${$(e?"label":this.label)}" style="${`--percentage: ${this.percentage}%;`}">${this.isLoading?p`<div part="track" class="${c("absolute top-0 left-0 h-full progress-bar__track--loading-left",this.inverted?"sd-progress-bar__slide-bar--inverted-color-background":"sd-progress-bar__slide-bar-color-background")}"></div><div part="track" class="${c("absolute top-0 right-0 h-full progress-bar__track--loading-right",this.inverted?"sd-progress-bar__slide-bar--inverted-color-background":"sd-progress-bar__slide-bar-color-background")}"></div><div part="indicator" class="${c("absolute top-0 h-full progress-bar__indicator--loading",this.inverted?"sd-progress-bar--active--inverted-color-background":"bg-accent")}"></div>`:p`<div part="indicator" class="${c("w-[var(--percentage)]",this.inverted?"sd-progress-bar--active--inverted-color-background":"bg-accent")}"></div>${this.value&&this.value>0&&this.value<this.safeMax?p`<div class="w-0.5 shrink-0"></div>`:N}<div part="track" class="${c("flex-1",this.inverted?"sd-progress-bar__slide-bar--inverted-color-background":"sd-progress-bar__slide-bar-color-background")}"></div>`}</div>${this.showValue?p`<span class="${c("text-neutral-700 text-xs w-shrink-0",this.inverted?"text-white":"text-neutral-700",this.valuePosition==="bottom"?"text-start":"text-center",this.valuePosition==="right"&&"whitespace-nowrap")}" part="value-${this.valuePosition}">${this.valueFormatter(this.clampedValue)}</span>`:N}</div></div>`}};Nt.styles=[...f.styles,x`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|