@arcgis/map-components 5.0.0-next.163 → 5.0.0-next.165

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 (229) hide show
  1. package/dist/cdn/27EX7BAT.js +2 -0
  2. package/dist/cdn/{ANP7PYGJ.js → 2FBKLGCE.js} +1 -1
  3. package/dist/cdn/{U3H7EVCU.js → 2GYHEEJC.js} +1 -1
  4. package/dist/cdn/2KXVCJMQ.js +2 -0
  5. package/dist/cdn/{K4PC3ILQ.js → 2TODV24L.js} +1 -1
  6. package/dist/cdn/{MAM7YHLA.js → 2VVXUYOF.js} +1 -1
  7. package/dist/cdn/{QUHJMEBB.js → 2YI467ME.js} +1 -1
  8. package/dist/cdn/34S3BZS7.js +2 -0
  9. package/dist/cdn/{JCW65STL.js → 36NT6EOS.js} +1 -1
  10. package/dist/cdn/{7NOD6U2Y.js → 3K3Q3L5Z.js} +1 -1
  11. package/dist/cdn/{ORVYHFUJ.js → 3L6KP67K.js} +1 -1
  12. package/dist/cdn/{UELD2T53.js → 3O5MUEQE.js} +1 -1
  13. package/dist/cdn/{ILFME5US.js → 3RF66PN5.js} +1 -1
  14. package/dist/cdn/{PYMUS3H4.js → 46XRVUAH.js} +1 -1
  15. package/dist/cdn/{CO7UZYM2.js → 4IFHPHVF.js} +1 -1
  16. package/dist/cdn/{42WUBROP.js → 4OMTR2QQ.js} +1 -1
  17. package/dist/cdn/{RZ4T32PU.js → 4PK3GJ4F.js} +1 -1
  18. package/dist/cdn/{BGG5VIEL.js → 53LWO7HI.js} +1 -1
  19. package/dist/cdn/{TGUIWWDN.js → 5M4DDFN6.js} +1 -1
  20. package/dist/cdn/{JWT66RP2.js → 5PG27K3A.js} +1 -1
  21. package/dist/cdn/{U4TAMNG3.js → 5UFFQJSU.js} +1 -1
  22. package/dist/cdn/{TQRR2FH6.js → 5Y6NI7HQ.js} +1 -1
  23. package/dist/cdn/{KAZBQ6OA.js → 67G4OVIE.js} +1 -1
  24. package/dist/cdn/{QKSSTPS3.js → 7INPCVND.js} +1 -1
  25. package/dist/cdn/{LE7AXIL2.js → 7QF7HEDI.js} +1 -1
  26. package/dist/cdn/{7AGJFQHK.js → AAH2GFLP.js} +1 -1
  27. package/dist/cdn/AC3NQPKC.js +2 -0
  28. package/dist/cdn/{26SX6MF4.js → AGY724TJ.js} +1 -1
  29. package/dist/cdn/AHTIA2R6.js +2 -0
  30. package/dist/cdn/{25HB2UBJ.js → AIRTNDBH.js} +1 -1
  31. package/dist/cdn/{JZXMWXVD.js → AOZ2GPBD.js} +1 -1
  32. package/dist/cdn/{PZ2JPHRS.js → AX67NWFX.js} +1 -1
  33. package/dist/cdn/{WDTFIXMM.js → BHWPGG7Z.js} +1 -1
  34. package/dist/cdn/{F2HPTFLQ.js → BPZSPB4L.js} +1 -1
  35. package/dist/cdn/{67DKLGTW.js → BQDOPZG6.js} +1 -1
  36. package/dist/cdn/{H5RGMC7S.js → BYVF7WOC.js} +1 -1
  37. package/dist/cdn/{KGJGLAWM.js → CAW2JA3E.js} +1 -1
  38. package/dist/cdn/{JUHCPSPF.js → CAYSZWRK.js} +1 -1
  39. package/dist/cdn/{CSU7GLED.js → CBR6PUEY.js} +1 -1
  40. package/dist/cdn/{CEB3VR24.js → CFZXYFU7.js} +1 -1
  41. package/dist/cdn/{R2FIOZIL.js → CGRFWSSV.js} +1 -1
  42. package/dist/cdn/{KWIBK4I5.js → CGROBDHE.js} +1 -1
  43. package/dist/cdn/{N7QKWBTM.js → COEDZB6D.js} +1 -1
  44. package/dist/cdn/{BKYII5LQ.js → CQ6KMSIO.js} +1 -1
  45. package/dist/cdn/CXJGKZ7S.js +2 -0
  46. package/dist/cdn/{5LG4S2WV.js → DGDL4K6G.js} +1 -1
  47. package/dist/cdn/{4ESEDU4X.js → DHOVN4JA.js} +1 -1
  48. package/dist/cdn/{IQ7EVFBF.js → DI66GYDO.js} +1 -1
  49. package/dist/cdn/{M3AVHGBC.js → DMUVML6L.js} +1 -1
  50. package/dist/cdn/{ZOBY4YF2.js → DXJ7TMEQ.js} +1 -1
  51. package/dist/cdn/EGCQFNG3.js +2 -0
  52. package/dist/cdn/EOFEVRA3.js +2 -0
  53. package/dist/cdn/{XCDPFMHG.js → FFKZELBO.js} +1 -1
  54. package/dist/cdn/{EO66UQLI.js → FNAMDUKT.js} +1 -1
  55. package/dist/cdn/{HYBTGX3N.js → FOLIPPYI.js} +1 -1
  56. package/dist/cdn/{4WMWNIPN.js → FZVLJT66.js} +1 -1
  57. package/dist/cdn/{NMUWFJ4U.js → GD4LUFAZ.js} +1 -1
  58. package/dist/cdn/{WV6XSMZW.js → GK5T2FD6.js} +1 -1
  59. package/dist/cdn/{AJ64UYFM.js → GNCHWVNF.js} +1 -1
  60. package/dist/cdn/{IL56ZRDO.js → GOBIBDSA.js} +1 -1
  61. package/dist/cdn/HOBC5TEW.js +2 -0
  62. package/dist/cdn/{YLSIF5R2.js → HVRIARCB.js} +1 -1
  63. package/dist/cdn/{7WJ6TNOT.js → IEH4OYWP.js} +1 -1
  64. package/dist/cdn/IMPTONCA.js +2 -0
  65. package/dist/cdn/{RYKRMJMK.js → IPCQCFE3.js} +1 -1
  66. package/dist/cdn/{FRGWWVJK.js → J2N4NGSM.js} +1 -1
  67. package/dist/cdn/{F6QNNUIN.js → J4BNEHAO.js} +1 -1
  68. package/dist/cdn/JDP3YCBM.js +2 -0
  69. package/dist/cdn/{RE2BXNZ3.js → JPZMCGTS.js} +1 -1
  70. package/dist/cdn/{2FTXKTA4.js → JW5X664C.js} +1 -1
  71. package/dist/cdn/{NXZJ43G3.js → JYJBSAJT.js} +1 -1
  72. package/dist/cdn/{RB7GCEEB.js → K6Z5GBWL.js} +1 -1
  73. package/dist/cdn/{6424II7L.js → KBQK73Z2.js} +1 -1
  74. package/dist/cdn/{UQKKALKO.js → KCQB4NNK.js} +1 -1
  75. package/dist/cdn/{DT74YNQP.js → KRVZWYAS.js} +1 -1
  76. package/dist/cdn/{OFQNQF6N.js → KVJKF3VJ.js} +1 -1
  77. package/dist/cdn/{J4XU75P7.js → KXTLXAZQ.js} +1 -1
  78. package/dist/cdn/{Z6LXLPK7.js → LRUQSH7S.js} +1 -1
  79. package/dist/cdn/{X7QWBVC2.js → M3LMLGTS.js} +1 -1
  80. package/dist/cdn/{SQFVC4KA.js → MJBV536L.js} +1 -1
  81. package/dist/cdn/{FA3Z6QOE.js → MQYKZ2MY.js} +1 -1
  82. package/dist/cdn/{AX23Q2XH.js → N7JZUN7G.js} +1 -1
  83. package/dist/cdn/{ESNK6MCY.js → NMKZ77A3.js} +1 -1
  84. package/dist/cdn/{6IPVLMFQ.js → OJCRKH55.js} +1 -1
  85. package/dist/cdn/{WLNRPTCN.js → OKSHNWO7.js} +1 -1
  86. package/dist/cdn/{HKVQWRPL.js → OROETUZO.js} +1 -1
  87. package/dist/cdn/OY3WQBQM.js +2 -0
  88. package/dist/cdn/{KRVBBG4M.js → QGNFMBBV.js} +1 -1
  89. package/dist/cdn/{UW3G2BPO.js → QNCFWECI.js} +1 -1
  90. package/dist/cdn/{B7SDETM6.js → QSOGE4GS.js} +1 -1
  91. package/dist/cdn/{OKRTKYGF.js → QTOSV4XU.js} +1 -1
  92. package/dist/cdn/RTC24EVK.js +2 -0
  93. package/dist/cdn/{ONPN5M3Z.js → RTLNV5MH.js} +1 -1
  94. package/dist/cdn/RUC6NG6L.js +2 -0
  95. package/dist/cdn/RYH43ZOR.js +2 -0
  96. package/dist/cdn/{RMFIN5AS.js → RZDIL4FK.js} +1 -1
  97. package/dist/cdn/{NWXN5M4S.js → SAGJDTGS.js} +1 -1
  98. package/dist/cdn/SI3PITPE.js +2 -0
  99. package/dist/cdn/{AJIZTCGT.js → SS3BP5JY.js} +1 -1
  100. package/dist/cdn/{RU5U2DVA.js → STZ7NN7N.js} +1 -1
  101. package/dist/cdn/{T3JWZEB6.js → TBPQMJ3U.js} +1 -1
  102. package/dist/cdn/TCNK7NLA.js +2 -0
  103. package/dist/cdn/{3HYCJV4V.js → UCRB5RGH.js} +1 -1
  104. package/dist/cdn/{GAH6OGQE.js → UEUYXTE3.js} +1 -1
  105. package/dist/cdn/{LT5ALQM5.js → UFQOOCIO.js} +1 -1
  106. package/dist/cdn/{6IUQ5UHX.js → UFWKXIL5.js} +1 -1
  107. package/dist/cdn/UJXCCQWE.js +2 -0
  108. package/dist/cdn/{FD4A66OJ.js → V2QY34FP.js} +1 -1
  109. package/dist/cdn/{ZVTV4UKT.js → V4E5MPHA.js} +1 -1
  110. package/dist/cdn/{SK6O74LF.js → VAXL3OO6.js} +1 -1
  111. package/dist/cdn/{AHGLOKZI.js → VB66GDWY.js} +1 -1
  112. package/dist/cdn/{INYYRLED.js → VEBPC4NS.js} +1 -1
  113. package/dist/cdn/W627TIVM.js +2 -0
  114. package/dist/cdn/{DB2NOQ3D.js → WVRJP4IF.js} +1 -1
  115. package/dist/cdn/{QF7RABZH.js → WX4UNUXQ.js} +1 -1
  116. package/dist/cdn/{UBGE4QNR.js → WXQJ3OSA.js} +1 -1
  117. package/dist/cdn/{CGASUBOS.js → WXXTKBUN.js} +1 -1
  118. package/dist/cdn/{IKOLSNGV.js → WZVTF32R.js} +1 -1
  119. package/dist/cdn/X25QBU47.js +2 -0
  120. package/dist/cdn/{WBGZAAEK.js → X446GLUI.js} +1 -1
  121. package/dist/cdn/{G4FP7GXM.js → X4DF5NLE.js} +1 -1
  122. package/dist/cdn/{PQ5PGLJM.js → X4M3A7NY.js} +1 -1
  123. package/dist/cdn/{AEMKZZZS.js → X4PMY7Z5.js} +1 -1
  124. package/dist/cdn/{5DEOSU7J.js → X72XPU7O.js} +1 -1
  125. package/dist/cdn/{XIOIZK7A.js → X7Z2SLR4.js} +1 -1
  126. package/dist/cdn/{L5JWLRD3.js → XFCXD5BV.js} +1 -1
  127. package/dist/cdn/{D4PJU376.js → XL4ZVZQO.js} +1 -1
  128. package/dist/cdn/{SDWQW3ZX.js → XT5EYUOZ.js} +1 -1
  129. package/dist/cdn/{GCFNRINR.js → XUMBGLCM.js} +1 -1
  130. package/dist/cdn/{2AHY7O7C.js → Y7HAR5TE.js} +1 -1
  131. package/dist/cdn/{7OOAOM5T.js → YBPTQSLR.js} +1 -1
  132. package/dist/cdn/{YXYCWJFF.js → YGFR3GKE.js} +1 -1
  133. package/dist/cdn/{75LFOVPY.js → YJQ24JUD.js} +1 -1
  134. package/dist/cdn/{E5SXPWDJ.js → YOZLJOIM.js} +1 -1
  135. package/dist/cdn/{522HNMQI.js → YQ7TCV5A.js} +1 -1
  136. package/dist/cdn/{MD36SH63.js → YZSRJTGJ.js} +1 -1
  137. package/dist/cdn/{CXHSL2Y4.js → ZFHIU6DT.js} +1 -1
  138. package/dist/cdn/ZNBKMZP7.js +2 -0
  139. package/dist/cdn/{GMR2QJNU.js → ZY32LRC5.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.js +52 -64
  145. package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +59 -71
  146. package/dist/components/arcgis-directions/customElement.d.ts +17 -0
  147. package/dist/components/arcgis-directions/customElement.js +5 -5
  148. package/dist/components/arcgis-distance-measurement-2d/customElement.js +58 -70
  149. package/dist/components/arcgis-elevation-profile/customElement.js +100 -111
  150. package/dist/components/arcgis-elevation-profile-settings/customElement.js +22 -22
  151. package/dist/components/arcgis-feature/customElement.js +6 -6
  152. package/dist/components/arcgis-feature-table/customElement.d.ts +57 -2
  153. package/dist/components/arcgis-feature-table/customElement.js +28 -13
  154. package/dist/components/arcgis-feature-templates/customElement.d.ts +3 -0
  155. package/dist/components/arcgis-feature-templates/customElement.js +2 -2
  156. package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +16 -16
  157. package/dist/components/arcgis-feature-utility-network-associations/customElement.js +55 -55
  158. package/dist/components/arcgis-features/customElement.js +46 -52
  159. package/dist/components/arcgis-link-chart/customElement.js +10 -15
  160. package/dist/components/arcgis-map/customElement.js +1 -6
  161. package/dist/components/arcgis-paste/PasteViewModel.d.ts +1 -1
  162. package/dist/components/arcgis-paste/customElement.js +51 -47
  163. package/dist/components/arcgis-popup/customElement.js +106 -99
  164. package/dist/components/arcgis-popup/types.d.ts +1 -1
  165. package/dist/components/arcgis-print/customElement.d.ts +10 -0
  166. package/dist/components/arcgis-print/customElement.js +7 -7
  167. package/dist/components/arcgis-print-layout-advanced-options/customElement.js +12 -12
  168. package/dist/components/arcgis-print-layout-panel/customElement.js +6 -6
  169. package/dist/components/arcgis-print-main-panel/customElement.js +7 -7
  170. package/dist/components/arcgis-scene/customElement.js +8 -13
  171. package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.d.ts +1 -1
  172. package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.js +1 -1
  173. package/dist/components/arcgis-slider-classed-color-legacy/customElement.d.ts +1 -1
  174. package/dist/components/arcgis-slider-classed-color-legacy/customElement.js +1 -1
  175. package/dist/components/arcgis-slider-classed-size-legacy/customElement.d.ts +1 -1
  176. package/dist/components/arcgis-slider-classed-size-legacy/customElement.js +1 -1
  177. package/dist/components/arcgis-slider-color-size-legacy/customElement.d.ts +1 -1
  178. package/dist/components/arcgis-slider-color-size-legacy/customElement.js +1 -1
  179. package/dist/components/arcgis-slider-heatmap-legacy/customElement.d.ts +1 -1
  180. package/dist/components/arcgis-slider-heatmap-legacy/customElement.js +1 -1
  181. package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +1 -1
  182. package/dist/components/arcgis-slider-opacity-legacy/customElement.js +1 -1
  183. package/dist/components/arcgis-slider-size-legacy/customElement.d.ts +1 -1
  184. package/dist/components/arcgis-slider-size-legacy/customElement.js +1 -1
  185. package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.d.ts +12 -0
  186. package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.js +7 -7
  187. package/dist/components/arcgis-utility-network-trace/customElement.d.ts +7 -2
  188. package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
  189. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +74 -14
  190. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +47 -40
  191. package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +12 -0
  192. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +80 -65
  193. package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +4 -0
  194. package/dist/components/arcgis-utility-network-trace-location/customElement.js +17 -14
  195. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +13 -0
  196. package/dist/components/arcgis-utility-network-trace-results/customElement.js +39 -26
  197. package/dist/components/arcgis-volume-measurement/customElement.js +84 -84
  198. package/dist/components/types.d.ts +5 -3
  199. package/dist/docs/api.json +1 -1
  200. package/dist/docs/docs.json +1 -1
  201. package/dist/docs/vscode.html-custom-data.json +1 -1
  202. package/dist/docs/web-types.json +1 -1
  203. package/dist/loader.js +21 -21
  204. package/dist/types/lumina.d.ts +14 -14
  205. package/dist/types/preact.d.ts +14 -14
  206. package/dist/types/react.d.ts +14 -14
  207. package/dist/types/stencil.d.ts +14 -14
  208. package/package.json +4 -4
  209. package/dist/cdn/3URKZO5O.js +0 -2
  210. package/dist/cdn/55TRWAT7.js +0 -2
  211. package/dist/cdn/BHPXKX47.js +0 -2
  212. package/dist/cdn/D4LTASH2.js +0 -2
  213. package/dist/cdn/FKQSJXNW.js +0 -2
  214. package/dist/cdn/H7O5I4IF.js +0 -2
  215. package/dist/cdn/I5M2Z7WS.js +0 -2
  216. package/dist/cdn/L6YZXUBB.js +0 -2
  217. package/dist/cdn/LEUHIPSJ.js +0 -2
  218. package/dist/cdn/NZXDNMVC.js +0 -2
  219. package/dist/cdn/ODGGFBDK.js +0 -2
  220. package/dist/cdn/P76K34HQ.js +0 -2
  221. package/dist/cdn/P7PWOUNZ.js +0 -2
  222. package/dist/cdn/Q4B4MXH4.js +0 -2
  223. package/dist/cdn/RN57AN5P.js +0 -2
  224. package/dist/cdn/SKIP3GUP.js +0 -2
  225. package/dist/cdn/UNLAUFXF.js +0 -2
  226. package/dist/cdn/URUFNID2.js +0 -2
  227. package/dist/cdn/WREEAAEV.js +0 -2
  228. package/dist/cdn/WTTBFFC2.js +0 -2
  229. package/dist/cdn/Y4RMI55P.js +0 -2
@@ -1,49 +1,53 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/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>;
@@ -1,43 +1,51 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import { c as y } from "../../chunks/runtime.js";
3
- import { repeat as b } from "lit/directives/repeat.js";
4
- import { queryAllJSON as g } from "@arcgis/core/applications/Components/featureUtils.js";
5
- import c from "@arcgis/core/core/Collection.js";
6
- import { watch as k } from "@arcgis/core/core/reactiveUtils.js";
7
- import { substitute as _ } from "@arcgis/core/intl.js";
8
- import S from "@arcgis/core/layers/GraphicsLayer.js";
9
- import T from "@arcgis/core/networks/support/UNTraceConfiguration.js";
10
- import L from "@arcgis/core/rest/networks/support/TraceLocation.js";
11
- import m from "@arcgis/core/rest/support/FeatureSet.js";
12
- import h from "@arcgis/core/views/interactive/snapping/FeatureSnappingLayerSource.js";
13
- import C from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
14
- import { LitElement as N, createEvent as l } from "@arcgis/lumina";
15
- import { usePropertyChange as $ } from "@arcgis/lumina/controllers";
16
- import { log as u, composeMissingPropertyMessage as v, composeEmptyPropertyMessage as F } from "@arcgis/toolkit/log";
17
- import { css as E, html as s } from "lit";
18
- import { createRef as P, ref as U } from "lit/directives/ref.js";
19
- import { u as I } from "../../chunks/useT9n.js";
20
- import { h as f } from "../../chunks/feature-utils.js";
21
- import { a as A, i as M } from "../../chunks/layer-utils.js";
22
- const x = E`:host{flex-grow:1}calcite-flow{min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-block-group{flex-grow:1;padding-bottom:var(--calcite-spacing-md);background-color:var(--calcite-color-foreground-1)}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block calcite-select,calcite-block calcite-input{margin:0 var(--calcite-spacing-md)}calcite-block calcite-input-message{padding:var(--calcite-spacing-sm) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}calcite-block calcite-label:last-child{--calcite-label-margin-bottom: 0}calcite-notice{margin:var(--calcite-spacing-md)}#subnetwork-info-block{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}#results-limited-message{padding:var(--calcite-spacing-sm)}.inline-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.add-spatial-mode{display:flex;flex-direction:column;gap:var(--calcite-spacing-md);margin:var(--calcite-spacing-md)}.heading{color:var(--calcite-color-text-1);margin:0 0 var(--calcite-spacing-md) 0;font-size:var(--calcite-font-size);font-style:normal;font-weight:var(--calcite-font-weight-medium)}`, w = `utility-network-trace-inputs-sketch-${Date.now()}`, d = `utility-network-trace-inputs-flags-${Date.now()}`, B = 20;
23
- class V extends N {
2
+ import { c as _ } from "../../chunks/runtime.js";
3
+ import { repeat as k } from "lit/directives/repeat.js";
4
+ import { ref as h } from "lit/directives/ref.js";
5
+ import { queryAllJSON as m } from "@arcgis/core/applications/Components/featureUtils.js";
6
+ import l from "@arcgis/core/core/Collection.js";
7
+ import { watch as S } from "@arcgis/core/core/reactiveUtils.js";
8
+ import { substitute as T } from "@arcgis/core/intl.js";
9
+ import L from "@arcgis/core/layers/GraphicsLayer.js";
10
+ import C from "@arcgis/core/networks/support/UNTraceConfiguration.js";
11
+ import $ from "@arcgis/core/rest/networks/support/TraceLocation.js";
12
+ import f from "@arcgis/core/rest/support/FeatureSet.js";
13
+ import y from "@arcgis/core/views/interactive/snapping/FeatureSnappingLayerSource.js";
14
+ import N from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
15
+ import { LitElement as v, createEvent as d } from "@arcgis/lumina";
16
+ import { usePropertyChange as E } from "@arcgis/lumina/controllers";
17
+ import { log as u, composeMissingPropertyMessage as F, composeEmptyPropertyMessage as I } from "@arcgis/toolkit/log";
18
+ import { css as P, html as s } from "lit";
19
+ import { u as U } from "../../chunks/useT9n.js";
20
+ import { h as w } from "../../chunks/feature-utils.js";
21
+ import { a as A, i as b } from "../../chunks/layer-utils.js";
22
+ const D = P`:host{flex-grow:1}calcite-flow{min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-block-group{flex-grow:1;padding-bottom:var(--calcite-spacing-md);background-color:var(--calcite-color-foreground-1)}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block calcite-select,calcite-block calcite-input{margin:0 var(--calcite-spacing-md)}calcite-block calcite-input-message{padding:var(--calcite-spacing-sm) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}calcite-block calcite-label:last-child{--calcite-label-margin-bottom: 0}calcite-notice{margin:var(--calcite-spacing-md)}#subnetwork-info-block{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}#results-limited-message{padding:var(--calcite-spacing-sm)}.inline-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.add-spatial-mode{display:flex;flex-direction:column;gap:var(--calcite-spacing-md);margin:var(--calcite-spacing-md)}.heading{color:var(--calcite-color-text-1);margin:0 0 var(--calcite-spacing-md) 0;font-size:var(--calcite-font-size);font-style:normal;font-weight:var(--calcite-font-weight-medium)}`, p = `utility-network-trace-inputs-sketch-${Date.now()}`, c = `utility-network-trace-inputs-flags-${Date.now()}`, M = 20;
23
+ class B extends v {
24
24
  constructor() {
25
- super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages = I({ blocking: !0 }), this._layerIdToLayer = /* @__PURE__ */ new Map(), this._startingPoints = new c(), this._barriers = new c(), this._stoppingPoints = new c(), this._subnetworkTraceTypes = /* @__PURE__ */ new Set([
25
+ super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages = U({ blocking: !0 }), this._layerIdToLayer = /* @__PURE__ */ new Map(), this._startingPoints = new l(), this._barriers = new l(), this._stoppingPoints = new l(), this._subnetworkTraceTypes = /* @__PURE__ */ new Set([
26
26
  "subnetwork",
27
27
  "subnetwork-controller",
28
28
  "upstream",
29
29
  "downstream",
30
30
  "isolation"
31
- ]), this._removeDuplicateSubnetworkNames = (e, t, i) => t === 0 || e.getAttribute("SUBNETWORKNAME") !== i[t - 1].getAttribute("SUBNETWORKNAME"), this._hitTestPromise = null, this._featuresFromHitTest = [], this._featuresComponentRef = P(), this._displayLimit = 20, this.compatibleSubnetworkNames = [], this.traceConfigurations = [], this._state = "ready", this._exceedDisplayLimit = !1, this.mode = "default", this.arcgisTraceInputsChange = l(), this.arcgisUtilityNetworkChange = l(), this.arcgisSelectedNamedTraceConfigurationChange = l(), this.arcgisTraceLocationSelectStart = l(), this.arcgisTraceLocationSelectEnd = l(), this.arcgisPropertyChange = $()("mode"), this.renderFeatureListItem = (e) => {
31
+ ]), this._removeDuplicateSubnetworkNames = (e, t, i) => t === 0 || e.getAttribute("SUBNETWORKNAME") !== i[t - 1].getAttribute("SUBNETWORKNAME"), this._hitTestPromise = null, this._featuresFromHitTest = [], this._displayLimit = 20, this._traceLocationStartingRefChange = (e) => {
32
+ e && (this._traceLocationStartingElement = e);
33
+ }, this._traceLocationBarrierRefChange = (e) => {
34
+ e && (this._traceLocationBarrierElement = e);
35
+ }, this._traceLocationStoppingRefChange = (e) => {
36
+ e && (this._traceLocationStoppingElement = e);
37
+ }, this._featuresComponentRefChange = (e) => {
38
+ e && (this._featuresComponentElement = e);
39
+ }, this.compatibleSubnetworkNames = [], this.traceConfigurations = [], this._state = "ready", this._exceedDisplayLimit = !1, this.autoDestroyDisabled = !1, this.mode = "default", this.arcgisPropertyChange = E()("mode"), this.arcgisSelectedNamedTraceConfigurationChange = d(), this.arcgisTraceInputsChange = d(), this.arcgisTraceLocationSelectEnd = d(), this.arcgisTraceLocationSelectStart = d(), this.arcgisUtilityNetworkChange = d(), this.renderFeatureListItem = (e) => {
32
40
  const { feature: t, label: i } = e;
33
41
  return s`<calcite-list-item .label=${i} @calciteListItemSelect=${() => this._handleFeatureSelectChange(t)}><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item>`;
34
42
  };
35
43
  }
36
44
  static {
37
- this.properties = { compatibleSubnetworkNames: 16, subnetworksTable: 16, traceConfigurations: 16, utilityNetworks: 16, _unTraceConfiguration: 16, _state: 16, _activeTraceLocationType: 16, _selectedFeature: 16, _exceedDisplayLimit: 16, beforeTraceLocationSelectStart: 0, view: 0, selectedUtilityNetwork: 0, selectedNamedTraceConfiguration: 0, unTraceConfiguration: 32, referenceElement: 1, mode: 3, traceLocations: 32 };
45
+ this.properties = { compatibleSubnetworkNames: 16, subnetworksTable: 16, traceConfigurations: 16, utilityNetworks: 16, _unTraceConfiguration: 16, _state: 16, _activeTraceLocationType: 16, _selectedFeature: 16, _exceedDisplayLimit: 16, beforeTraceLocationSelectStart: 0, view: 0, selectedUtilityNetwork: 0, selectedNamedTraceConfiguration: 0, autoDestroyDisabled: 5, unTraceConfiguration: 32, referenceElement: 1, mode: 3, traceLocations: 32 };
38
46
  }
39
47
  static {
40
- this.styles = x;
48
+ this.styles = D;
41
49
  }
42
50
  get isSubnetworkNameTraceSelected() {
43
51
  const e = this.selectedNamedTraceConfiguration?.traceType;
@@ -59,7 +67,7 @@ class V extends N {
59
67
  get traceLocations() {
60
68
  const e = [], t = (i) => {
61
69
  i.flagProperties.terminalConfiguration && i.flagProperties.selectedTerminals ? i.flagProperties.selectedTerminals.forEach((r) => {
62
- e.push(new L({
70
+ e.push(new $({
63
71
  type: i.traceLocation.type,
64
72
  isFilterBarrier: i.traceLocation.isFilterBarrier,
65
73
  globalId: i.traceLocation.globalId,
@@ -70,9 +78,12 @@ class V extends N {
70
78
  };
71
79
  return this._startingPoints.forEach((i) => t(i)), this._barriers.forEach((i) => t(i)), this._stoppingPoints.forEach((i) => t(i)), e;
72
80
  }
81
+ async destroy() {
82
+ this._removeGraphicLayer(p), this._removeGraphicLayer(c), this._sketchViewModel?.cancel(), this._featuresComponentElement?.destroy(), this._traceLocationStartingElement?.destroy(), this._traceLocationBarrierElement?.destroy(), this._traceLocationStoppingElement?.destroy(), await this.manager.destroy();
83
+ }
73
84
  load() {
74
85
  this.manager.onLifecycle(() => [
75
- k(() => this.view?.map, () => {
86
+ S(() => this.view?.map, () => {
76
87
  this._setupUtilityNetwork(), this._setupSketchViewModel();
77
88
  }, { initial: !0 })
78
89
  ]);
@@ -81,13 +92,16 @@ class V extends N {
81
92
  const { utilityNetworks: t, selectedUtilityNetwork: i } = this;
82
93
  (e.has("utilityNetworks") || !t || t.length === 0 || !i || !t?.includes(i)) && this._handleUtilityNetworksChange(), e.has("selectedUtilityNetwork") && (this.arcgisUtilityNetworkChange.emit(), this._handleSelectedUtilityNetworkChange()), e.has("selectedNamedTraceConfiguration") && (this.arcgisTraceInputsChange.emit(), this.arcgisSelectedNamedTraceConfigurationChange.emit(), this._handleTraceConfigChange()), e.has("selectedSubnetworkName") && this.arcgisTraceInputsChange.emit();
83
94
  }
95
+ disconnectedCallback() {
96
+ super.disconnectedCallback(), this._layerIdToLayer.clear();
97
+ }
84
98
  _clearTraceLocations() {
85
- this._getGraphicLayer(d)?.removeAll(), this._startingPoints.removeAll(), this._barriers.removeAll(), this._stoppingPoints.removeAll();
99
+ this._getGraphicLayer(c)?.removeAll(), this._startingPoints.removeAll(), this._barriers.removeAll(), this._stoppingPoints.removeAll();
86
100
  }
87
101
  _createGraphicLayer(e) {
88
102
  const { map: t } = this.view;
89
103
  if (!t?.findLayerById(e)) {
90
- const a = new S({
104
+ const a = new L({
91
105
  id: e,
92
106
  listMode: "hide",
93
107
  title: e
@@ -99,22 +113,26 @@ class V extends N {
99
113
  const { map: t } = this.view;
100
114
  if (t) {
101
115
  const i = t.findLayerById(e);
102
- if (M(i))
116
+ if (b(i))
103
117
  return t.reorder(i, t.layers.length - 1), i;
104
118
  }
105
119
  return null;
106
120
  }
121
+ _removeGraphicLayer(e) {
122
+ const { map: t } = this.view, i = t?.findLayerById(e);
123
+ i && b(i) && t?.remove(i);
124
+ }
107
125
  _setSnappingOption() {
108
126
  const { _sketchViewModel: e, _unLayers: t } = this;
109
127
  if (e && t && t.length > 0) {
110
- const i = new c();
128
+ const i = new l();
111
129
  t.forEach((a) => {
112
130
  a.type === "subtype-group" ? a.sublayers.forEach((r) => {
113
- i.add(new h({
131
+ i.add(new y({
114
132
  layer: r,
115
133
  enabled: !0
116
134
  }));
117
- }) : i.add(new h({
135
+ }) : i.add(new y({
118
136
  layer: a,
119
137
  enabled: !0
120
138
  }));
@@ -126,17 +144,14 @@ class V extends N {
126
144
  }
127
145
  }
128
146
  _initializeSketchViewModel() {
129
- const { view: e, _unLayers: t } = this, i = this._getGraphicLayer(w), a = new c();
130
- return t?.forEach((r) => a.add(new h({
131
- layer: r,
132
- enabled: !0
133
- }))), new C({
134
- layer: i,
147
+ const { view: e } = this, t = this._getGraphicLayer(p);
148
+ return new N({
149
+ layer: t,
135
150
  view: e
136
151
  });
137
152
  }
138
153
  _setupSketchViewModel() {
139
- this._createGraphicLayer(w), this._createGraphicLayer(d), this._sketchViewModel = this._initializeSketchViewModel();
154
+ this._createGraphicLayer(p), this._createGraphicLayer(c), this._sketchViewModel = this._initializeSketchViewModel();
140
155
  }
141
156
  _clearSubnetworks() {
142
157
  this.selectedSubnetworkName = void 0, this.subnetworksTable = void 0, this.compatibleSubnetworkNames = [];
@@ -150,7 +165,7 @@ class V extends N {
150
165
  return;
151
166
  const t = e.createQuery();
152
167
  t.gdbVersion = this.selectedUtilityNetwork?.gdbVersion, t.where = this._getSubnetworkQueryWhereClause(), t.outFields = ["SUBNETWORKNAME"], t.orderByFields = ["SUBNETWORKNAME"];
153
- const i = m.fromJSON(await g(e, t));
168
+ const i = f.fromJSON(await m(e, t));
154
169
  this.compatibleSubnetworkNames = i.features.filter(this._removeDuplicateSubnetworkNames).map((a) => a.getAttribute("SUBNETWORKNAME"));
155
170
  }
156
171
  _getSubnetworkQueryWhereClause() {
@@ -172,8 +187,8 @@ class V extends N {
172
187
  }
173
188
  _handleTraceConfigChange() {
174
189
  const { selectedNamedTraceConfiguration: e } = this;
175
- if (!(e?.traceConfiguration instanceof T)) {
176
- u("error", this, v("selectedNamedTraceConfiguration.traceConfiguration")), this._unTraceConfiguration = void 0;
190
+ if (!(e?.traceConfiguration instanceof C)) {
191
+ u("error", this, F("selectedNamedTraceConfiguration.traceConfiguration")), this._unTraceConfiguration = void 0;
177
192
  return;
178
193
  }
179
194
  switch (this._unTraceConfiguration = e.traceConfiguration.clone(), e.traceType) {
@@ -190,12 +205,12 @@ class V extends N {
190
205
  }
191
206
  _filterUnLayers() {
192
207
  const { selectedUtilityNetwork: e } = this;
193
- this._unLayers = new c(this._allLayers.filter((t) => e?.isUtilityLayer(t))), this._setSnappingOption();
208
+ this._unLayers = new l(this._allLayers.filter((t) => e?.isUtilityLayer(t))), this._setSnappingOption();
194
209
  }
195
210
  _handleUtilityNetworksChange() {
196
211
  const { utilityNetworks: e } = this;
197
212
  if (!e || e.length === 0) {
198
- this._state = "error", u("error", this, F("utilityNetworks"));
213
+ this._state = "error", u("error", this, I("utilityNetworks"));
199
214
  return;
200
215
  }
201
216
  (!this.selectedUtilityNetwork || !e.includes(this.selectedUtilityNetwork)) && (this.selectedUtilityNetwork = e.at(0));
@@ -228,7 +243,7 @@ class V extends N {
228
243
  async _queryFeatures(e, t) {
229
244
  const i = e.createQuery();
230
245
  i.gdbVersion = this.selectedUtilityNetwork?.gdbVersion, i.objectIds = t.map((r) => r.getObjectId()), i.outFields = ["*"];
231
- const { features: a } = m.fromJSON(await g(e, i));
246
+ const { features: a } = f.fromJSON(await m(e, i));
232
247
  return a.forEach((r) => {
233
248
  r.layer = e.type === "subtype-group" ? e.findSublayerForFeature(r) : e, r.origin = r.layer;
234
249
  const o = r.layer;
@@ -242,8 +257,8 @@ class V extends N {
242
257
  if (r) {
243
258
  const o = r.layerId, n = this._getLayerByLayerId(o);
244
259
  if (n) {
245
- const p = t.get(n) || [];
246
- p.push(a), t.set(n, p);
260
+ const g = t.get(n) || [];
261
+ g.push(a), t.set(n, g);
247
262
  }
248
263
  }
249
264
  });
@@ -254,10 +269,10 @@ class V extends N {
254
269
  })), await Promise.all(i.map(async (a) => {
255
270
  const r = a.layer;
256
271
  if (r && "getFeatureTitle" in r) {
257
- const o = await r.getFeatureTitle(a) || f(a);
272
+ const o = await r.getFeatureTitle(a) || w(a);
258
273
  return { feature: a, label: o };
259
274
  }
260
- return { feature: a, label: f(a) };
275
+ return { feature: a, label: w(a) };
261
276
  }));
262
277
  }
263
278
  async _handleHitTestComplete(e) {
@@ -268,16 +283,16 @@ class V extends N {
268
283
  }
269
284
  _handleAddSpatialCancelClick(e) {
270
285
  e?.stopPropagation();
271
- const t = this._featuresComponentRef.value;
286
+ const t = this._featuresComponentElement;
272
287
  t && t.clear(), this._selectedFeature = void 0, this.mode = "default", this._sketchViewModel?.cancel(), this._hitTestPromise?.reject(), this._hitTestPromise = null;
273
288
  }
274
289
  _handleFeaturesClose() {
275
290
  this.mode = "add-spatial-feature-list", this._selectedFeature = void 0;
276
291
  }
277
292
  _handleAddSpatialAddClick() {
278
- const { _hitTestPromise: e, _featuresComponentRef: t } = this;
279
- if (e && t?.value) {
280
- const i = t.value, a = i.selectedDrillInFeature ?? i.selectedFeature;
293
+ const { _hitTestPromise: e, _featuresComponentElement: t } = this;
294
+ if (e && t) {
295
+ const i = t, a = i.selectedDrillInFeature ?? i.selectedFeature;
281
296
  if (!a)
282
297
  return;
283
298
  e.resolve(a), this._hitTestPromise = null;
@@ -296,7 +311,7 @@ class V extends N {
296
311
  const { _messages: e, traceConfigurations: t } = this, i = e.labels.traceConfiguration;
297
312
  if (t.length === 0)
298
313
  return this.renderError(e.errors.noTraceConfigurationError, !0);
299
- const a = b(t, (r) => r.globalId, (r) => s`<calcite-option .value=${r.globalId}>${r.title}</calcite-option>`);
314
+ const a = k(t, (r) => r.globalId, (r) => s`<calcite-option .value=${r.globalId}>${r.title}</calcite-option>`);
300
315
  return s`<calcite-block .heading=${i} .label=${i} expanded><calcite-select .label=${i} .value=${this.selectedNamedTraceConfiguration?.globalId || void 0} @calciteSelectChange=${(r) => {
301
316
  this._selectTraceConfigurationByGuid(r.target.value);
302
317
  }}>${a}</calcite-select></calcite-block>`;
@@ -326,11 +341,11 @@ class V extends N {
326
341
  const { _selectedFeature: e } = this;
327
342
  if (!e)
328
343
  return this.mode = "default", null;
329
- const t = this._featuresComponentRef.value, i = t?.selectedFeature ? [t.selectedFeature] : [e];
330
- return s`<arcgis-features .referenceElement=${this.referenceElement} .features=${i} .view=${this.view} .defaultPopupTemplateEnabled=${this._defaultPopupTemplateEnabled} open @arcgisClose=${() => this._handleFeaturesClose()} ${U(this._featuresComponentRef)}></arcgis-features>`;
344
+ const t = this._featuresComponentElement, i = t?.selectedFeature ? [t.selectedFeature] : [e];
345
+ return s`<arcgis-features .referenceElement=${this.referenceElement} .features=${i} .view=${this.view} .defaultPopupTemplateEnabled=${this._defaultPopupTemplateEnabled} open @arcgisClose=${() => this._handleFeaturesClose()} .autoDestroyDisabled=${this.autoDestroyDisabled} ${h(this._featuresComponentRefChange)}></arcgis-features>`;
331
346
  }
332
347
  renderAddSpatialFooter() {
333
- const { mode: e, _messages: t, selectedUtilityNetwork: i, _selectedFeature: a } = this, r = _(t.warnings.exceededDisplayLimit, {
348
+ const { mode: e, _messages: t, selectedUtilityNetwork: i, _selectedFeature: a } = this, r = T(t.warnings.exceededDisplayLimit, {
334
349
  limit: this._displayLimit.toString()
335
350
  }), o = e === "add-spatial-feature-list" && this._exceedDisplayLimit, n = a ? !(i?.isUtilityLayer(a.layer) ?? !0) : !0;
336
351
  return s`${o && s`<calcite-input-message id=results-limited-message icon=exclamation-mark-circle status=idle>${r}</calcite-input-message>` || ""}<calcite-button appearance=outline width=full @click=${() => {
@@ -340,13 +355,13 @@ class V extends N {
340
355
  }} .disabled=${n}>${t.buttons.add}</calcite-button>` || ""}`;
341
356
  }
342
357
  renderStartingPointSelection() {
343
- return s`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=starting-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(d)} .traceLocations=${this._startingPoints} .afterHitTest=${this._handleHitTestComplete.bind(this)}></arcgis-utility-network-trace-location>`;
358
+ return s`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=starting-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(c)} .traceLocations=${this._startingPoints} .afterHitTest=${this._handleHitTestComplete.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${h(this._traceLocationStartingRefChange)}></arcgis-utility-network-trace-location>`;
344
359
  }
345
360
  renderStoppingPointSelection() {
346
- return s`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=stopping-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(d)} .traceLocations=${this._stoppingPoints} .afterHitTest=${this._handleHitTestComplete.bind(this)}></arcgis-utility-network-trace-location>`;
361
+ return s`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=stopping-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(c)} .traceLocations=${this._stoppingPoints} .afterHitTest=${this._handleHitTestComplete.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${h(this._traceLocationStoppingRefChange)}></arcgis-utility-network-trace-location>`;
347
362
  }
348
363
  renderBarrierSelection() {
349
- return s`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=barrier .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(d)} .traceLocations=${this._barriers} .afterHitTest=${this._handleHitTestComplete.bind(this)}></arcgis-utility-network-trace-location>`;
364
+ return s`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=barrier .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(c)} .traceLocations=${this._barriers} .afterHitTest=${this._handleHitTestComplete.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${h(this._traceLocationBarrierRefChange)}></arcgis-utility-network-trace-location>`;
350
365
  }
351
366
  renderSubnetworkNameInput() {
352
367
  return s`<calcite-input clearable type=text .placeholder=${this._messages.instructions.enterSubnetworkName} max-length=64 .value=${this.selectedSubnetworkName} @calciteInputInput=${(e) => this.selectedSubnetworkName = e.target.value}></calcite-input><calcite-input-message icon=exclamation-mark-triangle status=idle>${this._messages.labels.tooManySubnetworks}</calcite-input-message>`;
@@ -356,7 +371,7 @@ class V extends N {
356
371
  }
357
372
  renderSubnetworkSelection() {
358
373
  const { compatibleSubnetworkNames: e } = this, t = this._messages.labels.subnetworkName;
359
- return this.isSubnetworkNameTraceSelected ? this._state === "loading" ? s`<calcite-loader class="inline-loader" label=loading scale=s></calcite-loader>` : e.length ? s`<calcite-block .heading=${t} .label=${t} expanded>${e.length > B ? this.renderSubnetworkNameInput() : this.renderSubnetworkSelectList()}</calcite-block>` : this.renderError(this._messages.errors.noCompatibleSubnetworks, !1, "exclamation-mark-triangle") : null;
374
+ return this.isSubnetworkNameTraceSelected ? this._state === "loading" ? s`<calcite-loader class="inline-loader" label=loading scale=s></calcite-loader>` : e.length ? s`<calcite-block .heading=${t} .label=${t} expanded>${e.length > M ? this.renderSubnetworkNameInput() : this.renderSubnetworkSelectList()}</calcite-block>` : this.renderError(this._messages.errors.noCompatibleSubnetworks, !1, "exclamation-mark-triangle") : null;
360
375
  }
361
376
  renderSubnetworkInfo() {
362
377
  const { _messages: e, selectedNamedTraceConfiguration: t, _unTraceConfiguration: i } = this;
@@ -374,7 +389,7 @@ class V extends N {
374
389
  return s`<calcite-panel>${e === "add-spatial-feature" ? this.renderSelectedFeature() : s`<calcite-flow>${this.renderDefaultMode()}${this.renderSpatialSelectInstructions()}${this.renderHitTestResults()}</calcite-flow>`}${e !== "default" ? this.renderAddSpatialFooter() : null}</calcite-panel>`;
375
390
  }
376
391
  }
377
- y("arcgis-utility-network-trace-inputs", V);
392
+ _("arcgis-utility-network-trace-inputs", B);
378
393
  export {
379
- V as ArcgisUtilityNetworkTraceInputs
394
+ B as ArcgisUtilityNetworkTraceInputs
380
395
  };
@@ -23,6 +23,8 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
23
23
  */
24
24
  export abstract class ArcgisUtilityNetworkTraceLocation extends LitElement {
25
25
  accessor afterHitTest: ((graphics: Graphic[]) => Promise<Graphic>) | undefined;
26
+ /** @default false */
27
+ accessor autoDestroyDisabled: boolean;
26
28
  /**
27
29
  * A function to run before trace location selection starts.
28
30
  *
@@ -99,6 +101,8 @@ export abstract class ArcgisUtilityNetworkTraceLocation extends LitElement {
99
101
  accessor utilityNetwork: UtilityNetwork | undefined;
100
102
  /** @required */
101
103
  accessor view: MapView | undefined;
104
+ /** Permanently destroy the component. */
105
+ destroy(): Promise<void>;
102
106
  readonly arcgisTraceLocationChange: import("@arcgis/lumina").TargetedEvent<this, void>;
103
107
  /**
104
108
  * Fires when the user completes the selection of a trace location.