@arcgis/map-components 5.1.0-next.103 → 5.1.0-next.104

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 (118) hide show
  1. package/dist/cdn/37PU5RQF.js +2 -0
  2. package/dist/cdn/{FBVHVWJP.js → 4BUXOQ5X.js} +1 -1
  3. package/dist/cdn/7YEXZHW3.js +2 -0
  4. package/dist/cdn/CXPIQET3.js +2 -0
  5. package/dist/cdn/GFXNIWNG.js +2 -0
  6. package/dist/cdn/{M2ECO3EZ.js → LTUURA6B.js} +1 -1
  7. package/dist/cdn/MXXKVA3L.js +2 -0
  8. package/dist/cdn/{6HRKATQQ.js → S36YQI7W.js} +1 -1
  9. package/dist/cdn/assets/slider-time/t9n/messages.ar.json +1 -1
  10. package/dist/cdn/assets/slider-time/t9n/messages.bg.json +1 -1
  11. package/dist/cdn/assets/slider-time/t9n/messages.bs.json +1 -1
  12. package/dist/cdn/assets/slider-time/t9n/messages.ca.json +1 -1
  13. package/dist/cdn/assets/slider-time/t9n/messages.cs.json +1 -1
  14. package/dist/cdn/assets/slider-time/t9n/messages.da.json +1 -1
  15. package/dist/cdn/assets/slider-time/t9n/messages.de.json +1 -1
  16. package/dist/cdn/assets/slider-time/t9n/messages.el.json +1 -1
  17. package/dist/cdn/assets/slider-time/t9n/messages.es.json +1 -1
  18. package/dist/cdn/assets/slider-time/t9n/messages.et.json +1 -1
  19. package/dist/cdn/assets/slider-time/t9n/messages.fi.json +1 -1
  20. package/dist/cdn/assets/slider-time/t9n/messages.fr.json +1 -1
  21. package/dist/cdn/assets/slider-time/t9n/messages.he.json +1 -1
  22. package/dist/cdn/assets/slider-time/t9n/messages.hr.json +1 -1
  23. package/dist/cdn/assets/slider-time/t9n/messages.hu.json +1 -1
  24. package/dist/cdn/assets/slider-time/t9n/messages.id.json +1 -1
  25. package/dist/cdn/assets/slider-time/t9n/messages.it.json +1 -1
  26. package/dist/cdn/assets/slider-time/t9n/messages.ja.json +1 -1
  27. package/dist/cdn/assets/slider-time/t9n/messages.ko.json +1 -1
  28. package/dist/cdn/assets/slider-time/t9n/messages.lt.json +1 -1
  29. package/dist/cdn/assets/slider-time/t9n/messages.lv.json +1 -1
  30. package/dist/cdn/assets/slider-time/t9n/messages.nl.json +1 -1
  31. package/dist/cdn/assets/slider-time/t9n/messages.no.json +1 -1
  32. package/dist/cdn/assets/slider-time/t9n/messages.pl.json +1 -1
  33. package/dist/cdn/assets/slider-time/t9n/messages.pt-BR.json +1 -1
  34. package/dist/cdn/assets/slider-time/t9n/messages.pt-PT.json +1 -1
  35. package/dist/cdn/assets/slider-time/t9n/messages.ro.json +1 -1
  36. package/dist/cdn/assets/slider-time/t9n/messages.ru.json +1 -1
  37. package/dist/cdn/assets/slider-time/t9n/messages.sk.json +1 -1
  38. package/dist/cdn/assets/slider-time/t9n/messages.sl.json +1 -1
  39. package/dist/cdn/assets/slider-time/t9n/messages.sr.json +1 -1
  40. package/dist/cdn/assets/slider-time/t9n/messages.sv.json +1 -1
  41. package/dist/cdn/assets/slider-time/t9n/messages.th.json +1 -1
  42. package/dist/cdn/assets/slider-time/t9n/messages.tr.json +1 -1
  43. package/dist/cdn/assets/slider-time/t9n/messages.uk.json +1 -1
  44. package/dist/cdn/assets/slider-time/t9n/messages.vi.json +1 -1
  45. package/dist/cdn/assets/slider-time/t9n/messages.zh-CN.json +1 -1
  46. package/dist/cdn/assets/slider-time/t9n/messages.zh-HK.json +1 -1
  47. package/dist/cdn/assets/slider-time/t9n/messages.zh-TW.json +1 -1
  48. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.en.json +1 -1
  49. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.en.json +1 -1
  50. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ar.json +1 -1
  51. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.bg.json +1 -1
  52. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.bs.json +1 -1
  53. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ca.json +1 -1
  54. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.cs.json +1 -1
  55. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.da.json +1 -1
  56. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.de.json +1 -1
  57. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.el.json +1 -1
  58. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.es.json +1 -1
  59. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.et.json +1 -1
  60. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.fi.json +1 -1
  61. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.fr.json +1 -1
  62. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.he.json +1 -1
  63. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.hr.json +1 -1
  64. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.hu.json +1 -1
  65. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.id.json +1 -1
  66. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.it.json +1 -1
  67. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ja.json +1 -1
  68. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ko.json +1 -1
  69. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.lt.json +1 -1
  70. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.lv.json +1 -1
  71. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.nl.json +1 -1
  72. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.no.json +1 -1
  73. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.pl.json +1 -1
  74. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.pt-BR.json +1 -1
  75. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.pt-PT.json +1 -1
  76. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ro.json +1 -1
  77. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ru.json +1 -1
  78. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sk.json +1 -1
  79. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sl.json +1 -1
  80. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sr.json +1 -1
  81. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sv.json +1 -1
  82. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.th.json +1 -1
  83. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.tr.json +1 -1
  84. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.uk.json +1 -1
  85. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.vi.json +1 -1
  86. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.zh-CN.json +1 -1
  87. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.zh-HK.json +1 -1
  88. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.zh-TW.json +1 -1
  89. package/dist/cdn/index.js +1 -1
  90. package/dist/chunks/useArcgisViewReadyError.js +115 -56
  91. package/dist/components/arcgis-directions/customElement.js +4 -4
  92. package/dist/components/arcgis-link-chart/customElement.d.ts +1 -0
  93. package/dist/components/arcgis-link-chart/customElement.js +13 -10
  94. package/dist/components/arcgis-map/customElement.d.ts +1 -0
  95. package/dist/components/arcgis-map/customElement.js +13 -10
  96. package/dist/components/arcgis-scene/customElement.d.ts +1 -0
  97. package/dist/components/arcgis-scene/customElement.js +23 -20
  98. package/dist/components/arcgis-search/customElement.js +6 -6
  99. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +21 -21
  100. package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +4 -4
  101. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +16 -16
  102. package/dist/components/arcgis-utility-network-validate-network-topology/customElement.d.ts +161 -35
  103. package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +5 -1
  104. package/dist/docs/api.json +1 -1
  105. package/dist/docs/docs.json +1 -1
  106. package/dist/docs/vscode.html-custom-data.json +1 -1
  107. package/dist/docs/web-types.json +1 -1
  108. package/dist/loader.js +3 -3
  109. package/dist/types/lumina.d.ts +1 -1
  110. package/dist/types/preact.d.ts +1 -1
  111. package/dist/types/react.d.ts +1 -1
  112. package/dist/types/stencil.d.ts +1 -1
  113. package/package.json +4 -4
  114. package/dist/cdn/4T6TILWS.js +0 -2
  115. package/dist/cdn/FM2ZJK25.js +0 -2
  116. package/dist/cdn/HIYCE253.js +0 -2
  117. package/dist/cdn/HW3D7A2P.js +0 -2
  118. package/dist/cdn/X6BCGFB3.js +0 -2
