@kdcloudjs/shoelace 0.0.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/chunks/{chunk.ZITR7CNV.js → chunk.23LEVUAD.js} +1 -1
- package/cdn/chunks/{chunk.IUHTUI3I.js → chunk.2DQM7KR3.js} +1 -1
- package/cdn/chunks/{chunk.7ADEH4EC.js → chunk.2LZSKJ2T.js} +1 -1
- package/cdn/chunks/{chunk.2PRYPMT2.js → chunk.2MEQUOQT.js} +2 -2
- package/cdn/chunks/{chunk.T2U3HEUX.js → chunk.2R5GUAS4.js} +2 -2
- package/cdn/chunks/{chunk.L5ZTEK4M.js → chunk.2ZRKTSMX.js} +1 -1
- package/cdn/chunks/{chunk.FZX25RCS.js → chunk.3AHSZRMI.js} +1 -1
- package/{dist/chunks/chunk.DENOFRR7.js → cdn/chunks/chunk.3DQ7BNHZ.js} +1 -1
- package/cdn/chunks/{chunk.ZJXBRQW5.js → chunk.3GBNNACM.js} +1 -1
- package/cdn/chunks/chunk.3IN3JGBF.js +21 -0
- package/{dist/chunks/chunk.HWOUAQ7Z.js → cdn/chunks/chunk.3IRFJ4MS.js} +1 -1
- package/cdn/chunks/{chunk.K33XKJNC.js → chunk.3QRURD7I.js} +7 -7
- package/cdn/chunks/{chunk.PVG2VMLA.js → chunk.3WDJGGPP.js} +8 -8
- package/cdn/chunks/{chunk.D62MVCEC.js → chunk.4BOWZB3Y.js} +7 -7
- package/cdn/chunks/{chunk.DMDB3P76.js → chunk.4MLXM2Q2.js} +1 -1
- package/cdn/chunks/{chunk.TYW6KXQW.js → chunk.57GYZVBY.js} +1 -1
- package/cdn/chunks/{chunk.VV2HOWBQ.js → chunk.5BFPIXSL.js} +1 -1
- package/cdn/chunks/{chunk.LS5W66UZ.js → chunk.5GSXGIFL.js} +1 -1
- package/cdn/chunks/{chunk.EL3BR24R.js → chunk.5SUMIOIU.js} +1 -1
- package/cdn/chunks/{chunk.R7VBPZW6.js → chunk.5SZDGBQF.js} +16 -3
- package/cdn/chunks/{chunk.MN2P6Q7I.js → chunk.622XCQBN.js} +1 -1
- package/cdn/chunks/{chunk.MHUQSVOW.js → chunk.63IG2JBO.js} +51 -15
- package/cdn/chunks/{chunk.5ZXTOQGQ.js → chunk.64HCJCNI.js} +2 -2
- package/cdn/chunks/{chunk.PYZ4ASAK.js → chunk.6W7LTM2T.js} +1 -1
- package/cdn/chunks/{chunk.5NZJJWRA.js → chunk.72WPILAC.js} +10 -10
- package/cdn/chunks/chunk.7BCM4VPC.js +1124 -0
- package/{dist/chunks/chunk.BPCGZGRG.js → cdn/chunks/chunk.7FB74Q7I.js} +1 -1
- package/cdn/chunks/{chunk.TATUD2RH.js → chunk.7JBGCRPU.js} +1 -1
- package/cdn/chunks/{chunk.QKHXZS7O.js → chunk.7X3B4SI4.js} +1 -1
- package/cdn/chunks/{chunk.GPMG4XGS.js → chunk.A4ELXI5A.js} +1 -1
- package/cdn/chunks/{chunk.6XOLM2C4.js → chunk.ADHO6CPR.js} +15 -15
- package/cdn/chunks/{chunk.T376MFZO.js → chunk.ADJSIZFS.js} +24 -16
- package/cdn/chunks/{chunk.WA5QSEH6.js → chunk.AKG4JRVD.js} +1 -1
- package/cdn/chunks/{chunk.BUOFV2M2.js → chunk.AQPJESFM.js} +1 -1
- package/cdn/chunks/{chunk.MXISIX4T.js → chunk.ARG2AQCR.js} +1 -1
- package/cdn/chunks/{chunk.3XJOP47C.js → chunk.AVEHZ7BN.js} +1 -1
- package/cdn/chunks/{chunk.675CXAHL.js → chunk.B6UMYXUN.js} +4 -4
- package/cdn/chunks/chunk.BGNYIYEZ.js +45 -0
- package/cdn/chunks/{chunk.VWAXADQN.js → chunk.BIPJBNSR.js} +1 -1
- package/cdn/chunks/{chunk.2H34YVVG.js → chunk.BOHUHHB2.js} +1 -1
- package/cdn/chunks/{chunk.HGOSNLLN.js → chunk.BQM4EFTD.js} +2 -2
- package/cdn/chunks/{chunk.NVG7Q53M.js → chunk.BQXFJOTS.js} +1 -1
- package/cdn/chunks/{chunk.VWK5SRK2.js → chunk.BTJSQVOZ.js} +1 -1
- package/cdn/chunks/{chunk.4CTKHZXR.js → chunk.BUARFHOC.js} +1 -1
- package/cdn/chunks/{chunk.FMLP342R.js → chunk.BWGEM2LO.js} +1 -1
- package/cdn/chunks/{chunk.NMUDSHXL.js → chunk.BYNKR6YM.js} +1 -1
- package/cdn/chunks/{chunk.FDBKTS3R.js → chunk.BYXUKV4X.js} +5 -5
- package/cdn/chunks/{chunk.NHBVUEYS.js → chunk.C2DY4TKR.js} +3 -3
- package/cdn/chunks/{chunk.25FH5IKP.js → chunk.C764HI4L.js} +1 -1
- package/cdn/chunks/{chunk.SG4KT4FW.js → chunk.CAGGHZHZ.js} +1 -1
- package/cdn/chunks/{chunk.4V6L5AVW.js → chunk.CEKMP3GY.js} +1 -1
- package/{dist/chunks/chunk.CONLCVF2.js → cdn/chunks/chunk.CJIPDSAV.js} +1 -1
- package/{dist/chunks/chunk.AAFCKJYK.js → cdn/chunks/chunk.CLM7SJO5.js} +1 -1
- package/cdn/chunks/{chunk.UBZXX5ON.js → chunk.CMVBJIRG.js} +1 -1
- package/cdn/chunks/chunk.DEAKCJ66.js +16 -0
- package/cdn/chunks/{chunk.EFXBW3X3.js → chunk.DNJTQ2Y7.js} +1 -1
- package/cdn/chunks/{chunk.ZFPAVMFB.js → chunk.DPQTAZXV.js} +1 -1
- package/cdn/chunks/{chunk.LFRVF4KW.js → chunk.DR5M3QI5.js} +1 -1
- package/cdn/chunks/{chunk.Y27YP6OJ.js → chunk.DTUQJHP5.js} +1 -1
- package/cdn/chunks/{chunk.YGTFCDK7.js → chunk.DYIBSNEG.js} +33 -19
- package/cdn/chunks/{chunk.CMR6APKP.js → chunk.E4IO3LPR.js} +1 -1
- package/cdn/chunks/{chunk.XYBK4234.js → chunk.EFV3N7NN.js} +1 -1
- package/cdn/chunks/{chunk.NRTTZ4YU.js → chunk.EKVQOYN5.js} +1 -1
- package/cdn/chunks/{chunk.CNYZO7IJ.js → chunk.EN6IZDYW.js} +1 -1
- package/{dist/chunks/chunk.QZJWCFAA.js → cdn/chunks/chunk.EOLDHINP.js} +1 -1
- package/{dist/chunks/chunk.N3QVR4J3.js → cdn/chunks/chunk.EPCUFOKP.js} +1 -1
- package/{dist/chunks/chunk.3NAUWTQH.js → cdn/chunks/chunk.ET5BZX7S.js} +1 -1
- package/cdn/chunks/{chunk.MQRBZVTB.js → chunk.EUIGQH5J.js} +1 -1
- package/cdn/chunks/chunk.FAKWCEXF.js +186 -0
- package/cdn/chunks/{chunk.WVXTFVIK.js → chunk.FANLTDNV.js} +3 -3
- package/cdn/chunks/{chunk.MRNFDFXK.js → chunk.FRQZBLKJ.js} +4 -4
- package/cdn/chunks/{chunk.HJJVMHSB.js → chunk.FSUIUKO5.js} +1 -1
- package/cdn/chunks/{chunk.5MKGDGBK.js → chunk.FTIUIMQE.js} +1 -1
- package/{dist/chunks/chunk.LC5S6W4G.js → cdn/chunks/chunk.FWQLDDE5.js} +1 -1
- package/cdn/chunks/{chunk.IMMWORRR.js → chunk.FYQMGS2X.js} +2 -2
- package/cdn/chunks/{chunk.D27QRERK.js → chunk.GAFRSKH4.js} +18 -2
- package/cdn/chunks/{chunk.OZELPYL4.js → chunk.GCPKKFNW.js} +1 -1
- package/cdn/chunks/{chunk.5DQO6W5Q.js → chunk.GKTPCOT6.js} +1 -1
- package/cdn/chunks/{chunk.7YXZGJWW.js → chunk.GMNTE57E.js} +2 -2
- package/cdn/chunks/{chunk.CLDFC2YO.js → chunk.GMZTJAZL.js} +1 -1
- package/cdn/chunks/{chunk.OKHJ4DHA.js → chunk.GSV23YAG.js} +1 -1
- package/{dist/chunks/chunk.4HTO3EML.js → cdn/chunks/chunk.H45CY7YS.js} +1 -1
- package/cdn/chunks/{chunk.D7ICQTLU.js → chunk.H7PLVQKX.js} +7 -7
- package/cdn/chunks/{chunk.R4INK3G2.js → chunk.H7XCAV4K.js} +1 -1
- package/cdn/chunks/{chunk.OSGITGO6.js → chunk.HD2E6OHH.js} +1 -1
- package/cdn/chunks/{chunk.A4U2O3YW.js → chunk.HJNGGHHJ.js} +1 -1
- package/{dist/chunks/chunk.AQM6WZYQ.js → cdn/chunks/chunk.HSDLV7ZD.js} +1 -1
- package/cdn/chunks/{chunk.RVOASAVC.js → chunk.HYLVW7U7.js} +1 -1
- package/cdn/chunks/{chunk.TF7J3NQ5.js → chunk.I7NPEYYT.js} +2 -2
- package/{dist/chunks/chunk.JWQMGR3J.js → cdn/chunks/chunk.IAD2YVQN.js} +1 -1
- package/cdn/chunks/{chunk.AXQSCAFF.js → chunk.IDZPASV6.js} +1 -1
- package/cdn/chunks/{chunk.JVYTH6HR.js → chunk.IEBTQFLH.js} +1 -1
- package/cdn/chunks/{chunk.ALKQ7SGA.js → chunk.IHVTSIVV.js} +1 -1
- package/cdn/chunks/{chunk.D65Q3ZVE.js → chunk.IJVUBV4V.js} +2 -2
- package/cdn/chunks/{chunk.YNYD466S.js → chunk.ILT347FT.js} +1 -1
- package/cdn/chunks/{chunk.OZGGXOW3.js → chunk.IPM7IFNY.js} +1 -1
- package/cdn/chunks/{chunk.G6O4ZYY5.js → chunk.IS33QEZD.js} +1 -1
- package/cdn/chunks/{chunk.YUREHZYL.js → chunk.IXQLNPRF.js} +1 -1
- package/cdn/chunks/{chunk.Q6GQFZCR.js → chunk.IY627F2O.js} +1 -1
- package/cdn/chunks/chunk.J2JUWNCI.js +115 -0
- package/cdn/chunks/{chunk.J6BELCB6.js → chunk.J2T3HKZH.js} +1 -1
- package/cdn/chunks/{chunk.RPVEQ57S.js → chunk.JHJ32V5M.js} +1 -1
- package/cdn/chunks/{chunk.NIQ7HDEA.js → chunk.JKACP3UT.js} +1 -1
- package/cdn/chunks/{chunk.JQRWFVYV.js → chunk.JR6MLRGD.js} +8 -8
- package/{dist/chunks/chunk.OBRCJZQQ.js → cdn/chunks/chunk.JU77O3AK.js} +1 -1
- package/cdn/chunks/{chunk.IQVZD4PM.js → chunk.JVOPRJ6L.js} +1 -1
- package/cdn/chunks/{chunk.CPBVMJCD.js → chunk.JX756U2P.js} +1 -1
- package/cdn/chunks/{chunk.GWNGGKTG.js → chunk.JYYAJVMY.js} +1 -1
- package/cdn/chunks/{chunk.CFEPKSUO.js → chunk.K2DR372Y.js} +1 -1
- package/cdn/chunks/{chunk.AN3572OP.js → chunk.K2DTALJC.js} +88 -237
- package/cdn/chunks/{chunk.HZRKK7RA.js → chunk.KPR25VNY.js} +1 -1
- package/cdn/chunks/{chunk.UBFVD4Q4.js → chunk.KWKKCBZI.js} +1 -1
- package/cdn/chunks/{chunk.PPKHSLOD.js → chunk.L344MXBL.js} +1 -1
- package/cdn/chunks/{chunk.URYTAJ7A.js → chunk.LALNQTWY.js} +1 -1
- package/{dist/chunks/chunk.7NRJ256R.js → cdn/chunks/chunk.LBBMCAAK.js} +1 -1
- package/cdn/chunks/chunk.LDNVPVIS.js +263 -0
- package/cdn/chunks/{chunk.CP626KNE.js → chunk.LFJBLFAF.js} +1 -1
- package/{dist/chunks/chunk.DT5UBEUD.js → cdn/chunks/chunk.LNXLFBJF.js} +1 -1
- package/cdn/chunks/{chunk.OLCZRXDP.js → chunk.LNZZQLSD.js} +1 -1
- package/cdn/chunks/{chunk.SJO2I3DG.js → chunk.LVLRI4FU.js} +2 -2
- package/cdn/chunks/{chunk.XSXSISLX.js → chunk.M25JFF4S.js} +1 -1
- package/cdn/chunks/{chunk.4NESY5EM.js → chunk.MENDJ3ES.js} +1 -1
- package/cdn/chunks/{chunk.SWZRPLND.js → chunk.MMN6BEAM.js} +1 -1
- package/cdn/chunks/{chunk.RP6GKPEY.js → chunk.MXYQ2YHB.js} +1 -1
- package/{dist/chunks/chunk.JPEX6BN5.js → cdn/chunks/chunk.N46Z5XJ2.js} +1 -1
- package/cdn/chunks/{chunk.SQWWPAXJ.js → chunk.NFYJUZ72.js} +1 -1
- package/{dist/chunks/chunk.TTP74D6J.js → cdn/chunks/chunk.NOOFLZZ3.js} +1 -1
- package/{dist/chunks/chunk.4QTJTBYM.js → cdn/chunks/chunk.NRRGBRFQ.js} +1 -1
- package/cdn/chunks/{chunk.AN4PI32A.js → chunk.NTQAYOOB.js} +1 -1
- package/cdn/chunks/{chunk.LEYZYTEK.js → chunk.O6QLVREN.js} +1 -1
- package/cdn/chunks/{chunk.AGHSWC4S.js → chunk.OCNWVR4J.js} +3 -3
- package/{dist/chunks/chunk.EAB246RW.js → cdn/chunks/chunk.OUYYS2WY.js} +1 -1
- package/cdn/chunks/{chunk.2XL5TOFG.js → chunk.PG3KI7CV.js} +3 -3
- package/cdn/chunks/{chunk.CF5AOBIF.js → chunk.PYGUMT6D.js} +1 -1
- package/cdn/chunks/{chunk.QXNU3GXC.js → chunk.Q6EUYTT5.js} +1 -1
- package/cdn/chunks/{chunk.FHP4H3E2.js → chunk.QRCSQLDS.js} +1 -1
- package/{dist/chunks/chunk.HEFQXGDF.js → cdn/chunks/chunk.QVZCPPRX.js} +1 -1
- package/cdn/chunks/{chunk.PEK7MQKH.js → chunk.R5VGZ4LD.js} +2 -2
- package/cdn/chunks/{chunk.4RCMHQZW.js → chunk.R6B7NPKA.js} +1 -1
- package/cdn/chunks/{chunk.25F7ECH2.js → chunk.RBKDUVFD.js} +1 -1
- package/cdn/chunks/{chunk.OFBKGBAA.js → chunk.RCZ3VAD5.js} +4 -4
- package/cdn/chunks/{chunk.65WO4GAX.js → chunk.REFJADYI.js} +1 -1
- package/cdn/chunks/{chunk.TBIIFBFU.js → chunk.RLDNVYO6.js} +2 -2
- package/cdn/chunks/{chunk.6WAZRG2E.js → chunk.RNXADPVA.js} +1 -1
- package/cdn/chunks/{chunk.UD3GWN6G.js → chunk.S4WAIX7T.js} +1 -1
- package/cdn/chunks/{chunk.VX5SAOBY.js → chunk.S7JPGFFL.js} +1 -1
- package/{dist/chunks/chunk.EDJO5LM2.js → cdn/chunks/chunk.SN2P3DPL.js} +1 -1
- package/cdn/chunks/{chunk.GQEMWNGJ.js → chunk.SNJ5TWRF.js} +1 -1
- package/cdn/chunks/{chunk.VYDD6ZT5.js → chunk.SPNXZ2JR.js} +1 -1
- package/cdn/chunks/{chunk.JJNMHN3H.js → chunk.SUQHAKBQ.js} +1 -1
- package/cdn/chunks/{chunk.GUZG6QKY.js → chunk.T2F5SLB3.js} +1 -1
- package/{dist/chunks/chunk.AMEV6ANV.js → cdn/chunks/chunk.T6FDWIJB.js} +1 -1
- package/cdn/chunks/{chunk.GMEJKUXT.js → chunk.T6QOKWOR.js} +1 -1
- package/cdn/chunks/{chunk.CRWMRZSZ.js → chunk.TJTSA5R4.js} +1 -1
- package/cdn/chunks/{chunk.XRTOMNDJ.js → chunk.TLEAVCNN.js} +1 -1
- package/cdn/chunks/{chunk.2RC6ZQ7R.js → chunk.TNBXYFZT.js} +5 -5
- package/cdn/chunks/{chunk.CGIB2CCO.js → chunk.TSTTKLCU.js} +1 -1
- package/cdn/chunks/{chunk.SLQ3GN6U.js → chunk.TWATOU7Q.js} +1 -1
- package/cdn/chunks/{chunk.HYLK53IJ.js → chunk.U6LIZH2N.js} +1 -1
- package/cdn/chunks/{chunk.S3TACGLM.js → chunk.UG75OYIV.js} +1 -1
- package/cdn/chunks/{chunk.IWGACFFM.js → chunk.UGXEFRCT.js} +1 -1
- package/{dist/chunks/chunk.3FQAOA6Q.js → cdn/chunks/chunk.VCIOYUM7.js} +1 -1
- package/{dist/chunks/chunk.Z4XFW4KE.js → cdn/chunks/chunk.VEIVN3WO.js} +1 -1
- package/{dist/chunks/chunk.HMJG4GPR.js → cdn/chunks/chunk.VG7IHWCP.js} +1 -1
- package/cdn/chunks/{chunk.CDPMKUSQ.js → chunk.VJH5TNQS.js} +1 -1
- package/{dist/chunks/chunk.7GKEYXYF.js → cdn/chunks/chunk.VKHUSJ7O.js} +1 -1
- package/cdn/chunks/{chunk.ZQQESBNQ.js → chunk.VNXQLD5E.js} +1 -1
- package/{dist/chunks/chunk.WZQW2RF3.js → cdn/chunks/chunk.VT5AKGJP.js} +1 -1
- package/cdn/chunks/{chunk.7A6ORNMJ.js → chunk.VV24KCRD.js} +6 -6
- package/{dist/chunks/chunk.7HWZPVG2.js → cdn/chunks/chunk.VVX2RMFN.js} +1 -1
- package/cdn/chunks/{chunk.OTA4DIYK.js → chunk.W5YWNJ3F.js} +1 -1
- package/cdn/chunks/{chunk.T6NX4GBA.js → chunk.WDULR4A5.js} +5 -4
- package/cdn/chunks/{chunk.6AAUE2PN.js → chunk.WEXY47CC.js} +1 -1
- package/cdn/chunks/{chunk.K6WUKY2V.js → chunk.WMKP2YBP.js} +4 -4
- package/cdn/chunks/{chunk.BSQ33F6B.js → chunk.WOFTPMUN.js} +4 -4
- package/cdn/chunks/{chunk.FN3O6Q3N.js → chunk.WPAIOHRM.js} +1 -1
- package/cdn/chunks/{chunk.5JS4OCOH.js → chunk.X2PCFGVF.js} +2 -2
- package/cdn/chunks/{chunk.M4FZWFCH.js → chunk.XEP3MV3Z.js} +137 -59
- package/cdn/chunks/{chunk.BN5VAWEF.js → chunk.XJMOUI5V.js} +1 -1
- package/{dist/chunks/chunk.ERVVHGW6.js → cdn/chunks/chunk.XK4LBXDT.js} +1 -1
- package/{dist/chunks/chunk.RBIBBYEQ.js → cdn/chunks/chunk.XP2SN5TY.js} +1 -1
- package/cdn/chunks/{chunk.2P2CSRKK.js → chunk.XQZ75PG6.js} +1 -1
- package/cdn/chunks/{chunk.DUT2WVFL.js → chunk.Y5DKBB6S.js} +1 -1
- package/cdn/chunks/{chunk.LDXTSE2B.js → chunk.YBDLYSR6.js} +1 -1
- package/{dist/chunks/chunk.CWKEWJZN.js → cdn/chunks/chunk.YCOYO5Q5.js} +1 -1
- package/{dist/chunks/chunk.KLVSNEIA.js → cdn/chunks/chunk.YO2RCZB4.js} +1 -1
- package/cdn/chunks/{chunk.HCFW3KUG.js → chunk.YPCLW4PZ.js} +2 -2
- package/cdn/chunks/{chunk.YMMX7AB4.js → chunk.YQCNCHZK.js} +7 -45
- package/cdn/chunks/{chunk.HJNLDS3G.js → chunk.YSDEXDWJ.js} +1 -1
- package/{dist/chunks/chunk.X6LJJSVD.js → cdn/chunks/chunk.YSZADQYN.js} +1 -1
- package/cdn/chunks/{chunk.G63JV5S4.js → chunk.YUBWOTKQ.js} +2 -2
- package/cdn/chunks/{chunk.II3JSTXQ.js → chunk.Z67N6G2D.js} +1 -1
- package/cdn/chunks/{chunk.GAVMNLOD.js → chunk.ZBHMCLJF.js} +1 -1
- package/cdn/chunks/chunk.ZHRDFBUU.js +390 -0
- package/cdn/chunks/{chunk.5AJWHZYG.js → chunk.ZHXVLA3K.js} +1 -1
- package/cdn/chunks/{chunk.UI6GAESI.js → chunk.ZNVXAGZ3.js} +49 -19
- package/cdn/components/alert/alert.component.js +7 -7
- package/cdn/components/alert/alert.js +8 -8
- package/cdn/components/alert/alert.styles.js +1 -1
- package/cdn/components/animated-image/animated-image.component.js +3 -3
- package/cdn/components/animated-image/animated-image.js +4 -4
- package/cdn/components/animation/animation.component.js +2 -2
- package/cdn/components/animation/animation.js +3 -3
- package/cdn/components/avatar/avatar.component.js +3 -3
- package/cdn/components/avatar/avatar.js +4 -4
- package/cdn/components/badge/badge.component.js +2 -2
- package/cdn/components/badge/badge.js +3 -3
- package/cdn/components/breadcrumb/breadcrumb.component.js +3 -3
- package/cdn/components/breadcrumb/breadcrumb.js +4 -4
- package/cdn/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
- package/cdn/components/breadcrumb-item/breadcrumb-item.js +3 -3
- package/cdn/components/button/button.component.js +7 -7
- package/cdn/components/button/button.js +8 -8
- package/cdn/components/button/button.styles.js +1 -1
- package/cdn/components/button-group/button-group.component.js +2 -2
- package/cdn/components/button-group/button-group.js +3 -3
- package/cdn/components/calendar/calendar.component.js +20 -2
- package/cdn/components/calendar/calendar.js +20 -2
- package/cdn/components/card/card.component.js +2 -2
- package/cdn/components/card/card.js +3 -3
- package/cdn/components/carousel/carousel.component.js +3 -3
- package/cdn/components/carousel/carousel.js +4 -4
- package/cdn/components/carousel-item/carousel-item.component.js +2 -2
- package/cdn/components/carousel-item/carousel-item.js +3 -3
- package/cdn/components/checkbox/checkbox.component.js +3 -3
- package/cdn/components/checkbox/checkbox.js +4 -4
- package/cdn/components/color-picker/color-picker.component.js +18 -19
- package/cdn/components/color-picker/color-picker.js +19 -20
- package/cdn/components/copy-button/copy-button.component.js +6 -6
- package/cdn/components/copy-button/copy-button.js +7 -7
- package/cdn/components/datepicker/datepicker.component.js +38 -0
- package/cdn/components/datepicker/datepicker.js +42 -0
- package/cdn/components/details/details.component.js +4 -4
- package/cdn/components/details/details.js +5 -5
- package/cdn/components/details/details.styles.js +1 -1
- package/cdn/components/dialog/dialog.component.js +7 -7
- package/cdn/components/dialog/dialog.js +8 -8
- package/cdn/components/divider/divider.component.js +2 -2
- package/cdn/components/divider/divider.js +3 -3
- package/cdn/components/drawer/drawer.component.js +7 -7
- package/cdn/components/drawer/drawer.js +8 -8
- package/cdn/components/dropdown/dropdown.component.js +5 -5
- package/cdn/components/dropdown/dropdown.js +6 -6
- package/cdn/components/format-bytes/format-bytes.component.js +2 -2
- package/cdn/components/format-bytes/format-bytes.js +3 -3
- package/cdn/components/format-date/format-date.component.js +2 -2
- package/cdn/components/format-date/format-date.js +3 -3
- package/cdn/components/format-number/format-number.component.js +2 -2
- package/cdn/components/format-number/format-number.js +3 -3
- package/cdn/components/icon/icon.component.js +2 -2
- package/cdn/components/icon/icon.js +3 -3
- package/cdn/components/icon-button/icon-button.component.js +3 -3
- package/cdn/components/icon-button/icon-button.js +4 -4
- package/cdn/components/image-comparer/image-comparer.component.js +3 -3
- package/cdn/components/image-comparer/image-comparer.js +4 -4
- package/cdn/components/include/include.component.js +3 -3
- package/cdn/components/include/include.js +4 -4
- package/cdn/components/input/input.component.js +6 -9
- package/cdn/components/input/input.js +7 -10
- package/cdn/components/input/input.styles.js +1 -1
- package/cdn/components/menu/menu.component.js +2 -2
- package/cdn/components/menu/menu.js +3 -3
- package/cdn/components/menu-item/menu-item.component.js +7 -7
- package/cdn/components/menu-item/menu-item.js +8 -8
- package/cdn/components/menu-label/menu-label.component.js +2 -2
- package/cdn/components/menu-label/menu-label.js +3 -3
- package/cdn/components/mutation-observer/mutation-observer.component.js +2 -2
- package/cdn/components/mutation-observer/mutation-observer.js +3 -3
- package/cdn/components/option/option.component.js +3 -3
- package/cdn/components/option/option.js +4 -4
- package/cdn/components/popup/popup.component.js +2 -2
- package/cdn/components/popup/popup.js +3 -3
- package/cdn/components/progress-bar/progress-bar.component.js +3 -3
- package/cdn/components/progress-bar/progress-bar.js +4 -4
- package/cdn/components/progress-ring/progress-ring.component.js +2 -2
- package/cdn/components/progress-ring/progress-ring.js +3 -3
- package/cdn/components/qr-code/qr-code.component.js +2 -2
- package/cdn/components/qr-code/qr-code.js +3 -3
- package/cdn/components/radio/radio.component.js +3 -3
- package/cdn/components/radio/radio.js +4 -4
- package/cdn/components/radio-button/radio-button.component.js +4 -4
- package/cdn/components/radio-button/radio-button.js +5 -5
- package/cdn/components/radio-button/radio-button.styles.js +2 -2
- package/cdn/components/radio-group/radio-group.component.js +4 -4
- package/cdn/components/radio-group/radio-group.js +5 -5
- package/cdn/components/range/range.component.js +4 -4
- package/cdn/components/range/range.js +5 -5
- package/cdn/components/rating/rating.component.js +4 -4
- package/cdn/components/rating/rating.js +5 -5
- package/cdn/components/relative-time/relative-time.component.js +2 -2
- package/cdn/components/relative-time/relative-time.js +3 -3
- package/cdn/components/resize-observer/resize-observer.component.js +2 -2
- package/cdn/components/resize-observer/resize-observer.js +3 -3
- package/cdn/components/select/select.component.js +8 -8
- package/cdn/components/select/select.js +9 -9
- package/cdn/components/skeleton/skeleton.component.js +2 -2
- package/cdn/components/skeleton/skeleton.js +3 -3
- package/cdn/components/spinner/spinner.component.js +2 -2
- package/cdn/components/spinner/spinner.js +3 -3
- package/cdn/components/split-panel/split-panel.component.js +3 -3
- package/cdn/components/split-panel/split-panel.js +4 -4
- package/cdn/components/switch/switch.component.js +3 -3
- package/cdn/components/switch/switch.js +4 -4
- package/cdn/components/switch/switch.styles.js +1 -1
- package/cdn/components/tab/tab.component.js +5 -5
- package/cdn/components/tab/tab.js +6 -6
- package/cdn/components/tab-group/tab-group.component.js +6 -6
- package/cdn/components/tab-group/tab-group.js +7 -7
- package/cdn/components/tab-panel/tab-panel.component.js +2 -2
- package/cdn/components/tab-panel/tab-panel.js +3 -3
- package/cdn/components/table/body-table.js +5 -4
- package/cdn/components/table/features/row-selection.js +11 -0
- package/cdn/components/table/head-table.js +5 -4
- package/cdn/components/table/spinner-container.js +2 -2
- package/cdn/components/table/table.component.js +26 -7
- package/cdn/components/table/table.context.js +66 -3
- package/cdn/components/table/table.js +28 -9
- package/cdn/components/table/utils.js +7 -0
- package/cdn/components/tag/tag.component.js +5 -5
- package/cdn/components/tag/tag.js +6 -6
- package/cdn/components/textarea/textarea.component.js +2 -2
- package/cdn/components/textarea/textarea.js +3 -3
- package/cdn/components/tooltip/tooltip.component.js +4 -4
- package/cdn/components/tooltip/tooltip.js +5 -5
- package/cdn/components/tooltip/tooltip.styles.js +1 -1
- package/cdn/components/tree/tree.component.js +10 -10
- package/cdn/components/tree/tree.js +11 -11
- package/cdn/components/tree-item/tree-item.component.js +8 -8
- package/cdn/components/tree-item/tree-item.js +9 -9
- package/cdn/components/tree-item/tree-item.styles.js +1 -1
- package/cdn/components/visually-hidden/visually-hidden.component.js +2 -2
- package/cdn/components/visually-hidden/visually-hidden.js +3 -3
- package/cdn/custom-elements.json +2824 -2443
- package/cdn/react/alert/index.js +8 -8
- package/cdn/react/animated-image/index.js +4 -4
- package/cdn/react/animation/index.js +3 -3
- package/cdn/react/avatar/index.js +4 -4
- package/cdn/react/badge/index.js +3 -3
- package/cdn/react/breadcrumb/index.js +4 -4
- package/cdn/react/breadcrumb-item/index.js +3 -3
- package/cdn/react/button/index.js +8 -8
- package/cdn/react/button-group/index.js +3 -3
- package/cdn/react/card/index.js +3 -3
- package/cdn/react/carousel/index.js +4 -4
- package/cdn/react/carousel-item/index.js +3 -3
- package/cdn/react/checkbox/index.js +4 -4
- package/cdn/react/color-picker/index.js +19 -20
- package/cdn/react/copy-button/index.js +7 -7
- package/cdn/react/datepicker/index.js +39 -0
- package/cdn/react/details/index.js +5 -5
- package/cdn/react/dialog/index.js +8 -8
- package/cdn/react/divider/index.js +3 -3
- package/cdn/react/drawer/index.js +8 -8
- package/cdn/react/dropdown/index.js +6 -6
- package/cdn/react/format-bytes/index.js +3 -3
- package/cdn/react/format-date/index.js +3 -3
- package/cdn/react/format-number/index.js +3 -3
- package/cdn/react/icon/index.js +3 -3
- package/cdn/react/icon-button/index.js +4 -4
- package/cdn/react/image-comparer/index.js +4 -4
- package/cdn/react/include/index.js +4 -4
- package/cdn/react/index.js +204 -201
- package/cdn/react/input/index.js +7 -10
- package/cdn/react/menu/index.js +3 -3
- package/cdn/react/menu-item/index.js +8 -8
- package/cdn/react/menu-label/index.js +3 -3
- package/cdn/react/mutation-observer/index.js +3 -3
- package/cdn/react/option/index.js +4 -4
- package/cdn/react/popup/index.js +3 -3
- package/cdn/react/progress-bar/index.js +4 -4
- package/cdn/react/progress-ring/index.js +3 -3
- package/cdn/react/qr-code/index.js +3 -3
- package/cdn/react/radio/index.js +4 -4
- package/cdn/react/radio-button/index.js +5 -5
- package/cdn/react/radio-group/index.js +5 -5
- package/cdn/react/range/index.js +5 -5
- package/cdn/react/rating/index.js +5 -5
- package/cdn/react/relative-time/index.js +3 -3
- package/cdn/react/resize-observer/index.js +3 -3
- package/cdn/react/select/index.js +9 -9
- package/cdn/react/skeleton/index.js +3 -3
- package/cdn/react/spinner/index.js +3 -3
- package/cdn/react/split-panel/index.js +4 -4
- package/cdn/react/switch/index.js +4 -4
- package/cdn/react/tab/index.js +6 -6
- package/cdn/react/tab-group/index.js +7 -7
- package/cdn/react/tab-panel/index.js +3 -3
- package/cdn/react/table/index.js +27 -8
- package/cdn/react/tag/index.js +6 -6
- package/cdn/react/textarea/index.js +3 -3
- package/cdn/react/tooltip/index.js +5 -5
- package/cdn/react/tree/index.js +11 -11
- package/cdn/react/tree-item/index.js +9 -9
- package/cdn/react/visually-hidden/index.js +3 -3
- package/cdn/shoelace.js +188 -187
- package/cdn/themes/dark.css +297 -286
- package/cdn/themes/dark.styles.js +297 -286
- package/cdn/themes/light.css +286 -252
- package/cdn/themes/light.styles.js +298 -255
- package/cdn/types/vue/index.d.ts +332 -285
- package/cdn/vscode.html-custom-data.json +282 -195
- package/cdn/web-types.json +703 -521
- package/dist/chunks/{chunk.67ZQ6PMR.js → chunk.22LMB5ZP.js} +4 -4
- package/dist/chunks/chunk.23ZAVB4X.js +388 -0
- package/dist/chunks/chunk.2DF3IW6S.js +260 -0
- package/{cdn/chunks/chunk.55KCBG5V.js → dist/chunks/chunk.2FMGJK4E.js} +1 -1
- package/dist/chunks/{chunk.CKGMCN6T.js → chunk.2MZ7OOZO.js} +1 -1
- package/dist/chunks/{chunk.I7NX25KZ.js → chunk.2RFPHSI5.js} +1 -1
- package/dist/chunks/{chunk.5NLYBKUE.js → chunk.2ZVVWOR6.js} +1 -1
- package/dist/chunks/{chunk.BN7I7IZK.js → chunk.37BW2NNU.js} +1 -1
- package/dist/chunks/{chunk.7PW2YQMR.js → chunk.3AUHAYQF.js} +1 -1
- package/{cdn/chunks/chunk.6M4AYZZJ.js → dist/chunks/chunk.3FSCZMKR.js} +1 -1
- package/dist/chunks/{chunk.QR2YQ4WT.js → chunk.3N56WNRQ.js} +1 -1
- package/dist/chunks/{chunk.RQP7TRVQ.js → chunk.3PLRXNOC.js} +1 -1
- package/dist/chunks/{chunk.VML2NRCR.js → chunk.425FPMNI.js} +1 -1
- package/dist/chunks/{chunk.WB6T5GY5.js → chunk.44FLCGTL.js} +1 -1
- package/dist/chunks/{chunk.6YCRMVU7.js → chunk.4FMSGOJY.js} +1 -1
- package/dist/chunks/{chunk.C2S6DUQY.js → chunk.4IGL2EUS.js} +1 -1
- package/{cdn/chunks/chunk.HENBWQDZ.js → dist/chunks/chunk.4J5RMZ66.js} +1 -1
- package/dist/chunks/{chunk.5UQP3TN6.js → chunk.4NWKJATC.js} +3 -3
- package/dist/chunks/{chunk.MQ2MMGIS.js → chunk.4UW565YL.js} +1 -1
- package/dist/chunks/{chunk.2DQ7YQID.js → chunk.552GI5TU.js} +1 -1
- package/{cdn/chunks/chunk.FOYOJP44.js → dist/chunks/chunk.5MTSKPDY.js} +1 -1
- package/dist/chunks/{chunk.AYTZX3TS.js → chunk.5P75LPWV.js} +6 -6
- package/{cdn/chunks/chunk.YNAFQ3AW.js → dist/chunks/chunk.5PSER7UV.js} +1 -1
- package/dist/chunks/{chunk.PYPJRNCG.js → chunk.5SW72M24.js} +7 -7
- package/dist/chunks/{chunk.EUHRXKY7.js → chunk.5VOJ3AWX.js} +1 -1
- package/dist/chunks/{chunk.75OMDLY6.js → chunk.5XJCQVEK.js} +1 -1
- package/dist/chunks/{chunk.SVGSK7J6.js → chunk.6AGGHDKH.js} +1 -1
- package/dist/chunks/{chunk.JOKODXHH.js → chunk.6DPE65CH.js} +1 -1
- package/{cdn/chunks/chunk.GGAQ4WTE.js → dist/chunks/chunk.6DTQ2RST.js} +1 -1
- package/{cdn/chunks/chunk.4U5V4K7R.js → dist/chunks/chunk.6MPAPKHR.js} +1 -1
- package/dist/chunks/{chunk.YLDJOKCS.js → chunk.6X2IWQFG.js} +1 -1
- package/dist/chunks/{chunk.VSF3CBXU.js → chunk.6YT6UDXE.js} +2 -2
- package/dist/chunks/{chunk.FTIAG6S3.js → chunk.7EXDF63O.js} +1 -1
- package/dist/chunks/{chunk.6HMT3WB6.js → chunk.7GJXD3DO.js} +1 -1
- package/dist/chunks/{chunk.DIFL3OIO.js → chunk.7NUBXZK7.js} +1 -1
- package/dist/chunks/{chunk.Y2L5TTKA.js → chunk.ACPYFT2E.js} +1 -1
- package/dist/chunks/{chunk.5Q5U5NI3.js → chunk.ALA4QTHP.js} +1 -1
- package/dist/chunks/{chunk.6N23A6X7.js → chunk.AWG34B4U.js} +1 -1
- package/dist/chunks/{chunk.2P5EQCYK.js → chunk.BEKUM4BO.js} +1 -1
- package/{cdn/chunks/chunk.C3CC7V56.js → dist/chunks/chunk.BLOSLBZ6.js} +1 -1
- package/dist/chunks/{chunk.562QVLHR.js → chunk.BWI5ZFZ5.js} +1 -1
- package/dist/chunks/{chunk.RE456CM4.js → chunk.BZ2VS2FQ.js} +1 -1
- package/dist/chunks/{chunk.KRMK4QEF.js → chunk.BZZRVFFY.js} +1 -1
- package/dist/chunks/{chunk.5SZZZQEY.js → chunk.C2TY2O26.js} +1 -1
- package/{cdn/chunks/chunk.37MM72EB.js → dist/chunks/chunk.C4P7XNPA.js} +1 -1
- package/dist/chunks/{chunk.3OYFQ2GE.js → chunk.CAYMZ4EW.js} +1 -1
- package/{cdn/chunks/chunk.4F4ZWZUV.js → dist/chunks/chunk.CCBQATE7.js} +1 -1
- package/dist/chunks/{chunk.VF47UCR6.js → chunk.CKWA764R.js} +1 -1
- package/dist/chunks/{chunk.DY66DLXX.js → chunk.CMME3D5G.js} +1 -1
- package/{cdn/chunks/chunk.2NQBYD2X.js → dist/chunks/chunk.CSB2UAJC.js} +1 -1
- package/dist/chunks/{chunk.XKERVFKJ.js → chunk.CY435P5S.js} +1 -1
- package/dist/chunks/{chunk.IVLRZTWU.js → chunk.D2S5RSAL.js} +1 -1
- package/dist/chunks/chunk.DEAKCJ66.js +16 -0
- package/dist/chunks/{chunk.OH57EZ77.js → chunk.DFNJ6YO5.js} +1 -1
- package/dist/chunks/{chunk.3CMCXDAM.js → chunk.DFQZR62N.js} +1 -1
- package/{cdn/chunks/chunk.2V6RRPEG.js → dist/chunks/chunk.DJXNG3EF.js} +1 -1
- package/dist/chunks/{chunk.VBUXAQMQ.js → chunk.DOSUJ44B.js} +3 -3
- package/dist/chunks/{chunk.FEZOQAAA.js → chunk.DWC5QG4U.js} +1 -1
- package/{cdn/chunks/chunk.2P2VLAT3.js → dist/chunks/chunk.DWRJLFY6.js} +1 -1
- package/dist/chunks/{chunk.F5P4JGGP.js → chunk.DY7Q3C4A.js} +7 -7
- package/dist/chunks/{chunk.QOS2AJDC.js → chunk.ERF3RTMM.js} +1 -1
- package/{cdn/chunks/chunk.TN5I25VC.js → dist/chunks/chunk.EXPNO7Z4.js} +1 -1
- package/dist/chunks/{chunk.VZI2ZFJZ.js → chunk.EXR7TTO7.js} +2 -2
- package/{cdn/chunks/chunk.SJQOMFGZ.js → dist/chunks/chunk.F2MBKXHT.js} +1 -1
- package/dist/chunks/{chunk.HN32C22W.js → chunk.FBKBSND6.js} +6 -2
- package/{cdn/chunks/chunk.EGTK3ZFA.js → dist/chunks/chunk.FEWYZRCL.js} +1 -1
- package/dist/chunks/{chunk.QPBXCJGL.js → chunk.FH5BAGDM.js} +1 -1
- package/dist/chunks/{chunk.HPCLRZ2S.js → chunk.FPZJLXNX.js} +51 -15
- package/dist/chunks/{chunk.TEPNXV2U.js → chunk.FUZUDCOO.js} +1 -1
- package/dist/chunks/{chunk.CSAG57R3.js → chunk.FYVEEY2H.js} +1 -1
- package/dist/chunks/{chunk.FY37V2E7.js → chunk.G47LKPQO.js} +1 -1
- package/dist/chunks/{chunk.HJMUNVTE.js → chunk.G7EHMN5V.js} +1 -1
- package/{cdn/chunks/chunk.CJWIMHYH.js → dist/chunks/chunk.GW7OPBRP.js} +1 -1
- package/dist/chunks/{chunk.U2ET3HWZ.js → chunk.GZ3345ZF.js} +1 -1
- package/dist/chunks/{chunk.SQIDSWT5.js → chunk.H27LJJR5.js} +1 -1
- package/dist/chunks/{chunk.Q7SUWESY.js → chunk.H2HGAU4C.js} +1 -1
- package/dist/chunks/{chunk.OYOAAJZ3.js → chunk.H4OCEP76.js} +1 -1
- package/dist/chunks/{chunk.XUO6GY5S.js → chunk.HBBG247C.js} +1 -1
- package/dist/chunks/{chunk.PVQ25BF2.js → chunk.HIFL5MTW.js} +1 -1
- package/dist/chunks/{chunk.MAQXLKQ7.js → chunk.HPOVPECL.js} +137 -59
- package/dist/chunks/chunk.HRAFWQWD.js +113 -0
- package/dist/chunks/{chunk.J7PLVEQM.js → chunk.HUI4WJKN.js} +18 -2
- package/dist/chunks/{chunk.MB7KNGYL.js → chunk.HV7LH2XE.js} +1 -1
- package/dist/chunks/{chunk.LXNDNLGT.js → chunk.HZY36HHO.js} +1 -1
- package/dist/chunks/{chunk.RWS55LOH.js → chunk.I56YA2FE.js} +2 -2
- package/dist/chunks/{chunk.6UYZKYOJ.js → chunk.I5WFQYZE.js} +1 -1
- package/dist/chunks/{chunk.IMQAXOY4.js → chunk.ICQBJXN3.js} +1 -1
- package/dist/chunks/{chunk.IB5CAIOM.js → chunk.IE4TYRVL.js} +1 -1
- package/dist/chunks/{chunk.C3NG3M7R.js → chunk.IFNZ32RQ.js} +1 -1
- package/dist/chunks/{chunk.LVAFQGBI.js → chunk.IGTQGR6B.js} +1 -1
- package/dist/chunks/{chunk.ULVOY2FX.js → chunk.IJKSR74B.js} +5 -5
- package/dist/chunks/{chunk.YOY67QCJ.js → chunk.INDYAKUU.js} +1 -1
- package/dist/chunks/{chunk.AUDNO7AX.js → chunk.IO6GTQTU.js} +1 -1
- package/dist/chunks/{chunk.G4EYRYPW.js → chunk.J5VWABYY.js} +2 -2
- package/dist/chunks/{chunk.EGUAJZ2Q.js → chunk.JK5NL6H3.js} +1 -1
- package/dist/chunks/{chunk.X55OGHMU.js → chunk.JZD6EXKN.js} +1 -1
- package/dist/chunks/{chunk.RVLVEN75.js → chunk.K32TBGQR.js} +4 -4
- package/dist/chunks/{chunk.NFHCWV5S.js → chunk.K7XW37DV.js} +24 -16
- package/dist/chunks/{chunk.XPPUPUIY.js → chunk.KBYTZHEC.js} +2 -2
- package/dist/chunks/{chunk.NQARUHR5.js → chunk.KE2QIWDZ.js} +10 -10
- package/dist/chunks/{chunk.MXT3TWSF.js → chunk.KMDC56K4.js} +1 -1
- package/dist/chunks/{chunk.I5MXJCXA.js → chunk.KMYFAKWZ.js} +2 -2
- package/dist/chunks/{chunk.AM5XLQR6.js → chunk.KQLHZWQ7.js} +1 -1
- package/dist/chunks/{chunk.7CLUZVZ5.js → chunk.KQS4F4RW.js} +1 -1
- package/{cdn/chunks/chunk.FYCVV5SE.js → dist/chunks/chunk.KTFDDZEN.js} +1 -1
- package/dist/chunks/{chunk.A6VUIAK5.js → chunk.KUQYGN2L.js} +2 -2
- package/dist/chunks/{chunk.FOXUKKKX.js → chunk.KV3DKCCD.js} +1 -1
- package/dist/chunks/{chunk.IH36OBWS.js → chunk.L3HJRGSC.js} +1 -1
- package/dist/chunks/{chunk.3ADKB2M6.js → chunk.LBKZB3BB.js} +1 -1
- package/dist/chunks/chunk.LEQAHGT3.js +1123 -0
- package/{cdn/chunks/chunk.DCZIDSYJ.js → dist/chunks/chunk.LJE7KQQL.js} +1 -1
- package/dist/chunks/{chunk.VMSYUJJG.js → chunk.LNJ4HBRW.js} +1 -1
- package/dist/chunks/{chunk.ZAECEDXO.js → chunk.LQPRP3BV.js} +1 -1
- package/dist/chunks/{chunk.TLZDSPEP.js → chunk.LUZBSSAH.js} +2 -2
- package/dist/chunks/{chunk.BMTK6KWU.js → chunk.LWFN7XDP.js} +1 -1
- package/{cdn/chunks/chunk.V4MSVN7Y.js → dist/chunks/chunk.LZCI2IZ7.js} +1 -1
- package/dist/chunks/{chunk.PBWQWEVM.js → chunk.M23X7ZHU.js} +1 -1
- package/{cdn/chunks/chunk.ZHWZULUI.js → dist/chunks/chunk.M7K53O4E.js} +1 -1
- package/dist/chunks/{chunk.CIP5B3P6.js → chunk.MB2BGI3T.js} +2 -2
- package/dist/chunks/chunk.MCQ3MIFP.js +21 -0
- package/dist/chunks/{chunk.BWVSW6TI.js → chunk.MIGZY5I4.js} +16 -3
- package/dist/chunks/{chunk.FWRQ35BX.js → chunk.MT7VKMYW.js} +88 -237
- package/dist/chunks/{chunk.K7WXS3HY.js → chunk.MWB25UWL.js} +1 -1
- package/dist/chunks/{chunk.C5G25IYF.js → chunk.MXD5MH5O.js} +1 -1
- package/dist/chunks/{chunk.JFSQ56GS.js → chunk.NC5OWGIQ.js} +1 -1
- package/dist/chunks/{chunk.YFFB2NHT.js → chunk.NFUAPOOQ.js} +1 -1
- package/dist/chunks/{chunk.EAKRMFIN.js → chunk.NOWJUAPU.js} +43 -15
- package/dist/chunks/{chunk.DO6G64SD.js → chunk.O37GRY54.js} +1 -1
- package/{cdn/chunks/chunk.GMOVHEWH.js → dist/chunks/chunk.O7FCHNBV.js} +1 -1
- package/dist/chunks/{chunk.7BKT2FPA.js → chunk.OFLRRM34.js} +1 -1
- package/dist/chunks/{chunk.XC4MRFYW.js → chunk.OJECNAFS.js} +1 -1
- package/dist/chunks/{chunk.NZ6CH2B7.js → chunk.OOCI6WMY.js} +27 -15
- package/dist/chunks/{chunk.VWU42Q7Q.js → chunk.OW7F7LI7.js} +3 -3
- package/{cdn/chunks/chunk.EXQSRZN6.js → dist/chunks/chunk.OX23FNIL.js} +1 -1
- package/{cdn/chunks/chunk.LDLAXEWG.js → dist/chunks/chunk.PHKH7OCN.js} +1 -1
- package/dist/chunks/{chunk.7HVRGFRV.js → chunk.PIMYNUWJ.js} +1 -1
- package/dist/chunks/{chunk.YCSFZDGI.js → chunk.PN7WYPLJ.js} +13 -13
- package/dist/chunks/{chunk.GLHWQGBU.js → chunk.PVSB7573.js} +1 -1
- package/dist/chunks/{chunk.CYWSTMF7.js → chunk.PYJTGWJI.js} +1 -1
- package/dist/chunks/{chunk.SAHEF66Y.js → chunk.PYPURIG4.js} +2 -2
- package/dist/chunks/{chunk.HA4NNNEB.js → chunk.Q2JWMPGU.js} +1 -1
- package/dist/chunks/{chunk.L2ZJEQ5W.js → chunk.QMFGY2QT.js} +1 -1
- package/dist/chunks/{chunk.4QORYWC7.js → chunk.QNQR32EM.js} +1 -1
- package/dist/chunks/{chunk.AJWLSTGS.js → chunk.QOHGG35L.js} +1 -1
- package/dist/chunks/{chunk.QIEMAGNI.js → chunk.QUMJEIU5.js} +1 -1
- package/dist/chunks/{chunk.3T5GL6TK.js → chunk.QXJEFE7H.js} +1 -1
- package/dist/chunks/{chunk.2QRAV5FA.js → chunk.ROFEO45L.js} +1 -1
- package/dist/chunks/{chunk.LAJ7CWJL.js → chunk.RPKIOXBP.js} +1 -1
- package/dist/chunks/{chunk.AFVKCXVD.js → chunk.RTBKCEHA.js} +1 -1
- package/dist/chunks/{chunk.LNULGODS.js → chunk.RXKXJ2SA.js} +8 -8
- package/{cdn/chunks/chunk.3OBY4PD5.js → dist/chunks/chunk.S57JXMIN.js} +1 -1
- package/dist/chunks/{chunk.D3KZIOYI.js → chunk.S6WWKWOZ.js} +1 -1
- package/dist/chunks/{chunk.KDA5NOB4.js → chunk.SLQ3TLSD.js} +1 -1
- package/dist/chunks/{chunk.3IXMWFFZ.js → chunk.SMV2BLGG.js} +1 -1
- package/dist/chunks/{chunk.CKI5JNFU.js → chunk.SO7CGB7F.js} +1 -1
- package/dist/chunks/{chunk.OTVPTYU6.js → chunk.SSIK4ZGV.js} +8 -8
- package/dist/chunks/{chunk.CLRGVPKR.js → chunk.T45WUXF7.js} +1 -1
- package/dist/chunks/{chunk.QH353KMG.js → chunk.TDYDKTQ6.js} +1 -1
- package/{cdn/chunks/chunk.WLHNZ2FN.js → dist/chunks/chunk.TEEYQFIV.js} +1 -1
- package/dist/chunks/{chunk.O6YP6GRM.js → chunk.TKM2LWRJ.js} +1 -1
- package/dist/chunks/{chunk.23QTCXNR.js → chunk.TNMOEHS2.js} +1 -1
- package/dist/chunks/{chunk.S7XMGNRC.js → chunk.UPHI7XHQ.js} +2 -2
- package/dist/chunks/{chunk.2P7ZU66U.js → chunk.URUWFFVY.js} +4 -4
- package/{cdn/chunks/chunk.RHJ27K2E.js → dist/chunks/chunk.V5S6DIWQ.js} +1 -1
- package/dist/chunks/{chunk.RG5YP4E7.js → chunk.VKZADIVB.js} +1 -1
- package/{cdn/chunks/chunk.6FQBM2NV.js → dist/chunks/chunk.W3F2ZIUM.js} +1 -1
- package/dist/chunks/{chunk.ESO2TANZ.js → chunk.W45PEBK2.js} +1 -1
- package/dist/chunks/{chunk.BYP2W3VJ.js → chunk.W65XZQUC.js} +1 -1
- package/{cdn/chunks/chunk.QGC7V67C.js → dist/chunks/chunk.WHRP6GOV.js} +1 -1
- package/{cdn/chunks/chunk.2R6MZESY.js → dist/chunks/chunk.WIZKJV2W.js} +1 -1
- package/dist/chunks/{chunk.LWRNOAGN.js → chunk.WS5RHS4G.js} +1 -1
- package/dist/chunks/{chunk.FW7UWQXB.js → chunk.XF4NXZUN.js} +5 -4
- package/dist/chunks/{chunk.FWDGIR3U.js → chunk.XJMVHGGE.js} +1 -1
- package/{cdn/chunks/chunk.2OXIMJLU.js → dist/chunks/chunk.XLKWO55H.js} +1 -1
- package/dist/chunks/{chunk.M4FM4A6G.js → chunk.XMAMNYGV.js} +2 -2
- package/dist/chunks/{chunk.YSTDXP43.js → chunk.XPU5YU3S.js} +1 -1
- package/dist/chunks/{chunk.GICQNYLY.js → chunk.XRG4AMUL.js} +3 -3
- package/dist/chunks/{chunk.SPESSCEK.js → chunk.XU4SWNZ5.js} +1 -1
- package/dist/chunks/{chunk.U4UBCQGL.js → chunk.XUHKT4XR.js} +4 -4
- package/dist/chunks/chunk.XWHXWF67.js +180 -0
- package/dist/chunks/{chunk.DLM7C6XL.js → chunk.Y2LLE55K.js} +2 -2
- package/dist/chunks/{chunk.B4H75FLB.js → chunk.Y3JGTJDM.js} +1 -1
- package/dist/chunks/{chunk.DOJVTX23.js → chunk.Y7D4ZNRS.js} +1 -1
- package/dist/chunks/{chunk.B4FKYIJV.js → chunk.Y7NL3JM7.js} +1 -1
- package/dist/chunks/{chunk.VAOOYX3C.js → chunk.YFUR5BLL.js} +1 -1
- package/dist/chunks/{chunk.QKJEDAAH.js → chunk.YHRMKFU2.js} +1 -1
- package/{cdn/chunks/chunk.FRQVQSCX.js → dist/chunks/chunk.YOF7YCGP.js} +1 -1
- package/dist/chunks/{chunk.ELQ6ZAHU.js → chunk.YTIFDWTT.js} +1 -1
- package/dist/chunks/{chunk.ZNE45MUQ.js → chunk.YY5HDA3O.js} +1 -1
- package/dist/chunks/{chunk.FYRZ4LVX.js → chunk.Z2OSGQYG.js} +2 -2
- package/dist/chunks/{chunk.5KVADYZC.js → chunk.ZDNHA3FE.js} +2 -2
- package/dist/chunks/{chunk.YLKHYMMJ.js → chunk.ZFAPC5IL.js} +1 -1
- package/{cdn/chunks/chunk.NOA6A36X.js → dist/chunks/chunk.ZNPUJHGL.js} +1 -1
- package/dist/chunks/{chunk.YCC476ZW.js → chunk.ZQBGF74C.js} +1 -1
- package/dist/chunks/{chunk.SCWM4TJB.js → chunk.ZU34TALF.js} +1 -1
- package/dist/components/alert/alert.component.js +6 -6
- package/dist/components/alert/alert.js +7 -7
- package/dist/components/alert/alert.styles.js +1 -1
- package/dist/components/animated-image/animated-image.component.js +3 -3
- package/dist/components/animated-image/animated-image.js +4 -4
- package/dist/components/animation/animation.component.js +2 -2
- package/dist/components/animation/animation.js +3 -3
- package/dist/components/avatar/avatar.component.js +3 -3
- package/dist/components/avatar/avatar.js +4 -4
- package/dist/components/badge/badge.component.js +2 -2
- package/dist/components/badge/badge.js +3 -3
- package/dist/components/breadcrumb/breadcrumb.component.js +3 -3
- package/dist/components/breadcrumb/breadcrumb.js +4 -4
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
- package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
- package/dist/components/button/button.component.js +6 -6
- package/dist/components/button/button.js +7 -7
- package/dist/components/button/button.styles.js +1 -1
- package/dist/components/button-group/button-group.component.js +2 -2
- package/dist/components/button-group/button-group.js +3 -3
- package/dist/components/calendar/calendar.component.js +16 -2
- package/dist/components/calendar/calendar.js +16 -2
- package/dist/components/card/card.component.js +2 -2
- package/dist/components/card/card.js +3 -3
- package/dist/components/carousel/carousel.component.js +3 -3
- package/dist/components/carousel/carousel.js +4 -4
- package/dist/components/carousel-item/carousel-item.component.js +2 -2
- package/dist/components/carousel-item/carousel-item.js +3 -3
- package/dist/components/checkbox/checkbox.component.js +3 -3
- package/dist/components/checkbox/checkbox.js +4 -4
- package/dist/components/color-picker/color-picker.component.js +17 -18
- package/dist/components/color-picker/color-picker.js +18 -19
- package/dist/components/copy-button/copy-button.component.js +6 -6
- package/dist/components/copy-button/copy-button.js +7 -7
- package/dist/components/datepicker/datepicker.component.js +31 -0
- package/dist/components/datepicker/datepicker.js +35 -0
- package/dist/components/details/details.component.js +4 -4
- package/dist/components/details/details.js +5 -5
- package/dist/components/details/details.styles.js +1 -1
- package/dist/components/dialog/dialog.component.js +6 -6
- package/dist/components/dialog/dialog.js +7 -7
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/drawer/drawer.component.js +6 -6
- package/dist/components/drawer/drawer.js +7 -7
- package/dist/components/dropdown/dropdown.component.js +4 -4
- package/dist/components/dropdown/dropdown.js +5 -5
- package/dist/components/format-bytes/format-bytes.component.js +2 -2
- package/dist/components/format-bytes/format-bytes.js +3 -3
- package/dist/components/format-date/format-date.component.js +2 -2
- package/dist/components/format-date/format-date.js +3 -3
- package/dist/components/format-number/format-number.component.js +2 -2
- package/dist/components/format-number/format-number.js +3 -3
- package/dist/components/icon/icon.component.js +2 -2
- package/dist/components/icon/icon.js +3 -3
- package/dist/components/icon-button/icon-button.component.js +3 -3
- package/dist/components/icon-button/icon-button.js +4 -4
- package/dist/components/image-comparer/image-comparer.component.js +3 -3
- package/dist/components/image-comparer/image-comparer.js +4 -4
- package/dist/components/include/include.component.js +3 -3
- package/dist/components/include/include.js +4 -4
- package/dist/components/input/input.component.js +5 -8
- package/dist/components/input/input.js +6 -9
- package/dist/components/input/input.styles.js +1 -1
- package/dist/components/menu/menu.component.js +2 -2
- package/dist/components/menu/menu.js +3 -3
- package/dist/components/menu-item/menu-item.component.js +7 -7
- package/dist/components/menu-item/menu-item.js +8 -8
- package/dist/components/menu-label/menu-label.component.js +2 -2
- package/dist/components/menu-label/menu-label.js +3 -3
- package/dist/components/mutation-observer/mutation-observer.component.js +2 -2
- package/dist/components/mutation-observer/mutation-observer.js +3 -3
- package/dist/components/option/option.component.js +3 -3
- package/dist/components/option/option.js +4 -4
- package/dist/components/popup/popup.component.js +2 -2
- package/dist/components/popup/popup.js +3 -3
- package/dist/components/progress-bar/progress-bar.component.js +2 -2
- package/dist/components/progress-bar/progress-bar.js +3 -3
- package/dist/components/progress-ring/progress-ring.component.js +2 -2
- package/dist/components/progress-ring/progress-ring.js +3 -3
- package/dist/components/qr-code/qr-code.component.js +2 -2
- package/dist/components/qr-code/qr-code.js +3 -3
- package/dist/components/radio/radio.component.js +3 -3
- package/dist/components/radio/radio.js +4 -4
- package/dist/components/radio-button/radio-button.component.js +4 -4
- package/dist/components/radio-button/radio-button.js +5 -5
- package/dist/components/radio-button/radio-button.styles.js +2 -2
- package/dist/components/radio-group/radio-group.component.js +4 -4
- package/dist/components/radio-group/radio-group.js +5 -5
- package/dist/components/range/range.component.js +3 -3
- package/dist/components/range/range.js +4 -4
- package/dist/components/rating/rating.component.js +3 -3
- package/dist/components/rating/rating.js +4 -4
- package/dist/components/relative-time/relative-time.component.js +2 -2
- package/dist/components/relative-time/relative-time.js +3 -3
- package/dist/components/resize-observer/resize-observer.component.js +2 -2
- package/dist/components/resize-observer/resize-observer.js +3 -3
- package/dist/components/select/select.component.js +7 -7
- package/dist/components/select/select.js +8 -8
- package/dist/components/skeleton/skeleton.component.js +2 -2
- package/dist/components/skeleton/skeleton.js +3 -3
- package/dist/components/spinner/spinner.component.js +2 -2
- package/dist/components/spinner/spinner.js +3 -3
- package/dist/components/split-panel/split-panel.component.js +2 -2
- package/dist/components/split-panel/split-panel.js +3 -3
- package/dist/components/switch/switch.component.js +3 -3
- package/dist/components/switch/switch.js +4 -4
- package/dist/components/switch/switch.styles.js +1 -1
- package/dist/components/tab/tab.component.js +4 -4
- package/dist/components/tab/tab.js +5 -5
- package/dist/components/tab-group/tab-group.component.js +5 -5
- package/dist/components/tab-group/tab-group.js +6 -6
- package/dist/components/tab-panel/tab-panel.component.js +2 -2
- package/dist/components/tab-panel/tab-panel.js +3 -3
- package/dist/components/table/body-table.js +4 -4
- package/dist/components/table/features/row-selection.js +9 -0
- package/dist/components/table/head-table.js +4 -4
- package/dist/components/table/spinner-container.js +2 -2
- package/dist/components/table/table.component.js +24 -7
- package/dist/components/table/table.context.js +4 -3
- package/dist/components/table/table.js +26 -9
- package/dist/components/table/utils.js +7 -0
- package/dist/components/tag/tag.component.js +4 -4
- package/dist/components/tag/tag.js +5 -5
- package/dist/components/textarea/textarea.component.js +2 -2
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/tooltip/tooltip.component.js +4 -4
- package/dist/components/tooltip/tooltip.js +5 -5
- package/dist/components/tooltip/tooltip.styles.js +1 -1
- package/dist/components/tree/tree.component.js +9 -9
- package/dist/components/tree/tree.js +10 -10
- package/dist/components/tree-item/tree-item.component.js +7 -7
- package/dist/components/tree-item/tree-item.js +8 -8
- package/dist/components/tree-item/tree-item.styles.js +1 -1
- package/dist/components/visually-hidden/visually-hidden.component.js +2 -2
- package/dist/components/visually-hidden/visually-hidden.js +3 -3
- package/dist/custom-elements.json +2824 -2443
- package/dist/react/alert/index.js +7 -7
- package/dist/react/animated-image/index.js +4 -4
- package/dist/react/animation/index.js +3 -3
- package/dist/react/avatar/index.js +4 -4
- package/dist/react/badge/index.js +3 -3
- package/dist/react/breadcrumb/index.js +4 -4
- package/dist/react/breadcrumb-item/index.js +3 -3
- package/dist/react/button/index.js +7 -7
- package/dist/react/button-group/index.js +3 -3
- package/dist/react/card/index.js +3 -3
- package/dist/react/carousel/index.js +4 -4
- package/dist/react/carousel-item/index.js +3 -3
- package/dist/react/checkbox/index.js +4 -4
- package/dist/react/color-picker/index.js +18 -19
- package/dist/react/copy-button/index.js +7 -7
- package/dist/react/datepicker/index.js +32 -0
- package/dist/react/details/index.js +5 -5
- package/dist/react/dialog/index.js +7 -7
- package/dist/react/divider/index.js +3 -3
- package/dist/react/drawer/index.js +7 -7
- package/dist/react/dropdown/index.js +5 -5
- package/dist/react/format-bytes/index.js +3 -3
- package/dist/react/format-date/index.js +3 -3
- package/dist/react/format-number/index.js +3 -3
- package/dist/react/icon/index.js +3 -3
- package/dist/react/icon-button/index.js +4 -4
- package/dist/react/image-comparer/index.js +4 -4
- package/dist/react/include/index.js +4 -4
- package/dist/react/index.js +201 -199
- package/dist/react/input/index.js +6 -9
- package/dist/react/menu/index.js +3 -3
- package/dist/react/menu-item/index.js +8 -8
- package/dist/react/menu-label/index.js +3 -3
- package/dist/react/mutation-observer/index.js +3 -3
- package/dist/react/option/index.js +4 -4
- package/dist/react/popup/index.js +3 -3
- package/dist/react/progress-bar/index.js +3 -3
- package/dist/react/progress-ring/index.js +3 -3
- package/dist/react/qr-code/index.js +3 -3
- package/dist/react/radio/index.js +4 -4
- package/dist/react/radio-button/index.js +5 -5
- package/dist/react/radio-group/index.js +5 -5
- package/dist/react/range/index.js +4 -4
- package/dist/react/rating/index.js +4 -4
- package/dist/react/relative-time/index.js +3 -3
- package/dist/react/resize-observer/index.js +3 -3
- package/dist/react/select/index.js +8 -8
- package/dist/react/skeleton/index.js +3 -3
- package/dist/react/spinner/index.js +3 -3
- package/dist/react/split-panel/index.js +3 -3
- package/dist/react/switch/index.js +4 -4
- package/dist/react/tab/index.js +5 -5
- package/dist/react/tab-group/index.js +6 -6
- package/dist/react/tab-panel/index.js +3 -3
- package/dist/react/table/index.js +25 -8
- package/dist/react/tag/index.js +5 -5
- package/dist/react/textarea/index.js +3 -3
- package/dist/react/tooltip/index.js +5 -5
- package/dist/react/tree/index.js +10 -10
- package/dist/react/tree-item/index.js +8 -8
- package/dist/react/visually-hidden/index.js +3 -3
- package/dist/shoelace.js +185 -185
- package/dist/themes/dark.css +297 -286
- package/dist/themes/dark.styles.js +297 -286
- package/dist/themes/light.css +286 -252
- package/dist/themes/light.styles.js +298 -255
- package/dist/types/vue/index.d.ts +332 -285
- package/dist/vscode.html-custom-data.json +282 -195
- package/dist/web-types.json +703 -521
- package/package.json +2 -2
- package/cdn/chunks/chunk.IW4UQA27.js +0 -453
- package/cdn/chunks/chunk.JK5C4Y2O.js +0 -217
- package/cdn/chunks/chunk.KMG5K64B.js +0 -175
- package/cdn/chunks/chunk.SWRCQLTG.js +0 -21
- package/cdn/chunks/chunk.ZC2X65UJ.js +0 -133
- package/cdn/react/calendar/index.js +0 -14
- package/dist/chunks/chunk.C5JOSC6T.js +0 -125
- package/dist/chunks/chunk.EU44RQUN.js +0 -172
- package/dist/chunks/chunk.OTP7XFTZ.js +0 -450
- package/dist/chunks/chunk.ST6QSNN7.js +0 -21
- package/dist/chunks/chunk.TZQ2VPVF.js +0 -7
- package/dist/react/calendar/index.js +0 -11
|
@@ -0,0 +1,1124 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SlButton
|
|
3
|
+
} from "./chunk.4BOWZB3Y.js";
|
|
4
|
+
import {
|
|
5
|
+
e
|
|
6
|
+
} from "./chunk.ZLZKOPYV.js";
|
|
7
|
+
import {
|
|
8
|
+
SlIcon
|
|
9
|
+
} from "./chunk.EN6IZDYW.js";
|
|
10
|
+
import {
|
|
11
|
+
watch
|
|
12
|
+
} from "./chunk.OY5V3CPY.js";
|
|
13
|
+
import {
|
|
14
|
+
component_styles_default
|
|
15
|
+
} from "./chunk.EFE6XYM5.js";
|
|
16
|
+
import {
|
|
17
|
+
ShoelaceElement,
|
|
18
|
+
n,
|
|
19
|
+
r
|
|
20
|
+
} from "./chunk.U6LIZH2N.js";
|
|
21
|
+
import {
|
|
22
|
+
i,
|
|
23
|
+
x
|
|
24
|
+
} from "./chunk.ZKRJ3RUK.js";
|
|
25
|
+
import {
|
|
26
|
+
__decorateClass
|
|
27
|
+
} from "./chunk.IMHLNNT7.js";
|
|
28
|
+
|
|
29
|
+
// src/internal/datepicker.ts
|
|
30
|
+
function parseDatetime(datetimeStr, format = "datetime") {
|
|
31
|
+
if (format === "date" || format === "datetime") {
|
|
32
|
+
return parseLegacyDatetime(datetimeStr);
|
|
33
|
+
}
|
|
34
|
+
return parseDateWithFormat(datetimeStr, format);
|
|
35
|
+
}
|
|
36
|
+
function parseLegacyDatetime(datetimeStr) {
|
|
37
|
+
const regex = /^(\d{4})([-./])(\d{2})\2(\d{2})(?:\s+(\d{2}):(\d{2}):(\d{2}))?$/;
|
|
38
|
+
const match = datetimeStr.trim().match(regex);
|
|
39
|
+
if (!match) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
const year = parseInt(match[1], 10);
|
|
43
|
+
const month = parseInt(match[3], 10);
|
|
44
|
+
const day = parseInt(match[4], 10);
|
|
45
|
+
const hours = match[5] ? parseInt(match[5], 10) : 0;
|
|
46
|
+
const minutes = match[6] ? parseInt(match[6], 10) : 0;
|
|
47
|
+
const seconds = match[7] ? parseInt(match[7], 10) : 0;
|
|
48
|
+
if (month < 1 || month > 12) return null;
|
|
49
|
+
if (day < 1 || day > 31) return null;
|
|
50
|
+
if (hours < 0 || hours > 23) return null;
|
|
51
|
+
if (minutes < 0 || minutes > 59) return null;
|
|
52
|
+
if (seconds < 0 || seconds > 59) return null;
|
|
53
|
+
const date = new Date(year, month - 1, day, hours, minutes, seconds);
|
|
54
|
+
if (year >= 0 && year < 100) {
|
|
55
|
+
date.setFullYear(year);
|
|
56
|
+
}
|
|
57
|
+
if (date.getFullYear() !== year || date.getMonth() !== month - 1 || date.getDate() !== day) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return date;
|
|
61
|
+
}
|
|
62
|
+
function parseDateWithFormat(dateString, format) {
|
|
63
|
+
const formatRegex = /yyyy|MM|dd|HH|mm|ss|hh|a|M|d|H|h|m|s/g;
|
|
64
|
+
const formatTokens = format.match(formatRegex);
|
|
65
|
+
if (!formatTokens) return null;
|
|
66
|
+
const regexString = format.replace(/[.*+?^${}()|[\]\\]/g, "\\$&").replace(formatRegex, (token) => {
|
|
67
|
+
switch (token) {
|
|
68
|
+
case "yyyy":
|
|
69
|
+
return "(\\d{4})";
|
|
70
|
+
case "MM":
|
|
71
|
+
case "dd":
|
|
72
|
+
case "HH":
|
|
73
|
+
case "mm":
|
|
74
|
+
case "ss":
|
|
75
|
+
case "hh":
|
|
76
|
+
return "(\\d{2})";
|
|
77
|
+
case "M":
|
|
78
|
+
case "d":
|
|
79
|
+
case "H":
|
|
80
|
+
case "h":
|
|
81
|
+
case "m":
|
|
82
|
+
case "s":
|
|
83
|
+
return "(\\d{1,2})";
|
|
84
|
+
case "a":
|
|
85
|
+
return "(am|pm|AM|PM)";
|
|
86
|
+
default:
|
|
87
|
+
return token;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
const regex = new RegExp(`^${regexString}$`);
|
|
91
|
+
const match = dateString.trim().match(regex);
|
|
92
|
+
if (!match) return null;
|
|
93
|
+
const dateParts = {
|
|
94
|
+
year: 0,
|
|
95
|
+
month: 1,
|
|
96
|
+
day: 1,
|
|
97
|
+
hour: 0,
|
|
98
|
+
minute: 0,
|
|
99
|
+
second: 0
|
|
100
|
+
};
|
|
101
|
+
let isPm = false;
|
|
102
|
+
let is12Hour = false;
|
|
103
|
+
const today = /* @__PURE__ */ new Date();
|
|
104
|
+
dateParts.year = today.getFullYear();
|
|
105
|
+
dateParts.month = today.getMonth() + 1;
|
|
106
|
+
dateParts.day = today.getDate();
|
|
107
|
+
formatTokens.forEach((token, index) => {
|
|
108
|
+
const value = match[index + 1];
|
|
109
|
+
if (token === "a") {
|
|
110
|
+
if (value.toLowerCase() === "pm") isPm = true;
|
|
111
|
+
} else {
|
|
112
|
+
const intVal = parseInt(value, 10);
|
|
113
|
+
switch (token) {
|
|
114
|
+
case "yyyy":
|
|
115
|
+
dateParts.year = intVal;
|
|
116
|
+
break;
|
|
117
|
+
case "MM":
|
|
118
|
+
case "M":
|
|
119
|
+
dateParts.month = intVal;
|
|
120
|
+
break;
|
|
121
|
+
case "dd":
|
|
122
|
+
case "d":
|
|
123
|
+
dateParts.day = intVal;
|
|
124
|
+
break;
|
|
125
|
+
case "HH":
|
|
126
|
+
case "H":
|
|
127
|
+
dateParts.hour = intVal;
|
|
128
|
+
break;
|
|
129
|
+
case "mm":
|
|
130
|
+
case "m":
|
|
131
|
+
dateParts.minute = intVal;
|
|
132
|
+
break;
|
|
133
|
+
case "ss":
|
|
134
|
+
case "s":
|
|
135
|
+
dateParts.second = intVal;
|
|
136
|
+
break;
|
|
137
|
+
case "hh":
|
|
138
|
+
case "h":
|
|
139
|
+
dateParts.hour = intVal;
|
|
140
|
+
is12Hour = true;
|
|
141
|
+
break;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
if (is12Hour) {
|
|
146
|
+
if (isPm && dateParts.hour < 12) dateParts.hour += 12;
|
|
147
|
+
if (!isPm && dateParts.hour === 12) dateParts.hour = 0;
|
|
148
|
+
}
|
|
149
|
+
const date = new Date(
|
|
150
|
+
dateParts.year,
|
|
151
|
+
dateParts.month - 1,
|
|
152
|
+
dateParts.day,
|
|
153
|
+
dateParts.hour,
|
|
154
|
+
dateParts.minute,
|
|
155
|
+
dateParts.second
|
|
156
|
+
);
|
|
157
|
+
if (date.getFullYear() !== dateParts.year || date.getMonth() !== dateParts.month - 1 || date.getDate() !== dateParts.day) {
|
|
158
|
+
const hasYear = format.includes("yyyy");
|
|
159
|
+
const hasMonth = format.includes("MM");
|
|
160
|
+
const hasDay = format.includes("dd");
|
|
161
|
+
if (hasYear && hasMonth && hasDay) {
|
|
162
|
+
return null;
|
|
163
|
+
}
|
|
164
|
+
if (format.includes("dd") && date.getDate() !== dateParts.day) return null;
|
|
165
|
+
if (format.includes("MM") && date.getMonth() !== dateParts.month - 1) return null;
|
|
166
|
+
}
|
|
167
|
+
return date;
|
|
168
|
+
}
|
|
169
|
+
function formatDatetime(date, format = "datetime") {
|
|
170
|
+
if (format === "date") {
|
|
171
|
+
return formatDateWithFormat(date, "yyyy-MM-dd");
|
|
172
|
+
}
|
|
173
|
+
if (format === "datetime") {
|
|
174
|
+
return formatDateWithFormat(date, "yyyy-MM-dd HH:mm:ss");
|
|
175
|
+
}
|
|
176
|
+
return formatDateWithFormat(date, format);
|
|
177
|
+
}
|
|
178
|
+
function formatDateWithFormat(date, format) {
|
|
179
|
+
const formatRegex = /yyyy|MM|dd|HH|mm|ss|hh|a|M|d|H|h|m|s/g;
|
|
180
|
+
const map = {
|
|
181
|
+
yyyy: String(date.getFullYear()).padStart(4, "0"),
|
|
182
|
+
MM: String(date.getMonth() + 1).padStart(2, "0"),
|
|
183
|
+
M: String(date.getMonth() + 1),
|
|
184
|
+
dd: String(date.getDate()).padStart(2, "0"),
|
|
185
|
+
d: String(date.getDate()),
|
|
186
|
+
HH: String(date.getHours()).padStart(2, "0"),
|
|
187
|
+
H: String(date.getHours()),
|
|
188
|
+
mm: String(date.getMinutes()).padStart(2, "0"),
|
|
189
|
+
m: String(date.getMinutes()),
|
|
190
|
+
ss: String(date.getSeconds()).padStart(2, "0"),
|
|
191
|
+
s: String(date.getSeconds()),
|
|
192
|
+
hh: String(date.getHours() % 12 || 12).padStart(2, "0"),
|
|
193
|
+
h: String(date.getHours() % 12 || 12),
|
|
194
|
+
a: date.getHours() >= 12 ? "PM" : "AM"
|
|
195
|
+
};
|
|
196
|
+
return format.replace(formatRegex, (match) => map[match]);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// src/components/calendar/calendar.style.ts
|
|
200
|
+
var calendar_style_default = i`
|
|
201
|
+
:host {
|
|
202
|
+
display: inline-block;
|
|
203
|
+
font-family: var(--sl-font-sans);
|
|
204
|
+
}
|
|
205
|
+
.flex {
|
|
206
|
+
display: flex;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.calendar {
|
|
210
|
+
width: 100%;
|
|
211
|
+
max-width: 560px;
|
|
212
|
+
border: 1px solid var(--sl-color-neutral-200);
|
|
213
|
+
border-radius: var(--sl-border-radius-medium);
|
|
214
|
+
overflow: hidden;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.calendar__content {
|
|
218
|
+
display: block;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.calendar__content--has-time {
|
|
222
|
+
display: flex;
|
|
223
|
+
align-items: stretch;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.calendar__date-section {
|
|
227
|
+
flex: 1 1 auto;
|
|
228
|
+
display: flex;
|
|
229
|
+
flex-direction: column;
|
|
230
|
+
min-width: 0;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.calendar__header {
|
|
234
|
+
display: flex;
|
|
235
|
+
align-items: center;
|
|
236
|
+
justify-content: space-between;
|
|
237
|
+
padding: var(--sl-spacing-2x-small) var(--sl-spacing-small);
|
|
238
|
+
background-color: var(--sl-color-neutral-50);
|
|
239
|
+
border-bottom: 1px solid var(--sl-color-neutral-200);
|
|
240
|
+
min-height: 40px; /* Ensure consistent height */
|
|
241
|
+
box-sizing: border-box;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.calendar__nav-button {
|
|
245
|
+
display: flex;
|
|
246
|
+
align-items: center;
|
|
247
|
+
justify-content: center;
|
|
248
|
+
background: none;
|
|
249
|
+
border: none;
|
|
250
|
+
border-radius: var(--sl-border-radius-small);
|
|
251
|
+
color: var(--sl-color-neutral-700);
|
|
252
|
+
cursor: pointer;
|
|
253
|
+
padding: var(--sl-spacing-2x-small);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.calendar__nav-button:hover {
|
|
257
|
+
background-color: var(--sl-color-neutral-100);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.calendar__nav-button[disabled] {
|
|
261
|
+
opacity: 0.5;
|
|
262
|
+
cursor: not-allowed;
|
|
263
|
+
background: none;
|
|
264
|
+
color: var(--sl-color-neutral-400);
|
|
265
|
+
pointer-events: none;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
sl-button[disabled] {
|
|
269
|
+
pointer-events: none;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.calendar__title {
|
|
273
|
+
font-size: var(--sl-font-size-medium);
|
|
274
|
+
font-weight: var(--sl-font-weight-semibold);
|
|
275
|
+
color: var(--sl-color-neutral-900);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.calendar__title-year,
|
|
279
|
+
.calendar__title-month {
|
|
280
|
+
cursor: pointer;
|
|
281
|
+
padding: var(--sl-spacing-xxx-small) var(--sl-spacing-x-small);
|
|
282
|
+
border-radius: var(--sl-border-radius-small);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.calendar__title-year:hover,
|
|
286
|
+
.calendar__title-month:hover {
|
|
287
|
+
background-color: var(--sl-color-neutral-100);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.calendar__nav-button--year {
|
|
291
|
+
font-size: var(--sl-font-size-small);
|
|
292
|
+
padding: 0 var(--sl-spacing-3x-small);
|
|
293
|
+
margin: 0 var(--sl-spacing-3x-small);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.calendar__grid {
|
|
297
|
+
display: grid;
|
|
298
|
+
grid-template-columns: repeat(7, 1fr);
|
|
299
|
+
gap: 2px;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.calendar__day-header {
|
|
303
|
+
width: 32px;
|
|
304
|
+
line-height: 32px;
|
|
305
|
+
height: 32px;
|
|
306
|
+
background-color: var(--sl-color-neutral-0);
|
|
307
|
+
text-align: center;
|
|
308
|
+
font-size: var(--sl-font-size-small);
|
|
309
|
+
font-weight: var(--sl-font-weight-semibold);
|
|
310
|
+
color: var(--sl-color-neutral-600);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.calendar__day-footer {
|
|
314
|
+
padding: var(--sl-spacing-2x-small);
|
|
315
|
+
display: flex;
|
|
316
|
+
background-color: var(--sl-color-neutral-50);
|
|
317
|
+
justify-content: center;
|
|
318
|
+
border-top: 1px solid var(--sl-color-neutral-200);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.calendar__day {
|
|
322
|
+
width: 32px;
|
|
323
|
+
line-height: 32px;
|
|
324
|
+
height: 32px;
|
|
325
|
+
display: flex;
|
|
326
|
+
align-items: center;
|
|
327
|
+
justify-content: center;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.calendar__day-item {
|
|
331
|
+
width: 24px;
|
|
332
|
+
line-height: 24px;
|
|
333
|
+
height: 24px;
|
|
334
|
+
text-align: center;
|
|
335
|
+
cursor: pointer;
|
|
336
|
+
font-size: var(--sl-font-size-small);
|
|
337
|
+
border-radius: var(--sl-border-radius-small);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.calendar__day-item:not(.calendar__day--selected):hover {
|
|
341
|
+
background-color: var(--sl-color-neutral-50);
|
|
342
|
+
color: var(--sl-color-neutral-900);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.calendar__day--other-month {
|
|
346
|
+
color: var(--sl-color-neutral-400);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.calendar__date--current {
|
|
350
|
+
position: relative;
|
|
351
|
+
// background-color: var(--sl-color-primary-100);
|
|
352
|
+
// color: var(--sl-color-primary-700);
|
|
353
|
+
// font-weight: var(--sl-font-weight-semibold);
|
|
354
|
+
}
|
|
355
|
+
.calendar__date--current:not(.calendar__day--selected):after {
|
|
356
|
+
position: absolute;
|
|
357
|
+
content: '';
|
|
358
|
+
bottom: -2px;
|
|
359
|
+
left: 50%;
|
|
360
|
+
transform: translate(-50%, 0);
|
|
361
|
+
width: 6px;
|
|
362
|
+
height: 6px;
|
|
363
|
+
border-radius: 50%;
|
|
364
|
+
background-color: var(--sl-color-primary-600);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.calendar__day--selected {
|
|
368
|
+
background-color: var(--sl-color-primary-600);
|
|
369
|
+
color: white;
|
|
370
|
+
font-weight: var(--sl-font-weight-semibold);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.calendar__year-grid,
|
|
374
|
+
.calendar__month-grid {
|
|
375
|
+
display: grid;
|
|
376
|
+
grid-template-columns: repeat(3, 1fr);
|
|
377
|
+
gap: var(--sl-spacing-medium);
|
|
378
|
+
padding: var(--sl-spacing-small);
|
|
379
|
+
background-color: var(--sl-color-neutral-0);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.calendar__year-item,
|
|
383
|
+
.calendar__month-item {
|
|
384
|
+
width: 56px;
|
|
385
|
+
height: 32px;
|
|
386
|
+
line-height: 32px;
|
|
387
|
+
text-align: center;
|
|
388
|
+
cursor: pointer;
|
|
389
|
+
border-radius: var(--sl-border-radius-small);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.calendar__year-item:not(.calendar__year-item--disabled):hover,
|
|
393
|
+
.calendar__month-item:hover {
|
|
394
|
+
background-color: var(--sl-color-neutral-100);
|
|
395
|
+
color: var(--sl-color-neutral-900);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.calendar__year-item--disabled {
|
|
399
|
+
pointer-events: none;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.calendar__year-item--selected,
|
|
403
|
+
.calendar__month-item--selected {
|
|
404
|
+
background-color: var(--sl-color-primary-600);
|
|
405
|
+
color: white;
|
|
406
|
+
font-weight: var(--sl-font-weight-semibold);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.calendar__body {
|
|
410
|
+
display: block;
|
|
411
|
+
padding: var(--sl-spacing-3x-small);
|
|
412
|
+
background-color: var(--sl-color-neutral-0);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.calendar__date-panel {
|
|
416
|
+
flex: 1 1 auto;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.calendar__time-panel {
|
|
420
|
+
width: 180px;
|
|
421
|
+
display: flex;
|
|
422
|
+
flex-direction: column;
|
|
423
|
+
background-color: var(--sl-color-neutral-0);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.calendar__time-header {
|
|
427
|
+
display: flex;
|
|
428
|
+
justify-content: center;
|
|
429
|
+
align-items: center;
|
|
430
|
+
padding: var(--sl-spacing-2x-small) var(--sl-spacing-small);
|
|
431
|
+
font-variant-numeric: tabular-nums;
|
|
432
|
+
border-bottom: 1px solid var(--sl-color-neutral-200);
|
|
433
|
+
background-color: var(--sl-color-neutral-50);
|
|
434
|
+
min-height: 40px; /* Match calendar__header min-height */
|
|
435
|
+
box-sizing: border-box;
|
|
436
|
+
font-weight: var(--sl-font-weight-semibold);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.calendar__time-header-item {
|
|
440
|
+
min-width: 2ch;
|
|
441
|
+
text-align: center;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.calendar__time-header-separator {
|
|
445
|
+
padding: 0 var(--sl-spacing-3x-small);
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.calendar__time-columns {
|
|
449
|
+
display: flex;
|
|
450
|
+
flex: 1 1 auto;
|
|
451
|
+
border-inline-start: 1px solid var(--sl-color-neutral-200);
|
|
452
|
+
/* Ensure it has a height limit if needed, but flex: 1 should handle it */
|
|
453
|
+
max-height: 240px; /* Optional constraint */
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.calendar__time-column {
|
|
457
|
+
flex: 1 1 0;
|
|
458
|
+
overflow-y: hidden;
|
|
459
|
+
border-inline-start: 1px solid var(--sl-color-neutral-100);
|
|
460
|
+
}
|
|
461
|
+
.calendar__time-column:hover {
|
|
462
|
+
overflow-y: auto;
|
|
463
|
+
}
|
|
464
|
+
.calendar__time-column::-webkit-scrollbar {
|
|
465
|
+
display: none !important;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.calendar__time-column:first-child {
|
|
469
|
+
border-inline-start: none;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.calendar__time-item {
|
|
473
|
+
height: 32px;
|
|
474
|
+
line-height: 32px;
|
|
475
|
+
text-align: center;
|
|
476
|
+
cursor: pointer;
|
|
477
|
+
font-size: var(--sl-font-size-small);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.calendar__time-item:hover {
|
|
481
|
+
background-color: var(--sl-color-neutral-50);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.calendar__time-item--selected {
|
|
485
|
+
background-color: var(--sl-color-primary-100);
|
|
486
|
+
color: var(--sl-color-primary-700);
|
|
487
|
+
font-weight: var(--sl-font-weight-semibold);
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.calendar__time-footer {
|
|
491
|
+
display: flex;
|
|
492
|
+
justify-content: flex-end;
|
|
493
|
+
padding: var(--sl-spacing-2x-small) var(--sl-spacing-small);
|
|
494
|
+
border-top: 1px solid var(--sl-color-neutral-200);
|
|
495
|
+
background-color: var(--sl-color-neutral-0);
|
|
496
|
+
/* Ensure footer aligns at bottom */
|
|
497
|
+
margin-top: auto;
|
|
498
|
+
}
|
|
499
|
+
`;
|
|
500
|
+
|
|
501
|
+
// src/components/calendar/calendar.component.ts
|
|
502
|
+
var locale = {
|
|
503
|
+
today: "\u4ECA\u5929",
|
|
504
|
+
year: "\u5E74",
|
|
505
|
+
month: "\u6708",
|
|
506
|
+
monday: "\u4E00",
|
|
507
|
+
tuesday: "\u4E8C",
|
|
508
|
+
wednesday: "\u4E09",
|
|
509
|
+
thursday: "\u56DB",
|
|
510
|
+
friday: "\u4E94",
|
|
511
|
+
saturday: "\u516D",
|
|
512
|
+
sunday: "\u65E5",
|
|
513
|
+
confirmText: "\u786E\u5B9A"
|
|
514
|
+
};
|
|
515
|
+
var SlCalendar = class extends ShoelaceElement {
|
|
516
|
+
constructor() {
|
|
517
|
+
super(...arguments);
|
|
518
|
+
this.type = "date";
|
|
519
|
+
this.currentDate = /* @__PURE__ */ new Date();
|
|
520
|
+
this.view = "days";
|
|
521
|
+
this.selectedDate = null;
|
|
522
|
+
this.isTimeUpdating = false;
|
|
523
|
+
}
|
|
524
|
+
parseValue(value) {
|
|
525
|
+
return parseDatetime(value);
|
|
526
|
+
}
|
|
527
|
+
async handleValueChange() {
|
|
528
|
+
if (!this.value) {
|
|
529
|
+
return;
|
|
530
|
+
}
|
|
531
|
+
const parsedDate = this.parseValue(this.value);
|
|
532
|
+
if (parsedDate) {
|
|
533
|
+
this.currentDate = new Date(parsedDate);
|
|
534
|
+
this.selectedDate = parsedDate;
|
|
535
|
+
if (this.type === "datetime" && !this.isTimeUpdating) {
|
|
536
|
+
await this.updateComplete;
|
|
537
|
+
this.scrollToTime("hour", "auto");
|
|
538
|
+
this.scrollToTime("minute", "auto");
|
|
539
|
+
this.scrollToTime("second", "auto");
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
async resetView() {
|
|
544
|
+
this.view = "days";
|
|
545
|
+
this.selectedDate = this.value ? this.parseValue(this.value) : null;
|
|
546
|
+
this.currentDate = this.selectedDate ? new Date(this.selectedDate) : /* @__PURE__ */ new Date();
|
|
547
|
+
if (this.type === "datetime") {
|
|
548
|
+
await this.updateComplete;
|
|
549
|
+
if (this.selectedDate) {
|
|
550
|
+
this.scrollToTime("hour", "auto");
|
|
551
|
+
this.scrollToTime("minute", "auto");
|
|
552
|
+
this.scrollToTime("second", "auto");
|
|
553
|
+
} else {
|
|
554
|
+
this.resetScrollTop();
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
// 获取当前月份的第一天是星期几
|
|
559
|
+
getFirstDayOfMonth(date) {
|
|
560
|
+
const firstDay = new Date(date.getFullYear(), date.getMonth(), 1);
|
|
561
|
+
return firstDay.getDay();
|
|
562
|
+
}
|
|
563
|
+
// 获取当前月份的天数
|
|
564
|
+
getDaysInMonth(date) {
|
|
565
|
+
return new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate();
|
|
566
|
+
}
|
|
567
|
+
// 获取当前月份的日期网格
|
|
568
|
+
getMonthDays(date) {
|
|
569
|
+
const year = date.getFullYear();
|
|
570
|
+
const month = date.getMonth();
|
|
571
|
+
const firstDay = this.getFirstDayOfMonth(date);
|
|
572
|
+
const daysInMonth = this.getDaysInMonth(date);
|
|
573
|
+
const daysInPrevMonth = this.getDaysInMonth(new Date(year, month - 1));
|
|
574
|
+
const days = [];
|
|
575
|
+
for (let i2 = firstDay - 1; i2 >= 0; i2--) {
|
|
576
|
+
days.push({
|
|
577
|
+
day: daysInPrevMonth - i2,
|
|
578
|
+
month: month - 1,
|
|
579
|
+
year,
|
|
580
|
+
isCurrentMonth: false
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
for (let i2 = 1; i2 <= daysInMonth; i2++) {
|
|
584
|
+
days.push({
|
|
585
|
+
day: i2,
|
|
586
|
+
month,
|
|
587
|
+
year,
|
|
588
|
+
isCurrentMonth: true
|
|
589
|
+
});
|
|
590
|
+
}
|
|
591
|
+
const remainingDays = 42 - days.length;
|
|
592
|
+
for (let i2 = 1; i2 <= remainingDays; i2++) {
|
|
593
|
+
days.push({
|
|
594
|
+
day: i2,
|
|
595
|
+
month: month + 1,
|
|
596
|
+
year,
|
|
597
|
+
isCurrentMonth: false
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
return days;
|
|
601
|
+
}
|
|
602
|
+
// 获取年份范围
|
|
603
|
+
getYearRange() {
|
|
604
|
+
const currentYear = this.currentDate.getFullYear();
|
|
605
|
+
const startYear = Math.floor(currentYear / 10) * 10;
|
|
606
|
+
let rangeStart = startYear - 1;
|
|
607
|
+
const rangeLength = 12;
|
|
608
|
+
if (rangeStart < 1) {
|
|
609
|
+
rangeStart = 1;
|
|
610
|
+
}
|
|
611
|
+
if (rangeStart + rangeLength - 1 > 9999) {
|
|
612
|
+
rangeStart = 9999 - rangeLength + 1;
|
|
613
|
+
}
|
|
614
|
+
return Array.from({ length: rangeLength }, (_, i2) => rangeStart + i2);
|
|
615
|
+
}
|
|
616
|
+
// 月份名称
|
|
617
|
+
getMonthNames() {
|
|
618
|
+
return Array.from({ length: 12 }, (_, i2) => `${i2 + 1}${locale.month}`);
|
|
619
|
+
}
|
|
620
|
+
// 星期标题
|
|
621
|
+
getWeekdayHeaders() {
|
|
622
|
+
return [
|
|
623
|
+
locale.sunday,
|
|
624
|
+
locale.monday,
|
|
625
|
+
locale.tuesday,
|
|
626
|
+
locale.wednesday,
|
|
627
|
+
locale.thursday,
|
|
628
|
+
locale.friday,
|
|
629
|
+
locale.saturday
|
|
630
|
+
];
|
|
631
|
+
}
|
|
632
|
+
// 导航到上一个周期
|
|
633
|
+
navigatePrev() {
|
|
634
|
+
if (this.isPrevDisabled) return;
|
|
635
|
+
const newDate = new Date(this.currentDate);
|
|
636
|
+
if (this.view === "days") {
|
|
637
|
+
newDate.setMonth(newDate.getMonth() - 1);
|
|
638
|
+
} else if (this.view === "months") {
|
|
639
|
+
newDate.setFullYear(newDate.getFullYear() - 1);
|
|
640
|
+
} else if (this.view === "years") {
|
|
641
|
+
newDate.setFullYear(newDate.getFullYear() - 10);
|
|
642
|
+
}
|
|
643
|
+
if (newDate.getFullYear() < 1) {
|
|
644
|
+
newDate.setFullYear(1);
|
|
645
|
+
}
|
|
646
|
+
this.currentDate = newDate;
|
|
647
|
+
}
|
|
648
|
+
// 导航到下一个周期
|
|
649
|
+
navigateNext() {
|
|
650
|
+
if (this.isNextDisabled) return;
|
|
651
|
+
const newDate = new Date(this.currentDate);
|
|
652
|
+
if (this.view === "days") {
|
|
653
|
+
newDate.setMonth(newDate.getMonth() + 1);
|
|
654
|
+
} else if (this.view === "months") {
|
|
655
|
+
newDate.setFullYear(newDate.getFullYear() + 1);
|
|
656
|
+
} else if (this.view === "years") {
|
|
657
|
+
newDate.setFullYear(newDate.getFullYear() + 10);
|
|
658
|
+
}
|
|
659
|
+
if (newDate.getFullYear() > 9999) {
|
|
660
|
+
newDate.setFullYear(9999);
|
|
661
|
+
}
|
|
662
|
+
this.currentDate = newDate;
|
|
663
|
+
}
|
|
664
|
+
get isPrevDisabled() {
|
|
665
|
+
const year = this.currentDate.getFullYear();
|
|
666
|
+
const month = this.currentDate.getMonth();
|
|
667
|
+
if (this.view === "days") {
|
|
668
|
+
return year <= 1 && month === 0;
|
|
669
|
+
} else if (this.view === "months") {
|
|
670
|
+
return year <= 1;
|
|
671
|
+
} else if (this.view === "years") {
|
|
672
|
+
const yearRange = this.getYearRange();
|
|
673
|
+
return yearRange[0] <= 1;
|
|
674
|
+
}
|
|
675
|
+
return false;
|
|
676
|
+
}
|
|
677
|
+
get isNextDisabled() {
|
|
678
|
+
const year = this.currentDate.getFullYear();
|
|
679
|
+
const month = this.currentDate.getMonth();
|
|
680
|
+
if (this.view === "days") {
|
|
681
|
+
return year >= 9999 && month === 11;
|
|
682
|
+
} else if (this.view === "months") {
|
|
683
|
+
return year >= 9999;
|
|
684
|
+
} else if (this.view === "years") {
|
|
685
|
+
const yearRange = this.getYearRange();
|
|
686
|
+
return yearRange[yearRange.length - 1] >= 9999;
|
|
687
|
+
}
|
|
688
|
+
return false;
|
|
689
|
+
}
|
|
690
|
+
// 选择年份
|
|
691
|
+
selectYear(year) {
|
|
692
|
+
this.currentDate = new Date(this.currentDate);
|
|
693
|
+
this.currentDate.setFullYear(year);
|
|
694
|
+
this.view = "months";
|
|
695
|
+
}
|
|
696
|
+
// 选择月份
|
|
697
|
+
selectMonth(month) {
|
|
698
|
+
this.currentDate = new Date(this.currentDate);
|
|
699
|
+
this.currentDate.setMonth(month);
|
|
700
|
+
this.view = "days";
|
|
701
|
+
}
|
|
702
|
+
// 选择日期
|
|
703
|
+
selectDay(day, month, year) {
|
|
704
|
+
const baseDate = this.selectedDate;
|
|
705
|
+
const hours = baseDate ? baseDate.getHours() : 0;
|
|
706
|
+
const minutes = baseDate ? baseDate.getMinutes() : 0;
|
|
707
|
+
const seconds = baseDate ? baseDate.getSeconds() : 0;
|
|
708
|
+
this.selectedDate = new Date(year, month, day, hours, minutes, seconds);
|
|
709
|
+
if (year >= 0 && year < 100) {
|
|
710
|
+
this.selectedDate.setFullYear(year);
|
|
711
|
+
}
|
|
712
|
+
this.currentDate = new Date(this.selectedDate);
|
|
713
|
+
this.view = "days";
|
|
714
|
+
if (this.type === "date") {
|
|
715
|
+
this.emit("sl-date-select", {
|
|
716
|
+
detail: { date: this.selectedDate }
|
|
717
|
+
});
|
|
718
|
+
} else {
|
|
719
|
+
this.emit("sl-date-change", {
|
|
720
|
+
detail: { date: this.selectedDate }
|
|
721
|
+
});
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
getActiveDateForTime() {
|
|
725
|
+
if (this.selectedDate) {
|
|
726
|
+
return new Date(this.selectedDate);
|
|
727
|
+
}
|
|
728
|
+
const today = /* @__PURE__ */ new Date();
|
|
729
|
+
return new Date(today.getFullYear(), today.getMonth(), today.getDate(), 0, 0, 0);
|
|
730
|
+
}
|
|
731
|
+
async updateTime(part, value) {
|
|
732
|
+
if (this.type !== "datetime") {
|
|
733
|
+
return;
|
|
734
|
+
}
|
|
735
|
+
const base = this.getActiveDateForTime();
|
|
736
|
+
if (part === "hour") {
|
|
737
|
+
base.setHours(value);
|
|
738
|
+
} else if (part === "minute") {
|
|
739
|
+
base.setMinutes(value);
|
|
740
|
+
} else if (part === "second") {
|
|
741
|
+
base.setSeconds(value);
|
|
742
|
+
}
|
|
743
|
+
this.selectedDate = base;
|
|
744
|
+
this.currentDate = new Date(base);
|
|
745
|
+
this.isTimeUpdating = true;
|
|
746
|
+
this.emit("sl-date-change", {
|
|
747
|
+
detail: { date: this.selectedDate }
|
|
748
|
+
});
|
|
749
|
+
await this.updateComplete;
|
|
750
|
+
this.scrollToTime(part, "smooth");
|
|
751
|
+
setTimeout(() => {
|
|
752
|
+
this.isTimeUpdating = false;
|
|
753
|
+
}, 0);
|
|
754
|
+
}
|
|
755
|
+
selectHour(hour) {
|
|
756
|
+
this.updateTime("hour", hour);
|
|
757
|
+
}
|
|
758
|
+
selectMinute(minute) {
|
|
759
|
+
this.updateTime("minute", minute);
|
|
760
|
+
}
|
|
761
|
+
selectSecond(second) {
|
|
762
|
+
this.updateTime("second", second);
|
|
763
|
+
}
|
|
764
|
+
confirmSelection() {
|
|
765
|
+
if (!this.selectedDate) {
|
|
766
|
+
return;
|
|
767
|
+
}
|
|
768
|
+
this.emit("sl-date-select", {
|
|
769
|
+
detail: { date: this.selectedDate }
|
|
770
|
+
});
|
|
771
|
+
}
|
|
772
|
+
// 切换到年份选择视图
|
|
773
|
+
showYearSelector() {
|
|
774
|
+
this.view = "years";
|
|
775
|
+
}
|
|
776
|
+
// 切换到月份选择视图
|
|
777
|
+
showMonthSelector() {
|
|
778
|
+
this.view = "months";
|
|
779
|
+
}
|
|
780
|
+
// 导航到上一年
|
|
781
|
+
navigatePrevYear() {
|
|
782
|
+
if (this.isPrevYearDisabled) return;
|
|
783
|
+
const newDate = new Date(this.currentDate);
|
|
784
|
+
newDate.setFullYear(newDate.getFullYear() - 1);
|
|
785
|
+
if (newDate.getFullYear() < 1) newDate.setFullYear(1);
|
|
786
|
+
this.currentDate = newDate;
|
|
787
|
+
}
|
|
788
|
+
// 导航到下一年
|
|
789
|
+
navigateNextYear() {
|
|
790
|
+
if (this.isNextYearDisabled) return;
|
|
791
|
+
const newDate = new Date(this.currentDate);
|
|
792
|
+
newDate.setFullYear(newDate.getFullYear() + 1);
|
|
793
|
+
if (newDate.getFullYear() > 9999) newDate.setFullYear(9999);
|
|
794
|
+
this.currentDate = newDate;
|
|
795
|
+
}
|
|
796
|
+
get isPrevYearDisabled() {
|
|
797
|
+
return this.currentDate.getFullYear() <= 1;
|
|
798
|
+
}
|
|
799
|
+
get isNextYearDisabled() {
|
|
800
|
+
return this.currentDate.getFullYear() >= 9999;
|
|
801
|
+
}
|
|
802
|
+
resetScrollTop() {
|
|
803
|
+
var _a, _b;
|
|
804
|
+
(_b = (_a = this.shadowRoot) == null ? void 0 : _a.querySelectorAll(".calendar__time-column")) == null ? void 0 : _b.forEach((column) => {
|
|
805
|
+
column.scrollTop = 0;
|
|
806
|
+
});
|
|
807
|
+
}
|
|
808
|
+
scrollToTime(part, behavior = "smooth") {
|
|
809
|
+
var _a;
|
|
810
|
+
const column = (_a = this.shadowRoot) == null ? void 0 : _a.querySelector(`.calendar__time-column[part~="${part}"]`);
|
|
811
|
+
if (!column) return;
|
|
812
|
+
const selectedItem = column.querySelector(`.calendar__time-item--selected`);
|
|
813
|
+
if (selectedItem) {
|
|
814
|
+
const columnRect = column.getBoundingClientRect();
|
|
815
|
+
const itemRect = selectedItem.getBoundingClientRect();
|
|
816
|
+
const offset = itemRect.top - columnRect.top;
|
|
817
|
+
const targetScrollTop = column.scrollTop + offset;
|
|
818
|
+
column.scrollTo({
|
|
819
|
+
top: Math.max(0, targetScrollTop),
|
|
820
|
+
behavior
|
|
821
|
+
});
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
padStart(num, length = 2) {
|
|
825
|
+
return String(num).padStart(length, "0");
|
|
826
|
+
}
|
|
827
|
+
async updated(changedProperties) {
|
|
828
|
+
super.updated(changedProperties);
|
|
829
|
+
if (this.type === "datetime" && (changedProperties.has("type") || changedProperties.has("selectedDate"))) {
|
|
830
|
+
if (this.selectedDate) {
|
|
831
|
+
if (changedProperties.has("type")) {
|
|
832
|
+
await this.updateComplete;
|
|
833
|
+
this.scrollToTime("hour", "auto");
|
|
834
|
+
this.scrollToTime("minute", "auto");
|
|
835
|
+
this.scrollToTime("second", "auto");
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
handleMouseDown(event) {
|
|
841
|
+
event.preventDefault();
|
|
842
|
+
}
|
|
843
|
+
handleKeyDown(event) {
|
|
844
|
+
if (event.key === "Enter") {
|
|
845
|
+
event.stopPropagation();
|
|
846
|
+
this.confirmSelection();
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
render() {
|
|
850
|
+
const year = this.currentDate.getFullYear();
|
|
851
|
+
const month = this.currentDate.getMonth();
|
|
852
|
+
const days = this.getMonthDays(this.currentDate);
|
|
853
|
+
const yearRange = this.getYearRange();
|
|
854
|
+
const monthNames = this.getMonthNames();
|
|
855
|
+
const weekdayHeaders = this.getWeekdayHeaders();
|
|
856
|
+
const todayDate = /* @__PURE__ */ new Date();
|
|
857
|
+
const isHiddenTimePicker = this.view !== "days";
|
|
858
|
+
const hiddenCss = isHiddenTimePicker ? "display: none;" : "";
|
|
859
|
+
return x`
|
|
860
|
+
<div class="calendar" part="base" @mousedown=${this.handleMouseDown} @keydown=${this.handleKeyDown}>
|
|
861
|
+
<div class="calendar__content ${this.type === "datetime" ? "calendar__content--has-time" : ""}">
|
|
862
|
+
<div class="calendar__date-section">
|
|
863
|
+
<div class="calendar__header" part="header">
|
|
864
|
+
<div class="flex">
|
|
865
|
+
${this.view !== "years" ? x`<button
|
|
866
|
+
part="nav-button"
|
|
867
|
+
class="calendar__nav-button calendar__nav-button--year"
|
|
868
|
+
@click="${this.navigatePrevYear}"
|
|
869
|
+
?disabled="${this.isPrevYearDisabled}"
|
|
870
|
+
>
|
|
871
|
+
<sl-icon name="chevron-double-left"></sl-icon>
|
|
872
|
+
</button>` : null}
|
|
873
|
+
|
|
874
|
+
<button
|
|
875
|
+
part="nav-button"
|
|
876
|
+
class="calendar__nav-button"
|
|
877
|
+
@click="${this.navigatePrev}"
|
|
878
|
+
?disabled="${this.isPrevDisabled}"
|
|
879
|
+
>
|
|
880
|
+
<sl-icon name="chevron-left"></sl-icon>
|
|
881
|
+
</button>
|
|
882
|
+
</div>
|
|
883
|
+
|
|
884
|
+
<div class="calendar__title" part="title">
|
|
885
|
+
${this.view === "days" ? x`
|
|
886
|
+
<span part="title-year" class="calendar__title-year" @click="${this.showYearSelector}"
|
|
887
|
+
>${this.padStart(year, 4)}${locale.year}</span
|
|
888
|
+
>
|
|
889
|
+
<span part="title-month" class="calendar__title-month" @click="${this.showMonthSelector}"
|
|
890
|
+
>${this.padStart(month + 1)}${locale.month}</span
|
|
891
|
+
>
|
|
892
|
+
` : ""}
|
|
893
|
+
${this.view === "months" ? x`
|
|
894
|
+
<span part="title-year" class="calendar__title-year" @click="${this.showYearSelector}"
|
|
895
|
+
>${this.padStart(year, 4)}${locale.year}</span
|
|
896
|
+
>
|
|
897
|
+
` : ""}
|
|
898
|
+
${this.view === "years" ? x` ${this.padStart(yearRange[0], 4)}-${this.padStart(yearRange[yearRange.length - 1], 4)} ` : ""}
|
|
899
|
+
</div>
|
|
900
|
+
|
|
901
|
+
<div class="flex">
|
|
902
|
+
<button
|
|
903
|
+
part="nav-button"
|
|
904
|
+
class="calendar__nav-button"
|
|
905
|
+
@click="${this.navigateNext}"
|
|
906
|
+
?disabled="${this.isNextDisabled}"
|
|
907
|
+
>
|
|
908
|
+
<sl-icon name="chevron-right"></sl-icon>
|
|
909
|
+
</button>
|
|
910
|
+
${this.view !== "years" ? x`<button
|
|
911
|
+
part="nav-button"
|
|
912
|
+
class="calendar__nav-button calendar__nav-button--year"
|
|
913
|
+
@click="${this.navigateNextYear}"
|
|
914
|
+
?disabled="${this.isNextYearDisabled}"
|
|
915
|
+
>
|
|
916
|
+
<sl-icon name="chevron-double-right"></sl-icon>
|
|
917
|
+
</button>` : null}
|
|
918
|
+
</div>
|
|
919
|
+
</div>
|
|
920
|
+
|
|
921
|
+
<div class="calendar__body" part="body">
|
|
922
|
+
${this.view === "days" ? x`
|
|
923
|
+
<div class="calendar__date-panel" part="date-panel">
|
|
924
|
+
<div class="calendar__grid">
|
|
925
|
+
${weekdayHeaders.map(
|
|
926
|
+
(header) => x` <div class="calendar__day-header" part="day-header">${header}</div> `
|
|
927
|
+
)}
|
|
928
|
+
${days.map((day) => {
|
|
929
|
+
const isSelected = this.selectedDate ? this.selectedDate.getFullYear() === day.year && this.selectedDate.getMonth() === day.month && this.selectedDate.getDate() === day.day : false;
|
|
930
|
+
const isCurrent = todayDate.getFullYear() === day.year && todayDate.getMonth() === day.month && todayDate.getDate() === day.day;
|
|
931
|
+
return x`
|
|
932
|
+
<div class="calendar__day" part="day">
|
|
933
|
+
<div
|
|
934
|
+
class="calendar__day-item ${e({
|
|
935
|
+
"calendar__day--other-month": !day.isCurrentMonth,
|
|
936
|
+
"calendar__day--selected": isSelected,
|
|
937
|
+
"calendar__date--current": isCurrent
|
|
938
|
+
})}"
|
|
939
|
+
@click="${() => this.selectDay(day.day, day.month, day.year)}"
|
|
940
|
+
>
|
|
941
|
+
${day.day}
|
|
942
|
+
</div>
|
|
943
|
+
</div>
|
|
944
|
+
`;
|
|
945
|
+
})}
|
|
946
|
+
</div>
|
|
947
|
+
${this.type !== "datetime" ? x`
|
|
948
|
+
<div class="calendar__day-footer" part="day-footer">
|
|
949
|
+
<sl-button
|
|
950
|
+
variant="text"
|
|
951
|
+
size="small"
|
|
952
|
+
@click="${() => {
|
|
953
|
+
const today = /* @__PURE__ */ new Date();
|
|
954
|
+
this.selectDay(today.getDate(), today.getMonth(), today.getFullYear());
|
|
955
|
+
}}"
|
|
956
|
+
>
|
|
957
|
+
${locale.today}
|
|
958
|
+
</sl-button>
|
|
959
|
+
</div>
|
|
960
|
+
` : ""}
|
|
961
|
+
</div>
|
|
962
|
+
` : ""}
|
|
963
|
+
${this.view === "months" ? x`
|
|
964
|
+
<div class="calendar__month-grid" part="month-grid">
|
|
965
|
+
${monthNames.map((name, index) => {
|
|
966
|
+
const today = /* @__PURE__ */ new Date();
|
|
967
|
+
const isCurrent = today.getFullYear() === year && today.getMonth() === index;
|
|
968
|
+
return x`
|
|
969
|
+
<div
|
|
970
|
+
part="month-item"
|
|
971
|
+
class="calendar__month-item ${e({
|
|
972
|
+
"calendar__date--current": isCurrent
|
|
973
|
+
})}"
|
|
974
|
+
@click="${() => this.selectMonth(index)}"
|
|
975
|
+
>
|
|
976
|
+
${name}
|
|
977
|
+
</div>
|
|
978
|
+
`;
|
|
979
|
+
})}
|
|
980
|
+
</div>
|
|
981
|
+
` : ""}
|
|
982
|
+
${this.view === "years" ? x`
|
|
983
|
+
<div class="calendar__year-grid" part="year-grid">
|
|
984
|
+
${yearRange.map((y) => {
|
|
985
|
+
const today = /* @__PURE__ */ new Date();
|
|
986
|
+
const isCurrent = today.getFullYear() === y;
|
|
987
|
+
return x`
|
|
988
|
+
<div
|
|
989
|
+
part="year-item"
|
|
990
|
+
class="calendar__year-item ${e({
|
|
991
|
+
"calendar__date--current": isCurrent
|
|
992
|
+
})}"
|
|
993
|
+
@click="${() => this.selectYear(y)}"
|
|
994
|
+
>
|
|
995
|
+
${this.padStart(y, 4)}
|
|
996
|
+
</div>
|
|
997
|
+
`;
|
|
998
|
+
})}
|
|
999
|
+
</div>
|
|
1000
|
+
` : ""}
|
|
1001
|
+
</div>
|
|
1002
|
+
</div>
|
|
1003
|
+
|
|
1004
|
+
${this.type === "datetime" ? x`
|
|
1005
|
+
<div class="calendar__time-panel" part="time-panel" style="${hiddenCss}">
|
|
1006
|
+
${(() => {
|
|
1007
|
+
const activeDate = this.selectedDate ? new Date(this.selectedDate) : null;
|
|
1008
|
+
const activeHour = activeDate ? activeDate.getHours() : null;
|
|
1009
|
+
const activeMinute = activeDate ? activeDate.getMinutes() : null;
|
|
1010
|
+
const activeSecond = activeDate ? activeDate.getSeconds() : null;
|
|
1011
|
+
const hours = Array.from({ length: 24 }, (_, index) => index);
|
|
1012
|
+
const minutes = Array.from({ length: 60 }, (_, index) => index);
|
|
1013
|
+
const seconds = Array.from({ length: 60 }, (_, index) => index);
|
|
1014
|
+
return x`
|
|
1015
|
+
<div class="calendar__time-header" part="time-header">
|
|
1016
|
+
<span class="calendar__time-header-item">
|
|
1017
|
+
${activeHour !== null ? this.padStart(activeHour) : "--"}
|
|
1018
|
+
</span>
|
|
1019
|
+
<span class="calendar__time-header-separator">:</span>
|
|
1020
|
+
<span class="calendar__time-header-item">
|
|
1021
|
+
${activeMinute !== null ? this.padStart(activeMinute) : "--"}
|
|
1022
|
+
</span>
|
|
1023
|
+
<span class="calendar__time-header-separator">:</span>
|
|
1024
|
+
<span class="calendar__time-header-item">
|
|
1025
|
+
${activeSecond !== null ? this.padStart(activeSecond) : "--"}
|
|
1026
|
+
</span>
|
|
1027
|
+
</div>
|
|
1028
|
+
<div class="calendar__time-columns" part="time-columns">
|
|
1029
|
+
<div class="calendar__time-column" part="time-column hour">
|
|
1030
|
+
${hours.map(
|
|
1031
|
+
(hour) => x`
|
|
1032
|
+
<div
|
|
1033
|
+
class="calendar__time-item ${e({
|
|
1034
|
+
"calendar__time-item--selected": hour === activeHour
|
|
1035
|
+
})}"
|
|
1036
|
+
part="time-item hour"
|
|
1037
|
+
@click="${() => this.selectHour(hour)}"
|
|
1038
|
+
>
|
|
1039
|
+
${this.padStart(hour)}
|
|
1040
|
+
</div>
|
|
1041
|
+
`
|
|
1042
|
+
)}
|
|
1043
|
+
</div>
|
|
1044
|
+
<div class="calendar__time-column" part="time-column minute">
|
|
1045
|
+
${minutes.map(
|
|
1046
|
+
(minute) => x`
|
|
1047
|
+
<div
|
|
1048
|
+
class="calendar__time-item ${e({
|
|
1049
|
+
"calendar__time-item--selected": minute === activeMinute
|
|
1050
|
+
})}"
|
|
1051
|
+
part="time-item minute"
|
|
1052
|
+
@click="${() => this.selectMinute(minute)}"
|
|
1053
|
+
>
|
|
1054
|
+
${this.padStart(minute)}
|
|
1055
|
+
</div>
|
|
1056
|
+
`
|
|
1057
|
+
)}
|
|
1058
|
+
</div>
|
|
1059
|
+
<div class="calendar__time-column" part="time-column second">
|
|
1060
|
+
${seconds.map(
|
|
1061
|
+
(second) => x`
|
|
1062
|
+
<div
|
|
1063
|
+
class="calendar__time-item ${e({
|
|
1064
|
+
"calendar__time-item--selected": second === activeSecond
|
|
1065
|
+
})}"
|
|
1066
|
+
part="time-item second"
|
|
1067
|
+
@click="${() => this.selectSecond(second)}"
|
|
1068
|
+
>
|
|
1069
|
+
${this.padStart(second)}
|
|
1070
|
+
</div>
|
|
1071
|
+
`
|
|
1072
|
+
)}
|
|
1073
|
+
</div>
|
|
1074
|
+
</div>
|
|
1075
|
+
`;
|
|
1076
|
+
})()}
|
|
1077
|
+
</div>
|
|
1078
|
+
` : ""}
|
|
1079
|
+
</div>
|
|
1080
|
+
${this.type === "datetime" ? x`
|
|
1081
|
+
<div class="calendar__time-footer" part="time-footer" style="${hiddenCss}">
|
|
1082
|
+
<sl-button
|
|
1083
|
+
variant="primary"
|
|
1084
|
+
size="small"
|
|
1085
|
+
@click="${this.confirmSelection}"
|
|
1086
|
+
?disabled=${!this.selectedDate}
|
|
1087
|
+
>
|
|
1088
|
+
${locale.confirmText}
|
|
1089
|
+
</sl-button>
|
|
1090
|
+
</div>
|
|
1091
|
+
` : ""}
|
|
1092
|
+
</div>
|
|
1093
|
+
`;
|
|
1094
|
+
}
|
|
1095
|
+
};
|
|
1096
|
+
SlCalendar.styles = [component_styles_default, calendar_style_default];
|
|
1097
|
+
SlCalendar.dependencies = { "sl-icon": SlIcon, "sl-button": SlButton };
|
|
1098
|
+
__decorateClass([
|
|
1099
|
+
n()
|
|
1100
|
+
], SlCalendar.prototype, "value", 2);
|
|
1101
|
+
__decorateClass([
|
|
1102
|
+
n({ reflect: true })
|
|
1103
|
+
], SlCalendar.prototype, "type", 2);
|
|
1104
|
+
__decorateClass([
|
|
1105
|
+
r()
|
|
1106
|
+
], SlCalendar.prototype, "currentDate", 2);
|
|
1107
|
+
__decorateClass([
|
|
1108
|
+
r()
|
|
1109
|
+
], SlCalendar.prototype, "view", 2);
|
|
1110
|
+
__decorateClass([
|
|
1111
|
+
r()
|
|
1112
|
+
], SlCalendar.prototype, "selectedDate", 2);
|
|
1113
|
+
__decorateClass([
|
|
1114
|
+
r()
|
|
1115
|
+
], SlCalendar.prototype, "isTimeUpdating", 2);
|
|
1116
|
+
__decorateClass([
|
|
1117
|
+
watch("value")
|
|
1118
|
+
], SlCalendar.prototype, "handleValueChange", 1);
|
|
1119
|
+
|
|
1120
|
+
export {
|
|
1121
|
+
parseDatetime,
|
|
1122
|
+
formatDatetime,
|
|
1123
|
+
SlCalendar
|
|
1124
|
+
};
|