@arcgis/map-components 5.1.0-next.24 → 5.1.0-next.25

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 (185) hide show
  1. package/README.md +1 -1
  2. package/dist/cdn/23TQHX3R.js +2 -0
  3. package/dist/cdn/3RWP2MFY.js +2 -0
  4. package/dist/cdn/3YF5ELCV.js +2 -0
  5. package/dist/cdn/46PYSV4C.js +2 -0
  6. package/dist/cdn/4Q2WOBXH.js +2 -0
  7. package/dist/cdn/5FZ74RGF.js +2 -0
  8. package/dist/cdn/5HUNDZSE.js +2 -0
  9. package/dist/cdn/5JHCBJB4.js +2 -0
  10. package/dist/cdn/5YQWN4HC.js +2 -0
  11. package/dist/cdn/5YYDQKYB.js +2 -0
  12. package/dist/cdn/667Y5WZS.js +2 -0
  13. package/dist/cdn/7BPH252S.js +2 -0
  14. package/dist/cdn/{3RSXFSGK.js → 7D64YYLS.js} +1 -1
  15. package/dist/cdn/7E3PHG6R.js +2 -0
  16. package/dist/cdn/7W7RNWBM.js +2 -0
  17. package/dist/cdn/{GKOPDCDG.js → AEQFRO7B.js} +1 -1
  18. package/dist/cdn/AGWQDLNI.js +2 -0
  19. package/dist/cdn/APV3AYJF.js +2 -0
  20. package/dist/cdn/BQUMWB3P.js +2 -0
  21. package/dist/cdn/BSZYRTSR.js +2 -0
  22. package/dist/cdn/C3D6DL63.js +2 -0
  23. package/dist/cdn/C5QG2S6I.js +2 -0
  24. package/dist/cdn/CB36GREW.js +2 -0
  25. package/dist/cdn/CYHPOGKU.js +2 -0
  26. package/dist/cdn/DS6FJ2ZR.js +2 -0
  27. package/dist/cdn/{HQUOPZBH.js → EAV2N3XM.js} +1 -1
  28. package/dist/cdn/EV3HXCIH.js +2 -0
  29. package/dist/cdn/EXSFSEK3.js +2 -0
  30. package/dist/cdn/FGPK4XM4.js +2 -0
  31. package/dist/cdn/FHVJILOP.js +2 -0
  32. package/dist/cdn/FKLSUEE4.js +2 -0
  33. package/dist/cdn/{BRPKDHOU.js → FOZBLOPX.js} +1 -1
  34. package/dist/cdn/FXW2QMCP.js +2 -0
  35. package/dist/cdn/G44PNNZ4.js +2 -0
  36. package/dist/cdn/HCWAOP6D.js +2 -0
  37. package/dist/cdn/IIGVQFLD.js +2 -0
  38. package/dist/cdn/ITX6LJ6O.js +2 -0
  39. package/dist/cdn/IWN6U37Z.js +2 -0
  40. package/dist/cdn/{YJNIIDPI.js → JEG2YAUH.js} +1 -1
  41. package/dist/cdn/JPC5EARH.js +2 -0
  42. package/dist/cdn/JYFXOUAR.js +2 -0
  43. package/dist/cdn/KC37LMMM.js +2 -0
  44. package/dist/cdn/LGCAKLVB.js +2 -0
  45. package/dist/cdn/LQA4IF5M.js +2 -0
  46. package/dist/cdn/M6NRIDED.js +2 -0
  47. package/dist/cdn/MIK35PDX.js +2 -0
  48. package/dist/cdn/MSGBVT7B.js +2 -0
  49. package/dist/cdn/MYJWBY4N.js +2 -0
  50. package/dist/cdn/{V5BOOLLA.js → N2VUYFEK.js} +1 -1
  51. package/dist/cdn/N7SXGVEK.js +2 -0
  52. package/dist/cdn/NBS2JRKZ.js +2 -0
  53. package/dist/cdn/NCUVQ62D.js +2 -0
  54. package/dist/cdn/NVPDQFVK.js +2 -0
  55. package/dist/cdn/O3GU57ZF.js +2 -0
  56. package/dist/cdn/O5TDDX7K.js +2 -0
  57. package/dist/cdn/OPPTQDUJ.js +2 -0
  58. package/dist/cdn/PAFLJ4T6.js +2 -0
  59. package/dist/cdn/PEIVXKOI.js +2 -0
  60. package/dist/cdn/{ESZY2QZH.js → PJ3PYFJ4.js} +1 -1
  61. package/dist/cdn/PX7OQ23D.js +2 -0
  62. package/dist/cdn/QJPNEXAO.js +2 -0
  63. package/dist/cdn/S2L4RRRK.js +2 -0
  64. package/dist/cdn/S5XIZMAX.js +2 -0
  65. package/dist/cdn/SRHN7R6A.js +2 -0
  66. package/dist/cdn/SRSSON6V.js +2 -0
  67. package/dist/cdn/SUUWINLA.js +2 -0
  68. package/dist/cdn/T6LJGCEK.js +2 -0
  69. package/dist/cdn/TJXR3SIG.js +2 -0
  70. package/dist/cdn/U3P6MNLN.js +2 -0
  71. package/dist/cdn/UENUQ4KE.js +2 -0
  72. package/dist/cdn/UIQHTGAK.js +2 -0
  73. package/dist/cdn/VRC4A6UI.js +2 -0
  74. package/dist/cdn/VW43RPYP.js +2 -0
  75. package/dist/cdn/WMSKSUGI.js +2 -0
  76. package/dist/cdn/WQZ44Y3Z.js +2 -0
  77. package/dist/cdn/X7YUOD3X.js +2 -0
  78. package/dist/cdn/XE7L75G7.js +2 -0
  79. package/dist/cdn/XEKVZSQD.js +2 -0
  80. package/dist/cdn/{2RKX3O6H.js → XILIHQ2Y.js} +1 -1
  81. package/dist/cdn/XL5VSTUT.js +2 -0
  82. package/dist/cdn/XLAV73BO.js +2 -0
  83. package/dist/cdn/YIABICX7.js +2 -0
  84. package/dist/cdn/Z7KZKGZH.js +2 -0
  85. package/dist/cdn/ZENXKKZU.js +2 -0
  86. package/dist/cdn/ZJH54CNE.js +2 -0
  87. package/dist/cdn/ZKB2DJMQ.js +2 -0
  88. package/dist/cdn/index.js +1 -1
  89. package/dist/chunks/component-utils.js +85 -72
  90. package/dist/components/arcgis-editor/customElement.js +1 -1
  91. package/dist/components/arcgis-popup/customElement.d.ts +15 -5
  92. package/dist/components/arcgis-sketch/customElement.js +1 -1
  93. package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.d.ts +4 -9
  94. package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.js +53 -58
  95. package/dist/components/arcgis-utility-network-aggregated-geometry/index.js +0 -1
  96. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +6 -5
  97. package/dist/components/arcgis-utility-network-trace-results/customElement.js +23 -28
  98. package/dist/docs/api.json +1 -1
  99. package/dist/docs/docs.json +1 -1
  100. package/dist/docs/vscode.html-custom-data.json +1 -1
  101. package/dist/docs/web-types.json +1 -1
  102. package/dist/loader.js +1 -1
  103. package/dist/types/lumina.d.ts +1 -1
  104. package/dist/types/preact.d.ts +1 -1
  105. package/dist/types/react.d.ts +1 -1
  106. package/dist/types/stencil.d.ts +1 -1
  107. package/package.json +6 -6
  108. package/dist/cdn/2AMO7WB5.js +0 -2
  109. package/dist/cdn/2CY2GEUS.js +0 -2
  110. package/dist/cdn/2O3GSMYO.js +0 -2
  111. package/dist/cdn/2UL6OUOC.js +0 -2
  112. package/dist/cdn/2YYHB6D7.js +0 -2
  113. package/dist/cdn/3JTQG6AU.js +0 -2
  114. package/dist/cdn/3TJ5YLAW.js +0 -2
  115. package/dist/cdn/44JRNJOB.js +0 -2
  116. package/dist/cdn/4KJRNLCZ.js +0 -2
  117. package/dist/cdn/4MRMJJJZ.js +0 -2
  118. package/dist/cdn/4NUDGWVZ.js +0 -2
  119. package/dist/cdn/5P4ZXOSS.js +0 -2
  120. package/dist/cdn/5P7XB77F.js +0 -2
  121. package/dist/cdn/67ZXVGEU.js +0 -2
  122. package/dist/cdn/6ZSGEDK7.js +0 -2
  123. package/dist/cdn/7ZYSP2AT.js +0 -2
  124. package/dist/cdn/ABMOMJDO.js +0 -2
  125. package/dist/cdn/BMR2YFEM.js +0 -2
  126. package/dist/cdn/C4AU67NH.js +0 -2
  127. package/dist/cdn/C5KBHBXX.js +0 -2
  128. package/dist/cdn/DD6UEDWN.js +0 -2
  129. package/dist/cdn/DUO5PAMD.js +0 -2
  130. package/dist/cdn/E4343BW3.js +0 -2
  131. package/dist/cdn/ED5CYJC6.js +0 -2
  132. package/dist/cdn/EGDKKW7Q.js +0 -2
  133. package/dist/cdn/EIO6SGJ3.js +0 -2
  134. package/dist/cdn/ENZQ6Y22.js +0 -2
  135. package/dist/cdn/EVDM2TIL.js +0 -2
  136. package/dist/cdn/FC7RJ3XK.js +0 -2
  137. package/dist/cdn/FNCCPCRJ.js +0 -2
  138. package/dist/cdn/FXI46X2L.js +0 -2
  139. package/dist/cdn/GBXKK7G4.js +0 -2
  140. package/dist/cdn/GCJAHIZP.js +0 -2
  141. package/dist/cdn/HDRNAOAG.js +0 -2
  142. package/dist/cdn/HHNEB2V6.js +0 -2
  143. package/dist/cdn/HM73YF33.js +0 -2
  144. package/dist/cdn/I3KSXOBY.js +0 -2
  145. package/dist/cdn/IK76CMXS.js +0 -2
  146. package/dist/cdn/JG7CGJPQ.js +0 -2
  147. package/dist/cdn/JXCCWIB5.js +0 -2
  148. package/dist/cdn/K52DBZTR.js +0 -2
  149. package/dist/cdn/KF5H6WSN.js +0 -2
  150. package/dist/cdn/KRYDA75T.js +0 -2
  151. package/dist/cdn/KXZL7HY2.js +0 -2
  152. package/dist/cdn/KZFVZ6QO.js +0 -2
  153. package/dist/cdn/LJA64EHJ.js +0 -2
  154. package/dist/cdn/M6XGXRKN.js +0 -2
  155. package/dist/cdn/MIEDJBHH.js +0 -2
  156. package/dist/cdn/MIJJYNPG.js +0 -2
  157. package/dist/cdn/MJE27LYY.js +0 -2
  158. package/dist/cdn/MP7MAMMJ.js +0 -2
  159. package/dist/cdn/MQ6OLZF4.js +0 -2
  160. package/dist/cdn/NDHM6VQU.js +0 -2
  161. package/dist/cdn/NPSWZFC7.js +0 -2
  162. package/dist/cdn/NT6JFAN7.js +0 -2
  163. package/dist/cdn/O3AKG7RB.js +0 -2
  164. package/dist/cdn/O6Y2DK4Q.js +0 -2
  165. package/dist/cdn/O7OV2RVX.js +0 -2
  166. package/dist/cdn/OCZSLOXR.js +0 -2
  167. package/dist/cdn/ON7UPOVK.js +0 -2
  168. package/dist/cdn/OPFT2XCU.js +0 -2
  169. package/dist/cdn/ORBSNP77.js +0 -2
  170. package/dist/cdn/OZ7PUJES.js +0 -2
  171. package/dist/cdn/PAZ2MP34.js +0 -2
  172. package/dist/cdn/PZ2HPQXA.js +0 -2
  173. package/dist/cdn/Q76HLTWI.js +0 -2
  174. package/dist/cdn/QAZOMVRQ.js +0 -2
  175. package/dist/cdn/RMJZ72G4.js +0 -2
  176. package/dist/cdn/TUUPWOUO.js +0 -2
  177. package/dist/cdn/U7GWRKZK.js +0 -2
  178. package/dist/cdn/VNZL7BB6.js +0 -2
  179. package/dist/cdn/W4E5UX5P.js +0 -2
  180. package/dist/cdn/XIDPHDPL.js +0 -2
  181. package/dist/cdn/XXS4JDK5.js +0 -2
  182. package/dist/cdn/YWWQDQG7.js +0 -2
  183. package/dist/cdn/ZJCOEA35.js +0 -2
  184. package/dist/cdn/ZNA2A32J.js +0 -2
  185. package/dist/cdn/ZZRUC7EN.js +0 -2
