@arcgis/map-components 5.2.0-next.167 → 5.2.0-next.169

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 (112) hide show
  1. package/dist/cdn/263OOI6Z.js +2 -0
  2. package/dist/cdn/{OP3MZHXU.js → 3YACO47M.js} +1 -1
  3. package/dist/cdn/42V6ISWG.js +2 -0
  4. package/dist/cdn/5VOAPFZ5.js +2 -0
  5. package/dist/cdn/6S5TVS52.js +2 -0
  6. package/dist/cdn/6ZMVEWJQ.js +2 -0
  7. package/dist/cdn/{OQPX2UPC.js → AFY6JQ77.js} +1 -1
  8. package/dist/cdn/{VHM26W3Y.js → AW5FFER6.js} +1 -1
  9. package/dist/cdn/{OEL57WQN.js → CGKFSTIT.js} +1 -1
  10. package/dist/cdn/GBTMUEG6.js +2 -0
  11. package/dist/cdn/K3SCI35Q.js +2 -0
  12. package/dist/cdn/{NY6QZ4MA.js → ODY56P7R.js} +1 -1
  13. package/dist/cdn/OIKOOFSR.js +2 -0
  14. package/dist/cdn/OOCIGOT6.js +2 -0
  15. package/dist/cdn/PJ2XGEYO.js +2 -0
  16. package/dist/cdn/{MZ47CPKO.js → RDBCKSUZ.js} +1 -1
  17. package/dist/cdn/{7XO4NAD5.js → WC5ZQ5SQ.js} +1 -1
  18. package/dist/cdn/index.js +1 -1
  19. package/dist/chunks/screenLocation.js +10 -10
  20. package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +2 -1
  21. package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +7 -7
  22. package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +4 -4
  23. package/dist/components/arcgis-bookmarks/customElement.d.ts +1 -0
  24. package/dist/components/arcgis-bookmarks/types.d.ts +2 -2
  25. package/dist/components/arcgis-building-explorer/customElement.d.ts +5 -5
  26. package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +4 -4
  27. package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +2 -2
  28. package/dist/components/arcgis-daylight/customElement.d.ts +4 -4
  29. package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +4 -4
  30. package/dist/components/arcgis-directional-pad/customElement.js +53 -58
  31. package/dist/components/arcgis-directions/customElement.d.ts +4 -4
  32. package/dist/components/arcgis-editor/customElement.d.ts +19 -2
  33. package/dist/components/arcgis-expand/customElement.d.ts +2 -1
  34. package/dist/components/arcgis-feature-form/customElement.d.ts +7 -7
  35. package/dist/components/arcgis-feature-table/customElement.d.ts +25 -25
  36. package/dist/components/arcgis-features/customElement.d.ts +5 -5
  37. package/dist/components/arcgis-features-next/customElement.d.ts +4 -4
  38. package/dist/components/arcgis-features-next/customElement.js +27 -26
  39. package/dist/components/arcgis-grid-controls/customElement.d.ts +1 -1
  40. package/dist/components/arcgis-layer-list/customElement.d.ts +2 -2
  41. package/dist/components/arcgis-layer-list-next/customElement.d.ts +6 -6
  42. package/dist/components/arcgis-legend/customElement.d.ts +1 -1
  43. package/dist/components/arcgis-line-of-sight/customElement.d.ts +2 -2
  44. package/dist/components/arcgis-link-chart/customElement.d.ts +6 -6
  45. package/dist/components/arcgis-map/customElement.d.ts +13 -17
  46. package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +0 -1
  47. package/dist/components/arcgis-oriented-imagery-viewer-non-panoramic-viewer/customElement.js +6 -5
  48. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.js +19 -18
  49. package/dist/components/arcgis-popup/customElement.d.ts +8 -7
  50. package/dist/components/arcgis-presentation/customElement.d.ts +5 -5
  51. package/dist/components/arcgis-presentation/customElement.js +74 -75
  52. package/dist/components/arcgis-presentation-captions/customElement.js +1 -1
  53. package/dist/components/arcgis-print/customElement.d.ts +1 -1
  54. package/dist/components/arcgis-scale-range-slider/customElement.d.ts +4 -4
  55. package/dist/components/arcgis-scene/customElement.d.ts +34 -13
  56. package/dist/components/arcgis-search/customElement.d.ts +4 -4
  57. package/dist/components/arcgis-selection-list/customElement.d.ts +2 -2
  58. package/dist/components/arcgis-selection-toolbar/customElement.d.ts +6 -6
  59. package/dist/components/arcgis-sketch/SketchComponentViewModel.d.ts +1 -1
  60. package/dist/components/arcgis-sketch/customElement.d.ts +20 -2
  61. package/dist/components/arcgis-sketch/customElement.js +18 -11
  62. package/dist/components/arcgis-slice/customElement.d.ts +2 -2
  63. package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.d.ts +4 -3
  64. package/dist/components/arcgis-slider-classed-color-legacy/customElement.d.ts +2 -2
  65. package/dist/components/arcgis-slider-classed-size-legacy/customElement.d.ts +3 -3
  66. package/dist/components/arcgis-slider-color-legacy/customElement.d.ts +3 -3
  67. package/dist/components/arcgis-slider-color-size-legacy/customElement.d.ts +5 -4
  68. package/dist/components/arcgis-slider-heatmap-legacy/customElement.d.ts +2 -2
  69. package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +2 -2
  70. package/dist/components/arcgis-slider-scale-range/customElement.d.ts +4 -4
  71. package/dist/components/arcgis-slider-size-legacy/customElement.d.ts +3 -3
  72. package/dist/components/arcgis-table-list-next/customElement.js +5 -5
  73. package/dist/components/arcgis-time-bar-slider/customElement.d.ts +11 -14
  74. package/dist/components/arcgis-time-slider/customElement.d.ts +6 -5
  75. package/dist/components/arcgis-track/customElement.d.ts +4 -4
  76. package/dist/components/arcgis-utility-network-associations/customElement.d.ts +1 -1
  77. package/dist/components/arcgis-utility-network-picker/customElement.d.ts +170 -6
  78. package/dist/components/arcgis-utility-network-picker/customElement.js +1 -1
  79. package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.d.ts +5 -4
  80. package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.js +19 -15
  81. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +1 -7
  82. package/dist/components/arcgis-utility-network-trace-analysis/types.d.ts +272 -9
  83. package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.d.ts +1 -1
  84. package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.js +25 -33
  85. package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.d.ts +5 -4
  86. package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.js +50 -46
  87. package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.d.ts +1 -1
  88. package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.js +9 -8
  89. package/dist/components/arcgis-utility-network-trace-locations/customElement.d.ts +1 -1
  90. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +2 -4
  91. package/dist/components/arcgis-utility-network-trace-results/customElement.js +12 -12
  92. package/dist/components/arcgis-utility-network-trace-results-pane/customElement.d.ts +0 -2
  93. package/dist/components/arcgis-value-picker-legacy/customElement.d.ts +14 -16
  94. package/dist/components/arcgis-video/customElement.d.ts +1 -1
  95. package/dist/components/arcgis-volume-measurement/customElement.d.ts +2 -2
  96. package/dist/components/arcgis-weather/customElement.d.ts +1 -1
  97. package/dist/components/slider-legacy/types.d.ts +2 -3
  98. package/dist/docs/api.json +1 -1
  99. package/dist/docs/docs.json +1 -1
  100. package/dist/docs/vscode.html-custom-data.json +1 -1
  101. package/dist/docs/web-types.json +1 -1
  102. package/package.json +6 -6
  103. package/dist/cdn/2IAD3DI5.js +0 -2
  104. package/dist/cdn/67UW6MJM.js +0 -2
  105. package/dist/cdn/73NABILZ.js +0 -2
  106. package/dist/cdn/BJ55UYFS.js +0 -2
  107. package/dist/cdn/BPTZ6LBO.js +0 -2
  108. package/dist/cdn/C6T7AQOJ.js +0 -2
  109. package/dist/cdn/CL5JQN4B.js +0 -2
  110. package/dist/cdn/F3JX74XA.js +0 -2
  111. package/dist/cdn/FGQJD346.js +0 -2
  112. package/dist/cdn/OBFJ4JUW.js +0 -2
