@arcgis/map-components 5.1.0-next.83 → 5.1.0-next.84
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/{7752ICPP.js → 2NY3SFXY.js} +1 -1
- package/dist/cdn/66YJK5TN.js +2 -0
- package/dist/cdn/{HBEEL7IW.js → 6VJBGE5W.js} +1 -1
- package/dist/cdn/AFAQWPXY.js +2 -0
- package/dist/cdn/AU2CHOT7.js +2 -0
- package/dist/cdn/{GPU57C3Y.js → CLGZBSF4.js} +1 -1
- package/dist/cdn/{7TRV2EOI.js → ELGQ2B5Q.js} +1 -1
- package/dist/cdn/{JT5PIQU5.js → FPT2UAZM.js} +1 -1
- package/dist/cdn/{MVULTZL6.js → FQY55PPT.js} +1 -1
- package/dist/cdn/{K2RCQ3S4.js → HTNECFCQ.js} +1 -1
- package/dist/cdn/{GDHU6FB7.js → HU4V2LGL.js} +1 -1
- package/dist/cdn/{5SWQQWAZ.js → IMENOON5.js} +1 -1
- package/dist/cdn/IYYLPWB4.js +2 -0
- package/dist/cdn/{6ECAKVHP.js → KKQWYK3S.js} +1 -1
- package/dist/cdn/{L3OVLVI3.js → LLRYOV3A.js} +1 -1
- package/dist/cdn/{DTRSQHPV.js → MV6B2G3T.js} +1 -1
- package/dist/cdn/{VQ7UIUFE.js → NOIIORU5.js} +1 -1
- package/dist/cdn/{CVNE57KC.js → NUXHWUHW.js} +1 -1
- package/dist/cdn/O5ZWXMTJ.js +2 -0
- package/dist/cdn/{WKA6U2M7.js → OYSW2K2B.js} +1 -1
- package/dist/cdn/{NVRFQSZB.js → ST5DXIZ6.js} +1 -1
- package/dist/cdn/{F7UR4A5G.js → U5G4PHA4.js} +1 -1
- package/dist/cdn/{6BESCJK6.js → XQ5BV7DL.js} +1 -1
- package/dist/cdn/{NGAZTR7Y.js → XWYXHSGO.js} +1 -1
- package/dist/cdn/{CQ7BRDZC.js → YACNPFYK.js} +1 -1
- package/dist/cdn/{5UBX7NJZ.js → YHD6DZQT.js} +1 -1
- package/dist/cdn/{G4QTXMBQ.js → ZO7ZJ52E.js} +1 -1
- package/dist/cdn/{7NFLP5PG.js → ZPSJEBD6.js} +1 -1
- package/dist/cdn/assets/features/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/async-utils.js +63 -51
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +2 -3
- package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend/customElement.js +20 -14
- package/dist/components/arcgis-time-slider/customElement.d.ts +687 -352
- package/dist/components/arcgis-time-slider/customElement.js +678 -26
- package/dist/components/arcgis-time-slider/index.js +7 -0
- package/dist/components/arcgis-time-slider/types.d.ts +147 -0
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +24 -24
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +1 -1
- package/dist/components/arcgis-zoom/customElement.js +27 -33
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +1 -2
- package/dist/types/preact.d.ts +1 -2
- package/dist/types/react.d.ts +1 -2
- package/dist/types/stencil.d.ts +1 -2
- package/package.json +4 -4
- package/dist/cdn/OZZ7CYLP.js +0 -2
- package/dist/cdn/PQSRQNWY.js +0 -2
- package/dist/cdn/V4RMKJUW.js +0 -2
- package/dist/cdn/VWL5JQZ4.js +0 -2
- package/dist/cdn/XUYGLABO.js +0 -2
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import
|
|
3
|
-
import { property as l, subclass as
|
|
4
|
-
import
|
|
5
|
-
import { a as
|
|
6
|
-
import { log as
|
|
7
|
-
var
|
|
8
|
-
for (var n = o > 1 ? void 0 : o ?
|
|
9
|
-
(u = t[
|
|
10
|
-
return o && n &&
|
|
2
|
+
import d from "@arcgis/core/core/Accessor.js";
|
|
3
|
+
import { property as l, subclass as m } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
4
|
+
import p from "@arcgis/core/core/Error.js";
|
|
5
|
+
import { a as h, r as w } from "./maybe.js";
|
|
6
|
+
import { log as _ } from "@arcgis/toolkit/log";
|
|
7
|
+
var v = Object.defineProperty, A = Object.getOwnPropertyDescriptor, a = (t, r, e, o) => {
|
|
8
|
+
for (var n = o > 1 ? void 0 : o ? A(r, e) : r, i = t.length - 1, u; i >= 0; i--)
|
|
9
|
+
(u = t[i]) && (n = (o ? u(r, e, n) : u(n)) || n);
|
|
10
|
+
return o && n && v(r, e, n), n;
|
|
11
11
|
};
|
|
12
|
-
function
|
|
12
|
+
function S(t, r, e) {
|
|
13
13
|
if (t && typeof t == "object" && !Array.isArray(t)) {
|
|
14
|
-
const n = "details" in t && t.details && typeof t.details == "object" && !Array.isArray(t.details) ? { detail: t.details } : void 0,
|
|
15
|
-
|
|
14
|
+
const n = "details" in t && t.details && typeof t.details == "object" && !Array.isArray(t.details) ? { detail: t.details } : void 0, i = e ? `${e} - ${String(t)}` : String(t);
|
|
15
|
+
_("error", r, i, n);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
return new
|
|
18
|
+
function f(t = "Aborted") {
|
|
19
|
+
return new p("AbortError", t);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function j(t, r = "Aborted") {
|
|
22
22
|
if (g(t))
|
|
23
|
-
throw
|
|
23
|
+
throw f(r);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function b(t) {
|
|
26
26
|
return t instanceof AbortSignal ? t : t?.signal ?? void 0;
|
|
27
27
|
}
|
|
28
28
|
function g(t) {
|
|
29
|
-
return
|
|
29
|
+
return b(t)?.aborted ?? !1;
|
|
30
30
|
}
|
|
31
31
|
function y(t) {
|
|
32
32
|
return t?.name === "AbortError";
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function C(t) {
|
|
35
35
|
return { ok: !0, value: t };
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function E(t) {
|
|
38
38
|
return { ok: !1, error: t };
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function k(t) {
|
|
41
41
|
return t?.ok ? t.value : null;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function T(t) {
|
|
44
44
|
return t != null && !t.ok ? t.error : null;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
const e =
|
|
46
|
+
function c(t, r) {
|
|
47
|
+
const e = b(t);
|
|
48
48
|
if (e == null)
|
|
49
49
|
return;
|
|
50
50
|
if (e.aborted) {
|
|
@@ -54,29 +54,29 @@ function I(t, r) {
|
|
|
54
54
|
const o = () => r();
|
|
55
55
|
return e.addEventListener("abort", o, { once: !0 }), { remove: () => e.removeEventListener("abort", o) };
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
return new
|
|
57
|
+
function H(t, r) {
|
|
58
|
+
return new s(t, r);
|
|
59
59
|
}
|
|
60
|
-
let
|
|
60
|
+
let s = class extends d {
|
|
61
61
|
constructor(t, r) {
|
|
62
62
|
super({}), this._abortHandle = null, this.abort = () => {
|
|
63
|
-
this._abortController =
|
|
63
|
+
this._abortController = h(this._abortController);
|
|
64
64
|
}, this.remove = this.abort, this._abortController = new AbortController();
|
|
65
65
|
const { signal: e } = this._abortController;
|
|
66
66
|
this.promise = t(e), this.promise.then(
|
|
67
67
|
(o) => {
|
|
68
|
-
this._result =
|
|
68
|
+
this._result = C(o), this._cleanup();
|
|
69
69
|
},
|
|
70
70
|
(o) => {
|
|
71
|
-
this._result =
|
|
71
|
+
this._result = E(o), this._cleanup();
|
|
72
72
|
}
|
|
73
|
-
), this._abortHandle =
|
|
73
|
+
), this._abortHandle = c(r, this.abort);
|
|
74
74
|
}
|
|
75
75
|
get value() {
|
|
76
|
-
return
|
|
76
|
+
return k(this._result);
|
|
77
77
|
}
|
|
78
78
|
get error() {
|
|
79
|
-
return
|
|
79
|
+
return T(this._result);
|
|
80
80
|
}
|
|
81
81
|
get finished() {
|
|
82
82
|
return this._result != null;
|
|
@@ -85,30 +85,30 @@ let i = class extends f {
|
|
|
85
85
|
this.abort();
|
|
86
86
|
}
|
|
87
87
|
_cleanup() {
|
|
88
|
-
this._abortHandle =
|
|
88
|
+
this._abortHandle = w(this._abortHandle), this._abortController = null;
|
|
89
89
|
}
|
|
90
90
|
[Symbol.dispose]() {
|
|
91
91
|
this._cleanup();
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
|
-
|
|
94
|
+
a([
|
|
95
95
|
l()
|
|
96
|
-
],
|
|
97
|
-
|
|
96
|
+
], s.prototype, "value", 1);
|
|
97
|
+
a([
|
|
98
98
|
l()
|
|
99
|
-
],
|
|
100
|
-
|
|
99
|
+
], s.prototype, "error", 1);
|
|
100
|
+
a([
|
|
101
101
|
l()
|
|
102
|
-
],
|
|
103
|
-
|
|
102
|
+
], s.prototype, "finished", 1);
|
|
103
|
+
a([
|
|
104
104
|
l()
|
|
105
|
-
],
|
|
106
|
-
|
|
105
|
+
], s.prototype, "promise", 2);
|
|
106
|
+
a([
|
|
107
107
|
l()
|
|
108
|
-
],
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
],
|
|
108
|
+
], s.prototype, "_result", 2);
|
|
109
|
+
s = a([
|
|
110
|
+
m("esri.components.asyncUtils.ReactiveTask")
|
|
111
|
+
], s);
|
|
112
112
|
function q(t) {
|
|
113
113
|
return t.catch((r) => {
|
|
114
114
|
if (!y(r))
|
|
@@ -131,13 +131,25 @@ function x(t, r = {}) {
|
|
|
131
131
|
function L(t) {
|
|
132
132
|
"cancelIdleCallback" in window && window.cancelIdleCallback(t), window.clearTimeout(t);
|
|
133
133
|
}
|
|
134
|
+
function M(t, r) {
|
|
135
|
+
const e = new AbortController();
|
|
136
|
+
return c(r, () => e.abort()), new Promise((o, n) => {
|
|
137
|
+
let i = setTimeout(() => {
|
|
138
|
+
i = void 0, o();
|
|
139
|
+
}, t);
|
|
140
|
+
c(e, () => {
|
|
141
|
+
i !== void 0 && (clearTimeout(i), i = void 0, n(f()));
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
}
|
|
134
145
|
export {
|
|
135
146
|
g as a,
|
|
136
147
|
q as b,
|
|
137
|
-
|
|
138
|
-
|
|
148
|
+
H as c,
|
|
149
|
+
M as d,
|
|
150
|
+
L as e,
|
|
139
151
|
y as i,
|
|
140
|
-
|
|
152
|
+
S as l,
|
|
141
153
|
x as r,
|
|
142
|
-
|
|
154
|
+
j as t
|
|
143
155
|
};
|
|
@@ -11,7 +11,7 @@ import { u as be } from "../../chunks/useT9n.js";
|
|
|
11
11
|
import { u as ve } from "../../chunks/useView.js";
|
|
12
12
|
import { m as J } from "../../chunks/handle.js";
|
|
13
13
|
import { o as $, i as p, b as A, d as k, g as we } from "../../chunks/time-utils.js";
|
|
14
|
-
import { r as ye, b as xe,
|
|
14
|
+
import { r as ye, b as xe, e as Se } from "../../chunks/async-utils.js";
|
|
15
15
|
import { createTrackingTarget as De, runTracked as W, signal as Te } from "@arcgis/core/applications/Components/reactiveUtils.js";
|
|
16
16
|
import { C as K } from "../../chunks/component-wrapper.js";
|
|
17
17
|
import { V as D } from "../../chunks/visible-element.js";
|
|
@@ -437,9 +437,8 @@ export abstract class ArcgisElevationProfile extends LitElement {
|
|
|
437
437
|
zoomOut?: string | undefined;
|
|
438
438
|
};
|
|
439
439
|
/**
|
|
440
|
-
* The collection of
|
|
441
|
-
*
|
|
442
|
-
* content), and includes settings for how the resulting line will appear in the component chart and in the view.
|
|
440
|
+
* The collection of profiles to compute and display. Top-level entries can be either individual profile lines or
|
|
441
|
+
* groups that organize multiple lines under a shared title in the legend.
|
|
443
442
|
*
|
|
444
443
|
* [Read more](https://developers.arcgis.com/javascript/latest/references/core/analysis/ElevationProfileAnalysis/#profiles)
|
|
445
444
|
*/
|
|
@@ -522,7 +522,7 @@ class J extends k {
|
|
|
522
522
|
return c`<calcite-action icon=trash @click=${this._onClearButtonClick} .text=${e} title=${e ?? u}></calcite-action>`;
|
|
523
523
|
}
|
|
524
524
|
_renderLegend() {
|
|
525
|
-
return c`<arcgis-elevation-profile-legend .effectiveDisplayUnits=${this.viewModel.effectiveDisplayUnits} .featureSelected=${this.viewModel.featureIsSelected} .messages=${this._messages} .results=${this.viewModel.results}></arcgis-elevation-profile-legend>`;
|
|
525
|
+
return c`<arcgis-elevation-profile-legend .effectiveDisplayUnits=${this.viewModel.effectiveDisplayUnits} .featureSelected=${this.viewModel.featureIsSelected} .messages=${this._messages} .profiles=${this.profiles} .results=${this.viewModel.results}></arcgis-elevation-profile-legend>`;
|
|
526
526
|
}
|
|
527
527
|
_renderSettingsButton() {
|
|
528
528
|
return c`<arcgis-elevation-profile-settings .viewModel=${this.viewModel} .hideUniformChartScalingToggle=${this.hideUniformChartScalingToggle} .hideDistanceDisplayUnitSelect=${this.hideDistanceDisplayUnitSelect} .hideElevationDisplayUnitSelect=${this.hideElevationDisplayUnitSelect} .messages=${this._messages} .uniformChartScaling=${this.viewModel.uniformChartScaling} .unitOptionsDistance=${this.viewModel.distanceUnitOptions} .unitOptionsElevation=${this.viewModel.elevationUnitOptions} @arcgisElevationProfileSettingsUniformChartScalingChange=${(e) => {
|
|
@@ -1,31 +1,37 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
const
|
|
6
|
-
class
|
|
2
|
+
import { c as a } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as n, html as s } from "lit";
|
|
4
|
+
import { LitElement as l } from "@arcgis/lumina";
|
|
5
|
+
const o = n`:host{--arcgis-internal-legend-gap: var(--calcite-spacing-xxs);--arcgis-internal-legend-group-gap: var(--calcite-spacing-md);display:flex;flex-direction:column;gap:var(--arcgis-internal-legend-gap)}.group{display:flex;flex-direction:column;gap:var(--arcgis-internal-legend-gap)}.group+.group,.group+arcgis-elevation-profile-legend-item,arcgis-elevation-profile-legend-item+.group{margin-block-start:calc(var(--arcgis-internal-legend-group-gap) - var(--arcgis-internal-legend-gap))}.group-title{color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-medium);text-align:start}`;
|
|
6
|
+
class g extends l {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(...arguments), this._expandedLine = void 0, this.featureSelected = !1;
|
|
9
9
|
}
|
|
10
10
|
static {
|
|
11
|
-
this.properties = { _expandedLine: 16, effectiveDisplayUnits: 0, featureSelected: 5, messages: 0, results: 0 };
|
|
11
|
+
this.properties = { _expandedLine: 16, effectiveDisplayUnits: 0, featureSelected: 5, messages: 0, profiles: 0, results: 0 };
|
|
12
12
|
}
|
|
13
13
|
static {
|
|
14
|
-
this.styles =
|
|
14
|
+
this.styles = o;
|
|
15
15
|
}
|
|
16
16
|
async destroy() {
|
|
17
17
|
await this.manager.destroy();
|
|
18
18
|
}
|
|
19
|
-
_onToggleExpand(
|
|
20
|
-
const
|
|
21
|
-
this._expandedLine =
|
|
19
|
+
_onToggleExpand(e) {
|
|
20
|
+
const t = e.detail;
|
|
21
|
+
this._expandedLine = t === this._expandedLine ? void 0 : t;
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
const
|
|
25
|
-
return s
|
|
24
|
+
const e = this.profiles?.toArray() ?? [], t = this.results ?? [], r = new Map(t.map((i) => [i.profile.id, i]));
|
|
25
|
+
return r.size === 0 ? s`<div></div>` : e?.map((i) => i.type === "group" ? this._renderGroup(i, r) : this._renderProfile(i, r));
|
|
26
|
+
}
|
|
27
|
+
_renderGroup(e, t) {
|
|
28
|
+
return s`<div class="group">${e.title ? s`<div class="group-title">${e.title}</div>` : void 0}${e.profiles.toArray().map((r) => this._renderProfile(r, t))}</div>`;
|
|
29
|
+
}
|
|
30
|
+
_renderProfile(e, t) {
|
|
31
|
+
return s`<arcgis-elevation-profile-legend-item .effectiveDisplayUnits=${this.effectiveDisplayUnits} .expanded=${e === this._expandedLine} .featureSelected=${this.featureSelected} .hideCheckbox=${(this.results?.length ?? 0) <= 1} .messages=${this.messages} @arcgisExpandedToggle=${this._onToggleExpand} .result=${t.get(e.id)}></arcgis-elevation-profile-legend-item>`;
|
|
26
32
|
}
|
|
27
33
|
}
|
|
28
|
-
|
|
34
|
+
a("arcgis-elevation-profile-legend", g);
|
|
29
35
|
export {
|
|
30
|
-
|
|
36
|
+
g as ArcgisElevationProfileLegend
|
|
31
37
|
};
|