@esri/calcite-components 3.1.0-next.8 → 3.1.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 → README.md} +12 -41
- package/THIRD-PARTY-LICENSES.md +827 -0
- package/dist/calcite/{NWLC6HCP.js → 27IOO7JE.js} +2 -2
- package/dist/calcite/27IOO7JE.js.LEGAL.txt +0 -0
- package/dist/calcite/2BQ33WDW.js +4 -0
- package/dist/calcite/{ZEX4H72T.js → 2BQ33WDW.js.LEGAL.txt} +1 -2
- package/dist/calcite/2HVUZ5DK.js +4 -0
- package/dist/calcite/2HVUZ5DK.js.LEGAL.txt +3 -0
- package/dist/calcite/{T46DOM7F.js → 2LFS4ORS.js} +2 -2
- package/dist/calcite/2LFS4ORS.js.LEGAL.txt +3 -0
- package/dist/calcite/{2NTZVWBL.js → 2PGKH5DV.js} +2 -2
- package/dist/calcite/2PGKH5DV.js.LEGAL.txt +3 -0
- package/dist/calcite/{ECBC7QPR.js → 2T3Y5S7P.js} +2 -2
- package/dist/calcite/2T3Y5S7P.js.LEGAL.txt +0 -0
- package/dist/calcite/{RUPASXJR.js → 2VSJDFVT.js} +2 -2
- package/dist/calcite/2VSJDFVT.js.LEGAL.txt +3 -0
- package/dist/calcite/{7N4MPHBE.js → 2XZJIVGT.js} +2 -2
- package/dist/calcite/2XZJIVGT.js.LEGAL.txt +3 -0
- package/dist/calcite/{E2E2IWVZ.js → 3FY4MIP6.js} +2 -2
- package/dist/calcite/3FY4MIP6.js.LEGAL.txt +3 -0
- package/dist/calcite/{IYTVQGB2.js → 3H3DSIBW.js} +2 -2
- package/dist/calcite/3H3DSIBW.js.LEGAL.txt +0 -0
- package/dist/calcite/3IPEB2FY.js +4 -0
- package/dist/calcite/3IPEB2FY.js.LEGAL.txt +3 -0
- package/dist/calcite/{OFL3O4J7.js → 3NWI6OP2.js} +2 -2
- package/dist/calcite/3NWI6OP2.js.LEGAL.txt +8 -0
- package/dist/calcite/{G2EKSS3Q.js → 3OBVRNBZ.js} +2 -2
- package/dist/calcite/3OBVRNBZ.js.LEGAL.txt +3 -0
- package/dist/calcite/{SKWHFQW7.js → 3TINLEHO.js} +2 -2
- package/dist/calcite/3TINLEHO.js.LEGAL.txt +3 -0
- package/dist/calcite/{4ED2H7HH.js → 435M2D5U.js} +2 -2
- package/dist/calcite/435M2D5U.js.LEGAL.txt +8 -0
- package/dist/calcite/{CITHW335.js → 43UGFK7T.js} +2 -2
- package/dist/calcite/43UGFK7T.js.LEGAL.txt +3 -0
- package/dist/calcite/{K5Z72QK6.js → 46VUZ7WH.js} +2 -2
- package/dist/calcite/46VUZ7WH.js.LEGAL.txt +3 -0
- package/dist/calcite/{4UGQJDIU.js → 4BJCL5RQ.js} +2 -2
- package/dist/calcite/4BJCL5RQ.js.LEGAL.txt +3 -0
- package/dist/calcite/{LSTKKTVH.js → 4FSW4RK3.js} +2 -2
- package/dist/calcite/4FSW4RK3.js.LEGAL.txt +3 -0
- package/dist/calcite/{TURPPOIV.js → 4GVDKTB3.js} +2 -2
- package/dist/calcite/4GVDKTB3.js.LEGAL.txt +3 -0
- package/dist/calcite/{DYRPTLB2.js → 4L4OJGYT.js} +1 -1
- package/dist/calcite/4L4OJGYT.js.LEGAL.txt +0 -0
- package/dist/calcite/{OL4NX2FE.js → 4Q2DPEWF.js} +2 -2
- package/dist/calcite/4Q2DPEWF.js.LEGAL.txt +3 -0
- package/dist/calcite/{YK7OY4KU.js → 4RGM5XAL.js} +2 -2
- package/dist/calcite/4RGM5XAL.js.LEGAL.txt +0 -0
- package/dist/calcite/4V3XPAFA.js +4 -0
- package/dist/calcite/4V3XPAFA.js.LEGAL.txt +3 -0
- package/dist/calcite/4Y2KYQ4P.js +4 -0
- package/dist/calcite/4Y2KYQ4P.js.LEGAL.txt +3 -0
- package/dist/calcite/{L6XNI5HV.js → 55SDDZTK.js} +1 -1
- package/dist/calcite/55SDDZTK.js.LEGAL.txt +3 -0
- package/dist/calcite/{O5CI2GNJ.js → 5FOTSRNX.js} +2 -2
- package/dist/calcite/5FOTSRNX.js.LEGAL.txt +0 -0
- package/dist/calcite/{VV5WNAF5.js → 5NDM3D44.js} +2 -2
- package/dist/calcite/5NDM3D44.js.LEGAL.txt +3 -0
- package/dist/calcite/{XAWJCK54.js → 5OTJMCKZ.js} +1 -1
- package/dist/calcite/5OTJMCKZ.js.LEGAL.txt +0 -0
- package/dist/calcite/{RZRLWCY3.js → 6BKM2N7Z.js} +2 -2
- package/dist/calcite/6BKM2N7Z.js.LEGAL.txt +0 -0
- package/dist/calcite/{V5MKLX6H.js → 6UD3P4ER.js} +2 -2
- package/dist/calcite/6UD3P4ER.js.LEGAL.txt +0 -0
- package/dist/calcite/{W46KWDJJ.js → 6ZJJBEWU.js} +2 -2
- package/dist/calcite/6ZJJBEWU.js.LEGAL.txt +3 -0
- package/dist/calcite/{RGOBNV2R.js → 73JLUGUM.js} +1 -1
- package/dist/calcite/73JLUGUM.js.LEGAL.txt +3 -0
- package/dist/calcite/7EGQ7YIQ.js +4 -0
- package/dist/calcite/7EGQ7YIQ.js.LEGAL.txt +3 -0
- package/dist/calcite/{RYUQNONZ.js → 7GGMPMXR.js} +2 -2
- package/dist/calcite/7GGMPMXR.js.LEGAL.txt +0 -0
- package/dist/calcite/{TFH5J4BX.js → 7ID7OQWG.js} +1 -1
- package/dist/calcite/7ID7OQWG.js.LEGAL.txt +0 -0
- package/dist/calcite/{JSHYMXZU.js → 7JYITV7C.js} +2 -2
- package/dist/calcite/7JYITV7C.js.LEGAL.txt +0 -0
- package/dist/calcite/{JR4I7CAV.js → 7QHXTYA2.js} +2 -2
- package/dist/calcite/7QHXTYA2.js.LEGAL.txt +3 -0
- package/dist/calcite/{WM63LBXY.js → 7TFPBMHK.js} +1 -1
- package/dist/calcite/7TFPBMHK.js.LEGAL.txt +0 -0
- package/dist/calcite/{EOGRH3C4.js → 7XIHFON6.js} +2 -2
- package/dist/calcite/7XIHFON6.js.LEGAL.txt +0 -0
- package/dist/calcite/{K4Q6QKPW.js → 7Y47FMFW.js} +2 -2
- package/dist/calcite/7Y47FMFW.js.LEGAL.txt +3 -0
- package/dist/calcite/A3GPRMXN.js +4 -0
- package/dist/calcite/A3GPRMXN.js.LEGAL.txt +3 -0
- package/dist/calcite/{L47SR2OT.js → A7TAJE4W.js} +2 -2
- package/dist/calcite/A7TAJE4W.js.LEGAL.txt +3 -0
- package/dist/calcite/{TMDB4EP2.js → AE37DSUM.js} +2 -2
- package/dist/calcite/AE37DSUM.js.LEGAL.txt +15 -0
- package/dist/calcite/{ZPYMCURK.js → AI4IKKMB.js} +2 -2
- package/dist/calcite/AI4IKKMB.js.LEGAL.txt +3 -0
- package/dist/calcite/ANWG6QGF.js +4 -0
- package/dist/calcite/ANWG6QGF.js.LEGAL.txt +3 -0
- package/dist/calcite/{LGA6USJK.js → APSAFTBC.js} +2 -2
- package/dist/calcite/APSAFTBC.js.LEGAL.txt +3 -0
- package/dist/calcite/{QJ2XIVLO.js → BCURAF5Z.js} +2 -2
- package/dist/calcite/BCURAF5Z.js.LEGAL.txt +0 -0
- package/dist/calcite/{DEAX7OZF.js → BDJ7OECW.js} +2 -2
- package/dist/calcite/BDJ7OECW.js.LEGAL.txt +3 -0
- package/dist/calcite/{SQCOJR5A.js → BEYI75RK.js} +1 -1
- package/dist/calcite/BEYI75RK.js.LEGAL.txt +13 -0
- package/dist/calcite/{GUMMHH46.js → BKLUSTQI.js} +2 -2
- package/dist/calcite/BKLUSTQI.js.LEGAL.txt +0 -0
- package/dist/calcite/BOQWH2YC.js +4 -0
- package/dist/calcite/BOQWH2YC.js.LEGAL.txt +0 -0
- package/dist/calcite/{624AN7QX.js → BQ4BII6T.js} +2 -2
- package/dist/calcite/BQ4BII6T.js.LEGAL.txt +0 -0
- package/dist/calcite/{5CBQQIVC.js → BVXA3Q26.js} +2 -2
- package/dist/calcite/BVXA3Q26.js.LEGAL.txt +3 -0
- package/dist/calcite/{3QGEALT7.js → BX54CYHP.js} +2 -2
- package/dist/calcite/BX54CYHP.js.LEGAL.txt +3 -0
- package/dist/calcite/BXT5VP3L.js +4 -0
- package/dist/calcite/BXT5VP3L.js.LEGAL.txt +3 -0
- package/dist/calcite/{JZ5JLDRG.js → BZO2SLCG.js} +2 -2
- package/dist/calcite/BZO2SLCG.js.LEGAL.txt +3 -0
- package/dist/calcite/C22HJ4NN.js +4 -0
- package/dist/calcite/C22HJ4NN.js.LEGAL.txt +3 -0
- package/dist/calcite/{L3NYCUCL.js → CDRDHIBD.js} +2 -2
- package/dist/calcite/CDRDHIBD.js.LEGAL.txt +3 -0
- package/dist/calcite/{KRSUYP6N.js → CFWASGFL.js} +2 -2
- package/dist/calcite/CFWASGFL.js.LEGAL.txt +3 -0
- package/dist/calcite/CJWPYQOI.js +4 -0
- package/dist/calcite/CJWPYQOI.js.LEGAL.txt +3 -0
- package/dist/calcite/CRWUKPM4.js +4 -0
- package/dist/calcite/CRWUKPM4.js.LEGAL.txt +3 -0
- package/dist/calcite/CULUIGBJ.js +4 -0
- package/dist/calcite/CULUIGBJ.js.LEGAL.txt +3 -0
- package/dist/calcite/{VILLQ4HD.js → CXES3PCD.js} +2 -2
- package/dist/calcite/CXES3PCD.js.LEGAL.txt +3 -0
- package/dist/calcite/{LZZ3TK6C.js → CYBZJW63.js} +2 -2
- package/dist/calcite/CYBZJW63.js.LEGAL.txt +0 -0
- package/dist/calcite/{WEFCYZPS.js → CZFNUC5C.js} +2 -2
- package/dist/calcite/CZFNUC5C.js.LEGAL.txt +3 -0
- package/dist/calcite/{7SI6D43R.js → D6M5FGHH.js} +2 -2
- package/dist/calcite/D6M5FGHH.js.LEGAL.txt +0 -0
- package/dist/calcite/{EJ7Q7HZY.js → DBRGG2J6.js} +2 -2
- package/dist/calcite/DBRGG2J6.js.LEGAL.txt +0 -0
- package/dist/calcite/{V7EJRBD5.js → DFPTNHAL.js} +1 -1
- package/dist/calcite/DFPTNHAL.js.LEGAL.txt +3 -0
- package/dist/calcite/{6W7B3XOK.js → DNAWDCX4.js} +2 -2
- package/dist/calcite/DNAWDCX4.js.LEGAL.txt +3 -0
- package/dist/calcite/{QPYRSVRJ.js → DQVKIEUO.js} +2 -2
- package/dist/calcite/DQVKIEUO.js.LEGAL.txt +3 -0
- package/dist/calcite/{EGH26J7D.js → DQY7TZDW.js} +2 -2
- package/dist/calcite/DQY7TZDW.js.LEGAL.txt +0 -0
- package/dist/calcite/{YSVSRIBF.js → E4FVW25P.js} +2 -2
- package/dist/calcite/E4FVW25P.js.LEGAL.txt +0 -0
- package/dist/calcite/EC2A5LWW.js +4 -0
- package/dist/calcite/EC2A5LWW.js.LEGAL.txt +3 -0
- package/dist/calcite/{NPUQUO6S.js → EGLHBUBB.js} +2 -2
- package/dist/calcite/EGLHBUBB.js.LEGAL.txt +0 -0
- package/dist/calcite/EWHM354D.js +4 -0
- package/dist/calcite/EWHM354D.js.LEGAL.txt +3 -0
- package/dist/calcite/{WA7Z5J33.js → EYTOGRGG.js} +2 -2
- package/dist/calcite/EYTOGRGG.js.LEGAL.txt +3 -0
- package/dist/calcite/{J3ZGQL2O.js → F3BKQCFR.js} +2 -2
- package/dist/calcite/F3BKQCFR.js.LEGAL.txt +3 -0
- package/dist/calcite/{RRF77IRW.js → F7QRQOKT.js} +2 -2
- package/dist/calcite/F7QRQOKT.js.LEGAL.txt +3 -0
- package/dist/calcite/{62RKNF4U.js → FO6GPVME.js} +2 -2
- package/dist/calcite/FO6GPVME.js.LEGAL.txt +0 -0
- package/dist/calcite/{A3AG6NDZ.js → FOYAHFLZ.js} +2 -2
- package/dist/calcite/FOYAHFLZ.js.LEGAL.txt +3 -0
- package/dist/calcite/FXL23RPK.js +4 -0
- package/dist/calcite/FXL23RPK.js.LEGAL.txt +3 -0
- package/dist/calcite/{DUIUWAGR.js → FZXJUGTS.js} +2 -2
- package/dist/calcite/FZXJUGTS.js.LEGAL.txt +0 -0
- package/dist/calcite/G5W3VHP7.js +4 -0
- package/dist/calcite/G5W3VHP7.js.LEGAL.txt +3 -0
- package/dist/calcite/{F4RC4FLJ.js → G6VWLHP7.js} +1 -1
- package/dist/calcite/G6VWLHP7.js.LEGAL.txt +3 -0
- package/dist/calcite/{JLWM5EH2.js → GAQLRTY2.js} +2 -2
- package/dist/calcite/GAQLRTY2.js.LEGAL.txt +0 -0
- package/dist/calcite/{6J3L5K3I.js → GDFKM563.js} +2 -2
- package/dist/calcite/GDFKM563.js.LEGAL.txt +3 -0
- package/dist/calcite/{SNRMP4C3.js → GJGBY4BN.js} +2 -2
- package/dist/calcite/GJGBY4BN.js.LEGAL.txt +0 -0
- package/dist/calcite/{UJMXOOOO.js → GRRJSWZA.js} +2 -2
- package/dist/calcite/GRRJSWZA.js.LEGAL.txt +7 -0
- package/dist/calcite/GSFT4BXQ.js +4 -0
- package/dist/calcite/GSFT4BXQ.js.LEGAL.txt +3 -0
- package/dist/calcite/{ECU6AUSL.js → GZD527DU.js} +2 -2
- package/dist/calcite/GZD527DU.js.LEGAL.txt +3 -0
- package/dist/calcite/{3GAF2ON7.js → HB37653W.js} +2 -2
- package/dist/calcite/HB37653W.js.LEGAL.txt +3 -0
- package/dist/calcite/{WV4IYZJL.js → HIR33KWD.js} +2 -2
- package/dist/calcite/HIR33KWD.js.LEGAL.txt +3 -0
- package/dist/calcite/{RYZ5LADD.js → HW3LOVBP.js} +1 -1
- package/dist/calcite/HW3LOVBP.js.LEGAL.txt +3 -0
- package/dist/calcite/{MBM7JQGZ.js → I3G36N6E.js} +2 -2
- package/dist/calcite/I3G36N6E.js.LEGAL.txt +3 -0
- package/dist/calcite/{5PG65LX5.js → ICXDROGD.js} +2 -2
- package/dist/calcite/ICXDROGD.js.LEGAL.txt +0 -0
- package/dist/calcite/{LJYQ7YEF.js → IE2SZ5GK.js} +1 -1
- package/dist/calcite/IE2SZ5GK.js.LEGAL.txt +3 -0
- package/dist/calcite/{I5EJQETB.js → IFQIMPWB.js} +1 -1
- package/dist/calcite/IFQIMPWB.js.LEGAL.txt +3 -0
- package/dist/calcite/{GTFWZZMZ.js → IGXAF27U.js} +2 -2
- package/dist/calcite/IGXAF27U.js.LEGAL.txt +3 -0
- package/dist/calcite/{G4SQJ2BU.js → IIXIMRRC.js} +2 -2
- package/dist/calcite/IIXIMRRC.js.LEGAL.txt +3 -0
- package/dist/calcite/{GJFTFWZP.js → IOKGLQ6T.js} +2 -2
- package/dist/calcite/IOKGLQ6T.js.LEGAL.txt +3 -0
- package/dist/calcite/{UVTK5PYX.js → IT4FGELL.js} +2 -2
- package/dist/calcite/IT4FGELL.js.LEGAL.txt +0 -0
- package/dist/calcite/{UM3SSG7X.js → J4MFJL3R.js} +2 -2
- package/dist/calcite/J4MFJL3R.js.LEGAL.txt +3 -0
- package/dist/calcite/{7PJPJUDE.js → J5JX7R7L.js} +2 -2
- package/dist/calcite/J5JX7R7L.js.LEGAL.txt +3 -0
- package/dist/calcite/{QIKXUVMU.js → J5TMQX7D.js} +2 -2
- package/dist/calcite/J5TMQX7D.js.LEGAL.txt +3 -0
- package/dist/calcite/{BBBQCSKO.js → J7KH7EV3.js} +2 -2
- package/dist/calcite/J7KH7EV3.js.LEGAL.txt +3 -0
- package/dist/calcite/{3Z64LPE6.js → JAJHOBEL.js} +2 -2
- package/dist/calcite/JAJHOBEL.js.LEGAL.txt +0 -0
- package/dist/calcite/JNRIKUPS.js +4 -0
- package/dist/calcite/JNRIKUPS.js.LEGAL.txt +3 -0
- package/dist/calcite/JSYGJQXS.js +22 -0
- package/dist/calcite/JSYGJQXS.js.LEGAL.txt +3 -0
- package/dist/calcite/{IUMIOARX.js → K5N6J54W.js} +2 -2
- package/dist/calcite/K5N6J54W.js.LEGAL.txt +3 -0
- package/dist/calcite/{IHHUX2DG.js → K7Z6SFKG.js} +2 -2
- package/dist/calcite/K7Z6SFKG.js.LEGAL.txt +3 -0
- package/dist/calcite/KAOBRO5A.js +4 -0
- package/dist/calcite/KAOBRO5A.js.LEGAL.txt +3 -0
- package/dist/calcite/{PVGIKMC6.js → KV7CJ25M.js} +2 -2
- package/dist/calcite/KV7CJ25M.js.LEGAL.txt +3 -0
- package/dist/calcite/{2IUWBVSH.js → KWKSJ45G.js} +2 -2
- package/dist/calcite/KWKSJ45G.js.LEGAL.txt +0 -0
- package/dist/calcite/{MIO3XQOU.js → KZPHFBDS.js} +2 -2
- package/dist/calcite/KZPHFBDS.js.LEGAL.txt +0 -0
- package/dist/calcite/{HESUOUWV.js → L7JHWWQU.js} +2 -2
- package/dist/calcite/L7JHWWQU.js.LEGAL.txt +0 -0
- package/dist/calcite/{O7FHNUFP.js → LEGLCCYN.js} +2 -2
- package/dist/calcite/LEGLCCYN.js.LEGAL.txt +3 -0
- package/dist/calcite/{KWU5J6IZ.js → LOLCQBHI.js} +2 -2
- package/dist/calcite/LOLCQBHI.js.LEGAL.txt +3 -0
- package/dist/calcite/{FJXJA3SU.js → LOR7P76Y.js} +2 -2
- package/dist/calcite/LOR7P76Y.js.LEGAL.txt +0 -0
- package/dist/calcite/{UMZ5PXHW.js → LRVBNXT5.js} +2 -2
- package/dist/calcite/LRVBNXT5.js.LEGAL.txt +0 -0
- package/dist/calcite/{OKB553SG.js → LVPZFVWV.js} +1 -1
- package/dist/calcite/LVPZFVWV.js.LEGAL.txt +3 -0
- package/dist/calcite/{3IWZ3FWM.js → LWW5LQLM.js} +2 -2
- package/dist/calcite/LWW5LQLM.js.LEGAL.txt +3 -0
- package/dist/calcite/LXXCBZUY.js +4 -0
- package/dist/calcite/LXXCBZUY.js.LEGAL.txt +3 -0
- package/dist/calcite/{47DJO7NW.js → M7A2EPAV.js} +2 -2
- package/dist/calcite/M7A2EPAV.js.LEGAL.txt +0 -0
- package/dist/calcite/MCUUWNFI.js +4 -0
- package/dist/calcite/MCUUWNFI.js.LEGAL.txt +3 -0
- package/dist/calcite/{KU67I5IM.js → MDZGWTTK.js} +2 -2
- package/dist/calcite/MDZGWTTK.js.LEGAL.txt +3 -0
- package/dist/calcite/{5ULYCAHU.js → MOBKENMZ.js} +2 -2
- package/dist/calcite/MOBKENMZ.js.LEGAL.txt +3 -0
- package/dist/calcite/{OSSBFCBP.js → MP6QY3IH.js} +2 -2
- package/dist/calcite/MP6QY3IH.js.LEGAL.txt +0 -0
- package/dist/calcite/{7YI244VC.js → MSJ7RJT3.js} +2 -2
- package/dist/calcite/MSJ7RJT3.js.LEGAL.txt +3 -0
- package/dist/calcite/{7N53EZMV.js → MWC5UPIT.js} +2 -2
- package/dist/calcite/MWC5UPIT.js.LEGAL.txt +3 -0
- package/dist/calcite/{MVUQGW3J.js → MXFJMSPF.js} +1 -1
- package/dist/calcite/MXFJMSPF.js.LEGAL.txt +3 -0
- package/dist/calcite/{H7MG5ZSX.js → MYQSVNPM.js} +2 -2
- package/dist/calcite/MYQSVNPM.js.LEGAL.txt +3 -0
- package/dist/calcite/{7XW5WCCR.js → N25GXLGN.js} +2 -2
- package/dist/calcite/N25GXLGN.js.LEGAL.txt +3 -0
- package/dist/calcite/{QPZ5YFZ7.js → NA2W6X2V.js} +2 -2
- package/dist/calcite/NA2W6X2V.js.LEGAL.txt +0 -0
- package/dist/calcite/NA3AU2Q7.js +4 -0
- package/dist/calcite/NA3AU2Q7.js.LEGAL.txt +3 -0
- package/dist/calcite/NIWKQQ2N.js +4 -0
- package/dist/calcite/NIWKQQ2N.js.LEGAL.txt +3 -0
- package/dist/calcite/{DW2A4EEM.js → NJDCAO5O.js} +2 -2
- package/dist/calcite/NJDCAO5O.js.LEGAL.txt +3 -0
- package/dist/calcite/{VJBW5K3N.js → NK3CHKCE.js} +2 -2
- package/dist/calcite/NK3CHKCE.js.LEGAL.txt +3 -0
- package/dist/calcite/{SZTB34HS.js → NQ43X6SL.js} +2 -2
- package/dist/calcite/NQ43X6SL.js.LEGAL.txt +3 -0
- package/dist/calcite/{NAGGLQSA.js → NRQUX53E.js} +2 -2
- package/dist/calcite/NRQUX53E.js.LEGAL.txt +0 -0
- package/dist/calcite/NSEZSNTL.js +4 -0
- package/dist/calcite/NSEZSNTL.js.LEGAL.txt +3 -0
- package/dist/calcite/{N7AM6NHK.js → OBBZMME7.js} +2 -2
- package/dist/calcite/OBBZMME7.js.LEGAL.txt +0 -0
- package/dist/calcite/{NYA6VVUS.js → OCJ4OSK6.js} +2 -2
- package/dist/calcite/OCJ4OSK6.js.LEGAL.txt +3 -0
- package/dist/calcite/{4IM35NBG.js → ODGF4PIW.js} +2 -2
- package/dist/calcite/ODGF4PIW.js.LEGAL.txt +3 -0
- package/dist/calcite/{DGU5GJCL.js → OJLMY4MJ.js} +2 -2
- package/dist/calcite/OJLMY4MJ.js.LEGAL.txt +0 -0
- package/dist/calcite/{FBCPCSCV.js → OL3TX2PD.js} +2 -2
- package/dist/calcite/OL3TX2PD.js.LEGAL.txt +0 -0
- package/dist/calcite/{N43NIVNB.js → OPCKC3UL.js} +1 -1
- package/dist/calcite/OPCKC3UL.js.LEGAL.txt +3 -0
- package/dist/calcite/{G3WCUJR6.js → OPMDNR2U.js} +2 -2
- package/dist/calcite/OPMDNR2U.js.LEGAL.txt +0 -0
- package/dist/calcite/{Q6H2S3ZW.js → OY4GIAOE.js} +2 -2
- package/dist/calcite/OY4GIAOE.js.LEGAL.txt +0 -0
- package/dist/calcite/{3L77LBB5.js → P6UD4KME.js} +2 -2
- package/dist/calcite/P6UD4KME.js.LEGAL.txt +3 -0
- package/dist/calcite/{S3YKWIS4.js → PAUWPKYW.js} +2 -2
- package/dist/calcite/PAUWPKYW.js.LEGAL.txt +0 -0
- package/dist/calcite/{FU5IZK5J.js → PCWSMIKU.js} +2 -2
- package/dist/calcite/PCWSMIKU.js.LEGAL.txt +0 -0
- package/dist/calcite/{XH3GJRKF.js → PEFMBNBQ.js} +2 -2
- package/dist/calcite/PEFMBNBQ.js.LEGAL.txt +3 -0
- package/dist/calcite/{O6QM3LYD.js → PH42JTMN.js} +2 -2
- package/dist/calcite/PH42JTMN.js.LEGAL.txt +0 -0
- package/dist/calcite/PN2I4UCY.js +4 -0
- package/dist/calcite/PN2I4UCY.js.LEGAL.txt +3 -0
- package/dist/calcite/{Q2NWWECO.js → POBCZWSC.js} +2 -2
- package/dist/calcite/POBCZWSC.js.LEGAL.txt +3 -0
- package/dist/calcite/{LK37K2FJ.js → PWYHPWQ3.js} +2 -2
- package/dist/calcite/PWYHPWQ3.js.LEGAL.txt +3 -0
- package/dist/calcite/QGCEBY5H.js +5 -0
- package/dist/calcite/QGCEBY5H.js.LEGAL.txt +17 -0
- package/dist/calcite/QGKVQGCB.js +4 -0
- package/dist/calcite/QGKVQGCB.js.LEGAL.txt +3 -0
- package/dist/calcite/{UV7MTJVD.js → QNOOEKCM.js} +2 -2
- package/dist/calcite/QNOOEKCM.js.LEGAL.txt +0 -0
- package/dist/calcite/{7JUQYJ2U.js → QSJVHVHJ.js} +1 -1
- package/dist/calcite/QSJVHVHJ.js.LEGAL.txt +3 -0
- package/dist/calcite/{RZ7Z4UQT.js → RBAV4DGF.js} +2 -2
- package/dist/calcite/RBAV4DGF.js.LEGAL.txt +3 -0
- package/dist/calcite/{T4JCSUPW.js → RCFBJGNR.js} +1 -1
- package/dist/calcite/RCFBJGNR.js.LEGAL.txt +12 -0
- package/dist/calcite/{Y7WL3T54.js → REXFZQLY.js} +2 -2
- package/dist/calcite/REXFZQLY.js.LEGAL.txt +3 -0
- package/dist/calcite/{ISTHCGLY.js → RMHVKKLY.js} +2 -2
- package/dist/calcite/RMHVKKLY.js.LEGAL.txt +0 -0
- package/dist/calcite/{GPWC5YXI.js → RMTHIH7I.js} +2 -2
- package/dist/calcite/RMTHIH7I.js.LEGAL.txt +3 -0
- package/dist/calcite/{EPUU3JZP.js → RNFI6BLN.js} +2 -2
- package/dist/calcite/RNFI6BLN.js.LEGAL.txt +3 -0
- package/dist/calcite/{6TD33A6S.js → RSDPHAIG.js} +2 -2
- package/dist/calcite/RSDPHAIG.js.LEGAL.txt +0 -0
- package/dist/calcite/RSFZF5Q6.js +4 -0
- package/dist/calcite/RSFZF5Q6.js.LEGAL.txt +3 -0
- package/dist/calcite/{GBSTK7NU.js → RU4DPZGC.js} +2 -2
- package/dist/calcite/RU4DPZGC.js.LEGAL.txt +3 -0
- package/dist/calcite/{WEPMLYVL.js → RVKGKVXB.js} +2 -2
- package/dist/calcite/RVKGKVXB.js.LEGAL.txt +145 -0
- package/dist/calcite/{PP7NIM25.js → SJBMLGGJ.js} +1 -1
- package/dist/calcite/SJBMLGGJ.js.LEGAL.txt +3 -0
- package/dist/calcite/SMBP4FJ3.js +4 -0
- package/dist/calcite/SMBP4FJ3.js.LEGAL.txt +3 -0
- package/dist/calcite/{JMIPTLSC.js → SSG42PTH.js} +2 -2
- package/dist/calcite/SSG42PTH.js.LEGAL.txt +3 -0
- package/dist/calcite/{5IYQSE3U.js → SWQEVS62.js} +2 -2
- package/dist/calcite/SWQEVS62.js.LEGAL.txt +3 -0
- package/dist/calcite/{UL7CAAQC.js → TBMOGYD4.js} +2 -2
- package/dist/calcite/TBMOGYD4.js.LEGAL.txt +3 -0
- package/dist/calcite/{MHCEHCV7.js → TCYYSB7C.js} +2 -2
- package/dist/calcite/TCYYSB7C.js.LEGAL.txt +3 -0
- package/dist/calcite/TODRXYF3.js +4 -0
- package/dist/calcite/TODRXYF3.js.LEGAL.txt +3 -0
- package/dist/calcite/{CZELZJVS.js → TXNXNB7J.js} +2 -2
- package/dist/calcite/TXNXNB7J.js.LEGAL.txt +0 -0
- package/dist/calcite/{U2JB6WPH.js → TYYLWS3I.js} +2 -2
- package/dist/calcite/TYYLWS3I.js.LEGAL.txt +3 -0
- package/dist/calcite/{RUAB2JC6.js → TZTQLC5Z.js} +2 -2
- package/dist/calcite/TZTQLC5Z.js.LEGAL.txt +3 -0
- package/dist/calcite/{YIYHMBLF.js → U5XPBE5Q.js} +2 -2
- package/dist/calcite/U5XPBE5Q.js.LEGAL.txt +3 -0
- package/dist/calcite/{MSPYG5PM.js → U6NLVSEM.js} +2 -2
- package/dist/calcite/U6NLVSEM.js.LEGAL.txt +3 -0
- package/dist/calcite/{XJGQLAOH.js → UB5PVPPO.js} +2 -2
- package/dist/calcite/UB5PVPPO.js.LEGAL.txt +0 -0
- package/dist/calcite/UHUS7NOK.js +4 -0
- package/dist/calcite/UHUS7NOK.js.LEGAL.txt +3 -0
- package/dist/calcite/{GXCHS4UG.js → USUWNW62.js} +2 -2
- package/dist/calcite/USUWNW62.js.LEGAL.txt +3 -0
- package/dist/calcite/{22ILXJRI.js → UVGOKSNQ.js} +2 -2
- package/dist/calcite/UVGOKSNQ.js.LEGAL.txt +0 -0
- package/dist/calcite/VCPI7TEF.js +4 -0
- package/dist/calcite/VCPI7TEF.js.LEGAL.txt +3 -0
- package/dist/calcite/{6URO2GHF.js → VI6KJ7PM.js} +2 -2
- package/dist/calcite/VI6KJ7PM.js.LEGAL.txt +0 -0
- package/dist/calcite/{HKOGFPLF.js → VLPPKIWA.js} +2 -2
- package/dist/calcite/VLPPKIWA.js.LEGAL.txt +3 -0
- package/dist/calcite/{F5KV6UPN.js → VPN7B4OH.js} +2 -2
- package/dist/calcite/VPN7B4OH.js.LEGAL.txt +3 -0
- package/dist/calcite/VRSKVGZC.js +28 -0
- package/dist/calcite/VRSKVGZC.js.LEGAL.txt +3 -0
- package/dist/calcite/{KLVFSBLG.js → VTY5A26J.js} +2 -2
- package/dist/calcite/VTY5A26J.js.LEGAL.txt +0 -0
- package/dist/calcite/{FQERI4AE.js → VZJSNMDA.js} +2 -2
- package/dist/calcite/VZJSNMDA.js.LEGAL.txt +3 -0
- package/dist/calcite/{I37T5J7E.js → W4DL4RBZ.js} +2 -2
- package/dist/calcite/W4DL4RBZ.js.LEGAL.txt +0 -0
- package/dist/calcite/{OJKLA2EW.js → W4TTSBQB.js} +2 -2
- package/dist/calcite/W4TTSBQB.js.LEGAL.txt +3 -0
- package/dist/calcite/{JQWRR4LE.js → WB6UNROK.js} +2 -2
- package/dist/calcite/WB6UNROK.js.LEGAL.txt +3 -0
- package/dist/calcite/{GV5O5IVI.js → WBJ5QP7F.js} +2 -2
- package/dist/calcite/WBJ5QP7F.js.LEGAL.txt +0 -0
- package/dist/calcite/{GBTSH2CT.js → WNHD323H.js} +2 -2
- package/dist/calcite/WNHD323H.js.LEGAL.txt +3 -0
- package/dist/calcite/{4KPGNAUA.js → WVCHWLRP.js} +2 -2
- package/dist/calcite/WVCHWLRP.js.LEGAL.txt +3 -0
- package/dist/calcite/{Y2PEC4XL.js → WWEW4VFC.js} +2 -2
- package/dist/calcite/WWEW4VFC.js.LEGAL.txt +0 -0
- package/dist/calcite/{VGRTUKQY.js → X2OECYAW.js} +2 -2
- package/dist/calcite/X2OECYAW.js.LEGAL.txt +0 -0
- package/dist/calcite/{QBBEUVHN.js → X6KQ3X4A.js} +2 -2
- package/dist/calcite/X6KQ3X4A.js.LEGAL.txt +3 -0
- package/dist/calcite/{B4SQYHZC.js → XCCQRLYJ.js} +2 -2
- package/dist/calcite/XCCQRLYJ.js.LEGAL.txt +3 -0
- package/dist/calcite/{6VA7JMOH.js → XUQDSK6Y.js} +2 -2
- package/dist/calcite/XUQDSK6Y.js.LEGAL.txt +3 -0
- package/dist/calcite/{2GSCYD6X.js → XY257SIR.js} +1 -1
- package/dist/calcite/XY257SIR.js.LEGAL.txt +3 -0
- package/dist/calcite/{DGI6QFEN.js → Y5JQOP6X.js} +2 -2
- package/dist/calcite/Y5JQOP6X.js.LEGAL.txt +0 -0
- package/dist/calcite/{2NNCGDMP.js → Y6FRJEJV.js} +2 -2
- package/dist/calcite/Y6FRJEJV.js.LEGAL.txt +3 -0
- package/dist/calcite/{RONBAFHE.js → YBYQ3GKP.js} +2 -2
- package/dist/calcite/YBYQ3GKP.js.LEGAL.txt +3 -0
- package/dist/calcite/{HCYI7TNJ.js → YFME6UMD.js} +2 -2
- package/dist/calcite/YFME6UMD.js.LEGAL.txt +3 -0
- package/dist/calcite/{35CFSZ6E.js → YKR2VURR.js} +2 -2
- package/dist/calcite/YKR2VURR.js.LEGAL.txt +3 -0
- package/dist/calcite/{C5TZN7YR.js → YR466TFS.js} +2 -2
- package/dist/calcite/YR466TFS.js.LEGAL.txt +3 -0
- package/dist/calcite/{ZEPIII5R.js → YUNZ4HFJ.js} +2 -2
- package/dist/calcite/YUNZ4HFJ.js.LEGAL.txt +3 -0
- package/dist/calcite/{WFXWF2GB.js → YWP2SZHD.js} +2 -2
- package/dist/calcite/YWP2SZHD.js.LEGAL.txt +3 -0
- package/dist/calcite/{KQSG5MVB.js → ZAYDAC36.js} +2 -2
- package/dist/calcite/ZAYDAC36.js.LEGAL.txt +8 -0
- package/dist/calcite/ZCDCZCEZ.js +4 -0
- package/dist/calcite/ZCDCZCEZ.js.LEGAL.txt +3 -0
- package/dist/calcite/{R7YGZNN6.js → ZF3SUF2Y.js} +1 -1
- package/dist/calcite/ZF3SUF2Y.js.LEGAL.txt +3 -0
- package/dist/calcite/{WFY6B26D.js → ZMFRTODZ.js} +2 -2
- package/dist/calcite/ZMFRTODZ.js.LEGAL.txt +0 -0
- package/dist/calcite/{VO4WR5RZ.js → ZQLKRBPG.js} +2 -2
- package/dist/calcite/ZQLKRBPG.js.LEGAL.txt +3 -0
- package/dist/calcite/{F5GWHXD6.js → ZQTX3PGK.js} +2 -2
- package/dist/calcite/ZQTX3PGK.js.LEGAL.txt +3 -0
- package/dist/calcite/ZUTY3QJN.js +4 -0
- package/dist/calcite/ZUTY3QJN.js.LEGAL.txt +3 -0
- package/dist/calcite/assets/icon/browserJoin16.json +1 -0
- package/dist/calcite/assets/icon/browserJoin24.json +1 -0
- package/dist/calcite/assets/icon/browserJoin32.json +1 -0
- package/dist/calcite/assets/icon/browserPlus16.json +1 -0
- package/dist/calcite/assets/icon/browserPlus24.json +1 -0
- package/dist/calcite/assets/icon/browserPlus32.json +1 -0
- package/dist/calcite/assets/icon/check16.json +1 -1
- package/dist/calcite/assets/icon/check24.json +1 -1
- package/dist/calcite/assets/icon/check32.json +1 -1
- package/dist/calcite/assets/icon/language216.json +1 -0
- package/dist/calcite/assets/icon/language224.json +1 -0
- package/dist/calcite/assets/icon/language232.json +1 -0
- package/dist/calcite/calcite.css +1 -1
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/calcite/calcite.esm.js.LEGAL.txt +3 -0
- package/dist/chunks/ExpandToggle.js +3 -3
- package/dist/chunks/FloatingArrow.js +3 -3
- package/dist/chunks/Heading.js +1 -1
- package/dist/chunks/Validation.js +3 -3
- package/dist/chunks/array.js +1 -1
- package/dist/chunks/component.js +1 -1
- package/dist/chunks/core.js +1 -1
- package/dist/chunks/date.js +1 -1
- package/dist/chunks/dom.js +1 -1
- package/dist/chunks/dynamicClasses.js +1 -1
- package/dist/chunks/filter.js +1 -1
- package/dist/chunks/floating-ui.js +48 -56
- package/dist/chunks/form.js +1 -1
- 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 +212 -209
- package/dist/chunks/interactive.js +1 -1
- package/dist/chunks/key.js +1 -1
- package/dist/chunks/label.js +1 -1
- package/dist/chunks/locale.js +1 -1
- 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 +1 -1
- package/dist/chunks/resources4.js +1 -1
- package/dist/chunks/resources5.js +28 -28
- 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 +6 -6
- package/dist/chunks/sortableComponent.js +1 -1
- package/dist/chunks/text.js +1 -1
- package/dist/chunks/time.js +1 -1
- package/dist/chunks/useFocusTrap.js +44 -27
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/utils.js +11 -11
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/utils3.js +20 -16
- package/dist/chunks/utils4.js +101 -1037
- package/dist/components/calcite-accordion/customElement.js +1 -1
- package/dist/components/calcite-accordion-item/customElement.js +17 -17
- package/dist/components/calcite-action/customElement.js +21 -21
- package/dist/components/calcite-action-bar/customElement.js +1 -1
- package/dist/components/calcite-action-group/customElement.js +1 -1
- package/dist/components/calcite-action-menu/customElement.js +1 -1
- package/dist/components/calcite-action-pad/customElement.js +1 -1
- package/dist/components/calcite-alert/customElement.js +2 -2
- package/dist/components/calcite-autocomplete/customElement.js +7 -7
- package/dist/components/calcite-autocomplete-item/customElement.js +1 -1
- package/dist/components/calcite-autocomplete-item-group/customElement.js +1 -1
- package/dist/components/calcite-avatar/customElement.js +6 -6
- package/dist/components/calcite-block/customElement.d.ts +9 -2
- package/dist/components/calcite-block/customElement.js +43 -28
- package/dist/components/calcite-block/resources.d.ts +2 -2
- package/dist/components/calcite-block-group/customElement.d.ts +1 -1
- package/dist/components/calcite-block-group/customElement.js +1 -1
- package/dist/components/calcite-block-section/customElement.d.ts +9 -2
- package/dist/components/calcite-block-section/customElement.js +43 -27
- package/dist/components/calcite-block-section/resources.d.ts +2 -2
- package/dist/components/calcite-button/customElement.js +15 -15
- package/dist/components/calcite-card/customElement.js +1 -1
- package/dist/components/calcite-card-group/customElement.js +2 -2
- package/dist/components/calcite-carousel/customElement.js +2 -2
- package/dist/components/calcite-carousel-item/customElement.js +1 -1
- package/dist/components/calcite-checkbox/customElement.js +4 -4
- package/dist/components/calcite-chip/customElement.js +11 -11
- package/dist/components/calcite-chip-group/customElement.js +1 -1
- package/dist/components/calcite-color-picker/customElement.js +64 -63
- package/dist/components/calcite-color-picker/interfaces.d.ts +2 -2
- package/dist/components/calcite-color-picker/resources.d.ts +1 -2
- package/dist/components/calcite-color-picker/utils.d.ts +1 -1
- package/dist/components/calcite-color-picker-hex-input/customElement.d.ts +1 -1
- package/dist/components/calcite-color-picker-hex-input/customElement.js +27 -26
- package/dist/components/calcite-color-picker-swatch/customElement.js +10 -9
- package/dist/components/calcite-combobox/customElement.js +52 -53
- package/dist/components/calcite-combobox/resources.d.ts +4 -0
- package/dist/components/calcite-combobox-item/customElement.js +26 -31
- package/dist/components/calcite-combobox-item/resources.d.ts +2 -4
- package/dist/components/calcite-combobox-item-group/customElement.js +9 -9
- package/dist/components/calcite-date-picker/customElement.js +1 -1
- package/dist/components/calcite-date-picker-day/customElement.js +1 -1
- package/dist/components/calcite-date-picker-month/customElement.js +1 -1
- package/dist/components/calcite-date-picker-month-header/customElement.js +34 -28
- package/dist/components/calcite-dialog/customElement.js +2 -2
- package/dist/components/calcite-dropdown/customElement.d.ts +8 -0
- package/dist/components/calcite-dropdown/customElement.js +47 -43
- package/dist/components/calcite-dropdown-group/customElement.d.ts +6 -0
- package/dist/components/calcite-dropdown-group/customElement.js +4 -10
- package/dist/components/calcite-dropdown-item/customElement.js +1 -1
- package/dist/components/calcite-fab/customElement.js +1 -1
- package/dist/components/calcite-filter/customElement.js +20 -20
- package/dist/components/calcite-filter/resources.d.ts +0 -1
- package/dist/components/calcite-flow/customElement.js +1 -1
- package/dist/components/calcite-flow/types/index.d.ts +1 -0
- package/dist/components/calcite-flow-item/customElement.js +2 -2
- package/dist/components/calcite-graph/customElement.js +18 -18
- package/dist/components/calcite-handle/customElement.js +2 -2
- package/dist/components/calcite-icon/customElement.js +2 -2
- package/dist/components/calcite-inline-editable/customElement.js +6 -6
- package/dist/components/calcite-input/customElement.js +1 -1
- package/dist/components/calcite-input-date-picker/customElement.d.ts +1 -3
- package/dist/components/calcite-input-date-picker/customElement.js +92 -95
- package/dist/components/calcite-input-message/customElement.js +1 -1
- package/dist/components/calcite-input-number/customElement.js +1 -1
- package/dist/components/calcite-input-text/customElement.js +1 -1
- package/dist/components/calcite-input-time-picker/customElement.js +2 -2
- package/dist/components/calcite-input-time-zone/customElement.js +2 -2
- package/dist/components/calcite-label/customElement.js +1 -1
- package/dist/components/calcite-link/customElement.js +1 -1
- package/dist/components/calcite-list/customElement.d.ts +1 -1
- package/dist/components/calcite-list/customElement.js +16 -16
- package/dist/components/calcite-list-item/customElement.d.ts +9 -2
- package/dist/components/calcite-list-item/customElement.js +73 -57
- package/dist/components/calcite-list-item/resources.d.ts +24 -23
- package/dist/components/calcite-list-item/utils.d.ts +1 -1
- package/dist/components/calcite-list-item-group/customElement.js +1 -1
- package/dist/components/calcite-loader/customElement.js +3 -3
- package/dist/components/calcite-menu/customElement.js +1 -1
- package/dist/components/calcite-menu-item/customElement.js +5 -5
- package/dist/components/calcite-meter/customElement.js +1 -1
- package/dist/components/calcite-modal/customElement.js +2 -2
- package/dist/components/calcite-navigation/customElement.js +1 -1
- package/dist/components/calcite-navigation-logo/customElement.js +1 -1
- package/dist/components/calcite-navigation-user/customElement.js +1 -1
- package/dist/components/calcite-notice/customElement.js +2 -2
- package/dist/components/calcite-option/customElement.js +1 -1
- package/dist/components/calcite-option-group/customElement.js +1 -1
- package/dist/components/calcite-pagination/customElement.js +2 -2
- package/dist/components/calcite-panel/customElement.js +26 -26
- package/dist/components/calcite-popover/customElement.js +16 -16
- package/dist/components/calcite-progress/customElement.js +1 -1
- package/dist/components/calcite-radio-button/customElement.js +3 -3
- package/dist/components/calcite-radio-button-group/customElement.js +1 -1
- package/dist/components/calcite-rating/customElement.js +9 -9
- package/dist/components/calcite-scrim/customElement.js +1 -1
- package/dist/components/calcite-segmented-control/customElement.js +1 -1
- package/dist/components/calcite-segmented-control-item/customElement.js +2 -2
- package/dist/components/calcite-select/customElement.js +1 -1
- package/dist/components/calcite-sheet/customElement.js +2 -2
- package/dist/components/calcite-shell/customElement.js +1 -1
- package/dist/components/calcite-shell-center-row/customElement.js +1 -1
- package/dist/components/calcite-shell-panel/customElement.js +1 -1
- package/dist/components/calcite-slider/customElement.js +1 -1
- package/dist/components/calcite-sort-handle/customElement.js +2 -2
- package/dist/components/calcite-sortable-list/customElement.d.ts +1 -1
- package/dist/components/calcite-sortable-list/customElement.js +1 -1
- package/dist/components/calcite-split-button/customElement.js +1 -1
- package/dist/components/calcite-stack/customElement.js +1 -1
- package/dist/components/calcite-stepper/customElement.js +4 -4
- package/dist/components/calcite-stepper-item/customElement.js +2 -2
- package/dist/components/calcite-switch/customElement.js +1 -1
- package/dist/components/calcite-tab/customElement.js +1 -1
- package/dist/components/calcite-tab-nav/customElement.js +57 -52
- package/dist/components/calcite-tab-title/customElement.js +1 -1
- package/dist/components/calcite-table/customElement.js +2 -2
- package/dist/components/calcite-table-cell/customElement.js +4 -4
- package/dist/components/calcite-table-header/customElement.js +2 -2
- package/dist/components/calcite-table-row/customElement.js +1 -1
- package/dist/components/calcite-tabs/customElement.js +1 -1
- package/dist/components/calcite-text-area/customElement.d.ts +1 -1
- package/dist/components/calcite-text-area/customElement.js +35 -35
- package/dist/components/calcite-text-area/resources.d.ts +4 -0
- package/dist/components/calcite-tile/customElement.js +1 -1
- package/dist/components/calcite-tile-group/customElement.js +1 -1
- package/dist/components/calcite-tile-select/customElement.js +1 -1
- package/dist/components/calcite-tile-select-group/customElement.js +1 -1
- package/dist/components/calcite-time-picker/customElement.js +1 -1
- package/dist/components/calcite-tip/customElement.js +1 -1
- package/dist/components/calcite-tip-group/customElement.js +1 -1
- package/dist/components/calcite-tip-manager/customElement.js +1 -1
- package/dist/components/calcite-tooltip/TooltipManager.d.ts +2 -0
- package/dist/components/calcite-tooltip/customElement.js +42 -40
- package/dist/components/calcite-tooltip/resources.d.ts +2 -1
- package/dist/components/calcite-tree/customElement.js +1 -1
- package/dist/components/calcite-tree-item/customElement.js +1 -1
- package/dist/controllers/useFocusTrap.d.ts +2 -6
- package/dist/custom-theme/accordion-item.d.ts +2 -6
- package/dist/custom-theme/accordion.d.ts +5 -2
- package/dist/custom-theme/chips.d.ts +3 -3
- package/dist/custom-theme/combobox-item.d.ts +11 -0
- package/dist/custom-theme/combobox.d.ts +19 -0
- package/dist/custom-theme/panel.d.ts +19 -0
- package/dist/custom-theme/rating.d.ts +1 -0
- package/dist/custom-theme/shell-panel.d.ts +13 -0
- package/dist/docs/api.json +342 -84
- package/dist/docs/docs.json +312 -91
- package/dist/docs/supported-browsers.json +1 -1
- package/dist/docs/vscode.css-custom-data.json +136 -72
- package/dist/docs/vscode.html-custom-data.json +44 -14
- package/dist/docs/web-types.json +234 -92
- package/dist/extras/vscode-data.json +44 -14
- package/dist/index.js +1 -1
- package/dist/loader.js +6 -6
- package/dist/types/lumina.d.ts +5 -5
- package/dist/types/preact.d.ts +5 -5
- package/dist/types/react.d.ts +5 -5
- package/dist/types/stencil.d.ts +5 -5
- package/package.json +13 -12
- package/dist/calcite/2RLKD47S.js +0 -4
- package/dist/calcite/2ZKWF7VY.js +0 -4
- package/dist/calcite/35W4ZCPE.js +0 -4
- package/dist/calcite/3XCIKRKA.js +0 -4
- package/dist/calcite/4QDKIEKA.js +0 -4
- package/dist/calcite/5P7XGUAW.js +0 -28
- package/dist/calcite/5SYTGEYX.js +0 -22
- package/dist/calcite/5XPEXSG6.js +0 -4
- package/dist/calcite/6S3LP4GS.js +0 -4
- package/dist/calcite/6YXLCOSR.js +0 -4
- package/dist/calcite/7ITTXIZJ.js +0 -4
- package/dist/calcite/AQNZIFSK.js +0 -4
- package/dist/calcite/CX3SSBHB.js +0 -4
- package/dist/calcite/DTZLLSH7.js +0 -4
- package/dist/calcite/GMFQ6OK6.js +0 -4
- package/dist/calcite/GR4KCR7V.js +0 -4
- package/dist/calcite/IA2QERZD.js +0 -4
- package/dist/calcite/IHAGMHOF.js +0 -4
- package/dist/calcite/IMS2IVZ4.js +0 -4
- package/dist/calcite/ISUZ4V7G.js +0 -4
- package/dist/calcite/J6GZYCT5.js +0 -4
- package/dist/calcite/JQ5CVJ54.js +0 -4
- package/dist/calcite/K34PQCGB.js +0 -5
- package/dist/calcite/LI77ROHF.js +0 -4
- package/dist/calcite/OCPIXSVP.js +0 -4
- package/dist/calcite/P4DYKRFK.js +0 -4
- package/dist/calcite/QC364QPO.js +0 -4
- package/dist/calcite/R2TH37UY.js +0 -4
- package/dist/calcite/R7YSD5AY.js +0 -4
- package/dist/calcite/SSTI6ZI4.js +0 -4
- package/dist/calcite/TERZZYTP.js +0 -4
- package/dist/calcite/UZGYPEX6.js +0 -4
- package/dist/calcite/VREJLXO6.js +0 -4
- package/dist/calcite/VSRD3AEV.js +0 -4
- package/dist/calcite/WH6AP2IZ.js +0 -4
- package/dist/calcite/XJWBEDU3.js +0 -4
- package/dist/calcite/XSLZFL7O.js +0 -4
- package/dist/calcite/Y33Q75AG.js +0 -4
- package/dist/calcite/YDDWY4EV.js +0 -4
- package/dist/chunks/_commonjsHelpers.js +0 -11
- package/dist/chunks/focusTrapComponent.js +0 -34
- package/dist/custom-theme/calcite-shell-panel.d.ts +0 -13
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v3.1.0 */
|
|
4
|
+
import{e as z,f as I,g as L}from"./MXFJMSPF.js";var M={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};var R=Object.create(null);for(let e in M)Object.hasOwn(M,e)&&(R[M[e]]=e);var m={to:{},get:{}};m.get=function(e){let t=e.slice(0,3).toLowerCase(),n,r;switch(t){case"hsl":{n=m.get.hsl(e),r="hsl";break}case"hwb":{n=m.get.hwb(e),r="hwb";break}default:{n=m.get.rgb(e),r="rgb";break}}return n?{model:r,value:n}:null};m.get.rgb=function(e){if(!e)return null;let t=/^#([a-f\d]{3,4})$/i,n=/^#([a-f\d]{6})([a-f\d]{2})?$/i,r=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,o=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,a=/^(\w+)$/,s=[0,0,0,1],l,i,u;if(l=e.match(n)){for(u=l[2],l=l[1],i=0;i<3;i++){let p=i*2;s[i]=Number.parseInt(l.slice(p,p+2),16)}u&&(s[3]=Number.parseInt(u,16)/255)}else if(l=e.match(t)){for(l=l[1],u=l[3],i=0;i<3;i++)s[i]=Number.parseInt(l[i]+l[i],16);u&&(s[3]=Number.parseInt(u+u,16)/255)}else if(l=e.match(r)){for(i=0;i<3;i++)s[i]=Number.parseInt(l[i+1],10);l[4]&&(s[3]=l[5]?Number.parseFloat(l[4])*.01:Number.parseFloat(l[4]))}else if(l=e.match(o)){for(i=0;i<3;i++)s[i]=Math.round(Number.parseFloat(l[i+1])*2.55);l[4]&&(s[3]=l[5]?Number.parseFloat(l[4])*.01:Number.parseFloat(l[4]))}else return(l=e.match(a))?l[1]==="transparent"?[0,0,0,0]:Object.hasOwn(M,l[1])?(s=M[l[1]],s[3]=1,s):null:null;for(i=0;i<3;i++)s[i]=S(s[i],0,255);return s[3]=S(s[3],0,1),s};m.get.hsl=function(e){if(!e)return null;let t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){let r=Number.parseFloat(n[4]),o=(Number.parseFloat(n[1])%360+360)%360,a=S(Number.parseFloat(n[2]),0,100),s=S(Number.parseFloat(n[3]),0,100),l=S(Number.isNaN(r)?1:r,0,1);return[o,a,s,l]}return null};m.get.hwb=function(e){if(!e)return null;let t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){let r=Number.parseFloat(n[4]),o=(Number.parseFloat(n[1])%360+360)%360,a=S(Number.parseFloat(n[2]),0,100),s=S(Number.parseFloat(n[3]),0,100),l=S(Number.isNaN(r)?1:r,0,1);return[o,a,s,l]}return null};m.to.hex=function(...e){return"#"+H(e[0])+H(e[1])+H(e[2])+(e[3]<1?H(Math.round(e[3]*255)):"")};m.to.rgb=function(...e){return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};m.to.rgb.percent=function(...e){let t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"};m.to.hsl=function(...e){return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};m.to.hwb=function(...e){let t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};m.to.keyword=function(...e){return R[e.slice(0,3)]};function S(e,t,n){return Math.min(Math.max(t,e),n)}function H(e){let t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var x=m;var _={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};var B={};for(let e of Object.keys(_))B[_[e]]=e;var c={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},k=c,v=(6/29)**3;for(let e of Object.keys(c)){if(!("channels"in c[e]))throw new Error("missing channels property: "+e);if(!("labels"in c[e]))throw new Error("missing channel labels property: "+e);if(c[e].labels.length!==c[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:n}=c[e];delete c[e].channels,delete c[e].labels,Object.defineProperty(c[e],"channels",{value:t}),Object.defineProperty(c[e],"labels",{value:n})}c.rgb.hsl=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o,l,i;switch(a){case o:{l=0;break}case t:{l=(n-r)/s;break}case n:{l=2+(r-t)/s;break}case r:{l=4+(t-n)/s;break}}l=Math.min(l*60,360),l<0&&(l+=360);let u=(o+a)/2;return a===o?i=0:u<=.5?i=s/(a+o):i=s/(2-a-o),[l,i*100,u*100]};c.rgb.hsv=function(e){let t,n,r,o,a,s=e[0]/255,l=e[1]/255,i=e[2]/255,u=Math.max(s,l,i),p=u-Math.min(s,l,i),w=function(K){return(u-K)/6/p+1/2};if(p===0)o=0,a=0;else{switch(a=p/u,t=w(s),n=w(l),r=w(i),u){case s:{o=r-n;break}case l:{o=1/3+t-r;break}case i:{o=2/3+n-t;break}}o<0?o+=1:o>1&&(o-=1)}return[o*360,a*100,u*100]};c.rgb.hwb=function(e){let t=e[0],n=e[1],r=e[2],o=c.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};c.rgb.cmyk=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function T(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}c.rgb.keyword=function(e){let t=B[e];if(t)return t;let n=Number.POSITIVE_INFINITY,r;for(let o of Object.keys(_)){let a=_[o],s=T(e,a);s<n&&(n=s,r=o)}return r};c.keyword.rgb=function(e){return _[e]};c.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;let o=t*.4124564+n*.3575761+r*.1804375,a=t*.2126729+n*.7151522+r*.072175,s=t*.0193339+n*.119192+r*.9503041;return[o*100,a*100,s*100]};c.rgb.lab=function(e){let t=c.rgb.xyz(e),n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>v?n**(1/3):7.787*n+16/116,r=r>v?r**(1/3):7.787*r+16/116,o=o>v?o**(1/3):7.787*o+16/116;let a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};c.hsl.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100,o,a;if(n===0)return a=r*255,[a,a,a];let s=r<.5?r*(1+n):r+n-r*n,l=2*r-s,i=[0,0,0];for(let u=0;u<3;u++)o=t+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?a=l+(s-l)*6*o:2*o<1?a=s:3*o<2?a=l+(s-l)*(2/3-o)*6:a=l,i[u]=a*255;return i};c.hsl.hsv=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,o=n,a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;let s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};c.hsv.rgb=function(e){let t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,s];case 1:return[l,r,s];case 2:return[s,r,i];case 3:return[s,l,r];case 4:return[i,s,r];case 5:return[r,s,l]}};c.hsv.hsl=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01),a,s;s=(2-n)*r;let l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};c.hwb.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100,o=n+r,a;o>1&&(n/=o,r/=o);let s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);let i=n+a*(l-n),u,p,w;switch(s){default:case 6:case 0:{u=l,p=i,w=n;break}case 1:{u=i,p=l,w=n;break}case 2:{u=n,p=l,w=i;break}case 3:{u=n,p=i,w=l;break}case 4:{u=i,p=n,w=l;break}case 5:{u=l,p=n,w=i;break}}return[u*255,p*255,w*255]};c.cmyk.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};c.xyz.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,o,a,s;return o=t*3.2404542+n*-1.5371385+r*-.4985314,a=t*-.969266+n*1.8760108+r*.041556,s=t*.0556434+n*-.2040259+r*1.0572252,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};c.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>v?t**(1/3):7.787*t+16/116,n=n>v?n**(1/3):7.787*n+16/116,r=r>v?r**(1/3):7.787*r+16/116;let o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};c.lab.xyz=function(e){let t=e[0],n=e[1],r=e[2],o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;let l=a**3,i=o**3,u=s**3;return a=l>v?l:(a-16/116)/7.787,o=i>v?i:(o-16/116)/7.787,s=u>v?u:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};c.lab.lch=function(e){let t=e[0],n=e[1],r=e[2],o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);let s=Math.sqrt(n*n+r*r);return[t,s,o]};c.lch.lab=function(e){let t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};c.rgb.ansi16=function(e,t=null){let[n,r,o]=e,a=t===null?c.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};c.hsv.ansi16=function(e){return c.rgb.ansi16(c.hsv.rgb(e),e[2])};c.rgb.ansi256=function(e){let t=e[0],n=e[1],r=e[2];return t>>4===n>>4&&n>>4===r>>4?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};c.ansi16.rgb=function(e){e=e[0];let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let n=(Math.trunc(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};c.ansi256.rgb=function(e){if(e=e[0],e>=232){let a=(e-232)*10+8;return[a,a,a]}e-=16;let t,n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};c.rgb.hex=function(e){let n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".slice(n.length)+n};c.hex.rgb=function(e){let t=e.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=[...n].map(l=>l+l).join(""));let r=Number.parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};c.rgb.hcg=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a,l,i=s<1?a/(1-s):0;return s<=0?l=0:o===t?l=(n-r)/s%6:o===n?l=2+(r-t)/s:l=4+(t-n)/s,l/=6,l%=1,[l*360,s*100,i*100]};c.hsl.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n),o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};c.hsv.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};c.hcg.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];let o=[0,0,0],a=t%1*6,s=a%1,l=1-s,i=0;switch(Math.floor(a)){case 0:{o[0]=1,o[1]=s,o[2]=0;break}case 1:{o[0]=l,o[1]=1,o[2]=0;break}case 2:{o[0]=0,o[1]=1,o[2]=s;break}case 3:{o[0]=0,o[1]=l,o[2]=1;break}case 4:{o[0]=s,o[1]=0,o[2]=1;break}default:o[0]=1,o[1]=0,o[2]=l}return i=(1-n)*r,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*255]};c.hcg.hsv=function(e){let t=e[1]/100,n=e[2]/100,r=t+n*(1-t),o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};c.hcg.hsl=function(e){let t=e[1]/100,r=e[2]/100*(1-t)+.5*t,o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};c.hcg.hwb=function(e){let t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};c.hwb.hcg=function(e){let t=e[1]/100,r=1-e[2]/100,o=r-t,a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};c.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};c.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};c.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};c.gray.hsl=function(e){return[0,0,e[0]]};c.gray.hsv=c.gray.hsl;c.gray.hwb=function(e){return[0,100,e[0]]};c.gray.cmyk=function(e){return[0,0,0,e[0]]};c.gray.lab=function(e){return[e[0],0,0]};c.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".slice(r.length)+r};c.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};function J(){let e={},t=Object.keys(k);for(let{length:n}=t,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function Y(e){let t=J(),n=[e];for(t[e].distance=0;n.length>0;){let r=n.pop(),o=Object.keys(k[r]);for(let{length:a}=o,s=0;s<a;s++){let l=o[s],i=t[l];i.distance===-1&&(i.distance=t[r].distance+1,i.parent=r,n.unshift(l))}}return t}function Q(e,t){return function(n){return t(e(n))}}function Z(e,t){let n=[t[e].parent,e],r=k[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)n.unshift(t[o].parent),r=Q(k[t[o].parent][o],r),o=t[o].parent;return r.conversion=n,r}function ee(e){let t=Y(e),n={},r=Object.keys(t);for(let{length:o}=r,a=0;a<o;a++){let s=r[a];t[s].parent!==null&&(n[s]=Z(s,t))}return n}var G=ee;var A={},te=Object.keys(k);function ne(e){let t=function(...n){let r=n[0];return r==null?r:(r.length>1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function re(e){let t=function(...n){let r=n[0];if(r==null)return r;r.length>1&&(n=r);let o=e(n);if(typeof o=="object")for(let{length:a}=o,s=0;s<a;s++)o[s]=Math.round(o[s]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}for(let e of te){A[e]={},Object.defineProperty(A[e],"channels",{value:k[e].channels}),Object.defineProperty(A[e],"labels",{value:k[e].labels});let t=G(e),n=Object.keys(t);for(let r of n){let o=t[r];A[e][r]=re(o),A[e][r].raw=ne(o)}}var y=A;var E=["keyword","gray","hex"],C={};for(let e of Object.keys(y))C[[...y[e].labels].sort().join("")]=e;var O={};function g(e,t){if(!(this instanceof g))return new g(e,t);if(t&&t in E&&(t=null),t&&!(t in y))throw new Error("Unknown model: "+t);let n,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof g)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){let o=x.get(e);if(o===null)throw new Error("Unable to parse color from string: "+e);this.model=o.model,r=y[this.model].channels,this.color=o.value.slice(0,r),this.valpha=typeof o.value[r]=="number"?o.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=y[this.model].channels;let o=Array.prototype.slice.call(e,0,r);this.color=$(o,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;let o=Object.keys(e);"alpha"in e&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);let a=o.sort().join("");if(!(a in C))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=C[a];let{labels:s}=y[this.model],l=[];for(n=0;n<s.length;n++)l.push(e[s[n]]);this.color=$(l)}if(O[this.model])for(r=y[this.model].channels,n=0;n<r;n++){let o=O[this.model][n];o&&(this.color[n]=o(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}g.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in x.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);let n=t.valpha===1?t.color:[...t.color,this.valpha];return x.to[t.model](...n)},percentString(e){let t=this.rgb().round(typeof e=="number"?e:1),n=t.valpha===1?t.color:[...t.color,this.valpha];return x.to.rgb.percent(...n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){let e={},{channels:t}=y[this.model],{labels:n}=y[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){let e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){let e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new g([...this.color.map(se(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new g([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:h("rgb",0,b(255)),green:h("rgb",1,b(255)),blue:h("rgb",2,b(255)),hue:h(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:h("hsl",1,b(100)),lightness:h("hsl",2,b(100)),saturationv:h("hsv",1,b(100)),value:h("hsv",2,b(100)),chroma:h("hcg",1,b(100)),gray:h("hcg",2,b(100)),white:h("hwb",1,b(100)),wblack:h("hwb",2,b(100)),cyan:h("cmyk",0,b(100)),magenta:h("cmyk",1,b(100)),yellow:h("cmyk",2,b(100)),black:h("cmyk",3,b(100)),x:h("xyz",0,b(95.047)),y:h("xyz",1,b(100)),z:h("xyz",2,b(108.833)),l:h("lab",0,b(100)),a:h("lab",1),b:h("lab",2),keyword(e){return e!==void 0?new g(e):y[this.model].keyword(this.color)},hex(e){return e!==void 0?new g(e):x.to.hex(...this.rgb().round().color)},hexa(e){if(e!==void 0)return new g(e);let t=this.rgb().round().color,n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),x.to.hex(...t)+n},rgbNumber(){let e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){let e=this.rgb().color,t=[];for(let[n,r]of e.entries()){let o=r/255;t[n]=o<=.04045?o/12.92:((o+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){let t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){let t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){let e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){let e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){let t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){let t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){let t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){let t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){let t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){let t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){let e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return g.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){let t=this.hsl(),n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);let n=e.rgb(),r=this.rgb(),o=t===void 0?.5:t,a=2*o-1,s=n.alpha()-r.alpha(),l=((a*s===-1?a:(a+s)/(1+a*s))+1)/2,i=1-l;return g.rgb(l*n.red()+i*r.red(),l*n.green()+i*r.green(),l*n.blue()+i*r.blue(),n.alpha()*o+r.alpha()*(1-o))}};for(let e of Object.keys(y)){if(E.includes(e))continue;let{channels:t}=y[e];g.prototype[e]=function(...n){return this.model===e?new g(this):n.length>0?new g(n,e):new g([...ae(y[this.model][e].raw(this.color)),this.valpha],e)},g[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=$(n,t)),new g(r,e)}}function oe(e,t){return Number(e.toFixed(t))}function se(e){return function(t){return oe(t,e)}}function h(e,t,n){e=Array.isArray(e)?e:[e];for(let r of e)(O[r]||=[])[t]=n;return e=e[0],function(r){let o;return r!==void 0?(n&&(r=n(r)),o=this[e](),o.color[t]=r,o):(o=this[e]().color[t],n&&(o=n(o)),o)}}function b(e){return function(t){return Math.max(0,Math.min(e,t))}}function ae(e){return Array.isArray(e)?e:[e]}function $(e,t){for(let n=0;n<t;n++)typeof e[n]!="number"&&(e[n]=0);return e}var j=g;var Oe={channel:"channel",channels:"channels",colorField:"color-field",colorFieldScope:"scope--color-field",colorMode:"color-mode",colorModeContainer:"color-mode-container",container:"container",control:"control",controlAndScope:"control-and-scope",controlSection:"control-section",deleteColor:"delete-color",header:"header",hexAndChannelsGroup:"hex-and-channels-group",hexOptions:"color-hex-options",hueScope:"scope--hue",hueSlider:"hue-slider",opacityScope:"scope--opacity",opacitySlider:"opacity-slider",preview:"preview",previewAndSliders:"preview-and-sliders",saveColor:"save-color",savedColor:"saved-color",savedColors:"saved-colors",savedColorsButtons:"saved-colors-buttons",savedColorsSection:"saved-colors-section",scope:"scope",section:"section",slider:"slider",sliders:"sliders",splitSection:"section--split"},$e=j("#007AC2"),qe="calcite-color-",ze={r:255,g:255,b:255},le={h:360,s:100,v:100},Ie=le.h-1,Le={min:0,max:100},ie={s:{gap:parseInt(z),slider:{height:12},thumb:{radius:7},preview:{size:20},minWidth:200},m:{gap:parseInt(I),slider:{height:12},thumb:{radius:7},preview:{size:24},minWidth:240},l:{gap:parseInt(L),slider:{height:12},thumb:{radius:7},preview:{size:32},minWidth:304}},Re=1,Be=/^[0-9A-F]$/i,ce=/^#[0-9A-F]{3}$/i,ue=/^#[0-9A-F]{6}$/i,he=/^#[0-9A-F]{4}$/i,fe=/^#[0-9A-F]{8}$/i,Ge=e=>Number((e*100).toFixed()),Ee=e=>Number((e/100).toFixed(2));function P(e,t=!1){return q(e,t)||de(e,t)}function W(e,t,n){return e?e.length===t&&n.test(e):!1}function q(e,t=!1){return W(e,t?5:4,t?he:ce)}function de(e,t=!1){return W(e,t?9:7,t?fe:ue)}function je(e,t=!1,n=!1){if(e=e.toLowerCase(),e.startsWith("#")||(e=`#${e}`),q(e,t))return V(X(e,t));if(t&&n&&P(e,!1)){let r=q(e,!1);return V(X(`${e}${r?"f":"ff"}`,!0))}return e}function Ve(e,t=!1){return t?e.hexa():e.hex()}function V(e){let{r:t,g:n,b:r}=e,o=N(t),a=N(n),s=N(r),l="a"in e?N(e.a*255):"";return`#${o}${a}${s}${l}`.toLowerCase()}function N(e){return e.toString(16).padStart(2,"0")}function Xe(e){let t={...e,a:e.alpha??1};return delete t.alpha,t}function Pe(e){let t={...e,alpha:e.a??1};return delete t.a,t}function X(e,t=!1){if(!P(e,t))return null;e=e.replace("#","");let n,r,o,a;if(e.length===3||e.length===4){let[s,l,i,u]=e.split("");n=parseInt(`${s}${s}`,16),r=parseInt(`${l}${l}`,16),o=parseInt(`${i}${i}`,16),a=parseInt(`${u}${u}`,16)/255}else n=parseInt(e.slice(0,2),16),r=parseInt(e.slice(2,4),16),o=parseInt(e.slice(4,6),16),a=parseInt(e.slice(6,8),16)/255;return isNaN(a)?{r:n,g:r,b:o}:{r:n,g:r,b:o,a}}var U=e=>e,f=U({HEX:"hex",HEXA:"hexa",RGB_CSS:"rgb-css",RGBA_CSS:"rgba-css",HSL_CSS:"hsl-css",HSLA_CSS:"hsla-css"}),d=U({RGB:"rgb",RGBA:"rgba",HSL:"hsl",HSLA:"hsla",HSV:"hsv",HSVA:"hsva"});function We(e){if(typeof e=="string"){if(e.startsWith("#")){let{length:t}=e;if(t===4||t===7)return f.HEX;if(t===5||t===9)return f.HEXA}if(e.startsWith("rgba("))return f.RGBA_CSS;if(e.startsWith("rgb("))return f.RGB_CSS;if(e.startsWith("hsl("))return f.HSL_CSS;if(e.startsWith("hsla("))return f.HSLA_CSS}if(typeof e=="object"){if(F(e,"r","g","b"))return F(e,"a")?d.RGBA:d.RGB;if(F(e,"h","s","l"))return F(e,"a")?d.HSLA:d.HSL;if(F(e,"h","s","v"))return F(e,"a")?d.HSVA:d.HSV}return null}function F(e,...t){return t.every(n=>n&&e&&`${n}`in e)}function Ue(e,t){return e?.rgb().array().toString()===t?.rgb().array().toString()}function De(e){return e===f.HEXA||e===f.RGBA_CSS||e===f.HSLA_CSS||e===d.RGBA||e===d.HSLA||e===d.HSVA}function Ke(e){return e===f.HEX?f.HEXA:e===f.RGB_CSS?f.RGBA_CSS:e===f.HSL_CSS?f.HSLA_CSS:e===d.RGB?d.RGBA:e===d.HSL?d.HSLA:e===d.HSV?d.HSVA:e}function Te(e){return e===f.HEXA?f.HEX:e===f.RGBA_CSS?f.RGB_CSS:e===f.HSLA_CSS?f.HSL_CSS:e===d.RGBA?d.RGB:e===d.HSLA?d.HSL:e===d.HSVA?d.HSV:e}var be=1,D=be*2;function Je(e,t,n){let r=n?ie.l.preview.size:t.preview.size,o=e-D,a=t.gap*3;return Math.max(o-a-r,0)}function Ye(e){let t=e-D;return{width:Math.max(t,0),height:Math.max(Math.floor(t/1.8),0)}}export{j as a,Oe as b,$e as c,qe as d,ze as e,le as f,Ie as g,Le as h,ie as i,Re as j,Be as k,Ge as l,Ee as m,P as n,q as o,de as p,je as q,Ve as r,V as s,Xe as t,Pe as u,X as v,f as w,We as x,Ue as y,De as z,Ke as A,Te as B,Je as C,Ye as D};
|
|
@@ -1,4 +1,4 @@
|
|
|
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.1.0
|
|
4
|
-
import{b as t}from"./
|
|
3
|
+
v3.1.0 */
|
|
4
|
+
import{b as t}from"./RMHVKKLY.js";import"./7TFPBMHK.js";var M={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function e(r,a,_){var n=M[_];return Array.isArray(n)&&(n=n[a?0:1]),n.replace("%d",r)}var i={name:"de-ch",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:function(a){return a+"."},weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e}};t.locale(i,null,!0);var d=i;export{d as default};
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
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.1.0
|
|
3
|
+
v3.1.0 */
|
|
4
4
|
var t={container:"container",actionsStart:"actions-start",contentStart:"content-start",content:"content",contentEnd:"content-end",actionsEnd:"actions-end"},n={actionsStart:"actions-start",contentStart:"content-start",contentEnd:"content-end",actionsEnd:"actions-end"};export{t as a,n as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
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.1.0
|
|
4
|
-
import{b as F}from"./7JUQYJ2U.js";import{a as I,b as v,c as u,d as z,f as q,h as E}from"./GJFTFWZP.js";import{k as L}from"./KWU5J6IZ.js";import{a as N,b as H}from"./SQCOJR5A.js";import{a as T,b as R}from"./5CBQQIVC.js";import{a as g}from"./OFL3O4J7.js";import{a as G}from"./T4JCSUPW.js";import"./OKB553SG.js";import{a as w}from"./DEAX7OZF.js";import{a as U}from"./KRSUYP6N.js";import{b as k}from"./TMDB4EP2.js";import{g as M,u as b}from"./UJMXOOOO.js";import{d as O}from"./OL4NX2FE.js";import"./LK37K2FJ.js";import{a as D}from"./RGOBNV2R.js";import{D as $,J as P,e as x,f as d,v as p,w as y,x as h}from"./WEPMLYVL.js";var m={container:"container",table:"table",scrim:"scrim",stack:"stack",tableContainer:"table-container",sticky:"sticky-pos",assistiveText:"assistive-text"},S={filterNoResults:"filter-no-results",filterActionsStart:"filter-actions-start",filterActionsEnd:"filter-actions-end"},B=x`: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:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.container{position:relative;background-color:var(--calcite-list-background-color, var(--calcite-color-foreground-1))}.table-container{box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;background-color:transparent}.table-container *{box-sizing:border-box}.table{inline-size:100%}.stack{--calcite-stack-padding-inline: 0;--calcite-stack-padding-block: 0}.sticky-pos{position:sticky;inset-block-start:0px;z-index:var(--calcite-z-index-sticky);background-color:var(--calcite-list-background-color, var(--calcite-color-foreground-1))}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}`,K=`${v}, ${u}`,C=class extends y{constructor(){super(),this.dragSelector=u,this.focusableItems=[],this.handleSelector="calcite-sort-handle",this.listItems=[],this.listItemGroups=[],this.mutationObserver=w("mutation",()=>{this.willPerformFilter=!0,this.updateListItems()}),this.updateListItems=G(()=>{this.updateGroupItems();let{selectionAppearance:e,selectionMode:t,interactionMode:i,dragEnabled:l,el:s,filterEl:a,moveToItems:o,displayMode:r,scale:c}=this,f=Array.from(this.el.querySelectorAll(u));if(f.forEach(n=>{n.scale=c,n.selectionAppearance=e,n.selectionMode=t,n.interactionMode=i,n.closest(I)===s&&(n.moveToItems=o.filter(A=>A.element!==s&&!n.contains(A.element)),n.dragHandle=l,n.displayMode=r)}),this.parentListEl){this.setUpSorting();return}this.listItems=f,this.filterEnabled&&this.willPerformFilter&&(this.willPerformFilter=!1,this.dataForFilter=this.getItemData(),a&&(a.items=this.dataForFilter,this.filterAndUpdateData())),this.visibleItems=this.listItems.filter(n=>!n.closed&&!n.hidden),this.updateFilteredItems(),this.borderItems(),this.focusableItems=this.filteredItems.filter(n=>!n.disabled),this.setActiveListItem(),this.updateSelectedItems(),this.setUpSorting()},$.nextTick),this.visibleItems=[],this.willFilterEmit=!1,this.willPerformFilter=!1,this.dataForFilter=[],this.hasFilterActionsEnd=!1,this.hasFilterActionsStart=!1,this.hasFilterNoResults=!1,this.moveToItems=[],this.disabled=!1,this.dragEnabled=!1,this.filterEnabled=!1,this.filteredData=[],this.filteredItems=[],this.interactionMode="interactive",this.loading=!1,this.messages=U({blocking:!0}),this.displayMode="flat",this.scale="m",this.selectedItems=[],this.selectionAppearance="icon",this.selectionMode="none",this.calciteInternalListDefaultSlotChange=p({cancelable:!1}),this.calciteListChange=p({cancelable:!1}),this.calciteListDragEnd=p({cancelable:!1}),this.calciteListDragStart=p({cancelable:!1}),this.calciteListFilter=p({cancelable:!1}),this.calciteListOrderChange=p({cancelable:!1}),this.listen("calciteInternalListItemToggle",this.handleCalciteListItemToggle),this.listen("calciteInternalFocusPreviousItem",this.handleCalciteInternalFocusPreviousItem),this.listen("calciteInternalListItemActive",this.handleCalciteInternalListItemActive),this.listen("calciteListItemSelect",this.handleCalciteListItemSelect),this.listen("calciteInternalAssistiveTextChange",this.handleCalciteInternalAssistiveTextChange),this.listen("calciteSortHandleReorder",this.handleSortReorder),this.listen("calciteSortHandleMove",this.handleSortMove),this.listen("calciteInternalListItemSelect",this.handleCalciteInternalListItemSelect),this.listen("calciteInternalListItemSelectMultiple",this.handleCalciteInternalListItemSelectMultiple),this.listen("calciteInternalListItemChange",this.handleCalciteInternalListItemChange),this.listen("calciteInternalListItemGroupDefaultSlotChange",this.handleCalciteInternalListItemGroupDefaultSlotChange)}static{this.properties={assistiveText:16,dataForFilter:16,hasFilterActionsEnd:16,hasFilterActionsStart:16,hasFilterNoResults:16,moveToItems:16,hasActiveFilter:16,showNoResultsContainer:16,canPull:0,canPut:0,disabled:7,dragEnabled:7,filterEnabled:7,filterPredicate:0,filterLabel:3,filterPlaceholder:3,filterProps:0,filterText:3,filteredData:0,filteredItems:0,group:3,interactionMode:3,label:1,loading:7,messageOverrides:0,displayMode:3,numberingSystem:1,scale:3,selectedItems:0,selectionAppearance:3,selectionMode:3}}static{this.styles=B}get hasActiveFilter(){return this.filterEnabled&&this.filterText&&this.filteredItems.length!==this.visibleItems.length}get showNoResultsContainer(){return this.filterEnabled&&this.filterText&&this.hasFilterNoResults&&this.visibleItems.length&&!this.filteredItems.length}async setFocus(){return await O(this),this.filterEnabled?this.filterEl?.setFocus():this.focusableItems.find(e=>e.active)?.setFocus()}connectedCallback(){super.connectedCallback(),this.connectObserver(),this.willPerformFilter=!0,this.updateListItems(),this.setUpSorting(),this.setParentList(),this.setListItemGroups()}async load(){this.handleInteractionModeWarning()}willUpdate(e){(e.has("filterText")||e.has("filterProps")||e.has("filterPredicate"))&&this.performFilter(),(e.has("filterEnabled")&&(this.hasUpdated||this.filterEnabled!==!1)||e.has("group")||e.has("dragEnabled")&&(this.hasUpdated||this.dragEnabled!==!1)||e.has("selectionMode")&&(this.hasUpdated||this.selectionMode!=="none")||e.has("selectionAppearance")&&(this.hasUpdated||this.selectionAppearance!=="icon")||e.has("displayMode")&&this.hasUpdated||e.has("scale")&&this.hasUpdated||e.has("filterPredicate")&&this.hasUpdated)&&this.handleListItemChange()}updated(){T(this)}disconnectedCallback(){super.disconnectedCallback(),this.disconnectObserver(),H(this)}handleListItemChange(){this.willPerformFilter=!0,this.updateListItems()}handleCalciteListItemToggle(e){this.parentListEl||(e.stopPropagation(),this.borderItems())}handleCalciteInternalFocusPreviousItem(e){if(this.parentListEl)return;e.stopPropagation();let{focusableItems:t}=this,i=t.findIndex(l=>l.active)-1;t[i]&&this.focusRow(t[i])}handleCalciteInternalListItemActive(e){if(this.parentListEl)return;e.stopPropagation();let t=e.target,{listItems:i}=this;i.forEach(l=>{l.active=l===t})}handleCalciteListItemSelect(){this.parentListEl||this.updateSelectedItems(!0)}handleCalciteInternalAssistiveTextChange(e){this.assistiveText=e.detail.message,e.stopPropagation()}handleSortReorder(e){this.parentListEl||this.handleReorder(e)}handleSortMove(e){this.parentListEl||this.handleMove(e)}handleCalciteInternalListItemSelect(e){if(this.parentListEl)return;e.stopPropagation();let t=e.target,{listItems:i,selectionMode:l}=this;t.selected&&(l==="single"||l==="single-persist")&&i.forEach(s=>s.selected=s===t),this.updateSelectedItems()}handleCalciteInternalListItemSelectMultiple(e){if(this.parentListEl)return;e.stopPropagation();let{target:t,detail:i}=e,{focusableItems:l,lastSelectedInfo:s}=this,a=t;if(i.selectMultiple&&s){let o=l.indexOf(a),r=l.indexOf(s.selectedItem),c=Math.min(r,o),f=Math.max(r,o);l.slice(c,f+1).forEach(n=>n.selected=s.selected)}else this.lastSelectedInfo={selectedItem:a,selected:a.selected}}handleCalciteInternalListItemChange(e){this.parentListEl||(e.stopPropagation(),this.updateListItems())}handleCalciteInternalListItemGroupDefaultSlotChange(e){e.stopPropagation()}connectObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}disconnectObserver(){this.mutationObserver?.disconnect()}setUpSorting(){let{dragEnabled:e}=this;e&&N(this)}onGlobalDragStart(){this.disconnectObserver()}onGlobalDragEnd(){this.connectObserver()}onDragEnd(e){this.calciteListDragEnd.emit(e)}onDragMove({relatedEl:e}){e.open=!0}onDragStart(e){e.dragEl.sortHandleOpen=!1,this.calciteListDragStart.emit(e)}onDragSort(e){this.setParentList(),this.updateListItems(),this.calciteListOrderChange.emit(e)}setParentList(){this.parentListEl=this.el.parentElement?.closest(I)}handleDefaultSlotChange(e){q(e.target),this.parentListEl&&this.calciteInternalListDefaultSlotChange.emit()}setListItemGroups(){this.listItemGroups=Array.from(this.el.querySelectorAll(v))}handleFilterActionsStartSlotChange(e){this.hasFilterActionsStart=b(e)}handleFilterActionsEndSlotChange(e){this.hasFilterActionsEnd=b(e)}handleFilterNoResultsSlotChange(e){this.hasFilterNoResults=b(e)}setActiveListItem(){let{focusableItems:e}=this;e.some(t=>t.active)||e[0]&&(e[0].active=!0)}async updateSelectedItems(e=!1){await this.updateComplete,this.selectedItems=this.visibleItems.filter(t=>t.selected),e&&this.calciteListChange.emit()}filterElements({el:e,filteredItems:t,visibleParents:i}){let l=!i.has(e)&&!t.includes(e);e.filterHidden=l;let s=e.parentElement.closest(K);s&&(l||i.add(s),this.filterElements({el:s,filteredItems:t,visibleParents:i}))}allParentListItemsOpen(e){let t=e.parentElement?.closest(u);if(t){if(!t.open)return!1}else return!0;return this.allParentListItemsOpen(t)}borderItems(){let e=this.visibleItems.filter(t=>!t.filterHidden&&this.allParentListItemsOpen(t));e.forEach(t=>t.bordered=t!==e[e.length-1])}updateFilteredItems(){let{visibleItems:e,filteredData:t,filterText:i,filterPredicate:l}=this,s=e?.filter(r=>e.every(c=>c===r||!r.contains(c))),a=l?e.filter(l):i?t.map(r=>r.el):e||[],o=new WeakSet;s.forEach(r=>this.filterElements({el:r,filteredItems:a,visibleParents:o})),this.filteredItems=a,this.willFilterEmit&&(this.willFilterEmit=!1,this.calciteListFilter.emit())}updateFilteredData(){let{filterEl:e}=this;e&&(e.filteredItems&&(this.filteredData=e.filteredItems),this.updateListItems())}async filterAndUpdateData(){await this.filterEl?.filter(this.filterText),this.updateFilteredData()}get effectiveFilterProps(){return this.filterProps?this.filterProps.filter(e=>e!=="el"):["description","label","metadata","heading"]}performFilter(){let{filterEl:e,filterText:t,effectiveFilterProps:i}=this;e&&(e.value=t,e.filterProps=i,this.filterAndUpdateData())}setFilterEl(e){this.filterEl=e,this.performFilter()}handleFilterChange(e){e.stopPropagation();let{value:t}=e.currentTarget;this.filterText=t,this.willFilterEmit=!0,this.updateFilteredData()}getItemData(){return this.listItems.map(e=>({label:e.label,description:e.description,metadata:e.metadata,heading:this.getGroupHeading(e),el:e}))}getGroupHeading(e){return this.listItemGroups.filter(t=>t.contains(e)).map(t=>t.heading)}updateGroupItems(){let{el:e,group:t,scale:i}=this,l=M(e),s=t?Array.from(l.querySelectorAll(`${I}[group="${t}"]`)).filter(a=>!a.disabled&&a.dragEnabled):[];this.moveToItems=s.map(a=>({element:a,label:a.label??a.id,id:D()})),Array.from(this.el.querySelectorAll(v)).forEach(a=>{a.scale=i})}focusRow(e){let{focusableItems:t}=this;e&&(t.forEach(i=>i.active=i===e),e.setFocus())}isNavigable(e){let t=e.parentElement?.closest(u);return t?t.open&&this.isNavigable(t):!0}handleListKeydown(e){if(e.defaultPrevented||this.parentListEl)return;let{key:t}=e,i=this.focusableItems.filter(s=>this.isNavigable(s)),l=i.findIndex(s=>s.active);if(t==="ArrowDown"){e.preventDefault();let s=e.target===this.filterEl?0:l+1;i[s]&&this.focusRow(i[s])}else if(t==="ArrowUp"){if(e.preventDefault(),l===0&&this.filterEnabled){this.filterEl?.setFocus();return}let s=l-1;i[s]&&this.focusRow(i[s])}else if(t==="Home"){e.preventDefault();let s=i[0];s&&this.focusRow(s)}else if(t==="End"){e.preventDefault();let s=i[i.length-1];s&&this.focusRow(s)}}handleInteractionModeWarning(){this.interactionMode==="static"&&this.selectionMode!=="none"&&this.selectionAppearance==="border"&&console.warn('selection-appearance="border" requires interaction-mode="interactive"')}handleMove(e){let{moveTo:t}=e.detail,i=e.target,l=i?.parentElement,s=t.element,a=Array.from(l.children).filter(E).indexOf(i);if(!l)return;i.sortHandleOpen=!1,this.disconnectObserver(),s.prepend(i),z(i);let o=Array.from(s.children).filter(E).indexOf(i);this.updateListItems(),this.connectObserver(),this.calciteListOrderChange.emit({dragEl:i,fromEl:l,toEl:s,newIndex:o,oldIndex:a})}handleReorder(e){let{reorder:t}=e.detail,i=e.target,l=i?.parentElement;if(!l)return;i.sortHandleOpen=!1;let s=Array.from(l.children).filter(E),a=s.length-1,o=s.indexOf(i),r=o;switch(t){case"top":r=0;break;case"bottom":r=a;break;case"up":r=o===0?0:o-1;break;case"down":r=o===a?a:o+1;break}this.disconnectObserver();let c=t==="up"||t==="top"?s[r]:s[r].nextSibling;l.insertBefore(i,c),this.updateListItems(),this.connectObserver(),this.calciteListOrderChange.emit({dragEl:i,fromEl:l,toEl:l,newIndex:r,oldIndex:o})}render(){let{loading:e,label:t,disabled:i,dataForFilter:l,filterEnabled:s,filterPlaceholder:a,filterText:o,filterLabel:r,hasFilterActionsStart:c,hasFilterActionsEnd:f,effectiveFilterProps:n}=this;return R({disabled:this.disabled,children:d`<div class=${h(m.container)}>${this.dragEnabled?d`<span aria-live=assertive class=${h(m.assistiveText)}>${this.assistiveText}</span>`:null}${this.renderItemAriaLive()}${e?d`<calcite-scrim class=${h(m.scrim)} .loading=${e}></calcite-scrim>`:null}<div .ariaBusy=${e} .ariaLabel=${t||""} class=${h(m.table)} @keydown=${this.handleListKeydown} role=treegrid>${s||c||f?d`<div class=${h(m.sticky)} role=rowgroup><div role=row><div role=columnheader><calcite-stack class=${h(m.stack)}><slot name=${S.filterActionsStart} @slotchange=${this.handleFilterActionsStartSlotChange} slot=${F.actionsStart}></slot><calcite-filter .ariaLabel=${a} .disabled=${i} .filterProps=${n} .items=${l} .label=${r} @calciteFilterChange=${this.handleFilterChange} .placeholder=${a} .scale=${this.scale} .value=${o} ${k(this.setFilterEl)}></calcite-filter><slot name=${S.filterActionsEnd} @slotchange=${this.handleFilterActionsEndSlotChange} slot=${F.actionsEnd}></slot></calcite-stack></div></div></div>`:null}<div class=${h(m.tableContainer)} role=rowgroup><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></div><div aria-live=polite data-test-id=no-results-container .hidden=${!this.showNoResultsContainer}><slot name=${S.filterNoResults} @slotchange=${this.handleFilterNoResultsSlotChange}></slot></div></div>`})}renderItemAriaLive(){let{messages:e,filteredItems:t,parentListEl:i,messages:{_lang:l},numberingSystem:s}=this;return L.numberFormatOptions={locale:l,numberingSystem:s},i?null:d`<div aria-live=polite class=${h(m.assistiveText)}>${this.hasActiveFilter?g("aria-filter-enabled",d`<div>${e.filterEnabled}</div>`):null}${g("aria-item-count",d`<div>${e.total.replace("{count}",L.localize(t.length.toString()))}</div>`)}${t.length?g("aria-item-list",d`<ol>${t.map(a=>d`<li>${a.label}</li>`)}</ol>`):null}</div>`}};P("calcite-list",C);export{C as List};
|
|
3
|
+
v3.1.0 */
|
|
4
|
+
import{b as F}from"./QSJVHVHJ.js";import{a as I,b as v,c as u,d as z,f as q,h as E}from"./IOKGLQ6T.js";import{k as L}from"./LOLCQBHI.js";import{a as N,b as H}from"./BEYI75RK.js";import{a as O,b as R}from"./BVXA3Q26.js";import{a as g}from"./3NWI6OP2.js";import{a as G}from"./RCFBJGNR.js";import"./LVPZFVWV.js";import{a as w}from"./BDJ7OECW.js";import{a as U}from"./CFWASGFL.js";import{b as k}from"./AE37DSUM.js";import{g as M,u as b}from"./GRRJSWZA.js";import{d as T}from"./4Q2DPEWF.js";import"./PWYHPWQ3.js";import{a as D}from"./73JLUGUM.js";import{D as $,J as P,e as A,f as d,v as p,w as y,x as h}from"./RVKGKVXB.js";var m={container:"container",table:"table",scrim:"scrim",stack:"stack",tableContainer:"table-container",sticky:"sticky-pos",assistiveText:"assistive-text"},S={filterNoResults:"filter-no-results",filterActionsStart:"filter-actions-start",filterActionsEnd:"filter-actions-end"},B=A`: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:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.container{position:relative;background-color:var(--calcite-list-background-color, var(--calcite-color-foreground-1))}.table-container{box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;background-color:transparent}.table-container *{box-sizing:border-box}.table{inline-size:100%}.stack{--calcite-stack-padding-inline: 0;--calcite-stack-padding-block: 0}.sticky-pos{position:sticky;inset-block-start:0px;z-index:var(--calcite-z-index-sticky);background-color:var(--calcite-list-background-color, var(--calcite-color-foreground-1))}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}`,K=`${v}, ${u}`,C=class extends y{constructor(){super(),this.dragSelector=u,this.focusableItems=[],this.handleSelector="calcite-sort-handle",this.listItems=[],this.listItemGroups=[],this.mutationObserver=w("mutation",()=>{this.willPerformFilter=!0,this.updateListItems()}),this.updateListItems=G(()=>{this.updateGroupItems();let{selectionAppearance:e,selectionMode:t,interactionMode:i,dragEnabled:l,el:s,filterEl:a,moveToItems:o,displayMode:r,scale:c}=this,f=Array.from(this.el.querySelectorAll(u));if(f.forEach(n=>{n.scale=c,n.selectionAppearance=e,n.selectionMode=t,n.interactionMode=i,n.closest(I)===s&&(n.moveToItems=o.filter(x=>x.element!==s&&!n.contains(x.element)),n.dragHandle=l,n.displayMode=r)}),this.parentListEl){this.setUpSorting();return}this.listItems=f,this.filterEnabled&&this.willPerformFilter&&(this.willPerformFilter=!1,this.dataForFilter=this.getItemData(),a&&(a.items=this.dataForFilter,this.filterAndUpdateData())),this.visibleItems=this.listItems.filter(n=>!n.closed&&!n.hidden),this.updateFilteredItems(),this.borderItems(),this.focusableItems=this.filteredItems.filter(n=>!n.disabled),this.setActiveListItem(),this.updateSelectedItems(),this.setUpSorting()},$.nextTick),this.visibleItems=[],this.willFilterEmit=!1,this.willPerformFilter=!1,this.dataForFilter=[],this.hasFilterActionsEnd=!1,this.hasFilterActionsStart=!1,this.hasFilterNoResults=!1,this.moveToItems=[],this.disabled=!1,this.dragEnabled=!1,this.filterEnabled=!1,this.filteredData=[],this.filteredItems=[],this.interactionMode="interactive",this.loading=!1,this.messages=U({blocking:!0}),this.displayMode="flat",this.scale="m",this.selectedItems=[],this.selectionAppearance="icon",this.selectionMode="none",this.calciteInternalListDefaultSlotChange=p({cancelable:!1}),this.calciteListChange=p({cancelable:!1}),this.calciteListDragEnd=p({cancelable:!1}),this.calciteListDragStart=p({cancelable:!1}),this.calciteListFilter=p({cancelable:!1}),this.calciteListOrderChange=p({cancelable:!1}),this.listen("calciteInternalListItemToggle",this.handleCalciteListItemToggle),this.listen("calciteInternalFocusPreviousItem",this.handleCalciteInternalFocusPreviousItem),this.listen("calciteInternalListItemActive",this.handleCalciteInternalListItemActive),this.listen("calciteListItemSelect",this.handleCalciteListItemSelect),this.listen("calciteInternalAssistiveTextChange",this.handleCalciteInternalAssistiveTextChange),this.listen("calciteSortHandleReorder",this.handleSortReorder),this.listen("calciteSortHandleMove",this.handleSortMove),this.listen("calciteInternalListItemSelect",this.handleCalciteInternalListItemSelect),this.listen("calciteInternalListItemSelectMultiple",this.handleCalciteInternalListItemSelectMultiple),this.listen("calciteInternalListItemChange",this.handleCalciteInternalListItemChange),this.listen("calciteInternalListItemGroupDefaultSlotChange",this.handleCalciteInternalListItemGroupDefaultSlotChange)}static{this.properties={assistiveText:16,dataForFilter:16,hasFilterActionsEnd:16,hasFilterActionsStart:16,hasFilterNoResults:16,moveToItems:16,hasActiveFilter:16,showNoResultsContainer:16,canPull:0,canPut:0,disabled:7,dragEnabled:7,filterEnabled:7,filterPredicate:0,filterLabel:3,filterPlaceholder:3,filterProps:0,filterText:3,filteredData:0,filteredItems:0,group:3,interactionMode:3,label:1,loading:7,messageOverrides:0,displayMode:3,numberingSystem:1,scale:3,selectedItems:0,selectionAppearance:3,selectionMode:3}}static{this.styles=B}get hasActiveFilter(){return this.filterEnabled&&this.filterText&&this.filteredItems.length!==this.visibleItems.length}get showNoResultsContainer(){return this.filterEnabled&&this.filterText&&this.hasFilterNoResults&&this.visibleItems.length&&!this.filteredItems.length}async setFocus(){return await T(this),this.filterEnabled?this.filterEl?.setFocus():this.focusableItems.find(e=>e.active)?.setFocus()}connectedCallback(){super.connectedCallback(),this.connectObserver(),this.willPerformFilter=!0,this.updateListItems(),this.setUpSorting(),this.setParentList(),this.setListItemGroups()}async load(){this.handleInteractionModeWarning()}willUpdate(e){(e.has("filterText")||e.has("filterProps")||e.has("filterPredicate"))&&this.performFilter(),(e.has("filterEnabled")&&(this.hasUpdated||this.filterEnabled!==!1)||e.has("group")||e.has("dragEnabled")&&(this.hasUpdated||this.dragEnabled!==!1)||e.has("selectionMode")&&(this.hasUpdated||this.selectionMode!=="none")||e.has("selectionAppearance")&&(this.hasUpdated||this.selectionAppearance!=="icon")||e.has("displayMode")&&this.hasUpdated||e.has("scale")&&this.hasUpdated||e.has("filterPredicate")&&this.hasUpdated)&&this.handleListItemChange()}updated(){O(this)}disconnectedCallback(){super.disconnectedCallback(),this.disconnectObserver(),H(this)}handleListItemChange(){this.willPerformFilter=!0,this.updateListItems()}handleCalciteListItemToggle(e){this.parentListEl||(e.stopPropagation(),this.borderItems())}handleCalciteInternalFocusPreviousItem(e){if(this.parentListEl)return;e.stopPropagation();let{focusableItems:t}=this,i=t.findIndex(l=>l.active)-1;t[i]&&this.focusRow(t[i])}handleCalciteInternalListItemActive(e){if(this.parentListEl)return;e.stopPropagation();let t=e.target,{listItems:i}=this;i.forEach(l=>{l.active=l===t})}handleCalciteListItemSelect(){this.parentListEl||this.updateSelectedItems(!0)}handleCalciteInternalAssistiveTextChange(e){this.assistiveText=e.detail.message,e.stopPropagation()}handleSortReorder(e){this.parentListEl||this.handleReorder(e)}handleSortMove(e){this.parentListEl||this.handleMove(e)}handleCalciteInternalListItemSelect(e){if(this.parentListEl)return;e.stopPropagation();let t=e.target,{listItems:i,selectionMode:l}=this;t.selected&&(l==="single"||l==="single-persist")&&i.forEach(s=>s.selected=s===t),this.updateSelectedItems()}handleCalciteInternalListItemSelectMultiple(e){if(this.parentListEl)return;e.stopPropagation();let{target:t,detail:i}=e,{focusableItems:l,lastSelectedInfo:s}=this,a=t;if(i.selectMultiple&&s){let o=l.indexOf(a),r=l.indexOf(s.selectedItem),c=Math.min(r,o),f=Math.max(r,o);l.slice(c,f+1).forEach(n=>n.selected=s.selected)}else this.lastSelectedInfo={selectedItem:a,selected:a.selected}}handleCalciteInternalListItemChange(e){this.parentListEl||(e.stopPropagation(),this.updateListItems())}handleCalciteInternalListItemGroupDefaultSlotChange(e){e.stopPropagation()}connectObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}disconnectObserver(){this.mutationObserver?.disconnect()}setUpSorting(){let{dragEnabled:e}=this;e&&N(this)}onGlobalDragStart(){this.disconnectObserver()}onGlobalDragEnd(){this.connectObserver()}onDragEnd(e){this.calciteListDragEnd.emit(e)}onDragMove({relatedEl:e}){e.expanded=!0}onDragStart(e){e.dragEl.sortHandleOpen=!1,this.calciteListDragStart.emit(e)}onDragSort(e){this.setParentList(),this.updateListItems(),this.calciteListOrderChange.emit(e)}setParentList(){this.parentListEl=this.el.parentElement?.closest(I)}handleDefaultSlotChange(e){q(e.target),this.parentListEl&&this.calciteInternalListDefaultSlotChange.emit()}setListItemGroups(){this.listItemGroups=Array.from(this.el.querySelectorAll(v))}handleFilterActionsStartSlotChange(e){this.hasFilterActionsStart=b(e)}handleFilterActionsEndSlotChange(e){this.hasFilterActionsEnd=b(e)}handleFilterNoResultsSlotChange(e){this.hasFilterNoResults=b(e)}setActiveListItem(){let{focusableItems:e}=this;e.some(t=>t.active)||e[0]&&(e[0].active=!0)}async updateSelectedItems(e=!1){await this.updateComplete,this.selectedItems=this.visibleItems.filter(t=>t.selected),e&&this.calciteListChange.emit()}filterElements({el:e,filteredItems:t,visibleParents:i}){let l=!i.has(e)&&!t.includes(e);e.filterHidden=l;let s=e.parentElement.closest(K);s&&(l||i.add(s),this.filterElements({el:s,filteredItems:t,visibleParents:i}))}allParentListItemsExpanded(e){let t=e.parentElement?.closest(u);if(t){if(!t.expanded)return!1}else return!0;return this.allParentListItemsExpanded(t)}borderItems(){let e=this.visibleItems.filter(t=>!t.filterHidden&&this.allParentListItemsExpanded(t));e.forEach(t=>t.bordered=t!==e[e.length-1])}updateFilteredItems(){let{visibleItems:e,filteredData:t,filterText:i,filterPredicate:l}=this,s=e?.filter(r=>e.every(c=>c===r||!r.contains(c))),a=l?e.filter(l):i?t.map(r=>r.el):e||[],o=new WeakSet;s.forEach(r=>this.filterElements({el:r,filteredItems:a,visibleParents:o})),this.filteredItems=a,this.willFilterEmit&&(this.willFilterEmit=!1,this.calciteListFilter.emit())}updateFilteredData(){let{filterEl:e}=this;e&&(e.filteredItems&&(this.filteredData=e.filteredItems),this.updateListItems())}async filterAndUpdateData(){await this.filterEl?.filter(this.filterText),this.updateFilteredData()}get effectiveFilterProps(){return this.filterProps?this.filterProps.filter(e=>e!=="el"):["description","label","metadata","heading"]}performFilter(){let{filterEl:e,filterText:t,effectiveFilterProps:i}=this;e&&(e.value=t,e.filterProps=i,this.filterAndUpdateData())}setFilterEl(e){this.filterEl=e,this.performFilter()}handleFilterChange(e){e.stopPropagation();let{value:t}=e.currentTarget;this.filterText=t,this.willFilterEmit=!0,this.updateFilteredData()}getItemData(){return this.listItems.map(e=>({label:e.label,description:e.description,metadata:e.metadata,heading:this.getGroupHeading(e),el:e}))}getGroupHeading(e){return this.listItemGroups.filter(t=>t.contains(e)).map(t=>t.heading)}updateGroupItems(){let{el:e,group:t,scale:i}=this,l=M(e),s=t?Array.from(l.querySelectorAll(`${I}[group="${t}"]`)).filter(a=>!a.disabled&&a.dragEnabled):[];this.moveToItems=s.map(a=>({element:a,label:a.label??a.id,id:D()})),Array.from(this.el.querySelectorAll(v)).forEach(a=>{a.scale=i})}focusRow(e){let{focusableItems:t}=this;e&&(t.forEach(i=>i.active=i===e),e.setFocus())}isNavigable(e){let t=e.parentElement?.closest(u);return t?t.expanded&&this.isNavigable(t):!0}handleListKeydown(e){if(e.defaultPrevented||this.parentListEl)return;let{key:t}=e,i=this.focusableItems.filter(s=>this.isNavigable(s)),l=i.findIndex(s=>s.active);if(t==="ArrowDown"){e.preventDefault();let s=e.target===this.filterEl?0:l+1;i[s]&&this.focusRow(i[s])}else if(t==="ArrowUp"){if(e.preventDefault(),l===0&&this.filterEnabled){this.filterEl?.setFocus();return}let s=l-1;i[s]&&this.focusRow(i[s])}else if(t==="Home"){e.preventDefault();let s=i[0];s&&this.focusRow(s)}else if(t==="End"){e.preventDefault();let s=i[i.length-1];s&&this.focusRow(s)}}handleInteractionModeWarning(){this.interactionMode==="static"&&this.selectionMode!=="none"&&this.selectionAppearance==="border"&&console.warn('selection-appearance="border" requires interaction-mode="interactive"')}handleMove(e){let{moveTo:t}=e.detail,i=e.target,l=i?.parentElement,s=t.element,a=Array.from(l.children).filter(E).indexOf(i);if(!l)return;i.sortHandleOpen=!1,this.disconnectObserver(),s.prepend(i),z(i);let o=Array.from(s.children).filter(E).indexOf(i);this.updateListItems(),this.connectObserver(),this.calciteListOrderChange.emit({dragEl:i,fromEl:l,toEl:s,newIndex:o,oldIndex:a})}handleReorder(e){let{reorder:t}=e.detail,i=e.target,l=i?.parentElement;if(!l)return;i.sortHandleOpen=!1;let s=Array.from(l.children).filter(E),a=s.length-1,o=s.indexOf(i),r=o;switch(t){case"top":r=0;break;case"bottom":r=a;break;case"up":r=o===0?0:o-1;break;case"down":r=o===a?a:o+1;break}this.disconnectObserver();let c=t==="up"||t==="top"?s[r]:s[r].nextSibling;l.insertBefore(i,c),this.updateListItems(),this.connectObserver(),this.calciteListOrderChange.emit({dragEl:i,fromEl:l,toEl:l,newIndex:r,oldIndex:o})}render(){let{loading:e,label:t,disabled:i,dataForFilter:l,filterEnabled:s,filterPlaceholder:a,filterText:o,filterLabel:r,hasFilterActionsStart:c,hasFilterActionsEnd:f,effectiveFilterProps:n}=this;return R({disabled:this.disabled,children:d`<div class=${h(m.container)}>${this.dragEnabled?d`<span aria-live=assertive class=${h(m.assistiveText)}>${this.assistiveText}</span>`:null}${this.renderItemAriaLive()}${e?d`<calcite-scrim class=${h(m.scrim)} .loading=${e}></calcite-scrim>`:null}<div .ariaBusy=${e} .ariaLabel=${t||""} class=${h(m.table)} @keydown=${this.handleListKeydown} role=treegrid>${s||c||f?d`<div class=${h(m.sticky)} role=rowgroup><div role=row><div role=columnheader><calcite-stack class=${h(m.stack)}><slot name=${S.filterActionsStart} @slotchange=${this.handleFilterActionsStartSlotChange} slot=${F.actionsStart}></slot><calcite-filter .ariaLabel=${a} .disabled=${i} .filterProps=${n} .items=${l} .label=${r} @calciteFilterChange=${this.handleFilterChange} .placeholder=${a} .scale=${this.scale} .value=${o} ${k(this.setFilterEl)}></calcite-filter><slot name=${S.filterActionsEnd} @slotchange=${this.handleFilterActionsEndSlotChange} slot=${F.actionsEnd}></slot></calcite-stack></div></div></div>`:null}<div class=${h(m.tableContainer)} role=rowgroup><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></div><div aria-live=polite data-test-id=no-results-container .hidden=${!this.showNoResultsContainer}><slot name=${S.filterNoResults} @slotchange=${this.handleFilterNoResultsSlotChange}></slot></div></div>`})}renderItemAriaLive(){let{messages:e,filteredItems:t,parentListEl:i,messages:{_lang:l},numberingSystem:s}=this;return L.numberFormatOptions={locale:l,numberingSystem:s},i?null:d`<div aria-live=polite class=${h(m.assistiveText)}>${this.hasActiveFilter?g("aria-filter-enabled",d`<div>${e.filterEnabled}</div>`):null}${g("aria-item-count",d`<div>${e.total.replace("{count}",L.localize(t.length.toString()))}</div>`)}${t.length?g("aria-item-list",d`<ol>${t.map(a=>d`<li>${a.label}</li>`)}</ol>`):null}</div>`}};P("calcite-list",C);export{C as List};
|
|
@@ -1,4 +1,4 @@
|
|
|
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.1.0
|
|
3
|
+
v3.1.0 */
|
|
4
4
|
function we(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var n=we;var We=typeof global=="object"&&global&&global.Object===Object&&global,A=We;var Re=typeof self=="object"&&self&&self.Object===Object&&self,Le=A||Re||Function("return this")(),g=Le;var ke=function(){return g.Date.now()},O=ke;var Fe=/\s/;function Pe(e){for(var t=e.length;t--&&Fe.test(e.charAt(t)););return t}var D=Pe;var Me=/^\s+/;function Ne(e){return e&&e.slice(0,D(e)+1).replace(Me,"")}var q=Ne;var Ce=g.Symbol,i=Ce;var G=Object.prototype,Ue=G.hasOwnProperty,De=G.toString,T=i?i.toStringTag:void 0;function qe(e){var t=Ue.call(e,T),r=e[T];try{e[T]=void 0;var o=!0}catch{}var f=De.call(e);return o&&(t?e[T]=r:delete e[T]),f}var z=qe;var Ge=Object.prototype,ze=Ge.toString;function Ke(e){return ze.call(e)}var K=Ke;var _e="[object Null]",$e="[object Undefined]",_=i?i.toStringTag:void 0;function Ve(e){return e==null?e===void 0?$e:_e:_&&_ in Object(e)?z(e):K(e)}var c=Ve;function Xe(e){return e!=null&&typeof e=="object"}var y=Xe;var He="[object Symbol]";function Je(e){return typeof e=="symbol"||y(e)&&c(e)==He}var v=Je;var $=NaN,Ye=/^[-+]0x[0-9a-f]+$/i,Qe=/^0b[01]+$/i,Ze=/^0o[0-7]+$/i,et=parseInt;function tt(e){if(typeof e=="number")return e;if(v(e))return $;if(n(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=n(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=q(e);var r=Qe.test(e);return r||Ze.test(e)?et(e.slice(2),r?2:8):Ye.test(e)?$:+e}var R=tt;var rt="Expected a function",ot=Math.max,at=Math.min;function ft(e,t,r){var o,f,d,m,s,l,u=0,M=!1,b=!1,B=!0;if(typeof e!="function")throw new TypeError(rt);t=R(t)||0,n(r)&&(M=!!r.leading,b="maxWait"in r,d=b?ot(R(r.maxWait)||0,t):d,B="trailing"in r?!!r.trailing:B);function w(p){var x=o,h=f;return o=f=void 0,u=p,m=e.apply(h,x),m}function ve(p){return u=p,s=setTimeout(I,t),M?w(p):m}function Se(p){var x=p-l,h=p-u,U=t-x;return b?at(U,d-h):U}function N(p){var x=p-l,h=p-u;return l===void 0||x>=t||x<0||b&&h>=d}function I(){var p=O();if(N(p))return C(p);s=setTimeout(I,Se(p))}function C(p){return s=void 0,B&&o?w(p):(o=f=void 0,m)}function Ee(){s!==void 0&&clearTimeout(s),u=0,o=l=f=s=void 0}function Be(){return s===void 0?m:C(O())}function W(){var p=O(),x=N(p);if(o=arguments,f=this,l=p,x){if(s===void 0)return ve(l);if(b)return clearTimeout(s),s=setTimeout(I,t),w(l)}return s===void 0&&(s=setTimeout(I,t)),m}return W.cancel=Ee,W.flush=Be,W}var L=ft;function st(e,t){for(var r=-1,o=e==null?0:e.length,f=Array(o);++r<o;)f[r]=t(e[r],r,e);return f}var V=st;var pt=Array.isArray,S=pt;var ut=1/0,X=i?i.prototype:void 0,H=X?X.toString:void 0;function J(e){if(typeof e=="string")return e;if(S(e))return V(e,J)+"";if(v(e))return H?H.call(e):"";var t=e+"";return t=="0"&&1/e==-ut?"-0":t}var Y=J;function mt(e){return e==null?"":Y(e)}var Q=mt;var Z=/[\\^$.*+?()[\]{}|]/g,lt=RegExp(Z.source);function dt(e){return e=Q(e),e&<.test(e)?e.replace(Z,"\\$&"):e}var nt=dt;var it="Expected a function";function xt(e,t,r){var o=!0,f=!0;if(typeof e!="function")throw new TypeError(it);return n(r)&&(o="leading"in r?!!r.leading:o,f="trailing"in r?!!r.trailing:f),L(e,t,{leading:o,maxWait:t,trailing:f})}var ct=xt;function yt(e){return e}var ee=yt;var gt="[object AsyncFunction]",bt="[object Function]",ht="[object GeneratorFunction]",Tt="[object Proxy]";function jt(e){if(!n(e))return!1;var t=c(e);return t==bt||t==ht||t==gt||t==Tt}var te=jt;var It=9007199254740991,At=/^(?:0|[1-9]\d*)$/;function Ot(e,t){var r=typeof e;return t=t??It,!!t&&(r=="number"||r!="symbol"&&At.test(e))&&e>-1&&e%1==0&&e<t}var re=Ot;var vt=9007199254740991;function St(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=vt}var E=St;function Et(e){return e!=null&&E(e.length)&&!te(e)}var oe=Et;var Bt=Object.prototype;function wt(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Bt;return e===r}var ae=wt;function Wt(e,t){for(var r=-1,o=Array(e);++r<e;)o[r]=t(r);return o}var fe=Wt;var Rt="[object Arguments]";function Lt(e){return y(e)&&c(e)==Rt}var k=Lt;var se=Object.prototype,kt=se.hasOwnProperty,Ft=se.propertyIsEnumerable,Pt=k(function(){return arguments}())?k:function(e){return y(e)&&kt.call(e,"callee")&&!Ft.call(e,"callee")},pe=Pt;function Mt(){return!1}var ue=Mt;var de=typeof exports=="object"&&exports&&!exports.nodeType&&exports,me=de&&typeof module=="object"&&module&&!module.nodeType&&module,Nt=me&&me.exports===de,le=Nt?g.Buffer:void 0,Ct=le?le.isBuffer:void 0,Ut=Ct||ue,ne=Ut;var Dt="[object Arguments]",qt="[object Array]",Gt="[object Boolean]",zt="[object Date]",Kt="[object Error]",_t="[object Function]",$t="[object Map]",Vt="[object Number]",Xt="[object Object]",Ht="[object RegExp]",Jt="[object Set]",Yt="[object String]",Qt="[object WeakMap]",Zt="[object ArrayBuffer]",er="[object DataView]",tr="[object Float32Array]",rr="[object Float64Array]",or="[object Int8Array]",ar="[object Int16Array]",fr="[object Int32Array]",sr="[object Uint8Array]",pr="[object Uint8ClampedArray]",ur="[object Uint16Array]",mr="[object Uint32Array]",a={};a[tr]=a[rr]=a[or]=a[ar]=a[fr]=a[sr]=a[pr]=a[ur]=a[mr]=!0;a[Dt]=a[qt]=a[Zt]=a[Gt]=a[er]=a[zt]=a[Kt]=a[_t]=a[$t]=a[Vt]=a[Xt]=a[Ht]=a[Jt]=a[Yt]=a[Qt]=!1;function lr(e){return y(e)&&E(e.length)&&!!a[c(e)]}var ie=lr;function dr(e){return function(t){return e(t)}}var xe=dr;var ce=typeof exports=="object"&&exports&&!exports.nodeType&&exports,j=ce&&typeof module=="object"&&module&&!module.nodeType&&module,nr=j&&j.exports===ce,F=nr&&A.process,ir=function(){try{var e=j&&j.require&&j.require("util").types;return e||F&&F.binding&&F.binding("util")}catch{}}(),P=ir;var ye=P&&P.isTypedArray,xr=ye?xe(ye):ie,ge=xr;var cr=Object.prototype,yr=cr.hasOwnProperty;function gr(e,t){var r=S(e),o=!r&&pe(e),f=!r&&!o&&ne(e),d=!r&&!o&&!f&&ge(e),m=r||o||f||d,s=m?fe(e.length,String):[],l=s.length;for(var u in e)(t||yr.call(e,u))&&!(m&&(u=="length"||f&&(u=="offset"||u=="parent")||d&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||re(u,l)))&&s.push(u);return s}var be=gr;function br(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var he=br;var hr=Object.prototype,Tr=hr.hasOwnProperty;function jr(e){if(!n(e))return he(e);var t=ae(e),r=[];for(var o in e)o=="constructor"&&(t||!Tr.call(e,o))||r.push(o);return r}var Te=jr;function Ir(e){return oe(e)?be(e,!0):Te(e)}var je=Ir;function Ar(e){return function(t,r,o){for(var f=-1,d=Object(t),m=o(t),s=m.length;s--;){var l=m[e?s:++f];if(r(d[l],l,d)===!1)break}return t}}var Ie=Ar;var Or=Ie(),Ae=Or;function vr(e){return typeof e=="function"?e:ee}var Oe=vr;function Sr(e,t){return e==null?e:Ae(e,Oe(t),je)}var Er=Sr;export{L as a,nt as b,Er as c,ct as d};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Bundled license information:
|
|
2
|
+
|
|
3
|
+
lodash-es/lodash.js:
|
|
4
|
+
/**
|
|
5
|
+
* @license
|
|
6
|
+
* Lodash (Custom Build) <https://lodash.com/>
|
|
7
|
+
* Build: `lodash modularize exports="es" -o ./`
|
|
8
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
9
|
+
* Released under MIT license <https://lodash.com/license>
|
|
10
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
11
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
12
|
+
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
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.1.0
|
|
4
|
-
import{a as f,b as m,j as h,m as F,n as I,q as k}from"./JMIPTLSC.js";import"./KWU5J6IZ.js";import{a as H}from"./OFL3O4J7.js";import"./OKB553SG.js";import{b as R}from"./TMDB4EP2.js";import{J as x,e as $,f as v,v as p,w as M,x as g}from"./WEPMLYVL.js";var l={calendar:"calendar",calendarContainer:"calendar-container",calendarStart:"calendar--start",currentDay:"current-day",dayContainer:"day-container",insideRangeHover:"inside-range--hover",month:"month",noncurrent:"noncurrent",outsideRangeHover:"outside-range--hover",weekDays:"week-days",weekHeader:"week-header",weekHeaderContainer:"week-header-container"},A=$`:host([hidden]){display:none}[hidden]{display:none}.calendar-container{display:flex;inline-size:100%}:host([range][layout=vertical]) .calendar-container{flex-direction:column}.calendar{inline-size:100%}.week-header-container{display:flex;block-size:16px;padding-inline:var(--calcite-spacing-sm);padding-block:var(--calcite-spacing-md)}.week-header{display:flex;align-items:center;justify-content:center;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-bold);inline-size:14.2857142857%;color:var(--calcite-date-picker-week-header-text-color, var(--calcite-color-text-3))}.day-container{display:flex;inline-size:100%;min-inline-size:0px;justify-content:center}.day-container calcite-date-picker-day{inline-size:100%}.week-days{display:grid;grid-template-columns:repeat(7,1fr);grid-auto-rows:1fr;padding-inline:var(--calcite-spacing-sm);padding-block-end:var(--calcite-spacing-sm)}.month-header{display:flex;inline-size:100%;justify-content:space-between}.month{display:flex;inline-size:100%;flex-direction:column;justify-content:space-between}.day{font-size:var(--calcite-font-size)}:host([scale=s]) .week-days{padding-inline:var(--calcite-spacing-xs);padding-block-end:var(--calcite-spacing-xs)}:host([scale=s]) .week-header-container{padding-inline:var(--calcite-spacing-xs);padding-block:var(--calcite-spacing-sm)}:host([scale=s]) .day{font-size:var(--calcite-font-size-sm)}:host([scale=l]) .week-header{font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) .week-days{padding-inline:var(--calcite-spacing-md);padding-block-end:var(--calcite-spacing-md)}:host([scale=l]) .week-header-container{padding-inline:var(--calcite-spacing-md);padding-block:var(--calcite-spacing-md-plus)}:host([scale=l]) .day{font-size:var(--calcite-font-size-md)}.calendar--start{border-width:0px;border-style:solid;border-color:var(--calcite-date-picker-range-calendar-divider-color, var(--calcite-color-border-1))}:host([range][layout=horizontal]) .calendar--start{border-inline-end-width:var(--calcite-border-width-sm)}:host([range][layout=vertical]) .calendar--start{border-block-end-width:var(--calcite-border-width-sm)}.noncurrent{pointer-events:none;opacity:0}`,y=7,w=6,b=class extends M{constructor(){super(),this.activeDate=new Date,this.range=!1,this.calciteInternalDatePickerDayHover=p({cancelable:!1}),this.calciteInternalDatePickerDaySelect=p({cancelable:!1}),this.calciteInternalDatePickerMonthActiveDateChange=p({cancelable:!1}),this.calciteInternalDatePickerMonthChange=p({cancelable:!1}),this.calciteInternalDatePickerMonthMouseOut=p({cancelable:!1}),this.listen("pointerout",this.pointerOutHandler),this.listen("focusout",this.disableActiveFocus)}static{this.properties={focusedDate:16,activeDate:0,dateTimeFormat:0,endDate:0,headingLevel:11,hoverRange:0,layout:3,localeData:0,max:0,messages:0,min:0,monthStyle:1,range:7,scale:3,selectedDate:0,startDate:0}}static{this.styles=A}load(){this.focusedDate=this.selectedDate||this.activeDate}willUpdate(e){e.has("activeDate")&&this.updateFocusedDateWithActive(this.activeDate),e.has("selectedDate")&&(this.focusedDate=this.selectedDate)}updateFocusedDateWithActive(e){this.selectedDate||(this.focusedDate=f(e,this.min,this.max)?e:m(e,this.min,this.max))}keyDownHandler(e){if(e.defaultPrevented)return;let a=this.el.dir==="rtl",t=e.target.value;switch(e.key){case"ArrowUp":e.preventDefault(),this.addDays(-7,t);break;case"ArrowRight":e.preventDefault(),this.addDays(a?-1:1,t);break;case"ArrowDown":e.preventDefault(),this.addDays(7,t);break;case"ArrowLeft":e.preventDefault(),this.addDays(a?1:-1,t);break;case"PageUp":e.preventDefault(),this.addMonths(-1,t);break;case"PageDown":e.preventDefault(),this.addMonths(1,t);break;case"Home":e.preventDefault(),this.activeDate.setDate(1),this.addDays(0,t);break;case"End":e.preventDefault(),this.activeDate.setDate(new Date(this.activeDate.getFullYear(),this.activeDate.getMonth()+1,0).getDate()),this.addDays(0,t);break;case"Enter":case" ":e.preventDefault();break;case"Tab":this.activeFocus=!1}}disableActiveFocus(){this.activeFocus=!1}pointerOutHandler(){this.calciteInternalDatePickerMonthMouseOut.emit()}addMonths(e,a){let t=new Date(a);t.setMonth(a.getMonth()+e),this.calciteInternalDatePickerMonthActiveDateChange.emit(m(t,this.min,this.max)),this.focusedDate=m(t,this.min,this.max),this.activeFocus=!0,this.calciteInternalDatePickerDayHover.emit(t)}addDays(e=0,a){let t=new Date(a);t.setDate(a.getDate()+e),this.calciteInternalDatePickerMonthActiveDateChange.emit(m(t,this.min,this.max)),this.focusedDate=m(t,this.min,this.max),this.activeFocus=!0,this.calciteInternalDatePickerDayHover.emit(t)}getPreviousMonthDays(e,a,t){let i=new Date(a,e,0),s=i.getDate(),n=i.getDay(),r=[];if(n===(t+w)%y)return r;if(n===t)return[s];for(let c=(y+n-t)%y;c>=0;c--)r.push(s-c);return r}getCurrentMonthDays(e,a){let t=new Date(a,e+1,0).getDate(),i=[];for(let s=0;s<t;s++)i.push(s+1);return i}getNextMonthDays(e,a,t){let i=new Date(a,e+1,0).getDay(),s=[];if(i===(t+w)%y)return s;for(let n=0;n<(w-(i-t))%y;n++)s.push(n+1);return s}betweenSelectedRange(e){return!!(this.startDate&&this.endDate&&e>this.startDate&&e<this.endDate&&!this.isRangeHover(e))}isSelected(e){return!!(h(e,this.selectedDate)||this.startDate&&h(e,this.startDate)||this.endDate&&h(e,this.endDate))}isStartOfRange(e){return!!(this.startDate&&!h(this.startDate,this.endDate)&&h(this.startDate,e)&&!this.isEndOfRange(e))}isEndOfRange(e){return!!(this.endDate&&!h(this.startDate,this.endDate)&&h(this.endDate,e)||!this.endDate&&this.hoverRange&&h(this.startDate,this.hoverRange.end)&&h(e,this.hoverRange.end))}dayHover(e){let a=e.target;a.disabled?this.calciteInternalDatePickerMonthMouseOut.emit():this.calciteInternalDatePickerDayHover.emit(a.value),e.stopPropagation()}daySelect(e){let a=e.target;this.activeFocus=!1,this.calciteInternalDatePickerDaySelect.emit(a.value),e.stopPropagation()}isFocusedOnStart(){return this.hoverRange?.focused==="start"}isHoverInRange(){if(!this.hoverRange||!this.startDate)return!1;let{start:e,end:a}=this.hoverRange,t=this.isFocusedOnStart(),i=this.startDate&&a>this.startDate,s=this.endDate&&a<this.endDate,n=this.startDate&&e>this.startDate,r=this.endDate&&e<this.endDate,c=!t&&this.startDate&&i&&(!this.endDate||s),o=t&&this.startDate&&n&&r;return c||o}isRangeHover(e){if(!this.hoverRange)return!1;let{start:a,end:t}=this.hoverRange,i=this.isFocusedOnStart(),s=this.isHoverInRange(),n=e>a&&e<this.startDate,r=e<t&&e>this.endDate,c=e>t&&e<this.endDate,o=e<a&&e>this.startDate,d=e<t&&e>this.startDate,D=e>a&&e<this.endDate,u=this.startDate&&this.endDate;if(s){if(u)return i?e<this.endDate&&(o||n):c||r;if(this.startDate&&!this.endDate)return i?n:d;if(!this.startDate&&this.endDate)return i?D:r}else if(u)return i?n:r}getDays(e,a,t,i="start"){let s=this.activeDate.getMonth(),n=s+1;s=i==="end"?n:s;let r=0,c=()=>r++%7,o=this.activeDate.getFullYear();return[...e.map(d=>({active:!1,day:d,dayInWeek:c(),date:new Date(o,s-1,d)})),...a.map(d=>{let D=new Date(o,s,d),u=h(D,new Date);return{active:this.focusedDate&&this.focusedDate!==this.startDate&&this.focusedDate!==this.endDate?h(D,this.focusedDate):h(D,this.startDate)||h(D,this.endDate),currentMonth:!0,currentDay:u,day:d,dayInWeek:c(),date:D,ref:!0}}),...t.map(d=>({active:!1,day:d,dayInWeek:c(),date:new Date(o,n,d)}))]}monthHeaderSelectChange(e){let a=new Date(e.detail),t=e.target;this.updateFocusableDate(a),e.stopPropagation(),this.calciteInternalDatePickerMonthChange.emit({date:a,position:t.position})}updateFocusableDate(e){!this.selectedDate||!this.range?this.focusedDate=this.getFirstValidDateOfMonth(e):this.selectedDate&&this.range&&(!k(this.startDate,e)||!k(this.endDate,e))&&(this.focusedDate=this.getFirstValidDateOfMonth(e))}getFirstValidDateOfMonth(e){return e.getDate()===1?e:F(e,this.min,this.max)}render(){let e=this.activeDate.getMonth(),a=this.activeDate.getFullYear(),t=this.localeData.weekStart%7,{abbreviated:i,short:s,narrow:n}=this.localeData.days,r=this.scale==="s"?n||s||i:s||i||n,c=[...r.slice(t,7),...r.slice(0,t)],o=this.getCurrentMonthDays(e,a),d=this.getPreviousMonthDays(e,a,t),D=this.getNextMonthDays(e,a,t),u=e+1,P=this.getPreviousMonthDays(u,a,t),C=this.getCurrentMonthDays(u,a),S=this.getNextMonthDays(u,a,t),z=this.getDays(d,o,D),O=this.getDays(P,C,S,"end");return v`<div class=${g({[l.calendarContainer]:!0})} role=grid>${this.renderCalendar(c,z)}${this.range&&this.renderCalendar(c,O,!0)||""}</div>`}renderDateDay({active:e,currentMonth:a,currentDay:t,date:i,day:s,dayInWeek:n,ref:r},c){let o=f(i,this.min,this.max);return H(c,v`<div class=${g({[l.dayContainer]:!0})} role=gridcell><calcite-date-picker-day .active=${e} class=${g({[l.currentDay]:t,[l.insideRangeHover]:this.isHoverInRange(),[l.outsideRangeHover]:!this.isHoverInRange(),[l.noncurrent]:this.range&&!a})} .currentMonth=${a} .dateTimeFormat=${this.dateTimeFormat} .day=${s} .disabled=${!o} .endOfRange=${this.isEndOfRange(i)} .highlighted=${this.betweenSelectedRange(i)} @calciteInternalDayHover=${this.dayHover} @calciteInternalDaySelect=${this.daySelect} .range=${!!this.startDate&&!!this.endDate&&!h(this.startDate,this.endDate)} .rangeEdge=${n===0?"start":n===6?"end":void 0} .rangeHover=${o&&this.isRangeHover(i)} .scale=${this.scale} .selected=${this.isSelected(i)} .startOfRange=${this.isStartOfRange(i)} .value=${i} ${R(d=>{r&&e&&this.activeFocus&&d?.setFocus()})}></calcite-date-picker-day></div>`)}renderCalendar(e,a,t=!1){return v`<div class=${g({[l.calendar]:!0,[l.calendarStart]:!t})}><calcite-date-picker-month-header .activeDate=${t?I(this.activeDate):this.activeDate} data-test-calendar=${t?"end":"start"} .headingLevel=${this.headingLevel} .localeData=${this.localeData} .max=${this.max} .messages=${this.messages} .min=${this.min} .monthStyle=${this.monthStyle} @calciteInternalDatePickerMonthHeaderSelectChange=${this.monthHeaderSelectChange} .position=${t?"end":this.range?"start":null} .scale=${this.scale} .selectedDate=${this.selectedDate}></calcite-date-picker-month-header>${this.renderMonthCalendar(e,a,t)}</div>`}renderMonthCalendar(e,a,t=!1){return v`<div class=${g({[l.month]:!0})} @keydown=${this.keyDownHandler}><div class=${g({[l.weekHeaderContainer]:!0})} role=row>${e.map(i=>v`<span class=${g({[l.weekHeader]:!0})} role=columnheader>${i}</span>`)}</div><div class=${g({[l.weekDays]:!0})} role=row>${a.map((i,s)=>this.renderDateDay(i,t?50+s:s))}</div></div>`}};x("calcite-date-picker-month",b);export{b as DatePickerMonth};
|
|
3
|
+
v3.1.0 */
|
|
4
|
+
import{a as f,b as m,j as h,m as F,n as I,q as k}from"./SSG42PTH.js";import"./LOLCQBHI.js";import{a as H}from"./3NWI6OP2.js";import"./LVPZFVWV.js";import{b as R}from"./AE37DSUM.js";import{J as x,e as $,f as v,v as p,w as M,x as g}from"./RVKGKVXB.js";var l={calendar:"calendar",calendarContainer:"calendar-container",calendarStart:"calendar--start",currentDay:"current-day",dayContainer:"day-container",insideRangeHover:"inside-range--hover",month:"month",noncurrent:"noncurrent",outsideRangeHover:"outside-range--hover",weekDays:"week-days",weekHeader:"week-header",weekHeaderContainer:"week-header-container"},A=$`:host([hidden]){display:none}[hidden]{display:none}.calendar-container{display:flex;inline-size:100%}:host([range][layout=vertical]) .calendar-container{flex-direction:column}.calendar{inline-size:100%}.week-header-container{display:flex;block-size:16px;padding-inline:var(--calcite-spacing-sm);padding-block:var(--calcite-spacing-md)}.week-header{display:flex;align-items:center;justify-content:center;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-bold);inline-size:14.2857142857%;color:var(--calcite-date-picker-week-header-text-color, var(--calcite-color-text-3))}.day-container{display:flex;inline-size:100%;min-inline-size:0px;justify-content:center}.day-container calcite-date-picker-day{inline-size:100%}.week-days{display:grid;grid-template-columns:repeat(7,1fr);grid-auto-rows:1fr;padding-inline:var(--calcite-spacing-sm);padding-block-end:var(--calcite-spacing-sm)}.month-header{display:flex;inline-size:100%;justify-content:space-between}.month{display:flex;inline-size:100%;flex-direction:column;justify-content:space-between}.day{font-size:var(--calcite-font-size)}:host([scale=s]) .week-days{padding-inline:var(--calcite-spacing-xs);padding-block-end:var(--calcite-spacing-xs)}:host([scale=s]) .week-header-container{padding-inline:var(--calcite-spacing-xs);padding-block:var(--calcite-spacing-sm)}:host([scale=s]) .day{font-size:var(--calcite-font-size-sm)}:host([scale=l]) .week-header{font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) .week-days{padding-inline:var(--calcite-spacing-md);padding-block-end:var(--calcite-spacing-md)}:host([scale=l]) .week-header-container{padding-inline:var(--calcite-spacing-md);padding-block:var(--calcite-spacing-md-plus)}:host([scale=l]) .day{font-size:var(--calcite-font-size-md)}.calendar--start{border-width:0px;border-style:solid;border-color:var(--calcite-date-picker-range-calendar-divider-color, var(--calcite-color-border-1))}:host([range][layout=horizontal]) .calendar--start{border-inline-end-width:var(--calcite-border-width-sm)}:host([range][layout=vertical]) .calendar--start{border-block-end-width:var(--calcite-border-width-sm)}.noncurrent{pointer-events:none;opacity:0}`,y=7,w=6,b=class extends M{constructor(){super(),this.activeDate=new Date,this.range=!1,this.calciteInternalDatePickerDayHover=p({cancelable:!1}),this.calciteInternalDatePickerDaySelect=p({cancelable:!1}),this.calciteInternalDatePickerMonthActiveDateChange=p({cancelable:!1}),this.calciteInternalDatePickerMonthChange=p({cancelable:!1}),this.calciteInternalDatePickerMonthMouseOut=p({cancelable:!1}),this.listen("pointerout",this.pointerOutHandler),this.listen("focusout",this.disableActiveFocus)}static{this.properties={focusedDate:16,activeDate:0,dateTimeFormat:0,endDate:0,headingLevel:11,hoverRange:0,layout:3,localeData:0,max:0,messages:0,min:0,monthStyle:1,range:7,scale:3,selectedDate:0,startDate:0}}static{this.styles=A}load(){this.focusedDate=this.selectedDate||this.activeDate}willUpdate(e){e.has("activeDate")&&this.updateFocusedDateWithActive(this.activeDate),e.has("selectedDate")&&(this.focusedDate=this.selectedDate)}updateFocusedDateWithActive(e){this.selectedDate||(this.focusedDate=f(e,this.min,this.max)?e:m(e,this.min,this.max))}keyDownHandler(e){if(e.defaultPrevented)return;let a=this.el.dir==="rtl",t=e.target.value;switch(e.key){case"ArrowUp":e.preventDefault(),this.addDays(-7,t);break;case"ArrowRight":e.preventDefault(),this.addDays(a?-1:1,t);break;case"ArrowDown":e.preventDefault(),this.addDays(7,t);break;case"ArrowLeft":e.preventDefault(),this.addDays(a?1:-1,t);break;case"PageUp":e.preventDefault(),this.addMonths(-1,t);break;case"PageDown":e.preventDefault(),this.addMonths(1,t);break;case"Home":e.preventDefault(),this.activeDate.setDate(1),this.addDays(0,t);break;case"End":e.preventDefault(),this.activeDate.setDate(new Date(this.activeDate.getFullYear(),this.activeDate.getMonth()+1,0).getDate()),this.addDays(0,t);break;case"Enter":case" ":e.preventDefault();break;case"Tab":this.activeFocus=!1}}disableActiveFocus(){this.activeFocus=!1}pointerOutHandler(){this.calciteInternalDatePickerMonthMouseOut.emit()}addMonths(e,a){let t=new Date(a);t.setMonth(a.getMonth()+e),this.calciteInternalDatePickerMonthActiveDateChange.emit(m(t,this.min,this.max)),this.focusedDate=m(t,this.min,this.max),this.activeFocus=!0,this.calciteInternalDatePickerDayHover.emit(t)}addDays(e=0,a){let t=new Date(a);t.setDate(a.getDate()+e),this.calciteInternalDatePickerMonthActiveDateChange.emit(m(t,this.min,this.max)),this.focusedDate=m(t,this.min,this.max),this.activeFocus=!0,this.calciteInternalDatePickerDayHover.emit(t)}getPreviousMonthDays(e,a,t){let i=new Date(a,e,0),s=i.getDate(),n=i.getDay(),r=[];if(n===(t+w)%y)return r;if(n===t)return[s];for(let c=(y+n-t)%y;c>=0;c--)r.push(s-c);return r}getCurrentMonthDays(e,a){let t=new Date(a,e+1,0).getDate(),i=[];for(let s=0;s<t;s++)i.push(s+1);return i}getNextMonthDays(e,a,t){let i=new Date(a,e+1,0).getDay(),s=[];if(i===(t+w)%y)return s;for(let n=0;n<(w-(i-t))%y;n++)s.push(n+1);return s}betweenSelectedRange(e){return!!(this.startDate&&this.endDate&&e>this.startDate&&e<this.endDate&&!this.isRangeHover(e))}isSelected(e){return!!(h(e,this.selectedDate)||this.startDate&&h(e,this.startDate)||this.endDate&&h(e,this.endDate))}isStartOfRange(e){return!!(this.startDate&&!h(this.startDate,this.endDate)&&h(this.startDate,e)&&!this.isEndOfRange(e))}isEndOfRange(e){return!!(this.endDate&&!h(this.startDate,this.endDate)&&h(this.endDate,e)||!this.endDate&&this.hoverRange&&h(this.startDate,this.hoverRange.end)&&h(e,this.hoverRange.end))}dayHover(e){let a=e.target;a.disabled?this.calciteInternalDatePickerMonthMouseOut.emit():this.calciteInternalDatePickerDayHover.emit(a.value),e.stopPropagation()}daySelect(e){let a=e.target;this.activeFocus=!1,this.calciteInternalDatePickerDaySelect.emit(a.value),e.stopPropagation()}isFocusedOnStart(){return this.hoverRange?.focused==="start"}isHoverInRange(){if(!this.hoverRange||!this.startDate)return!1;let{start:e,end:a}=this.hoverRange,t=this.isFocusedOnStart(),i=this.startDate&&a>this.startDate,s=this.endDate&&a<this.endDate,n=this.startDate&&e>this.startDate,r=this.endDate&&e<this.endDate,c=!t&&this.startDate&&i&&(!this.endDate||s),o=t&&this.startDate&&n&&r;return c||o}isRangeHover(e){if(!this.hoverRange)return!1;let{start:a,end:t}=this.hoverRange,i=this.isFocusedOnStart(),s=this.isHoverInRange(),n=e>a&&e<this.startDate,r=e<t&&e>this.endDate,c=e>t&&e<this.endDate,o=e<a&&e>this.startDate,d=e<t&&e>this.startDate,D=e>a&&e<this.endDate,u=this.startDate&&this.endDate;if(s){if(u)return i?e<this.endDate&&(o||n):c||r;if(this.startDate&&!this.endDate)return i?n:d;if(!this.startDate&&this.endDate)return i?D:r}else if(u)return i?n:r}getDays(e,a,t,i="start"){let s=this.activeDate.getMonth(),n=s+1;s=i==="end"?n:s;let r=0,c=()=>r++%7,o=this.activeDate.getFullYear();return[...e.map(d=>({active:!1,day:d,dayInWeek:c(),date:new Date(o,s-1,d)})),...a.map(d=>{let D=new Date(o,s,d),u=h(D,new Date);return{active:this.focusedDate&&this.focusedDate!==this.startDate&&this.focusedDate!==this.endDate?h(D,this.focusedDate):h(D,this.startDate)||h(D,this.endDate),currentMonth:!0,currentDay:u,day:d,dayInWeek:c(),date:D,ref:!0}}),...t.map(d=>({active:!1,day:d,dayInWeek:c(),date:new Date(o,n,d)}))]}monthHeaderSelectChange(e){let a=new Date(e.detail),t=e.target;this.updateFocusableDate(a),e.stopPropagation(),this.calciteInternalDatePickerMonthChange.emit({date:a,position:t.position})}updateFocusableDate(e){!this.selectedDate||!this.range?this.focusedDate=this.getFirstValidDateOfMonth(e):this.selectedDate&&this.range&&(!k(this.startDate,e)||!k(this.endDate,e))&&(this.focusedDate=this.getFirstValidDateOfMonth(e))}getFirstValidDateOfMonth(e){return e.getDate()===1?e:F(e,this.min,this.max)}render(){let e=this.activeDate.getMonth(),a=this.activeDate.getFullYear(),t=this.localeData.weekStart%7,{abbreviated:i,short:s,narrow:n}=this.localeData.days,r=this.scale==="s"?n||s||i:s||i||n,c=[...r.slice(t,7),...r.slice(0,t)],o=this.getCurrentMonthDays(e,a),d=this.getPreviousMonthDays(e,a,t),D=this.getNextMonthDays(e,a,t),u=e+1,P=this.getPreviousMonthDays(u,a,t),C=this.getCurrentMonthDays(u,a),S=this.getNextMonthDays(u,a,t),z=this.getDays(d,o,D),O=this.getDays(P,C,S,"end");return v`<div class=${g({[l.calendarContainer]:!0})} role=grid>${this.renderCalendar(c,z)}${this.range&&this.renderCalendar(c,O,!0)||""}</div>`}renderDateDay({active:e,currentMonth:a,currentDay:t,date:i,day:s,dayInWeek:n,ref:r},c){let o=f(i,this.min,this.max);return H(c,v`<div class=${g({[l.dayContainer]:!0})} role=gridcell><calcite-date-picker-day .active=${e} class=${g({[l.currentDay]:t,[l.insideRangeHover]:this.isHoverInRange(),[l.outsideRangeHover]:!this.isHoverInRange(),[l.noncurrent]:this.range&&!a})} .currentMonth=${a} .dateTimeFormat=${this.dateTimeFormat} .day=${s} .disabled=${!o} .endOfRange=${this.isEndOfRange(i)} .highlighted=${this.betweenSelectedRange(i)} @calciteInternalDayHover=${this.dayHover} @calciteInternalDaySelect=${this.daySelect} .range=${!!this.startDate&&!!this.endDate&&!h(this.startDate,this.endDate)} .rangeEdge=${n===0?"start":n===6?"end":void 0} .rangeHover=${o&&this.isRangeHover(i)} .scale=${this.scale} .selected=${this.isSelected(i)} .startOfRange=${this.isStartOfRange(i)} .value=${i} ${R(d=>{r&&e&&this.activeFocus&&d?.setFocus()})}></calcite-date-picker-day></div>`)}renderCalendar(e,a,t=!1){return v`<div class=${g({[l.calendar]:!0,[l.calendarStart]:!t})}><calcite-date-picker-month-header .activeDate=${t?I(this.activeDate):this.activeDate} data-test-calendar=${t?"end":"start"} .headingLevel=${this.headingLevel} .localeData=${this.localeData} .max=${this.max} .messages=${this.messages} .min=${this.min} .monthStyle=${this.monthStyle} @calciteInternalDatePickerMonthHeaderSelectChange=${this.monthHeaderSelectChange} .position=${t?"end":this.range?"start":null} .scale=${this.scale} .selectedDate=${this.selectedDate}></calcite-date-picker-month-header>${this.renderMonthCalendar(e,a,t)}</div>`}renderMonthCalendar(e,a,t=!1){return v`<div class=${g({[l.month]:!0})} @keydown=${this.keyDownHandler}><div class=${g({[l.weekHeaderContainer]:!0})} role=row>${e.map(i=>v`<span class=${g({[l.weekHeader]:!0})} role=columnheader>${i}</span>`)}</div><div class=${g({[l.weekDays]:!0})} role=row>${a.map((i,s)=>this.renderDateDay(i,t?50+s:s))}</div></div>`}};x("calcite-date-picker-month",b);export{b as DatePickerMonth};
|
|
@@ -1,4 +1,4 @@
|
|
|
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.1.0
|
|
4
|
-
import{a as V}from"./
|
|
3
|
+
v3.1.0 */
|
|
4
|
+
import{a as V}from"./7TFPBMHK.js";var Z=60,z=Z*60,P=z*24,at=P*7,A=1e3,U=Z*A,k=z*A,Q=P*A,X=at*A,x="millisecond",O="second",p="minute",E="hour",d="day",g="week",S="month",F="quarter",I="year",m="date",J="YYYY-MM-DDTHH:mm:ssZ",j="Invalid Date",K=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,B=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var b=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},it=function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),a=n%60;return(e<=0?"+":"-")+b(r,2,"0")+":"+b(a,2,"0")},st=function u(t,e){if(t.date()<e.date())return-u(e,t);var n=(e.year()-t.year())*12+(e.month()-t.month()),r=t.clone().add(n,S),a=e-r<0,i=t.clone().add(n+(a?-1:1),S);return+(-(n+(e-r)/(a?r-i:i-r))||0)},ut=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},ot=function(t){var e={M:S,y:I,w:g,d,D:m,h:E,m:p,s:O,ms:x,Q:F};return e[t]||String(t||"").toLowerCase().replace(/s$/,"")},ct=function(t){return t===void 0},tt={s:b,z:it,m:st,a:ut,p:ot,u:ct};var w="en",N={};N[w]=V;var rt="$isDayjsObject",G=function(t){return t instanceof W||!!(t&&t[rt])},R=function u(t,e,n){var r;if(!t)return w;if(typeof t=="string"){var a=t.toLowerCase();N[a]&&(r=a),e&&(N[a]=e,r=a);var i=t.split("-");if(!r&&i.length>1)return u(i[0])}else{var o=t.name;N[o]=t,r=o}return!n&&r&&(w=r),r||!n&&w},C=function(t,e){if(G(t))return t.clone();var n=typeof e=="object"?e:{};return n.date=t,n.args=arguments,new W(n)},ft=function(t,e){return C(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})},s=tt;s.l=R;s.i=G;s.w=ft;var ht=function(t){var e=t.date,n=t.utc;if(e===null)return new Date(NaN);if(s.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var r=e.match(K);if(r){var a=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)},W=function(){function u(e){this.$L=R(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[rt]=!0}var t=u.prototype;return t.parse=function(n){this.$d=ht(n),this.init()},t.init=function(){var n=this.$d;this.$y=n.getFullYear(),this.$M=n.getMonth(),this.$D=n.getDate(),this.$W=n.getDay(),this.$H=n.getHours(),this.$m=n.getMinutes(),this.$s=n.getSeconds(),this.$ms=n.getMilliseconds()},t.$utils=function(){return s},t.isValid=function(){return this.$d.toString()!==j},t.isSame=function(n,r){var a=C(n);return this.startOf(r)<=a&&a<=this.endOf(r)},t.isAfter=function(n,r){return C(n)<this.startOf(r)},t.isBefore=function(n,r){return this.endOf(r)<C(n)},t.$g=function(n,r,a){return s.u(n)?this[r]:this.set(a,n)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(n,r){var a=this,i=s.u(r)?!0:r,o=s.p(n),c=function(y,M){var $=s.w(a.$u?Date.UTC(a.$y,M,y):new Date(a.$y,M,y),a);return i?$:$.endOf(d)},v=function(y,M){var $=[0,0,0,0],L=[23,59,59,999];return s.w(a.toDate()[y].apply(a.toDate("s"),(i?$:L).slice(M)),a)},f=this.$W,D=this.$M,h=this.$D,l="set"+(this.$u?"UTC":"");switch(o){case I:return i?c(1,0):c(31,11);case S:return i?c(1,D):c(0,D+1);case g:{var _=this.$locale().weekStart||0,T=(f<_?f+7:f)-_;return c(i?h-T:h+(6-T),D)}case d:case m:return v(l+"Hours",0);case E:return v(l+"Minutes",1);case p:return v(l+"Seconds",2);case O:return v(l+"Milliseconds",3);default:return this.clone()}},t.endOf=function(n){return this.startOf(n,!1)},t.$set=function(n,r){var a,i=s.p(n),o="set"+(this.$u?"UTC":""),c=(a={},a[d]=o+"Date",a[m]=o+"Date",a[S]=o+"Month",a[I]=o+"FullYear",a[E]=o+"Hours",a[p]=o+"Minutes",a[O]=o+"Seconds",a[x]=o+"Milliseconds",a)[i],v=i===d?this.$D+(r-this.$W):r;if(i===S||i===I){var f=this.clone().set(m,1);f.$d[c](v),f.init(),this.$d=f.set(m,Math.min(this.$D,f.daysInMonth())).$d}else c&&this.$d[c](v);return this.init(),this},t.set=function(n,r){return this.clone().$set(n,r)},t.get=function(n){return this[s.p(n)]()},t.add=function(n,r){var a=this,i;n=Number(n);var o=s.p(r),c=function(h){var l=C(a);return s.w(l.date(l.date()+Math.round(h*n)),a)};if(o===S)return this.set(S,this.$M+n);if(o===I)return this.set(I,this.$y+n);if(o===d)return c(1);if(o===g)return c(7);var v=(i={},i[p]=U,i[E]=k,i[O]=A,i)[o]||1,f=this.$d.getTime()+n*v;return s.w(f,this)},t.subtract=function(n,r){return this.add(n*-1,r)},t.format=function(n){var r=this,a=this.$locale();if(!this.isValid())return a.invalidDate||j;var i=n||J,o=s.z(this),c=this.$H,v=this.$m,f=this.$M,D=a.weekdays,h=a.months,l=a.meridiem,_=function($,L,Y,nt){return $&&($[L]||$(r,i))||Y[L].slice(0,nt)},T=function($){return s.s(c%12||12,$,"0")},H=l||function(M,$,L){var Y=M<12?"AM":"PM";return L?Y.toLowerCase():Y},y=function($){switch($){case"YY":return String(r.$y).slice(-2);case"YYYY":return s.s(r.$y,4,"0");case"M":return f+1;case"MM":return s.s(f+1,2,"0");case"MMM":return _(a.monthsShort,f,h,3);case"MMMM":return _(h,f);case"D":return r.$D;case"DD":return s.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return _(a.weekdaysMin,r.$W,D,2);case"ddd":return _(a.weekdaysShort,r.$W,D,3);case"dddd":return D[r.$W];case"H":return String(c);case"HH":return s.s(c,2,"0");case"h":return T(1);case"hh":return T(2);case"a":return H(c,v,!0);case"A":return H(c,v,!1);case"m":return String(v);case"mm":return s.s(v,2,"0");case"s":return String(r.$s);case"ss":return s.s(r.$s,2,"0");case"SSS":return s.s(r.$ms,3,"0");case"Z":return o;default:break}return null};return i.replace(B,function(M,$){return $||y(M)||o.replace(":","")})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(n,r,a){var i=this,o=s.p(r),c=C(n),v=(c.utcOffset()-this.utcOffset())*U,f=this-c,D=function(){return s.m(i,c)},h;switch(o){case I:h=D()/12;break;case S:h=D();break;case F:h=D()/3;break;case g:h=(f-v)/X;break;case d:h=(f-v)/Q;break;case E:h=f/k;break;case p:h=f/U;break;case O:h=f/A;break;default:h=f;break}return a?h:s.a(h)},t.daysInMonth=function(){return this.endOf(S).$D},t.$locale=function(){return N[this.$L]},t.locale=function(n,r){if(!n)return this.$L;var a=this.clone(),i=R(n,r,!0);return i&&(a.$L=i),a},t.clone=function(){return s.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},u}(),et=W.prototype;C.prototype=et;[["$ms",x],["$s",O],["$m",p],["$H",E],["$W",d],["$M",S],["$y",I],["$D",m]].forEach(function(u){et[u[1]]=function(t){return this.$g(t,u[0],u[1])}});C.extend=function(u,t){return u.$i||(u(t,W,C),u.$i=!0),C};C.locale=R;C.isDayjs=G;C.unix=function(u){return C(u*1e3)};C.en=N[w];C.Ls=N;C.p={};var St=C;export{J as a,St as b};
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
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.1.0
|
|
4
|
-
import{b as l,c}from"./
|
|
3
|
+
v3.1.0 */
|
|
4
|
+
import{b as l,c}from"./RCFBJGNR.js";var b=(n,f,i)=>{let u=l(f),p=new RegExp(u,"i");n.length===0&&console.warn(`No data was passed to the filter function.
|
|
5
5
|
The data argument should be an array of objects`);let o=(r,a,s)=>{if(r?.constant||r?.filterDisabled)return!0;let e=!1;return c(r,(t,d)=>{typeof t=="function"||t==null||s&&!s.includes(d)||(Array.isArray(t)||typeof t=="object"&&t!==null?o(t,a)&&(e=!0):a.test(t)&&(e=!0))}),e};return n.filter(r=>o(r,p,i))};export{b as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
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.1.0
|
|
4
|
-
import{a as g,b as p,d as L,f as D,g as k,h as I,j as T,l as H,m as S,o as x,p as E}from"./BBBQCSKO.js";import{b as h,c as v}from"./RYZ5LADD.js";import{b as d}from"./KWU5J6IZ.js";import{b}from"./OKB553SG.js";import{a as A}from"./KRSUYP6N.js";import{b as f}from"./TMDB4EP2.js";import{e as V}from"./UJMXOOOO.js";import{a as C,d as $}from"./OL4NX2FE.js";import"./LK37K2FJ.js";import"./RGOBNV2R.js";import{J as U,e as F,f as m,v as y,w as P,x as n}from"./WEPMLYVL.js";var t={button:"button",buttonBottomLeft:"button--bottom-left",buttonBottomRight:"button--bottom-right",buttonFractionalSecondDown:"button--fractionalSecond-down",buttonFractionalSecondUp:"button--fractionalSecond-up",buttonHourDown:"button--hour-down",buttonHourUp:"button--hour-up",buttonMeridiemDown:"button--meridiem-down",buttonMeridiemUp:"button--meridiem-up",buttonMinuteDown:"button--minute-down",buttonMinuteUp:"button--minute-up",buttonSecondDown:"button--second-down",buttonSecondUp:"button--second-up",buttonTopLeft:"button--top-left",buttonTopRight:"button--top-right",column:"column",decimalSeparator:"decimal-separator",delimiter:"delimiter",fractionalSecond:"fractionalSecond",hour:"hour",hourSuffix:"hour-suffix",input:"input",inputFocus:"inputFocus",meridiem:"meridiem",minute:"minute",minuteSuffix:"minute-suffix",second:"second",secondSuffix:"second-suffix",showMeridiem:"show-meridiem",showSecond:"show-second","scale-s":"scale-s","scale-m":"scale-m","scale-l":"scale-l",timePicker:"time-picker",meridiemStart:"meridiem--start"},W=F`:host{display:inline-block}.time-picker{display:flex;-webkit-user-select:none;user-select:none;align-items:center;background-color:var(--calcite-color-foreground-1);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);--tw-shadow: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);--tw-shadow-colored: 0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);border-radius:var(--calcite-border-radius)}.time-picker .column{display:flex;flex-direction:column}.time-picker .meridiem--start{order:-1}.time-picker .button{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;background-color:var(--calcite-color-foreground-1)}.time-picker .button:hover,.time-picker .button:focus{background-color:var(--calcite-color-foreground-2);outline:2px solid transparent;outline-offset:2px;z-index:var(--calcite-z-index-header);outline-offset:0}.time-picker .button:active{background-color:var(--calcite-color-foreground-3)}.time-picker .button.top-left{border-start-start-radius:var(--calcite-border-radius)}.time-picker .button.bottom-left{border-end-start-radius:var(--calcite-border-radius)}.time-picker .button.top-right{border-start-end-radius:var(--calcite-border-radius)}.time-picker .button.bottom-right{border-end-end-radius:var(--calcite-border-radius)}.time-picker .button calcite-icon{color:var(--calcite-color-text-3)}.time-picker .input{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;background-color:var(--calcite-color-foreground-1);font-weight:var(--calcite-font-weight-medium)}.time-picker .input:hover{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-2);z-index:var(--calcite-z-index-header)}.time-picker .input:focus,.time-picker .input:hover:focus{outline:2px solid transparent;outline-offset:2px;outline-offset:0}.time-picker .input.inputFocus,.time-picker .input:hover.inputFocus{box-shadow:inset 0 0 0 2px var(--calcite-color-brand);z-index:var(--calcite-z-index-header)}.time-picker.scale-s{font-size:var(--calcite-font-size--1)}.time-picker.scale-s .button,.time-picker.scale-s .input{padding-inline:.75rem;padding-block:.25rem}.time-picker.scale-s:not(.show-meridiem) .delimiter:last-child{padding-inline-end:.75rem}.time-picker.scale-m{font-size:var(--calcite-font-size-0)}.time-picker.scale-m .button,.time-picker.scale-m .input{padding-inline:1rem;padding-block:.5rem}.time-picker.scale-m:not(.show-meridiem) .delimiter:last-child{padding-inline-end:1rem}.time-picker.scale-l{font-size:var(--calcite-font-size-1)}.time-picker.scale-l .button,.time-picker.scale-l .input{padding-inline:1.25rem;padding-block:.75rem}.time-picker.scale-l:not(.show-meridiem) .delimiter:last-child{padding-inline-end:1.25rem}:host([hidden]){display:none}[hidden]{display:none}`;function G(w){return w.charAt(0).toUpperCase()+w.slice(1)}var z=class extends P{constructor(){super(),this.pointerActivated=!1,this.localizedDecimalSeparator=".",this.hourFormat="user",this.messages=A(),this.scale="m",this.step=60,this.value=null,this.calciteTimePickerChange=y({cancelable:!1}),this.listen("blur",this.blurHandler),this.listen("keydown",this.keyDownHandler),this.listen("pointerdown",this.pointerDownHandler)}static{this.properties={activeEl:16,effectiveHourFormat:16,fractionalSecond:16,hour:16,localizedDecimalSeparator:16,localizedFractionalSecond:16,localizedHour:16,localizedHourSuffix:16,localizedMeridiem:16,localizedMinute:16,localizedMinuteSuffix:16,localizedSecond:16,localizedSecondSuffix:16,meridiem:16,minute:16,second:16,showFractionalSecond:16,showSecond:16,hourFormat:3,messageOverrides:0,numberingSystem:1,scale:3,step:11,value:1}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=W}async setFocus(){await $(this),this.el?.focus()}connectedCallback(){super.connectedCallback(),this.updateLocale(),this.toggleSecond()}willUpdate(e){e.has("step")&&(this.hasUpdated||this.step!==60)&&this.toggleSecond(),e.has("value")&&(this.hasUpdated||this.value!==null)&&this.setValue(this.value),(e.has("hourFormat")||e.has("messages"))&&this.updateLocale()}blurHandler(){this.activeEl=void 0,this.pointerActivated=!1}keyDownHandler(e){this.pointerActivated=!1;let{defaultPrevented:i,key:a}=e;if(!i)switch(this.activeEl){case this.hourEl:a==="ArrowRight"&&(this.focusPart("minute"),e.preventDefault());break;case this.minuteEl:switch(a){case"ArrowLeft":this.focusPart("hour"),e.preventDefault();break;case"ArrowRight":this.step!==60?(this.focusPart("second"),e.preventDefault()):this.effectiveHourFormat==="12"&&(this.focusPart("meridiem"),e.preventDefault());break}break;case this.secondEl:switch(a){case"ArrowLeft":this.focusPart("minute"),e.preventDefault();break;case"ArrowRight":this.showFractionalSecond?this.focusPart("fractionalSecond"):this.effectiveHourFormat==="12"&&(this.focusPart("meridiem"),e.preventDefault());break}break;case this.fractionalSecondEl:switch(a){case"ArrowLeft":this.focusPart("second"),e.preventDefault();break;case"ArrowRight":this.effectiveHourFormat==="12"&&(this.focusPart("meridiem"),e.preventDefault());break}break;case this.meridiemEl:switch(a){case"ArrowLeft":this.showFractionalSecond?this.focusPart("fractionalSecond"):this.step!==60?(this.focusPart("second"),e.preventDefault()):(this.focusPart("minute"),e.preventDefault());break}break}}pointerDownHandler(){this.pointerActivated=!0}async focusPart(e){await $(this),this[`${e||"hour"}El`]?.focus()}decrementHour(){let e=this.hour?parseInt(this.hour)===0?23:parseInt(this.hour)-1:0;this.setValuePart("hour",e)}decrementMeridiem(){let e=this.meridiem==="PM"?"AM":"PM";this.setValuePart("meridiem",e)}decrementMinuteOrSecond(e){let i;if(d(this[e])){let a=parseInt(this[e]);i=a===0?59:a-1}else i=59;this.setValuePart(e,i)}decrementMinute(){this.decrementMinuteOrSecond("minute")}decrementSecond(){this.decrementMinuteOrSecond("second")}focusHandler(e){this.pointerActivated||(this.activeEl=e.currentTarget)}fractionalSecondKeyDownHandler(e){let{key:i}=e;if(b.includes(i)){let a=h(this.step),s=parseInt(this.fractionalSecond),o=s.toString().length,r;o>=a?r=i.padStart(a,"0"):o<a&&(r=`${s}${i}`.padStart(a,"0")),this.setValuePart("fractionalSecond",parseFloat(`0.${r}`))}else switch(i){case"Backspace":case"Delete":this.setValuePart("fractionalSecond",null);break;case"ArrowDown":e.preventDefault(),this.nudgeFractionalSecond("down");break;case"ArrowUp":e.preventDefault(),this.nudgeFractionalSecond("up");break;case" ":e.preventDefault();break}}fractionalSecondDownClickHandler(){this.activeEl=this.fractionalSecondEl,this.fractionalSecondEl.focus(),this.nudgeFractionalSecond("down")}fractionalSecondUpClickHandler(){this.activeEl=this.fractionalSecondEl,this.fractionalSecondEl.focus(),this.nudgeFractionalSecond("up")}hourDownClickHandler(){this.activeEl=this.hourEl,this.hourEl.focus(),this.decrementHour()}hourKeyDownHandler(e){let{key:i}=e;if(b.includes(i)){let a=parseInt(i),s;if(d(this.hour))switch(this.effectiveHourFormat){case"12":s=this.hour==="01"&&a>=0&&a<=2?`1${a}`:a;break;case"24":this.hour==="01"?s=`1${a}`:this.hour==="02"&&a>=0&&a<=3?s=`2${a}`:s=a;break}else s=a;this.setValuePart("hour",s)}else switch(i){case"Backspace":case"Delete":this.setValuePart("hour",null);break;case"ArrowDown":e.preventDefault(),this.decrementHour();break;case"ArrowUp":e.preventDefault(),this.incrementHour();break;case" ":e.preventDefault();break}}hourUpClickHandler(){this.activeEl=this.hourEl,this.hourEl.focus(),this.incrementHour()}incrementMeridiem(){let e=this.meridiem==="AM"?"PM":"AM";this.setValuePart("meridiem",e)}incrementHour(){let e=d(this.hour)?this.hour==="23"?0:parseInt(this.hour)+1:1;this.setValuePart("hour",e)}incrementMinuteOrSecond(e){let i=d(this[e])?this[e]==="59"?0:parseInt(this[e])+1:0;this.setValuePart(e,i)}incrementMinute(){this.incrementMinuteOrSecond("minute")}incrementSecond(){this.incrementMinuteOrSecond("second")}inputClickHandler(e){this.activeEl=e.target}meridiemUpClickHandler(){this.activeEl=this.meridiemEl,this.meridiemEl.focus(),this.incrementMeridiem()}meridiemKeyDownHandler(e){switch(e.key){case"a":this.setValuePart("meridiem","AM");break;case"p":this.setValuePart("meridiem","PM");break;case"Backspace":case"Delete":this.setValuePart("meridiem",null);break;case"ArrowUp":e.preventDefault(),this.incrementMeridiem();break;case"ArrowDown":e.preventDefault(),this.decrementMeridiem();break;case" ":e.preventDefault();break}}meridiemDownClickHandler(){this.activeEl=this.meridiemEl,this.meridiemEl.focus(),this.decrementMeridiem()}minuteDownClickHandler(){this.activeEl=this.minuteEl,this.minuteEl.focus(),this.decrementMinute()}minuteUpClickHandler(){this.activeEl=this.minuteEl,this.minuteEl.focus(),this.incrementMinute()}minuteKeyDownHandler(e){let{key:i}=e;if(b.includes(i)){let a=parseInt(i),s;if(d(this.minute)&&this.minute.startsWith("0")){let o=parseInt(this.minute);s=o>g?a:`${o}${a}`}else s=a;this.setValuePart("minute",s)}else switch(i){case"Backspace":case"Delete":this.setValuePart("minute",null);break;case"ArrowDown":e.preventDefault(),this.decrementMinute();break;case"ArrowUp":e.preventDefault(),this.incrementMinute();break;case" ":e.preventDefault();break}}nudgeFractionalSecond(e){let i=v(this.step),a=h(this.step),s=parseInt(this.fractionalSecond),o=parseFloat(`0.${this.fractionalSecond}`),r,l,c,u;e==="up"&&(r=isNaN(s)?0:o+i,l=parseFloat(r.toFixed(a)),c=v(l),u=l<1&&h(c)>0?p(c,a):"".padStart(a,"0")),e==="down"&&(r=isNaN(s)||s===0?1-i:o-i,l=parseFloat(r.toFixed(a)),c=v(l),u=l<1&&h(c)>0&&Math.sign(c)===1?p(c,a):"".padStart(a,"0")),this.setValuePart("fractionalSecond",u)}sanitizeValue(e){let{hour:i,minute:a,second:s,fractionalSecond:o}=E(e);if(o){let r=this.sanitizeFractionalSecond(o);return`${i}:${a}:${s}.${r}`}return H(e)&&e}sanitizeFractionalSecond(e){return e&&h(this.step)!==e.length?parseFloat(`0.${e}`).toFixed(h(this.step)).replace("0.",""):e}secondKeyDownHandler(e){let{key:i}=e;if(b.includes(i)){let a=parseInt(i),s;if(d(this.second)&&this.second.startsWith("0")){let o=parseInt(this.second);s=o>g?a:`${o}${a}`}else s=a;this.setValuePart("second",s)}else switch(i){case"Backspace":case"Delete":this.setValuePart("second",null);break;case"ArrowDown":e.preventDefault(),this.decrementSecond();break;case"ArrowUp":e.preventDefault(),this.incrementSecond();break;case" ":e.preventDefault();break}}secondDownClickHandler(){this.activeEl=this.secondEl,this.secondEl.focus(),this.decrementSecond()}secondUpClickHandler(){this.activeEl=this.secondEl,this.secondEl.focus(),this.incrementSecond()}setHourEl(e){this.hourEl=e}setMeridiemEl(e){this.meridiemEl=e}setMinuteEl(e){this.minuteEl=e}setSecondEl(e){this.secondEl=e}setFractionalSecondEl(e){this.fractionalSecondEl=e}setValue(e){if(H(e)){let{hour:i,minute:a,second:s,fractionalSecond:o}=E(e),{effectiveHourFormat:r,messages:{_lang:l},numberingSystem:c}=this,{localizedHour:u,localizedHourSuffix:K,localizedMinute:O,localizedMinuteSuffix:_,localizedSecond:B,localizedDecimalSeparator:N,localizedFractionalSecond:R,localizedSecondSuffix:j,localizedMeridiem:M}=x({value:e,locale:l,numberingSystem:c,hour12:r==="12"});this.hour=i,this.minute=a,this.second=s,this.fractionalSecond=this.sanitizeFractionalSecond(o),this.localizedHour=u,this.localizedHourSuffix=K,this.localizedMinute=O,this.localizedMinuteSuffix=_,this.localizedSecond=B,this.localizedDecimalSeparator=N,this.localizedFractionalSecond=R,this.localizedSecondSuffix=j,M&&(this.localizedMeridiem=M,this.meridiem=I(this.hour))}else this.hour=null,this.fractionalSecond=null,this.localizedHour=null,this.localizedHourSuffix=k("hour",this.messages._lang,this.numberingSystem),this.localizedMeridiem=null,this.localizedMinute=null,this.localizedMinuteSuffix=k("minute",this.messages._lang,this.numberingSystem),this.localizedSecond=null,this.localizedDecimalSeparator=D(this.messages._lang,this.numberingSystem),this.localizedFractionalSecond=null,this.localizedSecondSuffix=k("second",this.messages._lang,this.numberingSystem),this.meridiem=null,this.minute=null,this.second=null,this.value=null}setValuePart(e,i){let{effectiveHourFormat:a,messages:{_lang:s},numberingSystem:o}=this,r=a==="12";if(e==="meridiem"){if(this.meridiem=i,d(this.hour)){let u=parseInt(this.hour);switch(i){case"AM":u>=12&&(this.hour=p(u-12));break;case"PM":u<12&&(this.hour=p(u+12));break}this.localizedHour=S({value:this.hour,part:"hour",locale:s,numberingSystem:o,hour12:r})}}else if(e==="fractionalSecond"){let u=h(this.step);typeof i=="number"?this.fractionalSecond=i===0?"".padStart(u,"0"):p(i,u):this.fractionalSecond=i,this.localizedFractionalSecond=S({value:this.fractionalSecond,part:"fractionalSecond",locale:s,numberingSystem:o,hour12:r})}else this[e]=typeof i=="number"?p(i):i,this[`localized${G(e)}`]=S({value:this[e],part:e,locale:s,numberingSystem:o,hour12:r});let l=!1,c;this.hour&&this.minute?(c=`${this.hour}:${this.minute}`,this.showSecond&&(c=`${c}:${this.second??"00"}`,this.showFractionalSecond&&this.fractionalSecond&&(c=`${c}.${this.fractionalSecond}`))):c=null,this.value!==c&&(l=!0),this.value=c,this.localizedMeridiem=this.value?x({hour12:r,locale:s,numberingSystem:o,value:this.value})?.localizedMeridiem||null:S({value:this.meridiem,part:"meridiem",locale:s,numberingSystem:o}),l&&this.calciteTimePickerChange.emit()}toggleSecond(){this.showSecond=this.step<60,this.showFractionalSecond=h(this.step)>0}updateLocale(){this.effectiveHourFormat=this.hourFormat==="user"?L(this.messages._lang):this.hourFormat,this.localizedDecimalSeparator=D(this.messages._lang,this.numberingSystem),this.meridiemOrder=T(this.messages._lang),this.setValue(this.sanitizeValue(this.value))}render(){let e=d(this.hour),i=C(this.scale),a=d(this.minute),s=d(this.second),o=d(this.fractionalSecond),r=this.messages._lang!=="bg"&&this.localizedSecondSuffix,l=this.effectiveHourFormat==="12";return m`<div class=${n({[t.timePicker]:!0,[t.showMeridiem]:l,[t.showSecond]:this.showSecond,[t[`scale-${this.scale}`]]:!0})} dir=ltr><div class=${n(t.column)} role=group><span .ariaLabel=${this.messages.hourUp} class=${n({[t.button]:!0,[t.buttonHourUp]:!0,[t.buttonTopLeft]:!0})} @click=${this.hourUpClickHandler} role=button><calcite-icon icon=chevron-up .scale=${i}></calcite-icon></span><span .ariaLabel=${this.messages.hour} aria-valuemax=23 aria-valuemin=1 .ariaValueNow=${e&&parseInt(this.hour)||"0"} .ariaValueText=${this.hour} class=${n({[t.input]:!0,[t.hour]:!0,[t.inputFocus]:this.activeEl&&this.activeEl===this.hourEl})} @click=${this.inputClickHandler} @focus=${this.focusHandler} @keydown=${this.hourKeyDownHandler} role=spinbutton tabindex=0 ${f(this.setHourEl)}>${this.localizedHour||"--"}</span><span .ariaLabel=${this.messages.hourDown} class=${n({[t.button]:!0,[t.buttonHourDown]:!0,[t.buttonBottomLeft]:!0})} @click=${this.hourDownClickHandler} role=button><calcite-icon icon=chevron-down .scale=${i}></calcite-icon></span></div><span class=${n({[t.delimiter]:!0,[t.hourSuffix]:!0})}>${this.localizedHourSuffix}</span><div class=${n(t.column)} role=group><span .ariaLabel=${this.messages.minuteUp} class=${n({[t.button]:!0,[t.buttonMinuteUp]:!0})} @click=${this.minuteUpClickHandler} role=button><calcite-icon icon=chevron-up .scale=${i}></calcite-icon></span><span .ariaLabel=${this.messages.minute} aria-valuemax=12 aria-valuemin=1 .ariaValueNow=${a&&parseInt(this.minute)||"0"} .ariaValueText=${this.minute} class=${n({[t.input]:!0,[t.minute]:!0,[t.inputFocus]:this.activeEl&&this.activeEl===this.minuteEl})} @click=${this.inputClickHandler} @focus=${this.focusHandler} @keydown=${this.minuteKeyDownHandler} role=spinbutton tabindex=0 ${f(this.setMinuteEl)}>${this.localizedMinute||"--"}</span><span .ariaLabel=${this.messages.minuteDown} class=${n({[t.button]:!0,[t.buttonMinuteDown]:!0})} @click=${this.minuteDownClickHandler} role=button><calcite-icon icon=chevron-down .scale=${i}></calcite-icon></span></div>${this.showSecond&&m`<span class=${n({[t.delimiter]:!0,[t.minuteSuffix]:!0})}>${this.localizedMinuteSuffix}</span>`||""}${this.showSecond&&m`<div class=${n(t.column)} role=group><span .ariaLabel=${this.messages.secondUp} class=${n({[t.button]:!0,[t.buttonSecondUp]:!0})} @click=${this.secondUpClickHandler} role=button><calcite-icon icon=chevron-up .scale=${i}></calcite-icon></span><span .ariaLabel=${this.messages.second} aria-valuemax=59 aria-valuemin=0 .ariaValueNow=${s&&parseInt(this.second)||"0"} .ariaValueText=${this.second} class=${n({[t.input]:!0,[t.second]:!0,[t.inputFocus]:this.activeEl&&this.activeEl===this.secondEl})} @click=${this.inputClickHandler} @focus=${this.focusHandler} @keydown=${this.secondKeyDownHandler} role=spinbutton tabindex=0 ${f(this.setSecondEl)}>${this.localizedSecond||"--"}</span><span .ariaLabel=${this.messages.secondDown} class=${n({[t.button]:!0,[t.buttonSecondDown]:!0})} @click=${this.secondDownClickHandler} role=button><calcite-icon icon=chevron-down .scale=${i}></calcite-icon></span></div>`||""}${this.showFractionalSecond&&m`<span class=${n({[t.delimiter]:!0,[t.decimalSeparator]:!0})}>${this.localizedDecimalSeparator}</span>`||""}${this.showFractionalSecond&&m`<div class=${n(t.column)} role=group><span .ariaLabel=${this.messages.fractionalSecondUp} class=${n({[t.button]:!0,[t.buttonFractionalSecondUp]:!0})} @click=${this.fractionalSecondUpClickHandler} role=button><calcite-icon icon=chevron-up .scale=${i}></calcite-icon></span><span .ariaLabel=${this.messages.fractionalSecond} aria-valuemax=999 aria-valuemin=1 .ariaValueNow=${o&&parseInt(this.fractionalSecond)||"0"} .ariaValueText=${this.localizedFractionalSecond} class=${n({[t.input]:!0,[t.fractionalSecond]:!0,[t.inputFocus]:this.activeEl&&this.activeEl===this.fractionalSecondEl})} @click=${this.inputClickHandler} @focus=${this.focusHandler} @keydown=${this.fractionalSecondKeyDownHandler} role=spinbutton tabindex=0 ${f(this.setFractionalSecondEl)}>${this.localizedFractionalSecond||"--"}</span><span .ariaLabel=${this.messages.fractionalSecondDown} class=${n({[t.button]:!0,[t.buttonFractionalSecondDown]:!0})} @click=${this.fractionalSecondDownClickHandler} role=button><calcite-icon icon=chevron-down .scale=${i}></calcite-icon></span></div>`||""}${r&&m`<span class=${n({[t.delimiter]:!0,[t.secondSuffix]:!0})}>${this.localizedSecondSuffix}</span>`||""}${l&&m`<div class=${n({[t.column]:!0,[t.meridiemStart]:this.meridiemOrder===0||V(this.el)==="rtl"})} role=group><span .ariaLabel=${this.messages.meridiemUp} class=${n({[t.button]:!0,[t.buttonMeridiemUp]:!0,[t.buttonTopRight]:!0})} @click=${this.meridiemUpClickHandler} role=button><calcite-icon icon=chevron-up .scale=${i}></calcite-icon></span><span .ariaLabel=${this.messages.meridiem} aria-valuemax=2 aria-valuemin=1 .ariaValueNow=${this.meridiem==="PM"&&"2"||"1"} .ariaValueText=${this.meridiem} class=${n({[t.input]:!0,[t.meridiem]:!0,[t.inputFocus]:this.activeEl&&this.activeEl===this.meridiemEl})} @click=${this.inputClickHandler} @focus=${this.focusHandler} @keydown=${this.meridiemKeyDownHandler} role=spinbutton tabindex=0 ${f(this.setMeridiemEl)}>${this.localizedMeridiem||"--"}</span><span .ariaLabel=${this.messages.meridiemDown} class=${n({[t.button]:!0,[t.buttonMeridiemDown]:!0,[t.buttonBottomRight]:!0})} @click=${this.meridiemDownClickHandler} role=button><calcite-icon icon=chevron-down .scale=${i}></calcite-icon></span></div>`||""}</div>`}};U("calcite-time-picker",z);export{z as TimePicker};
|
|
3
|
+
v3.1.0 */
|
|
4
|
+
import{a as g,b as p,d as L,f as D,g as k,h as I,j as T,l as H,m as S,o as x,p as E}from"./J7KH7EV3.js";import{b as h,c as v}from"./HW3LOVBP.js";import{b as d}from"./LOLCQBHI.js";import{b}from"./LVPZFVWV.js";import{a as A}from"./CFWASGFL.js";import{b as f}from"./AE37DSUM.js";import{e as V}from"./GRRJSWZA.js";import{a as C,d as $}from"./4Q2DPEWF.js";import"./PWYHPWQ3.js";import"./73JLUGUM.js";import{J as U,e as F,f as m,v as y,w as P,x as n}from"./RVKGKVXB.js";var t={button:"button",buttonBottomLeft:"button--bottom-left",buttonBottomRight:"button--bottom-right",buttonFractionalSecondDown:"button--fractionalSecond-down",buttonFractionalSecondUp:"button--fractionalSecond-up",buttonHourDown:"button--hour-down",buttonHourUp:"button--hour-up",buttonMeridiemDown:"button--meridiem-down",buttonMeridiemUp:"button--meridiem-up",buttonMinuteDown:"button--minute-down",buttonMinuteUp:"button--minute-up",buttonSecondDown:"button--second-down",buttonSecondUp:"button--second-up",buttonTopLeft:"button--top-left",buttonTopRight:"button--top-right",column:"column",decimalSeparator:"decimal-separator",delimiter:"delimiter",fractionalSecond:"fractionalSecond",hour:"hour",hourSuffix:"hour-suffix",input:"input",inputFocus:"inputFocus",meridiem:"meridiem",minute:"minute",minuteSuffix:"minute-suffix",second:"second",secondSuffix:"second-suffix",showMeridiem:"show-meridiem",showSecond:"show-second","scale-s":"scale-s","scale-m":"scale-m","scale-l":"scale-l",timePicker:"time-picker",meridiemStart:"meridiem--start"},W=F`:host{display:inline-block}.time-picker{display:flex;-webkit-user-select:none;user-select:none;align-items:center;background-color:var(--calcite-color-foreground-1);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);--tw-shadow: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);--tw-shadow-colored: 0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);border-radius:var(--calcite-border-radius)}.time-picker .column{display:flex;flex-direction:column}.time-picker .meridiem--start{order:-1}.time-picker .button{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;background-color:var(--calcite-color-foreground-1)}.time-picker .button:hover,.time-picker .button:focus{background-color:var(--calcite-color-foreground-2);outline:2px solid transparent;outline-offset:2px;z-index:var(--calcite-z-index-header);outline-offset:0}.time-picker .button:active{background-color:var(--calcite-color-foreground-3)}.time-picker .button.top-left{border-start-start-radius:var(--calcite-border-radius)}.time-picker .button.bottom-left{border-end-start-radius:var(--calcite-border-radius)}.time-picker .button.top-right{border-start-end-radius:var(--calcite-border-radius)}.time-picker .button.bottom-right{border-end-end-radius:var(--calcite-border-radius)}.time-picker .button calcite-icon{color:var(--calcite-color-text-3)}.time-picker .input{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;background-color:var(--calcite-color-foreground-1);font-weight:var(--calcite-font-weight-medium)}.time-picker .input:hover{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-2);z-index:var(--calcite-z-index-header)}.time-picker .input:focus,.time-picker .input:hover:focus{outline:2px solid transparent;outline-offset:2px;outline-offset:0}.time-picker .input.inputFocus,.time-picker .input:hover.inputFocus{box-shadow:inset 0 0 0 2px var(--calcite-color-brand);z-index:var(--calcite-z-index-header)}.time-picker.scale-s{font-size:var(--calcite-font-size--1)}.time-picker.scale-s .button,.time-picker.scale-s .input{padding-inline:.75rem;padding-block:.25rem}.time-picker.scale-s:not(.show-meridiem) .delimiter:last-child{padding-inline-end:.75rem}.time-picker.scale-m{font-size:var(--calcite-font-size-0)}.time-picker.scale-m .button,.time-picker.scale-m .input{padding-inline:1rem;padding-block:.5rem}.time-picker.scale-m:not(.show-meridiem) .delimiter:last-child{padding-inline-end:1rem}.time-picker.scale-l{font-size:var(--calcite-font-size-1)}.time-picker.scale-l .button,.time-picker.scale-l .input{padding-inline:1.25rem;padding-block:.75rem}.time-picker.scale-l:not(.show-meridiem) .delimiter:last-child{padding-inline-end:1.25rem}:host([hidden]){display:none}[hidden]{display:none}`;function G(w){return w.charAt(0).toUpperCase()+w.slice(1)}var z=class extends P{constructor(){super(),this.pointerActivated=!1,this.localizedDecimalSeparator=".",this.hourFormat="user",this.messages=A(),this.scale="m",this.step=60,this.value=null,this.calciteTimePickerChange=y({cancelable:!1}),this.listen("blur",this.blurHandler),this.listen("keydown",this.keyDownHandler),this.listen("pointerdown",this.pointerDownHandler)}static{this.properties={activeEl:16,effectiveHourFormat:16,fractionalSecond:16,hour:16,localizedDecimalSeparator:16,localizedFractionalSecond:16,localizedHour:16,localizedHourSuffix:16,localizedMeridiem:16,localizedMinute:16,localizedMinuteSuffix:16,localizedSecond:16,localizedSecondSuffix:16,meridiem:16,minute:16,second:16,showFractionalSecond:16,showSecond:16,hourFormat:3,messageOverrides:0,numberingSystem:1,scale:3,step:11,value:1}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=W}async setFocus(){await $(this),this.el?.focus()}connectedCallback(){super.connectedCallback(),this.updateLocale(),this.toggleSecond()}willUpdate(e){e.has("step")&&(this.hasUpdated||this.step!==60)&&this.toggleSecond(),e.has("value")&&(this.hasUpdated||this.value!==null)&&this.setValue(this.value),(e.has("hourFormat")||e.has("messages"))&&this.updateLocale()}blurHandler(){this.activeEl=void 0,this.pointerActivated=!1}keyDownHandler(e){this.pointerActivated=!1;let{defaultPrevented:i,key:a}=e;if(!i)switch(this.activeEl){case this.hourEl:a==="ArrowRight"&&(this.focusPart("minute"),e.preventDefault());break;case this.minuteEl:switch(a){case"ArrowLeft":this.focusPart("hour"),e.preventDefault();break;case"ArrowRight":this.step!==60?(this.focusPart("second"),e.preventDefault()):this.effectiveHourFormat==="12"&&(this.focusPart("meridiem"),e.preventDefault());break}break;case this.secondEl:switch(a){case"ArrowLeft":this.focusPart("minute"),e.preventDefault();break;case"ArrowRight":this.showFractionalSecond?this.focusPart("fractionalSecond"):this.effectiveHourFormat==="12"&&(this.focusPart("meridiem"),e.preventDefault());break}break;case this.fractionalSecondEl:switch(a){case"ArrowLeft":this.focusPart("second"),e.preventDefault();break;case"ArrowRight":this.effectiveHourFormat==="12"&&(this.focusPart("meridiem"),e.preventDefault());break}break;case this.meridiemEl:switch(a){case"ArrowLeft":this.showFractionalSecond?this.focusPart("fractionalSecond"):this.step!==60?(this.focusPart("second"),e.preventDefault()):(this.focusPart("minute"),e.preventDefault());break}break}}pointerDownHandler(){this.pointerActivated=!0}async focusPart(e){await $(this),this[`${e||"hour"}El`]?.focus()}decrementHour(){let e=this.hour?parseInt(this.hour)===0?23:parseInt(this.hour)-1:0;this.setValuePart("hour",e)}decrementMeridiem(){let e=this.meridiem==="PM"?"AM":"PM";this.setValuePart("meridiem",e)}decrementMinuteOrSecond(e){let i;if(d(this[e])){let a=parseInt(this[e]);i=a===0?59:a-1}else i=59;this.setValuePart(e,i)}decrementMinute(){this.decrementMinuteOrSecond("minute")}decrementSecond(){this.decrementMinuteOrSecond("second")}focusHandler(e){this.pointerActivated||(this.activeEl=e.currentTarget)}fractionalSecondKeyDownHandler(e){let{key:i}=e;if(b.includes(i)){let a=h(this.step),s=parseInt(this.fractionalSecond),o=s.toString().length,r;o>=a?r=i.padStart(a,"0"):o<a&&(r=`${s}${i}`.padStart(a,"0")),this.setValuePart("fractionalSecond",parseFloat(`0.${r}`))}else switch(i){case"Backspace":case"Delete":this.setValuePart("fractionalSecond",null);break;case"ArrowDown":e.preventDefault(),this.nudgeFractionalSecond("down");break;case"ArrowUp":e.preventDefault(),this.nudgeFractionalSecond("up");break;case" ":e.preventDefault();break}}fractionalSecondDownClickHandler(){this.activeEl=this.fractionalSecondEl,this.fractionalSecondEl.focus(),this.nudgeFractionalSecond("down")}fractionalSecondUpClickHandler(){this.activeEl=this.fractionalSecondEl,this.fractionalSecondEl.focus(),this.nudgeFractionalSecond("up")}hourDownClickHandler(){this.activeEl=this.hourEl,this.hourEl.focus(),this.decrementHour()}hourKeyDownHandler(e){let{key:i}=e;if(b.includes(i)){let a=parseInt(i),s;if(d(this.hour))switch(this.effectiveHourFormat){case"12":s=this.hour==="01"&&a>=0&&a<=2?`1${a}`:a;break;case"24":this.hour==="01"?s=`1${a}`:this.hour==="02"&&a>=0&&a<=3?s=`2${a}`:s=a;break}else s=a;this.setValuePart("hour",s)}else switch(i){case"Backspace":case"Delete":this.setValuePart("hour",null);break;case"ArrowDown":e.preventDefault(),this.decrementHour();break;case"ArrowUp":e.preventDefault(),this.incrementHour();break;case" ":e.preventDefault();break}}hourUpClickHandler(){this.activeEl=this.hourEl,this.hourEl.focus(),this.incrementHour()}incrementMeridiem(){let e=this.meridiem==="AM"?"PM":"AM";this.setValuePart("meridiem",e)}incrementHour(){let e=d(this.hour)?this.hour==="23"?0:parseInt(this.hour)+1:1;this.setValuePart("hour",e)}incrementMinuteOrSecond(e){let i=d(this[e])?this[e]==="59"?0:parseInt(this[e])+1:0;this.setValuePart(e,i)}incrementMinute(){this.incrementMinuteOrSecond("minute")}incrementSecond(){this.incrementMinuteOrSecond("second")}inputClickHandler(e){this.activeEl=e.target}meridiemUpClickHandler(){this.activeEl=this.meridiemEl,this.meridiemEl.focus(),this.incrementMeridiem()}meridiemKeyDownHandler(e){switch(e.key){case"a":this.setValuePart("meridiem","AM");break;case"p":this.setValuePart("meridiem","PM");break;case"Backspace":case"Delete":this.setValuePart("meridiem",null);break;case"ArrowUp":e.preventDefault(),this.incrementMeridiem();break;case"ArrowDown":e.preventDefault(),this.decrementMeridiem();break;case" ":e.preventDefault();break}}meridiemDownClickHandler(){this.activeEl=this.meridiemEl,this.meridiemEl.focus(),this.decrementMeridiem()}minuteDownClickHandler(){this.activeEl=this.minuteEl,this.minuteEl.focus(),this.decrementMinute()}minuteUpClickHandler(){this.activeEl=this.minuteEl,this.minuteEl.focus(),this.incrementMinute()}minuteKeyDownHandler(e){let{key:i}=e;if(b.includes(i)){let a=parseInt(i),s;if(d(this.minute)&&this.minute.startsWith("0")){let o=parseInt(this.minute);s=o>g?a:`${o}${a}`}else s=a;this.setValuePart("minute",s)}else switch(i){case"Backspace":case"Delete":this.setValuePart("minute",null);break;case"ArrowDown":e.preventDefault(),this.decrementMinute();break;case"ArrowUp":e.preventDefault(),this.incrementMinute();break;case" ":e.preventDefault();break}}nudgeFractionalSecond(e){let i=v(this.step),a=h(this.step),s=parseInt(this.fractionalSecond),o=parseFloat(`0.${this.fractionalSecond}`),r,l,c,u;e==="up"&&(r=isNaN(s)?0:o+i,l=parseFloat(r.toFixed(a)),c=v(l),u=l<1&&h(c)>0?p(c,a):"".padStart(a,"0")),e==="down"&&(r=isNaN(s)||s===0?1-i:o-i,l=parseFloat(r.toFixed(a)),c=v(l),u=l<1&&h(c)>0&&Math.sign(c)===1?p(c,a):"".padStart(a,"0")),this.setValuePart("fractionalSecond",u)}sanitizeValue(e){let{hour:i,minute:a,second:s,fractionalSecond:o}=E(e);if(o){let r=this.sanitizeFractionalSecond(o);return`${i}:${a}:${s}.${r}`}return H(e)&&e}sanitizeFractionalSecond(e){return e&&h(this.step)!==e.length?parseFloat(`0.${e}`).toFixed(h(this.step)).replace("0.",""):e}secondKeyDownHandler(e){let{key:i}=e;if(b.includes(i)){let a=parseInt(i),s;if(d(this.second)&&this.second.startsWith("0")){let o=parseInt(this.second);s=o>g?a:`${o}${a}`}else s=a;this.setValuePart("second",s)}else switch(i){case"Backspace":case"Delete":this.setValuePart("second",null);break;case"ArrowDown":e.preventDefault(),this.decrementSecond();break;case"ArrowUp":e.preventDefault(),this.incrementSecond();break;case" ":e.preventDefault();break}}secondDownClickHandler(){this.activeEl=this.secondEl,this.secondEl.focus(),this.decrementSecond()}secondUpClickHandler(){this.activeEl=this.secondEl,this.secondEl.focus(),this.incrementSecond()}setHourEl(e){this.hourEl=e}setMeridiemEl(e){this.meridiemEl=e}setMinuteEl(e){this.minuteEl=e}setSecondEl(e){this.secondEl=e}setFractionalSecondEl(e){this.fractionalSecondEl=e}setValue(e){if(H(e)){let{hour:i,minute:a,second:s,fractionalSecond:o}=E(e),{effectiveHourFormat:r,messages:{_lang:l},numberingSystem:c}=this,{localizedHour:u,localizedHourSuffix:K,localizedMinute:O,localizedMinuteSuffix:_,localizedSecond:B,localizedDecimalSeparator:N,localizedFractionalSecond:R,localizedSecondSuffix:j,localizedMeridiem:M}=x({value:e,locale:l,numberingSystem:c,hour12:r==="12"});this.hour=i,this.minute=a,this.second=s,this.fractionalSecond=this.sanitizeFractionalSecond(o),this.localizedHour=u,this.localizedHourSuffix=K,this.localizedMinute=O,this.localizedMinuteSuffix=_,this.localizedSecond=B,this.localizedDecimalSeparator=N,this.localizedFractionalSecond=R,this.localizedSecondSuffix=j,M&&(this.localizedMeridiem=M,this.meridiem=I(this.hour))}else this.hour=null,this.fractionalSecond=null,this.localizedHour=null,this.localizedHourSuffix=k("hour",this.messages._lang,this.numberingSystem),this.localizedMeridiem=null,this.localizedMinute=null,this.localizedMinuteSuffix=k("minute",this.messages._lang,this.numberingSystem),this.localizedSecond=null,this.localizedDecimalSeparator=D(this.messages._lang,this.numberingSystem),this.localizedFractionalSecond=null,this.localizedSecondSuffix=k("second",this.messages._lang,this.numberingSystem),this.meridiem=null,this.minute=null,this.second=null,this.value=null}setValuePart(e,i){let{effectiveHourFormat:a,messages:{_lang:s},numberingSystem:o}=this,r=a==="12";if(e==="meridiem"){if(this.meridiem=i,d(this.hour)){let u=parseInt(this.hour);switch(i){case"AM":u>=12&&(this.hour=p(u-12));break;case"PM":u<12&&(this.hour=p(u+12));break}this.localizedHour=S({value:this.hour,part:"hour",locale:s,numberingSystem:o,hour12:r})}}else if(e==="fractionalSecond"){let u=h(this.step);typeof i=="number"?this.fractionalSecond=i===0?"".padStart(u,"0"):p(i,u):this.fractionalSecond=i,this.localizedFractionalSecond=S({value:this.fractionalSecond,part:"fractionalSecond",locale:s,numberingSystem:o,hour12:r})}else this[e]=typeof i=="number"?p(i):i,this[`localized${G(e)}`]=S({value:this[e],part:e,locale:s,numberingSystem:o,hour12:r});let l=!1,c;this.hour&&this.minute?(c=`${this.hour}:${this.minute}`,this.showSecond&&(c=`${c}:${this.second??"00"}`,this.showFractionalSecond&&this.fractionalSecond&&(c=`${c}.${this.fractionalSecond}`))):c=null,this.value!==c&&(l=!0),this.value=c,this.localizedMeridiem=this.value?x({hour12:r,locale:s,numberingSystem:o,value:this.value})?.localizedMeridiem||null:S({value:this.meridiem,part:"meridiem",locale:s,numberingSystem:o}),l&&this.calciteTimePickerChange.emit()}toggleSecond(){this.showSecond=this.step<60,this.showFractionalSecond=h(this.step)>0}updateLocale(){this.effectiveHourFormat=this.hourFormat==="user"?L(this.messages._lang):this.hourFormat,this.localizedDecimalSeparator=D(this.messages._lang,this.numberingSystem),this.meridiemOrder=T(this.messages._lang),this.setValue(this.sanitizeValue(this.value))}render(){let e=d(this.hour),i=C(this.scale),a=d(this.minute),s=d(this.second),o=d(this.fractionalSecond),r=this.messages._lang!=="bg"&&this.localizedSecondSuffix,l=this.effectiveHourFormat==="12";return m`<div class=${n({[t.timePicker]:!0,[t.showMeridiem]:l,[t.showSecond]:this.showSecond,[t[`scale-${this.scale}`]]:!0})} dir=ltr><div class=${n(t.column)} role=group><span .ariaLabel=${this.messages.hourUp} class=${n({[t.button]:!0,[t.buttonHourUp]:!0,[t.buttonTopLeft]:!0})} @click=${this.hourUpClickHandler} role=button><calcite-icon icon=chevron-up .scale=${i}></calcite-icon></span><span .ariaLabel=${this.messages.hour} aria-valuemax=23 aria-valuemin=1 .ariaValueNow=${e&&parseInt(this.hour)||"0"} .ariaValueText=${this.hour} class=${n({[t.input]:!0,[t.hour]:!0,[t.inputFocus]:this.activeEl&&this.activeEl===this.hourEl})} @click=${this.inputClickHandler} @focus=${this.focusHandler} @keydown=${this.hourKeyDownHandler} role=spinbutton tabindex=0 ${f(this.setHourEl)}>${this.localizedHour||"--"}</span><span .ariaLabel=${this.messages.hourDown} class=${n({[t.button]:!0,[t.buttonHourDown]:!0,[t.buttonBottomLeft]:!0})} @click=${this.hourDownClickHandler} role=button><calcite-icon icon=chevron-down .scale=${i}></calcite-icon></span></div><span class=${n({[t.delimiter]:!0,[t.hourSuffix]:!0})}>${this.localizedHourSuffix}</span><div class=${n(t.column)} role=group><span .ariaLabel=${this.messages.minuteUp} class=${n({[t.button]:!0,[t.buttonMinuteUp]:!0})} @click=${this.minuteUpClickHandler} role=button><calcite-icon icon=chevron-up .scale=${i}></calcite-icon></span><span .ariaLabel=${this.messages.minute} aria-valuemax=12 aria-valuemin=1 .ariaValueNow=${a&&parseInt(this.minute)||"0"} .ariaValueText=${this.minute} class=${n({[t.input]:!0,[t.minute]:!0,[t.inputFocus]:this.activeEl&&this.activeEl===this.minuteEl})} @click=${this.inputClickHandler} @focus=${this.focusHandler} @keydown=${this.minuteKeyDownHandler} role=spinbutton tabindex=0 ${f(this.setMinuteEl)}>${this.localizedMinute||"--"}</span><span .ariaLabel=${this.messages.minuteDown} class=${n({[t.button]:!0,[t.buttonMinuteDown]:!0})} @click=${this.minuteDownClickHandler} role=button><calcite-icon icon=chevron-down .scale=${i}></calcite-icon></span></div>${this.showSecond&&m`<span class=${n({[t.delimiter]:!0,[t.minuteSuffix]:!0})}>${this.localizedMinuteSuffix}</span>`||""}${this.showSecond&&m`<div class=${n(t.column)} role=group><span .ariaLabel=${this.messages.secondUp} class=${n({[t.button]:!0,[t.buttonSecondUp]:!0})} @click=${this.secondUpClickHandler} role=button><calcite-icon icon=chevron-up .scale=${i}></calcite-icon></span><span .ariaLabel=${this.messages.second} aria-valuemax=59 aria-valuemin=0 .ariaValueNow=${s&&parseInt(this.second)||"0"} .ariaValueText=${this.second} class=${n({[t.input]:!0,[t.second]:!0,[t.inputFocus]:this.activeEl&&this.activeEl===this.secondEl})} @click=${this.inputClickHandler} @focus=${this.focusHandler} @keydown=${this.secondKeyDownHandler} role=spinbutton tabindex=0 ${f(this.setSecondEl)}>${this.localizedSecond||"--"}</span><span .ariaLabel=${this.messages.secondDown} class=${n({[t.button]:!0,[t.buttonSecondDown]:!0})} @click=${this.secondDownClickHandler} role=button><calcite-icon icon=chevron-down .scale=${i}></calcite-icon></span></div>`||""}${this.showFractionalSecond&&m`<span class=${n({[t.delimiter]:!0,[t.decimalSeparator]:!0})}>${this.localizedDecimalSeparator}</span>`||""}${this.showFractionalSecond&&m`<div class=${n(t.column)} role=group><span .ariaLabel=${this.messages.fractionalSecondUp} class=${n({[t.button]:!0,[t.buttonFractionalSecondUp]:!0})} @click=${this.fractionalSecondUpClickHandler} role=button><calcite-icon icon=chevron-up .scale=${i}></calcite-icon></span><span .ariaLabel=${this.messages.fractionalSecond} aria-valuemax=999 aria-valuemin=1 .ariaValueNow=${o&&parseInt(this.fractionalSecond)||"0"} .ariaValueText=${this.localizedFractionalSecond} class=${n({[t.input]:!0,[t.fractionalSecond]:!0,[t.inputFocus]:this.activeEl&&this.activeEl===this.fractionalSecondEl})} @click=${this.inputClickHandler} @focus=${this.focusHandler} @keydown=${this.fractionalSecondKeyDownHandler} role=spinbutton tabindex=0 ${f(this.setFractionalSecondEl)}>${this.localizedFractionalSecond||"--"}</span><span .ariaLabel=${this.messages.fractionalSecondDown} class=${n({[t.button]:!0,[t.buttonFractionalSecondDown]:!0})} @click=${this.fractionalSecondDownClickHandler} role=button><calcite-icon icon=chevron-down .scale=${i}></calcite-icon></span></div>`||""}${r&&m`<span class=${n({[t.delimiter]:!0,[t.secondSuffix]:!0})}>${this.localizedSecondSuffix}</span>`||""}${l&&m`<div class=${n({[t.column]:!0,[t.meridiemStart]:this.meridiemOrder===0||V(this.el)==="rtl"})} role=group><span .ariaLabel=${this.messages.meridiemUp} class=${n({[t.button]:!0,[t.buttonMeridiemUp]:!0,[t.buttonTopRight]:!0})} @click=${this.meridiemUpClickHandler} role=button><calcite-icon icon=chevron-up .scale=${i}></calcite-icon></span><span .ariaLabel=${this.messages.meridiem} aria-valuemax=2 aria-valuemin=1 .ariaValueNow=${this.meridiem==="PM"&&"2"||"1"} .ariaValueText=${this.meridiem} class=${n({[t.input]:!0,[t.meridiem]:!0,[t.inputFocus]:this.activeEl&&this.activeEl===this.meridiemEl})} @click=${this.inputClickHandler} @focus=${this.focusHandler} @keydown=${this.meridiemKeyDownHandler} role=spinbutton tabindex=0 ${f(this.setMeridiemEl)}>${this.localizedMeridiem||"--"}</span><span .ariaLabel=${this.messages.meridiemDown} class=${n({[t.button]:!0,[t.buttonMeridiemDown]:!0,[t.buttonBottomRight]:!0})} @click=${this.meridiemDownClickHandler} role=button><calcite-icon icon=chevron-down .scale=${i}></calcite-icon></span></div>`||""}</div>`}};U("calcite-time-picker",z);export{z as TimePicker};
|
|
@@ -1,4 +1,4 @@
|
|
|
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.1.0
|
|
4
|
-
import{b as _}from"./
|
|
3
|
+
v3.1.0 */
|
|
4
|
+
import{b as _}from"./RMHVKKLY.js";import"./7TFPBMHK.js";var a="\u064A\u0646\u0627\u064A\u0631_\u0641\u0628\u0631\u0627\u064A\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064A\u0644_\u0645\u0627\u064A\u0648_\u064A\u0648\u0646\u064A\u0648_\u064A\u0648\u0644\u064A\u0648_\u0623\u063A\u0633\u0637\u0633_\u0633\u0628\u062A\u0645\u0628\u0631_\u0623\u0643\u062A\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062F\u064A\u0633\u0645\u0628\u0631".split("_"),n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},o={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},m={name:"ar",weekdays:"\u0627\u0644\u0623\u062D\u062F_\u0627\u0644\u0625\u062B\u0646\u064A\u0646_\u0627\u0644\u062B\u0644\u0627\u062B\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062E\u0645\u064A\u0633_\u0627\u0644\u062C\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062A".split("_"),weekdaysShort:"\u0623\u062D\u062F_\u0625\u062B\u0646\u064A\u0646_\u062B\u0644\u0627\u062B\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062E\u0645\u064A\u0633_\u062C\u0645\u0639\u0629_\u0633\u0628\u062A".split("_"),weekdaysMin:"\u062D_\u0646_\u062B_\u0631_\u062E_\u062C_\u0633".split("_"),months:a,monthsShort:a,weekStart:6,meridiem:function(r){return r>12?"\u0645":"\u0635"},relativeTime:{future:"\u0628\u0639\u062F %s",past:"\u0645\u0646\u0630 %s",s:"\u062B\u0627\u0646\u064A\u0629 \u0648\u0627\u062D\u062F\u0629",m:"\u062F\u0642\u064A\u0642\u0629 \u0648\u0627\u062D\u062F\u0629",mm:"%d \u062F\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629 \u0648\u0627\u062D\u062F\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062A",d:"\u064A\u0648\u0645 \u0648\u0627\u062D\u062F",dd:"%d \u0623\u064A\u0627\u0645",M:"\u0634\u0647\u0631 \u0648\u0627\u062D\u062F",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0639\u0627\u0645 \u0648\u0627\u062D\u062F",yy:"%d \u0623\u0639\u0648\u0627\u0645"},preparse:function(r){return r.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(t){return o[t]}).replace(/،/g,",")},postformat:function(r){return r.replace(/\d/g,function(t){return n[t]}).replace(/,/g,"\u060C")},ordinal:function(r){return r},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200FM/\u200FYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"}};_.locale(m,null,!0);var d=m;export{d as default};
|
|
File without changes
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
+
v3.1.0 */
|
|
4
|
+
import{a as b}from"./3NWI6OP2.js";import{a as w}from"./LVPZFVWV.js";import{a as $}from"./CFWASGFL.js";import{n as m}from"./GRRJSWZA.js";import{d as f}from"./4Q2DPEWF.js";import{a as k}from"./PWYHPWQ3.js";import"./73JLUGUM.js";import{J as u,e as h,f as a,v,w as p,x as c,z as x}from"./RVKGKVXB.js";var l={content:"content",toggle:"toggle"},t={chevronIcon:"chevron-icon",content:"content",iconStart:"icon--start",iconEnd:"icon--end",invalid:"invalid",sectionHeader:"section-header",sectionHeaderText:"section-header__text",statusIcon:"status-icon",switch:"switch",toggle:"toggle",toggleSwitch:"toggle--switch",toggleContainer:"toggle-container",toggleSwitchContent:"toggle--switch__content",toggleSwitchText:"toggle--switch__text",valid:"valid"},s={menuExpanded:"chevron-up",menuCollapsed:"chevron-down",valid:"check-circle",invalid:"exclamation-mark-triangle"},y=h`:host{box-sizing:border-box;display:block;font-size:var(--calcite-font-size--1);color:var(--calcite-block-section-header-text-color, var(--calcite-color-text-2));background-color:var(--calcite-block-section-background-color, var(--calcite-color-foreground-1))}:host([expanded]){border-width:0px;border-block-end-width:1px;border-style:solid;border-block-end-color:var(--calcite-block-section-border-color, var(--calcite-color-border-3))}:host([expanded]) .toggle{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}:host([expanded]) .toggle:hover{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}:host([expanded]) .chevron-icon{color:var(--calcite-block-section-text-color, var(--calcite-color-text-3))}:host([expanded]) .chevron-icon:hover{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}:host(:last-child){border-block-end-width:0px}.toggle{inline-size:100%;border-width:0px;font-family:var(--calcite-font-family);gap:var(--calcite-spacing-md);color:var(--calcite-block-section-header-text-color, var(--calcite-color-text-2));background-color:var(--calcite-block-section-background-color, transparent);font-weight:var(--calcite-font-weight-normal)}.toggle:hover{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}.toggle--switch,.section-header{margin-inline:0px;margin-block:.25rem;display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;padding-inline:0px;padding-block:.5rem;font-size:var(--calcite-font-size--1);outline-color:transparent}.toggle--switch:focus,.section-header:focus{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))))}.toggle--switch:hover,.section-header:hover{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}.section-header__text{margin-block:0px;flex:1 1 auto;text-align:initial;word-wrap:anywhere}.toggle-container{position:relative;display:flex;align-items:center;word-break:break-word;background-color:var(--calcite-block-section-background-color, transparent)}.toggle-container .toggle--switch__content{display:flex;flex:1 1 auto;align-items:center}.toggle-container .icon--end,.toggle-container .icon--start,.toggle-container .chevron-icon{display:flex;align-items:center;color:var(--calcite-block-section-text-color, var(--calcite-color-text-3))}.toggle-container .icon--end:hover,.toggle-container .icon--start:hover,.toggle-container .chevron-icon:hover{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}.status-icon{display:flex;align-items:center}.status-icon.valid{color:var(--calcite-color-status-success)}.status-icon.invalid{color:var(--calcite-color-status-danger)}:host([hidden]){display:none}[hidden]{display:none}`,d=class extends p{constructor(){super(...arguments),this.expanded=!1,this.messages=$(),this.toggleDisplay="button",this.calciteBlockSectionToggle=v({cancelable:!1})}static{this.properties={expanded:7,iconEnd:3,iconFlipRtl:3,iconStart:3,messageOverrides:0,open:7,status:3,text:1,toggleDisplay:3}}static{this.styles=y}get open(){return this.expanded}set open(e){k.deprecated("property",{name:"open",removalVersion:4,suggested:"expanded"}),this.expanded=e}async setFocus(){await f(this),m(this.el)}handleHeaderKeyDown(e){w(e.key)&&(this.toggleSection(),e.preventDefault(),e.stopPropagation())}toggleSection(){this.expanded=!this.expanded,this.calciteBlockSectionToggle.emit()}renderStatusIcon(){let{status:e}=this,o=s[e]??!1,i={[t.statusIcon]:!0,[t.valid]:e=="valid",[t.invalid]:e=="invalid"};return o?a`<calcite-icon class=${c(i)} .icon=${o} scale=s></calcite-icon>`:null}renderIcon(e){let{iconFlipRtl:o}=this;if(e===void 0)return null;let i=o==="both"||o==="start",r=o==="both"||o==="end",n=e===this.iconStart;return b(n?this.iconStart:this.iconEnd,a`<calcite-icon class=${c(n?t.iconStart:t.iconEnd)} .flipRtl=${n?i:r} .icon=${n?this.iconStart:this.iconEnd} scale=s></calcite-icon>`)}render(){let{messages:e,expanded:o,text:i,toggleDisplay:r}=this,n=o?s.menuExpanded:s.menuCollapsed,g=o?e.collapse:e.expand,S=r==="switch"?a`<div class=${c({[t.toggleContainer]:!0})}><div aria-controls=${l.content} .ariaExpanded=${o} class=${c({[t.toggle]:!0,[t.toggleSwitch]:!0})} id=${l.toggle} @click=${this.toggleSection} @keydown=${this.handleHeaderKeyDown} role=button tabindex=0 title=${g??x}>${this.renderIcon(this.iconStart)}<div class=${c(t.toggleSwitchContent)}><span class=${c(t.toggleSwitchText)}>${i}</span></div>${this.renderIcon(this.iconEnd)}${this.renderStatusIcon()}<calcite-switch .checked=${o} class=${c(t.switch)} inert .label=${g} scale=s></calcite-switch></div></div>`:a`<div class=${c({[t.toggleContainer]:!0})}><button aria-controls=${l.content} .ariaExpanded=${o} class=${c({[t.sectionHeader]:!0,[t.toggle]:!0})} id=${l.toggle} @click=${this.toggleSection}>${this.renderIcon(this.iconStart)}<span class=${c(t.sectionHeaderText)}>${i}</span>${this.renderIcon(this.iconEnd)}${this.renderStatusIcon()}<calcite-icon class=${c(t.chevronIcon)} .icon=${n} scale=s></calcite-icon></button></div>`;return a`${S}<section aria-labelledby=${l.toggle} class=${c(t.content)} .hidden=${!o} id=${l.content}><slot></slot></section>`}};u("calcite-block-section",d);export{d as BlockSection};
|