@@ -1,9 +1,9 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as b } from "../../chunks/runtime.js";
2
+ import { c as F } from "../../chunks/runtime.js";
3
3
  import { ref as E } from "lit/directives/ref.js";
4
4
  import { getOrCreateMapValue as v } from "@arcgis/core/applications/Components/featureUtils.js";
5
5
  import { LitElement as L, createEvent as y } from "@arcgis/lumina";
6
- import { usePropertyChange as C, bypassReadOnly as o } from "@arcgis/lumina/controllers";
6
+ import { usePropertyChange as C, bypassReadOnly as l } from "@arcgis/lumina/controllers";
7
7
  import { log as d, composeMissingPropertyMessage as m } from "@arcgis/toolkit/log";
8
8
  import { css as T, html as f } from "lit";
9
9
  import { u as k } from "../../chunks/useT9n.js";
@@ -22,7 +22,7 @@ class D extends L {
22
22
  this.styles = $;
23
23
  }
24
24
  #o;
25
- get #f() {
25
+ get #y() {
26
26
  if (!this.traceResult)
27
27
  return !1;
28
28
  const { elements: e, globalFunctionResults: t, aggregatedGeometry: s } = this.traceResult;
@@ -58,7 +58,7 @@ class D extends L {
58
58
  return this._featuresComponentElement?.selectedDrillInFeature ?? this._featuresComponentElement?.selectedFeature ?? void 0;
59
59
  }
60
60
  clearResult() {
61
- this._isFeaturesSelected = !1, this.#s?.abort(), this.#m(), o(() => this.features = []), this.#e = [], this.#i.clear(), this.#r.clear(), this.#l.clear(), this.#a.clear(), o(() => this.state = "ready");
61
+ l(() => this.traceResult = void 0), this.#d();
62
62
  }
63
63
  async destroy() {
64
64
  this.clearResult(), await this.manager.destroy(), await this._featuresComponentElement?.destroy();
@@ -70,16 +70,16 @@ class D extends L {
70
70
  d("warn", this, "This component must be used as a child of `arcgis-utility-network-trace-results`.");
71
71
  return;
72
72
  }
73
- const t = (s) => this.#y(s);
74
- return e.addEventListener("arcgisPropertyChange", t), o(() => {
73
+ const t = (s) => this.#m(s);
74
+ return e.addEventListener("arcgisPropertyChange", t), l(() => {
75
75
  this.traceResult = e.traceResult, this.utilityNetwork = e.utilityNetwork, this.view = e.view;
76
76
  }), () => {
77
77
  e.removeEventListener("arcgisPropertyChange", t);
78
78
  };
79
- }), this.traceResult && this.#d();
79
+ }), this.traceResult && this.#f();
80
80
  }
