@arcgis/map-components 5.2.0-next.118 → 5.2.0-next.119
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/{5S5DBHWT.js → 27OE65X3.js} +1 -1
- package/dist/cdn/{TYCJUDPP.js → 2AYHF7VG.js} +1 -1
- package/dist/cdn/{6A365EUI.js → 2FXIUC33.js} +1 -1
- package/dist/cdn/{GQRPWE6F.js → 2JMZ2QME.js} +1 -1
- package/dist/cdn/{G7P7J3YE.js → 2OGEVHBC.js} +1 -1
- package/dist/cdn/{TN5QHOVX.js → 34WL35IV.js} +1 -1
- package/dist/cdn/36NVCUUH.js +2 -0
- package/dist/cdn/{IJ5XHCZH.js → 37N43OTX.js} +1 -1
- package/dist/cdn/3AUMBOFQ.js +2 -0
- package/dist/cdn/{BAI3SYHE.js → 3FQCW7VR.js} +1 -1
- package/dist/cdn/{S5TTVLIS.js → 3GP5VMNH.js} +1 -1
- package/dist/cdn/{ETXQKL6T.js → 3NHARVEM.js} +1 -1
- package/dist/cdn/{J2BAJI7A.js → 3NOPKUND.js} +1 -1
- package/dist/cdn/{NHFS7NGT.js → 3S5DZICB.js} +1 -1
- package/dist/cdn/3VBI4PPT.js +2 -0
- package/dist/cdn/{GKIA62WD.js → 445GD7KI.js} +1 -1
- package/dist/cdn/{NAEALB6J.js → 46TSVHBE.js} +1 -1
- package/dist/cdn/{OYYHPCVK.js → 47WT53LM.js} +1 -1
- package/dist/cdn/{GPM7FHDM.js → 4BKQW4G6.js} +1 -1
- package/dist/cdn/{FARYZNFO.js → 4CCPFAT6.js} +1 -1
- package/dist/cdn/{BHRCTXAX.js → 4DWURRQB.js} +1 -1
- package/dist/cdn/{EMSHKPM2.js → 4FADGEJD.js} +1 -1
- package/dist/cdn/{3ZHQJPFI.js → 4FFO42CA.js} +1 -1
- package/dist/cdn/{AJ4FZ2ZG.js → 4N6GTXNB.js} +1 -1
- package/dist/cdn/{QFYATITD.js → 4N7TU2OR.js} +1 -1
- package/dist/cdn/{QEMEU6KU.js → 57GT5KQ6.js} +1 -1
- package/dist/cdn/{XC3WE23A.js → 5DUJXUUF.js} +1 -1
- package/dist/cdn/{Y3W3QASH.js → 5ECZZVPO.js} +1 -1
- package/dist/cdn/{DCTXU3AM.js → 5FBX5V2M.js} +1 -1
- package/dist/cdn/{LBXIC75T.js → 5HAFUKZQ.js} +1 -1
- package/dist/cdn/5IQQ6P2J.js +2 -0
- package/dist/cdn/{6YQZOTCZ.js → 5JADSW57.js} +1 -1
- package/dist/cdn/{AAY2RSJE.js → 5OFKDU6L.js} +1 -1
- package/dist/cdn/{CBZ7YZAZ.js → 5PNAHYUT.js} +1 -1
- package/dist/cdn/{O7N226BJ.js → 5ZFMOOPU.js} +1 -1
- package/dist/cdn/{NG4IEHMS.js → 65PEGLJY.js} +1 -1
- package/dist/cdn/{SAL7W4ZN.js → 66U6JSLL.js} +1 -1
- package/dist/cdn/{P5JSHW4U.js → 67V6VAOB.js} +1 -1
- package/dist/cdn/{6OBM3QXD.js → 6BBACFDY.js} +1 -1
- package/dist/cdn/{RWMU7NT7.js → 6D6CA7SY.js} +1 -1
- package/dist/cdn/{3BUBP7PK.js → 6EXRTZ6W.js} +1 -1
- package/dist/cdn/{XRJP47U4.js → 6J5SL3P3.js} +1 -1
- package/dist/cdn/{WRSO7TTR.js → 6YHAXMQ5.js} +1 -1
- package/dist/cdn/{TE5I56ZJ.js → 72GW52ZS.js} +1 -1
- package/dist/cdn/{VHMDAMVX.js → 75PXQ6OP.js} +1 -1
- package/dist/cdn/{QFHUHKLV.js → 77JEGLHX.js} +1 -1
- package/dist/cdn/{3D7IP4IV.js → 7PRWSCBO.js} +1 -1
- package/dist/cdn/7QH5PIWM.js +2 -0
- package/dist/cdn/{XSGFJGLE.js → A2FK4TED.js} +1 -1
- package/dist/cdn/{HM37S3XP.js → ACJZA4FW.js} +1 -1
- package/dist/cdn/AFYG4EKW.js +2 -0
- package/dist/cdn/{QTOFMGF5.js → AIB2N4JH.js} +1 -1
- package/dist/cdn/{BEENHLQP.js → AK3RVXC7.js} +1 -1
- package/dist/cdn/{UBR3KCKR.js → AMIIBOJW.js} +1 -1
- package/dist/cdn/{6P7CWH4S.js → B3CCMNCB.js} +1 -1
- package/dist/cdn/{NBKRA3DF.js → BBNUDGDE.js} +1 -1
- package/dist/cdn/{Q446NT7X.js → BGVMZOKW.js} +1 -1
- package/dist/cdn/{VLC2DTR2.js → BL4AWMGM.js} +1 -1
- package/dist/cdn/{LOPERPWN.js → BOEHQXPR.js} +1 -1
- package/dist/cdn/BUZC2WTF.js +2 -0
- package/dist/cdn/BVOFBD27.js +2 -0
- package/dist/cdn/{GG7KEBIO.js → C7WBBLAB.js} +1 -1
- package/dist/cdn/CD4YOWDM.js +2 -0
- package/dist/cdn/{F55UQAD5.js → CEUOTZKZ.js} +1 -1
- package/dist/cdn/{2BK5BYA3.js → CEYTO6OF.js} +1 -1
- package/dist/cdn/{K3N2E6M5.js → CLA3CIOM.js} +1 -1
- package/dist/cdn/{LCG5BEEY.js → CQIHGU4E.js} +1 -1
- package/dist/cdn/{6NDRXW2A.js → CRWARUC7.js} +1 -1
- package/dist/cdn/{YR27DLDD.js → CZKXSDTS.js} +1 -1
- package/dist/cdn/D2DXLALU.js +2 -0
- package/dist/cdn/D6P4SRPC.js +2 -0
- package/dist/cdn/DCCXLOTF.js +2 -0
- package/dist/cdn/{CEQXB7WX.js → DEQLGPYU.js} +1 -1
- package/dist/cdn/{ZE3QHUEB.js → DFMO5W44.js} +1 -1
- package/dist/cdn/{QBFVYPSW.js → DLQPKKJL.js} +1 -1
- package/dist/cdn/{JIR3C2L6.js → DRPHIFHL.js} +1 -1
- package/dist/cdn/{5GP632QJ.js → DYS2MC2S.js} +1 -1
- package/dist/cdn/{SOG3YWSN.js → EDSBOPFW.js} +1 -1
- package/dist/cdn/{37DFS24U.js → EKESUZYM.js} +1 -1
- package/dist/cdn/{I6WCJXHE.js → F7YHYRVZ.js} +1 -1
- package/dist/cdn/{5XPJ3IN6.js → FEO7SZVK.js} +1 -1
- package/dist/cdn/{VSEPC42P.js → FGE26FPS.js} +1 -1
- package/dist/cdn/{UN6DXF63.js → FL4P7ZV3.js} +1 -1
- package/dist/cdn/{UKFAXZIW.js → FLTAOPLR.js} +1 -1
- package/dist/cdn/FNYKN3UB.js +2 -0
- package/dist/cdn/{2Z5WR573.js → FPU4EYVQ.js} +1 -1
- package/dist/cdn/{ZGGQQPWY.js → FREVHZUV.js} +1 -1
- package/dist/cdn/GCUM7LIJ.js +2 -0
- package/dist/cdn/{RM4OPQBM.js → GFTZ7EZP.js} +1 -1
- package/dist/cdn/{GFWJ4BP6.js → GGO772QS.js} +1 -1
- package/dist/cdn/GJZCVU6G.js +5 -0
- package/dist/cdn/{S5UKLNKF.js → GNASFNLA.js} +1 -1
- package/dist/cdn/{7JTE2SXE.js → GPXCRUER.js} +1 -1
- package/dist/cdn/{6NEPB3L3.js → GS5F7SMZ.js} +1 -1
- package/dist/cdn/H5XVDYHD.js +2 -0
- package/dist/cdn/{KZUMKDRC.js → H6D265DV.js} +1 -1
- package/dist/cdn/{XVANORO2.js → HBA66T2F.js} +1 -1
- package/dist/cdn/HBD2HVM3.js +2 -0
- package/dist/cdn/{SLS6H5OI.js → HMAZQNBW.js} +1 -1
- package/dist/cdn/{XZ2BN6X5.js → HN72HWH3.js} +1 -1
- package/dist/cdn/{SS4VBGPX.js → HOFTC2ZE.js} +1 -1
- package/dist/cdn/{TTRVFZD5.js → HP6BF2MW.js} +1 -1
- package/dist/cdn/{P63WHRTI.js → I6V6IVZG.js} +1 -1
- package/dist/cdn/{CX2YLGWT.js → I7GS3EKH.js} +1 -1
- package/dist/cdn/{3UXDWFBT.js → I7ZQDJDX.js} +1 -1
- package/dist/cdn/{LOYPWUX2.js → IDIAH5EL.js} +1 -1
- package/dist/cdn/{Q6DP7NTZ.js → IGNKWZED.js} +1 -1
- package/dist/cdn/{L6IJF6MQ.js → IMZFMHRP.js} +1 -1
- package/dist/cdn/{6RF4VMSP.js → IO73RGZR.js} +1 -1
- package/dist/cdn/{RKJYAV27.js → IXB3GAL4.js} +1 -1
- package/dist/cdn/{NPIJLONQ.js → J4MSPT4V.js} +1 -1
- package/dist/cdn/{POT6OMKJ.js → JD562WMM.js} +1 -1
- package/dist/cdn/{PZQAHQMP.js → JKKOA3ZK.js} +1 -1
- package/dist/cdn/{TLNCTHYZ.js → JLEJQ2CG.js} +1 -1
- package/dist/cdn/{MJFHE7GG.js → JOGQFEA5.js} +1 -1
- package/dist/cdn/{ENC6727H.js → JOKDE6AY.js} +1 -1
- package/dist/cdn/{A3DPBGUE.js → JTK32JFE.js} +1 -1
- package/dist/cdn/{AEGRRGUN.js → JVK5SF3A.js} +1 -1
- package/dist/cdn/{VXKWVXTO.js → JX3LFG3P.js} +1 -1
- package/dist/cdn/{QYIXFX7A.js → K6DPMFXZ.js} +1 -1
- package/dist/cdn/{KDM7EERW.js → K777MMP6.js} +1 -1
- package/dist/cdn/{GZQXMBK6.js → KFDXN73R.js} +1 -1
- package/dist/cdn/{2XOVV4H5.js → KFNN3GQE.js} +1 -1
- package/dist/cdn/{X5P6K573.js → KMRD6WMN.js} +1 -1
- package/dist/cdn/KOBBTBFG.js +2 -0
- package/dist/cdn/{SVRPZSVP.js → KORK4WZ7.js} +1 -1
- package/dist/cdn/{67VFYB4A.js → LB76LDPE.js} +1 -1
- package/dist/cdn/{UOZG2EH7.js → LNYZN6UG.js} +1 -1
- package/dist/cdn/{VDVTHU72.js → LOBN6XL7.js} +1 -1
- package/dist/cdn/{LCWST64P.js → LPJ3FCSN.js} +1 -1
- package/dist/cdn/LQE4ZOCO.js +2 -0
- package/dist/cdn/{C5PN4GZA.js → LVG6IK3M.js} +1 -1
- package/dist/cdn/{5XKVLN3G.js → LY3Q7ALW.js} +1 -1
- package/dist/cdn/{OBXMCZJV.js → M2LATG4F.js} +1 -1
- package/dist/cdn/{VDTOHX2A.js → MBM4QDNU.js} +1 -1
- package/dist/cdn/MGZCTI2S.js +2 -0
- package/dist/cdn/{HPISDMLX.js → MHL2DRCX.js} +1 -1
- package/dist/cdn/{B6R4HVRC.js → MPTR6XUU.js} +1 -1
- package/dist/cdn/{PVLG3KIP.js → MRBNZE6V.js} +1 -1
- package/dist/cdn/MT6BTCFR.js +2 -0
- package/dist/cdn/{QDB73B6G.js → MTEH5BSL.js} +1 -1
- package/dist/cdn/N3WHO5AH.js +2 -0
- package/dist/cdn/{XCHUY5EB.js → NA7AGRNV.js} +1 -1
- package/dist/cdn/{YQMGSWPQ.js → NGHZR363.js} +1 -1
- package/dist/cdn/{4CT3FIKC.js → NK7LY2U6.js} +1 -1
- package/dist/cdn/NULCAX3T.js +2 -0
- package/dist/cdn/{NJKNN2OE.js → NV3DKNG5.js} +1 -1
- package/dist/cdn/{5GTE6AB7.js → NYIZIVHF.js} +1 -1
- package/dist/cdn/{3TDS6PS7.js → NZ5DI3XS.js} +1 -1
- package/dist/cdn/{6CWRJZ5M.js → O4U7FC7V.js} +1 -1
- package/dist/cdn/{J3UH7WPW.js → OCZ5FM6Y.js} +1 -1
- package/dist/cdn/{MZ4UAQRO.js → ODG3O637.js} +1 -1
- package/dist/cdn/{UMYF32YV.js → OE32VMHB.js} +1 -1
- package/dist/cdn/{HTJ5MQB3.js → OE4E2DJY.js} +1 -1
- package/dist/cdn/{XHPTQBX4.js → OE5H2TJY.js} +1 -1
- package/dist/cdn/{57GMYMVT.js → OF4RIQYG.js} +1 -1
- package/dist/cdn/{DSROAKFP.js → OH3OW6FT.js} +1 -1
- package/dist/cdn/{QGJBQDLI.js → OQA22N4T.js} +1 -1
- package/dist/cdn/{ZRMSPPJV.js → P7QBGWAB.js} +1 -1
- package/dist/cdn/PBFSAWUO.js +2 -0
- package/dist/cdn/PH6KFJNY.js +2 -0
- package/dist/cdn/{W6IFUQTQ.js → PLVJUW2N.js} +1 -1
- package/dist/cdn/{ONZ7UTQO.js → PNKNAFCB.js} +1 -1
- package/dist/cdn/{I6I44MIO.js → PQTX5YLB.js} +1 -1
- package/dist/cdn/{GRUOYZC4.js → Q3HN5EAB.js} +1 -1
- package/dist/cdn/{6VRMNFKK.js → Q7SJABWQ.js} +1 -1
- package/dist/cdn/{4CD4VQDJ.js → Q7WGEZPS.js} +1 -1
- package/dist/cdn/{3R72LNKT.js → QBEOOBJI.js} +1 -1
- package/dist/cdn/{MXGL6SJK.js → RAD5V5D4.js} +1 -1
- package/dist/cdn/{LEWWYNW5.js → RFIH3K75.js} +1 -1
- package/dist/cdn/{XQCUQFIM.js → RGRWFQHI.js} +1 -1
- package/dist/cdn/{STPGQ6FX.js → S3J3OYPA.js} +1 -1
- package/dist/cdn/{SKDMCH3N.js → SAWQ5RBG.js} +1 -1
- package/dist/cdn/{WRHME7L7.js → SE6ZPONW.js} +1 -1
- package/dist/cdn/SERGX3NQ.js +2 -0
- package/dist/cdn/{TJ42HR2K.js → SKHZNWOK.js} +1 -1
- package/dist/cdn/{C2PS2HSE.js → SQQA5NMR.js} +1 -1
- package/dist/cdn/{AXEVIUBZ.js → STUFH2WN.js} +1 -1
- package/dist/cdn/{HB7XTMBR.js → SXQKPD36.js} +1 -1
- package/dist/cdn/{77NK4UBY.js → T3F2I5LQ.js} +1 -1
- package/dist/cdn/{TYVSLPJY.js → TAC7C2NH.js} +1 -1
- package/dist/cdn/{Z4BTFRGB.js → TBLGJZIE.js} +1 -1
- package/dist/cdn/{2Q3TMV7S.js → TBSKBHHL.js} +1 -1
- package/dist/cdn/{RAGBAUVH.js → TCUXHE5C.js} +1 -1
- package/dist/cdn/{C5ZQHF3O.js → THB7VBIU.js} +1 -1
- package/dist/cdn/{6WDEDELX.js → TPX3OJ3S.js} +1 -1
- package/dist/cdn/{SJSDTPLL.js → TQ5GSNFI.js} +1 -1
- package/dist/cdn/{VUGTZY3H.js → TVNK45VP.js} +1 -1
- package/dist/cdn/{6UXC3WGF.js → UHGTBFYC.js} +1 -1
- package/dist/cdn/{VLZVA6PI.js → ULRRIL6W.js} +1 -1
- package/dist/cdn/{SONHGUUV.js → UMXUR3Y6.js} +1 -1
- package/dist/cdn/{E3ILZB5S.js → UNPUCYYB.js} +1 -1
- package/dist/cdn/{P7G6JCDO.js → UNUE5PFY.js} +1 -1
- package/dist/cdn/{2AVCJVZU.js → UQJNSDA5.js} +1 -1
- package/dist/cdn/{4X5447LA.js → USSBJUH7.js} +1 -1
- package/dist/cdn/{6NRNLMJK.js → UVHSYOZO.js} +1 -1
- package/dist/cdn/{QX3ZXA2B.js → UVNNXZHK.js} +1 -1
- package/dist/cdn/{62LF4QQF.js → UY2N6L5W.js} +1 -1
- package/dist/cdn/{2Y5HBYMR.js → VBD2JBTM.js} +1 -1
- package/dist/cdn/{BV3Q2Y7F.js → VCJPPBAJ.js} +1 -1
- package/dist/cdn/{S25QU4HS.js → VHIYGLEF.js} +1 -1
- package/dist/cdn/{QMPCO7DL.js → VKQHWAV6.js} +1 -1
- package/dist/cdn/{6BTDVP6O.js → VNCYGFVL.js} +1 -1
- package/dist/cdn/{2D6JTL4E.js → VNFDMKC4.js} +1 -1
- package/dist/cdn/{XKRMD24I.js → VTDRCYT5.js} +1 -1
- package/dist/cdn/{5SK3B4SE.js → W32RZGCD.js} +1 -1
- package/dist/cdn/{7DF6HYC7.js → W7XP44Z4.js} +1 -1
- package/dist/cdn/{MBMUUW3M.js → WGWEIAKM.js} +1 -1
- package/dist/cdn/{CACGKNCB.js → WQG2KCVZ.js} +1 -1
- package/dist/cdn/{WNLMIARH.js → WXDEBLXC.js} +1 -1
- package/dist/cdn/{XJZJWNYP.js → X422A3RM.js} +1 -1
- package/dist/cdn/{27IFADBQ.js → XCHLU7ZD.js} +1 -1
- package/dist/cdn/{3CORLJ7S.js → XPEGBUNJ.js} +1 -1
- package/dist/cdn/XSCEZHHS.js +2 -0
- package/dist/cdn/{SBBSNRPS.js → XTXNTKTM.js} +1 -1
- package/dist/cdn/{VZPE472E.js → XU42PWPW.js} +1 -1
- package/dist/cdn/XUFI4LK4.js +2 -0
- package/dist/cdn/{WBDTFCID.js → XXRWSBZZ.js} +1 -1
- package/dist/cdn/{ARFMGLVC.js → XYRXOJWA.js} +1 -1
- package/dist/cdn/{LW6SRLBI.js → XZ32GWWF.js} +1 -1
- package/dist/cdn/{REOCH4MZ.js → XZL4TGIF.js} +1 -1
- package/dist/cdn/{7MZT3XKM.js → Y23RNEWZ.js} +1 -1
- package/dist/cdn/{DBLLBQTY.js → YDDTPUAV.js} +1 -1
- package/dist/cdn/{454H3MLO.js → YGWKKC4F.js} +1 -1
- package/dist/cdn/{CXDU7XEL.js → YIVVKAWZ.js} +1 -1
- package/dist/cdn/{XWWXBWU2.js → YOLISV6H.js} +1 -1
- package/dist/cdn/{GQWT3W5Y.js → YQRFGWEX.js} +1 -1
- package/dist/cdn/{BD2PSX7A.js → YTFEKO3O.js} +1 -1
- package/dist/cdn/{F4LUPXCQ.js → Z4FIADPO.js} +1 -1
- package/dist/cdn/{MOBEEKF6.js → Z5RSMH5T.js} +1 -1
- package/dist/cdn/{KQ4ENZ4D.js → Z6S36L4E.js} +1 -1
- package/dist/cdn/{WNJOIQDJ.js → ZCC4OFBO.js} +1 -1
- package/dist/cdn/{Y2YRMCTX.js → ZQV4HSAF.js} +1 -1
- package/dist/cdn/{JIJFJTAC.js → ZR2DRKCC.js} +1 -1
- package/dist/cdn/{HRXFDZ6M.js → ZRWEOQPU.js} +1 -1
- package/dist/cdn/{W376UQL5.js → ZVKSU4TV.js} +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-building-explorer/customElement.d.ts +2 -0
- package/dist/components/arcgis-building-explorer/customElement.js +35 -33
- package/dist/components/arcgis-building-level-picker/customElement.js +25 -25
- package/dist/components/arcgis-building-phase-picker/customElement.js +7 -7
- package/dist/components/arcgis-editor/customElement.js +1 -1
- package/dist/components/arcgis-expand/customElement.js +31 -31
- package/dist/components/arcgis-exploratory-analysis/customElement.d.ts +1 -0
- package/dist/components/arcgis-legend-card-element/customElement.js +4 -4
- package/dist/components/arcgis-legend-card-view/customElement.js +16 -16
- package/dist/components/arcgis-locate/customElement.js +0 -1
- package/dist/components/arcgis-sketch/customElement.d.ts +241 -43
- package/dist/components/arcgis-sketch/customElement.js +1047 -56
- package/dist/components/arcgis-sketch/index.js +10 -0
- package/dist/components/arcgis-sketch/support.d.ts +17 -0
- package/dist/components/arcgis-sketch-tooltip-controls/customElement.d.ts +2 -2
- package/dist/components/arcgis-sketch-tooltip-controls/customElement.js +28 -17
- package/dist/components/arcgis-snapping-controls/customElement.d.ts +7 -0
- package/dist/components/arcgis-snapping-controls/customElement.js +19 -13
- package/dist/components/arcgis-time-bar/customElement.js +14 -14
- package/dist/components/arcgis-time-bar-extent/customElement.js +6 -6
- package/dist/components/arcgis-time-bar-settings/customElement.js +1 -1
- package/dist/components/arcgis-time-bar-slider/customElement.js +20 -20
- 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 +2 -2
- package/dist/types/lumina.d.ts +2 -2
- package/dist/types/preact.d.ts +2 -2
- package/dist/types/react.d.ts +2 -2
- package/dist/types/stencil.d.ts +2 -2
- package/package.json +5 -5
- package/dist/cdn/3IICULHW.js +0 -2
- package/dist/cdn/5CHDLE4G.js +0 -2
- package/dist/cdn/5HQJU5UG.js +0 -2
- package/dist/cdn/6AECNZDA.js +0 -2
- package/dist/cdn/7ABJ6QL6.js +0 -2
- package/dist/cdn/BUHN3QFA.js +0 -2
- package/dist/cdn/CEBSBYFV.js +0 -2
- package/dist/cdn/CKL6VB55.js +0 -2
- package/dist/cdn/DB2EV5FY.js +0 -2
- package/dist/cdn/DQ7NWFOE.js +0 -5
- package/dist/cdn/EEAGBN2R.js +0 -2
- package/dist/cdn/H6IR3FJ4.js +0 -2
- package/dist/cdn/IP6RSX4Q.js +0 -2
- package/dist/cdn/JGFSRXK5.js +0 -2
- package/dist/cdn/LCCDNWZM.js +0 -2
- package/dist/cdn/MCZU4MBV.js +0 -2
- package/dist/cdn/N2ZZK6RT.js +0 -2
- package/dist/cdn/N66SJQA3.js +0 -2
- package/dist/cdn/OSA4WZT7.js +0 -2
- package/dist/cdn/PQINPHI6.js +0 -2
- package/dist/cdn/QNO6SSDQ.js +0 -2
- package/dist/cdn/RRN4JGY4.js +0 -2
- package/dist/cdn/SO3OASNI.js +0 -2
- package/dist/cdn/SXYPCCBR.js +0 -2
- package/dist/cdn/UGCRE4EW.js +0 -2
- package/dist/cdn/VXNJ5B32.js +0 -2
- package/dist/cdn/ZFFXNO6M.js +0 -2
- package/dist/cdn/ZFTK5U45.js +0 -2
|
@@ -1,97 +1,1088 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
import { c as F } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as H, noChange as R, html as m } from "lit";
|
|
4
|
+
import { substitute as q } from "@arcgis/core/intl.js";
|
|
5
|
+
import { usePropertyChange as z, useWatchAttributes as N } from "@arcgis/lumina/controllers";
|
|
6
|
+
import { reEmitEvent as f } from "@arcgis/lumina/controllers/accessor";
|
|
7
|
+
import j from "@arcgis/core/layers/GraphicsLayer.js";
|
|
8
|
+
import J from "@arcgis/core/symbols/TextSymbol.js";
|
|
9
|
+
import { LitElement as Q, createEvent as X, nothing as x } from "@arcgis/lumina";
|
|
10
|
+
import { watch as v, on as Y, whenOnce as Z } from "@arcgis/core/core/reactiveUtils.js";
|
|
11
|
+
import { u as ee } from "../../chunks/useT9n.js";
|
|
12
|
+
import { m as te } from "../../chunks/useViewModel.js";
|
|
13
|
+
import { V as T } from "../../chunks/visible-element.js";
|
|
14
|
+
import { createRef as _, ref as E } from "lit/directives/ref.js";
|
|
15
|
+
import ie from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
|
|
16
|
+
import { S as oe } from "../../chunks/resources.js";
|
|
17
|
+
import { getOrCreateMapValue as B, createReactiveMap as se } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
18
|
+
import { LayoutPriorities as y } from "@arcgis/common-components";
|
|
19
|
+
import ne from "@arcgis/core/core/Accessor.js";
|
|
20
|
+
import { property as c, subclass as le } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
21
|
+
import { ignoreAbortErrors as C } from "@arcgis/core/core/promiseUtils.js";
|
|
22
|
+
import ae from "@arcgis/core/widgets/Sketch/VisibleElements.js";
|
|
23
|
+
import re from "@arcgis/core/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js";
|
|
24
|
+
import { m as ce } from "../../chunks/handle.js";
|
|
25
|
+
import { AsyncDirective as de } from "lit/async-directive.js";
|
|
26
|
+
import { directive as he, PartType as pe } from "lit/directive.js";
|
|
27
|
+
import { r as ue } from "../../chunks/async-utils.js";
|
|
28
|
+
const ge = [
|
|
29
|
+
"bottom-end",
|
|
30
|
+
"bottom-start",
|
|
31
|
+
"bottom-left",
|
|
32
|
+
"bottom-right",
|
|
33
|
+
"top-end",
|
|
34
|
+
"top-start",
|
|
35
|
+
"top-left",
|
|
36
|
+
"top-right"
|
|
37
|
+
], me = new Set(ge);
|
|
38
|
+
function I(i, e) {
|
|
39
|
+
let t = e;
|
|
40
|
+
for (const o of i.split(".")) {
|
|
41
|
+
if (typeof t != "object" || t === null)
|
|
42
|
+
return;
|
|
43
|
+
t = Reflect.get(t, o);
|
|
44
|
+
}
|
|
45
|
+
return typeof t == "string" ? t : void 0;
|
|
46
|
+
}
|
|
47
|
+
const ve = H`.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}`, fe = {
|
|
48
|
+
point: "pin",
|
|
49
|
+
polyline: "line",
|
|
50
|
+
polygon: "polygon",
|
|
51
|
+
rectangle: "rectangle",
|
|
52
|
+
circle: "circle",
|
|
53
|
+
multipoint: "pins",
|
|
54
|
+
mesh: "i3d-building",
|
|
55
|
+
freehandPolygon: "freehand-area",
|
|
56
|
+
freehandPolyline: "freehand",
|
|
57
|
+
text: "text"
|
|
58
|
+
}, ye = {
|
|
59
|
+
selectionTools: {
|
|
60
|
+
defaultPriority: y.Default,
|
|
61
|
+
groupKind: "split-button",
|
|
62
|
+
overflowLabel: "selection"
|
|
63
|
+
},
|
|
64
|
+
selectionSet: {
|
|
65
|
+
defaultPriority: y.High,
|
|
66
|
+
groupKind: "actions"
|
|
67
|
+
},
|
|
68
|
+
createTools: {
|
|
69
|
+
defaultPriority: y.High,
|
|
70
|
+
groupKind: "more-button",
|
|
71
|
+
overflowLabel: "drawing"
|
|
72
|
+
},
|
|
73
|
+
undoRedo: {
|
|
74
|
+
defaultPriority: y.Medium,
|
|
75
|
+
groupKind: "split-button",
|
|
76
|
+
overflowLabel: "action"
|
|
77
|
+
},
|
|
78
|
+
settings: {
|
|
79
|
+
defaultPriority: y.Max,
|
|
80
|
+
groupKind: "more-button",
|
|
81
|
+
overflowLabel: "action"
|
|
82
|
+
},
|
|
83
|
+
geometrySimplification: {
|
|
84
|
+
defaultPriority: y.Default,
|
|
85
|
+
groupKind: "actions"
|
|
86
|
+
}
|
|
87
|
+
}, Ce = 500, be = 1e3;
|
|
88
|
+
function Te({
|
|
89
|
+
getLoading: i,
|
|
90
|
+
setEffectiveLoading: e
|
|
91
|
+
}) {
|
|
92
|
+
let t, o;
|
|
93
|
+
function s() {
|
|
94
|
+
clearTimeout(o), o = void 0;
|
|
95
|
+
}
|
|
96
|
+
function r(n) {
|
|
97
|
+
t = n ? Date.now() : void 0, e(n);
|
|
98
|
+
}
|
|
99
|
+
function h(n, g) {
|
|
100
|
+
if (n <= 0) {
|
|
101
|
+
r(g);
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
o = setTimeout(() => {
|
|
105
|
+
s(), r(g);
|
|
106
|
+
}, n);
|
|
107
|
+
}
|
|
108
|
+
r(i());
|
|
109
|
+
const p = v(
|
|
110
|
+
i,
|
|
111
|
+
(n) => {
|
|
112
|
+
s(), n ? h(Ce, !0) : h(t == null ? 0 : be - (Date.now() - t), !1);
|
|
113
|
+
},
|
|
114
|
+
{ sync: !0 }
|
|
115
|
+
);
|
|
116
|
+
return ce(() => {
|
|
117
|
+
p.remove(), s();
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
var we = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, a = (i, e, t, o) => {
|
|
121
|
+
for (var s = o > 1 ? void 0 : o ? Se(e, t) : e, r = i.length - 1, h; r >= 0; r--)
|
|
122
|
+
(h = i[r]) && (s = (o ? h(e, t, s) : h(s)) || s);
|
|
123
|
+
return o && s && we(e, t, s), s;
|
|
124
|
+
};
|
|
125
|
+
let l = class extends ne {
|
|
126
|
+
//#region Lifecycle
|
|
127
|
+
constructor(i) {
|
|
128
|
+
super(i), this._effectiveRenderStateCache = /* @__PURE__ */ new Map(), this._effectiveGeometrySimplificationInProgress = !1, this.visibleElements = new ae(), this.settingsPopoverOpen = !1, this.availableCreateTools = [
|
|
129
|
+
"point",
|
|
130
|
+
"polyline",
|
|
131
|
+
"freehandPolyline",
|
|
132
|
+
"polygon",
|
|
133
|
+
"freehandPolygon",
|
|
134
|
+
"rectangle",
|
|
135
|
+
"circle"
|
|
136
|
+
];
|
|
137
|
+
}
|
|
138
|
+
initialize() {
|
|
139
|
+
this.selectionViewModel ??= new re({ persistSelection: !1 }), this.addHandles([
|
|
140
|
+
v(
|
|
141
|
+
() => this.sketchViewModel,
|
|
142
|
+
(i, e) => {
|
|
143
|
+
i !== e && this._effectiveRenderStateCache.clear();
|
|
144
|
+
},
|
|
145
|
+
{ sync: !0 }
|
|
146
|
+
),
|
|
147
|
+
Te({
|
|
148
|
+
getLoading: () => this.sketchViewModel?.geometrySimplificationInProgress ?? !1,
|
|
149
|
+
setEffectiveLoading: (i) => {
|
|
150
|
+
this._effectiveGeometrySimplificationInProgress = i;
|
|
151
|
+
}
|
|
152
|
+
}),
|
|
153
|
+
v(
|
|
154
|
+
() => this.view,
|
|
155
|
+
(i) => {
|
|
156
|
+
this.selectionViewModel.view = i;
|
|
157
|
+
},
|
|
158
|
+
{ initial: !0, sync: !0 }
|
|
159
|
+
),
|
|
160
|
+
// Ensure the SelectionViewModel always has the latest layer
|
|
161
|
+
v(
|
|
162
|
+
() => this.sketchViewModel?.layer,
|
|
163
|
+
(i) => this.selectionViewModel.sources = i ? [i] : [],
|
|
164
|
+
{ initial: !0, sync: !0 }
|
|
165
|
+
),
|
|
166
|
+
this.selectionViewModel.on("complete", ({ selection: i }) => {
|
|
167
|
+
i.length && this.update(i);
|
|
168
|
+
}),
|
|
169
|
+
// Cancel active tool when selection activates
|
|
170
|
+
v(
|
|
171
|
+
() => this.selectionViewModel.activeOperation,
|
|
172
|
+
(i) => {
|
|
173
|
+
i && (this.sketchViewModel?.cancel(), this._activeCustomToolOptions = void 0);
|
|
174
|
+
},
|
|
175
|
+
{ sync: !0 }
|
|
176
|
+
),
|
|
177
|
+
Y(
|
|
178
|
+
() => this.sketchViewModel,
|
|
179
|
+
"create",
|
|
180
|
+
(i) => {
|
|
181
|
+
i.state === "complete" && this.sketchViewModel?.creationMode !== "continuous" && (this._activeCustomToolOptions = void 0);
|
|
182
|
+
}
|
|
183
|
+
),
|
|
184
|
+
v(
|
|
185
|
+
() => this.visibleElements.settingsMenu,
|
|
186
|
+
(i) => {
|
|
187
|
+
i || (this.settingsPopoverOpen = !1);
|
|
188
|
+
},
|
|
189
|
+
{ sync: !0 }
|
|
190
|
+
)
|
|
191
|
+
]);
|
|
192
|
+
}
|
|
193
|
+
destroy() {
|
|
194
|
+
this._pendingCommandAbortController?.abort(), this.selectionViewModel.destroy(), this.sketchViewModel = void 0;
|
|
195
|
+
}
|
|
196
|
+
get _isEffectiveRenderStateFrozen() {
|
|
197
|
+
const { sketchViewModel: i } = this;
|
|
198
|
+
return !!(i?.toolTransitionInProgress || i?.geometrySimplificationInProgress);
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Updates and returns the current values of a property, if rendering can proceed as normal,
|
|
202
|
+
* otherwise retrieves the last-seen value from a cache; this is key to avoiding render
|
|
203
|
+
* 'flickers' during transitions.
|
|
204
|
+
*/
|
|
205
|
+
_getEffectiveValue(i, e) {
|
|
206
|
+
if (!this._isEffectiveRenderStateFrozen || !this._effectiveRenderStateCache.has(i)) {
|
|
207
|
+
const t = e();
|
|
208
|
+
return this._effectiveRenderStateCache.set(i, t), t;
|
|
209
|
+
}
|
|
210
|
+
return this._effectiveRenderStateCache.get(i);
|
|
211
|
+
}
|
|
212
|
+
get _state() {
|
|
213
|
+
return this.sketchViewModel?.state ?? "disabled";
|
|
214
|
+
}
|
|
215
|
+
get test() {
|
|
216
|
+
return {
|
|
217
|
+
activeCustomToolOptions: this._activeCustomToolOptions,
|
|
218
|
+
activeSelectionTool: this._activeSelectionTool,
|
|
219
|
+
selectionViewModel: this.selectionViewModel
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
get _activeSelectionTool() {
|
|
223
|
+
switch (this.selectionViewModel.activeOperation?.toolName) {
|
|
224
|
+
case "lasso":
|
|
225
|
+
return "lasso-selection";
|
|
226
|
+
case "rectangle":
|
|
227
|
+
return "rectangle-selection";
|
|
228
|
+
default:
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
get _activePluginUniqueIds() {
|
|
233
|
+
const i = this.sketchViewModel?.activePluginConfigurations.filter((e) => !e.hidden).map((e) => e.uniqueId);
|
|
234
|
+
return new Set(i ?? []);
|
|
235
|
+
}
|
|
236
|
+
get _createToolActions() {
|
|
237
|
+
const { sketchViewModel: i } = this;
|
|
238
|
+
if (!i)
|
|
239
|
+
return [];
|
|
240
|
+
const e = i.effectiveAvailablePlugins, t = this.state === "disabled", o = this.visibleElements.createTools, s = this.activeTool, r = this._activeCustomToolOptions, h = r || !i.firstPluginWithSwappableLeaf ? this._customToolOptions : [], p = i.rootPlugins, n = h?.map((d) => ({
|
|
241
|
+
active: d === r,
|
|
242
|
+
disabled: t,
|
|
243
|
+
icon: d.icon,
|
|
244
|
+
labelKey: d.label,
|
|
245
|
+
onClick: d === r ? () => this._cancelActiveOperation() : () => this._activateLegacyDrawTool(d.toolName, d.createOptions, d)
|
|
246
|
+
})) ?? [];
|
|
247
|
+
if (r && p)
|
|
248
|
+
return [...this._pluginsToActions(p), ...n];
|
|
249
|
+
if (e?.length && this.view?.type !== "3d")
|
|
250
|
+
return [...this._pluginsToActions(e), ...n];
|
|
251
|
+
const g = this.view?.type === "3d";
|
|
252
|
+
return [
|
|
253
|
+
...this.availableCreateTools?.filter((d) => g && d === "multipoint" ? !1 : d === "mesh" ? !0 : o[d])?.map((d) => ({
|
|
254
|
+
active: d === s,
|
|
255
|
+
disabled: t,
|
|
256
|
+
icon: fe[d],
|
|
257
|
+
labelKey: `draw.${d}`,
|
|
258
|
+
onClick: d === s ? () => this._cancelActiveOperation() : () => this._activateLegacyDrawTool(d)
|
|
259
|
+
})) ?? [],
|
|
260
|
+
...n
|
|
261
|
+
];
|
|
262
|
+
}
|
|
263
|
+
get _shouldShowBackButton() {
|
|
264
|
+
const i = this.sketchViewModel?.firstPluginWithSwappableLeaf, e = this.sketchViewModel?.rootPlugins, t = this._activeCustomToolOptions;
|
|
265
|
+
return !!(this.sketchViewModel?.multiplePluginsActive && i && e && !(e.length < 2 && e.includes(i) && !this.visibleElements.singlePluginBackButton) && !t);
|
|
266
|
+
}
|
|
267
|
+
get _selectionToolActions() {
|
|
268
|
+
return this._shouldShowBackButton ? [
|
|
269
|
+
{
|
|
270
|
+
active: !1,
|
|
271
|
+
disabled: this.state === "disabled",
|
|
272
|
+
icon: "chevron-left",
|
|
273
|
+
iconFlipRTL: !0,
|
|
274
|
+
labelKey: "back",
|
|
275
|
+
onClick: () => this._cancelActiveOperation()
|
|
276
|
+
}
|
|
277
|
+
] : this._selectionCommands;
|
|
278
|
+
}
|
|
279
|
+
get _settingsActions() {
|
|
280
|
+
const i = this._customActions?.get("settings-before"), e = this._customActions?.get("settings-after"), t = this.visibleElements.settingsMenu, o = [];
|
|
281
|
+
return !i?.length && !e?.length && !t || (i && o.push(...this._customActionsToSketchActions(i)), t && o.push({
|
|
282
|
+
icon: "gear",
|
|
283
|
+
active: this.settingsPopoverOpen,
|
|
284
|
+
disabled: this.state === "disabled",
|
|
285
|
+
labelKey: "settings.heading",
|
|
286
|
+
tooltipKey: "settings.heading",
|
|
287
|
+
refKey: "settings",
|
|
288
|
+
onClick: () => this.toggleSettingsPopover()
|
|
289
|
+
}), e && o.push(...this._customActionsToSketchActions(e))), o;
|
|
290
|
+
}
|
|
291
|
+
get _activeTool() {
|
|
292
|
+
const i = this.selectionViewModel.activeOperation;
|
|
293
|
+
if (i)
|
|
294
|
+
switch (i.toolName) {
|
|
295
|
+
case "lasso":
|
|
296
|
+
return "lasso-selection";
|
|
297
|
+
case "rectangle":
|
|
298
|
+
return "rectangle-selection";
|
|
299
|
+
case "default":
|
|
300
|
+
return "custom-selection";
|
|
301
|
+
}
|
|
302
|
+
if (!this.sketchViewModel)
|
|
303
|
+
return;
|
|
304
|
+
const { availableCreateTools: e } = this, { activeTool: t, activeCreateToolDrawMode: o } = this.sketchViewModel;
|
|
305
|
+
return t === "polygon" && o === "freehand" && e?.includes("freehandPolygon") ? "freehandPolygon" : t === "polyline" && o === "freehand" && e?.includes("freehandPolyline") ? "freehandPolyline" : t ?? void 0;
|
|
306
|
+
}
|
|
307
|
+
get _selectionCommands() {
|
|
308
|
+
const { state: i, visibleElements: e, _activeSelectionTool: t, _customActions: o } = this, s = this.state === "disabled", r = [];
|
|
309
|
+
this.sketchViewModel?.updateOnGraphicClick !== !1 && r.push({
|
|
310
|
+
active: i === "ready" && this._activeSelectionTool == null,
|
|
311
|
+
disabled: s,
|
|
312
|
+
icon: "cursor",
|
|
313
|
+
labelKey: "selectFeature",
|
|
314
|
+
onClick: () => this._activateDefaultSelectionTool()
|
|
315
|
+
});
|
|
316
|
+
const h = e.selectionTools;
|
|
317
|
+
h["rectangle-selection"] && r.push({
|
|
318
|
+
active: t === "rectangle-selection",
|
|
319
|
+
disabled: s,
|
|
320
|
+
icon: "cursor-marquee",
|
|
321
|
+
labelKey: "rectangleSelection",
|
|
322
|
+
onClick: () => this._activateSelectionTool("rectangle-selection")
|
|
323
|
+
}), h["lasso-selection"] && r.push({
|
|
324
|
+
active: t === "lasso-selection",
|
|
325
|
+
disabled: s,
|
|
326
|
+
icon: "lasso-select",
|
|
327
|
+
labelKey: "lassoSelection",
|
|
328
|
+
onClick: () => this._activateSelectionTool("lasso-selection")
|
|
329
|
+
});
|
|
330
|
+
const p = o?.get("selection-toolbar");
|
|
331
|
+
return p && r.push(...this._customActionsToSketchActions(p)), r;
|
|
332
|
+
}
|
|
333
|
+
get _selectionSetActions() {
|
|
334
|
+
const i = this.sketchViewModel?.updateGraphics.length ?? 0;
|
|
335
|
+
if (!i)
|
|
336
|
+
return [];
|
|
337
|
+
const e = this.state === "disabled", t = [], o = this._customActions?.get("before-selection-set"), s = this._customActions?.get("after-selection-set");
|
|
338
|
+
return this.visibleElements.selectionCountLabel && t.push({
|
|
339
|
+
active: !1,
|
|
340
|
+
appearance: "outline",
|
|
341
|
+
disabled: e,
|
|
342
|
+
icon: "selection-x",
|
|
343
|
+
kind: "brand",
|
|
344
|
+
labelKey: "deselectCount",
|
|
345
|
+
labelParameters: { count: i },
|
|
346
|
+
textEnabled: !0,
|
|
347
|
+
renderAsAction: !0,
|
|
348
|
+
onClick: () => this._cancelSketchOperation()
|
|
349
|
+
}), o && t.push(...this._customActionsToSketchActions(o)), this.visibleElements.duplicateButton && t.push({
|
|
350
|
+
active: !1,
|
|
351
|
+
disabled: e,
|
|
352
|
+
icon: "copy",
|
|
353
|
+
renderAsAction: !0,
|
|
354
|
+
labelKey: i > 1 ? "duplicateFeatures" : "duplicateFeature",
|
|
355
|
+
onClick: () => this._duplicate()
|
|
356
|
+
}), this.visibleElements.deleteButton && t.push({
|
|
357
|
+
active: !1,
|
|
358
|
+
disabled: e,
|
|
359
|
+
icon: "trash",
|
|
360
|
+
kind: "danger",
|
|
361
|
+
renderAsAction: !0,
|
|
362
|
+
labelKey: i > 1 ? "deleteFeatures" : "deleteFeature",
|
|
363
|
+
onClick: () => this._delete()
|
|
364
|
+
}), s && t.push(...this._customActionsToSketchActions(s)), t;
|
|
365
|
+
}
|
|
366
|
+
get _undoRedoActions() {
|
|
367
|
+
return this.visibleElements.undoRedoMenu ? [
|
|
368
|
+
{
|
|
369
|
+
active: !1,
|
|
370
|
+
disabled: this.state === "disabled" || !this.sketchViewModel?.canUndo(),
|
|
371
|
+
icon: "undo",
|
|
372
|
+
labelKey: "undo",
|
|
373
|
+
iconFlipRTL: !0,
|
|
374
|
+
onClick: () => this._undo()
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
active: !1,
|
|
378
|
+
disabled: this.state === "disabled" || !this.sketchViewModel?.canRedo(),
|
|
379
|
+
icon: "redo",
|
|
380
|
+
labelKey: "redo",
|
|
381
|
+
iconFlipRTL: !0,
|
|
382
|
+
onClick: () => this._redo()
|
|
383
|
+
}
|
|
384
|
+
] : [];
|
|
385
|
+
}
|
|
386
|
+
get state() {
|
|
387
|
+
return this._getEffectiveValue("state", () => this._state);
|
|
388
|
+
}
|
|
389
|
+
get activeTool() {
|
|
390
|
+
return this._getEffectiveValue("activeTool", () => this._activeTool);
|
|
391
|
+
}
|
|
392
|
+
get activePluginIds() {
|
|
393
|
+
return this._getEffectiveValue("activePluginId", () => this._activePluginUniqueIds);
|
|
394
|
+
}
|
|
395
|
+
get groupedActions() {
|
|
396
|
+
const i = this._getEffectiveValue("availableCommandGroups", () => [
|
|
397
|
+
["selectionTools", this._selectionToolActions],
|
|
398
|
+
["createTools", this._createToolActions],
|
|
399
|
+
["undoRedo", this._undoRedoActions],
|
|
400
|
+
["settings", this._settingsActions],
|
|
401
|
+
["selectionSet", this._selectionSetActions]
|
|
402
|
+
].map(([o, s]) => ({
|
|
403
|
+
name: o,
|
|
404
|
+
commands: s,
|
|
405
|
+
visible: s.length > 0
|
|
406
|
+
}))), e = this._effectiveGeometrySimplificationInProgress ? i.map((t) => ({
|
|
407
|
+
...t,
|
|
408
|
+
commands: t.commands.map((o) => ({ ...o, disabled: !0 }))
|
|
409
|
+
})) : i;
|
|
410
|
+
return !this.visibleElements.geometrySimplificationActivityIndicator || !this._effectiveGeometrySimplificationInProgress ? e : [
|
|
411
|
+
...e,
|
|
412
|
+
{
|
|
413
|
+
name: "geometrySimplification",
|
|
414
|
+
commands: [
|
|
415
|
+
{
|
|
416
|
+
active: !1,
|
|
417
|
+
appearance: "transparent",
|
|
418
|
+
disabled: !0,
|
|
419
|
+
kind: "warning",
|
|
420
|
+
labelKey: "processing",
|
|
421
|
+
loading: !0,
|
|
422
|
+
onClick: () => {
|
|
423
|
+
},
|
|
424
|
+
renderAsAction: !0
|
|
425
|
+
}
|
|
426
|
+
],
|
|
427
|
+
visible: !0
|
|
428
|
+
}
|
|
429
|
+
];
|
|
430
|
+
}
|
|
431
|
+
// #endregion
|
|
432
|
+
// #region Public Methods
|
|
433
|
+
/**
|
|
434
|
+
* Initiates interactive creation of a sketch/drawing using the provided tool and options.
|
|
435
|
+
*
|
|
436
|
+
* @param tool Tool to use for the drawing
|
|
437
|
+
* @param createOptions Optional configuration of the drawling experience.
|
|
438
|
+
*/
|
|
439
|
+
async create(i, e) {
|
|
440
|
+
await this._executeWhenReady(async () => {
|
|
441
|
+
this.cancelAll();
|
|
442
|
+
const t = this.sketchViewModel;
|
|
443
|
+
t && await C(t.create(i, e));
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Guards against taking certain actions while geometry simplification is in progress.
|
|
448
|
+
*/
|
|
449
|
+
async _executeWhenReady(i) {
|
|
450
|
+
this._pendingCommandAbortController?.abort();
|
|
451
|
+
const e = new AbortController();
|
|
452
|
+
this._pendingCommandAbortController = e;
|
|
453
|
+
try {
|
|
454
|
+
await C(
|
|
455
|
+
(async () => {
|
|
456
|
+
this.sketchViewModel?.geometrySimplificationInProgress && await Z(() => !this.sketchViewModel?.geometrySimplificationInProgress, e.signal), e.signal.aborted || await i();
|
|
457
|
+
})()
|
|
458
|
+
);
|
|
459
|
+
} finally {
|
|
460
|
+
this._pendingCommandAbortController === e && (this._pendingCommandAbortController = void 0);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
toggleSettingsPopover() {
|
|
464
|
+
this.settingsPopoverOpen = !this.settingsPopoverOpen;
|
|
465
|
+
}
|
|
466
|
+
setCustomTools(i, e) {
|
|
467
|
+
this._customToolOptions = i ?? void 0;
|
|
468
|
+
const t = this._activeCustomToolOptions;
|
|
469
|
+
if (t) {
|
|
470
|
+
const o = this._customToolOptions?.find(
|
|
471
|
+
(s) => s.toolKey === t.toolKey
|
|
472
|
+
);
|
|
473
|
+
o ? this._activeCustomToolOptions = o : this.cancelAll();
|
|
474
|
+
}
|
|
475
|
+
if (e?.length) {
|
|
476
|
+
const o = /* @__PURE__ */ new Map();
|
|
477
|
+
for (const s of e)
|
|
478
|
+
B(o, s.position, () => []).push(s);
|
|
479
|
+
this._customActions = o;
|
|
480
|
+
} else
|
|
481
|
+
this._customActions = void 0;
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* Cancels all operations, restoring a neutral, ready state.
|
|
485
|
+
*/
|
|
486
|
+
cancelAll() {
|
|
487
|
+
this._pendingCommandAbortController?.abort(), this._cancelSupportingOperations(), this.sketchViewModel?.cancel();
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* @privateRemarks Deliberately maintains parity with Sketch by passing empty graphics array to SketchViewModel, which will log a console error.
|
|
491
|
+
*/
|
|
492
|
+
async update(i, e) {
|
|
493
|
+
await this._executeWhenReady(async () => {
|
|
494
|
+
const t = this.sketchViewModel;
|
|
495
|
+
t && await C(t.update(i, e));
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
// #endregion
|
|
499
|
+
// #region Private methods
|
|
500
|
+
/**
|
|
501
|
+
* SketchViewModel implements a default click-to-select experience. When this is active, the 'cursor' select
|
|
502
|
+
* action is active. This experience is active whenever there isn't some other active tool, so
|
|
503
|
+
* canceling the active tools is activating the default selection tool.
|
|
504
|
+
*/
|
|
505
|
+
_activateDefaultSelectionTool() {
|
|
506
|
+
this._executeWhenReady(() => {
|
|
507
|
+
this.cancelAll(), this.view?.focus();
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
_cancelActiveOperation() {
|
|
511
|
+
this._executeWhenReady(() => this.cancelAll());
|
|
512
|
+
}
|
|
513
|
+
_cancelSketchOperation() {
|
|
514
|
+
this._executeWhenReady(() => this.sketchViewModel?.cancel());
|
|
515
|
+
}
|
|
516
|
+
_cancelSupportingOperations() {
|
|
517
|
+
this.selectionViewModel.cancel(), this._activeCustomToolOptions = void 0;
|
|
518
|
+
}
|
|
519
|
+
_activatePlugin(i) {
|
|
520
|
+
this._executeWhenReady(() => {
|
|
521
|
+
const e = this._activeCustomToolOptions != null;
|
|
522
|
+
this._cancelSupportingOperations();
|
|
523
|
+
const t = this.sketchViewModel;
|
|
524
|
+
if (t) {
|
|
525
|
+
if (e) {
|
|
526
|
+
t.cancel(), C(t.create(i));
|
|
527
|
+
return;
|
|
528
|
+
}
|
|
529
|
+
t.firstPluginWithSwappableLeaf ? (t.replaceLeaf(i), this.view?.focus()) : C(t.create(i));
|
|
530
|
+
}
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
_activateLegacyDrawTool(i, e, t) {
|
|
534
|
+
this._executeWhenReady(() => {
|
|
535
|
+
this._cancelSupportingOperations();
|
|
536
|
+
const o = this.sketchViewModel;
|
|
537
|
+
o && (this._activeCustomToolOptions = t, C(o.create(i, e)));
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
_activateSelectionTool(i) {
|
|
541
|
+
this._executeWhenReady(() => {
|
|
542
|
+
if (this._activeSelectionTool === i) {
|
|
543
|
+
this.selectionViewModel.cancel();
|
|
544
|
+
return;
|
|
545
|
+
}
|
|
546
|
+
this.cancelAll();
|
|
547
|
+
const e = {
|
|
548
|
+
createTool: i === "lasso-selection" ? "polygon" : "rectangle",
|
|
549
|
+
...i === "lasso-selection" ? { mode: "freehand", toolName: "lasso" } : { toolName: "rectangle" },
|
|
550
|
+
type: "replace",
|
|
551
|
+
selectOnComplete: !0
|
|
552
|
+
};
|
|
553
|
+
this.selectionViewModel.activate(e) && this.view?.focus();
|
|
554
|
+
});
|
|
555
|
+
}
|
|
556
|
+
_delete() {
|
|
557
|
+
this._executeWhenReady(() => this.sketchViewModel?.delete());
|
|
558
|
+
}
|
|
559
|
+
_duplicate() {
|
|
560
|
+
this._executeWhenReady(() => {
|
|
561
|
+
this.sketchViewModel?.duplicate();
|
|
562
|
+
});
|
|
563
|
+
}
|
|
564
|
+
_executeCustomAction(i) {
|
|
565
|
+
this._executeWhenReady(() => i.onclick?.());
|
|
566
|
+
}
|
|
567
|
+
_redo() {
|
|
568
|
+
this._executeWhenReady(() => {
|
|
569
|
+
this.sketchViewModel?.redo();
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
_undo() {
|
|
573
|
+
this._executeWhenReady(() => {
|
|
574
|
+
this.sketchViewModel?.undo();
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
_customActionsToSketchActions(i) {
|
|
578
|
+
const e = this.state === "disabled";
|
|
579
|
+
return i.map((t) => ({
|
|
580
|
+
active: t.active ?? !1,
|
|
581
|
+
afterCreate: t.afterCreate,
|
|
582
|
+
afterRemoved: t.afterRemoved,
|
|
583
|
+
afterUpdate: t.afterUpdate,
|
|
584
|
+
disabled: e || (t.disabled ?? !1),
|
|
585
|
+
icon: t.icon,
|
|
586
|
+
iconFlipRTL: t.flipRTL,
|
|
587
|
+
id: t.id,
|
|
588
|
+
labelKey: t.text,
|
|
589
|
+
onClick: () => this._executeCustomAction(t)
|
|
590
|
+
}));
|
|
591
|
+
}
|
|
592
|
+
_pluginsToActions(i) {
|
|
593
|
+
const e = this.activePluginIds, t = this._activeCustomToolOptions, o = this.state === "disabled";
|
|
594
|
+
return i.map((s) => ({
|
|
595
|
+
active: (e?.has(s.uniqueId) ?? !1) && !t,
|
|
596
|
+
icon: s.icon,
|
|
597
|
+
disabled: o,
|
|
598
|
+
labelKey: `digitizers.${s.localizationKey}`,
|
|
599
|
+
onClick: () => this._activatePlugin([s])
|
|
600
|
+
}));
|
|
601
|
+
}
|
|
602
|
+
// #endregion
|
|
603
|
+
};
|
|
604
|
+
a([
|
|
605
|
+
c()
|
|
606
|
+
], l.prototype, "_isEffectiveRenderStateFrozen", 1);
|
|
607
|
+
a([
|
|
608
|
+
c()
|
|
609
|
+
], l.prototype, "_effectiveGeometrySimplificationInProgress", 2);
|
|
610
|
+
a([
|
|
611
|
+
c()
|
|
612
|
+
], l.prototype, "_state", 1);
|
|
613
|
+
a([
|
|
614
|
+
c()
|
|
615
|
+
], l.prototype, "_customToolOptions", 2);
|
|
616
|
+
a([
|
|
617
|
+
c()
|
|
618
|
+
], l.prototype, "_activeCustomToolOptions", 2);
|
|
619
|
+
a([
|
|
620
|
+
c()
|
|
621
|
+
], l.prototype, "_customActions", 2);
|
|
622
|
+
a([
|
|
623
|
+
c()
|
|
624
|
+
], l.prototype, "selectionViewModel", 2);
|
|
625
|
+
a([
|
|
626
|
+
c()
|
|
627
|
+
], l.prototype, "_activeSelectionTool", 1);
|
|
628
|
+
a([
|
|
629
|
+
c()
|
|
630
|
+
], l.prototype, "_activePluginUniqueIds", 1);
|
|
631
|
+
a([
|
|
632
|
+
c()
|
|
633
|
+
], l.prototype, "_createToolActions", 1);
|
|
634
|
+
a([
|
|
635
|
+
c()
|
|
636
|
+
], l.prototype, "_shouldShowBackButton", 1);
|
|
637
|
+
a([
|
|
638
|
+
c()
|
|
639
|
+
], l.prototype, "_selectionToolActions", 1);
|
|
640
|
+
a([
|
|
641
|
+
c()
|
|
642
|
+
], l.prototype, "_settingsActions", 1);
|
|
643
|
+
a([
|
|
644
|
+
c()
|
|
645
|
+
], l.prototype, "_activeTool", 1);
|
|
646
|
+
a([
|
|
647
|
+
c()
|
|
648
|
+
], l.prototype, "_selectionCommands", 1);
|
|
649
|
+
a([
|
|
650
|
+
c()
|
|
651
|
+
], l.prototype, "_selectionSetActions", 1);
|
|
652
|
+
a([
|
|
653
|
+
c()
|
|
654
|
+
], l.prototype, "_undoRedoActions", 1);
|
|
655
|
+
a([
|
|
656
|
+
c()
|
|
657
|
+
], l.prototype, "sketchViewModel", 2);
|
|
658
|
+
a([
|
|
659
|
+
c()
|
|
660
|
+
], l.prototype, "visibleElements", 2);
|
|
661
|
+
a([
|
|
662
|
+
c()
|
|
663
|
+
], l.prototype, "view", 2);
|
|
664
|
+
a([
|
|
665
|
+
c()
|
|
666
|
+
], l.prototype, "settingsPopoverOpen", 2);
|
|
667
|
+
a([
|
|
668
|
+
c()
|
|
669
|
+
], l.prototype, "availableCreateTools", 2);
|
|
670
|
+
a([
|
|
671
|
+
c()
|
|
672
|
+
], l.prototype, "state", 1);
|
|
673
|
+
a([
|
|
674
|
+
c()
|
|
675
|
+
], l.prototype, "activeTool", 1);
|
|
676
|
+
a([
|
|
677
|
+
c()
|
|
678
|
+
], l.prototype, "activePluginIds", 1);
|
|
679
|
+
a([
|
|
680
|
+
c()
|
|
681
|
+
], l.prototype, "groupedActions", 1);
|
|
682
|
+
l = a([
|
|
683
|
+
le("components.sketch.SketchComponentViewModel")
|
|
684
|
+
], l);
|
|
685
|
+
class _e extends de {
|
|
686
|
+
#t;
|
|
687
|
+
#e = !1;
|
|
688
|
+
#i;
|
|
689
|
+
constructor(e) {
|
|
690
|
+
if (super(e), e.type !== pe.ELEMENT)
|
|
691
|
+
throw new Error("nodeHooks() can only be used on elements");
|
|
692
|
+
}
|
|
693
|
+
render(e) {
|
|
694
|
+
return R;
|
|
695
|
+
}
|
|
696
|
+
update(e, [t]) {
|
|
697
|
+
const o = e.element;
|
|
698
|
+
if (!(o instanceof HTMLElement))
|
|
699
|
+
throw new TypeError("nodeHooks() can only be used on HTMLElements");
|
|
700
|
+
const s = this.#e ? t.afterUpdate : t.afterCreate;
|
|
701
|
+
return this.#t = o, this.#e = !0, this.#i = t, queueMicrotask(() => {
|
|
702
|
+
o.isConnected && s?.(o);
|
|
703
|
+
}), R;
|
|
704
|
+
}
|
|
705
|
+
disconnected() {
|
|
706
|
+
const e = this.#t, t = this.#i?.afterRemoved;
|
|
707
|
+
!e || !t || queueMicrotask(() => {
|
|
708
|
+
e.isConnected || ue(() => t(e), { timeout: 16 });
|
|
709
|
+
});
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
const D = he(_e), Ee = te((i) => new ie({
|
|
713
|
+
...i,
|
|
714
|
+
cancelUpdateOnClickAway: !0,
|
|
715
|
+
creationMode: "continuous",
|
|
716
|
+
textSymbol: new J({ text: "hello world" }),
|
|
717
|
+
useLegacyCreateTools: !1
|
|
718
|
+
}));
|
|
719
|
+
class Me extends Q {
|
|
14
720
|
constructor() {
|
|
15
|
-
super(), this
|
|
721
|
+
super(), this.#t = new l(), this.#o = _(), this.#s = _(), this._defaultGraphicsLayer = null, this._messages = ee(), this.test = {
|
|
722
|
+
componentViewModel: this.#t
|
|
723
|
+
}, this._groupLayoutPriorityOverrides = /* @__PURE__ */ new Map(), this._contextualToolLocation = "separate", this._refMap = se(), this.viewModel = Ee(this), this.view = this.viewModel.view, this.activeTool = this.#t.activeTool, 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.valueOptions = this.viewModel.valueOptions, this.useLegacyCreateTools = this.viewModel.useLegacyCreateTools, this.updateOnGraphicClickDisabled = this.viewModel.updateOnGraphicClick, this.updateGraphics = this.viewModel.updateGraphics, this.arcgisCreate = f(() => this.viewModel, "create"), this.arcgisDelete = f(() => this.viewModel, "delete"), this.arcgisDuplicate = f(() => this.viewModel, "duplicate"), this.arcgisPropertyChange = z()("activeTool", "geometrySimplificationInProgress", "state"), this.arcgisReady = X(), this.arcgisRedo = f(() => this.viewModel, "redo"), this.arcgisUndo = f(() => this.viewModel, "undo"), this.arcgisUpdate = f(() => this.viewModel, "update"), N(["slot"], () => {
|
|
724
|
+
this.requestUpdate();
|
|
725
|
+
}), this.manager.onLifecycle(() => [
|
|
726
|
+
v(() => this.el.view?.map, (e, t) => {
|
|
727
|
+
const o = this._defaultGraphicsLayer;
|
|
728
|
+
o && (t?.allLayers.includes(o) && t.remove(o), o && !e?.allLayers.includes(o) && e?.add(o));
|
|
729
|
+
}),
|
|
730
|
+
v(() => this.el.view, (e) => {
|
|
731
|
+
this.viewModel.view = e, this.#t.view = e ?? void 0;
|
|
732
|
+
}, { initial: !0 }),
|
|
733
|
+
v(() => this.viewModel, (e) => {
|
|
734
|
+
this.#t.sketchViewModel = e, this.viewModel.pluginManager.sketch = this;
|
|
735
|
+
}, { initial: !0 }),
|
|
736
|
+
v(() => this.#t.state, (e, t) => {
|
|
737
|
+
this.requestUpdate("state", t);
|
|
738
|
+
}, { initial: !0 })
|
|
739
|
+
]), this.manager.onDestroy(() => {
|
|
740
|
+
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();
|
|
741
|
+
});
|
|
16
742
|
}
|
|
17
743
|
static {
|
|
18
|
-
this.properties = { view: 0, activeTool:
|
|
744
|
+
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, valueOptions: 0, useLegacyCreateTools: 5, updateOnGraphicClickDisabled: 5, cancelUpdateOnClickAwayDisabled: 5, updateGraphics: 32 };
|
|
19
745
|
}
|
|
20
746
|
static {
|
|
21
|
-
this.styles =
|
|
747
|
+
this.styles = ve;
|
|
748
|
+
}
|
|
749
|
+
#t;
|
|
750
|
+
get #e() {
|
|
751
|
+
return this.#t.visibleElements;
|
|
752
|
+
}
|
|
753
|
+
#i;
|
|
754
|
+
#o;
|
|
755
|
+
#s;
|
|
756
|
+
get visibleElements() {
|
|
757
|
+
return this.#t.visibleElements;
|
|
758
|
+
}
|
|
759
|
+
set visibleElements(e) {
|
|
760
|
+
this.#t.visibleElements = e;
|
|
761
|
+
}
|
|
762
|
+
get availableCreateTools() {
|
|
763
|
+
return this.#t.availableCreateTools;
|
|
764
|
+
}
|
|
765
|
+
set availableCreateTools(e) {
|
|
766
|
+
this.#t.availableCreateTools = e;
|
|
767
|
+
}
|
|
768
|
+
get hideCreateToolsCircle() {
|
|
769
|
+
return !this.#e.createTools.circle;
|
|
770
|
+
}
|
|
771
|
+
set hideCreateToolsCircle(e) {
|
|
772
|
+
this.#e.createTools.circle = !e;
|
|
773
|
+
}
|
|
774
|
+
get hideCreateToolsMultipoint() {
|
|
775
|
+
return !this.#e.createTools.multipoint;
|
|
776
|
+
}
|
|
777
|
+
set hideCreateToolsMultipoint(e) {
|
|
778
|
+
this.#e.createTools.multipoint = !e;
|
|
779
|
+
}
|
|
780
|
+
get hideCreateToolsPoint() {
|
|
781
|
+
return !this.#e.createTools.point;
|
|
782
|
+
}
|
|
783
|
+
set hideCreateToolsPoint(e) {
|
|
784
|
+
this.#e.createTools.point = !e;
|
|
785
|
+
}
|
|
786
|
+
get hideCreateToolsPolygon() {
|
|
787
|
+
return !this.#e.createTools.polygon;
|
|
788
|
+
}
|
|
789
|
+
set hideCreateToolsPolygon(e) {
|
|
790
|
+
this.#e.createTools.polygon = !e;
|
|
791
|
+
}
|
|
792
|
+
get hideCreateToolsPolyline() {
|
|
793
|
+
return !this.#e.createTools.polyline;
|
|
794
|
+
}
|
|
795
|
+
set hideCreateToolsPolyline(e) {
|
|
796
|
+
this.#e.createTools.polyline = !e;
|
|
797
|
+
}
|
|
798
|
+
get hideCreateToolsRectangle() {
|
|
799
|
+
return !this.#e.createTools.rectangle;
|
|
800
|
+
}
|
|
801
|
+
set hideCreateToolsRectangle(e) {
|
|
802
|
+
this.#e.createTools.rectangle = !e;
|
|
803
|
+
}
|
|
804
|
+
get hideDuplicateButton() {
|
|
805
|
+
return !this.#e.duplicateButton;
|
|
806
|
+
}
|
|
807
|
+
set hideDuplicateButton(e) {
|
|
808
|
+
this.#e.duplicateButton = !e;
|
|
809
|
+
}
|
|
810
|
+
get hideDeleteButton() {
|
|
811
|
+
return !this.#e.deleteButton;
|
|
812
|
+
}
|
|
813
|
+
set hideDeleteButton(e) {
|
|
814
|
+
this.#e.deleteButton = !e;
|
|
815
|
+
}
|
|
816
|
+
get hideSelectionCountLabel() {
|
|
817
|
+
return !this.#e.selectionCountLabel;
|
|
818
|
+
}
|
|
819
|
+
set hideSelectionCountLabel(e) {
|
|
820
|
+
this.#e.selectionCountLabel = !e;
|
|
821
|
+
}
|
|
822
|
+
get hideLabelsToggle() {
|
|
823
|
+
return !this.#e.labelsToggle;
|
|
824
|
+
}
|
|
825
|
+
set hideLabelsToggle(e) {
|
|
826
|
+
this.#e.labelsToggle = !e;
|
|
827
|
+
}
|
|
828
|
+
get hideSelectionToolsLassoSelection() {
|
|
829
|
+
return !this.#e.selectionTools["lasso-selection"];
|
|
830
|
+
}
|
|
831
|
+
set hideSelectionToolsLassoSelection(e) {
|
|
832
|
+
this.#e.selectionTools["lasso-selection"] = !e;
|
|
833
|
+
}
|
|
834
|
+
get hideSelectionToolsRectangleSelection() {
|
|
835
|
+
return !this.#e.selectionTools["rectangle-selection"];
|
|
836
|
+
}
|
|
837
|
+
set hideSelectionToolsRectangleSelection(e) {
|
|
838
|
+
this.#e.selectionTools["rectangle-selection"] = !e;
|
|
839
|
+
}
|
|
840
|
+
get hideSettingsMenu() {
|
|
841
|
+
return !this.#e.settingsMenu;
|
|
842
|
+
}
|
|
843
|
+
set hideSettingsMenu(e) {
|
|
844
|
+
this.#e.settingsMenu = !e;
|
|
845
|
+
}
|
|
846
|
+
get hideSinglePluginBackButton() {
|
|
847
|
+
return !this.#e.singlePluginBackButton;
|
|
848
|
+
}
|
|
849
|
+
set hideSinglePluginBackButton(e) {
|
|
850
|
+
this.#e.singlePluginBackButton = !e;
|
|
851
|
+
}
|
|
852
|
+
get hideSnappingControls() {
|
|
853
|
+
return !this.#e.snappingControls;
|
|
854
|
+
}
|
|
855
|
+
set hideSnappingControls(e) {
|
|
856
|
+
this.#e.snappingControls = !e;
|
|
857
|
+
}
|
|
858
|
+
get hideSnappingControlsElementsEnabledToggle() {
|
|
859
|
+
return !this.#e.snappingControlsElements.enabledToggle;
|
|
860
|
+
}
|
|
861
|
+
set hideSnappingControlsElementsEnabledToggle(e) {
|
|
862
|
+
this.#e.snappingControlsElements.enabledToggle = !e;
|
|
863
|
+
}
|
|
864
|
+
get hideSnappingControlsElementsFeatureEnabledToggle() {
|
|
865
|
+
return !this.#e.snappingControlsElements.featureEnabledToggle;
|
|
866
|
+
}
|
|
867
|
+
set hideSnappingControlsElementsFeatureEnabledToggle(e) {
|
|
868
|
+
this.#e.snappingControlsElements.featureEnabledToggle = !e;
|
|
869
|
+
}
|
|
870
|
+
get hideSnappingControlsElementsLayerList() {
|
|
871
|
+
return !this.#e.snappingControlsElements.layerList;
|
|
872
|
+
}
|
|
873
|
+
set hideSnappingControlsElementsLayerList(e) {
|
|
874
|
+
this.#e.snappingControlsElements.layerList = !e;
|
|
875
|
+
}
|
|
876
|
+
get hideSnappingControlsElementsSelfEnabledToggle() {
|
|
877
|
+
return !this.#e.snappingControlsElements.selfEnabledToggle;
|
|
878
|
+
}
|
|
879
|
+
set hideSnappingControlsElementsSelfEnabledToggle(e) {
|
|
880
|
+
this.#e.snappingControlsElements.selfEnabledToggle = !e;
|
|
881
|
+
}
|
|
882
|
+
get hideSnappingControlsElementsGridEnabledToggle() {
|
|
883
|
+
return !this.#e.snappingControlsElements.gridEnabledToggle;
|
|
884
|
+
}
|
|
885
|
+
set hideSnappingControlsElementsGridEnabledToggle(e) {
|
|
886
|
+
this.#e.snappingControlsElements.gridEnabledToggle = !e;
|
|
887
|
+
}
|
|
888
|
+
get hideSnappingControlsElementsGridControls() {
|
|
889
|
+
return !this.#e.snappingControlsElements.gridControls;
|
|
890
|
+
}
|
|
891
|
+
set hideSnappingControlsElementsGridControls(e) {
|
|
892
|
+
this.#e.snappingControlsElements.gridControls = !e;
|
|
893
|
+
}
|
|
894
|
+
get hideSnappingControlsElementsGridControlsElementsColorSelection() {
|
|
895
|
+
return !this.#e.snappingControlsElements.gridControlsElements.colorSelection;
|
|
896
|
+
}
|
|
897
|
+
set hideSnappingControlsElementsGridControlsElementsColorSelection(e) {
|
|
898
|
+
this.#e.snappingControlsElements.gridControlsElements.colorSelection = !e;
|
|
899
|
+
}
|
|
900
|
+
get hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle() {
|
|
901
|
+
return !this.#e.snappingControlsElements.gridControlsElements.dynamicScaleToggle;
|
|
902
|
+
}
|
|
903
|
+
set hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle(e) {
|
|
904
|
+
this.#e.snappingControlsElements.gridControlsElements.dynamicScaleToggle = !e;
|
|
905
|
+
}
|
|
906
|
+
get hideSnappingControlsElementsGridControlsElementsLineIntervalInput() {
|
|
907
|
+
return !this.#e.snappingControlsElements.gridControlsElements.lineIntervalInput;
|
|
908
|
+
}
|
|
909
|
+
set hideSnappingControlsElementsGridControlsElementsLineIntervalInput(e) {
|
|
910
|
+
this.#e.snappingControlsElements.gridControlsElements.lineIntervalInput = !e;
|
|
911
|
+
}
|
|
912
|
+
get hideSnappingControlsElementsGridControlsElementsNumericInputs() {
|
|
913
|
+
return !this.#e.snappingControlsElements.gridControlsElements.numericInputs;
|
|
914
|
+
}
|
|
915
|
+
set hideSnappingControlsElementsGridControlsElementsNumericInputs(e) {
|
|
916
|
+
this.#e.snappingControlsElements.gridControlsElements.numericInputs = !e;
|
|
917
|
+
}
|
|
918
|
+
get hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning() {
|
|
919
|
+
return !this.#e.snappingControlsElements.gridControlsElements.outOfScaleWarning;
|
|
920
|
+
}
|
|
921
|
+
set hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning(e) {
|
|
922
|
+
this.#e.snappingControlsElements.gridControlsElements.outOfScaleWarning = !e;
|
|
923
|
+
}
|
|
924
|
+
get hideSnappingControlsElementsGridControlsElementsPlacementButtons() {
|
|
925
|
+
return !this.#e.snappingControlsElements.gridControlsElements.placementButtons;
|
|
926
|
+
}
|
|
927
|
+
set hideSnappingControlsElementsGridControlsElementsPlacementButtons(e) {
|
|
928
|
+
this.#e.snappingControlsElements.gridControlsElements.placementButtons = !e;
|
|
929
|
+
}
|
|
930
|
+
get hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle() {
|
|
931
|
+
return !this.#e.snappingControlsElements.gridControlsElements.rotateWithMapToggle;
|
|
932
|
+
}
|
|
933
|
+
set hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle(e) {
|
|
934
|
+
this.#e.snappingControlsElements.gridControlsElements.rotateWithMapToggle = !e;
|
|
935
|
+
}
|
|
936
|
+
get hideTooltipsToggle() {
|
|
937
|
+
return !this.#e.tooltipsToggle;
|
|
938
|
+
}
|
|
939
|
+
set hideTooltipsToggle(e) {
|
|
940
|
+
this.#e.tooltipsToggle = !e;
|
|
941
|
+
}
|
|
942
|
+
get hideUndoRedoMenu() {
|
|
943
|
+
return !this.#e.undoRedoMenu;
|
|
944
|
+
}
|
|
945
|
+
set hideUndoRedoMenu(e) {
|
|
946
|
+
this.#e.undoRedoMenu = !e;
|
|
947
|
+
}
|
|
948
|
+
get relativePosition() {
|
|
949
|
+
const e = this.el.slot;
|
|
950
|
+
return this.#i ?? (me.has(e) ? e : oe.topRight);
|
|
951
|
+
}
|
|
952
|
+
set relativePosition(e) {
|
|
953
|
+
this.#i = e;
|
|
22
954
|
}
|
|
23
955
|
get scale() {
|
|
24
|
-
return this.
|
|
956
|
+
return this.visualScale;
|
|
25
957
|
}
|
|
26
958
|
set scale(e) {
|
|
27
|
-
this.
|
|
959
|
+
this.visualScale = e;
|
|
960
|
+
}
|
|
961
|
+
get showSnappingControlsElementsHeader() {
|
|
962
|
+
return this.#e.snappingControlsElements.header;
|
|
963
|
+
}
|
|
964
|
+
set showSnappingControlsElementsHeader(e) {
|
|
965
|
+
this.#e.snappingControlsElements.header = e;
|
|
966
|
+
}
|
|
967
|
+
get showCreateToolsFreehandPolygon() {
|
|
968
|
+
return this.#e.createTools.freehandPolygon;
|
|
969
|
+
}
|
|
970
|
+
set showCreateToolsFreehandPolygon(e) {
|
|
971
|
+
this.#e.createTools.freehandPolygon = e;
|
|
972
|
+
}
|
|
973
|
+
get showCreateToolsFreehandPolyline() {
|
|
974
|
+
return this.#e.createTools.freehandPolyline;
|
|
975
|
+
}
|
|
976
|
+
set showCreateToolsFreehandPolyline(e) {
|
|
977
|
+
this.#e.createTools.freehandPolyline = e;
|
|
978
|
+
}
|
|
979
|
+
get showCreateToolsText() {
|
|
980
|
+
return this.#e.createTools.text;
|
|
981
|
+
}
|
|
982
|
+
set showCreateToolsText(e) {
|
|
983
|
+
this.#e.createTools.text = e;
|
|
984
|
+
}
|
|
985
|
+
get hideGeometrySimplificationActivityIndicator() {
|
|
986
|
+
return !this.#e.geometrySimplificationActivityIndicator;
|
|
987
|
+
}
|
|
988
|
+
set hideGeometrySimplificationActivityIndicator(e) {
|
|
989
|
+
this.#e.geometrySimplificationActivityIndicator = !e;
|
|
990
|
+
}
|
|
991
|
+
get state() {
|
|
992
|
+
return this.#t.state;
|
|
28
993
|
}
|
|
29
|
-
get
|
|
30
|
-
return this.
|
|
994
|
+
get cancelUpdateOnClickAwayDisabled() {
|
|
995
|
+
return !this.viewModel.cancelUpdateOnClickAway;
|
|
31
996
|
}
|
|
32
|
-
set
|
|
33
|
-
this.
|
|
997
|
+
set cancelUpdateOnClickAwayDisabled(e) {
|
|
998
|
+
this.viewModel.cancelUpdateOnClickAway = !e;
|
|
34
999
|
}
|
|
35
1000
|
async cancel() {
|
|
36
|
-
this.
|
|
1001
|
+
this.#t.cancelAll();
|
|
37
1002
|
}
|
|
38
1003
|
async complete() {
|
|
39
|
-
this.
|
|
1004
|
+
this.viewModel.complete();
|
|
40
1005
|
}
|
|
41
1006
|
async create(e, t) {
|
|
42
|
-
await this.
|
|
1007
|
+
await this.#t.create(e, t);
|
|
43
1008
|
}
|
|
44
1009
|
async delete() {
|
|
45
|
-
this.
|
|
1010
|
+
this.viewModel.delete();
|
|
46
1011
|
}
|
|
47
1012
|
async destroy() {
|
|
48
1013
|
await this.manager.destroy();
|
|
49
1014
|
}
|
|
1015
|
+
async dismissFloatingElements() {
|
|
1016
|
+
this.#t.settingsPopoverOpen = !1;
|
|
1017
|
+
}
|
|
50
1018
|
async duplicate() {
|
|
51
|
-
this.
|
|
1019
|
+
this.viewModel.duplicate();
|
|
52
1020
|
}
|
|
53
1021
|
async redo() {
|
|
54
|
-
this.
|
|
1022
|
+
this.viewModel.redo();
|
|
55
1023
|
}
|
|
56
|
-
async
|
|
57
|
-
|
|
1024
|
+
async setContextualToolLocation(e) {
|
|
1025
|
+
this._contextualToolLocation = e;
|
|
58
1026
|
}
|
|
59
1027
|
async setCustomTools(e, t) {
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
async setGroupAllowCollapseOptions(e) {
|
|
63
|
-
r(this.widget, e);
|
|
64
|
-
}
|
|
65
|
-
async setContextualToolLocation(e) {
|
|
66
|
-
a(this.widget, e);
|
|
1028
|
+
this.#t.setCustomTools(e, t);
|
|
67
1029
|
}
|
|
68
1030
|
async setGroupCollapsePriorities(e) {
|
|
69
|
-
|
|
1031
|
+
this._groupLayoutPriorityOverrides = e || /* @__PURE__ */ new Map();
|
|
70
1032
|
}
|
|
71
1033
|
async triggerUpdate(e, t) {
|
|
72
|
-
this.
|
|
1034
|
+
await this.#t.update(e, t);
|
|
73
1035
|
}
|
|
74
1036
|
async undo() {
|
|
75
|
-
this.
|
|
1037
|
+
this.#t.sketchViewModel?.undo();
|
|
76
1038
|
}
|
|
77
|
-
|
|
78
|
-
this.defaultGraphicsLayerDisabled || (this._defaultGraphicsLayer = new
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
|
|
1039
|
+
connectedCallback() {
|
|
1040
|
+
super.connectedCallback(), this.defaultGraphicsLayerDisabled || (this._defaultGraphicsLayer?.destroyed && (this._defaultGraphicsLayer = null), this._defaultGraphicsLayer ??= new j({ title: "Sketch Layer" }), this.layer = this._defaultGraphicsLayer, this.view?.map?.add(this.layer), this.viewModel.layer = this._defaultGraphicsLayer);
|
|
1041
|
+
}
|
|
1042
|
+
disconnectedCallback() {
|
|
1043
|
+
this._defaultGraphicsLayer && this.view?.map?.allLayers.includes(this._defaultGraphicsLayer) && this.view?.map?.remove(this._defaultGraphicsLayer), super.disconnectedCallback();
|
|
1044
|
+
}
|
|
1045
|
+
render() {
|
|
1046
|
+
const e = this._refMap.get("settings")?.value?.actionElement, t = this.#t.groupedActions, { visualScale: o, layout: s, toolbarKind: r, relativePosition: h, _contextualToolLocation: p } = this, n = t.find(({ name: u }) => u === "selectionSet"), g = t.filter(({ name: u }) => u !== "selectionSet");
|
|
1047
|
+
return m`<div class="toolbar-container"><arcgis-toolbar-stack .layout=${s} .toolbarKind=${r} .relativePosition=${h} .scale=${o} tooltip-appearance=calcite><arcgis-toolbar ${E(this.#o)}>${T({ hidden: !n?.visible || p !== "inline", children: this._renderActionGroup(n) })}${g.map((u) => this._renderActionGroup(u))}${T({ hidden: !n?.visible || p !== "inline-end", children: this._renderActionGroup(n) })}</arcgis-toolbar>${T({ hidden: !n?.visible || p !== "separate", children: m`<arcgis-toolbar>${this._renderActionGroup(n)}</arcgis-toolbar>` })}</arcgis-toolbar-stack></div>${T({ hidden: this.hideSettingsMenu, children: m`<arcgis-view-popover .open=${this.#t.settingsPopoverOpen} closable .heading=${this._messages.settings?.heading} .label=${this._messages.settings?.heading} .anchorElement=${e} .visualScale=${o} .actionBarElement=${this.#o.value?.barElement} @arcgisPropertyChange=${(u) => this.#t.settingsPopoverOpen = u.target.open ?? !1} .view=${this.view ?? void 0}>${this._renderSettings()}</arcgis-view-popover>` })}`;
|
|
1048
|
+
}
|
|
1049
|
+
_renderSettings() {
|
|
1050
|
+
const { autoDestroyDisabled: e, hideLabelsToggle: t, hideSnappingControls: o, hideTooltipsToggle: s, showSnappingControlsElementsHeader: r, view: h, viewModel: p } = this;
|
|
1051
|
+
return m`<div class="editing-controls-panel"><arcgis-sketch-tooltip-controls .hideLabelsToggle=${t} .hideTooltipsToggle=${s} .directionMode=${p.valueOptions.directionMode} .labelsEnabled=${p.labelOptions.enabled} .tooltipsEnabled=${p.tooltipOptions.enabled} @arcgisPropertyChange=${(n) => {
|
|
1052
|
+
n.stopPropagation();
|
|
1053
|
+
const { labelsEnabled: g, tooltipsEnabled: u, directionMode: d } = n.currentTarget, b = this.viewModel;
|
|
1054
|
+
switch (n.detail.name) {
|
|
1055
|
+
case "labelsEnabled":
|
|
1056
|
+
b.labelOptions.enabled = g;
|
|
1057
|
+
break;
|
|
1058
|
+
case "directionMode":
|
|
1059
|
+
b.valueOptions.directionMode = d;
|
|
1060
|
+
break;
|
|
1061
|
+
case "tooltipsEnabled":
|
|
1062
|
+
b.tooltipOptions.enabled = u;
|
|
1063
|
+
break;
|
|
1064
|
+
}
|
|
1065
|
+
}}></arcgis-sketch-tooltip-controls>${o ? void 0 : m`<arcgis-snapping-controls .autoDestroyDisabled=${e} .view=${h} .visibleElements=${this.#e.snappingControlsElements} .snappingOptions=${p.snappingOptions} .showHeader=${r} @arcgisPropertyChange=${(n) => n.stopPropagation()}></arcgis-snapping-controls>`}</div>`;
|
|
1066
|
+
}
|
|
1067
|
+
_renderActionGroup({ visible: e, commands: t, name: o }) {
|
|
1068
|
+
if (!e || !t.length)
|
|
1069
|
+
return;
|
|
1070
|
+
const { defaultPriority: s, groupKind: r, overflowLabel: h } = ye[o], n = (o === "geometrySimplification" ? void 0 : this._groupLayoutPriorityOverrides.get(o)) ?? s, g = t.map((d) => this._renderCommand(d)), u = I(`more.${h}`, this._messages);
|
|
1071
|
+
switch (r) {
|
|
1072
|
+
case "more-button":
|
|
1073
|
+
return m`<arcgis-toolbar-group .priority=${n}><arcgis-toolbar-more-button .overflowActionLabel=${u} .priority=${n}>${g}</arcgis-toolbar-more-button></arcgis-toolbar-group>`;
|
|
1074
|
+
case "split-button":
|
|
1075
|
+
return m`<arcgis-toolbar-group .priority=${n}><arcgis-toolbar-split-button .overflowActionLabel=${u} .priority=${n}>${g}</arcgis-toolbar-split-button></arcgis-toolbar-group>`;
|
|
1076
|
+
case "actions":
|
|
1077
|
+
return m`<arcgis-toolbar-group .priority=${n}>${g}</arcgis-toolbar-group>`;
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
_renderCommand({ active: e, afterCreate: t, afterRemoved: o, afterUpdate: s, appearance: r, icon: h, disabled: p, id: n, kind: g, labelKey: u, labelParameters: d, loading: b, tooltipKey: W, iconFlipRTL: M, onClick: P, refKey: k, textEnabled: A, renderAsAction: K }) {
|
|
1081
|
+
const { _messages: O, _refMap: U, layout: L } = this, w = I(u, O), S = w === void 0 ? u : d ? q(w, d) : w, G = O?.[W] ?? S, $ = k ? B(U, k, _) : this.#s, V = { afterCreate: t, afterRemoved: o, afterUpdate: s };
|
|
1082
|
+
return K ? m`<arcgis-toolbar-action .active=${e} .appearance=${r} .disabled=${p} .icon=${h} .iconFlipRtl=${M} id=${n ?? x} .kind=${g} .loading=${b} .labelText=${L === "horizontal" ? S : ""} .textEnabled=${A} .tooltipText=${L === "horizontal" && A ? "" : G} @arcgisToolbarItemSelected=${P} ${D(V)} ${E($)}></arcgis-toolbar-action>` : m`<arcgis-toolbar-item .active=${e} .disabled=${p} .icon=${h} id=${n ?? x} .iconFlipRtl=${M} .labelText=${S} .tooltipText=${G} @arcgisItemSelected=${P} ${D(V)} ${E($)}></arcgis-toolbar-item>`;
|
|
92
1083
|
}
|
|
93
1084
|
}
|
|
94
|
-
|
|
1085
|
+
F("arcgis-sketch", Me);
|
|
95
1086
|
export {
|
|
96
|
-
|
|
1087
|
+
Me as ArcgisSketch
|
|
97
1088
|
};
|