@arcgis/map-components 5.1.0-next.12 → 5.1.0-next.14

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 (257) hide show
  1. package/dist/cdn/{7JQZBAFA.js → 255MJSL7.js} +1 -1
  2. package/dist/cdn/{BUE7MOVD.js → 2632C726.js} +1 -1
  3. package/dist/cdn/{EGN3YTD6.js → 2ID4LW4Y.js} +1 -1
  4. package/dist/cdn/{YFUI4F5L.js → 2LRWWFCA.js} +1 -1
  5. package/dist/cdn/2XOP6ODR.js +2 -0
  6. package/dist/cdn/{NRBM3YR6.js → 2XULQGZU.js} +1 -1
  7. package/dist/cdn/{KY2UAUNI.js → 2YBN6D3R.js} +1 -1
  8. package/dist/cdn/{UM2FDZJJ.js → 36FHKW25.js} +1 -1
  9. package/dist/cdn/{KYOYYCFY.js → 3IBLMFG2.js} +1 -1
  10. package/dist/cdn/{GKW3DDEQ.js → 3KOO4QMQ.js} +1 -1
  11. package/dist/cdn/{64OEHFBZ.js → 3O62Y4XU.js} +1 -1
  12. package/dist/cdn/{U4QW6VHU.js → 4723UCGJ.js} +1 -1
  13. package/dist/cdn/{JFDN4YD7.js → 4E76WGF2.js} +1 -1
  14. package/dist/cdn/{FYTMMPPG.js → 4GMSBMTS.js} +1 -1
  15. package/dist/cdn/{KAXJKSFB.js → 4JLBYQRJ.js} +1 -1
  16. package/dist/cdn/4S2ZIUO2.js +2 -0
  17. package/dist/cdn/{ZURN5EZI.js → 4WDHTN24.js} +1 -1
  18. package/dist/cdn/{DTVW3MYT.js → 4X3QNLL2.js} +1 -1
  19. package/dist/cdn/{EENOVGOS.js → 5H2OW6X5.js} +1 -1
  20. package/dist/cdn/5IXIFOQE.js +2 -0
  21. package/dist/cdn/{KNAUIRT6.js → 63HF2QYP.js} +1 -1
  22. package/dist/cdn/{TUW6NLYY.js → 6IUWB6ML.js} +1 -1
  23. package/dist/cdn/6PXPLFFB.js +2 -0
  24. package/dist/cdn/{UAO23YMW.js → 6XQPM3XF.js} +1 -1
  25. package/dist/cdn/6YZHULFG.js +2 -0
  26. package/dist/cdn/{I5QTPPFJ.js → 7CFAFS3P.js} +1 -1
  27. package/dist/cdn/{UNX4CKAF.js → 7D3Z55D3.js} +1 -1
  28. package/dist/cdn/{RRXH4CSV.js → 7SCKZLOG.js} +1 -1
  29. package/dist/cdn/7SIDRD63.js +2 -0
  30. package/dist/cdn/{7ZAVSDBZ.js → 7SLU4JV4.js} +1 -1
  31. package/dist/cdn/{GHFKQEFW.js → A5JTB4SB.js} +1 -1
  32. package/dist/cdn/{WW6L6XX4.js → AEDEEK6H.js} +1 -1
  33. package/dist/cdn/{F4HWT5H3.js → ANLNLB7F.js} +1 -1
  34. package/dist/cdn/{A44ZCOCX.js → ATG3WC6M.js} +1 -1
  35. package/dist/cdn/{RP5SO6BA.js → AWONSBWA.js} +1 -1
  36. package/dist/cdn/{BUOIT34V.js → B4IPMHN5.js} +1 -1
  37. package/dist/cdn/{UKNKW6MH.js → B4UXMUWZ.js} +1 -1
  38. package/dist/cdn/{PMQLTMQ4.js → BN6DAJ2Q.js} +1 -1
  39. package/dist/cdn/{XMSGTOUV.js → BOM3XB6A.js} +1 -1
  40. package/dist/cdn/BQRJK2MF.js +2 -0
  41. package/dist/cdn/{5RGFRTJS.js → BSOU3YSC.js} +1 -1
  42. package/dist/cdn/{62WRVJ3U.js → BUUMJJ3W.js} +1 -1
  43. package/dist/cdn/{M4L5EDRB.js → BX6WWIAY.js} +1 -1
  44. package/dist/cdn/{MQ6HO6LA.js → C3MVYUAO.js} +1 -1
  45. package/dist/cdn/C4FXVPMR.js +2 -0
  46. package/dist/cdn/{HH6BDERO.js → CJX4GSEZ.js} +1 -1
  47. package/dist/cdn/{3YA25S2J.js → CMI4ZWGU.js} +1 -1
  48. package/dist/cdn/COSZXJ2Q.js +2 -0
  49. package/dist/cdn/{2EJ4XRH4.js → CUNZDZ3C.js} +1 -1
  50. package/dist/cdn/CWODI2VY.js +2 -0
  51. package/dist/cdn/{A2JO7DWO.js → DDYVX52H.js} +1 -1
  52. package/dist/cdn/{2MTWUJIA.js → DEJGWX76.js} +1 -1
  53. package/dist/cdn/{CC53K2CR.js → DG7CXNOU.js} +1 -1
  54. package/dist/cdn/{FB6YQKF2.js → DMGQRIIZ.js} +1 -1
  55. package/dist/cdn/E44RUDE7.js +2 -0
  56. package/dist/cdn/{TCG6VGIB.js → ELIGNLIF.js} +1 -1
  57. package/dist/cdn/{EQCNO3G4.js → EM6YZ3JD.js} +1 -1
  58. package/dist/cdn/EQPJBPD5.js +2 -0
  59. package/dist/cdn/{KHM3S4Q6.js → F2JFRFTT.js} +1 -1
  60. package/dist/cdn/{AJHRJ5EA.js → FDCE7TCR.js} +1 -1
  61. package/dist/cdn/{2NOL7QIE.js → FNJ3HMEN.js} +1 -1
  62. package/dist/cdn/{OKXZJQ2B.js → FTQ4FNZO.js} +1 -1
  63. package/dist/cdn/{AEYZDEAH.js → FUXY5EKO.js} +1 -1
  64. package/dist/cdn/{OD5DHUHZ.js → FZDIAVC4.js} +1 -1
  65. package/dist/cdn/{VNOZYJLP.js → G7QZJNAC.js} +1 -1
  66. package/dist/cdn/{EX22SAPL.js → GF4QAY6O.js} +1 -1
  67. package/dist/cdn/{556MC5SF.js → GHVLDDZ3.js} +1 -1
  68. package/dist/cdn/{WTMMFDEH.js → GIAAX7SI.js} +1 -1
  69. package/dist/cdn/GJPX2JLE.js +2 -0
  70. package/dist/cdn/HDL76VD5.js +2 -0
  71. package/dist/cdn/{GNGZFV2C.js → HVKFQS3R.js} +1 -1
  72. package/dist/cdn/{37TNG76C.js → HZOWV5JG.js} +1 -1
  73. package/dist/cdn/{LG4PZVHS.js → I46QTMEJ.js} +1 -1
  74. package/dist/cdn/{5ITF7Q7U.js → I4SD3GKU.js} +1 -1
  75. package/dist/cdn/{3XMPN66U.js → I6EE4PLM.js} +1 -1
  76. package/dist/cdn/{NGKNECON.js → ILVKM7IB.js} +1 -1
  77. package/dist/cdn/{ORH27QWU.js → IOYNCKBD.js} +1 -1
  78. package/dist/cdn/{QVMTO5BV.js → IUFWY6SY.js} +1 -1
  79. package/dist/cdn/{SZ5MNKOW.js → IVHQAQZW.js} +1 -1
  80. package/dist/cdn/{6F6VOBIA.js → IX5YLGNO.js} +1 -1
  81. package/dist/cdn/{UKKUFJLL.js → J275QP5E.js} +1 -1
  82. package/dist/cdn/JSD5CN5Q.js +2 -0
  83. package/dist/cdn/{ZD5FJHIQ.js → JSISELHB.js} +1 -1
  84. package/dist/cdn/{4EAZ4PIQ.js → JUVPY4PW.js} +1 -1
  85. package/dist/cdn/{K27JJT2P.js → JWGHJITH.js} +1 -1
  86. package/dist/cdn/{NZAO2BVV.js → L6E647YW.js} +1 -1
  87. package/dist/cdn/{C4DJABUI.js → LA34IEDJ.js} +1 -1
  88. package/dist/cdn/LB32PLWG.js +2 -0
  89. package/dist/cdn/{42UR6TXZ.js → LJLCKW5C.js} +1 -1
  90. package/dist/cdn/{C7YN3AZA.js → LQNM7YK2.js} +1 -1
  91. package/dist/cdn/{R4V6HGJH.js → LYJM7ALP.js} +1 -1
  92. package/dist/cdn/{OCEXQCFT.js → MIGWB3PK.js} +1 -1
  93. package/dist/cdn/{RUB6EORR.js → MIXNJBCA.js} +1 -1
  94. package/dist/cdn/{ZVTPU2MO.js → MR4WJFX6.js} +1 -1
  95. package/dist/cdn/{NSGDR7V5.js → MSWQUZSG.js} +1 -1
  96. package/dist/cdn/{GYTQDFSL.js → MWS2QVII.js} +1 -1
  97. package/dist/cdn/{X26CF5AU.js → NFEIF3A6.js} +1 -1
  98. package/dist/cdn/{7YLXQNEC.js → NHBPPRG2.js} +1 -1
  99. package/dist/cdn/{XE5UPQ5E.js → NKO7ZJZN.js} +1 -1
  100. package/dist/cdn/{UHFSSX2G.js → NLRKDVIJ.js} +1 -1
  101. package/dist/cdn/{LZQCXN6A.js → NPEA453T.js} +1 -1
  102. package/dist/cdn/{HO4JUZ6N.js → NQ3Z6LXI.js} +1 -1
  103. package/dist/cdn/{VU3SJK5Z.js → NWWJHV2L.js} +1 -1
  104. package/dist/cdn/{YA6FUJR2.js → O2BAIE3M.js} +1 -1
  105. package/dist/cdn/{A7JPWYKR.js → OJCZ3DV5.js} +1 -1
  106. package/dist/cdn/{TP6I2LJO.js → OKXFUFPW.js} +1 -1
  107. package/dist/cdn/{M65HMJZA.js → PJHO2DXQ.js} +1 -1
  108. package/dist/cdn/{ZD25GJYW.js → PR47Q75I.js} +1 -1
  109. package/dist/cdn/{AP2IFWYH.js → PX63EYUH.js} +1 -1
  110. package/dist/cdn/{MAGJWMWM.js → PXJQJ6MY.js} +1 -1
  111. package/dist/cdn/{MDCB7SO4.js → QEXDU6P7.js} +1 -1
  112. package/dist/cdn/{TJG4UE24.js → QHSQUBMZ.js} +1 -1
  113. package/dist/cdn/QUXORNHT.js +2 -0
  114. package/dist/cdn/{XRP25NGI.js → RG5JFGHQ.js} +1 -1
  115. package/dist/cdn/{ZM2YXU7Y.js → RMGBO7V2.js} +1 -1
  116. package/dist/cdn/{CVBNRF34.js → S726H24O.js} +1 -1
  117. package/dist/cdn/{XXZ3CKTX.js → SKUQ3U6A.js} +1 -1
  118. package/dist/cdn/{NRV7VFJ7.js → SVRZWJDO.js} +1 -1
  119. package/dist/cdn/{WOV3LB6K.js → TE3F7O3C.js} +1 -1
  120. package/dist/cdn/{YC6JWXOW.js → TFKBGMV2.js} +1 -1
  121. package/dist/cdn/{5LBJB4MP.js → TK4IQ72L.js} +1 -1
  122. package/dist/cdn/TKFT2JL7.js +2 -0
  123. package/dist/cdn/TKK5PRP5.js +2 -0
  124. package/dist/cdn/{NWK2WHZF.js → TMXUHRLR.js} +1 -1
  125. package/dist/cdn/{GY5226CJ.js → UNY32K3R.js} +1 -1
  126. package/dist/cdn/US7LKUHP.js +2 -0
  127. package/dist/cdn/{3DO7PVNW.js → VD6EJLFO.js} +1 -1
  128. package/dist/cdn/VYAUH7PN.js +2 -0
  129. package/dist/cdn/{OSPWEZQJ.js → W5E542JG.js} +1 -1
  130. package/dist/cdn/{HB3W3CO5.js → WCIXC6UR.js} +1 -1
  131. package/dist/cdn/{TPOLS4YM.js → WPWBOKOR.js} +1 -1
  132. package/dist/cdn/{WGWNMYUH.js → WZDTXSRM.js} +1 -1
  133. package/dist/cdn/{PISCYSA5.js → X35NN2TZ.js} +1 -1
  134. package/dist/cdn/{XMZSFKKO.js → X4AA7QDM.js} +1 -1
  135. package/dist/cdn/{QXUY4FOY.js → X5NCN674.js} +1 -1
  136. package/dist/cdn/{63P5VYGP.js → XLB7XDRF.js} +1 -1
  137. package/dist/cdn/{C24SOTLL.js → Y4JTATJ2.js} +1 -1
  138. package/dist/cdn/{J55YUTPM.js → Y6W27QLR.js} +1 -1
  139. package/dist/cdn/{T2ZF4XIZ.js → ZERLO6VI.js} +1 -1
  140. package/dist/cdn/index.js +1 -1
  141. package/dist/chunks/esri-main.js +1 -1
  142. package/dist/chunks/measurementUtils.js +3 -3
  143. package/dist/components/arcgis-area-measurement-2d/customElement.js +62 -74
  144. package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +3 -3
  145. package/dist/components/arcgis-area-measurement-3d/customElement.js +52 -64
  146. package/dist/components/arcgis-basemap-gallery/customElement.d.ts +1 -1
  147. package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +5 -7
  148. package/dist/components/arcgis-basemap-toggle/customElement.d.ts +3 -3
  149. package/dist/components/arcgis-bookmarks/customElement.d.ts +2 -2
  150. package/dist/components/arcgis-bookmarks/types.d.ts +1 -1
  151. package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +4 -6
  152. package/dist/components/arcgis-clipboard/customElement.d.ts +2 -2
  153. package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +3 -3
  154. package/dist/components/arcgis-daylight/customElement.d.ts +1 -1
  155. package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +59 -71
  156. package/dist/components/arcgis-directions/customElement.d.ts +21 -5
  157. package/dist/components/arcgis-directions/customElement.js +5 -5
  158. package/dist/components/arcgis-distance-measurement-2d/customElement.js +58 -70
  159. package/dist/components/arcgis-editor/customElement.d.ts +2 -3
  160. package/dist/components/arcgis-elevation-profile/customElement.d.ts +1 -1
  161. package/dist/components/arcgis-elevation-profile/customElement.js +100 -111
  162. package/dist/components/arcgis-elevation-profile-settings/customElement.js +22 -22
  163. package/dist/components/arcgis-feature/customElement.js +6 -6
  164. package/dist/components/arcgis-feature-form/customElement.d.ts +1 -2
  165. package/dist/components/arcgis-feature-image/customElement.d.ts +5 -5
  166. package/dist/components/arcgis-feature-table/customElement.d.ts +72 -24
  167. package/dist/components/arcgis-feature-table/customElement.js +28 -13
  168. package/dist/components/arcgis-feature-templates/customElement.d.ts +4 -6
  169. package/dist/components/arcgis-feature-title/customElement.d.ts +3 -3
  170. package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +60 -60
  171. package/dist/components/arcgis-feature-utility-network-associations/customElement.js +55 -55
  172. package/dist/components/arcgis-features/customElement.js +25 -31
  173. package/dist/components/arcgis-floor-filter/customElement.d.ts +2 -2
  174. package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +1 -1
  175. package/dist/components/arcgis-home/customElement.d.ts +2 -2
  176. package/dist/components/arcgis-layer-list/customElement.d.ts +9 -11
  177. package/dist/components/arcgis-legend/customElement.d.ts +3 -3
  178. package/dist/components/arcgis-legend-classic-element/customElement.js +22 -24
  179. package/dist/components/arcgis-link-chart/customElement.d.ts +15 -17
  180. package/dist/components/arcgis-link-chart/customElement.js +10 -15
  181. package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.d.ts +1 -1
  182. package/dist/components/arcgis-map/customElement.d.ts +16 -18
  183. package/dist/components/arcgis-map/customElement.js +1 -6
  184. package/dist/components/arcgis-multi-feature-form/customElement.d.ts +7 -9
  185. package/dist/components/arcgis-navigation-toggle/customElement.d.ts +1 -1
  186. package/dist/components/arcgis-paste/ClipboardMove.d.ts +3 -3
  187. package/dist/components/arcgis-paste/PasteViewModel.d.ts +9 -9
  188. package/dist/components/arcgis-paste/commands/PasteCommand.d.ts +3 -3
  189. package/dist/components/arcgis-paste/commands/PasteCustomCommand.d.ts +2 -2
  190. package/dist/components/arcgis-paste/customElement.d.ts +4 -4
  191. package/dist/components/arcgis-popup/customElement.js +106 -99
  192. package/dist/components/arcgis-popup/types.d.ts +1 -1
  193. package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +2 -2
  194. package/dist/components/arcgis-presentation/customElement.d.ts +1 -1
  195. package/dist/components/arcgis-print/customElement.d.ts +16 -7
  196. package/dist/components/arcgis-print/customElement.js +7 -7
  197. package/dist/components/arcgis-print-layout-advanced-options/customElement.js +12 -12
  198. package/dist/components/arcgis-print-layout-panel/customElement.js +6 -6
  199. package/dist/components/arcgis-print-main-panel/customElement.js +7 -7
  200. package/dist/components/arcgis-reverse-geocode-list/customElement.d.ts +1 -1
  201. package/dist/components/arcgis-scale-bar/customElement.d.ts +1 -1
  202. package/dist/components/arcgis-scene/customElement.d.ts +21 -23
  203. package/dist/components/arcgis-scene/customElement.js +8 -13
  204. package/dist/components/arcgis-search/customElement.d.ts +10 -12
  205. package/dist/components/arcgis-search/customElement.js +8 -9
  206. package/dist/components/arcgis-shadow-cast/customElement.d.ts +3 -3
  207. package/dist/components/arcgis-sketch/customElement.d.ts +3 -4
  208. package/dist/components/arcgis-slice/types.d.ts +2 -2
  209. package/dist/components/arcgis-table-list/customElement.d.ts +7 -8
  210. package/dist/components/arcgis-time-slider/customElement.d.ts +3 -3
  211. package/dist/components/arcgis-time-zone-label/customElement.d.ts +1 -1
  212. package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.d.ts +14 -2
  213. package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.js +7 -7
  214. package/dist/components/arcgis-utility-network-trace/customElement.d.ts +7 -3
  215. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +74 -14
  216. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +47 -40
  217. package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +12 -0
  218. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +80 -65
  219. package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +4 -0
  220. package/dist/components/arcgis-utility-network-trace-location/customElement.js +17 -14
  221. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +13 -0
  222. package/dist/components/arcgis-utility-network-trace-results/customElement.js +39 -26
  223. package/dist/components/arcgis-version-management/customElement.d.ts +3 -4
  224. package/dist/components/arcgis-volume-measurement/customElement.d.ts +3 -3
  225. package/dist/components/arcgis-volume-measurement/customElement.js +84 -84
  226. package/dist/components/types.d.ts +8 -6
  227. package/dist/docs/api.json +1 -1
  228. package/dist/docs/docs.json +1 -1
  229. package/dist/docs/vscode.html-custom-data.json +1 -1
  230. package/dist/docs/web-types.json +1 -1
  231. package/dist/loader.js +13 -13
  232. package/dist/types/lumina.d.ts +6 -6
  233. package/dist/types/preact.d.ts +6 -6
  234. package/dist/types/react.d.ts +6 -6
  235. package/dist/types/stencil.d.ts +6 -6
  236. package/package.json +4 -4
  237. package/dist/cdn/22LNBUKE.js +0 -2
  238. package/dist/cdn/6CGPJGIB.js +0 -2
  239. package/dist/cdn/A4UJ53JS.js +0 -2
  240. package/dist/cdn/CTSWZC3O.js +0 -2
  241. package/dist/cdn/CWJ5OA5A.js +0 -2
  242. package/dist/cdn/D73JFV2R.js +0 -2
  243. package/dist/cdn/DINM6JDS.js +0 -2
  244. package/dist/cdn/EL62JS5C.js +0 -2
  245. package/dist/cdn/EM7YCHTU.js +0 -2
  246. package/dist/cdn/HE6QV4XG.js +0 -2
  247. package/dist/cdn/IDDSHZVB.js +0 -2
  248. package/dist/cdn/JRPIJ24K.js +0 -2
  249. package/dist/cdn/KEFY4XPI.js +0 -2
  250. package/dist/cdn/LHEP4QSS.js +0 -2
  251. package/dist/cdn/LIEE5WCD.js +0 -2
  252. package/dist/cdn/MSMDSEFM.js +0 -2
  253. package/dist/cdn/N3BD4UQD.js +0 -2
  254. package/dist/cdn/QJOQNSYB.js +0 -2
  255. package/dist/cdn/S6G6XXTM.js +0 -2
  256. package/dist/cdn/TM5C2P2F.js +0 -2
  257. package/dist/cdn/Z4F6DHBB.js +0 -2