81
81
  willUpdate(e) {
82
- e.has("traceResult") && this.#d(), e.has("disableHighlight") && this.#c();
82
+ e.has("traceResult") && this.#f(), e.has("disableHighlight") && this.#c();
83
83
  const t = this.hasContent;
84
84
  t !== this.#n && this.el.isConnected && this.arcgisPropertyChange.emit({ name: "hasContent" }), this.#n = t;
85
85
  const s = this.isFeaturesListShown;
@@ -88,23 +88,23 @@ class D extends L {
88
88
  loaded() {
89
89
  this.traceResult && (this.traceResult.elements || d("error", this, m("traceResult.elements")), this.utilityNetwork || d("error", this, m("utilityNetwork")));
90
90
  }
91
- #y(e) {
91
+ #m(e) {
92
92
  if (e.target !== this.#u)
93
93
  return;
94
94
  const { target: t } = e;
95
95
  switch (e.detail.name) {
96
96
  case "traceResult":
97
- o(() => this.traceResult = t.traceResult);
97
+ l(() => this.traceResult = t.traceResult);
98
98
  break;
99
99
  case "utilityNetwork":
100
- o(() => this.utilityNetwork = t.utilityNetwork);
100
+ l(() => this.utilityNetwork = t.utilityNetwork);
101
101
  break;
102
102
  case "view":
103
- o(() => this.view = t.view);
103
+ l(() => this.view = t.view);
104
104
  break;
105
105
  }
106
106
  }
107
- #m() {
107
+ #g() {
108
108
  this.#t.forEach(({ handle: e }) => e?.remove()), this.#t = [];
109
109
  }
110
110
  #c() {
@@ -112,13 +112,13 @@ class D extends L {
112
112
  this.disableHighlight ? (e.handle?.remove(), e.handle = void 0) : e.handle = e.layerView.highlight(e.objectIds);
113
113
  });
114
114
  }
115
- #g(e) {
115
+ #p(e) {
116
116
  e && (this._featuresComponentElement = e);
117
117
  }
118
- #p(e) {
118
+ #w(e) {
119
119
  return Array.from(new Map(e.map((t) => [t.globalId, t])).values());
120
120
  }
