@arcgis/map-components 5.2.0-next.121 → 5.2.0-next.123
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/{XJGJMS7L.js → 2CE24IDF.js} +1 -1
- package/dist/cdn/{K3J3WDMO.js → 2FR4GN2W.js} +1 -1
- package/dist/cdn/{QLJEWRH3.js → 2N2VGYUB.js} +1 -1
- package/dist/cdn/{Q6LQ5BUX.js → 34E7N7GU.js} +1 -1
- package/dist/cdn/{WC2DVIUW.js → 3E36QFXG.js} +2 -2
- package/dist/cdn/3FRV7BIJ.js +2 -0
- package/dist/cdn/{GLOUXFQV.js → 3IPZE7AH.js} +1 -1
- package/dist/cdn/{H5FV4C72.js → 3KIT2HLC.js} +1 -1
- package/dist/cdn/{3KTHEK76.js → 3T274BES.js} +1 -1
- package/dist/cdn/{Z4FIADPO.js → 3TR7QOHP.js} +1 -1
- package/dist/cdn/{OTPKIKAJ.js → 3XZSI7I3.js} +1 -1
- package/dist/cdn/464EB67Q.js +2 -0
- package/dist/cdn/{I2IBXGQM.js → 5AV2IOLR.js} +1 -1
- package/dist/cdn/{JMWMN4DG.js → 5SLLYIWJ.js} +1 -1
- package/dist/cdn/{TH6TT77M.js → 5XQHTWAB.js} +1 -1
- package/dist/cdn/{XCARHZUP.js → 5YJQOF7B.js} +1 -1
- package/dist/cdn/{BAV6JF4F.js → 5Z4QFELH.js} +1 -1
- package/dist/cdn/5ZRBWOVW.js +2 -0
- package/dist/cdn/{7QH5PIWM.js → 6EQW3YHG.js} +1 -1
- package/dist/cdn/{6ZKGF6SQ.js → 6HN7AAG3.js} +1 -1
- package/dist/cdn/6LL2ILG2.js +2 -0
- package/dist/cdn/{FTTOI66H.js → 6UGAJNGV.js} +1 -1
- package/dist/cdn/{KRSOL3FL.js → 7K2PSLD3.js} +1 -1
- package/dist/cdn/{ALEBI75Z.js → AXFCL6D2.js} +1 -1
- package/dist/cdn/{FR7ARNMJ.js → B4QA6HTE.js} +1 -1
- package/dist/cdn/CCFGYVBQ.js +2 -0
- package/dist/cdn/{GYCEMWMN.js → CNXCJR63.js} +1 -1
- package/dist/cdn/{LM6RYRCS.js → CNYKQYK2.js} +1 -1
- package/dist/cdn/{UNUMT2DZ.js → D36LYGSR.js} +1 -1
- package/dist/cdn/{B67VAZX4.js → DJSH4JQR.js} +1 -1
- package/dist/cdn/{CPBFA25A.js → DLFRE6XN.js} +1 -1
- package/dist/cdn/{F6BRM6HX.js → DLW55IF2.js} +1 -1
- package/dist/cdn/{JD562WMM.js → EDMWGUZ2.js} +1 -1
- package/dist/cdn/{KKDWRLQ4.js → ESUJ7IS2.js} +1 -1
- package/dist/cdn/{FAFDJABP.js → EWPICNWR.js} +1 -1
- package/dist/cdn/{KIHX5LRN.js → EZFBF4SK.js} +1 -1
- package/dist/cdn/{GPIHHNP7.js → F46CTQWP.js} +1 -1
- package/dist/cdn/FDTUX3BC.js +2 -0
- package/dist/cdn/{QIEX43LK.js → FVI77DR5.js} +1 -1
- package/dist/cdn/{DAPKG4DY.js → G3KYGRHM.js} +1 -1
- package/dist/cdn/{Y3Y3AB5L.js → G4HKU5PR.js} +1 -1
- package/dist/cdn/{TVZZB4KV.js → G6ZEXGBJ.js} +1 -1
- package/dist/cdn/{56PUZWIU.js → G75EAA46.js} +1 -1
- package/dist/cdn/{Y5Q3Q4GW.js → GIOUZTHM.js} +1 -1
- package/dist/cdn/{4DWURRQB.js → GLH5GJZC.js} +1 -1
- package/dist/cdn/{3VBI4PPT.js → H3CCHIXN.js} +1 -1
- package/dist/cdn/{ACIG6774.js → HH5GEJCC.js} +1 -1
- package/dist/cdn/{MXA65YBP.js → HTQSLNPO.js} +1 -1
- package/dist/cdn/I7PSZ2EP.js +2 -0
- package/dist/cdn/ISK7BEJR.js +2 -0
- package/dist/cdn/{VFSWB7LJ.js → IWOKTFPQ.js} +1 -1
- package/dist/cdn/{OPLR5W7O.js → JSYLRK26.js} +1 -1
- package/dist/cdn/{WJ3JWM5S.js → JZITIN62.js} +1 -1
- package/dist/cdn/{5FBX5V2M.js → KHHVCV55.js} +1 -1
- package/dist/cdn/{LBJMKYT2.js → KM2GXXBO.js} +1 -1
- package/dist/cdn/{46ZZWK6X.js → KY3ND2AY.js} +1 -1
- package/dist/cdn/KYWVUIH5.js +2 -0
- package/dist/cdn/{7KWX2CED.js → LAY2RKKS.js} +1 -1
- package/dist/cdn/{TCYOOMSU.js → LCB5NFAN.js} +1 -1
- package/dist/cdn/{DOR5MVML.js → LTTYKRLO.js} +1 -1
- package/dist/cdn/{QNHJY7QE.js → M3EXGLNJ.js} +1 -1
- package/dist/cdn/{KQ3E54MW.js → M4JE53PK.js} +1 -1
- package/dist/cdn/MPYSRYIP.js +2 -0
- package/dist/cdn/{LP2PF2VT.js → NGCMS3XY.js} +1 -1
- package/dist/cdn/{6VR7MKOM.js → NVAZ2KQI.js} +1 -1
- package/dist/cdn/{KFE2444H.js → OQKO2TQ6.js} +1 -1
- package/dist/cdn/{VSJ3MYSY.js → P2YZCB7M.js} +1 -1
- package/dist/cdn/{6XJFRQ75.js → P7GH36VO.js} +1 -1
- package/dist/cdn/{BB66E2IZ.js → PCB2C5PV.js} +1 -1
- package/dist/cdn/{3EYHGXI5.js → PLTLRYBF.js} +1 -1
- package/dist/cdn/PR6OAZWA.js +2 -0
- package/dist/cdn/{LWW6FUI2.js → PT5PXWSP.js} +1 -1
- package/dist/cdn/{UNP7N3DO.js → PUYZDQHZ.js} +1 -1
- package/dist/cdn/{WLVBYYQ7.js → PYIO65MV.js} +1 -1
- package/dist/cdn/{JB46R4PC.js → Q2DV5IF7.js} +1 -1
- package/dist/cdn/{JOOXDIS7.js → Q4AJYCNY.js} +1 -1
- package/dist/cdn/{GG3LRZHU.js → QARN2LHH.js} +1 -1
- package/dist/cdn/{HH4T6PVP.js → QMQV37ML.js} +1 -1
- package/dist/cdn/{24SNB22W.js → QMSOVSAE.js} +1 -1
- package/dist/cdn/QXVHT3RD.js +5 -0
- package/dist/cdn/{EUV2XFUO.js → R73HRX3M.js} +1 -1
- package/dist/cdn/{UXUG6DBJ.js → R7E5VLXC.js} +1 -1
- package/dist/cdn/{7VLIHMQS.js → ROP6JGKX.js} +1 -1
- package/dist/cdn/{4YDQKGDY.js → RPVAC6LC.js} +1 -1
- package/dist/cdn/{5IQQ6P2J.js → RU7PGLLB.js} +1 -1
- package/dist/cdn/RVFDK6O7.js +2 -0
- package/dist/cdn/{4W6PAHFY.js → S62FQUEJ.js} +1 -1
- package/dist/cdn/S7T2NPCW.js +2 -0
- package/dist/cdn/{ILBDNJQP.js → SJOO6JRD.js} +1 -1
- package/dist/cdn/{NK74ZCP7.js → SXQRPAPL.js} +1 -1
- package/dist/cdn/{HGCKG3CA.js → SXRL4VDZ.js} +1 -1
- package/dist/cdn/{AA5T4ECA.js → T7IZYFCL.js} +1 -1
- package/dist/cdn/{MU54WQG6.js → TILA2OKK.js} +1 -1
- package/dist/cdn/{5E2DZJWK.js → TM2C2UJ2.js} +1 -1
- package/dist/cdn/TMJX7DFH.js +2 -0
- package/dist/cdn/{BFVEHL3M.js → TOM7OOAW.js} +1 -1
- package/dist/cdn/{UA5FRNJG.js → TSVBA2RT.js} +1 -1
- package/dist/cdn/{W5B2F2LI.js → TTF3OFS7.js} +1 -1
- package/dist/cdn/TZHXSIXK.js +2 -0
- package/dist/cdn/{XGZ36AOT.js → U65VFGZD.js} +1 -1
- package/dist/cdn/{V7BQUMJL.js → U7XNKUUX.js} +1 -1
- package/dist/cdn/UELKEVHS.js +2 -0
- package/dist/cdn/US6PRR7S.js +2 -0
- package/dist/cdn/{2JMMBI2U.js → UUZB2BTT.js} +1 -1
- package/dist/cdn/{JZKIH22R.js → UVVQOKEQ.js} +1 -1
- package/dist/cdn/{VHQAII6W.js → VHXR7S7C.js} +1 -1
- package/dist/cdn/VSH4WLRS.js +2 -0
- package/dist/cdn/{LGLKLXNY.js → W4KEAKF6.js} +1 -1
- package/dist/cdn/{QSZJFQJC.js → W7STZRDX.js} +1 -1
- package/dist/cdn/{IZ7UWAQP.js → WSQEOUFE.js} +1 -1
- package/dist/cdn/{W5YXSHEP.js → WVSZE7NB.js} +1 -1
- package/dist/cdn/{MFBQRTJ3.js → XHGWAHOF.js} +1 -1
- package/dist/cdn/XTYPZLPL.js +2 -0
- package/dist/cdn/{ESISPXFF.js → Y462FZAE.js} +1 -1
- package/dist/cdn/{EGFWED7R.js → YAUITFVH.js} +1 -1
- package/dist/cdn/{SR3XJAI3.js → YCK3FBCL.js} +1 -1
- package/dist/cdn/{55AZTWOF.js → YHN67JH4.js} +1 -1
- package/dist/cdn/{TOBWMRET.js → YHZFK4FD.js} +1 -1
- package/dist/cdn/{TB3M7LUD.js → YR2AO44W.js} +1 -1
- package/dist/cdn/{XP4IZ2KQ.js → YRZRKOE3.js} +1 -1
- package/dist/cdn/{MJK57OXC.js → YTNVFW4X.js} +1 -1
- package/dist/cdn/{BTQUD5J4.js → YYSME7RS.js} +1 -1
- package/dist/cdn/{5LLUEI66.js → ZHKAXGX4.js} +1 -1
- package/dist/cdn/ZUAZUUTW.js +2 -0
- package/dist/cdn/{NZSCPBS7.js → ZZ465HDX.js} +1 -1
- package/dist/cdn/{2DZOKMWP.js → ZZJWG3GK.js} +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/selection-list/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/selection-toolbar/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/layer-utils.js +48 -44
- package/dist/chunks/slots.js +1 -1
- package/dist/components/arcgis-expand/customElement.d.ts +9 -0
- package/dist/components/arcgis-expand/customElement.js +27 -27
- package/dist/components/arcgis-exploratory-analysis/customElement.js +46 -46
- package/dist/components/arcgis-feature-form-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.js +9 -10
- package/dist/components/arcgis-legend-card-element/customElement.js +26 -26
- package/dist/components/arcgis-link-chart/customElement.d.ts +9 -0
- package/dist/components/arcgis-link-chart/customElement.js +11 -11
- package/dist/components/arcgis-map/customElement.d.ts +9 -0
- package/dist/components/arcgis-map/customElement.js +2 -2
- package/dist/components/arcgis-paste/customElement.js +1 -1
- package/dist/components/arcgis-scale-bar/customElement.js +8 -8
- package/dist/components/arcgis-scene/customElement.d.ts +9 -0
- package/dist/components/arcgis-scene/customElement.js +6 -6
- package/dist/components/arcgis-selection-list/customElement.d.ts +33 -12
- package/dist/components/arcgis-selection-list/customElement.js +79 -63
- package/dist/components/arcgis-selection-toolbar/customElement.d.ts +42 -2
- package/dist/components/arcgis-selection-toolbar/customElement.js +60 -37
- package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.d.ts +18 -3
- package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.js +63 -53
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +11 -3
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +107 -53
- package/dist/components/arcgis-utility-network-trace-analysis/index.js +1 -0
- package/dist/components/arcgis-utility-network-trace-analysis/types.d.ts +5 -1
- package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.d.ts +19 -11
- package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.js +124 -110
- package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.d.ts +29 -0
- package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.js +31 -17
- package/dist/components/arcgis-utility-network-trace-locations/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +63 -14
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +245 -55
- package/dist/components/arcgis-utility-network-trace-results/index.js +1 -2
- package/dist/components/arcgis-utility-network-trace-results-pane/customElement.js +7 -7
- package/dist/components/arcgis-utility-network-validate-network-topology/customElement.js +1 -1
- 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/index.d.ts +6 -0
- package/dist/loader.js +10 -10
- package/dist/types/lumina.d.ts +14 -9
- package/dist/types/preact.d.ts +14 -9
- package/dist/types/react.d.ts +14 -9
- package/dist/types/stencil.d.ts +14 -9
- package/package.json +7 -7
- package/dist/cdn/4FADGEJD.js +0 -2
- package/dist/cdn/4FBTH6YD.js +0 -2
- package/dist/cdn/4SLCQ6RS.js +0 -2
- package/dist/cdn/A2FK4TED.js +0 -2
- package/dist/cdn/BOEHQXPR.js +0 -2
- package/dist/cdn/C2HB2U6P.js +0 -2
- package/dist/cdn/CRWARUC7.js +0 -2
- package/dist/cdn/GC4D3K6B.js +0 -2
- package/dist/cdn/GJZCVU6G.js +0 -5
- package/dist/cdn/GYTTYWIC.js +0 -2
- package/dist/cdn/JGHPNDIO.js +0 -2
- package/dist/cdn/JRFQGFRL.js +0 -2
- package/dist/cdn/MRC7R44N.js +0 -2
- package/dist/cdn/MT6BTCFR.js +0 -2
- package/dist/cdn/OYD6YL32.js +0 -2
- package/dist/cdn/QD7ELNLS.js +0 -2
- package/dist/cdn/RVJTWRVG.js +0 -2
- package/dist/cdn/TBSKBHHL.js +0 -2
- package/dist/cdn/TIDNGXMD.js +0 -2
- package/dist/cdn/Z44GSKHZ.js +0 -2
- package/dist/cdn/ZB6W452H.js +0 -2
- /package/dist/cdn/{ZU6D3YMF.js → 27MP6TEF.js} +0 -0
- /package/dist/cdn/{3XRSSDOC.js → 3JCF73F4.js} +0 -0
- /package/dist/cdn/{RLTZHJ26.js → 3XEPXV4Q.js} +0 -0
- /package/dist/cdn/{IMINWWQN.js → 43IOCYG5.js} +0 -0
- /package/dist/cdn/{HMZDI4HQ.js → 45JO7F4Y.js} +0 -0
- /package/dist/cdn/{232VF5GS.js → 4W35GLNO.js} +0 -0
- /package/dist/cdn/{7HQJTIYO.js → 5CER2N5T.js} +0 -0
- /package/dist/cdn/{33AEAI5T.js → 5M56ZA46.js} +0 -0
- /package/dist/cdn/{W6X34YBZ.js → 6NWR2Z4F.js} +0 -0
- /package/dist/cdn/{KMODOE6H.js → 7FVXPOAG.js} +0 -0
- /package/dist/cdn/{2PRRRGTC.js → AYJQLWX4.js} +0 -0
- /package/dist/cdn/{HJP2DQC3.js → AZ73DBU3.js} +0 -0
- /package/dist/cdn/{CQW2542N.js → B4CANXID.js} +0 -0
- /package/dist/cdn/{HLHFT3VN.js → BEFZSVBT.js} +0 -0
- /package/dist/cdn/{55Q2U4HS.js → BIWQEPK4.js} +0 -0
- /package/dist/cdn/{N5NLF7RI.js → BLYJE76S.js} +0 -0
- /package/dist/cdn/{2Q7J34UP.js → CESFJ6AD.js} +0 -0
- /package/dist/cdn/{5ZZ7JN5X.js → COKGOKO2.js} +0 -0
- /package/dist/cdn/{7Y65HW7Z.js → D3LYSFXK.js} +0 -0
- /package/dist/cdn/{FZATLDJD.js → EAM45WZP.js} +0 -0
- /package/dist/cdn/{6VBFCBUV.js → EDTGV4YF.js} +0 -0
- /package/dist/cdn/{62XRQDSI.js → FMBY3L4S.js} +0 -0
- /package/dist/cdn/{TKC3X6S6.js → GQ6SYNZS.js} +0 -0
- /package/dist/cdn/{YUZAZ3CJ.js → H4FH2RBM.js} +0 -0
- /package/dist/cdn/{P3MLJ7YL.js → I5ZESLWO.js} +0 -0
- /package/dist/cdn/{MM6LPGBW.js → KO7RD6SS.js} +0 -0
- /package/dist/cdn/{2LEEKX4J.js → LQ76PRWK.js} +0 -0
- /package/dist/cdn/{CTHAODQE.js → MUWOF7W4.js} +0 -0
- /package/dist/cdn/{G5DB24SO.js → OCLOCCB6.js} +0 -0
- /package/dist/cdn/{2UG26OVP.js → OJXNUBIA.js} +0 -0
- /package/dist/cdn/{ANRJPTRX.js → OUXE3CSQ.js} +0 -0
- /package/dist/cdn/{AKKV6RKF.js → PXAY7IM4.js} +0 -0
- /package/dist/cdn/{4PMOT2RS.js → QMYL4UM7.js} +0 -0
- /package/dist/cdn/{UCFBAQVW.js → QPFX5XH3.js} +0 -0
- /package/dist/cdn/{EGN54PEX.js → RFSBZHJD.js} +0 -0
- /package/dist/cdn/{4TZLBS5N.js → RYYBMDGS.js} +0 -0
- /package/dist/cdn/{CDGKQKVU.js → T2DT5I33.js} +0 -0
- /package/dist/cdn/{EJ5KLAEE.js → UINNR6FV.js} +0 -0
- /package/dist/cdn/{KWL3F4UP.js → UPZVIKOH.js} +0 -0
- /package/dist/cdn/{KXCLNNE5.js → VCRVQMYT.js} +0 -0
- /package/dist/cdn/{COSLSZXO.js → VWN2LORT.js} +0 -0
- /package/dist/cdn/{3NKJ4HFO.js → XAMLHDWZ.js} +0 -0
- /package/dist/cdn/{N43ZQ4C7.js → ZWN6DXNO.js} +0 -0
|
@@ -5,6 +5,7 @@ import type GraphicsLayer from "@arcgis/core/layers/GraphicsLayer.js";
|
|
|
5
5
|
import type TraceResult from "@arcgis/core/rest/networks/support/TraceResult.js";
|
|
6
6
|
import type MapView from "@arcgis/core/views/MapView.js";
|
|
7
7
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
8
|
+
import type { UtilityNetworkTraceResultItemState } from "../arcgis-utility-network-trace-analysis/types.js";
|
|
8
9
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -56,6 +57,13 @@ export abstract class ArcgisUtilityNetworkTraceAggregatedGeometryResultItem exte
|
|
|
56
57
|
* @default 12
|
|
57
58
|
*/
|
|
58
59
|
accessor defaultSelectionSize: number;
|
|
60
|
+
/**
|
|
61
|
+
* Whether the component emits event [@arcgisResultReady](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/#event-arcgisResultReady).
|
|
62
|
+
* This property is always `true` for [arcgis-utility-network-trace-aggregated-geometry-result-item](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/).
|
|
63
|
+
*
|
|
64
|
+
* @default false
|
|
65
|
+
*/
|
|
66
|
+
get emitsArcgisResultReady(): true;
|
|
59
67
|
/** The graphics which represent the aggregated geometry results from the trace. */
|
|
60
68
|
get geometryGraphics(): Graphic[];
|
|
61
69
|
/**
|
|
@@ -77,6 +85,12 @@ export abstract class ArcgisUtilityNetworkTraceAggregatedGeometryResultItem exte
|
|
|
77
85
|
* @default false
|
|
78
86
|
*/
|
|
79
87
|
accessor hideGraphics: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Whether the component has finished adding aggregated geometry graphics to the map.
|
|
90
|
+
*
|
|
91
|
+
* @default "ready"
|
|
92
|
+
*/
|
|
93
|
+
get state(): UtilityNetworkTraceResultItemState;
|
|
80
94
|
/**
|
|
81
95
|
* The trace result containing the aggregated geometry result to render graphics for.
|
|
82
96
|
*
|
|
@@ -91,13 +105,14 @@ export abstract class ArcgisUtilityNetworkTraceAggregatedGeometryResultItem exte
|
|
|
91
105
|
*/
|
|
92
106
|
accessor view: MapView | undefined;
|
|
93
107
|
/**
|
|
94
|
-
* Removes the
|
|
95
|
-
*
|
|
108
|
+
* Removes the aggregated geometry graphics from the
|
|
109
|
+
* [graphicsLayer](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/#graphicsLayer).
|
|
110
|
+
* If the layer was created by the component, it is also removed from the map.
|
|
96
111
|
*/
|
|
97
112
|
clearResult(): void;
|
|
98
113
|
/** Permanently destroy the component. */
|
|
99
114
|
destroy(): Promise<void>;
|
|
100
|
-
readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "defaultSelectionSize" | "
|
|
115
|
+
readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "defaultSelectionSize" | "hideGraphics" | "geometryGraphics" | "graphicsColor" | "state"; }>;
|
|
101
116
|
/**
|
|
102
117
|
* Fires when the component finishes processing the aggregated geometry results.
|
|
103
118
|
*
|
|
@@ -1,88 +1,82 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as n } from "../../chunks/runtime.js";
|
|
3
3
|
import l from "@arcgis/core/Color.js";
|
|
4
4
|
import m from "@arcgis/core/Graphic.js";
|
|
5
5
|
import d from "@arcgis/core/layers/GraphicsLayer.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { LitElement as
|
|
10
|
-
import { usePropertyChange as
|
|
11
|
-
import { log as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
import y from "@arcgis/core/symbols/SimpleFillSymbol.js";
|
|
7
|
+
import u from "@arcgis/core/symbols/SimpleLineSymbol.js";
|
|
8
|
+
import f from "@arcgis/core/symbols/SimpleMarkerSymbol.js";
|
|
9
|
+
import { LitElement as w, createEvent as G, nothing as v } from "@arcgis/lumina";
|
|
10
|
+
import { usePropertyChange as b, bypassReadOnly as a } from "@arcgis/lumina/controllers";
|
|
11
|
+
import { log as o, composeMissingPropertyMessage as h } from "@arcgis/toolkit/log";
|
|
12
|
+
import { generateGuid as R } from "@arcgis/toolkit/string";
|
|
13
|
+
import { css as L, html as g } from "lit";
|
|
14
|
+
import { createRef as C, ref as S } from "lit/directives/ref.js";
|
|
15
|
+
import { u as $ } from "../../chunks/useT9n.js";
|
|
16
|
+
import { a as p, b as k } from "../../chunks/layer-utils.js";
|
|
17
|
+
const x = L`.aggregated-geometry-container{display:flex;align-items:center;justify-content:space-between}.geometry-heading{margin:0 0 var(--calcite-spacing-xxs);font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}`;
|
|
18
|
+
class z extends w {
|
|
18
19
|
constructor() {
|
|
19
|
-
super(...arguments), this._messages =
|
|
20
|
+
super(...arguments), this._messages = $({ blocking: !0 }), this.#r = `aggregated-geometry-graphics-${R()}`, this.#e = C(), this.defaultSelectionSize = 12, this.emitsArcgisResultReady = !0, this.geometryGraphics = [], this.hideGraphics = !1, this.state = "ready", this.graphicsColor = new l([255, 255, 0, 0.6]), this.autoDestroyDisabled = !1, this.arcgisPropertyChange = b()("defaultSelectionSize", "hideGraphics", "geometryGraphics", "graphicsColor", "state"), this.arcgisResultReady = G();
|
|
20
21
|
}
|
|
21
22
|
static {
|
|
22
|
-
this.properties = { defaultSelectionSize: 9, heading: 1, traceResult: 0, geometryGraphics: 32, hideGraphics: 5, graphicsColor: 0, graphicsLayer: 0, view: 0, autoDestroyDisabled: 5 };
|
|
23
|
+
this.properties = { defaultSelectionSize: 9, emitsArcgisResultReady: 32, heading: 1, traceResult: 0, geometryGraphics: 32, hideGraphics: 5, state: 32, graphicsColor: 0, graphicsLayer: 0, view: 0, autoDestroyDisabled: 5 };
|
|
23
24
|
}
|
|
24
25
|
static {
|
|
25
|
-
this.styles =
|
|
26
|
+
this.styles = x;
|
|
26
27
|
}
|
|
28
|
+
#r;
|
|
27
29
|
#t;
|
|
28
30
|
#e;
|
|
29
31
|
clearResult() {
|
|
30
|
-
this.
|
|
32
|
+
this.#e.value && (this.#e.value.open = !1);
|
|
33
|
+
const { graphicsLayer: e } = this;
|
|
34
|
+
e && (e.removeMany(this.geometryGraphics), e === this.#t && (this.view?.map?.remove(e), this.graphicsLayer = void 0, this.#t = void 0)), a(() => this.geometryGraphics = []), a(() => this.state = "ready");
|
|
31
35
|
}
|
|
32
36
|
async destroy() {
|
|
33
37
|
this.clearResult(), await this.manager.destroy();
|
|
34
38
|
}
|
|
35
39
|
connectedCallback() {
|
|
36
|
-
super.connectedCallback(), this.view && this.graphicsLayer && (
|
|
40
|
+
super.connectedCallback(), this.view && this.graphicsLayer && (p(this.view, this.graphicsLayer), this.arcgisResultReady.emit());
|
|
37
41
|
}
|
|
38
42
|
load() {
|
|
39
|
-
|
|
40
|
-
this.arcgisResultReady.emit();
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
this.graphicsLayer || this.#a(this.view);
|
|
43
|
+
this.traceResult && this.#i();
|
|
44
44
|
}
|
|
45
45
|
willUpdate(e) {
|
|
46
|
-
if (e.has("
|
|
46
|
+
if (e.has("traceResult") && this.#i(), e.has("view")) {
|
|
47
47
|
const t = e.get("view");
|
|
48
|
-
t?.map && this.graphicsLayer &&
|
|
48
|
+
t?.map && this.graphicsLayer && t.map.remove(this.graphicsLayer), this.#i();
|
|
49
49
|
}
|
|
50
|
+
e.has("hideGraphics") && this.#c(), e.has("graphicsColor") && this.#l();
|
|
50
51
|
}
|
|
51
52
|
loaded() {
|
|
52
|
-
this.traceResult
|
|
53
|
+
this.traceResult && (this.traceResult.aggregatedGeometry || o("warn", this, h("traceResult.aggregatedGeometry")), this.view ? this.view.map || o("error", this, h("The property `view` was provided, but `view.map` is null. Cannot draw aggregated geometry.")) : o("error", this, h("view")));
|
|
53
54
|
}
|
|
54
|
-
#
|
|
55
|
+
#a(e) {
|
|
55
56
|
const { line: t, multipoint: i, polygon: r } = e;
|
|
56
|
-
|
|
57
|
-
this.geometryGraphics = [t, i, r].filter((
|
|
58
|
-
})
|
|
57
|
+
a(() => {
|
|
58
|
+
this.geometryGraphics = [t, i, r].filter((s) => s != null).map((s) => this.#h(s));
|
|
59
|
+
});
|
|
59
60
|
}
|
|
60
|
-
#
|
|
61
|
-
const t = this.#
|
|
62
|
-
|
|
63
|
-
this.graphicsLayer = i;
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
this.graphicsLayer = new d({
|
|
61
|
+
#o(e) {
|
|
62
|
+
const t = this.#r, i = e.map?.findLayerById(t);
|
|
63
|
+
return i && k(i) ? i : new d({
|
|
67
64
|
id: t,
|
|
68
65
|
listMode: "hide",
|
|
69
66
|
title: t
|
|
70
|
-
})
|
|
71
|
-
}
|
|
72
|
-
#s() {
|
|
73
|
-
this.hideGraphics ? (this.graphicsLayer?.removeAll(), this.#e.value?.open && (this.#e.value.open = !1)) : this.graphicsLayer?.addMany(this.geometryGraphics);
|
|
67
|
+
});
|
|
74
68
|
}
|
|
75
|
-
#
|
|
69
|
+
#h(e) {
|
|
76
70
|
return new m({
|
|
77
71
|
geometry: e,
|
|
78
|
-
symbol: this.#
|
|
72
|
+
symbol: this.#s(e)
|
|
79
73
|
});
|
|
80
74
|
}
|
|
81
|
-
#
|
|
75
|
+
#s(e) {
|
|
82
76
|
const { defaultSelectionSize: t, graphicsColor: i } = this;
|
|
83
77
|
switch (e.type) {
|
|
84
78
|
case "multipoint":
|
|
85
|
-
return new
|
|
79
|
+
return new f({
|
|
86
80
|
color: i,
|
|
87
81
|
size: t,
|
|
88
82
|
outline: {
|
|
@@ -91,7 +85,7 @@ class z extends f {
|
|
|
91
85
|
}
|
|
92
86
|
});
|
|
93
87
|
case "polygon":
|
|
94
|
-
return new
|
|
88
|
+
return new y({
|
|
95
89
|
color: i,
|
|
96
90
|
outline: {
|
|
97
91
|
color: i,
|
|
@@ -99,27 +93,43 @@ class z extends f {
|
|
|
99
93
|
}
|
|
100
94
|
});
|
|
101
95
|
case "polyline":
|
|
102
|
-
return new
|
|
96
|
+
return new u({
|
|
103
97
|
color: i,
|
|
104
98
|
width: t
|
|
105
99
|
});
|
|
106
100
|
}
|
|
107
101
|
}
|
|
108
102
|
#c() {
|
|
109
|
-
this.graphicsLayer?.
|
|
103
|
+
this.hideGraphics ? (this.graphicsLayer?.removeAll(), this.#e.value?.open && (this.#e.value.open = !1)) : this.graphicsLayer?.addMany(this.geometryGraphics);
|
|
104
|
+
}
|
|
105
|
+
#i() {
|
|
106
|
+
this.clearResult();
|
|
107
|
+
const e = () => {
|
|
108
|
+
a(() => this.state = "ready"), this.arcgisResultReady.emit();
|
|
109
|
+
};
|
|
110
|
+
if (!this.traceResult?.aggregatedGeometry || !this.view?.map) {
|
|
111
|
+
e();
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
a(() => this.state = "loading"), this.graphicsLayer || (this.graphicsLayer = this.#o(this.view), this.#t = this.graphicsLayer, p(this.view, this.graphicsLayer)), this.#a(this.traceResult.aggregatedGeometry), this.hideGraphics || this.graphicsLayer.addMany(this.geometryGraphics), e();
|
|
115
|
+
}
|
|
116
|
+
#l() {
|
|
117
|
+
this.geometryGraphics.forEach((e) => {
|
|
110
118
|
const t = e.geometry;
|
|
111
|
-
e.symbol = this.#
|
|
119
|
+
e.symbol = this.#s(t);
|
|
112
120
|
});
|
|
113
121
|
}
|
|
114
122
|
render() {
|
|
123
|
+
if (!this.traceResult?.aggregatedGeometry)
|
|
124
|
+
return null;
|
|
115
125
|
const { graphicsColor: e, heading: t, hideGraphics: i, _messages: r } = this;
|
|
116
|
-
return g`${t && g`<div class="geometry-heading">${t}</div>` || ""}<div class="aggregated-geometry-container"><calcite-switch .checked=${!i} .label=${r.labels.showGraphicsToggle} label-text-end=${r.showGraphics ?? v} @calciteSwitchChange=${() => this.hideGraphics = !this.hideGraphics}></calcite-switch><calcite-swatch .color=${e.toCss()} .disabled=${i} id=geometry-color-swatch .label=${r.labels.aggregatedGeometryGraphicsColor}></calcite-swatch><calcite-popover closable .heading=${r.headings.setColor} .label=${r.headings.setColor} reference-element=geometry-color-swatch ${
|
|
117
|
-
const
|
|
118
|
-
|
|
126
|
+
return g`${t && g`<div class="geometry-heading">${t}</div>` || ""}<div class="aggregated-geometry-container"><calcite-switch .checked=${!i} .label=${r.labels.showGraphicsToggle} label-text-end=${r.showGraphics ?? v} @calciteSwitchChange=${() => this.hideGraphics = !this.hideGraphics}></calcite-switch><calcite-swatch .color=${e.toCss()} .disabled=${i} id=geometry-color-swatch .label=${r.labels.aggregatedGeometryGraphicsColor}></calcite-swatch><calcite-popover closable .heading=${r.headings.setColor} .label=${r.headings.setColor} reference-element=geometry-color-swatch ${S(this.#e)}><calcite-color-picker alpha-channel channels-disabled clearable .disabled=${i} hex-disabled saved-disabled .value=${e.toCss(!0)} @calciteColorPickerChange=${(s) => {
|
|
127
|
+
const c = s.target.value;
|
|
128
|
+
c && (this.graphicsColor = new l(c));
|
|
119
129
|
}}></calcite-color-picker></calcite-popover></div>`;
|
|
120
130
|
}
|
|
121
131
|
}
|
|
122
|
-
|
|
132
|
+
n("arcgis-utility-network-trace-aggregated-geometry-result-item", z);
|
|
123
133
|
export {
|
|
124
134
|
z as ArcgisUtilityNetworkTraceAggregatedGeometryResultItem
|
|
125
135
|
};
|
|
@@ -14,6 +14,12 @@ import type { UtilityNetworkTraceAnalysisState } from "@arcgis/core/networks/Uti
|
|
|
14
14
|
/**
|
|
15
15
|
* ## Overview
|
|
16
16
|
*
|
|
17
|
+
* > [!WARNING]
|
|
18
|
+
* > This component is the successor to the `utility-network-trace-analysis` component.
|
|
19
|
+
* > The `utility-network-trace-analysis` component is being substantially refactored to expose public trace sub-components in release 5.2 and 6.0.
|
|
20
|
+
* > To avoid destabilizing the public version of `utility-network-trace-analysis`, the refactoring work is being performed in this component.
|
|
21
|
+
* > At release, this "next" component will replace the original.
|
|
22
|
+
*
|
|
17
23
|
* The Utility Network Trace Analysis component allows users to run traces and view trace results in a utility network.
|
|
18
24
|
*
|
|
19
25
|
* - The component supports selecting a utility network and a named trace configuration in that utility network. Both the utility network and trace configuration must be [stored in the map](https://developers.arcgis.com/javascript/latest/references/core/WebMap/#utilityNetworks).
|
|
@@ -79,6 +85,9 @@ import type { UtilityNetworkTraceAnalysisState } from "@arcgis/core/networks/Uti
|
|
|
79
85
|
*
|
|
80
86
|
* Note: Sign in to access the data in this demo, U/P: `viewer01`/`I68VGU^nMurF`
|
|
81
87
|
*
|
|
88
|
+
* @slot
|
|
89
|
+
* [results] - Slot for instances of [arcgis-utility-network-trace-results](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/),
|
|
90
|
+
* for displaying the results of one or more traces.
|
|
82
91
|
* @internal
|
|
83
92
|
* @since 5.0
|
|
84
93
|
*/
|
|
@@ -218,11 +227,10 @@ export abstract class ArcgisUtilityNetworkTraceAnalysis extends LitElement {
|
|
|
218
227
|
accessor disableHighlightFeatureResults: boolean;
|
|
219
228
|
/**
|
|
220
229
|
* Indicates whether to hide the action bar that holds the feature's
|
|
221
|
-
* [actions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#actions)
|
|
222
|
-
*
|
|
230
|
+
* [arcgis-features-next.actions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#actions) when selecting trace locations
|
|
231
|
+
* and viewing trace result features.
|
|
223
232
|
*
|
|
224
233
|
* @default false
|
|
225
|
-
* @internal
|
|
226
234
|
*/
|
|
227
235
|
accessor hideActionBar: boolean;
|
|
228
236
|
/**
|
|
@@ -1,27 +1,41 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as d, html as a } from "lit";
|
|
2
|
+
import { c as m } from "../../chunks/runtime.js";
|
|
4
3
|
import { ref as c } from "lit/directives/ref.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { log as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
4
|
+
import y from "@arcgis/core/Color.js";
|
|
5
|
+
import { when as f } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
|
+
import b from "@arcgis/core/networks/UtilityNetworkTraceAnalysis.js";
|
|
7
|
+
import { LitElement as w, createEvent as r } from "@arcgis/lumina";
|
|
8
|
+
import { usePropertyChange as v } from "@arcgis/lumina/controllers";
|
|
9
|
+
import { slotChangeGetAssignedElements as h } from "@arcgis/toolkit/dom/slots";
|
|
10
|
+
import { log as o } from "@arcgis/toolkit/log";
|
|
11
|
+
import { css as T, html as a } from "lit";
|
|
12
|
+
import { u as R } from "../../chunks/useT9n.js";
|
|
13
|
+
import { m as $ } from "../../chunks/useViewModel.js";
|
|
14
|
+
import { l as _ } from "../../chunks/async-utils.js";
|
|
15
|
+
const k = T`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;height:var(--arcgis-internal-panel-height, 100%)}arcgis-utility-network-trace-inputs[mode=default]{height:auto}calcite-tabs{display:flex;flex-direction:column;height:100%}calcite-tab{--calcite-tab-content-space-y: 0;--calcite-panel-background-color: var(--calcite-color-background);min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-panel{--calcite-panel-background-color: var(--calcite-color-foreground-1)}calcite-notice{margin:var(--calcite-spacing-md)}slot[name=results]::slotted(:not(arcgis-utility-network-trace-results)){display:none}slot[name=results]::slotted([arcgis-hidden-results-slot-item]){display:none}.inputs-tab-container{display:flex;flex-direction:column;height:100%}.trace-inputs-warning{flex:none;height:fit-content;calcite-notice{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0}}`, x = $(b), g = "arcgis-utility-network-trace-results", u = "arcgis-hidden-results-slot-item", C = [
|
|
16
|
+
"actions",
|
|
17
|
+
"autoDestroyDisabled",
|
|
18
|
+
"aggregatedGeometryGraphicsColor",
|
|
19
|
+
"disableHighlightFeatureResults",
|
|
20
|
+
"hideActionBar",
|
|
21
|
+
"hideFeatureResults",
|
|
22
|
+
"hidePlaceholder",
|
|
23
|
+
"includeDefaultActionsDisabled",
|
|
24
|
+
"messageOverrides",
|
|
25
|
+
"referenceElement",
|
|
26
|
+
"view",
|
|
27
|
+
"_traceError",
|
|
28
|
+
"_traceResult"
|
|
29
|
+
];
|
|
30
|
+
class S extends w {
|
|
17
31
|
constructor() {
|
|
18
|
-
super(...arguments), this._messages =
|
|
32
|
+
super(...arguments), this._messages = R({ blocking: !0 }), this.#e = x(this), this._activeTab = "input", this._showMissingTerminalWarning = !1, this._showNoStartingPointsWarning = !1, this._slottedElements = [], this._mode = "default", this.autoDestroyDisabled = !1, this.aggregatedGeometryGraphicsColor = new y([255, 255, 0, 0.6]), this.disableHighlightFeatureResults = !1, this.hideActionBar = !1, this.hideGraphics = !1, this.hidePlaceholder = !1, this.hideFeatureResults = !1, this.includeDefaultActionsDisabled = !1, this.state = this.#e.state, this.view = this.#e.view, this.arcgisHideGraphicsChange = r(), this.arcgisPropertyChange = v()("aggregatedGeometryGraphicsColor", "hideGraphics"), this.arcgisReady = r(), this.arcgisTriggerAction = r(), this.arcgisTraceLocationSelectEnd = r(), this.arcgisTraceLocationSelectStart = r(), this.arcgisTraceResultClear = r(), this.arcgisTraceResultFeaturesReady = r();
|
|
19
33
|
}
|
|
20
34
|
static {
|
|
21
|
-
this.properties = { _activeTab: 16, _traceError: 16, _traceResult: 16, _showMissingTerminalWarning: 16, _showNoStartingPointsWarning: 16, _mode: 16, actions: 0, autoDestroyDisabled: 5, beforeTraceLocationSelectStart: 0, aggregatedGeometryGraphicsColor: 0, disableHighlightFeatureResults: 5, hideActionBar: 5, hideGraphics: 5, hidePlaceholder: 5, hideFeatureResults: 5, includeDefaultActionsDisabled: 5, label: 3, messageOverrides: 0, traceResultFeatures: 32, referenceElement: 1, state: 32, view: 0 };
|
|
35
|
+
this.properties = { _activeTab: 16, _traceError: 16, _traceResult: 16, _showMissingTerminalWarning: 16, _showNoStartingPointsWarning: 16, _slottedElements: 16, _mode: 16, actions: 0, autoDestroyDisabled: 5, beforeTraceLocationSelectStart: 0, aggregatedGeometryGraphicsColor: 0, disableHighlightFeatureResults: 5, hideActionBar: 5, hideGraphics: 5, hidePlaceholder: 5, hideFeatureResults: 5, includeDefaultActionsDisabled: 5, label: 3, messageOverrides: 0, traceResultFeatures: 32, referenceElement: 1, state: 32, view: 0 };
|
|
22
36
|
}
|
|
23
37
|
static {
|
|
24
|
-
this.styles =
|
|
38
|
+
this.styles = k;
|
|
25
39
|
}
|
|
26
40
|
#e;
|
|
27
41
|
#t;
|
|
@@ -30,7 +44,9 @@ class x extends y {
|
|
|
30
44
|
const { view: e } = this;
|
|
31
45
|
return e?.map ? e.map.allLayers.toArray().concat(e.map.allTables.toArray()) : [];
|
|
32
46
|
}
|
|
33
|
-
#
|
|
47
|
+
get #o() {
|
|
48
|
+
return Array.from(this.el.children).some((e) => e.slot === "results" && e.matches(g));
|
|
49
|
+
}
|
|
34
50
|
get traceResultFeatures() {
|
|
35
51
|
return this.#i?.traceResultFeatures ?? [];
|
|
36
52
|
}
|
|
@@ -39,22 +55,48 @@ class x extends y {
|
|
|
39
55
|
}
|
|
40
56
|
load() {
|
|
41
57
|
this.manager.onLifecycle(() => [
|
|
42
|
-
|
|
58
|
+
f(() => !this.#e.utilityNetwork, () => this.#s("input"))
|
|
43
59
|
]);
|
|
44
60
|
}
|
|
45
|
-
|
|
61
|
+
willUpdate(e) {
|
|
62
|
+
C.some((t) => e.has(t)) && this.#a();
|
|
63
|
+
}
|
|
64
|
+
#n() {
|
|
46
65
|
this._traceResult = void 0, this.#i?.clearResults();
|
|
47
66
|
}
|
|
48
|
-
#
|
|
67
|
+
#c() {
|
|
49
68
|
if (!this.#t)
|
|
50
69
|
return;
|
|
51
|
-
const { traceLocations: e, traceLocationDetails: t, traceConfiguration: i, isSubnetworkNameTraceSelected: s } = this.#t, n = !!i?.subnetworkName,
|
|
52
|
-
this._traceError = void 0, this._showNoStartingPointsWarning = !s && !
|
|
70
|
+
const { traceLocations: e, traceLocationDetails: t, traceConfiguration: i, isSubnetworkNameTraceSelected: s } = this.#t, n = !!i?.subnetworkName, d = e?.some((l) => l.type === "starting-point"), p = t?.some((l) => !!l.flagProperties.terminalConfiguration && !l.flagProperties.selectedTerminals?.size) ?? !1;
|
|
71
|
+
this._traceError = void 0, this._showNoStartingPointsWarning = !s && !d || s && !n, this._showMissingTerminalWarning = p;
|
|
53
72
|
}
|
|
54
|
-
#
|
|
73
|
+
#s(e) {
|
|
55
74
|
this._activeTab = e;
|
|
56
75
|
}
|
|
57
|
-
#
|
|
76
|
+
#a() {
|
|
77
|
+
if (!this.#i)
|
|
78
|
+
return;
|
|
79
|
+
const e = {
|
|
80
|
+
actions: this.actions,
|
|
81
|
+
autoDestroyDisabled: this.autoDestroyDisabled,
|
|
82
|
+
aggregatedGeometryGraphicsColor: this.aggregatedGeometryGraphicsColor,
|
|
83
|
+
disableHighlightFeatureResults: this.disableHighlightFeatureResults,
|
|
84
|
+
expanded: !0,
|
|
85
|
+
hideActionBar: this.hideActionBar,
|
|
86
|
+
hideFeatureResults: this.hideFeatureResults,
|
|
87
|
+
hidePlaceholder: this.hidePlaceholder,
|
|
88
|
+
includeDefaultActionsDisabled: this.includeDefaultActionsDisabled,
|
|
89
|
+
layers: this.#r,
|
|
90
|
+
messageOverrides: this.messageOverrides,
|
|
91
|
+
referenceElement: this.referenceElement,
|
|
92
|
+
traceError: this._traceError,
|
|
93
|
+
traceResult: this._traceResult,
|
|
94
|
+
utilityNetwork: this.#e.utilityNetwork ?? void 0,
|
|
95
|
+
view: this.view ?? void 0
|
|
96
|
+
};
|
|
97
|
+
Object.assign(this.#i, e);
|
|
98
|
+
}
|
|
99
|
+
#h(e) {
|
|
58
100
|
const { _messages: t } = this;
|
|
59
101
|
switch (e) {
|
|
60
102
|
case "no-user-type-extension":
|
|
@@ -69,10 +111,10 @@ class x extends y {
|
|
|
69
111
|
return e;
|
|
70
112
|
}
|
|
71
113
|
}
|
|
72
|
-
async #
|
|
114
|
+
async #g() {
|
|
73
115
|
const e = this.#t?.selectedNamedTraceConfiguration, t = this.#t?.traceConfiguration;
|
|
74
116
|
if (!(e?.traceType && t)) {
|
|
75
|
-
|
|
117
|
+
o("error", this, "Trace configuration not found");
|
|
76
118
|
return;
|
|
77
119
|
}
|
|
78
120
|
const i = this.#t?.traceLocations;
|
|
@@ -85,72 +127,84 @@ class x extends y {
|
|
|
85
127
|
outSpatialReference: this.view?.spatialReference
|
|
86
128
|
});
|
|
87
129
|
} catch (s) {
|
|
88
|
-
|
|
130
|
+
_(s, this, "Error while running trace"), this._traceError = s, this._traceResult = void 0;
|
|
89
131
|
}
|
|
90
132
|
}
|
|
91
|
-
#
|
|
92
|
-
this.#
|
|
133
|
+
#u() {
|
|
134
|
+
this.#c(), !(this._showNoStartingPointsWarning || this._showMissingTerminalWarning) && (this._showNoStartingPointsWarning = !1, this._showMissingTerminalWarning = !1, this.#n(), this.#s("results"), this.#g());
|
|
93
135
|
}
|
|
94
|
-
#
|
|
136
|
+
#d(e) {
|
|
95
137
|
e && (this.#t = e);
|
|
96
138
|
}
|
|
97
|
-
#
|
|
139
|
+
#l(e) {
|
|
98
140
|
e && (this.#i = e);
|
|
99
141
|
}
|
|
100
|
-
#
|
|
142
|
+
#p(e) {
|
|
143
|
+
this._slottedElements = h(e);
|
|
144
|
+
const t = h(e, g);
|
|
145
|
+
t.length < this._slottedElements.length && o("warn", this, "The trace results pane only renders instances of `arcgis-utility-network-trace-results` in the `results` slot."), t.length > 1 && o("warn", this, "Multiple `arcgis-utility-network-trace-results` elements were provided in the `results` slot. Only the first will render.");
|
|
146
|
+
const [i] = t;
|
|
147
|
+
for (const s of t)
|
|
148
|
+
s === i ? s.removeAttribute(u) : s.setAttribute(u, "");
|
|
149
|
+
this.#l(i), this.#a();
|
|
150
|
+
}
|
|
151
|
+
#m(e) {
|
|
101
152
|
const { detail: t, target: i } = e;
|
|
102
153
|
t.name === "aggregatedGeometryGraphicsColor" ? (e.stopPropagation(), this.aggregatedGeometryGraphicsColor = i[t.name]) : t.name === "hideGraphics" && (e.stopPropagation(), this.hideGraphics = i[t.name], this.arcgisHideGraphicsChange.emit(this.hideGraphics));
|
|
103
154
|
}
|
|
104
|
-
#
|
|
155
|
+
#y(e) {
|
|
105
156
|
e.stopPropagation(), this.arcgisTraceLocationSelectStart.emit(e.detail).defaultPrevented && e.preventDefault();
|
|
106
157
|
}
|
|
107
|
-
#
|
|
158
|
+
#f(e) {
|
|
108
159
|
e.stopPropagation(), this.arcgisTraceLocationSelectEnd.emit();
|
|
109
160
|
}
|
|
110
|
-
#
|
|
161
|
+
#b(e) {
|
|
162
|
+
e.stopPropagation(), this.arcgisTraceResultClear.emit();
|
|
163
|
+
}
|
|
164
|
+
#w(e) {
|
|
111
165
|
e.stopPropagation(), this.arcgisTraceResultFeaturesReady.emit();
|
|
112
166
|
}
|
|
113
|
-
#
|
|
167
|
+
#v(e) {
|
|
114
168
|
e.stopPropagation(), this.arcgisTriggerAction.emit(e.detail);
|
|
115
169
|
}
|
|
116
|
-
#
|
|
170
|
+
#T(e) {
|
|
117
171
|
const { detail: t, target: i } = e;
|
|
118
|
-
e.stopPropagation(), t.name === "selectedUtilityNetwork" && (this.#e.utilityNetwork = i.selectedUtilityNetwork), t.name === "selectedNamedTraceConfiguration" && (this._showNoStartingPointsWarning = !1, this._showMissingTerminalWarning = !1), t.name === "mode" && (this._mode = i.mode);
|
|
172
|
+
e.stopPropagation(), t.name === "selectedUtilityNetwork" && (this.#e.utilityNetwork = i.selectedUtilityNetwork, this.#a()), t.name === "selectedNamedTraceConfiguration" && (this._showNoStartingPointsWarning = !1, this._showMissingTerminalWarning = !1), t.name === "mode" && (this._mode = i.mode);
|
|
119
173
|
}
|
|
120
|
-
#
|
|
174
|
+
#R() {
|
|
121
175
|
const { _messages: e } = this;
|
|
122
176
|
return a`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${() => this._showMissingTerminalWarning = !1}><div slot=title>${e.errors.missingTerminalTitle}</div><div slot=message>${e.errors.missingTerminalBody}</div></calcite-notice></calcite-panel>`;
|
|
123
177
|
}
|
|
124
|
-
|
|
178
|
+
#$() {
|
|
125
179
|
const { _messages: e } = this;
|
|
126
180
|
return a`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${() => this._showNoStartingPointsWarning = !1}><div slot=title>${e.errors.noStartingPointsTitle}</div><div slot=message>${e.errors.noStartingPointsBody}</div></calcite-notice></calcite-panel>`;
|
|
127
181
|
}
|
|
128
|
-
#
|
|
129
|
-
return
|
|
182
|
+
#_() {
|
|
183
|
+
return a`<calcite-tab .selected=${this._activeTab === "results"}>${this.state === "executing" && a`<calcite-panel><calcite-loader .label=${this._messages.runningTrace} .text=${this._messages.runningTrace}></calcite-loader></calcite-panel>` || ""}<arcgis-utility-network-trace-results-pane hide-warnings .hidden=${this.state === "executing"}><slot name=results @slotchange=${this.#p}></slot>${this.#o ? null : a`<arcgis-utility-network-trace-results .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .aggregatedGeometryGraphicsColor=${this.aggregatedGeometryGraphicsColor} .disableHighlightFeatureResults=${this.disableHighlightFeatureResults} expanded .hideActionBar=${this.hideActionBar} .hideFeatureResults=${this.hideFeatureResults} .hidePlaceholder=${this.hidePlaceholder} .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} .layers=${this.#r} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .traceError=${this._traceError} .traceResult=${this._traceResult} .utilityNetwork=${this.#e.utilityNetwork ?? void 0} .view=${this.view ?? void 0} @arcgisPropertyChange=${this.#m} @arcgisResultsReady=${this.#w} @arcgisTraceResultClear=${this.#b} @arcgisTriggerAction=${this.#v} ${c(this.#l)}></arcgis-utility-network-trace-results>`}</arcgis-utility-network-trace-results-pane></calcite-tab>`;
|
|
130
184
|
}
|
|
131
|
-
|
|
185
|
+
#k() {
|
|
132
186
|
const { _messages: e, _traceResult: t } = this, s = !!(t?.elements.length || t?.globalFunctionResults.length || t?.aggregatedGeometry) && this.#i?.state === "ready", n = this.#i?.numFeatureResults ?? 0;
|
|
133
187
|
return a`<calcite-button appearance=outline width=full @click=${() => {
|
|
134
|
-
this.#
|
|
188
|
+
this.#s("input"), this.#n();
|
|
135
189
|
}} .disabled=${!s} slot=footer>${n > 0 && !this.hideFeatureResults && this.state !== "executing" ? e.buttons.clearResultsCustom.replace("{number}", n.toString()) : e.buttons.clearResultsGeneric}</calcite-button>`;
|
|
136
190
|
}
|
|
137
|
-
#
|
|
138
|
-
const { _mode: e } = this, { loadError: t } = this.#e, s = (t === "no-user-type-extension" || t === "sceneView-not-supported" ? a`<calcite-notice kind=danger open scale=s slot=content-top width=auto><div slot=message>${this.#
|
|
139
|
-
return
|
|
191
|
+
#x() {
|
|
192
|
+
const { _mode: e } = this, { loadError: t } = this.#e, s = (t === "no-user-type-extension" || t === "sceneView-not-supported" ? a`<calcite-notice kind=danger open scale=s slot=content-top width=auto><div slot=message>${this.#h(t)}</div></calcite-notice>` : void 0) ?? a`${this._showNoStartingPointsWarning && e === "default" && this.#$() || ""}${this._showMissingTerminalWarning && e === "default" && this.#R() || ""}<arcgis-utility-network-trace-inputs .autoDestroyDisabled=${this.autoDestroyDisabled} .hideFeaturesActionBar=${this.hideActionBar} .referenceElement=${this.referenceElement} .view=${this.view ?? void 0} .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisPropertyChange=${this.#T} @arcgisTraceLocationSelectEnd=${this.#f} @arcgisTraceLocationSelectStart=${this.#y} ${c(this.#d)}></arcgis-utility-network-trace-inputs>`;
|
|
193
|
+
return a`<calcite-tab .selected=${this._activeTab === "input"}><div class="inputs-tab-container">${s}</div></calcite-tab>`;
|
|
140
194
|
}
|
|
141
|
-
#
|
|
195
|
+
#C() {
|
|
142
196
|
const { state: e } = this;
|
|
143
197
|
if (this._mode !== "default")
|
|
144
198
|
return null;
|
|
145
199
|
const t = e === "disabled" || e === "loading" || !this.#t?.traceConfiguration;
|
|
146
|
-
return a`<calcite-button appearance=solid width=full @click=${this.#
|
|
200
|
+
return a`<calcite-button appearance=solid width=full @click=${this.#u} slot=footer .disabled=${t}>${this._messages.buttons.getResults}</calcite-button>`;
|
|
147
201
|
}
|
|
148
202
|
render() {
|
|
149
203
|
const { _activeTab: e, state: t } = this;
|
|
150
|
-
return a`<calcite-panel><calcite-tabs layout=center position=top><calcite-tab-nav slot=title-group><calcite-tab-title @click=${() => this.#
|
|
204
|
+
return a`<calcite-panel><calcite-tabs layout=center position=top><calcite-tab-nav slot=title-group><calcite-tab-title @click=${() => this.#s("input")} .selected=${e === "input"}>${this._messages.tabs.inputTab}</calcite-tab-title><calcite-tab-title @click=${() => this.#s("results")} .selected=${e === "results"} .disabled=${t === "disabled" || t === "loading"}>${this._messages.tabs.resultsTab}</calcite-tab-title></calcite-tab-nav>${this.#x()}${this.#_()}</calcite-tabs>${e === "input" ? this.#C() : null}${e === "results" ? this.#k() : null}</calcite-panel>`;
|
|
151
205
|
}
|
|
152
206
|
}
|
|
153
|
-
|
|
207
|
+
m("arcgis-utility-network-trace-analysis", S);
|
|
154
208
|
export {
|
|
155
|
-
|
|
209
|
+
S as ArcgisUtilityNetworkTraceAnalysis
|
|
156
210
|
};
|
|
@@ -2,6 +2,7 @@ import "@esri/calcite-components/components/calcite-panel";
|
|
|
2
2
|
import "@esri/calcite-components/components/calcite-notice";
|
|
3
3
|
import "@esri/calcite-components/components/calcite-tab";
|
|
4
4
|
import "@esri/calcite-components/components/calcite-loader";
|
|
5
|
+
import "../arcgis-utility-network-trace-results-pane/index.js";
|
|
5
6
|
import "../arcgis-utility-network-trace-results/index.js";
|
|
6
7
|
import "@esri/calcite-components/components/calcite-button";
|
|
7
8
|
import "../arcgis-utility-network-trace-inputs/index.js";
|
|
@@ -5,6 +5,8 @@ import type MapView from "@arcgis/core/views/MapView.js";
|
|
|
5
5
|
|
|
6
6
|
export type UtilityNetworkTraceAnalysisDisplayMode = "add-spatial-feature" | "add-spatial-instructions" | "default";
|
|
7
7
|
|
|
8
|
+
export type UtilityNetworkTraceResultItemState = "disabled" | "loading" | "ready";
|
|
9
|
+
|
|
8
10
|
/**
|
|
9
11
|
* Defines the common properties shared by all children of [arcgis-utility-network-trace-results](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/).
|
|
10
12
|
*
|
|
@@ -22,6 +24,8 @@ export interface UtilityNetworkTraceResultItem {
|
|
|
22
24
|
utilityNetwork?: UtilityNetwork;
|
|
23
25
|
/** The MapView used by the result item. */
|
|
24
26
|
view?: MapView;
|
|
27
|
+
/** Whether the result item intends to emit event `arcgisResultReady`. */
|
|
28
|
+
emitsArcgisResultReady: boolean;
|
|
25
29
|
/** A method to clean up side effects from the result item. */
|
|
26
|
-
clearResult
|
|
30
|
+
clearResult: () => void;
|
|
27
31
|
}
|