@arcgis/map-components 5.1.5 → 5.1.6
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/{HRD55XTZ.js → 22DCSZY4.js} +1 -1
- package/dist/cdn/{JTKURLTF.js → 24HEORT3.js} +1 -1
- package/dist/cdn/{7XMVG5VF.js → 26US73I6.js} +1 -1
- package/dist/cdn/{YUN2QQHP.js → 277KPH5T.js} +1 -1
- package/dist/cdn/{JNMBCXIJ.js → 2T5BJMSD.js} +1 -1
- package/dist/cdn/{D5N45XY5.js → 2U5WGJOH.js} +1 -1
- package/dist/cdn/{BWSDDMUB.js → 2UTIUM2Y.js} +1 -1
- package/dist/cdn/{4I6O377J.js → 3FH3Y72Y.js} +1 -1
- package/dist/cdn/{3TEMX33F.js → 3JHESRH6.js} +1 -1
- package/dist/cdn/{M2X4Z2JI.js → 47XFQHXE.js} +1 -1
- package/dist/cdn/{N4ENBYIM.js → 4AFSJSQD.js} +1 -1
- package/dist/cdn/{FMNAJ6VP.js → 4RXISH5A.js} +1 -1
- package/dist/cdn/{4IH5EPQ3.js → 4YPBMY4K.js} +1 -1
- package/dist/cdn/{ACR2PZV5.js → 54QCWJ5R.js} +1 -1
- package/dist/cdn/{ZC7B75SZ.js → 5AESYJ6U.js} +1 -1
- package/dist/cdn/{A2PKGRJP.js → 5CCKBPLD.js} +1 -1
- package/dist/cdn/{5V7CTHC7.js → 5E7WCXLX.js} +1 -1
- package/dist/cdn/{JBCJVKJY.js → 5ETMQCK3.js} +1 -1
- package/dist/cdn/{PLIG3NOL.js → 5JSIPNRH.js} +1 -1
- package/dist/cdn/{I7VV53UE.js → 5QTSCUNQ.js} +1 -1
- package/dist/cdn/{PZOONYKW.js → 5TJHHBSG.js} +1 -1
- package/dist/cdn/{6LJHN4BB.js → 5YGZH5K6.js} +1 -1
- package/dist/cdn/{2B5DP2YU.js → 624AIUZE.js} +1 -1
- package/dist/cdn/{2CHNVD2R.js → 65AHDZFY.js} +1 -1
- package/dist/cdn/{Y7B3Z5P6.js → 67HELCQU.js} +1 -1
- package/dist/cdn/{WN3TJIGK.js → 6F2B4Z6P.js} +1 -1
- package/dist/cdn/{H325NNPG.js → 6MOBH7TH.js} +1 -1
- package/dist/cdn/{DRAVDTJZ.js → 6PBKFSH2.js} +1 -1
- package/dist/cdn/{SU7T6P3G.js → 747OZ66P.js} +1 -1
- package/dist/cdn/{GTZBFSSG.js → 74JHJJOA.js} +1 -1
- package/dist/cdn/{AJCTFRLH.js → 7J7J4SEB.js} +1 -1
- package/dist/cdn/{OIKIIOZH.js → 7KBWMTFS.js} +1 -1
- package/dist/cdn/{6HUPLNPB.js → 7OUBZTHD.js} +1 -1
- package/dist/cdn/{QIVYLYHB.js → 7UAYS7PR.js} +1 -1
- package/dist/cdn/{5RV2UDR4.js → ADAGXPMD.js} +1 -1
- package/dist/cdn/{7RUVQVTE.js → AG457TZJ.js} +1 -1
- package/dist/cdn/{2EUABM5S.js → AH42SG4B.js} +1 -1
- package/dist/cdn/{MBGJXVHA.js → AH7KLC65.js} +1 -1
- package/dist/cdn/{6MBA2OU3.js → AJ3VLQKV.js} +1 -1
- package/dist/cdn/{HP6X2LYZ.js → ARHKEUQH.js} +1 -1
- package/dist/cdn/{MJRYO6TX.js → ATSGOUAJ.js} +1 -1
- package/dist/cdn/{LZ6FRTTI.js → AWGTSO6N.js} +1 -1
- package/dist/cdn/{P3AF7TDD.js → AZUTM6XX.js} +1 -1
- package/dist/cdn/{6IUNRNS3.js → AZXM5XGL.js} +1 -1
- package/dist/cdn/{AAIPMGM3.js → B2JHDQW5.js} +1 -1
- package/dist/cdn/{FRTFIGVF.js → B2Z5BIBI.js} +1 -1
- package/dist/cdn/{U23D5EX2.js → BRV6CZAT.js} +1 -1
- package/dist/cdn/{DXULR6EZ.js → BWSPCTJZ.js} +1 -1
- package/dist/cdn/{ZS3XCWFM.js → BXQLD5E5.js} +1 -1
- package/dist/cdn/{SR3YWITJ.js → C3XSN7OE.js} +1 -1
- package/dist/cdn/{KDZOOVSI.js → CCADFJBT.js} +1 -1
- package/dist/cdn/{BUOBYFNN.js → CCGXOVHV.js} +1 -1
- package/dist/cdn/{2BCVWNR5.js → CORJ6ASG.js} +1 -1
- package/dist/cdn/{RTNCTBHG.js → CT2FKPPM.js} +1 -1
- package/dist/cdn/{4MNOF575.js → CX3ITF26.js} +1 -1
- package/dist/cdn/{F7DUN5OF.js → CXTDJBT6.js} +1 -1
- package/dist/cdn/{ZQVSSETO.js → D63RFX5A.js} +1 -1
- package/dist/cdn/{GVLEI6OP.js → DCMODJHW.js} +1 -1
- package/dist/cdn/DQHCZ3GL.js +2 -0
- package/dist/cdn/{BBVNUBSU.js → DRSMHEFR.js} +1 -1
- package/dist/cdn/{6ZW32I62.js → DZP2VTFH.js} +1 -1
- package/dist/cdn/{J4AF5UYH.js → E5KIXCCC.js} +1 -1
- package/dist/cdn/{Z2MYXVYQ.js → EIHYF6VW.js} +1 -1
- package/dist/cdn/{NO65OW7P.js → EKKCMNBR.js} +1 -1
- package/dist/cdn/{O5XQTTZ7.js → EOXHTQO2.js} +1 -1
- package/dist/cdn/{LSMGDNCK.js → EPVJQSLL.js} +1 -1
- package/dist/cdn/{AI4TDGJ7.js → ET3AMTRY.js} +1 -1
- package/dist/cdn/{XLIVR6DZ.js → EVGS6CXU.js} +1 -1
- package/dist/cdn/{K43PE22O.js → EWFX3S6W.js} +1 -1
- package/dist/cdn/{SQTLQDV4.js → F4UCPTEW.js} +1 -1
- package/dist/cdn/{3V73ULSB.js → FFE4BR4U.js} +1 -1
- package/dist/cdn/{6KGURP6A.js → FOSHY57T.js} +1 -1
- package/dist/cdn/{NSD3OD74.js → FSNESSE7.js} +1 -1
- package/dist/cdn/{T3EMG2V6.js → FVLSGSVY.js} +1 -1
- package/dist/cdn/{VEOJSZ7U.js → FXCICSY5.js} +1 -1
- package/dist/cdn/{HWTUJ662.js → G3QTPBTE.js} +1 -1
- package/dist/cdn/{3QRDIO5M.js → G7A4BIWV.js} +1 -1
- package/dist/cdn/{KZI2ZJO5.js → GBI3S7HT.js} +1 -1
- package/dist/cdn/{WKKSGWDU.js → GC5PZN5Z.js} +1 -1
- package/dist/cdn/{OEOTTMUV.js → GHLCFGEV.js} +1 -1
- package/dist/cdn/{APKYBC5M.js → GUJBMQF2.js} +1 -1
- package/dist/cdn/{CL2HVRBX.js → GVT2GFEN.js} +1 -1
- package/dist/cdn/{EOIVLPYQ.js → H2RF4GKM.js} +1 -1
- package/dist/cdn/{6JKBYDOH.js → H6ILY54E.js} +1 -1
- package/dist/cdn/{472YTTO6.js → HFC4KHRI.js} +1 -1
- package/dist/cdn/{HWHVMTQ5.js → HLFFPZYE.js} +1 -1
- package/dist/cdn/{RDXCFATQ.js → HSHTTNED.js} +1 -1
- package/dist/cdn/{RQOMXGNC.js → I5POEUOZ.js} +1 -1
- package/dist/cdn/{3UE3RRK6.js → I7LEYQQJ.js} +1 -1
- package/dist/cdn/{L7HGPJVT.js → IBXUS7PZ.js} +1 -1
- package/dist/cdn/{PEN3F242.js → IGJLIYTH.js} +1 -1
- package/dist/cdn/{AJW3ZYRD.js → IHCSOML7.js} +1 -1
- package/dist/cdn/{HEOGHAAC.js → IHDBTLHW.js} +1 -1
- package/dist/cdn/{WBMUEV5E.js → IKICZ3HC.js} +1 -1
- package/dist/cdn/{5GOCFBZU.js → IP4ID66L.js} +1 -1
- package/dist/cdn/{HQMKXMRR.js → IQSWTFAF.js} +1 -1
- package/dist/cdn/{3LSB7RHO.js → IQZHD5AD.js} +1 -1
- package/dist/cdn/{SHIF64Q2.js → IT2GT7DB.js} +1 -1
- package/dist/cdn/{ZN7PVQJC.js → IYXYWOO3.js} +1 -1
- package/dist/cdn/{ILFEDWQV.js → J2AQSMOV.js} +1 -1
- package/dist/cdn/{PM263QKE.js → J34EQWSB.js} +1 -1
- package/dist/cdn/{P2QWPDF2.js → J7S2RMRO.js} +1 -1
- package/dist/cdn/{DRDLTWMF.js → JDA2BZNM.js} +1 -1
- package/dist/cdn/{V4N6H66N.js → JPWLRQOT.js} +1 -1
- package/dist/cdn/{DOEGXUHQ.js → JQFXUJOV.js} +1 -1
- package/dist/cdn/{MGZ7I3P5.js → JSPPQL4U.js} +1 -1
- package/dist/cdn/{2CPKZVBI.js → JVAECCFT.js} +1 -1
- package/dist/cdn/{JNF77RX5.js → JWDSNVRR.js} +1 -1
- package/dist/cdn/{ZW4BBZNX.js → K3JRFEE7.js} +1 -1
- package/dist/cdn/{DZJ6Y7EN.js → KFUTBZOO.js} +1 -1
- package/dist/cdn/{73OPURGA.js → KKUAJFZQ.js} +1 -1
- package/dist/cdn/{GGRXK6ZX.js → KQKIDQQS.js} +1 -1
- package/dist/cdn/{VLB5W6G2.js → KR2U2ZZP.js} +1 -1
- package/dist/cdn/{ZZJ5OHNH.js → KR6YN3O3.js} +1 -1
- package/dist/cdn/{OQQYH2NU.js → KRGDBPWO.js} +1 -1
- package/dist/cdn/{TDDDFNUF.js → KYAQNSJK.js} +1 -1
- package/dist/cdn/{HEUOKCWQ.js → L2CJL253.js} +1 -1
- package/dist/cdn/{4C2THMCG.js → L3NU3HUD.js} +1 -1
- package/dist/cdn/{W7EMMYHO.js → LGB4533I.js} +1 -1
- package/dist/cdn/{UYKAKDZS.js → LHN7FRA6.js} +1 -1
- package/dist/cdn/{5IOMYV7I.js → LIHOYQ5C.js} +1 -1
- package/dist/cdn/{IMXAP4GC.js → LLJIPGRC.js} +1 -1
- package/dist/cdn/{OJ55ZOXK.js → LLQ4ODTJ.js} +1 -1
- package/dist/cdn/{JFLR2VEG.js → LNGOJRXU.js} +1 -1
- package/dist/cdn/{XI7LEDXS.js → LTZ3FAJ2.js} +1 -1
- package/dist/cdn/LX5LSM5Q.js +2 -0
- package/dist/cdn/{KJENMIFA.js → M3QI6HUF.js} +1 -1
- package/dist/cdn/{QXZXUVGV.js → M5TJOMYV.js} +1 -1
- package/dist/cdn/{GA24QIRX.js → MELBRL26.js} +1 -1
- package/dist/cdn/{YOSAISNE.js → MGYPFZMP.js} +1 -1
- package/dist/cdn/{NL5FAGY3.js → MYUQ76RJ.js} +1 -1
- package/dist/cdn/{3VMNNECP.js → N2YI6STO.js} +1 -1
- package/dist/cdn/{VJC3RDPZ.js → N3RFPRSV.js} +1 -1
- package/dist/cdn/{XDAQMXHX.js → N6XUHWOK.js} +1 -1
- package/dist/cdn/{HJI4Q74V.js → N7KNMQG4.js} +1 -1
- package/dist/cdn/{HFAZ3TSR.js → NHSQFSAA.js} +1 -1
- package/dist/cdn/{WEMZAAWC.js → NJMCPIFZ.js} +1 -1
- package/dist/cdn/{GLNTTA4M.js → NSG72ZRY.js} +1 -1
- package/dist/cdn/O732HICJ.js +2 -0
- package/dist/cdn/{7DCRZAN4.js → OM2SD4GL.js} +1 -1
- package/dist/cdn/{QYZ7X5V4.js → OMUC52J7.js} +1 -1
- package/dist/cdn/{DBGHAVTG.js → ORYW2UQT.js} +1 -1
- package/dist/cdn/{ARO24QKW.js → OY6G7WRA.js} +1 -1
- package/dist/cdn/{NAR2J57O.js → OYNAYGVL.js} +1 -1
- package/dist/cdn/{BKK3LZX3.js → P2FI3VPB.js} +1 -1
- package/dist/cdn/{AKX6G5NY.js → P4OS2WZH.js} +1 -1
- package/dist/cdn/{VIIQGA7X.js → PDWSSARA.js} +1 -1
- package/dist/cdn/{NEWNUZRO.js → PFJCXICQ.js} +1 -1
- package/dist/cdn/{K5R5ZENE.js → PFQRBZ2R.js} +1 -1
- package/dist/cdn/{RV22T6WV.js → PN7IQC6W.js} +1 -1
- package/dist/cdn/{QMWNN57B.js → PNVLJFRT.js} +1 -1
- package/dist/cdn/{CZ7XMKSW.js → PRFZO7H6.js} +1 -1
- package/dist/cdn/{PMW3ANLS.js → PSFCLXN5.js} +1 -1
- package/dist/cdn/{VLIWCGYE.js → PVRW6GH7.js} +1 -1
- package/dist/cdn/{WDA27UKM.js → Q2SWQJE6.js} +1 -1
- package/dist/cdn/{STD733AI.js → Q63AT47X.js} +1 -1
- package/dist/cdn/{WDCAOT35.js → QA5RFYFB.js} +1 -1
- package/dist/cdn/{SBYVZ7LJ.js → QAJBMGDR.js} +1 -1
- package/dist/cdn/{3RPJJHCQ.js → QD3OFZ2J.js} +1 -1
- package/dist/cdn/{BZXMMGBV.js → QIJRUWBL.js} +1 -1
- package/dist/cdn/{QDGAXLH4.js → QTG7XJYB.js} +1 -1
- package/dist/cdn/{UMW36IPO.js → R4Q6JNRI.js} +1 -1
- package/dist/cdn/{5YVXWMBF.js → RBMOB27D.js} +1 -1
- package/dist/cdn/{RDM5QYCV.js → RJKZS5XK.js} +1 -1
- package/dist/cdn/{G4TWIOSR.js → RKXKEH6J.js} +1 -1
- package/dist/cdn/{PFOFRC2Y.js → RRH22QQ2.js} +1 -1
- package/dist/cdn/{VXB4H2P7.js → SM6MR5K2.js} +1 -1
- package/dist/cdn/{I2HGQWSX.js → SNOZLLMJ.js} +1 -1
- package/dist/cdn/{26OIDIMC.js → SR4GFBQA.js} +1 -1
- package/dist/cdn/{24CX3MDO.js → SRCRLI72.js} +1 -1
- package/dist/cdn/{ZADMHARU.js → SZ7ZEH3R.js} +1 -1
- package/dist/cdn/{5W4S2C25.js → TCA3STHX.js} +1 -1
- package/dist/cdn/{FYMTNYAU.js → TCM7WFJG.js} +1 -1
- package/dist/cdn/{ADADNHXY.js → TGUKY5BV.js} +1 -1
- package/dist/cdn/{73DLECRS.js → TJARXZLB.js} +1 -1
- package/dist/cdn/{EMIK3EQR.js → TKARK2DA.js} +1 -1
- package/dist/cdn/{O75I27SJ.js → TLYTTPKY.js} +1 -1
- package/dist/cdn/{ZFE6DOCC.js → TQ575YV3.js} +1 -1
- package/dist/cdn/{ITEUZEPY.js → TZAXZBZE.js} +1 -1
- package/dist/cdn/UCKIFBYB.js +2 -0
- package/dist/cdn/{264N47JI.js → UGT27E2V.js} +1 -1
- package/dist/cdn/{4X5YCDJT.js → UHD4YMRP.js} +1 -1
- package/dist/cdn/{63O7I6UB.js → UILEONAZ.js} +1 -1
- package/dist/cdn/{AK4RNU3Z.js → VBTS3CGO.js} +1 -1
- package/dist/cdn/{D32ONW2W.js → VO55IV6O.js} +1 -1
- package/dist/cdn/{74YWYZSR.js → VQA4JWFN.js} +1 -1
- package/dist/cdn/{375QNN2S.js → VS4MAZKF.js} +1 -1
- package/dist/cdn/{FOJ3UKIA.js → VUII7ELM.js} +1 -1
- package/dist/cdn/{BA5FUUFH.js → VVANDM5M.js} +1 -1
- package/dist/cdn/{TOAAHDPZ.js → W2CLHJ6A.js} +1 -1
- package/dist/cdn/{EWGPOJ66.js → W355TFUU.js} +1 -1
- package/dist/cdn/{R3IVYO7B.js → WFAAFMGR.js} +1 -1
- package/dist/cdn/{CNZCJL7X.js → WFZTUML4.js} +1 -1
- package/dist/cdn/{TNFEHVIG.js → WKHN5ZBO.js} +1 -1
- package/dist/cdn/{ZDNM3V6L.js → WN7MNBKM.js} +1 -1
- package/dist/cdn/{RDSYCNUX.js → WP3MOYXQ.js} +1 -1
- package/dist/cdn/{6WEIGII6.js → WQXVE4SB.js} +1 -1
- package/dist/cdn/{3YT433QW.js → WRK3X32B.js} +1 -1
- package/dist/cdn/{NEVL2YYO.js → WRPJRTIN.js} +1 -1
- package/dist/cdn/{M7HGZ4IQ.js → X4ENFTQO.js} +1 -1
- package/dist/cdn/{2XE6DUKN.js → XFBYFL4O.js} +1 -1
- package/dist/cdn/{ZFTF6HMJ.js → XIAIN2RU.js} +1 -1
- package/dist/cdn/XIOYOF7O.js +2 -0
- package/dist/cdn/{VAFWGABR.js → Y74J36IW.js} +1 -1
- package/dist/cdn/{RCXYPCWC.js → YCYJSSWI.js} +1 -1
- package/dist/cdn/{F5LWBLT7.js → YEAFBG27.js} +1 -1
- package/dist/cdn/{QHIAQMUC.js → YLOVYSB5.js} +1 -1
- package/dist/cdn/{3LPL2WMY.js → YV6OK6HI.js} +1 -1
- package/dist/cdn/{ACTNKJB3.js → Z5FRTAZ2.js} +1 -1
- package/dist/cdn/{QCWFGCAM.js → Z5SUGRYX.js} +1 -1
- package/dist/cdn/ZDM75J6U.js +2 -0
- package/dist/cdn/{EGKMOD3O.js → ZLVXLLT6.js} +1 -1
- package/dist/cdn/{EJTG7FB5.js → ZYIVLEWG.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/components/arcgis-features/customElement.d.ts +2 -2
- package/dist/components/arcgis-features/customElement.js +47 -45
- package/dist/components/arcgis-features-next/customElement.d.ts +0 -7
- package/dist/components/arcgis-features-next/customElement.js +1 -5
- package/dist/components/arcgis-popup/customElement.d.ts +0 -9
- package/dist/components/arcgis-popup/customElement.js +0 -3
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +2 -2
- package/package.json +4 -4
- package/dist/cdn/AYRT6CLA.js +0 -2
- package/dist/cdn/DBVAWYO7.js +0 -2
- package/dist/cdn/EYISAVGW.js +0 -2
- package/dist/cdn/IO42MUIM.js +0 -2
- package/dist/cdn/KAW27MQQ.js +0 -2
- package/dist/cdn/VFBERENQ.js +0 -2
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as R } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as O, html as a } from "lit";
|
|
4
|
-
import { keyed as
|
|
4
|
+
import { keyed as V } from "lit/directives/keyed.js";
|
|
5
5
|
import L from "@arcgis/core/widgets/Features/FeaturesViewModel.js";
|
|
6
6
|
import { u as B } from "../../chunks/useT9n.js";
|
|
7
|
-
import { log as
|
|
8
|
-
import { classes as
|
|
9
|
-
import { usePropertyChange as S, bypassReadOnly as
|
|
7
|
+
import { log as A } from "@arcgis/toolkit/log";
|
|
8
|
+
import { classes as x } from "@arcgis/toolkit/dom";
|
|
9
|
+
import { usePropertyChange as S, bypassReadOnly as y } from "@arcgis/lumina/controllers";
|
|
10
10
|
import { m as H } from "../../chunks/useViewModel.js";
|
|
11
|
-
import { LitElement as P, createEvent as
|
|
11
|
+
import { LitElement as P, createEvent as I, renderElement as z, nothing as h, safeClassMap as T } from "@arcgis/lumina";
|
|
12
12
|
import { substitute as u, formatNumber as C } from "@arcgis/core/intl.js";
|
|
13
13
|
import { watch as r } from "@arcgis/core/core/reactiveUtils.js";
|
|
14
14
|
import { t as U, z as Z } from "../../chunks/action-utils.js";
|
|
15
|
-
import { stripHTML as
|
|
15
|
+
import { stripHTML as k } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
16
16
|
import E from "@arcgis/core/core/Collection.js";
|
|
17
17
|
import { g as j } from "../../chunks/feature-utils.js";
|
|
18
18
|
import { renderingSanitizer as _ } from "@arcgis/core/applications/Components/sanitizerUtils.js";
|
|
@@ -24,8 +24,8 @@ const q = O`:host{display:flex;overflow:hidden;flex:1 1 auto}.root{--calcite-col
|
|
|
24
24
|
id: "zoom-to-feature",
|
|
25
25
|
title: "{messages.zoom}"
|
|
26
26
|
}), M = W.clone();
|
|
27
|
-
function X(
|
|
28
|
-
return
|
|
27
|
+
function X(D) {
|
|
28
|
+
return D?.declaredClass.startsWith("esri.layers.") ?? !1;
|
|
29
29
|
}
|
|
30
30
|
const J = H(L);
|
|
31
31
|
class Q extends P {
|
|
@@ -37,7 +37,7 @@ class Q extends P {
|
|
|
37
37
|
}), this._featureMenuIntersectionObserverNode = null, this._rootFlowItemNode = b(), this._featureMenuViewportNode = b(), this._actionBarMenuNode = b(), this._flowContainerNode = b(), this.messages = B(), this._selectedFeatureComponent = b(), this._cancelOpenRelatedFeature = () => {
|
|
38
38
|
const { _openRelatedFeatureAbortController: e } = this;
|
|
39
39
|
e && e.abort(), this._openRelatedFeatureAbortController = null;
|
|
40
|
-
}, this._openRelatedFeatureAbortController = null, this.flowItems = new E(), this.viewModel = J(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.autoDestroyDisabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = this.viewModel.featureMenuOpen, this.featureMenuTitle = this.viewModel.featureMenuTitle, this.featureNavigationTop = !1, this.features = this.viewModel.features, this.featuresPerPage = this.viewModel.featuresPerPage, this.featureViewModelAbilities = this.viewModel.featureViewModelAbilities, this.goToOverride = this.viewModel.goToOverride, this.headerActions = new E(), this.heading = this.viewModel.title, this.headingLevel = 2, this.hideActionBar = !1, this.hideCloseButton = !1, this.hideFeatureMenuHeading = !1, this.hideFeatureNavigation = !1, this.hideFeatureListLayerTitle = !1, this.hideHeading = !1, this.hideSelectFeature = !1, this.hideSpinner = !1, this.hideContent = !1, this.hideExpressionContent = !1, this.hideLastEditedInfo = !1, this.highlightDisabled = this.viewModel.highlightEnabled, this.includeDefaultActionsDisabled = this.viewModel.includeDefaultActions, this.initialDisplayMode = this.viewModel.initialDisplayMode, this.location = this.viewModel.location, this.map = this.viewModel.map, this.open = this.viewModel.visible, this.promises = this.viewModel.promises, this.responsiveActionsEnabled = !1, this.selectedFeature = this.viewModel.selectedFeature, this.selectedFeatureIndex = this.viewModel.selectedFeatureIndex, this.showCollapseButton = !1, this.spatialReference = this.viewModel.spatialReference, this.state = this.viewModel.state, this.timeZone = this.viewModel.timeZone, this.updateLocationEnabled = this.viewModel.updateLocationEnabled, this.view = this.viewModel.view, this.arcgisPropertyChange = S()("active", "collapsed", "effectiveHeading", "featureCount", "featureMenuOpen", "features", "promises", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady =
|
|
40
|
+
}, this._openRelatedFeatureAbortController = null, this.flowItems = new E(), this.viewModel = J(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.autoDestroyDisabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = this.viewModel.featureMenuOpen, this.featureMenuTitle = this.viewModel.featureMenuTitle, this.featureNavigationTop = !1, this.features = this.viewModel.features, this.featuresPerPage = this.viewModel.featuresPerPage, this.featureViewModelAbilities = this.viewModel.featureViewModelAbilities, this.goToOverride = this.viewModel.goToOverride, this.headerActions = new E(), this.heading = this.viewModel.title, this.headingLevel = 2, this.hideActionBar = !1, this.hideCloseButton = !1, this.hideFeatureMenuHeading = !1, this.hideFeatureNavigation = !1, this.hideFeatureListLayerTitle = !1, this.hideHeading = !1, this.hideSelectFeature = !1, this.hideSpinner = !1, this.hideContent = !1, this.hideExpressionContent = !1, this.hideLastEditedInfo = !1, this.highlightDisabled = this.viewModel.highlightEnabled, this.includeDefaultActionsDisabled = this.viewModel.includeDefaultActions, this.initialDisplayMode = this.viewModel.initialDisplayMode, this.location = this.viewModel.location, this.map = this.viewModel.map, this.open = this.viewModel.visible, this.promises = this.viewModel.promises, this.responsiveActionsEnabled = !1, this.selectedFeature = this.viewModel.selectedFeature, this.selectedFeatureIndex = this.viewModel.selectedFeatureIndex, this.showCollapseButton = !1, this.spatialReference = this.viewModel.spatialReference, this.state = this.viewModel.state, this.timeZone = this.viewModel.timeZone, this.updateLocationEnabled = this.viewModel.updateLocationEnabled, this.view = this.viewModel.view, this.arcgisPropertyChange = S()("active", "collapsed", "effectiveHeading", "featureCount", "featureMenuOpen", "features", "promises", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady = I(), this.arcgisClose = I(), this.arcgisTriggerAction = I();
|
|
41
41
|
}
|
|
42
42
|
static {
|
|
43
43
|
this.properties = { _openRelatedFeatureAbortController: 16, flowItems: 16, _hideActionText: 16, _featureNavigationVisible: 16, _isCollapsed: 16, _collapseEnabled: 16, _featureFlowItemSelected: 16, viewModel: 0, actions: 0, active: 0, autoDestroyDisabled: 5, collapseDirection: 1, collapsed: 5, content: 1, defaultPopupTemplateEnabled: 5, effectiveHeading: 32, featureCount: 9, featureMenuOpen: 5, featureMenuTitle: 1, featureNavigationTop: 5, features: 0, featuresPerPage: 9, featureViewModelAbilities: 0, goToOverride: 0, headerActions: 0, heading: 1, headingLevel: 9, hideActionBar: 5, hideCloseButton: 5, hideFeatureMenuHeading: 5, hideFeatureNavigation: 5, hideFeatureListLayerTitle: 5, hideHeading: 5, hideSelectFeature: 5, hideSpinner: 5, hideContent: 5, chartAnimationDisabled: 5, hideAttachmentsContent: 5, hideCustomContent: 5, hideExpressionContent: 5, hideFieldsContent: 5, hideMediaContent: 5, hideRelationshipContent: 5, hideTextContent: 5, hideUtilityNetworkContent: 5, hideLastEditedInfo: 5, highlightDisabled: 5, icon: 1, includeDefaultActionsDisabled: 5, initialDisplayMode: 1, label: 1, location: 0, map: 0, messageOverrides: 0, open: 5, referenceElement: 1, promises: 0, responsiveActionsEnabled: 5, selectedDrillInFeature: 32, selectedFeature: 0, selectedFeatureComponent: 32, selectedFeatureIndex: 9, showCollapseButton: 5, spatialReference: 0, state: 32, timeZone: 1, updateLocationEnabled: 5, view: 0 };
|
|
@@ -122,28 +122,30 @@ class Q extends P {
|
|
|
122
122
|
}
|
|
123
123
|
async fetchFeatures(e, t) {
|
|
124
124
|
this._cancelFetchingFeatures();
|
|
125
|
-
const { signal: s } = t ?? {}, i = new AbortController(), { signal:
|
|
125
|
+
const { signal: s } = t ?? {}, i = new AbortController(), { signal: n } = i, o = s ? AbortSignal.any([n, s]) : n;
|
|
126
126
|
if (this._fetchFeaturesController = i, !e && this.view && this.location && (await G(this.location.spatialReference, this.view.spatialReference, null, {
|
|
127
|
-
signal:
|
|
127
|
+
signal: o
|
|
128
128
|
}), e = this.view.toScreen(this.location) ?? void 0), !e)
|
|
129
129
|
return;
|
|
130
130
|
const l = await this.viewModel.fetchFeatures(e, {
|
|
131
131
|
...t,
|
|
132
|
-
signal:
|
|
132
|
+
signal: o
|
|
133
133
|
});
|
|
134
134
|
this.location = l.location, this.promises = l.pendingFeatures;
|
|
135
135
|
}
|
|
136
136
|
async next() {
|
|
137
|
-
return
|
|
137
|
+
return A("warn", this, "The return type of FeaturesViewModel on the next() method is deprecated. At 6.0, this method will return void."), this.viewModel.next();
|
|
138
138
|
}
|
|
139
139
|
async previous() {
|
|
140
|
-
return
|
|
140
|
+
return A("warn", this, "The return type of FeaturesViewModel on the previous() method is deprecated. At 6.0, this method will return void."), this.viewModel.previous();
|
|
141
141
|
}
|
|
142
142
|
async setFocus() {
|
|
143
143
|
this._flowContainerNode.value?.setFocus();
|
|
144
144
|
}
|
|
145
145
|
async triggerAction(e) {
|
|
146
|
-
if (
|
|
146
|
+
if (A("warn", this, "The triggerAction() method is deprecated since 5.1. Trigger actions with manual user interaction within the component.", {
|
|
147
|
+
once: !0
|
|
148
|
+
}), !e.disabled)
|
|
147
149
|
return e?.type === "toggle" && (e.value = !e.value), await U(e, this.viewModel);
|
|
148
150
|
}
|
|
149
151
|
connectedCallback() {
|
|
@@ -182,15 +184,15 @@ class Q extends P {
|
|
|
182
184
|
}
|
|
183
185
|
updated() {
|
|
184
186
|
const e = this._selectedFeatureComponent.value ?? void 0;
|
|
185
|
-
this.selectedFeatureComponent !== e &&
|
|
187
|
+
this.selectedFeatureComponent !== e && y(() => this.selectedFeatureComponent = e);
|
|
186
188
|
}
|
|
187
189
|
_syncSelectedDrillInFeature() {
|
|
188
190
|
const e = this.flowItems.getItemAt(this.flowItems.length - 1);
|
|
189
|
-
|
|
191
|
+
y(() => this.selectedDrillInFeature = e?.graphic ?? void 0);
|
|
190
192
|
}
|
|
191
193
|
_syncEffectiveHeading() {
|
|
192
194
|
const e = this._calculateEffectiveHeading();
|
|
193
|
-
this.effectiveHeading !== e &&
|
|
195
|
+
this.effectiveHeading !== e && y(() => this.effectiveHeading = e);
|
|
194
196
|
}
|
|
195
197
|
_cancelFetchingFeatures() {
|
|
196
198
|
this._fetchFeaturesController?.abort(), this._fetchFeaturesController = null;
|
|
@@ -204,8 +206,8 @@ class Q extends P {
|
|
|
204
206
|
const i = s?.graphic;
|
|
205
207
|
if (!i)
|
|
206
208
|
return;
|
|
207
|
-
const
|
|
208
|
-
t.set(
|
|
209
|
+
const n = j(i), o = X(n) ? n : null, l = t.get(o) ?? [];
|
|
210
|
+
t.set(o, [...l, s]);
|
|
209
211
|
}), t;
|
|
210
212
|
}
|
|
211
213
|
_handleCollapseToggle() {
|
|
@@ -223,11 +225,11 @@ class Q extends P {
|
|
|
223
225
|
}
|
|
224
226
|
if (this._removeFlowItems(), await this.viewModel.zoomTo({ target: i }), this._openRelatedFeatureAbortController !== t)
|
|
225
227
|
return;
|
|
226
|
-
const
|
|
228
|
+
const n = await import("@arcgis/core/geometry/operators/labelPointOperator.js");
|
|
227
229
|
if (this._openRelatedFeatureAbortController !== t)
|
|
228
230
|
return;
|
|
229
|
-
const
|
|
230
|
-
|
|
231
|
+
const o = n.execute(i);
|
|
232
|
+
o != null && (this.location = o), this.features = [s], this.open = !0, await this.setFocus(), this._openRelatedFeatureAbortController === t && (this._openRelatedFeatureAbortController = null);
|
|
231
233
|
}
|
|
232
234
|
_handlePaginationMenuButton() {
|
|
233
235
|
this._updateFeatureMenu();
|
|
@@ -270,8 +272,8 @@ class Q extends P {
|
|
|
270
272
|
this._unobserveFeatureMenuObserver(), e && this._featureMenuIntersectionObserver.observe(e), this._featureMenuIntersectionObserverNode = e;
|
|
271
273
|
}
|
|
272
274
|
_getActionTitle(e) {
|
|
273
|
-
const { messages: t, selectedFeature: s } = this, { id: i } = e,
|
|
274
|
-
return l &&
|
|
275
|
+
const { messages: t, selectedFeature: s } = this, { id: i } = e, n = s?.attributes, o = e.title ?? "", l = i === "zoom-to-feature" ? u(o, { messages: t }) : i === "remove-selected-feature" ? u(o, { messages: t }) : i === "zoom-to-clustered-features" ? u(o, { messages: t }) : i === "browse-clustered-features" ? u(o, { messages: t }) : e.title;
|
|
276
|
+
return l && n ? u(l, n) : l ?? "";
|
|
275
277
|
}
|
|
276
278
|
_onMainKeydown(e) {
|
|
277
279
|
const { key: t } = e;
|
|
@@ -348,8 +350,8 @@ class Q extends P {
|
|
|
348
350
|
})}</div>`;
|
|
349
351
|
}
|
|
350
352
|
_renderFeatureMenuButton() {
|
|
351
|
-
const { messages: e, viewModel: t } = this, { featureCount: s, selectedFeatureIndex: i, pendingPromisesCount:
|
|
352
|
-
return a`<calcite-action class="pagination-menu-button" icon=list .label=${e.selectFeature} .loading=${
|
|
353
|
+
const { messages: e, viewModel: t } = this, { featureCount: s, selectedFeatureIndex: i, pendingPromisesCount: n } = t;
|
|
354
|
+
return a`<calcite-action class="pagination-menu-button" icon=list .label=${e.selectFeature} .loading=${n > 0} @click=${this._handlePaginationMenuButton} .text=${u(e.pageText ?? "", {
|
|
353
355
|
index: C(i + 1),
|
|
354
356
|
total: C(s)
|
|
355
357
|
})} text-enabled title=${e.selectFeature ?? h}></calcite-action>`;
|
|
@@ -359,14 +361,14 @@ class Q extends P {
|
|
|
359
361
|
return a`<calcite-action-bar class="pagination-action-bar" expand-disabled layout=horizontal overflow-actions-disabled scale=s><calcite-action-group scale=s><calcite-action class="pagination-previous" icon=chevron-left icon-flip-rtl .label=${e ?? ""} @click=${this._previousFeature} .text=${e ?? ""} title=${e ?? "" ?? h}></calcite-action><calcite-action icon=chevron-right icon-flip-rtl .label=${t ?? ""} @click=${this._nextFeature} .text=${t ?? ""} title=${t ?? "" ?? h}></calcite-action></calcite-action-group></calcite-action-bar>`;
|
|
360
362
|
}
|
|
361
363
|
_renderFeatureMenuItem(e) {
|
|
362
|
-
const { initialDisplayMode: t } = this, { selectedFeatureViewModel: s, featureViewModels: i } = this.viewModel,
|
|
363
|
-
return a`<calcite-list-item @blur=${this._removeActiveFeature} @focus=${() => this._setActiveFeature(
|
|
364
|
+
const { initialDisplayMode: t } = this, { selectedFeatureViewModel: s, featureViewModels: i } = this.viewModel, n = e === s, o = i.indexOf(e);
|
|
365
|
+
return a`<calcite-list-item @blur=${this._removeActiveFeature} @focus=${() => this._setActiveFeature(o)} @mouseleave=${this._removeActiveFeature} @mouseover=${() => this._setActiveFeature(o)} .selected=${n} @calciteListItemSelect=${() => this._selectFeature(o)}><span .innerHTML=${(_.sanitize(e.title) || this.messages.untitled) ?? ""} slot=content></span>${t === "list" ? a`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>` : null}</calcite-list-item>`;
|
|
364
366
|
}
|
|
365
367
|
_renderFeatureMenu() {
|
|
366
368
|
const { messages: e, viewModel: t } = this, s = this._groupResultsByLayer(), i = this.initialDisplayMode === "list" ? "none" : "single";
|
|
367
|
-
return t.featureViewModels.length ? a`<calcite-list display-mode=flat .label=${e?.featuresList ?? ""} selection-appearance=icon .selectionMode=${i}>${Array.from(s.keys(), (
|
|
368
|
-
const
|
|
369
|
-
return !this.hideFeatureListLayerTitle && l !== null ?
|
|
369
|
+
return t.featureViewModels.length ? a`<calcite-list display-mode=flat .label=${e?.featuresList ?? ""} selection-appearance=icon .selectionMode=${i}>${Array.from(s.keys(), (n) => {
|
|
370
|
+
const o = s.get(n)?.map((c) => this._renderFeatureMenuItem(c)), l = n ? n.title ?? this.messages.untitled : null;
|
|
371
|
+
return !this.hideFeatureListLayerTitle && l !== null ? V(n ?? "map-graphics", a`<calcite-list-item-group .heading=${l}>${o}</calcite-list-item-group>`) : o;
|
|
370
372
|
})}</calcite-list>` : null;
|
|
371
373
|
}
|
|
372
374
|
_renderHeaderAction(e) {
|
|
@@ -377,38 +379,38 @@ class Q extends P {
|
|
|
377
379
|
return this.headerActions.map((e) => this._renderHeaderAction(e)).toArray();
|
|
378
380
|
}
|
|
379
381
|
_renderContentFeature() {
|
|
380
|
-
const { headingLevel: e, hideCloseButton: t, _isCollapsed: s, _collapseEnabled: i, _featureFlowItemSelected:
|
|
382
|
+
const { headingLevel: e, hideCloseButton: t, _isCollapsed: s, _collapseEnabled: i, _featureFlowItemSelected: n, featureNavigationTop: o, flowItems: l, initialDisplayMode: c, selectedFeature: f, hideHeading: v } = this, { active: g, selectedFeatureViewModel: p, content: w } = this.viewModel, d = this._getHeading();
|
|
381
383
|
if (c === "list" && !f)
|
|
382
384
|
return null;
|
|
383
|
-
const F = l.length === 0 &&
|
|
384
|
-
return a`<calcite-flow-item class=${
|
|
385
|
+
const F = l.length === 0 && n, $ = p ? !p.content : !w;
|
|
386
|
+
return a`<calcite-flow-item class=${T(x({
|
|
385
387
|
"content-feature": !0,
|
|
386
388
|
"flow-item-collapsed": s
|
|
387
|
-
}))} .closable=${!t} .closed=${!g} .collapsed=${s} .collapseDirection=${this.collapseDirection ?? (
|
|
389
|
+
}))} .closable=${!t} .closed=${!g} .collapsed=${s} .collapseDirection=${this.collapseDirection ?? (o ? "down" : "up")} .collapsible=${i} .headingLevel=${e} .selected=${F} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${!v && d ? k(d) : void 0} ${m(this._rootFlowItemNode)}>${!v && d ? a`<div slot=heading><div .innerHTML=${_.sanitize(d ?? "") ?? ""}></div></div>` : null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${T(x("container", "content-container", {
|
|
388
390
|
"content-hidden": $
|
|
389
391
|
}))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`;
|
|
390
392
|
}
|
|
391
393
|
_renderFeatureMenuContainer() {
|
|
392
|
-
const { viewModel: e, hideCloseButton: t, featureMenuTitle: s, messages: i, initialDisplayMode:
|
|
393
|
-
if (
|
|
394
|
+
const { viewModel: e, hideCloseButton: t, featureMenuTitle: s, messages: i, initialDisplayMode: n, featureMenuOpen: o, _featureFlowItemSelected: l, _collapseEnabled: c, _isCollapsed: f, featureNavigationTop: v, headingLevel: g } = this, { active: p, featureViewModels: w, pendingPromisesCount: d } = e, F = s ?? i.selectFeature;
|
|
395
|
+
if (n === "feature" && !o)
|
|
394
396
|
return null;
|
|
395
397
|
const $ = !l;
|
|
396
|
-
return a`<calcite-flow-item class=${
|
|
398
|
+
return a`<calcite-flow-item class=${T(x({
|
|
397
399
|
"flow-item-collapsed": f
|
|
398
|
-
}))} .closable=${
|
|
400
|
+
}))} .closable=${n === "list" && !t} .closed=${!p} .collapsed=${n === "list" && f} .collapseDirection=${this.collapseDirection ?? (v ? "down" : "up")} .collapsible=${n === "list" && c} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} .description=${this.hideFeatureMenuHeading ? void 0 : u(i.total ?? "", {
|
|
399
401
|
total: w.length
|
|
400
402
|
})} .heading=${this.hideFeatureMenuHeading ? void 0 : F} .headingLevel=${g} .loading=${e.waitingForContents} .selected=${$} @calciteFlowItemBack=${(N) => {
|
|
401
403
|
N.preventDefault(), this._handleFeatureMenuBack();
|
|
402
|
-
}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${m(this._featureMenuViewportNode)}>${
|
|
404
|
+
}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${m(this._featureMenuViewportNode)}>${n === "list" ? this._renderHeaderActions() : null}${d > 0 ? a`<calcite-loader class="loader" inline .label=${i.loading ?? ""} slot=header-actions-end></calcite-loader>` : null}<div class="container">${this._renderFeatureMenu()}</div><div class="feature-menu-observer" ${m(this._featureMenuIntersectionObserverCreated)}></div>${n === "feature" ? a`<calcite-button appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full>${i.back}</calcite-button>` : null}</calcite-flow-item>`;
|
|
403
405
|
}
|
|
404
406
|
_renderFlowItem(e, t) {
|
|
405
|
-
const { messages: s, hideCloseButton: i, hideSelectFeature:
|
|
406
|
-
return a`<calcite-flow-item .closable=${!i} .closed=${!
|
|
407
|
+
const { messages: s, hideCloseButton: i, hideSelectFeature: n, active: o, hideHeading: l } = this, c = "graphic" in e && "isFeatureFromTable" in e && !e.isFeatureFromTable, f = c && !n, v = e.flowType === "feature-association", g = s.returnToInitialFeature ?? "", p = s?.selectFeature, w = this._getActionTitle(M), d = !this.hideActionBar && v && c;
|
|
408
|
+
return a`<calcite-flow-item .closable=${!i} .closed=${!o} .description=${k(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${l ? void 0 : k(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${(F) => {
|
|
407
409
|
F.preventDefault(), this._handleDrillInBackClick();
|
|
408
410
|
}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${l ? null : a`<div slot=heading><div .innerHTML=${_.sanitize(e.heading ?? "") ?? ""}></div></div>`}<div slot=description><div .innerHTML=${_.sanitize(this._getDrillInFlowItemDescription(e) ?? "") ?? ""}></div></div><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${g ?? ""} title=${g ?? "" ?? h}></calcite-action>${f ? a`<calcite-action icon=zoom-to-object @click=${() => this._openRelatedFeature(e)} slot=header-actions-end .text=${p ?? ""} title=${p ?? h}></calcite-action>` : null}${d ? a`<calcite-action-bar expand-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${M.disabled} .icon=${M.icon ?? void 0} .loading=${M.active} scale=s text-enabled .text=${w} title=${w ?? h} @click=${() => Z(this.viewModel, M, e)}></calcite-action></calcite-action-group></calcite-action-bar>` : null}<div class="container">${e}</div></calcite-flow-item>`;
|
|
409
411
|
}
|
|
410
412
|
_renderContentContainer() {
|
|
411
|
-
const e = this.flowItems?.toArray(), t = e?.map((i,
|
|
413
|
+
const e = this.flowItems?.toArray(), t = e?.map((i, n) => this._renderFlowItem(i, this._featureFlowItemSelected && n === e.length - 1)), s = this.initialDisplayMode === "list" ? [this._renderFeatureMenuContainer(), this._renderContentFeature(), t] : [this._renderContentFeature(), t, this._renderFeatureMenuContainer()];
|
|
412
414
|
return a`<calcite-flow ${m(this._flowContainerNode)}>${s}</calcite-flow>`;
|
|
413
415
|
}
|
|
414
416
|
_renderActionBar() {
|
|
@@ -423,7 +425,7 @@ class Q extends P {
|
|
|
423
425
|
}
|
|
424
426
|
_renderContent() {
|
|
425
427
|
const { content: e, selectedFeatureViewModel: t } = this.viewModel;
|
|
426
|
-
return t ? a`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${m(this._selectedFeatureComponent)}></arcgis-feature>` : typeof e == "string" ?
|
|
428
|
+
return t ? a`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${m(this._selectedFeatureComponent)}></arcgis-feature>` : typeof e == "string" ? V(e, a`<div .innerHTML=${_.sanitize(e) ?? ""}></div>`) : e ?? null;
|
|
427
429
|
}
|
|
428
430
|
}
|
|
429
431
|
R("arcgis-features", Q);
|
|
@@ -600,13 +600,6 @@ export abstract class ArcgisFeaturesNext extends LitElement {
|
|
|
600
600
|
* @since 5.1
|
|
601
601
|
*/
|
|
602
602
|
setFocus(): Promise<void>;
|
|
603
|
-
/**
|
|
604
|
-
* Triggers the [@arcgisTriggerAction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#event-arcgisTriggerAction) event and executes the action
|
|
605
|
-
* at the specified index in the [actions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#actions) array.
|
|
606
|
-
*
|
|
607
|
-
* @param action
|
|
608
|
-
*/
|
|
609
|
-
triggerAction(action: ActionButton | ActionToggle): Promise<void>;
|
|
610
603
|
/** Emitted when the component's close button is clicked. */
|
|
611
604
|
readonly arcgisClose: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
612
605
|
/** Emitted when the value of a property is changed. Use this to listen to changes to properties. */
|
|
@@ -97,10 +97,6 @@ class Q extends P {
|
|
|
97
97
|
async setFocus() {
|
|
98
98
|
await this._focusTrapNode.value?.setFocus();
|
|
99
99
|
}
|
|
100
|
-
async triggerAction(e) {
|
|
101
|
-
if (!e.disabled)
|
|
102
|
-
return e?.type === "toggle" && (e.value = !e.value), await U(e, this.viewModel);
|
|
103
|
-
}
|
|
104
100
|
connectedCallback() {
|
|
105
101
|
super.connectedCallback(), this._createSpinner();
|
|
106
102
|
}
|
|
@@ -241,7 +237,7 @@ class Q extends P {
|
|
|
241
237
|
i || !a || e === t || e === -1 || (this._aggregatedFeatureCount = 0, this._selectedAggregatedFeatureIndex = -1, this._removeFlowItems(), this._rootFlowItemNode.value?.scrollContentTo({ top: 0 }));
|
|
242
238
|
}
|
|
243
239
|
_triggerAction(e) {
|
|
244
|
-
|
|
240
|
+
e.disabled || (e?.type === "toggle" && (e.value = !e.value), U(e, this.viewModel), this.arcgisTriggerAction.emit({ action: e }));
|
|
245
241
|
}
|
|
246
242
|
_viewScaleChange() {
|
|
247
243
|
const { selectedFeature: e } = this;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import type ActionButton from "@arcgis/core/support/actions/ActionButton.js";
|
|
3
|
-
import type ActionToggle from "@arcgis/core/support/actions/ActionToggle.js";
|
|
4
2
|
import type Graphic from "@arcgis/core/Graphic.js";
|
|
5
3
|
import type Collection from "@arcgis/core/core/Collection.js";
|
|
6
4
|
import type Point from "@arcgis/core/geometry/Point.js";
|
|
@@ -608,13 +606,6 @@ export abstract class ArcgisPopup extends LitElement {
|
|
|
608
606
|
previous(): Promise<void>;
|
|
609
607
|
/** Use this method to give focus to the component if the component is able to be focused. */
|
|
610
608
|
setFocus(): Promise<void>;
|
|
611
|
-
/**
|
|
612
|
-
* Triggers the [@arcgisTriggerAction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#event-arcgisTriggerAction) event and executes the [actions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#actions)
|
|
613
|
-
* at the specified index in the [actions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#actions) array.
|
|
614
|
-
*
|
|
615
|
-
* @param action
|
|
616
|
-
*/
|
|
617
|
-
triggerAction(action: ActionButton | ActionToggle): Promise<void>;
|
|
618
609
|
/** Emitted when the component's close button is clicked. */
|
|
619
610
|
readonly arcgisClose: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
620
611
|
readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "active" | "collapsed" | "currentAlignment" | "dockEnabled" | "effectiveHeading" | "featureCount" | "featureMenuOpen" | "features" | "promises" | "selectedDrillInFeature" | "selectedFeature" | "selectedFeatureComponent" | "selectedFeatureIndex" | "state" | "open"; }>;
|
|
@@ -85,9 +85,6 @@ class j extends L {
|
|
|
85
85
|
async setFocus() {
|
|
86
86
|
this._featuresComponent.value?.setFocus();
|
|
87
87
|
}
|
|
88
|
-
async triggerAction(t) {
|
|
89
|
-
await this._featuresComponent.value?.triggerAction(t);
|
|
90
|
-
}
|
|
91
88
|
connectedCallback() {
|
|
92
89
|
super.connectedCallback(), this._syncPopupResizeObserver();
|
|
93
90
|
}
|