@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,28 +1,31 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import { c as L } from "../../chunks/runtime.js";
3
- import { css as k, html as f } from "lit";
2
+ import { c as k } from "../../chunks/runtime.js";
3
+ import { css as L, html as p } from "lit";
4
4
  import * as _ from "@arcgis/core/geometry/operators/cutOperator.js";
5
5
  import * as g from "@arcgis/core/geometry/operators/lengthOperator.js";
6
6
  import * as y from "@arcgis/core/geometry/operators/projectOperator.js";
7
7
  import v from "@arcgis/core/geometry/Polyline.js";
8
8
  import S from "@arcgis/core/geometry/SpatialReference.js";
9
- import x from "@arcgis/core/Graphic.js";
9
+ import A from "@arcgis/core/Graphic.js";
10
10
  import m from "@arcgis/core/rest/networks/support/TraceLocation.js";
11
11
  import b from "@arcgis/core/symbols/SimpleMarkerSymbol.js";
12
- import { LitElement as A, createEvent as w } from "@arcgis/lumina";
12
+ import { LitElement as x, createEvent as w } from "@arcgis/lumina";
13
13
  import { log as c } from "@arcgis/toolkit/log";
14
14
  import { u as I } from "../../chunks/useT9n.js";
15
- const C = k`calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.button-container{justify-content:center;display:grid}.clear-button{--calcite-button-border-color: transparent}`;
16
- class F extends A {
15
+ const C = L`calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.button-container{justify-content:center;display:grid}.clear-button{--calcite-button-border-color: transparent}`;
16
+ class F extends x {
17
17
  constructor() {
18
- super(...arguments), this.messages = I({ blocking: !0 }), this.isSelectWaiting = !1, this.traceLocationType = "starting-point", this.spatialTolerance = 0.05, this.arcgisTraceLocationChange = w(), this.arcgisTraceLocationSelectEnd = w(), this.arcgisTraceLocationSelectStart = w();
18
+ super(...arguments), this.messages = I({ blocking: !0 }), this.isSelectWaiting = !1, this.traceLocationType = "starting-point", this.spatialTolerance = 0.05, this.autoDestroyDisabled = !1, this.arcgisTraceLocationChange = w(), this.arcgisTraceLocationSelectEnd = w(), this.arcgisTraceLocationSelectStart = w();
19
19
  }
20
20
  static {
21
- this.properties = { isSelectWaiting: 16, beforeTraceLocationSelectStart: 0, afterHitTest: 0, view: 0, traceLocationType: 1, traceLocations: 0, filterLayers: 0, sketchViewModel: 0, flagLayer: 0, spatialTolerance: 9, utilityNetwork: 0 };
21
+ this.properties = { isSelectWaiting: 16, beforeTraceLocationSelectStart: 0, afterHitTest: 0, view: 0, traceLocationType: 1, traceLocations: 0, filterLayers: 0, sketchViewModel: 0, flagLayer: 0, spatialTolerance: 9, autoDestroyDisabled: 5, utilityNetwork: 0 };
22
22
  }
23
23
  static {
24
24
  this.styles = C;
25
25
  }
26
+ async destroy() {
27
+ this._resetAfterSketch(!1), await this.manager.destroy();
28
+ }
26
29
  async load() {
27
30
  y.isLoaded() || await y.load();
28
31
  }
@@ -46,8 +49,8 @@ class F extends A {
46
49
  const d = _.execute(a, h);
47
50
  if (d.length > 0) {
48
51
  const T = g.execute(a, { unit: "feet" });
49
- let p;
50
- return d[0].paths[0][0][0] === a.paths[0][0][0] ? p = g.execute(d[0], { unit: "feet" }) : p = g.execute(d[1], { unit: "feet" }), p / T;
52
+ let f;
53
+ return d[0].paths[0][0][0] === a.paths[0][0][0] ? f = g.execute(d[0], { unit: "feet" }) : f = g.execute(d[1], { unit: "feet" }), f / T;
51
54
  }
52
55
  return c("warn", this, "Unable to cut the source geometry with the flag geometry."), 0.5;
53
56
  }
@@ -114,7 +117,7 @@ class F extends A {
114
117
  const n = t.geometry?.type;
115
118
  if (this.traceLocations?.some((l) => l.traceLocation.globalId === e) && n !== "polyline")
116
119
  return c("warn", this, "A flag with the same globalId already exists."), null;
117
- const o = this._createFlagSymbol(), i = new x({
120
+ const o = this._createFlagSymbol(), i = new A({
118
121
  geometry: r,
119
122
  symbol: o,
120
123
  attributes: t.attributes
@@ -275,13 +278,13 @@ class F extends A {
275
278
  }
276
279
  renderAddLocationBlock() {
277
280
  const { traceLocationType: e, messages: t, traceLocations: r } = this, a = e === "starting-point" ? t.types.startingPoint : e === "barrier" ? t.types.barrier : t.types.stoppingPoint, s = a.heading, n = a.description, o = a.buttonText;
278
- return f`<calcite-block .heading=${s} .label=${s} expanded .description=${n}>${r?.length ? f`<calcite-button class="clear-button" slot=actions-end appearance=transparent .label=${t.buttons.clear} @click=${() => this._handleClearButtonClick()}>${t.buttons.clear}</calcite-button>` : null}<arcgis-utility-network-trace-location-list .traceLocations=${r} .traceLocationType=${e}></arcgis-utility-network-trace-location-list><div class="button-container"><calcite-button .loading=${this.isSelectWaiting} class="add-location-button" icon-start=select appearance=outline .label=${o} @click=${() => this._handleAddButtonClick()}>${o}</calcite-button></div></calcite-block>`;
281
+ return p`<calcite-block .heading=${s} .label=${s} expanded .description=${n}>${r?.length ? p`<calcite-button class="clear-button" slot=actions-end appearance=transparent .label=${t.buttons.clear} @click=${() => this._handleClearButtonClick()}>${t.buttons.clear}</calcite-button>` : null}<arcgis-utility-network-trace-location-list .traceLocations=${r} .traceLocationType=${e}></arcgis-utility-network-trace-location-list><div class="button-container"><calcite-button .loading=${this.isSelectWaiting} class="add-location-button" icon-start=select appearance=outline .label=${o} @click=${() => this._handleAddButtonClick()}>${o}</calcite-button></div></calcite-block>`;
279
282
  }
280
283
  render() {
281
- return f`<div class="root">${this.renderAddLocationBlock()}</div>`;
284
+ return p`<div class="root">${this.renderAddLocationBlock()}</div>`;
282
285
  }
283
286
  }
284
- L("arcgis-utility-network-trace-location", F);
287
+ k("arcgis-utility-network-trace-location", F);
285
288
  export {
286
289
  F as ArcgisUtilityNetworkTraceLocation
287
290
  };
@@ -87,6 +87,16 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
87
87
  unknown: string;
88
88
  }>;
89
89
  accessor aggregatedGeometryGraphicsColor: Color;
90
+ /**
91
+ * If true, the component will not be destroyed automatically when it is
92
+ * disconnected from the document. This is useful when you want to move the
93
+ * component to a different place on the page, or temporarily hide it. If this
94
+ * is set, make sure to call the [destroy()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#destroy) method when you are done to
95
+ * prevent memory leaks.
96
+ *
97
+ * @default false
98
+ */
99
+ accessor autoDestroyDisabled: boolean;
90
100
  get featuresFromSelectedLayer(): Graphic[];
91
101
  /** @default false */
92
102
  accessor hideFeatureResults: boolean;
@@ -141,6 +151,9 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
141
151
  accessor traceResultFeatures: Graphic[];
142
152
  accessor utilityNetwork: UtilityNetwork | undefined;
143
153
  accessor view: MapView | undefined;
154
+ clearAggregatedGeometryGraphics(): void;
155
+ /** Permanently destroy the component. */
156
+ destroy(): Promise<void>;
144
157
  readonly arcgisAggregatedGeometryGraphicsColorChange: import("@arcgis/lumina").TargetedEvent<this, string>;
145
158
  readonly arcgisHideGraphicsChange: import("@arcgis/lumina").TargetedEvent<this, boolean>;
146
159
  readonly arcgisSelectedLayerChange: import("@arcgis/lumina").TargetedEvent<this, void>;
@@ -1,24 +1,24 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import { c as f } from "../../chunks/runtime.js";
3
- import { queryAllJSON as _ } from "@arcgis/core/applications/Components/featureUtils.js";
2
+ import { c as _ } from "../../chunks/runtime.js";
3
+ import { ref as h } from "lit/directives/ref.js";
4
+ import { queryAllJSON as b } from "@arcgis/core/applications/Components/featureUtils.js";
4
5
  import v from "@arcgis/core/Color.js";
5
6
  import "@arcgis/core/core/Error.js";
6
- import * as h from "@arcgis/core/geometry/operators/shapePreservingProjectOperator.js";
7
+ import * as g from "@arcgis/core/geometry/operators/shapePreservingProjectOperator.js";
7
8
  import "@arcgis/core/Graphic.js";
8
- import b from "@arcgis/core/rest/support/FeatureSet.js";
9
- import { LitElement as $, createEvent as o } from "@arcgis/lumina";
10
- import { log as u, composeMissingPropertyMessage as g, composeEmptyPropertyMessage as F } from "@arcgis/toolkit/log";
11
- import { css as w, html as i } from "lit";
12
- import { createRef as L, ref as T } from "lit/directives/ref.js";
9
+ import $ from "@arcgis/core/rest/support/FeatureSet.js";
10
+ import { LitElement as F, createEvent as o } from "@arcgis/lumina";
11
+ import { log as u, composeMissingPropertyMessage as m, composeEmptyPropertyMessage as w } from "@arcgis/toolkit/log";
12
+ import { css as L, html as i } from "lit";
13
13
  import { u as C } from "../../chunks/useT9n.js";
14
- import { h as m } from "../../chunks/feature-utils.js";
15
- const R = w`:host{min-height:var(--arcgis-internal-panel-height-sm, 240px);height:100%}arcgis-features{height:100%}calcite-flow{min-height:var(--arcgis-internal-panel-height-sm, 240px);height:100%}calcite-table{--calcite-table-border-color: none}calcite-table-row{--calcite-table-row-border-color: var(--calcite-color-border-3)}.white-panel-background{--calcite-panel-background-color: var(--calcite-color-foreground-1)}.aggregated-geometry-container{display:flex;justify-content:space-between;padding:0 var(--calcite-spacing-md) var(--calcite-spacing-md) var(--calcite-spacing-md)}#elements-list-item{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);margin:0 var(--calcite-spacing-sm)}.no-selectable-results{padding:0 var(--calcite-spacing-md);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size)}.results-heading{display:flex;flex-direction:column;margin:var(--calcite-spacing-md);gap:var(--calcite-spacing-xs)}.results-heading .results-heading-title{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.results-heading .results-heading-subtitle{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3)}.functions-heading{padding:var(--calcite-spacing-md) var(--calcite-spacing-md) var(--calcite-spacing-xxs) var(--calcite-spacing-md);font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;margin:var(--calcite-spacing-sm) var(--calcite-spacing-xl) var(--calcite-spacing-xl) var(--calcite-spacing-xl);gap:var(--calcite-spacing-md)}.no-results-landing calcite-icon{margin-bottom:var(--calcite-spacing-sm);--calcite-icon-color: var(--calcite-color-text-3)}.no-results-landing .no-results-heading{font-size:var(--calcite-font-size-2)}.no-results-landing .no-results-description{color:var(--calcite-color-text-3)}`, p = {
14
+ import { h as y } from "../../chunks/feature-utils.js";
15
+ const T = L`:host{min-height:var(--arcgis-internal-panel-height-sm, 240px);height:100%}arcgis-features{height:100%}calcite-flow{min-height:var(--arcgis-internal-panel-height-sm, 240px);height:100%}calcite-table{--calcite-table-border-color: none}calcite-table-row{--calcite-table-row-border-color: var(--calcite-color-border-3)}.white-panel-background{--calcite-panel-background-color: var(--calcite-color-foreground-1)}.aggregated-geometry-container{display:flex;justify-content:space-between;padding:0 var(--calcite-spacing-md) var(--calcite-spacing-md) var(--calcite-spacing-md)}#elements-list-item{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);margin:0 var(--calcite-spacing-sm)}.no-selectable-results{padding:0 var(--calcite-spacing-md);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size)}.results-heading{display:flex;flex-direction:column;margin:var(--calcite-spacing-md);gap:var(--calcite-spacing-xs)}.results-heading .results-heading-title{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.results-heading .results-heading-subtitle{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3)}.functions-heading{padding:var(--calcite-spacing-md) var(--calcite-spacing-md) var(--calcite-spacing-xxs) var(--calcite-spacing-md);font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;margin:var(--calcite-spacing-sm) var(--calcite-spacing-xl) var(--calcite-spacing-xl) var(--calcite-spacing-xl);gap:var(--calcite-spacing-md)}.no-results-landing calcite-icon{margin-bottom:var(--calcite-spacing-sm);--calcite-icon-color: var(--calcite-color-text-3)}.no-results-landing .no-results-heading{font-size:var(--calcite-font-size-2)}.no-results-landing .no-results-description{color:var(--calcite-color-text-3)}`, p = {
16
16
  dirtyAreasDiscovered: -2147208511,
17
17
  noValidControllers: -2147208935
18
18
  };
19
- class E extends $ {
19
+ class R extends F {
20
20
  constructor() {
21
- super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages = C({ blocking: !0 }), this._elementsWithoutLayer = [], this._featuresComponentRef = L(), this._featuresFromSelectedLayer = [], this._layerIdToFeatures = /* @__PURE__ */ new Map(), this._layerIdToLayer = /* @__PURE__ */ new Map(), this._subtypeCodeToFeatures = /* @__PURE__ */ new Map(), this._sourceIdToElements = /* @__PURE__ */ new Map(), this._unLayers = [], this._compareByFeatureTitle = (e, t) => e.label.localeCompare(t.label, void 0, { numeric: !0 }), this._compareByLayerTitle = ([, e], [, t]) => {
21
+ super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages = C({ blocking: !0 }), this._elementsWithoutLayer = [], this._featuresFromSelectedLayer = [], this._layerIdToFeatures = /* @__PURE__ */ new Map(), this._layerIdToLayer = /* @__PURE__ */ new Map(), this._subtypeCodeToFeatures = /* @__PURE__ */ new Map(), this._sourceIdToElements = /* @__PURE__ */ new Map(), this._unLayers = [], this._compareByFeatureTitle = (e, t) => e.label.localeCompare(t.label, void 0, { numeric: !0 }), this._compareByLayerTitle = ([, e], [, t]) => {
22
22
  const a = e[0].feature.layer, s = t[0].feature.layer, l = a?.title ?? "", c = s?.title ?? "";
23
23
  return l.localeCompare(c, void 0, { numeric: !0 });
24
24
  }, this._queryFeaturesOnLayer = async ([e, t]) => {
@@ -29,17 +29,21 @@ class E extends $ {
29
29
  }
30
30
  const l = s.createQuery();
31
31
  l.gdbVersion = this.utilityNetwork?.gdbVersion, l.objectIds = t.map((r) => r.objectId), l.outFields = ["*"];
32
- const { features: c } = b.fromJSON(await _(s, l)), n = await Promise.all(c.map(async (r) => {
32
+ const { features: c } = $.fromJSON(await b(s, l)), n = await Promise.all(c.map(async (r) => {
33
33
  r.layer = s.type === "subtype-group" ? s.findSublayerForFeature(r) : s, r.origin = r.layer;
34
34
  const d = r.layer;
35
35
  if (r.getEffectivePopupTemplate(this._defaultPopupTemplateEnabled) || (r.popupTemplate = d.createPopupTemplate()), d && "getFeatureTitle" in d) {
36
- const y = await d.getFeatureTitle(r) || m(r);
37
- return { feature: r, label: y };
36
+ const f = await d.getFeatureTitle(r) || y(r);
37
+ return { feature: r, label: f };
38
38
  }
39
- return { feature: r, label: m(r) };
39
+ return { feature: r, label: y(r) };
40
40
  }));
41
41
  s.type === "subtype-group" ? n.forEach((r) => this._addOrCreateMapValue(this._subtypeCodeToFeatures, r.feature.layer.subtypeCode, r)) : this._layerIdToFeatures.set(a, n);
42
- }, this.aggregatedGeometryGraphicsColor = new v([255, 255, 0, 0.6]), this.hideFeatureResults = !1, this.isElementsSelected = !1, this.layers = [], this.state = "ready", this.traceResultFeatures = [], this.arcgisAggregatedGeometryGraphicsColorChange = o(), this.arcgisHideGraphicsChange = o(), this.arcgisSelectedLayerChange = o(), this.arcgisSelectedResultTypeChange = o(), this.arcgisTraceResultFeaturesReady = o(), this._renderLayerListItem = ([, e]) => {
42
+ }, this._aggregateGeometryRefChange = (e) => {
43
+ e && (this._aggregatedGeometryComponentElement = e);
44
+ }, this._featuresRefChange = (e) => {
45
+ e && (this._featuresComponentElement = e);
46
+ }, this.aggregatedGeometryGraphicsColor = new v([255, 255, 0, 0.6]), this.hideFeatureResults = !1, this.isElementsSelected = !1, this.layers = [], this.state = "ready", this.traceResultFeatures = [], this.autoDestroyDisabled = !1, this.arcgisAggregatedGeometryGraphicsColorChange = o(), this.arcgisHideGraphicsChange = o(), this.arcgisSelectedLayerChange = o(), this.arcgisSelectedResultTypeChange = o(), this.arcgisTraceResultFeaturesReady = o(), this._renderLayerListItem = ([, e]) => {
43
47
  if (!e.length)
44
48
  return null;
45
49
  const t = e[0].feature.layer, a = t?.title || this._messages.unknown;
@@ -50,14 +54,20 @@ class E extends $ {
50
54
  };
51
55
  }
52
56
  static {
53
- this.properties = { aggregatedGeometryGraphicsColor: 0, hideFeatureResults: 5, featuresFromSelectedLayer: 32, isElementsSelected: 5, layers: 0, messageOverrides: 0, referenceElement: 1, selectedFeature: 0, selectedLayer: 0, state: 1, traceConfigTitle: 1, traceError: 0, traceResult: 0, traceResultFeatures: 0, utilityNetwork: 0, view: 0 };
57
+ this.properties = { aggregatedGeometryGraphicsColor: 0, hideFeatureResults: 5, featuresFromSelectedLayer: 32, isElementsSelected: 5, layers: 0, messageOverrides: 0, referenceElement: 1, selectedFeature: 0, selectedLayer: 0, state: 1, traceConfigTitle: 1, traceError: 0, traceResult: 0, traceResultFeatures: 0, utilityNetwork: 0, view: 0, autoDestroyDisabled: 5 };
54
58
  }
55
59
  static {
56
- this.styles = R;
60
+ this.styles = T;
57
61
  }
58
62
  get featuresFromSelectedLayer() {
59
63
  return this._featuresFromSelectedLayer.map(({ feature: e }) => e);
60
64
  }
65
+ clearAggregatedGeometryGraphics() {
66
+ this._aggregatedGeometryComponentElement?.destroy();
67
+ }
68
+ async destroy() {
69
+ this._layerIdToFeatures.clear(), this._subtypeCodeToFeatures.clear(), this._sourceIdToElements.clear(), this._aggregatedGeometryComponentElement?.destroy(), this._featuresComponentElement?.destroy(), await this.manager.destroy();
70
+ }
61
71
  load() {
62
72
  this.traceResult && (this._setSourceIdToElements(), this._loadDependencies().then(() => this._queryTraceResultsFeatures()).then(() => this._loadProjectOperator()).finally(() => {
63
73
  this.arcgisTraceResultFeaturesReady.emit(), this.state = "ready";
@@ -67,7 +77,10 @@ class E extends $ {
67
77
  e.has("isElementsSelected") && this.arcgisSelectedResultTypeChange.emit(), e.has("selectedLayer") && this.arcgisSelectedLayerChange.emit(), e.has("traceResult") && (this.isElementsSelected = !1), (e.has("layers") || e.has("utilityNetwork")) && this._loadDependencies();
68
78
  }
69
79
  loaded() {
70
- this.utilityNetwork || u("warn", this, g("utilityNetwork")), this.layers.length === 0 && u("warn", this, F("layers")), this.view || u("warn", this, g("view"));
80
+ this.utilityNetwork || u("warn", this, m("utilityNetwork")), this.layers.length === 0 && u("warn", this, w("layers")), this.view || u("warn", this, m("view"));
81
+ }
82
+ disconnectedCallback() {
83
+ super.disconnectedCallback(), this._layerIdToLayer.clear();
71
84
  }
72
85
  _addOrCreateMapValue(e, t, a) {
73
86
  const s = e.get(t);
@@ -95,7 +108,7 @@ class E extends $ {
95
108
  }
96
109
  async _loadProjectOperator() {
97
110
  const { aggregatedGeometry: e } = this.traceResult;
98
- e && !h.isLoaded() && await h.load();
111
+ e && !g.isLoaded() && await g.load();
99
112
  }
100
113
  async _queryTraceResultsFeatures() {
101
114
  const e = Array.from(this._sourceIdToElements.entries());
@@ -140,8 +153,8 @@ class E extends $ {
140
153
  if (this.state === "loading")
141
154
  return this._renderGettingResults();
142
155
  if (this.selectedFeature) {
143
- const n = this._featuresComponentRef.value, r = n?.selectedFeature ? [n.selectedFeature] : [this.selectedFeature];
144
- return i`<arcgis-features .referenceElement=${this.referenceElement} .features=${r} .view=${this.view} open .defaultPopupTemplateEnabled=${this._defaultPopupTemplateEnabled} @arcgisClose=${() => this.selectedFeature = void 0} ${T(this._featuresComponentRef)}></arcgis-features>`;
156
+ const n = this._featuresComponentElement, r = n?.selectedFeature ? [n.selectedFeature] : [this.selectedFeature];
157
+ return i`<arcgis-features .referenceElement=${this.referenceElement} .features=${r} .view=${this.view} open .defaultPopupTemplateEnabled=${this._defaultPopupTemplateEnabled} @arcgisClose=${() => this.selectedFeature = void 0} .autoDestroyDisabled=${this.autoDestroyDisabled} ${h(this._featuresRefChange)}></arcgis-features>`;
145
158
  }
146
159
  const c = a.length > 0 && !s.length && !l;
147
160
  return this.hideFeatureResults && c ? this._renderFeaturesAreHidden() : i`<calcite-flow>${c ? null : i`<calcite-flow-item .selected=${!this.isElementsSelected}>${this._renderLanding(t)}</calcite-flow-item>`}<calcite-flow-item .heading=${this._messages.headings.features} .description=${this._messages.headings.totalFeatures.replace("{number}", this.traceResultFeatures.length.toString())} .selected=${(c || this.isElementsSelected) && !this.selectedLayer} @calciteFlowItemBack=${() => this.isElementsSelected = !1}>${this._renderLayerList()}</calcite-flow-item><calcite-flow-item .heading=${this.selectedLayer?.title ?? void 0} .description=${this._messages.headings.totalFeatures.replace("{number}", this._featuresFromSelectedLayer.length.toString())} .selected=${!!this.selectedLayer} @calciteFlowItemBack=${() => this.selectedLayer = void 0}>${this._renderFeaturesList()}</calcite-flow-item></calcite-flow>`;
@@ -154,7 +167,7 @@ class E extends $ {
154
167
  return i`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}${s != null ? this._renderAggregatedGeometry(s) : null}${s != null && !t.length ? this._renderNoSelectableResults() : null}${t.length > 0 ? this.hideFeatureResults ? this._renderFeaturesAreHidden() : this._renderElementsResults() : null}${a.length > 0 ? this._renderFunctionsResults(a) : null}</calcite-panel>`;
155
168
  }
156
169
  _renderAggregatedGeometry(e) {
157
- return i`<div class="aggregated-geometry-container"><arcgis-utility-network-aggregated-geometry .graphicsColor=${this.aggregatedGeometryGraphicsColor} .geometry=${e} .view=${this.view} @arcgisHideGraphicsChange=${this._handleHideGraphicsChange}></arcgis-utility-network-aggregated-geometry><calcite-swatch id=geometry-color-swatch .label=${this._messages.labels.aggregatedGeometryGraphicsColor} .color=${this.aggregatedGeometryGraphicsColor.toCss()}></calcite-swatch><calcite-popover .heading=${this._messages.headings.setColor} .label=${this._messages.headings.setColor} reference-element=geometry-color-swatch closable><calcite-color-picker alpha-channel channels-disabled clearable hex-disabled saved-disabled .value=${this.aggregatedGeometryGraphicsColor} @calciteColorPickerChange=${(t) => {
170
+ return i`<div class="aggregated-geometry-container"><arcgis-utility-network-aggregated-geometry .graphicsColor=${this.aggregatedGeometryGraphicsColor} .geometry=${e} .view=${this.view} @arcgisHideGraphicsChange=${this._handleHideGraphicsChange} .autoDestroyDisabled=${this.autoDestroyDisabled} ${h(this._aggregateGeometryRefChange)}></arcgis-utility-network-aggregated-geometry><calcite-swatch id=geometry-color-swatch .label=${this._messages.labels.aggregatedGeometryGraphicsColor} .color=${this.aggregatedGeometryGraphicsColor.toCss()}></calcite-swatch><calcite-popover .heading=${this._messages.headings.setColor} .label=${this._messages.headings.setColor} reference-element=geometry-color-swatch closable><calcite-color-picker alpha-channel channels-disabled clearable hex-disabled saved-disabled .value=${this.aggregatedGeometryGraphicsColor} @calciteColorPickerChange=${(t) => {
158
171
  const a = t.target.value;
159
172
  this.arcgisAggregatedGeometryGraphicsColorChange.emit(a);
160
173
  }}></calcite-color-picker></calcite-popover></div>`;
@@ -203,7 +216,7 @@ class E extends $ {
203
216
  return i`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-results-landing"><calcite-icon icon=utility-network-trace scale=l></calcite-icon><div class="no-results-heading">${this._messages.noTraceConfigHeading}</div><div class="no-results-description">${this._messages.noTraceConfigDescription}</div></div></calcite-panel>`;
204
217
  }
205
218
  }
206
- f("arcgis-utility-network-trace-results", E);
219
+ _("arcgis-utility-network-trace-results", R);
207
220
  export {
208
- E as ArcgisUtilityNetworkTraceResults
221
+ R as ArcgisUtilityNetworkTraceResults
209
222
  };