@solid-design-system/components 7.0.0-next.2 → 7.0.0-next.3
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.2MPVWXFB.js +2 -0
- package/cdn/chunks/{chunk.P6Y5AQHG.js → chunk.D7PE6JKX.js} +2 -2
- package/cdn/components/input/input.d.ts +1 -1
- package/cdn/components/input/input.js +1 -1
- package/cdn/components/textarea/textarea.d.ts +1 -1
- package/cdn/components/textarea/textarea.js +1 -1
- package/cdn/custom-elements.json +31 -29
- package/cdn/solid-components.bundle.js +4 -4
- package/cdn/solid-components.iife.js +4 -4
- package/cdn/solid-components.js +1 -1
- package/cdn/vscode.html-custom-data.json +3 -14
- package/cdn/web-types.json +37 -29
- package/cdn-versioned/chunks/chunk.2MPVWXFB.js +2 -0
- package/cdn-versioned/chunks/chunk.2XJ2J3VL.js +1 -1
- package/cdn-versioned/chunks/chunk.36YZDWQH.js +2 -2
- package/cdn-versioned/chunks/chunk.3H5XUPF5.js +5 -5
- package/cdn-versioned/chunks/chunk.47KQZYJR.js +2 -2
- package/cdn-versioned/chunks/chunk.4MY3PWSN.js +1 -1
- package/cdn-versioned/chunks/chunk.4QZMOBX3.js +2 -2
- package/cdn-versioned/chunks/chunk.5F5NZQB2.js +2 -2
- package/cdn-versioned/chunks/chunk.5ITG6KGD.js +2 -2
- package/cdn-versioned/chunks/chunk.64SUNU54.js +2 -2
- package/cdn-versioned/chunks/chunk.6GDQK5O5.js +2 -2
- package/cdn-versioned/chunks/chunk.6WQRLB7U.js +2 -2
- package/cdn-versioned/chunks/chunk.7LHRDGWP.js +2 -2
- package/cdn-versioned/chunks/chunk.7XY6DMAY.js +2 -2
- package/cdn-versioned/chunks/chunk.C45254AN.js +2 -2
- package/cdn-versioned/chunks/chunk.CWSVXPYD.js +1 -1
- package/cdn-versioned/chunks/{chunk.P6Y5AQHG.js → chunk.D7PE6JKX.js} +2 -2
- package/cdn-versioned/chunks/chunk.DIDMWRN3.js +2 -2
- package/cdn-versioned/chunks/chunk.DSKB3SEU.js +1 -1
- package/cdn-versioned/chunks/chunk.GHSIC6MA.js +2 -2
- package/cdn-versioned/chunks/chunk.HBXGLINC.js +2 -2
- package/cdn-versioned/chunks/chunk.IWKYZ6J2.js +2 -2
- package/cdn-versioned/chunks/chunk.IZCKJLZR.js +2 -2
- package/cdn-versioned/chunks/chunk.J5C22TF2.js +3 -3
- package/cdn-versioned/chunks/chunk.JI2XVLZH.js +2 -2
- package/cdn-versioned/chunks/chunk.JURMXI5Y.js +5 -5
- package/cdn-versioned/chunks/chunk.K6TOCFIN.js +2 -2
- package/cdn-versioned/chunks/chunk.KOMME47J.js +2 -2
- package/cdn-versioned/chunks/chunk.KR27MICN.js +2 -2
- package/cdn-versioned/chunks/chunk.KZ5SFF6G.js +2 -2
- package/cdn-versioned/chunks/chunk.LICVZSAH.js +3 -3
- package/cdn-versioned/chunks/chunk.LVATN3YW.js +2 -2
- package/cdn-versioned/chunks/chunk.LZRL7OLU.js +1 -1
- package/cdn-versioned/chunks/chunk.MHW6ZP4T.js +2 -2
- package/cdn-versioned/chunks/chunk.NATZPKHW.js +2 -2
- package/cdn-versioned/chunks/chunk.NFDBY4LL.js +2 -2
- package/cdn-versioned/chunks/chunk.NICDKFPS.js +2 -2
- package/cdn-versioned/chunks/chunk.NJ5CEN2R.js +2 -2
- package/cdn-versioned/chunks/chunk.PJ4AHTMH.js +2 -2
- package/cdn-versioned/chunks/chunk.PNRCMW5N.js +1 -1
- package/cdn-versioned/chunks/chunk.QTPFQGR7.js +2 -2
- package/cdn-versioned/chunks/chunk.QW2U4ORE.js +2 -2
- package/cdn-versioned/chunks/chunk.RLTO5J3E.js +2 -2
- package/cdn-versioned/chunks/chunk.ROU5X4FC.js +9 -9
- package/cdn-versioned/chunks/chunk.SKS4G5SG.js +2 -2
- package/cdn-versioned/chunks/chunk.SWPN5WUJ.js +2 -2
- package/cdn-versioned/chunks/chunk.U5LYN6TY.js +2 -2
- package/cdn-versioned/chunks/chunk.UBUSZ4VB.js +2 -2
- package/cdn-versioned/chunks/chunk.UN7DL2MN.js +1 -1
- package/cdn-versioned/chunks/chunk.UTBC4DI6.js +1 -1
- package/cdn-versioned/chunks/chunk.UY5TXYXC.js +2 -2
- package/cdn-versioned/chunks/chunk.V3PA35KW.js +2 -2
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WZSNE2FO.js +2 -2
- package/cdn-versioned/chunks/chunk.X2QW55HD.js +1 -1
- package/cdn-versioned/chunks/chunk.XIIQ37KS.js +2 -2
- package/cdn-versioned/chunks/chunk.XNB5UHRT.js +1 -1
- package/cdn-versioned/chunks/chunk.XPALAZ3K.js +3 -3
- package/cdn-versioned/chunks/chunk.XY6LAPFB.js +1 -1
- package/cdn-versioned/chunks/chunk.YAUFTHOR.js +1 -1
- package/cdn-versioned/chunks/chunk.YG4OTB7M.js +2 -2
- package/cdn-versioned/chunks/chunk.YL7463TI.js +2 -2
- package/cdn-versioned/chunks/chunk.ZAB7A5W7.js +2 -2
- package/cdn-versioned/chunks/chunk.ZXMU6GLZ.js +2 -2
- package/cdn-versioned/chunks/chunk.ZXQQJBCT.js +2 -2
- package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/cdn-versioned/components/animation/animation.d.ts +1 -1
- package/cdn-versioned/components/audio/audio.d.ts +1 -1
- package/cdn-versioned/components/badge/badge.d.ts +1 -1
- package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/cdn-versioned/components/button/button.d.ts +1 -1
- package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
- package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
- package/cdn-versioned/components/carousel-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 +2 -2
- package/cdn-versioned/components/input/input.js +1 -1
- package/cdn-versioned/components/link/link.d.ts +1 -1
- package/cdn-versioned/components/loader/loader.d.ts +1 -1
- package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/cdn-versioned/components/menu/menu.d.ts +1 -1
- package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/cdn-versioned/components/notification/notification.d.ts +1 -1
- package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/cdn-versioned/components/option/option.d.ts +1 -1
- package/cdn-versioned/components/popup/popup.d.ts +1 -1
- package/cdn-versioned/components/progress-bar/progress-bar.d.ts +1 -1
- package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/cdn-versioned/components/radio/radio.d.ts +1 -1
- package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/cdn-versioned/components/range/range.d.ts +1 -1
- package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +1 -1
- package/cdn-versioned/components/skeleton/skeleton.d.ts +1 -1
- package/cdn-versioned/components/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 +2 -2
- package/cdn-versioned/components/textarea/textarea.js +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 +290 -288
- 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 +117 -128
- package/cdn-versioned/web-types.json +206 -198
- package/dist/chunks/{chunk.QIIQFT2B.js → chunk.332BBYHT.js} +10 -2
- package/dist/chunks/{chunk.4MPXU2RU.js → chunk.MZXDJ23T.js} +12 -2
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/input/input.js +1 -1
- package/dist/components/textarea/textarea.d.ts +1 -1
- package/dist/components/textarea/textarea.js +1 -1
- package/dist/custom-elements.json +31 -29
- package/dist/solid-components.js +2 -2
- package/dist/vscode.html-custom-data.json +3 -14
- package/dist/web-types.json +37 -29
- package/dist-versioned/chunks/{chunk.QIIQFT2B.js → chunk.332BBYHT.js} +12 -4
- package/dist-versioned/chunks/chunk.4ICMHKGL.js +7 -7
- package/dist-versioned/chunks/chunk.4KQSESLL.js +10 -10
- package/dist-versioned/chunks/chunk.4UWPPYNK.js +2 -2
- package/dist-versioned/chunks/chunk.64V7RPJM.js +4 -4
- package/dist-versioned/chunks/chunk.BGHQYSC6.js +2 -2
- package/dist-versioned/chunks/chunk.C3WIBDGG.js +2 -2
- package/dist-versioned/chunks/chunk.CBXPY7RV.js +5 -5
- package/dist-versioned/chunks/chunk.CEEZZN7A.js +2 -2
- package/dist-versioned/chunks/chunk.CFE22DL2.js +8 -8
- package/dist-versioned/chunks/chunk.DJIFAD75.js +13 -13
- package/dist-versioned/chunks/chunk.DZ6FRKXI.js +12 -12
- package/dist-versioned/chunks/chunk.EAM3NSOC.js +4 -4
- package/dist-versioned/chunks/chunk.EBLUHAPV.js +5 -5
- package/dist-versioned/chunks/chunk.EI5PCGH6.js +5 -5
- package/dist-versioned/chunks/chunk.ENPE3AO3.js +14 -14
- package/dist-versioned/chunks/chunk.FAQBBAJ3.js +25 -25
- package/dist-versioned/chunks/chunk.FRTXHCPD.js +6 -6
- package/dist-versioned/chunks/chunk.GWLYBCED.js +7 -7
- package/dist-versioned/chunks/chunk.H4N3X443.js +6 -6
- package/dist-versioned/chunks/chunk.H6K6J6HB.js +10 -10
- package/dist-versioned/chunks/chunk.HQZ5Y72U.js +5 -5
- package/dist-versioned/chunks/chunk.HVKZA5Q2.js +1 -1
- package/dist-versioned/chunks/chunk.HX75WC4T.js +10 -10
- package/dist-versioned/chunks/chunk.HXXLOMBL.js +2 -2
- package/dist-versioned/chunks/chunk.I5TVWNGY.js +3 -3
- package/dist-versioned/chunks/chunk.ICBYOTXZ.js +4 -4
- package/dist-versioned/chunks/chunk.IJQGWINY.js +2 -2
- package/dist-versioned/chunks/chunk.IU2IAYUW.js +5 -5
- package/dist-versioned/chunks/chunk.JO4VO3DE.js +23 -23
- package/dist-versioned/chunks/chunk.K5UVAUSH.js +1 -1
- package/dist-versioned/chunks/chunk.KDPFXMT7.js +2 -2
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/chunk.L3TT74JB.js +3 -3
- package/dist-versioned/chunks/chunk.LM6MZUBT.js +7 -7
- package/dist-versioned/chunks/chunk.LNZEJCES.js +3 -3
- package/dist-versioned/chunks/chunk.MLBOR3OA.js +2 -2
- package/dist-versioned/chunks/{chunk.4MPXU2RU.js → chunk.MZXDJ23T.js} +17 -7
- package/dist-versioned/chunks/chunk.NAAQDM44.js +1 -1
- package/dist-versioned/chunks/chunk.NDQTMQGH.js +5 -5
- package/dist-versioned/chunks/chunk.NEWIPIU5.js +3 -3
- package/dist-versioned/chunks/chunk.NHPAPNCA.js +11 -11
- package/dist-versioned/chunks/chunk.O6I23JYG.js +1 -1
- package/dist-versioned/chunks/chunk.PJELKFNY.js +1 -1
- package/dist-versioned/chunks/chunk.POPOYCUO.js +10 -10
- package/dist-versioned/chunks/chunk.QGERTGJH.js +4 -4
- package/dist-versioned/chunks/chunk.QUNBU6CO.js +5 -5
- package/dist-versioned/chunks/chunk.RH3RR3MN.js +6 -6
- package/dist-versioned/chunks/chunk.ROTKRIJL.js +4 -4
- package/dist-versioned/chunks/chunk.TACTLKX6.js +6 -6
- package/dist-versioned/chunks/chunk.TF2CAVQI.js +33 -33
- package/dist-versioned/chunks/chunk.TXBRN4WB.js +5 -5
- package/dist-versioned/chunks/chunk.U4QAR37W.js +1 -1
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.WCTYTU3K.js +3 -3
- package/dist-versioned/chunks/chunk.WD6OT624.js +6 -6
- package/dist-versioned/chunks/chunk.WJFZKOMO.js +2 -2
- package/dist-versioned/chunks/chunk.X6ZZWTS7.js +2 -2
- package/dist-versioned/chunks/chunk.XUYPFGE4.js +11 -11
- package/dist-versioned/chunks/chunk.XZHZDSPQ.js +1 -1
- package/dist-versioned/chunks/chunk.Y32GRFGF.js +2 -2
- package/dist-versioned/chunks/chunk.YC54RFTI.js +11 -11
- package/dist-versioned/chunks/chunk.YEAB2PEA.js +1 -1
- package/dist-versioned/chunks/chunk.ZI4J2JI6.js +2 -2
- package/dist-versioned/chunks/chunk.ZINALM6Z.js +12 -12
- 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 +2 -2
- package/dist-versioned/components/input/input.js +1 -1
- package/dist-versioned/components/link/link.d.ts +1 -1
- package/dist-versioned/components/loader/loader.d.ts +1 -1
- package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/dist-versioned/components/menu/menu.d.ts +1 -1
- package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
- package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist-versioned/components/notification/notification.d.ts +1 -1
- package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/dist-versioned/components/option/option.d.ts +1 -1
- package/dist-versioned/components/popup/popup.d.ts +1 -1
- package/dist-versioned/components/progress-bar/progress-bar.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/dist-versioned/components/radio/radio.d.ts +1 -1
- package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/dist-versioned/components/range/range.d.ts +1 -1
- package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +1 -1
- package/dist-versioned/components/skeleton/skeleton.d.ts +1 -1
- package/dist-versioned/components/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 +2 -2
- package/dist-versioned/components/textarea/textarea.js +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 +290 -288
- package/dist-versioned/internal/form.js +2 -2
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +2 -2
- package/dist-versioned/vscode.html-custom-data.json +117 -128
- package/dist-versioned/web-types.json +206 -198
- package/package.json +2 -2
- package/cdn/chunks/chunk.HEGJI2MO.js +0 -2
- package/cdn-versioned/chunks/chunk.HEGJI2MO.js +0 -2
|
@@ -222,8 +222,8 @@ sd-button::part(base){display:flex;height:var(--sd-spacing-12);width:var(--sd-sp
|
|
|
222
222
|
var(--sd-color-primary-800)
|
|
223
223
|
)}`],o([v('[part="front"]')],Rt.prototype,"front",2),o([v('[part="back"]')],Rt.prototype,"back",2),o([d({reflect:!0,attribute:"flip-direction"})],Rt.prototype,"flipDirection",2),o([d({reflect:!0})],Rt.prototype,"placement",2),o([d({type:String,reflect:!0,attribute:"front-variant"})],Rt.prototype,"frontVariant",2),o([d({type:String,reflect:!0,attribute:"back-variant"})],Rt.prototype,"backVariant",2),o([L()],Rt.prototype,"activeSide",2),Rt=o([k("sd-flipcard")],Rt);var me=class extends f{constructor(){super(...arguments);this.fixed=!1}connectedCallback(){super.connectedCallback(),this.updateCalculatedHeight=this.updateCalculatedHeight.bind(this),this.addResizeObserver=this.addResizeObserver.bind(this),window.addEventListener("resize",this.updateCalculatedHeight)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.updateCalculatedHeight)}firstUpdated(){this.updateCalculatedHeight(),this.addResizeObserver()}updated(t){super.updated(t),t.has("fixed")&&this.updateCalculatedHeight()}addResizeObserver(){this.resizeObserver=new ResizeObserver(this.updateCalculatedHeight),this.header&&this.resizeObserver.observe(this.header)}updateCalculatedHeight(){let t=parseFloat(getComputedStyle(document.documentElement).fontSize),e=window.innerHeight/t;this.header&&this.fixed&&e>=32?document.documentElement.style.setProperty("--sd-header-calculated-height",`${this.header.clientHeight}px`):document.documentElement.style.removeProperty("--sd-header-calculated-height")}render(){return p`<header class="w-full sd-header-color-background sd-header-padding-bottom relative" role="banner"><div part="main" class="relative mx-auto my-0 box-border"><slot></slot></div></header>`}};me.styles=[...f.styles,x`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
224
224
|
:host{position:relative;z-index:var(--sd-z-index-header,600);display:block}@media (min-height:32rem){:host([fixed]){padding-bottom:var(--sd-header-calculated-height)!important}:host([fixed]) header{position:fixed;top:0;left:0;width:100%}:host([fixed]) header::after{position:absolute;top:100%;right:0;left:0;height:var(--sd-header__shadow-height,var(--sd-spacing-1));--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops));--tw-gradient-from:color-mix(in oklab, var(--color-black, #000) 40%, transparent);--tw-gradient-to:color-mix(in oklab, var(--color-black, #000) var(--sd-opacity-0), transparent);--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));--tw-content:'';content:var(--tw-content)}}[part=main]{width:var(--sd-header-inner-width);max-width:var(--sd-header-inner-max-width);padding:var(--sd-header-padding,12px 16px)}header::before{position:absolute;bottom:0;left:0;display:block;width:100%;--tw-content:'';content:var(--tw-content);background-color:rgb(var(--sd-header__underline-color-background));height:var(--sd-header__underline-height,var(--sd-spacing-2))}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-content{syntax:"*";inherits:false;initial-value:""}`],o([d({reflect:!0,type:Boolean})],me.prototype,"fixed",2),o([v("header")],me.prototype,"header",2),o([Er(100)],me.prototype,"updateCalculatedHeight",1),me=o([k("sd-header")],me);var oe=class extends f{constructor(){super(...arguments);this.mode="cors";this.allowScripts=!1}executeScript(t){let e=document.createElement("script");[...t.attributes].forEach(i=>e.setAttribute(i.name,i.value)),e.textContent=t.textContent,t.parentNode.replaceChild(e,t)}async handleSrcChange(){try{let t=this.src,e=await wi(t,this.mode);if(t!==this.src)return;if(!e.ok){this.emit("sd-error",{detail:{status:e.status}});return}this.innerHTML=e.html,this.allowScripts&&[...this.querySelectorAll("script")].forEach(i=>this.executeScript(i)),this.emit("sd-load")}catch(t){this.emit("sd-error",{detail:{status:-1}})}}render(){return p`<slot></slot>`}};oe.styles=[...f.styles,x`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
225
|
-
:host{display:block}`],o([d({reflect:!0})],oe.prototype,"src",2),o([d({type:String,reflect:!0})],oe.prototype,"mode",2),o([d({attribute:"allow-scripts",type:Boolean,reflect:!0})],oe.prototype,"allowScripts",2),o([C("src")],oe.prototype,"handleSrcChange",1),oe=o([k("sd-include")],oe);var Jr=(s,r)=>{var e;let t=s._$AN;if(t===void 0)return!1;for(let i of t)(e=i._$AO)==null||e.call(i,r,!1),Jr(i,r);return!0},Fi=s=>{let r,t;do{if((r=s._$AM)===void 0)break;t=r._$AN,t.delete(s),s=r}while((t==null?void 0:t.size)===0)},xa=s=>{for(let r;r=s._$AM;s=r){let t=r._$AN;if(t===void 0)r._$AN=t=new Set;else if(t.has(s))break;t.add(s),Dd(r)}};function Md(s){this._$AN!==void 0?(Fi(this),this._$AM=s,xa(this)):this._$AM=s}function _d(s,r=!1,t=0){let e=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(r)if(Array.isArray(e))for(let a=t;a<e.length;a++)Jr(e[a],!1),Fi(e[a]);else e!=null&&(Jr(e,!1),Fi(e));else Jr(this,s)}var Dd=s=>{var r,t;s.type==Kt.CHILD&&((r=s._$AP)!=null||(s._$AP=_d),(t=s._$AQ)!=null||(s._$AQ=Md))},Tr=class extends Oe{constructor(){super(...arguments),this._$AN=void 0}_$AT(r,t,e){super._$AT(r,t,e),xa(this),this.isConnected=r._$AU}_$AO(r,t=!0){var e,i;r!==this.isConnected&&(this.isConnected=r,r?(e=this.reconnected)==null||e.call(this):(i=this.disconnected)==null||i.call(this)),t&&(Jr(this,r),Fi(this))}setValue(r){if(Hi(this._$Ct))this._$Ct._$AI(r,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=r,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};var Ts=class extends Tr{constructor(t){super(t);this.handlePointerDown=t=>{t.button!==0||this.host.disabled||this.spinOnLongPressCallback(t)};this.handlePointerUp=t=>{t==null||t.preventDefault(),t==null||t.stopPropagation(),this.timeout&&this.callbacks.start(),this.stopSpinningAndCleanUp(),this.callbacks.end(),document.removeEventListener("pointerup",this.handlePointerUp)};if(t.type!==Kt.ELEMENT||!(t.element instanceof HTMLButtonElement))throw new Error("The `longPress` directive must be used on an HTMLButtonElement.")}render(t){return N}update(t,[e]){return this.callbacks===void 0&&this.host===void 0&&(this.host=t.element,this.callbacks=K({},e),this.host.addEventListener("pointerdown",this.handlePointerDown)),St}disconnected(){this.stopSpinningAndCleanUp(),this.host.removeEventListener("pointerdown",this.handlePointerDown),document.removeEventListener("pointerup",this.handlePointerUp)}spinOnLongPressCallback(t){var e;t.preventDefault(),t.stopPropagation(),this.timeout=setTimeout(()=>{this.timeout=void 0,this.interval=setInterval(()=>{this.callbacks.start()},50)},500),document.addEventListener("pointerup",this.handlePointerUp),(e=this.observer)==null||e.disconnect(),this.observer=new MutationObserver(i=>{i.forEach(a=>{a.attributeName==="disabled"&&this.stopSpinningAndCleanUp()})}),this.observer.observe(this.host,{attributes:!0})}stopSpinningAndCleanUp(){var t;clearInterval(this.interval),clearTimeout(this.timeout),(t=this.observer)==null||t.disconnect()}},Ls=Jt(Ts);var ka,Ad=(ka=navigator.userAgentData)==null?void 0:ka.brands.some(s=>s.brand.includes("Chromium")),Od=Ad?!1:navigator.userAgent.includes("Firefox"),P=class extends f{constructor(){super(...arguments);this.formControlController=new ut(this);this.hasSlotController=new O(this,"help-text","label","left","right","message","placeholder");this.localize=new _(this);this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.isClickableIconFocused=!1;this.type="text";this.size="lg";this.value="";this.defaultValue="";this.placeholder="";this.label="";this.helpText="";this.clearable=!1;this.disabled=!1;this.visuallyDisabled=!1;this.readonly=!1;this.passwordToggle=!1;this.passwordVisible=!1;this.spinButtons=!1;this.form="";this.name="";this.title="";this.required=!1;this.floatingLabel=!1;this.styleOnValid=!1;this.spellcheck=!0}get valueAsDate(){var t,e;return(e=(t=this.input)==null?void 0:t.valueAsDate)!=null?e:null}set valueAsDate(t){let e=document.createElement("input");e.type="date",e.valueAsDate=t,this.value=e.value}get valueAsNumber(){var t,e;return(e=(t=this.input)==null?void 0:t.valueAsNumber)!=null?e:parseFloat(this.value)}set valueAsNumber(t){let e=document.createElement("input");e.type="number",e.valueAsNumber=t,this.value=e.value}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.input.value,this.emit("sd-change")}handleClearClick(t){this.value="",this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change"),this.input.focus(),t.stopPropagation()}handleSearchClick(t){this.emit("sd-search"),t.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){if(this.visuallyDisabled){this.input.value=this.value;return}this.value=this.input.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleKeyDown(t){let e=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;t.key==="Enter"&&!e&&setTimeout(()=>{!t.defaultPrevented&&!t.isComposing&&this.formControlController.submit()})}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleClickableIconFocusIn(){this.isClickableIconFocused=!0}handleClickableIconFocusOut(){this.isClickableIconFocused=!1}isDecrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.min===void 0||this.min===null)return!1;let t=typeof this.min=="string"?parseFloat(this.min):this.min;return this.valueAsNumber<=t}isIncrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.max===void 0||this.max===null)return!1;let t=typeof this.max=="string"?parseFloat(this.max):this.max;return this.valueAsNumber>=t}handleStep(){this.handleInput(),this.input.focus()}handleStepUp(){this.stepUp(),this.handleStep()}handleStepDown(){this.stepDown(),this.handleStep()}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,e,i="none"){this.input.setSelectionRange(t,e,i)}setRangeText(t,e,i,a){this.input.setRangeText(t,e,i,a),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){var t;return(t=this.input)==null?void 0:t.checkValidity()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),description:this.hasSlotController.test("description"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,i=this.helpText?!0:!!t.helpText,a=this.clearable&&!this.readonly&&(typeof this.value=="number"||this.value.length>0),n=!!t.tooltip,l=t.left,h=this.value!==null&&String(this.value).length>0,u=this.floatingLabel&&e&&(this.hasFocus||h||this.isClickableIconFocused),m=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",b=this.size==="sm"?"text-sm":"text-base",y={disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[m],g=this.disabled||this.visuallyDisabled?"text-neutral-500":"icon-color",w={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],E={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],S=this.size==="lg"?this.floatingLabel?u?"py-3":"py-4":"py-2":this.floatingLabel?u?"py-2":"py-3":"py-1",z={sm:"left-[36px]",md:"left-[44px]",lg:"left-12"}[this.size];return p`<div part="form-control" class="${c((this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${(e||n)&&!this.floatingLabel?p`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c(e?"inline-block":"hidden",b,this.visuallyDisabled||this.disabled?"text-neutral-500":" form-control-color-text")}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${t.tooltip?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${c("relative w-full",this.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}"><div part="border" class="${c("absolute w-full h-full pointer-events-none border form-control-border-radius transition-[border] ease-in-out duration-medium hover:duration-fast",y)}"></div><div part="base" class="${c("px-4 flex flex-row items-center form-control-border-radius transition-colors ease-in-out duration-medium hover:duration-fast",this.floatingLabel&&"has-floating-label",!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:[@media(hover:hover)]:form-control--hover-color-background":"",this.readonly?"form-control--read-only-color-background":"bg-white",["disabled","visuallyDisabled"].includes(m)?"text-neutral-500":"text-black",["invalid","activeInvalid"].includes(m)&&"form-control--invalid-color-background",S)}">${t.left?p`<slot name="left" part="left" class="${c("inline-flex",this.size==="sm"?"mr-1":"mr-2",g,E)}"></slot>`:""} <input part="input" id="input" class="${c("min-w-0 flex-grow focus:outline-none bg-transparent",this.visuallyDisabled||this.disabled?"placeholder:text-neutral-500 cursor-not-allowed":"placeholder:text-neutral-700",this.size==="sm"?u?"h-4":"h-6":u?"h-6":"h-8",b,u&&"leading-none mt-4")}" type="${this.type==="password"&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${$(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${!this.floatingLabel||u?$(this.placeholder):""}" minlength="${$(this.minlength)}" maxlength="${$(this.maxlength)}" min="${$(this.min)}" max="${$(this.max)}" step="${$(this.step)}" .value="${$e(this.value)}" autocapitalize="${$(this.type==="password"?"off":this.autocapitalize)}" autocomplete="${$(this.autocomplete)}" autocorrect="${$(this.type==="password"?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${$(this.pattern)}" enterkeyhint="${$(this.enterkeyhint)}" inputmode="${$(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}"> ${e&&this.floatingLabel?p`<label part="form-control-floating-label" class="${c("pointer-events-none absolute",l?z:"left-4",!this.readonly&&"transition-all duration-medium ease-out",!u||!h&&(this.readonly||this.visuallyDisabled)?"top-1/2 -translate-y-1/2 form-control-color-text":this.size==="lg"?"top-2":"top-1")}" for="input" aria-hidden="${e?"false":"true"}"><span id="floating-label" class="${c("pointer-events-none leading-none",!this.readonly&&"transition-all duration-medium ease-out",!u||!h&&(this.readonly||this.visuallyDisabled)?b:"text-xs",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",u&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null} ${a?p`<button part="clear-button" class="${c("flex justify-center",w)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${c(this.disabled||this.visuallyDisabled?"text-neutral-500":"text-neutral-700",E)}" library="_internal" name="closing-round"></sd-icon></slot></button>`:""} ${this.passwordToggle&&this.type==="password"?p`<button aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" part="password-toggle-button" class="${c("flex items-center sd-interactive",w,this.floatingLabel&&!u&&"hide-password-toggle")}" type="button" @click="${this.handlePasswordToggle}" @mousedown="${this.handleClickableIconFocusIn}" @focus="${()=>this.handleClickableIconFocusIn()}" @blur="${this.handleClickableIconFocusOut}">${this.passwordVisible?p`<slot name="show-password-icon"><sd-icon class="${c(g,E)}" library="_internal" name="eye"></sd-icon></slot>`:p`<slot name="hide-password-icon"><sd-icon class="${c(g,E)}" library="_internal" name="eye-crossed-out"></sd-icon></slot>`}</button>`:""} ${(this.type==="date"||this.type==="datetime-local")&&!Od?p`<sd-icon class="${c(g,w,E)}" library="_internal" name="calendar"></sd-icon>`:""} ${this.type==="time"?p`<sd-icon class="${c(g,w,E)}" library="_internal" name="clock"></sd-icon>`:""} ${this.type==="search"?p`<button class="${c("flex items-center sd-interactive",w)}" type="button" @click="${this.handleSearchClick}"><sd-icon class="${c(g,E)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-icon></button>`:""} ${this.showInvalidStyle?p`<sd-icon part="invalid-icon" class="${c("text-error",w,E)}" library="_internal" name="risk"></sd-icon>`:""} ${this.showValidStyle&&this.styleOnValid?p`<sd-icon class="${c("text-success flex-shrink-0",w,E)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-icon>`:""} ${t.right?p`<slot name="right" part="right" class="${c("inline-flex",g,w,E)}"></slot>`:""} ${this.type==="number"&&this.spinButtons?p`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${Ls({start:()=>this.handleStepDown(),end:()=>this.handleChange()})} tabindex="-1" @mousedown="${this.handleClickableIconFocusIn}" @focus="${()=>this.handleClickableIconFocusIn()}" @blur="${this.handleClickableIconFocusOut}"><slot name="decrement-number-stepper"><sd-icon library="_internal" name="minus-circle" label="Decrease value" class="${c(g,w,E)}"></sd-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${Ls({start:()=>this.handleStepUp(),end:()=>this.handleChange()})} tabindex="-1"><slot name="increment-number-stepper"><sd-icon library="_internal" name="plus-circle" label="Decrease value" class="${c(g,w,E)}"></sd-icon></slot></button></div>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm mt-1",i&&!this.showInvalidStyle?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!i||this.showInvalidStyle}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};P.styles=[...f.styles,x`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
226
|
-
:host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) :is(#label,#floating-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;display:none;-webkit-appearance:none}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-icon{color:rgba(var(--sd-color-text-neutral-500))}.hide-password-toggle{display:none}.has-floating-label input[type=date]:not(.has-value),.has-floating-label input[type=datetime-local]:not(.has-value),.has-floating-label input[type=time]:not(.has-value){color:transparent}.has-floating-label input[type=date]:focus,.has-floating-label input[type=datetime-local]:focus,.has-floating-label input[type=time]:focus{color:inherit}.icon-color{color:rgba(var(--sd-form-control-color-icon-fill))}`],o([v("#input")],P.prototype,"input",2),o([v("#invalid-message")],P.prototype,"invalidMessage",2),o([L()],P.prototype,"hasFocus",2),o([L()],P.prototype,"showValidStyle",2),o([L()],P.prototype,"showInvalidStyle",2),o([L()],P.prototype,"isClickableIconFocused",2),o([d({type:String,reflect:!0})],P.prototype,"type",2),o([d({type:String,reflect:!0})],P.prototype,"size",2),o([d({type:String,reflect:!0})],P.prototype,"inputmode",2),o([d()],P.prototype,"value",2),o([Vt()],P.prototype,"defaultValue",2),o([d({type:String,reflect:!0})],P.prototype,"placeholder",2),o([d({type:String,reflect:!0})],P.prototype,"label",2),o([d({type:String,attribute:"help-text",reflect:!0})],P.prototype,"helpText",2),o([d({type:Boolean,reflect:!0})],P.prototype,"clearable",2),o([d({type:Boolean,reflect:!0})],P.prototype,"disabled",2),o([d({type:Boolean,reflect:!0,attribute:"visually-disabled"})],P.prototype,"visuallyDisabled",2),o([d({type:Boolean,reflect:!0})],P.prototype,"readonly",2),o([d({attribute:"password-toggle",type:Boolean,reflect:!0})],P.prototype,"passwordToggle",2),o([d({attribute:"password-visible",type:Boolean,reflect:!0})],P.prototype,"passwordVisible",2),o([d({attribute:"spin-buttons",type:Boolean,reflect:!0})],P.prototype,"spinButtons",2),o([d({type:Number,reflect:!0})],P.prototype,"minlength",2),o([d({type:Number,reflect:!0})],P.prototype,"maxlength",2),o([d({reflect:!0})],P.prototype,"min",2),o([d({reflect:!0})],P.prototype,"max",2),o([d({type:String,reflect:!0})],P.prototype,"form",2),o([d({type:String,reflect:!0})],P.prototype,"name",2),o([d({type:String,reflect:!0})],P.prototype,"title",2),o([d({type:Boolean,reflect:!0})],P.prototype,"required",2),o([d({attribute:"floating-label",type:Boolean,reflect:!0})],P.prototype,"floatingLabel",2),o([d()],P.prototype,"pattern",2),o([d({reflect:!0})],P.prototype,"step",2),o([d({type:String,reflect:!0})],P.prototype,"autocapitalize",2),o([d({type:
|
|
225
|
+
:host{display:block}`],o([d({reflect:!0})],oe.prototype,"src",2),o([d({type:String,reflect:!0})],oe.prototype,"mode",2),o([d({attribute:"allow-scripts",type:Boolean,reflect:!0})],oe.prototype,"allowScripts",2),o([C("src")],oe.prototype,"handleSrcChange",1),oe=o([k("sd-include")],oe);var Jr=(s,r)=>{var e;let t=s._$AN;if(t===void 0)return!1;for(let i of t)(e=i._$AO)==null||e.call(i,r,!1),Jr(i,r);return!0},Fi=s=>{let r,t;do{if((r=s._$AM)===void 0)break;t=r._$AN,t.delete(s),s=r}while((t==null?void 0:t.size)===0)},xa=s=>{for(let r;r=s._$AM;s=r){let t=r._$AN;if(t===void 0)r._$AN=t=new Set;else if(t.has(s))break;t.add(s),Dd(r)}};function Md(s){this._$AN!==void 0?(Fi(this),this._$AM=s,xa(this)):this._$AM=s}function _d(s,r=!1,t=0){let e=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(r)if(Array.isArray(e))for(let a=t;a<e.length;a++)Jr(e[a],!1),Fi(e[a]);else e!=null&&(Jr(e,!1),Fi(e));else Jr(this,s)}var Dd=s=>{var r,t;s.type==Kt.CHILD&&((r=s._$AP)!=null||(s._$AP=_d),(t=s._$AQ)!=null||(s._$AQ=Md))},Tr=class extends Oe{constructor(){super(...arguments),this._$AN=void 0}_$AT(r,t,e){super._$AT(r,t,e),xa(this),this.isConnected=r._$AU}_$AO(r,t=!0){var e,i;r!==this.isConnected&&(this.isConnected=r,r?(e=this.reconnected)==null||e.call(this):(i=this.disconnected)==null||i.call(this)),t&&(Jr(this,r),Fi(this))}setValue(r){if(Hi(this._$Ct))this._$Ct._$AI(r,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=r,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};var Ts=class extends Tr{constructor(t){super(t);this.handlePointerDown=t=>{t.button!==0||this.host.disabled||this.spinOnLongPressCallback(t)};this.handlePointerUp=t=>{t==null||t.preventDefault(),t==null||t.stopPropagation(),this.timeout&&this.callbacks.start(),this.stopSpinningAndCleanUp(),this.callbacks.end(),document.removeEventListener("pointerup",this.handlePointerUp)};if(t.type!==Kt.ELEMENT||!(t.element instanceof HTMLButtonElement))throw new Error("The `longPress` directive must be used on an HTMLButtonElement.")}render(t){return N}update(t,[e]){return this.callbacks===void 0&&this.host===void 0&&(this.host=t.element,this.callbacks=K({},e),this.host.addEventListener("pointerdown",this.handlePointerDown)),St}disconnected(){this.stopSpinningAndCleanUp(),this.host.removeEventListener("pointerdown",this.handlePointerDown),document.removeEventListener("pointerup",this.handlePointerUp)}spinOnLongPressCallback(t){var e;t.preventDefault(),t.stopPropagation(),this.timeout=setTimeout(()=>{this.timeout=void 0,this.interval=setInterval(()=>{this.callbacks.start()},50)},500),document.addEventListener("pointerup",this.handlePointerUp),(e=this.observer)==null||e.disconnect(),this.observer=new MutationObserver(i=>{i.forEach(a=>{a.attributeName==="disabled"&&this.stopSpinningAndCleanUp()})}),this.observer.observe(this.host,{attributes:!0})}stopSpinningAndCleanUp(){var t;clearInterval(this.interval),clearTimeout(this.timeout),(t=this.observer)==null||t.disconnect()}},Ls=Jt(Ts);var ka,Ad=(ka=navigator.userAgentData)==null?void 0:ka.brands.some(s=>s.brand.includes("Chromium")),Od=Ad?!1:navigator.userAgent.includes("Firefox"),P=class extends f{constructor(){super(...arguments);this.formControlController=new ut(this);this.hasSlotController=new O(this,"help-text","label","left","right","message","placeholder");this.localize=new _(this);this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.isClickableIconFocused=!1;this.type="text";this.size="lg";this.value="";this.defaultValue="";this.placeholder="";this.label="";this.helpText="";this.clearable=!1;this.disabled=!1;this.visuallyDisabled=!1;this.readonly=!1;this.passwordToggle=!1;this.passwordVisible=!1;this.spinButtons=!1;this.form="";this.name="";this.title="";this.required=!1;this.floatingLabel=!1;this.styleOnValid=!1;this.spellcheck=!0}get valueAsDate(){var t,e;return(e=(t=this.input)==null?void 0:t.valueAsDate)!=null?e:null}set valueAsDate(t){let e=document.createElement("input");e.type="date",e.valueAsDate=t,this.value=e.value}get valueAsNumber(){var t,e;return(e=(t=this.input)==null?void 0:t.valueAsNumber)!=null?e:parseFloat(this.value)}set valueAsNumber(t){let e=document.createElement("input");e.type="number",e.valueAsNumber=t,this.value=e.value}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.input.value,this.emit("sd-change")}handleClearClick(t){this.value="",this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change"),this.input.focus(),t.stopPropagation()}handleSearchClick(t){this.emit("sd-search"),t.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){if(this.visuallyDisabled){this.input.value=this.value;return}this.value=this.input.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleKeyDown(t){let e=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;t.key==="Enter"&&!e&&setTimeout(()=>{!t.defaultPrevented&&!t.isComposing&&this.formControlController.submit()})}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleClickableIconFocusIn(){this.isClickableIconFocused=!0}handleClickableIconFocusOut(){this.isClickableIconFocused=!1}isDecrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.min===void 0||this.min===null)return!1;let t=typeof this.min=="string"?parseFloat(this.min):this.min;return this.valueAsNumber<=t}isIncrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.max===void 0||this.max===null)return!1;let t=typeof this.max=="string"?parseFloat(this.max):this.max;return this.valueAsNumber>=t}handleStep(){this.handleInput(),this.input.focus()}handleStepUp(){this.stepUp(),this.handleStep()}handleStepDown(){this.stepDown(),this.handleStep()}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,e,i="none"){this.input.setSelectionRange(t,e,i)}setRangeText(t,e,i,a){this.input.setRangeText(t,e,i,a),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){var t;return(t=this.input)==null?void 0:t.checkValidity()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),description:this.hasSlotController.test("description"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,i=this.helpText?!0:!!t.helpText,a=this.clearable&&!this.readonly&&(typeof this.value=="number"||this.value.length>0),n=!!t.tooltip,l=t.left,h=this.value!==null&&String(this.value).length>0,u=this.floatingLabel&&e&&(this.hasFocus||h||this.isClickableIconFocused),m=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",b=this.size==="sm"?"text-sm":"text-base",y={disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[m],g=this.disabled||this.visuallyDisabled?"text-neutral-500":"icon-color",w={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],E={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],S=this.size==="lg"?this.floatingLabel?u?"py-3":"py-4":"py-2":this.floatingLabel?u?"py-2":"py-3":"py-1",z={sm:"left-[36px]",md:"left-[44px]",lg:"left-12"}[this.size];return p`<div part="form-control" class="${c((this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${(e||n)&&!this.floatingLabel?p`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c(e?"inline-block":"hidden",b,this.visuallyDisabled||this.disabled?"text-neutral-500":" form-control-color-text")}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${t.tooltip?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${c("relative w-full",this.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}"><div part="border" class="${c("absolute w-full h-full pointer-events-none border form-control-border-radius transition-[border] ease-in-out duration-medium hover:duration-fast",y)}"></div><div part="base" class="${c("px-4 flex flex-row items-center form-control-border-radius transition-colors ease-in-out duration-medium hover:duration-fast",this.floatingLabel&&"has-floating-label",!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:[@media(hover:hover)]:form-control--hover-color-background":"",this.readonly?"form-control--read-only-color-background":"bg-white",["disabled","visuallyDisabled"].includes(m)?"text-neutral-500":"text-black",["invalid","activeInvalid"].includes(m)&&"form-control--invalid-color-background",S)}">${t.left?p`<slot name="left" part="left" class="${c("inline-flex",this.size==="sm"?"mr-1":"mr-2",g,E)}"></slot>`:""} <input part="input" id="input" class="${c("min-w-0 flex-grow focus:outline-none bg-transparent",this.visuallyDisabled||this.disabled?"placeholder:text-neutral-500 cursor-not-allowed":"placeholder:text-neutral-700",this.size==="sm"?u?"h-4":"h-6":u?"h-6":"h-8",b,u&&"leading-none mt-4")}" type="${this.type==="password"&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${$(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${!this.floatingLabel||u?$(this.placeholder):""}" minlength="${$(this.minlength)}" maxlength="${$(this.maxlength)}" min="${$(this.min)}" max="${$(this.max)}" step="${$(this.step)}" .value="${$e(this.value)}" autocapitalize="${$(this.type==="password"?"off":this.autocapitalize)}" autocomplete="${$(this.autocomplete)}" autocorrect="${$(this.type==="password"?"off":this.autocorrect===void 0?void 0:this.autocorrect?"on":"off")}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${$(this.pattern)}" enterkeyhint="${$(this.enterkeyhint)}" inputmode="${$(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}"> ${e&&this.floatingLabel?p`<label part="form-control-floating-label" class="${c("pointer-events-none absolute",l?z:"left-4",!this.readonly&&"transition-all duration-medium ease-out",!u||!h&&(this.readonly||this.visuallyDisabled)?"top-1/2 -translate-y-1/2 form-control-color-text":this.size==="lg"?"top-2":"top-1")}" for="input" aria-hidden="${e?"false":"true"}"><span id="floating-label" class="${c("pointer-events-none leading-none",!this.readonly&&"transition-all duration-medium ease-out",!u||!h&&(this.readonly||this.visuallyDisabled)?b:"text-xs",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",u&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null} ${a?p`<button part="clear-button" class="${c("flex justify-center",w)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${c(this.disabled||this.visuallyDisabled?"text-neutral-500":"text-neutral-700",E)}" library="_internal" name="closing-round"></sd-icon></slot></button>`:""} ${this.passwordToggle&&this.type==="password"?p`<button aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" part="password-toggle-button" class="${c("flex items-center sd-interactive",w,this.floatingLabel&&!u&&"hide-password-toggle")}" type="button" @click="${this.handlePasswordToggle}" @mousedown="${this.handleClickableIconFocusIn}" @focus="${()=>this.handleClickableIconFocusIn()}" @blur="${this.handleClickableIconFocusOut}">${this.passwordVisible?p`<slot name="show-password-icon"><sd-icon class="${c(g,E)}" library="_internal" name="eye"></sd-icon></slot>`:p`<slot name="hide-password-icon"><sd-icon class="${c(g,E)}" library="_internal" name="eye-crossed-out"></sd-icon></slot>`}</button>`:""} ${(this.type==="date"||this.type==="datetime-local")&&!Od?p`<sd-icon class="${c(g,w,E)}" library="_internal" name="calendar"></sd-icon>`:""} ${this.type==="time"?p`<sd-icon class="${c(g,w,E)}" library="_internal" name="clock"></sd-icon>`:""} ${this.type==="search"?p`<button class="${c("flex items-center sd-interactive",w)}" type="button" @click="${this.handleSearchClick}"><sd-icon class="${c(g,E)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-icon></button>`:""} ${this.showInvalidStyle?p`<sd-icon part="invalid-icon" class="${c("text-error",w,E)}" library="_internal" name="risk"></sd-icon>`:""} ${this.showValidStyle&&this.styleOnValid?p`<sd-icon class="${c("text-success flex-shrink-0",w,E)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-icon>`:""} ${t.right?p`<slot name="right" part="right" class="${c("inline-flex",g,w,E)}"></slot>`:""} ${this.type==="number"&&this.spinButtons?p`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${Ls({start:()=>this.handleStepDown(),end:()=>this.handleChange()})} tabindex="-1" @mousedown="${this.handleClickableIconFocusIn}" @focus="${()=>this.handleClickableIconFocusIn()}" @blur="${this.handleClickableIconFocusOut}"><slot name="decrement-number-stepper"><sd-icon library="_internal" name="minus-circle" label="Decrease value" class="${c(g,w,E)}"></sd-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${Ls({start:()=>this.handleStepUp(),end:()=>this.handleChange()})} tabindex="-1"><slot name="increment-number-stepper"><sd-icon library="_internal" name="plus-circle" label="Decrease value" class="${c(g,w,E)}"></sd-icon></slot></button></div>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm mt-1",i&&!this.showInvalidStyle?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!i||this.showInvalidStyle}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};P.styles=[...f.styles,x`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
226
|
+
:host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) :is(#label,#floating-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;display:none;-webkit-appearance:none}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-icon{color:rgba(var(--sd-color-text-neutral-500))}.hide-password-toggle{display:none}.has-floating-label input[type=date]:not(.has-value),.has-floating-label input[type=datetime-local]:not(.has-value),.has-floating-label input[type=time]:not(.has-value){color:transparent}.has-floating-label input[type=date]:focus,.has-floating-label input[type=datetime-local]:focus,.has-floating-label input[type=time]:focus{color:inherit}.icon-color{color:rgba(var(--sd-form-control-color-icon-fill))}`],o([v("#input")],P.prototype,"input",2),o([v("#invalid-message")],P.prototype,"invalidMessage",2),o([L()],P.prototype,"hasFocus",2),o([L()],P.prototype,"showValidStyle",2),o([L()],P.prototype,"showInvalidStyle",2),o([L()],P.prototype,"isClickableIconFocused",2),o([d({type:String,reflect:!0})],P.prototype,"type",2),o([d({type:String,reflect:!0})],P.prototype,"size",2),o([d({type:String,reflect:!0})],P.prototype,"inputmode",2),o([d()],P.prototype,"value",2),o([Vt()],P.prototype,"defaultValue",2),o([d({type:String,reflect:!0})],P.prototype,"placeholder",2),o([d({type:String,reflect:!0})],P.prototype,"label",2),o([d({type:String,attribute:"help-text",reflect:!0})],P.prototype,"helpText",2),o([d({type:Boolean,reflect:!0})],P.prototype,"clearable",2),o([d({type:Boolean,reflect:!0})],P.prototype,"disabled",2),o([d({type:Boolean,reflect:!0,attribute:"visually-disabled"})],P.prototype,"visuallyDisabled",2),o([d({type:Boolean,reflect:!0})],P.prototype,"readonly",2),o([d({attribute:"password-toggle",type:Boolean,reflect:!0})],P.prototype,"passwordToggle",2),o([d({attribute:"password-visible",type:Boolean,reflect:!0})],P.prototype,"passwordVisible",2),o([d({attribute:"spin-buttons",type:Boolean,reflect:!0})],P.prototype,"spinButtons",2),o([d({type:Number,reflect:!0})],P.prototype,"minlength",2),o([d({type:Number,reflect:!0})],P.prototype,"maxlength",2),o([d({reflect:!0})],P.prototype,"min",2),o([d({reflect:!0})],P.prototype,"max",2),o([d({type:String,reflect:!0})],P.prototype,"form",2),o([d({type:String,reflect:!0})],P.prototype,"name",2),o([d({type:String,reflect:!0})],P.prototype,"title",2),o([d({type:Boolean,reflect:!0})],P.prototype,"required",2),o([d({attribute:"floating-label",type:Boolean,reflect:!0})],P.prototype,"floatingLabel",2),o([d()],P.prototype,"pattern",2),o([d({reflect:!0})],P.prototype,"step",2),o([d({type:String,reflect:!0})],P.prototype,"autocapitalize",2),o([d({type:Boolean,reflect:!0,converter:{fromAttribute:t=>t!=="off",toAttribute:t=>t?"on":"off"}})],P.prototype,"autocorrect",2),o([d({reflect:!0})],P.prototype,"autocomplete",2),o([d({type:Boolean,reflect:!0})],P.prototype,"autofocus",2),o([d({type:String,reflect:!0})],P.prototype,"enterkeyhint",2),o([d({type:Boolean,reflect:!0,attribute:"style-on-valid"})],P.prototype,"styleOnValid",2),o([d({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],P.prototype,"spellcheck",2),o([C("disabled",{waitUntilFirstUpdate:!0})],P.prototype,"handleDisabledChange",1),o([C("step",{waitUntilFirstUpdate:!0})],P.prototype,"handleStepChange",1),o([C("value",{waitUntilFirstUpdate:!0})],P.prototype,"handleValueChange",1),o([C(["size","floatingLabel"])],P.prototype,"handleSizeChange",1),P=o([k("sd-input")],P);var Bt=class extends f{constructor(){super(...arguments);this.variant="main";this.state="default";this.animated=!1;this.notInteractive=!1;this.href="";this.label="";this.marker={cluster:`
|
|
227
227
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50">
|
|
228
228
|
<circle cx="25" cy="25" opacity="1" r="20" />
|
|
229
229
|
</svg>`,main:`
|
|
@@ -278,8 +278,8 @@ sd-button::part(base){display:flex;height:var(--sd-spacing-12);width:var(--sd-sp
|
|
|
278
278
|
:host{display:block}::slotted(*){margin:0}:host([variant=white]) .background:focus-within{background-color:rgba(var(--sd-color-background-white))}@supports (color:color-mix(in lab,red,red)){:host([variant=white]) .background:focus-within{background-color:color-mix(in oklab,rgba(var(--sd-color-background-white)) var(--sd-opacity-90),transparent)}}:host([variant=neutral-100]) .background:focus-within{background-color:rgba(var(--sd-color-background-neutral-100))}@supports (color:color-mix(in lab,red,red)){:host([variant=neutral-100]) .background:focus-within{background-color:color-mix(in oklab,rgba(var(--sd-color-background-neutral-100)) var(--sd-opacity-90),transparent)}}:host([variant=primary]) .background:focus-within{background-color:rgba(var(--sd-color-background-primary))}@supports (color:color-mix(in lab,red,red)){:host([variant=primary]) .background:focus-within{background-color:color-mix(in oklab,rgba(var(--sd-color-background-primary)) var(--sd-opacity-90),transparent)}}:host([variant=primary-100]) .background:focus-within{background-color:rgba(var(--sd-color-background-primary-100))}@supports (color:color-mix(in lab,red,red)){:host([variant=primary-100]) .background:focus-within{background-color:color-mix(in oklab,rgba(var(--sd-color-background-primary-100)) var(--sd-opacity-90),transparent)}}:host([variant=gradient-light]) .bg-gradient-to-t{--sd-color-background-white:var(--sd-informational-gradient--white-color-background, var(--sd-color-white))}:host([variant=gradient-dark]) .bg-gradient-to-t{--sd-color-background-primary-800:var(
|
|
279
279
|
--sd-informational-gradient--primary-800-color-background,
|
|
280
280
|
var(--sd-color-primary-800)
|
|
281
|
-
)}[part=toggle]{width:-moz-fit-content;width:fit-content;outline-color:transparent}:host([variant=gradient-dark]) [part=toggle]:focus-visible,:host([variant=primary]) [part=toggle]:focus-visible{outline-color:rgba(var(--sd-color-text-white))}`],o([d({type:String,reflect:!0})],be.prototype,"variant",2),o([d({type:Boolean,reflect:!0})],be.prototype,"open",2),o([v('[part="base"]')],be.prototype,"teaserMedia",2),be=o([k("sd-teaser-media")],be);var U=class extends f{constructor(){super(...arguments);this.formControlController=new ut(this);this.hasSlotController=new O(this,"help-text","label");this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.title="";this.name="";this.value="";this.size="lg";this.label="";this.helpText="";this.placeholder="";this.rows=4;this.disabled=!1;this.visuallyDisabled=!1;this.readonly=!1;this.form="";this.required=!1;this.floatingLabel=!1;this.styleOnValid=!1;this.spellcheck=!0;this.defaultValue=""}get validity(){return this.textarea.validity}get validationMessage(){return this.textarea.validationMessage}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.setTextareaHeight()})}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.textarea.value,this.setTextareaHeight(),this.emit("sd-change")}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){if(this.visuallyDisabled){this.textarea.value=this.value;return}this.value=this.textarea.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}setTextareaHeight(){this.textarea.style.height=void 0}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}focus(t){this.textarea.focus(t)}blur(){this.textarea.blur()}select(){this.textarea.select()}scrollPosition(t){if(t){typeof t.top=="number"&&(this.textarea.scrollTop=t.top),typeof t.left=="number"&&(this.textarea.scrollLeft=t.left);return}return{top:this.textarea.scrollTop,left:this.textarea.scrollTop}}setSelectionRange(t,e,i="none"){this.textarea.setSelectionRange(t,e,i)}setRangeText(t,e,i,a){this.textarea.setRangeText(t,e,i,a),this.value!==this.textarea.value&&(this.value=this.textarea.value),this.value!==this.textarea.value&&(this.value=this.textarea.value,this.setTextareaHeight())}checkValidity(){var t;return(t=this.textarea)==null?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.textarea.reportValidity()}setCustomValidity(t){this.textarea.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,i=this.helpText?!0:!!t.helpText,a=!!t.tooltip,n=this.value!==null&&String(this.value).length>0,l=this.floatingLabel&&e&&(this.hasFocus&&!this.visuallyDisabled||n),h=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",u=this.size==="sm"?"text-sm":"text-base",m={sm:"text-base top-1",md:"text-lg top-2",lg:"text-xl top-2"}[this.size];return p`<div part="form-control" class="flex flex-col h-full text-left">${e&&!this.floatingLabel||a?p`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c(e?"inline-block":"hidden",u,this.visuallyDisabled||this.disabled?"text-neutral-500":" form-control-color-text")}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${t.tooltip?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${c("relative h-full w-full",this.disabled&&"cursor-not-allowed")}">${e&&this.floatingLabel?p`<label id="label" part="form-control-floating-label" class="${c("absolute left-4 z-20 transition-all duration-200 cursor-text",u,l?"top-2 text-xs":"top-2.5 form-control-color-text")}" for="input"><span class="${c("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",l&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}<div part="border" class="${c("absolute w-full h-full pointer-events-none border form-control-border-radius transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[h])}"></div><div part="base" class="${c("textarea h-full flex items-top form-control-border-radius group transition-colors duration-medium hover:duration-fast ease-in-out",this.floatingLabel&&"pt-6",{sm:"textarea-sm",md:"textarea-md",lg:"textarea-lg"}[this.size],!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:[@media(hover:hover)]:form-control--hover-color-background":"",this.readonly?"form-control--read-only-color-background":"bg-white",h==="disabled"||h==="visuallyDisabled"?"text-neutral-500":"text-black",["invalid","activeInvalid"].includes(h)&&"form-control--invalid-color-background")}"><textarea part="textarea" id="input" class="${c("ps-4 flex-grow focus:outline-none bg-transparent placeholder:text-neutral-700 resize-none group-has-[sd-icon]:pe-8",{sm:l?"pb-1":"py-2",md:l?"pb-1":"py-2",lg:l?"pb-2":"py-2"}[this.size],this.disabled&&"cursor-not-allowed",u)}" title="${this.title}" name="${$(this.name)}" .value="${$e(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${!this.floatingLabel||l?$(this.placeholder):""}" minlength="${$(this.minlength)}" maxlength="${$(this.maxlength)}" rows="${$(this.rows)}" autocapitalize="${$(this.autocapitalize)}" autocorrect="${$(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${$(this.spellcheck)}" enterkeyhint="${$(this.enterkeyhint)}" inputmode="${$(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle?p`<sd-icon class="${c("text-error absolute right-4 pointer-events-none",m)}" library="_internal" name="risk" part="invalid-icon"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-icon class="${c("text-success absolute right-4 pointer-events-none",m)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-icon>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm mt-1",i&&!this.showInvalidStyle?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!i||this.showInvalidStyle}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};U.styles=[...f.styles,x`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
282
|
-
:host{display:block;height:100%}:host textarea{scrollbar-gutter:stable}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([required]) #label::after{content:' *'}:host([visually-disabled]) textarea{caret-color:transparent}.no-scrollbar::-webkit-scrollbar{display:none}`],o([v("#input")],U.prototype,"textarea",2),o([v("#invalid-message")],U.prototype,"invalidMessage",2),o([L()],U.prototype,"hasFocus",2),o([L()],U.prototype,"showValidStyle",2),o([L()],U.prototype,"showInvalidStyle",2),o([d({type:String,reflect:!0})],U.prototype,"title",2),o([d({type:String,reflect:!0})],U.prototype,"name",2),o([d()],U.prototype,"value",2),o([d({type:String,reflect:!0})],U.prototype,"size",2),o([d({type:String,reflect:!0})],U.prototype,"label",2),o([d({type:String,attribute:"help-text",reflect:!0})],U.prototype,"helpText",2),o([d({type:String,reflect:!0})],U.prototype,"placeholder",2),o([d({type:Number,reflect:!0})],U.prototype,"rows",2),o([d({type:Boolean,reflect:!0})],U.prototype,"disabled",2),o([d({type:Boolean,reflect:!0,attribute:"visually-disabled"})],U.prototype,"visuallyDisabled",2),o([d({type:Boolean,reflect:!0})],U.prototype,"readonly",2),o([d({type:String,reflect:!0})],U.prototype,"form",2),o([d({type:Boolean,reflect:!0})],U.prototype,"required",2),o([d({attribute:"floating-label",type:Boolean,reflect:!0})],U.prototype,"floatingLabel",2),o([d({type:Number,reflect:!0})],U.prototype,"minlength",2),o([d({type:Number,reflect:!0})],U.prototype,"maxlength",2),o([d({type:String,reflect:!0})],U.prototype,"autocapitalize",2),o([d({type:
|
|
281
|
+
)}[part=toggle]{width:-moz-fit-content;width:fit-content;outline-color:transparent}:host([variant=gradient-dark]) [part=toggle]:focus-visible,:host([variant=primary]) [part=toggle]:focus-visible{outline-color:rgba(var(--sd-color-text-white))}`],o([d({type:String,reflect:!0})],be.prototype,"variant",2),o([d({type:Boolean,reflect:!0})],be.prototype,"open",2),o([v('[part="base"]')],be.prototype,"teaserMedia",2),be=o([k("sd-teaser-media")],be);var U=class extends f{constructor(){super(...arguments);this.formControlController=new ut(this);this.hasSlotController=new O(this,"help-text","label");this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.title="";this.name="";this.value="";this.size="lg";this.label="";this.helpText="";this.placeholder="";this.rows=4;this.disabled=!1;this.visuallyDisabled=!1;this.readonly=!1;this.form="";this.required=!1;this.floatingLabel=!1;this.styleOnValid=!1;this.spellcheck=!0;this.defaultValue=""}get validity(){return this.textarea.validity}get validationMessage(){return this.textarea.validationMessage}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.setTextareaHeight()})}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.textarea.value,this.setTextareaHeight(),this.emit("sd-change")}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){if(this.visuallyDisabled){this.textarea.value=this.value;return}this.value=this.textarea.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}setTextareaHeight(){this.textarea.style.height=void 0}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}focus(t){this.textarea.focus(t)}blur(){this.textarea.blur()}select(){this.textarea.select()}scrollPosition(t){if(t){typeof t.top=="number"&&(this.textarea.scrollTop=t.top),typeof t.left=="number"&&(this.textarea.scrollLeft=t.left);return}return{top:this.textarea.scrollTop,left:this.textarea.scrollTop}}setSelectionRange(t,e,i="none"){this.textarea.setSelectionRange(t,e,i)}setRangeText(t,e,i,a){this.textarea.setRangeText(t,e,i,a),this.value!==this.textarea.value&&(this.value=this.textarea.value),this.value!==this.textarea.value&&(this.value=this.textarea.value,this.setTextareaHeight())}checkValidity(){var t;return(t=this.textarea)==null?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.textarea.reportValidity()}setCustomValidity(t){this.textarea.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,i=this.helpText?!0:!!t.helpText,a=!!t.tooltip,n=this.value!==null&&String(this.value).length>0,l=this.floatingLabel&&e&&(this.hasFocus&&!this.visuallyDisabled||n),h=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",u=this.size==="sm"?"text-sm":"text-base",m={sm:"text-base top-1",md:"text-lg top-2",lg:"text-xl top-2"}[this.size];return p`<div part="form-control" class="flex flex-col h-full text-left">${e&&!this.floatingLabel||a?p`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c(e?"inline-block":"hidden",u,this.visuallyDisabled||this.disabled?"text-neutral-500":" form-control-color-text")}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${t.tooltip?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${c("relative h-full w-full",this.disabled&&"cursor-not-allowed")}">${e&&this.floatingLabel?p`<label id="label" part="form-control-floating-label" class="${c("absolute left-4 z-20 transition-all duration-200 cursor-text",u,l?"top-2 text-xs":"top-2.5 form-control-color-text")}" for="input"><span class="${c("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",l&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}<div part="border" class="${c("absolute w-full h-full pointer-events-none border form-control-border-radius transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[h])}"></div><div part="base" class="${c("textarea h-full flex items-top form-control-border-radius group transition-colors duration-medium hover:duration-fast ease-in-out",this.floatingLabel&&"pt-6",{sm:"textarea-sm",md:"textarea-md",lg:"textarea-lg"}[this.size],!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:[@media(hover:hover)]:form-control--hover-color-background":"",this.readonly?"form-control--read-only-color-background":"bg-white",h==="disabled"||h==="visuallyDisabled"?"text-neutral-500":"text-black",["invalid","activeInvalid"].includes(h)&&"form-control--invalid-color-background")}"><textarea part="textarea" id="input" class="${c("ps-4 flex-grow focus:outline-none bg-transparent placeholder:text-neutral-700 resize-none group-has-[sd-icon]:pe-8",{sm:l?"pb-1":"py-2",md:l?"pb-1":"py-2",lg:l?"pb-2":"py-2"}[this.size],this.disabled&&"cursor-not-allowed",u)}" title="${this.title}" name="${$(this.name)}" .value="${$e(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${!this.floatingLabel||l?$(this.placeholder):""}" minlength="${$(this.minlength)}" maxlength="${$(this.maxlength)}" rows="${$(this.rows)}" autocapitalize="${$(this.autocapitalize)}" autocorrect="${$(this.autocorrect===void 0?void 0:this.autocorrect?"on":"off")}" ?autofocus="${this.autofocus}" spellcheck="${$(this.spellcheck)}" enterkeyhint="${$(this.enterkeyhint)}" inputmode="${$(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle?p`<sd-icon class="${c("text-error absolute right-4 pointer-events-none",m)}" library="_internal" name="risk" part="invalid-icon"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-icon class="${c("text-success absolute right-4 pointer-events-none",m)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-icon>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm mt-1",i&&!this.showInvalidStyle?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!i||this.showInvalidStyle}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};U.styles=[...f.styles,x`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
282
|
+
:host{display:block;height:100%}:host textarea{scrollbar-gutter:stable}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([required]) #label::after{content:' *'}:host([visually-disabled]) textarea{caret-color:transparent}.no-scrollbar::-webkit-scrollbar{display:none}`],o([v("#input")],U.prototype,"textarea",2),o([v("#invalid-message")],U.prototype,"invalidMessage",2),o([L()],U.prototype,"hasFocus",2),o([L()],U.prototype,"showValidStyle",2),o([L()],U.prototype,"showInvalidStyle",2),o([d({type:String,reflect:!0})],U.prototype,"title",2),o([d({type:String,reflect:!0})],U.prototype,"name",2),o([d()],U.prototype,"value",2),o([d({type:String,reflect:!0})],U.prototype,"size",2),o([d({type:String,reflect:!0})],U.prototype,"label",2),o([d({type:String,attribute:"help-text",reflect:!0})],U.prototype,"helpText",2),o([d({type:String,reflect:!0})],U.prototype,"placeholder",2),o([d({type:Number,reflect:!0})],U.prototype,"rows",2),o([d({type:Boolean,reflect:!0})],U.prototype,"disabled",2),o([d({type:Boolean,reflect:!0,attribute:"visually-disabled"})],U.prototype,"visuallyDisabled",2),o([d({type:Boolean,reflect:!0})],U.prototype,"readonly",2),o([d({type:String,reflect:!0})],U.prototype,"form",2),o([d({type:Boolean,reflect:!0})],U.prototype,"required",2),o([d({attribute:"floating-label",type:Boolean,reflect:!0})],U.prototype,"floatingLabel",2),o([d({type:Number,reflect:!0})],U.prototype,"minlength",2),o([d({type:Number,reflect:!0})],U.prototype,"maxlength",2),o([d({type:String,reflect:!0})],U.prototype,"autocapitalize",2),o([d({type:Boolean,reflect:!0,converter:{fromAttribute:t=>t!=="off",toAttribute:t=>t?"on":"off"}})],U.prototype,"autocorrect",2),o([d({reflect:!0})],U.prototype,"autocomplete",2),o([d({type:Boolean,reflect:!0})],U.prototype,"autofocus",2),o([d({type:String,reflect:!0})],U.prototype,"enterkeyhint",2),o([d({type:Boolean,reflect:!0,attribute:"style-on-valid"})],U.prototype,"styleOnValid",2),o([d({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],U.prototype,"spellcheck",2),o([d({type:String,reflect:!0})],U.prototype,"inputmode",2),o([Vt()],U.prototype,"defaultValue",2),o([C("disabled",{waitUntilFirstUpdate:!0})],U.prototype,"handleDisabledChange",1),o([C("rows",{waitUntilFirstUpdate:!0})],U.prototype,"handleRowsChange",1),o([C("value",{waitUntilFirstUpdate:!0})],U.prototype,"handleValueChange",1),o([C(["size","floatingLabel"])],U.prototype,"handleSizeChange",1),U=o([k("sd-textarea")],U);var ge=class extends f{constructor(){super(...arguments);this.localize=new _(this);this.playing=!1;this.isBelowBreakpoint=!1;this.hasSlotController=new O(this,"[default]","play-icon","poster")}get poster(){let t=this.shadowRoot.querySelector("slot[name=poster]");return(t==null?void 0:t.assignedElements().length)>0?t.assignedElements()[0]:null}get video(){return this.querySelector("video")}async hidePoster(){this.poster instanceof HTMLImageElement&&(this.poster.style.opacity="0",await new Promise(t=>setTimeout(t,this.token("--sd-duration-medium",300))),this.poster.style.display="none")}setVideoInert(t){var e,i;t?(e=this.video)==null||e.setAttribute("inert",""):(i=this.video)==null||i.removeAttribute("inert")}play(){var t;this.emit("sd-play"),this.playing=!0,(t=this.video)==null||t.play(),this.hidePoster(),this.setVideoInert(!1)}handleKeydown(t){t instanceof KeyboardEvent&&(t.key==="Enter"||t.key===" ")&&(this.play(),setTimeout(()=>{var e;(e=this.video)==null||e.focus()}))}handleButtonResize(){this.hostEl.clientWidth<=414&&!this.isBelowBreakpoint&&(this.isBelowBreakpoint=!0),this.hostEl.clientWidth>414&&this.isBelowBreakpoint&&(this.isBelowBreakpoint=!1)}connectedCallback(){super.connectedCallback(),this.setVideoInert(!0),this.resizeObserver=new ResizeObserver(()=>this.handleButtonResize()),this.updateComplete.then(()=>{this.resizeObserver.observe(this.hostEl)})}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.hostEl)}render(){return p`<div part="base" class="cursor-pointer"><button part="play-button" aria-label="${this.localize.term("playVideo")}" tabindex="0" @click="${this.play}" @keydown="${this.handleKeydown}" class="${c(this.playing&&"pointer-events-none","group w-full h-full absolute top-0 left-0 z-30 sd-interactive outline-hidden focus-visible:focus-outline")}"><div part="play-button-bg" class="${c(this.playing?"opacity-0":"opacity-100",this.isBelowBreakpoint?"w-[48px] h-[48px]":"w-[96px] h-[96px]","absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 p-4 bg-white/75 rounded-full play-pause-transition group-focus-visible:outline-2 group-focus-visible:outline-offset-2")}"><slot name="play-icon" part="play-icon" class="${c(this.isBelowBreakpoint?"text-[2rem]":"text-[4rem]")}"><sd-icon id="default-play-icon" library="_internal" name="start"></sd-icon></slot></div></button> ${this.hasSlotController.test("poster")?p`<div part="poster-wrapper" class="absolute left-0 top-0 w-full z-10 overflow-hidden"><slot name="poster" role="presentation"></slot></div>`:null}<slot></slot></div>`}};ge.styles=[...f.styles,x`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
283
283
|
:host{position:relative;display:inline-block;overflow:hidden}.play-pause-transition,::slotted([slot=poster]){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);transition-property:opacity,scale;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-medium, 300ms);transition-duration:var(--sd-duration-medium,300ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}#default-play-icon,::slotted([slot=play-icon]){position:absolute;top:calc(1 / 2 * 100%);left:calc(1 / 2 * 100%);--tw-translate-x:calc(calc(1 / 2 * 100%) * -1)!important;--tw-translate-y:calc(calc(1 / 2 * 100%) * -1)!important;translate:var(--tw-translate-x) var(--tw-translate-y)!important;transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}:has([part=play-button]:hover) ::slotted([slot=poster]){--tw-scale-x:110%!important;--tw-scale-y:110%!important;--tw-scale-z:110%!important;scale:var(--tw-scale-x) var(--tw-scale-y)!important}[part=play-button-bg]{color:rgba(var(--sd-video--play-button-color-icon-fill));background-color:rgba(var(--sd-video--play-button-color-background))}@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}@property --tw-ease{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}`],o([v("[part=base]")],ge.prototype,"hostEl",2),o([d({type:Boolean,reflect:!0})],ge.prototype,"playing",2),o([d({type:Boolean})],ge.prototype,"isBelowBreakpoint",2),ge=o([k("sd-video")],ge);var ze,ve,zr=class zr{constructor({name:r,initialValue:t,detect:e}){ne(this,ze);ne(this,ve);this.name=r,this.initialValue=t!=null?t:!0,this.detect=e,zr.all[r]=this,Object.defineProperty(zr,r,{get(){return this.all[r].value},configurable:!0,enumerable:!0})}get valuePending(){return ht(this,ze)!==void 0?ht(this,ze):ht(this,ve)!==void 0?ht(this,ve):(We(this,ve,this.detect()),ht(this,ve)instanceof Promise?ht(this,ve).then(r=>We(this,ze,r)):We(this,ze,ht(this,ve)),ht(this,ve))}get value(){if(ht(this,ze)!==void 0)return ht(this,ze);let r=this.valuePending;return r instanceof Promise?this.initialValue:r}static detectAll(){return Promise.all(Object.values(zr.all).map(r=>r.valuePending))}};ze=new WeakMap,ve=new WeakMap,qt(zr,"all",{});var yt=zr;var Vd=new yt({name:"TRANSITIONRUN_EVENT_LOOP",detect(){let s=document.createElement("div");document.body.appendChild(s);let r="--bar-"+Date.now();return s.style.cssText=`${r}: 1; transition: ${r} 1ms step-start allow-discrete`,new Promise(t=>{let e=0;requestAnimationFrame(()=>{setTimeout(i=>t(e>1),50),s.addEventListener("transitionrun",i=>e++),s.style.setProperty(r,"2")})}).finally(()=>s.remove())}});var Fd=new yt({name:"UNREGISTERED_TRANSITION",detect(){let s=document.createElement("div");document.body.appendChild(s);let r="--foo-"+Date.now();return s.style.cssText=`${r}: 1; transition: ${r} 1ms step-start allow-discrete`,new Promise(t=>{requestAnimationFrame(()=>{setTimeout(e=>t(!0),30),s.addEventListener("transitionstart",e=>t(!1)),s.style.setProperty(r,"2")})}).finally(()=>s.remove())}});var $a=new WeakMap;function _s(s,r=globalThis.document){var e;r=(e=r.ownerDocument)!=null?e:r;let t=r.defaultView;if(r.adoptedStyleSheets){let i=new t.CSSStyleSheet;return i.replaceSync(s),Object.isFrozen(r.adoptedStyleSheets)?r.adoptedStyleSheets=[...r.adoptedStyleSheets,i]:r.adoptedStyleSheets.push(i),i}else{let i=$a.get(r);return i||(i=r.head.appendChild(r.createElement("style")),$a.set(r,i)),i.insertAdjacentText("beforeend",s),i.sheet}}function Ds(s,r=globalThis.document){let t=r.createElement("div");r.body.append(t);let e="foo(bar)";t.style.setProperty(s,e);let i=getComputedStyle(t).getPropertyValue(s),a=!0;if(i===e){let n=t.appendChild(r.createElement("div"));a=getComputedStyle(n).getPropertyValue(s)!==e}return t.remove(),a}var Ta={"<angle>":"0deg","<color>":"transparent","<custom-ident>":"none","<image>":"linear-gradient(transparent 0% 100%)","<integer>":"0","<length>":"0px","<length-percentage>":"0px","<number>":"0","<percentage>":"0%","<resolution>":"1dppx","<string>":"''","<time>":"0s","<transform-function>":"scale(1)","<transform-list>":"scale(1)","<url>":"url('')"},La=new Map;function Sr(s,r={},t=globalThis.document){var n;let e=La.get(t);if(!s.startsWith("--")||e&&s in e||Ds(s,t))return;let i={syntax:r.syntax||"*",inherits:(n=r.inherits)!=null?n:!0};r.initialValue!==void 0?i.initialValue=r.initialValue:i.syntax!=="*"&&i.syntax in Ta&&(i.initialValue=Ta[i.syntax]);let a=_s(`@layer style-observer-registered-properties {
|
|
284
284
|
@property ${s} {
|
|
285
285
|
syntax: "${i.syntax}";
|
|
@@ -222,8 +222,8 @@ sd-button::part(base){display:flex;height:var(--sd-spacing-12);width:var(--sd-sp
|
|
|
222
222
|
var(--sd-color-primary-800)
|
|
223
223
|
)}`],o([v('[part="front"]')],Ft.prototype,"front",2),o([v('[part="back"]')],Ft.prototype,"back",2),o([d({reflect:!0,attribute:"flip-direction"})],Ft.prototype,"flipDirection",2),o([d({reflect:!0})],Ft.prototype,"placement",2),o([d({type:String,reflect:!0,attribute:"front-variant"})],Ft.prototype,"frontVariant",2),o([d({type:String,reflect:!0,attribute:"back-variant"})],Ft.prototype,"backVariant",2),o([L()],Ft.prototype,"activeSide",2),Ft=o([k("sd-flipcard")],Ft);var le=class extends f{constructor(){super(...arguments);this.fixed=!1}connectedCallback(){super.connectedCallback(),this.updateCalculatedHeight=this.updateCalculatedHeight.bind(this),this.addResizeObserver=this.addResizeObserver.bind(this),window.addEventListener("resize",this.updateCalculatedHeight)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.updateCalculatedHeight)}firstUpdated(){this.updateCalculatedHeight(),this.addResizeObserver()}updated(t){super.updated(t),t.has("fixed")&&this.updateCalculatedHeight()}addResizeObserver(){this.resizeObserver=new ResizeObserver(this.updateCalculatedHeight),this.header&&this.resizeObserver.observe(this.header)}updateCalculatedHeight(){let t=parseFloat(getComputedStyle(document.documentElement).fontSize),e=window.innerHeight/t;this.header&&this.fixed&&e>=32?document.documentElement.style.setProperty("--sd-header-calculated-height",`${this.header.clientHeight}px`):document.documentElement.style.removeProperty("--sd-header-calculated-height")}render(){return p`<header class="w-full sd-header-color-background sd-header-padding-bottom relative" role="banner"><div part="main" class="relative mx-auto my-0 box-border"><slot></slot></div></header>`}};le.styles=[...f.styles,x`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
224
224
|
:host{position:relative;z-index:var(--sd-z-index-header,600);display:block}@media (min-height:32rem){:host([fixed]){padding-bottom:var(--sd-header-calculated-height)!important}:host([fixed]) header{position:fixed;top:0;left:0;width:100%}:host([fixed]) header::after{position:absolute;top:100%;right:0;left:0;height:var(--sd-header__shadow-height,var(--sd-spacing-1));--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops));--tw-gradient-from:color-mix(in oklab, var(--color-black, #000) 40%, transparent);--tw-gradient-to:color-mix(in oklab, var(--color-black, #000) var(--sd-opacity-0), transparent);--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));--tw-content:'';content:var(--tw-content)}}[part=main]{width:var(--sd-header-inner-width);max-width:var(--sd-header-inner-max-width);padding:var(--sd-header-padding,12px 16px)}header::before{position:absolute;bottom:0;left:0;display:block;width:100%;--tw-content:'';content:var(--tw-content);background-color:rgb(var(--sd-header__underline-color-background));height:var(--sd-header__underline-height,var(--sd-spacing-2))}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-content{syntax:"*";inherits:false;initial-value:""}`],o([d({reflect:!0,type:Boolean})],le.prototype,"fixed",2),o([v("header")],le.prototype,"header",2),o([Er(100)],le.prototype,"updateCalculatedHeight",1),le=o([k("sd-header")],le);var Qt=class extends f{constructor(){super(...arguments);this.mode="cors";this.allowScripts=!1}executeScript(t){let e=document.createElement("script");[...t.attributes].forEach(i=>e.setAttribute(i.name,i.value)),e.textContent=t.textContent,t.parentNode.replaceChild(e,t)}async handleSrcChange(){try{let t=this.src,e=await xi(t,this.mode);if(t!==this.src)return;if(!e.ok){this.emit("sd-error",{detail:{status:e.status}});return}this.innerHTML=e.html,this.allowScripts&&[...this.querySelectorAll("script")].forEach(i=>this.executeScript(i)),this.emit("sd-load")}catch(t){this.emit("sd-error",{detail:{status:-1}})}}render(){return p`<slot></slot>`}};Qt.styles=[...f.styles,x`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
225
|
-
:host{display:block}`],o([d({reflect:!0})],Qt.prototype,"src",2),o([d({type:String,reflect:!0})],Qt.prototype,"mode",2),o([d({attribute:"allow-scripts",type:Boolean,reflect:!0})],Qt.prototype,"allowScripts",2),o([C("src")],Qt.prototype,"handleSrcChange",1),Qt=o([k("sd-include")],Qt);var ti=(s,r)=>{var e;let t=s._$AN;if(t===void 0)return!1;for(let i of t)(e=i._$AO)==null||e.call(i,r,!1),ti(i,r);return!0},Ri=s=>{let r,t;do{if((r=s._$AM)===void 0)break;t=r._$AN,t.delete(s),s=r}while((t==null?void 0:t.size)===0)},Ea=s=>{for(let r;r=s._$AM;s=r){let t=r._$AN;if(t===void 0)r._$AN=t=new Set;else if(t.has(s))break;t.add(s),Id(r)}};function Ad(s){this._$AN!==void 0?(Ri(this),this._$AM=s,Ea(this)):this._$AM=s}function Od(s,r=!1,t=0){let e=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(r)if(Array.isArray(e))for(let a=t;a<e.length;a++)ti(e[a],!1),Ri(e[a]);else e!=null&&(ti(e,!1),Ri(e));else ti(this,s)}var Id=s=>{var r,t;s.type==Yt.CHILD&&((r=s._$AP)!=null||(s._$AP=Od),(t=s._$AQ)!=null||(s._$AQ=Ad))},Tr=class extends Re{constructor(){super(...arguments),this._$AN=void 0}_$AT(r,t,e){super._$AT(r,t,e),Ea(this),this.isConnected=r._$AU}_$AO(r,t=!0){var e,i;r!==this.isConnected&&(this.isConnected=r,r?(e=this.reconnected)==null||e.call(this):(i=this.disconnected)==null||i.call(this)),t&&(ti(this,r),Ri(this))}setValue(r){if(Vi(this._$Ct))this._$Ct._$AI(r,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=r,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};var zs=class extends Tr{constructor(t){super(t);this.handlePointerDown=t=>{t.button!==0||this.host.disabled||this.spinOnLongPressCallback(t)};this.handlePointerUp=t=>{t==null||t.preventDefault(),t==null||t.stopPropagation(),this.timeout&&this.callbacks.start(),this.stopSpinningAndCleanUp(),this.callbacks.end(),document.removeEventListener("pointerup",this.handlePointerUp)};if(t.type!==Yt.ELEMENT||!(t.element instanceof HTMLButtonElement))throw new Error("The `longPress` directive must be used on an HTMLButtonElement.")}render(t){return U}update(t,[e]){return this.callbacks===void 0&&this.host===void 0&&(this.host=t.element,this.callbacks=K({},e),this.host.addEventListener("pointerdown",this.handlePointerDown)),Dt}disconnected(){this.stopSpinningAndCleanUp(),this.host.removeEventListener("pointerdown",this.handlePointerDown),document.removeEventListener("pointerup",this.handlePointerUp)}spinOnLongPressCallback(t){var e;t.preventDefault(),t.stopPropagation(),this.timeout=setTimeout(()=>{this.timeout=void 0,this.interval=setInterval(()=>{this.callbacks.start()},50)},500),document.addEventListener("pointerup",this.handlePointerUp),(e=this.observer)==null||e.disconnect(),this.observer=new MutationObserver(i=>{i.forEach(a=>{a.attributeName==="disabled"&&this.stopSpinningAndCleanUp()})}),this.observer.observe(this.host,{attributes:!0})}stopSpinningAndCleanUp(){var t;clearInterval(this.interval),clearTimeout(this.timeout),(t=this.observer)==null||t.disconnect()}},Ss=re(zs);var $a,Pd=($a=navigator.userAgentData)==null?void 0:$a.brands.some(s=>s.brand.includes("Chromium")),Hd=Pd?!1:navigator.userAgent.includes("Firefox"),I=class extends f{constructor(){super(...arguments);this.formControlController=new ft(this);this.hasSlotController=new O(this,"help-text","label","left","right","message","placeholder");this.localize=new _(this);this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.isClickableIconFocused=!1;this.type="text";this.size="lg";this.value="";this.defaultValue="";this.placeholder="";this.label="";this.helpText="";this.clearable=!1;this.disabled=!1;this.visuallyDisabled=!1;this.readonly=!1;this.passwordToggle=!1;this.passwordVisible=!1;this.spinButtons=!1;this.form="";this.name="";this.title="";this.required=!1;this.floatingLabel=!1;this.styleOnValid=!1;this.spellcheck=!0}get valueAsDate(){var t,e;return(e=(t=this.input)==null?void 0:t.valueAsDate)!=null?e:null}set valueAsDate(t){let e=document.createElement("input");e.type="date",e.valueAsDate=t,this.value=e.value}get valueAsNumber(){var t,e;return(e=(t=this.input)==null?void 0:t.valueAsNumber)!=null?e:parseFloat(this.value)}set valueAsNumber(t){let e=document.createElement("input");e.type="number",e.valueAsNumber=t,this.value=e.value}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.input.value,this.emit("sd-change")}handleClearClick(t){this.value="",this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change"),this.input.focus(),t.stopPropagation()}handleSearchClick(t){this.emit("sd-search"),t.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){if(this.visuallyDisabled){this.input.value=this.value;return}this.value=this.input.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleKeyDown(t){let e=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;t.key==="Enter"&&!e&&setTimeout(()=>{!t.defaultPrevented&&!t.isComposing&&this.formControlController.submit()})}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleClickableIconFocusIn(){this.isClickableIconFocused=!0}handleClickableIconFocusOut(){this.isClickableIconFocused=!1}isDecrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.min===void 0||this.min===null)return!1;let t=typeof this.min=="string"?parseFloat(this.min):this.min;return this.valueAsNumber<=t}isIncrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.max===void 0||this.max===null)return!1;let t=typeof this.max=="string"?parseFloat(this.max):this.max;return this.valueAsNumber>=t}handleStep(){this.handleInput(),this.input.focus()}handleStepUp(){this.stepUp(),this.handleStep()}handleStepDown(){this.stepDown(),this.handleStep()}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,e,i="none"){this.input.setSelectionRange(t,e,i)}setRangeText(t,e,i,a){this.input.setRangeText(t,e,i,a),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){var t;return(t=this.input)==null?void 0:t.checkValidity()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),description:this.hasSlotController.test("description"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,i=this.helpText?!0:!!t.helpText,a=this.clearable&&!this.readonly&&(typeof this.value=="number"||this.value.length>0),n=!!t.tooltip,l=t.left,h=this.value!==null&&String(this.value).length>0,u=this.floatingLabel&&e&&(this.hasFocus||h||this.isClickableIconFocused),m=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",b=this.size==="sm"?"text-sm":"text-base",y={disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[m],g=this.disabled||this.visuallyDisabled?"text-neutral-500":"icon-color",w={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],E={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],S=this.size==="lg"?this.floatingLabel?u?"py-3":"py-4":"py-2":this.floatingLabel?u?"py-2":"py-3":"py-1",z={sm:"left-[36px]",md:"left-[44px]",lg:"left-12"}[this.size];return p`<div part="form-control" class="${c((this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${(e||n)&&!this.floatingLabel?p`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c(e?"inline-block":"hidden",b,this.visuallyDisabled||this.disabled?"text-neutral-500":" form-control-color-text")}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${t.tooltip?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${c("relative w-full",this.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}"><div part="border" class="${c("absolute w-full h-full pointer-events-none border form-control-border-radius transition-[border] ease-in-out duration-medium hover:duration-fast",y)}"></div><div part="base" class="${c("px-4 flex flex-row items-center form-control-border-radius transition-colors ease-in-out duration-medium hover:duration-fast",this.floatingLabel&&"has-floating-label",!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:[@media(hover:hover)]:form-control--hover-color-background":"",this.readonly?"form-control--read-only-color-background":"bg-white",["disabled","visuallyDisabled"].includes(m)?"text-neutral-500":"text-black",["invalid","activeInvalid"].includes(m)&&"form-control--invalid-color-background",S)}">${t.left?p`<slot name="left" part="left" class="${c("inline-flex",this.size==="sm"?"mr-1":"mr-2",g,E)}"></slot>`:""} <input part="input" id="input" class="${c("min-w-0 flex-grow focus:outline-none bg-transparent",this.visuallyDisabled||this.disabled?"placeholder:text-neutral-500 cursor-not-allowed":"placeholder:text-neutral-700",this.size==="sm"?u?"h-4":"h-6":u?"h-6":"h-8",b,u&&"leading-none mt-4")}" type="${this.type==="password"&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${$(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${!this.floatingLabel||u?$(this.placeholder):""}" minlength="${$(this.minlength)}" maxlength="${$(this.maxlength)}" min="${$(this.min)}" max="${$(this.max)}" step="${$(this.step)}" .value="${Le(this.value)}" autocapitalize="${$(this.type==="password"?"off":this.autocapitalize)}" autocomplete="${$(this.autocomplete)}" autocorrect="${$(this.type==="password"?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${$(this.pattern)}" enterkeyhint="${$(this.enterkeyhint)}" inputmode="${$(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}"> ${e&&this.floatingLabel?p`<label part="form-control-floating-label" class="${c("pointer-events-none absolute",l?z:"left-4",!this.readonly&&"transition-all duration-medium ease-out",!u||!h&&(this.readonly||this.visuallyDisabled)?"top-1/2 -translate-y-1/2 form-control-color-text":this.size==="lg"?"top-2":"top-1")}" for="input" aria-hidden="${e?"false":"true"}"><span id="floating-label" class="${c("pointer-events-none leading-none",!this.readonly&&"transition-all duration-medium ease-out",!u||!h&&(this.readonly||this.visuallyDisabled)?b:"text-xs",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",u&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null} ${a?p`<button part="clear-button" class="${c("flex justify-center",w)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${c(this.disabled||this.visuallyDisabled?"text-neutral-500":"text-neutral-700",E)}" library="_internal" name="closing-round"></sd-icon></slot></button>`:""} ${this.passwordToggle&&this.type==="password"?p`<button aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" part="password-toggle-button" class="${c("flex items-center sd-interactive",w,this.floatingLabel&&!u&&"hide-password-toggle")}" type="button" @click="${this.handlePasswordToggle}" @mousedown="${this.handleClickableIconFocusIn}" @focus="${()=>this.handleClickableIconFocusIn()}" @blur="${this.handleClickableIconFocusOut}">${this.passwordVisible?p`<slot name="show-password-icon"><sd-icon class="${c(g,E)}" library="_internal" name="eye"></sd-icon></slot>`:p`<slot name="hide-password-icon"><sd-icon class="${c(g,E)}" library="_internal" name="eye-crossed-out"></sd-icon></slot>`}</button>`:""} ${(this.type==="date"||this.type==="datetime-local")&&!Hd?p`<sd-icon class="${c(g,w,E)}" library="_internal" name="calendar"></sd-icon>`:""} ${this.type==="time"?p`<sd-icon class="${c(g,w,E)}" library="_internal" name="clock"></sd-icon>`:""} ${this.type==="search"?p`<button class="${c("flex items-center sd-interactive",w)}" type="button" @click="${this.handleSearchClick}"><sd-icon class="${c(g,E)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-icon></button>`:""} ${this.showInvalidStyle?p`<sd-icon part="invalid-icon" class="${c("text-error",w,E)}" library="_internal" name="risk"></sd-icon>`:""} ${this.showValidStyle&&this.styleOnValid?p`<sd-icon class="${c("text-success flex-shrink-0",w,E)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-icon>`:""} ${t.right?p`<slot name="right" part="right" class="${c("inline-flex",g,w,E)}"></slot>`:""} ${this.type==="number"&&this.spinButtons?p`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${Ss({start:()=>this.handleStepDown(),end:()=>this.handleChange()})} tabindex="-1" @mousedown="${this.handleClickableIconFocusIn}" @focus="${()=>this.handleClickableIconFocusIn()}" @blur="${this.handleClickableIconFocusOut}"><slot name="decrement-number-stepper"><sd-icon library="_internal" name="minus-circle" label="Decrease value" class="${c(g,w,E)}"></sd-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${Ss({start:()=>this.handleStepUp(),end:()=>this.handleChange()})} tabindex="-1"><slot name="increment-number-stepper"><sd-icon library="_internal" name="plus-circle" label="Decrease value" class="${c(g,w,E)}"></sd-icon></slot></button></div>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm mt-1",i&&!this.showInvalidStyle?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!i||this.showInvalidStyle}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};I.styles=[...f.styles,x`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
226
|
-
:host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) :is(#label,#floating-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;display:none;-webkit-appearance:none}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-icon{color:rgba(var(--sd-color-text-neutral-500))}.hide-password-toggle{display:none}.has-floating-label input[type=date]:not(.has-value),.has-floating-label input[type=datetime-local]:not(.has-value),.has-floating-label input[type=time]:not(.has-value){color:transparent}.has-floating-label input[type=date]:focus,.has-floating-label input[type=datetime-local]:focus,.has-floating-label input[type=time]:focus{color:inherit}.icon-color{color:rgba(var(--sd-form-control-color-icon-fill))}`],o([v("#input")],I.prototype,"input",2),o([v("#invalid-message")],I.prototype,"invalidMessage",2),o([L()],I.prototype,"hasFocus",2),o([L()],I.prototype,"showValidStyle",2),o([L()],I.prototype,"showInvalidStyle",2),o([L()],I.prototype,"isClickableIconFocused",2),o([d({type:String,reflect:!0})],I.prototype,"type",2),o([d({type:String,reflect:!0})],I.prototype,"size",2),o([d({type:String,reflect:!0})],I.prototype,"inputmode",2),o([d()],I.prototype,"value",2),o([Nt()],I.prototype,"defaultValue",2),o([d({type:String,reflect:!0})],I.prototype,"placeholder",2),o([d({type:String,reflect:!0})],I.prototype,"label",2),o([d({type:String,attribute:"help-text",reflect:!0})],I.prototype,"helpText",2),o([d({type:Boolean,reflect:!0})],I.prototype,"clearable",2),o([d({type:Boolean,reflect:!0})],I.prototype,"disabled",2),o([d({type:Boolean,reflect:!0,attribute:"visually-disabled"})],I.prototype,"visuallyDisabled",2),o([d({type:Boolean,reflect:!0})],I.prototype,"readonly",2),o([d({attribute:"password-toggle",type:Boolean,reflect:!0})],I.prototype,"passwordToggle",2),o([d({attribute:"password-visible",type:Boolean,reflect:!0})],I.prototype,"passwordVisible",2),o([d({attribute:"spin-buttons",type:Boolean,reflect:!0})],I.prototype,"spinButtons",2),o([d({type:Number,reflect:!0})],I.prototype,"minlength",2),o([d({type:Number,reflect:!0})],I.prototype,"maxlength",2),o([d({reflect:!0})],I.prototype,"min",2),o([d({reflect:!0})],I.prototype,"max",2),o([d({type:String,reflect:!0})],I.prototype,"form",2),o([d({type:String,reflect:!0})],I.prototype,"name",2),o([d({type:String,reflect:!0})],I.prototype,"title",2),o([d({type:Boolean,reflect:!0})],I.prototype,"required",2),o([d({attribute:"floating-label",type:Boolean,reflect:!0})],I.prototype,"floatingLabel",2),o([d()],I.prototype,"pattern",2),o([d({reflect:!0})],I.prototype,"step",2),o([d({type:String,reflect:!0})],I.prototype,"autocapitalize",2),o([d({type:
|
|
225
|
+
:host{display:block}`],o([d({reflect:!0})],Qt.prototype,"src",2),o([d({type:String,reflect:!0})],Qt.prototype,"mode",2),o([d({attribute:"allow-scripts",type:Boolean,reflect:!0})],Qt.prototype,"allowScripts",2),o([C("src")],Qt.prototype,"handleSrcChange",1),Qt=o([k("sd-include")],Qt);var ti=(s,r)=>{var e;let t=s._$AN;if(t===void 0)return!1;for(let i of t)(e=i._$AO)==null||e.call(i,r,!1),ti(i,r);return!0},Ri=s=>{let r,t;do{if((r=s._$AM)===void 0)break;t=r._$AN,t.delete(s),s=r}while((t==null?void 0:t.size)===0)},Ea=s=>{for(let r;r=s._$AM;s=r){let t=r._$AN;if(t===void 0)r._$AN=t=new Set;else if(t.has(s))break;t.add(s),Id(r)}};function Ad(s){this._$AN!==void 0?(Ri(this),this._$AM=s,Ea(this)):this._$AM=s}function Od(s,r=!1,t=0){let e=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(r)if(Array.isArray(e))for(let a=t;a<e.length;a++)ti(e[a],!1),Ri(e[a]);else e!=null&&(ti(e,!1),Ri(e));else ti(this,s)}var Id=s=>{var r,t;s.type==Yt.CHILD&&((r=s._$AP)!=null||(s._$AP=Od),(t=s._$AQ)!=null||(s._$AQ=Ad))},Tr=class extends Re{constructor(){super(...arguments),this._$AN=void 0}_$AT(r,t,e){super._$AT(r,t,e),Ea(this),this.isConnected=r._$AU}_$AO(r,t=!0){var e,i;r!==this.isConnected&&(this.isConnected=r,r?(e=this.reconnected)==null||e.call(this):(i=this.disconnected)==null||i.call(this)),t&&(ti(this,r),Ri(this))}setValue(r){if(Vi(this._$Ct))this._$Ct._$AI(r,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=r,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};var zs=class extends Tr{constructor(t){super(t);this.handlePointerDown=t=>{t.button!==0||this.host.disabled||this.spinOnLongPressCallback(t)};this.handlePointerUp=t=>{t==null||t.preventDefault(),t==null||t.stopPropagation(),this.timeout&&this.callbacks.start(),this.stopSpinningAndCleanUp(),this.callbacks.end(),document.removeEventListener("pointerup",this.handlePointerUp)};if(t.type!==Yt.ELEMENT||!(t.element instanceof HTMLButtonElement))throw new Error("The `longPress` directive must be used on an HTMLButtonElement.")}render(t){return U}update(t,[e]){return this.callbacks===void 0&&this.host===void 0&&(this.host=t.element,this.callbacks=K({},e),this.host.addEventListener("pointerdown",this.handlePointerDown)),Dt}disconnected(){this.stopSpinningAndCleanUp(),this.host.removeEventListener("pointerdown",this.handlePointerDown),document.removeEventListener("pointerup",this.handlePointerUp)}spinOnLongPressCallback(t){var e;t.preventDefault(),t.stopPropagation(),this.timeout=setTimeout(()=>{this.timeout=void 0,this.interval=setInterval(()=>{this.callbacks.start()},50)},500),document.addEventListener("pointerup",this.handlePointerUp),(e=this.observer)==null||e.disconnect(),this.observer=new MutationObserver(i=>{i.forEach(a=>{a.attributeName==="disabled"&&this.stopSpinningAndCleanUp()})}),this.observer.observe(this.host,{attributes:!0})}stopSpinningAndCleanUp(){var t;clearInterval(this.interval),clearTimeout(this.timeout),(t=this.observer)==null||t.disconnect()}},Ss=re(zs);var $a,Pd=($a=navigator.userAgentData)==null?void 0:$a.brands.some(s=>s.brand.includes("Chromium")),Hd=Pd?!1:navigator.userAgent.includes("Firefox"),I=class extends f{constructor(){super(...arguments);this.formControlController=new ft(this);this.hasSlotController=new O(this,"help-text","label","left","right","message","placeholder");this.localize=new _(this);this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.isClickableIconFocused=!1;this.type="text";this.size="lg";this.value="";this.defaultValue="";this.placeholder="";this.label="";this.helpText="";this.clearable=!1;this.disabled=!1;this.visuallyDisabled=!1;this.readonly=!1;this.passwordToggle=!1;this.passwordVisible=!1;this.spinButtons=!1;this.form="";this.name="";this.title="";this.required=!1;this.floatingLabel=!1;this.styleOnValid=!1;this.spellcheck=!0}get valueAsDate(){var t,e;return(e=(t=this.input)==null?void 0:t.valueAsDate)!=null?e:null}set valueAsDate(t){let e=document.createElement("input");e.type="date",e.valueAsDate=t,this.value=e.value}get valueAsNumber(){var t,e;return(e=(t=this.input)==null?void 0:t.valueAsNumber)!=null?e:parseFloat(this.value)}set valueAsNumber(t){let e=document.createElement("input");e.type="number",e.valueAsNumber=t,this.value=e.value}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.input.value,this.emit("sd-change")}handleClearClick(t){this.value="",this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change"),this.input.focus(),t.stopPropagation()}handleSearchClick(t){this.emit("sd-search"),t.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){if(this.visuallyDisabled){this.input.value=this.value;return}this.value=this.input.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleKeyDown(t){let e=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;t.key==="Enter"&&!e&&setTimeout(()=>{!t.defaultPrevented&&!t.isComposing&&this.formControlController.submit()})}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleClickableIconFocusIn(){this.isClickableIconFocused=!0}handleClickableIconFocusOut(){this.isClickableIconFocused=!1}isDecrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.min===void 0||this.min===null)return!1;let t=typeof this.min=="string"?parseFloat(this.min):this.min;return this.valueAsNumber<=t}isIncrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.max===void 0||this.max===null)return!1;let t=typeof this.max=="string"?parseFloat(this.max):this.max;return this.valueAsNumber>=t}handleStep(){this.handleInput(),this.input.focus()}handleStepUp(){this.stepUp(),this.handleStep()}handleStepDown(){this.stepDown(),this.handleStep()}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,e,i="none"){this.input.setSelectionRange(t,e,i)}setRangeText(t,e,i,a){this.input.setRangeText(t,e,i,a),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){var t;return(t=this.input)==null?void 0:t.checkValidity()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),description:this.hasSlotController.test("description"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,i=this.helpText?!0:!!t.helpText,a=this.clearable&&!this.readonly&&(typeof this.value=="number"||this.value.length>0),n=!!t.tooltip,l=t.left,h=this.value!==null&&String(this.value).length>0,u=this.floatingLabel&&e&&(this.hasFocus||h||this.isClickableIconFocused),m=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",b=this.size==="sm"?"text-sm":"text-base",y={disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[m],g=this.disabled||this.visuallyDisabled?"text-neutral-500":"icon-color",w={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],E={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],S=this.size==="lg"?this.floatingLabel?u?"py-3":"py-4":"py-2":this.floatingLabel?u?"py-2":"py-3":"py-1",z={sm:"left-[36px]",md:"left-[44px]",lg:"left-12"}[this.size];return p`<div part="form-control" class="${c((this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${(e||n)&&!this.floatingLabel?p`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c(e?"inline-block":"hidden",b,this.visuallyDisabled||this.disabled?"text-neutral-500":" form-control-color-text")}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${t.tooltip?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${c("relative w-full",this.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}"><div part="border" class="${c("absolute w-full h-full pointer-events-none border form-control-border-radius transition-[border] ease-in-out duration-medium hover:duration-fast",y)}"></div><div part="base" class="${c("px-4 flex flex-row items-center form-control-border-radius transition-colors ease-in-out duration-medium hover:duration-fast",this.floatingLabel&&"has-floating-label",!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:[@media(hover:hover)]:form-control--hover-color-background":"",this.readonly?"form-control--read-only-color-background":"bg-white",["disabled","visuallyDisabled"].includes(m)?"text-neutral-500":"text-black",["invalid","activeInvalid"].includes(m)&&"form-control--invalid-color-background",S)}">${t.left?p`<slot name="left" part="left" class="${c("inline-flex",this.size==="sm"?"mr-1":"mr-2",g,E)}"></slot>`:""} <input part="input" id="input" class="${c("min-w-0 flex-grow focus:outline-none bg-transparent",this.visuallyDisabled||this.disabled?"placeholder:text-neutral-500 cursor-not-allowed":"placeholder:text-neutral-700",this.size==="sm"?u?"h-4":"h-6":u?"h-6":"h-8",b,u&&"leading-none mt-4")}" type="${this.type==="password"&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${$(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${!this.floatingLabel||u?$(this.placeholder):""}" minlength="${$(this.minlength)}" maxlength="${$(this.maxlength)}" min="${$(this.min)}" max="${$(this.max)}" step="${$(this.step)}" .value="${Le(this.value)}" autocapitalize="${$(this.type==="password"?"off":this.autocapitalize)}" autocomplete="${$(this.autocomplete)}" autocorrect="${$(this.type==="password"?"off":this.autocorrect===void 0?void 0:this.autocorrect?"on":"off")}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${$(this.pattern)}" enterkeyhint="${$(this.enterkeyhint)}" inputmode="${$(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}"> ${e&&this.floatingLabel?p`<label part="form-control-floating-label" class="${c("pointer-events-none absolute",l?z:"left-4",!this.readonly&&"transition-all duration-medium ease-out",!u||!h&&(this.readonly||this.visuallyDisabled)?"top-1/2 -translate-y-1/2 form-control-color-text":this.size==="lg"?"top-2":"top-1")}" for="input" aria-hidden="${e?"false":"true"}"><span id="floating-label" class="${c("pointer-events-none leading-none",!this.readonly&&"transition-all duration-medium ease-out",!u||!h&&(this.readonly||this.visuallyDisabled)?b:"text-xs",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",u&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null} ${a?p`<button part="clear-button" class="${c("flex justify-center",w)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${c(this.disabled||this.visuallyDisabled?"text-neutral-500":"text-neutral-700",E)}" library="_internal" name="closing-round"></sd-icon></slot></button>`:""} ${this.passwordToggle&&this.type==="password"?p`<button aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" part="password-toggle-button" class="${c("flex items-center sd-interactive",w,this.floatingLabel&&!u&&"hide-password-toggle")}" type="button" @click="${this.handlePasswordToggle}" @mousedown="${this.handleClickableIconFocusIn}" @focus="${()=>this.handleClickableIconFocusIn()}" @blur="${this.handleClickableIconFocusOut}">${this.passwordVisible?p`<slot name="show-password-icon"><sd-icon class="${c(g,E)}" library="_internal" name="eye"></sd-icon></slot>`:p`<slot name="hide-password-icon"><sd-icon class="${c(g,E)}" library="_internal" name="eye-crossed-out"></sd-icon></slot>`}</button>`:""} ${(this.type==="date"||this.type==="datetime-local")&&!Hd?p`<sd-icon class="${c(g,w,E)}" library="_internal" name="calendar"></sd-icon>`:""} ${this.type==="time"?p`<sd-icon class="${c(g,w,E)}" library="_internal" name="clock"></sd-icon>`:""} ${this.type==="search"?p`<button class="${c("flex items-center sd-interactive",w)}" type="button" @click="${this.handleSearchClick}"><sd-icon class="${c(g,E)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-icon></button>`:""} ${this.showInvalidStyle?p`<sd-icon part="invalid-icon" class="${c("text-error",w,E)}" library="_internal" name="risk"></sd-icon>`:""} ${this.showValidStyle&&this.styleOnValid?p`<sd-icon class="${c("text-success flex-shrink-0",w,E)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-icon>`:""} ${t.right?p`<slot name="right" part="right" class="${c("inline-flex",g,w,E)}"></slot>`:""} ${this.type==="number"&&this.spinButtons?p`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${Ss({start:()=>this.handleStepDown(),end:()=>this.handleChange()})} tabindex="-1" @mousedown="${this.handleClickableIconFocusIn}" @focus="${()=>this.handleClickableIconFocusIn()}" @blur="${this.handleClickableIconFocusOut}"><slot name="decrement-number-stepper"><sd-icon library="_internal" name="minus-circle" label="Decrease value" class="${c(g,w,E)}"></sd-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${Ss({start:()=>this.handleStepUp(),end:()=>this.handleChange()})} tabindex="-1"><slot name="increment-number-stepper"><sd-icon library="_internal" name="plus-circle" label="Decrease value" class="${c(g,w,E)}"></sd-icon></slot></button></div>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm mt-1",i&&!this.showInvalidStyle?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!i||this.showInvalidStyle}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};I.styles=[...f.styles,x`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
226
|
+
:host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) :is(#label,#floating-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;display:none;-webkit-appearance:none}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-icon{color:rgba(var(--sd-color-text-neutral-500))}.hide-password-toggle{display:none}.has-floating-label input[type=date]:not(.has-value),.has-floating-label input[type=datetime-local]:not(.has-value),.has-floating-label input[type=time]:not(.has-value){color:transparent}.has-floating-label input[type=date]:focus,.has-floating-label input[type=datetime-local]:focus,.has-floating-label input[type=time]:focus{color:inherit}.icon-color{color:rgba(var(--sd-form-control-color-icon-fill))}`],o([v("#input")],I.prototype,"input",2),o([v("#invalid-message")],I.prototype,"invalidMessage",2),o([L()],I.prototype,"hasFocus",2),o([L()],I.prototype,"showValidStyle",2),o([L()],I.prototype,"showInvalidStyle",2),o([L()],I.prototype,"isClickableIconFocused",2),o([d({type:String,reflect:!0})],I.prototype,"type",2),o([d({type:String,reflect:!0})],I.prototype,"size",2),o([d({type:String,reflect:!0})],I.prototype,"inputmode",2),o([d()],I.prototype,"value",2),o([Nt()],I.prototype,"defaultValue",2),o([d({type:String,reflect:!0})],I.prototype,"placeholder",2),o([d({type:String,reflect:!0})],I.prototype,"label",2),o([d({type:String,attribute:"help-text",reflect:!0})],I.prototype,"helpText",2),o([d({type:Boolean,reflect:!0})],I.prototype,"clearable",2),o([d({type:Boolean,reflect:!0})],I.prototype,"disabled",2),o([d({type:Boolean,reflect:!0,attribute:"visually-disabled"})],I.prototype,"visuallyDisabled",2),o([d({type:Boolean,reflect:!0})],I.prototype,"readonly",2),o([d({attribute:"password-toggle",type:Boolean,reflect:!0})],I.prototype,"passwordToggle",2),o([d({attribute:"password-visible",type:Boolean,reflect:!0})],I.prototype,"passwordVisible",2),o([d({attribute:"spin-buttons",type:Boolean,reflect:!0})],I.prototype,"spinButtons",2),o([d({type:Number,reflect:!0})],I.prototype,"minlength",2),o([d({type:Number,reflect:!0})],I.prototype,"maxlength",2),o([d({reflect:!0})],I.prototype,"min",2),o([d({reflect:!0})],I.prototype,"max",2),o([d({type:String,reflect:!0})],I.prototype,"form",2),o([d({type:String,reflect:!0})],I.prototype,"name",2),o([d({type:String,reflect:!0})],I.prototype,"title",2),o([d({type:Boolean,reflect:!0})],I.prototype,"required",2),o([d({attribute:"floating-label",type:Boolean,reflect:!0})],I.prototype,"floatingLabel",2),o([d()],I.prototype,"pattern",2),o([d({reflect:!0})],I.prototype,"step",2),o([d({type:String,reflect:!0})],I.prototype,"autocapitalize",2),o([d({type:Boolean,reflect:!0,converter:{fromAttribute:t=>t!=="off",toAttribute:t=>t?"on":"off"}})],I.prototype,"autocorrect",2),o([d({reflect:!0})],I.prototype,"autocomplete",2),o([d({type:Boolean,reflect:!0})],I.prototype,"autofocus",2),o([d({type:String,reflect:!0})],I.prototype,"enterkeyhint",2),o([d({type:Boolean,reflect:!0,attribute:"style-on-valid"})],I.prototype,"styleOnValid",2),o([d({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],I.prototype,"spellcheck",2),o([C("disabled",{waitUntilFirstUpdate:!0})],I.prototype,"handleDisabledChange",1),o([C("step",{waitUntilFirstUpdate:!0})],I.prototype,"handleStepChange",1),o([C("value",{waitUntilFirstUpdate:!0})],I.prototype,"handleValueChange",1),o([C(["size","floatingLabel"])],I.prototype,"handleSizeChange",1),I=o([k("sd-input")],I);var Rt=class extends f{constructor(){super(...arguments);this.variant="main";this.state="default";this.animated=!1;this.notInteractive=!1;this.href="";this.label="";this.marker={cluster:`
|
|
227
227
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50">
|
|
228
228
|
<circle cx="25" cy="25" opacity="1" r="20" />
|
|
229
229
|
</svg>`,main:`
|
|
@@ -278,8 +278,8 @@ sd-button::part(base){display:flex;height:var(--sd-spacing-12);width:var(--sd-sp
|
|
|
278
278
|
:host{display:block}::slotted(*){margin:0}:host([variant=white]) .background:focus-within{background-color:rgba(var(--sd-color-background-white))}@supports (color:color-mix(in lab,red,red)){:host([variant=white]) .background:focus-within{background-color:color-mix(in oklab,rgba(var(--sd-color-background-white)) var(--sd-opacity-90),transparent)}}:host([variant=neutral-100]) .background:focus-within{background-color:rgba(var(--sd-color-background-neutral-100))}@supports (color:color-mix(in lab,red,red)){:host([variant=neutral-100]) .background:focus-within{background-color:color-mix(in oklab,rgba(var(--sd-color-background-neutral-100)) var(--sd-opacity-90),transparent)}}:host([variant=primary]) .background:focus-within{background-color:rgba(var(--sd-color-background-primary))}@supports (color:color-mix(in lab,red,red)){:host([variant=primary]) .background:focus-within{background-color:color-mix(in oklab,rgba(var(--sd-color-background-primary)) var(--sd-opacity-90),transparent)}}:host([variant=primary-100]) .background:focus-within{background-color:rgba(var(--sd-color-background-primary-100))}@supports (color:color-mix(in lab,red,red)){:host([variant=primary-100]) .background:focus-within{background-color:color-mix(in oklab,rgba(var(--sd-color-background-primary-100)) var(--sd-opacity-90),transparent)}}:host([variant=gradient-light]) .bg-gradient-to-t{--sd-color-background-white:var(--sd-informational-gradient--white-color-background, var(--sd-color-white))}:host([variant=gradient-dark]) .bg-gradient-to-t{--sd-color-background-primary-800:var(
|
|
279
279
|
--sd-informational-gradient--primary-800-color-background,
|
|
280
280
|
var(--sd-color-primary-800)
|
|
281
|
-
)}[part=toggle]{width:-moz-fit-content;width:fit-content;outline-color:transparent}:host([variant=gradient-dark]) [part=toggle]:focus-visible,:host([variant=primary]) [part=toggle]:focus-visible{outline-color:rgba(var(--sd-color-text-white))}`],o([d({type:String,reflect:!0})],ce.prototype,"variant",2),o([d({type:Boolean,reflect:!0})],ce.prototype,"open",2),o([v('[part="base"]')],ce.prototype,"teaserMedia",2),ce=o([k("sd-teaser-media")],ce);var N=class extends f{constructor(){super(...arguments);this.formControlController=new ft(this);this.hasSlotController=new O(this,"help-text","label");this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.title="";this.name="";this.value="";this.size="lg";this.label="";this.helpText="";this.placeholder="";this.rows=4;this.disabled=!1;this.visuallyDisabled=!1;this.readonly=!1;this.form="";this.required=!1;this.floatingLabel=!1;this.styleOnValid=!1;this.spellcheck=!0;this.defaultValue=""}get validity(){return this.textarea.validity}get validationMessage(){return this.textarea.validationMessage}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.setTextareaHeight()})}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.textarea.value,this.setTextareaHeight(),this.emit("sd-change")}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){if(this.visuallyDisabled){this.textarea.value=this.value;return}this.value=this.textarea.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}setTextareaHeight(){this.textarea.style.height=void 0}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}focus(t){this.textarea.focus(t)}blur(){this.textarea.blur()}select(){this.textarea.select()}scrollPosition(t){if(t){typeof t.top=="number"&&(this.textarea.scrollTop=t.top),typeof t.left=="number"&&(this.textarea.scrollLeft=t.left);return}return{top:this.textarea.scrollTop,left:this.textarea.scrollTop}}setSelectionRange(t,e,i="none"){this.textarea.setSelectionRange(t,e,i)}setRangeText(t,e,i,a){this.textarea.setRangeText(t,e,i,a),this.value!==this.textarea.value&&(this.value=this.textarea.value),this.value!==this.textarea.value&&(this.value=this.textarea.value,this.setTextareaHeight())}checkValidity(){var t;return(t=this.textarea)==null?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.textarea.reportValidity()}setCustomValidity(t){this.textarea.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,i=this.helpText?!0:!!t.helpText,a=!!t.tooltip,n=this.value!==null&&String(this.value).length>0,l=this.floatingLabel&&e&&(this.hasFocus&&!this.visuallyDisabled||n),h=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",u=this.size==="sm"?"text-sm":"text-base",m={sm:"text-base top-1",md:"text-lg top-2",lg:"text-xl top-2"}[this.size];return p`<div part="form-control" class="flex flex-col h-full text-left">${e&&!this.floatingLabel||a?p`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c(e?"inline-block":"hidden",u,this.visuallyDisabled||this.disabled?"text-neutral-500":" form-control-color-text")}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${t.tooltip?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${c("relative h-full w-full",this.disabled&&"cursor-not-allowed")}">${e&&this.floatingLabel?p`<label id="label" part="form-control-floating-label" class="${c("absolute left-4 z-20 transition-all duration-200 cursor-text",u,l?"top-2 text-xs":"top-2.5 form-control-color-text")}" for="input"><span class="${c("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",l&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}<div part="border" class="${c("absolute w-full h-full pointer-events-none border form-control-border-radius transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[h])}"></div><div part="base" class="${c("textarea h-full flex items-top form-control-border-radius group transition-colors duration-medium hover:duration-fast ease-in-out",this.floatingLabel&&"pt-6",{sm:"textarea-sm",md:"textarea-md",lg:"textarea-lg"}[this.size],!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:[@media(hover:hover)]:form-control--hover-color-background":"",this.readonly?"form-control--read-only-color-background":"bg-white",h==="disabled"||h==="visuallyDisabled"?"text-neutral-500":"text-black",["invalid","activeInvalid"].includes(h)&&"form-control--invalid-color-background")}"><textarea part="textarea" id="input" class="${c("ps-4 flex-grow focus:outline-none bg-transparent placeholder:text-neutral-700 resize-none group-has-[sd-icon]:pe-8",{sm:l?"pb-1":"py-2",md:l?"pb-1":"py-2",lg:l?"pb-2":"py-2"}[this.size],this.disabled&&"cursor-not-allowed",u)}" title="${this.title}" name="${$(this.name)}" .value="${Le(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${!this.floatingLabel||l?$(this.placeholder):""}" minlength="${$(this.minlength)}" maxlength="${$(this.maxlength)}" rows="${$(this.rows)}" autocapitalize="${$(this.autocapitalize)}" autocorrect="${$(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${$(this.spellcheck)}" enterkeyhint="${$(this.enterkeyhint)}" inputmode="${$(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle?p`<sd-icon class="${c("text-error absolute right-4 pointer-events-none",m)}" library="_internal" name="risk" part="invalid-icon"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-icon class="${c("text-success absolute right-4 pointer-events-none",m)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-icon>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm mt-1",i&&!this.showInvalidStyle?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!i||this.showInvalidStyle}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};N.styles=[...f.styles,x`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
282
|
-
:host{display:block;height:100%}:host textarea{scrollbar-gutter:stable}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([required]) #label::after{content:' *'}:host([visually-disabled]) textarea{caret-color:transparent}.no-scrollbar::-webkit-scrollbar{display:none}`],o([v("#input")],N.prototype,"textarea",2),o([v("#invalid-message")],N.prototype,"invalidMessage",2),o([L()],N.prototype,"hasFocus",2),o([L()],N.prototype,"showValidStyle",2),o([L()],N.prototype,"showInvalidStyle",2),o([d({type:String,reflect:!0})],N.prototype,"title",2),o([d({type:String,reflect:!0})],N.prototype,"name",2),o([d()],N.prototype,"value",2),o([d({type:String,reflect:!0})],N.prototype,"size",2),o([d({type:String,reflect:!0})],N.prototype,"label",2),o([d({type:String,attribute:"help-text",reflect:!0})],N.prototype,"helpText",2),o([d({type:String,reflect:!0})],N.prototype,"placeholder",2),o([d({type:Number,reflect:!0})],N.prototype,"rows",2),o([d({type:Boolean,reflect:!0})],N.prototype,"disabled",2),o([d({type:Boolean,reflect:!0,attribute:"visually-disabled"})],N.prototype,"visuallyDisabled",2),o([d({type:Boolean,reflect:!0})],N.prototype,"readonly",2),o([d({type:String,reflect:!0})],N.prototype,"form",2),o([d({type:Boolean,reflect:!0})],N.prototype,"required",2),o([d({attribute:"floating-label",type:Boolean,reflect:!0})],N.prototype,"floatingLabel",2),o([d({type:Number,reflect:!0})],N.prototype,"minlength",2),o([d({type:Number,reflect:!0})],N.prototype,"maxlength",2),o([d({type:String,reflect:!0})],N.prototype,"autocapitalize",2),o([d({type:
|
|
281
|
+
)}[part=toggle]{width:-moz-fit-content;width:fit-content;outline-color:transparent}:host([variant=gradient-dark]) [part=toggle]:focus-visible,:host([variant=primary]) [part=toggle]:focus-visible{outline-color:rgba(var(--sd-color-text-white))}`],o([d({type:String,reflect:!0})],ce.prototype,"variant",2),o([d({type:Boolean,reflect:!0})],ce.prototype,"open",2),o([v('[part="base"]')],ce.prototype,"teaserMedia",2),ce=o([k("sd-teaser-media")],ce);var N=class extends f{constructor(){super(...arguments);this.formControlController=new ft(this);this.hasSlotController=new O(this,"help-text","label");this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.title="";this.name="";this.value="";this.size="lg";this.label="";this.helpText="";this.placeholder="";this.rows=4;this.disabled=!1;this.visuallyDisabled=!1;this.readonly=!1;this.form="";this.required=!1;this.floatingLabel=!1;this.styleOnValid=!1;this.spellcheck=!0;this.defaultValue=""}get validity(){return this.textarea.validity}get validationMessage(){return this.textarea.validationMessage}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.setTextareaHeight()})}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.textarea.value,this.setTextareaHeight(),this.emit("sd-change")}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){if(this.visuallyDisabled){this.textarea.value=this.value;return}this.value=this.textarea.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}setTextareaHeight(){this.textarea.style.height=void 0}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}focus(t){this.textarea.focus(t)}blur(){this.textarea.blur()}select(){this.textarea.select()}scrollPosition(t){if(t){typeof t.top=="number"&&(this.textarea.scrollTop=t.top),typeof t.left=="number"&&(this.textarea.scrollLeft=t.left);return}return{top:this.textarea.scrollTop,left:this.textarea.scrollTop}}setSelectionRange(t,e,i="none"){this.textarea.setSelectionRange(t,e,i)}setRangeText(t,e,i,a){this.textarea.setRangeText(t,e,i,a),this.value!==this.textarea.value&&(this.value=this.textarea.value),this.value!==this.textarea.value&&(this.value=this.textarea.value,this.setTextareaHeight())}checkValidity(){var t;return(t=this.textarea)==null?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.textarea.reportValidity()}setCustomValidity(t){this.textarea.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,i=this.helpText?!0:!!t.helpText,a=!!t.tooltip,n=this.value!==null&&String(this.value).length>0,l=this.floatingLabel&&e&&(this.hasFocus&&!this.visuallyDisabled||n),h=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",u=this.size==="sm"?"text-sm":"text-base",m={sm:"text-base top-1",md:"text-lg top-2",lg:"text-xl top-2"}[this.size];return p`<div part="form-control" class="flex flex-col h-full text-left">${e&&!this.floatingLabel||a?p`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c(e?"inline-block":"hidden",u,this.visuallyDisabled||this.disabled?"text-neutral-500":" form-control-color-text")}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${t.tooltip?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${c("relative h-full w-full",this.disabled&&"cursor-not-allowed")}">${e&&this.floatingLabel?p`<label id="label" part="form-control-floating-label" class="${c("absolute left-4 z-20 transition-all duration-200 cursor-text",u,l?"top-2 text-xs":"top-2.5 form-control-color-text")}" for="input"><span class="${c("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",l&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}<div part="border" class="${c("absolute w-full h-full pointer-events-none border form-control-border-radius transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[h])}"></div><div part="base" class="${c("textarea h-full flex items-top form-control-border-radius group transition-colors duration-medium hover:duration-fast ease-in-out",this.floatingLabel&&"pt-6",{sm:"textarea-sm",md:"textarea-md",lg:"textarea-lg"}[this.size],!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:[@media(hover:hover)]:form-control--hover-color-background":"",this.readonly?"form-control--read-only-color-background":"bg-white",h==="disabled"||h==="visuallyDisabled"?"text-neutral-500":"text-black",["invalid","activeInvalid"].includes(h)&&"form-control--invalid-color-background")}"><textarea part="textarea" id="input" class="${c("ps-4 flex-grow focus:outline-none bg-transparent placeholder:text-neutral-700 resize-none group-has-[sd-icon]:pe-8",{sm:l?"pb-1":"py-2",md:l?"pb-1":"py-2",lg:l?"pb-2":"py-2"}[this.size],this.disabled&&"cursor-not-allowed",u)}" title="${this.title}" name="${$(this.name)}" .value="${Le(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${!this.floatingLabel||l?$(this.placeholder):""}" minlength="${$(this.minlength)}" maxlength="${$(this.maxlength)}" rows="${$(this.rows)}" autocapitalize="${$(this.autocapitalize)}" autocorrect="${$(this.autocorrect===void 0?void 0:this.autocorrect?"on":"off")}" ?autofocus="${this.autofocus}" spellcheck="${$(this.spellcheck)}" enterkeyhint="${$(this.enterkeyhint)}" inputmode="${$(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle?p`<sd-icon class="${c("text-error absolute right-4 pointer-events-none",m)}" library="_internal" name="risk" part="invalid-icon"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-icon class="${c("text-success absolute right-4 pointer-events-none",m)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-icon>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm mt-1",i&&!this.showInvalidStyle?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!i||this.showInvalidStyle}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};N.styles=[...f.styles,x`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
282
|
+
:host{display:block;height:100%}:host textarea{scrollbar-gutter:stable}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([required]) #label::after{content:' *'}:host([visually-disabled]) textarea{caret-color:transparent}.no-scrollbar::-webkit-scrollbar{display:none}`],o([v("#input")],N.prototype,"textarea",2),o([v("#invalid-message")],N.prototype,"invalidMessage",2),o([L()],N.prototype,"hasFocus",2),o([L()],N.prototype,"showValidStyle",2),o([L()],N.prototype,"showInvalidStyle",2),o([d({type:String,reflect:!0})],N.prototype,"title",2),o([d({type:String,reflect:!0})],N.prototype,"name",2),o([d()],N.prototype,"value",2),o([d({type:String,reflect:!0})],N.prototype,"size",2),o([d({type:String,reflect:!0})],N.prototype,"label",2),o([d({type:String,attribute:"help-text",reflect:!0})],N.prototype,"helpText",2),o([d({type:String,reflect:!0})],N.prototype,"placeholder",2),o([d({type:Number,reflect:!0})],N.prototype,"rows",2),o([d({type:Boolean,reflect:!0})],N.prototype,"disabled",2),o([d({type:Boolean,reflect:!0,attribute:"visually-disabled"})],N.prototype,"visuallyDisabled",2),o([d({type:Boolean,reflect:!0})],N.prototype,"readonly",2),o([d({type:String,reflect:!0})],N.prototype,"form",2),o([d({type:Boolean,reflect:!0})],N.prototype,"required",2),o([d({attribute:"floating-label",type:Boolean,reflect:!0})],N.prototype,"floatingLabel",2),o([d({type:Number,reflect:!0})],N.prototype,"minlength",2),o([d({type:Number,reflect:!0})],N.prototype,"maxlength",2),o([d({type:String,reflect:!0})],N.prototype,"autocapitalize",2),o([d({type:Boolean,reflect:!0,converter:{fromAttribute:t=>t!=="off",toAttribute:t=>t?"on":"off"}})],N.prototype,"autocorrect",2),o([d({reflect:!0})],N.prototype,"autocomplete",2),o([d({type:Boolean,reflect:!0})],N.prototype,"autofocus",2),o([d({type:String,reflect:!0})],N.prototype,"enterkeyhint",2),o([d({type:Boolean,reflect:!0,attribute:"style-on-valid"})],N.prototype,"styleOnValid",2),o([d({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],N.prototype,"spellcheck",2),o([d({type:String,reflect:!0})],N.prototype,"inputmode",2),o([Nt()],N.prototype,"defaultValue",2),o([C("disabled",{waitUntilFirstUpdate:!0})],N.prototype,"handleDisabledChange",1),o([C("rows",{waitUntilFirstUpdate:!0})],N.prototype,"handleRowsChange",1),o([C("value",{waitUntilFirstUpdate:!0})],N.prototype,"handleValueChange",1),o([C(["size","floatingLabel"])],N.prototype,"handleSizeChange",1),N=o([k("sd-textarea")],N);var he=class extends f{constructor(){super(...arguments);this.localize=new _(this);this.playing=!1;this.isBelowBreakpoint=!1;this.hasSlotController=new O(this,"[default]","play-icon","poster")}get poster(){let t=this.shadowRoot.querySelector("slot[name=poster]");return(t==null?void 0:t.assignedElements().length)>0?t.assignedElements()[0]:null}get video(){return this.querySelector("video")}async hidePoster(){this.poster instanceof HTMLImageElement&&(this.poster.style.opacity="0",await new Promise(t=>setTimeout(t,this.token("--sd-duration-medium",300))),this.poster.style.display="none")}setVideoInert(t){var e,i;t?(e=this.video)==null||e.setAttribute("inert",""):(i=this.video)==null||i.removeAttribute("inert")}play(){var t;this.emit("sd-play"),this.playing=!0,(t=this.video)==null||t.play(),this.hidePoster(),this.setVideoInert(!1)}handleKeydown(t){t instanceof KeyboardEvent&&(t.key==="Enter"||t.key===" ")&&(this.play(),setTimeout(()=>{var e;(e=this.video)==null||e.focus()}))}handleButtonResize(){this.hostEl.clientWidth<=414&&!this.isBelowBreakpoint&&(this.isBelowBreakpoint=!0),this.hostEl.clientWidth>414&&this.isBelowBreakpoint&&(this.isBelowBreakpoint=!1)}connectedCallback(){super.connectedCallback(),this.setVideoInert(!0),this.resizeObserver=new ResizeObserver(()=>this.handleButtonResize()),this.updateComplete.then(()=>{this.resizeObserver.observe(this.hostEl)})}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.hostEl)}render(){return p`<div part="base" class="cursor-pointer"><button part="play-button" aria-label="${this.localize.term("playVideo")}" tabindex="0" @click="${this.play}" @keydown="${this.handleKeydown}" class="${c(this.playing&&"pointer-events-none","group w-full h-full absolute top-0 left-0 z-30 sd-interactive outline-hidden focus-visible:focus-outline")}"><div part="play-button-bg" class="${c(this.playing?"opacity-0":"opacity-100",this.isBelowBreakpoint?"w-[48px] h-[48px]":"w-[96px] h-[96px]","absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 p-4 bg-white/75 rounded-full play-pause-transition group-focus-visible:outline-2 group-focus-visible:outline-offset-2")}"><slot name="play-icon" part="play-icon" class="${c(this.isBelowBreakpoint?"text-[2rem]":"text-[4rem]")}"><sd-icon id="default-play-icon" library="_internal" name="start"></sd-icon></slot></div></button> ${this.hasSlotController.test("poster")?p`<div part="poster-wrapper" class="absolute left-0 top-0 w-full z-10 overflow-hidden"><slot name="poster" role="presentation"></slot></div>`:null}<slot></slot></div>`}};he.styles=[...f.styles,x`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
283
283
|
:host{position:relative;display:inline-block;overflow:hidden}.play-pause-transition,::slotted([slot=poster]){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);transition-property:opacity,scale;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-medium, 300ms);transition-duration:var(--sd-duration-medium,300ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}#default-play-icon,::slotted([slot=play-icon]){position:absolute;top:calc(1 / 2 * 100%);left:calc(1 / 2 * 100%);--tw-translate-x:calc(calc(1 / 2 * 100%) * -1)!important;--tw-translate-y:calc(calc(1 / 2 * 100%) * -1)!important;translate:var(--tw-translate-x) var(--tw-translate-y)!important;transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}:has([part=play-button]:hover) ::slotted([slot=poster]){--tw-scale-x:110%!important;--tw-scale-y:110%!important;--tw-scale-z:110%!important;scale:var(--tw-scale-x) var(--tw-scale-y)!important}[part=play-button-bg]{color:rgba(var(--sd-video--play-button-color-icon-fill));background-color:rgba(var(--sd-video--play-button-color-background))}@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}@property --tw-ease{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}`],o([v("[part=base]")],he.prototype,"hostEl",2),o([d({type:Boolean,reflect:!0})],he.prototype,"playing",2),o([d({type:Boolean})],he.prototype,"isBelowBreakpoint",2),he=o([k("sd-video")],he);var Oe,xe,zr=class zr{constructor({name:r,initialValue:t,detect:e}){ue(this,Oe);ue(this,xe);this.name=r,this.initialValue=t!=null?t:!0,this.detect=e,zr.all[r]=this,Object.defineProperty(zr,r,{get(){return this.all[r].value},configurable:!0,enumerable:!0})}get valuePending(){return mt(this,Oe)!==void 0?mt(this,Oe):mt(this,xe)!==void 0?mt(this,xe):(Ye(this,xe,this.detect()),mt(this,xe)instanceof Promise?mt(this,xe).then(r=>Ye(this,Oe,r)):Ye(this,Oe,mt(this,xe)),mt(this,xe))}get value(){if(mt(this,Oe)!==void 0)return mt(this,Oe);let r=this.valuePending;return r instanceof Promise?this.initialValue:r}static detectAll(){return Promise.all(Object.values(zr.all).map(r=>r.valuePending))}};Oe=new WeakMap,xe=new WeakMap,Wt(zr,"all",{});var wt=zr;var Bd=new wt({name:"TRANSITIONRUN_EVENT_LOOP",detect(){let s=document.createElement("div");document.body.appendChild(s);let r="--bar-"+Date.now();return s.style.cssText=`${r}: 1; transition: ${r} 1ms step-start allow-discrete`,new Promise(t=>{let e=0;requestAnimationFrame(()=>{setTimeout(i=>t(e>1),50),s.addEventListener("transitionrun",i=>e++),s.style.setProperty(r,"2")})}).finally(()=>s.remove())}});var Nd=new wt({name:"UNREGISTERED_TRANSITION",detect(){let s=document.createElement("div");document.body.appendChild(s);let r="--foo-"+Date.now();return s.style.cssText=`${r}: 1; transition: ${r} 1ms step-start allow-discrete`,new Promise(t=>{requestAnimationFrame(()=>{setTimeout(e=>t(!0),30),s.addEventListener("transitionstart",e=>t(!1)),s.style.setProperty(r,"2")})}).finally(()=>s.remove())}});var za=new WeakMap;function As(s,r=globalThis.document){var e;r=(e=r.ownerDocument)!=null?e:r;let t=r.defaultView;if(r.adoptedStyleSheets){let i=new t.CSSStyleSheet;return i.replaceSync(s),Object.isFrozen(r.adoptedStyleSheets)?r.adoptedStyleSheets=[...r.adoptedStyleSheets,i]:r.adoptedStyleSheets.push(i),i}else{let i=za.get(r);return i||(i=r.head.appendChild(r.createElement("style")),za.set(r,i)),i.insertAdjacentText("beforeend",s),i.sheet}}function Os(s,r=globalThis.document){let t=r.createElement("div");r.body.append(t);let e="foo(bar)";t.style.setProperty(s,e);let i=getComputedStyle(t).getPropertyValue(s),a=!0;if(i===e){let n=t.appendChild(r.createElement("div"));a=getComputedStyle(n).getPropertyValue(s)!==e}return t.remove(),a}var Sa={"<angle>":"0deg","<color>":"transparent","<custom-ident>":"none","<image>":"linear-gradient(transparent 0% 100%)","<integer>":"0","<length>":"0px","<length-percentage>":"0px","<number>":"0","<percentage>":"0%","<resolution>":"1dppx","<string>":"''","<time>":"0s","<transform-function>":"scale(1)","<transform-list>":"scale(1)","<url>":"url('')"},Ma=new Map;function Sr(s,r={},t=globalThis.document){var n;let e=Ma.get(t);if(!s.startsWith("--")||e&&s in e||Os(s,t))return;let i={syntax:r.syntax||"*",inherits:(n=r.inherits)!=null?n:!0};r.initialValue!==void 0?i.initialValue=r.initialValue:i.syntax!=="*"&&i.syntax in Sa&&(i.initialValue=Sa[i.syntax]);let a=As(`@layer style-observer-registered-properties {
|
|
284
284
|
@property ${s} {
|
|
285
285
|
syntax: "${i.syntax}";
|
package/cdn/solid-components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ue}from"./chunks/chunk.C45254AN.js";import"./chunks/chunk.HAL7R4WT.js";import{a as ee}from"./chunks/chunk.4QZMOBX3.js";import{a as oe}from"./chunks/chunk.DIDMWRN3.js";import{a as re}from"./chunks/chunk.
|
|
1
|
+
import{a as ue}from"./chunks/chunk.C45254AN.js";import"./chunks/chunk.HAL7R4WT.js";import{a as ee}from"./chunks/chunk.4QZMOBX3.js";import{a as oe}from"./chunks/chunk.DIDMWRN3.js";import{a as re}from"./chunks/chunk.2MPVWXFB.js";import{a as te}from"./chunks/chunk.CWSVXPYD.js";import{a as ae}from"./chunks/chunk.KR27MICN.js";import{a as K}from"./chunks/chunk.LVATN3YW.js";import{a as U}from"./chunks/chunk.4MY3PWSN.js";import{a as W}from"./chunks/chunk.IZCKJLZR.js";import{a as X}from"./chunks/chunk.36YZDWQH.js";import{a as Y}from"./chunks/chunk.LICVZSAH.js";import{a as Z}from"./chunks/chunk.7XY6DMAY.js";import{a as _}from"./chunks/chunk.7LHRDGWP.js";import{a as $}from"./chunks/chunk.JI2XVLZH.js";import{a as Q}from"./chunks/chunk.SWPN5WUJ.js";import{a as V}from"./chunks/chunk.47KQZYJR.js";import{a as H}from"./chunks/chunk.NICDKFPS.js";import{a as q}from"./chunks/chunk.WZSNE2FO.js";import{a as j}from"./chunks/chunk.XPALAZ3K.js";import"./chunks/chunk.IVHEBGOY.js";import{a as y}from"./chunks/chunk.RLTO5J3E.js";import{a as z}from"./chunks/chunk.5ITG6KGD.js";import{a as J}from"./chunks/chunk.JURMXI5Y.js";import{a as P}from"./chunks/chunk.ZXQQJBCT.js";import{a as v}from"./chunks/chunk.XIIQ37KS.js";import{a as N}from"./chunks/chunk.MHW6ZP4T.js";import{a as O}from"./chunks/chunk.QTPFQGR7.js";import{a as E}from"./chunks/chunk.UY5TXYXC.js";import{a as F}from"./chunks/chunk.SKS4G5SG.js";import{a as M}from"./chunks/chunk.X2QW55HD.js";import{a as R}from"./chunks/chunk.D7PE6JKX.js";import{a as A}from"./chunks/chunk.U5LYN6TY.js";import{a as w}from"./chunks/chunk.KZ5SFF6G.js";import{a as L}from"./chunks/chunk.NFDBY4LL.js";import"./chunks/chunk.DSKB3SEU.js";import"./chunks/chunk.ICEC5PGK.js";import{a as G}from"./chunks/chunk.ZXMU6GLZ.js";import{a as I}from"./chunks/chunk.YL7463TI.js";import"./chunks/chunk.WWGARXPI.js";import"./chunks/chunk.23WKPZET.js";import{a as h}from"./chunks/chunk.GHSIC6MA.js";import{a as B}from"./chunks/chunk.NATZPKHW.js";import{a as C}from"./chunks/chunk.IWKYZ6J2.js";import{a as D}from"./chunks/chunk.QW2U4ORE.js";import{a as b}from"./chunks/chunk.6WQRLB7U.js";import"./chunks/chunk.SAEYIL5V.js";import"./chunks/chunk.IF6Y3ILD.js";import{a as T}from"./chunks/chunk.HBXGLINC.js";import{a as k}from"./chunks/chunk.3H5XUPF5.js";import"./chunks/chunk.54DO3JVH.js";import{a as g}from"./chunks/chunk.64SUNU54.js";import"./chunks/chunk.ERP45OHF.js";import"./chunks/chunk.X2GM34WQ.js";import"./chunks/chunk.W7A3TU2Z.js";import{a as u}from"./chunks/chunk.ZAB7A5W7.js";import{a as l}from"./chunks/chunk.5F5NZQB2.js";import{a as x}from"./chunks/chunk.NJ5CEN2R.js";import{a as s}from"./chunks/chunk.J5C22TF2.js";import{a as m}from"./chunks/chunk.XY6LAPFB.js";import{a as i}from"./chunks/chunk.UBUSZ4VB.js";import{a as S}from"./chunks/chunk.UTBC4DI6.js";import"./chunks/chunk.KOMME47J.js";import{a as c}from"./chunks/chunk.V3PA35KW.js";import"./chunks/chunk.BJBQEPZV.js";import"./chunks/chunk.EOXYPQZI.js";import"./chunks/chunk.MHWW3RZB.js";import{a as n}from"./chunks/chunk.2XJ2J3VL.js";import"./chunks/chunk.CBQWVOOS.js";import{a as r}from"./chunks/chunk.UN7DL2MN.js";import{a as o}from"./chunks/chunk.YG4OTB7M.js";import{a}from"./chunks/chunk.PNRCMW5N.js";import"./chunks/chunk.D4E5ZIRW.js";import{a as p}from"./chunks/chunk.K6TOCFIN.js";import{a as f}from"./chunks/chunk.6GDQK5O5.js";import"./chunks/chunk.I2H6CZK5.js";import"./chunks/chunk.O7KFGYFO.js";import"./chunks/chunk.TXP36Z3M.js";import"./chunks/chunk.3L472FD4.js";import{a as d}from"./chunks/chunk.ROU5X4FC.js";import{a as t}from"./chunks/chunk.XNB5UHRT.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{a as e}from"./chunks/chunk.PJ4AHTMH.js";import"./chunks/chunk.W5O4FM6B.js";import"./chunks/chunk.QQD62QOV.js";import{d as de,e as fe}from"./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{a as pe}from"./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.YAUFTHOR.js";import"./chunks/chunk.OBAEIKIV.js";import"./chunks/chunk.W4QBFD6E.js";import"./chunks/chunk.WNP2V63C.js";import"./chunks/chunk.6EV4YU6C.js";export{pe as LocalizeController,o as SdAccordion,r as SdAccordionGroup,a as SdAnimation,p as SdAudio,u as SdBadge,l as SdBrandshape,x as SdBreadcrumb,i as SdBreadcrumbItem,d as SdButton,c as SdCarousel,n as SdCarouselItem,b as SdCheckbox,T as SdCheckboxGroup,k as SdCombobox,I as SdDatepicker,h as SdDialog,B as SdDivider,f as SdDrawer,s as SdDropdown,C as SdExpandable,D as SdFlipcard,G as SdHeader,e as SdIcon,M as SdInclude,R as SdInput,S as SdLink,t as SdLoader,A as SdMapMarker,w as SdMenu,L as SdMenuItem,P as SdNavigationItem,v as SdNotification,N as SdOptgroup,O as SdOption,m as SdPopup,E as SdProgressBar,F as SdQuickfact,H as SdRadio,Q as SdRadioButton,V as SdRadioGroup,q as SdRange,y as SdRangeTick,z as SdScrollable,J as SdSelect,K as SdSkeleton,U as SdSpinner,W as SdStep,X as SdStepGroup,Y as SdSwitch,Z as SdTab,_ as SdTabGroup,$ as SdTabPanel,g as SdTag,ee as SdTeaser,oe as SdTeaserMedia,re as SdTextarea,te as SdThemeListener,j as SdTooltip,ae as SdVideo,de as registerIconLibrary,ue as setupAutocomplete,fe as unregisterIconLibrary};
|