@esri/calcite-components 3.0.0-next.52 → 3.0.0-next.53
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/{3YGDHGOG.js → 24PYVES3.js} +2 -2
- package/dist/calcite/{5BU7VSAC.js → 24XVUV5T.js} +2 -2
- package/dist/calcite/{7DPTAJN2.js → 26IUW6IS.js} +1 -1
- package/dist/calcite/{4BCQHQX6.js → 26S3IULD.js} +2 -2
- package/dist/calcite/{X352XI6W.js → 2BOORRYN.js} +2 -2
- package/dist/calcite/{RCIBJ7JT.js → 2UBYFM6J.js} +2 -2
- package/dist/calcite/{3DQQFR6L.js → 2V4PG3IZ.js} +2 -2
- package/dist/calcite/{EIR4RXHM.js → 35RGBWOP.js} +2 -2
- package/dist/calcite/{DFC5CMZ5.js → 3ARGUIEN.js} +2 -2
- package/dist/calcite/{UP7I3P7D.js → 3TGGEUCD.js} +2 -2
- package/dist/calcite/{PW2LR6PB.js → 3YPVSPFC.js} +2 -2
- package/dist/calcite/{JWV6GMOF.js → 4CP36RHJ.js} +2 -2
- package/dist/calcite/{ZRP6VSDH.js → 4QAMRZE2.js} +2 -2
- package/dist/calcite/{AF6AY2ZF.js → 52C3QOZT.js} +2 -2
- package/dist/calcite/{RPCIMJ4K.js → 5DSRXN3P.js} +2 -2
- package/dist/calcite/{RMJ4VVQU.js → 5GGGJ4CI.js} +2 -2
- package/dist/calcite/{FOWVMEQS.js → 5HDE33IX.js} +2 -2
- package/dist/calcite/{XJGIWL7R.js → 5XUUZYJQ.js} +2 -2
- package/dist/calcite/{DEAVJ4SV.js → 5XXQBSYN.js} +1 -1
- package/dist/calcite/{L2JWPE7Z.js → 6KOW45FN.js} +1 -1
- package/dist/calcite/{SRMPOAF2.js → 6O2ZQQRB.js} +2 -2
- package/dist/calcite/{OEWJPAHF.js → 6SLJ3R7J.js} +2 -2
- package/dist/calcite/{LIRQ4Q2L.js → 6TXVYXRS.js} +2 -2
- package/dist/calcite/{XXKF3CII.js → 6XVJ4VTL.js} +2 -2
- package/dist/calcite/{L662SWJS.js → 73DC5J7B.js} +2 -2
- package/dist/calcite/{KKHHCJ7B.js → 7A4Q4I5A.js} +1 -1
- package/dist/calcite/{DTUBNFLZ.js → 7BHFQA3L.js} +2 -2
- package/dist/calcite/{NSCPHGZ5.js → 7DRNIGUQ.js} +2 -2
- package/dist/calcite/{4WMD6BH5.js → 7EDSMQEP.js} +2 -2
- package/dist/calcite/{QVINUPH2.js → 7HBSE3JU.js} +2 -2
- package/dist/calcite/{WXCUIDU4.js → 7L44OWEC.js} +2 -2
- package/dist/calcite/{PYWSQGNR.js → 7SBCAXSN.js} +2 -2
- package/dist/calcite/{CYDRA3AK.js → 7V3QFYPQ.js} +2 -2
- package/dist/calcite/{LQZ4MNOP.js → 7VQ2G4LE.js} +2 -2
- package/dist/calcite/{M2OLAAVN.js → 7WIQ5BWI.js} +2 -2
- package/dist/calcite/{F7UCSLMT.js → A4EHPJ64.js} +2 -2
- package/dist/calcite/{L5OIAK34.js → AAKEZUJD.js} +2 -2
- package/dist/calcite/{2K2TTNOF.js → ADWLZGUW.js} +1 -1
- package/dist/calcite/{RPO54IVR.js → ALKPNVQN.js} +2 -2
- package/dist/calcite/{7ORXPFET.js → AO7DUR3N.js} +2 -2
- package/dist/calcite/{2XSF6F2Z.js → AZ57UDCQ.js} +2 -2
- package/dist/calcite/{4ZQKQZZ5.js → AZNL6NQW.js} +2 -2
- package/dist/calcite/{DOTMCGTO.js → AZOUUO5I.js} +2 -2
- package/dist/calcite/{7H2P6L3P.js → BQC5M5MJ.js} +2 -2
- package/dist/calcite/{3AEBEUE6.js → BTZL3CI4.js} +2 -2
- package/dist/calcite/{KQKK5MQO.js → BUSJGBBU.js} +2 -2
- package/dist/calcite/{IBJUTCSE.js → BZ6K6DWS.js} +2 -2
- package/dist/calcite/{GBAP6I53.js → C2H5HAAK.js} +2 -2
- package/dist/calcite/{76ZW6TCD.js → C42IOTLR.js} +2 -2
- package/dist/calcite/{BSM2JVWX.js → C4SSYFZ2.js} +2 -2
- package/dist/calcite/{CBYSKMJ4.js → CEMW7E3R.js} +2 -2
- package/dist/calcite/{II4Z7LEN.js → CJCMIYYT.js} +2 -2
- package/dist/calcite/{BWK44QOQ.js → CMJGDHXA.js} +2 -2
- package/dist/calcite/{PZBU6LYY.js → CUAYVNH3.js} +2 -2
- package/dist/calcite/{7N6UQEXY.js → CWJ6S3G7.js} +2 -2
- package/dist/calcite/{SRK2W4VE.js → CWYOVIYN.js} +2 -2
- package/dist/calcite/{6K2LQVBC.js → CYKBH6DU.js} +2 -2
- package/dist/calcite/{4O5WPR34.js → D3A2Q63Q.js} +1 -1
- package/dist/calcite/{N7VEYDNW.js → DT62SPUO.js} +2 -2
- package/dist/calcite/{TESCMH44.js → DZ7QVHHG.js} +2 -2
- package/dist/calcite/{ZMAOFML5.js → EDB76XFL.js} +2 -2
- package/dist/calcite/{7PIIQTTY.js → F5UAVSCW.js} +1 -1
- package/dist/calcite/{5KSUZZMA.js → FA2VUPG7.js} +2 -2
- package/dist/calcite/{R7XETPKT.js → FLRX4ZG7.js} +2 -2
- package/dist/calcite/{ECYXFXQW.js → FNTCNXK7.js} +1 -1
- package/dist/calcite/{O4XOFCJS.js → FR5ELA5I.js} +2 -2
- package/dist/calcite/{VLO6ILJ7.js → FTKU53NA.js} +2 -2
- package/dist/calcite/{JO5W5VZH.js → FUECTIB6.js} +2 -2
- package/dist/calcite/{7GCQF6LH.js → G63DICRP.js} +2 -2
- package/dist/calcite/GDTVR2EH.js +6 -0
- package/dist/calcite/{6DXJXT2R.js → GEQIU7NM.js} +2 -2
- package/dist/calcite/{UFJSFRSY.js → GFYUIATW.js} +2 -2
- package/dist/calcite/{ZAGFPQD5.js → GJUZPQI7.js} +2 -2
- package/dist/calcite/{WBJV4OIR.js → GK2SMAK4.js} +2 -2
- package/dist/calcite/{ABLYOO25.js → GKRXYUXQ.js} +2 -2
- package/dist/calcite/{Q63QGAA4.js → GKTFETQI.js} +2 -2
- package/dist/calcite/{AMGCUYLD.js → GLJDL4GD.js} +2 -2
- package/dist/calcite/{D4N6OZFW.js → GRX35USC.js} +2 -2
- package/dist/calcite/{F2Q2FWA5.js → GXZHZQLI.js} +2 -2
- package/dist/calcite/{DZUIP7J3.js → GYYADLAT.js} +2 -2
- package/dist/calcite/{UCSTT5WI.js → GZAEI5TY.js} +1 -1
- package/dist/calcite/{AY2CWLDV.js → H5HTXP36.js} +2 -2
- package/dist/calcite/{7CI53YVW.js → H7CUUE2U.js} +2 -2
- package/dist/calcite/{SSVMZWER.js → HGPQRYVR.js} +2 -2
- package/dist/calcite/{J24Q5OFE.js → HLCTRTRD.js} +2 -2
- package/dist/calcite/{DJLB73QB.js → HNKV7TS2.js} +2 -2
- package/dist/calcite/{5BHXFRUB.js → HOFW2LYF.js} +2 -2
- package/dist/calcite/{P25ORS6S.js → HWV7QXNL.js} +2 -2
- package/dist/calcite/{RBP42IUG.js → HX7WY4IX.js} +2 -2
- package/dist/calcite/{TXMSGHJT.js → HXNVQG35.js} +2 -2
- package/dist/calcite/{63VGYQA2.js → HZWPW4BX.js} +1 -1
- package/dist/calcite/{MHD4XNX6.js → I2FDU5N5.js} +1 -1
- package/dist/calcite/{TXVFTP45.js → I3YJ7CWA.js} +2 -2
- package/dist/calcite/{WRNK5EXL.js → IDOCLU67.js} +2 -2
- package/dist/calcite/{NU64PD42.js → IFOF2GNH.js} +2 -2
- package/dist/calcite/{47WMHAFY.js → IP2ODIMD.js} +2 -2
- package/dist/calcite/{3JXK5RFY.js → IVSKWST7.js} +2 -2
- package/dist/calcite/{LKUC2YBT.js → IXKCZFQW.js} +1 -1
- package/dist/calcite/{GDXS336E.js → JMK4HKSS.js} +2 -2
- package/dist/calcite/{7MQJP7UB.js → JNMVPG5S.js} +2 -2
- package/dist/calcite/{HHQIKRTR.js → JP23MBLJ.js} +1 -1
- package/dist/calcite/{NX3OVHZL.js → JRUPUQEI.js} +2 -2
- package/dist/calcite/{ZPQ2DB7F.js → JS37VXVC.js} +2 -2
- package/dist/calcite/{SOE7SA7V.js → JV2RR2SU.js} +2 -2
- package/dist/calcite/{273SIZFM.js → K2ZFKKRC.js} +2 -2
- package/dist/calcite/{6L2QQSWH.js → K6XR4TSA.js} +1 -1
- package/dist/calcite/{ASJK35UV.js → KJJTUFQW.js} +2 -2
- package/dist/calcite/{N3J4UI34.js → KLPQY6OM.js} +2 -2
- package/dist/calcite/{QQK2DM42.js → KUGEQ2HJ.js} +2 -2
- package/dist/calcite/{ISR425PX.js → KX6YGNY3.js} +2 -2
- package/dist/calcite/{G4I5A533.js → L2Q5L6WR.js} +2 -2
- package/dist/calcite/{DCR6IDPW.js → LBBOVL53.js} +2 -2
- package/dist/calcite/{WGQNWSGQ.js → LNSTOAPY.js} +2 -2
- package/dist/calcite/{JVPEQU7G.js → LODQSVA3.js} +2 -2
- package/dist/calcite/{HAQVYDCX.js → LPYUVANO.js} +2 -2
- package/dist/calcite/{XNMOZVYC.js → LTYJ7CJF.js} +2 -2
- package/dist/calcite/{OQ5ZDPAC.js → LZI63ART.js} +2 -2
- package/dist/calcite/{BQYYUQIY.js → M6TGN3EU.js} +1 -1
- package/dist/calcite/{IA6MWND5.js → MBYSEZDV.js} +2 -2
- package/dist/calcite/{W2YSWU44.js → MDR4FUUU.js} +2 -2
- package/dist/calcite/{QE6U4OWA.js → MMJP6VNA.js} +2 -2
- package/dist/calcite/{TIY7FTH3.js → MUSBT55A.js} +2 -2
- package/dist/calcite/{TMNAK3LN.js → MVRBXVM7.js} +2 -2
- package/dist/calcite/{RBFESFID.js → N77XWJWM.js} +2 -2
- package/dist/calcite/{K355JK5G.js → N7AM26EP.js} +2 -2
- package/dist/calcite/{PF3DJUWD.js → NSXDQRY5.js} +2 -2
- package/dist/calcite/{BXVOIXW5.js → NY2SHKKS.js} +2 -2
- package/dist/calcite/{VUGIP2RR.js → O2PEGU6Z.js} +2 -2
- package/dist/calcite/{CBGIBFAX.js → O3GCVYGF.js} +2 -2
- package/dist/calcite/{KS3X2H2K.js → OERTR3K4.js} +2 -2
- package/dist/calcite/{Z2T7B4NV.js → OIHDEJBC.js} +2 -2
- package/dist/calcite/{XVQRXGV6.js → OIVRUVKL.js} +2 -2
- package/dist/calcite/{UVV5I5IA.js → ORPMYQNN.js} +2 -2
- package/dist/calcite/{2SSPOHOR.js → P5AKKRMK.js} +2 -2
- package/dist/calcite/{BA5SQENR.js → PEINFSQP.js} +2 -2
- package/dist/calcite/{GFO3QLEF.js → PMSJ2EXS.js} +2 -2
- package/dist/calcite/{IJ4TBXT4.js → PT7C3AZL.js} +2 -2
- package/dist/calcite/{2V2D3HMJ.js → PTTU7EUS.js} +2 -2
- package/dist/calcite/{OMFUXBMV.js → PYS33KPF.js} +2 -2
- package/dist/calcite/{WEZK6NM4.js → Q56YRBLN.js} +2 -2
- package/dist/calcite/QDOIYLAO.js +6 -0
- package/dist/calcite/{QM7ICDRD.js → QGL3Q4XD.js} +2 -2
- package/dist/calcite/{2WGU5W5M.js → QH3B6V5U.js} +2 -2
- package/dist/calcite/{KM4KUFAX.js → QN5XLC5Y.js} +2 -2
- package/dist/calcite/{FKCLS6P6.js → QNI4RNQV.js} +2 -2
- package/dist/calcite/{GOLCEGMA.js → QNSVE63H.js} +2 -2
- package/dist/calcite/{56SNE2RO.js → QRJQX3YN.js} +2 -2
- package/dist/calcite/{NESGBJQA.js → QVXGKT6R.js} +2 -2
- package/dist/calcite/{2WNORLOM.js → R7H6R6MK.js} +2 -2
- package/dist/calcite/{SRD5HOTF.js → RPDA3FHG.js} +2 -2
- package/dist/calcite/{7AYYQ7MK.js → RU3ECCHY.js} +2 -2
- package/dist/calcite/{HMOSXFKV.js → RWI4SPEP.js} +2 -2
- package/dist/calcite/{TQEYVYFB.js → RYRNIVOK.js} +2 -2
- package/dist/calcite/{7RDGR2Y6.js → S5DULJRP.js} +2 -2
- package/dist/calcite/{IDLJYY2G.js → S7RKUBJO.js} +1 -1
- package/dist/calcite/{RWZPDS3L.js → SAD6Y5N5.js} +2 -2
- package/dist/calcite/{PJV22G7Z.js → SC7626PW.js} +2 -2
- package/dist/calcite/{XBW5UIQD.js → SDMPXTUK.js} +2 -2
- package/dist/calcite/{JPI2KC42.js → SGONF5BH.js} +2 -2
- package/dist/calcite/{OHRAPRJU.js → SOMI7ND4.js} +2 -2
- package/dist/calcite/{QBP7AVAQ.js → SPJFHWMQ.js} +2 -2
- package/dist/calcite/{GKD47TCI.js → SPP64TQL.js} +2 -2
- package/dist/calcite/{5QRKOJI2.js → STUUZJRD.js} +2 -2
- package/dist/calcite/{TGLYTYYL.js → T4E4BEG4.js} +2 -2
- package/dist/calcite/{2R7XE74A.js → T4X323KG.js} +1 -1
- package/dist/calcite/{F5DRXL7C.js → TISPFZFT.js} +2 -2
- package/dist/calcite/{VVNBNLNW.js → TK3LRUS3.js} +2 -2
- package/dist/calcite/{JWJYMB43.js → TVOBTLCZ.js} +2 -2
- package/dist/calcite/{3JPO4M3L.js → U2WS5C6B.js} +1 -1
- package/dist/calcite/{MAD567JI.js → U3UJMGXO.js} +2 -2
- package/dist/calcite/{DRCYKHCT.js → UAFKI6R7.js} +2 -2
- package/dist/calcite/{LJUVD22Y.js → UDVTGGOF.js} +2 -2
- package/dist/calcite/{L54GOEYE.js → UEQBMCBY.js} +2 -2
- package/dist/calcite/{EECVM53M.js → UHZCRFIF.js} +2 -2
- package/dist/calcite/{SLKCAYI5.js → UIC2INAC.js} +2 -2
- package/dist/calcite/{BOMGB2KF.js → UM6EQGQS.js} +2 -2
- package/dist/calcite/{RZIAJCN5.js → UOLLGZVP.js} +2 -2
- package/dist/calcite/{5C7QTUEN.js → URTL2UEX.js} +2 -2
- package/dist/calcite/{AI6EQ3SN.js → VB5FTKTB.js} +2 -2
- package/dist/calcite/{CDK2RSYQ.js → VF57RDQP.js} +2 -2
- package/dist/calcite/{LO3G2RZA.js → VICOBPPY.js} +2 -2
- package/dist/calcite/{MORMMMPK.js → VQIBR432.js} +2 -2
- package/dist/calcite/{UPMITTVY.js → VSTM75MV.js} +2 -2
- package/dist/calcite/{BHN3KBGO.js → VTOWMIEA.js} +2 -2
- package/dist/calcite/{HKYVMRPG.js → W3EFKMID.js} +2 -2
- package/dist/calcite/{KQQOTMSX.js → W5JJM7I7.js} +2 -2
- package/dist/calcite/{O6XASOCZ.js → W6KFT7QQ.js} +2 -2
- package/dist/calcite/{CYUY2GB6.js → WB5BWK3U.js} +2 -2
- package/dist/calcite/{KVEJGA75.js → WCAMDMBX.js} +2 -2
- package/dist/calcite/{NOI635N4.js → WDPUVIX2.js} +1 -1
- package/dist/calcite/{S4THTLJH.js → WFON3SDO.js} +2 -2
- package/dist/calcite/{52UAPTYP.js → WHZ4QFY2.js} +2 -2
- package/dist/calcite/{GMYV7JO7.js → WS744MU7.js} +2 -2
- package/dist/calcite/{GQTW536A.js → WTPJ6MPO.js} +2 -2
- package/dist/calcite/{LHZHJYVN.js → WWFOYYC7.js} +2 -2
- package/dist/calcite/{EVTGMKG5.js → WY7ZTSMJ.js} +2 -2
- package/dist/calcite/{F3S4Y6YQ.js → X32MXY6J.js} +2 -2
- package/dist/calcite/{A2PKBDEC.js → XNCP7WWT.js} +2 -2
- package/dist/calcite/{AVWAOIZJ.js → XNIVMOG5.js} +2 -2
- package/dist/calcite/{XH4DWYEG.js → XNO5G6M7.js} +1 -1
- package/dist/calcite/{Q7IYCCGP.js → XQLJ4KNJ.js} +2 -2
- package/dist/calcite/{H5TMQFJN.js → XTU5SETI.js} +2 -2
- package/dist/calcite/{NKCDQDDE.js → Y4H4OY4F.js} +2 -2
- package/dist/calcite/{MGGOKX5U.js → Y5PURU4I.js} +1 -1
- package/dist/calcite/{6EHMQPWQ.js → Y6FSM2VP.js} +2 -2
- package/dist/calcite/{SJO6O5ET.js → YK6CWEB4.js} +2 -2
- package/dist/calcite/{AVMVU6ER.js → YKDUUADF.js} +2 -2
- package/dist/calcite/{RXYCB2OQ.js → YLGYTSYO.js} +2 -2
- package/dist/calcite/{H56NW6CB.js → YRPC2373.js} +2 -2
- package/dist/calcite/{EW7HSGHB.js → YXU6GIY6.js} +1 -1
- package/dist/calcite/{5X6CZM7S.js → Z2JTKUFI.js} +2 -2
- package/dist/calcite/{6V4RJU5G.js → Z6NX2JIH.js} +2 -2
- package/dist/calcite/{6WNOPBCN.js → ZABB25AQ.js} +2 -2
- package/dist/calcite/{DPJYT4GT.js → ZBKVLNOR.js} +2 -2
- package/dist/calcite/{3TQSNFVM.js → ZJZODJV5.js} +2 -2
- package/dist/calcite/{3L6AHOVG.js → ZKHVF34M.js} +2 -2
- package/dist/calcite/{OM6E54P5.js → ZMQTXUNO.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/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 +2 -2
- 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 +10 -9
- 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 +1 -1
- 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 +2 -0
- package/dist/components/calcite-list/customElement.js +19 -19
- 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 +1 -1
- 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 +1 -1
- package/dist/components/calcite-tile-select-group/customElement.js +1 -1
- package/dist/components/calcite-time-picker/customElement.js +1 -1
- package/dist/components/calcite-tip/customElement.js +1 -1
- package/dist/components/calcite-tip-group/customElement.js +1 -1
- package/dist/components/calcite-tip-manager/customElement.js +1 -1
- package/dist/components/calcite-tooltip/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 +29 -1
- package/dist/docs/docs.json +22 -1
- package/dist/docs/vscode.html-custom-data.json +5 -0
- package/dist/docs/web-types.json +13 -1
- package/dist/extras/vscode-data.json +5 -0
- 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 +4 -4
- package/dist/calcite/NRN42XJV.js +0 -6
- package/dist/calcite/UHVUH74V.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.53
|
|
5
5
|
*/
|
|
6
|
-
import{a as w,b as C}from"./HMOSXFKV.js";import{a as k}from"./WRNK5EXL.js";import{a as f,b as x,d as y}from"./3DQQFR6L.js";import{a as v}from"./6L2QQSWH.js";import{I as m,d as p,e as l,u as g,v as b,w as n}from"./TQEYVYFB.js";var i={checked:"checked",description:"description",descriptionOnly:"description-only",disabled:"disabled",heading:"heading",headingOnly:"heading-only",icon:"icon",iconOnly:"icon-only",inputAlignmentEnd:"input-alignment-end",inputAlignmentStart:"input-alignment-start",inputEnabled:"input-enabled",largeVisual:"large-visual",tile:"tile",tileContentContainer:"tile-content-container",tileContent:"tile-content",tileDescription:"tile-description",tileHeading:"tile-heading",tileLargeVisual:"tile--large-visual",widthAuto:"width-auto",widthFull:"width-full"},$=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}:host .container{background-color:var(--calcite-color-foreground-1);box-shadow:0 0 0 1px var(--calcite-color-border-2);box-sizing:border-box;cursor:pointer;display:inline-block;block-size:100%;max-inline-size:300px;padding:.75rem;position:relative;vertical-align:top;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}:host .container.checked{z-index:var(--calcite-z-index);box-shadow:0 0 0 1px var(--calcite-color-brand)}:host .container.heading-only{align-items:center}:host .container:not(.input-enabled) ::slotted(calcite-checkbox),:host .container:not(.input-enabled) ::slotted(calcite-radio-button){position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host .container.focused{outline-color:transparent}:host .container.focused:not(.disabled):not(.input-enabled){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))));outline-offset:-4px;box-shadow:0 0 0 1px var(--calcite-color-brand),inset 0 0 0 2px var(--calcite-color-foreground-1)}:host .container.input-enabled.input-alignment-start.width-auto.heading-only,:host .container.input-enabled.input-alignment-start.width-auto.icon-only,:host .container.input-enabled.input-alignment-start.width-auto.description-only,:host .container.input-enabled.input-alignment-start.width-auto.heading.description,:host .container.input-enabled.input-alignment-start.width-auto.icon.description,:host .container.input-enabled.input-alignment-start.width-auto.heading.icon.description{display:inline-grid;grid-template-columns:max-content 1fr}:host .container.input-enabled.input-alignment-start.heading-only,:host .container.input-enabled.input-alignment-start.icon-only,:host .container.input-enabled.input-alignment-start.description-only,:host .container.input-enabled.input-alignment-start.heading.description,:host .container.input-enabled.input-alignment-start.icon.description,:host .container.input-enabled.input-alignment-start.heading.icon.description{gap:.75rem}:host .container.input-enabled.input-alignment-start .tile{order:1}:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-radio-button){position:absolute;inset-block-start:.75rem;inset-inline-start:.75rem}:host .container.input-enabled.input-alignment-end.width-auto.heading-only,:host .container.input-enabled.input-alignment-end.width-auto.icon-only{display:inline-grid;grid-gap:.75rem;grid-template-columns:max-content 1fr}:host .container.input-enabled.input-alignment-end.heading-only,:host .container.input-enabled.input-alignment-end.icon-only{gap:.75rem}:host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.heading.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.heading.description ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.icon.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.icon.description ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-radio-button){position:absolute;inset-block-start:.75rem;inset-inline-end:.75rem}:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-radio-button){position:absolute;inset-block-start:.75rem;inset-inline-end:.75rem}:host .container.width-full{display:flex;max-inline-size:none}:host .container.width-full .tile{flex:1 1 auto}.tile{pointer-events:none;box-sizing:border-box;display:flex;-webkit-user-select:none;user-select:none;flex-direction:column;gap:.5rem;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tile-content-container{display:flex;inline-size:100%;align-items:stretch;padding:0;color:var(--calcite-color-text-2);outline-color:transparent}.tile-content{display:flex;flex:1 1 auto;flex-direction:column;gap:.5rem;inline-size:10%}.tile-heading{pointer-events:none;overflow-wrap:break-word;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-2);transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tile-description{pointer-events:none;overflow-wrap:break-word;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-color-text-3);transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tile--large-visual{display:grid;justify-content:center;text-align:center;min-block-size:12rem}.tile--large-visual .icon{align-self:flex-end}.tile--large-visual calcite-icon{block-size:64px;inline-size:64px}.tile--large-visual .tile-content-container{align-self:center}:host(:hover) .container:not(.input-enabled){box-shadow:0 0 0 1px var(--calcite-color-brand)}:host(:hover) .tile-heading,.checked .tile-heading{color:var(--calcite-color-text-1)}:host(:hover) .tile-description,.checked .tile-description{color:var(--calcite-color-text-2)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,c=class extends b{constructor(){super(),this.guid=`calcite-tile-select-${v()}`,this.focused=!1,this.checked=!1,this.disabled=!1,this.iconFlipRtl=!1,this.inputAlignment="start",this.inputEnabled=!1,this.type="radio",this.width="auto",this.calciteTileSelectChange=g({cancelable:!1}),this.listen("calciteCheckboxChange",this.checkboxChangeHandler),this.listen("calciteInternalCheckboxFocus",this.checkboxFocusBlurHandler),this.listen("calciteInternalCheckboxBlur",this.checkboxFocusBlurHandler),this.listen("calciteRadioButtonChange",this.radioButtonChangeHandler),this.listen("calciteInternalRadioButtonCheckedChange",this.radioButtonCheckedChangeHandler),this.listen("calciteInternalRadioButtonFocus",this.radioButtonFocusBlurHandler),this.listen("calciteInternalRadioButtonBlur",this.radioButtonFocusBlurHandler),this.listen("click",this.clickHandler),this.listen("pointerenter",this.pointerEnterHandler),this.listen("pointerleave",this.pointerLeaveHandler)}static{this.properties={focused:16,checked:7,description:3,disabled:7,heading:3,icon:3,iconFlipRtl:7,inputAlignment:3,inputEnabled:7,name:3,type:3,value:1,width:3}}static{this.styles=$}async setFocus(){return await y(this),this.input?.setFocus()}connectedCallback(){super.connectedCallback(),this.renderInput()}load(){k.deprecated("component",{name:"tile-select",removalVersion:4,suggested:["tile","tile-group"]}),f(this)}willUpdate(t){t.has("checked")&&(this.hasUpdated||this.checked!==!1)&&(this.input.checked=this.checked),t.has("name")&&(this.input.name=this.name)}updated(){w(this)}loaded(){x(this)}disconnectedCallback(){super.disconnectedCallback(),this.input.parentNode.removeChild(this.input)}checkboxChangeHandler(t){let e=t.target;e===this.input&&(this.checked=e.checked),t.stopPropagation(),this.calciteTileSelectChange.emit()}checkboxFocusBlurHandler(t){t.target===this.input&&(this.focused=t.detail),t.stopPropagation()}radioButtonChangeHandler(t){let e=t.target;e===this.input&&(this.checked=e.checked),t.stopPropagation(),this.calciteTileSelectChange.emit()}radioButtonCheckedChangeHandler(t){let e=t.target;e===this.input&&(this.checked=e.checked),t.stopPropagation()}radioButtonFocusBlurHandler(t){let e=t.target;e===this.input&&(this.focused=e.focused),t.stopPropagation()}clickHandler(t){if(this.disabled)return;let e=t.target;["calcite-tile","calcite-tile-select"].includes(e.localName)&&this.input.click()}pointerEnterHandler(){if(this.disabled)return;let{localName:t}=this.input;(t==="calcite-radio-button"||t==="calcite-checkbox")&&(this.input.hovered=!0)}pointerLeaveHandler(){if(this.disabled)return;let{localName:t}=this.input;(t==="calcite-radio-button"||t==="calcite-checkbox")&&(this.input.hovered=!1)}renderInput(){this.input=this.type==="radio"?document.createElement("calcite-radio-button"):document.createElement("calcite-checkbox"),this.input.checked=this.checked,this.input.disabled=this.disabled,this.input.hidden=this.el.hidden,this.input.id=this.guid,this.input.label=this.heading||this.name||"",this.name&&(this.input.name=this.name),this.value&&(this.input.value=this.value!=null?this.value.toString():""),this.el.insertAdjacentElement("beforeend",this.input)}render(){let{checked:t,description:e,disabled:s,focused:z,heading:o,icon:a,inputAlignment:r,inputEnabled:H,width:d,iconFlipRtl:B}=this,h=o&&a&&!e,u=!!a;return C({disabled:s,children:l`<div class=${n({checked:t,container:!0,[i.description]:!!e,[i.descriptionOnly]:!!(!o&&!a&&e),disabled:s,focused:z,[i.heading]:!!o,[i.headingOnly]:o&&!a&&!e,[i.icon]:u,[i.iconOnly]:!o&&a&&!e,[i.inputAlignmentEnd]:r==="end",[i.inputAlignmentStart]:r==="start",[i.inputEnabled]:H,[i.largeVisual]:h,[i.widthAuto]:d==="auto",[i.widthFull]:d==="full"})}><div class=${n({[i.tile]:!0,[i.tileLargeVisual]:h})}>${a&&l`<div class=${n({[i.icon]:u})}><calcite-icon .flipRtl=${B} .icon=${a} scale=l></calcite-icon></div>`||""}<div class=${n(i.tileContentContainer)}><div class=${n(i.tileContent)}>${o&&l`<div class=${n(i.tileHeading)}>${o}</div>`||""}${e&&l`<div class=${n(i.tileDescription)}>${e}</div>`||""}</div></div></div><slot></slot></div>`})}};m("calcite-tile-select",c);export{c as TileSelect};
|
|
6
|
+
import{a as w,b as C}from"./RWI4SPEP.js";import{a as k}from"./IDOCLU67.js";import{a as f,b as x,d as y}from"./2V4PG3IZ.js";import{a as v}from"./K6XR4TSA.js";import{I as m,d as p,e as l,u as g,v as b,w as n}from"./RYRNIVOK.js";var i={checked:"checked",description:"description",descriptionOnly:"description-only",disabled:"disabled",heading:"heading",headingOnly:"heading-only",icon:"icon",iconOnly:"icon-only",inputAlignmentEnd:"input-alignment-end",inputAlignmentStart:"input-alignment-start",inputEnabled:"input-enabled",largeVisual:"large-visual",tile:"tile",tileContentContainer:"tile-content-container",tileContent:"tile-content",tileDescription:"tile-description",tileHeading:"tile-heading",tileLargeVisual:"tile--large-visual",widthAuto:"width-auto",widthFull:"width-full"},$=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}:host .container{background-color:var(--calcite-color-foreground-1);box-shadow:0 0 0 1px var(--calcite-color-border-2);box-sizing:border-box;cursor:pointer;display:inline-block;block-size:100%;max-inline-size:300px;padding:.75rem;position:relative;vertical-align:top;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}:host .container.checked{z-index:var(--calcite-z-index);box-shadow:0 0 0 1px var(--calcite-color-brand)}:host .container.heading-only{align-items:center}:host .container:not(.input-enabled) ::slotted(calcite-checkbox),:host .container:not(.input-enabled) ::slotted(calcite-radio-button){position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host .container.focused{outline-color:transparent}:host .container.focused:not(.disabled):not(.input-enabled){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))));outline-offset:-4px;box-shadow:0 0 0 1px var(--calcite-color-brand),inset 0 0 0 2px var(--calcite-color-foreground-1)}:host .container.input-enabled.input-alignment-start.width-auto.heading-only,:host .container.input-enabled.input-alignment-start.width-auto.icon-only,:host .container.input-enabled.input-alignment-start.width-auto.description-only,:host .container.input-enabled.input-alignment-start.width-auto.heading.description,:host .container.input-enabled.input-alignment-start.width-auto.icon.description,:host .container.input-enabled.input-alignment-start.width-auto.heading.icon.description{display:inline-grid;grid-template-columns:max-content 1fr}:host .container.input-enabled.input-alignment-start.heading-only,:host .container.input-enabled.input-alignment-start.icon-only,:host .container.input-enabled.input-alignment-start.description-only,:host .container.input-enabled.input-alignment-start.heading.description,:host .container.input-enabled.input-alignment-start.icon.description,:host .container.input-enabled.input-alignment-start.heading.icon.description{gap:.75rem}:host .container.input-enabled.input-alignment-start .tile{order:1}:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-radio-button){position:absolute;inset-block-start:.75rem;inset-inline-start:.75rem}:host .container.input-enabled.input-alignment-end.width-auto.heading-only,:host .container.input-enabled.input-alignment-end.width-auto.icon-only{display:inline-grid;grid-gap:.75rem;grid-template-columns:max-content 1fr}:host .container.input-enabled.input-alignment-end.heading-only,:host .container.input-enabled.input-alignment-end.icon-only{gap:.75rem}:host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.heading.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.heading.description ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.icon.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.icon.description ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-radio-button){position:absolute;inset-block-start:.75rem;inset-inline-end:.75rem}:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-radio-button){position:absolute;inset-block-start:.75rem;inset-inline-end:.75rem}:host .container.width-full{display:flex;max-inline-size:none}:host .container.width-full .tile{flex:1 1 auto}.tile{pointer-events:none;box-sizing:border-box;display:flex;-webkit-user-select:none;user-select:none;flex-direction:column;gap:.5rem;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tile-content-container{display:flex;inline-size:100%;align-items:stretch;padding:0;color:var(--calcite-color-text-2);outline-color:transparent}.tile-content{display:flex;flex:1 1 auto;flex-direction:column;gap:.5rem;inline-size:10%}.tile-heading{pointer-events:none;overflow-wrap:break-word;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-2);transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tile-description{pointer-events:none;overflow-wrap:break-word;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-color-text-3);transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tile--large-visual{display:grid;justify-content:center;text-align:center;min-block-size:12rem}.tile--large-visual .icon{align-self:flex-end}.tile--large-visual calcite-icon{block-size:64px;inline-size:64px}.tile--large-visual .tile-content-container{align-self:center}:host(:hover) .container:not(.input-enabled){box-shadow:0 0 0 1px var(--calcite-color-brand)}:host(:hover) .tile-heading,.checked .tile-heading{color:var(--calcite-color-text-1)}:host(:hover) .tile-description,.checked .tile-description{color:var(--calcite-color-text-2)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,c=class extends b{constructor(){super(),this.guid=`calcite-tile-select-${v()}`,this.focused=!1,this.checked=!1,this.disabled=!1,this.iconFlipRtl=!1,this.inputAlignment="start",this.inputEnabled=!1,this.type="radio",this.width="auto",this.calciteTileSelectChange=g({cancelable:!1}),this.listen("calciteCheckboxChange",this.checkboxChangeHandler),this.listen("calciteInternalCheckboxFocus",this.checkboxFocusBlurHandler),this.listen("calciteInternalCheckboxBlur",this.checkboxFocusBlurHandler),this.listen("calciteRadioButtonChange",this.radioButtonChangeHandler),this.listen("calciteInternalRadioButtonCheckedChange",this.radioButtonCheckedChangeHandler),this.listen("calciteInternalRadioButtonFocus",this.radioButtonFocusBlurHandler),this.listen("calciteInternalRadioButtonBlur",this.radioButtonFocusBlurHandler),this.listen("click",this.clickHandler),this.listen("pointerenter",this.pointerEnterHandler),this.listen("pointerleave",this.pointerLeaveHandler)}static{this.properties={focused:16,checked:7,description:3,disabled:7,heading:3,icon:3,iconFlipRtl:7,inputAlignment:3,inputEnabled:7,name:3,type:3,value:1,width:3}}static{this.styles=$}async setFocus(){return await y(this),this.input?.setFocus()}connectedCallback(){super.connectedCallback(),this.renderInput()}load(){k.deprecated("component",{name:"tile-select",removalVersion:4,suggested:["tile","tile-group"]}),f(this)}willUpdate(t){t.has("checked")&&(this.hasUpdated||this.checked!==!1)&&(this.input.checked=this.checked),t.has("name")&&(this.input.name=this.name)}updated(){w(this)}loaded(){x(this)}disconnectedCallback(){super.disconnectedCallback(),this.input.parentNode.removeChild(this.input)}checkboxChangeHandler(t){let e=t.target;e===this.input&&(this.checked=e.checked),t.stopPropagation(),this.calciteTileSelectChange.emit()}checkboxFocusBlurHandler(t){t.target===this.input&&(this.focused=t.detail),t.stopPropagation()}radioButtonChangeHandler(t){let e=t.target;e===this.input&&(this.checked=e.checked),t.stopPropagation(),this.calciteTileSelectChange.emit()}radioButtonCheckedChangeHandler(t){let e=t.target;e===this.input&&(this.checked=e.checked),t.stopPropagation()}radioButtonFocusBlurHandler(t){let e=t.target;e===this.input&&(this.focused=e.focused),t.stopPropagation()}clickHandler(t){if(this.disabled)return;let e=t.target;["calcite-tile","calcite-tile-select"].includes(e.localName)&&this.input.click()}pointerEnterHandler(){if(this.disabled)return;let{localName:t}=this.input;(t==="calcite-radio-button"||t==="calcite-checkbox")&&(this.input.hovered=!0)}pointerLeaveHandler(){if(this.disabled)return;let{localName:t}=this.input;(t==="calcite-radio-button"||t==="calcite-checkbox")&&(this.input.hovered=!1)}renderInput(){this.input=this.type==="radio"?document.createElement("calcite-radio-button"):document.createElement("calcite-checkbox"),this.input.checked=this.checked,this.input.disabled=this.disabled,this.input.hidden=this.el.hidden,this.input.id=this.guid,this.input.label=this.heading||this.name||"",this.name&&(this.input.name=this.name),this.value&&(this.input.value=this.value!=null?this.value.toString():""),this.el.insertAdjacentElement("beforeend",this.input)}render(){let{checked:t,description:e,disabled:s,focused:z,heading:o,icon:a,inputAlignment:r,inputEnabled:H,width:d,iconFlipRtl:B}=this,h=o&&a&&!e,u=!!a;return C({disabled:s,children:l`<div class=${n({checked:t,container:!0,[i.description]:!!e,[i.descriptionOnly]:!!(!o&&!a&&e),disabled:s,focused:z,[i.heading]:!!o,[i.headingOnly]:o&&!a&&!e,[i.icon]:u,[i.iconOnly]:!o&&a&&!e,[i.inputAlignmentEnd]:r==="end",[i.inputAlignmentStart]:r==="start",[i.inputEnabled]:H,[i.largeVisual]:h,[i.widthAuto]:d==="auto",[i.widthFull]:d==="full"})}><div class=${n({[i.tile]:!0,[i.tileLargeVisual]:h})}>${a&&l`<div class=${n({[i.icon]:u})}><calcite-icon .flipRtl=${B} .icon=${a} scale=l></calcite-icon></div>`||""}<div class=${n(i.tileContentContainer)}><div class=${n(i.tileContent)}>${o&&l`<div class=${n(i.tileHeading)}>${o}</div>`||""}${e&&l`<div class=${n(i.tileDescription)}>${e}</div>`||""}</div></div></div><slot></slot></div>`})}};m("calcite-tile-select",c);export{c as TileSelect};
|
|
@@ -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.53
|
|
5
5
|
*/
|
|
6
|
-
import{n as m,v as z}from"./
|
|
6
|
+
import{n as m,v as z}from"./FA2VUPG7.js";import"./U2WS5C6B.js";import{d as k}from"./Y6FSM2VP.js";import"./K6XR4TSA.js";import{I as v,d as f,e as o,v as g,w as c,x as p,y as h}from"./RYRNIVOK.js";var u={thumbnail:"thumbnail",background:"background",initials:"initials",icon:"icon"};function $(i){i=y(i);let e=0;for(let a=0;a<i.length;a++)e=i.charCodeAt(a)+((e<<5)-e);let t="#";for(let a=0;a<3;a++){let r=e>>a*8&255;t+=("00"+r.toString(16)).substr(-2)}return t}function y(i){let e=Math.floor(i.length/2),t=i.split("").reverse().join("");return t.substring(e)+t.slice(0,e)}function x(i){let{r:e,g:t,b:a}=i;e/=255,t/=255,a/=255;let r=Math.max(e,t,a),l=Math.min(e,t,a),s=r-l;if(r===l)return 0;let n=(r+l)/2;switch(r){case e:n=(t-a)/s+(t<a?6:0);break;case t:n=(a-e)/s+2;break;case a:n=(e-t)/s+4;break}return Math.round(n*60)}function C(i){return x(z(i))}var F=f`:host{display:inline-block;overflow:hidden;border-radius:var(--calcite-avatar-corner-radius, 50%);color:var(--calcite-avatar-color, var(--calcite-color-text-2))}:host([scale=s]){block-size:1.5rem;inline-size:1.5rem;font-size:var(--calcite-font-size--3)}:host([scale=m]){block-size:2rem;inline-size:2rem;font-size:var(--calcite-font-size--2)}:host([scale=l]){block-size:2.75rem;inline-size:2.75rem;font-size:var(--calcite-font-size-0)}.icon{display:flex}.background{display:flex;block-size:100%;inline-size:100%;align-items:center;justify-content:center;border-radius:var(--calcite-avatar-corner-radius, 50%)}.initials{font-weight:var(--calcite-font-weight-bold);text-transform:uppercase}.thumbnail{block-size:100%;inline-size:100%;border-radius:var(--calcite-avatar-corner-radius, 50%)}:host([hidden]){display:none}[hidden]{display:none}`,d=class extends g{constructor(){super(...arguments),this.thumbnailFailedToLoad=!1,this.scale="m"}static{this.properties={thumbnailFailedToLoad:16,fullName:3,label:1,scale:3,thumbnail:3,userId:3,username:3}}static{this.styles=F}determineContent(){if(this.thumbnail&&!this.thumbnailFailedToLoad)return o`<img alt=${(this.label||"")??h} class=${c(u.thumbnail)} @error=${()=>this.thumbnailFailedToLoad=!0} src=${this.thumbnail??h}>`;let e=this.generateInitials(),t=this.generateFillColor();return o`<span .ariaLabel=${this.label||this.fullName} class=${c(u.background)} role=figure style=${p({backgroundColor:t})}>${e?o`<span aria-hidden=true class=${c(u.initials)}>${e}</span>`:o`<calcite-icon class=${c(u.icon)} icon=user .scale=${this.scale}></calcite-icon>`}</span>`}generateFillColor(){let{userId:e,username:t,fullName:a,el:r}=this,l=k(r),s=e&&`#${e.substr(e.length-6)}`,n=t||a||"",b=s&&m(s)?s:$(n);return!e&&!n||!m(b)?"var(--calcite-avatar-background-color, var(--calcite-color-foreground-2))":`var(--calcite-avatar-background-color, hsl(${C(b)}, 60%, ${l==="dark"?20:90}%))`}generateInitials(){let{fullName:e,username:t}=this;return e?e.trim().split(" ").map(a=>a.substring(0,1)).join(""):t?t.substring(0,2):!1}render(){return this.determineContent()}};v("calcite-avatar",d);export{d as Avatar};
|
|
@@ -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.53
|
|
5
5
|
*/
|
|
6
6
|
function n(t){return t==="Enter"||t===" "}var e=["0","1","2","3","4","5","6","7","8","9"];export{n as a,e as b};
|
|
@@ -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.53
|
|
5
5
|
*/
|
|
6
|
-
import{b as e}from"./
|
|
6
|
+
import{b as e}from"./MVRBXVM7.js";import"./WDPUVIX2.js";var _={name:"id",weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),weekStart:1,formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},ordinal:function(a){return a+"."}};e.locale(_,null,!0);var i=_;export{i 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.53
|
|
5
5
|
*/
|
|
6
|
-
import{C as o}from"./
|
|
6
|
+
import{C as o}from"./Y6FSM2VP.js";function r(n){return"opened"in n?n.opened:n.open}function t(n){requestAnimationFrame(()=>{n.transitionEl&&o(n.transitionEl,n.openTransitionProp,()=>{r(n)?n.onBeforeOpen():n.onBeforeClose()},()=>{r(n)?n.onOpen():n.onClose()})})}export{t 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.53
|
|
5
5
|
*/
|
|
6
|
-
import{b as e}from"./
|
|
6
|
+
import{b as e}from"./MVRBXVM7.js";import"./WDPUVIX2.js";var _={name:"fr-ch",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),months:"janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),weekStart:1,weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),monthsShort:"janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),ordinal:function(m){return m},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"}};e.locale(_,null,!0);var i=_;export{i 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.53
|
|
5
5
|
*/
|
|
6
|
-
import{F as n}from"./
|
|
6
|
+
import{F as n}from"./RYRNIVOK.js";var a=new WeakMap,s=new WeakMap;function r(e){s.set(e,new Promise(t=>a.set(e,t)))}function u(e){a.get(e)()}function i(e){return s.get(e)}async function c(e){if(await i(e),!!n())return e.requestUpdate(),new Promise(t=>requestAnimationFrame(()=>t()))}export{r as a,u as b,i as c,c 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.53
|
|
5
5
|
*/
|
|
6
|
-
import{a as r}from"./
|
|
6
|
+
import{a as r}from"./K6XR4TSA.js";import{I as o,d as t,e as s,v as i,w as a,z as l}from"./RYRNIVOK.js";var c={container:"container",selected:"selected"},d=t`:host{display:flex}.container{display:none;inline-size:var(--calcite-container-size-content-fluid)}:host([selected]) .container{display:block}:host([hidden]){display:none}[hidden]{display:none}`,e=class extends i{constructor(){super(...arguments),this.guid=`calcite-carousel-item-${r()}`,this.selected=!1}static{this.properties={label:1,selected:7}}static{this.styles=d}render(){let n=this.el.id||this.guid;return l(this.el,"id",n),s`<div .ariaLabel=${this.label} class=${a({[c.container]:!0,[c.selected]:this.selected})} role=tabpanel><slot></slot></div>`}};o("calcite-carousel-item",e);export{e as CarouselItem};
|
|
@@ -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.53
|
|
5
5
|
*/
|
|
6
|
-
import{c as a,l as S,r as T,v as C}from"./
|
|
6
|
+
import{c as a,l as S,r as T,v as C}from"./Y6FSM2VP.js";import"./K6XR4TSA.js";import{I as b,d as y,e as E,u as A,v as I,z as M}from"./RYRNIVOK.js";function v(h){return h?.tagName==="CALCITE-TREE-ITEM"}function w(h){return Array.from(h.querySelectorAll("calcite-tree-item:not([disabled])")).filter(e=>{let t=e;for(;t!==h&&t!==void 0;){let l=t.parentElement;if(!(!v(l)||!l.hasChildren||l.expanded))return!1;t=t.parentElement}return!0})}var D=y`:host{display:block}:host(:focus){outline:2px solid transparent;outline-offset:2px}:host([hidden]){display:none}[hidden]{display:none}`,x=class extends I{constructor(){super(),this.items=[],this.lines=!1,this.parentExpanded=!1,this.scale="m",this.selectedItems=[],this.selectionMode="single",this.calciteTreeSelect=A({cancelable:!1}),this.listen("focus",this.onFocus),this.listen("focusin",this.onFocusIn),this.listen("focusout",this.onFocusOut),this.listen("calciteInternalTreeItemSelect",this.onInternalTreeItemSelect),this.listen("keydown",this.keyDownHandler)}static{this.properties={child:7,lines:7,parentExpanded:5,scale:3,selectedItems:0,selectionMode:3}}static{this.styles=D}willUpdate(e){e.has("parentExpanded")&&(this.hasUpdated||this.parentExpanded!==!1)&&this.updateItems();let t=this.el.parentElement?.closest("calcite-tree");this.lines=t?t.lines:this.lines,this.scale=t?t.scale:this.scale,this.selectionMode=t?t.selectionMode:this.selectionMode,this.child=!!t}onFocus(){if(!this.child){let e=this.el.querySelector("calcite-tree-item[selected]:not([disabled])")||this.el.querySelector("calcite-tree-item:not([disabled])");S(e)}}onFocusIn(e){(e.relatedTarget===this.el||!this.el.contains(e.relatedTarget))&&this.el.removeAttribute("tabindex")}onFocusOut(e){!this.el.contains(e.relatedTarget)&&(this.el.tabIndex=this.getRootTabIndex())}onInternalTreeItemSelect(e){if(this.child)return;let t=e.target,l=a(t.querySelectorAll("calcite-tree-item"));if(e.preventDefault(),e.stopPropagation(),this.selectionMode==="ancestors"){this.updateAncestorTree(e);return}let r=this.selectionMode==="none",n=this.selectionMode!==null&&(!t.hasChildren||t.hasChildren&&(this.selectionMode==="children"||this.selectionMode==="multichildren")),s=this.selectionMode==="multichildren"&&t.hasChildren,u=!r&&e.detail.modifyCurrentSelection&&(this.selectionMode==="multiple"||this.selectionMode==="multichildren"),g=!u&&((this.selectionMode==="single"||this.selectionMode==="multiple")&&l.length<=0||this.selectionMode==="children"||this.selectionMode==="multichildren"||this.selectionMode==="single-persist"&&!t.hasChildren),d=["multiple","none","single","single-persist"].includes(this.selectionMode)&&t.hasChildren,c=[];n&&c.push(t),g&&a(this.el.querySelectorAll("calcite-tree-item[selected]")).forEach(i=>{c.includes(i)||(i.selected=!1)}),d&&["multiple","none","single","single-persist"].includes(this.selectionMode)&&(t.expanded=!t.expanded),s&&l.forEach(i=>{i.selected=!1,i.hasChildren&&(i.expanded=!1)}),u&&window.getSelection().removeAllRanges(),u&&t.selected?c.forEach(i=>{i.disabled||(i.selected=!1)}):r||c.forEach(i=>{i.disabled||(i.selected=this.selectionMode!=="single"||!i.selected)}),this.selectedItems=r?[]:a(this.el.querySelectorAll("calcite-tree-item")).filter(i=>i.selected),this.calciteTreeSelect.emit(),e.stopPropagation()}keyDownHandler(e){if(this.child)return;let t=this.el,l=e.target,r=["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End","Tab"];if(!(v(l)&&this.el.contains(l))||!r.includes(e.key))return;let n=w(t);if(e.key==="Tab"){n.forEach(s=>s.tabIndex=-1);return}if(e.key==="ArrowDown"){let s=n.indexOf(l);n[s+1]?.focus(),e.preventDefault();return}if(e.key==="ArrowUp"){let s=n.indexOf(l);n[s-1]?.focus(),e.preventDefault();return}if(e.key==="ArrowLeft"){if(l.hasChildren&&l.expanded){l.expanded=!1,e.preventDefault();return}n.slice(0,n.indexOf(l)).reverse().find(s=>s.depth===l.depth-1)?.focus(),e.preventDefault();return}if(e.key==="ArrowRight"){if(!l.disabled&&l.hasChildren)if(!l.expanded)l.expanded=!0,e.preventDefault();else{let s=n.indexOf(l);n[s+1]?.focus(),e.preventDefault()}return}if(e.key==="Home"){let s=n.shift();s&&(s.focus(),e.preventDefault());return}if(e.key==="End"){let s=n.pop();s&&(s.focus(),e.preventDefault());return}}updateAncestorTree(e){let t=e.target,l=e.detail.updateItem;if(t.disabled||t.indeterminate&&!l)return;let r=[],n=t.parentElement.closest("calcite-tree-item");for(;n;)r.push(n),n=n.parentElement.closest("calcite-tree-item");let s=Array.from(t.querySelectorAll("calcite-tree-item:not([disabled])")),u=s.filter(i=>!i.hasChildren),g=s.filter(i=>i.hasChildren),d;l?d=t.hasChildren?!(t.selected||t.indeterminate):!t.selected:d=t.selected,u.forEach(i=>{i.selected=d,i.indeterminate=!1});function c(i,o){let f=i.filter(p=>p.selected),m=i.filter(p=>!p.selected);o.selected=f.length===i.length,o.indeterminate=f.length>0&&m.length>0}g.reverse().forEach(i=>{let o=Array.from(i.querySelectorAll(":scope > calcite-tree > calcite-tree-item"));c(o,i)}),l&&(t.hasChildren?c(s,t):(t.selected=d,t.indeterminate=!1)),r.forEach(i=>{let o=a(i.querySelectorAll("calcite-tree-item")),f=o.filter(p=>p.selected);if(f.length===0){i.selected=!1,i.indeterminate=!1;return}let m=f.length<o.length;i.indeterminate=m,i.selected=!m}),this.selectedItems=a(this.el.querySelectorAll("calcite-tree-item")).filter(i=>i.selected),l&&this.calciteTreeSelect.emit()}updateItems(){this.items.forEach(e=>e.parentExpanded=this.parentExpanded)}handleDefaultSlotChange(e){let t=C(e).filter(l=>l.matches("calcite-tree-item"));this.items=t,this.updateItems()}getRootTabIndex(){return this.child?-1:0}render(){return this.el.ariaMultiSelectable=this.child?void 0:T(this.selectionMode==="multiple"||this.selectionMode==="multichildren"),this.el.role=this.child?void 0:"tree",M(this.el,"tabIndex",this.getRootTabIndex()),E`<slot @slotchange=${this.handleDefaultSlotChange}></slot>`}};b("calcite-tree",x);export{x as Tree};
|
|
@@ -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.53
|
|
5
5
|
*/
|
|
6
|
-
import{b as n}from"./
|
|
6
|
+
import{b as n}from"./MVRBXVM7.js";import"./WDPUVIX2.js";function u(t,a,s,k){var l={s:"muutama sekunti",m:"minuutti",mm:"%d minuuttia",h:"tunti",hh:"%d tuntia",d:"p\xE4iv\xE4",dd:"%d p\xE4iv\xE4\xE4",M:"kuukausi",MM:"%d kuukautta",y:"vuosi",yy:"%d vuotta",numbers:"nolla_yksi_kaksi_kolme_nelj\xE4_viisi_kuusi_seitsem\xE4n_kahdeksan_yhdeks\xE4n".split("_")},m={s:"muutaman sekunnin",m:"minuutin",mm:"%d minuutin",h:"tunnin",hh:"%d tunnin",d:"p\xE4iv\xE4n",dd:"%d p\xE4iv\xE4n",M:"kuukauden",MM:"%d kuukauden",y:"vuoden",yy:"%d vuoden",numbers:"nollan_yhden_kahden_kolmen_nelj\xE4n_viiden_kuuden_seitsem\xE4n_kahdeksan_yhdeks\xE4n".split("_")},i=k&&!a?m:l,e=i[s];return t<10?e.replace("%d",i.numbers[t]):e.replace("%d",t)}var _={name:"fi",weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xE4kuu_hein\xE4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xE4_hein\xE4_elo_syys_loka_marras_joulu".split("_"),ordinal:function(a){return a+"."},weekStart:1,yearStart:4,relativeTime:{future:"%s p\xE4\xE4st\xE4",past:"%s sitten",s:u,m:u,mm:u,h:u,hh:u,d:u,dd:u,M:u,MM:u,y:u,yy:u},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM[ta] YYYY",LLL:"D. MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, D. MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"D. MMM YYYY",lll:"D. MMM YYYY, [klo] HH.mm",llll:"ddd, D. MMM YYYY, [klo] HH.mm"}};n.locale(_,null,!0);var o=_;export{o 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.53
|
|
5
5
|
*/
|
|
6
|
-
import{b as y}from"./
|
|
6
|
+
import{b as y}from"./GZAEI5TY.js";import{b as f,f as g,j as d,k as I}from"./LTYJ7CJF.js";var M=5;function p(e,n,r=!0,i){let t={hour:"2-digit",minute:"2-digit",timeZone:"UTC",numberingSystem:g(n)};return r&&(t.second="2-digit",i&&(t.fractionalSecondDigits=i)),I(e,t)}function m(e,n){if(e==null)return;let r=e.toString(),i=y(e);if(e<1&&i>0&&i<4){let t=r.replace("0.","");return!n||t.length===n?t:t.length<n?t.padEnd(n,"0"):t}if(e>=0&&e<10)return r.padStart(2,"0");if(e>=10)return r}function C(e){if(!S(e))return null;let{hour:n,minute:r,second:i,fractionalSecond:t}=h(e),o=`${m(parseInt(n))}:${m(parseInt(r))}`;return i&&(o+=`:${m(parseInt(i))}`,t&&(o+=`.${t}`)),o}function b(e){return parseInt((parseFloat(`0.${e}`)/.001).toFixed(3))}function O(e,n){let r=p(e,n).formatToParts(new Date(Date.UTC(0,0,0,0,0,0)));return l("meridiem",r)?"12":"24"}function x(e,n){return d.numberFormatOptions={locale:e,numberingSystem:n},d.localize("1.1").split("")[1]}function U(e,n,r="latn"){let i=p(n,r).formatToParts(new Date(Date.UTC(0,0,0,0,0,0)));return l(`${e}Suffix`,i)}function l(e,n){if(!e||!n)return null;if(e==="hourSuffix"){let r=n.indexOf(n.find(({type:o})=>o==="hour")),i=n.indexOf(n.find(({type:o})=>o==="minute")),t=n[r+1];return t&&t.type==="literal"&&i-r===2&&t.value?.trim()||null}if(e==="minuteSuffix"){let r=n.indexOf(n.find(({type:o})=>o==="minute")),i=n.indexOf(n.find(({type:o})=>o==="second")),t=n[r+1];return t&&t.type==="literal"&&i-r===2&&t.value?.trim()||null}if(e==="secondSuffix"){let r=n.indexOf(n.find(({type:t})=>t==="second")),i=n[r+1];return i&&i.type==="literal"&&i.value?.trim()||null}return n.find(({type:r})=>e=="meridiem"?r==="dayPeriod":r===e)?.value||null}function w(e){if(!f(e))return null;let n=parseInt(e);return n>=0&&n<=11?"AM":"PM"}function F(e){return e==="ar"||e==="he"?0:T({value:"00:00:00",locale:e,numberingSystem:"latn"}).findIndex(n=>n.type==="dayPeriod")}function S(e){if(!e||e.startsWith(":")||e.endsWith(":"))return!1;let n=e.split(":");if(!(n.length>1&&n.length<4))return!1;let[r,i,t]=n,o=parseInt(n[0]),u=parseInt(n[1]),s=parseInt(n[2]),a=f(r)&&o>=0&&o<24,c=f(i)&&u>=0&&u<60,D=f(t)&&s>=0&&s<60;if(a&&c&&!t||a&&c&&D)return!0}function $(e,n){if(n==="meridiem")return e==="AM"||e==="PM";if(!f(e))return!1;let r=Number(e);return n==="hour"?r>=0&&r<24:r>=0&&r<60}function z({value:e,part:n,locale:r,numberingSystem:i}){if(n==="fractionalSecond"){let s=x(r,i),a=null;if(e){d.numberFormatOptions={locale:r,numberingSystem:i};let c=d.localize("0");parseInt(e)===0?a="".padStart(e.length,c):(a=d.localize(`0.${e}`).replace(`${c}${s}`,""),a.length<e.length&&(a=a.padEnd(e.length,c)))}return a}if(!$(e,n))return;let t=parseInt(e),o=new Date(Date.UTC(0,0,0,n==="hour"?t:n==="meridiem"?e==="AM"?0:12:0,n==="minute"?t:0,n==="second"?t:0));if(!o)return;let u=p(r,i).formatToParts(o);return l(n,u)}function A({value:e,locale:n,numberingSystem:r,includeSeconds:i=!0,fractionalSecondDigits:t}){if(!S(e))return null;let{hour:o,minute:u,second:s="0",fractionalSecond:a}=h(e),c=new Date(Date.UTC(0,0,0,parseInt(o),parseInt(u),parseInt(s),a&&b(a)));return p(n,r,i,t).format(c)||null}function H({value:e,locale:n,numberingSystem:r="latn"}){if(!S(e))return null;let{hour:i,minute:t,second:o="0",fractionalSecond:u}=h(e),s=new Date(Date.UTC(0,0,0,parseInt(i),parseInt(t),parseInt(o)));if(s){let a=p(n,r).formatToParts(s);return{localizedHour:l("hour",a),localizedHourSuffix:l("hourSuffix",a),localizedMinute:l("minute",a),localizedMinuteSuffix:l("minuteSuffix",a),localizedSecond:l("second",a),localizedDecimalSeparator:x(n,r),localizedFractionalSecond:z({value:u,part:"fractionalSecond",locale:n,numberingSystem:r}),localizedSecondSuffix:l("secondSuffix",a),localizedMeridiem:l("meridiem",a)}}return null}function T({value:e,locale:n,numberingSystem:r}){if(!S(e))return null;let{hour:i,minute:t,second:o="0"}=h(e),u=new Date(Date.UTC(0,0,0,parseInt(i),parseInt(t),parseInt(o)));return u?p(n,r).formatToParts(u):null}function h(e){if(S(e)){let[n,r,i]=e.split(":"),t=i,o=null;return i?.includes(".")&&([t,o]=i.split(".")),{fractionalSecond:o,hour:n,minute:r,second:t}}return{fractionalSecond:null,hour:null,minute:null,second:null}}function E(e,n=!0){if(!S(e))return"";let{hour:r,minute:i,second:t,fractionalSecond:o}=h(e),u=`${m(parseInt(r))}:${m(parseInt(i))}`;return n&&(u+=`:${m(parseInt(n&&t||"0"))}`,o&&(u+=`.${o}`)),u}export{M as a,m as b,C as c,O as d,x as e,U as f,w as g,F as h,S as i,z as j,A as k,H as l,h as m,E as n};
|
|
@@ -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.53
|
|
5
5
|
*/
|
|
6
|
-
import{a as H}from"./
|
|
6
|
+
import{a as H}from"./M6TGN3EU.js";import{a as O,b as $,c as B,d as T,e as L,f as S}from"./FR5ELA5I.js";import{a as p}from"./ZABB25AQ.js";import"./JP23MBLJ.js";import{a as C}from"./WTPJ6MPO.js";import"./7DRNIGUQ.js";import"./I2FDU5N5.js";import{n as w,u,v as z}from"./Y6FSM2VP.js";import{a as E,b as D,d as G}from"./2V4PG3IZ.js";import"./K6XR4TSA.js";import{C as A,I as y,d as m,e as d,u as v,v as f,w as x}from"./RYRNIVOK.js";var M={actionGroupEnd:"action-group--end"},b={actionsEnd:"actions-end",bottomActions:"bottom-actions",expandTooltip:"expand-tooltip"},W=m`: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{pointer-events:auto;display:inline-flex;align-self:stretch;gap:var(--calcite-action-bar-items-space, 0)}:host([layout=vertical]){flex-direction:column}:host([layout=vertical]):host([overflow-actions-disabled]){overflow-y:auto}:host([layout=vertical]):host([expanded]){max-inline-size:var(--calcite-action-bar-expanded-max-width, auto)}:host([layout=vertical]) .action-group--end{margin-block-start:auto}:host([layout=vertical]) ::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:var(--calcite-border-width-sm)}:host([layout=horizontal]){flex-direction:row}:host([layout=horizontal]):host([overflow-actions-disabled]){overflow-x:auto}:host([layout=horizontal]) .action-group--end{margin-inline-start:auto}:host([layout=horizontal]) ::slotted(calcite-action-group:not(:last-of-type)){border-inline-end-width:var(--calcite-border-width-sm)}.action-group--end{justify-content:flex-end}:host([hidden]){display:none}[hidden]{display:none}`,g=class extends f{constructor(){super(),this.mutationObserver=p("mutation",()=>this.mutationObserverHandler()),this.resize=H(({width:t,height:o})=>{let{el:e,expanded:l,expandDisabled:n,layout:i,overflowActionsDisabled:r,actionGroups:s}=this;if(r||i==="vertical"&&!o||i==="horizontal"&&!t)return;let a=B(e),c=n?a.length:a.length+1;this.updateGroups();let h=this.hasActionsEnd||this.hasBottomActions||!n?s.length+1:s.length,{actionHeight:k,actionWidth:P}=O(a),U=$({layout:i,actionCount:c,actionHeight:k,actionWidth:P,height:o,width:t,groupCount:h});T({actionGroups:s,expanded:l,overflowCount:U})},A.resize),this.resizeHandler=t=>{let{width:o,height:e}=t.contentRect;this.resize({width:o,height:e})},this.resizeObserver=p("resize",t=>this.resizeHandlerEntries(t)),this.toggleExpand=()=>{this.expanded=!this.expanded,this.calciteActionBarToggle.emit()},this.hasActionsEnd=!1,this.hasBottomActions=!1,this.expandDisabled=!1,this.expanded=!1,this.layout="vertical",this.messages=C(),this.overflowActionsDisabled=!1,this.overlayPositioning="absolute",this.scale="m",this.calciteActionBarToggle=v({cancelable:!1}),this.listen("calciteActionMenuOpen",this.actionMenuOpenHandler)}static{this.properties={expandTooltip:16,hasActionsEnd:16,hasBottomActions:16,actionsEndGroupLabel:1,expandDisabled:7,expanded:7,layout:3,messageOverrides:0,overflowActionsDisabled:7,overlayPositioning:3,position:3,scale:3}}static{this.styles=W}async overflowActions(){this.resize({width:this.el.clientWidth,height:this.el.clientHeight})}async setFocus(){await G(this),w(this.el)}connectedCallback(){super.connectedCallback(),this.updateGroups(),this.overflowActions(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.overflowActionsDisabledHandler(this.overflowActionsDisabled)}async load(){E(this)}willUpdate(t){t.has("expandDisabled")&&(this.hasUpdated||this.expandDisabled!==!1)&&this.overflowActions(),t.has("expanded")&&this.hasUpdated&&this.expandedHandler(),t.has("layout")&&(this.hasUpdated||this.layout!=="vertical")&&this.updateGroups(),t.has("overflowActionsDisabled")&&(this.hasUpdated||this.overflowActionsDisabled!==!1)&&this.overflowActionsDisabledHandler(this.overflowActionsDisabled)}loaded(){D(this),this.overflowActions()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.resizeObserver?.disconnect()}expandedHandler(){let{el:t,expanded:o}=this;L({el:t,expanded:o}),this.overflowActions()}overflowActionsDisabledHandler(t){if(t){this.resizeObserver?.disconnect();return}this.resizeObserver?.observe(this.el),this.overflowActions()}actionMenuOpenHandler(t){if(t.target.menuOpen){let o=t.composedPath();this.actionGroups?.forEach(e=>{o.includes(e)||(e.menuOpen=!1)})}}mutationObserverHandler(){this.updateGroups(),this.overflowActions()}resizeHandlerEntries(t){t.forEach(this.resizeHandler)}updateGroups(){let t=Array.from(this.el.querySelectorAll("calcite-action-group"));this.actionGroups=t,this.setGroupLayout(t)}setGroupLayout(t){t.forEach(o=>o.layout=this.layout)}handleDefaultSlotChange(){this.updateGroups()}handleActionsEndSlotChange(t){this.hasActionsEnd=u(t)}handleBottomActionsSlotChange(t){this.hasBottomActions=u(t)}handleTooltipSlotChange(t){let o=z(t).filter(e=>e?.matches("calcite-tooltip"));this.expandTooltip=o[0]}renderBottomActionGroup(){let{expanded:t,expandDisabled:o,el:e,position:l,toggleExpand:n,scale:i,layout:r,messages:s,actionsEndGroupLabel:a,overlayPositioning:c}=this,h=o?null:S({collapseLabel:s.collapseLabel,collapseText:s.collapse,el:e,expandLabel:s.expandLabel,expandText:s.expand,expanded:t,position:l,scale:i,toggle:n,tooltip:this.expandTooltip});return d`<calcite-action-group class=${x(M.actionGroupEnd)} .hidden=${this.expandDisabled&&!(this.hasActionsEnd||this.hasBottomActions)} .label=${a} .layout=${r} .overlayPositioning=${c} .scale=${i}><slot name=${b.actionsEnd} @slotchange=${this.handleActionsEndSlotChange}></slot><slot name=${b.bottomActions} @slotchange=${this.handleBottomActionsSlotChange}></slot><slot name=${b.expandTooltip} @slotchange=${this.handleTooltipSlotChange}></slot>${h}</calcite-action-group>`}render(){return d`<slot @slotchange=${this.handleDefaultSlotChange}></slot>${this.renderBottomActionGroup()}`}};y("calcite-action-bar",g);export{g as ActionBar};
|
|
@@ -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.53
|
|
5
5
|
*/
|
|
6
|
-
import{a as f,b as u}from"./
|
|
6
|
+
import{a as f,b as u}from"./LNSTOAPY.js";import"./L2Q5L6WR.js";import{a as h}from"./QRJQX3YN.js";import{a as g}from"./IDOCLU67.js";import{a as p}from"./WTPJ6MPO.js";import{u as m}from"./Y6FSM2VP.js";import"./K6XR4TSA.js";import{I as d,d as r,e as i,u as l,v as c,w as a}from"./RYRNIVOK.js";var e={container:"container",header:"header",heading:"heading",close:"close",imageFrame:"image-frame",content:"content",info:"info",infoNoThumbnail:"info--no-thumbnail"},$={close:"x"},T={thumbnail:"thumbnail"},z=r`:host{position:relative;margin:1rem;box-sizing:border-box;display:flex;flex-direction:row;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-color-text-2)}:host *{box-sizing:border-box}.container{inline-size:100%;padding:1rem}:host([closed]),:host([closed]) .container{display:none}:host([selected]) .container{margin:0;border-style:none;padding:0}.header{margin:0;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-color-text-2);color:var(--calcite-color-text-2)}.heading{margin:0;padding:0;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:.5rem}.header{margin-block-end:.5rem}.header .heading{padding:0;font-size:var(--calcite-font-size-0);line-height:1.25rem;color:var(--calcite-color-text-1)}.container[hidden]{display:none}.content{display:flex}.info{padding-block:0px;padding-inline:1rem;inline-size:70%}.info--no-thumbnail{inline-size:100%;padding-inline:0px}::slotted(p){margin-block-start:0px}::slotted(a){outline-color:transparent;color:var(--calcite-color-brand)}::slotted(a:focus){outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.image-frame{inline-size:25%}.image-frame img{max-inline-size:100%}::slotted(img){max-inline-size:100%}:host([hidden]){display:none}[hidden]{display:none}`,o=class extends c{constructor(){super(...arguments),this.hasThumbnail=!1,this.closeDisabled=!1,this.closed=!1,this.messages=p(),this.selected=!1,this.calciteTipDismiss=l({cancelable:!1})}static{this.properties={hasThumbnail:16,closeDisabled:7,closed:7,heading:1,headingLevel:11,messageOverrides:0,selected:7}}static{this.styles=z}async load(){g.deprecated("component",{name:"tip",removalVersion:4,suggested:["card","notice","panel","tile"]})}hideTip(){this.closed=!0,this.calciteTipDismiss.emit()}handleThumbnailSlotChange(n){this.hasThumbnail=m(n)}renderHeader(){let{heading:n,headingLevel:t,el:b}=this,s=b.closest("calcite-tip-manager")?.headingLevel,v=s?f(s+1):null,x=t||v;return n?i`<header class=${a(e.header)}>${u({class:e.heading,level:x,children:n})}</header>`:null}renderDismissButton(){let{closeDisabled:n,hideTip:t}=this;return n?null:i`<calcite-action class=${a(e.close)} .icon=${$.close} @click=${t} scale=l .text=${this.messages.close}></calcite-action>`}renderImageFrame(){return h("thumbnail",i`<div class=${a(e.imageFrame)} .hidden=${!this.hasThumbnail}><slot name=${T.thumbnail} @slotchange=${this.handleThumbnailSlotChange}></slot></div>`)}renderInfoNode(){return i`<div class=${a({[e.info]:!0,[e.infoNoThumbnail]:!this.hasThumbnail})}><slot></slot></div>`}renderContent(){return i`<div class=${a(e.content)}>${this.renderImageFrame()}${this.renderInfoNode()}</div>`}render(){return i`<article class=${a(e.container)}>${this.renderHeader()}${this.renderContent()}</article>${this.renderDismissButton()}`}};d("calcite-tip",o);export{o as Tip};
|
|
@@ -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.53
|
|
5
5
|
*/
|
|
6
|
-
import{b as t}from"./
|
|
6
|
+
import{b as t}from"./MVRBXVM7.js";import"./WDPUVIX2.js";var Y={name:"zh-cn",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(e,r){switch(r){case"W":return e+"\u5468";default:return e+"\u65E5"}},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",LLLL:"YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524D",s:"\u51E0\u79D2",m:"1 \u5206\u949F",mm:"%d \u5206\u949F",h:"1 \u5C0F\u65F6",hh:"%d \u5C0F\u65F6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4E2A\u6708",MM:"%d \u4E2A\u6708",y:"1 \u5E74",yy:"%d \u5E74"},meridiem:function(e,r){var _=e*100+r;return _<600?"\u51CC\u6668":_<900?"\u65E9\u4E0A":_<1100?"\u4E0A\u5348":_<1300?"\u4E2D\u5348":_<1800?"\u4E0B\u5348":"\u665A\u4E0A"}};t.locale(Y,null,!0);var m=Y;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.53
|
|
5
5
|
*/
|
|
6
|
-
import{b as C,c as ve,i as E,k as b,n as W}from"./PW2LR6PB.js";import{a as ge,b as S}from"./TMNAK3LN.js";import{a as fe}from"./IDLJYY2G.js";import"./NOI635N4.js";import{b as g}from"./UCSTT5WI.js";import{a as pe}from"./BHN3KBGO.js";import{g as _,j as O}from"./XNMOZVYC.js";import{a as oe,c as le,e as ce,h as he}from"./S4THTLJH.js";import{c as me,d as ue,e as de}from"./GKD47TCI.js";import{a as ae,b as se}from"./HMOSXFKV.js";import{a as j}from"./7GCQF6LH.js";import"./WRNK5EXL.js";import{b as re}from"./7DPTAJN2.js";import{a as ne}from"./GQTW536A.js";import{b as F}from"./NSCPHGZ5.js";import{n as X}from"./6EHMQPWQ.js";import{a as ee,b as te,d as ie}from"./3DQQFR6L.js";import"./6L2QQSWH.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"./TQEYVYFB.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("./KQQOTMSX.js")],["bg",()=>import("./N3J4UI34.js")],["bs",()=>import("./BA5SQENR.js")],["ca",()=>import("./F5DRXL7C.js")],["cs",()=>import("./OHRAPRJU.js")],["da",()=>import("./K355JK5G.js")],["de",()=>import("./ABLYOO25.js")],["de-at",()=>import("./RMJ4VVQU.js")],["de-ch",()=>import("./5QRKOJI2.js")],["el",()=>import("./273SIZFM.js")],["en",()=>import("./3TQSNFVM.js")],["en-au",()=>import("./7CI53YVW.js")],["en-ca",()=>import("./TXMSGHJT.js")],["en-gb",()=>import("./VVNBNLNW.js")],["es",()=>import("./P25ORS6S.js")],["es-mx",()=>import("./QVINUPH2.js")],["et",()=>import("./PJV22G7Z.js")],["fi",()=>import("./UP7I3P7D.js")],["fr",()=>import("./WEZK6NM4.js")],["fr-ch",()=>import("./RCIBJ7JT.js")],["he",()=>import("./JVPEQU7G.js")],["hi",()=>import("./RBFESFID.js")],["hr",()=>import("./DCR6IDPW.js")],["hu",()=>import("./2V2D3HMJ.js")],["id",()=>import("./4BCQHQX6.js")],["it",()=>import("./7ORXPFET.js")],["it-ch",()=>import("./52UAPTYP.js")],["ja",()=>import("./Z2T7B4NV.js")],["ko",()=>import("./LO3G2RZA.js")],["lt",()=>import("./4ZQKQZZ5.js")],["lv",()=>import("./5X6CZM7S.js")],["mk",()=>import("./3L6AHOVG.js")],["nl",()=>import("./D4N6OZFW.js")],["nb",()=>import("./W2YSWU44.js")],["pl",()=>import("./DPJYT4GT.js")],["pt",()=>import("./LQZ4MNOP.js")],["pt-br",()=>import("./N7VEYDNW.js")],["ro",()=>import("./IJ4TBXT4.js")],["ru",()=>import("./F3S4Y6YQ.js")],["sk",()=>import("./ZPQ2DB7F.js")],["sl",()=>import("./OM6E54P5.js")],["sr",()=>import("./47WMHAFY.js")],["sv",()=>import("./5C7QTUEN.js")],["th",()=>import("./CYUY2GB6.js")],["tr",()=>import("./TESCMH44.js")],["uk",()=>import("./JPI2KC42.js")],["vi",()=>import("./UPMITTVY.js")],["zh-cn",()=>import("./AF6AY2ZF.js")],["zh-hk",()=>import("./7AYYQ7MK.js")],["zh-tw",()=>import("./QQK2DM42.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"./3YPVSPFC.js";import{a as ge,b as S}from"./MVRBXVM7.js";import{a as fe}from"./S7RKUBJO.js";import"./WDPUVIX2.js";import{b as g}from"./GZAEI5TY.js";import{a as pe}from"./VTOWMIEA.js";import{g as _,j as O}from"./LTYJ7CJF.js";import{a as oe,c as le,e as ce,h as he}from"./WFON3SDO.js";import{c as me,d as ue,e as de}from"./SPP64TQL.js";import{a as ae,b as se}from"./RWI4SPEP.js";import{a as j}from"./G63DICRP.js";import"./IDOCLU67.js";import{b as re}from"./26IUW6IS.js";import{a as ne}from"./WTPJ6MPO.js";import{b as F}from"./7DRNIGUQ.js";import{n as X}from"./Y6FSM2VP.js";import{a as ee,b as te,d as ie}from"./2V4PG3IZ.js";import"./K6XR4TSA.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"./RYRNIVOK.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("./W5JJM7I7.js")],["bg",()=>import("./KLPQY6OM.js")],["bs",()=>import("./PEINFSQP.js")],["ca",()=>import("./TISPFZFT.js")],["cs",()=>import("./SOMI7ND4.js")],["da",()=>import("./N7AM26EP.js")],["de",()=>import("./GKRXYUXQ.js")],["de-at",()=>import("./5GGGJ4CI.js")],["de-ch",()=>import("./STUUZJRD.js")],["el",()=>import("./K2ZFKKRC.js")],["en",()=>import("./ZJZODJV5.js")],["en-au",()=>import("./H7CUUE2U.js")],["en-ca",()=>import("./HXNVQG35.js")],["en-gb",()=>import("./TK3LRUS3.js")],["es",()=>import("./HWV7QXNL.js")],["es-mx",()=>import("./7HBSE3JU.js")],["et",()=>import("./SC7626PW.js")],["fi",()=>import("./3TGGEUCD.js")],["fr",()=>import("./Q56YRBLN.js")],["fr-ch",()=>import("./2UBYFM6J.js")],["he",()=>import("./LODQSVA3.js")],["hi",()=>import("./N77XWJWM.js")],["hr",()=>import("./LBBOVL53.js")],["hu",()=>import("./PTTU7EUS.js")],["id",()=>import("./26S3IULD.js")],["it",()=>import("./AO7DUR3N.js")],["it-ch",()=>import("./WHZ4QFY2.js")],["ja",()=>import("./OIHDEJBC.js")],["ko",()=>import("./VICOBPPY.js")],["lt",()=>import("./AZNL6NQW.js")],["lv",()=>import("./Z2JTKUFI.js")],["mk",()=>import("./ZKHVF34M.js")],["nl",()=>import("./GRX35USC.js")],["nb",()=>import("./MDR4FUUU.js")],["pl",()=>import("./ZBKVLNOR.js")],["pt",()=>import("./7VQ2G4LE.js")],["pt-br",()=>import("./DT62SPUO.js")],["ro",()=>import("./PT7C3AZL.js")],["ru",()=>import("./X32MXY6J.js")],["sk",()=>import("./JS37VXVC.js")],["sl",()=>import("./ZMQTXUNO.js")],["sr",()=>import("./IP2ODIMD.js")],["sv",()=>import("./URTL2UEX.js")],["th",()=>import("./WB5BWK3U.js")],["tr",()=>import("./DZ7QVHHG.js")],["uk",()=>import("./SGONF5BH.js")],["vi",()=>import("./VSTM75MV.js")],["zh-cn",()=>import("./52C3QOZT.js")],["zh-hk",()=>import("./RU3ECCHY.js")],["zh-tw",()=>import("./KUGEQ2HJ.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.53
|
|
5
5
|
*/
|
|
6
|
-
import{b as a}from"./
|
|
6
|
+
import{b as a}from"./MVRBXVM7.js";import"./WDPUVIX2.js";var M={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function e(r,t,_){var n=M[_];return Array.isArray(n)&&(n=n[t?0:1]),n.replace("%d",r)}var i={name:"de-at",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"J\xE4nner_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xE4n._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:function(t){return t+"."},weekStart:1,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e}};a.locale(i,null,!0);var d=i;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.53
|
|
5
5
|
*/
|
|
6
|
-
import{a as y}from"./
|
|
6
|
+
import{a as y}from"./26IUW6IS.js";import{a as h}from"./5XXQBSYN.js";import{b as r}from"./7DRNIGUQ.js";import{a as u,b as d,c as $,d as A}from"./I2FDU5N5.js";import{l as x,r as b}from"./Y6FSM2VP.js";import{a as I,b as M,d as B}from"./2V4PG3IZ.js";import{a as v}from"./K6XR4TSA.js";import{I as E,d as m,e as a,i as l,u as f,v as g,w as c}from"./RYRNIVOK.js";var P=m`:host{box-sizing:border-box;display:flex;flex-direction:column;font-size:var(--calcite-font-size-1)}::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:var(--calcite-border-width-sm)}.default-trigger{position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}.menu{display:flex;max-block-size:45vh;flex-direction:column;flex-wrap:nowrap;overflow-y:auto;overflow-x:hidden;outline:2px solid transparent;outline-offset:2px;gap:var(--calcite-action-menu-items-space, 0)}:host([hidden]){display:none}[hidden]{display:none}`,D=["ArrowUp","ArrowDown","End","Home"],p=class extends g{constructor(){super(...arguments),this.guid=`calcite-action-menu-${v()}`,this.actionElements=[],this.menuButtonClick=()=>{this.toggleOpen()},this.menuButtonId=`${this.guid}-menu-button`,this.menuButtonKeyDown=e=>{let{key:t}=e,{actionElements:n,activeMenuItemIndex:i,open:o}=this;if(n.length){if(y(t)){if(e.preventDefault(),!o){this.toggleOpen();return}let s=n[i];s?s.click():this.toggleOpen(!1)}if(t==="Tab"){this.open=!1;return}if(t==="Escape"){this.toggleOpen(!1),e.preventDefault();return}this.handleActionNavigation(e,t,n)}},this.menuId=`${this.guid}-menu`,this._open=!1,this.updateAction=(e,t)=>{let{guid:n,activeMenuItemIndex:i}=this,o=`${n}-action-${t}`;e.tabIndex=-1,e.setAttribute("role","menuitem"),e.id||(e.id=o),e.toggleAttribute(A,t===i)},this.activeMenuItemIndex=-1,this.appearance="solid",this.expanded=!1,this.overlayPositioning="absolute",this.placement="auto",this.scale="m",this.calciteActionMenuOpen=f({cancelable:!1})}static{this.properties={activeMenuItemIndex:16,menuButtonEl:16,appearance:3,expanded:7,flipPlacements:0,label:1,open:7,overlayPositioning:3,placement:3,scale:3}}static{this.styles=P}get open(){return this._open}set open(e){let t=this._open;e!==t&&(this._open=e,this.openHandler(e))}async setFocus(){return await B(this),x(this.menuButtonEl)}connectedCallback(){super.connectedCallback(),this.connectMenuButtonEl()}load(){I(this)}willUpdate(e){e.has("expanded")&&(this.hasUpdated||this.expanded!==!1)&&this.expandedHandler(),e.has("activeMenuItemIndex")&&(this.hasUpdated||this.activeMenuItemIndex!==-1)&&this.updateActions(this.actionElements)}loaded(){M(this)}disconnectedCallback(){super.disconnectedCallback(),this.disconnectMenuButtonEl()}expandedHandler(){this.open=!1,this.setTooltipReferenceElement()}openHandler(e){this.menuButtonEl&&(this.menuButtonEl.active=e),this.popoverEl&&(this.popoverEl.open=e),this.activeMenuItemIndex=this.open?0:-1,this.calciteActionMenuOpen.emit(),this.setTooltipReferenceElement()}connectMenuButtonEl(){let{menuButtonId:e,menuId:t,open:n,label:i}=this,o=this.slottedMenuButtonEl||this.defaultMenuButtonEl;this.menuButtonEl!==o&&(this.disconnectMenuButtonEl(),this.menuButtonEl=o,this.setTooltipReferenceElement(),o&&(o.active=n,o.setAttribute("aria-controls",t),o.setAttribute("aria-expanded",b(n)),o.setAttribute("aria-haspopup","true"),o.id||(o.id=e),o.label||(o.label=i),o.text||(o.text=i),o.addEventListener("click",this.menuButtonClick),o.addEventListener("keydown",this.menuButtonKeyDown)))}disconnectMenuButtonEl(){let{menuButtonEl:e}=this;e&&(e.removeEventListener("click",this.menuButtonClick),e.removeEventListener("keydown",this.menuButtonKeyDown))}setMenuButtonEl(e){let t=e.target.assignedElements({flatten:!0}).filter(n=>n?.matches("calcite-action"));this.slottedMenuButtonEl=t[0],this.connectMenuButtonEl()}setDefaultMenuButtonEl(e){this.defaultMenuButtonEl=e,this.connectMenuButtonEl()}setPopoverEl(e){e&&(this.popoverEl=e,e.open=this.open)}handleCalciteActionClick(){this.open=!1,this.setFocus()}updateTooltip(e){let t=e.target.assignedElements({flatten:!0}).filter(n=>n?.matches("calcite-tooltip"));this.tooltipEl=t[0],this.setTooltipReferenceElement()}setTooltipReferenceElement(){let{tooltipEl:e,expanded:t,menuButtonEl:n,open:i}=this;e&&(e.referenceElement=!t&&!i?n:null)}updateActions(e){e?.forEach(this.updateAction)}handleDefaultSlotChange(e){let t=e.target.assignedElements({flatten:!0}).reduce((n,i)=>i?.matches("calcite-action")?(n.push(i),n):i?.matches("calcite-action-group")?n.concat(Array.from(i.querySelectorAll("calcite-action"))):n,[]);this.actionElements=t.filter(n=>!n.disabled&&!n.hidden)}isValidKey(e,t){return!!t.find(n=>n===e)}handleActionNavigation(e,t,n){if(!this.isValidKey(t,D))return;if(e.preventDefault(),!this.open){this.toggleOpen(),(t==="Home"||t==="ArrowDown")&&(this.activeMenuItemIndex=0),(t==="End"||t==="ArrowUp")&&(this.activeMenuItemIndex=n.length-1);return}t==="Home"&&(this.activeMenuItemIndex=0),t==="End"&&(this.activeMenuItemIndex=n.length-1);let i=this.activeMenuItemIndex;t==="ArrowUp"&&(this.activeMenuItemIndex=h(Math.max(i-1,-1),n.length)),t==="ArrowDown"&&(this.activeMenuItemIndex=h(i+1,n.length))}toggleOpen(e=!this.open){this.open=e}handlePopoverOpen(){this.open=!0,this.setFocus()}handlePopoverClose(){this.open=!1}renderMenuButton(){let{appearance:e,label:t,scale:n,expanded:i}=this;return a`<slot name=${d.trigger} @slotchange=${this.setMenuButtonEl}><calcite-action .appearance=${e} class=${c(u.defaultTrigger)} .icon=${$.menu} .scale=${n} .text=${t} .textEnabled=${i} ${r(this.setDefaultMenuButtonEl)}></calcite-action></slot>`}renderMenuItems(){let{actionElements:e,activeMenuItemIndex:t,menuId:n,menuButtonEl:i,label:o,placement:s,overlayPositioning:w,flipPlacements:k}=this,C=e[t]?.id||null;return a`<calcite-popover auto-close .flipPlacements=${k} focus-trap-disabled .label=${o} offset-distance=0 @calcitePopoverClose=${this.handlePopoverClose} @calcitePopoverOpen=${this.handlePopoverOpen} .overlayPositioning=${w} .placement=${s} pointer-disabled .referenceElement=${i} trigger-disabled ${r(this.setPopoverEl)}><div aria-activedescendant=${C??l} aria-labelledby=${i?.id??l} class=${c(u.menu)} id=${n??l} @click=${this.handleCalciteActionClick} role=menu tabindex=-1><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></calcite-popover>`}render(){return a`${this.renderMenuButton()}${this.renderMenuItems()}<slot name=${d.tooltip} @slotchange=${this.updateTooltip}></slot>`}};E("calcite-action-menu",p);export{p as ActionMenu};
|