@arcgis/map-components 5.1.0-next.83 → 5.1.0-next.85

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.
Files changed (181) hide show
  1. package/dist/cdn/66YJK5TN.js +2 -0
  2. package/dist/cdn/{HBEEL7IW.js → 6VJBGE5W.js} +1 -1
  3. package/dist/cdn/AFAQWPXY.js +2 -0
  4. package/dist/cdn/AU2CHOT7.js +2 -0
  5. package/dist/cdn/{GPU57C3Y.js → CLGZBSF4.js} +1 -1
  6. package/dist/cdn/EIVHDZFM.js +2 -0
  7. package/dist/cdn/{7TRV2EOI.js → ELGQ2B5Q.js} +1 -1
  8. package/dist/cdn/{JT5PIQU5.js → FPT2UAZM.js} +1 -1
  9. package/dist/cdn/{MVULTZL6.js → FQY55PPT.js} +1 -1
  10. package/dist/cdn/GUYOWFTW.js +2 -0
  11. package/dist/cdn/HN5OI754.js +2 -0
  12. package/dist/cdn/{K2RCQ3S4.js → HTNECFCQ.js} +1 -1
  13. package/dist/cdn/{GDHU6FB7.js → HU4V2LGL.js} +1 -1
  14. package/dist/cdn/{5SWQQWAZ.js → IMENOON5.js} +1 -1
  15. package/dist/cdn/IYYLPWB4.js +2 -0
  16. package/dist/cdn/{6ECAKVHP.js → KKQWYK3S.js} +1 -1
  17. package/dist/cdn/{L3OVLVI3.js → LLRYOV3A.js} +1 -1
  18. package/dist/cdn/{DTRSQHPV.js → MV6B2G3T.js} +1 -1
  19. package/dist/cdn/{VQ7UIUFE.js → NOIIORU5.js} +1 -1
  20. package/dist/cdn/{CVNE57KC.js → NUXHWUHW.js} +1 -1
  21. package/dist/cdn/O5ZWXMTJ.js +2 -0
  22. package/dist/cdn/{WKA6U2M7.js → OYSW2K2B.js} +1 -1
  23. package/dist/cdn/{NVRFQSZB.js → ST5DXIZ6.js} +1 -1
  24. package/dist/cdn/{F7UR4A5G.js → U5G4PHA4.js} +1 -1
  25. package/dist/cdn/{6BESCJK6.js → XQ5BV7DL.js} +1 -1
  26. package/dist/cdn/{NGAZTR7Y.js → XWYXHSGO.js} +1 -1
  27. package/dist/cdn/{CQ7BRDZC.js → YACNPFYK.js} +1 -1
  28. package/dist/cdn/{G4QTXMBQ.js → ZO7ZJ52E.js} +1 -1
  29. package/dist/cdn/{7NFLP5PG.js → ZPSJEBD6.js} +1 -1
  30. package/dist/cdn/assets/features/t9n/messages.ar.json +1 -1
  31. package/dist/cdn/assets/features/t9n/messages.bg.json +1 -1
  32. package/dist/cdn/assets/features/t9n/messages.bs.json +1 -1
  33. package/dist/cdn/assets/features/t9n/messages.ca.json +1 -1
  34. package/dist/cdn/assets/features/t9n/messages.cs.json +1 -1
  35. package/dist/cdn/assets/features/t9n/messages.da.json +1 -1
  36. package/dist/cdn/assets/features/t9n/messages.de.json +1 -1
  37. package/dist/cdn/assets/features/t9n/messages.el.json +1 -1
  38. package/dist/cdn/assets/features/t9n/messages.es.json +1 -1
  39. package/dist/cdn/assets/features/t9n/messages.et.json +1 -1
  40. package/dist/cdn/assets/features/t9n/messages.fi.json +1 -1
  41. package/dist/cdn/assets/features/t9n/messages.fr.json +1 -1
  42. package/dist/cdn/assets/features/t9n/messages.he.json +1 -1
  43. package/dist/cdn/assets/features/t9n/messages.hr.json +1 -1
  44. package/dist/cdn/assets/features/t9n/messages.hu.json +1 -1
  45. package/dist/cdn/assets/features/t9n/messages.id.json +1 -1
  46. package/dist/cdn/assets/features/t9n/messages.it.json +1 -1
  47. package/dist/cdn/assets/features/t9n/messages.ja.json +1 -1
  48. package/dist/cdn/assets/features/t9n/messages.ko.json +1 -1
  49. package/dist/cdn/assets/features/t9n/messages.lt.json +1 -1
  50. package/dist/cdn/assets/features/t9n/messages.lv.json +1 -1
  51. package/dist/cdn/assets/features/t9n/messages.nl.json +1 -1
  52. package/dist/cdn/assets/features/t9n/messages.no.json +1 -1
  53. package/dist/cdn/assets/features/t9n/messages.pl.json +1 -1
  54. package/dist/cdn/assets/features/t9n/messages.pt-BR.json +1 -1
  55. package/dist/cdn/assets/features/t9n/messages.pt-PT.json +1 -1
  56. package/dist/cdn/assets/features/t9n/messages.ro.json +1 -1
  57. package/dist/cdn/assets/features/t9n/messages.ru.json +1 -1
  58. package/dist/cdn/assets/features/t9n/messages.sk.json +1 -1
  59. package/dist/cdn/assets/features/t9n/messages.sl.json +1 -1
  60. package/dist/cdn/assets/features/t9n/messages.sr.json +1 -1
  61. package/dist/cdn/assets/features/t9n/messages.sv.json +1 -1
  62. package/dist/cdn/assets/features/t9n/messages.th.json +1 -1
  63. package/dist/cdn/assets/features/t9n/messages.tr.json +1 -1
  64. package/dist/cdn/assets/features/t9n/messages.uk.json +1 -1
  65. package/dist/cdn/assets/features/t9n/messages.vi.json +1 -1
  66. package/dist/cdn/assets/features/t9n/messages.zh-CN.json +1 -1
  67. package/dist/cdn/assets/features/t9n/messages.zh-HK.json +1 -1
  68. package/dist/cdn/assets/features/t9n/messages.zh-TW.json +1 -1
  69. package/dist/cdn/assets/time-slider/t9n/messages.ar.json +1 -0
  70. package/dist/cdn/assets/time-slider/t9n/messages.bg.json +1 -0
  71. package/dist/cdn/assets/time-slider/t9n/messages.bs.json +1 -0
  72. package/dist/cdn/assets/time-slider/t9n/messages.ca.json +1 -0
  73. package/dist/cdn/assets/time-slider/t9n/messages.cs.json +1 -0
  74. package/dist/cdn/assets/time-slider/t9n/messages.da.json +1 -0
  75. package/dist/cdn/assets/time-slider/t9n/messages.de.json +1 -0
  76. package/dist/cdn/assets/time-slider/t9n/messages.el.json +1 -0
  77. package/dist/cdn/assets/time-slider/t9n/messages.en.json +1 -0
  78. package/dist/cdn/assets/time-slider/t9n/messages.es.json +1 -0
  79. package/dist/cdn/assets/time-slider/t9n/messages.et.json +1 -0
  80. package/dist/cdn/assets/time-slider/t9n/messages.fi.json +1 -0
  81. package/dist/cdn/assets/time-slider/t9n/messages.fr.json +1 -0
  82. package/dist/cdn/assets/time-slider/t9n/messages.he.json +1 -0
  83. package/dist/cdn/assets/time-slider/t9n/messages.hr.json +1 -0
  84. package/dist/cdn/assets/time-slider/t9n/messages.hu.json +1 -0
  85. package/dist/cdn/assets/time-slider/t9n/messages.id.json +1 -0
  86. package/dist/cdn/assets/time-slider/t9n/messages.it.json +1 -0
  87. package/dist/cdn/assets/time-slider/t9n/messages.ja.json +1 -0
  88. package/dist/cdn/assets/time-slider/t9n/messages.ko.json +1 -0
  89. package/dist/cdn/assets/time-slider/t9n/messages.lt.json +1 -0
  90. package/dist/cdn/assets/time-slider/t9n/messages.lv.json +1 -0
  91. package/dist/cdn/assets/time-slider/t9n/messages.nl.json +1 -0
  92. package/dist/cdn/assets/time-slider/t9n/messages.no.json +1 -0
  93. package/dist/cdn/assets/time-slider/t9n/messages.pl.json +1 -0
  94. package/dist/cdn/assets/time-slider/t9n/messages.pt-BR.json +1 -0
  95. package/dist/cdn/assets/time-slider/t9n/messages.pt-PT.json +1 -0
  96. package/dist/cdn/assets/time-slider/t9n/messages.ro.json +1 -0
  97. package/dist/cdn/assets/time-slider/t9n/messages.ru.json +1 -0
  98. package/dist/cdn/assets/time-slider/t9n/messages.sk.json +1 -0
  99. package/dist/cdn/assets/time-slider/t9n/messages.sl.json +1 -0
  100. package/dist/cdn/assets/time-slider/t9n/messages.sr.json +1 -0
  101. package/dist/cdn/assets/time-slider/t9n/messages.sv.json +1 -0
  102. package/dist/cdn/assets/time-slider/t9n/messages.th.json +1 -0
  103. package/dist/cdn/assets/time-slider/t9n/messages.tr.json +1 -0
  104. package/dist/cdn/assets/time-slider/t9n/messages.uk.json +1 -0
  105. package/dist/cdn/assets/time-slider/t9n/messages.vi.json +1 -0
  106. package/dist/cdn/assets/time-slider/t9n/messages.zh-CN.json +1 -0
  107. package/dist/cdn/assets/time-slider/t9n/messages.zh-HK.json +1 -0
  108. package/dist/cdn/assets/time-slider/t9n/messages.zh-TW.json +1 -0
  109. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.ar.json +1 -0
  110. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.bg.json +1 -0
  111. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.bs.json +1 -0
  112. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.ca.json +1 -0
  113. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.cs.json +1 -0
  114. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.da.json +1 -0
  115. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.de.json +1 -0
  116. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.el.json +1 -0
  117. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.es.json +1 -0
  118. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.et.json +1 -0
  119. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.fi.json +1 -0
  120. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.fr.json +1 -0
  121. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.he.json +1 -0
  122. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.hr.json +1 -0
  123. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.hu.json +1 -0
  124. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.id.json +1 -0
  125. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.it.json +1 -0
  126. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.ja.json +1 -0
  127. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.ko.json +1 -0
  128. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.lt.json +1 -0
  129. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.lv.json +1 -0
  130. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.nl.json +1 -0
  131. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.no.json +1 -0
  132. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.pl.json +1 -0
  133. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.pt-BR.json +1 -0
  134. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.pt-PT.json +1 -0
  135. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.ro.json +1 -0
  136. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.ru.json +1 -0
  137. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.sk.json +1 -0
  138. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.sl.json +1 -0
  139. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.sr.json +1 -0
  140. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.sv.json +1 -0
  141. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.th.json +1 -0
  142. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.tr.json +1 -0
  143. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.uk.json +1 -0
  144. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.vi.json +1 -0
  145. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.zh-CN.json +1 -0
  146. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.zh-HK.json +1 -0
  147. package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.zh-TW.json +1 -0
  148. package/dist/cdn/index.js +1 -1
  149. package/dist/chunks/async-utils.js +63 -51
  150. package/dist/components/arcgis-aggregated-features/customElement.js +27 -23
  151. package/dist/components/arcgis-daylight/customElement.js +1 -1
  152. package/dist/components/arcgis-elevation-profile/customElement.d.ts +2 -3
  153. package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
  154. package/dist/components/arcgis-elevation-profile-legend/customElement.js +20 -14
  155. package/dist/components/arcgis-features/customElement.js +99 -84
  156. package/dist/components/arcgis-time-of-day-slider/customElement.js +74 -46
  157. package/dist/components/arcgis-time-slider/customElement.d.ts +687 -352
  158. package/dist/components/arcgis-time-slider/customElement.js +678 -26
  159. package/dist/components/arcgis-time-slider/index.js +7 -0
  160. package/dist/components/arcgis-time-slider/types.d.ts +147 -0
  161. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +24 -24
  162. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +1 -1
  163. package/dist/components/arcgis-zoom/customElement.js +27 -33
  164. package/dist/docs/api.json +1 -1
  165. package/dist/docs/docs.json +1 -1
  166. package/dist/docs/vscode.html-custom-data.json +1 -1
  167. package/dist/docs/web-types.json +1 -1
  168. package/dist/loader.js +2 -2
  169. package/dist/types/lumina.d.ts +1 -2
  170. package/dist/types/preact.d.ts +1 -2
  171. package/dist/types/react.d.ts +1 -2
  172. package/dist/types/stencil.d.ts +1 -2
  173. package/package.json +4 -4
  174. package/dist/cdn/5UBX7NJZ.js +0 -2
  175. package/dist/cdn/7752ICPP.js +0 -2
  176. package/dist/cdn/K6DM6L64.js +0 -2
  177. package/dist/cdn/OZZ7CYLP.js +0 -2
  178. package/dist/cdn/PQSRQNWY.js +0 -2
  179. package/dist/cdn/V4RMKJUW.js +0 -2
  180. package/dist/cdn/VWL5JQZ4.js +0 -2
  181. 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 f from "@arcgis/core/core/Accessor.js";
