@arcgis/map-components 6.0.0-next.41 → 6.0.0-next.43
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/{HOMM5T7F.js → 23FQMZEJ.js} +1 -1
- package/dist/cdn/{OT4D3TVG.js → 2KGJ7SZH.js} +1 -1
- package/dist/cdn/{GTQOMGD7.js → 2MIHLZFT.js} +1 -1
- package/dist/cdn/{NF426VVG.js → 3L2QSX64.js} +1 -1
- package/dist/cdn/{IH2T7XRU.js → 3VLSPKTJ.js} +1 -1
- package/dist/cdn/3ZRVPLIZ.js +2 -0
- package/dist/cdn/{TII37L6V.js → 4FBPT5MA.js} +1 -1
- package/dist/cdn/{6WT5CUW4.js → 4IPFHL7W.js} +1 -1
- package/dist/cdn/{5XZKVLHC.js → 5ATTOWK4.js} +1 -1
- package/dist/cdn/{HUZLTULW.js → 5MRT5VRJ.js} +1 -1
- package/dist/cdn/6E4PVTTN.js +2 -0
- package/dist/cdn/{JBD7Q5YD.js → 6NCSWYYX.js} +1 -1
- package/dist/cdn/{5VK56DPB.js → 6NY67VW5.js} +1 -1
- package/dist/cdn/{RX7LVZ5V.js → 6P7V62WJ.js} +1 -1
- package/dist/cdn/{2BKWAHTD.js → 6TLX4R5A.js} +1 -1
- package/dist/cdn/6YPY3QWH.js +2 -0
- package/dist/cdn/72KS3TKM.js +2 -0
- package/dist/cdn/{5IWCWL2Q.js → 7FB4DOVH.js} +1 -1
- package/dist/cdn/{DYKRS7YX.js → 7GXJ6HJZ.js} +1 -1
- package/dist/cdn/7WUY57GO.js +2 -0
- package/dist/cdn/{DVLTVCIH.js → 7YSYI32G.js} +1 -1
- package/dist/cdn/{AMRGLUBB.js → AKSCONMP.js} +1 -1
- package/dist/cdn/{FTRRLFYT.js → B6VGTQ4L.js} +1 -1
- package/dist/cdn/BQCOYIEH.js +2 -0
- package/dist/cdn/{Y6MM3GUE.js → BVWTI63V.js} +1 -1
- package/dist/cdn/{4DRKK3S6.js → CBCAUSDJ.js} +1 -1
- package/dist/cdn/{CX23L4OX.js → CPK3PMBE.js} +1 -1
- package/dist/cdn/CSVVXWVY.js +2 -0
- package/dist/cdn/{Y4GL4RZF.js → CX5AZKYT.js} +1 -1
- package/dist/cdn/{2J6WEB6T.js → DEICCDP4.js} +1 -1
- package/dist/cdn/DJAFLMKA.js +2 -0
- package/dist/cdn/DSINA62N.js +4 -0
- package/dist/cdn/{NYIKMTKG.js → E4ZUESKS.js} +1 -1
- package/dist/cdn/{UJBFSJDF.js → E5BLQ5FK.js} +1 -1
- package/dist/cdn/{KKSTZRNG.js → EDGXY4OL.js} +1 -1
- package/dist/cdn/{YEPFWDQQ.js → EL5AFBNE.js} +1 -1
- package/dist/cdn/{GEZIZQV6.js → EN5NCDOJ.js} +1 -1
- package/dist/cdn/{QNQOBXLM.js → EQA4WO3H.js} +1 -1
- package/dist/cdn/{JILA7S66.js → FLSEDKWU.js} +1 -1
- package/dist/cdn/{625O4F4L.js → GQVCBPZS.js} +1 -1
- package/dist/cdn/{I7XTEFQP.js → GSGFAJCR.js} +1 -1
- package/dist/cdn/{BXBPEOE3.js → GSU7GNNP.js} +1 -1
- package/dist/cdn/{IZFEOYED.js → H2PXK4AT.js} +1 -1
- package/dist/cdn/{RCJ3GROZ.js → HBQAYD5H.js} +1 -1
- package/dist/cdn/{D7RGMUI2.js → IAJNBAC5.js} +1 -1
- package/dist/cdn/{JPQ5ELDQ.js → INMMQJOE.js} +1 -1
- package/dist/cdn/{OMDFAKMT.js → IQYLP2H7.js} +1 -1
- package/dist/cdn/{DVH35LZL.js → J2K2LRII.js} +1 -1
- package/dist/cdn/JUTSSJJF.js +2 -0
- package/dist/cdn/JZYDXRQ6.js +4 -0
- package/dist/cdn/{Y6ZJNJZ7.js → KSOO3XZ2.js} +1 -1
- package/dist/cdn/{KLSIUZNN.js → MKL4YXDU.js} +1 -1
- package/dist/cdn/{EMOYKTQL.js → O2BFE6NY.js} +1 -1
- package/dist/cdn/OUFB4LJK.js +2 -0
- package/dist/cdn/{GFC6LS4L.js → OYG42YJL.js} +1 -1
- package/dist/cdn/{O2RCWKKW.js → PD2BELF2.js} +1 -1
- package/dist/cdn/{T2JBUILX.js → PFYEJDRJ.js} +1 -1
- package/dist/cdn/{JWCEHGEZ.js → PNMBUGPD.js} +1 -1
- package/dist/cdn/QEAEEU72.js +2 -0
- package/dist/cdn/{U53HTVZS.js → RUJLTSDR.js} +1 -1
- package/dist/cdn/{IH7XQCY4.js → SA7B3XQG.js} +1 -1
- package/dist/cdn/{CNUAMIZQ.js → T5RX6NXT.js} +2 -2
- package/dist/cdn/T7PDMEAD.js +2 -0
- package/dist/cdn/{7PMJ7HCH.js → U5BYZI4G.js} +1 -1
- package/dist/cdn/UPXNXNTT.js +2 -0
- package/dist/cdn/{MG2HQ3FT.js → UW3FYQWG.js} +1 -1
- package/dist/cdn/V34ZYXUI.js +2 -0
- package/dist/cdn/{WRB2DEQ6.js → W6ILOTBW.js} +1 -1
- package/dist/cdn/{EZFBYRI4.js → WYX6WXW4.js} +1 -1
- package/dist/cdn/{JFE63ANJ.js → X27EW2YC.js} +1 -1
- package/dist/cdn/{6GFNMSM4.js → XHHVIWXO.js} +1 -1
- package/dist/cdn/{7P24CQF4.js → XOWOMVSW.js} +1 -1
- package/dist/cdn/{CRJB272X.js → XURPEC42.js} +1 -1
- package/dist/cdn/{WVRIR3PK.js → YB6AHPU5.js} +1 -1
- package/dist/cdn/{LQYTLVCL.js → YRQXG7GX.js} +1 -1
- package/dist/cdn/{LHH3PS5H.js → ZVGWUEUE.js} +1 -1
- package/dist/cdn/assets/time-zone-chip/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/AnalysisViewModel.js +1 -1
- package/dist/chunks/async-utils.js +1 -1
- package/dist/chunks/slots.js +1 -1
- package/dist/components/arcgis-daylight/customElement.d.ts +43 -50
- package/dist/components/arcgis-daylight/customElement.js +231 -225
- package/dist/components/arcgis-editor/customElement.d.ts +0 -1
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +8 -0
- package/dist/components/arcgis-elevation-profile/customElement.js +39 -38
- package/dist/components/arcgis-line-of-sight/customElement.d.ts +4 -1
- package/dist/components/arcgis-link-chart/customElement.d.ts +0 -1
- package/dist/components/arcgis-map/customElement.d.ts +0 -1
- package/dist/components/arcgis-scene/customElement.d.ts +0 -1
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +36 -24
- package/dist/components/arcgis-shadow-cast/customElement.js +105 -128
- package/dist/components/arcgis-sketch/customElement.d.ts +0 -1
- package/dist/components/arcgis-time-zone-chip/customElement.d.ts +8 -0
- package/dist/components/arcgis-time-zone-chip/customElement.js +27 -18
- package/dist/components/arcgis-utility-network-trace-locations/customElement.js +34 -34
- package/dist/components/types.d.ts +7 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +0 -10
- package/dist/loader.js +3 -4
- package/dist/types/lumina.d.ts +6 -11
- package/dist/types/preact.d.ts +6 -12
- package/dist/types/react.d.ts +6 -13
- package/dist/types/stencil.d.ts +6 -11
- package/package.json +7 -7
- package/dist/cdn/27TSPXYV.js +0 -2
- package/dist/cdn/2JSC2QUL.js +0 -2
- package/dist/cdn/43IGD6V3.js +0 -2
- package/dist/cdn/4JR57ZIQ.js +0 -2
- package/dist/cdn/6BT6RP22.js +0 -2
- package/dist/cdn/6KYZMT4A.js +0 -2
- package/dist/cdn/BJUFDQGX.js +0 -2
- package/dist/cdn/DFNH6YRR.js +0 -2
- package/dist/cdn/GOMR7D5M.js +0 -2
- package/dist/cdn/HKKNU4CX.js +0 -2
- package/dist/cdn/LZUAJU6O.js +0 -2
- package/dist/cdn/PYBUTNHM.js +0 -2
- package/dist/cdn/SKV3CQSZ.js +0 -2
- package/dist/cdn/TXVB6WRV.js +0 -2
- package/dist/cdn/UYDXI4AK.js +0 -4
- package/dist/cdn/YAWLVMV6.js +0 -2
- package/dist/cdn/YGBYB3BZ.js +0 -2
- package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +0 -100
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +0 -44
- package/dist/components/arcgis-utility-network-validate-topology/index.d.ts +0 -1
- package/dist/components/arcgis-utility-network-validate-topology/index.js +0 -1
- /package/dist/cdn/{SLQPDAGN.js → 237ZYFAI.js} +0 -0
- /package/dist/cdn/{AYQJ2LTV.js → 4LNUUNTS.js} +0 -0
- /package/dist/cdn/{OLSESBZ7.js → 4RG2L4NX.js} +0 -0
- /package/dist/cdn/{N2YWWQOS.js → 6F6UDFL6.js} +0 -0
- /package/dist/cdn/{62HMPABL.js → 6FZQAFDW.js} +0 -0
- /package/dist/cdn/{RTDY3HLR.js → 6RNYBJQG.js} +0 -0
- /package/dist/cdn/{ZCL4XHIZ.js → 6YT2MRU6.js} +0 -0
- /package/dist/cdn/{XQ2WXTW7.js → AAF7U7C7.js} +0 -0
- /package/dist/cdn/{IRFIHD5X.js → AZFQTGM4.js} +0 -0
- /package/dist/cdn/{XCSF7KJK.js → BVR6RYPL.js} +0 -0
- /package/dist/cdn/{DPEWQQEB.js → C3VCBV5R.js} +0 -0
- /package/dist/cdn/{ZSKO7HLH.js → COJJ4ST7.js} +0 -0
- /package/dist/cdn/{NVN2CATF.js → CSLBASOL.js} +0 -0
- /package/dist/cdn/{2P5AJORF.js → DDUJHOQ5.js} +0 -0
- /package/dist/cdn/{DLUFAV4S.js → F25B6VFT.js} +0 -0
- /package/dist/cdn/{PWZHB6VD.js → FC4U5FYO.js} +0 -0
- /package/dist/cdn/{SLNXNVPI.js → H3SNBMDP.js} +0 -0
- /package/dist/cdn/{QWMDZDQA.js → HDNFEQXP.js} +0 -0
- /package/dist/cdn/{FJMXBIN5.js → HMAEKQ63.js} +0 -0
- /package/dist/cdn/{T34W3GKP.js → HRKFC3ZC.js} +0 -0
- /package/dist/cdn/{5GTPIPN7.js → ID3JLPN6.js} +0 -0
- /package/dist/cdn/{KOMTNQPT.js → IKNNVF57.js} +0 -0
- /package/dist/cdn/{OFBWNR54.js → J3U6IFQO.js} +0 -0
- /package/dist/cdn/{CHMBPPHS.js → JUG5VVPL.js} +0 -0
- /package/dist/cdn/{MEISDI2H.js → KYUDUFNZ.js} +0 -0
- /package/dist/cdn/{4LWSF6AI.js → L63YJ5AF.js} +0 -0
- /package/dist/cdn/{LVIYMA67.js → LGPNCTTW.js} +0 -0
- /package/dist/cdn/{LS4U4GD5.js → LH4SQVC2.js} +0 -0
- /package/dist/cdn/{XGWYQ7FU.js → LNUFIKD5.js} +0 -0
- /package/dist/cdn/{7YT5W57B.js → NIASADUV.js} +0 -0
- /package/dist/cdn/{UDXDE3LW.js → NJ3CJS46.js} +0 -0
- /package/dist/cdn/{6SL7YNKF.js → NXC47WWQ.js} +0 -0
- /package/dist/cdn/{ZNIMZP5R.js → O527UXXI.js} +0 -0
- /package/dist/cdn/{G4IKO2R6.js → OXZOWO5A.js} +0 -0
- /package/dist/cdn/{SFDCS6A2.js → PHFJU5KL.js} +0 -0
- /package/dist/cdn/{TP2KQRW6.js → QHK5I5OO.js} +0 -0
- /package/dist/cdn/{IAYL44LK.js → RB3QNSQJ.js} +0 -0
- /package/dist/cdn/{ECA47Z37.js → T4CJDMMZ.js} +0 -0
- /package/dist/cdn/{AKTIOEYM.js → TAU22PX7.js} +0 -0
- /package/dist/cdn/{ZHYXFOYU.js → VP47DYTR.js} +0 -0
- /package/dist/cdn/{NVKOZL7X.js → WMP77MLQ.js} +0 -0
- /package/dist/cdn/{5GGAWGSN.js → WMRMVZHH.js} +0 -0
- /package/dist/cdn/{GCPR7XFU.js → YEEPGAEP.js} +0 -0
|
@@ -10,14 +10,14 @@ import M from "@arcgis/core/geometry/Point.js";
|
|
|
10
10
|
import S from "@arcgis/core/geometry/Polyline.js";
|
|
11
11
|
import j from "@arcgis/core/Graphic.js";
|
|
12
12
|
import O from "@arcgis/core/layers/GraphicsLayer.js";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
13
|
+
import v from "@arcgis/core/rest/networks/support/TraceLocation.js";
|
|
14
|
+
import G from "@arcgis/core/symbols/SimpleMarkerSymbol.js";
|
|
15
15
|
import H from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
|
|
16
16
|
import { LitElement as U, createEvent as $ } from "@arcgis/lumina";
|
|
17
17
|
import { log as p, composeMissingPropertyMessage as k } from "@arcgis/toolkit/log";
|
|
18
18
|
import { u as V } from "../../chunks/useT9n.js";
|
|
19
19
|
import { a as W, d as z, e as R, i as Z } from "../../chunks/layer-utils.js";
|
|
20
|
-
import { css as Q, html as
|
|
20
|
+
import { css as Q, html as h } from "lit";
|
|
21
21
|
import E from "@arcgis/core/views/interactive/snapping/FeatureSnappingLayerSource.js";
|
|
22
22
|
import { substitute as J } from "@arcgis/core/intl.js";
|
|
23
23
|
const K = Q`calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.button-container{display:flex;justify-content:center}calcite-list{margin:0 var(--calcite-space-sm) var(--calcite-space-sm);background-color:var(--calcite-color-surface-2);border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);overflow:hidden}calcite-list-item[selected] [slot=content-bottom]{display:block}.warning{color:var(--calcite-color-status-danger)}.terminals{padding:var(--calcite-space-sm) var(--calcite-space-md);display:flex;flex-direction:column}.filter-barrier{display:flex;justify-content:space-between;align-items:center;width:100%}`, P = `utility-network-trace-locations-sketch-${Date.now()}`;
|
|
@@ -67,7 +67,7 @@ class I extends U {
|
|
|
67
67
|
}
|
|
68
68
|
async destroy() {
|
|
69
69
|
try {
|
|
70
|
-
this.#t && this.sketchViewModel?.cancel(), this.#i();
|
|
70
|
+
this.#t && this.sketchViewModel?.cancel(), this.view && this.#i();
|
|
71
71
|
} finally {
|
|
72
72
|
await this.manager.destroy();
|
|
73
73
|
}
|
|
@@ -118,13 +118,13 @@ class I extends U {
|
|
|
118
118
|
const c = N(r, s);
|
|
119
119
|
if (c.isEmpty)
|
|
120
120
|
return p("warn", this, "Unable to compute nearest coordinate for polyline flag."), -1;
|
|
121
|
-
const n = c.coordinate, l = n.x - 0.5, o = n.y - 0.5,
|
|
121
|
+
const n = c.coordinate, l = n.x - 0.5, o = n.y - 0.5, u = n.x + 0.5, b = n.y + 0.5, L = new S({
|
|
122
122
|
hasZ: !1,
|
|
123
123
|
hasM: !0,
|
|
124
124
|
paths: [
|
|
125
125
|
[
|
|
126
126
|
[l, o],
|
|
127
|
-
[
|
|
127
|
+
[u, b]
|
|
128
128
|
]
|
|
129
129
|
],
|
|
130
130
|
spatialReference: r.spatialReference
|
|
@@ -189,12 +189,12 @@ class I extends U {
|
|
|
189
189
|
}
|
|
190
190
|
#p(e, t, r) {
|
|
191
191
|
if (e.state === "complete" && e.graphic) {
|
|
192
|
-
r.layer.remove(e.graphic), this.#
|
|
192
|
+
r.layer.remove(e.graphic), this.#h(e, t, r);
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
195
|
e.state === "cancel" && (this.#i(), this.arcgisTraceLocationSelectEnd.emit());
|
|
196
196
|
}
|
|
197
|
-
async #
|
|
197
|
+
async #h(e, t, r) {
|
|
198
198
|
const { utilityNetwork: i } = this, { graphic: a } = e;
|
|
199
199
|
if (!i) {
|
|
200
200
|
p("error", this, k("utilityNetwork")), this.#i(), this.arcgisTraceLocationSelectEnd.emit();
|
|
@@ -218,10 +218,10 @@ class I extends U {
|
|
|
218
218
|
}
|
|
219
219
|
this.#i();
|
|
220
220
|
try {
|
|
221
|
-
await this.#
|
|
221
|
+
await this.#u(l, s, t) ? this.arcgisTraceLocationSelectEnd.emit() : this.#r(t, r);
|
|
222
222
|
} catch (o) {
|
|
223
|
-
const
|
|
224
|
-
this.#e("error",
|
|
223
|
+
const u = o instanceof Error ? o.message : String(o);
|
|
224
|
+
this.#e("error", u), this.arcgisTraceLocationSelectEnd.emit();
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
#i() {
|
|
@@ -232,7 +232,7 @@ class I extends U {
|
|
|
232
232
|
}
|
|
233
233
|
t && (t.snappingOptions.enabled = !1), this.#t?.remove(), this.#t = void 0, "acquireCursor" in e && e.acquireCursor("default");
|
|
234
234
|
}
|
|
235
|
-
async #
|
|
235
|
+
async #u(e, t, r) {
|
|
236
236
|
if (!e.length)
|
|
237
237
|
return this.#e("error", this._messages.errors.noHitResult), !1;
|
|
238
238
|
let a = e[0].graphic;
|
|
@@ -255,8 +255,8 @@ class I extends U {
|
|
|
255
255
|
return await this.#f(s, t, r);
|
|
256
256
|
}
|
|
257
257
|
async #d(e) {
|
|
258
|
-
const t = (R(e.layer), e.layer), r = t.geometryType === null, i = t.fieldsIndex?.get("assetgroup") ?? !1, a = t.fieldsIndex?.get("assetgroup")?.name ?? "assetgroup", s = t.fieldsIndex?.get("assettype") ?? !1, c = t.fieldsIndex?.get("assettype")?.name ?? "assettype", n = e.getGlobalId(), l = e.getObjectId(), o = i ? !!e.getAttribute(a) : !0,
|
|
259
|
-
if (n && l && o &&
|
|
258
|
+
const t = (R(e.layer), e.layer), r = t.geometryType === null, i = t.fieldsIndex?.get("assetgroup") ?? !1, a = t.fieldsIndex?.get("assetgroup")?.name ?? "assetgroup", s = t.fieldsIndex?.get("assettype") ?? !1, c = t.fieldsIndex?.get("assettype")?.name ?? "assettype", n = e.getGlobalId(), l = e.getObjectId(), o = i ? !!e.getAttribute(a) : !0, u = s ? !!e.getAttribute(c) : !0, b = !!e.geometry;
|
|
259
|
+
if (n && l && o && u && (b || r))
|
|
260
260
|
return e;
|
|
261
261
|
const L = t.createQuery();
|
|
262
262
|
return L.objectIds = [l], (await t.queryFeatures(L)).features[0] || null;
|
|
@@ -280,7 +280,7 @@ class I extends U {
|
|
|
280
280
|
if (s === "point" || s === "polygon") {
|
|
281
281
|
const n = i?.getTerminalConfiguration(e), l = n ? n.terminals[0].id : 1;
|
|
282
282
|
return {
|
|
283
|
-
traceLocation: new
|
|
283
|
+
traceLocation: new v({
|
|
284
284
|
type: r,
|
|
285
285
|
isFilterBarrier: !1,
|
|
286
286
|
globalId: a,
|
|
@@ -300,7 +300,7 @@ class I extends U {
|
|
|
300
300
|
} else if (s === "polyline") {
|
|
301
301
|
const n = this.#o(e.geometry, t);
|
|
302
302
|
return n < 0 ? (p("warn", this, "Unable to calculate percent along for polyline flag."), null) : {
|
|
303
|
-
traceLocation: new
|
|
303
|
+
traceLocation: new v({
|
|
304
304
|
type: r,
|
|
305
305
|
isFilterBarrier: !1,
|
|
306
306
|
globalId: a,
|
|
@@ -318,20 +318,20 @@ class I extends U {
|
|
|
318
318
|
}
|
|
319
319
|
};
|
|
320
320
|
} else if (!s) {
|
|
321
|
-
const n = Z(e.layer) ? e.layer.parent : e.layer, l = n && this.#c.includes(n.layerId), o = i?.getTerminalConfiguration(e),
|
|
321
|
+
const n = Z(e.layer) ? e.layer.parent : e.layer, l = n && this.#c.includes(n.layerId), o = i?.getTerminalConfiguration(e), u = o ? o.terminals[0].id : l ? -1 : 1, b = l ? 0.5 : -1;
|
|
322
322
|
return {
|
|
323
|
-
traceLocation: new
|
|
323
|
+
traceLocation: new v({
|
|
324
324
|
type: r,
|
|
325
325
|
isFilterBarrier: !1,
|
|
326
326
|
globalId: a,
|
|
327
|
-
terminalId:
|
|
327
|
+
terminalId: u,
|
|
328
328
|
percentAlong: b
|
|
329
329
|
}),
|
|
330
330
|
flagProperties: {
|
|
331
331
|
title: c,
|
|
332
332
|
expanded: !1,
|
|
333
333
|
terminalConfiguration: o ?? void 0,
|
|
334
|
-
selectedTerminals: o ? /* @__PURE__ */ new Set([
|
|
334
|
+
selectedTerminals: o ? /* @__PURE__ */ new Set([u]) : void 0
|
|
335
335
|
},
|
|
336
336
|
spatialProperties: {
|
|
337
337
|
mapPoint: t,
|
|
@@ -355,7 +355,7 @@ class I extends U {
|
|
|
355
355
|
}
|
|
356
356
|
#b() {
|
|
357
357
|
const { traceLocationType: e } = this, t = [244, 21, 21, 0.6], r = [21, 244, 21, 0.6];
|
|
358
|
-
return e === "stopping-point" ? new
|
|
358
|
+
return e === "stopping-point" ? new G({
|
|
359
359
|
color: t,
|
|
360
360
|
style: "x",
|
|
361
361
|
size: 12,
|
|
@@ -363,7 +363,7 @@ class I extends U {
|
|
|
363
363
|
color: t,
|
|
364
364
|
width: 2
|
|
365
365
|
}
|
|
366
|
-
}) : e === "barrier" ? new
|
|
366
|
+
}) : e === "barrier" ? new G({
|
|
367
367
|
color: t,
|
|
368
368
|
style: "square",
|
|
369
369
|
size: 12,
|
|
@@ -371,7 +371,7 @@ class I extends U {
|
|
|
371
371
|
color: t,
|
|
372
372
|
width: 0
|
|
373
373
|
}
|
|
374
|
-
}) : new
|
|
374
|
+
}) : new G({
|
|
375
375
|
color: r,
|
|
376
376
|
style: "circle",
|
|
377
377
|
size: 12,
|
|
@@ -389,24 +389,24 @@ class I extends U {
|
|
|
389
389
|
}
|
|
390
390
|
#L(e, t) {
|
|
391
391
|
const { flagProperties: r } = e, { selectedTerminals: i } = r, { name: a, id: s } = t, c = i?.has(s) ?? !1;
|
|
392
|
-
return
|
|
392
|
+
return h`<calcite-label layout=inline><calcite-checkbox .value=${s} .checked=${c} @calciteCheckboxChange=${(n) => {
|
|
393
393
|
n.target.checked ? i?.add(s) : i?.delete(s), this.requestUpdate();
|
|
394
394
|
}}></calcite-checkbox>${a}</calcite-label>`;
|
|
395
395
|
}
|
|
396
396
|
#T() {
|
|
397
|
-
return
|
|
397
|
+
return h`<calcite-notice kind=danger open scale=s width=auto><div slot=message>${this._messages.errors.noTerminalSelected}</div></calcite-notice>`;
|
|
398
398
|
}
|
|
399
399
|
#k(e) {
|
|
400
400
|
const { traceLocation: t } = e;
|
|
401
|
-
return
|
|
401
|
+
return h`<calcite-label layout=inline><div class="filter-barrier">${this._messages.labels.filterBarrier}<calcite-switch .checked=${t.isFilterBarrier} @calciteSwitchChange=${(r) => {
|
|
402
402
|
t.isFilterBarrier = r.target.checked;
|
|
403
403
|
}}></calcite-switch></div></calcite-label>`;
|
|
404
404
|
}
|
|
405
405
|
#x(e) {
|
|
406
406
|
const { flagProperties: t } = e, { terminalConfiguration: r, selectedTerminals: i } = t, a = e.traceLocation.type === "barrier", s = r && r.terminals.length > 0 && i?.size === 0;
|
|
407
|
-
return
|
|
407
|
+
return h`<calcite-action .icon=${t.expanded ? "chevron-up" : "chevron-down"} slot=actions-end scale=s text @click=${() => {
|
|
408
408
|
t.expanded = !t.expanded, this.requestUpdate();
|
|
409
|
-
}}></calcite-action>${s &&
|
|
409
|
+
}}></calcite-action>${s && h`<calcite-icon class="warning" icon=exclamation-mark-triangle scale=s slot=content-start></calcite-icon>` || ""}${t.expanded && h`<div class="terminals" slot=content-bottom>${a && this.#k(e) || ""}${r && this.#S(e) || ""}${s && this.#T() || ""}</div>` || ""}`;
|
|
410
410
|
}
|
|
411
411
|
#S(e) {
|
|
412
412
|
const { flagProperties: t } = e, { terminalConfiguration: r } = t;
|
|
@@ -415,19 +415,19 @@ class I extends U {
|
|
|
415
415
|
const i = r.terminals;
|
|
416
416
|
return i.length ? i.length === 1 ? [] : i.map((s) => this.#L(e, s)) : (p("warn", this, "`terminalConfiguration.terminals` is required but either missing or empty.`"), []);
|
|
417
417
|
}
|
|
418
|
-
#
|
|
418
|
+
#v(e) {
|
|
419
419
|
const { flagProperties: t } = e, { terminalConfiguration: r, expanded: i, title: a } = t, s = r && r.id !== 0, c = e.traceLocation.type === "barrier", n = s || c, l = r?.name ?? void 0;
|
|
420
|
-
return
|
|
420
|
+
return h`<calcite-list-item .label=${a} .description=${l} .value=${a} .expanded=${i}>${n ? this.#x(e) : h`<div slot=content-bottom></div>`}<calcite-action icon=x slot=actions-end scale=s text @click=${() => this.#a(e)}></calcite-action></calcite-list-item>`;
|
|
421
421
|
}
|
|
422
|
-
#
|
|
422
|
+
#G(e) {
|
|
423
423
|
if (!e.length)
|
|
424
424
|
return null;
|
|
425
|
-
const { traceLocationType: t } = this, r = e.map((a) => this.#
|
|
426
|
-
return
|
|
425
|
+
const { traceLocationType: t } = this, r = e.map((a) => this.#v(a)).toArray(), i = J(this._messages.labels.list, { type: t });
|
|
426
|
+
return h`<div><calcite-list interaction-mode=static selection-mode=none .label=${i}>${r}</calcite-list></div>`;
|
|
427
427
|
}
|
|
428
428
|
#$() {
|
|
429
429
|
const { traceLocationType: e, _messages: t, traceLocations: r, heading: i } = this, a = e === "starting-point" ? t.types.startingPoint : e === "barrier" ? t.types.barrier : t.types.stoppingPoint, s = i ?? a.heading, c = a.description, n = a.buttonText;
|
|
430
|
-
return
|
|
430
|
+
return h`<calcite-block .heading=${s} .label=${s} expanded .description=${c}>${r?.length ? h`<calcite-button slot=actions-end appearance=transparent .label=${t.buttons.clear} @click=${() => this.#w()}>${t.buttons.clear}</calcite-button>${this.#G(r)}` : null}<div class="button-container"><calcite-button .loading=${this._isSelectWaiting} class="add-location-button" icon-start=select appearance=outline .label=${n} @click=${() => this.#l()}>${n}</calcite-button></div></calcite-block>`;
|
|
431
431
|
}
|
|
432
432
|
render() {
|
|
433
433
|
return this.#$();
|
|
@@ -19,6 +19,13 @@ export type IconName = Icon["icon"];
|
|
|
19
19
|
|
|
20
20
|
export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* Controls how the scene time zone can be edited.
|
|
24
|
+
*
|
|
25
|
+
* @since 6.0
|
|
26
|
+
*/
|
|
27
|
+
export type TimeZoneEditMode = "action" | "inline" | "read-only";
|
|
28
|
+
|
|
22
29
|
/** A potential source of load errors. */
|
|
23
30
|
export type LoadErrorSource = Basemap | Ground | Layer | WebLinkChart | WebMap | WebScene;
|
|
24
31
|
|