@arcgis/map-components 5.2.0 → 5.2.2
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/{2XVIXLFC.js → 2FCMPHIV.js} +1 -1
- package/dist/cdn/2SQVQIG7.js +2 -0
- package/dist/cdn/{FGQBQOSC.js → 2TJY73QP.js} +1 -1
- package/dist/cdn/{43AJEL4U.js → 2YI63CXS.js} +1 -1
- package/dist/cdn/{IYA4JZ27.js → 34PRWOGS.js} +1 -1
- package/dist/cdn/{47Y2IWSQ.js → 3ADNBTSI.js} +1 -1
- package/dist/cdn/{YPWE3ZCH.js → 3F4MY34S.js} +1 -1
- package/dist/cdn/{ABVDDPFU.js → 3G6CVDYC.js} +1 -1
- package/dist/cdn/{OJCIHEHE.js → 3I7AVT75.js} +1 -1
- package/dist/cdn/{HYT3UPTO.js → 3LM4ESUS.js} +1 -1
- package/dist/cdn/{IP2FUUWH.js → 3OIWXTS4.js} +1 -1
- package/dist/cdn/{C2J6S4Z2.js → 3UOKCRDF.js} +1 -1
- package/dist/cdn/{ANEM6VG4.js → 3X3AUEIS.js} +1 -1
- package/dist/cdn/{ZSJ2EBUQ.js → 3XLTK34U.js} +1 -1
- package/dist/cdn/{POWWSXNT.js → 3YN6FULD.js} +1 -1
- package/dist/cdn/{KHO2GTRP.js → 43PKM6NL.js} +1 -1
- package/dist/cdn/{V2ACQ7VV.js → 45D5YJFW.js} +1 -1
- package/dist/cdn/{WJLZSKQQ.js → 4AL5KW4G.js} +1 -1
- package/dist/cdn/{FLNBBKNT.js → 4BJKGWD5.js} +1 -1
- package/dist/cdn/4BJTNOWZ.js +2 -0
- package/dist/cdn/{635ILZB3.js → 4H2YEHN6.js} +1 -1
- package/dist/cdn/{WRNOW2UH.js → 4ILCZIEH.js} +1 -1
- package/dist/cdn/{JRGLKWWK.js → 4KGT4QGH.js} +1 -1
- package/dist/cdn/{X6OT67Y6.js → 4PH524HZ.js} +1 -1
- package/dist/cdn/{BJCFTXR6.js → 4TXBFCMS.js} +1 -1
- package/dist/cdn/{7DV5IVJT.js → 4WPFWNYA.js} +1 -1
- package/dist/cdn/{XNLAXPWQ.js → 5CMLVLMU.js} +1 -1
- package/dist/cdn/{6ILJDG3P.js → 5LF6KZXA.js} +1 -1
- package/dist/cdn/{355UQVMW.js → 5O6GSNCK.js} +1 -1
- package/dist/cdn/{4NSXW6XY.js → 5XE5OG5Q.js} +1 -1
- package/dist/cdn/{J2KUPLYF.js → 5ZJSIMLN.js} +1 -1
- package/dist/cdn/{VEDHMG42.js → 64DIERHZ.js} +1 -1
- package/dist/cdn/{M6RLO4DB.js → 677YZFAY.js} +1 -1
- package/dist/cdn/{ZZ75DOT6.js → 67UBKYMA.js} +1 -1
- package/dist/cdn/{4G6TVRCP.js → 6HHQ4CFD.js} +1 -1
- package/dist/cdn/{S74ZRTKO.js → 6IGMUESG.js} +1 -1
- package/dist/cdn/{OYDPICFN.js → 6MADTJ5B.js} +1 -1
- package/dist/cdn/{IZ45CVO5.js → 6ZSHYAME.js} +1 -1
- package/dist/cdn/{DDCVZ3TR.js → 72BVXXSX.js} +1 -1
- package/dist/cdn/{3SRUPOXP.js → 76FDRVF3.js} +1 -1
- package/dist/cdn/{4GJFYHTJ.js → 77QGG4FQ.js} +1 -1
- package/dist/cdn/{KFZKNGIN.js → 7BMTWCL6.js} +1 -1
- package/dist/cdn/{NFM3C6NI.js → 7CL3VLND.js} +1 -1
- package/dist/cdn/{UWD3ONTH.js → 7DSMTEXR.js} +1 -1
- package/dist/cdn/{5RSL2L45.js → 7II4FFRT.js} +1 -1
- package/dist/cdn/{OJBZVPY6.js → 7MTTC2SX.js} +1 -1
- package/dist/cdn/{6J7G33BJ.js → 7PGITVAW.js} +1 -1
- package/dist/cdn/{SZGZ5WGC.js → 7VYELPGF.js} +1 -1
- package/dist/cdn/{RXIVAN2Z.js → 7Z5SLK5U.js} +1 -1
- package/dist/cdn/{4K5KABJN.js → A4ETODAW.js} +1 -1
- package/dist/cdn/{7MPCFWQO.js → A4XPYXJM.js} +1 -1
- package/dist/cdn/{ELUP4NED.js → A53KFJWF.js} +1 -1
- package/dist/cdn/{QJIYQN5J.js → A7DMJC2C.js} +1 -1
- package/dist/cdn/{WCOLD2O3.js → ABDYYC4G.js} +1 -1
- package/dist/cdn/{UDR5EDW6.js → AMGD63S2.js} +1 -1
- package/dist/cdn/{7UVJE6U5.js → AUH73G2E.js} +1 -1
- package/dist/cdn/{EY5JAMPL.js → AZ6LETNU.js} +1 -1
- package/dist/cdn/{XTT36USG.js → B4ANWLUG.js} +1 -1
- package/dist/cdn/{UCDMSAHY.js → B5KCLDL2.js} +1 -1
- package/dist/cdn/{3P2EA4FW.js → BAMWA7RI.js} +1 -1
- package/dist/cdn/{SA3FDVCF.js → BCR3DL6X.js} +1 -1
- package/dist/cdn/{FWXD4CAA.js → BIJG7CA2.js} +1 -1
- package/dist/cdn/{6N76KI6B.js → BKPJLEFJ.js} +1 -1
- package/dist/cdn/{VD6KWEWO.js → BZKYNLB5.js} +1 -1
- package/dist/cdn/{OTVUOSDW.js → C6H43UKX.js} +1 -1
- package/dist/cdn/{EKGMCVLS.js → CF4BHYKQ.js} +1 -1
- package/dist/cdn/{OUQ5UXAI.js → CGBP4F2A.js} +1 -1
- package/dist/cdn/{HX3UNRCF.js → CJQEVGBT.js} +1 -1
- package/dist/cdn/{ZG67BSBM.js → CPE5UEEG.js} +1 -1
- package/dist/cdn/CURWXMSM.js +2 -0
- package/dist/cdn/{IVITPRT5.js → D4OH3MOT.js} +1 -1
- package/dist/cdn/{J7XWWII7.js → D5CBRPXF.js} +1 -1
- package/dist/cdn/{2SSOEJFI.js → DCOHAZCB.js} +1 -1
- package/dist/cdn/{NRUPNXT4.js → DFKGG6CC.js} +1 -1
- package/dist/cdn/{AUJMMALE.js → DQAB64IE.js} +1 -1
- package/dist/cdn/{X7ZBJ4EV.js → DUFFHSYV.js} +1 -1
- package/dist/cdn/{ERMYIPIW.js → E2OMV72V.js} +1 -1
- package/dist/cdn/{DKY3FJ2L.js → EBUQ2QQ6.js} +1 -1
- package/dist/cdn/{KOVYOFWR.js → EDSLT3RM.js} +1 -1
- package/dist/cdn/{GHQTI3WE.js → EH6OQIL2.js} +1 -1
- package/dist/cdn/{D7HRVLNR.js → EIBP4JXR.js} +1 -1
- package/dist/cdn/EMHCIHGZ.js +2 -0
- package/dist/cdn/{KBMIXCB5.js → ERBLBUY7.js} +1 -1
- package/dist/cdn/{NKL7OBTB.js → F34ACIPU.js} +1 -1
- package/dist/cdn/{LJE2TVXC.js → FBIUGRMU.js} +1 -1
- package/dist/cdn/{LTKY3GWH.js → FGVGDIUL.js} +1 -1
- package/dist/cdn/{V5QSVEJ6.js → FLYTWINI.js} +1 -1
- package/dist/cdn/{TJUCGGUA.js → FY5SWE5F.js} +1 -1
- package/dist/cdn/{LXT673ON.js → G2S47RXQ.js} +1 -1
- package/dist/cdn/{TJVFYBBR.js → G75FOUJX.js} +1 -1
- package/dist/cdn/{WWRXQGB7.js → G7GTRWK2.js} +1 -1
- package/dist/cdn/{SUPGZ5FT.js → GIXMNA27.js} +1 -1
- package/dist/cdn/{HIXTGR4X.js → GMASIKUY.js} +1 -1
- package/dist/cdn/{ZRKBSIEK.js → GMM3Z4SJ.js} +1 -1
- package/dist/cdn/{5QUTCNMJ.js → GT5JQWQE.js} +1 -1
- package/dist/cdn/{42NI7MKM.js → GTZOF37L.js} +1 -1
- package/dist/cdn/{P4JSASDL.js → GWZWO4LC.js} +1 -1
- package/dist/cdn/{BWFAI6H2.js → H3VTLC2Y.js} +1 -1
- package/dist/cdn/{NA7NW5A3.js → H47DOETO.js} +1 -1
- package/dist/cdn/{YEOZIO4K.js → HHFXG766.js} +1 -1
- package/dist/cdn/{52MBSJME.js → HJZBT7NX.js} +1 -1
- package/dist/cdn/{S2FTBRV5.js → HPDCIP3F.js} +1 -1
- package/dist/cdn/{C6VOZSIN.js → HQ6OLV6V.js} +1 -1
- package/dist/cdn/HR7EZURW.js +2 -0
- package/dist/cdn/{7TGORQ2Y.js → HXJAY46L.js} +1 -1
- package/dist/cdn/{F65FT4ZZ.js → I2CJHX5K.js} +1 -1
- package/dist/cdn/{4IYTM3UE.js → IDSAETEG.js} +1 -1
- package/dist/cdn/{QA5Y5IKK.js → IIM6K4VX.js} +1 -1
- package/dist/cdn/IOPM2S4V.js +2 -0
- package/dist/cdn/{UG54GLP5.js → IQH5ND2K.js} +1 -1
- package/dist/cdn/{KHBMCVWB.js → ISJ3UPVI.js} +1 -1
- package/dist/cdn/{M3637WEM.js → IUBVMQSL.js} +1 -1
- package/dist/cdn/{H5OSJBGC.js → IYWVRTSX.js} +1 -1
- package/dist/cdn/{ZKNW2KW6.js → J4Q43AFY.js} +1 -1
- package/dist/cdn/{EWO5PCIV.js → J6CDGAVU.js} +1 -1
- package/dist/cdn/{KLA4R4EG.js → J6ID2I4A.js} +1 -1
- package/dist/cdn/{PEBIRCQ6.js → JBWSRGMR.js} +1 -1
- package/dist/cdn/{AI5XYR3T.js → JCC2QPPZ.js} +1 -1
- package/dist/cdn/{YD6RLPWT.js → JIEPWKVD.js} +1 -1
- package/dist/cdn/{QCTY2P3U.js → JKZVN7QJ.js} +1 -1
- package/dist/cdn/{L7O6F2YJ.js → JL4XV7YA.js} +1 -1
- package/dist/cdn/{TYLCXOYA.js → KUAN6RDC.js} +1 -1
- package/dist/cdn/{2CEIEEYI.js → KXCHF52S.js} +1 -1
- package/dist/cdn/{ECNWV7TN.js → KZ22PZP5.js} +1 -1
- package/dist/cdn/{YYTPIABA.js → L46QKGPR.js} +1 -1
- package/dist/cdn/{TYMJFNRW.js → L5KBFYKE.js} +1 -1
- package/dist/cdn/{3XINZ5UM.js → L5WMCQAT.js} +1 -1
- package/dist/cdn/{T35GLNJC.js → L6BKLWNP.js} +1 -1
- package/dist/cdn/{ZYLH4A35.js → L7Q33QUO.js} +1 -1
- package/dist/cdn/{75OQZ34G.js → LB4WUEVK.js} +1 -1
- package/dist/cdn/{A7W456AI.js → LFA7KSTK.js} +1 -1
- package/dist/cdn/{3BY3C6N6.js → LMFFBMUA.js} +1 -1
- package/dist/cdn/{CACN544U.js → LOV5JASH.js} +1 -1
- package/dist/cdn/M2EUTH2E.js +2 -0
- package/dist/cdn/{YOQMIKSF.js → M2MCR45P.js} +1 -1
- package/dist/cdn/{G7L2YHQQ.js → M4KNYIY2.js} +1 -1
- package/dist/cdn/{FIVRSSG3.js → M4UDSVMA.js} +1 -1
- package/dist/cdn/{Q4Y4VV2K.js → MC47DGQC.js} +1 -1
- package/dist/cdn/{ABBDUUM4.js → MCRNJHMD.js} +1 -1
- package/dist/cdn/{D2DEAMTQ.js → MES6GCTQ.js} +1 -1
- package/dist/cdn/MJ45WNQO.js +2 -0
- package/dist/cdn/{YJJL5Z2Q.js → MQHRXVWL.js} +1 -1
- package/dist/cdn/{PFAH4PTA.js → MRCUO54F.js} +1 -1
- package/dist/cdn/{VCZGRW7Z.js → MWC4YSVX.js} +1 -1
- package/dist/cdn/{GMAVCAO3.js → MWTSHQZA.js} +1 -1
- package/dist/cdn/{QR43PYML.js → NBGGAXEB.js} +1 -1
- package/dist/cdn/{L7TEKVZH.js → NDPGBXPQ.js} +1 -1
- package/dist/cdn/{CG6DG47E.js → NQGBYAXK.js} +1 -1
- package/dist/cdn/{7OLUMTPU.js → NXUTBSZG.js} +1 -1
- package/dist/cdn/{QRGIRHNW.js → O77BFSO7.js} +1 -1
- package/dist/cdn/{JN5G6BEG.js → OGY4BYTB.js} +1 -1
- package/dist/cdn/{3CATVA2O.js → OH5COBJU.js} +1 -1
- package/dist/cdn/{PCIOLOVZ.js → OK4XTRUT.js} +1 -1
- package/dist/cdn/{EPSO4NIM.js → OTM5BTIJ.js} +1 -1
- package/dist/cdn/{VN5W3HPP.js → PBVUXCDX.js} +1 -1
- package/dist/cdn/{544JD47Y.js → PEF3ESWF.js} +1 -1
- package/dist/cdn/{GOCVJEYD.js → PJ2RMW7S.js} +1 -1
- package/dist/cdn/{XWBX5I72.js → PMALMG3A.js} +1 -1
- package/dist/cdn/PQ57LJKN.js +2 -0
- package/dist/cdn/{Q6W3BX6Z.js → PQK6LD63.js} +1 -1
- package/dist/cdn/{OXS3TM7H.js → PSUBS3WC.js} +1 -1
- package/dist/cdn/{JRD6OT5Q.js → Q6CFZMRO.js} +1 -1
- package/dist/cdn/{YVUS5Z33.js → Q6RSMXZ7.js} +1 -1
- package/dist/cdn/{CRVQR53S.js → QA5JI6CV.js} +1 -1
- package/dist/cdn/{TQM3VDGS.js → QBNW46F3.js} +1 -1
- package/dist/cdn/{5P47MB6K.js → QKJVXHUY.js} +1 -1
- package/dist/cdn/{ZTKNT7ER.js → R5V7DFPM.js} +1 -1
- package/dist/cdn/{H3ZRCWWA.js → RAVJZLD3.js} +1 -1
- package/dist/cdn/{7JE67CVJ.js → RDCMYSI5.js} +1 -1
- package/dist/cdn/{FBNWHWXH.js → REVRAHWM.js} +1 -1
- package/dist/cdn/{5RYIR2ON.js → REZCL6Y6.js} +1 -1
- package/dist/cdn/{CROQUSJO.js → RFNV54G2.js} +1 -1
- package/dist/cdn/{I53T7OAX.js → ROQ2U72G.js} +1 -1
- package/dist/cdn/{WLK6APNW.js → RQLZQA4H.js} +1 -1
- package/dist/cdn/{HEQB2GHT.js → RRLW4AO6.js} +1 -1
- package/dist/cdn/RYUJN6UA.js +2 -0
- package/dist/cdn/{UHLA5H3N.js → S2DVV6PT.js} +1 -1
- package/dist/cdn/{H5LZNFXN.js → S2YHWXRS.js} +1 -1
- package/dist/cdn/{V3D5CKWL.js → S3IZTKQ4.js} +1 -1
- package/dist/cdn/{VKPN7XJZ.js → S3J3Q6MQ.js} +1 -1
- package/dist/cdn/{ONHLJM2G.js → SASXBRXK.js} +1 -1
- package/dist/cdn/{4CXG6JXU.js → SBQQHWIY.js} +1 -1
- package/dist/cdn/{JFM6XVOA.js → SGLVXUV2.js} +1 -1
- package/dist/cdn/{IAFR26VJ.js → SKORUMVX.js} +1 -1
- package/dist/cdn/{NW52Y4ZG.js → SL7Y6R57.js} +1 -1
- package/dist/cdn/{WEM6Y2HL.js → SLGN45ZM.js} +1 -1
- package/dist/cdn/{LCT3F7GZ.js → SPIYEJYW.js} +1 -1
- package/dist/cdn/{UQZKHDXL.js → SQJFCWUA.js} +1 -1
- package/dist/cdn/{OJSWOLIM.js → SW2SC7JP.js} +1 -1
- package/dist/cdn/{DNU4TU5L.js → SYMS2IGT.js} +1 -1
- package/dist/cdn/{IVUMKXQU.js → T252WQYH.js} +1 -1
- package/dist/cdn/{5K7D3NYX.js → T46K52WE.js} +1 -1
- package/dist/cdn/{ULVNML47.js → T5Q3U77V.js} +1 -1
- package/dist/cdn/{74BV2UR2.js → TB5FSNLA.js} +1 -1
- package/dist/cdn/{CKCOZURU.js → TM5ZBTEF.js} +1 -1
- package/dist/cdn/{M4VLJBQY.js → U4UIUKCI.js} +1 -1
- package/dist/cdn/{ZZKQ74HL.js → UBSVUJ2E.js} +1 -1
- package/dist/cdn/{JCIVO6PO.js → UCSXTGJF.js} +1 -1
- package/dist/cdn/{H3NQ3JZQ.js → UTEXQUJR.js} +1 -1
- package/dist/cdn/{5OOBWPUF.js → UY7K4GFV.js} +1 -1
- package/dist/cdn/{UXNWNOKM.js → UZX4NJCQ.js} +1 -1
- package/dist/cdn/{Z2BR42XY.js → VGA54DMA.js} +1 -1
- package/dist/cdn/{MM2KKNTQ.js → VH5DC7KP.js} +1 -1
- package/dist/cdn/VMEERD7A.js +2 -0
- package/dist/cdn/{7LV3QIZJ.js → VPWT7LXO.js} +1 -1
- package/dist/cdn/{2VGI6PON.js → VRHXD3MX.js} +1 -1
- package/dist/cdn/{J2AURZ7G.js → VUFBGJ3R.js} +1 -1
- package/dist/cdn/{77XQAHVN.js → VW4PUD6O.js} +1 -1
- package/dist/cdn/{3RLZEU77.js → VXJD4PIA.js} +1 -1
- package/dist/cdn/W5CCKBJL.js +2 -0
- package/dist/cdn/{NHNKGCBI.js → WAUWJNMK.js} +1 -1
- package/dist/cdn/{LXVKKWBF.js → WEIJICCE.js} +1 -1
- package/dist/cdn/{2EUIZFG5.js → WH36EQGF.js} +1 -1
- package/dist/cdn/{ME46MUVR.js → WHBMBC25.js} +1 -1
- package/dist/cdn/WOVRTZTU.js +2 -0
- package/dist/cdn/{EX5MOEMN.js → WPAAK5DC.js} +1 -1
- package/dist/cdn/{7O6J4X7O.js → X2GXRC7L.js} +1 -1
- package/dist/cdn/{U5PTELUQ.js → XAYRZHLG.js} +1 -1
- package/dist/cdn/{Z62HXRNX.js → XEKVXJYE.js} +1 -1
- package/dist/cdn/{THUPX2LZ.js → XMGRJM25.js} +1 -1
- package/dist/cdn/{GEZIDSYU.js → XMMRAUML.js} +1 -1
- package/dist/cdn/{LKW5X4ZS.js → XONQXZNS.js} +1 -1
- package/dist/cdn/{VAODARUF.js → XVOODXRO.js} +1 -1
- package/dist/cdn/{BEHE3J5Z.js → XWQTEMQH.js} +1 -1
- package/dist/cdn/{BQX6LWCS.js → XZANZZNP.js} +1 -1
- package/dist/cdn/{4RK27XKR.js → Y3W37FDA.js} +1 -1
- package/dist/cdn/{JOGGARMB.js → Y3YGBLU7.js} +1 -1
- package/dist/cdn/{7OVOYRDL.js → Y6CLLI7E.js} +1 -1
- package/dist/cdn/{C6O2VNAE.js → YNQP4KN4.js} +1 -1
- package/dist/cdn/{XU47BEOW.js → YOFHS2J5.js} +1 -1
- package/dist/cdn/{DYWNTGLO.js → YXSBMHD6.js} +1 -1
- package/dist/cdn/{42GZQRBT.js → Z3PIOWGR.js} +1 -1
- package/dist/cdn/{BYLDEVXF.js → Z6RI5IMB.js} +1 -1
- package/dist/cdn/{NC2GQGJT.js → ZAQCWDXZ.js} +1 -1
- package/dist/cdn/{7S7WALCQ.js → ZFHQB7YJ.js} +1 -1
- package/dist/cdn/{QF5Z6LVC.js → ZGB353GM.js} +1 -1
- package/dist/cdn/{YMSIBAGL.js → ZJ6YAWLX.js} +1 -1
- package/dist/cdn/{KDDEM52B.js → ZJUQU3A2.js} +1 -1
- package/dist/cdn/ZLTT354V.js +2 -0
- package/dist/cdn/{NUVHZA5W.js → ZNDZ6WCJ.js} +1 -1
- package/dist/cdn/{DSMAJT37.js → ZQ6QP7TQ.js} +1 -1
- package/dist/cdn/{N5DJYKIT.js → ZS2EAITQ.js} +1 -1
- package/dist/cdn/{A7QS6WHB.js → ZVIT7K65.js} +1 -1
- package/dist/cdn/{KSZYCJWG.js → ZXRYOT7S.js} +1 -1
- package/dist/cdn/{RKZHXOHI.js → ZYI632XM.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/components/arcgis-expand/customElement.js +5 -5
- package/dist/components/arcgis-sketch/customElement.d.ts +23 -9
- package/dist/components/arcgis-sketch/customElement.js +215 -206
- package/dist/components/arcgis-utility-network-picker/customElement.js +32 -31
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.d.ts +10 -4
- package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.js +10 -9
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +3 -0
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +7 -7
- package/dist/components/arcgis-utility-network-trace-locations/customElement.js +148 -118
- package/dist/components/arcgis-view-popover/customElement.d.ts +65 -33
- package/dist/components/arcgis-view-popover/customElement.js +196 -108
- package/dist/components/arcgis-view-popover/index.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +7 -7
- package/dist/cdn/3NO7L32R.js +0 -2
- package/dist/cdn/5AERV4OR.js +0 -2
- package/dist/cdn/6VHWWOP2.js +0 -2
- package/dist/cdn/7YZKCPR4.js +0 -2
- package/dist/cdn/IMK2NZAE.js +0 -2
- package/dist/cdn/J357FPG4.js +0 -2
- package/dist/cdn/NOXJSP5K.js +0 -2
- package/dist/cdn/S7HMLOW4.js +0 -2
- package/dist/cdn/SYLER3OL.js +0 -2
- package/dist/cdn/UTQYSTJC.js +0 -2
- package/dist/cdn/UWQK6HGY.js +0 -2
- package/dist/cdn/V5C4GMKX.js +0 -2
- package/dist/cdn/W2FVAB6I.js +0 -2
- package/dist/cdn/YL36JTMT.js +0 -2
- package/dist/components/arcgis-sketch/SketchComponentViewModel.d.ts +0 -84
- package/dist/components/arcgis-sketch/configuration.d.ts +0 -33
- package/dist/components/arcgis-sketch/support.d.ts +0 -17
- package/dist/components/arcgis-sketch/toolbar-sizing-controller.d.ts +0 -96
|
@@ -1,42 +1,32 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as N } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as q, noChange as
|
|
3
|
+
import { css as q, noChange as z, html as y } from "lit";
|
|
4
4
|
import { substitute as j } from "@arcgis/core/intl.js";
|
|
5
5
|
import { GenericController as J, usePropertyChange as Q, useWatchAttributes as X } from "@arcgis/lumina/controllers";
|
|
6
6
|
import { reEmitEvent as S } from "@arcgis/lumina-toolkit/reEmitEvent";
|
|
7
7
|
import Y from "@arcgis/core/layers/GraphicsLayer.js";
|
|
8
8
|
import Z from "@arcgis/core/symbols/TextSymbol.js";
|
|
9
|
-
import { LitElement as ee, createEvent as te, nothing as
|
|
9
|
+
import { LitElement as ee, createEvent as te, nothing as I } from "@arcgis/lumina";
|
|
10
10
|
import { watch as f, on as ie, whenOnce as oe } from "@arcgis/core/core/reactiveUtils.js";
|
|
11
11
|
import { u as se } from "../../chunks/useT9n.js";
|
|
12
12
|
import { m as ne } from "../../chunks/useViewModel.js";
|
|
13
13
|
import { V as _ } from "../../chunks/visible-element.js";
|
|
14
|
-
import { createRef as
|
|
14
|
+
import { createRef as L, ref as M } from "lit/directives/ref.js";
|
|
15
15
|
import le from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
|
|
16
16
|
import { S as re } from "../../chunks/resources.js";
|
|
17
17
|
import { getOrCreateMapValue as F, createReactiveMap as ae } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
18
|
-
import { LayoutPriorities as
|
|
18
|
+
import { LayoutPriorities as w } from "@arcgis/common-components";
|
|
19
19
|
import ce from "@arcgis/core/core/Accessor.js";
|
|
20
20
|
import { property as p, subclass as he } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
21
|
-
import { ignoreAbortErrors as
|
|
21
|
+
import { ignoreAbortErrors as T } from "@arcgis/core/core/promiseUtils.js";
|
|
22
22
|
import de from "@arcgis/core/widgets/Sketch/VisibleElements.js";
|
|
23
23
|
import pe from "@arcgis/core/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js";
|
|
24
|
-
import { c as
|
|
25
|
-
import { AsyncDirective as
|
|
24
|
+
import { c as ge } from "../../chunks/loader-utils.js";
|
|
25
|
+
import { AsyncDirective as ue } from "lit/async-directive.js";
|
|
26
26
|
import { directive as me, PartType as ve } from "lit/directive.js";
|
|
27
27
|
import { r as fe } from "../../chunks/async-utils.js";
|
|
28
28
|
import { observeAncestorsMutation as ye } from "@arcgis/toolkit/dom";
|
|
29
|
-
|
|
30
|
-
"bottom-end",
|
|
31
|
-
"bottom-start",
|
|
32
|
-
"bottom-left",
|
|
33
|
-
"bottom-right",
|
|
34
|
-
"top-end",
|
|
35
|
-
"top-start",
|
|
36
|
-
"top-left",
|
|
37
|
-
"top-right"
|
|
38
|
-
], Ce = new Set(be);
|
|
39
|
-
function B(i, e) {
|
|
29
|
+
function D(i, e) {
|
|
40
30
|
let t = e;
|
|
41
31
|
for (const o of i.split(".")) {
|
|
42
32
|
if (typeof t != "object" || t === null)
|
|
@@ -45,7 +35,7 @@ function B(i, e) {
|
|
|
45
35
|
}
|
|
46
36
|
return typeof t == "string" ? t : void 0;
|
|
47
37
|
}
|
|
48
|
-
const
|
|
38
|
+
const be = q`.editing-controls-panel{min-inline-size:100px;max-inline-size:400px;-webkit-user-select:none;user-select:none;pointer-events:initial;padding:var(--calcite-space-sm);arcgis-sketch-tooltip-controls+arcgis-snapping-controls{border-block-start:1px solid var(--calcite-color-border-3)}}:host{pointer-events:none}.toolbar-container{block-size:100%;min-block-size:0;min-inline-size:0}arcgis-toolbar-stack[layout=vertical]{block-size:100cqh;min-block-size:100%;max-block-size:100%}:host([data-intrinsic-toolbar-sizing]){min-inline-size:0;min-block-size:0;max-inline-size:100%;max-block-size:100%;arcgis-toolbar-stack[layout=vertical]{block-size:100%}}:host([data-intrinsic-toolbar-sizing][layout="vertical"]){display:grid;grid-template-columns:minmax(min-content,1fr);grid-template-rows:minmax(0,1fr);inline-size:fit-content;block-size:100%;.toolbar-container{block-size:auto}.toolbar-container,arcgis-view-popover{grid-area:1 / 1}}:host([data-intrinsic-toolbar-sizing][layout="vertical"][toolbar-kind="floating"]){block-size:auto}`, Ce = {
|
|
49
39
|
point: "pin",
|
|
50
40
|
polyline: "line",
|
|
51
41
|
polygon: "polygon",
|
|
@@ -56,45 +46,45 @@ const Se = q`.editing-controls-panel{min-inline-size:100px;max-inline-size:400px
|
|
|
56
46
|
freehandPolygon: "freehand-area",
|
|
57
47
|
freehandPolyline: "freehand",
|
|
58
48
|
text: "text"
|
|
59
|
-
},
|
|
49
|
+
}, Se = {
|
|
60
50
|
selectionTools: {
|
|
61
|
-
defaultPriority:
|
|
51
|
+
defaultPriority: w.Default,
|
|
62
52
|
groupKind: "split-button",
|
|
63
53
|
overflowLabel: "selection"
|
|
64
54
|
},
|
|
65
55
|
selectionSet: {
|
|
66
|
-
defaultPriority:
|
|
56
|
+
defaultPriority: w.High,
|
|
67
57
|
groupKind: "actions"
|
|
68
58
|
},
|
|
69
59
|
createTools: {
|
|
70
|
-
defaultPriority:
|
|
60
|
+
defaultPriority: w.High,
|
|
71
61
|
groupKind: "more-button",
|
|
72
62
|
overflowLabel: "drawing"
|
|
73
63
|
},
|
|
74
64
|
undoRedo: {
|
|
75
|
-
defaultPriority:
|
|
65
|
+
defaultPriority: w.Medium,
|
|
76
66
|
groupKind: "split-button",
|
|
77
67
|
overflowLabel: "action",
|
|
78
68
|
preferEndSlot: !0
|
|
79
69
|
},
|
|
80
70
|
settings: {
|
|
81
|
-
defaultPriority:
|
|
71
|
+
defaultPriority: w.Max,
|
|
82
72
|
groupKind: "more-button",
|
|
83
73
|
overflowLabel: "action",
|
|
84
74
|
preferEndSlot: !0
|
|
85
75
|
},
|
|
86
76
|
geometrySimplification: {
|
|
87
|
-
defaultPriority:
|
|
77
|
+
defaultPriority: w.Default,
|
|
88
78
|
groupKind: "actions",
|
|
89
79
|
preferEndSlot: !0
|
|
90
80
|
}
|
|
91
81
|
};
|
|
92
|
-
var
|
|
93
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
94
|
-
(
|
|
95
|
-
return o && s &&
|
|
82
|
+
var we = Object.defineProperty, Te = Object.getOwnPropertyDescriptor, d = (i, e, t, o) => {
|
|
83
|
+
for (var s = o > 1 ? void 0 : o ? Te(e, t) : e, a = i.length - 1, c; a >= 0; a--)
|
|
84
|
+
(c = i[a]) && (s = (o ? c(e, t, s) : c(s)) || s);
|
|
85
|
+
return o && s && we(e, t, s), s;
|
|
96
86
|
};
|
|
97
|
-
let
|
|
87
|
+
let h = class extends ce {
|
|
98
88
|
//#region Lifecycle
|
|
99
89
|
constructor(i) {
|
|
100
90
|
super(i), this._effectiveRenderStateCache = /* @__PURE__ */ new Map(), this._effectiveGeometrySimplificationInProgress = !1, this.visibleElements = new de(), this.settingsPopoverOpen = !1, this.availableCreateTools = [
|
|
@@ -116,7 +106,7 @@ let a = class extends ce {
|
|
|
116
106
|
},
|
|
117
107
|
{ sync: !0 }
|
|
118
108
|
),
|
|
119
|
-
|
|
109
|
+
ge({
|
|
120
110
|
getLoading: () => this.sketchViewModel?.geometrySimplificationInProgress ?? !1,
|
|
121
111
|
setEffectiveLoading: (i) => {
|
|
122
112
|
this._effectiveGeometrySimplificationInProgress = i;
|
|
@@ -216,25 +206,25 @@ let a = class extends ce {
|
|
|
216
206
|
const { sketchViewModel: i } = this;
|
|
217
207
|
if (!i)
|
|
218
208
|
return [];
|
|
219
|
-
const e = i.effectiveAvailablePlugins, t = this.state === "disabled", o = this.visibleElements.createTools, s = this.activeTool,
|
|
220
|
-
active:
|
|
209
|
+
const e = i.effectiveAvailablePlugins, t = this.state === "disabled", o = this.visibleElements.createTools, s = this.activeTool, a = this._activeCustomToolOptions, c = a || !i.firstPluginWithSwappableLeaf ? this._customToolOptions : [], l = i.rootPlugins, n = c?.map((r) => ({
|
|
210
|
+
active: r === a,
|
|
221
211
|
disabled: t,
|
|
222
|
-
icon:
|
|
223
|
-
labelKey:
|
|
224
|
-
onClick:
|
|
212
|
+
icon: r.icon,
|
|
213
|
+
labelKey: r.label,
|
|
214
|
+
onClick: r === a ? () => this._cancelActiveOperation() : () => this._activateLegacyDrawTool(r.toolName, r.createOptions, r)
|
|
225
215
|
})) ?? [];
|
|
226
|
-
if (
|
|
227
|
-
return [...this._pluginsToActions(
|
|
216
|
+
if (a && l)
|
|
217
|
+
return [...this._pluginsToActions(l), ...n];
|
|
228
218
|
if (e?.length && this.view?.type !== "3d")
|
|
229
219
|
return [...this._pluginsToActions(e), ...n];
|
|
230
|
-
const
|
|
220
|
+
const g = this.view?.type === "3d";
|
|
231
221
|
return [
|
|
232
|
-
...this.availableCreateTools?.filter((
|
|
233
|
-
active:
|
|
222
|
+
...this.availableCreateTools?.filter((r) => g && r === "multipoint" ? !1 : r === "mesh" ? !0 : o[r])?.map((r) => ({
|
|
223
|
+
active: r === s,
|
|
234
224
|
disabled: t,
|
|
235
|
-
icon:
|
|
236
|
-
labelKey: `draw.${
|
|
237
|
-
onClick:
|
|
225
|
+
icon: Ce[r],
|
|
226
|
+
labelKey: `draw.${r}`,
|
|
227
|
+
onClick: r === s ? () => this._cancelActiveOperation() : () => this._activateLegacyDrawTool(r)
|
|
238
228
|
})) ?? [],
|
|
239
229
|
...n
|
|
240
230
|
];
|
|
@@ -284,30 +274,30 @@ let a = class extends ce {
|
|
|
284
274
|
return t === "polygon" && o === "freehand" && e?.includes("freehandPolygon") ? "freehandPolygon" : t === "polyline" && o === "freehand" && e?.includes("freehandPolyline") ? "freehandPolyline" : t ?? void 0;
|
|
285
275
|
}
|
|
286
276
|
get _selectionCommands() {
|
|
287
|
-
const { state: i, visibleElements: e, _activeSelectionTool: t, _customActions: o } = this, s = this.state === "disabled",
|
|
288
|
-
this.sketchViewModel?.updateOnGraphicClick !== !1 &&
|
|
277
|
+
const { state: i, visibleElements: e, _activeSelectionTool: t, _customActions: o } = this, s = this.state === "disabled", a = [];
|
|
278
|
+
this.sketchViewModel?.updateOnGraphicClick !== !1 && a.push({
|
|
289
279
|
active: i === "ready" && this._activeSelectionTool == null,
|
|
290
280
|
disabled: s,
|
|
291
281
|
icon: "cursor",
|
|
292
282
|
labelKey: "selectFeature",
|
|
293
283
|
onClick: () => this._activateDefaultSelectionTool()
|
|
294
284
|
});
|
|
295
|
-
const
|
|
296
|
-
|
|
285
|
+
const c = e.selectionTools;
|
|
286
|
+
c["rectangle-selection"] && a.push({
|
|
297
287
|
active: t === "rectangle-selection",
|
|
298
288
|
disabled: s,
|
|
299
289
|
icon: "cursor-marquee",
|
|
300
290
|
labelKey: "rectangleSelection",
|
|
301
291
|
onClick: () => this._activateSelectionTool("rectangle-selection")
|
|
302
|
-
}),
|
|
292
|
+
}), c["lasso-selection"] && a.push({
|
|
303
293
|
active: t === "lasso-selection",
|
|
304
294
|
disabled: s,
|
|
305
295
|
icon: "lasso-select",
|
|
306
296
|
labelKey: "lassoSelection",
|
|
307
297
|
onClick: () => this._activateSelectionTool("lasso-selection")
|
|
308
298
|
});
|
|
309
|
-
const
|
|
310
|
-
return
|
|
299
|
+
const l = o?.get("selection-toolbar");
|
|
300
|
+
return l && a.push(...this._customActionsToSketchActions(l)), a;
|
|
311
301
|
}
|
|
312
302
|
get _selectionSetActions() {
|
|
313
303
|
const i = this.sketchViewModel?.updateGraphics.length ?? 0;
|
|
@@ -419,7 +409,7 @@ let a = class extends ce {
|
|
|
419
409
|
await this._executeWhenReady(async () => {
|
|
420
410
|
this.cancelAll();
|
|
421
411
|
const t = this.sketchViewModel;
|
|
422
|
-
t && await
|
|
412
|
+
t && await T(t.create(i, e));
|
|
423
413
|
});
|
|
424
414
|
}
|
|
425
415
|
/**
|
|
@@ -430,7 +420,7 @@ let a = class extends ce {
|
|
|
430
420
|
const e = new AbortController();
|
|
431
421
|
this._pendingCommandAbortController = e;
|
|
432
422
|
try {
|
|
433
|
-
await
|
|
423
|
+
await T(
|
|
434
424
|
(async () => {
|
|
435
425
|
this.sketchViewModel?.geometrySimplificationInProgress && await oe(() => !this.sketchViewModel?.geometrySimplificationInProgress, e.signal), e.signal.aborted || await i();
|
|
436
426
|
})()
|
|
@@ -471,7 +461,7 @@ let a = class extends ce {
|
|
|
471
461
|
async update(i, e) {
|
|
472
462
|
await this._executeWhenReady(async () => {
|
|
473
463
|
const t = this.sketchViewModel;
|
|
474
|
-
t && await
|
|
464
|
+
t && await T(t.update(i, e));
|
|
475
465
|
});
|
|
476
466
|
}
|
|
477
467
|
// #endregion
|
|
@@ -502,10 +492,10 @@ let a = class extends ce {
|
|
|
502
492
|
const t = this.sketchViewModel;
|
|
503
493
|
if (t) {
|
|
504
494
|
if (e) {
|
|
505
|
-
t.cancel(),
|
|
495
|
+
t.cancel(), T(t.create(i));
|
|
506
496
|
return;
|
|
507
497
|
}
|
|
508
|
-
t.firstPluginWithSwappableLeaf ? (t.replaceLeaf(i), this.view?.focus()) :
|
|
498
|
+
t.firstPluginWithSwappableLeaf ? (t.replaceLeaf(i), this.view?.focus()) : T(t.create(i));
|
|
509
499
|
}
|
|
510
500
|
});
|
|
511
501
|
}
|
|
@@ -513,7 +503,7 @@ let a = class extends ce {
|
|
|
513
503
|
this._executeWhenReady(() => {
|
|
514
504
|
this._cancelSupportingOperations();
|
|
515
505
|
const o = this.sketchViewModel;
|
|
516
|
-
o && (this._activeCustomToolOptions = t,
|
|
506
|
+
o && (this._activeCustomToolOptions = t, T(o.create(i, e)));
|
|
517
507
|
});
|
|
518
508
|
}
|
|
519
509
|
_activateSelectionTool(i) {
|
|
@@ -580,88 +570,88 @@ let a = class extends ce {
|
|
|
580
570
|
}
|
|
581
571
|
// #endregion
|
|
582
572
|
};
|
|
583
|
-
|
|
573
|
+
d([
|
|
584
574
|
p()
|
|
585
|
-
],
|
|
586
|
-
|
|
575
|
+
], h.prototype, "_isEffectiveRenderStateFrozen", 1);
|
|
576
|
+
d([
|
|
587
577
|
p()
|
|
588
|
-
],
|
|
589
|
-
|
|
578
|
+
], h.prototype, "_effectiveGeometrySimplificationInProgress", 2);
|
|
579
|
+
d([
|
|
590
580
|
p()
|
|
591
|
-
],
|
|
592
|
-
|
|
581
|
+
], h.prototype, "_state", 1);
|
|
582
|
+
d([
|
|
593
583
|
p()
|
|
594
|
-
],
|
|
595
|
-
|
|
584
|
+
], h.prototype, "_customToolOptions", 2);
|
|
585
|
+
d([
|
|
596
586
|
p()
|
|
597
|
-
],
|
|
598
|
-
|
|
587
|
+
], h.prototype, "_activeCustomToolOptions", 2);
|
|
588
|
+
d([
|
|
599
589
|
p()
|
|
600
|
-
],
|
|
601
|
-
|
|
590
|
+
], h.prototype, "_customActions", 2);
|
|
591
|
+
d([
|
|
602
592
|
p()
|
|
603
|
-
],
|
|
604
|
-
|
|
593
|
+
], h.prototype, "selectionViewModel", 2);
|
|
594
|
+
d([
|
|
605
595
|
p()
|
|
606
|
-
],
|
|
607
|
-
|
|
596
|
+
], h.prototype, "_activeSelectionTool", 1);
|
|
597
|
+
d([
|
|
608
598
|
p()
|
|
609
|
-
],
|
|
610
|
-
|
|
599
|
+
], h.prototype, "_activePluginUniqueIds", 1);
|
|
600
|
+
d([
|
|
611
601
|
p()
|
|
612
|
-
],
|
|
613
|
-
|
|
602
|
+
], h.prototype, "_createToolActions", 1);
|
|
603
|
+
d([
|
|
614
604
|
p()
|
|
615
|
-
],
|
|
616
|
-
|
|
605
|
+
], h.prototype, "_shouldShowBackButton", 1);
|
|
606
|
+
d([
|
|
617
607
|
p()
|
|
618
|
-
],
|
|
619
|
-
|
|
608
|
+
], h.prototype, "_selectionToolActions", 1);
|
|
609
|
+
d([
|
|
620
610
|
p()
|
|
621
|
-
],
|
|
622
|
-
|
|
611
|
+
], h.prototype, "_settingsActions", 1);
|
|
612
|
+
d([
|
|
623
613
|
p()
|
|
624
|
-
],
|
|
625
|
-
|
|
614
|
+
], h.prototype, "_activeTool", 1);
|
|
615
|
+
d([
|
|
626
616
|
p()
|
|
627
|
-
],
|
|
628
|
-
|
|
617
|
+
], h.prototype, "_selectionCommands", 1);
|
|
618
|
+
d([
|
|
629
619
|
p()
|
|
630
|
-
],
|
|
631
|
-
|
|
620
|
+
], h.prototype, "_selectionSetActions", 1);
|
|
621
|
+
d([
|
|
632
622
|
p()
|
|
633
|
-
],
|
|
634
|
-
|
|
623
|
+
], h.prototype, "_undoRedoActions", 1);
|
|
624
|
+
d([
|
|
635
625
|
p()
|
|
636
|
-
],
|
|
637
|
-
|
|
626
|
+
], h.prototype, "sketchViewModel", 2);
|
|
627
|
+
d([
|
|
638
628
|
p()
|
|
639
|
-
],
|
|
640
|
-
|
|
629
|
+
], h.prototype, "visibleElements", 2);
|
|
630
|
+
d([
|
|
641
631
|
p()
|
|
642
|
-
],
|
|
643
|
-
|
|
632
|
+
], h.prototype, "view", 2);
|
|
633
|
+
d([
|
|
644
634
|
p()
|
|
645
|
-
],
|
|
646
|
-
|
|
635
|
+
], h.prototype, "settingsPopoverOpen", 2);
|
|
636
|
+
d([
|
|
647
637
|
p()
|
|
648
|
-
],
|
|
649
|
-
|
|
638
|
+
], h.prototype, "availableCreateTools", 2);
|
|
639
|
+
d([
|
|
650
640
|
p()
|
|
651
|
-
],
|
|
652
|
-
|
|
641
|
+
], h.prototype, "state", 1);
|
|
642
|
+
d([
|
|
653
643
|
p()
|
|
654
|
-
],
|
|
655
|
-
|
|
644
|
+
], h.prototype, "activeTool", 1);
|
|
645
|
+
d([
|
|
656
646
|
p()
|
|
657
|
-
],
|
|
658
|
-
|
|
647
|
+
], h.prototype, "activePluginIds", 1);
|
|
648
|
+
d([
|
|
659
649
|
p()
|
|
660
|
-
],
|
|
661
|
-
|
|
650
|
+
], h.prototype, "groupedActions", 1);
|
|
651
|
+
h = d([
|
|
662
652
|
he("components.sketch.SketchComponentViewModel")
|
|
663
|
-
],
|
|
664
|
-
class
|
|
653
|
+
], h);
|
|
654
|
+
class Ee extends ue {
|
|
665
655
|
#t;
|
|
666
656
|
#e = !1;
|
|
667
657
|
#i;
|
|
@@ -670,7 +660,7 @@ class Me extends ge {
|
|
|
670
660
|
throw new Error("nodeHooks() can only be used on elements");
|
|
671
661
|
}
|
|
672
662
|
render(e) {
|
|
673
|
-
return
|
|
663
|
+
return z;
|
|
674
664
|
}
|
|
675
665
|
update(e, [t]) {
|
|
676
666
|
const o = e.element;
|
|
@@ -679,7 +669,7 @@ class Me extends ge {
|
|
|
679
669
|
const s = this.#e ? t.afterUpdate : t.afterCreate;
|
|
680
670
|
return this.#t = o, this.#e = !0, this.#i = t, queueMicrotask(() => {
|
|
681
671
|
o.isConnected && s?.(o);
|
|
682
|
-
}),
|
|
672
|
+
}), z;
|
|
683
673
|
}
|
|
684
674
|
disconnected() {
|
|
685
675
|
const e = this.#t, t = this.#i?.afterRemoved;
|
|
@@ -688,8 +678,8 @@ class Me extends ge {
|
|
|
688
678
|
});
|
|
689
679
|
}
|
|
690
680
|
}
|
|
691
|
-
const
|
|
692
|
-
class
|
|
681
|
+
const B = me(Ee), _e = /* @__PURE__ */ new Set(["arcgis-map", "arcgis-scene"]), Me = 8;
|
|
682
|
+
class ke extends J {
|
|
693
683
|
constructor(e) {
|
|
694
684
|
super(e), this.#t = new MutationObserver(() => this.#c()), this.#e = new ResizeObserver(() => this.#v()), this.#i = new ResizeObserver(([t]) => {
|
|
695
685
|
if (!t)
|
|
@@ -698,13 +688,13 @@ class Ae extends J {
|
|
|
698
688
|
o !== this.#s && (this.#s = o, this.#v());
|
|
699
689
|
}), this.#h = [], this.ref = (t) => {
|
|
700
690
|
this.#o !== t && (this.#o = t, this.#r = void 0, this.#a = void 0, this.#c());
|
|
701
|
-
}, this.#u = () => this.#c(), this.exports = void 0, this.onConnected(() => this.#
|
|
702
|
-
this.#d !== this.component.layout && this.#c();
|
|
703
|
-
}), this.onDisconnected(() => this.#
|
|
691
|
+
}, this.#u = () => this.#c(), this.exports = void 0, e.listenOn(window, "resize", () => this.#g()), this.onConnected(() => this.#g()), this.onUpdated(() => {
|
|
692
|
+
(this.#d !== this.component.layout || this.#f !== this.component.toolbarKind) && this.#c();
|
|
693
|
+
}), this.onDisconnected(() => this.#C()), this.onLifecycle(
|
|
704
694
|
() => f(
|
|
705
695
|
() => this.component.view?.attributionHeight,
|
|
706
696
|
() => {
|
|
707
|
-
this.#
|
|
697
|
+
this.#g();
|
|
708
698
|
},
|
|
709
699
|
{ initial: !0 }
|
|
710
700
|
)
|
|
@@ -719,44 +709,46 @@ class Ae extends J {
|
|
|
719
709
|
#s;
|
|
720
710
|
#n;
|
|
721
711
|
#h;
|
|
722
|
-
#
|
|
712
|
+
#m;
|
|
723
713
|
#o;
|
|
724
714
|
/** Last style-write inputs, used to avoid repeating equivalent writes from observer notifications. */
|
|
725
715
|
#r;
|
|
726
716
|
#a;
|
|
727
717
|
/** Layout for which the current context was synchronized; distinct from the last applied style layout. */
|
|
728
718
|
#d;
|
|
719
|
+
#f;
|
|
729
720
|
/** Re-uses the same direction observation helper as useDirection; that API has onLifecycle-based cleanup API. */
|
|
730
721
|
#p;
|
|
731
|
-
#
|
|
722
|
+
#g() {
|
|
732
723
|
queueMicrotask(() => {
|
|
733
724
|
this.component.el.isConnected && this.#c();
|
|
734
725
|
});
|
|
735
726
|
}
|
|
736
727
|
#c() {
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
728
|
+
this.#f = this.component.toolbarKind;
|
|
729
|
+
const e = this.#y();
|
|
730
|
+
if (this.component.el.toggleAttribute("data-intrinsic-toolbar-sizing", !e), !e) {
|
|
731
|
+
this.#b(), this.#C();
|
|
740
732
|
return;
|
|
741
733
|
}
|
|
742
|
-
this.#
|
|
734
|
+
this.#S(e.toolbar), this.#w(e), this.#T(e), this.#v(e);
|
|
743
735
|
}
|
|
744
|
-
#
|
|
736
|
+
#y() {
|
|
745
737
|
const e = this.component.el, t = e.parentElement, o = this.#o, s = e.assignedSlot;
|
|
746
|
-
if (!t || !
|
|
738
|
+
if (!t || !_e.has(t.localName) || !o || !s?.parentElement)
|
|
747
739
|
return;
|
|
748
|
-
const
|
|
749
|
-
if (!
|
|
740
|
+
const a = getComputedStyle(t).direction === "rtl" ? "rtl" : "ltr", c = K(e.slot, a);
|
|
741
|
+
if (!c)
|
|
750
742
|
return;
|
|
751
|
-
const
|
|
743
|
+
const l = Array.from(t.children).filter(
|
|
752
744
|
(n) => n instanceof HTMLElement && n.localName !== "arcgis-sketch"
|
|
753
745
|
);
|
|
754
746
|
return {
|
|
755
747
|
assignedSlot: s,
|
|
756
|
-
content:
|
|
757
|
-
direction:
|
|
748
|
+
content: l,
|
|
749
|
+
direction: a,
|
|
758
750
|
parent: t,
|
|
759
|
-
position:
|
|
751
|
+
position: c,
|
|
760
752
|
toolbar: o
|
|
761
753
|
};
|
|
762
754
|
}
|
|
@@ -764,13 +756,13 @@ class Ae extends J {
|
|
|
764
756
|
/**
|
|
765
757
|
* Keep track of the cross-axis size changes to ensure layout solution remains up-to-date.
|
|
766
758
|
*/
|
|
767
|
-
#
|
|
759
|
+
#S(e) {
|
|
768
760
|
this.#d !== this.component.layout && (this.#s = void 0, this.#d = this.component.layout), this.#l !== e && (this.#i.disconnect(), this.#l = e, this.#s = void 0, this.#i.observe(e));
|
|
769
761
|
}
|
|
770
|
-
#
|
|
762
|
+
#w(e) {
|
|
771
763
|
const t = e.assignedSlot;
|
|
772
|
-
this.#n !== t && (this.#n?.removeEventListener("slotchange", this.#u), this.#n = t, t.addEventListener("slotchange", this.#u)), this.#
|
|
773
|
-
this.#
|
|
764
|
+
this.#n !== t && (this.#n?.removeEventListener("slotchange", this.#u), this.#n = t, t.addEventListener("slotchange", this.#u)), this.#m !== e.parent && (this.#t.disconnect(), this.#p?.(), this.#m = e.parent, this.#p = ye(e.parent, ["dir"], () => {
|
|
765
|
+
this.#g();
|
|
774
766
|
}), this.#t.observe(e.parent, {
|
|
775
767
|
childList: !0,
|
|
776
768
|
subtree: !1
|
|
@@ -778,113 +770,130 @@ class Ae extends J {
|
|
|
778
770
|
}
|
|
779
771
|
#T(e) {
|
|
780
772
|
const t = [e.parent, ...e.content];
|
|
781
|
-
|
|
773
|
+
Le(this.#h, t) || (this.#e.disconnect(), t.forEach((o) => this.#e.observe(o)), this.#h = t);
|
|
782
774
|
}
|
|
783
|
-
#v(e = this.#
|
|
775
|
+
#v(e = this.#y()) {
|
|
784
776
|
if (!e) {
|
|
785
|
-
this.#
|
|
777
|
+
this.#b();
|
|
786
778
|
return;
|
|
787
779
|
}
|
|
788
|
-
const t = this.component.layout, o =
|
|
789
|
-
content:
|
|
790
|
-
gap:
|
|
780
|
+
const t = this.component.layout, o = e.parent.getBoundingClientRect(), s = Pe({
|
|
781
|
+
content: Ae(e),
|
|
782
|
+
gap: Me,
|
|
791
783
|
layout: t,
|
|
792
784
|
position: e.position,
|
|
793
|
-
sameSlotReserve:
|
|
785
|
+
sameSlotReserve: Oe(
|
|
794
786
|
e.assignedSlot,
|
|
795
787
|
this.component.el,
|
|
796
788
|
t,
|
|
797
789
|
e.assignedSlot.parentElement
|
|
798
790
|
),
|
|
799
791
|
toolbarBounds: e.toolbar.getBoundingClientRect(),
|
|
800
|
-
viewBounds:
|
|
792
|
+
viewBounds: o
|
|
801
793
|
});
|
|
802
|
-
|
|
794
|
+
let a = s;
|
|
795
|
+
if (e.toolbar.toolbarKind === "floating") {
|
|
796
|
+
const c = getComputedStyle(e.assignedSlot.parentElement.parentElement), l = Math.max(Number.parseFloat(c.marginLeft), Number.parseFloat(c.marginRight)), n = t === "horizontal" ? window.innerWidth : window.innerHeight, g = t === "horizontal" ? o.width : o.height, u = t === "vertical" ? this.component.view?.attributionHeight ?? 0 : 0;
|
|
797
|
+
a = Math.max(
|
|
798
|
+
0,
|
|
799
|
+
Math.min(s, g - 2 * l - u, n - 2 * l)
|
|
800
|
+
);
|
|
801
|
+
}
|
|
802
|
+
this.#E(e.toolbar, t, s, a);
|
|
803
803
|
}
|
|
804
|
-
#
|
|
805
|
-
o === this.#r && t === this.#a || (this.#r = o, this.#a = t, e.
|
|
804
|
+
#E(e, t, o, s) {
|
|
805
|
+
o === this.#r && s === e.allocatedLength && t === this.#a || (this.#r = o, this.#a = t, e.allocatedLength = s, t === "horizontal" ? (e.style.height = "", e.style.maxHeight = "", e.style.maxWidth = `${o}px`, e.style.width = "fit-content") : (e.style.height = "fit-content", e.style.maxHeight = `${o}px`, e.style.maxWidth = "", e.style.width = ""));
|
|
806
806
|
}
|
|
807
807
|
/** Remove controller-owned inline sizing when the stack leaves a supported view slot. */
|
|
808
|
-
#
|
|
809
|
-
this.#o && (this.#o.style.maxHeight = "", this.#o.style.maxWidth = "", this.#o.style.height = "", this.#o.style.width = "", this.#o.
|
|
808
|
+
#b() {
|
|
809
|
+
this.#o && (this.#o.style.maxHeight = "", this.#o.style.maxWidth = "", this.#o.style.height = "", this.#o.style.width = "", this.#o.allocatedLength = void 0, this.#r = void 0, this.#a = void 0);
|
|
810
810
|
}
|
|
811
811
|
/** Release subscriptions and cached measurements before disconnecting or entering a new context. */
|
|
812
|
-
#
|
|
813
|
-
this.#t.disconnect(), this.#p?.(), this.#p = void 0, this.#e.disconnect(), this.#i.disconnect(), this.#l = void 0, this.#s = void 0, this.#h = [], this.#n?.removeEventListener("slotchange", this.#u), this.#n = void 0, this.#r = void 0, this.#a = void 0, this.#d = void 0, this.#
|
|
812
|
+
#C() {
|
|
813
|
+
this.#t.disconnect(), this.#p?.(), this.#p = void 0, this.#e.disconnect(), this.#i.disconnect(), this.#l = void 0, this.#s = void 0, this.#h = [], this.#n?.removeEventListener("slotchange", this.#u), this.#n = void 0, this.#r = void 0, this.#a = void 0, this.#d = void 0, this.#m = void 0;
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
|
-
function
|
|
816
|
+
function Pe({
|
|
817
817
|
content: i,
|
|
818
818
|
gap: e,
|
|
819
819
|
layout: t,
|
|
820
820
|
position: o,
|
|
821
821
|
sameSlotReserve: s,
|
|
822
|
-
toolbarBounds:
|
|
823
|
-
viewBounds:
|
|
822
|
+
toolbarBounds: a,
|
|
823
|
+
viewBounds: c
|
|
824
824
|
}) {
|
|
825
|
-
const
|
|
826
|
-
let
|
|
825
|
+
const l = O(c, t), n = O(a, t), g = W(o, t), u = g ? n.start - l.start : l.end - n.end;
|
|
826
|
+
let r = 0, v = !1;
|
|
827
827
|
for (const b of i) {
|
|
828
|
-
if (
|
|
828
|
+
if (W(b.position, t) === g)
|
|
829
829
|
continue;
|
|
830
|
-
const C =
|
|
830
|
+
const C = O(b.bounds, t);
|
|
831
831
|
if (!(C.crossStart < n.crossEnd && C.crossEnd > n.crossStart))
|
|
832
832
|
continue;
|
|
833
|
-
const E =
|
|
834
|
-
|
|
833
|
+
const E = g ? l.end - C.start : C.end - l.start;
|
|
834
|
+
r = Math.max(r, E), v = !0;
|
|
835
835
|
}
|
|
836
836
|
const m = v ? e : 0;
|
|
837
|
-
return Math.max(0,
|
|
837
|
+
return Math.max(0, l.length - Math.max(0, u) - s - r - m);
|
|
838
838
|
}
|
|
839
|
-
function
|
|
839
|
+
function O(i, e) {
|
|
840
840
|
return e === "horizontal" ? { start: i.left, end: i.right, length: i.width, crossStart: i.top, crossEnd: i.bottom } : { start: i.top, end: i.bottom, length: i.height, crossStart: i.left, crossEnd: i.right };
|
|
841
841
|
}
|
|
842
|
-
function
|
|
842
|
+
function W(i, e) {
|
|
843
843
|
return e === "horizontal" ? i.endsWith("left") : i.startsWith("top");
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function Ae(i) {
|
|
846
846
|
return i.content.flatMap((e) => {
|
|
847
847
|
if (e.assignedSlot === i.assignedSlot)
|
|
848
848
|
return [];
|
|
849
|
-
const t =
|
|
849
|
+
const t = K(e.slot, i.direction);
|
|
850
850
|
return t ? [{ bounds: e.getBoundingClientRect(), position: t }] : [];
|
|
851
851
|
});
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function Le(i, e) {
|
|
854
854
|
return i.length === e.length && i.every((t, o) => t === e[o]);
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function Oe(i, e, t, o) {
|
|
857
857
|
const s = getComputedStyle(o).flexDirection;
|
|
858
858
|
if (!(t === "horizontal" ? s.startsWith("row") : s.startsWith("column")))
|
|
859
859
|
return 0;
|
|
860
|
-
const
|
|
861
|
-
if (
|
|
860
|
+
const c = i.assignedElements().filter((u) => u instanceof HTMLElement), l = c.indexOf(e);
|
|
861
|
+
if (l < 0)
|
|
862
862
|
return 0;
|
|
863
|
-
const n = getComputedStyle(e),
|
|
864
|
-
return
|
|
865
|
-
const v =
|
|
866
|
-
return
|
|
867
|
-
},
|
|
863
|
+
const n = getComputedStyle(e), g = s === "row" ? Number.parseFloat(n.marginRight) : s === "row-reverse" ? Number.parseFloat(n.marginLeft) : s === "column" ? Number.parseFloat(n.marginBottom) : Number.parseFloat(n.marginTop);
|
|
864
|
+
return c.slice(l + 1).reduce((u, r) => {
|
|
865
|
+
const v = r.getBoundingClientRect(), m = getComputedStyle(r), b = t === "horizontal" ? v.width + Number.parseFloat(m.marginLeft) + Number.parseFloat(m.marginRight) : v.height + Number.parseFloat(m.marginTop) + Number.parseFloat(m.marginBottom);
|
|
866
|
+
return u + b;
|
|
867
|
+
}, g);
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function K(i, e) {
|
|
870
870
|
const [t, o] = i.split("-");
|
|
871
871
|
if (t !== "bottom" && t !== "top")
|
|
872
872
|
return;
|
|
873
873
|
const s = o === "start" ? e === "ltr" ? "left" : "right" : o === "end" ? e === "ltr" ? "right" : "left" : o;
|
|
874
874
|
return s === "left" || s === "right" ? `${t}-${s}` : void 0;
|
|
875
875
|
}
|
|
876
|
-
const
|
|
876
|
+
const Ge = [
|
|
877
|
+
"bottom-end",
|
|
878
|
+
"bottom-start",
|
|
879
|
+
"bottom-left",
|
|
880
|
+
"bottom-right",
|
|
881
|
+
"top-end",
|
|
882
|
+
"top-start",
|
|
883
|
+
"top-left",
|
|
884
|
+
"top-right"
|
|
885
|
+
], Re = new Set(Ge), Ve = ne((i) => new le({
|
|
877
886
|
...i,
|
|
878
887
|
cancelUpdateOnClickAway: !0,
|
|
879
888
|
creationMode: "continuous",
|
|
880
889
|
textSymbol: new Z({ text: "hello world" }),
|
|
881
890
|
useLegacyCreateTools: !1
|
|
882
891
|
}));
|
|
883
|
-
class
|
|
892
|
+
class $e extends ee {
|
|
884
893
|
constructor() {
|
|
885
|
-
super(), this.#t = new
|
|
894
|
+
super(), this.#t = new h(), this.#l = L(), this.#s = new ke(this), this.#n = L(), this._defaultGraphicsLayer = null, this._messages = se(), this.test = {
|
|
886
895
|
componentViewModel: this.#t
|
|
887
|
-
}, this._groupLayoutPriorityOverrides = /* @__PURE__ */ new Map(), this._contextualToolLocation = "separate", this._refMap = ae(), this.viewModel =
|
|
896
|
+
}, this._groupLayoutPriorityOverrides = /* @__PURE__ */ new Map(), this._contextualToolLocation = "separate", this._refMap = ae(), this.viewModel = Ve(this), this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.createGraphic = this.viewModel.createGraphic, this.creationMode = this.viewModel.creationMode, this.defaultCreateOptions = this.viewModel.defaultCreateOptions, this.defaultGraphicsLayerDisabled = !1, this.defaultUpdateOptions = this.viewModel.defaultUpdateOptions, this.geometrySimplificationInProgress = this.viewModel.geometrySimplificationInProgress, this.icon = "pencil", this.label = this._messages?.componentLabel, this.labelOptions = this.viewModel.labelOptions, this.layer = this.viewModel.layer, this.layout = "horizontal", this.pointSymbol = this.viewModel.pointSymbol, this.polygonSymbol = this.viewModel.polygonSymbol, this.polylineSymbol = this.viewModel.polylineSymbol, this.activeFillSymbol = this.viewModel.activeFillSymbol, this.activeLineSymbol = this.viewModel.activeLineSymbol, this.activeVertexSymbol = this.viewModel.activeVertexSymbol, this.activeCreateToolDrawMode = this.viewModel.activeCreateToolDrawMode, this.visualScale = "m", this.snappingOptions = this.viewModel.snappingOptions, this.textSymbol = this.viewModel.textSymbol, this.toolbarKind = "floating", this.tooltipOptions = this.viewModel.tooltipOptions, this.useViewOptions = this.viewModel.useViewOptions, this.valueOptions = this.viewModel.valueOptions, this.useLegacyCreateTools = this.viewModel.useLegacyCreateTools, this.updateOnGraphicClickDisabled = this.viewModel.updateOnGraphicClick, this.updateGraphics = this.viewModel.updateGraphics, this.activeTooltip = this.viewModel.activeTooltip, this.arcgisCreate = S(() => this.viewModel, "create"), this.arcgisDelete = S(() => this.viewModel, "delete"), this.arcgisDuplicate = S(() => this.viewModel, "duplicate"), this.arcgisPropertyChange = Q()("activeTool", "geometrySimplificationInProgress", "state"), this.arcgisReady = te(), this.arcgisRedo = S(() => this.viewModel, "redo"), this.arcgisUndo = S(() => this.viewModel, "undo"), this.arcgisUpdate = S(() => this.viewModel, "update"), X(["slot"], () => {
|
|
888
897
|
this.requestUpdate();
|
|
889
898
|
}), this.manager.onLifecycle(() => [
|
|
890
899
|
f(() => this.el.view?.map, (e, t) => {
|
|
@@ -906,10 +915,10 @@ class Ve extends ee {
|
|
|
906
915
|
});
|
|
907
916
|
}
|
|
908
917
|
static {
|
|
909
|
-
this.properties = { _groupLayoutPriorityOverrides: 16, _contextualToolLocation: 16, _refMap: 16, viewModel: 0, view: 0, activeTool: 32, autoDestroyDisabled: 5, visibleElements: 0, availableCreateTools: 0, createGraphic: 32, creationMode: 1, defaultCreateOptions: 0, defaultGraphicsLayerDisabled: 5, defaultUpdateOptions: 0, geometrySimplificationInProgress: 36, hideCreateToolsCircle: 5, hideCreateToolsMultipoint: 5, hideCreateToolsPoint: 5, hideCreateToolsPolygon: 5, hideCreateToolsPolyline: 5, hideCreateToolsRectangle: 5, hideDuplicateButton: 5, hideDeleteButton: 5, hideSelectionCountLabel: 5, hideLabelsToggle: 5, hideSelectionToolsLassoSelection: 5, hideSelectionToolsRectangleSelection: 5, hideSettingsMenu: 5, hideSinglePluginBackButton: 5, hideSnappingControls: 5, hideSnappingControlsElementsEnabledToggle: 5, hideSnappingControlsElementsFeatureEnabledToggle: 5, hideSnappingControlsElementsLayerList: 5, hideSnappingControlsElementsSelfEnabledToggle: 5, hideSnappingControlsElementsGridEnabledToggle: 5, hideSnappingControlsElementsGridControls: 5, hideSnappingControlsElementsGridControlsElementsColorSelection: 5, hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle: 5, hideSnappingControlsElementsGridControlsElementsLineIntervalInput: 5, hideSnappingControlsElementsGridControlsElementsNumericInputs: 5, hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning: 5, hideSnappingControlsElementsGridControlsElementsPlacementButtons: 5, hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle: 5, hideTooltipsToggle: 5, hideUndoRedoMenu: 5, icon: 1, label: 1, labelOptions: 0, layer: 0, layout:
|
|
918
|
+
this.properties = { _groupLayoutPriorityOverrides: 16, _contextualToolLocation: 16, _refMap: 16, viewModel: 0, view: 0, activeTool: 32, autoDestroyDisabled: 5, visibleElements: 0, availableCreateTools: 0, createGraphic: 32, creationMode: 1, defaultCreateOptions: 0, defaultGraphicsLayerDisabled: 5, defaultUpdateOptions: 0, geometrySimplificationInProgress: 36, hideCreateToolsCircle: 5, hideCreateToolsMultipoint: 5, hideCreateToolsPoint: 5, hideCreateToolsPolygon: 5, hideCreateToolsPolyline: 5, hideCreateToolsRectangle: 5, hideDuplicateButton: 5, hideDeleteButton: 5, hideSelectionCountLabel: 5, hideLabelsToggle: 5, hideSelectionToolsLassoSelection: 5, hideSelectionToolsRectangleSelection: 5, hideSettingsMenu: 5, hideSinglePluginBackButton: 5, hideSnappingControls: 5, hideSnappingControlsElementsEnabledToggle: 5, hideSnappingControlsElementsFeatureEnabledToggle: 5, hideSnappingControlsElementsLayerList: 5, hideSnappingControlsElementsSelfEnabledToggle: 5, hideSnappingControlsElementsGridEnabledToggle: 5, hideSnappingControlsElementsGridControls: 5, hideSnappingControlsElementsGridControlsElementsColorSelection: 5, hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle: 5, hideSnappingControlsElementsGridControlsElementsLineIntervalInput: 5, hideSnappingControlsElementsGridControlsElementsNumericInputs: 5, hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning: 5, hideSnappingControlsElementsGridControlsElementsPlacementButtons: 5, hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle: 5, hideTooltipsToggle: 5, hideUndoRedoMenu: 5, icon: 1, label: 1, labelOptions: 0, layer: 0, layout: 3, pointSymbol: 0, polygonSymbol: 0, polylineSymbol: 0, activeFillSymbol: 0, activeLineSymbol: 0, activeVertexSymbol: 0, activeCreateToolDrawMode: 1, referenceElement: 1, relativePosition: 1, scale: 1, visualScale: 1, showSnappingControlsElementsHeader: 5, showCreateToolsFreehandPolygon: 5, showCreateToolsFreehandPolyline: 5, showCreateToolsText: 5, hideGeometrySimplificationActivityIndicator: 5, snappingOptions: 0, state: 32, textSymbol: 0, toolbarKind: 3, tooltipOptions: 0, useViewOptions: 5, valueOptions: 0, useLegacyCreateTools: 5, updateOnGraphicClickDisabled: 5, cancelUpdateOnClickAwayDisabled: 5, updateGraphics: 32, activeTooltip: 0 };
|
|
910
919
|
}
|
|
911
920
|
static {
|
|
912
|
-
this.styles =
|
|
921
|
+
this.styles = be;
|
|
913
922
|
}
|
|
914
923
|
#t;
|
|
915
924
|
get #e() {
|
|
@@ -1115,8 +1124,8 @@ class Ve extends ee {
|
|
|
1115
1124
|
this.#e.undoRedoMenu = !e;
|
|
1116
1125
|
}
|
|
1117
1126
|
get relativePosition() {
|
|
1118
|
-
const e = this.el.slot;
|
|
1119
|
-
return this.#i ?? (
|
|
1127
|
+
const e = this.el.slot || this.el.closest("arcgis-expand")?.slot || "";
|
|
1128
|
+
return this.#i ?? (Re.has(e) ? e : re.topRight);
|
|
1120
1129
|
}
|
|
1121
1130
|
set relativePosition(e) {
|
|
1122
1131
|
this.#i = e;
|
|
@@ -1239,46 +1248,46 @@ class Ve extends ee {
|
|
|
1239
1248
|
this._defaultGraphicsLayer && this.view?.map?.allLayers.includes(this._defaultGraphicsLayer) && this.view?.map?.remove(this._defaultGraphicsLayer), this.cancel(), super.disconnectedCallback();
|
|
1240
1249
|
}
|
|
1241
1250
|
render() {
|
|
1242
|
-
const e = this._refMap.get("settings")?.value?.actionElement, t = this.#t.groupedActions, { visualScale: o, layout: s, toolbarKind:
|
|
1243
|
-
return y`<div class="toolbar-container"><arcgis-toolbar-stack .layout=${s} .toolbarKind=${
|
|
1251
|
+
const e = this._refMap.get("settings")?.value?.actionElement, t = this.#t.groupedActions, { visualScale: o, layout: s, toolbarKind: a, relativePosition: c, _contextualToolLocation: l } = this, n = t.find(({ name: u }) => u === "selectionSet"), g = t.filter(({ name: u }) => u !== "selectionSet");
|
|
1252
|
+
return y`<div class="toolbar-container"><arcgis-toolbar-stack .layout=${s} .toolbarKind=${a} .relativePosition=${c} .scale=${o} tooltip-appearance=calcite ${M(this.#s.ref)}><arcgis-toolbar ${M(this.#l)}>${_({ hidden: !n?.visible || l !== "inline", children: this._renderActionGroup(n) })}${g.map((u) => this._renderActionGroup(u))}${_({ hidden: !n?.visible || l !== "inline-end", children: this._renderActionGroup(n) })}</arcgis-toolbar>${_({ hidden: !n?.visible || l !== "separate", children: y`<arcgis-toolbar>${this._renderActionGroup(n)}</arcgis-toolbar>` })}</arcgis-toolbar-stack></div>${_({ hidden: this.hideSettingsMenu, children: y`<arcgis-view-popover .open=${this.#t.settingsPopoverOpen} .heading=${this._messages.settings?.heading} .anchorElement=${e} .visualScale=${o} .actionBarElement=${this.#l.value?.barElement} @arcgisPropertyChange=${(u) => this.#t.settingsPopoverOpen = u.target.open ?? !1}>${this._renderSettings()}</arcgis-view-popover>` })}`;
|
|
1244
1253
|
}
|
|
1245
1254
|
_renderSettings() {
|
|
1246
|
-
const { autoDestroyDisabled: e, hideLabelsToggle: t, hideSnappingControls: o, hideTooltipsToggle: s, showSnappingControlsElementsHeader:
|
|
1247
|
-
return y`<div class="editing-controls-panel"><arcgis-sketch-tooltip-controls .hideLabelsToggle=${t} .hideTooltipsToggle=${
|
|
1248
|
-
|
|
1249
|
-
const { labelsEnabled:
|
|
1250
|
-
switch (
|
|
1255
|
+
const { autoDestroyDisabled: e, hideLabelsToggle: t, hideSnappingControls: o, hideTooltipsToggle: s, showSnappingControlsElementsHeader: a, useViewOptions: c, view: l, viewModel: n } = this;
|
|
1256
|
+
return y`<div class="editing-controls-panel"><arcgis-sketch-tooltip-controls .hideLabelsToggle=${t} .hideTooltipsToggle=${c || s} .directionMode=${n.valueOptions.directionMode} .labelsEnabled=${n.labelOptions.enabled} .tooltipsEnabled=${n.tooltipOptions.enabled} @arcgisPropertyChange=${(g) => {
|
|
1257
|
+
g.stopPropagation();
|
|
1258
|
+
const { labelsEnabled: u, tooltipsEnabled: r, directionMode: v } = g.currentTarget, m = this.viewModel;
|
|
1259
|
+
switch (g.detail.name) {
|
|
1251
1260
|
case "labelsEnabled":
|
|
1252
|
-
m.labelOptions.enabled =
|
|
1261
|
+
m.labelOptions.enabled = u;
|
|
1253
1262
|
break;
|
|
1254
1263
|
case "directionMode":
|
|
1255
1264
|
m.valueOptions.directionMode = v;
|
|
1256
1265
|
break;
|
|
1257
1266
|
case "tooltipsEnabled":
|
|
1258
|
-
m.tooltipOptions.enabled =
|
|
1267
|
+
m.tooltipOptions.enabled = r;
|
|
1259
1268
|
break;
|
|
1260
1269
|
}
|
|
1261
|
-
}}></arcgis-sketch-tooltip-controls>${!
|
|
1270
|
+
}}></arcgis-sketch-tooltip-controls>${!c && !o ? y`<arcgis-snapping-controls .autoDestroyDisabled=${e} .view=${l} .visibleElements=${this.#e.snappingControlsElements} .snappingOptions=${n.snappingOptions} .showHeader=${a} @arcgisPropertyChange=${(g) => g.stopPropagation()}></arcgis-snapping-controls>` : void 0}</div>`;
|
|
1262
1271
|
}
|
|
1263
1272
|
_renderActionGroup({ visible: e, commands: t, name: o }) {
|
|
1264
1273
|
if (!e || !t.length)
|
|
1265
1274
|
return;
|
|
1266
|
-
const { defaultPriority: s, groupKind:
|
|
1267
|
-
switch (
|
|
1275
|
+
const { defaultPriority: s, groupKind: a, overflowLabel: c, preferEndSlot: l } = Se[o], g = (o === "geometrySimplification" ? void 0 : this._groupLayoutPriorityOverrides.get(o)) ?? s, u = t.map((v) => this._renderCommand(v)), r = D(`more.${c}`, this._messages);
|
|
1276
|
+
switch (a) {
|
|
1268
1277
|
case "more-button":
|
|
1269
|
-
return y`<arcgis-toolbar-group .priority=${
|
|
1278
|
+
return y`<arcgis-toolbar-group .priority=${g} .preferEndSlot=${l}><arcgis-toolbar-more-button .overflowActionLabel=${r} .priority=${g}>${u}</arcgis-toolbar-more-button></arcgis-toolbar-group>`;
|
|
1270
1279
|
case "split-button":
|
|
1271
|
-
return y`<arcgis-toolbar-group .priority=${
|
|
1280
|
+
return y`<arcgis-toolbar-group .priority=${g} .preferEndSlot=${l}><arcgis-toolbar-split-button .overflowActionLabel=${r} .priority=${g}>${u}</arcgis-toolbar-split-button></arcgis-toolbar-group>`;
|
|
1272
1281
|
case "actions":
|
|
1273
|
-
return y`<arcgis-toolbar-group .priority=${
|
|
1282
|
+
return y`<arcgis-toolbar-group .priority=${g} .preferEndSlot=${l}>${u}</arcgis-toolbar-group>`;
|
|
1274
1283
|
}
|
|
1275
1284
|
}
|
|
1276
|
-
_renderCommand({ active: e, afterCreate: t, afterRemoved: o, afterUpdate: s, appearance:
|
|
1277
|
-
const { _messages: G, _refMap: H, layout:
|
|
1278
|
-
return
|
|
1285
|
+
_renderCommand({ active: e, afterCreate: t, afterRemoved: o, afterUpdate: s, appearance: a, icon: c, disabled: l, id: n, kind: g, labelKey: u, labelParameters: r, loading: v, tooltipKey: m, iconFlipRTL: b, onClick: C, refKey: k, textEnabled: E, renderAsAction: U }) {
|
|
1286
|
+
const { _messages: G, _refMap: H, layout: R } = this, P = D(u, G), A = P === void 0 ? u : r ? j(P, r) : P, V = G?.[m] ?? A, $ = k ? F(H, k, L) : this.#n, x = { afterCreate: t, afterRemoved: o, afterUpdate: s };
|
|
1287
|
+
return U ? y`<arcgis-toolbar-action .active=${e} .appearance=${a} .disabled=${l} .icon=${c} .iconFlipRtl=${b} id=${n ?? I} .kind=${g} .loading=${v} .labelText=${R === "horizontal" ? A : ""} .textEnabled=${E} .tooltipText=${R === "horizontal" && E ? "" : V} @arcgisToolbarItemSelected=${C} ${B(x)} ${M($)}></arcgis-toolbar-action>` : y`<arcgis-toolbar-item .active=${e} .disabled=${l} .icon=${c} id=${n ?? I} .iconFlipRtl=${b} .labelText=${A} .tooltipText=${V} @arcgisItemSelected=${C} ${B(x)} ${M($)}></arcgis-toolbar-item>`;
|
|
1279
1288
|
}
|
|
1280
1289
|
}
|
|
1281
|
-
N("arcgis-sketch",
|
|
1290
|
+
N("arcgis-sketch", $e);
|
|
1282
1291
|
export {
|
|
1283
|
-
|
|
1292
|
+
$e as ArcgisSketch
|
|
1284
1293
|
};
|