3
- import { property as l, subclass as b } from "@arcgis/core/core/accessorSupport/decorators.js";
4
- import d from "@arcgis/core/core/Error.js";
5
- import { a as p, r as h } from "./maybe.js";
6
- import { log as m } from "@arcgis/toolkit/log";
7
- var w = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, s = (t, r, e, o) => {
8
- for (var n = o > 1 ? void 0 : o ? _(r, e) : r, a = t.length - 1, u; a >= 0; a--)
9
- (u = t[a]) && (n = (o ? u(r, e, n) : u(n)) || n);
10
- return o && n && w(r, e, n), 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 j(t, r, e) {
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, a = e ? `${e} - ${String(t)}` : String(t);
15
- m("error", r, a, n);
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 v(t = "Aborted") {
19
- return new d("AbortError", t);
18
+ function f(t = "Aborted") {
19
+ return new p("AbortError", t);
20
20
  }
21
- function H(t, r = "Aborted") {
21
+ function j(t, r = "Aborted") {
22
22
  if (g(t))
23
- throw v(r);
23
+ throw f(r);
24
24
  }
25
- function c(t) {
25
+ function b(t) {
26
26
  return t instanceof AbortSignal ? t : t?.signal ?? void 0;
27
27
  }
28
28
  function g(t) {
29
- return c(t)?.aborted ?? !1;
29
+ return b(t)?.aborted ?? !1;
30
30
  }
31
31
  function y(t) {
32
32
  return t?.name === "AbortError";
33
33
  }
34
- function A(t) {
34
+ function C(t) {
35
35
  return { ok: !0, value: t };
36
36
  }
37
- function C(t) {
37
+ function E(t) {
38
38
  return { ok: !1, error: t };
39
39
  }
40
- function E(t) {
40
+ function k(t) {
41
41
  return t?.ok ? t.value : null;
42
42
  }
43
- function k(t) {
43
+ function T(t) {
44
44
  return t != null && !t.ok ? t.error : null;
45
45
  }
46
- function I(t, r) {
47
- const e = c(t);
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 P(t, r) {
58
- return new i(t, r);
57
+ function H(t, r) {
58
+ return new s(t, r);
59
59
  }
60
- let i = class extends f {
60
+ let s = class extends d {
61
61
  constructor(t, r) {
62
62
  super({}), this._abortHandle = null, this.abort = () => {
63
- this._abortController = p(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 = A(o), this._cleanup();
68
+ this._result = C(o), this._cleanup();
69
69
  },
70
70
  (o) => {
71
- this._result = C(o), this._cleanup();
71
+ this._result = E(o), this._cleanup();
72
72
  }
73
- ), this._abortHandle = I(r, this.abort);
73
+ ), this._abortHandle = c(r, this.abort);
74
74
  }
75
75
  get value() {
76
- return E(this._result);
76
+ return k(this._result);
77
77
  }
78
78
  get error() {
79
- return k(this._result);
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 = h(this._abortHandle), this._abortController = null;
88
+ this._abortHandle = w(this._abortHandle), this._abortController = null;
89
89
  }
90
90
  [Symbol.dispose]() {
91
91
  this._cleanup();
92
92
  }
93
93
  };
94
- s([
94
+ a([
95
95
  l()
96
- ], i.prototype, "value", 1);
97
- s([
96
+ ], s.prototype, "value", 1);
97
+ a([
98
98
  l()
99
- ], i.prototype, "error", 1);
100
- s([
99
+ ], s.prototype, "error", 1);
100
+ a([
101
101
  l()
102
- ], i.prototype, "finished", 1);
103
- s([
102
+ ], s.prototype, "finished", 1);
103
+ a([
104
104
  l()
105
- ], i.prototype, "promise", 2);
106
- s([
105
+ ], s.prototype, "promise", 2);
106
+ a([
107
107
  l()
108
- ], i.prototype, "_result", 2);
109
- i = s([
110
- b("esri.components.asyncUtils.ReactiveTask")
111
- ], i);
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
- P as c,
138
- L as d,
148
+ H as c,
149
+ M as d,
150
+ L as e,
139
151
  y as i,
140
- j as l,
152
+ S as l,
141
153
  x as r,
142
- H as t
154
+ j as t
143
155
  };
@@ -1,33 +1,37 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  import { c as d } from "../../chunks/runtime.js";
3
- import { html as g } from "lit";
4
- import { keyed as c } from "lit/directives/keyed.js";
3
+ import { css as c, html as g } from "lit";
4
+ import { keyed as h } from "lit/directives/keyed.js";
5
5
  import "@arcgis/core/core/Collection.js";
6
- import h from "@arcgis/core/popup/Feature.js";
7
- import m from "@arcgis/core/Graphic.js";
8
- import y from "@arcgis/core/symbols/SimpleFillSymbol.js";
9
- import { LitElement as F, renderElement as _ } from "@arcgis/lumina";
10
- import { a as p } from "../../chunks/maybe.js";
11
- import { usePropertyChange as f, bypassReadOnly as n } from "@arcgis/lumina/controllers";
12
- import { g as A } from "../../chunks/feature-utils.js";
13
- import { i as w } from "../../chunks/async-utils.js";
14
- import { stripHTML as b } from "@arcgis/core/applications/Components/stringUtils.js";
6
+ import m from "@arcgis/core/popup/Feature.js";
7
+ import y from "@arcgis/core/Graphic.js";
8
+ import F from "@arcgis/core/symbols/SimpleFillSymbol.js";
9
+ import { LitElement as _, renderElement as p } from "@arcgis/lumina";
10
+ import { a as f } from "../../chunks/maybe.js";
11
+ import { usePropertyChange as A, bypassReadOnly as n } from "@arcgis/lumina/controllers";
12
+ import { g as w } from "../../chunks/feature-utils.js";
13
+ import { i as b } from "../../chunks/async-utils.js";
14
+ import { stripHTML as v } from "@arcgis/core/applications/Components/stringUtils.js";
15
15
  import { watch as l } from "@arcgis/core/core/reactiveUtils.js";
16
- class v extends F {
16
+ const I = c`calcite-notice{padding:var(--calcite-space-lg)}`;
17
+ class C extends _ {
17
18
  constructor() {
18
- super(...arguments), this.aggregatedFeatureCount = 0, this.aggregatedFeatureItems = [], this.aggregatedFeatures = [], this.autoDestroyDisabled = !1, this.loading = !1, this.selectedAggregateBoundaryFeature = new m({
19
- symbol: new y({
19
+ super(...arguments), this.aggregatedFeatureCount = 0, this.aggregatedFeatureItems = [], this.aggregatedFeatures = [], this.autoDestroyDisabled = !1, this.loading = !1, this.selectedAggregateBoundaryFeature = new y({
20
+ symbol: new F({
20
21
  outline: {
21
22
  width: 1.5,
22
23
  color: "cyan"
23
24
  },
24
25
  style: "none"
25
26
  })
26
- }), this.arcgisPropertyChange = f()("aggregatedFeatureCount", "aggregatedFeatureItems", "aggregatedFeatures", "loading");
27
+ }), this.arcgisPropertyChange = A()("aggregatedFeatureCount", "aggregatedFeatureItems", "aggregatedFeatures", "loading");
27
28
  }
28
29
  static {
29
30
  this.properties = { _abortController: 16, aggregatedFeatureCount: 32, aggregatedFeatureItems: 32, aggregatedFeatures: 32, autoDestroyDisabled: 5, feature: 0, flowItems: 0, loading: 32, map: 0, messages: 0, selectedAggregateBoundaryFeature: 32, spatialReference: 0, timeZone: 1, view: 0 };
30
31
  }
32
+ static {
33
+ this.styles = I;
34
+ }
31
35
  async destroy() {
32
36
  await this.manager.destroy(), this._cancelQuery(), this._clearAggregatedFeatureItems(), this._removeAggregateBoundaryFeature();
33
37
  }
@@ -55,7 +59,7 @@ class v extends F {
55
59
  n(() => this.loading = e);
56
60
  }
57
61
  _cancelQuery() {
58
- this._abortController = p(this._abortController), this._setLoading(!1);
62
+ this._abortController = f(this._abortController), this._setLoading(!1);
59
63
  }
60
64
  _removeBoundaryGraphicFromView(e) {
61
65
  e?.graphics.remove(this.selectedAggregateBoundaryFeature);
@@ -67,7 +71,7 @@ class v extends F {
67
71
  this._setAggregatedFeatures([]), this._clearAggregatedFeatureItems(), this._setAggregatedFeatureCount(0), this._removeAggregateBoundaryFeature();
68
72
  }
69
73
  _setAggregatedFeatureItems(e) {
70
- this._setAggregatedFeatureItemsReadOnly(e.map((t) => new h({ graphic: t })));
74
+ this._setAggregatedFeatureItemsReadOnly(e.map((t) => new m({ graphic: t })));
71
75
  }
72
76
  _setAggregatedFeaturesState(e) {
73
77
  this._setAggregatedFeatures(e), this._setAggregatedFeatureItems(e), this._setAggregatedFeatureCount(e.length);
@@ -84,7 +88,7 @@ class v extends F {
84
88
  a !== t && this._removeBoundaryGraphicFromView(a), this.selectedAggregateBoundaryFeature.geometry = e, this._boundaryGraphicView = t, t.graphics.includes(this.selectedAggregateBoundaryFeature) || t.graphics.add(this.selectedAggregateBoundaryFeature);
85
89
  }
86
90
  async _getLayerViewAndQuery(e) {
87
- const { view: t } = this, a = A(e);
91
+ const { view: t } = this, a = w(e);
88
92
  if (!t || !a)
89
93
  return null;
90
94
  const r = await t.whenLayerView(a);
@@ -118,7 +122,7 @@ class v extends F {
118
122
  const u = s.features ?? [];
119
123
  this._setAggregatedFeaturesState(u), i.extent ? this._updateAggregateBoundaryFeature(i.extent) : this._removeAggregateBoundaryFeature();
120
124
  } catch (s) {
121
- if (this._abortController !== r || (this._abortController = null, this._setLoading(!1), w(s)))
125
+ if (this._abortController !== r || (this._abortController = null, this._setLoading(!1), b(s)))
122
126
  return;
123
127
  this._resetAggregatedFeaturesState();
124
128
  }
@@ -128,17 +132,17 @@ class v extends F {
128
132
  }
129
133
  _selectFeature(e) {
130
134
  const { flowItems: t, view: a } = this;
131
- t && this._addFlowItem(_(c(e, g`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .graphic=${e.graphic} .map=${this.map} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${a ?? void 0}></arcgis-feature>`)));
135
+ t && this._addFlowItem(p(h(e, g`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .graphic=${e.graphic} .map=${this.map} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${a ?? void 0}></arcgis-feature>`)));
132
136
  }
133
137
  _renderChevronIconNode() {
134
138
  return g`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`;
135
139
  }
136
140
  render() {
137
141
  const { aggregatedFeatureItems: e } = this, { loading: t } = this, a = e.filter((r) => r.graphic);
138
- return t || a.length > 0 ? g`<calcite-list .loading=${t} display-mode=flat .filterEnabled=${a.length > 10} .filterPlaceholder=${this.messages?.aggregatedFeaturesPlaceholder ?? ""} .label=${this.messages?.aggregatedFeatures ?? ""} selection-mode=none>${a.map((r) => g`<calcite-list-item .label=${b(r.heading) ?? ""} @calciteListItemSelect=${() => this._selectFeature(r)}>${this._renderChevronIconNode()}</calcite-list-item>`)}</calcite-list>` : g`<calcite-notice icon=information kind=brand open scale=s width=full><div slot=message>${this.messages?.noAggregatedFeatures}</div></calcite-notice>`;
142
+ return t || a.length > 0 ? g`<calcite-list .loading=${t} display-mode=flat .filterEnabled=${a.length > 10} .filterPlaceholder=${this.messages?.aggregatedFeaturesPlaceholder ?? ""} .label=${this.messages?.aggregatedFeatures ?? ""} selection-mode=none>${a.map((r) => g`<calcite-list-item .label=${v(r.heading) ?? ""} @calciteListItemSelect=${() => this._selectFeature(r)}>${this._renderChevronIconNode()}</calcite-list-item>`)}</calcite-list>` : g`<calcite-notice icon=information kind=brand open scale=s width=full><div slot=message>${this.messages?.noAggregatedFeatures}</div></calcite-notice>`;
139
143
  }
140
144
  }
141
- d("arcgis-aggregated-features", v);
145
+ d("arcgis-aggregated-features", C);
142
146
  export {
143
- v as ArcgisAggregatedFeatures
147
+ C as ArcgisAggregatedFeatures
144
148
  };
@@ -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, d as Se } from "../../chunks/async-utils.js";
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 profile lines to compute and display. Each profile line defines a different source for sampling
441
- * elevation along the input geometry (such as ground, input geometry itself, custom elevation sources, or scene
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 l } from "../../chunks/runtime.js";
3
- import { css as o, html as r } from "lit";
4
- import { LitElement as d } from "@arcgis/lumina";
5
- const c = o`:host{display:flex;flex-direction:column;gap:var(--calcite-spacing-xxs)}`;
6
- class p extends d {
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 = c;
14
+ this.styles = o;
15
15
  }
16
16
  async destroy() {
17
17
  await this.manager.destroy();
18
18
  }
19
- _onToggleExpand(t) {
20
- const e = t.detail;
21
- this._expandedLine = e === this._expandedLine ? void 0 : e;
19
+ _onToggleExpand(e) {
20
+ const t = e.detail;
21
+ this._expandedLine = t === this._expandedLine ? void 0 : t;
22
22
  }
23
23
  render() {
24
- const { messages: t, effectiveDisplayUnits: e, _expandedLine: n } = this, s = this.results ?? [], a = s.length <= 1;
25
- return s.map((i) => r`<arcgis-elevation-profile-legend-item .effectiveDisplayUnits=${e} .expanded=${i.profile === n} .featureSelected=${this.featureSelected} .hideCheckbox=${a} .messages=${t} @arcgisExpandedToggle=${this._onToggleExpand} .result=${i}></arcgis-elevation-profile-legend-item>`);
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
- l("arcgis-elevation-profile-legend", p);
34
+ a("arcgis-elevation-profile-legend", g);
29
35
  export {
30
- p as ArcgisElevationProfileLegend
36
+ g as ArcgisElevationProfileLegend
31
37
  };