@@ -1,7 +1,7 @@
1
1
  /// <reference path="../../index.d.ts" />
2
2
  import type Color from "@arcgis/core/Color.js";
3
- import type AggregatedGeometry from "@arcgis/core/rest/networks/support/AggregatedGeometry";
4
- import type MapView from "@arcgis/core/views/MapView";
3
+ import type AggregatedGeometry from "@arcgis/core/rest/networks/support/AggregatedGeometry.js";
4
+ import type MapView from "@arcgis/core/views/MapView.js";
5
5
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
6
6
  import type { T9nMeta } from "@arcgis/lumina/controllers";
7
7
 
@@ -35,6 +35,16 @@ export abstract class ArcgisUtilityNetworkAggregatedGeometry extends LitElement
35
35
  };
36
36
  showGraphics: string;
37
37
  }>;
38
+ /**
39
+ * If true, the component will not be destroyed automatically when it is
40
+ * disconnected from the document. This is useful when you want to move the
41
+ * component to a different place on the page, or temporarily hide it. If this
42
+ * is set, make sure to call the [destroy()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-aggregated-geometry/#destroy) method when you are done to
43
+ * prevent memory leaks.
44
+ *
45
+ * @default false
46
+ */
47
+ accessor autoDestroyDisabled: boolean;
38
48
  /** @required */
