@solid-design-system/components 7.0.0-next.3 → 7.0.0-next.4
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.5ITG6KGD.js → chunk.2GJ2Z2N2.js} +1 -1
- package/cdn/chunks/{chunk.5F5NZQB2.js → chunk.2LLEAKS7.js} +1 -1
- package/cdn/chunks/{chunk.KR27MICN.js → chunk.2P3QV4AS.js} +1 -1
- package/cdn/chunks/{chunk.QTPFQGR7.js → chunk.3BXVPLMO.js} +1 -1
- package/cdn/chunks/{chunk.64SUNU54.js → chunk.3CDC42NF.js} +1 -1
- package/cdn/chunks/{chunk.SWPN5WUJ.js → chunk.4HLQKHWE.js} +1 -1
- package/cdn/chunks/{chunk.ZAB7A5W7.js → chunk.4PSKBUCX.js} +1 -1
- package/cdn/chunks/{chunk.PNRCMW5N.js → chunk.5E46HGSI.js} +1 -1
- package/cdn/chunks/{chunk.XNB5UHRT.js → chunk.5QVISDJV.js} +1 -1
- package/cdn/chunks/{chunk.UTBC4DI6.js → chunk.6VDTKIPC.js} +1 -1
- package/cdn/chunks/{chunk.CWSVXPYD.js → chunk.75JSUGHO.js} +1 -1
- package/cdn/chunks/{chunk.ZXMU6GLZ.js → chunk.AIM3ZGQG.js} +1 -1
- package/cdn/chunks/{chunk.IWKYZ6J2.js → chunk.AMZ5U6GY.js} +1 -1
- package/cdn/chunks/{chunk.XPALAZ3K.js → chunk.COC2WHFL.js} +1 -1
- package/cdn/chunks/{chunk.NATZPKHW.js → chunk.DA4W66GE.js} +1 -1
- package/cdn/chunks/{chunk.36YZDWQH.js → chunk.DB2UPC2O.js} +1 -1
- package/cdn/chunks/{chunk.YG4OTB7M.js → chunk.EBT6DGVX.js} +1 -1
- package/cdn/chunks/{chunk.UBUSZ4VB.js → chunk.ECBXCHAK.js} +1 -1
- package/cdn/chunks/{chunk.V3PA35KW.js → chunk.EH5DX5Q4.js} +1 -1
- package/cdn/chunks/{chunk.XY6LAPFB.js → chunk.ELN6PO6N.js} +1 -1
- package/cdn/chunks/{chunk.MHW6ZP4T.js → chunk.EPEWTJZQ.js} +1 -1
- package/cdn/chunks/{chunk.7LHRDGWP.js → chunk.ERFMBJMN.js} +1 -1
- package/cdn/chunks/{chunk.2MPVWXFB.js → chunk.GF6RVEQL.js} +1 -1
- package/cdn/chunks/{chunk.HBXGLINC.js → chunk.GJHSZFXO.js} +1 -1
- package/cdn/chunks/{chunk.X2QW55HD.js → chunk.GTBO3C34.js} +1 -1
- package/cdn/chunks/{chunk.UN7DL2MN.js → chunk.H2JUP5WV.js} +1 -1
- package/cdn/chunks/{chunk.6WQRLB7U.js → chunk.HC6O362U.js} +1 -1
- package/cdn/chunks/{chunk.DIDMWRN3.js → chunk.HVCDQSC3.js} +1 -1
- package/cdn/chunks/{chunk.4QZMOBX3.js → chunk.HW534C56.js} +1 -1
- package/cdn/chunks/{chunk.LVATN3YW.js → chunk.IMZUE643.js} +1 -1
- package/cdn/chunks/{chunk.J5C22TF2.js → chunk.IVPQC3VZ.js} +1 -1
- package/cdn/chunks/{chunk.YL7463TI.js → chunk.JRELKQHZ.js} +1 -1
- package/cdn/chunks/{chunk.U5LYN6TY.js → chunk.JYXX5KO2.js} +1 -1
- package/cdn/chunks/{chunk.JI2XVLZH.js → chunk.K7MTUJHH.js} +1 -1
- package/cdn/chunks/{chunk.RLTO5J3E.js → chunk.KKHVITRN.js} +1 -1
- package/cdn/chunks/{chunk.D7PE6JKX.js → chunk.L2VZ43LT.js} +1 -1
- package/cdn/chunks/{chunk.6GDQK5O5.js → chunk.LHPEH7RR.js} +1 -1
- package/cdn/chunks/{chunk.JURMXI5Y.js → chunk.LHVND665.js} +1 -1
- package/cdn/chunks/{chunk.PJ4AHTMH.js → chunk.MABD6SUM.js} +1 -1
- package/cdn/chunks/{chunk.47KQZYJR.js → chunk.MB3UFJE5.js} +1 -1
- package/cdn/chunks/chunk.MHLONLMU.js +2 -0
- package/cdn/chunks/chunk.MHZYUAHF.js +12 -0
- package/cdn/chunks/{chunk.NFDBY4LL.js → chunk.NWJ2RTKD.js} +1 -1
- package/cdn/chunks/{chunk.NICDKFPS.js → chunk.O4TGO7RR.js} +1 -1
- package/cdn/chunks/{chunk.7XY6DMAY.js → chunk.O6U6Z7JR.js} +1 -1
- package/cdn/chunks/{chunk.2XJ2J3VL.js → chunk.OMAUGN4E.js} +1 -1
- package/cdn/chunks/{chunk.SKS4G5SG.js → chunk.OUONZ36F.js} +1 -1
- package/cdn/chunks/{chunk.IZCKJLZR.js → chunk.Q4DN4ZZH.js} +1 -1
- package/cdn/chunks/{chunk.XIIQ37KS.js → chunk.Q5U7YL6V.js} +1 -1
- package/cdn/chunks/{chunk.KZ5SFF6G.js → chunk.QJL42ICJ.js} +1 -1
- package/cdn/chunks/{chunk.KOMME47J.js → chunk.QZGNVLZ6.js} +1 -1
- package/cdn/chunks/chunk.SGJYHE3R.js +26 -0
- package/cdn/chunks/{chunk.LICVZSAH.js → chunk.TAL4RLOZ.js} +1 -1
- package/cdn/chunks/{chunk.UY5TXYXC.js → chunk.VRTYFVS4.js} +1 -1
- package/cdn/chunks/{chunk.WZSNE2FO.js → chunk.VUHJ4M6S.js} +1 -1
- package/cdn/chunks/{chunk.3H5XUPF5.js → chunk.X2AUH4EN.js} +1 -1
- package/cdn/chunks/{chunk.NJ5CEN2R.js → chunk.XZ5G5ZXS.js} +1 -1
- package/cdn/chunks/{chunk.QW2U4ORE.js → chunk.XZZSPH7T.js} +1 -1
- package/cdn/chunks/{chunk.ZXQQJBCT.js → chunk.ZBBIDDL4.js} +1 -1
- package/cdn/chunks/{chunk.K6TOCFIN.js → chunk.ZVAHJYMW.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.d.ts +5 -0
- 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.d.ts +4 -0
- 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/progress-bar/progress-bar.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/step/step.js +1 -1
- 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 -174
- package/cdn/solid-components.bundle.js +92 -93
- package/cdn/solid-components.d.ts +0 -1
- package/cdn/solid-components.iife.js +90 -91
- package/cdn/solid-components.js +1 -1
- package/cdn/utilities/autocomplete-config.js +1 -1
- package/cdn/utilities/localize.js +1 -1
- package/cdn/vscode.html-custom-data.json +0 -31
- package/cdn/web-types.json +1 -48
- package/cdn-versioned/chunks/{chunk.5ITG6KGD.js → chunk.2GJ2Z2N2.js} +2 -2
- package/cdn-versioned/chunks/{chunk.5F5NZQB2.js → chunk.2LLEAKS7.js} +2 -2
- package/cdn-versioned/chunks/{chunk.KR27MICN.js → chunk.2P3QV4AS.js} +2 -2
- package/cdn-versioned/chunks/{chunk.QTPFQGR7.js → chunk.3BXVPLMO.js} +2 -2
- package/cdn-versioned/chunks/{chunk.64SUNU54.js → chunk.3CDC42NF.js} +2 -2
- package/cdn-versioned/chunks/{chunk.SWPN5WUJ.js → chunk.4HLQKHWE.js} +2 -2
- package/cdn-versioned/chunks/{chunk.ZAB7A5W7.js → chunk.4PSKBUCX.js} +2 -2
- package/cdn-versioned/chunks/{chunk.PNRCMW5N.js → chunk.5E46HGSI.js} +2 -2
- package/cdn-versioned/chunks/{chunk.XNB5UHRT.js → chunk.5QVISDJV.js} +2 -2
- package/cdn-versioned/chunks/{chunk.UTBC4DI6.js → chunk.6VDTKIPC.js} +2 -2
- package/cdn-versioned/chunks/{chunk.CWSVXPYD.js → chunk.75JSUGHO.js} +2 -2
- package/cdn-versioned/chunks/{chunk.ZXMU6GLZ.js → chunk.AIM3ZGQG.js} +2 -2
- package/cdn-versioned/chunks/{chunk.IWKYZ6J2.js → chunk.AMZ5U6GY.js} +2 -2
- package/cdn-versioned/chunks/chunk.C45254AN.js +2 -2
- package/cdn-versioned/chunks/{chunk.XPALAZ3K.js → chunk.COC2WHFL.js} +3 -3
- package/cdn-versioned/chunks/{chunk.NATZPKHW.js → chunk.DA4W66GE.js} +2 -2
- package/cdn-versioned/chunks/{chunk.36YZDWQH.js → chunk.DB2UPC2O.js} +2 -2
- package/cdn-versioned/chunks/chunk.DSKB3SEU.js +1 -1
- package/cdn-versioned/chunks/{chunk.YG4OTB7M.js → chunk.EBT6DGVX.js} +2 -2
- package/cdn-versioned/chunks/{chunk.UBUSZ4VB.js → chunk.ECBXCHAK.js} +2 -2
- package/cdn-versioned/chunks/{chunk.V3PA35KW.js → chunk.EH5DX5Q4.js} +2 -2
- package/cdn-versioned/chunks/{chunk.XY6LAPFB.js → chunk.ELN6PO6N.js} +2 -2
- package/cdn-versioned/chunks/{chunk.MHW6ZP4T.js → chunk.EPEWTJZQ.js} +2 -2
- package/cdn-versioned/chunks/{chunk.7LHRDGWP.js → chunk.ERFMBJMN.js} +2 -2
- package/cdn-versioned/chunks/{chunk.2MPVWXFB.js → chunk.GF6RVEQL.js} +2 -2
- package/cdn-versioned/chunks/{chunk.HBXGLINC.js → chunk.GJHSZFXO.js} +2 -2
- package/cdn-versioned/chunks/{chunk.X2QW55HD.js → chunk.GTBO3C34.js} +2 -2
- package/cdn-versioned/chunks/{chunk.UN7DL2MN.js → chunk.H2JUP5WV.js} +2 -2
- package/cdn-versioned/chunks/{chunk.6WQRLB7U.js → chunk.HC6O362U.js} +2 -2
- package/cdn-versioned/chunks/{chunk.DIDMWRN3.js → chunk.HVCDQSC3.js} +2 -2
- package/cdn-versioned/chunks/{chunk.4QZMOBX3.js → chunk.HW534C56.js} +2 -2
- package/cdn-versioned/chunks/{chunk.LVATN3YW.js → chunk.IMZUE643.js} +2 -2
- package/cdn-versioned/chunks/{chunk.J5C22TF2.js → chunk.IVPQC3VZ.js} +3 -3
- package/cdn-versioned/chunks/{chunk.YL7463TI.js → chunk.JRELKQHZ.js} +2 -2
- package/cdn-versioned/chunks/{chunk.U5LYN6TY.js → chunk.JYXX5KO2.js} +3 -3
- package/cdn-versioned/chunks/{chunk.JI2XVLZH.js → chunk.K7MTUJHH.js} +2 -2
- package/cdn-versioned/chunks/{chunk.RLTO5J3E.js → chunk.KKHVITRN.js} +2 -2
- package/cdn-versioned/chunks/{chunk.D7PE6JKX.js → chunk.L2VZ43LT.js} +2 -2
- package/cdn-versioned/chunks/{chunk.6GDQK5O5.js → chunk.LHPEH7RR.js} +2 -2
- package/cdn-versioned/chunks/{chunk.JURMXI5Y.js → chunk.LHVND665.js} +5 -5
- package/cdn-versioned/chunks/chunk.LZRL7OLU.js +1 -1
- package/cdn-versioned/chunks/{chunk.PJ4AHTMH.js → chunk.MABD6SUM.js} +2 -2
- package/cdn-versioned/chunks/{chunk.47KQZYJR.js → chunk.MB3UFJE5.js} +2 -2
- package/cdn-versioned/chunks/chunk.MHLONLMU.js +2 -0
- package/cdn-versioned/chunks/chunk.MHZYUAHF.js +12 -0
- package/cdn-versioned/chunks/{chunk.NFDBY4LL.js → chunk.NWJ2RTKD.js} +2 -2
- package/cdn-versioned/chunks/{chunk.NICDKFPS.js → chunk.O4TGO7RR.js} +2 -2
- package/cdn-versioned/chunks/{chunk.7XY6DMAY.js → chunk.O6U6Z7JR.js} +2 -2
- package/cdn-versioned/chunks/{chunk.2XJ2J3VL.js → chunk.OMAUGN4E.js} +2 -2
- package/cdn-versioned/chunks/{chunk.SKS4G5SG.js → chunk.OUONZ36F.js} +2 -2
- package/cdn-versioned/chunks/{chunk.IZCKJLZR.js → chunk.Q4DN4ZZH.js} +2 -2
- package/cdn-versioned/chunks/{chunk.XIIQ37KS.js → chunk.Q5U7YL6V.js} +2 -2
- package/cdn-versioned/chunks/{chunk.KZ5SFF6G.js → chunk.QJL42ICJ.js} +2 -2
- package/cdn-versioned/chunks/{chunk.KOMME47J.js → chunk.QZGNVLZ6.js} +2 -2
- package/cdn-versioned/chunks/chunk.SGJYHE3R.js +26 -0
- package/cdn-versioned/chunks/{chunk.LICVZSAH.js → chunk.TAL4RLOZ.js} +3 -3
- package/cdn-versioned/chunks/{chunk.UY5TXYXC.js → chunk.VRTYFVS4.js} +2 -2
- package/cdn-versioned/chunks/{chunk.WZSNE2FO.js → chunk.VUHJ4M6S.js} +2 -2
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/{chunk.3H5XUPF5.js → chunk.X2AUH4EN.js} +5 -5
- package/cdn-versioned/chunks/{chunk.NJ5CEN2R.js → chunk.XZ5G5ZXS.js} +2 -2
- package/cdn-versioned/chunks/{chunk.QW2U4ORE.js → chunk.XZZSPH7T.js} +2 -2
- package/cdn-versioned/chunks/{chunk.ZXQQJBCT.js → chunk.ZBBIDDL4.js} +2 -2
- package/cdn-versioned/chunks/{chunk.K6TOCFIN.js → chunk.ZVAHJYMW.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 +6 -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 +5 -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/progress-bar/progress-bar.d.ts +1 -1
- package/cdn-versioned/components/progress-bar/progress-bar.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/step/step.d.ts +1 -1
- package/cdn-versioned/components/step/step.js +1 -1
- package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
- 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 +260 -429
- package/cdn-versioned/internal/form.js +2 -2
- package/cdn-versioned/solid-components.bundle.js +97 -98
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.d.ts +0 -1
- package/cdn-versioned/solid-components.iife.js +97 -98
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/utilities/autocomplete-config.js +1 -1
- package/cdn-versioned/utilities/localize.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +113 -144
- package/cdn-versioned/web-types.json +169 -216
- package/dist/chunks/{chunk.EBLUHAPV.js → chunk.2A2XLAZ6.js} +1 -1
- package/dist/chunks/{chunk.332BBYHT.js → chunk.2MPKSDFV.js} +1 -1
- package/dist/chunks/{chunk.HVKZA5Q2.js → chunk.2WRG4JLD.js} +1 -1
- package/dist/chunks/{chunk.TXBRN4WB.js → chunk.55JRGHYZ.js} +1 -1
- package/dist/chunks/{chunk.4ICMHKGL.js → chunk.5LCAXSSU.js} +1 -1
- package/dist/chunks/{chunk.I5TVWNGY.js → chunk.5MKROBU2.js} +2 -2
- package/dist/chunks/{chunk.K5UVAUSH.js → chunk.5N723KVX.js} +1 -1
- package/dist/chunks/{chunk.CEEZZN7A.js → chunk.5Q7N5BFG.js} +1 -1
- package/dist/chunks/{chunk.EAM3NSOC.js → chunk.5R6X3OUC.js} +1 -1
- package/dist/chunks/{chunk.IJQGWINY.js → chunk.6A4V3BDD.js} +1 -1
- package/dist/chunks/{chunk.LM6MZUBT.js → chunk.6V4BBUOB.js} +1 -1
- package/dist/chunks/{chunk.PJELKFNY.js → chunk.AF7LVJ42.js} +1 -1
- package/dist/chunks/{chunk.NEWIPIU5.js → chunk.AHYFAMPB.js} +1 -1
- package/dist/chunks/{chunk.WCTYTU3K.js → chunk.AKFD4POM.js} +1 -1
- package/dist/chunks/{chunk.Y32GRFGF.js → chunk.CEAD7GE5.js} +1 -1
- package/dist/chunks/{chunk.U4QAR37W.js → chunk.CQ6DFCND.js} +1 -1
- package/dist/chunks/{chunk.ROTKRIJL.js → chunk.CRTYDXIZ.js} +1 -1
- package/dist/chunks/{chunk.CBXPY7RV.js → chunk.CST7TW6Q.js} +1 -1
- package/dist/chunks/{chunk.64V7RPJM.js → chunk.D333WSUU.js} +1 -1
- package/dist/chunks/{chunk.H4N3X443.js → chunk.DEBCAM5G.js} +1 -1
- package/dist/chunks/{chunk.HQZ5Y72U.js → chunk.EPA3ZMZ6.js} +1 -1
- package/dist/chunks/{chunk.XUYPFGE4.js → chunk.FHZBC7YI.js} +1 -1
- package/dist/chunks/{chunk.YEAB2PEA.js → chunk.FKT27XGY.js} +1 -1
- package/dist/chunks/{chunk.ENPE3AO3.js → chunk.FUTFHFME.js} +1 -1
- package/dist/chunks/{chunk.YC54RFTI.js → chunk.HKGKJSNK.js} +1 -1
- package/dist/chunks/{chunk.QUNBU6CO.js → chunk.I2RFDBMV.js} +1 -1
- package/dist/chunks/{chunk.HX75WC4T.js → chunk.IFK35LWT.js} +1 -1
- package/dist/chunks/{chunk.X6ZZWTS7.js → chunk.IUE6LRBW.js} +1 -1
- package/dist/chunks/{chunk.4UWPPYNK.js → chunk.J5LGPQPF.js} +1 -1
- package/dist/chunks/{chunk.L3TT74JB.js → chunk.JBF2NX2O.js} +1 -1
- package/dist/chunks/{chunk.LNZEJCES.js → chunk.JL5JAIKK.js} +1 -1
- package/dist/chunks/{chunk.FAQBBAJ3.js → chunk.JO3VO5XL.js} +1 -1
- package/dist/chunks/{chunk.WJFZKOMO.js → chunk.JRWHGSFU.js} +1 -1
- package/dist/chunks/{chunk.KDPFXMT7.js → chunk.JSWS6X3U.js} +1 -1
- package/dist/chunks/{chunk.ZINALM6Z.js → chunk.JZOKETCG.js} +2 -2
- package/dist/chunks/{chunk.MLBOR3OA.js → chunk.KRQXRRDJ.js} +1 -1
- package/dist/chunks/{chunk.TF2CAVQI.js → chunk.L4AFCWKB.js} +61 -23
- package/dist/chunks/{chunk.FRTXHCPD.js → chunk.M2JKMFD5.js} +1 -1
- package/dist/chunks/{chunk.DZ6FRKXI.js → chunk.MACUA7LR.js} +1 -1
- package/dist/chunks/{chunk.RH3RR3MN.js → chunk.MCRDVATU.js} +1 -1
- package/dist/chunks/{chunk.EI5PCGH6.js → chunk.MEDGQUDQ.js} +1 -1
- package/dist/chunks/{chunk.HXXLOMBL.js → chunk.NHGPTJYA.js} +48 -7
- package/dist/chunks/{chunk.JO4VO3DE.js → chunk.PHDXES2E.js} +1 -1
- package/dist/chunks/{chunk.POPOYCUO.js → chunk.PZYEO6JX.js} +1 -1
- package/dist/chunks/{chunk.ZI4J2JI6.js → chunk.QE5IYB7Q.js} +1 -1
- package/dist/chunks/{chunk.IU2IAYUW.js → chunk.QUBMQHBS.js} +1 -1
- package/dist/chunks/{chunk.WD6OT624.js → chunk.R7AKCNLH.js} +1 -1
- package/dist/chunks/{chunk.NDQTMQGH.js → chunk.RBFDHNCA.js} +1 -1
- package/dist/chunks/{chunk.BGHQYSC6.js → chunk.SYN6Y7B2.js} +1 -1
- package/dist/chunks/{chunk.H6K6J6HB.js → chunk.T227KIHC.js} +2 -2
- package/dist/chunks/{chunk.GWLYBCED.js → chunk.TIURA3CR.js} +1 -1
- package/dist/chunks/{chunk.CFE22DL2.js → chunk.UQW2D27E.js} +1 -1
- package/dist/chunks/{chunk.TACTLKX6.js → chunk.V3OXFXTL.js} +1 -1
- package/dist/chunks/{chunk.DJIFAD75.js → chunk.VUBZTPBJ.js} +1 -1
- package/dist/chunks/{chunk.MZXDJ23T.js → chunk.VVGDAH3Y.js} +1 -1
- package/dist/chunks/{chunk.4KQSESLL.js → chunk.XLRNOFGT.js} +1 -1
- package/dist/chunks/{chunk.NHPAPNCA.js → chunk.XO2EYEOQ.js} +1 -1
- package/dist/chunks/{chunk.ICBYOTXZ.js → chunk.YPXPF4CW.js} +1 -1
- package/dist/chunks/{chunk.XZHZDSPQ.js → chunk.Z7YV6XJB.js} +1 -1
- package/dist/chunks/chunk.ZZYKQTZB.js +93 -0
- package/dist/components/accordion/accordion.js +4 -4
- package/dist/components/accordion-group/accordion-group.js +5 -5
- package/dist/components/animation/animation.js +2 -2
- package/dist/components/audio/audio.js +8 -7
- package/dist/components/badge/badge.js +2 -2
- package/dist/components/brandshape/brandshape.js +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +6 -6
- package/dist/components/breadcrumb-item/breadcrumb-item.js +4 -4
- package/dist/components/button/button.d.ts +5 -0
- package/dist/components/button/button.js +5 -4
- package/dist/components/button-group/button-group.js +2 -2
- package/dist/components/carousel/carousel.js +5 -5
- 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 +6 -6
- package/dist/components/datepicker/datepicker.js +6 -6
- package/dist/components/dialog/dialog.d.ts +4 -0
- package/dist/components/dialog/dialog.js +7 -6
- package/dist/components/divider/divider.js +2 -2
- package/dist/components/drawer/drawer.js +7 -6
- package/dist/components/dropdown/dropdown.js +4 -4
- package/dist/components/expandable/expandable.js +4 -4
- package/dist/components/flipcard/flipcard.js +7 -6
- 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 +4 -4
- package/dist/components/link/link.js +2 -2
- package/dist/components/loader/loader.js +3 -3
- package/dist/components/map-marker/map-marker.js +2 -2
- package/dist/components/menu/menu.js +3 -3
- package/dist/components/menu-item/menu-item.js +2 -2
- package/dist/components/navigation-item/navigation-item.js +5 -5
- package/dist/components/notification/notification.js +7 -6
- package/dist/components/optgroup/optgroup.js +4 -4
- package/dist/components/option/option.js +3 -3
- package/dist/components/popup/popup.js +2 -2
- package/dist/components/progress-bar/progress-bar.js +3 -3
- package/dist/components/quickfact/quickfact.js +5 -5
- 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 +6 -6
- package/dist/components/range-tick/range-tick.js +3 -3
- package/dist/components/scrollable/scrollable.js +4 -4
- package/dist/components/select/select.js +6 -6
- package/dist/components/skeleton/skeleton.js +2 -2
- package/dist/components/step/step.js +3 -3
- package/dist/components/step-group/step-group.js +2 -2
- package/dist/components/switch/switch.js +2 -2
- package/dist/components/tab/tab.js +3 -3
- package/dist/components/tab-group/tab-group.js +4 -4
- package/dist/components/tab-panel/tab-panel.js +2 -2
- package/dist/components/tag/tag.js +4 -4
- 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 +5 -5
- package/dist/components/video/video.js +4 -4
- package/dist/custom-elements.json +5 -174
- package/dist/solid-components.d.ts +0 -1
- package/dist/solid-components.js +63 -67
- package/dist/utilities/autocomplete-config.js +2 -2
- package/dist/utilities/localize.js +1 -1
- package/dist/vscode.html-custom-data.json +0 -31
- package/dist/web-types.json +1 -48
- package/dist-versioned/chunks/{chunk.EBLUHAPV.js → chunk.2A2XLAZ6.js} +6 -6
- package/dist-versioned/chunks/{chunk.332BBYHT.js → chunk.2MPKSDFV.js} +4 -4
- package/dist-versioned/chunks/{chunk.HVKZA5Q2.js → chunk.2WRG4JLD.js} +2 -2
- package/dist-versioned/chunks/{chunk.TXBRN4WB.js → chunk.55JRGHYZ.js} +6 -6
- package/dist-versioned/chunks/{chunk.4ICMHKGL.js → chunk.5LCAXSSU.js} +8 -8
- package/dist-versioned/chunks/{chunk.I5TVWNGY.js → chunk.5MKROBU2.js} +5 -5
- package/dist-versioned/chunks/{chunk.K5UVAUSH.js → chunk.5N723KVX.js} +2 -2
- package/dist-versioned/chunks/{chunk.CEEZZN7A.js → chunk.5Q7N5BFG.js} +3 -3
- package/dist-versioned/chunks/{chunk.EAM3NSOC.js → chunk.5R6X3OUC.js} +5 -5
- package/dist-versioned/chunks/{chunk.IJQGWINY.js → chunk.6A4V3BDD.js} +3 -3
- package/dist-versioned/chunks/{chunk.LM6MZUBT.js → chunk.6V4BBUOB.js} +8 -8
- package/dist-versioned/chunks/{chunk.PJELKFNY.js → chunk.AF7LVJ42.js} +2 -2
- package/dist-versioned/chunks/{chunk.NEWIPIU5.js → chunk.AHYFAMPB.js} +4 -4
- package/dist-versioned/chunks/{chunk.WCTYTU3K.js → chunk.AKFD4POM.js} +4 -4
- package/dist-versioned/chunks/chunk.C3WIBDGG.js +2 -2
- package/dist-versioned/chunks/{chunk.Y32GRFGF.js → chunk.CEAD7GE5.js} +3 -3
- package/dist-versioned/chunks/{chunk.U4QAR37W.js → chunk.CQ6DFCND.js} +2 -2
- package/dist-versioned/chunks/{chunk.ROTKRIJL.js → chunk.CRTYDXIZ.js} +5 -5
- package/dist-versioned/chunks/{chunk.CBXPY7RV.js → chunk.CST7TW6Q.js} +6 -6
- package/dist-versioned/chunks/{chunk.64V7RPJM.js → chunk.D333WSUU.js} +5 -5
- package/dist-versioned/chunks/{chunk.H4N3X443.js → chunk.DEBCAM5G.js} +7 -7
- package/dist-versioned/chunks/{chunk.HQZ5Y72U.js → chunk.EPA3ZMZ6.js} +6 -6
- package/dist-versioned/chunks/{chunk.XUYPFGE4.js → chunk.FHZBC7YI.js} +12 -12
- package/dist-versioned/chunks/{chunk.YEAB2PEA.js → chunk.FKT27XGY.js} +2 -2
- package/dist-versioned/chunks/{chunk.ENPE3AO3.js → chunk.FUTFHFME.js} +15 -15
- package/dist-versioned/chunks/{chunk.YC54RFTI.js → chunk.HKGKJSNK.js} +12 -12
- package/dist-versioned/chunks/{chunk.QUNBU6CO.js → chunk.I2RFDBMV.js} +6 -6
- package/dist-versioned/chunks/{chunk.HX75WC4T.js → chunk.IFK35LWT.js} +11 -11
- package/dist-versioned/chunks/{chunk.X6ZZWTS7.js → chunk.IUE6LRBW.js} +3 -3
- package/dist-versioned/chunks/{chunk.4UWPPYNK.js → chunk.J5LGPQPF.js} +3 -3
- package/dist-versioned/chunks/{chunk.L3TT74JB.js → chunk.JBF2NX2O.js} +4 -4
- package/dist-versioned/chunks/{chunk.LNZEJCES.js → chunk.JL5JAIKK.js} +4 -4
- package/dist-versioned/chunks/{chunk.FAQBBAJ3.js → chunk.JO3VO5XL.js} +26 -26
- package/dist-versioned/chunks/{chunk.WJFZKOMO.js → chunk.JRWHGSFU.js} +3 -3
- package/dist-versioned/chunks/{chunk.KDPFXMT7.js → chunk.JSWS6X3U.js} +3 -3
- package/dist-versioned/chunks/{chunk.ZINALM6Z.js → chunk.JZOKETCG.js} +14 -14
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/{chunk.MLBOR3OA.js → chunk.KRQXRRDJ.js} +3 -3
- package/dist-versioned/chunks/{chunk.TF2CAVQI.js → chunk.L4AFCWKB.js} +79 -41
- package/dist-versioned/chunks/{chunk.FRTXHCPD.js → chunk.M2JKMFD5.js} +7 -7
- package/dist-versioned/chunks/{chunk.DZ6FRKXI.js → chunk.MACUA7LR.js} +13 -13
- package/dist-versioned/chunks/{chunk.RH3RR3MN.js → chunk.MCRDVATU.js} +7 -7
- package/dist-versioned/chunks/{chunk.EI5PCGH6.js → chunk.MEDGQUDQ.js} +6 -6
- package/dist-versioned/chunks/{chunk.HXXLOMBL.js → chunk.NHGPTJYA.js} +50 -9
- package/dist-versioned/chunks/{chunk.JO4VO3DE.js → chunk.PHDXES2E.js} +24 -24
- package/dist-versioned/chunks/{chunk.POPOYCUO.js → chunk.PZYEO6JX.js} +11 -11
- package/dist-versioned/chunks/{chunk.ZI4J2JI6.js → chunk.QE5IYB7Q.js} +3 -3
- package/dist-versioned/chunks/chunk.QGERTGJH.js +4 -4
- package/dist-versioned/chunks/{chunk.IU2IAYUW.js → chunk.QUBMQHBS.js} +6 -6
- package/dist-versioned/chunks/{chunk.WD6OT624.js → chunk.R7AKCNLH.js} +7 -7
- package/dist-versioned/chunks/{chunk.NDQTMQGH.js → chunk.RBFDHNCA.js} +6 -6
- package/dist-versioned/chunks/{chunk.BGHQYSC6.js → chunk.SYN6Y7B2.js} +3 -3
- package/dist-versioned/chunks/{chunk.H6K6J6HB.js → chunk.T227KIHC.js} +12 -12
- package/dist-versioned/chunks/{chunk.GWLYBCED.js → chunk.TIURA3CR.js} +8 -8
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/{chunk.CFE22DL2.js → chunk.UQW2D27E.js} +9 -9
- package/dist-versioned/chunks/{chunk.TACTLKX6.js → chunk.V3OXFXTL.js} +7 -7
- package/dist-versioned/chunks/{chunk.DJIFAD75.js → chunk.VUBZTPBJ.js} +14 -14
- package/dist-versioned/chunks/{chunk.MZXDJ23T.js → chunk.VVGDAH3Y.js} +6 -6
- package/dist-versioned/chunks/{chunk.4KQSESLL.js → chunk.XLRNOFGT.js} +11 -11
- package/dist-versioned/chunks/{chunk.NHPAPNCA.js → chunk.XO2EYEOQ.js} +12 -12
- package/dist-versioned/chunks/{chunk.ICBYOTXZ.js → chunk.YPXPF4CW.js} +5 -5
- package/dist-versioned/chunks/{chunk.XZHZDSPQ.js → chunk.Z7YV6XJB.js} +2 -2
- package/dist-versioned/chunks/chunk.ZZYKQTZB.js +93 -0
- package/dist-versioned/components/accordion/accordion.d.ts +1 -1
- package/dist-versioned/components/accordion/accordion.js +4 -4
- package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist-versioned/components/accordion-group/accordion-group.js +5 -5
- 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 +8 -7
- 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 +6 -6
- package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/dist-versioned/components/breadcrumb-item/breadcrumb-item.js +4 -4
- package/dist-versioned/components/button/button.d.ts +6 -1
- package/dist-versioned/components/button/button.js +5 -4
- 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 +5 -5
- 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 +6 -6
- package/dist-versioned/components/datepicker/datepicker.d.ts +1 -1
- package/dist-versioned/components/datepicker/datepicker.js +6 -6
- package/dist-versioned/components/dialog/dialog.d.ts +5 -1
- package/dist-versioned/components/dialog/dialog.js +7 -6
- 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 +7 -6
- package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/dist-versioned/components/dropdown/dropdown.js +4 -4
- package/dist-versioned/components/expandable/expandable.d.ts +1 -1
- package/dist-versioned/components/expandable/expandable.js +4 -4
- package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/dist-versioned/components/flipcard/flipcard.js +7 -6
- 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 +4 -4
- 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 +3 -3
- 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 +3 -3
- 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 +5 -5
- package/dist-versioned/components/notification/notification.d.ts +1 -1
- package/dist-versioned/components/notification/notification.js +7 -6
- package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/dist-versioned/components/optgroup/optgroup.js +4 -4
- 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/progress-bar/progress-bar.d.ts +1 -1
- package/dist-versioned/components/progress-bar/progress-bar.js +3 -3
- package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.js +5 -5
- 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 +6 -6
- package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/dist-versioned/components/range-tick/range-tick.js +3 -3
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/scrollable/scrollable.js +4 -4
- package/dist-versioned/components/select/select.d.ts +1 -1
- package/dist-versioned/components/select/select.js +6 -6
- package/dist-versioned/components/skeleton/skeleton.d.ts +1 -1
- package/dist-versioned/components/skeleton/skeleton.js +2 -2
- package/dist-versioned/components/step/step.d.ts +1 -1
- package/dist-versioned/components/step/step.js +3 -3
- package/dist-versioned/components/step-group/step-group.d.ts +1 -1
- 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 +3 -3
- package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/dist-versioned/components/tab-group/tab-group.js +4 -4
- 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 +4 -4
- 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 +5 -5
- package/dist-versioned/components/video/video.d.ts +1 -1
- package/dist-versioned/components/video/video.js +4 -4
- package/dist-versioned/custom-elements.json +260 -429
- package/dist-versioned/internal/form.js +2 -2
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.d.ts +0 -1
- package/dist-versioned/solid-components.js +63 -67
- package/dist-versioned/utilities/autocomplete-config.js +2 -2
- package/dist-versioned/utilities/localize.js +1 -1
- package/dist-versioned/vscode.html-custom-data.json +113 -144
- package/dist-versioned/web-types.json +169 -216
- package/package.json +2 -2
- package/cdn/chunks/chunk.4MY3PWSN.js +0 -2
- package/cdn/chunks/chunk.GHSIC6MA.js +0 -2
- package/cdn/chunks/chunk.ROU5X4FC.js +0 -12
- package/cdn/chunks/chunk.YAUFTHOR.js +0 -26
- package/cdn/components/spinner/spinner.d.ts +0 -13
- package/cdn/components/spinner/spinner.js +0 -1
- package/cdn-versioned/chunks/chunk.4MY3PWSN.js +0 -2
- package/cdn-versioned/chunks/chunk.GHSIC6MA.js +0 -2
- package/cdn-versioned/chunks/chunk.ROU5X4FC.js +0 -12
- package/cdn-versioned/chunks/chunk.YAUFTHOR.js +0 -26
- package/cdn-versioned/components/spinner/spinner.d.ts +0 -13
- package/cdn-versioned/components/spinner/spinner.js +0 -1
- package/dist/chunks/chunk.NAAQDM44.js +0 -50
- package/dist/chunks/chunk.O6I23JYG.js +0 -93
- package/dist/components/spinner/spinner.d.ts +0 -13
- package/dist/components/spinner/spinner.js +0 -12
- package/dist-versioned/chunks/chunk.NAAQDM44.js +0 -50
- package/dist-versioned/chunks/chunk.O6I23JYG.js +0 -93
- package/dist-versioned/components/spinner/spinner.d.ts +0 -13
- package/dist-versioned/components/spinner/spinner.js +0 -12
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as w}from"./chunk.SAEYIL5V.js";import{a as $}from"./chunk.ERP45OHF.js";import{b as x}from"./chunk.LZRL7OLU.js";import{a as r}from"./chunk.LHSR56PH.js";import{a as C}from"./chunk.CGQ2BPPZ.js";import{a as s}from"./chunk.4ZZFYCXX.js";import{a as d}from"./chunk.NYKJXI3Q.js";import{a as g,b as i,c,d as b,h as m}from"./chunk.
|
|
2
|
-
:host{display:block;height:100%}:host textarea{scrollbar-gutter:stable}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([required]) #label::after{content:' *'}:host([visually-disabled]) textarea{caret-color:transparent}.no-scrollbar::-webkit-scrollbar{display:none}`],e([b("#input")],t.prototype,"textarea",2),e([b("#invalid-message")],t.prototype,"invalidMessage",2),e([c()],t.prototype,"hasFocus",2),e([c()],t.prototype,"showValidStyle",2),e([c()],t.prototype,"showInvalidStyle",2),e([i({type:String,reflect:!0})],t.prototype,"title",2),e([i({type:String,reflect:!0})],t.prototype,"name",2),e([i()],t.prototype,"value",2),e([i({type:String,reflect:!0})],t.prototype,"size",2),e([i({type:String,reflect:!0})],t.prototype,"label",2),e([i({type:String,attribute:"help-text",reflect:!0})],t.prototype,"helpText",2),e([i({type:String,reflect:!0})],t.prototype,"placeholder",2),e([i({type:Number,reflect:!0})],t.prototype,"rows",2),e([i({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([i({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),e([i({type:Boolean,reflect:!0})],t.prototype,"readonly",2),e([i({type:String,reflect:!0})],t.prototype,"form",2),e([i({type:Boolean,reflect:!0})],t.prototype,"required",2),e([i({attribute:"floating-label",type:Boolean,reflect:!0})],t.prototype,"floatingLabel",2),e([i({type:Number,reflect:!0})],t.prototype,"minlength",2),e([i({type:Number,reflect:!0})],t.prototype,"maxlength",2),e([i({type:String,reflect:!0})],t.prototype,"autocapitalize",2),e([i({type:Boolean,reflect:!0,converter:{fromAttribute:l=>l!=="off",toAttribute:l=>l?"on":"off"}})],t.prototype,"autocorrect",2),e([i({reflect:!0})],t.prototype,"autocomplete",2),e([i({type:Boolean,reflect:!0})],t.prototype,"autofocus",2),e([i({type:String,reflect:!0})],t.prototype,"enterkeyhint",2),e([i({type:Boolean,reflect:!0,attribute:"style-on-valid"})],t.prototype,"styleOnValid",2),e([i({type:Boolean,converter:{fromAttribute:l=>!(!l||l==="false"),toAttribute:l=>l?"true":"false"}})],t.prototype,"spellcheck",2),e([i({type:String,reflect:!0})],t.prototype,"inputmode",2),e([$()],t.prototype,"defaultValue",2),e([d("disabled",{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),e([d("rows",{waitUntilFirstUpdate:!0})],t.prototype,"handleRowsChange",1),e([d("value",{waitUntilFirstUpdate:!0})],t.prototype,"handleValueChange",1),e([d(["size","floatingLabel"])],t.prototype,"handleSizeChange",1),t=e([g("sd-7-0-0-next-
|
|
1
|
+
import{a as w}from"./chunk.SAEYIL5V.js";import{a as $}from"./chunk.ERP45OHF.js";import{b as x}from"./chunk.LZRL7OLU.js";import{a as r}from"./chunk.LHSR56PH.js";import{a as C}from"./chunk.CGQ2BPPZ.js";import{a as s}from"./chunk.4ZZFYCXX.js";import{a as d}from"./chunk.NYKJXI3Q.js";import{a as g,b as i,c,d as b,h as m}from"./chunk.SGJYHE3R.js";import{b as y,e as o}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends m{constructor(){super(...arguments);this.formControlController=new x(this);this.hasSlotController=new C(this,"help-text","label");this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.title="";this.name="";this.value="";this.size="lg";this.label="";this.helpText="";this.placeholder="";this.rows=4;this.disabled=!1;this.visuallyDisabled=!1;this.readonly=!1;this.form="";this.required=!1;this.floatingLabel=!1;this.styleOnValid=!1;this.spellcheck=!0;this.defaultValue=""}get validity(){return this.textarea.validity}get validationMessage(){return this.textarea.validationMessage}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.setTextareaHeight()})}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.textarea.value,this.setTextareaHeight(),this.emit("sd-change")}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){if(this.visuallyDisabled){this.textarea.value=this.value;return}this.value=this.textarea.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(l){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(l),this.invalidMessage.textContent=l.target.validationMessage}setTextareaHeight(){this.textarea.style.height=void 0}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}focus(l){this.textarea.focus(l)}blur(){this.textarea.blur()}select(){this.textarea.select()}scrollPosition(l){if(l){typeof l.top=="number"&&(this.textarea.scrollTop=l.top),typeof l.left=="number"&&(this.textarea.scrollLeft=l.left);return}return{top:this.textarea.scrollTop,left:this.textarea.scrollTop}}setSelectionRange(l,a,n="none"){this.textarea.setSelectionRange(l,a,n)}setRangeText(l,a,n,p){this.textarea.setRangeText(l,a,n,p),this.value!==this.textarea.value&&(this.value=this.textarea.value),this.value!==this.textarea.value&&(this.value=this.textarea.value,this.setTextareaHeight())}checkValidity(){var l;return(l=this.textarea)==null?void 0:l.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.textarea.reportValidity()}setCustomValidity(l){this.textarea.setCustomValidity(l),this.formControlController.updateValidity()}render(){let l={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},a=this.label?!0:!!l.label,n=this.helpText?!0:!!l.helpText,p=!!l.tooltip,V=this.value!==null&&String(this.value).length>0,h=this.floatingLabel&&a&&(this.hasFocus&&!this.visuallyDisabled||V),u=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",f=this.size==="sm"?"text-sm":"text-base",v={sm:"text-base top-1",md:"text-lg top-2",lg:"text-xl top-2"}[this.size];return o`<div part="form-control" class="flex flex-col h-full text-left">${a&&!this.floatingLabel||p?o`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${s(a?"inline-block":"hidden",f,this.visuallyDisabled||this.disabled?"text-neutral-500":" form-control-color-text")}" for="input" aria-hidden="${a?"false":"true"}"><slot name="label">${this.label}</slot></label> ${l.tooltip?o`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${s("relative h-full w-full",this.disabled&&"cursor-not-allowed")}">${a&&this.floatingLabel?o`<label id="label" part="form-control-floating-label" class="${s("absolute left-4 z-20 transition-all duration-200 cursor-text",f,h?"top-2 text-xs":"top-2.5 form-control-color-text")}" for="input"><span class="${s("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",h&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}<div part="border" class="${s("absolute w-full h-full pointer-events-none border form-control-border-radius transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[u])}"></div><div part="base" class="${s("textarea h-full flex items-top form-control-border-radius group transition-colors duration-medium hover:duration-fast ease-in-out",this.floatingLabel&&"pt-6",{sm:"textarea-sm",md:"textarea-md",lg:"textarea-lg"}[this.size],!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:[@media(hover:hover)]:form-control--hover-color-background":"",this.readonly?"form-control--read-only-color-background":"bg-white",u==="disabled"||u==="visuallyDisabled"?"text-neutral-500":"text-black",["invalid","activeInvalid"].includes(u)&&"form-control--invalid-color-background")}"><textarea part="textarea" id="input" class="${s("ps-4 flex-grow focus:outline-none bg-transparent placeholder:text-neutral-700 resize-none group-has-[sd-7-0-0-next-4-icon]:pe-8",{sm:h?"pb-1":"py-2",md:h?"pb-1":"py-2",lg:h?"pb-2":"py-2"}[this.size],this.disabled&&"cursor-not-allowed",f)}" title="${this.title}" name="${r(this.name)}" .value="${w(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${!this.floatingLabel||h?r(this.placeholder):""}" minlength="${r(this.minlength)}" maxlength="${r(this.maxlength)}" rows="${r(this.rows)}" autocapitalize="${r(this.autocapitalize)}" autocorrect="${r(this.autocorrect===void 0?void 0:this.autocorrect?"on":"off")}" ?autofocus="${this.autofocus}" spellcheck="${r(this.spellcheck)}" enterkeyhint="${r(this.enterkeyhint)}" inputmode="${r(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle?o`<sd-7-0-0-next-4-icon class="${s("text-error absolute right-4 pointer-events-none",v)}" library="_internal" name="risk" part="invalid-icon"></sd-7-0-0-next-4-icon>`:""} ${this.styleOnValid&&this.showValidStyle?o`<sd-7-0-0-next-4-icon class="${s("text-success absolute right-4 pointer-events-none",v)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-7-0-0-next-4-icon>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${s("text-sm mt-1",n&&!this.showInvalidStyle?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!n||this.showInvalidStyle}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};t.styles=[...m.styles,y`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
2
|
+
:host{display:block;height:100%}:host textarea{scrollbar-gutter:stable}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([required]) #label::after{content:' *'}:host([visually-disabled]) textarea{caret-color:transparent}.no-scrollbar::-webkit-scrollbar{display:none}`],e([b("#input")],t.prototype,"textarea",2),e([b("#invalid-message")],t.prototype,"invalidMessage",2),e([c()],t.prototype,"hasFocus",2),e([c()],t.prototype,"showValidStyle",2),e([c()],t.prototype,"showInvalidStyle",2),e([i({type:String,reflect:!0})],t.prototype,"title",2),e([i({type:String,reflect:!0})],t.prototype,"name",2),e([i()],t.prototype,"value",2),e([i({type:String,reflect:!0})],t.prototype,"size",2),e([i({type:String,reflect:!0})],t.prototype,"label",2),e([i({type:String,attribute:"help-text",reflect:!0})],t.prototype,"helpText",2),e([i({type:String,reflect:!0})],t.prototype,"placeholder",2),e([i({type:Number,reflect:!0})],t.prototype,"rows",2),e([i({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([i({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),e([i({type:Boolean,reflect:!0})],t.prototype,"readonly",2),e([i({type:String,reflect:!0})],t.prototype,"form",2),e([i({type:Boolean,reflect:!0})],t.prototype,"required",2),e([i({attribute:"floating-label",type:Boolean,reflect:!0})],t.prototype,"floatingLabel",2),e([i({type:Number,reflect:!0})],t.prototype,"minlength",2),e([i({type:Number,reflect:!0})],t.prototype,"maxlength",2),e([i({type:String,reflect:!0})],t.prototype,"autocapitalize",2),e([i({type:Boolean,reflect:!0,converter:{fromAttribute:l=>l!=="off",toAttribute:l=>l?"on":"off"}})],t.prototype,"autocorrect",2),e([i({reflect:!0})],t.prototype,"autocomplete",2),e([i({type:Boolean,reflect:!0})],t.prototype,"autofocus",2),e([i({type:String,reflect:!0})],t.prototype,"enterkeyhint",2),e([i({type:Boolean,reflect:!0,attribute:"style-on-valid"})],t.prototype,"styleOnValid",2),e([i({type:Boolean,converter:{fromAttribute:l=>!(!l||l==="false"),toAttribute:l=>l?"true":"false"}})],t.prototype,"spellcheck",2),e([i({type:String,reflect:!0})],t.prototype,"inputmode",2),e([$()],t.prototype,"defaultValue",2),e([d("disabled",{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),e([d("rows",{waitUntilFirstUpdate:!0})],t.prototype,"handleRowsChange",1),e([d("value",{waitUntilFirstUpdate:!0})],t.prototype,"handleValueChange",1),e([d(["size","floatingLabel"])],t.prototype,"handleSizeChange",1),t=e([g("sd-7-0-0-next-4-textarea")],t);export{t as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as p}from"./chunk.CGQ2BPPZ.js";import{a as i}from"./chunk.4ZZFYCXX.js";import{a as r}from"./chunk.NYKJXI3Q.js";import{a as d,b as o,h as n}from"./chunk.
|
|
2
|
-
:host{display:block}:host([orientation=vertical]) ::slotted(sd-7-0-0-next-
|
|
1
|
+
import{a as p}from"./chunk.CGQ2BPPZ.js";import{a as i}from"./chunk.4ZZFYCXX.js";import{a as r}from"./chunk.NYKJXI3Q.js";import{a as d,b as o,h as n}from"./chunk.SGJYHE3R.js";import{b as m,e as s}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends n{constructor(){super(...arguments);this.hasSlotController=new p(this,"label","help-text");this.size="lg";this.orientation="vertical";this.label="";this.helpText=""}getAllCheckboxes(){return[...this.querySelectorAll("sd-7-0-0-next-4-checkbox")]}async syncCheckboxElements(){let a=this.getAllCheckboxes();await Promise.all(a.map(async l=>{await l.updateComplete,l.size=this.size}))}syncCheckboxes(){customElements.get("sd-7-0-0-next-4-checkbox")?this.syncCheckboxElements():customElements.whenDefined("sd-7-0-0-next-4-checkbox").then(()=>this.syncCheckboxes())}handleSizeChange(){this.syncCheckboxes()}handleInvalid(){this.syncCheckboxes()}render(){let a=this.hasSlotController.test("label"),l=this.label?!0:a,b=this.hasSlotController.test("help-text"),c=this.helpText?!0:b,x=s`<slot @slotchange="${this.syncCheckboxes}"></slot>`,h=this.hasSlotController.test("tooltip");return s`<fieldset part="form-control" class="${i("border-0 p-0 m-0",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="group" aria-labelledby="label">${l||h?s`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${i("p-0 font-bold leading-normal text-black",l?"flex":"hidden")}" aria-hidden="${l?"false":"true"}"><slot name="label">${this.label}</slot></label> ${h?s`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${i({vertical:"flex flex-col",horizontal:"flex flex-row"}[this.orientation])}">${x}</div></fieldset><slot name="help-text" part="form-control-help-text" id="help-text" class="${i("text-sm text-neutral-700 mt-2",c?"block":"hidden")}" aria-hidden="${!c}">${this.helpText}</slot>`}};t.styles=[...n.styles,m`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
2
|
+
:host{display:block}:host([orientation=vertical]) ::slotted(sd-7-0-0-next-4-checkbox){margin-bottom:var(--sd-spacing-2);display:flex}:host([orientation=vertical]) ::slotted(sd-7-0-0-next-4-checkbox:last-of-type){margin-bottom:0}:host([orientation=horizontal]) ::slotted(sd-7-0-0-next-4-checkbox){margin-right:var(--sd-spacing-6)}:host([orientation=horizontal]) ::slotted(sd-7-0-0-next-4-checkbox:last-of-type){margin-right:0}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-7-0-0-next-4-checkbox){margin-right:var(--sd-spacing-4)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-7-0-0-next-4-checkbox:last-of-type){margin-right:0}`],e([o({type:String,reflect:!0})],t.prototype,"size",2),e([o({type:String,reflect:!0})],t.prototype,"orientation",2),e([o({type:String,reflect:!0})],t.prototype,"label",2),e([o({type:String,attribute:"help-text",reflect:!0})],t.prototype,"helpText",2),e([r("size",{waitUntilFirstUpdate:!0})],t.prototype,"handleSizeChange",1),e([r("invalid",{waitUntilFirstUpdate:!0})],t.prototype,"handleInvalid",1),t=e([d("sd-7-0-0-next-4-checkbox-group")],t);export{t as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk.MWDEA25W.js";import{a as p}from"./chunk.NYKJXI3Q.js";import{a as n,b as o,h as a}from"./chunk.
|
|
2
|
-
:host{display:block}`],s([o({reflect:!0})],t.prototype,"src",2),s([o({type:String,reflect:!0})],t.prototype,"mode",2),s([o({attribute:"allow-scripts",type:Boolean,reflect:!0})],t.prototype,"allowScripts",2),s([p("src")],t.prototype,"handleSrcChange",1),t=s([n("sd-7-0-0-next-
|
|
1
|
+
import{a as m}from"./chunk.MWDEA25W.js";import{a as p}from"./chunk.NYKJXI3Q.js";import{a as n,b as o,h as a}from"./chunk.SGJYHE3R.js";import{b as c,e as l}from"./chunk.OBAEIKIV.js";import{e as s}from"./chunk.6EV4YU6C.js";var t=class extends a{constructor(){super(...arguments);this.mode="cors";this.allowScripts=!1}executeScript(e){let r=document.createElement("script");[...e.attributes].forEach(i=>r.setAttribute(i.name,i.value)),r.textContent=e.textContent,e.parentNode.replaceChild(r,e)}async handleSrcChange(){try{let e=this.src,r=await m(e,this.mode);if(e!==this.src)return;if(!r.ok){this.emit("sd-error",{detail:{status:r.status}});return}this.innerHTML=r.html,this.allowScripts&&[...this.querySelectorAll("script")].forEach(i=>this.executeScript(i)),this.emit("sd-load")}catch(e){this.emit("sd-error",{detail:{status:-1}})}}render(){return l`<slot></slot>`}};t.styles=[...a.styles,c`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
2
|
+
:host{display:block}`],s([o({reflect:!0})],t.prototype,"src",2),s([o({type:String,reflect:!0})],t.prototype,"mode",2),s([o({attribute:"allow-scripts",type:Boolean,reflect:!0})],t.prototype,"allowScripts",2),s([p("src")],t.prototype,"handleSrcChange",1),t=s([n("sd-7-0-0-next-4-include")],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-7-0-0-next-
|
|
1
|
+
import{a as l,b as i,g as c,h as o}from"./chunk.SGJYHE3R.js";import{b as a,e as n}from"./chunk.OBAEIKIV.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.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
2
|
+
:host{display:block}::slotted(sd-7-0-0-next-4-accordion:not(:first-of-type)){margin-top:calc(-1 * var(--sd-accordion-border-width))!important}`],t([c({selector:"sd-7-0-0-next-4-accordion"})],e.prototype,"_accordionsInDefaultSlot",2),t([i({attribute:"close-others",type:Boolean,reflect:!0})],e.prototype,"closeOthers",2),e=t([l("sd-7-0-0-next-4-accordion-group")],e);export{e as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as d}from"./chunk.SAEYIL5V.js";import{a as b}from"./chunk.ERP45OHF.js";import{b as m}from"./chunk.LZRL7OLU.js";import{a as p}from"./chunk.LHSR56PH.js";import{a as l}from"./chunk.4ZZFYCXX.js";import{a as n}from"./chunk.NYKJXI3Q.js";import{a as u,b as r,c as h,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([h()],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([u("sd-7-0-0-next-
|
|
1
|
+
import{a as d}from"./chunk.SAEYIL5V.js";import{a as b}from"./chunk.ERP45OHF.js";import{b as m}from"./chunk.LZRL7OLU.js";import{a as p}from"./chunk.LHSR56PH.js";import{a as l}from"./chunk.4ZZFYCXX.js";import{a as n}from"./chunk.NYKJXI3Q.js";import{a as u,b as r,c as h,d as a,h as o}from"./chunk.SGJYHE3R.js";import{b as c,e as s}from"./chunk.OBAEIKIV.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-7-0-0-next-4-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 shrink-0 items-center justify-center border sd-7-0-0-next-4-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 outline-transparent",{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 sd-7-0-0-next-4-checkbox--invalid-color-background 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:"sd-7-0-0-next-4-checkbox--invalid-color-background",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-7-0-0-next-4-icon part="checked-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-check"></sd-7-0-0-next-4-icon>`:""} ${!this.checked&&this.indeterminate?s`<sd-7-0-0-next-4-icon part="indeterminate-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-minus"></sd-7-0-0-next-4-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-7-0-0-next-4-icon id="invalid-icon" part="invalid-icon" library="_internal" name="risk"></sd-7-0-0-next-4-icon>`:""} ${this.formControlController.renderInvalidMessage(this.size)}</div></div>`}};t.styles=[...o.styles,c`/*! tailwindcss v4.3.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([h()],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([u("sd-7-0-0-next-4-checkbox")],t);export{t as a};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{a as c}from"./chunk.CGQ2BPPZ.js";import{a as r}from"./chunk.4ZZFYCXX.js";import{a as s,b as i,d,h as n}from"./chunk.
|
|
1
|
+
import{a as c}from"./chunk.CGQ2BPPZ.js";import{a as r}from"./chunk.4ZZFYCXX.js";import{a as s,b as i,d,h as n}from"./chunk.SGJYHE3R.js";import{b as l,e}from"./chunk.OBAEIKIV.js";import{e as a}from"./chunk.6EV4YU6C.js";var t=class extends n{constructor(){super(...arguments);this.variant="white";this.open=!1;this.hasSlotController=new c(this,"[default]","media","meta","headline","expandable")}onToggleClick(){this.open=!this.open}render(){let o={"teaser-has-default":this.hasSlotController.test("[default]"),"teaser-has-media":this.hasSlotController.test("media"),"teaser-has-meta":this.hasSlotController.test("meta"),"teaser-has-headline":this.hasSlotController.test("headline"),"teaser-has-expandable":this.hasSlotController.test("expandable")};return e`<div class="relative flex flex-col group" part="base"><div class="absolute flex flex-col justify-end h-full w-full pb-4"><div class="${r("flex-1",this.variant==="gradient-light"&&"bg-gradient-to-t from-white/60 to-white/0",this.variant==="gradient-dark"&&"bg-gradient-to-t from-primary-800/60 to-primary-800/0")}"></div><div class="${r("relative",["primary","gradient-dark"].includes(this.variant)&&"text-white")}"><div class="${r("absolute inset-0 pointer-events-none",{white:"sd-7-0-0-next-4-teaser-media--white-color-background group-hover:sd-7-0-0-next-4-teaser-media--white--hover-color-background ","neutral-100":"sd-7-0-0-next-4-teaser-media--neutral-100-color-background group-hover:sd-7-0-0-next-4-teaser-media--neutral-100--hover-color-background",primary:"bg-primary/80 text-white group-hover:bg-primary/90","primary-100":"sd-7-0-0-next-4-teaser-media--primary-100-color-background group-hover:sd-7-0-0-next-4-teaser-media--primary-100--hover-color-background","gradient-light":"bg-gradient-to-t from-white/75 to-white/60","gradient-dark":"bg-gradient-to-t from-primary-800/75 to-primary-800/60"}[this.variant])}"></div><div class="relative flex flex-col text-left p-4" part="content"><div class="flex flex-col"><div part="headline" class="text-lg font-bold m-0 order-2"><slot name="headline">Always insert one semantically correct heading element here</slot></div><div part="meta" class="${r("gap-2 mb-2 order-1",!o["teaser-has-meta"]&&"hidden")}"><slot name="meta"></slot></div></div><div part="main" class="${r(!o["teaser-has-default"]&&"hidden")}"><slot></slot></div><div class="${r("mt-3 transition-opacity duration-300",!this.open&&"hidden",this.open?"opacity-100":"opacity-0")}" part="expandable" aria-hidden="true"><slot name="expandable"></slot></div>${o["teaser-has-expandable"]?e`<button part="toggle" class="${r("mt-2",["primary","gradient-dark"].includes(this.variant)?"text-white":"sd-7-0-0-next-4-teaser-media-color-icon-fill")}" @click="${this.onToggleClick}" aria-expanded="${this.open}" aria-label="${this.open?"Collapse content":"Expand content"}"><div class="h-full justify-start flex items-start"><sd-7-0-0-next-4-icon class="${r("w-6 h-6 transition-transform",this.open&&"rotate-180")}" library="_internal" name="chevron-down"></sd-7-0-0-next-4-icon></div></button>`:null}</div></div></div><div class="${r("mb-4 -z-10",!o["teaser-has-media"]&&"hidden")}" part="media"><slot name="media"></slot></div></div>`}};t.styles=[...n.styles,l`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
2
2
|
:host{display:block}::slotted(*){margin:0}:host([variant=white]) .background:focus-within{background-color:rgba(var(--sd-color-background-white))}@supports (color:color-mix(in lab,red,red)){:host([variant=white]) .background:focus-within{background-color:color-mix(in oklab,rgba(var(--sd-color-background-white)) var(--sd-opacity-90),transparent)}}:host([variant=neutral-100]) .background:focus-within{background-color:rgba(var(--sd-color-background-neutral-100))}@supports (color:color-mix(in lab,red,red)){:host([variant=neutral-100]) .background:focus-within{background-color:color-mix(in oklab,rgba(var(--sd-color-background-neutral-100)) var(--sd-opacity-90),transparent)}}:host([variant=primary]) .background:focus-within{background-color:rgba(var(--sd-color-background-primary))}@supports (color:color-mix(in lab,red,red)){:host([variant=primary]) .background:focus-within{background-color:color-mix(in oklab,rgba(var(--sd-color-background-primary)) var(--sd-opacity-90),transparent)}}:host([variant=primary-100]) .background:focus-within{background-color:rgba(var(--sd-color-background-primary-100))}@supports (color:color-mix(in lab,red,red)){:host([variant=primary-100]) .background:focus-within{background-color:color-mix(in oklab,rgba(var(--sd-color-background-primary-100)) var(--sd-opacity-90),transparent)}}:host([variant=gradient-light]) .bg-gradient-to-t{--sd-color-background-white:var(--sd-informational-gradient--white-color-background, var(--sd-color-white))}:host([variant=gradient-dark]) .bg-gradient-to-t{--sd-color-background-primary-800:var(
|
|
3
3
|
--sd-informational-gradient--primary-800-color-background,
|
|
4
4
|
var(--sd-color-primary-800)
|
|
5
|
-
)}[part=toggle]{width:-moz-fit-content;width:fit-content;outline-color:transparent}:host([variant=gradient-dark]) [part=toggle]:focus-visible,:host([variant=primary]) [part=toggle]:focus-visible{outline-color:rgba(var(--sd-color-text-white))}`],a([i({type:String,reflect:!0})],t.prototype,"variant",2),a([i({type:Boolean,reflect:!0})],t.prototype,"open",2),a([d('[part="base"]')],t.prototype,"teaserMedia",2),t=a([s("sd-7-0-0-next-
|
|
5
|
+
)}[part=toggle]{width:-moz-fit-content;width:fit-content;outline-color:transparent}:host([variant=gradient-dark]) [part=toggle]:focus-visible,:host([variant=primary]) [part=toggle]:focus-visible{outline-color:rgba(var(--sd-color-text-white))}`],a([i({type:String,reflect:!0})],t.prototype,"variant",2),a([i({type:Boolean,reflect:!0})],t.prototype,"open",2),a([d('[part="base"]')],t.prototype,"teaserMedia",2),t=a([s("sd-7-0-0-next-4-teaser-media")],t);export{t as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk.CGQ2BPPZ.js";import{a as r}from"./chunk.4ZZFYCXX.js";import{a as h,b as a,c as d,d as c,h as o}from"./chunk.
|
|
2
|
-
:host{display:block}::slotted(*){margin:0}`],e([a({type:String,reflect:!0})],t.prototype,"variant",2),e([a({reflect:!0,type:Number})],t.prototype,"breakpoint",2),e([a({type:Boolean,reflect:!0})],t.prototype,"inset",2),e([a({type:Boolean,reflect:!0,attribute:"reversed-layout"})],t.prototype,"reversedLayout",2),e([c('[part="base"]')],t.prototype,"teaser",2),e([d()],t.prototype,"_orientation",2),t=e([h("sd-7-0-0-next-
|
|
1
|
+
import{a as m}from"./chunk.CGQ2BPPZ.js";import{a as r}from"./chunk.4ZZFYCXX.js";import{a as h,b as a,c as d,d as c,h as o}from"./chunk.SGJYHE3R.js";import{b as l,e as n}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends o{constructor(){super(...arguments);this.variant="white";this.breakpoint=448;this.inset=!1;this.reversedLayout=!1;this.hasSlotController=new m(this,"[default]","media","meta","headline")}connectedCallback(){super.connectedCallback(),this.breakpoint===0?this._orientation="horizontal":this.breakpoint===9999?this._orientation="vertical":window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(()=>this.updateOrientation()),this.resizeObserver.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver&&this.resizeObserver.disconnect()}updated(i){super.updated(i),i.has("breakpoint")&&this.updateOrientation()}updateOrientation(){this._orientation=this.offsetWidth>=this.breakpoint?"horizontal":"vertical"}render(){let i=this.variant==="white border-neutral-400"||this.inset,s={"teaser-has-default":this.hasSlotController.test("[default]"),"teaser-has-media":this.hasSlotController.test("media"),"teaser-has-meta":this.hasSlotController.test("meta"),"teaser-has-headline":this.hasSlotController.test("headline")};return n`<div class="${r("flex sd-7-0-0-next-4-teaser-border-radius",{white:"bg-white","white border-neutral-400":"bg-white border sd-7-0-0-next-4-teaser--neutral-400-color-border","neutral-100":"sd-7-0-0-next-4-teaser--neutral-100-color-background",primary:"bg-primary text-white","primary-100":"sd-7-0-0-next-4-teaser--primary-100-color-background"}[this.variant],this._orientation==="vertical"&&"flex-col",this._orientation==="horizontal"&&"flex-row gap-8",this._orientation==="horizontal"&&i&&"py-8 px-10")}" part="base"><div style="${this._orientation==="horizontal"?`width: var(--distribution-content, 100%); ${i?"width: var(--distribution-content, calc(100% - 2rem));":""}`:""}" class="${r("flex flex-col text-left order-2",this._orientation==="horizontal"&&"flex flex-col",this._orientation==="vertical"&&i&&"m-4")}" part="content"><div class="flex flex-col-reverse"><div part="headline" class="${r("text-lg font-bold m-0",this.variant==="primary"?"text-white":"text-black")}"><slot name="headline">Always insert one semantically correct heading element here (e. g. <h2>)</slot></div><div part="meta" class="${r("gap-2 mb-4",!s["teaser-has-meta"]&&"hidden")}"><slot name="meta"></slot></div></div><div part="main" class="${r(!s["teaser-has-default"]&&"hidden")}" role="group" aria-labelledby="headline"><slot></slot></div></div><div part="media" id="media" style="${this._orientation==="horizontal"?"width: var(--distribution-media, 100%);":""}" class="${r("order-1",!i&&this._orientation==="vertical"&&"mb-4",!s["teaser-has-media"]&&"hidden",this.variant==="white border-neutral-400"&&this._orientation==="vertical"&&"mx-[-1px] mt-[-1px]",this._orientation!=="vertical"&&this.reversedLayout&&"order-2")}"><slot name="media"></slot></div></div>`}};t.styles=[...o.styles,l`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
2
|
+
:host{display:block}::slotted(*){margin:0}`],e([a({type:String,reflect:!0})],t.prototype,"variant",2),e([a({reflect:!0,type:Number})],t.prototype,"breakpoint",2),e([a({type:Boolean,reflect:!0})],t.prototype,"inset",2),e([a({type:Boolean,reflect:!0,attribute:"reversed-layout"})],t.prototype,"reversedLayout",2),e([c('[part="base"]')],t.prototype,"teaser",2),e([d()],t.prototype,"_orientation",2),t=e([h("sd-7-0-0-next-4-teaser")],t);export{t as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk.4ZZFYCXX.js";import{a as i,b as a,h as r}from"./chunk.
|
|
2
|
-
:host{display:block}::slotted(*){visibility:hidden}`],e([a({type:String,reflect:!0})],t.prototype,"variant",2),t=e([i("sd-7-0-0-next-
|
|
1
|
+
import{a as o}from"./chunk.4ZZFYCXX.js";import{a as i,b as a,h as r}from"./chunk.SGJYHE3R.js";import{b as l,e as s}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends r{constructor(){super(...arguments);this.variant="rectangular"}render(){return s`<div part="base" aria-hidden="true" class="${o("sd-7-0-0-next-4-skeleton-color w-full h-full animate-pulse",{rectangular:"rounded-sm",circular:"rounded-full inline-block"}[this.variant])}"><slot></slot></div>`}};t.styles=[...r.styles,l`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
2
|
+
:host{display:block}::slotted(*){visibility:hidden}`],e([a({type:String,reflect:!0})],t.prototype,"variant",2),t=e([i("sd-7-0-0-next-4-skeleton")],t);export{t as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as T,b as M}from"./chunk.TXP36Z3M.js";import{c as L}from"./chunk.3L472FD4.js";import{a as u,c as m}from"./chunk.B2NUKX6G.js";import{a as c}from"./chunk.KLRPP4NQ.js";import{a as v}from"./chunk.VAM5SM3O.js";import{a as k}from"./chunk.4ZZFYCXX.js";import{a as E}from"./chunk.NYKJXI3Q.js";import{a as w,b as o,d as r,h}from"./chunk.
|
|
1
|
+
import{a as T,b as M}from"./chunk.TXP36Z3M.js";import{c as L}from"./chunk.3L472FD4.js";import{a as u,c as m}from"./chunk.B2NUKX6G.js";import{a as c}from"./chunk.KLRPP4NQ.js";import{a as v}from"./chunk.VAM5SM3O.js";import{a as k}from"./chunk.4ZZFYCXX.js";import{a as E}from"./chunk.NYKJXI3Q.js";import{a as w,b as o,d as r,h}from"./chunk.SGJYHE3R.js";import{b as y,e as b}from"./chunk.OBAEIKIV.js";import{b as d,e as p}from"./chunk.W4QBFD6E.js";import{e as i}from"./chunk.6EV4YU6C.js";function C(f,g){let e=f;for(;e;){if(e.matches(g))return e;if(e.parentElement)e=e.parentElement;else if(e.parentNode instanceof ShadowRoot)e=e.parentNode.host;else break}return null}var n=class extends h{constructor(){super(...arguments);this.localize=new v(this);this.open=!1;this.rounded=!1;this.placement="bottom-start";this.disabled=!1;this.stayOpenOnSelect=!1;this.distance=0;this.skidding=0;this.noAutoSize=!1;this.noFlip=!1;this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleMenuItemActivate=this.handleMenuItemActivate.bind(this),this.handlePanelSelect=this.handlePanelSelect.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this),this.containingElement||(this.containingElement=this)}firstUpdated(){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide()}getAccessibleTrigger(){let t=this.trigger.assignedElements({flatten:!0}).find(a=>M(a).start),s=null;if(t)switch(t.tagName.toLowerCase()){case"sd-7-0-0-next-4-button":case"sd-7-0-0-next-4-icon-button":s=t.button;break;case"sd-7-0-0-next-4-navigation-item":s=t.button;break;default:s=t}return s}updateAccessibleTrigger(){let e=this.getAccessibleTrigger();e&&(e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded",this.open?"true":"false"))}focusOnTrigger(){let e=this.getAccessibleTrigger();typeof(e==null?void 0:e.focus)=="function"&&e.focus()}getMenu(){return this.panel.assignedElements({flatten:!0}).find(e=>e.tagName.toLowerCase()==="sd-7-0-0-next-4-menu")}handleKeyDown(e){this.open&&e.key==="Escape"&&(e.stopPropagation(),this.hide(),this.focusOnTrigger())}handleDocumentKeyDown(e){var t;if(e.key==="Tab"){if(this.open&&((t=document.activeElement)==null?void 0:t.tagName.toLowerCase())==="sd-7-0-0-next-4-menu-item"){e.preventDefault(),this.hide(),this.focusOnTrigger();return}setTimeout(()=>{let s=T();(!s||!this.containingElement||C(s,this.containingElement.tagName.toLowerCase())!==this.containingElement)&&this.hide()})}}handleDocumentMouseDown(e){let t=e.composedPath();this.containingElement&&!t.includes(this.containingElement)&&this.hide()}handleMenuItemActivate(e){let t=e.target;L(t,this.panel)}handlePanelSelect(e){let t=e.target;!this.stayOpenOnSelect&&t.tagName.toLowerCase()==="sd-7-0-0-next-4-menu"&&(this.hide(),this.focusOnTrigger())}handleTriggerClick(){if(this.open){let e=this.getMenu();if(e){let t=e.getCurrentItem();t==null||t.classList.remove("menu-item-focus")}this.hide()}else this.show()}handleTriggerKeyDown(e){if(e.key==="Escape"&&this.open){e.stopPropagation(),this.focusOnTrigger(),this.handleTriggerClick();return}if([" ","Enter"].includes(e.key)){e.preventDefault(),this.handleTriggerClick();return}let t=this.getMenu();if(t){let s=t.defaultSlot.assignedElements({flatten:!0}),a=s.find(A=>!A.disabled)||s[0],l=s[s.length-1];["ArrowDown","ArrowUp","Home","End"].includes(e.key)&&(e.preventDefault(),this.open||this.show(),s.length>0&&requestAnimationFrame(()=>{(e.key==="ArrowDown"||e.key==="Home")&&(t.setCurrentItem(a),a.focus(),a.classList.add("menu-item-focus")),(e.key==="ArrowUp"||e.key==="End")&&(t.setCurrentItem(l),l.focus(),l.classList.add("menu-item-focus"))}))}}handleTriggerKeyUp(e){e.key===" "&&e.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}async show(){if(!this.open)return this.open=!0,c(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,c(this,"sd-after-hide")}reposition(){this.popup.reposition()}addOpenListeners(){this.panel.addEventListener("sd-activate",this.handleMenuItemActivate),this.panel.addEventListener("sd-7-0-0-next-4-select",this.handlePanelSelect),this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){this.panel&&(this.panel.removeEventListener("sd-activate",this.handleMenuItemActivate),this.panel.removeEventListener("sd-7-0-0-next-4-select",this.handlePanelSelect),this.panel.removeEventListener("keydown",this.handleKeyDown)),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}async handleOpenChange(){if(this.disabled){this.open=!1;return}if(this.updateAccessibleTrigger(),this.open){this.emit("sd-show"),this.addOpenListeners(),await p(this),this.panel.hidden=!1,this.popup.active=!0;let{keyframes:e,options:t}=m(this,"dropdown.show",{dir:this.localize.dir()});await d(this.popup.popup,e,t),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await p(this);let{keyframes:e,options:t}=m(this,"dropdown.hide",{dir:this.localize.dir()});await d(this.popup.popup,e,t),this.panel.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}render(){return b`<sd-7-0-0-next-4-popup part="base" id="dropdown" exportparts="
|
|
2
2
|
popup:base__popup,
|
|
3
|
-
" placement="${this.placement}" distance="${this.rounded&&this.distance<1?1:this.distance}" skidding="${this.skidding}" strategy="${this.hoist?"fixed":"absolute"}" ?flip="${!this.noFlip}" shift auto-size="vertical" auto-size-padding="10"><slot name="trigger" slot="anchor" part="trigger" class="block" @click="${this.handleTriggerClick}" @keydown="${this.handleTriggerKeyDown}" @keyup="${this.handleTriggerKeyUp}" @slotchange="${this.handleTriggerSlotChange}"></slot><slot part="panel" class="${k("panel-color-border border shadow sd-7-0-0-next-
|
|
4
|
-
:host{display:inline-block}#dropdown::part(popup){z-index:var(--sd-z-index-dropdown,900)}#dropdown[data-current-placement^=top]::part(popup){transform-origin:bottom}#dropdown[data-current-placement^=bottom]::part(popup){transform-origin:top}#dropdown[data-current-placement^=left]::part(popup){transform-origin:100%}#dropdown[data-current-placement^=right]::part(popup){transform-origin:0}:host(:not([no-auto-size])) ::slotted(:not([slot=trigger])){overflow:auto;max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}`],i([r("#dropdown")],n.prototype,"popup",2),i([r("[part=trigger]")],n.prototype,"trigger",2),i([r("[part=panel]")],n.prototype,"panel",2),i([o({type:Boolean,reflect:!0})],n.prototype,"open",2),i([o({type:Boolean,reflect:!0})],n.prototype,"rounded",2),i([o({type:String,reflect:!0})],n.prototype,"placement",2),i([o({type:Boolean,reflect:!0})],n.prototype,"disabled",2),i([o({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],n.prototype,"stayOpenOnSelect",2),i([o({type:Object})],n.prototype,"containingElement",2),i([o({type:Number,reflect:!0})],n.prototype,"distance",2),i([o({type:Number,reflect:!0})],n.prototype,"skidding",2),i([o({type:Boolean,reflect:!0,attribute:"no-auto-size"})],n.prototype,"noAutoSize",2),i([o({type:Boolean,reflect:!0,attribute:"no-flip"})],n.prototype,"noFlip",2),i([o({type:Boolean,reflect:!0})],n.prototype,"hoist",2),i([E("open",{waitUntilFirstUpdate:!0})],n.prototype,"handleOpenChange",1),n=i([w("sd-7-0-0-next-
|
|
3
|
+
" placement="${this.placement}" distance="${this.rounded&&this.distance<1?1:this.distance}" skidding="${this.skidding}" strategy="${this.hoist?"fixed":"absolute"}" ?flip="${!this.noFlip}" shift auto-size="vertical" auto-size-padding="10"><slot name="trigger" slot="anchor" part="trigger" class="block" @click="${this.handleTriggerClick}" @keydown="${this.handleTriggerKeyDown}" @keyup="${this.handleTriggerKeyUp}" @slotchange="${this.handleTriggerSlotChange}"></slot><slot part="panel" class="${k("panel-color-border border shadow sd-7-0-0-next-4-dropdown-color-background block",this.open?"pointer-events-auto":"pointer-events-none",this.rounded&&"rounded-md")}" aria-hidden="${this.open?"false":"true"}" aria-labelledby="dropdown"></slot></sd-7-0-0-next-4-popup>`}};n.styles=[...h.styles,y`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
4
|
+
:host{display:inline-block}#dropdown::part(popup){z-index:var(--sd-z-index-dropdown,900)}#dropdown[data-current-placement^=top]::part(popup){transform-origin:bottom}#dropdown[data-current-placement^=bottom]::part(popup){transform-origin:top}#dropdown[data-current-placement^=left]::part(popup){transform-origin:100%}#dropdown[data-current-placement^=right]::part(popup){transform-origin:0}:host(:not([no-auto-size])) ::slotted(:not([slot=trigger])){overflow:auto;max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}`],i([r("#dropdown")],n.prototype,"popup",2),i([r("[part=trigger]")],n.prototype,"trigger",2),i([r("[part=panel]")],n.prototype,"panel",2),i([o({type:Boolean,reflect:!0})],n.prototype,"open",2),i([o({type:Boolean,reflect:!0})],n.prototype,"rounded",2),i([o({type:String,reflect:!0})],n.prototype,"placement",2),i([o({type:Boolean,reflect:!0})],n.prototype,"disabled",2),i([o({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],n.prototype,"stayOpenOnSelect",2),i([o({type:Object})],n.prototype,"containingElement",2),i([o({type:Number,reflect:!0})],n.prototype,"distance",2),i([o({type:Number,reflect:!0})],n.prototype,"skidding",2),i([o({type:Boolean,reflect:!0,attribute:"no-auto-size"})],n.prototype,"noAutoSize",2),i([o({type:Boolean,reflect:!0,attribute:"no-flip"})],n.prototype,"noFlip",2),i([o({type:Boolean,reflect:!0})],n.prototype,"hoist",2),i([E("open",{waitUntilFirstUpdate:!0})],n.prototype,"handleOpenChange",1),n=i([w("sd-7-0-0-next-4-dropdown")],n);u("dropdown.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});u("dropdown.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});export{n as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk.WWGARXPI.js";import{a as z,b as K,c as G}from"./chunk.23WKPZET.js";import{b as N}from"./chunk.LZRL7OLU.js";import{a as U}from"./chunk.CGQ2BPPZ.js";import{a as W}from"./chunk.VAM5SM3O.js";import{a as S}from"./chunk.4ZZFYCXX.js";import{a as _}from"./chunk.NYKJXI3Q.js";import{a as H,b as v,c as O,d as Y,h as A}from"./chunk.YAUFTHOR.js";import{b as q,e as F,i as R}from"./chunk.OBAEIKIV.js";import{e as o}from"./chunk.6EV4YU6C.js";var r=class extends A{constructor(){super();this.localize=new W(this);this.hasSlotController=new U(this,"label","help-text","tooltip");this.formControlController=new N(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(n=>{var s,l;return n instanceof HTMLElement&&(((s=n.classList)==null?void 0:s.contains("nav"))||((l=n.classList)==null?void 0:l.contains("month-label")))})&&(this.tabbingIntoGrid=!0)};this.handleInput=t=>{var l,h,p,y,g;if(this.disabled||this.visuallyDisabled||this.readonly){(l=t.preventDefault)==null||l.call(t),(h=t.stopPropagation)==null||h.call(t);return}let e=t.target,i=e.value,n=(p=e.selectionStart)!=null?p:i.length,s=(y=t.inputType)==null?void 0:y.startsWith("delete");if(this.range){let d=i.replace(/\D/g,""),u=d.slice(0,8),m=d.slice(8,16),c=this.buildDmyFromDigits(u),w=this.buildDmyFromDigits(m),f;u.length===0?f="":u.length<8?f=c:m.length>0?f=`${c} - ${w}`:f=s?c:`${c} -`;let I=this.countDigitsBeforeCaret(i,n),M;if(I<=8){let b=this.digitIndexToDmyCaretPos(Math.min(I,8));M=Math.min(b,c.length)}else{let b=u.length<8?c.length:c.length+3,D=Math.min(I-8,8),x=this.digitIndexToDmyCaretPos(D);M=b+Math.min(x,w.length)}this.inputValue=f;let E=!1;if(/^\d{2}\.\d{2}\.\d{4}$/.test(c)){let b=this.dmyToIso(c),D=b?a.parseLocalISO(b):null;D&&!this.isDisabled(D)&&this.inMinMax(D)&&this.rangeStart!==b&&(this.rangeStart=b,this.previewEnd=null,this.viewMonth=new Date(D.getFullYear(),D.getMonth(),1),this.focusedDate=a.startOfDayLocal(D),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(w)&&this.rangeStart){let b=a.parseLocalISO(this.rangeStart),D=this.dmyToIso(w),x=D?a.parseLocalISO(D):null;if(!!x&&!this.isDisabled(x)&&this.inMinMax(x)){let[$,V]=a.compareDates(b,x)<=0?[b,x]:[x,b],P=a.isSameDay($,V);if((this.allowSameDayRange||!P)&&!this.wouldRangeContainDisabled($,V)){let T=a.toLocalISODate(a.startOfDayLocal($)),k=a.toLocalISODate(a.startOfDayLocal(V));(this.rangeStart!==T||this.rangeEnd!==k)&&(this.rangeStart=T,this.rangeEnd=k,this.viewMonth=new Date(V.getFullYear(),V.getMonth(),1),this.focusedDate=a.startOfDayLocal(V),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 D;let b=(D=this.input)!=null?D:e;b&&(b.value=this.inputValue,b.setSelectionRange(M,M))})})}else{let d=e,u=d.value,m=(g=d.selectionStart)!=null?g:u.length,c=u.replace(/\D/g,"").slice(0,8),w=c.slice(0,2),f=c.slice(2,4),I=c.slice(4,8),M="";w.length>0&&(M+=w,w.length===2&&(M+=".")),f.length>0&&w.length===2&&(M+=f,f.length===2&&(M+=".")),I.length>0&&w.length===2&&f.length===2&&(M+=I),M=M.replace(/\.\.+/g,".");let E=this.inputValue||"";this.inputValue=M;let b=m,D=L=>{let T=[];for(let k=0;k<L.length;k++)L[k]==="."&&T.push(k);return T},x=D(E),C=D(M),$=x.filter(L=>L<m).length,P=C.filter(L=>L<m).length-$;if(P>0?b+=P:!x.includes(m)&&C.includes(m)&&(b+=1),b=Math.min(Math.max(0,b),M.length),requestAnimationFrame(()=>{var T;let L=(T=this.input)!=null?T:d;L&&(L.value=this.inputValue,L.setSelectionRange(b,b))}),/^\d{2}\.\d{2}\.\d{4}$/.test(M)){let L=this.parseInputText(M);this.applyParsedInput(L)}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,n)=>{if(!(this.disabled||this.visuallyDisabled||this.readonly)){if(t.key==="Tab"&&!t.shiftKey){n&&(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,l;if(this.disabled||this.visuallyDisabled||this.readonly){t.preventDefault(),t.stopPropagation();return}let e=t.key,i=!0,n=new Date(this.focusedDate);switch(e){case"ArrowLeft":n.setDate(n.getDate()-1);break;case"ArrowRight":n.setDate(n.getDate()+1);break;case"ArrowUp":n.setDate(n.getDate()-7);break;case"ArrowDown":n.setDate(n.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 h=(s=this.viewMonth)!=null?s:this.ensureViewMonth();if(n.getMonth()!==h.getMonth()||n.getFullYear()!==h.getFullYear()){let d=new Date(n.getFullYear(),n.getMonth(),1);this.viewMonth=d;let u=this.formatMonthYear(d);this.setNavStatus(u)}let y=a.startOfDayLocal(n);y.getTime()!==((l=this.focusedDate)==null?void 0:l.getTime())&&(this.focusedDate=y);let g=y.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 l;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),n=this.range&&e?e:t!=null?t:i,s=(l=this.viewMonth)!=null?l:new Date(n.getFullYear(),n.getMonth(),1);this.viewMonth=s,this.focusedDate=a.clampDateToMonth(n,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 n=e.value.length;e.setSelectionRange(n,n)}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 n=this.input;if(n){n.value=(s=this.inputValue)!=null?s:"";let l=n.value.length;n.setSelectionRange(l,l)}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 l=this.parseISO(s);return l?a.startOfDayLocal(l):null}return null},i=e(this.min),n=e(this.max);return!(i&&t<i||n&&t>n)}isInDisabledDates(t){if(!this.disabledDatesSet||this.disabledDatesSet.size===0)return!1;let e=t.getFullYear(),i=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0"),s=`${e}-${i}-${n}`;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),n=t.toLocaleDateString("en-US",{month:"long"}),s=t.getFullYear();return`${i} of ${n} ${s}`}ordinal(t){let e=["th","st","nd","rd"],i=t%100,n=e[(i-20)%10]||e[i]||e[0];return t+n}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),n=a.compareDates(t,e)<=0?a.startOfDayLocal(e):a.startOfDayLocal(t),s=new Date(i);for(;a.compareDates(s,n)<=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"),n=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getFullYear());return`${i}.${n}.${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]),n=Number(e[2]),s=Number(e[3]),l=new Date(s,n-1,i);if(l.getFullYear()!==s||l.getMonth()!==n-1||l.getDate()!==i)return null;let h=a.startOfDayLocal(l);return a.toLocalISODate(h)}formatInputValue(){let t=(this.locale||"").toLowerCase(),e=(this.getAttribute("lang")||"").toLowerCase(),n=t.startsWith("de")||e.startsWith("de")?"\u2013":"-";if(!this.range)return this.isoToDmy(this.value);let s=this.isoToDmy(this.rangeStart),l=this.isoToDmy(this.rangeEnd);return s&&l?`${s} ${n} ${l}`:s&&!l?`${s} ${n}`:""}parseInputText(t){var n,s;let e=t.trim();if(this.range){let l=e.split(/\s*-\s*/);if(l.length===1){let h=l[0];if(!h)return{start:null,end:null,valid:!0};let p=this.dmyToIso(h);return p?{start:p,end:null,valid:!0}:{start:null,end:null,valid:!1}}else if(l.length>=2){let h=(n=l[0])!=null?n:"",p=(s=l[1])!=null?s:"",y=h?this.dmyToIso(h):null,g=p?this.dmyToIso(p):null;return h&&!y?{start:null,end:null,valid:!1}:p&&!g?{start:null,end:null,valid:!1}:{start:y,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 h,p,y,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=(h=t.start)!=null?h:null,u=(p=t.end)!=null?p:null;if(!e(d)||u&&!e(u))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let m=d?a.parseLocalISO(d):null,c=u?a.parseLocalISO(u):null;if(m&&c){if(a.compareDates(m,c)>0){let I=m;m=c,c=I}if(!this.allowSameDayRange&&a.isSameDay(m,c))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;if(this.wouldRangeContainDisabled(m,c))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1}let w=m?a.toLocalISODate(a.startOfDayLocal(m)):null,f=c?a.toLocalISODate(a.startOfDayLocal(c)):null;if(this.rangeStart!==w||this.rangeEnd!==f){this.rangeStart=w,this.rangeEnd=f,this.previewEnd=null,i=!0;let I=(y=m!=null?m:c)!=null?y: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 n=(g=t.single)!=null?g:null;if(!e(n))return this.input.setCustomValidity(this.localize.term("datePickerRange")),this.formControlController.setValidity(!1),this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let s=n?a.parseLocalISO(n):null,l=s?a.toLocalISODate(a.startOfDayLocal(s)):null;return this.value!==l&&(this.value=l,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),n=e.slice(2,4),s=e.slice(4,8),l=i;return n.length&&(l+="."+n),s.length&&(l+="."+s),l}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,n;((n=(i=t.composedPath)==null?void 0:i.call(t))!=null?n:[]).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 n=this.formatMonthYear(i);this.setNavStatus(n),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 n=this.formatMonthYear(i);this.setNavStatus(n),this.emit("sd-month-year",{detail:{month:i}})}focusInitialGridDay(){var n;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,l=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;l?t=a.startOfDayLocal(l):s&&(t=a.startOfDayLocal(s))}let e=(n=this.viewMonth)!=null?n:this.ensureViewMonth();if(!(s=>s?s.getFullYear()===e.getFullYear()&&s.getMonth()===e.getMonth()&&!this.isDisabled(s):!1)(t)){let{weeks:s}=this.getMonthMatrix(e),l=s.flat().find(h=>h.getMonth()===e.getMonth()&&a.isSameDay(h,this.today)&&!this.isDisabled(h));if(l)t=a.startOfDayLocal(l);else{let h=s.flat().find(p=>p.getMonth()===e.getMonth()&&!this.isDisabled(p));t=h?a.startOfDayLocal(h):null}}t&&(this.focusedDate=t),this.requestUpdate(),requestAnimationFrame(()=>{let s=this.shadowRoot,l=(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"));l==null||l.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 n=`${this.formatSelectionLabel(e)}, ${this.localize.term("selected")}`;this.announceSelect(n),this.emit("sd-select",{detail:{value:this.value,date:e}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var l;let s=this.input;s&&(s.value=(l=this.inputValue)!=null?l:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let h=s.value.length;s.setSelectionRange(h,h)})}))})}selectRangeDate(t){if(this.readonly)return;let e=a.startOfDayLocal(t),i=this.rangeStart?a.parseLocalISO(this.rangeStart):null,n=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;if(!i&&!n){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 h;let l=this.input;l&&(l.value=(h=this.inputValue)!=null?h:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let p=l.value.length;l.setSelectionRange(p,p)})}))});return}if(i&&!n){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 m;let u=this.input;u&&(u.value=(m=this.inputValue)!=null?m:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let c=u.value.length;u.setSelectionRange(c,c)})}))});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 m=d.value.length;d.setSelectionRange(m,m)})}))});return}let s=a.parseLocalISO(this.rangeStart);if(this.wouldRangeContainDisabled(s,e))return;let[l,h]=a.compareDates(s,e)<=0?[s,e]:[e,s];this.rangeStart=a.toLocalISODate(l),this.rangeEnd=a.toLocalISODate(h),this.previewEnd=null;let p=this.formatSelectionLabel(l),y=this.formatSelectionLabel(h);this.announceSelect(`${this.termStartSelected()}: ${p}`,40),this.announceSelect(`${this.termEndSelected()}: ${y}`,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&&n){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 h;let l=this.input;l&&(l.value=(h=this.inputValue)!=null?h:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let p=l.value.length;l.setSelectionRange(p,p)})}))})}}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),n=this.range&&e?e:t!=null?t:i,s=new Date(n.getFullYear(),n.getMonth(),1);return this.viewMonth=s,s}getMonthMatrix(t){var y;let e=(y=this.firstDayOfWeek)!=null?y:1,i=new Date(t.getFullYear(),t.getMonth(),1),n=new Date(i),s=(i.getDay()-e+7)%7;n.setDate(i.getDate()-s);let l=[],h=n;for(let g=0;g<6;g++){let d=[];for(let u=0;u<7;u++)d.push(new Date(h)),h.setDate(h.getDate()+1);l.push(d)}let p=g=>g.every(d=>d.getMonth()!==t.getMonth());for(;l.length>0&&p(l[l.length-1]);)l.pop();return{weeks:l}}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 n;let t=(n=this.firstDayOfWeek)!=null?n:1,e=new Date(2021,7,1),i=[];for(let s=0;s<7;s++){let l=new Date(e);l.setDate(e.getDate()+(t+s)%7);try{i.push(new Intl.DateTimeFormat(this.locale,{weekday:"short"}).format(l))}catch(h){i.push(l.toLocaleDateString(void 0,{weekday:"short"}))}}return i}getTabTargetDayForCurrentView(t){var s;let e=(s=this.viewMonth)!=null?s:this.ensureViewMonth(),i=t.flat().find(l=>l.getMonth()===e.getMonth()&&a.isSameDay(l,this.today)&&!this.isDisabled(l));if(i)return a.startOfDayLocal(i);let n=t.flat().find(l=>l.getMonth()===e.getMonth()&&!this.isDisabled(l));return n?a.startOfDayLocal(n):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 n=a.startOfDayLocal(t);this.previewEnd=this.isDisabled(n)?null:n,this.requestUpdate()}}onGridMouseLeave(){this.previewEnd!==null&&(this.previewEnd=null,this.requestUpdate())}renderCalendar(){var u,m;let t=(u=this.viewMonth)!=null?u:this.ensureViewMonth(),{weeks:e}=this.getMonthMatrix(t),i=this.formatMonthYear(t),n=this.weekdayLabels(),s=this.value?this.parseISO(this.value):null,l=this.rangeStart?this.parseISO(this.rangeStart):null,h=this.rangeEnd?this.parseISO(this.rangeEnd):null,p=this.previewEnd,y=c=>!this.range||!l||h||!p?!1:a.isBetweenInclusive(c,l,p),g=this.getTabTargetDayForCurrentView(e),d=this.disabled||this.visuallyDisabled?"text-neutral-500":"icon-color";return F`<div part="datepicker" class="${S("w-[284px] z-50 bg-white py-3 px-4",this.open?"block shadow-listbox":"hidden",(m=this.currentPlacement)!=null&&m.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="${S("nav prev w-6 h-6 hover:cursor-pointer",d)}" part="prev-year-button" @click="${()=>this.setYear(-1)}" @keydown="${c=>this.handleHeaderKeyDown(c,"year",-1,!1)}" aria-label="${this.localize.term("previousYear")}"><sd-7-0-0-next-3-icon library="_internal" name="chevrons-sm-left" class="h-6 w-6"></sd-7-0-0-next-3-icon></button> <button type="button" tabindex="0" class="${S("nav prev w-6 h-6 hover:cursor-pointer",d)}" part="prev-month-button" @click="${()=>this.setMonth(-1)}" @keydown="${c=>this.handleHeaderKeyDown(c,"month",-1,!1)}" aria-label="${this.localize.term("previousMonth")}"><sd-7-0-0-next-3-icon library="_internal" name="chevron-sm-left" class="h-6 w-6"></sd-7-0-0-next-3-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="${S("nav next w-6 h-6 hover:cursor-pointer",d)}" part="next-month-button" @click="${()=>this.setMonth(1)}" @keydown="${c=>this.handleHeaderKeyDown(c,"month",1,!1)}" aria-label="${this.localize.term("nextMonth")}"><sd-7-0-0-next-3-icon library="_internal" name="chevron-sm-right" class="h-6 w-6"></sd-7-0-0-next-3-icon></button> <button type="button" tabindex="0" class="${S("nav next w-6 h-6 hover:cursor-pointer",d)}" part="next-year-button" @click="${()=>this.setYear(1)}" @keydown="${c=>this.handleHeaderKeyDown(c,"year",1,!0)}" aria-label="${this.localize.term("nextYear")}"><sd-7-0-0-next-3-icon library="_internal" name="chevrons-sm-right" class="h-6 w-6"></sd-7-0-0-next-3-icon></button></div></div><sd-7-0-0-next-3-divider></sd-7-0-0-next-3-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">${n.map((c,w)=>F`<div role="columnheader" aria-colindex="${w+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-"+(w+1)}">${c}</div>`)}</div>${e.map((c,w)=>F`<div class="grid-row grid grid-cols-7 ${w===0?"mt-2":""}" role="row" aria-rowindex="${w+2}">${c.map((f,I)=>{let M=f.getMonth()===t.getMonth(),E=this.isDisabled(f)||!this.inMinMax(f),b=a.isSameDay(f,this.focusedDate),D=a.isSameDay(f,this.today),x=!this.range&&s?a.isSameDay(f,s):!1,C=this.range&&l?a.isSameDay(f,l):!1,$=this.range&&h?a.isSameDay(f,h):!1,V=this.range&&l&&h?a.isBetweenInclusive(f,l,h):!1,P=y(f)&&!E,L=-1,T=g&&a.isSameDay(f,g);(this.tabbingIntoGrid&&T||!this.tabbingIntoGrid&&b)&&(L=0);let k=this.isWeekend(f),j=f.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"}),B=C?this.localize.term("startDateSelected"):$?this.localize.term("endDateSelected"):void 0;return F`<button type="button" part="day" class="${S("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",C||$?b?"outline-none sd-7-0-0-next-3-datepicker__date-item--selected--hover-color-background sd-7-0-0-next-3-datepicker__date-item--selected--hover-color-text":"outline-none sd-7-0-0-next-3-datepicker__date-item--selected-color-background sd-7-0-0-next-3-datepicker__date-item--selected-color-text hover:sd-7-0-0-next-3-datepicker__date-item--selected--hover-color-background hover:sd-7-0-0-next-3-datepicker__date-item--selected--hover-color-text":"hover:sd-7-0-0-next-3-datepicker__date-item--hover--default-color-text",!C&&!$&&!V&&"hover:sd-7-0-0-next-3-datepicker__date-item--hover--default-color-background",x?"selected outline-none border-primary sd-7-0-0-next-3-datepicker__date-item--selected-color-background sd-7-0-0-next-3-datepicker__date-item--selected-color-text hover:sd-7-0-0-next-3-datepicker__date-item--selected--hover-color-text hover:sd-7-0-0-next-3-datepicker__date-item--selected--hover-color-background":M?this.isInDisabledDates(f)||!this.inMinMax(f)?"out-month text-neutral-500":this.disabledWeekends&&k?"weekend-day text-neutral-500":"in-month sd-7-0-0-next-3-datepicker__date-item--default-color-text":this.disabledWeekends&&k?"out-month weekend-day text-neutral-500":k?"out-month weekend-day text-neutral-700":"out-month text-neutral-700 hover:sd-7-0-0-next-3-datepicker__date-item--hover--prev-next-color-text hover:sd-7-0-0-next-3-datepicker__date-item--hover--prev-next-color-background",C?"rounded-l-md rounded-r-none":"",$?"range-end rounded-r-md rounded-l-none":"",V&&!C&&!$?"in-range selected sd-7-0-0-next-3-datepicker__date-item--range-color-background rounded-none hover:sd-7-0-0-next-3-datepicker__date-item--selected--hover-color-background hover:sd-7-0-0-next-3-datepicker__date-item--selected--hover-color-text":"",!V&&P&&!C&&!$?"in-preview-range bg-primary-100 text-primary-500 rounded-none":"",D&&!x&&!C&&!$&&b?"today border-[1px] border-primary sd-7-0-0-next-3-datepicker__date-item--current-font-weight":"",E?"disabled cursor-not-allowed hover:bg-transparent":"cursor-pointer",b&&!D?"focused outline outline-2 outline-primary":"")}" role="gridcell" aria-colindex="${I+1}" aria-labelledby="${"col-"+(I+1)}" .tabIndex="${L}" ?disabled="${E||this.disabled||this.readonly}" aria-disabled="${E||this.visuallyDisabled||this.disabled||this.readonly?"true":"false"}" aria-selected="${x||V||C||$?"true":"false"}" aria-current="${D?"date":R}" aria-label="${j}" aria-roledescription="${B!=null?B:R}" @focus="${()=>this.focusedDate=a.startOfDayLocal(f)}" @mouseenter="${()=>this.onDayMouseEnter(f)}" @keydown="${this.onKeyDown}" @click="${()=>{this.focusedDate=a.startOfDayLocal(f),this.selectDate(f)}}">${f.getDate()}</button>`})}</div>`)}</div></div>`}render(){var m,c;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,n=!!t.tooltip,s=this.value!==null&&String(this.value).length>0||this.range&&this.rangeStart!==null||this.rangeEnd!==null,l=this.floatingLabel&&e&&(this.hasFocus||this.open||s)&&!this.disabled&&!this.visuallyDisabled,h=this.disabled||this.visuallyDisabled?"text-neutral-500":"icon-color",p={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],y={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 F`<div part="form-control" class="${S("min-w-[284px]",this.open&&"z-50",(this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${e&&!this.floatingLabel||n?F`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${S(e?"inline-block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"form-control-color-text",u)}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${t.tooltip?F`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${S("relative w-full",this.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}">${e&&this.floatingLabel?F`<label id="label" part="form-control-floating-label" class="${S("absolute left-4 z-20 pointer-events-none transition-all duration-200 form-control--filled__floating-label-color-text",l?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-1/2 -translate-y-1/2 form-control-color-text",l&&"mt-1")}" for="input"><span class="${S("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",l&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}<div part="border" class="${S("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&&((m=this.currentPlacement)!=null&&m.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-7-0-0-next-3-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${S("inline-flex relative w-full",(c=this.currentPlacement)!=null&&c.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="${S("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)]:form-control--hover-color-background":"",this.readonly?"form-control--read-only-color-background":"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="${S("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||l?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?F`<sd-7-0-0-next-3-icon part="invalid-icon" class="${S("text-error",p,y)}" library="_internal" name="risk"></sd-7-0-0-next-3-icon>`:""} ${this.showValidStyle&&this.styleOnValid?F`<sd-7-0-0-next-3-icon class="${S("text-success shrink-0",p,y)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-7-0-0-next-3-icon>`:""}<sd-7-0-0-next-3-icon class="${S(h,p,y,"hover:cursor-pointer")}" library="_internal" name="calendar" @click="${this.show}"></sd-7-0-0-next-3-icon></div>${this.renderCalendar()}</sd-7-0-0-next-3-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${S("text-sm mt-1",i?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!i}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};r.styles=[...A.styles,q`/*! tailwindcss v4.3.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:rgba(var(--sd-form-control-color-icon-fill))}.month-label{color:rgba(var(--sd-color-border-primary))!important}`],o([v({type:String,reflect:!0})],r.prototype,"locale",2),o([v({type:String,converter:z,reflect:!0})],r.prototype,"value",2),o([v({type:Boolean,reflect:!0})],r.prototype,"range",2),o([v({attribute:"range-start",converter:z,reflect:!0})],r.prototype,"rangeStart",2),o([v({attribute:"range-end",converter:z,reflect:!0})],r.prototype,"rangeEnd",2),o([v({type:Boolean})],r.prototype,"allowSameDayRange",2),o([v({type:String,converter:z,reflect:!0})],r.prototype,"min",2),o([v({type:String,converter:z,reflect:!0})],r.prototype,"max",2),o([v({attribute:"view-month",converter:K})],r.prototype,"viewMonth",2),o([v({type:Number})],r.prototype,"firstDayOfWeek",2),o([v({type:Boolean,reflect:!0,attribute:"disabled-weekends"})],r.prototype,"disabledWeekends",2),o([v({attribute:"disabled-dates",converter:G})],r.prototype,"disabledDates",2),o([v({attribute:!1})],r.prototype,"isDateDisabled",2),o([v({type:String,reflect:!0})],r.prototype,"size",2),o([v({type:String})],r.prototype,"alignment",2),o([v({type:String,reflect:!0})],r.prototype,"label",2),o([v({type:String,attribute:"help-text",reflect:!0})],r.prototype,"helpText",2),o([v({attribute:"floating-label",type:Boolean,reflect:!0})],r.prototype,"floatingLabel",2),o([v({type:Boolean,reflect:!0})],r.prototype,"disabled",2),o([v({type:Boolean,reflect:!0})],r.prototype,"required",2),o([v({type:Boolean,attribute:"visually-disabled"})],r.prototype,"visuallyDisabled",2),o([v({type:Boolean,reflect:!0,attribute:"style-on-valid"})],r.prototype,"styleOnValid",2),o([v({type:Boolean,reflect:!0})],r.prototype,"readonly",2),o([v({type:String,reflect:!0})],r.prototype,"placement",2),o([v({type:String,reflect:!0})],r.prototype,"placeholder",2),o([v({reflect:!0})],r.prototype,"name",2),o([v({type:String,reflect:!0})],r.prototype,"form",2),o([O()],r.prototype,"open",2),o([O()],r.prototype,"focusedDate",2),o([O()],r.prototype,"today",2),o([O()],r.prototype,"disabledDatesSet",2),o([O()],r.prototype,"previewEnd",2),o([O()],r.prototype,"statusNavText",2),o([O()],r.prototype,"statusSelectText",2),o([O()],r.prototype,"hasFocus",2),o([O()],r.prototype,"showValidStyle",2),o([O()],r.prototype,"showInvalidStyle",2),o([O()],r.prototype,"currentPlacement",2),o([O()],r.prototype,"inputValue",2),o([Y("sd-7-0-0-next-
|
|
1
|
+
import{a}from"./chunk.WWGARXPI.js";import{a as z,b as K,c as G}from"./chunk.23WKPZET.js";import{b as N}from"./chunk.LZRL7OLU.js";import{a as U}from"./chunk.CGQ2BPPZ.js";import{a as W}from"./chunk.VAM5SM3O.js";import{a as S}from"./chunk.4ZZFYCXX.js";import{a as _}from"./chunk.NYKJXI3Q.js";import{a as H,b as v,c as O,d as Y,h as A}from"./chunk.SGJYHE3R.js";import{b as q,e as F,i as R}from"./chunk.OBAEIKIV.js";import{e as o}from"./chunk.6EV4YU6C.js";var r=class extends A{constructor(){super();this.localize=new W(this);this.hasSlotController=new U(this,"label","help-text","tooltip");this.formControlController=new N(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(n=>{var s,l;return n instanceof HTMLElement&&(((s=n.classList)==null?void 0:s.contains("nav"))||((l=n.classList)==null?void 0:l.contains("month-label")))})&&(this.tabbingIntoGrid=!0)};this.handleInput=t=>{var l,h,p,y,g;if(this.disabled||this.visuallyDisabled||this.readonly){(l=t.preventDefault)==null||l.call(t),(h=t.stopPropagation)==null||h.call(t);return}let e=t.target,i=e.value,n=(p=e.selectionStart)!=null?p:i.length,s=(y=t.inputType)==null?void 0:y.startsWith("delete");if(this.range){let d=i.replace(/\D/g,""),u=d.slice(0,8),m=d.slice(8,16),c=this.buildDmyFromDigits(u),w=this.buildDmyFromDigits(m),f;u.length===0?f="":u.length<8?f=c:m.length>0?f=`${c} - ${w}`:f=s?c:`${c} -`;let I=this.countDigitsBeforeCaret(i,n),M;if(I<=8){let b=this.digitIndexToDmyCaretPos(Math.min(I,8));M=Math.min(b,c.length)}else{let b=u.length<8?c.length:c.length+3,D=Math.min(I-8,8),x=this.digitIndexToDmyCaretPos(D);M=b+Math.min(x,w.length)}this.inputValue=f;let E=!1;if(/^\d{2}\.\d{2}\.\d{4}$/.test(c)){let b=this.dmyToIso(c),D=b?a.parseLocalISO(b):null;D&&!this.isDisabled(D)&&this.inMinMax(D)&&this.rangeStart!==b&&(this.rangeStart=b,this.previewEnd=null,this.viewMonth=new Date(D.getFullYear(),D.getMonth(),1),this.focusedDate=a.startOfDayLocal(D),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(w)&&this.rangeStart){let b=a.parseLocalISO(this.rangeStart),D=this.dmyToIso(w),x=D?a.parseLocalISO(D):null;if(!!x&&!this.isDisabled(x)&&this.inMinMax(x)){let[$,V]=a.compareDates(b,x)<=0?[b,x]:[x,b],P=a.isSameDay($,V);if((this.allowSameDayRange||!P)&&!this.wouldRangeContainDisabled($,V)){let T=a.toLocalISODate(a.startOfDayLocal($)),k=a.toLocalISODate(a.startOfDayLocal(V));(this.rangeStart!==T||this.rangeEnd!==k)&&(this.rangeStart=T,this.rangeEnd=k,this.viewMonth=new Date(V.getFullYear(),V.getMonth(),1),this.focusedDate=a.startOfDayLocal(V),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 D;let b=(D=this.input)!=null?D:e;b&&(b.value=this.inputValue,b.setSelectionRange(M,M))})})}else{let d=e,u=d.value,m=(g=d.selectionStart)!=null?g:u.length,c=u.replace(/\D/g,"").slice(0,8),w=c.slice(0,2),f=c.slice(2,4),I=c.slice(4,8),M="";w.length>0&&(M+=w,w.length===2&&(M+=".")),f.length>0&&w.length===2&&(M+=f,f.length===2&&(M+=".")),I.length>0&&w.length===2&&f.length===2&&(M+=I),M=M.replace(/\.\.+/g,".");let E=this.inputValue||"";this.inputValue=M;let b=m,D=L=>{let T=[];for(let k=0;k<L.length;k++)L[k]==="."&&T.push(k);return T},x=D(E),C=D(M),$=x.filter(L=>L<m).length,P=C.filter(L=>L<m).length-$;if(P>0?b+=P:!x.includes(m)&&C.includes(m)&&(b+=1),b=Math.min(Math.max(0,b),M.length),requestAnimationFrame(()=>{var T;let L=(T=this.input)!=null?T:d;L&&(L.value=this.inputValue,L.setSelectionRange(b,b))}),/^\d{2}\.\d{2}\.\d{4}$/.test(M)){let L=this.parseInputText(M);this.applyParsedInput(L)}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,n)=>{if(!(this.disabled||this.visuallyDisabled||this.readonly)){if(t.key==="Tab"&&!t.shiftKey){n&&(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,l;if(this.disabled||this.visuallyDisabled||this.readonly){t.preventDefault(),t.stopPropagation();return}let e=t.key,i=!0,n=new Date(this.focusedDate);switch(e){case"ArrowLeft":n.setDate(n.getDate()-1);break;case"ArrowRight":n.setDate(n.getDate()+1);break;case"ArrowUp":n.setDate(n.getDate()-7);break;case"ArrowDown":n.setDate(n.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 h=(s=this.viewMonth)!=null?s:this.ensureViewMonth();if(n.getMonth()!==h.getMonth()||n.getFullYear()!==h.getFullYear()){let d=new Date(n.getFullYear(),n.getMonth(),1);this.viewMonth=d;let u=this.formatMonthYear(d);this.setNavStatus(u)}let y=a.startOfDayLocal(n);y.getTime()!==((l=this.focusedDate)==null?void 0:l.getTime())&&(this.focusedDate=y);let g=y.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 l;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),n=this.range&&e?e:t!=null?t:i,s=(l=this.viewMonth)!=null?l:new Date(n.getFullYear(),n.getMonth(),1);this.viewMonth=s,this.focusedDate=a.clampDateToMonth(n,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 n=e.value.length;e.setSelectionRange(n,n)}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 n=this.input;if(n){n.value=(s=this.inputValue)!=null?s:"";let l=n.value.length;n.setSelectionRange(l,l)}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 l=this.parseISO(s);return l?a.startOfDayLocal(l):null}return null},i=e(this.min),n=e(this.max);return!(i&&t<i||n&&t>n)}isInDisabledDates(t){if(!this.disabledDatesSet||this.disabledDatesSet.size===0)return!1;let e=t.getFullYear(),i=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0"),s=`${e}-${i}-${n}`;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),n=t.toLocaleDateString("en-US",{month:"long"}),s=t.getFullYear();return`${i} of ${n} ${s}`}ordinal(t){let e=["th","st","nd","rd"],i=t%100,n=e[(i-20)%10]||e[i]||e[0];return t+n}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),n=a.compareDates(t,e)<=0?a.startOfDayLocal(e):a.startOfDayLocal(t),s=new Date(i);for(;a.compareDates(s,n)<=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"),n=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getFullYear());return`${i}.${n}.${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]),n=Number(e[2]),s=Number(e[3]),l=new Date(s,n-1,i);if(l.getFullYear()!==s||l.getMonth()!==n-1||l.getDate()!==i)return null;let h=a.startOfDayLocal(l);return a.toLocalISODate(h)}formatInputValue(){let t=(this.locale||"").toLowerCase(),e=(this.getAttribute("lang")||"").toLowerCase(),n=t.startsWith("de")||e.startsWith("de")?"\u2013":"-";if(!this.range)return this.isoToDmy(this.value);let s=this.isoToDmy(this.rangeStart),l=this.isoToDmy(this.rangeEnd);return s&&l?`${s} ${n} ${l}`:s&&!l?`${s} ${n}`:""}parseInputText(t){var n,s;let e=t.trim();if(this.range){let l=e.split(/\s*-\s*/);if(l.length===1){let h=l[0];if(!h)return{start:null,end:null,valid:!0};let p=this.dmyToIso(h);return p?{start:p,end:null,valid:!0}:{start:null,end:null,valid:!1}}else if(l.length>=2){let h=(n=l[0])!=null?n:"",p=(s=l[1])!=null?s:"",y=h?this.dmyToIso(h):null,g=p?this.dmyToIso(p):null;return h&&!y?{start:null,end:null,valid:!1}:p&&!g?{start:null,end:null,valid:!1}:{start:y,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 h,p,y,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=(h=t.start)!=null?h:null,u=(p=t.end)!=null?p:null;if(!e(d)||u&&!e(u))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let m=d?a.parseLocalISO(d):null,c=u?a.parseLocalISO(u):null;if(m&&c){if(a.compareDates(m,c)>0){let I=m;m=c,c=I}if(!this.allowSameDayRange&&a.isSameDay(m,c))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;if(this.wouldRangeContainDisabled(m,c))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1}let w=m?a.toLocalISODate(a.startOfDayLocal(m)):null,f=c?a.toLocalISODate(a.startOfDayLocal(c)):null;if(this.rangeStart!==w||this.rangeEnd!==f){this.rangeStart=w,this.rangeEnd=f,this.previewEnd=null,i=!0;let I=(y=m!=null?m:c)!=null?y: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 n=(g=t.single)!=null?g:null;if(!e(n))return this.input.setCustomValidity(this.localize.term("datePickerRange")),this.formControlController.setValidity(!1),this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let s=n?a.parseLocalISO(n):null,l=s?a.toLocalISODate(a.startOfDayLocal(s)):null;return this.value!==l&&(this.value=l,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),n=e.slice(2,4),s=e.slice(4,8),l=i;return n.length&&(l+="."+n),s.length&&(l+="."+s),l}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,n;((n=(i=t.composedPath)==null?void 0:i.call(t))!=null?n:[]).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 n=this.formatMonthYear(i);this.setNavStatus(n),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 n=this.formatMonthYear(i);this.setNavStatus(n),this.emit("sd-month-year",{detail:{month:i}})}focusInitialGridDay(){var n;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,l=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;l?t=a.startOfDayLocal(l):s&&(t=a.startOfDayLocal(s))}let e=(n=this.viewMonth)!=null?n:this.ensureViewMonth();if(!(s=>s?s.getFullYear()===e.getFullYear()&&s.getMonth()===e.getMonth()&&!this.isDisabled(s):!1)(t)){let{weeks:s}=this.getMonthMatrix(e),l=s.flat().find(h=>h.getMonth()===e.getMonth()&&a.isSameDay(h,this.today)&&!this.isDisabled(h));if(l)t=a.startOfDayLocal(l);else{let h=s.flat().find(p=>p.getMonth()===e.getMonth()&&!this.isDisabled(p));t=h?a.startOfDayLocal(h):null}}t&&(this.focusedDate=t),this.requestUpdate(),requestAnimationFrame(()=>{let s=this.shadowRoot,l=(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"));l==null||l.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 n=`${this.formatSelectionLabel(e)}, ${this.localize.term("selected")}`;this.announceSelect(n),this.emit("sd-select",{detail:{value:this.value,date:e}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var l;let s=this.input;s&&(s.value=(l=this.inputValue)!=null?l:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let h=s.value.length;s.setSelectionRange(h,h)})}))})}selectRangeDate(t){if(this.readonly)return;let e=a.startOfDayLocal(t),i=this.rangeStart?a.parseLocalISO(this.rangeStart):null,n=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;if(!i&&!n){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 h;let l=this.input;l&&(l.value=(h=this.inputValue)!=null?h:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let p=l.value.length;l.setSelectionRange(p,p)})}))});return}if(i&&!n){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 m;let u=this.input;u&&(u.value=(m=this.inputValue)!=null?m:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let c=u.value.length;u.setSelectionRange(c,c)})}))});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 m=d.value.length;d.setSelectionRange(m,m)})}))});return}let s=a.parseLocalISO(this.rangeStart);if(this.wouldRangeContainDisabled(s,e))return;let[l,h]=a.compareDates(s,e)<=0?[s,e]:[e,s];this.rangeStart=a.toLocalISODate(l),this.rangeEnd=a.toLocalISODate(h),this.previewEnd=null;let p=this.formatSelectionLabel(l),y=this.formatSelectionLabel(h);this.announceSelect(`${this.termStartSelected()}: ${p}`,40),this.announceSelect(`${this.termEndSelected()}: ${y}`,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&&n){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 h;let l=this.input;l&&(l.value=(h=this.inputValue)!=null?h:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let p=l.value.length;l.setSelectionRange(p,p)})}))})}}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),n=this.range&&e?e:t!=null?t:i,s=new Date(n.getFullYear(),n.getMonth(),1);return this.viewMonth=s,s}getMonthMatrix(t){var y;let e=(y=this.firstDayOfWeek)!=null?y:1,i=new Date(t.getFullYear(),t.getMonth(),1),n=new Date(i),s=(i.getDay()-e+7)%7;n.setDate(i.getDate()-s);let l=[],h=n;for(let g=0;g<6;g++){let d=[];for(let u=0;u<7;u++)d.push(new Date(h)),h.setDate(h.getDate()+1);l.push(d)}let p=g=>g.every(d=>d.getMonth()!==t.getMonth());for(;l.length>0&&p(l[l.length-1]);)l.pop();return{weeks:l}}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 n;let t=(n=this.firstDayOfWeek)!=null?n:1,e=new Date(2021,7,1),i=[];for(let s=0;s<7;s++){let l=new Date(e);l.setDate(e.getDate()+(t+s)%7);try{i.push(new Intl.DateTimeFormat(this.locale,{weekday:"short"}).format(l))}catch(h){i.push(l.toLocaleDateString(void 0,{weekday:"short"}))}}return i}getTabTargetDayForCurrentView(t){var s;let e=(s=this.viewMonth)!=null?s:this.ensureViewMonth(),i=t.flat().find(l=>l.getMonth()===e.getMonth()&&a.isSameDay(l,this.today)&&!this.isDisabled(l));if(i)return a.startOfDayLocal(i);let n=t.flat().find(l=>l.getMonth()===e.getMonth()&&!this.isDisabled(l));return n?a.startOfDayLocal(n):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 n=a.startOfDayLocal(t);this.previewEnd=this.isDisabled(n)?null:n,this.requestUpdate()}}onGridMouseLeave(){this.previewEnd!==null&&(this.previewEnd=null,this.requestUpdate())}renderCalendar(){var u,m;let t=(u=this.viewMonth)!=null?u:this.ensureViewMonth(),{weeks:e}=this.getMonthMatrix(t),i=this.formatMonthYear(t),n=this.weekdayLabels(),s=this.value?this.parseISO(this.value):null,l=this.rangeStart?this.parseISO(this.rangeStart):null,h=this.rangeEnd?this.parseISO(this.rangeEnd):null,p=this.previewEnd,y=c=>!this.range||!l||h||!p?!1:a.isBetweenInclusive(c,l,p),g=this.getTabTargetDayForCurrentView(e),d=this.disabled||this.visuallyDisabled?"text-neutral-500":"icon-color";return F`<div part="datepicker" class="${S("w-[284px] z-50 bg-white py-3 px-4",this.open?"block shadow-listbox":"hidden",(m=this.currentPlacement)!=null&&m.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="${S("nav prev w-6 h-6 hover:cursor-pointer",d)}" part="prev-year-button" @click="${()=>this.setYear(-1)}" @keydown="${c=>this.handleHeaderKeyDown(c,"year",-1,!1)}" aria-label="${this.localize.term("previousYear")}"><sd-7-0-0-next-4-icon library="_internal" name="chevrons-sm-left" class="h-6 w-6"></sd-7-0-0-next-4-icon></button> <button type="button" tabindex="0" class="${S("nav prev w-6 h-6 hover:cursor-pointer",d)}" part="prev-month-button" @click="${()=>this.setMonth(-1)}" @keydown="${c=>this.handleHeaderKeyDown(c,"month",-1,!1)}" aria-label="${this.localize.term("previousMonth")}"><sd-7-0-0-next-4-icon library="_internal" name="chevron-sm-left" class="h-6 w-6"></sd-7-0-0-next-4-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="${S("nav next w-6 h-6 hover:cursor-pointer",d)}" part="next-month-button" @click="${()=>this.setMonth(1)}" @keydown="${c=>this.handleHeaderKeyDown(c,"month",1,!1)}" aria-label="${this.localize.term("nextMonth")}"><sd-7-0-0-next-4-icon library="_internal" name="chevron-sm-right" class="h-6 w-6"></sd-7-0-0-next-4-icon></button> <button type="button" tabindex="0" class="${S("nav next w-6 h-6 hover:cursor-pointer",d)}" part="next-year-button" @click="${()=>this.setYear(1)}" @keydown="${c=>this.handleHeaderKeyDown(c,"year",1,!0)}" aria-label="${this.localize.term("nextYear")}"><sd-7-0-0-next-4-icon library="_internal" name="chevrons-sm-right" class="h-6 w-6"></sd-7-0-0-next-4-icon></button></div></div><sd-7-0-0-next-4-divider></sd-7-0-0-next-4-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">${n.map((c,w)=>F`<div role="columnheader" aria-colindex="${w+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-"+(w+1)}">${c}</div>`)}</div>${e.map((c,w)=>F`<div class="grid-row grid grid-cols-7 ${w===0?"mt-2":""}" role="row" aria-rowindex="${w+2}">${c.map((f,I)=>{let M=f.getMonth()===t.getMonth(),E=this.isDisabled(f)||!this.inMinMax(f),b=a.isSameDay(f,this.focusedDate),D=a.isSameDay(f,this.today),x=!this.range&&s?a.isSameDay(f,s):!1,C=this.range&&l?a.isSameDay(f,l):!1,$=this.range&&h?a.isSameDay(f,h):!1,V=this.range&&l&&h?a.isBetweenInclusive(f,l,h):!1,P=y(f)&&!E,L=-1,T=g&&a.isSameDay(f,g);(this.tabbingIntoGrid&&T||!this.tabbingIntoGrid&&b)&&(L=0);let k=this.isWeekend(f),j=f.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"}),B=C?this.localize.term("startDateSelected"):$?this.localize.term("endDateSelected"):void 0;return F`<button type="button" part="day" class="${S("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",C||$?b?"outline-none sd-7-0-0-next-4-datepicker__date-item--selected--hover-color-background sd-7-0-0-next-4-datepicker__date-item--selected--hover-color-text":"outline-none sd-7-0-0-next-4-datepicker__date-item--selected-color-background sd-7-0-0-next-4-datepicker__date-item--selected-color-text hover:sd-7-0-0-next-4-datepicker__date-item--selected--hover-color-background hover:sd-7-0-0-next-4-datepicker__date-item--selected--hover-color-text":"hover:sd-7-0-0-next-4-datepicker__date-item--hover--default-color-text",!C&&!$&&!V&&"hover:sd-7-0-0-next-4-datepicker__date-item--hover--default-color-background",x?"selected outline-none border-primary sd-7-0-0-next-4-datepicker__date-item--selected-color-background sd-7-0-0-next-4-datepicker__date-item--selected-color-text hover:sd-7-0-0-next-4-datepicker__date-item--selected--hover-color-text hover:sd-7-0-0-next-4-datepicker__date-item--selected--hover-color-background":M?this.isInDisabledDates(f)||!this.inMinMax(f)?"out-month text-neutral-500":this.disabledWeekends&&k?"weekend-day text-neutral-500":"in-month sd-7-0-0-next-4-datepicker__date-item--default-color-text":this.disabledWeekends&&k?"out-month weekend-day text-neutral-500":k?"out-month weekend-day text-neutral-700":"out-month text-neutral-700 hover:sd-7-0-0-next-4-datepicker__date-item--hover--prev-next-color-text hover:sd-7-0-0-next-4-datepicker__date-item--hover--prev-next-color-background",C?"rounded-l-md rounded-r-none":"",$?"range-end rounded-r-md rounded-l-none":"",V&&!C&&!$?"in-range selected sd-7-0-0-next-4-datepicker__date-item--range-color-background rounded-none hover:sd-7-0-0-next-4-datepicker__date-item--selected--hover-color-background hover:sd-7-0-0-next-4-datepicker__date-item--selected--hover-color-text":"",!V&&P&&!C&&!$?"in-preview-range bg-primary-100 text-primary-500 rounded-none":"",D&&!x&&!C&&!$&&b?"today border-[1px] border-primary sd-7-0-0-next-4-datepicker__date-item--current-font-weight":"",E?"disabled cursor-not-allowed hover:bg-transparent":"cursor-pointer",b&&!D?"focused outline outline-2 outline-primary":"")}" role="gridcell" aria-colindex="${I+1}" aria-labelledby="${"col-"+(I+1)}" .tabIndex="${L}" ?disabled="${E||this.disabled||this.readonly}" aria-disabled="${E||this.visuallyDisabled||this.disabled||this.readonly?"true":"false"}" aria-selected="${x||V||C||$?"true":"false"}" aria-current="${D?"date":R}" aria-label="${j}" aria-roledescription="${B!=null?B:R}" @focus="${()=>this.focusedDate=a.startOfDayLocal(f)}" @mouseenter="${()=>this.onDayMouseEnter(f)}" @keydown="${this.onKeyDown}" @click="${()=>{this.focusedDate=a.startOfDayLocal(f),this.selectDate(f)}}">${f.getDate()}</button>`})}</div>`)}</div></div>`}render(){var m,c;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,n=!!t.tooltip,s=this.value!==null&&String(this.value).length>0||this.range&&this.rangeStart!==null||this.rangeEnd!==null,l=this.floatingLabel&&e&&(this.hasFocus||this.open||s)&&!this.disabled&&!this.visuallyDisabled,h=this.disabled||this.visuallyDisabled?"text-neutral-500":"icon-color",p={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],y={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 F`<div part="form-control" class="${S("min-w-[284px]",this.open&&"z-50",(this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${e&&!this.floatingLabel||n?F`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${S(e?"inline-block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"form-control-color-text",u)}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${t.tooltip?F`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${S("relative w-full",this.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}">${e&&this.floatingLabel?F`<label id="label" part="form-control-floating-label" class="${S("absolute left-4 z-20 pointer-events-none transition-all duration-200 form-control--filled__floating-label-color-text",l?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-1/2 -translate-y-1/2 form-control-color-text",l&&"mt-1")}" for="input"><span class="${S("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",l&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}<div part="border" class="${S("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&&((m=this.currentPlacement)!=null&&m.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-7-0-0-next-4-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${S("inline-flex relative w-full",(c=this.currentPlacement)!=null&&c.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="${S("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)]:form-control--hover-color-background":"",this.readonly?"form-control--read-only-color-background":"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="${S("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||l?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?F`<sd-7-0-0-next-4-icon part="invalid-icon" class="${S("text-error",p,y)}" library="_internal" name="risk"></sd-7-0-0-next-4-icon>`:""} ${this.showValidStyle&&this.styleOnValid?F`<sd-7-0-0-next-4-icon class="${S("text-success shrink-0",p,y)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-7-0-0-next-4-icon>`:""}<sd-7-0-0-next-4-icon class="${S(h,p,y,"hover:cursor-pointer")}" library="_internal" name="calendar" @click="${this.show}"></sd-7-0-0-next-4-icon></div>${this.renderCalendar()}</sd-7-0-0-next-4-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${S("text-sm mt-1",i?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!i}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};r.styles=[...A.styles,q`/*! tailwindcss v4.3.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:rgba(var(--sd-form-control-color-icon-fill))}.month-label{color:rgba(var(--sd-color-border-primary))!important}`],o([v({type:String,reflect:!0})],r.prototype,"locale",2),o([v({type:String,converter:z,reflect:!0})],r.prototype,"value",2),o([v({type:Boolean,reflect:!0})],r.prototype,"range",2),o([v({attribute:"range-start",converter:z,reflect:!0})],r.prototype,"rangeStart",2),o([v({attribute:"range-end",converter:z,reflect:!0})],r.prototype,"rangeEnd",2),o([v({type:Boolean})],r.prototype,"allowSameDayRange",2),o([v({type:String,converter:z,reflect:!0})],r.prototype,"min",2),o([v({type:String,converter:z,reflect:!0})],r.prototype,"max",2),o([v({attribute:"view-month",converter:K})],r.prototype,"viewMonth",2),o([v({type:Number})],r.prototype,"firstDayOfWeek",2),o([v({type:Boolean,reflect:!0,attribute:"disabled-weekends"})],r.prototype,"disabledWeekends",2),o([v({attribute:"disabled-dates",converter:G})],r.prototype,"disabledDates",2),o([v({attribute:!1})],r.prototype,"isDateDisabled",2),o([v({type:String,reflect:!0})],r.prototype,"size",2),o([v({type:String})],r.prototype,"alignment",2),o([v({type:String,reflect:!0})],r.prototype,"label",2),o([v({type:String,attribute:"help-text",reflect:!0})],r.prototype,"helpText",2),o([v({attribute:"floating-label",type:Boolean,reflect:!0})],r.prototype,"floatingLabel",2),o([v({type:Boolean,reflect:!0})],r.prototype,"disabled",2),o([v({type:Boolean,reflect:!0})],r.prototype,"required",2),o([v({type:Boolean,attribute:"visually-disabled"})],r.prototype,"visuallyDisabled",2),o([v({type:Boolean,reflect:!0,attribute:"style-on-valid"})],r.prototype,"styleOnValid",2),o([v({type:Boolean,reflect:!0})],r.prototype,"readonly",2),o([v({type:String,reflect:!0})],r.prototype,"placement",2),o([v({type:String,reflect:!0})],r.prototype,"placeholder",2),o([v({reflect:!0})],r.prototype,"name",2),o([v({type:String,reflect:!0})],r.prototype,"form",2),o([O()],r.prototype,"open",2),o([O()],r.prototype,"focusedDate",2),o([O()],r.prototype,"today",2),o([O()],r.prototype,"disabledDatesSet",2),o([O()],r.prototype,"previewEnd",2),o([O()],r.prototype,"statusNavText",2),o([O()],r.prototype,"statusSelectText",2),o([O()],r.prototype,"hasFocus",2),o([O()],r.prototype,"showValidStyle",2),o([O()],r.prototype,"showInvalidStyle",2),o([O()],r.prototype,"currentPlacement",2),o([O()],r.prototype,"inputValue",2),o([Y("sd-7-0-0-next-4-popup")],r.prototype,"popup",2),o([Y("#invalid-message")],r.prototype,"invalidMessage",2),o([Y("#input")],r.prototype,"input",2),o([_("open",{waitUntilFirstUpdate:!0})],r.prototype,"handleOpenChange",1),o([_("locale")],r.prototype,"handleLocaleChange",1),o([_("viewMonth")],r.prototype,"handleViewMonthChange",1),o([_("disabledDates")],r.prototype,"handleDisabledDatesChange",1),o([_("value")],r.prototype,"handleValueChange",1),o([_("rangeStart"),_("rangeEnd")],r.prototype,"handleRangeChange",1),o([_(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],r.prototype,"handleDisabledChange",1),o([_(["size","floatingLabel"])],r.prototype,"handleSizeChange",1),r=o([H("sd-7-0-0-next-4-datepicker")],r);export{r as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as s}from"./chunk.LHSR56PH.js";import{a as n,b as o}from"./chunk.NL7YFV4O.js";import{b as d}from"./chunk.W5O4FM6B.js";import{a as r}from"./chunk.4ZZFYCXX.js";import{a as v,b as a,h as l}from"./chunk.
|
|
1
|
+
import{a as s}from"./chunk.LHSR56PH.js";import{a as n,b as o}from"./chunk.NL7YFV4O.js";import{b as d}from"./chunk.W5O4FM6B.js";import{a as r}from"./chunk.4ZZFYCXX.js";import{a as v,b as a,h as l}from"./chunk.SGJYHE3R.js";import{b as m}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends l{constructor(){super(...arguments);this.variant="main";this.state="default";this.animated=!1;this.notInteractive=!1;this.href="";this.label="";this.marker={cluster:`
|
|
2
2
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50">
|
|
3
3
|
<circle cx="25" cy="25" opacity="1" r="20" />
|
|
4
4
|
</svg>`,main:`
|
|
@@ -7,5 +7,5 @@ import{a as s}from"./chunk.LHSR56PH.js";import{a as n,b as o}from"./chunk.NL7YFV
|
|
|
7
7
|
</svg> `,place:`
|
|
8
8
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75">
|
|
9
9
|
<path fill-rule="evenodd" d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22Z" clip-rule="evenodd" />
|
|
10
|
-
</svg>`}}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}isLink(){return!!this.href}render(){let i=this.isLink(),c=this.notInteractive?n`div`:i?n`a`:n`button`,h=d(this.marker[this.variant]),p=`url("data:image/svg+xml;utf8,${encodeURIComponent(this.marker[this.variant]).replace(/#/g,"%23")}")`;return o`<${c} part="base" class="${r("relative flex justify-center",!this.notInteractive&&"group focus-visible:focus-outline")}" href="${s(i?this.href:void 0)}" target="${s(i?this.target:void 0)}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" role="${s(this.notInteractive||i?void 0:"button")}" aria-label="${s(!this.notInteractive&&this.label?this.label:void 0)}" aria-labelledby="${s(!this.notInteractive&&!this.label?"content":void 0)}"><div part="marker" class="${r("relative inline-flex",this.animated&&(this.variant==="main"||this.variant==="place")&&"animate-bounce-once",this.variant==="cluster"&&this.state==="hover"&&"scale-110",this.variant==="cluster"&&!this.notInteractive&&"transition-transform duration-fast ease-in-out hover:scale-110",{cluster:"sd-7-0-0-next-
|
|
11
|
-
:host{display:block}#motion-wrapper{mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-position:center;-webkit-mask-position:center;mask-size:contain;-webkit-mask-size:contain}:host([variant=cluster]) [part=base],svg{width:calc(var(--sd-spacing-12,3rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=base]{height:calc(var(--sd-spacing-12,3rem) * var(--map-marker-scaling,1))}:host(:not([variant=cluster])) [part=base]{height:calc(var(--sd-spacing-16,4rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=content]{font-size:calc(var(--sd-font-size-sm,.875rem) * var(--map-marker-scaling,1))}:host([variant=place]) [part=content]{margin-top:calc(var(--sd-spacing-2) * -1);font-size:calc(var(--sd-font-size-3xl,2rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=motion-wrapper]>div>div{background-color:rgba(var(--sd-map-marker--cluster--hover-color-background))}:host([variant=main]) [part=marker],:host([variant=place]) [part=marker]{--tw-drop-shadow-size:drop-shadow(var(--sd-drop-shadow));--tw-drop-shadow:drop-shadow(var(--sd-drop-shadow));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}:host([variant=main]) #marker-circle{width:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));height:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));left:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));right:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));top:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1))}#marker-circle{background-color:rgba(var(--sd-color-icon-fill-white,rgba(var(--sd-color-white))))}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}`],e([a({type:String,reflect:!0})],t.prototype,"variant",2),e([a({type:String,reflect:!0})],t.prototype,"state",2),e([a({type:Boolean,reflect:!0})],t.prototype,"animated",2),e([a({type:Boolean,reflect:!0,attribute:"not-interactive"})],t.prototype,"notInteractive",2),e([a({type:String,reflect:!0})],t.prototype,"href",2),e([a({type:String,reflect:!0})],t.prototype,"target",2),e([a({reflect:!0})],t.prototype,"label",2),t=e([v("sd-7-0-0-next-
|
|
10
|
+
</svg>`}}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}isLink(){return!!this.href}render(){let i=this.isLink(),c=this.notInteractive?n`div`:i?n`a`:n`button`,h=d(this.marker[this.variant]),p=`url("data:image/svg+xml;utf8,${encodeURIComponent(this.marker[this.variant]).replace(/#/g,"%23")}")`;return o`<${c} part="base" class="${r("relative flex justify-center",!this.notInteractive&&"group focus-visible:focus-outline")}" href="${s(i?this.href:void 0)}" target="${s(i?this.target:void 0)}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" role="${s(this.notInteractive||i?void 0:"button")}" aria-label="${s(!this.notInteractive&&this.label?this.label:void 0)}" aria-labelledby="${s(!this.notInteractive&&!this.label?"content":void 0)}"><div part="marker" class="${r("relative inline-flex",this.animated&&(this.variant==="main"||this.variant==="place")&&"animate-bounce-once",this.variant==="cluster"&&this.state==="hover"&&"scale-110",this.variant==="cluster"&&!this.notInteractive&&"transition-transform duration-fast ease-in-out hover:scale-110",{cluster:"sd-7-0-0-next-4-map-marker--cluster-color-text",main:"sd-color-fill-accent",place:"sd-7-0-0-next-4-map-marker--pin-color-text"}[this.variant])}"><div id="motion-wrapper" part="motion-wrapper" class="${r("absolute inset-0 overflow-hidden pointer-events-none",{cluster:"sd-7-0-0-next-4-map-marker--cluster--default-color-background group-hover:sd-7-0-0-next-4-map-marker--cluster--hover-color-background",main:"sd-7-0-0-next-4-map-marker--main-color-background",place:"sd-7-0-0-next-4-map-marker--pin--default-color-background"}[this.variant])}" style="mask-image:${p};-webkit-mask-image:${p}"><div class="${r("absolute inset-0 transition-transform ease-in-out duration-fast translate-y-full group-hover:translate-y-0 group-active:translate-y-0",["hover","active"].includes(this.state)&&"!translate-y-0")}"><div class="${r("min-w-full min-h-full skew-y-[-11deg]",{cluster:"",main:this.state==="active"?"bg-accent-700":this.state==="hover"?"bg-accent-550":"group-hover:bg-accent-550 group-active:bg-accent-700",place:this.state==="active"||this.state==="hover"?"sd-7-0-0-next-4-map-marker--pin--hover-color-background":"group-active:bg-primary-200"}[this.variant])}"></div></div>${this.variant==="main"?o`<div id="marker-circle" class="absolute rounded-full"></div>`:""}</div>${h} ${this.variant==="cluster"?o`<div id="cluster-border" class="${r("absolute inset-0 sd-7-0-0-next-4-map-marker--cluster--default-color-background rounded-full opacity-30 hover:sd-7-0-0-next-4-map-marker--cluster--hover-color-background",this.state==="hover"&&"sd-7-0-0-next-4-map-marker--cluster--hover-color-background")}"></div>`:""}</div><div id="content" part="content" class="${r("absolute self-center pointer-events-none",this.variant==="cluster"&&"font-bold sd-7-0-0-next-4-map-marker--cluster-color-text",this.variant==="place"&&"font-bold sd-7-0-0-next-4-map-marker--pin-color-text")}"><slot></slot></div></${c}>`}};t.styles=[...l.styles,m`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
11
|
+
:host{display:block}#motion-wrapper{mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-position:center;-webkit-mask-position:center;mask-size:contain;-webkit-mask-size:contain}:host([variant=cluster]) [part=base],svg{width:calc(var(--sd-spacing-12,3rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=base]{height:calc(var(--sd-spacing-12,3rem) * var(--map-marker-scaling,1))}:host(:not([variant=cluster])) [part=base]{height:calc(var(--sd-spacing-16,4rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=content]{font-size:calc(var(--sd-font-size-sm,.875rem) * var(--map-marker-scaling,1))}:host([variant=place]) [part=content]{margin-top:calc(var(--sd-spacing-2) * -1);font-size:calc(var(--sd-font-size-3xl,2rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=motion-wrapper]>div>div{background-color:rgba(var(--sd-map-marker--cluster--hover-color-background))}:host([variant=main]) [part=marker],:host([variant=place]) [part=marker]{--tw-drop-shadow-size:drop-shadow(var(--sd-drop-shadow));--tw-drop-shadow:drop-shadow(var(--sd-drop-shadow));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}:host([variant=main]) #marker-circle{width:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));height:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));left:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));right:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));top:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1))}#marker-circle{background-color:rgba(var(--sd-color-icon-fill-white,rgba(var(--sd-color-white))))}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}`],e([a({type:String,reflect:!0})],t.prototype,"variant",2),e([a({type:String,reflect:!0})],t.prototype,"state",2),e([a({type:Boolean,reflect:!0})],t.prototype,"animated",2),e([a({type:Boolean,reflect:!0,attribute:"not-interactive"})],t.prototype,"notInteractive",2),e([a({type:String,reflect:!0})],t.prototype,"href",2),e([a({type:String,reflect:!0})],t.prototype,"target",2),e([a({reflect:!0})],t.prototype,"label",2),t=e([v("sd-7-0-0-next-4-map-marker")],t);export{t as a};
|