@esri/calcite-components 3.0.0-next.111 → 3.0.0-next.112
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/{C4A2PCZ4.js → 26GCGZCE.js} +2 -2
- package/dist/calcite/{KC4IYMUL.js → 2UXTUAIX.js} +2 -2
- package/dist/calcite/{36E6CTNX.js → 2V6SDXXL.js} +2 -2
- package/dist/calcite/{6OCJIDQZ.js → 2VKH767S.js} +1 -1
- package/dist/calcite/{H2UMFA24.js → 2WC43MQF.js} +2 -2
- package/dist/calcite/{4IWRJJPT.js → 2XCZ4HJ3.js} +1 -1
- package/dist/calcite/{3TXD2SW4.js → 2XWYOGTJ.js} +1 -1
- package/dist/calcite/{F6DYUGAJ.js → 2ZX5UVQB.js} +2 -2
- package/dist/calcite/{YRCGG4BE.js → 3233WZN5.js} +2 -2
- package/dist/calcite/{B6DZ4O5H.js → 32EV57MP.js} +2 -2
- package/dist/calcite/{5UP5TQJN.js → 35RN44U6.js} +2 -2
- package/dist/calcite/{6SREDGMN.js → 3772UXWO.js} +2 -2
- package/dist/calcite/{EILXZAAH.js → 3I2LZU5I.js} +2 -2
- package/dist/calcite/{VIFJTMJE.js → 3L4KZ6DP.js} +2 -2
- package/dist/calcite/{RATZT6K7.js → 3LLLR3SD.js} +1 -1
- package/dist/calcite/{HHC7VSD3.js → 3P6A6NLE.js} +1 -1
- package/dist/calcite/{TJ6U6Y2A.js → 43VXBO7F.js} +2 -2
- package/dist/calcite/{QNRLRRZZ.js → 4ERYIQPI.js} +2 -2
- package/dist/calcite/{NYJ2KJKN.js → 4FBXBMHB.js} +2 -2
- package/dist/calcite/{RAWIO5CJ.js → 4I7WALRN.js} +2 -2
- package/dist/calcite/{A5WZ32T6.js → 4JL6234R.js} +2 -2
- package/dist/calcite/{4ZNEZOAP.js → 4JNBAKEX.js} +2 -2
- package/dist/calcite/{H7D6N2ZS.js → 4LK3C6YX.js} +2 -2
- package/dist/calcite/{NK25FAZ6.js → 4LMTQBKB.js} +2 -2
- package/dist/calcite/{4L6L5YMT.js → 4LWJLOZJ.js} +1 -1
- package/dist/calcite/{XGGCYCLU.js → 4QM3GEL3.js} +2 -2
- package/dist/calcite/{ZITAONDY.js → 4RW7IUUG.js} +2 -2
- package/dist/calcite/{YUQIXR5A.js → 4XTOIXKC.js} +2 -2
- package/dist/calcite/{EISHHIYI.js → 5OUJ5SNP.js} +2 -2
- package/dist/calcite/{KRZW2DWF.js → 5SVUJMD2.js} +2 -2
- package/dist/calcite/{N2PDJVSE.js → 5VJA2SJE.js} +2 -2
- package/dist/calcite/{36HITQ3A.js → 646YYMWB.js} +2 -2
- package/dist/calcite/{BAHKYVUM.js → 6BDNQ55K.js} +2 -2
- package/dist/calcite/{MWJLXQ5U.js → 6TB75VEJ.js} +2 -2
- package/dist/calcite/{GESC7PRY.js → 742HU5N7.js} +1 -1
- package/dist/calcite/{RXJQR5VC.js → 76NKOWHT.js} +2 -2
- package/dist/calcite/{NERFG233.js → 7ELGZ4YC.js} +2 -2
- package/dist/calcite/{X7WD2RXW.js → 7TQDXAWP.js} +2 -2
- package/dist/calcite/{TZPOTIWO.js → 7UKCMBOL.js} +2 -2
- package/dist/calcite/{EYPFBUR7.js → 7V3QJYSP.js} +2 -2
- package/dist/calcite/{73K4GSAV.js → 7WA3COS3.js} +2 -2
- package/dist/calcite/{B3YKMJGM.js → 7ZX7OS2H.js} +2 -2
- package/dist/calcite/{5BEKT6RT.js → AB2CWRIC.js} +2 -2
- package/dist/calcite/{DYN74HSB.js → AUYLHBJ7.js} +2 -2
- package/dist/calcite/{62G23PKY.js → AV2EHTLC.js} +2 -2
- package/dist/calcite/{MEXPAXRW.js → AVOLE242.js} +2 -2
- package/dist/calcite/{KOH6G4XV.js → AYQZ5VDN.js} +2 -2
- package/dist/calcite/{KI2CJ7JL.js → B43CRSJJ.js} +2 -2
- package/dist/calcite/{V7QQRUYR.js → BCB2WK2D.js} +2 -2
- package/dist/calcite/{LLYFYC3S.js → BJBWELKD.js} +2 -2
- package/dist/calcite/{HNGJKPNS.js → BO5MMGJL.js} +2 -2
- package/dist/calcite/{DUTPXINY.js → BRN2G5FM.js} +1 -1
- package/dist/calcite/{G63OZT6W.js → BURXKUR3.js} +2 -2
- package/dist/calcite/{P6VB45CQ.js → BYUTWHKB.js} +2 -2
- package/dist/calcite/{RC4M4Q6U.js → C5QVCO3K.js} +2 -2
- package/dist/calcite/{KRO7CG2Q.js → CA2BN6QS.js} +1 -1
- package/dist/calcite/{HZLG5SUR.js → CBYIRQWS.js} +1 -1
- package/dist/calcite/{KXJRCIPX.js → CDKEY3WB.js} +2 -2
- package/dist/calcite/{MI3K57KT.js → CHD3SOEY.js} +2 -2
- package/dist/calcite/{VYBRMYZA.js → CHJ3GDMP.js} +2 -2
- package/dist/calcite/{QBNHVQWS.js → CNJJ4JAA.js} +2 -2
- package/dist/calcite/{E3QBKOQQ.js → CNQTZPGE.js} +2 -2
- package/dist/calcite/{NUY7EYNX.js → COZQVT5N.js} +2 -2
- package/dist/calcite/{MIOMFK6B.js → D77MYRNR.js} +2 -2
- package/dist/calcite/{MDS5OEJ4.js → D7QO4MR5.js} +2 -2
- package/dist/calcite/{S5QILLXK.js → DAPSSJDL.js} +2 -2
- package/dist/calcite/{FLXOWNYW.js → DDBUCELD.js} +2 -2
- package/dist/calcite/{FHGZNYTT.js → DGEUADBB.js} +2 -2
- package/dist/calcite/{H2PEX7CU.js → DHTPVC2F.js} +2 -2
- package/dist/calcite/{JCQBVDTR.js → DM2GCWQQ.js} +2 -2
- package/dist/calcite/{EBFZRB3A.js → DQGJRYH6.js} +2 -2
- package/dist/calcite/{HALAA7KD.js → DZUFJWJR.js} +2 -2
- package/dist/calcite/{XY7DR573.js → ECWX7QSB.js} +2 -2
- package/dist/calcite/{O6RKIBH2.js → ERTRCSGY.js} +2 -2
- package/dist/calcite/{DTEHSI7W.js → ES7L3352.js} +2 -2
- package/dist/calcite/{JCZIZMKQ.js → ESCM7A3P.js} +2 -2
- package/dist/calcite/{KTJZCONU.js → EZE6LINE.js} +2 -2
- package/dist/calcite/{X5OT5VWP.js → F3VFHREW.js} +1 -1
- package/dist/calcite/{QVLHSABE.js → FCUKKUII.js} +2 -2
- package/dist/calcite/{KE7WVOAV.js → FEBWBV3G.js} +2 -2
- package/dist/calcite/{G2JF63JV.js → FIAPBBAE.js} +2 -2
- package/dist/calcite/{7PLD33LH.js → FQ552FY2.js} +2 -2
- package/dist/calcite/{L5DK3NJQ.js → FVCGJOC2.js} +2 -2
- package/dist/calcite/{RYBJ6HQX.js → FVY5UW5M.js} +2 -2
- package/dist/calcite/{WHQERKO3.js → FWD7LP7Y.js} +2 -2
- package/dist/calcite/{2EBGD5ZQ.js → G2U3QPXS.js} +2 -2
- package/dist/calcite/{NWA7UYBI.js → GCYIAMFL.js} +2 -2
- package/dist/calcite/{FAULLEJY.js → GGPF55X7.js} +2 -2
- package/dist/calcite/{KOFGYSC5.js → GPL4OLG4.js} +2 -2
- package/dist/calcite/{OP2QHRHR.js → GWEOMG73.js} +2 -2
- package/dist/calcite/{Y4WWNYQO.js → GWMWW26O.js} +2 -2
- package/dist/calcite/{VKUXTBMA.js → HCBA5M4B.js} +2 -2
- package/dist/calcite/HD4K2K6B.js +22 -0
- package/dist/calcite/{IHBCPOXF.js → IFOCW66N.js} +2 -2
- package/dist/calcite/{ALGCYGFE.js → IH2FEA6S.js} +2 -2
- package/dist/calcite/{MQSDYLGW.js → IHFAHOPM.js} +2 -2
- package/dist/calcite/{BTHSKXWS.js → IJVDLC44.js} +2 -2
- package/dist/calcite/{LRXQU7WR.js → ILYVWKBI.js} +2 -2
- package/dist/calcite/{IRW4MFB4.js → INOHUNYC.js} +2 -2
- package/dist/calcite/{C5MKAGNV.js → ITNWZZJG.js} +2 -2
- package/dist/calcite/{DSL2FNLA.js → J63VR3DA.js} +2 -2
- package/dist/calcite/{XJUGTTYP.js → JB4OABAN.js} +2 -2
- package/dist/calcite/{DY22I2GZ.js → JF4CUF2F.js} +2 -2
- package/dist/calcite/{YQDF2N5J.js → JPEWNRQV.js} +2 -2
- package/dist/calcite/{IQTGVLQG.js → JSEUV5GZ.js} +2 -2
- package/dist/calcite/{7TNMI44V.js → JXIZ2IDU.js} +2 -2
- package/dist/calcite/{BWCV737I.js → JYG47FOX.js} +2 -2
- package/dist/calcite/{ROTKUEC4.js → KA42G6AX.js} +1 -1
- package/dist/calcite/{ECGXAEDQ.js → KGYN6ZPK.js} +2 -2
- package/dist/calcite/{RRR3UCDP.js → KHPFXWFB.js} +2 -2
- package/dist/calcite/{5VK77MGP.js → KIDYM47T.js} +2 -2
- package/dist/calcite/{XWO5T62V.js → KN3MO6BZ.js} +2 -2
- package/dist/calcite/{JTWLPIB2.js → KPFIGHJN.js} +2 -2
- package/dist/calcite/{J4KGM5S7.js → KQ7ZENRI.js} +1 -1
- package/dist/calcite/{GY22257T.js → L5KP76WA.js} +2 -2
- package/dist/calcite/{D2MINRBA.js → L7WD7S2N.js} +1 -1
- package/dist/calcite/{B747CT5Q.js → LDO25S3J.js} +2 -2
- package/dist/calcite/{ZFGK5MNZ.js → LFGO6V3J.js} +2 -2
- package/dist/calcite/{PNTWJB75.js → LFN5CXRO.js} +2 -2
- package/dist/calcite/{S2CHZ5WW.js → LH2LVWBO.js} +2 -2
- package/dist/calcite/{QD6WQCPN.js → LKIDEJVY.js} +2 -2
- package/dist/calcite/{GNZIY4A2.js → LVBDYUNB.js} +2 -2
- package/dist/calcite/{ULI2WHN6.js → M7M3EFU6.js} +2 -2
- package/dist/calcite/{YP2GEKXK.js → M7RMVQD7.js} +2 -2
- package/dist/calcite/{7XZR3QPX.js → MDYCXFC5.js} +2 -2
- package/dist/calcite/{LLYVXFI4.js → MLMULI4J.js} +2 -2
- package/dist/calcite/{6A464LBG.js → MN6H7FGM.js} +2 -2
- package/dist/calcite/{QTGKBVAW.js → MNGMZS2D.js} +2 -2
- package/dist/calcite/{EN6Y5YN5.js → MSE354U6.js} +2 -2
- package/dist/calcite/{KNE7ABCR.js → MTWGK5RM.js} +2 -2
- package/dist/calcite/{LKNGKUUT.js → MVFEGLA2.js} +2 -2
- package/dist/calcite/{5JAMHCQS.js → MYU6UPOF.js} +2 -2
- package/dist/calcite/{36DTW2EC.js → NGSLE2LS.js} +2 -2
- package/dist/calcite/{4ZTXEQT4.js → OBYXB3YL.js} +2 -2
- package/dist/calcite/{5ZFIOILW.js → P5XNZSLG.js} +2 -2
- package/dist/calcite/{ERDL4UCD.js → PEVTMCEE.js} +2 -2
- package/dist/calcite/{AA6WUYLQ.js → PFBSB5DL.js} +2 -2
- package/dist/calcite/{57U74PDQ.js → PLVLJNZL.js} +2 -2
- package/dist/calcite/{MJIKLRLZ.js → POKXDV26.js} +2 -2
- package/dist/calcite/{SLILJOTA.js → POW2A2ML.js} +2 -2
- package/dist/calcite/{WRRV2226.js → POZQZZJO.js} +2 -2
- package/dist/calcite/{DDOM5RYZ.js → PPRNJ4GL.js} +2 -2
- package/dist/calcite/{757M5TSP.js → PT4WYY27.js} +2 -2
- package/dist/calcite/{ZAY3SU5H.js → Q7ER6VDU.js} +2 -2
- package/dist/calcite/{XP22SQKN.js → QKEQSURZ.js} +2 -2
- package/dist/calcite/{BZV465ZG.js → QM7GPSBW.js} +2 -2
- package/dist/calcite/{6KXUZBIZ.js → QRZIHTIR.js} +2 -2
- package/dist/calcite/{IIERNP6W.js → QT2PMU6P.js} +1 -1
- package/dist/calcite/{NOJTDKA6.js → QUPSX6GA.js} +2 -2
- package/dist/calcite/{4NZHY4FQ.js → QURBMMXR.js} +2 -2
- package/dist/calcite/{ZSLV2NNR.js → QUTJBDRW.js} +2 -2
- package/dist/calcite/{FVABUFOH.js → QY7NHMS4.js} +2 -2
- package/dist/calcite/{XUCLKKAR.js → QYPMVFDX.js} +2 -2
- package/dist/calcite/{YH3WSHXS.js → R3PSVZWE.js} +2 -2
- package/dist/calcite/{JL7OLH3T.js → R4T36HBN.js} +2 -2
- package/dist/calcite/{HQLH54Q4.js → R6QI6YMG.js} +2 -2
- package/dist/calcite/{GIAH7CPN.js → RDB3TFT7.js} +2 -2
- package/dist/calcite/{DO4RITGJ.js → RFOQNTJC.js} +2 -2
- package/dist/calcite/{CK3TASCY.js → RI7EWLBS.js} +2 -2
- package/dist/calcite/{XODNGXTR.js → RLOAXP7B.js} +2 -2
- package/dist/calcite/{UPO2OA2C.js → RNELF6B4.js} +2 -2
- package/dist/calcite/{7GOGBJPD.js → RSJ56S5X.js} +2 -2
- package/dist/calcite/{YF3UCGCR.js → RTPEHSM2.js} +2 -2
- package/dist/calcite/{FAQ7B73H.js → RTWQONKZ.js} +2 -2
- package/dist/calcite/{6PBZNCIY.js → RWD6DYHO.js} +2 -2
- package/dist/calcite/{P5ZVYEQW.js → RXIVLADL.js} +2 -2
- package/dist/calcite/{LNUDHR7T.js → SAPE4DAU.js} +2 -2
- package/dist/calcite/{E3CWAGXE.js → SD2UC7UP.js} +2 -2
- package/dist/calcite/{S5WUGWLI.js → SDTYLBCL.js} +2 -2
- package/dist/calcite/{2ZPEMPPG.js → SEQVXPJB.js} +2 -2
- package/dist/calcite/{43C4CZJO.js → SFOZ4MZE.js} +2 -2
- package/dist/calcite/{K5ODBKLP.js → SFUCW2WQ.js} +2 -2
- package/dist/calcite/{A3M4FM7N.js → SGOTKKI5.js} +2 -2
- package/dist/calcite/{NWNWCSUO.js → SHKLCON2.js} +2 -2
- package/dist/calcite/{TRXE64SN.js → SLC5K6UY.js} +2 -2
- package/dist/calcite/{FHAH57CK.js → SOGMEYYE.js} +2 -2
- package/dist/calcite/{QEBXFL3K.js → SP2BK4SY.js} +2 -2
- package/dist/calcite/{MJII73PP.js → TBCXPA5F.js} +2 -2
- package/dist/calcite/{PTUZR2XV.js → TSL7GGSZ.js} +2 -2
- package/dist/calcite/{GSUR5POR.js → TSXYEB55.js} +2 -2
- package/dist/calcite/{ILJVRQHM.js → TWCVFITB.js} +2 -2
- package/dist/calcite/{DL75ZJBG.js → U7DIHBVJ.js} +1 -1
- package/dist/calcite/{WLKZ6TCC.js → UAHRRCE6.js} +2 -2
- package/dist/calcite/{2QBRISAS.js → UBJZFMYA.js} +2 -2
- package/dist/calcite/{T2EFD7MK.js → UFK5XY2Z.js} +2 -2
- package/dist/calcite/{ZLW5U3G6.js → UOS2W5UZ.js} +2 -2
- package/dist/calcite/{HZUKYZNP.js → UQZDTBCK.js} +2 -2
- package/dist/calcite/{7F6EUEAO.js → USZ5QWZ4.js} +2 -2
- package/dist/calcite/{FH7G4JPL.js → UVTRCXNX.js} +2 -2
- package/dist/calcite/{JE5DGAJR.js → UZE7FE6D.js} +2 -2
- package/dist/calcite/{K53JENHF.js → V3B52RTT.js} +2 -2
- package/dist/calcite/{NK4ED4IH.js → V4BC43EQ.js} +2 -2
- package/dist/calcite/{EGC7NBN5.js → VHFQOCWE.js} +2 -2
- package/dist/calcite/{YOI4NTGG.js → VSIZM67K.js} +2 -2
- package/dist/calcite/{P6BFNJVU.js → VW4D4FUP.js} +2 -2
- package/dist/calcite/{ADRZSXZD.js → VZEHCSZ6.js} +2 -2
- package/dist/calcite/{TVXUNVVJ.js → W4EOMVLB.js} +2 -2
- package/dist/calcite/{YTSHEMU3.js → WMFDKBJZ.js} +2 -2
- package/dist/calcite/{3FJPBCHI.js → WR42T2XB.js} +2 -2
- package/dist/calcite/{LMPMNF4U.js → WY4EF3FC.js} +2 -2
- package/dist/calcite/{2HEEVITF.js → XBRHFS7T.js} +1 -1
- package/dist/calcite/{LEAJPPH4.js → XG4RZCSL.js} +2 -2
- package/dist/calcite/{XK6ESUWM.js → XHR55QLO.js} +2 -2
- package/dist/calcite/{DJ4JGNMM.js → XPX76556.js} +2 -2
- package/dist/calcite/{44DZGTF5.js → XR2NW3AW.js} +2 -2
- package/dist/calcite/{SZIQPAWB.js → YBE3DWF5.js} +2 -2
- package/dist/calcite/{GPNKRGK6.js → YKQW66NW.js} +2 -2
- package/dist/calcite/{UKOMGWYV.js → YM3BUYUS.js} +2 -2
- package/dist/calcite/{2BGOXXHV.js → YOAR4AAW.js} +1 -1
- package/dist/calcite/{2SKIGCTJ.js → YPU7EI7F.js} +2 -2
- package/dist/calcite/{3TINKPLC.js → YU4WGSJD.js} +2 -2
- package/dist/calcite/{4OSJHPNQ.js → YWBF36FS.js} +1 -1
- package/dist/calcite/{KGJ4OJVP.js → YWPGT45R.js} +2 -2
- package/dist/calcite/{VA6SEF3H.js → Z3WBJNDF.js} +2 -2
- package/dist/calcite/{NIUBMFXO.js → ZCHAQW3G.js} +2 -2
- package/dist/calcite/{VYSYUSUT.js → ZF2ZEIKQ.js} +2 -2
- package/dist/calcite/{7VZFYJY5.js → ZH227SHY.js} +1 -1
- package/dist/calcite/{AKXBPGJ4.js → ZLEGSWFK.js} +2 -2
- package/dist/calcite/{KSFXKRML.js → ZODZIFFI.js} +1 -1
- package/dist/calcite/{A6H6UTO7.js → ZWGESIVN.js} +2 -2
- package/dist/calcite/{ZNMXPSOQ.js → ZY36HG44.js} +2 -2
- package/dist/calcite/{VCGYS6AC.js → ZZN6YEA4.js} +1 -1
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/chunks/ExpandToggle.js +1 -1
- package/dist/chunks/FloatingArrow.js +1 -1
- package/dist/chunks/Heading.js +1 -1
- package/dist/chunks/Validation.js +1 -1
- package/dist/chunks/_commonjsHelpers.js +1 -1
- package/dist/chunks/array.js +1 -1
- package/dist/chunks/component.js +1 -1
- package/dist/chunks/core.js +1 -1
- package/dist/chunks/date.js +1 -1
- package/dist/chunks/dom.js +1 -1
- package/dist/chunks/dynamicClasses.js +1 -1
- package/dist/chunks/filter.js +1 -1
- package/dist/chunks/floating-ui.js +1 -1
- package/dist/chunks/focusTrapComponent.js +1 -1
- package/dist/chunks/form.js +1 -1
- package/dist/chunks/global.js +1 -1
- package/dist/chunks/guid.js +1 -1
- package/dist/chunks/input.js +1 -1
- package/dist/chunks/interact.min.js +1 -1
- package/dist/chunks/interactive.js +1 -1
- package/dist/chunks/key.js +1 -1
- package/dist/chunks/label.js +1 -1
- package/dist/chunks/loadable.js +1 -1
- package/dist/chunks/locale.js +1 -1
- package/dist/chunks/logger.js +1 -1
- package/dist/chunks/math.js +1 -1
- package/dist/chunks/observers.js +1 -1
- package/dist/chunks/openCloseComponent.js +1 -1
- package/dist/chunks/resources.js +1 -1
- package/dist/chunks/resources2.js +1 -1
- package/dist/chunks/resources3.js +1 -1
- package/dist/chunks/resources4.js +1 -1
- package/dist/chunks/resources5.js +1 -1
- package/dist/chunks/resources6.js +1 -1
- package/dist/chunks/resources7.js +1 -1
- package/dist/chunks/responsive.js +1 -1
- package/dist/chunks/runtime.js +6 -6
- package/dist/chunks/sortableComponent.js +1 -1
- package/dist/chunks/text.js +1 -1
- package/dist/chunks/time.js +1 -1
- package/dist/chunks/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-autocomplete/customElement.js +1 -1
- package/dist/components/calcite-autocomplete-item/customElement.js +1 -1
- package/dist/components/calcite-autocomplete-item-group/customElement.js +1 -1
- package/dist/components/calcite-avatar/customElement.js +1 -1
- package/dist/components/calcite-block/customElement.js +1 -1
- package/dist/components/calcite-block-section/customElement.js +1 -1
- package/dist/components/calcite-button/customElement.js +1 -1
- package/dist/components/calcite-card/customElement.js +1 -1
- package/dist/components/calcite-card-group/customElement.js +1 -1
- package/dist/components/calcite-carousel/customElement.js +1 -1
- package/dist/components/calcite-carousel-item/customElement.js +1 -1
- package/dist/components/calcite-checkbox/customElement.js +1 -1
- package/dist/components/calcite-chip/customElement.js +1 -1
- package/dist/components/calcite-chip-group/customElement.js +1 -1
- package/dist/components/calcite-color-picker/customElement.js +1 -1
- package/dist/components/calcite-color-picker-hex-input/customElement.js +1 -1
- package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
- package/dist/components/calcite-combobox/customElement.js +1 -1
- package/dist/components/calcite-combobox-item/customElement.js +1 -1
- package/dist/components/calcite-combobox-item-group/customElement.js +1 -1
- package/dist/components/calcite-date-picker/customElement.js +1 -1
- package/dist/components/calcite-date-picker-day/customElement.js +1 -1
- package/dist/components/calcite-date-picker-month/customElement.js +1 -1
- package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
- package/dist/components/calcite-dialog/customElement.js +1 -1
- package/dist/components/calcite-dropdown/customElement.js +1 -1
- package/dist/components/calcite-dropdown-group/customElement.js +1 -1
- package/dist/components/calcite-dropdown-item/customElement.js +1 -1
- package/dist/components/calcite-fab/customElement.js +1 -1
- package/dist/components/calcite-filter/customElement.js +1 -1
- package/dist/components/calcite-flow/customElement.js +1 -1
- package/dist/components/calcite-flow-item/customElement.js +1 -1
- package/dist/components/calcite-graph/customElement.js +50 -46
- package/dist/components/calcite-graph/resources.d.ts +5 -0
- 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.js +1 -1
- 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/custom-theme/graph.d.ts +4 -0
- package/dist/docs/api.json +7 -1
- package/dist/docs/docs.json +8 -2
- package/dist/docs/vscode.css-custom-data.json +4 -0
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +6 -2
- package/dist/extras/vscode-data.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +2 -2
- package/dist/calcite/VHIVTMYL.js +0 -22
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{b as e}from"./
|
|
3
|
+
v3.0.0-next.112 */
|
|
4
|
+
import{b as e}from"./DQGJRYH6.js";import"./4LWJLOZJ.js";var _={name:"es-mx",weekdays:"domingo_lunes_martes_mi\xE9rcoles_jueves_viernes_s\xE1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xE9._jue._vie._s\xE1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xE1".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xEDa",dd:"%d d\xEDas",M:"un mes",MM:"%d meses",y:"un a\xF1o",yy:"%d a\xF1os"},ordinal:function(o){return o+"\xBA"},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"}};e.locale(_,null,!0);var a=_;export{a as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{b as e}from"./
|
|
3
|
+
v3.0.0-next.112 */
|
|
4
|
+
import{b as e}from"./DQGJRYH6.js";import"./4LWJLOZJ.js";var _={name:"nb",weekdays:"s\xF8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xF8rdag".split("_"),weekdaysShort:"s\xF8._ma._ti._on._to._fr._l\xF8.".split("_"),weekdaysMin:"s\xF8_ma_ti_on_to_fr_l\xF8".split("_"),months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),ordinal:function(t){return t+"."},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en m\xE5ned",MM:"%d m\xE5neder",y:"ett \xE5r",yy:"%d \xE5r"}};e.locale(_,null,!0);var m=_;export{m as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{b as $}from"./
|
|
3
|
+
v3.0.0-next.112 */
|
|
4
|
+
import{b as $}from"./KA42G6AX.js";import{b as p,f as b,g as x,k as S,l as D}from"./P5XNZSLG.js";var L=5;function d({locale:e,numberingSystem:n,includeSeconds:r=!0,fractionalSecondDigits:t,hour12:o}){let i={hour:"2-digit",minute:"2-digit",timeZone:"UTC",numberingSystem:x(n)};return typeof o=="boolean"&&(i.hour12=o),r&&(i.second="2-digit",t&&(i.fractionalSecondDigits=t)),D(e,i)}function h(e,n){if(e==null)return;let r=e.toString(),t=$(e);if(e<1&&t>0&&t<4){let o=r.replace("0.","");return!n||o.length===n?o:o.length<n?o.padEnd(n,"0"):o}if(e>=0&&e<10)return r.padStart(2,"0");if(e>=10)return r}function k(e){if(!g(e))return null;let{hour:n,minute:r,second:t,fractionalSecond:o}=y(e),i=`${h(parseInt(n))}:${h(parseInt(r))}`;return t&&(i+=`:${h(parseInt(t))}`,o&&(i+=`.${o}`)),i}function z(e){return parseInt((parseFloat(`0.${e}`)/.001).toFixed(3))}function A(e){let n={locale:e};e==="mk"?n.hour12=!1:e.toLowerCase()==="es-mx"&&(n.hour12=!0);let r=d(n).formatToParts(new Date(Date.UTC(0,0,0,0,0,0)));return s("meridiem",r)?"12":"24"}function v(e){return A(e)==="24"?"12":"24"}function M(e,n,r="latn"){let t=d({hour12:!0,locale:e,numberingSystem:r}),o=6,i=18,l=new Date(Date.UTC(0,0,0,n==="AM"?o:i,0)),c=t.formatToParts(l);return s("meridiem",c)}function T(e,n){return S.numberFormatOptions={locale:e,numberingSystem:n},S.localize("1.1").split("")[1]}function H(e,n,r="latn"){let t=d({locale:n,numberingSystem:r}).formatToParts(new Date(Date.UTC(0,0,0,0,0,0)));return s(`${e}Suffix`,t)}function s(e,n){if(!e||!n)return null;if(e==="hourSuffix"){let r=n.indexOf(n.find(({type:i})=>i==="hour")),t=n.indexOf(n.find(({type:i})=>i==="minute")),o=n[r+1];return o&&o.type==="literal"&&t-r===2&&o.value?.trim()||null}if(e==="minuteSuffix"){let r=n.indexOf(n.find(({type:i})=>i==="minute")),t=n.indexOf(n.find(({type:i})=>i==="second")),o=n[r+1];return o&&o.type==="literal"&&t-r===2&&o.value?.trim()||null}if(e==="secondSuffix"){let r=n.indexOf(n.find(({type:o})=>o==="second")),t=n[r+1];return t&&t.type==="literal"&&t.value?.trim()||null}return n.find(({type:r})=>e=="meridiem"?r==="dayPeriod":r===e)?.value||null}function E(e){if(!p(e))return null;let n=parseInt(e);return n>=0&&n<=11?"AM":"PM"}function W(e){let n=M(e,"AM"),r=M(e,"PM"),t=w(e),o=P({hour12:!0,value:"00:00:00",locale:e,numberingSystem:"latn"}),i=o[t===0?1:t-1].type==="hour"||o[t-1]?.type==="second"?"":" ";return e!=="no"&&n===n.toLocaleLowerCase(e)&&r===r.toLocaleLowerCase(e)?t===0?`a${i}`:`${i}a`:t===0?`A${i}`:`${i}A`}function w(e){return P({hour12:!0,value:"00:00:00",locale:e,numberingSystem:"latn"}).findIndex(n=>n.type==="dayPeriod")}function j(e,n){return e===v(n)}function g(e){if(!e||e.startsWith(":")||e.endsWith(":"))return!1;let n=e.split(":");if(!(n.length>1&&n.length<4))return!1;let[r,t,o]=n,i=parseInt(n[0]),l=parseInt(n[1]),c=parseInt(n[2]),f=p(r)&&i>=0&&i<24,u=p(t)&&l>=0&&l<60,m=p(o)&&c>=0&&c<60;if(f&&u&&!o||f&&u&&m)return!0}function C(e,n){if(n==="meridiem")return e==="AM"||e==="PM";if(!p(e))return!1;let r=Number(e);return n==="hour"?r>=0&&r<24:r>=0&&r<60}function O({value:e,part:n,locale:r,numberingSystem:t="latn",hour12:o}){if(n==="fractionalSecond"){let f=T(r,t),u=null;if(e){S.numberFormatOptions={locale:r,numberingSystem:t};let m=S.localize("0");parseInt(e)===0?u="".padStart(e.length,m):(u=S.localize(`0.${e}`).replace(`${m}${f}`,""),u.length<e.length&&(u=u.padEnd(e.length,m)))}return u}if(!C(e,n))return;let i=parseInt(e),l=new Date(Date.UTC(0,0,0,n==="hour"?i:n==="meridiem"?e==="AM"?0:12:0,n==="minute"?i:0,n==="second"?i:0));if(!l)return;let c=d({hour12:o,locale:r,numberingSystem:t}).formatToParts(l);return s(n,c)}function Z({value:e,locale:n,numberingSystem:r="latn",includeSeconds:t=!0,fractionalSecondDigits:o,hour12:i}){if(!g(e))return null;let{hour:l,minute:c,second:f="0",fractionalSecond:u}=y(e),m=new Date(Date.UTC(0,0,0,parseInt(l),parseInt(c),parseInt(f),u&&z(u))),a=d({locale:n,numberingSystem:r,includeSeconds:t,fractionalSecondDigits:o,hour12:i}).format(m)||null;if(a&&n==="bg"&&a.includes(" \u0447.")&&(a=a.replaceAll(" \u0447.","")),n==="bs"||n==="mk"){let I=b.get(n);a.includes("AM")?a=a.replaceAll("AM",I.am):a.includes("PM")&&(a=a.replaceAll("PM",I.pm)),a.indexOf(".")!==a.length-1&&(a=a.replace(".",","))}return a}function q({value:e,locale:n,numberingSystem:r="latn",hour12:t}){if(!g(e))return null;let{hour:o,minute:i,second:l="0",fractionalSecond:c}=y(e),f=new Date(Date.UTC(0,0,0,parseInt(o),parseInt(i),parseInt(l)));if(f){let u=d({locale:n,numberingSystem:r,hour12:t}).formatToParts(f),m=s("meridiem",u);if(t&&(n==="bs"||n==="mk")){let a=b.get(n);m=f.getHours()>11?a.am:a.pm}return{localizedHour:s("hour",u),localizedHourSuffix:s("hourSuffix",u),localizedMinute:s("minute",u),localizedMinuteSuffix:s("minuteSuffix",u),localizedSecond:s("second",u),localizedDecimalSeparator:T(n,r),localizedFractionalSecond:O({value:c,part:"fractionalSecond",locale:n,numberingSystem:r}),localizedSecondSuffix:s("secondSuffix",u),localizedMeridiem:m}}return null}function P({hour12:e,value:n,locale:r,numberingSystem:t}){if(!g(n))return null;let{hour:o,minute:i,second:l="0"}=y(n),c=new Date(Date.UTC(0,0,0,parseInt(o),parseInt(i),parseInt(l)));return c?d({hour12:e,locale:r,numberingSystem:t}).formatToParts(c):null}function y(e){if(g(e)){let[n,r,t]=e.split(":"),o=t,i=null;return t?.includes(".")&&([o,i]=t.split(".")),{fractionalSecond:i,hour:n,minute:r,second:o}}return{fractionalSecond:null,hour:null,minute:null,second:null}}function B(e,n=!0){if(!g(e))return"";let{hour:r,minute:t,second:o,fractionalSecond:i}=y(e),l=`${h(parseInt(r))}:${h(parseInt(t))}`;return n&&(l+=`:${h(parseInt(n&&o||"0"))}`,i&&(l+=`.${i}`)),l}export{L as a,h as b,k as c,A as d,v as e,T as f,H as g,E as h,W as i,w as j,j as k,g as l,O as m,Z as n,q as o,y as p,B as q};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
3
|
+
v3.0.0-next.112 */
|
|
4
4
|
var a=class{constructor(){this._formatterCache=new Map,this._commonDateTimeFormatterOptions={year:"numeric",month:"2-digit",day:"2-digit",timeZoneName:"shortOffset"}}get name(){return"native"}create(t){return new Date(t)}increase(t){return new Date(t.getTime()+864e5)}formatToIsoDateString(t){let e=t.getFullYear(),n=t.getMonth()+1,r=t.getDate();return`${e}-${n.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}`}isoToTimeZone(t,e){let n=this._toDate(t),o=this._getFormatter(e).formatToParts(n),[i]=o.filter(({type:s})=>s==="timeZoneName").map(({value:s})=>s),m=this._getTimeZoneOffsetInMins(i),c=n.getMinutes()-(n.getTimezoneOffset()-m);return n.setMinutes(c),n}same(t,e){return t.getTime()===e.getTime()}_toDate(t){return new Date(t)}_getFormatter(t){t==="Factory"&&(t="Etc/GMT");let e=this._formatterCache.get(t);return e||(e=new Intl.DateTimeFormat("en-US",{timeZone:t,...this._commonDateTimeFormatterOptions}),this._formatterCache.set(t,e)),e}_getTimeZoneOffsetInMins(t){let[e,...n]=t.slice(3),[r,o]=n.join("").split(":");return(e==="+"?1:-1)*(Number(r)*60+Number(o||0))}};export{a as DateEngine};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{a as s}from"./
|
|
3
|
+
v3.0.0-next.112 */
|
|
4
|
+
import{a as s}from"./4QM3GEL3.js";import{I as i,d as e,e as t,v as r}from"./MYU6UPOF.js";var a=e`:host{box-sizing:border-box;display:block;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-color-text-2)}::slotted(calcite-tip){margin:0;border-style:none;max-inline-size:var(--calcite-tip-max-width)}:host([hidden]){display:none}[hidden]{display:none}`,o=class extends r{static{this.properties={groupTitle:1}}static{this.styles=a}load(){s.deprecated("component",{name:"tip-group",removalVersion:4,suggested:["carousel","carousel-item"]})}render(){return t`<slot></slot>`}};i("calcite-tip-group",o);export{o as TipGroup};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
3
|
+
v3.0.0-next.112 */
|
|
4
4
|
function e(r,$,t){return $?`${r}-${$}`:t?`${r}-${t}`:`${r}-m`}export{e as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
3
|
+
v3.0.0-next.112 */
|
|
4
4
|
function c(){return typeof window<"u"}function s(n){return p(n)?(n.nodeName||"").toLowerCase():"#document"}function i(n){var t;return(n==null||(t=n.ownerDocument)==null?void 0:t.defaultView)||window}function E(n){var t;return(t=(p(n)?n.ownerDocument:n.document)||window.document)==null?void 0:t.documentElement}function p(n){return c()?n instanceof Node||n instanceof i(n).Node:!1}function m(n){return c()?n instanceof Element||n instanceof i(n).Element:!1}function w(n){return c()?n instanceof HTMLElement||n instanceof i(n).HTMLElement:!1}function a(n){return!c()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof i(n).ShadowRoot}function y(n){let{overflow:t,overflowX:e,overflowY:o,display:r}=b(n);return/auto|scroll|overlay|hidden|clip/.test(t+o+e)&&!["inline","contents"].includes(r)}function D(n){return["table","td","th"].includes(s(n))}function N(n){return[":popover-open",":modal"].some(t=>{try{return n.matches(t)}catch{return!1}})}function T(n){let t=L(),e=m(n)?b(n):n;return["transform","translate","scale","rotate","perspective"].some(o=>e[o]?e[o]!=="none":!1)||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(e.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(e.contain||"").includes(o))}function k(n){let t=u(n);for(;w(t)&&!g(t);){if(T(t))return t;if(N(t))return null;t=u(t)}return null}function L(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function g(n){return["html","body","#document"].includes(s(n))}function b(n){return i(n).getComputedStyle(n)}function C(n){return m(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function u(n){if(s(n)==="html")return n;let t=n.assignedSlot||n.parentNode||a(n)&&n.host||E(n);return a(t)?t.host:t}function h(n){let t=u(n);return g(t)?n.ownerDocument?n.ownerDocument.body:n.body:w(t)&&y(t)?t:h(t)}function d(n,t,e){var o;t===void 0&&(t=[]),e===void 0&&(e=!0);let r=h(n),S=r===((o=n.ownerDocument)==null?void 0:o.body),l=i(r);if(S){let f=v(l);return t.concat(l,l.visualViewport||[],y(r)?r:[],f&&e?d(f):[])}return t.concat(r,d(r,[],e))}function v(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}export{s as a,i as b,E as c,m as d,w as e,y as f,D as g,N as h,T as i,k as j,L as k,g as l,b as m,C as n,u as o,h as p,d as q,v as r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{a as y}from"./S5WUGWLI.js";import{a as P,b as C,c as w,d as j}from"./NK4ED4IH.js";import{a as E}from"./4IWRJJPT.js";import{a as F}from"./ROTKUEC4.js";import"./KRO7CG2Q.js";import{a as U}from"./6PBZNCIY.js";import{a as M}from"./JCZIZMKQ.js";import{a as T}from"./ALGCYGFE.js";import{a as L}from"./XODNGXTR.js";import{b as k}from"./P5ZVYEQW.js";import{D as p,b as A,e as g,n as R}from"./WHQERKO3.js";import{b as V}from"./G63OZT6W.js";import"./2BGOXXHV.js";import{B as $,I as H,d as D,e as S,u as z,v as I,w as d,z as B}from"./5JAMHCQS.js";var l={assistiveText:"assistive-text",scrim:"scrim",container:"container",containerOpen:"container--open",content:"content",contentContainer:"content-container",containerEmbedded:"container--embedded",resizeHandle:"resize-handle",resizeHandleBar:"resize-handle-bar",height:"height"},_=10,K=25,q=D`:host{position:absolute;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;visibility:hidden!important;--calcite-sheet-scrim-background-internal: rgba(0, 0, 0, .85);--calcite-scrim-shadow-block-start-internal: 0 4px 8px -1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-block-end-internal: 0 -4px 8px -1px rgba(0, 0, 0, .08), 0 -2px 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-inline-start-internal: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-inline-end-internal: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04)}.calcite--rtl{--calcite-scrim-shadow-inline-start-internal: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-inline-end-internal: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04)}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.container{visibility:hidden;position:fixed;z-index:var(--calcite-z-index-overlay);box-sizing:border-box;display:flex;color:var(--calcite-color-text-2);opacity:0;transition:visibility 0ms linear var(--calcite-internal-animation-timing-medium),opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88)}:host([position=inline-start]) .container{justify-content:flex-start;inset-block:0;inset-inline:0 auto;--calcite-sheet-hidden-position-internal: translate3d(-1rem, 0, 0)}:host([position=inline-end]) .container{justify-content:flex-end;inset-block:0;inset-inline:auto 0;--calcite-sheet-hidden-position-internal: translate3d(1rem, 0, 0)}:host([position=block-start]) .container{align-items:flex-start;inset-block:0 auto;inset-inline:0;--calcite-sheet-hidden-position-internal: translate3d(0, -1rem, 0)}:host([position=block-end]) .container{align-items:flex-end;inset-block:auto 0;inset-inline:0;--calcite-sheet-hidden-position-internal: translate3d(0, 1rem, 0)}:host([display-mode=float]) .content{--tw-shadow: 0 2px 12px -4px rgba(0, 0, 0, .2), 0 2px 4px -2px rgba(0, 0, 0, .16);--tw-shadow-colored: 0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:host([display-mode=overlay][position=inline-start]) .container{box-shadow:var(--calcite-scrim-shadow-inline-start-internal)}:host([display-mode=overlay][position=inline-end]) .container{box-shadow:var(--calcite-scrim-shadow-inline-end-internal)}:host([display-mode=overlay][position=block-start]) .container{box-shadow:var(--calcite-scrim-shadow-block-start-internal)}:host([display-mode=overlay][position=block-end]) .container{box-shadow:var(--calcite-scrim-shadow-block-end-internal)}:host([position^=inline]) .content{inline-size:var(--calcite-sheet-width-internal);max-inline-size:var(--calcite-sheet-max-width-internal);min-inline-size:var(--calcite-sheet-min-width-internal)}:host([position^=block]) .content{block-size:var(--calcite-sheet-height-internal);max-block-size:var(--calcite-sheet-max-height-internal);min-block-size:var(--calcite-sheet-min-height-internal)}:host([position^=inline]) .width-s{--calcite-sheet-width-internal: var(--calcite-sheet-width, 15vw);--calcite-sheet-max-width-internal: var(--calcite-sheet-max-width, 360px);--calcite-sheet-min-width-internal: var(--calcite-sheet-min-width, 260px)}:host([position^=inline]) .width-m{--calcite-sheet-width-internal: var(--calcite-sheet-width, 25vw);--calcite-sheet-max-width-internal: var(--calcite-sheet-max-width, 420px);--calcite-sheet-min-width-internal: var(--calcite-sheet-min-width, 300px)}:host([position^=inline]) .width-l{--calcite-sheet-width-internal: var(--calcite-sheet-width, 45vw);--calcite-sheet-max-width-internal: var(--calcite-sheet-max-width, 680px);--calcite-sheet-min-width-internal: var(--calcite-sheet-min-width, 340px)}:host([position^=block]) .height-s{--calcite-sheet-min-height-internal: var(--calcite-sheet-min-height, 160px);--calcite-sheet-height-internal: var(--calcite-sheet-height, 30vh);--calcite-sheet-max-height-internal: var(--calcite-sheet-max-height, 30vh)}:host([position^=block]) .height-m{--calcite-sheet-min-height-internal: var(--calcite-sheet-min-height, 200px);--calcite-sheet-height-internal: var(--calcite-sheet-height, 45vh);--calcite-sheet-max-height-internal: var(--calcite-sheet-max-height, 50vh)}:host([position^=block]) .height-l{--calcite-sheet-min-height-internal: var(--calcite-sheet-min-height, 240px);--calcite-sheet-height-internal: var(--calcite-sheet-height, 60vh);--calcite-sheet-max-height-internal: var(--calcite-sheet-max-height, 70vh)}.scrim{--calcite-scrim-background: var(--calcite-sheet-scrim-background, var(--calcite-sheet-scrim-background-internal));position:fixed;inset:0;display:flex;overflow:hidden}:host([opened]){visibility:visible!important}.content{position:relative;z-index:var(--calcite-z-index-modal);box-sizing:border-box;display:flex;max-inline-size:100%;padding:0;background-color:var(--calcite-color-foreground-1);max-block-size:100%;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88),visibility 0ms linear var(--calcite-internal-animation-timing-medium),opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88);transform:var(--calcite-sheet-hidden-position-internal)}.content-container{position:relative;display:flex;max-block-size:100%;max-inline-size:100%;flex:1 1 0%;overflow:hidden}.container--open .content{transform:translateZ(0)}:host([display-mode=float]) .content,:host([display-mode=float]) .container,:host([display-mode=float]) .content-container{border-radius:.25rem}:host([display-mode=float]) .container{padding:.75rem}.container--open{visibility:visible;opacity:1;transition-delay:0ms}.container--open .content{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88),visibility 0ms linear,opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88),max-inline-size var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88),max-block-size var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88);transition-delay:0ms}:host([position=inline-start]) .content,:host([position=inline-end]) .content{block-size:100%}:host([position=inline-start]) .content{flex-direction:row}:host([position=inline-end]) .content{flex-direction:row-reverse}:host([position=block-start]) .content,:host([position=block-end]) .content{inline-size:100%}:host([position=block-start]) .content{flex-direction:column}:host([position=block-end]) .content{flex-direction:column-reverse}:host([resizable][position=inline-start]) .content{padding-inline-end:var(--calcite-size-fixed-sm-plus)}:host([resizable][position=inline-end]) .content{padding-inline-start:var(--calcite-size-fixed-sm-plus)}:host([resizable][position=block-start]) .content{padding-block-end:var(--calcite-size-fixed-sm-plus)}:host([resizable][position=block-end]) .content{padding-block-start:var(--calcite-size-fixed-sm-plus)}.resize-handle{position:absolute;box-sizing:border-box;display:flex;-webkit-user-select:none;user-select:none;align-items:center;justify-content:center;outline:2px solid transparent;outline-offset:2px;--calcite-internal-sheet-resize-handle-offset: calc( (var(--calcite-size-fixed-xxl) - var(--calcite-size-fixed-sm-plus)) / 2 * -1 );z-index:var(--calcite-z-index-overlay)}.resize-handle:active .resize-handle-bar,.resize-handle:hover .resize-handle-bar{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1)}.resize-handle-bar{pointer-events:none;display:flex;align-items:center;justify-content:center;background-color:var(--calcite-color-background);color:var(--calcite-color-border-input)}.resize-handle:focus .resize-handle-bar{outline-color:transparent;outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)))}:host([position=inline-start]) .resize-handle{inline-size:var(--calcite-size-fixed-xxl);right:var(--calcite-internal-sheet-resize-handle-offset);block-size:100%}:host([position=inline-start]) .resize-handle-bar{block-size:100%;inline-size:var(--calcite-size-fixed-sm-plus);border-inline-start:1px solid var(--calcite-color-border-3)}:host([position=inline-start]):host([display-mode=float]) .resize-handle-bar{border-start-end-radius:.25rem;border-end-end-radius:.25rem}:host([position=inline-end]) .resize-handle{inline-size:var(--calcite-size-fixed-xxl);left:var(--calcite-internal-sheet-resize-handle-offset);block-size:100%}:host([position=inline-end]) .resize-handle-bar{block-size:100%;inline-size:var(--calcite-size-fixed-sm-plus);border-inline-end:1px solid var(--calcite-color-border-3)}:host([position=inline-end]):host([display-mode=float]) .resize-handle-bar{border-start-start-radius:.25rem;border-end-start-radius:.25rem}:host([position=block-start]) .resize-handle{block-size:var(--calcite-size-fixed-xxl);inline-size:100%;inset-block-end:var(--calcite-internal-sheet-resize-handle-offset)}:host([position=block-start]) .resize-handle-bar{inline-size:100%;block-size:var(--calcite-size-fixed-sm-plus);border-block-start:1px solid var(--calcite-color-border-3)}:host([position=block-start]):host([display-mode=float]) .resize-handle-bar{border-end-end-radius:.25rem;border-end-start-radius:.25rem}:host([position=block-end]) .resize-handle{block-size:var(--calcite-size-fixed-xxl);inline-size:100%;inset-block-start:var(--calcite-internal-sheet-resize-handle-offset)}:host([position=block-end]) .resize-handle-bar{inline-size:100%;block-size:var(--calcite-size-fixed-sm-plus);border-block-end:1px solid var(--calcite-color-border-3)}:host([position=block-end]):host([display-mode=float]) .resize-handle-bar{border-start-start-radius:.25rem;border-start-end-radius:.25rem}:host([position]) .container--embedded{pointer-events:auto;position:absolute;inline-size:100%;max-inline-size:100%;min-inline-size:100%;block-size:100%;max-block-size:100%;min-block-size:100%}:host([position]) .container--embedded calcite-scrim{position:absolute}:host([hidden]){display:none}[hidden]{display:none}`,O=class extends I{constructor(){super(),this.ignoreOpenChange=!1,this.messages=L(),this.mutationObserver=T("mutation",()=>this.handleMutationObserver()),this._open=!1,this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteSheetOpen",this.openEnd)},this.openProp="opened",this.transitionProp="opacity",this.resizeValues={inlineSize:0,blockSize:0,minInlineSize:0,minBlockSize:0,maxInlineSize:0,maxBlockSize:0},this.displayMode="overlay",this.embedded=!1,this.escapeDisabled=!1,this.focusTrapDisabled=!1,this.heightScale="m",this.opened=!1,this.outsideCloseDisabled=!1,this.position="inline-start",this.resizable=!1,this.widthScale="m",this.calciteSheetBeforeClose=z({cancelable:!1}),this.calciteSheetBeforeOpen=z({cancelable:!1}),this.calciteSheetClose=z({cancelable:!1}),this.calciteSheetOpen=z({cancelable:!1}),this.keyDownHandler=e=>{let{defaultPrevented:t,key:s}=e;!t&&!this.escapeDisabled&&this.focusTrapDisabled&&this.open&&s==="Escape"&&(e.preventDefault(),this.open=!1)},this.listen("keydown",this.keyDownHandler)}static{this.properties={resizeValues:16,beforeClose:0,displayMode:3,embedded:5,escapeDisabled:7,focusTrapDisabled:7,heightScale:3,height:3,label:1,messageOverrides:0,open:7,opened:7,outsideCloseDisabled:7,position:3,resizable:7,widthScale:3,width:3}}static{this.styles=q}get open(){return this._open}set open(e){let t=this._open;e!==t&&(this._open=e,this.toggleSheet(e))}async setFocus(){await V(this),R(this.el)}async updateFocusTrapElements(){j(this)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),P(this,{focusTrapOptions:{clickOutsideDeactivates:!1,escapeDeactivates:e=>(!e.defaultPrevented&&!this.escapeDisabled&&(this.open=!1,e.preventDefault()),!1)}}),this.setupInteractions()}load(){this.open&&this.openSheet()}willUpdate(e){e.has("focusTrapDisabled")&&(this.hasUpdated||this.focusTrapDisabled!==!1)&&this.handleFocusTrapDisabled(this.focusTrapDisabled),e.has("opened")&&(this.hasUpdated||this.opened!==!1)&&U(this),(e.has("open")&&(this.hasUpdated||this.open!==!1)||e.has("position")&&(this.hasUpdated||this.position!=="inline-start")||e.has("resizable")&&(this.hasUpdated||this.resizable!==!1))&&this.setupInteractions()}loaded(){}disconnectedCallback(){super.disconnectedCallback(),this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),w(this),this.embedded=!1,this.cleanupInteractions()}handleFocusTrapDisabled(e){this.open&&(e?w(this):C(this))}toggleSheet(e){this.ignoreOpenChange||(e?this.openSheet():this.closeSheet())}getResizeIcon(){let{position:e}=this;return e==="block-start"||e==="block-end"?"drag-resize-vertical":"drag-resize-horizontal"}getContentElDOMRect(){return this.contentEl.getBoundingClientRect()}handleKeyDown(e){let{key:t,defaultPrevented:s,shiftKey:n}=e,{position:i,resizable:o,contentEl:m,el:r,resizeValues:{maxBlockSize:x,maxInlineSize:u,minBlockSize:v,minInlineSize:f}}=this,c=[...i==="block-end"||i==="block-start"?["ArrowUp","ArrowDown"]:["ArrowLeft","ArrowRight"],"Home","End"];if(!o||!m||s||!c.includes(t))return;let h=this.getContentElDOMRect(),b=g(r)==="rtl"?-1:1,a=n?K:_;switch(t){case"ArrowUp":this.updateSize({size:h.height+(i==="block-end"?a:-a),type:"blockSize"}),e.preventDefault();break;case"ArrowDown":this.updateSize({size:h.height+(i==="block-end"?-a:a),type:"blockSize"}),e.preventDefault();break;case"ArrowLeft":this.updateSize({size:h.width+(i==="inline-end"?a:-a)*b,type:"inlineSize"}),e.preventDefault();break;case"ArrowRight":this.updateSize({size:h.width+(i==="inline-end"?-a:a)*b,type:"inlineSize"}),e.preventDefault();break;case"Home":this.updateSize({size:i==="block-start"||i==="block-end"?v:f,type:i==="block-start"||i==="block-end"?"blockSize":"inlineSize"});break;case"End":this.updateSize({size:i==="block-start"||i==="block-end"?x:u,type:i==="block-start"||i==="block-end"?"blockSize":"inlineSize"});break}}updateSize({type:e,size:t}){let{contentEl:s,resizeValues:n}=this;if(!s)return;let i=e==="blockSize"?"minBlockSize":"minInlineSize",o=e==="blockSize"?"maxBlockSize":"maxInlineSize",m=n[i]&&n[o]?F(t,n[i],n[o]):t,r=Math.round(m);this.resizeValues={...n,[e]:r},s.style[e]=t!==null?`${r}px`:null}cleanupInteractions(){this.interaction?.unset(),this.updateSize({size:null,type:"inlineSize"}),this.updateSize({size:null,type:"blockSize"})}setupInteractions(){this.cleanupInteractions();let{el:e,contentEl:t,resizable:s,position:n,open:i,resizeHandleEl:o}=this;if(!t||!i||!s||!o)return;let{inlineSize:m,minInlineSize:r,blockSize:x,minBlockSize:u,maxInlineSize:v,maxBlockSize:f}=window.getComputedStyle(t),c={inlineSize:p(m)?parseInt(m):0,blockSize:p(x)?parseInt(x):0,minInlineSize:p(r)?parseInt(r):0,minBlockSize:p(u)?parseInt(u):0,maxInlineSize:p(v)?parseInt(v):window.innerWidth,maxBlockSize:p(f)?parseInt(f):window.innerHeight};this.resizeValues=c;let h=g(e)==="rtl";this.interaction=y(t,{context:e.ownerDocument}).resizable({edges:{top:n==="block-end"?o:!1,right:n===(h?"inline-end":"inline-start")?o:!1,bottom:n==="block-start"?o:!1,left:n===(h?"inline-start":"inline-end")?o:!1},modifiers:[y.modifiers.restrictSize({min:{width:c.minInlineSize,height:c.minBlockSize},max:{width:c.maxInlineSize,height:c.maxBlockSize}})],listeners:{move:({rect:b})=>{let a=n==="block-start"||n==="block-end";this.updateSize({size:a?b.height:b.width,type:a?"blockSize":"inlineSize"})}}})}onBeforeOpen(){this.calciteSheetBeforeOpen.emit()}onOpen(){this.calciteSheetOpen.emit(),C(this)}onBeforeClose(){this.calciteSheetBeforeClose.emit()}onClose(){this.calciteSheetClose.emit(),w(this)}setResizeHandleEl(e){this.resizeHandleEl=e,this.setupInteractions()}setContentEl(e){this.contentEl=e,this.contentId=A(e)}setTransitionEl(e){this.transitionEl=e}async openSheet(){await this.componentOnReady(),this.el.addEventListener("calciteSheetOpen",this.openEnd),this.opened=!0,this.embedded||(this.initialOverflowCSS=document.documentElement.style.overflow,document.documentElement.style.setProperty("overflow","hidden"))}handleOutsideClose(){this.outsideCloseDisabled||(this.open=!1)}async closeSheet(){if(this.beforeClose)try{await this.beforeClose(this.el)}catch{requestAnimationFrame(()=>{this.ignoreOpenChange=!0,this.open=!0,this.ignoreOpenChange=!1});return}this.opened=!1,this.removeOverflowHiddenClass()}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",this.initialOverflowCSS)}handleMutationObserver(){this.updateFocusTrapElements()}render(){let{resizable:e,position:t,resizeValues:s}=this,n=g(this.el),i=t==="block-start"||t==="block-end";return B(this.el,"aria-describedby",this.contentId),this.el.ariaLabel=this.label,this.el.ariaModal="true",this.el.role="dialog",S`<div class=${d({[l.container]:!0,[l.containerOpen]:this.opened,[l.containerEmbedded]:this.embedded,[$.rtl]:n==="rtl",[E("width",this.width,this.widthScale)]:!!(this.width||this.widthScale),[E("height",this.height,this.heightScale)]:!!(this.height||this.heightScale)})} ${k(this.setTransitionEl)}><calcite-scrim class=${d(l.scrim)} @click=${this.handleOutsideClose}></calcite-scrim><div class=${d(l.content)} ${k(this.setContentEl)}><div class=${d(l.contentContainer)}><slot></slot></div>${e?M("resize-handle",S`<div .ariaLabel=${this.messages.resizeEnabled} .ariaOrientation=${i?"vertical":"horizontal"} .ariaValueMax=${i?s.maxBlockSize:s.maxInlineSize} .ariaValueMin=${i?s.minBlockSize:s.minInlineSize} .ariaValueNow=${i?s.blockSize:s.inlineSize} class=${d(l.resizeHandle)} @keydown=${this.handleKeyDown} role=separator tabindex=0 touch-action=none ${k(this.setResizeHandleEl)}><div class=${d(l.resizeHandleBar)}><calcite-icon .icon=${this.getResizeIcon()} scale=s></calcite-icon></div></div>`):null}</div></div>`}};H("calcite-sheet",O);export{O as Sheet};
|
|
3
|
+
v3.0.0-next.112 */
|
|
4
|
+
import{a as y}from"./SDTYLBCL.js";import{a as P,b as C,c as w,d as j}from"./V4BC43EQ.js";import{a as E}from"./2XCZ4HJ3.js";import{a as F}from"./KA42G6AX.js";import"./CA2BN6QS.js";import{a as U}from"./RWD6DYHO.js";import{a as M}from"./ESCM7A3P.js";import{a as T}from"./IH2FEA6S.js";import{a as L}from"./RLOAXP7B.js";import{b as k}from"./RXIVLADL.js";import{D as p,b as A,e as g,n as R}from"./FWD7LP7Y.js";import{b as V}from"./BURXKUR3.js";import"./YOAR4AAW.js";import{B as $,I as H,d as D,e as S,u as z,v as I,w as d,z as B}from"./MYU6UPOF.js";var l={assistiveText:"assistive-text",scrim:"scrim",container:"container",containerOpen:"container--open",content:"content",contentContainer:"content-container",containerEmbedded:"container--embedded",resizeHandle:"resize-handle",resizeHandleBar:"resize-handle-bar",height:"height"},_=10,K=25,q=D`:host{position:absolute;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;visibility:hidden!important;--calcite-sheet-scrim-background-internal: rgba(0, 0, 0, .85);--calcite-scrim-shadow-block-start-internal: 0 4px 8px -1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-block-end-internal: 0 -4px 8px -1px rgba(0, 0, 0, .08), 0 -2px 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-inline-start-internal: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-inline-end-internal: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04)}.calcite--rtl{--calcite-scrim-shadow-inline-start-internal: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-inline-end-internal: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04)}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.container{visibility:hidden;position:fixed;z-index:var(--calcite-z-index-overlay);box-sizing:border-box;display:flex;color:var(--calcite-color-text-2);opacity:0;transition:visibility 0ms linear var(--calcite-internal-animation-timing-medium),opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88)}:host([position=inline-start]) .container{justify-content:flex-start;inset-block:0;inset-inline:0 auto;--calcite-sheet-hidden-position-internal: translate3d(-1rem, 0, 0)}:host([position=inline-end]) .container{justify-content:flex-end;inset-block:0;inset-inline:auto 0;--calcite-sheet-hidden-position-internal: translate3d(1rem, 0, 0)}:host([position=block-start]) .container{align-items:flex-start;inset-block:0 auto;inset-inline:0;--calcite-sheet-hidden-position-internal: translate3d(0, -1rem, 0)}:host([position=block-end]) .container{align-items:flex-end;inset-block:auto 0;inset-inline:0;--calcite-sheet-hidden-position-internal: translate3d(0, 1rem, 0)}:host([display-mode=float]) .content{--tw-shadow: 0 2px 12px -4px rgba(0, 0, 0, .2), 0 2px 4px -2px rgba(0, 0, 0, .16);--tw-shadow-colored: 0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:host([display-mode=overlay][position=inline-start]) .container{box-shadow:var(--calcite-scrim-shadow-inline-start-internal)}:host([display-mode=overlay][position=inline-end]) .container{box-shadow:var(--calcite-scrim-shadow-inline-end-internal)}:host([display-mode=overlay][position=block-start]) .container{box-shadow:var(--calcite-scrim-shadow-block-start-internal)}:host([display-mode=overlay][position=block-end]) .container{box-shadow:var(--calcite-scrim-shadow-block-end-internal)}:host([position^=inline]) .content{inline-size:var(--calcite-sheet-width-internal);max-inline-size:var(--calcite-sheet-max-width-internal);min-inline-size:var(--calcite-sheet-min-width-internal)}:host([position^=block]) .content{block-size:var(--calcite-sheet-height-internal);max-block-size:var(--calcite-sheet-max-height-internal);min-block-size:var(--calcite-sheet-min-height-internal)}:host([position^=inline]) .width-s{--calcite-sheet-width-internal: var(--calcite-sheet-width, 15vw);--calcite-sheet-max-width-internal: var(--calcite-sheet-max-width, 360px);--calcite-sheet-min-width-internal: var(--calcite-sheet-min-width, 260px)}:host([position^=inline]) .width-m{--calcite-sheet-width-internal: var(--calcite-sheet-width, 25vw);--calcite-sheet-max-width-internal: var(--calcite-sheet-max-width, 420px);--calcite-sheet-min-width-internal: var(--calcite-sheet-min-width, 300px)}:host([position^=inline]) .width-l{--calcite-sheet-width-internal: var(--calcite-sheet-width, 45vw);--calcite-sheet-max-width-internal: var(--calcite-sheet-max-width, 680px);--calcite-sheet-min-width-internal: var(--calcite-sheet-min-width, 340px)}:host([position^=block]) .height-s{--calcite-sheet-min-height-internal: var(--calcite-sheet-min-height, 160px);--calcite-sheet-height-internal: var(--calcite-sheet-height, 30vh);--calcite-sheet-max-height-internal: var(--calcite-sheet-max-height, 30vh)}:host([position^=block]) .height-m{--calcite-sheet-min-height-internal: var(--calcite-sheet-min-height, 200px);--calcite-sheet-height-internal: var(--calcite-sheet-height, 45vh);--calcite-sheet-max-height-internal: var(--calcite-sheet-max-height, 50vh)}:host([position^=block]) .height-l{--calcite-sheet-min-height-internal: var(--calcite-sheet-min-height, 240px);--calcite-sheet-height-internal: var(--calcite-sheet-height, 60vh);--calcite-sheet-max-height-internal: var(--calcite-sheet-max-height, 70vh)}.scrim{--calcite-scrim-background: var(--calcite-sheet-scrim-background, var(--calcite-sheet-scrim-background-internal));position:fixed;inset:0;display:flex;overflow:hidden}:host([opened]){visibility:visible!important}.content{position:relative;z-index:var(--calcite-z-index-modal);box-sizing:border-box;display:flex;max-inline-size:100%;padding:0;background-color:var(--calcite-color-foreground-1);max-block-size:100%;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88),visibility 0ms linear var(--calcite-internal-animation-timing-medium),opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88);transform:var(--calcite-sheet-hidden-position-internal)}.content-container{position:relative;display:flex;max-block-size:100%;max-inline-size:100%;flex:1 1 0%;overflow:hidden}.container--open .content{transform:translateZ(0)}:host([display-mode=float]) .content,:host([display-mode=float]) .container,:host([display-mode=float]) .content-container{border-radius:.25rem}:host([display-mode=float]) .container{padding:.75rem}.container--open{visibility:visible;opacity:1;transition-delay:0ms}.container--open .content{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88),visibility 0ms linear,opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88),max-inline-size var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88),max-block-size var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88);transition-delay:0ms}:host([position=inline-start]) .content,:host([position=inline-end]) .content{block-size:100%}:host([position=inline-start]) .content{flex-direction:row}:host([position=inline-end]) .content{flex-direction:row-reverse}:host([position=block-start]) .content,:host([position=block-end]) .content{inline-size:100%}:host([position=block-start]) .content{flex-direction:column}:host([position=block-end]) .content{flex-direction:column-reverse}:host([resizable][position=inline-start]) .content{padding-inline-end:var(--calcite-size-fixed-sm-plus)}:host([resizable][position=inline-end]) .content{padding-inline-start:var(--calcite-size-fixed-sm-plus)}:host([resizable][position=block-start]) .content{padding-block-end:var(--calcite-size-fixed-sm-plus)}:host([resizable][position=block-end]) .content{padding-block-start:var(--calcite-size-fixed-sm-plus)}.resize-handle{position:absolute;box-sizing:border-box;display:flex;-webkit-user-select:none;user-select:none;align-items:center;justify-content:center;outline:2px solid transparent;outline-offset:2px;--calcite-internal-sheet-resize-handle-offset: calc( (var(--calcite-size-fixed-xxl) - var(--calcite-size-fixed-sm-plus)) / 2 * -1 );z-index:var(--calcite-z-index-overlay)}.resize-handle:active .resize-handle-bar,.resize-handle:hover .resize-handle-bar{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1)}.resize-handle-bar{pointer-events:none;display:flex;align-items:center;justify-content:center;background-color:var(--calcite-color-background);color:var(--calcite-color-border-input)}.resize-handle:focus .resize-handle-bar{outline-color:transparent;outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)))}:host([position=inline-start]) .resize-handle{inline-size:var(--calcite-size-fixed-xxl);right:var(--calcite-internal-sheet-resize-handle-offset);block-size:100%}:host([position=inline-start]) .resize-handle-bar{block-size:100%;inline-size:var(--calcite-size-fixed-sm-plus);border-inline-start:1px solid var(--calcite-color-border-3)}:host([position=inline-start]):host([display-mode=float]) .resize-handle-bar{border-start-end-radius:.25rem;border-end-end-radius:.25rem}:host([position=inline-end]) .resize-handle{inline-size:var(--calcite-size-fixed-xxl);left:var(--calcite-internal-sheet-resize-handle-offset);block-size:100%}:host([position=inline-end]) .resize-handle-bar{block-size:100%;inline-size:var(--calcite-size-fixed-sm-plus);border-inline-end:1px solid var(--calcite-color-border-3)}:host([position=inline-end]):host([display-mode=float]) .resize-handle-bar{border-start-start-radius:.25rem;border-end-start-radius:.25rem}:host([position=block-start]) .resize-handle{block-size:var(--calcite-size-fixed-xxl);inline-size:100%;inset-block-end:var(--calcite-internal-sheet-resize-handle-offset)}:host([position=block-start]) .resize-handle-bar{inline-size:100%;block-size:var(--calcite-size-fixed-sm-plus);border-block-start:1px solid var(--calcite-color-border-3)}:host([position=block-start]):host([display-mode=float]) .resize-handle-bar{border-end-end-radius:.25rem;border-end-start-radius:.25rem}:host([position=block-end]) .resize-handle{block-size:var(--calcite-size-fixed-xxl);inline-size:100%;inset-block-start:var(--calcite-internal-sheet-resize-handle-offset)}:host([position=block-end]) .resize-handle-bar{inline-size:100%;block-size:var(--calcite-size-fixed-sm-plus);border-block-end:1px solid var(--calcite-color-border-3)}:host([position=block-end]):host([display-mode=float]) .resize-handle-bar{border-start-start-radius:.25rem;border-start-end-radius:.25rem}:host([position]) .container--embedded{pointer-events:auto;position:absolute;inline-size:100%;max-inline-size:100%;min-inline-size:100%;block-size:100%;max-block-size:100%;min-block-size:100%}:host([position]) .container--embedded calcite-scrim{position:absolute}:host([hidden]){display:none}[hidden]{display:none}`,O=class extends I{constructor(){super(),this.ignoreOpenChange=!1,this.messages=L(),this.mutationObserver=T("mutation",()=>this.handleMutationObserver()),this._open=!1,this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteSheetOpen",this.openEnd)},this.openProp="opened",this.transitionProp="opacity",this.resizeValues={inlineSize:0,blockSize:0,minInlineSize:0,minBlockSize:0,maxInlineSize:0,maxBlockSize:0},this.displayMode="overlay",this.embedded=!1,this.escapeDisabled=!1,this.focusTrapDisabled=!1,this.heightScale="m",this.opened=!1,this.outsideCloseDisabled=!1,this.position="inline-start",this.resizable=!1,this.widthScale="m",this.calciteSheetBeforeClose=z({cancelable:!1}),this.calciteSheetBeforeOpen=z({cancelable:!1}),this.calciteSheetClose=z({cancelable:!1}),this.calciteSheetOpen=z({cancelable:!1}),this.keyDownHandler=e=>{let{defaultPrevented:t,key:s}=e;!t&&!this.escapeDisabled&&this.focusTrapDisabled&&this.open&&s==="Escape"&&(e.preventDefault(),this.open=!1)},this.listen("keydown",this.keyDownHandler)}static{this.properties={resizeValues:16,beforeClose:0,displayMode:3,embedded:5,escapeDisabled:7,focusTrapDisabled:7,heightScale:3,height:3,label:1,messageOverrides:0,open:7,opened:7,outsideCloseDisabled:7,position:3,resizable:7,widthScale:3,width:3}}static{this.styles=q}get open(){return this._open}set open(e){let t=this._open;e!==t&&(this._open=e,this.toggleSheet(e))}async setFocus(){await V(this),R(this.el)}async updateFocusTrapElements(){j(this)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),P(this,{focusTrapOptions:{clickOutsideDeactivates:!1,escapeDeactivates:e=>(!e.defaultPrevented&&!this.escapeDisabled&&(this.open=!1,e.preventDefault()),!1)}}),this.setupInteractions()}load(){this.open&&this.openSheet()}willUpdate(e){e.has("focusTrapDisabled")&&(this.hasUpdated||this.focusTrapDisabled!==!1)&&this.handleFocusTrapDisabled(this.focusTrapDisabled),e.has("opened")&&(this.hasUpdated||this.opened!==!1)&&U(this),(e.has("open")&&(this.hasUpdated||this.open!==!1)||e.has("position")&&(this.hasUpdated||this.position!=="inline-start")||e.has("resizable")&&(this.hasUpdated||this.resizable!==!1))&&this.setupInteractions()}loaded(){}disconnectedCallback(){super.disconnectedCallback(),this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),w(this),this.embedded=!1,this.cleanupInteractions()}handleFocusTrapDisabled(e){this.open&&(e?w(this):C(this))}toggleSheet(e){this.ignoreOpenChange||(e?this.openSheet():this.closeSheet())}getResizeIcon(){let{position:e}=this;return e==="block-start"||e==="block-end"?"drag-resize-vertical":"drag-resize-horizontal"}getContentElDOMRect(){return this.contentEl.getBoundingClientRect()}handleKeyDown(e){let{key:t,defaultPrevented:s,shiftKey:n}=e,{position:i,resizable:o,contentEl:m,el:r,resizeValues:{maxBlockSize:x,maxInlineSize:u,minBlockSize:v,minInlineSize:f}}=this,c=[...i==="block-end"||i==="block-start"?["ArrowUp","ArrowDown"]:["ArrowLeft","ArrowRight"],"Home","End"];if(!o||!m||s||!c.includes(t))return;let h=this.getContentElDOMRect(),b=g(r)==="rtl"?-1:1,a=n?K:_;switch(t){case"ArrowUp":this.updateSize({size:h.height+(i==="block-end"?a:-a),type:"blockSize"}),e.preventDefault();break;case"ArrowDown":this.updateSize({size:h.height+(i==="block-end"?-a:a),type:"blockSize"}),e.preventDefault();break;case"ArrowLeft":this.updateSize({size:h.width+(i==="inline-end"?a:-a)*b,type:"inlineSize"}),e.preventDefault();break;case"ArrowRight":this.updateSize({size:h.width+(i==="inline-end"?-a:a)*b,type:"inlineSize"}),e.preventDefault();break;case"Home":this.updateSize({size:i==="block-start"||i==="block-end"?v:f,type:i==="block-start"||i==="block-end"?"blockSize":"inlineSize"});break;case"End":this.updateSize({size:i==="block-start"||i==="block-end"?x:u,type:i==="block-start"||i==="block-end"?"blockSize":"inlineSize"});break}}updateSize({type:e,size:t}){let{contentEl:s,resizeValues:n}=this;if(!s)return;let i=e==="blockSize"?"minBlockSize":"minInlineSize",o=e==="blockSize"?"maxBlockSize":"maxInlineSize",m=n[i]&&n[o]?F(t,n[i],n[o]):t,r=Math.round(m);this.resizeValues={...n,[e]:r},s.style[e]=t!==null?`${r}px`:null}cleanupInteractions(){this.interaction?.unset(),this.updateSize({size:null,type:"inlineSize"}),this.updateSize({size:null,type:"blockSize"})}setupInteractions(){this.cleanupInteractions();let{el:e,contentEl:t,resizable:s,position:n,open:i,resizeHandleEl:o}=this;if(!t||!i||!s||!o)return;let{inlineSize:m,minInlineSize:r,blockSize:x,minBlockSize:u,maxInlineSize:v,maxBlockSize:f}=window.getComputedStyle(t),c={inlineSize:p(m)?parseInt(m):0,blockSize:p(x)?parseInt(x):0,minInlineSize:p(r)?parseInt(r):0,minBlockSize:p(u)?parseInt(u):0,maxInlineSize:p(v)?parseInt(v):window.innerWidth,maxBlockSize:p(f)?parseInt(f):window.innerHeight};this.resizeValues=c;let h=g(e)==="rtl";this.interaction=y(t,{context:e.ownerDocument}).resizable({edges:{top:n==="block-end"?o:!1,right:n===(h?"inline-end":"inline-start")?o:!1,bottom:n==="block-start"?o:!1,left:n===(h?"inline-start":"inline-end")?o:!1},modifiers:[y.modifiers.restrictSize({min:{width:c.minInlineSize,height:c.minBlockSize},max:{width:c.maxInlineSize,height:c.maxBlockSize}})],listeners:{move:({rect:b})=>{let a=n==="block-start"||n==="block-end";this.updateSize({size:a?b.height:b.width,type:a?"blockSize":"inlineSize"})}}})}onBeforeOpen(){this.calciteSheetBeforeOpen.emit()}onOpen(){this.calciteSheetOpen.emit(),C(this)}onBeforeClose(){this.calciteSheetBeforeClose.emit()}onClose(){this.calciteSheetClose.emit(),w(this)}setResizeHandleEl(e){this.resizeHandleEl=e,this.setupInteractions()}setContentEl(e){this.contentEl=e,this.contentId=A(e)}setTransitionEl(e){this.transitionEl=e}async openSheet(){await this.componentOnReady(),this.el.addEventListener("calciteSheetOpen",this.openEnd),this.opened=!0,this.embedded||(this.initialOverflowCSS=document.documentElement.style.overflow,document.documentElement.style.setProperty("overflow","hidden"))}handleOutsideClose(){this.outsideCloseDisabled||(this.open=!1)}async closeSheet(){if(this.beforeClose)try{await this.beforeClose(this.el)}catch{requestAnimationFrame(()=>{this.ignoreOpenChange=!0,this.open=!0,this.ignoreOpenChange=!1});return}this.opened=!1,this.removeOverflowHiddenClass()}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",this.initialOverflowCSS)}handleMutationObserver(){this.updateFocusTrapElements()}render(){let{resizable:e,position:t,resizeValues:s}=this,n=g(this.el),i=t==="block-start"||t==="block-end";return B(this.el,"aria-describedby",this.contentId),this.el.ariaLabel=this.label,this.el.ariaModal="true",this.el.role="dialog",S`<div class=${d({[l.container]:!0,[l.containerOpen]:this.opened,[l.containerEmbedded]:this.embedded,[$.rtl]:n==="rtl",[E("width",this.width,this.widthScale)]:!!(this.width||this.widthScale),[E("height",this.height,this.heightScale)]:!!(this.height||this.heightScale)})} ${k(this.setTransitionEl)}><calcite-scrim class=${d(l.scrim)} @click=${this.handleOutsideClose}></calcite-scrim><div class=${d(l.content)} ${k(this.setContentEl)}><div class=${d(l.contentContainer)}><slot></slot></div>${e?M("resize-handle",S`<div .ariaLabel=${this.messages.resizeEnabled} .ariaOrientation=${i?"vertical":"horizontal"} .ariaValueMax=${i?s.maxBlockSize:s.maxInlineSize} .ariaValueMin=${i?s.minBlockSize:s.minInlineSize} .ariaValueNow=${i?s.blockSize:s.inlineSize} class=${d(l.resizeHandle)} @keydown=${this.handleKeyDown} role=separator tabindex=0 touch-action=none ${k(this.setResizeHandleEl)}><div class=${d(l.resizeHandleBar)}><calcite-icon .icon=${this.getResizeIcon()} scale=s></calcite-icon></div></div>`):null}</div></div>`}};H("calcite-sheet",O);export{O as Sheet};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{a as o}from"./
|
|
3
|
+
v3.0.0-next.112 */
|
|
4
|
+
import{a as o}from"./3772UXWO.js";import"./KQ7ZENRI.js";async function m(){return o.sort().map(r=>({label:r}))}export{m as groupByName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{a as s}from"./
|
|
3
|
+
v3.0.0-next.112 */
|
|
4
|
+
import{a as s}from"./BRN2G5FM.js";import{b as m}from"./RXIVLADL.js";import{b as x}from"./3LLLR3SD.js";import{e as f}from"./FWD7LP7Y.js";import{e as d,i as g}from"./MYU6UPOF.js";var S=2,E=e=>e.reduce((t,o)=>t+o,0)/e.length,B=e=>{let t=e.filter(n=>n.slot!==s.menuActions),o=t?.length;return{actionWidth:o?E(t.map(n=>n.clientWidth||0)):0,actionHeight:o?E(t.map(n=>n.clientHeight||0)):0}},W=({width:e,actionWidth:t,layout:o,height:n,actionHeight:i,groupCount:r})=>{let l=o==="horizontal"?e:n,a=o==="horizontal"?t:i;return Math.floor((l-r*S)/a)},D=({layout:e,actionCount:t,actionWidth:o,width:n,actionHeight:i,height:r,groupCount:l})=>Math.max(t-W({width:n,actionWidth:o,layout:e,height:r,actionHeight:i,groupCount:l}),0),b=e=>Array.from(e.querySelectorAll("calcite-action")).filter(t=>t.closest("calcite-action-menu")?t.slot===x.trigger:!0),I=({actionGroups:e,expanded:t,overflowCount:o})=>{let n=o;e.reverse().forEach(i=>{let r=0,l=b(i).reverse();l.forEach(a=>{a.slot===s.menuActions&&(a.removeAttribute("slot"),a.textEnabled=t)}),n>0&&l.some(a=>(l.filter(h=>!h.slot).length>1&&l.length>2&&!a.closest("calcite-action-menu")&&(a.textEnabled=!0,a.setAttribute("slot",s.menuActions),r++,r>1&&n--),n<1)),i.manager.component.requestUpdate()})},v={chevronsLeft:"chevrons-left",chevronsRight:"chevrons-right"};function w(e,t){return e||t.closest("calcite-shell-panel")?.position||"start"}function N({el:e,expanded:t}){b(e).filter(o=>o.slot!==s.menuActions).forEach(o=>o.textEnabled=t),e.querySelectorAll("calcite-action-group, calcite-action-menu").forEach(o=>o.expanded=t)}var T=({tooltip:e,referenceElement:t,expanded:o,ref:n})=>(e&&(e.referenceElement=!o&&t?t:null),n&&n(t),t),O=({expanded:e,expandText:t,collapseText:o,expandLabel:n,collapseLabel:i,toggle:r,el:l,position:a,tooltip:h,ref:A,scale:$})=>{let y=f(l)==="rtl",p=e?o:t,C=e?i:n,c=[v.chevronsLeft,v.chevronsRight];y&&c.reverse();let u=w(a,l)==="end",H=u?c[1]:c[0],q=u?c[0]:c[1];return d`<calcite-action .icon=${e?H:q} id=expand-toggle .label=${C} @click=${r} .scale=${$} .text=${p} .textEnabled=${e} title=${(!e&&!h?p:null)??g} ${m(L=>T({tooltip:h,referenceElement:L,expanded:e,ref:A}))}></calcite-action>`};export{B as a,D as b,b as c,I as d,N as e,O as f};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{a as $,b as y}from"./36DTW2EC.js";import{b as z}from"./P5ZVYEQW.js";import{u as w}from"./WHQERKO3.js";import{b as C}from"./G63OZT6W.js";import"./2BGOXXHV.js";import{I as k,d as u,e as n,u as v,v as f,w as i,y as x}from"./5JAMHCQS.js";var t={container:"container",contentContainer:"content-container",contentContainerHasContent:"content-container--has-content",contentContainerHasOnlyContentTopAndBottom:"content-container--has-only-content-top-and-bottom",textContentContainer:"text-content-container",description:"description",heading:"heading",icon:"icon",interactive:"interactive",largeVisualDeprecated:"large-visual-deprecated",row:"row",selected:"selected",selectionIcon:"selection-icon",textContent:"text-content"},s={selectedMultiple:"check-square-f",selectedSingle:"circle-f",unselectedMultiple:"square",unselectedSingle:"circle"},d={contentBottom:"content-bottom",contentEnd:"content-end",contentStart:"content-start",contentTop:"content-top"},D=u`: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{box-shadow:var(--calcite-tile-shadow, var(--calcite-shadow-none));box-sizing:border-box;display:inline-block}calcite-link{--calcite-link-text-color: var(--calcite-tile-link-text-color)}.container{background-color:var(--calcite-tile-background-color, var(--calcite-color-foreground-1));block-size:var(--calcite-container-size-content-fluid);border-radius:var(--calcite-tile-corner-radius, var(--calcite-corner-radius));box-sizing:border-box;color:var(--calcite-tile-text-color, var(--calcite-color-text-3));inline-size:var(--calcite-container-size-content-fluid);outline:var(--calcite-border-width-sm, 1px) solid var(--calcite-tile-border-color, var(--calcite-color-border-2));padding:var(--calcite-internal-tile-spacing);position:relative;-webkit-user-select:none;user-select:none}.container .selection-icon{color:var(--calcite-tile-text-color, var(--calcite-color-text-3))}.container.interactive{cursor:pointer}.container.interactive:hover,.container.interactive:focus,.container.interactive.selected{outline-color:var(--calcite-tile-accent-color-press, var(--calcite-color-brand));z-index:var(--calcite-z-index)}.container.interactive:hover .selection-icon,.container.interactive:focus .selection-icon,.container.interactive.selected .selection-icon{color:var(--calcite-tile-accent-color-press, var(--calcite-color-brand))}.container.interactive:focus{box-shadow:inset 0 0 0 1px var(--calcite-tile-accent-color-press, var(--calcite-color-brand));z-index:calc(var(--calcite-z-index) + 1)}.content-container,.row{align-items:flex-start;display:flex}.content-container{flex-direction:column;word-wrap:break-word;word-break:break-word;inline-size:var(--calcite-container-size-content-fluid)}.text-content-container{inline-size:100%;outline-color:transparent;padding:0}.text-content{display:flex;flex-direction:column}.heading{color:var(--calcite-tile-heading-text-color, var(--calcite-color-text-2));font-weight:var(--calcite-font-weight-medium);line-height:1.20313rem;overflow-wrap:break-word}.description{font-weight:var(--calcite-font-weight-regular);overflow-wrap:break-word}.large-visual-deprecated{align-items:center;justify-content:center;min-block-size:12rem;text-align:center}.large-visual-deprecated .icon{align-self:center;block-size:64px;inline-size:64px}.large-visual-deprecated .selection-icon{position:absolute;inset-inline-start:var(--calcite-internal-tile-spacing);inset-block-start:var(--calcite-internal-tile-spacing);z-index:var(--calcite-z-index)}.large-visual-deprecated .text-content-container{justify-content:center}:host([alignment=center]) .icon{align-self:center}:host([alignment=center]) .text-content{text-align:center}:host([alignment=center]) slot[name=content-start]::slotted(*),:host([alignment=center]) slot[name=content-end]::slotted(*){align-self:center}:host([scale=s]){--calcite-internal-tile-spacing: var(--calcite-spacing-sm);max-inline-size:400px;min-inline-size:100px}:host([scale=s]) .heading{font-size:var(--calcite-font-size--2);line-height:1.03125rem}:host([scale=s]) .description{font-size:var(--calcite-font-size--3);line-height:.85938rem}:host([scale=m]){--calcite-internal-tile-spacing: var(--calcite-spacing-md);max-inline-size:460px;min-inline-size:140px}:host([scale=m]) .heading{font-size:var(--calcite-font-size--1);line-height:1.20313rem}:host([scale=m]) .description{font-size:var(--calcite-font-size--2);line-height:1.03125rem}:host([scale=l]){--calcite-internal-tile-spacing: var(--calcite-spacing-lg);max-inline-size:520px;min-inline-size:160px}:host([scale=l]) .heading{font-size:var(--calcite-font-size-0);line-height:1.375rem}:host([scale=l]) .description{font-size:var(--calcite-font-size--1);line-height:1.20313rem}.content-container--has-content,.row{gap:var(--calcite-internal-tile-spacing)}.content-container--has-only-content-top-and-bottom slot[name=content-top]::slotted(*){margin-block-end:var(--calcite-internal-tile-spacing)}:host([selection-appearance=border][layout=horizontal]) .container.selected:focus:before,:host([selection-appearance=border][layout=vertical]) .container.selected:focus:before{block-size:100%;box-shadow:inset 0 0 0 1px var(--calcite-tile-accent-color-press, var(--calcite-color-brand));content:"";display:block;inline-size:100%;inset-block-start:0;inset-inline-start:0;position:absolute}:host([selection-appearance=border][layout=horizontal]) .container.selected{box-shadow:inset 0 -4px 0 0 var(--calcite-tile-accent-color-press, var(--calcite-color-brand))}:host([selection-appearance=border][layout=vertical]) .container.selected{box-shadow:inset 4px 0 0 0 var(--calcite-tile-accent-color-press, var(--calcite-color-brand))}:host(:hover:not([disabled])) .heading,:host([active]:not([disabled])) .heading{color:var(--calcite-tile-heading-text-color, var(--calcite-color-text-1))}:host(:hover:not([disabled])) .description,:host([active]:not([disabled])) .description{color:var(--calcite-tile-text-color, var(--calcite-color-text-2))}:host([href]:focus:not([disabled])) .container,:host([href]:hover:not([disabled])) .container{outline-color:var(--calcite-tile-link-color, var(--calcite-color-text-link));z-index:var(--calcite-z-index)}:host([href]:focus:not([disabled])) .icon,:host([href]:hover:not([disabled])) .icon{color:var(--calcite-tile-link-color, var(--calcite-color-text-link))}:host([href]:focus:not([disabled])) .heading,:host([href]:hover:not([disabled])) .heading{color:var(--calcite-tile-link-color, var(--calcite-color-text-link))}:host([href]:active:not([disabled])) .container{box-shadow:inset 0 0 0 1px var(--calcite-tile-link-color, var(--calcite-color-text-link));outline-color:var(--calcite-tile-link-color, var(--calcite-color-text-link))}:host([embed]) .container{padding:0}:host([selection-mode=none]) .container:hover,:host([selection-mode=none]) .container.selected{outline-color:var(--calcite-tile-border-color, var(--calcite-color-border-2))}:host([selection-mode=none]) .container:focus{outline-color:var(--calcite-tile-accent-color-press, var(--calcite-color-brand))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}::slotted(*){max-inline-size:100%}`,p=class extends f{constructor(){super(),this.hasContentBottom=!1,this.hasContentEnd=!1,this.hasContentStart=!1,this.hasContentTop=!1,this.active=!1,this.alignment="start",this.disabled=!1,this.embed=!1,this.iconFlipRtl=!1,this.interactive=!1,this.layout="horizontal",this.scale="m",this.selected=!1,this.selectionAppearance="icon",this.selectionMode="none",this.calciteInternalTileKeyEvent=v({cancelable:!1}),this.calciteTileSelect=v(),this.listen("keydown",this.keyDownHandler)}static{this.properties={hasContentBottom:16,hasContentEnd:16,hasContentStart:16,hasContentTop:16,active:7,alignment:3,description:3,disabled:7,embed:7,heading:3,href:3,icon:3,iconFlipRtl:7,interactive:5,label:1,layout:3,scale:3,selected:7,selectionAppearance:3,selectionMode:3}}static{this.styles=D}async setFocus(){await C(this),!this.disabled&&this.interactive&&this.containerEl?.focus()}load(){}updated(){$(this)}loaded(){}clickHandler(){this.interactive&&(this.setFocus(),this.handleSelectEvent())}handleSelectEvent(){this.disabled||!this.interactive||this.selectionMode==="single-persist"&&this.selected===!0||this.calciteTileSelect.emit()}handleSlotChange(e){let c=e.target.dataset.name;this[`has${c}`]=w(e)}setContainerEl(e){this.containerEl=e}keyDownHandler(e){if(e.target===this.el)switch(e.key){case" ":case"Enter":this.handleSelectEvent(),e.preventDefault();break;case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"Home":case"End":this.calciteInternalTileKeyEvent.emit(e),e.preventDefault();break}}renderSelectionIcon(){let{selected:e,selectionAppearance:c,selectionMode:a}=this;if(c==="icon"&&a!=="none")return n`<calcite-icon class=${i(t.selectionIcon)} .icon=${e?a==="multiple"?s.selectedMultiple:s.selectedSingle:a==="multiple"?s.unselectedMultiple:s.unselectedSingle} scale=s></calcite-icon>`}renderTile(){let{description:e,disabled:c,hasContentBottom:a,hasContentEnd:S,hasContentStart:E,hasContentTop:T,heading:l,icon:r,iconFlipRtl:A,interactive:o,selectionMode:h}=this,H=l&&r&&!e,b=!!this.href||!o,g=h==="multiple"&&o?"checkbox":h!=="none"&&o?"radio":o?"button":void 0,m=!!(e||S||E||l||r),M=!m&&T&&a;return n`<div .ariaChecked=${h!=="none"&&o?this.selected:void 0} .ariaDisabled=${b?c:void 0} .ariaLabel=${g&&this.label} class=${i({[t.container]:!0,[t.interactive]:o,[t.largeVisualDeprecated]:H,[t.row]:!0,[t.selected]:this.selected})} @click=${this.clickHandler} .role=${g} tabindex=${(b?void 0:0)??x} ${z(this.setContainerEl)}>${this.renderSelectionIcon()}<div class=${i({[t.contentContainer]:!0,[t.contentContainerHasContent]:m,[t.contentContainerHasOnlyContentTopAndBottom]:M})}><slot name=${d.contentTop} @slotchange=${this.handleSlotChange}></slot>${r&&n`<calcite-icon class=${i(t.icon)} .flipRtl=${A} .icon=${r} scale=l></calcite-icon>`||""}<div class=${i({[t.textContentContainer]:!0,[t.row]:!0})}><slot name=${d.contentStart} @slotchange=${this.handleSlotChange}></slot><div class=${i(t.textContent)}>${l&&n`<div class=${i(t.heading)}>${l}</div>`||""}${e&&n`<div class=${i(t.description)}>${e}</div>`||""}</div><slot name=${d.contentEnd} @slotchange=${this.handleSlotChange}></slot></div><slot name=${d.contentBottom} @slotchange=${this.handleSlotChange}></slot></div></div>`}render(){let{disabled:e}=this;return y({disabled:e,children:this.href?n`<calcite-link .disabled=${e} .href=${this.href}>${this.renderTile()}</calcite-link>`:this.renderTile()})}};k("calcite-tile",p);export{p as Tile};
|
|
3
|
+
v3.0.0-next.112 */
|
|
4
|
+
import{a as $,b as y}from"./NGSLE2LS.js";import{b as z}from"./RXIVLADL.js";import{u as w}from"./FWD7LP7Y.js";import{b as C}from"./BURXKUR3.js";import"./YOAR4AAW.js";import{I as k,d as u,e as n,u as v,v as f,w as i,y as x}from"./MYU6UPOF.js";var t={container:"container",contentContainer:"content-container",contentContainerHasContent:"content-container--has-content",contentContainerHasOnlyContentTopAndBottom:"content-container--has-only-content-top-and-bottom",textContentContainer:"text-content-container",description:"description",heading:"heading",icon:"icon",interactive:"interactive",largeVisualDeprecated:"large-visual-deprecated",row:"row",selected:"selected",selectionIcon:"selection-icon",textContent:"text-content"},s={selectedMultiple:"check-square-f",selectedSingle:"circle-f",unselectedMultiple:"square",unselectedSingle:"circle"},d={contentBottom:"content-bottom",contentEnd:"content-end",contentStart:"content-start",contentTop:"content-top"},D=u`: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{box-shadow:var(--calcite-tile-shadow, var(--calcite-shadow-none));box-sizing:border-box;display:inline-block}calcite-link{--calcite-link-text-color: var(--calcite-tile-link-text-color)}.container{background-color:var(--calcite-tile-background-color, var(--calcite-color-foreground-1));block-size:var(--calcite-container-size-content-fluid);border-radius:var(--calcite-tile-corner-radius, var(--calcite-corner-radius));box-sizing:border-box;color:var(--calcite-tile-text-color, var(--calcite-color-text-3));inline-size:var(--calcite-container-size-content-fluid);outline:var(--calcite-border-width-sm, 1px) solid var(--calcite-tile-border-color, var(--calcite-color-border-2));padding:var(--calcite-internal-tile-spacing);position:relative;-webkit-user-select:none;user-select:none}.container .selection-icon{color:var(--calcite-tile-text-color, var(--calcite-color-text-3))}.container.interactive{cursor:pointer}.container.interactive:hover,.container.interactive:focus,.container.interactive.selected{outline-color:var(--calcite-tile-accent-color-press, var(--calcite-color-brand));z-index:var(--calcite-z-index)}.container.interactive:hover .selection-icon,.container.interactive:focus .selection-icon,.container.interactive.selected .selection-icon{color:var(--calcite-tile-accent-color-press, var(--calcite-color-brand))}.container.interactive:focus{box-shadow:inset 0 0 0 1px var(--calcite-tile-accent-color-press, var(--calcite-color-brand));z-index:calc(var(--calcite-z-index) + 1)}.content-container,.row{align-items:flex-start;display:flex}.content-container{flex-direction:column;word-wrap:break-word;word-break:break-word;inline-size:var(--calcite-container-size-content-fluid)}.text-content-container{inline-size:100%;outline-color:transparent;padding:0}.text-content{display:flex;flex-direction:column}.heading{color:var(--calcite-tile-heading-text-color, var(--calcite-color-text-2));font-weight:var(--calcite-font-weight-medium);line-height:1.20313rem;overflow-wrap:break-word}.description{font-weight:var(--calcite-font-weight-regular);overflow-wrap:break-word}.large-visual-deprecated{align-items:center;justify-content:center;min-block-size:12rem;text-align:center}.large-visual-deprecated .icon{align-self:center;block-size:64px;inline-size:64px}.large-visual-deprecated .selection-icon{position:absolute;inset-inline-start:var(--calcite-internal-tile-spacing);inset-block-start:var(--calcite-internal-tile-spacing);z-index:var(--calcite-z-index)}.large-visual-deprecated .text-content-container{justify-content:center}:host([alignment=center]) .icon{align-self:center}:host([alignment=center]) .text-content{text-align:center}:host([alignment=center]) slot[name=content-start]::slotted(*),:host([alignment=center]) slot[name=content-end]::slotted(*){align-self:center}:host([scale=s]){--calcite-internal-tile-spacing: var(--calcite-spacing-sm);max-inline-size:400px;min-inline-size:100px}:host([scale=s]) .heading{font-size:var(--calcite-font-size--2);line-height:1.03125rem}:host([scale=s]) .description{font-size:var(--calcite-font-size--3);line-height:.85938rem}:host([scale=m]){--calcite-internal-tile-spacing: var(--calcite-spacing-md);max-inline-size:460px;min-inline-size:140px}:host([scale=m]) .heading{font-size:var(--calcite-font-size--1);line-height:1.20313rem}:host([scale=m]) .description{font-size:var(--calcite-font-size--2);line-height:1.03125rem}:host([scale=l]){--calcite-internal-tile-spacing: var(--calcite-spacing-lg);max-inline-size:520px;min-inline-size:160px}:host([scale=l]) .heading{font-size:var(--calcite-font-size-0);line-height:1.375rem}:host([scale=l]) .description{font-size:var(--calcite-font-size--1);line-height:1.20313rem}.content-container--has-content,.row{gap:var(--calcite-internal-tile-spacing)}.content-container--has-only-content-top-and-bottom slot[name=content-top]::slotted(*){margin-block-end:var(--calcite-internal-tile-spacing)}:host([selection-appearance=border][layout=horizontal]) .container.selected:focus:before,:host([selection-appearance=border][layout=vertical]) .container.selected:focus:before{block-size:100%;box-shadow:inset 0 0 0 1px var(--calcite-tile-accent-color-press, var(--calcite-color-brand));content:"";display:block;inline-size:100%;inset-block-start:0;inset-inline-start:0;position:absolute}:host([selection-appearance=border][layout=horizontal]) .container.selected{box-shadow:inset 0 -4px 0 0 var(--calcite-tile-accent-color-press, var(--calcite-color-brand))}:host([selection-appearance=border][layout=vertical]) .container.selected{box-shadow:inset 4px 0 0 0 var(--calcite-tile-accent-color-press, var(--calcite-color-brand))}:host(:hover:not([disabled])) .heading,:host([active]:not([disabled])) .heading{color:var(--calcite-tile-heading-text-color, var(--calcite-color-text-1))}:host(:hover:not([disabled])) .description,:host([active]:not([disabled])) .description{color:var(--calcite-tile-text-color, var(--calcite-color-text-2))}:host([href]:focus:not([disabled])) .container,:host([href]:hover:not([disabled])) .container{outline-color:var(--calcite-tile-link-color, var(--calcite-color-text-link));z-index:var(--calcite-z-index)}:host([href]:focus:not([disabled])) .icon,:host([href]:hover:not([disabled])) .icon{color:var(--calcite-tile-link-color, var(--calcite-color-text-link))}:host([href]:focus:not([disabled])) .heading,:host([href]:hover:not([disabled])) .heading{color:var(--calcite-tile-link-color, var(--calcite-color-text-link))}:host([href]:active:not([disabled])) .container{box-shadow:inset 0 0 0 1px var(--calcite-tile-link-color, var(--calcite-color-text-link));outline-color:var(--calcite-tile-link-color, var(--calcite-color-text-link))}:host([embed]) .container{padding:0}:host([selection-mode=none]) .container:hover,:host([selection-mode=none]) .container.selected{outline-color:var(--calcite-tile-border-color, var(--calcite-color-border-2))}:host([selection-mode=none]) .container:focus{outline-color:var(--calcite-tile-accent-color-press, var(--calcite-color-brand))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}::slotted(*){max-inline-size:100%}`,p=class extends f{constructor(){super(),this.hasContentBottom=!1,this.hasContentEnd=!1,this.hasContentStart=!1,this.hasContentTop=!1,this.active=!1,this.alignment="start",this.disabled=!1,this.embed=!1,this.iconFlipRtl=!1,this.interactive=!1,this.layout="horizontal",this.scale="m",this.selected=!1,this.selectionAppearance="icon",this.selectionMode="none",this.calciteInternalTileKeyEvent=v({cancelable:!1}),this.calciteTileSelect=v(),this.listen("keydown",this.keyDownHandler)}static{this.properties={hasContentBottom:16,hasContentEnd:16,hasContentStart:16,hasContentTop:16,active:7,alignment:3,description:3,disabled:7,embed:7,heading:3,href:3,icon:3,iconFlipRtl:7,interactive:5,label:1,layout:3,scale:3,selected:7,selectionAppearance:3,selectionMode:3}}static{this.styles=D}async setFocus(){await C(this),!this.disabled&&this.interactive&&this.containerEl?.focus()}load(){}updated(){$(this)}loaded(){}clickHandler(){this.interactive&&(this.setFocus(),this.handleSelectEvent())}handleSelectEvent(){this.disabled||!this.interactive||this.selectionMode==="single-persist"&&this.selected===!0||this.calciteTileSelect.emit()}handleSlotChange(e){let c=e.target.dataset.name;this[`has${c}`]=w(e)}setContainerEl(e){this.containerEl=e}keyDownHandler(e){if(e.target===this.el)switch(e.key){case" ":case"Enter":this.handleSelectEvent(),e.preventDefault();break;case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"Home":case"End":this.calciteInternalTileKeyEvent.emit(e),e.preventDefault();break}}renderSelectionIcon(){let{selected:e,selectionAppearance:c,selectionMode:a}=this;if(c==="icon"&&a!=="none")return n`<calcite-icon class=${i(t.selectionIcon)} .icon=${e?a==="multiple"?s.selectedMultiple:s.selectedSingle:a==="multiple"?s.unselectedMultiple:s.unselectedSingle} scale=s></calcite-icon>`}renderTile(){let{description:e,disabled:c,hasContentBottom:a,hasContentEnd:S,hasContentStart:E,hasContentTop:T,heading:l,icon:r,iconFlipRtl:A,interactive:o,selectionMode:h}=this,H=l&&r&&!e,b=!!this.href||!o,g=h==="multiple"&&o?"checkbox":h!=="none"&&o?"radio":o?"button":void 0,m=!!(e||S||E||l||r),M=!m&&T&&a;return n`<div .ariaChecked=${h!=="none"&&o?this.selected:void 0} .ariaDisabled=${b?c:void 0} .ariaLabel=${g&&this.label} class=${i({[t.container]:!0,[t.interactive]:o,[t.largeVisualDeprecated]:H,[t.row]:!0,[t.selected]:this.selected})} @click=${this.clickHandler} .role=${g} tabindex=${(b?void 0:0)??x} ${z(this.setContainerEl)}>${this.renderSelectionIcon()}<div class=${i({[t.contentContainer]:!0,[t.contentContainerHasContent]:m,[t.contentContainerHasOnlyContentTopAndBottom]:M})}><slot name=${d.contentTop} @slotchange=${this.handleSlotChange}></slot>${r&&n`<calcite-icon class=${i(t.icon)} .flipRtl=${A} .icon=${r} scale=l></calcite-icon>`||""}<div class=${i({[t.textContentContainer]:!0,[t.row]:!0})}><slot name=${d.contentStart} @slotchange=${this.handleSlotChange}></slot><div class=${i(t.textContent)}>${l&&n`<div class=${i(t.heading)}>${l}</div>`||""}${e&&n`<div class=${i(t.description)}>${e}</div>`||""}</div><slot name=${d.contentEnd} @slotchange=${this.handleSlotChange}></slot></div><slot name=${d.contentBottom} @slotchange=${this.handleSlotChange}></slot></div></div>`}render(){let{disabled:e}=this;return y({disabled:e,children:this.href?n`<calcite-link .disabled=${e} .href=${this.href}>${this.renderTile()}</calcite-link>`:this.renderTile()})}};k("calcite-tile",p);export{p as Tile};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{a as r,b as a}from"./
|
|
3
|
+
v3.0.0-next.112 */
|
|
4
|
+
import{a as r,b as a}from"./KQ7ZENRI.js";var s={CET:"Europe/Brussels",CST6CDT:"America/Chicago",EET:"Europe/Athens",EST:"America/Panama",EST5EDT:"America/New_York",HST:"Pacific/Honolulu",MET:"Europe/Brussels",MST:"America/Phoenix",MST7MDT:"America/Denver",PST8PDT:"America/Los_Angeles",WET:"Europe/Lisbon"},t=(()=>{let e=Object.keys(s);return Object.keys(r()).filter(o=>!e.includes(o))})();function c(e){let o=s[e];return o||(a(e)?.aliasOf??e)}export{t as a,c as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{a as k,b as B,c as H}from"./GESC7PRY.js";import{a as I}from"./JCZIZMKQ.js";import{a as v}from"./ALGCYGFE.js";import{a as O}from"./XODNGXTR.js";import{b as x}from"./P5ZVYEQW.js";import{e as S,o as f,v as C,z as y}from"./WHQERKO3.js";import"./2BGOXXHV.js";import{B as w,I as m,d as u,e as T,u as h,v as p,w as b}from"./5JAMHCQS.js";var W={chevronRight:"chevron-right",chevronLeft:"chevron-left"},o={container:"tab-nav",containerHasEndTabTitleOverflow:"tab-nav--end-overflow",containerHasStartTabTitleOverflow:"tab-nav--start-overflow",scrollButton:"scroll-button",scrollButtonContainer:"scroll-button-container",scrollBackwardContainerButton:"scroll-button-container--backward",scrollForwardContainerButton:"scroll-button-container--forward",tabTitleSlotWrapper:"tab-titles-slot-wrapper"},$=u`:host{--calcite-internal-tab-nav-gradient-start-side: left;--calcite-internal-tab-nav-gradient-end-side: right;position:relative;display:flex}.scale-s{--calcite-internal-tab-nav-scroller-button-width: 24px;min-block-size:1.5rem}.scale-m{--calcite-internal-tab-nav-scroller-button-width: 32px;min-block-size:2rem}.scale-l{--calcite-internal-tab-nav-scroller-button-width: 44px;min-block-size:2.75rem}.calcite--rtl{--calcite-internal-tab-nav-gradient-start-side: right;--calcite-internal-tab-nav-gradient-end-side: left}.tab-nav--start-overflow .tab-titles-slot-wrapper{mask-image:linear-gradient(to var(--calcite-internal-tab-nav-gradient-end-side),transparent,transparent var(--calcite-internal-tab-nav-scroller-button-width),white var(--calcite-internal-tab-nav-scroller-button-width),white 51%)}.tab-nav--end-overflow .tab-titles-slot-wrapper{mask-image:linear-gradient(to var(--calcite-internal-tab-nav-gradient-start-side),transparent,transparent var(--calcite-internal-tab-nav-scroller-button-width),white var(--calcite-internal-tab-nav-scroller-button-width),white 51%)}.tab-nav--start-overflow.tab-nav--end-overflow .tab-titles-slot-wrapper{mask-image:linear-gradient(to var(--calcite-internal-tab-nav-gradient-end-side),transparent,transparent var(--calcite-internal-tab-nav-scroller-button-width),white var(--calcite-internal-tab-nav-scroller-button-width),white 51%,transparent 51%),linear-gradient(to var(--calcite-internal-tab-nav-gradient-start-side),transparent,transparent var(--calcite-internal-tab-nav-scroller-button-width),white var(--calcite-internal-tab-nav-scroller-button-width),white 51%,transparent 51%)}.tab-nav::-webkit-scrollbar{display:none;-ms-overflow-style:none;scrollbar-width:none}:host([layout=center]) ::slotted(calcite-tab-title){display:flex;flex-grow:1;flex-shrink:0;min-inline-size:auto;white-space:nowrap}:host([layout=center]) ::slotted(calcite-tab-title[selected]){overflow:unset}:host(:not([bordered])) .scale-l{--calcite-internal-tab-nav-gap: var(--calcite-spacing-xxl)}:host(:not([bordered])) .scale-m{--calcite-internal-tab-nav-gap: var(--calcite-spacing-xl)}:host(:not([bordered])) .scale-s{--calcite-internal-tab-nav-gap: var(--calcite-spacing-lg)}:host(:not([bordered])) .tab-titles-slot-wrapper{gap:var(--calcite-internal-tab-nav-gap)}:host([layout=center]:not([bordered])) .tab-titles-slot-wrapper{padding-inline:var(--calcite-spacing-xl)}.tab-nav,.tab-titles-slot-wrapper{display:flex;inline-size:100%;justify-content:flex-start;overflow:hidden;white-space:nowrap}.scroll-button-container{position:absolute;inset-block:0px}.scroll-button-container calcite-button{--calcite-offset-invert-focus: 1;--calcite-color-text-1: var(--calcite-color-text-3);block-size:100%}.scroll-button-container calcite-button:hover{--calcite-color-text-1: unset;--calcite-color-foreground-1: var(--calcite-color-transparent-hover);--calcite-color-foreground-3: var(--calcite-color-transparent)}.scroll-button-container--forward{inset-inline-end:0;z-index:var(--calcite-z-index)}.scroll-button-container--backward{inset-inline-start:0;z-index:var(--calcite-z-index)}:host(:not([bordered])) .scroll-button-container--backward:before,:host(:not([bordered])) .scroll-button-container--forward:before{background-color:var(--calcite-color-border-3);content:"";inline-size:var(--calcite-border-width-sm);inset-block-start:var(--calcite-border-width-md);inset-block-end:var(--calcite-border-width-md);position:absolute}:host(:not([bordered])) .scroll-button-container--backward:before{inset-inline-end:0}:host(:not([bordered])) .scroll-button-container--forward:before{inset-inline-start:0}:host([hidden]){display:none}[hidden]{display:none}`,g=class extends p{constructor(){super(),this.effectiveDir="ltr",this.lastScrollWheelAxis="x",this.resizeObserver=v("resize",()=>{this.updateScrollingState()}),this.hasOverflowingEndTabTitle=!1,this.hasOverflowingStartTabTitle=!1,this.bordered=!1,this.layout="inline",this.messages=O(),this.position="bottom",this.scale="m",this.selectedTitle=null,this.calciteInternalTabChange=h({cancelable:!1}),this.calciteInternalTabNavSlotChange=h(),this.calciteTabChange=h({cancelable:!1}),this.listen("calciteInternalTabsFocusPrevious",this.focusPreviousTabHandler),this.listen("calciteInternalTabsFocusNext",this.focusNextTabHandler),this.listen("calciteInternalTabsFocusFirst",this.focusFirstTabHandler),this.listen("calciteInternalTabsFocusLast",this.focusLastTabHandler),this.listen("calciteInternalTabsActivate",this.internalActivateTabHandler),this.listen("calciteTabsActivate",this.activateTabHandler),this.listen("calciteInternalTabsClose",this.internalCloseTabHandler),this.listen("calciteInternalTabTitleRegister",this.updateTabTitles),this.listenOn(document.body,"calciteInternalTabChange",this.globalInternalTabChangeHandler)}static{this.properties={hasOverflowingEndTabTitle:16,hasOverflowingStartTabTitle:16,selectedTabId:16,bordered:7,layout:3,messageOverrides:0,position:1,scale:1,selectedTitle:0,storageId:3,syncId:3}}static{this.styles=$}get enabledTabTitles(){return f(this.el,"calcite-tab-title:not([disabled])").filter(t=>!t.closed)}get scrollerButtonWidth(){let{scale:t}=this;return parseInt(t==="s"?k:t==="m"?B:H)}get tabTitles(){return f(this.el,"calcite-tab-title")}connectedCallback(){super.connectedCallback(),this.parentTabsEl=this.el.closest("calcite-tabs"),this.resizeObserver?.observe(this.el)}async load(){let t=`calcite-tab-nav-${this.storageId}`;if(localStorage&&this.storageId&&localStorage.getItem(t)){let e=JSON.parse(localStorage.getItem(t));this.selectedTabId=e}}willUpdate(t){t.has("selectedTitle")&&(this.hasUpdated||this.selectedTitle!==null)&&this.calciteInternalTabChange.emit({tab:this.selectedTabId}),t.has("selectedTabId")&&this.selectedTabIdChanged();let{parentTabsEl:e}=this;this.layout=e?.layout,this.bordered=e?.bordered,this.effectiveDir=S(this.el)}loaded(){this.scrollTabTitleIntoView(this.selectedTitle,"instant"),this.tabTitles.length&&this.tabTitles.every(t=>!t.selected)&&!this.selectedTabId&&this.tabTitles[0].getTabIdentifier().then(t=>{this.calciteInternalTabChange.emit({tab:t})})}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}focusPreviousTabHandler(t){this.handleTabFocus(t,t.target,"previous")}focusNextTabHandler(t){this.handleTabFocus(t,t.target,"next")}focusFirstTabHandler(t){this.handleTabFocus(t,t.target,"first")}focusLastTabHandler(t){this.handleTabFocus(t,t.target,"last")}internalActivateTabHandler(t){let e=t.target;this.selectedTabId=t.detail.tab?t.detail.tab:this.getIndexOfTabTitle(e),t.stopPropagation(),this.selectedTitle=e,this.scrollTabTitleIntoView(e)}scrollTabTitleIntoView(t,e="smooth"){t&&requestAnimationFrame(()=>{let l=this.effectiveDir==="ltr",a=this.tabTitleContainerEl,r=a.getBoundingClientRect(),i=t.getBoundingClientRect(),s=a.scrollLeft,n=l?this.hasOverflowingStartTabTitle:this.hasOverflowingEndTabTitle,c=l?this.hasOverflowingEndTabTitle:this.hasOverflowingStartTabTitle;if(i.left<r.left+(n?this.scrollerButtonWidth:0)){let d=s+(i.left-r.left)-this.scrollerButtonWidth;a.scrollTo({left:d,behavior:e})}else if(i.right>r.right-(c?this.scrollerButtonWidth:0)){let d=s+(i.right-r.right)+this.scrollerButtonWidth;a.scrollTo({left:d,behavior:e})}})}activateTabHandler(t){this.calciteTabChange.emit(),t.stopPropagation()}internalCloseTabHandler(t){let e=t.target;this.handleTabTitleClose(e),t.stopPropagation()}async updateTabTitles(t){t.target.selected&&(this.selectedTabId=t.detail,this.selectedTitle=await this.getTabTitleById(this.selectedTabId))}globalInternalTabChangeHandler(t){this.syncId&&t.target!==this.el&&t.target.syncId===this.syncId&&this.selectedTabId!==t.detail.tab&&(this.selectedTabId=t.detail.tab),t.stopPropagation()}async selectedTabIdChanged(){await this.componentOnReady(),localStorage&&this.storageId&&this.selectedTabId!==void 0&&this.selectedTabId!==null&&localStorage.setItem(`calcite-tab-nav-${this.storageId}`,JSON.stringify(this.selectedTabId)),this.calciteInternalTabChange.emit({tab:this.selectedTabId})}onTabTitleWheel(t){t.preventDefault();let{deltaX:e,deltaY:l}=t,a=Math.abs(e),r=Math.abs(l),i;a===r?i=this.lastScrollWheelAxis==="x"?e:l:a>r?(i=e,this.lastScrollWheelAxis="x"):(i=l,this.lastScrollWheelAxis="y");let s=(this.effectiveDir==="rtl"?-1:1)*i;t.currentTarget.scrollBy(s,0)}onSlotChange(t){this.intersectionObserver?.disconnect();let e=C(t,"calcite-tab-title");e.forEach(l=>{this.intersectionObserver?.observe(l)}),this.calciteInternalTabNavSlotChange.emit(e)}storeTabTitleWrapperRef(t){t&&(this.tabTitleContainerEl=t,this.intersectionObserver=v("intersection",()=>this.updateScrollingState(),{root:t,threshold:[0,.5,1]}))}updateScrollingState(){let t=this.tabTitleContainerEl;if(!t)return;let e,l,a=t.scrollLeft,r=t.clientWidth,i=t.scrollWidth;this.effectiveDir==="ltr"?(e=a>0,l=a+r<i):(e=a<0,l=a!==-(i-r)),this.hasOverflowingStartTabTitle=e,this.hasOverflowingEndTabTitle=l}scrollToTabTitles(t){requestAnimationFrame(()=>{let e=this.tabTitleContainerEl,l=e.getBoundingClientRect(),a=Array.from(this.el.querySelectorAll("calcite-tab-title")),{effectiveDir:r}=this;t==="forward"&&a.reverse();let i=null;if(a.forEach(s=>{let n=s.getBoundingClientRect(),c=l.x+l.width,d=n.x+n.width;t==="forward"&&r==="ltr"||t==="backward"&&r==="rtl"?(n.x>c||d>c&&n.x>l.x)&&(i=s):(d<l.x||d<c&&n.x<l.x)&&(i=s)}),i){let{scrollerButtonWidth:s}=this,n=t==="forward"&&r==="ltr"||t==="backward"&&r==="rtl"?-s:i.offsetWidth-e.clientWidth+s,c=i.offsetLeft+n;e.scrollTo({left:c,behavior:"smooth"})}})}scrollToNextTabTitles(){this.scrollToTabTitles("forward")}scrollToPreviousTabTitles(){this.scrollToTabTitles("backward")}handleTabFocus(t,e,l){let a=y(this.enabledTabTitles,e,l);this.scrollTabTitleIntoView(a,"instant"),t.stopPropagation()}getIndexOfTabTitle(t,e=this.tabTitles){return e.indexOf(t)}onTabTitleScroll(){this.updateScrollingState()}async getTabTitleById(t){return Promise.all(this.tabTitles.map(e=>e.getTabIdentifier())).then(e=>this.tabTitles[e.indexOf(t)])}handleTabTitleClose(t){let{tabTitles:e}=this,l=t.selected,a=e.reduce((i,s,n)=>s.closed?i:[...i,n],[]),r=a.length;if(r===1&&e[a[0]].closable)e[a[0]].closable=!1,this.selectedTabId=a[0],l&&e[a[0]].activateTab();else if(r>1){let i=e.findIndex(n=>n===t),s=a.find(n=>n>i);this.selectedTabId===i&&(this.selectedTabId=s||r-1,e[this.selectedTabId].activateTab())}requestAnimationFrame(()=>{e[this.selectedTabId].focus()})}render(){return this.el.role="tablist",T`<div class=${b({[o.container]:!0,[o.containerHasStartTabTitleOverflow]:!!this.hasOverflowingStartTabTitle,[o.containerHasEndTabTitleOverflow]:!!this.hasOverflowingEndTabTitle,[`scale-${this.scale}`]:!0,[`position-${this.position}`]:!0,[w.rtl]:this.effectiveDir==="rtl"})}>${this.renderScrollButton("start")}<div class=${b({[o.tabTitleSlotWrapper]:!0})} @scroll=${this.onTabTitleScroll} @wheel=${this.onTabTitleWheel} ${x(this.storeTabTitleWrapperRef)}><slot @slotchange=${this.onSlotChange}></slot></div>${this.renderScrollButton("end")}</div>`}renderScrollButton(t){let{bordered:e,messages:l,hasOverflowingStartTabTitle:a,hasOverflowingEndTabTitle:r,scale:i}=this,s=t==="end";return I(t,T`<div class=${b({[o.scrollButtonContainer]:!0,[o.scrollBackwardContainerButton]:!s,[o.scrollForwardContainerButton]:s})} .hidden=${s&&!r||!s&&!a}><calcite-button .appearance=${e?"outline-fill":"transparent"} .ariaLabel=${s?l.nextTabTitles:l.previousTabTitles} class=${b({[o.scrollButton]:!0})} icon-flip-rtl=both .iconStart=${s?W.chevronRight:W.chevronLeft} kind=neutral @click=${s?this.scrollToNextTabTitles:this.scrollToPreviousTabTitles} .scale=${i} tabindex=-1></calcite-button></div>`)}};m("calcite-tab-nav",g);export{g as TabNav};
|
|
3
|
+
v3.0.0-next.112 */
|
|
4
|
+
import{a as k,b as B,c as H}from"./742HU5N7.js";import{a as I}from"./ESCM7A3P.js";import{a as v}from"./IH2FEA6S.js";import{a as O}from"./RLOAXP7B.js";import{b as x}from"./RXIVLADL.js";import{e as S,o as f,v as C,z as y}from"./FWD7LP7Y.js";import"./YOAR4AAW.js";import{B as w,I as m,d as u,e as T,u as h,v as p,w as b}from"./MYU6UPOF.js";var W={chevronRight:"chevron-right",chevronLeft:"chevron-left"},o={container:"tab-nav",containerHasEndTabTitleOverflow:"tab-nav--end-overflow",containerHasStartTabTitleOverflow:"tab-nav--start-overflow",scrollButton:"scroll-button",scrollButtonContainer:"scroll-button-container",scrollBackwardContainerButton:"scroll-button-container--backward",scrollForwardContainerButton:"scroll-button-container--forward",tabTitleSlotWrapper:"tab-titles-slot-wrapper"},$=u`:host{--calcite-internal-tab-nav-gradient-start-side: left;--calcite-internal-tab-nav-gradient-end-side: right;position:relative;display:flex}.scale-s{--calcite-internal-tab-nav-scroller-button-width: 24px;min-block-size:1.5rem}.scale-m{--calcite-internal-tab-nav-scroller-button-width: 32px;min-block-size:2rem}.scale-l{--calcite-internal-tab-nav-scroller-button-width: 44px;min-block-size:2.75rem}.calcite--rtl{--calcite-internal-tab-nav-gradient-start-side: right;--calcite-internal-tab-nav-gradient-end-side: left}.tab-nav--start-overflow .tab-titles-slot-wrapper{mask-image:linear-gradient(to var(--calcite-internal-tab-nav-gradient-end-side),transparent,transparent var(--calcite-internal-tab-nav-scroller-button-width),white var(--calcite-internal-tab-nav-scroller-button-width),white 51%)}.tab-nav--end-overflow .tab-titles-slot-wrapper{mask-image:linear-gradient(to var(--calcite-internal-tab-nav-gradient-start-side),transparent,transparent var(--calcite-internal-tab-nav-scroller-button-width),white var(--calcite-internal-tab-nav-scroller-button-width),white 51%)}.tab-nav--start-overflow.tab-nav--end-overflow .tab-titles-slot-wrapper{mask-image:linear-gradient(to var(--calcite-internal-tab-nav-gradient-end-side),transparent,transparent var(--calcite-internal-tab-nav-scroller-button-width),white var(--calcite-internal-tab-nav-scroller-button-width),white 51%,transparent 51%),linear-gradient(to var(--calcite-internal-tab-nav-gradient-start-side),transparent,transparent var(--calcite-internal-tab-nav-scroller-button-width),white var(--calcite-internal-tab-nav-scroller-button-width),white 51%,transparent 51%)}.tab-nav::-webkit-scrollbar{display:none;-ms-overflow-style:none;scrollbar-width:none}:host([layout=center]) ::slotted(calcite-tab-title){display:flex;flex-grow:1;flex-shrink:0;min-inline-size:auto;white-space:nowrap}:host([layout=center]) ::slotted(calcite-tab-title[selected]){overflow:unset}:host(:not([bordered])) .scale-l{--calcite-internal-tab-nav-gap: var(--calcite-spacing-xxl)}:host(:not([bordered])) .scale-m{--calcite-internal-tab-nav-gap: var(--calcite-spacing-xl)}:host(:not([bordered])) .scale-s{--calcite-internal-tab-nav-gap: var(--calcite-spacing-lg)}:host(:not([bordered])) .tab-titles-slot-wrapper{gap:var(--calcite-internal-tab-nav-gap)}:host([layout=center]:not([bordered])) .tab-titles-slot-wrapper{padding-inline:var(--calcite-spacing-xl)}.tab-nav,.tab-titles-slot-wrapper{display:flex;inline-size:100%;justify-content:flex-start;overflow:hidden;white-space:nowrap}.scroll-button-container{position:absolute;inset-block:0px}.scroll-button-container calcite-button{--calcite-offset-invert-focus: 1;--calcite-color-text-1: var(--calcite-color-text-3);block-size:100%}.scroll-button-container calcite-button:hover{--calcite-color-text-1: unset;--calcite-color-foreground-1: var(--calcite-color-transparent-hover);--calcite-color-foreground-3: var(--calcite-color-transparent)}.scroll-button-container--forward{inset-inline-end:0;z-index:var(--calcite-z-index)}.scroll-button-container--backward{inset-inline-start:0;z-index:var(--calcite-z-index)}:host(:not([bordered])) .scroll-button-container--backward:before,:host(:not([bordered])) .scroll-button-container--forward:before{background-color:var(--calcite-color-border-3);content:"";inline-size:var(--calcite-border-width-sm);inset-block-start:var(--calcite-border-width-md);inset-block-end:var(--calcite-border-width-md);position:absolute}:host(:not([bordered])) .scroll-button-container--backward:before{inset-inline-end:0}:host(:not([bordered])) .scroll-button-container--forward:before{inset-inline-start:0}:host([hidden]){display:none}[hidden]{display:none}`,g=class extends p{constructor(){super(),this.effectiveDir="ltr",this.lastScrollWheelAxis="x",this.resizeObserver=v("resize",()=>{this.updateScrollingState()}),this.hasOverflowingEndTabTitle=!1,this.hasOverflowingStartTabTitle=!1,this.bordered=!1,this.layout="inline",this.messages=O(),this.position="bottom",this.scale="m",this.selectedTitle=null,this.calciteInternalTabChange=h({cancelable:!1}),this.calciteInternalTabNavSlotChange=h(),this.calciteTabChange=h({cancelable:!1}),this.listen("calciteInternalTabsFocusPrevious",this.focusPreviousTabHandler),this.listen("calciteInternalTabsFocusNext",this.focusNextTabHandler),this.listen("calciteInternalTabsFocusFirst",this.focusFirstTabHandler),this.listen("calciteInternalTabsFocusLast",this.focusLastTabHandler),this.listen("calciteInternalTabsActivate",this.internalActivateTabHandler),this.listen("calciteTabsActivate",this.activateTabHandler),this.listen("calciteInternalTabsClose",this.internalCloseTabHandler),this.listen("calciteInternalTabTitleRegister",this.updateTabTitles),this.listenOn(document.body,"calciteInternalTabChange",this.globalInternalTabChangeHandler)}static{this.properties={hasOverflowingEndTabTitle:16,hasOverflowingStartTabTitle:16,selectedTabId:16,bordered:7,layout:3,messageOverrides:0,position:1,scale:1,selectedTitle:0,storageId:3,syncId:3}}static{this.styles=$}get enabledTabTitles(){return f(this.el,"calcite-tab-title:not([disabled])").filter(t=>!t.closed)}get scrollerButtonWidth(){let{scale:t}=this;return parseInt(t==="s"?k:t==="m"?B:H)}get tabTitles(){return f(this.el,"calcite-tab-title")}connectedCallback(){super.connectedCallback(),this.parentTabsEl=this.el.closest("calcite-tabs"),this.resizeObserver?.observe(this.el)}async load(){let t=`calcite-tab-nav-${this.storageId}`;if(localStorage&&this.storageId&&localStorage.getItem(t)){let e=JSON.parse(localStorage.getItem(t));this.selectedTabId=e}}willUpdate(t){t.has("selectedTitle")&&(this.hasUpdated||this.selectedTitle!==null)&&this.calciteInternalTabChange.emit({tab:this.selectedTabId}),t.has("selectedTabId")&&this.selectedTabIdChanged();let{parentTabsEl:e}=this;this.layout=e?.layout,this.bordered=e?.bordered,this.effectiveDir=S(this.el)}loaded(){this.scrollTabTitleIntoView(this.selectedTitle,"instant"),this.tabTitles.length&&this.tabTitles.every(t=>!t.selected)&&!this.selectedTabId&&this.tabTitles[0].getTabIdentifier().then(t=>{this.calciteInternalTabChange.emit({tab:t})})}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}focusPreviousTabHandler(t){this.handleTabFocus(t,t.target,"previous")}focusNextTabHandler(t){this.handleTabFocus(t,t.target,"next")}focusFirstTabHandler(t){this.handleTabFocus(t,t.target,"first")}focusLastTabHandler(t){this.handleTabFocus(t,t.target,"last")}internalActivateTabHandler(t){let e=t.target;this.selectedTabId=t.detail.tab?t.detail.tab:this.getIndexOfTabTitle(e),t.stopPropagation(),this.selectedTitle=e,this.scrollTabTitleIntoView(e)}scrollTabTitleIntoView(t,e="smooth"){t&&requestAnimationFrame(()=>{let l=this.effectiveDir==="ltr",a=this.tabTitleContainerEl,r=a.getBoundingClientRect(),i=t.getBoundingClientRect(),s=a.scrollLeft,n=l?this.hasOverflowingStartTabTitle:this.hasOverflowingEndTabTitle,c=l?this.hasOverflowingEndTabTitle:this.hasOverflowingStartTabTitle;if(i.left<r.left+(n?this.scrollerButtonWidth:0)){let d=s+(i.left-r.left)-this.scrollerButtonWidth;a.scrollTo({left:d,behavior:e})}else if(i.right>r.right-(c?this.scrollerButtonWidth:0)){let d=s+(i.right-r.right)+this.scrollerButtonWidth;a.scrollTo({left:d,behavior:e})}})}activateTabHandler(t){this.calciteTabChange.emit(),t.stopPropagation()}internalCloseTabHandler(t){let e=t.target;this.handleTabTitleClose(e),t.stopPropagation()}async updateTabTitles(t){t.target.selected&&(this.selectedTabId=t.detail,this.selectedTitle=await this.getTabTitleById(this.selectedTabId))}globalInternalTabChangeHandler(t){this.syncId&&t.target!==this.el&&t.target.syncId===this.syncId&&this.selectedTabId!==t.detail.tab&&(this.selectedTabId=t.detail.tab),t.stopPropagation()}async selectedTabIdChanged(){await this.componentOnReady(),localStorage&&this.storageId&&this.selectedTabId!==void 0&&this.selectedTabId!==null&&localStorage.setItem(`calcite-tab-nav-${this.storageId}`,JSON.stringify(this.selectedTabId)),this.calciteInternalTabChange.emit({tab:this.selectedTabId})}onTabTitleWheel(t){t.preventDefault();let{deltaX:e,deltaY:l}=t,a=Math.abs(e),r=Math.abs(l),i;a===r?i=this.lastScrollWheelAxis==="x"?e:l:a>r?(i=e,this.lastScrollWheelAxis="x"):(i=l,this.lastScrollWheelAxis="y");let s=(this.effectiveDir==="rtl"?-1:1)*i;t.currentTarget.scrollBy(s,0)}onSlotChange(t){this.intersectionObserver?.disconnect();let e=C(t,"calcite-tab-title");e.forEach(l=>{this.intersectionObserver?.observe(l)}),this.calciteInternalTabNavSlotChange.emit(e)}storeTabTitleWrapperRef(t){t&&(this.tabTitleContainerEl=t,this.intersectionObserver=v("intersection",()=>this.updateScrollingState(),{root:t,threshold:[0,.5,1]}))}updateScrollingState(){let t=this.tabTitleContainerEl;if(!t)return;let e,l,a=t.scrollLeft,r=t.clientWidth,i=t.scrollWidth;this.effectiveDir==="ltr"?(e=a>0,l=a+r<i):(e=a<0,l=a!==-(i-r)),this.hasOverflowingStartTabTitle=e,this.hasOverflowingEndTabTitle=l}scrollToTabTitles(t){requestAnimationFrame(()=>{let e=this.tabTitleContainerEl,l=e.getBoundingClientRect(),a=Array.from(this.el.querySelectorAll("calcite-tab-title")),{effectiveDir:r}=this;t==="forward"&&a.reverse();let i=null;if(a.forEach(s=>{let n=s.getBoundingClientRect(),c=l.x+l.width,d=n.x+n.width;t==="forward"&&r==="ltr"||t==="backward"&&r==="rtl"?(n.x>c||d>c&&n.x>l.x)&&(i=s):(d<l.x||d<c&&n.x<l.x)&&(i=s)}),i){let{scrollerButtonWidth:s}=this,n=t==="forward"&&r==="ltr"||t==="backward"&&r==="rtl"?-s:i.offsetWidth-e.clientWidth+s,c=i.offsetLeft+n;e.scrollTo({left:c,behavior:"smooth"})}})}scrollToNextTabTitles(){this.scrollToTabTitles("forward")}scrollToPreviousTabTitles(){this.scrollToTabTitles("backward")}handleTabFocus(t,e,l){let a=y(this.enabledTabTitles,e,l);this.scrollTabTitleIntoView(a,"instant"),t.stopPropagation()}getIndexOfTabTitle(t,e=this.tabTitles){return e.indexOf(t)}onTabTitleScroll(){this.updateScrollingState()}async getTabTitleById(t){return Promise.all(this.tabTitles.map(e=>e.getTabIdentifier())).then(e=>this.tabTitles[e.indexOf(t)])}handleTabTitleClose(t){let{tabTitles:e}=this,l=t.selected,a=e.reduce((i,s,n)=>s.closed?i:[...i,n],[]),r=a.length;if(r===1&&e[a[0]].closable)e[a[0]].closable=!1,this.selectedTabId=a[0],l&&e[a[0]].activateTab();else if(r>1){let i=e.findIndex(n=>n===t),s=a.find(n=>n>i);this.selectedTabId===i&&(this.selectedTabId=s||r-1,e[this.selectedTabId].activateTab())}requestAnimationFrame(()=>{e[this.selectedTabId].focus()})}render(){return this.el.role="tablist",T`<div class=${b({[o.container]:!0,[o.containerHasStartTabTitleOverflow]:!!this.hasOverflowingStartTabTitle,[o.containerHasEndTabTitleOverflow]:!!this.hasOverflowingEndTabTitle,[`scale-${this.scale}`]:!0,[`position-${this.position}`]:!0,[w.rtl]:this.effectiveDir==="rtl"})}>${this.renderScrollButton("start")}<div class=${b({[o.tabTitleSlotWrapper]:!0})} @scroll=${this.onTabTitleScroll} @wheel=${this.onTabTitleWheel} ${x(this.storeTabTitleWrapperRef)}><slot @slotchange=${this.onSlotChange}></slot></div>${this.renderScrollButton("end")}</div>`}renderScrollButton(t){let{bordered:e,messages:l,hasOverflowingStartTabTitle:a,hasOverflowingEndTabTitle:r,scale:i}=this,s=t==="end";return I(t,T`<div class=${b({[o.scrollButtonContainer]:!0,[o.scrollBackwardContainerButton]:!s,[o.scrollForwardContainerButton]:s})} .hidden=${s&&!r||!s&&!a}><calcite-button .appearance=${e?"outline-fill":"transparent"} .ariaLabel=${s?l.nextTabTitles:l.previousTabTitles} class=${b({[o.scrollButton]:!0})} icon-flip-rtl=both .iconStart=${s?W.chevronRight:W.chevronLeft} kind=neutral @click=${s?this.scrollToNextTabTitles:this.scrollToPreviousTabTitles} .scale=${i} tabindex=-1></calcite-button></div>`)}};m("calcite-tab-nav",g);export{g as TabNav};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{a as y}from"./
|
|
3
|
+
v3.0.0-next.112 */
|
|
4
|
+
import{a as y}from"./RLOAXP7B.js";import{a as x}from"./YOAR4AAW.js";import{I as k,d as g,e as r,f as h,i as p,v as z,w as l,x as f,z as u}from"./MYU6UPOF.js";var t={container:"container",loader:"loader",percentage:"percentage",progressRing:"ring--progress",ring:"ring",rings:"rings",text:"text",trackRing:"ring--track"},$=g`:host{position:relative;margin-inline:auto;display:flex;align-items:center;justify-content:center;opacity:1;flex-direction:column;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke-width:var(--calcite-internal-stroke-width);fill:none;transform:scale(1);padding-block:var(--calcite-loader-spacing, 4rem)}:host([scale=s]){--calcite-internal-stroke-width: 3;--calcite-internal-text-offset: var(--calcite-spacing-xxs);--calcite-internal-loader-font-size: var(--calcite-font-size--3);--calcite-internal-loader-size: 2rem;--calcite-internal-loader-size-inline: .75rem;--calcite-internal-loader-value-line-height: .625rem}:host([scale=m]){--calcite-internal-stroke-width: 6;--calcite-internal-text-offset: var(--calcite-spacing-sm);--calcite-internal-loader-font-size: var(--calcite-font-size-0);--calcite-internal-loader-size: 4rem;--calcite-internal-loader-size-inline: 1rem;--calcite-internal-loader-value-line-height: 1.375rem}:host([scale=l]){--calcite-internal-stroke-width: 8;--calcite-internal-text-offset: var(--calcite-spacing-md);--calcite-internal-loader-font-size: var(--calcite-font-size-2);--calcite-internal-loader-size: 6rem;--calcite-internal-loader-size-inline: 1.5rem;--calcite-internal-loader-value-line-height: 1.71875rem}.text{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-start:var(--calcite-loader-text-spacing, var(--calcite-internal-text-offset));font-weight:var(--calcite-loader-text-weight, var(--calcite-font-weight-normal));color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.percentage{display:block;text-align:center;font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));line-height:var(--calcite-internal-loader-value-line-height);align-self:center;color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.rings{position:relative;display:flex;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring--track{stroke:var(--calcite-loader-track-color, var(--calcite-color-transparent-press))}.ring--progress{stroke:var(--calcite-loader-progress-color, var(--calcite-color-brand));transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([type=indeterminate]) .ring--progress{animation:loader-clockwise calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) linear infinite}:host([inline]){--calcite-internal-stroke-width: 2;position:relative;margin:0;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));min-block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));vertical-align:calc(var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline))) * -1 * .2)}:host([inline]) .rings{inset-block-start:0px;margin:0;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring{inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring--progress{stroke:var(--calcite-loader-progress-color-inline, currentColor)}:host([complete]){opacity:0;transform:scale(.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1s,transform var(--calcite-internal-animation-timing-medium) linear 1s}:host([complete]) .rings{opacity:0;transform:scale(.75);transform-origin:center;transition:opacity calc(.18s * var(--calcite-internal-duration-factor)) linear .8s,transform calc(.18s * var(--calcite-internal-duration-factor)) linear .8s}:host([complete]) .percentage{color:var(--calcite-color-brand);transform:scale(1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear,transform var(--calcite-internal-animation-timing-medium) linear}@keyframes loader-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([hidden]){display:none}[hidden]{display:none}`,m=class extends z{constructor(){super(...arguments),this.messages=y({name:null}),this.complete=!1,this.inline=!1,this.scale="m",this.text="",this.type="indeterminate",this.value=0}static{this.properties={complete:7,inline:7,label:1,scale:3,text:1,type:3,value:9}}static{this.styles=$}connectedCallback(){super.connectedCallback(),this.updateFormatter()}load(){requestAnimationFrame(()=>this.valueChangeHandler())}willUpdate(e){e.has("value")&&(this.hasUpdated||this.value!==0)&&this.valueChangeHandler(),(e.has("type")&&(this.hasUpdated||this.type!=="indeterminate")||e.has("messages"))&&this.updateFormatter()}valueChangeHandler(){this.complete=this.type.startsWith("determinate")&&this.value===100}formatValue(){return this.type!=="determinate-value"?`${this.value}`:this.formatter.format(this.value/100)}getSize(e){return{s:32,m:64,l:96}[e]}getInlineSize(e){return{s:12,m:16,l:24}[e]}updateFormatter(){this.type!=="determinate-value"||this.formatter?.resolvedOptions().locale===this.messages._lang||(this.formatter=new Intl.NumberFormat(this.messages._lang,{style:"percent"}))}render(){let{el:e,inline:n,label:s,text:c,type:i,value:o}=this,d=e.id||x(),a=i!=="indeterminate",v=Math.floor(o);return this.el.ariaLabel=s,this.el.ariaValueMax=a?"100":void 0,this.el.ariaValueMin=a?"0":void 0,this.el.ariaValueNow=a?v.toString():void 0,u(this.el,"id",d),this.el.role="progressbar",r`<div class=${l(t.rings)}>${this.renderRing("track")}${this.renderRing("progress")}${!n&&a&&r`<div class=${l(t.percentage)}>${this.formatValue()}</div>`||""}</div>${!n&&c&&r`<div class=${l(t.text)}>${c}</div>`||""}`}renderRing(e){let{inline:n,scale:s,value:c}=this,i=n?this.getInlineSize(s):this.getSize(s),o=i*.45,d;if(e==="progress"){let a=2*o*Math.PI,v=(this.type.startsWith("determinate")?c:24)/100*a,b=a-v;d={"stroke-dasharray":`${v} ${b}`}}return r`<svg aria-hidden=true class=${l({[t.ring]:!0,[t.trackRing]:e==="track",[t.progressRing]:e==="progress"})} style=${f(d)} viewBox=${`0 0 ${i} ${i}`}>${h`<circle cx=${i/2} cy=${i/2} r=${o??p} />`}</svg>`}};k("calcite-loader",m);export{m as Loader};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
3
|
+
v3.0.0-next.112 */
|
|
4
4
|
var t={menu:"menu",defaultTrigger:"default-trigger"},e={tooltip:"tooltip",trigger:"trigger"},a={menu:"ellipsis"},i="data-active";export{t as a,e as b,a as c,i as d};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
3
|
+
v3.0.0-next.112 */
|
|
4
4
|
function we(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var n=we;var We=typeof global=="object"&&global&&global.Object===Object&&global,A=We;var Re=typeof self=="object"&&self&&self.Object===Object&&self,Le=A||Re||Function("return this")(),g=Le;var ke=function(){return g.Date.now()},O=ke;var Fe=/\s/;function Pe(e){for(var t=e.length;t--&&Fe.test(e.charAt(t)););return t}var D=Pe;var Me=/^\s+/;function Ne(e){return e&&e.slice(0,D(e)+1).replace(Me,"")}var q=Ne;var Ce=g.Symbol,i=Ce;var G=Object.prototype,Ue=G.hasOwnProperty,De=G.toString,T=i?i.toStringTag:void 0;function qe(e){var t=Ue.call(e,T),r=e[T];try{e[T]=void 0;var o=!0}catch{}var f=De.call(e);return o&&(t?e[T]=r:delete e[T]),f}var z=qe;var Ge=Object.prototype,ze=Ge.toString;function Ke(e){return ze.call(e)}var K=Ke;var _e="[object Null]",$e="[object Undefined]",_=i?i.toStringTag:void 0;function Ve(e){return e==null?e===void 0?$e:_e:_&&_ in Object(e)?z(e):K(e)}var c=Ve;function Xe(e){return e!=null&&typeof e=="object"}var y=Xe;var He="[object Symbol]";function Je(e){return typeof e=="symbol"||y(e)&&c(e)==He}var v=Je;var $=NaN,Ye=/^[-+]0x[0-9a-f]+$/i,Qe=/^0b[01]+$/i,Ze=/^0o[0-7]+$/i,et=parseInt;function tt(e){if(typeof e=="number")return e;if(v(e))return $;if(n(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=n(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=q(e);var r=Qe.test(e);return r||Ze.test(e)?et(e.slice(2),r?2:8):Ye.test(e)?$:+e}var R=tt;var rt="Expected a function",ot=Math.max,at=Math.min;function ft(e,t,r){var o,f,d,m,s,l,u=0,M=!1,b=!1,B=!0;if(typeof e!="function")throw new TypeError(rt);t=R(t)||0,n(r)&&(M=!!r.leading,b="maxWait"in r,d=b?ot(R(r.maxWait)||0,t):d,B="trailing"in r?!!r.trailing:B);function w(p){var x=o,h=f;return o=f=void 0,u=p,m=e.apply(h,x),m}function ve(p){return u=p,s=setTimeout(I,t),M?w(p):m}function Se(p){var x=p-l,h=p-u,U=t-x;return b?at(U,d-h):U}function N(p){var x=p-l,h=p-u;return l===void 0||x>=t||x<0||b&&h>=d}function I(){var p=O();if(N(p))return C(p);s=setTimeout(I,Se(p))}function C(p){return s=void 0,B&&o?w(p):(o=f=void 0,m)}function Ee(){s!==void 0&&clearTimeout(s),u=0,o=l=f=s=void 0}function Be(){return s===void 0?m:C(O())}function W(){var p=O(),x=N(p);if(o=arguments,f=this,l=p,x){if(s===void 0)return ve(l);if(b)return clearTimeout(s),s=setTimeout(I,t),w(l)}return s===void 0&&(s=setTimeout(I,t)),m}return W.cancel=Ee,W.flush=Be,W}var L=ft;function st(e,t){for(var r=-1,o=e==null?0:e.length,f=Array(o);++r<o;)f[r]=t(e[r],r,e);return f}var V=st;var pt=Array.isArray,S=pt;var ut=1/0,X=i?i.prototype:void 0,H=X?X.toString:void 0;function J(e){if(typeof e=="string")return e;if(S(e))return V(e,J)+"";if(v(e))return H?H.call(e):"";var t=e+"";return t=="0"&&1/e==-ut?"-0":t}var Y=J;function mt(e){return e==null?"":Y(e)}var Q=mt;var Z=/[\\^$.*+?()[\]{}|]/g,lt=RegExp(Z.source);function dt(e){return e=Q(e),e&<.test(e)?e.replace(Z,"\\$&"):e}var nt=dt;var it="Expected a function";function xt(e,t,r){var o=!0,f=!0;if(typeof e!="function")throw new TypeError(it);return n(r)&&(o="leading"in r?!!r.leading:o,f="trailing"in r?!!r.trailing:f),L(e,t,{leading:o,maxWait:t,trailing:f})}var ct=xt;function yt(e){return e}var ee=yt;var gt="[object AsyncFunction]",bt="[object Function]",ht="[object GeneratorFunction]",Tt="[object Proxy]";function jt(e){if(!n(e))return!1;var t=c(e);return t==bt||t==ht||t==gt||t==Tt}var te=jt;var It=9007199254740991,At=/^(?:0|[1-9]\d*)$/;function Ot(e,t){var r=typeof e;return t=t??It,!!t&&(r=="number"||r!="symbol"&&At.test(e))&&e>-1&&e%1==0&&e<t}var re=Ot;var vt=9007199254740991;function St(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=vt}var E=St;function Et(e){return e!=null&&E(e.length)&&!te(e)}var oe=Et;var Bt=Object.prototype;function wt(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Bt;return e===r}var ae=wt;function Wt(e,t){for(var r=-1,o=Array(e);++r<e;)o[r]=t(r);return o}var fe=Wt;var Rt="[object Arguments]";function Lt(e){return y(e)&&c(e)==Rt}var k=Lt;var se=Object.prototype,kt=se.hasOwnProperty,Ft=se.propertyIsEnumerable,Pt=k(function(){return arguments}())?k:function(e){return y(e)&&kt.call(e,"callee")&&!Ft.call(e,"callee")},pe=Pt;function Mt(){return!1}var ue=Mt;var de=typeof exports=="object"&&exports&&!exports.nodeType&&exports,me=de&&typeof module=="object"&&module&&!module.nodeType&&module,Nt=me&&me.exports===de,le=Nt?g.Buffer:void 0,Ct=le?le.isBuffer:void 0,Ut=Ct||ue,ne=Ut;var Dt="[object Arguments]",qt="[object Array]",Gt="[object Boolean]",zt="[object Date]",Kt="[object Error]",_t="[object Function]",$t="[object Map]",Vt="[object Number]",Xt="[object Object]",Ht="[object RegExp]",Jt="[object Set]",Yt="[object String]",Qt="[object WeakMap]",Zt="[object ArrayBuffer]",er="[object DataView]",tr="[object Float32Array]",rr="[object Float64Array]",or="[object Int8Array]",ar="[object Int16Array]",fr="[object Int32Array]",sr="[object Uint8Array]",pr="[object Uint8ClampedArray]",ur="[object Uint16Array]",mr="[object Uint32Array]",a={};a[tr]=a[rr]=a[or]=a[ar]=a[fr]=a[sr]=a[pr]=a[ur]=a[mr]=!0;a[Dt]=a[qt]=a[Zt]=a[Gt]=a[er]=a[zt]=a[Kt]=a[_t]=a[$t]=a[Vt]=a[Xt]=a[Ht]=a[Jt]=a[Yt]=a[Qt]=!1;function lr(e){return y(e)&&E(e.length)&&!!a[c(e)]}var ie=lr;function dr(e){return function(t){return e(t)}}var xe=dr;var ce=typeof exports=="object"&&exports&&!exports.nodeType&&exports,j=ce&&typeof module=="object"&&module&&!module.nodeType&&module,nr=j&&j.exports===ce,F=nr&&A.process,ir=function(){try{var e=j&&j.require&&j.require("util").types;return e||F&&F.binding&&F.binding("util")}catch{}}(),P=ir;var ye=P&&P.isTypedArray,xr=ye?xe(ye):ie,ge=xr;var cr=Object.prototype,yr=cr.hasOwnProperty;function gr(e,t){var r=S(e),o=!r&&pe(e),f=!r&&!o&&ne(e),d=!r&&!o&&!f&&ge(e),m=r||o||f||d,s=m?fe(e.length,String):[],l=s.length;for(var u in e)(t||yr.call(e,u))&&!(m&&(u=="length"||f&&(u=="offset"||u=="parent")||d&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||re(u,l)))&&s.push(u);return s}var be=gr;function br(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var he=br;var hr=Object.prototype,Tr=hr.hasOwnProperty;function jr(e){if(!n(e))return he(e);var t=ae(e),r=[];for(var o in e)o=="constructor"&&(t||!Tr.call(e,o))||r.push(o);return r}var Te=jr;function Ir(e){return oe(e)?be(e,!0):Te(e)}var je=Ir;function Ar(e){return function(t,r,o){for(var f=-1,d=Object(t),m=o(t),s=m.length;s--;){var l=m[e?s:++f];if(r(d[l],l,d)===!1)break}return t}}var Ie=Ar;var Or=Ie(),Ae=Or;function vr(e){return typeof e=="function"?e:ee}var Oe=vr;function Sr(e,t){return e==null?e:Ae(e,Oe(t),je)}var Er=Sr;export{L as a,nt as b,Er as c,ct as d};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{c}from"./
|
|
3
|
+
v3.0.0-next.112 */
|
|
4
|
+
import{c}from"./4LK3C6YX.js";import{h as i}from"./P5XNZSLG.js";import{J as s}from"./MYU6UPOF.js";var a={},r={};async function f(t){let n=i(t);if(a[n])return a[n];r[n]||(r[n]=fetch(s(`./assets/date-picker/nls/${n}.json`)).then(e=>e.json()).catch(()=>(console.error(`Translations for "${n}" not found or invalid, falling back to english`),f("en"))));let o=await r[n];return a[n]=o,o}function u(t){return t.map((n,o)=>c(n,o===1))}export{f as a,u as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{a as I,b as w}from"./36DTW2EC.js";import{a as x}from"./JCZIZMKQ.js";import{a as s}from"./XY7DR573.js";import"./XGGCYCLU.js";import{a as r}from"./ALGCYGFE.js";import{a as C}from"./XODNGXTR.js";import{a as k,b as l}from"./P5ZVYEQW.js";import{c as T,e as d,r as z}from"./WHQERKO3.js";import{a as y}from"./2BGOXXHV.js";import{F as g,I as f,d as p,e as c,i as m,u as i,v,w as n,z as a}from"./5JAMHCQS.js";var e={closeButton:"close-button",container:"container",containerBottom:"container--bottom",content:"content",contentHasText:"content--has-text",iconEnd:"icon-end",iconPresent:"icon-present",iconStart:"icon-start",titleIcon:"calcite-tab-title--icon",scale:h=>`scale-${h}`,selectedIndicator:"selected-indicator"},A={close:"x"},H=p`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block;outline:2px solid transparent;outline-offset:2px;margin-inline-start:0px}:host([layout=inline]){flex:0 1 auto}:host([layout=center]){flex:1 1 auto}.content{position:relative;margin-block-end:.125rem;box-sizing:border-box;display:flex;block-size:100%;align-items:center;justify-content:center}.scale-s .content{padding-block:.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}.scale-s .close-button{inline-size:1.25rem}.scale-m .content{padding-block:.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}.scale-m .close-button{inline-size:1.75rem}.scale-l .content{padding-block:.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}.scale-l .close-button{inline-size:2rem}:host([closable]) .content{border-block-end-color:transparent}:host([layout=inline]) .content,:host([layout=center]) .content{padding-inline:.25rem}:host([layout=center]) .scale-s,:host([layout=center]) .scale-m,:host([layout=center]) .scale-l{margin-block:0px;justify-content:center;text-align:center}:host([layout=center]) .scale-s .content,:host([layout=center]) .scale-m .content,:host([layout=center]) .scale-l .content{flex:1 1 auto;flex-grow:1}.container{position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;align-content:center;justify-content:space-between;padding-inline:0px;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-color-text-3);outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}.selected-indicator{position:absolute;display:block;block-size:.125rem;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;inset-block-end:0;inset-inline-start:0;inset-inline-end:0;inline-size:100%}.container--bottom .selected-indicator{inset-block-end:unset;inset-block-start:0}:host([bordered]) .selected-indicator{inset-block-start:0;inset-block-end:unset;inset-inline-start:-1px;inset-inline-end:0;inline-size:calc(100% + var(--calcite-spacing-base))}:host([bordered]) .container:not(.container--bottom){border-block-end:1px solid transparent}:host([bordered]:not([selected]):hover) .container:not(.container--bottom){border-block-end:1px solid var(--calcite-color-border-1)}:host([bordered]:not([selected]):hover:not(:focus)) .selected-indicator{background-color:var(--calcite-color-foreground-2)}:host([bordered]:not([selected]):hover:not(:focus)) .container:not(.container--bottom) .selected-indicator{box-shadow:inset 0 1px var(--calcite-color-border-1)}:host([bordered]:not([selected]):hover:not(:focus)) .container.container--bottom .selected-indicator{box-shadow:inset 0 -1px var(--calcite-color-border-1)}:host([bordered][selected]) .container:after{position:absolute;display:block;block-size:.125rem;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;inset-block-end:-1px;inset-inline-start:0;inset-inline-end:0;inline-size:100%;background:var(--calcite-color-foreground-1);content:""}:host([bordered][selected]) .container.container--bottom:after{inset-block-start:-1px}:host([bordered][selected]:hover) .container:after{background:var(--calcite-color-foreground-2)}:host([bordered][selected]:focus) .container:after{background:transparent}:host([bordered]) .container--bottom .selected-indicator{inset-block-start:unset;inset-block-end:0}:host([selected]) .selected-indicator,:host([selected]:hover) .selected-indicator{background-color:var(--calcite-color-brand)}:host(:hover) .selected-indicator{background-color:var(--calcite-color-border-3)}:host(:focus) .selected-indicator,:host(:active) .selected-indicator{background-color:var(--calcite-color-brand)}@media (forced-colors: active){.selected-indicator{background-color:highlight}}:host([closed]){display:none}:host([selected]) .container{border-color:transparent;color:var(--calcite-color-text-1)}:host(:focus) .container{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host(:focus) .container:focus-within{outline-color:transparent}:host(:active) a,:host(:focus) a,:host(:hover) a{border-color:var(--calcite-color-border-2);color:var(--calcite-color-text-1);text-decoration-line:none}:host([disabled]) .container{pointer-events:none;opacity:.5}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.calcite-tab-title--icon{position:relative;margin:0;display:inline-flex;align-self:center}.calcite-tab-title--icon svg{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}.content--has-text{padding:.25rem}.content--has-text .calcite-tab-title--icon.icon-start{margin-inline-end:var(--calcite-spacing-sm);color:var(--calcite-tab-icon-color-start, var(--calcite-icon-color))}.content--has-text .calcite-tab-title--icon.icon-end{margin-inline-start:var(--calcite-spacing-sm);color:var(--calcite-tab-icon-color-end, var(--calcite-icon-color))}.close-button{display:flex;block-size:100%;cursor:pointer;appearance:none;align-content:center;align-items:center;justify-content:center;align-self:center;border-style:none;background-color:transparent;color:var(--calcite-color-text-3);outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;margin-inline-start:var(--calcite-spacing-sm);margin-inline-end:var(--calcite-spacing-px);block-size:calc(100% - var(--calcite-spacing-xxs))}.close-button:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)))}.close-button:focus,.close-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-3)}.close-button:active{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-3)}.close-button calcite-icon{color:inherit}:host([icon-start][icon-end]) .calcite-tab-title--icon:first-child{margin-inline-end:var(--calcite-spacing-sm)}:host([bordered]) .container:not(.container--bottom) .close-button{block-size:calc(100% - var(--calcite-spacing-px));margin-block-start:-1px}:host([bordered]) .container .close-button calcite-icon{margin-block-start:var(--calcite-spacing-px)}:host([bordered]) .container .close-button:focus,:host([bordered]) .container .close-button:hover,:host([bordered]) .container .close-button:active{box-shadow:0 2px 0 0 var(--calcite-color-foreground-3)}:host([bordered]) .container.container--bottom .close-button{box-shadow:0 -2px 0 0 transparent}:host([bordered]) .container.container--bottom .close-button calcite-icon{margin-block-end:var(--calcite-spacing-px)}:host([bordered]) .container.container--bottom .close-button:focus,:host([bordered]) .container.container--bottom .close-button:hover,:host([bordered]) .container.container--bottom .close-button:active{box-shadow:0 -2px 0 0 var(--calcite-color-foreground-3)}:host([bordered][selected]){box-shadow:inset 0 -1px var(--calcite-color-foreground-1)}:host([bordered]:not([selected])) .container .close-button{box-shadow:0 2px 0 0 transparent}:host([bordered]:hover) .container{background-color:var(--calcite-color-foreground-2)}:host([bordered]) .container{border-inline:var(--calcite-spacing-px) solid transparent}:host([selected][bordered]) .container{border-inline-color:var(--calcite-color-border-1)}:host([layout=inline][bordered]) .scale-m .content,:host([layout=center][bordered]) .scale-m .content{padding-inline:.75rem}:host([layout=inline][bordered]) .scale-s .content,:host([layout=center][bordered]) .scale-s .content{padding-inline:.5rem}:host([layout=inline][bordered]) .scale-l .content,:host([layout=center][bordered]) .scale-l .content{padding-inline:1rem}:host([layout=inline][closable]) .scale-s .content,:host([layout=inline][closable]) .scale-m .content,:host([layout=inline][closable]) .scale-l .content{padding-inline-end:0}@media (forced-colors: active){:host{outline-width:0;outline-offset:0}:host(:focus) .container{outline-color:highlight}:host([bordered]) .container{border-block-end-style:solid}:host([bordered]) .container--bottom{border-block-start-style:solid}:host([bordered][selected]) .container{border-block-end-style:none}:host([bordered][selected]) .container--bottom{border-block-start-style:none}.close-button{z-index:var(--calcite-z-index)}}:host([hidden]){display:none}[hidden]{display:none}`,b=class extends v{constructor(){super(),this.closeButtonEl=k(),this.guid=`calcite-tab-title-${y()}`,this.mutationObserver=r("mutation",()=>this.updateHasText()),this.resizeObserver=r("resize",()=>{this.calciteInternalTabIconChanged.emit()}),this.hasText=!1,this.bordered=!1,this.closable=!1,this.closed=!1,this.disabled=!1,this.messages=C(),this.position="top",this.scale="m",this.selected=!1,this.calciteInternalTabIconChanged=i({cancelable:!1}),this.calciteInternalTabTitleRegister=i({cancelable:!1}),this.calciteInternalTabsActivate=i({cancelable:!1}),this.calciteInternalTabsClose=i({cancelable:!1}),this.calciteInternalTabsFocusFirst=i({cancelable:!1}),this.calciteInternalTabsFocusLast=i({cancelable:!1}),this.calciteInternalTabsFocusNext=i({cancelable:!1}),this.calciteInternalTabsFocusPrevious=i({cancelable:!1}),this.calciteTabsActivate=i({cancelable:!1}),this.calciteTabsClose=i({cancelable:!1}),this.listenOn(document.body,"calciteInternalTabChange",this.internalTabChangeHandler),this.listen("click",this.onClick),this.listen("keydown",this.keyDownHandler)}static{this.properties={controls:16,hasText:16,bordered:7,closable:7,closed:7,disabled:7,iconEnd:3,iconFlipRtl:3,iconStart:3,layout:3,messageOverrides:0,position:1,scale:1,selected:7,tab:3}}static{this.styles=H}async activateTab(t=!0){if(this.disabled||this.closed)return;let o={tab:this.tab};this.calciteInternalTabsActivate.emit(o),t&&requestAnimationFrame(()=>this.calciteTabsActivate.emit())}async getTabIdentifier(){return this.tab?this.tab:this.getTabIndex()}async getTabIndex(){return Array.prototype.indexOf.call(T(this.el.parentElement.children).filter(t=>t.matches("calcite-tab-title")),this.el)}_updateAriaInfo(t=[],o=[]){this.controls=t[o.indexOf(this.el.id)]||null}connectedCallback(){super.connectedCallback(),this.setupTextContentObserver(),this.parentTabsEl=this.el.closest("calcite-tabs")}async load(){g()&&this.updateHasText(),this.tab&&this.selected&&this.activateTab(!1)}willUpdate(t){t.has("selected")&&(this.hasUpdated||this.selected!==!1)&&this.selectedHandler(),this.parentTabsEl&&(this.layout=this.parentTabsEl.layout,this.bordered=this.parentTabsEl.bordered)}updated(){I(this)}async loaded(){this.calciteInternalTabTitleRegister.emit(await this.getTabIdentifier())}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),document.body?.dispatchEvent(new CustomEvent("calciteTabTitleUnregister",{detail:this.el})),this.resizeObserver?.disconnect()}selectedHandler(){this.selected&&this.activateTab(!1)}internalTabChangeHandler(t){t.composedPath().find(o=>o.tagName==="CALCITE-TABS")===this.parentTabsEl&&(this.tab?this.selected=this.tab===t.detail.tab:this.getTabIndex().then(o=>{this.selected=o===t.detail.tab}),t.stopPropagation())}onClick(){this.activateTab()}keyDownHandler(t){switch(t.key){case" ":case"Enter":t.composedPath().includes(this.closeButtonEl.value)||(this.activateTab(),t.preventDefault());break;case"ArrowRight":t.preventDefault(),d(this.el)==="ltr"?this.calciteInternalTabsFocusNext.emit():this.calciteInternalTabsFocusPrevious.emit();break;case"ArrowLeft":t.preventDefault(),d(this.el)==="ltr"?this.calciteInternalTabsFocusPrevious.emit():this.calciteInternalTabsFocusNext.emit();break;case"Home":t.preventDefault(),this.calciteInternalTabsFocusFirst.emit();break;case"End":t.preventDefault(),this.calciteInternalTabsFocusLast.emit();break}}closeClickHandler(){this.closeTabTitleAndNotify()}updateHasText(){this.hasText=this.el.textContent.trim().length>0}setupTextContentObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}closeTabTitleAndNotify(){this.closed=!0,this.calciteInternalTabsClose.emit({tab:this.tab}),this.calciteTabsClose.emit()}render(){let{el:t,closed:o}=this,$=t.id||this.guid,E=c`<calcite-icon class=${n({[e.titleIcon]:!0,[e.iconStart]:!0})} .flipRtl=${this.iconFlipRtl==="start"||this.iconFlipRtl==="both"} .icon=${this.iconStart} .scale=${s(this.scale)}></calcite-icon>`,F=c`<calcite-icon class=${n({[e.titleIcon]:!0,[e.iconEnd]:!0})} .flipRtl=${this.iconFlipRtl==="end"||this.iconFlipRtl==="both"} .icon=${this.iconEnd} .scale=${s(this.scale)}></calcite-icon>`;return a(this.el,"aria-controls",this.controls),this.el.ariaSelected=z(this.selected),a(this.el,"id",$),this.el.role="tab",a(this.el,"tabIndex",this.selected&&!this.disabled?0:-1),w({disabled:this.disabled,children:c`<div class=${n({[e.container]:!0,[e.containerBottom]:this.position==="bottom",[e.iconPresent]:!!this.iconStart||!!this.iconEnd,[e.scale(this.scale)]:!0})} .hidden=${o} ${l(u=>u?this.resizeObserver?.observe(u):null)}><div class=${n({[e.content]:!0,[e.contentHasText]:this.hasText})}>${this.iconStart?E:null}<slot></slot>${this.iconEnd?F:null}</div>${this.renderCloseButton()}<div class=${n(e.selectedIndicator)}></div></div>`})}renderCloseButton(){let{closable:t,messages:o}=this;return t?x(e.closeButton,c`<button .ariaLabel=${o.close} class=${n(e.closeButton)} @click=${this.closeClickHandler} title=${o.close??m} type=button ${l(this.closeButtonEl)}><calcite-icon .icon=${A.close} .scale=${s(this.scale)}></calcite-icon></button>`):null}};f("calcite-tab-title",b);export{b as TabTitle};
|
|
3
|
+
v3.0.0-next.112 */
|
|
4
|
+
import{a as I,b as w}from"./NGSLE2LS.js";import{a as x}from"./ESCM7A3P.js";import{a as s}from"./ECWX7QSB.js";import"./4QM3GEL3.js";import{a as r}from"./IH2FEA6S.js";import{a as C}from"./RLOAXP7B.js";import{a as k,b as l}from"./RXIVLADL.js";import{c as T,e as d,r as z}from"./FWD7LP7Y.js";import{a as y}from"./YOAR4AAW.js";import{F as g,I as f,d as p,e as c,i as m,u as i,v,w as n,z as a}from"./MYU6UPOF.js";var e={closeButton:"close-button",container:"container",containerBottom:"container--bottom",content:"content",contentHasText:"content--has-text",iconEnd:"icon-end",iconPresent:"icon-present",iconStart:"icon-start",titleIcon:"calcite-tab-title--icon",scale:h=>`scale-${h}`,selectedIndicator:"selected-indicator"},A={close:"x"},H=p`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block;outline:2px solid transparent;outline-offset:2px;margin-inline-start:0px}:host([layout=inline]){flex:0 1 auto}:host([layout=center]){flex:1 1 auto}.content{position:relative;margin-block-end:.125rem;box-sizing:border-box;display:flex;block-size:100%;align-items:center;justify-content:center}.scale-s .content{padding-block:.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}.scale-s .close-button{inline-size:1.25rem}.scale-m .content{padding-block:.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}.scale-m .close-button{inline-size:1.75rem}.scale-l .content{padding-block:.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}.scale-l .close-button{inline-size:2rem}:host([closable]) .content{border-block-end-color:transparent}:host([layout=inline]) .content,:host([layout=center]) .content{padding-inline:.25rem}:host([layout=center]) .scale-s,:host([layout=center]) .scale-m,:host([layout=center]) .scale-l{margin-block:0px;justify-content:center;text-align:center}:host([layout=center]) .scale-s .content,:host([layout=center]) .scale-m .content,:host([layout=center]) .scale-l .content{flex:1 1 auto;flex-grow:1}.container{position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;align-content:center;justify-content:space-between;padding-inline:0px;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-color-text-3);outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}.selected-indicator{position:absolute;display:block;block-size:.125rem;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;inset-block-end:0;inset-inline-start:0;inset-inline-end:0;inline-size:100%}.container--bottom .selected-indicator{inset-block-end:unset;inset-block-start:0}:host([bordered]) .selected-indicator{inset-block-start:0;inset-block-end:unset;inset-inline-start:-1px;inset-inline-end:0;inline-size:calc(100% + var(--calcite-spacing-base))}:host([bordered]) .container:not(.container--bottom){border-block-end:1px solid transparent}:host([bordered]:not([selected]):hover) .container:not(.container--bottom){border-block-end:1px solid var(--calcite-color-border-1)}:host([bordered]:not([selected]):hover:not(:focus)) .selected-indicator{background-color:var(--calcite-color-foreground-2)}:host([bordered]:not([selected]):hover:not(:focus)) .container:not(.container--bottom) .selected-indicator{box-shadow:inset 0 1px var(--calcite-color-border-1)}:host([bordered]:not([selected]):hover:not(:focus)) .container.container--bottom .selected-indicator{box-shadow:inset 0 -1px var(--calcite-color-border-1)}:host([bordered][selected]) .container:after{position:absolute;display:block;block-size:.125rem;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;inset-block-end:-1px;inset-inline-start:0;inset-inline-end:0;inline-size:100%;background:var(--calcite-color-foreground-1);content:""}:host([bordered][selected]) .container.container--bottom:after{inset-block-start:-1px}:host([bordered][selected]:hover) .container:after{background:var(--calcite-color-foreground-2)}:host([bordered][selected]:focus) .container:after{background:transparent}:host([bordered]) .container--bottom .selected-indicator{inset-block-start:unset;inset-block-end:0}:host([selected]) .selected-indicator,:host([selected]:hover) .selected-indicator{background-color:var(--calcite-color-brand)}:host(:hover) .selected-indicator{background-color:var(--calcite-color-border-3)}:host(:focus) .selected-indicator,:host(:active) .selected-indicator{background-color:var(--calcite-color-brand)}@media (forced-colors: active){.selected-indicator{background-color:highlight}}:host([closed]){display:none}:host([selected]) .container{border-color:transparent;color:var(--calcite-color-text-1)}:host(:focus) .container{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host(:focus) .container:focus-within{outline-color:transparent}:host(:active) a,:host(:focus) a,:host(:hover) a{border-color:var(--calcite-color-border-2);color:var(--calcite-color-text-1);text-decoration-line:none}:host([disabled]) .container{pointer-events:none;opacity:.5}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.calcite-tab-title--icon{position:relative;margin:0;display:inline-flex;align-self:center}.calcite-tab-title--icon svg{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}.content--has-text{padding:.25rem}.content--has-text .calcite-tab-title--icon.icon-start{margin-inline-end:var(--calcite-spacing-sm);color:var(--calcite-tab-icon-color-start, var(--calcite-icon-color))}.content--has-text .calcite-tab-title--icon.icon-end{margin-inline-start:var(--calcite-spacing-sm);color:var(--calcite-tab-icon-color-end, var(--calcite-icon-color))}.close-button{display:flex;block-size:100%;cursor:pointer;appearance:none;align-content:center;align-items:center;justify-content:center;align-self:center;border-style:none;background-color:transparent;color:var(--calcite-color-text-3);outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;margin-inline-start:var(--calcite-spacing-sm);margin-inline-end:var(--calcite-spacing-px);block-size:calc(100% - var(--calcite-spacing-xxs))}.close-button:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)))}.close-button:focus,.close-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-3)}.close-button:active{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-3)}.close-button calcite-icon{color:inherit}:host([icon-start][icon-end]) .calcite-tab-title--icon:first-child{margin-inline-end:var(--calcite-spacing-sm)}:host([bordered]) .container:not(.container--bottom) .close-button{block-size:calc(100% - var(--calcite-spacing-px));margin-block-start:-1px}:host([bordered]) .container .close-button calcite-icon{margin-block-start:var(--calcite-spacing-px)}:host([bordered]) .container .close-button:focus,:host([bordered]) .container .close-button:hover,:host([bordered]) .container .close-button:active{box-shadow:0 2px 0 0 var(--calcite-color-foreground-3)}:host([bordered]) .container.container--bottom .close-button{box-shadow:0 -2px 0 0 transparent}:host([bordered]) .container.container--bottom .close-button calcite-icon{margin-block-end:var(--calcite-spacing-px)}:host([bordered]) .container.container--bottom .close-button:focus,:host([bordered]) .container.container--bottom .close-button:hover,:host([bordered]) .container.container--bottom .close-button:active{box-shadow:0 -2px 0 0 var(--calcite-color-foreground-3)}:host([bordered][selected]){box-shadow:inset 0 -1px var(--calcite-color-foreground-1)}:host([bordered]:not([selected])) .container .close-button{box-shadow:0 2px 0 0 transparent}:host([bordered]:hover) .container{background-color:var(--calcite-color-foreground-2)}:host([bordered]) .container{border-inline:var(--calcite-spacing-px) solid transparent}:host([selected][bordered]) .container{border-inline-color:var(--calcite-color-border-1)}:host([layout=inline][bordered]) .scale-m .content,:host([layout=center][bordered]) .scale-m .content{padding-inline:.75rem}:host([layout=inline][bordered]) .scale-s .content,:host([layout=center][bordered]) .scale-s .content{padding-inline:.5rem}:host([layout=inline][bordered]) .scale-l .content,:host([layout=center][bordered]) .scale-l .content{padding-inline:1rem}:host([layout=inline][closable]) .scale-s .content,:host([layout=inline][closable]) .scale-m .content,:host([layout=inline][closable]) .scale-l .content{padding-inline-end:0}@media (forced-colors: active){:host{outline-width:0;outline-offset:0}:host(:focus) .container{outline-color:highlight}:host([bordered]) .container{border-block-end-style:solid}:host([bordered]) .container--bottom{border-block-start-style:solid}:host([bordered][selected]) .container{border-block-end-style:none}:host([bordered][selected]) .container--bottom{border-block-start-style:none}.close-button{z-index:var(--calcite-z-index)}}:host([hidden]){display:none}[hidden]{display:none}`,b=class extends v{constructor(){super(),this.closeButtonEl=k(),this.guid=`calcite-tab-title-${y()}`,this.mutationObserver=r("mutation",()=>this.updateHasText()),this.resizeObserver=r("resize",()=>{this.calciteInternalTabIconChanged.emit()}),this.hasText=!1,this.bordered=!1,this.closable=!1,this.closed=!1,this.disabled=!1,this.messages=C(),this.position="top",this.scale="m",this.selected=!1,this.calciteInternalTabIconChanged=i({cancelable:!1}),this.calciteInternalTabTitleRegister=i({cancelable:!1}),this.calciteInternalTabsActivate=i({cancelable:!1}),this.calciteInternalTabsClose=i({cancelable:!1}),this.calciteInternalTabsFocusFirst=i({cancelable:!1}),this.calciteInternalTabsFocusLast=i({cancelable:!1}),this.calciteInternalTabsFocusNext=i({cancelable:!1}),this.calciteInternalTabsFocusPrevious=i({cancelable:!1}),this.calciteTabsActivate=i({cancelable:!1}),this.calciteTabsClose=i({cancelable:!1}),this.listenOn(document.body,"calciteInternalTabChange",this.internalTabChangeHandler),this.listen("click",this.onClick),this.listen("keydown",this.keyDownHandler)}static{this.properties={controls:16,hasText:16,bordered:7,closable:7,closed:7,disabled:7,iconEnd:3,iconFlipRtl:3,iconStart:3,layout:3,messageOverrides:0,position:1,scale:1,selected:7,tab:3}}static{this.styles=H}async activateTab(t=!0){if(this.disabled||this.closed)return;let o={tab:this.tab};this.calciteInternalTabsActivate.emit(o),t&&requestAnimationFrame(()=>this.calciteTabsActivate.emit())}async getTabIdentifier(){return this.tab?this.tab:this.getTabIndex()}async getTabIndex(){return Array.prototype.indexOf.call(T(this.el.parentElement.children).filter(t=>t.matches("calcite-tab-title")),this.el)}_updateAriaInfo(t=[],o=[]){this.controls=t[o.indexOf(this.el.id)]||null}connectedCallback(){super.connectedCallback(),this.setupTextContentObserver(),this.parentTabsEl=this.el.closest("calcite-tabs")}async load(){g()&&this.updateHasText(),this.tab&&this.selected&&this.activateTab(!1)}willUpdate(t){t.has("selected")&&(this.hasUpdated||this.selected!==!1)&&this.selectedHandler(),this.parentTabsEl&&(this.layout=this.parentTabsEl.layout,this.bordered=this.parentTabsEl.bordered)}updated(){I(this)}async loaded(){this.calciteInternalTabTitleRegister.emit(await this.getTabIdentifier())}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),document.body?.dispatchEvent(new CustomEvent("calciteTabTitleUnregister",{detail:this.el})),this.resizeObserver?.disconnect()}selectedHandler(){this.selected&&this.activateTab(!1)}internalTabChangeHandler(t){t.composedPath().find(o=>o.tagName==="CALCITE-TABS")===this.parentTabsEl&&(this.tab?this.selected=this.tab===t.detail.tab:this.getTabIndex().then(o=>{this.selected=o===t.detail.tab}),t.stopPropagation())}onClick(){this.activateTab()}keyDownHandler(t){switch(t.key){case" ":case"Enter":t.composedPath().includes(this.closeButtonEl.value)||(this.activateTab(),t.preventDefault());break;case"ArrowRight":t.preventDefault(),d(this.el)==="ltr"?this.calciteInternalTabsFocusNext.emit():this.calciteInternalTabsFocusPrevious.emit();break;case"ArrowLeft":t.preventDefault(),d(this.el)==="ltr"?this.calciteInternalTabsFocusPrevious.emit():this.calciteInternalTabsFocusNext.emit();break;case"Home":t.preventDefault(),this.calciteInternalTabsFocusFirst.emit();break;case"End":t.preventDefault(),this.calciteInternalTabsFocusLast.emit();break}}closeClickHandler(){this.closeTabTitleAndNotify()}updateHasText(){this.hasText=this.el.textContent.trim().length>0}setupTextContentObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}closeTabTitleAndNotify(){this.closed=!0,this.calciteInternalTabsClose.emit({tab:this.tab}),this.calciteTabsClose.emit()}render(){let{el:t,closed:o}=this,$=t.id||this.guid,E=c`<calcite-icon class=${n({[e.titleIcon]:!0,[e.iconStart]:!0})} .flipRtl=${this.iconFlipRtl==="start"||this.iconFlipRtl==="both"} .icon=${this.iconStart} .scale=${s(this.scale)}></calcite-icon>`,F=c`<calcite-icon class=${n({[e.titleIcon]:!0,[e.iconEnd]:!0})} .flipRtl=${this.iconFlipRtl==="end"||this.iconFlipRtl==="both"} .icon=${this.iconEnd} .scale=${s(this.scale)}></calcite-icon>`;return a(this.el,"aria-controls",this.controls),this.el.ariaSelected=z(this.selected),a(this.el,"id",$),this.el.role="tab",a(this.el,"tabIndex",this.selected&&!this.disabled?0:-1),w({disabled:this.disabled,children:c`<div class=${n({[e.container]:!0,[e.containerBottom]:this.position==="bottom",[e.iconPresent]:!!this.iconStart||!!this.iconEnd,[e.scale(this.scale)]:!0})} .hidden=${o} ${l(u=>u?this.resizeObserver?.observe(u):null)}><div class=${n({[e.content]:!0,[e.contentHasText]:this.hasText})}>${this.iconStart?E:null}<slot></slot>${this.iconEnd?F:null}</div>${this.renderCloseButton()}<div class=${n(e.selectedIndicator)}></div></div>`})}renderCloseButton(){let{closable:t,messages:o}=this;return t?x(e.closeButton,c`<button .ariaLabel=${o.close} class=${n(e.closeButton)} @click=${this.closeClickHandler} title=${o.close??m} type=button ${l(this.closeButtonEl)}><calcite-icon .icon=${A.close} .scale=${s(this.scale)}></calcite-icon></button>`):null}};f("calcite-tab-title",b);export{b as TabTitle};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{a as b,b as f}from"./
|
|
3
|
+
v3.0.0-next.112 */
|
|
4
|
+
import{a as b,b as f}from"./NGSLE2LS.js";import{a as h,b as p}from"./RXIVLADL.js";import{l as m,z as a}from"./FWD7LP7Y.js";import{a as u}from"./BURXKUR3.js";import"./YOAR4AAW.js";import{I as n,d,e as c,u as o,v as r}from"./MYU6UPOF.js";var g=d`: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}.container{display:flex;flex-wrap:wrap;gap:var(--calcite-card-group-space, var(--calcite-card-group-gap, var(--calcite-spacing-base)))}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`,l=class extends r{constructor(){super(),this.items=[],this.slotRefEl=h(),this.disabled=!1,this.selectedItems=[],this.selectionMode="none",this.calciteCardGroupSelect=o({cancelable:!1}),this.listen("calciteInternalCardKeyEvent",this.calciteInternalCardKeyEventListener),this.listen("calciteCardSelect",this.calciteCardSelectListener)}static{this.properties={disabled:7,label:1,selectedItems:0,selectionMode:3}}static{this.styles=g}async setFocus(){await u(this),this.disabled||m(this.items[0])}load(){}willUpdate(e){e.has("selectionMode")&&this.hasUpdated&&this.updateItemsOnSelectionModeChange()}updated(){b(this)}loaded(){this.updateSelectedItems()}calciteInternalCardKeyEventListener(e){if(e.composedPath().includes(this.el)){let s=this.items.filter(t=>!t.disabled);switch(e.detail.key){case"ArrowRight":a(s,e.target,"next");break;case"ArrowLeft":a(s,e.target,"previous");break;case"Home":a(s,e.target,"first");break;case"End":a(s,e.target,"last");break}}}calciteCardSelectListener(e){e.composedPath().includes(this.el)&&!e.target.selectable&&this.setSelectedItems(!0,e.target)}updateItemsOnSelectionModeChange(){this.updateSlottedItems(this.slotRefEl.value),this.updateSelectedItems()}updateItemsOnSlotChange(e){this.updateSlottedItems(e.target),this.updateSelectedItems()}updateSlottedItems(e){this.items=e.assignedElements({flatten:!0}).filter(s=>s?.matches("calcite-card"))}updateSelectedItems(){this.items.forEach(e=>{e.selectionMode=this.selectionMode}),this.setSelectedItems(!1)}setSelectedItems(e,s){s&&this.items.forEach(t=>{let i=s===t;switch(this.selectionMode){case"multiple":i&&(t.selected=!t.selected);break;case"single":t.selected=i?!t.selected:!1;break;case"single-persist":t.selected=!!i;break}}),this.selectedItems=this.items.filter(t=>t.selected),e&&this.selectionMode!=="none"&&!this.disabled&&this.calciteCardGroupSelect.emit()}render(){let e=this.selectionMode==="none"||this.selectionMode==="multiple"?"group":"radiogroup";return f({disabled:this.disabled,children:c`<div .ariaLabel=${this.label} class="container" .role=${e}><slot @slotchange=${this.updateItemsOnSlotChange} ${p(this.slotRefEl)}></slot></div>`})}};n("calcite-card-group",l);export{l as CardGroup};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v3.0.0-next.
|
|
4
|
-
import{a as c}from"./
|
|
3
|
+
v3.0.0-next.112 */
|
|
4
|
+
import{a as c}from"./IH2FEA6S.js";import{I as d,d as i,e as r,u as h,v as o}from"./MYU6UPOF.js";var p=i`:host{display:block}:host([hidden]){display:none}[hidden]{display:none}`,a=class extends o{constructor(){super(...arguments),this.mutationObserver=c("mutation",()=>{this.ensureTextContentDependentProps(),this.calciteInternalOptionChange.emit()}),this.disabled=!1,this.calciteInternalOptionChange=h({cancelable:!1})}static{this.properties={disabled:7,label:1,selected:7,value:1}}static{this.styles=p}connectedCallback(){super.connectedCallback(),this.ensureTextContentDependentProps(),this.mutationObserver?.observe(this.el,{attributeFilter:["label","value"],characterData:!0,childList:!0,subtree:!0})}willUpdate(e){e.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&this.handlePropChange(this.disabled,e.get("disabled"),"disabled"),e.has("label")&&this.handlePropChange(this.label,e.get("label"),"label"),e.has("selected")&&this.handlePropChange(this.selected,e.get("selected"),"selected"),e.has("value")&&this.handlePropChange(this.value,e.get("value"),"value")}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}handlePropChange(e,l,t){(t==="label"||t==="value")&&this.ensureTextContentDependentProps(),this.calciteInternalOptionChange.emit()}ensureTextContentDependentProps(){let{el:{textContent:e},internallySetLabel:l,internallySetValue:t,label:s,value:n}=this;(!s||s===l)&&(this.label=e,this.internallySetLabel=e),(n==null||n===t)&&(this.value=e,this.internallySetValue=e)}render(){return r`<slot>${this.label}</slot>`}};d("calcite-option",a);export{a as Option};
|