39
49
  accessor geometry: AggregatedGeometry | undefined;
40
50
  /**
@@ -48,6 +58,8 @@ export abstract class ArcgisUtilityNetworkAggregatedGeometry extends LitElement
48
58
  accessor state: State;
49
59
  /** @required */
50
60
  accessor view: MapView | undefined;
61
+ /** Permanently destroy the component. */
62
+ destroy(): Promise<void>;
51
63
  readonly arcgisHideGraphicsChange: import("@arcgis/lumina").TargetedEvent<this, boolean>;
52
64
  readonly "@eventTypes": {
53
65
  arcgisHideGraphicsChange: ArcgisUtilityNetworkAggregatedGeometry["arcgisHideGraphicsChange"]["detail"];
@@ -29,31 +29,31 @@ class k extends G {
29
29
  listMode: "hide",
30
30
  title: e
31
31
  }), p(this.view, this._graphicsLayer);
32
- }, this.hideGraphics = !1, this.graphicsColor = new n([255, 255, 0, 0.6]), this.state = "ready", this.arcgisHideGraphicsChange = f();
32
+ }, this.hideGraphics = !1, this.graphicsColor = new n([255, 255, 0, 0.6]), this.state = "ready", this.autoDestroyDisabled = !1, this.arcgisHideGraphicsChange = f();
33
33
  }
