@arcgis/map-components 5.0.0-next.162 → 5.0.0-next.164

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 (144) hide show
  1. package/dist/cdn/{G4FP7GXM.js → 3UILDMTJ.js} +1 -1
  2. package/dist/cdn/3V6ZTS7B.js +2 -0
  3. package/dist/cdn/{ANP7PYGJ.js → 3XJU4K4Z.js} +1 -1
  4. package/dist/cdn/5KET4V4O.js +2 -0
  5. package/dist/cdn/7EW22PZD.js +2 -0
  6. package/dist/cdn/AAGYR4XM.js +2 -0
  7. package/dist/cdn/AZN2TGWK.js +2 -0
  8. package/dist/cdn/{NWXN5M4S.js → DPW55W6W.js} +1 -1
  9. package/dist/cdn/{SK6O74LF.js → DUHFQ4AI.js} +1 -1
  10. package/dist/cdn/{UNLAUFXF.js → F5I4VDXM.js} +1 -1
  11. package/dist/cdn/{R2FIOZIL.js → FUHAGBXL.js} +1 -1
  12. package/dist/cdn/{K6ZTEDKX.js → INYYRLED.js} +1 -1
  13. package/dist/cdn/{ESNK6MCY.js → IWXXD73F.js} +1 -1
  14. package/dist/cdn/{FD4A66OJ.js → KDJV5F4T.js} +1 -1
  15. package/dist/cdn/{SQFVC4KA.js → MJBV536L.js} +1 -1
  16. package/dist/cdn/MU6C77DZ.js +2 -0
  17. package/dist/cdn/NPEMOLA3.js +2 -0
  18. package/dist/cdn/{2AHY7O7C.js → POP5NTRI.js} +1 -1
  19. package/dist/cdn/SI3PITPE.js +2 -0
  20. package/dist/cdn/SU6ZGF4G.js +2 -0
  21. package/dist/cdn/W3AN7XLR.js +2 -0
  22. package/dist/cdn/{7NOD6U2Y.js → WUISNRWL.js} +1 -1
  23. package/dist/cdn/X25QBU47.js +2 -0
  24. package/dist/cdn/X7QWBVC2.js +2 -0
  25. package/dist/cdn/Z22BBNTK.js +2 -0
  26. package/dist/cdn/{YXYCWJFF.js → Z6LBCKKH.js} +1 -1
  27. package/dist/cdn/{AJ64UYFM.js → ZFATBY4D.js} +1 -1
  28. package/dist/cdn/assets/elevation-profile/t9n/messages.fr.json +1 -1
  29. package/dist/cdn/index.js +1 -1
  30. package/dist/chunks/esri-main.js +1 -1
  31. package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +3 -3
  32. package/dist/components/arcgis-basemap-gallery/customElement.d.ts +1 -1
  33. package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +5 -7
  34. package/dist/components/arcgis-basemap-toggle/customElement.d.ts +3 -3
  35. package/dist/components/arcgis-bookmarks/customElement.d.ts +2 -2
  36. package/dist/components/arcgis-bookmarks/types.d.ts +1 -1
  37. package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +4 -6
  38. package/dist/components/arcgis-clipboard/customElement.d.ts +2 -2
  39. package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +3 -3
  40. package/dist/components/arcgis-daylight/customElement.d.ts +1 -1
  41. package/dist/components/arcgis-directions/customElement.d.ts +4 -5
  42. package/dist/components/arcgis-directions/customElement.js +5 -5
  43. package/dist/components/arcgis-editor/customElement.d.ts +2 -3
  44. package/dist/components/arcgis-elevation-profile/customElement.d.ts +1 -1
  45. package/dist/components/arcgis-feature/customElement.js +6 -6
  46. package/dist/components/arcgis-feature-form/customElement.d.ts +1 -2
  47. package/dist/components/arcgis-feature-image/customElement.d.ts +5 -5
  48. package/dist/components/arcgis-feature-table/customElement.d.ts +72 -24
  49. package/dist/components/arcgis-feature-table/customElement.js +28 -13
  50. package/dist/components/arcgis-feature-templates/customElement.d.ts +7 -6
  51. package/dist/components/arcgis-feature-templates/customElement.js +2 -2
  52. package/dist/components/arcgis-feature-title/customElement.d.ts +3 -3
  53. package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +16 -16
  54. package/dist/components/arcgis-feature-utility-network-associations/customElement.js +55 -55
  55. package/dist/components/arcgis-features/customElement.d.ts +6 -8
  56. package/dist/components/arcgis-features/customElement.js +16 -16
  57. package/dist/components/arcgis-floor-filter/customElement.d.ts +2 -2
  58. package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +1 -1
  59. package/dist/components/arcgis-home/customElement.d.ts +2 -2
  60. package/dist/components/arcgis-layer-list/customElement.d.ts +9 -11
  61. package/dist/components/arcgis-legend/customElement.d.ts +3 -3
  62. package/dist/components/arcgis-legend-classic-element/customElement.js +22 -24
  63. package/dist/components/arcgis-link-chart/customElement.d.ts +16 -18
  64. package/dist/components/arcgis-link-chart/customElement.js +10 -15
  65. package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.d.ts +1 -1
  66. package/dist/components/arcgis-map/customElement.d.ts +17 -19
  67. package/dist/components/arcgis-map/customElement.js +1 -6
  68. package/dist/components/arcgis-multi-feature-form/customElement.d.ts +7 -9
  69. package/dist/components/arcgis-navigation-toggle/customElement.d.ts +1 -1
  70. package/dist/components/arcgis-paste/ClipboardMove.d.ts +3 -3
  71. package/dist/components/arcgis-paste/PasteViewModel.d.ts +9 -9
  72. package/dist/components/arcgis-paste/commands/PasteCommand.d.ts +3 -3
  73. package/dist/components/arcgis-paste/commands/PasteCustomCommand.d.ts +2 -2
  74. package/dist/components/arcgis-paste/customElement.d.ts +4 -4
  75. package/dist/components/arcgis-paste/customElement.js +44 -44
  76. package/dist/components/arcgis-popup/customElement.d.ts +8 -10
  77. package/dist/components/arcgis-popup/customElement.js +47 -52
  78. package/dist/components/arcgis-popup/types.d.ts +1 -1
  79. package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +2 -2
  80. package/dist/components/arcgis-presentation/customElement.d.ts +1 -1
  81. package/dist/components/arcgis-print/customElement.d.ts +16 -7
  82. package/dist/components/arcgis-print/customElement.js +7 -7
  83. package/dist/components/arcgis-print-layout-advanced-options/customElement.js +12 -12
  84. package/dist/components/arcgis-print-layout-panel/customElement.js +6 -6
  85. package/dist/components/arcgis-print-main-panel/customElement.js +7 -7
  86. package/dist/components/arcgis-reverse-geocode-list/customElement.d.ts +1 -1
  87. package/dist/components/arcgis-scale-bar/customElement.d.ts +1 -1
  88. package/dist/components/arcgis-scene/customElement.d.ts +22 -24
  89. package/dist/components/arcgis-scene/customElement.js +8 -13
  90. package/dist/components/arcgis-search/customElement.d.ts +7 -9
  91. package/dist/components/arcgis-search/customElement.js +8 -9
  92. package/dist/components/arcgis-shadow-cast/customElement.d.ts +3 -3
  93. package/dist/components/arcgis-sketch/customElement.d.ts +3 -4
  94. package/dist/components/arcgis-slice/types.d.ts +2 -2
  95. package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.d.ts +5 -5
  96. package/dist/components/arcgis-slider-classed-color-legacy/customElement.d.ts +5 -5
  97. package/dist/components/arcgis-slider-classed-size-legacy/customElement.d.ts +5 -5
  98. package/dist/components/arcgis-slider-color-legacy/customElement.d.ts +4 -4
  99. package/dist/components/arcgis-slider-color-size-legacy/customElement.d.ts +4 -4
  100. package/dist/components/arcgis-slider-heatmap-legacy/customElement.d.ts +2 -2
  101. package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +4 -4
  102. package/dist/components/arcgis-slider-size-legacy/customElement.d.ts +5 -5
  103. package/dist/components/arcgis-table-list/customElement.d.ts +7 -8
  104. package/dist/components/arcgis-time-slider/customElement.d.ts +3 -3
  105. package/dist/components/arcgis-time-zone-label/customElement.d.ts +1 -1
  106. package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.d.ts +14 -2
  107. package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.js +7 -7
  108. package/dist/components/arcgis-utility-network-trace/customElement.d.ts +2 -3
  109. package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
  110. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +6 -9
  111. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +47 -40
  112. package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +16 -4
  113. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +84 -67
  114. package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +7 -3
  115. package/dist/components/arcgis-utility-network-trace-location/customElement.js +17 -14
  116. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +14 -1
  117. package/dist/components/arcgis-utility-network-trace-results/customElement.js +63 -50
  118. package/dist/components/arcgis-value-picker-legacy/customElement.d.ts +2 -3
  119. package/dist/components/arcgis-version-management/customElement.d.ts +3 -4
  120. package/dist/components/arcgis-volume-measurement/customElement.d.ts +3 -3
  121. package/dist/components/types.d.ts +3 -3
  122. package/dist/docs/api.json +1 -1
  123. package/dist/docs/docs.json +1 -1
  124. package/dist/docs/vscode.html-custom-data.json +1 -1
  125. package/dist/docs/web-types.json +1 -1
  126. package/dist/loader.js +12 -12
  127. package/dist/types/lumina.d.ts +6 -6
  128. package/dist/types/preact.d.ts +6 -6
  129. package/dist/types/react.d.ts +6 -6
  130. package/dist/types/stencil.d.ts +6 -6
  131. package/package.json +4 -4
  132. package/dist/cdn/2LQLX6UN.js +0 -2
  133. package/dist/cdn/BHPXKX47.js +0 -2
  134. package/dist/cdn/D4LTASH2.js +0 -2
  135. package/dist/cdn/I5M2Z7WS.js +0 -2
  136. package/dist/cdn/IWY2NPAG.js +0 -2
  137. package/dist/cdn/O4RXVEMK.js +0 -2
  138. package/dist/cdn/P7PWOUNZ.js +0 -2
  139. package/dist/cdn/Q4B4MXH4.js +0 -2
  140. package/dist/cdn/QZPDQ6B7.js +0 -2
  141. package/dist/cdn/RN57AN5P.js +0 -2
  142. package/dist/cdn/W53OMY3O.js +0 -2
  143. package/dist/cdn/WREEAAEV.js +0 -2
  144. package/dist/cdn/WTTBFFC2.js +0 -2
