@solid-design-system/components 6.16.5 → 6.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/chunks/{chunk.FEAXOG7O.js → chunk.2NFPITWL.js} +1 -1
- package/cdn/chunks/{chunk.A2RFNZUI.js → chunk.2VSOKOU7.js} +1 -1
- package/cdn/chunks/{chunk.HLHMPYHS.js → chunk.34KJWEAT.js} +1 -1
- package/cdn/chunks/{chunk.JHFM7KUH.js → chunk.3XF5CK52.js} +1 -1
- package/cdn/chunks/{chunk.VC6JNTW2.js → chunk.43NCTRGR.js} +1 -1
- package/cdn/chunks/{chunk.XDDAXBEN.js → chunk.4MDREN2Q.js} +1 -1
- package/cdn/chunks/{chunk.CX5IPEVT.js → chunk.52HC3R2A.js} +1 -1
- package/cdn/chunks/{chunk.CCNRQLG6.js → chunk.73EQQAX5.js} +1 -1
- package/cdn/chunks/{chunk.RZLPEVBG.js → chunk.7HCH5G2S.js} +1 -1
- package/cdn/chunks/{chunk.7X7C3TVK.js → chunk.AC5QQ4OU.js} +1 -1
- package/cdn/chunks/chunk.AWJGLIES.js +26 -0
- package/cdn/chunks/{chunk.YY4JMXTS.js → chunk.BAJVRYDX.js} +1 -1
- package/cdn/chunks/{chunk.ELZMOANU.js → chunk.BKFJJQT5.js} +1 -1
- package/cdn/chunks/{chunk.BURXWAXN.js → chunk.BPRWKCPD.js} +1 -1
- package/cdn/chunks/{chunk.3S7LCENC.js → chunk.CEZWUA55.js} +1 -1
- package/cdn/chunks/{chunk.GQTD57NE.js → chunk.CONM2MBL.js} +1 -1
- package/cdn/chunks/{chunk.CSVJ5WK2.js → chunk.CU36IOYF.js} +1 -1
- package/cdn/chunks/{chunk.ZBE6FUBE.js → chunk.CYDEZALR.js} +1 -1
- package/cdn/chunks/{chunk.BZ4RCXT2.js → chunk.DDIFOIPF.js} +1 -1
- package/cdn/chunks/{chunk.AMY757PV.js → chunk.DK7LXD4O.js} +1 -1
- package/cdn/chunks/{chunk.K6GLS6QL.js → chunk.EGODNGZX.js} +1 -1
- package/cdn/chunks/{chunk.WR5GB2RK.js → chunk.F2ZXRPTA.js} +1 -1
- package/cdn/chunks/{chunk.R2Q62L3N.js → chunk.F6GDTT5V.js} +1 -1
- package/cdn/chunks/{chunk.BZLEZINT.js → chunk.HIIBKOIQ.js} +1 -1
- package/cdn/chunks/{chunk.X6WPUO3U.js → chunk.IPISEWSC.js} +1 -1
- package/cdn/chunks/{chunk.4BTXQAGS.js → chunk.J3WCN3OW.js} +1 -1
- package/cdn/chunks/{chunk.I3AKT6BV.js → chunk.J4H3FNN2.js} +1 -1
- package/cdn/chunks/{chunk.YA5ZEOKP.js → chunk.JGEE2Y7Q.js} +1 -1
- package/cdn/chunks/{chunk.AWT6CEDB.js → chunk.KDQ7MMNF.js} +1 -1
- package/cdn/chunks/{chunk.OFLN42UZ.js → chunk.KVATZ42W.js} +1 -1
- package/cdn/chunks/{chunk.LMXWTQJ5.js → chunk.KX2KMM7G.js} +1 -1
- package/cdn/chunks/{chunk.WPSLP7SF.js → chunk.LCFZAFOA.js} +1 -1
- package/cdn/chunks/{chunk.ZFJ3T7TZ.js → chunk.LP5REFGB.js} +1 -1
- package/cdn/chunks/{chunk.JYLCWE5C.js → chunk.M3LARW7C.js} +1 -1
- package/cdn/chunks/{chunk.6KFFDNWZ.js → chunk.MAUMBI7S.js} +1 -1
- package/cdn/chunks/{chunk.3MGPNQP3.js → chunk.NQQE3723.js} +1 -1
- package/cdn/chunks/{chunk.QAY6EJHY.js → chunk.O3MJCVRH.js} +1 -1
- package/cdn/chunks/{chunk.VT4WT4Y5.js → chunk.OSIJGCSL.js} +1 -1
- package/cdn/chunks/{chunk.DJZKZO3Y.js → chunk.PUBA4OL2.js} +1 -1
- package/cdn/chunks/{chunk.IFICRO7C.js → chunk.QU2LMJKO.js} +1 -1
- package/cdn/chunks/{chunk.ODC5ODPF.js → chunk.RGNM3C6B.js} +1 -1
- package/cdn/chunks/{chunk.3JB5EY7E.js → chunk.RHKUQ6PG.js} +1 -1
- package/cdn/chunks/{chunk.4EDRKPMV.js → chunk.RUEPQ7JR.js} +1 -1
- package/cdn/chunks/{chunk.X4UWQNTP.js → chunk.SQJQVREY.js} +1 -1
- package/cdn/chunks/{chunk.FBXBQWU2.js → chunk.SY2PEN3P.js} +1 -1
- package/cdn/chunks/{chunk.EXWRCLBQ.js → chunk.TDZTDQZS.js} +1 -1
- package/cdn/chunks/chunk.UJLYQCPB.js +2 -0
- package/cdn/chunks/{chunk.2B2B5P3U.js → chunk.UXG7OXPX.js} +1 -1
- package/cdn/chunks/{chunk.GLO2H56S.js → chunk.UY6VLTLR.js} +1 -1
- package/cdn/chunks/{chunk.OXXPH6YP.js → chunk.VCGI4U7C.js} +1 -1
- package/cdn/chunks/{chunk.ZRHL55WX.js → chunk.VR6ZZ26O.js} +1 -1
- package/cdn/chunks/{chunk.BMADIO4C.js → chunk.W2PGHELN.js} +1 -1
- package/cdn/chunks/{chunk.EP63MBIC.js → chunk.WDVIRLIQ.js} +1 -1
- package/cdn/chunks/{chunk.FT2B3D2H.js → chunk.WMHFYQLW.js} +1 -1
- package/cdn/chunks/{chunk.GS5LOZLS.js → chunk.WXUAJPDY.js} +1 -1
- package/cdn/chunks/{chunk.7YCGT7U6.js → chunk.X5MVJJZR.js} +1 -1
- package/cdn/chunks/{chunk.5BES77F3.js → chunk.XH55HYAO.js} +1 -1
- package/cdn/chunks/{chunk.ZLJ4GRUR.js → chunk.XPMVJDAZ.js} +1 -1
- package/cdn/chunks/chunk.YHSSQHIS.js +2 -0
- package/cdn/chunks/{chunk.E4XIKDUB.js → chunk.ZR4MGCMK.js} +1 -1
- package/cdn/components/accordion/accordion.js +1 -1
- package/cdn/components/accordion-group/accordion-group.js +1 -1
- package/cdn/components/animation/animation.js +1 -1
- package/cdn/components/audio/audio.js +1 -1
- package/cdn/components/badge/badge.js +1 -1
- package/cdn/components/brandshape/brandshape.js +1 -1
- package/cdn/components/breadcrumb/breadcrumb.js +1 -1
- package/cdn/components/breadcrumb-item/breadcrumb-item.js +1 -1
- package/cdn/components/button/button.js +1 -1
- package/cdn/components/button-group/button-group.js +1 -1
- package/cdn/components/carousel/carousel.js +1 -1
- package/cdn/components/carousel-item/carousel-item.js +1 -1
- package/cdn/components/checkbox/checkbox.js +1 -1
- package/cdn/components/checkbox-group/checkbox-group.js +1 -1
- package/cdn/components/combobox/combobox.js +1 -1
- package/cdn/components/datepicker/datepicker.js +1 -1
- package/cdn/components/dialog/dialog.js +1 -1
- package/cdn/components/divider/divider.js +1 -1
- package/cdn/components/drawer/drawer.js +1 -1
- package/cdn/components/dropdown/dropdown.js +1 -1
- package/cdn/components/expandable/expandable.js +1 -1
- package/cdn/components/flipcard/flipcard.js +1 -1
- package/cdn/components/header/header.js +1 -1
- package/cdn/components/icon/icon.js +1 -1
- package/cdn/components/include/include.js +1 -1
- package/cdn/components/input/input.js +1 -1
- package/cdn/components/link/link.js +1 -1
- package/cdn/components/loader/loader.js +1 -1
- package/cdn/components/map-marker/map-marker.js +1 -1
- package/cdn/components/menu/menu.js +1 -1
- package/cdn/components/menu-item/menu-item.js +1 -1
- package/cdn/components/navigation-item/navigation-item.js +1 -1
- package/cdn/components/notification/notification.js +1 -1
- package/cdn/components/optgroup/optgroup.js +1 -1
- package/cdn/components/option/option.js +1 -1
- package/cdn/components/popup/popup.js +1 -1
- package/cdn/components/quickfact/quickfact.js +1 -1
- package/cdn/components/radio/radio.js +1 -1
- package/cdn/components/radio-button/radio-button.js +1 -1
- package/cdn/components/radio-group/radio-group.js +1 -1
- package/cdn/components/range/range.js +1 -1
- package/cdn/components/range-tick/range-tick.js +1 -1
- package/cdn/components/scrollable/scrollable.js +1 -1
- package/cdn/components/select/select.js +1 -1
- package/cdn/components/skeleton/skeleton.js +1 -1
- package/cdn/components/spinner/spinner.js +1 -1
- package/cdn/components/step/step.d.ts +3 -2
- package/cdn/components/step/step.js +1 -1
- package/cdn/components/step-group/step-group.d.ts +3 -2
- package/cdn/components/step-group/step-group.js +1 -1
- package/cdn/components/switch/switch.js +1 -1
- package/cdn/components/tab/tab.js +1 -1
- package/cdn/components/tab-group/tab-group.js +1 -1
- package/cdn/components/tab-panel/tab-panel.js +1 -1
- package/cdn/components/tag/tag.js +1 -1
- package/cdn/components/teaser/teaser.js +1 -1
- package/cdn/components/teaser-media/teaser-media.js +1 -1
- package/cdn/components/textarea/textarea.js +1 -1
- package/cdn/components/theme-listener/theme-listener.js +1 -1
- package/cdn/components/tooltip/tooltip.js +1 -1
- package/cdn/components/video/video.js +1 -1
- package/cdn/custom-elements.json +5 -5
- package/cdn/solid-components.bundle.js +20 -20
- package/cdn/solid-components.iife.js +20 -20
- package/cdn/solid-components.js +1 -1
- package/cdn/utilities/autocomplete-config.js +1 -1
- package/cdn/vscode.html-custom-data.json +2 -2
- package/cdn/web-types.json +5 -5
- package/cdn-versioned/chunks/{chunk.FEAXOG7O.js → chunk.2NFPITWL.js} +2 -2
- package/cdn-versioned/chunks/{chunk.A2RFNZUI.js → chunk.2VSOKOU7.js} +2 -2
- package/cdn-versioned/chunks/{chunk.HLHMPYHS.js → chunk.34KJWEAT.js} +2 -2
- package/cdn-versioned/chunks/{chunk.JHFM7KUH.js → chunk.3XF5CK52.js} +2 -2
- package/cdn-versioned/chunks/{chunk.VC6JNTW2.js → chunk.43NCTRGR.js} +2 -2
- package/cdn-versioned/chunks/{chunk.XDDAXBEN.js → chunk.4MDREN2Q.js} +3 -3
- package/cdn-versioned/chunks/{chunk.CX5IPEVT.js → chunk.52HC3R2A.js} +2 -2
- package/cdn-versioned/chunks/chunk.52TRFRJK.js +2 -2
- package/cdn-versioned/chunks/{chunk.CCNRQLG6.js → chunk.73EQQAX5.js} +2 -2
- package/cdn-versioned/chunks/{chunk.RZLPEVBG.js → chunk.7HCH5G2S.js} +2 -2
- package/cdn-versioned/chunks/{chunk.7X7C3TVK.js → chunk.AC5QQ4OU.js} +5 -5
- package/cdn-versioned/chunks/chunk.AWJGLIES.js +26 -0
- package/cdn-versioned/chunks/{chunk.YY4JMXTS.js → chunk.BAJVRYDX.js} +2 -2
- package/cdn-versioned/chunks/{chunk.ELZMOANU.js → chunk.BKFJJQT5.js} +2 -2
- package/cdn-versioned/chunks/{chunk.BURXWAXN.js → chunk.BPRWKCPD.js} +2 -2
- package/cdn-versioned/chunks/{chunk.3S7LCENC.js → chunk.CEZWUA55.js} +2 -2
- package/cdn-versioned/chunks/{chunk.GQTD57NE.js → chunk.CONM2MBL.js} +2 -2
- package/cdn-versioned/chunks/{chunk.CSVJ5WK2.js → chunk.CU36IOYF.js} +2 -2
- package/cdn-versioned/chunks/{chunk.ZBE6FUBE.js → chunk.CYDEZALR.js} +2 -2
- package/cdn-versioned/chunks/{chunk.BZ4RCXT2.js → chunk.DDIFOIPF.js} +2 -2
- package/cdn-versioned/chunks/{chunk.AMY757PV.js → chunk.DK7LXD4O.js} +2 -2
- package/cdn-versioned/chunks/{chunk.K6GLS6QL.js → chunk.EGODNGZX.js} +2 -2
- package/cdn-versioned/chunks/{chunk.WR5GB2RK.js → chunk.F2ZXRPTA.js} +2 -2
- package/cdn-versioned/chunks/{chunk.R2Q62L3N.js → chunk.F6GDTT5V.js} +2 -2
- package/cdn-versioned/chunks/{chunk.BZLEZINT.js → chunk.HIIBKOIQ.js} +2 -2
- package/cdn-versioned/chunks/{chunk.X6WPUO3U.js → chunk.IPISEWSC.js} +2 -2
- package/cdn-versioned/chunks/{chunk.4BTXQAGS.js → chunk.J3WCN3OW.js} +2 -2
- package/cdn-versioned/chunks/{chunk.I3AKT6BV.js → chunk.J4H3FNN2.js} +2 -2
- package/cdn-versioned/chunks/{chunk.YA5ZEOKP.js → chunk.JGEE2Y7Q.js} +2 -2
- package/cdn-versioned/chunks/{chunk.AWT6CEDB.js → chunk.KDQ7MMNF.js} +2 -2
- package/cdn-versioned/chunks/{chunk.OFLN42UZ.js → chunk.KVATZ42W.js} +2 -2
- package/cdn-versioned/chunks/{chunk.LMXWTQJ5.js → chunk.KX2KMM7G.js} +2 -2
- package/cdn-versioned/chunks/{chunk.WPSLP7SF.js → chunk.LCFZAFOA.js} +2 -2
- package/cdn-versioned/chunks/{chunk.ZFJ3T7TZ.js → chunk.LP5REFGB.js} +10 -10
- package/cdn-versioned/chunks/{chunk.JYLCWE5C.js → chunk.M3LARW7C.js} +2 -2
- package/cdn-versioned/chunks/{chunk.6KFFDNWZ.js → chunk.MAUMBI7S.js} +3 -3
- package/cdn-versioned/chunks/{chunk.3MGPNQP3.js → chunk.NQQE3723.js} +2 -2
- package/cdn-versioned/chunks/{chunk.QAY6EJHY.js → chunk.O3MJCVRH.js} +2 -2
- package/cdn-versioned/chunks/{chunk.VT4WT4Y5.js → chunk.OSIJGCSL.js} +2 -2
- package/cdn-versioned/chunks/{chunk.DJZKZO3Y.js → chunk.PUBA4OL2.js} +2 -2
- package/cdn-versioned/chunks/{chunk.IFICRO7C.js → chunk.QU2LMJKO.js} +2 -2
- package/cdn-versioned/chunks/chunk.RAP66B6O.js +1 -1
- package/cdn-versioned/chunks/{chunk.ODC5ODPF.js → chunk.RGNM3C6B.js} +2 -2
- package/cdn-versioned/chunks/{chunk.3JB5EY7E.js → chunk.RHKUQ6PG.js} +2 -2
- package/cdn-versioned/chunks/{chunk.4EDRKPMV.js → chunk.RUEPQ7JR.js} +2 -2
- package/cdn-versioned/chunks/{chunk.X4UWQNTP.js → chunk.SQJQVREY.js} +5 -5
- package/cdn-versioned/chunks/{chunk.FBXBQWU2.js → chunk.SY2PEN3P.js} +2 -2
- package/cdn-versioned/chunks/{chunk.EXWRCLBQ.js → chunk.TDZTDQZS.js} +2 -2
- package/cdn-versioned/chunks/chunk.UJLYQCPB.js +2 -0
- package/cdn-versioned/chunks/{chunk.2B2B5P3U.js → chunk.UXG7OXPX.js} +2 -2
- package/cdn-versioned/chunks/{chunk.GLO2H56S.js → chunk.UY6VLTLR.js} +2 -2
- package/cdn-versioned/chunks/{chunk.OXXPH6YP.js → chunk.VCGI4U7C.js} +2 -2
- package/cdn-versioned/chunks/{chunk.ZRHL55WX.js → chunk.VR6ZZ26O.js} +2 -2
- package/cdn-versioned/chunks/{chunk.BMADIO4C.js → chunk.W2PGHELN.js} +2 -2
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/{chunk.EP63MBIC.js → chunk.WDVIRLIQ.js} +2 -2
- package/cdn-versioned/chunks/{chunk.FT2B3D2H.js → chunk.WMHFYQLW.js} +3 -3
- package/cdn-versioned/chunks/{chunk.GS5LOZLS.js → chunk.WXUAJPDY.js} +3 -3
- package/cdn-versioned/chunks/{chunk.7YCGT7U6.js → chunk.X5MVJJZR.js} +2 -2
- package/cdn-versioned/chunks/{chunk.5BES77F3.js → chunk.XH55HYAO.js} +2 -2
- package/cdn-versioned/chunks/{chunk.ZLJ4GRUR.js → chunk.XPMVJDAZ.js} +2 -2
- package/cdn-versioned/chunks/chunk.YHSSQHIS.js +2 -0
- package/cdn-versioned/chunks/chunk.YPTZDABK.js +1 -1
- package/cdn-versioned/chunks/{chunk.E4XIKDUB.js → chunk.ZR4MGCMK.js} +2 -2
- package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
- package/cdn-versioned/components/accordion/accordion.js +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.js +1 -1
- package/cdn-versioned/components/animation/animation.d.ts +1 -1
- package/cdn-versioned/components/animation/animation.js +1 -1
- package/cdn-versioned/components/audio/audio.d.ts +1 -1
- package/cdn-versioned/components/audio/audio.js +1 -1
- package/cdn-versioned/components/badge/badge.d.ts +1 -1
- package/cdn-versioned/components/badge/badge.js +1 -1
- package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/cdn-versioned/components/brandshape/brandshape.js +1 -1
- package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/cdn-versioned/components/breadcrumb/breadcrumb.js +1 -1
- package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.js +1 -1
- package/cdn-versioned/components/button/button.d.ts +1 -1
- package/cdn-versioned/components/button/button.js +1 -1
- package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
- package/cdn-versioned/components/button-group/button-group.js +1 -1
- package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
- package/cdn-versioned/components/carousel/carousel.js +1 -1
- package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/cdn-versioned/components/carousel-item/carousel-item.js +1 -1
- package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/cdn-versioned/components/checkbox/checkbox.js +1 -1
- package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/cdn-versioned/components/checkbox-group/checkbox-group.js +1 -1
- package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
- package/cdn-versioned/components/combobox/combobox.js +1 -1
- package/cdn-versioned/components/datepicker/datepicker.d.ts +1 -1
- package/cdn-versioned/components/datepicker/datepicker.js +1 -1
- package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
- package/cdn-versioned/components/dialog/dialog.js +1 -1
- package/cdn-versioned/components/divider/divider.d.ts +1 -1
- package/cdn-versioned/components/divider/divider.js +1 -1
- package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
- package/cdn-versioned/components/drawer/drawer.js +1 -1
- package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/cdn-versioned/components/dropdown/dropdown.js +1 -1
- package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
- package/cdn-versioned/components/expandable/expandable.js +1 -1
- package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/cdn-versioned/components/flipcard/flipcard.js +1 -1
- package/cdn-versioned/components/header/header.d.ts +1 -1
- package/cdn-versioned/components/header/header.js +1 -1
- package/cdn-versioned/components/icon/icon.d.ts +1 -1
- package/cdn-versioned/components/icon/icon.js +1 -1
- package/cdn-versioned/components/include/include.d.ts +1 -1
- package/cdn-versioned/components/include/include.js +1 -1
- package/cdn-versioned/components/input/input.d.ts +1 -1
- package/cdn-versioned/components/input/input.js +1 -1
- package/cdn-versioned/components/link/link.d.ts +1 -1
- package/cdn-versioned/components/link/link.js +1 -1
- package/cdn-versioned/components/loader/loader.d.ts +1 -1
- package/cdn-versioned/components/loader/loader.js +1 -1
- package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/cdn-versioned/components/map-marker/map-marker.js +1 -1
- package/cdn-versioned/components/menu/menu.d.ts +1 -1
- package/cdn-versioned/components/menu/menu.js +1 -1
- package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
- package/cdn-versioned/components/menu-item/menu-item.js +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.js +1 -1
- package/cdn-versioned/components/notification/notification.d.ts +1 -1
- package/cdn-versioned/components/notification/notification.js +1 -1
- package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/cdn-versioned/components/optgroup/optgroup.js +1 -1
- package/cdn-versioned/components/option/option.d.ts +1 -1
- package/cdn-versioned/components/option/option.js +1 -1
- package/cdn-versioned/components/popup/popup.d.ts +1 -1
- package/cdn-versioned/components/popup/popup.js +1 -1
- package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/cdn-versioned/components/quickfact/quickfact.js +1 -1
- package/cdn-versioned/components/radio/radio.d.ts +1 -1
- package/cdn-versioned/components/radio/radio.js +1 -1
- package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/cdn-versioned/components/radio-button/radio-button.js +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/cdn-versioned/components/radio-group/radio-group.js +1 -1
- package/cdn-versioned/components/range/range.d.ts +1 -1
- package/cdn-versioned/components/range/range.js +1 -1
- package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/cdn-versioned/components/range-tick/range-tick.js +1 -1
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/scrollable/scrollable.js +1 -1
- package/cdn-versioned/components/select/select.d.ts +1 -1
- package/cdn-versioned/components/select/select.js +1 -1
- package/cdn-versioned/components/skeleton/skeleton.d.ts +1 -1
- package/cdn-versioned/components/skeleton/skeleton.js +1 -1
- package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
- package/cdn-versioned/components/spinner/spinner.js +1 -1
- package/cdn-versioned/components/step/step.d.ts +4 -3
- package/cdn-versioned/components/step/step.js +1 -1
- package/cdn-versioned/components/step-group/step-group.d.ts +4 -3
- package/cdn-versioned/components/step-group/step-group.js +1 -1
- package/cdn-versioned/components/switch/switch.d.ts +1 -1
- package/cdn-versioned/components/switch/switch.js +1 -1
- package/cdn-versioned/components/tab/tab.d.ts +1 -1
- package/cdn-versioned/components/tab/tab.js +1 -1
- package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/cdn-versioned/components/tab-group/tab-group.js +1 -1
- package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/cdn-versioned/components/tab-panel/tab-panel.js +1 -1
- package/cdn-versioned/components/tag/tag.d.ts +1 -1
- package/cdn-versioned/components/tag/tag.js +1 -1
- package/cdn-versioned/components/teaser/teaser.js +1 -1
- package/cdn-versioned/components/teaser-media/teaser-media.js +1 -1
- package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
- 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/theme-listener/theme-listener.js +1 -1
- package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/cdn-versioned/components/tooltip/tooltip.js +1 -1
- package/cdn-versioned/components/video/video.d.ts +1 -1
- package/cdn-versioned/components/video/video.js +1 -1
- package/cdn-versioned/custom-elements.json +249 -249
- package/cdn-versioned/internal/form.js +2 -2
- package/cdn-versioned/solid-components.bundle.js +82 -82
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +82 -82
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/utilities/autocomplete-config.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +109 -109
- package/cdn-versioned/web-types.json +161 -161
- package/dist/chunks/{chunk.27CORLGD.js → chunk.2RT2QZ7M.js} +1 -1
- package/dist/chunks/{chunk.OQ5QEVJF.js → chunk.2YPLPBHV.js} +1 -1
- package/dist/chunks/{chunk.4YGFM4I2.js → chunk.36VZHNCQ.js} +1 -1
- package/dist/chunks/{chunk.6WM4R2DA.js → chunk.3PNN625M.js} +1 -1
- package/dist/chunks/{chunk.5DLSMYYF.js → chunk.3PUYQYK7.js} +1 -1
- package/dist/chunks/{chunk.IRPULK4T.js → chunk.4V4TM346.js} +1 -1
- package/dist/chunks/{chunk.ZN4E3BW3.js → chunk.5QJLPDI3.js} +1 -1
- package/dist/chunks/{chunk.P6YK6F7T.js → chunk.5UOC4OZ4.js} +1 -1
- package/dist/chunks/{chunk.CDI4YMFV.js → chunk.76V2ISKC.js} +1 -1
- package/dist/chunks/{chunk.4FQGHIRS.js → chunk.7DSIPKKV.js} +1 -1
- package/dist/chunks/{chunk.PJ4LG3IZ.js → chunk.7P2REW5V.js} +1 -1
- package/dist/chunks/{chunk.YC3R5M35.js → chunk.7VNN27TI.js} +1 -1
- package/dist/chunks/{chunk.PO2OMSAQ.js → chunk.A372DMSH.js} +1 -1
- package/dist/chunks/{chunk.WV4VZLSM.js → chunk.A5JVBPWO.js} +1 -1
- package/dist/chunks/{chunk.JCFYB72C.js → chunk.A65XKMJZ.js} +1 -1
- package/dist/chunks/{chunk.X7XDUKGF.js → chunk.B76GUA7Y.js} +1 -1
- package/dist/chunks/{chunk.J2WMB4UM.js → chunk.BW5FY6QJ.js} +1 -1
- package/dist/chunks/{chunk.V3RBONZ7.js → chunk.DMDLO5DL.js} +6 -2
- package/dist/chunks/{chunk.KJN55623.js → chunk.E5L6DQKL.js} +1 -1
- package/dist/chunks/{chunk.IXY6JRMU.js → chunk.EAWBAV6Q.js} +2 -2
- package/dist/chunks/{chunk.2EDPY2A5.js → chunk.GNUKJF4Y.js} +1 -1
- package/dist/chunks/{chunk.UE4MIFO2.js → chunk.GQV5M7HP.js} +1 -1
- package/dist/chunks/{chunk.Y226ELYU.js → chunk.HHE5BX7I.js} +1 -1
- package/dist/chunks/{chunk.K7OGNZLO.js → chunk.HKWXNTTJ.js} +1 -1
- package/dist/chunks/{chunk.JYR67QON.js → chunk.I52N7OPP.js} +1 -1
- package/dist/chunks/{chunk.BDGTWJIT.js → chunk.IGOXLOQF.js} +2 -2
- package/dist/chunks/{chunk.36OESV3O.js → chunk.KBYT7BIL.js} +1 -1
- package/dist/chunks/{chunk.S3AIPHMB.js → chunk.KCOZ2C4D.js} +1 -1
- package/dist/chunks/{chunk.4WJBOMWG.js → chunk.L3ZE5UCG.js} +1 -1
- package/dist/chunks/{chunk.MBVWPMPN.js → chunk.L4CIZQD4.js} +1 -1
- package/dist/chunks/{chunk.NAD637BO.js → chunk.LUSVOKAM.js} +1 -1
- package/dist/chunks/{chunk.7YOG7JGW.js → chunk.M4A7II5B.js} +1 -1
- package/dist/chunks/{chunk.6JXHY72O.js → chunk.MOYNIJPD.js} +1 -1
- package/dist/chunks/{chunk.RL7BJYL6.js → chunk.MUMBMCAB.js} +1 -1
- package/dist/chunks/{chunk.3PROMK3G.js → chunk.O72HG6IC.js} +1 -1
- package/dist/chunks/{chunk.RXD64SUC.js → chunk.OD4O32CW.js} +1 -1
- package/dist/chunks/{chunk.XDGNL4X6.js → chunk.OXT3AO6N.js} +1 -1
- package/dist/chunks/{chunk.JT57FH4I.js → chunk.PBRDBJM3.js} +1 -1
- package/dist/chunks/{chunk.6SZCCE7T.js → chunk.PQAMJV7M.js} +1 -1
- package/dist/chunks/{chunk.6GDF7RP6.js → chunk.PR5RDVMQ.js} +18 -11
- package/dist/chunks/{chunk.IXAGOL3L.js → chunk.PXW33DB7.js} +1 -1
- package/dist/chunks/{chunk.MMI44BVI.js → chunk.PZYTCHKW.js} +1 -1
- package/dist/chunks/{chunk.E2USZ7GU.js → chunk.QJYIVBDS.js} +1 -1
- package/dist/chunks/{chunk.FV63VR7F.js → chunk.QOEAT2YX.js} +1 -1
- package/dist/chunks/{chunk.AQU3K3QW.js → chunk.QT545FQY.js} +1 -1
- package/dist/chunks/{chunk.EGVMKWID.js → chunk.RYPEDJRA.js} +1 -1
- package/dist/chunks/{chunk.7OODH6S5.js → chunk.SVFMI2BT.js} +1 -1
- package/dist/chunks/{chunk.FQAUOX63.js → chunk.TKSVNGDB.js} +1 -1
- package/dist/chunks/{chunk.YGCCHEFS.js → chunk.TU6RYP2A.js} +1 -1
- package/dist/chunks/{chunk.FRVVZRCH.js → chunk.TWEYUZPD.js} +1 -1
- package/dist/chunks/{chunk.HMOYAY72.js → chunk.TYCEV44V.js} +1 -1
- package/dist/chunks/{chunk.4OJXQ3S3.js → chunk.TZWXMYO6.js} +1 -1
- package/dist/chunks/{chunk.KLN5272I.js → chunk.U4MFOSYC.js} +1 -1
- package/dist/chunks/{chunk.FXZL5TSR.js → chunk.U7I3JTSV.js} +1 -1
- package/dist/chunks/{chunk.ELS2J6VM.js → chunk.V4TRG2QV.js} +2 -2
- package/dist/chunks/chunk.VU4ZPVVA.js +93 -0
- package/dist/chunks/{chunk.AJJI7TJL.js → chunk.WKX63M7W.js} +1 -1
- package/dist/chunks/{chunk.ANNKBF6X.js → chunk.ZBAZXZGL.js} +1 -1
- package/dist/chunks/{chunk.FJM4XRBD.js → chunk.ZJQST7NT.js} +1 -1
- package/dist/chunks/{chunk.7LLWTMC3.js → chunk.ZWTZYBO7.js} +1 -1
- package/dist/components/accordion/accordion.js +3 -3
- package/dist/components/accordion-group/accordion-group.js +4 -4
- package/dist/components/animation/animation.js +2 -2
- package/dist/components/audio/audio.js +6 -6
- package/dist/components/badge/badge.js +2 -2
- package/dist/components/brandshape/brandshape.js +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +5 -5
- package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
- package/dist/components/button/button.js +3 -3
- package/dist/components/button-group/button-group.js +2 -2
- package/dist/components/carousel/carousel.js +4 -4
- package/dist/components/carousel-item/carousel-item.js +2 -2
- package/dist/components/checkbox/checkbox.js +3 -3
- package/dist/components/checkbox-group/checkbox-group.js +3 -3
- package/dist/components/combobox/combobox.js +5 -5
- package/dist/components/datepicker/datepicker.js +5 -5
- package/dist/components/dialog/dialog.js +5 -5
- package/dist/components/divider/divider.js +2 -2
- package/dist/components/drawer/drawer.js +5 -5
- package/dist/components/dropdown/dropdown.js +3 -3
- package/dist/components/expandable/expandable.js +3 -3
- package/dist/components/flipcard/flipcard.js +5 -5
- package/dist/components/header/header.js +2 -2
- package/dist/components/icon/icon.js +2 -2
- package/dist/components/include/include.js +2 -2
- package/dist/components/input/input.js +3 -3
- package/dist/components/link/link.js +2 -2
- package/dist/components/loader/loader.js +2 -2
- package/dist/components/map-marker/map-marker.js +2 -2
- package/dist/components/menu/menu.js +2 -2
- package/dist/components/menu-item/menu-item.js +2 -2
- package/dist/components/navigation-item/navigation-item.js +4 -4
- package/dist/components/notification/notification.js +5 -5
- package/dist/components/optgroup/optgroup.js +3 -3
- package/dist/components/option/option.js +3 -3
- package/dist/components/popup/popup.js +2 -2
- package/dist/components/quickfact/quickfact.js +4 -4
- package/dist/components/radio/radio.js +2 -2
- package/dist/components/radio-button/radio-button.js +2 -2
- package/dist/components/radio-group/radio-group.js +4 -4
- package/dist/components/range/range.js +5 -5
- package/dist/components/range-tick/range-tick.js +2 -2
- package/dist/components/scrollable/scrollable.js +3 -3
- package/dist/components/select/select.js +5 -5
- package/dist/components/skeleton/skeleton.js +2 -2
- package/dist/components/spinner/spinner.js +2 -2
- package/dist/components/step/step.d.ts +3 -2
- package/dist/components/step/step.js +3 -3
- package/dist/components/step-group/step-group.d.ts +3 -2
- package/dist/components/step-group/step-group.js +2 -2
- package/dist/components/switch/switch.js +2 -2
- package/dist/components/tab/tab.js +2 -2
- package/dist/components/tab-group/tab-group.js +3 -3
- package/dist/components/tab-panel/tab-panel.js +2 -2
- package/dist/components/tag/tag.js +3 -3
- package/dist/components/teaser/teaser.js +2 -2
- package/dist/components/teaser-media/teaser-media.js +2 -2
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/theme-listener/theme-listener.js +2 -2
- package/dist/components/tooltip/tooltip.js +4 -4
- package/dist/components/video/video.js +3 -3
- package/dist/custom-elements.json +5 -5
- package/dist/solid-components.js +60 -60
- package/dist/utilities/autocomplete-config.js +2 -2
- package/dist/vscode.html-custom-data.json +2 -2
- package/dist/web-types.json +5 -5
- package/dist-versioned/chunks/{chunk.27CORLGD.js → chunk.2RT2QZ7M.js} +3 -3
- package/dist-versioned/chunks/{chunk.OQ5QEVJF.js → chunk.2YPLPBHV.js} +7 -7
- package/dist-versioned/chunks/{chunk.4YGFM4I2.js → chunk.36VZHNCQ.js} +7 -7
- package/dist-versioned/chunks/{chunk.6WM4R2DA.js → chunk.3PNN625M.js} +4 -4
- package/dist-versioned/chunks/{chunk.5DLSMYYF.js → chunk.3PUYQYK7.js} +6 -6
- package/dist-versioned/chunks/{chunk.IRPULK4T.js → chunk.4V4TM346.js} +10 -10
- package/dist-versioned/chunks/{chunk.ZN4E3BW3.js → chunk.5QJLPDI3.js} +6 -6
- package/dist-versioned/chunks/{chunk.P6YK6F7T.js → chunk.5UOC4OZ4.js} +4 -4
- package/dist-versioned/chunks/{chunk.CDI4YMFV.js → chunk.76V2ISKC.js} +5 -5
- package/dist-versioned/chunks/{chunk.4FQGHIRS.js → chunk.7DSIPKKV.js} +4 -4
- package/dist-versioned/chunks/{chunk.PJ4LG3IZ.js → chunk.7P2REW5V.js} +11 -11
- package/dist-versioned/chunks/{chunk.YC3R5M35.js → chunk.7VNN27TI.js} +6 -6
- package/dist-versioned/chunks/{chunk.PO2OMSAQ.js → chunk.A372DMSH.js} +9 -9
- package/dist-versioned/chunks/{chunk.WV4VZLSM.js → chunk.A5JVBPWO.js} +8 -8
- package/dist-versioned/chunks/{chunk.JCFYB72C.js → chunk.A65XKMJZ.js} +4 -4
- package/dist-versioned/chunks/{chunk.X7XDUKGF.js → chunk.B76GUA7Y.js} +2 -2
- package/dist-versioned/chunks/{chunk.J2WMB4UM.js → chunk.BW5FY6QJ.js} +12 -12
- package/dist-versioned/chunks/chunk.C3WIBDGG.js +2 -2
- package/dist-versioned/chunks/{chunk.V3RBONZ7.js → chunk.DMDLO5DL.js} +8 -4
- package/dist-versioned/chunks/{chunk.KJN55623.js → chunk.E5L6DQKL.js} +12 -12
- package/dist-versioned/chunks/{chunk.IXY6JRMU.js → chunk.EAWBAV6Q.js} +5 -5
- package/dist-versioned/chunks/{chunk.2EDPY2A5.js → chunk.GNUKJF4Y.js} +3 -3
- package/dist-versioned/chunks/{chunk.UE4MIFO2.js → chunk.GQV5M7HP.js} +3 -3
- package/dist-versioned/chunks/{chunk.Y226ELYU.js → chunk.HHE5BX7I.js} +6 -6
- package/dist-versioned/chunks/{chunk.K7OGNZLO.js → chunk.HKWXNTTJ.js} +2 -2
- package/dist-versioned/chunks/{chunk.JYR67QON.js → chunk.I52N7OPP.js} +3 -3
- package/dist-versioned/chunks/{chunk.BDGTWJIT.js → chunk.IGOXLOQF.js} +14 -14
- package/dist-versioned/chunks/{chunk.36OESV3O.js → chunk.KBYT7BIL.js} +2 -2
- package/dist-versioned/chunks/{chunk.S3AIPHMB.js → chunk.KCOZ2C4D.js} +26 -26
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/{chunk.4WJBOMWG.js → chunk.L3ZE5UCG.js} +12 -12
- package/dist-versioned/chunks/{chunk.MBVWPMPN.js → chunk.L4CIZQD4.js} +5 -5
- package/dist-versioned/chunks/{chunk.NAD637BO.js → chunk.LUSVOKAM.js} +6 -6
- package/dist-versioned/chunks/{chunk.7YOG7JGW.js → chunk.M4A7II5B.js} +5 -5
- package/dist-versioned/chunks/{chunk.6JXHY72O.js → chunk.MOYNIJPD.js} +4 -4
- package/dist-versioned/chunks/chunk.MQG727Y4.js +4 -4
- package/dist-versioned/chunks/{chunk.RL7BJYL6.js → chunk.MUMBMCAB.js} +2 -2
- package/dist-versioned/chunks/{chunk.3PROMK3G.js → chunk.O72HG6IC.js} +11 -11
- package/dist-versioned/chunks/{chunk.RXD64SUC.js → chunk.OD4O32CW.js} +5 -5
- package/dist-versioned/chunks/{chunk.XDGNL4X6.js → chunk.OXT3AO6N.js} +11 -11
- package/dist-versioned/chunks/{chunk.JT57FH4I.js → chunk.PBRDBJM3.js} +26 -26
- package/dist-versioned/chunks/{chunk.6SZCCE7T.js → chunk.PQAMJV7M.js} +3 -3
- package/dist-versioned/chunks/{chunk.6GDF7RP6.js → chunk.PR5RDVMQ.js} +22 -15
- package/dist-versioned/chunks/{chunk.IXAGOL3L.js → chunk.PXW33DB7.js} +7 -7
- package/dist-versioned/chunks/{chunk.MMI44BVI.js → chunk.PZYTCHKW.js} +3 -3
- package/dist-versioned/chunks/{chunk.E2USZ7GU.js → chunk.QJYIVBDS.js} +7 -7
- package/dist-versioned/chunks/{chunk.FV63VR7F.js → chunk.QOEAT2YX.js} +14 -14
- package/dist-versioned/chunks/{chunk.AQU3K3QW.js → chunk.QT545FQY.js} +3 -3
- package/dist-versioned/chunks/{chunk.EGVMKWID.js → chunk.RYPEDJRA.js} +2 -2
- package/dist-versioned/chunks/{chunk.7OODH6S5.js → chunk.SVFMI2BT.js} +6 -6
- package/dist-versioned/chunks/{chunk.FQAUOX63.js → chunk.TKSVNGDB.js} +2 -2
- package/dist-versioned/chunks/{chunk.YGCCHEFS.js → chunk.TU6RYP2A.js} +7 -7
- package/dist-versioned/chunks/{chunk.FRVVZRCH.js → chunk.TWEYUZPD.js} +2 -2
- package/dist-versioned/chunks/{chunk.HMOYAY72.js → chunk.TYCEV44V.js} +6 -6
- package/dist-versioned/chunks/{chunk.4OJXQ3S3.js → chunk.TZWXMYO6.js} +5 -5
- package/dist-versioned/chunks/{chunk.KLN5272I.js → chunk.U4MFOSYC.js} +6 -6
- package/dist-versioned/chunks/{chunk.FXZL5TSR.js → chunk.U7I3JTSV.js} +3 -3
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/{chunk.ELS2J6VM.js → chunk.V4TRG2QV.js} +12 -12
- package/dist-versioned/chunks/chunk.VU4ZPVVA.js +93 -0
- package/dist-versioned/chunks/{chunk.AJJI7TJL.js → chunk.WKX63M7W.js} +3 -3
- package/dist-versioned/chunks/{chunk.ANNKBF6X.js → chunk.ZBAZXZGL.js} +33 -33
- package/dist-versioned/chunks/{chunk.FJM4XRBD.js → chunk.ZJQST7NT.js} +3 -3
- package/dist-versioned/chunks/{chunk.7LLWTMC3.js → chunk.ZWTZYBO7.js} +15 -15
- package/dist-versioned/components/accordion/accordion.d.ts +1 -1
- package/dist-versioned/components/accordion/accordion.js +3 -3
- package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist-versioned/components/accordion-group/accordion-group.js +4 -4
- package/dist-versioned/components/animation/animation.d.ts +1 -1
- package/dist-versioned/components/animation/animation.js +2 -2
- package/dist-versioned/components/audio/audio.d.ts +1 -1
- package/dist-versioned/components/audio/audio.js +6 -6
- package/dist-versioned/components/badge/badge.d.ts +1 -1
- package/dist-versioned/components/badge/badge.js +2 -2
- package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/dist-versioned/components/brandshape/brandshape.js +2 -2
- package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist-versioned/components/breadcrumb/breadcrumb.js +5 -5
- package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/dist-versioned/components/breadcrumb-item/breadcrumb-item.js +3 -3
- package/dist-versioned/components/button/button.d.ts +1 -1
- package/dist-versioned/components/button/button.js +3 -3
- package/dist-versioned/components/button-group/button-group.d.ts +1 -1
- package/dist-versioned/components/button-group/button-group.js +2 -2
- package/dist-versioned/components/carousel/carousel.d.ts +1 -1
- package/dist-versioned/components/carousel/carousel.js +4 -4
- package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/dist-versioned/components/carousel-item/carousel-item.js +2 -2
- package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/dist-versioned/components/checkbox/checkbox.js +3 -3
- package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist-versioned/components/checkbox-group/checkbox-group.js +3 -3
- package/dist-versioned/components/combobox/combobox.d.ts +1 -1
- package/dist-versioned/components/combobox/combobox.js +5 -5
- package/dist-versioned/components/datepicker/datepicker.d.ts +1 -1
- package/dist-versioned/components/datepicker/datepicker.js +5 -5
- package/dist-versioned/components/dialog/dialog.d.ts +1 -1
- package/dist-versioned/components/dialog/dialog.js +5 -5
- package/dist-versioned/components/divider/divider.d.ts +1 -1
- package/dist-versioned/components/divider/divider.js +2 -2
- package/dist-versioned/components/drawer/drawer.d.ts +1 -1
- package/dist-versioned/components/drawer/drawer.js +5 -5
- package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/dist-versioned/components/dropdown/dropdown.js +3 -3
- package/dist-versioned/components/expandable/expandable.d.ts +1 -1
- package/dist-versioned/components/expandable/expandable.js +3 -3
- package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/dist-versioned/components/flipcard/flipcard.js +5 -5
- package/dist-versioned/components/header/header.d.ts +1 -1
- package/dist-versioned/components/header/header.js +2 -2
- package/dist-versioned/components/icon/icon.d.ts +1 -1
- package/dist-versioned/components/icon/icon.js +2 -2
- package/dist-versioned/components/include/include.d.ts +1 -1
- package/dist-versioned/components/include/include.js +2 -2
- package/dist-versioned/components/input/input.d.ts +1 -1
- package/dist-versioned/components/input/input.js +3 -3
- package/dist-versioned/components/link/link.d.ts +1 -1
- package/dist-versioned/components/link/link.js +2 -2
- package/dist-versioned/components/loader/loader.d.ts +1 -1
- package/dist-versioned/components/loader/loader.js +2 -2
- package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/dist-versioned/components/map-marker/map-marker.js +2 -2
- package/dist-versioned/components/menu/menu.d.ts +1 -1
- package/dist-versioned/components/menu/menu.js +2 -2
- package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
- package/dist-versioned/components/menu-item/menu-item.js +2 -2
- package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist-versioned/components/navigation-item/navigation-item.js +4 -4
- package/dist-versioned/components/notification/notification.d.ts +1 -1
- package/dist-versioned/components/notification/notification.js +5 -5
- package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/dist-versioned/components/optgroup/optgroup.js +3 -3
- package/dist-versioned/components/option/option.d.ts +1 -1
- package/dist-versioned/components/option/option.js +3 -3
- package/dist-versioned/components/popup/popup.d.ts +1 -1
- package/dist-versioned/components/popup/popup.js +2 -2
- package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.js +4 -4
- package/dist-versioned/components/radio/radio.d.ts +1 -1
- package/dist-versioned/components/radio/radio.js +2 -2
- package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/dist-versioned/components/radio-button/radio-button.js +2 -2
- package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/dist-versioned/components/radio-group/radio-group.js +4 -4
- package/dist-versioned/components/range/range.d.ts +1 -1
- package/dist-versioned/components/range/range.js +5 -5
- package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/dist-versioned/components/range-tick/range-tick.js +2 -2
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/scrollable/scrollable.js +3 -3
- package/dist-versioned/components/select/select.d.ts +1 -1
- package/dist-versioned/components/select/select.js +5 -5
- package/dist-versioned/components/skeleton/skeleton.d.ts +1 -1
- package/dist-versioned/components/skeleton/skeleton.js +2 -2
- package/dist-versioned/components/spinner/spinner.d.ts +1 -1
- package/dist-versioned/components/spinner/spinner.js +2 -2
- package/dist-versioned/components/step/step.d.ts +4 -3
- package/dist-versioned/components/step/step.js +3 -3
- package/dist-versioned/components/step-group/step-group.d.ts +4 -3
- package/dist-versioned/components/step-group/step-group.js +2 -2
- package/dist-versioned/components/switch/switch.d.ts +1 -1
- package/dist-versioned/components/switch/switch.js +2 -2
- package/dist-versioned/components/tab/tab.d.ts +1 -1
- package/dist-versioned/components/tab/tab.js +2 -2
- package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/dist-versioned/components/tab-group/tab-group.js +3 -3
- package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist-versioned/components/tab-panel/tab-panel.js +2 -2
- package/dist-versioned/components/tag/tag.d.ts +1 -1
- package/dist-versioned/components/tag/tag.js +3 -3
- package/dist-versioned/components/teaser/teaser.js +2 -2
- package/dist-versioned/components/teaser-media/teaser-media.js +2 -2
- package/dist-versioned/components/textarea/textarea.d.ts +1 -1
- package/dist-versioned/components/textarea/textarea.js +3 -3
- package/dist-versioned/components/theme-listener/theme-listener.d.ts +1 -1
- package/dist-versioned/components/theme-listener/theme-listener.js +2 -2
- package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/dist-versioned/components/tooltip/tooltip.js +4 -4
- package/dist-versioned/components/video/video.d.ts +1 -1
- package/dist-versioned/components/video/video.js +3 -3
- package/dist-versioned/custom-elements.json +249 -249
- package/dist-versioned/internal/form.js +2 -2
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +60 -60
- package/dist-versioned/utilities/autocomplete-config.js +2 -2
- package/dist-versioned/vscode.html-custom-data.json +109 -109
- package/dist-versioned/web-types.json +161 -161
- package/package.json +3 -3
- package/cdn/chunks/chunk.6FABT2P2.js +0 -26
- package/cdn/chunks/chunk.6G62L252.js +0 -2
- package/cdn/chunks/chunk.LQ6VYVB5.js +0 -2
- package/cdn-versioned/chunks/chunk.6FABT2P2.js +0 -26
- package/cdn-versioned/chunks/chunk.6G62L252.js +0 -2
- package/cdn-versioned/chunks/chunk.LQ6VYVB5.js +0 -2
- package/dist/chunks/chunk.XNTGIC2L.js +0 -93
- package/dist-versioned/chunks/chunk.XNTGIC2L.js +0 -93
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk.WWGARXPI.js";import{b as K}from"./chunk.RAP66B6O.js";import{a as G}from"./chunk.CGQ2BPPZ.js";import{a as U}from"./chunk.IQPMMUES.js";import{a as x}from"./chunk.QIKBKQXB.js";import{a as _}from"./chunk.NYKJXI3Q.js";import{a as W,b,c as O,d as B,h as H}from"./chunk.6FABT2P2.js";import{b as N,e as k,i as q}from"./chunk.UOAG5PNU.js";import{e as h}from"./chunk.6EV4YU6C.js";var A={fromAttribute(M){if(!M)return null;let t=M.trim().replace(/[./]/g,"-").match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!t)return null;let e=`${t[1]}-${t[2]}-${t[3]}`,i=new Date(+t[1],+t[2]-1,+t[3]);return i.getFullYear()!==+t[1]||i.getMonth()!==+t[2]-1||i.getDate()!==+t[3]?null:e},toAttribute(M){return M!=null?M:""}},j={fromAttribute(M){if(!M)return null;let F=M.trim().replace(/[./]/g,"-"),t=F.match(/^(\d{2})-(\d{4})$/),e,i;if(t)e=Number(t[1]),i=Number(t[2]);else{if(t=F.match(/^(\d{4})-(\d{2})$/),!t)return null;i=Number(t[1]),e=Number(t[2])}return!i||!e||e<1||e>12?null:new Date(i,e-1,1)},toAttribute(M){if(!M)return"";let F=M.getFullYear(),t=String(M.getMonth()+1).padStart(2,"0");return`${F}-${t}`}},J={fromAttribute(M){if(!M)return[];let F=[],t=M.trim();if(t.startsWith("["))try{let i=JSON.parse(t);Array.isArray(i)&&(F=i.map(String))}catch(i){return[]}else F=t.split(/[\s,]+/).map(i=>i.trim()).filter(Boolean);let e=[];for(let i of F){let s=i.replace(/[-/]/g,".").split(".");if(s.length!==3)continue;let[n,o,f]=s.map(Number);if(!n||!o||!f)continue;let v=new Date(n,o-1,f);if(v.getFullYear()!==n||v.getMonth()!==o-1||v.getDate()!==f)continue;let g=`${n}-${String(o).padStart(2,"0")}-${String(f).padStart(2,"0")}`;e.push(g)}return e},toAttribute(M){return M?M.join(","):""}},l=class extends H{constructor(){super();this.localize=new U(this);this.hasSlotController=new G(this,"label","help-text","tooltip");this.formControlController=new K(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.locale="en-US";this.value=null;this.range=!1;this.rangeStart=null;this.rangeEnd=null;this.allowSameDayRange=!1;this.min=void 0;this.max=void 0;this.viewMonth=null;this.firstDayOfWeek=null;this.disabledWeekends=!1;this.disabledDates=[];this.isDateDisabled=null;this.size="lg";this.alignment="left";this.label="";this.helpText="";this.floatingLabel=!1;this.disabled=!1;this.required=!1;this.visuallyDisabled=!1;this.styleOnValid=!1;this.readonly=!1;this.placement="bottom";this.placeholder="";this.name="";this.form="";this.open=!1;this.today=a.startOfDayLocal(new Date);this.disabledDatesSet=new Set;this.previewEnd=null;this.statusNavText="";this.statusSelectText="";this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.currentPlacement=this.placement;this.inputValue="";this.tabbingIntoGrid=!1;this.statusBumpCounter=0;this.onFocusOut=t=>{let e=t.relatedTarget;e&&this.contains(e)||(this.open&&(this.hide(),this.emit("sd-datepicker-close")),this.hasFocus=!1)};this.onFocusIn=t=>{if(this.disabled||this.visuallyDisabled)return;t.composedPath().some(r=>{var s,n;return r instanceof HTMLElement&&(((s=r.classList)==null?void 0:s.contains("nav"))||((n=r.classList)==null?void 0:n.contains("month-label")))})&&(this.tabbingIntoGrid=!0)};this.handleInput=t=>{var n,o,f,v,g;if(this.disabled||this.visuallyDisabled||this.readonly){(n=t.preventDefault)==null||n.call(t),(o=t.stopPropagation)==null||o.call(t);return}let e=t.target,i=e.value,r=(f=e.selectionStart)!=null?f:i.length,s=(v=t.inputType)==null?void 0:v.startsWith("delete");if(this.range){let d=i.replace(/\D/g,""),u=d.slice(0,8),c=d.slice(8,16),p=this.buildDmyFromDigits(u),m=this.buildDmyFromDigits(c),L;u.length===0?L="":u.length<8?L=p:c.length>0?L=`${p} - ${m}`:L=s?p:`${p} -`;let I=this.countDigitsBeforeCaret(i,r),D;if(I<=8){let y=this.digitIndexToDmyCaretPos(Math.min(I,8));D=Math.min(y,p.length)}else{let y=u.length<8?p.length:p.length+3,S=Math.min(I-8,8),w=this.digitIndexToDmyCaretPos(S);D=y+Math.min(w,m.length)}this.inputValue=L;let E=!1;if(/^\d{2}\.\d{2}\.\d{4}$/.test(p)){let y=this.dmyToIso(p),S=y?a.parseLocalISO(y):null;S&&!this.isDisabled(S)&&this.inMinMax(S)&&this.rangeStart!==y&&(this.rangeStart=y,this.previewEnd=null,this.viewMonth=new Date(S.getFullYear(),S.getMonth(),1),this.focusedDate=a.startOfDayLocal(S),E=!0)}else this.rangeStart&&(this.rangeStart=null,E=!0),this.rangeEnd&&(this.rangeEnd=null,E=!0);if(/^\d{2}\.\d{2}\.\d{4}$/.test(m)&&this.rangeStart){let y=a.parseLocalISO(this.rangeStart),S=this.dmyToIso(m),w=S?a.parseLocalISO(S):null;if(!!w&&!this.isDisabled(w)&&this.inMinMax(w)){let[T,P]=a.compareDates(y,w)<=0?[y,w]:[w,y],Y=a.isSameDay(T,P);if((this.allowSameDayRange||!Y)&&!this.wouldRangeContainDisabled(T,P)){let V=a.toLocalISODate(a.startOfDayLocal(T)),z=a.toLocalISODate(a.startOfDayLocal(P));(this.rangeStart!==V||this.rangeEnd!==z)&&(this.rangeStart=V,this.rangeEnd=z,this.viewMonth=new Date(P.getFullYear(),P.getMonth(),1),this.focusedDate=a.startOfDayLocal(P),E=!0)}}}else this.rangeEnd&&(this.rangeEnd=null,E=!0);this.showInvalidStyle=!1,this.showValidStyle=!!(this.rangeStart&&this.rangeEnd),E&&(this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})),Promise.resolve().then(()=>{requestAnimationFrame(()=>{var S;let y=(S=this.input)!=null?S:e;y&&(y.value=this.inputValue,y.setSelectionRange(D,D))})})}else{let d=e,u=d.value,c=(g=d.selectionStart)!=null?g:u.length,p=u.replace(/\D/g,"").slice(0,8),m=p.slice(0,2),L=p.slice(2,4),I=p.slice(4,8),D="";m.length>0&&(D+=m,m.length===2&&(D+=".")),L.length>0&&m.length===2&&(D+=L,L.length===2&&(D+=".")),I.length>0&&m.length===2&&L.length===2&&(D+=I),D=D.replace(/\.\.+/g,".");let E=this.inputValue||"";this.inputValue=D;let y=c,S=$=>{let V=[];for(let z=0;z<$.length;z++)$[z]==="."&&V.push(z);return V},w=S(E),C=S(D),T=w.filter($=>$<c).length,Y=C.filter($=>$<c).length-T;if(Y>0?y+=Y:!w.includes(c)&&C.includes(c)&&(y+=1),y=Math.min(Math.max(0,y),D.length),requestAnimationFrame(()=>{var V;let $=(V=this.input)!=null?V:d;$&&($.value=this.inputValue,$.setSelectionRange(y,y))}),/^\d{2}\.\d{2}\.\d{4}$/.test(D)){let $=this.parseInputText(D);this.applyParsedInput($)}else this.showInvalidStyle=!1,this.showValidStyle=!1;return}if(!this.open&&this.hasFocus&&!this.disabled&&!this.visuallyDisabled&&this.show(),this.range){let d=this.rangeStart?a.parseLocalISO(this.rangeStart):null,u=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;d&&!u?this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(d)}`):d&&u&&this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(d)}; ${this.termEndSelected()}: ${this.formatSelectionLabel(u)}`)}else if(this.value){let d=a.parseLocalISO(this.value);this.setNavStatus(`${this.formatSelectionLabel(d)}`)}};this.handleInputBlur=()=>{if(this.disabled||this.visuallyDisabled){this.handleBlur();return}let t=this.parseInputText(this.inputValue);t.valid?this.applyParsedInput(t):(this.inputValue=this.formatInputValue(),this.showInvalidStyle=!!this.inputValue&&!this.value&&!this.rangeStart),this.handleBlur()};this.handleCurrentPlacement=t=>{let e=t.detail;e&&(this.currentPlacement=e)};this.handleHeaderKeyDown=(t,e,i,r)=>{if(!(this.disabled||this.visuallyDisabled||this.readonly)){if(t.key==="Tab"&&!t.shiftKey){r&&(t.preventDefault(),t.stopPropagation(),this.tabbingIntoGrid=!0,this.focusInitialGridDay());return}(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),t.stopPropagation(),e==="month"?this.setMonth(i):this.setYear(i))}};this.onKeyDown=t=>{var s,n;if(this.disabled||this.visuallyDisabled||this.readonly){t.preventDefault(),t.stopPropagation();return}let e=t.key,i=!0,r=new Date(this.focusedDate);switch(e){case"ArrowLeft":r.setDate(r.getDate()-1);break;case"ArrowRight":r.setDate(r.getDate()+1);break;case"ArrowUp":r.setDate(r.getDate()-7);break;case"ArrowDown":r.setDate(r.getDate()+7);break;case"Escape":{this.previewEnd?(this.previewEnd=null,this.setNavStatus(this.localize.term("selectionCleared"))):this.range&&this.rangeStart&&!this.rangeEnd&&(this.rangeStart=null,this.setNavStatus(this.localize.term("selectionCleared")),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}})),this.open&&(this.hide(),this.emit("sd-datepicker-close"));break}case"Enter":case" ":this.selectDate(this.focusedDate);break;default:i=!1}if(i){t.preventDefault();let o=(s=this.viewMonth)!=null?s:this.ensureViewMonth();if(r.getMonth()!==o.getMonth()||r.getFullYear()!==o.getFullYear()){let d=new Date(r.getFullYear(),r.getMonth(),1);this.viewMonth=d;let u=this.formatMonthYear(d);this.setNavStatus(u)}let v=a.startOfDayLocal(r);v.getTime()!==((n=this.focusedDate)==null?void 0:n.getTime())&&(this.focusedDate=v);let g=v.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"});this.setNavStatus(g),this.requestUpdate(),requestAnimationFrame(()=>{let d=this.shadowRoot,u=d==null?void 0:d.querySelector("button.day.focused");u==null||u.focus({preventScroll:!0})})}};this.handleInputKeyDown=t=>{if((this.disabled||this.visuallyDisabled||this.readonly)&&t.key!=="Tab"){t.preventDefault(),t.stopPropagation();return}if(!(t.key==="ArrowLeft"||t.key==="ArrowRight"||t.key==="ArrowUp"||t.key==="ArrowDown"||t.key==="Home"||t.key==="End"||t.key==="PageUp"||t.key==="PageDown")){if(t.key==="Escape"&&this.open){t.preventDefault(),this.hide(),this.emit("sd-datepicker-close");return}t.key==="Enter"&&!this.open&&!this.disabled&&!this.visuallyDisabled&&!this.readonly&&(t.preventDefault(),this.show())}};this.handleOutsideClick=this.handleOutsideClick.bind(this)}connectedCallback(){var n;super.connectedCallback(),this.syncDisabledDatesSet(),document.addEventListener("click",this.handleOutsideClick),this.addEventListener("focusout",this.onFocusOut),this.updateComplete.then(()=>{this.formControlController.updateValidity()});let t=this.value?a.parseLocalISO(this.value):null,e=this.rangeStart?a.parseLocalISO(this.rangeStart):null,i=a.startOfDayLocal(new Date),r=this.range&&e?e:t!=null?t:i,s=(n=this.viewMonth)!=null?n:new Date(r.getFullYear(),r.getMonth(),1);this.viewMonth=s,this.focusedDate=a.clampDateToMonth(r,s),(this.firstDayOfWeek===null||this.firstDayOfWeek===void 0)&&(this.firstDayOfWeek=1),this.inputValue=this.formatInputValue(),this.setAttribute("role","group"),this.setAttribute("aria-label",this.range?this.localize.term("datePickerRange"):this.localize.term("datePicker")),this.addEventListener("focusin",this.onFocusIn)}firstUpdated(){this.formControlController.updateValidity()}handleOpenChange(){this.popup&&(this.popup.active=this.open&&!this.disabled&&!this.visuallyDisabled)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.onFocusIn),this.removeEventListener("focusout",this.onFocusOut),document.removeEventListener("click",this.handleOutsideClick)}handleLocaleChange(){this.firstDayOfWeek===null&&(this.firstDayOfWeek=1),this.requestUpdate()}handleViewMonthChange(){var i;if(!this.viewMonth)return;let t=this.focusedDate||this.range&&this.rangeEnd&&a.parseLocalISO(this.rangeEnd)||this.range&&this.rangeStart&&a.parseLocalISO(this.rangeStart)||this.value&&a.parseLocalISO(this.value)||this.today;if(!t)return;let e=a.clampDateToMonth(t,this.viewMonth);e.getTime()!==((i=this.focusedDate)==null?void 0:i.getTime())&&(this.focusedDate=e)}handleDisabledDatesChange(){this.syncDisabledDatesSet(),this.requestUpdate()}handleValueChange(){let t=this.value?a.parseLocalISO(this.value):null;t&&(this.viewMonth=new Date(t.getFullYear(),t.getMonth(),1),this.focusedDate=a.startOfDayLocal(t)),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var i;let e=this.input;if(e){e.value=(i=this.inputValue)!=null?i:"";let r=e.value.length;e.setSelectionRange(r,r)}this.formControlController.updateValidity()}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})}handleRangeChange(){let t=this.rangeStart?a.parseLocalISO(this.rangeStart):null,e=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null,i=t!=null?t:e;i&&(this.viewMonth=new Date(i.getFullYear(),i.getMonth(),1),this.focusedDate=a.startOfDayLocal(i)),this.previewEnd!==null&&(this.previewEnd=null),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var s;let r=this.input;if(r){r.value=(s=this.inputValue)!=null?s:"";let n=r.value.length;r.setSelectionRange(n,n)}this.formControlController.updateValidity()}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})}handleDisabledChange(){this.formControlController.setValidity(this.disabled),(this.disabled||this.visuallyDisabled)&&(this.open=!1)}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}get validity(){let t={valid:!0};return this.input instanceof HTMLInputElement?this.input.validity:t}get validationMessage(){return(this.input instanceof HTMLInputElement?this.input.validationMessage:"")||""}checkValidity(){return this.input instanceof HTMLInputElement?this.input.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input instanceof HTMLInputElement?this.input.reportValidity():!0}setCustomValidity(t){var e;(e=this.input)==null||e.setCustomValidity(t),this.formControlController.updateValidity()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}parseISO(t){return a.parseLocalISO(t)}inMinMax(t){let e=s=>{if(s==null)return null;if(s instanceof Date)return a.startOfDayLocal(s);if(typeof s=="number")return a.startOfDayLocal(new Date(s));if(typeof s=="string"){let n=this.parseISO(s);return n?a.startOfDayLocal(n):null}return null},i=e(this.min),r=e(this.max);return!(i&&t<i||r&&t>r)}isInDisabledDates(t){if(!this.disabledDatesSet||this.disabledDatesSet.size===0)return!1;let e=t.getFullYear(),i=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0"),s=`${e}-${i}-${r}`;return this.disabledDatesSet.has(s)}isWeekend(t){let e=t.getDay();return e===0||e===6}isDisabled(t){var e;return!!(!this.inMinMax(t)||this.disabledWeekends&&this.isWeekend(t)||this.isInDisabledDates(t)||(e=this.isDateDisabled)!=null&&e.call(this,t))}setNavStatus(t){this.statusNavText=t}announceSelect(t,e=40){setTimeout(()=>{this.statusBumpCounter++;let i="\u200B".repeat(this.statusBumpCounter%3);this.statusSelectText=t+i},e)}formatSelectionLabel(t){if(this.locale==="de-DE")return t.toLocaleDateString("de-DE",{day:"numeric",month:"long",year:"numeric"});let e=t.getDate(),i=this.ordinal(e),r=t.toLocaleDateString("en-US",{month:"long"}),s=t.getFullYear();return`${i} of ${r} ${s}`}ordinal(t){let e=["th","st","nd","rd"],i=t%100,r=e[(i-20)%10]||e[i]||e[0];return t+r}syncDisabledDatesSet(){let t=[];if(Array.isArray(this.disabledDates))t=this.disabledDates;else if(typeof this.disabledDates=="string"){let e=this.disabledDates.trim();if(e.startsWith("["))try{let i=JSON.parse(e);Array.isArray(i)&&(t=i)}catch(i){t=[]}else e.length>0&&(t=e.split(",").map(i=>i.trim()).filter(Boolean))}this.disabledDatesSet=new Set(t)}wouldRangeContainDisabled(t,e){let i=a.compareDates(t,e)<=0?a.startOfDayLocal(t):a.startOfDayLocal(e),r=a.compareDates(t,e)<=0?a.startOfDayLocal(e):a.startOfDayLocal(t),s=new Date(i);for(;a.compareDates(s,r)<=0;){if(this.isDisabled(s))return!0;s.setDate(s.getDate()+1)}return!1}termStartSelected(){var t,e;return(e=(t=this.localize)==null?void 0:t.term)==null?void 0:e.call(t,"startDateSelected")}termEndSelected(){var t,e;return(e=(t=this.localize)==null?void 0:t.term)==null?void 0:e.call(t,"endDateSelected")}isoToDmy(t){if(!t)return"";let e=a.parseLocalISO(t);if(e||(e=a.parseLocalISO(t.replace(/-/g,"."))),!e)return"";let i=String(e.getDate()).padStart(2,"0"),r=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getFullYear());return`${i}.${r}.${s}`}dmyToIso(t){if(!t)return null;let e=t.match(/^(\d{2})\.(\d{2})\.(\d{4})$/);if(!e)return null;let i=Number(e[1]),r=Number(e[2]),s=Number(e[3]),n=new Date(s,r-1,i);if(n.getFullYear()!==s||n.getMonth()!==r-1||n.getDate()!==i)return null;let o=a.startOfDayLocal(n);return a.toLocalISODate(o)}formatInputValue(){let t=(this.locale||"").toLowerCase(),e=(this.getAttribute("lang")||"").toLowerCase(),r=t.startsWith("de")||e.startsWith("de")?"\u2013":"-";if(!this.range)return this.isoToDmy(this.value);let s=this.isoToDmy(this.rangeStart),n=this.isoToDmy(this.rangeEnd);return s&&n?`${s} ${r} ${n}`:s&&!n?`${s} ${r}`:""}parseInputText(t){var r,s;let e=t.trim();if(this.range){let n=e.split(/\s*-\s*/);if(n.length===1){let o=n[0];if(!o)return{start:null,end:null,valid:!0};let f=this.dmyToIso(o);return f?{start:f,end:null,valid:!0}:{start:null,end:null,valid:!1}}else if(n.length>=2){let o=(r=n[0])!=null?r:"",f=(s=n[1])!=null?s:"",v=o?this.dmyToIso(o):null,g=f?this.dmyToIso(f):null;return o&&!v?{start:null,end:null,valid:!1}:f&&!g?{start:null,end:null,valid:!1}:{start:v,end:g,valid:!0}}return{start:null,end:null,valid:!1}}if(!e)return{single:null,valid:!0};let i=this.dmyToIso(e);return i?{single:i,valid:!0}:{single:null,valid:!1}}applyParsedInput(t){var o,f,v,g;if(!t.valid)return this.showInvalidStyle=!0,this.showValidStyle=!1,this.formControlController.setValidity(!1),!1;let e=d=>{if(!d)return!0;let u=a.parseLocalISO(d);return!(!this.inMinMax(u)||this.isDisabled(u))},i=!1;if(this.range){let d=(o=t.start)!=null?o:null,u=(f=t.end)!=null?f:null;if(!e(d)||u&&!e(u))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let c=d?a.parseLocalISO(d):null,p=u?a.parseLocalISO(u):null;if(c&&p){if(a.compareDates(c,p)>0){let I=c;c=p,p=I}if(!this.allowSameDayRange&&a.isSameDay(c,p))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;if(this.wouldRangeContainDisabled(c,p))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1}let m=c?a.toLocalISODate(a.startOfDayLocal(c)):null,L=p?a.toLocalISODate(a.startOfDayLocal(p)):null;if(this.rangeStart!==m||this.rangeEnd!==L){this.rangeStart=m,this.rangeEnd=L,this.previewEnd=null,i=!0;let I=(v=c!=null?c:p)!=null?v:this.today;this.viewMonth=new Date(I.getFullYear(),I.getMonth(),1),this.focusedDate=a.startOfDayLocal(I),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}})}return this.showInvalidStyle=!1,this.range?this.showValidStyle=!!(this.rangeStart&&this.rangeEnd&&this.styleOnValid):this.showValidStyle=!!(this.value&&this.styleOnValid),this.formControlController.setValidity(!0),this.updateComplete.then(()=>{this.formControlController.updateValidity()}),!0}let r=(g=t.single)!=null?g:null;if(!e(r))return this.input.setCustomValidity(this.localize.term("datePickerRange")),this.formControlController.setValidity(!1),this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let s=r?a.parseLocalISO(r):null,n=s?a.toLocalISODate(a.startOfDayLocal(s)):null;return this.value!==n&&(this.value=n,i=!0,s&&(this.viewMonth=new Date(s.getFullYear(),s.getMonth(),1),this.focusedDate=a.startOfDayLocal(s)),this.emit("sd-select",{detail:{value:this.value,date:s!=null?s:null}})),this.showInvalidStyle=!1,this.showValidStyle=!!this.value,this.inputValue=this.formatInputValue(),i}buildDmyFromDigits(t){let e=t.slice(0,8),i=e.slice(0,2),r=e.slice(2,4),s=e.slice(4,8),n=i;return r.length&&(n+="."+r),s.length&&(n+="."+s),n}digitIndexToDmyCaretPos(t){return t<=2?t:t<=4?3+(t-2):6+(t-4)}countDigitsBeforeCaret(t,e){return t.slice(0,e).replace(/\D/g,"").length}handleOutsideClick(t){var i,r;((r=(i=t.composedPath)==null?void 0:i.call(t))!=null?r:[]).includes(this)||(this.hide(),this.hasFocus=!1,this.emit("sd-datepicker-close"))}show(){if(this.open||this.disabled||this.visuallyDisabled||this.readonly){this.open=!1;return}this.open=!0}hide(){if(!this.open||this.disabled){this.open=!1;return}this.open=!1}handleMouseDown(t){if(this.visuallyDisabled||this.disabled||this.readonly){t.preventDefault(),t.stopPropagation();return}t.preventDefault(),this.open||this.show()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleFocus(){this.hasFocus=!0,!this.open&&!this.disabled&&!this.visuallyDisabled&&!this.readonly&&this.show(),this.emit("sd-focus")}setMonth(t){var s;let e=(s=this.viewMonth)!=null?s:this.ensureViewMonth(),i=new Date(e.getFullYear(),e.getMonth()+t,1);if(i.getMonth()===e.getMonth()&&i.getFullYear()===e.getFullYear())return;this.viewMonth=i;let r=this.formatMonthYear(i);this.setNavStatus(r),this.emit("sd-month-change",{detail:{month:i}})}setYear(t){var s;let e=(s=this.viewMonth)!=null?s:this.ensureViewMonth(),i=new Date(e.getFullYear()+t,e.getMonth(),1);if(i.getFullYear()===e.getFullYear()&&i.getMonth()===e.getMonth())return;this.viewMonth=i;let r=this.formatMonthYear(i);this.setNavStatus(r),this.emit("sd-month-year",{detail:{month:i}})}focusInitialGridDay(){var r;let t=null;if(!this.range&&this.value){let s=a.parseLocalISO(this.value);s&&(t=a.startOfDayLocal(s))}if(this.range){let s=this.rangeStart?a.parseLocalISO(this.rangeStart):null,n=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;n?t=a.startOfDayLocal(n):s&&(t=a.startOfDayLocal(s))}let e=(r=this.viewMonth)!=null?r:this.ensureViewMonth();if(!(s=>s?s.getFullYear()===e.getFullYear()&&s.getMonth()===e.getMonth()&&!this.isDisabled(s):!1)(t)){let{weeks:s}=this.getMonthMatrix(e),n=s.flat().find(o=>o.getMonth()===e.getMonth()&&a.isSameDay(o,this.today)&&!this.isDisabled(o));if(n)t=a.startOfDayLocal(n);else{let o=s.flat().find(f=>f.getMonth()===e.getMonth()&&!this.isDisabled(f));t=o?a.startOfDayLocal(o):null}}t&&(this.focusedDate=t),this.requestUpdate(),requestAnimationFrame(()=>{let s=this.shadowRoot,n=(s==null?void 0:s.querySelector("button.day.selected"))||(s==null?void 0:s.querySelector("button.day.focused"))||(s==null?void 0:s.querySelector('button.day[tabindex="0"]'))||(s==null?void 0:s.querySelector("button.day"));n==null||n.focus({preventScroll:!0})})}selectSingleDate(t){if(this.readonly||this.isDisabled(t))return;let e=a.startOfDayLocal(t),i=a.toLocalISODate(e);if(this.value===i)return;this.value=i;let r=`${this.formatSelectionLabel(e)}, ${this.localize.term("selected")}`;this.announceSelect(r),this.emit("sd-select",{detail:{value:this.value,date:e}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var n;let s=this.input;s&&(s.value=(n=this.inputValue)!=null?n:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let o=s.value.length;s.setSelectionRange(o,o)})}))})}selectRangeDate(t){if(this.readonly)return;let e=a.startOfDayLocal(t),i=this.rangeStart?a.parseLocalISO(this.rangeStart):null,r=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;if(!i&&!r){if(this.isDisabled(e))return;this.rangeStart=a.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let s=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${s}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var o;let n=this.input;n&&(n.value=(o=this.inputValue)!=null?o:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let f=n.value.length;n.setSelectionRange(f,f)})}))});return}if(i&&!r){if(this.isDisabled(e))return;if(a.isSameDay(i,e)){if(!this.allowSameDayRange){this.rangeStart=a.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let d=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${d}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var c;let u=this.input;u&&(u.value=(c=this.inputValue)!=null?c:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let p=u.value.length;u.setSelectionRange(p,p)})}))});return}this.rangeStart=a.toLocalISODate(e),this.rangeEnd=a.toLocalISODate(e),this.previewEnd=null;let g=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${g}`,40),this.announceSelect(`${this.termEndSelected()}: ${g}`,140),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var u;let d=this.input;d&&(d.value=(u=this.inputValue)!=null?u:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let c=d.value.length;d.setSelectionRange(c,c)})}))});return}let s=a.parseLocalISO(this.rangeStart);if(this.wouldRangeContainDisabled(s,e))return;let[n,o]=a.compareDates(s,e)<=0?[s,e]:[e,s];this.rangeStart=a.toLocalISODate(n),this.rangeEnd=a.toLocalISODate(o),this.previewEnd=null;let f=this.formatSelectionLabel(n),v=this.formatSelectionLabel(o);this.announceSelect(`${this.termStartSelected()}: ${f}`,40),this.announceSelect(`${this.termEndSelected()}: ${v}`,140),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var d;let g=this.input;g&&(g.value=(d=this.inputValue)!=null?d:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let u=g.value.length;g.setSelectionRange(u,u)})}))});return}if(i&&r){if(this.isDisabled(e))return;this.rangeStart=a.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let s=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${s}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var o;let n=this.input;n&&(n.value=(o=this.inputValue)!=null?o:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let f=n.value.length;n.setSelectionRange(f,f)})}))})}}selectDate(t){this.readonly||(this.range?this.selectRangeDate(t):this.selectSingleDate(t))}ensureViewMonth(){if(this.viewMonth)return this.viewMonth;let t=this.value?a.parseLocalISO(this.value):null,e=this.rangeStart?a.parseLocalISO(this.rangeStart):null,i=a.startOfDayLocal(new Date),r=this.range&&e?e:t!=null?t:i,s=new Date(r.getFullYear(),r.getMonth(),1);return this.viewMonth=s,s}getMonthMatrix(t){var v;let e=(v=this.firstDayOfWeek)!=null?v:1,i=new Date(t.getFullYear(),t.getMonth(),1),r=new Date(i),s=(i.getDay()-e+7)%7;r.setDate(i.getDate()-s);let n=[],o=r;for(let g=0;g<6;g++){let d=[];for(let u=0;u<7;u++)d.push(new Date(o)),o.setDate(o.getDate()+1);n.push(d)}let f=g=>g.every(d=>d.getMonth()!==t.getMonth());for(;n.length>0&&f(n[n.length-1]);)n.pop();return{weeks:n}}formatMonthYear(t){try{return new Intl.DateTimeFormat(this.locale,{month:"long",year:"numeric"}).format(t)}catch(e){return`${t.toLocaleString(void 0,{month:"long"})} ${t.getFullYear()}`}}weekdayLabels(){var r;let t=(r=this.firstDayOfWeek)!=null?r:1,e=new Date(2021,7,1),i=[];for(let s=0;s<7;s++){let n=new Date(e);n.setDate(e.getDate()+(t+s)%7);try{i.push(new Intl.DateTimeFormat(this.locale,{weekday:"short"}).format(n))}catch(o){i.push(n.toLocaleDateString(void 0,{weekday:"short"}))}}return i}getTabTargetDayForCurrentView(t){var s;let e=(s=this.viewMonth)!=null?s:this.ensureViewMonth(),i=t.flat().find(n=>n.getMonth()===e.getMonth()&&a.isSameDay(n,this.today)&&!this.isDisabled(n));if(i)return a.startOfDayLocal(i);let r=t.flat().find(n=>n.getMonth()===e.getMonth()&&!this.isDisabled(n));return r?a.startOfDayLocal(r):null}onDayMouseEnter(t){if(!this.range||this.readonly)return;let e=this.rangeStart?a.parseLocalISO(this.rangeStart):null,i=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;if(e&&!i){let r=a.startOfDayLocal(t);this.previewEnd=this.isDisabled(r)?null:r,this.requestUpdate()}}onGridMouseLeave(){this.previewEnd!==null&&(this.previewEnd=null,this.requestUpdate())}renderCalendar(){var d,u;let t=(d=this.viewMonth)!=null?d:this.ensureViewMonth(),{weeks:e}=this.getMonthMatrix(t),i=this.formatMonthYear(t),r=this.weekdayLabels(),s=this.value?this.parseISO(this.value):null,n=this.rangeStart?this.parseISO(this.rangeStart):null,o=this.rangeEnd?this.parseISO(this.rangeEnd):null,f=this.previewEnd,v=c=>!this.range||!n||o||!f?!1:a.isBetweenInclusive(c,n,f),g=this.getTabTargetDayForCurrentView(e);return k`<div part="datepicker" class="${x("w-[284px] z-50 bg-white py-3 px-4",this.open?"block shadow-listbox":"hidden",(u=this.currentPlacement)!=null&&u.startsWith("bottom")?"border-r-2 border-b-2 border-l-2 form-control__listbox-border-bottom-right-radius form-control__listbox-border-bottom-left-radius":"border-r-2 border-t-2 border-l-2 form-control__listbox-border-top-right-radius form-control__listbox-border-top-left-radius","border-primary")}"><div class="flex flex-row items-center w-full justify-between mb-3" part="header"><div class="flex items-center"><button type="button" tabindex="0" class="nav prev w-6 h-6 hover:cursor-pointer sd-interactive" part="prev-year-button" @click="${()=>this.setYear(-1)}" @keydown="${c=>this.handleHeaderKeyDown(c,"year",-1,!1)}" aria-label="${this.localize.term("previousYear")}"><sd-6-16-5-icon library="_internal" name="chevrons-sm-left" class="h-6 w-6"></sd-6-16-5-icon></button> <button type="button" tabindex="0" class="nav prev w-6 h-6 hover:cursor-pointer sd-interactive" part="prev-month-button" @click="${()=>this.setMonth(-1)}" @keydown="${c=>this.handleHeaderKeyDown(c,"month",-1,!1)}" aria-label="${this.localize.term("previousMonth")}"><sd-6-16-5-icon library="_internal" name="chevron-sm-left" class="h-6 w-6"></sd-6-16-5-icon></button></div><div tabindex="-1" class="month-label flex justify-center sd-headline sd-headline--size-base" part="month-label" aria-live="polite">${i}</div><div class="flex items-center"><button type="button" tabindex="0" class="nav next w-6 h-6 hover:cursor-pointer sd-interactive" part="next-month-button" @click="${()=>this.setMonth(1)}" @keydown="${c=>this.handleHeaderKeyDown(c,"month",1,!1)}" aria-label="${this.localize.term("nextMonth")}"><sd-6-16-5-icon library="_internal" name="chevron-sm-right" class="h-6 w-6"></sd-6-16-5-icon></button> <button type="button" tabindex="0" class="nav next w-6 h-6 hover:cursor-pointer sd-interactive" part="next-year-button" @click="${()=>this.setYear(1)}" @keydown="${c=>this.handleHeaderKeyDown(c,"year",1,!0)}" aria-label="${this.localize.term("nextYear")}"><sd-6-16-5-icon library="_internal" name="chevrons-sm-right" class="h-6 w-6"></sd-6-16-5-icon></button></div></div><sd-6-16-5-divider></sd-6-16-5-divider><div class="sr-only" aria-live="polite" aria-atomic="true">${this.statusNavText}</div><div class="sr-only" aria-live="assertive" aria-atomic="true">${this.statusSelectText}</div><div class="sr-only" id="keyboard-hint">${this.localize.term("datePickerInfo")}</div><div class="grid mt-2" role="grid" aria-describedby="keyboard-hint" aria-label="${i}" part="grid" @mouseleave="${this.onGridMouseLeave}" @focusin="${()=>{this.tabbingIntoGrid=!1}}"><div class="grid-row grid-head grid grid-cols-7 gap-y-[1px]" role="row">${r.map((c,p)=>k`<div role="columnheader" aria-colindex="${p+1}" part="weekday" class="cell head flex items-center justify-center font-bold text-black text-sm leading-none h-8" aria-label="${c}" title="${c}" id="${"col-"+(p+1)}">${c}</div>`)}</div>${e.map((c,p)=>k`<div class="grid-row grid grid-cols-7 ${p===0?"mt-2":""}" role="row" aria-rowindex="${p+2}">${c.map((m,L)=>{let I=m.getMonth()===t.getMonth(),D=this.isDisabled(m)||!this.inMinMax(m),E=a.isSameDay(m,this.focusedDate),y=a.isSameDay(m,this.today),S=!this.range&&s?a.isSameDay(m,s):!1,w=this.range&&n?a.isSameDay(m,n):!1,C=this.range&&o?a.isSameDay(m,o):!1,T=this.range&&n&&o?a.isBetweenInclusive(m,n,o):!1,P=v(m)&&!D,Y=-1,$=g&&a.isSameDay(m,g);(this.tabbingIntoGrid&&$||!this.tabbingIntoGrid&&E)&&(Y=0);let V=this.isWeekend(m),z=m.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"}),R=w?this.localize.term("startDateSelected"):C?this.localize.term("endDateSelected"):void 0;return k`<button type="button" part="day" class="${x("cell day flex items-center justify-center focus-visible:outline focus:outline-2 focus:outline-primary -outline-offset-2 rounded w-[36px]",this.size==="sm"?"text-sm h-6":"text-base h-8",w||C?E?"outline-none sd-6-16-5-datepicker__date-item--selected--hover-color-background sd-6-16-5-datepicker__date-item--selected-color-text":"outline-none sd-6-16-5-datepicker__date-item--selected-color-background sd-6-16-5-datepicker__date-item--selected-color-text hover:sd-6-16-5-datepicker__date-item--selected--hover-color-background":"hover:sd-6-16-5-datepicker__date-item--hover--default-color-text",!w&&!C&&!T&&"hover:sd-6-16-5-datepicker__date-item--hover--default-color-background",S?"selected outline-none border-primary sd-6-16-5-datepicker__date-item--selected-color-background sd-6-16-5-datepicker__date-item--selected-color-text hover:sd-6-16-5-datepicker__date-item--selected-color-text hover:sd-6-16-5-datepicker__date-item--selected--hover-color-background":I?this.isInDisabledDates(m)||!this.inMinMax(m)?"out-month text-neutral-500":this.disabledWeekends&&V?"weekend-day text-neutral-500":"in-month sd-6-16-5-datepicker__date-item--default-color-text":this.disabledWeekends&&V?"out-month weekend-day text-neutral-500":V?"out-month weekend-day text-neutral-700":"out-month text-neutral-700 hover:sd-6-16-5-datepicker__date-item--hover--prev-next-color-text hover:sd-6-16-5-datepicker__date-item--hover--prev-next-color-background",w?"rounded-l-md rounded-r-none":"",C?"range-end rounded-r-md rounded-l-none":"",T&&!w&&!C?"in-range selected sd-6-16-5-datepicker__date-item--range-color-background rounded-none hover:sd-6-16-5-datepicker__date-item--selected--hover-color-background hover:sd-6-16-5-datepicker__date-item--selected-color-text":"",!T&&P&&!w&&!C?"in-preview-range bg-primary-100 text-primary-500 rounded-none":"",y&&!S&&!w&&!C&&E?"today border-[1px] border-primary sd-6-16-5-datepicker__date-item--current-font-weight":"",D?"disabled cursor-not-allowed hover:bg-transparent":"cursor-pointer",E&&!y?"focused outline outline-2 outline-primary":"")}" role="gridcell" aria-colindex="${L+1}" aria-labelledby="${"col-"+(L+1)}" .tabIndex="${Y}" ?disabled="${D||this.disabled||this.readonly}" aria-disabled="${D||this.visuallyDisabled||this.disabled||this.readonly?"true":"false"}" aria-selected="${S||T||w||C?"true":"false"}" aria-current="${y?"date":q}" aria-label="${z}" aria-roledescription="${R!=null?R:q}" @focus="${()=>this.focusedDate=a.startOfDayLocal(m)}" @mouseenter="${()=>this.onDayMouseEnter(m)}" @keydown="${this.onKeyDown}" @click="${()=>{this.focusedDate=a.startOfDayLocal(m),this.selectDate(m)}}">${m.getDate()}</button>`})}</div>`)}</div></div>`}render(){var c,p;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,r=!!t.tooltip,s=this.value!==null&&String(this.value).length>0||this.range&&this.rangeStart!==null||this.rangeEnd!==null,n=this.floatingLabel&&e&&(this.hasFocus||this.open||s)&&!this.disabled&&!this.visuallyDisabled,o=this.disabled||this.visuallyDisabled?"text-neutral-500":"icon-color",f={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],v={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],g=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||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",d={disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"border-neutral-800",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"}[g],u=this.size==="sm"?"text-sm":"text-base";return k`<div part="form-control" class="${x("min-w-[284px]",this.open&&"z-50",(this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${e&&!this.floatingLabel||r?k`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${x(e?"inline-block form-control-color-text":"hidden",u)}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${t.tooltip?k`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${x("relative w-full",this.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}">${e&&this.floatingLabel?k`<label id="label" part="form-control-floating-label" class="${x("absolute left-4 z-20 pointer-events-none transition-all duration-200 form-control--filled__floating-label-color-text",n?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-1/2 -translate-y-1/2",n&&"mt-1")}" for="input"><span class="${x("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",n&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}<div part="border" class="${x("absolute top-0 w-full h-full pointer-events-none border form-control-border-radius z-10 transition-[border] duration-medium ease-in-out",d,this.open&&((c=this.currentPlacement)!=null&&c.startsWith("bottom")?this.open&&this.alignment==="left"?"rounded-bl-none":"rounded-br-none":this.open&&this.alignment==="left"?"rounded-tl-none":"rounded-tr-none"))}"></div><sd-6-16-5-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${x("inline-flex relative w-full",(p=this.currentPlacement)!=null&&p.startsWith("bottom")?"origin-top":"origin-bottom")}" placement="${this.alignment==="left"?`${this.placement}-start`:`${this.placement}-end`}" flip shift auto-size="vertical" auto-size-padding="10" exportparts="popup:popup__content,"><div part="base" class="${x("px-4 flex flex-row items-center rounded-default transition-colors ease-in-out duration-medium hover:duration-fast w-full",!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:[@media(hover:hover)]:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",g==="disabled"||g==="visuallyDisabled"?"text-neutral-500":"text-black",g==="invalid"&&"form-control--invalid-color-background",g==="active"&&"shadow")}" slot="anchor"><input id="input" type="text" role="combobox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="dialog" aria-controls="calendar-grid" aria-describedby="${i?"help-text":void 0}" aria-invalid="${this.showInvalidStyle?"true":"false"}" aria-label="${this.range?"Select date range":"Select a date"}" class="${x("min-w-0 grow focus:outline-none bg-transparent hover:cursor-pointer text-black",this.visuallyDisabled||this.disabled?"placeholder:text-neutral-500 cursor-not-allowed":"placeholder:text-neutral-700",{sm:"h-8",md:"h-10",lg:"h-12"}[this.size],u,this.floatingLabel&&"mt-4")}" autocomplete="off" spellcheck="false" placeholder="${!this.floatingLabel||n?this.placeholder||this.localize.term(this.range?"dateRangePlaceholder":"datePlaceholder"):""}" ?disabled="${this.disabled}" ?required="${this.required}" ?readonly="${this.readonly||this.visuallyDisabled}" @input="${this.handleInput}" @click="${this.handleMouseDown}" @keydown="${this.handleInputKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleInputBlur}" @invalid="${this.handleInvalid}"> ${this.showInvalidStyle?k`<sd-6-16-5-icon part="invalid-icon" class="${x("text-error",f,v)}" library="_internal" name="risk"></sd-6-16-5-icon>`:""} ${this.showValidStyle&&this.styleOnValid?k`<sd-6-16-5-icon class="${x("text-success shrink-0",f,v)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-6-16-5-icon>`:""}<sd-6-16-5-icon class="${x(o,f,v,"hover:cursor-pointer")}" library="_internal" name="calendar" @click="${this.show}"></sd-6-16-5-icon></div>${this.renderCalendar()}</sd-6-16-5-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${x("text-sm text-neutral-700 mt-1",i?"block":"hidden")}" aria-hidden="${!i}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};l.styles=[...H.styles,N`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
2
|
-
:host{position:relative;display:inline-block;width:100%;--tw-outline-style:none;outline-style:none}:host([required]) #label::after{content:' *'}:host([visually-disabled]) input{caret-color:transparent}.today:hover{border-color:rgba(var(--sd-datepicker__date-item--hover--default-color-border,rgba(var(--sd-color-primary-500))))}.in-range,.today{color:rgba(var(--sd-datepicker__date-item--current-color-text,rgba(var(--sd-color-primary))))}.icon-color{color:rgb(var(--sd-color-icon-fill-primary))}.month-label{color:rgb(var(--sd-color-border-primary))!important}`],h([b({type:String,reflect:!0})],l.prototype,"locale",2),h([b({type:String,converter:A,reflect:!0})],l.prototype,"value",2),h([b({type:Boolean,reflect:!0})],l.prototype,"range",2),h([b({attribute:"range-start",converter:A,reflect:!0})],l.prototype,"rangeStart",2),h([b({attribute:"range-end",converter:A,reflect:!0})],l.prototype,"rangeEnd",2),h([b({type:Boolean})],l.prototype,"allowSameDayRange",2),h([b({type:String,converter:A,reflect:!0})],l.prototype,"min",2),h([b({type:String,converter:A,reflect:!0})],l.prototype,"max",2),h([b({attribute:"view-month",converter:j})],l.prototype,"viewMonth",2),h([b({type:Number})],l.prototype,"firstDayOfWeek",2),h([b({type:Boolean,reflect:!0,attribute:"disabled-weekends"})],l.prototype,"disabledWeekends",2),h([b({attribute:"disabled-dates",converter:J})],l.prototype,"disabledDates",2),h([b({attribute:!1})],l.prototype,"isDateDisabled",2),h([b({type:String,reflect:!0})],l.prototype,"size",2),h([b({type:String})],l.prototype,"alignment",2),h([b({type:String,reflect:!0})],l.prototype,"label",2),h([b({type:String,attribute:"help-text",reflect:!0})],l.prototype,"helpText",2),h([b({attribute:"floating-label",type:Boolean,reflect:!0})],l.prototype,"floatingLabel",2),h([b({type:Boolean,reflect:!0})],l.prototype,"disabled",2),h([b({type:Boolean,reflect:!0})],l.prototype,"required",2),h([b({type:Boolean,attribute:"visually-disabled"})],l.prototype,"visuallyDisabled",2),h([b({type:Boolean,reflect:!0,attribute:"style-on-valid"})],l.prototype,"styleOnValid",2),h([b({type:Boolean,reflect:!0})],l.prototype,"readonly",2),h([b({type:String,reflect:!0})],l.prototype,"placement",2),h([b({type:String,reflect:!0})],l.prototype,"placeholder",2),h([b({reflect:!0})],l.prototype,"name",2),h([b({type:String,reflect:!0})],l.prototype,"form",2),h([O()],l.prototype,"open",2),h([O()],l.prototype,"focusedDate",2),h([O()],l.prototype,"today",2),h([O()],l.prototype,"disabledDatesSet",2),h([O()],l.prototype,"previewEnd",2),h([O()],l.prototype,"statusNavText",2),h([O()],l.prototype,"statusSelectText",2),h([O()],l.prototype,"hasFocus",2),h([O()],l.prototype,"showValidStyle",2),h([O()],l.prototype,"showInvalidStyle",2),h([O()],l.prototype,"currentPlacement",2),h([O()],l.prototype,"inputValue",2),h([B("sd-6-
|
|
1
|
+
import{a}from"./chunk.WWGARXPI.js";import{b as K}from"./chunk.RAP66B6O.js";import{a as G}from"./chunk.CGQ2BPPZ.js";import{a as U}from"./chunk.IQPMMUES.js";import{a as x}from"./chunk.QIKBKQXB.js";import{a as _}from"./chunk.NYKJXI3Q.js";import{a as W,b,c as O,d as B,h as H}from"./chunk.AWJGLIES.js";import{b as N,e as k,i as q}from"./chunk.UOAG5PNU.js";import{e as h}from"./chunk.6EV4YU6C.js";var A={fromAttribute(M){if(!M)return null;let t=M.trim().replace(/[./]/g,"-").match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!t)return null;let e=`${t[1]}-${t[2]}-${t[3]}`,i=new Date(+t[1],+t[2]-1,+t[3]);return i.getFullYear()!==+t[1]||i.getMonth()!==+t[2]-1||i.getDate()!==+t[3]?null:e},toAttribute(M){return M!=null?M:""}},j={fromAttribute(M){if(!M)return null;let F=M.trim().replace(/[./]/g,"-"),t=F.match(/^(\d{2})-(\d{4})$/),e,i;if(t)e=Number(t[1]),i=Number(t[2]);else{if(t=F.match(/^(\d{4})-(\d{2})$/),!t)return null;i=Number(t[1]),e=Number(t[2])}return!i||!e||e<1||e>12?null:new Date(i,e-1,1)},toAttribute(M){if(!M)return"";let F=M.getFullYear(),t=String(M.getMonth()+1).padStart(2,"0");return`${F}-${t}`}},J={fromAttribute(M){if(!M)return[];let F=[],t=M.trim();if(t.startsWith("["))try{let i=JSON.parse(t);Array.isArray(i)&&(F=i.map(String))}catch(i){return[]}else F=t.split(/[\s,]+/).map(i=>i.trim()).filter(Boolean);let e=[];for(let i of F){let s=i.replace(/[-/]/g,".").split(".");if(s.length!==3)continue;let[n,o,f]=s.map(Number);if(!n||!o||!f)continue;let v=new Date(n,o-1,f);if(v.getFullYear()!==n||v.getMonth()!==o-1||v.getDate()!==f)continue;let g=`${n}-${String(o).padStart(2,"0")}-${String(f).padStart(2,"0")}`;e.push(g)}return e},toAttribute(M){return M?M.join(","):""}},l=class extends H{constructor(){super();this.localize=new U(this);this.hasSlotController=new G(this,"label","help-text","tooltip");this.formControlController=new K(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.locale="en-US";this.value=null;this.range=!1;this.rangeStart=null;this.rangeEnd=null;this.allowSameDayRange=!1;this.min=void 0;this.max=void 0;this.viewMonth=null;this.firstDayOfWeek=null;this.disabledWeekends=!1;this.disabledDates=[];this.isDateDisabled=null;this.size="lg";this.alignment="left";this.label="";this.helpText="";this.floatingLabel=!1;this.disabled=!1;this.required=!1;this.visuallyDisabled=!1;this.styleOnValid=!1;this.readonly=!1;this.placement="bottom";this.placeholder="";this.name="";this.form="";this.open=!1;this.today=a.startOfDayLocal(new Date);this.disabledDatesSet=new Set;this.previewEnd=null;this.statusNavText="";this.statusSelectText="";this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.currentPlacement=this.placement;this.inputValue="";this.tabbingIntoGrid=!1;this.statusBumpCounter=0;this.onFocusOut=t=>{let e=t.relatedTarget;e&&this.contains(e)||(this.open&&(this.hide(),this.emit("sd-datepicker-close")),this.hasFocus=!1)};this.onFocusIn=t=>{if(this.disabled||this.visuallyDisabled)return;t.composedPath().some(r=>{var s,n;return r instanceof HTMLElement&&(((s=r.classList)==null?void 0:s.contains("nav"))||((n=r.classList)==null?void 0:n.contains("month-label")))})&&(this.tabbingIntoGrid=!0)};this.handleInput=t=>{var n,o,f,v,g;if(this.disabled||this.visuallyDisabled||this.readonly){(n=t.preventDefault)==null||n.call(t),(o=t.stopPropagation)==null||o.call(t);return}let e=t.target,i=e.value,r=(f=e.selectionStart)!=null?f:i.length,s=(v=t.inputType)==null?void 0:v.startsWith("delete");if(this.range){let d=i.replace(/\D/g,""),u=d.slice(0,8),c=d.slice(8,16),p=this.buildDmyFromDigits(u),m=this.buildDmyFromDigits(c),L;u.length===0?L="":u.length<8?L=p:c.length>0?L=`${p} - ${m}`:L=s?p:`${p} -`;let I=this.countDigitsBeforeCaret(i,r),D;if(I<=8){let y=this.digitIndexToDmyCaretPos(Math.min(I,8));D=Math.min(y,p.length)}else{let y=u.length<8?p.length:p.length+3,S=Math.min(I-8,8),w=this.digitIndexToDmyCaretPos(S);D=y+Math.min(w,m.length)}this.inputValue=L;let E=!1;if(/^\d{2}\.\d{2}\.\d{4}$/.test(p)){let y=this.dmyToIso(p),S=y?a.parseLocalISO(y):null;S&&!this.isDisabled(S)&&this.inMinMax(S)&&this.rangeStart!==y&&(this.rangeStart=y,this.previewEnd=null,this.viewMonth=new Date(S.getFullYear(),S.getMonth(),1),this.focusedDate=a.startOfDayLocal(S),E=!0)}else this.rangeStart&&(this.rangeStart=null,E=!0),this.rangeEnd&&(this.rangeEnd=null,E=!0);if(/^\d{2}\.\d{2}\.\d{4}$/.test(m)&&this.rangeStart){let y=a.parseLocalISO(this.rangeStart),S=this.dmyToIso(m),w=S?a.parseLocalISO(S):null;if(!!w&&!this.isDisabled(w)&&this.inMinMax(w)){let[T,P]=a.compareDates(y,w)<=0?[y,w]:[w,y],Y=a.isSameDay(T,P);if((this.allowSameDayRange||!Y)&&!this.wouldRangeContainDisabled(T,P)){let V=a.toLocalISODate(a.startOfDayLocal(T)),z=a.toLocalISODate(a.startOfDayLocal(P));(this.rangeStart!==V||this.rangeEnd!==z)&&(this.rangeStart=V,this.rangeEnd=z,this.viewMonth=new Date(P.getFullYear(),P.getMonth(),1),this.focusedDate=a.startOfDayLocal(P),E=!0)}}}else this.rangeEnd&&(this.rangeEnd=null,E=!0);this.showInvalidStyle=!1,this.showValidStyle=!!(this.rangeStart&&this.rangeEnd),E&&(this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})),Promise.resolve().then(()=>{requestAnimationFrame(()=>{var S;let y=(S=this.input)!=null?S:e;y&&(y.value=this.inputValue,y.setSelectionRange(D,D))})})}else{let d=e,u=d.value,c=(g=d.selectionStart)!=null?g:u.length,p=u.replace(/\D/g,"").slice(0,8),m=p.slice(0,2),L=p.slice(2,4),I=p.slice(4,8),D="";m.length>0&&(D+=m,m.length===2&&(D+=".")),L.length>0&&m.length===2&&(D+=L,L.length===2&&(D+=".")),I.length>0&&m.length===2&&L.length===2&&(D+=I),D=D.replace(/\.\.+/g,".");let E=this.inputValue||"";this.inputValue=D;let y=c,S=$=>{let V=[];for(let z=0;z<$.length;z++)$[z]==="."&&V.push(z);return V},w=S(E),C=S(D),T=w.filter($=>$<c).length,Y=C.filter($=>$<c).length-T;if(Y>0?y+=Y:!w.includes(c)&&C.includes(c)&&(y+=1),y=Math.min(Math.max(0,y),D.length),requestAnimationFrame(()=>{var V;let $=(V=this.input)!=null?V:d;$&&($.value=this.inputValue,$.setSelectionRange(y,y))}),/^\d{2}\.\d{2}\.\d{4}$/.test(D)){let $=this.parseInputText(D);this.applyParsedInput($)}else this.showInvalidStyle=!1,this.showValidStyle=!1;return}if(!this.open&&this.hasFocus&&!this.disabled&&!this.visuallyDisabled&&this.show(),this.range){let d=this.rangeStart?a.parseLocalISO(this.rangeStart):null,u=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;d&&!u?this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(d)}`):d&&u&&this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(d)}; ${this.termEndSelected()}: ${this.formatSelectionLabel(u)}`)}else if(this.value){let d=a.parseLocalISO(this.value);this.setNavStatus(`${this.formatSelectionLabel(d)}`)}};this.handleInputBlur=()=>{if(this.disabled||this.visuallyDisabled){this.handleBlur();return}let t=this.parseInputText(this.inputValue);t.valid?this.applyParsedInput(t):(this.inputValue=this.formatInputValue(),this.showInvalidStyle=!!this.inputValue&&!this.value&&!this.rangeStart),this.handleBlur()};this.handleCurrentPlacement=t=>{let e=t.detail;e&&(this.currentPlacement=e)};this.handleHeaderKeyDown=(t,e,i,r)=>{if(!(this.disabled||this.visuallyDisabled||this.readonly)){if(t.key==="Tab"&&!t.shiftKey){r&&(t.preventDefault(),t.stopPropagation(),this.tabbingIntoGrid=!0,this.focusInitialGridDay());return}(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),t.stopPropagation(),e==="month"?this.setMonth(i):this.setYear(i))}};this.onKeyDown=t=>{var s,n;if(this.disabled||this.visuallyDisabled||this.readonly){t.preventDefault(),t.stopPropagation();return}let e=t.key,i=!0,r=new Date(this.focusedDate);switch(e){case"ArrowLeft":r.setDate(r.getDate()-1);break;case"ArrowRight":r.setDate(r.getDate()+1);break;case"ArrowUp":r.setDate(r.getDate()-7);break;case"ArrowDown":r.setDate(r.getDate()+7);break;case"Escape":{this.previewEnd?(this.previewEnd=null,this.setNavStatus(this.localize.term("selectionCleared"))):this.range&&this.rangeStart&&!this.rangeEnd&&(this.rangeStart=null,this.setNavStatus(this.localize.term("selectionCleared")),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}})),this.open&&(this.hide(),this.emit("sd-datepicker-close"));break}case"Enter":case" ":this.selectDate(this.focusedDate);break;default:i=!1}if(i){t.preventDefault();let o=(s=this.viewMonth)!=null?s:this.ensureViewMonth();if(r.getMonth()!==o.getMonth()||r.getFullYear()!==o.getFullYear()){let d=new Date(r.getFullYear(),r.getMonth(),1);this.viewMonth=d;let u=this.formatMonthYear(d);this.setNavStatus(u)}let v=a.startOfDayLocal(r);v.getTime()!==((n=this.focusedDate)==null?void 0:n.getTime())&&(this.focusedDate=v);let g=v.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"});this.setNavStatus(g),this.requestUpdate(),requestAnimationFrame(()=>{let d=this.shadowRoot,u=d==null?void 0:d.querySelector("button.day.focused");u==null||u.focus({preventScroll:!0})})}};this.handleInputKeyDown=t=>{if((this.disabled||this.visuallyDisabled||this.readonly)&&t.key!=="Tab"){t.preventDefault(),t.stopPropagation();return}if(!(t.key==="ArrowLeft"||t.key==="ArrowRight"||t.key==="ArrowUp"||t.key==="ArrowDown"||t.key==="Home"||t.key==="End"||t.key==="PageUp"||t.key==="PageDown")){if(t.key==="Escape"&&this.open){t.preventDefault(),this.hide(),this.emit("sd-datepicker-close");return}t.key==="Enter"&&!this.open&&!this.disabled&&!this.visuallyDisabled&&!this.readonly&&(t.preventDefault(),this.show())}};this.handleOutsideClick=this.handleOutsideClick.bind(this)}connectedCallback(){var n;super.connectedCallback(),this.syncDisabledDatesSet(),document.addEventListener("click",this.handleOutsideClick),this.addEventListener("focusout",this.onFocusOut),this.updateComplete.then(()=>{this.formControlController.updateValidity()});let t=this.value?a.parseLocalISO(this.value):null,e=this.rangeStart?a.parseLocalISO(this.rangeStart):null,i=a.startOfDayLocal(new Date),r=this.range&&e?e:t!=null?t:i,s=(n=this.viewMonth)!=null?n:new Date(r.getFullYear(),r.getMonth(),1);this.viewMonth=s,this.focusedDate=a.clampDateToMonth(r,s),(this.firstDayOfWeek===null||this.firstDayOfWeek===void 0)&&(this.firstDayOfWeek=1),this.inputValue=this.formatInputValue(),this.setAttribute("role","group"),this.setAttribute("aria-label",this.range?this.localize.term("datePickerRange"):this.localize.term("datePicker")),this.addEventListener("focusin",this.onFocusIn)}firstUpdated(){this.formControlController.updateValidity()}handleOpenChange(){this.popup&&(this.popup.active=this.open&&!this.disabled&&!this.visuallyDisabled)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.onFocusIn),this.removeEventListener("focusout",this.onFocusOut),document.removeEventListener("click",this.handleOutsideClick)}handleLocaleChange(){this.firstDayOfWeek===null&&(this.firstDayOfWeek=1),this.requestUpdate()}handleViewMonthChange(){var i;if(!this.viewMonth)return;let t=this.focusedDate||this.range&&this.rangeEnd&&a.parseLocalISO(this.rangeEnd)||this.range&&this.rangeStart&&a.parseLocalISO(this.rangeStart)||this.value&&a.parseLocalISO(this.value)||this.today;if(!t)return;let e=a.clampDateToMonth(t,this.viewMonth);e.getTime()!==((i=this.focusedDate)==null?void 0:i.getTime())&&(this.focusedDate=e)}handleDisabledDatesChange(){this.syncDisabledDatesSet(),this.requestUpdate()}handleValueChange(){let t=this.value?a.parseLocalISO(this.value):null;t&&(this.viewMonth=new Date(t.getFullYear(),t.getMonth(),1),this.focusedDate=a.startOfDayLocal(t)),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var i;let e=this.input;if(e){e.value=(i=this.inputValue)!=null?i:"";let r=e.value.length;e.setSelectionRange(r,r)}this.formControlController.updateValidity()}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})}handleRangeChange(){let t=this.rangeStart?a.parseLocalISO(this.rangeStart):null,e=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null,i=t!=null?t:e;i&&(this.viewMonth=new Date(i.getFullYear(),i.getMonth(),1),this.focusedDate=a.startOfDayLocal(i)),this.previewEnd!==null&&(this.previewEnd=null),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var s;let r=this.input;if(r){r.value=(s=this.inputValue)!=null?s:"";let n=r.value.length;r.setSelectionRange(n,n)}this.formControlController.updateValidity()}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})}handleDisabledChange(){this.formControlController.setValidity(this.disabled),(this.disabled||this.visuallyDisabled)&&(this.open=!1)}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}get validity(){let t={valid:!0};return this.input instanceof HTMLInputElement?this.input.validity:t}get validationMessage(){return(this.input instanceof HTMLInputElement?this.input.validationMessage:"")||""}checkValidity(){return this.input instanceof HTMLInputElement?this.input.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input instanceof HTMLInputElement?this.input.reportValidity():!0}setCustomValidity(t){var e;(e=this.input)==null||e.setCustomValidity(t),this.formControlController.updateValidity()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}parseISO(t){return a.parseLocalISO(t)}inMinMax(t){let e=s=>{if(s==null)return null;if(s instanceof Date)return a.startOfDayLocal(s);if(typeof s=="number")return a.startOfDayLocal(new Date(s));if(typeof s=="string"){let n=this.parseISO(s);return n?a.startOfDayLocal(n):null}return null},i=e(this.min),r=e(this.max);return!(i&&t<i||r&&t>r)}isInDisabledDates(t){if(!this.disabledDatesSet||this.disabledDatesSet.size===0)return!1;let e=t.getFullYear(),i=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0"),s=`${e}-${i}-${r}`;return this.disabledDatesSet.has(s)}isWeekend(t){let e=t.getDay();return e===0||e===6}isDisabled(t){var e;return!!(!this.inMinMax(t)||this.disabledWeekends&&this.isWeekend(t)||this.isInDisabledDates(t)||(e=this.isDateDisabled)!=null&&e.call(this,t))}setNavStatus(t){this.statusNavText=t}announceSelect(t,e=40){setTimeout(()=>{this.statusBumpCounter++;let i="\u200B".repeat(this.statusBumpCounter%3);this.statusSelectText=t+i},e)}formatSelectionLabel(t){if(this.locale==="de-DE")return t.toLocaleDateString("de-DE",{day:"numeric",month:"long",year:"numeric"});let e=t.getDate(),i=this.ordinal(e),r=t.toLocaleDateString("en-US",{month:"long"}),s=t.getFullYear();return`${i} of ${r} ${s}`}ordinal(t){let e=["th","st","nd","rd"],i=t%100,r=e[(i-20)%10]||e[i]||e[0];return t+r}syncDisabledDatesSet(){let t=[];if(Array.isArray(this.disabledDates))t=this.disabledDates;else if(typeof this.disabledDates=="string"){let e=this.disabledDates.trim();if(e.startsWith("["))try{let i=JSON.parse(e);Array.isArray(i)&&(t=i)}catch(i){t=[]}else e.length>0&&(t=e.split(",").map(i=>i.trim()).filter(Boolean))}this.disabledDatesSet=new Set(t)}wouldRangeContainDisabled(t,e){let i=a.compareDates(t,e)<=0?a.startOfDayLocal(t):a.startOfDayLocal(e),r=a.compareDates(t,e)<=0?a.startOfDayLocal(e):a.startOfDayLocal(t),s=new Date(i);for(;a.compareDates(s,r)<=0;){if(this.isDisabled(s))return!0;s.setDate(s.getDate()+1)}return!1}termStartSelected(){var t,e;return(e=(t=this.localize)==null?void 0:t.term)==null?void 0:e.call(t,"startDateSelected")}termEndSelected(){var t,e;return(e=(t=this.localize)==null?void 0:t.term)==null?void 0:e.call(t,"endDateSelected")}isoToDmy(t){if(!t)return"";let e=a.parseLocalISO(t);if(e||(e=a.parseLocalISO(t.replace(/-/g,"."))),!e)return"";let i=String(e.getDate()).padStart(2,"0"),r=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getFullYear());return`${i}.${r}.${s}`}dmyToIso(t){if(!t)return null;let e=t.match(/^(\d{2})\.(\d{2})\.(\d{4})$/);if(!e)return null;let i=Number(e[1]),r=Number(e[2]),s=Number(e[3]),n=new Date(s,r-1,i);if(n.getFullYear()!==s||n.getMonth()!==r-1||n.getDate()!==i)return null;let o=a.startOfDayLocal(n);return a.toLocalISODate(o)}formatInputValue(){let t=(this.locale||"").toLowerCase(),e=(this.getAttribute("lang")||"").toLowerCase(),r=t.startsWith("de")||e.startsWith("de")?"\u2013":"-";if(!this.range)return this.isoToDmy(this.value);let s=this.isoToDmy(this.rangeStart),n=this.isoToDmy(this.rangeEnd);return s&&n?`${s} ${r} ${n}`:s&&!n?`${s} ${r}`:""}parseInputText(t){var r,s;let e=t.trim();if(this.range){let n=e.split(/\s*-\s*/);if(n.length===1){let o=n[0];if(!o)return{start:null,end:null,valid:!0};let f=this.dmyToIso(o);return f?{start:f,end:null,valid:!0}:{start:null,end:null,valid:!1}}else if(n.length>=2){let o=(r=n[0])!=null?r:"",f=(s=n[1])!=null?s:"",v=o?this.dmyToIso(o):null,g=f?this.dmyToIso(f):null;return o&&!v?{start:null,end:null,valid:!1}:f&&!g?{start:null,end:null,valid:!1}:{start:v,end:g,valid:!0}}return{start:null,end:null,valid:!1}}if(!e)return{single:null,valid:!0};let i=this.dmyToIso(e);return i?{single:i,valid:!0}:{single:null,valid:!1}}applyParsedInput(t){var o,f,v,g;if(!t.valid)return this.showInvalidStyle=!0,this.showValidStyle=!1,this.formControlController.setValidity(!1),!1;let e=d=>{if(!d)return!0;let u=a.parseLocalISO(d);return!(!this.inMinMax(u)||this.isDisabled(u))},i=!1;if(this.range){let d=(o=t.start)!=null?o:null,u=(f=t.end)!=null?f:null;if(!e(d)||u&&!e(u))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let c=d?a.parseLocalISO(d):null,p=u?a.parseLocalISO(u):null;if(c&&p){if(a.compareDates(c,p)>0){let I=c;c=p,p=I}if(!this.allowSameDayRange&&a.isSameDay(c,p))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;if(this.wouldRangeContainDisabled(c,p))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1}let m=c?a.toLocalISODate(a.startOfDayLocal(c)):null,L=p?a.toLocalISODate(a.startOfDayLocal(p)):null;if(this.rangeStart!==m||this.rangeEnd!==L){this.rangeStart=m,this.rangeEnd=L,this.previewEnd=null,i=!0;let I=(v=c!=null?c:p)!=null?v:this.today;this.viewMonth=new Date(I.getFullYear(),I.getMonth(),1),this.focusedDate=a.startOfDayLocal(I),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}})}return this.showInvalidStyle=!1,this.range?this.showValidStyle=!!(this.rangeStart&&this.rangeEnd&&this.styleOnValid):this.showValidStyle=!!(this.value&&this.styleOnValid),this.formControlController.setValidity(!0),this.updateComplete.then(()=>{this.formControlController.updateValidity()}),!0}let r=(g=t.single)!=null?g:null;if(!e(r))return this.input.setCustomValidity(this.localize.term("datePickerRange")),this.formControlController.setValidity(!1),this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let s=r?a.parseLocalISO(r):null,n=s?a.toLocalISODate(a.startOfDayLocal(s)):null;return this.value!==n&&(this.value=n,i=!0,s&&(this.viewMonth=new Date(s.getFullYear(),s.getMonth(),1),this.focusedDate=a.startOfDayLocal(s)),this.emit("sd-select",{detail:{value:this.value,date:s!=null?s:null}})),this.showInvalidStyle=!1,this.showValidStyle=!!this.value,this.inputValue=this.formatInputValue(),i}buildDmyFromDigits(t){let e=t.slice(0,8),i=e.slice(0,2),r=e.slice(2,4),s=e.slice(4,8),n=i;return r.length&&(n+="."+r),s.length&&(n+="."+s),n}digitIndexToDmyCaretPos(t){return t<=2?t:t<=4?3+(t-2):6+(t-4)}countDigitsBeforeCaret(t,e){return t.slice(0,e).replace(/\D/g,"").length}handleOutsideClick(t){var i,r;((r=(i=t.composedPath)==null?void 0:i.call(t))!=null?r:[]).includes(this)||(this.hide(),this.hasFocus=!1,this.emit("sd-datepicker-close"))}show(){if(this.open||this.disabled||this.visuallyDisabled||this.readonly){this.open=!1;return}this.open=!0}hide(){if(!this.open||this.disabled){this.open=!1;return}this.open=!1}handleMouseDown(t){if(this.visuallyDisabled||this.disabled||this.readonly){t.preventDefault(),t.stopPropagation();return}t.preventDefault(),this.open||this.show()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleFocus(){this.hasFocus=!0,!this.open&&!this.disabled&&!this.visuallyDisabled&&!this.readonly&&this.show(),this.emit("sd-focus")}setMonth(t){var s;let e=(s=this.viewMonth)!=null?s:this.ensureViewMonth(),i=new Date(e.getFullYear(),e.getMonth()+t,1);if(i.getMonth()===e.getMonth()&&i.getFullYear()===e.getFullYear())return;this.viewMonth=i;let r=this.formatMonthYear(i);this.setNavStatus(r),this.emit("sd-month-change",{detail:{month:i}})}setYear(t){var s;let e=(s=this.viewMonth)!=null?s:this.ensureViewMonth(),i=new Date(e.getFullYear()+t,e.getMonth(),1);if(i.getFullYear()===e.getFullYear()&&i.getMonth()===e.getMonth())return;this.viewMonth=i;let r=this.formatMonthYear(i);this.setNavStatus(r),this.emit("sd-month-year",{detail:{month:i}})}focusInitialGridDay(){var r;let t=null;if(!this.range&&this.value){let s=a.parseLocalISO(this.value);s&&(t=a.startOfDayLocal(s))}if(this.range){let s=this.rangeStart?a.parseLocalISO(this.rangeStart):null,n=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;n?t=a.startOfDayLocal(n):s&&(t=a.startOfDayLocal(s))}let e=(r=this.viewMonth)!=null?r:this.ensureViewMonth();if(!(s=>s?s.getFullYear()===e.getFullYear()&&s.getMonth()===e.getMonth()&&!this.isDisabled(s):!1)(t)){let{weeks:s}=this.getMonthMatrix(e),n=s.flat().find(o=>o.getMonth()===e.getMonth()&&a.isSameDay(o,this.today)&&!this.isDisabled(o));if(n)t=a.startOfDayLocal(n);else{let o=s.flat().find(f=>f.getMonth()===e.getMonth()&&!this.isDisabled(f));t=o?a.startOfDayLocal(o):null}}t&&(this.focusedDate=t),this.requestUpdate(),requestAnimationFrame(()=>{let s=this.shadowRoot,n=(s==null?void 0:s.querySelector("button.day.selected"))||(s==null?void 0:s.querySelector("button.day.focused"))||(s==null?void 0:s.querySelector('button.day[tabindex="0"]'))||(s==null?void 0:s.querySelector("button.day"));n==null||n.focus({preventScroll:!0})})}selectSingleDate(t){if(this.readonly||this.isDisabled(t))return;let e=a.startOfDayLocal(t),i=a.toLocalISODate(e);if(this.value===i)return;this.value=i;let r=`${this.formatSelectionLabel(e)}, ${this.localize.term("selected")}`;this.announceSelect(r),this.emit("sd-select",{detail:{value:this.value,date:e}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var n;let s=this.input;s&&(s.value=(n=this.inputValue)!=null?n:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let o=s.value.length;s.setSelectionRange(o,o)})}))})}selectRangeDate(t){if(this.readonly)return;let e=a.startOfDayLocal(t),i=this.rangeStart?a.parseLocalISO(this.rangeStart):null,r=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;if(!i&&!r){if(this.isDisabled(e))return;this.rangeStart=a.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let s=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${s}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var o;let n=this.input;n&&(n.value=(o=this.inputValue)!=null?o:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let f=n.value.length;n.setSelectionRange(f,f)})}))});return}if(i&&!r){if(this.isDisabled(e))return;if(a.isSameDay(i,e)){if(!this.allowSameDayRange){this.rangeStart=a.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let d=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${d}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var c;let u=this.input;u&&(u.value=(c=this.inputValue)!=null?c:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let p=u.value.length;u.setSelectionRange(p,p)})}))});return}this.rangeStart=a.toLocalISODate(e),this.rangeEnd=a.toLocalISODate(e),this.previewEnd=null;let g=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${g}`,40),this.announceSelect(`${this.termEndSelected()}: ${g}`,140),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var u;let d=this.input;d&&(d.value=(u=this.inputValue)!=null?u:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let c=d.value.length;d.setSelectionRange(c,c)})}))});return}let s=a.parseLocalISO(this.rangeStart);if(this.wouldRangeContainDisabled(s,e))return;let[n,o]=a.compareDates(s,e)<=0?[s,e]:[e,s];this.rangeStart=a.toLocalISODate(n),this.rangeEnd=a.toLocalISODate(o),this.previewEnd=null;let f=this.formatSelectionLabel(n),v=this.formatSelectionLabel(o);this.announceSelect(`${this.termStartSelected()}: ${f}`,40),this.announceSelect(`${this.termEndSelected()}: ${v}`,140),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var d;let g=this.input;g&&(g.value=(d=this.inputValue)!=null?d:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let u=g.value.length;g.setSelectionRange(u,u)})}))});return}if(i&&r){if(this.isDisabled(e))return;this.rangeStart=a.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let s=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${s}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var o;let n=this.input;n&&(n.value=(o=this.inputValue)!=null?o:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let f=n.value.length;n.setSelectionRange(f,f)})}))})}}selectDate(t){this.readonly||(this.range?this.selectRangeDate(t):this.selectSingleDate(t))}ensureViewMonth(){if(this.viewMonth)return this.viewMonth;let t=this.value?a.parseLocalISO(this.value):null,e=this.rangeStart?a.parseLocalISO(this.rangeStart):null,i=a.startOfDayLocal(new Date),r=this.range&&e?e:t!=null?t:i,s=new Date(r.getFullYear(),r.getMonth(),1);return this.viewMonth=s,s}getMonthMatrix(t){var v;let e=(v=this.firstDayOfWeek)!=null?v:1,i=new Date(t.getFullYear(),t.getMonth(),1),r=new Date(i),s=(i.getDay()-e+7)%7;r.setDate(i.getDate()-s);let n=[],o=r;for(let g=0;g<6;g++){let d=[];for(let u=0;u<7;u++)d.push(new Date(o)),o.setDate(o.getDate()+1);n.push(d)}let f=g=>g.every(d=>d.getMonth()!==t.getMonth());for(;n.length>0&&f(n[n.length-1]);)n.pop();return{weeks:n}}formatMonthYear(t){try{return new Intl.DateTimeFormat(this.locale,{month:"long",year:"numeric"}).format(t)}catch(e){return`${t.toLocaleString(void 0,{month:"long"})} ${t.getFullYear()}`}}weekdayLabels(){var r;let t=(r=this.firstDayOfWeek)!=null?r:1,e=new Date(2021,7,1),i=[];for(let s=0;s<7;s++){let n=new Date(e);n.setDate(e.getDate()+(t+s)%7);try{i.push(new Intl.DateTimeFormat(this.locale,{weekday:"short"}).format(n))}catch(o){i.push(n.toLocaleDateString(void 0,{weekday:"short"}))}}return i}getTabTargetDayForCurrentView(t){var s;let e=(s=this.viewMonth)!=null?s:this.ensureViewMonth(),i=t.flat().find(n=>n.getMonth()===e.getMonth()&&a.isSameDay(n,this.today)&&!this.isDisabled(n));if(i)return a.startOfDayLocal(i);let r=t.flat().find(n=>n.getMonth()===e.getMonth()&&!this.isDisabled(n));return r?a.startOfDayLocal(r):null}onDayMouseEnter(t){if(!this.range||this.readonly)return;let e=this.rangeStart?a.parseLocalISO(this.rangeStart):null,i=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;if(e&&!i){let r=a.startOfDayLocal(t);this.previewEnd=this.isDisabled(r)?null:r,this.requestUpdate()}}onGridMouseLeave(){this.previewEnd!==null&&(this.previewEnd=null,this.requestUpdate())}renderCalendar(){var d,u;let t=(d=this.viewMonth)!=null?d:this.ensureViewMonth(),{weeks:e}=this.getMonthMatrix(t),i=this.formatMonthYear(t),r=this.weekdayLabels(),s=this.value?this.parseISO(this.value):null,n=this.rangeStart?this.parseISO(this.rangeStart):null,o=this.rangeEnd?this.parseISO(this.rangeEnd):null,f=this.previewEnd,v=c=>!this.range||!n||o||!f?!1:a.isBetweenInclusive(c,n,f),g=this.getTabTargetDayForCurrentView(e);return k`<div part="datepicker" class="${x("w-[284px] z-50 bg-white py-3 px-4",this.open?"block shadow-listbox":"hidden",(u=this.currentPlacement)!=null&&u.startsWith("bottom")?"border-r-2 border-b-2 border-l-2 form-control__listbox-border-bottom-right-radius form-control__listbox-border-bottom-left-radius":"border-r-2 border-t-2 border-l-2 form-control__listbox-border-top-right-radius form-control__listbox-border-top-left-radius","border-primary")}"><div class="flex flex-row items-center w-full justify-between mb-3" part="header"><div class="flex items-center"><button type="button" tabindex="0" class="nav prev w-6 h-6 hover:cursor-pointer sd-interactive" part="prev-year-button" @click="${()=>this.setYear(-1)}" @keydown="${c=>this.handleHeaderKeyDown(c,"year",-1,!1)}" aria-label="${this.localize.term("previousYear")}"><sd-6-17-0-icon library="_internal" name="chevrons-sm-left" class="h-6 w-6"></sd-6-17-0-icon></button> <button type="button" tabindex="0" class="nav prev w-6 h-6 hover:cursor-pointer sd-interactive" part="prev-month-button" @click="${()=>this.setMonth(-1)}" @keydown="${c=>this.handleHeaderKeyDown(c,"month",-1,!1)}" aria-label="${this.localize.term("previousMonth")}"><sd-6-17-0-icon library="_internal" name="chevron-sm-left" class="h-6 w-6"></sd-6-17-0-icon></button></div><div tabindex="-1" class="month-label flex justify-center sd-headline sd-headline--size-base" part="month-label" aria-live="polite">${i}</div><div class="flex items-center"><button type="button" tabindex="0" class="nav next w-6 h-6 hover:cursor-pointer sd-interactive" part="next-month-button" @click="${()=>this.setMonth(1)}" @keydown="${c=>this.handleHeaderKeyDown(c,"month",1,!1)}" aria-label="${this.localize.term("nextMonth")}"><sd-6-17-0-icon library="_internal" name="chevron-sm-right" class="h-6 w-6"></sd-6-17-0-icon></button> <button type="button" tabindex="0" class="nav next w-6 h-6 hover:cursor-pointer sd-interactive" part="next-year-button" @click="${()=>this.setYear(1)}" @keydown="${c=>this.handleHeaderKeyDown(c,"year",1,!0)}" aria-label="${this.localize.term("nextYear")}"><sd-6-17-0-icon library="_internal" name="chevrons-sm-right" class="h-6 w-6"></sd-6-17-0-icon></button></div></div><sd-6-17-0-divider></sd-6-17-0-divider><div class="sr-only" aria-live="polite" aria-atomic="true">${this.statusNavText}</div><div class="sr-only" aria-live="assertive" aria-atomic="true">${this.statusSelectText}</div><div class="sr-only" id="keyboard-hint">${this.localize.term("datePickerInfo")}</div><div class="grid mt-2" role="grid" aria-describedby="keyboard-hint" aria-label="${i}" part="grid" @mouseleave="${this.onGridMouseLeave}" @focusin="${()=>{this.tabbingIntoGrid=!1}}"><div class="grid-row grid-head grid grid-cols-7 gap-y-[1px]" role="row">${r.map((c,p)=>k`<div role="columnheader" aria-colindex="${p+1}" part="weekday" class="cell head flex items-center justify-center font-bold text-black text-sm leading-none h-8" aria-label="${c}" title="${c}" id="${"col-"+(p+1)}">${c}</div>`)}</div>${e.map((c,p)=>k`<div class="grid-row grid grid-cols-7 ${p===0?"mt-2":""}" role="row" aria-rowindex="${p+2}">${c.map((m,L)=>{let I=m.getMonth()===t.getMonth(),D=this.isDisabled(m)||!this.inMinMax(m),E=a.isSameDay(m,this.focusedDate),y=a.isSameDay(m,this.today),S=!this.range&&s?a.isSameDay(m,s):!1,w=this.range&&n?a.isSameDay(m,n):!1,C=this.range&&o?a.isSameDay(m,o):!1,T=this.range&&n&&o?a.isBetweenInclusive(m,n,o):!1,P=v(m)&&!D,Y=-1,$=g&&a.isSameDay(m,g);(this.tabbingIntoGrid&&$||!this.tabbingIntoGrid&&E)&&(Y=0);let V=this.isWeekend(m),z=m.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"}),R=w?this.localize.term("startDateSelected"):C?this.localize.term("endDateSelected"):void 0;return k`<button type="button" part="day" class="${x("cell day flex items-center justify-center focus-visible:outline focus:outline-2 focus:outline-primary -outline-offset-2 rounded w-[36px]",this.size==="sm"?"text-sm h-6":"text-base h-8",w||C?E?"outline-none sd-6-17-0-datepicker__date-item--selected--hover-color-background sd-6-17-0-datepicker__date-item--selected-color-text":"outline-none sd-6-17-0-datepicker__date-item--selected-color-background sd-6-17-0-datepicker__date-item--selected-color-text hover:sd-6-17-0-datepicker__date-item--selected--hover-color-background":"hover:sd-6-17-0-datepicker__date-item--hover--default-color-text",!w&&!C&&!T&&"hover:sd-6-17-0-datepicker__date-item--hover--default-color-background",S?"selected outline-none border-primary sd-6-17-0-datepicker__date-item--selected-color-background sd-6-17-0-datepicker__date-item--selected-color-text hover:sd-6-17-0-datepicker__date-item--selected-color-text hover:sd-6-17-0-datepicker__date-item--selected--hover-color-background":I?this.isInDisabledDates(m)||!this.inMinMax(m)?"out-month text-neutral-500":this.disabledWeekends&&V?"weekend-day text-neutral-500":"in-month sd-6-17-0-datepicker__date-item--default-color-text":this.disabledWeekends&&V?"out-month weekend-day text-neutral-500":V?"out-month weekend-day text-neutral-700":"out-month text-neutral-700 hover:sd-6-17-0-datepicker__date-item--hover--prev-next-color-text hover:sd-6-17-0-datepicker__date-item--hover--prev-next-color-background",w?"rounded-l-md rounded-r-none":"",C?"range-end rounded-r-md rounded-l-none":"",T&&!w&&!C?"in-range selected sd-6-17-0-datepicker__date-item--range-color-background rounded-none hover:sd-6-17-0-datepicker__date-item--selected--hover-color-background hover:sd-6-17-0-datepicker__date-item--selected-color-text":"",!T&&P&&!w&&!C?"in-preview-range bg-primary-100 text-primary-500 rounded-none":"",y&&!S&&!w&&!C&&E?"today border-[1px] border-primary sd-6-17-0-datepicker__date-item--current-font-weight":"",D?"disabled cursor-not-allowed hover:bg-transparent":"cursor-pointer",E&&!y?"focused outline outline-2 outline-primary":"")}" role="gridcell" aria-colindex="${L+1}" aria-labelledby="${"col-"+(L+1)}" .tabIndex="${Y}" ?disabled="${D||this.disabled||this.readonly}" aria-disabled="${D||this.visuallyDisabled||this.disabled||this.readonly?"true":"false"}" aria-selected="${S||T||w||C?"true":"false"}" aria-current="${y?"date":q}" aria-label="${z}" aria-roledescription="${R!=null?R:q}" @focus="${()=>this.focusedDate=a.startOfDayLocal(m)}" @mouseenter="${()=>this.onDayMouseEnter(m)}" @keydown="${this.onKeyDown}" @click="${()=>{this.focusedDate=a.startOfDayLocal(m),this.selectDate(m)}}">${m.getDate()}</button>`})}</div>`)}</div></div>`}render(){var c,p;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,r=!!t.tooltip,s=this.value!==null&&String(this.value).length>0||this.range&&this.rangeStart!==null||this.rangeEnd!==null,n=this.floatingLabel&&e&&(this.hasFocus||this.open||s)&&!this.disabled&&!this.visuallyDisabled,o=this.disabled||this.visuallyDisabled?"text-neutral-500":"icon-color",f={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],v={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],g=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||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",d={disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"border-neutral-800",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"}[g],u=this.size==="sm"?"text-sm":"text-base";return k`<div part="form-control" class="${x("min-w-[284px]",this.open&&"z-50",(this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${e&&!this.floatingLabel||r?k`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${x(e?"inline-block form-control-color-text":"hidden",u)}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${t.tooltip?k`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${x("relative w-full",this.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}">${e&&this.floatingLabel?k`<label id="label" part="form-control-floating-label" class="${x("absolute left-4 z-20 pointer-events-none transition-all duration-200 form-control--filled__floating-label-color-text",n?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-1/2 -translate-y-1/2",n&&"mt-1")}" for="input"><span class="${x("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",n&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}<div part="border" class="${x("absolute top-0 w-full h-full pointer-events-none border form-control-border-radius z-10 transition-[border] duration-medium ease-in-out",d,this.open&&((c=this.currentPlacement)!=null&&c.startsWith("bottom")?this.open&&this.alignment==="left"?"rounded-bl-none":"rounded-br-none":this.open&&this.alignment==="left"?"rounded-tl-none":"rounded-tr-none"))}"></div><sd-6-17-0-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${x("inline-flex relative w-full",(p=this.currentPlacement)!=null&&p.startsWith("bottom")?"origin-top":"origin-bottom")}" placement="${this.alignment==="left"?`${this.placement}-start`:`${this.placement}-end`}" flip shift auto-size="vertical" auto-size-padding="10" exportparts="popup:popup__content,"><div part="base" class="${x("px-4 flex flex-row items-center rounded-default transition-colors ease-in-out duration-medium hover:duration-fast w-full",!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:[@media(hover:hover)]:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",g==="disabled"||g==="visuallyDisabled"?"text-neutral-500":"text-black",g==="invalid"&&"form-control--invalid-color-background",g==="active"&&"shadow")}" slot="anchor"><input id="input" type="text" role="combobox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="dialog" aria-controls="calendar-grid" aria-describedby="${i?"help-text":void 0}" aria-invalid="${this.showInvalidStyle?"true":"false"}" aria-label="${this.range?"Select date range":"Select a date"}" class="${x("min-w-0 grow focus:outline-none bg-transparent hover:cursor-pointer text-black",this.visuallyDisabled||this.disabled?"placeholder:text-neutral-500 cursor-not-allowed":"placeholder:text-neutral-700",{sm:"h-8",md:"h-10",lg:"h-12"}[this.size],u,this.floatingLabel&&"mt-4")}" autocomplete="off" spellcheck="false" placeholder="${!this.floatingLabel||n?this.placeholder||this.localize.term(this.range?"dateRangePlaceholder":"datePlaceholder"):""}" ?disabled="${this.disabled}" ?required="${this.required}" ?readonly="${this.readonly||this.visuallyDisabled}" @input="${this.handleInput}" @click="${this.handleMouseDown}" @keydown="${this.handleInputKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleInputBlur}" @invalid="${this.handleInvalid}"> ${this.showInvalidStyle?k`<sd-6-17-0-icon part="invalid-icon" class="${x("text-error",f,v)}" library="_internal" name="risk"></sd-6-17-0-icon>`:""} ${this.showValidStyle&&this.styleOnValid?k`<sd-6-17-0-icon class="${x("text-success shrink-0",f,v)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-6-17-0-icon>`:""}<sd-6-17-0-icon class="${x(o,f,v,"hover:cursor-pointer")}" library="_internal" name="calendar" @click="${this.show}"></sd-6-17-0-icon></div>${this.renderCalendar()}</sd-6-17-0-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${x("text-sm text-neutral-700 mt-1",i?"block":"hidden")}" aria-hidden="${!i}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};l.styles=[...H.styles,N`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
2
|
+
:host{position:relative;display:inline-block;width:100%;--tw-outline-style:none;outline-style:none}:host([required]) #label::after{content:' *'}:host([visually-disabled]) input{caret-color:transparent}.today:hover{border-color:rgba(var(--sd-datepicker__date-item--hover--default-color-border,rgba(var(--sd-color-primary-500))))}.in-range,.today{color:rgba(var(--sd-datepicker__date-item--current-color-text,rgba(var(--sd-color-primary))))}.icon-color{color:rgb(var(--sd-color-icon-fill-primary))}.month-label{color:rgb(var(--sd-color-border-primary))!important}`],h([b({type:String,reflect:!0})],l.prototype,"locale",2),h([b({type:String,converter:A,reflect:!0})],l.prototype,"value",2),h([b({type:Boolean,reflect:!0})],l.prototype,"range",2),h([b({attribute:"range-start",converter:A,reflect:!0})],l.prototype,"rangeStart",2),h([b({attribute:"range-end",converter:A,reflect:!0})],l.prototype,"rangeEnd",2),h([b({type:Boolean})],l.prototype,"allowSameDayRange",2),h([b({type:String,converter:A,reflect:!0})],l.prototype,"min",2),h([b({type:String,converter:A,reflect:!0})],l.prototype,"max",2),h([b({attribute:"view-month",converter:j})],l.prototype,"viewMonth",2),h([b({type:Number})],l.prototype,"firstDayOfWeek",2),h([b({type:Boolean,reflect:!0,attribute:"disabled-weekends"})],l.prototype,"disabledWeekends",2),h([b({attribute:"disabled-dates",converter:J})],l.prototype,"disabledDates",2),h([b({attribute:!1})],l.prototype,"isDateDisabled",2),h([b({type:String,reflect:!0})],l.prototype,"size",2),h([b({type:String})],l.prototype,"alignment",2),h([b({type:String,reflect:!0})],l.prototype,"label",2),h([b({type:String,attribute:"help-text",reflect:!0})],l.prototype,"helpText",2),h([b({attribute:"floating-label",type:Boolean,reflect:!0})],l.prototype,"floatingLabel",2),h([b({type:Boolean,reflect:!0})],l.prototype,"disabled",2),h([b({type:Boolean,reflect:!0})],l.prototype,"required",2),h([b({type:Boolean,attribute:"visually-disabled"})],l.prototype,"visuallyDisabled",2),h([b({type:Boolean,reflect:!0,attribute:"style-on-valid"})],l.prototype,"styleOnValid",2),h([b({type:Boolean,reflect:!0})],l.prototype,"readonly",2),h([b({type:String,reflect:!0})],l.prototype,"placement",2),h([b({type:String,reflect:!0})],l.prototype,"placeholder",2),h([b({reflect:!0})],l.prototype,"name",2),h([b({type:String,reflect:!0})],l.prototype,"form",2),h([O()],l.prototype,"open",2),h([O()],l.prototype,"focusedDate",2),h([O()],l.prototype,"today",2),h([O()],l.prototype,"disabledDatesSet",2),h([O()],l.prototype,"previewEnd",2),h([O()],l.prototype,"statusNavText",2),h([O()],l.prototype,"statusSelectText",2),h([O()],l.prototype,"hasFocus",2),h([O()],l.prototype,"showValidStyle",2),h([O()],l.prototype,"showInvalidStyle",2),h([O()],l.prototype,"currentPlacement",2),h([O()],l.prototype,"inputValue",2),h([B("sd-6-17-0-popup")],l.prototype,"popup",2),h([B("#invalid-message")],l.prototype,"invalidMessage",2),h([B("#input")],l.prototype,"input",2),h([_("open",{waitUntilFirstUpdate:!0})],l.prototype,"handleOpenChange",1),h([_("locale")],l.prototype,"handleLocaleChange",1),h([_("viewMonth")],l.prototype,"handleViewMonthChange",1),h([_("disabledDates")],l.prototype,"handleDisabledDatesChange",1),h([_("value")],l.prototype,"handleValueChange",1),h([_("rangeStart"),_("rangeEnd")],l.prototype,"handleRangeChange",1),h([_(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],l.prototype,"handleDisabledChange",1),h([_(["size","floatingLabel"])],l.prototype,"handleSizeChange",1),l=h([W("sd-6-17-0-datepicker")],l);export{l as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as m}from"./chunk.SV6DES3E.js";import{a as b}from"./chunk.IQPMMUES.js";import{a as o}from"./chunk.QIKBKQXB.js";import{a as p}from"./chunk.NYKJXI3Q.js";import{a as d,b as a,d as n,h as s}from"./chunk.
|
|
2
|
-
:host{--display-divider:block}#divider{display:var(--display-divider)}`],t([n("slot:not([name])")],e.prototype,"defaultSlot",2),t([a({reflect:!0,type:Boolean})],e.prototype,"disabled",2),t([a({type:String,reflect:!0})],e.prototype,"label",2),t([p("disabled",{waitUntilFirstUpdate:!0})],e.prototype,"handleDisabledChange",1),e=t([d("sd-6-
|
|
1
|
+
import{b as m}from"./chunk.SV6DES3E.js";import{a as b}from"./chunk.IQPMMUES.js";import{a as o}from"./chunk.QIKBKQXB.js";import{a as p}from"./chunk.NYKJXI3Q.js";import{a as d,b as a,d as n,h as s}from"./chunk.AWJGLIES.js";import{b as r}from"./chunk.UOAG5PNU.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends s{constructor(){super(...arguments);this.localize=new b(this);this.disabled=!1;this.label=""}handleDisableOptions(){let{disabled:i}=this;this.defaultSlot.assignedElements().filter(l=>l.tagName.toLowerCase()==="sd-6-17-0-option").forEach(l=>{l.disabled=i})}handleDisabledChange(){this.handleDisableOptions()}render(){let{disabled:i}=this;return m`<div role="${i?"presentation":"group"}" class="${o(this.disabled?"text-neutral-500":"")}" part="base" aria-labelledby="group-label"><sd-6-17-0-divider id="divider" class="pt-2 pb-4" part="divider"></sd-6-17-0-divider><div part="label-container" class="${o(this.disabled?"text-neutral-500":"text-black")} px-4 font-bold text-left" role="presentation" id="group-label"><slot name="label"><span>${this.label}</span></slot></div><div role="listbox" part="options" aria-label="${this.localize.term("optionGroup")}"><slot @slotchange="${this.handleDisableOptions}"></slot></div></div>`}};e.styles=[...s.styles,r`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
2
|
+
:host{--display-divider:block}#divider{display:var(--display-divider)}`],t([n("slot:not([name])")],e.prototype,"defaultSlot",2),t([a({reflect:!0,type:Boolean})],e.prototype,"disabled",2),t([a({type:String,reflect:!0})],e.prototype,"label",2),t([p("disabled",{waitUntilFirstUpdate:!0})],e.prototype,"handleDisabledChange",1),e=t([d("sd-6-17-0-optgroup")],e);export{e as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as g}from"./chunk.I2H6CZK5.js";import{a as z}from"./chunk.2AQOPKKH.js";import{a as L}from"./chunk.G7HKVXLR.js";import{a as m,b as f}from"./chunk.3L472FD4.js";import{a as E}from"./chunk.CGQ2BPPZ.js";import{a as o,c as l}from"./chunk.B2NUKX6G.js";import{a as w}from"./chunk.KLRPP4NQ.js";import{a as C}from"./chunk.IQPMMUES.js";import{a as p}from"./chunk.QIKBKQXB.js";import{a as v}from"./chunk.NYKJXI3Q.js";import{a as x,b as r,d as c,h as b}from"./chunk.
|
|
2
|
-
:host{--width:25rem;display:contents}:host([contained]){z-index:initial}:host(:not([contained])){z-index:var(--sd-z-index-drawer,700)}[part=body]{-webkit-overflow-scrolling:touch;overflow-y:scroll;scrollbar-width:none}[part=body]::-webkit-scrollbar{height:calc(var(--sd-spacing-1) * 0);width:calc(var(--sd-spacing-1) * 0)}:host [part=panel]{outline:1px solid rgb(var(--sd-panel-color-border,transparent))}`],i([c("[part=base]")],t.prototype,"drawer",2),i([c("[part=panel]")],t.prototype,"panel",2),i([c("[part=overlay]")],t.prototype,"overlay",2),i([c("[part=close-button]")],t.prototype,"closeButton",2),i([r({type:Boolean,reflect:!0})],t.prototype,"open",2),i([r({type:String,attribute:"label",reflect:!0})],t.prototype,"label",2),i([r({type:String,reflect:!0})],t.prototype,"placement",2),i([r({type:Boolean,reflect:!0})],t.prototype,"contained",2),i([r({attribute:"no-header",type:Boolean,reflect:!0})],t.prototype,"noHeader",2),i([v("open",{waitUntilFirstUpdate:!0})],t.prototype,"handleOpenChange",1),i([v("contained",{waitUntilFirstUpdate:!0})],t.prototype,"handleNoModalChange",1),t=i([x("sd-6-
|
|
1
|
+
import{a as g}from"./chunk.I2H6CZK5.js";import{a as z}from"./chunk.2AQOPKKH.js";import{a as L}from"./chunk.G7HKVXLR.js";import{a as m,b as f}from"./chunk.3L472FD4.js";import{a as E}from"./chunk.CGQ2BPPZ.js";import{a as o,c as l}from"./chunk.B2NUKX6G.js";import{a as w}from"./chunk.KLRPP4NQ.js";import{a as C}from"./chunk.IQPMMUES.js";import{a as p}from"./chunk.QIKBKQXB.js";import{a as v}from"./chunk.NYKJXI3Q.js";import{a as x,b as r,d as c,h as b}from"./chunk.AWJGLIES.js";import{b as k,e as u}from"./chunk.UOAG5PNU.js";import{b as n,e as h}from"./chunk.W4QBFD6E.js";import{e as i}from"./chunk.6EV4YU6C.js";var t=class extends b{constructor(){super(...arguments);this.hasSlotController=new E(this,"footer");this.localize=new C(this);this.modal=new z(this);this.open=!1;this.label="";this.placement="end";this.contained=!1;this.noHeader=!1;this.handleDocumentKeyDown=e=>{this.open&&e.key==="Escape"&&(e.stopPropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.drawer.hidden=!this.open,this.open&&(this.addOpenListeners(),this.contained||(this.modal.activate(),m(this)))}disconnectedCallback(){super.disconnectedCallback(),f(this)}requestClose(e){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:e}}).defaultPrevented){let a=l(this,"drawer.denyClose",{dir:this.localize.dir()});n(this.panel,a.keyframes,a.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}async handleOpenChange(){var y;let e=(y=this.closeButton.shadowRoot)==null?void 0:y.querySelector('[part="base"]');if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=L(),this.contained||(this.modal.activate(),m(this));let a=this.querySelector("[autofocus]");a&&a.removeAttribute("autofocus"),await Promise.all([h(this.drawer),h(this.overlay)]),this.drawer.hidden=!1,this.drawer.removeAttribute("inert");let d=l(this,`drawer.show${g(this.placement)}`,{dir:this.localize.dir()}),s=l(this,"drawer.overlay.show",{dir:this.localize.dir()});await Promise.all([n(this.panel,d.keyframes,d.options),n(this.overlay,s.keyframes,s.options)]),e==null||e.setAttribute("aria-controls","drawer"),e==null||e.setAttribute("aria-expanded","true"),requestAnimationFrame(()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(a?a.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),a?a.setAttribute("autofocus",""):this.closeButton.focus()}),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.contained||(this.modal.deactivate(),f(this)),await Promise.all([h(this.drawer),h(this.overlay)]);let a=l(this,`drawer.hide${g(this.placement)}`,{dir:this.localize.dir()}),d=l(this,"drawer.overlay.hide",{dir:this.localize.dir()});await Promise.all([n(this.overlay,d.keyframes,d.options).then(()=>{this.overlay.hidden=!0}),n(this.panel,a.keyframes,a.options).then(()=>{this.panel.hidden=!0})]),this.drawer.hidden=!0,this.drawer.setAttribute("inert",""),this.overlay.hidden=!1,this.panel.hidden=!1;let s=this.originalTrigger;typeof(s==null?void 0:s.focus)=="function"&&setTimeout(()=>s.focus()),e==null||e.setAttribute("aria-expanded","false"),this.emit("sd-after-hide")}}handleNoModalChange(){this.open&&!this.contained&&(this.modal.activate(),m(this)),this.open&&this.contained&&(this.modal.deactivate(),f(this))}async show(){if(!this.open)return this.open=!0,w(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,w(this,"sd-after-hide")}render(){return u`<section id="drawer" part="base" class="${p("top-0 start-0 w-full h-full pointer-events-none overflow-hidden",this.contained?"absolute":"fixed")}" aria-label="${this.label}"><div part="overlay" class="${p("block top-0 left-0 right-0 bottom-0 overlay-color-background pointer-events-auto",this.contained?"absolute":"fixed")}" @click="${()=>this.requestClose("overlay")}"></div><div part="panel" class="${p("absolute flex flex-col gap-4 z-10 max-w-full max-h-full bg-white shadow-lg overflow-auto pointer-events-auto focus:outline-none",{end:"top-0 end-0 bottom-auto start-auto w-[var(--width)] h-full",start:"top-0 end-auto bottom-auto start-0 w-[var(--width)] h-full"}[this.placement])}" role="dialog" aria-modal="true" aria-label="${this.label}" tabindex="0">${this.noHeader?u`<sd-6-17-0-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}" class="absolute top-2 end-2 z-10"><sd-6-17-0-icon label="${this.localize.term("close")}" name="close" library="_internal"></sd-6-17-0-icon></sd-6-17-0-button>`:u`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:64px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ms-4 absolute top-2 end-2"><sd-6-17-0-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}"><sd-6-17-0-icon label="${this.localize.term("close")}" name="close" library="_internal"></sd-6-17-0-icon></sd-6-17-0-button></div></header>`}<div part="body" class="flex-auto block px-4 focus-visible:focus-outline !-outline-offset-2" tabindex="0"><slot></slot></div><footer part="footer" class="${p(this.hasSlotController.test("footer")?"text-left p-4":"hidden")}"><slot name="footer"></slot></footer></div></section>`}};t.styles=[...b.styles,k`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
2
|
+
:host{--width:25rem;display:contents}:host([contained]){z-index:initial}:host(:not([contained])){z-index:var(--sd-z-index-drawer,700)}[part=body]{-webkit-overflow-scrolling:touch;overflow-y:scroll;scrollbar-width:none}[part=body]::-webkit-scrollbar{height:calc(var(--sd-spacing-1) * 0);width:calc(var(--sd-spacing-1) * 0)}:host [part=panel]{outline:1px solid rgb(var(--sd-panel-color-border,transparent))}`],i([c("[part=base]")],t.prototype,"drawer",2),i([c("[part=panel]")],t.prototype,"panel",2),i([c("[part=overlay]")],t.prototype,"overlay",2),i([c("[part=close-button]")],t.prototype,"closeButton",2),i([r({type:Boolean,reflect:!0})],t.prototype,"open",2),i([r({type:String,attribute:"label",reflect:!0})],t.prototype,"label",2),i([r({type:String,reflect:!0})],t.prototype,"placement",2),i([r({type:Boolean,reflect:!0})],t.prototype,"contained",2),i([r({attribute:"no-header",type:Boolean,reflect:!0})],t.prototype,"noHeader",2),i([v("open",{waitUntilFirstUpdate:!0})],t.prototype,"handleOpenChange",1),i([v("contained",{waitUntilFirstUpdate:!0})],t.prototype,"handleNoModalChange",1),t=i([x("sd-6-17-0-drawer")],t);o("drawer.showStart",{keyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});o("drawer.hideStart",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});o("drawer.showEnd",{keyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});o("drawer.hideEnd",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});o("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});o("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});o("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});export{t as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as d}from"./chunk.YQH4KNT6.js";import{a as b}from"./chunk.W4EADN3G.js";import{b as m}from"./chunk.RAP66B6O.js";import{a as p}from"./chunk.SLXPE3UU.js";import{a as l}from"./chunk.QIKBKQXB.js";import{a as n}from"./chunk.NYKJXI3Q.js";import{a as h,b as r,c as u,d as a,h as o}from"./chunk.
|
|
2
|
-
:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline-style:var(--tw-outline-style);outline-width:0}:host([required]) #label::after{content:' *'}[part=invalid-icon]{color:rgb(var(--sd-color-icon-fill-error))}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}`],i([a('input[type="checkbox"]')],t.prototype,"input",2),i([a("#invalid-message")],t.prototype,"invalidMessage",2),i([r({type:String,reflect:!0})],t.prototype,"title",2),i([r({type:String,reflect:!0})],t.prototype,"name",2),i([r()],t.prototype,"value",2),i([r({type:String,reflect:!0})],t.prototype,"size",2),i([r({type:Boolean,reflect:!0})],t.prototype,"disabled",2),i([r({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),i([r({type:Boolean,reflect:!0})],t.prototype,"checked",2),i([r({type:Boolean,reflect:!0})],t.prototype,"indeterminate",2),i([b("checked")],t.prototype,"defaultChecked",2),i([r({type:String,reflect:!0})],t.prototype,"form",2),i([r({type:Boolean,reflect:!0})],t.prototype,"required",2),i([u()],t.prototype,"showInvalidStyle",2),i([n(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),i([n(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],t.prototype,"handleStateChange",1),t=i([h("sd-6-
|
|
1
|
+
import{a as d}from"./chunk.YQH4KNT6.js";import{a as b}from"./chunk.W4EADN3G.js";import{b as m}from"./chunk.RAP66B6O.js";import{a as p}from"./chunk.SLXPE3UU.js";import{a as l}from"./chunk.QIKBKQXB.js";import{a as n}from"./chunk.NYKJXI3Q.js";import{a as h,b as r,c as u,d as a,h as o}from"./chunk.AWJGLIES.js";import{b as c,e as s}from"./chunk.UOAG5PNU.js";import{e as i}from"./chunk.6EV4YU6C.js";var t=class extends o{constructor(){super(...arguments);this.formControlController=new m(this,{value:e=>e.checked?e.value||"on":void 0,defaultValue:e=>e.defaultChecked,setValue:(e,v)=>e.checked=v});this.title="";this.name="";this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.checked=!1;this.indeterminate=!1;this.defaultChecked=!1;this.form="";this.required=!1;this.showInvalidStyle=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(e){if(this.visuallyDisabled){e.preventDefault(),e.stopPropagation();return}this.checked=!this.checked,this.indeterminate=!1,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e),this.invalidMessage.textContent=e.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){let e=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",e?"true":"false"),this.formControlController.setValidity(e)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.disabled&&this.indeterminate?"disabledIndeterminate":this.disabled&&this.checked?"disabledChecked":this.disabled?"disabled":this.visuallyDisabled?"visuallyDisabled":this.showInvalidStyle&&this.indeterminate?"invalidIndeterminate":this.showInvalidStyle?"invalid":this.checked||this.indeterminate?"filled":"default";return s`<div class="flex flex-col"><label part="base" class="${l("sd-6-17-0-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",(this.disabled||this.visuallyDisabled)&&"hover:cursor-not-allowed",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}"><input class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" title="${this.title}" name="${this.name}" value="${p(this.value)}" .indeterminate="${d(this.indeterminate)}" .checked="${d(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.indeterminate?"mixed":this.checked}" aria-describedby="invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled?"true":"false"}" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked?" control--checked":"control--unchecked"} ${this.indeterminate?" control--indeterminate":""}" class="${l("relative flex flex-shrink-0 items-center justify-center border sd-6-17-0-checkbox-border-width rounded-sm h-4 w-4","transition-colors ease-in-out duration-medium group-hover:duration-fast","peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-primary",{sm:"mt-[2px]",md:"mt-[3px]",lg:"mt-[3px]"}[this.size],{disabledIndeterminate:"border-neutral-500 bg-neutral-500",disabledChecked:"border-neutral-500 bg-neutral-500",disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",invalidIndeterminate:"border-error bg-error group-hover:bg-error-400 group-hover:border-error-400",invalid:"border-error group-hover:border-error-400 group-hover:bg-transparent",filled:"border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",default:"form-control-color-border hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[e])}"><div part="checkbox" class="${l("absolute h-3 transition-[width] right-0 duration-medium",this.checked||this.indeterminate?"w-0":"w-3")}"><div class="${l("w-full h-full transition-colors duration-medium ease-in-out group-hover:duration-fast",{disabledIndeterminate:"bg-neutral-500",disabledChecked:" bg-neutral-500",disabled:"",visuallyDisabled:"",invalidIndeterminate:" bg-error group-hover:bg-error-400",invalid:"",filled:"bg-accent group-hover:bg-accent-550",default:"hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[e])}"></div></div>${this.checked?s`<sd-6-17-0-icon part="checked-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-check"></sd-6-17-0-icon>`:""} ${!this.checked&&this.indeterminate?s`<sd-6-17-0-icon part="indeterminate-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-minus"></sd-6-17-0-icon>`:""} </span><span part="label" id="label" class="${l("select-none inline-block ml-2",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-black")}"><slot></slot></span></label><div id="invalid-icon-message" part="invalid-icon-message" class="${l("flex items-center gap-2",this.showInvalidStyle&&"mt-2")}">${this.showInvalidStyle?s`<sd-6-17-0-icon id="invalid-icon" part="invalid-icon" library="_internal" name="risk"></sd-6-17-0-icon>`:""} ${this.formControlController.renderInvalidMessage(this.size)}</div></div>`}};t.styles=[...o.styles,c`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
2
|
+
:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline-style:var(--tw-outline-style);outline-width:0}:host([required]) #label::after{content:' *'}[part=invalid-icon]{color:rgb(var(--sd-color-icon-fill-error))}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}`],i([a('input[type="checkbox"]')],t.prototype,"input",2),i([a("#invalid-message")],t.prototype,"invalidMessage",2),i([r({type:String,reflect:!0})],t.prototype,"title",2),i([r({type:String,reflect:!0})],t.prototype,"name",2),i([r()],t.prototype,"value",2),i([r({type:String,reflect:!0})],t.prototype,"size",2),i([r({type:Boolean,reflect:!0})],t.prototype,"disabled",2),i([r({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),i([r({type:Boolean,reflect:!0})],t.prototype,"checked",2),i([r({type:Boolean,reflect:!0})],t.prototype,"indeterminate",2),i([b("checked")],t.prototype,"defaultChecked",2),i([r({type:String,reflect:!0})],t.prototype,"form",2),i([r({type:Boolean,reflect:!0})],t.prototype,"required",2),i([u()],t.prototype,"showInvalidStyle",2),i([n(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),i([n(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],t.prototype,"handleStateChange",1),t=i([h("sd-6-17-0-checkbox")],t);export{t as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk.SLXPE3UU.js";import{a as y}from"./chunk.CGQ2BPPZ.js";import{a as u,b as s}from"./chunk.SV6DES3E.js";import{a as b}from"./chunk.IQPMMUES.js";import{a as l}from"./chunk.QIKBKQXB.js";import{a as m,b as r,d as p,h as f}from"./chunk.
|
|
2
|
-
:host{position:relative;box-sizing:border-box;display:inline-block}:host([vertical]){display:block}.sd-6-
|
|
1
|
+
import{a as o}from"./chunk.SLXPE3UU.js";import{a as y}from"./chunk.CGQ2BPPZ.js";import{a as u,b as s}from"./chunk.SV6DES3E.js";import{a as b}from"./chunk.IQPMMUES.js";import{a as l}from"./chunk.QIKBKQXB.js";import{a as m,b as r,d as p,h as f}from"./chunk.AWJGLIES.js";import{b as v}from"./chunk.UOAG5PNU.js";import{e as i}from"./chunk.6EV4YU6C.js";var t=class extends f{constructor(){super(...arguments);this.hasSlotController=new y(this,"[default]","description","children");this.localize=new b(this);this.vertical=!1;this.size="md";this.current=!1;this.disabled=!1;this.chevron=!1;this.relaxed=!1;this.divider=!1;this.indented=!1;this.open=!1;this.separated=!1}get isButton(){return!this.href&&!this.hasSlotController.test("children")}get isLink(){return!!this.href}get isAccordion(){return!this.separated&&!this.href&&this.hasSlotController.test("children")}get isIconOnly(){if(!this.defaultSlot)return!1;let e=this.defaultSlot.assignedNodes({flatten:!0});return e.length>0&&e.every(a=>{var d;return a.nodeType===Node.TEXT_NODE?!((d=a.textContent)!=null&&d.trim()):a.nodeType===Node.ELEMENT_NODE?a.tagName.toLowerCase()==="sd-6-17-0-icon":!1})}handleClickButton(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}handleClickSummary(e){e.preventDefault(),e.stopPropagation(),this.disabled||(this.open?this.hideDetails():this.showDetails())}hideDetails(){this.open=!1,this.emit("sd-hide",{cancelable:!0})}showDetails(){this.open=!0,this.emit("sd-show",{cancelable:!0})}get calculatePaddingX(){return this.relaxed&&this.indented?"pl-8 pr-4":this.relaxed?"px-4":this.indented?"pl-4":""}get tag(){return this.separated&&!this.isLink?u`div`:this.isAccordion&&!this.isLink?u`summary`:this.isLink?u`a`:u`button`}focus(){var e;this.disabled||(e=this.button)==null||e.focus()}blur(){var e;(e=this.button)==null||e.blur()}render(){let e=this.tag,a=this.isLink,d=this.isButton,n=this.isAccordion,g=this.isIconOnly,c={label:this.hasSlotController.test("[default]"),main:this.hasSlotController.test("main"),description:this.hasSlotController.test("description"),children:this.hasSlotController.test("children")},x=this.vertical?"py-3":"py-2",h=s`<${e} part="base" class="${l("flex items-center cursor-pointer relative focus-visible:focus-outline group hover:bg-neutral-200 transition-colors duration-fast ease-in-out min-h-[48px] navigable-border-radius",{md:"navigable-font-size",lg:"text-lg",sm:"text-[14px]"}[this.size],this.disabled?"text-neutral-500 pointer-events-none":"sd-6-17-0-navigation-item-color-text",this.current&&"font-bold sd-6-17-0-navigation-item--current-color-text",!n&&"w-full",this.divider&&this.vertical&&"mt-0.25",!this.vertical&&"inline-flex items-center",!this.separated&&"hover:bg-neutral-200 group transition-colors duration-fast ease-in-out min-h-[48px]",g?"justify-center aspect-square p-3":"px-4")}" aria-current="${o(this.current?"page":void 0)}" aria-disabled="${this.disabled}" aria-labelledby="content" aria-describedby="description" ?disabled="${o(d?this.disabled:void 0)}" href="${o(a?this.href:void 0)}" target="${o(a?this.target:void 0)}" download="${o(a?this.download:void 0)}" rel="${o(a&&this.target?"noreferrer noopener":void 0)}" tabindex="${this.disabled?"-1":"0"}" @click="${this.separated?void 0:n?this.handleClickSummary:d?this.handleClickButton:void 0}"><div part="current-indicator" class="${l("absolute bg-accent left-0 pointer-events-none navigable__current-indicator-border-radius",this.vertical?"navigable__current-indicator-width h-[calc(100%-16px)] top-2 group-hover:h-full group-hover:top-0":"navigable__current-indicator-height w-[calc(100%-16px)] bottom-0 left-2 group-hover:w-full group-hover:left-0 transition-all",this.disabled&&"bg-neutral-500")}"></div><div class="inline-flex flex-col justify-center gap-1 w-full h-full"><span part="content-area" class="${l("relative inline-flex justify-between items-center",n?"grow":"w-full",c.description&&"pt-3",!c.description&&!this.separated&&x,this.calculatePaddingX)}">${this.divider&&this.vertical?s`<sd-6-17-0-divider part="divider" class="${l("w-full transition-all absolute -top-0.25 left-0",this.calculatePaddingX)}"></sd-6-17-0-divider>`:""} <span id="content" part="content-container" class="inline-flex items-center flex-auto"><slot part="content" class="inline-flex text-start"></slot></span>${this.chevron||c.children&&this.vertical&&!this.separated?s`<sd-6-17-0-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${l("h-6 w-6 ml-2 transition-all",n?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-6-17-0-icon>`:""} </span>${c.description&&this.vertical?s`<slot id="description" name="description" part="description" class="${l("inline-block text-sm text-left font-normal text-black pb-3",n||this.separated?"grow":"w-full",this.calculatePaddingX)}"></slot>`:""}</div></${e}>`;return this.separated?s`<div part="details" id="navigation-item-details" class="relative flex flex-col"><div class="flex items-start">${h} ${c.children&&this.vertical?s`<button type="button" title="${this.open?this.localize.term("collapseNavigationItem"):this.localize.term("expandNavigationItem")}" class="sd-interactive sd-interactive--reset -mt-1" @click="${this.handleClickSummary}"><sd-6-17-0-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${l("m-4 h-6 w-6 transition-all",n||this.separated?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-6-17-0-icon></button>`:""}</div>${this.open?s`<slot name="children"></slot>`:""}</div>`:n?s`<details aria-expanded="${this.open}" part="details" id="navigation-item-details" ?open="${this.open}" class="relative">${h}<slot name="children"></slot></details>`:s`${h}`}};t.styles=[...f.styles,v`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
2
|
+
:host{position:relative;box-sizing:border-box;display:inline-block}:host([vertical]){display:block}.sd-6-17-0-navigation-item--current-color-text{color:rgb(var(--sd-navigation-item--current-color-text,var(--sd-navigation-item-color-text)))}details summary::-webkit-details-marker{display:none}[part=current-indicator]{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-0);--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);transition:width var(--sd-duration-fast) ease-in-out,height var(--sd-duration-fast) ease-in-out,left var(--sd-duration-fast) ease-in-out,top var(--sd-duration-fast) ease-in-out,opacity var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out var(--sd-duration-fast)}:host([current]) [part=current-indicator]{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-100);transition:width var(--sd-duration-fast) ease-in-out,height var(--sd-duration-fast) ease-in-out,left var(--sd-duration-fast) ease-in-out,top var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-duration{syntax:"*";inherits:false}`],i([p('[part="base"]')],t.prototype,"button",2),i([p("slot:not([name])")],t.prototype,"defaultSlot",2),i([r({type:Boolean,reflect:!0})],t.prototype,"vertical",2),i([r({type:String,reflect:!0})],t.prototype,"size",2),i([r({reflect:!0})],t.prototype,"href",2),i([r({type:String,reflect:!0})],t.prototype,"target",2),i([r({reflect:!0})],t.prototype,"download",2),i([r({type:Boolean,reflect:!0})],t.prototype,"current",2),i([r({type:Boolean,reflect:!0})],t.prototype,"disabled",2),i([r({type:Boolean,reflect:!0})],t.prototype,"chevron",2),i([r({type:Boolean,reflect:!0})],t.prototype,"relaxed",2),i([r({type:Boolean,reflect:!0})],t.prototype,"divider",2),i([r({type:Boolean,reflect:!0})],t.prototype,"indented",2),i([r({type:Boolean,reflect:!0})],t.prototype,"open",2),i([r({type:Boolean,reflect:!0})],t.prototype,"separated",2),t=i([m("sd-6-17-0-navigation-item")],t);export{t as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l,b as i,g as c,h as o}from"./chunk.
|
|
2
|
-
:host{display:block}::slotted(sd-6-
|
|
1
|
+
import{a as l,b as i,g as c,h as o}from"./chunk.AWJGLIES.js";import{b as a,e as n}from"./chunk.UOAG5PNU.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends o{constructor(){super(...arguments);this.closeOthers=!1;this.handleAccordionShow=r=>{this.closeOthers&&this._accordionsInDefaultSlot.forEach(s=>{s!==r.target&&s.parentNode===r.target.parentNode&&s.removeAttribute("open")})}}connectedCallback(){super.connectedCallback(),this.addEventListener("sd-show",this.handleAccordionShow)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("sd-show",this.handleAccordionShow)}render(){return n`<div part="base"><slot></slot></div>`}};e.styles=[...o.styles,a`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
2
|
+
:host{display:block}::slotted(sd-6-17-0-accordion:not(:first-of-type)){margin-top:calc(-1 * var(--sd-accordion-border-width))!important}`],t([c({selector:"sd-6-17-0-accordion"})],e.prototype,"_accordionsInDefaultSlot",2),t([i({attribute:"close-others",type:Boolean,reflect:!0})],e.prototype,"closeOthers",2),e=t([l("sd-6-17-0-accordion-group")],e);export{e as a};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import{b as y,c as f}from"./chunk.RAP66B6O.js";import{a as i}from"./chunk.SLXPE3UU.js";import{a as x}from"./chunk.CGQ2BPPZ.js";import{a as c,b as u}from"./chunk.SV6DES3E.js";import{a}from"./chunk.QIKBKQXB.js";import{a as p}from"./chunk.NYKJXI3Q.js";import{a as v,b as o,c as h,d as m,g,h as l}from"./chunk.
|
|
1
|
+
import{b as y,c as f}from"./chunk.RAP66B6O.js";import{a as i}from"./chunk.SLXPE3UU.js";import{a as x}from"./chunk.CGQ2BPPZ.js";import{a as c,b as u}from"./chunk.SV6DES3E.js";import{a}from"./chunk.QIKBKQXB.js";import{a as p}from"./chunk.NYKJXI3Q.js";import{a as v,b as o,c as h,d as m,g,h as l}from"./chunk.AWJGLIES.js";import{b}from"./chunk.UOAG5PNU.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends l{constructor(){super(...arguments);this.formControlController=new y(this,{form:r=>{if(r.hasAttribute("form")){let s=r.getRootNode(),n=r.getAttribute("form");return s.getElementById(n)}return r.closest("form")}});this.hasSlotController=new x(this,"[default]","icon-left","icon-right");this.invalid=!1;this.title="";this.variant="primary";this.inverted=!1;this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.loading=!1;this.type="button";this.name="";this.value="";this.href=""}get validity(){return this.isButton()?this.button.validity:f}get validationMessage(){return this.isButton()?this.button.validationMessage:""}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleClick(r){if(this.disabled||this.loading||this.visuallyDisabled){r.preventDefault(),r.stopPropagation();return}this.type==="submit"&&this.formControlController.submit(this),this.type==="reset"&&this.formControlController.reset(this)}handleInvalid(r){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(r)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(r){this.button.focus(r)}blur(){this.button.blur()}checkValidity(){return this.isButton()?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.isButton()?this.button.reportValidity():!0}setCustomValidity(r){this.isButton()&&(this.button.setCustomValidity(r),this.formControlController.updateValidity())}render(){let r=this.isLink(),s=r?c`a`:c`button`,n={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right"),"icon-only":this._iconsInDefaultSlot.length>0},d=this.variant==="secondary";return u`<${s} part="base" class="${a(`group relative z-10 font-md no-underline
|
|
2
2
|
w-full align-middle inline-flex items-stretch justify-center
|
|
3
3
|
transition-colors duration-fast ease-in-out
|
|
4
|
-
select-none cursor-[inherit]`,this.inverted?"focus-visible:focus-outline-inverted":"focus-visible:focus-outline",this.loading&&"relative cursor-wait",(this.disabled||this.visuallyDisabled)&&"cursor-not-allowed",{sm:"varspacing-8 min-h-8 sd-6-
|
|
5
|
-
disabled:sd-6-
|
|
6
|
-
disabled:bg-neutral-500 disabled:text-white`,secondary:this.inverted?`border sd-6-
|
|
7
|
-
disabled:sd-6-
|
|
8
|
-
disabled:sd-6-
|
|
9
|
-
disabled:sd-6-
|
|
10
|
-
disabled:sd-6-
|
|
11
|
-
${this.inverted?"sd-6-
|
|
12
|
-
:host{position:relative;z-index:0;display:inline-block;width:auto;cursor:pointer}::slotted(sd-6-
|
|
4
|
+
select-none cursor-[inherit]`,this.inverted?"focus-visible:focus-outline-inverted":"focus-visible:focus-outline",this.loading&&"relative cursor-wait",(this.disabled||this.visuallyDisabled)&&"cursor-not-allowed",{sm:"varspacing-8 min-h-8 sd-6-17-0-button--size-sm-font-size sd-6-17-0-button-font-weight sd-6-17-0-button--secondary--size-sm-padding-block sd-6-17-0-button--size-sm-border-radius",md:"varspacing-10 sd-6-17-0-button--size-md-height sd-6-17-0-button--size-md-font-size sd-6-17-0-button--secondary--size-md-padding-block sd-6-17-0-button-font-weight sd-6-17-0-button--size-md-border-radius",lg:"varspacing-12 sd-6-17-0-button--size-lg-height sd-6-17-0-button--size-lg-font-size sd-6-17-0-button--secondary--size-lg-padding-block sd-6-17-0-button-font-weight sd-6-17-0-button--size-lg-border-radius"}[this.size],!n["icon-only"]&&{sm:`${d?"sd-6-17-0-button--secondary-padding-inline":"sd-6-17-0-button--size-sm-padding-block sd-6-17-0-button-padding-inline"}`,md:`${d?"sd-6-17-0-button--secondary-padding-inline":"sd-6-17-0-button--size-md-padding-block sd-6-17-0-button-padding-inline"}`,lg:`${d?"sd-6-17-0-button--secondary-padding-inline":"sd-6-17-0-button--size-lg-padding-block sd-6-17-0-button-padding-inline"}`}[this.size],n["icon-only"]&&{sm:"px-1 aspect-square",md:"sd-6-17-0-button--size-md--icon-only-padding-inline aspect-square",lg:"px-[12px] aspect-square"}[this.size],{primary:this.inverted?`${this.visuallyDisabled?"bg-neutral-500 text-white border-neutral-500 hover:bg-neutral-500 active:bg-neutral-500":"sd-6-17-0-button--primary--inverted--default-color-text sd-6-17-0-button--primary--inverted--default-color-background border-white hover:sd-6-17-0-button--primary--inverted--hover-color-text active:sd-6-17-0-button--primary--inverted--active-color-text active:sd-6-17-0-button--primary--inverted--active-color-background"}
|
|
5
|
+
disabled:sd-6-17-0-button--inverted--disabled-color-background disabled:text-white`:`${this.visuallyDisabled?"bg-neutral-500 border-neutral-500 hover:bg-neutral-500 text-white":"sd-6-17-0-button--primary--default-color-background border-transparent sd-6-17-0-button--primary--default-color-text hover:sd-6-17-0-button--primary--hover-color-text active:sd-6-17-0-button--primary--active-color-text"}
|
|
6
|
+
disabled:bg-neutral-500 disabled:text-white`,secondary:this.inverted?`border sd-6-17-0-button-border-width ${this.visuallyDisabled?"text-neutral-600 border-neutral-600 hover:text-neutral-600 hover:border-neutral-600 active:text-neutral-600 active:border-neutral-600":"sd-6-17-0-button--secondary--inverted-color-text sd-6-17-0-button--secondary--inverted-color-border hover:sd-6-17-0-button--secondary--inverted-color-border hover:sd-6-17-0-button--secondary--inverted--hover-color-text hover:sd-6-17-0-button--secondary--inverted--hover-color-background active:sd-6-17-0-button--secondary--inverted--active-color-text active:border-primary-200 active:sd-6-17-0-button--secondary--inverted--active-color-background"}
|
|
7
|
+
disabled:sd-6-17-0-button--inverted--disabled-color-border disabled:sd-6-17-0-button--inverted--disabled-color-text`:`border sd-6-17-0-button-border-width ${this.visuallyDisabled?"sd-6-17-0-button--secondary--disabled-color-text border-neutral-500 hover:text-neutral-500 hover:border-neutral-500 active:text-neutral-500 active:border-neutral-500":"sd-6-17-0-button--secondary--default-color-text border-primary hover:text-primary-500 hover:border-primary-500 active:sd-6-17-0-button--secondary--active-color-text active:border-primary-800"}
|
|
8
|
+
disabled:sd-6-17-0-button--secondary--disabled-color-text disabled:border-neutral-500`,tertiary:this.inverted?`border-transparent ${this.visuallyDisabled?"text-neutral-600 hover:text-neutral-600 active:text-neutral-600":"sd-6-17-0-button--tertiary--inverted-color-text hover:sd-6-17-0-button--tertiary--inverted--hover-color-text hover:sd-6-17-0-button--tertiary--inverted--hover-color-background active:sd-6-17-0-button--tertiary--inverted--active-color-background active:sd-6-17-0-button--tertiary--inverted--active-color-text"}
|
|
9
|
+
disabled:sd-6-17-0-button--inverted--disabled-color-text`:`border-transparent ${this.visuallyDisabled?"sd-6-17-0-button--tertiary--disabled-color-text hover:text-neutral-500 active:text-neutral-500":"sd-6-17-0-button--tertiary--default-color-text hover:text-primary-500 active:sd-6-17-0-button--tertiary--active-color-text"}
|
|
10
|
+
disabled:sd-6-17-0-button--tertiary--disabled-color-text`,cta:`${this.visuallyDisabled?"bg-neutral-500 border-neutral-500 hover:bg-neutral-500 active:bg-neutral-500":"bg-accent border-transparent hover:bg-accent-500"}
|
|
11
|
+
${this.inverted?"sd-6-17-0-button--cta--inverted--default-color-background sd-6-17-0-button--cta--inverted--default-color-text hover:sd-6-17-0-button--cta--inverted--hover-color-text active:sd-6-17-0-button--cta--inverted--active-color-text disabled:sd-6-17-0-button--inverted--disabled-color-background disabled:text-white":"text-white bg-accent disabled:bg-neutral-500 hover:bg-accent-500 disabled:border-neutral-500 disabled:text-white"}`}[this.variant])}" ?disabled="${i(r?void 0:this.disabled)}" type="${i(r?void 0:this.type)}" title="${this.title}" name="${i(r?void 0:this.name)}" value="${i(r?void 0:this.value)}" href="${i(r?this.href:void 0)}" target="${i(r?this.target:void 0)}" download="${i(r?this.download:void 0)}" rel="${i(r&&this.target?"noreferrer noopener":void 0)}" role="${i(r?void 0:"button")}" aria-disabled="${this.disabled||this.visuallyDisabled?"true":"false"}" aria-labelledby="content" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @invalid="${this.isButton()?this.handleInvalid:null}" @click="${this.handleClick}"><div part="motion-wrapper" class="${a("absolute inset-0 -z-10 overflow-hidden pointer-events-none ",(this.disabled||this.visuallyDisabled)&&"hidden",{sm:"sd-6-17-0-button-border-radius",md:"sd-6-17-0-button-border-radius",lg:"sd-6-17-0-button-border-radius"}[this.size])}"><div class="absolute inset-0 w-full h-full transition-all duration-fast translate-y-full group-hover:translate-y-0 group-hover:mt-[-22%] mt-[11%]"><div class="${a("absolute right-0 min-w-full min-h-full aspect-square skew-y-[-11deg] mt-[11%]",{primary:this.inverted?"sd-6-17-0-button--primary--inverted--hover-color-background group-active:sd-6-17-0-button--primary--inverted--active-color-background":"sd-6-17-0-button--primary--hover-color-background group-active:bg-primary-800",secondary:this.inverted?"sd-6-17-0-button--secondary--inverted--hover-color-background group-active:sd-6-17-0-button--secondary--inverted--active-color-background group-active:sd-6-17-0-button--secondary--inverted--active-color-text":"sd-6-17-0-button--secondary--hover-color-background group-active:sd-6-17-0-button--secondary--active-color-background",tertiary:this.inverted?"sd-6-17-0-button--tertiary--inverted--hover-color-background group-active:sd-6-17-0-button--tertiary--inverted--active-color-background group-active:sd-6-17-0-button--tertiary--inverted--active-color-text":"sd-6-17-0-button--tertiary--hover-color-background group-active:sd-6-17-0-button--tertiary--active-color-background",cta:this.inverted?"sd-6-17-0-button--cta--inverted--hover-color-background group-active:sd-6-17-0-button--cta--inverted--active-color-background":"bg-accent-500 group-active:bg-accent-700"}[this.variant])}"></div><div class="${a("absolute w-full h-full mt-[22%]",{primary:this.inverted?"sd-6-17-0-button--primary--inverted--hover-color-background group-active:sd-6-17-0-button--primary--inverted--active-color-background":"sd-6-17-0-button--primary--hover-color-background group-active:bg-primary-800",secondary:this.inverted?"sd-6-17-0-button--secondary--inverted--hover-color-background group-active:sd-6-17-0-button--secondary--inverted--active-color-background group-active:sd-6-17-0-button--secondary--inverted--active-color-text":"sd-6-17-0-button--secondary--hover-color-background group-active:sd-6-17-0-button--secondary--active-color-background",tertiary:this.inverted?"sd-6-17-0-button--tertiary--inverted--hover-color-background group-active:sd-6-17-0-button--tertiary--inverted--active-color-background group-active:sd-6-17-0-button--tertiary--inverted--active-color-text":"sd-6-17-0-button--tertiary--hover-color-background group-active:sd-6-17-0-button--tertiary--active-color-background",cta:this.inverted?"sd-6-17-0-button--cta--inverted--hover-color-background group-active:sd-6-17-0-button--cta--inverted--active-color-background":"bg-accent-500 group-active:bg-accent-700"}[this.variant])}"></div></div></div><slot name="icon-left" part="icon-left" class="${a("flex flex-auto items-center justify-end pointer-events-none",n["icon-only"]&&"hidden",this.loading&&"invisible",n["icon-left"]&&{sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size])}"></slot><slot part="label" id="content" class="${a("inline-flex items-center justify-center",{sm:"leading-5",md:"leading-6",lg:"leading-6"}[this.size],n["icon-only"]&&"pointer-events-none",this.loading&&"invisible")}"></slot><slot name="icon-right" part="icon-right" class="${a("flex flex-auto items-center pointer-events-none",this.loading&&"invisible",n["icon-only"]&&"hidden",n["icon-right"]&&{sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size])}"></slot>${this.loading?u`<sd-6-17-0-loader class="${a("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-6-17-0-loader>`:""}</${s}>`}};t.styles=[...l.styles,b`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
12
|
+
:host{position:relative;z-index:0;display:inline-block;width:auto;cursor:pointer}::slotted(sd-6-17-0-badge){pointer-events:none;position:absolute;top:calc(var(--sd-spacing-1) * 0);right:calc(var(--sd-spacing-1) * 0);--tw-translate-x:calc(1 / 2 * 100%)!important;--tw-translate-y:calc(calc(1 / 2 * 100%) * -1)!important;translate:var(--tw-translate-x) var(--tw-translate-y)!important}::slotted(sd-6-17-0-icon),sd-6-17-0-loader{font-size:calc(var(--tw-varspacing)/ 2)}:host([size=lg]) ::slotted(sd-6-17-0-icon){font-size:var(--sd-button--size-lg-icon-height,var(--sd-spacing-6))}:host([size=sm]) .sd-6-17-0-button--size-sm-border-radius{border-radius:var(--sd-button--size-sm-border-radius,var(--sd-button-border-radius))}:host([size=md]) .sd-6-17-0-button--size-md-border-radius{border-radius:var(--sd-button--size-md-border-radius,var(--sd-button-border-radius))}:host([size=lg]) .sd-6-17-0-button--size-lg-border-radius{border-radius:var(--sd-button--size-lg-border-radius,var(--sd-button-border-radius))}@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}`],e([m("a, button")],t.prototype,"button",2),e([g({selector:"sd-6-17-0-icon"})],t.prototype,"_iconsInDefaultSlot",2),e([h()],t.prototype,"invalid",2),e([o({type:String,reflect:!0})],t.prototype,"title",2),e([o({type:String,reflect:!0})],t.prototype,"variant",2),e([o({type:Boolean,reflect:!0})],t.prototype,"inverted",2),e([o({type:String,reflect:!0})],t.prototype,"size",2),e([o({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([o({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),e([o({type:Boolean,reflect:!0})],t.prototype,"loading",2),e([o({type:String,reflect:!0})],t.prototype,"type",2),e([o({type:String,reflect:!0})],t.prototype,"name",2),e([o()],t.prototype,"value",2),e([o({type:String,reflect:!0})],t.prototype,"href",2),e([o({type:String,reflect:!0})],t.prototype,"target",2),e([o({reflect:!0})],t.prototype,"download",2),e([o({reflect:!0})],t.prototype,"form",2),e([o({attribute:"formaction"})],t.prototype,"formAction",2),e([o({attribute:"formenctype"})],t.prototype,"formEnctype",2),e([o({attribute:"formmethod"})],t.prototype,"formMethod",2),e([o({attribute:"formnovalidate",type:Boolean})],t.prototype,"formNoValidate",2),e([o({attribute:"formtarget"})],t.prototype,"formTarget",2),e([p("disabled",{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),t=e([v("sd-6-17-0-button")],t);export{t as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as c}from"./chunk.QIKBKQXB.js";import{a as l}from"./chunk.NYKJXI3Q.js";import{a as o,b as i,h as a}from"./chunk.
|
|
2
|
-
:host{--padding:0;display:none}:host([active]){display:block}::part(base){padding:var(--padding)}`],e([i({type:String,reflect:!0})],t.prototype,"name",2),e([i({type:Boolean,reflect:!0})],t.prototype,"active",2),e([l("active")],t.prototype,"handleActiveChange",1),t=e([o("sd-6-
|
|
1
|
+
import{a as c}from"./chunk.QIKBKQXB.js";import{a as l}from"./chunk.NYKJXI3Q.js";import{a as o,b as i,h as a}from"./chunk.AWJGLIES.js";import{b as s,e as r}from"./chunk.UOAG5PNU.js";import{e}from"./chunk.6EV4YU6C.js";var n=0,t=class extends a{constructor(){super(...arguments);this.attrId=++n;this.componentId=`sd-6-17-0-tab-panel-${this.attrId}`;this.name="";this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tabpanel")}handleActiveChange(){this.setAttribute("aria-hidden",this.active?"false":"true")}render(){return r`<slot part="base" class="${c("block",this.active&&"tab-panel--active")}"></slot>`}};t.styles=[...a.styles,s`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
2
|
+
:host{--padding:0;display:none}:host([active]){display:block}::part(base){padding:var(--padding)}`],e([i({type:String,reflect:!0})],t.prototype,"name",2),e([i({type:Boolean,reflect:!0})],t.prototype,"active",2),e([l("active")],t.prototype,"handleActiveChange",1),t=e([o("sd-6-17-0-tab-panel")],t);export{t as a};
|