@arcgis/map-components 5.2.0-next.160 → 5.2.0-next.162
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/{HCN3UC4W.js → 24P3B56P.js} +1 -1
- package/dist/cdn/{QX33OCXB.js → 2DTNZ5ZM.js} +1 -1
- package/dist/cdn/{DSDPDMLP.js → 2H2YCUTD.js} +1 -1
- package/dist/cdn/{3L2J4JFP.js → 2IAD3DI5.js} +1 -1
- package/dist/cdn/2MVAMDNS.js +2 -0
- package/dist/cdn/{RZQNEEP6.js → 2TXVUKFK.js} +1 -1
- package/dist/cdn/{UWKXYCO3.js → 2V3NZCGY.js} +1 -1
- package/dist/cdn/{HLGU3U73.js → 32AID6SI.js} +1 -1
- package/dist/cdn/{JPKB745U.js → 3QTRWVXW.js} +1 -1
- package/dist/cdn/{EESGZV4K.js → 3SFLR6O5.js} +1 -1
- package/dist/cdn/{YHKTMUY7.js → 3U73LNOL.js} +1 -1
- package/dist/cdn/{CQQM24VF.js → 3VWROBRU.js} +1 -1
- package/dist/cdn/{5V2DO6ZW.js → 425K6TZP.js} +1 -1
- package/dist/cdn/{RAOEF6YV.js → 4JUQKQVX.js} +1 -1
- package/dist/cdn/{XPGC5GAG.js → 4KEMJ2WV.js} +1 -1
- package/dist/cdn/{T4V5O3FK.js → 4LYPP56N.js} +1 -1
- package/dist/cdn/{4WAV5GOL.js → 4MORGCH6.js} +1 -1
- package/dist/cdn/{DMYMCGHJ.js → 4NZ7IXTN.js} +1 -1
- package/dist/cdn/{PRTHX6OC.js → 4OPDS2IX.js} +1 -1
- package/dist/cdn/{7DAQGPGD.js → 4RH7KXGJ.js} +1 -1
- package/dist/cdn/{B476G3EX.js → 4TTVR7UK.js} +1 -1
- package/dist/cdn/{WRJNCIEP.js → 4X4YC73A.js} +1 -1
- package/dist/cdn/{S6M66TIN.js → 53ZSDYUK.js} +1 -1
- package/dist/cdn/{YOUMOTN3.js → 54QHGR6M.js} +1 -1
- package/dist/cdn/55FMVRQF.js +2 -0
- package/dist/cdn/{VWFQCWGB.js → 5DSWKRMF.js} +1 -1
- package/dist/cdn/{IRZGEFF5.js → 5GMH7WO5.js} +1 -1
- package/dist/cdn/{27GJE7OY.js → 5J3TRMV4.js} +1 -1
- package/dist/cdn/{EOTKZ4F3.js → 5NOOFVO3.js} +1 -1
- package/dist/cdn/{XCWZZUSV.js → 5P3YDA2J.js} +1 -1
- package/dist/cdn/{OHLJ6POC.js → 5SPGDKNU.js} +1 -1
- package/dist/cdn/{FFJCCMDZ.js → 5SQOFA55.js} +1 -1
- package/dist/cdn/{7EQZKGJN.js → 5WVYY3F2.js} +1 -1
- package/dist/cdn/{CUF7GCDT.js → 67V3RORD.js} +1 -1
- package/dist/cdn/{5UOXHOVU.js → 6C5HYJTX.js} +1 -1
- package/dist/cdn/{MEZHGYCH.js → 6HBNUMMM.js} +1 -1
- package/dist/cdn/{ZW2ZBNX2.js → 6I4O4OP6.js} +1 -1
- package/dist/cdn/{J6MU74RO.js → 6PMF2LH7.js} +1 -1
- package/dist/cdn/{YKSVOTDV.js → 6QHFD6GE.js} +1 -1
- package/dist/cdn/{CF4OY56S.js → 6SRNQFHU.js} +1 -1
- package/dist/cdn/{3YXCLF3K.js → 7H7DAOEA.js} +1 -1
- package/dist/cdn/{7DDCU3NB.js → 7HL355FC.js} +1 -1
- package/dist/cdn/{OGAUCGGG.js → 7HZWKW7P.js} +1 -1
- package/dist/cdn/{MPKC74OS.js → 7KWAYOVZ.js} +1 -1
- package/dist/cdn/{BSTO7TGD.js → 7LHMQDVA.js} +1 -1
- package/dist/cdn/{AW3C3DKA.js → 7O24MNAQ.js} +1 -1
- package/dist/cdn/7PMSUAOO.js +2 -0
- package/dist/cdn/{3E56Q4ZY.js → 7QWDALXI.js} +1 -1
- package/dist/cdn/{N6VSP7BU.js → 7XHT5OZW.js} +1 -1
- package/dist/cdn/{VABVK3ZN.js → AAMMLBR5.js} +1 -1
- package/dist/cdn/{YAEJKOYY.js → ABISOC5K.js} +1 -1
- package/dist/cdn/{O57LOC52.js → AHTSFISJ.js} +1 -1
- package/dist/cdn/{XAD4PUBU.js → ALYYYAT6.js} +1 -1
- package/dist/cdn/{U6VZT3HC.js → ANACVHHA.js} +1 -1
- package/dist/cdn/{FZWFKZLW.js → ANTO53P2.js} +1 -1
- package/dist/cdn/{VTCM7AV2.js → B6T5J7AE.js} +1 -1
- package/dist/cdn/{54CLZESW.js → BBP7HJ56.js} +1 -1
- package/dist/cdn/BFMIWUQN.js +2 -0
- package/dist/cdn/{VCSX4G2U.js → BJ55UYFS.js} +1 -1
- package/dist/cdn/{GF7RZ4IH.js → BKUFQNUO.js} +1 -1
- package/dist/cdn/{FMIWBKT4.js → BL77QP2X.js} +1 -1
- package/dist/cdn/{JBR3FYAN.js → BQBZX2LN.js} +1 -1
- package/dist/cdn/{CX45KI3X.js → BRJV5N3H.js} +1 -1
- package/dist/cdn/{GV3IXBBT.js → BSB356TD.js} +1 -1
- package/dist/cdn/{R3IITUG6.js → BZF63OMM.js} +1 -1
- package/dist/cdn/{GVZKVOM7.js → C6T7AQOJ.js} +1 -1
- package/dist/cdn/{V2GMDCVJ.js → CBAVPTEE.js} +1 -1
- package/dist/cdn/{ZUAR3LO3.js → CJX7JGJD.js} +1 -1
- package/dist/cdn/{J23DTKII.js → CL4XDG6Z.js} +1 -1
- package/dist/cdn/{K6D2JHC4.js → CL5JQN4B.js} +1 -1
- package/dist/cdn/{7VVOJSSE.js → CO7SJMPF.js} +1 -1
- package/dist/cdn/{RQLMXLJC.js → CTWXAKDR.js} +1 -1
- package/dist/cdn/{DOEKV7G3.js → D33FNOVH.js} +1 -1
- package/dist/cdn/{QTDJVI5F.js → D7CBD7BC.js} +1 -1
- package/dist/cdn/{E53ARLWV.js → D7DOUWMR.js} +1 -1
- package/dist/cdn/{IXWGGAVX.js → DA7OOJVG.js} +1 -1
- package/dist/cdn/{XYNRLVTU.js → DHZABM2L.js} +1 -1
- package/dist/cdn/{LIN3GOTG.js → DQIPN7ZF.js} +1 -1
- package/dist/cdn/{3MQPSWL6.js → DQOQZ4MX.js} +1 -1
- package/dist/cdn/{X3DQNCTZ.js → DUVDBJYK.js} +1 -1
- package/dist/cdn/{HZX7MSQG.js → E6PKGP4K.js} +1 -1
- package/dist/cdn/{VJE33ARY.js → EAUQSXQK.js} +1 -1
- package/dist/cdn/{3O4SVNIK.js → EBXA4NR3.js} +1 -1
- package/dist/cdn/{RGBIJQV3.js → ECV3ABD6.js} +1 -1
- package/dist/cdn/{RHNZWKZV.js → EK2KOHA5.js} +1 -1
- package/dist/cdn/{WEAGLY7B.js → EMF6EVCU.js} +1 -1
- package/dist/cdn/{347XA2AR.js → EMGHJBT3.js} +1 -1
- package/dist/cdn/{Y2UYA3OR.js → EOLJLXXY.js} +1 -1
- package/dist/cdn/{IU22RA7Z.js → EQX7MHI6.js} +1 -1
- package/dist/cdn/{SBIOND5K.js → ERO6VEJC.js} +1 -1
- package/dist/cdn/{6BLFYSDN.js → EV2CPCXL.js} +1 -1
- package/dist/cdn/{OFGB5CLF.js → EZNPL6KC.js} +1 -1
- package/dist/cdn/{JCR7S6RP.js → F3JX74XA.js} +1 -1
- package/dist/cdn/{XTPRVANS.js → F47DLSXP.js} +1 -1
- package/dist/cdn/{GXRPNW37.js → F7O7VE64.js} +1 -1
- package/dist/cdn/{4F2ZWXO2.js → F7WGGRNJ.js} +1 -1
- package/dist/cdn/FDO6DYPA.js +2 -0
- package/dist/cdn/{CL2NYK7A.js → FDWA3SMO.js} +1 -1
- package/dist/cdn/{WVRJQQKH.js → FEOBPFWA.js} +1 -1
- package/dist/cdn/{4TTVVGYW.js → FHWZXMIK.js} +1 -1
- package/dist/cdn/{ZPH7M75T.js → FLECY5WX.js} +1 -1
- package/dist/cdn/{AAUN23S6.js → FRX7QU7D.js} +1 -1
- package/dist/cdn/{UCTJVPYB.js → FSS7JPXF.js} +1 -1
- package/dist/cdn/{I23AZWQL.js → FYPAQE4Y.js} +1 -1
- package/dist/cdn/G3DWZLJP.js +2 -0
- package/dist/cdn/{Z4WS2RBO.js → G62IMIVE.js} +1 -1
- package/dist/cdn/{H77SMV46.js → GARRMRRS.js} +1 -1
- package/dist/cdn/{CZOM5NWO.js → GAYVHR65.js} +1 -1
- package/dist/cdn/{B5GJ5JEW.js → GKNQZXPX.js} +1 -1
- package/dist/cdn/{J657IBDC.js → GOIKMQPW.js} +1 -1
- package/dist/cdn/{4JCUCTND.js → GQ7PSV5J.js} +1 -1
- package/dist/cdn/{SQYMNL75.js → GQWR6ITY.js} +1 -1
- package/dist/cdn/{CPIWLONX.js → GSUQ5AKK.js} +1 -1
- package/dist/cdn/{KVK6QLPV.js → GU37FSM6.js} +1 -1
- package/dist/cdn/{GCFCZZQX.js → GVI4ITFC.js} +1 -1
- package/dist/cdn/{N2BLQYTT.js → H6QQGYZN.js} +1 -1
- package/dist/cdn/{JAZGNQRP.js → HDDHFB4N.js} +1 -1
- package/dist/cdn/{HX4CDWS4.js → HSAD2CSX.js} +1 -1
- package/dist/cdn/{CROCDACG.js → HWLF3MJH.js} +1 -1
- package/dist/cdn/HYBKUYZ5.js +2 -0
- package/dist/cdn/{DMYAI77Y.js → HZ3DJS4Z.js} +1 -1
- package/dist/cdn/{AYNGSZAL.js → IBIZBZYQ.js} +1 -1
- package/dist/cdn/{ISIH65JW.js → IHCXEP2I.js} +1 -1
- package/dist/cdn/{I2A6UYGZ.js → IQ7JAUEM.js} +1 -1
- package/dist/cdn/{ITRD7ZY4.js → IVF3QBCM.js} +1 -1
- package/dist/cdn/{NBHZZ4E6.js → IY7PE5CE.js} +1 -1
- package/dist/cdn/{FGCIX2XQ.js → IZM3R6IJ.js} +1 -1
- package/dist/cdn/{SP73K22L.js → IZW2DVPQ.js} +1 -1
- package/dist/cdn/{XURL7UVF.js → J23NMWP3.js} +1 -1
- package/dist/cdn/{N2HG34QB.js → J3SYIHDA.js} +1 -1
- package/dist/cdn/{26LWK3XB.js → J56MRLAB.js} +1 -1
- package/dist/cdn/{JBHRVHGS.js → J6FGJ5GL.js} +1 -1
- package/dist/cdn/{GT6FFZHJ.js → J7ZUTV66.js} +1 -1
- package/dist/cdn/{TB4YNDRB.js → JFPYMOGN.js} +1 -1
- package/dist/cdn/{EKR2SAT2.js → JG5OBAGE.js} +2 -2
- package/dist/cdn/{3PVLBFNC.js → JQL6EOCO.js} +1 -1
- package/dist/cdn/{HX4CSRAB.js → JZEZ3NUX.js} +1 -1
- package/dist/cdn/{H5AYEQ6D.js → K4XQS23R.js} +1 -1
- package/dist/cdn/{V6RSLRWE.js → K664I5PA.js} +1 -1
- package/dist/cdn/{PBLEDNYS.js → K7OJO77W.js} +1 -1
- package/dist/cdn/{XJ6DZ6AN.js → KO5AS6VW.js} +1 -1
- package/dist/cdn/{UMHGXP3S.js → KUSJI634.js} +1 -1
- package/dist/cdn/{3HS3DM5B.js → KXZFSNU7.js} +1 -1
- package/dist/cdn/{3DUIQTNG.js → KZM4VCVX.js} +1 -1
- package/dist/cdn/{XPIX7Z2Q.js → KZNIQR4I.js} +1 -1
- package/dist/cdn/{4PGC5LTJ.js → LAJR3HCR.js} +1 -1
- package/dist/cdn/{3A7S62FX.js → LFYJSBDP.js} +1 -1
- package/dist/cdn/{OX55WUIT.js → LH26HXV7.js} +1 -1
- package/dist/cdn/{UVSORYXI.js → LNXDL2NJ.js} +1 -1
- package/dist/cdn/{CORNSRXU.js → LOKVW7BI.js} +1 -1
- package/dist/cdn/{E5JCJOB3.js → LSPD67GR.js} +1 -1
- package/dist/cdn/{5SL2HI4G.js → MDGBXXHA.js} +1 -1
- package/dist/cdn/{RQG75Q2X.js → MHV5G6SE.js} +1 -1
- package/dist/cdn/{74SNPIFY.js → MISUZ26F.js} +1 -1
- package/dist/cdn/{Z5C6UBYP.js → MLB4A6K7.js} +1 -1
- package/dist/cdn/{BQKVSKYK.js → MMCTIVCI.js} +1 -1
- package/dist/cdn/{F6BKCG5R.js → MQ6XEY2R.js} +1 -1
- package/dist/cdn/{W3ENDJ6U.js → MXSRK7K5.js} +1 -1
- package/dist/cdn/{X3DYJCL3.js → MZ47CPKO.js} +1 -1
- package/dist/cdn/{PLVTYVUG.js → N3R4MICW.js} +1 -1
- package/dist/cdn/{Y5LZUAMK.js → N5ISIJH5.js} +1 -1
- package/dist/cdn/{F5WKI5HZ.js → NII3CQS5.js} +1 -1
- package/dist/cdn/{SFFTE3TG.js → NNX5QNWQ.js} +1 -1
- package/dist/cdn/{TD5NCGK6.js → NUHQPZL4.js} +1 -1
- package/dist/cdn/{QTTIUOSW.js → NV6GXURX.js} +1 -1
- package/dist/cdn/{IMPFB7YV.js → NY6QZ4MA.js} +1 -1
- package/dist/cdn/{WBI4RS3V.js → NZLJG4BL.js} +1 -1
- package/dist/cdn/{WQMZ7BDQ.js → NZROZFUD.js} +1 -1
- package/dist/cdn/{DPPZZO5W.js → O5Y24FRM.js} +1 -1
- package/dist/cdn/{YWS5RHVM.js → O67NWBOY.js} +1 -1
- package/dist/cdn/{FWXRRSBS.js → OEDRJOWH.js} +1 -1
- package/dist/cdn/{ALROLX35.js → OEL57WQN.js} +1 -1
- package/dist/cdn/{ECNRW3D5.js → OLB6I4UK.js} +1 -1
- package/dist/cdn/{KT7MEZHJ.js → OP3MZHXU.js} +1 -1
- package/dist/cdn/{TC6HL72N.js → OQPX2UPC.js} +1 -1
- package/dist/cdn/{YPNJ5V4R.js → OVPNI75B.js} +1 -1
- package/dist/cdn/{E4NTQBM3.js → PGA77WC5.js} +1 -1
- package/dist/cdn/{IFMBHZHX.js → PIMHCTPI.js} +1 -1
- package/dist/cdn/{3A3DGDW5.js → PJCNEOQF.js} +1 -1
- package/dist/cdn/{F4O7DFPZ.js → PUAHNTEG.js} +1 -1
- package/dist/cdn/{N4MW5VBL.js → Q65F6MWR.js} +1 -1
- package/dist/cdn/{2GDB3C5I.js → QHAQOS2G.js} +1 -1
- package/dist/cdn/{A4U2PDJP.js → QJ5KZEMN.js} +1 -1
- package/dist/cdn/{Z42QB2QP.js → QNAOKY55.js} +1 -1
- package/dist/cdn/{HGMLU4M2.js → QXWPPVRF.js} +1 -1
- package/dist/cdn/{YYBNA7EL.js → QZPSM252.js} +1 -1
- package/dist/cdn/{PEH4U3YV.js → RBXGMK4A.js} +1 -1
- package/dist/cdn/{4WXSFT6G.js → RFNA2JVW.js} +1 -1
- package/dist/cdn/{KBHLE7HT.js → RIOVVINY.js} +1 -1
- package/dist/cdn/{IJLCJVC4.js → RISGMK3U.js} +1 -1
- package/dist/cdn/{R2IBOCMY.js → RRI5FB6J.js} +1 -1
- package/dist/cdn/{CJ4KIA26.js → RUEKYGP5.js} +1 -1
- package/dist/cdn/{TNFZHEWD.js → RYAAG272.js} +1 -1
- package/dist/cdn/{ZOTONI4L.js → RZ73VWA5.js} +1 -1
- package/dist/cdn/{ELYDZHP5.js → S3LQLHD6.js} +1 -1
- package/dist/cdn/{2DKTF2EL.js → SJ3PDY6L.js} +1 -1
- package/dist/cdn/{FNSGB45I.js → SVREDYVS.js} +1 -1
- package/dist/cdn/SYRJ7DOA.js +2 -0
- package/dist/cdn/{7MOL5GJB.js → T45S5TFC.js} +1 -1
- package/dist/cdn/{CGN2BQTU.js → T4UAJPSY.js} +1 -1
- package/dist/cdn/{6J55YK5V.js → TDM7GIQ3.js} +1 -1
- package/dist/cdn/{5XVK5ZBK.js → TE6BOLKS.js} +1 -1
- package/dist/cdn/THPKHOLK.js +2 -0
- package/dist/cdn/{Q22KIHFH.js → TJSRSIUW.js} +1 -1
- package/dist/cdn/{AWQXKVLZ.js → TVMAPTLG.js} +1 -1
- package/dist/cdn/TZAGTA3R.js +2 -0
- package/dist/cdn/{AAMRTS35.js → U3WVHX7O.js} +1 -1
- package/dist/cdn/{55AW5TTI.js → U6DC2MQH.js} +1 -1
- package/dist/cdn/{VSDQVSOV.js → UAUGYXU6.js} +1 -1
- package/dist/cdn/{TU6ZG6ZI.js → UIKE7YYX.js} +1 -1
- package/dist/cdn/{4T2A7PAO.js → UL22S2IY.js} +1 -1
- package/dist/cdn/{CIUI5B52.js → US5ULFSA.js} +1 -1
- package/dist/cdn/{LHFB44QW.js → VF23MMWZ.js} +1 -1
- package/dist/cdn/{VEAJ52RN.js → VHEW6B4T.js} +1 -1
- package/dist/cdn/{SFSWQGLY.js → VHM26W3Y.js} +1 -1
- package/dist/cdn/{QJWFZYU4.js → VNAQ67E4.js} +1 -1
- package/dist/cdn/{TNRY4WWO.js → VNJX65J7.js} +1 -1
- package/dist/cdn/{ZVZVHZYX.js → VRGWZTR7.js} +1 -1
- package/dist/cdn/{7V7IKYJG.js → VULIDWWD.js} +1 -1
- package/dist/cdn/{4WP4DUBT.js → VZH34OGM.js} +1 -1
- package/dist/cdn/{2KP3MSHV.js → W3F5JSCP.js} +1 -1
- package/dist/cdn/{LL7R6ETJ.js → WBGDEHVN.js} +1 -1
- package/dist/cdn/{5763ZV75.js → WBL4UUCC.js} +1 -1
- package/dist/cdn/{6IVEAPNI.js → WC6DROK5.js} +1 -1
- package/dist/cdn/{XAADUJ74.js → WHUUMSXM.js} +1 -1
- package/dist/cdn/{RPHJDEZH.js → WMF2MPES.js} +1 -1
- package/dist/cdn/{PPKJKXSQ.js → WQA6TRAU.js} +1 -1
- package/dist/cdn/{6GFUBVBL.js → WQDAN4E5.js} +1 -1
- package/dist/cdn/{OBMM7WJD.js → WR4FT2W6.js} +1 -1
- package/dist/cdn/{JIQ4P34C.js → WTJKJDQI.js} +1 -1
- package/dist/cdn/WWE4AYSF.js +2 -0
- package/dist/cdn/{2CWTV6TC.js → X4OCMVNC.js} +1 -1
- package/dist/cdn/{MKCJXRXB.js → X5PDNDLF.js} +1 -1
- package/dist/cdn/{SREWXCMU.js → XUTYBAR3.js} +1 -1
- package/dist/cdn/{3NL42TBJ.js → XVIU2QPW.js} +1 -1
- package/dist/cdn/{GQXUCZYM.js → XZDFPYIT.js} +1 -1
- package/dist/cdn/{NRJ6LV6O.js → Y5RUICI6.js} +1 -1
- package/dist/cdn/{YPNGSV66.js → YAVGZJYT.js} +1 -1
- package/dist/cdn/{YLC4L2QV.js → YFUWLCCU.js} +1 -1
- package/dist/cdn/{4RMVG2NH.js → YKDKGRAW.js} +1 -1
- package/dist/cdn/{Y2LELW5Y.js → YTZT4H7K.js} +1 -1
- package/dist/cdn/{BKVCAAPF.js → YUWVZYZY.js} +1 -1
- package/dist/cdn/{TZ2LE7KS.js → YWH5JCGP.js} +1 -1
- package/dist/cdn/ZOFSFHBV.js +2 -0
- package/dist/cdn/{3SG4AC5C.js → ZQELYLR7.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-coordinate-conversion-next/customElement.js +29 -29
- package/dist/components/arcgis-elevation-profile/customElement.js +14 -20
- package/dist/components/arcgis-features-next/customElement.d.ts +2 -2
- package/dist/components/arcgis-features-next/customElement.js +27 -20
- package/dist/components/arcgis-floor-filter/customElement.d.ts +3 -0
- package/dist/components/arcgis-floor-filter/customElement.js +3 -3
- package/dist/components/arcgis-floor-filter/interfaces.d.ts +72 -0
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +5 -5
- package/dist/components/arcgis-search/customElement.d.ts +1 -2
- package/dist/components/arcgis-selection-list/customElement.js +1 -1
- package/dist/components/arcgis-sketch/customElement.js +394 -204
- package/dist/components/arcgis-sketch/toolbar-sizing-controller.d.ts +96 -0
- package/dist/components/arcgis-time-bar-slider/customElement.d.ts +8 -0
- package/dist/components/arcgis-time-bar-slider/customElement.js +35 -35
- package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.d.ts +100 -20
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +0 -1
- package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.d.ts +117 -29
- package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.js +10 -10
- package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.d.ts +56 -9
- 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/index.d.ts +6 -0
- package/dist/loader.js +1 -1
- package/dist/types/lumina.d.ts +3 -1
- package/dist/types/preact.d.ts +3 -1
- package/dist/types/react.d.ts +3 -1
- package/dist/types/stencil.d.ts +3 -1
- package/package.json +6 -6
- package/dist/cdn/5K54VOLZ.js +0 -2
- package/dist/cdn/6JYHS4C3.js +0 -2
- package/dist/cdn/6YP2FZDY.js +0 -2
- package/dist/cdn/AN3BGKZP.js +0 -2
- package/dist/cdn/EZCNI254.js +0 -2
- package/dist/cdn/PT7IKQT5.js +0 -2
- package/dist/cdn/QQECON7F.js +0 -2
- package/dist/cdn/UN7EG7PC.js +0 -2
- package/dist/cdn/WYNLO2MH.js +0 -2
- package/dist/cdn/XKHGN6LQ.js +0 -2
- package/dist/cdn/YDB2XJRU.js +0 -2
- package/dist/cdn/YY45XUPP.js +0 -2
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { substitute as
|
|
5
|
-
import { usePropertyChange as
|
|
6
|
-
import { reEmitEvent as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { LitElement as
|
|
10
|
-
import { watch as
|
|
11
|
-
import { u as
|
|
12
|
-
import { m as
|
|
13
|
-
import { V as
|
|
14
|
-
import { createRef as
|
|
15
|
-
import
|
|
16
|
-
import { S as
|
|
17
|
-
import { getOrCreateMapValue as
|
|
18
|
-
import { LayoutPriorities as
|
|
19
|
-
import
|
|
20
|
-
import { property as
|
|
21
|
-
import { ignoreAbortErrors as
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { c as
|
|
25
|
-
import { AsyncDirective as
|
|
26
|
-
import { directive as
|
|
27
|
-
import { r as
|
|
28
|
-
|
|
2
|
+
import { c as N } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as q, noChange as I, html as y } from "lit";
|
|
4
|
+
import { substitute as j } from "@arcgis/core/intl.js";
|
|
5
|
+
import { GenericController as J, usePropertyChange as Q, useWatchAttributes as X } from "@arcgis/lumina/controllers";
|
|
6
|
+
import { reEmitEvent as S } from "@arcgis/lumina-toolkit/reEmitEvent";
|
|
7
|
+
import Y from "@arcgis/core/layers/GraphicsLayer.js";
|
|
8
|
+
import Z from "@arcgis/core/symbols/TextSymbol.js";
|
|
9
|
+
import { LitElement as ee, createEvent as te, nothing as B } from "@arcgis/lumina";
|
|
10
|
+
import { watch as f, on as ie, whenOnce as oe } from "@arcgis/core/core/reactiveUtils.js";
|
|
11
|
+
import { u as se } from "../../chunks/useT9n.js";
|
|
12
|
+
import { m as ne } from "../../chunks/useViewModel.js";
|
|
13
|
+
import { V as _ } from "../../chunks/visible-element.js";
|
|
14
|
+
import { createRef as O, ref as M } from "lit/directives/ref.js";
|
|
15
|
+
import le from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
|
|
16
|
+
import { S as re } from "../../chunks/resources.js";
|
|
17
|
+
import { getOrCreateMapValue as F, createReactiveMap as ae } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
18
|
+
import { LayoutPriorities as T } from "@arcgis/common-components";
|
|
19
|
+
import ce from "@arcgis/core/core/Accessor.js";
|
|
20
|
+
import { property as p, subclass as he } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
21
|
+
import { ignoreAbortErrors as w } from "@arcgis/core/core/promiseUtils.js";
|
|
22
|
+
import de from "@arcgis/core/widgets/Sketch/VisibleElements.js";
|
|
23
|
+
import pe from "@arcgis/core/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js";
|
|
24
|
+
import { c as ue } from "../../chunks/loader-utils.js";
|
|
25
|
+
import { AsyncDirective as ge } from "lit/async-directive.js";
|
|
26
|
+
import { directive as me, PartType as ve } from "lit/directive.js";
|
|
27
|
+
import { r as fe } from "../../chunks/async-utils.js";
|
|
28
|
+
import { observeAncestorsMutation as ye } from "@arcgis/toolkit/dom";
|
|
29
|
+
const be = [
|
|
29
30
|
"bottom-end",
|
|
30
31
|
"bottom-start",
|
|
31
32
|
"bottom-left",
|
|
@@ -34,7 +35,7 @@ const ge = [
|
|
|
34
35
|
"top-start",
|
|
35
36
|
"top-left",
|
|
36
37
|
"top-right"
|
|
37
|
-
],
|
|
38
|
+
], Ce = new Set(be);
|
|
38
39
|
function D(i, e) {
|
|
39
40
|
let t = e;
|
|
40
41
|
for (const o of i.split(".")) {
|
|
@@ -44,7 +45,7 @@ function D(i, e) {
|
|
|
44
45
|
}
|
|
45
46
|
return typeof t == "string" ? t : void 0;
|
|
46
47
|
}
|
|
47
|
-
const
|
|
48
|
+
const Se = 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%}`, Te = {
|
|
48
49
|
point: "pin",
|
|
49
50
|
polyline: "line",
|
|
50
51
|
polygon: "polygon",
|
|
@@ -55,45 +56,48 @@ const ve = H`.editing-controls-panel{min-inline-size:100px;max-inline-size:400px
|
|
|
55
56
|
freehandPolygon: "freehand-area",
|
|
56
57
|
freehandPolyline: "freehand",
|
|
57
58
|
text: "text"
|
|
58
|
-
},
|
|
59
|
+
}, we = {
|
|
59
60
|
selectionTools: {
|
|
60
|
-
defaultPriority:
|
|
61
|
+
defaultPriority: T.Default,
|
|
61
62
|
groupKind: "split-button",
|
|
62
63
|
overflowLabel: "selection"
|
|
63
64
|
},
|
|
64
65
|
selectionSet: {
|
|
65
|
-
defaultPriority:
|
|
66
|
+
defaultPriority: T.High,
|
|
66
67
|
groupKind: "actions"
|
|
67
68
|
},
|
|
68
69
|
createTools: {
|
|
69
|
-
defaultPriority:
|
|
70
|
+
defaultPriority: T.High,
|
|
70
71
|
groupKind: "more-button",
|
|
71
72
|
overflowLabel: "drawing"
|
|
72
73
|
},
|
|
73
74
|
undoRedo: {
|
|
74
|
-
defaultPriority:
|
|
75
|
+
defaultPriority: T.Medium,
|
|
75
76
|
groupKind: "split-button",
|
|
76
|
-
overflowLabel: "action"
|
|
77
|
+
overflowLabel: "action",
|
|
78
|
+
preferEndSlot: !0
|
|
77
79
|
},
|
|
78
80
|
settings: {
|
|
79
|
-
defaultPriority:
|
|
81
|
+
defaultPriority: T.Max,
|
|
80
82
|
groupKind: "more-button",
|
|
81
|
-
overflowLabel: "action"
|
|
83
|
+
overflowLabel: "action",
|
|
84
|
+
preferEndSlot: !0
|
|
82
85
|
},
|
|
83
86
|
geometrySimplification: {
|
|
84
|
-
defaultPriority:
|
|
85
|
-
groupKind: "actions"
|
|
87
|
+
defaultPriority: T.Default,
|
|
88
|
+
groupKind: "actions",
|
|
89
|
+
preferEndSlot: !0
|
|
86
90
|
}
|
|
87
91
|
};
|
|
88
|
-
var
|
|
89
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
90
|
-
(
|
|
91
|
-
return o && s &&
|
|
92
|
+
var Ee = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, h = (i, e, t, o) => {
|
|
93
|
+
for (var s = o > 1 ? void 0 : o ? _e(e, t) : e, c = i.length - 1, d; c >= 0; c--)
|
|
94
|
+
(d = i[c]) && (s = (o ? d(e, t, s) : d(s)) || s);
|
|
95
|
+
return o && s && Ee(e, t, s), s;
|
|
92
96
|
};
|
|
93
|
-
let
|
|
97
|
+
let a = class extends ce {
|
|
94
98
|
//#region Lifecycle
|
|
95
99
|
constructor(i) {
|
|
96
|
-
super(i), this._effectiveRenderStateCache = /* @__PURE__ */ new Map(), this._effectiveGeometrySimplificationInProgress = !1, this.visibleElements = new
|
|
100
|
+
super(i), this._effectiveRenderStateCache = /* @__PURE__ */ new Map(), this._effectiveGeometrySimplificationInProgress = !1, this.visibleElements = new de(), this.settingsPopoverOpen = !1, this.availableCreateTools = [
|
|
97
101
|
"point",
|
|
98
102
|
"polyline",
|
|
99
103
|
"freehandPolyline",
|
|
@@ -104,21 +108,21 @@ let n = class extends ne {
|
|
|
104
108
|
];
|
|
105
109
|
}
|
|
106
110
|
initialize() {
|
|
107
|
-
this.selectionViewModel ??= new
|
|
108
|
-
|
|
111
|
+
this.selectionViewModel ??= new pe({ persistSelection: !1 }), this.addHandles([
|
|
112
|
+
f(
|
|
109
113
|
() => this.sketchViewModel,
|
|
110
114
|
(i, e) => {
|
|
111
115
|
i !== e && this._effectiveRenderStateCache.clear();
|
|
112
116
|
},
|
|
113
117
|
{ sync: !0 }
|
|
114
118
|
),
|
|
115
|
-
|
|
119
|
+
ue({
|
|
116
120
|
getLoading: () => this.sketchViewModel?.geometrySimplificationInProgress ?? !1,
|
|
117
121
|
setEffectiveLoading: (i) => {
|
|
118
122
|
this._effectiveGeometrySimplificationInProgress = i;
|
|
119
123
|
}
|
|
120
124
|
}),
|
|
121
|
-
|
|
125
|
+
f(
|
|
122
126
|
() => this.view,
|
|
123
127
|
(i) => {
|
|
124
128
|
this.selectionViewModel.view = i;
|
|
@@ -126,7 +130,7 @@ let n = class extends ne {
|
|
|
126
130
|
{ initial: !0, sync: !0 }
|
|
127
131
|
),
|
|
128
132
|
// Ensure the SelectionViewModel always has the latest layer
|
|
129
|
-
|
|
133
|
+
f(
|
|
130
134
|
() => this.sketchViewModel?.layer,
|
|
131
135
|
(i) => this.selectionViewModel.sources = i ? [i] : [],
|
|
132
136
|
{ initial: !0, sync: !0 }
|
|
@@ -135,21 +139,21 @@ let n = class extends ne {
|
|
|
135
139
|
i.length && this.update(i);
|
|
136
140
|
}),
|
|
137
141
|
// Cancel active tool when selection activates
|
|
138
|
-
|
|
142
|
+
f(
|
|
139
143
|
() => this.selectionViewModel.activeOperation,
|
|
140
144
|
(i) => {
|
|
141
145
|
i && (this.sketchViewModel?.cancel(), this._activeCustomToolOptions = void 0);
|
|
142
146
|
},
|
|
143
147
|
{ sync: !0 }
|
|
144
148
|
),
|
|
145
|
-
|
|
149
|
+
ie(
|
|
146
150
|
() => this.sketchViewModel,
|
|
147
151
|
"create",
|
|
148
152
|
(i) => {
|
|
149
153
|
i.state === "complete" && this.sketchViewModel?.creationMode !== "continuous" && (this._activeCustomToolOptions = void 0);
|
|
150
154
|
}
|
|
151
155
|
),
|
|
152
|
-
|
|
156
|
+
f(
|
|
153
157
|
() => this.visibleElements.settingsMenu,
|
|
154
158
|
(i) => {
|
|
155
159
|
i || (this.settingsPopoverOpen = !1);
|
|
@@ -205,27 +209,27 @@ let n = class extends ne {
|
|
|
205
209
|
const { sketchViewModel: i } = this;
|
|
206
210
|
if (!i)
|
|
207
211
|
return [];
|
|
208
|
-
const e = i.effectiveAvailablePlugins, t = this.state === "disabled", o = this.visibleElements.createTools, s = this.activeTool,
|
|
209
|
-
active:
|
|
212
|
+
const e = i.effectiveAvailablePlugins, t = this.state === "disabled", o = this.visibleElements.createTools, s = this.activeTool, c = this._activeCustomToolOptions, d = c || !i.firstPluginWithSwappableLeaf ? this._customToolOptions : [], r = i.rootPlugins, n = d?.map((l) => ({
|
|
213
|
+
active: l === c,
|
|
210
214
|
disabled: t,
|
|
211
|
-
icon:
|
|
212
|
-
labelKey:
|
|
213
|
-
onClick:
|
|
215
|
+
icon: l.icon,
|
|
216
|
+
labelKey: l.label,
|
|
217
|
+
onClick: l === c ? () => this._cancelActiveOperation() : () => this._activateLegacyDrawTool(l.toolName, l.createOptions, l)
|
|
214
218
|
})) ?? [];
|
|
215
|
-
if (
|
|
216
|
-
return [...this._pluginsToActions(
|
|
219
|
+
if (c && r)
|
|
220
|
+
return [...this._pluginsToActions(r), ...n];
|
|
217
221
|
if (e?.length && this.view?.type !== "3d")
|
|
218
|
-
return [...this._pluginsToActions(e), ...
|
|
219
|
-
const
|
|
222
|
+
return [...this._pluginsToActions(e), ...n];
|
|
223
|
+
const u = this.view?.type === "3d";
|
|
220
224
|
return [
|
|
221
|
-
...this.availableCreateTools?.filter((
|
|
222
|
-
active:
|
|
225
|
+
...this.availableCreateTools?.filter((l) => u && l === "multipoint" ? !1 : l === "mesh" ? !0 : o[l])?.map((l) => ({
|
|
226
|
+
active: l === s,
|
|
223
227
|
disabled: t,
|
|
224
|
-
icon:
|
|
225
|
-
labelKey: `draw.${
|
|
226
|
-
onClick:
|
|
228
|
+
icon: Te[l],
|
|
229
|
+
labelKey: `draw.${l}`,
|
|
230
|
+
onClick: l === s ? () => this._cancelActiveOperation() : () => this._activateLegacyDrawTool(l)
|
|
227
231
|
})) ?? [],
|
|
228
|
-
...
|
|
232
|
+
...n
|
|
229
233
|
];
|
|
230
234
|
}
|
|
231
235
|
get _shouldShowBackButton() {
|
|
@@ -273,30 +277,30 @@ let n = class extends ne {
|
|
|
273
277
|
return t === "polygon" && o === "freehand" && e?.includes("freehandPolygon") ? "freehandPolygon" : t === "polyline" && o === "freehand" && e?.includes("freehandPolyline") ? "freehandPolyline" : t ?? void 0;
|
|
274
278
|
}
|
|
275
279
|
get _selectionCommands() {
|
|
276
|
-
const { state: i, visibleElements: e, _activeSelectionTool: t, _customActions: o } = this, s = this.state === "disabled",
|
|
277
|
-
this.sketchViewModel?.updateOnGraphicClick !== !1 &&
|
|
280
|
+
const { state: i, visibleElements: e, _activeSelectionTool: t, _customActions: o } = this, s = this.state === "disabled", c = [];
|
|
281
|
+
this.sketchViewModel?.updateOnGraphicClick !== !1 && c.push({
|
|
278
282
|
active: i === "ready" && this._activeSelectionTool == null,
|
|
279
283
|
disabled: s,
|
|
280
284
|
icon: "cursor",
|
|
281
285
|
labelKey: "selectFeature",
|
|
282
286
|
onClick: () => this._activateDefaultSelectionTool()
|
|
283
287
|
});
|
|
284
|
-
const
|
|
285
|
-
|
|
288
|
+
const d = e.selectionTools;
|
|
289
|
+
d["rectangle-selection"] && c.push({
|
|
286
290
|
active: t === "rectangle-selection",
|
|
287
291
|
disabled: s,
|
|
288
292
|
icon: "cursor-marquee",
|
|
289
293
|
labelKey: "rectangleSelection",
|
|
290
294
|
onClick: () => this._activateSelectionTool("rectangle-selection")
|
|
291
|
-
}),
|
|
295
|
+
}), d["lasso-selection"] && c.push({
|
|
292
296
|
active: t === "lasso-selection",
|
|
293
297
|
disabled: s,
|
|
294
298
|
icon: "lasso-select",
|
|
295
299
|
labelKey: "lassoSelection",
|
|
296
300
|
onClick: () => this._activateSelectionTool("lasso-selection")
|
|
297
301
|
});
|
|
298
|
-
const
|
|
299
|
-
return
|
|
302
|
+
const r = o?.get("selection-toolbar");
|
|
303
|
+
return r && c.push(...this._customActionsToSketchActions(r)), c;
|
|
300
304
|
}
|
|
301
305
|
get _selectionSetActions() {
|
|
302
306
|
const i = this.sketchViewModel?.updateGraphics.length ?? 0;
|
|
@@ -408,7 +412,7 @@ let n = class extends ne {
|
|
|
408
412
|
await this._executeWhenReady(async () => {
|
|
409
413
|
this.cancelAll();
|
|
410
414
|
const t = this.sketchViewModel;
|
|
411
|
-
t && await
|
|
415
|
+
t && await w(t.create(i, e));
|
|
412
416
|
});
|
|
413
417
|
}
|
|
414
418
|
/**
|
|
@@ -419,9 +423,9 @@ let n = class extends ne {
|
|
|
419
423
|
const e = new AbortController();
|
|
420
424
|
this._pendingCommandAbortController = e;
|
|
421
425
|
try {
|
|
422
|
-
await
|
|
426
|
+
await w(
|
|
423
427
|
(async () => {
|
|
424
|
-
this.sketchViewModel?.geometrySimplificationInProgress && await
|
|
428
|
+
this.sketchViewModel?.geometrySimplificationInProgress && await oe(() => !this.sketchViewModel?.geometrySimplificationInProgress, e.signal), e.signal.aborted || await i();
|
|
425
429
|
})()
|
|
426
430
|
);
|
|
427
431
|
} finally {
|
|
@@ -443,7 +447,7 @@ let n = class extends ne {
|
|
|
443
447
|
if (e?.length) {
|
|
444
448
|
const o = /* @__PURE__ */ new Map();
|
|
445
449
|
for (const s of e)
|
|
446
|
-
|
|
450
|
+
F(o, s.position, () => []).push(s);
|
|
447
451
|
this._customActions = o;
|
|
448
452
|
} else
|
|
449
453
|
this._customActions = void 0;
|
|
@@ -460,7 +464,7 @@ let n = class extends ne {
|
|
|
460
464
|
async update(i, e) {
|
|
461
465
|
await this._executeWhenReady(async () => {
|
|
462
466
|
const t = this.sketchViewModel;
|
|
463
|
-
t && await
|
|
467
|
+
t && await w(t.update(i, e));
|
|
464
468
|
});
|
|
465
469
|
}
|
|
466
470
|
// #endregion
|
|
@@ -491,10 +495,10 @@ let n = class extends ne {
|
|
|
491
495
|
const t = this.sketchViewModel;
|
|
492
496
|
if (t) {
|
|
493
497
|
if (e) {
|
|
494
|
-
t.cancel(),
|
|
498
|
+
t.cancel(), w(t.create(i));
|
|
495
499
|
return;
|
|
496
500
|
}
|
|
497
|
-
t.firstPluginWithSwappableLeaf ? (t.replaceLeaf(i), this.view?.focus()) :
|
|
501
|
+
t.firstPluginWithSwappableLeaf ? (t.replaceLeaf(i), this.view?.focus()) : w(t.create(i));
|
|
498
502
|
}
|
|
499
503
|
});
|
|
500
504
|
}
|
|
@@ -502,7 +506,7 @@ let n = class extends ne {
|
|
|
502
506
|
this._executeWhenReady(() => {
|
|
503
507
|
this._cancelSupportingOperations();
|
|
504
508
|
const o = this.sketchViewModel;
|
|
505
|
-
o && (this._activeCustomToolOptions = t,
|
|
509
|
+
o && (this._activeCustomToolOptions = t, w(o.create(i, e)));
|
|
506
510
|
});
|
|
507
511
|
}
|
|
508
512
|
_activateSelectionTool(i) {
|
|
@@ -569,97 +573,97 @@ let n = class extends ne {
|
|
|
569
573
|
}
|
|
570
574
|
// #endregion
|
|
571
575
|
};
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
],
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
],
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
],
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
],
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
],
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
],
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
],
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
],
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
],
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
],
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
],
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
],
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
],
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
],
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
],
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
],
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
],
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
],
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
],
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
],
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
],
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
],
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
],
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
],
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
],
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
],
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
],
|
|
653
|
-
class
|
|
576
|
+
h([
|
|
577
|
+
p()
|
|
578
|
+
], a.prototype, "_isEffectiveRenderStateFrozen", 1);
|
|
579
|
+
h([
|
|
580
|
+
p()
|
|
581
|
+
], a.prototype, "_effectiveGeometrySimplificationInProgress", 2);
|
|
582
|
+
h([
|
|
583
|
+
p()
|
|
584
|
+
], a.prototype, "_state", 1);
|
|
585
|
+
h([
|
|
586
|
+
p()
|
|
587
|
+
], a.prototype, "_customToolOptions", 2);
|
|
588
|
+
h([
|
|
589
|
+
p()
|
|
590
|
+
], a.prototype, "_activeCustomToolOptions", 2);
|
|
591
|
+
h([
|
|
592
|
+
p()
|
|
593
|
+
], a.prototype, "_customActions", 2);
|
|
594
|
+
h([
|
|
595
|
+
p()
|
|
596
|
+
], a.prototype, "selectionViewModel", 2);
|
|
597
|
+
h([
|
|
598
|
+
p()
|
|
599
|
+
], a.prototype, "_activeSelectionTool", 1);
|
|
600
|
+
h([
|
|
601
|
+
p()
|
|
602
|
+
], a.prototype, "_activePluginUniqueIds", 1);
|
|
603
|
+
h([
|
|
604
|
+
p()
|
|
605
|
+
], a.prototype, "_createToolActions", 1);
|
|
606
|
+
h([
|
|
607
|
+
p()
|
|
608
|
+
], a.prototype, "_shouldShowBackButton", 1);
|
|
609
|
+
h([
|
|
610
|
+
p()
|
|
611
|
+
], a.prototype, "_selectionToolActions", 1);
|
|
612
|
+
h([
|
|
613
|
+
p()
|
|
614
|
+
], a.prototype, "_settingsActions", 1);
|
|
615
|
+
h([
|
|
616
|
+
p()
|
|
617
|
+
], a.prototype, "_activeTool", 1);
|
|
618
|
+
h([
|
|
619
|
+
p()
|
|
620
|
+
], a.prototype, "_selectionCommands", 1);
|
|
621
|
+
h([
|
|
622
|
+
p()
|
|
623
|
+
], a.prototype, "_selectionSetActions", 1);
|
|
624
|
+
h([
|
|
625
|
+
p()
|
|
626
|
+
], a.prototype, "_undoRedoActions", 1);
|
|
627
|
+
h([
|
|
628
|
+
p()
|
|
629
|
+
], a.prototype, "sketchViewModel", 2);
|
|
630
|
+
h([
|
|
631
|
+
p()
|
|
632
|
+
], a.prototype, "visibleElements", 2);
|
|
633
|
+
h([
|
|
634
|
+
p()
|
|
635
|
+
], a.prototype, "view", 2);
|
|
636
|
+
h([
|
|
637
|
+
p()
|
|
638
|
+
], a.prototype, "settingsPopoverOpen", 2);
|
|
639
|
+
h([
|
|
640
|
+
p()
|
|
641
|
+
], a.prototype, "availableCreateTools", 2);
|
|
642
|
+
h([
|
|
643
|
+
p()
|
|
644
|
+
], a.prototype, "state", 1);
|
|
645
|
+
h([
|
|
646
|
+
p()
|
|
647
|
+
], a.prototype, "activeTool", 1);
|
|
648
|
+
h([
|
|
649
|
+
p()
|
|
650
|
+
], a.prototype, "activePluginIds", 1);
|
|
651
|
+
h([
|
|
652
|
+
p()
|
|
653
|
+
], a.prototype, "groupedActions", 1);
|
|
654
|
+
a = h([
|
|
655
|
+
he("components.sketch.SketchComponentViewModel")
|
|
656
|
+
], a);
|
|
657
|
+
class Me extends ge {
|
|
654
658
|
#t;
|
|
655
659
|
#e = !1;
|
|
656
660
|
#i;
|
|
657
661
|
constructor(e) {
|
|
658
|
-
if (super(e), e.type !==
|
|
662
|
+
if (super(e), e.type !== ve.ELEMENT)
|
|
659
663
|
throw new Error("nodeHooks() can only be used on elements");
|
|
660
664
|
}
|
|
661
665
|
render(e) {
|
|
662
|
-
return
|
|
666
|
+
return I;
|
|
663
667
|
}
|
|
664
668
|
update(e, [t]) {
|
|
665
669
|
const o = e.element;
|
|
@@ -668,43 +672,228 @@ class Te extends de {
|
|
|
668
672
|
const s = this.#e ? t.afterUpdate : t.afterCreate;
|
|
669
673
|
return this.#t = o, this.#e = !0, this.#i = t, queueMicrotask(() => {
|
|
670
674
|
o.isConnected && s?.(o);
|
|
671
|
-
}),
|
|
675
|
+
}), I;
|
|
672
676
|
}
|
|
673
677
|
disconnected() {
|
|
674
678
|
const e = this.#t, t = this.#i?.afterRemoved;
|
|
675
679
|
!e || !t || queueMicrotask(() => {
|
|
676
|
-
e.isConnected ||
|
|
680
|
+
e.isConnected || fe(() => t(e), { timeout: 16 });
|
|
677
681
|
});
|
|
678
682
|
}
|
|
679
683
|
}
|
|
680
|
-
const
|
|
684
|
+
const W = me(Me), Pe = /* @__PURE__ */ new Set(["arcgis-map", "arcgis-scene"]), ke = 8;
|
|
685
|
+
class Ae extends J {
|
|
686
|
+
constructor(e) {
|
|
687
|
+
super(e), this.#t = new MutationObserver(() => this.#c()), this.#e = new ResizeObserver(() => this.#v()), this.#i = new ResizeObserver(([t]) => {
|
|
688
|
+
if (!t)
|
|
689
|
+
return;
|
|
690
|
+
const o = this.component.layout === "horizontal" ? t.contentRect.height : t.contentRect.width;
|
|
691
|
+
o !== this.#s && (this.#s = o, this.#v());
|
|
692
|
+
}), this.#h = [], this.ref = (t) => {
|
|
693
|
+
this.#o !== t && (this.#o = t, this.#r = void 0, this.#a = void 0, this.#c());
|
|
694
|
+
}, this.#u = () => this.#c(), this.exports = void 0, this.onConnected(() => this.#m()), this.onUpdated(() => {
|
|
695
|
+
this.#d !== this.component.layout && this.#c();
|
|
696
|
+
}), this.onDisconnected(() => this.#b()), this.onLifecycle(
|
|
697
|
+
() => f(
|
|
698
|
+
() => this.component.view?.attributionHeight,
|
|
699
|
+
() => {
|
|
700
|
+
this.#m();
|
|
701
|
+
},
|
|
702
|
+
{ initial: !0 }
|
|
703
|
+
)
|
|
704
|
+
);
|
|
705
|
+
}
|
|
706
|
+
#t;
|
|
707
|
+
#e;
|
|
708
|
+
#i;
|
|
709
|
+
/** Same as #toolbarStack, but specifically used to track resize observations. */
|
|
710
|
+
#l;
|
|
711
|
+
/** Last observed height for horizontal layout, or width for vertical layout. */
|
|
712
|
+
#s;
|
|
713
|
+
#n;
|
|
714
|
+
#h;
|
|
715
|
+
#g;
|
|
716
|
+
#o;
|
|
717
|
+
/** Last style-write inputs, used to avoid repeating equivalent writes from observer notifications. */
|
|
718
|
+
#r;
|
|
719
|
+
#a;
|
|
720
|
+
/** Layout for which the current context was synchronized; distinct from the last applied style layout. */
|
|
721
|
+
#d;
|
|
722
|
+
/** Re-uses the same direction observation helper as useDirection; that API has onLifecycle-based cleanup API. */
|
|
723
|
+
#p;
|
|
724
|
+
#m() {
|
|
725
|
+
queueMicrotask(() => {
|
|
726
|
+
this.component.el.isConnected && this.#c();
|
|
727
|
+
});
|
|
728
|
+
}
|
|
729
|
+
#c() {
|
|
730
|
+
const e = this.#f();
|
|
731
|
+
if (!e) {
|
|
732
|
+
this.#y(), this.#b();
|
|
733
|
+
return;
|
|
734
|
+
}
|
|
735
|
+
this.#C(e.toolbar), this.#S(e), this.#T(e), this.#v(e);
|
|
736
|
+
}
|
|
737
|
+
#f() {
|
|
738
|
+
const e = this.component.el, t = e.parentElement, o = this.#o, s = e.assignedSlot;
|
|
739
|
+
if (!t || !Pe.has(t.localName) || !o || !s?.parentElement)
|
|
740
|
+
return;
|
|
741
|
+
const c = getComputedStyle(t).direction === "rtl" ? "rtl" : "ltr", d = K(e.slot, c);
|
|
742
|
+
if (!d)
|
|
743
|
+
return;
|
|
744
|
+
const r = Array.from(t.children).filter(
|
|
745
|
+
(n) => n instanceof HTMLElement && n.localName !== "arcgis-sketch"
|
|
746
|
+
);
|
|
747
|
+
return {
|
|
748
|
+
assignedSlot: s,
|
|
749
|
+
content: r,
|
|
750
|
+
direction: c,
|
|
751
|
+
parent: t,
|
|
752
|
+
position: d,
|
|
753
|
+
toolbar: o
|
|
754
|
+
};
|
|
755
|
+
}
|
|
756
|
+
#u;
|
|
757
|
+
/**
|
|
758
|
+
* Keep track of the cross-axis size changes to ensure layout solution remains up-to-date.
|
|
759
|
+
*/
|
|
760
|
+
#C(e) {
|
|
761
|
+
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));
|
|
762
|
+
}
|
|
763
|
+
#S(e) {
|
|
764
|
+
const t = e.assignedSlot;
|
|
765
|
+
this.#n !== t && (this.#n?.removeEventListener("slotchange", this.#u), this.#n = t, t.addEventListener("slotchange", this.#u)), this.#g !== e.parent && (this.#t.disconnect(), this.#p?.(), this.#g = e.parent, this.#p = ye(e.parent, ["dir"], () => {
|
|
766
|
+
this.#m();
|
|
767
|
+
}), this.#t.observe(e.parent, {
|
|
768
|
+
childList: !0,
|
|
769
|
+
subtree: !1
|
|
770
|
+
}));
|
|
771
|
+
}
|
|
772
|
+
#T(e) {
|
|
773
|
+
const t = [e.parent, ...e.content];
|
|
774
|
+
Ge(this.#h, t) || (this.#e.disconnect(), t.forEach((o) => this.#e.observe(o)), this.#h = t);
|
|
775
|
+
}
|
|
776
|
+
#v(e = this.#f()) {
|
|
777
|
+
if (!e) {
|
|
778
|
+
this.#y();
|
|
779
|
+
return;
|
|
780
|
+
}
|
|
781
|
+
const t = this.component.layout, o = Oe({
|
|
782
|
+
content: Le(e),
|
|
783
|
+
gap: ke,
|
|
784
|
+
layout: t,
|
|
785
|
+
position: e.position,
|
|
786
|
+
sameSlotReserve: $e(
|
|
787
|
+
e.assignedSlot,
|
|
788
|
+
this.component.el,
|
|
789
|
+
t,
|
|
790
|
+
e.assignedSlot.parentElement
|
|
791
|
+
),
|
|
792
|
+
toolbarBounds: e.toolbar.getBoundingClientRect(),
|
|
793
|
+
viewBounds: e.parent.getBoundingClientRect()
|
|
794
|
+
});
|
|
795
|
+
this.#w(e.toolbar, t, o);
|
|
796
|
+
}
|
|
797
|
+
#w(e, t, o) {
|
|
798
|
+
o === this.#r && t === this.#a || (this.#r = o, this.#a = t, e.style.setProperty("--arcgis-internal-toolbar-available-length", `${o}px`), 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 = ""));
|
|
799
|
+
}
|
|
800
|
+
/** Remove controller-owned inline sizing when the stack leaves a supported view slot. */
|
|
801
|
+
#y() {
|
|
802
|
+
this.#o && (this.#o.style.maxHeight = "", this.#o.style.maxWidth = "", this.#o.style.height = "", this.#o.style.width = "", this.#o.style.removeProperty("--arcgis-internal-toolbar-available-length"), this.#r = void 0, this.#a = void 0);
|
|
803
|
+
}
|
|
804
|
+
/** Release subscriptions and cached measurements before disconnecting or entering a new context. */
|
|
805
|
+
#b() {
|
|
806
|
+
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.#g = void 0;
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
function Oe({
|
|
810
|
+
content: i,
|
|
811
|
+
gap: e,
|
|
812
|
+
layout: t,
|
|
813
|
+
position: o,
|
|
814
|
+
sameSlotReserve: s,
|
|
815
|
+
toolbarBounds: c,
|
|
816
|
+
viewBounds: d
|
|
817
|
+
}) {
|
|
818
|
+
const r = L(d, t), n = L(c, t), u = z(o, t), g = u ? n.start - r.start : r.end - n.end;
|
|
819
|
+
let l = 0, v = !1;
|
|
820
|
+
for (const b of i) {
|
|
821
|
+
if (z(b.position, t) === u)
|
|
822
|
+
continue;
|
|
823
|
+
const C = L(b.bounds, t);
|
|
824
|
+
if (!(C.crossStart < n.crossEnd && C.crossEnd > n.crossStart))
|
|
825
|
+
continue;
|
|
826
|
+
const E = u ? r.end - C.start : C.end - r.start;
|
|
827
|
+
l = Math.max(l, E), v = !0;
|
|
828
|
+
}
|
|
829
|
+
const m = v ? e : 0;
|
|
830
|
+
return Math.max(0, r.length - Math.max(0, g) - s - l - m);
|
|
831
|
+
}
|
|
832
|
+
function L(i, e) {
|
|
833
|
+
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 };
|
|
834
|
+
}
|
|
835
|
+
function z(i, e) {
|
|
836
|
+
return e === "horizontal" ? i.endsWith("left") : i.startsWith("top");
|
|
837
|
+
}
|
|
838
|
+
function Le(i) {
|
|
839
|
+
return i.content.flatMap((e) => {
|
|
840
|
+
if (e.assignedSlot === i.assignedSlot)
|
|
841
|
+
return [];
|
|
842
|
+
const t = K(e.slot, i.direction);
|
|
843
|
+
return t ? [{ bounds: e.getBoundingClientRect(), position: t }] : [];
|
|
844
|
+
});
|
|
845
|
+
}
|
|
846
|
+
function Ge(i, e) {
|
|
847
|
+
return i.length === e.length && i.every((t, o) => t === e[o]);
|
|
848
|
+
}
|
|
849
|
+
function $e(i, e, t, o) {
|
|
850
|
+
const s = getComputedStyle(o).flexDirection;
|
|
851
|
+
if (!(t === "horizontal" ? s.startsWith("row") : s.startsWith("column")))
|
|
852
|
+
return 0;
|
|
853
|
+
const d = i.assignedElements().filter((g) => g instanceof HTMLElement), r = d.indexOf(e);
|
|
854
|
+
if (r < 0)
|
|
855
|
+
return 0;
|
|
856
|
+
const n = getComputedStyle(e), u = s === "row" ? Number.parseFloat(n.marginRight) : s === "row-reverse" ? Number.parseFloat(n.marginLeft) : s === "column" ? Number.parseFloat(n.marginBottom) : Number.parseFloat(n.marginTop);
|
|
857
|
+
return d.slice(r + 1).reduce((g, l) => {
|
|
858
|
+
const v = l.getBoundingClientRect(), m = getComputedStyle(l), b = t === "horizontal" ? v.width + Number.parseFloat(m.marginLeft) + Number.parseFloat(m.marginRight) : v.height + Number.parseFloat(m.marginTop) + Number.parseFloat(m.marginBottom);
|
|
859
|
+
return g + b;
|
|
860
|
+
}, u);
|
|
861
|
+
}
|
|
862
|
+
function K(i, e) {
|
|
863
|
+
const [t, o] = i.split("-");
|
|
864
|
+
if (t !== "bottom" && t !== "top")
|
|
865
|
+
return;
|
|
866
|
+
const s = o === "start" ? e === "ltr" ? "left" : "right" : o === "end" ? e === "ltr" ? "right" : "left" : o;
|
|
867
|
+
return s === "left" || s === "right" ? `${t}-${s}` : void 0;
|
|
868
|
+
}
|
|
869
|
+
const Re = ne((i) => new le({
|
|
681
870
|
...i,
|
|
682
871
|
cancelUpdateOnClickAway: !0,
|
|
683
872
|
creationMode: "continuous",
|
|
684
|
-
textSymbol: new
|
|
873
|
+
textSymbol: new Z({ text: "hello world" }),
|
|
685
874
|
useLegacyCreateTools: !1
|
|
686
875
|
}));
|
|
687
|
-
class
|
|
876
|
+
class Ve extends ee {
|
|
688
877
|
constructor() {
|
|
689
|
-
super(), this.#t = new
|
|
878
|
+
super(), this.#t = new a(), this.#l = O(), this.#s = new Ae(this), this.#n = O(), this._defaultGraphicsLayer = null, this._messages = se(), this.test = {
|
|
690
879
|
componentViewModel: this.#t
|
|
691
|
-
}, this._groupLayoutPriorityOverrides = /* @__PURE__ */ new Map(), this._contextualToolLocation = "separate", this._refMap =
|
|
880
|
+
}, this._groupLayoutPriorityOverrides = /* @__PURE__ */ new Map(), this._contextualToolLocation = "separate", this._refMap = ae(), this.viewModel = Re(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.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.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"], () => {
|
|
692
881
|
this.requestUpdate();
|
|
693
882
|
}), this.manager.onLifecycle(() => [
|
|
694
|
-
|
|
883
|
+
f(() => this.el.view?.map, (e, t) => {
|
|
695
884
|
const o = this._defaultGraphicsLayer;
|
|
696
885
|
o && (t?.allLayers.includes(o) && t.remove(o), o && !e?.allLayers.includes(o) && e?.add(o));
|
|
697
886
|
}),
|
|
698
|
-
|
|
887
|
+
f(() => this.el.view, (e) => {
|
|
699
888
|
this.viewModel.view = e, this.#t.view = e ?? void 0;
|
|
700
889
|
}, { initial: !0 }),
|
|
701
|
-
|
|
890
|
+
f(() => this.viewModel, (e) => {
|
|
702
891
|
this.#t.sketchViewModel = e, this.viewModel.pluginManager.sketch = this;
|
|
703
892
|
}, { initial: !0 }),
|
|
704
|
-
|
|
893
|
+
f(() => this.#t.state, (e, t) => {
|
|
705
894
|
this.requestUpdate("state", t);
|
|
706
895
|
}, { initial: !0 }),
|
|
707
|
-
|
|
896
|
+
f(() => this.#t.activeTool, () => this.arcgisPropertyChange.emit({ name: "activeTool" }), { sync: !0 })
|
|
708
897
|
]), this.manager.onDestroy(() => {
|
|
709
898
|
this._defaultGraphicsLayer && this.el.view?.map?.allLayers.includes(this._defaultGraphicsLayer) && this.el.view?.map?.remove(this._defaultGraphicsLayer), this._defaultGraphicsLayer?.destroy(), this._defaultGraphicsLayer = null, this.#t.destroy();
|
|
710
899
|
});
|
|
@@ -713,15 +902,16 @@ class Se extends Q {
|
|
|
713
902
|
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: 1, pointSymbol: 0, polygonSymbol: 0, polylineSymbol: 0, 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: 1, tooltipOptions: 0, useViewOptions: 5, valueOptions: 0, useLegacyCreateTools: 5, updateOnGraphicClickDisabled: 5, cancelUpdateOnClickAwayDisabled: 5, updateGraphics: 32 };
|
|
714
903
|
}
|
|
715
904
|
static {
|
|
716
|
-
this.styles =
|
|
905
|
+
this.styles = Se;
|
|
717
906
|
}
|
|
718
907
|
#t;
|
|
719
908
|
get #e() {
|
|
720
909
|
return this.#t.visibleElements;
|
|
721
910
|
}
|
|
722
911
|
#i;
|
|
723
|
-
#
|
|
912
|
+
#l;
|
|
724
913
|
#s;
|
|
914
|
+
#n;
|
|
725
915
|
get activeTool() {
|
|
726
916
|
return this.#t.activeTool;
|
|
727
917
|
}
|
|
@@ -919,7 +1109,7 @@ class Se extends Q {
|
|
|
919
1109
|
}
|
|
920
1110
|
get relativePosition() {
|
|
921
1111
|
const e = this.el.slot;
|
|
922
|
-
return this.#i ?? (
|
|
1112
|
+
return this.#i ?? (Ce.has(e) ? e : re.topRight);
|
|
923
1113
|
}
|
|
924
1114
|
set relativePosition(e) {
|
|
925
1115
|
this.#i = e;
|
|
@@ -1009,52 +1199,52 @@ class Se extends Q {
|
|
|
1009
1199
|
this.#t.sketchViewModel?.undo();
|
|
1010
1200
|
}
|
|
1011
1201
|
connectedCallback() {
|
|
1012
|
-
super.connectedCallback(), this.defaultGraphicsLayerDisabled || (this._defaultGraphicsLayer?.destroyed && (this._defaultGraphicsLayer = null), this._defaultGraphicsLayer ??= new
|
|
1202
|
+
super.connectedCallback(), this.defaultGraphicsLayerDisabled || (this._defaultGraphicsLayer?.destroyed && (this._defaultGraphicsLayer = null), this._defaultGraphicsLayer ??= new Y({ title: "Sketch Layer" }), this.layer = this._defaultGraphicsLayer, this.view?.map?.add(this.layer), this.viewModel.layer = this._defaultGraphicsLayer);
|
|
1013
1203
|
}
|
|
1014
1204
|
disconnectedCallback() {
|
|
1015
1205
|
this._defaultGraphicsLayer && this.view?.map?.allLayers.includes(this._defaultGraphicsLayer) && this.view?.map?.remove(this._defaultGraphicsLayer), super.disconnectedCallback();
|
|
1016
1206
|
}
|
|
1017
1207
|
render() {
|
|
1018
|
-
const e = this._refMap.get("settings")?.value?.actionElement, t = this.#t.groupedActions, { visualScale: o, layout: s, toolbarKind:
|
|
1019
|
-
return
|
|
1208
|
+
const e = this._refMap.get("settings")?.value?.actionElement, t = this.#t.groupedActions, { visualScale: o, layout: s, toolbarKind: c, relativePosition: d, _contextualToolLocation: r } = this, n = t.find(({ name: g }) => g === "selectionSet"), u = t.filter(({ name: g }) => g !== "selectionSet");
|
|
1209
|
+
return y`<div class="toolbar-container"><arcgis-toolbar-stack .layout=${s} .toolbarKind=${c} .relativePosition=${d} .scale=${o} tooltip-appearance=calcite ${M(this.#s.ref)}><arcgis-toolbar ${M(this.#l)}>${_({ hidden: !n?.visible || r !== "inline", children: this._renderActionGroup(n) })}${u.map((g) => this._renderActionGroup(g))}${_({ hidden: !n?.visible || r !== "inline-end", children: this._renderActionGroup(n) })}</arcgis-toolbar>${_({ hidden: !n?.visible || r !== "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} closable .heading=${this._messages.settings?.heading} .label=${this._messages.settings?.heading} .anchorElement=${e} .visualScale=${o} .actionBarElement=${this.#l.value?.barElement} @arcgisPropertyChange=${(g) => this.#t.settingsPopoverOpen = g.target.open ?? !1} .view=${this.view ?? void 0}>${this._renderSettings()}</arcgis-view-popover>` })}`;
|
|
1020
1210
|
}
|
|
1021
1211
|
_renderSettings() {
|
|
1022
|
-
const { autoDestroyDisabled: e, hideLabelsToggle: t, hideSnappingControls: o, hideTooltipsToggle: s, showSnappingControlsElementsHeader:
|
|
1023
|
-
return
|
|
1024
|
-
|
|
1025
|
-
const { labelsEnabled:
|
|
1026
|
-
switch (
|
|
1212
|
+
const { autoDestroyDisabled: e, hideLabelsToggle: t, hideSnappingControls: o, hideTooltipsToggle: s, showSnappingControlsElementsHeader: c, useViewOptions: d, view: r, viewModel: n } = this;
|
|
1213
|
+
return y`<div class="editing-controls-panel"><arcgis-sketch-tooltip-controls .hideLabelsToggle=${t} .hideTooltipsToggle=${d || s} .directionMode=${n.valueOptions.directionMode} .labelsEnabled=${n.labelOptions.enabled} .tooltipsEnabled=${n.tooltipOptions.enabled} @arcgisPropertyChange=${(u) => {
|
|
1214
|
+
u.stopPropagation();
|
|
1215
|
+
const { labelsEnabled: g, tooltipsEnabled: l, directionMode: v } = u.currentTarget, m = this.viewModel;
|
|
1216
|
+
switch (u.detail.name) {
|
|
1027
1217
|
case "labelsEnabled":
|
|
1028
|
-
|
|
1218
|
+
m.labelOptions.enabled = g;
|
|
1029
1219
|
break;
|
|
1030
1220
|
case "directionMode":
|
|
1031
|
-
|
|
1221
|
+
m.valueOptions.directionMode = v;
|
|
1032
1222
|
break;
|
|
1033
1223
|
case "tooltipsEnabled":
|
|
1034
|
-
|
|
1224
|
+
m.tooltipOptions.enabled = l;
|
|
1035
1225
|
break;
|
|
1036
1226
|
}
|
|
1037
|
-
}}></arcgis-sketch-tooltip-controls>${!
|
|
1227
|
+
}}></arcgis-sketch-tooltip-controls>${!d && !o ? y`<arcgis-snapping-controls .autoDestroyDisabled=${e} .view=${r} .visibleElements=${this.#e.snappingControlsElements} .snappingOptions=${n.snappingOptions} .showHeader=${c} @arcgisPropertyChange=${(u) => u.stopPropagation()}></arcgis-snapping-controls>` : void 0}</div>`;
|
|
1038
1228
|
}
|
|
1039
1229
|
_renderActionGroup({ visible: e, commands: t, name: o }) {
|
|
1040
1230
|
if (!e || !t.length)
|
|
1041
1231
|
return;
|
|
1042
|
-
const { defaultPriority: s, groupKind:
|
|
1043
|
-
switch (
|
|
1232
|
+
const { defaultPriority: s, groupKind: c, overflowLabel: d, preferEndSlot: r } = we[o], u = (o === "geometrySimplification" ? void 0 : this._groupLayoutPriorityOverrides.get(o)) ?? s, g = t.map((v) => this._renderCommand(v)), l = D(`more.${d}`, this._messages);
|
|
1233
|
+
switch (c) {
|
|
1044
1234
|
case "more-button":
|
|
1045
|
-
return
|
|
1235
|
+
return y`<arcgis-toolbar-group .priority=${u} .preferEndSlot=${r}><arcgis-toolbar-more-button .overflowActionLabel=${l} .priority=${u}>${g}</arcgis-toolbar-more-button></arcgis-toolbar-group>`;
|
|
1046
1236
|
case "split-button":
|
|
1047
|
-
return
|
|
1237
|
+
return y`<arcgis-toolbar-group .priority=${u} .preferEndSlot=${r}><arcgis-toolbar-split-button .overflowActionLabel=${l} .priority=${u}>${g}</arcgis-toolbar-split-button></arcgis-toolbar-group>`;
|
|
1048
1238
|
case "actions":
|
|
1049
|
-
return
|
|
1239
|
+
return y`<arcgis-toolbar-group .priority=${u} .preferEndSlot=${r}>${g}</arcgis-toolbar-group>`;
|
|
1050
1240
|
}
|
|
1051
1241
|
}
|
|
1052
|
-
_renderCommand({ active: e, afterCreate: t, afterRemoved: o, afterUpdate: s, appearance:
|
|
1053
|
-
const { _messages:
|
|
1054
|
-
return
|
|
1242
|
+
_renderCommand({ active: e, afterCreate: t, afterRemoved: o, afterUpdate: s, appearance: c, icon: d, disabled: r, id: n, kind: u, labelKey: g, labelParameters: l, loading: v, tooltipKey: m, iconFlipRTL: b, onClick: C, refKey: P, textEnabled: E, renderAsAction: U }) {
|
|
1243
|
+
const { _messages: G, _refMap: H, layout: $ } = this, k = D(g, G), A = k === void 0 ? g : l ? j(k, l) : k, R = G?.[m] ?? A, V = P ? F(H, P, O) : this.#n, x = { afterCreate: t, afterRemoved: o, afterUpdate: s };
|
|
1244
|
+
return U ? y`<arcgis-toolbar-action .active=${e} .appearance=${c} .disabled=${r} .icon=${d} .iconFlipRtl=${b} id=${n ?? B} .kind=${u} .loading=${v} .labelText=${$ === "horizontal" ? A : ""} .textEnabled=${E} .tooltipText=${$ === "horizontal" && E ? "" : R} @arcgisToolbarItemSelected=${C} ${W(x)} ${M(V)}></arcgis-toolbar-action>` : y`<arcgis-toolbar-item .active=${e} .disabled=${r} .icon=${d} id=${n ?? B} .iconFlipRtl=${b} .labelText=${A} .tooltipText=${R} @arcgisItemSelected=${C} ${W(x)} ${M(V)}></arcgis-toolbar-item>`;
|
|
1055
1245
|
}
|
|
1056
1246
|
}
|
|
1057
|
-
|
|
1247
|
+
N("arcgis-sketch", Ve);
|
|
1058
1248
|
export {
|
|
1059
|
-
|
|
1249
|
+
Ve as ArcgisSketch
|
|
1060
1250
|
};
|