@@ -1,111 +1,106 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  import { c as m } from "../../chunks/runtime.js";
3
- import n from "@arcgis/core/Color.js";
4
- import * as s from "@arcgis/core/geometry/operators/shapePreservingProjectOperator.js";
5
- import d from "@arcgis/core/Graphic.js";
3
+ import p from "@arcgis/core/Color.js";
4
+ import l from "@arcgis/core/Graphic.js";
6
5
  import g from "@arcgis/core/layers/GraphicsLayer.js";
7
6
  import y from "@arcgis/core/symbols/SimpleFillSymbol.js";
8
- import w from "@arcgis/core/symbols/SimpleLineSymbol.js";
9
- import _ from "@arcgis/core/symbols/SimpleMarkerSymbol.js";
10
- import { LitElement as G, createEvent as f, nothing as u } from "@arcgis/lumina";
11
- import { log as a, composeMissingPropertyMessage as o } from "@arcgis/toolkit/log";
12
- import { css as L, html as c } from "lit";
13
- import { u as v } from "../../chunks/useT9n.js";
14
- import { i as b, a as p } from "../../chunks/layer-utils.js";
15
- const S = L`.loader-container{display:flex;justify-content:center;padding-bottom:var(--calcite-spacing-md)}`, h = 12;
16
- class k extends G {
7
+ import n from "@arcgis/core/symbols/SimpleLineSymbol.js";
8
+ import d from "@arcgis/core/symbols/SimpleMarkerSymbol.js";
9
+ import { LitElement as w, createEvent as _, nothing as f } from "@arcgis/lumina";
10
+ import { log as s, composeMissingPropertyMessage as a } from "@arcgis/toolkit/log";
11
+ import { css as G, html as u } from "lit";
12
+ import { u as L } from "../../chunks/useT9n.js";
13
+ import { i as v, a as h } from "../../chunks/layer-utils.js";
14
+ const b = G`.loader-container{display:flex;justify-content:center;padding-bottom:var(--calcite-spacing-md)}`, o = 12;
15
+ class S extends w {
17
16
  constructor() {
18
- super(...arguments), this._graphicsLayerName = `arcgis-utility-network-aggregated-geometry-${Date.now()}`, this._messages = v({ blocking: !0 }), this._projectedGraphics = [], this._addAggregatedGeometryToView = () => {
19
- const i = this.geometry, { line: e, multipoint: t, polygon: l } = i;
20
- this._projectedGraphics = [e, t, l].filter((r) => r != null).map((r) => this._makeGraphicFromGeometry(r)), this._graphicsLayer.addMany(this._projectedGraphics);
17
+ super(...arguments), this._graphicsLayerName = `arcgis-utility-network-aggregated-geometry-${Date.now()}`, this._messages = L({ blocking: !0 }), this._graphics = [], this._addAggregatedGeometryToView = () => {
18
+ const e = this.geometry, { line: i, multipoint: r, polygon: c } = e;
19
+ this._graphics = [i, r, c].filter((t) => t != null).map((t) => this._makeGraphicFromGeometry(t)), this._graphicsLayer.addMany(this._graphics);
21
20
  }, this._createGraphicsLayer = () => {
22
- const i = this.view.map, e = this._graphicsLayerName, t = i.findLayerById(e);
23
- if (t && b(t)) {
24
- this._graphicsLayer = t;
21
+ const e = this.view.map, i = this._graphicsLayerName, r = e.findLayerById(i);
22
+ if (r && v(r)) {
23
+ this._graphicsLayer = r;
25
24
  return;
26
25
  }
27
26
  this._graphicsLayer = new g({
28
- id: e,
27
+ id: i,
29
28
  listMode: "hide",
30
- title: e
31
- }), p(this.view, this._graphicsLayer);
32
- }, this.hideGraphics = !1, this.graphicsColor = new n([255, 255, 0, 0.6]), this.state = "ready", this.autoDestroyDisabled = !1, this.arcgisHideGraphicsChange = f();
29
+ title: i
30
+ }), h(this.view, this._graphicsLayer);
31
+ }, this.hideGraphics = !1, this.graphicsColor = new p([255, 255, 0, 0.6]), this.autoDestroyDisabled = !1, this.arcgisHideGraphicsChange = _();
33
32
  }
34
33
  static {
35
- this.properties = { geometry: 0, hideGraphics: 5, graphicsColor: 0, state: 1, view: 0, autoDestroyDisabled: 5 };
34
+ this.properties = { geometry: 0, hideGraphics: 5, graphicsColor: 0, view: 0, autoDestroyDisabled: 5 };
36
35
  }
37
36
  static {
38
- this.styles = S;
37
+ this.styles = b;
39
38
  }
40
39
  async destroy() {
41
40
  this.view?.map && this._graphicsLayer && this.view.map.remove(this._graphicsLayer), await this.manager.destroy();
42
41
  }
43
42
  connectedCallback() {
44
- super.connectedCallback(), this.view && this._graphicsLayer && p(this.view, this._graphicsLayer);
43
+ super.connectedCallback(), this.view && this._graphicsLayer && h(this.view, this._graphicsLayer);
45
44
  }
46
45
  load() {
47
- !this.geometry || !this.view?.map || this._loadProjectOperator().then(() => this._createGraphicsLayer());
46
+ !this.geometry || !this.view?.map || this._createGraphicsLayer();
48
47
  }
49
- willUpdate(i) {
50
- if (i.has("graphicsColor") && this._updateGraphicSymbols(), i.has("geometry") && (this._graphicsLayer?.removeAll(), this._addAggregatedGeometryToView()), i.has("view")) {
51
- const e = i.get("view");
52
- e?.map && this._graphicsLayer && (e.map.remove(this._graphicsLayer), this._createGraphicsLayer(), this._addAggregatedGeometryToView());
48
+ willUpdate(e) {
49
+ if (e.has("graphicsColor") && this._updateGraphicSymbols(), e.has("geometry") && (this._graphicsLayer?.removeAll(), this._addAggregatedGeometryToView()), e.has("view")) {
50
+ const i = e.get("view");
51
+ i?.map && this._graphicsLayer && (i.map.remove(this._graphicsLayer), this._createGraphicsLayer(), this._addAggregatedGeometryToView());
53
52
  }
54
53
  }
55
54
  loaded() {
56
- this.geometry || a("error", this, o("geometry")), this.view ? this.view.map || a("error", this, o("The property `view` was provided, but `view.map` is null. Cannot draw aggregated geometry.")) : a("error", this, o("view"));
55
+ this.geometry || s("error", this, a("geometry")), this.view ? this.view.map || s("error", this, a("The property `view` was provided, but `view.map` is null. Cannot draw aggregated geometry.")) : s("error", this, a("view"));
57
56
  }
58
57
  _handleShowGraphicsChange() {
59
- this.hideGraphics = !this.hideGraphics, this.hideGraphics ? this._graphicsLayer?.removeAll() : this._graphicsLayer?.addMany(this._projectedGraphics), this.arcgisHideGraphicsChange.emit(this.hideGraphics);
58
+ this.hideGraphics = !this.hideGraphics, this.hideGraphics ? this._graphicsLayer?.removeAll() : this._graphicsLayer?.addMany(this._graphics), this.arcgisHideGraphicsChange.emit(this.hideGraphics);
60
59
  }
61
- async _loadProjectOperator() {
62
- s.isLoaded() || (this.state = "loading", await s.load(), this.state = "ready");
63
- }
64
- _makeGraphicFromGeometry(i) {
65
- const e = s.execute(i, this.view.spatialReference);
66
- return new d({
60
+ _makeGraphicFromGeometry(e) {
61
+ return new l({
67
62
  geometry: e,
68
- symbol: this._makeSymbolForGeometry(i)
63
+ symbol: this._makeSymbolForGeometry(e)
69
64
  });
70
65
  }
71
- _makeSymbolForGeometry(i) {
72
- const e = this.graphicsColor;
73
- switch (i.type) {
66
+ _makeSymbolForGeometry(e) {
67
+ const i = this.graphicsColor;
68
+ switch (e.type) {
74
69
  case "multipoint":
75
- return new _({
76
- color: e,
77
- size: h,
70
+ return new d({
71
+ color: i,
72
+ size: o,
78
73
  outline: {
79
- color: e,
74
+ color: i,
80
75
  width: 0
81
76
  }
82
77
  });
83
78
  case "polygon":
84
79
  return new y({
85
- color: e,
80
+ color: i,
86
81
  outline: {
87
- color: e,
88
- width: h
82
+ color: i,
83
+ width: o
89
84
  }
90
85
  });
91
86
  case "polyline":
92
- return new w({
93
- color: e,
94
- width: h
87
+ return new n({
88
+ color: i,
89
+ width: o
95
90
  });
96
91
  }
97
92
  }
98
93
  _updateGraphicSymbols() {
99
- this._graphicsLayer?.graphics.forEach((i) => {
100
- const e = i.geometry;
101
- i.symbol = this._makeSymbolForGeometry(e);
94
+ this._graphicsLayer?.graphics.forEach((e) => {
95
+ const i = e.geometry;
96
+ e.symbol = this._makeSymbolForGeometry(i);
102
97
  });
103
98
  }
104
99
  render() {
105
- return this.state === "loading" ? c`<div class="loader-container"><calcite-loader .label=${this._messages.labels.loadingDependencies} inline></calcite-loader></div>` : c`<calcite-switch .checked=${!this.hideGraphics} .label=${this._messages.labels.showGraphicsToggle} label-text-end=${this._messages.showGraphics ?? u} @calciteSwitchChange=${this._handleShowGraphicsChange}></calcite-switch>`;
100
+ return u`<calcite-switch .checked=${!this.hideGraphics} .label=${this._messages.labels.showGraphicsToggle} label-text-end=${this._messages.showGraphics ?? f} @calciteSwitchChange=${this._handleShowGraphicsChange}></calcite-switch>`;
106
101
  }
107
102
  }
108
- m("arcgis-utility-network-aggregated-geometry", k);
103
+ m("arcgis-utility-network-aggregated-geometry", S);
109
104
  export {
110
- k as ArcgisUtilityNetworkAggregatedGeometry
105
+ S as ArcgisUtilityNetworkAggregatedGeometry
111
106
  };
@@ -1,3 +1,2 @@
1
- import "@esri/calcite-components/components/calcite-loader";
2
1
  import "@esri/calcite-components/components/calcite-switch";
3
2
  export * from "./customElement.js";
@@ -8,12 +8,12 @@ import "@arcgis/core/core/Error.js";
8
8
  import b from "@arcgis/core/networks/UtilityNetworkTraceAnalysis.js";
9
9
  import { LitElement as v, createEvent as l } from "@arcgis/lumina";
10
10
  import { log as u } from "@arcgis/toolkit/log";
11
- import { u as _ } from "../../chunks/useT9n.js";
12
- import { m as w } from "../../chunks/useViewModel.js";
13
- const T = f`: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%}#no-starting-points-panel{flex:none;height:fit-content;--calcite-panel-background-color: var(--calcite-color-foreground-1)}#no-starting-points-notice{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}calcite-tabs{display:flex;flex-direction:column;height:100%}calcite-tab{--calcite-tab-content-space-y: 0}calcite-tab:not([selected]){flex:0}calcite-panel{--calcite-panel-background-color: var(--calcite-color-foreground-1)}calcite-notice{margin:var(--calcite-spacing-md)}`, R = w(b);
11
+ import { u as w } from "../../chunks/useT9n.js";
12
+ import { m as _ } from "../../chunks/useViewModel.js";
13
+ const T = f`: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%}#no-starting-points-panel{flex:none;height:fit-content;--calcite-panel-background-color: var(--calcite-color-foreground-1)}#no-starting-points-notice{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}calcite-tabs{display:flex;flex-direction:column;height:100%}calcite-tab{--calcite-tab-content-space-y: 0}calcite-tab:not([selected]){flex:0}calcite-panel{--calcite-panel-background-color: var(--calcite-color-foreground-1)}calcite-notice{margin:var(--calcite-spacing-md)}`, R = _(b);
14
14
  class $ extends v {
15
15
  constructor() {
16
- super(...arguments), this._messages = _({ blocking: !0 }), this._viewModel = R(this), this._highlightHandles = [], this._handleRunTraceButtonClick = () => {
16
+ super(...arguments), this._messages = w({ blocking: !0 }), this._viewModel = R(this), this._highlightHandles = [], this._handleRunTraceButtonClick = () => {
17
17
  const t = this._traceInputsElement?.traceLocations?.some((a) => a.type === "starting-point");
18
18
  if (this.traceError = void 0, !this._isSubnetworkNameTraceSelected && !t) {
19
19
  this.showNoStartingPointsWarning = !0;
@@ -104,7 +104,8 @@ class $ extends v {
104
104
  traceType: e.traceType,
105
105
  traceConfiguration: t,
106
106
  traceLocations: a ?? [],
107
- resultTypes: e.resultTypes
107
+ resultTypes: e.resultTypes,
108
+ outSpatialReference: this.view?.spatialReference
108
109
  }), this.disableHighlightFeatureResults || this._highlightResults();
109
110
  } catch (n) {
110
111
  const i = n, s = i.details ? { detail: i.details } : void 0;
@@ -1,24 +1,23 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { c as b } from "../../chunks/runtime.js";
3
- import { queryAllJSON as v } from "@arcgis/core/applications/Components/featureUtils.js";
4
- import $ from "@arcgis/core/Color.js";
2
+ import { c as f } from "../../chunks/runtime.js";
3
+ import { queryAllJSON as b } from "@arcgis/core/applications/Components/featureUtils.js";
4
+ import v from "@arcgis/core/Color.js";
5
5
  import "@arcgis/core/core/Error.js";
6
- import * as m from "@arcgis/core/geometry/operators/shapePreservingProjectOperator.js";
7
6
  import "@arcgis/core/Graphic.js";
8
- import F from "@arcgis/core/rest/support/FeatureSet.js";
9
- import { LitElement as w, createEvent as d } from "@arcgis/lumina";
10
- import { log as h, composeMissingPropertyMessage as p, composeEmptyPropertyMessage as L } from "@arcgis/toolkit/log";
11
- import { css as C, html as r } from "lit";
12
- import { u as R } from "../../chunks/useT9n.js";
7
+ import $ from "@arcgis/core/rest/support/FeatureSet.js";
8
+ import { LitElement as F, createEvent as d } from "@arcgis/lumina";
9
+ import { log as h, composeMissingPropertyMessage as m, composeEmptyPropertyMessage as w } from "@arcgis/toolkit/log";
10
+ import { css as L, html as r } from "lit";
11
+ import { u as C } from "../../chunks/useT9n.js";
13
12
  import { h as y } from "../../chunks/feature-utils.js";
14
- import { createRef as T, ref as g } from "lit/directives/ref.js";
15
- const E = C`: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)}`, _ = {
13
+ import { createRef as R, ref as g } from "lit/directives/ref.js";
14
+ 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
15
  dirtyAreasDiscovered: -2147208511,
17
16
  noValidControllers: -2147208935
18
17
  };
19
- class G extends w {
18
+ class E extends F {
20
19
  constructor() {
21
- super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages = R({ blocking: !0 }), this._elementsWithoutLayer = [], this._popoverRef = T(), 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]) => {
20
+ super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages = C({ blocking: !0 }), this._elementsWithoutLayer = [], this._popoverRef = R(), 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
21
  const a = e[0].feature.layer, s = t[0].feature.layer, c = a?.title ?? "", l = s?.title ?? "";
23
22
  return c.localeCompare(l, void 0, { numeric: !0 });
24
23
  }, this._queryFeaturesOnLayer = async ([e, t]) => {
@@ -29,12 +28,12 @@ class G extends w {
29
28
  }
30
29
  const l = s.createQuery();
31
30
  l.gdbVersion = this.utilityNetwork?.gdbVersion, l.objectIds = c.map((i) => i.objectId), l.outFields = ["*"];
32
- const { features: n } = F.fromJSON(await v(s, l)), o = await Promise.all(n.map(async (i) => {
31
+ const { features: n } = $.fromJSON(await b(s, l)), o = await Promise.all(n.map(async (i) => {
33
32
  i.layer = s.type === "subtype-group" ? s.findSublayerForFeature(i) : s, i.origin = i.layer;
34
33
  const u = i.layer;
35
34
  if (i.getEffectivePopupTemplate(this._defaultPopupTemplateEnabled) || (i.popupTemplate = u.createPopupTemplate()), u && "getFeatureTitle" in u) {
36
- const f = await u.getFeatureTitle(i) || y(i);
37
- return { feature: i, label: f };
35
+ const _ = await u.getFeatureTitle(i) || y(i);
36
+ return { feature: i, label: _ };
38
37
  }
39
38
  return { feature: i, label: y(i) };
40
39
  }));
@@ -43,7 +42,7 @@ class G extends w {
43
42
  e && (this._aggregatedGeometryComponentElement = e);
44
43
  }, this._featuresRefChange = (e) => {
45
44
  e && (this._featuresComponentElement = e);
46
- }, this._aggregatedGeometryDisabled = !1, this.aggregatedGeometryGraphicsColor = new $([255, 255, 0, 0.6]), this.hideFeatureResults = !1, this.isElementsSelected = !1, this.layers = [], this.state = "ready", this.traceResultFeatures = [], this.autoDestroyDisabled = !1, this.arcgisAggregatedGeometryGraphicsColorChange = d(), this.arcgisHideGraphicsChange = d(), this.arcgisSelectedLayerChange = d(), this.arcgisSelectedResultTypeChange = d(), this.arcgisTraceResultFeaturesReady = d(), this._renderLayerListItem = ([, e]) => {
45
+ }, this._aggregatedGeometryDisabled = !1, 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 = d(), this.arcgisHideGraphicsChange = d(), this.arcgisSelectedLayerChange = d(), this.arcgisSelectedResultTypeChange = d(), this.arcgisTraceResultFeaturesReady = d(), this._renderLayerListItem = ([, e]) => {
47
46
  if (!e.length)
48
47
  return null;
49
48
  const t = e[0].feature.layer, a = t?.title || this._messages.unknown;
@@ -57,7 +56,7 @@ class G extends w {
57
56
  this.properties = { _aggregatedGeometryDisabled: 16, aggregatedGeometryGraphicsColor: 0, hideFeatureResults: 5, featuresFromSelectedLayer: 32, isElementsSelected: 5, layers: 0, messageOverrides: 0, numResults: 32, referenceElement: 1, selectedFeature: 0, selectedLayer: 0, state: 1, traceConfigTitle: 1, traceError: 0, traceResult: 0, traceResultFeatures: 0, utilityNetwork: 0, view: 0, autoDestroyDisabled: 5 };
58
57
  }
59
58
  static {
60
- this.styles = E;
59
+ this.styles = T;
61
60
  }
62
61
  get featuresFromSelectedLayer() {
63
62
  return this._featuresFromSelectedLayer.map(({ feature: e }) => e);
@@ -72,7 +71,7 @@ class G extends w {
72
71
  this._layerIdToFeatures.clear(), this._subtypeCodeToFeatures.clear(), this._sourceIdToElements.clear(), this._aggregatedGeometryComponentElement?.destroy(), this._featuresComponentElement?.destroy(), await this.manager.destroy();
73
72
  }
74
73
  load() {
75
- this.traceResult && (this._setSourceIdToElements(), this._loadDependencies().then(() => this._queryTraceResultsFeatures()).then(() => this._loadProjectOperator()).finally(() => {
74
+ this.traceResult && (this._setSourceIdToElements(), this._loadDependencies().then(() => this._queryTraceResultsFeatures()).finally(() => {
76
75
  this.arcgisTraceResultFeaturesReady.emit(), this.state = "ready";
77
76
  }));
78
77
  }
@@ -80,7 +79,7 @@ class G extends w {
80
79
  e.has("isElementsSelected") && this.arcgisSelectedResultTypeChange.emit(), e.has("selectedLayer") && this.arcgisSelectedLayerChange.emit(), e.has("traceResult") && (this.isElementsSelected = !1, this.traceResult || (this.traceResultFeatures = [], this._elementsWithoutLayer = [])), (e.has("layers") || e.has("utilityNetwork")) && this._loadDependencies();
81
80
  }
82
81
  loaded() {
83
- this.utilityNetwork || h("warn", this, p("utilityNetwork")), this.layers.length === 0 && h("warn", this, L("layers")), this.view || h("warn", this, p("view"));
82
+ this.utilityNetwork || h("warn", this, m("utilityNetwork")), this.layers.length === 0 && h("warn", this, w("layers")), this.view || h("warn", this, m("view"));
84
83
  }
85
84
  disconnectedCallback() {
86
85
  super.disconnectedCallback(), this._layerIdToLayer.clear();
@@ -114,10 +113,6 @@ class G extends w {
114
113
  const a = this._unLayers.filter((s) => !s.loaded).map((s) => s.load());
115
114
  a.length > 0 && (this.state = "loading", await Promise.allSettled(a));
116
115
  }
117
- async _loadProjectOperator() {
118
- const { aggregatedGeometry: e } = this.traceResult;
119
- e && !m.isLoaded() && await m.load();
120
- }
121
116
  async _queryTraceResultsFeatures() {
122
117
  const e = Array.from(this._sourceIdToElements.entries());
123
118
  if (!e.length)
@@ -211,10 +206,10 @@ class G extends w {
211
206
  _renderErrorLanding(e) {
212
207
  let t = e.message;
213
208
  switch (e.details?.raw?.extendedCode) {
214
- case _.dirtyAreasDiscovered:
209
+ case p.dirtyAreasDiscovered:
215
210
  t = this._messages.traceErrors.dirtyAreasDiscovered;
216
211
  break;
217
- case _.noValidControllers:
212
+ case p.noValidControllers:
218
213
  t = this._messages.traceErrors.noValidControllers;
219
214
  break;
220
215
  }
@@ -227,7 +222,7 @@ class G extends w {
227
222
  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>`;
228
223
  }
229
224
  }
230
- b("arcgis-utility-network-trace-results", G);
225
+ f("arcgis-utility-network-trace-results", E);
231
226
  export {
232
- G as ArcgisUtilityNetworkTraceResults
227
+ E as ArcgisUtilityNetworkTraceResults
233
228
  };