@arcgis/map-components 5.0.0-next.135 → 5.0.0-next.137
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/{D73PIX2J.js → 2444HYCD.js} +2 -2
- package/dist/cdn/{XDBT563Q.js → 2BFCWGHX.js} +2 -2
- package/dist/cdn/{IV2VRUIP.js → 2H7OGHXZ.js} +2 -2
- package/dist/cdn/{KPJC5MZD.js → 2LA3OJFI.js} +2 -2
- package/dist/cdn/{WC3FPN3K.js → 2MKL2FYV.js} +2 -2
- package/dist/cdn/{BPJCNKEU.js → 2RGNG2US.js} +2 -2
- package/dist/cdn/{TSHTWAP2.js → 2YID3LDC.js} +2 -2
- package/dist/cdn/{MOHTRHBD.js → 322GXO7B.js} +2 -2
- package/dist/cdn/{2A4FCCOP.js → 32OG66ME.js} +2 -2
- package/dist/cdn/{UHLZSQLZ.js → 354X343Q.js} +2 -2
- package/dist/cdn/{5L4WSSIP.js → 3BAK2FNY.js} +2 -2
- package/dist/cdn/{2N6BHSPM.js → 3L5OQUD6.js} +2 -2
- package/dist/cdn/3OBMNFEU.js +4 -0
- package/dist/cdn/{ARDHJCRS.js → 3OPEDQNZ.js} +2 -2
- package/dist/cdn/{WOYKKJJD.js → 3QL7AQEY.js} +2 -2
- package/dist/cdn/3RIBC2DL.js +6 -0
- package/dist/cdn/3RPZYJ6R.js +10 -0
- package/dist/cdn/{UIP4PIBV.js → 3S6M7755.js} +2 -2
- package/dist/cdn/{YSMTULRK.js → 3SUTSJEE.js} +2 -2
- package/dist/cdn/{3XFUOTMP.js → 3X3ADJ3F.js} +2 -2
- package/dist/cdn/{I3SZ7XZE.js → 42VAMKWP.js} +2 -2
- package/dist/cdn/{ZZK2N357.js → 445MMTIE.js} +2 -2
- package/dist/cdn/{BIHUIWOJ.js → 4BEEQNLC.js} +2 -2
- package/dist/cdn/{ELYQQJY7.js → 4DK4FUV5.js} +2 -2
- package/dist/cdn/{PFBS5S3N.js → 4JCBB6ML.js} +2 -2
- package/dist/cdn/{XXTSQL6N.js → 4WI4PQ66.js} +2 -2
- package/dist/cdn/{R2ULFD7Q.js → 52OVAU4F.js} +2 -2
- package/dist/cdn/{UVZUYN2E.js → 564B4HKC.js} +2 -2
- package/dist/cdn/{6FAYVNHN.js → 5JIACWPM.js} +2 -2
- package/dist/cdn/{LRB5KKCB.js → 5JXQ2IHH.js} +2 -2
- package/dist/cdn/5KANVSSQ.js +4 -0
- package/dist/cdn/{5VLSATEN.js → 5NN6VADG.js} +2 -2
- package/dist/cdn/{ZIYEJIYS.js → 5OFZTKD7.js} +2 -2
- package/dist/cdn/{5F2PRYYD.js → 5SWFRBAW.js} +1 -1
- package/dist/cdn/5TPGRXVA.js +4 -0
- package/dist/cdn/{WWL4XCIP.js → 5YSJL3P3.js} +2 -2
- package/dist/cdn/{5Z2QK75J.js → 6DBUX6JF.js} +1 -1
- package/dist/cdn/{3SOJ4AQM.js → 6FY45D7G.js} +2 -2
- package/dist/cdn/{CUZMU2KV.js → 6GVVZNKS.js} +2 -2
- package/dist/cdn/{VWPY4XAO.js → 6TWWO6WO.js} +2 -2
- package/dist/cdn/{LZ3KSU6M.js → 7CQ6R4K2.js} +2 -2
- package/dist/cdn/{FG25LSCE.js → 7FZNKXOK.js} +2 -2
- package/dist/cdn/{QHGYRHZZ.js → 7I4GEHAD.js} +2 -2
- package/dist/cdn/{B4AWHHRL.js → 7MITLVYQ.js} +2 -2
- package/dist/cdn/{V2Y3Y6O2.js → 7QCFDEZ4.js} +2 -2
- package/dist/cdn/{S7MFLXUY.js → 7RZDB45M.js} +1 -1
- package/dist/cdn/7WFGIXZ3.js +4 -0
- package/dist/cdn/A24W34N2.js +4 -0
- package/dist/cdn/{7PZIBN2B.js → A4NKHAHG.js} +2 -2
- package/dist/cdn/{YVLXLFP4.js → A7CEHXZQ.js} +2 -2
- package/dist/cdn/{XLV2VHAG.js → A7KFDVSD.js} +2 -2
- package/dist/cdn/{B6VKLWXV.js → ABPPH5HU.js} +2 -2
- package/dist/cdn/AEWRHAH3.js +4 -0
- package/dist/cdn/{3SXFHLW7.js → AFFTNNYI.js} +2 -2
- package/dist/cdn/{KVO6TTGH.js → ANNL5MEA.js} +2 -2
- package/dist/cdn/{4I6C4VGN.js → AOFVCLTK.js} +2 -2
- package/dist/cdn/{H2PB5D7D.js → ARNCS7JB.js} +2 -2
- package/dist/cdn/{7VCZAUUF.js → AXJ5M4GK.js} +2 -2
- package/dist/cdn/{BNMYU7IF.js → BJ6H7QWD.js} +2 -2
- package/dist/cdn/{YEBBYCG5.js → BL2SCUHQ.js} +1 -1
- package/dist/cdn/{QANNPKCC.js → BNI7ILH6.js} +2 -2
- package/dist/cdn/{SHRXLKWY.js → BPLX337K.js} +2 -2
- package/dist/cdn/{JUPEWCHO.js → BYDERLQ5.js} +1 -1
- package/dist/cdn/{H54PSCX5.js → C3FJABJK.js} +2 -2
- package/dist/cdn/{P57E5ZZC.js → CMPP7SDZ.js} +2 -2
- package/dist/cdn/{DKX5M3DU.js → CQ6EQDAB.js} +2 -2
- package/dist/cdn/{PRGEZ5TN.js → CRG6ILQJ.js} +2 -2
- package/dist/cdn/{7DD64Z7Z.js → D3BAAG4H.js} +2 -2
- package/dist/cdn/{5UOJHR6S.js → D5JDMWDO.js} +2 -2
- package/dist/cdn/{JEK6CJ4M.js → D7HDGR23.js} +2 -2
- package/dist/cdn/{MUUEGL32.js → DC44P6IV.js} +2 -2
- package/dist/cdn/{VK5R445V.js → DEMLR3UH.js} +2 -2
- package/dist/cdn/{OJ5BZLYO.js → DEYOM7PR.js} +2 -2
- package/dist/cdn/{QVSDTPUG.js → DI7UY3PA.js} +2 -2
- package/dist/cdn/DKC4VUFD.js +4 -0
- package/dist/cdn/{E4BMX7SR.js → DLBGOL5G.js} +2 -2
- package/dist/cdn/DO5SZPHV.js +4 -0
- package/dist/cdn/{BEFNFR2T.js → DRT6NJB7.js} +2 -2
- package/dist/cdn/{Q46KRYO2.js → DUODKCOV.js} +2 -2
- package/dist/cdn/{BPYAMWIQ.js → DUV24JWA.js} +2 -2
- package/dist/cdn/DVSQIJVH.js +4 -0
- package/dist/cdn/{RNF7RZCH.js → DW4G6HQT.js} +1 -1
- package/dist/cdn/{T42WGY33.js → DWZMHJFO.js} +2 -2
- package/dist/cdn/{CFTYXLFB.js → E25UDLYU.js} +2 -2
- package/dist/cdn/{E6BENEC5.js → E4RGQ5LT.js} +2 -2
- package/dist/cdn/{A6U3TQZT.js → EEWMQSWK.js} +2 -2
- package/dist/cdn/{NQDWVVEO.js → EF2YIRZ4.js} +2 -2
- package/dist/cdn/{B2SXNWBP.js → EFUNEZTX.js} +2 -2
- package/dist/cdn/{RQ6I2QTT.js → EGT4M7YG.js} +2 -2
- package/dist/cdn/{H5TZETYE.js → ENO2YCVS.js} +1 -1
- package/dist/cdn/{J2Q7EF2T.js → EOBTKFVG.js} +2 -2
- package/dist/cdn/{VYBAYZAI.js → EOL75VVO.js} +2 -2
- package/dist/cdn/{JGW7ULQ4.js → EVDXMGFG.js} +1 -1
- package/dist/cdn/{KKFMOQFA.js → EYDOOZWY.js} +2 -2
- package/dist/cdn/{ZS4DA3JL.js → EZ3GNFUD.js} +2 -2
- package/dist/cdn/F447G6N4.js +4 -0
- package/dist/cdn/{LXGGYUD5.js → F5GFQFBM.js} +2 -2
- package/dist/cdn/{BK6R4NEM.js → FAPFTYSO.js} +2 -2
- package/dist/cdn/{FKHDIOZ5.js → FBPTATL7.js} +2 -2
- package/dist/cdn/{ZIDCSQIW.js → FDNDDRVG.js} +2 -2
- package/dist/cdn/{5MS2VUXK.js → FRHTHIU6.js} +2 -2
- package/dist/cdn/{S62X7SCB.js → FRQN2XDT.js} +2 -2
- package/dist/cdn/{XMLTDQJJ.js → G2ZKUKXS.js} +2 -2
- package/dist/cdn/{PHLOZEAM.js → G4RLKWVG.js} +2 -2
- package/dist/cdn/{344NAS3Y.js → G6PULGPI.js} +2 -2
- package/dist/cdn/{SPXFEVXH.js → G72XUXWR.js} +2 -2
- package/dist/cdn/{RTZ5GL6U.js → GG7M6XOA.js} +2 -2
- package/dist/cdn/{YKUSVR5R.js → GGWYRUTY.js} +2 -2
- package/dist/cdn/{ROAEWSXR.js → GKSRAL3B.js} +2 -2
- package/dist/cdn/GSLEC3VC.js +4 -0
- package/dist/cdn/{QWB7XXRJ.js → GT5I3HR3.js} +2 -2
- package/dist/cdn/{NGJFTHMT.js → GTM55V4F.js} +2 -2
- package/dist/cdn/{YXQYBNVH.js → GWT4AHAC.js} +2 -2
- package/dist/cdn/{5QNATMUH.js → GYFN3DYU.js} +2 -2
- package/dist/cdn/{BRTXHJ4E.js → HDCYMVJ3.js} +2 -2
- package/dist/cdn/HDKHDINR.js +4 -0
- package/dist/cdn/HENJGO75.js +4 -0
- package/dist/cdn/{KGOTJM3M.js → HETIJ6PV.js} +2 -2
- package/dist/cdn/HIJLGJK7.js +4 -0
- package/dist/cdn/{PND73GEN.js → HMPCRYQQ.js} +2 -2
- package/dist/cdn/{QSZ2CGPJ.js → HQRKYH4P.js} +2 -2
- package/dist/cdn/{KVN2I45D.js → HTRFKGWV.js} +2 -2
- package/dist/cdn/{53RYSLGE.js → HUGBHXMI.js} +2 -2
- package/dist/cdn/{BJNLYH4X.js → HZ2S3ZO4.js} +2 -2
- package/dist/cdn/{QBTVE6WF.js → I2EUO3SB.js} +2 -2
- package/dist/cdn/{NS4TN5CJ.js → I3MOUNJH.js} +2 -2
- package/dist/cdn/{FA7BTFSY.js → I7RA6AXJ.js} +2 -2
- package/dist/cdn/{RYHCN6MW.js → IEU3QSNH.js} +2 -2
- package/dist/cdn/{OKT4O7MO.js → IGKZXHUH.js} +2 -2
- package/dist/cdn/{FNY7EFBZ.js → IJE5GSKP.js} +1 -1
- package/dist/cdn/{MKUGPRUS.js → IMMMYPA2.js} +2 -2
- package/dist/cdn/{KHW3OTUO.js → IOGYUFZB.js} +2 -2
- package/dist/cdn/{AXGU3RLK.js → IVQVT7HF.js} +2 -2
- package/dist/cdn/{UKFUJHMZ.js → IYOJ4BDG.js} +2 -2
- package/dist/cdn/{CHNO6ZKR.js → J2VAOB5A.js} +2 -2
- package/dist/cdn/{O3YNWCSZ.js → JJNF3YRZ.js} +2 -2
- package/dist/cdn/{HEWWKOBJ.js → JONXKNHN.js} +1 -1
- package/dist/cdn/{NIGAFVTS.js → JRHMU5AH.js} +2 -2
- package/dist/cdn/{ZN7IEK7U.js → JYHKLONI.js} +2 -2
- package/dist/cdn/K5VMZV4H.js +4 -0
- package/dist/cdn/{BFX4IYWZ.js → KCM5ZQJP.js} +1 -1
- package/dist/cdn/{GC62AKAG.js → KEEXLZA5.js} +2 -2
- package/dist/cdn/{2O5ZKD3N.js → KFMYZJ2P.js} +1 -1
- package/dist/cdn/{YQHKRAAN.js → KMGSF3TH.js} +2 -2
- package/dist/cdn/{C3UNJFE7.js → KVDFSJMW.js} +1 -1
- package/dist/cdn/{G2Q6XB3Y.js → L2MUUXE3.js} +2 -2
- package/dist/cdn/{V3NV722A.js → L2PVH7MX.js} +2 -2
- package/dist/cdn/{NKG3ZWOD.js → L3JCAFZK.js} +2 -2
- package/dist/cdn/{ZHPLTJ7A.js → LB3CTVPV.js} +2 -2
- package/dist/cdn/{E5EXZ45Z.js → LCRYKDSP.js} +2 -2
- package/dist/cdn/{3ROVO3N4.js → LE3S3O6G.js} +2 -2
- package/dist/cdn/LEV73WAS.js +4 -0
- package/dist/cdn/{5QXPQNQH.js → LIMSNJX3.js} +2 -2
- package/dist/cdn/{27EVR7OV.js → LKNYWRF6.js} +2 -2
- package/dist/cdn/{73JBE6E7.js → LQV5K3GI.js} +2 -2
- package/dist/cdn/LWGMY4C3.js +4 -0
- package/dist/cdn/{QHPCIFDH.js → LXAMQEBO.js} +2 -2
- package/dist/cdn/{HQKLGFQO.js → LYCPRJS4.js} +2 -2
- package/dist/cdn/{3IBWMGON.js → M2VADVQP.js} +2 -2
- package/dist/cdn/{XE72MKKY.js → M33TX2DP.js} +2 -2
- package/dist/cdn/{GZSPAVGU.js → MBP3LKCH.js} +2 -2
- package/dist/cdn/MF444YJ6.js +4 -0
- package/dist/cdn/{VQ673EI7.js → MFI66IYL.js} +2 -2
- package/dist/cdn/{M7NAIGVG.js → MI2BCBZE.js} +2 -2
- package/dist/cdn/{K2Y6HZNF.js → MRHA2FYO.js} +2 -2
- package/dist/cdn/{LPPBJYER.js → MUY7WKHX.js} +2 -2
- package/dist/cdn/{KRALQ6ZS.js → MZLQ4EFE.js} +2 -2
- package/dist/cdn/{IKQHNZFD.js → N32GCBOW.js} +2 -2
- package/dist/cdn/{4LCLXV63.js → NEHRGRV5.js} +2 -2
- package/dist/cdn/{PD6YZTOT.js → NIFCBTXV.js} +2 -2
- package/dist/cdn/{P2JE3AOK.js → NRFDTTFN.js} +2 -2
- package/dist/cdn/{23PY7CVN.js → NVNNPRLY.js} +2 -2
- package/dist/cdn/{I4RKVMR4.js → O3QKPFFG.js} +2 -2
- package/dist/cdn/{IZD4GURZ.js → OGUJRLID.js} +2 -2
- package/dist/cdn/{LJXXOMOP.js → OKTGVGSD.js} +2 -2
- package/dist/cdn/{6BQKACGB.js → ONAEUQ3F.js} +2 -2
- package/dist/cdn/{O2KO2LVK.js → OORDRHBB.js} +2 -2
- package/dist/cdn/{VGZK74VR.js → OQ7XZW4Q.js} +2 -2
- package/dist/cdn/{VUXTY7NJ.js → OZTWSW46.js} +2 -2
- package/dist/cdn/{IELV2ZML.js → P23SLBTH.js} +2 -2
- package/dist/cdn/{TTI3G5LG.js → PHLBQXQ3.js} +2 -2
- package/dist/cdn/{TGJCY7HA.js → PK2MJ7OZ.js} +2 -2
- package/dist/cdn/{PCYLIUNF.js → PLXBAOZN.js} +2 -2
- package/dist/cdn/{CSA5NUPQ.js → POELHHEP.js} +2 -2
- package/dist/cdn/{J3TDVSS7.js → PTM6M2NH.js} +2 -2
- package/dist/cdn/{G5FQXDZR.js → Q7WNZYKE.js} +2 -2
- package/dist/cdn/{SNIAHV4A.js → QEB5AQLJ.js} +2 -2
- package/dist/cdn/{764YVPPV.js → QGSHXOJQ.js} +2 -2
- package/dist/cdn/{GQNFLFOJ.js → QYB4Z3OB.js} +2 -2
- package/dist/cdn/{7VJWEF6O.js → R4KLULAM.js} +2 -2
- package/dist/cdn/{U4VRPMSN.js → R4MG4HUJ.js} +2 -2
- package/dist/cdn/RLGQP76L.js +5 -0
- package/dist/cdn/{Q7OOE2OP.js → RM7SOC4X.js} +2 -2
- package/dist/cdn/{6FT3CTZK.js → RPSAMTRV.js} +2 -2
- package/dist/cdn/{BPBUMZDQ.js → RTG2YKMW.js} +2 -2
- package/dist/cdn/{EWSBIJJ7.js → RTGJOFXF.js} +2 -2
- package/dist/cdn/{SOR6TD5Y.js → RZ7A6AQZ.js} +2 -2
- package/dist/cdn/{S4JTYGI3.js → RZECLHH2.js} +2 -2
- package/dist/cdn/{PPI7QE57.js → RZSHOOQH.js} +2 -2
- package/dist/cdn/{UBYQQDZJ.js → S7WS43F6.js} +2 -2
- package/dist/cdn/{QPE56KD6.js → SKREWOKX.js} +2 -2
- package/dist/cdn/{3JQAQRJ2.js → SOVW2SI6.js} +1 -1
- package/dist/cdn/{LRAAR644.js → SR2IWDD6.js} +1 -1
- package/dist/cdn/{TITDMQW4.js → SRNRMGFZ.js} +1 -1
- package/dist/cdn/{U7AUP646.js → SXO3KPUG.js} +2 -2
- package/dist/cdn/{VXVCOJ42.js → TC22ACVR.js} +2 -2
- package/dist/cdn/{GN2DCHOL.js → TIYLXLKN.js} +2 -2
- package/dist/cdn/{6NQ4K356.js → TM2TN3DV.js} +2 -2
- package/dist/cdn/{GKXB4XZC.js → TQPMWLBX.js} +2 -2
- package/dist/cdn/{NCHP6POG.js → TS4JJ73K.js} +2 -2
- package/dist/cdn/{C3T5PKMS.js → TXFAF5W2.js} +2 -2
- package/dist/cdn/{NWWDEDDP.js → TXVUDZTD.js} +2 -2
- package/dist/cdn/U2WPEJEJ.js +6 -0
- package/dist/cdn/{NE2GXZII.js → U4R7WEPL.js} +2 -2
- package/dist/cdn/UKKNWLON.js +4 -0
- package/dist/cdn/{L7SFB2K5.js → ULQQCU4D.js} +2 -2
- package/dist/cdn/{A47PCNIA.js → UM3RSDS4.js} +2 -2
- package/dist/cdn/{VFKDS634.js → UN43TESL.js} +2 -2
- package/dist/cdn/{VGSEL7GU.js → UOM2KE7P.js} +2 -2
- package/dist/cdn/{ZEC5OC3T.js → UP35UIOK.js} +2 -2
- package/dist/cdn/{T3P7G37P.js → UYBR47GE.js} +2 -2
- package/dist/cdn/{ER5KAUGV.js → UZ5Y4PTQ.js} +2 -2
- package/dist/cdn/V5HT26TT.js +4 -0
- package/dist/cdn/{WJKBVDYI.js → VKF2WRQ2.js} +2 -2
- package/dist/cdn/{5FTB4NPD.js → VL37D3MM.js} +2 -2
- package/dist/cdn/VLQQPVYO.js +4 -0
- package/dist/cdn/{NAS6G5R4.js → VONZI5CD.js} +2 -2
- package/dist/cdn/{P25IEZ6P.js → W6YAZBHJ.js} +2 -2
- package/dist/cdn/{4R2TIAV6.js → WE4P3W7P.js} +2 -2
- package/dist/cdn/{HYMBR7WI.js → WE5TLYVP.js} +2 -2
- package/dist/cdn/{NIRW5ECV.js → WJ7OA352.js} +2 -2
- package/dist/cdn/{CZTLXH4D.js → WWNE4MNE.js} +2 -2
- package/dist/cdn/{VOFQAO7R.js → WWOB3EJF.js} +2 -2
- package/dist/cdn/{IGNC3BRH.js → WZDAB7CM.js} +2 -2
- package/dist/cdn/{74FZTIBX.js → WZL6OPRN.js} +2 -2
- package/dist/cdn/{XIO5PA6R.js → XIBMOP2G.js} +2 -2
- package/dist/cdn/{FZLXGAKG.js → XNRCGJN4.js} +2 -2
- package/dist/cdn/{ZDPHWKQT.js → XRQKPB24.js} +2 -2
- package/dist/cdn/{3RBB42JW.js → XS2TDPZN.js} +2 -2
- package/dist/cdn/{6YSJAMTU.js → YCV35CCL.js} +2 -2
- package/dist/cdn/{M3QQP2U6.js → YILYSCCE.js} +2 -2
- package/dist/cdn/{G5JS7J7P.js → YIN7RNRX.js} +2 -2
- package/dist/cdn/YIXCEDJH.js +4 -0
- package/dist/cdn/YMDTQK2K.js +4 -0
- package/dist/cdn/{UI2QJQEU.js → YX4KNA7F.js} +2 -2
- package/dist/cdn/{L62KQI6W.js → YXVYOX5A.js} +2 -2
- package/dist/cdn/{ANFDZFFB.js → YYWCXKRF.js} +2 -2
- package/dist/cdn/{EWT6NG36.js → Z43LSGX3.js} +2 -2
- package/dist/cdn/{RD5CKVJB.js → Z7E4S2DV.js} +2 -2
- package/dist/cdn/{6YDISVG7.js → ZH36J5LI.js} +2 -2
- package/dist/cdn/{ZIKT54VW.js → ZKHHB6HX.js} +2 -2
- package/dist/cdn/{LSN4YYCV.js → ZN67DSQF.js} +2 -2
- package/dist/cdn/{XCVNEISF.js → ZQT5T4SJ.js} +2 -2
- package/dist/cdn/{E7VJQVME.js → ZQX7LWJP.js} +2 -2
- package/dist/cdn/{RRNA7N4F.js → ZRDSRB53.js} +2 -2
- package/dist/cdn/{C3GKOU46.js → ZT3OMX56.js} +2 -2
- package/dist/cdn/{6QZYWE4M.js → ZT7H2FY5.js} +2 -2
- package/dist/cdn/assets/clipboard/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/feature-title/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/paste/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/shadow-cast/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/AnalysisViewModel.js +1 -1
- package/dist/chunks/action-utils.js +2 -2
- package/dist/chunks/async-utils.js +1 -1
- package/dist/chunks/basemap-gallery-resources.js +1 -1
- package/dist/chunks/building-layer-utils.js +1 -1
- package/dist/chunks/chart-utils.js +1 -1
- package/dist/chunks/chartCommon.js +1 -1
- package/dist/chunks/clipoardSymbolHelper.js +106 -0
- package/dist/chunks/component-utils.js +3 -3
- package/dist/chunks/component-wrapper.js +1 -1
- package/dist/chunks/constants.js +6 -6
- package/dist/chunks/esri-main.js +1 -1
- package/dist/chunks/feature-utils.js +68 -77
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/goTo.js +1 -1
- package/dist/chunks/handle.js +1 -1
- package/dist/chunks/heading.js +1 -1
- package/dist/chunks/layer-list.js +1 -1
- package/dist/chunks/layer-utils.js +23 -0
- package/dist/chunks/legacyIcon.js +1 -1
- package/dist/chunks/maybe.js +1 -1
- package/dist/chunks/measurementUtils.js +5 -5
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/screenLocation.js +1 -1
- package/dist/chunks/slots.js +6 -7
- package/dist/chunks/svgUtils.js +6 -6
- package/dist/chunks/time-utils.js +1 -1
- package/dist/chunks/univariateUtils.js +8 -8
- package/dist/chunks/useArcgisViewReadyError.js +1 -1
- package/dist/chunks/useCloseEvent.js +1 -1
- package/dist/chunks/useHandles.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/useView.js +1 -1
- package/dist/chunks/useViewModel.js +1 -1
- package/dist/chunks/useWidget.js +1 -1
- package/dist/chunks/utils.js +85 -46
- package/dist/chunks/utils2.js +46 -85
- package/dist/chunks/visible-element.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +152 -124
- package/dist/components/arcgis-area-measurement-2d/customElement.js +3 -3
- package/dist/components/arcgis-area-measurement-2d/index.d.ts +0 -3
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +142 -123
- package/dist/components/arcgis-area-measurement-3d/customElement.js +3 -3
- package/dist/components/arcgis-area-measurement-3d/index.d.ts +0 -3
- package/dist/components/arcgis-attachments/customElement.d.ts +148 -175
- package/dist/components/arcgis-attachments/customElement.js +2 -2
- package/dist/components/arcgis-basemap-gallery/customElement.d.ts +148 -144
- package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/index.d.ts +0 -1
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +387 -407
- package/dist/components/arcgis-basemap-layer-list/customElement.js +2 -2
- package/dist/components/arcgis-basemap-toggle/customElement.d.ts +85 -85
- package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
- package/dist/components/arcgis-basemap-toggle/index.d.ts +0 -3
- package/dist/components/arcgis-bookmarks/BookmarksViewModel.d.ts +92 -103
- package/dist/components/arcgis-bookmarks/customElement.d.ts +418 -331
- package/dist/components/arcgis-bookmarks/customElement.js +2 -2
- package/dist/components/arcgis-bookmarks/index.d.ts +0 -21
- package/dist/components/arcgis-bookmarks/types.d.ts +58 -70
- package/dist/components/arcgis-building-discipline-tree/customElement.js +1 -1
- package/dist/components/arcgis-building-explorer/customElement.d.ts +235 -182
- package/dist/components/arcgis-building-explorer/customElement.js +2 -2
- package/dist/components/arcgis-building-explorer/index.d.ts +0 -4
- package/dist/components/arcgis-building-level-item/customElement.d.ts +21 -22
- package/dist/components/arcgis-building-level-item/customElement.js +1 -1
- package/dist/components/arcgis-building-level-picker/customElement.js +2 -2
- package/dist/components/arcgis-building-phase-picker/customElement.js +2 -2
- package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +291 -311
- package/dist/components/arcgis-catalog-layer-list/customElement.js +2 -2
- package/dist/components/arcgis-clipboard/customElement.d.ts +50 -0
- package/dist/components/arcgis-clipboard/customElement.js +74 -0
- package/dist/components/{arcgis-layer-list-item/index.d.ts → arcgis-clipboard/index.js} +5 -6
- package/dist/components/arcgis-color-select/customElement.d.ts +29 -21
- package/dist/components/arcgis-color-select/customElement.js +1 -1
- package/dist/components/arcgis-color-select/index.d.ts +0 -4
- package/dist/components/arcgis-compass/customElement.d.ts +106 -105
- package/dist/components/arcgis-compass/customElement.js +2 -2
- package/dist/components/arcgis-compass/index.d.ts +0 -2
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +349 -286
- package/dist/components/arcgis-coordinate-conversion/customElement.js +2 -2
- package/dist/components/arcgis-coordinate-conversion/index.d.ts +0 -7
- package/dist/components/arcgis-coordinate-conversion/types.d.ts +2 -20
- package/dist/components/arcgis-daylight/customElement.d.ts +229 -193
- package/dist/components/arcgis-daylight/customElement.js +2 -2
- package/dist/components/arcgis-daylight/daylight-utils.d.ts +7 -27
- package/dist/components/arcgis-daylight/index.d.ts +0 -9
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +146 -123
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +3 -3
- package/dist/components/arcgis-direct-line-measurement-3d/index.d.ts +0 -3
- package/dist/components/arcgis-directional-pad/customElement.d.ts +134 -124
- package/dist/components/arcgis-directional-pad/customElement.js +1 -1
- package/dist/components/arcgis-directional-pad/index.d.ts +0 -5
- package/dist/components/arcgis-directions/customElement.d.ts +202 -264
- package/dist/components/arcgis-directions/customElement.js +2 -2
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +149 -123
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +3 -3
- package/dist/components/arcgis-distance-measurement-2d/index.d.ts +0 -3
- package/dist/components/arcgis-editor/customElement.d.ts +321 -340
- package/dist/components/arcgis-editor/customElement.js +3 -3
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +432 -281
- package/dist/components/arcgis-elevation-profile/customElement.js +2 -2
- package/dist/components/arcgis-elevation-profile/index.d.ts +0 -5
- package/dist/components/arcgis-elevation-profile-legend/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-settings/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-statistics/customElement.js +1 -1
- package/dist/components/arcgis-expand/ExpandViewModel.d.ts +43 -47
- package/dist/components/arcgis-expand/customElement.d.ts +206 -207
- package/dist/components/arcgis-expand/customElement.js +2 -2
- package/dist/components/arcgis-expand/index.d.ts +0 -4
- package/dist/components/arcgis-feature/customElement.d.ts +429 -320
- package/dist/components/arcgis-feature/customElement.js +2 -2
- package/dist/components/arcgis-feature/index.d.ts +0 -12
- package/dist/components/arcgis-feature-attachments/customElement.js +10 -10
- package/dist/components/arcgis-feature-content/customElement.js +23 -23
- package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
- package/dist/components/arcgis-feature-expression/customElement.js +69 -185
- package/dist/components/arcgis-feature-fields/customElement.js +7 -6
- package/dist/components/arcgis-feature-form/customElement.d.ts +202 -217
- package/dist/components/arcgis-feature-form/customElement.js +3 -3
- package/dist/components/arcgis-feature-image/customElement.d.ts +51 -0
- package/dist/components/arcgis-feature-image/customElement.js +145 -0
- package/dist/components/arcgis-feature-media/customElement.js +6 -6
- package/dist/components/arcgis-feature-relationship/customElement.js +2 -2
- package/dist/components/arcgis-feature-table/customElement.d.ts +950 -958
- package/dist/components/arcgis-feature-table/customElement.js +2 -2
- package/dist/components/arcgis-feature-templates/customElement.d.ts +201 -220
- package/dist/components/arcgis-feature-templates/customElement.js +8 -8
- package/dist/components/arcgis-feature-title/customElement.d.ts +32 -0
- package/dist/components/arcgis-feature-title/customElement.js +99 -0
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.d.ts +728 -674
- package/dist/components/arcgis-features/customElement.js +3 -3
- package/dist/components/arcgis-features/index.d.ts +0 -13
- package/dist/components/arcgis-floor-filter/customElement.d.ts +87 -111
- package/dist/components/arcgis-floor-filter/customElement.js +2 -2
- package/dist/components/arcgis-fullscreen/customElement.d.ts +60 -59
- package/dist/components/arcgis-fullscreen/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/index.d.ts +0 -1
- package/dist/components/arcgis-grid-controls/customElement.d.ts +328 -301
- package/dist/components/arcgis-grid-controls/customElement.js +1 -1
- package/dist/components/arcgis-grid-controls/index.d.ts +0 -9
- package/dist/components/arcgis-grid-controls/types.d.ts +1 -2
- package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +352 -376
- package/dist/components/arcgis-histogram-range-slider/customElement.js +2 -2
- package/dist/components/arcgis-home/customElement.d.ts +130 -131
- package/dist/components/arcgis-home/customElement.js +2 -2
- package/dist/components/arcgis-home/index.d.ts +0 -1
- package/dist/components/arcgis-labeled-switch/customElement.js +2 -2
- package/dist/components/arcgis-layer-list/customElement.d.ts +405 -424
- package/dist/components/arcgis-layer-list/customElement.js +2 -2
- package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
- package/dist/components/arcgis-legend/customElement.d.ts +372 -259
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-legend/index.d.ts +0 -2
- package/dist/components/arcgis-legend-card-color-ramp/customElement.js +3 -3
- package/dist/components/arcgis-legend-card-element/customElement.js +2 -2
- package/dist/components/arcgis-legend-card-size-ramp/customElement.js +2 -2
- package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +2 -2
- package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +2 -2
- package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +2 -2
- package/dist/components/arcgis-legend-classic-element/customElement.js +2 -2
- package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +2 -2
- package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.js +2 -2
- package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +2 -2
- package/dist/components/arcgis-legend-classic-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-relationship-ramp/customElement.js +2 -2
- package/dist/components/arcgis-legend-spike-ramp/customElement.js +2 -2
- package/dist/components/arcgis-line-of-sight/customElement.d.ts +149 -131
- package/dist/components/arcgis-line-of-sight/customElement.js +2 -2
- package/dist/components/arcgis-line-of-sight/index.d.ts +0 -1
- package/dist/components/arcgis-link-chart/customElement.d.ts +899 -916
- package/dist/components/arcgis-link-chart/customElement.js +2 -2
- package/dist/components/arcgis-link-chart/index.d.ts +0 -2
- package/dist/components/arcgis-link-chart/index.js +1 -1
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.d.ts +163 -150
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +2 -2
- package/dist/components/arcgis-link-chart-layout-switcher/index.d.ts +0 -6
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.d.ts +67 -76
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.js +2 -2
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/index.d.ts +0 -1
- package/dist/components/arcgis-locate/LocateViewModel.d.ts +1 -20
- package/dist/components/arcgis-locate/customElement.d.ts +147 -135
- package/dist/components/arcgis-locate/customElement.js +2 -2
- package/dist/components/arcgis-locate/index.d.ts +0 -2
- package/dist/components/arcgis-map/customElement.d.ts +1251 -1266
- package/dist/components/arcgis-map/customElement.js +2 -2
- package/dist/components/arcgis-map/index.d.ts +0 -2
- package/dist/components/arcgis-map/index.js +1 -1
- package/dist/components/arcgis-measurement/customElement.d.ts +153 -181
- package/dist/components/arcgis-measurement/customElement.js +2 -2
- package/dist/components/arcgis-measurement-content/customElement.js +1 -1
- package/dist/components/arcgis-multi-feature-form/customElement.d.ts +92 -0
- package/dist/components/arcgis-multi-feature-form/customElement.js +52 -0
- package/dist/components/arcgis-navigation-toggle/customElement.d.ts +99 -96
- package/dist/components/arcgis-navigation-toggle/customElement.js +2 -2
- package/dist/components/arcgis-navigation-toggle/index.d.ts +0 -2
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +161 -201
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +2 -2
- package/dist/components/arcgis-paste/ClipboardMove.d.ts +25 -0
- package/dist/components/arcgis-paste/PasteViewModel.d.ts +303 -0
- package/dist/components/arcgis-paste/customElement.d.ts +275 -0
- package/dist/components/arcgis-paste/customElement.js +1295 -0
- package/dist/components/arcgis-paste/index.js +23 -0
- package/dist/components/arcgis-popup/customElement.d.ts +635 -621
- package/dist/components/arcgis-popup/customElement.js +1 -1
- package/dist/components/arcgis-popup/index.d.ts +0 -1
- package/dist/components/arcgis-popup/types.d.ts +18 -34
- package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +35 -32
- package/dist/components/arcgis-presentation/customElement.d.ts +58 -51
- package/dist/components/arcgis-presentation/customElement.js +1 -1
- package/dist/components/arcgis-presentation/index.d.ts +0 -1
- package/dist/components/arcgis-print/customElement.d.ts +509 -435
- package/dist/components/arcgis-print/customElement.js +1 -1
- package/dist/components/arcgis-print/index.d.ts +0 -5
- package/dist/components/arcgis-print/types.d.ts +2 -39
- package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
- package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
- package/dist/components/arcgis-print-export-button/customElement.js +1 -1
- package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-format-select/customElement.js +2 -2
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-main-panel/customElement.js +2 -2
- package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
- package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
- package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
- package/dist/components/arcgis-print-template-select/customElement.js +2 -2
- package/dist/components/arcgis-print-template-selector/customElement.js +2 -2
- package/dist/components/arcgis-scale-bar/customElement.d.ts +70 -76
- package/dist/components/arcgis-scale-bar/customElement.js +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.d.ts +138 -160
- package/dist/components/arcgis-scale-range-slider/customElement.js +2 -2
- package/dist/components/arcgis-scene/customElement.d.ts +1146 -1160
- package/dist/components/arcgis-scene/customElement.js +2 -2
- package/dist/components/arcgis-scene/index.d.ts +0 -2
- package/dist/components/arcgis-scene/index.js +1 -1
- package/dist/components/arcgis-search/customElement.d.ts +475 -457
- package/dist/components/arcgis-search/customElement.js +2 -2
- package/dist/components/arcgis-search/index.d.ts +0 -9
- package/dist/components/arcgis-search-result-renderer/customElement.d.ts +24 -26
- package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
- package/dist/components/arcgis-search-result-renderer/index.d.ts +0 -4
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +372 -311
- package/dist/components/arcgis-shadow-cast/customElement.js +81 -86
- package/dist/components/arcgis-shadow-cast/index.d.ts +0 -9
- package/dist/components/arcgis-shadow-cast/index.js +1 -1
- package/dist/components/arcgis-shadow-cast-discrete-config/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-min-duration-config/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-total-duration-config/customElement.js +1 -1
- package/dist/components/arcgis-sketch/customElement.d.ts +453 -470
- package/dist/components/arcgis-sketch/customElement.js +2 -2
- package/dist/components/arcgis-slice/SliceViewModel.d.ts +3 -50
- package/dist/components/arcgis-slice/customElement.d.ts +238 -189
- package/dist/components/arcgis-slice/customElement.js +2 -2
- package/dist/components/arcgis-slice/index.d.ts +0 -4
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.d.ts +141 -171
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.js +2 -2
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.d.ts +164 -194
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.js +2 -2
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.d.ts +152 -182
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.js +2 -2
- package/dist/components/arcgis-slider-color-legacy/customElement.d.ts +139 -167
- package/dist/components/arcgis-slider-color-legacy/customElement.js +2 -2
- package/dist/components/arcgis-slider-color-size-legacy/customElement.d.ts +151 -179
- package/dist/components/arcgis-slider-color-size-legacy/customElement.js +2 -2
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.d.ts +106 -131
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.js +2 -2
- package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +157 -184
- package/dist/components/arcgis-slider-opacity-legacy/customElement.js +2 -2
- package/dist/components/arcgis-slider-size-legacy/customElement.d.ts +166 -196
- package/dist/components/arcgis-slider-size-legacy/customElement.js +2 -2
- package/dist/components/arcgis-spinner/customElement.js +1 -1
- package/dist/components/arcgis-swipe/customElement.d.ts +164 -166
- package/dist/components/arcgis-swipe/customElement.js +1 -1
- package/dist/components/arcgis-table-list/customElement.d.ts +292 -313
- package/dist/components/arcgis-table-list/customElement.js +2 -2
- package/dist/components/arcgis-time-of-day-slider/customElement.d.ts +32 -35
- package/dist/components/arcgis-time-of-day-slider/customElement.js +7 -7
- package/dist/components/arcgis-time-of-day-slider/index.d.ts +0 -2
- package/dist/components/arcgis-time-slider/customElement.d.ts +496 -517
- package/dist/components/arcgis-time-slider/customElement.js +2 -2
- package/dist/components/arcgis-time-zone-label/customElement.d.ts +75 -74
- package/dist/components/arcgis-time-zone-label/customElement.js +2 -2
- package/dist/components/arcgis-time-zone-label/index.d.ts +0 -4
- package/dist/components/arcgis-track/customElement.d.ts +225 -217
- package/dist/components/arcgis-track/customElement.js +2 -2
- package/dist/components/arcgis-track/index.d.ts +0 -2
- package/dist/components/arcgis-unit-select/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-associations/customElement.d.ts +230 -253
- package/dist/components/arcgis-utility-network-associations/customElement.js +2 -2
- package/dist/components/arcgis-utility-network-subnetwork-info/customElement.d.ts +17 -8
- package/dist/components/arcgis-utility-network-subnetwork-info/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.d.ts +223 -246
- package/dist/components/arcgis-utility-network-trace/customElement.js +2 -2
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +210 -135
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/index.d.ts +0 -10
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +111 -67
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-inputs/index.d.ts +0 -13
- package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +129 -69
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-location/index.d.ts +0 -3
- package/dist/components/arcgis-utility-network-trace-location-list/customElement.d.ts +28 -11
- package/dist/components/arcgis-utility-network-trace-location-list/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-location-list/index.d.ts +0 -8
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +134 -57
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-results/index.d.ts +0 -11
- package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +81 -110
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +2 -2
- package/dist/components/arcgis-value-picker/customElement.d.ts +294 -323
- package/dist/components/arcgis-value-picker/customElement.js +2 -2
- package/dist/components/arcgis-version-management/customElement.d.ts +231 -190
- package/dist/components/arcgis-version-management/customElement.js +1 -1
- package/dist/components/arcgis-version-management/index.d.ts +0 -6
- package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
- package/dist/components/arcgis-video/customElement.d.ts +59 -60
- package/dist/components/arcgis-video/customElement.js +1 -1
- package/dist/components/arcgis-video/index.d.ts +0 -1
- package/dist/components/arcgis-video-player/customElement.d.ts +186 -158
- package/dist/components/arcgis-video-player/customElement.js +1 -1
- package/dist/components/arcgis-video-player/index.d.ts +0 -8
- package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
- package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
- package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +317 -258
- package/dist/components/arcgis-volume-measurement/customElement.js +3 -3
- package/dist/components/arcgis-volume-measurement/index.d.ts +0 -10
- package/dist/components/arcgis-weather/WeatherViewModel.d.ts +1 -41
- package/dist/components/arcgis-weather/customElement.d.ts +207 -168
- package/dist/components/arcgis-weather/customElement.js +1 -1
- package/dist/components/arcgis-weather/index.d.ts +0 -5
- package/dist/components/arcgis-webgl-error/customElement.d.ts +20 -11
- package/dist/components/arcgis-webgl-error/customElement.js +1 -1
- package/dist/components/arcgis-webgl-error/index.d.ts +0 -2
- package/dist/components/arcgis-zoom/customElement.d.ts +94 -92
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- package/dist/components/arcgis-zoom/index.d.ts +0 -1
- package/dist/components/support/goTo.d.ts +32 -24
- package/dist/components/types.d.ts +1 -5
- package/dist/controllers/useArcgisLoadError.d.ts +8 -26
- package/dist/docs/api.json +1 -72767
- package/dist/docs/docs.json +1 -65418
- package/dist/docs/vscode.css-custom-data.json +1 -87
- package/dist/docs/vscode.html-custom-data.json +1 -7909
- package/dist/docs/web-types.json +1 -19962
- package/dist/index.d.ts +65 -89
- package/dist/index.js +1 -1
- package/dist/loader.js +87 -82
- package/dist/support/heading.d.ts +1 -13
- package/dist/support/measurementUtils.d.ts +1 -40
- package/dist/types/lumina.d.ts +502 -466
- package/dist/types/preact.d.ts +507 -466
- package/dist/types/react.d.ts +512 -466
- package/dist/types/stencil.d.ts +502 -466
- package/dist/utils/action-utils.d.ts +3 -35
- package/dist/utils/component-utils.d.ts +5 -74
- package/package.json +6 -5
- package/dist/cdn/2HU7IL3Y.js +0 -4
- package/dist/cdn/76TJC24F.js +0 -4
- package/dist/cdn/CASMSIDZ.js +0 -4
- package/dist/cdn/GD4HRNGB.js +0 -4
- package/dist/cdn/KNWNUWMD.js +0 -4
- package/dist/cdn/MKT7QGRC.js +0 -4
- package/dist/cdn/NIISXSEZ.js +0 -4
- package/dist/cdn/PA2SUTC3.js +0 -4
- package/dist/cdn/R4UZXNWE.js +0 -4
- package/dist/cdn/R5Q5FIU7.js +0 -4
- package/dist/cdn/SI54OWMI.js +0 -4
- package/dist/cdn/UBIVNOPC.js +0 -4
- package/dist/cdn/UHVYHEDA.js +0 -4
- package/dist/cdn/V2Y5PFC5.js +0 -4
- package/dist/cdn/W4DH3PT2.js +0 -4
- package/dist/cdn/WADVBELC.js +0 -4
- package/dist/cdn/XT6SI4BB.js +0 -5
- package/dist/cdn/YSQQSXGX.js +0 -4
- package/dist/cdn/ZB45BS6W.js +0 -6
- package/dist/components/arcgis-area-measurement-2d/AreaMeasurement2dViewModel.d.ts +0 -40
- package/dist/components/arcgis-area-measurement-3d/AreaMeasurement3dViewModel.d.ts +0 -39
- package/dist/components/arcgis-basemap-gallery/basemap-gallery-resources.d.ts +0 -15
- package/dist/components/arcgis-basemap-gallery-item/customElement.d.ts +0 -18
- package/dist/components/arcgis-basemap-gallery-item/index.d.ts +0 -3
- package/dist/components/arcgis-basemap-toggle/css.d.ts +0 -11
- package/dist/components/arcgis-bookmarks/css.d.ts +0 -22
- package/dist/components/arcgis-bookmarks/user-state.d.ts +0 -26
- package/dist/components/arcgis-building-discipline-tree/building-discipline-view-model.d.ts +0 -76
- package/dist/components/arcgis-building-discipline-tree/customElement.d.ts +0 -15
- package/dist/components/arcgis-building-discipline-tree/index.d.ts +0 -5
- package/dist/components/arcgis-building-discipline-tree/layer-tree-node.d.ts +0 -80
- package/dist/components/arcgis-building-explorer/building-filter/BuildingFilterController.d.ts +0 -14
- package/dist/components/arcgis-building-explorer/building-filter/BuildingLevel.d.ts +0 -15
- package/dist/components/arcgis-building-explorer/building-filter/BuildingNumericFilterViewModel.d.ts +0 -119
- package/dist/components/arcgis-building-explorer/building-filter/BuildingPhase.d.ts +0 -28
- package/dist/components/arcgis-building-explorer/support/building-layer-utils.d.ts +0 -61
- package/dist/components/arcgis-building-explorer/support/filter-utils.d.ts +0 -60
- package/dist/components/arcgis-building-explorer/support/layer-utils.d.ts +0 -8
- package/dist/components/arcgis-building-explorer/support/types.d.ts +0 -25
- package/dist/components/arcgis-building-explorer/support/validation.d.ts +0 -30
- package/dist/components/arcgis-building-level-picker/constants.d.ts +0 -48
- package/dist/components/arcgis-building-level-picker/customElement.d.ts +0 -20
- package/dist/components/arcgis-building-level-picker/index.d.ts +0 -4
- package/dist/components/arcgis-building-phase-picker/customElement.d.ts +0 -19
- package/dist/components/arcgis-building-phase-picker/index.d.ts +0 -2
- package/dist/components/arcgis-coordinate-conversion/css.d.ts +0 -26
- package/dist/components/arcgis-daylight/animation.d.ts +0 -15
- package/dist/components/arcgis-daylight/daylight-time-slider.d.ts +0 -10
- package/dist/components/arcgis-direct-line-measurement-3d/DirectLineMeasurement3dViewModel.d.ts +0 -41
- package/dist/components/arcgis-directional-pad/constants.d.ts +0 -10
- package/dist/components/arcgis-directional-pad/css.d.ts +0 -10
- package/dist/components/arcgis-directional-pad/utils.d.ts +0 -25
- package/dist/components/arcgis-distance-measurement-2d/DistanceMeasurement2dViewModel.d.ts +0 -39
- package/dist/components/arcgis-elevation-profile/ElevationProfileViewModel.d.ts +0 -84
- package/dist/components/arcgis-elevation-profile/geometryUtils.d.ts +0 -8
- package/dist/components/arcgis-elevation-profile/types.d.ts +0 -162
- package/dist/components/arcgis-elevation-profile-legend/customElement.d.ts +0 -18
- package/dist/components/arcgis-elevation-profile-legend/index.d.ts +0 -2
- package/dist/components/arcgis-elevation-profile-legend-item/customElement.d.ts +0 -26
- package/dist/components/arcgis-elevation-profile-legend-item/index.d.ts +0 -5
- package/dist/components/arcgis-elevation-profile-settings/customElement.d.ts +0 -28
- package/dist/components/arcgis-elevation-profile-settings/index.d.ts +0 -6
- package/dist/components/arcgis-elevation-profile-statistics/customElement.d.ts +0 -20
- package/dist/components/arcgis-elevation-profile-statistics/index.d.ts +0 -2
- package/dist/components/arcgis-feature-attachments/customElement.d.ts +0 -25
- package/dist/components/arcgis-feature-attachments/index.d.ts +0 -8
- package/dist/components/arcgis-feature-content/customElement.d.ts +0 -11
- package/dist/components/arcgis-feature-content/index.d.ts +0 -2
- package/dist/components/arcgis-feature-element-info/customElement.d.ts +0 -11
- package/dist/components/arcgis-feature-expression/customElement.d.ts +0 -21
- package/dist/components/arcgis-feature-expression/index.d.ts +0 -5
- package/dist/components/arcgis-feature-fields/customElement.d.ts +0 -21
- package/dist/components/arcgis-feature-fields/index.d.ts +0 -2
- package/dist/components/arcgis-feature-media/chartCommon.d.ts +0 -1
- package/dist/components/arcgis-feature-media/customElement.d.ts +0 -36
- package/dist/components/arcgis-feature-media/index.d.ts +0 -3
- package/dist/components/arcgis-feature-relationship/customElement.d.ts +0 -87
- package/dist/components/arcgis-feature-relationship/index.d.ts +0 -10
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.d.ts +0 -24
- package/dist/components/arcgis-feature-utility-network-association-list/index.d.ts +0 -8
- package/dist/components/arcgis-feature-utility-network-associations/customElement.d.ts +0 -73
- package/dist/components/arcgis-feature-utility-network-associations/index.d.ts +0 -8
- package/dist/components/arcgis-features/css.d.ts +0 -20
- package/dist/components/arcgis-grid-controls/gridUtils.d.ts +0 -16
- package/dist/components/arcgis-labeled-switch/customElement.d.ts +0 -43
- package/dist/components/arcgis-labeled-switch/index.d.ts +0 -5
- package/dist/components/arcgis-layer-list/css.d.ts +0 -22
- package/dist/components/arcgis-layer-list-item/customElement.d.ts +0 -70
- package/dist/components/arcgis-legend/support/svgGlobalState.d.ts +0 -7
- package/dist/components/arcgis-legend/support/svgUtils.d.ts +0 -173
- package/dist/components/arcgis-legend/support/titleUtils.d.ts +0 -6
- package/dist/components/arcgis-legend/support/univariateUtils.d.ts +0 -33
- package/dist/components/arcgis-legend/support/utils.d.ts +0 -10
- package/dist/components/arcgis-legend/types.d.ts +0 -0
- package/dist/components/arcgis-legend-card-color-ramp/customElement.d.ts +0 -13
- package/dist/components/arcgis-legend-card-element/customElement.d.ts +0 -18
- package/dist/components/arcgis-legend-card-element/index.d.ts +0 -7
- package/dist/components/arcgis-legend-card-size-ramp/customElement.d.ts +0 -14
- package/dist/components/arcgis-legend-card-size-ramp/index.d.ts +0 -2
- package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.d.ts +0 -13
- package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.d.ts +0 -13
- package/dist/components/arcgis-legend-card-view/customElement.d.ts +0 -23
- package/dist/components/arcgis-legend-card-view/index.d.ts +0 -4
- package/dist/components/arcgis-legend-classic-color-ramp/customElement.d.ts +0 -12
- package/dist/components/arcgis-legend-classic-element/customElement.d.ts +0 -12
- package/dist/components/arcgis-legend-classic-element/index.d.ts +0 -7
- package/dist/components/arcgis-legend-classic-size-ramp/customElement.d.ts +0 -10
- package/dist/components/arcgis-legend-classic-size-ramp/index.d.ts +0 -2
- package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.d.ts +0 -13
- package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.d.ts +0 -13
- package/dist/components/arcgis-legend-classic-view/customElement.d.ts +0 -15
- package/dist/components/arcgis-legend-classic-view/index.d.ts +0 -2
- package/dist/components/arcgis-legend-relationship-ramp/customElement.d.ts +0 -12
- package/dist/components/arcgis-legend-spike-ramp/customElement.d.ts +0 -10
- package/dist/components/arcgis-legend-spike-ramp/index.d.ts +0 -1
- package/dist/components/arcgis-line-of-sight/LineOfSightViewModel.d.ts +0 -14
- package/dist/components/arcgis-line-of-sight/css.d.ts +0 -9
- package/dist/components/arcgis-measurement-content/customElement.d.ts +0 -22
- package/dist/components/arcgis-measurement-content/index.d.ts +0 -2
- package/dist/components/arcgis-popup/css.d.ts +0 -31
- package/dist/components/arcgis-print/utils.d.ts +0 -12
- package/dist/components/arcgis-print-custom-text-elements/customElement.d.ts +0 -8
- package/dist/components/arcgis-print-custom-text-elements/index.d.ts +0 -3
- package/dist/components/arcgis-print-dpi-input/customElement.d.ts +0 -10
- package/dist/components/arcgis-print-dpi-input/index.d.ts +0 -3
- package/dist/components/arcgis-print-export-button/customElement.d.ts +0 -12
- package/dist/components/arcgis-print-export-button/index.d.ts +0 -2
- package/dist/components/arcgis-print-exports-panel/customElement.d.ts +0 -15
- package/dist/components/arcgis-print-exports-panel/index.d.ts +0 -7
- package/dist/components/arcgis-print-format-select/customElement.d.ts +0 -11
- package/dist/components/arcgis-print-format-select/index.d.ts +0 -4
- package/dist/components/arcgis-print-layout-advanced-options/customElement.d.ts +0 -12
- package/dist/components/arcgis-print-layout-advanced-options/index.d.ts +0 -10
- package/dist/components/arcgis-print-layout-panel/customElement.d.ts +0 -16
- package/dist/components/arcgis-print-layout-panel/index.d.ts +0 -9
- package/dist/components/arcgis-print-main-panel/customElement.d.ts +0 -20
- package/dist/components/arcgis-print-main-panel/index.d.ts +0 -9
- package/dist/components/arcgis-print-map-only-advanced-options/customElement.d.ts +0 -10
- package/dist/components/arcgis-print-map-only-advanced-options/index.d.ts +0 -7
- package/dist/components/arcgis-print-map-only-panel/customElement.d.ts +0 -13
- package/dist/components/arcgis-print-map-only-panel/index.d.ts +0 -10
- package/dist/components/arcgis-print-out-spatial-reference-input/customElement.d.ts +0 -11
- package/dist/components/arcgis-print-out-spatial-reference-input/index.d.ts +0 -4
- package/dist/components/arcgis-print-preview-input/customElement.d.ts +0 -10
- package/dist/components/arcgis-print-preview-input/index.d.ts +0 -3
- package/dist/components/arcgis-print-scale-section/customElement.d.ts +0 -11
- package/dist/components/arcgis-print-scale-section/index.d.ts +0 -5
- package/dist/components/arcgis-print-template-select/customElement.d.ts +0 -11
- package/dist/components/arcgis-print-template-select/index.d.ts +0 -3
- package/dist/components/arcgis-print-template-selector/customElement.d.ts +0 -13
- package/dist/components/arcgis-print-template-selector/index.d.ts +0 -8
- package/dist/components/arcgis-scale-bar/css.d.ts +0 -17
- package/dist/components/arcgis-search/css.d.ts +0 -8
- package/dist/components/arcgis-search-result-renderer/css.d.ts +0 -4
- package/dist/components/arcgis-shadow-cast/ShadowCastViewModel.d.ts +0 -45
- package/dist/components/arcgis-shadow-cast/constants.d.ts +0 -2
- package/dist/components/arcgis-shadow-cast/types.d.ts +0 -55
- package/dist/components/arcgis-shadow-cast-discrete-config/customElement.d.ts +0 -20
- package/dist/components/arcgis-shadow-cast-discrete-config/index.d.ts +0 -5
- package/dist/components/arcgis-shadow-cast-min-duration-config/customElement.d.ts +0 -31
- package/dist/components/arcgis-shadow-cast-min-duration-config/index.d.ts +0 -6
- package/dist/components/arcgis-shadow-cast-total-duration-config/customElement.d.ts +0 -20
- package/dist/components/arcgis-shadow-cast-total-duration-config/index.d.ts +0 -5
- package/dist/components/arcgis-slice/css.d.ts +0 -14
- package/dist/components/arcgis-spinner/customElement.d.ts +0 -17
- package/dist/components/arcgis-spinner/index.d.ts +0 -2
- package/dist/components/arcgis-unit-select/customElement.d.ts +0 -33
- package/dist/components/arcgis-unit-select/index.d.ts +0 -4
- package/dist/components/arcgis-utility-network-association-list/customElement.d.ts +0 -27
- package/dist/components/arcgis-utility-network-association-list/index.d.ts +0 -4
- package/dist/components/arcgis-utility-network-association-list/types.d.ts +0 -2
- package/dist/components/arcgis-version-management-service-item/customElement.d.ts +0 -52
- package/dist/components/arcgis-version-management-service-item/index.d.ts +0 -8
- package/dist/components/arcgis-version-management-version-list/customElement.d.ts +0 -51
- package/dist/components/arcgis-version-management-version-list/index.d.ts +0 -13
- package/dist/components/arcgis-version-management-version-properties/customElement.d.ts +0 -37
- package/dist/components/arcgis-version-management-version-properties/index.d.ts +0 -11
- package/dist/components/arcgis-video-player-action-bar/customElement.d.ts +0 -15
- package/dist/components/arcgis-video-player-action-bar/index.d.ts +0 -4
- package/dist/components/arcgis-video-player-actions-group/customElement.d.ts +0 -12
- package/dist/components/arcgis-video-player-actions-group/index.d.ts +0 -3
- package/dist/components/arcgis-video-player-controls-group/customElement.d.ts +0 -11
- package/dist/components/arcgis-video-player-controls-group/index.d.ts +0 -9
- package/dist/components/arcgis-video-player-metadata/customElement.d.ts +0 -10
- package/dist/components/arcgis-video-player-metadata/index.d.ts +0 -5
- package/dist/components/arcgis-video-player-settings/customElement.d.ts +0 -17
- package/dist/components/arcgis-video-player-settings/index.d.ts +0 -12
- package/dist/components/arcgis-video-player-slider/customElement.d.ts +0 -10
- package/dist/components/arcgis-video-player-slider/index.d.ts +0 -2
- package/dist/components/arcgis-volume-measurement/VolumeMeasurementViewModel.d.ts +0 -95
- package/dist/components/arcgis-volume-measurement/volume-measurement-test-utils.d.ts +0 -1
- package/dist/components/arcgis-weather/LabeledSlider.d.ts +0 -8
- package/dist/components/arcgis-zoom/css.d.ts +0 -7
- package/dist/components/arcgis-zoom/utils.d.ts +0 -4
- package/dist/components/support/utility-components/component-wrapper.d.ts +0 -10
- package/dist/components/support/utility-components/visible-element.d.ts +0 -5
- package/dist/controllers/Handles.d.ts +0 -72
- package/dist/controllers/screenLocation.d.ts +0 -21
- package/dist/controllers/uiController.d.ts +0 -37
- package/dist/controllers/useArcgisViewReadyError.d.ts +0 -17
- package/dist/controllers/useCloseEvent.d.ts +0 -6
- package/dist/controllers/useHandles.d.ts +0 -88
- package/dist/controllers/useT9n.d.ts +0 -1
- package/dist/controllers/useView.d.ts +0 -37
- package/dist/controllers/useViewModel.d.ts +0 -57
- package/dist/controllers/useWidget.d.ts +0 -71
- package/dist/geolocation/GeolocationPositioning.d.ts +0 -55
- package/dist/runtime.d.ts +0 -6
- package/dist/support/AnalysisViewModel.d.ts +0 -164
- package/dist/support/basemapUtils.d.ts +0 -3
- package/dist/support/earth-utils.d.ts +0 -9
- package/dist/support/handle.d.ts +0 -1
- package/dist/support/maybe.d.ts +0 -10
- package/dist/support/resources.d.ts +0 -31
- package/dist/support/slotArgs.d.ts +0 -8
- package/dist/support/slots.d.ts +0 -10
- package/dist/support/sun-calc-lib/SunCalc.d.ts +0 -25
- package/dist/support/time-utils.d.ts +0 -43
- package/dist/types.d.ts +0 -31
- package/dist/utils/actions.d.ts +0 -7
- package/dist/utils/async-utils.d.ts +0 -85
- package/dist/utils/attachment-utils.d.ts +0 -2
- package/dist/utils/chart-utils.d.ts +0 -6
- package/dist/utils/disconnected.d.ts +0 -3
- package/dist/utils/feature-form-utils.d.ts +0 -6
- package/dist/utils/feature-utils.d.ts +0 -48
- package/dist/utils/geolocation-utils.d.ts +0 -14
- package/dist/utils/geometry-utils.d.ts +0 -5
- package/dist/utils/globalCss.d.ts +0 -43
- package/dist/utils/highlight-utils.d.ts +0 -22
- package/dist/utils/layer-list-utils.d.ts +0 -42
- package/dist/utils/layer-utils.d.ts +0 -4
- package/dist/utils/legacyIcon.d.ts +0 -100
- package/dist/utils/math-utils.d.ts +0 -6
- package/dist/utils/related-feature-utils.d.ts +0 -6
- package/dist/utils/screen-utils.d.ts +0 -2
- package/dist/utils/signal-utils.d.ts +0 -17
- package/dist/utils/types.d.ts +0 -5
- package/dist/utils/uri-utils.d.ts +0 -4
- /package/dist/components/{arcgis-feature-element-info → arcgis-clipboard}/index.d.ts +0 -0
- /package/dist/components/{arcgis-legend-card-color-ramp → arcgis-feature-image}/index.d.ts +0 -0
- /package/dist/components/{arcgis-legend-card-univariate-above-and-below-ramp/index.d.ts → arcgis-feature-image/index.js} +0 -0
- /package/dist/components/{arcgis-legend-card-univariate-color-size-ramp → arcgis-feature-title}/index.d.ts +0 -0
- /package/dist/components/{arcgis-legend-classic-color-ramp/index.d.ts → arcgis-feature-title/index.js} +0 -0
- /package/dist/components/{arcgis-legend-classic-univariate-above-and-below-ramp → arcgis-multi-feature-form}/index.d.ts +0 -0
- /package/dist/components/{arcgis-legend-classic-univariate-color-size-ramp/index.d.ts → arcgis-multi-feature-form/index.js} +0 -0
- /package/dist/components/{arcgis-legend-relationship-ramp → arcgis-paste}/index.d.ts +0 -0
|
@@ -0,0 +1,1295 @@
|
|
|
1
|
+
import { c as q } from "../../chunks/runtime.js";
|
|
2
|
+
import { css as X, html as n, svg as S } from "lit";
|
|
3
|
+
import { keyed as g } from "lit/directives/keyed.js";
|
|
4
|
+
import { LitElement as Z, createEvent as _, safeStyleMap as k, nothing as J } from "@arcgis/lumina";
|
|
5
|
+
import { u as K } from "../../chunks/useT9n.js";
|
|
6
|
+
import { m as Q } from "../../chunks/useViewModel.js";
|
|
7
|
+
import { property as o, subclass as D } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
8
|
+
import W from "@arcgis/core/core/Accessor.js";
|
|
9
|
+
import F from "@arcgis/core/Graphic.js";
|
|
10
|
+
import { getApplicationClipboard as Y } from "@arcgis/core/applications/Components/clipboard.js";
|
|
11
|
+
import ee from "@arcgis/core/layers/GraphicsLayer.js";
|
|
12
|
+
import { g as te, a as ie } from "../../chunks/clipoardSymbolHelper.js";
|
|
13
|
+
import $ from "@arcgis/core/core/Collection.js";
|
|
14
|
+
import { getFullTemplate as G, isSharedTemplate as L, getCreationAttributes as H, isSharedTemplateOrMetadata as ae } from "@arcgis/core/applications/Components/templateUtils.js";
|
|
15
|
+
import { createApplySetModifyItem as x, createApplySet as A, createFeatureStateProvider as P, createApplySetAddItem as I, writeApplySetToService as se } from "@arcgis/core/applications/Components/applySetUtils.js";
|
|
16
|
+
import { whenOnce as N, watch as E } from "@arcgis/core/core/reactiveUtils.js";
|
|
17
|
+
import re from "@arcgis/core/widgets/FeatureForm/FeatureFormViewModel.js";
|
|
18
|
+
import { f as T } from "../../chunks/layer-utils.js";
|
|
19
|
+
import "@arcgis/toolkit/function";
|
|
20
|
+
import { substitute as w } from "@arcgis/core/intl.js";
|
|
21
|
+
import { createRef as z, ref as O } from "lit/directives/ref.js";
|
|
22
|
+
import "../arcgis-multi-feature-form/customElement.js";
|
|
23
|
+
import { createGraphicsMover as oe } from "@arcgis/core/applications/Components/editUtils.js";
|
|
24
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
25
|
+
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
26
|
+
v5.0.0-next.137 */
|
|
27
|
+
const le = X`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{max-width:fit-content;display:flex}.arcgis-paste{height:var(--arcgis-paste-height, 300px);width:var(--arcgis-paste-width, 300px);flex:1}.hidden{display:none}.flex-row{flex-direction:row}.justify-center{justify-content:center}.h-full{height:100%}.w-full{width:100%}.flex{display:flex}.text-center{text-align:center}.pad-contents{padding:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md))}.pad-start-end{padding-left:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-right:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md))}.gallery-content{padding-top:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-bottom:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));display:flex;row-gap:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));flex-direction:column}.chip-indent{margin-left:5px;margin-right:5px}.merge-split-view-container{display:flex;flex-direction:column;height:100%}.merge-split-view-items{flex:0 1 auto;max-height:50%;overflow-y:scroll}.merge-split-view-attributes{flex:1;overflow-y:scroll}.choose-feature{position:absolute;width:100%;max-height:100%;z-index:2;overflow-y:auto}.bau-pick{display:flex;flex-direction:row;align-items:center;gap:4px}.danger-icon-warning{--calcite-icon-color: var(--calcite-color-status-danger)}.paste-feature-templates{--arcgis-feature-templates-max-list-height: 100%}`;
|
|
28
|
+
async function ce(t, i, e, a = /* @__PURE__ */ new Map()) {
|
|
29
|
+
let s = !0;
|
|
30
|
+
for (const r of t.items) {
|
|
31
|
+
if (r.type !== "add")
|
|
32
|
+
continue;
|
|
33
|
+
const d = r.graphic.clone(), h = ne(
|
|
34
|
+
r.graphic,
|
|
35
|
+
r.layer
|
|
36
|
+
);
|
|
37
|
+
if (!h) {
|
|
38
|
+
s = !1;
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
const p = !await de(
|
|
42
|
+
e,
|
|
43
|
+
r.graphic,
|
|
44
|
+
h,
|
|
45
|
+
a,
|
|
46
|
+
i
|
|
47
|
+
), m = x({
|
|
48
|
+
graphic: r.graphic,
|
|
49
|
+
layer: r.layer,
|
|
50
|
+
originalGraphic: d
|
|
51
|
+
});
|
|
52
|
+
t.push(m), p || (s = !1);
|
|
53
|
+
}
|
|
54
|
+
return s;
|
|
55
|
+
}
|
|
56
|
+
function ne(t, i) {
|
|
57
|
+
if (i.type === "feature" || i.type === "subtype-sublayer")
|
|
58
|
+
return i;
|
|
59
|
+
const e = i.findSublayerForFeature(t);
|
|
60
|
+
return e || null;
|
|
61
|
+
}
|
|
62
|
+
async function de(t, i, e, a, s) {
|
|
63
|
+
const r = e.formTemplate, d = e.fields.filter((u) => {
|
|
64
|
+
const C = i.attributes[u.name], U = C === null || C === "" || C === void 0;
|
|
65
|
+
return u.editable && !u.nullable && U;
|
|
66
|
+
});
|
|
67
|
+
if (!r)
|
|
68
|
+
return d.length !== 0;
|
|
69
|
+
const h = /* @__PURE__ */ new Set();
|
|
70
|
+
if (R(r.elements ?? [], h), d.length === 0 && h.size === 0 && !s)
|
|
71
|
+
return !1;
|
|
72
|
+
const p = /* @__PURE__ */ new Set();
|
|
73
|
+
if (j(r.elements ?? [], p), [...h].filter((u) => p.has(u)).length === 0 && !s)
|
|
74
|
+
return !1;
|
|
75
|
+
const m = i.clone();
|
|
76
|
+
delete m.attributes[e.objectIdField], a.set(
|
|
77
|
+
e,
|
|
78
|
+
new re({
|
|
79
|
+
layer: e,
|
|
80
|
+
map: t.map,
|
|
81
|
+
formTemplate: r,
|
|
82
|
+
editType: "INSERT",
|
|
83
|
+
feature: m
|
|
84
|
+
})
|
|
85
|
+
);
|
|
86
|
+
const v = a.get(e);
|
|
87
|
+
await new Promise((u) => {
|
|
88
|
+
setTimeout(u, 5);
|
|
89
|
+
}), await N(() => v.state === "ready" && !v.updating);
|
|
90
|
+
let b = v.getValues() ?? {};
|
|
91
|
+
if (e.objectIdField && b[e.objectIdField] !== void 0) {
|
|
92
|
+
const { [e.objectIdField]: u, ...C } = b;
|
|
93
|
+
b = C;
|
|
94
|
+
}
|
|
95
|
+
return Object.keys(b).forEach((u) => {
|
|
96
|
+
e.fieldsIndex.has(u) && (i.attributes[u] = ue(
|
|
97
|
+
b[u],
|
|
98
|
+
u,
|
|
99
|
+
e.fieldsIndex
|
|
100
|
+
));
|
|
101
|
+
}), !v.valid;
|
|
102
|
+
}
|
|
103
|
+
function j(t, i) {
|
|
104
|
+
for (const e of t)
|
|
105
|
+
e.type === "group" ? j(e.elements, i) : e.type === "field" && e.valueExpression && i.add(e.fieldName);
|
|
106
|
+
}
|
|
107
|
+
function R(t, i) {
|
|
108
|
+
for (const e of t)
|
|
109
|
+
e.type === "group" ? R(e.elements, i) : e.type === "field" && e.requiredExpression && i.add(e.fieldName);
|
|
110
|
+
}
|
|
111
|
+
function pe(t) {
|
|
112
|
+
return typeof t == "number";
|
|
113
|
+
}
|
|
114
|
+
function he(t) {
|
|
115
|
+
return typeof t == "number" && window.isFinite(t) && Math.floor(t) === t;
|
|
116
|
+
}
|
|
117
|
+
function ue(t, i, e) {
|
|
118
|
+
if (t === null || t === void 0)
|
|
119
|
+
return null;
|
|
120
|
+
switch (e.get(i).type) {
|
|
121
|
+
case "big-integer":
|
|
122
|
+
case "long":
|
|
123
|
+
case "oid":
|
|
124
|
+
case "integer":
|
|
125
|
+
case "small-integer":
|
|
126
|
+
return he(t) ? t : window.parseInt(t);
|
|
127
|
+
case "single":
|
|
128
|
+
case "double":
|
|
129
|
+
return pe(t) ? t : window.parseFloat(t);
|
|
130
|
+
case "global-id":
|
|
131
|
+
case "guid":
|
|
132
|
+
return t === "" ? null : t;
|
|
133
|
+
case "date":
|
|
134
|
+
break;
|
|
135
|
+
case "date-only":
|
|
136
|
+
case "time-only":
|
|
137
|
+
case "timestamp-offset":
|
|
138
|
+
return t === "" ? null : t;
|
|
139
|
+
case "string":
|
|
140
|
+
return t === "" ? null : t;
|
|
141
|
+
}
|
|
142
|
+
return t;
|
|
143
|
+
}
|
|
144
|
+
function me(t) {
|
|
145
|
+
return t && "layer" in t ? t.layer : void 0;
|
|
146
|
+
}
|
|
147
|
+
function M(t) {
|
|
148
|
+
if (!t)
|
|
149
|
+
return null;
|
|
150
|
+
const i = me(t.origin) ?? t.layer ?? t?.sourceLayer ?? null;
|
|
151
|
+
if (i && i.type === "subtype-sublayer")
|
|
152
|
+
return i.parent;
|
|
153
|
+
switch (i?.type) {
|
|
154
|
+
case "csv":
|
|
155
|
+
case "feature":
|
|
156
|
+
case "geojson":
|
|
157
|
+
case "ogc-feature":
|
|
158
|
+
case "subtype-group":
|
|
159
|
+
case "wfs":
|
|
160
|
+
return i;
|
|
161
|
+
default:
|
|
162
|
+
return null;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
var ge = Object.defineProperty, fe = Object.getOwnPropertyDescriptor, c = (t, i, e, a) => {
|
|
166
|
+
for (var s = a > 1 ? void 0 : a ? fe(i, e) : i, r = t.length - 1, d; r >= 0; r--)
|
|
167
|
+
(d = t[r]) && (s = (a ? d(i, e, s) : d(s)) || s);
|
|
168
|
+
return a && s && ge(i, e, s), s;
|
|
169
|
+
};
|
|
170
|
+
const V = {
|
|
171
|
+
noChangeError: "Operation has not made any changes",
|
|
172
|
+
noSelectedError: "Operation requires a selected feature",
|
|
173
|
+
deletesGeometryError: "Operation would result in a null geometry",
|
|
174
|
+
noGeometryError: "The selected feature has not geometry"
|
|
175
|
+
};
|
|
176
|
+
function B(t) {
|
|
177
|
+
return !ae(t) || t.type !== "feature";
|
|
178
|
+
}
|
|
179
|
+
let l = class extends W {
|
|
180
|
+
//#region Lifecycle
|
|
181
|
+
constructor(t) {
|
|
182
|
+
super(t), this.customPasteCommands = new $(), this.bauInvalidFeatures = [], this.bauFormValid = !0, this.bauFormUpdating = !1, this.bauActiveFeatureIndex = -1, this.bauSubmitHasBeenAttempted = !1, this.bauOriginalGraphics = [], this.formViewModelMap = /* @__PURE__ */ new Map(), this.supportedCommands = ["paste-append", "paste-as", "paste-subtract", "paste", "paste-merge"], this.pasteWithMultipleLayersEnabled = !1, this.pasteWithMultipleFeaturesEnabled = !1, this.alwaysShowFeatureForm = !1, this.selectedClipboardItemIndex = -1, this.pasteWithAttributes = !0, this.closeOnApply = !1, this.currentPasteOperation = "", this._activeFlowPage = "commands-page", this.showClipboardItems = !1, this.hideFooterCancelButton = !1, this.hideViewClipboard = !1, this.hideErrorNotice = !1, this.highlightGroup = "temporary", this._hoverHighlightHandle = null, this.layerPermissionsCheck = {
|
|
183
|
+
canCreate: (i) => i ? !!i.effectiveCapabilities?.operations.supportsAdd : !1,
|
|
184
|
+
canUpdate: (i) => {
|
|
185
|
+
if (!i)
|
|
186
|
+
return !1;
|
|
187
|
+
const e = i.effectiveCapabilities, a = !!e?.operations.supportsUpdate, s = !!e?.editing.supportsGeometryUpdate && a;
|
|
188
|
+
return !i.isTable && !s ? !1 : a;
|
|
189
|
+
}
|
|
190
|
+
}, this.applying = !1;
|
|
191
|
+
}
|
|
192
|
+
get bauActiveGraphic() {
|
|
193
|
+
return this.bauActiveFeatureIndex === -1 ? void 0 : this.bauFeatures?.getItemAt(this.bauActiveFeatureIndex);
|
|
194
|
+
}
|
|
195
|
+
get bauActiveLayer() {
|
|
196
|
+
if (this.bauActiveFeatureIndex !== -1 && this.bauFeatures)
|
|
197
|
+
return M(this.bauFeatures.getItemAt(this.bauActiveFeatureIndex)) ?? void 0;
|
|
198
|
+
}
|
|
199
|
+
get clipboardAndTemplateSupportAttributes() {
|
|
200
|
+
if (this.clipboard.items.length === 0 || !this.pasteTemplate?.layer)
|
|
201
|
+
return !1;
|
|
202
|
+
const t = this.pasteTemplate.template;
|
|
203
|
+
if (!B(t))
|
|
204
|
+
return !1;
|
|
205
|
+
for (const i of this.clipboard.items) {
|
|
206
|
+
const e = i.layer;
|
|
207
|
+
if (!e)
|
|
208
|
+
return !1;
|
|
209
|
+
const a = e.type === "subtype-sublayer" ? e.parent : e;
|
|
210
|
+
if (a.type === "subtype-group") {
|
|
211
|
+
const s = a.fieldsIndex.get(a.subtypeField).name, r = t.prototype?.[s];
|
|
212
|
+
if (r == null || r !== i.graphic.attributes[s])
|
|
213
|
+
return !1;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
return !0;
|
|
217
|
+
}
|
|
218
|
+
get hasClipboardItemMatchingTemplate() {
|
|
219
|
+
const t = this.pasteTemplate?.layer;
|
|
220
|
+
if (!t || this.clipboard.items.length === 0)
|
|
221
|
+
return !1;
|
|
222
|
+
const i = this.pasteTemplate.template;
|
|
223
|
+
if (!B(i))
|
|
224
|
+
return !1;
|
|
225
|
+
for (const e of this.clipboard.items) {
|
|
226
|
+
const a = e.layer;
|
|
227
|
+
if (!a)
|
|
228
|
+
return !1;
|
|
229
|
+
const s = a.type === "subtype-sublayer" ? a.parent : a;
|
|
230
|
+
if (t === a) {
|
|
231
|
+
if (s.type === "subtype-group") {
|
|
232
|
+
const r = s.fieldsIndex.get(s.subtypeField).name, d = i.prototype?.[r];
|
|
233
|
+
if (d == null || d !== e.graphic.attributes[r])
|
|
234
|
+
continue;
|
|
235
|
+
}
|
|
236
|
+
return !0;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
return !1;
|
|
240
|
+
}
|
|
241
|
+
get activeFlowPage() {
|
|
242
|
+
return this._activeFlowPage;
|
|
243
|
+
}
|
|
244
|
+
// When setting the active flow page
|
|
245
|
+
// need to remember the before Page (when using clipboard or paste-form flow items)
|
|
246
|
+
set activeFlowPage(t) {
|
|
247
|
+
t === "clipboard" && this.beforeClipboard === void 0 ? this.beforeClipboard = this.activeFlowPage : t !== "clipboard" && (this.beforeClipboard = void 0), t === "paste-form" && this.beforeForm === void 0 ? this.beforeForm = this.activeFlowPage : t !== "paste-form" && (this.beforeForm = void 0), this._activeFlowPage = t, this.checkAndSuspendMove();
|
|
248
|
+
}
|
|
249
|
+
get updating() {
|
|
250
|
+
return this.applying;
|
|
251
|
+
}
|
|
252
|
+
// Update ApplySet after user changes feature on the BAU form.
|
|
253
|
+
formFeatureValuesChanged(t, i) {
|
|
254
|
+
if (!i)
|
|
255
|
+
return;
|
|
256
|
+
const e = t.graphic.clone();
|
|
257
|
+
for (const s of Object.keys(i))
|
|
258
|
+
e.attributes[s] = i[s];
|
|
259
|
+
const a = x({
|
|
260
|
+
graphic: e,
|
|
261
|
+
originalGraphic: t.graphic.clone(),
|
|
262
|
+
layer: t.layer
|
|
263
|
+
});
|
|
264
|
+
this.bauApplySet?.push(a);
|
|
265
|
+
}
|
|
266
|
+
// Highlight the selected clipboard item on the map
|
|
267
|
+
highlightSelectedGraphicOnMap(t) {
|
|
268
|
+
if (this.clearHighlightSelectedGraphic(), !t.graphic?.geometry || !this.view)
|
|
269
|
+
return;
|
|
270
|
+
const i = new F({
|
|
271
|
+
geometry: t.graphic.geometry,
|
|
272
|
+
symbol: te(t.graphic.geometry.type)
|
|
273
|
+
});
|
|
274
|
+
this.view.graphics.add(i), this._hoverHighlightHandle = {
|
|
275
|
+
remove: () => {
|
|
276
|
+
this.view.graphics.remove(i);
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
// Clear the highlights from the highlighted clipboard items
|
|
281
|
+
clearHighlightSelectedGraphic() {
|
|
282
|
+
this._hoverHighlightHandle?.remove(), this._hoverHighlightHandle = null;
|
|
283
|
+
}
|
|
284
|
+
updateIndividualMultiFeatureFormHighlight() {
|
|
285
|
+
if (this.activeFlowPage !== "paste-form") {
|
|
286
|
+
this.clearIndividualFeatureFormHighlight();
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
if (this.view)
|
|
290
|
+
if (this.bauActiveGraphic && this.bauActiveLayer) {
|
|
291
|
+
if (this.bauIndividualHighlight?.graphic !== this.bauActiveGraphic && this.clearIndividualFeatureFormHighlight(), !this.bauIndividualHighlight) {
|
|
292
|
+
const t = T(this.view, this.bauActiveLayer);
|
|
293
|
+
if (!t)
|
|
294
|
+
return;
|
|
295
|
+
this.bauIndividualHighlight = {
|
|
296
|
+
graphic: this.bauActiveGraphic,
|
|
297
|
+
handle: t.highlight(this.bauActiveGraphic, { name: this.highlightGroup })
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
} else
|
|
301
|
+
this.clearIndividualFeatureFormHighlight();
|
|
302
|
+
}
|
|
303
|
+
// Clear the multi feature form highlights
|
|
304
|
+
clearIndividualFeatureFormHighlight() {
|
|
305
|
+
this.bauIndividualHighlight?.handle?.remove(), this.bauIndividualHighlight = void 0;
|
|
306
|
+
}
|
|
307
|
+
// When using the Multi Feature Form, it is helpful to see the graphic
|
|
308
|
+
// highlighted on the map
|
|
309
|
+
highlightMultiFeatureFormFeature(t, i) {
|
|
310
|
+
this.bauHighlight && this.clearMultiFeatureFormHighlights();
|
|
311
|
+
const e = this.view ? T(this.view, t.layer) : void 0;
|
|
312
|
+
e && (this.bauHighlight = e.highlight(t, { name: this.highlightGroup }));
|
|
313
|
+
}
|
|
314
|
+
// Clear the multi feature form highlights
|
|
315
|
+
clearMultiFeatureFormHighlights() {
|
|
316
|
+
this.bauHighlight?.remove(), this.bauHighlight = void 0;
|
|
317
|
+
}
|
|
318
|
+
// When the clipboard contents change and/or
|
|
319
|
+
// the show clipboard graphics is set to true or false
|
|
320
|
+
// Need to renew the generated graphics on the map
|
|
321
|
+
updateClipboardGraphicsLayer() {
|
|
322
|
+
if (!this.showClipboardItems) {
|
|
323
|
+
if (this.clipboardMover?.cancel(), this.clipboardMover = void 0, this.clipboardGraphicsLayer && this.view)
|
|
324
|
+
try {
|
|
325
|
+
this.view.map?.remove(this.clipboardGraphicsLayer), this.clipboardGraphicsLayer = void 0;
|
|
326
|
+
} catch {
|
|
327
|
+
}
|
|
328
|
+
return;
|
|
329
|
+
}
|
|
330
|
+
if (this.showClipboardItems && this.view) {
|
|
331
|
+
this.clipboardGraphicsLayer || (this.clipboardGraphicsLayer = new ee(), this.view.map?.layers.add(this.clipboardGraphicsLayer));
|
|
332
|
+
const t = this.clipboard.items;
|
|
333
|
+
this.clipboardGraphicsLayer.removeAll();
|
|
334
|
+
let i = -1;
|
|
335
|
+
for (const e of t) {
|
|
336
|
+
if (i++, !e.graphic.geometry)
|
|
337
|
+
continue;
|
|
338
|
+
const a = new F({
|
|
339
|
+
geometry: e.graphic.geometry.clone(),
|
|
340
|
+
attributes: {
|
|
341
|
+
clipboardIdx: i
|
|
342
|
+
},
|
|
343
|
+
symbol: ie(e.graphic.geometry.type)
|
|
344
|
+
});
|
|
345
|
+
this.clipboardGraphicsLayer.add(a);
|
|
346
|
+
}
|
|
347
|
+
} else if (!this.showClipboardItems && this.view && this.clipboardGraphicsLayer)
|
|
348
|
+
try {
|
|
349
|
+
this.view.map?.remove(this.clipboardGraphicsLayer), this.clipboardGraphicsLayer = void 0;
|
|
350
|
+
} catch {
|
|
351
|
+
}
|
|
352
|
+
this.checkAndSuspendMove();
|
|
353
|
+
}
|
|
354
|
+
checkAndSuspendMove() {
|
|
355
|
+
const t = this.activeFlowPage === "paste-form";
|
|
356
|
+
this.clipboardGraphicsLayer && (this.clipboardGraphicsLayer.visible = !t), this.clipboardMover && (this.clipboardMover.suspended = t);
|
|
357
|
+
}
|
|
358
|
+
get clipboard() {
|
|
359
|
+
return Y();
|
|
360
|
+
}
|
|
361
|
+
get clipboardFeatures() {
|
|
362
|
+
return this.clipboard.items.filter((t) => t.type === "feature");
|
|
363
|
+
}
|
|
364
|
+
get hasPasteCommandsPage() {
|
|
365
|
+
return this.availableCommands.length > 1 || !!this.availableCommands.at(0)?.mustShowOnCommandPage;
|
|
366
|
+
}
|
|
367
|
+
_clearActiveCommand() {
|
|
368
|
+
this.activeCommand = void 0, this.pasteTemplate = void 0, this.lastPasteError = void 0;
|
|
369
|
+
}
|
|
370
|
+
// Reset to the landing flow item
|
|
371
|
+
// The landing flow item will depend on the configuration
|
|
372
|
+
// of the component and/or the contents of the clipboard
|
|
373
|
+
resetHome() {
|
|
374
|
+
let t = this.activeFlowPage;
|
|
375
|
+
this.hasPasteCommandsPage ? (t = "commands-page", this._clearActiveCommand(), this.selectedClipboardItemIndex = -1) : this.clipboard.items.length === 0 ? (t = "nodata-page", this._clearActiveCommand(), this.selectedClipboardItemIndex = -1) : this.availableCommands.length === 0 ? (t = "no-command-page", this._clearActiveCommand()) : this.availableCommands[0].commandEnabled ? (this.pasteTemplate = void 0, t = "gallery-page", this.activeCommand = this.availableCommands[0].id, this.lastPasteError = void 0) : (t = "no-command-page", this._clearActiveCommand(), this.selectedClipboardItemIndex = -1), this.activeFlowPage === "clipboard" && this.hideViewClipboard ? (this.activeFlowPage = t, this.beforeClipboard = void 0) : this.activeFlowPage === "clipboard" && !this.hideViewClipboard ? this.beforeClipboard = t : (this.activeFlowPage = t, this.beforeClipboard = void 0), this.resetFormPage();
|
|
376
|
+
}
|
|
377
|
+
get workingLayers() {
|
|
378
|
+
return (this.view?.map?.allLayers?.toArray() ?? []).filter((t) => t.type === "feature").filter((t) => {
|
|
379
|
+
let i = this.clipboard.singleGeometryType;
|
|
380
|
+
return this.activeCommand === "paste-merge" && this.clipboard.singleGeometryType === "point" && (i = "multipoint"), !(t.geometryType !== i || !this.layerPermissionsCheck.canCreate(t));
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
get clipboardItemLayers() {
|
|
384
|
+
const t = /* @__PURE__ */ new Set();
|
|
385
|
+
for (const i of this.clipboard.items)
|
|
386
|
+
i.layer && t.add(i.layer.type === "subtype-sublayer" ? i.layer.parent : i.layer);
|
|
387
|
+
return [...t];
|
|
388
|
+
}
|
|
389
|
+
get canCreateOnAllLayers() {
|
|
390
|
+
if (this.clipboardItemLayers.length === 0)
|
|
391
|
+
return !1;
|
|
392
|
+
for (const t of this.clipboardItemLayers)
|
|
393
|
+
if (!t || !this.layerPermissionsCheck.canCreate(t))
|
|
394
|
+
return !1;
|
|
395
|
+
return !0;
|
|
396
|
+
}
|
|
397
|
+
get availableCommands() {
|
|
398
|
+
const t = [], i = new Set(this.supportedCommands);
|
|
399
|
+
if (i.has("paste")) {
|
|
400
|
+
const e = this.clipboard.items.length === 1, a = this.clipboard.items.length > 0 && this.clipboardItemLayers.length === 1 && this.pasteWithMultipleFeaturesEnabled, s = this.clipboard.items.length > 0 && this.pasteWithMultipleFeaturesEnabled && this.pasteWithMultipleLayersEnabled;
|
|
401
|
+
t.push({
|
|
402
|
+
id: "paste",
|
|
403
|
+
icon: "duplicate",
|
|
404
|
+
immediate: !0,
|
|
405
|
+
initiate: async (r) => {
|
|
406
|
+
await this.runPasteCommand(r, "paste");
|
|
407
|
+
},
|
|
408
|
+
mustShowOnCommandPage: !0,
|
|
409
|
+
commandEnabled: this.clipboard.items.length > 0 && this.canCreateOnAllLayers && (e || a || s),
|
|
410
|
+
description: (r, d) => r.pasteDesc,
|
|
411
|
+
label: (r, d) => r.pasteTitle
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
i.has("paste-as") && t.push({
|
|
415
|
+
id: "paste-as",
|
|
416
|
+
icon: "templates",
|
|
417
|
+
initiate: async (e) => {
|
|
418
|
+
this.activeFlowPage = "gallery-page", this.activeCommand = "paste-as";
|
|
419
|
+
},
|
|
420
|
+
commandDisabledReason: (e, a) => {
|
|
421
|
+
if (this.clipboard.items.length === 0)
|
|
422
|
+
return e.noClipboardData;
|
|
423
|
+
if (this.clipboard.items.length > 1) {
|
|
424
|
+
if (!this.pasteWithMultipleFeaturesEnabled)
|
|
425
|
+
return e.pasteMultipleNotSupported;
|
|
426
|
+
if (this.clipboard.geometryTypes.size > 1)
|
|
427
|
+
return e.mixedGeometriesNotSupported;
|
|
428
|
+
}
|
|
429
|
+
return this.clipboard.singleGeometryType ? "" : e.pasteAsMustHaveGeometry;
|
|
430
|
+
},
|
|
431
|
+
immediate: !1,
|
|
432
|
+
mustShowOnCommandPage: !1,
|
|
433
|
+
commandEnabled: (this.clipboard.items.length === 1 || this.clipboard.items.length > 0 && this.pasteWithMultipleFeaturesEnabled) && this.clipboard.singleGeometryType !== void 0,
|
|
434
|
+
description: (e, a) => e.pasteAsDesc,
|
|
435
|
+
label: (e, a) => e.pasteAsTitle
|
|
436
|
+
}), i.has("paste-merge") && t.push({
|
|
437
|
+
id: "paste-merge",
|
|
438
|
+
icon: "merge",
|
|
439
|
+
immediate: !1,
|
|
440
|
+
initiate: async (e) => {
|
|
441
|
+
this.activeFlowPage = "gallery-page", this.activeCommand = "paste-merge";
|
|
442
|
+
for (let a = 0; a < this.clipboard.items.length; a++)
|
|
443
|
+
if (this.clipboard.items.getItemAt(a).type === "feature") {
|
|
444
|
+
this.selectedClipboardItemIndex = a;
|
|
445
|
+
break;
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
mustShowOnCommandPage: !0,
|
|
449
|
+
commandEnabled: this.clipboard.items.length > 1 && this.clipboard.singleGeometryType !== void 0,
|
|
450
|
+
description: (e, a) => e.pasteMergeDesc,
|
|
451
|
+
label: (e, a) => e.pasteMergeTitle
|
|
452
|
+
}), i.has("paste-append") && t.push({
|
|
453
|
+
id: "paste-append",
|
|
454
|
+
icon: "reshape-add-geometry",
|
|
455
|
+
immediate: !0,
|
|
456
|
+
initiate: async (e) => {
|
|
457
|
+
await this.runPasteAppendCommand(e);
|
|
458
|
+
},
|
|
459
|
+
mustShowOnCommandPage: !0,
|
|
460
|
+
commandEnabled: this.clipboard.items.length > 0 && this.selectedFeature !== void 0 && this.layerPermissionsCheck.canUpdate(
|
|
461
|
+
M(this.selectedFeature)
|
|
462
|
+
) && this.selectedFeature?.geometry !== null && // Need a geometry to append to
|
|
463
|
+
(this.selectedFeature?.geometry?.type === "multipoint" || this.selectedFeature?.geometry?.type === "polyline" || this.selectedFeature?.geometry?.type === "polygon") && // Cannot append to a point
|
|
464
|
+
this.clipboard.singleGeometryType === this.selectedFeature?.geometry?.type,
|
|
465
|
+
description: (e, a) => e.pasteAppendDesc,
|
|
466
|
+
label: (e, a) => e.pasteAppendTitle
|
|
467
|
+
}), i.has("paste-subtract") && t.push({
|
|
468
|
+
id: "paste-subtract",
|
|
469
|
+
icon: "reshape-subtract-geometry",
|
|
470
|
+
immediate: !0,
|
|
471
|
+
initiate: async (e) => {
|
|
472
|
+
await this.runPasteSubtractCommand(e);
|
|
473
|
+
},
|
|
474
|
+
mustShowOnCommandPage: !0,
|
|
475
|
+
commandEnabled: this.clipboard.items.length > 0 && this.selectedFeature !== void 0 && this.layerPermissionsCheck.canUpdate(
|
|
476
|
+
M(this.selectedFeature)
|
|
477
|
+
) && this.selectedFeature?.geometry !== null && // Need a geometry to append to
|
|
478
|
+
(this.selectedFeature?.geometry?.type === "multipoint" || this.selectedFeature?.geometry?.type === "polyline" || this.selectedFeature?.geometry?.type === "polygon") && // Cannot append to a point
|
|
479
|
+
(this.clipboard.singleGeometryType === this.selectedFeature?.geometry?.type || this.clipboard.singleGeometryType === "polygon"),
|
|
480
|
+
description: (e, a) => e.pasteSubtractDesc,
|
|
481
|
+
label: (e, a) => e.pasteSubtractTitle
|
|
482
|
+
});
|
|
483
|
+
for (const e of this.customPasteCommands)
|
|
484
|
+
i.has(e.id) && t.push({
|
|
485
|
+
id: e.id,
|
|
486
|
+
icon: e.icon,
|
|
487
|
+
immediate: !0,
|
|
488
|
+
// For now always immediate
|
|
489
|
+
initiate: async (a) => {
|
|
490
|
+
try {
|
|
491
|
+
this.applying = !0, (await a.onApply({
|
|
492
|
+
command: e.id
|
|
493
|
+
})).success && (this.resetHome(), this.closeOnApply && a.closeAfterApply());
|
|
494
|
+
} finally {
|
|
495
|
+
this.applying = !1;
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
mustShowOnCommandPage: !0,
|
|
499
|
+
commandEnabled: e.commandEnabled(this.clipboard, this.selectedFeature),
|
|
500
|
+
description: (a, s) => e.description(a, s),
|
|
501
|
+
label: (a, s) => e.label(a, s)
|
|
502
|
+
});
|
|
503
|
+
return t;
|
|
504
|
+
}
|
|
505
|
+
//#endregion
|
|
506
|
+
//#region Public Methods
|
|
507
|
+
async createMergedClipboardGeom() {
|
|
508
|
+
const t = this.clipboard.items.map((e) => e.graphic?.geometry).filter((e) => e != null).toArray();
|
|
509
|
+
return t.length === 0 ? null : t.length === 1 ? t[0].clone() : (await import("@arcgis/core/geometry/operators/unionOperator.js")).executeMany(t) ?? null;
|
|
510
|
+
}
|
|
511
|
+
removeGraphicIdentifierFields(t, i) {
|
|
512
|
+
i.objectIdField && delete t.attributes[i.objectIdField], i.globalIdField && delete t.attributes[i.globalIdField];
|
|
513
|
+
}
|
|
514
|
+
nextActiveFeature() {
|
|
515
|
+
this.bauActiveFeatureIndex++, this.updateIndividualMultiFeatureFormHighlight();
|
|
516
|
+
}
|
|
517
|
+
previousActiveFeature() {
|
|
518
|
+
this.bauActiveFeatureIndex--, this.updateIndividualMultiFeatureFormHighlight();
|
|
519
|
+
}
|
|
520
|
+
/*
|
|
521
|
+
* The logic for the paste append command
|
|
522
|
+
*/
|
|
523
|
+
async runPasteAppendCommand(t) {
|
|
524
|
+
let i = null;
|
|
525
|
+
try {
|
|
526
|
+
this.applying = !0;
|
|
527
|
+
const e = await this.prepareAppend();
|
|
528
|
+
if (e.applySet && (i = e.applySet), !e.success) {
|
|
529
|
+
this.lastPasteError = {
|
|
530
|
+
errorCode: e.failReason,
|
|
531
|
+
errorMessage: V[e.failReason],
|
|
532
|
+
localizedErrorMessage: e.failReason
|
|
533
|
+
}, t.onPasteError(this.lastPasteError);
|
|
534
|
+
return;
|
|
535
|
+
}
|
|
536
|
+
(await t.onApply({
|
|
537
|
+
command: "paste-append",
|
|
538
|
+
applySet: e.applySet
|
|
539
|
+
})).success && (this.resetHome(), this.closeOnApply && t.closeAfterApply());
|
|
540
|
+
} catch (e) {
|
|
541
|
+
this.lastPasteError = {
|
|
542
|
+
errorCode: "unexpectedError",
|
|
543
|
+
errorMessage: e.message,
|
|
544
|
+
localizedErrorMessage: "unexpectedError"
|
|
545
|
+
}, t.onPasteError(this.lastPasteError);
|
|
546
|
+
return;
|
|
547
|
+
} finally {
|
|
548
|
+
this.applying = !1, i && (i.featureState?.clearAll(), i.featureState = null);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
/*
|
|
552
|
+
* Builds an ApplySet for the Append command
|
|
553
|
+
*/
|
|
554
|
+
async prepareAppend() {
|
|
555
|
+
const t = A();
|
|
556
|
+
if (t.featureState = P(this.view), !this.selectedFeature)
|
|
557
|
+
return { success: !1, failReason: "noSelectedError" };
|
|
558
|
+
const [i, e] = await Promise.all([
|
|
559
|
+
import("@arcgis/core/geometry/operators/unionOperator.js"),
|
|
560
|
+
import("@arcgis/core/geometry/operators/equalsOperator.js")
|
|
561
|
+
]);
|
|
562
|
+
let a = this.selectedFeature.geometry, s = !1;
|
|
563
|
+
for (const d of this.clipboard.items) {
|
|
564
|
+
const h = d?.graphic?.geometry ?? null;
|
|
565
|
+
if (!h)
|
|
566
|
+
continue;
|
|
567
|
+
if (a === null) {
|
|
568
|
+
a = d?.graphic?.geometry ?? null, a && (a = a.clone(), s = !0);
|
|
569
|
+
continue;
|
|
570
|
+
}
|
|
571
|
+
const p = i.execute(a, h);
|
|
572
|
+
e.execute(a, p) || (a = p, s = !0);
|
|
573
|
+
}
|
|
574
|
+
if (!s)
|
|
575
|
+
return { success: !1, failReason: "noChangeError" };
|
|
576
|
+
const r = this.selectedFeature.clone();
|
|
577
|
+
return r.geometry = a, t.push(
|
|
578
|
+
x({
|
|
579
|
+
graphic: r,
|
|
580
|
+
layer: this.selectedFeature.origin,
|
|
581
|
+
originalGraphic: this.selectedFeature
|
|
582
|
+
})
|
|
583
|
+
), { success: !0, applySet: t };
|
|
584
|
+
}
|
|
585
|
+
// Ensure the form is removed.
|
|
586
|
+
resetFormPage() {
|
|
587
|
+
this.bauApplySet?.featureState?.clearAll(), this.bauApplySet = void 0, this.clearIndividualFeatureFormHighlight(), this.clearMultiFeatureFormHighlights(), this.bauFeatures = void 0, this.bauOriginalGraphics = [], this.bauSubmitHasBeenAttempted = !1;
|
|
588
|
+
}
|
|
589
|
+
/*
|
|
590
|
+
* The logic for the paste subtract command
|
|
591
|
+
*/
|
|
592
|
+
async runPasteSubtractCommand(t) {
|
|
593
|
+
let i = null;
|
|
594
|
+
try {
|
|
595
|
+
this.applying = !0;
|
|
596
|
+
const e = await this.prepareSubtract();
|
|
597
|
+
if (e.applySet && (i = e.applySet), !e.success) {
|
|
598
|
+
this.lastPasteError = {
|
|
599
|
+
errorCode: e.failReason,
|
|
600
|
+
errorMessage: V[e.failReason],
|
|
601
|
+
localizedErrorMessage: e.failReason
|
|
602
|
+
}, t.onPasteError(this.lastPasteError);
|
|
603
|
+
return;
|
|
604
|
+
}
|
|
605
|
+
(await t.onApply({
|
|
606
|
+
command: "paste-subtract",
|
|
607
|
+
applySet: e.applySet
|
|
608
|
+
})).success && (this.resetHome(), this.closeOnApply && t.closeAfterApply());
|
|
609
|
+
} catch (e) {
|
|
610
|
+
this.lastPasteError = {
|
|
611
|
+
errorCode: "unexpectedError",
|
|
612
|
+
errorMessage: e.message,
|
|
613
|
+
localizedErrorMessage: "unexpectedError"
|
|
614
|
+
}, t.onPasteError(this.lastPasteError);
|
|
615
|
+
return;
|
|
616
|
+
} finally {
|
|
617
|
+
this.applying = !1, i && (i.featureState?.clearAll(), i.featureState = null);
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
/*
|
|
621
|
+
* Builds an ApplySet for the Subtract command
|
|
622
|
+
*/
|
|
623
|
+
async prepareSubtract() {
|
|
624
|
+
const t = A();
|
|
625
|
+
if (t.featureState = P(this.view), !this.selectedFeature)
|
|
626
|
+
return { success: !1, failReason: "noSelectedError", applySet: t };
|
|
627
|
+
const [i, e] = await Promise.all([
|
|
628
|
+
import("@arcgis/core/geometry/operators/differenceOperator.js"),
|
|
629
|
+
import("@arcgis/core/geometry/operators/equalsOperator.js")
|
|
630
|
+
]);
|
|
631
|
+
let a = this.selectedFeature.geometry;
|
|
632
|
+
if (!a)
|
|
633
|
+
return { success: !1, failReason: "noGeometryError", applySet: t };
|
|
634
|
+
let s = !1;
|
|
635
|
+
for (const d of this.clipboard.items) {
|
|
636
|
+
const h = d?.graphic?.geometry;
|
|
637
|
+
if (!h)
|
|
638
|
+
continue;
|
|
639
|
+
const p = i.execute(a, h);
|
|
640
|
+
if (!p)
|
|
641
|
+
return { success: !1, failReason: "deletesGeometryError", applySet: t };
|
|
642
|
+
e.execute(a, p) || (a = p, s = !0);
|
|
643
|
+
}
|
|
644
|
+
if (!s)
|
|
645
|
+
return { success: !1, failReason: "noChangeError", applySet: t };
|
|
646
|
+
const r = this.selectedFeature.clone();
|
|
647
|
+
return r.geometry = a, t.push(
|
|
648
|
+
x({
|
|
649
|
+
graphic: r,
|
|
650
|
+
layer: this.selectedFeature.origin,
|
|
651
|
+
originalGraphic: this.selectedFeature
|
|
652
|
+
})
|
|
653
|
+
), { success: !0, applySet: t };
|
|
654
|
+
}
|
|
655
|
+
/*
|
|
656
|
+
* The logic for the paste subtract command
|
|
657
|
+
*/
|
|
658
|
+
async runPasteFormCommand(t) {
|
|
659
|
+
try {
|
|
660
|
+
this.applying = !0;
|
|
661
|
+
const i = this.bauApplySet;
|
|
662
|
+
(await t.onApply({
|
|
663
|
+
command: this.activeCommand,
|
|
664
|
+
applySet: i
|
|
665
|
+
})).success && (this.resetHome(), this.closeOnApply && t.closeAfterApply());
|
|
666
|
+
} catch (i) {
|
|
667
|
+
this.lastPasteError = {
|
|
668
|
+
errorCode: "unexpectedError",
|
|
669
|
+
errorMessage: i.message,
|
|
670
|
+
localizedErrorMessage: "unexpectedError"
|
|
671
|
+
}, t.onPasteError(this.lastPasteError);
|
|
672
|
+
return;
|
|
673
|
+
} finally {
|
|
674
|
+
this.applying = !1;
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
/*
|
|
678
|
+
* The logic for the paste, paste-as and paste-merge command
|
|
679
|
+
*/
|
|
680
|
+
async runPasteCommand(t, i) {
|
|
681
|
+
try {
|
|
682
|
+
this.applying = !0;
|
|
683
|
+
const e = await this.prepareCopy(i);
|
|
684
|
+
if (!e || e.items.length === 0) {
|
|
685
|
+
this.lastPasteError = {
|
|
686
|
+
errorCode: "noPasteItems",
|
|
687
|
+
errorMessage: "No items to paste",
|
|
688
|
+
localizedErrorMessage: "noPasteItemsError"
|
|
689
|
+
}, t.onPasteError(this.lastPasteError);
|
|
690
|
+
return;
|
|
691
|
+
}
|
|
692
|
+
const a = !await ce(
|
|
693
|
+
e,
|
|
694
|
+
this.alwaysShowFeatureForm,
|
|
695
|
+
this.view,
|
|
696
|
+
this.formViewModelMap
|
|
697
|
+
);
|
|
698
|
+
if (this.alwaysShowFeatureForm || a)
|
|
699
|
+
this.bauActiveFeatureIndex = 0, this.bauApplySet = e, this.activeCommand = i, this.bauOriginalGraphics = e.items.map((s) => s.type === "add" ? { layer: s.layer, graphic: s.graphic } : null).filter((s) => s !== null), this.bauFeatures = new $(), this.activeFlowPage = "paste-form", await new Promise((s) => {
|
|
700
|
+
setTimeout(s, 100);
|
|
701
|
+
}), this.bauFeatures = new $(
|
|
702
|
+
this.bauOriginalGraphics.map((s) => (s.graphic.origin = s.layer, s.graphic.layer = s.layer, s.graphic))
|
|
703
|
+
), this.updateIndividualMultiFeatureFormHighlight();
|
|
704
|
+
else
|
|
705
|
+
try {
|
|
706
|
+
(await t.onApply({
|
|
707
|
+
command: "paste",
|
|
708
|
+
applySet: e
|
|
709
|
+
})).success && (this.resetHome(), this.closeOnApply && t.closeAfterApply());
|
|
710
|
+
} finally {
|
|
711
|
+
e?.featureState?.clearAll();
|
|
712
|
+
}
|
|
713
|
+
} finally {
|
|
714
|
+
this.applying = !1;
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
/*
|
|
718
|
+
* Builds an ApplySet for the Paste, Paste-as and Paste-merge command
|
|
719
|
+
*/
|
|
720
|
+
async prepareCopy(t) {
|
|
721
|
+
const i = t === "paste" || t === "paste-as" && this.pasteWithAttributes || t === "paste-merge" && this.pasteWithAttributes, e = i && t === "paste-merge" ? this.clipboard.items.getItemAt(this.selectedClipboardItemIndex) : null, a = A();
|
|
722
|
+
if (a.featureState = P(this.view), t === "paste-merge") {
|
|
723
|
+
const s = this.pasteTemplate?.template ? await G(this.view, this.pasteTemplate.template) : null;
|
|
724
|
+
if (!s)
|
|
725
|
+
return null;
|
|
726
|
+
const r = L(this.pasteTemplate.template) ? s.layer : this.pasteTemplate.layer, d = await this.createMergedClipboardGeom(), h = H(
|
|
727
|
+
s,
|
|
728
|
+
e ? { ...e.graphic.attributes } : {}
|
|
729
|
+
), p = new F({
|
|
730
|
+
geometry: d,
|
|
731
|
+
attributes: h
|
|
732
|
+
});
|
|
733
|
+
this.removeGraphicIdentifierFields(p, r), a.push(I({ graphic: p, layer: r }));
|
|
734
|
+
} else if (t === "paste") {
|
|
735
|
+
for (const s of this.clipboard.items)
|
|
736
|
+
if (s.type === "feature") {
|
|
737
|
+
const r = s.graphic.clone();
|
|
738
|
+
this.removeGraphicIdentifierFields(r, s.layer), a.push(I({ graphic: r, layer: s.layer }));
|
|
739
|
+
}
|
|
740
|
+
} else if (t === "paste-as") {
|
|
741
|
+
const s = this.pasteTemplate?.template ? await G(this.view, this.pasteTemplate.template) : null, r = L(s) ? s.layer : this.pasteTemplate.layer;
|
|
742
|
+
for (const d of this.clipboard.items) {
|
|
743
|
+
const h = H(
|
|
744
|
+
s,
|
|
745
|
+
i ? { ...d.graphic.attributes ?? {} } : {}
|
|
746
|
+
), p = new F({
|
|
747
|
+
geometry: d.graphic?.geometry?.clone() ?? null,
|
|
748
|
+
attributes: h
|
|
749
|
+
});
|
|
750
|
+
this.removeGraphicIdentifierFields(p, r), a.push(I({ graphic: p, layer: r }));
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
return a;
|
|
754
|
+
}
|
|
755
|
+
/*
|
|
756
|
+
* Write changes to the feature services
|
|
757
|
+
*/
|
|
758
|
+
async writeChanges(t) {
|
|
759
|
+
return await se(t, this.view);
|
|
760
|
+
}
|
|
761
|
+
//#endregion
|
|
762
|
+
};
|
|
763
|
+
c([
|
|
764
|
+
o()
|
|
765
|
+
], l.prototype, "customPasteCommands", 2);
|
|
766
|
+
c([
|
|
767
|
+
o()
|
|
768
|
+
], l.prototype, "bauInvalidFeatures", 2);
|
|
769
|
+
c([
|
|
770
|
+
o()
|
|
771
|
+
], l.prototype, "bauFormValid", 2);
|
|
772
|
+
c([
|
|
773
|
+
o()
|
|
774
|
+
], l.prototype, "bauFormUpdating", 2);
|
|
775
|
+
c([
|
|
776
|
+
o()
|
|
777
|
+
], l.prototype, "bauActiveFeatureIndex", 2);
|
|
778
|
+
c([
|
|
779
|
+
o()
|
|
780
|
+
], l.prototype, "bauSubmitHasBeenAttempted", 2);
|
|
781
|
+
c([
|
|
782
|
+
o()
|
|
783
|
+
], l.prototype, "bauActiveGraphic", 1);
|
|
784
|
+
c([
|
|
785
|
+
o()
|
|
786
|
+
], l.prototype, "bauActiveLayer", 1);
|
|
787
|
+
c([
|
|
788
|
+
o()
|
|
789
|
+
], l.prototype, "bauFeatures", 2);
|
|
790
|
+
c([
|
|
791
|
+
o()
|
|
792
|
+
], l.prototype, "bauApplySet", 2);
|
|
793
|
+
c([
|
|
794
|
+
o()
|
|
795
|
+
], l.prototype, "bauOriginalGraphics", 2);
|
|
796
|
+
c([
|
|
797
|
+
o()
|
|
798
|
+
], l.prototype, "formViewModelMap", 2);
|
|
799
|
+
c([
|
|
800
|
+
o()
|
|
801
|
+
], l.prototype, "bauHighlight", 2);
|
|
802
|
+
c([
|
|
803
|
+
o()
|
|
804
|
+
], l.prototype, "bauIndividualHighlight", 2);
|
|
805
|
+
c([
|
|
806
|
+
o()
|
|
807
|
+
], l.prototype, "view", 2);
|
|
808
|
+
c([
|
|
809
|
+
o()
|
|
810
|
+
], l.prototype, "supportedCommands", 2);
|
|
811
|
+
c([
|
|
812
|
+
o()
|
|
813
|
+
], l.prototype, "selectedFeature", 2);
|
|
814
|
+
c([
|
|
815
|
+
o()
|
|
816
|
+
], l.prototype, "pasteWithMultipleLayersEnabled", 2);
|
|
817
|
+
c([
|
|
818
|
+
o()
|
|
819
|
+
], l.prototype, "pasteWithMultipleFeaturesEnabled", 2);
|
|
820
|
+
c([
|
|
821
|
+
o()
|
|
822
|
+
], l.prototype, "alwaysShowFeatureForm", 2);
|
|
823
|
+
c([
|
|
824
|
+
o()
|
|
825
|
+
], l.prototype, "pasteTemplate", 2);
|
|
826
|
+
c([
|
|
827
|
+
o()
|
|
828
|
+
], l.prototype, "selectedClipboardItemIndex", 2);
|
|
829
|
+
c([
|
|
830
|
+
o()
|
|
831
|
+
], l.prototype, "clipboardAndTemplateSupportAttributes", 1);
|
|
832
|
+
c([
|
|
833
|
+
o()
|
|
834
|
+
], l.prototype, "hasClipboardItemMatchingTemplate", 1);
|
|
835
|
+
c([
|
|
836
|
+
o()
|
|
837
|
+
], l.prototype, "pasteWithAttributes", 2);
|
|
838
|
+
c([
|
|
839
|
+
o()
|
|
840
|
+
], l.prototype, "closeOnApply", 2);
|
|
841
|
+
c([
|
|
842
|
+
o()
|
|
843
|
+
], l.prototype, "currentPasteOperation", 2);
|
|
844
|
+
c([
|
|
845
|
+
o()
|
|
846
|
+
], l.prototype, "activeFlowPage", 1);
|
|
847
|
+
c([
|
|
848
|
+
o()
|
|
849
|
+
], l.prototype, "_activeFlowPage", 2);
|
|
850
|
+
c([
|
|
851
|
+
o()
|
|
852
|
+
], l.prototype, "beforeClipboard", 2);
|
|
853
|
+
c([
|
|
854
|
+
o()
|
|
855
|
+
], l.prototype, "beforeForm", 2);
|
|
856
|
+
c([
|
|
857
|
+
o()
|
|
858
|
+
], l.prototype, "showClipboardItems", 2);
|
|
859
|
+
c([
|
|
860
|
+
o()
|
|
861
|
+
], l.prototype, "updating", 1);
|
|
862
|
+
c([
|
|
863
|
+
o()
|
|
864
|
+
], l.prototype, "hideFooterCancelButton", 2);
|
|
865
|
+
c([
|
|
866
|
+
o()
|
|
867
|
+
], l.prototype, "hideViewClipboard", 2);
|
|
868
|
+
c([
|
|
869
|
+
o()
|
|
870
|
+
], l.prototype, "hideErrorNotice", 2);
|
|
871
|
+
c([
|
|
872
|
+
o()
|
|
873
|
+
], l.prototype, "clipboardGraphicsLayer", 2);
|
|
874
|
+
c([
|
|
875
|
+
o()
|
|
876
|
+
], l.prototype, "clipboardMover", 2);
|
|
877
|
+
c([
|
|
878
|
+
o()
|
|
879
|
+
], l.prototype, "highlightGroup", 2);
|
|
880
|
+
c([
|
|
881
|
+
o()
|
|
882
|
+
], l.prototype, "clipboard", 1);
|
|
883
|
+
c([
|
|
884
|
+
o()
|
|
885
|
+
], l.prototype, "clipboardFeatures", 1);
|
|
886
|
+
c([
|
|
887
|
+
o()
|
|
888
|
+
], l.prototype, "hasPasteCommandsPage", 1);
|
|
889
|
+
c([
|
|
890
|
+
o()
|
|
891
|
+
], l.prototype, "activeCommand", 2);
|
|
892
|
+
c([
|
|
893
|
+
o()
|
|
894
|
+
], l.prototype, "workingLayers", 1);
|
|
895
|
+
c([
|
|
896
|
+
o()
|
|
897
|
+
], l.prototype, "layerPermissionsCheck", 2);
|
|
898
|
+
c([
|
|
899
|
+
o()
|
|
900
|
+
], l.prototype, "clipboardItemLayers", 1);
|
|
901
|
+
c([
|
|
902
|
+
o()
|
|
903
|
+
], l.prototype, "canCreateOnAllLayers", 1);
|
|
904
|
+
c([
|
|
905
|
+
o()
|
|
906
|
+
], l.prototype, "applying", 2);
|
|
907
|
+
c([
|
|
908
|
+
o()
|
|
909
|
+
], l.prototype, "lastPasteError", 2);
|
|
910
|
+
c([
|
|
911
|
+
o()
|
|
912
|
+
], l.prototype, "availableCommands", 1);
|
|
913
|
+
l = c([
|
|
914
|
+
D("components.paste.PasteViewModel")
|
|
915
|
+
], l);
|
|
916
|
+
var ve = Object.defineProperty, be = Object.getOwnPropertyDescriptor, y = (t, i, e, a) => {
|
|
917
|
+
for (var s = a > 1 ? void 0 : a ? be(i, e) : i, r = t.length - 1, d; r >= 0; r--)
|
|
918
|
+
(d = t[r]) && (s = (a ? d(i, e, s) : d(s)) || s);
|
|
919
|
+
return a && s && ve(i, e, s), s;
|
|
920
|
+
};
|
|
921
|
+
let f = class extends W {
|
|
922
|
+
constructor() {
|
|
923
|
+
super(...arguments), this.continuous = !1, this._mover = null, this.stateChanged = null, this._suspended = !1;
|
|
924
|
+
}
|
|
925
|
+
clipboardContentsChanged() {
|
|
926
|
+
this._destroyMover(), this.stateChanged?.("clipboard-contents-changed"), this.continuous && this.start();
|
|
927
|
+
}
|
|
928
|
+
start() {
|
|
929
|
+
this._destroyMover(), this._mover = oe({
|
|
930
|
+
view: this.view,
|
|
931
|
+
graphics: this.graphicsLayer.graphics.toArray(),
|
|
932
|
+
indicatorsEnabled: !0,
|
|
933
|
+
highlightsEnabled: !0,
|
|
934
|
+
enableMoveAllGraphics: !0,
|
|
935
|
+
callbacks: {
|
|
936
|
+
onGraphicPointerOver: () => {
|
|
937
|
+
"cursor" in this.view && (this.view.cursor = "move");
|
|
938
|
+
},
|
|
939
|
+
onGraphicPointerOut: () => {
|
|
940
|
+
"cursor" in this.view && (this.view.cursor = "default");
|
|
941
|
+
},
|
|
942
|
+
onGraphicMoveStop: async () => {
|
|
943
|
+
"cursor" in this.view && (this.view.cursor = "default");
|
|
944
|
+
for (const t of this.graphicsLayer.graphics)
|
|
945
|
+
this.clipboard.items.getItemAt(t.attributes.clipboardIdx).graphic.geometry = t.geometry;
|
|
946
|
+
this._destroyMover(), this.stateChanged?.("contents-moved"), this.continuous && setTimeout(() => {
|
|
947
|
+
this.start();
|
|
948
|
+
}, 100);
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
});
|
|
952
|
+
}
|
|
953
|
+
cancel() {
|
|
954
|
+
this.continuous = !1, this._destroyMover(), this.stateChanged?.("completed");
|
|
955
|
+
}
|
|
956
|
+
get suspended() {
|
|
957
|
+
return this._suspended;
|
|
958
|
+
}
|
|
959
|
+
set suspended(t) {
|
|
960
|
+
t !== this._suspended && (t ? (this._destroyMover(), this.stateChanged?.("suspended")) : (this.start(), this.stateChanged?.("suspended")), this._suspended = t);
|
|
961
|
+
}
|
|
962
|
+
_destroyMover() {
|
|
963
|
+
this._mover?.destroy(), this._mover = null;
|
|
964
|
+
}
|
|
965
|
+
};
|
|
966
|
+
y([
|
|
967
|
+
o()
|
|
968
|
+
], f.prototype, "view", 2);
|
|
969
|
+
y([
|
|
970
|
+
o()
|
|
971
|
+
], f.prototype, "continuous", 2);
|
|
972
|
+
y([
|
|
973
|
+
o()
|
|
974
|
+
], f.prototype, "clipboard", 2);
|
|
975
|
+
y([
|
|
976
|
+
o()
|
|
977
|
+
], f.prototype, "graphicsLayer", 2);
|
|
978
|
+
y([
|
|
979
|
+
o()
|
|
980
|
+
], f.prototype, "suspended", 1);
|
|
981
|
+
y([
|
|
982
|
+
o()
|
|
983
|
+
], f.prototype, "_suspended", 2);
|
|
984
|
+
f = y([
|
|
985
|
+
D("components.paste.ClipboardMove")
|
|
986
|
+
], f);
|
|
987
|
+
const we = Q(l);
|
|
988
|
+
class ye extends Z {
|
|
989
|
+
constructor() {
|
|
990
|
+
super(...arguments), this._featureFormElement = z(), this._bauForm = z(), this._messages = K(), this.viewModel = we(this), this.activeFlowPage = this.viewModel.activeFlowPage, this.hasPasteCommandsPage = this.viewModel.hasPasteCommandsPage, this.activeCommand = this.viewModel.activeCommand, this.availableCommands = this.viewModel.availableCommands, this._showFloatingChoice = !1, this.autoDestroyDisabled = !1, this.view = this.viewModel.view, this.selectedFeature = this.viewModel.selectedFeature, this.closed = !1, this.highlightGroup = this.viewModel.highlightGroup, this.pasteWithMultipleLayersEnabled = this.viewModel.pasteWithMultipleLayersEnabled, this.pasteWithMultipleFeaturesEnabled = this.viewModel.pasteWithMultipleFeaturesEnabled, this.alwaysShowFeatureForm = this.viewModel.alwaysShowFeatureForm, this.closeOnApply = this.viewModel.closeOnApply, this.hideErrorNotice = this.viewModel.hideErrorNotice, this.hideFooterCancelButton = this.viewModel.hideFooterCancelButton, this.hideViewClipboard = this.viewModel.hideViewClipboard, this.layerPermissionsCheck = this.viewModel.layerPermissionsCheck, this.arcgisApplyPasteCommand = _(), this.arcgisApplyPasteError = _(), this.arcgisBeforeClipboardMove = _(), this.arcgisClipboardMoveStateChanged = _(), this.arcgisClose = _(), this.arcgisReady = _();
|
|
991
|
+
}
|
|
992
|
+
static {
|
|
993
|
+
this.properties = { activeFlowPage: 16, hasPasteCommandsPage: 16, activeCommand: 16, availableCommands: 16, _showFloatingChoice: 16, autoDestroyDisabled: 5, referenceElement: 1, view: 0, selectedFeature: 0, closed: 7, highlightGroup: 1, supportedCommands: 1, pasteWithMultipleLayersEnabled: 5, pasteWithMultipleFeaturesEnabled: 5, alwaysShowFeatureForm: 5, beforeApply: 0, clipboard: 32, closeOnApply: 5, hideErrorNotice: 5, hideFooterCancelButton: 5, hideViewClipboard: 5, layerPermissionsCheck: 0 };
|
|
994
|
+
}
|
|
995
|
+
static {
|
|
996
|
+
this.styles = le;
|
|
997
|
+
}
|
|
998
|
+
get supportedCommands() {
|
|
999
|
+
return this.viewModel.supportedCommands;
|
|
1000
|
+
}
|
|
1001
|
+
set supportedCommands(i) {
|
|
1002
|
+
if (!Array.isArray(i)) {
|
|
1003
|
+
this.viewModel.supportedCommands = i.split(",");
|
|
1004
|
+
return;
|
|
1005
|
+
}
|
|
1006
|
+
this.viewModel.supportedCommands = i.slice(0);
|
|
1007
|
+
}
|
|
1008
|
+
get clipboard() {
|
|
1009
|
+
return this.viewModel.clipboard;
|
|
1010
|
+
}
|
|
1011
|
+
async cancelMoveClipboard() {
|
|
1012
|
+
this.viewModel.clipboardMover?.cancel(), this.viewModel.clipboardMover = void 0;
|
|
1013
|
+
}
|
|
1014
|
+
async destroy() {
|
|
1015
|
+
await this.manager.destroy();
|
|
1016
|
+
}
|
|
1017
|
+
async registerPasteCommand(i) {
|
|
1018
|
+
this.viewModel.customPasteCommands.add(i);
|
|
1019
|
+
}
|
|
1020
|
+
async showClipboardItems(i) {
|
|
1021
|
+
this.viewModel.showClipboardItems = i, this.viewModel.updateClipboardGraphicsLayer();
|
|
1022
|
+
}
|
|
1023
|
+
async startMoveClipboard(i) {
|
|
1024
|
+
if (!this.viewModel.showClipboardItems)
|
|
1025
|
+
throw new Error("Cannot move clipboard. Clipboard items must be visible first.");
|
|
1026
|
+
this.arcgisBeforeClipboardMove.emit().defaultPrevented || (this.viewModel.clipboardMover && (this.viewModel.clipboardMover.stateChanged = null, this.viewModel.clipboardMover.cancel(), this.viewModel.clipboardMover = void 0), this.viewModel.clipboardMover = new f({
|
|
1027
|
+
view: this.view,
|
|
1028
|
+
continuous: i,
|
|
1029
|
+
clipboard: this.clipboard,
|
|
1030
|
+
graphicsLayer: this.viewModel.clipboardGraphicsLayer,
|
|
1031
|
+
stateChanged: (a) => {
|
|
1032
|
+
a === "contents-moved" && this.viewModel.updateClipboardGraphicsLayer(), this.arcgisClipboardMoveStateChanged.emit({ change: a });
|
|
1033
|
+
}
|
|
1034
|
+
}), this.viewModel.clipboardMover.start());
|
|
1035
|
+
}
|
|
1036
|
+
async writeChanges(i) {
|
|
1037
|
+
return await this.viewModel.writeChanges(i);
|
|
1038
|
+
}
|
|
1039
|
+
updated() {
|
|
1040
|
+
this._featureFormElement.value && (this._featureFormElement.value.hideReadOnlyNotice = !0, this._featureFormElement.value.disabled = !0);
|
|
1041
|
+
}
|
|
1042
|
+
loaded() {
|
|
1043
|
+
this.manager.onLifecycle(() => [
|
|
1044
|
+
this.viewModel.clipboard.items.on("change", () => {
|
|
1045
|
+
this.viewModel.updateClipboardGraphicsLayer(), this.activeFlowPage === "paste-form" && this.viewModel.resetHome();
|
|
1046
|
+
}),
|
|
1047
|
+
E(() => this.clipboard.version, () => {
|
|
1048
|
+
this.viewModel.resetHome(), this.viewModel.updateClipboardGraphicsLayer(), this.viewModel.clipboardMover?.clipboardContentsChanged();
|
|
1049
|
+
}),
|
|
1050
|
+
E(() => this.closed, () => {
|
|
1051
|
+
this.closed && this.viewModel.formViewModelMap.clear(), this.viewModel.updateClipboardGraphicsLayer();
|
|
1052
|
+
}),
|
|
1053
|
+
E(() => [
|
|
1054
|
+
this.viewModel?.supportedCommands.join(","),
|
|
1055
|
+
this.pasteWithMultipleFeaturesEnabled,
|
|
1056
|
+
this.viewModel?.hideViewClipboard,
|
|
1057
|
+
this.pasteWithMultipleLayersEnabled
|
|
1058
|
+
].join(","), () => {
|
|
1059
|
+
this.viewModel.resetHome();
|
|
1060
|
+
}, { initial: !0 })
|
|
1061
|
+
]);
|
|
1062
|
+
}
|
|
1063
|
+
_handleCloseAfterApply() {
|
|
1064
|
+
this.closed = !0, this.arcgisClose.emit();
|
|
1065
|
+
}
|
|
1066
|
+
_updateBauViewModelFields(i) {
|
|
1067
|
+
this.viewModel.bauActiveFeatureIndex = i.activeFeatureIndex, this.viewModel.bauInvalidFeatures = i.invalidFeatures, this.viewModel.bauSubmitHasBeenAttempted = i.submitHasBeenAttempted, this.viewModel.bauFormValid = i.valid, this.viewModel.bauFormUpdating = i.updating;
|
|
1068
|
+
}
|
|
1069
|
+
_renderCloseCommand() {
|
|
1070
|
+
return n`<calcite-action slot=header-actions-end icon=x text @click=${() => {
|
|
1071
|
+
this.viewModel.resetHome(), this.closed = !0, this.arcgisClose.emit();
|
|
1072
|
+
}}></calcite-action>`;
|
|
1073
|
+
}
|
|
1074
|
+
_renderClipboardCommand() {
|
|
1075
|
+
return n`<calcite-action slot=header-actions-end icon=clipboard .hidden=${this.viewModel.hideViewClipboard} text .disabled=${this.viewModel.updating} @click=${() => {
|
|
1076
|
+
this.viewModel.activeFlowPage = "clipboard";
|
|
1077
|
+
}}></calcite-action>`;
|
|
1078
|
+
}
|
|
1079
|
+
_renderNoClipboardData(i) {
|
|
1080
|
+
return g("no-data", n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${(e) => {
|
|
1081
|
+
e.preventDefault();
|
|
1082
|
+
}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="pad-contents"><div class="flex flex-row justify-center"><svg xmlns=http://www.w3.org/2000/svg height=92 width=92 style=${k({ strokeWidth: "0.1px", fill: "var(--calcite-color-text-2)" })} viewBox="0 0 64 64">${S`<path d="M21 18h-1v-3h1zm24-3h-1v3h1zm0 5h-1v3h1zm-24 0h-1v3h1zm9.84 13.71l.3.954 3.02-.954-.3-.953zm-6.04 1.908l.3.953 3.02-.953-.3-.953zm-3.8 1.2V35h-1v3.182l2.08-.657-.3-.953zM21 30h-1v3h1zm0-5h-1v3h1zm27.816 5.896l-4.746.015 2.294 4.575-3.071 1.535-2.358-4.668-2.835 3.886V23.036zm-6.04-.78l3.607-.012-7.483-5.49v9.17l2.16-2.96 2.587 5.126 1.643-.821zM60.9 10.874v41.25a1.777 1.777 0 0 1-1.775 1.775H4.875A1.777 1.777 0 0 1 3.1 52.125v-41.25A1.777 1.777 0 0 1 4.875 9.1h54.25a1.777 1.777 0 0 1 1.775 1.775zm-.8 24.54l-24.2 7.641V53.1h23.225a.976.976 0 0 0 .975-.975zm0-24.54a.976.976 0 0 0-.975-.975H45V13h-1V9.9H21V13h-1V9.9H4.875a.976.976 0 0 0-.975.975V32.1H18v.8H3.9v19.225a.976.976 0 0 0 .975.975H35.1V35.51l.8-.252v6.96l24.2-7.643z" />`}</svg></div><p class="text-center">${this._messages.noClipboardData}</p></div></calcite-panel></calcite-flow-item>`);
|
|
1083
|
+
}
|
|
1084
|
+
_renderNoCommandPage(i) {
|
|
1085
|
+
let e = this._messages.noPasteCommandsAvailable;
|
|
1086
|
+
const a = this.availableCommands.at(0);
|
|
1087
|
+
return a?.commandDisabledReason && (e = a.commandDisabledReason(this._messages, this._messages._lang), e || (e = this._messages.noPasteCommandsAvailable)), g("no-command", n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${(s) => {
|
|
1088
|
+
s.preventDefault();
|
|
1089
|
+
}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="pad-contents"><div class="flex flex-row justify-center"><svg xmlns=http://www.w3.org/2000/svg height=92 width=92 style=${k({ strokeWidth: "0.1px", fill: "var(--calcite-color-text-2)" })} viewBox="0 0 64 64">${S`<path d="M21 18h-1v-3h1zm24-3h-1v3h1zm0 5h-1v3h1zm-24 0h-1v3h1zm9.84 13.71l.3.954 3.02-.954-.3-.953zm-6.04 1.908l.3.953 3.02-.953-.3-.953zm-3.8 1.2V35h-1v3.182l2.08-.657-.3-.953zM21 30h-1v3h1zm0-5h-1v3h1zm27.816 5.896l-4.746.015 2.294 4.575-3.071 1.535-2.358-4.668-2.835 3.886V23.036zm-6.04-.78l3.607-.012-7.483-5.49v9.17l2.16-2.96 2.587 5.126 1.643-.821zM60.9 10.874v41.25a1.777 1.777 0 0 1-1.775 1.775H4.875A1.777 1.777 0 0 1 3.1 52.125v-41.25A1.777 1.777 0 0 1 4.875 9.1h54.25a1.777 1.777 0 0 1 1.775 1.775zm-.8 24.54l-24.2 7.641V53.1h23.225a.976.976 0 0 0 .975-.975zm0-24.54a.976.976 0 0 0-.975-.975H45V13h-1V9.9H21V13h-1V9.9H4.875a.976.976 0 0 0-.975.975V32.1H18v.8H3.9v19.225a.976.976 0 0 0 .975.975H35.1V35.51l.8-.252v6.96l24.2-7.643z" />`}</svg></div><p class="text-center">${e}</p></div></calcite-panel></calcite-flow-item>`);
|
|
1090
|
+
}
|
|
1091
|
+
_renderAttributeCheckbox(i) {
|
|
1092
|
+
return n`<calcite-label class="bold">${this._messages.attributesSubtitle}</calcite-label><calcite-label layout=inline><calcite-checkbox .disabled=${i} .checked=${this.viewModel.pasteWithAttributes} @calciteCheckboxChange=${(e) => {
|
|
1093
|
+
this.viewModel.pasteWithAttributes = e.target.checked;
|
|
1094
|
+
}}></calcite-checkbox>${this._messages.pasteWithAttributesLabel}</calcite-label>`;
|
|
1095
|
+
}
|
|
1096
|
+
_renderFlowPasteAs(i) {
|
|
1097
|
+
return i ? g("paste-gallery", n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${(e) => {
|
|
1098
|
+
e.preventDefault(), this.viewModel.hasPasteCommandsPage && (this.activeFlowPage = "commands-page");
|
|
1099
|
+
}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="w-full" slot=footer><div class="w-full flex"><calcite-button .disabled=${this.viewModel.updating} width=half .hidden=${this.viewModel.hideFooterCancelButton} kind=brand appearance=outline @click=${() => {
|
|
1100
|
+
this.viewModel.resetHome(), this.closed = !0, this.arcgisClose.emit();
|
|
1101
|
+
}}>${this._messages.cancel}</calcite-button><calcite-button .disabled=${this.viewModel.updating || !this.viewModel.pasteTemplate} kind=brand appearance=solid width=half @click=${() => {
|
|
1102
|
+
try {
|
|
1103
|
+
this.viewModel.lastPasteError = void 0, this.viewModel.runPasteCommand({
|
|
1104
|
+
closeAfterApply: () => {
|
|
1105
|
+
this._handleCloseAfterApply();
|
|
1106
|
+
},
|
|
1107
|
+
onPasteError: (e) => {
|
|
1108
|
+
this.arcgisApplyPasteError.emit({
|
|
1109
|
+
command: this.activeCommand ?? "paste-as",
|
|
1110
|
+
errorMessage: e.errorMessage,
|
|
1111
|
+
errorCode: e.errorCode
|
|
1112
|
+
});
|
|
1113
|
+
},
|
|
1114
|
+
onApply: async (e) => {
|
|
1115
|
+
try {
|
|
1116
|
+
await this.beforeApply?.();
|
|
1117
|
+
const a = { ...e };
|
|
1118
|
+
return this.arcgisApplyPasteCommand.emit(a).defaultPrevented ? { success: !1 } : (a.completionCallback && await a.completionCallback, { success: !0 });
|
|
1119
|
+
} catch {
|
|
1120
|
+
return { success: !1 };
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
}, this.viewModel.activeCommand ?? "paste-as");
|
|
1124
|
+
} catch {
|
|
1125
|
+
}
|
|
1126
|
+
}}>${this.viewModel.alwaysShowFeatureForm ? this._messages.next : (this.viewModel.clipboardFeatures.length ?? 0) > 1 && this.activeCommand !== "paste-merge" ? w(this._messages.pasteMany ?? "", { num: this.viewModel.clipboardFeatures.length }) : this._messages.paste}</calcite-button></div></div><div class="pad-start-end gallery-content"><div>${!this.viewModel.clipboardAndTemplateSupportAttributes && this.viewModel.pasteTemplate ? n`<div class="pad-contents"><calcite-notice open icon=exclamation-point kind=info><div slot=message>${this._messages.attributesNotCopied}</div>${this.activeCommand === "paste-merge" && this.viewModel.hasClipboardItemMatchingTemplate ? n`<calcite-link slot=link @click=${() => {
|
|
1127
|
+
this.activeFlowPage = "merge-page";
|
|
1128
|
+
}} title=${this._messages.seeMergeOptions ?? J}>${this._messages.seeMergeOptions}</calcite-link>` : null}</calcite-notice></div>` : null}${this.viewModel.clipboardAndTemplateSupportAttributes && this.viewModel.pasteTemplate ? this._renderAttributeCheckbox(!this.viewModel.clipboardAndTemplateSupportAttributes) : null}${this.viewModel.clipboardAndTemplateSupportAttributes ? null : this._renderAttributeCheckbox(!1)}</div><calcite-list .hidden=${this.viewModel.activeCommand !== "paste-merge"} .label=${this._messages.pasteCommandChoices ?? ""} selection-mode=none selection-appearance=border><calcite-list-item .label=${this._messages.mergeOptionsTitle} .description=${this._messages.mergeOptionsDesc} .disabled=${this.viewModel.updating} @click=${() => {
|
|
1129
|
+
this.activeFlowPage = "merge-page";
|
|
1130
|
+
}}><calcite-icon slot=content-start icon=configure></calcite-icon><calcite-icon slot=content-end icon=chevron-right></calcite-icon></calcite-list-item></calcite-list><div><arcgis-feature-templates class="paste-feature-templates" .layers=${this.viewModel.workingLayers} selection-mode=single .disabledItemFunction=${() => !1} @arcgisSelect=${(e) => {
|
|
1131
|
+
this.viewModel.pasteTemplate = e.detail.item;
|
|
1132
|
+
}} .referenceElement=${this.referenceElement}></arcgis-feature-templates></div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`) : g("paste-gallery", n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${(e) => {
|
|
1133
|
+
e.preventDefault(), this.viewModel.hasPasteCommandsPage && (this.activeFlowPage = "commands-page");
|
|
1134
|
+
}}></calcite-flow-item>`);
|
|
1135
|
+
}
|
|
1136
|
+
_renderFlowPasteMerge(i) {
|
|
1137
|
+
if (!i)
|
|
1138
|
+
return g("paste-merge", n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${(a) => {
|
|
1139
|
+
a.preventDefault(), this.activeFlowPage = "gallery-page";
|
|
1140
|
+
}}></calcite-flow-item>`);
|
|
1141
|
+
const e = this.viewModel.selectedClipboardItemIndex === -1 ? null : this.viewModel.clipboard.items.getItemAt(this.viewModel.selectedClipboardItemIndex);
|
|
1142
|
+
return g("paste-merge", n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${(a) => {
|
|
1143
|
+
a.preventDefault(), this.activeFlowPage = "gallery-page";
|
|
1144
|
+
}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="merge-split-view-container"><div class="pad-contents merge-split-view-items"><calcite-label>${this._messages.selectionLabel}<calcite-list .label=${this._messages.features ?? ""} selection-mode=single selection-appearance=border>${this.clipboard.items.toArray().map((a, s) => ({ id: s, item: a })).filter((a) => a.item.type === "feature" && a.item.layer && a.item.graphic).map((a) => n`<calcite-list-item .disabled=${this.viewModel.updating} .selected=${a.id === this.viewModel.selectedClipboardItemIndex} @calciteListItemSelect=${() => {
|
|
1145
|
+
this.viewModel.selectedClipboardItemIndex = a.id;
|
|
1146
|
+
}} @pointerenter=${(s) => {
|
|
1147
|
+
this.viewModel.highlightSelectedGraphicOnMap(a.item), s.target.classList.add("hovering");
|
|
1148
|
+
}} @pointerleave=${(s) => {
|
|
1149
|
+
s.target.classList.remove("hovering"), this.viewModel.clearHighlightSelectedGraphic();
|
|
1150
|
+
}} .value=${a.id}><arcgis-feature-title slot=content .graphic=${a.item.graphic} .layer=${a.item.layer}></arcgis-feature-title><arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape slot=content-start .graphic=${a.item.graphic} .layer=${a.item.layer}></arcgis-feature-image>${this.viewModel.selectedClipboardItemIndex !== a.id ? n`<calcite-chip slot=content-end .label=${this._messages.preservethis ?? ""} class="chip-indent only-on-hover item-candidate" scale=s .value=${a.id}>${this._messages.preservethis ?? ""}</calcite-chip>` : ""}${this.viewModel.selectedClipboardItemIndex === a.id ? n`<calcite-chip icon=check .label=${this._messages.preserved ?? ""} class="item-preserved chip-indent" scale=s slot=content-end .value=${a.id}>${this._messages.preserved}</calcite-chip>` : ""}</calcite-list-item>`)}</calcite-list></calcite-label></div><div class=" merge-split-view-attributes">${this.viewModel.selectedClipboardItemIndex === -1 ? n`<div></div>` : n`<div><arcgis-feature-form .feature=${e.graphic} .formTemplate=${e.layer.formTemplate ? e.layer.formTemplate : null} .layer=${e.layer} ${O(this._featureFormElement)}></arcgis-feature-form></div>`}</div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`);
|
|
1151
|
+
}
|
|
1152
|
+
_renderFlowPasteForm(i) {
|
|
1153
|
+
if (!i)
|
|
1154
|
+
return g("paste-form", n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${(p) => {
|
|
1155
|
+
p.preventDefault(), this.activeFlowPage = this.viewModel.beforeForm, this.viewModel.resetFormPage();
|
|
1156
|
+
}}></calcite-flow-item>`);
|
|
1157
|
+
const e = (this.viewModel.bauFeatures?.length ?? 0) > 1, a = this.viewModel.updating, s = this.viewModel.bauActiveFeatureIndex > 0, r = this.viewModel.bauActiveFeatureIndex !== -1 && this.viewModel.bauActiveFeatureIndex < (this.viewModel.bauFeatures?.length ?? 0) - 1, d = this.viewModel.bauActiveFeatureIndex === -1 ? w(this._messages.multipleFeaturesX ?? "", {
|
|
1158
|
+
total: this.viewModel.bauFeatures?.length ?? 0
|
|
1159
|
+
}) : w(this._messages.range ?? "", {
|
|
1160
|
+
current: this.viewModel.bauActiveFeatureIndex + 1,
|
|
1161
|
+
total: this.viewModel.bauFeatures?.length ?? 0
|
|
1162
|
+
}), h = (this.viewModel.bauInvalidFeatures?.length ?? 0) > 0;
|
|
1163
|
+
return g("paste-form", n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${(p) => {
|
|
1164
|
+
p.preventDefault(), this.activeFlowPage = this.viewModel.beforeForm, this.viewModel.resetFormPage();
|
|
1165
|
+
}}>${this._renderCloseCommand()}<calcite-panel><div class="w-full" slot=footer><div class="w-full flex"><calcite-button .disabled=${this.viewModel.updating} width=half .hidden=${this.viewModel.hideFooterCancelButton} kind=brand appearance=outline @click=${() => {
|
|
1166
|
+
this.viewModel.resetHome(), this.closed = !0, this.arcgisClose.emit();
|
|
1167
|
+
}}>${this._messages.cancel}</calcite-button><calcite-button .disabled=${this.viewModel.updating || this.viewModel.bauFormUpdating} kind=brand appearance=solid width=half @click=${async () => {
|
|
1168
|
+
try {
|
|
1169
|
+
if (await N(() => !this.viewModel.bauFormUpdating), !this.viewModel.bauFormValid) {
|
|
1170
|
+
this._bauForm.value?.goToFirstError();
|
|
1171
|
+
return;
|
|
1172
|
+
}
|
|
1173
|
+
this.viewModel.lastPasteError = void 0, this.viewModel.runPasteFormCommand({
|
|
1174
|
+
closeAfterApply: () => {
|
|
1175
|
+
this._handleCloseAfterApply();
|
|
1176
|
+
},
|
|
1177
|
+
onPasteError: (p) => {
|
|
1178
|
+
this.arcgisApplyPasteError.emit({
|
|
1179
|
+
command: this.activeCommand ?? "paste-as",
|
|
1180
|
+
errorMessage: p.errorMessage,
|
|
1181
|
+
errorCode: p.errorCode
|
|
1182
|
+
});
|
|
1183
|
+
},
|
|
1184
|
+
onApply: async (p) => {
|
|
1185
|
+
try {
|
|
1186
|
+
await this.beforeApply?.();
|
|
1187
|
+
const m = { ...p };
|
|
1188
|
+
return this.arcgisApplyPasteCommand.emit(m).defaultPrevented ? { success: !1 } : (m.completionCallback && await m.completionCallback, { success: !0 });
|
|
1189
|
+
} catch {
|
|
1190
|
+
return { success: !1 };
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
});
|
|
1194
|
+
} catch {
|
|
1195
|
+
}
|
|
1196
|
+
}}>${(this.viewModel.bauFeatures?.length ?? 0) > 1 ? w(this._messages.pasteMany ?? "", { num: this.viewModel.bauFeatures.length }) : this._messages.paste}</calcite-button></div></div>${e ? n`<calcite-action-bar overflow-actions-disabled slot=action-bar layout=horizontal scale=s expand-disabled class="carousel-bar"><calcite-button .disabled=${this.viewModel.updating} @click=${(p) => {
|
|
1197
|
+
this._showFloatingChoice = !this._showFloatingChoice, p.stopPropagation();
|
|
1198
|
+
}} scale=s appearance=transparent icon-start=legend icon-end=chevron-down kind=neutral><span class="bau-pick">${d}${h ? n`<calcite-icon scale=s icon=exclamation-mark-triangle class="danger-icon-warning"></calcite-icon>` : ""}</span></calcite-button><calcite-action slot=actions-end icon=chevron-left icon-flip-rtl scale=s .text=${this._messages.back ?? ""} .disabled=${!s || a || !e} @click=${() => {
|
|
1199
|
+
this.viewModel.previousActiveFeature();
|
|
1200
|
+
}}></calcite-action><calcite-action slot=actions-end icon=chevron-right icon-flip-rtl scale=s .text=${this._messages.next ?? ""} .disabled=${!r || a || !e} @click=${() => {
|
|
1201
|
+
this.viewModel.nextActiveFeature();
|
|
1202
|
+
}}></calcite-action></calcite-action-bar>${this._renderFloatingUIChoice(e)}` : ""}<div>${this._renderPasteFormBreadcrumb()}<arcgis-multi-feature-form edit-type=INSERT .disabled=${this.viewModel.updating} .features=${this.viewModel.bauFeatures} .activeFeatureIndex=${this.viewModel.bauActiveFeatureIndex} @arcgisPropertyChange=${(p) => {
|
|
1203
|
+
this._updateBauViewModelFields(p.target);
|
|
1204
|
+
}} @arcgisValueChange=${(p) => {
|
|
1205
|
+
let m = 0;
|
|
1206
|
+
for (const v of this.viewModel.bauFeatures?.toArray() ?? []) {
|
|
1207
|
+
const b = this.viewModel.bauOriginalGraphics[m];
|
|
1208
|
+
this.viewModel.formFeatureValuesChanged(b, p.target.getValues(v)), m++;
|
|
1209
|
+
}
|
|
1210
|
+
}} ${O(this._bauForm)}></arcgis-multi-feature-form></div></calcite-panel>${this.renderPasteErrorFooter()}${this._renderApplying()}</calcite-flow-item>`);
|
|
1211
|
+
}
|
|
1212
|
+
_renderPasteFormBreadcrumb() {
|
|
1213
|
+
return n`<calcite-list .label=${this._messages.breadcrumb ?? ""} selection-appearance=border scale=s selection-mode=none><calcite-list-item>${this.viewModel.bauActiveFeatureIndex === -1 ? n`<calcite-icon scale=s slot=content-start icon=group-form></calcite-icon>` : M(this.viewModel.bauActiveGraphic)?.isTable ? n`<calcite-icon scale=s slot=content-start icon=table></calcite-icon>` : n`<arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape slot=content-start .graphic=${this.viewModel.bauActiveGraphic} .layer=${this.viewModel.bauActiveLayer}></arcgis-feature-image>`}${this.viewModel.bauActiveFeatureIndex === -1 ? n`<span slot=content>${w(this._messages.multipleFeaturesX ?? "", {
|
|
1214
|
+
total: this.viewModel.bauFeatures?.length ?? 0
|
|
1215
|
+
})}</span>` : n`<arcgis-feature-title is-new-feature slot=content .graphic=${this.viewModel.bauActiveGraphic} .layer=${this.viewModel.bauActiveLayer}></arcgis-feature-title>`}</calcite-list-item></calcite-list>`;
|
|
1216
|
+
}
|
|
1217
|
+
_renderFloatingUIChoice(i) {
|
|
1218
|
+
if (!this._showFloatingChoice || !i)
|
|
1219
|
+
return n`<div></div>`;
|
|
1220
|
+
let e = !1;
|
|
1221
|
+
this.viewModel.bauInvalidFeatures.length > 0 && (e = !0);
|
|
1222
|
+
const a = new Set(this.viewModel.bauInvalidFeatures);
|
|
1223
|
+
return n`<div class="choose-feature"><calcite-list .label=${this._messages.choosefeature ?? ""} selection-mode=single selection-appearance=border><calcite-list-item .disabled=${this.viewModel.updating} @calciteListItemSelect=${(s) => {
|
|
1224
|
+
this.viewModel.bauActiveFeatureIndex !== -1 && (this.viewModel.bauActiveFeatureIndex = -1, this.viewModel.updateIndividualMultiFeatureFormHighlight()), this.viewModel.clearMultiFeatureFormHighlights(), this._showFloatingChoice = !1;
|
|
1225
|
+
}} .label=${w(this._messages.multipleFeaturesX ?? "", {
|
|
1226
|
+
total: this.viewModel.bauFeatures.length
|
|
1227
|
+
})} .selected=${this.viewModel.bauActiveFeatureIndex === -1} value=shared><calcite-icon scale=s icon=group-form class="feature-choose-listitem" slot=content-start></calcite-icon></calcite-list-item>${this.viewModel.bauFeatures.map((s, r) => n`<calcite-list-item .disabled=${this.viewModel.updating} @pointerenter=${(d) => {
|
|
1228
|
+
this.viewModel.highlightMultiFeatureFormFeature(s, r);
|
|
1229
|
+
}} @pointerleave=${(d) => {
|
|
1230
|
+
this.viewModel.clearMultiFeatureFormHighlights();
|
|
1231
|
+
}} .selected=${this.viewModel.bauActiveFeatureIndex === r} @calciteListItemSelect=${(d) => {
|
|
1232
|
+
const h = window.parseInt(d.currentTarget.value);
|
|
1233
|
+
this.viewModel.bauActiveFeatureIndex = h, this.viewModel.updateIndividualMultiFeatureFormHighlight(), this.viewModel.clearMultiFeatureFormHighlights(), this._showFloatingChoice = !1;
|
|
1234
|
+
}} .value=${r}><arcgis-feature-title is-new-feature slot=content .graphic=${s} .layer=${s.layer}></arcgis-feature-title>${M(s)?.isTable ? n`<calcite-icon scale=s icon=table slot=content-start class="feature-choose-listitem"></calcite-icon>` : n`<arcgis-feature-image slot=content-start class="feature-choose-listitem" .graphic=${s} width-in-pixels=16 height-in-pixels=16 use-true-shape .layer=${s.layer}></arcgis-feature-image>`}${a.has(s) && e ? n`<calcite-icon slot=content-end icon=exclamation-mark-triangle scale=s class="danger-icon-warning"></calcite-icon>` : ""}</calcite-list-item>`)}</calcite-list></div>`;
|
|
1235
|
+
}
|
|
1236
|
+
_renderClipboard(i) {
|
|
1237
|
+
return i ? g("paste-form", n`<calcite-flow-item .selected=${i} .heading=${this._messages.clipboardContents} @calciteFlowItemBack=${(e) => {
|
|
1238
|
+
e.preventDefault(), this.activeFlowPage = this.viewModel.beforeClipboard;
|
|
1239
|
+
}}>${this._renderCloseCommand()}<calcite-panel><arcgis-clipboard .view=${this.view} .referenceElement=${this.referenceElement}></arcgis-clipboard></calcite-panel></calcite-flow-item>`) : g("paste-form", n`<calcite-flow-item .selected=${i} .heading=${this._messages.clipboardContents} @calciteFlowItemBack=${(e) => {
|
|
1240
|
+
e.preventDefault(), this.activeFlowPage = this.viewModel.beforeClipboard;
|
|
1241
|
+
}}></calcite-flow-item>`);
|
|
1242
|
+
}
|
|
1243
|
+
_renderPasteCommands(i) {
|
|
1244
|
+
if (!i)
|
|
1245
|
+
return g("paste-commands", n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${(a) => {
|
|
1246
|
+
a.preventDefault(), this.activeFlowPage = "commands-page";
|
|
1247
|
+
}}></calcite-flow-item>`);
|
|
1248
|
+
const e = this.viewModel.clipboard.items.length === 0 ? this._messages.clipboardEmpty ?? "" : this.viewModel.clipboard.items.length > 1 ? w(this._messages.clipboardContentsMany ?? "", {
|
|
1249
|
+
num: this.viewModel.clipboard.items.length
|
|
1250
|
+
}) : this._messages.clipboardContentsSingle ?? "";
|
|
1251
|
+
return g("paste-commands", n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${(a) => {
|
|
1252
|
+
a.preventDefault(), this.activeFlowPage = "commands-page";
|
|
1253
|
+
}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><calcite-list .label=${this._messages.clipboardContents ?? ""} selection-mode=none selection-appearance=border><calcite-list-item .description=${e}></calcite-list-item></calcite-list><div class="pad-contents"><calcite-notice open icon=move><div slot=message>${this._messages.moveClipboardFeatures}</div></calcite-notice></div><div class="pad-contents"><calcite-list .label=${this._messages.pasteCommandChoices ?? ""} selection-mode=none selection-appearance=border>${this.availableCommands.map((a) => n`<calcite-list-item .label=${a.label(this._messages, this._messages._lang)} .description=${a.description(this._messages, this._messages._lang)} .value=${a.id} .disabled=${!a.commandEnabled || this.viewModel.updating} @click=${async () => {
|
|
1254
|
+
try {
|
|
1255
|
+
this.viewModel.lastPasteError = void 0, await a.initiate({
|
|
1256
|
+
closeAfterApply: () => {
|
|
1257
|
+
this._handleCloseAfterApply();
|
|
1258
|
+
},
|
|
1259
|
+
onPasteError: (s) => {
|
|
1260
|
+
this.arcgisApplyPasteError.emit({
|
|
1261
|
+
command: a.id,
|
|
1262
|
+
errorMessage: s.errorMessage,
|
|
1263
|
+
errorCode: s.errorCode
|
|
1264
|
+
});
|
|
1265
|
+
},
|
|
1266
|
+
onApply: async (s) => {
|
|
1267
|
+
try {
|
|
1268
|
+
await this.beforeApply?.();
|
|
1269
|
+
const r = { ...s };
|
|
1270
|
+
return this.arcgisApplyPasteCommand.emit(r).defaultPrevented ? { success: !1 } : (r.completionCallback && await r.completionCallback, { success: !0 });
|
|
1271
|
+
} catch {
|
|
1272
|
+
return { success: !1 };
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
});
|
|
1276
|
+
} catch {
|
|
1277
|
+
}
|
|
1278
|
+
}}><calcite-icon slot=content-start .icon=${a.icon}></calcite-icon>${a.immediate ? "" : n`<calcite-icon slot=content-end icon=chevron-right flip-rtl></calcite-icon>`}</calcite-list-item>`)}</calcite-list></div></calcite-panel>${this.renderPasteErrorFooter()}${this._renderApplying()}</calcite-flow-item>`);
|
|
1279
|
+
}
|
|
1280
|
+
renderPasteErrorFooter() {
|
|
1281
|
+
return !this.viewModel.lastPasteError || this.viewModel.hideErrorNotice ? null : n`<calcite-notice slot=footer open kind=danger icon=exclamation-mark-triangle closable @calciteNoticeClose=${() => {
|
|
1282
|
+
this.viewModel.lastPasteError = void 0;
|
|
1283
|
+
}}><div slot=title>${this._messages.errorNoticeTitle ?? ""}</div><div slot=message>${this.viewModel.lastPasteError.localizedErrorMessage ? this._messages[this.viewModel.lastPasteError.localizedErrorMessage] : this._messages.errorNoticeMessage ?? ""}</div></calcite-notice>`;
|
|
1284
|
+
}
|
|
1285
|
+
_renderApplying() {
|
|
1286
|
+
return this.viewModel.applying ? n`<calcite-scrim><calcite-loader scale=s .label=${this._messages.updating ?? ""}></calcite-loader></calcite-scrim>` : "";
|
|
1287
|
+
}
|
|
1288
|
+
render() {
|
|
1289
|
+
return this.activeFlowPage === "nodata-page" ? n`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this._renderNoClipboardData(this.activeFlowPage === "nodata-page")}</calcite-flow>` : this.activeFlowPage === "no-command-page" ? n`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this._renderNoCommandPage(this.activeFlowPage === "no-command-page")}</calcite-flow>` : n`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this.hasPasteCommandsPage && this._renderPasteCommands(this.activeFlowPage === "commands-page") || ""}${this._renderFlowPasteAs(this.activeFlowPage === "gallery-page")}${this._renderFlowPasteMerge(this.activeFlowPage === "merge-page")}${this._renderFlowPasteForm(this.activeFlowPage === "paste-form")}${this._renderClipboard(this.activeFlowPage === "clipboard")}</calcite-flow>`;
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
q("arcgis-paste", ye);
|
|
1293
|
+
export {
|
|
1294
|
+
ye as ArcgisPaste
|
|
1295
|
+
};
|