pure-uikit 1.2.6 → 1.2.8
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.JJNSIORR.js → chunk.262G2XPG.js} +1 -1
- package/cdn/chunks/{chunk.V6EX5UWC.js → chunk.2ESSJIAE.js} +1 -1
- package/cdn/chunks/{chunk.WKTZHSK6.js → chunk.2FRCEIOG.js} +1 -1
- package/cdn/chunks/{chunk.WRGRVDGZ.js → chunk.2HP7GFP7.js} +1 -1
- package/cdn/chunks/{chunk.S72WDTFH.js → chunk.2KBOR7YV.js} +1 -1
- package/cdn/chunks/{chunk.K2TQTTVN.js → chunk.2PLQVYMM.js} +1 -1
- package/cdn/chunks/{chunk.PFQSWTJY.js → chunk.2WN5ZKST.js} +1 -1
- package/cdn/chunks/{chunk.FQHNNEDJ.js → chunk.35TJRMAO.js} +1 -1
- package/cdn/chunks/{chunk.IR3TJJBA.js → chunk.36HMOL6I.js} +5 -5
- package/{dist/chunks/chunk.AABFK5UA.js → cdn/chunks/chunk.3AHEGSZG.js} +1 -1
- package/{dist/chunks/chunk.4QHHVAOU.js → cdn/chunks/chunk.3GPFLAKC.js} +1 -1
- package/cdn/chunks/{chunk.LGNAFKMZ.js → chunk.3JZ2H7DD.js} +2 -2
- package/{dist/chunks/chunk.4C5MHUEH.js → cdn/chunks/chunk.3PABP62F.js} +1 -1
- package/cdn/chunks/{chunk.ZI3S62ZY.js → chunk.3RSH7TPG.js} +1 -1
- package/{dist/chunks/chunk.PFSJGMWK.js → cdn/chunks/chunk.3S3RLUJO.js} +1 -1
- package/cdn/chunks/{chunk.J6SOIEYN.js → chunk.3TKQM7EC.js} +5 -5
- package/{dist/chunks/chunk.E3PZJTDY.js → cdn/chunks/chunk.4AJM2IY2.js} +1 -1
- package/{dist/chunks/chunk.B5B3CZPD.js → cdn/chunks/chunk.4D4TDCU2.js} +1 -1
- package/cdn/chunks/{chunk.AAIKFAEO.js → chunk.4F5Q5CYQ.js} +1 -1
- package/cdn/chunks/{chunk.FIH4LDMM.js → chunk.4FK7IH5G.js} +1 -1
- package/cdn/chunks/{chunk.NN7BZTKY.js → chunk.4INWWTTW.js} +8 -8
- package/cdn/chunks/{chunk.6V6MYOP7.js → chunk.53TW6UGP.js} +1 -1
- package/cdn/chunks/{chunk.QZRUXIN3.js → chunk.5KXQWQAA.js} +1 -1
- package/cdn/chunks/{chunk.MPFYZUUV.js → chunk.5O7F24MB.js} +1 -1
- package/cdn/chunks/{chunk.A54HP33S.js → chunk.5RQNSOS2.js} +4 -4
- package/cdn/chunks/{chunk.QWDXYAT2.js → chunk.62O2BRFL.js} +1 -1
- package/cdn/chunks/{chunk.WCZH4SZS.js → chunk.667US6NV.js} +1 -1
- package/{dist/chunks/chunk.HVT4D4Z4.js → cdn/chunks/chunk.6N7IYVNO.js} +1 -1
- package/{dist/chunks/chunk.OOBCN7NR.js → cdn/chunks/chunk.6OLF33DM.js} +1 -1
- package/cdn/chunks/{chunk.WSVT3ZQN.js → chunk.6QH2KQRH.js} +7 -7
- package/cdn/chunks/{chunk.HTDGZP2N.js → chunk.73MBEZMR.js} +1 -1
- package/{dist/chunks/chunk.IR3AVITQ.js → cdn/chunks/chunk.7DLCCR2B.js} +1 -1
- package/cdn/chunks/{chunk.EL6SV6DS.js → chunk.7G73BD4J.js} +1 -1
- package/cdn/chunks/{chunk.SQBVPYFJ.js → chunk.7KRF4GZ3.js} +1 -1
- package/cdn/chunks/{chunk.ZCYLMQF3.js → chunk.7ZUMN66X.js} +1 -1
- package/cdn/chunks/{chunk.OM6ODVV3.js → chunk.AFKKC3WS.js} +4 -4
- package/cdn/chunks/{chunk.TCQRZAGP.js → chunk.AFXZTPXI.js} +5 -5
- package/cdn/chunks/{chunk.URICETSK.js → chunk.AIPPZXAF.js} +1 -1
- package/cdn/chunks/{chunk.CQ2EZ7SL.js → chunk.ANL7WLBD.js} +1 -1
- package/{dist/chunks/chunk.REVQIQ6F.js → cdn/chunks/chunk.APCUL7P7.js} +1 -1
- package/cdn/chunks/{chunk.V7L5W2NS.js → chunk.AY5DGO4L.js} +1 -1
- package/cdn/chunks/{chunk.AAD5ADMH.js → chunk.B57C6KWC.js} +1 -1
- package/cdn/chunks/{chunk.BGPFTQNP.js → chunk.B5AKXZZQ.js} +5 -5
- package/cdn/chunks/{chunk.ETRHELLH.js → chunk.BBYHER6J.js} +1 -1
- package/cdn/chunks/{chunk.PPZYQP72.js → chunk.BDV6BSA3.js} +1 -1
- package/cdn/chunks/{chunk.CPOHLAAL.js → chunk.BGW4SN45.js} +1 -1
- package/cdn/chunks/{chunk.4YIZQRZU.js → chunk.BHASYW6C.js} +9 -9
- package/cdn/chunks/{chunk.G2Q7PTAE.js → chunk.BLI22K6H.js} +4 -4
- package/cdn/chunks/{chunk.7FUSVTN2.js → chunk.BQ2XM7QL.js} +5 -5
- package/cdn/chunks/{chunk.ZLWS5VHG.js → chunk.BT5FSJFW.js} +2 -2
- package/cdn/chunks/{chunk.A4PRKPJ3.js → chunk.CHIIBEU7.js} +1 -1
- package/cdn/chunks/{chunk.6DFXSWYY.js → chunk.CIGH3ESA.js} +2 -2
- package/{dist/chunks/chunk.YJKXBTQG.js → cdn/chunks/chunk.CPMHGJET.js} +1 -1
- package/{dist/chunks/chunk.PNLN37FN.js → cdn/chunks/chunk.CY63PHNV.js} +1 -1
- package/cdn/chunks/{chunk.MXX6UBTN.js → chunk.CYWWHTWR.js} +4 -4
- package/cdn/chunks/{chunk.ZJR2SAV2.js → chunk.D45HUXZV.js} +1 -1
- package/cdn/chunks/{chunk.7PBFKPLD.js → chunk.D4RABVSO.js} +1 -1
- package/cdn/chunks/{chunk.DN4TEYYA.js → chunk.DRBFSDPM.js} +1 -1
- package/cdn/chunks/{chunk.F5IMHUOB.js → chunk.DXNBK36P.js} +1 -1
- package/cdn/chunks/{chunk.5QX7SQER.js → chunk.DYI7GDTQ.js} +1 -1
- package/cdn/chunks/{chunk.PXM5T2MV.js → chunk.E4GOPRLE.js} +1 -1
- package/cdn/chunks/{chunk.TSVB4L5A.js → chunk.E5X5RU2R.js} +1 -1
- package/cdn/chunks/{chunk.HEDECKUT.js → chunk.EC2YZQRM.js} +1 -1
- package/cdn/chunks/{chunk.IRCLK7HI.js → chunk.EFCUXB4Y.js} +1 -1
- package/cdn/chunks/{chunk.4LLRP3P5.js → chunk.EJAYBRY6.js} +1 -1
- package/cdn/chunks/{chunk.HSKHTFX3.js → chunk.EQFWRHQZ.js} +1 -1
- package/cdn/chunks/{chunk.IOVJNW42.js → chunk.ETEKYEAJ.js} +1 -1
- package/cdn/chunks/{chunk.U4MTVL5G.js → chunk.FAWAP6YG.js} +1 -1
- package/cdn/chunks/{chunk.MOI2367I.js → chunk.FBQAIIOX.js} +5 -5
- package/cdn/chunks/{chunk.WZFKKN5X.js → chunk.FDO2YHEB.js} +1 -1
- package/{dist/chunks/chunk.DSOUBDJW.js → cdn/chunks/chunk.FDWYF766.js} +1 -1
- package/cdn/chunks/{chunk.L4OAFJI6.js → chunk.GCJ5DFJ2.js} +324 -168
- package/cdn/chunks/{chunk.JXC6CJZC.js → chunk.GDGPWQHJ.js} +1 -1
- package/cdn/chunks/{chunk.YZUWZL57.js → chunk.GMT2YFRN.js} +1 -1
- package/cdn/chunks/{chunk.F4Z45DXC.js → chunk.GNJE4WXA.js} +1 -1
- package/cdn/chunks/{chunk.SGLQUMXV.js → chunk.GU3FYX7O.js} +1 -1
- package/{dist/chunks/chunk.4ALLOLPA.js → cdn/chunks/chunk.GU6SSS6W.js} +1 -1
- package/cdn/chunks/{chunk.N2WPGHAF.js → chunk.H35CANYZ.js} +1 -1
- package/cdn/chunks/{chunk.AHEG2XSA.js → chunk.H3SCFJEQ.js} +1 -1
- package/{dist/chunks/chunk.QIXSM6VF.js → cdn/chunks/chunk.H44WOLCB.js} +1 -1
- package/{dist/chunks/chunk.RMI7F5E4.js → cdn/chunks/chunk.H4NY56D5.js} +1 -1
- package/cdn/chunks/{chunk.L7AM3Q3H.js → chunk.HD6SIOAT.js} +1 -1
- package/cdn/chunks/{chunk.RRGT2VT7.js → chunk.HG3FLGE7.js} +1 -1
- package/cdn/chunks/{chunk.TGDHS2AC.js → chunk.HKQG5KDH.js} +1 -1
- package/cdn/chunks/{chunk.6H5CKLID.js → chunk.HM4ITRZV.js} +1 -1
- package/cdn/chunks/{chunk.EY555SKA.js → chunk.HVN65P22.js} +1 -1
- package/cdn/chunks/{chunk.DBFHP6RZ.js → chunk.HXS4WXPN.js} +1 -1
- package/cdn/chunks/{chunk.2CA346TA.js → chunk.HYLKQASN.js} +1 -1
- package/cdn/chunks/{chunk.25KDAD3C.js → chunk.I7KVFXTH.js} +1 -1
- package/cdn/chunks/{chunk.TL7EGEPQ.js → chunk.IMJWJMEC.js} +4 -4
- package/cdn/chunks/{chunk.CLFUW5ST.js → chunk.ISJB46KS.js} +1 -1
- package/{dist/chunks/chunk.6MASKGHA.js → cdn/chunks/chunk.J4MXT2QY.js} +1 -1
- package/cdn/chunks/{chunk.RVECB5RW.js → chunk.JCPIFB44.js} +10 -10
- package/cdn/chunks/{chunk.WRFITX74.js → chunk.JDGNFWDD.js} +1 -1
- package/cdn/chunks/{chunk.GIEXEPL2.js → chunk.JGK2MHFU.js} +5 -5
- package/cdn/chunks/{chunk.66JKFNLQ.js → chunk.JJHPZMKE.js} +5 -5
- package/cdn/chunks/{chunk.X6A35SSK.js → chunk.JKHUPYEP.js} +1 -1
- package/cdn/chunks/{chunk.KXQ6XT6W.js → chunk.JO26TVVS.js} +5 -5
- package/cdn/chunks/{chunk.Q32XX5OR.js → chunk.K2MZHMI2.js} +2 -2
- package/cdn/chunks/{chunk.Y6PP72ZN.js → chunk.KCOY2KKO.js} +1 -1
- package/cdn/chunks/{chunk.HOEPKCLY.js → chunk.KJMGLAWB.js} +1 -1
- package/cdn/chunks/{chunk.3LWHHJGA.js → chunk.KLHI4NIW.js} +1 -1
- package/{dist/chunks/chunk.2B7YR4WT.js → cdn/chunks/chunk.KLZ6KOT2.js} +1 -1
- package/cdn/chunks/{chunk.IQXJEFZL.js → chunk.KPPUEGHP.js} +5 -5
- package/cdn/chunks/{chunk.K6RYDQPO.js → chunk.KR3JK73E.js} +4 -4
- package/{dist/chunks/chunk.ZTUKCCZI.js → cdn/chunks/chunk.KSUEYIYT.js} +1 -1
- package/cdn/chunks/{chunk.PPFTKV7I.js → chunk.LFRL3YHG.js} +1 -1
- package/cdn/chunks/{chunk.KUZYIZGF.js → chunk.LP3DS4BR.js} +8 -8
- package/cdn/chunks/{chunk.XSBKR5TE.js → chunk.MEGVCMAE.js} +1 -1
- package/cdn/chunks/{chunk.KDYVYE7I.js → chunk.MPMZUY4P.js} +1 -1
- package/cdn/chunks/{chunk.L2IL6W4R.js → chunk.MTESSLFD.js} +1 -1
- package/{dist/chunks/chunk.5EIUDQ5A.js → cdn/chunks/chunk.N2ZOEFEP.js} +1 -1
- package/cdn/chunks/{chunk.VFEVWOMB.js → chunk.N7D4Y4E7.js} +1 -1
- package/cdn/chunks/{chunk.ZPAYP62T.js → chunk.N7JEAQ2R.js} +1 -1
- package/cdn/chunks/{chunk.R7VHEOLO.js → chunk.NCOG5RNA.js} +1 -1
- package/cdn/chunks/{chunk.XFOE3QAV.js → chunk.NEZ27QTY.js} +1 -1
- package/cdn/chunks/{chunk.TAWTUOBR.js → chunk.NIYEVFDR.js} +1 -1
- package/{dist/chunks/chunk.TD7RAND7.js → cdn/chunks/chunk.NKGYCFSU.js} +1 -1
- package/cdn/chunks/{chunk.7PLI5RE5.js → chunk.NLIUOOZY.js} +1 -1
- package/cdn/chunks/{chunk.WC53GKC3.js → chunk.NP35FHIP.js} +1 -1
- package/cdn/chunks/{chunk.54ZEDPRJ.js → chunk.NVMPX7ED.js} +1 -1
- package/cdn/chunks/{chunk.EJR5BV6Y.js → chunk.O2T7PZM6.js} +1 -1
- package/cdn/chunks/{chunk.VOQYOWQC.js → chunk.O7F7356B.js} +1 -1
- package/cdn/chunks/{chunk.ODHWU2RG.js → chunk.OB2EYH2F.js} +1 -1
- package/cdn/chunks/{chunk.MMYQXBJQ.js → chunk.ODS6JPTV.js} +2 -2
- package/cdn/chunks/{chunk.HESJOESW.js → chunk.OFXMRIBV.js} +1 -1
- package/{dist/chunks/chunk.MYXEWDK7.js → cdn/chunks/chunk.OMDGCLOM.js} +1 -1
- package/cdn/chunks/{chunk.7UJ6LNSF.js → chunk.OOMXYWHT.js} +1 -1
- package/cdn/chunks/{chunk.OQLY5XP3.js → chunk.OTWDF7RR.js} +5 -5
- package/cdn/chunks/{chunk.OXOUAKVN.js → chunk.PANFW2HS.js} +1 -1
- package/{dist/chunks/chunk.UDO75PUM.js → cdn/chunks/chunk.PDWRNMR7.js} +1 -1
- package/{dist/chunks/chunk.RG7O6SSE.js → cdn/chunks/chunk.PJLBJYOZ.js} +1 -1
- package/{dist/chunks/chunk.BSES4I4Q.js → cdn/chunks/chunk.PRKYHJQR.js} +1 -1
- package/cdn/chunks/{chunk.I7M6NKBS.js → chunk.PSVQ47JE.js} +1 -1
- package/{dist/chunks/chunk.PYW47UHX.js → cdn/chunks/chunk.Q5EDTKMF.js} +1 -1
- package/cdn/chunks/{chunk.GAR7O45I.js → chunk.QCBU6OUN.js} +1 -1
- package/cdn/chunks/{chunk.D2LFZURR.js → chunk.QK44EO7H.js} +1 -1
- package/cdn/chunks/{chunk.6ROL2WR4.js → chunk.QK4E6B5Q.js} +12 -12
- package/{dist/chunks/chunk.OPTK6BRM.js → cdn/chunks/chunk.QRSCX5B3.js} +1 -1
- package/cdn/chunks/{chunk.SC3KDKL7.js → chunk.R7FNSMMS.js} +1 -1
- package/cdn/chunks/{chunk.FNJVOGHE.js → chunk.RLMPVOX6.js} +1 -1
- package/cdn/chunks/{chunk.33LL7FF7.js → chunk.RSUW3MZM.js} +1 -1
- package/cdn/chunks/{chunk.WYFVN4Z7.js → chunk.RZVDHAGM.js} +1 -1
- package/cdn/chunks/{chunk.3CVCC465.js → chunk.S4PG3CWC.js} +1 -1
- package/cdn/chunks/{chunk.X657TUZI.js → chunk.S6TD5YQI.js} +1 -1
- package/cdn/chunks/{chunk.PA63WUSZ.js → chunk.SF5VR2UW.js} +4 -4
- package/cdn/chunks/{chunk.5P2UBGVK.js → chunk.SGBUBGXF.js} +1 -1
- package/{dist/chunks/chunk.WOEKDJC3.js → cdn/chunks/chunk.SIVIZINV.js} +1 -1
- package/cdn/chunks/{chunk.NTDNCIBV.js → chunk.SPHIJT5U.js} +1 -1
- package/cdn/chunks/{chunk.NFPPYQML.js → chunk.SROTEAPM.js} +1 -1
- package/cdn/chunks/{chunk.PZBS7S6V.js → chunk.SZYOSHX5.js} +1 -1
- package/cdn/chunks/{chunk.JEC3GHVB.js → chunk.T5TRFSHR.js} +1 -1
- package/cdn/chunks/{chunk.ZAMVIM5B.js → chunk.TAMK5WZM.js} +1 -1
- package/cdn/chunks/{chunk.36AT7HKF.js → chunk.TIHEAW5A.js} +6 -6
- package/{dist/chunks/chunk.GVVCBQU5.js → cdn/chunks/chunk.TL4DEUFW.js} +1 -1
- package/cdn/chunks/{chunk.HGOKDHF4.js → chunk.TOHKADBI.js} +5 -5
- package/cdn/chunks/{chunk.W4FIARJB.js → chunk.TQ475U3Q.js} +1 -1
- package/cdn/chunks/{chunk.N2ON4XIS.js → chunk.TRHVA7PZ.js} +5 -5
- package/{dist/chunks/chunk.UP7C7YUI.js → cdn/chunks/chunk.TSHSABEB.js} +1 -1
- package/{dist/chunks/chunk.JTIHNKZS.js → cdn/chunks/chunk.TT6WUJHI.js} +1 -1
- package/cdn/chunks/{chunk.L3GINJ5T.js → chunk.TZKTI57S.js} +1 -1
- package/cdn/chunks/{chunk.ZYIGFGXC.js → chunk.UHHZCBHA.js} +1 -1
- package/cdn/chunks/{chunk.OX2327UI.js → chunk.UKR6PHUA.js} +1 -1
- package/cdn/chunks/{chunk.UMEOH5UY.js → chunk.UKYDBSEE.js} +8 -8
- package/cdn/chunks/{chunk.IINQ2BBL.js → chunk.URF5MFXP.js} +1 -1
- package/{dist/chunks/chunk.VJIWCU53.js → cdn/chunks/chunk.USJW5HWF.js} +1 -1
- package/cdn/chunks/{chunk.F7EELMQZ.js → chunk.V4EXRYBG.js} +5 -5
- package/cdn/chunks/{chunk.QDZ7OLXI.js → chunk.VLGRKEQG.js} +1 -1
- package/cdn/chunks/{chunk.DO4RSBXG.js → chunk.VOQTXARA.js} +1 -1
- package/cdn/chunks/{chunk.QYKZOPU7.js → chunk.VRDVF2K2.js} +32 -9
- package/cdn/chunks/{chunk.EK34CRCV.js → chunk.VSU6BGRP.js} +1 -1
- package/{dist/chunks/chunk.NT2MAYLM.js → cdn/chunks/chunk.VSXAXFYC.js} +1 -1
- package/cdn/chunks/{chunk.UWNLP2UR.js → chunk.VVESLZCG.js} +1 -1
- package/cdn/chunks/{chunk.WJH3TECG.js → chunk.W3GUHMX3.js} +8 -8
- package/cdn/chunks/{chunk.USTQDBHG.js → chunk.WCPJ4JKI.js} +1 -1
- package/cdn/chunks/{chunk.GJHNFMUO.js → chunk.WEBF54JM.js} +1 -1
- package/cdn/chunks/{chunk.JV7XJ4CP.js → chunk.WIKN4BDE.js} +1 -1
- package/cdn/chunks/{chunk.6IUBEWYP.js → chunk.WQ33AH5E.js} +1 -1
- package/cdn/chunks/{chunk.34ZP6BOO.js → chunk.WSOIPR4T.js} +4 -4
- package/cdn/chunks/{chunk.QFPBXFG5.js → chunk.WUC32RTJ.js} +4 -4
- package/cdn/chunks/{chunk.MGETRRKF.js → chunk.WXRDMAKD.js} +1 -1
- package/cdn/chunks/{chunk.WH36CXUT.js → chunk.X42PNX23.js} +1 -1
- package/cdn/chunks/{chunk.IJRKJX5M.js → chunk.XDVZN2I5.js} +1 -1
- package/{dist/chunks/chunk.C46AAWDC.js → cdn/chunks/chunk.XOQVJFFJ.js} +1 -1
- package/cdn/chunks/{chunk.AMT5KHFT.js → chunk.XUX6UOCL.js} +1 -1
- package/cdn/chunks/{chunk.LQX6TBTM.js → chunk.XWKBLEY5.js} +1 -1
- package/cdn/chunks/{chunk.IAVD3OOO.js → chunk.Y2EB5PFM.js} +5 -5
- package/cdn/chunks/{chunk.YDVOQVLX.js → chunk.YEUNYX4R.js} +1 -1
- package/cdn/chunks/{chunk.PPU475XH.js → chunk.YNICVDZJ.js} +1 -1
- package/{dist/chunks/chunk.BHGF3FST.js → cdn/chunks/chunk.YVPYFB27.js} +1 -1
- package/cdn/chunks/{chunk.QLOHL2QR.js → chunk.ZLN7F5BE.js} +1 -1
- package/cdn/components/alert/alert.component.js +10 -10
- package/cdn/components/alert/alert.js +11 -11
- package/cdn/components/animated-image/animated-image.component.js +5 -5
- package/cdn/components/animated-image/animated-image.js +6 -6
- package/cdn/components/animation/animation.component.js +3 -3
- package/cdn/components/animation/animation.js +4 -4
- package/cdn/components/avatar/avatar.component.js +6 -6
- package/cdn/components/avatar/avatar.js +7 -7
- package/cdn/components/badge/badge.component.js +2 -2
- package/cdn/components/badge/badge.js +3 -3
- package/cdn/components/breadcrumb/breadcrumb.component.js +4 -4
- package/cdn/components/breadcrumb/breadcrumb.js +5 -5
- 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 +9 -9
- package/cdn/components/button/button.js +10 -10
- 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.d.ts +12 -0
- package/cdn/components/calendar/calendar.component.js +12 -12
- package/cdn/components/calendar/calendar.js +13 -13
- package/cdn/components/calendar/calendar.styles.js +1 -1
- package/cdn/components/card/card.component.js +2 -2
- package/cdn/components/card/card.js +3 -3
- package/cdn/components/carousel/carousel.component.js +6 -6
- package/cdn/components/carousel/carousel.js +7 -7
- 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 +7 -7
- package/cdn/components/checkbox/checkbox.js +8 -8
- package/cdn/components/color-picker/color-picker.component.js +16 -16
- package/cdn/components/color-picker/color-picker.js +17 -17
- package/cdn/components/copy-button/copy-button.component.js +8 -8
- package/cdn/components/copy-button/copy-button.js +9 -9
- package/cdn/components/details/details.component.js +6 -6
- package/cdn/components/details/details.js +7 -7
- package/cdn/components/dialog/dialog.component.js +9 -9
- package/cdn/components/dialog/dialog.js +10 -10
- package/cdn/components/divider/divider.component.js +2 -2
- package/cdn/components/divider/divider.js +3 -3
- package/cdn/components/drawer/drawer.component.js +9 -9
- package/cdn/components/drawer/drawer.js +10 -10
- package/cdn/components/dropdown/dropdown.component.js +6 -6
- package/cdn/components/dropdown/dropdown.js +7 -7
- package/cdn/components/file-upload/file-upload.component.js +11 -11
- package/cdn/components/file-upload/file-upload.js +12 -12
- package/cdn/components/file-upload-item/file-upload-item.component.js +5 -5
- package/cdn/components/file-upload-item/file-upload-item.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 +3 -3
- package/cdn/components/icon/icon.js +4 -4
- package/cdn/components/icon-button/icon-button.component.js +6 -6
- package/cdn/components/icon-button/icon-button.js +7 -7
- package/cdn/components/image-comparer/image-comparer.component.js +6 -6
- package/cdn/components/image-comparer/image-comparer.js +7 -7
- package/cdn/components/include/include.component.js +2 -2
- package/cdn/components/include/include.js +3 -3
- package/cdn/components/input/input.component.js +9 -9
- package/cdn/components/input/input.js +10 -10
- 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 +10 -10
- package/cdn/components/menu-item/menu-item.js +11 -11
- package/cdn/components/menu-item/submenu-controller.js +2 -2
- 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 +6 -6
- package/cdn/components/option/option.js +7 -7
- package/cdn/components/paginate/paginate.component.js +6 -6
- package/cdn/components/paginate/paginate.js +7 -7
- 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 +5 -5
- package/cdn/components/progress-bar/progress-bar.js +6 -6
- 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 +6 -6
- package/cdn/components/radio/radio.js +7 -7
- package/cdn/components/radio-button/radio-button.component.js +2 -2
- package/cdn/components/radio-button/radio-button.js +3 -3
- package/cdn/components/radio-group/radio-group.component.js +3 -3
- package/cdn/components/radio-group/radio-group.js +4 -4
- package/cdn/components/range/range.component.js +7 -7
- package/cdn/components/range/range.js +8 -8
- package/cdn/components/rating/rating.component.js +6 -6
- package/cdn/components/rating/rating.js +7 -7
- 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 +11 -11
- package/cdn/components/select/select.js +12 -12
- 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 +4 -4
- package/cdn/components/switch/switch.js +5 -5
- package/cdn/components/tab/tab.component.js +8 -8
- package/cdn/components/tab/tab.js +9 -9
- package/cdn/components/tab-group/tab-group.component.js +8 -8
- package/cdn/components/tab-group/tab-group.js +9 -9
- 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/table.component.js +14 -14
- package/cdn/components/table/table.js +15 -15
- package/cdn/components/tag/tag.component.js +8 -8
- package/cdn/components/tag/tag.js +9 -9
- package/cdn/components/textarea/textarea.component.js +4 -4
- package/cdn/components/textarea/textarea.js +5 -5
- package/cdn/components/tooltip/tooltip.component.js +5 -5
- package/cdn/components/tooltip/tooltip.js +6 -6
- package/cdn/components/tree/tree.component.js +12 -12
- package/cdn/components/tree/tree.js +13 -13
- package/cdn/components/tree-item/tree-item.component.js +11 -11
- package/cdn/components/tree-item/tree-item.js +12 -12
- 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 +207 -187
- package/cdn/internal/calendar.d.ts +3 -0
- package/cdn/pure-ui.js +149 -149
- package/cdn/react/alert/index.js +11 -11
- package/cdn/react/animated-image/index.js +6 -6
- package/cdn/react/animation/index.js +4 -4
- package/cdn/react/avatar/index.js +7 -7
- package/cdn/react/badge/index.js +3 -3
- package/cdn/react/breadcrumb/index.js +5 -5
- package/cdn/react/breadcrumb-item/index.js +3 -3
- package/cdn/react/button/index.js +10 -10
- package/cdn/react/button-group/index.js +3 -3
- package/cdn/react/calendar/index.js +13 -13
- package/cdn/react/card/index.js +3 -3
- package/cdn/react/carousel/index.js +7 -7
- package/cdn/react/carousel-item/index.js +3 -3
- package/cdn/react/checkbox/index.js +8 -8
- package/cdn/react/color-picker/index.js +17 -17
- package/cdn/react/copy-button/index.js +9 -9
- package/cdn/react/details/index.js +7 -7
- package/cdn/react/dialog/index.js +10 -10
- package/cdn/react/divider/index.js +3 -3
- package/cdn/react/drawer/index.js +10 -10
- package/cdn/react/dropdown/index.js +7 -7
- package/cdn/react/file-upload/index.js +12 -12
- package/cdn/react/file-upload-item/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 +4 -4
- package/cdn/react/icon-button/index.js +7 -7
- package/cdn/react/image-comparer/index.js +7 -7
- package/cdn/react/include/index.js +3 -3
- package/cdn/react/index.d.ts +1 -1
- package/cdn/react/index.js +147 -147
- package/cdn/react/input/index.js +10 -10
- package/cdn/react/menu/index.js +3 -3
- package/cdn/react/menu-item/index.js +11 -11
- package/cdn/react/menu-label/index.js +3 -3
- package/cdn/react/mutation-observer/index.js +3 -3
- package/cdn/react/option/index.js +7 -7
- package/cdn/react/paginate/index.js +7 -7
- package/cdn/react/popup/index.js +3 -3
- package/cdn/react/progress-bar/index.js +6 -6
- package/cdn/react/progress-ring/index.js +3 -3
- package/cdn/react/qr-code/index.js +3 -3
- package/cdn/react/radio/index.js +7 -7
- package/cdn/react/radio-button/index.js +3 -3
- package/cdn/react/radio-group/index.js +4 -4
- package/cdn/react/range/index.js +8 -8
- package/cdn/react/rating/index.js +7 -7
- package/cdn/react/relative-time/index.js +3 -3
- package/cdn/react/resize-observer/index.js +3 -3
- package/cdn/react/select/index.js +12 -12
- 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 +5 -5
- package/cdn/react/tab/index.js +9 -9
- package/cdn/react/tab-group/index.js +9 -9
- package/cdn/react/tab-panel/index.js +3 -3
- package/cdn/react/table/index.js +15 -15
- package/cdn/react/tag/index.js +9 -9
- package/cdn/react/textarea/index.js +5 -5
- package/cdn/react/tooltip/index.js +6 -6
- package/cdn/react/tree/index.js +13 -13
- package/cdn/react/tree-item/index.js +12 -12
- package/cdn/react/visually-hidden/index.js +3 -3
- package/cdn/types/vue/index.d.ts +47 -42
- package/cdn/vscode.html-custom-data.json +32 -27
- package/cdn/web-types.json +88 -75
- package/dist/chunks/{chunk.YCNWBXDO.js → chunk.22S27QDU.js} +1 -1
- package/{cdn/chunks/chunk.TVH3XRWS.js → dist/chunks/chunk.26BDITGL.js} +1 -1
- package/{cdn/chunks/chunk.2YFCSE3I.js → dist/chunks/chunk.2E6QCX7A.js} +1 -1
- package/dist/chunks/{chunk.YHZHA7UR.js → chunk.2EE3TRTW.js} +2 -2
- package/dist/chunks/{chunk.D22OPN6O.js → chunk.2SHLOQBT.js} +2 -2
- package/dist/chunks/{chunk.FI7S4U2Z.js → chunk.3DUUFLU7.js} +1 -1
- package/dist/chunks/{chunk.WDBD2IFJ.js → chunk.3GEE6YAM.js} +1 -1
- package/dist/chunks/{chunk.6BF5AE36.js → chunk.3GNCCAXT.js} +2 -2
- package/dist/chunks/{chunk.UGYIO7S4.js → chunk.3IL5S3VW.js} +1 -1
- package/dist/chunks/{chunk.GZXXFKEK.js → chunk.3JQSVJRA.js} +1 -1
- package/{cdn/chunks/chunk.OAZKV3ON.js → dist/chunks/chunk.3LLXPERS.js} +1 -1
- package/dist/chunks/{chunk.JYNLVZPA.js → chunk.3SF3N75N.js} +1 -1
- package/dist/chunks/{chunk.KBHY4WIU.js → chunk.42NOQNAO.js} +1 -1
- package/dist/chunks/{chunk.UTVTHAQN.js → chunk.46S7KY46.js} +7 -7
- package/dist/chunks/{chunk.VDJTO6RO.js → chunk.4FKKCJXP.js} +1 -1
- package/dist/chunks/{chunk.QHDDJCEZ.js → chunk.4VNRIOEA.js} +1 -1
- package/dist/chunks/{chunk.VXDE3WPV.js → chunk.4X2ROW7I.js} +5 -5
- package/dist/chunks/{chunk.NXE5C72S.js → chunk.52GOVO3G.js} +1 -1
- package/dist/chunks/{chunk.GNMCBWRV.js → chunk.5E6UYXNQ.js} +1 -1
- package/dist/chunks/{chunk.HCLDRA7L.js → chunk.5EKJ6LYR.js} +1 -1
- package/dist/chunks/{chunk.46I7ABLU.js → chunk.5F2UNT6Y.js} +1 -1
- package/{cdn/chunks/chunk.AMOSZFZH.js → dist/chunks/chunk.5JJR7KCC.js} +1 -1
- package/dist/chunks/{chunk.3ZCGJZDE.js → chunk.5K3MSVIJ.js} +1 -1
- package/dist/chunks/{chunk.FOEI4FOX.js → chunk.5KXTAAGX.js} +1 -1
- package/dist/chunks/{chunk.VPBM6YV4.js → chunk.5TYPZT6W.js} +1 -1
- package/dist/chunks/{chunk.5HBPZRTJ.js → chunk.5UBYJULX.js} +1 -1
- package/{cdn/chunks/chunk.2MI5K43O.js → dist/chunks/chunk.5WKG6GMA.js} +1 -1
- package/dist/chunks/{chunk.BXRDV7ZJ.js → chunk.5XMTNOYZ.js} +1 -1
- package/dist/chunks/{chunk.2KEEQ4CZ.js → chunk.625JCCW4.js} +1 -1
- package/dist/chunks/{chunk.7DH3BLP4.js → chunk.6EOXF65X.js} +1 -1
- package/{cdn/chunks/chunk.7JDLQVG4.js → dist/chunks/chunk.6PDKKL6P.js} +1 -1
- package/dist/chunks/{chunk.3CETEWGU.js → chunk.6Q7T6JHO.js} +4 -4
- package/{cdn/chunks/chunk.VJYNQIHI.js → dist/chunks/chunk.6V2DHMLW.js} +1 -1
- package/dist/chunks/{chunk.3266TMKF.js → chunk.6YPZO46U.js} +1 -1
- package/dist/chunks/{chunk.ILUMFV7Q.js → chunk.74KLHLJT.js} +4 -4
- package/dist/chunks/{chunk.MMOVNDB5.js → chunk.7D42THX2.js} +1 -1
- package/dist/chunks/{chunk.BM35LFDN.js → chunk.7F6I3P6K.js} +1 -1
- package/dist/chunks/{chunk.IT34EKJX.js → chunk.7K4GPKG2.js} +2 -2
- package/dist/chunks/{chunk.6KMBQTTC.js → chunk.7K6SVUBX.js} +1 -1
- package/{cdn/chunks/chunk.2CJSNCQN.js → dist/chunks/chunk.7KIEY5E6.js} +1 -1
- package/dist/chunks/{chunk.55W5LTVW.js → chunk.7NL33ELY.js} +1 -1
- package/{cdn/chunks/chunk.XFM4MY5E.js → dist/chunks/chunk.7W5O26CO.js} +1 -1
- package/dist/chunks/{chunk.FDH7RVAM.js → chunk.A4P2VJUM.js} +7 -7
- package/dist/chunks/{chunk.5U2DTMOM.js → chunk.A6YWKDBO.js} +1 -1
- package/dist/chunks/{chunk.L2HNDMOQ.js → chunk.A7I4JQTD.js} +1 -1
- package/dist/chunks/{chunk.23GKYOWI.js → chunk.AEZAI6S4.js} +1 -1
- package/dist/chunks/{chunk.DQFAPQUW.js → chunk.AIQBBG5N.js} +1 -1
- package/dist/chunks/{chunk.SAHVKRVZ.js → chunk.APMVR4VH.js} +1 -1
- package/dist/chunks/{chunk.OOFLED22.js → chunk.AYRR6YHQ.js} +1 -1
- package/dist/chunks/{chunk.NQ5K3TUL.js → chunk.BAQEEPBG.js} +1 -1
- package/dist/chunks/{chunk.ROOO6J45.js → chunk.BP4POHUF.js} +2 -2
- package/{cdn/chunks/chunk.3OL5SWVJ.js → dist/chunks/chunk.BR24ZHHV.js} +1 -1
- package/{cdn/chunks/chunk.DSM6W7H4.js → dist/chunks/chunk.BRIQ2QXF.js} +1 -1
- package/{cdn/chunks/chunk.2RDS35ON.js → dist/chunks/chunk.C3P5NVGH.js} +1 -1
- package/{cdn/chunks/chunk.IDGNSULA.js → dist/chunks/chunk.CKH5GXJ4.js} +1 -1
- package/dist/chunks/{chunk.HOMDHMAZ.js → chunk.CZ6BCA2S.js} +1 -1
- package/dist/chunks/{chunk.3YZ2AF47.js → chunk.DBNKDQ72.js} +1 -1
- package/dist/chunks/{chunk.AWO4PNYJ.js → chunk.DBUNTM3V.js} +1 -1
- package/dist/chunks/{chunk.REKTFLI5.js → chunk.DKTOLZ36.js} +1 -1
- package/dist/chunks/{chunk.N2BLSGKM.js → chunk.DTB3ZNTR.js} +1 -1
- package/dist/chunks/{chunk.LBBAW4N6.js → chunk.DTMWCIWU.js} +1 -1
- package/dist/chunks/{chunk.L3ZGMU5O.js → chunk.DTUQDLHQ.js} +1 -1
- package/dist/chunks/{chunk.GPXT2IS2.js → chunk.E6FOFDIP.js} +1 -1
- package/dist/chunks/{chunk.VT6V5X4P.js → chunk.EDIE2I2L.js} +1 -1
- package/dist/chunks/{chunk.KWAXKE4V.js → chunk.EE7FXZFM.js} +1 -1
- package/{cdn/chunks/chunk.CJEJR2GR.js → dist/chunks/chunk.EHGKW2NI.js} +1 -1
- package/dist/chunks/{chunk.2SWS5DGL.js → chunk.EKS346OT.js} +1 -1
- package/{cdn/chunks/chunk.2QNELDKH.js → dist/chunks/chunk.EQ5CSKT4.js} +1 -1
- package/dist/chunks/{chunk.A7AG3NFN.js → chunk.EZSMMGLR.js} +1 -1
- package/{cdn/chunks/chunk.4TTJ6UAL.js → dist/chunks/chunk.F3LH3EQR.js} +1 -1
- package/{cdn/chunks/chunk.7BIVPOYD.js → dist/chunks/chunk.F3S2LFBR.js} +1 -1
- package/dist/chunks/{chunk.MBCYGV2A.js → chunk.F4FBYOIO.js} +1 -1
- package/dist/chunks/{chunk.OVC7M3UE.js → chunk.F554KNLW.js} +1 -1
- package/{cdn/chunks/chunk.XCJGPWGG.js → dist/chunks/chunk.FCMIRHFC.js} +1 -1
- package/dist/chunks/{chunk.6TAAIIS5.js → chunk.FEFSNBQB.js} +1 -1
- package/dist/chunks/{chunk.7HJP4HHW.js → chunk.FQUIVS7Q.js} +1 -1
- package/dist/chunks/{chunk.GDPXMM44.js → chunk.FR3Y3F53.js} +5 -5
- package/{cdn/chunks/chunk.JXNWLSRM.js → dist/chunks/chunk.FVFSV4JL.js} +1 -1
- package/dist/chunks/{chunk.QMQCP2UV.js → chunk.FWUS3VXA.js} +1 -1
- package/dist/chunks/{chunk.3LKEI7XF.js → chunk.GCIPEPMA.js} +1 -1
- package/dist/chunks/{chunk.ZLZECBBM.js → chunk.GTN45ADV.js} +2 -2
- package/dist/chunks/{chunk.DKJXNSI3.js → chunk.GZ34BNGG.js} +4 -4
- package/dist/chunks/{chunk.O7JGHMZK.js → chunk.H7ULY5XF.js} +1 -1
- package/dist/chunks/{chunk.DY2SOBEG.js → chunk.HCL3KNCB.js} +1 -1
- package/dist/chunks/{chunk.IIY2257P.js → chunk.HEQUBOWZ.js} +1 -1
- package/dist/chunks/{chunk.3K5SOXPC.js → chunk.HLEM2LKP.js} +1 -1
- package/dist/chunks/{chunk.6YPRL3W2.js → chunk.HQDQCKT5.js} +4 -4
- package/dist/chunks/{chunk.CZDB5ACL.js → chunk.HYEPIERO.js} +1 -1
- package/dist/chunks/{chunk.ONDJIB3R.js → chunk.IDMELYWZ.js} +5 -5
- package/dist/chunks/{chunk.UMDQVFBT.js → chunk.IIH6DQ66.js} +1 -1
- package/{cdn/chunks/chunk.ABTYEJOL.js → dist/chunks/chunk.ILVBTCS2.js} +1 -1
- package/dist/chunks/{chunk.AXRCAGA7.js → chunk.ISK7IPWE.js} +1 -1
- package/dist/chunks/{chunk.O5ROCAAP.js → chunk.JDKQRG5F.js} +1 -1
- package/dist/chunks/{chunk.KMWG534Z.js → chunk.JGPIG45R.js} +1 -1
- package/dist/chunks/{chunk.JH5XQFHJ.js → chunk.JLPFG5FA.js} +1 -1
- package/dist/chunks/{chunk.KWKGSYVC.js → chunk.JP455NJD.js} +1 -1
- package/dist/chunks/{chunk.RJGVAK4L.js → chunk.JRII2BZH.js} +4 -4
- package/dist/chunks/{chunk.SCFOZPCQ.js → chunk.K6SP2PL3.js} +5 -5
- package/dist/chunks/{chunk.EY3VAICQ.js → chunk.KDQDCGJT.js} +5 -5
- package/dist/chunks/{chunk.SCYFA567.js → chunk.KJPJ7U7W.js} +3 -3
- package/dist/chunks/{chunk.5QIMDIAW.js → chunk.KRT6UHKB.js} +1 -1
- package/{cdn/chunks/chunk.INQDWDNB.js → dist/chunks/chunk.L2CELOAX.js} +1 -1
- package/dist/chunks/{chunk.Q3AOLNQ3.js → chunk.LD22EFPX.js} +2 -2
- package/dist/chunks/{chunk.VFCBJGCU.js → chunk.LD6AOY56.js} +1 -1
- package/dist/chunks/{chunk.RL3WXKOT.js → chunk.LHK4WBGY.js} +1 -1
- package/dist/chunks/{chunk.KEBJBTJZ.js → chunk.LJIDAF5D.js} +1 -1
- package/dist/chunks/{chunk.JGMWPY3N.js → chunk.LR35H2HT.js} +1 -1
- package/dist/chunks/{chunk.V775Y3ED.js → chunk.LYJIO4HY.js} +1 -1
- package/dist/chunks/{chunk.RLH5XWEU.js → chunk.M62TYEQX.js} +2 -2
- package/dist/chunks/{chunk.OGJPLRK4.js → chunk.MBFIGANC.js} +1 -1
- package/dist/chunks/{chunk.42KAJG2R.js → chunk.MCD6HDFB.js} +1 -1
- package/dist/chunks/{chunk.LFISFUXE.js → chunk.MCNVYAHI.js} +1 -1
- package/dist/chunks/{chunk.JHNJTHD5.js → chunk.MYQUKAMX.js} +2 -2
- package/{cdn/chunks/chunk.4MXRFDH4.js → dist/chunks/chunk.MYZD2R6Z.js} +1 -1
- package/dist/chunks/{chunk.REXSYJQM.js → chunk.NAUNTSZG.js} +1 -1
- package/dist/chunks/{chunk.FRU4SOLX.js → chunk.NBUMJDPR.js} +1 -1
- package/dist/chunks/{chunk.MGM4PB6M.js → chunk.NEAZXSSW.js} +2 -2
- package/dist/chunks/{chunk.2TFVHDOH.js → chunk.NF7QZV6C.js} +1 -1
- package/dist/chunks/{chunk.KR3L5CLK.js → chunk.NFXRNPRS.js} +1 -1
- package/dist/chunks/{chunk.NF5QILIO.js → chunk.NRTUXJK7.js} +2 -2
- package/dist/chunks/{chunk.EO2V7VXY.js → chunk.NVH2BG2C.js} +32 -9
- package/dist/chunks/{chunk.BXDWSFPZ.js → chunk.NVIERNA6.js} +5 -5
- package/dist/chunks/{chunk.4CCY5W5C.js → chunk.OAPDELAM.js} +1 -1
- package/dist/chunks/{chunk.ZQUIMAAE.js → chunk.OK3SC7MM.js} +2 -2
- package/dist/chunks/{chunk.ONPNBAHJ.js → chunk.OKAJS6V5.js} +1 -1
- package/dist/chunks/{chunk.U6HX6NHZ.js → chunk.OVAMKMUA.js} +2 -2
- package/dist/chunks/{chunk.B4YXS3IF.js → chunk.OVHVF54I.js} +1 -1
- package/dist/chunks/{chunk.DDSVOFWR.js → chunk.OW6VGFU3.js} +1 -1
- package/{cdn/chunks/chunk.PFRQWUIQ.js → dist/chunks/chunk.P66LZZU2.js} +1 -1
- package/dist/chunks/{chunk.HSCQXQ7X.js → chunk.P73WLWAN.js} +1 -1
- package/{cdn/chunks/chunk.GUQMXVFK.js → dist/chunks/chunk.PA7CQXZ6.js} +1 -1
- package/dist/chunks/{chunk.CWF52IOF.js → chunk.PFIO6JIO.js} +1 -1
- package/dist/chunks/{chunk.XJEBCBXA.js → chunk.PRL3UDPY.js} +1 -1
- package/dist/chunks/{chunk.HXGSCL2V.js → chunk.PVT757UK.js} +1 -1
- package/dist/chunks/{chunk.SQOXE76N.js → chunk.PYGVSOWF.js} +221 -112
- package/dist/chunks/{chunk.UVU2624H.js → chunk.QABYI3H7.js} +1 -1
- package/dist/chunks/{chunk.OBOSOPMC.js → chunk.QAIFYPOR.js} +1 -1
- package/{cdn/chunks/chunk.ZJHWZCLK.js → dist/chunks/chunk.QHUSOG73.js} +1 -1
- package/{cdn/chunks/chunk.3L6SF7NG.js → dist/chunks/chunk.QO64UGU2.js} +1 -1
- package/{cdn/chunks/chunk.JGTDAKVX.js → dist/chunks/chunk.QV7ZNPHZ.js} +1 -1
- package/{cdn/chunks/chunk.2RBJLYVR.js → dist/chunks/chunk.QYE7PQVN.js} +1 -1
- package/dist/chunks/{chunk.PLTAODEB.js → chunk.RAVPYS6K.js} +1 -1
- package/dist/chunks/{chunk.JAOGN6F4.js → chunk.RFIORWHM.js} +1 -1
- package/dist/chunks/{chunk.GBAKX657.js → chunk.ROD5E2UL.js} +1 -1
- package/dist/chunks/{chunk.5UYZ4M5Y.js → chunk.RPBXTPVX.js} +2 -2
- package/dist/chunks/{chunk.PDF2MN4E.js → chunk.SB2RFXBB.js} +1 -1
- package/dist/chunks/{chunk.DBYUAWNV.js → chunk.SDYRYUGN.js} +1 -1
- package/dist/chunks/{chunk.MDCGMVP7.js → chunk.SFLHRG7N.js} +1 -1
- package/{cdn/chunks/chunk.NVA5AMVE.js → dist/chunks/chunk.SG7OQJGT.js} +1 -1
- package/dist/chunks/{chunk.4RL6OM2D.js → chunk.SH7C446C.js} +1 -1
- package/dist/chunks/{chunk.4JNNGU2O.js → chunk.SHPWD4BA.js} +1 -1
- package/dist/chunks/{chunk.WLQOZBXU.js → chunk.SJ75TR4E.js} +1 -1
- package/dist/chunks/{chunk.4JBKKDJ3.js → chunk.STCBRPCE.js} +1 -1
- package/dist/chunks/{chunk.M4EUHOMT.js → chunk.SX2W5E3X.js} +2 -2
- package/{cdn/chunks/chunk.TD7WYGT2.js → dist/chunks/chunk.SXKYZSFF.js} +1 -1
- package/dist/chunks/{chunk.JFOUC4AL.js → chunk.SYV5OCIJ.js} +1 -1
- package/dist/chunks/{chunk.OAK65VXB.js → chunk.SZOP7W6U.js} +1 -1
- package/dist/chunks/{chunk.2E3LIEKL.js → chunk.T6QBY2LH.js} +1 -1
- package/dist/chunks/{chunk.W6NGORMK.js → chunk.TCRLRCQV.js} +1 -1
- package/dist/chunks/{chunk.ORSNSBRI.js → chunk.TLB4MKCU.js} +1 -1
- package/dist/chunks/{chunk.DHMFWLU7.js → chunk.TMNZYKSA.js} +5 -5
- package/dist/chunks/{chunk.2MFFAXDJ.js → chunk.U6V7YQWF.js} +1 -1
- package/{cdn/chunks/chunk.J2ZN3WED.js → dist/chunks/chunk.U72PIAN7.js} +1 -1
- package/dist/chunks/{chunk.S2EJIXKD.js → chunk.UBFHLGYV.js} +1 -1
- package/dist/chunks/{chunk.UKJYF6QG.js → chunk.UDG6EAGV.js} +1 -1
- package/dist/chunks/{chunk.S7JS4G7K.js → chunk.UODZE4ZT.js} +1 -1
- package/dist/chunks/{chunk.QQDRPZ7K.js → chunk.UU4ICNQ3.js} +1 -1
- package/dist/chunks/{chunk.JYOF3T4N.js → chunk.UY6YTVGP.js} +1 -1
- package/dist/chunks/{chunk.5MZR45BU.js → chunk.UZEQJHBD.js} +1 -1
- package/dist/chunks/{chunk.E6HKFQ2J.js → chunk.V5WYE6XB.js} +1 -1
- package/dist/chunks/{chunk.DABJALDA.js → chunk.VBUTWE34.js} +1 -1
- package/dist/chunks/{chunk.KNKOJLCO.js → chunk.VJQZ2FA7.js} +1 -1
- package/{cdn/chunks/chunk.ZOO3KTPM.js → dist/chunks/chunk.W72PUURF.js} +1 -1
- package/dist/chunks/{chunk.E7NQVMCT.js → chunk.WIJDH5YD.js} +1 -1
- package/dist/chunks/{chunk.IALPHWNO.js → chunk.WL6ZA6LT.js} +1 -1
- package/dist/chunks/{chunk.MWVLYGNG.js → chunk.WQO3VVUF.js} +1 -1
- package/dist/chunks/{chunk.IDO2BTGI.js → chunk.WVIAZIDC.js} +1 -1
- package/dist/chunks/{chunk.XKNWMPST.js → chunk.XFPGOZIR.js} +6 -6
- package/dist/chunks/{chunk.4KYN5AQR.js → chunk.XHIAAGSI.js} +1 -1
- package/dist/chunks/{chunk.T6ARQWHN.js → chunk.Y2X67RI2.js} +1 -1
- package/dist/chunks/{chunk.IUEHS6LJ.js → chunk.YEV327WK.js} +2 -2
- package/dist/chunks/{chunk.UG52NGGG.js → chunk.YGCZWDJO.js} +1 -1
- package/{cdn/chunks/chunk.UOGJITHD.js → dist/chunks/chunk.YHBTZHIK.js} +1 -1
- package/dist/chunks/{chunk.CVY3YIMQ.js → chunk.YTUKFJPO.js} +1 -1
- package/dist/chunks/{chunk.VUIEOLW3.js → chunk.YVZT5LOS.js} +1 -1
- package/dist/chunks/{chunk.AHBXXC6Z.js → chunk.YYBRPZNK.js} +1 -1
- package/{cdn/chunks/chunk.V3JHFZTI.js → dist/chunks/chunk.YZIE2KRR.js} +1 -1
- package/dist/chunks/{chunk.5MW4LEHM.js → chunk.ZDOPIHVP.js} +2 -2
- package/dist/chunks/{chunk.3YLOREUY.js → chunk.ZFTNJHCE.js} +2 -2
- package/dist/chunks/{chunk.LR7O6MZ2.js → chunk.ZIV67KOL.js} +1 -1
- package/{cdn/chunks/chunk.R5FFQP2O.js → dist/chunks/chunk.ZUUGGPKO.js} +1 -1
- package/dist/components/alert/alert.component.js +7 -7
- package/dist/components/alert/alert.js +8 -8
- package/dist/components/animated-image/animated-image.component.js +5 -5
- package/dist/components/animated-image/animated-image.js +6 -6
- package/dist/components/animation/animation.component.js +3 -3
- package/dist/components/animation/animation.js +4 -4
- package/dist/components/avatar/avatar.component.js +4 -4
- package/dist/components/avatar/avatar.js +5 -5
- package/dist/components/badge/badge.component.js +2 -2
- package/dist/components/badge/badge.js +3 -3
- package/dist/components/breadcrumb/breadcrumb.component.js +4 -4
- package/dist/components/breadcrumb/breadcrumb.js +5 -5
- 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-group/button-group.component.js +2 -2
- package/dist/components/button-group/button-group.js +3 -3
- package/dist/components/calendar/calendar.component.d.ts +12 -0
- package/dist/components/calendar/calendar.component.js +9 -9
- package/dist/components/calendar/calendar.js +10 -10
- package/dist/components/calendar/calendar.styles.js +1 -1
- package/dist/components/card/card.component.js +2 -2
- package/dist/components/card/card.js +3 -3
- package/dist/components/carousel/carousel.component.js +4 -4
- package/dist/components/carousel/carousel.js +5 -5
- 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 +4 -4
- package/dist/components/checkbox/checkbox.js +5 -5
- package/dist/components/color-picker/color-picker.component.js +12 -12
- package/dist/components/color-picker/color-picker.js +13 -13
- package/dist/components/copy-button/copy-button.component.js +6 -6
- package/dist/components/copy-button/copy-button.js +7 -7
- package/dist/components/details/details.component.js +4 -4
- package/dist/components/details/details.js +5 -5
- 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 +3 -3
- package/dist/components/dropdown/dropdown.js +4 -4
- package/dist/components/file-upload/file-upload.component.js +8 -8
- package/dist/components/file-upload/file-upload.js +9 -9
- package/dist/components/file-upload-item/file-upload-item.component.js +3 -3
- package/dist/components/file-upload-item/file-upload-item.js +4 -4
- 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 +3 -3
- package/dist/components/icon/icon.js +4 -4
- package/dist/components/icon-button/icon-button.component.js +4 -4
- package/dist/components/icon-button/icon-button.js +5 -5
- package/dist/components/image-comparer/image-comparer.component.js +4 -4
- package/dist/components/image-comparer/image-comparer.js +5 -5
- package/dist/components/include/include.component.js +2 -2
- package/dist/components/include/include.js +3 -3
- package/dist/components/input/input.component.js +5 -5
- package/dist/components/input/input.js +6 -6
- 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 +4 -4
- package/dist/components/option/option.js +5 -5
- package/dist/components/paginate/paginate.component.js +4 -4
- package/dist/components/paginate/paginate.js +5 -5
- 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 +4 -4
- package/dist/components/radio/radio.js +5 -5
- package/dist/components/radio-button/radio-button.component.js +2 -2
- package/dist/components/radio-button/radio-button.js +3 -3
- package/dist/components/radio-group/radio-group.component.js +3 -3
- package/dist/components/radio-group/radio-group.js +4 -4
- package/dist/components/range/range.component.js +3 -3
- package/dist/components/range/range.js +4 -4
- package/dist/components/rating/rating.component.js +4 -4
- package/dist/components/rating/rating.js +5 -5
- 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 +8 -8
- package/dist/components/select/select.js +9 -9
- 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 +2 -2
- package/dist/components/switch/switch.js +3 -3
- package/dist/components/tab/tab.component.js +5 -5
- package/dist/components/tab/tab.js +6 -6
- 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/table.component.js +10 -10
- package/dist/components/table/table.js +11 -11
- package/dist/components/tag/tag.component.js +5 -5
- package/dist/components/tag/tag.js +6 -6
- package/dist/components/textarea/textarea.component.js +2 -2
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/tooltip/tooltip.component.js +3 -3
- package/dist/components/tooltip/tooltip.js +4 -4
- package/dist/components/tree/tree.component.js +8 -8
- package/dist/components/tree/tree.js +9 -9
- package/dist/components/tree-item/tree-item.component.js +7 -7
- package/dist/components/tree-item/tree-item.js +8 -8
- 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 +207 -187
- package/dist/internal/calendar.d.ts +3 -0
- package/dist/pure-ui.js +144 -144
- package/dist/react/alert/index.js +8 -8
- package/dist/react/animated-image/index.js +6 -6
- package/dist/react/animation/index.js +4 -4
- package/dist/react/avatar/index.js +5 -5
- package/dist/react/badge/index.js +3 -3
- package/dist/react/breadcrumb/index.js +5 -5
- 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/calendar/index.js +10 -10
- package/dist/react/card/index.js +3 -3
- package/dist/react/carousel/index.js +5 -5
- package/dist/react/carousel-item/index.js +3 -3
- package/dist/react/checkbox/index.js +5 -5
- package/dist/react/color-picker/index.js +13 -13
- package/dist/react/copy-button/index.js +7 -7
- 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 +4 -4
- package/dist/react/file-upload/index.js +9 -9
- package/dist/react/file-upload-item/index.js +4 -4
- 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 +4 -4
- package/dist/react/icon-button/index.js +5 -5
- package/dist/react/image-comparer/index.js +5 -5
- package/dist/react/include/index.js +3 -3
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +142 -142
- package/dist/react/input/index.js +6 -6
- 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 +5 -5
- package/dist/react/paginate/index.js +5 -5
- 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 +5 -5
- package/dist/react/radio-button/index.js +3 -3
- package/dist/react/radio-group/index.js +4 -4
- package/dist/react/range/index.js +4 -4
- package/dist/react/rating/index.js +5 -5
- package/dist/react/relative-time/index.js +3 -3
- package/dist/react/resize-observer/index.js +3 -3
- package/dist/react/select/index.js +9 -9
- 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 +3 -3
- package/dist/react/tab/index.js +6 -6
- package/dist/react/tab-group/index.js +6 -6
- package/dist/react/tab-panel/index.js +3 -3
- package/dist/react/table/index.js +11 -11
- package/dist/react/tag/index.js +6 -6
- package/dist/react/textarea/index.js +3 -3
- package/dist/react/tooltip/index.js +4 -4
- package/dist/react/tree/index.js +9 -9
- package/dist/react/tree-item/index.js +8 -8
- package/dist/react/visually-hidden/index.js +3 -3
- package/dist/types/vue/index.d.ts +47 -42
- package/dist/vscode.html-custom-data.json +32 -27
- package/dist/web-types.json +88 -75
- package/package.json +2 -2
- package/cdn/chunks/{chunk.NYJ7YDN4.js → chunk.4TFZALWI.js} +4 -4
- package/cdn/chunks/{chunk.HMTZNKXS.js → chunk.YSH5MIPQ.js} +3 -3
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk.NOWCQZBS.js";
|
|
4
4
|
import {
|
|
5
5
|
PTag
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.KPPUEGHP.js";
|
|
7
7
|
import {
|
|
8
8
|
ae
|
|
9
9
|
} from "./chunk.6JBGXCYU.js";
|
|
10
10
|
import {
|
|
11
11
|
PPopup
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.7KRF4GZ3.js";
|
|
13
13
|
import {
|
|
14
14
|
defaultValue
|
|
15
15
|
} from "./chunk.PGG27OMY.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./chunk.SW6OGP3X.js";
|
|
22
22
|
import {
|
|
23
23
|
calendar_styles_default
|
|
24
|
-
} from "./chunk.
|
|
24
|
+
} from "./chunk.VRDVF2K2.js";
|
|
25
25
|
import {
|
|
26
26
|
getAnimation,
|
|
27
27
|
setDefaultAnimation
|
|
@@ -33,18 +33,18 @@ import {
|
|
|
33
33
|
animateTo,
|
|
34
34
|
stopAnimations
|
|
35
35
|
} from "./chunk.S7GYYU7Z.js";
|
|
36
|
+
import {
|
|
37
|
+
LocalizeController
|
|
38
|
+
} from "./chunk.BTMIVMQK.js";
|
|
36
39
|
import {
|
|
37
40
|
HasSlotController
|
|
38
41
|
} from "./chunk.MLXUTV4G.js";
|
|
42
|
+
import {
|
|
43
|
+
PIcon
|
|
44
|
+
} from "./chunk.XDVZN2I5.js";
|
|
39
45
|
import {
|
|
40
46
|
Rt
|
|
41
47
|
} from "./chunk.A56LY5J2.js";
|
|
42
|
-
import {
|
|
43
|
-
LocalizeController
|
|
44
|
-
} from "./chunk.BTMIVMQK.js";
|
|
45
|
-
import {
|
|
46
|
-
PIcon
|
|
47
|
-
} from "./chunk.IJRKJX5M.js";
|
|
48
48
|
import {
|
|
49
49
|
watch
|
|
50
50
|
} from "./chunk.FA5RT4K4.js";
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
e,
|
|
54
54
|
n,
|
|
55
55
|
r
|
|
56
|
-
} from "./chunk.
|
|
56
|
+
} from "./chunk.VSU6BGRP.js";
|
|
57
57
|
import {
|
|
58
58
|
component_styles_default
|
|
59
59
|
} from "./chunk.DNSDK7ZG.js";
|
|
@@ -64,119 +64,6 @@ import {
|
|
|
64
64
|
__decorateClass
|
|
65
65
|
} from "./chunk.KIILAQWQ.js";
|
|
66
66
|
|
|
67
|
-
// src/internal/calendar.ts
|
|
68
|
-
function generateCalendarGrid(year, month, options) {
|
|
69
|
-
const weekStartsWith = (options == null ? void 0 : options.weekStartsWith) || "sunday";
|
|
70
|
-
const today = /* @__PURE__ */ new Date();
|
|
71
|
-
const dayThisMonthStartsWith = new Date(year, month - 1, 1).getDay();
|
|
72
|
-
const lastDayOfMonth = new Date(year, month, 0).getDate();
|
|
73
|
-
const lastDayOfPreviousMonth = month === 1 ? new Date(year - 1, 1, 0).getDate() : new Date(year, month - 1, 0).getDate();
|
|
74
|
-
const dayGrid = [];
|
|
75
|
-
let day = 1;
|
|
76
|
-
do {
|
|
77
|
-
const date = new Date(year, month - 1, day);
|
|
78
|
-
let dayOfWeek = new Date(year, month - 1, day).getDay();
|
|
79
|
-
if (weekStartsWith === "sunday") {
|
|
80
|
-
}
|
|
81
|
-
if (day === 1) {
|
|
82
|
-
let lastMonthDay = lastDayOfPreviousMonth - dayThisMonthStartsWith + 1;
|
|
83
|
-
for (let i = 0; i < dayThisMonthStartsWith; i++) {
|
|
84
|
-
const dayOfLastMonth = new Date(year, month - 2, lastMonthDay);
|
|
85
|
-
dayGrid.push({
|
|
86
|
-
date: dayOfLastMonth,
|
|
87
|
-
isToday: isSameDay(dayOfLastMonth, today),
|
|
88
|
-
isWeekday: isWeekday(dayOfLastMonth),
|
|
89
|
-
isWeekend: isWeekend(dayOfLastMonth),
|
|
90
|
-
isCurrentMonth: false,
|
|
91
|
-
isPreviousMonth: true,
|
|
92
|
-
isNextMonth: false
|
|
93
|
-
});
|
|
94
|
-
lastMonthDay++;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
dayGrid.push({
|
|
98
|
-
date,
|
|
99
|
-
isToday: isSameDay(date, today),
|
|
100
|
-
isWeekday: isWeekday(date),
|
|
101
|
-
isWeekend: isWeekend(date),
|
|
102
|
-
isCurrentMonth: true,
|
|
103
|
-
isPreviousMonth: false,
|
|
104
|
-
isNextMonth: false
|
|
105
|
-
});
|
|
106
|
-
if (day === lastDayOfMonth) {
|
|
107
|
-
let nextMonthDay = 1;
|
|
108
|
-
for (dayOfWeek; dayOfWeek < 6; dayOfWeek++) {
|
|
109
|
-
const dayOfNextMonth = new Date(year, month, nextMonthDay);
|
|
110
|
-
dayGrid.push({
|
|
111
|
-
date: dayOfNextMonth,
|
|
112
|
-
isToday: isSameDay(dayOfNextMonth, today),
|
|
113
|
-
isWeekday: isWeekday(dayOfNextMonth),
|
|
114
|
-
isWeekend: isWeekend(dayOfNextMonth),
|
|
115
|
-
isCurrentMonth: false,
|
|
116
|
-
isPreviousMonth: false,
|
|
117
|
-
isNextMonth: true
|
|
118
|
-
});
|
|
119
|
-
nextMonthDay++;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
day++;
|
|
123
|
-
} while (day <= lastDayOfMonth);
|
|
124
|
-
return dayGrid;
|
|
125
|
-
}
|
|
126
|
-
function getAllDayNames(locale = "en-GB", format = "long") {
|
|
127
|
-
const formatter = new Intl.DateTimeFormat(locale, {
|
|
128
|
-
weekday: format,
|
|
129
|
-
timeZone: "UTC"
|
|
130
|
-
});
|
|
131
|
-
const days = [1, 2, 3, 4, 5, 6, 7].map((day) => {
|
|
132
|
-
const dd = day < 10 ? `0${day}` : day;
|
|
133
|
-
return /* @__PURE__ */ new Date(`2024-01-${dd}T00:00:00+00:00`);
|
|
134
|
-
});
|
|
135
|
-
return days.map((date) => formatter.format(date));
|
|
136
|
-
}
|
|
137
|
-
function getAllMonthNames(locale = "en-GB", format = "long") {
|
|
138
|
-
const formatter = new Intl.DateTimeFormat(locale, {
|
|
139
|
-
month: format,
|
|
140
|
-
timeZone: "UTC"
|
|
141
|
-
});
|
|
142
|
-
const months = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map((month) => {
|
|
143
|
-
const mm = month < 10 ? `0${month}` : month;
|
|
144
|
-
return /* @__PURE__ */ new Date(`2024-${mm}-01T00:00:00+00:00`);
|
|
145
|
-
});
|
|
146
|
-
return months.map((date) => formatter.format(date));
|
|
147
|
-
}
|
|
148
|
-
function isSameDay(date1, date2) {
|
|
149
|
-
return date1.getFullYear() === date2.getFullYear() && date1.getMonth() === date2.getMonth() && date1.getDate() === date2.getDate();
|
|
150
|
-
}
|
|
151
|
-
function isWeekend(date) {
|
|
152
|
-
const day = date.getDay();
|
|
153
|
-
return day === 0 || day === 6;
|
|
154
|
-
}
|
|
155
|
-
function isWeekday(date) {
|
|
156
|
-
const day = date.getDay();
|
|
157
|
-
return day > 0 && day < 6;
|
|
158
|
-
}
|
|
159
|
-
function getMonthName(date, locale = "en-GB", format = "long") {
|
|
160
|
-
return getAllMonthNames(locale, format)[date.getMonth()];
|
|
161
|
-
}
|
|
162
|
-
function getDateLabelWithFormat(date, locale = "en-GB", format) {
|
|
163
|
-
return new Intl.DateTimeFormat(locale, format).format(date);
|
|
164
|
-
}
|
|
165
|
-
function getDateDifferentFrom(date, days) {
|
|
166
|
-
return new Date(date.getTime() + days * 24 * 60 * 60 * 1e3);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
// src/internal/part-map.ts
|
|
170
|
-
function partMap(map) {
|
|
171
|
-
const parts = [];
|
|
172
|
-
for (const [key, value] of Object.entries(map)) {
|
|
173
|
-
if (value) {
|
|
174
|
-
parts.push(key);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
return parts.join(" ");
|
|
178
|
-
}
|
|
179
|
-
|
|
180
67
|
// node_modules/pure-date-format/dist/index.js
|
|
181
68
|
function padZero(num, length = 2) {
|
|
182
69
|
return num.toString().padStart(length, "0");
|
|
@@ -420,7 +307,191 @@ function index() {
|
|
|
420
307
|
return false;
|
|
421
308
|
}
|
|
422
309
|
}
|
|
423
|
-
|
|
310
|
+
function add(date, amount, unit) {
|
|
311
|
+
try {
|
|
312
|
+
const newDate = new Date(date);
|
|
313
|
+
const millisecondsPerUnit = {
|
|
314
|
+
ms: 1,
|
|
315
|
+
milliseconds: 1,
|
|
316
|
+
s: 1e3,
|
|
317
|
+
seconds: 1e3,
|
|
318
|
+
m: 6e4,
|
|
319
|
+
minutes: 6e4,
|
|
320
|
+
h: 36e5,
|
|
321
|
+
hours: 36e5,
|
|
322
|
+
d: 864e5,
|
|
323
|
+
days: 864e5,
|
|
324
|
+
M: 0,
|
|
325
|
+
months: 0,
|
|
326
|
+
y: 0,
|
|
327
|
+
years: 0
|
|
328
|
+
};
|
|
329
|
+
switch (unit) {
|
|
330
|
+
case "y":
|
|
331
|
+
case "years":
|
|
332
|
+
newDate.setFullYear(newDate.getFullYear() + amount);
|
|
333
|
+
break;
|
|
334
|
+
case "M":
|
|
335
|
+
case "months":
|
|
336
|
+
const originalDay = newDate.getDate();
|
|
337
|
+
newDate.setMonth(newDate.getMonth() + amount);
|
|
338
|
+
if (newDate.getDate() !== originalDay) {
|
|
339
|
+
newDate.setDate(0);
|
|
340
|
+
}
|
|
341
|
+
break;
|
|
342
|
+
default:
|
|
343
|
+
if (!millisecondsPerUnit[unit]) {
|
|
344
|
+
throw new Error("Invalid time unit");
|
|
345
|
+
}
|
|
346
|
+
const newTime = newDate.getTime() + amount * millisecondsPerUnit[unit];
|
|
347
|
+
newDate.setTime(newTime);
|
|
348
|
+
break;
|
|
349
|
+
}
|
|
350
|
+
return newDate;
|
|
351
|
+
} catch (error) {
|
|
352
|
+
throw new Error("Invalid date");
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
function subtract(date, amount, unit) {
|
|
356
|
+
return add(date, -amount, unit);
|
|
357
|
+
}
|
|
358
|
+
return { from, to, isValid, add, subtract };
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
// src/internal/calendar.ts
|
|
362
|
+
var dateFormat = index();
|
|
363
|
+
function generateCalendarGrid(year, month, options) {
|
|
364
|
+
const weekStartsWith = (options == null ? void 0 : options.weekStartsWith) || "sunday";
|
|
365
|
+
const today = /* @__PURE__ */ new Date();
|
|
366
|
+
const dayThisMonthStartsWith = new Date(year, month - 1, 1).getDay();
|
|
367
|
+
const lastDayOfMonth = new Date(year, month, 0).getDate();
|
|
368
|
+
const lastDayOfPreviousMonth = month === 1 ? new Date(year - 1, 1, 0).getDate() : new Date(year, month - 1, 0).getDate();
|
|
369
|
+
const calendarGrid = [];
|
|
370
|
+
let day = 1;
|
|
371
|
+
switch (options == null ? void 0 : options.interface) {
|
|
372
|
+
case "day":
|
|
373
|
+
do {
|
|
374
|
+
const date = new Date(year, month - 1, day);
|
|
375
|
+
let dayOfWeek = new Date(year, month - 1, day).getDay();
|
|
376
|
+
if (weekStartsWith === "sunday") {
|
|
377
|
+
}
|
|
378
|
+
if (day === 1) {
|
|
379
|
+
let lastMonthDay = lastDayOfPreviousMonth - dayThisMonthStartsWith + 1;
|
|
380
|
+
for (let i = 0; i < dayThisMonthStartsWith; i++) {
|
|
381
|
+
const dayOfLastMonth = new Date(year, month - 2, lastMonthDay);
|
|
382
|
+
calendarGrid.push({
|
|
383
|
+
date: dayOfLastMonth,
|
|
384
|
+
isToday: isSameDay(dayOfLastMonth, today),
|
|
385
|
+
isWeekday: isWeekday(dayOfLastMonth),
|
|
386
|
+
isWeekend: isWeekend(dayOfLastMonth),
|
|
387
|
+
isCurrentMonth: false,
|
|
388
|
+
isPreviousMonth: true,
|
|
389
|
+
isNextMonth: false
|
|
390
|
+
});
|
|
391
|
+
lastMonthDay++;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
calendarGrid.push({
|
|
395
|
+
date,
|
|
396
|
+
isToday: isSameDay(date, today),
|
|
397
|
+
isWeekday: isWeekday(date),
|
|
398
|
+
isWeekend: isWeekend(date),
|
|
399
|
+
isCurrentMonth: true,
|
|
400
|
+
isPreviousMonth: false,
|
|
401
|
+
isNextMonth: false
|
|
402
|
+
});
|
|
403
|
+
if (day === lastDayOfMonth) {
|
|
404
|
+
let nextMonthDay = 1;
|
|
405
|
+
for (dayOfWeek; dayOfWeek < 6; dayOfWeek++) {
|
|
406
|
+
const dayOfNextMonth = new Date(year, month, nextMonthDay);
|
|
407
|
+
calendarGrid.push({
|
|
408
|
+
date: dayOfNextMonth,
|
|
409
|
+
isToday: isSameDay(dayOfNextMonth, today),
|
|
410
|
+
isWeekday: isWeekday(dayOfNextMonth),
|
|
411
|
+
isWeekend: isWeekend(dayOfNextMonth),
|
|
412
|
+
isCurrentMonth: false,
|
|
413
|
+
isPreviousMonth: false,
|
|
414
|
+
isNextMonth: true
|
|
415
|
+
});
|
|
416
|
+
nextMonthDay++;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
day++;
|
|
420
|
+
} while (day <= lastDayOfMonth);
|
|
421
|
+
break;
|
|
422
|
+
case "month":
|
|
423
|
+
Array.from({ length: 12 }).map((_, idx) => {
|
|
424
|
+
return calendarGrid.push({
|
|
425
|
+
date: new Date(year, idx, 1),
|
|
426
|
+
isToday: false,
|
|
427
|
+
isWeekday: false,
|
|
428
|
+
isWeekend: false,
|
|
429
|
+
isCurrentMonth: idx === month - 1,
|
|
430
|
+
isPreviousMonth: false,
|
|
431
|
+
isNextMonth: false
|
|
432
|
+
});
|
|
433
|
+
});
|
|
434
|
+
break;
|
|
435
|
+
default:
|
|
436
|
+
break;
|
|
437
|
+
}
|
|
438
|
+
return calendarGrid;
|
|
439
|
+
}
|
|
440
|
+
function getAllDayNames(locale = "en-GB", format = "long") {
|
|
441
|
+
const formatter = new Intl.DateTimeFormat(locale, {
|
|
442
|
+
weekday: format,
|
|
443
|
+
timeZone: "UTC"
|
|
444
|
+
});
|
|
445
|
+
const days = [1, 2, 3, 4, 5, 6, 7].map((day) => {
|
|
446
|
+
const dd = day < 10 ? `0${day}` : day;
|
|
447
|
+
return /* @__PURE__ */ new Date(`2024-01-${dd}T00:00:00+00:00`);
|
|
448
|
+
});
|
|
449
|
+
return days.map((date) => formatter.format(date));
|
|
450
|
+
}
|
|
451
|
+
function getAllMonthNames(locale = "en-GB", format = "long") {
|
|
452
|
+
const formatter = new Intl.DateTimeFormat(locale, {
|
|
453
|
+
month: format,
|
|
454
|
+
timeZone: "UTC"
|
|
455
|
+
});
|
|
456
|
+
const months = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map((month) => {
|
|
457
|
+
const mm = month < 10 ? `0${month}` : month;
|
|
458
|
+
return /* @__PURE__ */ new Date(`2024-${mm}-01T00:00:00+00:00`);
|
|
459
|
+
});
|
|
460
|
+
return months.map((date) => formatter.format(date));
|
|
461
|
+
}
|
|
462
|
+
function isSameDay(date1, date2) {
|
|
463
|
+
return date1.getFullYear() === date2.getFullYear() && date1.getMonth() === date2.getMonth() && date1.getDate() === date2.getDate();
|
|
464
|
+
}
|
|
465
|
+
function isWeekend(date) {
|
|
466
|
+
const day = date.getDay();
|
|
467
|
+
return day === 0 || day === 6;
|
|
468
|
+
}
|
|
469
|
+
function isWeekday(date) {
|
|
470
|
+
const day = date.getDay();
|
|
471
|
+
return day > 0 && day < 6;
|
|
472
|
+
}
|
|
473
|
+
function getMonthName(date, locale = "en-GB", format = "long") {
|
|
474
|
+
return getAllMonthNames(locale, format)[date.getMonth()];
|
|
475
|
+
}
|
|
476
|
+
function getDateLabelWithFormat(date, locale = "en-GB", format) {
|
|
477
|
+
return new Intl.DateTimeFormat(locale, format).format(date);
|
|
478
|
+
}
|
|
479
|
+
function getDateDifferentFrom(date, days) {
|
|
480
|
+
return new Date(date.getTime() + days * 24 * 60 * 60 * 1e3);
|
|
481
|
+
}
|
|
482
|
+
function getMonthDifferentFrom(date, months) {
|
|
483
|
+
return dateFormat.add(date, months, "months");
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
// src/internal/part-map.ts
|
|
487
|
+
function partMap(map) {
|
|
488
|
+
const parts = [];
|
|
489
|
+
for (const [key, value] of Object.entries(map)) {
|
|
490
|
+
if (value) {
|
|
491
|
+
parts.push(key);
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
return parts.join(" ");
|
|
424
495
|
}
|
|
425
496
|
|
|
426
497
|
// src/components/calendar/calendar.component.ts
|
|
@@ -480,6 +551,7 @@ var PCalendar = class extends PureElement {
|
|
|
480
551
|
this.showToday = false;
|
|
481
552
|
this.mode = "default";
|
|
482
553
|
this.type = "single";
|
|
554
|
+
this.interface = "day";
|
|
483
555
|
this.autofocus = false;
|
|
484
556
|
this.month = (/* @__PURE__ */ new Date()).getMonth() + 1;
|
|
485
557
|
this.year = (/* @__PURE__ */ new Date()).getFullYear();
|
|
@@ -514,20 +586,22 @@ var PCalendar = class extends PureElement {
|
|
|
514
586
|
return;
|
|
515
587
|
}
|
|
516
588
|
if (this.keyword) {
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
589
|
+
if (this.type !== "range" || Array.isArray(this._value) && this._value.length === 0) {
|
|
590
|
+
const isValid = index().isValid(this.keyword, this.format);
|
|
591
|
+
if (!isValid) {
|
|
592
|
+
return;
|
|
593
|
+
} else {
|
|
594
|
+
this.handleSelectDate({
|
|
595
|
+
date: index().to(this.keyword, this.format),
|
|
596
|
+
isToday: false,
|
|
597
|
+
isWeekday: false,
|
|
598
|
+
isWeekend: false,
|
|
599
|
+
isCurrentMonth: false,
|
|
600
|
+
isPreviousMonth: false,
|
|
601
|
+
isNextMonth: false
|
|
602
|
+
});
|
|
603
|
+
return;
|
|
604
|
+
}
|
|
531
605
|
}
|
|
532
606
|
}
|
|
533
607
|
if (this.currentOption && !this.disabled && this.open) {
|
|
@@ -548,17 +622,33 @@ var PCalendar = class extends PureElement {
|
|
|
548
622
|
let newCurrentOption = void 0;
|
|
549
623
|
switch (event.key) {
|
|
550
624
|
case "ArrowUp":
|
|
551
|
-
|
|
625
|
+
if (this.interface === "day") {
|
|
626
|
+
newCurrentOption = getDateDifferentFrom(this.currentOption, -7);
|
|
627
|
+
} else if (this.interface === "month") {
|
|
628
|
+
newCurrentOption = getMonthDifferentFrom(this.currentOption, -4);
|
|
629
|
+
}
|
|
552
630
|
break;
|
|
553
631
|
case "ArrowDown":
|
|
554
|
-
|
|
632
|
+
if (this.interface === "day") {
|
|
633
|
+
newCurrentOption = getDateDifferentFrom(this.currentOption, 7);
|
|
634
|
+
} else if (this.interface === "month") {
|
|
635
|
+
newCurrentOption = getMonthDifferentFrom(this.currentOption, 4);
|
|
636
|
+
}
|
|
555
637
|
break;
|
|
556
638
|
case "ArrowLeft":
|
|
557
|
-
|
|
639
|
+
if (this.interface === "day") {
|
|
640
|
+
newCurrentOption = getDateDifferentFrom(this.currentOption, -1);
|
|
641
|
+
} else if (this.interface === "month") {
|
|
642
|
+
newCurrentOption = getMonthDifferentFrom(this.currentOption, -1);
|
|
643
|
+
}
|
|
558
644
|
break;
|
|
559
645
|
case "ArrowRight":
|
|
560
646
|
case "Tab":
|
|
561
|
-
|
|
647
|
+
if (this.interface === "day") {
|
|
648
|
+
newCurrentOption = getDateDifferentFrom(this.currentOption, 1);
|
|
649
|
+
} else if (this.interface === "month") {
|
|
650
|
+
newCurrentOption = getMonthDifferentFrom(this.currentOption, 1);
|
|
651
|
+
}
|
|
562
652
|
break;
|
|
563
653
|
default:
|
|
564
654
|
break;
|
|
@@ -838,7 +928,11 @@ var PCalendar = class extends PureElement {
|
|
|
838
928
|
}
|
|
839
929
|
// Gets an array of all <p-option> elements
|
|
840
930
|
getAllOptions() {
|
|
841
|
-
return [
|
|
931
|
+
return [
|
|
932
|
+
...generateCalendarGrid(this.year, this.month, {
|
|
933
|
+
interface: this.interface
|
|
934
|
+
})
|
|
935
|
+
];
|
|
842
936
|
}
|
|
843
937
|
// Sets the current option, which is the option the user is currently interacting with (e.g. via keyboard). Only one
|
|
844
938
|
// option may be "current" at a time.
|
|
@@ -866,6 +960,7 @@ var PCalendar = class extends PureElement {
|
|
|
866
960
|
if (this.selectedOptions.length === 1) {
|
|
867
961
|
this.keyword = `${this.format ? index().from(this.selectedOptions[0], this.format) : getDateLabelWithFormat(this.selectedOptions[0])} - `;
|
|
868
962
|
} else if (this.selectedOptions.length === 2) {
|
|
963
|
+
this.selectedOptions.sort((a, b) => a.getTime() - b.getTime());
|
|
869
964
|
this.keyword = this.format ? `${index().from(this.selectedOptions[0], this.format)} - ${index().from(this.selectedOptions[1], this.format)}` : `${getDateLabelWithFormat(this.selectedOptions[0])} - ${getDateLabelWithFormat(this.selectedOptions[1])}`;
|
|
870
965
|
}
|
|
871
966
|
this.displayLabel = this.keyword;
|
|
@@ -1075,8 +1170,11 @@ var PCalendar = class extends PureElement {
|
|
|
1075
1170
|
}
|
|
1076
1171
|
const lang = this.lang || document.documentElement.lang;
|
|
1077
1172
|
const month = new Date(this.year, this.month - 1, 1);
|
|
1078
|
-
const
|
|
1173
|
+
const calendarGrid = generateCalendarGrid(this.year, this.month, {
|
|
1174
|
+
interface: this.interface
|
|
1175
|
+
});
|
|
1079
1176
|
const dayNames = getAllDayNames(lang, this.dayLabels);
|
|
1177
|
+
const hasNavigateMonth = ["day"].includes(this.interface);
|
|
1080
1178
|
const hasLabelSlot = this.hasSlotController.test("label");
|
|
1081
1179
|
const hasHelpTextSlot = this.hasSlotController.test("help-text");
|
|
1082
1180
|
const hasLabel = this.label ? true : !!hasLabelSlot;
|
|
@@ -1117,7 +1215,8 @@ var PCalendar = class extends PureElement {
|
|
|
1117
1215
|
@click=${this.goToPreviousMonth}
|
|
1118
1216
|
class=${Rt({
|
|
1119
1217
|
"calendar__header-button": true,
|
|
1120
|
-
"calendar__header-button--disabled": this.disabled
|
|
1218
|
+
"calendar__header-button--disabled": this.disabled,
|
|
1219
|
+
"calendar__header-button--hidden": !hasNavigateMonth
|
|
1121
1220
|
})}
|
|
1122
1221
|
>
|
|
1123
1222
|
<p-icon-button name="chevron-left" label=${this.localize.term("previousMonth")}></p-icon-button>
|
|
@@ -1126,7 +1225,9 @@ var PCalendar = class extends PureElement {
|
|
|
1126
1225
|
<slot name="header-prefix"></slot>
|
|
1127
1226
|
|
|
1128
1227
|
<span class="calendar__label">
|
|
1129
|
-
<span class="calendar__month-label"
|
|
1228
|
+
<span class="calendar__month-label"
|
|
1229
|
+
>${hasNavigateMonth ? getMonthName(month, lang, this.monthLabels) : ""}</span
|
|
1230
|
+
>
|
|
1130
1231
|
<span class="calendar__year-label">${month.getFullYear()}</span>
|
|
1131
1232
|
</span>
|
|
1132
1233
|
|
|
@@ -1138,7 +1239,8 @@ var PCalendar = class extends PureElement {
|
|
|
1138
1239
|
@click=${this.goToNextMonth}
|
|
1139
1240
|
class=${Rt({
|
|
1140
1241
|
"calendar__header-button": true,
|
|
1141
|
-
"calendar__header-button--disabled": this.disabled
|
|
1242
|
+
"calendar__header-button--disabled": this.disabled,
|
|
1243
|
+
"calendar__header-button--hidden": !hasNavigateMonth
|
|
1142
1244
|
})}
|
|
1143
1245
|
>
|
|
1144
1246
|
<p-icon-button name="chevron-right" label=${this.localize.term("nextMonth")}></p-icon-button>
|
|
@@ -1156,23 +1258,23 @@ var PCalendar = class extends PureElement {
|
|
|
1156
1258
|
</p-button>
|
|
1157
1259
|
</header>
|
|
1158
1260
|
|
|
1159
|
-
|
|
1160
|
-
|
|
1261
|
+
${this.interface === "day" ? ke`<div class="calendar__days">
|
|
1262
|
+
${[0, 1, 2, 3, 4, 5, 6].map((day) => {
|
|
1161
1263
|
return ke`
|
|
1162
|
-
|
|
1163
|
-
|
|
1264
|
+
<span
|
|
1265
|
+
part=${partMap({
|
|
1164
1266
|
day: true,
|
|
1165
1267
|
"day-label": true,
|
|
1166
1268
|
"day-weekday": day > 0 && day < 6,
|
|
1167
1269
|
"day-weekend": day === 0 || day === 6
|
|
1168
1270
|
})}
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1271
|
+
class="calendar__day"
|
|
1272
|
+
>
|
|
1273
|
+
${dayNames[day]}
|
|
1274
|
+
</span>
|
|
1275
|
+
`;
|
|
1174
1276
|
})}
|
|
1175
|
-
|
|
1277
|
+
${calendarGrid.map((day) => {
|
|
1176
1278
|
if (day.isCurrentMonth || this.showAdjacentDates) {
|
|
1177
1279
|
let isSelected = false;
|
|
1178
1280
|
let isSelectionStart = false;
|
|
@@ -1203,9 +1305,9 @@ var PCalendar = class extends PureElement {
|
|
|
1203
1305
|
break;
|
|
1204
1306
|
}
|
|
1205
1307
|
return ke`
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1308
|
+
<button
|
|
1309
|
+
type="button"
|
|
1310
|
+
part=${partMap({
|
|
1209
1311
|
day: true,
|
|
1210
1312
|
"day-current-focus": isCurrentSelect,
|
|
1211
1313
|
"day-current-month": day.isCurrentMonth,
|
|
@@ -1219,17 +1321,68 @@ var PCalendar = class extends PureElement {
|
|
|
1219
1321
|
"day-selection-start": isSelectionStart,
|
|
1220
1322
|
"day-selection-end": isSelectionEnd
|
|
1221
1323
|
})}
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1324
|
+
class="calendar__day"
|
|
1325
|
+
@mouseup=${() => this.handleSelectDate(day)}
|
|
1326
|
+
@mouseenter=${() => this.handleSetTemporaryEndDate(day)}
|
|
1327
|
+
>
|
|
1328
|
+
${day.date.getDate()}
|
|
1329
|
+
</button>
|
|
1330
|
+
`;
|
|
1229
1331
|
}
|
|
1230
1332
|
return ke` <div class="calendar__day calendar__day--empty"></div> `;
|
|
1231
1333
|
})}
|
|
1232
|
-
|
|
1334
|
+
</div>` : null}
|
|
1335
|
+
${this.interface === "month" ? ke`<div class="calendar__months">
|
|
1336
|
+
${calendarGrid.map((monthItem) => {
|
|
1337
|
+
let isSelected = false;
|
|
1338
|
+
let isSelectionStart = false;
|
|
1339
|
+
let isSelectionEnd = false;
|
|
1340
|
+
let isSelectedInRange = false;
|
|
1341
|
+
const isCurrentSelect = this.currentOption ? isSameDay(this.currentOption, monthItem.date) : false;
|
|
1342
|
+
switch (this.type) {
|
|
1343
|
+
case "single":
|
|
1344
|
+
isSelected = this._value && !Array.isArray(this._value) && isSameDay(this._value, monthItem.date);
|
|
1345
|
+
break;
|
|
1346
|
+
case "multiple":
|
|
1347
|
+
isSelected = Array.isArray(this._value) ? this._value.some((d) => isSameDay(d, monthItem.date)) : false;
|
|
1348
|
+
break;
|
|
1349
|
+
case "range":
|
|
1350
|
+
if (Array.isArray(this._value) && this._value.length > 0) {
|
|
1351
|
+
isSelected = this._value.some((d) => isSameDay(d, monthItem.date));
|
|
1352
|
+
if (this._value.length === 2) {
|
|
1353
|
+
isSelectedInRange = monthItem.date > this._value[0] && monthItem.date < this._value[1];
|
|
1354
|
+
}
|
|
1355
|
+
if (this._value.length === 1) {
|
|
1356
|
+
isSelectedInRange = this.temporalEndDate ? monthItem.date > this._value[0] && monthItem.date < this.temporalEndDate || monthItem.date < this._value[0] && monthItem.date > this.temporalEndDate : false;
|
|
1357
|
+
}
|
|
1358
|
+
isSelectionStart = isSameDay(this._value[0], monthItem.date);
|
|
1359
|
+
isSelectionEnd = isSameDay(this._value[this._value.length - 1], monthItem.date);
|
|
1360
|
+
}
|
|
1361
|
+
break;
|
|
1362
|
+
default:
|
|
1363
|
+
break;
|
|
1364
|
+
}
|
|
1365
|
+
return ke`
|
|
1366
|
+
<button
|
|
1367
|
+
type="button"
|
|
1368
|
+
part=${partMap({
|
|
1369
|
+
month: true,
|
|
1370
|
+
"month-current": monthItem.isCurrentMonth,
|
|
1371
|
+
"month-current-focus": isCurrentSelect,
|
|
1372
|
+
"month-selected": isSelected,
|
|
1373
|
+
"month-selected-in-range": isSelectedInRange,
|
|
1374
|
+
"month-selection-start": isSelectionStart,
|
|
1375
|
+
"month-selection-end": isSelectionEnd
|
|
1376
|
+
})}
|
|
1377
|
+
class="calendar__month"
|
|
1378
|
+
@mouseup=${() => this.handleSelectDate(monthItem)}
|
|
1379
|
+
@mouseenter=${() => this.handleSetTemporaryEndDate(monthItem)}
|
|
1380
|
+
>
|
|
1381
|
+
${getMonthName(monthItem.date, lang, this.monthLabels)}
|
|
1382
|
+
</button>
|
|
1383
|
+
`;
|
|
1384
|
+
})}
|
|
1385
|
+
</div>` : null}
|
|
1233
1386
|
|
|
1234
1387
|
<footer class="calendar__footer">
|
|
1235
1388
|
${this.showToday ? ke`
|
|
@@ -1505,6 +1658,9 @@ __decorateClass([
|
|
|
1505
1658
|
__decorateClass([
|
|
1506
1659
|
n({ reflect: true })
|
|
1507
1660
|
], PCalendar.prototype, "type", 2);
|
|
1661
|
+
__decorateClass([
|
|
1662
|
+
n({ reflect: true })
|
|
1663
|
+
], PCalendar.prototype, "interface", 2);
|
|
1508
1664
|
__decorateClass([
|
|
1509
1665
|
n({ type: Boolean, reflect: true })
|
|
1510
1666
|
], PCalendar.prototype, "autofocus", 2);
|