@esri/calcite-components 3.0.0-next.71 → 3.0.0-next.73
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/dist/calcite/{LTDIUGCI.js → 23RAANQA.js} +2 -2
- package/dist/calcite/{JVJ7KQBW.js → 2RSVBDUK.js} +2 -2
- package/dist/calcite/{B2BMNNTZ.js → 2VI4CV4J.js} +2 -2
- package/dist/calcite/{4VGAHI6K.js → 3AMCLZOD.js} +2 -2
- package/dist/calcite/{4GSJZZZY.js → 3COXMLTS.js} +2 -2
- package/dist/calcite/{4PERF4KA.js → 3EKCFRZG.js} +2 -2
- package/dist/calcite/{4WQI52JR.js → 3F2TRGKC.js} +2 -2
- package/dist/calcite/{ENEAGSYJ.js → 3FBEZYRQ.js} +2 -2
- package/dist/calcite/{J4GNMDGQ.js → 3ID6O3J6.js} +2 -2
- package/dist/calcite/{ZBHECTFB.js → 3LTARQFR.js} +2 -2
- package/dist/calcite/{C44SLEQF.js → 3X6XD5A4.js} +2 -2
- package/dist/calcite/{J2ZEPH2E.js → 42272C4E.js} +2 -2
- package/dist/calcite/{U4E4KMDU.js → 42ZSJLST.js} +1 -1
- package/dist/calcite/{QROBNSCX.js → 44W35HXE.js} +2 -2
- package/dist/calcite/{SP2NNM3D.js → 4BIINMNZ.js} +2 -2
- package/dist/calcite/{GRMW7Z2X.js → 4DML3RRY.js} +2 -2
- package/dist/calcite/{JYED2WYU.js → 4LALEH7W.js} +2 -2
- package/dist/calcite/{5CZVW5VR.js → 4RUOA2HH.js} +2 -2
- package/dist/calcite/{R3JSJI7G.js → 4VCHEVHA.js} +2 -2
- package/dist/calcite/{3QWVYGS3.js → 54ETHCFV.js} +2 -2
- package/dist/calcite/{SDCJGIJ5.js → 5Q2NRFLC.js} +2 -2
- package/dist/calcite/{ZP4F6KYZ.js → 5SHDLCXA.js} +2 -2
- package/dist/calcite/{5RYZVPHS.js → 5VR7UJDG.js} +2 -2
- package/dist/calcite/{QN3LUB4N.js → 5X4NKM6F.js} +2 -2
- package/dist/calcite/{HCM3INI6.js → 64MTBNJJ.js} +2 -2
- package/dist/calcite/{PCNRIMTI.js → 64SC2NDD.js} +2 -2
- package/dist/calcite/{KYQY5E37.js → 66ELZXBU.js} +2 -2
- package/dist/calcite/{IVYJQBG6.js → 6EQV7QM5.js} +2 -2
- package/dist/calcite/{GQSR23CQ.js → 6PFF4ILK.js} +2 -2
- package/dist/calcite/{DGTUNRP3.js → 6PGYRM3J.js} +2 -2
- package/dist/calcite/{MP7JJWOJ.js → 6Y3XNBCH.js} +2 -2
- package/dist/calcite/{M45N6WHF.js → 76XSLVGD.js} +2 -2
- package/dist/calcite/{2G57TE7Q.js → 7CUAXTEN.js} +2 -2
- package/dist/calcite/{LPKP754Y.js → 7FYDZP7Z.js} +2 -2
- package/dist/calcite/{O423XIKQ.js → 7IJ2TT7R.js} +2 -2
- package/dist/calcite/{VDZJAHLQ.js → 7PLZDFQP.js} +2 -2
- package/dist/calcite/{TXZQ2LCV.js → ABU46CIH.js} +2 -2
- package/dist/calcite/{BF63IXMM.js → AFYGMHW2.js} +2 -2
- package/dist/calcite/{2DLMSJ6Z.js → AG34FTAB.js} +1 -1
- package/dist/calcite/{4P4LUEZD.js → ALGYXR2Z.js} +2 -2
- package/dist/calcite/{2YLMLD5B.js → AMO2T34O.js} +2 -2
- package/dist/calcite/{A5H7HNHK.js → APNCOMKY.js} +1 -1
- package/dist/calcite/{L4SRVDU6.js → AUQKXOLJ.js} +2 -2
- package/dist/calcite/{5ABTT7OQ.js → AZUPP63M.js} +2 -2
- package/dist/calcite/{HHKOPDIS.js → B2PP5NRS.js} +2 -2
- package/dist/calcite/{WYH7QMUH.js → BH6KEVWI.js} +2 -2
- package/dist/calcite/{YIPQV7A2.js → BOVSLTCB.js} +2 -2
- package/dist/calcite/{LBYVWVZB.js → BUPRVT4C.js} +2 -2
- package/dist/calcite/{IIEMANDN.js → C4QVBH6O.js} +2 -2
- package/dist/calcite/{ZQNQHWEE.js → C67B5VWK.js} +2 -2
- package/dist/calcite/{WDXNT4EJ.js → CFQKJ24X.js} +2 -2
- package/dist/calcite/{5KNEC5GO.js → CHLQAL52.js} +2 -2
- package/dist/calcite/{7MCS5PC6.js → CLLNCUQI.js} +1 -1
- package/dist/calcite/{2ULZDZJM.js → CR2HPN2R.js} +2 -2
- package/dist/calcite/{THD6MJUJ.js → D4EFPZMP.js} +2 -2
- package/dist/calcite/{JOWFQ7MC.js → DA5BCVUX.js} +2 -2
- package/dist/calcite/{JU67TXAL.js → DHP3IEZ2.js} +2 -2
- package/dist/calcite/{PZAIEVMX.js → DNBYG2ML.js} +2 -2
- package/dist/calcite/{XUGR5MEP.js → DO3XQOOX.js} +2 -2
- package/dist/calcite/{4ZSEOLCI.js → DOKBHDNJ.js} +2 -2
- package/dist/calcite/{J77UNZ6E.js → DOZSMRZR.js} +2 -2
- package/dist/calcite/{YGVQYLUX.js → DRH6NVRK.js} +2 -2
- package/dist/calcite/{OLLW2GVO.js → DRZEZHYV.js} +2 -2
- package/dist/calcite/{NT2DAAI5.js → DVAETZAS.js} +2 -2
- package/dist/calcite/{2OVPRPKJ.js → DZM4UQPG.js} +2 -2
- package/dist/calcite/{PHVA2UHA.js → E47WZK2W.js} +2 -2
- package/dist/calcite/{ZL7OYQWF.js → E7M3TQWB.js} +2 -2
- package/dist/calcite/{CVVHTI2Q.js → ECCBDD7L.js} +2 -2
- package/dist/calcite/{QP35VGUW.js → ECFKA4MP.js} +1 -1
- package/dist/calcite/{EIIV36KM.js → EDTNLADS.js} +2 -2
- package/dist/calcite/{PCNPTE3Z.js → EHS23HUI.js} +2 -2
- package/dist/calcite/{KHVBV6PD.js → EOMV4WAA.js} +2 -2
- package/dist/calcite/{MD742C3B.js → ES7LPEVF.js} +2 -2
- package/dist/calcite/{GAB5ZFZC.js → F43XF3HZ.js} +2 -2
- package/dist/calcite/{IUXCG3N4.js → FAGBN2FS.js} +2 -2
- package/dist/calcite/{XVTFAQH5.js → FTYLAJYI.js} +2 -2
- package/dist/calcite/{5DDB4I6A.js → G3HZH6LD.js} +2 -2
- package/dist/calcite/{7J2UPLRS.js → G5JAYQH3.js} +1 -1
- package/dist/calcite/{HRNYFDV2.js → GCOXV43C.js} +2 -2
- package/dist/calcite/{E5CDTX57.js → GFQGVHN5.js} +2 -2
- package/dist/calcite/{MXONT6YO.js → GQHVXZHG.js} +2 -2
- package/dist/calcite/{TZXYIYZ4.js → GRA53KOI.js} +2 -2
- package/dist/calcite/{OCOYRKSP.js → GV5CROMO.js} +2 -2
- package/dist/calcite/{HEB6Y46E.js → H2SUYBB4.js} +2 -2
- package/dist/calcite/{64QAC4RA.js → H5P3WTFE.js} +2 -2
- package/dist/calcite/{SUZGNDH7.js → HGMBEQ47.js} +2 -2
- package/dist/calcite/{KU4CVJS2.js → HHEHQTZN.js} +2 -2
- package/dist/calcite/{LOPWQ6Z5.js → HWXXHPDV.js} +1 -1
- package/dist/calcite/{W7XYBA5M.js → HXQMI376.js} +2 -2
- package/dist/calcite/{WS64F2YI.js → I6WAE3HM.js} +2 -2
- package/dist/calcite/{B2A3B2TG.js → I7TPCSM5.js} +2 -2
- package/dist/calcite/{3AF3C5VJ.js → IBKCEJD5.js} +2 -2
- package/dist/calcite/{TSZ5VJHD.js → IDT7NKKG.js} +2 -2
- package/dist/calcite/{IOUUMHDP.js → J3DIGGB6.js} +2 -2
- package/dist/calcite/{RV7OK3WC.js → JEWW23PS.js} +2 -2
- package/dist/calcite/{THIP6QES.js → JJ626KJR.js} +2 -2
- package/dist/calcite/{33T6NTY3.js → JLUSUY4K.js} +2 -2
- package/dist/calcite/{ST7R4DD5.js → JQTHSRNG.js} +2 -2
- package/dist/calcite/{UBLENOBD.js → JUAG7X3M.js} +2 -2
- package/dist/calcite/{U2LORM5W.js → JUOGQD76.js} +2 -2
- package/dist/calcite/{VP3V5AS3.js → JZM6ZYHG.js} +2 -2
- package/dist/calcite/{HNUUWVG7.js → KDHL3ACR.js} +2 -2
- package/dist/calcite/{VZZIZ6ZM.js → KGD2BSKT.js} +2 -2
- package/dist/calcite/{A2I3DEDD.js → KGGWDKOQ.js} +2 -2
- package/dist/calcite/{ELUAANYF.js → KGTIQK5K.js} +1 -1
- package/dist/calcite/{4LVNEWP7.js → KHQIRSF2.js} +1 -1
- package/dist/calcite/{BLFO7PS4.js → KRIGOKK3.js} +2 -2
- package/dist/calcite/{LL3DT4ZH.js → KXW4HPQO.js} +2 -2
- package/dist/calcite/{NXRMM6RQ.js → LBV3HIJM.js} +2 -2
- package/dist/calcite/{MQCO2CHD.js → LCCFJ2JB.js} +1 -1
- package/dist/calcite/{FLH6UVXX.js → LL4YWHUE.js} +2 -2
- package/dist/calcite/{4X7S2K4P.js → LLYU6RPM.js} +2 -2
- package/dist/calcite/{LUYMH4SN.js → LMR6RZTG.js} +2 -2
- package/dist/calcite/{ORXUDHL4.js → LN3FBP2Y.js} +1 -1
- package/dist/calcite/{EC3VISWF.js → LNACSMGZ.js} +2 -2
- package/dist/calcite/{SWVKKX5A.js → LO7IADFH.js} +2 -2
- package/dist/calcite/{VS3LXKQA.js → LVMC3BF4.js} +1 -1
- package/dist/calcite/{VL2W2D64.js → LXLEZMSK.js} +2 -2
- package/dist/calcite/{NIG5QTYK.js → LYT3VCOG.js} +2 -2
- package/dist/calcite/{OCMWRQLP.js → M2L3V5EA.js} +1 -1
- package/dist/calcite/{VFJDFMSJ.js → M5HM6B74.js} +2 -2
- package/dist/calcite/{MKKBRCPI.js → MEU75ZOG.js} +2 -2
- package/dist/calcite/{35VI4M3H.js → MH5KRZYU.js} +2 -2
- package/dist/calcite/{RRW65VWS.js → N3USEUEB.js} +2 -2
- package/dist/calcite/{ETXPEIMW.js → N43CB22P.js} +2 -2
- package/dist/calcite/{7UCXP5XS.js → N4BM4DKC.js} +2 -2
- package/dist/calcite/{NRDIS6Q4.js → N4D72Y73.js} +2 -2
- package/dist/calcite/{WMAR4UTC.js → N6VH2U4L.js} +2 -2
- package/dist/calcite/{T7WT5PD2.js → N6X2D6X2.js} +2 -2
- package/dist/calcite/{OKVN4QUN.js → NBVYXQAU.js} +2 -2
- package/dist/calcite/{MD6T7SAI.js → NEV2P6MZ.js} +2 -2
- package/dist/calcite/{3AWI46I5.js → NXGVFP2E.js} +2 -2
- package/dist/calcite/{TGMY3XOW.js → NXMHXMIX.js} +2 -2
- package/dist/calcite/{KVHPBAA6.js → O37OP2DQ.js} +2 -2
- package/dist/calcite/{E45E7KVC.js → O4WEUAP3.js} +2 -2
- package/dist/calcite/{2RZTRDLT.js → OE72Z62U.js} +2 -2
- package/dist/calcite/{DASVN4NS.js → OET5DGQ6.js} +2 -2
- package/dist/calcite/{B7WPTW6T.js → P2GI256U.js} +2 -2
- package/dist/calcite/{YLG4HXQX.js → P4HTPAYY.js} +2 -2
- package/dist/calcite/{AKLVVUAF.js → PB3NZDBP.js} +2 -2
- package/dist/calcite/{47UKNTPN.js → PBBWAS5I.js} +2 -2
- package/dist/calcite/{DJLJ62SH.js → PMDQPICV.js} +2 -2
- package/dist/calcite/{3ESYPDQO.js → PO3WKGYY.js} +2 -2
- package/dist/calcite/{D2LMBHAF.js → PT4GIWSY.js} +2 -2
- package/dist/calcite/{QZWOYVIF.js → Q2IM4RA5.js} +2 -2
- package/dist/calcite/{AFT6Z4XN.js → Q6NE3RU5.js} +2 -2
- package/dist/calcite/{TV74KOGH.js → QGT6IINK.js} +1 -1
- package/dist/calcite/{4BDYUS3T.js → QLIDKGSC.js} +1 -1
- package/dist/calcite/{7VCASNSZ.js → QQX6242O.js} +2 -2
- package/dist/calcite/{A5STCYBL.js → QXVG2VR7.js} +2 -2
- package/dist/calcite/{3X2EPRVV.js → R2GRELTJ.js} +2 -2
- package/dist/calcite/{XEGQKL7E.js → RCT6BR2O.js} +2 -2
- package/dist/calcite/{C7I2R56H.js → RJTF7Q7R.js} +2 -2
- package/dist/calcite/{MR3KS5OU.js → ROM7R6HO.js} +2 -2
- package/dist/calcite/{4C5YHQNS.js → RQJNVNHO.js} +2 -2
- package/dist/calcite/{UMW27KJI.js → RRFIF2Q4.js} +2 -2
- package/dist/calcite/{MKOFW36Q.js → RRGIPETB.js} +2 -2
- package/dist/calcite/{B5VSRC37.js → RRWNGQTG.js} +2 -2
- package/dist/calcite/{KFFRBJWM.js → RWZ33BKW.js} +2 -2
- package/dist/calcite/{IOPY5AWT.js → RX5VW3ZE.js} +2 -2
- package/dist/calcite/{2GVT7O3A.js → RZZN32R6.js} +2 -2
- package/dist/calcite/{5DPN7VYU.js → S4RN7ODG.js} +1 -1
- package/dist/calcite/{KAJ5O46X.js → SE22HFJE.js} +2 -2
- package/dist/calcite/{V5NEYIKL.js → SG7SH7WB.js} +1 -1
- package/dist/calcite/{KG43E2HJ.js → SHE4OBH2.js} +1 -1
- package/dist/calcite/{2YNXKQZ4.js → SIVEDCX6.js} +1 -1
- package/dist/calcite/{MJFVA7VD.js → SKEI3S7U.js} +2 -2
- package/dist/calcite/{N6EPBBEH.js → SMDAWIGS.js} +2 -2
- package/dist/calcite/{RWOTYMJW.js → SOLVBVTD.js} +1 -1
- package/dist/calcite/{LAHFUVCE.js → STEUEG2I.js} +2 -2
- package/dist/calcite/{ZEW2OCWK.js → SW7YJLYK.js} +2 -2
- package/dist/calcite/SYVFZXVL.js +6 -0
- package/dist/calcite/{DXDJ5WQY.js → SZ5QI2MT.js} +2 -2
- package/dist/calcite/{CKS7BROH.js → SZU3AK7J.js} +2 -2
- package/dist/calcite/{XD7JRUSJ.js → T363EG5N.js} +1 -1
- package/dist/calcite/{WPF4BAMU.js → T7SF7NRA.js} +2 -2
- package/dist/calcite/{CTAX73PE.js → TDDLTDK3.js} +2 -2
- package/dist/calcite/{4ITY2M74.js → TEK2XDKU.js} +2 -2
- package/dist/calcite/{GL7FQJ6B.js → TFKDDILL.js} +2 -2
- package/dist/calcite/{BX46UL2M.js → TGBHKTK3.js} +2 -2
- package/dist/calcite/{RR5H5T4X.js → TK3JBVPD.js} +1 -1
- package/dist/calcite/{POGYVQT6.js → TXFJWAFH.js} +2 -2
- package/dist/calcite/{BYQDCL3H.js → U4R4IBBP.js} +2 -2
- package/dist/calcite/{2YKV7F4M.js → U7NIGMEU.js} +2 -2
- package/dist/calcite/{QVFQWQKI.js → UAME4WIY.js} +2 -2
- package/dist/calcite/{XE2UX7LE.js → UFWQH6UH.js} +2 -2
- package/dist/calcite/{RXMRSSK7.js → V37U5Z6J.js} +2 -2
- package/dist/calcite/{3HKQAEFK.js → VCTFWIVC.js} +2 -2
- package/dist/calcite/{RIVTRG6L.js → VGEY3HH6.js} +2 -2
- package/dist/calcite/{Z5OU4JM2.js → VI6CHB43.js} +2 -2
- package/dist/calcite/{4MGESNYR.js → VSLRKV7M.js} +2 -2
- package/dist/calcite/{YBCTXHNO.js → VT5P3MB5.js} +2 -2
- package/dist/calcite/{2QSPPB5N.js → WDGQS7IC.js} +2 -2
- package/dist/calcite/{WG35742U.js → WEHYGNQT.js} +2 -2
- package/dist/calcite/{XUEOZQQX.js → WI3STLKH.js} +2 -2
- package/dist/calcite/{G2PRWTXD.js → WVP5I6O6.js} +2 -2
- package/dist/calcite/{R23U3NHZ.js → X3AAMAXR.js} +2 -2
- package/dist/calcite/{XMUH7CN4.js → X6TZSET6.js} +2 -2
- package/dist/calcite/{RE3V3AGX.js → XBWWKLOH.js} +2 -2
- package/dist/calcite/{FBXXK7FD.js → XEQQ4Q3A.js} +2 -2
- package/dist/calcite/{KZGT2BPC.js → XGOTSY57.js} +2 -2
- package/dist/calcite/{UXNRMPJB.js → XJFOBOQW.js} +2 -2
- package/dist/calcite/{C2GXCEJA.js → XMKUZUD2.js} +2 -2
- package/dist/calcite/{XFUNNCZG.js → XV3TTZTR.js} +2 -2
- package/dist/calcite/{JAENLTSG.js → XVOXIRVC.js} +2 -2
- package/dist/calcite/{Q3CLMX4J.js → XXDOAYFP.js} +2 -2
- package/dist/calcite/{5HIYZ4WY.js → XXTI75LD.js} +2 -2
- package/dist/calcite/{3IIRVPIN.js → XYBQMUMJ.js} +2 -2
- package/dist/calcite/{GNZDXKEN.js → YI2RUBW6.js} +2 -2
- package/dist/calcite/{5Z2XI2GF.js → YJLNEGRK.js} +2 -2
- package/dist/calcite/{NMLYSVCQ.js → YLZY4ZZT.js} +2 -2
- package/dist/calcite/{NYZXV3DV.js → YMPRD44Q.js} +2 -2
- package/dist/calcite/{PVPIUHXP.js → YNOIKGYI.js} +2 -2
- package/dist/calcite/{GYMCCYZA.js → YQA5ERPT.js} +2 -2
- package/dist/calcite/{DC2PBKXT.js → YQFYH3CJ.js} +2 -2
- package/dist/calcite/{2C3ZFALB.js → YUDP3AEA.js} +2 -2
- package/dist/calcite/{JXCV4VPT.js → YWOO3EBR.js} +2 -2
- package/dist/calcite/{OQQ6E3IJ.js → ZVIL34KC.js} +2 -2
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/chunks/ExpandToggle.js +1 -1
- package/dist/chunks/FloatingArrow.js +1 -1
- package/dist/chunks/Heading.js +1 -1
- package/dist/chunks/Validation.js +1 -1
- package/dist/chunks/_commonjsHelpers.js +1 -1
- 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 +1 -1
- package/dist/chunks/focusTrapComponent.js +1 -1
- 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 +1 -1
- package/dist/chunks/interactive.js +1 -1
- package/dist/chunks/key.js +1 -1
- package/dist/chunks/label.js +1 -1
- package/dist/chunks/loadable.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 +1 -1
- package/dist/chunks/resources6.js +1 -1
- package/dist/chunks/resources7.js +1 -1
- package/dist/chunks/responsive.js +1 -1
- package/dist/chunks/runtime.js +5 -5
- package/dist/chunks/sortableComponent.js +1 -1
- package/dist/chunks/time.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/utils3.js +1 -1
- package/dist/chunks/utils4.js +1 -1
- package/dist/components/calcite-accordion/customElement.js +1 -1
- package/dist/components/calcite-accordion-item/customElement.js +1 -1
- package/dist/components/calcite-action/customElement.js +1 -1
- 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 +1 -1
- package/dist/components/calcite-avatar/customElement.js +1 -1
- package/dist/components/calcite-block/customElement.js +1 -1
- package/dist/components/calcite-block-section/customElement.js +1 -1
- package/dist/components/calcite-button/customElement.js +1 -1
- package/dist/components/calcite-card/customElement.js +1 -1
- package/dist/components/calcite-card-group/customElement.js +1 -1
- package/dist/components/calcite-carousel/customElement.js +1 -1
- package/dist/components/calcite-carousel-item/customElement.js +1 -1
- package/dist/components/calcite-checkbox/customElement.js +1 -1
- package/dist/components/calcite-chip/customElement.js +1 -1
- package/dist/components/calcite-chip-group/customElement.js +1 -1
- package/dist/components/calcite-color-picker/customElement.js +1 -1
- package/dist/components/calcite-color-picker-hex-input/customElement.js +1 -1
- package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
- package/dist/components/calcite-combobox/customElement.js +1 -1
- package/dist/components/calcite-combobox-item/customElement.js +1 -1
- package/dist/components/calcite-combobox-item-group/customElement.js +1 -1
- 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 +1 -1
- package/dist/components/calcite-dialog/customElement.js +1 -1
- package/dist/components/calcite-dropdown/customElement.js +1 -1
- package/dist/components/calcite-dropdown-group/customElement.js +1 -1
- 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 +1 -1
- package/dist/components/calcite-flow/customElement.js +1 -1
- package/dist/components/calcite-flow-item/customElement.js +1 -1
- package/dist/components/calcite-graph/customElement.js +1 -1
- package/dist/components/calcite-handle/customElement.js +1 -1
- package/dist/components/calcite-icon/customElement.js +1 -1
- package/dist/components/calcite-inline-editable/customElement.js +1 -1
- package/dist/components/calcite-input/customElement.js +1 -1
- package/dist/components/calcite-input-date-picker/customElement.js +3 -3
- 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 +1 -1
- package/dist/components/calcite-input-time-zone/customElement.js +1 -1
- 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 +10 -0
- package/dist/components/calcite-list/customElement.js +35 -35
- package/dist/components/calcite-list-item/customElement.js +1 -1
- package/dist/components/calcite-list-item-group/customElement.js +1 -1
- package/dist/components/calcite-loader/customElement.js +1 -1
- package/dist/components/calcite-menu/customElement.js +1 -1
- package/dist/components/calcite-menu-item/customElement.js +1 -1
- package/dist/components/calcite-meter/customElement.js +1 -1
- package/dist/components/calcite-modal/customElement.js +5 -5
- 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 +1 -1
- 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 +1 -1
- package/dist/components/calcite-panel/customElement.js +1 -1
- package/dist/components/calcite-popover/customElement.js +1 -1
- package/dist/components/calcite-progress/customElement.js +1 -1
- package/dist/components/calcite-radio-button/customElement.js +1 -1
- package/dist/components/calcite-radio-button-group/customElement.js +1 -1
- package/dist/components/calcite-rating/customElement.js +1 -1
- 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 +1 -1
- package/dist/components/calcite-select/customElement.js +1 -1
- package/dist/components/calcite-sheet/customElement.js +1 -1
- 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 +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 +1 -1
- package/dist/components/calcite-stepper-item/customElement.js +1 -1
- 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 +1 -1
- package/dist/components/calcite-tab-title/customElement.js +1 -1
- package/dist/components/calcite-table/customElement.js +1 -1
- package/dist/components/calcite-table-cell/customElement.js +1 -1
- package/dist/components/calcite-table-header/customElement.js +1 -1
- 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.js +1 -1
- 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 +2 -2
- 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/customElement.js +1 -1
- package/dist/components/calcite-tree/customElement.js +1 -1
- package/dist/components/calcite-tree-item/customElement.js +1 -1
- package/dist/docs/api.json +23 -1
- package/dist/docs/docs.json +28 -1
- package/dist/docs/web-types.json +6 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +2 -2
- package/dist/calcite/VLBI3AA2.js +0 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.73
|
|
5
5
|
*/
|
|
6
|
-
import{b as _}from"./
|
|
6
|
+
import{b as _}from"./TGBHKTK3.js";import"./SG7SH7WB.js";var l={name:"ca",weekdays:"Diumenge_Dilluns_Dimarts_Dimecres_Dijous_Divendres_Dissabte".split("_"),weekdaysShort:"Dg._Dl._Dt._Dc._Dj._Dv._Ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),months:"Gener_Febrer_Mar\xE7_Abril_Maig_Juny_Juliol_Agost_Setembre_Octubre_Novembre_Desembre".split("_"),monthsShort:"Gen._Febr._Mar\xE7_Abr._Maig_Juny_Jul._Ag._Set._Oct._Nov._Des.".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",ll:"D MMM YYYY",lll:"D MMM YYYY, H:mm",llll:"ddd D MMM YYYY, H:mm"},relativeTime:{future:"d'aqu\xED %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinal:function(e){var s;return e===1||e===3?s="r":e===2?s="n":e===4?s="t":s="\xE8",""+e+s}};_.locale(l,null,!0);var a=l;export{a as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.73
|
|
5
5
|
*/
|
|
6
|
-
import{b as p}from"./
|
|
6
|
+
import{b as p}from"./SW7YJLYK.js";import{v as m,w as u}from"./AZUPP63M.js";import"./LVMC3BF4.js";import{I as b,d as c,e as n,v as h}from"./76XSLVGD.js";var f={titleGroup:"title-group"},g=c`:host{display:flex;flex-direction:column}:host([bordered]){box-shadow:inset 0 1px 0 var(--calcite-color-border-1);background-color:var(--calcite-color-foreground-1)}:host([bordered]) section{border-width:1px;border-style:solid;border-color:var(--calcite-color-border-1)}:host([bordered][position=bottom]){box-shadow:inset 0 1px 0 var(--calcite-color-border-1),inset 0 -1px 0 var(--calcite-color-border-1)}:host([bordered]:not([position=bottom])) ::slotted(calcite-tab-nav){margin-block-end:-1px}:host([bordered][scale=s]) section{padding:.75rem}:host([bordered][scale=m]) section{padding:.5rem}:host([bordered][scale=l]) section{padding:1rem}:host([position=bottom]){flex-direction:column-reverse}section{display:flex;flex-grow:1;overflow:hidden;border-block-start-width:1px;border-block-start-color:var(--calcite-color-border-1);border-block-start-style:solid}:host([position=bottom]) section{flex-direction:column-reverse;border-block-start-width:0px;border-block-end-width:1px;border-block-end-color:var(--calcite-color-border-1)}:host([position=bottom]:not([bordered])) section{border-block-end-style:solid}@media (forced-colors: active){:host([bordered]) section{border-block-start-width:0px;border-block-end-width:1px}:host([position=bottom][bordered]) section{border-block-start-width:1px;border-block-end-width:0px}}:host([hidden]){display:none}[hidden]{display:none}`,d=class extends h{constructor(){super(),this.tabs=[],this.titles=[],this.bordered=!1,this.layout="inline",this.position="top",this.scale="m",this.listen("calciteInternalTabNavSlotChange",this.calciteInternalTabNavSlotChangeHandler)}static{this.properties={tabs:16,titles:16,bordered:5,layout:3,position:3,scale:3}}static{this.styles=g}connectedCallback(){super.connectedCallback(),this.updateItems()}load(){this.updateItems()}willUpdate(e){(e.has("position")&&(this.hasUpdated||this.position!=="top")||e.has("scale")&&(this.hasUpdated||this.scale!=="m"))&&this.updateItems(),(e.has("titles")||e.has("tabs"))&&this.hasUpdated&&this.titles?.length>0&&this.tabs?.length>0&&(this.updateAriaSettings(),this.updateItems())}calciteInternalTabNavSlotChangeHandler(e){e.stopPropagation(),e.detail.length!==this.titles.length&&(this.titles=e.detail)}defaultSlotChangeHandler(e){this.tabs=m(e,"calcite-tab")}async updateAriaSettings(){await this.componentOnReady();let e,i,o=u(this.slotEl,"calcite-tab");if(o.some(t=>t.tab)||this.titles.some(t=>t.tab))e=o.sort((t,a)=>t.tab.localeCompare(a.tab)).map(t=>t.id),i=this.titles.sort((t,a)=>t.tab.localeCompare(a.tab)).map(t=>t.id);else{let t=await Promise.all(o.map(s=>s.getTabIndex())),a=await Promise.all(this.titles.map(s=>s.getTabIndex()));e=t.reduce((s,r,l)=>(s[r]=o[l].id,s),[]),i=a.reduce((s,r,l)=>(s[r]=this.titles[l].id,s),[])}o.forEach(t=>t._updateAriaInfo(e,i)),this.titles.forEach(t=>t._updateAriaInfo(e,i))}updateItems(){let{position:e,scale:i}=this,o=this.el.querySelector("calcite-tab-nav");o&&(o.position=e,o.scale=i),Array.from(this.el.querySelectorAll("calcite-tab")).forEach(t=>{t.parentElement===this.el&&(t.scale=i)}),Array.from(this.el.querySelectorAll("calcite-tab-nav > calcite-tab-title")).forEach(t=>{t.position=e,t.scale=i})}setDefaultSlotRef(e){this.slotEl=e}render(){return n`<slot name=${f.titleGroup}></slot><section><slot @slotchange=${this.defaultSlotChangeHandler} ${p(this.setDefaultSlotRef)}></slot></section>`}};b("calcite-tabs",d);export{d as Tabs};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.73
|
|
5
5
|
*/
|
|
6
|
-
import{b as C,c as ve,i as E,k as b,n as W}from"./5CZVW5VR.js";import{a as ge,b as S}from"./BX46UL2M.js";import{a as fe}from"./A5H7HNHK.js";import"./V5NEYIKL.js";import{b as g}from"./TV74KOGH.js";import{a as pe}from"./SP2NNM3D.js";import{g as _,j as O}from"./SWVKKX5A.js";import{a as oe,c as le,e as ce,h as he}from"./64QAC4RA.js";import{c as me,d as ue,e as de}from"./2OVPRPKJ.js";import{a as ae,b as se}from"./XUEOZQQX.js";import{a as j}from"./3AF3C5VJ.js";import"./MP7JJWOJ.js";import{b as re}from"./RR5H5T4X.js";import{a as ne}from"./IOUUMHDP.js";import{b as F}from"./ZEW2OCWK.js";import{n as X}from"./5ABTT7OQ.js";import{a as ee,b as te,d as ie}from"./BLFO7PS4.js";import"./VS3LXKQA.js";import{A as N,I as J,d as R,e as B,i as Y,u as w,v as G,w as K}from"./M45N6WHF.js";var U=function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(t,i,r){return i||r.slice(1)})},Z={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},V=function(e,t){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(i,r,a){var s=a&&a.toUpperCase();return r||t[a]||Z[a]||U(t[s])})};var $e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,Se=/\d/,P=/\d\d/,Ye=/\d{3}/,Pe=/\d{4}/,y=/\d\d?/,xe=/[+-]?\d+/,He=/[+-]\d\d:?(\d\d)?|Z/,x=/\d*[^-_:/,()\s\d]+/,k={},be=function(e){return e=+e,e+(e>68?1900:2e3)};function Fe(n){if(!n||n==="Z")return 0;var e=n.match(/([+-]|\d\d)/g),t=+(e[1]*60)+(+e[2]||0);return t===0?0:e[0]==="+"?-t:t}var d=function(e){return function(t){this[e]=+t}},ye=[He,function(n){var e=this.zone||(this.zone={});e.offset=Fe(n)}],q=function(e){var t=k[e];return t&&(t.indexOf?t:t.s.concat(t.f))},Me=function(e,t){var i,r=k,a=r.meridiem;if(!a)i=e===(t?"pm":"PM");else for(var s=1;s<=24;s+=1)if(e.indexOf(a(s,0,t))>-1){i=s>12;break}return i},Oe={A:[x,function(n){this.afternoon=Me(n,!1)}],a:[x,function(n){this.afternoon=Me(n,!0)}],Q:[Se,function(n){this.month=(n-1)*3+1}],S:[Se,function(n){this.milliseconds=+n*100}],SS:[P,function(n){this.milliseconds=+n*10}],SSS:[Ye,function(n){this.milliseconds=+n}],s:[y,d("seconds")],ss:[y,d("seconds")],m:[y,d("minutes")],mm:[y,d("minutes")],H:[y,d("hours")],h:[y,d("hours")],HH:[y,d("hours")],hh:[y,d("hours")],D:[y,d("day")],DD:[P,d("day")],Do:[x,function(n){var e=k,t=e.ordinal,i=n.match(/\d+/);if(this.day=i[0],!!t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===n&&(this.day=r)}],w:[y,d("week")],ww:[P,d("week")],M:[y,d("month")],MM:[P,d("month")],MMM:[x,function(n){var e=q("months"),t=q("monthsShort"),i=(t||e.map(function(r){return r.slice(0,3)})).indexOf(n)+1;if(i<1)throw new Error;this.month=i%12||i}],MMMM:[x,function(n){var e=q("months"),t=e.indexOf(n)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[xe,d("year")],YY:[P,function(n){this.year=be(n)}],YYYY:[Pe,d("year")],Z:ye,ZZ:ye};function Ce(n){var e=n.afternoon;if(e!==void 0){var t=n.hours;e?t<12&&(n.hours+=12):t===12&&(n.hours=0),delete n.afternoon}}function Ee(n){n=V(n,k&&k.formats);for(var e=n.match($e),t=e.length,i=0;i<t;i+=1){var r=e[i],a=Oe[r],s=a&&a[0],c=a&&a[1];c?e[i]={regex:s,parser:c}:e[i]=r.replace(/^\[|\]$/g,"")}return function(h){for(var o={},l=0,u=0;l<t;l+=1){var m=e[l];if(typeof m=="string")u+=m.length;else{var f=m.regex,M=m.parser,p=h.slice(u),v=f.exec(p),D=v[0];M.call(o,D),h=h.replace(D,"")}}return Ce(o),o}}var Ve=function(e,t,i,r){try{if(["x","X"].indexOf(t)>-1)return new Date((t==="X"?1e3:1)*e);var a=Ee(t),s=a(e),c=s.year,h=s.month,o=s.day,l=s.hours,u=s.minutes,m=s.seconds,f=s.milliseconds,M=s.zone,p=s.week,v=new Date,D=o||(!c&&!h?v.getDate():1),L=c||v.getFullYear(),I=0;c&&!h||(I=h>0?h-1:v.getMonth());var T=l||0,$=u||0,A=m||0,z=f||0;if(M)return new Date(Date.UTC(L,I,D,T,$,A,z+M.offset*60*1e3));if(i)return new Date(Date.UTC(L,I,D,T,$,A,z));var H;return H=new Date(L,I,D,T,$,A,z),p&&(H=r(H).week(p).toDate()),H}catch{return new Date("")}},De=function(n,e,t){t.p.customParseFormat=!0,n&&n.parseTwoDigitYear&&(be=n.parseTwoDigitYear);var i=e.prototype,r=i.parse;i.parse=function(a){var s=a.date,c=a.utc,h=a.args;this.$u=c;var o=h[1];if(typeof o=="string"){var l=h[2]===!0,u=h[3]===!0,m=l||u,f=h[2];u&&(f=h[2]),k=this.$locale(),!l&&f&&(k=t.Ls[f]),this.$d=Ve(s,o,c,t),this.init(),f&&f!==!0&&(this.$L=this.locale(f).$L),m&&s!=this.format(o)&&(this.$d=new Date("")),k={}}else if(o instanceof Array)for(var M=o.length,p=1;p<=M;p+=1){h[1]=o[p-1];var v=t.apply(this,h);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}p===M&&(this.$d=new Date(""))}else r.call(this,a)}};var ke=function(n,e,t){var i=e.prototype,r=function(l){return l&&(l.indexOf?l:l.s)},a=function(l,u,m,f,M){var p=l.name?l:l.$locale(),v=r(p[u]),D=r(p[m]),L=v||D.map(function(T){return T.slice(0,f)});if(!M)return L;var I=p.weekStart;return L.map(function(T,$){return L[($+(I||0))%7]})},s=function(){return t.Ls[t.locale()]},c=function(l,u){return l.formats[u]||U(l.formats[u.toUpperCase()])},h=function(){var l=this;return{months:function(m){return m?m.format("MMMM"):a(l,"months")},monthsShort:function(m){return m?m.format("MMM"):a(l,"monthsShort","months",3)},firstDayOfWeek:function(){return l.$locale().weekStart||0},weekdays:function(m){return m?m.format("dddd"):a(l,"weekdays")},weekdaysMin:function(m){return m?m.format("dd"):a(l,"weekdaysMin","weekdays",2)},weekdaysShort:function(m){return m?m.format("ddd"):a(l,"weekdaysShort","weekdays",3)},longDateFormat:function(m){return c(l.$locale(),m)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return h.bind(this)()},t.localeData=function(){var o=s();return{firstDayOfWeek:function(){return o.weekStart||0},weekdays:function(){return t.weekdays()},weekdaysShort:function(){return t.weekdaysShort()},weekdaysMin:function(){return t.weekdaysMin()},months:function(){return t.months()},monthsShort:function(){return t.monthsShort()},longDateFormat:function(u){return c(o,u)},meridiem:o.meridiem,ordinal:o.ordinal}},t.months=function(){return a(s(),"months")},t.monthsShort=function(){return a(s(),"monthsShort","months",3)},t.weekdays=function(o){return a(s(),"weekdays",null,null,o)},t.weekdaysShort=function(o){return a(s(),"weekdaysShort","weekdays",3,o)},t.weekdaysMin=function(o){return a(s(),"weekdaysMin","weekdays",2,o)}};var Le=function(n,e,t){var i=e.prototype,r=i.format;t.en.formats=Z,i.format=function(a){a===void 0&&(a=ge);var s=this.$locale(),c=s.formats,h=c===void 0?{}:c,o=V(a,h);return r.call(this,o)}};var Ie=function(n,e){var t=e.prototype.parse;e.prototype.parse=function(a){if(typeof a.date=="string"){var s=this.$locale();a.date=s&&s.preparse?s.preparse(a.date):a.date}return t.bind(this)(a)};var i=e.prototype.format;e.prototype.format=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var h=i.call.apply(i,[this].concat(s)),o=this.$locale();return o&&o.postformat?o.postformat(h):h};var r=e.prototype.fromToBase;r&&(e.prototype.fromToBase=function(a,s,c,h){var o=this.$locale()||c.$locale();return r.call(this,a,s,c,h,o&&o.postformat)})};var Te=function(n,e,t){t.updateLocale=function(i,r){var a=t.Ls,s=a[i];if(s){var c=r?Object.keys(r):[];return c.forEach(function(h){s[h]=r[h]}),s}}};var Ae=R`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;-webkit-user-select:none;user-select:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([scale=s]){--calcite-toggle-spacing: .5rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 1rem)}:host([scale=m]){--calcite-toggle-spacing: .75rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 1.5rem)}:host([scale=l]){--calcite-toggle-spacing: 1rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 2rem)}.input-wrapper{position:relative}.toggle-icon{position:absolute;display:flex;cursor:pointer;align-items:center;inset-inline-end:0;inset-block:0;padding-inline:var(--calcite-toggle-spacing);--calcite-icon-color: var(--calcite-color-text-3)}.input-wrapper:hover .toggle-icon,calcite-input-text:focus+.toggle-icon{--calcite-icon-color: var(--calcite-color-text-1)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}:host([hidden]){display:none}[hidden]{display:none}`,ze={toggleIcon:"toggle-icon"},we={validationMessage:"inputTimePickerValidationMessage"},Be=new Map([["ar",()=>import("./XVTFAQH5.js")],["bg",()=>import("./TSZ5VJHD.js")],["bs",()=>import("./NXRMM6RQ.js")],["ca",()=>import("./LTDIUGCI.js")],["cs",()=>import("./4ZSEOLCI.js")],["da",()=>import("./ZBHECTFB.js")],["de",()=>import("./WYH7QMUH.js")],["de-at",()=>import("./CKS7BROH.js")],["de-ch",()=>import("./RE3V3AGX.js")],["el",()=>import("./EIIV36KM.js")],["en",()=>import("./LPKP754Y.js")],["en-au",()=>import("./IVYJQBG6.js")],["en-ca",()=>import("./JXCV4VPT.js")],["en-gb",()=>import("./W7XYBA5M.js")],["es",()=>import("./5Z2XI2GF.js")],["es-mx",()=>import("./MD6T7SAI.js")],["et",()=>import("./OLLW2GVO.js")],["fi",()=>import("./O423XIKQ.js")],["fr",()=>import("./3ESYPDQO.js")],["fr-ch",()=>import("./5KNEC5GO.js")],["he",()=>import("./B7WPTW6T.js")],["hi",()=>import("./C44SLEQF.js")],["hr",()=>import("./B5VSRC37.js")],["hu",()=>import("./5DDB4I6A.js")],["id",()=>import("./N6EPBBEH.js")],["it",()=>import("./WG35742U.js")],["it-ch",()=>import("./QVFQWQKI.js")],["ja",()=>import("./DJLJ62SH.js")],["ko",()=>import("./XFUNNCZG.js")],["lt",()=>import("./J77UNZ6E.js")],["lv",()=>import("./3HKQAEFK.js")],["mk",()=>import("./NT2DAAI5.js")],["nl",()=>import("./E45E7KVC.js")],["nb",()=>import("./J4GNMDGQ.js")],["pl",()=>import("./GRMW7Z2X.js")],["pt",()=>import("./L4SRVDU6.js")],["pt-br",()=>import("./MJFVA7VD.js")],["ro",()=>import("./YLG4HXQX.js")],["ru",()=>import("./CVVHTI2Q.js")],["sk",()=>import("./GQSR23CQ.js")],["sl",()=>import("./VFJDFMSJ.js")],["sr",()=>import("./G2PRWTXD.js")],["sv",()=>import("./WMAR4UTC.js")],["th",()=>import("./A2I3DEDD.js")],["tr",()=>import("./EC3VISWF.js")],["uk",()=>import("./RV7OK3WC.js")],["vi",()=>import("./UXNRMPJB.js")],["zh-cn",()=>import("./HHKOPDIS.js")],["zh-hk",()=>import("./HNUUWVG7.js")],["zh-tw",()=>import("./ZP4F6KYZ.js")]]);S.extend(De);S.extend(ke);S.extend(Le);S.extend(Ie);S.extend(Te);var Q=class extends G{constructor(){super(),this.userChangedValue=!1,this._value=null,this.disabled=!1,this.focusTrapDisabled=!1,this.messages=ne(),this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.step=60,this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.calciteInputTimePickerBeforeClose=w({cancelable:!1}),this.calciteInputTimePickerBeforeOpen=w({cancelable:!1}),this.calciteInputTimePickerChange=w(),this.calciteInputTimePickerClose=w({cancelable:!1}),this.calciteInputTimePickerOpen=w({cancelable:!1}),this.listen("blur",this.hostBlurHandler),this.listen("keydown",this.keyDownHandler)}static{this.properties={calciteInputEl:16,disabled:7,focusTrapDisabled:7,form:3,max:3,messageOverrides:0,min:3,name:1,numberingSystem:1,open:7,overlayPositioning:1,placement:3,readOnly:7,required:7,scale:3,status:3,step:9,validationIcon:[3,{converter:N}],validationMessage:1,validity:0,value:1}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=Ae}get value(){return this._value}set value(e){let t=this._value;e!==t&&(this._value=e,this.valueWatcher(e))}async reposition(e=!1){this.popoverEl?.reposition(e)}async setFocus(){await ie(this),X(this.el)}connectedCallback(){super.connectedCallback(),E(this.value)?this.setValueDirectly(this.value):this.value=void 0,me(this),le(this)}async load(){ee(this),await this.loadDateTimeLocaleData()}willUpdate(e){e.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),e.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&(this.disabled||(this.open=!1)),e.has("readOnly")&&(this.hasUpdated||this.readOnly!==!1)&&(this.readOnly||(this.open=!1)),e.has("numberingSystem")&&this.numberingSystemWatcher(this.numberingSystem),e.has("step")&&(this.hasUpdated||this.step!==60)&&this.stepWatcher(this.step,e.get("step")),e.has("messages")&&this.effectiveLocaleWatcher(this.messages._lang)}updated(){ae(this)}loaded(){te(this),E(this.value)&&this.setInputValue(b({value:this.value,locale:this.messages._lang,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds(),fractionalSecondDigits:g(this.step)}))}disconnectedCallback(){super.disconnectedCallback(),ue(this),ce(this)}openHandler(){this.disabled||this.readOnly||this.popoverEl&&(this.popoverEl.open=this.open)}numberingSystemWatcher(e){this.setInputValue(b({value:this.value,locale:this.messages._lang,numberingSystem:e,includeSeconds:this.shouldIncludeSeconds(),fractionalSecondDigits:g(this.step)}))}stepWatcher(e,t){(t>=60&&e>0&&e<60||e>=60&&t>0&&t<60)&&this.setValueDirectly(this.value)}valueWatcher(e){this.userChangedValue||this.setValueDirectly(e),this.userChangedValue=!1}async effectiveLocaleWatcher(e){await this.loadDateTimeLocaleData(),this.setInputValue(b({value:this.value,locale:e,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds(),fractionalSecondDigits:g(this.step)}))}hostBlurHandler(){let e=this.calciteInputEl.value,t=this.delocalizeTimeString(e);if(!t){this.setValue("");return}t!==this.value&&this.setValue(t);let i=b({value:this.value,locale:this.messages._lang,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds(),fractionalSecondDigits:g(this.step)});i!==e&&this.setInputValue(i),this.deactivate()}calciteInternalInputFocusHandler(e){this.readOnly||e.stopPropagation()}calciteInternalInputInputHandler(e){let{messages:{_lang:t},numberingSystem:i}=this;if(i&&i!=="latn"){let r=e.target;O.numberFormatOptions={locale:t,numberingSystem:i,useGrouping:!1};let a=O.delocalize(r.value).split("").map(s=>re.includes(s)?O.numberFormatter.format(Number(s)):s).join("");this.setInputValue(a)}}timePickerChangeHandler(e){e.stopPropagation();let t=e.target.value,i=this.shouldIncludeSeconds();this.setValue(W(t,i)),this.setInputValue(b({value:t,locale:this.messages._lang,numberingSystem:this.numberingSystem,includeSeconds:i,fractionalSecondDigits:g(this.step)}))}popoverBeforeOpenHandler(e){e.stopPropagation(),this.calciteInputTimePickerBeforeOpen.emit()}popoverOpenHandler(e){e.stopPropagation(),this.calciteInputTimePickerOpen.emit()}popoverBeforeCloseHandler(e){e.stopPropagation(),this.calciteInputTimePickerBeforeClose.emit()}popoverCloseHandler(e){e.stopPropagation(),this.calciteInputTimePickerClose.emit(),this.open=!1}syncHiddenFormInput(e){fe("time",this,e)}delocalizeTimeString(e){S.locale(this.messages._lang.toLowerCase());let t=this.delocalizeTimeStringToParts(e),i;if(this.shouldIncludeFractionalSeconds()){let r=g(this.step),a=this.delocalizeTimeStringToParts(e,"S");if(r===1)i=a.millisecond!==0?this.getTimeStringFromParts(a):this.getTimeStringFromParts(t);else{let s=this.delocalizeTimeStringToParts(e,"SS");if(r===2)s.millisecond!==0?i=this.getTimeStringFromParts(s):a.millisecond!==0?i=this.getTimeStringFromParts(a):i=this.getTimeStringFromParts(t);else if(r>=3){let c=this.delocalizeTimeStringToParts(e,"SSS");c.millisecond!==0?i=this.getTimeStringFromParts(c):s.millisecond!==0?i=this.getTimeStringFromParts(s):a.millisecond!==0?i=this.getTimeStringFromParts(a):i=this.getTimeStringFromParts(t)}}}else i=this.getTimeStringFromParts(t);return i}delocalizeTimeStringToParts(e,t){let i=this.localeConfig?.formats?.LTS,r=i.match(/ss\.*(S+)/g);if(t&&this.shouldIncludeFractionalSeconds()){let s=`ss.${t}`;this.localeConfig.formats.LTS=r?i.replace(r[0],s):i.replace("ss",s)}else r&&(this.localeConfig.formats.LTS=i.replace(r[0],"ss"));S.updateLocale(this.getSupportedDayjsLocale(_(this.messages._lang)),this.localeConfig);let a=S(e,["LTS","LT"]);return a.isValid()?{hour:a.get("hour"),minute:a.get("minute"),second:a.get("second"),millisecond:a.get("millisecond")}:{hour:null,minute:null,second:null,millisecond:null}}getTimeStringFromParts(e){let t="";if(!e)return t;if(e.hour!==null&&e.minute!==null&&(t=`${C(e.hour)}:${C(e.minute)}`,this.shouldIncludeSeconds()&&e.second!==null&&(t+=`:${C(e.second)}`,this.shouldIncludeFractionalSeconds()&&e.millisecond!==null))){let i=(e.millisecond*.001).toFixed(g(this.step));t+=`.${i.toString().replace("0.","")}`}return t}keyDownHandler(e){let{defaultPrevented:t,key:i}=e;if(!t)if(i==="Enter"){if(oe(this)&&(e.preventDefault(),this.calciteInputEl.setFocus()),e.composedPath().includes(this.calciteTimePickerEl))return;let r=this.delocalizeTimeString(this.calciteInputEl.value);if(E(r)){this.setValue(r);let a=b({value:this.value,locale:this.messages._lang,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds(),fractionalSecondDigits:g(this.step)});r&&this.calciteInputEl.value!==a&&this.setInputValue(a)}}else i==="ArrowDown"?(this.open=!0,e.preventDefault()):this.open&&this.focusTrapDisabled&&i==="Escape"&&(this.open=!1,e.preventDefault())}getSupportedDayjsLocale(e){let t=e.toLowerCase();return t==="no"?"nb":t==="pt-pt"?"pt":t}async loadDateTimeLocaleData(){let e=_(this.messages._lang).toLowerCase();e=this.getSupportedDayjsLocale(e);let{default:t}=await Be.get(e)();this.localeConfig=t,S.locale(this.localeConfig,null,!0),S.updateLocale(e,this.getExtendedLocaleConfig(e))}getExtendedLocaleConfig(e){if(e==="ar")return{meridiem:t=>t>12?"\u0645":"\u0635",formats:{LT:"HH:mm A",LTS:"HH:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm A",LLLL:"dddd D MMMM YYYY HH:mm A"}};if(e==="en-au")return{meridiem:t=>t>12?"pm":"am"};if(e==="en-ca")return{meridiem:t=>t>12?"p.m.":"a.m."};if(e==="el")return{meridiem:t=>t>12?"\u03BC.\u03BC.":"\u03C0.\u03BC."};if(e==="hi")return{formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, h:mm A",LLLL:"dddd, D MMMM YYYY, h:mm A"},meridiem:t=>t>12?"pm":"am"};if(e==="ko")return{meridiem:t=>t>12?"\uC624\uD6C4":"\uC624\uC804"};if(e==="zh-tw")return{formats:{LT:"AHH:mm",LTS:"AHH:mm:ss"}};if(e==="zh-hk")return{formats:{LT:"AHH:mm",LTS:"AHH:mm:ss"},meridiem:t=>t>12?"\u4E0B\u5348":"\u4E0A\u5348"}}onLabelClick(){this.setFocus()}shouldIncludeSeconds(){return this.step<60}shouldIncludeFractionalSeconds(){return g(this.step)>0}setCalcitePopoverEl(e){this.popoverEl=e,this.openHandler()}setInputEl(e){e&&(this.calciteInputEl=e)}setCalciteTimePickerEl(e){e&&(this.calciteTimePickerEl=e)}setInputValue(e){this.calciteInputEl&&(this.calciteInputEl.value=e)}setValue(e){let t=this.value,i=ve(e)||"";i!==t&&(this.userChangedValue=!0,this.value=i||"",this.calciteInputTimePickerChange.emit().defaultPrevented&&(this.userChangedValue=!1,this.value=t,this.setInputValue(b({value:t,locale:this.messages._lang,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds(),fractionalSecondDigits:g(this.step)}))))}setValueDirectly(e){let t=this.shouldIncludeSeconds();this.value=W(e,t),this.setInputValue(this.value?b({value:this.value,includeSeconds:t,locale:this.messages._lang,numberingSystem:this.numberingSystem,fractionalSecondDigits:g(this.step)}):"")}onInputWrapperClick(){this.open=!this.open}deactivate(){this.open=!1}render(){let{disabled:e,messages:t,readOnly:i}=this;return se({disabled:this.disabled,children:B`<div class="input-wrapper" @click=${this.onInputWrapperClick}><calcite-input-text aria-errormessage=${we.validationMessage} aria-autocomplete=none aria-haspopup=dialog .ariaInvalid=${this.status==="invalid"} .disabled=${e} icon=clock .label=${de(this)} lang=${this.messages._lang??Y} @calciteInputTextInput=${this.calciteInternalInputInputHandler} @calciteInternalInputTextFocus=${this.calciteInternalInputFocusHandler} .readOnly=${i} role=combobox .scale=${this.scale} .status=${this.status} ${F(this.setInputEl)}>${!this.readOnly&&this.renderToggleIcon(this.open)||""}</calcite-input-text></div><calcite-popover auto-close .focusTrapDisabled=${this.focusTrapDisabled} .label=${t.chooseTime} lang=${this.messages._lang??Y} @calcitePopoverBeforeClose=${this.popoverBeforeCloseHandler} @calcitePopoverBeforeOpen=${this.popoverBeforeOpenHandler} @calcitePopoverClose=${this.popoverCloseHandler} @calcitePopoverOpen=${this.popoverOpenHandler} .overlayPositioning=${this.overlayPositioning} .placement=${this.placement} .referenceElement=${this.calciteInputEl} trigger-disabled ${F(this.setCalcitePopoverEl)}><calcite-time-picker lang=${this.messages._lang??Y} .messageOverrides=${this.messageOverrides} .numberingSystem=${this.numberingSystem} @calciteInternalTimePickerChange=${this.timePickerChangeHandler} .scale=${this.scale} .step=${this.step} tabindex=${(this.open?void 0:-1)??Y} .value=${this.value} ${F(this.setCalciteTimePickerEl)}></calcite-time-picker></calcite-popover>${he({component:this})}${this.validationMessage&&this.status==="invalid"?pe({icon:this.validationIcon,id:we.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}renderToggleIcon(e){return B`<span class=${K(ze.toggleIcon)} slot=action><calcite-icon .icon=${e?"chevron-up":"chevron-down"} .scale=${j(this.scale)}></calcite-icon></span>`}};J("calcite-input-time-picker",Q);export{Q as InputTimePicker};
|
|
6
|
+
import{b as C,c as ve,i as E,k as b,n as W}from"./4RUOA2HH.js";import{a as ge,b as S}from"./TGBHKTK3.js";import{a as fe}from"./APNCOMKY.js";import"./SG7SH7WB.js";import{b as g}from"./QGT6IINK.js";import{a as pe}from"./4BIINMNZ.js";import{g as _,j as O}from"./LO7IADFH.js";import{a as oe,c as le,e as ce,h as he}from"./H5P3WTFE.js";import{c as me,d as ue,e as de}from"./DZM4UQPG.js";import{a as ae,b as se}from"./WI3STLKH.js";import{a as j}from"./IBKCEJD5.js";import"./6Y3XNBCH.js";import{b as re}from"./TK3JBVPD.js";import{a as ne}from"./J3DIGGB6.js";import{b as F}from"./SW7YJLYK.js";import{n as X}from"./AZUPP63M.js";import{a as ee,b as te,d as ie}from"./KRIGOKK3.js";import"./LVMC3BF4.js";import{A as N,I as J,d as R,e as B,i as Y,u as w,v as G,w as K}from"./76XSLVGD.js";var U=function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(t,i,r){return i||r.slice(1)})},Z={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},V=function(e,t){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(i,r,a){var s=a&&a.toUpperCase();return r||t[a]||Z[a]||U(t[s])})};var $e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,Se=/\d/,P=/\d\d/,Ye=/\d{3}/,Pe=/\d{4}/,y=/\d\d?/,xe=/[+-]?\d+/,He=/[+-]\d\d:?(\d\d)?|Z/,x=/\d*[^-_:/,()\s\d]+/,k={},be=function(e){return e=+e,e+(e>68?1900:2e3)};function Fe(n){if(!n||n==="Z")return 0;var e=n.match(/([+-]|\d\d)/g),t=+(e[1]*60)+(+e[2]||0);return t===0?0:e[0]==="+"?-t:t}var d=function(e){return function(t){this[e]=+t}},ye=[He,function(n){var e=this.zone||(this.zone={});e.offset=Fe(n)}],q=function(e){var t=k[e];return t&&(t.indexOf?t:t.s.concat(t.f))},Me=function(e,t){var i,r=k,a=r.meridiem;if(!a)i=e===(t?"pm":"PM");else for(var s=1;s<=24;s+=1)if(e.indexOf(a(s,0,t))>-1){i=s>12;break}return i},Oe={A:[x,function(n){this.afternoon=Me(n,!1)}],a:[x,function(n){this.afternoon=Me(n,!0)}],Q:[Se,function(n){this.month=(n-1)*3+1}],S:[Se,function(n){this.milliseconds=+n*100}],SS:[P,function(n){this.milliseconds=+n*10}],SSS:[Ye,function(n){this.milliseconds=+n}],s:[y,d("seconds")],ss:[y,d("seconds")],m:[y,d("minutes")],mm:[y,d("minutes")],H:[y,d("hours")],h:[y,d("hours")],HH:[y,d("hours")],hh:[y,d("hours")],D:[y,d("day")],DD:[P,d("day")],Do:[x,function(n){var e=k,t=e.ordinal,i=n.match(/\d+/);if(this.day=i[0],!!t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===n&&(this.day=r)}],w:[y,d("week")],ww:[P,d("week")],M:[y,d("month")],MM:[P,d("month")],MMM:[x,function(n){var e=q("months"),t=q("monthsShort"),i=(t||e.map(function(r){return r.slice(0,3)})).indexOf(n)+1;if(i<1)throw new Error;this.month=i%12||i}],MMMM:[x,function(n){var e=q("months"),t=e.indexOf(n)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[xe,d("year")],YY:[P,function(n){this.year=be(n)}],YYYY:[Pe,d("year")],Z:ye,ZZ:ye};function Ce(n){var e=n.afternoon;if(e!==void 0){var t=n.hours;e?t<12&&(n.hours+=12):t===12&&(n.hours=0),delete n.afternoon}}function Ee(n){n=V(n,k&&k.formats);for(var e=n.match($e),t=e.length,i=0;i<t;i+=1){var r=e[i],a=Oe[r],s=a&&a[0],c=a&&a[1];c?e[i]={regex:s,parser:c}:e[i]=r.replace(/^\[|\]$/g,"")}return function(h){for(var o={},l=0,u=0;l<t;l+=1){var m=e[l];if(typeof m=="string")u+=m.length;else{var f=m.regex,M=m.parser,p=h.slice(u),v=f.exec(p),D=v[0];M.call(o,D),h=h.replace(D,"")}}return Ce(o),o}}var Ve=function(e,t,i,r){try{if(["x","X"].indexOf(t)>-1)return new Date((t==="X"?1e3:1)*e);var a=Ee(t),s=a(e),c=s.year,h=s.month,o=s.day,l=s.hours,u=s.minutes,m=s.seconds,f=s.milliseconds,M=s.zone,p=s.week,v=new Date,D=o||(!c&&!h?v.getDate():1),L=c||v.getFullYear(),I=0;c&&!h||(I=h>0?h-1:v.getMonth());var T=l||0,$=u||0,A=m||0,z=f||0;if(M)return new Date(Date.UTC(L,I,D,T,$,A,z+M.offset*60*1e3));if(i)return new Date(Date.UTC(L,I,D,T,$,A,z));var H;return H=new Date(L,I,D,T,$,A,z),p&&(H=r(H).week(p).toDate()),H}catch{return new Date("")}},De=function(n,e,t){t.p.customParseFormat=!0,n&&n.parseTwoDigitYear&&(be=n.parseTwoDigitYear);var i=e.prototype,r=i.parse;i.parse=function(a){var s=a.date,c=a.utc,h=a.args;this.$u=c;var o=h[1];if(typeof o=="string"){var l=h[2]===!0,u=h[3]===!0,m=l||u,f=h[2];u&&(f=h[2]),k=this.$locale(),!l&&f&&(k=t.Ls[f]),this.$d=Ve(s,o,c,t),this.init(),f&&f!==!0&&(this.$L=this.locale(f).$L),m&&s!=this.format(o)&&(this.$d=new Date("")),k={}}else if(o instanceof Array)for(var M=o.length,p=1;p<=M;p+=1){h[1]=o[p-1];var v=t.apply(this,h);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}p===M&&(this.$d=new Date(""))}else r.call(this,a)}};var ke=function(n,e,t){var i=e.prototype,r=function(l){return l&&(l.indexOf?l:l.s)},a=function(l,u,m,f,M){var p=l.name?l:l.$locale(),v=r(p[u]),D=r(p[m]),L=v||D.map(function(T){return T.slice(0,f)});if(!M)return L;var I=p.weekStart;return L.map(function(T,$){return L[($+(I||0))%7]})},s=function(){return t.Ls[t.locale()]},c=function(l,u){return l.formats[u]||U(l.formats[u.toUpperCase()])},h=function(){var l=this;return{months:function(m){return m?m.format("MMMM"):a(l,"months")},monthsShort:function(m){return m?m.format("MMM"):a(l,"monthsShort","months",3)},firstDayOfWeek:function(){return l.$locale().weekStart||0},weekdays:function(m){return m?m.format("dddd"):a(l,"weekdays")},weekdaysMin:function(m){return m?m.format("dd"):a(l,"weekdaysMin","weekdays",2)},weekdaysShort:function(m){return m?m.format("ddd"):a(l,"weekdaysShort","weekdays",3)},longDateFormat:function(m){return c(l.$locale(),m)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return h.bind(this)()},t.localeData=function(){var o=s();return{firstDayOfWeek:function(){return o.weekStart||0},weekdays:function(){return t.weekdays()},weekdaysShort:function(){return t.weekdaysShort()},weekdaysMin:function(){return t.weekdaysMin()},months:function(){return t.months()},monthsShort:function(){return t.monthsShort()},longDateFormat:function(u){return c(o,u)},meridiem:o.meridiem,ordinal:o.ordinal}},t.months=function(){return a(s(),"months")},t.monthsShort=function(){return a(s(),"monthsShort","months",3)},t.weekdays=function(o){return a(s(),"weekdays",null,null,o)},t.weekdaysShort=function(o){return a(s(),"weekdaysShort","weekdays",3,o)},t.weekdaysMin=function(o){return a(s(),"weekdaysMin","weekdays",2,o)}};var Le=function(n,e,t){var i=e.prototype,r=i.format;t.en.formats=Z,i.format=function(a){a===void 0&&(a=ge);var s=this.$locale(),c=s.formats,h=c===void 0?{}:c,o=V(a,h);return r.call(this,o)}};var Ie=function(n,e){var t=e.prototype.parse;e.prototype.parse=function(a){if(typeof a.date=="string"){var s=this.$locale();a.date=s&&s.preparse?s.preparse(a.date):a.date}return t.bind(this)(a)};var i=e.prototype.format;e.prototype.format=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var h=i.call.apply(i,[this].concat(s)),o=this.$locale();return o&&o.postformat?o.postformat(h):h};var r=e.prototype.fromToBase;r&&(e.prototype.fromToBase=function(a,s,c,h){var o=this.$locale()||c.$locale();return r.call(this,a,s,c,h,o&&o.postformat)})};var Te=function(n,e,t){t.updateLocale=function(i,r){var a=t.Ls,s=a[i];if(s){var c=r?Object.keys(r):[];return c.forEach(function(h){s[h]=r[h]}),s}}};var Ae=R`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;-webkit-user-select:none;user-select:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([scale=s]){--calcite-toggle-spacing: .5rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 1rem)}:host([scale=m]){--calcite-toggle-spacing: .75rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 1.5rem)}:host([scale=l]){--calcite-toggle-spacing: 1rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 2rem)}.input-wrapper{position:relative}.toggle-icon{position:absolute;display:flex;cursor:pointer;align-items:center;inset-inline-end:0;inset-block:0;padding-inline:var(--calcite-toggle-spacing);--calcite-icon-color: var(--calcite-color-text-3)}.input-wrapper:hover .toggle-icon,calcite-input-text:focus+.toggle-icon{--calcite-icon-color: var(--calcite-color-text-1)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}:host([hidden]){display:none}[hidden]{display:none}`,ze={toggleIcon:"toggle-icon"},we={validationMessage:"inputTimePickerValidationMessage"},Be=new Map([["ar",()=>import("./FTYLAJYI.js")],["bg",()=>import("./IDT7NKKG.js")],["bs",()=>import("./LBV3HIJM.js")],["ca",()=>import("./23RAANQA.js")],["cs",()=>import("./DOKBHDNJ.js")],["da",()=>import("./3LTARQFR.js")],["de",()=>import("./BH6KEVWI.js")],["de-at",()=>import("./SZU3AK7J.js")],["de-ch",()=>import("./XBWWKLOH.js")],["el",()=>import("./EDTNLADS.js")],["en",()=>import("./7FYDZP7Z.js")],["en-au",()=>import("./6EQV7QM5.js")],["en-ca",()=>import("./YWOO3EBR.js")],["en-gb",()=>import("./HXQMI376.js")],["es",()=>import("./YJLNEGRK.js")],["es-mx",()=>import("./NEV2P6MZ.js")],["et",()=>import("./DRZEZHYV.js")],["fi",()=>import("./7IJ2TT7R.js")],["fr",()=>import("./PO3WKGYY.js")],["fr-ch",()=>import("./CHLQAL52.js")],["he",()=>import("./P2GI256U.js")],["hi",()=>import("./3X6XD5A4.js")],["hr",()=>import("./RRWNGQTG.js")],["hu",()=>import("./G3HZH6LD.js")],["id",()=>import("./SMDAWIGS.js")],["it",()=>import("./WEHYGNQT.js")],["it-ch",()=>import("./UAME4WIY.js")],["ja",()=>import("./PMDQPICV.js")],["ko",()=>import("./XV3TTZTR.js")],["lt",()=>import("./DOZSMRZR.js")],["lv",()=>import("./VCTFWIVC.js")],["mk",()=>import("./DVAETZAS.js")],["nl",()=>import("./O4WEUAP3.js")],["nb",()=>import("./3ID6O3J6.js")],["pl",()=>import("./4DML3RRY.js")],["pt",()=>import("./AUQKXOLJ.js")],["pt-br",()=>import("./SKEI3S7U.js")],["ro",()=>import("./P4HTPAYY.js")],["ru",()=>import("./ECCBDD7L.js")],["sk",()=>import("./6PFF4ILK.js")],["sl",()=>import("./M5HM6B74.js")],["sr",()=>import("./WVP5I6O6.js")],["sv",()=>import("./N6VH2U4L.js")],["th",()=>import("./KGGWDKOQ.js")],["tr",()=>import("./LNACSMGZ.js")],["uk",()=>import("./JEWW23PS.js")],["vi",()=>import("./XJFOBOQW.js")],["zh-cn",()=>import("./B2PP5NRS.js")],["zh-hk",()=>import("./KDHL3ACR.js")],["zh-tw",()=>import("./5SHDLCXA.js")]]);S.extend(De);S.extend(ke);S.extend(Le);S.extend(Ie);S.extend(Te);var Q=class extends G{constructor(){super(),this.userChangedValue=!1,this._value=null,this.disabled=!1,this.focusTrapDisabled=!1,this.messages=ne(),this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.step=60,this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.calciteInputTimePickerBeforeClose=w({cancelable:!1}),this.calciteInputTimePickerBeforeOpen=w({cancelable:!1}),this.calciteInputTimePickerChange=w(),this.calciteInputTimePickerClose=w({cancelable:!1}),this.calciteInputTimePickerOpen=w({cancelable:!1}),this.listen("blur",this.hostBlurHandler),this.listen("keydown",this.keyDownHandler)}static{this.properties={calciteInputEl:16,disabled:7,focusTrapDisabled:7,form:3,max:3,messageOverrides:0,min:3,name:1,numberingSystem:1,open:7,overlayPositioning:1,placement:3,readOnly:7,required:7,scale:3,status:3,step:9,validationIcon:[3,{converter:N}],validationMessage:1,validity:0,value:1}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=Ae}get value(){return this._value}set value(e){let t=this._value;e!==t&&(this._value=e,this.valueWatcher(e))}async reposition(e=!1){this.popoverEl?.reposition(e)}async setFocus(){await ie(this),X(this.el)}connectedCallback(){super.connectedCallback(),E(this.value)?this.setValueDirectly(this.value):this.value=void 0,me(this),le(this)}async load(){ee(this),await this.loadDateTimeLocaleData()}willUpdate(e){e.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),e.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&(this.disabled||(this.open=!1)),e.has("readOnly")&&(this.hasUpdated||this.readOnly!==!1)&&(this.readOnly||(this.open=!1)),e.has("numberingSystem")&&this.numberingSystemWatcher(this.numberingSystem),e.has("step")&&(this.hasUpdated||this.step!==60)&&this.stepWatcher(this.step,e.get("step")),e.has("messages")&&this.effectiveLocaleWatcher(this.messages._lang)}updated(){ae(this)}loaded(){te(this),E(this.value)&&this.setInputValue(b({value:this.value,locale:this.messages._lang,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds(),fractionalSecondDigits:g(this.step)}))}disconnectedCallback(){super.disconnectedCallback(),ue(this),ce(this)}openHandler(){this.disabled||this.readOnly||this.popoverEl&&(this.popoverEl.open=this.open)}numberingSystemWatcher(e){this.setInputValue(b({value:this.value,locale:this.messages._lang,numberingSystem:e,includeSeconds:this.shouldIncludeSeconds(),fractionalSecondDigits:g(this.step)}))}stepWatcher(e,t){(t>=60&&e>0&&e<60||e>=60&&t>0&&t<60)&&this.setValueDirectly(this.value)}valueWatcher(e){this.userChangedValue||this.setValueDirectly(e),this.userChangedValue=!1}async effectiveLocaleWatcher(e){await this.loadDateTimeLocaleData(),this.setInputValue(b({value:this.value,locale:e,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds(),fractionalSecondDigits:g(this.step)}))}hostBlurHandler(){let e=this.calciteInputEl.value,t=this.delocalizeTimeString(e);if(!t){this.setValue("");return}t!==this.value&&this.setValue(t);let i=b({value:this.value,locale:this.messages._lang,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds(),fractionalSecondDigits:g(this.step)});i!==e&&this.setInputValue(i),this.deactivate()}calciteInternalInputFocusHandler(e){this.readOnly||e.stopPropagation()}calciteInternalInputInputHandler(e){let{messages:{_lang:t},numberingSystem:i}=this;if(i&&i!=="latn"){let r=e.target;O.numberFormatOptions={locale:t,numberingSystem:i,useGrouping:!1};let a=O.delocalize(r.value).split("").map(s=>re.includes(s)?O.numberFormatter.format(Number(s)):s).join("");this.setInputValue(a)}}timePickerChangeHandler(e){e.stopPropagation();let t=e.target.value,i=this.shouldIncludeSeconds();this.setValue(W(t,i)),this.setInputValue(b({value:t,locale:this.messages._lang,numberingSystem:this.numberingSystem,includeSeconds:i,fractionalSecondDigits:g(this.step)}))}popoverBeforeOpenHandler(e){e.stopPropagation(),this.calciteInputTimePickerBeforeOpen.emit()}popoverOpenHandler(e){e.stopPropagation(),this.calciteInputTimePickerOpen.emit()}popoverBeforeCloseHandler(e){e.stopPropagation(),this.calciteInputTimePickerBeforeClose.emit()}popoverCloseHandler(e){e.stopPropagation(),this.calciteInputTimePickerClose.emit(),this.open=!1}syncHiddenFormInput(e){fe("time",this,e)}delocalizeTimeString(e){S.locale(this.messages._lang.toLowerCase());let t=this.delocalizeTimeStringToParts(e),i;if(this.shouldIncludeFractionalSeconds()){let r=g(this.step),a=this.delocalizeTimeStringToParts(e,"S");if(r===1)i=a.millisecond!==0?this.getTimeStringFromParts(a):this.getTimeStringFromParts(t);else{let s=this.delocalizeTimeStringToParts(e,"SS");if(r===2)s.millisecond!==0?i=this.getTimeStringFromParts(s):a.millisecond!==0?i=this.getTimeStringFromParts(a):i=this.getTimeStringFromParts(t);else if(r>=3){let c=this.delocalizeTimeStringToParts(e,"SSS");c.millisecond!==0?i=this.getTimeStringFromParts(c):s.millisecond!==0?i=this.getTimeStringFromParts(s):a.millisecond!==0?i=this.getTimeStringFromParts(a):i=this.getTimeStringFromParts(t)}}}else i=this.getTimeStringFromParts(t);return i}delocalizeTimeStringToParts(e,t){let i=this.localeConfig?.formats?.LTS,r=i.match(/ss\.*(S+)/g);if(t&&this.shouldIncludeFractionalSeconds()){let s=`ss.${t}`;this.localeConfig.formats.LTS=r?i.replace(r[0],s):i.replace("ss",s)}else r&&(this.localeConfig.formats.LTS=i.replace(r[0],"ss"));S.updateLocale(this.getSupportedDayjsLocale(_(this.messages._lang)),this.localeConfig);let a=S(e,["LTS","LT"]);return a.isValid()?{hour:a.get("hour"),minute:a.get("minute"),second:a.get("second"),millisecond:a.get("millisecond")}:{hour:null,minute:null,second:null,millisecond:null}}getTimeStringFromParts(e){let t="";if(!e)return t;if(e.hour!==null&&e.minute!==null&&(t=`${C(e.hour)}:${C(e.minute)}`,this.shouldIncludeSeconds()&&e.second!==null&&(t+=`:${C(e.second)}`,this.shouldIncludeFractionalSeconds()&&e.millisecond!==null))){let i=(e.millisecond*.001).toFixed(g(this.step));t+=`.${i.toString().replace("0.","")}`}return t}keyDownHandler(e){let{defaultPrevented:t,key:i}=e;if(!t)if(i==="Enter"){if(oe(this)&&(e.preventDefault(),this.calciteInputEl.setFocus()),e.composedPath().includes(this.calciteTimePickerEl))return;let r=this.delocalizeTimeString(this.calciteInputEl.value);if(E(r)){this.setValue(r);let a=b({value:this.value,locale:this.messages._lang,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds(),fractionalSecondDigits:g(this.step)});r&&this.calciteInputEl.value!==a&&this.setInputValue(a)}}else i==="ArrowDown"?(this.open=!0,e.preventDefault()):this.open&&this.focusTrapDisabled&&i==="Escape"&&(this.open=!1,e.preventDefault())}getSupportedDayjsLocale(e){let t=e.toLowerCase();return t==="no"?"nb":t==="pt-pt"?"pt":t}async loadDateTimeLocaleData(){let e=_(this.messages._lang).toLowerCase();e=this.getSupportedDayjsLocale(e);let{default:t}=await Be.get(e)();this.localeConfig=t,S.locale(this.localeConfig,null,!0),S.updateLocale(e,this.getExtendedLocaleConfig(e))}getExtendedLocaleConfig(e){if(e==="ar")return{meridiem:t=>t>12?"\u0645":"\u0635",formats:{LT:"HH:mm A",LTS:"HH:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm A",LLLL:"dddd D MMMM YYYY HH:mm A"}};if(e==="en-au")return{meridiem:t=>t>12?"pm":"am"};if(e==="en-ca")return{meridiem:t=>t>12?"p.m.":"a.m."};if(e==="el")return{meridiem:t=>t>12?"\u03BC.\u03BC.":"\u03C0.\u03BC."};if(e==="hi")return{formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, h:mm A",LLLL:"dddd, D MMMM YYYY, h:mm A"},meridiem:t=>t>12?"pm":"am"};if(e==="ko")return{meridiem:t=>t>12?"\uC624\uD6C4":"\uC624\uC804"};if(e==="zh-tw")return{formats:{LT:"AHH:mm",LTS:"AHH:mm:ss"}};if(e==="zh-hk")return{formats:{LT:"AHH:mm",LTS:"AHH:mm:ss"},meridiem:t=>t>12?"\u4E0B\u5348":"\u4E0A\u5348"}}onLabelClick(){this.setFocus()}shouldIncludeSeconds(){return this.step<60}shouldIncludeFractionalSeconds(){return g(this.step)>0}setCalcitePopoverEl(e){this.popoverEl=e,this.openHandler()}setInputEl(e){e&&(this.calciteInputEl=e)}setCalciteTimePickerEl(e){e&&(this.calciteTimePickerEl=e)}setInputValue(e){this.calciteInputEl&&(this.calciteInputEl.value=e)}setValue(e){let t=this.value,i=ve(e)||"";i!==t&&(this.userChangedValue=!0,this.value=i||"",this.calciteInputTimePickerChange.emit().defaultPrevented&&(this.userChangedValue=!1,this.value=t,this.setInputValue(b({value:t,locale:this.messages._lang,numberingSystem:this.numberingSystem,includeSeconds:this.shouldIncludeSeconds(),fractionalSecondDigits:g(this.step)}))))}setValueDirectly(e){let t=this.shouldIncludeSeconds();this.value=W(e,t),this.setInputValue(this.value?b({value:this.value,includeSeconds:t,locale:this.messages._lang,numberingSystem:this.numberingSystem,fractionalSecondDigits:g(this.step)}):"")}onInputWrapperClick(){this.open=!this.open}deactivate(){this.open=!1}render(){let{disabled:e,messages:t,readOnly:i}=this;return se({disabled:this.disabled,children:B`<div class="input-wrapper" @click=${this.onInputWrapperClick}><calcite-input-text aria-errormessage=${we.validationMessage} aria-autocomplete=none aria-haspopup=dialog .ariaInvalid=${this.status==="invalid"} .disabled=${e} icon=clock .label=${de(this)} lang=${this.messages._lang??Y} @calciteInputTextInput=${this.calciteInternalInputInputHandler} @calciteInternalInputTextFocus=${this.calciteInternalInputFocusHandler} .readOnly=${i} role=combobox .scale=${this.scale} .status=${this.status} ${F(this.setInputEl)}>${!this.readOnly&&this.renderToggleIcon(this.open)||""}</calcite-input-text></div><calcite-popover auto-close .focusTrapDisabled=${this.focusTrapDisabled} .label=${t.chooseTime} lang=${this.messages._lang??Y} @calcitePopoverBeforeClose=${this.popoverBeforeCloseHandler} @calcitePopoverBeforeOpen=${this.popoverBeforeOpenHandler} @calcitePopoverClose=${this.popoverCloseHandler} @calcitePopoverOpen=${this.popoverOpenHandler} .overlayPositioning=${this.overlayPositioning} .placement=${this.placement} .referenceElement=${this.calciteInputEl} trigger-disabled ${F(this.setCalcitePopoverEl)}><calcite-time-picker lang=${this.messages._lang??Y} .messageOverrides=${this.messageOverrides} .numberingSystem=${this.numberingSystem} @calciteInternalTimePickerChange=${this.timePickerChangeHandler} .scale=${this.scale} .step=${this.step} tabindex=${(this.open?void 0:-1)??Y} .value=${this.value} ${F(this.setCalciteTimePickerEl)}></calcite-time-picker></calcite-popover>${he({component:this})}${this.validationMessage&&this.status==="invalid"?pe({icon:this.validationIcon,id:we.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}renderToggleIcon(e){return B`<span class=${K(ze.toggleIcon)} slot=action><calcite-icon .icon=${e?"chevron-up":"chevron-down"} .scale=${j(this.scale)}></calcite-icon></span>`}};J("calcite-input-time-picker",Q);export{Q as InputTimePicker};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.73
|
|
5
5
|
*/
|
|
6
|
-
import{a as d,b as g}from"./
|
|
6
|
+
import{a as d,b as g}from"./SW7YJLYK.js";import{u as n}from"./AZUPP63M.js";import{a as v,b as y,d as S}from"./KRIGOKK3.js";import"./LVMC3BF4.js";import{I as h,d as l,e as s,u as c,v as m,w as o}from"./76XSLVGD.js";var a={container:"container",containerContent:"container-content",hasProgress:"progress-bar",hide:"hide",primary:"primary",secondary:"secondary",tertiary:"tertiary"},e={logo:"logo",user:"user",progress:"progress",navigationAction:"navigation-action",contentStart:"content-start",contentEnd:"content-end",contentCenter:"content-center",navSecondary:"navigation-secondary",navTertiary:"navigation-tertiary"},p={hamburger:"hamburger"},C=l`:host([hidden]){display:none}[hidden]{display:none}.container{display:flex;inline-size:100%;flex-direction:column;margin-block:0;margin-inline:auto;background-color:var(--calcite-navigation-background-color, var(--calcite-navigation-background, var(--calcite-color-foreground-1)))}.container.primary,.container.secondary,.container.tertiary{border-block-end:1px solid;border-block-end-color:var(--calcite-navigation-border-color, var(--calcite-color-border-3))}.user,.logo{display:flex}.hide{display:none}.primary{block-size:4rem}.secondary,.tertiary{block-size:3rem}.container-content{margin-inline:auto;display:flex;block-size:100%;inline-size:100%;margin-block:0;inline-size:var(--calcite-navigation-width, 100%);max-inline-size:100%}.container-content.progress-bar{margin-block-start:.125rem}slot[name]{display:flex;flex-direction:row}slot[name=navigation-secondary]::slotted(calcite-navigation),slot[name=navigation-tertiary]::slotted(calcite-navigation){inline-size:100%}slot[name=content-start]::slotted(*),slot[name=content-center]::slotted(*),slot[name=content-end]::slotted(*){display:flex;flex-direction:row;align-items:center}slot[name=progress],slot[name=progress] calcite-progress{inset-block-start:0;inset-inline:0}slot[name=content-end]{margin-inline-start:auto}slot[name=content-start]{margin-inline-end:auto}slot[name=content-end],slot[name=logo]~slot[name=user],slot[name=user]:only-child{margin-inline-start:auto}slot[name=content-center]{margin-inline-start:auto;margin-inline-end:auto}slot[name=content-start]~slot[name=content-center]{margin-inline-start:0px}slot[name=content-start]~slot[name=content-end],slot[name=content-center]~slot[name=content-end],slot[name=content-center]~slot[name=user],slot[name=content-end]~slot[name=user]{margin:0}`,i=class extends m{constructor(){super(...arguments),this.navigationActionEl=d(),this.navigationAction=!1,this.calciteNavigationActionSelect=c({cancelable:!1})}static{this.properties={logoSlotHasElements:16,navigationActionSlotHasElements:16,primaryContentCenterSlotHasElements:16,primaryContentEndSlotHasElements:16,primaryContentStartSlotHasElements:16,progressSlotHasElement:16,secondarySlotHasElements:16,tertiarySlotHasElements:16,userSlotHasElements:16,label:1,navigationAction:7}}static{this.styles=C}async setFocus(){return await S(this),this.navigationActionEl.value?.setFocus()}load(){v(this)}loaded(){y(this)}actionClickHandler(){this.calciteNavigationActionSelect.emit()}handleUserSlotChange(t){this.isPrimaryLevel()&&(this.userSlotHasElements=n(t))}handleLogoSlotChange(t){this.isPrimaryLevel()&&(this.logoSlotHasElements=n(t))}handleContentStartSlotChange(t){this.isPrimaryLevel()&&(this.primaryContentStartSlotHasElements=n(t))}handleContentEndSlotChange(t){this.isPrimaryLevel()&&(this.primaryContentEndSlotHasElements=n(t))}handleContentCenterSlotChange(t){this.isPrimaryLevel()&&(this.primaryContentCenterSlotHasElements=n(t))}handleSecondarySlotChange(t){this.secondarySlotHasElements=n(t)}handleTertiarySlotChange(t){this.tertiarySlotHasElements=n(t)}handleMenuActionSlotChange(t){this.isPrimaryLevel()&&(this.navigationActionSlotHasElements=n(t),this.navigationActionSlotHasElements&&(this.navigationAction=!1))}handleProgressSlotChange(t){this.isPrimaryLevel()&&(this.progressSlotHasElement=n(t))}isPrimaryLevel(){return this.el.slot!==e.navSecondary&&this.el.slot!==e.navTertiary}renderMenuAction(){return s`<slot name=${e.navigationAction} @slotchange=${this.handleMenuActionSlotChange}>${this.navigationAction&&s`<calcite-action .icon=${p.hamburger} @click=${this.actionClickHandler} .text=${this.label} ${g(this.navigationActionEl)}></calcite-action>`||""}</slot>`}render(){let t=this.logoSlotHasElements||this.userSlotHasElements||this.navigationActionSlotHasElements||this.primaryContentCenterSlotHasElements||this.primaryContentEndSlotHasElements||this.primaryContentStartSlotHasElements||this.navigationAction,r=this.el.slot;return s`<div class=${o({[a.container]:!0,[a.secondary]:r===e.navSecondary,[a.tertiary]:r===e.navTertiary,[a.primary]:t})}><div class=${o({[a.hide]:!this.progressSlotHasElement,[e.progress]:!0})}><slot name=${e.progress} @slotchange=${this.handleProgressSlotChange}></slot></div><div class=${o({[a.containerContent]:!0,[a.hasProgress]:this.progressSlotHasElement})}>${this.renderMenuAction()}<div class=${o({[a.hide]:!this.logoSlotHasElements,[e.logo]:!0})}><slot name=${e.logo} @slotchange=${this.handleLogoSlotChange}></slot></div><slot name=${e.contentStart} @slotchange=${this.handleContentStartSlotChange}></slot><slot name=${e.contentCenter} @slotchange=${this.handleContentCenterSlotChange}></slot><slot name=${e.contentEnd} @slotchange=${this.handleContentEndSlotChange}></slot><div class=${o({[a.hide]:!this.userSlotHasElements,[e.user]:!0})}><slot name=${e.user} @slotchange=${this.handleUserSlotChange}></slot></div></div></div><slot name=${e.navSecondary} @slotchange=${this.handleSecondarySlotChange}></slot><slot name=${e.navTertiary} @slotchange=${this.handleTertiarySlotChange}></slot>`}};h("calcite-navigation",i);export{i as Navigation};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.73
|
|
5
5
|
*/
|
|
6
|
-
import{e as f,f as v}from"./
|
|
6
|
+
import{e as f,f as v}from"./GRA53KOI.js";import{a as h}from"./RZZN32R6.js";import"./S4RN7ODG.js";import{a as y}from"./J3DIGGB6.js";import"./SW7YJLYK.js";import"./42ZSJLST.js";import{n as u,v as x}from"./AZUPP63M.js";import{a as g,b as m,d as b}from"./KRIGOKK3.js";import"./LVMC3BF4.js";import{I as p,d as r,e,u as c,v as d,w as i}from"./76XSLVGD.js";var w={actionGroupEnd:"action-group--end",container:"container"},C={expandTooltip:"expand-tooltip"},$=r`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{display:block}@keyframes in{0%{opacity:0}to{opacity:1}}:host{animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:var(--calcite-action-pad-corner-radius, .125rem);background:transparent}:host([expanded][layout=vertical]) .container{max-inline-size:var(--calcite-action-pad-expanded-max-width, auto)}:host([layout=vertical]) ::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:1px}.container{display:inline-flex;flex-direction:column;overflow-y:auto;--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);gap:var(--calcite-action-pad-items-space, 0);border-radius:calc(var(--calcite-action-pad-corner-radius, .125rem) * 2);background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}.action-group--bottom{flex-grow:1;justify-content:flex-end;padding-block-end:0px}:host([layout=horizontal]) .container{flex-direction:row}:host([layout=horizontal]) .container .action-group--bottom{padding:0}:host([layout=horizontal]) .container ::slotted(calcite-action-group:not(:last-of-type)){border-inline-end-width:1px}:host([hidden]){display:none}[hidden]{display:none}`,s=class extends d{constructor(){super(),this.mutationObserver=h("mutation",()=>this.updateGroups()),this.toggleExpand=()=>{this.expanded=!this.expanded,this.calciteActionPadToggle.emit()},this.expandDisabled=!1,this.expanded=!1,this.layout="vertical",this.messages=y(),this.overlayPositioning="absolute",this.scale="m",this.calciteActionPadToggle=c({cancelable:!1}),this.listen("calciteActionMenuOpen",this.actionMenuOpenHandler)}static{this.properties={expandTooltip:16,actionsEndGroupLabel:1,expandDisabled:7,expanded:7,layout:3,messageOverrides:0,overlayPositioning:3,position:3,scale:3}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=$}async setFocus(){await b(this),u(this.el)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async load(){g(this)}willUpdate(t){t.has("expanded")&&this.hasUpdated&&f({el:this.el,expanded:this.expanded}),t.has("layout")&&(this.hasUpdated||this.layout!=="vertical")&&this.updateGroups()}loaded(){m(this)}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}actionMenuOpenHandler(t){if(t.target.menuOpen){let a=t.composedPath();this.actionGroups?.forEach(o=>{a.includes(o)||(o.menuOpen=!1)})}}updateGroups(){let t=Array.from(this.el.querySelectorAll("calcite-action-group"));this.actionGroups=t,this.setGroupLayout(t)}setGroupLayout(t){t.forEach(a=>a.layout=this.layout)}handleDefaultSlotChange(){this.updateGroups()}handleTooltipSlotChange(t){let a=x(t).filter(o=>o?.matches("calcite-tooltip"));this.expandTooltip=a[0]}renderBottomActionGroup(){let{expanded:t,expandDisabled:a,messages:o,el:G,position:k,toggleExpand:E,scale:n,layout:T,actionsEndGroupLabel:L,overlayPositioning:O}=this,l=a?null:v({collapseLabel:o.collapseLabel,collapseText:o.collapse,el:G,expandLabel:o.expandLabel,expandText:o.expand,expanded:t,position:k,scale:n,toggle:E,tooltip:this.expandTooltip});return l?e`<calcite-action-group class=${i(w.actionGroupEnd)} .label=${L} .layout=${T} .overlayPositioning=${O} .scale=${n}><slot name=${C.expandTooltip} @slotchange=${this.handleTooltipSlotChange}></slot>${l}</calcite-action-group>`:null}render(){return e`<div class=${i(w.container)}><slot @slotchange=${this.handleDefaultSlotChange}></slot>${this.renderBottomActionGroup()}</div>`}};p("calcite-action-pad",s);export{s as ActionPad};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.73
|
|
5
5
|
*/
|
|
6
|
-
import{a as I,b as w}from"./XUEOZQQX.js";import{a as x}from"./WDXNT4EJ.js";import{a as s}from"./3AF3C5VJ.js";import"./MP7JJWOJ.js";import{a as r}from"./2GVT7O3A.js";import{a as C}from"./IOUUMHDP.js";import{a as k,b as l}from"./ZEW2OCWK.js";import{c as T,e as d,r as z}from"./5ABTT7OQ.js";import{a as y}from"./VS3LXKQA.js";import{F as g,I as f,d as p,e as c,i as m,u as i,v,w as n,z as a}from"./M45N6WHF.js";var e={closeButton:"close-button",container:"container",containerBottom:"container--bottom",content:"content",contentHasText:"content--has-text",iconEnd:"icon-end",iconPresent:"icon-present",iconStart:"icon-start",titleIcon:"calcite-tab-title--icon",scale:h=>`scale-${h}`,selectedIndicator:"selected-indicator"},A={close:"x"},H=p`: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;outline:2px solid transparent;outline-offset:2px;margin-inline-start:0px}:host([layout=inline]){flex:0 1 auto}:host([layout=center]){flex:1 1 auto}.content{position:relative;margin-block-end:.125rem;box-sizing:border-box;display:flex;block-size:100%;align-items:center;justify-content:center}.scale-s .content{padding-block:.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}.scale-s .close-button{inline-size:1.25rem}.scale-m .content{padding-block:.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}.scale-m .close-button{inline-size:1.75rem}.scale-l .content{padding-block:.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}.scale-l .close-button{inline-size:2rem}:host([closable]) .content{border-block-end-color:transparent}:host([layout=inline]) .content,:host([layout=center]) .content{padding-inline:.25rem}:host([layout=center]) .scale-s,:host([layout=center]) .scale-m,:host([layout=center]) .scale-l{margin-block:0px;justify-content:center;text-align:center}:host([layout=center]) .scale-s .content,:host([layout=center]) .scale-m .content,:host([layout=center]) .scale-l .content{flex:1 1 auto;flex-grow:1}.container{position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;align-content:center;justify-content:space-between;padding-inline:0px;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-color-text-3);outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}.selected-indicator{position:absolute;display:block;block-size:.125rem;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;inset-block-end:0;inset-inline-start:0;inset-inline-end:0;inline-size:100%}.container--bottom .selected-indicator{inset-block-end:unset;inset-block-start:0}:host([bordered]) .selected-indicator{inset-block-start:0;inset-block-end:unset;inset-inline-start:-1px;inset-inline-end:0;inline-size:calc(100% + var(--calcite-spacing-base))}:host([bordered]) .container:not(.container--bottom){border-block-end:1px solid transparent}:host([bordered]:not([selected]):hover) .container:not(.container--bottom){border-block-end:1px solid var(--calcite-color-border-1)}:host([bordered]:not([selected]):hover:not(:focus)) .selected-indicator{background-color:var(--calcite-color-foreground-2)}:host([bordered]:not([selected]):hover:not(:focus)) .container:not(.container--bottom) .selected-indicator{box-shadow:inset 0 1px var(--calcite-color-border-1)}:host([bordered]:not([selected]):hover:not(:focus)) .container.container--bottom .selected-indicator{box-shadow:inset 0 -1px var(--calcite-color-border-1)}:host([bordered][selected]) .container:after{position:absolute;display:block;block-size:.125rem;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;inset-block-end:-1px;inset-inline-start:0;inset-inline-end:0;inline-size:100%;background:var(--calcite-color-foreground-1);content:""}:host([bordered][selected]) .container.container--bottom:after{inset-block-start:-1px}:host([bordered][selected]:hover) .container:after{background:var(--calcite-color-foreground-2)}:host([bordered][selected]:focus) .container:after{background:transparent}:host([bordered]) .container--bottom .selected-indicator{inset-block-start:unset;inset-block-end:0}:host([selected]) .selected-indicator,:host([selected]:hover) .selected-indicator{background-color:var(--calcite-color-brand)}:host(:hover) .selected-indicator{background-color:var(--calcite-color-border-3)}:host(:focus) .selected-indicator,:host(:active) .selected-indicator{background-color:var(--calcite-color-brand)}@media (forced-colors: active){.selected-indicator{background-color:highlight}}:host([closed]){display:none}:host([selected]) .container{border-color:transparent;color:var(--calcite-color-text-1)}:host(:focus) .container{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))))}:host(:focus) .container:focus-within{outline-color:transparent}:host(:active) a,:host(:focus) a,:host(:hover) a{border-color:var(--calcite-color-border-2);color:var(--calcite-color-text-1);text-decoration-line:none}:host([disabled]) .container{pointer-events:none;opacity:.5}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.calcite-tab-title--icon{position:relative;margin:0;display:inline-flex;align-self:center}.calcite-tab-title--icon svg{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}.content--has-text{padding:.25rem}.content--has-text .calcite-tab-title--icon.icon-start{margin-inline-end:var(--calcite-spacing-sm);color:var(--calcite-tab-icon-color-start, var(--calcite-icon-color))}.content--has-text .calcite-tab-title--icon.icon-end{margin-inline-start:var(--calcite-spacing-sm);color:var(--calcite-tab-icon-color-end, var(--calcite-icon-color))}.close-button{display:flex;block-size:100%;cursor:pointer;appearance:none;align-content:center;align-items:center;justify-content:center;align-self:center;border-style:none;background-color:transparent;color:var(--calcite-color-text-3);outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;margin-inline-start:var(--calcite-spacing-sm);margin-inline-end:var(--calcite-spacing-px);block-size:calc(100% - var(--calcite-spacing-xxs))}.close-button:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)))}.close-button:focus,.close-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-3)}.close-button:active{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-3)}.close-button calcite-icon{color:inherit}:host([icon-start][icon-end]) .calcite-tab-title--icon:first-child{margin-inline-end:var(--calcite-spacing-sm)}:host([bordered]) .container:not(.container--bottom) .close-button{block-size:calc(100% - var(--calcite-spacing-px));margin-block-start:-1px}:host([bordered]) .container .close-button calcite-icon{margin-block-start:var(--calcite-spacing-px)}:host([bordered]) .container .close-button:focus,:host([bordered]) .container .close-button:hover,:host([bordered]) .container .close-button:active{box-shadow:0 2px 0 0 var(--calcite-color-foreground-3)}:host([bordered]) .container.container--bottom .close-button{box-shadow:0 -2px 0 0 transparent}:host([bordered]) .container.container--bottom .close-button calcite-icon{margin-block-end:var(--calcite-spacing-px)}:host([bordered]) .container.container--bottom .close-button:focus,:host([bordered]) .container.container--bottom .close-button:hover,:host([bordered]) .container.container--bottom .close-button:active{box-shadow:0 -2px 0 0 var(--calcite-color-foreground-3)}:host([bordered][selected]){box-shadow:inset 0 -1px var(--calcite-color-foreground-1)}:host([bordered]:not([selected])) .container .close-button{box-shadow:0 2px 0 0 transparent}:host([bordered]:hover) .container{background-color:var(--calcite-color-foreground-2)}:host([bordered]) .container{border-inline:var(--calcite-spacing-px) solid transparent}:host([selected][bordered]) .container{border-inline-color:var(--calcite-color-border-1)}:host([layout=inline][bordered]) .scale-m .content,:host([layout=center][bordered]) .scale-m .content{padding-inline:.75rem}:host([layout=inline][bordered]) .scale-s .content,:host([layout=center][bordered]) .scale-s .content{padding-inline:.5rem}:host([layout=inline][bordered]) .scale-l .content,:host([layout=center][bordered]) .scale-l .content{padding-inline:1rem}:host([layout=inline][closable]) .scale-s .content,:host([layout=inline][closable]) .scale-m .content,:host([layout=inline][closable]) .scale-l .content{padding-inline-end:0}@media (forced-colors: active){:host{outline-width:0;outline-offset:0}:host(:focus) .container{outline-color:highlight}:host([bordered]) .container{border-block-end-style:solid}:host([bordered]) .container--bottom{border-block-start-style:solid}:host([bordered][selected]) .container{border-block-end-style:none}:host([bordered][selected]) .container--bottom{border-block-start-style:none}.close-button{z-index:var(--calcite-z-index)}}:host([hidden]){display:none}[hidden]{display:none}`,b=class extends v{constructor(){super(),this.closeButtonEl=k(),this.guid=`calcite-tab-title-${y()}`,this.mutationObserver=r("mutation",()=>this.updateHasText()),this.resizeObserver=r("resize",()=>{this.calciteInternalTabIconChanged.emit()}),this.hasText=!1,this.bordered=!1,this.closable=!1,this.closed=!1,this.disabled=!1,this.messages=C(),this.position="top",this.scale="m",this.selected=!1,this.calciteInternalTabIconChanged=i({cancelable:!1}),this.calciteInternalTabTitleRegister=i({cancelable:!1}),this.calciteInternalTabsActivate=i({cancelable:!1}),this.calciteInternalTabsClose=i({cancelable:!1}),this.calciteInternalTabsFocusFirst=i({cancelable:!1}),this.calciteInternalTabsFocusLast=i({cancelable:!1}),this.calciteInternalTabsFocusNext=i({cancelable:!1}),this.calciteInternalTabsFocusPrevious=i({cancelable:!1}),this.calciteTabsActivate=i({cancelable:!1}),this.calciteTabsClose=i({cancelable:!1}),this.listenOn(document.body,"calciteInternalTabChange",this.internalTabChangeHandler),this.listen("click",this.onClick),this.listen("keydown",this.keyDownHandler)}static{this.properties={controls:16,hasText:16,bordered:7,closable:7,closed:7,disabled:7,iconEnd:3,iconFlipRtl:3,iconStart:3,layout:3,messageOverrides:0,position:1,scale:1,selected:7,tab:3}}static{this.styles=H}async activateTab(t=!0){if(this.disabled||this.closed)return;let o={tab:this.tab};this.calciteInternalTabsActivate.emit(o),t&&requestAnimationFrame(()=>this.calciteTabsActivate.emit())}async getTabIdentifier(){return this.tab?this.tab:this.getTabIndex()}async getTabIndex(){return Array.prototype.indexOf.call(T(this.el.parentElement.children).filter(t=>t.matches("calcite-tab-title")),this.el)}_updateAriaInfo(t=[],o=[]){this.controls=t[o.indexOf(this.el.id)]||null}connectedCallback(){super.connectedCallback(),this.setupTextContentObserver(),this.parentTabsEl=this.el.closest("calcite-tabs")}async load(){g()&&this.updateHasText(),this.tab&&this.selected&&this.activateTab(!1)}willUpdate(t){t.has("selected")&&(this.hasUpdated||this.selected!==!1)&&this.selectedHandler(),this.parentTabsEl&&(this.layout=this.parentTabsEl.layout,this.bordered=this.parentTabsEl.bordered)}updated(){I(this)}async loaded(){this.calciteInternalTabTitleRegister.emit(await this.getTabIdentifier())}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),document.body?.dispatchEvent(new CustomEvent("calciteTabTitleUnregister",{detail:this.el})),this.resizeObserver?.disconnect()}selectedHandler(){this.selected&&this.activateTab(!1)}internalTabChangeHandler(t){t.composedPath().find(o=>o.tagName==="CALCITE-TABS")===this.parentTabsEl&&(this.tab?this.selected=this.tab===t.detail.tab:this.getTabIndex().then(o=>{this.selected=o===t.detail.tab}),t.stopPropagation())}onClick(){this.activateTab()}keyDownHandler(t){switch(t.key){case" ":case"Enter":t.composedPath().includes(this.closeButtonEl.value)||(this.activateTab(),t.preventDefault());break;case"ArrowRight":t.preventDefault(),d(this.el)==="ltr"?this.calciteInternalTabsFocusNext.emit():this.calciteInternalTabsFocusPrevious.emit();break;case"ArrowLeft":t.preventDefault(),d(this.el)==="ltr"?this.calciteInternalTabsFocusPrevious.emit():this.calciteInternalTabsFocusNext.emit();break;case"Home":t.preventDefault(),this.calciteInternalTabsFocusFirst.emit();break;case"End":t.preventDefault(),this.calciteInternalTabsFocusLast.emit();break}}closeClickHandler(){this.closeTabTitleAndNotify()}updateHasText(){this.hasText=this.el.textContent.trim().length>0}setupTextContentObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}closeTabTitleAndNotify(){this.closed=!0,this.calciteInternalTabsClose.emit({tab:this.tab}),this.calciteTabsClose.emit()}render(){let{el:t,closed:o}=this,$=t.id||this.guid,E=c`<calcite-icon class=${n({[e.titleIcon]:!0,[e.iconStart]:!0})} .flipRtl=${this.iconFlipRtl==="start"||this.iconFlipRtl==="both"} .icon=${this.iconStart} .scale=${s(this.scale)}></calcite-icon>`,F=c`<calcite-icon class=${n({[e.titleIcon]:!0,[e.iconEnd]:!0})} .flipRtl=${this.iconFlipRtl==="end"||this.iconFlipRtl==="both"} .icon=${this.iconEnd} .scale=${s(this.scale)}></calcite-icon>`;return a(this.el,"aria-controls",this.controls),this.el.ariaSelected=z(this.selected),a(this.el,"id",$),this.el.role="tab",a(this.el,"tabIndex",this.selected&&!this.disabled?0:-1),w({disabled:this.disabled,children:c`<div class=${n({[e.container]:!0,[e.containerBottom]:this.position==="bottom",[e.iconPresent]:!!this.iconStart||!!this.iconEnd,[e.scale(this.scale)]:!0})} .hidden=${o} ${l(u=>u?this.resizeObserver?.observe(u):null)}><div class=${n({[e.content]:!0,[e.contentHasText]:this.hasText})}>${this.iconStart?E:null}<slot></slot>${this.iconEnd?F:null}</div>${this.renderCloseButton()}<div class=${n(e.selectedIndicator)}></div></div>`})}renderCloseButton(){let{closable:t,messages:o}=this;return t?x(e.closeButton,c`<button .ariaLabel=${o.close} class=${n(e.closeButton)} @click=${this.closeClickHandler} title=${o.close??m} type=button ${l(this.closeButtonEl)}><calcite-icon .icon=${A.close} .scale=${s(this.scale)}></calcite-icon></button>`):null}};f("calcite-tab-title",b);export{b as TabTitle};
|
|
6
|
+
import{a as I,b as w}from"./WI3STLKH.js";import{a as x}from"./CFQKJ24X.js";import{a as s}from"./IBKCEJD5.js";import"./6Y3XNBCH.js";import{a as r}from"./RZZN32R6.js";import{a as C}from"./J3DIGGB6.js";import{a as k,b as l}from"./SW7YJLYK.js";import{c as T,e as d,r as z}from"./AZUPP63M.js";import{a as y}from"./LVMC3BF4.js";import{F as g,I as f,d as p,e as c,i as m,u as i,v,w as n,z as a}from"./76XSLVGD.js";var e={closeButton:"close-button",container:"container",containerBottom:"container--bottom",content:"content",contentHasText:"content--has-text",iconEnd:"icon-end",iconPresent:"icon-present",iconStart:"icon-start",titleIcon:"calcite-tab-title--icon",scale:h=>`scale-${h}`,selectedIndicator:"selected-indicator"},A={close:"x"},H=p`: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;outline:2px solid transparent;outline-offset:2px;margin-inline-start:0px}:host([layout=inline]){flex:0 1 auto}:host([layout=center]){flex:1 1 auto}.content{position:relative;margin-block-end:.125rem;box-sizing:border-box;display:flex;block-size:100%;align-items:center;justify-content:center}.scale-s .content{padding-block:.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}.scale-s .close-button{inline-size:1.25rem}.scale-m .content{padding-block:.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}.scale-m .close-button{inline-size:1.75rem}.scale-l .content{padding-block:.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}.scale-l .close-button{inline-size:2rem}:host([closable]) .content{border-block-end-color:transparent}:host([layout=inline]) .content,:host([layout=center]) .content{padding-inline:.25rem}:host([layout=center]) .scale-s,:host([layout=center]) .scale-m,:host([layout=center]) .scale-l{margin-block:0px;justify-content:center;text-align:center}:host([layout=center]) .scale-s .content,:host([layout=center]) .scale-m .content,:host([layout=center]) .scale-l .content{flex:1 1 auto;flex-grow:1}.container{position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;align-content:center;justify-content:space-between;padding-inline:0px;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-color-text-3);outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}.selected-indicator{position:absolute;display:block;block-size:.125rem;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;inset-block-end:0;inset-inline-start:0;inset-inline-end:0;inline-size:100%}.container--bottom .selected-indicator{inset-block-end:unset;inset-block-start:0}:host([bordered]) .selected-indicator{inset-block-start:0;inset-block-end:unset;inset-inline-start:-1px;inset-inline-end:0;inline-size:calc(100% + var(--calcite-spacing-base))}:host([bordered]) .container:not(.container--bottom){border-block-end:1px solid transparent}:host([bordered]:not([selected]):hover) .container:not(.container--bottom){border-block-end:1px solid var(--calcite-color-border-1)}:host([bordered]:not([selected]):hover:not(:focus)) .selected-indicator{background-color:var(--calcite-color-foreground-2)}:host([bordered]:not([selected]):hover:not(:focus)) .container:not(.container--bottom) .selected-indicator{box-shadow:inset 0 1px var(--calcite-color-border-1)}:host([bordered]:not([selected]):hover:not(:focus)) .container.container--bottom .selected-indicator{box-shadow:inset 0 -1px var(--calcite-color-border-1)}:host([bordered][selected]) .container:after{position:absolute;display:block;block-size:.125rem;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;inset-block-end:-1px;inset-inline-start:0;inset-inline-end:0;inline-size:100%;background:var(--calcite-color-foreground-1);content:""}:host([bordered][selected]) .container.container--bottom:after{inset-block-start:-1px}:host([bordered][selected]:hover) .container:after{background:var(--calcite-color-foreground-2)}:host([bordered][selected]:focus) .container:after{background:transparent}:host([bordered]) .container--bottom .selected-indicator{inset-block-start:unset;inset-block-end:0}:host([selected]) .selected-indicator,:host([selected]:hover) .selected-indicator{background-color:var(--calcite-color-brand)}:host(:hover) .selected-indicator{background-color:var(--calcite-color-border-3)}:host(:focus) .selected-indicator,:host(:active) .selected-indicator{background-color:var(--calcite-color-brand)}@media (forced-colors: active){.selected-indicator{background-color:highlight}}:host([closed]){display:none}:host([selected]) .container{border-color:transparent;color:var(--calcite-color-text-1)}:host(:focus) .container{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))))}:host(:focus) .container:focus-within{outline-color:transparent}:host(:active) a,:host(:focus) a,:host(:hover) a{border-color:var(--calcite-color-border-2);color:var(--calcite-color-text-1);text-decoration-line:none}:host([disabled]) .container{pointer-events:none;opacity:.5}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.calcite-tab-title--icon{position:relative;margin:0;display:inline-flex;align-self:center}.calcite-tab-title--icon svg{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}.content--has-text{padding:.25rem}.content--has-text .calcite-tab-title--icon.icon-start{margin-inline-end:var(--calcite-spacing-sm);color:var(--calcite-tab-icon-color-start, var(--calcite-icon-color))}.content--has-text .calcite-tab-title--icon.icon-end{margin-inline-start:var(--calcite-spacing-sm);color:var(--calcite-tab-icon-color-end, var(--calcite-icon-color))}.close-button{display:flex;block-size:100%;cursor:pointer;appearance:none;align-content:center;align-items:center;justify-content:center;align-self:center;border-style:none;background-color:transparent;color:var(--calcite-color-text-3);outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;margin-inline-start:var(--calcite-spacing-sm);margin-inline-end:var(--calcite-spacing-px);block-size:calc(100% - var(--calcite-spacing-xxs))}.close-button:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)))}.close-button:focus,.close-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-3)}.close-button:active{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-3)}.close-button calcite-icon{color:inherit}:host([icon-start][icon-end]) .calcite-tab-title--icon:first-child{margin-inline-end:var(--calcite-spacing-sm)}:host([bordered]) .container:not(.container--bottom) .close-button{block-size:calc(100% - var(--calcite-spacing-px));margin-block-start:-1px}:host([bordered]) .container .close-button calcite-icon{margin-block-start:var(--calcite-spacing-px)}:host([bordered]) .container .close-button:focus,:host([bordered]) .container .close-button:hover,:host([bordered]) .container .close-button:active{box-shadow:0 2px 0 0 var(--calcite-color-foreground-3)}:host([bordered]) .container.container--bottom .close-button{box-shadow:0 -2px 0 0 transparent}:host([bordered]) .container.container--bottom .close-button calcite-icon{margin-block-end:var(--calcite-spacing-px)}:host([bordered]) .container.container--bottom .close-button:focus,:host([bordered]) .container.container--bottom .close-button:hover,:host([bordered]) .container.container--bottom .close-button:active{box-shadow:0 -2px 0 0 var(--calcite-color-foreground-3)}:host([bordered][selected]){box-shadow:inset 0 -1px var(--calcite-color-foreground-1)}:host([bordered]:not([selected])) .container .close-button{box-shadow:0 2px 0 0 transparent}:host([bordered]:hover) .container{background-color:var(--calcite-color-foreground-2)}:host([bordered]) .container{border-inline:var(--calcite-spacing-px) solid transparent}:host([selected][bordered]) .container{border-inline-color:var(--calcite-color-border-1)}:host([layout=inline][bordered]) .scale-m .content,:host([layout=center][bordered]) .scale-m .content{padding-inline:.75rem}:host([layout=inline][bordered]) .scale-s .content,:host([layout=center][bordered]) .scale-s .content{padding-inline:.5rem}:host([layout=inline][bordered]) .scale-l .content,:host([layout=center][bordered]) .scale-l .content{padding-inline:1rem}:host([layout=inline][closable]) .scale-s .content,:host([layout=inline][closable]) .scale-m .content,:host([layout=inline][closable]) .scale-l .content{padding-inline-end:0}@media (forced-colors: active){:host{outline-width:0;outline-offset:0}:host(:focus) .container{outline-color:highlight}:host([bordered]) .container{border-block-end-style:solid}:host([bordered]) .container--bottom{border-block-start-style:solid}:host([bordered][selected]) .container{border-block-end-style:none}:host([bordered][selected]) .container--bottom{border-block-start-style:none}.close-button{z-index:var(--calcite-z-index)}}:host([hidden]){display:none}[hidden]{display:none}`,b=class extends v{constructor(){super(),this.closeButtonEl=k(),this.guid=`calcite-tab-title-${y()}`,this.mutationObserver=r("mutation",()=>this.updateHasText()),this.resizeObserver=r("resize",()=>{this.calciteInternalTabIconChanged.emit()}),this.hasText=!1,this.bordered=!1,this.closable=!1,this.closed=!1,this.disabled=!1,this.messages=C(),this.position="top",this.scale="m",this.selected=!1,this.calciteInternalTabIconChanged=i({cancelable:!1}),this.calciteInternalTabTitleRegister=i({cancelable:!1}),this.calciteInternalTabsActivate=i({cancelable:!1}),this.calciteInternalTabsClose=i({cancelable:!1}),this.calciteInternalTabsFocusFirst=i({cancelable:!1}),this.calciteInternalTabsFocusLast=i({cancelable:!1}),this.calciteInternalTabsFocusNext=i({cancelable:!1}),this.calciteInternalTabsFocusPrevious=i({cancelable:!1}),this.calciteTabsActivate=i({cancelable:!1}),this.calciteTabsClose=i({cancelable:!1}),this.listenOn(document.body,"calciteInternalTabChange",this.internalTabChangeHandler),this.listen("click",this.onClick),this.listen("keydown",this.keyDownHandler)}static{this.properties={controls:16,hasText:16,bordered:7,closable:7,closed:7,disabled:7,iconEnd:3,iconFlipRtl:3,iconStart:3,layout:3,messageOverrides:0,position:1,scale:1,selected:7,tab:3}}static{this.styles=H}async activateTab(t=!0){if(this.disabled||this.closed)return;let o={tab:this.tab};this.calciteInternalTabsActivate.emit(o),t&&requestAnimationFrame(()=>this.calciteTabsActivate.emit())}async getTabIdentifier(){return this.tab?this.tab:this.getTabIndex()}async getTabIndex(){return Array.prototype.indexOf.call(T(this.el.parentElement.children).filter(t=>t.matches("calcite-tab-title")),this.el)}_updateAriaInfo(t=[],o=[]){this.controls=t[o.indexOf(this.el.id)]||null}connectedCallback(){super.connectedCallback(),this.setupTextContentObserver(),this.parentTabsEl=this.el.closest("calcite-tabs")}async load(){g()&&this.updateHasText(),this.tab&&this.selected&&this.activateTab(!1)}willUpdate(t){t.has("selected")&&(this.hasUpdated||this.selected!==!1)&&this.selectedHandler(),this.parentTabsEl&&(this.layout=this.parentTabsEl.layout,this.bordered=this.parentTabsEl.bordered)}updated(){I(this)}async loaded(){this.calciteInternalTabTitleRegister.emit(await this.getTabIdentifier())}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),document.body?.dispatchEvent(new CustomEvent("calciteTabTitleUnregister",{detail:this.el})),this.resizeObserver?.disconnect()}selectedHandler(){this.selected&&this.activateTab(!1)}internalTabChangeHandler(t){t.composedPath().find(o=>o.tagName==="CALCITE-TABS")===this.parentTabsEl&&(this.tab?this.selected=this.tab===t.detail.tab:this.getTabIndex().then(o=>{this.selected=o===t.detail.tab}),t.stopPropagation())}onClick(){this.activateTab()}keyDownHandler(t){switch(t.key){case" ":case"Enter":t.composedPath().includes(this.closeButtonEl.value)||(this.activateTab(),t.preventDefault());break;case"ArrowRight":t.preventDefault(),d(this.el)==="ltr"?this.calciteInternalTabsFocusNext.emit():this.calciteInternalTabsFocusPrevious.emit();break;case"ArrowLeft":t.preventDefault(),d(this.el)==="ltr"?this.calciteInternalTabsFocusPrevious.emit():this.calciteInternalTabsFocusNext.emit();break;case"Home":t.preventDefault(),this.calciteInternalTabsFocusFirst.emit();break;case"End":t.preventDefault(),this.calciteInternalTabsFocusLast.emit();break}}closeClickHandler(){this.closeTabTitleAndNotify()}updateHasText(){this.hasText=this.el.textContent.trim().length>0}setupTextContentObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}closeTabTitleAndNotify(){this.closed=!0,this.calciteInternalTabsClose.emit({tab:this.tab}),this.calciteTabsClose.emit()}render(){let{el:t,closed:o}=this,$=t.id||this.guid,E=c`<calcite-icon class=${n({[e.titleIcon]:!0,[e.iconStart]:!0})} .flipRtl=${this.iconFlipRtl==="start"||this.iconFlipRtl==="both"} .icon=${this.iconStart} .scale=${s(this.scale)}></calcite-icon>`,F=c`<calcite-icon class=${n({[e.titleIcon]:!0,[e.iconEnd]:!0})} .flipRtl=${this.iconFlipRtl==="end"||this.iconFlipRtl==="both"} .icon=${this.iconEnd} .scale=${s(this.scale)}></calcite-icon>`;return a(this.el,"aria-controls",this.controls),this.el.ariaSelected=z(this.selected),a(this.el,"id",$),this.el.role="tab",a(this.el,"tabIndex",this.selected&&!this.disabled?0:-1),w({disabled:this.disabled,children:c`<div class=${n({[e.container]:!0,[e.containerBottom]:this.position==="bottom",[e.iconPresent]:!!this.iconStart||!!this.iconEnd,[e.scale(this.scale)]:!0})} .hidden=${o} ${l(u=>u?this.resizeObserver?.observe(u):null)}><div class=${n({[e.content]:!0,[e.contentHasText]:this.hasText})}>${this.iconStart?E:null}<slot></slot>${this.iconEnd?F:null}</div>${this.renderCloseButton()}<div class=${n(e.selectedIndicator)}></div></div>`})}renderCloseButton(){let{closable:t,messages:o}=this;return t?x(e.closeButton,c`<button .ariaLabel=${o.close} class=${n(e.closeButton)} @click=${this.closeClickHandler} title=${o.close??m} type=button ${l(this.closeButtonEl)}><calcite-icon .icon=${A.close} .scale=${s(this.scale)}></calcite-icon></button>`):null}};f("calcite-tab-title",b);export{b as TabTitle};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.73
|
|
5
5
|
*/
|
|
6
|
-
import{p as e}from"./
|
|
6
|
+
import{p as e}from"./AZUPP63M.js";import"./LVMC3BF4.js";import{A as c,I as r,d as n,e as i,v as o,z as a}from"./76XSLVGD.js";var l={valid:"check-circle",invalid:"exclamation-mark-triangle",idle:"information"},d=n`:host{box-sizing:border-box;display:flex;block-size:auto;inline-size:100%;align-items:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);opacity:1;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;--calcite-input-message-spacing-value: .25rem;margin-block-start:var(--calcite-input-message-spacing-value)}.calcite-input-message-icon{pointer-events:none;display:inline-flex;flex-shrink:0;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;margin-inline-end:.5rem}:host([status=invalid]) .calcite-input-message-icon{color:var(--calcite-color-status-danger)}:host([status=warning]) .calcite-input-message-icon{color:var(--calcite-color-status-warning)}:host([status=valid]) .calcite-input-message-icon{color:var(--calcite-color-status-success)}:host([status=idle]) .calcite-input-message-icon{color:var(--calcite-color-brand)}:host([scale=s]){font-size:var(--calcite-font-size--3);line-height:.75rem}:host([scale=m]){font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=l]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([hidden]){display:none}[hidden]{display:none}`,s=class extends o{constructor(){super(...arguments),this.iconFlipRtl=!1,this.scale="m",this.status="idle"}static{this.properties={icon:[3,{converter:c}],iconFlipRtl:7,scale:3,status:3}}static{this.styles=d}connectedCallback(){super.connectedCallback(),this.requestedIcon=e(l,this.icon,this.status)}willUpdate(t){(t.has("status")&&(this.hasUpdated||this.status!=="idle")||t.has("icon"))&&(this.requestedIcon=e(l,this.icon,this.status))}render(){let t=this.el.hidden;return a(this.el,"calcite-hydrated-hidden",t),i`${this.renderIcon(this.requestedIcon)}<slot></slot>`}renderIcon(t){if(t)return i`<calcite-icon class="calcite-input-message-icon" .flipRtl=${this.iconFlipRtl} .icon=${t} scale=s></calcite-icon>`}};r("calcite-input-message",s);export{s as InputMessage};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.73
|
|
5
5
|
*/
|
|
6
|
-
import{a as A}from"./ORXUDHL4.js";import{a as w,c as u,d as $,e as H,f as z,g as r,h as T}from"./33T6NTY3.js";import"./KG43E2HJ.js";import{a as m}from"./DXDJ5WQY.js";import{a as C,b as P}from"./XUEOZQQX.js";import"./7J2UPLRS.js";import{a as S}from"./RR5H5T4X.js";import{a as p}from"./2GVT7O3A.js";import{b as l}from"./ZEW2OCWK.js";import{l as h,n as I,z as n}from"./5ABTT7OQ.js";import{a as O,b as x,d as k}from"./BLFO7PS4.js";import{a as y}from"./VS3LXKQA.js";import{I as E,d as b,e as v,u as o,v as D,w as d}from"./M45N6WHF.js";var L={dropdownTrigger:"trigger"},U={wrapper:"calcite-dropdown-wrapper"},B=b`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block}.calcite-dropdown-wrapper{--calcite-floating-ui-z-index: var(--calcite-z-index-dropdown);display:none;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}.calcite-dropdown-wrapper .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset,left,opacity;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}.calcite-dropdown-wrapper[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.calcite-dropdown-wrapper[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.calcite-dropdown-wrapper[data-placement^=left] .calcite-floating-ui-anim{left:5px}.calcite-dropdown-wrapper[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.calcite-dropdown-wrapper[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}.calcite-dropdown-content{max-block-size:45vh;inline-size:auto;overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-color-foreground-1);inline-size:var(--calcite-dropdown-width)}.calcite-trigger-container{position:relative;display:flex;block-size:100%;flex:1 1 auto;word-wrap:break-word;word-break:break-word}.width-s{--calcite-dropdown-width: 12rem}.width-m{--calcite-dropdown-width: 14rem}.width-l{--calcite-dropdown-width: 16rem}@media (forced-colors: active){:host([open]) .calcite-dropdown-wrapper{border:1px solid canvasText}}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`,f=class extends D{constructor(){super(),this.focusLastDropdownItem=!1,this.groups=[],this.guid=`calcite-dropdown-${y()}`,this.items=[],this.mutationObserver=p("mutation",()=>this.updateItems()),this.onOpenEnd=()=>{this.focusOnFirstActiveOrDefaultItem(),this.el.removeEventListener("calciteDropdownOpen",this.onOpenEnd)},this.openTransitionProp="opacity",this.resizeObserver=p("resize",e=>this.resizeObserverCallback(e)),this.closeOnSelectDisabled=!1,this.disabled=!1,this.maxItems=0,this.open=!1,this.overlayPositioning="absolute",this.placement=w,this.scale="m",this.selectedItems=[],this.type="click",this.calciteDropdownBeforeClose=o({cancelable:!1}),this.calciteDropdownBeforeOpen=o({cancelable:!1}),this.calciteDropdownClose=o({cancelable:!1}),this.calciteDropdownOpen=o({cancelable:!1}),this.calciteDropdownSelect=o({cancelable:!1}),this.listenOn(window,"click",this.closeCalciteDropdownOnClick),this.listen("calciteInternalDropdownCloseRequest",this.closeCalciteDropdownOnEvent),this.listenOn(window,"calciteDropdownOpen",this.closeCalciteDropdownOnOpenEvent),this.listen("pointerenter",this.pointerEnterHandler),this.listen("pointerleave",this.pointerLeaveHandler),this.listen("calciteInternalDropdownItemKeyEvent",this.calciteInternalDropdownItemKeyEvent),this.listen("calciteInternalDropdownItemSelect",this.handleItemSelect)}static{this.properties={closeOnSelectDisabled:7,disabled:7,flipPlacements:0,maxItems:11,open:7,overlayPositioning:3,placement:3,scale:3,selectedItems:0,type:3,widthScale:3,width:3}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=B}async reposition(e=!1){let{floatingEl:t,referenceEl:i,placement:s,overlayPositioning:a,filteredFlipPlacements:c}=this;return H(this,{floatingEl:t,referenceEl:i,overlayPositioning:a,placement:s,flipPlacements:c,type:"menu"},e)}async setFocus(){await k(this),I(this.referenceEl)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setFilteredPlacements(),this.open&&(this.openHandler(),m(this)),this.updateItems(),r(this)}load(){O(this)}willUpdate(e){e.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),e.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&this.handleDisabledChange(this.disabled),e.has("flipPlacements")&&this.flipPlacementsHandler(),e.has("maxItems")&&(this.hasUpdated||this.maxItems!==0)&&this.setMaxScrollerHeight(),(e.has("overlayPositioning")&&(this.hasUpdated||this.overlayPositioning!=="absolute")||e.has("placement")&&(this.hasUpdated||this.placement!==w))&&this.reposition(!0),e.has("scale")&&(this.hasUpdated||this.scale!=="m")&&this.handlePropsChange()}updated(){C(this)}loaded(){this.updateSelectedItems(),x(this),r(this)}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.resizeObserver?.disconnect(),T(this)}openHandler(){m(this),!this.disabled&&this.reposition(!0)}handleDisabledChange(e){e||(this.open=!1)}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}handlePropsChange(){this.updateItems(),this.updateGroupScale()}closeCalciteDropdownOnClick(e){this.disabled||!this.open||e.composedPath().includes(this.el)||this.closeCalciteDropdown(!1)}closeCalciteDropdownOnEvent(e){this.closeCalciteDropdown(),e.stopPropagation()}closeCalciteDropdownOnOpenEvent(e){e.composedPath().includes(this.el)||(this.open=!1)}pointerEnterHandler(){this.disabled||this.type!=="hover"||this.toggleDropdown()}pointerLeaveHandler(){this.disabled||this.type!=="hover"||this.closeCalciteDropdown()}getTraversableItems(){return this.items.filter(e=>!e.disabled&&!e.hidden)}calciteInternalDropdownItemKeyEvent(e){let{keyboardEvent:t}=e.detail,i=t.target,s=this.getTraversableItems();switch(t.key){case"Tab":this.open=!1,this.updateTabIndexOfItems(i);break;case"ArrowDown":n(s,i,"next");break;case"ArrowUp":n(s,i,"previous");break;case"Home":n(s,i,"first");break;case"End":n(s,i,"last");break}e.stopPropagation()}handleItemSelect(e){this.updateSelectedItems(),e.stopPropagation(),this.calciteDropdownSelect.emit(),(!this.closeOnSelectDisabled||e.detail.requestedDropdownGroup.selectionMode==="none")&&this.closeCalciteDropdown(),e.stopPropagation()}setFilteredPlacements(){let{el:e,flipPlacements:t}=this;this.filteredFlipPlacements=t?$(t,e):null}updateTriggers(e){this.triggers=e.target.assignedElements({flatten:!0}),this.reposition(!0)}updateItems(){this.items=this.groups.map(e=>Array.from(e?.querySelectorAll("calcite-dropdown-item"))).reduce((e,t)=>[...e,...t],[]),this.updateSelectedItems(),this.reposition(!0),this.items.forEach(e=>e.scale=this.scale)}updateGroups(e){let t=e.target.assignedElements({flatten:!0}).filter(i=>i?.matches("calcite-dropdown-group"));this.groups=t,this.updateItems(),this.updateGroupScale()}updateGroupScale(){this.groups?.forEach(e=>e.scale=this.scale)}resizeObserverCallback(e){e.forEach(t=>{let{target:i}=t;i===this.referenceEl?this.setDropdownWidth():i===this.scrollerEl&&this.setMaxScrollerHeight()})}setDropdownWidth(){let{referenceEl:e,scrollerEl:t}=this,i=e?.clientWidth;!i||!t||(t.style.minWidth=`${i}px`)}setMaxScrollerHeight(){let{scrollerEl:e}=this;if(!e)return;this.reposition(!0);let t=this.getMaxScrollerHeight();e.style.maxBlockSize=t>0?`${t}px`:"",this.reposition(!0)}setScrollerAndTransitionEl(e){e&&this.resizeObserver?.observe(e),this.scrollerEl=e,this.transitionEl=e}onBeforeOpen(){this.calciteDropdownBeforeOpen.emit()}onOpen(){this.calciteDropdownOpen.emit()}onBeforeClose(){this.calciteDropdownBeforeClose.emit()}onClose(){this.calciteDropdownClose.emit(),z(this)}setReferenceEl(e){this.referenceEl=e,r(this),e&&this.resizeObserver?.observe(e)}setFloatingEl(e){this.floatingEl=e,r(this)}keyDownHandler(e){if(!e.composedPath().includes(this.referenceEl))return;let{defaultPrevented:t,key:i}=e;if(!t){if(i==="Escape"){this.closeCalciteDropdown(),e.preventDefault();return}if(this.open&&e.shiftKey&&i==="Tab"){this.closeCalciteDropdown(),e.preventDefault();return}S(i)?(this.toggleDropdown(),e.preventDefault()):(i==="ArrowDown"||i==="ArrowUp")&&(e.preventDefault(),this.focusLastDropdownItem=i==="ArrowUp",this.open=!0,this.el.addEventListener("calciteDropdownOpen",this.onOpenEnd))}}updateSelectedItems(){this.selectedItems=this.items.filter(e=>e.selected)}getMaxScrollerHeight(){let{maxItems:e,items:t}=this,i=0,s=0,a;return this.groups.forEach(c=>{e>0&&i<e&&Array.from(c.children).forEach((g,F)=>{F===0&&(isNaN(a)&&(a=g.offsetTop),s+=a),i<e&&(s+=g.offsetHeight,i+=1)})}),t.length>=e?s:0}closeCalciteDropdown(e=!0){this.open=!1,e&&h(this.triggers[0])}focusOnFirstActiveOrDefaultItem(){let e=this.getTraversableItems().find(t=>t.selected)||(this.focusLastDropdownItem?this.items[this.items.length-1]:this.items[0]);this.focusLastDropdownItem=!1,e&&h(e)}toggleDropdown(){this.open=!this.open,this.open&&this.el.addEventListener("calciteDropdownOpen",this.onOpenEnd)}updateTabIndexOfItems(e){this.items.forEach(t=>{t.tabIndex=e!==t?-1:0})}render(){let{open:e,guid:t}=this;return P({disabled:this.disabled,children:v`<div class="calcite-trigger-container" .id=${`${t}-menubutton`} @click=${this.toggleDropdown} @keydown=${this.keyDownHandler} ${l(this.setReferenceEl)}><slot aria-controls=${`${t}-menu`} .ariaExpanded=${e} aria-haspopup=menu name=${L.dropdownTrigger} @slotchange=${this.updateTriggers}></slot></div><div .ariaHidden=${!e} class=${d({[U.wrapper]:!0,[A("width",this.width,this.widthScale)]:!!(this.width||this.widthScale)})} ${l(this.setFloatingEl)}><div aria-labelledby=${`${t}-menubutton`} class=${d({"calcite-dropdown-content":!0,[u.animation]:!0,[u.animationActive]:e})} .id=${`${t}-menu`} role=menu ${l(this.setScrollerAndTransitionEl)}><slot @slotchange=${this.updateGroups}></slot></div></div>`})}};E("calcite-dropdown",f);export{f as Dropdown};
|
|
6
|
+
import{a as A}from"./LN3FBP2Y.js";import{a as w,c as u,d as $,e as H,f as z,g as r,h as T}from"./JLUSUY4K.js";import"./SHE4OBH2.js";import{a as m}from"./SZ5QI2MT.js";import{a as C,b as P}from"./WI3STLKH.js";import"./G5JAYQH3.js";import{a as S}from"./TK3JBVPD.js";import{a as p}from"./RZZN32R6.js";import{b as l}from"./SW7YJLYK.js";import{l as h,n as I,z as n}from"./AZUPP63M.js";import{a as O,b as x,d as k}from"./KRIGOKK3.js";import{a as y}from"./LVMC3BF4.js";import{I as E,d as b,e as v,u as o,v as D,w as d}from"./76XSLVGD.js";var L={dropdownTrigger:"trigger"},U={wrapper:"calcite-dropdown-wrapper"},B=b`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block}.calcite-dropdown-wrapper{--calcite-floating-ui-z-index: var(--calcite-z-index-dropdown);display:none;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}.calcite-dropdown-wrapper .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset,left,opacity;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}.calcite-dropdown-wrapper[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.calcite-dropdown-wrapper[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.calcite-dropdown-wrapper[data-placement^=left] .calcite-floating-ui-anim{left:5px}.calcite-dropdown-wrapper[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.calcite-dropdown-wrapper[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}.calcite-dropdown-content{max-block-size:45vh;inline-size:auto;overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-color-foreground-1);inline-size:var(--calcite-dropdown-width)}.calcite-trigger-container{position:relative;display:flex;block-size:100%;flex:1 1 auto;word-wrap:break-word;word-break:break-word}.width-s{--calcite-dropdown-width: 12rem}.width-m{--calcite-dropdown-width: 14rem}.width-l{--calcite-dropdown-width: 16rem}@media (forced-colors: active){:host([open]) .calcite-dropdown-wrapper{border:1px solid canvasText}}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`,f=class extends D{constructor(){super(),this.focusLastDropdownItem=!1,this.groups=[],this.guid=`calcite-dropdown-${y()}`,this.items=[],this.mutationObserver=p("mutation",()=>this.updateItems()),this.onOpenEnd=()=>{this.focusOnFirstActiveOrDefaultItem(),this.el.removeEventListener("calciteDropdownOpen",this.onOpenEnd)},this.openTransitionProp="opacity",this.resizeObserver=p("resize",e=>this.resizeObserverCallback(e)),this.closeOnSelectDisabled=!1,this.disabled=!1,this.maxItems=0,this.open=!1,this.overlayPositioning="absolute",this.placement=w,this.scale="m",this.selectedItems=[],this.type="click",this.calciteDropdownBeforeClose=o({cancelable:!1}),this.calciteDropdownBeforeOpen=o({cancelable:!1}),this.calciteDropdownClose=o({cancelable:!1}),this.calciteDropdownOpen=o({cancelable:!1}),this.calciteDropdownSelect=o({cancelable:!1}),this.listenOn(window,"click",this.closeCalciteDropdownOnClick),this.listen("calciteInternalDropdownCloseRequest",this.closeCalciteDropdownOnEvent),this.listenOn(window,"calciteDropdownOpen",this.closeCalciteDropdownOnOpenEvent),this.listen("pointerenter",this.pointerEnterHandler),this.listen("pointerleave",this.pointerLeaveHandler),this.listen("calciteInternalDropdownItemKeyEvent",this.calciteInternalDropdownItemKeyEvent),this.listen("calciteInternalDropdownItemSelect",this.handleItemSelect)}static{this.properties={closeOnSelectDisabled:7,disabled:7,flipPlacements:0,maxItems:11,open:7,overlayPositioning:3,placement:3,scale:3,selectedItems:0,type:3,widthScale:3,width:3}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=B}async reposition(e=!1){let{floatingEl:t,referenceEl:i,placement:s,overlayPositioning:a,filteredFlipPlacements:c}=this;return H(this,{floatingEl:t,referenceEl:i,overlayPositioning:a,placement:s,flipPlacements:c,type:"menu"},e)}async setFocus(){await k(this),I(this.referenceEl)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setFilteredPlacements(),this.open&&(this.openHandler(),m(this)),this.updateItems(),r(this)}load(){O(this)}willUpdate(e){e.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),e.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&this.handleDisabledChange(this.disabled),e.has("flipPlacements")&&this.flipPlacementsHandler(),e.has("maxItems")&&(this.hasUpdated||this.maxItems!==0)&&this.setMaxScrollerHeight(),(e.has("overlayPositioning")&&(this.hasUpdated||this.overlayPositioning!=="absolute")||e.has("placement")&&(this.hasUpdated||this.placement!==w))&&this.reposition(!0),e.has("scale")&&(this.hasUpdated||this.scale!=="m")&&this.handlePropsChange()}updated(){C(this)}loaded(){this.updateSelectedItems(),x(this),r(this)}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.resizeObserver?.disconnect(),T(this)}openHandler(){m(this),!this.disabled&&this.reposition(!0)}handleDisabledChange(e){e||(this.open=!1)}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}handlePropsChange(){this.updateItems(),this.updateGroupScale()}closeCalciteDropdownOnClick(e){this.disabled||!this.open||e.composedPath().includes(this.el)||this.closeCalciteDropdown(!1)}closeCalciteDropdownOnEvent(e){this.closeCalciteDropdown(),e.stopPropagation()}closeCalciteDropdownOnOpenEvent(e){e.composedPath().includes(this.el)||(this.open=!1)}pointerEnterHandler(){this.disabled||this.type!=="hover"||this.toggleDropdown()}pointerLeaveHandler(){this.disabled||this.type!=="hover"||this.closeCalciteDropdown()}getTraversableItems(){return this.items.filter(e=>!e.disabled&&!e.hidden)}calciteInternalDropdownItemKeyEvent(e){let{keyboardEvent:t}=e.detail,i=t.target,s=this.getTraversableItems();switch(t.key){case"Tab":this.open=!1,this.updateTabIndexOfItems(i);break;case"ArrowDown":n(s,i,"next");break;case"ArrowUp":n(s,i,"previous");break;case"Home":n(s,i,"first");break;case"End":n(s,i,"last");break}e.stopPropagation()}handleItemSelect(e){this.updateSelectedItems(),e.stopPropagation(),this.calciteDropdownSelect.emit(),(!this.closeOnSelectDisabled||e.detail.requestedDropdownGroup.selectionMode==="none")&&this.closeCalciteDropdown(),e.stopPropagation()}setFilteredPlacements(){let{el:e,flipPlacements:t}=this;this.filteredFlipPlacements=t?$(t,e):null}updateTriggers(e){this.triggers=e.target.assignedElements({flatten:!0}),this.reposition(!0)}updateItems(){this.items=this.groups.map(e=>Array.from(e?.querySelectorAll("calcite-dropdown-item"))).reduce((e,t)=>[...e,...t],[]),this.updateSelectedItems(),this.reposition(!0),this.items.forEach(e=>e.scale=this.scale)}updateGroups(e){let t=e.target.assignedElements({flatten:!0}).filter(i=>i?.matches("calcite-dropdown-group"));this.groups=t,this.updateItems(),this.updateGroupScale()}updateGroupScale(){this.groups?.forEach(e=>e.scale=this.scale)}resizeObserverCallback(e){e.forEach(t=>{let{target:i}=t;i===this.referenceEl?this.setDropdownWidth():i===this.scrollerEl&&this.setMaxScrollerHeight()})}setDropdownWidth(){let{referenceEl:e,scrollerEl:t}=this,i=e?.clientWidth;!i||!t||(t.style.minWidth=`${i}px`)}setMaxScrollerHeight(){let{scrollerEl:e}=this;if(!e)return;this.reposition(!0);let t=this.getMaxScrollerHeight();e.style.maxBlockSize=t>0?`${t}px`:"",this.reposition(!0)}setScrollerAndTransitionEl(e){e&&this.resizeObserver?.observe(e),this.scrollerEl=e,this.transitionEl=e}onBeforeOpen(){this.calciteDropdownBeforeOpen.emit()}onOpen(){this.calciteDropdownOpen.emit()}onBeforeClose(){this.calciteDropdownBeforeClose.emit()}onClose(){this.calciteDropdownClose.emit(),z(this)}setReferenceEl(e){this.referenceEl=e,r(this),e&&this.resizeObserver?.observe(e)}setFloatingEl(e){this.floatingEl=e,r(this)}keyDownHandler(e){if(!e.composedPath().includes(this.referenceEl))return;let{defaultPrevented:t,key:i}=e;if(!t){if(i==="Escape"){this.closeCalciteDropdown(),e.preventDefault();return}if(this.open&&e.shiftKey&&i==="Tab"){this.closeCalciteDropdown(),e.preventDefault();return}S(i)?(this.toggleDropdown(),e.preventDefault()):(i==="ArrowDown"||i==="ArrowUp")&&(e.preventDefault(),this.focusLastDropdownItem=i==="ArrowUp",this.open=!0,this.el.addEventListener("calciteDropdownOpen",this.onOpenEnd))}}updateSelectedItems(){this.selectedItems=this.items.filter(e=>e.selected)}getMaxScrollerHeight(){let{maxItems:e,items:t}=this,i=0,s=0,a;return this.groups.forEach(c=>{e>0&&i<e&&Array.from(c.children).forEach((g,F)=>{F===0&&(isNaN(a)&&(a=g.offsetTop),s+=a),i<e&&(s+=g.offsetHeight,i+=1)})}),t.length>=e?s:0}closeCalciteDropdown(e=!0){this.open=!1,e&&h(this.triggers[0])}focusOnFirstActiveOrDefaultItem(){let e=this.getTraversableItems().find(t=>t.selected)||(this.focusLastDropdownItem?this.items[this.items.length-1]:this.items[0]);this.focusLastDropdownItem=!1,e&&h(e)}toggleDropdown(){this.open=!this.open,this.open&&this.el.addEventListener("calciteDropdownOpen",this.onOpenEnd)}updateTabIndexOfItems(e){this.items.forEach(t=>{t.tabIndex=e!==t?-1:0})}render(){let{open:e,guid:t}=this;return P({disabled:this.disabled,children:v`<div class="calcite-trigger-container" .id=${`${t}-menubutton`} @click=${this.toggleDropdown} @keydown=${this.keyDownHandler} ${l(this.setReferenceEl)}><slot aria-controls=${`${t}-menu`} .ariaExpanded=${e} aria-haspopup=menu name=${L.dropdownTrigger} @slotchange=${this.updateTriggers}></slot></div><div .ariaHidden=${!e} class=${d({[U.wrapper]:!0,[A("width",this.width,this.widthScale)]:!!(this.width||this.widthScale)})} ${l(this.setFloatingEl)}><div aria-labelledby=${`${t}-menubutton`} class=${d({"calcite-dropdown-content":!0,[u.animation]:!0,[u.animationActive]:e})} .id=${`${t}-menu`} role=menu ${l(this.setScrollerAndTransitionEl)}><slot @slotchange=${this.updateGroups}></slot></div></div>`})}};E("calcite-dropdown",f);export{f as Dropdown};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.73
|
|
5
5
|
*/
|
|
6
|
-
import{b as e}from"./
|
|
6
|
+
import{b as e}from"./TGBHKTK3.js";import"./SG7SH7WB.js";var _={name:"nb",weekdays:"s\xF8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xF8rdag".split("_"),weekdaysShort:"s\xF8._ma._ti._on._to._fr._l\xF8.".split("_"),weekdaysMin:"s\xF8_ma_ti_on_to_fr_l\xF8".split("_"),months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),ordinal:function(t){return t+"."},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en m\xE5ned",MM:"%d m\xE5neder",y:"ett \xE5r",yy:"%d \xE5r"}};e.locale(_,null,!0);var m=_;export{m as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.73
|
|
5
5
|
*/
|
|
6
|
-
import{b as e}from"./
|
|
6
|
+
import{b as e}from"./TGBHKTK3.js";import"./SG7SH7WB.js";var _={name:"da",weekdays:"s\xF8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xF8rdag".split("_"),weekdaysShort:"s\xF8n._man._tirs._ons._tors._fre._l\xF8r.".split("_"),weekdaysMin:"s\xF8._ma._ti._on._to._fr._l\xF8.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,yearStart:4,ordinal:function(r){return r+"."},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.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xE5 sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xE5ned",MM:"%d m\xE5neder",y:"et \xE5r",yy:"%d \xE5r"}};e.locale(_,null,!0);var d=_;export{d as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.73
|
|
5
5
|
*/
|
|
6
|
-
import{b as _}from"./
|
|
6
|
+
import{b as _}from"./TGBHKTK3.js";import"./SG7SH7WB.js";var d={name:"hi",weekdays:"\u0930\u0935\u093F\u0935\u093E\u0930_\u0938\u094B\u092E\u0935\u093E\u0930_\u092E\u0902\u0917\u0932\u0935\u093E\u0930_\u092C\u0941\u0927\u0935\u093E\u0930_\u0917\u0941\u0930\u0942\u0935\u093E\u0930_\u0936\u0941\u0915\u094D\u0930\u0935\u093E\u0930_\u0936\u0928\u093F\u0935\u093E\u0930".split("_"),months:"\u091C\u0928\u0935\u0930\u0940_\u092B\u093C\u0930\u0935\u0930\u0940_\u092E\u093E\u0930\u094D\u091A_\u0905\u092A\u094D\u0930\u0948\u0932_\u092E\u0908_\u091C\u0942\u0928_\u091C\u0941\u0932\u093E\u0908_\u0905\u0917\u0938\u094D\u0924_\u0938\u093F\u0924\u092E\u094D\u092C\u0930_\u0905\u0915\u094D\u091F\u0942\u092C\u0930_\u0928\u0935\u092E\u094D\u092C\u0930_\u0926\u093F\u0938\u092E\u094D\u092C\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093F_\u0938\u094B\u092E_\u092E\u0902\u0917\u0932_\u092C\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094D\u0930_\u0936\u0928\u093F".split("_"),monthsShort:"\u091C\u0928._\u092B\u093C\u0930._\u092E\u093E\u0930\u094D\u091A_\u0905\u092A\u094D\u0930\u0948._\u092E\u0908_\u091C\u0942\u0928_\u091C\u0941\u0932._\u0905\u0917._\u0938\u093F\u0924._\u0905\u0915\u094D\u091F\u0942._\u0928\u0935._\u0926\u093F\u0938.".split("_"),weekdaysMin:"\u0930_\u0938\u094B_\u092E\u0902_\u092C\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),ordinal:function(t){return t},formats:{LT:"A h:mm \u092C\u091C\u0947",LTS:"A h:mm:ss \u092C\u091C\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092C\u091C\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092C\u091C\u0947"},relativeTime:{future:"%s \u092E\u0947\u0902",past:"%s \u092A\u0939\u0932\u0947",s:"\u0915\u0941\u091B \u0939\u0940 \u0915\u094D\u0937\u0923",m:"\u090F\u0915 \u092E\u093F\u0928\u091F",mm:"%d \u092E\u093F\u0928\u091F",h:"\u090F\u0915 \u0918\u0902\u091F\u093E",hh:"%d \u0918\u0902\u091F\u0947",d:"\u090F\u0915 \u0926\u093F\u0928",dd:"%d \u0926\u093F\u0928",M:"\u090F\u0915 \u092E\u0939\u0940\u0928\u0947",MM:"%d \u092E\u0939\u0940\u0928\u0947",y:"\u090F\u0915 \u0935\u0930\u094D\u0937",yy:"%d \u0935\u0930\u094D\u0937"}};_.locale(d,null,!0);var M=d;export{M as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.73
|
|
5
5
|
*/
|
|
6
|
-
import{a as c}from"./
|
|
6
|
+
import{a as c}from"./XXTI75LD.js";import{b as m}from"./XVOXIRVC.js";import"./KHQIRSF2.js";var u=n=>n.map(o=>{let{label:a}=o,t=m(a);return{...o,continent:t}});async function v(){let n=[],o=c.map(t=>({label:t})),a=u(o);for(let t of a){let{label:e,continent:l}=t;if(t.visited)continue;t.visited=!0;let i={label:l,tzs:[{label:e}]};for(let r of a.filter(s=>!s.visited)){let{label:s,continent:b}=r;if(l===b){let p={label:s};i.tzs.push(p),r.visited=!0}}n.push(i)}return n.map(t=>(t.tzs=t.tzs.sort((e,l)=>e.label.localeCompare(l.label)),{label:t.label,tzs:t.tzs.map(e=>e.label)})).sort((t,e)=>t.label.localeCompare(e.label))}export{v as groupByRegion};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.73
|
|
5
5
|
*/
|
|
6
6
|
var t={menu:"menu",defaultTrigger:"default-trigger"},e={tooltip:"tooltip",trigger:"trigger"},a={menu:"ellipsis"},i="data-active";export{t as a,e as b,a as c,i as d};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.73
|
|
5
5
|
*/
|
|
6
|
-
import{e as c}from"./
|
|
6
|
+
import{e as c}from"./AZUPP63M.js";import"./LVMC3BF4.js";import{B as n,I as l,d as r,e as t,v as a,w as s,x as o}from"./76XSLVGD.js";var p=r`:host{position:relative;display:block;inline-size:100%}.track,.bar{position:absolute;inset-block-start:0px;block-size:2px}.track{z-index:var(--calcite-z-index);inline-size:100%;overflow:hidden;background-color:var(--calcite-progress-background-color, var(--calcite-color-border-3))}.bar{z-index:var(--calcite-z-index);background-color:var(--calcite-progress-fill-color, var(--calcite-color-brand))}@media (forced-colors: active){.track{background-color:highlightText}.bar{background-color:linkText}}.indeterminate{inline-size:20%;animation:looping-progress-bar-ani calc(var(--calcite-internal-animation-timing-medium) / var(--calcite-internal-duration-factor) * 11 / var(--calcite-internal-duration-factor)) linear infinite}.indeterminate.calcite--rtl{animation-name:looping-progress-bar-ani-rtl}.reversed{animation-direction:reverse}.text{padding-inline:0px;padding-block:1rem 0px;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-progress-text-color, var(--calcite-color-text-2))}@keyframes looping-progress-bar-ani{0%{transform:translate3d(-100%,0,0)}50%{inline-size:40%}to{transform:translate3d(600%,0,0)}}@keyframes looping-progress-bar-ani-rtl{0%{transform:translate3d(100%,0,0)}50%{inline-size:40%}to{transform:translate3d(-600%,0,0)}}:host([hidden]){display:none}[hidden]{display:none}`,i=class extends a{constructor(){super(...arguments),this.reversed=!1,this.type="determinate",this.value=0}static{this.properties={label:1,reversed:7,text:1,type:3,value:9}}static{this.styles=p}render(){let e=this.type==="determinate",d=e?{width:`${this.value}%`}:{},m=c(this.el);return t`<div .ariaLabel=${this.label||this.text} .ariaValueMax=${e?"100":void 0} .ariaValueMin=${e?"0":void 0} .ariaValueNow=${e?this.value:void 0} role=progressbar><div class="track"><div class=${s({bar:!0,indeterminate:this.type==="indeterminate",[n.rtl]:m==="rtl",reversed:this.reversed})} style=${o(d)}></div></div>${this.text?t`<div class="text">${this.text}</div>`:null}</div>`}};l("calcite-progress",i);export{i as Progress};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.73
|
|
5
5
|
*/
|
|
6
|
-
import{e as a,i,w as s}from"./
|
|
6
|
+
import{e as a,i,w as s}from"./76XSLVGD.js";var c={validationContainer:"validation-container"},d=({scale:t,status:e,id:n,icon:o,message:l})=>a`<div class=${s(c.validationContainer)}><calcite-input-message aria-live=polite .icon=${o} id=${n??i} .scale=${t} .status=${e}>${l}</calcite-input-message></div>`;export{d as a};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.73
|
|
5
5
|
*/
|
|
6
|
-
import{b as s}from"./
|
|
6
|
+
import{b as s}from"./TGBHKTK3.js";import"./SG7SH7WB.js";function r(t){return t%10<5&&t%10>1&&~~(t/10)%10!==1}function a(t,e,_){var i=t+" ";switch(_){case"m":return e?"minuta":"minut\u0119";case"mm":return i+(r(t)?"minuty":"minut");case"h":return e?"godzina":"godzin\u0119";case"hh":return i+(r(t)?"godziny":"godzin");case"MM":return i+(r(t)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return i+(r(t)?"lata":"lat")}}var o="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015Bnia_pa\u017Adziernika_listopada_grudnia".split("_"),m="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017Adziernik_listopad_grudzie\u0144".split("_"),d=/D MMMM/,n=function(e,_){return d.test(_)?o[e.month()]:m[e.month()]};n.s=m;n.f=o;var l={name:"pl",weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015Broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015Br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015Ar_Cz_Pt_So".split("_"),months:n,monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017A_lis_gru".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:a,mm:a,h:a,hh:a,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:a,y:"rok",yy:a},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"}};s.locale(l,null,!0);var u=l;export{u as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
4
|
-
* v3.0.0-next.
|
|
4
|
+
* v3.0.0-next.73
|
|
5
5
|
*/
|
|
6
|
-
import{h as b}from"./
|
|
6
|
+
import{h as b}from"./N4D72Y73.js";import{j as o}from"./LO7IADFH.js";import{a as g,b as y}from"./WI3STLKH.js";import{a as m}from"./TK3JBVPD.js";import{k as h,r as u}from"./AZUPP63M.js";import{a as v,b as f,d as p}from"./KRIGOKK3.js";import"./LVMC3BF4.js";import{I as d,d as l,e as s,u as t,v as n,z as a}from"./76XSLVGD.js";var z=l`: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{position:relative;display:flex;cursor:pointer;color:var(--calcite-color-text-3);outline:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.day-wrapper{position:relative;display:flex;inline-size:100%;flex-direction:column;align-items:center;justify-content:center}.day{position:relative;display:flex;inline-size:100%;align-items:center;justify-content:center;font-size:var(--calcite-font-size--2);line-height:1rem;line-height:1;color:var(--calcite-color-text-3);transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;line-height:var(--calcite-font-line-height-fixed-base);background:none;block-size:var(--calcite-internal-day-size);outline-color:var(--calcite-color-transparent)}.text{margin-block:1px 0px;margin-inline-start:0px}:host([scale=s]){--calcite-internal-day-size: 32px}:host([scale=s]) .day{font-size:var(--calcite-font-size--2)}:host([scale=m]){--calcite-internal-day-size: 40px}:host([scale=m]) .day{font-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-internal-day-size: 44px}:host([scale=l]) .day{font-size:var(--calcite-font-size-0)}:host(:not([current-month])) .day{opacity:var(--calcite-opacity-disabled)}:host(:hover:not([disabled]):not([selected])) .day{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}:host(:not([range]):not([selected]).current-day) .day{color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-medium)}:host(:focus[selected]) .day{z-index:var(--calcite-z-index);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))));box-shadow:0 0 0 2px var(--calcite-color-foreground-1)}:host(:focus:not([disabled]):not([selected])) .day{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))))}:host([selected]) .day{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-color-brand);color:var(--calcite-color-foreground-1)}:host([range-hover]:not([selected])) .day{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}:host([highlighted]:not([selected])) .day{color:var(--calcite-color-brand);background-color:var(--calcite-color-foreground-current)}:host(:hover[highlighted]:not([selected]).inside-range--hover) .day{background-color:var(--calcite-color-foreground-current);color:var(--calcite-color-brand);outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host(:hover:not([highlighted]):not([selected]).outside-range--hover) .day{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))))}@media (forced-colors: active){.day{border-radius:0}:host([selected]){outline:2px solid canvasText}:host(:hover:not([selected])) .day{border-radius:50%}:host([range][selected]) .day,:host([highlighted]) .day,:host([range-hover]:not([selected])) .day{background-color:highlight}:host([range-hover]) .day,:host([range][selected][start-of-range]) .day,:host([range][selected][end-of-range]) .day{background-color:canvas}}:host([hidden]){display:none}[hidden]{display:none}`,i=class extends n{constructor(){super(),this.active=!1,this.currentMonth=!1,this.disabled=!1,this.endOfRange=!1,this.highlighted=!1,this.range=!1,this.rangeHover=!1,this.selected=!1,this.startOfRange=!1,this.calciteInternalDayHover=t({cancelable:!1}),this.calciteInternalDaySelect=t({cancelable:!1}),this.listen("pointerover",this.pointerOverHandler),this.listen("click",this.onClick),this.listen("keydown",this.keyDownHandler)}static{this.properties={active:7,currentMonth:7,dateTimeFormat:0,day:9,disabled:7,endOfRange:7,highlighted:7,range:7,rangeEdge:3,rangeHover:7,scale:3,selected:7,startOfRange:7,value:0}}static{this.styles=z}async setFocus(){await p(this),this.el.focus()}load(){v(this),this.parentDatePickerEl=h(this.el,"calcite-date-picker")}updated(){g(this)}loaded(){f(this)}onClick(){this.disabled||this.calciteInternalDaySelect.emit()}keyDownHandler(e){m(e.key)&&(this.disabled||this.calciteInternalDaySelect.emit(),e.preventDefault())}pointerOverHandler(){this.disabled||this.calciteInternalDayHover.emit()}render(){let e=b(this.value).replaceAll("-","");if(this.parentDatePickerEl){let{numberingSystem:c,lang:r}=this.parentDatePickerEl;o.numberFormatOptions={useGrouping:!1,...c&&{numberingSystem:c},...r&&{locale:r}}}let x=o.localize(String(this.day)),k=this.dateTimeFormat.format(this.value);return this.el.ariaLabel=k,this.el.ariaSelected=u(this.active),a(this.el,"id",e),this.el.role="button",a(this.el,"tabIndex",this.active&&!this.disabled?0:-1),y({disabled:this.disabled,children:s`<div aria-hidden=true class="day-wrapper"><span class="day"><span class="text">${x}</span></span></div>`})}};d("calcite-date-picker-day",i);export{i as DatePickerDay};
|