121
- #w(e) {
121
+ #R(e) {
122
122
  if (e == null || !this.#e.length)
123
123
  return;
124
124
  const t = this.#r.get(e);
@@ -127,14 +127,14 @@ class D extends L {
127
127
  const s = this.#e.find((r) => "layerId" in r && r.layerId === e);
128
128
  return s && this.#r.set(e, s), s;
129
129
  }
130
- #R() {
130
+ #b() {
131
131
  const { traceResult: e, utilityNetwork: t, view: s } = this;
132
132
  if (!t || !e?.elements?.length || !s)
133
133
  return;
134
134
  const r = (i) => (S(i.layer) || w(i.layer)) && t.isUtilityLayer(i.layer), n = t.getObjectIdsFromElements(e.elements), h = s.allLayerViews.filter(r);
135
- n.forEach(({ layerUrl: i, objectIds: l }) => {
136
- const a = Number(i.split("/").pop()), c = h.find(({ layer: F }) => F.layerId === a);
137
- c && this.#t.push({ layerView: c, objectIds: l });
135
+ n.forEach(({ layerUrl: i, objectIds: o }) => {
136
+ const a = Number(i.split("/").pop()), c = h.find(({ layer: b }) => b.layerId === a);
137
+ c && this.#t.push({ layerView: c, objectIds: o });
138
138
  }), this.#c();
139
139
  }
140
140
  async #F(e) {
@@ -152,22 +152,26 @@ class D extends L {
152
152
  const h = this.#e.filter((i) => !i.loaded).map((i) => i.load({ signal: e }));
153
153
  if (h.length > 0) {
154
154
  const i = await Promise.allSettled(h);
155
- u(e), i.forEach((l) => {
156
- l.status === "rejected" && d("error", this, `Failed to load layer. Reason: ${l.reason}`);
155
+ u(e), i.forEach((o) => {
156
+ o.status === "rejected" && d("error", this, `Failed to load layer. Reason: ${o.reason}`);
157
157
  });
158
158
  }
159
159
  }
160
- async #d() {
161
- this.clearResult(), this._isFeaturesSelected = this.#f;
160
+ #d() {
161
+ this._isFeaturesSelected = this.#y, this.#s?.abort(), this.#g(), l(() => this.features = []), this.#e = [], this.#i.clear(), this.#r.clear(), this.#l.clear(), this.#a.clear(), l(() => this.state = "ready");
162
+ }
163
+ async #f() {
164
+ if (this.#d(), !this.traceResult)
165
+ return;
162
166
  const e = () => {
163
- o(() => this.state = "ready"), this.arcgisResultReady.emit();
167
+ l(() => this.state = "ready"), this.arcgisResultReady.emit();
164
168
  }, t = I(async (s) => {
165
169
  const r = this.traceResult?.elements;
166
170
  if (!r?.length) {
167
171
  e();
168
172
  return;
169
173
  }
170
- o(() => this.state = "loading"), this.#v(r), await this.#F(s), await this.#E(s), u(s), this.#R(), e();
174
+ l(() => this.state = "loading"), this.#L(r), await this.#F(s), await this.#v(s), u(s), this.#b(), e();
171
175
  });
172
176
  this.#s = t;
173
177
  try {
@@ -175,60 +179,60 @@ class D extends L {
175
179
  } catch (s) {
176
180
  g(s) || (p(s, this, "Error while loading trace result"), this.#s === t && e());
177
181
  } finally {
178
- this.#s === t && (this.#s = void 0, o(() => this.state = "ready"));
182
+ this.#s === t && (this.#s = void 0, l(() => this.state = "ready"));
179
183
  }
180
184
  }
181
- async #b([e, t], s) {
185
+ async #E([e, t], s) {
182
186
  u(s);
183
- const r = this.utilityNetwork?.getLayerIdBySourceId(e), n = this.#w(r);
187
+ const r = this.utilityNetwork?.getLayerIdBySourceId(e), n = this.#R(r);
184
188
  if (r == null || !n)
185
189
  return;
186
- const h = this.#p(t), i = n.createQuery();
190
+ const h = this.#w(t), i = n.createQuery();
187
191
  i.gdbVersion = this.utilityNetwork?.gdbVersion, i.objectIds = h.map((a) => a.objectId), i.outFields = ["*"];
188
- const { features: l } = await P(n, i, { signal: s });
189
- u(s), l.forEach((a) => {
192
+ const { features: o } = await P(n, i, { signal: s });
193
+ u(s), o.forEach((a) => {
190
194
  const c = a.layer;
191
195
  a.getEffectivePopupTemplate(this.#o) || (a.popupTemplate = c.createPopupTemplate());
192
- }), w(n) ? l.forEach((a) => {
196
+ }), w(n) ? o.forEach((a) => {
193
197
  v(this.#l, a.layer.subtypeCode, () => []).push(a);
194
- }) : this.#i.set(r, l);
198
+ }) : this.#i.set(r, o);
195
199
  }
196
- async #E(e) {
200
+ async #v(e) {
197
201
  const t = Array.from(this.#a.entries());
198
202
  if (!t.length)
199
203
  return;
200
- const s = t.map((i) => this.#b(i, e)), r = await Promise.allSettled(s);
201
- u(e), r.forEach((i, l) => {
204
+ const s = t.map((i) => this.#E(i, e)), r = await Promise.allSettled(s);
205
+ u(e), r.forEach((i, o) => {
202
206
  if (i.status === "rejected") {
203
- const [a] = t[l];
207
+ const [a] = t[o];
204
208
  d("error", this, `Failed to query features for source ${a}. Reason: ${i.reason}`);
205
209
  }
206
210
  });
207
211
  const n = Array.from(this.#i.values()), h = Array.from(this.#l.values());
208
- o(() => this.features = n.concat(h).flat());
212
+ l(() => this.features = n.concat(h).flat());
209
213
  }
210
- #v(e) {
214
+ #L(e) {
211
215
  this.#a = Map.groupBy(e, ({ networkSourceId: t }) => t);
212
216
  }
213
- #L(e) {
217
+ #C(e) {
214
218
  const { detail: t } = e;
215
219
  (t.name === "selectedDrillInFeature" || t.name === "selectedFeature") && (e.stopPropagation(), this.arcgisPropertyChange.emit({ name: "selectedResultFeature" }));
216
220
  }
217
- #C(e) {
221
+ #T(e) {
218
222
  e.stopPropagation(), this.arcgisTriggerAction.emit(e.detail);
219
223
  }
220
- #T() {
224
+ #k() {
221
225
  return f`<div class="features-hidden">${this._messages.resultFeaturesAreHidden}</div>`;
222
226
  }
223
- #k() {
227
+ #I() {
224
228
  const { heading: e, _messages: t } = this;
225
229
  return f`<calcite-list .label=${t.headings.features}><calcite-list-item class="elements-list-item" .label=${e || t.headings.features} @calciteListItemSelect=${() => this._isFeaturesSelected = !0}><calcite-chip .label=${t.labels.numFeatures} scale=s slot=content-end>${this.numResults}</calcite-chip><calcite-icon flip-rtl icon=chevron-right slot=content-end></calcite-icon></calcite-list-item></calcite-list>`;
226
230
  }
227
231
  render() {
228
- return this.hasContent ? this.hideFeatureResults ? this.#T() : this.isFeaturesListShown ? f`<arcgis-features-next .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this.#o} .features=${this.features} .hideActionBar=${this.hideActionBar} hide-select-feature .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} initial-display-mode=list .messageOverrides=${this.messageOverrides} open .referenceElement=${this.referenceElement} .view=${this.view} @arcgisClose=${() => this._isFeaturesSelected = !1} @arcgisPropertyChange=${this.#L} @arcgisTriggerAction=${this.#C} ${E(this.#g)}></arcgis-features-next>` : this.#k() : null;
232
+ return this.hasContent ? this.hideFeatureResults ? this.#k() : this.isFeaturesListShown ? f`<arcgis-features-next .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this.#o} .features=${this.features} .hideActionBar=${this.hideActionBar} hide-select-feature .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} initial-display-mode=list .messageOverrides=${this.messageOverrides} open .referenceElement=${this.referenceElement} .view=${this.view} @arcgisClose=${() => this._isFeaturesSelected = !1} @arcgisPropertyChange=${this.#C} @arcgisTriggerAction=${this.#T} ${E(this.#p)}></arcgis-features-next>` : this.#I() : null;
229
233
  }
230
234
  }
231
- b("arcgis-utility-network-trace-elements-result-item", D);
235
+ F("arcgis-utility-network-trace-elements-result-item", D);
232
236
  export {
233
237
  D as ArcgisUtilityNetworkTraceElementsResultItem
234
238
  };
@@ -120,7 +120,7 @@ export abstract class ArcgisUtilityNetworkTraceFunctionsResultItem extends LitEl
120
120
  */
121
121
  get traceResult(): TraceResult | undefined;
122
122
  /**
123
- * This method has no effect because the component creates no side effects while processing function results.
123
+ * Clears [traceResult](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-functions-result-item/#traceResult).
124
124
  * Does not emit [@arcgisResultReady](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-functions-result-item/#event-arcgisResultReady).
125
125
  */
126
126
  clearResult(): void;
@@ -1,7 +1,7 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as g } from "../../chunks/runtime.js";
3
3
  import { LitElement as d, createEvent as R } from "@arcgis/lumina";
4
- import { usePropertyChange as f, bypassReadOnly as r } from "@arcgis/lumina/controllers";
4
+ import { usePropertyChange as f, bypassReadOnly as a } from "@arcgis/lumina/controllers";
5
5
  import { log as i, composeEmptyPropertyMessage as p } from "@arcgis/toolkit/log";
6
6
  import { css as b, html as l } from "lit";
7
7
  import { u as y } from "../../chunks/useT9n.js";
@@ -29,6 +29,7 @@ class v extends d {
29
29
  return !!this.traceResult?.globalFunctionResults.length;
30
30
  }
31
31
  clearResult() {
32
+ a(() => this.traceResult = void 0);
32
33
  }
33
34
  async destroy() {
34
35
  await this.manager.destroy();
@@ -40,8 +41,8 @@ class v extends d {
40
41
  i("warn", this, "This component must be used as a child of `arcgis-utility-network-trace-results`.");
41
42
  return;
42
43
  }
43
- const e = (a) => this.#s(a);
44
- return t.addEventListener("arcgisPropertyChange", e), r(() => {
44
+ const e = (r) => this.#s(r);
45
+ return t.addEventListener("arcgisPropertyChange", e), a(() => {
45
46
  this.traceResult = t.traceResult;
46
47
  }), () => {
47
48
  t.removeEventListener("arcgisPropertyChange", e);
@@ -49,7 +50,7 @@ class v extends d {
49
50
  }), this.traceResult && this.#e();
50
51
  }
51
52
  willUpdate(t) {
52
- t.has("traceResult") && this.#e();
53
+ t.has("traceResult") && this.traceResult && this.#e();
53
54
  }
54
55
  loaded() {
55
56
  this.traceResult && !this.traceResult.globalFunctionResults.length && i("warn", this, p("traceResult.globalFunctionResults"));
@@ -58,16 +59,16 @@ class v extends d {
58
59
  if (t.target !== this.#t)
59
60
  return;
60
61
  const { target: e } = t;
61
- t.detail.name === "traceResult" && r(() => this.traceResult = e.traceResult);
62
+ t.detail.name === "traceResult" && a(() => this.traceResult = e.traceResult);
62
63
  }
63
64
  #e() {
64
- r(() => this.state = "ready"), this.arcgisResultReady.emit();
65
+ a(() => this.state = "ready"), this.arcgisResultReady.emit();
65
66
  }
66
67
  render() {
67
68
  if (!this.hasContent)
68
69
  return null;
69
- const { heading: t, _messages: e } = this, { globalFunctionResults: a } = this.traceResult;
70
- return l`<div class="functions-heading">${t || e.functions}</div><calcite-table .caption=${e.labels.functionResults}>${a.filter((s) => s.networkAttributeName != null && s.result != null && s.functionType != null).map((s) => {
70
+ const { heading: t, _messages: e } = this, { globalFunctionResults: r } = this.traceResult;
71
+ return l`<div class="functions-heading">${t || e.functions}</div><calcite-table .caption=${e.labels.functionResults}>${r.filter((s) => s.networkAttributeName != null && s.result != null && s.functionType != null).map((s) => {
71
72
  const { functionName: o, networkAttributeName: n, functionType: u, result: h } = s, m = o || `${n} ${u}`;
72
73
  return l`<calcite-table-row><calcite-table-cell>${m}</calcite-table-cell><calcite-table-cell>${h}</calcite-table-cell></calcite-table-row>`;
73
74
  })}</calcite-table>`;
@@ -276,7 +276,7 @@ export abstract class ArcgisUtilityNetworkTraceLocations extends LitElement {
276
276
  * Adding or removing locations through the component's UI updates this collection and the map markers.
277
277
  *
278
278
  * When a user selects terminals, these choices are stored in `flagProperties.selectedTerminals`; they do not
279
- * . create a separate `traceLocation` for each selected terminal. When constructing trace inputs, account for
279
+ * create a separate `traceLocation` for each selected terminal. When constructing trace inputs, account for
280
280
  * the selected terminals rather than using only each entry's `traceLocation.terminalId`.
281
281
  *
282
282
  * @since 5.2
@@ -354,11 +354,9 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
354
354
  * [state](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#state) to `"ready"`, and emits
355
355
  * [@arcgisTraceResultClear](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#event-arcgisTraceResultClear).
356
356
  *
357
- * When this component is managed by [arcgis-utility-network-trace-analysis](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-analysis/), using the parent
358
- * component's clear results action also clears its synchronized
357
+ * Clears
359
358
  * [traceResult](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#traceResult) and
360
- * [traceError](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#traceError) values. Calling this method directly does not
361
- * change those properties; set them to `undefined` when using this component independently.
359
+ * [traceError](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#traceError) values.
362
360
  */
363
361
  clearResults(): void;
364
362
  /** Permanently destroy the component. */
@@ -1,8 +1,8 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as $ } from "../../chunks/runtime.js";
2
+ import { c as E } from "../../chunks/runtime.js";
3
3
  import { ref as d } from "lit/directives/ref.js";
4
4
  import u from "@arcgis/core/Color.js";
5
- import { LitElement as b, createEvent as c, safeClassMap as E } from "@arcgis/lumina";
5
+ import { LitElement as $, createEvent as c, safeClassMap as b } from "@arcgis/lumina";
6
6
  import { usePropertyChange as C, bypassReadOnly as g } from "@arcgis/lumina/controllers";
7
7
  import { slotChangeGetAssignedElements as w } from "@arcgis/toolkit/dom/slots";
8
8
  import { log as G, composeMissingPropertyMessage as _ } from "@arcgis/toolkit/log";
@@ -16,7 +16,7 @@ const L = D`:host{height:100%}slot:not([hidden]),.default-result-items:not([hidd
16
16
  noValidControllers: -2147208935,
17
17
  pathNotFound: -2147208444
18
18
  };
19
- class P extends b {
19
+ class P extends $ {
20
20
  constructor() {
21
21
  super(...arguments), this._messages = F({ blocking: !0 }), this.#s = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Set(), this.#i = /* @__PURE__ */ new Map(), this.#a = [], this.#r = /* @__PURE__ */ new Map(), this.#o = /* @__PURE__ */ new Set(), this.#g = (e) => {
22
22
  const { detail: t, target: s } = e;
@@ -56,7 +56,7 @@ class P extends b {
56
56
  get #l() {
57
57
  return a(this.el).length > 0;
58
58
  }
59
- get #E() {
59
+ get #b() {
60
60
  return this.traceResult ? this.#l ? a(this.el).filter(p) : this.#D(this.traceResult) : [];
61
61
  }
62
62
  get #C() {
@@ -83,7 +83,7 @@ class P extends b {
83
83
  return this._defaultElementsResultItem ? this._defaultElementsResultItem.features : this.#a[0]?.features ?? [];
84
84
  }
85
85
  clearResults() {
86
- this.#y(), this.arcgisTraceResultClear.emit();
86
+ this.traceResult = void 0, this.traceError = void 0, this.#y(), this.arcgisTraceResultClear.emit();
87
87
  }
88
88
  async destroy() {
89
89
  const e = a(this.el).filter(k), t = await Promise.allSettled([
@@ -99,7 +99,7 @@ class P extends b {
99
99
  load() {
100
100
  this.manager.onLifecycle(() => {
101
101
  const e = a(this.el);
102
- return this.#$(e), this.#I(e), () => {
102
+ return this.#E(e), this.#I(e), () => {
103
103
  for (const t of this.#i.keys())
104
104
  this.#v(t);
105
105
  for (const t of this.#r.keys())
@@ -163,7 +163,7 @@ class P extends b {
163
163
  }
164
164
  #L(e) {
165
165
  const t = w(e);
166
- this.#$(t), this.#I(t);
166
+ this.#E(t), this.#I(t);
167
167
  }
168
168
  #f(e) {
169
169
  e.forEach((t) => {
@@ -171,7 +171,7 @@ class P extends b {
171
171
  });
172
172
  }
173
173
  #P() {
174
- this.#t = new Set(this.#E), this.#t.size === 0 ? this.#u() : g(() => this.state = "loading");
174
+ this.#t = new Set(this.#b), this.#t.size === 0 ? this.#u() : g(() => this.state = "loading");
175
175
  }
176
176
  #T(e) {
177
177
  if (this.#r.has(e))
@@ -204,7 +204,7 @@ class P extends b {
204
204
  const s = this.#e;
205
205
  s && (!s.isFeaturesListShown || s !== this._defaultElementsResultItem && !t.includes(s)) && (this.#e = void 0, this.#d()), this.#e ??= t.find((i) => i.isFeaturesListShown), this.#e && this.#f(e), this.#a = t, this.requestUpdate();
206
206
  }
207
- #$(e) {
207
+ #E(e) {
208
208
  const t = new Set(e.filter(p));
209
209
  for (const s of this.#o)
210
210
  t.has(s) || (this.#v(s), this.#t.delete(s));
@@ -218,7 +218,7 @@ class P extends b {
218
218
  render() {
219
219
  const { traceError: e, traceResult: t } = this, s = !e && t && this.#n && !this.#l ? this.#H(t) : void 0, i = !!t && !e && this.#m && (this.#h || this.#R), h = r`<slot .hidden=${!i} @slotchange=${this.#L}></slot>`;
220
220
  let l;
221
- return e ? l = this.#O(e) : t ? !this.#n && !this.#h ? l = this.#b() : this.state === "ready" && !this.#m && (l = this.#l && this._slottedDefaultResultItems.length && !this.#R ? this.#N() : this.#b()) : l = this.#B(), r`<calcite-block class=${E({
221
+ return e ? l = this.#O(e) : t ? !this.#n && !this.#h ? l = this.#$() : this.state === "ready" && !this.#m && (l = this.#l && this._slottedDefaultResultItems.length && !this.#R ? this.#N() : this.#$()) : l = this.#B(), r`<calcite-block class=${b({
222
222
  "results-block": !0,
223
223
  "features-list-active": !!this.#e
224
224
  })} .description=${this.heading} .expandable=${this.expandable} .expanded=${this.expanded} .heading=${this._messages.headings.traceResultsGeneric} .label=${this._messages.headings.traceResultsGeneric} .loading=${this.state === "loading"}>${h}${s}${l}</calcite-block>`;
@@ -249,7 +249,7 @@ class P extends b {
249
249
  }
250
250
  return r`<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${t.traceFailedHeading}</div><div class="no-results-description">${t.traceFailedDescription}</div><div class="no-results-description">${s}</div></div>`;
251
251
  }
252
- #b() {
252
+ #$() {
253
253
  const { _messages: e } = this;
254
254
  return r`<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${e.noResultsHeading}</div><div class="no-results-description">${e.noResultsDescription}</div></div>`;
255
255
  }
@@ -258,7 +258,7 @@ class P extends b {
258
258
  return r`<div class="no-results-landing"><calcite-icon icon=utility-network-trace scale=l></calcite-icon><div class="no-results-heading">${e.noTraceConfigHeading}</div><div class="no-results-description">${e.noTraceConfigDescription}</div></div>`;
259
259
  }
260
260
  }
261
- $("arcgis-utility-network-trace-results", P);
261
+ E("arcgis-utility-network-trace-results", P);
262
262
  export {
263
263
  P as ArcgisUtilityNetworkTraceResults
264
264
  };
@@ -105,8 +105,6 @@ import type { FlowItem } from "@esri/calcite-components/components/calcite-flow-
105
105
  * document.getElementById("clear-trace-results").addEventListener("click", () => {
106
106
  * for (const results of resultsComponents) {
107
107
  * results.clearResults();
108
- * results.traceResult = undefined;
109
- * results.traceError = undefined;
110
108
  * }
111
109
  * });
112
110
  * ```
@@ -37,7 +37,7 @@ import type { Icon } from "@esri/calcite-components/components/calcite-icon";
37
37
  * ![option-nodata](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/valuepicker/option-nodata.avif)
38
38
  *
39
39
  * ```html
40
- * <arcgis-map itemId="462c629e8e604c15baf45627c4f337d6">
40
+ * <arcgis-map item-id="462c629e8e604c15baf45627c4f337d6">
41
41
  * <arcgis-value-picker-legacy slot="top-right"></arcgis-value-picker-legacy>
42
42
  * </arcgis-map>
43
43
  * ```
@@ -52,7 +52,7 @@ import type { Icon } from "@esri/calcite-components/components/calcite-icon";
52
52
  * valuePicker.addEventListener("arcgisNext", () => { console.log("user clicks next"); });
53
53
  * ```
54
54
  *
55
- * <span id="nodata"></span>
55
+ * <span id="from-labels"></span>
56
56
  * #### 2. Using the label component to present items
57
57
  *
58
58
  * Consider using the [label component](https://developers.arcgis.com/javascript/latest/references/core/widgets/ValuePicker/ValuePickerLabel/) to step through a fixed list of predefined values like land use zones.
@@ -206,7 +206,7 @@ import type { Icon } from "@esri/calcite-components/components/calcite-icon";
206
206
  * ```js
207
207
  * valuePicker.addEventListener("arcgisPropertyChange", () => {
208
208
  * console.log("The current opacity is: ", valuePicker.values[0]);
209
- * layer.opacity = valuePicker.values[0] / 100;
209
+ * layer.opacity = valuePicker.values[0] / 10;
210
210
  * });
211
211
  * ```
212
212
  *
@@ -229,7 +229,7 @@ import type { Icon } from "@esri/calcite-components/components/calcite-icon";
229
229
  * collection: basemapCollection,
230
230
  * });
231
231
  *
232
- * valuePickerBasemap.values = ["topo-vector"];
232
+ * valuePicker.values = ["topo-vector"];
233
233
  * ```
234
234
  *
235
235
  * @deprecated since 5.1. Use the [Value Picker component](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-value-picker/) instead.
@@ -307,7 +307,7 @@ export abstract class ArcgisValuePickerLegacy extends LitElement {
307
307
  */
308
308
  get canPlay(): boolean;
309
309
  /**
310
- * Returns `true` if the Value Picker can moved to the previous item.
310
+ * Returns `true` if the Value Picker can move to the previous item.
311
311
  *
312
312
  * @default false
313
313
  * @example
@@ -380,21 +380,21 @@ export abstract class ArcgisValuePickerLegacy extends LitElement {
380
380
  */
381
381
  accessor component: ValuePickerComponent | null | undefined;
382
382
  /**
383
- * When set to `false`, the next button (or up button when vertical) is not displayed.
383
+ * When set to `true`, the next button (or up button when vertical) is not displayed.
384
384
  *
385
385
  * @default false
386
386
  * @since 5.0
387
387
  */
388
388
  accessor hideNextButton: boolean;
389
389
  /**
390
- * When set to `false`, the play/pause button is not displayed.
390
+ * When set to `true`, the play/pause button is not displayed.
391
391
  *
392
392
  * @default false
393
393
  * @since 5.0
394
394
  */
395
395
  accessor hidePlayButton: boolean;
396
396
  /**
397
- * When set to `false`, the previous button (or down button when vertical) is not displayed.
397
+ * When set to `true`, the previous button (or down button when vertical) is not displayed.
398
398
  *
399
399
  * @default false
400
400
  * @since 5.0
@@ -513,11 +513,9 @@ export abstract class ArcgisValuePickerLegacy extends LitElement {
513
513
  *
514
514
  * valuePickerBasemap.values = ["topo-vector"];
515
515
  *
516
- * valuePickerLandCover.addEventListener("arcgisPropertyChange", () => {
517
- * if (valuePickerLandCover.values?.[0]) {
518
- * layer.rasterFunction = {
519
- * functionName: valuePickerLandCover.values[0],
520
- * };
516
+ * valuePickerBasemap.addEventListener("arcgisPropertyChange", () => {
517
+ * if (valuePickerBasemap.values?.[0]) {
518
+ * mapElement.basemap = valuePickerBasemap.values[0];
521
519
  * }
522
520
  * });
523
521
  * ```
@@ -543,7 +541,7 @@ export abstract class ArcgisValuePickerLegacy extends LitElement {
543
541
  * valuePicker.values = [0];
544
542
  * console.log("Current value:", valuePicker.values[0]); // "Current value: 0"
545
543
  *
546
- * valuePicker.next();
544
+ * await valuePicker.next();
547
545
  * console.log("Current value:", valuePicker.values[0]); // "Current value: 1"
548
546
  * ```
549
547
  */
@@ -595,7 +593,7 @@ export abstract class ArcgisValuePickerLegacy extends LitElement {
595
593
  * valuePicker.values = [3];
596
594
  * console.log("Current value:", valuePicker.values[0]); // "Current value: 3"
597
595
  *
598
- * valuePicker.previous();
596
+ * await valuePicker.previous();
599
597
  * console.log("Current value:", valuePicker.values[0]); // "Current value: 2"
600
598
  * ```
601
599
  */
@@ -622,7 +620,7 @@ export abstract class ArcgisValuePickerLegacy extends LitElement {
622
620
  * // Update ImageryLayer's raster function accordingly.
623
621
  * valuePicker.addEventListener("arcgisPropertyChange", (event) =>{
624
622
  * layer.rasterFunction = {
625
- * functionName: rasterFunctionPicker.values[0],
623
+ * functionName: valuePicker.values[0],
626
624
  * };
627
625
  * });
628
626
  * ```
@@ -126,7 +126,7 @@ export abstract class ArcgisVideo extends LitElement {
126
126
  * @see [when()](https://developers.arcgis.com/javascript/latest/references/core/views/VideoView/#when)
127
127
  */
128
128
  get ready(): boolean;
129
- /** The [VideoView](https://developers.arcgis.com/javascript/latest/references/core/views/VideoView/) instance created and manged by the component. Accessible once the component is fully loaded. */
129
+ /** The [VideoView](https://developers.arcgis.com/javascript/latest/references/core/views/VideoView/) instance created and managed by the component. Accessible once the component is fully loaded. */
130
130
  get view(): VideoView;
131
131
  /** Destroys the view, and any associated resources, including its map, popup, and UI elements. */
132
132
  destroy(): Promise<void>;
@@ -35,10 +35,9 @@ import type { SystemOrVolumeUnit, SystemOrLengthUnit, LengthUnit, SystemOrAreaUn
35
35
  *
36
36
  * - In **Geographic Coordinate Systems (GCS)** and **Web Mercator** in **global** viewing mode, if the measurement's perimeter exceeds 50 km, the analysis is considered invalid due to potential accuracy issues.
37
37
  *
38
- *
39
38
  * **Known Limitations**
40
39
  *
41
- * - The Volume Measurement component can only be added to a
40
+ * - The Volume Measurement component can only be added to a
42
41
  * [arcgis-scene](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/) component.
43
42
  * - The results of the tool vary depending on the zoom level, as changes in zoom level affect the level of detail (LOD) of the scene geometry.
44
43
  * - If the view is too close or too far from the measurement polygon, the results will not be computed due to LOD-induced inaccuracies.
@@ -513,6 +512,7 @@ export abstract class ArcgisVolumeMeasurement extends LitElement {
513
512
  * * `ready` - ready for measuring
514
513
  * * `measuring` - currently measuring
515
514
  * * `measured` - measuring has finished
515
+ * * `unsupported` - the current view is not supported
516
516
  *
517
517
  * @since 5.0
518
518
  */
@@ -72,7 +72,7 @@ export abstract class ArcgisWeather extends LitElement {
72
72
  accessor autoDestroyDisabled: boolean;
73
73
  /**
74
74
  * Indicates the heading level to use for the title of the component. By default, this message is rendered as a level 4
75
- * heading (e.g. `<h4>Time range</h4>`). Depending on the component's placement in your app, you may need to adjust
75
+ * heading (e.g. `<h4>Weather</h4>`). Depending on the component's placement in your app, you may need to adjust
76
76
  * this heading for proper semantics. This is important for meeting accessibility standards.
77
77
  *
78
78
  * @default 4
@@ -119,9 +119,8 @@ export interface HistogramConfig {
119
119
  */
120
120
  standardDeviation?: number;
121
121
  /**
122
- * Indicates the standard deviation of the dataset.
123
- * When set, data lines are on the histogram at the locations of the standard deviations
124
- * above and below the `average`.
122
+ * Indicates the number of standard deviation lines to render on the histogram
123
+ * above and below the `average`.
125
124
  */
126
125
  standardDeviationCount?: number;
127
126
  }