@@ -1,24 +1,24 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import { c as f } from "../../chunks/runtime.js";
3
- import { queryAllJSON as _ } from "@arcgis/core/applications/Components/featureUtils.js";
2
+ import { c as _ } from "../../chunks/runtime.js";
3
+ import { ref as h } from "lit/directives/ref.js";
4
+ import { queryAllJSON as b } from "@arcgis/core/applications/Components/featureUtils.js";
4
5
  import v from "@arcgis/core/Color.js";
5
6
  import "@arcgis/core/core/Error.js";
6
- import * as h from "@arcgis/core/geometry/operators/shapePreservingProjectOperator.js";
7
+ import * as g from "@arcgis/core/geometry/operators/shapePreservingProjectOperator.js";
7
8
  import "@arcgis/core/Graphic.js";
8
- import b from "@arcgis/core/rest/support/FeatureSet.js";
9
+ import $ from "@arcgis/core/rest/support/FeatureSet.js";
9
10
  import { LitElement as F, createEvent as o } from "@arcgis/lumina";
10
- import { log as d, composeMissingPropertyMessage as g, composeEmptyPropertyMessage as $ } from "@arcgis/toolkit/log";
11
- import { css as w, html as r } from "lit";
12
- import { createRef as L, ref as C } from "lit/directives/ref.js";
13
- import { u as R } from "../../chunks/useT9n.js";
14
- import { h as m } from "../../chunks/feature-utils.js";
15
- const T = w`:host{min-height:var(--arcgis-internal-panel-height-sm, 240px);height:100%}arcgis-features{height:100%}calcite-flow{min-height:var(--arcgis-internal-panel-height-sm, 240px);height:100%}calcite-table{--calcite-table-border-color: none}calcite-table-row{--calcite-table-row-border-color: var(--calcite-color-border-3)}.white-panel-background{--calcite-panel-background-color: var(--calcite-color-foreground-1)}.aggregated-geometry-container{display:flex;justify-content:space-between;padding:0 var(--calcite-spacing-md) var(--calcite-spacing-md) var(--calcite-spacing-md)}#elements-list-item{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);margin:0 var(--calcite-spacing-sm)}.no-selectable-results{padding:0 var(--calcite-spacing-md);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size)}.results-heading{display:flex;flex-direction:column;margin:var(--calcite-spacing-md);gap:var(--calcite-spacing-xs)}.results-heading .results-heading-title{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.results-heading .results-heading-subtitle{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3)}.functions-heading{padding:var(--calcite-spacing-md) var(--calcite-spacing-md) var(--calcite-spacing-xxs) var(--calcite-spacing-md);font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;margin:var(--calcite-spacing-sm) var(--calcite-spacing-xl) var(--calcite-spacing-xl) var(--calcite-spacing-xl);gap:var(--calcite-spacing-md)}.no-results-landing calcite-icon{margin-bottom:var(--calcite-spacing-sm);--calcite-icon-color: var(--calcite-color-text-3)}.no-results-landing .no-results-heading{font-size:var(--calcite-font-size-2)}.no-results-landing .no-results-description{color:var(--calcite-color-text-3)}`, y = {
11
+ import { log as u, composeMissingPropertyMessage as m, composeEmptyPropertyMessage as w } from "@arcgis/toolkit/log";
12
+ import { css as L, html as i } from "lit";
13
+ import { u as C } from "../../chunks/useT9n.js";
14
+ import { h as y } from "../../chunks/feature-utils.js";
15
+ const T = L`:host{min-height:var(--arcgis-internal-panel-height-sm, 240px);height:100%}arcgis-features{height:100%}calcite-flow{min-height:var(--arcgis-internal-panel-height-sm, 240px);height:100%}calcite-table{--calcite-table-border-color: none}calcite-table-row{--calcite-table-row-border-color: var(--calcite-color-border-3)}.white-panel-background{--calcite-panel-background-color: var(--calcite-color-foreground-1)}.aggregated-geometry-container{display:flex;justify-content:space-between;padding:0 var(--calcite-spacing-md) var(--calcite-spacing-md) var(--calcite-spacing-md)}#elements-list-item{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);margin:0 var(--calcite-spacing-sm)}.no-selectable-results{padding:0 var(--calcite-spacing-md);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size)}.results-heading{display:flex;flex-direction:column;margin:var(--calcite-spacing-md);gap:var(--calcite-spacing-xs)}.results-heading .results-heading-title{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.results-heading .results-heading-subtitle{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3)}.functions-heading{padding:var(--calcite-spacing-md) var(--calcite-spacing-md) var(--calcite-spacing-xxs) var(--calcite-spacing-md);font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;margin:var(--calcite-spacing-sm) var(--calcite-spacing-xl) var(--calcite-spacing-xl) var(--calcite-spacing-xl);gap:var(--calcite-spacing-md)}.no-results-landing calcite-icon{margin-bottom:var(--calcite-spacing-sm);--calcite-icon-color: var(--calcite-color-text-3)}.no-results-landing .no-results-heading{font-size:var(--calcite-font-size-2)}.no-results-landing .no-results-description{color:var(--calcite-color-text-3)}`, p = {
16
16
  dirtyAreasDiscovered: -2147208511,
17
17
  noValidControllers: -2147208935
18
18
  };
19
- class S extends F {
19
+ class R extends F {
20
20
  constructor() {
21
- super(...arguments), this._messages = R({ blocking: !0 }), this._elementsWithoutLayer = [], this._featuresComponentRef = L(), this._featuresFromSelectedLayer = [], this._layerIdToFeatures = /* @__PURE__ */ new Map(), this._layerIdToLayer = /* @__PURE__ */ new Map(), this._subtypeCodeToFeatures = /* @__PURE__ */ new Map(), this._sourceIdToElements = /* @__PURE__ */ new Map(), this._unLayers = [], this._compareByFeatureTitle = (e, t) => e.label.localeCompare(t.label, void 0, { numeric: !0 }), this._compareByLayerTitle = ([, e], [, t]) => {
21
+ super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages = C({ blocking: !0 }), this._elementsWithoutLayer = [], this._featuresFromSelectedLayer = [], this._layerIdToFeatures = /* @__PURE__ */ new Map(), this._layerIdToLayer = /* @__PURE__ */ new Map(), this._subtypeCodeToFeatures = /* @__PURE__ */ new Map(), this._sourceIdToElements = /* @__PURE__ */ new Map(), this._unLayers = [], this._compareByFeatureTitle = (e, t) => e.label.localeCompare(t.label, void 0, { numeric: !0 }), this._compareByLayerTitle = ([, e], [, t]) => {
22
22
  const a = e[0].feature.layer, s = t[0].feature.layer, l = a?.title ?? "", c = s?.title ?? "";
23
23
  return l.localeCompare(c, void 0, { numeric: !0 });
24
24
  }, this._queryFeaturesOnLayer = async ([e, t]) => {
@@ -28,29 +28,33 @@ class S extends F {
28
28
  return;
29
29
  }
30
30
  const l = s.createQuery();
31
- l.gdbVersion = this.utilityNetwork?.gdbVersion, l.objectIds = t.map((i) => i.objectId), l.outFields = ["*"];
32
- const { features: c } = b.fromJSON(await _(s, l)), n = await Promise.all(c.map(async (i) => {
33
- i.layer = s.type === "subtype-group" ? s.findSublayerForFeature(i) : s;
34
- const u = i.layer;
35
- if (u && "getFeatureTitle" in u) {
36
- const p = await u.getFeatureTitle(i) || m(i);
37
- return { feature: i, label: p };
31
+ l.gdbVersion = this.utilityNetwork?.gdbVersion, l.objectIds = t.map((r) => r.objectId), l.outFields = ["*"];
32
+ const { features: c } = $.fromJSON(await b(s, l)), n = await Promise.all(c.map(async (r) => {
33
+ r.layer = s.type === "subtype-group" ? s.findSublayerForFeature(r) : s, r.origin = r.layer;
34
+ const d = r.layer;
35
+ if (r.getEffectivePopupTemplate(this._defaultPopupTemplateEnabled) || (r.popupTemplate = d.createPopupTemplate()), d && "getFeatureTitle" in d) {
36
+ const f = await d.getFeatureTitle(r) || y(r);
37
+ return { feature: r, label: f };
38
38
  }
39
- return { feature: i, label: m(i) };
39
+ return { feature: r, label: y(r) };
40
40
  }));
41
- s.type === "subtype-group" ? n.forEach((i) => this._addOrCreateMapValue(this._subtypeCodeToFeatures, i.feature.layer.subtypeCode, i)) : this._layerIdToFeatures.set(a, n);
42
- }, this.aggregatedGeometryGraphicsColor = new v([255, 255, 0, 0.6]), this.hideFeatureResults = !1, this.isElementsSelected = !1, this.layers = [], this.state = "ready", this.traceResultFeatures = [], this.arcgisAggregatedGeometryGraphicsColorChange = o(), this.arcgisHideGraphicsChange = o(), this.arcgisSelectedLayerChange = o(), this.arcgisSelectedResultTypeChange = o(), this.arcgisTraceResultFeaturesReady = o(), this._renderLayerListItem = ([, e]) => {
41
+ s.type === "subtype-group" ? n.forEach((r) => this._addOrCreateMapValue(this._subtypeCodeToFeatures, r.feature.layer.subtypeCode, r)) : this._layerIdToFeatures.set(a, n);
42
+ }, this._aggregateGeometryRefChange = (e) => {
43
+ e && (this._aggregatedGeometryComponentElement = e);
44
+ }, this._featuresRefChange = (e) => {
45
+ e && (this._featuresComponentElement = e);
46
+ }, this.aggregatedGeometryGraphicsColor = new v([255, 255, 0, 0.6]), this.hideFeatureResults = !1, this.isElementsSelected = !1, this.layers = [], this.state = "ready", this.traceResultFeatures = [], this.autoDestroyDisabled = !1, this.arcgisAggregatedGeometryGraphicsColorChange = o(), this.arcgisHideGraphicsChange = o(), this.arcgisSelectedLayerChange = o(), this.arcgisSelectedResultTypeChange = o(), this.arcgisTraceResultFeaturesReady = o(), this._renderLayerListItem = ([, e]) => {
43
47
  if (!e.length)
44
48
  return null;
45
49
  const t = e[0].feature.layer, a = t?.title || this._messages.unknown;
46
- return r`<calcite-list-item .label=${a} @calciteListItemSelect=${() => this._setSelectedLayerAndFeatures(t)}><calcite-chip .label=${this._messages.labels.numElements} slot=content-end scale=s>${e.length}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item>`;
50
+ return i`<calcite-list-item .label=${a} @calciteListItemSelect=${() => this._setSelectedLayerAndFeatures(t)}><calcite-chip .label=${this._messages.labels.numElements} slot=content-end scale=s>${e.length}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item>`;
47
51
  }, this._renderFeatureListItem = (e) => {
48
52
  const { feature: t, label: a } = e;
49
- return r`<calcite-list-item .label=${a} @calciteListItemSelect=${() => this.selectedFeature = t}><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item>`;
53
+ return i`<calcite-list-item .label=${a} @calciteListItemSelect=${() => this.selectedFeature = t}><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item>`;
50
54
  };
51
55
  }
52
56
  static {
53
- this.properties = { aggregatedGeometryGraphicsColor: 0, hideFeatureResults: 5, featuresFromSelectedLayer: 32, isElementsSelected: 5, layers: 0, messageOverrides: 0, referenceElement: 1, selectedFeature: 0, selectedLayer: 0, state: 1, traceConfigTitle: 1, traceError: 0, traceResult: 0, traceResultFeatures: 0, utilityNetwork: 0, view: 0 };
57
+ this.properties = { aggregatedGeometryGraphicsColor: 0, hideFeatureResults: 5, featuresFromSelectedLayer: 32, isElementsSelected: 5, layers: 0, messageOverrides: 0, referenceElement: 1, selectedFeature: 0, selectedLayer: 0, state: 1, traceConfigTitle: 1, traceError: 0, traceResult: 0, traceResultFeatures: 0, utilityNetwork: 0, view: 0, autoDestroyDisabled: 5 };
54
58
  }
55
59
  static {
56
60
  this.styles = T;
@@ -58,6 +62,12 @@ class S extends F {
58
62
  get featuresFromSelectedLayer() {
59
63
  return this._featuresFromSelectedLayer.map(({ feature: e }) => e);
60
64
  }
65
+ clearAggregatedGeometryGraphics() {
66
+ this._aggregatedGeometryComponentElement?.destroy();
67
+ }
68
+ async destroy() {
69
+ this._layerIdToFeatures.clear(), this._subtypeCodeToFeatures.clear(), this._sourceIdToElements.clear(), this._aggregatedGeometryComponentElement?.destroy(), this._featuresComponentElement?.destroy(), await this.manager.destroy();
70
+ }
61
71
  load() {
62
72
  this.traceResult && (this._setSourceIdToElements(), this._loadDependencies().then(() => this._queryTraceResultsFeatures()).then(() => this._loadProjectOperator()).finally(() => {
63
73
  this.arcgisTraceResultFeaturesReady.emit(), this.state = "ready";
@@ -67,7 +77,10 @@ class S extends F {
67
77
  e.has("isElementsSelected") && this.arcgisSelectedResultTypeChange.emit(), e.has("selectedLayer") && this.arcgisSelectedLayerChange.emit(), e.has("traceResult") && (this.isElementsSelected = !1), (e.has("layers") || e.has("utilityNetwork")) && this._loadDependencies();
68
78
  }
69
79
  loaded() {
70
- this.utilityNetwork || d("warn", this, g("utilityNetwork")), this.layers.length === 0 && d("warn", this, $("layers")), this.view || d("warn", this, g("view"));
80
+ this.utilityNetwork || u("warn", this, m("utilityNetwork")), this.layers.length === 0 && u("warn", this, w("layers")), this.view || u("warn", this, m("view"));
81
+ }
82
+ disconnectedCallback() {
83
+ super.disconnectedCallback(), this._layerIdToLayer.clear();
71
84
  }
72
85
  _addOrCreateMapValue(e, t, a) {
73
86
  const s = e.get(t);
@@ -95,7 +108,7 @@ class S extends F {
95
108
  }
96
109
  async _loadProjectOperator() {
97
110
  const { aggregatedGeometry: e } = this.traceResult;
98
- e && !h.isLoaded() && await h.load();
111
+ e && !g.isLoaded() && await g.load();
99
112
  }
100
113
  async _queryTraceResultsFeatures() {
101
114
  const e = Array.from(this._sourceIdToElements.entries());
@@ -105,8 +118,8 @@ class S extends F {
105
118
  const t = e.map(this._queryFeaturesOnLayer);
106
119
  (await Promise.allSettled(t)).forEach((c, n) => {
107
120
  if (c.status === "rejected") {
108
- const [i] = e[n];
109
- d("error", this, `Failed to query features for source ${i}. Reason: ${c.reason}`);
121
+ const [r] = e[n];
122
+ u("error", this, `Failed to query features for source ${r}. Reason: ${c.reason}`);
110
123
  }
111
124
  });
112
125
  const s = Array.from(this._layerIdToFeatures.values()), l = Array.from(this._subtypeCodeToFeatures.values());
@@ -140,70 +153,70 @@ class S extends F {
140
153
  if (this.state === "loading")
141
154
  return this._renderGettingResults();
142
155
  if (this.selectedFeature) {
143
- const n = this._featuresComponentRef.value, i = n?.selectedFeature ? [n.selectedFeature] : [this.selectedFeature];
144
- return r`<arcgis-features .referenceElement=${this.referenceElement} .features=${i} .view=${this.view} open @arcgisClose=${() => this.selectedFeature = void 0} ${C(this._featuresComponentRef)}></arcgis-features>`;
156
+ const n = this._featuresComponentElement, r = n?.selectedFeature ? [n.selectedFeature] : [this.selectedFeature];
157
+ return i`<arcgis-features .referenceElement=${this.referenceElement} .features=${r} .view=${this.view} open .defaultPopupTemplateEnabled=${this._defaultPopupTemplateEnabled} @arcgisClose=${() => this.selectedFeature = void 0} .autoDestroyDisabled=${this.autoDestroyDisabled} ${h(this._featuresRefChange)}></arcgis-features>`;
145
158
  }
146
159
  const c = a.length > 0 && !s.length && !l;
147
- return this.hideFeatureResults && c ? this._renderFeaturesAreHidden() : r`<calcite-flow>${c ? null : r`<calcite-flow-item .selected=${!this.isElementsSelected}>${this._renderLanding(t)}</calcite-flow-item>`}<calcite-flow-item .heading=${this._messages.headings.features} .description=${this._messages.headings.totalFeatures.replace("{number}", this.traceResultFeatures.length.toString())} .selected=${(c || this.isElementsSelected) && !this.selectedLayer} @calciteFlowItemBack=${() => this.isElementsSelected = !1}>${this._renderLayerList()}</calcite-flow-item><calcite-flow-item .heading=${this.selectedLayer?.title ?? void 0} .description=${this._messages.headings.totalFeatures.replace("{number}", this._featuresFromSelectedLayer.length.toString())} .selected=${!!this.selectedLayer} @calciteFlowItemBack=${() => this.selectedLayer = void 0}>${this._renderFeaturesList()}</calcite-flow-item></calcite-flow>`;
160
+ return this.hideFeatureResults && c ? this._renderFeaturesAreHidden() : i`<calcite-flow>${c ? null : i`<calcite-flow-item .selected=${!this.isElementsSelected}>${this._renderLanding(t)}</calcite-flow-item>`}<calcite-flow-item .heading=${this._messages.headings.features} .description=${this._messages.headings.totalFeatures.replace("{number}", this.traceResultFeatures.length.toString())} .selected=${(c || this.isElementsSelected) && !this.selectedLayer} @calciteFlowItemBack=${() => this.isElementsSelected = !1}>${this._renderLayerList()}</calcite-flow-item><calcite-flow-item .heading=${this.selectedLayer?.title ?? void 0} .description=${this._messages.headings.totalFeatures.replace("{number}", this._featuresFromSelectedLayer.length.toString())} .selected=${!!this.selectedLayer} @calciteFlowItemBack=${() => this.selectedLayer = void 0}>${this._renderFeaturesList()}</calcite-flow-item></calcite-flow>`;
148
161
  }
149
162
  _renderGettingResults() {
150
- return r`<calcite-panel class="white-panel-background"><calcite-loader .label=${this._messages.gettingResults} .text=${this._messages.gettingResults}></calcite-loader></calcite-panel>`;
163
+ return i`<calcite-panel class="white-panel-background"><calcite-loader .label=${this._messages.gettingResults} .text=${this._messages.gettingResults}></calcite-loader></calcite-panel>`;
151
164
  }
152
165
  _renderLanding(e) {
153
166
  const { elements: t, globalFunctionResults: a, aggregatedGeometry: s } = e;
154
- return r`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}${s != null ? this._renderAggregatedGeometry(s) : null}${s != null && !t.length ? this._renderNoSelectableResults() : null}${t.length > 0 ? this.hideFeatureResults ? this._renderFeaturesAreHidden() : this._renderElementsResults() : null}${a.length > 0 ? this._renderFunctionsResults(a) : null}</calcite-panel>`;
167
+ return i`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}${s != null ? this._renderAggregatedGeometry(s) : null}${s != null && !t.length ? this._renderNoSelectableResults() : null}${t.length > 0 ? this.hideFeatureResults ? this._renderFeaturesAreHidden() : this._renderElementsResults() : null}${a.length > 0 ? this._renderFunctionsResults(a) : null}</calcite-panel>`;
155
168
  }
156
169
  _renderAggregatedGeometry(e) {
157
- return r`<div class="aggregated-geometry-container"><arcgis-utility-network-aggregated-geometry .graphicsColor=${this.aggregatedGeometryGraphicsColor} .geometry=${e} .view=${this.view} @arcgisHideGraphicsChange=${this._handleHideGraphicsChange}></arcgis-utility-network-aggregated-geometry><calcite-swatch id=geometry-color-swatch .label=${this._messages.labels.aggregatedGeometryGraphicsColor} .color=${this.aggregatedGeometryGraphicsColor.toCss()}></calcite-swatch><calcite-popover .heading=${this._messages.headings.setColor} .label=${this._messages.headings.setColor} reference-element=geometry-color-swatch closable><calcite-color-picker alpha-channel channels-disabled clearable hex-disabled saved-disabled .value=${this.aggregatedGeometryGraphicsColor} @calciteColorPickerChange=${(t) => {
170
+ return i`<div class="aggregated-geometry-container"><arcgis-utility-network-aggregated-geometry .graphicsColor=${this.aggregatedGeometryGraphicsColor} .geometry=${e} .view=${this.view} @arcgisHideGraphicsChange=${this._handleHideGraphicsChange} .autoDestroyDisabled=${this.autoDestroyDisabled} ${h(this._aggregateGeometryRefChange)}></arcgis-utility-network-aggregated-geometry><calcite-swatch id=geometry-color-swatch .label=${this._messages.labels.aggregatedGeometryGraphicsColor} .color=${this.aggregatedGeometryGraphicsColor.toCss()}></calcite-swatch><calcite-popover .heading=${this._messages.headings.setColor} .label=${this._messages.headings.setColor} reference-element=geometry-color-swatch closable><calcite-color-picker alpha-channel channels-disabled clearable hex-disabled saved-disabled .value=${this.aggregatedGeometryGraphicsColor} @calciteColorPickerChange=${(t) => {
158
171
  const a = t.target.value;
159
172
  this.arcgisAggregatedGeometryGraphicsColorChange.emit(a);
160
173
  }}></calcite-color-picker></calcite-popover></div>`;
161
174
  }
162
175
  _renderFeaturesAreHidden() {
163
- return r`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-selectable-results">${this._messages.resultFeaturesAreHidden}</div></calcite-panel>`;
176
+ return i`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-selectable-results">${this._messages.resultFeaturesAreHidden}</div></calcite-panel>`;
164
177
  }
165
178
  _renderNoSelectableResults() {
166
- return r`<div class="no-selectable-results">${this._messages.noSelectableFeatures}</div>`;
179
+ return i`<div class="no-selectable-results">${this._messages.noSelectableFeatures}</div>`;
167
180
  }
168
181
  _renderElementsResults() {
169
- return r`<calcite-list .label=${this._messages.headings.traceResultsGeneric}><calcite-list-item id=elements-list-item .label=${this._messages.headings.features} @calciteListItemSelect=${() => this.isElementsSelected = !0}><calcite-chip .label=${this._messages.labels.numFeatures} scale=s slot=content-end>${this.traceResultFeatures.length}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item></calcite-list>`;
182
+ return i`<calcite-list .label=${this._messages.headings.traceResultsGeneric}><calcite-list-item id=elements-list-item .label=${this._messages.headings.features} @calciteListItemSelect=${() => this.isElementsSelected = !0}><calcite-chip .label=${this._messages.labels.numFeatures} scale=s slot=content-end>${this.traceResultFeatures.length}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item></calcite-list>`;
170
183
  }
171
184
  _renderFunctionsResults(e) {
172
- return r`<div class="functions-heading">${this._messages.headings.functions}</div><calcite-table .caption=${this._messages.labels.functionResults}>${e.filter((t) => t.networkAttributeName != null && t.result != null).map((t) => r`<calcite-table-row><calcite-table-cell>${t.networkAttributeName}</calcite-table-cell><calcite-table-cell>${t.result}</calcite-table-cell></calcite-table-row>`)}</calcite-table>`;
185
+ return i`<div class="functions-heading">${this._messages.headings.functions}</div><calcite-table .caption=${this._messages.labels.functionResults}>${e.filter((t) => t.networkAttributeName != null && t.result != null).map((t) => i`<calcite-table-row><calcite-table-cell>${t.networkAttributeName}</calcite-table-cell><calcite-table-cell>${t.result}</calcite-table-cell></calcite-table-row>`)}</calcite-table>`;
173
186
  }
174
187
  _renderLayerList() {
175
188
  const e = Array.from(this._layerIdToFeatures.entries()), t = Array.from(this._subtypeCodeToFeatures.entries()), s = e.concat(t).sort(this._compareByLayerTitle).map(this._renderLayerListItem);
176
- return this._elementsWithoutLayer.length > 0 && s.push(this._renderUnknownListItem()), r`<calcite-list .label=${this._messages.labels.traceResultElementsByLayer} .loading=${this.state === "loading"}>${s}</calcite-list>`;
189
+ return this._elementsWithoutLayer.length > 0 && s.push(this._renderUnknownListItem()), i`<calcite-list .label=${this._messages.labels.traceResultElementsByLayer} .loading=${this.state === "loading"}>${s}</calcite-list>`;
177
190
  }
178
191
  _renderUnknownListItem() {
179
- return r`<calcite-list-item .label=${this._messages.unknown}><calcite-chip .label=${this._messages.labels.numElements} slot=content-end scale=s>${this._elementsWithoutLayer.length}</calcite-chip></calcite-list-item>`;
192
+ return i`<calcite-list-item .label=${this._messages.unknown}><calcite-chip .label=${this._messages.labels.numElements} slot=content-end scale=s>${this._elementsWithoutLayer.length}</calcite-chip></calcite-list-item>`;
180
193
  }
181
194
  _renderFeaturesList() {
182
- return r`<calcite-list .label=${this._messages.headings.traceResultsGeneric}>${this._featuresFromSelectedLayer.map(this._renderFeatureListItem)}</calcite-list>`;
195
+ return i`<calcite-list .label=${this._messages.headings.traceResultsGeneric}>${this._featuresFromSelectedLayer.map(this._renderFeatureListItem)}</calcite-list>`;
183
196
  }
184
197
  _renderTraceResultsHeading() {
185
- return r`<div class="results-heading"><div class="results-heading-title">${this._messages.headings.traceResultsGeneric}</div>${this.traceConfigTitle ? r`<div class="results-heading-subtitle">${this.traceConfigTitle}</div>` : null}</div>`;
198
+ return i`<div class="results-heading"><div class="results-heading-title">${this._messages.headings.traceResultsGeneric}</div>${this.traceConfigTitle ? i`<div class="results-heading-subtitle">${this.traceConfigTitle}</div>` : null}</div>`;
186
199
  }
187
200
  _renderErrorLanding(e) {
188
201
  let t = e.message;
189
202
  switch (e.details?.raw?.extendedCode) {
190
- case y.dirtyAreasDiscovered:
203
+ case p.dirtyAreasDiscovered:
191
204
  t = this._messages.traceErrors.dirtyAreasDiscovered;
192
205
  break;
193
- case y.noValidControllers:
206
+ case p.noValidControllers:
194
207
  t = this._messages.traceErrors.noValidControllers;
195
208
  break;
196
209
  }
197
- return r`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${this._messages.traceFailedHeading}</div><div class="no-results-description">${this._messages.traceFailedDescription}</div><div class="no-results-description">${t}</div></div></calcite-panel>`;
210
+ return i`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${this._messages.traceFailedHeading}</div><div class="no-results-description">${this._messages.traceFailedDescription}</div><div class="no-results-description">${t}</div></div></calcite-panel>`;
198
211
  }
199
212
  _renderNoResultsLanding() {
200
- return r`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${this._messages.noResultsHeading}</div><div class="no-results-description">${this._messages.noResultsDescription}</div></div></calcite-panel>`;
213
+ return i`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${this._messages.noResultsHeading}</div><div class="no-results-description">${this._messages.noResultsDescription}</div></div></calcite-panel>`;
201
214
  }
202
215
  _renderNoTraceLanding() {
203
- return r`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-results-landing"><calcite-icon icon=utility-network-trace scale=l></calcite-icon><div class="no-results-heading">${this._messages.noTraceConfigHeading}</div><div class="no-results-description">${this._messages.noTraceConfigDescription}</div></div></calcite-panel>`;
216
+ return i`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-results-landing"><calcite-icon icon=utility-network-trace scale=l></calcite-icon><div class="no-results-heading">${this._messages.noTraceConfigHeading}</div><div class="no-results-description">${this._messages.noTraceConfigDescription}</div></div></calcite-panel>`;
204
217
  }
205
218
  }
206
- f("arcgis-utility-network-trace-results", S);
219
+ _("arcgis-utility-network-trace-results", R);
207
220
  export {
208
- S as ArcgisUtilityNetworkTraceResults
221
+ R as ArcgisUtilityNetworkTraceResults
209
222
  };
@@ -2,16 +2,15 @@
2
2
  import type { ValuePickerEvents, ValuePickerComponent } from "@arcgis/core/widgets/ValuePicker.js";
3
3
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
4
4
  import type { ArcgisReferenceElement, IconName } from "../types.js";
5
- import type { AnimateEvent } from "@arcgis/core/widgets/ValuePicker/types";
5
+ import type { AnimateEvent, Layout } from "@arcgis/core/widgets/ValuePicker/types.js";
6
6
  import type { Icon } from "@esri/calcite-components/components/calcite-icon";
7
- import type { Layout } from "@arcgis/core/widgets/ValuePicker/types.js";
8
7
 
9
8
  /**
10
9
  * > [!WARNING]
11
10
  * >
12
11
  * > This is a **legacy component**. It relies on an underlying widget as part of our migration to native web components.
13
12
  * >
14
- * > A fully native replacement for this component is in development. Once it reaches feature parity, the legacy component will be deprecated and no longer maintained. At that point, new development should use the native component.
13
+ * > A fully native replacement for this component is in development. Once it reaches feature parity, the legacy component will be deprecated and no longer maintained. At that point, development should use the native component.
15
14
  *
16
15
  * Value Picker is a component that allows users to step or play through a list of values. Value Picker component can be configured
17
16
  * with an optional [collection](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-value-picker-legacy/#from-collection),
@@ -1,11 +1,10 @@
1
1
  /// <reference path="../../index.d.ts" />
2
- import type VersioningState from "@arcgis/core/versionManagement/VersioningState";
2
+ import type VersioningState from "@arcgis/core/versionManagement/VersioningState.js";
3
3
  import type Collection from "@arcgis/core/core/Collection.js";
4
- import type VersioningState2 from "@arcgis/core/versionManagement/VersioningState.js";
5
4
  import type MapView from "@arcgis/core/views/MapView.js";
6
5
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
7
6
  import type { ArcgisReferenceElement } from "../types.js";
8
- import type { VersionIdentifier } from "@arcgis/core/versionManagement/support/jsonTypes";
7
+ import type { VersionIdentifier } from "@arcgis/core/versionManagement/support/jsonTypes.js";
9
8
  import type { T9nMeta } from "@arcgis/lumina/controllers";
10
9
  import type { VersionManagerState } from "@arcgis/core/versionManagement/VersionManager.js";
11
10
 
@@ -214,7 +213,7 @@ export abstract class ArcgisVersionManagement extends LitElement {
214
213
  *
215
214
  * @since 5.0
216
215
  */
217
- accessor versioningStates: Collection<VersioningState2>;
216
+ accessor versioningStates: Collection<VersioningState>;
218
217
  /**
219
218
  * This property defines the target [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/).
220
219
  *
@@ -1,7 +1,7 @@
1
1
  /// <reference path="../../index.d.ts" />
2
+ import type VolumeMeasurementAnalysis from "@arcgis/core/analysis/VolumeMeasurementAnalysis.js";
2
3
  import type SceneView from "@arcgis/core/views/SceneView.js";
3
- import type VolumeMeasurementAnalysis2 from "@arcgis/core/analysis/VolumeMeasurementAnalysis.js";
4
- import type { VolumeMeasureType } from "@arcgis/core/analysis/VolumeMeasurement/types";
4
+ import type { VolumeMeasureType } from "@arcgis/core/analysis/VolumeMeasurement/types.js";
5
5
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
6
6
  import type { ArcgisReferenceElement, HeadingLevel } from "../types.js";
7
7
  import type { VolumeMeasurementState } from "./types.js";
@@ -143,7 +143,7 @@ export abstract class ArcgisVolumeMeasurement extends LitElement {
143
143
  *
144
144
  * @since 5.0
145
145
  */
146
- accessor analysis: VolumeMeasurementAnalysis2;
146
+ accessor analysis: VolumeMeasurementAnalysis;
147
147
  /**
148
148
  * Unit system (imperial, metric) or specific unit used for displaying the area. Possible values are listed in
149
149
  * [areaDisplayUnitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-volume-measurement/#areaDisplayUnitOptions).
@@ -3,9 +3,9 @@ import type Ground from "@arcgis/core/Ground.js";
3
3
  import type Layer from "@arcgis/core/layers/Layer.js";
4
4
  import type WebMap from "@arcgis/core/WebMap.js";
5
5
  import type WebScene from "@arcgis/core/WebScene.js";
6
- import type WebLinkChart from "@arcgis/core/WebLinkChart";
7
- import type SceneView from "@arcgis/core/views/SceneView";
8
- import type MapView from "@arcgis/core/views/MapView";
6
+ import type WebLinkChart from "@arcgis/core/WebLinkChart.js";
7
+ import type SceneView from "@arcgis/core/views/SceneView.js";
8
+ import type MapView from "@arcgis/core/views/MapView.js";
9
9
  import type { ArcgisLinkChart } from "./arcgis-link-chart/customElement.js";
10
10
  import type { ArcgisMap } from "./arcgis-map/customElement.js";
11
11
  import type { ArcgisScene } from "./arcgis-scene/customElement.js";