@arcgis/map-components 5.1.4 → 5.1.5
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/{ZBMGDCTS.js → 24CX3MDO.js} +1 -1
- package/dist/cdn/{7P4SZTMT.js → 264N47JI.js} +1 -1
- package/dist/cdn/{NGKCLUQ2.js → 26OIDIMC.js} +1 -1
- package/dist/cdn/{ONJTK4SF.js → 2B5DP2YU.js} +1 -1
- package/dist/cdn/{3SIYO7ZN.js → 2BCVWNR5.js} +1 -1
- package/dist/cdn/{C6IELZJH.js → 2CHNVD2R.js} +1 -1
- package/dist/cdn/{CFL7WBUR.js → 2CPKZVBI.js} +1 -1
- package/dist/cdn/{J6N7WN2Y.js → 2EUABM5S.js} +1 -1
- package/dist/cdn/{UBKX3LIA.js → 2XE6DUKN.js} +1 -1
- package/dist/cdn/{VXWCNLKB.js → 375QNN2S.js} +1 -1
- package/dist/cdn/{LVKNCPIL.js → 3LPL2WMY.js} +1 -1
- package/dist/cdn/{E33WGWET.js → 3LSB7RHO.js} +1 -1
- package/dist/cdn/{FINEGGPR.js → 3QRDIO5M.js} +1 -1
- package/dist/cdn/{MBJVE6CP.js → 3RPJJHCQ.js} +1 -1
- package/dist/cdn/{ENBH27M3.js → 3TEMX33F.js} +1 -1
- package/dist/cdn/{TOVVPICH.js → 3UE3RRK6.js} +1 -1
- package/dist/cdn/{OZH33NYW.js → 3V73ULSB.js} +1 -1
- package/dist/cdn/{IE4VI6Q5.js → 3VMNNECP.js} +1 -1
- package/dist/cdn/{UWBE2BAD.js → 3YT433QW.js} +1 -1
- package/dist/cdn/{PEMIUFB2.js → 472YTTO6.js} +1 -1
- package/dist/cdn/{M2SMYCYM.js → 4C2THMCG.js} +1 -1
- package/dist/cdn/{KOHPKB7T.js → 4I6O377J.js} +1 -1
- package/dist/cdn/{WM2OOJ6V.js → 4IH5EPQ3.js} +1 -1
- package/dist/cdn/{SZ2MBNWL.js → 4MNOF575.js} +1 -1
- package/dist/cdn/{CSU3RGEL.js → 4X5YCDJT.js} +1 -1
- package/dist/cdn/{4DPPQD2Z.js → 5GOCFBZU.js} +1 -1
- package/dist/cdn/{2PORQMMM.js → 5IOMYV7I.js} +1 -1
- package/dist/cdn/{BQSHES4R.js → 5RV2UDR4.js} +1 -1
- package/dist/cdn/{ZNFSD3IC.js → 5V7CTHC7.js} +1 -1
- package/dist/cdn/{BJ7M3LN3.js → 5W4S2C25.js} +1 -1
- package/dist/cdn/{KQLKJSEY.js → 5YVXWMBF.js} +1 -1
- package/dist/cdn/{HVYYARZW.js → 63O7I6UB.js} +1 -1
- package/dist/cdn/{TO4GLHLM.js → 6HUPLNPB.js} +1 -1
- package/dist/cdn/6IUNRNS3.js +2 -0
- package/dist/cdn/{UODGE27P.js → 6JKBYDOH.js} +1 -1
- package/dist/cdn/{EIHGISPV.js → 6KGURP6A.js} +1 -1
- package/dist/cdn/{JB2ROPSD.js → 6LJHN4BB.js} +1 -1
- package/dist/cdn/{ZSUE4VY6.js → 6MBA2OU3.js} +1 -1
- package/dist/cdn/{6OM3S3VY.js → 6WEIGII6.js} +1 -1
- package/dist/cdn/{KZZIMABM.js → 6ZW32I62.js} +1 -1
- package/dist/cdn/{HZAC5NDN.js → 73DLECRS.js} +1 -1
- package/dist/cdn/{2ESR6HXK.js → 73OPURGA.js} +1 -1
- package/dist/cdn/{AU6P56XQ.js → 74YWYZSR.js} +1 -1
- package/dist/cdn/{BK5IYTR7.js → 7DCRZAN4.js} +1 -1
- package/dist/cdn/{7ST4RWKI.js → 7RUVQVTE.js} +1 -1
- package/dist/cdn/{QCFJQKFF.js → 7XMVG5VF.js} +1 -1
- package/dist/cdn/{SVZ2LPMF.js → A2PKGRJP.js} +1 -1
- package/dist/cdn/{FDWADAQF.js → AAIPMGM3.js} +1 -1
- package/dist/cdn/{QDR5ZVG6.js → ACR2PZV5.js} +1 -1
- package/dist/cdn/{CXNASRAI.js → ACTNKJB3.js} +1 -1
- package/dist/cdn/{ZDQXM6XT.js → ADADNHXY.js} +1 -1
- package/dist/cdn/{OUKN3YHU.js → AI4TDGJ7.js} +1 -1
- package/dist/cdn/{IO7L24I5.js → AJCTFRLH.js} +1 -1
- package/dist/cdn/{LPW2YGBS.js → AJW3ZYRD.js} +1 -1
- package/dist/cdn/{MDR5OYC4.js → AK4RNU3Z.js} +1 -1
- package/dist/cdn/{6O5CGO2B.js → AKX6G5NY.js} +1 -1
- package/dist/cdn/{HMNUDV6B.js → APKYBC5M.js} +1 -1
- package/dist/cdn/{QUREQ3LI.js → ARO24QKW.js} +1 -1
- package/dist/cdn/AYRT6CLA.js +2 -0
- package/dist/cdn/{YYCNECYH.js → BA5FUUFH.js} +1 -1
- package/dist/cdn/{IMSF5AEZ.js → BBVNUBSU.js} +1 -1
- package/dist/cdn/{EPIT7U5X.js → BKK3LZX3.js} +1 -1
- package/dist/cdn/{TKGODW54.js → BUOBYFNN.js} +1 -1
- package/dist/cdn/{UKM575AX.js → BWSDDMUB.js} +1 -1
- package/dist/cdn/{7BSWFIVR.js → BZXMMGBV.js} +1 -1
- package/dist/cdn/{CBYEYXQC.js → CL2HVRBX.js} +1 -1
- package/dist/cdn/{ULKZFCQF.js → CNZCJL7X.js} +1 -1
- package/dist/cdn/{3V5DH2CM.js → CZ7XMKSW.js} +1 -1
- package/dist/cdn/{XISYCTAZ.js → D32ONW2W.js} +1 -1
- package/dist/cdn/{3GMSKHTZ.js → D5N45XY5.js} +1 -1
- package/dist/cdn/{Z63J3RPC.js → DBGHAVTG.js} +1 -1
- package/dist/cdn/DBVAWYO7.js +2 -0
- package/dist/cdn/{G53RVHMO.js → DOEGXUHQ.js} +1 -1
- package/dist/cdn/{CCYZ3O3F.js → DRAVDTJZ.js} +1 -1
- package/dist/cdn/{ZUXIFYIP.js → DRDLTWMF.js} +1 -1
- package/dist/cdn/{EZ67DXSF.js → DXULR6EZ.js} +1 -1
- package/dist/cdn/{INLVO3GL.js → DZJ6Y7EN.js} +1 -1
- package/dist/cdn/{Q5DGZBR4.js → EGKMOD3O.js} +1 -1
- package/dist/cdn/{NUB6LAXA.js → EJTG7FB5.js} +1 -1
- package/dist/cdn/{XU25D2RJ.js → EMIK3EQR.js} +1 -1
- package/dist/cdn/{OE5V4MI6.js → EOIVLPYQ.js} +1 -1
- package/dist/cdn/{KRADCNV2.js → EWGPOJ66.js} +1 -1
- package/dist/cdn/EYISAVGW.js +2 -0
- package/dist/cdn/{GNNMPXCN.js → F5LWBLT7.js} +1 -1
- package/dist/cdn/{R4FF5IWV.js → F7DUN5OF.js} +1 -1
- package/dist/cdn/{DLNZZWWI.js → FMNAJ6VP.js} +1 -1
- package/dist/cdn/{NV4G572Q.js → FOJ3UKIA.js} +1 -1
- package/dist/cdn/{U5KGWKHD.js → FRTFIGVF.js} +1 -1
- package/dist/cdn/{PZP5NOWP.js → FYMTNYAU.js} +1 -1
- package/dist/cdn/{F3UZD22N.js → G4TWIOSR.js} +1 -1
- package/dist/cdn/{4YPMLEH3.js → GA24QIRX.js} +1 -1
- package/dist/cdn/{EUFWFKTY.js → GGRXK6ZX.js} +1 -1
- package/dist/cdn/{XJH3BCSR.js → GLNTTA4M.js} +1 -1
- package/dist/cdn/{EFN4FRL5.js → GTZBFSSG.js} +1 -1
- package/dist/cdn/{X4664GHQ.js → GVLEI6OP.js} +1 -1
- package/dist/cdn/{XGY6ORJL.js → H325NNPG.js} +1 -1
- package/dist/cdn/{5NFUN7TZ.js → HEOGHAAC.js} +1 -1
- package/dist/cdn/{HSL5NISC.js → HEUOKCWQ.js} +1 -1
- package/dist/cdn/{BUTHXRHI.js → HFAZ3TSR.js} +1 -1
- package/dist/cdn/{VSSJMGPA.js → HJI4Q74V.js} +1 -1
- package/dist/cdn/{UA5YO7NO.js → HP6X2LYZ.js} +1 -1
- package/dist/cdn/{K4LQ4LWP.js → HQMKXMRR.js} +1 -1
- package/dist/cdn/{BYUG46SX.js → HRD55XTZ.js} +1 -1
- package/dist/cdn/{2YLQST6F.js → HWHVMTQ5.js} +1 -1
- package/dist/cdn/{IWVQBLWT.js → HWTUJ662.js} +1 -1
- package/dist/cdn/{FGLF4QBF.js → I2HGQWSX.js} +1 -1
- package/dist/cdn/{U2G76MLM.js → I7VV53UE.js} +1 -1
- package/dist/cdn/{CJGGAMVX.js → ILFEDWQV.js} +1 -1
- package/dist/cdn/{UCU2ER3C.js → IMXAP4GC.js} +1 -1
- package/dist/cdn/{IO7J23AF.js → IO42MUIM.js} +1 -1
- package/dist/cdn/{LKYMB7CE.js → ITEUZEPY.js} +1 -1
- package/dist/cdn/{V2P7YNIS.js → J4AF5UYH.js} +1 -1
- package/dist/cdn/{NJE3P4JX.js → JBCJVKJY.js} +1 -1
- package/dist/cdn/JFLR2VEG.js +2 -0
- package/dist/cdn/{DVXPNVSG.js → JNF77RX5.js} +1 -1
- package/dist/cdn/{6NWA6WEA.js → JNMBCXIJ.js} +1 -1
- package/dist/cdn/{NKLK7WBU.js → JTKURLTF.js} +1 -1
- package/dist/cdn/{L4ZKVFNO.js → K43PE22O.js} +1 -1
- package/dist/cdn/{HWQ5TP4Y.js → K5R5ZENE.js} +1 -1
- package/dist/cdn/{L7J3QTQK.js → KAW27MQQ.js} +1 -1
- package/dist/cdn/{NE62JPBM.js → KDZOOVSI.js} +1 -1
- package/dist/cdn/{DD7PYQG3.js → KJENMIFA.js} +1 -1
- package/dist/cdn/{6DQLBG5Q.js → KZI2ZJO5.js} +1 -1
- package/dist/cdn/{ENQCIUCH.js → L7HGPJVT.js} +1 -1
- package/dist/cdn/{HPRP3IKV.js → LSMGDNCK.js} +1 -1
- package/dist/cdn/{PIIE2ZOR.js → LZ6FRTTI.js} +1 -1
- package/dist/cdn/{RN2CZHVZ.js → M2X4Z2JI.js} +1 -1
- package/dist/cdn/{OYTZB4RW.js → M7HGZ4IQ.js} +1 -1
- package/dist/cdn/{ICEZC2TQ.js → MBGJXVHA.js} +1 -1
- package/dist/cdn/{BZ4IIPLI.js → MGZ7I3P5.js} +1 -1
- package/dist/cdn/{YMVHM5OZ.js → MJRYO6TX.js} +1 -1
- package/dist/cdn/{E7RA2AH4.js → N4ENBYIM.js} +1 -1
- package/dist/cdn/{6RMUSGTH.js → NAR2J57O.js} +1 -1
- package/dist/cdn/{MLK57Q43.js → NEVL2YYO.js} +1 -1
- package/dist/cdn/{TNIPSP6H.js → NEWNUZRO.js} +1 -1
- package/dist/cdn/{FOZLLHZ2.js → NL5FAGY3.js} +1 -1
- package/dist/cdn/{5GLXBFTG.js → NO65OW7P.js} +1 -1
- package/dist/cdn/{BVC4AGUC.js → NSD3OD74.js} +1 -1
- package/dist/cdn/{QO2ZEPIF.js → O5XQTTZ7.js} +1 -1
- package/dist/cdn/{BBDC5ATP.js → O75I27SJ.js} +1 -1
- package/dist/cdn/{FYURKKPO.js → OEOTTMUV.js} +1 -1
- package/dist/cdn/{LL6W64KR.js → OIKIIOZH.js} +1 -1
- package/dist/cdn/{O3J3HY24.js → OJ55ZOXK.js} +1 -1
- package/dist/cdn/{QMUOLA2P.js → OQQYH2NU.js} +1 -1
- package/dist/cdn/{LER6RQ75.js → P2QWPDF2.js} +1 -1
- package/dist/cdn/{MORGXLED.js → P3AF7TDD.js} +1 -1
- package/dist/cdn/{4Y7BN2L3.js → PEN3F242.js} +1 -1
- package/dist/cdn/{RXVD7ZU6.js → PFOFRC2Y.js} +1 -1
- package/dist/cdn/{2GLH5PUC.js → PLIG3NOL.js} +1 -1
- package/dist/cdn/{EFDENXSZ.js → PM263QKE.js} +1 -1
- package/dist/cdn/{UKE3QTSI.js → PMW3ANLS.js} +1 -1
- package/dist/cdn/{YLANW6EI.js → PZOONYKW.js} +1 -1
- package/dist/cdn/{MJ2DQQWP.js → QCWFGCAM.js} +1 -1
- package/dist/cdn/{KV3OYCZ7.js → QDGAXLH4.js} +1 -1
- package/dist/cdn/{IPAXUWEW.js → QHIAQMUC.js} +1 -1
- package/dist/cdn/{VPIXVAXC.js → QIVYLYHB.js} +1 -1
- package/dist/cdn/{HUFVEIMR.js → QMWNN57B.js} +1 -1
- package/dist/cdn/{QUHWDL3G.js → QXZXUVGV.js} +1 -1
- package/dist/cdn/{EFEF5BPC.js → QYZ7X5V4.js} +1 -1
- package/dist/cdn/{R4SLSV5W.js → R3IVYO7B.js} +1 -1
- package/dist/cdn/{N3MO46HF.js → RCXYPCWC.js} +1 -1
- package/dist/cdn/{3NUB4VDM.js → RDM5QYCV.js} +1 -1
- package/dist/cdn/{Z6JYZ2A2.js → RDSYCNUX.js} +1 -1
- package/dist/cdn/{MI5MWEFP.js → RDXCFATQ.js} +1 -1
- package/dist/cdn/{HU2C27BQ.js → RQOMXGNC.js} +1 -1
- package/dist/cdn/{5NYBDYMA.js → RTNCTBHG.js} +1 -1
- package/dist/cdn/{RWSG4OQ6.js → RV22T6WV.js} +1 -1
- package/dist/cdn/{CUGAOVOP.js → SBYVZ7LJ.js} +1 -1
- package/dist/cdn/{N752J3UV.js → SHIF64Q2.js} +1 -1
- package/dist/cdn/{43BKUZZE.js → SQTLQDV4.js} +1 -1
- package/dist/cdn/{WFEURO7O.js → SR3YWITJ.js} +1 -1
- package/dist/cdn/{ABE4L2X7.js → STD733AI.js} +1 -1
- package/dist/cdn/{36MLS24H.js → SU7T6P3G.js} +1 -1
- package/dist/cdn/{ISLSKQVK.js → T3EMG2V6.js} +1 -1
- package/dist/cdn/{DBB3S5HF.js → TDDDFNUF.js} +1 -1
- package/dist/cdn/{ZFSB47NV.js → TNFEHVIG.js} +1 -1
- package/dist/cdn/{7LN27COB.js → TOAAHDPZ.js} +1 -1
- package/dist/cdn/{QVL2OFCK.js → U23D5EX2.js} +1 -1
- package/dist/cdn/{ZEQYZ4ZW.js → UMW36IPO.js} +1 -1
- package/dist/cdn/{TSJALH7D.js → UYKAKDZS.js} +1 -1
- package/dist/cdn/{MEKADOT3.js → V4N6H66N.js} +1 -1
- package/dist/cdn/{7F5OYOAD.js → VAFWGABR.js} +1 -1
- package/dist/cdn/{HS2QCKGL.js → VEOJSZ7U.js} +1 -1
- package/dist/cdn/VFBERENQ.js +2 -0
- package/dist/cdn/{5JEBFB6A.js → VIIQGA7X.js} +1 -1
- package/dist/cdn/{OLCPC6NR.js → VJC3RDPZ.js} +1 -1
- package/dist/cdn/{VVKGMQUS.js → VLB5W6G2.js} +1 -1
- package/dist/cdn/{RGWLIQYJ.js → VLIWCGYE.js} +1 -1
- package/dist/cdn/{2PA6LDHI.js → VXB4H2P7.js} +1 -1
- package/dist/cdn/{5UCEBVXR.js → W7EMMYHO.js} +1 -1
- package/dist/cdn/{CFCOLB4A.js → WBMUEV5E.js} +1 -1
- package/dist/cdn/{XNBSD7VT.js → WDA27UKM.js} +1 -1
- package/dist/cdn/{7RTMHA5A.js → WDCAOT35.js} +1 -1
- package/dist/cdn/{573HDEUM.js → WEMZAAWC.js} +1 -1
- package/dist/cdn/{N3KQRLEY.js → WKKSGWDU.js} +1 -1
- package/dist/cdn/{VMFNOF52.js → WN3TJIGK.js} +1 -1
- package/dist/cdn/{L33NG2CB.js → XDAQMXHX.js} +1 -1
- package/dist/cdn/{33VJMWDL.js → XI7LEDXS.js} +1 -1
- package/dist/cdn/{SWY3JKKX.js → XLIVR6DZ.js} +1 -1
- package/dist/cdn/{SGHG7AJJ.js → Y7B3Z5P6.js} +1 -1
- package/dist/cdn/{QU76OLVX.js → YOSAISNE.js} +1 -1
- package/dist/cdn/{OPP5I5AI.js → YUN2QQHP.js} +1 -1
- package/dist/cdn/{VYCRAT4K.js → Z2MYXVYQ.js} +1 -1
- package/dist/cdn/{QH4GJ2BO.js → ZADMHARU.js} +1 -1
- package/dist/cdn/{7DS4S4OL.js → ZC7B75SZ.js} +1 -1
- package/dist/cdn/{UOVNWT76.js → ZDNM3V6L.js} +1 -1
- package/dist/cdn/{PX2BP3QJ.js → ZFE6DOCC.js} +1 -1
- package/dist/cdn/{WBKMEMM2.js → ZFTF6HMJ.js} +1 -1
- package/dist/cdn/{WMNSCSAQ.js → ZN7PVQJC.js} +1 -1
- package/dist/cdn/{JOUMSSLR.js → ZQVSSETO.js} +1 -1
- package/dist/cdn/{DMHSTNBW.js → ZS3XCWFM.js} +1 -1
- package/dist/cdn/{A76EYHCS.js → ZW4BBZNX.js} +1 -1
- package/dist/cdn/{RH77SOXE.js → ZZJ5OHNH.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-legend-card-view/customElement.js +1 -1
- 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/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/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
|
};
|
|
@@ -7,7 +7,7 @@ import { LitElement as d } from "@arcgis/lumina";
|
|
|
7
7
|
import { classes as h } from "@arcgis/toolkit/dom";
|
|
8
8
|
import { H as g } from "../../chunks/heading.js";
|
|
9
9
|
import { g as m } from "../../chunks/globalCss.js";
|
|
10
|
-
const f = a`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}:host{display:flex;flex-direction:row;position:relative;transition:max-width .25s ease-in-out;overflow-x:auto}calcite-carousel-item[selected]{flex:1;overflow:auto}.message{padding:.5em 1em}.service-caption-text{margin:0}.service-content{display:flex;flex:1}.service-content>arcgis-legend-card-element:not(:first-child){border-left:1px solid var(--calcite-color-border-2)}.service{border-left:var(--calcite-border-width-sm) solid var(--calcite-color-border-2);
|
|
10
|
+
const f = a`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}:host{display:flex;flex-direction:row;position:relative;transition:max-width .25s ease-in-out;overflow-x:auto}calcite-carousel-item[selected]{flex:1;overflow:auto}.message{padding:.5em 1em}.service-caption-text{margin:0}.service-content{display:flex;flex:1}.service-content>arcgis-legend-card-element:not(:first-child){border-left:1px solid var(--calcite-color-border-2)}.service{border-left:var(--calcite-border-width-sm) solid var(--calcite-color-border-2);display:flex;flex-direction:column;flex:1}.service-caption-container{border-bottom:1px solid var(--calcite-color-border-2);padding:var(--calcite-spacing-md)}`, u = 768;
|
|
11
11
|
class v extends d {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments), this.stacked = !1, this.headingLevel = 3, this.layout = "auto", this.type = "card";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as m } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as _, html as
|
|
3
|
+
import { css as _, html as s } from "lit";
|
|
4
4
|
import { ref as v } from "lit/directives/ref.js";
|
|
5
5
|
import w from "@arcgis/core/widgets/Search/SearchViewModel.js";
|
|
6
6
|
import { LitElement as f, createEvent as b, renderElement as x, safeClassMap as M, nothing as S } from "@arcgis/lumina";
|
|
@@ -97,7 +97,7 @@ class z extends f {
|
|
|
97
97
|
]);
|
|
98
98
|
}
|
|
99
99
|
_addSearchResultRenderer() {
|
|
100
|
-
this._searchResultRendererEl = x(
|
|
100
|
+
this._searchResultRendererEl = x(s`<arcgis-search-result-renderer auto-destroy-disabled .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-search-result-renderer>`);
|
|
101
101
|
}
|
|
102
102
|
_closePopup(e) {
|
|
103
103
|
const { referenceElement: t, view: i } = this;
|
|
@@ -137,7 +137,7 @@ class z extends f {
|
|
|
137
137
|
this._useCurrentLocation();
|
|
138
138
|
return;
|
|
139
139
|
}
|
|
140
|
-
const i = JSON.parse(t), r = this.viewModel.suggestions?.find(({ sourceIndex:
|
|
140
|
+
const i = JSON.parse(t), r = this.viewModel.suggestions?.find(({ sourceIndex: o }) => o === i.sourceIndex)?.results?.find(({ key: o }) => `${o}` == `${i.key}`);
|
|
141
141
|
r && this.search(r);
|
|
142
142
|
}
|
|
143
143
|
async _useCurrentLocation() {
|
|
@@ -179,22 +179,22 @@ class z extends f {
|
|
|
179
179
|
return (e === -1 ? t.all : r?.name || t.untitledSource) || "";
|
|
180
180
|
}
|
|
181
181
|
render() {
|
|
182
|
-
return this._addSearchResultRenderer(),
|
|
182
|
+
return this._addSearchResultRenderer(), s`<div class=${M(y("root", C.widget))}><div class="sr-only" aria-live=polite>${this._selectedMessage}</div><div class="container">${this._renderSourcesMenu()}${this._renderForm()}</div></div>`;
|
|
183
183
|
}
|
|
184
184
|
_renderSourcesMenu() {
|
|
185
|
-
const { messages: e, _isDisabled: t, _effectiveActiveMenu: i } = this, { allSources: r, searchAllEnabled:
|
|
186
|
-
return r.length > 1 ?
|
|
185
|
+
const { messages: e, _isDisabled: t, _effectiveActiveMenu: i } = this, { allSources: r, searchAllEnabled: o } = this.viewModel;
|
|
186
|
+
return r.length > 1 ? s`<calcite-dropdown class="dropdown" .disabled=${t} .open=${i === "source"} overlay-positioning=fixed .topLayerDisabled=${this.topLayerDisabled} @calciteDropdownClose=${this._handleSourceClose} @calciteDropdownOpen=${this._handleSourceOpen} @calciteDropdownSelect=${this._handleSourceSelect}><calcite-button appearance=outline-fill icon-start=caret-down kind=neutral .label=${e.searchIn} slot=trigger></calcite-button><calcite-dropdown-group .groupTitle=${e.searchIn}>${o ? this._renderSource(-1) : null}${r.map((n, c) => this._renderSource(c)).toArray()}</calcite-dropdown-group></calcite-dropdown>` : null;
|
|
187
187
|
}
|
|
188
188
|
_renderUseCurrentLocation() {
|
|
189
189
|
const { _currentLocationValue: e } = this;
|
|
190
|
-
return
|
|
190
|
+
return s`<calcite-autocomplete-item .heading=${this.messages.useCurrentLocation ?? ""} icon-start=gps-on .value=${e}></calcite-autocomplete-item>`;
|
|
191
191
|
}
|
|
192
192
|
_renderAutocomplete() {
|
|
193
|
-
const { _effectiveActiveMenu: e, messages: t, _isDisabled: i } = this, { maxInputLength: r, placeholder:
|
|
194
|
-
return
|
|
193
|
+
const { _effectiveActiveMenu: e, messages: t, _isDisabled: i } = this, { maxInputLength: r, placeholder: o, searchTerm: n, state: c } = this.viewModel, p = this.label ?? t.searchButtonTitle ?? "";
|
|
194
|
+
return s`<calcite-autocomplete autocomplete=off class="autocomplete" .disabled=${i} .icon=${this.icon || void 0} .inputValue=${n} .label=${p} .loading=${c === "searching"} .maxLength=${r} .name=${this.el.id} @keydown=${this._handleInputKeydown} .open=${e === "suggestion"} overlay-positioning=fixed .placeholder=${o} .topLayerDisabled=${this.topLayerDisabled} title=${(n ? "" : o) ?? S} @calciteAutocompleteChange=${this._handleCalciteAutocompleteChange} @calciteAutocompleteClose=${this._handleAutocompleteClose} @calciteAutocompleteOpen=${this._handleAutocompleteOpen} @calciteAutocompleteTextChange=${this._handleCalciteAutocompleteTextInput} @calciteAutocompleteTextInput=${this._handleCalciteAutocompleteTextInput} ${v(this._handleAutocompleteCreate)}>${this._renderSuggestions()}${this._renderNotices()}</calcite-autocomplete>`;
|
|
195
195
|
}
|
|
196
196
|
_renderForm() {
|
|
197
|
-
return
|
|
197
|
+
return s`<form class="form" @submit=${this._formSubmit} role=search>${this._renderAutocomplete()}<button class="submit-button" type=submit>${this.label ?? this.messages.searchButtonTitle ?? ""}</button></form>`;
|
|
198
198
|
}
|
|
199
199
|
_renderSuggestGroup(e) {
|
|
200
200
|
return e.results?.map((t) => this._renderSuggestion(t));
|
|
@@ -204,28 +204,28 @@ class z extends f {
|
|
|
204
204
|
return this._showNoResults ? null : this._showCurrentLocation ? this._renderUseCurrentLocation() : e?.map((t) => this._renderSuggestResults(t));
|
|
205
205
|
}
|
|
206
206
|
_renderSuggestResults(e) {
|
|
207
|
-
const { allSources: t, activeSourceIndex: i } = this.viewModel, { sourceIndex: r } = e,
|
|
208
|
-
return
|
|
207
|
+
const { allSources: t, activeSourceIndex: i } = this.viewModel, { sourceIndex: r } = e, o = e.results?.length, n = t.length > 1 && i === -1, c = this._getSourceName(r);
|
|
208
|
+
return o && n ? s`<calcite-autocomplete-item-group .heading=${c}>${this._renderSuggestGroup(e)}</calcite-autocomplete-item-group>` : this._renderSuggestGroup(e);
|
|
209
209
|
}
|
|
210
|
-
_renderSuggestion(
|
|
211
|
-
const r = {
|
|
212
|
-
key:
|
|
213
|
-
sourceIndex:
|
|
210
|
+
_renderSuggestion(e) {
|
|
211
|
+
const { key: t, sourceIndex: i, text: r } = e, o = {
|
|
212
|
+
key: t,
|
|
213
|
+
sourceIndex: i
|
|
214
214
|
};
|
|
215
|
-
return
|
|
215
|
+
return s`<calcite-autocomplete-item .heading=${r ?? this.messages.untitledResult ?? ""} .value=${JSON.stringify(o)} .selected=${e === this.viewModel.selectedSuggestion}></calcite-autocomplete-item>`;
|
|
216
216
|
}
|
|
217
217
|
_renderSource(e) {
|
|
218
218
|
const t = this._getSourceName(e);
|
|
219
|
-
return
|
|
219
|
+
return s`<calcite-dropdown-item data-source-index=${`${e}`} .selected=${e === this.viewModel.activeSourceIndex}>${t}</calcite-dropdown-item>`;
|
|
220
220
|
}
|
|
221
221
|
_renderNoResultsWarning(e) {
|
|
222
222
|
const { messages: t } = this, i = e ? h(t.noResultsFoundForValue ?? "", {
|
|
223
223
|
value: `"${e}"`
|
|
224
224
|
}) : t.noResultsFound;
|
|
225
|
-
return
|
|
225
|
+
return s`<calcite-notice icon=exclamation-mark-triangle kind=warning open slot=content-bottom><div slot=title>${t.noResults}</div><div slot=message>${i}</div></calcite-notice>`;
|
|
226
226
|
}
|
|
227
227
|
_renderLocateError() {
|
|
228
|
-
return
|
|
228
|
+
return s`<calcite-notice icon=exclamation-mark-circle kind=danger open slot=content-bottom><div slot=message>${this.messages.locateError}</div></calcite-notice>`;
|
|
229
229
|
}
|
|
230
230
|
_renderNotices() {
|
|
231
231
|
return this._locateFailed ? this._renderLocateError() : this._showNoResults ? this._renderNoResultsWarning(this._lastSearchTerm ?? this.viewModel.searchTerm) : null;
|
|
@@ -4,6 +4,12 @@ import type { TooltipDirectionMode } from "@arcgis/core/views/interactive/toolti
|
|
|
4
4
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
5
5
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* The sketch-tooltip-controls component provides a user interface to set specific options within Sketch's [SketchTooltipOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/sketch/SketchTooltipOptions/), [SkechLabelOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/sketch/SketchLabelOptions/), and [SketchValueOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/sketch/SketchValueOptions/) classes.
|
|
9
|
+
*
|
|
10
|
+
* @since 5.1
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
7
13
|
export abstract class ArcgisSketchTooltipControls extends LitElement {
|
|
8
14
|
/**
|
|
9
15
|
* private
|