@@ -1,23 +1,23 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  import { c as l } from "../../chunks/runtime.js";
3
3
  import { html as a } from "lit";
4
- import p from "@arcgis/core/Camera.js";
4
+ import m from "@arcgis/core/Camera.js";
5
5
  import { watch as s } from "@arcgis/core/core/reactiveUtils.js";
6
6
  import v from "@arcgis/core/geometry/Point.js";
7
7
  import u from "@arcgis/core/views/SceneView.js";
8
8
  import g from "@arcgis/core/WebScene.js";
9
- import { LitElement as d, createEvent as r, safeClassMap as n } from "@arcgis/lumina";
9
+ import { LitElement as d, createEvent as r, safeClassMap as o } from "@arcgis/lumina";
10
10
  import { reEmitEvent as t, reCreateAccessor as y, makeAccessorController as w } from "@arcgis/lumina/controllers/accessor";
11
- import { createRef as o, ref as h } from "lit/directives/ref.js";
12
- import { U as f, u as b, a as V } from "../../chunks/useArcgisViewReadyError.js";
13
- import { s as C } from "../../chunks/esri-main.js";
11
+ import { createRef as n, ref as h } from "lit/directives/ref.js";
12
+ import { U as f, P as b, u as V, a as C } from "../../chunks/useArcgisViewReadyError.js";
13
+ import { s as _ } from "../../chunks/esri-main.js";
14
14
  import { s as E } from "../../chunks/slots.js";
15
15
  import { C as c } from "../../chunks/resources.js";
