@esri/calcite-components 3.2.0-next.9 → 3.2.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/README.md +1 -1
- package/THIRD-PARTY-LICENSES.md +64 -64
- package/dist/calcite/{FPXWKVFR.js → 2VWSWHUO.js} +2 -2
- package/dist/calcite/{ZUEC62JH.js → 2XJXDX35.js} +2 -2
- package/dist/calcite/{XGAHDOC4.js → 2ZPYAPUV.js} +1 -1
- package/dist/calcite/33LF6V2F.js +4 -0
- package/dist/calcite/{U6QYB4Y6.js → 3YMJIQXL.js} +1 -1
- package/dist/calcite/{W5LPGZ3Z.js → 4KW4L2NG.js} +2 -2
- package/dist/calcite/4LKLXJQ3.js +4 -0
- package/dist/calcite/{YFKXZTY6.js → 4LWRPTS6.js} +1 -1
- package/dist/calcite/{VWK4AMFR.js → 4LYUPSQL.js} +1 -1
- package/dist/calcite/4PW5TCQQ.js +4 -0
- package/dist/calcite/4X4WSYXE.js +4 -0
- package/dist/calcite/{RPHBZQXS.js → 4ZUPNG3R.js} +2 -2
- package/dist/calcite/57JX5UY5.js +4 -0
- package/dist/calcite/5ED2MDFW.js +4 -0
- package/dist/calcite/5EXDVQNV.js +4 -0
- package/dist/calcite/5QTBLU5A.js +4 -0
- package/dist/calcite/{7NWYY7VF.js → 5W7APHDH.js} +1 -1
- package/dist/calcite/{XMPXZG7Y.js → 5Z5PVQME.js} +2 -2
- package/dist/calcite/{RQSQFD5Q.js → 5ZIDO3WK.js} +1 -1
- package/dist/calcite/{UBNWJ6V4.js → 6FWOJZJZ.js} +2 -2
- package/dist/calcite/6GGGMC6V.js +4 -0
- package/dist/calcite/6XKL4KIC.js +4 -0
- package/dist/calcite/6YNUUPAM.js +4 -0
- package/dist/calcite/724E4DCX.js +4 -0
- package/dist/calcite/7F2T2TZB.js +4 -0
- package/dist/calcite/{OEIGMKGW.js → 7MKN2HK4.js} +2 -2
- package/dist/calcite/7PMKHZBL.js +4 -0
- package/dist/calcite/{EAWKYFN7.js → 7T6XJUIF.js} +2 -2
- package/dist/calcite/A4ZVVA7X.js +4 -0
- package/dist/calcite/A6PXYMIR.js +6 -0
- package/dist/calcite/A7GNZ3QS.js +4 -0
- package/dist/calcite/{YIDURBCW.js → AE3GS3TO.js} +2 -2
- package/dist/calcite/{J3AGLKSW.js → AGGZYDSJ.js} +2 -2
- package/dist/calcite/AIAWPDXP.js +4 -0
- package/dist/calcite/{UT5ISSYC.js → AMVXXWNE.js} +2 -2
- package/dist/calcite/AROVLRPQ.js +4 -0
- package/dist/calcite/ARQGD5AY.js +4 -0
- package/dist/calcite/{VNMFIOYL.js → BIZ5KGJ4.js} +2 -2
- package/dist/calcite/BLX3NI2A.js +4 -0
- package/dist/calcite/BRNVT3TW.js +4 -0
- package/dist/calcite/{GT5J4OHI.js → BTG3ZQHR.js} +1 -1
- package/dist/calcite/{XKNCNSCZ.js → BV4RQJCP.js} +1 -1
- package/dist/calcite/BZLUPMH7.js +4 -0
- package/dist/calcite/C3MM7YIK.js +4 -0
- package/dist/calcite/{DWD6IQXW.js → CBCJC3QL.js} +2 -2
- package/dist/calcite/COBNOPHA.js +4 -0
- package/dist/calcite/{TAOUTUXQ.js → CPPK4EL6.js} +2 -2
- package/dist/calcite/{CA6YA65Y.js → CXROJX6Z.js} +2 -2
- package/dist/calcite/{UROURTHC.js → D6JA6XN7.js} +2 -2
- package/dist/calcite/{F3OCAY5N.js → D6ZFQYBQ.js} +2 -2
- package/dist/calcite/D77FEDVT.js +4 -0
- package/dist/calcite/{KUAH3OMS.js → DHVU76YN.js} +2 -2
- package/dist/calcite/EDY2FMMS.js +4 -0
- package/dist/calcite/EFSPPMQZ.js +4 -0
- package/dist/calcite/EPTT6FOG.js +4 -0
- package/dist/calcite/EQGLLJWZ.js +4 -0
- package/dist/calcite/{NGCC3EHK.js → EYQ4MKP4.js} +2 -2
- package/dist/calcite/{HX5GYTN3.js → F3SWCYBI.js} +2 -2
- package/dist/calcite/{LUQ42CZJ.js → F5HXSDNY.js} +1 -1
- package/dist/calcite/F7IBMSKP.js +4 -0
- package/dist/calcite/FPUJ7TY4.js +4 -0
- package/dist/calcite/FR6DFQYT.js +4 -0
- package/dist/calcite/FRFT53GA.js +4 -0
- package/dist/calcite/{5G4YAFPK.js → FS2CKSAW.js} +2 -2
- package/dist/calcite/{TMMBEPOU.js → FYZ3GMZG.js} +2 -2
- package/dist/calcite/{L4QE7GFA.js → GBG57GTY.js} +2 -2
- package/dist/calcite/GDY6EEGJ.js +4 -0
- package/dist/calcite/GWTJU2YA.js +4 -0
- package/dist/calcite/GXX53HP4.js +4 -0
- package/dist/calcite/H77KJPTL.js +4 -0
- package/dist/calcite/{76RRKNUE.js → HFKSCF6J.js} +2 -2
- package/dist/calcite/HKVYLC2Z.js +4 -0
- package/dist/calcite/{XW7RFXYS.js → HL2RUMZE.js} +2 -2
- package/dist/calcite/HNYHSIBT.js +4 -0
- package/dist/calcite/I6U5TCK6.js +4 -0
- package/dist/calcite/I7DJ6W5P.js +4 -0
- package/dist/calcite/IDBLX5MO.js +4 -0
- package/dist/calcite/IET7BEH6.js +4 -0
- package/dist/calcite/{5PGW66FE.js → IH3P3OTS.js} +2 -2
- package/dist/calcite/{CIMTSQYU.js → IKVKGIXU.js} +2 -2
- package/dist/calcite/J7M4MHMP.js +4 -0
- package/dist/calcite/JHMJHPB7.js +4 -0
- package/dist/calcite/JJ3TNPPG.js +4 -0
- package/dist/calcite/{DMEQLA6I.js → JMNH6CX4.js} +1 -1
- package/dist/calcite/{MEJZAJ3U.js → JNUM2VBP.js} +2 -2
- package/dist/calcite/JO4MYWKA.js +4 -0
- package/dist/calcite/JO5PFPNE.js +4 -0
- package/dist/calcite/JWDWKQES.js +4 -0
- package/dist/calcite/{ME6TN5LW.js → JYXQGOKN.js} +1 -1
- package/dist/calcite/JZ7LMAA4.js +4 -0
- package/dist/calcite/KMO43TL6.js +4 -0
- package/dist/calcite/KNKTO7BF.js +4 -0
- package/dist/calcite/KSX4MO62.js +4 -0
- package/dist/calcite/KTLYNRYB.js +4 -0
- package/dist/calcite/L4MGQ327.js +4 -0
- package/dist/calcite/{6PKSN7BG.js → LFMPTQHL.js} +2 -2
- package/dist/calcite/{BWHAGL6P.js → LKMYJMH6.js} +2 -2
- package/dist/calcite/LPBOLYYY.js +4 -0
- package/dist/calcite/M6O66VHM.js +4 -0
- package/dist/calcite/{OLBTPMKZ.js → MAUHZXDA.js} +1 -1
- package/dist/calcite/MMABND5P.js +4 -0
- package/dist/calcite/{ZDRSJEVB.js → MN7FASIH.js} +2 -2
- package/dist/calcite/N7VCH2CZ.js +4 -0
- package/dist/calcite/{HMF6CMCF.js → NIF4A2CN.js} +2 -2
- package/dist/calcite/NIGVBTMJ.js +4 -0
- package/dist/calcite/{5P5EIPWV.js → NOQW64ZT.js} +2 -2
- package/dist/calcite/NT65MCOL.js +4 -0
- package/dist/calcite/NTYF4BYL.js +4 -0
- package/dist/calcite/{SYD7V3T3.js → O26S5KNA.js} +2 -2
- package/dist/calcite/{VMHMVJDK.js → O3OCUHQX.js} +3 -3
- package/dist/calcite/{JZ6ITVVK.js → OI2S43L6.js} +2 -2
- package/dist/calcite/{YVK3UOG3.js → ORUBBEG4.js} +3 -3
- package/dist/calcite/OTR7EFHA.js +4 -0
- package/dist/calcite/OXIG3UQX.js +4 -0
- package/dist/calcite/OYLV6C5O.js +4 -0
- package/dist/calcite/P7SDV27A.js +4 -0
- package/dist/calcite/PLAT5F6Z.js +4 -0
- package/dist/calcite/{K64ZX4NF.js → PXSMRHY6.js} +2 -2
- package/dist/calcite/{BLKTZDZZ.js → PZWAMXZN.js} +2 -2
- package/dist/calcite/{KARZSWGK.js → Q6D3SXPB.js} +1 -1
- package/dist/calcite/QDUF6PLE.js +4 -0
- package/dist/calcite/{YMRWZPE4.js → R4RIHSHB.js} +1 -1
- package/dist/calcite/{SZNXLFM7.js → RCGAFOG2.js} +2 -2
- package/dist/calcite/{BDUUNLZY.js → RFLLPTVQ.js} +2 -2
- package/dist/calcite/{N4NU45WV.js → RIPCYHYN.js} +2 -2
- package/dist/calcite/RP5ZF7Z4.js +4 -0
- package/dist/calcite/{ZBNBNZ5D.js → S2CYF2UT.js} +1 -1
- package/dist/calcite/S3OWE3OZ.js +4 -0
- package/dist/calcite/SELO3ARM.js +4 -0
- package/dist/calcite/SGERRLJ6.js +4 -0
- package/dist/calcite/SIJ4YJOE.js +4 -0
- package/dist/calcite/SR7WIFHH.js +4 -0
- package/dist/calcite/{L7D3HJ5T.js → TJVULDS6.js} +2 -2
- package/dist/calcite/TNGZVW6J.js +4 -0
- package/dist/calcite/{B6DDQFWD.js → TOJOSNQO.js} +2 -2
- package/dist/calcite/TV4RA23F.js +4 -0
- package/dist/calcite/{ELMUOA6Z.js → TZX6J2CY.js} +2 -2
- package/dist/calcite/{6TAMFRLR.js → U3ASAMB5.js} +2 -2
- package/dist/calcite/UAIMJEKZ.js +4 -0
- package/dist/calcite/UBFWUWDR.js +4 -0
- package/dist/calcite/{XDOL54LL.js → USZDNB3N.js} +1 -1
- package/dist/calcite/UXQGRKED.js +4 -0
- package/dist/calcite/VFQBULT7.js +4 -0
- package/dist/calcite/VGL3WVHU.js +4 -0
- package/dist/calcite/VL3H5XEC.js +4 -0
- package/dist/calcite/{2NOMXELK.js → VMKYGMQE.js} +2 -2
- package/dist/calcite/VS5DUK5N.js +4 -0
- package/dist/calcite/{GSZBQZWQ.js → VZKQBOJM.js} +2 -2
- package/dist/calcite/{HRPCSVT7.js → W27T3IZZ.js} +2 -2
- package/dist/calcite/W5KETLAD.js +4 -0
- package/dist/calcite/WMQZRSQB.js +4 -0
- package/dist/calcite/WOIUHABN.js +4 -0
- package/dist/calcite/{X4RQ67HG.js → WQASJHDE.js} +2 -2
- package/dist/calcite/WQMVF7FU.js +4 -0
- package/dist/calcite/WSN3L2FK.js +4 -0
- package/dist/calcite/XDXZC7TK.js +4 -0
- package/dist/calcite/{N6RZSJYP.js → XEDUET37.js} +2 -2
- package/dist/calcite/{E5PA4TBM.js → XJN5Z3JP.js} +2 -2
- package/dist/calcite/{PRBLEDZO.js → XQ3BDEY3.js} +2 -2
- package/dist/calcite/XRHSWUWV.js +4 -0
- package/dist/calcite/{HONPXEX2.js → YGX5ZVDM.js} +2 -2
- package/dist/calcite/{ZUCDSB5I.js → YMW6PFGO.js} +1 -1
- package/dist/calcite/{PRLQFMNF.js → YPQ2SFHJ.js} +2 -2
- package/dist/calcite/{PQD3MN6H.js → YSRW4TZC.js} +1 -1
- package/dist/calcite/{5OUJXYAL.js → YUCOP2VX.js} +2 -2
- package/dist/calcite/Z7R3MZGO.js +4 -0
- package/dist/calcite/{Y5JLRNSY.js → ZCWNMSG2.js} +2 -2
- package/dist/calcite/{UASJ4BDQ.js → ZJPKOYKY.js} +2 -2
- package/dist/calcite/{YDARVV7R.js → ZKLMMLWH.js} +1 -1
- package/dist/calcite/{EZOHJLFG.js → ZP55CECM.js} +2 -2
- package/dist/calcite/{QNGBTX3D.js → ZXTMKTM3.js} +2 -2
- package/dist/calcite/assets/combobox/t9n/messages.en.json +1 -1
- package/dist/calcite/assets/combobox/t9n/messages.json +1 -1
- package/dist/calcite/assets/icon/calendarHeatChart16.json +1 -0
- package/dist/calcite/assets/icon/calendarHeatChart24.json +1 -0
- package/dist/calcite/assets/icon/calendarHeatChart32.json +1 -0
- package/dist/calcite/assets/icon/matrixHeatChart16.json +1 -0
- package/dist/calcite/assets/icon/matrixHeatChart24.json +1 -0
- package/dist/calcite/assets/icon/matrixHeatChart32.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodBlend16.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodBlend24.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodBlend32.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodByAttribute16.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodByAttribute24.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodByAttribute32.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodClosestToCenter16.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodClosestToCenter24.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodClosestToCenter32.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodClosestToNadir16.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodClosestToNadir24.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodClosestToNadir32.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodFirst16.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodFirst24.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodFirst32.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodLast16.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodLast24.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodLast32.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodLockRaster16.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodLockRaster24.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodLockRaster32.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodMaximum16.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodMaximum24.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodMaximum32.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodMean16.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodMean24.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodMean32.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodMinimum16.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodMinimum24.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodMinimum32.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodNone16.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodNone24.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodNone32.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodNorthWest16.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodNorthWest24.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodNorthWest32.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodSeamline16.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodSeamline24.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodSeamline32.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodSum16.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodSum24.json +1 -0
- package/dist/calcite/assets/icon/mosaicMethodSum32.json +1 -0
- package/dist/calcite/assets/icon/progressBarChart16.json +1 -0
- package/dist/calcite/assets/icon/progressBarChart24.json +1 -0
- package/dist/calcite/assets/icon/progressBarChart32.json +1 -0
- package/dist/calcite/assets/icon/spikeDataVisualization16.json +1 -0
- package/dist/calcite/assets/icon/spikeDataVisualization24.json +1 -0
- package/dist/calcite/assets/icon/spikeDataVisualization32.json +1 -0
- package/dist/calcite/assets/icon/spikeDataVisualizationOpen16.json +1 -0
- package/dist/calcite/assets/icon/spikeDataVisualizationOpen24.json +1 -0
- package/dist/calcite/assets/icon/spikeDataVisualizationOpen32.json +1 -0
- package/dist/calcite/assets/icon/spikeDataVisualizationOutlined16F.json +1 -0
- package/dist/calcite/assets/icon/spikeDataVisualizationOutlined24F.json +1 -0
- package/dist/calcite/assets/icon/spikeDataVisualizationOutlined32F.json +1 -0
- package/dist/calcite/assets/icon/spikeDataVisualizationOutlinedColorLocked16.json +1 -0
- package/dist/calcite/assets/icon/spikeDataVisualizationOutlinedColorLocked24.json +1 -0
- package/dist/calcite/assets/icon/spikeDataVisualizationOutlinedColorLocked32.json +1 -0
- package/dist/calcite/assets/icon/spikeDataVisualizationOutlinedOpen16.json +1 -0
- package/dist/calcite/assets/icon/spikeDataVisualizationOutlinedOpen24.json +1 -0
- package/dist/calcite/assets/icon/spikeDataVisualizationOutlinedOpen32.json +1 -0
- package/dist/calcite/assets/icon/spikeDataVisualizationOutlinedOpenColorLocked16.json +1 -0
- package/dist/calcite/assets/icon/spikeDataVisualizationOutlinedOpenColorLocked24.json +1 -0
- package/dist/calcite/assets/icon/spikeDataVisualizationOutlinedOpenColorLocked32.json +1 -0
- package/dist/calcite/assets/input-time-picker/t9n/messages.ar.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.bg.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.bs.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.ca.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.cs.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.da.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.de.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.el.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.en.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.es.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.et.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.fi.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.fr.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.he.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.hr.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.hu.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.id.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.it.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.ja.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.ko.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.lt.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.lv.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.nl.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.no.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.pl.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.pt-BR.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.pt-PT.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.ro.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.ru.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.sk.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.sl.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.sr.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.sv.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.th.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.tr.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.uk.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.vi.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.zh-CN.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.zh-HK.json +1 -1
- package/dist/calcite/assets/input-time-picker/t9n/messages.zh-TW.json +1 -1
- package/dist/calcite/calcite.css +1 -1
- package/dist/calcite/calcite.esm.js +3 -3
- package/dist/chunks/ExpandToggle.js +7 -42
- package/dist/chunks/FloatingArrow.js +1 -1
- package/dist/chunks/Heading.js +1 -1
- package/dist/chunks/Validation.js +6 -2
- package/dist/chunks/XButton.js +1 -1
- package/dist/chunks/_sortable.js +8 -0
- package/dist/chunks/array.js +1 -1
- package/dist/chunks/component.js +2 -7
- package/dist/chunks/core.js +1 -1
- package/dist/chunks/date.js +1 -1
- package/dist/chunks/dom.js +15 -6
- package/dist/chunks/dynamicClasses.js +1 -1
- package/dist/chunks/filter.js +1 -1
- package/dist/chunks/floating-ui.js +1 -5
- package/dist/chunks/form.js +2 -2
- package/dist/chunks/global.js +1 -1
- package/dist/chunks/guid.js +1 -1
- package/dist/chunks/input.js +1 -1
- package/dist/chunks/interact.min.js +2259 -2254
- package/dist/chunks/interactive.js +1 -1
- package/dist/chunks/key.js +1 -1
- package/dist/chunks/label.js +2 -2
- package/dist/chunks/locale.js +17 -59
- package/dist/chunks/logger.js +1 -1
- package/dist/chunks/math.js +1 -1
- package/dist/chunks/observers.js +1 -1
- package/dist/chunks/openCloseComponent.js +1 -1
- package/dist/chunks/resources.js +1 -1
- package/dist/chunks/resources2.js +1 -1
- package/dist/chunks/resources3.js +3 -2
- package/dist/chunks/resources4.js +1 -1
- package/dist/chunks/resources5.js +1 -1
- package/dist/chunks/resources6.js +1 -1
- package/dist/chunks/resources7.js +1 -1
- package/dist/chunks/responsive.js +1 -1
- package/dist/chunks/runtime.js +9 -5
- package/dist/chunks/sortableComponent.js +1 -1
- package/dist/chunks/text.js +5 -1
- package/dist/chunks/time.js +183 -148
- package/dist/chunks/useFocusTrap.js +2 -2
- package/dist/chunks/usePreventDocumentScroll.js +54 -0
- package/dist/chunks/useT9n.js +2 -2
- package/dist/chunks/utils.js +5 -3
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/utils3.js +10 -6
- package/dist/chunks/utils4.js +1 -1
- package/dist/components/calcite-accordion/customElement.d.ts +23 -5
- package/dist/components/calcite-accordion/customElement.js +4 -9
- package/dist/components/calcite-accordion-item/customElement.d.ts +9 -5
- package/dist/components/calcite-accordion-item/customElement.js +10 -15
- package/dist/components/calcite-accordion-item/resources.d.ts +2 -0
- package/dist/components/calcite-action/customElement.d.ts +49 -21
- package/dist/components/calcite-action/customElement.js +3 -12
- package/dist/components/calcite-action-bar/customElement.d.ts +47 -24
- package/dist/components/calcite-action-bar/customElement.js +55 -36
- package/dist/components/calcite-action-bar/resources.d.ts +1 -0
- package/dist/components/calcite-action-bar/utils.d.ts +0 -14
- package/dist/components/calcite-action-group/customElement.d.ts +26 -16
- package/dist/components/calcite-action-group/customElement.js +3 -12
- package/dist/components/calcite-action-menu/customElement.d.ts +31 -9
- package/dist/components/calcite-action-menu/customElement.js +6 -14
- package/dist/components/calcite-action-pad/customElement.d.ts +37 -23
- package/dist/components/calcite-action-pad/customElement.js +11 -12
- package/dist/components/calcite-alert/customElement.d.ts +52 -25
- package/dist/components/calcite-alert/customElement.js +3 -17
- package/dist/components/calcite-autocomplete/customElement.d.ts +62 -31
- package/dist/components/calcite-autocomplete/customElement.js +11 -44
- package/dist/components/calcite-autocomplete-item/customElement.d.ts +7 -3
- package/dist/components/calcite-autocomplete-item/customElement.js +2 -8
- package/dist/components/calcite-autocomplete-item-group/customElement.d.ts +1 -1
- package/dist/components/calcite-autocomplete-item-group/customElement.js +2 -6
- package/dist/components/calcite-avatar/customElement.d.ts +5 -1
- package/dist/components/calcite-avatar/customElement.js +2 -8
- package/dist/components/calcite-block/customElement.d.ts +64 -42
- package/dist/components/calcite-block/customElement.js +6 -19
- package/dist/components/calcite-block-group/customElement.d.ts +17 -7
- package/dist/components/calcite-block-group/customElement.js +6 -23
- package/dist/components/calcite-block-section/customElement.d.ts +17 -15
- package/dist/components/calcite-block-section/customElement.js +3 -15
- package/dist/components/calcite-button/customElement.d.ts +53 -20
- package/dist/components/calcite-button/customElement.js +5 -14
- package/dist/components/calcite-card/customElement.d.ts +37 -25
- package/dist/components/calcite-card/customElement.js +3 -12
- package/dist/components/calcite-card-group/customElement.d.ts +11 -7
- package/dist/components/calcite-card-group/customElement.js +2 -11
- package/dist/components/calcite-carousel/customElement.d.ts +45 -34
- package/dist/components/calcite-carousel/customElement.js +3 -14
- package/dist/components/calcite-carousel-item/customElement.d.ts +6 -2
- package/dist/components/calcite-carousel-item/customElement.js +2 -4
- package/dist/components/calcite-checkbox/customElement.d.ts +24 -6
- package/dist/components/calcite-checkbox/customElement.js +2 -11
- package/dist/components/calcite-chip/customElement.d.ts +51 -20
- package/dist/components/calcite-chip/customElement.js +3 -12
- package/dist/components/calcite-chip-group/customElement.d.ts +13 -7
- package/dist/components/calcite-chip-group/customElement.js +2 -11
- package/dist/components/calcite-color-picker/customElement.d.ts +57 -37
- package/dist/components/calcite-color-picker/customElement.js +24 -49
- package/dist/components/calcite-color-picker-hex-input/customElement.d.ts +14 -3
- package/dist/components/calcite-color-picker-hex-input/customElement.js +2 -11
- package/dist/components/calcite-color-picker-swatch/customElement.d.ts +10 -2
- package/dist/components/calcite-color-picker-swatch/customElement.js +2 -8
- package/dist/components/calcite-combobox/customElement.d.ts +82 -44
- package/dist/components/calcite-combobox/customElement.js +144 -89
- package/dist/components/calcite-combobox/index.d.ts +1 -0
- package/dist/components/calcite-combobox/index.js +1 -0
- package/dist/components/calcite-combobox/resources.d.ts +9 -5
- package/dist/components/calcite-combobox-item/customElement.d.ts +29 -9
- package/dist/components/calcite-combobox-item/customElement.js +14 -13
- package/dist/components/calcite-combobox-item/resources.d.ts +7 -0
- package/dist/components/calcite-combobox-item-group/customElement.d.ts +1 -1
- package/dist/components/calcite-combobox-item-group/customElement.js +2 -6
- package/dist/components/calcite-date-picker/customElement.d.ts +40 -25
- package/dist/components/calcite-date-picker/customElement.js +3 -38
- package/dist/components/calcite-date-picker-day/customElement.d.ts +45 -9
- package/dist/components/calcite-date-picker-day/customElement.js +3 -12
- package/dist/components/calcite-date-picker-month/customElement.d.ts +5 -1
- package/dist/components/calcite-date-picker-month/customElement.js +10 -77
- package/dist/components/calcite-date-picker-month-header/customElement.js +3 -23
- package/dist/components/calcite-dialog/customElement.d.ts +86 -43
- package/dist/components/calcite-dialog/customElement.js +39 -95
- package/dist/components/calcite-dialog/resources.d.ts +0 -2
- package/dist/components/calcite-dropdown/customElement.d.ts +37 -15
- package/dist/components/calcite-dropdown/customElement.js +4 -25
- package/dist/components/calcite-dropdown-group/customElement.d.ts +4 -1
- package/dist/components/calcite-dropdown-group/customElement.js +2 -8
- package/dist/components/calcite-dropdown-item/customElement.d.ts +12 -4
- package/dist/components/calcite-dropdown-item/customElement.js +2 -11
- package/dist/components/calcite-fab/customElement.d.ts +35 -7
- package/dist/components/calcite-fab/customElement.js +3 -10
- package/dist/components/calcite-filter/customElement.d.ts +21 -24
- package/dist/components/calcite-filter/customElement.js +4 -22
- package/dist/components/calcite-flow/customElement.d.ts +1 -1
- package/dist/components/calcite-flow/customElement.js +2 -20
- package/dist/components/calcite-flow-item/customElement.d.ts +75 -41
- package/dist/components/calcite-flow-item/customElement.js +3 -28
- package/dist/components/calcite-graph/customElement.js +2 -6
- package/dist/components/calcite-handle/customElement.d.ts +16 -15
- package/dist/components/calcite-handle/customElement.js +3 -12
- package/dist/components/calcite-icon/customElement.d.ts +15 -3
- package/dist/components/calcite-icon/customElement.js +2 -8
- package/dist/components/calcite-inline-editable/customElement.d.ts +30 -19
- package/dist/components/calcite-inline-editable/customElement.js +6 -16
- package/dist/components/calcite-input/customElement.d.ts +57 -24
- package/dist/components/calcite-input/customElement.js +11 -22
- package/dist/components/calcite-input-date-picker/customElement.d.ts +61 -26
- package/dist/components/calcite-input-date-picker/customElement.js +10 -30
- package/dist/components/calcite-input-message/customElement.d.ts +16 -4
- package/dist/components/calcite-input-message/customElement.js +2 -8
- package/dist/components/calcite-input-number/customElement.d.ts +59 -25
- package/dist/components/calcite-input-number/customElement.js +47 -24
- package/dist/components/calcite-input-number/resources.d.ts +3 -0
- package/dist/components/calcite-input-text/customElement.d.ts +44 -22
- package/dist/components/calcite-input-text/customElement.js +8 -19
- package/dist/components/calcite-input-time-picker/customElement.d.ts +84 -28
- package/dist/components/calcite-input-time-picker/customElement.js +648 -522
- package/dist/components/calcite-input-time-picker/index.d.ts +1 -2
- package/dist/components/calcite-input-time-picker/index.js +1 -2
- package/dist/components/calcite-input-time-picker/resources.d.ts +18 -0
- package/dist/components/calcite-input-time-zone/customElement.d.ts +111 -89
- package/dist/components/calcite-input-time-zone/customElement.js +6 -28
- package/dist/components/calcite-label/customElement.d.ts +16 -4
- package/dist/components/calcite-label/customElement.js +2 -8
- package/dist/components/calcite-link/customElement.d.ts +7 -2
- package/dist/components/calcite-link/customElement.js +2 -11
- package/dist/components/calcite-list/customElement.d.ts +53 -41
- package/dist/components/calcite-list/customElement.js +17 -37
- package/dist/components/calcite-list-item/customElement.d.ts +66 -37
- package/dist/components/calcite-list-item/customElement.js +6 -26
- package/dist/components/calcite-list-item-group/customElement.d.ts +8 -3
- package/dist/components/calcite-list-item-group/customElement.js +2 -8
- package/dist/components/calcite-loader/customElement.d.ts +22 -4
- package/dist/components/calcite-loader/customElement.js +2 -13
- package/dist/components/calcite-menu/customElement.d.ts +8 -9
- package/dist/components/calcite-menu/customElement.js +4 -13
- package/dist/components/calcite-menu-item/customElement.d.ts +21 -14
- package/dist/components/calcite-menu-item/customElement.js +3 -12
- package/dist/components/calcite-meter/customElement.d.ts +60 -12
- package/dist/components/calcite-meter/customElement.js +2 -8
- package/dist/components/calcite-modal/customElement.d.ts +58 -27
- package/dist/components/calcite-modal/customElement.js +22 -56
- package/dist/components/calcite-navigation/customElement.d.ts +15 -11
- package/dist/components/calcite-navigation/customElement.js +3 -10
- package/dist/components/calcite-navigation-logo/customElement.d.ts +10 -2
- package/dist/components/calcite-navigation-logo/customElement.js +2 -7
- package/dist/components/calcite-navigation-user/customElement.d.ts +10 -2
- package/dist/components/calcite-navigation-user/customElement.js +2 -7
- package/dist/components/calcite-notice/customElement.d.ts +40 -21
- package/dist/components/calcite-notice/customElement.js +4 -13
- package/dist/components/calcite-option/customElement.d.ts +10 -2
- package/dist/components/calcite-option/customElement.js +2 -8
- package/dist/components/calcite-option-group/customElement.d.ts +6 -2
- package/dist/components/calcite-option-group/customElement.js +2 -8
- package/dist/components/calcite-pagination/customElement.d.ts +36 -21
- package/dist/components/calcite-pagination/customElement.js +3 -19
- package/dist/components/calcite-panel/customElement.d.ts +75 -42
- package/dist/components/calcite-panel/customElement.js +5 -26
- package/dist/components/calcite-panel/resources.d.ts +1 -0
- package/dist/components/calcite-popover/customElement.d.ts +59 -24
- package/dist/components/calcite-popover/customElement.js +3 -18
- package/dist/components/calcite-progress/customElement.d.ts +12 -2
- package/dist/components/calcite-progress/customElement.js +2 -4
- package/dist/components/calcite-radio-button/customElement.d.ts +18 -4
- package/dist/components/calcite-radio-button/customElement.js +6 -15
- package/dist/components/calcite-radio-button/resources.d.ts +1 -0
- package/dist/components/calcite-radio-button-group/customElement.d.ts +23 -9
- package/dist/components/calcite-radio-button-group/customElement.js +3 -12
- package/dist/components/calcite-rating/customElement.d.ts +33 -19
- package/dist/components/calcite-rating/customElement.js +3 -13
- package/dist/components/calcite-scrim/customElement.d.ts +7 -8
- package/dist/components/calcite-scrim/customElement.js +3 -9
- package/dist/components/calcite-segmented-control/customElement.d.ts +33 -12
- package/dist/components/calcite-segmented-control/customElement.js +2 -11
- package/dist/components/calcite-segmented-control-item/customElement.d.ts +10 -2
- package/dist/components/calcite-segmented-control-item/customElement.js +2 -8
- package/dist/components/calcite-select/customElement.d.ts +23 -10
- package/dist/components/calcite-select/customElement.js +2 -11
- package/dist/components/calcite-sheet/customElement.d.ts +45 -18
- package/dist/components/calcite-sheet/customElement.js +40 -58
- package/dist/components/calcite-sheet/resources.d.ts +0 -2
- package/dist/components/calcite-shell/customElement.d.ts +17 -13
- package/dist/components/calcite-shell/customElement.js +7 -8
- package/dist/components/calcite-shell-center-row/customElement.d.ts +17 -5
- package/dist/components/calcite-shell-center-row/customElement.js +2 -8
- package/dist/components/calcite-shell-panel/customElement.d.ts +28 -14
- package/dist/components/calcite-shell-panel/customElement.js +156 -204
- package/dist/components/calcite-shell-panel/index.d.ts +1 -0
- package/dist/components/calcite-shell-panel/index.js +1 -0
- package/dist/components/calcite-shell-panel/interfaces.d.ts +8 -0
- package/dist/components/calcite-shell-panel/resources.d.ts +4 -1
- package/dist/components/calcite-slider/customElement.d.ts +73 -16
- package/dist/components/calcite-slider/customElement.js +2 -69
- package/dist/components/calcite-sort-handle/customElement.d.ts +39 -30
- package/dist/components/calcite-sort-handle/customElement.js +4 -15
- package/dist/components/calcite-sortable-list/customElement.d.ts +22 -6
- package/dist/components/calcite-sortable-list/customElement.js +2 -8
- package/dist/components/calcite-split-button/customElement.d.ts +41 -10
- package/dist/components/calcite-split-button/customElement.js +2 -13
- package/dist/components/calcite-stack/customElement.d.ts +10 -6
- package/dist/components/calcite-stack/customElement.js +2 -6
- package/dist/components/calcite-stepper/customElement.d.ts +28 -21
- package/dist/components/calcite-stepper/customElement.js +4 -21
- package/dist/components/calcite-stepper/resources.d.ts +5 -0
- package/dist/components/calcite-stepper-item/customElement.d.ts +29 -14
- package/dist/components/calcite-stepper-item/customElement.js +4 -14
- package/dist/components/calcite-stepper-item/resources.d.ts +1 -0
- package/dist/components/calcite-switch/customElement.d.ts +16 -4
- package/dist/components/calcite-switch/customElement.js +3 -12
- package/dist/components/calcite-tab/customElement.d.ts +3 -1
- package/dist/components/calcite-tab/customElement.js +3 -17
- package/dist/components/calcite-tab-nav/customElement.d.ts +12 -19
- package/dist/components/calcite-tab-nav/customElement.js +14 -25
- package/dist/components/calcite-tab-title/customElement.d.ts +27 -16
- package/dist/components/calcite-tab-title/customElement.js +3 -25
- package/dist/components/calcite-table/customElement.d.ts +62 -33
- package/dist/components/calcite-table/customElement.js +10 -19
- package/dist/components/calcite-table-cell/customElement.d.ts +11 -12
- package/dist/components/calcite-table-cell/customElement.js +3 -12
- package/dist/components/calcite-table-header/customElement.d.ts +10 -11
- package/dist/components/calcite-table-header/customElement.js +3 -12
- package/dist/components/calcite-table-row/customElement.d.ts +14 -5
- package/dist/components/calcite-table-row/customElement.js +36 -25
- package/dist/components/calcite-tabs/customElement.d.ts +22 -6
- package/dist/components/calcite-tabs/customElement.js +2 -13
- package/dist/components/calcite-text-area/customElement.d.ts +45 -25
- package/dist/components/calcite-text-area/customElement.js +33 -31
- package/dist/components/calcite-text-area/resources.d.ts +1 -0
- package/dist/components/calcite-tile/customElement.d.ts +32 -10
- package/dist/components/calcite-tile/customElement.js +2 -11
- package/dist/components/calcite-tile-group/customElement.d.ts +22 -8
- package/dist/components/calcite-tile-group/customElement.js +2 -8
- package/dist/components/calcite-tile-select/customElement.d.ts +34 -8
- package/dist/components/calcite-tile-select/customElement.js +2 -11
- package/dist/components/calcite-tile-select-group/customElement.d.ts +8 -2
- package/dist/components/calcite-tile-select-group/customElement.js +2 -6
- package/dist/components/calcite-time-picker/customElement.d.ts +18 -15
- package/dist/components/calcite-time-picker/customElement.js +25 -23
- package/dist/components/calcite-tip/customElement.d.ts +20 -15
- package/dist/components/calcite-tip/customElement.js +3 -9
- package/dist/components/calcite-tip-group/customElement.d.ts +1 -1
- package/dist/components/calcite-tip-group/customElement.js +1 -5
- package/dist/components/calcite-tip-manager/customElement.d.ts +17 -17
- package/dist/components/calcite-tip-manager/customElement.js +2 -12
- package/dist/components/calcite-tooltip/customElement.d.ts +27 -9
- package/dist/components/calcite-tooltip/customElement.js +2 -15
- package/dist/components/calcite-tree/customElement.d.ts +11 -7
- package/dist/components/calcite-tree/customElement.js +2 -8
- package/dist/components/calcite-tree-item/customElement.d.ts +18 -6
- package/dist/components/calcite-tree-item/customElement.js +2 -15
- package/dist/components/functional/Validation.d.ts +3 -2
- package/dist/controllers/time/time.d.ts +160 -0
- package/dist/controllers/useFocusTrap.d.ts +1 -1
- package/dist/controllers/usePreventDocumentScroll.d.ts +22 -0
- package/dist/controllers/useT9n.d.ts +1 -1
- package/dist/custom-theme/block.d.ts +3 -0
- package/dist/custom-theme/filter.d.ts +17 -0
- package/dist/custom-theme/input-number.d.ts +27 -0
- package/dist/custom-theme/notice.d.ts +3 -0
- package/dist/custom-theme/radio-button-group.d.ts +5 -0
- package/dist/custom-theme/radio-button.d.ts +7 -0
- package/dist/custom-theme/shell-panel.d.ts +11 -6
- package/dist/custom-theme/stepper-item.d.ts +22 -0
- package/dist/custom-theme/stepper.d.ts +8 -0
- package/dist/custom-theme/switch.d.ts +1 -0
- package/dist/custom-theme/time-picker.d.ts +11 -0
- package/dist/docs/api.json +767 -252
- package/dist/docs/docs.json +1079 -513
- package/dist/docs/supported-browsers.json +1 -1
- package/dist/docs/translations.json +1 -1
- package/dist/docs/vscode.css-custom-data.json +414 -22
- package/dist/docs/vscode.html-custom-data.json +39 -21
- package/dist/docs/web-types.json +792 -361
- package/dist/extras/vscode-data.json +39 -21
- package/dist/index.js +1 -1
- package/dist/loader.js +7 -7
- package/dist/types/lumina.d.ts +3 -3
- package/dist/types/preact.d.ts +3 -3
- package/dist/types/react.d.ts +3 -3
- package/dist/types/stencil.d.ts +3 -3
- package/dist/utils/dom.d.ts +9 -4
- package/dist/utils/locale.d.ts +1 -3
- package/dist/utils/overflow.d.ts +28 -0
- package/dist/utils/resources.d.ts +2 -0
- package/dist/utils/text.d.ts +7 -0
- package/dist/utils/time.d.ts +22 -24
- package/package.json +18 -14
- package/dist/calcite/23E2D2R3.js +0 -4
- package/dist/calcite/23E2D2R3.js.LEGAL.txt +0 -0
- package/dist/calcite/2BQ2VI6K.js +0 -4
- package/dist/calcite/2BQ2VI6K.js.LEGAL.txt +0 -3
- package/dist/calcite/2JE6OWPB.js +0 -4
- package/dist/calcite/2JE6OWPB.js.LEGAL.txt +0 -3
- package/dist/calcite/2JVGLXH3.js +0 -4
- package/dist/calcite/2JVGLXH3.js.LEGAL.txt +0 -3
- package/dist/calcite/2NOMXELK.js.LEGAL.txt +0 -3
- package/dist/calcite/36FH7AWU.js +0 -4
- package/dist/calcite/36FH7AWU.js.LEGAL.txt +0 -0
- package/dist/calcite/4BGMBXOD.js +0 -4
- package/dist/calcite/4BGMBXOD.js.LEGAL.txt +0 -3
- package/dist/calcite/4EWEUO6Q.js +0 -4
- package/dist/calcite/4EWEUO6Q.js.LEGAL.txt +0 -3
- package/dist/calcite/4KJ5CILV.js +0 -4
- package/dist/calcite/4KJ5CILV.js.LEGAL.txt +0 -0
- package/dist/calcite/4PC3AOIO.js +0 -4
- package/dist/calcite/4PC3AOIO.js.LEGAL.txt +0 -0
- package/dist/calcite/4ZF77VHP.js +0 -4
- package/dist/calcite/4ZF77VHP.js.LEGAL.txt +0 -0
- package/dist/calcite/5ELL365L.js +0 -4
- package/dist/calcite/5ELL365L.js.LEGAL.txt +0 -3
- package/dist/calcite/5G4YAFPK.js.LEGAL.txt +0 -3
- package/dist/calcite/5GBDR75K.js +0 -4
- package/dist/calcite/5GBDR75K.js.LEGAL.txt +0 -3
- package/dist/calcite/5JMGYEZU.js +0 -4
- package/dist/calcite/5JMGYEZU.js.LEGAL.txt +0 -0
- package/dist/calcite/5NBSZ23H.js +0 -4
- package/dist/calcite/5NBSZ23H.js.LEGAL.txt +0 -0
- package/dist/calcite/5OMZ2Q3Y.js +0 -4
- package/dist/calcite/5OMZ2Q3Y.js.LEGAL.txt +0 -3
- package/dist/calcite/5OUJXYAL.js.LEGAL.txt +0 -3
- package/dist/calcite/5P5EIPWV.js.LEGAL.txt +0 -3
- package/dist/calcite/5PGW66FE.js.LEGAL.txt +0 -3
- package/dist/calcite/5TA3HFIJ.js +0 -4
- package/dist/calcite/5TA3HFIJ.js.LEGAL.txt +0 -3
- package/dist/calcite/6K37MYMT.js +0 -4
- package/dist/calcite/6K37MYMT.js.LEGAL.txt +0 -3
- package/dist/calcite/6PKSN7BG.js.LEGAL.txt +0 -8
- package/dist/calcite/6TAMFRLR.js.LEGAL.txt +0 -3
- package/dist/calcite/6VMN5CYO.js +0 -4
- package/dist/calcite/6VMN5CYO.js.LEGAL.txt +0 -3
- package/dist/calcite/74T4RAPI.js +0 -6
- package/dist/calcite/74T4RAPI.js.LEGAL.txt +0 -145
- package/dist/calcite/76RRKNUE.js.LEGAL.txt +0 -3
- package/dist/calcite/7L5D4NIM.js +0 -4
- package/dist/calcite/7L5D4NIM.js.LEGAL.txt +0 -3
- package/dist/calcite/7M4QOWJM.js +0 -4
- package/dist/calcite/7M4QOWJM.js.LEGAL.txt +0 -3
- package/dist/calcite/7NWYY7VF.js.LEGAL.txt +0 -3
- package/dist/calcite/ALP4JNOA.js +0 -4
- package/dist/calcite/ALP4JNOA.js.LEGAL.txt +0 -3
- package/dist/calcite/AS4YQQHN.js +0 -4
- package/dist/calcite/AS4YQQHN.js.LEGAL.txt +0 -3
- package/dist/calcite/AZA6DPP6.js +0 -4
- package/dist/calcite/AZA6DPP6.js.LEGAL.txt +0 -3
- package/dist/calcite/B6DDQFWD.js.LEGAL.txt +0 -3
- package/dist/calcite/B6ODRDRS.js +0 -4
- package/dist/calcite/B6ODRDRS.js.LEGAL.txt +0 -0
- package/dist/calcite/BDUUNLZY.js.LEGAL.txt +0 -3
- package/dist/calcite/BEBIF4DX.js +0 -4
- package/dist/calcite/BEBIF4DX.js.LEGAL.txt +0 -3
- package/dist/calcite/BFI45G22.js +0 -4
- package/dist/calcite/BFI45G22.js.LEGAL.txt +0 -0
- package/dist/calcite/BIA6P4AQ.js +0 -4
- package/dist/calcite/BIA6P4AQ.js.LEGAL.txt +0 -0
- package/dist/calcite/BLKTZDZZ.js.LEGAL.txt +0 -0
- package/dist/calcite/BWHAGL6P.js.LEGAL.txt +0 -3
- package/dist/calcite/CA6YA65Y.js.LEGAL.txt +0 -0
- package/dist/calcite/CIMTSQYU.js.LEGAL.txt +0 -3
- package/dist/calcite/CLELS6OS.js +0 -4
- package/dist/calcite/CLELS6OS.js.LEGAL.txt +0 -3
- package/dist/calcite/CQOHQWE4.js +0 -4
- package/dist/calcite/CQOHQWE4.js.LEGAL.txt +0 -3
- package/dist/calcite/CTKW7PMX.js +0 -4
- package/dist/calcite/CTKW7PMX.js.LEGAL.txt +0 -3
- package/dist/calcite/DKXDAF3R.js +0 -4
- package/dist/calcite/DKXDAF3R.js.LEGAL.txt +0 -3
- package/dist/calcite/DMEQLA6I.js.LEGAL.txt +0 -3
- package/dist/calcite/DWD6IQXW.js.LEGAL.txt +0 -3
- package/dist/calcite/E2FUMM7Q.js +0 -4
- package/dist/calcite/E2FUMM7Q.js.LEGAL.txt +0 -3
- package/dist/calcite/E3MD2CE4.js +0 -4
- package/dist/calcite/E3MD2CE4.js.LEGAL.txt +0 -3
- package/dist/calcite/E5PA4TBM.js.LEGAL.txt +0 -0
- package/dist/calcite/E7FZ6JAM.js +0 -4
- package/dist/calcite/E7FZ6JAM.js.LEGAL.txt +0 -3
- package/dist/calcite/EAWKYFN7.js.LEGAL.txt +0 -3
- package/dist/calcite/EFPG5DKU.js +0 -4
- package/dist/calcite/EFPG5DKU.js.LEGAL.txt +0 -8
- package/dist/calcite/EJW765DT.js +0 -4
- package/dist/calcite/EJW765DT.js.LEGAL.txt +0 -3
- package/dist/calcite/EK3Q6YNI.js +0 -4
- package/dist/calcite/EK3Q6YNI.js.LEGAL.txt +0 -3
- package/dist/calcite/ELMUOA6Z.js.LEGAL.txt +0 -3
- package/dist/calcite/ERI7LM5L.js +0 -4
- package/dist/calcite/ERI7LM5L.js.LEGAL.txt +0 -3
- package/dist/calcite/EZOHJLFG.js.LEGAL.txt +0 -3
- package/dist/calcite/F3OCAY5N.js.LEGAL.txt +0 -3
- package/dist/calcite/FDPJTP5M.js +0 -4
- package/dist/calcite/FDPJTP5M.js.LEGAL.txt +0 -3
- package/dist/calcite/FGDQPZ4X.js +0 -4
- package/dist/calcite/FGDQPZ4X.js.LEGAL.txt +0 -3
- package/dist/calcite/FLJ74JSX.js +0 -4
- package/dist/calcite/FLJ74JSX.js.LEGAL.txt +0 -3
- package/dist/calcite/FPXWKVFR.js.LEGAL.txt +0 -3
- package/dist/calcite/FUONTZUV.js +0 -4
- package/dist/calcite/FUONTZUV.js.LEGAL.txt +0 -0
- package/dist/calcite/G6JG3MWC.js +0 -4
- package/dist/calcite/G6JG3MWC.js.LEGAL.txt +0 -0
- package/dist/calcite/G7Z3HD77.js +0 -4
- package/dist/calcite/G7Z3HD77.js.LEGAL.txt +0 -3
- package/dist/calcite/GAU64SV5.js +0 -4
- package/dist/calcite/GAU64SV5.js.LEGAL.txt +0 -3
- package/dist/calcite/GSZBQZWQ.js.LEGAL.txt +0 -3
- package/dist/calcite/GT5J4OHI.js.LEGAL.txt +0 -3
- package/dist/calcite/GVCZQ5TH.js +0 -4
- package/dist/calcite/GVCZQ5TH.js.LEGAL.txt +0 -3
- package/dist/calcite/GW75RHDD.js +0 -4
- package/dist/calcite/GW75RHDD.js.LEGAL.txt +0 -3
- package/dist/calcite/HEMJZHTB.js +0 -4
- package/dist/calcite/HEMJZHTB.js.LEGAL.txt +0 -0
- package/dist/calcite/HGBTVXCN.js +0 -4
- package/dist/calcite/HGBTVXCN.js.LEGAL.txt +0 -0
- package/dist/calcite/HMF6CMCF.js.LEGAL.txt +0 -3
- package/dist/calcite/HN4HD5C5.js +0 -4
- package/dist/calcite/HN4HD5C5.js.LEGAL.txt +0 -3
- package/dist/calcite/HONPXEX2.js.LEGAL.txt +0 -8
- package/dist/calcite/HRPCSVT7.js.LEGAL.txt +0 -3
- package/dist/calcite/HX5GYTN3.js.LEGAL.txt +0 -3
- package/dist/calcite/IIBAID4E.js +0 -4
- package/dist/calcite/IIBAID4E.js.LEGAL.txt +0 -3
- package/dist/calcite/IJIVFGDI.js +0 -4
- package/dist/calcite/IJIVFGDI.js.LEGAL.txt +0 -0
- package/dist/calcite/IKTQRBNH.js +0 -4
- package/dist/calcite/IKTQRBNH.js.LEGAL.txt +0 -0
- package/dist/calcite/IP7R44QH.js +0 -4
- package/dist/calcite/IP7R44QH.js.LEGAL.txt +0 -3
- package/dist/calcite/ISCWHRJE.js +0 -4
- package/dist/calcite/ISCWHRJE.js.LEGAL.txt +0 -0
- package/dist/calcite/J26UPXWF.js +0 -4
- package/dist/calcite/J26UPXWF.js.LEGAL.txt +0 -0
- package/dist/calcite/J2GV5C45.js +0 -4
- package/dist/calcite/J2GV5C45.js.LEGAL.txt +0 -3
- package/dist/calcite/J3AGLKSW.js.LEGAL.txt +0 -3
- package/dist/calcite/JDH66XE3.js +0 -4
- package/dist/calcite/JDH66XE3.js.LEGAL.txt +0 -0
- package/dist/calcite/JKPHGRQ2.js +0 -4
- package/dist/calcite/JKPHGRQ2.js.LEGAL.txt +0 -0
- package/dist/calcite/JL6MI2MV.js +0 -4
- package/dist/calcite/JL6MI2MV.js.LEGAL.txt +0 -3
- package/dist/calcite/JVMUJCWI.js +0 -4
- package/dist/calcite/JVMUJCWI.js.LEGAL.txt +0 -3
- package/dist/calcite/JW6ZTV5V.js +0 -4
- package/dist/calcite/JW6ZTV5V.js.LEGAL.txt +0 -0
- package/dist/calcite/JZ6ITVVK.js.LEGAL.txt +0 -3
- package/dist/calcite/K47EBDO7.js +0 -4
- package/dist/calcite/K47EBDO7.js.LEGAL.txt +0 -0
- package/dist/calcite/K64ZX4NF.js.LEGAL.txt +0 -3
- package/dist/calcite/KARZSWGK.js.LEGAL.txt +0 -3
- package/dist/calcite/KJHS3DUC.js +0 -4
- package/dist/calcite/KJHS3DUC.js.LEGAL.txt +0 -3
- package/dist/calcite/KQXQIA7X.js +0 -4
- package/dist/calcite/KQXQIA7X.js.LEGAL.txt +0 -0
- package/dist/calcite/KSUBS6I3.js +0 -4
- package/dist/calcite/KSUBS6I3.js.LEGAL.txt +0 -3
- package/dist/calcite/KUAH3OMS.js.LEGAL.txt +0 -0
- package/dist/calcite/KWGSRKB2.js +0 -4
- package/dist/calcite/KWGSRKB2.js.LEGAL.txt +0 -3
- package/dist/calcite/L2QV7BEF.js +0 -4
- package/dist/calcite/L2QV7BEF.js.LEGAL.txt +0 -0
- package/dist/calcite/L4QE7GFA.js.LEGAL.txt +0 -3
- package/dist/calcite/L7D3HJ5T.js.LEGAL.txt +0 -3
- package/dist/calcite/LD7PCMLJ.js +0 -4
- package/dist/calcite/LD7PCMLJ.js.LEGAL.txt +0 -3
- package/dist/calcite/LDRFWT2S.js +0 -4
- package/dist/calcite/LDRFWT2S.js.LEGAL.txt +0 -3
- package/dist/calcite/LKGOEZ2G.js +0 -4
- package/dist/calcite/LKGOEZ2G.js.LEGAL.txt +0 -3
- package/dist/calcite/LUQ42CZJ.js.LEGAL.txt +0 -0
- package/dist/calcite/LW2DCXAC.js +0 -4
- package/dist/calcite/LW2DCXAC.js.LEGAL.txt +0 -0
- package/dist/calcite/LWVUNKYN.js +0 -4
- package/dist/calcite/LWVUNKYN.js.LEGAL.txt +0 -3
- package/dist/calcite/M7REQKYB.js +0 -4
- package/dist/calcite/M7REQKYB.js.LEGAL.txt +0 -3
- package/dist/calcite/ME6TN5LW.js.LEGAL.txt +0 -3
- package/dist/calcite/MEJZAJ3U.js.LEGAL.txt +0 -3
- package/dist/calcite/MJX4LXXP.js +0 -4
- package/dist/calcite/MJX4LXXP.js.LEGAL.txt +0 -3
- package/dist/calcite/MSQXBFZL.js +0 -4
- package/dist/calcite/MSQXBFZL.js.LEGAL.txt +0 -0
- package/dist/calcite/N2AYACQ5.js +0 -4
- package/dist/calcite/N2AYACQ5.js.LEGAL.txt +0 -0
- package/dist/calcite/N4NU45WV.js.LEGAL.txt +0 -3
- package/dist/calcite/N6RZSJYP.js.LEGAL.txt +0 -3
- package/dist/calcite/NDMJCJAY.js +0 -4
- package/dist/calcite/NDMJCJAY.js.LEGAL.txt +0 -3
- package/dist/calcite/NGCC3EHK.js.LEGAL.txt +0 -3
- package/dist/calcite/NM6R3HQT.js +0 -4
- package/dist/calcite/NM6R3HQT.js.LEGAL.txt +0 -0
- package/dist/calcite/NPO4ZXU4.js +0 -4
- package/dist/calcite/NPO4ZXU4.js.LEGAL.txt +0 -0
- package/dist/calcite/OAPBTJYQ.js +0 -4
- package/dist/calcite/OAPBTJYQ.js.LEGAL.txt +0 -3
- package/dist/calcite/ODCDBZNR.js +0 -4
- package/dist/calcite/ODCDBZNR.js.LEGAL.txt +0 -3
- package/dist/calcite/OEIGMKGW.js.LEGAL.txt +0 -3
- package/dist/calcite/OIUYUD4H.js +0 -4
- package/dist/calcite/OIUYUD4H.js.LEGAL.txt +0 -3
- package/dist/calcite/OLBTPMKZ.js.LEGAL.txt +0 -3
- package/dist/calcite/OMDDQNWC.js +0 -4
- package/dist/calcite/OMDDQNWC.js.LEGAL.txt +0 -3
- package/dist/calcite/OQU6WOZ5.js +0 -4
- package/dist/calcite/OQU6WOZ5.js.LEGAL.txt +0 -3
- package/dist/calcite/P2D57SGT.js +0 -4
- package/dist/calcite/P2D57SGT.js.LEGAL.txt +0 -3
- package/dist/calcite/P3UF244B.js +0 -4
- package/dist/calcite/P3UF244B.js.LEGAL.txt +0 -0
- package/dist/calcite/PD62EFQX.js +0 -4
- package/dist/calcite/PD62EFQX.js.LEGAL.txt +0 -0
- package/dist/calcite/PEUXTOEM.js +0 -4
- package/dist/calcite/PEUXTOEM.js.LEGAL.txt +0 -0
- package/dist/calcite/POX7HYZI.js +0 -4
- package/dist/calcite/POX7HYZI.js.LEGAL.txt +0 -0
- package/dist/calcite/PQD3MN6H.js.LEGAL.txt +0 -12
- package/dist/calcite/PRBLEDZO.js.LEGAL.txt +0 -3
- package/dist/calcite/PRLORPU7.js +0 -4
- package/dist/calcite/PRLORPU7.js.LEGAL.txt +0 -3
- package/dist/calcite/PRLQFMNF.js.LEGAL.txt +0 -3
- package/dist/calcite/PVIFFMKF.js +0 -4
- package/dist/calcite/PVIFFMKF.js.LEGAL.txt +0 -3
- package/dist/calcite/PXFQEOMU.js +0 -4
- package/dist/calcite/PXFQEOMU.js.LEGAL.txt +0 -3
- package/dist/calcite/PXV5QWJ4.js +0 -4
- package/dist/calcite/PXV5QWJ4.js.LEGAL.txt +0 -0
- package/dist/calcite/PYYBDBKI.js +0 -4
- package/dist/calcite/PYYBDBKI.js.LEGAL.txt +0 -0
- package/dist/calcite/Q7OT47PN.js +0 -4
- package/dist/calcite/Q7OT47PN.js.LEGAL.txt +0 -3
- package/dist/calcite/QEWIYGGJ.js +0 -4
- package/dist/calcite/QEWIYGGJ.js.LEGAL.txt +0 -0
- package/dist/calcite/QNGBTX3D.js.LEGAL.txt +0 -3
- package/dist/calcite/QQDACQC3.js +0 -4
- package/dist/calcite/QQDACQC3.js.LEGAL.txt +0 -3
- package/dist/calcite/QXN44LBP.js +0 -4
- package/dist/calcite/QXN44LBP.js.LEGAL.txt +0 -3
- package/dist/calcite/RADC6NKG.js +0 -4
- package/dist/calcite/RADC6NKG.js.LEGAL.txt +0 -3
- package/dist/calcite/RH7HXNXF.js +0 -4
- package/dist/calcite/RH7HXNXF.js.LEGAL.txt +0 -3
- package/dist/calcite/RHHOE7NU.js +0 -4
- package/dist/calcite/RHHOE7NU.js.LEGAL.txt +0 -0
- package/dist/calcite/RHWYPLKB.js +0 -4
- package/dist/calcite/RHWYPLKB.js.LEGAL.txt +0 -3
- package/dist/calcite/RN4BVOD6.js +0 -4
- package/dist/calcite/RN4BVOD6.js.LEGAL.txt +0 -0
- package/dist/calcite/RPHBZQXS.js.LEGAL.txt +0 -3
- package/dist/calcite/RQSQFD5Q.js.LEGAL.txt +0 -3
- package/dist/calcite/RSETZ22U.js +0 -4
- package/dist/calcite/RSETZ22U.js.LEGAL.txt +0 -0
- package/dist/calcite/RTEW7H7Y.js +0 -4
- package/dist/calcite/RTEW7H7Y.js.LEGAL.txt +0 -3
- package/dist/calcite/S4LLAJCJ.js +0 -4
- package/dist/calcite/S4LLAJCJ.js.LEGAL.txt +0 -3
- package/dist/calcite/SD4E377H.js +0 -4
- package/dist/calcite/SD4E377H.js.LEGAL.txt +0 -0
- package/dist/calcite/SKMUEEVI.js +0 -4
- package/dist/calcite/SKMUEEVI.js.LEGAL.txt +0 -0
- package/dist/calcite/SL2IC3N7.js +0 -4
- package/dist/calcite/SL2IC3N7.js.LEGAL.txt +0 -3
- package/dist/calcite/SLSPWS2E.js +0 -4
- package/dist/calcite/SLSPWS2E.js.LEGAL.txt +0 -3
- package/dist/calcite/SYD7V3T3.js.LEGAL.txt +0 -3
- package/dist/calcite/SZNXLFM7.js.LEGAL.txt +0 -3
- package/dist/calcite/T4J4PTN5.js +0 -4
- package/dist/calcite/T4J4PTN5.js.LEGAL.txt +0 -0
- package/dist/calcite/TAOUTUXQ.js.LEGAL.txt +0 -0
- package/dist/calcite/TEU6RWE4.js +0 -4
- package/dist/calcite/TEU6RWE4.js.LEGAL.txt +0 -3
- package/dist/calcite/TJKAQE4P.js +0 -4
- package/dist/calcite/TJKAQE4P.js.LEGAL.txt +0 -0
- package/dist/calcite/TKBJS5F7.js +0 -4
- package/dist/calcite/TKBJS5F7.js.LEGAL.txt +0 -0
- package/dist/calcite/TM5PAPEN.js +0 -4
- package/dist/calcite/TM5PAPEN.js.LEGAL.txt +0 -0
- package/dist/calcite/TMMBEPOU.js.LEGAL.txt +0 -3
- package/dist/calcite/TMX3VA4P.js +0 -4
- package/dist/calcite/TMX3VA4P.js.LEGAL.txt +0 -3
- package/dist/calcite/TZLMDIM4.js +0 -4
- package/dist/calcite/TZLMDIM4.js.LEGAL.txt +0 -3
- package/dist/calcite/U6QYB4Y6.js.LEGAL.txt +0 -0
- package/dist/calcite/U7KIKT63.js +0 -4
- package/dist/calcite/U7KIKT63.js.LEGAL.txt +0 -0
- package/dist/calcite/UASJ4BDQ.js.LEGAL.txt +0 -3
- package/dist/calcite/UBNWJ6V4.js.LEGAL.txt +0 -3
- package/dist/calcite/UFNDM57S.js +0 -4
- package/dist/calcite/UFNDM57S.js.LEGAL.txt +0 -0
- package/dist/calcite/UROURTHC.js.LEGAL.txt +0 -3
- package/dist/calcite/UT5ISSYC.js.LEGAL.txt +0 -3
- package/dist/calcite/UUKFUQ6I.js +0 -4
- package/dist/calcite/UUKFUQ6I.js.LEGAL.txt +0 -3
- package/dist/calcite/UZ5SLOWB.js +0 -4
- package/dist/calcite/UZ5SLOWB.js.LEGAL.txt +0 -3
- package/dist/calcite/V6QZB7BK.js +0 -4
- package/dist/calcite/V6QZB7BK.js.LEGAL.txt +0 -3
- package/dist/calcite/VMHMVJDK.js.LEGAL.txt +0 -17
- package/dist/calcite/VMHWR2MM.js +0 -4
- package/dist/calcite/VMHWR2MM.js.LEGAL.txt +0 -3
- package/dist/calcite/VNMFIOYL.js.LEGAL.txt +0 -3
- package/dist/calcite/VWK4AMFR.js.LEGAL.txt +0 -3
- package/dist/calcite/VWXAGXCL.js +0 -4
- package/dist/calcite/VWXAGXCL.js.LEGAL.txt +0 -3
- package/dist/calcite/W3EFY7DT.js +0 -4
- package/dist/calcite/W3EFY7DT.js.LEGAL.txt +0 -3
- package/dist/calcite/W5LPGZ3Z.js.LEGAL.txt +0 -3
- package/dist/calcite/WHU4GIYD.js +0 -4
- package/dist/calcite/WHU4GIYD.js.LEGAL.txt +0 -0
- package/dist/calcite/WJUATVMM.js +0 -4
- package/dist/calcite/WJUATVMM.js.LEGAL.txt +0 -3
- package/dist/calcite/WLLCH7YU.js +0 -4
- package/dist/calcite/WLLCH7YU.js.LEGAL.txt +0 -0
- package/dist/calcite/WMMQFRJ2.js +0 -4
- package/dist/calcite/WMMQFRJ2.js.LEGAL.txt +0 -0
- package/dist/calcite/WQBUS3N7.js +0 -4
- package/dist/calcite/WQBUS3N7.js.LEGAL.txt +0 -3
- package/dist/calcite/X4RQ67HG.js.LEGAL.txt +0 -3
- package/dist/calcite/X7L2KATX.js +0 -4
- package/dist/calcite/X7L2KATX.js.LEGAL.txt +0 -3
- package/dist/calcite/XDOL54LL.js.LEGAL.txt +0 -3
- package/dist/calcite/XGAHDOC4.js.LEGAL.txt +0 -3
- package/dist/calcite/XKNCNSCZ.js.LEGAL.txt +0 -3
- package/dist/calcite/XKWYEWLG.js +0 -4
- package/dist/calcite/XKWYEWLG.js.LEGAL.txt +0 -3
- package/dist/calcite/XMPXZG7Y.js.LEGAL.txt +0 -3
- package/dist/calcite/XUP7BQZ5.js +0 -4
- package/dist/calcite/XUP7BQZ5.js.LEGAL.txt +0 -0
- package/dist/calcite/XW7RFXYS.js.LEGAL.txt +0 -0
- package/dist/calcite/Y4RVNYC5.js +0 -4
- package/dist/calcite/Y4RVNYC5.js.LEGAL.txt +0 -3
- package/dist/calcite/Y4T5NBHZ.js +0 -4
- package/dist/calcite/Y4T5NBHZ.js.LEGAL.txt +0 -3
- package/dist/calcite/Y5JLRNSY.js.LEGAL.txt +0 -7
- package/dist/calcite/YBMQVLKL.js +0 -4
- package/dist/calcite/YBMQVLKL.js.LEGAL.txt +0 -3
- package/dist/calcite/YDARVV7R.js.LEGAL.txt +0 -3
- package/dist/calcite/YEHRHJKU.js +0 -4
- package/dist/calcite/YEHRHJKU.js.LEGAL.txt +0 -3
- package/dist/calcite/YFKXZTY6.js.LEGAL.txt +0 -13
- package/dist/calcite/YIDURBCW.js.LEGAL.txt +0 -15
- package/dist/calcite/YKGFIBSZ.js +0 -4
- package/dist/calcite/YKGFIBSZ.js.LEGAL.txt +0 -0
- package/dist/calcite/YMRWZPE4.js.LEGAL.txt +0 -3
- package/dist/calcite/YVK3UOG3.js.LEGAL.txt +0 -3
- package/dist/calcite/ZBNBNZ5D.js.LEGAL.txt +0 -3
- package/dist/calcite/ZDRSJEVB.js.LEGAL.txt +0 -0
- package/dist/calcite/ZEYHJ2K3.js +0 -4
- package/dist/calcite/ZEYHJ2K3.js.LEGAL.txt +0 -3
- package/dist/calcite/ZIQ6NMM6.js +0 -4
- package/dist/calcite/ZIQ6NMM6.js.LEGAL.txt +0 -3
- package/dist/calcite/ZQXNE2KP.js +0 -4
- package/dist/calcite/ZQXNE2KP.js.LEGAL.txt +0 -0
- package/dist/calcite/ZUCDSB5I.js.LEGAL.txt +0 -3
- package/dist/calcite/ZUEC62JH.js.LEGAL.txt +0 -3
- package/dist/calcite/calcite.esm.js.LEGAL.txt +0 -3
|
@@ -1,104 +1,493 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.2.0
|
|
3
|
+
v3.2.0 */
|
|
4
4
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { ref } from "lit-html/directives/ref.js";
|
|
6
|
-
import dayjs from "dayjs/esm/index.js";
|
|
7
|
-
import customParseFormat from "dayjs/esm/plugin/customParseFormat/index.js";
|
|
8
|
-
import localeData from "dayjs/esm/plugin/localeData/index.js";
|
|
9
|
-
import localizedFormat from "dayjs/esm/plugin/localizedFormat/index.js";
|
|
10
|
-
import preParsePostFormat from "dayjs/esm/plugin/preParsePostFormat/index.js";
|
|
11
|
-
import updateLocale from "dayjs/esm/plugin/updateLocale/index.js";
|
|
12
6
|
import { nothing, html } from "lit";
|
|
13
|
-
import {
|
|
7
|
+
import { createEvent, LitElement, stringOrBoolean, safeClassMap } from "@arcgis/lumina";
|
|
14
8
|
import { c as connectForm, d as disconnectForm, s as submitForm, H as HiddenFormInputSlot } from "../../chunks/form.js";
|
|
15
9
|
import { u as updateHostInteraction, I as InteractiveContainer } from "../../chunks/interactive.js";
|
|
16
|
-
import { n as numberKeys } from "../../chunks/key.js";
|
|
17
10
|
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from "../../chunks/label.js";
|
|
18
11
|
import { c as componentFocusable, g as getIconScale } from "../../chunks/component.js";
|
|
19
|
-
import {
|
|
20
|
-
import { i as isValidTime, t as toISOTimeString, d as getLocaleHourFormat, h as isLocaleHourFormatOpposite, j as getLocaleOppositeHourFormat, k as getMeridiemFormatToken, f as formatTimePart, n as localizeTimeString, e as getMeridiemOrder, o as formatTimeString } from "../../chunks/time.js";
|
|
21
|
-
import { d as decimalPlaces } from "../../chunks/math.js";
|
|
12
|
+
import { d as decimalPlaces, g as getDecimals } from "../../chunks/math.js";
|
|
22
13
|
import { V as Validation } from "../../chunks/Validation.js";
|
|
23
|
-
import { h as focusFirstTabbable } from "../../chunks/dom.js";
|
|
14
|
+
import { h as focusFirstTabbable, g as getElementDir } from "../../chunks/dom.js";
|
|
24
15
|
import { s as syncHiddenFormInput } from "../../chunks/input.js";
|
|
25
16
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
17
|
+
import { i as isValidNumber } from "../../chunks/locale.js";
|
|
18
|
+
import { GenericController } from "@arcgis/lumina/controllers";
|
|
19
|
+
import { f as formatTimePart, d as getLocaleHourFormat, e as getMeridiemOrder, t as toISOTimeString, i as isValidTime, p as parseTimeString, h as localizeTimeString, g as getMeridiem, a as getLocalizedTimePartSuffix, b as getLocalizedDecimalSeparator, c as localizeTimePart, j as getLocalizedMeridiem, m as maxTenthForMinuteAndSecond } from "../../chunks/time.js";
|
|
20
|
+
import { c as capitalizeWord } from "../../chunks/text.js";
|
|
21
|
+
import { n as numberKeys } from "../../chunks/key.js";
|
|
26
22
|
import { css } from "@lit/reactive-element/css-tag.js";
|
|
27
|
-
|
|
23
|
+
class TimeController extends GenericController {
|
|
24
|
+
constructor() {
|
|
25
|
+
super(...arguments);
|
|
26
|
+
this.localizedDecimalSeparator = ".";
|
|
27
|
+
this.userChangedValue = false;
|
|
28
|
+
this.handleHourKeyDownEvent = (event) => {
|
|
29
|
+
const key = event.key;
|
|
30
|
+
if (numberKeys.includes(key)) {
|
|
31
|
+
const keyAsNumber = parseInt(key);
|
|
32
|
+
let newHour;
|
|
33
|
+
if (isValidNumber(this.hour)) {
|
|
34
|
+
switch (this.hourFormat) {
|
|
35
|
+
case "12":
|
|
36
|
+
newHour = this.hour === "01" && keyAsNumber >= 0 && keyAsNumber <= 2 ? `1${keyAsNumber}` : keyAsNumber;
|
|
37
|
+
break;
|
|
38
|
+
case "24":
|
|
39
|
+
if (this.hour === "01") {
|
|
40
|
+
newHour = `1${keyAsNumber}`;
|
|
41
|
+
} else if (this.hour === "02" && keyAsNumber >= 0 && keyAsNumber <= 3) {
|
|
42
|
+
newHour = `2${keyAsNumber}`;
|
|
43
|
+
} else {
|
|
44
|
+
newHour = keyAsNumber;
|
|
45
|
+
}
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
} else {
|
|
49
|
+
newHour = keyAsNumber;
|
|
50
|
+
}
|
|
51
|
+
this.setValuePart("hour", newHour);
|
|
52
|
+
} else {
|
|
53
|
+
switch (key) {
|
|
54
|
+
case "Backspace":
|
|
55
|
+
case "Delete":
|
|
56
|
+
event.preventDefault();
|
|
57
|
+
this.setValuePart("hour", null);
|
|
58
|
+
break;
|
|
59
|
+
case "ArrowDown":
|
|
60
|
+
event.preventDefault();
|
|
61
|
+
this.decrementHour();
|
|
62
|
+
break;
|
|
63
|
+
case "ArrowUp":
|
|
64
|
+
event.preventDefault();
|
|
65
|
+
this.incrementHour();
|
|
66
|
+
break;
|
|
67
|
+
case " ":
|
|
68
|
+
case "Spacebar":
|
|
69
|
+
event.preventDefault();
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
this.handleMinuteKeyDownEvent = (event) => {
|
|
75
|
+
const key = event.key;
|
|
76
|
+
if (numberKeys.includes(key)) {
|
|
77
|
+
const keyAsNumber = parseInt(key);
|
|
78
|
+
let newMinute;
|
|
79
|
+
if (isValidNumber(this.minute) && this.minute.startsWith("0")) {
|
|
80
|
+
const minuteAsNumber = parseInt(this.minute);
|
|
81
|
+
newMinute = minuteAsNumber > maxTenthForMinuteAndSecond ? keyAsNumber : `${minuteAsNumber}${keyAsNumber}`;
|
|
82
|
+
} else {
|
|
83
|
+
newMinute = keyAsNumber;
|
|
84
|
+
}
|
|
85
|
+
this.setValuePart("minute", newMinute);
|
|
86
|
+
} else {
|
|
87
|
+
switch (key) {
|
|
88
|
+
case "Backspace":
|
|
89
|
+
case "Delete":
|
|
90
|
+
event.preventDefault();
|
|
91
|
+
this.setValuePart("minute", null);
|
|
92
|
+
break;
|
|
93
|
+
case "ArrowDown":
|
|
94
|
+
event.preventDefault();
|
|
95
|
+
this.decrementMinute();
|
|
96
|
+
break;
|
|
97
|
+
case "ArrowUp":
|
|
98
|
+
event.preventDefault();
|
|
99
|
+
this.incrementMinute();
|
|
100
|
+
break;
|
|
101
|
+
case " ":
|
|
102
|
+
case "Spacebar":
|
|
103
|
+
event.preventDefault();
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
this.handleSecondKeyDownEvent = (event) => {
|
|
109
|
+
const key = event.key;
|
|
110
|
+
if (numberKeys.includes(key)) {
|
|
111
|
+
const keyAsNumber = parseInt(key);
|
|
112
|
+
let newSecond;
|
|
113
|
+
if (isValidNumber(this.second) && this.second.startsWith("0")) {
|
|
114
|
+
const secondAsNumber = parseInt(this.second);
|
|
115
|
+
newSecond = secondAsNumber > maxTenthForMinuteAndSecond ? keyAsNumber : `${secondAsNumber}${keyAsNumber}`;
|
|
116
|
+
} else {
|
|
117
|
+
newSecond = keyAsNumber;
|
|
118
|
+
}
|
|
119
|
+
this.setValuePart("second", newSecond);
|
|
120
|
+
} else {
|
|
121
|
+
switch (key) {
|
|
122
|
+
case "Backspace":
|
|
123
|
+
case "Delete":
|
|
124
|
+
event.preventDefault();
|
|
125
|
+
this.setValuePart("second", null);
|
|
126
|
+
break;
|
|
127
|
+
case "ArrowDown":
|
|
128
|
+
event.preventDefault();
|
|
129
|
+
this.decrementSecond();
|
|
130
|
+
break;
|
|
131
|
+
case "ArrowUp":
|
|
132
|
+
event.preventDefault();
|
|
133
|
+
this.incrementSecond();
|
|
134
|
+
break;
|
|
135
|
+
case " ":
|
|
136
|
+
case "Spacebar":
|
|
137
|
+
event.preventDefault();
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
this.handleFractionalSecondKeyDownEvent = (event) => {
|
|
143
|
+
const { key } = event;
|
|
144
|
+
if (numberKeys.includes(key)) {
|
|
145
|
+
const stepPrecision = decimalPlaces(this.component.step);
|
|
146
|
+
const fractionalSecondAsInteger = parseInt(this.fractionalSecond);
|
|
147
|
+
const fractionalSecondAsIntegerLength = fractionalSecondAsInteger.toString().length;
|
|
148
|
+
let newFractionalSecondAsIntegerString;
|
|
149
|
+
if (fractionalSecondAsIntegerLength >= stepPrecision) {
|
|
150
|
+
newFractionalSecondAsIntegerString = key.padStart(stepPrecision, "0");
|
|
151
|
+
} else if (fractionalSecondAsIntegerLength < stepPrecision) {
|
|
152
|
+
newFractionalSecondAsIntegerString = `${fractionalSecondAsInteger}${key}`.padStart(stepPrecision, "0");
|
|
153
|
+
}
|
|
154
|
+
this.setValuePart("fractionalSecond", parseFloat(`0.${newFractionalSecondAsIntegerString}`));
|
|
155
|
+
} else {
|
|
156
|
+
switch (key) {
|
|
157
|
+
case "Backspace":
|
|
158
|
+
case "Delete":
|
|
159
|
+
event.preventDefault();
|
|
160
|
+
this.setValuePart("fractionalSecond", null);
|
|
161
|
+
break;
|
|
162
|
+
case "ArrowDown":
|
|
163
|
+
event.preventDefault();
|
|
164
|
+
this.nudgeFractionalSecond("down");
|
|
165
|
+
break;
|
|
166
|
+
case "ArrowUp":
|
|
167
|
+
event.preventDefault();
|
|
168
|
+
this.nudgeFractionalSecond("up");
|
|
169
|
+
break;
|
|
170
|
+
case " ":
|
|
171
|
+
event.preventDefault();
|
|
172
|
+
break;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
this.handleMeridiemKeyDownEvent = (event) => {
|
|
177
|
+
switch (event.key) {
|
|
178
|
+
case "a":
|
|
179
|
+
this.setValuePart("meridiem", "AM");
|
|
180
|
+
break;
|
|
181
|
+
case "p":
|
|
182
|
+
this.setValuePart("meridiem", "PM");
|
|
183
|
+
break;
|
|
184
|
+
case "Backspace":
|
|
185
|
+
case "Delete":
|
|
186
|
+
event.preventDefault();
|
|
187
|
+
this.setValuePart("meridiem");
|
|
188
|
+
break;
|
|
189
|
+
case "ArrowUp":
|
|
190
|
+
case "ArrowDown":
|
|
191
|
+
event.preventDefault();
|
|
192
|
+
this.toggleMeridiem(event.key);
|
|
193
|
+
break;
|
|
194
|
+
case " ":
|
|
195
|
+
case "Spacebar":
|
|
196
|
+
event.preventDefault();
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
this.calciteTimeChange = createEvent();
|
|
201
|
+
}
|
|
202
|
+
//#endregion
|
|
203
|
+
//#region Private Methods
|
|
204
|
+
hostConnected() {
|
|
205
|
+
this.setHourFormat();
|
|
206
|
+
this.setMeridiemOrder();
|
|
207
|
+
this.setValue(this.component.value);
|
|
208
|
+
}
|
|
209
|
+
hostUpdate(changes) {
|
|
210
|
+
if (changes.has("hourFormat")) {
|
|
211
|
+
this.setHourFormat();
|
|
212
|
+
this.setValue(this.component.value);
|
|
213
|
+
}
|
|
214
|
+
if (changes.has("messages") && changes.get("messages")?._lang !== this.component.messages._lang) {
|
|
215
|
+
this.setHourFormat();
|
|
216
|
+
this.setMeridiemOrder();
|
|
217
|
+
this.setValue(this.component.value);
|
|
218
|
+
}
|
|
219
|
+
if (changes.has("numberingSystem")) {
|
|
220
|
+
this.setValue(this.component.value);
|
|
221
|
+
}
|
|
222
|
+
if (changes.has("step")) {
|
|
223
|
+
const oldStep = this.component.step;
|
|
224
|
+
const newStep = changes.get("step");
|
|
225
|
+
if (oldStep >= 60 && newStep > 0 && newStep < 60 || newStep >= 60 && oldStep > 0 && oldStep < 60) {
|
|
226
|
+
this.setValue(this.component.value);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
decrementHour() {
|
|
231
|
+
const newHour = !this.hour ? 0 : this.hour === "00" ? 23 : parseInt(this.hour) - 1;
|
|
232
|
+
this.setValuePart("hour", newHour);
|
|
233
|
+
}
|
|
234
|
+
decrementMinute() {
|
|
235
|
+
this.decrementMinuteOrSecond("minute");
|
|
236
|
+
}
|
|
237
|
+
decrementMinuteOrSecond(key) {
|
|
238
|
+
let newValue;
|
|
239
|
+
if (isValidNumber(this[key])) {
|
|
240
|
+
const valueAsNumber = parseInt(this[key]);
|
|
241
|
+
newValue = valueAsNumber === 0 ? 59 : valueAsNumber - 1;
|
|
242
|
+
} else {
|
|
243
|
+
newValue = 59;
|
|
244
|
+
}
|
|
245
|
+
this.setValuePart(key, newValue);
|
|
246
|
+
}
|
|
247
|
+
decrementSecond() {
|
|
248
|
+
this.decrementMinuteOrSecond("second");
|
|
249
|
+
}
|
|
250
|
+
incrementHour() {
|
|
251
|
+
const newHour = isValidNumber(this.hour) ? this.hour === "23" ? 0 : parseInt(this.hour) + 1 : 1;
|
|
252
|
+
this.setValuePart("hour", newHour);
|
|
253
|
+
}
|
|
254
|
+
incrementMinute() {
|
|
255
|
+
this.incrementMinuteOrSecond("minute");
|
|
256
|
+
}
|
|
257
|
+
incrementMinuteOrSecond(key) {
|
|
258
|
+
const newValue = isValidNumber(this[key]) ? this[key] === "59" ? 0 : parseInt(this[key]) + 1 : 0;
|
|
259
|
+
this.setValuePart(key, newValue);
|
|
260
|
+
}
|
|
261
|
+
incrementSecond() {
|
|
262
|
+
this.incrementMinuteOrSecond("second");
|
|
263
|
+
}
|
|
264
|
+
nudgeFractionalSecond(direction) {
|
|
265
|
+
const stepDecimal = getDecimals(this.component.step);
|
|
266
|
+
const stepPrecision = decimalPlaces(this.component.step);
|
|
267
|
+
const fractionalSecondAsInteger = parseInt(this.fractionalSecond);
|
|
268
|
+
const fractionalSecondAsFloat = parseFloat(`0.${this.fractionalSecond}`);
|
|
269
|
+
let nudgedValue;
|
|
270
|
+
let nudgedValueRounded;
|
|
271
|
+
let nudgedValueRoundedDecimals;
|
|
272
|
+
let newFractionalSecond;
|
|
273
|
+
if (direction === "up") {
|
|
274
|
+
nudgedValue = isNaN(fractionalSecondAsInteger) ? 0 : fractionalSecondAsFloat + stepDecimal;
|
|
275
|
+
nudgedValueRounded = parseFloat(nudgedValue.toFixed(stepPrecision));
|
|
276
|
+
nudgedValueRoundedDecimals = getDecimals(nudgedValueRounded);
|
|
277
|
+
newFractionalSecond = nudgedValueRounded < 1 && decimalPlaces(nudgedValueRoundedDecimals) > 0 ? formatTimePart(nudgedValueRoundedDecimals, stepPrecision) : "".padStart(stepPrecision, "0");
|
|
278
|
+
}
|
|
279
|
+
if (direction === "down") {
|
|
280
|
+
nudgedValue = isNaN(fractionalSecondAsInteger) || fractionalSecondAsInteger === 0 ? 1 - stepDecimal : fractionalSecondAsFloat - stepDecimal;
|
|
281
|
+
nudgedValueRounded = parseFloat(nudgedValue.toFixed(stepPrecision));
|
|
282
|
+
nudgedValueRoundedDecimals = getDecimals(nudgedValueRounded);
|
|
283
|
+
newFractionalSecond = nudgedValueRounded < 1 && decimalPlaces(nudgedValueRoundedDecimals) > 0 && Math.sign(nudgedValueRoundedDecimals) === 1 ? formatTimePart(nudgedValueRoundedDecimals, stepPrecision) : "".padStart(stepPrecision, "0");
|
|
284
|
+
}
|
|
285
|
+
this.setValuePart("fractionalSecond", newFractionalSecond);
|
|
286
|
+
}
|
|
287
|
+
setHourFormat() {
|
|
288
|
+
const { hourFormat, messages } = this.component;
|
|
289
|
+
const locale = messages._lang;
|
|
290
|
+
this.hourFormat = hourFormat === "user" ? getLocaleHourFormat(locale) : hourFormat;
|
|
291
|
+
}
|
|
292
|
+
setMeridiemOrder() {
|
|
293
|
+
const { messages } = this.component;
|
|
294
|
+
const locale = messages._lang;
|
|
295
|
+
this.meridiemOrder = getMeridiemOrder(locale);
|
|
296
|
+
}
|
|
297
|
+
toggleMeridiem(direction) {
|
|
298
|
+
let newMeridiem;
|
|
299
|
+
if (!this.meridiem) {
|
|
300
|
+
newMeridiem = direction === "ArrowDown" ? "PM" : "AM";
|
|
301
|
+
} else {
|
|
302
|
+
newMeridiem = this.meridiem === "AM" ? "PM" : "AM";
|
|
303
|
+
}
|
|
304
|
+
this.setValuePart("meridiem", newMeridiem);
|
|
305
|
+
}
|
|
306
|
+
setValue(value, userChangedValue = false) {
|
|
307
|
+
const { messages, numberingSystem, step, value: previousValue } = this.component;
|
|
308
|
+
const locale = messages._lang;
|
|
309
|
+
const hour12 = this.hourFormat === "12";
|
|
310
|
+
const newValue = toISOTimeString(value, step);
|
|
311
|
+
if (isValidTime(value)) {
|
|
312
|
+
const { hour, minute, second, fractionalSecond } = parseTimeString(newValue, step);
|
|
313
|
+
const {
|
|
314
|
+
localizedHour,
|
|
315
|
+
localizedHourSuffix,
|
|
316
|
+
localizedMinute,
|
|
317
|
+
localizedMinuteSuffix,
|
|
318
|
+
localizedSecond,
|
|
319
|
+
localizedDecimalSeparator,
|
|
320
|
+
localizedFractionalSecond,
|
|
321
|
+
localizedSecondSuffix,
|
|
322
|
+
localizedMeridiem
|
|
323
|
+
} = localizeTimeString({
|
|
324
|
+
hour12,
|
|
325
|
+
locale,
|
|
326
|
+
numberingSystem,
|
|
327
|
+
parts: true,
|
|
328
|
+
step,
|
|
329
|
+
value: newValue
|
|
330
|
+
});
|
|
331
|
+
this.hour = hour;
|
|
332
|
+
this.minute = minute;
|
|
333
|
+
this.second = second;
|
|
334
|
+
this.fractionalSecond = fractionalSecond;
|
|
335
|
+
this.localizedHour = localizedHour;
|
|
336
|
+
this.localizedHourSuffix = localizedHourSuffix;
|
|
337
|
+
this.localizedMinute = localizedMinute;
|
|
338
|
+
this.localizedMinuteSuffix = localizedMinuteSuffix;
|
|
339
|
+
this.localizedSecond = localizedSecond;
|
|
340
|
+
this.localizedDecimalSeparator = localizedDecimalSeparator;
|
|
341
|
+
this.localizedFractionalSecond = localizedFractionalSecond;
|
|
342
|
+
this.localizedSecondSuffix = localizedSecondSuffix;
|
|
343
|
+
if (localizedMeridiem) {
|
|
344
|
+
this.meridiem = getMeridiem(this.hour);
|
|
345
|
+
this.localizedMeridiem = localizedMeridiem;
|
|
346
|
+
}
|
|
347
|
+
} else {
|
|
348
|
+
this.hour = null;
|
|
349
|
+
this.minute = null;
|
|
350
|
+
this.second = null;
|
|
351
|
+
this.fractionalSecond = null;
|
|
352
|
+
this.meridiem = null;
|
|
353
|
+
this.localizedHour = null;
|
|
354
|
+
this.localizedHourSuffix = getLocalizedTimePartSuffix("hour", locale, numberingSystem);
|
|
355
|
+
this.localizedMinute = null;
|
|
356
|
+
this.localizedMinuteSuffix = getLocalizedTimePartSuffix("minute", locale, numberingSystem);
|
|
357
|
+
this.localizedSecond = null;
|
|
358
|
+
this.localizedDecimalSeparator = getLocalizedDecimalSeparator(locale, numberingSystem);
|
|
359
|
+
this.localizedFractionalSecond = null;
|
|
360
|
+
this.localizedSecondSuffix = getLocalizedTimePartSuffix("second", locale, numberingSystem);
|
|
361
|
+
this.localizedMeridiem = null;
|
|
362
|
+
}
|
|
363
|
+
if (newValue !== previousValue) {
|
|
364
|
+
this.userChangedValue = userChangedValue;
|
|
365
|
+
this.component.value = newValue ?? "";
|
|
366
|
+
} else {
|
|
367
|
+
this.component.requestUpdate();
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
setValuePart(key, value) {
|
|
371
|
+
const { hourFormat } = this;
|
|
372
|
+
const { messages, numberingSystem, step } = this.component;
|
|
373
|
+
const locale = messages._lang;
|
|
374
|
+
const hour12 = hourFormat === "12";
|
|
375
|
+
const previousValue = this.component.value;
|
|
376
|
+
if (key === "meridiem") {
|
|
377
|
+
const oldMeridiem = this.meridiem;
|
|
378
|
+
this.meridiem = value;
|
|
379
|
+
this.localizedMeridiem = localizeTimePart({
|
|
380
|
+
hour12,
|
|
381
|
+
locale,
|
|
382
|
+
numberingSystem,
|
|
383
|
+
part: "meridiem",
|
|
384
|
+
value: this.meridiem
|
|
385
|
+
});
|
|
386
|
+
if (isValidNumber(this.hour)) {
|
|
387
|
+
const hourAsNumber = parseInt(this.hour);
|
|
388
|
+
switch (value) {
|
|
389
|
+
case "AM":
|
|
390
|
+
if (hourAsNumber >= 12) {
|
|
391
|
+
this.hour = formatTimePart(hourAsNumber - 12);
|
|
392
|
+
}
|
|
393
|
+
break;
|
|
394
|
+
case "PM":
|
|
395
|
+
if (hourAsNumber < 12) {
|
|
396
|
+
this.hour = formatTimePart(hourAsNumber + 12);
|
|
397
|
+
}
|
|
398
|
+
break;
|
|
399
|
+
default:
|
|
400
|
+
this.component.value = "";
|
|
401
|
+
break;
|
|
402
|
+
}
|
|
403
|
+
this.localizedHour = localizeTimePart({
|
|
404
|
+
hour12,
|
|
405
|
+
locale,
|
|
406
|
+
numberingSystem,
|
|
407
|
+
part: "hour",
|
|
408
|
+
value: this.hour
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
if (oldMeridiem !== this.meridiem) {
|
|
412
|
+
this.component.requestUpdate();
|
|
413
|
+
}
|
|
414
|
+
} else if (key === "fractionalSecond") {
|
|
415
|
+
const oldFractionalSecond = this.fractionalSecond;
|
|
416
|
+
const stepPrecision = decimalPlaces(step);
|
|
417
|
+
if (typeof value === "number") {
|
|
418
|
+
this.fractionalSecond = value === 0 ? "".padStart(stepPrecision, "0") : formatTimePart(value, stepPrecision);
|
|
419
|
+
} else {
|
|
420
|
+
this.fractionalSecond = value;
|
|
421
|
+
}
|
|
422
|
+
this.localizedFractionalSecond = localizeTimePart({
|
|
423
|
+
value: this.fractionalSecond,
|
|
424
|
+
part: "fractionalSecond",
|
|
425
|
+
locale,
|
|
426
|
+
numberingSystem,
|
|
427
|
+
hour12
|
|
428
|
+
});
|
|
429
|
+
if (oldFractionalSecond !== this.fractionalSecond) {
|
|
430
|
+
this.component.requestUpdate();
|
|
431
|
+
}
|
|
432
|
+
} else {
|
|
433
|
+
const oldValue = this[key];
|
|
434
|
+
this[key] = typeof value === "number" ? formatTimePart(value) : value;
|
|
435
|
+
this[`localized${capitalizeWord(key)}`] = localizeTimePart({
|
|
436
|
+
value: this[key],
|
|
437
|
+
part: key,
|
|
438
|
+
locale,
|
|
439
|
+
numberingSystem,
|
|
440
|
+
hour12
|
|
441
|
+
});
|
|
442
|
+
if (oldValue !== this[key]) {
|
|
443
|
+
this.component.requestUpdate();
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
const { hour, minute, second, fractionalSecond } = this;
|
|
447
|
+
const newValue = toISOTimeString({ hour, minute, second, fractionalSecond }, step);
|
|
448
|
+
if (previousValue !== newValue) {
|
|
449
|
+
if (key === "hour" && hourFormat === "12") {
|
|
450
|
+
this.meridiem = getMeridiem(hour);
|
|
451
|
+
this.localizedMeridiem = getLocalizedMeridiem({ locale, meridiem: this.meridiem });
|
|
452
|
+
}
|
|
453
|
+
this.userChangedValue = true;
|
|
454
|
+
this.calciteTimeChange.emit(newValue ?? "");
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
//#endregion
|
|
458
|
+
}
|
|
459
|
+
const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}.container{--calcite-icon-color: var(--calcite-color-text-3);align-items:center;background-color:var(--calcite-color-foreground-1);border:1px solid var(--calcite-color-border-input);box-sizing:border-box;display:flex;color:var(--calcite-color-text-1);flex-wrap:nowrap;font-weight:var(--calcite-font-weight-normal);inline-size:100%;padding-block:var(--calcite-spacing-base);-webkit-user-select:none;user-select:none}.container:focus-within{border-color:var(--calcite-color-brand);outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.container.read-only{background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium)}.input-container{display:flex;flex-grow:1}.input{align-items:center;display:flex;block-size:100%;justify-content:center;min-inline-size:max-content}.input.empty{inline-size:var(--calcite-spacing-xl)}.input:focus,.input:hover:focus{background-color:Highlight;color:HighlightText;outline:2px solid transparent;outline-offset:2px}.toggle-icon{align-items:center;block-size:24px;cursor:pointer;display:flex;inline-size:24px;justify-content:center}.toggle-icon:hover{--calcite-icon-color: var(--calcite-color-text-1)}.meridiem--start{margin-inline-end:var(--calcite-spacing-xxs)}.meridiem--end{margin-inline-start:var(--calcite-spacing-xxs)}:host([scale=s]) .container{block-size:1.5rem;font-size:var(--calcite-font-size-sm);gap:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-sm);padding-inline-end:var(--calcite-spacing-xxs)}:host([scale=s]) .input-container{line-height:1rem}:host([scale=m]) .container{block-size:2rem;font-size:var(--calcite-font-size);gap:var(--calcite-spacing-md);padding-inline-start:var(--calcite-spacing-md);padding-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .input-container{line-height:1.5rem}:host([scale=l]) .container{block-size:2.75rem;font-size:var(--calcite-font-size-md);gap:var(--calcite-spacing-lg);padding-inline:var(--calcite-spacing-lg)}:host([scale=l]) .input-container{line-height:2.25rem}:host([status=invalid]) .container{border-color:var(--calcite-color-status-danger)}:host([status=invalid]) .container:focus-within{outline:2px solid var(--calcite-color-status-danger);outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
28
460
|
const CSS = {
|
|
461
|
+
clockIcon: "clock-icon",
|
|
462
|
+
container: "container",
|
|
463
|
+
decimalSeparator: "decimal-separator",
|
|
464
|
+
empty: "empty",
|
|
465
|
+
fractionalSecond: "fractional-second",
|
|
466
|
+
hour: "hour",
|
|
467
|
+
hourSuffix: "hour-suffix",
|
|
468
|
+
input: "input",
|
|
469
|
+
inputContainer: "input-container",
|
|
470
|
+
meridiem: "meridiem",
|
|
471
|
+
meridiemStart: "meridiem--start",
|
|
472
|
+
meridiemEnd: "meridiem--end",
|
|
473
|
+
minute: "minute",
|
|
474
|
+
minuteSuffix: "minute-suffix",
|
|
475
|
+
readOnly: "read-only",
|
|
476
|
+
second: "second",
|
|
477
|
+
secondSuffix: "second-suffix",
|
|
29
478
|
toggleIcon: "toggle-icon"
|
|
30
479
|
};
|
|
31
480
|
const IDS = {
|
|
32
481
|
validationMessage: "inputTimePickerValidationMessage"
|
|
33
482
|
};
|
|
34
|
-
const supportedDayjsLocaleToLocaleConfigImport = /* @__PURE__ */ new Map([
|
|
35
|
-
["ar", () => import("dayjs/esm/locale/ar.js")],
|
|
36
|
-
["bg", () => import("dayjs/esm/locale/bg.js")],
|
|
37
|
-
["bs", () => import("dayjs/esm/locale/bs.js")],
|
|
38
|
-
["ca", () => import("dayjs/esm/locale/ca.js")],
|
|
39
|
-
["cs", () => import("dayjs/esm/locale/cs.js")],
|
|
40
|
-
["da", () => import("dayjs/esm/locale/da.js")],
|
|
41
|
-
["de", () => import("dayjs/esm/locale/de.js")],
|
|
42
|
-
["de-at", () => import("dayjs/esm/locale/de-at.js")],
|
|
43
|
-
["de-ch", () => import("dayjs/esm/locale/de-ch.js")],
|
|
44
|
-
["el", () => import("dayjs/esm/locale/el.js")],
|
|
45
|
-
["en", () => import("dayjs/esm/locale/en.js")],
|
|
46
|
-
["en-au", () => import("dayjs/esm/locale/en-au.js")],
|
|
47
|
-
["en-ca", () => import("dayjs/esm/locale/en-ca.js")],
|
|
48
|
-
["en-gb", () => import("dayjs/esm/locale/en-gb.js")],
|
|
49
|
-
["es", () => import("dayjs/esm/locale/es.js")],
|
|
50
|
-
["es-mx", () => import("dayjs/esm/locale/es-mx.js")],
|
|
51
|
-
["et", () => import("dayjs/esm/locale/et.js")],
|
|
52
|
-
["fi", () => import("dayjs/esm/locale/fi.js")],
|
|
53
|
-
["fr", () => import("dayjs/esm/locale/fr.js")],
|
|
54
|
-
["fr-ch", () => import("dayjs/esm/locale/fr-ch.js")],
|
|
55
|
-
["he", () => import("dayjs/esm/locale/he.js")],
|
|
56
|
-
["hi", () => import("dayjs/esm/locale/hi.js")],
|
|
57
|
-
["hr", () => import("dayjs/esm/locale/hr.js")],
|
|
58
|
-
["hu", () => import("dayjs/esm/locale/hu.js")],
|
|
59
|
-
["id", () => import("dayjs/esm/locale/id.js")],
|
|
60
|
-
["it", () => import("dayjs/esm/locale/it.js")],
|
|
61
|
-
["it-ch", () => import("dayjs/esm/locale/it-ch.js")],
|
|
62
|
-
["ja", () => import("dayjs/esm/locale/ja.js")],
|
|
63
|
-
["ko", () => import("dayjs/esm/locale/ko.js")],
|
|
64
|
-
["lt", () => import("dayjs/esm/locale/lt.js")],
|
|
65
|
-
["lv", () => import("dayjs/esm/locale/lv.js")],
|
|
66
|
-
["mk", () => import("dayjs/esm/locale/mk.js")],
|
|
67
|
-
["nl", () => import("dayjs/esm/locale/nl.js")],
|
|
68
|
-
["nb", () => import("dayjs/esm/locale/nb.js")],
|
|
69
|
-
["pl", () => import("dayjs/esm/locale/pl.js")],
|
|
70
|
-
["pt", () => import("dayjs/esm/locale/pt.js")],
|
|
71
|
-
["pt-br", () => import("dayjs/esm/locale/pt-br.js")],
|
|
72
|
-
["ro", () => import("dayjs/esm/locale/ro.js")],
|
|
73
|
-
["ru", () => import("dayjs/esm/locale/ru.js")],
|
|
74
|
-
["sk", () => import("dayjs/esm/locale/sk.js")],
|
|
75
|
-
["sl", () => import("dayjs/esm/locale/sl.js")],
|
|
76
|
-
["sr", () => import("dayjs/esm/locale/sr.js")],
|
|
77
|
-
["sv", () => import("dayjs/esm/locale/sv.js")],
|
|
78
|
-
["th", () => import("dayjs/esm/locale/th.js")],
|
|
79
|
-
["tr", () => import("dayjs/esm/locale/tr.js")],
|
|
80
|
-
["uk", () => import("dayjs/esm/locale/uk.js")],
|
|
81
|
-
["vi", () => import("dayjs/esm/locale/vi.js")],
|
|
82
|
-
["zh-cn", () => import("dayjs/esm/locale/zh-cn.js")],
|
|
83
|
-
["zh-hk", () => import("dayjs/esm/locale/zh-hk.js")],
|
|
84
|
-
["zh-tw", () => import("dayjs/esm/locale/zh-tw.js")]
|
|
85
|
-
]);
|
|
86
|
-
dayjs.extend(customParseFormat);
|
|
87
|
-
dayjs.extend(localeData);
|
|
88
|
-
dayjs.extend(localizedFormat);
|
|
89
|
-
dayjs.extend(preParsePostFormat);
|
|
90
|
-
dayjs.extend(updateLocale);
|
|
91
483
|
class InputTimePicker extends LitElement {
|
|
92
|
-
// #endregion
|
|
93
|
-
// #region Lifecycle
|
|
94
484
|
constructor() {
|
|
95
485
|
super();
|
|
96
|
-
this.
|
|
97
|
-
this.
|
|
486
|
+
this.messages = useT9n();
|
|
487
|
+
this.time = new TimeController(this);
|
|
98
488
|
this.disabled = false;
|
|
99
489
|
this.focusTrapDisabled = false;
|
|
100
490
|
this.hourFormat = "user";
|
|
101
|
-
this.messages = useT9n();
|
|
102
491
|
this.open = false;
|
|
103
492
|
this.overlayPositioning = "absolute";
|
|
104
493
|
this.placement = "auto";
|
|
@@ -125,14 +514,12 @@ class InputTimePicker extends LitElement {
|
|
|
125
514
|
this.calciteInputTimePickerChange = createEvent();
|
|
126
515
|
this.calciteInputTimePickerClose = createEvent({ cancelable: false });
|
|
127
516
|
this.calciteInputTimePickerOpen = createEvent({ cancelable: false });
|
|
128
|
-
this.
|
|
129
|
-
this.setInputValue(this.getLocalizedTimeString(params));
|
|
130
|
-
};
|
|
131
|
-
this.listen("blur", this.hostBlurHandler);
|
|
517
|
+
this.listen("blur", this.blurHandler);
|
|
132
518
|
this.listen("keydown", this.keyDownHandler);
|
|
519
|
+
this.listen("calciteTimeChange", this.timeChangeHandler);
|
|
133
520
|
}
|
|
134
521
|
static {
|
|
135
|
-
this.properties = {
|
|
522
|
+
this.properties = { disabled: [7, {}, { reflect: true, type: Boolean }], focusTrapDisabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], hourFormat: [3, {}, { reflect: true }], max: [3, {}, { reflect: true }], messageOverrides: [0, {}, { attribute: false }], min: [3, {}, { reflect: true }], name: 1, numberingSystem: [3, {}, { reflect: true }], open: [7, {}, { reflect: true, type: Boolean }], overlayPositioning: 1, placement: [3, {}, { reflect: true }], readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], step: [11, {}, { reflect: true, type: Number }], validationIcon: [3, { converter: stringOrBoolean }, { reflect: true }], validationMessage: 1, validity: [0, {}, { attribute: false }], value: 1 };
|
|
136
523
|
}
|
|
137
524
|
static {
|
|
138
525
|
this.shadowRootOptions = { mode: "open", delegatesFocus: true };
|
|
@@ -140,46 +527,18 @@ class InputTimePicker extends LitElement {
|
|
|
140
527
|
static {
|
|
141
528
|
this.styles = styles;
|
|
142
529
|
}
|
|
143
|
-
/** The time value in ISO (24-hour) format. */
|
|
144
|
-
get value() {
|
|
145
|
-
return this._value;
|
|
146
|
-
}
|
|
147
|
-
set value(value) {
|
|
148
|
-
const oldValue = this._value;
|
|
149
|
-
if (value !== oldValue) {
|
|
150
|
-
this._value = value;
|
|
151
|
-
this.valueWatcher(value);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
// #endregion
|
|
155
|
-
// #region Public Methods
|
|
156
|
-
/**
|
|
157
|
-
* Updates the position of the component.
|
|
158
|
-
*
|
|
159
|
-
* @param delayed If true, delay the repositioning.
|
|
160
|
-
*/
|
|
161
530
|
async reposition(delayed = false) {
|
|
162
531
|
this.popoverEl?.reposition(delayed);
|
|
163
532
|
}
|
|
164
|
-
/** Sets focus on the component. */
|
|
165
533
|
async setFocus() {
|
|
166
534
|
await componentFocusable(this);
|
|
167
535
|
focusFirstTabbable(this.el);
|
|
168
536
|
}
|
|
169
537
|
connectedCallback() {
|
|
170
538
|
super.connectedCallback();
|
|
171
|
-
if (isValidTime(this.value)) {
|
|
172
|
-
this.setValueDirectly(this.value);
|
|
173
|
-
} else {
|
|
174
|
-
this.value = void 0;
|
|
175
|
-
}
|
|
176
539
|
connectLabel(this);
|
|
177
540
|
connectForm(this);
|
|
178
541
|
}
|
|
179
|
-
async load() {
|
|
180
|
-
await this.loadLocaleData();
|
|
181
|
-
this.updateLocale();
|
|
182
|
-
}
|
|
183
542
|
willUpdate(changes) {
|
|
184
543
|
if (changes.has("open") && (this.hasUpdated || this.open !== false)) {
|
|
185
544
|
this.openHandler();
|
|
@@ -189,104 +548,136 @@ class InputTimePicker extends LitElement {
|
|
|
189
548
|
this.open = false;
|
|
190
549
|
}
|
|
191
550
|
}
|
|
192
|
-
if (changes.has("hourFormat")) {
|
|
193
|
-
this.updateLocale();
|
|
194
|
-
}
|
|
195
551
|
if (changes.has("readOnly") && (this.hasUpdated || this.readOnly !== false)) {
|
|
196
552
|
if (!this.readOnly) {
|
|
197
553
|
this.open = false;
|
|
198
554
|
}
|
|
199
555
|
}
|
|
200
|
-
if (changes.has("
|
|
201
|
-
this.
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
556
|
+
if (changes.has("value")) {
|
|
557
|
+
if (this.hasUpdated) {
|
|
558
|
+
if (!this.time.userChangedValue) {
|
|
559
|
+
this.time.setValue(this.value);
|
|
560
|
+
this.previousEmittedValue = this.value;
|
|
561
|
+
}
|
|
562
|
+
} else {
|
|
563
|
+
this.previousEmittedValue = this.value;
|
|
564
|
+
}
|
|
208
565
|
}
|
|
209
566
|
}
|
|
210
567
|
updated() {
|
|
211
568
|
updateHostInteraction(this);
|
|
212
569
|
}
|
|
213
|
-
loaded() {
|
|
214
|
-
if (isValidTime(this.value)) {
|
|
215
|
-
this.setLocalizedInputValue();
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
570
|
disconnectedCallback() {
|
|
219
571
|
super.disconnectedCallback();
|
|
220
572
|
disconnectLabel(this);
|
|
221
573
|
disconnectForm(this);
|
|
222
574
|
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
async langWatcher() {
|
|
226
|
-
await this.loadLocaleData();
|
|
227
|
-
this.updateLocale();
|
|
575
|
+
blurHandler() {
|
|
576
|
+
this.changeEventHandler();
|
|
228
577
|
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
578
|
+
changeEventHandler() {
|
|
579
|
+
const { previousEmittedValue, value } = this;
|
|
580
|
+
if (previousEmittedValue !== value) {
|
|
581
|
+
const changeEvent = this.calciteInputTimePickerChange.emit();
|
|
582
|
+
if (changeEvent.defaultPrevented) {
|
|
583
|
+
this.time.setValue(this.previousEmittedValue);
|
|
584
|
+
} else {
|
|
585
|
+
this.previousEmittedValue = value;
|
|
586
|
+
}
|
|
235
587
|
}
|
|
236
588
|
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
589
|
+
keyDownHandler(event) {
|
|
590
|
+
const { defaultPrevented, key } = event;
|
|
591
|
+
const { hourFormat, meridiemOrder } = this.time;
|
|
592
|
+
if (defaultPrevented) {
|
|
593
|
+
return;
|
|
240
594
|
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
595
|
+
if (key === "Enter") {
|
|
596
|
+
if (submitForm(this)) {
|
|
597
|
+
event.preventDefault();
|
|
598
|
+
}
|
|
599
|
+
this.changeEventHandler();
|
|
600
|
+
} else if (this.open && this.focusTrapDisabled && key === "Escape") {
|
|
601
|
+
this.open = false;
|
|
602
|
+
event.preventDefault();
|
|
603
|
+
} else {
|
|
604
|
+
const showFractionalSecond = decimalPlaces(this.step) > 0;
|
|
605
|
+
const showSecond = this.step < 60;
|
|
606
|
+
switch (this.activeEl) {
|
|
607
|
+
case this.hourEl:
|
|
608
|
+
if (key === "ArrowRight") {
|
|
609
|
+
this.setFocusPart("minute");
|
|
610
|
+
} else if (key === "ArrowLeft" && hourFormat === "12" && meridiemOrder === 0) {
|
|
611
|
+
this.setFocusPart("meridiem");
|
|
612
|
+
}
|
|
613
|
+
break;
|
|
614
|
+
case this.minuteEl:
|
|
615
|
+
switch (key) {
|
|
616
|
+
case "ArrowLeft":
|
|
617
|
+
this.setFocusPart("hour");
|
|
618
|
+
break;
|
|
619
|
+
case "ArrowRight":
|
|
620
|
+
if (this.step !== 60) {
|
|
621
|
+
this.setFocusPart("second");
|
|
622
|
+
} else if (hourFormat === "12") {
|
|
623
|
+
this.setFocusPart("meridiem");
|
|
624
|
+
}
|
|
625
|
+
break;
|
|
626
|
+
}
|
|
627
|
+
break;
|
|
628
|
+
case this.secondEl:
|
|
629
|
+
switch (key) {
|
|
630
|
+
case "ArrowLeft":
|
|
631
|
+
this.setFocusPart("minute");
|
|
632
|
+
break;
|
|
633
|
+
case "ArrowRight":
|
|
634
|
+
if (decimalPlaces(this.step) > 0) {
|
|
635
|
+
this.setFocusPart("fractionalSecond");
|
|
636
|
+
} else if (hourFormat === "12") {
|
|
637
|
+
this.setFocusPart("meridiem");
|
|
638
|
+
}
|
|
639
|
+
break;
|
|
640
|
+
}
|
|
641
|
+
break;
|
|
642
|
+
case this.fractionalSecondEl:
|
|
643
|
+
switch (key) {
|
|
644
|
+
case "ArrowLeft":
|
|
645
|
+
this.setFocusPart("second");
|
|
646
|
+
break;
|
|
647
|
+
case "ArrowRight":
|
|
648
|
+
if (hourFormat === "12" && meridiemOrder !== 0) {
|
|
649
|
+
this.setFocusPart("meridiem");
|
|
650
|
+
}
|
|
651
|
+
break;
|
|
652
|
+
}
|
|
653
|
+
break;
|
|
654
|
+
case this.meridiemEl:
|
|
655
|
+
if (key === "ArrowLeft" && meridiemOrder !== 0) {
|
|
656
|
+
if (showFractionalSecond) {
|
|
657
|
+
this.setFocusPart("fractionalSecond");
|
|
658
|
+
} else if (showSecond) {
|
|
659
|
+
this.setFocusPart("second");
|
|
660
|
+
} else {
|
|
661
|
+
this.setFocusPart("minute");
|
|
662
|
+
}
|
|
663
|
+
} else if (key === "ArrowRight" && meridiemOrder === 0) {
|
|
664
|
+
this.setFocusPart("hour");
|
|
665
|
+
}
|
|
666
|
+
break;
|
|
667
|
+
}
|
|
245
668
|
}
|
|
246
|
-
this.userChangedValue = false;
|
|
247
669
|
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
if (!delocalizedInputValue) {
|
|
251
|
-
this.setValue("");
|
|
252
|
-
} else if (delocalizedInputValue !== this.value) {
|
|
253
|
-
this.setValue(delocalizedInputValue);
|
|
254
|
-
this.setLocalizedInputValue();
|
|
255
|
-
}
|
|
256
|
-
this.deactivate();
|
|
670
|
+
onLabelClick() {
|
|
671
|
+
this.setFocus();
|
|
257
672
|
}
|
|
258
|
-
|
|
259
|
-
if (
|
|
260
|
-
|
|
673
|
+
openHandler() {
|
|
674
|
+
if (this.disabled || this.readOnly) {
|
|
675
|
+
return;
|
|
261
676
|
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
const { messages: { _lang: locale }, numberingSystem } = this;
|
|
265
|
-
if (numberingSystem && numberingSystem !== "latn") {
|
|
266
|
-
const target = event.target;
|
|
267
|
-
numberStringFormatter.numberFormatOptions = {
|
|
268
|
-
locale,
|
|
269
|
-
numberingSystem,
|
|
270
|
-
useGrouping: false
|
|
271
|
-
};
|
|
272
|
-
const valueInNumberingSystem = numberStringFormatter.delocalize(target.value).split("").map((char) => numberKeys.includes(char) ? numberStringFormatter.numberFormatter.format(Number(char)) : char).join("");
|
|
273
|
-
this.setInputValue(valueInNumberingSystem);
|
|
677
|
+
if (this.popoverEl) {
|
|
678
|
+
this.popoverEl.open = this.open;
|
|
274
679
|
}
|
|
275
680
|
}
|
|
276
|
-
timePickerChangeHandler(event) {
|
|
277
|
-
event.stopPropagation();
|
|
278
|
-
const target = event.target;
|
|
279
|
-
const value = target.value;
|
|
280
|
-
const includeSeconds = this.shouldIncludeSeconds();
|
|
281
|
-
this.setValue(toISOTimeString(value, includeSeconds));
|
|
282
|
-
this.setLocalizedInputValue({ isoTimeString: value });
|
|
283
|
-
}
|
|
284
|
-
updateLocale(locale = this.messages._lang) {
|
|
285
|
-
this.effectiveHourFormat = this.hourFormat === "user" ? getLocaleHourFormat(this.messages._lang) : this.hourFormat;
|
|
286
|
-
this.localeDefaultLTFormat = this.localeConfig.formats.LT;
|
|
287
|
-
this.localeDefaultLTSFormat = this.localeConfig.formats.LTS;
|
|
288
|
-
this.setLocalizedInputValue({ locale });
|
|
289
|
-
}
|
|
290
681
|
popoverBeforeOpenHandler(event) {
|
|
291
682
|
event.stopPropagation();
|
|
292
683
|
this.calciteInputTimePickerBeforeOpen.emit();
|
|
@@ -304,365 +695,100 @@ class InputTimePicker extends LitElement {
|
|
|
304
695
|
this.calciteInputTimePickerClose.emit();
|
|
305
696
|
this.open = false;
|
|
306
697
|
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
delocalizeTimeString(value) {
|
|
311
|
-
dayjs.locale(this.getSupportedDayjsLocale(this.messages._lang.toLowerCase()));
|
|
312
|
-
const nonFractionalSecondParts = this.delocalizeTimeStringToParts(value);
|
|
313
|
-
let delocalizedTimeString;
|
|
314
|
-
if (this.shouldIncludeFractionalSeconds()) {
|
|
315
|
-
const stepPrecision = decimalPlaces(this.step);
|
|
316
|
-
const centisecondParts = this.delocalizeTimeStringToParts(value, "S");
|
|
317
|
-
if (stepPrecision === 1) {
|
|
318
|
-
delocalizedTimeString = centisecondParts.millisecond !== 0 ? this.getTimeStringFromParts(centisecondParts) : this.getTimeStringFromParts(nonFractionalSecondParts);
|
|
319
|
-
} else {
|
|
320
|
-
const decisecondParts = this.delocalizeTimeStringToParts(value, "SS");
|
|
321
|
-
if (stepPrecision === 2) {
|
|
322
|
-
if (decisecondParts.millisecond !== 0) {
|
|
323
|
-
delocalizedTimeString = this.getTimeStringFromParts(decisecondParts);
|
|
324
|
-
} else if (centisecondParts.millisecond !== 0) {
|
|
325
|
-
delocalizedTimeString = this.getTimeStringFromParts(centisecondParts);
|
|
326
|
-
} else {
|
|
327
|
-
delocalizedTimeString = this.getTimeStringFromParts(nonFractionalSecondParts);
|
|
328
|
-
}
|
|
329
|
-
} else if (stepPrecision >= 3) {
|
|
330
|
-
const millisecondParts = this.delocalizeTimeStringToParts(value, "SSS");
|
|
331
|
-
if (millisecondParts.millisecond !== 0) {
|
|
332
|
-
delocalizedTimeString = this.getTimeStringFromParts(millisecondParts);
|
|
333
|
-
} else if (decisecondParts.millisecond !== 0) {
|
|
334
|
-
delocalizedTimeString = this.getTimeStringFromParts(decisecondParts);
|
|
335
|
-
} else if (centisecondParts.millisecond !== 0) {
|
|
336
|
-
delocalizedTimeString = this.getTimeStringFromParts(centisecondParts);
|
|
337
|
-
} else {
|
|
338
|
-
delocalizedTimeString = this.getTimeStringFromParts(nonFractionalSecondParts);
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
} else {
|
|
343
|
-
delocalizedTimeString = this.getTimeStringFromParts(nonFractionalSecondParts);
|
|
344
|
-
}
|
|
345
|
-
return delocalizedTimeString;
|
|
346
|
-
}
|
|
347
|
-
delocalizeTimeStringToParts(value, fractionalSecondFormatToken) {
|
|
348
|
-
const effectiveLocale = this.messages._lang;
|
|
349
|
-
let localizedTimeString = value;
|
|
350
|
-
const effectiveHourFormat = isLocaleHourFormatOpposite(this.effectiveHourFormat, effectiveLocale) ? getLocaleOppositeHourFormat(effectiveLocale) : getLocaleHourFormat(effectiveLocale);
|
|
351
|
-
if (localizedTwentyFourHourMeridiems.has(effectiveLocale) && effectiveHourFormat === "12") {
|
|
352
|
-
const localizedAM = localizedTwentyFourHourMeridiems.get(effectiveLocale).am;
|
|
353
|
-
const localizedPM = localizedTwentyFourHourMeridiems.get(effectiveLocale).pm;
|
|
354
|
-
const meridiemFormatToken = getMeridiemFormatToken(effectiveLocale);
|
|
355
|
-
const caseAdjustedAMString = meridiemFormatToken === meridiemFormatToken.toUpperCase() ? "AM" : "am";
|
|
356
|
-
const caseAdjustedPMString = meridiemFormatToken === meridiemFormatToken.toUpperCase() ? "PM" : "pm";
|
|
357
|
-
localizedTimeString = localizedTimeString.includes(localizedPM) ? localizedTimeString.replaceAll(localizedPM, caseAdjustedPMString) : localizedTimeString.replaceAll(localizedAM, caseAdjustedAMString);
|
|
358
|
-
}
|
|
359
|
-
this.setLocaleTimeFormat({
|
|
360
|
-
fractionalSecondFormatToken,
|
|
361
|
-
hourFormat: effectiveHourFormat
|
|
362
|
-
});
|
|
363
|
-
const dayjsParseResult = dayjs(localizedTimeString, ["LTS", "LT"]);
|
|
364
|
-
if (dayjsParseResult.isValid()) {
|
|
365
|
-
return {
|
|
366
|
-
hour: dayjsParseResult.get("hour"),
|
|
367
|
-
minute: dayjsParseResult.get("minute"),
|
|
368
|
-
second: dayjsParseResult.get("second"),
|
|
369
|
-
millisecond: dayjsParseResult.get("millisecond")
|
|
370
|
-
};
|
|
371
|
-
}
|
|
372
|
-
return {
|
|
373
|
-
hour: null,
|
|
374
|
-
minute: null,
|
|
375
|
-
second: null,
|
|
376
|
-
millisecond: null
|
|
377
|
-
};
|
|
378
|
-
}
|
|
379
|
-
getTimeStringFromParts(parts) {
|
|
380
|
-
let timeString = "";
|
|
381
|
-
if (!parts) {
|
|
382
|
-
return timeString;
|
|
383
|
-
}
|
|
384
|
-
if (parts.hour !== null && parts.minute !== null) {
|
|
385
|
-
timeString = `${formatTimePart(parts.hour)}:${formatTimePart(parts.minute)}`;
|
|
386
|
-
if (this.shouldIncludeSeconds() && parts.second !== null) {
|
|
387
|
-
timeString += `:${formatTimePart(parts.second)}`;
|
|
388
|
-
if (this.shouldIncludeFractionalSeconds() && parts.millisecond !== null) {
|
|
389
|
-
const second = (parts.millisecond * 1e-3).toFixed(decimalPlaces(this.step));
|
|
390
|
-
timeString += `.${second.toString().replace("0.", "")}`;
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
return timeString;
|
|
698
|
+
setCalcitePopoverEl(el) {
|
|
699
|
+
this.popoverEl = el;
|
|
700
|
+
this.openHandler();
|
|
395
701
|
}
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
if (defaultPrevented) {
|
|
399
|
-
return;
|
|
400
|
-
}
|
|
401
|
-
if (key === "Enter") {
|
|
402
|
-
if (submitForm(this)) {
|
|
403
|
-
event.preventDefault();
|
|
404
|
-
this.calciteInputEl.setFocus();
|
|
405
|
-
}
|
|
406
|
-
if (event.composedPath().includes(this.calciteTimePickerEl)) {
|
|
407
|
-
return;
|
|
408
|
-
}
|
|
409
|
-
const newValue = this.delocalizeTimeString(this.calciteInputEl.value);
|
|
410
|
-
if (isValidTime(newValue)) {
|
|
411
|
-
this.setValue(newValue);
|
|
412
|
-
this.setLocalizedInputValue();
|
|
413
|
-
} else {
|
|
414
|
-
this.setValue("");
|
|
415
|
-
}
|
|
416
|
-
} else if (key === "ArrowDown") {
|
|
417
|
-
this.open = true;
|
|
418
|
-
event.preventDefault();
|
|
419
|
-
} else if (this.open && this.focusTrapDisabled && key === "Escape") {
|
|
420
|
-
this.open = false;
|
|
421
|
-
event.preventDefault();
|
|
422
|
-
}
|
|
702
|
+
setContainerEl(el) {
|
|
703
|
+
this.containerEl = el;
|
|
423
704
|
}
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
if (dayjsLocale === "no") {
|
|
427
|
-
return "nb";
|
|
428
|
-
}
|
|
429
|
-
if (dayjsLocale === "pt-pt") {
|
|
430
|
-
return "pt";
|
|
431
|
-
}
|
|
432
|
-
return dayjsLocale;
|
|
433
|
-
}
|
|
434
|
-
async loadLocaleData() {
|
|
435
|
-
let supportedLocale = getSupportedLocale(this.messages._lang).toLowerCase();
|
|
436
|
-
supportedLocale = this.getSupportedDayjsLocale(supportedLocale);
|
|
437
|
-
const { default: localeConfig } = await supportedDayjsLocaleToLocaleConfigImport.get(supportedLocale)();
|
|
438
|
-
this.localeConfig = localeConfig;
|
|
439
|
-
dayjs.locale(this.localeConfig, null, true);
|
|
440
|
-
dayjs.updateLocale(supportedLocale, this.getExtendedLocaleConfig(supportedLocale));
|
|
441
|
-
}
|
|
442
|
-
getExtendedLocaleConfig(locale) {
|
|
443
|
-
if (locale === "ar") {
|
|
444
|
-
return {
|
|
445
|
-
meridiem: (hour) => hour > 12 ? "م" : "ص",
|
|
446
|
-
formats: {
|
|
447
|
-
LT: "h:mm a",
|
|
448
|
-
LTS: "h:mm:ss a",
|
|
449
|
-
L: "DD/MM/YYYY",
|
|
450
|
-
LL: "D MMMM YYYY",
|
|
451
|
-
LLL: "D MMMM YYYY h:mm a",
|
|
452
|
-
LLLL: "dddd D MMMM YYYY h:mm a"
|
|
453
|
-
}
|
|
454
|
-
};
|
|
455
|
-
}
|
|
456
|
-
if (locale === "en-au") {
|
|
457
|
-
return {
|
|
458
|
-
meridiem: (hour) => hour > 12 ? "pm" : "am"
|
|
459
|
-
};
|
|
460
|
-
}
|
|
461
|
-
if (locale === "en-ca") {
|
|
462
|
-
return {
|
|
463
|
-
meridiem: (hour) => hour > 12 ? "p.m." : "a.m."
|
|
464
|
-
};
|
|
465
|
-
}
|
|
466
|
-
if (locale === "el") {
|
|
467
|
-
return {
|
|
468
|
-
meridiem: (hour) => hour > 12 ? "μ.μ." : "π.μ."
|
|
469
|
-
};
|
|
470
|
-
}
|
|
471
|
-
if (locale === "es-mx") {
|
|
472
|
-
return {
|
|
473
|
-
formats: {
|
|
474
|
-
LT: "h:mm a",
|
|
475
|
-
LTS: "h:mm:ss a",
|
|
476
|
-
L: "DD/MM/YYYY",
|
|
477
|
-
LL: "D [de] MMMM [de] YYYY",
|
|
478
|
-
LLL: "D [de] MMMM [de] YYYY H:mm",
|
|
479
|
-
LLLL: "dddd, D [de] MMMM [de] YYYY H:mm"
|
|
480
|
-
}
|
|
481
|
-
};
|
|
482
|
-
}
|
|
483
|
-
if (locale === "hi") {
|
|
484
|
-
return {
|
|
485
|
-
formats: {
|
|
486
|
-
LT: "h:mm A",
|
|
487
|
-
LTS: "h:mm:ss A",
|
|
488
|
-
L: "DD/MM/YYYY",
|
|
489
|
-
LL: "D MMMM YYYY",
|
|
490
|
-
LLL: "D MMMM YYYY, h:mm A",
|
|
491
|
-
LLLL: "dddd, D MMMM YYYY, h:mm A"
|
|
492
|
-
},
|
|
493
|
-
meridiem: (hour) => hour > 12 ? "pm" : "am"
|
|
494
|
-
};
|
|
495
|
-
}
|
|
496
|
-
if (locale === "ja") {
|
|
497
|
-
return {
|
|
498
|
-
meridiem: (hour) => hour > 12 ? "午後" : "午前"
|
|
499
|
-
};
|
|
500
|
-
}
|
|
501
|
-
if (locale === "ko") {
|
|
502
|
-
return {
|
|
503
|
-
meridiem: (hour) => hour > 12 ? "오후" : "오전"
|
|
504
|
-
};
|
|
505
|
-
}
|
|
506
|
-
if (locale === "no") {
|
|
507
|
-
return {
|
|
508
|
-
meridiem: (hour) => hour > 12 ? "p.m." : "a.m."
|
|
509
|
-
};
|
|
510
|
-
}
|
|
511
|
-
if (locale === "ru") {
|
|
512
|
-
return {
|
|
513
|
-
meridiem: (hour) => hour > 12 ? "PM" : "AM"
|
|
514
|
-
};
|
|
515
|
-
}
|
|
516
|
-
if (locale === "zh-cn") {
|
|
517
|
-
return {
|
|
518
|
-
meridiem: (hour) => hour > 12 ? "下午" : "上午"
|
|
519
|
-
};
|
|
520
|
-
}
|
|
521
|
-
if (locale === "zh-tw") {
|
|
522
|
-
return {
|
|
523
|
-
formats: {
|
|
524
|
-
LT: "Ah:mm",
|
|
525
|
-
LTS: "Ah:mm:ss"
|
|
526
|
-
}
|
|
527
|
-
};
|
|
528
|
-
}
|
|
529
|
-
if (locale === "zh-hk") {
|
|
530
|
-
return {
|
|
531
|
-
formats: {
|
|
532
|
-
LT: "Ah:mm",
|
|
533
|
-
LTS: "Ah:mm:ss"
|
|
534
|
-
},
|
|
535
|
-
meridiem: (hour) => hour > 12 ? "下午" : "上午"
|
|
536
|
-
};
|
|
537
|
-
}
|
|
705
|
+
async setFocusPart(target) {
|
|
706
|
+
this[`${target || "hour"}El`]?.focus();
|
|
538
707
|
}
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
const locale = params?.locale ?? this.messages._lang;
|
|
542
|
-
const numberingSystem = params?.numberingSystem ?? this.numberingSystem;
|
|
543
|
-
const value = params?.isoTimeString ?? this.value;
|
|
544
|
-
return localizeTimeString({
|
|
545
|
-
fractionalSecondDigits: decimalPlaces(this.step),
|
|
546
|
-
hour12,
|
|
547
|
-
includeSeconds: this.shouldIncludeSeconds(),
|
|
548
|
-
locale,
|
|
549
|
-
numberingSystem,
|
|
550
|
-
value
|
|
551
|
-
}) ?? "";
|
|
708
|
+
setFractionalSecondEl(el) {
|
|
709
|
+
this.fractionalSecondEl = el;
|
|
552
710
|
}
|
|
553
|
-
|
|
554
|
-
this.
|
|
711
|
+
setHourEl(el) {
|
|
712
|
+
this.hourEl = el;
|
|
555
713
|
}
|
|
556
|
-
|
|
557
|
-
|
|
714
|
+
setMinuteEl(el) {
|
|
715
|
+
this.minuteEl = el;
|
|
558
716
|
}
|
|
559
|
-
|
|
560
|
-
|
|
717
|
+
setSecondEl(el) {
|
|
718
|
+
this.secondEl = el;
|
|
561
719
|
}
|
|
562
|
-
|
|
563
|
-
this.
|
|
564
|
-
this.openHandler();
|
|
720
|
+
setMeridiemEl(el) {
|
|
721
|
+
this.meridiemEl = el;
|
|
565
722
|
}
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
return;
|
|
569
|
-
}
|
|
570
|
-
this.calciteInputEl = el;
|
|
723
|
+
syncHiddenFormInput(input) {
|
|
724
|
+
syncHiddenFormInput("time", this, input);
|
|
571
725
|
}
|
|
572
|
-
|
|
573
|
-
if (
|
|
726
|
+
timeChangeHandler(event) {
|
|
727
|
+
if (this.disabled) {
|
|
574
728
|
return;
|
|
575
729
|
}
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
const effectiveLocale = this.messages._lang;
|
|
580
|
-
const localeDefaultHourFormat = getLocaleHourFormat(effectiveLocale);
|
|
581
|
-
const hourRegEx = /h+|H+/g;
|
|
582
|
-
const meridiemRegEx = /\s+|a+|A+|\s+/g;
|
|
583
|
-
let ltFormatString = this.localeConfig.formats.LT;
|
|
584
|
-
let ltsFormatString = this.localeConfig.formats.LTS;
|
|
585
|
-
if (hourFormat === "12" && localeDefaultHourFormat === "24") {
|
|
586
|
-
const meridiemFormatToken = getMeridiemFormatToken(effectiveLocale);
|
|
587
|
-
const meridiemOrder = getMeridiemOrder(effectiveLocale);
|
|
588
|
-
ltFormatString = ltFormatString.replaceAll(hourRegEx, "h");
|
|
589
|
-
ltFormatString = ltFormatString.replaceAll(meridiemRegEx, "");
|
|
590
|
-
ltFormatString = meridiemOrder === 0 ? `${meridiemFormatToken}${ltFormatString}` : `${ltFormatString}${meridiemFormatToken}`;
|
|
591
|
-
ltsFormatString = ltsFormatString.replaceAll(hourRegEx, "h");
|
|
592
|
-
ltsFormatString = ltsFormatString.replaceAll(meridiemRegEx, "");
|
|
593
|
-
ltsFormatString = meridiemOrder === 0 ? `${meridiemFormatToken}${ltsFormatString}` : `${ltsFormatString}${meridiemFormatToken}`;
|
|
594
|
-
} else if (hourFormat === "24" && localeDefaultHourFormat === "12") {
|
|
595
|
-
ltFormatString = ltFormatString.replaceAll(hourRegEx, "H");
|
|
596
|
-
ltFormatString = ltFormatString.replaceAll(meridiemRegEx, "");
|
|
597
|
-
ltsFormatString = ltsFormatString.replaceAll(hourRegEx, "H");
|
|
598
|
-
ltsFormatString = ltsFormatString.replaceAll(meridiemRegEx, "");
|
|
599
|
-
} else {
|
|
600
|
-
ltFormatString = this.localeDefaultLTFormat;
|
|
601
|
-
ltsFormatString = this.localeDefaultLTSFormat;
|
|
602
|
-
}
|
|
603
|
-
const fractionalSecondTokenMatch = ltsFormatString?.match(/ss\.*(S+)/g);
|
|
604
|
-
if (fractionalSecondFormatToken && this.shouldIncludeFractionalSeconds()) {
|
|
605
|
-
const secondFormatToken = `ss.${fractionalSecondFormatToken}`;
|
|
606
|
-
ltsFormatString = fractionalSecondTokenMatch ? ltsFormatString.replace(fractionalSecondTokenMatch[0], secondFormatToken) : ltsFormatString.replace("ss", secondFormatToken);
|
|
607
|
-
} else if (fractionalSecondTokenMatch) {
|
|
608
|
-
ltsFormatString = ltsFormatString.replace(fractionalSecondTokenMatch[0], "ss");
|
|
730
|
+
const newValue = event.detail;
|
|
731
|
+
if (newValue !== this.value) {
|
|
732
|
+
this.value = newValue;
|
|
609
733
|
}
|
|
610
|
-
this.localeConfig.formats.LT = ltFormatString;
|
|
611
|
-
this.localeConfig.formats.LTS = ltsFormatString;
|
|
612
|
-
dayjs.updateLocale(this.getSupportedDayjsLocale(getSupportedLocale(effectiveLocale)), this.localeConfig);
|
|
613
734
|
}
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
return;
|
|
617
|
-
}
|
|
618
|
-
this.calciteInputEl.value = newInputValue;
|
|
619
|
-
}
|
|
620
|
-
/**
|
|
621
|
-
* Sets the value and emits a change event.
|
|
622
|
-
* This is used to update the value as a result of user interaction.
|
|
623
|
-
*
|
|
624
|
-
* @param value The new value
|
|
625
|
-
*/
|
|
626
|
-
setValue(value) {
|
|
627
|
-
const oldValue = this.value;
|
|
628
|
-
const newValue = formatTimeString(value) || "";
|
|
629
|
-
if (newValue === oldValue) {
|
|
630
|
-
return;
|
|
631
|
-
}
|
|
632
|
-
this.userChangedValue = true;
|
|
633
|
-
this.value = newValue || "";
|
|
634
|
-
const changeEvent = this.calciteInputTimePickerChange.emit();
|
|
635
|
-
if (changeEvent.defaultPrevented) {
|
|
636
|
-
this.userChangedValue = false;
|
|
637
|
-
this.value = oldValue;
|
|
638
|
-
this.setLocalizedInputValue({ isoTimeString: oldValue });
|
|
639
|
-
}
|
|
735
|
+
timePartFocusHandler(event) {
|
|
736
|
+
this.activeEl = event.currentTarget;
|
|
640
737
|
}
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
*
|
|
645
|
-
* @param value The new value
|
|
646
|
-
*/
|
|
647
|
-
setValueDirectly(value) {
|
|
648
|
-
const includeSeconds = this.shouldIncludeSeconds();
|
|
649
|
-
this.value = toISOTimeString(value, includeSeconds);
|
|
650
|
-
this.setLocalizedInputValue();
|
|
651
|
-
}
|
|
652
|
-
onInputWrapperClick() {
|
|
653
|
-
this.open = !this.open;
|
|
738
|
+
timePickerChangeHandler(event) {
|
|
739
|
+
event.stopPropagation();
|
|
740
|
+
this.time.setValue(event.target.value, true);
|
|
654
741
|
}
|
|
655
|
-
|
|
656
|
-
this.open =
|
|
742
|
+
toggleIconClickHandler() {
|
|
743
|
+
this.open = !this.open;
|
|
657
744
|
}
|
|
658
|
-
// #endregion
|
|
659
|
-
// #region Rendering
|
|
660
745
|
render() {
|
|
661
|
-
const {
|
|
662
|
-
|
|
746
|
+
const { messages, readOnly, scale } = this;
|
|
747
|
+
const { fractionalSecond, handleHourKeyDownEvent, handleMinuteKeyDownEvent, handleSecondKeyDownEvent, handleFractionalSecondKeyDownEvent, hour, hourFormat, localizedDecimalSeparator, localizedFractionalSecond, localizedHour, localizedHourSuffix, localizedMinute, localizedMinuteSuffix, localizedSecond, localizedSecondSuffix, meridiemOrder, minute, second } = this.time;
|
|
748
|
+
const emptyPlaceholder = "--";
|
|
749
|
+
const fractionalSecondIsNumber = isValidNumber(fractionalSecond);
|
|
750
|
+
const hourIsNumber = isValidNumber(hour);
|
|
751
|
+
const minuteIsNumber = isValidNumber(minute);
|
|
752
|
+
const secondIsNumber = isValidNumber(second);
|
|
753
|
+
const showFractionalSecond = decimalPlaces(this.step) > 0;
|
|
754
|
+
const showMeridiem = hourFormat === "12";
|
|
755
|
+
const showSecond = this.step < 60;
|
|
756
|
+
const meridiemStart = meridiemOrder === 0 || getElementDir(this.el) === "rtl";
|
|
757
|
+
const isInteractive = !this.disabled && !this.readOnly;
|
|
758
|
+
return InteractiveContainer({ disabled: this.disabled, children: html`<div aria-label=${getLabelText(this) ?? nothing} class=${safeClassMap({
|
|
759
|
+
[CSS.container]: true,
|
|
760
|
+
[CSS.readOnly]: readOnly
|
|
761
|
+
})} role=combobox ${ref(this.setContainerEl)}><calcite-icon class=${safeClassMap(CSS.clockIcon)} icon=clock .scale=${scale === "l" ? "m" : "s"}></calcite-icon><div class=${safeClassMap(CSS.inputContainer)} dir=ltr>${showMeridiem && meridiemStart && this.renderMeridiem("start") || ""}<span aria-label=${this.messages.hour ?? nothing} aria-valuemax=23 aria-valuemin=1 aria-valuenow=${hourIsNumber && parseInt(hour) || "0"} aria-valuetext=${hour ?? nothing} class=${safeClassMap({
|
|
762
|
+
[CSS.empty]: !localizedHour,
|
|
763
|
+
[CSS.hour]: true,
|
|
764
|
+
[CSS.input]: true
|
|
765
|
+
})} @focus=${this.timePartFocusHandler} @keydown=${isInteractive ? handleHourKeyDownEvent : void 0} role=spinbutton tabindex=0 ${ref(this.setHourEl)}>${localizedHour || emptyPlaceholder}</span><span class=${safeClassMap(CSS.hourSuffix)}>${localizedHourSuffix}</span><span aria-label=${this.messages.minute ?? nothing} aria-valuemax=12 aria-valuemin=1 aria-valuenow=${minuteIsNumber && parseInt(minute) || "0"} aria-valuetext=${minute ?? nothing} class=${safeClassMap({
|
|
766
|
+
[CSS.empty]: !localizedMinute,
|
|
767
|
+
[CSS.input]: true,
|
|
768
|
+
[CSS.minute]: true
|
|
769
|
+
})} @focus=${this.timePartFocusHandler} @keydown=${isInteractive ? handleMinuteKeyDownEvent : void 0} role=spinbutton tabindex=0 ${ref(this.setMinuteEl)}>${localizedMinute || emptyPlaceholder}</span>${showSecond && html`<span class=${safeClassMap(CSS.minuteSuffix)}>${localizedMinuteSuffix}</span>` || ""}${showSecond && html`<span aria-label=${this.messages.second ?? nothing} aria-valuemax=59 aria-valuemin=0 aria-valuenow=${secondIsNumber && parseInt(second) || "0"} aria-valuetext=${second ?? nothing} class=${safeClassMap({
|
|
770
|
+
[CSS.empty]: !localizedSecond,
|
|
771
|
+
[CSS.input]: true,
|
|
772
|
+
[CSS.second]: true
|
|
773
|
+
})} @focus=${this.timePartFocusHandler} @keydown=${isInteractive ? handleSecondKeyDownEvent : void 0} role=spinbutton tabindex=0 ${ref(this.setSecondEl)}>${localizedSecond || emptyPlaceholder}</span>` || ""}${showFractionalSecond && html`<span class=${safeClassMap(CSS.decimalSeparator)}>${localizedDecimalSeparator}</span>` || ""}${showFractionalSecond && html`<span aria-label=${this.messages.fractionalSecond ?? nothing} aria-valuemax=999 aria-valuemin=1 aria-valuenow=${fractionalSecondIsNumber && parseInt(fractionalSecond) || "0"} aria-valuetext=${localizedFractionalSecond ?? nothing} class=${safeClassMap({
|
|
774
|
+
[CSS.empty]: !localizedFractionalSecond,
|
|
775
|
+
[CSS.fractionalSecond]: true,
|
|
776
|
+
[CSS.input]: true
|
|
777
|
+
})} @focus=${this.timePartFocusHandler} @keydown=${isInteractive ? handleFractionalSecondKeyDownEvent : void 0} role=spinbutton tabindex=0 ${ref(this.setFractionalSecondEl)}>${localizedFractionalSecond || "".padStart(decimalPlaces(this.step), "-")}</span>` || ""}${localizedSecondSuffix && html`<span class=${safeClassMap(CSS.secondSuffix)}>${localizedSecondSuffix}</span>` || ""}${showMeridiem && !meridiemStart && this.renderMeridiem("end") || ""}</div>${!this.readOnly && this.renderToggleIcon(this.open) || ""}</div><calcite-popover auto-close .focusTrapDisabled=${this.focusTrapDisabled} .focusTrapOptions=${{ initialFocus: false }} .label=${messages.chooseTime} lang=${this.messages._lang ?? nothing} @calcitePopoverBeforeClose=${this.popoverBeforeCloseHandler} @calcitePopoverBeforeOpen=${this.popoverBeforeOpenHandler} @calcitePopoverClose=${this.popoverCloseHandler} @calcitePopoverOpen=${this.popoverOpenHandler} .overlayPositioning=${this.overlayPositioning} .placement=${this.placement} .referenceElement=${this.containerEl} trigger-disabled ${ref(this.setCalcitePopoverEl)}><calcite-time-picker .hourFormat=${this.time.hourFormat} lang=${this.messages._lang ?? nothing} .messageOverrides=${this.messageOverrides} .numberingSystem=${this.numberingSystem} @calciteTimePickerChange=${this.timePickerChangeHandler} .scale=${this.scale} .step=${this.step} tabindex=${(this.open ? void 0 : -1) ?? nothing} .value=${this.value}></calcite-time-picker></calcite-popover>${HiddenFormInputSlot({ component: this })}${this.validationMessage && this.status === "invalid" ? Validation({ icon: this.validationIcon, id: IDS.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}` });
|
|
778
|
+
}
|
|
779
|
+
renderMeridiem(position) {
|
|
780
|
+
const { handleMeridiemKeyDownEvent, localizedMeridiem, meridiem } = this.time;
|
|
781
|
+
const isInteractive = !this.disabled && !this.readOnly;
|
|
782
|
+
return html`<span aria-label=${this.messages.meridiem ?? nothing} aria-valuemax=2 aria-valuemin=1 aria-valuenow=${meridiem === "PM" && "2" || "1"} aria-valuetext=${meridiem ?? nothing} class=${safeClassMap({
|
|
783
|
+
[CSS.empty]: !localizedMeridiem,
|
|
784
|
+
[CSS.input]: true,
|
|
785
|
+
[CSS.meridiem]: true,
|
|
786
|
+
[CSS.meridiemStart]: position === "start",
|
|
787
|
+
[CSS.meridiemEnd]: position === "end"
|
|
788
|
+
})} @focus=${this.timePartFocusHandler} @keydown=${isInteractive ? handleMeridiemKeyDownEvent : void 0} role=spinbutton tabindex=0 ${ref(this.setMeridiemEl)}>${localizedMeridiem || "--"}</span>`;
|
|
663
789
|
}
|
|
664
790
|
renderToggleIcon(open) {
|
|
665
|
-
return html`<span class=${safeClassMap(CSS.toggleIcon)}
|
|
791
|
+
return html`<span class=${safeClassMap(CSS.toggleIcon)} @click=${this.toggleIconClickHandler}><calcite-icon .icon=${open ? "chevron-up" : "chevron-down"} .scale=${getIconScale(this.scale)}></calcite-icon></span>`;
|
|
666
792
|
}
|
|
667
793
|
}
|
|
668
794
|
customElement("calcite-input-time-picker", InputTimePicker);
|