@arcgis/map-components 5.1.0-next.21 → 5.1.0-next.23
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/{FYYKRDW3.js → 27PMZPVO.js} +1 -1
- package/dist/cdn/2AMO7WB5.js +2 -0
- package/dist/cdn/{D3NPU6MI.js → 2CY2GEUS.js} +1 -1
- package/dist/cdn/{3IBLMFG2.js → 2ELWNWRV.js} +1 -1
- package/dist/cdn/{COSZXJ2Q.js → 2LOKXZGA.js} +1 -1
- package/dist/cdn/{UNY32K3R.js → 2O3GSMYO.js} +1 -1
- package/dist/cdn/{MSWQUZSG.js → 2RKX3O6H.js} +1 -1
- package/dist/cdn/{2LRWWFCA.js → 2UL6OUOC.js} +1 -1
- package/dist/cdn/{OSIWX2OH.js → 2YYHB6D7.js} +1 -1
- package/dist/cdn/{GZ3XKDIF.js → 3JTQG6AU.js} +1 -1
- package/dist/cdn/{FDCE7TCR.js → 3RSXFSGK.js} +1 -1
- package/dist/cdn/{PPQASHMO.js → 3TJ5YLAW.js} +1 -1
- package/dist/cdn/{JUVPY4PW.js → 44JRNJOB.js} +1 -1
- package/dist/cdn/{HZOWV5JG.js → 46LACOKN.js} +1 -1
- package/dist/cdn/{W5T5EBL3.js → 4HVMKKUC.js} +1 -1
- package/dist/cdn/{4X3QNLL2.js → 4KJRNLCZ.js} +1 -1
- package/dist/cdn/{2632C726.js → 4LG73L7E.js} +1 -1
- package/dist/cdn/{7SCKZLOG.js → 4MRMJJJZ.js} +1 -1
- package/dist/cdn/{2XOP6ODR.js → 4NUDGWVZ.js} +1 -1
- package/dist/cdn/{3OVSVCGF.js → 4Y6EXK2P.js} +1 -1
- package/dist/cdn/{XOP2SCW3.js → 5DS4JPW6.js} +1 -1
- package/dist/cdn/{25C2WYON.js → 5EZ4KU4A.js} +1 -1
- package/dist/cdn/{5CYQI4SX.js → 5JF5N6II.js} +1 -1
- package/dist/cdn/{GLV3FW3Z.js → 5KNN577Y.js} +1 -1
- package/dist/cdn/{6IUWB6ML.js → 5OZFNWAD.js} +1 -1
- package/dist/cdn/{BX6WWIAY.js → 5P4ZXOSS.js} +1 -1
- package/dist/cdn/{7D3Z55D3.js → 5P7XB77F.js} +1 -1
- package/dist/cdn/{IFSGM32L.js → 64XTP54A.js} +1 -1
- package/dist/cdn/{CQZVPPYJ.js → 67ZXVGEU.js} +1 -1
- package/dist/cdn/{WZDTXSRM.js → 6ZSGEDK7.js} +1 -1
- package/dist/cdn/{YC562S5E.js → 74J22H6S.js} +1 -1
- package/dist/cdn/{7SLU4JV4.js → 7DAFL3QP.js} +1 -1
- package/dist/cdn/{AWONSBWA.js → 7FXNEMXE.js} +1 -1
- package/dist/cdn/{BSOU3YSC.js → 7ZYSP2AT.js} +1 -1
- package/dist/cdn/{IX5YLGNO.js → ABMOMJDO.js} +1 -1
- package/dist/cdn/{XEOTORJP.js → AHAR3YRD.js} +1 -1
- package/dist/cdn/{IZOPV2VQ.js → AODIPCQO.js} +1 -1
- package/dist/cdn/{ZATCJZP2.js → B752UU56.js} +1 -1
- package/dist/cdn/BDUD457O.js +4 -0
- package/dist/cdn/{4S2ZIUO2.js → BMITVMTW.js} +1 -1
- package/dist/cdn/{NPEA453T.js → BRPKDHOU.js} +1 -1
- package/dist/cdn/{O2BAIE3M.js → BX4XQZE3.js} +1 -1
- package/dist/cdn/{F7S63XRR.js → C4AU67NH.js} +1 -1
- package/dist/cdn/{PR47Q75I.js → C5KBHBXX.js} +1 -1
- package/dist/cdn/CC4JKJPW.js +2 -0
- package/dist/cdn/{ZERLO6VI.js → CHQK4O2O.js} +1 -1
- package/dist/cdn/{BQMLNDT6.js → CP3VD55W.js} +1 -1
- package/dist/cdn/{HOYFIMNJ.js → DCF4XOHG.js} +1 -1
- package/dist/cdn/{QUXORNHT.js → DD6UEDWN.js} +1 -1
- package/dist/cdn/{7IBXOWTT.js → DQRCKBRU.js} +1 -1
- package/dist/cdn/{NFEIF3A6.js → DTLIZIOI.js} +1 -1
- package/dist/cdn/{HVKFQS3R.js → DUO5PAMD.js} +1 -1
- package/dist/cdn/{34V5UMTY.js → DUSCPURL.js} +1 -1
- package/dist/cdn/{JSD5CN5Q.js → DV3AMXLQ.js} +1 -1
- package/dist/cdn/{JXUAJ4MS.js → E4343BW3.js} +1 -1
- package/dist/cdn/{IOYNCKBD.js → ED5CYJC6.js} +1 -1
- package/dist/cdn/{MIXNJBCA.js → EGDKKW7Q.js} +1 -1
- package/dist/cdn/{2IOCPFSI.js → EHWPP2OD.js} +1 -1
- package/dist/cdn/{PXJQJ6MY.js → EIO6SGJ3.js} +1 -1
- package/dist/cdn/{AOYK64AS.js → ENZQ6Y22.js} +1 -1
- package/dist/cdn/ESZY2QZH.js +2 -0
- package/dist/cdn/{DG7CXNOU.js → EVDM2TIL.js} +1 -1
- package/dist/cdn/{2ID4LW4Y.js → F3NCON5F.js} +1 -1
- package/dist/cdn/{JEFKCKHC.js → FC7RJ3XK.js} +1 -1
- package/dist/cdn/{RG5JFGHQ.js → FNCCPCRJ.js} +1 -1
- package/dist/cdn/{RN44YUJM.js → FOJRNP3B.js} +1 -1
- package/dist/cdn/{3OE7JG5I.js → FSTB6YQB.js} +1 -1
- package/dist/cdn/{3O62Y4XU.js → FXI46X2L.js} +1 -1
- package/dist/cdn/{NHMOFXEE.js → G7OKKTPN.js} +1 -1
- package/dist/cdn/{I6EE4PLM.js → GBXKK7G4.js} +1 -1
- package/dist/cdn/GCJAHIZP.js +2 -0
- package/dist/cdn/{RMGBO7V2.js → GK27I2Y5.js} +1 -1
- package/dist/cdn/{5H2OW6X5.js → GKOPDCDG.js} +1 -1
- package/dist/cdn/{TFKBGMV2.js → GPUGICGT.js} +1 -1
- package/dist/cdn/{D4BT63BV.js → GU3IZVNE.js} +1 -1
- package/dist/cdn/HDRNAOAG.js +2 -0
- package/dist/cdn/{X4AA7QDM.js → HFWMJJFD.js} +1 -1
- package/dist/cdn/{NWWJHV2L.js → HHNEB2V6.js} +1 -1
- package/dist/cdn/{4E76WGF2.js → HIALRIA5.js} +1 -1
- package/dist/cdn/{7CFAFS3P.js → HM73YF33.js} +1 -1
- package/dist/cdn/{DEJGWX76.js → HNDFLEFC.js} +1 -1
- package/dist/cdn/{NQ3Z6LXI.js → HQUOPZBH.js} +1 -1
- package/dist/cdn/{ELIGNLIF.js → HVP4D5QA.js} +1 -1
- package/dist/cdn/{63HF2QYP.js → I3KSXOBY.js} +1 -1
- package/dist/cdn/{THXN5VZY.js → ICCQCKZB.js} +1 -1
- package/dist/cdn/{ATRTNMMR.js → IDBLPYXK.js} +1 -1
- package/dist/cdn/{6RDB26PI.js → IGCGKXVQ.js} +1 -1
- package/dist/cdn/{6XQPM3XF.js → IK76CMXS.js} +1 -1
- package/dist/cdn/{QHSQUBMZ.js → IOZAX7QH.js} +1 -1
- package/dist/cdn/{AEDEEK6H.js → JG7CGJPQ.js} +1 -1
- package/dist/cdn/{WAASVZRG.js → JTUDL7ZD.js} +1 -1
- package/dist/cdn/{FTAYHPMM.js → JXCCWIB5.js} +1 -1
- package/dist/cdn/{C3MVYUAO.js → K3C4REJ2.js} +1 -1
- package/dist/cdn/K3WRWVQH.js +2 -0
- package/dist/cdn/{LJLCKW5C.js → K52DBZTR.js} +1 -1
- package/dist/cdn/{BOM3XB6A.js → KB6ZC3F2.js} +1 -1
- package/dist/cdn/{Y6W27QLR.js → KF5H6WSN.js} +1 -1
- package/dist/cdn/{ILVKM7IB.js → KG3JO6AR.js} +1 -1
- package/dist/cdn/{Y4JTATJ2.js → KRYDA75T.js} +1 -1
- package/dist/cdn/{AN7CPHB7.js → KXZL7HY2.js} +1 -1
- package/dist/cdn/{4IATWN2B.js → KZFVZ6QO.js} +1 -1
- package/dist/cdn/{X5NCN674.js → L4QA437J.js} +1 -1
- package/dist/cdn/{6HVUFH5B.js → LA4NAQGV.js} +1 -1
- package/dist/cdn/{HXPCADLA.js → LGF6DK5V.js} +1 -1
- package/dist/cdn/{4GMSBMTS.js → LJA64EHJ.js} +1 -1
- package/dist/cdn/{3KOO4QMQ.js → LMI2OZRD.js} +1 -1
- package/dist/cdn/{WHGU6HOR.js → M6XGXRKN.js} +1 -1
- package/dist/cdn/{C4FXVPMR.js → MIEDJBHH.js} +1 -1
- package/dist/cdn/MIJJYNPG.js +2 -0
- package/dist/cdn/{TE3F7O3C.js → MJE27LYY.js} +1 -1
- package/dist/cdn/{2F4VMURG.js → MP7MAMMJ.js} +1 -1
- package/dist/cdn/{VD6EJLFO.js → MQ6OLZF4.js} +1 -1
- package/dist/cdn/{ENDLVIST.js → MQNRWUJV.js} +1 -1
- package/dist/cdn/{Y33DXW66.js → NDHM6VQU.js} +1 -1
- package/dist/cdn/{B4UXMUWZ.js → NGFJVQMO.js} +1 -1
- package/dist/cdn/{B6T4CWYF.js → NIEHEX74.js} +1 -1
- package/dist/cdn/{TMXUHRLR.js → NJN3I6EV.js} +1 -1
- package/dist/cdn/{JWGHJITH.js → NKRZ2VLU.js} +1 -1
- package/dist/cdn/{MR4WJFX6.js → NPSWZFC7.js} +1 -1
- package/dist/cdn/{5UDFTH5U.js → NS6A57H7.js} +1 -1
- package/dist/cdn/{255MJSL7.js → NT6JFAN7.js} +1 -1
- package/dist/cdn/{FUXY5EKO.js → O3AKG7RB.js} +1 -1
- package/dist/cdn/{IUFWY6SY.js → O6Y2DK4Q.js} +1 -1
- package/dist/cdn/{45DIIV4Z.js → O7OV2RVX.js} +1 -1
- package/dist/cdn/{IM47JQ76.js → OCZSLOXR.js} +1 -1
- package/dist/cdn/{LQNM7YK2.js → OI6PBJPY.js} +1 -1
- package/dist/cdn/{FNJ3HMEN.js → ON7UPOVK.js} +1 -1
- package/dist/cdn/{TKK5PRP5.js → OOITGE5V.js} +1 -1
- package/dist/cdn/{F2JFRFTT.js → OPFT2XCU.js} +1 -1
- package/dist/cdn/{I46QTMEJ.js → ORBSNP77.js} +1 -1
- package/dist/cdn/{5LIIGBMB.js → OZ7PUJES.js} +1 -1
- package/dist/cdn/{CMI4ZWGU.js → P7GCX7CN.js} +1 -1
- package/dist/cdn/PAZ2MP34.js +2 -0
- package/dist/cdn/{CQ4QHVEL.js → PTGYG2U4.js} +1 -1
- package/dist/cdn/{GIAAX7SI.js → PZ2HPQXA.js} +1 -1
- package/dist/cdn/{ZYMCKBTT.js → Q4HJ76OE.js} +1 -1
- package/dist/cdn/{FTQ4FNZO.js → Q4Z6YWQ4.js} +1 -1
- package/dist/cdn/{FZDIAVC4.js → Q5LEXBSY.js} +1 -1
- package/dist/cdn/{NHBPPRG2.js → Q76HLTWI.js} +1 -1
- package/dist/cdn/{W5E542JG.js → QAGNYSNU.js} +1 -1
- package/dist/cdn/{5EEHZIM7.js → QAZOMVRQ.js} +1 -1
- package/dist/cdn/{PX63EYUH.js → QH2WUE6T.js} +1 -1
- package/dist/cdn/{27HOTQNB.js → QPCLA4EJ.js} +1 -1
- package/dist/cdn/{SVRZWJDO.js → RMJZ72G4.js} +1 -1
- package/dist/cdn/{CNMF4MVD.js → RO7BCT67.js} +1 -1
- package/dist/cdn/{W2A4ONZA.js → RSXH2YEV.js} +1 -1
- package/dist/cdn/{4JLBYQRJ.js → RTWFIBP2.js} +1 -1
- package/dist/cdn/{HY73HOSP.js → RTXZGZRC.js} +1 -1
- package/dist/cdn/{QEXDU6P7.js → S4DXV4PM.js} +1 -1
- package/dist/cdn/{BM2JTRBY.js → SJJ4MLVA.js} +1 -1
- package/dist/cdn/{EVC4MXIZ.js → TCB332AR.js} +1 -1
- package/dist/cdn/{WPWBOKOR.js → TO4AP4NZ.js} +1 -1
- package/dist/cdn/{OKXFUFPW.js → TPA4RUZY.js} +1 -1
- package/dist/cdn/{NLRKDVIJ.js → TUUPWOUO.js} +1 -1
- package/dist/cdn/{J275QP5E.js → U4FOROQE.js} +1 -1
- package/dist/cdn/{PI6UQWTD.js → U77W27GO.js} +1 -1
- package/dist/cdn/{DDYVX52H.js → U7GWRKZK.js} +1 -1
- package/dist/cdn/{EM6YZ3JD.js → UB6YWPE6.js} +1 -1
- package/dist/cdn/{MWS2QVII.js → UMQX5AKE.js} +1 -1
- package/dist/cdn/{LA34IEDJ.js → V5BOOLLA.js} +1 -1
- package/dist/cdn/{VYAUH7PN.js → VNZL7BB6.js} +1 -1
- package/dist/cdn/{H5UJFKXO.js → VQ5WECKT.js} +1 -1
- package/dist/cdn/{BQRJK2MF.js → VTWJOYZO.js} +1 -1
- package/dist/cdn/{G7QZJNAC.js → W4E5UX5P.js} +1 -1
- package/dist/cdn/{BUUMJJ3W.js → XAM2764P.js} +1 -1
- package/dist/cdn/{6QW2EUPX.js → XIDPHDPL.js} +1 -1
- package/dist/cdn/{L5EGJLC4.js → XUQOEMSH.js} +1 -1
- package/dist/cdn/{GF4QAY6O.js → XXS4JDK5.js} +1 -1
- package/dist/cdn/{GXBHOVJY.js → Y7BSBKHO.js} +1 -1
- package/dist/cdn/{GHVLDDZ3.js → YJNIIDPI.js} +1 -1
- package/dist/cdn/{H5QDPW5Y.js → YKFPLV7U.js} +1 -1
- package/dist/cdn/{NW44UOKT.js → YLAOXZXB.js} +1 -1
- package/dist/cdn/{BN6DAJ2Q.js → YPGLFMTV.js} +1 -1
- package/dist/cdn/YSACVRKP.js +2 -0
- package/dist/cdn/{EQPJBPD5.js → YWWQDQG7.js} +1 -1
- package/dist/cdn/{A5JTB4SB.js → YWYMFFO5.js} +1 -1
- package/dist/cdn/{36FHKW25.js → Z4BYNRYD.js} +1 -1
- package/dist/cdn/{4723UCGJ.js → ZJCOEA35.js} +1 -1
- package/dist/cdn/{2ZPMEF52.js → ZNA2A32J.js} +1 -1
- package/dist/cdn/{ATG3WC6M.js → ZNKRUHBB.js} +1 -1
- package/dist/cdn/{E44RUDE7.js → ZO5DJCAZ.js} +1 -1
- package/dist/cdn/{TVTQW6GC.js → ZSUULNWA.js} +1 -1
- package/dist/cdn/{UH33CM5U.js → ZZ7EY45U.js} +1 -1
- package/dist/cdn/{TK4IQ72L.js → ZZRUC7EN.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/useViewModel.js +5 -5
- package/dist/components/arcgis-editor/customElement.d.ts +19 -0
- package/dist/components/arcgis-editor/customElement.js +2 -2
- package/dist/components/arcgis-feature-table/customElement.js +3 -3
- package/dist/components/arcgis-features/customElement.js +1 -7
- package/dist/components/arcgis-home/customElement.d.ts +1 -1
- package/dist/components/arcgis-home/customElement.js +16 -14
- package/dist/components/arcgis-popup/customElement.js +1 -7
- package/dist/components/arcgis-sketch/customElement.d.ts +19 -0
- package/dist/components/arcgis-sketch/customElement.js +2 -2
- package/dist/components/arcgis-snapping-controls/customElement.d.ts +75 -14
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +16 -16
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +26 -19
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +1 -0
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +57 -51
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +3 -2
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +3 -3
- package/dist/types/lumina.d.ts +2 -2
- package/dist/types/preact.d.ts +2 -2
- package/dist/types/react.d.ts +2 -2
- package/dist/types/stencil.d.ts +2 -2
- package/package.json +4 -4
- package/dist/cdn/6YZHULFG.js +0 -2
- package/dist/cdn/CUNZDZ3C.js +0 -2
- package/dist/cdn/CWODI2VY.js +0 -2
- package/dist/cdn/DY3ERISU.js +0 -2
- package/dist/cdn/EQ4FEO75.js +0 -2
- package/dist/cdn/HDL76VD5.js +0 -2
- package/dist/cdn/IW7IOW5D.js +0 -2
- package/dist/cdn/PCQ5PXPF.js +0 -2
- package/dist/cdn/PTWLVTFS.js +0 -4
- package/dist/cdn/TKFT2JL7.js +0 -2
|
@@ -14,12 +14,12 @@ import y from "@arcgis/core/views/interactive/snapping/FeatureSnappingLayerSourc
|
|
|
14
14
|
import $ from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
|
|
15
15
|
import { LitElement as v, createEvent as d } from "@arcgis/lumina";
|
|
16
16
|
import { usePropertyChange as E } from "@arcgis/lumina/controllers";
|
|
17
|
-
import { log as u, composeMissingPropertyMessage as F, composeEmptyPropertyMessage as
|
|
18
|
-
import { css as
|
|
17
|
+
import { log as u, composeMissingPropertyMessage as F, composeEmptyPropertyMessage as P } from "@arcgis/toolkit/log";
|
|
18
|
+
import { css as I, html as s } from "lit";
|
|
19
19
|
import { u as U } from "../../chunks/useT9n.js";
|
|
20
20
|
import { h as w } from "../../chunks/feature-utils.js";
|
|
21
21
|
import { a as A, i as b } from "../../chunks/layer-utils.js";
|
|
22
|
-
const D =
|
|
22
|
+
const D = I`:host{height:100%;flex-grow:1}calcite-flow{min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-block-group{flex-grow:1;padding-bottom:var(--calcite-spacing-md);background-color:var(--calcite-color-foreground-1)}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block calcite-select,calcite-block calcite-input{margin:0 var(--calcite-spacing-md)}calcite-block calcite-input-message{padding:var(--calcite-spacing-sm) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}calcite-block calcite-label:last-child{--calcite-label-margin-bottom: 0}calcite-notice{margin:var(--calcite-spacing-md)}#subnetwork-info-block{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}#results-limited-message{padding:var(--calcite-spacing-sm)}.inline-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.add-spatial-mode{display:flex;flex-direction:column;gap:var(--calcite-spacing-md);margin:var(--calcite-spacing-md)}.heading{color:var(--calcite-color-text-1);margin:0 0 var(--calcite-spacing-md) 0;font-size:var(--calcite-font-size);font-style:normal;font-weight:var(--calcite-font-weight-medium)}`, p = `utility-network-trace-inputs-sketch-${Date.now()}`, n = `utility-network-trace-inputs-flags-${Date.now()}`, M = 20;
|
|
23
23
|
class B extends v {
|
|
24
24
|
constructor() {
|
|
25
25
|
super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages = U({ blocking: !0 }), this._layerIdToLayer = /* @__PURE__ */ new Map(), this._startingPoints = new l(), this._barriers = new l(), this._stoppingPoints = new l(), this._subnetworkTraceTypes = /* @__PURE__ */ new Set([
|
|
@@ -61,6 +61,13 @@ class B extends v {
|
|
|
61
61
|
const { view: e } = this;
|
|
62
62
|
return e?.map ? e.map.allLayers.toArray().concat(e.map.allTables.toArray()) : [];
|
|
63
63
|
}
|
|
64
|
+
get showStartingPoints() {
|
|
65
|
+
return !this.isSubnetworkNameTraceSelected;
|
|
66
|
+
}
|
|
67
|
+
get showStoppingPoints() {
|
|
68
|
+
const e = this.selectedNamedTraceConfiguration?.traceType;
|
|
69
|
+
return e === "path" || e === "circuit";
|
|
70
|
+
}
|
|
64
71
|
get unTraceConfiguration() {
|
|
65
72
|
return this._unTraceConfiguration;
|
|
66
73
|
}
|
|
@@ -76,10 +83,10 @@ class B extends v {
|
|
|
76
83
|
}));
|
|
77
84
|
}) : e.push(i.traceLocation);
|
|
78
85
|
};
|
|
79
|
-
return this._startingPoints.forEach((i) => t(i)), this._barriers.forEach((i) => t(i)), this._stoppingPoints.forEach((i) => t(i)), e;
|
|
86
|
+
return this.showStartingPoints && this._startingPoints.forEach((i) => t(i)), this._barriers.forEach((i) => t(i)), this.showStoppingPoints && this._stoppingPoints.forEach((i) => t(i)), e;
|
|
80
87
|
}
|
|
81
88
|
async destroy() {
|
|
82
|
-
this._removeGraphicLayer(p), this._removeGraphicLayer(
|
|
89
|
+
this._removeGraphicLayer(p), this._removeGraphicLayer(n), this._sketchViewModel?.cancel(), this._featuresComponentElement?.destroy(), this._traceLocationStartingElement?.destroy(), this._traceLocationBarrierElement?.destroy(), this._traceLocationStoppingElement?.destroy(), await this.manager.destroy();
|
|
83
90
|
}
|
|
84
91
|
load() {
|
|
85
92
|
this.manager.onLifecycle(() => [
|
|
@@ -96,7 +103,7 @@ class B extends v {
|
|
|
96
103
|
super.disconnectedCallback(), this._layerIdToLayer.clear();
|
|
97
104
|
}
|
|
98
105
|
_clearTraceLocations() {
|
|
99
|
-
this._getGraphicLayer(
|
|
106
|
+
this._getGraphicLayer(n)?.removeAll(), this._startingPoints.removeAll(), this._barriers.removeAll(), this._stoppingPoints.removeAll();
|
|
100
107
|
}
|
|
101
108
|
_createGraphicLayer(e) {
|
|
102
109
|
const { map: t } = this.view;
|
|
@@ -151,7 +158,7 @@ class B extends v {
|
|
|
151
158
|
});
|
|
152
159
|
}
|
|
153
160
|
_setupSketchViewModel() {
|
|
154
|
-
this._createGraphicLayer(p), this._createGraphicLayer(
|
|
161
|
+
this._createGraphicLayer(p), this._createGraphicLayer(n), this._sketchViewModel = this._initializeSketchViewModel(), this._setSnappingOption();
|
|
155
162
|
}
|
|
156
163
|
_clearSubnetworks() {
|
|
157
164
|
this.selectedSubnetworkName = void 0, this.subnetworksTable = void 0, this.compatibleSubnetworkNames = [];
|
|
@@ -210,7 +217,7 @@ class B extends v {
|
|
|
210
217
|
_handleUtilityNetworksChange() {
|
|
211
218
|
const { utilityNetworks: e } = this;
|
|
212
219
|
if (!e || e.length === 0) {
|
|
213
|
-
this._state = "error", u("error", this,
|
|
220
|
+
this._state = "error", u("error", this, P("utilityNetworks"));
|
|
214
221
|
return;
|
|
215
222
|
}
|
|
216
223
|
(!this.selectedUtilityNetwork || !e.includes(this.selectedUtilityNetwork)) && (this.selectedUtilityNetwork = e.at(0));
|
|
@@ -255,10 +262,10 @@ class B extends v {
|
|
|
255
262
|
e.forEach((a) => {
|
|
256
263
|
const r = a.layer?.type === "subtype-sublayer" ? a.layer.parent : a.layer;
|
|
257
264
|
if (r) {
|
|
258
|
-
const o = r.layerId,
|
|
259
|
-
if (
|
|
260
|
-
const g = t.get(
|
|
261
|
-
g.push(a), t.set(
|
|
265
|
+
const o = r.layerId, c = this._getLayerByLayerId(o);
|
|
266
|
+
if (c) {
|
|
267
|
+
const g = t.get(c) || [];
|
|
268
|
+
g.push(a), t.set(c, g);
|
|
262
269
|
}
|
|
263
270
|
}
|
|
264
271
|
});
|
|
@@ -354,21 +361,21 @@ class B extends v {
|
|
|
354
361
|
renderAddSpatialFooter() {
|
|
355
362
|
const { mode: e, _messages: t, selectedUtilityNetwork: i, _selectedFeature: a } = this, r = T(t.warnings.exceededDisplayLimit, {
|
|
356
363
|
limit: this._displayLimit.toString()
|
|
357
|
-
}), o = e === "add-spatial-feature-list" && this._exceedDisplayLimit,
|
|
364
|
+
}), o = e === "add-spatial-feature-list" && this._exceedDisplayLimit, c = a ? !(i?.isUtilityLayer(a.layer) ?? !0) : !0;
|
|
358
365
|
return s`${o && s`<calcite-input-message id=results-limited-message icon=exclamation-mark-circle status=idle>${r}</calcite-input-message>` || ""}<calcite-button appearance=outline width=full @click=${() => {
|
|
359
366
|
this._handleAddSpatialCancelClick();
|
|
360
367
|
}} slot=footer>${t.buttons.cancel}</calcite-button>${e === "add-spatial-feature" && s`<calcite-button width=full slot=footer appearance=solid @click=${() => {
|
|
361
368
|
this._handleAddSpatialAddClick();
|
|
362
|
-
}} .disabled=${
|
|
369
|
+
}} .disabled=${c}>${t.buttons.add}</calcite-button>` || ""}`;
|
|
363
370
|
}
|
|
364
371
|
renderStartingPointSelection() {
|
|
365
|
-
return s`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=starting-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(
|
|
372
|
+
return s`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=starting-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(n)} .traceLocations=${this._startingPoints} .afterHitTest=${this._handleHitTestComplete.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${h(this._traceLocationStartingRefChange)}></arcgis-utility-network-trace-location>`;
|
|
366
373
|
}
|
|
367
374
|
renderStoppingPointSelection() {
|
|
368
|
-
return s`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=stopping-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(
|
|
375
|
+
return s`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=stopping-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(n)} .traceLocations=${this._stoppingPoints} .afterHitTest=${this._handleHitTestComplete.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${h(this._traceLocationStoppingRefChange)}></arcgis-utility-network-trace-location>`;
|
|
369
376
|
}
|
|
370
377
|
renderBarrierSelection() {
|
|
371
|
-
return s`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=barrier .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(
|
|
378
|
+
return s`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=barrier .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(n)} .traceLocations=${this._barriers} .afterHitTest=${this._handleHitTestComplete.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${h(this._traceLocationBarrierRefChange)}></arcgis-utility-network-trace-location>`;
|
|
372
379
|
}
|
|
373
380
|
renderSubnetworkNameInput() {
|
|
374
381
|
return s`<calcite-input clearable type=text .placeholder=${this._messages.instructions.enterSubnetworkName} max-length=64 .value=${this.selectedSubnetworkName} @calciteInputInput=${(e) => this.selectedSubnetworkName = e.target.value}></calcite-input><calcite-input-message icon=exclamation-mark-triangle status=idle>${this._messages.labels.tooManySubnetworks}</calcite-input-message>`;
|
|
@@ -388,8 +395,8 @@ class B extends v {
|
|
|
388
395
|
const { utilityNetworks: e } = this, t = this.selectedNamedTraceConfiguration?.traceConfiguration;
|
|
389
396
|
if (!e || e.length === 0)
|
|
390
397
|
return this.renderError(this._messages.errors.noUtilityNetworkError);
|
|
391
|
-
const i = s`${this.renderTraceSelection()}${this.renderSubnetworkInfo()}${this.renderSubnetworkSelection()}`, a =
|
|
392
|
-
return s`<calcite-block-group .label=${this._messages.labels.traceInputs}>${e.length > 1 ? this.renderUtilityNetworkSelection() : null}${this.selectedUtilityNetwork?.loaded ? i : this.renderLoader()}${t ?
|
|
398
|
+
const i = s`${this.renderTraceSelection()}${this.renderSubnetworkInfo()}${this.renderSubnetworkSelection()}`, a = s`${this.showStartingPoints ? this.renderStartingPointSelection() : null}${this.showStoppingPoints ? this.renderStoppingPointSelection() : null}${this.renderBarrierSelection()}`;
|
|
399
|
+
return s`<calcite-block-group .label=${this._messages.labels.traceInputs}>${e.length > 1 ? this.renderUtilityNetworkSelection() : null}${this.selectedUtilityNetwork?.loaded ? i : this.renderLoader()}${t ? a : null}</calcite-block-group>`;
|
|
393
400
|
}
|
|
394
401
|
render() {
|
|
395
402
|
const { mode: e } = this;
|
|
@@ -135,6 +135,7 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
|
|
|
135
135
|
traceFailedHeading?: string | undefined;
|
|
136
136
|
unknown?: string | undefined;
|
|
137
137
|
};
|
|
138
|
+
get numResults(): number;
|
|
138
139
|
/**
|
|
139
140
|
* By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.
|
|
140
141
|
*
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { queryAllJSON as
|
|
4
|
-
import
|
|
2
|
+
import { c as b } from "../../chunks/runtime.js";
|
|
3
|
+
import { queryAllJSON as v } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
4
|
+
import $ from "@arcgis/core/Color.js";
|
|
5
5
|
import "@arcgis/core/core/Error.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as m from "@arcgis/core/geometry/operators/shapePreservingProjectOperator.js";
|
|
7
7
|
import "@arcgis/core/Graphic.js";
|
|
8
|
-
import
|
|
9
|
-
import { LitElement as
|
|
10
|
-
import { log as
|
|
11
|
-
import { css as
|
|
12
|
-
import { u as
|
|
13
|
-
import { h as
|
|
14
|
-
import { createRef as T, ref as
|
|
15
|
-
const
|
|
8
|
+
import F from "@arcgis/core/rest/support/FeatureSet.js";
|
|
9
|
+
import { LitElement as w, createEvent as d } from "@arcgis/lumina";
|
|
10
|
+
import { log as h, composeMissingPropertyMessage as p, composeEmptyPropertyMessage as L } from "@arcgis/toolkit/log";
|
|
11
|
+
import { css as C, html as r } from "lit";
|
|
12
|
+
import { u as R } from "../../chunks/useT9n.js";
|
|
13
|
+
import { h as y } from "../../chunks/feature-utils.js";
|
|
14
|
+
import { createRef as T, ref as g } from "lit/directives/ref.js";
|
|
15
|
+
const E = C`:host{min-height:var(--arcgis-internal-panel-height-sm, 240px);height:100%}arcgis-features{height:100%}calcite-flow{min-height:var(--arcgis-internal-panel-height-sm, 240px);height:100%}calcite-table{--calcite-table-border-color: none}calcite-table-row{--calcite-table-row-border-color: var(--calcite-color-border-3)}.white-panel-background{--calcite-panel-background-color: var(--calcite-color-foreground-1)}.aggregated-geometry-container{display:flex;justify-content:space-between;padding:0 var(--calcite-spacing-md) var(--calcite-spacing-md) var(--calcite-spacing-md)}#elements-list-item{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);margin:0 var(--calcite-spacing-sm)}.no-selectable-results{padding:0 var(--calcite-spacing-md);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size)}.results-heading{display:flex;flex-direction:column;margin:var(--calcite-spacing-md);gap:var(--calcite-spacing-xs)}.results-heading .results-heading-title{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.results-heading .results-heading-subtitle{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3)}.functions-heading{padding:var(--calcite-spacing-md) var(--calcite-spacing-md) var(--calcite-spacing-xxs) var(--calcite-spacing-md);font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;margin:var(--calcite-spacing-sm) var(--calcite-spacing-xl) var(--calcite-spacing-xl) var(--calcite-spacing-xl);gap:var(--calcite-spacing-md)}.no-results-landing calcite-icon{margin-bottom:var(--calcite-spacing-sm);--calcite-icon-color: var(--calcite-color-text-3)}.no-results-landing .no-results-heading{font-size:var(--calcite-font-size-2)}.no-results-landing .no-results-description{color:var(--calcite-color-text-3)}`, _ = {
|
|
16
16
|
dirtyAreasDiscovered: -2147208511,
|
|
17
17
|
noValidControllers: -2147208935
|
|
18
18
|
};
|
|
19
|
-
class
|
|
19
|
+
class G extends w {
|
|
20
20
|
constructor() {
|
|
21
|
-
super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages =
|
|
22
|
-
const a = e[0].feature.layer, s = t[0].feature.layer,
|
|
23
|
-
return
|
|
21
|
+
super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages = R({ blocking: !0 }), this._elementsWithoutLayer = [], this._popoverRef = T(), this._featuresFromSelectedLayer = [], this._layerIdToFeatures = /* @__PURE__ */ new Map(), this._layerIdToLayer = /* @__PURE__ */ new Map(), this._subtypeCodeToFeatures = /* @__PURE__ */ new Map(), this._sourceIdToElements = /* @__PURE__ */ new Map(), this._unLayers = [], this._compareByFeatureTitle = (e, t) => e.label.localeCompare(t.label, void 0, { numeric: !0 }), this._compareByLayerTitle = ([, e], [, t]) => {
|
|
22
|
+
const a = e[0].feature.layer, s = t[0].feature.layer, c = a?.title ?? "", l = s?.title ?? "";
|
|
23
|
+
return c.localeCompare(l, void 0, { numeric: !0 });
|
|
24
24
|
}, this._queryFeaturesOnLayer = async ([e, t]) => {
|
|
25
|
-
const a = this.utilityNetwork?.getLayerIdBySourceId(e), s = this._getLayerByLayerId(a);
|
|
25
|
+
const a = this.utilityNetwork?.getLayerIdBySourceId(e), s = this._getLayerByLayerId(a), c = this._getElementsUniqueByGlobalId(t);
|
|
26
26
|
if (a == null || !s) {
|
|
27
|
-
this._elementsWithoutLayer.push(...
|
|
27
|
+
this._elementsWithoutLayer.push(...c);
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
const l = s.createQuery();
|
|
31
|
-
l.gdbVersion = this.utilityNetwork?.gdbVersion, l.objectIds =
|
|
32
|
-
const { features:
|
|
31
|
+
l.gdbVersion = this.utilityNetwork?.gdbVersion, l.objectIds = c.map((i) => i.objectId), l.outFields = ["*"];
|
|
32
|
+
const { features: n } = F.fromJSON(await v(s, l)), o = await Promise.all(n.map(async (i) => {
|
|
33
33
|
i.layer = s.type === "subtype-group" ? s.findSublayerForFeature(i) : s, i.origin = i.layer;
|
|
34
|
-
const
|
|
35
|
-
if (i.getEffectivePopupTemplate(this._defaultPopupTemplateEnabled) || (i.popupTemplate =
|
|
36
|
-
const f = await
|
|
34
|
+
const u = i.layer;
|
|
35
|
+
if (i.getEffectivePopupTemplate(this._defaultPopupTemplateEnabled) || (i.popupTemplate = u.createPopupTemplate()), u && "getFeatureTitle" in u) {
|
|
36
|
+
const f = await u.getFeatureTitle(i) || y(i);
|
|
37
37
|
return { feature: i, label: f };
|
|
38
38
|
}
|
|
39
|
-
return { feature: i, label:
|
|
39
|
+
return { feature: i, label: y(i) };
|
|
40
40
|
}));
|
|
41
|
-
s.type === "subtype-group" ?
|
|
41
|
+
s.type === "subtype-group" ? o.forEach((i) => this._addOrCreateMapValue(this._subtypeCodeToFeatures, i.feature.layer.subtypeCode, i)) : this._layerIdToFeatures.set(a, o);
|
|
42
42
|
}, this._aggregateGeometryRefChange = (e) => {
|
|
43
43
|
e && (this._aggregatedGeometryComponentElement = e);
|
|
44
44
|
}, this._featuresRefChange = (e) => {
|
|
45
45
|
e && (this._featuresComponentElement = e);
|
|
46
|
-
}, this._aggregatedGeometryDisabled = !1, this.aggregatedGeometryGraphicsColor = new
|
|
46
|
+
}, this._aggregatedGeometryDisabled = !1, this.aggregatedGeometryGraphicsColor = new $([255, 255, 0, 0.6]), this.hideFeatureResults = !1, this.isElementsSelected = !1, this.layers = [], this.state = "ready", this.traceResultFeatures = [], this.autoDestroyDisabled = !1, this.arcgisAggregatedGeometryGraphicsColorChange = d(), this.arcgisHideGraphicsChange = d(), this.arcgisSelectedLayerChange = d(), this.arcgisSelectedResultTypeChange = d(), this.arcgisTraceResultFeaturesReady = d(), this._renderLayerListItem = ([, e]) => {
|
|
47
47
|
if (!e.length)
|
|
48
48
|
return null;
|
|
49
49
|
const t = e[0].feature.layer, a = t?.title || this._messages.unknown;
|
|
@@ -54,14 +54,17 @@ class E extends F {
|
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
static {
|
|
57
|
-
this.properties = { _aggregatedGeometryDisabled: 16, aggregatedGeometryGraphicsColor: 0, hideFeatureResults: 5, featuresFromSelectedLayer: 32, isElementsSelected: 5, layers: 0, messageOverrides: 0, referenceElement: 1, selectedFeature: 0, selectedLayer: 0, state: 1, traceConfigTitle: 1, traceError: 0, traceResult: 0, traceResultFeatures: 0, utilityNetwork: 0, view: 0, autoDestroyDisabled: 5 };
|
|
57
|
+
this.properties = { _aggregatedGeometryDisabled: 16, aggregatedGeometryGraphicsColor: 0, hideFeatureResults: 5, featuresFromSelectedLayer: 32, isElementsSelected: 5, layers: 0, messageOverrides: 0, numResults: 32, referenceElement: 1, selectedFeature: 0, selectedLayer: 0, state: 1, traceConfigTitle: 1, traceError: 0, traceResult: 0, traceResultFeatures: 0, utilityNetwork: 0, view: 0, autoDestroyDisabled: 5 };
|
|
58
58
|
}
|
|
59
59
|
static {
|
|
60
|
-
this.styles =
|
|
60
|
+
this.styles = E;
|
|
61
61
|
}
|
|
62
62
|
get featuresFromSelectedLayer() {
|
|
63
63
|
return this._featuresFromSelectedLayer.map(({ feature: e }) => e);
|
|
64
64
|
}
|
|
65
|
+
get numResults() {
|
|
66
|
+
return this.traceResultFeatures.length + this._elementsWithoutLayer.length;
|
|
67
|
+
}
|
|
65
68
|
clearAggregatedGeometryGraphics() {
|
|
66
69
|
this._aggregatedGeometryComponentElement?.destroy();
|
|
67
70
|
}
|
|
@@ -74,10 +77,10 @@ class E extends F {
|
|
|
74
77
|
}));
|
|
75
78
|
}
|
|
76
79
|
willUpdate(e) {
|
|
77
|
-
e.has("isElementsSelected") && this.arcgisSelectedResultTypeChange.emit(), e.has("selectedLayer") && this.arcgisSelectedLayerChange.emit(), e.has("traceResult") && (this.isElementsSelected = !1, this.traceResult || (this.traceResultFeatures = [])), (e.has("layers") || e.has("utilityNetwork")) && this._loadDependencies();
|
|
80
|
+
e.has("isElementsSelected") && this.arcgisSelectedResultTypeChange.emit(), e.has("selectedLayer") && this.arcgisSelectedLayerChange.emit(), e.has("traceResult") && (this.isElementsSelected = !1, this.traceResult || (this.traceResultFeatures = [], this._elementsWithoutLayer = [])), (e.has("layers") || e.has("utilityNetwork")) && this._loadDependencies();
|
|
78
81
|
}
|
|
79
82
|
loaded() {
|
|
80
|
-
this.utilityNetwork ||
|
|
83
|
+
this.utilityNetwork || h("warn", this, p("utilityNetwork")), this.layers.length === 0 && h("warn", this, L("layers")), this.view || h("warn", this, p("view"));
|
|
81
84
|
}
|
|
82
85
|
disconnectedCallback() {
|
|
83
86
|
super.disconnectedCallback(), this._layerIdToLayer.clear();
|
|
@@ -92,9 +95,12 @@ class E extends F {
|
|
|
92
95
|
const { _layerIdToLayer: t, _unLayers: a } = this;
|
|
93
96
|
if (t.get(e))
|
|
94
97
|
return t.get(e);
|
|
95
|
-
const s = a.find((
|
|
98
|
+
const s = a.find((c) => "layerId" in c && c.layerId === e);
|
|
96
99
|
return s && t.set(e, s), s;
|
|
97
100
|
}
|
|
101
|
+
_getElementsUniqueByGlobalId(e) {
|
|
102
|
+
return Array.from(new Map(e.map((t) => [t.globalId, t])).values());
|
|
103
|
+
}
|
|
98
104
|
_handleHideGraphicsChange(e) {
|
|
99
105
|
e.stopPropagation();
|
|
100
106
|
const t = e.detail;
|
|
@@ -110,7 +116,7 @@ class E extends F {
|
|
|
110
116
|
}
|
|
111
117
|
async _loadProjectOperator() {
|
|
112
118
|
const { aggregatedGeometry: e } = this.traceResult;
|
|
113
|
-
e && !
|
|
119
|
+
e && !m.isLoaded() && await m.load();
|
|
114
120
|
}
|
|
115
121
|
async _queryTraceResultsFeatures() {
|
|
116
122
|
const e = Array.from(this._sourceIdToElements.entries());
|
|
@@ -118,14 +124,14 @@ class E extends F {
|
|
|
118
124
|
return;
|
|
119
125
|
this.state = "loading";
|
|
120
126
|
const t = e.map(this._queryFeaturesOnLayer);
|
|
121
|
-
(await Promise.allSettled(t)).forEach((
|
|
122
|
-
if (
|
|
123
|
-
const [
|
|
124
|
-
|
|
127
|
+
(await Promise.allSettled(t)).forEach((l, n) => {
|
|
128
|
+
if (l.status === "rejected") {
|
|
129
|
+
const [o] = e[n];
|
|
130
|
+
h("error", this, `Failed to query features for source ${o}. Reason: ${l.reason}`);
|
|
125
131
|
}
|
|
126
132
|
});
|
|
127
|
-
const s = Array.from(this._layerIdToFeatures.values()),
|
|
128
|
-
this.traceResultFeatures = s.concat(
|
|
133
|
+
const s = Array.from(this._layerIdToFeatures.values()), c = Array.from(this._subtypeCodeToFeatures.values());
|
|
134
|
+
this.traceResultFeatures = s.concat(c).flat().map(({ feature: l }) => l);
|
|
129
135
|
}
|
|
130
136
|
_setSelectedLayerAndFeatures(e) {
|
|
131
137
|
let t;
|
|
@@ -149,17 +155,17 @@ class E extends F {
|
|
|
149
155
|
return this._renderErrorLanding(e);
|
|
150
156
|
if (!t)
|
|
151
157
|
return this._renderNoTraceLanding();
|
|
152
|
-
const { elements: a, globalFunctionResults: s, aggregatedGeometry:
|
|
153
|
-
if (!a.length && !s.length && !
|
|
158
|
+
const { elements: a, globalFunctionResults: s, aggregatedGeometry: c } = t;
|
|
159
|
+
if (!a.length && !s.length && !c)
|
|
154
160
|
return this._renderNoResultsLanding();
|
|
155
161
|
if (this.state === "loading")
|
|
156
162
|
return this._renderGettingResults();
|
|
157
163
|
if (this.selectedFeature) {
|
|
158
|
-
const n = this._featuresComponentElement,
|
|
159
|
-
return r`<arcgis-features .referenceElement=${this.referenceElement} .features=${
|
|
164
|
+
const n = this._featuresComponentElement, o = n?.selectedFeature ? [n.selectedFeature] : [this.selectedFeature];
|
|
165
|
+
return r`<arcgis-features .referenceElement=${this.referenceElement} .features=${o} .view=${this.view} open .defaultPopupTemplateEnabled=${this._defaultPopupTemplateEnabled} @arcgisClose=${() => this.selectedFeature = void 0} .autoDestroyDisabled=${this.autoDestroyDisabled} ${g(this._featuresRefChange)}></arcgis-features>`;
|
|
160
166
|
}
|
|
161
|
-
const
|
|
162
|
-
return this.hideFeatureResults &&
|
|
167
|
+
const l = a.length > 0 && !s.length && !c;
|
|
168
|
+
return this.hideFeatureResults && l ? this._renderFeaturesAreHiddenLanding() : r`<calcite-flow>${l ? null : r`<calcite-flow-item .selected=${!this.isElementsSelected}>${this._renderLanding(t)}</calcite-flow-item>`}<calcite-flow-item .heading=${this._messages.headings.features} .description=${this._messages.headings.totalFeatures.replace("{number}", this.numResults.toString())} .selected=${(l || this.isElementsSelected) && !this.selectedLayer} @calciteFlowItemBack=${() => this.isElementsSelected = !1}>${this._renderLayerList()}</calcite-flow-item><calcite-flow-item .heading=${this.selectedLayer?.title ?? void 0} .description=${this._messages.headings.totalFeatures.replace("{number}", this._featuresFromSelectedLayer.length.toString())} .selected=${!!this.selectedLayer} @calciteFlowItemBack=${() => this.selectedLayer = void 0}>${this._renderFeaturesList()}</calcite-flow-item></calcite-flow>`;
|
|
163
169
|
}
|
|
164
170
|
_renderGettingResults() {
|
|
165
171
|
return r`<calcite-panel class="white-panel-background"><calcite-loader .label=${this._messages.gettingResults} .text=${this._messages.gettingResults}></calcite-loader></calcite-panel>`;
|
|
@@ -169,7 +175,7 @@ class E extends F {
|
|
|
169
175
|
return r`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}${s != null ? this._renderAggregatedGeometry(s) : null}${s != null && !t.length ? this._renderNoSelectableResults() : null}${t.length > 0 ? this.hideFeatureResults ? this._renderFeaturesAreHidden() : this._renderElementsResults() : null}${a.length > 0 ? this._renderFunctionsResults(a) : null}</calcite-panel>`;
|
|
170
176
|
}
|
|
171
177
|
_renderAggregatedGeometry(e) {
|
|
172
|
-
return r`<div class="aggregated-geometry-container"><arcgis-utility-network-aggregated-geometry .graphicsColor=${this.aggregatedGeometryGraphicsColor} .geometry=${e} .view=${this.view} @arcgisHideGraphicsChange=${this._handleHideGraphicsChange} .autoDestroyDisabled=${this.autoDestroyDisabled} ${
|
|
178
|
+
return r`<div class="aggregated-geometry-container"><arcgis-utility-network-aggregated-geometry .graphicsColor=${this.aggregatedGeometryGraphicsColor} .geometry=${e} .view=${this.view} @arcgisHideGraphicsChange=${this._handleHideGraphicsChange} .autoDestroyDisabled=${this.autoDestroyDisabled} ${g(this._aggregateGeometryRefChange)}></arcgis-utility-network-aggregated-geometry><calcite-swatch id=geometry-color-swatch .label=${this._messages.labels.aggregatedGeometryGraphicsColor} .color=${this.aggregatedGeometryGraphicsColor.toCss()} .disabled=${this._aggregatedGeometryDisabled}></calcite-swatch><calcite-popover .heading=${this._messages.headings.setColor} .label=${this._messages.headings.setColor} reference-element=geometry-color-swatch closable ${g(this._popoverRef)}><calcite-color-picker alpha-channel channels-disabled clearable hex-disabled saved-disabled .value=${this.aggregatedGeometryGraphicsColor} @calciteColorPickerChange=${(t) => {
|
|
173
179
|
const a = t.target.value;
|
|
174
180
|
this.arcgisAggregatedGeometryGraphicsColorChange.emit(a);
|
|
175
181
|
}} .disabled=${this._aggregatedGeometryDisabled}></calcite-color-picker></calcite-popover></div>`;
|
|
@@ -184,7 +190,7 @@ class E extends F {
|
|
|
184
190
|
return r`<div class="no-selectable-results">${this._messages.noSelectableFeatures}</div>`;
|
|
185
191
|
}
|
|
186
192
|
_renderElementsResults() {
|
|
187
|
-
return r`<calcite-list .label=${this._messages.headings.traceResultsGeneric}><calcite-list-item id=elements-list-item .label=${this._messages.headings.features} @calciteListItemSelect=${() => this.isElementsSelected = !0}><calcite-chip .label=${this._messages.labels.numFeatures} scale=s slot=content-end>${this.
|
|
193
|
+
return r`<calcite-list .label=${this._messages.headings.traceResultsGeneric}><calcite-list-item id=elements-list-item .label=${this._messages.headings.features} @calciteListItemSelect=${() => this.isElementsSelected = !0}><calcite-chip .label=${this._messages.labels.numFeatures} scale=s slot=content-end>${this.numResults}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item></calcite-list>`;
|
|
188
194
|
}
|
|
189
195
|
_renderFunctionsResults(e) {
|
|
190
196
|
return r`<div class="functions-heading">${this._messages.headings.functions}</div><calcite-table .caption=${this._messages.labels.functionResults}>${e.filter((t) => t.networkAttributeName != null && t.result != null).map((t) => r`<calcite-table-row><calcite-table-cell>${t.networkAttributeName}</calcite-table-cell><calcite-table-cell>${t.result}</calcite-table-cell></calcite-table-row>`)}</calcite-table>`;
|
|
@@ -194,7 +200,7 @@ class E extends F {
|
|
|
194
200
|
return this._elementsWithoutLayer.length > 0 && s.push(this._renderUnknownListItem()), r`<calcite-list .label=${this._messages.labels.traceResultElementsByLayer} .loading=${this.state === "loading"}>${s}</calcite-list>`;
|
|
195
201
|
}
|
|
196
202
|
_renderUnknownListItem() {
|
|
197
|
-
return r`<calcite-list-item .label=${this._messages.unknown}><calcite-chip .label=${this._messages.labels.numElements} slot=content-end scale=s>${this._elementsWithoutLayer.length}</calcite-chip></calcite-list-item>`;
|
|
203
|
+
return r`<calcite-list-item .label=${this._messages.unknown} disabled><calcite-chip .label=${this._messages.labels.numElements} slot=content-end scale=s>${this._elementsWithoutLayer.length}</calcite-chip></calcite-list-item>`;
|
|
198
204
|
}
|
|
199
205
|
_renderFeaturesList() {
|
|
200
206
|
return r`<calcite-list .label=${this._messages.headings.traceResultsGeneric}>${this._featuresFromSelectedLayer.map(this._renderFeatureListItem)}</calcite-list>`;
|
|
@@ -205,10 +211,10 @@ class E extends F {
|
|
|
205
211
|
_renderErrorLanding(e) {
|
|
206
212
|
let t = e.message;
|
|
207
213
|
switch (e.details?.raw?.extendedCode) {
|
|
208
|
-
case
|
|
214
|
+
case _.dirtyAreasDiscovered:
|
|
209
215
|
t = this._messages.traceErrors.dirtyAreasDiscovered;
|
|
210
216
|
break;
|
|
211
|
-
case
|
|
217
|
+
case _.noValidControllers:
|
|
212
218
|
t = this._messages.traceErrors.noValidControllers;
|
|
213
219
|
break;
|
|
214
220
|
}
|
|
@@ -221,7 +227,7 @@ class E extends F {
|
|
|
221
227
|
return r`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-results-landing"><calcite-icon icon=utility-network-trace scale=l></calcite-icon><div class="no-results-heading">${this._messages.noTraceConfigHeading}</div><div class="no-results-description">${this._messages.noTraceConfigDescription}</div></div></calcite-panel>`;
|
|
222
228
|
}
|
|
223
229
|
}
|
|
224
|
-
|
|
230
|
+
b("arcgis-utility-network-trace-results", G);
|
|
225
231
|
export {
|
|
226
|
-
|
|
232
|
+
G as ArcgisUtilityNetworkTraceResults
|
|
227
233
|
};
|
|
@@ -10,8 +10,8 @@ import type { Icon as Icon } from "@esri/calcite-components/components/calcite-i
|
|
|
10
10
|
import type { SystemOrVolumeUnit, SystemOrLengthUnit, LengthUnit, SystemOrAreaUnit } from "@arcgis/core/core/units.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* > The Volume Measurement component is currently in
|
|
14
|
-
* > To learn about features in
|
|
13
|
+
* > The Volume Measurement component is currently in beta.
|
|
14
|
+
* > To learn about features in beta, see the [Frequently Asked Questions](https://developers.arcgis.com/javascript/latest/faq/#what-does-the-beta-tag-mean)
|
|
15
15
|
*
|
|
16
16
|
* The Volume Measurement component can be added to a
|
|
17
17
|
* [arcgis-scene](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/) to
|
|
@@ -75,6 +75,7 @@ import type { SystemOrVolumeUnit, SystemOrLengthUnit, LengthUnit, SystemOrAreaUn
|
|
|
75
75
|
* - [Sample - Volume measurement analysis object](https://developers.arcgis.com/javascript/latest/sample-code/analysis-volume-measurement/)
|
|
76
76
|
*
|
|
77
77
|
* @since 5.0
|
|
78
|
+
* @beta
|
|
78
79
|
*/
|
|
79
80
|
export abstract class ArcgisVolumeMeasurement extends LitElement {
|
|
80
81
|
/**
|