@arcgis/map-components 4.34.0-next.120 → 4.34.0-next.121
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/cdn/{MH7KAJHO.js → 2B25JVV5.js} +2 -2
- package/dist/cdn/{S3FSU7B3.js → 2SV7S2M5.js} +2 -2
- package/dist/cdn/346TTNOJ.js +4 -0
- package/dist/cdn/{YMLJJXLE.js → 35DSKNLR.js} +2 -2
- package/dist/cdn/{L22HLZL6.js → 35HI7H6E.js} +2 -2
- package/dist/cdn/{LLNOEFSY.js → 372YSHKS.js} +2 -2
- package/dist/cdn/{TCWVCV45.js → 37DWQGUS.js} +2 -2
- package/dist/cdn/{VB2WGZSI.js → 3LZLMEK2.js} +1 -1
- package/dist/cdn/{ZNIHPOQW.js → 3TZ45SVB.js} +2 -2
- package/dist/cdn/45Y76WDN.js +4 -0
- package/dist/cdn/{HI2SLBFX.js → 47CPMTMK.js} +2 -2
- package/dist/cdn/4IPEPFHT.js +4 -0
- package/dist/cdn/4JNZVJZW.js +4 -0
- package/dist/cdn/4JVBMEN6.js +4 -0
- package/dist/cdn/{JOTCO7VO.js → 4VATR35U.js} +1 -1
- package/dist/cdn/{EM34EP4Z.js → 535NKYWC.js} +2 -2
- package/dist/cdn/{4BRSXGDS.js → 55HJNAJR.js} +2 -2
- package/dist/cdn/{BQGF3TJR.js → 5RUSI26F.js} +2 -2
- package/dist/cdn/5TFDDVH2.js +4 -0
- package/dist/cdn/{I5VTUAC2.js → 5UGXWLKI.js} +2 -2
- package/dist/cdn/{CE6ML33U.js → 5V4I3OAQ.js} +2 -2
- package/dist/cdn/6CDWV4G6.js +4 -0
- package/dist/cdn/{KAYMDWRG.js → 6IOBYIAP.js} +2 -2
- package/dist/cdn/6JVHY2EU.js +4 -0
- package/dist/cdn/{3KUOKMM6.js → 6Q6P2VXD.js} +2 -2
- package/dist/cdn/{HD3MAW7N.js → 6RB6IL7R.js} +2 -2
- package/dist/cdn/{7HIZTTHU.js → 6RXGSCAV.js} +2 -2
- package/dist/cdn/6UUISLIM.js +4 -0
- package/dist/cdn/{LGUSMSGI.js → 6ZQGNPYK.js} +2 -2
- package/dist/cdn/{U4NN24DZ.js → 7242OGMC.js} +1 -1
- package/dist/cdn/{QJI26PMM.js → 74GPMRTV.js} +2 -2
- package/dist/cdn/{VSHCOOT3.js → 7FFJLHJW.js} +2 -2
- package/dist/cdn/{7TT4U7QY.js → 7FUHE2YM.js} +1 -1
- package/dist/cdn/7JJHAC7T.js +4 -0
- package/dist/cdn/{VLSZ6K4N.js → 7R7XMUEV.js} +2 -2
- package/dist/cdn/{HQSZHIDX.js → 7TPKNPCZ.js} +2 -2
- package/dist/cdn/{C3EGFMXI.js → 7UBSZH7Y.js} +2 -2
- package/dist/cdn/{KTA3WCSN.js → A35H2227.js} +2 -2
- package/dist/cdn/{HNLDTV7N.js → AF5ZEU4H.js} +2 -2
- package/dist/cdn/{XVRPAQQS.js → AJDNGTJ2.js} +2 -2
- package/dist/cdn/{JUSWF2RY.js → AKEH4M7F.js} +2 -2
- package/dist/cdn/{W2ERNWIA.js → AMIRL4B5.js} +2 -2
- package/dist/cdn/{QJVND6MN.js → ANCURBC4.js} +2 -2
- package/dist/cdn/{FI7OZYLW.js → ANPO74QG.js} +1 -1
- package/dist/cdn/{WC7XPTBO.js → AT3WZET4.js} +2 -2
- package/dist/cdn/{IND5WNZM.js → AVKXZPGN.js} +2 -2
- package/dist/cdn/{AWVU24JV.js → B3TXBOOS.js} +2 -2
- package/dist/cdn/{SLVLT2UD.js → BNXQLG7Q.js} +2 -2
- package/dist/cdn/{HBBVF6YP.js → BRQR34WD.js} +2 -2
- package/dist/cdn/{62OJ3TIR.js → C2GT3GCS.js} +2 -2
- package/dist/cdn/{FKUDUOEH.js → C2TL26SK.js} +2 -2
- package/dist/cdn/CI2FSKVH.js +4 -0
- package/dist/cdn/{2HE2Z5NV.js → CI44ZNLN.js} +2 -2
- package/dist/cdn/{KQBSK57H.js → CI47PXCU.js} +2 -2
- package/dist/cdn/{W42SCU72.js → CRSV4PPM.js} +2 -2
- package/dist/cdn/{FVAWWC65.js → CWVECJKT.js} +2 -2
- package/dist/cdn/{6U67NGEC.js → DEBWZDGT.js} +2 -2
- package/dist/cdn/{O6A7CJF5.js → DEWCHYPV.js} +2 -2
- package/dist/cdn/{ZKGSYKZU.js → DFVCHRKI.js} +2 -2
- package/dist/cdn/{NJIGADGX.js → DK75MF3J.js} +2 -2
- package/dist/cdn/{EOOCRKS4.js → DL5TD37V.js} +2 -2
- package/dist/cdn/{UYR2Z7HF.js → DQGVC6D4.js} +2 -2
- package/dist/cdn/{DSTWWXJ6.js → DRCUZDKE.js} +2 -2
- package/dist/cdn/{BBPNY7E3.js → DRLZFDYB.js} +2 -2
- package/dist/cdn/{XW7I2P5P.js → DSUS7JYQ.js} +2 -2
- package/dist/cdn/{33OF3ZBL.js → DX7IPNVA.js} +2 -2
- package/dist/cdn/{A47F55P3.js → E4EENGHK.js} +2 -2
- package/dist/cdn/{PLHQIKNT.js → E54IMENW.js} +2 -2
- package/dist/cdn/{COKDS53J.js → E5B5SZTG.js} +2 -2
- package/dist/cdn/{6TLE3FA7.js → E5X3KKD6.js} +2 -2
- package/dist/cdn/{TOCMF6TL.js → ECQRIY6D.js} +2 -2
- package/dist/cdn/{AKMDQAKK.js → EF5GBJRK.js} +2 -2
- package/dist/cdn/{5ZBM65DS.js → EFWDWNPE.js} +2 -2
- package/dist/cdn/{PKQNTFVZ.js → EWZB3F6Q.js} +2 -2
- package/dist/cdn/{L3MY4UQA.js → F4LUVKMI.js} +2 -2
- package/dist/cdn/{36DABHYU.js → F7U5I4D5.js} +2 -2
- package/dist/cdn/FHG3JTHR.js +4 -0
- package/dist/cdn/{OQKVLYO2.js → FNZ57JKR.js} +2 -2
- package/dist/cdn/FOH33NCI.js +4 -0
- package/dist/cdn/{BHXMZU2O.js → FOZTM2NA.js} +2 -2
- package/dist/cdn/{QRC7ZBBC.js → FX6B3JWJ.js} +2 -2
- package/dist/cdn/{IMBF7SKO.js → G2IGWV44.js} +2 -2
- package/dist/cdn/{UNJNH3FF.js → GE6XLA3C.js} +2 -2
- package/dist/cdn/{GCD4OD4U.js → GFHM25IN.js} +1 -1
- package/dist/cdn/{EF4QVWNW.js → GRP6EZWO.js} +2 -2
- package/dist/cdn/{MIXSCPX5.js → GXGLFWPF.js} +2 -2
- package/dist/cdn/{G5DQIZEV.js → HDEREMLN.js} +2 -2
- package/dist/cdn/{YEB3EV3Y.js → HPKF24JA.js} +3 -3
- package/dist/cdn/{F6TOJFSA.js → ID46TCU6.js} +2 -2
- package/dist/cdn/{FZI3AKTY.js → IJAOM6ZW.js} +1 -1
- package/dist/cdn/{6HHUN5YQ.js → IN2QCSQO.js} +2 -2
- package/dist/cdn/{PJOEPYWW.js → IOKUBAPF.js} +2 -2
- package/dist/cdn/{6AHLLAZO.js → IPXEEQQK.js} +2 -2
- package/dist/cdn/{SNNTEXLH.js → IQR5CM2A.js} +2 -2
- package/dist/cdn/{X22GYTEA.js → IXKSOIUP.js} +2 -2
- package/dist/cdn/{AP3CYFMQ.js → J5F6AIIB.js} +2 -2
- package/dist/cdn/{5DUT2NR5.js → J5VNFJVZ.js} +2 -2
- package/dist/cdn/JFIYPPD5.js +7 -0
- package/dist/cdn/{6E7XQLEO.js → JS4BHDB4.js} +2 -2
- package/dist/cdn/{B72JD5TO.js → JZF63QVT.js} +2 -2
- package/dist/cdn/{RMNCEUXY.js → K2URZH4W.js} +2 -2
- package/dist/cdn/{HZYHFZJV.js → K6CBR2XP.js} +2 -2
- package/dist/cdn/K7LNIGMP.js +4 -0
- package/dist/cdn/{6PHSJ3A3.js → KIUHTF3Y.js} +1 -1
- package/dist/cdn/{CVTGNNNT.js → KKJGEIVN.js} +1 -1
- package/dist/cdn/{YLIV52HA.js → KQ2MJSN6.js} +2 -2
- package/dist/cdn/{5Y6Z6AU2.js → KUUP2XQV.js} +2 -2
- package/dist/cdn/KYN36ZI3.js +4 -0
- package/dist/cdn/{WUW4ZK2I.js → LCCXLXMZ.js} +2 -2
- package/dist/cdn/{S7FUMVTD.js → LDSMGJB2.js} +2 -2
- package/dist/cdn/{HHSZDHZG.js → LH5FQJI2.js} +2 -2
- package/dist/cdn/{JWB2OR3K.js → LJUO3WHF.js} +2 -2
- package/dist/cdn/{CSCY5BGQ.js → LMPJ77PH.js} +2 -2
- package/dist/cdn/{MZ6IXKKM.js → LMWV7UIV.js} +2 -2
- package/dist/cdn/{PS2YINJK.js → M3RUGM2V.js} +2 -2
- package/dist/cdn/{HVF3EZPU.js → M6IFXZLY.js} +2 -2
- package/dist/cdn/{JF2BPJEU.js → M7RCOZ4B.js} +2 -2
- package/dist/cdn/{MGVKUYDH.js → MKVN3TTT.js} +2 -2
- package/dist/cdn/{2CXHMQTJ.js → ML7UPLPP.js} +2 -2
- package/dist/cdn/{6IWPGZTN.js → MMHFWQW2.js} +2 -2
- package/dist/cdn/{YTOJP56H.js → MPBVDV2T.js} +2 -2
- package/dist/cdn/{XWT7UESZ.js → MPNDAQ6F.js} +2 -2
- package/dist/cdn/{ZGT3GAKW.js → MSBWFYRL.js} +2 -2
- package/dist/cdn/{MYQDZZBV.js → MUSHZIHK.js} +2 -2
- package/dist/cdn/{2UNBJPHV.js → N7DFCSEY.js} +2 -2
- package/dist/cdn/{O2GQQ6TH.js → NOVUMXRE.js} +2 -2
- package/dist/cdn/{73ZURSDZ.js → NRF6GBIG.js} +2 -2
- package/dist/cdn/{RQXFAZND.js → NTGUYVHC.js} +2 -2
- package/dist/cdn/{ARQIMOEK.js → NTLSQ5MN.js} +2 -2
- package/dist/cdn/{EX5SJOG7.js → NWTJ4Z4R.js} +2 -2
- package/dist/cdn/{WN7VB3T5.js → OEMF5KZZ.js} +2 -2
- package/dist/cdn/{SVDLWPF2.js → OENFPHNZ.js} +2 -2
- package/dist/cdn/{UCY4LBO3.js → OJTQIQUR.js} +2 -2
- package/dist/cdn/{Q5YQK2S3.js → OKOHU2OJ.js} +2 -2
- package/dist/cdn/{VMKYQFS5.js → OLUQVJOZ.js} +2 -2
- package/dist/cdn/{CHS6E4Q2.js → OPY3WBSM.js} +2 -2
- package/dist/cdn/OQWO6BB3.js +4 -0
- package/dist/cdn/{K4IBGATC.js → OTMBIUL5.js} +2 -2
- package/dist/cdn/{I76USMBY.js → OVNUOLLO.js} +2 -2
- package/dist/cdn/{L63SLUFS.js → P45GLN3X.js} +2 -2
- package/dist/cdn/{RKPME3GV.js → P4B3WO3X.js} +2 -2
- package/dist/cdn/{7RNIBDPL.js → P4S2TKIT.js} +2 -2
- package/dist/cdn/{IYY5KGSN.js → P5GMXIT4.js} +2 -2
- package/dist/cdn/{ZKXGN63L.js → PAHH73NW.js} +2 -2
- package/dist/cdn/{FSQ2KHIG.js → PAWLZ2PM.js} +2 -2
- package/dist/cdn/{KZ6QYVM2.js → PDQINBKC.js} +2 -2
- package/dist/cdn/{P6HS5PC7.js → POALYNOP.js} +1 -1
- package/dist/cdn/POPYE6CL.js +4 -0
- package/dist/cdn/{43EBEKFG.js → PQFKIKYA.js} +1 -1
- package/dist/cdn/{IDLHRY2H.js → PRBE56AU.js} +2 -2
- package/dist/cdn/{UCRV2PDT.js → PX5FXGL4.js} +2 -2
- package/dist/cdn/{DORZHLU3.js → QYJ4HYGZ.js} +2 -2
- package/dist/cdn/{6WA73KKR.js → QYPAUKF3.js} +2 -2
- package/dist/cdn/{IRN5BQBL.js → R3OLBAJR.js} +2 -2
- package/dist/cdn/{N622KPPP.js → R5PZWYMI.js} +2 -2
- package/dist/cdn/{UKNIOOAM.js → R6KOIYXN.js} +2 -2
- package/dist/cdn/{IJQOX3B2.js → R7IZUL4R.js} +2 -2
- package/dist/cdn/{GKOFQM3H.js → RGJEU4NN.js} +2 -2
- package/dist/cdn/{ST4EJC3A.js → RGSXGE7O.js} +2 -2
- package/dist/cdn/{WSRYRM56.js → RM3B4UHT.js} +2 -2
- package/dist/cdn/{TANBMCPE.js → RNAEBFZW.js} +2 -2
- package/dist/cdn/{VB3ERSMR.js → RNYH2TRL.js} +2 -2
- package/dist/cdn/{IMZUUJPE.js → RQB3U5J2.js} +2 -2
- package/dist/cdn/{R7M5WN2E.js → RR5ZNA2U.js} +2 -2
- package/dist/cdn/{VTV2KINX.js → RZ45UDKK.js} +2 -2
- package/dist/cdn/S74YMN7I.js +4 -0
- package/dist/cdn/{2ORRNOGA.js → S7STOGUY.js} +2 -2
- package/dist/cdn/{EJ4Y7VTU.js → SENVVVYE.js} +2 -2
- package/dist/cdn/{A27SKK6E.js → SL6MMN2Q.js} +2 -2
- package/dist/cdn/SU6HNPLT.js +4 -0
- package/dist/cdn/TBJCDUNI.js +4 -0
- package/dist/cdn/{OC6TPBNB.js → TFGCYOWA.js} +2 -2
- package/dist/cdn/{AD3ZURIR.js → TMLC4M73.js} +2 -2
- package/dist/cdn/TS2GUWU3.js +4 -0
- package/dist/cdn/{SKVXEDLE.js → TXPXKVCW.js} +2 -2
- package/dist/cdn/{KCWL6UV4.js → UDHP27HO.js} +2 -2
- package/dist/cdn/{67U6QXEY.js → UIU3O5KY.js} +2 -2
- package/dist/cdn/{QH6W2HS7.js → UQAFKOEC.js} +2 -2
- package/dist/cdn/UQRSBMCA.js +4 -0
- package/dist/cdn/{WBAEF3ZT.js → UYN2Y7US.js} +2 -2
- package/dist/cdn/{UJIOALHT.js → V2ZSUMAT.js} +2 -2
- package/dist/cdn/{VASLNT5J.js → VCE3MJOP.js} +2 -2
- package/dist/cdn/{NOOBN67X.js → VFOZPBRE.js} +2 -2
- package/dist/cdn/{W34GBMIV.js → VJ4HCE25.js} +2 -2
- package/dist/cdn/{ZLDXXV53.js → VMQG3RI6.js} +2 -2
- package/dist/cdn/{2HEAELDI.js → VPRTCSMA.js} +2 -2
- package/dist/cdn/{YUD7XBVU.js → W5ZHEGYW.js} +2 -2
- package/dist/cdn/{3XJQU7UU.js → WC62N27T.js} +2 -2
- package/dist/cdn/WF5D2QSI.js +4 -0
- package/dist/cdn/{ICP3J2N2.js → WFTOSGYT.js} +2 -2
- package/dist/cdn/{25ZDGUMM.js → WKAWGDGM.js} +1 -1
- package/dist/cdn/{SM6XPVPD.js → WYFAZXAQ.js} +2 -2
- package/dist/cdn/{G5MXZ3RB.js → X3DN7NQI.js} +1 -1
- package/dist/cdn/{GVCPEM5I.js → XHSSH7BD.js} +2 -2
- package/dist/cdn/XK2VKK6A.js +4 -0
- package/dist/cdn/{P3B3P7L4.js → XKE6Y6DR.js} +2 -2
- package/dist/cdn/{LFZLQDDG.js → XQKKIK2L.js} +2 -2
- package/dist/cdn/{6KGIVKH4.js → XZEOBHWL.js} +2 -2
- package/dist/cdn/{UCRJMK5C.js → Y3VB7R7E.js} +2 -2
- package/dist/cdn/{HWPWUKY6.js → Y7W6FEYB.js} +1 -1
- package/dist/cdn/{P7BNZYTQ.js → YCBORB5I.js} +2 -2
- package/dist/cdn/{5PEK6KXY.js → YCFZ4WWA.js} +2 -2
- package/dist/cdn/{L2PJBJYL.js → YE5OIRHL.js} +2 -2
- package/dist/cdn/{QWAMBTBH.js → YOAXZDYA.js} +2 -2
- package/dist/cdn/{OIU3HXT4.js → YQ44NZDF.js} +2 -2
- package/dist/cdn/YRHUU3RQ.js +4 -0
- package/dist/cdn/{N3UHN63O.js → YV5H7JC3.js} +2 -2
- package/dist/cdn/{OW4MVTU6.js → YZXBNKZM.js} +2 -2
- package/dist/cdn/{RNNWYTAK.js → Z22CE2BK.js} +2 -2
- package/dist/cdn/{MN7CAQNX.js → Z4KTVLWK.js} +2 -2
- package/dist/cdn/{EGQJWIJU.js → ZDQQISWT.js} +2 -2
- package/dist/cdn/{HKFM677E.js → ZDYNAGAU.js} +2 -2
- package/dist/cdn/{TARXJU2K.js → ZGHEV5H3.js} +2 -2
- package/dist/cdn/assets/legend/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/legend/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/AnalysisViewModel.js +1 -1
- package/dist/chunks/action-utils.js +1 -1
- package/dist/chunks/async-utils.js +1 -1
- package/dist/chunks/basemap-gallery-resources.js +1 -1
- package/dist/chunks/chart-utils.js +1 -1
- package/dist/chunks/chartCommon.js +1 -1
- package/dist/chunks/component-utils.js +1 -1
- package/dist/chunks/createCloseEvent.js +1 -1
- package/dist/chunks/feature-utils.js +1 -1
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/heading.js +1 -1
- package/dist/chunks/layer-list.js +2 -2
- package/dist/chunks/legacyIcon.js +1 -1
- package/dist/chunks/maybe.js +1 -1
- package/dist/chunks/measurementUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/slots.js +1 -1
- package/dist/chunks/slots2.js +2 -2
- package/dist/chunks/svgUtils.js +229 -0
- package/dist/chunks/titleUtils.js +42 -0
- package/dist/chunks/univariateUtils.js +101 -0
- package/dist/chunks/useHandles.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/useView.js +1 -1
- package/dist/chunks/useViewModel.js +1 -1
- package/dist/chunks/useWidget.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils2.js +45 -0
- package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-attachments/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.js +1 -1
- package/dist/components/arcgis-building-explorer/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +1 -1
- package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-compass/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-directional-pad/customElement.js +1 -1
- package/dist/components/arcgis-directions/customElement.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-editor/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-next/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-settings/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-statistics/customElement.js +1 -1
- package/dist/components/arcgis-expand/customElement.js +1 -1
- package/dist/components/arcgis-feature/customElement.js +1 -1
- package/dist/components/arcgis-feature-attachments/customElement.js +1 -1
- package/dist/components/arcgis-feature-content/customElement.js +1 -1
- package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
- package/dist/components/arcgis-feature-expression/customElement.js +1 -1
- package/dist/components/arcgis-feature-fields/customElement.js +1 -1
- package/dist/components/arcgis-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-feature-media/customElement.js +1 -1
- package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
- package/dist/components/arcgis-feature-table/customElement.d.ts +1 -1
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.js +93 -119
- package/dist/components/arcgis-features/index.d.ts +2 -1
- package/dist/components/arcgis-features/index.js +2 -1
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.js +1 -1
- package/dist/components/arcgis-grid-controls/customElement.js +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-home/customElement.js +1 -1
- package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
- package/dist/components/arcgis-layer-list/customElement.d.ts +1 -1
- package/dist/components/arcgis-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
- package/dist/components/arcgis-legend/customElement.d.ts +136 -82
- package/dist/components/arcgis-legend/customElement.js +48 -14
- package/dist/components/arcgis-legend/index.d.ts +2 -0
- package/dist/components/arcgis-legend/index.js +2 -0
- package/dist/components/arcgis-legend/support/svgGlobalState.d.ts +7 -0
- package/dist/components/arcgis-legend/support/svgUtils.d.ts +173 -0
- package/dist/components/arcgis-legend/support/titleUtils.d.ts +6 -0
- package/dist/components/arcgis-legend/support/univariateUtils.d.ts +32 -0
- package/dist/components/arcgis-legend/support/utils.d.ts +8 -0
- package/dist/components/arcgis-legend/types.d.ts +0 -0
- package/dist/components/arcgis-legend-card-color-ramp/customElement.d.ts +13 -0
- package/dist/components/arcgis-legend-card-color-ramp/customElement.js +91 -0
- package/dist/components/arcgis-legend-card-color-ramp/index.d.ts +1 -0
- package/dist/components/arcgis-legend-card-color-ramp/index.js +1 -0
- package/dist/components/arcgis-legend-card-element/customElement.d.ts +18 -0
- package/dist/components/arcgis-legend-card-element/customElement.js +131 -0
- package/dist/components/arcgis-legend-card-element/index.d.ts +7 -0
- package/dist/components/arcgis-legend-card-element/index.js +7 -0
- package/dist/components/arcgis-legend-card-size-ramp/customElement.d.ts +14 -0
- package/dist/components/arcgis-legend-card-size-ramp/customElement.js +97 -0
- package/dist/components/arcgis-legend-card-size-ramp/index.d.ts +2 -0
- package/dist/components/arcgis-legend-card-size-ramp/index.js +2 -0
- package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.d.ts +13 -0
- package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +64 -0
- package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/index.d.ts +1 -0
- package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/index.js +1 -0
- package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.d.ts +13 -0
- package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +62 -0
- package/dist/components/arcgis-legend-card-univariate-color-size-ramp/index.d.ts +1 -0
- package/dist/components/arcgis-legend-card-univariate-color-size-ramp/index.js +1 -0
- package/dist/components/arcgis-legend-card-view/customElement.d.ts +23 -0
- package/dist/components/arcgis-legend-card-view/customElement.js +90 -0
- package/dist/components/arcgis-legend-card-view/index.d.ts +4 -0
- package/dist/components/arcgis-legend-card-view/index.js +4 -0
- package/dist/components/arcgis-legend-classic-color-ramp/customElement.d.ts +12 -0
- package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +49 -0
- package/dist/components/arcgis-legend-classic-color-ramp/index.d.ts +1 -0
- package/dist/components/arcgis-legend-classic-color-ramp/index.js +1 -0
- package/dist/components/arcgis-legend-classic-element/customElement.d.ts +12 -0
- package/dist/components/arcgis-legend-classic-element/customElement.js +92 -0
- package/dist/components/arcgis-legend-classic-element/index.d.ts +7 -0
- package/dist/components/arcgis-legend-classic-element/index.js +7 -0
- package/dist/components/arcgis-legend-classic-size-ramp/customElement.d.ts +10 -0
- package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +38 -0
- package/dist/components/arcgis-legend-classic-size-ramp/index.d.ts +2 -0
- package/dist/components/arcgis-legend-classic-size-ramp/index.js +2 -0
- package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.d.ts +13 -0
- package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.js +55 -0
- package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/index.d.ts +1 -0
- package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/index.js +1 -0
- package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.d.ts +13 -0
- package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +48 -0
- package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/index.d.ts +1 -0
- package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/index.js +1 -0
- package/dist/components/arcgis-legend-classic-view/customElement.d.ts +15 -0
- package/dist/components/arcgis-legend-classic-view/customElement.js +53 -0
- package/dist/components/arcgis-legend-classic-view/index.d.ts +2 -0
- package/dist/components/arcgis-legend-classic-view/index.js +2 -0
- package/dist/components/arcgis-legend-relationship-ramp/customElement.d.ts +12 -0
- package/dist/components/arcgis-legend-relationship-ramp/customElement.js +94 -0
- package/dist/components/arcgis-legend-relationship-ramp/index.d.ts +1 -0
- package/dist/components/arcgis-legend-relationship-ramp/index.js +1 -0
- package/dist/components/arcgis-legend-spike-ramp/customElement.d.ts +10 -0
- package/dist/components/arcgis-legend-spike-ramp/customElement.js +68 -0
- package/dist/components/arcgis-legend-spike-ramp/index.d.ts +1 -0
- package/dist/components/arcgis-legend-spike-ramp/index.js +1 -0
- package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
- package/dist/components/arcgis-link-chart/customElement.d.ts +1 -1
- package/dist/components/arcgis-link-chart/customElement.js +1 -1
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
- package/dist/components/arcgis-locate/customElement.js +1 -1
- package/dist/components/arcgis-map/customElement.d.ts +7 -6
- package/dist/components/arcgis-map/customElement.js +10 -9
- package/dist/components/arcgis-measurement/customElement.d.ts +1 -1
- package/dist/components/arcgis-measurement/customElement.js +1 -1
- package/dist/components/arcgis-measurement-content/customElement.js +1 -1
- package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
- package/dist/components/arcgis-placement/customElement.js +1 -1
- package/dist/components/arcgis-print/customElement.js +1 -1
- package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
- package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
- package/dist/components/arcgis-print-export-button/customElement.js +1 -1
- package/dist/components/arcgis-print-exported-link/customElement.js +1 -1
- package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-format-select/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
- package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
- package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
- package/dist/components/arcgis-print-template-select/customElement.js +1 -1
- package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
- package/dist/components/arcgis-scale-bar/customElement.js +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-scene/customElement.d.ts +1 -1
- package/dist/components/arcgis-scene/customElement.js +1 -1
- package/dist/components/arcgis-search/customElement.js +1 -1
- package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
- package/dist/components/arcgis-sketch/customElement.d.ts +4 -4
- package/dist/components/arcgis-sketch/customElement.js +1 -1
- package/dist/components/arcgis-slice/customElement.js +1 -1
- package/dist/components/arcgis-spinner/customElement.d.ts +17 -0
- package/dist/components/arcgis-spinner/customElement.js +66 -0
- package/dist/components/arcgis-spinner/index.d.ts +2 -0
- package/dist/components/arcgis-spinner/index.js +2 -0
- package/dist/components/arcgis-swipe/customElement.d.ts +1 -1
- package/dist/components/arcgis-swipe/customElement.js +1 -1
- package/dist/components/arcgis-table-list/customElement.d.ts +1 -1
- package/dist/components/arcgis-table-list/customElement.js +1 -1
- package/dist/components/arcgis-time-slider/customElement.d.ts +1 -1
- package/dist/components/arcgis-time-slider/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
- package/dist/components/arcgis-track/customElement.js +1 -1
- package/dist/components/arcgis-unit-select/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
- package/dist/components/arcgis-value-picker/customElement.d.ts +1 -1
- package/dist/components/arcgis-value-picker/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.js +1 -1
- package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
- package/dist/components/arcgis-video/customElement.js +1 -1
- package/dist/components/arcgis-video-player/customElement.js +1 -1
- package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
- package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
- package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
- package/dist/components/arcgis-weather/customElement.js +1 -1
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- package/dist/docs/api.json +2672 -77
- package/dist/docs/docs.json +2471 -66
- package/dist/docs/vscode.html-custom-data.json +377 -15
- package/dist/docs/web-types.json +647 -40
- package/dist/index.d.ts +70 -0
- package/dist/index.js +1 -1
- package/dist/loader.js +17 -2
- package/dist/types/lumina.d.ts +71 -1
- package/dist/types/preact.d.ts +85 -1
- package/dist/types/react.d.ts +99 -1
- package/dist/types/stencil.d.ts +71 -1
- package/package.json +4 -4
- package/dist/cdn/5LYELUE4.js +0 -4
- package/dist/cdn/BX7RZDWX.js +0 -4
- package/dist/cdn/DQAIINQI.js +0 -4
- package/dist/cdn/G4LBRTF4.js +0 -4
- package/dist/cdn/JCDQWAKQ.js +0 -4
- package/dist/cdn/K2QTC7O3.js +0 -4
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
+
export declare function getUnivariateColorRampMargin(sizeRampElement: __esri.SizeRampElement, style?: "card" | "classic"): number;
|
|
3
|
+
export declare function getUnivariateColorRampPreview(colorRampElement: __esri.ColorRampElement, options: {
|
|
4
|
+
width?: number | null;
|
|
5
|
+
height?: number | null;
|
|
6
|
+
rampAlignment: "horizontal" | "vertical";
|
|
7
|
+
opacity: number;
|
|
8
|
+
type: "above" | "below" | "full";
|
|
9
|
+
cssEffectFilter?: string;
|
|
10
|
+
ariaLabel?: string | null;
|
|
11
|
+
}): HTMLElement | null;
|
|
12
|
+
export declare function getUnivariateSizeRampSize(sizeRampElement: __esri.SizeRampElement, type: "above" | "below" | "full", isAboveAndBelow: boolean, rampAlignment?: "horizontal" | "vertical"): number;
|
|
13
|
+
export declare function getUnivariateColorRampSize(sizeRampElement: __esri.SizeRampElement, type: "above" | "below" | "full", isAboveAndBelow: boolean, rampAlignment?: "horizontal" | "vertical"): number;
|
|
14
|
+
export declare function getUnivariateAboveAndBelowRampElements(legendElement: __esri.UnivariateColorSizeRampElement, opacity: number, rampAlignment?: "horizontal" | "vertical"): {
|
|
15
|
+
sizeRampElement: __esri.SizeRampElement;
|
|
16
|
+
colorRampElement: __esri.ColorRampElement;
|
|
17
|
+
};
|
|
18
|
+
export declare function getUnivariateColorSizeRampElements(legendElement: __esri.UnivariateColorSizeRampElement, rampAlignment?: "horizontal" | "vertical"): {
|
|
19
|
+
sizeRampElement: __esri.SizeRampElement;
|
|
20
|
+
colorRampElement: __esri.ColorRampElement;
|
|
21
|
+
};
|
|
22
|
+
export declare const univariateColorRampContainerStyles: {
|
|
23
|
+
marginLeft: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const univariateColorRampStyles: {
|
|
26
|
+
display: string;
|
|
27
|
+
verticalAlign: string;
|
|
28
|
+
};
|
|
29
|
+
export declare const univariateRampContainerStyles: {
|
|
30
|
+
display: string;
|
|
31
|
+
alignItems: string;
|
|
32
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
+
import { nil } from '@arcgis/toolkit/type';
|
|
3
|
+
import { ArcgisLegend } from '../customElement.js';
|
|
4
|
+
export declare function getRampStopLabel(stop: __esri.ColorRampStop | __esri.HeatmapRampStop, type: string, messages: ArcgisLegend["messages"]): string | null;
|
|
5
|
+
export declare function isImageryStretchedLegend(layer: __esri.Layer, legendType: nil | string): boolean;
|
|
6
|
+
export declare function pt2px(pt: number): number;
|
|
7
|
+
export declare function px2pt(px: nil | number): number;
|
|
8
|
+
export declare function toPt(value: number | string): number;
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
+
/// <reference path="../../index.d.ts" />
|
|
3
|
+
import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
4
|
+
import { ArcgisLegend } from '../arcgis-legend/customElement.js';
|
|
5
|
+
|
|
6
|
+
/** [Read more...](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-legend-card-color-ramp/) */
|
|
7
|
+
export declare class ArcgisLegendCardColorRamp extends LitElement {
|
|
8
|
+
cssEffectFilter?: string;
|
|
9
|
+
legendElement: __esri.ColorRampElement | __esri.HeatmapRampElement | __esri.OpacityRampElement | __esri.StretchRampElement;
|
|
10
|
+
/** @default 1 */
|
|
11
|
+
opacity: number;
|
|
12
|
+
messages: ArcgisLegend["messages"];
|
|
13
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { c as y } from "../../chunks/runtime.js";
|
|
2
|
+
import { css as f, html as l } from "lit";
|
|
3
|
+
import { LitElement as v, safeClassMap as s, safeStyleMap as $ } from "@arcgis/lumina";
|
|
4
|
+
import { classes as u } from "@arcgis/toolkit/dom";
|
|
5
|
+
import { c as b } from "../../chunks/svgUtils.js";
|
|
6
|
+
import { g as L } from "../../chunks/utils2.js";
|
|
7
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
|
+
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
9
|
+
v4.34.0-next.121 */
|
|
10
|
+
const R = f`:host{display:flex}.arcgis-legend--card__layer-row{display:flex;flex:1}.arcgis-legend--card__color-ramp-container{justify-content:center}.arcgis-legend--card__symbol-container{display:flex;flex-direction:column}.arcgis-legend--card__interval-separators-container{text-align:center}.arcgis-legend--card__interval-separator{font-size:.5em}.arcgis-legend--card__ramp-label{margin:0 .5em;white-space:nowrap;height:25px;line-height:25px}`, a = {
|
|
11
|
+
layerRow: "arcgis-legend--card__layer-row",
|
|
12
|
+
colorRampContainer: "arcgis-legend--card__color-ramp-container",
|
|
13
|
+
symbolContainer: "arcgis-legend--card__symbol-container",
|
|
14
|
+
intervalSeparatorsContainer: "arcgis-legend--card__interval-separators-container",
|
|
15
|
+
intervalSeparator: "arcgis-legend--card__interval-separator",
|
|
16
|
+
rampLabel: "arcgis-legend--card__ramp-label"
|
|
17
|
+
}, w = 25, x = 25, S = 100;
|
|
18
|
+
class C extends v {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments), this.legendElement = null, this.opacity = 1;
|
|
21
|
+
}
|
|
22
|
+
static {
|
|
23
|
+
this.properties = { cssEffectFilter: 1, legendElement: 0, opacity: 9, messages: 0 };
|
|
24
|
+
}
|
|
25
|
+
static {
|
|
26
|
+
this.styles = R;
|
|
27
|
+
}
|
|
28
|
+
render() {
|
|
29
|
+
const e = this.legendElement.infos.slice().reverse();
|
|
30
|
+
return l`<div class=${s(u(a.layerRow, a.colorRampContainer))}>${this._renderRampLabel(e[0])}<div class=${s(a.symbolContainer)}>${this._renderPreview(e)}${this._renderMiddleStopRampLabel(e)}</div>${this._renderRampLabel(e.at(-1))}</div>`;
|
|
31
|
+
}
|
|
32
|
+
_renderPreview(e) {
|
|
33
|
+
const { opacity: i } = this, d = this.legendElement.type === "heatmap-ramp", o = e.length - 1, t = x, n = o > 2 && !d ? w * o : S, p = n + 20, r = 10, m = [
|
|
34
|
+
[
|
|
35
|
+
{
|
|
36
|
+
shape: {
|
|
37
|
+
type: "path",
|
|
38
|
+
path: `M0 ${t / 2} L${r} 0 L${r} ${t} Z`
|
|
39
|
+
},
|
|
40
|
+
fill: e[0].color,
|
|
41
|
+
stroke: { width: 0 }
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
shape: {
|
|
45
|
+
type: "rect",
|
|
46
|
+
x: r,
|
|
47
|
+
y: 0,
|
|
48
|
+
width: n,
|
|
49
|
+
height: t
|
|
50
|
+
},
|
|
51
|
+
fill: {
|
|
52
|
+
type: "linear",
|
|
53
|
+
x1: r,
|
|
54
|
+
y1: 0,
|
|
55
|
+
x2: n + r,
|
|
56
|
+
y2: 0,
|
|
57
|
+
colors: e.map((c, _) => ({
|
|
58
|
+
color: c.color,
|
|
59
|
+
// Adjust the stop offsets so that we have stops at fixed/equal interval.
|
|
60
|
+
offset: d && "ratio" in c ? c.ratio : _ / o
|
|
61
|
+
}))
|
|
62
|
+
},
|
|
63
|
+
stroke: { width: 0 }
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
shape: {
|
|
67
|
+
type: "path",
|
|
68
|
+
path: `M${n + r} 0 L${p} ${t / 2} L${n + r} ${t} Z`
|
|
69
|
+
},
|
|
70
|
+
fill: e[e.length - 1].color,
|
|
71
|
+
stroke: { width: 0 }
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
], g = b(m, p, t), h = {
|
|
75
|
+
filter: this.cssEffectFilter,
|
|
76
|
+
opacity: i == null ? void 0 : `${i}`
|
|
77
|
+
};
|
|
78
|
+
return l`<div style=${$(h)}>${g}</div>`;
|
|
79
|
+
}
|
|
80
|
+
_renderMiddleStopRampLabel(e) {
|
|
81
|
+
const i = e.length % 2 !== 0 ? e[e.length / 2 | 0] : null;
|
|
82
|
+
return i ? l`<div class=${s(a.intervalSeparatorsContainer)}><div class=${s(a.intervalSeparator)}>|</div>${this._renderRampLabel(i)}</div>` : null;
|
|
83
|
+
}
|
|
84
|
+
_renderRampLabel(e) {
|
|
85
|
+
return l`<div class=${s(a.rampLabel)}>${L(e, this.legendElement.type, this.messages)}</div>`;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
y("arcgis-legend-card-color-ramp", C);
|
|
89
|
+
export {
|
|
90
|
+
C as ArcgisLegendCardColorRamp
|
|
91
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
+
/// <reference path="../../index.d.ts" />
|
|
3
|
+
import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
4
|
+
import { HeadingLevel } from '../../support/heading';
|
|
5
|
+
import { ArcgisLegend } from '../arcgis-legend/customElement.js';
|
|
6
|
+
|
|
7
|
+
/** [Read more...](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-legend-card-element/) */
|
|
8
|
+
export declare class ArcgisLegendCardElement extends LitElement {
|
|
9
|
+
cssEffectFilter?: string;
|
|
10
|
+
/** @default false */
|
|
11
|
+
stacked: boolean;
|
|
12
|
+
activeLayerInfo: __esri.ActiveLayerInfo;
|
|
13
|
+
/** @default 3 */
|
|
14
|
+
headingLevel: HeadingLevel;
|
|
15
|
+
layer: __esri.Layer;
|
|
16
|
+
legendElement: __esri.LegendElement;
|
|
17
|
+
messages: ArcgisLegend["messages"];
|
|
18
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { c as w } from "../../chunks/runtime.js";
|
|
2
|
+
import { css as x, html as s } from "lit";
|
|
3
|
+
import p from "@arcgis/core/Color.js";
|
|
4
|
+
import { LitElement as E, safeClassMap as l, safeStyleMap as b, nothing as y } from "@arcgis/lumina";
|
|
5
|
+
import { classes as n } from "@arcgis/toolkit/dom";
|
|
6
|
+
import { H as v } from "../../chunks/heading.js";
|
|
7
|
+
import { g as u } from "../../chunks/globalCss.js";
|
|
8
|
+
import { a as k, g as f } from "../../chunks/titleUtils.js";
|
|
9
|
+
import { i as C } from "../../chunks/utils2.js";
|
|
10
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
|
+
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
12
|
+
v4.34.0-next.121 */
|
|
13
|
+
const L = x`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.arcgis-legend--card__section{word-break:break-word;word-wrap:break-word;padding:var(--calcite-spacing-sm) var(--calcite-spacing-md);min-width:250px;max-width:500px;height:100%;height:-moz-available;height:-webkit-fill-available;height:fill-available;overflow:auto;font-size:var(--calcite-font-size-sm)}.arcgis-legend--card__carousel-title-container{margin-bottom:var(--calcite-spacing-sm)}.arcgis-legend--card__carousel-title{margin:0}.arcgis-legend--card__section-title{font-weight:var(--calcite-font-weight-normal)}.arcgis-legend--card__layer-caption{padding:var(--calcite-spacing-xs) 0;margin:0;font-weight:var(--calcite-font-weight-normal)}.arcgis-legend--card__imagery-layer-image--stretched{display:block;margin-bottom:-2px}.arcgis-legend--card__image-label{padding-right:var(--calcite-spacing-xs);padding-left:var(--calcite-spacing-xs)}.arcgis-legend--card__label-element{margin:.1em;padding:.5em 1em;min-width:2em;min-height:1em;text-align:center;display:flex;align-items:center;justify-content:center;flex:1}.arcgis-legend--card__layer-row{display:flex;align-items:center}.arcgis-legend--card__symbol{display:block;margin:auto}.arcgis-legend--card__pie-chart-ramp-preview{display:flex;justify-content:center}.arcgis-legend--card__relationship-container{display:flex;flex-direction:column}.arcgis-legend--card__relationship-container .arcgis-legend--card__layer-row{padding-bottom:.5em}.arcgis-legend--card__relationship-container .arcgis-legend--card__layer-row:last-child{padding-bottom:0}.arcgis-legend--card__container{display:flex;gap:var(--calcite-spacing-sm);flex-wrap:wrap}.arcgis-legend--card__background-styles-container{display:flex;flex-wrap:wrap}:host([stacked]) .arcgis-legend--card__container{display:table}:host([stacked]) .arcgis-legend--card__symbol-row{display:table-row;width:100%}:host([stacked]) .arcgis-legend--card__label-cell{display:table-cell;vertical-align:middle;padding:var(--calcite-spacing-xxs)}:host([stacked]) .arcgis-legend--card__symbol-cell{display:table-cell;vertical-align:middle;text-align:center;padding:var(--calcite-spacing-xxs)}:host([stacked]) .arcgis-legend--card__symbol-cell div{display:flex;align-items:center;justify-content:center}`, a = {
|
|
14
|
+
carouselTitleContainer: "arcgis-legend--card__carousel-title-container",
|
|
15
|
+
carouselTitle: "arcgis-legend--card__carousel-title",
|
|
16
|
+
sectionTitle: "arcgis-legend--card__section-title",
|
|
17
|
+
imageryLayerStretchedImage: "arcgis-legend--card__imagery-layer-image--stretched",
|
|
18
|
+
imageLabel: "arcgis-legend--card__image-label",
|
|
19
|
+
layerCaption: "arcgis-legend--card__layer-caption",
|
|
20
|
+
labelElement: "arcgis-legend--card__label-element",
|
|
21
|
+
layerRow: "arcgis-legend--card__layer-row",
|
|
22
|
+
labelCell: "arcgis-legend--card__label-cell",
|
|
23
|
+
section: "arcgis-legend--card__section",
|
|
24
|
+
symbol: "arcgis-legend--card__symbol",
|
|
25
|
+
symbolRow: "arcgis-legend--card__symbol-row",
|
|
26
|
+
symbolCell: "arcgis-legend--card__symbol-cell",
|
|
27
|
+
pieChartRampPreview: "arcgis-legend--card__pie-chart-ramp-preview",
|
|
28
|
+
relationshipContainer: "arcgis-legend--card__relationship-container",
|
|
29
|
+
backgroundStylesContainer: "arcgis-legend--card__background-styles-container",
|
|
30
|
+
container: "arcgis-legend--card__container"
|
|
31
|
+
};
|
|
32
|
+
function z(g) {
|
|
33
|
+
return g ? g.r * 0.299 + g.g * 0.587 + g.b * 0.114 >= 127 : void 0;
|
|
34
|
+
}
|
|
35
|
+
class F extends E {
|
|
36
|
+
constructor() {
|
|
37
|
+
super(...arguments), this.stacked = !1, this.headingLevel = 3;
|
|
38
|
+
}
|
|
39
|
+
static {
|
|
40
|
+
this.properties = { cssEffectFilter: 1, stacked: 7, activeLayerInfo: 0, headingLevel: 9, layer: 0, legendElement: 0, messages: 0 };
|
|
41
|
+
}
|
|
42
|
+
static {
|
|
43
|
+
this.styles = L;
|
|
44
|
+
}
|
|
45
|
+
_getBackgroundStyles(e) {
|
|
46
|
+
const t = e.symbol, i = t.color, d = !!i?.a, c = "outline" in t ? t.outline : null, r = !!c?.color?.a, o = d && i ? new p([i.r, i.g, i.b, i.a * this.layer.opacity]) : new p([255, 255, 255, 0]), _ = r && c.color ? new p([c.color.r, c.color.g, c.color.b, c.color.a * this.layer.opacity]) : new p([255, 255, 255, 0]), m = z(e.symbol.color) ?? !0, $ = m ? "black" : "white", h = m ? "rgba(255, 255, 255, .6)" : "rgba(0, 0, 0, .6)";
|
|
47
|
+
return {
|
|
48
|
+
background: d ? o.toCss(!0) : "none",
|
|
49
|
+
color: $,
|
|
50
|
+
textShadow: `-1px -1px 0 ${h},
|
|
51
|
+
1px -1px 0 ${h},
|
|
52
|
+
-1px 1px 0 ${h},
|
|
53
|
+
1px 1px 0 ${h}`,
|
|
54
|
+
border: r ? `1px solid ${_.toCss(!0)}` : "none",
|
|
55
|
+
filter: this.cssEffectFilter ?? ""
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
render() {
|
|
59
|
+
const e = this._renderLegendElement(), t = k(this.legendElement, this.messages), i = this.stacked ? s`<div class=${l(a.carouselTitleContainer)}>${v({ class: n(a.carouselTitle, u.heading), level: this.headingLevel, children: this.activeLayerInfo.title })}${t ? s`<p class=${l(a.layerCaption)}>${t}</p>` : null}</div>` : t ? v({ class: n(a.sectionTitle, u.heading), level: this.headingLevel, children: t }) : null;
|
|
60
|
+
return s`<section class=${l(a.section)} role=tabpanel tabindex=0>${i}${e}</section>`;
|
|
61
|
+
}
|
|
62
|
+
_renderLegendElement() {
|
|
63
|
+
switch (this.legendElement.type) {
|
|
64
|
+
case "symbol-table":
|
|
65
|
+
return this._renderSymbolTable(this.legendElement);
|
|
66
|
+
case "size-ramp":
|
|
67
|
+
return s`<arcgis-legend-card-size-ramp .hasIndicators=${this.stacked} .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-card-size-ramp>`;
|
|
68
|
+
case "color-ramp":
|
|
69
|
+
case "opacity-ramp":
|
|
70
|
+
case "heatmap-ramp":
|
|
71
|
+
case "stretch-ramp":
|
|
72
|
+
return s`<arcgis-legend-card-color-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-card-color-ramp>`;
|
|
73
|
+
case "relationship-ramp":
|
|
74
|
+
return s`<arcgis-legend-relationship-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .opacity=${this.layer.opacity} .messages=${this.messages}></arcgis-legend-relationship-ramp>`;
|
|
75
|
+
case "pie-chart-ramp":
|
|
76
|
+
return s`<div class=${l(a.pieChartRampPreview)}>${this.legendElement.preview}</div>`;
|
|
77
|
+
case "univariate-above-and-below-ramp":
|
|
78
|
+
return s`<arcgis-legend-card-univariate-above-and-below-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-card-univariate-above-and-below-ramp>`;
|
|
79
|
+
case "univariate-color-size-ramp":
|
|
80
|
+
return s`<arcgis-legend-card-univariate-color-size-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-card-univariate-color-size-ramp>`;
|
|
81
|
+
default:
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
_renderSymbolTable(e) {
|
|
86
|
+
const t = e.infos.map((r) => this._renderElementInfo(r, e.legendType)).filter(Boolean);
|
|
87
|
+
if (!t.length)
|
|
88
|
+
return null;
|
|
89
|
+
const i = e.infos.some((r) => "symbol" in r && r.symbol?.type.includes("simple-fill")), c = this.activeLayerInfo.legendElements.some(({ type: r }) => r === "relationship-ramp") ? a.relationshipContainer : i ? a.backgroundStylesContainer : a.container;
|
|
90
|
+
return s`<div class=${l(c)}>${t}</div>`;
|
|
91
|
+
}
|
|
92
|
+
_renderElementInfo(e, t) {
|
|
93
|
+
const { layer: i } = this, d = "label" in e ? e.label : null;
|
|
94
|
+
if ("type" in e && e.type)
|
|
95
|
+
return s`<arcgis-legend-card-element .activeLayerInfo=${this.activeLayerInfo} .cssEffectFilter=${this.cssEffectFilter} .stacked=${this.stacked} .headingLevel=${this.headingLevel} .layer=${i} .legendElement=${e} .messages=${this.messages}></arcgis-legend-card-element>`;
|
|
96
|
+
if (!("preview" in e && e.preview) && !("src" in e && e.src))
|
|
97
|
+
return null;
|
|
98
|
+
const c = C(i, t), r = f(this.messages, d, !1) || "";
|
|
99
|
+
if ("src" in e && e.src) {
|
|
100
|
+
const o = {
|
|
101
|
+
[a.symbolCell]: this.stacked
|
|
102
|
+
};
|
|
103
|
+
return s`<div class=${l(n(a.layerRow, { [a.symbolRow]: this.stacked }))}><div class=${l(n(o))}>${this._renderImage(e, i, c)}</div><div class=${l(n(a.imageLabel, { [a.labelCell]: this.stacked }))}>${r}</div></div>`;
|
|
104
|
+
}
|
|
105
|
+
if ("symbol" in e && e.preview) {
|
|
106
|
+
if (!e.symbol?.type.includes("simple-fill")) {
|
|
107
|
+
if (!e.label)
|
|
108
|
+
return s`<div>${e.preview}</div>`;
|
|
109
|
+
const o = {
|
|
110
|
+
[a.symbolCell]: this.stacked
|
|
111
|
+
};
|
|
112
|
+
return s`<div class=${l(n(a.layerRow, { [a.symbolRow]: this.stacked }))}><div class=${l(n(o))}>${e.preview}</div><div class=${l(n(a.imageLabel, { [a.labelCell]: this.stacked }))}>${r}</div></div>`;
|
|
113
|
+
}
|
|
114
|
+
return s`<div class=${l(a.layerRow)}><div class=${l(a.labelElement)} style=${b(this._getBackgroundStyles(e))}>${r}</div></div>`;
|
|
115
|
+
}
|
|
116
|
+
return null;
|
|
117
|
+
}
|
|
118
|
+
_renderImage(e, t, i) {
|
|
119
|
+
const { label: d, src: c, opacity: r } = e, o = {
|
|
120
|
+
[a.imageryLayerStretchedImage]: i,
|
|
121
|
+
[a.symbol]: !i
|
|
122
|
+
}, _ = {
|
|
123
|
+
opacity: `${r ?? t.opacity}`
|
|
124
|
+
}, m = f(this.messages, d, !1);
|
|
125
|
+
return s`<img alt=${m ?? y} .ariaLabel=${m} class=${l(n(o))} height=${e.height ?? void 0 ?? y} src=${c ?? y} style=${b(_)} width=${e.width ?? void 0 ?? y}>`;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
w("arcgis-legend-card-element", F);
|
|
129
|
+
export {
|
|
130
|
+
F as ArcgisLegendCardElement
|
|
131
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "../arcgis-legend-card-size-ramp/index.js";
|
|
2
|
+
import "../arcgis-legend-card-color-ramp/index.js";
|
|
3
|
+
import "../arcgis-legend-relationship-ramp/index.js";
|
|
4
|
+
import "../arcgis-legend-card-univariate-above-and-below-ramp/index.js";
|
|
5
|
+
import "../arcgis-legend-card-univariate-color-size-ramp/index.js";
|
|
6
|
+
import ".//index.js";
|
|
7
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "../arcgis-legend-card-size-ramp/index.js";
|
|
2
|
+
import "../arcgis-legend-card-color-ramp/index.js";
|
|
3
|
+
import "../arcgis-legend-relationship-ramp/index.js";
|
|
4
|
+
import "../arcgis-legend-card-univariate-above-and-below-ramp/index.js";
|
|
5
|
+
import "../arcgis-legend-card-univariate-color-size-ramp/index.js";
|
|
6
|
+
import ".//index.js";
|
|
7
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
+
/// <reference path="../../index.d.ts" />
|
|
3
|
+
import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
4
|
+
import { ArcgisLegend } from '../arcgis-legend/customElement.js';
|
|
5
|
+
|
|
6
|
+
/** [Read more...](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-legend-card-size-ramp/) */
|
|
7
|
+
export declare class LegendCardSizeRamp extends LitElement {
|
|
8
|
+
/** @default false */
|
|
9
|
+
hasIndicators: boolean;
|
|
10
|
+
legendElement: __esri.SizeRampElement;
|
|
11
|
+
/** @default 1 */
|
|
12
|
+
opacity: number;
|
|
13
|
+
messages: ArcgisLegend["messages"];
|
|
14
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { c as k } from "../../chunks/runtime.js";
|
|
2
|
+
import { css as C, html as X } from "lit";
|
|
3
|
+
import { LitElement as I, safeStyleMap as z, safeClassMap as g } from "@arcgis/lumina";
|
|
4
|
+
import { p as Y } from "../../chunks/utils2.js";
|
|
5
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
|
+
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
7
|
+
v4.34.0-next.121 */
|
|
8
|
+
const P = C`.arcgis-legend--card__size-ramp--container{display:flex;align-items:center;justify-content:center}.arcgis-legend--card__size-ramp--vertical-container{display:flex;flex-direction:column;align-items:center;justify-content:center}.arcgis-legend--card__size-ramp--label{margin:0 .5em;white-space:nowrap}.arcgis-legend--card__size-ramp--vertical-ramp{display:flex;flex-direction:column;align-items:center}.arcgis-legend--card__size-ramp--ramp{display:flex;flex-direction:row-reverse;align-items:center}.arcgis-legend--card__size-ramp--preview{display:flex}`, d = {
|
|
9
|
+
container: "arcgis-legend--card__size-ramp--container",
|
|
10
|
+
verticalContainer: "arcgis-legend--card__size-ramp--vertical-container",
|
|
11
|
+
label: "arcgis-legend--card__size-ramp--label",
|
|
12
|
+
ramp: "arcgis-legend--card__size-ramp--ramp",
|
|
13
|
+
verticalRamp: "arcgis-legend--card__size-ramp--vertical-ramp",
|
|
14
|
+
preview: "arcgis-legend--card__size-ramp--preview"
|
|
15
|
+
}, j = "#ddd";
|
|
16
|
+
function M(e) {
|
|
17
|
+
if (!e)
|
|
18
|
+
return;
|
|
19
|
+
if (e.type.includes("3d")) {
|
|
20
|
+
if (!("symbolLayers" in e) || !e.symbolLayers?.length)
|
|
21
|
+
return;
|
|
22
|
+
const t = e.symbolLayers.at(-1), i = t && "resource" in t ? t.resource?.primitive : void 0;
|
|
23
|
+
return i === "circle" || i === "cross" || i === "kite" || i === "sphere" || i === "cube" || i === "diamond";
|
|
24
|
+
}
|
|
25
|
+
const n = "style" in e ? e.style : void 0;
|
|
26
|
+
return n === "circle" || n === "diamond" || n === "cross";
|
|
27
|
+
}
|
|
28
|
+
function N(e) {
|
|
29
|
+
if (e) {
|
|
30
|
+
if (e.type.includes("3d")) {
|
|
31
|
+
if (!("symbolLayers" in e) || !e.symbolLayers?.length)
|
|
32
|
+
return;
|
|
33
|
+
const n = e.symbolLayers.at(-1), t = n && "resource" in n ? n.resource?.primitive : void 0;
|
|
34
|
+
return t === "triangle" || t === "cone" || t === "tetrahedron";
|
|
35
|
+
}
|
|
36
|
+
return "style" in e && e.style === "triangle";
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
class O extends I {
|
|
40
|
+
constructor() {
|
|
41
|
+
super(...arguments), this.hasIndicators = !1, this.legendElement = null, this.opacity = 1;
|
|
42
|
+
}
|
|
43
|
+
static {
|
|
44
|
+
this.properties = { hasIndicators: 5, legendElement: 0, opacity: 9, messages: 0 };
|
|
45
|
+
}
|
|
46
|
+
static {
|
|
47
|
+
this.styles = P;
|
|
48
|
+
}
|
|
49
|
+
render() {
|
|
50
|
+
if (this.legendElement.theme === "spike")
|
|
51
|
+
return X`<div style=${z({ display: "flex", flex: "1", justifyContent: "center" })}><arcgis-legend-spike-ramp .legendElement=${this.legendElement} .messages=${this.messages}></arcgis-legend-spike-ramp></div>`;
|
|
52
|
+
const { legendElement: n, hasIndicators: t, opacity: i } = this, l = n.infos, v = l.at(0), p = l.at(-1);
|
|
53
|
+
if (!v || !p)
|
|
54
|
+
return null;
|
|
55
|
+
const { label: f, ...S } = v, { label: u, ..._ } = p;
|
|
56
|
+
let r = S.preview, s = _.preview;
|
|
57
|
+
if (!r || !s)
|
|
58
|
+
return null;
|
|
59
|
+
r = r.cloneNode(!0), r.style.display = "flex", s = s.cloneNode(!0), s.style.display = "flex";
|
|
60
|
+
const o = { opacity: `${i ?? ""}` };
|
|
61
|
+
return X`<div class=${g(t ? d.verticalContainer : d.container)}><div class=${g(d.label)}>${t ? f : u}</div><div class=${g(t ? d.verticalRamp : d.ramp)}><div class=${g(d.preview)} style=${z(o)}>${r}</div>${this._renderSizeRampLines(n)}<div class=${g(d.preview)} style=${z(o)}>${s}</div></div><div class=${g(d.label)}>${t ? u : f}</div></div>`;
|
|
62
|
+
}
|
|
63
|
+
_renderSizeRampLines(n) {
|
|
64
|
+
const t = n.infos, i = t.at(0), l = t.at(-1);
|
|
65
|
+
if (!i || !l)
|
|
66
|
+
return null;
|
|
67
|
+
const v = i.symbol, p = this.hasIndicators, f = i.size && typeof i.size == "number" ? i.size : 0, S = l.size && typeof l.size == "number" ? l.size : 0, u = i.outlineSize || 0, _ = l.outlineSize || 0, r = Y(f + u), s = Y(S + _), o = p ? r : r + 50, m = p ? r / 2 + 50 : r, y = N(v), h = M(v), c = document.createElement("canvas");
|
|
68
|
+
c.width = o, c.height = m, c.style.width = `${c.width}px`, c.style.height = `${c.height}px`;
|
|
69
|
+
const a = c.getContext("2d");
|
|
70
|
+
if (p) {
|
|
71
|
+
a.beginPath();
|
|
72
|
+
const $ = 0, x = 0, b = o / 2 - s / 2, w = m;
|
|
73
|
+
a.moveTo($, x), a.lineTo(b, w);
|
|
74
|
+
const L = o, T = 0, E = o / 2 + s / 2, R = m;
|
|
75
|
+
a.moveTo(L, T), a.lineTo(E, R);
|
|
76
|
+
} else {
|
|
77
|
+
a.beginPath();
|
|
78
|
+
const $ = 0, x = m / 2 - s / 2, b = o, w = 0;
|
|
79
|
+
a.moveTo($, x), a.lineTo(b, w);
|
|
80
|
+
const L = 0, T = m / 2 + s / 2, E = o, R = m;
|
|
81
|
+
a.moveTo(L, T), a.lineTo(E, R);
|
|
82
|
+
}
|
|
83
|
+
return a.strokeStyle = j, a.stroke(), X`<div style=${z(p ? {
|
|
84
|
+
display: "flex",
|
|
85
|
+
marginTop: `-${y ? 0 : h ? r / 2 : 0}px`,
|
|
86
|
+
marginBottom: `-${y ? s : h ? s / 2 : 0}px`
|
|
87
|
+
} : {
|
|
88
|
+
display: "flex",
|
|
89
|
+
marginRight: `-${y ? 0 : h ? r / 2 : 0}px`,
|
|
90
|
+
marginLeft: `-${y ? 0 : h ? s / 2 : 0}px`
|
|
91
|
+
})}>${c}</div>`;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
k("arcgis-legend-card-size-ramp", O);
|
|
95
|
+
export {
|
|
96
|
+
O as LegendCardSizeRamp
|
|
97
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
+
/// <reference path="../../index.d.ts" />
|
|
3
|
+
import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
4
|
+
import { ArcgisLegend } from '../arcgis-legend/customElement.js';
|
|
5
|
+
|
|
6
|
+
/** [Read more...](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-legend-card-univariate-above-and-below-ramp/) */
|
|
7
|
+
export declare class LegendCardUnivariateAboveAndBelowRamp extends LitElement {
|
|
8
|
+
cssEffectFilter?: string;
|
|
9
|
+
legendElement: __esri.UnivariateColorSizeRampElement;
|
|
10
|
+
/** @default 1 */
|
|
11
|
+
opacity: number;
|
|
12
|
+
messages: ArcgisLegend["messages"];
|
|
13
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { c as C } from "../../chunks/runtime.js";
|
|
2
|
+
import { css as E, html as r } from "lit";
|
|
3
|
+
import { LitElement as L, safeClassMap as a, safeStyleMap as o } from "@arcgis/lumina";
|
|
4
|
+
import { c as S } from "../../chunks/utils.js";
|
|
5
|
+
import { f as k, h as B, b, c as f, a as U } from "../../chunks/univariateUtils.js";
|
|
6
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
7
|
+
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
8
|
+
v4.34.0-next.121 */
|
|
9
|
+
const F = E`.arcgis-legend--card__layer-row{display:flex;align-items:center}.arcgis-legend--card__symbol{display:block;margin:auto}.arcgis-legend--card__symbol-container{position:relative}.arcgis-legend__ramp-labels{display:flex;flex-flow:column nowrap;justify-content:space-between}.arcgis-legend__layer-cell{padding:var(--calcite-spacing-xxs) 0;min-width:100px;vertical-align:middle;word-break:break-word}.arcgis-legend__layer-cell--info{padding-right:var(--calcite-spacing-sm);padding-left:var(--calcite-spacing-sm);max-width:250px;word-break:normal;word-wrap:normal;font-size:var(--calcite-font-size-sm)}.arcgis-univariate-above-and-below-ramp__color--card{position:relative}.arcgis-univariate-above-and-below-ramp__color--card:before{content:"";border-left:var(--calcite-border-width-sm) solid var(--calcite-color-background);border-right:var(--calcite-border-width-sm) solid var(--calcite-color-background);width:100%;height:15px;display:block;position:absolute;top:var(--calcite-border-width-sm)}.arcgis-univariate-above-and-below-ramp__symbol{display:flex;align-items:center;justify-content:center}`, i = {
|
|
10
|
+
layerRow: "arcgis-legend--card__layer-row",
|
|
11
|
+
symbol: "arcgis-legend--card__symbol",
|
|
12
|
+
symbolContainer: "arcgis-legend--card__symbol-container",
|
|
13
|
+
rampLabelsContainer: "arcgis-legend__ramp-labels",
|
|
14
|
+
layerInfo: "arcgis-legend__layer-cell arcgis-legend__layer-cell--info",
|
|
15
|
+
univariateAboveAndBelowColorRamp: "arcgis-univariate-above-and-below-ramp__color--card"
|
|
16
|
+
};
|
|
17
|
+
class M extends L {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments), this.legendElement = null, this.opacity = 1;
|
|
20
|
+
}
|
|
21
|
+
static {
|
|
22
|
+
this.properties = { cssEffectFilter: 1, legendElement: 0, opacity: 9, messages: 0 };
|
|
23
|
+
}
|
|
24
|
+
static {
|
|
25
|
+
this.styles = F;
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
const { legendElement: y, opacity: t } = this, { sizeRampElement: e, colorRampElement: n } = k(y, t, "horizontal");
|
|
29
|
+
if (!e)
|
|
30
|
+
return null;
|
|
31
|
+
const w = B(e, "full", !0, "horizontal"), h = b(e, "above", !0, "horizontal"), _ = b(e, "below", !0, "horizontal"), c = 12, d = this.messages?.previewColorRampAriaLabel, m = f(n, {
|
|
32
|
+
width: h,
|
|
33
|
+
height: c,
|
|
34
|
+
rampAlignment: "horizontal",
|
|
35
|
+
opacity: t,
|
|
36
|
+
type: "above",
|
|
37
|
+
cssEffectFilter: this.cssEffectFilter,
|
|
38
|
+
ariaLabel: d
|
|
39
|
+
}), u = f(n, {
|
|
40
|
+
width: _,
|
|
41
|
+
height: c,
|
|
42
|
+
rampAlignment: "horizontal",
|
|
43
|
+
opacity: t,
|
|
44
|
+
type: "below",
|
|
45
|
+
cssEffectFilter: this.cssEffectFilter,
|
|
46
|
+
ariaLabel: d
|
|
47
|
+
}), p = U(e, "card"), g = e.infos.map((l) => l.label), R = g.length - 1, x = g.map((l, v) => v === 0 || v === R ? r`<div>${l}</div>` : null), $ = { display: "flex", flexDirection: "column" }, z = { display: "flex", flexDirection: "row" }, s = {
|
|
48
|
+
marginTop: "3px",
|
|
49
|
+
display: "flex"
|
|
50
|
+
};
|
|
51
|
+
S(this.el) ? s.marginRight = `${p}px` : s.marginLeft = `${p}px`;
|
|
52
|
+
const A = {
|
|
53
|
+
width: `${w}px`,
|
|
54
|
+
display: "flex",
|
|
55
|
+
flexDirection: "row",
|
|
56
|
+
justifyContent: "space-between"
|
|
57
|
+
};
|
|
58
|
+
return r`<div class=${a(i.layerRow)} style=${o($)}><div class=${a(i.symbolContainer)} style=${o(z)}>${e.infos.map((l) => r`<div class=${a(i.symbol)}>${l.preview}</div>`)}</div>${m ? r`<div class=${a(i.univariateAboveAndBelowColorRamp)} style=${o(s)}><div>${m}</div><div>${u}</div></div>` : null}<div class=${a(i.layerInfo)}><div class=${a(i.rampLabelsContainer)} style=${o(A)}>${x}</div></div></div>`;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
C("arcgis-legend-card-univariate-above-and-below-ramp", M);
|
|
62
|
+
export {
|
|
63
|
+
M as LegendCardUnivariateAboveAndBelowRamp
|
|
64
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
+
/// <reference path="../../index.d.ts" />
|
|
3
|
+
import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
4
|
+
import { ArcgisLegend } from '../arcgis-legend/customElement.js';
|
|
5
|
+
|
|
6
|
+
/** [Read more...](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-legend-card-univariate-color-size-ramp/) */
|
|
7
|
+
export declare class LegendCardUnivariateColorSizeRamp extends LitElement {
|
|
8
|
+
cssEffectFilter?: string;
|
|
9
|
+
legendElement: __esri.UnivariateColorSizeRampElement;
|
|
10
|
+
/** @default 1 */
|
|
11
|
+
opacity: number;
|
|
12
|
+
messages: ArcgisLegend["messages"];
|
|
13
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { c as _ } from "../../chunks/runtime.js";
|
|
2
|
+
import { css as u, html as o } from "lit";
|
|
3
|
+
import { LitElement as R, safeClassMap as a, safeStyleMap as l } from "@arcgis/lumina";
|
|
4
|
+
import { c as x } from "../../chunks/utils.js";
|
|
5
|
+
import { g as $, h as C, b as z, c as E, a as S } from "../../chunks/univariateUtils.js";
|
|
6
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
7
|
+
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
8
|
+
v4.34.0-next.121 */
|
|
9
|
+
const L = u`.arcgis-legend--card__layer-row,.arcgis-legend--card__symbol{display:flex;align-items:center}.arcgis-legend--card__symbol-container{position:relative}.arcgis-legend__ramp-labels{display:flex;flex-flow:column nowrap;justify-content:space-between}.arcgis-legend__layer-cell{padding:var(--calcite-spacing-xxs) 0;min-width:100px;vertical-align:middle;word-break:break-word}.arcgis-legend__layer-cell--info{padding-right:var(--calcite-spacing-sm);padding-left:var(--calcite-spacing-sm);max-width:250px;word-break:normal;word-wrap:normal;font-size:var(--calcite-font-size-sm)}.arcgis-univariate-above-and-below-ramp__color--card{position:relative}.arcgis-univariate-above-and-below-ramp__color--card:before{content:"";border-left:var(--calcite-border-width-sm) solid var(--calcite-color-background);border-right:var(--calcite-border-width-sm) solid var(--calcite-color-background);width:100%;height:15px;display:block;position:absolute;top:var(--calcite-border-width-sm)}.arcgis-univariate-above-and-below-ramp__symbol{display:flex;align-items:center;justify-content:center}`, i = {
|
|
10
|
+
layerRow: "arcgis-legend--card__layer-row",
|
|
11
|
+
symbol: "arcgis-legend--card__symbol",
|
|
12
|
+
symbolContainer: "arcgis-legend--card__symbol-container",
|
|
13
|
+
rampLabelsContainer: "arcgis-legend__ramp-labels",
|
|
14
|
+
layerInfo: "arcgis-legend__layer-cell arcgis-legend__layer-cell--info",
|
|
15
|
+
univariateAboveAndBelowColorRamp: "arcgis-univariate-above-and-below-ramp__color--card"
|
|
16
|
+
};
|
|
17
|
+
class k extends R {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments), this.legendElement = null, this.opacity = 1;
|
|
20
|
+
}
|
|
21
|
+
static {
|
|
22
|
+
this.properties = { cssEffectFilter: 1, legendElement: 0, opacity: 9, messages: 0 };
|
|
23
|
+
}
|
|
24
|
+
static {
|
|
25
|
+
this.styles = L;
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
const { legendElement: c, opacity: d } = this, { sizeRampElement: e, colorRampElement: m } = $(c, "horizontal");
|
|
29
|
+
if (!e)
|
|
30
|
+
return null;
|
|
31
|
+
const p = C(e, "full", !1, "horizontal"), g = z(e, "full", !1, "horizontal"), v = E(m, {
|
|
32
|
+
width: g,
|
|
33
|
+
height: 12,
|
|
34
|
+
rampAlignment: "horizontal",
|
|
35
|
+
opacity: d,
|
|
36
|
+
type: "full",
|
|
37
|
+
cssEffectFilter: this.cssEffectFilter,
|
|
38
|
+
ariaLabel: this.messages?.previewColorRampAriaLabel
|
|
39
|
+
}), s = S(e, "card"), f = e.infos.length - 1, y = e.infos.map((t, n) => n === 0 || n === f ? o`<div>${t.label}</div>` : null), b = {
|
|
40
|
+
display: "flex",
|
|
41
|
+
flexDirection: "column"
|
|
42
|
+
}, h = {
|
|
43
|
+
display: "flex",
|
|
44
|
+
flexDirection: "row"
|
|
45
|
+
}, r = {
|
|
46
|
+
marginTop: "3px",
|
|
47
|
+
display: "flex"
|
|
48
|
+
};
|
|
49
|
+
x(this.el) ? r.marginRight = `${s}px` : r.marginLeft = `${s}px`;
|
|
50
|
+
const w = {
|
|
51
|
+
width: `${p}px`,
|
|
52
|
+
display: "flex",
|
|
53
|
+
flexDirection: "row",
|
|
54
|
+
justifyContent: "space-between"
|
|
55
|
+
};
|
|
56
|
+
return o`<div class=${a(i.layerRow)} style=${l(b)}><div class=${a(i.symbolContainer)} style=${l(h)}>${e.infos.map((t) => o`<div class=${a(i.symbol)}>${t.preview}</div>`)}</div><div class=${a(i.univariateAboveAndBelowColorRamp)} style=${l(r)}><div>${v}</div></div><div class=${a(i.layerInfo)}><div class=${a(i.rampLabelsContainer)} style=${l(w)}>${y}</div></div></div>`;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
_("arcgis-legend-card-univariate-color-size-ramp", k);
|
|
60
|
+
export {
|
|
61
|
+
k as LegendCardUnivariateColorSizeRamp
|
|
62
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|