@arcgis/map-components 5.1.4 → 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/{BYUG46SX.js → 22DCSZY4.js} +1 -1
- package/dist/cdn/{NKLK7WBU.js → 24HEORT3.js} +1 -1
- package/dist/cdn/{QCFJQKFF.js → 26US73I6.js} +1 -1
- package/dist/cdn/{OPP5I5AI.js → 277KPH5T.js} +1 -1
- package/dist/cdn/{6NWA6WEA.js → 2T5BJMSD.js} +1 -1
- package/dist/cdn/{3GMSKHTZ.js → 2U5WGJOH.js} +1 -1
- package/dist/cdn/{UKM575AX.js → 2UTIUM2Y.js} +1 -1
- package/dist/cdn/{KOHPKB7T.js → 3FH3Y72Y.js} +1 -1
- package/dist/cdn/{ENBH27M3.js → 3JHESRH6.js} +1 -1
- package/dist/cdn/{RN2CZHVZ.js → 47XFQHXE.js} +1 -1
- package/dist/cdn/{E7RA2AH4.js → 4AFSJSQD.js} +1 -1
- package/dist/cdn/{DLNZZWWI.js → 4RXISH5A.js} +1 -1
- package/dist/cdn/{WM2OOJ6V.js → 4YPBMY4K.js} +1 -1
- package/dist/cdn/{QDR5ZVG6.js → 54QCWJ5R.js} +1 -1
- package/dist/cdn/{7DS4S4OL.js → 5AESYJ6U.js} +1 -1
- package/dist/cdn/{SVZ2LPMF.js → 5CCKBPLD.js} +1 -1
- package/dist/cdn/{ZNFSD3IC.js → 5E7WCXLX.js} +1 -1
- package/dist/cdn/{NJE3P4JX.js → 5ETMQCK3.js} +1 -1
- package/dist/cdn/{2GLH5PUC.js → 5JSIPNRH.js} +1 -1
- package/dist/cdn/{U2G76MLM.js → 5QTSCUNQ.js} +1 -1
- package/dist/cdn/{YLANW6EI.js → 5TJHHBSG.js} +1 -1
- package/dist/cdn/{JB2ROPSD.js → 5YGZH5K6.js} +1 -1
- package/dist/cdn/{ONJTK4SF.js → 624AIUZE.js} +1 -1
- package/dist/cdn/{C6IELZJH.js → 65AHDZFY.js} +1 -1
- package/dist/cdn/{SGHG7AJJ.js → 67HELCQU.js} +1 -1
- package/dist/cdn/{VMFNOF52.js → 6F2B4Z6P.js} +1 -1
- package/dist/cdn/{XGY6ORJL.js → 6MOBH7TH.js} +1 -1
- package/dist/cdn/{CCYZ3O3F.js → 6PBKFSH2.js} +1 -1
- package/dist/cdn/{36MLS24H.js → 747OZ66P.js} +1 -1
- package/dist/cdn/{EFN4FRL5.js → 74JHJJOA.js} +1 -1
- package/dist/cdn/{IO7L24I5.js → 7J7J4SEB.js} +1 -1
- package/dist/cdn/{LL6W64KR.js → 7KBWMTFS.js} +1 -1
- package/dist/cdn/{TO4GLHLM.js → 7OUBZTHD.js} +1 -1
- package/dist/cdn/{VPIXVAXC.js → 7UAYS7PR.js} +1 -1
- package/dist/cdn/{BQSHES4R.js → ADAGXPMD.js} +1 -1
- package/dist/cdn/{7ST4RWKI.js → AG457TZJ.js} +1 -1
- package/dist/cdn/{J6N7WN2Y.js → AH42SG4B.js} +1 -1
- package/dist/cdn/{ICEZC2TQ.js → AH7KLC65.js} +1 -1
- package/dist/cdn/{ZSUE4VY6.js → AJ3VLQKV.js} +1 -1
- package/dist/cdn/{UA5YO7NO.js → ARHKEUQH.js} +1 -1
- package/dist/cdn/{YMVHM5OZ.js → ATSGOUAJ.js} +1 -1
- package/dist/cdn/{PIIE2ZOR.js → AWGTSO6N.js} +1 -1
- package/dist/cdn/{MORGXLED.js → AZUTM6XX.js} +1 -1
- package/dist/cdn/AZXM5XGL.js +2 -0
- package/dist/cdn/{FDWADAQF.js → B2JHDQW5.js} +1 -1
- package/dist/cdn/{U5KGWKHD.js → B2Z5BIBI.js} +1 -1
- package/dist/cdn/{QVL2OFCK.js → BRV6CZAT.js} +1 -1
- package/dist/cdn/{EZ67DXSF.js → BWSPCTJZ.js} +1 -1
- package/dist/cdn/{DMHSTNBW.js → BXQLD5E5.js} +1 -1
- package/dist/cdn/{WFEURO7O.js → C3XSN7OE.js} +1 -1
- package/dist/cdn/{NE62JPBM.js → CCADFJBT.js} +1 -1
- package/dist/cdn/{TKGODW54.js → CCGXOVHV.js} +1 -1
- package/dist/cdn/{3SIYO7ZN.js → CORJ6ASG.js} +1 -1
- package/dist/cdn/{5NYBDYMA.js → CT2FKPPM.js} +1 -1
- package/dist/cdn/{SZ2MBNWL.js → CX3ITF26.js} +1 -1
- package/dist/cdn/{R4FF5IWV.js → CXTDJBT6.js} +1 -1
- package/dist/cdn/{JOUMSSLR.js → D63RFX5A.js} +1 -1
- package/dist/cdn/{X4664GHQ.js → DCMODJHW.js} +1 -1
- package/dist/cdn/DQHCZ3GL.js +2 -0
- package/dist/cdn/{IMSF5AEZ.js → DRSMHEFR.js} +1 -1
- package/dist/cdn/{KZZIMABM.js → DZP2VTFH.js} +1 -1
- package/dist/cdn/{V2P7YNIS.js → E5KIXCCC.js} +1 -1
- package/dist/cdn/{VYCRAT4K.js → EIHYF6VW.js} +1 -1
- package/dist/cdn/{5GLXBFTG.js → EKKCMNBR.js} +1 -1
- package/dist/cdn/{QO2ZEPIF.js → EOXHTQO2.js} +1 -1
- package/dist/cdn/{HPRP3IKV.js → EPVJQSLL.js} +1 -1
- package/dist/cdn/{OUKN3YHU.js → ET3AMTRY.js} +1 -1
- package/dist/cdn/{SWY3JKKX.js → EVGS6CXU.js} +1 -1
- package/dist/cdn/{L4ZKVFNO.js → EWFX3S6W.js} +1 -1
- package/dist/cdn/{43BKUZZE.js → F4UCPTEW.js} +1 -1
- package/dist/cdn/{OZH33NYW.js → FFE4BR4U.js} +1 -1
- package/dist/cdn/{EIHGISPV.js → FOSHY57T.js} +1 -1
- package/dist/cdn/{BVC4AGUC.js → FSNESSE7.js} +1 -1
- package/dist/cdn/{ISLSKQVK.js → FVLSGSVY.js} +1 -1
- package/dist/cdn/{HS2QCKGL.js → FXCICSY5.js} +1 -1
- package/dist/cdn/{IWVQBLWT.js → G3QTPBTE.js} +1 -1
- package/dist/cdn/{FINEGGPR.js → G7A4BIWV.js} +1 -1
- package/dist/cdn/{6DQLBG5Q.js → GBI3S7HT.js} +1 -1
- package/dist/cdn/{N3KQRLEY.js → GC5PZN5Z.js} +1 -1
- package/dist/cdn/{FYURKKPO.js → GHLCFGEV.js} +1 -1
- package/dist/cdn/{HMNUDV6B.js → GUJBMQF2.js} +1 -1
- package/dist/cdn/{CBYEYXQC.js → GVT2GFEN.js} +1 -1
- package/dist/cdn/{OE5V4MI6.js → H2RF4GKM.js} +1 -1
- package/dist/cdn/{UODGE27P.js → H6ILY54E.js} +1 -1
- package/dist/cdn/{PEMIUFB2.js → HFC4KHRI.js} +1 -1
- package/dist/cdn/{2YLQST6F.js → HLFFPZYE.js} +1 -1
- package/dist/cdn/{MI5MWEFP.js → HSHTTNED.js} +1 -1
- package/dist/cdn/{HU2C27BQ.js → I5POEUOZ.js} +1 -1
- package/dist/cdn/{TOVVPICH.js → I7LEYQQJ.js} +1 -1
- package/dist/cdn/{ENQCIUCH.js → IBXUS7PZ.js} +1 -1
- package/dist/cdn/{4Y7BN2L3.js → IGJLIYTH.js} +1 -1
- package/dist/cdn/{LPW2YGBS.js → IHCSOML7.js} +1 -1
- package/dist/cdn/{5NFUN7TZ.js → IHDBTLHW.js} +1 -1
- package/dist/cdn/{CFCOLB4A.js → IKICZ3HC.js} +1 -1
- package/dist/cdn/{4DPPQD2Z.js → IP4ID66L.js} +1 -1
- package/dist/cdn/{K4LQ4LWP.js → IQSWTFAF.js} +1 -1
- package/dist/cdn/{E33WGWET.js → IQZHD5AD.js} +1 -1
- package/dist/cdn/{N752J3UV.js → IT2GT7DB.js} +1 -1
- package/dist/cdn/{WMNSCSAQ.js → IYXYWOO3.js} +1 -1
- package/dist/cdn/{CJGGAMVX.js → J2AQSMOV.js} +1 -1
- package/dist/cdn/{EFDENXSZ.js → J34EQWSB.js} +1 -1
- package/dist/cdn/{LER6RQ75.js → J7S2RMRO.js} +1 -1
- package/dist/cdn/{ZUXIFYIP.js → JDA2BZNM.js} +1 -1
- package/dist/cdn/{MEKADOT3.js → JPWLRQOT.js} +1 -1
- package/dist/cdn/{G53RVHMO.js → JQFXUJOV.js} +1 -1
- package/dist/cdn/{BZ4IIPLI.js → JSPPQL4U.js} +1 -1
- package/dist/cdn/{CFL7WBUR.js → JVAECCFT.js} +1 -1
- package/dist/cdn/{DVXPNVSG.js → JWDSNVRR.js} +1 -1
- package/dist/cdn/{A76EYHCS.js → K3JRFEE7.js} +1 -1
- package/dist/cdn/{INLVO3GL.js → KFUTBZOO.js} +1 -1
- package/dist/cdn/{2ESR6HXK.js → KKUAJFZQ.js} +1 -1
- package/dist/cdn/{EUFWFKTY.js → KQKIDQQS.js} +1 -1
- package/dist/cdn/{VVKGMQUS.js → KR2U2ZZP.js} +1 -1
- package/dist/cdn/{RH77SOXE.js → KR6YN3O3.js} +1 -1
- package/dist/cdn/{QMUOLA2P.js → KRGDBPWO.js} +1 -1
- package/dist/cdn/{DBB3S5HF.js → KYAQNSJK.js} +1 -1
- package/dist/cdn/{HSL5NISC.js → L2CJL253.js} +1 -1
- package/dist/cdn/{M2SMYCYM.js → L3NU3HUD.js} +1 -1
- package/dist/cdn/{5UCEBVXR.js → LGB4533I.js} +1 -1
- package/dist/cdn/{TSJALH7D.js → LHN7FRA6.js} +1 -1
- package/dist/cdn/{2PORQMMM.js → LIHOYQ5C.js} +1 -1
- package/dist/cdn/{UCU2ER3C.js → LLJIPGRC.js} +1 -1
- package/dist/cdn/{O3J3HY24.js → LLQ4ODTJ.js} +1 -1
- package/dist/cdn/LNGOJRXU.js +2 -0
- package/dist/cdn/{33VJMWDL.js → LTZ3FAJ2.js} +1 -1
- package/dist/cdn/LX5LSM5Q.js +2 -0
- package/dist/cdn/{DD7PYQG3.js → M3QI6HUF.js} +1 -1
- package/dist/cdn/{QUHWDL3G.js → M5TJOMYV.js} +1 -1
- package/dist/cdn/{4YPMLEH3.js → MELBRL26.js} +1 -1
- package/dist/cdn/{QU76OLVX.js → MGYPFZMP.js} +1 -1
- package/dist/cdn/{FOZLLHZ2.js → MYUQ76RJ.js} +1 -1
- package/dist/cdn/{IE4VI6Q5.js → N2YI6STO.js} +1 -1
- package/dist/cdn/{OLCPC6NR.js → N3RFPRSV.js} +1 -1
- package/dist/cdn/{L33NG2CB.js → N6XUHWOK.js} +1 -1
- package/dist/cdn/{VSSJMGPA.js → N7KNMQG4.js} +1 -1
- package/dist/cdn/{BUTHXRHI.js → NHSQFSAA.js} +1 -1
- package/dist/cdn/{573HDEUM.js → NJMCPIFZ.js} +1 -1
- package/dist/cdn/{XJH3BCSR.js → NSG72ZRY.js} +1 -1
- package/dist/cdn/O732HICJ.js +2 -0
- package/dist/cdn/{BK5IYTR7.js → OM2SD4GL.js} +1 -1
- package/dist/cdn/{EFEF5BPC.js → OMUC52J7.js} +1 -1
- package/dist/cdn/{Z63J3RPC.js → ORYW2UQT.js} +1 -1
- package/dist/cdn/{QUREQ3LI.js → OY6G7WRA.js} +1 -1
- package/dist/cdn/{6RMUSGTH.js → OYNAYGVL.js} +1 -1
- package/dist/cdn/{EPIT7U5X.js → P2FI3VPB.js} +1 -1
- package/dist/cdn/{6O5CGO2B.js → P4OS2WZH.js} +1 -1
- package/dist/cdn/{5JEBFB6A.js → PDWSSARA.js} +1 -1
- package/dist/cdn/{TNIPSP6H.js → PFJCXICQ.js} +1 -1
- package/dist/cdn/{HWQ5TP4Y.js → PFQRBZ2R.js} +1 -1
- package/dist/cdn/{RWSG4OQ6.js → PN7IQC6W.js} +1 -1
- package/dist/cdn/{HUFVEIMR.js → PNVLJFRT.js} +1 -1
- package/dist/cdn/{3V5DH2CM.js → PRFZO7H6.js} +1 -1
- package/dist/cdn/{UKE3QTSI.js → PSFCLXN5.js} +1 -1
- package/dist/cdn/{RGWLIQYJ.js → PVRW6GH7.js} +1 -1
- package/dist/cdn/{XNBSD7VT.js → Q2SWQJE6.js} +1 -1
- package/dist/cdn/{ABE4L2X7.js → Q63AT47X.js} +1 -1
- package/dist/cdn/{7RTMHA5A.js → QA5RFYFB.js} +1 -1
- package/dist/cdn/{CUGAOVOP.js → QAJBMGDR.js} +1 -1
- package/dist/cdn/{MBJVE6CP.js → QD3OFZ2J.js} +1 -1
- package/dist/cdn/{7BSWFIVR.js → QIJRUWBL.js} +1 -1
- package/dist/cdn/{KV3OYCZ7.js → QTG7XJYB.js} +1 -1
- package/dist/cdn/{ZEQYZ4ZW.js → R4Q6JNRI.js} +1 -1
- package/dist/cdn/{KQLKJSEY.js → RBMOB27D.js} +1 -1
- package/dist/cdn/{3NUB4VDM.js → RJKZS5XK.js} +1 -1
- package/dist/cdn/{F3UZD22N.js → RKXKEH6J.js} +1 -1
- package/dist/cdn/{RXVD7ZU6.js → RRH22QQ2.js} +1 -1
- package/dist/cdn/{2PA6LDHI.js → SM6MR5K2.js} +1 -1
- package/dist/cdn/{FGLF4QBF.js → SNOZLLMJ.js} +1 -1
- package/dist/cdn/{NGKCLUQ2.js → SR4GFBQA.js} +1 -1
- package/dist/cdn/{ZBMGDCTS.js → SRCRLI72.js} +1 -1
- package/dist/cdn/{QH4GJ2BO.js → SZ7ZEH3R.js} +1 -1
- package/dist/cdn/{BJ7M3LN3.js → TCA3STHX.js} +1 -1
- package/dist/cdn/{PZP5NOWP.js → TCM7WFJG.js} +1 -1
- package/dist/cdn/{ZDQXM6XT.js → TGUKY5BV.js} +1 -1
- package/dist/cdn/{HZAC5NDN.js → TJARXZLB.js} +1 -1
- package/dist/cdn/{XU25D2RJ.js → TKARK2DA.js} +1 -1
- package/dist/cdn/{BBDC5ATP.js → TLYTTPKY.js} +1 -1
- package/dist/cdn/{PX2BP3QJ.js → TQ575YV3.js} +1 -1
- package/dist/cdn/{LKYMB7CE.js → TZAXZBZE.js} +1 -1
- package/dist/cdn/UCKIFBYB.js +2 -0
- package/dist/cdn/{7P4SZTMT.js → UGT27E2V.js} +1 -1
- package/dist/cdn/{CSU3RGEL.js → UHD4YMRP.js} +1 -1
- package/dist/cdn/{HVYYARZW.js → UILEONAZ.js} +1 -1
- package/dist/cdn/{MDR5OYC4.js → VBTS3CGO.js} +1 -1
- package/dist/cdn/{XISYCTAZ.js → VO55IV6O.js} +1 -1
- package/dist/cdn/{AU6P56XQ.js → VQA4JWFN.js} +1 -1
- package/dist/cdn/{VXWCNLKB.js → VS4MAZKF.js} +1 -1
- package/dist/cdn/{NV4G572Q.js → VUII7ELM.js} +1 -1
- package/dist/cdn/{YYCNECYH.js → VVANDM5M.js} +1 -1
- package/dist/cdn/{7LN27COB.js → W2CLHJ6A.js} +1 -1
- package/dist/cdn/{KRADCNV2.js → W355TFUU.js} +1 -1
- package/dist/cdn/{R4SLSV5W.js → WFAAFMGR.js} +1 -1
- package/dist/cdn/{ULKZFCQF.js → WFZTUML4.js} +1 -1
- package/dist/cdn/{ZFSB47NV.js → WKHN5ZBO.js} +1 -1
- package/dist/cdn/{UOVNWT76.js → WN7MNBKM.js} +1 -1
- package/dist/cdn/{Z6JYZ2A2.js → WP3MOYXQ.js} +1 -1
- package/dist/cdn/{6OM3S3VY.js → WQXVE4SB.js} +1 -1
- package/dist/cdn/{UWBE2BAD.js → WRK3X32B.js} +1 -1
- package/dist/cdn/{MLK57Q43.js → WRPJRTIN.js} +1 -1
- package/dist/cdn/{OYTZB4RW.js → X4ENFTQO.js} +1 -1
- package/dist/cdn/{UBKX3LIA.js → XFBYFL4O.js} +1 -1
- package/dist/cdn/{WBKMEMM2.js → XIAIN2RU.js} +1 -1
- package/dist/cdn/XIOYOF7O.js +2 -0
- package/dist/cdn/{7F5OYOAD.js → Y74J36IW.js} +1 -1
- package/dist/cdn/{N3MO46HF.js → YCYJSSWI.js} +1 -1
- package/dist/cdn/{GNNMPXCN.js → YEAFBG27.js} +1 -1
- package/dist/cdn/{IPAXUWEW.js → YLOVYSB5.js} +1 -1
- package/dist/cdn/{LVKNCPIL.js → YV6OK6HI.js} +1 -1
- package/dist/cdn/{CXNASRAI.js → Z5FRTAZ2.js} +1 -1
- package/dist/cdn/{MJ2DQQWP.js → Z5SUGRYX.js} +1 -1
- package/dist/cdn/ZDM75J6U.js +2 -0
- package/dist/cdn/{Q5DGZBR4.js → ZLVXLLT6.js} +1 -1
- package/dist/cdn/{NUB6LAXA.js → ZYIVLEWG.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +86 -93
- 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-legend-card-view/customElement.js +1 -1
- package/dist/components/arcgis-popup/customElement.d.ts +0 -9
- package/dist/components/arcgis-popup/customElement.js +0 -3
- package/dist/components/arcgis-search/customElement.js +20 -20
- package/dist/components/arcgis-sketch-tooltip-controls/customElement.d.ts +6 -0
- 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/5UIAH4FZ.js +0 -2
- package/dist/cdn/6NACBAL7.js +0 -2
- package/dist/cdn/7N5OXSRE.js +0 -2
- package/dist/cdn/DYAZ6LMG.js +0 -2
- package/dist/cdn/IO7J23AF.js +0 -2
- package/dist/cdn/L7J3QTQK.js +0 -2
- package/dist/cdn/NUBDURYZ.js +0 -2
- package/dist/cdn/QA74OQK6.js +0 -2
|
@@ -11,15 +11,14 @@ import { watch as A } from "@arcgis/core/core/reactiveUtils.js";
|
|
|
11
11
|
import * as x from "@arcgis/core/core/sql.js";
|
|
12
12
|
import P from "@arcgis/core/rest/networks/support/NetworkElement.js";
|
|
13
13
|
import U from "@arcgis/core/rest/networks/support/QueryAssociationsParameters.js";
|
|
14
|
-
import Q from "@arcgis/
|
|
15
|
-
import { LitElement as B, renderElement as q } from "@arcgis/lumina";
|
|
14
|
+
import { LitElement as Q, renderElement as q } from "@arcgis/lumina";
|
|
16
15
|
import { debounce as T } from "@arcgis/toolkit/function";
|
|
17
16
|
import G from "@arcgis/core/popup/Feature.js";
|
|
18
|
-
const
|
|
17
|
+
const B = M`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`, L = 100, $ = {
|
|
19
18
|
assetGroup: "assetgroup",
|
|
20
19
|
assetType: "assettype"
|
|
21
20
|
}, N = "{00000000-0000-0000-0000-000000000000}";
|
|
22
|
-
class
|
|
21
|
+
class R extends Q {
|
|
23
22
|
constructor() {
|
|
24
23
|
super(...arguments), this._addFlowItem = (t) => {
|
|
25
24
|
t && this.flowItems?.push(t);
|
|
@@ -51,7 +50,7 @@ class O extends B {
|
|
|
51
50
|
this.properties = { _activeAssociationType: 16, _associationFeatures: 16, _associationViewModels: 16, _canLoad: 16, _canQuery: 16, _featureCount: 16, _loaded: 16, _queryAbortController: 16, _queryFeatureCountAbortController: 16, _queryPageAbortController: 16, _state: 16, associationTypes: 0, autoDestroyDisabled: 5, description: 1, flowItems: 0, useFeatureNextFlowItem: 5, flowType: 1, graphic: 0, heading: 1, headingLevel: 9, layer: 0, map: 0, messages: 0, parentFeatureViewModel: 0, referenceElement: 1, source: 1, spatialReference: 0, timeZone: 1, view: 0 };
|
|
52
51
|
}
|
|
53
52
|
static {
|
|
54
|
-
this.styles =
|
|
53
|
+
this.styles = B;
|
|
55
54
|
}
|
|
56
55
|
get _globalId() {
|
|
57
56
|
return (this._globalIdField && this.graphic?.attributes?.[this._globalIdField]) ?? null;
|
|
@@ -82,8 +81,8 @@ class O extends B {
|
|
|
82
81
|
return !!this.layer?.capabilities?.query?.supportsPagination;
|
|
83
82
|
}
|
|
84
83
|
get _state() {
|
|
85
|
-
const { _canLoad: t, _canQuery: e, _featureCount: s, _loaded: o, _queryAbortController: i, _queryFeatureCountAbortController: a, _queryPageAbortController:
|
|
86
|
-
return a || t && !o ? "loading" : i ||
|
|
84
|
+
const { _canLoad: t, _canQuery: e, _featureCount: s, _loaded: o, _queryAbortController: i, _queryFeatureCountAbortController: a, _queryPageAbortController: r, associationTypes: c } = this;
|
|
85
|
+
return a || t && !o ? "loading" : i || r ? "querying" : !this._globalId || !c || !e || !s ? "disabled" : "ready";
|
|
87
86
|
}
|
|
88
87
|
get heading() {
|
|
89
88
|
return this._heading;
|
|
@@ -133,12 +132,8 @@ class O extends B {
|
|
|
133
132
|
});
|
|
134
133
|
}
|
|
135
134
|
async _countAssociatedFeatureCount(t, e, s, o, i) {
|
|
136
|
-
const a = this._getFeatureQueryWhereClause(t, e, s, o);
|
|
137
|
-
return await t.queryFeatureCount({
|
|
138
|
-
where: a,
|
|
139
|
-
outFields: ["*"],
|
|
140
|
-
returnGeometry: !1
|
|
141
|
-
}, {
|
|
135
|
+
const a = this._getFeatureQueryWhereClause(t, e, s, o), r = t.createQuery();
|
|
136
|
+
return r.where = a, r.outFields = ["*"], r.returnGeometry = !1, await t.queryFeatureCount(r, {
|
|
142
137
|
signal: i?.signal
|
|
143
138
|
});
|
|
144
139
|
}
|
|
@@ -147,18 +142,18 @@ class O extends B {
|
|
|
147
142
|
return 0;
|
|
148
143
|
const a = await this._findLayersBySourceId(t);
|
|
149
144
|
await this._loadLayers(a);
|
|
150
|
-
const
|
|
151
|
-
return (await Promise.all(
|
|
145
|
+
const r = a.map((l) => this._countAssociatedFeatureCount(l, e, s, o, i));
|
|
146
|
+
return (await Promise.all(r)).reduce((l, d) => l + d, 0);
|
|
152
147
|
}
|
|
153
148
|
async _createAssociationFeatureObjects(t, e, s, o, i) {
|
|
154
149
|
if (!t.length)
|
|
155
150
|
return [];
|
|
156
|
-
const a = /* @__PURE__ */ new Map(),
|
|
157
|
-
const
|
|
158
|
-
await this._loadLayers(
|
|
159
|
-
const y =
|
|
160
|
-
(await Promise.all(y)).forEach((
|
|
161
|
-
|
|
151
|
+
const a = /* @__PURE__ */ new Map(), r = Array.from(e.entries()).map(async ([l, d]) => {
|
|
152
|
+
const u = await this._findLayersBySourceId(l);
|
|
153
|
+
await this._loadLayers(u);
|
|
154
|
+
const y = u.map((n) => this._queryLayer(n, d, s, o, i));
|
|
155
|
+
(await Promise.all(y)).forEach((n) => {
|
|
156
|
+
n.forEach((h) => {
|
|
162
157
|
if (this.source === "popup" ? h.sourceLayer && h.getEffectivePopupTemplate() : !!h.sourceLayer) {
|
|
163
158
|
const f = h.layer.globalIdField ?? "", g = h.getAttribute(f), F = a.get(g) ?? [];
|
|
164
159
|
F.push(h), a.set(g, F);
|
|
@@ -166,38 +161,38 @@ class O extends B {
|
|
|
166
161
|
});
|
|
167
162
|
});
|
|
168
163
|
});
|
|
169
|
-
await Promise.all(
|
|
170
|
-
const
|
|
171
|
-
return await Promise.all(t.toArray().map(async (
|
|
172
|
-
const { fromNetworkElement: d, toNetworkElement:
|
|
173
|
-
await Promise.all(p.map(async (
|
|
174
|
-
const h = this._utilityNetwork?.getTerminalById(y?.terminalId ?? void 0)?.name, _ = await
|
|
175
|
-
|
|
164
|
+
await Promise.all(r);
|
|
165
|
+
const c = [];
|
|
166
|
+
return await Promise.all(t.toArray().map(async (l) => {
|
|
167
|
+
const { fromNetworkElement: d, toNetworkElement: u } = l, y = d.globalId === this._globalId ? u : d, p = a.get(y.globalId) ?? [];
|
|
168
|
+
await Promise.all(p.map(async (n) => {
|
|
169
|
+
const h = this._utilityNetwork?.getTerminalById(y?.terminalId ?? void 0)?.name, _ = await n.sourceLayer.getFeatureTitle(n) || this._getFeatureTitle(n);
|
|
170
|
+
c.push({
|
|
176
171
|
title: _,
|
|
177
|
-
feature:
|
|
178
|
-
association:
|
|
172
|
+
feature: n,
|
|
173
|
+
association: l,
|
|
179
174
|
terminalName: h
|
|
180
175
|
});
|
|
181
176
|
}));
|
|
182
|
-
})),
|
|
177
|
+
})), c;
|
|
183
178
|
}
|
|
184
179
|
_destroyAssociatedFeatureViewModels() {
|
|
185
180
|
this._associationViewModels.forEach((t) => t.destroyAll());
|
|
186
181
|
}
|
|
187
182
|
_equals(t, e) {
|
|
188
183
|
if (t.globalId === N && e.globalId === N) {
|
|
189
|
-
let s = function(d,
|
|
190
|
-
return d.networkSourceId ===
|
|
184
|
+
let s = function(d, u) {
|
|
185
|
+
return d.networkSourceId === u.networkSourceId && d.globalId === u.globalId && d.terminalId === u.terminalId && d.firstUnit === u.firstUnit && d.numUnits === u.numUnits;
|
|
191
186
|
};
|
|
192
|
-
const o = t.fromNetworkElement, i = t.toNetworkElement, a = e.fromNetworkElement,
|
|
193
|
-
return
|
|
187
|
+
const o = t.fromNetworkElement, i = t.toNetworkElement, a = e.fromNetworkElement, r = e.toNetworkElement, c = s(o, a), l = s(i, r);
|
|
188
|
+
return c && l && t.associationType === e.associationType;
|
|
194
189
|
}
|
|
195
190
|
return t.globalId != null && e.globalId != null && t.globalId === e.globalId;
|
|
196
191
|
}
|
|
197
192
|
async _findLayersBySourceId(t) {
|
|
198
193
|
const { _utilityNetwork: e, map: s } = this;
|
|
199
194
|
e?.loaded || await e?.load();
|
|
200
|
-
const o = e.getLayerIdBySourceId(t), i = s.allLayers.filter((
|
|
195
|
+
const o = e.getLayerIdBySourceId(t), i = s.allLayers.filter((c) => !!e?.isUtilityLayer(c) && c.layerId === o), a = s.allTables.filter((c) => !!e?.isUtilityLayer(c) && c.layerId === o);
|
|
201
196
|
return i.concat(a).toArray();
|
|
202
197
|
}
|
|
203
198
|
_getAssociationsByType(t) {
|
|
@@ -246,15 +241,15 @@ class O extends B {
|
|
|
246
241
|
}
|
|
247
242
|
}
|
|
248
243
|
_getFeatureQueryWhereClause(t, e, s, o) {
|
|
249
|
-
const i = t.globalIdField, a = t.fieldsIndex.get($.assetGroup),
|
|
250
|
-
return [d,
|
|
244
|
+
const i = t.globalIdField, a = t.fieldsIndex.get($.assetGroup), r = t.fieldsIndex.get($.assetType), c = s != null, l = o != null, d = i ? x.sqlIn(i, e) : null, u = c ? `(${a?.name} = ${s})` : null, y = c && l ? `(${r?.name} = ${o})` : null;
|
|
245
|
+
return [d, u, y].filter(Boolean).join(" AND ");
|
|
251
246
|
}
|
|
252
247
|
_getFeatureTitle(t) {
|
|
253
248
|
const e = t.attributes, s = t.sourceLayer;
|
|
254
249
|
if (!e || !s)
|
|
255
250
|
return "";
|
|
256
|
-
const o = "displayField" in s ? s.displayField : null, i = o != null ? e[o.toString()] : null, a = i != null ? i.toString() : null,
|
|
257
|
-
return a ||
|
|
251
|
+
const o = "displayField" in s ? s.displayField : null, i = o != null ? e[o.toString()] : null, a = i != null ? i.toString() : null, r = t.getObjectId()?.toString();
|
|
252
|
+
return a || r || "";
|
|
258
253
|
}
|
|
259
254
|
_getParentFeatureDescription() {
|
|
260
255
|
const { parentFeatureViewModel: t } = this;
|
|
@@ -289,12 +284,12 @@ class O extends B {
|
|
|
289
284
|
return this._equals(t.association, e.association);
|
|
290
285
|
}
|
|
291
286
|
async _queryAssociatedFeatures(t, e) {
|
|
292
|
-
const { layer: s, _globalId: o, associationTypes: i, _utilityNetwork: a, _canQuery:
|
|
293
|
-
if (await Promise.allSettled([s?.load(), a?.load()]), !
|
|
287
|
+
const { layer: s, _globalId: o, associationTypes: i, _utilityNetwork: a, _canQuery: r, _associationFeatures: c } = this;
|
|
288
|
+
if (await Promise.allSettled([s?.load(), a?.load()]), !r || !s || !i || !a)
|
|
294
289
|
return;
|
|
295
|
-
const
|
|
296
|
-
|
|
297
|
-
const { fromNetworkElement: h, toNetworkElement: _ } =
|
|
290
|
+
const l = this._getAssociationsByType(t.type), { associatedAssetGroup: d, associatedAssetType: u } = t, y = /* @__PURE__ */ new Map();
|
|
291
|
+
l.forEach((n) => {
|
|
292
|
+
const { fromNetworkElement: h, toNetworkElement: _ } = n, { networkSourceId: f, elementGlobalId: g } = h.globalId === o ? {
|
|
298
293
|
networkSourceId: _.networkSourceId,
|
|
299
294
|
elementGlobalId: _.globalId
|
|
300
295
|
} : {
|
|
@@ -303,52 +298,52 @@ class O extends B {
|
|
|
303
298
|
}, F = y.get(f) || [];
|
|
304
299
|
F.push(g), y.set(f, F);
|
|
305
300
|
});
|
|
306
|
-
const p = await this._createAssociationFeatureObjects(
|
|
307
|
-
this._parseFeatureObjects(p,
|
|
301
|
+
const p = await this._createAssociationFeatureObjects(l, y, d, u, e);
|
|
302
|
+
this._parseFeatureObjects(p, c);
|
|
308
303
|
}
|
|
309
304
|
async _queryAssociations(t) {
|
|
310
305
|
const { layer: e, _globalId: s, associationTypes: o, _utilityNetwork: i, _canQuery: a } = this;
|
|
311
306
|
if (await Promise.allSettled([e?.load(), i?.load()]), this._clearAssociations(), !a || !e || !o || !i || !s)
|
|
312
307
|
return;
|
|
313
|
-
const
|
|
308
|
+
const r = k(e) ? e.parent : e, c = new P({
|
|
314
309
|
globalId: s,
|
|
315
|
-
networkSourceId: i.getSourceIdByLayerId(
|
|
316
|
-
}),
|
|
317
|
-
o.forEach((
|
|
318
|
-
switch (
|
|
310
|
+
networkSourceId: i.getSourceIdByLayerId(r.layerId)
|
|
311
|
+
}), l = /* @__PURE__ */ new Set();
|
|
312
|
+
o.forEach((n) => {
|
|
313
|
+
switch (n.type) {
|
|
319
314
|
case "attachment":
|
|
320
315
|
case "structure":
|
|
321
|
-
|
|
316
|
+
l.add("attachment");
|
|
322
317
|
break;
|
|
323
318
|
case "container":
|
|
324
319
|
case "content":
|
|
325
|
-
|
|
320
|
+
l.add("containment");
|
|
326
321
|
break;
|
|
327
322
|
case "connectivity":
|
|
328
|
-
|
|
323
|
+
l.add("connectivity"), l.add("junction-junction-connectivity"), l.add("junction-edge-from-connectivity"), l.add("junction-edge-midspan-connectivity"), l.add("junction-edge-to-connectivity");
|
|
329
324
|
break;
|
|
330
325
|
}
|
|
331
326
|
});
|
|
332
327
|
const d = await i?.queryAssociations(new U({
|
|
333
|
-
elements: [
|
|
334
|
-
types: Array.from(
|
|
328
|
+
elements: [c],
|
|
329
|
+
types: Array.from(l)
|
|
335
330
|
}), {
|
|
336
331
|
signal: t?.signal
|
|
337
|
-
}),
|
|
338
|
-
o.forEach((
|
|
339
|
-
y.set(
|
|
340
|
-
}), d.forEach((
|
|
341
|
-
const { toNetworkElement: h, fromNetworkElement: _ } =
|
|
342
|
-
switch (
|
|
332
|
+
}), u = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map();
|
|
333
|
+
o.forEach((n) => {
|
|
334
|
+
y.set(n.type, n), u.set(n.type, []);
|
|
335
|
+
}), d.forEach((n) => {
|
|
336
|
+
const { toNetworkElement: h, fromNetworkElement: _ } = n;
|
|
337
|
+
switch (n.associationType) {
|
|
343
338
|
case "attachment":
|
|
344
339
|
if (_?.globalId === s) {
|
|
345
340
|
if (this._shouldDiscardNetworkElement(h, "attachment", y))
|
|
346
341
|
break;
|
|
347
|
-
|
|
342
|
+
u.get("attachment")?.push(h.globalId), this._attachmentAssociations.add(n);
|
|
348
343
|
} else {
|
|
349
344
|
if (this._shouldDiscardNetworkElement(_, "structure", y))
|
|
350
345
|
break;
|
|
351
|
-
|
|
346
|
+
u.get("structure")?.push(_.globalId), this._structureAssociations.add(n);
|
|
352
347
|
}
|
|
353
348
|
break;
|
|
354
349
|
case "connectivity":
|
|
@@ -359,30 +354,30 @@ class O extends B {
|
|
|
359
354
|
if (_?.globalId === s) {
|
|
360
355
|
if (this._shouldDiscardNetworkElement(h, "connectivity", y))
|
|
361
356
|
break;
|
|
362
|
-
|
|
357
|
+
u.get("connectivity")?.push(h.globalId);
|
|
363
358
|
} else {
|
|
364
359
|
if (this._shouldDiscardNetworkElement(_, "connectivity", y))
|
|
365
360
|
break;
|
|
366
|
-
|
|
361
|
+
u.get("connectivity")?.push(_.globalId);
|
|
367
362
|
}
|
|
368
|
-
this._connectivityAssociations.add(
|
|
363
|
+
this._connectivityAssociations.add(n);
|
|
369
364
|
break;
|
|
370
365
|
case "containment":
|
|
371
366
|
if (_?.globalId === s) {
|
|
372
367
|
if (this._shouldDiscardNetworkElement(h, "content", y))
|
|
373
368
|
break;
|
|
374
|
-
|
|
369
|
+
u.get("content")?.push(h.globalId), this._contentAssociations.add(n);
|
|
375
370
|
} else {
|
|
376
371
|
if (this._shouldDiscardNetworkElement(_, "container", y))
|
|
377
372
|
break;
|
|
378
|
-
|
|
373
|
+
u.get("container")?.push(_.globalId), this._containerAssociations.add(n);
|
|
379
374
|
}
|
|
380
375
|
break;
|
|
381
376
|
}
|
|
382
377
|
});
|
|
383
|
-
const p = o.map(async (
|
|
384
|
-
const { associatedNetworkSourceId: h, associatedAssetGroup: _, associatedAssetType: f } =
|
|
385
|
-
switch (
|
|
378
|
+
const p = o.map(async (n) => {
|
|
379
|
+
const { associatedNetworkSourceId: h, associatedAssetGroup: _, associatedAssetType: f } = n, g = u.get(n.type), b = _ != null ? await this._countAssociatedFeatures(h, g, _, f, t) : g.length;
|
|
380
|
+
switch (n.type) {
|
|
386
381
|
case "attachment":
|
|
387
382
|
this._attachmentFeatureCount = b;
|
|
388
383
|
break;
|
|
@@ -412,12 +407,10 @@ class O extends B {
|
|
|
412
407
|
await this._queryAssociations(t), this._featureCount = this._attachmentFeatureCount + this._connectivityFeatureCount + this._containerFeatureCount + this._contentFeatureCount + this._structureFeatureCount;
|
|
413
408
|
}
|
|
414
409
|
async _queryLayer(t, e, s, o, i) {
|
|
415
|
-
const a = this._getFeatureQueryWhereClause(t, e, s, o),
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
}), { features: n } = await D(t, u, i);
|
|
420
|
-
return n;
|
|
410
|
+
const a = this._getFeatureQueryWhereClause(t, e, s, o), r = t.createQuery();
|
|
411
|
+
r.where = a, r.outFields = ["*"], r.returnGeometry = !1, r.cacheHint = this._supportsCacheHint;
|
|
412
|
+
const { features: c } = await D(t, r, i);
|
|
413
|
+
return c;
|
|
421
414
|
}
|
|
422
415
|
_parseFeatureObjects(t, e) {
|
|
423
416
|
const s = I();
|
|
@@ -434,20 +427,20 @@ class O extends B {
|
|
|
434
427
|
}
|
|
435
428
|
_setUpUtilityNetworkAssociationsViewModels() {
|
|
436
429
|
this._associationViewModels.forEach((i, a) => {
|
|
437
|
-
const
|
|
438
|
-
|
|
439
|
-
|
|
430
|
+
const r = this._associationFeatures.get(a);
|
|
431
|
+
r ? i.forEach((c) => {
|
|
432
|
+
r.find((d) => this._matchesGlobalFeature(c, d)) || (i.remove(c), i.length || this._associationViewModels.delete(a));
|
|
440
433
|
}) : (i.removeAll(), this._associationViewModels.delete(a));
|
|
441
434
|
});
|
|
442
435
|
const { map: t, view: e, spatialReference: s, timeZone: o } = this;
|
|
443
436
|
this._associationFeatures.forEach((i, a) => {
|
|
444
|
-
const
|
|
445
|
-
i?.filter(Boolean).forEach((
|
|
446
|
-
if (!
|
|
447
|
-
const { association:
|
|
448
|
-
|
|
449
|
-
title:
|
|
450
|
-
association:
|
|
437
|
+
const r = this._associationViewModels.get(a) || new w();
|
|
438
|
+
i?.filter(Boolean).forEach((c, l) => {
|
|
439
|
+
if (!r.some((u) => this._matchesGlobalFeature(u, c))) {
|
|
440
|
+
const { association: u, feature: y, terminalName: p, title: n } = c;
|
|
441
|
+
r.add({
|
|
442
|
+
title: n,
|
|
443
|
+
association: u,
|
|
451
444
|
featureViewModel: new G({
|
|
452
445
|
abilities: { utilityNetworkAssociationsContent: !1 },
|
|
453
446
|
map: t,
|
|
@@ -457,9 +450,9 @@ class O extends B {
|
|
|
457
450
|
graphic: y
|
|
458
451
|
}),
|
|
459
452
|
terminalName: p
|
|
460
|
-
},
|
|
453
|
+
}, l);
|
|
461
454
|
}
|
|
462
|
-
}), this._associationViewModels.set(a,
|
|
455
|
+
}), this._associationViewModels.set(a, r);
|
|
463
456
|
});
|
|
464
457
|
}
|
|
465
458
|
_shouldDiscardNetworkElement(t, e, s) {
|
|
@@ -499,7 +492,7 @@ class O extends B {
|
|
|
499
492
|
return this._state === "querying" ? m`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>` : null;
|
|
500
493
|
}
|
|
501
494
|
}
|
|
502
|
-
S("arcgis-feature-utility-network-associations",
|
|
495
|
+
S("arcgis-feature-utility-network-associations", R);
|
|
503
496
|
export {
|
|
504
|
-
|
|
497
|
+
R as ArcgisFeatureUtilityNetworkAssociations
|
|
505
498
|
};
|
|
@@ -647,9 +647,9 @@ export abstract class ArcgisFeatures extends LitElement {
|
|
|
647
647
|
*/
|
|
648
648
|
setFocus(): Promise<void>;
|
|
649
649
|
/**
|
|
650
|
-
* Triggers the [@arcgisTriggerAction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#event-arcgisTriggerAction) event and executes the action
|
|
651
|
-
* at the specified index in the [actions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#actions) array.
|
|
650
|
+
* Triggers the [@arcgisTriggerAction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#event-arcgisTriggerAction) event and executes the specified default action.
|
|
652
651
|
*
|
|
652
|
+
* @deprecated since 5.1. Trigger actions with manual user interaction within the component.
|
|
653
653
|
* @param action
|
|
654
654
|
*/
|
|
655
655
|
triggerAction(action: ActionButton | ActionToggle): Promise<void>;
|
|
@@ -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);
|