34
34
  static {
35
- this.properties = { geometry: 0, hideGraphics: 5, graphicsColor: 0, state: 1, view: 0 };
35
+ this.properties = { geometry: 0, hideGraphics: 5, graphicsColor: 0, state: 1, view: 0, autoDestroyDisabled: 5 };
36
36
  }
37
37
  static {
38
38
  this.styles = S;
39
39
  }
40
+ async destroy() {
41
+ this.view?.map && this._graphicsLayer && this.view.map.remove(this._graphicsLayer), await this.manager.destroy();
42
+ }
40
43
  connectedCallback() {
41
44
  super.connectedCallback(), this.view && this._graphicsLayer && p(this.view, this._graphicsLayer);
42
45
  }
43
46
  load() {
44
47
  !this.geometry || !this.view?.map || this._loadProjectOperator().then(() => this._createGraphicsLayer());
45
48
  }
46
- loaded() {
47
- 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"));
48
- }
49
49
  willUpdate(i) {
50
50
  if (i.has("graphicsColor") && this._updateGraphicSymbols(), i.has("geometry") && (this._graphicsLayer?.removeAll(), this._addAggregatedGeometryToView()), i.has("view")) {
51
51
  const e = i.get("view");
52
52
  e?.map && this._graphicsLayer && (e.map.remove(this._graphicsLayer), this._createGraphicsLayer(), this._addAggregatedGeometryToView());
53
53
  }
54
54
  }
55
- disconnectedCallback() {
56
- super.disconnectedCallback(), this.view?.map && this._graphicsLayer && this.view.map.remove(this._graphicsLayer);
55
+ 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"));
57
57
  }
