@arcgis/map-components 5.2.0-next.140 → 5.2.0-next.141
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/{WUTCKBNC.js → 24DOFGMG.js} +2 -2
- package/dist/cdn/{VZ6UFS6H.js → 26LWK3XB.js} +2 -2
- package/dist/cdn/{SLSGW7B6.js → 27GJE7OY.js} +2 -2
- package/dist/cdn/{A6H4JIO7.js → 27MP6TEF.js} +2 -2
- package/dist/cdn/{NY7RHFLZ.js → 2AQYGR7K.js} +2 -2
- package/dist/cdn/{IDIAWXUO.js → 2COOBXHG.js} +2 -2
- package/dist/cdn/{BI2SI2HK.js → 2CWTV6TC.js} +2 -2
- package/dist/cdn/{NJPPZJ3L.js → 2DKTF2EL.js} +2 -2
- package/dist/cdn/{PBYHBRG7.js → 2GDB3C5I.js} +2 -2
- package/dist/cdn/{IT52WNCR.js → 2KP3MSHV.js} +3 -3
- package/dist/cdn/{2F4IGA4W.js → 3A3DGDW5.js} +2 -2
- package/dist/cdn/{NFCFPU7K.js → 3A7S62FX.js} +2 -2
- package/dist/cdn/{TKILR2SM.js → 3DUIQTNG.js} +2 -2
- package/dist/cdn/{VDKEQI3H.js → 3E56Q4ZY.js} +2 -2
- package/dist/cdn/{62IE7RFR.js → 3HS3DM5B.js} +2 -2
- package/dist/cdn/{WNWTWPV6.js → 3JCF73F4.js} +2 -2
- package/dist/cdn/{L2F4HQYY.js → 3JRPMLOZ.js} +2 -2
- package/dist/cdn/3KZAH5OY.js +2 -0
- package/dist/cdn/{RZGWZ2FJ.js → 3L2J4JFP.js} +2 -2
- package/dist/cdn/{BHCAFGIA.js → 3LOGBSQP.js} +1 -1
- package/dist/cdn/{FSBLGH6E.js → 3MQPSWL6.js} +2 -2
- package/dist/cdn/{EOAVDNBZ.js → 3NL42TBJ.js} +2 -2
- package/dist/cdn/{MICLX7QW.js → 3O4SVNIK.js} +2 -2
- package/dist/cdn/{QWIDIEXY.js → 3PVLBFNC.js} +2 -2
- package/dist/cdn/{DYWCAORU.js → 3SG4AC5C.js} +2 -2
- package/dist/cdn/{F5JYYT42.js → 3WTBTYMS.js} +1 -1
- package/dist/cdn/{ZDMSSGIM.js → 3XEPXV4Q.js} +2 -2
- package/dist/cdn/{OAYNZFL2.js → 3YXCLF3K.js} +2 -2
- package/dist/cdn/{Y77AVOAH.js → 3ZXNGXHC.js} +1 -1
- package/dist/cdn/{UVJWDKLK.js → 43IOCYG5.js} +2 -2
- package/dist/cdn/{MTFIK3F4.js → 45JO7F4Y.js} +2 -2
- package/dist/cdn/{3ONY25MG.js → 4F2ZWXO2.js} +2 -2
- package/dist/cdn/{PGK2ZJCX.js → 4GRP4KX3.js} +2 -2
- package/dist/cdn/{SOZWCZ7A.js → 4MJJOPAL.js} +1 -1
- package/dist/cdn/{J3FRSWZD.js → 4PGC5LTJ.js} +2 -2
- package/dist/cdn/{TMTFZSJS.js → 4RGFCQOB.js} +1 -1
- package/dist/cdn/{ILQDA7LL.js → 4RMVG2NH.js} +2 -2
- package/dist/cdn/{DK7HXJSX.js → 4T2A7PAO.js} +2 -2
- package/dist/cdn/{53OXTCE6.js → 4TTVVGYW.js} +2 -2
- package/dist/cdn/{RVIHQZ44.js → 4W35GLNO.js} +2 -2
- package/dist/cdn/{RGTUSH6U.js → 4WAV5GOL.js} +2 -2
- package/dist/cdn/{TJQ3GP5V.js → 4WP4DUBT.js} +2 -2
- package/dist/cdn/{SLAFIIZU.js → 4WXSFT6G.js} +2 -2
- package/dist/cdn/{GII4POXM.js → 54CLZESW.js} +2 -2
- package/dist/cdn/{SAOLD6MH.js → 55AW5TTI.js} +2 -2
- package/dist/cdn/{A4VK42OW.js → 5763ZV75.js} +2 -2
- package/dist/cdn/{SMVLPJDD.js → 5CER2N5T.js} +2 -2
- package/dist/cdn/5K54VOLZ.js +2 -0
- package/dist/cdn/{CKZBNHMD.js → 5L5UYV3H.js} +1 -1
- package/dist/cdn/{D7FBQECJ.js → 5M56ZA46.js} +2 -2
- package/dist/cdn/{KVYBIOH5.js → 5SL2HI4G.js} +2 -2
- package/dist/cdn/{5TKSFDKY.js → 5SLLYIWJ.js} +2 -2
- package/dist/cdn/{K7ELALW4.js → 5UOXHOVU.js} +2 -2
- package/dist/cdn/{WS46QSWM.js → 5V2DO6ZW.js} +2 -2
- package/dist/cdn/{OAMPGCZF.js → 5XVK5ZBK.js} +2 -2
- package/dist/cdn/{2BGZVOT3.js → 63FA3UEL.js} +2 -2
- package/dist/cdn/{5DY7GHBN.js → 6BLFYSDN.js} +2 -2
- package/dist/cdn/{R5QMO5FY.js → 6GFUBVBL.js} +2 -2
- package/dist/cdn/{QT7GRA34.js → 6IVEAPNI.js} +2 -2
- package/dist/cdn/{FQSHLYKX.js → 6J55YK5V.js} +2 -2
- package/dist/cdn/{MQYTZX24.js → 6NWR2Z4F.js} +2 -2
- package/dist/cdn/{EPH5BN6X.js → 7DAQGPGD.js} +2 -2
- package/dist/cdn/{OPNJGHML.js → 7DDCU3NB.js} +2 -2
- package/dist/cdn/{FHHVGI4H.js → 7EQZKGJN.js} +2 -2
- package/dist/cdn/{SQEKT3GV.js → 7FVXPOAG.js} +2 -2
- package/dist/cdn/{PGSBUAGV.js → 7MOL5GJB.js} +2 -2
- package/dist/cdn/{366GLQ5R.js → 7N4V2IN6.js} +1 -1
- package/dist/cdn/{44CQCIZB.js → 7UWE25UH.js} +2 -2
- package/dist/cdn/{QPSAD5DG.js → 7V7IKYJG.js} +2 -2
- package/dist/cdn/{MDWBYUFG.js → 7VVOJSSE.js} +2 -2
- package/dist/cdn/{GHVT7W4O.js → A4U2PDJP.js} +2 -2
- package/dist/cdn/{S7ORGB5E.js → AAMRTS35.js} +2 -2
- package/dist/cdn/{RVEUCXT4.js → AAUN23S6.js} +2 -2
- package/dist/cdn/{ZFO3PVZQ.js → AENNGCAE.js} +2 -2
- package/dist/cdn/{FDJGQHUA.js → AI5PXN2E.js} +2 -2
- package/dist/cdn/{L46JLXJT.js → ALROLX35.js} +2 -2
- package/dist/cdn/AN3BGKZP.js +2 -0
- package/dist/cdn/{PPAFKBPN.js → AW3C3DKA.js} +2 -2
- package/dist/cdn/{YYA4ZFSW.js → AWQXKVLZ.js} +2 -2
- package/dist/cdn/{2DAGREZP.js → AYJQLWX4.js} +2 -2
- package/dist/cdn/{N3DTZRST.js → AYNGSZAL.js} +2 -2
- package/dist/cdn/{R5TXJ5FN.js → AZ73DBU3.js} +2 -2
- package/dist/cdn/{SHU4AE2X.js → B476G3EX.js} +2 -2
- package/dist/cdn/{HY2JY2TT.js → B4CANXID.js} +2 -2
- package/dist/cdn/{YDZZPLVB.js → B5GJ5JEW.js} +2 -2
- package/dist/cdn/{FXUZU52U.js → BAOWXZTE.js} +1 -1
- package/dist/cdn/{DSD2SY73.js → BEFZSVBT.js} +2 -2
- package/dist/cdn/{UZLEFNJL.js → BIU6VS3K.js} +1 -1
- package/dist/cdn/{VLPNB2Z3.js → BIWQEPK4.js} +2 -2
- package/dist/cdn/{NQOS7L2J.js → BKVCAAPF.js} +2 -2
- package/dist/cdn/{Q4L65YE5.js → BLYJE76S.js} +2 -2
- package/dist/cdn/{MUNSXJ5X.js → BQKVSKYK.js} +2 -2
- package/dist/cdn/{CKS5ACAB.js → BSTO7TGD.js} +2 -2
- package/dist/cdn/{YQV2OMBS.js → CESFJ6AD.js} +2 -2
- package/dist/cdn/{NB7O2TXG.js → CEUIFOR6.js} +1 -1
- package/dist/cdn/{AS4FG6IT.js → CF4OY56S.js} +2 -2
- package/dist/cdn/{E54VGGFM.js → CGN2BQTU.js} +2 -2
- package/dist/cdn/{4432P7Z5.js → CIUI5B52.js} +2 -2
- package/dist/cdn/{TDZIH5OK.js → CJ4KIA26.js} +2 -2
- package/dist/cdn/{QOIURU47.js → CL2NYK7A.js} +2 -2
- package/dist/cdn/{2ZMXUAQZ.js → COKGOKO2.js} +2 -2
- package/dist/cdn/{6UYEO5Q7.js → CORNSRXU.js} +2 -2
- package/dist/cdn/{BQBWXR6P.js → CQQM24VF.js} +2 -2
- package/dist/cdn/{VDEMMP33.js → CROCDACG.js} +2 -2
- package/dist/cdn/{YCHVPSSP.js → CUF7GCDT.js} +2 -2
- package/dist/cdn/{3C6FN5WT.js → CX45KI3X.js} +2 -2
- package/dist/cdn/{GJKFDTVX.js → CZOM5NWO.js} +2 -2
- package/dist/cdn/{PCOXR45L.js → D3LYSFXK.js} +2 -2
- package/dist/cdn/{XHOI3WNI.js → D47546HM.js} +1 -1
- package/dist/cdn/DBA7NSTP.js +2 -0
- package/dist/cdn/{ND7BSIVO.js → DJTW52JH.js} +1 -1
- package/dist/cdn/{4XERPOOU.js → DL57EVZ4.js} +2 -2
- package/dist/cdn/{SG55TVJ5.js → DMYAI77Y.js} +2 -2
- package/dist/cdn/{26URLKXD.js → DMYMCGHJ.js} +2 -2
- package/dist/cdn/{4WKWYFIH.js → DOEKV7G3.js} +2 -2
- package/dist/cdn/{PZSKFFTG.js → DPPZZO5W.js} +2 -2
- package/dist/cdn/{RUYAWRPV.js → DSDPDMLP.js} +2 -2
- package/dist/cdn/{DDSIQO4G.js → E4NTQBM3.js} +2 -2
- package/dist/cdn/{YTLRTUMD.js → E53ARLWV.js} +2 -2
- package/dist/cdn/{U5DIWFPP.js → E5JCJOB3.js} +2 -2
- package/dist/cdn/{DN2EFA4T.js → EAM45WZP.js} +2 -2
- package/dist/cdn/{7DFCYS72.js → ECNRW3D5.js} +2 -2
- package/dist/cdn/{7DM32WQP.js → EDTGV4YF.js} +2 -2
- package/dist/cdn/{Z6AVJWLP.js → EESGZV4K.js} +2 -2
- package/dist/cdn/{3UMLR76Y.js → EKR2SAT2.js} +2 -2
- package/dist/cdn/{67PT3A4A.js → ELYDZHP5.js} +2 -2
- package/dist/cdn/{ZIBQTNB6.js → EOTKZ4F3.js} +2 -2
- package/dist/cdn/EZCNI254.js +2 -0
- package/dist/cdn/{COCGWEUR.js → F46CTQWP.js} +2 -2
- package/dist/cdn/F4O7DFPZ.js +2 -0
- package/dist/cdn/{A3DPMZWE.js → F5WKI5HZ.js} +2 -2
- package/dist/cdn/{ZCFWKPXL.js → FCNNRX3Q.js} +1 -1
- package/dist/cdn/{5RAIBYCT.js → FFJCCMDZ.js} +2 -2
- package/dist/cdn/{EPAR65ZP.js → FMBY3L4S.js} +2 -2
- package/dist/cdn/{4KQA2GRX.js → FMIWBKT4.js} +2 -2
- package/dist/cdn/{EV7IIQBP.js → FNSGB45I.js} +2 -2
- package/dist/cdn/FWXRRSBS.js +2 -0
- package/dist/cdn/{ALVAGE57.js → FZWFKZLW.js} +2 -2
- package/dist/cdn/{ZAUG5MSY.js → GF7RZ4IH.js} +2 -2
- package/dist/cdn/{PMRI66RQ.js → GIOUZTHM.js} +2 -2
- package/dist/cdn/{KPUEQZ7O.js → GP3PLD2F.js} +2 -2
- package/dist/cdn/{FACY5XHG.js → GQ6SYNZS.js} +2 -2
- package/dist/cdn/{MCMACXJV.js → GQXUCZYM.js} +2 -2
- package/dist/cdn/{X7BOBKIH.js → GT6FFZHJ.js} +2 -2
- package/dist/cdn/{QTB5YKHB.js → GTRQNPQ7.js} +2 -2
- package/dist/cdn/{GDLDEHUJ.js → GU3M4JMW.js} +1 -1
- package/dist/cdn/{3GHQZCMV.js → GV3IXBBT.js} +2 -2
- package/dist/cdn/{FZAQZSRA.js → GVZKVOM7.js} +2 -2
- package/dist/cdn/{6VO7G2UX.js → GXRPNW37.js} +2 -2
- package/dist/cdn/{B32GNMHD.js → H4FH2RBM.js} +2 -2
- package/dist/cdn/{OUC5HWPQ.js → H5AYEQ6D.js} +2 -2
- package/dist/cdn/{TAVTDQ6S.js → H6RQVSYM.js} +1 -1
- package/dist/cdn/{K7XSWKZ2.js → H77SMV46.js} +2 -2
- package/dist/cdn/{GUZYCRYS.js → HCN3UC4W.js} +2 -2
- package/dist/cdn/{SK5CTCTZ.js → HH5GEJCC.js} +2 -2
- package/dist/cdn/{KBA5OIES.js → HLGU3U73.js} +2 -2
- package/dist/cdn/{P2I63WVL.js → HX4CDWS4.js} +2 -2
- package/dist/cdn/{MWIDHMQZ.js → HX4CSRAB.js} +2 -2
- package/dist/cdn/{ESOCZAMZ.js → HZX7MSQG.js} +2 -2
- package/dist/cdn/{K23R26AN.js → I23AZWQL.js} +2 -2
- package/dist/cdn/{PGXNWDD3.js → I2A6UYGZ.js} +2 -2
- package/dist/cdn/{AO6ONNIJ.js → I5ZESLWO.js} +2 -2
- package/dist/cdn/{JXQEGZDB.js → IDKRMHDS.js} +1 -1
- package/dist/cdn/{SNNAV3AS.js → IETZFE3P.js} +2 -2
- package/dist/cdn/{WBBTZNZU.js → IFMBHZHX.js} +2 -2
- package/dist/cdn/{2KPCMM7D.js → IJLCJVC4.js} +2 -2
- package/dist/cdn/{F34QQ4DO.js → IMPFB7YV.js} +2 -2
- package/dist/cdn/{FPPWXIBA.js → IRZGEFF5.js} +2 -2
- package/dist/cdn/{O5YJPUFM.js → ISIH65JW.js} +2 -2
- package/dist/cdn/{M42QFFPZ.js → ITRD7ZY4.js} +2 -2
- package/dist/cdn/{DLWQZHNA.js → IU22RA7Z.js} +2 -2
- package/dist/cdn/{KFTFKI6A.js → IXWGGAVX.js} +2 -2
- package/dist/cdn/{FH3WFF5O.js → IZ46HAUJ.js} +1 -1
- package/dist/cdn/{FF7BSRYW.js → J23DTKII.js} +2 -2
- package/dist/cdn/{4XJ6RYYC.js → J657IBDC.js} +2 -2
- package/dist/cdn/{Y42K6IOP.js → J6MU74RO.js} +2 -2
- package/dist/cdn/{IFR4IYSI.js → JAZGNQRP.js} +2 -2
- package/dist/cdn/{HPWF3IQV.js → JBHRVHGS.js} +2 -2
- package/dist/cdn/{THJMCEEO.js → JBR3FYAN.js} +2 -2
- package/dist/cdn/{6QH2NH2Z.js → JCR7S6RP.js} +2 -2
- package/dist/cdn/{4L43F7HU.js → JCRPP54Z.js} +1 -1
- package/dist/cdn/{L5IRXOCJ.js → JD74LG7K.js} +1 -1
- package/dist/cdn/{LH2T4TMP.js → JE6NC2E6.js} +2 -2
- package/dist/cdn/{Z7H4V2JZ.js → JIQ4P34C.js} +2 -2
- package/dist/cdn/{52CUDGKY.js → JPKB745U.js} +2 -2
- package/dist/cdn/{R5TCWJ6V.js → JRQYT5SI.js} +2 -2
- package/dist/cdn/{PZUVKZGQ.js → K6D2JHC4.js} +2 -2
- package/dist/cdn/{PIDNZKSJ.js → KBHLE7HT.js} +2 -2
- package/dist/cdn/{KGUALNRF.js → KM2GXXBO.js} +2 -2
- package/dist/cdn/{CAC3OOFR.js → KO7RD6SS.js} +2 -2
- package/dist/cdn/{ZF4DFDLT.js → KT7MEZHJ.js} +2 -2
- package/dist/cdn/KY3ND2AY.js +2 -0
- package/dist/cdn/{CBVICP6P.js → LE373OSG.js} +2 -2
- package/dist/cdn/{PJ5OUPGO.js → LGW5AS6R.js} +2 -2
- package/dist/cdn/{3N5MWYUQ.js → LHFB44QW.js} +2 -2
- package/dist/cdn/{BXB5PSFB.js → LIN3GOTG.js} +2 -2
- package/dist/cdn/{V2YPYCU6.js → LL7R6ETJ.js} +2 -2
- package/dist/cdn/{JS3IKVKM.js → LQ76PRWK.js} +2 -2
- package/dist/cdn/{LC37F7HF.js → M7LDGJG6.js} +2 -2
- package/dist/cdn/{GFNCEZSN.js → MEZHGYCH.js} +2 -2
- package/dist/cdn/{GS2HJTMU.js → MKCJXRXB.js} +2 -2
- package/dist/cdn/{OAMA6SL3.js → MPKC74OS.js} +2 -2
- package/dist/cdn/{HBWEW6R7.js → MUWOF7W4.js} +2 -2
- package/dist/cdn/{IQOQTYRR.js → N2HG34QB.js} +2 -2
- package/dist/cdn/{EK7Y6JBZ.js → N4MW5VBL.js} +2 -2
- package/dist/cdn/{HKLBQ7JD.js → N6VSP7BU.js} +2 -2
- package/dist/cdn/{WQI5PKS4.js → NBDQBLRI.js} +2 -2
- package/dist/cdn/{2TY3T3GH.js → NBHZZ4E6.js} +2 -2
- package/dist/cdn/{PWHXRRFU.js → NRJ6LV6O.js} +2 -2
- package/dist/cdn/{DYUCS5QP.js → O57LOC52.js} +2 -2
- package/dist/cdn/{IM6IDWYR.js → O7RSAJOS.js} +1 -1
- package/dist/cdn/{TPVHN6P2.js → OBMM7WJD.js} +2 -2
- package/dist/cdn/{4IU5R6VO.js → OCLOCCB6.js} +2 -2
- package/dist/cdn/{QKZ552KI.js → OGAUCGGG.js} +2 -2
- package/dist/cdn/{3VCGDZEU.js → OHLJ6POC.js} +2 -2
- package/dist/cdn/{6MCDOI5M.js → OJXNUBIA.js} +2 -2
- package/dist/cdn/{XDU23V37.js → OUXE3CSQ.js} +2 -2
- package/dist/cdn/{H7NR6B6S.js → OX55WUIT.js} +2 -2
- package/dist/cdn/{YFTQR2WS.js → P5HSMYWG.js} +2 -2
- package/dist/cdn/{F5IHFPKA.js → PEH4U3YV.js} +2 -2
- package/dist/cdn/{4ZLIA5OM.js → PLTLRYBF.js} +2 -2
- package/dist/cdn/{CP5JALYQ.js → PLVTYVUG.js} +2 -2
- package/dist/cdn/{6J3KSMFG.js → POKO37D3.js} +1 -1
- package/dist/cdn/{6A2OF3TO.js → PRTHX6OC.js} +2 -2
- package/dist/cdn/{Z2WYULU3.js → PXAY7IM4.js} +2 -2
- package/dist/cdn/{2U3VASQT.js → PYTZ3YBE.js} +1 -1
- package/dist/cdn/{PBHNO4J7.js → Q22KIHFH.js} +2 -2
- package/dist/cdn/{M6YVO33A.js → Q73T55TC.js} +2 -2
- package/dist/cdn/{ZHSESERJ.js → QJWFZYU4.js} +2 -2
- package/dist/cdn/{Z3W7LQ5M.js → QKON7YGO.js} +2 -2
- package/dist/cdn/{PZZU36OG.js → QMQV37ML.js} +2 -2
- package/dist/cdn/{2BUURGFL.js → QMYL4UM7.js} +2 -2
- package/dist/cdn/{WO26ZR5Z.js → QOQRNYM5.js} +2 -2
- package/dist/cdn/{HKVIWCPL.js → QPFX5XH3.js} +2 -2
- package/dist/cdn/{UTV2A7J4.js → QTDJVI5F.js} +2 -2
- package/dist/cdn/{BM4TS2RT.js → QTOA5MBN.js} +2 -2
- package/dist/cdn/QUZTFUWM.js +1 -0
- package/dist/cdn/{GIIYVCKT.js → QX33OCXB.js} +2 -2
- package/dist/cdn/{BVTEQMDF.js → R2IBOCMY.js} +2 -2
- package/dist/cdn/{OSDGWHZZ.js → R3IITUG6.js} +2 -2
- package/dist/cdn/{EZCHUWDK.js → R6HUY6QI.js} +2 -2
- package/dist/cdn/{QEPANMVK.js → RAOEF6YV.js} +2 -2
- package/dist/cdn/{UUHCMLK6.js → RFSBZHJD.js} +2 -2
- package/dist/cdn/{MMYODAC2.js → RHNZWKZV.js} +2 -2
- package/dist/cdn/{HI7BF3DL.js → RKTSSP3O.js} +2 -2
- package/dist/cdn/{TO6SOEDF.js → RPHJDEZH.js} +2 -2
- package/dist/cdn/{GCEBFEZ5.js → RQG75Q2X.js} +2 -2
- package/dist/cdn/{5AMF6NZN.js → RQLMXLJC.js} +2 -2
- package/dist/cdn/{M3FI4K44.js → RYYBMDGS.js} +2 -2
- package/dist/cdn/{GNSNEUMI.js → RZQNEEP6.js} +2 -2
- package/dist/cdn/{Z2ABUIL3.js → S62FQUEJ.js} +2 -2
- package/dist/cdn/{R5YW65AI.js → S6M66TIN.js} +2 -2
- package/dist/cdn/{GK47522P.js → SBIOND5K.js} +2 -2
- package/dist/cdn/{HDHWPKJ4.js → SFFTE3TG.js} +2 -2
- package/dist/cdn/{5ESNA4SF.js → SFSWQGLY.js} +2 -2
- package/dist/cdn/{BQGY4YCS.js → SP73K22L.js} +2 -2
- package/dist/cdn/{MA2GVVQJ.js → SQYMNL75.js} +2 -2
- package/dist/cdn/{ZO7TUIUE.js → SREWXCMU.js} +2 -2
- package/dist/cdn/{MYLIX42T.js → SXQRPAPL.js} +2 -2
- package/dist/cdn/{ND3V4Z4F.js → T2DT5I33.js} +1 -1
- package/dist/cdn/{7VJQVX42.js → T4V5O3FK.js} +2 -2
- package/dist/cdn/{R67ZOCIR.js → TC6HL72N.js} +2 -2
- package/dist/cdn/{YZJKSAQ5.js → TILA2OKK.js} +2 -2
- package/dist/cdn/{HU57LQOA.js → TMJX7DFH.js} +1 -1
- package/dist/cdn/{AL3PLZEE.js → TN5C3MSL.js} +1 -1
- package/dist/cdn/{BLOQ2AJ5.js → TNFZHEWD.js} +2 -2
- package/dist/cdn/{7FFBCPVE.js → TPC2FJJX.js} +2 -2
- package/dist/cdn/{O6HYZKBU.js → TU6ZG6ZI.js} +2 -2
- package/dist/cdn/{SIZZ3BQA.js → TZ2LE7KS.js} +2 -2
- package/dist/cdn/{7TULU5QF.js → TZ6WQV6O.js} +2 -2
- package/dist/cdn/{UUNHAVGJ.js → TZHXSIXK.js} +2 -2
- package/dist/cdn/{G26V76WA.js → UCTJVPYB.js} +2 -2
- package/dist/cdn/{IQEEQOMD.js → UINNR6FV.js} +2 -2
- package/dist/cdn/{HQWUQFN5.js → UMHGXP3S.js} +2 -2
- package/dist/cdn/{LYT35TNY.js → UPZVIKOH.js} +2 -2
- package/dist/cdn/{A7RLC6ZT.js → UWKXYCO3.js} +2 -2
- package/dist/cdn/{LKAJVIS2.js → V2GMDCVJ.js} +2 -2
- package/dist/cdn/{CR6PVUCT.js → VABVK3ZN.js} +2 -2
- package/dist/cdn/{JRCEICO2.js → VCRVQMYT.js} +2 -2
- package/dist/cdn/{DY2EOHFD.js → VCSX4G2U.js} +2 -2
- package/dist/cdn/{DFUR3C3D.js → VDTRRLON.js} +1 -1
- package/dist/cdn/{IAWXCNTX.js → VEAJ52RN.js} +2 -2
- package/dist/cdn/{XP74F2F6.js → VJE33ARY.js} +2 -2
- package/dist/cdn/{WJQUE4DR.js → VJVKFKSG.js} +1 -1
- package/dist/cdn/{JF7VJGL4.js → VSDQVSOV.js} +2 -2
- package/dist/cdn/{TSNUOFL7.js → VTCM7AV2.js} +2 -2
- package/dist/cdn/{GUHSWQMF.js → VWFQCWGB.js} +2 -2
- package/dist/cdn/{J6HOUEVT.js → VWN2LORT.js} +2 -2
- package/dist/cdn/{HQSY7TKA.js → W3ENDJ6U.js} +2 -2
- package/dist/cdn/{YZUSPKNF.js → WBI4RS3V.js} +2 -2
- package/dist/cdn/{WSHG4LV7.js → WCEDE4CZ.js} +2 -2
- package/dist/cdn/WEAGLY7B.js +2 -0
- package/dist/cdn/{ZKWI43WZ.js → WQMZ7BDQ.js} +2 -2
- package/dist/cdn/{S6BPBG7D.js → WVRJQQKH.js} +2 -2
- package/dist/cdn/WYNLO2MH.js +2 -0
- package/dist/cdn/{SR4V2CUQ.js → X3DQNCTZ.js} +2 -2
- package/dist/cdn/{DUMHDAYP.js → XAADUJ74.js} +2 -2
- package/dist/cdn/{4O3HLHQQ.js → XAD4PUBU.js} +2 -2
- package/dist/cdn/{OJIYHIGC.js → XAMLHDWZ.js} +2 -2
- package/dist/cdn/{GUL7EIJ4.js → XEK22IDA.js} +1 -1
- package/dist/cdn/XIYYT5SJ.js +2 -0
- package/dist/cdn/{Z2UUXST4.js → XJ6DZ6AN.js} +2 -2
- package/dist/cdn/XKHGN6LQ.js +2 -0
- package/dist/cdn/{KCLVDXWB.js → XPGC5GAG.js} +2 -2
- package/dist/cdn/{SEY3WDK2.js → XPIX7Z2Q.js} +2 -2
- package/dist/cdn/{2UKSCGYU.js → XTPRVANS.js} +2 -2
- package/dist/cdn/{PDH2DA3L.js → XURL7UVF.js} +2 -2
- package/dist/cdn/{VTCE3YQW.js → XYNRLVTU.js} +2 -2
- package/dist/cdn/{CPYVZPJ7.js → Y2LELW5Y.js} +2 -2
- package/dist/cdn/{JBK5HTJ2.js → Y2UYA3OR.js} +2 -2
- package/dist/cdn/{J4CHCFLS.js → Y4WOZJQX.js} +2 -2
- package/dist/cdn/{SIFBGT4D.js → YAEJKOYY.js} +2 -2
- package/dist/cdn/YDB2XJRU.js +2 -0
- package/dist/cdn/{4IWYFG2G.js → YHKTMUY7.js} +2 -2
- package/dist/cdn/{XYF36P2O.js → YKSVOTDV.js} +2 -2
- package/dist/cdn/{RRSU6QD4.js → YLC4L2QV.js} +2 -2
- package/dist/cdn/{EMXGW73P.js → YOUMOTN3.js} +2 -2
- package/dist/cdn/{65MI3MW2.js → YPNGSV66.js} +2 -2
- package/dist/cdn/{EHEWQ23K.js → YPNJ5V4R.js} +2 -2
- package/dist/cdn/{SZ3T7YEB.js → YU5BTZEI.js} +1 -1
- package/dist/cdn/{ZGOAZB5L.js → YWC5AUFV.js} +1 -1
- package/dist/cdn/{2SO5S66J.js → YWS5RHVM.js} +2 -2
- package/dist/cdn/YY45XUPP.js +2 -0
- package/dist/cdn/{KLVBRTYU.js → Z42QB2QP.js} +2 -2
- package/dist/cdn/{TA723HWT.js → Z4WS2RBO.js} +2 -2
- package/dist/cdn/{7VDBR3SK.js → Z5C6UBYP.js} +2 -2
- package/dist/cdn/{7FCZLFJD.js → ZEKQYUW3.js} +2 -2
- package/dist/cdn/{M2LKA37F.js → ZFHHY72B.js} +2 -2
- package/dist/cdn/{XCTPKDKL.js → ZOHGLZNV.js} +2 -2
- package/dist/cdn/{W3TSTSES.js → ZOTONI4L.js} +2 -2
- package/dist/cdn/{4PI54LJH.js → ZPH7M75T.js} +2 -2
- package/dist/cdn/{MFWSWLBW.js → ZUAR3LO3.js} +2 -2
- package/dist/cdn/{VUAYNF3K.js → ZVZVHZYX.js} +2 -2
- package/dist/cdn/{M5KYBYZT.js → ZW2ZBNX2.js} +2 -2
- package/dist/cdn/{M7AFSV3C.js → ZWN6DXNO.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/AnalysisViewModel.js +1 -1
- package/dist/chunks/GeolocationPositioning.js +1 -1
- package/dist/chunks/action-utils.js +1 -1
- package/dist/chunks/async-utils.js +1 -1
- package/dist/chunks/attachment-utils.js +1 -1
- package/dist/chunks/chart-utils.js +1 -1
- package/dist/chunks/chartCommon.js +1 -1
- package/dist/chunks/clipoardSymbolHelper.js +1 -1
- package/dist/chunks/component-utils.js +1 -1
- package/dist/chunks/component-wrapper.js +1 -1
- package/dist/chunks/constants.js +1 -1
- package/dist/chunks/constants2.js +1 -1
- package/dist/chunks/css.js +1 -1
- package/dist/chunks/dateUtils.js +2 -2
- package/dist/chunks/earth-utils.js +1 -1
- package/dist/chunks/esri-main.js +1 -1
- package/dist/chunks/feature-utils.js +1 -1
- package/dist/chunks/field.js +1 -1
- package/dist/chunks/formattingUtils.js +1 -1
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/goTo.js +1 -1
- package/dist/chunks/graphicsLayerController.js +1 -1
- package/dist/chunks/handle.js +1 -1
- package/dist/chunks/heading.js +1 -1
- package/dist/chunks/keyboard-utils.js +1 -1
- package/dist/chunks/layer-list-next.js +1 -1
- package/dist/chunks/layer-list-utils.js +1 -1
- package/dist/chunks/layer-utils.js +1 -1
- package/dist/chunks/layer-utils2.js +1 -1
- package/dist/chunks/legacyIcon.js +1 -1
- package/dist/chunks/maybe.js +1 -1
- package/dist/chunks/measurementUtils.js +1 -1
- package/dist/chunks/print-exports-panel-item-popover.js +1 -1
- package/dist/chunks/resources.js +1 -1
- package/dist/chunks/runtime.js +2 -2
- package/dist/chunks/screenLocation.js +1 -1
- package/dist/chunks/slots.js +1 -1
- package/dist/chunks/sr.js +1 -1
- package/dist/chunks/svgUtils.js +1 -1
- package/dist/chunks/time-utils.js +1 -1
- package/dist/chunks/titleUtils.js +1 -1
- package/dist/chunks/types.js +1 -1
- package/dist/chunks/univariateUtils.js +1 -1
- package/dist/chunks/urlUtils.js +1 -1
- package/dist/chunks/useArcgisViewReadyError.js +1 -1
- package/dist/chunks/useCloseEvent.js +1 -1
- package/dist/chunks/useLayerById.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/useView.js +1 -1
- package/dist/chunks/useViewModel.js +1 -1
- package/dist/chunks/useWidget.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/utils3.js +1 -1
- package/dist/chunks/utils4.js +1 -1
- package/dist/chunks/utils5.js +1 -1
- package/dist/chunks/utils6.js +1 -1
- package/dist/chunks/video-utils.js +1 -1
- package/dist/chunks/visible-element.js +1 -1
- package/dist/chunks/zoom.js +1 -1
- package/dist/components/arcgis-add-attachment-view/customElement.js +1 -1
- package/dist/components/arcgis-aggregated-features/customElement.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.js +14 -14
- package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-attachment-preview/customElement.js +1 -1
- package/dist/components/arcgis-attachment-thumbnail/customElement.js +1 -1
- package/dist/components/arcgis-attachment-validation-view/customElement.js +1 -1
- package/dist/components/arcgis-attachments/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list-next/customElement.js +1 -1
- package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.js +1 -1
- package/dist/components/arcgis-building-discipline-tree/customElement.js +1 -1
- package/dist/components/arcgis-building-explorer/customElement.js +1 -1
- package/dist/components/arcgis-building-level-item/customElement.js +1 -1
- package/dist/components/arcgis-building-level-picker/customElement.js +1 -1
- package/dist/components/arcgis-building-phase-picker/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list-next/customElement.js +1 -1
- package/dist/components/arcgis-clipboard/customElement.js +1 -1
- package/dist/components/arcgis-color-select/customElement.js +1 -1
- package/dist/components/arcgis-compass/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion-next/customElement.js +1 -1
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-directional-pad/customElement.js +1 -1
- package/dist/components/arcgis-directions/customElement.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +27 -27
- package/dist/components/arcgis-editor/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-settings/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-statistics/customElement.js +1 -1
- package/dist/components/arcgis-expand/customElement.js +1 -1
- package/dist/components/arcgis-exploratory-analysis/customElement.js +1 -1
- package/dist/components/arcgis-feature/customElement.js +1 -1
- package/dist/components/arcgis-feature-attachments/customElement.js +1 -1
- package/dist/components/arcgis-feature-content/customElement.js +1 -1
- package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
- package/dist/components/arcgis-feature-expression/customElement.js +1 -1
- package/dist/components/arcgis-feature-fields/customElement.js +1 -1
- package/dist/components/arcgis-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-feature-form-field/customElement.js +1 -1
- package/dist/components/arcgis-feature-form-field-number/customElement.js +1 -1
- package/dist/components/arcgis-feature-form-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-feature-form-utility-network-association-settings/customElement.js +1 -1
- package/dist/components/arcgis-feature-image/customElement.js +1 -1
- package/dist/components/arcgis-feature-media/customElement.js +1 -1
- package/dist/components/arcgis-feature-next/customElement.js +1 -1
- package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates-legacy/customElement.js +1 -1
- package/dist/components/arcgis-feature-title/customElement.js +1 -1
- 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.js +1 -1
- package/dist/components/arcgis-features-next/customElement.js +1 -1
- package/dist/components/arcgis-file-picker/customElement.js +1 -1
- package/dist/components/arcgis-filter-builder/customElement.js +1 -1
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.js +1 -1
- package/dist/components/arcgis-grid-controls/customElement.js +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-home/customElement.js +1 -1
- package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
- package/dist/components/arcgis-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-item-indicator/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-item-panel/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-next/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +1 -1
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-relationship-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
- package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
- package/dist/components/arcgis-link-chart/customElement.js +1 -1
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.js +1 -1
- package/dist/components/arcgis-locate/customElement.js +1 -1
- package/dist/components/arcgis-map/customElement.js +1 -1
- package/dist/components/arcgis-measurement-content/customElement.js +1 -1
- package/dist/components/arcgis-multi-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer-non-panoramic-viewer/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer-zoom/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer-video-controls/customElement.js +1 -1
- package/dist/components/arcgis-paste/customElement.js +1 -1
- package/dist/components/arcgis-popup/customElement.js +1 -1
- package/dist/components/arcgis-presentation/customElement.js +1 -1
- package/dist/components/arcgis-presentation-captions/customElement.js +1 -1
- package/dist/components/arcgis-presentation-slide-list/customElement.js +1 -1
- package/dist/components/arcgis-print/customElement.js +1 -1
- package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
- package/dist/components/arcgis-print-datum-transformation-input/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-exports-panel-item-popover/customElement.js +1 -1
- package/dist/components/arcgis-print-format-select/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
- package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
- package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
- package/dist/components/arcgis-print-template-select/customElement.js +1 -1
- package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
- package/dist/components/arcgis-reverse-geocode-list/customElement.js +1 -1
- package/dist/components/arcgis-scale-bar/customElement.js +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-scene/customElement.js +1 -1
- package/dist/components/arcgis-search/customElement.js +1 -1
- package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
- package/dist/components/arcgis-selection-list/customElement.js +1 -1
- package/dist/components/arcgis-selection-toolbar/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.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.js +1 -1
- package/dist/components/arcgis-sketch-tooltip-controls/customElement.js +1 -1
- package/dist/components/arcgis-slice/customElement.js +1 -1
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-color-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-color-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-opacity-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-scale-range/customElement.js +1 -1
- package/dist/components/arcgis-slider-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-snapping-controls/customElement.js +1 -1
- package/dist/components/arcgis-spinner/customElement.js +1 -1
- package/dist/components/arcgis-swipe/customElement.js +1 -1
- package/dist/components/arcgis-table-list/customElement.js +1 -1
- package/dist/components/arcgis-table-list-next/customElement.js +1 -1
- package/dist/components/arcgis-template-image/customElement.js +1 -1
- package/dist/components/arcgis-time-bar/customElement.js +1 -1
- package/dist/components/arcgis-time-bar-date/customElement.js +1 -1
- package/dist/components/arcgis-time-bar-extent/customElement.js +1 -1
- package/dist/components/arcgis-time-bar-settings/customElement.js +1 -1
- package/dist/components/arcgis-time-bar-slider/customElement.js +25 -24
- package/dist/components/arcgis-time-of-day-slider/customElement.js +1 -1
- package/dist/components/arcgis-time-slider/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-chip/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-selector/customElement.js +1 -1
- package/dist/components/arcgis-track/customElement.js +1 -1
- package/dist/components/arcgis-unit-radio-button-group/customElement.js +1 -1
- 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.js +1 -1
- package/dist/components/arcgis-utility-network-picker/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-locations/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-results-pane/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-network-topology/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
- package/dist/components/arcgis-value-picker-legacy/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.js +1 -1
- package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-list-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
- package/dist/components/arcgis-video/customElement.js +1 -1
- package/dist/components/arcgis-video-player/customElement.js +1 -1
- package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
- package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
- package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
- package/dist/components/arcgis-view-popover/customElement.js +1 -1
- package/dist/components/arcgis-volume-measurement/customElement.js +1 -1
- package/dist/components/arcgis-weather/customElement.js +1 -1
- package/dist/components/arcgis-webgl-error/customElement.js +1 -1
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- package/dist/components/feature-form-next/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +6 -6
- package/dist/cdn/4B2TLORL.js +0 -2
- package/dist/cdn/5KN3AKHQ.js +0 -2
- package/dist/cdn/77U2VO5P.js +0 -2
- package/dist/cdn/CNYZSE22.js +0 -2
- package/dist/cdn/CVJOD6H3.js +0 -2
- package/dist/cdn/DTORO2OE.js +0 -2
- package/dist/cdn/E5L3MOIC.js +0 -2
- package/dist/cdn/FIZMK7GS.js +0 -1
- package/dist/cdn/HTC4LCZQ.js +0 -2
- package/dist/cdn/IITDAOGZ.js +0 -2
- package/dist/cdn/MA7GBKLW.js +0 -2
- package/dist/cdn/P3PXDT5V.js +0 -2
- package/dist/cdn/T7WW3YQN.js +0 -2
- package/dist/cdn/WK4TNKKC.js +0 -2
- package/dist/cdn/ZSPYPXBY.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import{b as te}from"./AL3PLZEE.js";import{a as ee}from"./FH3WFF5O.js";import{a as f}from"./6J3KSMFG.js";import g from"./RUYAWRPV.js";import"./WJQUE4DR.js";import e from"./BQBWXR6P.js";import{a as Y}from"./ZSPYPXBY.js";import d from"./P3PXDT5V.js";import c from"./ALVAGE57.js";import b from"./HPWF3IQV.js";import{d as J,h as Q}from"./IFR4IYSI.js";import"./7VDBR3SK.js";import a from"./QPSAD5DG.js";import"./FIZMK7GS.js";import"./ZKWI43WZ.js";import{D as U,E as H,M as z,N as S,O as E,P as q,Q as N,U as A,X as j,a as W,b as u,e as k,x as F}from"./3UMLR76Y.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{substitute:ge},ue,me,{watch:m,on:ve,whenOnce:ye},Ce,{getOrCreateMapValue:se,createReactiveMap:be},fe,{property:h,subclass:Te},{ignoreAbortErrors:C},we,Se,,,,y,Z,{f:X}])=>{var T=N({defaultAssetPath:"https://jsdev.arcgis.com/6.0.0-next/common-components/",hydratedAttribute:"hydrated"}),{customElement:Ie,getAssetPath:de,setAssetPath:pe}=T;T.t=void 0;T.o=void 0;T.c=void 0;T.r=void 0;var v={ForceCollapse:0,Default:1,Medium:100,High:200,Max:300,NeverCollapse:1e3};var Ee=["bottom-end","bottom-start","bottom-left","bottom-right","top-end","top-start","top-left","top-right"],_e=new Set(Ee);function ie(i,e){let t=e;for(let o of i.split(".")){if(typeof t!="object"||t===null)return;t=Reflect.get(t,o)}return typeof t=="string"?t:void 0}var Me=W`.editing-controls-panel{min-inline-size:100px;max-inline-size:400px;-webkit-user-select:none;user-select:none;pointer-events:initial;padding:var(--calcite-space-sm);arcgis-sketch-tooltip-controls+arcgis-snapping-controls{border-block-start:1px solid var(--calcite-color-border-3)}}:host{pointer-events:none}`,Pe={point:"pin",polyline:"line",polygon:"polygon",rectangle:"rectangle",circle:"circle",multipoint:"pins",mesh:"i3d-building",freehandPolygon:"freehand-area",freehandPolyline:"freehand",text:"text"},ke={selectionTools:{defaultPriority:v.Default,groupKind:"split-button",overflowLabel:"selection"},selectionSet:{defaultPriority:v.High,groupKind:"actions"},createTools:{defaultPriority:v.High,groupKind:"more-button",overflowLabel:"drawing"},undoRedo:{defaultPriority:v.Medium,groupKind:"split-button",overflowLabel:"action"},settings:{defaultPriority:v.Max,groupKind:"more-button",overflowLabel:"action"},geometrySimplification:{defaultPriority:v.Default,groupKind:"actions"}},Ae=500,Oe=1e3;function Le({getLoading:i,setEffectiveLoading:e}){let t,o;function s(){clearTimeout(o),o=void 0}function c(l){t=l?Date.now():void 0,e(l)}function p(l,g){if(l<=0){c(g);return}o=setTimeout(()=>{s(),c(g)},l)}c(i());let d=m(i,l=>{s(),l?p(Ae,!0):p(t==null?0:Oe-(Date.now()-t),!1)},{sync:!0});return ee(()=>{d.remove(),s()})}var Ge=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,r=(i,e,t,o)=>{for(var s=o>1?void 0:o?$e(e,t):e,c=i.length-1,p;c>=0;c--)(p=i[c])&&(s=(o?p(e,t,s):p(s))||s);return o&&s&&Ge(e,t,s),s},a=class extends fe{constructor(i){super(i),this._effectiveRenderStateCache=new Map,this._effectiveGeometrySimplificationInProgress=!1,this.visibleElements=new we,this.settingsPopoverOpen=!1,this.availableCreateTools=["point","polyline","freehandPolyline","polygon","freehandPolygon","rectangle","circle"]}initialize(){this.selectionViewModel??=new Se({persistSelection:!1}),this.addHandles([m(()=>this.sketchViewModel,(i,e)=>{i!==e&&this._effectiveRenderStateCache.clear()},{sync:!0}),Le({getLoading:()=>this.sketchViewModel?.geometrySimplificationInProgress??!1,setEffectiveLoading:i=>{this._effectiveGeometrySimplificationInProgress=i}}),m(()=>this.view,i=>{this.selectionViewModel.view=i},{initial:!0,sync:!0}),m(()=>this.sketchViewModel?.layer,i=>this.selectionViewModel.sources=i?[i]:[],{initial:!0,sync:!0}),this.selectionViewModel.on("complete",({selection:i})=>{i.length&&this.update(i)}),m(()=>this.selectionViewModel.activeOperation,i=>{i&&(this.sketchViewModel?.cancel(),this._activeCustomToolOptions=void 0)},{sync:!0}),ve(()=>this.sketchViewModel,"create",i=>{i.state==="complete"&&this.sketchViewModel?.creationMode!=="continuous"&&(this._activeCustomToolOptions=void 0)}),m(()=>this.visibleElements.settingsMenu,i=>{i||(this.settingsPopoverOpen=!1)},{sync:!0})])}destroy(){this._pendingCommandAbortController?.abort(),this.selectionViewModel.destroy(),this.sketchViewModel=void 0}get _isEffectiveRenderStateFrozen(){let{sketchViewModel:i}=this;return!!(i?.toolTransitionInProgress||i?.geometrySimplificationInProgress)}_getEffectiveValue(i,e){if(!this._isEffectiveRenderStateFrozen||!this._effectiveRenderStateCache.has(i)){let t=e();return this._effectiveRenderStateCache.set(i,t),t}return this._effectiveRenderStateCache.get(i)}get _state(){return this.sketchViewModel?.state??"disabled"}get test(){return{activeCustomToolOptions:this._activeCustomToolOptions,activeSelectionTool:this._activeSelectionTool,selectionViewModel:this.selectionViewModel}}get _activeSelectionTool(){switch(this.selectionViewModel.activeOperation?.toolName){case"lasso":return"lasso-selection";case"rectangle":return"rectangle-selection";default:return}}get _activePluginUniqueIds(){let i=this.sketchViewModel?.activePluginConfigurations.filter(e=>!e.hidden).map(e=>e.uniqueId);return new Set(i??[])}get _createToolActions(){let{sketchViewModel:i}=this;if(!i)return[];let e=i.effectiveAvailablePlugins,t=this.state==="disabled",o=this.visibleElements.createTools,s=this.activeTool,c=this._activeCustomToolOptions,p=c||!i.firstPluginWithSwappableLeaf?this._customToolOptions:[],d=i.rootPlugins,l=p?.map(n=>({active:n===c,disabled:t,icon:n.icon,labelKey:n.label,onClick:n===c?()=>this._cancelActiveOperation():()=>this._activateLegacyDrawTool(n.toolName,n.createOptions,n)}))??[];if(c&&d)return[...this._pluginsToActions(d),...l];if(e?.length&&this.view?.type!=="3d")return[...this._pluginsToActions(e),...l];let g=this.view?.type==="3d";return[...this.availableCreateTools?.filter(n=>g&&n==="multipoint"?!1:n==="mesh"?!0:o[n])?.map(n=>({active:n===s,disabled:t,icon:Pe[n],labelKey:`draw.${n}`,onClick:n===s?()=>this._cancelActiveOperation():()=>this._activateLegacyDrawTool(n)}))??[],...l]}get _shouldShowBackButton(){let i=this.sketchViewModel?.firstPluginWithSwappableLeaf,e=this.sketchViewModel?.rootPlugins,t=this._activeCustomToolOptions;return!!(this.sketchViewModel?.multiplePluginsActive&&i&&e&&!(e.length<2&&e.includes(i)&&!this.visibleElements.singlePluginBackButton)&&!t)}get _selectionToolActions(){return this._shouldShowBackButton?[{active:!1,disabled:this.state==="disabled",icon:"chevron-left",iconFlipRTL:!0,labelKey:"back",onClick:()=>this._cancelActiveOperation()}]:this._selectionCommands}get _settingsActions(){let i=this._customActions?.get("settings-before"),e=this._customActions?.get("settings-after"),t=this.visibleElements.settingsMenu,o=[];return!i?.length&&!e?.length&&!t||(i&&o.push(...this._customActionsToSketchActions(i)),t&&o.push({icon:"gear",active:this.settingsPopoverOpen,disabled:this.state==="disabled",labelKey:"settings.heading",tooltipKey:"settings.heading",refKey:"settings",onClick:()=>this.toggleSettingsPopover()}),e&&o.push(...this._customActionsToSketchActions(e))),o}get _activeTool(){let i=this.selectionViewModel.activeOperation;if(i)switch(i.toolName){case"lasso":return"lasso-selection";case"rectangle":return"rectangle-selection";case"default":return"custom-selection"}if(!this.sketchViewModel)return;let{availableCreateTools:e}=this,{activeTool:t,activeCreateToolDrawMode:o}=this.sketchViewModel;return t==="polygon"&&o==="freehand"&&e?.includes("freehandPolygon")?"freehandPolygon":t==="polyline"&&o==="freehand"&&e?.includes("freehandPolyline")?"freehandPolyline":t??void 0}get _selectionCommands(){let{state:i,visibleElements:e,_activeSelectionTool:t,_customActions:o}=this,s=this.state==="disabled",c=[];this.sketchViewModel?.updateOnGraphicClick!==!1&&c.push({active:i==="ready"&&this._activeSelectionTool==null,disabled:s,icon:"cursor",labelKey:"selectFeature",onClick:()=>this._activateDefaultSelectionTool()});let p=e.selectionTools;p["rectangle-selection"]&&c.push({active:t==="rectangle-selection",disabled:s,icon:"cursor-marquee",labelKey:"rectangleSelection",onClick:()=>this._activateSelectionTool("rectangle-selection")}),p["lasso-selection"]&&c.push({active:t==="lasso-selection",disabled:s,icon:"lasso-select",labelKey:"lassoSelection",onClick:()=>this._activateSelectionTool("lasso-selection")});let d=o?.get("selection-toolbar");return d&&c.push(...this._customActionsToSketchActions(d)),c}get _selectionSetActions(){let i=this.sketchViewModel?.updateGraphics.length??0;if(!i)return[];let e=this.state==="disabled",t=[],o=this._customActions?.get("before-selection-set"),s=this._customActions?.get("after-selection-set");return this.visibleElements.selectionCountLabel&&t.push({active:!1,appearance:"outline",disabled:e,icon:"selection-x",kind:"brand",labelKey:"deselectCount",labelParameters:{count:i},textEnabled:!0,renderAsAction:!0,onClick:()=>this._cancelSketchOperation()}),o&&t.push(...this._customActionsToSketchActions(o)),this.visibleElements.duplicateButton&&t.push({active:!1,disabled:e,icon:"copy",renderAsAction:!0,labelKey:i>1?"duplicateFeatures":"duplicateFeature",onClick:()=>this._duplicate()}),this.visibleElements.deleteButton&&t.push({active:!1,disabled:e,icon:"trash",kind:"danger",renderAsAction:!0,labelKey:i>1?"deleteFeatures":"deleteFeature",onClick:()=>this._delete()}),s&&t.push(...this._customActionsToSketchActions(s)),t}get _undoRedoActions(){return this.visibleElements.undoRedoMenu?[{active:!1,disabled:this.state==="disabled"||!this.sketchViewModel?.canUndo(),icon:"undo",labelKey:"undo",iconFlipRTL:!0,onClick:()=>this._undo()},{active:!1,disabled:this.state==="disabled"||!this.sketchViewModel?.canRedo(),icon:"redo",labelKey:"redo",iconFlipRTL:!0,onClick:()=>this._redo()}]:[]}get state(){return this._getEffectiveValue("state",()=>this._state)}get activeTool(){return this._getEffectiveValue("activeTool",()=>this._activeTool)}get activePluginIds(){return this._getEffectiveValue("activePluginId",()=>this._activePluginUniqueIds)}get groupedActions(){let i=this._getEffectiveValue("availableCommandGroups",()=>[["selectionTools",this._selectionToolActions],["createTools",this._createToolActions],["undoRedo",this._undoRedoActions],["settings",this._settingsActions],["selectionSet",this._selectionSetActions]].map(([t,o])=>({name:t,commands:o,visible:o.length>0}))),e=this._effectiveGeometrySimplificationInProgress?i.map(t=>({...t,commands:t.commands.map(o=>({...o,disabled:!0}))})):i;return!this.visibleElements.geometrySimplificationActivityIndicator||!this._effectiveGeometrySimplificationInProgress?e:[...e,{name:"geometrySimplification",commands:[{active:!1,appearance:"transparent",disabled:!0,kind:"warning",labelKey:"processing",loading:!0,onClick:()=>{},renderAsAction:!0}],visible:!0}]}async create(i,e){await this._executeWhenReady(async()=>{this.cancelAll();let t=this.sketchViewModel;t&&await C(t.create(i,e))})}async _executeWhenReady(i){this._pendingCommandAbortController?.abort();let e=new AbortController;this._pendingCommandAbortController=e;try{await C((async()=>{this.sketchViewModel?.geometrySimplificationInProgress&&await ye(()=>!this.sketchViewModel?.geometrySimplificationInProgress,e.signal),e.signal.aborted||await i()})())}finally{this._pendingCommandAbortController===e&&(this._pendingCommandAbortController=void 0)}}toggleSettingsPopover(){this.settingsPopoverOpen=!this.settingsPopoverOpen}setCustomTools(i,e){this._customToolOptions=i??void 0;let t=this._activeCustomToolOptions;if(t){let o=this._customToolOptions?.find(s=>s.toolKey===t.toolKey);o?this._activeCustomToolOptions=o:this.cancelAll()}if(e?.length){let o=new Map;for(let s of e)se(o,s.position,()=>[]).push(s);this._customActions=o}else this._customActions=void 0}cancelAll(){this._pendingCommandAbortController?.abort(),this._cancelSupportingOperations(),this.sketchViewModel?.cancel()}async update(i,e){await this._executeWhenReady(async()=>{let t=this.sketchViewModel;t&&await C(t.update(i,e))})}_activateDefaultSelectionTool(){this._executeWhenReady(()=>{this.cancelAll(),this.view?.focus()})}_cancelActiveOperation(){this._executeWhenReady(()=>this.cancelAll())}_cancelSketchOperation(){this._executeWhenReady(()=>this.sketchViewModel?.cancel())}_cancelSupportingOperations(){this.selectionViewModel.cancel(),this._activeCustomToolOptions=void 0}_activatePlugin(i){this._executeWhenReady(()=>{let e=this._activeCustomToolOptions!=null;this._cancelSupportingOperations();let t=this.sketchViewModel;if(t){if(e){t.cancel(),C(t.create(i));return}t.firstPluginWithSwappableLeaf?(t.replaceLeaf(i),this.view?.focus()):C(t.create(i))}})}_activateLegacyDrawTool(i,e,t){this._executeWhenReady(()=>{this._cancelSupportingOperations();let o=this.sketchViewModel;o&&(this._activeCustomToolOptions=t,C(o.create(i,e)))})}_activateSelectionTool(i){this._executeWhenReady(()=>{if(this._activeSelectionTool===i){this.selectionViewModel.cancel();return}this.cancelAll();let e={createTool:i==="lasso-selection"?"polygon":"rectangle",...i==="lasso-selection"?{mode:"hybrid",toolName:"lasso"}:{toolName:"rectangle"},type:"replace",selectOnComplete:!0};this.selectionViewModel.activate(e)&&this.view?.focus()})}_delete(){this._executeWhenReady(()=>this.sketchViewModel?.delete())}_duplicate(){this._executeWhenReady(()=>{this.sketchViewModel?.duplicate()})}_executeCustomAction(i){this._executeWhenReady(()=>i.onclick?.())}_redo(){this._executeWhenReady(()=>{this.sketchViewModel?.redo()})}_undo(){this._executeWhenReady(()=>{this.sketchViewModel?.undo()})}_customActionsToSketchActions(i){let e=this.state==="disabled";return i.map(t=>({active:t.active??!1,afterCreate:t.afterCreate,afterRemoved:t.afterRemoved,afterUpdate:t.afterUpdate,disabled:e||(t.disabled??!1),icon:t.icon,iconFlipRTL:t.flipRTL,id:t.id,labelKey:t.text,onClick:()=>this._executeCustomAction(t)}))}_pluginsToActions(i){let e=this.activePluginIds,t=this._activeCustomToolOptions,o=this.state==="disabled";return i.map(s=>({active:(e?.has(s.uniqueId)??!1)&&!t,icon:s.icon,disabled:o,labelKey:`digitizers.${s.localizationKey}`,onClick:()=>this._activatePlugin([s])}))}};r([h()],a.prototype,"_isEffectiveRenderStateFrozen",1);r([h()],a.prototype,"_effectiveGeometrySimplificationInProgress",2);r([h()],a.prototype,"_state",1);r([h()],a.prototype,"_customToolOptions",2);r([h()],a.prototype,"_activeCustomToolOptions",2);r([h()],a.prototype,"_customActions",2);r([h()],a.prototype,"selectionViewModel",2);r([h()],a.prototype,"_activeSelectionTool",1);r([h()],a.prototype,"_activePluginUniqueIds",1);r([h()],a.prototype,"_createToolActions",1);r([h()],a.prototype,"_shouldShowBackButton",1);r([h()],a.prototype,"_selectionToolActions",1);r([h()],a.prototype,"_settingsActions",1);r([h()],a.prototype,"_activeTool",1);r([h()],a.prototype,"_selectionCommands",1);r([h()],a.prototype,"_selectionSetActions",1);r([h()],a.prototype,"_undoRedoActions",1);r([h()],a.prototype,"sketchViewModel",2);r([h()],a.prototype,"visibleElements",2);r([h()],a.prototype,"view",2);r([h()],a.prototype,"settingsPopoverOpen",2);r([h()],a.prototype,"availableCreateTools",2);r([h()],a.prototype,"state",1);r([h()],a.prototype,"activeTool",1);r([h()],a.prototype,"activePluginIds",1);r([h()],a.prototype,"groupedActions",1);a=r([Te("components.sketch.SketchComponentViewModel")],a);var O=class extends z{#t;#e=!1;#i;constructor(e){if(super(e),e.type!==U.ELEMENT)throw new Error("nodeHooks() can only be used on elements")}render(e){return k}update(e,[t]){let o=e.element;if(!(o instanceof HTMLElement))throw new TypeError("nodeHooks() can only be used on HTMLElements");let s=this.#e?t.afterUpdate:t.afterCreate;return this.#t=o,this.#e=!0,this.#i=t,queueMicrotask(()=>{o.isConnected&&s?.(o)}),k}disconnected(){let e=this.#t,t=this.#i?.afterRemoved;!e||!t||queueMicrotask(()=>{e.isConnected||X(()=>t(e),{timeout:16})})}},oe=H(O),Re=Z(i=>new Ce({...i,cancelUpdateOnClickAway:!0,creationMode:"continuous",textSymbol:new me({text:"hello world"}),useLegacyCreateTools:!1})),L=class extends q{constructor(){super(),this.#t=new a,this.#o=S(),this.#s=S(),this._defaultGraphicsLayer=null,this._messages=Y(),this.test={componentViewModel:this.#t},this._groupLayoutPriorityOverrides=new Map,this._contextualToolLocation="separate",this._refMap=be(),this.viewModel=Re(this),this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.createGraphic=this.viewModel.createGraphic,this.creationMode=this.viewModel.creationMode,this.defaultCreateOptions=this.viewModel.defaultCreateOptions,this.defaultGraphicsLayerDisabled=!1,this.defaultUpdateOptions=this.viewModel.defaultUpdateOptions,this.geometrySimplificationInProgress=this.viewModel.geometrySimplificationInProgress,this.icon="pencil",this.label=this._messages?.componentLabel,this.labelOptions=this.viewModel.labelOptions,this.layer=this.viewModel.layer,this.layout="horizontal",this.pointSymbol=this.viewModel.pointSymbol,this.polygonSymbol=this.viewModel.polygonSymbol,this.polylineSymbol=this.viewModel.polylineSymbol,this.visualScale="m",this.snappingOptions=this.viewModel.snappingOptions,this.textSymbol=this.viewModel.textSymbol,this.toolbarKind="floating",this.tooltipOptions=this.viewModel.tooltipOptions,this.useViewOptions=this.viewModel.useViewOptions,this.valueOptions=this.viewModel.valueOptions,this.useLegacyCreateTools=this.viewModel.useLegacyCreateTools,this.updateOnGraphicClickDisabled=this.viewModel.updateOnGraphicClick,this.updateGraphics=this.viewModel.updateGraphics,this.arcgisCreate=y(()=>this.viewModel,"create"),this.arcgisDelete=y(()=>this.viewModel,"delete"),this.arcgisDuplicate=y(()=>this.viewModel,"duplicate"),this.arcgisPropertyChange=Q()("activeTool","geometrySimplificationInProgress","state"),this.arcgisReady=F(),this.arcgisRedo=y(()=>this.viewModel,"redo"),this.arcgisUndo=y(()=>this.viewModel,"undo"),this.arcgisUpdate=y(()=>this.viewModel,"update"),J(["slot"],()=>{this.requestUpdate()}),this.manager.onLifecycle(()=>[m(()=>this.el.view?.map,(e,t)=>{let o=this._defaultGraphicsLayer;o&&(t?.allLayers.includes(o)&&t.remove(o),o&&!e?.allLayers.includes(o)&&e?.add(o))}),m(()=>this.el.view,e=>{this.viewModel.view=e,this.#t.view=e??void 0},{initial:!0}),m(()=>this.viewModel,e=>{this.#t.sketchViewModel=e,this.viewModel.pluginManager.sketch=this},{initial:!0}),m(()=>this.#t.state,(e,t)=>{this.requestUpdate("state",t)},{initial:!0}),m(()=>this.#t.activeTool,()=>this.arcgisPropertyChange.emit({name:"activeTool"}),{sync:!0})]),this.manager.onDestroy(()=>{this._defaultGraphicsLayer&&this.el.view?.map?.allLayers.includes(this._defaultGraphicsLayer)&&this.el.view?.map?.remove(this._defaultGraphicsLayer),this._defaultGraphicsLayer?.destroy(),this._defaultGraphicsLayer=null,this.#t.destroy()})}static{this.properties={_groupLayoutPriorityOverrides:16,_contextualToolLocation:16,_refMap:16,viewModel:0,view:0,activeTool:32,autoDestroyDisabled:5,visibleElements:0,availableCreateTools:0,createGraphic:32,creationMode:1,defaultCreateOptions:0,defaultGraphicsLayerDisabled:5,defaultUpdateOptions:0,geometrySimplificationInProgress:36,hideCreateToolsCircle:5,hideCreateToolsMultipoint:5,hideCreateToolsPoint:5,hideCreateToolsPolygon:5,hideCreateToolsPolyline:5,hideCreateToolsRectangle:5,hideDuplicateButton:5,hideDeleteButton:5,hideSelectionCountLabel:5,hideLabelsToggle:5,hideSelectionToolsLassoSelection:5,hideSelectionToolsRectangleSelection:5,hideSettingsMenu:5,hideSinglePluginBackButton:5,hideSnappingControls:5,hideSnappingControlsElementsEnabledToggle:5,hideSnappingControlsElementsFeatureEnabledToggle:5,hideSnappingControlsElementsLayerList:5,hideSnappingControlsElementsSelfEnabledToggle:5,hideSnappingControlsElementsGridEnabledToggle:5,hideSnappingControlsElementsGridControls:5,hideSnappingControlsElementsGridControlsElementsColorSelection:5,hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle:5,hideSnappingControlsElementsGridControlsElementsLineIntervalInput:5,hideSnappingControlsElementsGridControlsElementsNumericInputs:5,hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning:5,hideSnappingControlsElementsGridControlsElementsPlacementButtons:5,hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle:5,hideTooltipsToggle:5,hideUndoRedoMenu:5,icon:1,label:1,labelOptions:0,layer:0,layout:1,pointSymbol:0,polygonSymbol:0,polylineSymbol:0,referenceElement:1,relativePosition:1,scale:1,visualScale:1,showSnappingControlsElementsHeader:5,showCreateToolsFreehandPolygon:5,showCreateToolsFreehandPolyline:5,showCreateToolsText:5,hideGeometrySimplificationActivityIndicator:5,snappingOptions:0,state:32,textSymbol:0,toolbarKind:1,tooltipOptions:0,useViewOptions:5,valueOptions:0,useLegacyCreateTools:5,updateOnGraphicClickDisabled:5,cancelUpdateOnClickAwayDisabled:5,updateGraphics:32}}static{this.styles=Me}#t;get#e(){return this.#t.visibleElements}#i;#o;#s;get activeTool(){return this.#t.activeTool}get visibleElements(){return this.#t.visibleElements}set visibleElements(e){this.#t.visibleElements=e}get availableCreateTools(){return this.#t.availableCreateTools}set availableCreateTools(e){this.#t.availableCreateTools=e}get hideCreateToolsCircle(){return!this.#e.createTools.circle}set hideCreateToolsCircle(e){this.#e.createTools.circle=!e}get hideCreateToolsMultipoint(){return!this.#e.createTools.multipoint}set hideCreateToolsMultipoint(e){this.#e.createTools.multipoint=!e}get hideCreateToolsPoint(){return!this.#e.createTools.point}set hideCreateToolsPoint(e){this.#e.createTools.point=!e}get hideCreateToolsPolygon(){return!this.#e.createTools.polygon}set hideCreateToolsPolygon(e){this.#e.createTools.polygon=!e}get hideCreateToolsPolyline(){return!this.#e.createTools.polyline}set hideCreateToolsPolyline(e){this.#e.createTools.polyline=!e}get hideCreateToolsRectangle(){return!this.#e.createTools.rectangle}set hideCreateToolsRectangle(e){this.#e.createTools.rectangle=!e}get hideDuplicateButton(){return!this.#e.duplicateButton}set hideDuplicateButton(e){this.#e.duplicateButton=!e}get hideDeleteButton(){return!this.#e.deleteButton}set hideDeleteButton(e){this.#e.deleteButton=!e}get hideSelectionCountLabel(){return!this.#e.selectionCountLabel}set hideSelectionCountLabel(e){this.#e.selectionCountLabel=!e}get hideLabelsToggle(){return!this.#e.labelsToggle}set hideLabelsToggle(e){this.#e.labelsToggle=!e}get hideSelectionToolsLassoSelection(){return!this.#e.selectionTools["lasso-selection"]}set hideSelectionToolsLassoSelection(e){this.#e.selectionTools["lasso-selection"]=!e}get hideSelectionToolsRectangleSelection(){return!this.#e.selectionTools["rectangle-selection"]}set hideSelectionToolsRectangleSelection(e){this.#e.selectionTools["rectangle-selection"]=!e}get hideSettingsMenu(){return!this.#e.settingsMenu}set hideSettingsMenu(e){this.#e.settingsMenu=!e}get hideSinglePluginBackButton(){return!this.#e.singlePluginBackButton}set hideSinglePluginBackButton(e){this.#e.singlePluginBackButton=!e}get hideSnappingControls(){return!this.#e.snappingControls}set hideSnappingControls(e){this.#e.snappingControls=!e}get hideSnappingControlsElementsEnabledToggle(){return!this.#e.snappingControlsElements.enabledToggle}set hideSnappingControlsElementsEnabledToggle(e){this.#e.snappingControlsElements.enabledToggle=!e}get hideSnappingControlsElementsFeatureEnabledToggle(){return!this.#e.snappingControlsElements.featureEnabledToggle}set hideSnappingControlsElementsFeatureEnabledToggle(e){this.#e.snappingControlsElements.featureEnabledToggle=!e}get hideSnappingControlsElementsLayerList(){return!this.#e.snappingControlsElements.layerList}set hideSnappingControlsElementsLayerList(e){this.#e.snappingControlsElements.layerList=!e}get hideSnappingControlsElementsSelfEnabledToggle(){return!this.#e.snappingControlsElements.selfEnabledToggle}set hideSnappingControlsElementsSelfEnabledToggle(e){this.#e.snappingControlsElements.selfEnabledToggle=!e}get hideSnappingControlsElementsGridEnabledToggle(){return!this.#e.snappingControlsElements.gridEnabledToggle}set hideSnappingControlsElementsGridEnabledToggle(e){this.#e.snappingControlsElements.gridEnabledToggle=!e}get hideSnappingControlsElementsGridControls(){return!this.#e.snappingControlsElements.gridControls}set hideSnappingControlsElementsGridControls(e){this.#e.snappingControlsElements.gridControls=!e}get hideSnappingControlsElementsGridControlsElementsColorSelection(){return!this.#e.snappingControlsElements.gridControlsElements.colorSelection}set hideSnappingControlsElementsGridControlsElementsColorSelection(e){this.#e.snappingControlsElements.gridControlsElements.colorSelection=!e}get hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle(){return!this.#e.snappingControlsElements.gridControlsElements.dynamicScaleToggle}set hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle(e){this.#e.snappingControlsElements.gridControlsElements.dynamicScaleToggle=!e}get hideSnappingControlsElementsGridControlsElementsLineIntervalInput(){return!this.#e.snappingControlsElements.gridControlsElements.lineIntervalInput}set hideSnappingControlsElementsGridControlsElementsLineIntervalInput(e){this.#e.snappingControlsElements.gridControlsElements.lineIntervalInput=!e}get hideSnappingControlsElementsGridControlsElementsNumericInputs(){return!this.#e.snappingControlsElements.gridControlsElements.numericInputs}set hideSnappingControlsElementsGridControlsElementsNumericInputs(e){this.#e.snappingControlsElements.gridControlsElements.numericInputs=!e}get hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning(){return!this.#e.snappingControlsElements.gridControlsElements.outOfScaleWarning}set hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning(e){this.#e.snappingControlsElements.gridControlsElements.outOfScaleWarning=!e}get hideSnappingControlsElementsGridControlsElementsPlacementButtons(){return!this.#e.snappingControlsElements.gridControlsElements.placementButtons}set hideSnappingControlsElementsGridControlsElementsPlacementButtons(e){this.#e.snappingControlsElements.gridControlsElements.placementButtons=!e}get hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle(){return!this.#e.snappingControlsElements.gridControlsElements.rotateWithMapToggle}set hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle(e){this.#e.snappingControlsElements.gridControlsElements.rotateWithMapToggle=!e}get hideTooltipsToggle(){return!this.#e.tooltipsToggle}set hideTooltipsToggle(e){this.#e.tooltipsToggle=!e}get hideUndoRedoMenu(){return!this.#e.undoRedoMenu}set hideUndoRedoMenu(e){this.#e.undoRedoMenu=!e}get relativePosition(){let e=this.el.slot;return this.#i??(_e.has(e)?e:te.topRight)}set relativePosition(e){this.#i=e}get scale(){return this.visualScale}set scale(e){this.visualScale=e}get showSnappingControlsElementsHeader(){return this.#e.snappingControlsElements.header}set showSnappingControlsElementsHeader(e){this.#e.snappingControlsElements.header=e}get showCreateToolsFreehandPolygon(){return this.#e.createTools.freehandPolygon}set showCreateToolsFreehandPolygon(e){this.#e.createTools.freehandPolygon=e}get showCreateToolsFreehandPolyline(){return this.#e.createTools.freehandPolyline}set showCreateToolsFreehandPolyline(e){this.#e.createTools.freehandPolyline=e}get showCreateToolsText(){return this.#e.createTools.text}set showCreateToolsText(e){this.#e.createTools.text=e}get hideGeometrySimplificationActivityIndicator(){return!this.#e.geometrySimplificationActivityIndicator}set hideGeometrySimplificationActivityIndicator(e){this.#e.geometrySimplificationActivityIndicator=!e}get state(){return this.#t.state}get cancelUpdateOnClickAwayDisabled(){return!this.viewModel.cancelUpdateOnClickAway}set cancelUpdateOnClickAwayDisabled(e){this.viewModel.cancelUpdateOnClickAway=!e}async cancel(){this.#t.cancelAll()}async complete(){this.viewModel.complete()}async create(e,t){await this.#t.create(e,t)}async delete(){this.viewModel.delete()}async destroy(){await this.manager.destroy()}async dismissFloatingElements(){this.#t.settingsPopoverOpen=!1}async duplicate(){this.viewModel.duplicate()}async redo(){this.viewModel.redo()}async setContextualToolLocation(e){this._contextualToolLocation=e}async setCustomTools(e,t){this.#t.setCustomTools(e,t)}async setGroupCollapsePriorities(e){this._groupLayoutPriorityOverrides=e||new Map}async triggerUpdate(e,t){await this.#t.update(e,t)}async undo(){this.#t.sketchViewModel?.undo()}connectedCallback(){super.connectedCallback(),this.defaultGraphicsLayerDisabled||(this._defaultGraphicsLayer?.destroyed&&(this._defaultGraphicsLayer=null),this._defaultGraphicsLayer??=new ue({title:"Sketch Layer"}),this.layer=this._defaultGraphicsLayer,this.view?.map?.add(this.layer),this.viewModel.layer=this._defaultGraphicsLayer)}disconnectedCallback(){this._defaultGraphicsLayer&&this.view?.map?.allLayers.includes(this._defaultGraphicsLayer)&&this.view?.map?.remove(this._defaultGraphicsLayer),super.disconnectedCallback()}render(){let e=this._refMap.get("settings")?.value?.actionElement,t=this.#t.groupedActions,{visualScale:o,layout:s,toolbarKind:c,relativePosition:p,_contextualToolLocation:d}=this,l=t.find(({name:n})=>n==="selectionSet"),g=t.filter(({name:n})=>n!=="selectionSet");return u`<div class="toolbar-container"><arcgis-toolbar-stack .layout=${s} .toolbarKind=${c} .relativePosition=${p} .scale=${o} tooltip-appearance=calcite><arcgis-toolbar ${E(this.#o)}>${f({hidden:!l?.visible||d!=="inline",children:this._renderActionGroup(l)})}${g.map(n=>this._renderActionGroup(n))}${f({hidden:!l?.visible||d!=="inline-end",children:this._renderActionGroup(l)})}</arcgis-toolbar>${f({hidden:!l?.visible||d!=="separate",children:u`<arcgis-toolbar>${this._renderActionGroup(l)}</arcgis-toolbar>`})}</arcgis-toolbar-stack></div>${f({hidden:this.hideSettingsMenu,children:u`<arcgis-view-popover .open=${this.#t.settingsPopoverOpen} closable .heading=${this._messages.settings?.heading} .label=${this._messages.settings?.heading} .anchorElement=${e} .visualScale=${o} .actionBarElement=${this.#o.value?.barElement} @arcgisPropertyChange=${n=>this.#t.settingsPopoverOpen=n.target.open??!1} .view=${this.view??void 0}>${this._renderSettings()}</arcgis-view-popover>`})}`}_renderSettings(){let{autoDestroyDisabled:e,hideLabelsToggle:t,hideSnappingControls:o,hideTooltipsToggle:s,showSnappingControlsElementsHeader:c,useViewOptions:p,view:d,viewModel:l}=this;return u`<div class="editing-controls-panel"><arcgis-sketch-tooltip-controls .hideLabelsToggle=${t} .hideTooltipsToggle=${p||s} .directionMode=${l.valueOptions.directionMode} .labelsEnabled=${l.labelOptions.enabled} .tooltipsEnabled=${l.tooltipOptions.enabled} @arcgisPropertyChange=${g=>{g.stopPropagation();let{labelsEnabled:n,tooltipsEnabled:w,directionMode:_}=g.currentTarget,b=this.viewModel;switch(g.detail.name){case"labelsEnabled":b.labelOptions.enabled=n;break;case"directionMode":b.valueOptions.directionMode=_;break;case"tooltipsEnabled":b.tooltipOptions.enabled=w;break}}}></arcgis-sketch-tooltip-controls>${!p&&!o?u`<arcgis-snapping-controls .autoDestroyDisabled=${e} .view=${d} .visibleElements=${this.#e.snappingControlsElements} .snappingOptions=${l.snappingOptions} .showHeader=${c} @arcgisPropertyChange=${g=>g.stopPropagation()}></arcgis-snapping-controls>`:void 0}</div>`}_renderActionGroup({visible:e,commands:t,name:o}){if(!e||!t.length)return;let{defaultPriority:s,groupKind:c,overflowLabel:p}=ke[o],d=(o==="geometrySimplification"?void 0:this._groupLayoutPriorityOverrides.get(o))??s,l=t.map(n=>this._renderCommand(n)),g=ie(`more.${p}`,this._messages);switch(c){case"more-button":return u`<arcgis-toolbar-group .priority=${d}><arcgis-toolbar-more-button .overflowActionLabel=${g} .priority=${d}>${l}</arcgis-toolbar-more-button></arcgis-toolbar-group>`;case"split-button":return u`<arcgis-toolbar-group .priority=${d}><arcgis-toolbar-split-button .overflowActionLabel=${g} .priority=${d}>${l}</arcgis-toolbar-split-button></arcgis-toolbar-group>`;case"actions":return u`<arcgis-toolbar-group .priority=${d}>${l}</arcgis-toolbar-group>`}}_renderCommand({active:e,afterCreate:t,afterRemoved:o,afterUpdate:s,appearance:c,icon:p,disabled:d,id:l,kind:g,labelKey:n,labelParameters:w,loading:_,tooltipKey:b,iconFlipRTL:G,onClick:$,refKey:R,textEnabled:V,renderAsAction:ne}){let{_messages:x,_refMap:le,layout:I}=this,M=ie(n,x),P=M===void 0?n:w?ge(M,w):M,D=x?.[b]??P,B=R?se(le,R,S):this.#s,K={afterCreate:t,afterRemoved:o,afterUpdate:s};return ne?u`<arcgis-toolbar-action .active=${e} .appearance=${c} .disabled=${d} .icon=${p} .iconFlipRtl=${G} id=${l??A} .kind=${g} .loading=${_} .labelText=${I==="horizontal"?P:""} .textEnabled=${V} .tooltipText=${I==="horizontal"&&V?"":D} @arcgisToolbarItemSelected=${$} ${oe(K)} ${E(B)}></arcgis-toolbar-action>`:u`<arcgis-toolbar-item .active=${e} .disabled=${d} .icon=${p} id=${l??A} .iconFlipRtl=${G} .labelText=${P} .tooltipText=${D} @arcgisItemSelected=${$} ${oe(K)} ${E(B)}></arcgis-toolbar-item>`}};j("arcgis-sketch",L);return L},"intl","layers/GraphicsLayer","symbols/TextSymbol","core/reactiveUtils","widgets/Sketch/SketchViewModel","applications/Components/featureUtils","core/Accessor","core/accessorSupport/decorators","core/promiseUtils","widgets/Sketch/VisibleElements","widgets/support/SelectionToolbar/SelectionToolbarViewModel",a,b,c,d,e,g)
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{b as te}from"./TN5C3MSL.js";import{a as ee}from"./IZ46HAUJ.js";import{a as f}from"./POKO37D3.js";import g from"./DSDPDMLP.js";import"./VJVKFKSG.js";import e from"./CQQM24VF.js";import{a as Y}from"./WEAGLY7B.js";import d from"./AN3BGKZP.js";import c from"./FZWFKZLW.js";import b from"./JBHRVHGS.js";import{d as J,h as Q}from"./JAZGNQRP.js";import"./Z5C6UBYP.js";import a from"./7V7IKYJG.js";import"./QUZTFUWM.js";import"./WQMZ7BDQ.js";import{D as U,E as H,M as z,N as S,O as E,P as q,Q as N,U as A,X as j,a as W,b as u,e as k,x as F}from"./EKR2SAT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([{substitute:ge},ue,me,{watch:m,on:ve,whenOnce:ye},Ce,{getOrCreateMapValue:se,createReactiveMap:be},fe,{property:h,subclass:Te},{ignoreAbortErrors:C},we,Se,,,,y,Z,{f:X}])=>{var T=N({defaultAssetPath:"https://jsdev.arcgis.com/5.2.0-next/common-components/",hydratedAttribute:"hydrated"}),{customElement:Ie,getAssetPath:de,setAssetPath:pe}=T;T.t=void 0;T.o=void 0;T.c=void 0;T.r=void 0;var v={ForceCollapse:0,Default:1,Medium:100,High:200,Max:300,NeverCollapse:1e3};var Ee=["bottom-end","bottom-start","bottom-left","bottom-right","top-end","top-start","top-left","top-right"],_e=new Set(Ee);function ie(i,e){let t=e;for(let o of i.split(".")){if(typeof t!="object"||t===null)return;t=Reflect.get(t,o)}return typeof t=="string"?t:void 0}var Me=W`.editing-controls-panel{min-inline-size:100px;max-inline-size:400px;-webkit-user-select:none;user-select:none;pointer-events:initial;padding:var(--calcite-space-sm);arcgis-sketch-tooltip-controls+arcgis-snapping-controls{border-block-start:1px solid var(--calcite-color-border-3)}}:host{pointer-events:none}`,Pe={point:"pin",polyline:"line",polygon:"polygon",rectangle:"rectangle",circle:"circle",multipoint:"pins",mesh:"i3d-building",freehandPolygon:"freehand-area",freehandPolyline:"freehand",text:"text"},ke={selectionTools:{defaultPriority:v.Default,groupKind:"split-button",overflowLabel:"selection"},selectionSet:{defaultPriority:v.High,groupKind:"actions"},createTools:{defaultPriority:v.High,groupKind:"more-button",overflowLabel:"drawing"},undoRedo:{defaultPriority:v.Medium,groupKind:"split-button",overflowLabel:"action"},settings:{defaultPriority:v.Max,groupKind:"more-button",overflowLabel:"action"},geometrySimplification:{defaultPriority:v.Default,groupKind:"actions"}},Ae=500,Oe=1e3;function Le({getLoading:i,setEffectiveLoading:e}){let t,o;function s(){clearTimeout(o),o=void 0}function c(l){t=l?Date.now():void 0,e(l)}function p(l,g){if(l<=0){c(g);return}o=setTimeout(()=>{s(),c(g)},l)}c(i());let d=m(i,l=>{s(),l?p(Ae,!0):p(t==null?0:Oe-(Date.now()-t),!1)},{sync:!0});return ee(()=>{d.remove(),s()})}var Ge=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,r=(i,e,t,o)=>{for(var s=o>1?void 0:o?$e(e,t):e,c=i.length-1,p;c>=0;c--)(p=i[c])&&(s=(o?p(e,t,s):p(s))||s);return o&&s&&Ge(e,t,s),s},a=class extends fe{constructor(i){super(i),this._effectiveRenderStateCache=new Map,this._effectiveGeometrySimplificationInProgress=!1,this.visibleElements=new we,this.settingsPopoverOpen=!1,this.availableCreateTools=["point","polyline","freehandPolyline","polygon","freehandPolygon","rectangle","circle"]}initialize(){this.selectionViewModel??=new Se({persistSelection:!1}),this.addHandles([m(()=>this.sketchViewModel,(i,e)=>{i!==e&&this._effectiveRenderStateCache.clear()},{sync:!0}),Le({getLoading:()=>this.sketchViewModel?.geometrySimplificationInProgress??!1,setEffectiveLoading:i=>{this._effectiveGeometrySimplificationInProgress=i}}),m(()=>this.view,i=>{this.selectionViewModel.view=i},{initial:!0,sync:!0}),m(()=>this.sketchViewModel?.layer,i=>this.selectionViewModel.sources=i?[i]:[],{initial:!0,sync:!0}),this.selectionViewModel.on("complete",({selection:i})=>{i.length&&this.update(i)}),m(()=>this.selectionViewModel.activeOperation,i=>{i&&(this.sketchViewModel?.cancel(),this._activeCustomToolOptions=void 0)},{sync:!0}),ve(()=>this.sketchViewModel,"create",i=>{i.state==="complete"&&this.sketchViewModel?.creationMode!=="continuous"&&(this._activeCustomToolOptions=void 0)}),m(()=>this.visibleElements.settingsMenu,i=>{i||(this.settingsPopoverOpen=!1)},{sync:!0})])}destroy(){this._pendingCommandAbortController?.abort(),this.selectionViewModel.destroy(),this.sketchViewModel=void 0}get _isEffectiveRenderStateFrozen(){let{sketchViewModel:i}=this;return!!(i?.toolTransitionInProgress||i?.geometrySimplificationInProgress)}_getEffectiveValue(i,e){if(!this._isEffectiveRenderStateFrozen||!this._effectiveRenderStateCache.has(i)){let t=e();return this._effectiveRenderStateCache.set(i,t),t}return this._effectiveRenderStateCache.get(i)}get _state(){return this.sketchViewModel?.state??"disabled"}get test(){return{activeCustomToolOptions:this._activeCustomToolOptions,activeSelectionTool:this._activeSelectionTool,selectionViewModel:this.selectionViewModel}}get _activeSelectionTool(){switch(this.selectionViewModel.activeOperation?.toolName){case"lasso":return"lasso-selection";case"rectangle":return"rectangle-selection";default:return}}get _activePluginUniqueIds(){let i=this.sketchViewModel?.activePluginConfigurations.filter(e=>!e.hidden).map(e=>e.uniqueId);return new Set(i??[])}get _createToolActions(){let{sketchViewModel:i}=this;if(!i)return[];let e=i.effectiveAvailablePlugins,t=this.state==="disabled",o=this.visibleElements.createTools,s=this.activeTool,c=this._activeCustomToolOptions,p=c||!i.firstPluginWithSwappableLeaf?this._customToolOptions:[],d=i.rootPlugins,l=p?.map(n=>({active:n===c,disabled:t,icon:n.icon,labelKey:n.label,onClick:n===c?()=>this._cancelActiveOperation():()=>this._activateLegacyDrawTool(n.toolName,n.createOptions,n)}))??[];if(c&&d)return[...this._pluginsToActions(d),...l];if(e?.length&&this.view?.type!=="3d")return[...this._pluginsToActions(e),...l];let g=this.view?.type==="3d";return[...this.availableCreateTools?.filter(n=>g&&n==="multipoint"?!1:n==="mesh"?!0:o[n])?.map(n=>({active:n===s,disabled:t,icon:Pe[n],labelKey:`draw.${n}`,onClick:n===s?()=>this._cancelActiveOperation():()=>this._activateLegacyDrawTool(n)}))??[],...l]}get _shouldShowBackButton(){let i=this.sketchViewModel?.firstPluginWithSwappableLeaf,e=this.sketchViewModel?.rootPlugins,t=this._activeCustomToolOptions;return!!(this.sketchViewModel?.multiplePluginsActive&&i&&e&&!(e.length<2&&e.includes(i)&&!this.visibleElements.singlePluginBackButton)&&!t)}get _selectionToolActions(){return this._shouldShowBackButton?[{active:!1,disabled:this.state==="disabled",icon:"chevron-left",iconFlipRTL:!0,labelKey:"back",onClick:()=>this._cancelActiveOperation()}]:this._selectionCommands}get _settingsActions(){let i=this._customActions?.get("settings-before"),e=this._customActions?.get("settings-after"),t=this.visibleElements.settingsMenu,o=[];return!i?.length&&!e?.length&&!t||(i&&o.push(...this._customActionsToSketchActions(i)),t&&o.push({icon:"gear",active:this.settingsPopoverOpen,disabled:this.state==="disabled",labelKey:"settings.heading",tooltipKey:"settings.heading",refKey:"settings",onClick:()=>this.toggleSettingsPopover()}),e&&o.push(...this._customActionsToSketchActions(e))),o}get _activeTool(){let i=this.selectionViewModel.activeOperation;if(i)switch(i.toolName){case"lasso":return"lasso-selection";case"rectangle":return"rectangle-selection";case"default":return"custom-selection"}if(!this.sketchViewModel)return;let{availableCreateTools:e}=this,{activeTool:t,activeCreateToolDrawMode:o}=this.sketchViewModel;return t==="polygon"&&o==="freehand"&&e?.includes("freehandPolygon")?"freehandPolygon":t==="polyline"&&o==="freehand"&&e?.includes("freehandPolyline")?"freehandPolyline":t??void 0}get _selectionCommands(){let{state:i,visibleElements:e,_activeSelectionTool:t,_customActions:o}=this,s=this.state==="disabled",c=[];this.sketchViewModel?.updateOnGraphicClick!==!1&&c.push({active:i==="ready"&&this._activeSelectionTool==null,disabled:s,icon:"cursor",labelKey:"selectFeature",onClick:()=>this._activateDefaultSelectionTool()});let p=e.selectionTools;p["rectangle-selection"]&&c.push({active:t==="rectangle-selection",disabled:s,icon:"cursor-marquee",labelKey:"rectangleSelection",onClick:()=>this._activateSelectionTool("rectangle-selection")}),p["lasso-selection"]&&c.push({active:t==="lasso-selection",disabled:s,icon:"lasso-select",labelKey:"lassoSelection",onClick:()=>this._activateSelectionTool("lasso-selection")});let d=o?.get("selection-toolbar");return d&&c.push(...this._customActionsToSketchActions(d)),c}get _selectionSetActions(){let i=this.sketchViewModel?.updateGraphics.length??0;if(!i)return[];let e=this.state==="disabled",t=[],o=this._customActions?.get("before-selection-set"),s=this._customActions?.get("after-selection-set");return this.visibleElements.selectionCountLabel&&t.push({active:!1,appearance:"outline",disabled:e,icon:"selection-x",kind:"brand",labelKey:"deselectCount",labelParameters:{count:i},textEnabled:!0,renderAsAction:!0,onClick:()=>this._cancelSketchOperation()}),o&&t.push(...this._customActionsToSketchActions(o)),this.visibleElements.duplicateButton&&t.push({active:!1,disabled:e,icon:"copy",renderAsAction:!0,labelKey:i>1?"duplicateFeatures":"duplicateFeature",onClick:()=>this._duplicate()}),this.visibleElements.deleteButton&&t.push({active:!1,disabled:e,icon:"trash",kind:"danger",renderAsAction:!0,labelKey:i>1?"deleteFeatures":"deleteFeature",onClick:()=>this._delete()}),s&&t.push(...this._customActionsToSketchActions(s)),t}get _undoRedoActions(){return this.visibleElements.undoRedoMenu?[{active:!1,disabled:this.state==="disabled"||!this.sketchViewModel?.canUndo(),icon:"undo",labelKey:"undo",iconFlipRTL:!0,onClick:()=>this._undo()},{active:!1,disabled:this.state==="disabled"||!this.sketchViewModel?.canRedo(),icon:"redo",labelKey:"redo",iconFlipRTL:!0,onClick:()=>this._redo()}]:[]}get state(){return this._getEffectiveValue("state",()=>this._state)}get activeTool(){return this._getEffectiveValue("activeTool",()=>this._activeTool)}get activePluginIds(){return this._getEffectiveValue("activePluginId",()=>this._activePluginUniqueIds)}get groupedActions(){let i=this._getEffectiveValue("availableCommandGroups",()=>[["selectionTools",this._selectionToolActions],["createTools",this._createToolActions],["undoRedo",this._undoRedoActions],["settings",this._settingsActions],["selectionSet",this._selectionSetActions]].map(([t,o])=>({name:t,commands:o,visible:o.length>0}))),e=this._effectiveGeometrySimplificationInProgress?i.map(t=>({...t,commands:t.commands.map(o=>({...o,disabled:!0}))})):i;return!this.visibleElements.geometrySimplificationActivityIndicator||!this._effectiveGeometrySimplificationInProgress?e:[...e,{name:"geometrySimplification",commands:[{active:!1,appearance:"transparent",disabled:!0,kind:"warning",labelKey:"processing",loading:!0,onClick:()=>{},renderAsAction:!0}],visible:!0}]}async create(i,e){await this._executeWhenReady(async()=>{this.cancelAll();let t=this.sketchViewModel;t&&await C(t.create(i,e))})}async _executeWhenReady(i){this._pendingCommandAbortController?.abort();let e=new AbortController;this._pendingCommandAbortController=e;try{await C((async()=>{this.sketchViewModel?.geometrySimplificationInProgress&&await ye(()=>!this.sketchViewModel?.geometrySimplificationInProgress,e.signal),e.signal.aborted||await i()})())}finally{this._pendingCommandAbortController===e&&(this._pendingCommandAbortController=void 0)}}toggleSettingsPopover(){this.settingsPopoverOpen=!this.settingsPopoverOpen}setCustomTools(i,e){this._customToolOptions=i??void 0;let t=this._activeCustomToolOptions;if(t){let o=this._customToolOptions?.find(s=>s.toolKey===t.toolKey);o?this._activeCustomToolOptions=o:this.cancelAll()}if(e?.length){let o=new Map;for(let s of e)se(o,s.position,()=>[]).push(s);this._customActions=o}else this._customActions=void 0}cancelAll(){this._pendingCommandAbortController?.abort(),this._cancelSupportingOperations(),this.sketchViewModel?.cancel()}async update(i,e){await this._executeWhenReady(async()=>{let t=this.sketchViewModel;t&&await C(t.update(i,e))})}_activateDefaultSelectionTool(){this._executeWhenReady(()=>{this.cancelAll(),this.view?.focus()})}_cancelActiveOperation(){this._executeWhenReady(()=>this.cancelAll())}_cancelSketchOperation(){this._executeWhenReady(()=>this.sketchViewModel?.cancel())}_cancelSupportingOperations(){this.selectionViewModel.cancel(),this._activeCustomToolOptions=void 0}_activatePlugin(i){this._executeWhenReady(()=>{let e=this._activeCustomToolOptions!=null;this._cancelSupportingOperations();let t=this.sketchViewModel;if(t){if(e){t.cancel(),C(t.create(i));return}t.firstPluginWithSwappableLeaf?(t.replaceLeaf(i),this.view?.focus()):C(t.create(i))}})}_activateLegacyDrawTool(i,e,t){this._executeWhenReady(()=>{this._cancelSupportingOperations();let o=this.sketchViewModel;o&&(this._activeCustomToolOptions=t,C(o.create(i,e)))})}_activateSelectionTool(i){this._executeWhenReady(()=>{if(this._activeSelectionTool===i){this.selectionViewModel.cancel();return}this.cancelAll();let e={createTool:i==="lasso-selection"?"polygon":"rectangle",...i==="lasso-selection"?{mode:"hybrid",toolName:"lasso"}:{toolName:"rectangle"},type:"replace",selectOnComplete:!0};this.selectionViewModel.activate(e)&&this.view?.focus()})}_delete(){this._executeWhenReady(()=>this.sketchViewModel?.delete())}_duplicate(){this._executeWhenReady(()=>{this.sketchViewModel?.duplicate()})}_executeCustomAction(i){this._executeWhenReady(()=>i.onclick?.())}_redo(){this._executeWhenReady(()=>{this.sketchViewModel?.redo()})}_undo(){this._executeWhenReady(()=>{this.sketchViewModel?.undo()})}_customActionsToSketchActions(i){let e=this.state==="disabled";return i.map(t=>({active:t.active??!1,afterCreate:t.afterCreate,afterRemoved:t.afterRemoved,afterUpdate:t.afterUpdate,disabled:e||(t.disabled??!1),icon:t.icon,iconFlipRTL:t.flipRTL,id:t.id,labelKey:t.text,onClick:()=>this._executeCustomAction(t)}))}_pluginsToActions(i){let e=this.activePluginIds,t=this._activeCustomToolOptions,o=this.state==="disabled";return i.map(s=>({active:(e?.has(s.uniqueId)??!1)&&!t,icon:s.icon,disabled:o,labelKey:`digitizers.${s.localizationKey}`,onClick:()=>this._activatePlugin([s])}))}};r([h()],a.prototype,"_isEffectiveRenderStateFrozen",1);r([h()],a.prototype,"_effectiveGeometrySimplificationInProgress",2);r([h()],a.prototype,"_state",1);r([h()],a.prototype,"_customToolOptions",2);r([h()],a.prototype,"_activeCustomToolOptions",2);r([h()],a.prototype,"_customActions",2);r([h()],a.prototype,"selectionViewModel",2);r([h()],a.prototype,"_activeSelectionTool",1);r([h()],a.prototype,"_activePluginUniqueIds",1);r([h()],a.prototype,"_createToolActions",1);r([h()],a.prototype,"_shouldShowBackButton",1);r([h()],a.prototype,"_selectionToolActions",1);r([h()],a.prototype,"_settingsActions",1);r([h()],a.prototype,"_activeTool",1);r([h()],a.prototype,"_selectionCommands",1);r([h()],a.prototype,"_selectionSetActions",1);r([h()],a.prototype,"_undoRedoActions",1);r([h()],a.prototype,"sketchViewModel",2);r([h()],a.prototype,"visibleElements",2);r([h()],a.prototype,"view",2);r([h()],a.prototype,"settingsPopoverOpen",2);r([h()],a.prototype,"availableCreateTools",2);r([h()],a.prototype,"state",1);r([h()],a.prototype,"activeTool",1);r([h()],a.prototype,"activePluginIds",1);r([h()],a.prototype,"groupedActions",1);a=r([Te("components.sketch.SketchComponentViewModel")],a);var O=class extends z{#t;#e=!1;#i;constructor(e){if(super(e),e.type!==U.ELEMENT)throw new Error("nodeHooks() can only be used on elements")}render(e){return k}update(e,[t]){let o=e.element;if(!(o instanceof HTMLElement))throw new TypeError("nodeHooks() can only be used on HTMLElements");let s=this.#e?t.afterUpdate:t.afterCreate;return this.#t=o,this.#e=!0,this.#i=t,queueMicrotask(()=>{o.isConnected&&s?.(o)}),k}disconnected(){let e=this.#t,t=this.#i?.afterRemoved;!e||!t||queueMicrotask(()=>{e.isConnected||X(()=>t(e),{timeout:16})})}},oe=H(O),Re=Z(i=>new Ce({...i,cancelUpdateOnClickAway:!0,creationMode:"continuous",textSymbol:new me({text:"hello world"}),useLegacyCreateTools:!1})),L=class extends q{constructor(){super(),this.#t=new a,this.#o=S(),this.#s=S(),this._defaultGraphicsLayer=null,this._messages=Y(),this.test={componentViewModel:this.#t},this._groupLayoutPriorityOverrides=new Map,this._contextualToolLocation="separate",this._refMap=be(),this.viewModel=Re(this),this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.createGraphic=this.viewModel.createGraphic,this.creationMode=this.viewModel.creationMode,this.defaultCreateOptions=this.viewModel.defaultCreateOptions,this.defaultGraphicsLayerDisabled=!1,this.defaultUpdateOptions=this.viewModel.defaultUpdateOptions,this.geometrySimplificationInProgress=this.viewModel.geometrySimplificationInProgress,this.icon="pencil",this.label=this._messages?.componentLabel,this.labelOptions=this.viewModel.labelOptions,this.layer=this.viewModel.layer,this.layout="horizontal",this.pointSymbol=this.viewModel.pointSymbol,this.polygonSymbol=this.viewModel.polygonSymbol,this.polylineSymbol=this.viewModel.polylineSymbol,this.visualScale="m",this.snappingOptions=this.viewModel.snappingOptions,this.textSymbol=this.viewModel.textSymbol,this.toolbarKind="floating",this.tooltipOptions=this.viewModel.tooltipOptions,this.useViewOptions=this.viewModel.useViewOptions,this.valueOptions=this.viewModel.valueOptions,this.useLegacyCreateTools=this.viewModel.useLegacyCreateTools,this.updateOnGraphicClickDisabled=this.viewModel.updateOnGraphicClick,this.updateGraphics=this.viewModel.updateGraphics,this.arcgisCreate=y(()=>this.viewModel,"create"),this.arcgisDelete=y(()=>this.viewModel,"delete"),this.arcgisDuplicate=y(()=>this.viewModel,"duplicate"),this.arcgisPropertyChange=Q()("activeTool","geometrySimplificationInProgress","state"),this.arcgisReady=F(),this.arcgisRedo=y(()=>this.viewModel,"redo"),this.arcgisUndo=y(()=>this.viewModel,"undo"),this.arcgisUpdate=y(()=>this.viewModel,"update"),J(["slot"],()=>{this.requestUpdate()}),this.manager.onLifecycle(()=>[m(()=>this.el.view?.map,(e,t)=>{let o=this._defaultGraphicsLayer;o&&(t?.allLayers.includes(o)&&t.remove(o),o&&!e?.allLayers.includes(o)&&e?.add(o))}),m(()=>this.el.view,e=>{this.viewModel.view=e,this.#t.view=e??void 0},{initial:!0}),m(()=>this.viewModel,e=>{this.#t.sketchViewModel=e,this.viewModel.pluginManager.sketch=this},{initial:!0}),m(()=>this.#t.state,(e,t)=>{this.requestUpdate("state",t)},{initial:!0}),m(()=>this.#t.activeTool,()=>this.arcgisPropertyChange.emit({name:"activeTool"}),{sync:!0})]),this.manager.onDestroy(()=>{this._defaultGraphicsLayer&&this.el.view?.map?.allLayers.includes(this._defaultGraphicsLayer)&&this.el.view?.map?.remove(this._defaultGraphicsLayer),this._defaultGraphicsLayer?.destroy(),this._defaultGraphicsLayer=null,this.#t.destroy()})}static{this.properties={_groupLayoutPriorityOverrides:16,_contextualToolLocation:16,_refMap:16,viewModel:0,view:0,activeTool:32,autoDestroyDisabled:5,visibleElements:0,availableCreateTools:0,createGraphic:32,creationMode:1,defaultCreateOptions:0,defaultGraphicsLayerDisabled:5,defaultUpdateOptions:0,geometrySimplificationInProgress:36,hideCreateToolsCircle:5,hideCreateToolsMultipoint:5,hideCreateToolsPoint:5,hideCreateToolsPolygon:5,hideCreateToolsPolyline:5,hideCreateToolsRectangle:5,hideDuplicateButton:5,hideDeleteButton:5,hideSelectionCountLabel:5,hideLabelsToggle:5,hideSelectionToolsLassoSelection:5,hideSelectionToolsRectangleSelection:5,hideSettingsMenu:5,hideSinglePluginBackButton:5,hideSnappingControls:5,hideSnappingControlsElementsEnabledToggle:5,hideSnappingControlsElementsFeatureEnabledToggle:5,hideSnappingControlsElementsLayerList:5,hideSnappingControlsElementsSelfEnabledToggle:5,hideSnappingControlsElementsGridEnabledToggle:5,hideSnappingControlsElementsGridControls:5,hideSnappingControlsElementsGridControlsElementsColorSelection:5,hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle:5,hideSnappingControlsElementsGridControlsElementsLineIntervalInput:5,hideSnappingControlsElementsGridControlsElementsNumericInputs:5,hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning:5,hideSnappingControlsElementsGridControlsElementsPlacementButtons:5,hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle:5,hideTooltipsToggle:5,hideUndoRedoMenu:5,icon:1,label:1,labelOptions:0,layer:0,layout:1,pointSymbol:0,polygonSymbol:0,polylineSymbol:0,referenceElement:1,relativePosition:1,scale:1,visualScale:1,showSnappingControlsElementsHeader:5,showCreateToolsFreehandPolygon:5,showCreateToolsFreehandPolyline:5,showCreateToolsText:5,hideGeometrySimplificationActivityIndicator:5,snappingOptions:0,state:32,textSymbol:0,toolbarKind:1,tooltipOptions:0,useViewOptions:5,valueOptions:0,useLegacyCreateTools:5,updateOnGraphicClickDisabled:5,cancelUpdateOnClickAwayDisabled:5,updateGraphics:32}}static{this.styles=Me}#t;get#e(){return this.#t.visibleElements}#i;#o;#s;get activeTool(){return this.#t.activeTool}get visibleElements(){return this.#t.visibleElements}set visibleElements(e){this.#t.visibleElements=e}get availableCreateTools(){return this.#t.availableCreateTools}set availableCreateTools(e){this.#t.availableCreateTools=e}get hideCreateToolsCircle(){return!this.#e.createTools.circle}set hideCreateToolsCircle(e){this.#e.createTools.circle=!e}get hideCreateToolsMultipoint(){return!this.#e.createTools.multipoint}set hideCreateToolsMultipoint(e){this.#e.createTools.multipoint=!e}get hideCreateToolsPoint(){return!this.#e.createTools.point}set hideCreateToolsPoint(e){this.#e.createTools.point=!e}get hideCreateToolsPolygon(){return!this.#e.createTools.polygon}set hideCreateToolsPolygon(e){this.#e.createTools.polygon=!e}get hideCreateToolsPolyline(){return!this.#e.createTools.polyline}set hideCreateToolsPolyline(e){this.#e.createTools.polyline=!e}get hideCreateToolsRectangle(){return!this.#e.createTools.rectangle}set hideCreateToolsRectangle(e){this.#e.createTools.rectangle=!e}get hideDuplicateButton(){return!this.#e.duplicateButton}set hideDuplicateButton(e){this.#e.duplicateButton=!e}get hideDeleteButton(){return!this.#e.deleteButton}set hideDeleteButton(e){this.#e.deleteButton=!e}get hideSelectionCountLabel(){return!this.#e.selectionCountLabel}set hideSelectionCountLabel(e){this.#e.selectionCountLabel=!e}get hideLabelsToggle(){return!this.#e.labelsToggle}set hideLabelsToggle(e){this.#e.labelsToggle=!e}get hideSelectionToolsLassoSelection(){return!this.#e.selectionTools["lasso-selection"]}set hideSelectionToolsLassoSelection(e){this.#e.selectionTools["lasso-selection"]=!e}get hideSelectionToolsRectangleSelection(){return!this.#e.selectionTools["rectangle-selection"]}set hideSelectionToolsRectangleSelection(e){this.#e.selectionTools["rectangle-selection"]=!e}get hideSettingsMenu(){return!this.#e.settingsMenu}set hideSettingsMenu(e){this.#e.settingsMenu=!e}get hideSinglePluginBackButton(){return!this.#e.singlePluginBackButton}set hideSinglePluginBackButton(e){this.#e.singlePluginBackButton=!e}get hideSnappingControls(){return!this.#e.snappingControls}set hideSnappingControls(e){this.#e.snappingControls=!e}get hideSnappingControlsElementsEnabledToggle(){return!this.#e.snappingControlsElements.enabledToggle}set hideSnappingControlsElementsEnabledToggle(e){this.#e.snappingControlsElements.enabledToggle=!e}get hideSnappingControlsElementsFeatureEnabledToggle(){return!this.#e.snappingControlsElements.featureEnabledToggle}set hideSnappingControlsElementsFeatureEnabledToggle(e){this.#e.snappingControlsElements.featureEnabledToggle=!e}get hideSnappingControlsElementsLayerList(){return!this.#e.snappingControlsElements.layerList}set hideSnappingControlsElementsLayerList(e){this.#e.snappingControlsElements.layerList=!e}get hideSnappingControlsElementsSelfEnabledToggle(){return!this.#e.snappingControlsElements.selfEnabledToggle}set hideSnappingControlsElementsSelfEnabledToggle(e){this.#e.snappingControlsElements.selfEnabledToggle=!e}get hideSnappingControlsElementsGridEnabledToggle(){return!this.#e.snappingControlsElements.gridEnabledToggle}set hideSnappingControlsElementsGridEnabledToggle(e){this.#e.snappingControlsElements.gridEnabledToggle=!e}get hideSnappingControlsElementsGridControls(){return!this.#e.snappingControlsElements.gridControls}set hideSnappingControlsElementsGridControls(e){this.#e.snappingControlsElements.gridControls=!e}get hideSnappingControlsElementsGridControlsElementsColorSelection(){return!this.#e.snappingControlsElements.gridControlsElements.colorSelection}set hideSnappingControlsElementsGridControlsElementsColorSelection(e){this.#e.snappingControlsElements.gridControlsElements.colorSelection=!e}get hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle(){return!this.#e.snappingControlsElements.gridControlsElements.dynamicScaleToggle}set hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle(e){this.#e.snappingControlsElements.gridControlsElements.dynamicScaleToggle=!e}get hideSnappingControlsElementsGridControlsElementsLineIntervalInput(){return!this.#e.snappingControlsElements.gridControlsElements.lineIntervalInput}set hideSnappingControlsElementsGridControlsElementsLineIntervalInput(e){this.#e.snappingControlsElements.gridControlsElements.lineIntervalInput=!e}get hideSnappingControlsElementsGridControlsElementsNumericInputs(){return!this.#e.snappingControlsElements.gridControlsElements.numericInputs}set hideSnappingControlsElementsGridControlsElementsNumericInputs(e){this.#e.snappingControlsElements.gridControlsElements.numericInputs=!e}get hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning(){return!this.#e.snappingControlsElements.gridControlsElements.outOfScaleWarning}set hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning(e){this.#e.snappingControlsElements.gridControlsElements.outOfScaleWarning=!e}get hideSnappingControlsElementsGridControlsElementsPlacementButtons(){return!this.#e.snappingControlsElements.gridControlsElements.placementButtons}set hideSnappingControlsElementsGridControlsElementsPlacementButtons(e){this.#e.snappingControlsElements.gridControlsElements.placementButtons=!e}get hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle(){return!this.#e.snappingControlsElements.gridControlsElements.rotateWithMapToggle}set hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle(e){this.#e.snappingControlsElements.gridControlsElements.rotateWithMapToggle=!e}get hideTooltipsToggle(){return!this.#e.tooltipsToggle}set hideTooltipsToggle(e){this.#e.tooltipsToggle=!e}get hideUndoRedoMenu(){return!this.#e.undoRedoMenu}set hideUndoRedoMenu(e){this.#e.undoRedoMenu=!e}get relativePosition(){let e=this.el.slot;return this.#i??(_e.has(e)?e:te.topRight)}set relativePosition(e){this.#i=e}get scale(){return this.visualScale}set scale(e){this.visualScale=e}get showSnappingControlsElementsHeader(){return this.#e.snappingControlsElements.header}set showSnappingControlsElementsHeader(e){this.#e.snappingControlsElements.header=e}get showCreateToolsFreehandPolygon(){return this.#e.createTools.freehandPolygon}set showCreateToolsFreehandPolygon(e){this.#e.createTools.freehandPolygon=e}get showCreateToolsFreehandPolyline(){return this.#e.createTools.freehandPolyline}set showCreateToolsFreehandPolyline(e){this.#e.createTools.freehandPolyline=e}get showCreateToolsText(){return this.#e.createTools.text}set showCreateToolsText(e){this.#e.createTools.text=e}get hideGeometrySimplificationActivityIndicator(){return!this.#e.geometrySimplificationActivityIndicator}set hideGeometrySimplificationActivityIndicator(e){this.#e.geometrySimplificationActivityIndicator=!e}get state(){return this.#t.state}get cancelUpdateOnClickAwayDisabled(){return!this.viewModel.cancelUpdateOnClickAway}set cancelUpdateOnClickAwayDisabled(e){this.viewModel.cancelUpdateOnClickAway=!e}async cancel(){this.#t.cancelAll()}async complete(){this.viewModel.complete()}async create(e,t){await this.#t.create(e,t)}async delete(){this.viewModel.delete()}async destroy(){await this.manager.destroy()}async dismissFloatingElements(){this.#t.settingsPopoverOpen=!1}async duplicate(){this.viewModel.duplicate()}async redo(){this.viewModel.redo()}async setContextualToolLocation(e){this._contextualToolLocation=e}async setCustomTools(e,t){this.#t.setCustomTools(e,t)}async setGroupCollapsePriorities(e){this._groupLayoutPriorityOverrides=e||new Map}async triggerUpdate(e,t){await this.#t.update(e,t)}async undo(){this.#t.sketchViewModel?.undo()}connectedCallback(){super.connectedCallback(),this.defaultGraphicsLayerDisabled||(this._defaultGraphicsLayer?.destroyed&&(this._defaultGraphicsLayer=null),this._defaultGraphicsLayer??=new ue({title:"Sketch Layer"}),this.layer=this._defaultGraphicsLayer,this.view?.map?.add(this.layer),this.viewModel.layer=this._defaultGraphicsLayer)}disconnectedCallback(){this._defaultGraphicsLayer&&this.view?.map?.allLayers.includes(this._defaultGraphicsLayer)&&this.view?.map?.remove(this._defaultGraphicsLayer),super.disconnectedCallback()}render(){let e=this._refMap.get("settings")?.value?.actionElement,t=this.#t.groupedActions,{visualScale:o,layout:s,toolbarKind:c,relativePosition:p,_contextualToolLocation:d}=this,l=t.find(({name:n})=>n==="selectionSet"),g=t.filter(({name:n})=>n!=="selectionSet");return u`<div class="toolbar-container"><arcgis-toolbar-stack .layout=${s} .toolbarKind=${c} .relativePosition=${p} .scale=${o} tooltip-appearance=calcite><arcgis-toolbar ${E(this.#o)}>${f({hidden:!l?.visible||d!=="inline",children:this._renderActionGroup(l)})}${g.map(n=>this._renderActionGroup(n))}${f({hidden:!l?.visible||d!=="inline-end",children:this._renderActionGroup(l)})}</arcgis-toolbar>${f({hidden:!l?.visible||d!=="separate",children:u`<arcgis-toolbar>${this._renderActionGroup(l)}</arcgis-toolbar>`})}</arcgis-toolbar-stack></div>${f({hidden:this.hideSettingsMenu,children:u`<arcgis-view-popover .open=${this.#t.settingsPopoverOpen} closable .heading=${this._messages.settings?.heading} .label=${this._messages.settings?.heading} .anchorElement=${e} .visualScale=${o} .actionBarElement=${this.#o.value?.barElement} @arcgisPropertyChange=${n=>this.#t.settingsPopoverOpen=n.target.open??!1} .view=${this.view??void 0}>${this._renderSettings()}</arcgis-view-popover>`})}`}_renderSettings(){let{autoDestroyDisabled:e,hideLabelsToggle:t,hideSnappingControls:o,hideTooltipsToggle:s,showSnappingControlsElementsHeader:c,useViewOptions:p,view:d,viewModel:l}=this;return u`<div class="editing-controls-panel"><arcgis-sketch-tooltip-controls .hideLabelsToggle=${t} .hideTooltipsToggle=${p||s} .directionMode=${l.valueOptions.directionMode} .labelsEnabled=${l.labelOptions.enabled} .tooltipsEnabled=${l.tooltipOptions.enabled} @arcgisPropertyChange=${g=>{g.stopPropagation();let{labelsEnabled:n,tooltipsEnabled:w,directionMode:_}=g.currentTarget,b=this.viewModel;switch(g.detail.name){case"labelsEnabled":b.labelOptions.enabled=n;break;case"directionMode":b.valueOptions.directionMode=_;break;case"tooltipsEnabled":b.tooltipOptions.enabled=w;break}}}></arcgis-sketch-tooltip-controls>${!p&&!o?u`<arcgis-snapping-controls .autoDestroyDisabled=${e} .view=${d} .visibleElements=${this.#e.snappingControlsElements} .snappingOptions=${l.snappingOptions} .showHeader=${c} @arcgisPropertyChange=${g=>g.stopPropagation()}></arcgis-snapping-controls>`:void 0}</div>`}_renderActionGroup({visible:e,commands:t,name:o}){if(!e||!t.length)return;let{defaultPriority:s,groupKind:c,overflowLabel:p}=ke[o],d=(o==="geometrySimplification"?void 0:this._groupLayoutPriorityOverrides.get(o))??s,l=t.map(n=>this._renderCommand(n)),g=ie(`more.${p}`,this._messages);switch(c){case"more-button":return u`<arcgis-toolbar-group .priority=${d}><arcgis-toolbar-more-button .overflowActionLabel=${g} .priority=${d}>${l}</arcgis-toolbar-more-button></arcgis-toolbar-group>`;case"split-button":return u`<arcgis-toolbar-group .priority=${d}><arcgis-toolbar-split-button .overflowActionLabel=${g} .priority=${d}>${l}</arcgis-toolbar-split-button></arcgis-toolbar-group>`;case"actions":return u`<arcgis-toolbar-group .priority=${d}>${l}</arcgis-toolbar-group>`}}_renderCommand({active:e,afterCreate:t,afterRemoved:o,afterUpdate:s,appearance:c,icon:p,disabled:d,id:l,kind:g,labelKey:n,labelParameters:w,loading:_,tooltipKey:b,iconFlipRTL:G,onClick:$,refKey:R,textEnabled:V,renderAsAction:ne}){let{_messages:x,_refMap:le,layout:I}=this,M=ie(n,x),P=M===void 0?n:w?ge(M,w):M,D=x?.[b]??P,B=R?se(le,R,S):this.#s,K={afterCreate:t,afterRemoved:o,afterUpdate:s};return ne?u`<arcgis-toolbar-action .active=${e} .appearance=${c} .disabled=${d} .icon=${p} .iconFlipRtl=${G} id=${l??A} .kind=${g} .loading=${_} .labelText=${I==="horizontal"?P:""} .textEnabled=${V} .tooltipText=${I==="horizontal"&&V?"":D} @arcgisToolbarItemSelected=${$} ${oe(K)} ${E(B)}></arcgis-toolbar-action>`:u`<arcgis-toolbar-item .active=${e} .disabled=${d} .icon=${p} id=${l??A} .iconFlipRtl=${G} .labelText=${P} .tooltipText=${D} @arcgisItemSelected=${$} ${oe(K)} ${E(B)}></arcgis-toolbar-item>`}};j("arcgis-sketch",L);return L},"intl","layers/GraphicsLayer","symbols/TextSymbol","core/reactiveUtils","widgets/Sketch/SketchViewModel","applications/Components/featureUtils","core/Accessor","core/accessorSupport/decorators","core/promiseUtils","widgets/Sketch/VisibleElements","widgets/support/SelectionToolbar/SelectionToolbarViewModel",a,b,c,d,e,g)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import h from"./RUYAWRPV.js";import"./WJQUE4DR.js";import g from"./BQBWXR6P.js";import{a as x}from"./ZSPYPXBY.js";import f from"./ALVAGE57.js";import e from"./HPWF3IQV.js";import"./IFR4IYSI.js";import"./7VDBR3SK.js";import a from"./QPSAD5DG.js";import"./FIZMK7GS.js";import"./ZKWI43WZ.js";import{P as S,X as V,a as b,b as c,p as d,q as y,x as u}from"./3UMLR76Y.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{once:N,watch:M},B,,,,E,{a:_}])=>{var q=b`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-view-corner-radius: var(--arcgis-view-corner-radius, 0px);--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;height:var(--arcgis-internal-panel-height, 100%)}calcite-notice{background-color:var(--calcite-color-surface-2);padding:var(--calcite-space-sm)}`,R=E(B),f=class extends S{constructor(){super(...arguments),this._messages=x({blocking:!0}),this.#t=[],this.#r=[],this.#a=[],this.#e=R(this),this._currentPage=1,this._filterText="",this._isInitialFeatureServiceInvalid=!1,this._mode="browse-services",this.allowEditingDisabled=!1,this.autoDestroyDisabled=!1,this.closable=!1,this.pageSize=5,this.state=this.#e.state,this.versioningStates=this.#e.versioningStates,this.view=this.#e.view,this.arcgisReady=u(),this.arcgisVersioningStateChanged=u()}static{this.properties={_currentPage:16,_editVersionInfo:16,_filterText:16,_isInitialFeatureServiceInvalid:16,_loadError:16,_mode:16,_selectedFeatureService:16,allowEditingDisabled:5,autoDestroyDisabled:5,closable:7,icon:1,initialVersionInfos:0,label:1,messageOverrides:0,mode:1,pageSize:9,referenceElement:1,state:32,versioningStates:0,view:0}}static{this.styles=q}#t;#r;#a;#e;get initialVersionInfos(){return this.#t}set initialVersionInfos(e){this.#t=e.map(i=>({...i,url:this.#y(i.url)}))}async destroy(){await this.manager.destroy()}async load(){N(()=>this.#e.state==="failed"||this.#e.state==="ready").then(()=>{this._loadError||(this.#S(),this._loadError||this.#l())}),this.manager.onLifecycle(()=>[M(()=>this.view?.map,()=>{this.#b()})])}#l(){this.initialVersionInfos.forEach(e=>{try{this.#c(e)}catch(i){y(this)(i)}})}#c(e){let{url:i,name:a}=e,r=this.#e.versioningStateLookup.get(i);if(!r){this._isInitialFeatureServiceInvalid=!0,d("error",this,`No versioning state found for feature service ${i}`);return}let t=r?.versionInfos.find(g=>g.versionIdentifier.name.toUpperCase()===a.toUpperCase());if(!t){this.#r.push(i),this.requestUpdate(),d("error",this,`Version ${a} not found in the versioning state for feature service ${i}`);return}let s=t.versionIdentifier,l=r?.currentVersionInfo?.versionIdentifier;s.guid!==l?.guid&&this.#e.changeVersion(i,s.name,s.guid)}#s(e){let{_messages:i}=this;switch(e){case"no-feature-services":return i.loadErrors.noFeatureServices;case"no-version-management-service-found":return i.loadErrors.noVersionManagementServiceFound;case"no-view-property":return i.loadErrors.noViewProperty;case"webmap-failed-to-load":return i.loadErrors.webmapFailedToLoad;default:return e}}#i(e){let{_messages:i}=this,a=!1,r,t,s;switch(e){case"invalid-feature-service":a=!0,r=i.loadErrors.invalidInitialFeatureService,t=this.#w,s=i.headers.invalidInitialFeatureService;break;case"no-version-management-service-found":r=this.#s("no-version-management-service-found");break;case"view-model-load":r=this.#s(this.#e.loadError??"");break;case"webmap-load":r=this.#s("webmap-failed-to-load");break}return c`<calcite-notice .closable=${a} icon kind=warning open scale=s width=full @calciteNoticeClose=${t}>${s?c`<div slot=title>${s}</div>`:void 0}<div slot=message>${r}</div></calcite-notice>`}async#d(e){e.stopPropagation();let{alterVersionParameters:i}=e.detail;await this.#e.alterVersion(i).finally(()=>{this._mode="browse-versions"})&&this.arcgisVersioningStateChanged.emit({type:"version-changed",versionIdentifier:i.versionIdentifier,versioningState:this.#e.versioningStateLookup.get(i.featureServerUrl)})}async#g(e){e.stopPropagation();let{arcgisVersioningStateChanged:i}=this,{createVersionParameters:a,switchToVersion:r}=e.detail,t=await this.#e.createVersion(a).finally(()=>{this._mode="browse-versions"});t&&(i.emit({type:"version-created",versionIdentifier:t.versionIdentifier,versioningState:this.#e.versioningStateLookup.get(a.featureServerUrl)}),r&&await this.#e.changeVersion(a.featureServerUrl,t.versionIdentifier.name,t.versionIdentifier.guid).then(s=>{s&&i.emit({type:"version-switched",versionIdentifier:t.versionIdentifier,versioningState:this.#e.versioningStateLookup.get(a.featureServerUrl)})}))}#v(e){e.stopPropagation(),this._mode="browse-versions",this._editVersionInfo=void 0}async#h(e){e.stopPropagation(),await this.#e.getVersionInfos(e.detail.serviceUrl)}#p(e){e.stopPropagation(),this._filterText=e.detail.filterText,this.#n()}async#o(e){e.stopPropagation();let{arcgisVersioningStateChanged:i}=this,{actionType:a,serviceUrl:r,versionInfo:t}=e.detail;switch(a){case"changeVersion":{await this.#e.changeVersion(r,t.versionIdentifier.name,t.versionIdentifier.guid)&&i.emit({type:"version-switched",versionIdentifier:t.versionIdentifier,versioningState:this.#e.versioningStateLookup.get(r)});break}case"deleteVersion":{await this.#e.deleteVersion(r,t.versionIdentifier.name,t.versionIdentifier.guid)&&i.emit({type:"version-deleted",versionIdentifier:t.versionIdentifier,versioningState:this.#e.versioningStateLookup.get(r)});break}case"editVersion":{this._mode="edit-version",this._editVersionInfo={...e.detail.versionInfo};break}}}#m(e){e.stopPropagation(),this._mode="create-version"}#u(e){e.stopPropagation(),this._currentPage=e.detail.currentPage}#f(e){e.detail.name==="selectedFeatureService"&&(this._selectedFeatureService=e.target.selectedFeatureService,this._mode="browse-versions",this.#n())}#w(){this._isInitialFeatureServiceInvalid=!1}#$(){this._mode="browse-services"}#I(){this._mode="browse-versions",this._editVersionInfo=void 0}async#b(){let e=this.view?.map;try{e.loaded||await e.load()}catch(i){this._loadError="webmap-failed-to-load",_(i,this,"Error while loading 'view.map'")}}#y(e){return e.replace(/\/+$/u,"")}#n(){this._currentPage=1}#S(){if(!this.#e?.versioningStateLookup.size){this._loadError="no-version-management-service-found",d("error",this,"No version management service found");return}this.#e?.versioningStateLookup.forEach((e,i)=>{e.loadStatus==="failed"&&(this.#a.push(i),d("error",this,`Failed to load versioning state for feature service ${i}`))}),this.requestUpdate()}render(){let{_currentPage:e,_editVersionInfo:i,_filterText:a,_messages:r,_mode:t,_selectedFeatureService:s,closable:l,label:g,pageSize:v,state:o}=this,k=this._loadError==="webmap-failed-to-load"?this.#i("webmap-load"):void 0,F=o==="disabled"&&this.#e.loadError?this.#i("view-model-load"):void 0,P=this._loadError==="no-version-management-service-found"?this.#i("no-version-management-service-found"):void 0,U=this._isInitialFeatureServiceInvalid?this.#i("invalid-feature-service"):void 0,L=Array.from(this.#e.serviceNameLookup,([n,A])=>({url:n,name:A})),h=s?.url??"",w=this.#e?.versioningStateLookup.get(h),p=w?.versionInfos??[],C=w?.currentVersionInfo??void 0,D=p.length<=v,m=a===""?p:p.filter(n=>n.versionIdentifier.name.toUpperCase().includes(a.toUpperCase())||n.versionIdentifier.guid.toUpperCase().includes(a.toUpperCase())),$=m.slice((e-1)*v,e*v);$.length===0&&this.#n();let I=this.#e.userLookup.get(h),T=this.#e.versionAdministratorLookup.get(h),z=(this.#e.serverVersionLookup.get(h)??0)>=11.2;return c`<calcite-flow><calcite-flow-item .closable=${l} .heading=${g} .loading=${o==="loading"||o==="executing"} .selected=${t==="browse-services"}>${k}${F}${P}${U}${L.map(n=>c`<arcgis-version-management-service-item .allowEditingDisabled=${this.allowEditingDisabled} .invalidInitialVersion=${this.#r.includes(n.url)} .messages=${r} .selectedFeatureService=${s} .serviceName=${n.name} .serviceUrl=${n.url} .versioningStateFailedToLoad=${this.#a.includes(n.url)} .viewModel=${this.#e} @arcgisInternalManageVersion=${this.#o} @arcgisPropertyChange=${this.#f}></arcgis-version-management-service-item>`)}</calcite-flow-item><calcite-flow-item .closable=${l} .description=${s?.name} .heading=${g} .loading=${o==="loading"||o==="executing"} .selected=${t==="browse-versions"} @calciteFlowItemBack=${n=>{n.preventDefault(),this.#$()}}><arcgis-version-management-version-list .currentPage=${e} .currentUser=${I} .currentVersionInfo=${C} .executionError=${this.#e.executionError??void 0} .featureServiceName=${s?.name} .featureServiceUrl=${s?.url} .hideFilter=${D} .isVersionAdministrator=${T} .isVersioningApiAvailable=${z} .messages=${r} .mode=${t} .totalPages=${Math.ceil(m.length/v)} .totalVersions=${m.length} .versionInfos=${$} @arcgisInternalFilterVersions=${this.#p} @arcgisInternalGetVersions=${this.#h} @arcgisInternalManageVersion=${this.#o} @arcgisInternalNewVersion=${this.#m} @arcgisInternalPageChange=${this.#u}></arcgis-version-management-version-list></calcite-flow-item><calcite-flow-item .closable=${l} .description=${t==="create-version"?"":i?.versionIdentifier.name} .heading=${t==="create-version"?r?.actions.newVersion:r?.actions.editVersion} .loading=${o==="loading"||o==="executing"} .selected=${t==="create-version"||t==="edit-version"} @calciteFlowItemBack=${n=>{n.preventDefault(),this.#I()}}><arcgis-version-management-version-properties .currentUser=${I} .editVersionInfo=${i} .featureServiceUrl=${s?.url} .messages=${r} .mode=${t} @arcgisInternalAlterVersion=${this.#d} @arcgisInternalCreateVersion=${this.#g} @arcgisInternalDiscardEdits=${this.#v}></arcgis-version-management-version-properties></calcite-flow-item></calcite-flow>`}};V("arcgis-version-management",f);return f},"core/reactiveUtils","versionManagement/VersionManager",a,e,f,g,h)
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import h from"./DSDPDMLP.js";import"./VJVKFKSG.js";import g from"./CQQM24VF.js";import{a as x}from"./WEAGLY7B.js";import f from"./FZWFKZLW.js";import e from"./JBHRVHGS.js";import"./JAZGNQRP.js";import"./Z5C6UBYP.js";import a from"./7V7IKYJG.js";import"./QUZTFUWM.js";import"./WQMZ7BDQ.js";import{P as S,X as V,a as b,b as c,p as d,q as y,x as u}from"./EKR2SAT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([{once:N,watch:M},B,,,,E,{a:_}])=>{var q=b`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-view-corner-radius: var(--arcgis-view-corner-radius, 0px);--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;height:var(--arcgis-internal-panel-height, 100%)}calcite-notice{background-color:var(--calcite-color-surface-2);padding:var(--calcite-space-sm)}`,R=E(B),f=class extends S{constructor(){super(...arguments),this._messages=x({blocking:!0}),this.#t=[],this.#r=[],this.#a=[],this.#e=R(this),this._currentPage=1,this._filterText="",this._isInitialFeatureServiceInvalid=!1,this._mode="browse-services",this.allowEditingDisabled=!1,this.autoDestroyDisabled=!1,this.closable=!1,this.pageSize=5,this.state=this.#e.state,this.versioningStates=this.#e.versioningStates,this.view=this.#e.view,this.arcgisReady=u(),this.arcgisVersioningStateChanged=u()}static{this.properties={_currentPage:16,_editVersionInfo:16,_filterText:16,_isInitialFeatureServiceInvalid:16,_loadError:16,_mode:16,_selectedFeatureService:16,allowEditingDisabled:5,autoDestroyDisabled:5,closable:7,icon:1,initialVersionInfos:0,label:1,messageOverrides:0,mode:1,pageSize:9,referenceElement:1,state:32,versioningStates:0,view:0}}static{this.styles=q}#t;#r;#a;#e;get initialVersionInfos(){return this.#t}set initialVersionInfos(e){this.#t=e.map(i=>({...i,url:this.#y(i.url)}))}async destroy(){await this.manager.destroy()}async load(){N(()=>this.#e.state==="failed"||this.#e.state==="ready").then(()=>{this._loadError||(this.#S(),this._loadError||this.#l())}),this.manager.onLifecycle(()=>[M(()=>this.view?.map,()=>{this.#b()})])}#l(){this.initialVersionInfos.forEach(e=>{try{this.#c(e)}catch(i){y(this)(i)}})}#c(e){let{url:i,name:a}=e,r=this.#e.versioningStateLookup.get(i);if(!r){this._isInitialFeatureServiceInvalid=!0,d("error",this,`No versioning state found for feature service ${i}`);return}let t=r?.versionInfos.find(g=>g.versionIdentifier.name.toUpperCase()===a.toUpperCase());if(!t){this.#r.push(i),this.requestUpdate(),d("error",this,`Version ${a} not found in the versioning state for feature service ${i}`);return}let s=t.versionIdentifier,l=r?.currentVersionInfo?.versionIdentifier;s.guid!==l?.guid&&this.#e.changeVersion(i,s.name,s.guid)}#s(e){let{_messages:i}=this;switch(e){case"no-feature-services":return i.loadErrors.noFeatureServices;case"no-version-management-service-found":return i.loadErrors.noVersionManagementServiceFound;case"no-view-property":return i.loadErrors.noViewProperty;case"webmap-failed-to-load":return i.loadErrors.webmapFailedToLoad;default:return e}}#i(e){let{_messages:i}=this,a=!1,r,t,s;switch(e){case"invalid-feature-service":a=!0,r=i.loadErrors.invalidInitialFeatureService,t=this.#w,s=i.headers.invalidInitialFeatureService;break;case"no-version-management-service-found":r=this.#s("no-version-management-service-found");break;case"view-model-load":r=this.#s(this.#e.loadError??"");break;case"webmap-load":r=this.#s("webmap-failed-to-load");break}return c`<calcite-notice .closable=${a} icon kind=warning open scale=s width=full @calciteNoticeClose=${t}>${s?c`<div slot=title>${s}</div>`:void 0}<div slot=message>${r}</div></calcite-notice>`}async#d(e){e.stopPropagation();let{alterVersionParameters:i}=e.detail;await this.#e.alterVersion(i).finally(()=>{this._mode="browse-versions"})&&this.arcgisVersioningStateChanged.emit({type:"version-changed",versionIdentifier:i.versionIdentifier,versioningState:this.#e.versioningStateLookup.get(i.featureServerUrl)})}async#g(e){e.stopPropagation();let{arcgisVersioningStateChanged:i}=this,{createVersionParameters:a,switchToVersion:r}=e.detail,t=await this.#e.createVersion(a).finally(()=>{this._mode="browse-versions"});t&&(i.emit({type:"version-created",versionIdentifier:t.versionIdentifier,versioningState:this.#e.versioningStateLookup.get(a.featureServerUrl)}),r&&await this.#e.changeVersion(a.featureServerUrl,t.versionIdentifier.name,t.versionIdentifier.guid).then(s=>{s&&i.emit({type:"version-switched",versionIdentifier:t.versionIdentifier,versioningState:this.#e.versioningStateLookup.get(a.featureServerUrl)})}))}#v(e){e.stopPropagation(),this._mode="browse-versions",this._editVersionInfo=void 0}async#h(e){e.stopPropagation(),await this.#e.getVersionInfos(e.detail.serviceUrl)}#p(e){e.stopPropagation(),this._filterText=e.detail.filterText,this.#n()}async#o(e){e.stopPropagation();let{arcgisVersioningStateChanged:i}=this,{actionType:a,serviceUrl:r,versionInfo:t}=e.detail;switch(a){case"changeVersion":{await this.#e.changeVersion(r,t.versionIdentifier.name,t.versionIdentifier.guid)&&i.emit({type:"version-switched",versionIdentifier:t.versionIdentifier,versioningState:this.#e.versioningStateLookup.get(r)});break}case"deleteVersion":{await this.#e.deleteVersion(r,t.versionIdentifier.name,t.versionIdentifier.guid)&&i.emit({type:"version-deleted",versionIdentifier:t.versionIdentifier,versioningState:this.#e.versioningStateLookup.get(r)});break}case"editVersion":{this._mode="edit-version",this._editVersionInfo={...e.detail.versionInfo};break}}}#m(e){e.stopPropagation(),this._mode="create-version"}#u(e){e.stopPropagation(),this._currentPage=e.detail.currentPage}#f(e){e.detail.name==="selectedFeatureService"&&(this._selectedFeatureService=e.target.selectedFeatureService,this._mode="browse-versions",this.#n())}#w(){this._isInitialFeatureServiceInvalid=!1}#$(){this._mode="browse-services"}#I(){this._mode="browse-versions",this._editVersionInfo=void 0}async#b(){let e=this.view?.map;try{e.loaded||await e.load()}catch(i){this._loadError="webmap-failed-to-load",_(i,this,"Error while loading 'view.map'")}}#y(e){return e.replace(/\/+$/u,"")}#n(){this._currentPage=1}#S(){if(!this.#e?.versioningStateLookup.size){this._loadError="no-version-management-service-found",d("error",this,"No version management service found");return}this.#e?.versioningStateLookup.forEach((e,i)=>{e.loadStatus==="failed"&&(this.#a.push(i),d("error",this,`Failed to load versioning state for feature service ${i}`))}),this.requestUpdate()}render(){let{_currentPage:e,_editVersionInfo:i,_filterText:a,_messages:r,_mode:t,_selectedFeatureService:s,closable:l,label:g,pageSize:v,state:o}=this,k=this._loadError==="webmap-failed-to-load"?this.#i("webmap-load"):void 0,F=o==="disabled"&&this.#e.loadError?this.#i("view-model-load"):void 0,P=this._loadError==="no-version-management-service-found"?this.#i("no-version-management-service-found"):void 0,U=this._isInitialFeatureServiceInvalid?this.#i("invalid-feature-service"):void 0,L=Array.from(this.#e.serviceNameLookup,([n,A])=>({url:n,name:A})),h=s?.url??"",w=this.#e?.versioningStateLookup.get(h),p=w?.versionInfos??[],C=w?.currentVersionInfo??void 0,D=p.length<=v,m=a===""?p:p.filter(n=>n.versionIdentifier.name.toUpperCase().includes(a.toUpperCase())||n.versionIdentifier.guid.toUpperCase().includes(a.toUpperCase())),$=m.slice((e-1)*v,e*v);$.length===0&&this.#n();let I=this.#e.userLookup.get(h),T=this.#e.versionAdministratorLookup.get(h),z=(this.#e.serverVersionLookup.get(h)??0)>=11.2;return c`<calcite-flow><calcite-flow-item .closable=${l} .heading=${g} .loading=${o==="loading"||o==="executing"} .selected=${t==="browse-services"}>${k}${F}${P}${U}${L.map(n=>c`<arcgis-version-management-service-item .allowEditingDisabled=${this.allowEditingDisabled} .invalidInitialVersion=${this.#r.includes(n.url)} .messages=${r} .selectedFeatureService=${s} .serviceName=${n.name} .serviceUrl=${n.url} .versioningStateFailedToLoad=${this.#a.includes(n.url)} .viewModel=${this.#e} @arcgisInternalManageVersion=${this.#o} @arcgisPropertyChange=${this.#f}></arcgis-version-management-service-item>`)}</calcite-flow-item><calcite-flow-item .closable=${l} .description=${s?.name} .heading=${g} .loading=${o==="loading"||o==="executing"} .selected=${t==="browse-versions"} @calciteFlowItemBack=${n=>{n.preventDefault(),this.#$()}}><arcgis-version-management-version-list .currentPage=${e} .currentUser=${I} .currentVersionInfo=${C} .executionError=${this.#e.executionError??void 0} .featureServiceName=${s?.name} .featureServiceUrl=${s?.url} .hideFilter=${D} .isVersionAdministrator=${T} .isVersioningApiAvailable=${z} .messages=${r} .mode=${t} .totalPages=${Math.ceil(m.length/v)} .totalVersions=${m.length} .versionInfos=${$} @arcgisInternalFilterVersions=${this.#p} @arcgisInternalGetVersions=${this.#h} @arcgisInternalManageVersion=${this.#o} @arcgisInternalNewVersion=${this.#m} @arcgisInternalPageChange=${this.#u}></arcgis-version-management-version-list></calcite-flow-item><calcite-flow-item .closable=${l} .description=${t==="create-version"?"":i?.versionIdentifier.name} .heading=${t==="create-version"?r?.actions.newVersion:r?.actions.editVersion} .loading=${o==="loading"||o==="executing"} .selected=${t==="create-version"||t==="edit-version"} @calciteFlowItemBack=${n=>{n.preventDefault(),this.#I()}}><arcgis-version-management-version-properties .currentUser=${I} .editVersionInfo=${i} .featureServiceUrl=${s?.url} .messages=${r} .mode=${t} @arcgisInternalAlterVersion=${this.#d} @arcgisInternalCreateVersion=${this.#g} @arcgisInternalDiscardEdits=${this.#v}></arcgis-version-management-version-properties></calcite-flow-item></calcite-flow>`}};V("arcgis-version-management",f);return f},"core/reactiveUtils","versionManagement/VersionManager",a,e,f,g,h)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import a from"./E5L3MOIC.js";import{b as _,k as o}from"./IM6IDWYR.js";import{N as r,O as d,P as f,R as u,X as w,a as $,b as c}from"./3UMLR76Y.js";import"./TAVTDQ6S.js";export default $arcgis.t(([I,b,{c:m,e:n,j:p,k:h,l:v}])=>{var T=$`:host{background-color:var(--calcite-color-surface-2);block-size:calc(var(--calcite-font-size-relative-5xl) * 8);color:var(--calcite-color-text-1);font-family:var(--calcite-font-family);font-size:var(--calcite-font-size-sm);inline-size:max-content}calcite-flow-item{--calcite-color-background: var(--calcite-color-surface-2)}.disabled{opacity:var(--calcite-opacity-disabled);pointer-events:none}.playback-rate-content{margin-inline-start:var(--calcite-spacing-lg);margin-inline-end:var(--calcite-spacing-lg);margin-block-start:var(--calcite-spacing-lg)}.end-content,.format-content,.mode-content,.start-content,.stops-content,.time-zone-content{margin-inline-start:calc(var(--calcite-spacing-lg) * 3);margin-inline-end:var(--calcite-spacing-lg);margin-block-start:var(--calcite-spacing-lg)}.stops-indent{margin-inline-start:calc(var(--calcite-spacing-lg) * 1.5);margin-block-end:var(--calcite-spacing-lg)}.label-description{font-style:italic}.label-heading{font-weight:var(--calcite-font-weight-semibold)}.list-item--content{--calcite-label-margin-bottom: 0}.time-zone-label{--calcite-color-background: transparent;--calcite-color-border-input: transparent;font-style:italic;margin-inline-start:calc(var(--calcite-spacing-md) * -1);margin-block-start:calc(var(--calcite-spacing-md) * -.5)}`,g=class extends f{constructor(){super(...arguments),this.#e=r(),this.#i=r(),this.#a=r(),this.#l=r(),this.#t={maximumFractionDigits:0,style:"unit",unitDisplay:"long"},this._selectedFlowItem="overview",this.autoDestroyDisabled=!1}static{this.properties={_timeUnitSettings:16,_defaultStopCount:16,_defaultStopIntervalValue:16,_defaultStopIntervalUnit:16,_stopCount:16,_stopIntervalValue:16,_stopIntervalUnit:16,_formatDescription:16,_playbackRateDescription:16,_formatStart:16,_formatEnd:16,_modeDescription:16,_selectedFlowItem:16,_stopDescription:16,autoDestroyDisabled:5,messages:0,viewModel:0}}static{this.styles=T}#s;#c;#n;#e;#i;#a;#l;#t;get _timeUnitSettings(){let{messages:t}=this;if(!t)return;let e={milliseconds:{timeUnit:"milliseconds",heading:t.timeUnitOptions.millisecond,numberFormatOptions:{...this.#t,unit:"millisecond"}},seconds:{timeUnit:"seconds",heading:t.timeUnitOptions.second,numberFormatOptions:{...this.#t,unit:"second"}},minutes:{timeUnit:"minutes",heading:t.timeUnitOptions.minute,numberFormatOptions:{...this.#t,unit:"minute"}},hours:{timeUnit:"hours",heading:t.timeUnitOptions.hour,numberFormatOptions:{...this.#t,unit:"hour"}},days:{timeUnit:"days",heading:t.timeUnitOptions.day,numberFormatOptions:{...this.#t,unit:"day"}},weeks:{timeUnit:"weeks",heading:t.timeUnitOptions.week,numberFormatOptions:{...this.#t,unit:"week"}},months:{timeUnit:"months",heading:t.timeUnitOptions.month,numberFormatOptions:{...this.#t,unit:"month"}},years:{timeUnit:"years",heading:t.timeUnitOptions.year,numberFormatOptions:{...this.#t,unit:"year"}}};return{get:i=>e[i],has:i=>i in e,values:Object.values(e)}}get _defaultStopCount(){return m(this.viewModel?.stops)?this.viewModel.stops.count:10}get _defaultStopIntervalValue(){return n(this.viewModel?.stops)?this.viewModel.stops.interval.value:1}get _defaultStopIntervalUnit(){return n(this.viewModel?.stops)?this.viewModel.stops.interval.unit:"years"}get _stopCount(){return this.#s??this._defaultStopCount}set _stopCount(t){let e=this._stopCount;e!==t&&(this.#s=t,this.requestUpdate("_stopCount",e))}get _stopIntervalValue(){return this.#c??this._defaultStopIntervalValue}set _stopIntervalValue(t){let e=this._stopIntervalValue;e!==t&&(this.#c=t,this.requestUpdate("_stopIntervalValue",e))}get _stopIntervalUnit(){return this.#n??this._defaultStopIntervalUnit}set _stopIntervalUnit(t){let e=this._stopIntervalUnit;e!==t&&(this.#n=t,this.requestUpdate("_stopIntervalUnit",e))}get _formatDescription(){let{messages:t,viewModel:e}=this;if(!t||!e)return"";let{format:i}=e;switch(i){case"date":return t.formatOptions.dateOnly;case"date-time":return t.formatOptions.dateAndTime}}get _playbackRateDescription(){let{_timeUnitSettings:t,messages:e,viewModel:i}=this;if(!e||!i||!t)return"";let a=i.formatNumber(i.playRate,t.get("milliseconds").numberFormatOptions);return e.everyDurationTemplate.replace("{duration}",a)}get _formatStart(){let{viewModel:t}=this,e=t?.fullTimeExtent?.start;return e?t.formatDateTime(e):""}get _formatEnd(){let{viewModel:t}=this,e=t?.fullTimeExtent?.end;return e?t.formatDateTime(e):""}get _modeDescription(){let{messages:t,viewModel:e}=this;return!t||!e?"":t.modeOptions[e.mode]}get _stopDescription(){let{_timeUnitSettings:t,messages:e,viewModel:i}=this;if(!t||!e||!i)return"";let{stops:a}=i;if(!a)return e.stopOptions.freeMovement;if(m(a))return e.stopOptions.evenlySpacedTemplate.replace("{count}",`${a.count}`);if(n(a)){let{value:l,unit:s}=a.interval;if(!t.has(s))return e.everyDurationPartsTemplate.replace("{count}",`${l}`).replace("{timeUnit}",s);let y=t.get(s).numberFormatOptions,k=i.formatNumber(l,y);return e.everyDurationTemplate.replace("{duration}",k)}return e.stopOptions.discreteDates}async destroy(){await this.manager.destroy()}async navigateToOverview(){this._selectedFlowItem="overview"}#o(){let{viewModel:t}=this;if(!t?.fullTimeExtent||!this.#e.value?.value||!this.#i.value?.value)return;let e=this.#e.value.value,i=this.#i.value.value,a=o(t.timeZone),l=v(e,i,a);l&&(t.fullTimeExtent=new I({start:t.fullTimeExtent.start,end:l}))}#r(){let{viewModel:t}=this;if(!t?.fullTimeExtent||!this.#a.value?.value||!this.#l.value?.value)return;let e=this.#a.value.value,i=this.#l.value.value,a=o(t.timeZone),l=v(e,i,a);if(!l)return;let{end:s}=t.fullTimeExtent;t.fullTimeExtent=new I({start:l,end:s})}render(){let{viewModel:t}=this;if(!t)return null;let{disabled:e}=t;return c`<div class=${u({disabled:e})}><calcite-flow>${this.#p(t)}${this.#d(t)}${this.#m(t)}${this.#u(t)}${this.#h(t)}${this.#v(t)}${this.#b(t)}${this.#g(t)}</calcite-flow></div>`}#d(t){let{messages:e}=this;if(!e||this._selectedFlowItem!=="end")return null;let{fullTimeExtent:i,disabled:a,timeZone:l}=t;if(!i?.end)return null;let s=o(l);return c`<calcite-flow-item .description=${e.endDescription} .heading=${e.end} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="end-content"><calcite-label><span>${e.date}</span><calcite-input-date-picker .disabled=${a} @calciteInputDatePickerChange=${this.#o} .value=${p(i.end,s)} ${d(this.#e)}></calcite-input-date-picker></calcite-label><calcite-label><span>${e.time}</span><calcite-input-time-picker .disabled=${a} @calciteInputTimePickerChange=${this.#o} step=1 .value=${h(i.end,s)} ${d(this.#i)}></calcite-input-time-picker></calcite-label></div></calcite-flow-item>`}#m(t){let{messages:e}=this;return!e||this._selectedFlowItem!=="format"?null:c`<calcite-flow-item .description=${e.displayDescription} .heading=${e.display} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="format-content"><calcite-radio-button-group class="format-radio-button-group" layout=vertical name=format @calciteRadioButtonGroupChange=${i=>t.format=i.currentTarget.selectedItem?.value}><calcite-radio-button .labelText=${e.formatOptions.dateOnly} value=date .checked=${t.format==="date"}></calcite-radio-button><calcite-radio-button .checked=${t.format==="date-time"} .labelText=${e.formatOptions.dateAndTime} value=date-time></calcite-radio-button></calcite-radio-button-group></div></calcite-flow-item>`}#u(t){let{messages:e}=this;if(!e||this._selectedFlowItem!=="mode")return null;let i=["instant","time-window","cumulative-from-start","cumulative-from-end"];return c`<calcite-flow-item .description=${e.modeDescription} .heading=${e.mode} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="mode-content"><calcite-radio-button-group name=mode layout=vertical @calciteRadioButtonGroupChange=${a=>t.mode=a.currentTarget.selectedItem?.value} class="mode-radio-button-group">${i.map(a=>c`<calcite-radio-button .labelText=${e.modeOptions[a]} .value=${a} .checked=${t.mode===a}></calcite-radio-button>`)}</calcite-radio-button-group></div></calcite-flow-item>`}#p(t){let{messages:e}=this;return e?c`<calcite-flow-item .selected=${this._selectedFlowItem==="overview"}><calcite-list .label=${e.overview}><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="format"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${e.display}</calcite-label><calcite-label class="label-description">${this._formatDescription}</calcite-label></div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="mode"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${e.mode}</calcite-label><calcite-label class="label-description">${this._modeDescription}</calcite-label></div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="time-zone"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${e.timeZone}</calcite-label>${this.#$()}</div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="start"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${e.start}</calcite-label><calcite-label class="label-description">${this._formatStart}</calcite-label></div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="end"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${e.end}</calcite-label><calcite-label class="label-description">${this._formatEnd}</calcite-label></div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="stops"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${e.stops}</calcite-label><calcite-label class="label-description">${this._stopDescription}</calcite-label></div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="playback-rate"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${e.playbackRate}</calcite-label><calcite-label class="label-description">${this._playbackRateDescription}</calcite-label></div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item><calcite-label slot=content class="label-heading">${e.loop}</calcite-label><calcite-switch .checked=${t.loop} .label=${e.loop} @calciteSwitchChange=${i=>t.loop=i.target.checked} slot=content-end></calcite-switch></calcite-list-item></calcite-list></calcite-flow-item>`:null}#h(t){let{_timeUnitSettings:e,messages:i}=this;if(!e||!i||this._selectedFlowItem!=="playback-rate")return null;let{playRate:a,disabled:l}=t;return c`<calcite-flow-item .description=${i.playbackRateDescription} .heading=${i.playbackRate} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="playback-rate-content"><arcgis-slider .autoDestroyDisabled=${this.autoDestroyDisabled} .disabled=${l} .labelFormatter=${s=>t.formatNumber(s,e.get("milliseconds").numberFormatOptions)} max=2000 min=100 @arcgisChange=${s=>t.playRate=s.target.values[0]} precision=0 steps=10 value-labels-display=always .values=${[a]}><arcgis-ticks max=2000 min=100 mode=value show-labels slot=content-end style="flex:1;" .values=${[100,500,1e3,1500,2e3]}></arcgis-ticks></arcgis-slider></div></calcite-flow-item>`}#v(t){let{messages:e}=this;if(!e||this._selectedFlowItem!=="start")return null;let{fullTimeExtent:i,disabled:a,timeZone:l}=t;if(!i?.start)return null;let s=o(l);return c`<calcite-flow-item .description=${e.startDescription} .heading=${e.start} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="start-content"><calcite-label><span>${e.date}</span><calcite-input-date-picker .disabled=${a} @calciteInputDatePickerChange=${this.#r} .value=${p(i.start,s)} ${d(this.#a)}></calcite-input-date-picker></calcite-label><calcite-label><span>${e.time}</span><calcite-input-time-picker .disabled=${a} @calciteInputTimePickerChange=${this.#r} step=1 .value=${h(i.start,s)} ${d(this.#l)}></calcite-input-time-picker></calcite-label></div></calcite-flow-item>`}#b(t){let{_timeUnitSettings:e,messages:i}=this;return!e||!i||this._selectedFlowItem!=="stops"?null:c`<calcite-flow-item .description=${i.stopsDescription} .heading=${i.stops} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="stops-content"><calcite-radio-button-group .disabled=${t.disabled} class="mode-radio-button-group" layout=vertical name=stops><calcite-radio-button .checked=${!t.stops} .labelText=${i.stopOptions.freeMovement} @calciteRadioButtonChange=${()=>{t.stops=void 0}} value></calcite-radio-button><calcite-radio-button .checked=${m(t.stops)} .labelText=${i.stopOptions.evenlySpaced} @calciteRadioButtonChange=${()=>{t.stops={count:10}}} value></calcite-radio-button><div class="stops-indent"><calcite-input-number .disabled=${t.disabled||!m(t.stops)} integer min=1 .placeholder=${i.countPrompt} .value=${`${this._stopCount}`} @calciteInputNumberChange=${a=>{let l=Number.parseInt(a.currentTarget.value,10);t.stops={count:l}}}></calcite-input-number></div><calcite-radio-button .checked=${n(t.stops)} .labelText=${i.regularInterval} @calciteRadioButtonChange=${()=>{t.stops={interval:new b({value:this._stopIntervalValue,unit:this._stopIntervalUnit})}}} value></calcite-radio-button><div class="stops-indent"><calcite-label><span class=${u({disabled:t.disabled||!n(t.stops)})}>${i.count}</span><calcite-input-number .disabled=${t.disabled||!n(t.stops)} integer min=1 .placeholder=${i.countPrompt} .value=${`${this._stopIntervalValue}`} @calciteInputNumberChange=${a=>{this._stopIntervalValue=Number.parseInt(a.currentTarget.value,10),t.stops={interval:new b({value:this._stopIntervalValue,unit:this._stopIntervalUnit})}}}></calcite-input-number></calcite-label><calcite-label><span class=${u({disabled:t.disabled||!n(t.stops)})}>${i.unit}</span><calcite-combobox .disabled=${t.disabled||!n(t.stops)} .label=${i.units} .placeholder=${i.unitPrompt} selection-mode=single-persist @calciteComboboxChange=${a=>{this._stopIntervalUnit=a.currentTarget.selectedItems[0]?.value,t.stops={interval:new b({value:this._stopIntervalValue,unit:this._stopIntervalUnit})}}}>${e.values.map(({timeUnit:a,heading:l})=>c`<calcite-combobox-item .value=${a} .heading=${l} .selected=${this._stopIntervalUnit===a}></calcite-combobox-item>`)}</calcite-combobox></calcite-label></div></calcite-radio-button-group></div></calcite-flow-item>`}#g(t){let{messages:e}=this;return!e||this._selectedFlowItem!=="time-zone"?null:c`<calcite-flow-item .description=${e.timeZoneDescription} .heading=${e.timeZone} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="time-zone-content"><arcgis-time-zone-selector .disabled=${t.disabled} .timeZone=${t.timeZone} @arcgisInternalTimeZoneChange=${i=>t.timeZone=i.detail}></arcgis-time-zone-selector></div></calcite-flow-item>`}#$(){let{messages:t,viewModel:e}=this;if(!t||!e)return null;let{timeZone:i}=e;return i===_?c`<calcite-label class="label-description">${t.noTimeZoneAdjustment}</calcite-label>`:c`<calcite-input-time-zone class="time-zone-label" mode=region overlay-positioning=fixed read-only .value=${o(i)}></calcite-input-time-zone>`}};w("arcgis-time-bar-settings",g);return g},"time/TimeExtent","time/TimeInterval",a)
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import a from"./FWXRRSBS.js";import{b as _,k as o}from"./O7RSAJOS.js";import{N as r,O as d,P as f,R as u,X as w,a as $,b as c}from"./EKR2SAT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([I,b,{c:m,e:n,j:p,k:h,l:v}])=>{var T=$`:host{background-color:var(--calcite-color-surface-2);block-size:calc(var(--calcite-font-size-relative-5xl) * 8);color:var(--calcite-color-text-1);font-family:var(--calcite-font-family);font-size:var(--calcite-font-size-sm);inline-size:max-content}calcite-flow-item{--calcite-color-background: var(--calcite-color-surface-2)}.disabled{opacity:var(--calcite-opacity-disabled);pointer-events:none}.playback-rate-content{margin-inline-start:var(--calcite-spacing-lg);margin-inline-end:var(--calcite-spacing-lg);margin-block-start:var(--calcite-spacing-lg)}.end-content,.format-content,.mode-content,.start-content,.stops-content,.time-zone-content{margin-inline-start:calc(var(--calcite-spacing-lg) * 3);margin-inline-end:var(--calcite-spacing-lg);margin-block-start:var(--calcite-spacing-lg)}.stops-indent{margin-inline-start:calc(var(--calcite-spacing-lg) * 1.5);margin-block-end:var(--calcite-spacing-lg)}.label-description{font-style:italic}.label-heading{font-weight:var(--calcite-font-weight-semibold)}.list-item--content{--calcite-label-margin-bottom: 0}.time-zone-label{--calcite-color-background: transparent;--calcite-color-border-input: transparent;font-style:italic;margin-inline-start:calc(var(--calcite-spacing-md) * -1);margin-block-start:calc(var(--calcite-spacing-md) * -.5)}`,g=class extends f{constructor(){super(...arguments),this.#e=r(),this.#i=r(),this.#a=r(),this.#l=r(),this.#t={maximumFractionDigits:0,style:"unit",unitDisplay:"long"},this._selectedFlowItem="overview",this.autoDestroyDisabled=!1}static{this.properties={_timeUnitSettings:16,_defaultStopCount:16,_defaultStopIntervalValue:16,_defaultStopIntervalUnit:16,_stopCount:16,_stopIntervalValue:16,_stopIntervalUnit:16,_formatDescription:16,_playbackRateDescription:16,_formatStart:16,_formatEnd:16,_modeDescription:16,_selectedFlowItem:16,_stopDescription:16,autoDestroyDisabled:5,messages:0,viewModel:0}}static{this.styles=T}#s;#c;#n;#e;#i;#a;#l;#t;get _timeUnitSettings(){let{messages:t}=this;if(!t)return;let e={milliseconds:{timeUnit:"milliseconds",heading:t.timeUnitOptions.millisecond,numberFormatOptions:{...this.#t,unit:"millisecond"}},seconds:{timeUnit:"seconds",heading:t.timeUnitOptions.second,numberFormatOptions:{...this.#t,unit:"second"}},minutes:{timeUnit:"minutes",heading:t.timeUnitOptions.minute,numberFormatOptions:{...this.#t,unit:"minute"}},hours:{timeUnit:"hours",heading:t.timeUnitOptions.hour,numberFormatOptions:{...this.#t,unit:"hour"}},days:{timeUnit:"days",heading:t.timeUnitOptions.day,numberFormatOptions:{...this.#t,unit:"day"}},weeks:{timeUnit:"weeks",heading:t.timeUnitOptions.week,numberFormatOptions:{...this.#t,unit:"week"}},months:{timeUnit:"months",heading:t.timeUnitOptions.month,numberFormatOptions:{...this.#t,unit:"month"}},years:{timeUnit:"years",heading:t.timeUnitOptions.year,numberFormatOptions:{...this.#t,unit:"year"}}};return{get:i=>e[i],has:i=>i in e,values:Object.values(e)}}get _defaultStopCount(){return m(this.viewModel?.stops)?this.viewModel.stops.count:10}get _defaultStopIntervalValue(){return n(this.viewModel?.stops)?this.viewModel.stops.interval.value:1}get _defaultStopIntervalUnit(){return n(this.viewModel?.stops)?this.viewModel.stops.interval.unit:"years"}get _stopCount(){return this.#s??this._defaultStopCount}set _stopCount(t){let e=this._stopCount;e!==t&&(this.#s=t,this.requestUpdate("_stopCount",e))}get _stopIntervalValue(){return this.#c??this._defaultStopIntervalValue}set _stopIntervalValue(t){let e=this._stopIntervalValue;e!==t&&(this.#c=t,this.requestUpdate("_stopIntervalValue",e))}get _stopIntervalUnit(){return this.#n??this._defaultStopIntervalUnit}set _stopIntervalUnit(t){let e=this._stopIntervalUnit;e!==t&&(this.#n=t,this.requestUpdate("_stopIntervalUnit",e))}get _formatDescription(){let{messages:t,viewModel:e}=this;if(!t||!e)return"";let{format:i}=e;switch(i){case"date":return t.formatOptions.dateOnly;case"date-time":return t.formatOptions.dateAndTime}}get _playbackRateDescription(){let{_timeUnitSettings:t,messages:e,viewModel:i}=this;if(!e||!i||!t)return"";let a=i.formatNumber(i.playRate,t.get("milliseconds").numberFormatOptions);return e.everyDurationTemplate.replace("{duration}",a)}get _formatStart(){let{viewModel:t}=this,e=t?.fullTimeExtent?.start;return e?t.formatDateTime(e):""}get _formatEnd(){let{viewModel:t}=this,e=t?.fullTimeExtent?.end;return e?t.formatDateTime(e):""}get _modeDescription(){let{messages:t,viewModel:e}=this;return!t||!e?"":t.modeOptions[e.mode]}get _stopDescription(){let{_timeUnitSettings:t,messages:e,viewModel:i}=this;if(!t||!e||!i)return"";let{stops:a}=i;if(!a)return e.stopOptions.freeMovement;if(m(a))return e.stopOptions.evenlySpacedTemplate.replace("{count}",`${a.count}`);if(n(a)){let{value:l,unit:s}=a.interval;if(!t.has(s))return e.everyDurationPartsTemplate.replace("{count}",`${l}`).replace("{timeUnit}",s);let y=t.get(s).numberFormatOptions,k=i.formatNumber(l,y);return e.everyDurationTemplate.replace("{duration}",k)}return e.stopOptions.discreteDates}async destroy(){await this.manager.destroy()}async navigateToOverview(){this._selectedFlowItem="overview"}#o(){let{viewModel:t}=this;if(!t?.fullTimeExtent||!this.#e.value?.value||!this.#i.value?.value)return;let e=this.#e.value.value,i=this.#i.value.value,a=o(t.timeZone),l=v(e,i,a);l&&(t.fullTimeExtent=new I({start:t.fullTimeExtent.start,end:l}))}#r(){let{viewModel:t}=this;if(!t?.fullTimeExtent||!this.#a.value?.value||!this.#l.value?.value)return;let e=this.#a.value.value,i=this.#l.value.value,a=o(t.timeZone),l=v(e,i,a);if(!l)return;let{end:s}=t.fullTimeExtent;t.fullTimeExtent=new I({start:l,end:s})}render(){let{viewModel:t}=this;if(!t)return null;let{disabled:e}=t;return c`<div class=${u({disabled:e})}><calcite-flow>${this.#p(t)}${this.#d(t)}${this.#m(t)}${this.#u(t)}${this.#h(t)}${this.#v(t)}${this.#b(t)}${this.#g(t)}</calcite-flow></div>`}#d(t){let{messages:e}=this;if(!e||this._selectedFlowItem!=="end")return null;let{fullTimeExtent:i,disabled:a,timeZone:l}=t;if(!i?.end)return null;let s=o(l);return c`<calcite-flow-item .description=${e.endDescription} .heading=${e.end} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="end-content"><calcite-label><span>${e.date}</span><calcite-input-date-picker .disabled=${a} @calciteInputDatePickerChange=${this.#o} .value=${p(i.end,s)} ${d(this.#e)}></calcite-input-date-picker></calcite-label><calcite-label><span>${e.time}</span><calcite-input-time-picker .disabled=${a} @calciteInputTimePickerChange=${this.#o} step=1 .value=${h(i.end,s)} ${d(this.#i)}></calcite-input-time-picker></calcite-label></div></calcite-flow-item>`}#m(t){let{messages:e}=this;return!e||this._selectedFlowItem!=="format"?null:c`<calcite-flow-item .description=${e.displayDescription} .heading=${e.display} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="format-content"><calcite-radio-button-group class="format-radio-button-group" layout=vertical name=format @calciteRadioButtonGroupChange=${i=>t.format=i.currentTarget.selectedItem?.value}><calcite-radio-button .labelText=${e.formatOptions.dateOnly} value=date .checked=${t.format==="date"}></calcite-radio-button><calcite-radio-button .checked=${t.format==="date-time"} .labelText=${e.formatOptions.dateAndTime} value=date-time></calcite-radio-button></calcite-radio-button-group></div></calcite-flow-item>`}#u(t){let{messages:e}=this;if(!e||this._selectedFlowItem!=="mode")return null;let i=["instant","time-window","cumulative-from-start","cumulative-from-end"];return c`<calcite-flow-item .description=${e.modeDescription} .heading=${e.mode} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="mode-content"><calcite-radio-button-group name=mode layout=vertical @calciteRadioButtonGroupChange=${a=>t.mode=a.currentTarget.selectedItem?.value} class="mode-radio-button-group">${i.map(a=>c`<calcite-radio-button .labelText=${e.modeOptions[a]} .value=${a} .checked=${t.mode===a}></calcite-radio-button>`)}</calcite-radio-button-group></div></calcite-flow-item>`}#p(t){let{messages:e}=this;return e?c`<calcite-flow-item .selected=${this._selectedFlowItem==="overview"}><calcite-list .label=${e.overview}><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="format"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${e.display}</calcite-label><calcite-label class="label-description">${this._formatDescription}</calcite-label></div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="mode"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${e.mode}</calcite-label><calcite-label class="label-description">${this._modeDescription}</calcite-label></div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="time-zone"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${e.timeZone}</calcite-label>${this.#$()}</div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="start"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${e.start}</calcite-label><calcite-label class="label-description">${this._formatStart}</calcite-label></div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="end"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${e.end}</calcite-label><calcite-label class="label-description">${this._formatEnd}</calcite-label></div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="stops"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${e.stops}</calcite-label><calcite-label class="label-description">${this._stopDescription}</calcite-label></div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="playback-rate"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${e.playbackRate}</calcite-label><calcite-label class="label-description">${this._playbackRateDescription}</calcite-label></div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item><calcite-label slot=content class="label-heading">${e.loop}</calcite-label><calcite-switch .checked=${t.loop} .label=${e.loop} @calciteSwitchChange=${i=>t.loop=i.target.checked} slot=content-end></calcite-switch></calcite-list-item></calcite-list></calcite-flow-item>`:null}#h(t){let{_timeUnitSettings:e,messages:i}=this;if(!e||!i||this._selectedFlowItem!=="playback-rate")return null;let{playRate:a,disabled:l}=t;return c`<calcite-flow-item .description=${i.playbackRateDescription} .heading=${i.playbackRate} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="playback-rate-content"><arcgis-slider .autoDestroyDisabled=${this.autoDestroyDisabled} .disabled=${l} .labelFormatter=${s=>t.formatNumber(s,e.get("milliseconds").numberFormatOptions)} max=2000 min=100 @arcgisChange=${s=>t.playRate=s.target.values[0]} precision=0 steps=10 value-labels-display=always .values=${[a]}><arcgis-ticks max=2000 min=100 mode=value show-labels slot=content-end style="flex:1;" .values=${[100,500,1e3,1500,2e3]}></arcgis-ticks></arcgis-slider></div></calcite-flow-item>`}#v(t){let{messages:e}=this;if(!e||this._selectedFlowItem!=="start")return null;let{fullTimeExtent:i,disabled:a,timeZone:l}=t;if(!i?.start)return null;let s=o(l);return c`<calcite-flow-item .description=${e.startDescription} .heading=${e.start} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="start-content"><calcite-label><span>${e.date}</span><calcite-input-date-picker .disabled=${a} @calciteInputDatePickerChange=${this.#r} .value=${p(i.start,s)} ${d(this.#a)}></calcite-input-date-picker></calcite-label><calcite-label><span>${e.time}</span><calcite-input-time-picker .disabled=${a} @calciteInputTimePickerChange=${this.#r} step=1 .value=${h(i.start,s)} ${d(this.#l)}></calcite-input-time-picker></calcite-label></div></calcite-flow-item>`}#b(t){let{_timeUnitSettings:e,messages:i}=this;return!e||!i||this._selectedFlowItem!=="stops"?null:c`<calcite-flow-item .description=${i.stopsDescription} .heading=${i.stops} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="stops-content"><calcite-radio-button-group .disabled=${t.disabled} class="mode-radio-button-group" layout=vertical name=stops><calcite-radio-button .checked=${!t.stops} .labelText=${i.stopOptions.freeMovement} @calciteRadioButtonChange=${()=>{t.stops=void 0}} value></calcite-radio-button><calcite-radio-button .checked=${m(t.stops)} .labelText=${i.stopOptions.evenlySpaced} @calciteRadioButtonChange=${()=>{t.stops={count:10}}} value></calcite-radio-button><div class="stops-indent"><calcite-input-number .disabled=${t.disabled||!m(t.stops)} integer min=1 .placeholder=${i.countPrompt} .value=${`${this._stopCount}`} @calciteInputNumberChange=${a=>{let l=Number.parseInt(a.currentTarget.value,10);t.stops={count:l}}}></calcite-input-number></div><calcite-radio-button .checked=${n(t.stops)} .labelText=${i.regularInterval} @calciteRadioButtonChange=${()=>{t.stops={interval:new b({value:this._stopIntervalValue,unit:this._stopIntervalUnit})}}} value></calcite-radio-button><div class="stops-indent"><calcite-label><span class=${u({disabled:t.disabled||!n(t.stops)})}>${i.count}</span><calcite-input-number .disabled=${t.disabled||!n(t.stops)} integer min=1 .placeholder=${i.countPrompt} .value=${`${this._stopIntervalValue}`} @calciteInputNumberChange=${a=>{this._stopIntervalValue=Number.parseInt(a.currentTarget.value,10),t.stops={interval:new b({value:this._stopIntervalValue,unit:this._stopIntervalUnit})}}}></calcite-input-number></calcite-label><calcite-label><span class=${u({disabled:t.disabled||!n(t.stops)})}>${i.unit}</span><calcite-combobox .disabled=${t.disabled||!n(t.stops)} .label=${i.units} .placeholder=${i.unitPrompt} selection-mode=single-persist @calciteComboboxChange=${a=>{this._stopIntervalUnit=a.currentTarget.selectedItems[0]?.value,t.stops={interval:new b({value:this._stopIntervalValue,unit:this._stopIntervalUnit})}}}>${e.values.map(({timeUnit:a,heading:l})=>c`<calcite-combobox-item .value=${a} .heading=${l} .selected=${this._stopIntervalUnit===a}></calcite-combobox-item>`)}</calcite-combobox></calcite-label></div></calcite-radio-button-group></div></calcite-flow-item>`}#g(t){let{messages:e}=this;return!e||this._selectedFlowItem!=="time-zone"?null:c`<calcite-flow-item .description=${e.timeZoneDescription} .heading=${e.timeZone} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="time-zone-content"><arcgis-time-zone-selector .disabled=${t.disabled} .timeZone=${t.timeZone} @arcgisInternalTimeZoneChange=${i=>t.timeZone=i.detail}></arcgis-time-zone-selector></div></calcite-flow-item>`}#$(){let{messages:t,viewModel:e}=this;if(!t||!e)return null;let{timeZone:i}=e;return i===_?c`<calcite-label class="label-description">${t.noTimeZoneAdjustment}</calcite-label>`:c`<calcite-input-time-zone class="time-zone-label" mode=region overlay-positioning=fixed read-only .value=${o(i)}></calcite-input-time-zone>`}};w("arcgis-time-bar-settings",g);return g},"time/TimeExtent","time/TimeInterval",a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import h from"./ESOCZAMZ.js";import g from"./OAYNZFL2.js";import f from"./ALVAGE57.js";import e from"./HPWF3IQV.js";import{h as d}from"./IFR4IYSI.js";import"./7VDBR3SK.js";import b from"./QPSAD5DG.js";import"./FIZMK7GS.js";import"./ZKWI43WZ.js";import{P as n,X as l,a,p as s,x as c}from"./3UMLR76Y.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{watch:f},m,u,{b:g},,,p,h])=>{var v=a`.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__heading{word-break:break-word}.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}.esri-search{flex-flow:row;justify-content:center;align-items:center;width:240px;display:flex}.esri-search__dropdown{--calcite-color-border-1: var(--calcite-color-border-input);--calcite-dropdown-width: 240px;width:31px}.esri-search__autocomplete{flex:1}.esri-search__container{flex-flow:row;flex:1 0 100%;align-items:stretch;display:flex;position:relative}.esri-search__form{flex-flow:row;flex:1 0;align-items:stretch;margin:0;padding:0;display:flex}.esri-search-result-renderer calcite-block,.esri-search-result-renderer calcite-block[expanded]{margin-block:0;border:0;margin-block-start:var(--calcite-spacing-md)}.esri-search__submit-button{position:absolute;margin:-1px;border-width:0;padding:0;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0,0,0,0)}:host{display:flex}.esri-directions{display:flex;flex:1 1 auto;overflow:hidden}.esri-directions calcite-flow-item{--calcite-color-background: var(--calcite-color-foreground-1)}.esri-directions calcite-flow{z-index:1;position:relative}.esri-directions__accordion{--calcite-accordion-border-color: transparent}.esri-directions__stop-container{--calcite-list-border-color: transparent;--calcite-list-background-color-hover: var(--calcite-color-foreground-1);margin-block-start:var(--calcite-spacing-sm);display:flex}.esri-directions__stop-list{flex:auto}.esri-directions__action-container{margin-top:var(--calcite-spacing-sm);margin-inline:var(--calcite-spacing-sm);display:flex}.esri-directions__add-stop-button{margin-inline-end:var(--calcite-spacing-xs)}.esri-directions__departure-time{--calcite-label-margin-bottom: 0}.esri-directions__departure-time-options{margin-bottom:var(--calcite-spacing-sm);display:flex}.esri-directions__departure-time-options calcite-input-date-picker,.esri-directions__departure-time-options calcite-input-time-picker{flex:1}.esri-directions__directions-header{line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--2);flex-direction:column;display:flex}.esri-directions__header-stops{gap:var(--calcite-spacing-base) var(--calcite-spacing-xxs);font-size:var(--calcite-font-size--1);grid-template-columns:auto 1fr;margin-block-end:var(--calcite-spacing-base);display:grid}.esri-directions__directions-header-stop-name{text-overflow:ellipsis;color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-medium);overflow:hidden}.esri-directions__edit-footer{border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);padding:var(--calcite-spacing-md)}.esri-directions__edit-information-container{border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);background-color:var(--calcite-color-surface-1);padding:var(--calcite-spacing-md)}.esri-directions__edit-toolbar-container{margin:var(--calcite-spacing-md);flex-flow:column;align-items:flex-start;display:flex}.esri-directions__edit-toolbar{border-width:var(--calcite-border-width-sm);border-radius:var(--calcite-corner-radius-round);border-style:solid;border-color:var(--calcite-color-foreground-3);flex-flow:row;display:flex;overflow:hidden}.esri-directions__solve-route{border-inline-start:solid var(--calcite-border-width-sm) var(--calcite-color-border-3)}.esri-directions__flex-column{flex-direction:column;display:flex}.esri-directions__flex-row{flex-direction:row;display:flex}.esri-directions__label-emphasize{font-weight:var(--calcite-font-weight-medium)}.esri-directions__label-no-bottom-margin{--calcite-label-margin-bottom: 0}.esri-directions__margin-inline-medium{margin-inline:var(--calcite-spacing-md)}.esri-directions__padding-medium{padding:var(--calcite-spacing-md)}.esri-directions__route-item{margin:var(--calcite-spacing-md);border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-round);flex:1 0 auto;width:auto;margin-block-start:var(--calcite-spacing-sm);display:flex;overflow:hidden}.esri-directions__route-item-button{background-color:transparent;padding:var(--calcite-spacing-sm) var(--calcite-spacing-md);text-align:unset;font-family:var(--calcite-font-family);border:none;flex:1 0 auto;align-items:center;margin:0;padding-inline-end:var(--calcite-spacing-xs);display:flex;calcite-icon{color:var(--calcite-action-text-color)}}.esri-directions__route-item-button:hover{background-color:var(--calcite-color-foreground-2);cursor:pointer}.esri-directions__route-item-button-content{flex-direction:column;flex:1 0 auto;display:flex}.esri-directions__route-item-label{line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-md);font-weight:var(--calcite-font-weight-medium)}.esri-directions__route-item-description{line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-regular)}.esri-directions__optimize-section{--calcite-block-section-header-text-color: var(--calcite-color-text-1)}.esri-directions__optimize-switches{cursor:pointer;margin-inline-start:var(--calcite-spacing-md)}.esri-directions__panel-header-action{align-items:center;display:flex}.esri-directions__primary-flow-item{flex-flow:column;flex:auto;justify-content:flex-start;align-items:stretch;display:flex;overflow:visible}.esri-directions__primary-footer{border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);padding:var(--calcite-spacing-md)}.esri-directions__primary-footer-centered{border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);padding:var(--calcite-spacing-md);flex-flow:column wrap;align-items:center;display:flex}.esri-directions__primary-footer-loader{--calcite-loader-spacing: 0;margin-top:var(--calcite-spacing-md);margin-bottom:var(--calcite-spacing-md)}.esri-directions__save-error{flex-direction:column;align-items:center;display:flex}.esri-directions__save-error-icon{margin-top:calc(var(--calcite-spacing-lg) * 3);margin-bottom:var(--calcite-spacing-xxs);color:var(--calcite-color-status-danger)}.esri-directions__save-error-label{margin-inline:var(--calcite-spacing-sm)}.esri-directions__save-process-loader{padding-top:calc(var(--calcite-spacing-lg) * 3);padding-bottom:calc(var(--calcite-spacing-lg) * 2)}.esri-directions__selected-feature-container{margin-inline:var(--calcite-spacing-md);height:100px;overflow-y:auto}.esri-directions__separator{margin:var(--calcite-spacing-md) 0;background-color:var(--calcite-color-border-3);height:var(--calcite-border-width-sm)}.esri-directions__stop-item .esri-search{width:auto}.esri-directions__print-document{box-sizing:border-box;z-index:var(--calcite-z-index-overlay);background-color:var(--calcite-color-foreground-1);width:100%;height:100%;position:fixed;top:0;left:0;overflow-y:scroll}.esri-directions__print-body{padding-inline:var(--calcite-spacing-md);flex-direction:column;display:flex}.esri-directions__print-header{margin-bottom:var(--calcite-spacing-lg);border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);align-items:center;display:flex}.esri-directions__print-header-label{padding-block:var(--calcite-spacing-sm);line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-bold);flex-direction:column;flex-grow:1;display:flex}.esri-directions__print-section{margin-top:var(--calcite-spacing-md);flex-direction:column;display:flex}.esri-directions__print-header-buttons{padding-inline-end:var(--calcite-spacing-md);display:flex}.esri-directions__print--avoid-page-break{break-inside:avoid}@media print{body.esri-directions__print-media{margin:0;padding:0}body.esri-directions__print-media>:not(div.esri-directions__print-document){display:none}}@media print{.esri-directions__print-document{height:auto;position:static;overflow:visible}.esri-directions__print--hide-on-print{display:none}}`,_=p(u),t="map-components:arcgis-directions",o=class extends n{constructor(){super(...arguments),this.widget=_(this),this.viewModel=this.widget.viewModel,this.view=this.widget.view,this.apiKey=this.widget.apiKey,this.autoDestroyDisabled=!1,this.goToOverride=this.widget.goToOverride,this.headingLevel=this.widget.headingLevel,this.hideLayerDetails=this.widget.visibleElements.layerDetails,this.hidePrintButton=this.widget.visibleElements.printButton,this.hideSaveAsButton=this.widget.visibleElements.saveAsButton,this.hideSaveButton=this.widget.visibleElements.saveButton,this.icon=this.widget.icon,this.label=this.widget.label,this.lastRoute=this.widget.lastRoute,this.layer=this.widget.layer,this.mapLayerId=h(this,e=>{e&&(e.type==="route"?this.layer=e:s("warn",this,`${t} - layer with id ${this.mapLayerId} is not a valid RouteLayer`))}),this.maxStops=this.widget.maxStops,this.searchProperties=this.widget.searchProperties,this.state=this.viewModel.state,this.unit=this.widget.unit,this.useDefaultRouteLayer=!1,this.arcgisPropertyChange=d()("lastRoute","state"),this.arcgisReady=c()}static{this.properties={view:0,apiKey:1,autoDestroyDisabled:5,autoSolveOnEditActive:5,goToOverride:0,headingLevel:9,hideLayerDetails:5,hidePrintButton:5,hideSaveAsButton:5,hideSaveButton:5,icon:1,label:1,lastRoute:32,layer:0,mapLayerId:1,maxStops:9,referenceElement:1,routeLayerItemId:1,searchProperties:0,state:32,unit:1,useDefaultRouteLayer:5}}static{this.styles=v}get autoSolveOnEditActive(){return this.viewModel.autoSolveOn.includes("active")}set autoSolveOnEditActive(e){let{autoSolveOn:i}=this.viewModel;if(e)i.includes("active")||i.push("active");else{let r=i.indexOf("active");r!==-1&&i.splice(r,1)}}async destroy(){await this.manager.destroy()}async getDirections(){if(this.widget?.viewModel?.state!=="ready")throw new Error(`${t} - component not ready to get directions`);return await this.widget?.getDirections()}async save(){if(this.widget?.viewModel?.state!=="ready")throw new Error(`${t} - component not ready to save directions`);return await this.widget?.save()}async saveAs(e,i){if(this.widget?.viewModel?.state!=="ready")throw new Error(`${t} - component not ready to save directions as a Portal Item`);return await this.widget?.saveAs(e,i)}async zoomToRoute(){if(this.widget?.viewModel?.state!=="ready")throw new Error(`${t} - component not ready to zoom to route`);this.widget?.zoomToRoute()}willUpdate(e){if(e.has("routeLayerItemId")){let i=this.routeLayerItemId;if(g(i)&&!this.useDefaultRouteLayer){let{layer:r}=this;r&&this.widget.view?.map?.remove(r),this._setDefaultLayer()}else i&&this.widget&&(this.layer=new m({portalItem:{id:i}}),this.widget.view?.map?.add(this.layer))}e.has("useDefaultRouteLayer")&&this._setDefaultLayer()}async startEditing(){if(this.widget?.viewModel?.state!=="ready")throw new Error(`${t} - component not ready to start editing`);this.widget.viewModel.startEditing()}async stopEditing(){if(this.widget?.viewModel?.state!=="ready")throw new Error(`${t} - component not ready to stop editing`);this.widget.viewModel.stopEditing()}_setDefaultLayer(){this.useDefaultRouteLayer&&!this.routeLayerItemId&&(this.layer=new m,f(()=>this.widget.view,()=>this.widget.view?.map?.add(this.layer),{once:!0}))}};l("arcgis-directions",o);return o},"core/reactiveUtils","layers/RouteLayer","widgets/Directions",b,e,f,g,h)
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import h from"./HZX7MSQG.js";import g from"./3YXCLF3K.js";import f from"./FZWFKZLW.js";import e from"./JBHRVHGS.js";import{h as d}from"./JAZGNQRP.js";import"./Z5C6UBYP.js";import b from"./7V7IKYJG.js";import"./QUZTFUWM.js";import"./WQMZ7BDQ.js";import{P as n,X as l,a,p as s,x as c}from"./EKR2SAT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:f},m,u,{b:g},,,p,h])=>{var v=a`.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__heading{word-break:break-word}.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}.esri-search{flex-flow:row;justify-content:center;align-items:center;width:240px;display:flex}.esri-search__dropdown{--calcite-color-border-1: var(--calcite-color-border-input);--calcite-dropdown-width: 240px;width:31px}.esri-search__autocomplete{flex:1}.esri-search__container{flex-flow:row;flex:1 0 100%;align-items:stretch;display:flex;position:relative}.esri-search__form{flex-flow:row;flex:1 0;align-items:stretch;margin:0;padding:0;display:flex}.esri-search-result-renderer calcite-block,.esri-search-result-renderer calcite-block[expanded]{margin-block:0;border:0;margin-block-start:var(--calcite-spacing-md)}.esri-search__submit-button{position:absolute;margin:-1px;border-width:0;padding:0;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0,0,0,0)}:host{display:flex}.esri-directions{display:flex;flex:1 1 auto;overflow:hidden}.esri-directions calcite-flow-item{--calcite-color-background: var(--calcite-color-foreground-1)}.esri-directions calcite-flow{z-index:1;position:relative}.esri-directions__accordion{--calcite-accordion-border-color: transparent}.esri-directions__stop-container{--calcite-list-border-color: transparent;--calcite-list-background-color-hover: var(--calcite-color-foreground-1);margin-block-start:var(--calcite-spacing-sm);display:flex}.esri-directions__stop-list{flex:auto}.esri-directions__action-container{margin-top:var(--calcite-spacing-sm);margin-inline:var(--calcite-spacing-sm);display:flex}.esri-directions__add-stop-button{margin-inline-end:var(--calcite-spacing-xs)}.esri-directions__departure-time{--calcite-label-margin-bottom: 0}.esri-directions__departure-time-options{margin-bottom:var(--calcite-spacing-sm);display:flex}.esri-directions__departure-time-options calcite-input-date-picker,.esri-directions__departure-time-options calcite-input-time-picker{flex:1}.esri-directions__directions-header{line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--2);flex-direction:column;display:flex}.esri-directions__header-stops{gap:var(--calcite-spacing-base) var(--calcite-spacing-xxs);font-size:var(--calcite-font-size--1);grid-template-columns:auto 1fr;margin-block-end:var(--calcite-spacing-base);display:grid}.esri-directions__directions-header-stop-name{text-overflow:ellipsis;color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-medium);overflow:hidden}.esri-directions__edit-footer{border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);padding:var(--calcite-spacing-md)}.esri-directions__edit-information-container{border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);background-color:var(--calcite-color-surface-1);padding:var(--calcite-spacing-md)}.esri-directions__edit-toolbar-container{margin:var(--calcite-spacing-md);flex-flow:column;align-items:flex-start;display:flex}.esri-directions__edit-toolbar{border-width:var(--calcite-border-width-sm);border-radius:var(--calcite-corner-radius-round);border-style:solid;border-color:var(--calcite-color-foreground-3);flex-flow:row;display:flex;overflow:hidden}.esri-directions__solve-route{border-inline-start:solid var(--calcite-border-width-sm) var(--calcite-color-border-3)}.esri-directions__flex-column{flex-direction:column;display:flex}.esri-directions__flex-row{flex-direction:row;display:flex}.esri-directions__label-emphasize{font-weight:var(--calcite-font-weight-medium)}.esri-directions__label-no-bottom-margin{--calcite-label-margin-bottom: 0}.esri-directions__margin-inline-medium{margin-inline:var(--calcite-spacing-md)}.esri-directions__padding-medium{padding:var(--calcite-spacing-md)}.esri-directions__route-item{margin:var(--calcite-spacing-md);border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-round);flex:1 0 auto;width:auto;margin-block-start:var(--calcite-spacing-sm);display:flex;overflow:hidden}.esri-directions__route-item-button{background-color:transparent;padding:var(--calcite-spacing-sm) var(--calcite-spacing-md);text-align:unset;font-family:var(--calcite-font-family);border:none;flex:1 0 auto;align-items:center;margin:0;padding-inline-end:var(--calcite-spacing-xs);display:flex;calcite-icon{color:var(--calcite-action-text-color)}}.esri-directions__route-item-button:hover{background-color:var(--calcite-color-foreground-2);cursor:pointer}.esri-directions__route-item-button-content{flex-direction:column;flex:1 0 auto;display:flex}.esri-directions__route-item-label{line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-md);font-weight:var(--calcite-font-weight-medium)}.esri-directions__route-item-description{line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-regular)}.esri-directions__optimize-section{--calcite-block-section-header-text-color: var(--calcite-color-text-1)}.esri-directions__optimize-switches{cursor:pointer;margin-inline-start:var(--calcite-spacing-md)}.esri-directions__panel-header-action{align-items:center;display:flex}.esri-directions__primary-flow-item{flex-flow:column;flex:auto;justify-content:flex-start;align-items:stretch;display:flex;overflow:visible}.esri-directions__primary-footer{border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);padding:var(--calcite-spacing-md)}.esri-directions__primary-footer-centered{border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);padding:var(--calcite-spacing-md);flex-flow:column wrap;align-items:center;display:flex}.esri-directions__primary-footer-loader{--calcite-loader-spacing: 0;margin-top:var(--calcite-spacing-md);margin-bottom:var(--calcite-spacing-md)}.esri-directions__save-error{flex-direction:column;align-items:center;display:flex}.esri-directions__save-error-icon{margin-top:calc(var(--calcite-spacing-lg) * 3);margin-bottom:var(--calcite-spacing-xxs);color:var(--calcite-color-status-danger)}.esri-directions__save-error-label{margin-inline:var(--calcite-spacing-sm)}.esri-directions__save-process-loader{padding-top:calc(var(--calcite-spacing-lg) * 3);padding-bottom:calc(var(--calcite-spacing-lg) * 2)}.esri-directions__selected-feature-container{margin-inline:var(--calcite-spacing-md);height:100px;overflow-y:auto}.esri-directions__separator{margin:var(--calcite-spacing-md) 0;background-color:var(--calcite-color-border-3);height:var(--calcite-border-width-sm)}.esri-directions__stop-item .esri-search{width:auto}.esri-directions__print-document{box-sizing:border-box;z-index:var(--calcite-z-index-overlay);background-color:var(--calcite-color-foreground-1);width:100%;height:100%;position:fixed;top:0;left:0;overflow-y:scroll}.esri-directions__print-body{padding-inline:var(--calcite-spacing-md);flex-direction:column;display:flex}.esri-directions__print-header{margin-bottom:var(--calcite-spacing-lg);border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);align-items:center;display:flex}.esri-directions__print-header-label{padding-block:var(--calcite-spacing-sm);line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-bold);flex-direction:column;flex-grow:1;display:flex}.esri-directions__print-section{margin-top:var(--calcite-spacing-md);flex-direction:column;display:flex}.esri-directions__print-header-buttons{padding-inline-end:var(--calcite-spacing-md);display:flex}.esri-directions__print--avoid-page-break{break-inside:avoid}@media print{body.esri-directions__print-media{margin:0;padding:0}body.esri-directions__print-media>:not(div.esri-directions__print-document){display:none}}@media print{.esri-directions__print-document{height:auto;position:static;overflow:visible}.esri-directions__print--hide-on-print{display:none}}`,_=p(u),t="map-components:arcgis-directions",o=class extends n{constructor(){super(...arguments),this.widget=_(this),this.viewModel=this.widget.viewModel,this.view=this.widget.view,this.apiKey=this.widget.apiKey,this.autoDestroyDisabled=!1,this.goToOverride=this.widget.goToOverride,this.headingLevel=this.widget.headingLevel,this.hideLayerDetails=this.widget.visibleElements.layerDetails,this.hidePrintButton=this.widget.visibleElements.printButton,this.hideSaveAsButton=this.widget.visibleElements.saveAsButton,this.hideSaveButton=this.widget.visibleElements.saveButton,this.icon=this.widget.icon,this.label=this.widget.label,this.lastRoute=this.widget.lastRoute,this.layer=this.widget.layer,this.mapLayerId=h(this,e=>{e&&(e.type==="route"?this.layer=e:s("warn",this,`${t} - layer with id ${this.mapLayerId} is not a valid RouteLayer`))}),this.maxStops=this.widget.maxStops,this.searchProperties=this.widget.searchProperties,this.state=this.viewModel.state,this.unit=this.widget.unit,this.useDefaultRouteLayer=!1,this.arcgisPropertyChange=d()("lastRoute","state"),this.arcgisReady=c()}static{this.properties={view:0,apiKey:1,autoDestroyDisabled:5,autoSolveOnEditActive:5,goToOverride:0,headingLevel:9,hideLayerDetails:5,hidePrintButton:5,hideSaveAsButton:5,hideSaveButton:5,icon:1,label:1,lastRoute:32,layer:0,mapLayerId:1,maxStops:9,referenceElement:1,routeLayerItemId:1,searchProperties:0,state:32,unit:1,useDefaultRouteLayer:5}}static{this.styles=v}get autoSolveOnEditActive(){return this.viewModel.autoSolveOn.includes("active")}set autoSolveOnEditActive(e){let{autoSolveOn:i}=this.viewModel;if(e)i.includes("active")||i.push("active");else{let r=i.indexOf("active");r!==-1&&i.splice(r,1)}}async destroy(){await this.manager.destroy()}async getDirections(){if(this.widget?.viewModel?.state!=="ready")throw new Error(`${t} - component not ready to get directions`);return await this.widget?.getDirections()}async save(){if(this.widget?.viewModel?.state!=="ready")throw new Error(`${t} - component not ready to save directions`);return await this.widget?.save()}async saveAs(e,i){if(this.widget?.viewModel?.state!=="ready")throw new Error(`${t} - component not ready to save directions as a Portal Item`);return await this.widget?.saveAs(e,i)}async zoomToRoute(){if(this.widget?.viewModel?.state!=="ready")throw new Error(`${t} - component not ready to zoom to route`);this.widget?.zoomToRoute()}willUpdate(e){if(e.has("routeLayerItemId")){let i=this.routeLayerItemId;if(g(i)&&!this.useDefaultRouteLayer){let{layer:r}=this;r&&this.widget.view?.map?.remove(r),this._setDefaultLayer()}else i&&this.widget&&(this.layer=new m({portalItem:{id:i}}),this.widget.view?.map?.add(this.layer))}e.has("useDefaultRouteLayer")&&this._setDefaultLayer()}async startEditing(){if(this.widget?.viewModel?.state!=="ready")throw new Error(`${t} - component not ready to start editing`);this.widget.viewModel.startEditing()}async stopEditing(){if(this.widget?.viewModel?.state!=="ready")throw new Error(`${t} - component not ready to stop editing`);this.widget.viewModel.stopEditing()}_setDefaultLayer(){this.useDefaultRouteLayer&&!this.routeLayerItemId&&(this.layer=new m,f(()=>this.widget.view,()=>this.widget.view?.map?.add(this.layer),{once:!0}))}};l("arcgis-directions",o);return o},"core/reactiveUtils","layers/RouteLayer","widgets/Directions",b,e,f,g,h)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import t from"./GNSNEUMI.js";import"./53OXTCE6.js";import{a as g}from"./4L43F7HU.js";import s from"./VDEMMP33.js";import r from"./Z2UUXST4.js";import{a as j,b as q,c as z,g as F,h as J,j as K,k as Q,m,n as T}from"./ZCFWKPXL.js";import{a as H}from"./DUMHDAYP.js";import{a as b}from"./PIDNZKSJ.js";import o from"./WBBTZNZU.js";import n from"./HU57LQOA.js";import l from"./RUYAWRPV.js";import"./WJQUE4DR.js";import i from"./BQBWXR6P.js";import{a as k}from"./ZSPYPXBY.js";import{a as w}from"./L5IRXOCJ.js";import{a as G}from"./SIFBGT4D.js";import h from"./P3PXDT5V.js";import e from"./ALVAGE57.js";import c from"./HPWF3IQV.js";import{h as B}from"./IFR4IYSI.js";import"./7VDBR3SK.js";import a from"./QPSAD5DG.js";import"./FIZMK7GS.js";import{e as N}from"./ZKWI43WZ.js";import{B as P,N as L,O as f,P as R,R as v,U as E,V as M,X as x,b as d,x as p}from"./3UMLR76Y.js";import"./TAVTDQ6S.js";export default $arcgis.t(([re,u,{on:A,watch:te},,,,S,U,,,,,{e:V,h:W,k:X},{a:Y,b:Z,c:ee}])=>{var ie="nested",le=U(re),O=class extends R{constructor(){super(...arguments),this._lastDragDetail=null,this._rootListRef=L(),this._layerFlowItemRef=L(),this._panelFlowItemRef=L(),this._selectedDragItemLayerUid=null,this._rootGroupUid=`operational-${P()}`,this._openedLayersController=null,this.messages=k(),this._canMove=({dragEl:e,fromEl:t,toEl:i},a)=>{let s=a==="pull"?this.listItemCanGiveFunction:this.listItemCanReceiveFunction,r=m(e,this.operationalItems);if(!r?.sortable)return!1;let l=this._resolveListContainer(t),o=this._resolveListContainer(i),n=this._getContainerItem(l),c=T(l),y=this._getContainerItem(o),_=T(o),$=!!c&&!!_&&c===_,I={selected:r,from:n,to:y},C=l?.group,h=o?.group,se=n?.layer?.type??"",ae=y?.layer?.type??"",D=new Set(["map-image","catalog","knowledge-graph"]);return C&&h&&typeof s=="function"?s(I):$&&!D.has(se)&&!D.has(ae)&&r?.layer?.type!=="sublayer"},this._onCatalogOpen=e=>{this.openedLayers.push(e.layer?.parent)},this._onTablesOpen=e=>{this.openedLayers.push(e.layer)},this._clearActiveItem=()=>{this._activeItem=null},this._setCurrentActiveItem=e=>{this._activeItem=e},this._setActiveItem=e=>{if(this.visibilityAppearance!=="default")return;let t=Array.from(e.composedPath()).find(a=>a.classList?.contains(g.item)),i=m(t,this.operationalItems);this._activeItem=i},this.viewModel=le(this),this.arcgisClose=G(this),this._activeItem=null,this._onTooltipReferenceChange=(e,t)=>{t?this._tooltipReferenceMap.set(e,t):this._tooltipReferenceMap.delete(e)},this._onSelectedDragItemLayerUidChange=e=>{this._selectedDragItemLayerUid=e},this._onTriggerAction=(e,t)=>{this.triggerAction(e,t)},this._tooltipReferenceMap=new Map,this._layerListMap=new Map,this.layerTablesEnabled=new u(["knowledge-graph"]),this.mapImageOptions=null,this.openedLayerLists=new u,this.tileOptions=null,this.autoDestroyDisabled=!1,this.closed=!1,this.collapsed=!1,this.dragEnabled=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.hideCatalogLayerList=!1,this.hideNoFilterResultsNotice=!1,this.hideNoItemsNotice=!1,this.hideStatusIndicators=!1,this.icon="layers",this.layerTablesAvailable=new u(["knowledge-graph"]),this.listItemCreatedFunction=this.viewModel.listItemCreatedFunction,this.listModeDisabled=this.viewModel.listModeDisabled,this.minDragEnabledItems=z,this.minFilterItems=q,this.openedLayers=new u,this.operationalItems=this.viewModel.operationalItems,this.selectedItems=new u,this.selectionMode="none",this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.showFilter=!1,this.showHeading=!1,this.showTemporaryLayerIndicators=!1,this.state=this.viewModel.state,this.view=this.viewModel.view,this.visibilityAppearance="default",this.arcgisFilterChange=p(),this.arcgisOpenedLayersChange=p(),this.arcgisPropertyChange=B()("state"),this.arcgisReady=p(),this.arcgisSelectedItemsChange=p(),this.arcgisTriggerAction=S(()=>this.viewModel,"trigger-action")}static{this.properties={_catalogLayerList:16,_tableList:16,_tooltipReferenceMap:16,_layerListMap:16,_totalItems:16,_visibleItems:16,_openedPanelItems:16,_dragEnabled:16,_filterEnabled:16,layerTablesEnabled:16,mapImageOptions:16,openedLayerLists:16,tileOptions:16,_renderedOpenLayerFlowItems:16,autoDestroyDisabled:5,catalogLayerList:32,catalogOptions:0,closed:5,collapsed:5,dragEnabled:5,filterPlaceholder:1,filterPredicate:0,filterText:1,headingLevel:9,hideCatalogLayerList:5,hideNoFilterResultsNotice:5,hideNoItemsNotice:5,hideStatusIndicators:5,icon:1,knowledgeGraphOptions:0,label:1,layerTablesAvailable:0,listItemCanGiveFunction:0,listItemCanReceiveFunction:0,listItemCreatedFunction:0,listModeDisabled:5,messageOverrides:0,minDragEnabledItems:9,minFilterItems:9,openedLayers:32,operationalItems:0,referenceElement:1,selectedItems:0,selectionMode:1,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,showHeading:5,showTemporaryLayerIndicators:5,state:32,tableList:32,view:0,visibilityAppearance:1}}static{this.styles=[ee,Z]}get _totalItems(){return this.viewModel.operationalItems.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length}get _visibleItems(){return this.operationalItems?.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleItems.flatten(e=>e.children).filter(e=>!e.hidden&&e.panel?.open&&!e.panel.disabled&&e.panel.flowEnabled&&(!W(e)||V(e)))}get _dragEnabled(){return this._totalItems>=this.minDragEnabledItems&&this.dragEnabled}get _filterEnabled(){return this._totalItems>=this.minFilterItems&&this.showFilter}get _renderedOpenLayerFlowItems(){let{openedLayers:e}=this;return e.toArray().map((t,i)=>this._renderLayerFlowItem(t,i===e.length-1))}get catalogLayerList(){return this._catalogLayerList}get tableList(){return this._tableList}async destroy(){await this.manager.destroy(),this._destroyOpenedLayerLists(),this._tooltipReferenceMap.clear()}loaded(){this.manager.onLifecycle(()=>[A(()=>this.openedLayers,"change",()=>{this._handleOpenedLayersChange()},{initial:!0}),A(()=>this.viewModel.operationalItems,"change",()=>F(this.selectedItems),{initial:!0}),te(()=>this.operationalItems.flatten(e=>e.children).map(e=>e.uid).join(","),()=>{F(this.selectedItems),this.requestUpdate()},{initial:!0}),A(()=>this.selectedItems,"change",()=>this.arcgisSelectedItemsChange.emit()),te(()=>[this.filterPredicate,this._rootListRef.value],()=>J(this._rootListRef.value,this.filterPredicate,this.operationalItems))])}triggerAction(e,t){return this.viewModel.triggerAction(e,t)}_resolveListContainer(e){return e?e.matches("calcite-list")?e:e.closest("calcite-list[data-item]")||(this._rootListRef.value?.contains(e)?this._rootListRef.value:null):null}_getContainerItem(e){let t=e?.getAttribute("data-item");return t?this._findItemByUid(t):null}_findItemByUid(e){let t=this.operationalItems?.toArray()??[];for(;t.length;){let i=t.shift();if(!i)continue;if(i.uid===e)return i;let a=i.children?.toArray()??[];t.push(...a)}return null}async _createFlowList(e,t){let{_layerListMap:i}=this,a=i.get(e);if(a)return a;let s=e.type==="catalog"?await this._createCatalogLayerList(e):await this._createTableList(e);return t.aborted||i.set(e,s),s}async _handleOpenedLayersChange(){let{_layerListMap:e,openedLayers:t,openedLayerLists:i}=this;this._openedLayersController?.abort();let a=new AbortController,{signal:s}=a;this._openedLayersController=a,e.forEach((o,n)=>{t.includes(n)||(o?.destroy?.(),e.delete(n))});let r=await Promise.all(t.map(o=>this._createFlowList(o,s)));if(s.aborted)return;i.removeAll(),i.addMany(r);let l=i.at(-1);l?"catalogLayer"in l?(this._catalogLayerList=l,this._tableList=void 0):(this._catalogLayerList=void 0,this._tableList=l):(this._catalogLayerList=void 0,this._tableList=void 0),this.arcgisOpenedLayersChange.emit()}_destroyOpenedLayerLists(){this.openedLayerLists.destroyAll(),this.openedLayers.removeAll(),this._layerListMap.clear()}async _createCatalogLayerList(e){let{headingLevel:t,catalogOptions:i,filterPlaceholder:a,listItemCreatedFunction:s,minFilterItems:r,selectionMode:l,visibilityAppearance:o}=this;return M(d`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${i?.filterPlaceholder??a} .listItemCreatedFunction=${i?.listItemCreatedFunction??s} .minFilterItems=${i?.minFilterItems??r} .selectionMode=${i?.selectionMode??l} .visibilityAppearance=${i?.visibilityAppearance??o} .showErrors=${i?.showErrors??this.showErrors} .showFilter=${i?.showFilter??this.showFilter} .hideStatusIndicators=${i?.hideStatusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${i?.showTemporaryLayerIndicators??this.showTemporaryLayerIndicators} .messageOverrides=${this.messageOverrides} @arcgisReady=${n=>n.stopPropagation()} .catalogLayer=${e} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`)}_getTableListParams(e){switch(e.type){case"knowledge-graph":return{...this.knowledgeGraphOptions,tables:e.tables};case"map-image":return{...this.mapImageOptions,tables:e.subtables};case"tile":return{...this.tileOptions,tables:e.subtables};default:return null}}async _createTableList(e){let{headingLevel:t,selectionMode:i,dragEnabled:a}=this,s=this._getTableListParams(e);return M(d`<arcgis-table-list-next .headingLevel=${s?.headingLevel??t} .selectionMode=${s?.selectionMode??i} .dragEnabled=${s?.dragEnabled??a} .collapsed=${s?.collapsed} .filterPlaceholder=${s?.filterPlaceholder} .filterText=${s?.filterText} .icon=${s?.icon??void 0} .label=${s?.label??void 0} .listItemCreatedFunction=${s?.listItemCreatedFunction} .messageOverrides=${this.messageOverrides} .tables=${s?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${r=>r.stopPropagation()}></arcgis-table-list-next>`)}_handlePanelFlowItemBack(e){e.open=!1}_moveLayerFromChildList({toEl:e,fromEl:t,dragEl:i,newIndex:a}){let s=this._resolveListContainer(e),r=this._resolveListContainer(t),l=m(i,this.operationalItems),o=this._getContainerItem(s),n=this._getContainerItem(r);a==null||!l||(this.viewModel.moveItem(l,n,o,a),X(this,l.uid,c=>c!==i&&this._resolveListContainer(c.parentElement)===s))}_onCalciteListDragEnd(e){let{fromEl:t,toEl:i,dragEl:a,oldIndex:s}=e;if(t!==i){a.remove();return}s==null||!t||!a||t.insertBefore(a,t.children[s])}_onCalciteListOrderChange(e){let{_lastDragDetail:t}=this,{dragEl:i,newIndex:a}=e,s=this._resolveListContainer(e.fromEl),r=this._resolveListContainer(e.toEl),l=t?.newIndex===a&&t?.dragEl===i&&t?.toEl===r&&t?.fromEl===s;if(!(!s||!r||l)){if(this._lastDragDetail={...e,fromEl:s,toEl:r},this._selectedDragItemLayerUid=i.value,s===r){let o=Array.from(s.children).filter(n=>n?.matches("calcite-list-item")).map(n=>n.value.layer?.uid??"");this._sortLayers(s,o);return}this._moveLayerFromChildList({toEl:r,fromEl:s,dragEl:i,newIndex:a})}}_sortLayers(e,t){if(e)if(e===this._rootListRef.value)K(this.el.view?.map?.layers,t);else{let i=m(e,this.operationalItems);if(!i)return;Q(i,t)}}_handleCalciteListChange(e){let{selectionMode:t,selectedItems:i}=this;if(t==="none")return;let a=e.target.selectedItems.map(s=>m(s,this.operationalItems)).filter(Boolean);i.removeAll(),i.addMany(a)}render(){let{state:e}=this,t={[w.hidden]:e==="loading",[w.disabled]:e==="disabled"};return d`<div class=${v(N(w.widget,t))}>${this._visibleItems?.length?this._renderItemTooltips():null}${this._renderItems()}</div>`}_renderItemTooltip(e){let{_tooltipReferenceMap:t,messages:i}=this;return e?d`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(e.layer?.uid??"")}>${i.layerIncompatibleTooltip}</calcite-tooltip>`:null}_renderItemTooltipNodes(e){if(e.incompatible)return this._renderItemTooltip(e);let t=e.children?.filter(i=>!i.hidden).toArray().map(i=>this._renderItemTooltipNodes(i))??[];return t.length?t:null}_renderItemTooltips(){return this._visibleItems?.toArray().map(e=>this._renderItemTooltipNodes(e))}_renderNoItemsMessage(){return d`<div slot=message>${this.messages.noItemsToDisplay}</div>`}_renderNoItems(){return this.hideNoItemsNotice?null:d`<div class=${v(g.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`}_renderLayerFlowItem(e,t){let{messages:i,openedLayers:a}=this,s=e.title||this.messages.untitledLayer;return b(e?.uid??s,d`<calcite-flow-item data-layer-uid=${e?.uid??""??E} .description=${s} .heading=${i[e.type==="catalog"?"catalogLayers":"tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${r=>{r.preventDefault(),a.pop(),a.at(-1)&&this._layerFlowItemRef.value?.setFocus()}} ${f(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`)}_renderPanelFlowItems(){let{_openedPanelItems:e,openedLayers:t}=this;return H(e.toArray(),i=>i.uid,(i,a)=>{let{panel:s,title:r}=i,l=()=>this._handlePanelFlowItemBack(s);return d`<calcite-flow-item .description=${r} .heading=${s.title} .headingLevel=${this.headingLevel} .selected=${!t.length&&a===e.length-1} @calciteFlowItemBack=${o=>{o.preventDefault(),l()}} ${f(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${i} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${l} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`})}_renderItems(){let{collapsed:e,_visibleItems:t,_openedPanelItems:i,_filterEnabled:a,_rootGroupUid:s,showCloseButton:r,showCollapseButton:l,showHeading:o,_dragEnabled:n,selectionMode:c,filterText:y,openedLayers:_,filterPlaceholder:$,messages:I}=this,C=[d`<calcite-flow-item .closable=${r} .closed=${this.closed} .collapsed=${e} .collapsible=${l} .heading=${o?I.componentLabel:void 0} .headingLevel=${this.headingLevel} .selected=${!_.length&&!i.length} @calciteFlowItemClose=${()=>this.closed=!1}>${t?.length?d`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${h=>this._canMove(h,"pull")} .canPut=${h=>this._canMove(h,"put")} data-layer-type=${s??E} .displayMode=${ie} .dragEnabled=${n} .filterEnabled=${a} .filterPlaceholder=${$} .filterProps=${j} .filterText=${a?y:""} .group=${s} .label=${I.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${c} @calciteListChange=${this._handleCalciteListChange} @calciteListFilter=${h=>{this.filterText=h.currentTarget?.filterText??"",this.arcgisFilterChange.emit()}} @calciteListOrderChange=${h=>this._onCalciteListOrderChange(h.detail)} @calciteListDragEnd=${h=>this._onCalciteListDragEnd(h.detail)} ${f(this._rootListRef)}>${t.toArray().map(h=>this._renderItem(h))}${a&&!this.hideNoFilterResultsNotice?d`<div class=${v(g.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`:null}</calcite-list>`:this._renderNoItems()}</calcite-flow-item>`,this._renderPanelFlowItems(),this._renderedOpenLayerFlowItems];return this.closed?null:b("root-flow",d`<calcite-flow>${C}</calcite-flow>`)}_renderItem(e,t,i){return b(e.uid,Y({activeItem:this._activeItem,canMove:this._canMove,css:g,displayMode:ie,dragEnabled:this.dragEnabled,hideStatusIndicators:this.hideStatusIndicators,hideCatalogLayerList:this.hideCatalogLayerList,item:e,messages:this.messages,layerTablesEnabled:this.layerTablesEnabled,listModeDisabled:this.viewModel.listModeDisabled,operationalItems:this.operationalItems,parent:t,parentTitles:i,rootGroupUid:this._rootGroupUid,selectedDragItemLayerUid:this._selectedDragItemLayerUid,selectedItems:this.selectedItems,selectionMode:this.selectionMode,setCurrentActiveItem:this._setCurrentActiveItem,showTemporaryLayerIndicators:this.showTemporaryLayerIndicators,showCloseButton:this.showCloseButton,showCollapseButton:this.showCollapseButton,showErrors:this.showErrors,showHeading:this.showHeading,showFilter:this.showFilter,clearActiveItem:this._clearActiveItem,visibilityAppearance:this.visibilityAppearance,handleAction:this._onTriggerAction,handleCatalogOpen:this._onCatalogOpen,handleSelectedDragItemLayerUidChange:this._onSelectedDragItemLayerUidChange,handleTablesOpen:this._onTablesOpen,handleTooltipReferenceChange:this._onTooltipReferenceChange,view:this.view}))}};x("arcgis-layer-list-next",O);return O},"layerList/LayerListModel","core/Collection","core/reactiveUtils",a,c,e,h,i,l,n,o,r,s,t)
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import t from"./RZQNEEP6.js";import"./4TTVVGYW.js";import{a as g}from"./JCRPP54Z.js";import s from"./CROCDACG.js";import r from"./XJ6DZ6AN.js";import{a as j,b as q,c as z,g as F,h as J,j as K,k as Q,m,n as T}from"./FCNNRX3Q.js";import{a as H}from"./XAADUJ74.js";import{a as b}from"./KBHLE7HT.js";import o from"./IFMBHZHX.js";import n from"./TMJX7DFH.js";import l from"./DSDPDMLP.js";import"./VJVKFKSG.js";import i from"./CQQM24VF.js";import{a as k}from"./WEAGLY7B.js";import{a as w}from"./JD74LG7K.js";import{a as G}from"./YAEJKOYY.js";import h from"./AN3BGKZP.js";import e from"./FZWFKZLW.js";import c from"./JBHRVHGS.js";import{h as B}from"./JAZGNQRP.js";import"./Z5C6UBYP.js";import a from"./7V7IKYJG.js";import"./QUZTFUWM.js";import{e as N}from"./WQMZ7BDQ.js";import{B as P,N as L,O as f,P as R,R as v,U as E,V as M,X as x,b as d,x as p}from"./EKR2SAT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([re,u,{on:A,watch:te},,,,S,U,,,,,{e:V,h:W,k:X},{a:Y,b:Z,c:ee}])=>{var ie="nested",le=U(re),O=class extends R{constructor(){super(...arguments),this._lastDragDetail=null,this._rootListRef=L(),this._layerFlowItemRef=L(),this._panelFlowItemRef=L(),this._selectedDragItemLayerUid=null,this._rootGroupUid=`operational-${P()}`,this._openedLayersController=null,this.messages=k(),this._canMove=({dragEl:e,fromEl:t,toEl:i},a)=>{let s=a==="pull"?this.listItemCanGiveFunction:this.listItemCanReceiveFunction,r=m(e,this.operationalItems);if(!r?.sortable)return!1;let l=this._resolveListContainer(t),o=this._resolveListContainer(i),n=this._getContainerItem(l),c=T(l),y=this._getContainerItem(o),_=T(o),$=!!c&&!!_&&c===_,I={selected:r,from:n,to:y},C=l?.group,h=o?.group,se=n?.layer?.type??"",ae=y?.layer?.type??"",D=new Set(["map-image","catalog","knowledge-graph"]);return C&&h&&typeof s=="function"?s(I):$&&!D.has(se)&&!D.has(ae)&&r?.layer?.type!=="sublayer"},this._onCatalogOpen=e=>{this.openedLayers.push(e.layer?.parent)},this._onTablesOpen=e=>{this.openedLayers.push(e.layer)},this._clearActiveItem=()=>{this._activeItem=null},this._setCurrentActiveItem=e=>{this._activeItem=e},this._setActiveItem=e=>{if(this.visibilityAppearance!=="default")return;let t=Array.from(e.composedPath()).find(a=>a.classList?.contains(g.item)),i=m(t,this.operationalItems);this._activeItem=i},this.viewModel=le(this),this.arcgisClose=G(this),this._activeItem=null,this._onTooltipReferenceChange=(e,t)=>{t?this._tooltipReferenceMap.set(e,t):this._tooltipReferenceMap.delete(e)},this._onSelectedDragItemLayerUidChange=e=>{this._selectedDragItemLayerUid=e},this._onTriggerAction=(e,t)=>{this.triggerAction(e,t)},this._tooltipReferenceMap=new Map,this._layerListMap=new Map,this.layerTablesEnabled=new u(["knowledge-graph"]),this.mapImageOptions=null,this.openedLayerLists=new u,this.tileOptions=null,this.autoDestroyDisabled=!1,this.closed=!1,this.collapsed=!1,this.dragEnabled=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.hideCatalogLayerList=!1,this.hideNoFilterResultsNotice=!1,this.hideNoItemsNotice=!1,this.hideStatusIndicators=!1,this.icon="layers",this.layerTablesAvailable=new u(["knowledge-graph"]),this.listItemCreatedFunction=this.viewModel.listItemCreatedFunction,this.listModeDisabled=this.viewModel.listModeDisabled,this.minDragEnabledItems=z,this.minFilterItems=q,this.openedLayers=new u,this.operationalItems=this.viewModel.operationalItems,this.selectedItems=new u,this.selectionMode="none",this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.showFilter=!1,this.showHeading=!1,this.showTemporaryLayerIndicators=!1,this.state=this.viewModel.state,this.view=this.viewModel.view,this.visibilityAppearance="default",this.arcgisFilterChange=p(),this.arcgisOpenedLayersChange=p(),this.arcgisPropertyChange=B()("state"),this.arcgisReady=p(),this.arcgisSelectedItemsChange=p(),this.arcgisTriggerAction=S(()=>this.viewModel,"trigger-action")}static{this.properties={_catalogLayerList:16,_tableList:16,_tooltipReferenceMap:16,_layerListMap:16,_totalItems:16,_visibleItems:16,_openedPanelItems:16,_dragEnabled:16,_filterEnabled:16,layerTablesEnabled:16,mapImageOptions:16,openedLayerLists:16,tileOptions:16,_renderedOpenLayerFlowItems:16,autoDestroyDisabled:5,catalogLayerList:32,catalogOptions:0,closed:5,collapsed:5,dragEnabled:5,filterPlaceholder:1,filterPredicate:0,filterText:1,headingLevel:9,hideCatalogLayerList:5,hideNoFilterResultsNotice:5,hideNoItemsNotice:5,hideStatusIndicators:5,icon:1,knowledgeGraphOptions:0,label:1,layerTablesAvailable:0,listItemCanGiveFunction:0,listItemCanReceiveFunction:0,listItemCreatedFunction:0,listModeDisabled:5,messageOverrides:0,minDragEnabledItems:9,minFilterItems:9,openedLayers:32,operationalItems:0,referenceElement:1,selectedItems:0,selectionMode:1,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,showHeading:5,showTemporaryLayerIndicators:5,state:32,tableList:32,view:0,visibilityAppearance:1}}static{this.styles=[ee,Z]}get _totalItems(){return this.viewModel.operationalItems.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length}get _visibleItems(){return this.operationalItems?.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleItems.flatten(e=>e.children).filter(e=>!e.hidden&&e.panel?.open&&!e.panel.disabled&&e.panel.flowEnabled&&(!W(e)||V(e)))}get _dragEnabled(){return this._totalItems>=this.minDragEnabledItems&&this.dragEnabled}get _filterEnabled(){return this._totalItems>=this.minFilterItems&&this.showFilter}get _renderedOpenLayerFlowItems(){let{openedLayers:e}=this;return e.toArray().map((t,i)=>this._renderLayerFlowItem(t,i===e.length-1))}get catalogLayerList(){return this._catalogLayerList}get tableList(){return this._tableList}async destroy(){await this.manager.destroy(),this._destroyOpenedLayerLists(),this._tooltipReferenceMap.clear()}loaded(){this.manager.onLifecycle(()=>[A(()=>this.openedLayers,"change",()=>{this._handleOpenedLayersChange()},{initial:!0}),A(()=>this.viewModel.operationalItems,"change",()=>F(this.selectedItems),{initial:!0}),te(()=>this.operationalItems.flatten(e=>e.children).map(e=>e.uid).join(","),()=>{F(this.selectedItems),this.requestUpdate()},{initial:!0}),A(()=>this.selectedItems,"change",()=>this.arcgisSelectedItemsChange.emit()),te(()=>[this.filterPredicate,this._rootListRef.value],()=>J(this._rootListRef.value,this.filterPredicate,this.operationalItems))])}triggerAction(e,t){return this.viewModel.triggerAction(e,t)}_resolveListContainer(e){return e?e.matches("calcite-list")?e:e.closest("calcite-list[data-item]")||(this._rootListRef.value?.contains(e)?this._rootListRef.value:null):null}_getContainerItem(e){let t=e?.getAttribute("data-item");return t?this._findItemByUid(t):null}_findItemByUid(e){let t=this.operationalItems?.toArray()??[];for(;t.length;){let i=t.shift();if(!i)continue;if(i.uid===e)return i;let a=i.children?.toArray()??[];t.push(...a)}return null}async _createFlowList(e,t){let{_layerListMap:i}=this,a=i.get(e);if(a)return a;let s=e.type==="catalog"?await this._createCatalogLayerList(e):await this._createTableList(e);return t.aborted||i.set(e,s),s}async _handleOpenedLayersChange(){let{_layerListMap:e,openedLayers:t,openedLayerLists:i}=this;this._openedLayersController?.abort();let a=new AbortController,{signal:s}=a;this._openedLayersController=a,e.forEach((o,n)=>{t.includes(n)||(o?.destroy?.(),e.delete(n))});let r=await Promise.all(t.map(o=>this._createFlowList(o,s)));if(s.aborted)return;i.removeAll(),i.addMany(r);let l=i.at(-1);l?"catalogLayer"in l?(this._catalogLayerList=l,this._tableList=void 0):(this._catalogLayerList=void 0,this._tableList=l):(this._catalogLayerList=void 0,this._tableList=void 0),this.arcgisOpenedLayersChange.emit()}_destroyOpenedLayerLists(){this.openedLayerLists.destroyAll(),this.openedLayers.removeAll(),this._layerListMap.clear()}async _createCatalogLayerList(e){let{headingLevel:t,catalogOptions:i,filterPlaceholder:a,listItemCreatedFunction:s,minFilterItems:r,selectionMode:l,visibilityAppearance:o}=this;return M(d`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${i?.filterPlaceholder??a} .listItemCreatedFunction=${i?.listItemCreatedFunction??s} .minFilterItems=${i?.minFilterItems??r} .selectionMode=${i?.selectionMode??l} .visibilityAppearance=${i?.visibilityAppearance??o} .showErrors=${i?.showErrors??this.showErrors} .showFilter=${i?.showFilter??this.showFilter} .hideStatusIndicators=${i?.hideStatusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${i?.showTemporaryLayerIndicators??this.showTemporaryLayerIndicators} .messageOverrides=${this.messageOverrides} @arcgisReady=${n=>n.stopPropagation()} .catalogLayer=${e} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`)}_getTableListParams(e){switch(e.type){case"knowledge-graph":return{...this.knowledgeGraphOptions,tables:e.tables};case"map-image":return{...this.mapImageOptions,tables:e.subtables};case"tile":return{...this.tileOptions,tables:e.subtables};default:return null}}async _createTableList(e){let{headingLevel:t,selectionMode:i,dragEnabled:a}=this,s=this._getTableListParams(e);return M(d`<arcgis-table-list-next .headingLevel=${s?.headingLevel??t} .selectionMode=${s?.selectionMode??i} .dragEnabled=${s?.dragEnabled??a} .collapsed=${s?.collapsed} .filterPlaceholder=${s?.filterPlaceholder} .filterText=${s?.filterText} .icon=${s?.icon??void 0} .label=${s?.label??void 0} .listItemCreatedFunction=${s?.listItemCreatedFunction} .messageOverrides=${this.messageOverrides} .tables=${s?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${r=>r.stopPropagation()}></arcgis-table-list-next>`)}_handlePanelFlowItemBack(e){e.open=!1}_moveLayerFromChildList({toEl:e,fromEl:t,dragEl:i,newIndex:a}){let s=this._resolveListContainer(e),r=this._resolveListContainer(t),l=m(i,this.operationalItems),o=this._getContainerItem(s),n=this._getContainerItem(r);a==null||!l||(this.viewModel.moveItem(l,n,o,a),X(this,l.uid,c=>c!==i&&this._resolveListContainer(c.parentElement)===s))}_onCalciteListDragEnd(e){let{fromEl:t,toEl:i,dragEl:a,oldIndex:s}=e;if(t!==i){a.remove();return}s==null||!t||!a||t.insertBefore(a,t.children[s])}_onCalciteListOrderChange(e){let{_lastDragDetail:t}=this,{dragEl:i,newIndex:a}=e,s=this._resolveListContainer(e.fromEl),r=this._resolveListContainer(e.toEl),l=t?.newIndex===a&&t?.dragEl===i&&t?.toEl===r&&t?.fromEl===s;if(!(!s||!r||l)){if(this._lastDragDetail={...e,fromEl:s,toEl:r},this._selectedDragItemLayerUid=i.value,s===r){let o=Array.from(s.children).filter(n=>n?.matches("calcite-list-item")).map(n=>n.value.layer?.uid??"");this._sortLayers(s,o);return}this._moveLayerFromChildList({toEl:r,fromEl:s,dragEl:i,newIndex:a})}}_sortLayers(e,t){if(e)if(e===this._rootListRef.value)K(this.el.view?.map?.layers,t);else{let i=m(e,this.operationalItems);if(!i)return;Q(i,t)}}_handleCalciteListChange(e){let{selectionMode:t,selectedItems:i}=this;if(t==="none")return;let a=e.target.selectedItems.map(s=>m(s,this.operationalItems)).filter(Boolean);i.removeAll(),i.addMany(a)}render(){let{state:e}=this,t={[w.hidden]:e==="loading",[w.disabled]:e==="disabled"};return d`<div class=${v(N(w.widget,t))}>${this._visibleItems?.length?this._renderItemTooltips():null}${this._renderItems()}</div>`}_renderItemTooltip(e){let{_tooltipReferenceMap:t,messages:i}=this;return e?d`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(e.layer?.uid??"")}>${i.layerIncompatibleTooltip}</calcite-tooltip>`:null}_renderItemTooltipNodes(e){if(e.incompatible)return this._renderItemTooltip(e);let t=e.children?.filter(i=>!i.hidden).toArray().map(i=>this._renderItemTooltipNodes(i))??[];return t.length?t:null}_renderItemTooltips(){return this._visibleItems?.toArray().map(e=>this._renderItemTooltipNodes(e))}_renderNoItemsMessage(){return d`<div slot=message>${this.messages.noItemsToDisplay}</div>`}_renderNoItems(){return this.hideNoItemsNotice?null:d`<div class=${v(g.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`}_renderLayerFlowItem(e,t){let{messages:i,openedLayers:a}=this,s=e.title||this.messages.untitledLayer;return b(e?.uid??s,d`<calcite-flow-item data-layer-uid=${e?.uid??""??E} .description=${s} .heading=${i[e.type==="catalog"?"catalogLayers":"tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${r=>{r.preventDefault(),a.pop(),a.at(-1)&&this._layerFlowItemRef.value?.setFocus()}} ${f(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`)}_renderPanelFlowItems(){let{_openedPanelItems:e,openedLayers:t}=this;return H(e.toArray(),i=>i.uid,(i,a)=>{let{panel:s,title:r}=i,l=()=>this._handlePanelFlowItemBack(s);return d`<calcite-flow-item .description=${r} .heading=${s.title} .headingLevel=${this.headingLevel} .selected=${!t.length&&a===e.length-1} @calciteFlowItemBack=${o=>{o.preventDefault(),l()}} ${f(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${i} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${l} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`})}_renderItems(){let{collapsed:e,_visibleItems:t,_openedPanelItems:i,_filterEnabled:a,_rootGroupUid:s,showCloseButton:r,showCollapseButton:l,showHeading:o,_dragEnabled:n,selectionMode:c,filterText:y,openedLayers:_,filterPlaceholder:$,messages:I}=this,C=[d`<calcite-flow-item .closable=${r} .closed=${this.closed} .collapsed=${e} .collapsible=${l} .heading=${o?I.componentLabel:void 0} .headingLevel=${this.headingLevel} .selected=${!_.length&&!i.length} @calciteFlowItemClose=${()=>this.closed=!1}>${t?.length?d`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${h=>this._canMove(h,"pull")} .canPut=${h=>this._canMove(h,"put")} data-layer-type=${s??E} .displayMode=${ie} .dragEnabled=${n} .filterEnabled=${a} .filterPlaceholder=${$} .filterProps=${j} .filterText=${a?y:""} .group=${s} .label=${I.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${c} @calciteListChange=${this._handleCalciteListChange} @calciteListFilter=${h=>{this.filterText=h.currentTarget?.filterText??"",this.arcgisFilterChange.emit()}} @calciteListOrderChange=${h=>this._onCalciteListOrderChange(h.detail)} @calciteListDragEnd=${h=>this._onCalciteListDragEnd(h.detail)} ${f(this._rootListRef)}>${t.toArray().map(h=>this._renderItem(h))}${a&&!this.hideNoFilterResultsNotice?d`<div class=${v(g.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`:null}</calcite-list>`:this._renderNoItems()}</calcite-flow-item>`,this._renderPanelFlowItems(),this._renderedOpenLayerFlowItems];return this.closed?null:b("root-flow",d`<calcite-flow>${C}</calcite-flow>`)}_renderItem(e,t,i){return b(e.uid,Y({activeItem:this._activeItem,canMove:this._canMove,css:g,displayMode:ie,dragEnabled:this.dragEnabled,hideStatusIndicators:this.hideStatusIndicators,hideCatalogLayerList:this.hideCatalogLayerList,item:e,messages:this.messages,layerTablesEnabled:this.layerTablesEnabled,listModeDisabled:this.viewModel.listModeDisabled,operationalItems:this.operationalItems,parent:t,parentTitles:i,rootGroupUid:this._rootGroupUid,selectedDragItemLayerUid:this._selectedDragItemLayerUid,selectedItems:this.selectedItems,selectionMode:this.selectionMode,setCurrentActiveItem:this._setCurrentActiveItem,showTemporaryLayerIndicators:this.showTemporaryLayerIndicators,showCloseButton:this.showCloseButton,showCollapseButton:this.showCollapseButton,showErrors:this.showErrors,showHeading:this.showHeading,showFilter:this.showFilter,clearActiveItem:this._clearActiveItem,visibilityAppearance:this.visibilityAppearance,handleAction:this._onTriggerAction,handleCatalogOpen:this._onCatalogOpen,handleSelectedDragItemLayerUidChange:this._onSelectedDragItemLayerUidChange,handleTablesOpen:this._onTablesOpen,handleTooltipReferenceChange:this._onTooltipReferenceChange,view:this.view}))}};x("arcgis-layer-list-next",O);return O},"layerList/LayerListModel","core/Collection","core/reactiveUtils",a,c,e,h,i,l,n,o,r,s,t)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import a from"./VDEMMP33.js";import{l as m}from"./ZCFWKPXL.js";import{h as g}from"./IFR4IYSI.js";import{P as c,V as d,X as p,a as s,b as l}from"./3UMLR76Y.js";export default $arcgis.t(([{d:f,h:r}])=>{var h=s`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.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__heading{word-break:break-word}.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}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{width:100%;div{width:100%}}arcgis-legend{--calcite-color-foreground-1: var(--calcite-color-transparent);--calcite-color-text-2: var(--arcgis-internal-layer-list-legend-color-text);width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden;overflow-y:auto}`,o=class extends c{constructor(){super(...arguments),this._disabled=null,this.content=this.item?.panel.content,this.listItem=this.item?.panel.listItem??this.item,this.autoDestroyDisabled=!1,this.arcgisPropertyChange=g()("listItem")}static{this.properties={_canCreateLegend:16,_legendLayerInfo:16,content:1,item:0,disabled:5,listItem:0,view:0,autoDestroyDisabled:5}}static{this.styles=h}get _canCreateLegend(){let{content:e,listItem:t}=this.item?.panel??{};if(!t||r(t))return!1;let i="legend";return e===i?!0:e!=null&&(Array.isArray(e)?e.includes(i):!1)}get _legendLayerInfo(){let e=this.item?.panel?.listItem?.layer;if(!e||e.type==="subtype-sublayer")return null;let t=m(e)?e:null,i=t?.source?.type==="map-layer"?t.source:null,a="layer"in e&&e.layer,n="";return i&&a?{layer:a,title:n,sublayerIds:[i.mapLayerId]}:{layer:e,title:n}}get disabled(){let{_legendElement:e}=this,{content:t,listItem:i}=this.item?.panel??{};return this._disabled!=null?this._disabled:i?Array.isArray(t)&&t.length>1?!1:e?!e.activeLayerInfos?.length||!i.visibleAtCurrentScale||!i.visible:!1:!0}set disabled(e){this._disabled=e}async destroy(){await this.manager.destroy()}updated(){this._loadLegend()}async _loadLegend(){this._canCreateLegend&&(this._legendElement||(this._legendElement=this._createLegendElement()))}_createLegendElement(){return d(l`<arcgis-legend .view=${this.view} @arcgisReady=${e=>e.stopPropagation()} .layerInfos=${this._legendLayerInfo?[this._legendLayerInfo]:[]}></arcgis-legend>`)}render(){return this._renderContents()}_renderContent(e){let{disabled:t}=this;return!e||t||!this.item?.panel?.open?null:e==="legend"?(this._legendElement||this._loadLegend(),this._legendElement):e instanceof HTMLElement||typeof e=="string"?e:null}_renderContents(){let{open:e}=this.item?.panel??{};if(!e)return null;let t=r(this.item)?f(this.item.panel.content):this.item?.panel?.content;return Array.isArray(t)?t.map(i=>this._renderContent(i)):this._renderContent(t)}};p("arcgis-layer-list-item-panel",o);return o},a)
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import a from"./CROCDACG.js";import{l as m}from"./FCNNRX3Q.js";import{h as g}from"./JAZGNQRP.js";import{P as c,V as d,X as p,a as s,b as l}from"./EKR2SAT2.js";export default $arcgis.t(([{d:f,h:r}])=>{var h=s`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.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__heading{word-break:break-word}.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}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{width:100%;div{width:100%}}arcgis-legend{--calcite-color-foreground-1: var(--calcite-color-transparent);--calcite-color-text-2: var(--arcgis-internal-layer-list-legend-color-text);width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden;overflow-y:auto}`,o=class extends c{constructor(){super(...arguments),this._disabled=null,this.content=this.item?.panel.content,this.listItem=this.item?.panel.listItem??this.item,this.autoDestroyDisabled=!1,this.arcgisPropertyChange=g()("listItem")}static{this.properties={_canCreateLegend:16,_legendLayerInfo:16,content:1,item:0,disabled:5,listItem:0,view:0,autoDestroyDisabled:5}}static{this.styles=h}get _canCreateLegend(){let{content:e,listItem:t}=this.item?.panel??{};if(!t||r(t))return!1;let i="legend";return e===i?!0:e!=null&&(Array.isArray(e)?e.includes(i):!1)}get _legendLayerInfo(){let e=this.item?.panel?.listItem?.layer;if(!e||e.type==="subtype-sublayer")return null;let t=m(e)?e:null,i=t?.source?.type==="map-layer"?t.source:null,a="layer"in e&&e.layer,n="";return i&&a?{layer:a,title:n,sublayerIds:[i.mapLayerId]}:{layer:e,title:n}}get disabled(){let{_legendElement:e}=this,{content:t,listItem:i}=this.item?.panel??{};return this._disabled!=null?this._disabled:i?Array.isArray(t)&&t.length>1?!1:e?!e.activeLayerInfos?.length||!i.visibleAtCurrentScale||!i.visible:!1:!0}set disabled(e){this._disabled=e}async destroy(){await this.manager.destroy()}updated(){this._loadLegend()}async _loadLegend(){this._canCreateLegend&&(this._legendElement||(this._legendElement=this._createLegendElement()))}_createLegendElement(){return d(l`<arcgis-legend .view=${this.view} @arcgisReady=${e=>e.stopPropagation()} .layerInfos=${this._legendLayerInfo?[this._legendLayerInfo]:[]}></arcgis-legend>`)}render(){return this._renderContents()}_renderContent(e){let{disabled:t}=this;return!e||t||!this.item?.panel?.open?null:e==="legend"?(this._legendElement||this._loadLegend(),this._legendElement):e instanceof HTMLElement||typeof e=="string"?e:null}_renderContents(){let{open:e}=this.item?.panel??{};if(!e)return null;let t=r(this.item)?f(this.item.panel.content):this.item?.panel?.content;return Array.isArray(t)?t.map(i=>this._renderContent(i)):this._renderContent(t)}};p("arcgis-layer-list-item-panel",o);return o},a)
|