16
- import { b as _, c as A, p as P, i as R } from "../../chunks/component-utils.js";
17
- const D = w(g, {}), I = w(u, {});
18
- class M extends d {
16
+ import { b as P, c as A, p as R, i as D } from "../../chunks/component-utils.js";
17
+ const I = w(g, {}), M = w(u, {});
18
+ class k extends d {
19
19
  constructor() {
20
- super(), this._containerRef = o(), this._mapRef = o(), this._uiController = new f(this), this._cameraProperties = {}, this.arcgisLoadError = b(this), this.arcgisViewReadyError = V(this), this._map = D(this), this.view = I(this), this.allLayerViews = this.view.allLayerViews, this.alphaCompositingEnabled = this.view.alphaCompositingEnabled, this.analyses = this.view.analyses, this.animationsDisabled = this.view.animationsEnabled, this.attributionMode = this.view.attributionMode, this.autoDestroyDisabled = !1, this.basemap = this._map.basemap, this.basemapView = this.view.basemapView, this.canZoomIn = this.view.canZoomIn, this.canZoomOut = this.view.canZoomOut, this.clippingArea = this.view.clippingArea, this.constraints = this.view.constraints, this.displayFilterDisabled = this.view.displayFilterEnabled, this.environment = this.view.environment, this.fatalError = this.view.fatalError, this.floors = this.view.floors, this.graphics = this.view.graphics, this.ground = this._map.ground, this.groundView = this.view.groundView, this.highlights = this.view.highlights, this.layerViews = this.view.layerViews, this.magnifier = this.view.magnifier, this.map = this.view.map, this.navigation = this.view.navigation, this.padding = this.view.padding, this.popup = this.view.popup, this.popupDisabled = this.view.popupEnabled, this.popupComponentEnabled = !1, this.qualityProfile = this.view.qualityProfile, this.ready = this.view.ready, this.selectionManager = this.view.selectionManager, this.slotGroupRefs = this._uiController.slotGroupRefs, this.spatialReference = this.view.spatialReference, this.suspended = this.view.suspended, this.theme = this.view.theme, this.timeExtent = this.view.timeExtent, this.updating = this.view.updating, this.viewingMode = this.view.viewingMode, this.visibleArea = this.view.visibleArea, this.arcgisViewAnalysisViewCreate = t(() => this.view, "analysis-view-create"), this.arcgisViewAnalysisViewCreateError = t(() => this.view, "analysis-view-create-error"), this.arcgisViewAnalysisViewDestroy = t(() => this.view, "analysis-view-destroy"), this.arcgisViewChange = r(), this.arcgisViewClick = t(() => this.view, "click"), this.arcgisViewDoubleClick = t(() => this.view, "double-click"), this.arcgisViewDoubleTapDrag = t(() => this.view, "double-tap-drag"), this.arcgisViewDrag = t(() => this.view, "drag"), this.arcgisViewHold = t(() => this.view, "hold"), this.arcgisViewImmediateClick = t(() => this.view, "immediate-click"), this.arcgisViewImmediateDoubleClick = t(() => this.view, "immediate-double-click"), this.arcgisViewKeyDown = t(() => this.view, "key-down"), this.arcgisViewKeyUp = t(() => this.view, "key-up"), this.arcgisViewLayerviewCreate = t(() => this.view, "layerview-create"), this.arcgisViewLayerviewCreateError = t(() => this.view, "layerview-create-error"), this.arcgisViewLayerviewDestroy = t(() => this.view, "layerview-destroy"), this.arcgisViewMouseWheel = t(() => this.view, "mouse-wheel"), this.arcgisViewPointerDown = t(() => this.view, "pointer-down"), this.arcgisViewPointerEnter = t(() => this.view, "pointer-enter"), this.arcgisViewPointerLeave = t(() => this.view, "pointer-leave"), this.arcgisViewPointerMove = t(() => this.view, "pointer-move"), this.arcgisViewPointerUp = t(() => this.view, "pointer-up"), this.arcgisViewReadyChange = r(), this.arcgisViewVerticalTwoFingerDrag = t(() => this.view, "vertical-two-finger-drag"), this.view.ui = {
20
+ super(), this._containerRef = n(), this._mapRef = n(), this._uiController = new f(this), this._popupFocusController = new b(this), this._cameraProperties = {}, this.arcgisLoadError = V(this), this.arcgisViewReadyError = C(this), this._map = I(this), this.view = M(this), this.allLayerViews = this.view.allLayerViews, this.alphaCompositingEnabled = this.view.alphaCompositingEnabled, this.analyses = this.view.analyses, this.animationsDisabled = this.view.animationsEnabled, this.attributionMode = this.view.attributionMode, this.autoDestroyDisabled = !1, this.basemap = this._map.basemap, this.basemapView = this.view.basemapView, this.canZoomIn = this.view.canZoomIn, this.canZoomOut = this.view.canZoomOut, this.clippingArea = this.view.clippingArea, this.constraints = this.view.constraints, this.displayFilterDisabled = this.view.displayFilterEnabled, this.environment = this.view.environment, this.fatalError = this.view.fatalError, this.floors = this.view.floors, this.graphics = this.view.graphics, this.ground = this._map.ground, this.groundView = this.view.groundView, this.highlights = this.view.highlights, this.layerViews = this.view.layerViews, this.magnifier = this.view.magnifier, this.map = this.view.map, this.navigation = this.view.navigation, this.padding = this.view.padding, this.popup = this.view.popup, this.popupDisabled = this.view.popupEnabled, this.popupComponentEnabled = !1, this.qualityProfile = this.view.qualityProfile, this.ready = this.view.ready, this.selectionManager = this.view.selectionManager, this.slotGroupRefs = this._uiController.slotGroupRefs, this.spatialReference = this.view.spatialReference, this.suspended = this.view.suspended, this.theme = this.view.theme, this.timeExtent = this.view.timeExtent, this.updating = this.view.updating, this.viewingMode = this.view.viewingMode, this.visibleArea = this.view.visibleArea, this.arcgisViewAnalysisViewCreate = t(() => this.view, "analysis-view-create"), this.arcgisViewAnalysisViewCreateError = t(() => this.view, "analysis-view-create-error"), this.arcgisViewAnalysisViewDestroy = t(() => this.view, "analysis-view-destroy"), this.arcgisViewChange = r(), this.arcgisViewClick = t(() => this.view, "click"), this.arcgisViewDoubleClick = t(() => this.view, "double-click"), this.arcgisViewDoubleTapDrag = t(() => this.view, "double-tap-drag"), this.arcgisViewDrag = t(() => this.view, "drag"), this.arcgisViewHold = t(() => this.view, "hold"), this.arcgisViewImmediateClick = t(() => this.view, "immediate-click"), this.arcgisViewImmediateDoubleClick = t(() => this.view, "immediate-double-click"), this.arcgisViewKeyDown = t(() => this.view, "key-down"), this.arcgisViewKeyUp = t(() => this.view, "key-up"), this.arcgisViewLayerviewCreate = t(() => this.view, "layerview-create"), this.arcgisViewLayerviewCreateError = t(() => this.view, "layerview-create-error"), this.arcgisViewLayerviewDestroy = t(() => this.view, "layerview-destroy"), this.arcgisViewMouseWheel = t(() => this.view, "mouse-wheel"), this.arcgisViewPointerDown = t(() => this.view, "pointer-down"), this.arcgisViewPointerEnter = t(() => this.view, "pointer-enter"), this.arcgisViewPointerLeave = t(() => this.view, "pointer-leave"), this.arcgisViewPointerMove = t(() => this.view, "pointer-move"), this.arcgisViewPointerUp = t(() => this.view, "pointer-up"), this.arcgisViewReadyChange = r(), this.arcgisViewVerticalTwoFingerDrag = t(() => this.view, "vertical-two-finger-drag"), this.view.ui = {
21
21
  components: []
22
22
  };
23
23
  }
@@ -25,7 +25,7 @@ class M extends d {
25
25
  this.properties = { _map: 16, aria: 0, view: 32, allLayerViews: 32, alphaCompositingEnabled: 5, analyses: 0, animationsDisabled: 5, attributionItems: 32, attributionMode: 1, autoDestroyDisabled: 5, basemap: 1, basemapView: 0, camera: 0, cameraFov: 9, cameraHeading: 9, cameraPosition: 1, cameraTilt: 9, canZoomIn: 36, canZoomOut: 36, center: 1, clippingArea: 0, constraints: 0, displayFilterDisabled: 5, environment: 0, extent: 0, fatalError: 0, floors: 0, focusAreas: 0, gamepad: 32, graphics: 0, ground: 1, groundView: 32, hideAttribution: 5, highlights: 0, interacting: 32, itemId: 3, layerViews: 32, magnifier: 32, map: 0, navigating: 32, navigation: 0, padding: 0, performanceInfo: 32, popup: 0, popupElement: 32, popupDisabled: 5, popupComponentEnabled: 5, qualityProfile: 1, ready: 36, resolution: 32, selectionManager: 32, scale: 9, slotGroupRefs: 32, spatialReference: 0, stationary: 32, suspended: 39, theme: 0, timeExtent: 0, updating: 36, viewingMode: 1, viewpoint: 0, visibleArea: 32, zoom: 9, loadErrorSources: 0 };
26
26
  }
27
27
  static {
28
- this.styles = [C, E];
28
+ this.styles = [_, E];
29
29
  }
30
30
  get aria() {
31
31
  return this.view?.aria ?? null;
@@ -40,7 +40,7 @@ class M extends d {
40
40
  return this.view.camera;
41
41
  }
42
42
  set camera(i) {
43
- _(this.camera, i) || (this.view.camera = i);
43
+ P(this.camera, i) || (this.view.camera = i);
44
44
  }
45
45
  get cameraFov() {
46
46
  const { view: i } = this;
@@ -69,8 +69,8 @@ class M extends d {
69
69
  }
70
70
  set cameraPosition(i) {
71
71
  const e = A(this.view.camera?.position, i);
72
- e && this._mutateCamera((m) => {
73
- m.position = e;
72
+ e && this._mutateCamera((p) => {
73
+ p.position = e;
74
74
  });
75
75
  }
76
76
  get cameraTilt() {
@@ -86,7 +86,7 @@ class M extends d {
86
86
  return this.view.center;
87
87
  }
88
88
  set center(i) {
89
- const e = P(i, this.view);
89
+ const e = R(i, this.view);
90
90
  e && (this.view.center = e);
91
91
  }
92
92
  get extent() {
@@ -147,7 +147,7 @@ class M extends d {
147
147
  return this.view.viewpoint;
148
148
  }
149
149
  set viewpoint(i) {
150
- R(this.viewpoint, i) && (this.view.viewpoint = i);
150
+ D(this.viewpoint, i) && (this.view.viewpoint = i);
151
151
  }
152
152
  get zoom() {
153
153
  return this.view.zoom;
@@ -158,6 +158,9 @@ class M extends d {
158
158
  async closePopup() {
159
159
  this._uiController.closePopup();
160
160
  }
161
+ async focusPopup() {
162
+ this._popupFocusController.focusPopup();
163
+ }
161
164
  async destroy() {
162
165
  await this.manager.destroy();
163
166
  }
@@ -217,17 +220,17 @@ class M extends d {
217
220
  i(this._cameraProperties);
218
221
  return;
219
222
  }
220
- const e = this.view.camera?.clone() ?? new p();
223
+ const e = this.view.camera?.clone() ?? new m();
221
224
  i(e), this.camera = e;
222
225
  }
223
226
  renderMain() {
224
- return a`<div class=${n(c.base)} ${h(this._mapRef)}></div>`;
227
+ return a`<div class=${o(c.base)} ${h(this._mapRef)}></div>`;
225
228
  }
226
229
  render() {
227
- return a`${this.renderMain()}<section class=${n(c.containerUI)} ${h(this._containerRef)}>${this._uiController.render()}</section>`;
230
+ return a`${this.renderMain()}<section class=${o(c.containerUI)} ${h(this._containerRef)}>${this._uiController.render()}</section>`;
228
231
  }
229
232
  }
230
- l("arcgis-scene", M);
233
+ l("arcgis-scene", k);
231
234
  export {
232
- M as ArcgisScene
235
+ k as ArcgisScene
233
236
  };
@@ -10,10 +10,10 @@ import { classes as y } from "@arcgis/toolkit/dom";
10
10
  import { g as C } from "../../chunks/globalCss.js";
11
11
  import { isAbortError as $ } from "@arcgis/core/core/promiseUtils.js";
12
12
  import { m as R } from "../../chunks/useViewModel.js";
13
- import { s as k } from "../../chunks/sr.js";
13
+ import { s as E } from "../../chunks/sr.js";
14
14
  import { substitute as h } from "@arcgis/core/intl.js";
15
- import { usePropertyChange as D } from "@arcgis/lumina/controllers";
16
- import { u as E } from "../../chunks/useT9n.js";
15
+ import { usePropertyChange as k } from "@arcgis/lumina/controllers";
16
+ import { u as D } from "../../chunks/useT9n.js";
17
17
  import { watch as d, on as T } from "@arcgis/core/core/reactiveUtils.js";
18
18
  const A = _`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-hidden{display:none!important}:host{width:240px}.root{--arcgis-internal-search-width: 240px;display:flex;flex-flow:row nowrap;align-items:center;justify-content:center;width:100%}.dropdown{--calcite-color-border-1: var(--calcite-color-border-input);--calcite-dropdown-width: var(--arcgis-internal-search-width);width:31px}.dropdown calcite-button{--calcite-offset-invert-focus: 1}.autocomplete{flex:1}.container{display:flex;position:relative;flex:1 0 100%;flex-flow:row nowrap;align-items:stretch}.form{display:flex;flex:1 0;flex-flow:row nowrap;align-items:stretch;margin:0;padding:0}.submit-button{position:absolute;margin:-1px;border-width:0;padding:0;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0,0,0,0)}`, L = R(w);
19
19
  function g(a) {
@@ -24,13 +24,13 @@ class z extends f {
24
24
  super(...arguments), this.viewModel = L(this), this._currentLocationValue = "search-use-current-location", this._autocompleteEl = void 0, this._searchResultRendererEl = void 0, this._searchResultRendererContentEl = void 0, this._suggestController = void 0, this._searchController = void 0, this._lastSearchTerm = "", this._handleSelectResult = (e) => {
25
25
  const { name: t } = e.detail.result;
26
26
  this._selectedMessage = h(this.messages.resultSelected, { resultName: t });
27
- }, this.messages = E({ blocking: !0 }), this._locateFailed = !1, this._showNoResults = !1, this.view = this.viewModel.view, this.goToOverride = this.viewModel.goToOverride, this.icon = "search", this.activeMenu = "none", this.activeSourceIndex = this.viewModel.activeSourceIndex, this.allPlaceholder = this.viewModel.allPlaceholder, this.allSources = this.viewModel.allSources, this.autoNavigateDisabled = this.viewModel.autoNavigate, this.autoSelectDisabled = this.viewModel.autoSelect, this.defaultSources = this.viewModel.defaultSources, this.disabled = !1, this.includeDefaultSourcesDisabled = this.viewModel.includeDefaultSources, this.locationDisabled = this.viewModel.locationEnabled, this.maxResults = this.viewModel.maxResults, this.maxSuggestions = this.viewModel.maxSuggestions, this.minSuggestCharacters = this.viewModel.minSuggestCharacters, this.popupDisabled = this.viewModel.popupEnabled, this.popupTemplate = this.viewModel.popupTemplate, this.portal = this.viewModel.portal, this.resultGraphic = this.viewModel.resultGraphic, this.resultGraphicDisabled = this.viewModel.resultGraphicEnabled, this.results = this.viewModel.results, this.searchAllDisabled = this.viewModel.searchAllEnabled, this.searchTerm = this.viewModel.searchTerm, this.selectedResult = this.viewModel.selectedResult, this.sources = this.viewModel.sources, this.suggestions = this.viewModel.suggestions, this.suggestionsDisabled = this.viewModel.suggestionsEnabled, this.topLayerDisabled = !1, this.autoDestroyDisabled = !1, this.state = this.viewModel.state, this.arcgisPropertyChange = D()("state"), this.arcgisReady = b(), this.arcgisSearchClear = l(() => this.viewModel, "search-clear"), this.arcgisSearchComplete = l(() => this.viewModel, "search-complete"), this.arcgisSearchStart = l(() => this.viewModel, "search-start"), this.arcgisSelectResult = l(() => this.viewModel, "select-result"), this.arcgisSuggestComplete = l(() => this.viewModel, "suggest-complete"), this.arcgisSuggestStart = l(() => this.viewModel, "suggest-start");
27
+ }, this.messages = D({ blocking: !0 }), this._locateFailed = !1, this._showNoResults = !1, this.view = this.viewModel.view, this.goToOverride = this.viewModel.goToOverride, this.icon = "search", this.activeMenu = "none", this.activeSourceIndex = this.viewModel.activeSourceIndex, this.allPlaceholder = this.viewModel.allPlaceholder, this.allSources = this.viewModel.allSources, this.autoNavigateDisabled = this.viewModel.autoNavigate, this.autoSelectDisabled = this.viewModel.autoSelect, this.defaultSources = this.viewModel.defaultSources, this.disabled = !1, this.includeDefaultSourcesDisabled = this.viewModel.includeDefaultSources, this.locationDisabled = this.viewModel.locationEnabled, this.maxResults = this.viewModel.maxResults, this.maxSuggestions = this.viewModel.maxSuggestions, this.minSuggestCharacters = this.viewModel.minSuggestCharacters, this.popupDisabled = this.viewModel.popupEnabled, this.popupTemplate = this.viewModel.popupTemplate, this.portal = this.viewModel.portal, this.resultGraphic = this.viewModel.resultGraphic, this.resultGraphicDisabled = this.viewModel.resultGraphicEnabled, this.results = this.viewModel.results, this.searchAllDisabled = this.viewModel.searchAllEnabled, this.searchTerm = this.viewModel.searchTerm, this.selectedResult = this.viewModel.selectedResult, this.sources = this.viewModel.sources, this.suggestions = this.viewModel.suggestions, this.suggestionsDisabled = this.viewModel.suggestionsEnabled, this.topLayerDisabled = !1, this.autoDestroyDisabled = !1, this.state = this.viewModel.state, this.arcgisPropertyChange = k()("state"), this.arcgisReady = b(), this.arcgisSearchClear = l(() => this.viewModel, "search-clear"), this.arcgisSearchComplete = l(() => this.viewModel, "search-complete"), this.arcgisSearchStart = l(() => this.viewModel, "search-start"), this.arcgisSelectResult = l(() => this.viewModel, "select-result"), this.arcgisSuggestComplete = l(() => this.viewModel, "suggest-complete"), this.arcgisSuggestStart = l(() => this.viewModel, "suggest-start");
28
28
  }
29
29
  static {
30
30
  this.properties = { _selectedMessage: 16, messages: 16, _locateFailed: 16, _showNoResults: 16, _isDisabled: 16, _showCurrentLocation: 16, _effectiveActiveMenu: 16, view: 0, referenceElement: 1, goToOverride: 0, icon: 1, activeMenu: 1, activeSource: 32, activeSourceIndex: 9, allPlaceholder: 1, allSources: 0, autoNavigateDisabled: 5, autoSelectDisabled: 5, defaultSources: 0, disabled: 5, includeDefaultSourcesDisabled: 5, locationDisabled: 5, maxResults: 9, maxSuggestions: 9, minSuggestCharacters: 9, popupDisabled: 5, popupTemplate: 0, portal: 0, resultGraphic: 0, resultGraphicDisabled: 5, results: 0, searchAllDisabled: 5, searchTerm: 1, selectedResult: 0, sources: 0, suggestions: 32, suggestionsDisabled: 5, topLayerDisabled: 5, autoDestroyDisabled: 5, messageOverrides: 0, label: 1, state: 32 };
31
31
  }
32
32
  static {
33
- this.styles = [A, k];
33
+ this.styles = [A, E];
34
34
  }
35
35
  get _isDisabled() {
36
36
  const { state: e } = this.viewModel;
@@ -106,7 +106,7 @@ class z extends f {
106
106
  _openPopup() {
107
107
  if (g(this.referenceElement)) {
108
108
  const { resultGraphic: e, resultLocation: t } = this.viewModel, i = { features: e ? [e] : [], location: t };
109
- this.referenceElement?.openPopup(i);
109
+ this.referenceElement?.openPopup(i), this.referenceElement?.focusPopup();
110
110
  } else if (this.view) {
111
111
  const { resultGraphic: e, resultLocation: t } = this.viewModel;
112
112
  this.view.openPopup({
@@ -1,19 +1,19 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  import { c as m } from "../../chunks/runtime.js";
3
- import { css as y, html as s } from "lit";
3
+ import { css as y, html as i } from "lit";
4
4
  import { ref as h } from "lit/directives/ref.js";
5
5
  import { keyed as g } from "lit/directives/keyed.js";
6
6
  import u from "@arcgis/core/Color.js";
7
7
  import "@arcgis/core/core/Error.js";
8
8
  import { when as f } from "@arcgis/core/core/reactiveUtils.js";
9
- import w from "@arcgis/core/networks/UtilityNetworkTraceAnalysis.js";
10
- import { LitElement as b, createEvent as l } from "@arcgis/lumina";
9
+ import b from "@arcgis/core/networks/UtilityNetworkTraceAnalysis.js";
10
+ import { LitElement as w, createEvent as l } from "@arcgis/lumina";
11
11
  import { log as T } from "@arcgis/toolkit/log";
12
12
  import { u as _ } from "../../chunks/useT9n.js";
13
13
  import { m as v } from "../../chunks/useViewModel.js";
14
14
  import { l as R } from "../../chunks/async-utils.js";
15
- const $ = y`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;height:var(--arcgis-internal-panel-height, 100%)}.inputs-tab-container{display:flex;flex-direction:column;height:100%}.trace-inputs-warning{flex:none;height:fit-content;--calcite-panel-background-color: var(--calcite-color-foreground-1);calcite-notice{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}}arcgis-utility-network-trace-inputs[mode=default]{height:auto}calcite-tabs{display:flex;flex-direction:column;height:100%}calcite-tab{--calcite-tab-content-space-y: 0;min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-tab:not([selected]){flex:0}calcite-panel{--calcite-panel-background-color: var(--calcite-color-foreground-1)}calcite-notice{margin:var(--calcite-spacing-md)}`, C = v(w);
16
- class k extends b {
15
+ const $ = y`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;height:var(--arcgis-internal-panel-height, 100%)}.inputs-tab-container{display:flex;flex-direction:column;height:100%}.trace-inputs-warning{flex:none;height:fit-content;--calcite-panel-background-color: var(--calcite-color-foreground-1);calcite-notice{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}}arcgis-utility-network-trace-inputs[mode=default]{height:auto}calcite-tabs{display:flex;flex-direction:column;height:100%}calcite-tab{--calcite-tab-content-space-y: 0;min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-tab:not([selected]){flex:0}calcite-panel{--calcite-panel-background-color: var(--calcite-color-foreground-1)}calcite-notice{margin:var(--calcite-spacing-md)}`, C = v(b);
16
+ class k extends w {
17
17
  constructor() {
18
18
  super(...arguments), this._messages = _({ blocking: !0 }), this._viewModel = C(this), this._highlightHandles = [], this._handleRunTraceButtonClick = () => {
19
19
  this._setTraceWarnings(), !(this.showNoStartingPointsWarning || this.showMissingTerminalWarning) && (this.showNoStartingPointsWarning = !1, this.showMissingTerminalWarning = !1, this._clearTraceResult(), this._switchTab("results"), this._runTrace());
@@ -51,8 +51,8 @@ class k extends b {
51
51
  this.traceResult = void 0, this._clearHighlights(), this._clearAggregatedGeometryGraphics();
52
52
  }
53
53
  _setTraceWarnings() {
54
- const e = this._traceInputsElement?.traceLocations, t = this._traceInputsElement?.traceLocationFlagInfos, i = !!this._traceInputsElement?.unTraceConfiguration?.subnetworkName, r = e?.some((n) => n.type === "starting-point"), c = t?.some((n) => !!n.flagProperties.terminalConfiguration && !n.flagProperties.selectedTerminals?.size) ?? !1;
55
- this.traceError = void 0, this.showNoStartingPointsWarning = !this._isSubnetworkNameTraceSelected && !r || this._isSubnetworkNameTraceSelected && !i, this.showMissingTerminalWarning = c;
54
+ const e = this._traceInputsElement?.traceLocations, t = this._traceInputsElement?.traceLocationFlagInfos, s = !!this._traceInputsElement?.unTraceConfiguration?.subnetworkName, r = e?.some((n) => n.type === "starting-point"), c = t?.some((n) => !!n.flagProperties.terminalConfiguration && !n.flagProperties.selectedTerminals?.size) ?? !1;
55
+ this.traceError = void 0, this.showNoStartingPointsWarning = !this._isSubnetworkNameTraceSelected && !r || this._isSubnetworkNameTraceSelected && !s, this.showMissingTerminalWarning = c;
56
56
  }
57
57
  _switchTab(e) {
58
58
  this.activeTab = e;
@@ -112,8 +112,8 @@ class k extends b {
112
112
  resultTypes: e.resultTypes,
113
113
  outSpatialReference: this.view?.spatialReference
114
114
  }), this.disableHighlightFeatureResults || this._highlightResults();
115
- } catch (i) {
116
- R(i, this, "Error while running trace"), this.traceError = i, this.traceResult = void 0;
115
+ } catch (s) {
116
+ R(s, this, "Error while running trace"), this.traceError = s, this.traceResult = void 0;
117
117
  }
118
118
  }
119
119
  _handleHideGraphicsChange(e) {
@@ -139,36 +139,36 @@ class k extends b {
139
139
  this._viewModel.utilityNetwork = this._traceInputsElement?.selectedUtilityNetwork;
140
140
  }
141
141
  renderMissingTerminalWarning() {
142
- return s`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${() => this.showMissingTerminalWarning = !1}><div slot=title>${this._messages.errors.missingTerminalTitle}</div><div slot=message>${this._messages.errors.missingTerminalBody}</div></calcite-notice></calcite-panel>`;
142
+ return i`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${() => this.showMissingTerminalWarning = !1}><div slot=title>${this._messages.errors.missingTerminalTitle}</div><div slot=message>${this._messages.errors.missingTerminalBody}</div></calcite-notice></calcite-panel>`;
143
143
  }
144
144
  renderNoStartingPointsWarning() {
145
- return s`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${() => this.showNoStartingPointsWarning = !1}><div slot=title>${this._messages.errors.noStartingPointsTitle}</div><div slot=message>${this._messages.errors.noStartingPointsBody}</div></calcite-notice></calcite-panel>`;
145
+ return i`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${() => this.showNoStartingPointsWarning = !1}><div slot=title>${this._messages.errors.noStartingPointsTitle}</div><div slot=message>${this._messages.errors.noStartingPointsBody}</div></calcite-notice></calcite-panel>`;
146
146
  }
147
147
  renderResultsTab() {
148
- return g(`${this.el.id}__results-tab-item`, s`<calcite-tab .selected=${this.activeTab === "results"}>${this.state === "executing" ? s`<calcite-panel><calcite-loader .label=${this._messages.runningTrace} .text=${this._messages.runningTrace}></calcite-loader></calcite-panel>` : s`<arcgis-utility-network-trace-results .autoDestroyDisabled=${this.autoDestroyDisabled} .aggregatedGeometryGraphicsColor=${this.aggregatedGeometryGraphicsColor} .hideActionBar=${this.hideActionBar} .hideFeatureResults=${this.hideFeatureResults} .layers=${this._allLayers} .messageOverrides=${{ resultFeaturesAreHidden: this.messageOverrides?.resultFeaturesAreHidden }} .referenceElement=${this.referenceElement} .traceConfigTitle=${this._selectedTraceConfig?.title} .traceError=${this.traceError} .traceResult=${this.traceResult} .utilityNetwork=${this._viewModel.utilityNetwork ?? void 0} .view=${this.view ?? void 0} @arcgisAggregatedGeometryGraphicsColorChange=${this._handleAggregatedGeometryGraphicsColorChange} @arcgisHideGraphicsChange=${this._handleHideGraphicsChange} @arcgisTraceResultFeaturesReady=${this._handleTraceResultFeaturesReady} ${h(this._handleTraceResultsRefChange)}></arcgis-utility-network-trace-results>`}</calcite-tab>`);
148
+ return g(`${this.el.id}__results-tab-item`, i`<calcite-tab .selected=${this.activeTab === "results"}>${this.state === "executing" ? i`<calcite-panel><calcite-loader .label=${this._messages.runningTrace} .text=${this._messages.runningTrace}></calcite-loader></calcite-panel>` : i`<arcgis-utility-network-trace-results .autoDestroyDisabled=${this.autoDestroyDisabled} .aggregatedGeometryGraphicsColor=${this.aggregatedGeometryGraphicsColor} .hideActionBar=${this.hideActionBar} .hideFeatureResults=${this.hideFeatureResults} .layers=${this._allLayers} .messageOverrides=${{ resultFeaturesAreHidden: this.messageOverrides?.resultFeaturesAreHidden }} .referenceElement=${this.referenceElement} .traceConfigTitle=${this._selectedTraceConfig?.title} .traceError=${this.traceError} .traceResult=${this.traceResult} .utilityNetwork=${this._viewModel.utilityNetwork ?? void 0} .view=${this.view ?? void 0} @arcgisAggregatedGeometryGraphicsColorChange=${this._handleAggregatedGeometryGraphicsColorChange} @arcgisHideGraphicsChange=${this._handleHideGraphicsChange} @arcgisTraceResultFeaturesReady=${this._handleTraceResultFeaturesReady} ${h(this._handleTraceResultsRefChange)}></arcgis-utility-network-trace-results>`}</calcite-tab>`);
149
149
  }
150
150
  renderResultsFooter() {
151
- const { traceResult: e } = this, a = !!(e?.elements.length || e?.globalFunctionResults.length || e?.aggregatedGeometry) && this._traceResultsElement?.state === "ready", i = this._traceResultsElement?.numResults ?? 0;
152
- return s`<calcite-button appearance=outline width=full @click=${() => {
151
+ const { traceResult: e } = this, a = !!(e?.elements.length || e?.globalFunctionResults.length || e?.aggregatedGeometry) && this._traceResultsElement?.state === "ready", s = this._traceResultsElement?.numResults ?? 0;
152
+ return i`<calcite-button appearance=outline width=full @click=${() => {
153
153
  this._switchTab("input"), this._clearTraceResult(), this.arcgisTraceResultClear.emit();
154
- }} .disabled=${!a} slot=footer>${i > 0 && !this.hideFeatureResults && this.state !== "executing" ? this._messages.buttons.clearResultsCustom.replace("{number}", i.toString()) : this._messages.buttons.clearResultsGeneric}</calcite-button>`;
154
+ }} .disabled=${!a} slot=footer>${s > 0 && !this.hideFeatureResults && this.state !== "executing" ? this._messages.buttons.clearResultsCustom.replace("{number}", s.toString()) : this._messages.buttons.clearResultsGeneric}</calcite-button>`;
155
155
  }
156
156
  renderInputTab() {
157
- const { mode: e } = this, { loadError: t } = this._viewModel, i = (t === "no-user-type-extension" || t === "sceneView-not-supported" ? s`<calcite-notice kind=danger open scale=s slot=content-top width=auto><div slot=message>${this._getLoadError(t)}</div></calcite-notice>` : void 0) ?? s`${this.showNoStartingPointsWarning && e === "default" && this.renderNoStartingPointsWarning() || ""}${this.showMissingTerminalWarning && e === "default" && this.renderMissingTerminalWarning() || ""}<arcgis-utility-network-trace-inputs .autoDestroyDisabled=${this.autoDestroyDisabled} .hideActionBar=${this.hideActionBar} .referenceElement=${this.referenceElement} .view=${this.view ?? void 0} .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisPropertyChange=${(r) => {
157
+ const { mode: e } = this, { loadError: t } = this._viewModel, s = (t === "no-user-type-extension" || t === "sceneView-not-supported" ? i`<calcite-notice kind=danger open scale=s slot=content-top width=auto><div slot=message>${this._getLoadError(t)}</div></calcite-notice>` : void 0) ?? i`${this.showNoStartingPointsWarning && e === "default" && this.renderNoStartingPointsWarning() || ""}${this.showMissingTerminalWarning && e === "default" && this.renderMissingTerminalWarning() || ""}<arcgis-utility-network-trace-inputs .autoDestroyDisabled=${this.autoDestroyDisabled} .hideActionBar=${this.hideActionBar} .referenceElement=${this.referenceElement} .view=${this.view ?? void 0} .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisPropertyChange=${(r) => {
158
158
  r.stopPropagation(), r.detail.name === "mode" && (this.mode = r.target.mode);
159
159
  }} @arcgisSelectedNamedTraceConfigurationChange=${this._handleSelectedNamedTraceConfigurationChange} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisUtilityNetworkChange=${this._handleUtilityNetworkChange} ${h(this._handleTraceInputsRefChange)}></arcgis-utility-network-trace-inputs>`;
160
- return g(`${this.el.id}__inputs-tab-item`, s`<calcite-tab .selected=${this.activeTab === "input"}><div class="inputs-tab-container">${i}</div></calcite-tab>`);
160
+ return g(`${this.el.id}__inputs-tab-item`, i`<calcite-tab .selected=${this.activeTab === "input"}><div class="inputs-tab-container">${s}</div></calcite-tab>`);
161
161
  }
162
162
  renderInputFooter() {
163
163
  const { mode: e, state: t } = this;
164
164
  if (e !== "default")
165
165
  return null;
166
- const a = t === "disabled" || !this._traceInputsElement?.unTraceConfiguration;
167
- return s`<calcite-button appearance=solid width=full @click=${this._handleRunTraceButtonClick} slot=footer .disabled=${a}>${this._messages.buttons.getResults}</calcite-button>`;
166
+ const a = t === "disabled" || t === "loading" || !this._traceInputsElement?.unTraceConfiguration;
167
+ return i`<calcite-button appearance=solid width=full @click=${this._handleRunTraceButtonClick} slot=footer .disabled=${a}>${this._messages.buttons.getResults}</calcite-button>`;
168
168
  }
169
169
  render() {
170
- const { activeTab: e, state: t, view: a } = this, { utilityNetwork: i } = this._viewModel;
171
- return s`<calcite-panel><calcite-tabs layout=center position=top><calcite-tab-nav slot=title-group><calcite-tab-title @click=${() => this._switchTab("input")} .selected=${e === "input"}>${this._messages.tabs.inputTab}</calcite-tab-title><calcite-tab-title @click=${() => this._switchTab("results")} .selected=${e === "results"} .disabled=${t === "disabled" || t === "loading"}>${this._messages.tabs.resultsTab}</calcite-tab-title></calcite-tab-nav>${this.renderInputTab()}${a && i ? this.renderResultsTab() : null}</calcite-tabs>${e === "input" ? this.renderInputFooter() : null}${e === "results" ? this.renderResultsFooter() : null}</calcite-panel>`;
170
+ const { activeTab: e, state: t } = this;
171
+ return i`<calcite-panel><calcite-tabs layout=center position=top><calcite-tab-nav slot=title-group><calcite-tab-title @click=${() => this._switchTab("input")} .selected=${e === "input"}>${this._messages.tabs.inputTab}</calcite-tab-title><calcite-tab-title @click=${() => this._switchTab("results")} .selected=${e === "results"} .disabled=${t === "disabled" || t === "loading"}>${this._messages.tabs.resultsTab}</calcite-tab-title></calcite-tab-nav>${this.renderInputTab()}${t === "ready" || t === "executing" ? this.renderResultsTab() : null}</calcite-tabs>${e === "input" ? this.renderInputFooter() : null}${e === "results" ? this.renderResultsFooter() : null}</calcite-panel>`;
172
172
  }
173
173
  }
174
174
  m("arcgis-utility-network-trace-analysis", k);
@@ -30,10 +30,10 @@ export abstract class ArcgisUtilityNetworkTraceInputs extends LitElement {
30
30
  componentLabel: string;
31
31
  errors: {
32
32
  noCompatibleSubnetworks: string;
33
- noMapError: string;
34
33
  noNamedTraceConfigurations: string;
35
34
  noTraceConfiguration: string;
36
- noUtilityNetworkError: string;
35
+ noUtilityNetwork: string;
36
+ noView: string;
37
37
  utilityNetworkLoadFailed: string;
38
38
  };
39
39
  instructions: {
@@ -73,10 +73,10 @@ export abstract class ArcgisUtilityNetworkTraceInputs extends LitElement {
73
73
  componentLabel: string;
74
74
  errors: {
75
75
  noCompatibleSubnetworks: string;
76
- noMapError: string;
77
76
  noNamedTraceConfigurations: string;
78
77
  noTraceConfiguration: string;
79
- noUtilityNetworkError: string;
78
+ noUtilityNetwork: string;
79
+ noView: string;
80
80
  utilityNetworkLoadFailed: string;
81
81
  };
82
82
  instructions: {
@@ -1,6 +1,6 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { c as w } from "../../chunks/runtime.js";
3
- import { ref as h } from "lit/directives/ref.js";
2
+ import { c as y } from "../../chunks/runtime.js";
3
+ import { ref as d } from "lit/directives/ref.js";
4
4
  import c from "@arcgis/core/core/Collection.js";
5
5
  import { watch as _ } from "@arcgis/core/core/reactiveUtils.js";
6
6
  import { substitute as k } from "@arcgis/core/intl.js";
@@ -11,7 +11,7 @@ import p from "@arcgis/core/views/interactive/snapping/FeatureSnappingLayerSourc
11
11
  import L from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
12
12
  import { LitElement as N, createEvent as l } from "@arcgis/lumina";
13
13
  import { usePropertyChange as $ } from "@arcgis/lumina/controllers";
14
- import { log as d, composeMissingPropertyMessage as v, composeEmptyPropertyMessage as E } from "@arcgis/toolkit/log";
14
+ import { log as h, composeMissingPropertyMessage as v, composeEmptyPropertyMessage as E } from "@arcgis/toolkit/log";
15
15
  import { css as P, html as r } from "lit";
16
16
  import { u as I } from "../../chunks/useT9n.js";
17
17
  import { b as U, a as g, c as F, q as m, i as x } from "../../chunks/layer-utils.js";
@@ -27,7 +27,7 @@ class D extends N {
27
27
  "isolation"
28
28
  ]), this._setUpMap = () => {
29
29
  if (this._error = void 0, !this.view?.map) {
30
- d("error", this, "The property `view.map` is required to load utility networks but is missing."), this._error = this._messages.errors.noMapError, this.utilityNetworks = void 0;
30
+ this._error = this._messages.errors.noView, this.utilityNetworks = void 0;
31
31
  return;
32
32
  }
33
33
  const e = this.view.map;
@@ -195,7 +195,7 @@ class D extends N {
195
195
  _selectTraceConfigurationByGuid(e) {
196
196
  const t = this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.find((i) => i.globalId === e);
197
197
  if (!t) {
198
- d("error", this, "`traceConfig` not found in `selectedUtilityNetwork.sharedNamedTraceConfigurations`");
198
+ h("error", this, "`traceConfig` not found in `selectedUtilityNetwork.sharedNamedTraceConfigurations`");
199
199
  return;
200
200
  }
201
201
  this.selectedNamedTraceConfiguration = t;
@@ -203,7 +203,7 @@ class D extends N {
203
203
  async _handleTraceConfigChange() {
204
204
  const { selectedNamedTraceConfiguration: e } = this;
205
205
  if (!(e?.traceConfiguration instanceof T)) {
206
- d("error", this, v("selectedNamedTraceConfiguration.traceConfiguration")), this._unTraceConfiguration = void 0;
206
+ h("error", this, v("selectedNamedTraceConfiguration.traceConfiguration")), this._unTraceConfiguration = void 0;
207
207
  return;
208
208
  }
209
209
  this._unTraceConfiguration = e.traceConfiguration.clone(), e.traceType === "subnetwork" && (this._subnetworkNamesState = "loading", await this._handleSubnetworkTraceConfigChange(this._unTraceConfiguration), this._subnetworkNamesState = "ready");
@@ -218,7 +218,7 @@ class D extends N {
218
218
  this._clearSubnetworks(), this._setupTraceConfigurations(), this._filterUnLayers(), this._clearTraceLocations();
219
219
  }
220
220
  _setupTraceConfigurations() {
221
- this._unTraceConfiguration = void 0, this.selectedNamedTraceConfiguration = void 0, this.traceConfigurations = this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.filter(Boolean).filter((e) => e.traceType !== "circuit").sort((e, t) => e.title.localeCompare(t.title)) || [], this.traceConfigurations.length ? this.selectedNamedTraceConfiguration = this.traceConfigurations.at(0) : d("error", this, "The selected utility network has no compatible named trace configurations.");
221
+ this._unTraceConfiguration = void 0, this.selectedNamedTraceConfiguration = void 0, this.traceConfigurations = this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.filter(Boolean).filter((e) => e.traceType !== "circuit").sort((e, t) => e.title.localeCompare(t.title)) || [], this.traceConfigurations.length ? this.selectedNamedTraceConfiguration = this.traceConfigurations.at(0) : h("error", this, "The selected utility network has no compatible named trace configurations.");
222
222
  }
223
223
  _filterUnLayers() {
224
224
  const { selectedUtilityNetwork: e } = this;
@@ -226,7 +226,7 @@ class D extends N {
226
226
  }
227
227
  _handleUtilityNetworksChange() {
228
228
  const { utilityNetworks: e, selectedUtilityNetwork: t } = this;
229
- e?.length ? (!t || !e.includes(t)) && (this.selectedUtilityNetwork = e.at(0)) : (d("error", this, E("utilityNetworks")), this.selectedUtilityNetwork = void 0, this._error = this._messages.errors.noUtilityNetworkError);
229
+ e?.length ? (!t || !e.includes(t)) && (this.selectedUtilityNetwork = e.at(0)) : (h("error", this, E("utilityNetworks")), this.selectedUtilityNetwork = void 0, this._error = this._messages.errors.noUtilityNetwork);
230
230
  }
231
231
  async _setupUtilityNetworks(e) {
232
232
  try {
@@ -322,7 +322,7 @@ class D extends N {
322
322
  }}>${i}</calcite-combobox></calcite-block>`;
323
323
  }
324
324
  renderDefaultMode() {
325
- const { selectedUtilityNetwork: e } = this, { noMapError: t, noUtilityNetworkError: i } = this._messages.errors;
325
+ const { selectedUtilityNetwork: e } = this, { noView: t, noUtilityNetwork: i } = this._messages.errors;
326
326
  let a;
327
327
  return this._error === t || this._error === i ? a = this.renderError(this._error, !1, "exclamation-mark-triangle") : !e?.loaded && !e?.loadError ? a = this.renderLoader() : a = this.renderContent(), r`<calcite-flow-item .selected=${this.mode === "default"}>${a}</calcite-flow-item>`;
328
328
  }
@@ -335,7 +335,7 @@ class D extends N {
335
335
  if (!e.length)
336
336
  return this.mode = "default", null;
337
337
  const t = this._activeTraceLocationType === "starting-point" ? this._messages.labels.addSpatial.startingPoint : this._activeTraceLocationType === "barrier" ? this._messages.labels.addSpatial.barrier : this._messages.labels.addSpatial.stoppingPoint, i = e.length === 1 ? "feature" : "list";
338
- return r`<arcgis-features .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this._defaultPopupTemplateEnabled} .features=${e} .featureMenuTitle=${t} .hideActionBar=${this.hideActionBar} hide-select-feature .initialDisplayMode=${i} @arcgisClose=${() => this._handleFeaturesClose()} @arcgisPropertyChange=${this._handleFeaturesPropertyChange} open .referenceElement=${this.referenceElement} .view=${this.view} ${h(this._featuresComponentRefChange)}></arcgis-features>`;
338
+ return r`<arcgis-features .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this._defaultPopupTemplateEnabled} .features=${e} .featureMenuTitle=${t} .hideActionBar=${this.hideActionBar} hide-select-feature .initialDisplayMode=${i} @arcgisClose=${() => this._handleFeaturesClose()} @arcgisPropertyChange=${this._handleFeaturesPropertyChange} open .referenceElement=${this.referenceElement} .view=${this.view} ${d(this._featuresComponentRefChange)}></arcgis-features>`;
339
339
  }
340
340
  renderAddSpatialFooter() {
341
341
  const { mode: e, _messages: t, selectedFeature: i, selectedUtilityNetwork: a } = this, s = e === "add-spatial-feature" && this._exceedDisplayLimit && !i, o = k(t.warnings.exceededDisplayLimit, {
@@ -344,13 +344,13 @@ class D extends N {
344
344
  return r`${s && r`<calcite-input-message id=results-limited-message icon=exclamation-mark-circle status=idle>${o}</calcite-input-message>` || ""}<calcite-button appearance=outline width=full @click=${() => this._handleAddSpatialCancelClick()} slot=footer>${t.buttons.cancel}</calcite-button>${e === "add-spatial-feature" && r`<calcite-button width=full slot=footer appearance=solid @click=${() => this._handleAddSpatialAddClick()} .disabled=${n}>${t.buttons.add}</calcite-button>` || ""}`;
345
345
  }
346
346
  renderStartingPointSelection() {
347
- return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=starting-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .traceLocations=${this._startingPoints} .afterHitTest=${this._handleHitTestComplete.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${h(this._traceLocationStartingRefChange)}></arcgis-utility-network-trace-location>`;
347
+ return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=starting-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .traceLocations=${this._startingPoints} .afterHitTest=${this._handleHitTestComplete.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${d(this._traceLocationStartingRefChange)}></arcgis-utility-network-trace-location>`;
348
348
  }
349
349
  renderStoppingPointSelection() {
350
- return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=stopping-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .traceLocations=${this._stoppingPoints} .afterHitTest=${this._handleHitTestComplete.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${h(this._traceLocationStoppingRefChange)}></arcgis-utility-network-trace-location>`;
350
+ return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=stopping-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .traceLocations=${this._stoppingPoints} .afterHitTest=${this._handleHitTestComplete.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${d(this._traceLocationStoppingRefChange)}></arcgis-utility-network-trace-location>`;
351
351
  }
352
352
  renderBarrierSelection() {
353
- return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=barrier .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .traceLocations=${this._barriers} .afterHitTest=${this._handleHitTestComplete.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${h(this._traceLocationBarrierRefChange)}></arcgis-utility-network-trace-location>`;
353
+ return r`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=barrier .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .traceLocations=${this._barriers} .afterHitTest=${this._handleHitTestComplete.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${d(this._traceLocationBarrierRefChange)}></arcgis-utility-network-trace-location>`;
354
354
  }
355
355
  renderSubnetworkNameInput() {
356
356
  return r`<calcite-input clearable type=text .placeholder=${this._messages.instructions.enterSubnetworkName} max-length=64 .status=${this.selectedSubnetworkName ? "valid" : "invalid"} .value=${this.selectedSubnetworkName} @calciteInputInput=${(e) => this.selectedSubnetworkName = e.target.value}></calcite-input><calcite-input-message icon=exclamation-mark-triangle status=idle>${this._messages.labels.tooManySubnetworks}</calcite-input-message>`;
@@ -372,15 +372,15 @@ class D extends N {
372
372
  const { utilityNetworks: e, unTraceConfiguration: t } = this, { noTraceConfiguration: i, noNamedTraceConfigurations: a, utilityNetworkLoadFailed: s } = this._messages.errors, o = e && e.length > 1 ? this.renderUtilityNetworkSelection() : null;
373
373
  let n;
374
374
  this.selectedUtilityNetwork?.loadError ? n = this.renderError(s, !1, "exclamation-mark-triangle") : this.traceConfigurations.length || (n = this.renderError(a, !1, "exclamation-mark-triangle"));
375
- const b = r`${this.renderTraceSelection()}${this.renderSubnetworkInfo()}${this.renderSubnetworkSelection()}`, y = t ? r`${this.showStartingPoints ? this.renderStartingPointSelection() : null}${this.showStoppingPoints ? this.renderStoppingPointSelection() : null}${this.renderBarrierSelection()}` : this.renderError(i, !1, "exclamation-mark-triangle");
376
- return r`<calcite-block-group .label=${this._messages.labels.traceInputs}>${o}${n ?? r`${b}${y}`}</calcite-block-group>`;
375
+ const b = r`${this.renderTraceSelection()}${this.renderSubnetworkInfo()}${this.renderSubnetworkSelection()}`, w = t ? r`${this.showStartingPoints ? this.renderStartingPointSelection() : null}${this.showStoppingPoints ? this.renderStoppingPointSelection() : null}${this.renderBarrierSelection()}` : this.renderError(i, !1, "exclamation-mark-triangle");
376
+ return r`<calcite-block-group .label=${this._messages.labels.traceInputs}>${o}${n ?? r`${b}${w}`}</calcite-block-group>`;
377
377
  }
378
378
  render() {
379
379
  const { mode: e } = this;
380
380
  return r`<calcite-panel>${e === "add-spatial-feature" ? this.renderCandidateFeatures() : null}<calcite-flow .hidden=${e === "add-spatial-feature"}>${this.renderDefaultMode()}${this.renderSpatialSelectInstructions()}</calcite-flow>${e !== "default" ? this.renderAddSpatialFooter() : null}</calcite-panel>`;
381
381
  }
382
382
  }
383
- w("arcgis-utility-network-trace-inputs", D);
383
+ y("arcgis-utility-network-trace-inputs", D);
384
384
  export {
385
385
  D as ArcgisUtilityNetworkTraceInputs
386
386
  };