58
58
  _handleShowGraphicsChange() {
59
59
  this.hideGraphics = !this.hideGraphics, this.hideGraphics ? this._graphicsLayer?.removeAll() : this._graphicsLayer?.addMany(this._projectedGraphics), this.arcgisHideGraphicsChange.emit(this.hideGraphics);
@@ -2,18 +2,22 @@
2
2
  import type MapView from "@arcgis/core/views/MapView.js";
3
3
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
4
4
  import type { ArcgisReferenceElement, IconName } from "../types.js";
5
- import type { UtilityNetworkTraceViewModelRemoveResultAreaEvent, UtilityNetworkTraceViewModelAddResultAreaEvent, UtilityNetworkTraceViewModelAddFlagErrorEvent, UtilityNetworkTraceViewModelAddFlagCompleteEvent, UtilityNetworkTraceViewModelAddFlagEvent, TraceResultExtend } from "@arcgis/core/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel";
6
- import type { GraphicColor, FlagProperty, ResultAreaPropertiesExtend, UtilityNetworkTraceViewModelState } from "@arcgis/core/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js";
5
+ import type { UtilityNetworkTraceViewModelRemoveResultAreaEvent, UtilityNetworkTraceViewModelAddResultAreaEvent, UtilityNetworkTraceViewModelAddFlagErrorEvent, UtilityNetworkTraceViewModelAddFlagCompleteEvent, UtilityNetworkTraceViewModelAddFlagEvent, TraceResultExtend, GraphicColor, FlagProperty, ResultAreaPropertiesExtend, UtilityNetworkTraceViewModelState } from "@arcgis/core/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js";
7
6
  import type { Icon } from "@esri/calcite-components/components/calcite-icon";
8
7
  import type { InputSetting } from "@arcgis/core/widgets/UtilityNetworkTrace.js";
9
8
 
10
9
  /**
11
- * Utility Network Trace component provides a way to run traces in a Utility Network based on connectivity or traversability from set input flags. Input flags (starting points and barriers) can be set by clicking the view.
10
+ * > [!WARNING]
11
+ * >
12
+ * > This component is **deprecated**. [arcgis-utility-network-trace-analysis](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-analysis/) is the preferred component for utility network tracing and should be used for all new development.
13
+ *
14
+ * Utility Network Trace component provides a way to run traces in a Utility Network based on connectivity or traversability from set trace locations. Trace locations (starting points and barriers) can be set by clicking the view.
12
15
  *
13
16
  * > The Utility Network Trace component does not support proxied feature services or feature services that utilize stored credentials.
14
17
  *
15
18
  * Note: Sign in to access the data in this sample, U/P: `viewer01`/`I68VGU^nMurF`
16
19
  *
20
+ * @deprecated since 5.0, use [arcgis-utility-network-trace-analysis](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-analysis/) instead.
17
21
  * @since 4.28
18
22
  */
19
23
  export abstract class ArcgisUtilityNetworkTrace extends LitElement {
@@ -11,6 +11,63 @@ import type { UtilityNetworkTraceAnalysisState } from "@arcgis/core/networks/Uti
11
11
 
12
12
  export type UtilityNetworkTraceAnalysisDisplayMode = "add-spatial-feature-list" | "add-spatial-feature" | "add-spatial-instructions" | "default";
13
13
 
14
+ /**
15
+ * ## Overview
16
+ *
17
+ * The Utility Network Trace Analysis component allows users to run traces and view trace results in a utility network.
18
+ *
19
+ * - The component supports selecting a utility network and a named trace configuration in that utility network. Both the utility network and trace configuration must be [stored in the map](https://developers.arcgis.com/javascript/latest/references/core/WebMap/#utilityNetworks).
20
+ * - Trace locations (starting points and barriers) are set by selecting features on the view.
21
+ * - When a subnetwork-based trace is selected, the component displays the domain, tier, and target tier specified by the selected named trace configuration.
22
+ * - If the user selects a subnetwork trace with a specified subnetwork name, the component provides an option to choose a subnetwork name instead of starting location(s) to run the trace with.
23
+ *
24
+ * Supported trace types are: `connected`, `upstream`, `downstream`, `shortest-path`, `subnetwork`, `subnetwork-controller`, `loops`, and `isolation`.
25
+ *
26
+ * The component can display the following from a trace result: elements (as [features](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-analysis/#traceResultFeatures)), aggregated geometries, and function results.
27
+ *
28
+ * > [!WARNING]
29
+ * >
30
+ * > The Utility Network Trace Analysis component does not support proxied feature services or feature services that utilize stored credentials.
31
+ * >
32
+ * > This component also does not support `path` and `circuit` trace types or the `paths` and `circuits` result types.
33
+ *
34
+ * ## Working with nonspatial objects
35
+ *
36
+ * The Utility Network Trace Analysis component supports selecting nonspatial objects as trace locations by traversing associations.
37
+ *
38
+ * When selecting a trace location or viewing a trace result feature, information about the feature is displayed according to the
39
+ * [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/) of the layer that the feature belongs to.
40
+ * If the feature's layer has no PopupTemplate, a default template is used to display the feature's attributes.
41
+ *
42
+ * To select a nonspatial object as a trace location, first select a spatial feature on the map that is associated with the target nonspatial object.
43
+ * The spatial feature's layer must have a PopupTemplate that includes a [UtilityNetworkAssociationsContent](https://developers.arcgis.com/javascript/latest/references/core/popup/content/UtilityNetworkAssociationsContent/).
44
+ * Navigate through the spatial feature's associations to the target nonspatial object, then add the object as a trace location.
45
+ *
46
+ * ## Examples
47
+ *
48
+ * This component can be used slotted into an [arcgis-map](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/):
49
+ *
50
+ * ```html
51
+ * <arcgis-map item-id="471eb0bf37074b1fbb972b1da70fb310">
52
+ * <arcgis-utility-network-trace-analysis slot="bottom-left"></arcgis-utility-network-trace-analysis>
53
+ * </arcgis-map>
54
+ * ```
55
+ *
56
+ * Alternatively, this component can be used outside of a map by providing a [referenceElement](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-analysis/#referenceElement):
57
+ *
58
+ * ```html
59
+ * <calcite-shell>
60
+ * <calcite-shell-panel slot="panel-start" position="start" width-scale="l">
61
+ * <arcgis-utility-network-trace-analysis reference-element="#map-element"></arcgis-utility-network-trace-analysis>
62
+ * </calcite-shell-panel>
63
+ * <arcgis-map id="map-element" item-id="471eb0bf37074b1fbb972b1da70fb310"></arcgis-map>
64
+ * </calcite-shell>
65
+ * ```
66
+ *
67
+ * Note: Sign in to access the data in this demo, U/P: `viewer01`/`I68VGU^nMurF`
68
+ *
69
+ * @since 5.0
70
+ */
14
71
  export abstract class ArcgisUtilityNetworkTraceAnalysis extends LitElement {
15
72
  /** @internal */
16
73
  protected _messages: {
@@ -71,14 +128,14 @@ export abstract class ArcgisUtilityNetworkTraceAnalysis extends LitElement {
71
128
  /**
72
129
  * The color used to render graphics for aggregated geometries in trace results, specified as a
73
130
  * [Color](https://developers.arcgis.com/javascript/latest/references/core/Color/) object.
131
+ *
74
132
  * Aggregated geometry is only rendered if the trace configuration specifies aggregated geometry as a result type.
133
+ *
75
134
  * Default color is #FFFF00.
76
135
  *
77
136
  * @see [Color constructor](https://developers.arcgis.com/javascript/latest/references/core/Color/#constructors-summary)
78
137
  */
79
138
  accessor aggregatedGeometryGraphicsColor: Color;
80
- /** @default false */
81
- accessor allowEditingDisabled: boolean;
82
139
  /**
83
140
  * If true, the component will not be destroyed automatically when it is
84
141
  * disconnected from the document. This is useful when you want to move the
@@ -100,11 +157,10 @@ export abstract class ArcgisUtilityNetworkTraceAnalysis extends LitElement {
100
157
  * ```
101
158
  */
102
159
  accessor beforeTraceLocationSelectStart: (() => Promise<void>) | undefined;
103
- /** @default false */
104
- accessor closable: boolean;
105
160
  /**
106
161
  * Whether to disable highlighting trace result features on the map.
107
- * If set to true, the features returned by a trace will not be highlighted on the map.
162
+ *
163
+ * If true, the features returned by a trace will not be highlighted on the map.
108
164
  *
109
165
  * @default false
110
166
  * @example
@@ -118,6 +174,7 @@ export abstract class ArcgisUtilityNetworkTraceAnalysis extends LitElement {
118
174
  accessor disableHighlightFeatureResults: boolean;
119
175
  /**
120
176
  * Whether to hide feature results in the results tab.
177
+ *
121
178
  * If true, when features are returned by a trace, they will not be visible in the results tab.
122
179
  * A message will be displayed in its place indicating that features were returned by the trace, but are not visible in the results pane.
123
180
  * This string can be overridden with the `messageOverrides` property.
@@ -138,7 +195,7 @@ export abstract class ArcgisUtilityNetworkTraceAnalysis extends LitElement {
138
195
  * ```
139
196
  */
140
197
  accessor hideFeatureResults: boolean;
141
- accessor icon: string | undefined;
198
+ /** The component's default label. */
142
199
  accessor label: string | undefined;
143
200
  /**
144
201
  * Replace localized message strings with your own strings.
@@ -179,17 +236,20 @@ export abstract class ArcgisUtilityNetworkTraceAnalysis extends LitElement {
179
236
  * @see [Associate components with a Map or Scene component](https://developers.arcgis.com/javascript/latest/programming-patterns/#associate-components-with-a-map-or-scene-component)
180
237
  */
181
238
  accessor referenceElement: ArcgisReferenceElement | string | undefined;
239
+ /** The current state of the component. */
240
+ get state(): UtilityNetworkTraceAnalysisState;
182
241
  /**
183
- * The current state of the component.
242
+ * An array of features returned by the trace result.
243
+ *
244
+ * This array is populated if the trace returned [element](https://developers.arcgis.com/javascript/latest/references/core/rest/networks/support/TraceResult/#elements) results.
184
245
  *
185
- * @since 5.0
246
+ * When [@arcgisTraceResultFeaturesReady](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-analysis/#event-arcgisTraceResultFeaturesReady) is raised, trace result features are available.
247
+ * When a new trace has been run, or the trace results are cleared, this array is cleared.
186
248
  */
187
- get state(): UtilityNetworkTraceAnalysisState;
188
249
  get traceResultFeatures(): Graphic[];
189
250
  /**
190
- * This property defines the target [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/).
191
- *
192
- * @since 5.0
251
+ * The view associated with the component.
252
+ * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-trace-analysis component will be associated with a map or scene component rather than using the `view` property.
193
253
  */
194
254
  accessor view: MapView | null | undefined;
195
255
  /** Permanently destroy the component. */
@@ -197,7 +257,7 @@ export abstract class ArcgisUtilityNetworkTraceAnalysis extends LitElement {
197
257
  /**
198
258
  * Fires when the user toggles displaying aggregated geometry results in the result pane.
199
259
  * Event payload contains a boolean representing whether the aggregated geometry graphics are hidden.
200
- * If true, the user has hidden the graphics on the view's map.
260
+ * If true, the aggregated geometry graphics are hidden on the view.
201
261
  *
202
262
  * @example
203
263
  * ```js
@@ -265,7 +325,7 @@ export abstract class ArcgisUtilityNetworkTraceAnalysis extends LitElement {
265
325
  readonly arcgisTraceResultClear: import("@arcgis/lumina").TargetedEvent<this, void>;
266
326
  /**
267
327
  * Fires when the trace result features are ready.
268
- * Check property `traceResultFeatures` for the trace result features.
328
+ * Check property [traceResultFeatures](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-analysis/#traceResultFeatures) for the trace result features.
269
329
  *
270
330
  * @example
271
331
  * ```js
@@ -1,49 +1,53 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  import { c as y } from "../../chunks/runtime.js";
3
- import { css as v, html as r } from "lit";
4
- import { keyed as o } from "lit/directives/keyed.js";
5
- import h from "@arcgis/core/Color.js";
3
+ import { css as f, html as r } from "lit";
4
+ import { ref as o } from "lit/directives/ref.js";
5
+ import { keyed as h } from "lit/directives/keyed.js";
6
+ import g from "@arcgis/core/Color.js";
6
7
  import "@arcgis/core/core/Error.js";
7
8
  import b from "@arcgis/core/networks/UtilityNetworkTraceAnalysis.js";
8
- import { LitElement as w, createEvent as l } from "@arcgis/lumina";
9
- import { log as g } from "@arcgis/toolkit/log";
10
- import { createRef as u, ref as d } from "lit/directives/ref.js";
11
- import { u as T } from "../../chunks/useT9n.js";
9
+ import { LitElement as v, createEvent as n } from "@arcgis/lumina";
10
+ import { log as u } from "@arcgis/toolkit/log";
11
+ import { u as w } from "../../chunks/useT9n.js";
12
12
  import { m as _ } from "../../chunks/useViewModel.js";
13
- const R = v`: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)}`, $ = _(b);
14
- class C extends w {
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
+ class $ extends v {
15
15
  constructor() {
16
- super(...arguments), this._messages = T({ blocking: !0 }), this._viewModel = $(this), this._traceInputsRef = u(), this._traceResultsRef = u(), this._highlightHandles = [], this._handleRunTraceButtonClick = () => {
17
- const t = this._traceInputsRef.value?.traceLocations?.some((a) => a.type === "starting-point");
16
+ super(...arguments), this._messages = w({ blocking: !0 }), this._viewModel = R(this), this._highlightHandles = [], this._handleRunTraceButtonClick = () => {
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;
20
20
  return;
21
21
  }
22
- this.showNoStartingPointsWarning = !1, this._clearHighlights(), this._switchTab("results"), this._runTrace();
23
- }, this.activeTab = "input", this.showNoStartingPointsWarning = !1, this.mode = "default", this.allowEditingDisabled = !1, this.autoDestroyDisabled = !1, this.aggregatedGeometryGraphicsColor = new h([255, 255, 0, 0.6]), this.disableHighlightFeatureResults = !1, this.hideFeatureResults = !1, this.closable = !1, this.state = this._viewModel.state, this.view = this._viewModel.view, this.arcgisHideGraphicsChange = l(), this.arcgisTraceLocationSelectStart = l(), this.arcgisTraceLocationSelectEnd = l(), this.arcgisTraceResultFeaturesReady = l(), this.arcgisTraceResultClear = l(), this.arcgisReady = l();
22
+ this.showNoStartingPointsWarning = !1, this._clearTraceResult(), this._switchTab("results"), this._runTrace();
23
+ }, this._handleTraceInputsRefChange = (e) => {
24
+ e && (this._traceInputsElement = e);
25
+ }, this._handleTraceResultsRefChange = (e) => {
26
+ e && (this._traceResultsElement = e);
27
+ }, this.activeTab = "input", this.showNoStartingPointsWarning = !1, this.mode = "default", this.autoDestroyDisabled = !1, this.aggregatedGeometryGraphicsColor = new g([255, 255, 0, 0.6]), this.disableHighlightFeatureResults = !1, this.hideFeatureResults = !1, this.state = this._viewModel.state, this.view = this._viewModel.view, this.arcgisHideGraphicsChange = n(), this.arcgisTraceLocationSelectStart = n(), this.arcgisTraceLocationSelectEnd = n(), this.arcgisTraceResultFeaturesReady = n(), this.arcgisTraceResultClear = n(), this.arcgisReady = n();
24
28
  }
25
29
  static {
26
- this.properties = { activeTab: 16, traceError: 16, traceResult: 16, showNoStartingPointsWarning: 16, mode: 16, allowEditingDisabled: 5, autoDestroyDisabled: 5, beforeTraceLocationSelectStart: 0, aggregatedGeometryGraphicsColor: 0, disableHighlightFeatureResults: 5, hideFeatureResults: 5, closable: 7, icon: 1, label: 3, messageOverrides: 0, traceResultFeatures: 32, referenceElement: 1, state: 32, view: 0 };
30
+ this.properties = { activeTab: 16, traceError: 16, traceResult: 16, showNoStartingPointsWarning: 16, mode: 16, autoDestroyDisabled: 5, beforeTraceLocationSelectStart: 0, aggregatedGeometryGraphicsColor: 0, disableHighlightFeatureResults: 5, hideFeatureResults: 5, label: 3, messageOverrides: 0, traceResultFeatures: 32, referenceElement: 1, state: 32, view: 0 };
27
31
  }
28
32
  static {
29
- this.styles = R;
33
+ this.styles = T;
30
34
  }
31
35
  get _allLayers() {
32
36
  const { view: e } = this;
33
37
  return e?.map ? e.map.allLayers.toArray().concat(e.map.allTables.toArray()) : [];
34
38
  }
35
39
  get _isSubnetworkNameTraceSelected() {
36
- const e = this._traceInputsRef.value?.selectedNamedTraceConfiguration?.traceType;
37
- return !!this._traceInputsRef.value?.selectedNamedTraceConfiguration?.traceConfiguration?.subnetworkName && e === "subnetwork";
40
+ const e = this._traceInputsElement?.selectedNamedTraceConfiguration?.traceType;
41
+ return !!this._traceInputsElement?.selectedNamedTraceConfiguration?.traceConfiguration?.subnetworkName && e === "subnetwork";
38
42
  }
39
43
  get traceResultFeatures() {
40
- return this._traceResultsRef.value?.traceResultFeatures ?? [];
44
+ return this._traceResultsElement?.traceResultFeatures ?? [];
41
45
  }
42
46
  async destroy() {
43
- await this.manager.destroy(), this._clearHighlights();
47
+ this._clearHighlights(), this._traceResultsElement?.destroy(), this._traceInputsElement?.destroy(), await this.manager.destroy();
44
48
  }
45
49
  _clearTraceResult() {
46
- this.traceResult = void 0, this._clearHighlights();
50
+ this.traceResult = void 0, this._clearHighlights(), this._clearAggregatedGeometryGraphics();
47
51
  }
48
52
  _switchTab(e) {
49
53
  this.activeTab = e;
@@ -66,32 +70,35 @@ class C extends w {
66
70
  _clearHighlights() {
67
71
  this._highlightHandles.forEach((e) => e.remove()), this._highlightHandles = [];
68
72
  }
73
+ _clearAggregatedGeometryGraphics() {
74
+ this._traceResultsElement?.clearAggregatedGeometryGraphics();
75
+ }
69
76
  _highlightResults() {
70
77
  const { traceResult: e, view: t } = this, a = this._viewModel.utilityNetwork;
71
78
  if (!a || !e?.elements || !t)
72
79
  return;
73
80
  a.getObjectIdsFromElements(e.elements).forEach((i) => {
74
- const n = t.allLayerViews.find((m) => {
75
- const c = m.layer;
81
+ const l = t.allLayerViews.find((p) => {
82
+ const c = p.layer;
76
83
  if (a.isUtilityLayer(c)) {
77
- const f = Number(i.layerUrl.split("/").pop());
78
- return c.layerId === f;
84
+ const m = Number(i.layerUrl.split("/").pop());
85
+ return c.layerId === m;
79
86
  }
80
87
  return !1;
81
88
  });
82
- if (!n)
89
+ if (!l)
83
90
  return;
84
- const p = n.highlight(i.objectIds);
85
- this._highlightHandles.push(p);
91
+ const d = l.highlight(i.objectIds);
92
+ this._highlightHandles.push(d);
86
93
  });
87
94
  }
88
95
  async _runTrace() {
89
- const e = this._traceInputsRef.value?.selectedNamedTraceConfiguration, t = this._traceInputsRef.value?.unTraceConfiguration;
96
+ const e = this._traceInputsElement?.selectedNamedTraceConfiguration, t = this._traceInputsElement?.unTraceConfiguration;
90
97
  if (!(e?.traceType && t)) {
91
- g("error", this, "Trace configuration not found");
98
+ u("error", this, "Trace configuration not found");
92
99
  return;
93
100
  }
94
- const a = this._traceInputsRef.value?.traceLocations;
101
+ const a = this._traceInputsElement?.traceLocations;
95
102
  try {
96
103
  this.traceResult = await this._viewModel.executeTraceConfiguration({
97
104
  traceType: e.traceType,
@@ -100,8 +107,8 @@ class C extends w {
100
107
  resultTypes: e.resultTypes
101
108
  }), this.disableHighlightFeatureResults || this._highlightResults();
102
109
  } catch (s) {
103
- const i = s, n = i.details ? { detail: i.details } : void 0;
104
- g("error", this, `Error while running trace: ${String(i)}`, n), this.traceError = i, this.traceResult = void 0;
110
+ const i = s, l = i.details ? { detail: i.details } : void 0;
111
+ u("error", this, `Error while running trace: ${String(i)}`, l), this.traceError = i, this.traceResult = void 0;
105
112
  }
106
113
  }
107
114
  _handleHideGraphicsChange(e) {
@@ -118,7 +125,7 @@ class C extends w {
118
125
  }
119
126
  _handleAggregatedGeometryGraphicsColorChange(e) {
120
127
  const t = e.detail;
121
- this.aggregatedGeometryGraphicsColor = new h(t);
128
+ this.aggregatedGeometryGraphicsColor = new g(t);
122
129
  }
123
130
  _handleTraceInputsChange() {
124
131
  }
@@ -126,27 +133,27 @@ class C extends w {
126
133
  this.showNoStartingPointsWarning = !1;
127
134
  }
128
135
  _handleUtilityNetworkChange() {
129
- this._viewModel.utilityNetwork = this._traceInputsRef.value?.selectedUtilityNetwork;
136
+ this._viewModel.utilityNetwork = this._traceInputsElement?.selectedUtilityNetwork;
130
137
  }
131
138
  renderNoStartingPointsWarning() {
132
139
  return r`<calcite-panel id=no-starting-points-panel><calcite-notice id=no-starting-points-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>`;
133
140
  }
134
141
  renderResultsTab() {
135
- return o(`${this.el.id}__results-tab-item`, r`<calcite-tab .selected=${this.activeTab === "results"}>${this._viewModel.state === "executing" ? r`<calcite-panel><calcite-loader .label=${this._messages.runningTrace} .text=${this._messages.runningTrace}></calcite-loader></calcite-panel>` : r`<arcgis-utility-network-trace-results .aggregatedGeometryGraphicsColor=${this.aggregatedGeometryGraphicsColor} .hideFeatureResults=${this.hideFeatureResults} .referenceElement=${this.referenceElement} .layers=${this._allLayers} .traceConfigTitle=${this._selectedTraceConfig?.title} .traceError=${this.traceError} .traceResult=${this.traceResult} .utilityNetwork=${this._viewModel.utilityNetwork ?? void 0} .view=${this.view ?? void 0} .messageOverrides=${{ resultFeaturesAreHidden: this.messageOverrides?.resultFeaturesAreHidden }} @arcgisHideGraphicsChange=${this._handleHideGraphicsChange} @arcgisTraceResultFeaturesReady=${this._handleTraceResultFeaturesReady} @arcgisAggregatedGeometryGraphicsColorChange=${this._handleAggregatedGeometryGraphicsColorChange} ${d(this._traceResultsRef)}></arcgis-utility-network-trace-results>`}</calcite-tab>`);
142
+ return h(`${this.el.id}__results-tab-item`, r`<calcite-tab .selected=${this.activeTab === "results"}>${this._viewModel.state === "executing" ? r`<calcite-panel><calcite-loader .label=${this._messages.runningTrace} .text=${this._messages.runningTrace}></calcite-loader></calcite-panel>` : r`<arcgis-utility-network-trace-results .aggregatedGeometryGraphicsColor=${this.aggregatedGeometryGraphicsColor} .hideFeatureResults=${this.hideFeatureResults} .referenceElement=${this.referenceElement} .layers=${this._allLayers} .traceConfigTitle=${this._selectedTraceConfig?.title} .traceError=${this.traceError} .traceResult=${this.traceResult} .utilityNetwork=${this._viewModel.utilityNetwork ?? void 0} .view=${this.view ?? void 0} .messageOverrides=${{ resultFeaturesAreHidden: this.messageOverrides?.resultFeaturesAreHidden }} @arcgisHideGraphicsChange=${this._handleHideGraphicsChange} @arcgisTraceResultFeaturesReady=${this._handleTraceResultFeaturesReady} @arcgisAggregatedGeometryGraphicsColorChange=${this._handleAggregatedGeometryGraphicsColorChange} .autoDestroyDisabled=${this.autoDestroyDisabled} ${o(this._handleTraceResultsRefChange)}></arcgis-utility-network-trace-results>`}</calcite-tab>`);
136
143
  }
137
144
  renderResultsFooter() {
138
145
  const { mode: e } = this;
139
146
  if (e !== "default")
140
147
  return null;
141
- const { traceResult: t } = this, s = !!(t?.elements.length || t?.globalFunctionResults.length || t?.aggregatedGeometry) && this._traceResultsRef.value?.state === "ready";
148
+ const { traceResult: t } = this, s = !!(t?.elements.length || t?.globalFunctionResults.length || t?.aggregatedGeometry) && this._traceResultsElement?.state === "ready";
142
149
  return r`<calcite-button appearance=outline width=full @click=${() => {
143
150
  this._switchTab("input"), this._clearTraceResult(), this.arcgisTraceResultClear.emit();
144
151
  }} .disabled=${!s} slot=footer>${this.traceResultFeatures.length > 0 && !this.hideFeatureResults ? this._messages.buttons.clearResultsCustom.replace("{number}", this.traceResultFeatures.length.toString()) : this._messages.buttons.clearResultsGeneric}</calcite-button>`;
145
152
  }
146
153
  renderInputTab() {
147
- return o(`${this.el.id}__inputs-tab-item`, r`<calcite-tab .selected=${this.activeTab === "input"}><div class="inputs-tab-container">${this.showNoStartingPointsWarning && this.mode === "default" ? this.renderNoStartingPointsWarning() : null}<arcgis-utility-network-trace-inputs .view=${this.view || void 0} .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceInputsChange=${this._handleTraceInputsChange} @arcgisSelectedNamedTraceConfigurationChange=${this._handleSelectedNamedTraceConfigurationChange} @arcgisUtilityNetworkChange=${this._handleUtilityNetworkChange} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisPropertyChange=${(e) => {
154
+ return h(`${this.el.id}__inputs-tab-item`, r`<calcite-tab .selected=${this.activeTab === "input"}><div class="inputs-tab-container">${this.showNoStartingPointsWarning && this.mode === "default" ? this.renderNoStartingPointsWarning() : null}<arcgis-utility-network-trace-inputs .view=${this.view || void 0} .referenceElement=${this.referenceElement} .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceInputsChange=${this._handleTraceInputsChange} @arcgisSelectedNamedTraceConfigurationChange=${this._handleSelectedNamedTraceConfigurationChange} @arcgisUtilityNetworkChange=${this._handleUtilityNetworkChange} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisPropertyChange=${(e) => {
148
155
  e.stopPropagation(), e.detail.name === "mode" && (this.mode = e.target.mode);
149
- }} ${d(this._traceInputsRef)}></arcgis-utility-network-trace-inputs></div></calcite-tab>`);
156
+ }} .autoDestroyDisabled=${this.autoDestroyDisabled} ${o(this._handleTraceInputsRefChange)}></arcgis-utility-network-trace-inputs></div></calcite-tab>`);
150
157
  }
151
158
  renderInputFooter() {
152
159
  const { mode: e, _viewModel: { state: t } } = this;
@@ -157,7 +164,7 @@ class C extends w {
157
164
  return r`<calcite-panel .loading=${this.view === void 0}><calcite-tabs layout=center position=top><calcite-tab-nav slot=title-group><calcite-tab-title @click=${() => this._switchTab("input")} .selected=${this.activeTab === "input"}>${e.tabs.inputTab}</calcite-tab-title><calcite-tab-title @click=${() => this._switchTab("results")} .selected=${this.activeTab === "results"} .disabled=${s}>${e.tabs.resultsTab}</calcite-tab-title></calcite-tab-nav>${this.view ? this.renderInputTab() : null}${this.view && this._viewModel.utilityNetwork ? this.renderResultsTab() : null}</calcite-tabs>${i}${this.activeTab === "input" ? this.renderInputFooter() : null}${this.activeTab === "results" ? this.renderResultsFooter() : null}</calcite-panel>`;
158
165
  }
159
166
  }
160
- y("arcgis-utility-network-trace-analysis", C);
167
+ y("arcgis-utility-network-trace-analysis", $);
161
168
  export {
162
- C as ArcgisUtilityNetworkTraceAnalysis
169
+ $ as ArcgisUtilityNetworkTraceAnalysis
163
170
  };
@@ -104,6 +104,16 @@ export abstract class ArcgisUtilityNetworkTraceInputs extends LitElement {
104
104
  unknown: string;
105
105
  warnings: { exceededDisplayLimit: string; };
106
106
  }>;
107
+ /**
108
+ * If true, the component will not be destroyed automatically when it is
109
+ * disconnected from the document. This is useful when you want to move the
110
+ * component to a different place on the page, or temporarily hide it. If this
111
+ * is set, make sure to call the [destroy()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-inputs/#destroy) method when you are done to
112
+ * prevent memory leaks.
113
+ *
114
+ * @default false
115
+ */
116
+ accessor autoDestroyDisabled: boolean;
107
117
  /**
108
118
  * A function to run before trace location selection starts.
109
119
  *
@@ -124,6 +134,8 @@ export abstract class ArcgisUtilityNetworkTraceInputs extends LitElement {
124
134
  get unTraceConfiguration(): UNTraceConfiguration | undefined;
125
135
  /** @required */
126
136
  accessor view: MapView | undefined;
137
+ /** Permanently destroy the component. */
138
+ destroy(): Promise<void>;
127
139
  readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "mode"; }>;
128
140
  /** Fires when the user changes the selected named trace configuration. */
129
141
  readonly arcgisSelectedNamedTraceConfigurationChange: import("@arcgis/lumina").TargetedEvent<this, void>;