@arcgis/map-components 5.0.0-next.1 → 5.0.0-next.11

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 (592) hide show
  1. package/dist/cdn/26HZY6SE.js +4 -0
  2. package/dist/cdn/2A5VIOGY.js +4 -0
  3. package/dist/cdn/{OAVGTNLH.js → 2BH4Q6DY.js} +2 -2
  4. package/dist/cdn/{SSJO7VUT.js → 2UHMCHQD.js} +2 -2
  5. package/dist/cdn/{QRSXKOXJ.js → 2VODCFHM.js} +1 -1
  6. package/dist/cdn/{THT555FR.js → 346G23WQ.js} +2 -2
  7. package/dist/cdn/{L3S2GEXF.js → 3CAK4LBY.js} +2 -2
  8. package/dist/cdn/{FNMFT2SB.js → 3MB7KIUC.js} +2 -2
  9. package/dist/cdn/{OYNXBW6C.js → 3MZKMFP6.js} +2 -2
  10. package/dist/cdn/3QMEBFK4.js +4 -0
  11. package/dist/cdn/4H6MUFMW.js +4 -0
  12. package/dist/cdn/4IE62GK3.js +4 -0
  13. package/dist/cdn/{Z6QEPHNM.js → 4IIW2IZF.js} +2 -2
  14. package/dist/cdn/{TVQBL527.js → 4KKNJEGH.js} +2 -2
  15. package/dist/cdn/{A6K4P52C.js → 4M2D3NCN.js} +2 -2
  16. package/dist/cdn/{UR3BJIHR.js → 4NIO3OTE.js} +2 -2
  17. package/dist/cdn/4UZJRY7N.js +4 -0
  18. package/dist/cdn/4W2A3PE2.js +4 -0
  19. package/dist/cdn/4XOWGWID.js +4 -0
  20. package/dist/cdn/53SBCTC7.js +4 -0
  21. package/dist/cdn/5BKGKPTS.js +4 -0
  22. package/dist/cdn/{UUPWBRF6.js → 5G6IEDDN.js} +2 -2
  23. package/dist/cdn/{H5MZURWB.js → 5JR76PID.js} +2 -2
  24. package/dist/cdn/{THOLWPT2.js → 5KIXYGQX.js} +2 -2
  25. package/dist/cdn/{42LREVDQ.js → 5TDQAWIP.js} +2 -2
  26. package/dist/cdn/5THCCGII.js +4 -0
  27. package/dist/cdn/5WGVJW52.js +4 -0
  28. package/dist/cdn/63XVRMGU.js +4 -0
  29. package/dist/cdn/{AMWDHO5R.js → 6D4U6OWI.js} +2 -2
  30. package/dist/cdn/6ELUQ6DM.js +4 -0
  31. package/dist/cdn/{ZRGLEEUS.js → 6GQ2SOWG.js} +2 -2
  32. package/dist/cdn/{MLSMJKB7.js → 6GZLOZEC.js} +2 -2
  33. package/dist/cdn/{FHVHBCVL.js → 6IWYHGA7.js} +2 -2
  34. package/dist/cdn/{BOBOVYXW.js → 6K7X6ZZV.js} +2 -2
  35. package/dist/cdn/{MNNQ2ONJ.js → 6VVSXZT4.js} +2 -2
  36. package/dist/cdn/{RD572UXX.js → 6YTF4XLU.js} +1 -1
  37. package/dist/cdn/77F2SK75.js +4 -0
  38. package/dist/cdn/{MCXAXT6C.js → 7ARNGMYX.js} +2 -2
  39. package/dist/cdn/7CB3IT5D.js +4 -0
  40. package/dist/cdn/7IQY55G2.js +4 -0
  41. package/dist/cdn/7LINXYCY.js +4 -0
  42. package/dist/cdn/{OSOOI6BN.js → 7N6KFKQV.js} +1 -1
  43. package/dist/cdn/7PONMQ3F.js +4 -0
  44. package/dist/cdn/{ZFMPKCXJ.js → 7QOSXUUH.js} +2 -2
  45. package/dist/cdn/{XEMUVRQX.js → 7TADCM73.js} +2 -2
  46. package/dist/cdn/7VE5LSOQ.js +4 -0
  47. package/dist/cdn/7Y4FD7JI.js +4 -0
  48. package/dist/cdn/A27Y6OZC.js +4 -0
  49. package/dist/cdn/{QTZDMCJ3.js → A2YE73D5.js} +2 -2
  50. package/dist/cdn/{4UBBZ6SF.js → A3DMNZBR.js} +2 -2
  51. package/dist/cdn/A562F56P.js +9 -0
  52. package/dist/cdn/{YIU4233X.js → A5CWLVOC.js} +2 -2
  53. package/dist/cdn/{PIM22RZR.js → AE3R4TSZ.js} +2 -2
  54. package/dist/cdn/AII3W3CH.js +4 -0
  55. package/dist/cdn/{LTRIS6J5.js → ARJ5P3HF.js} +2 -2
  56. package/dist/cdn/{TKFMAB7T.js → AWAYTWEQ.js} +2 -2
  57. package/dist/cdn/B5NY56TN.js +4 -0
  58. package/dist/cdn/B5OIDYRL.js +4 -0
  59. package/dist/cdn/{AYGXIBNT.js → B7ON6ZWQ.js} +2 -2
  60. package/dist/cdn/{QZVUDHAL.js → BNEB5FIB.js} +2 -2
  61. package/dist/cdn/C4LCUFHK.js +4 -0
  62. package/dist/cdn/{AWZM3YBI.js → CCJD66O7.js} +2 -2
  63. package/dist/cdn/{27D5LY57.js → CCMEBMVK.js} +2 -2
  64. package/dist/cdn/{E4EHMNXV.js → CJFT2RPL.js} +2 -2
  65. package/dist/cdn/{QTJNLCEH.js → CMZWD5RB.js} +2 -2
  66. package/dist/cdn/{3MCTFEIH.js → COG2XZJ4.js} +2 -2
  67. package/dist/cdn/{2GPSZQZ4.js → CPH5KXWW.js} +2 -2
  68. package/dist/cdn/{K2TQ5BZF.js → CQD2E3EO.js} +2 -2
  69. package/dist/cdn/CYIG5WAO.js +4 -0
  70. package/dist/cdn/D3KZOWC5.js +4 -0
  71. package/dist/cdn/{BLPOLHPE.js → D4UK7TXI.js} +2 -2
  72. package/dist/cdn/{JLBB7CUI.js → DBCBXZGR.js} +2 -2
  73. package/dist/cdn/DCLGIFWJ.js +4 -0
  74. package/dist/cdn/{OUG55BXM.js → DHFIKC5B.js} +2 -2
  75. package/dist/cdn/DKEOJZMT.js +4 -0
  76. package/dist/cdn/{LTRDZSBF.js → DLT5VRSM.js} +2 -2
  77. package/dist/cdn/DR6LRJV7.js +4 -0
  78. package/dist/cdn/DUELSXM2.js +4 -0
  79. package/dist/cdn/{BU3HMAPW.js → EB5KTLHZ.js} +2 -2
  80. package/dist/cdn/EBKGUXVU.js +4 -0
  81. package/dist/cdn/{NXUX5W4U.js → EFX4VPVG.js} +2 -2
  82. package/dist/cdn/{3GXVR5GV.js → EHZXVON2.js} +2 -2
  83. package/dist/cdn/{AMDQPIUR.js → EIO2UTBP.js} +2 -2
  84. package/dist/cdn/{W66L6MRX.js → ET6N4V26.js} +2 -2
  85. package/dist/cdn/EWYHWODH.js +4 -0
  86. package/dist/cdn/EXXC6N6V.js +4 -0
  87. package/dist/cdn/F3JPQLFG.js +4 -0
  88. package/dist/cdn/{M5NGMCTD.js → F4K2QOF6.js} +2 -2
  89. package/dist/cdn/{ZVO73H77.js → FFXUE5X3.js} +2 -2
  90. package/dist/cdn/FGGL7KXL.js +4 -0
  91. package/dist/cdn/{4LW2T2YX.js → FILSCW6P.js} +2 -2
  92. package/dist/cdn/{C64KBKDQ.js → FJKT27V6.js} +2 -2
  93. package/dist/cdn/FKC7ON5U.js +4 -0
  94. package/dist/cdn/FOX4TR3X.js +4 -0
  95. package/dist/cdn/{CZMF62FW.js → FT472J6P.js} +2 -2
  96. package/dist/cdn/G7JKDYGX.js +4 -0
  97. package/dist/cdn/GCTOX3SJ.js +4 -0
  98. package/dist/cdn/{AXETG3J7.js → GDB6USKW.js} +2 -2
  99. package/dist/cdn/GE3LOAK7.js +4 -0
  100. package/dist/cdn/GF7TCENR.js +4 -0
  101. package/dist/cdn/GNBCLZQ2.js +4 -0
  102. package/dist/cdn/{JMFE2J6D.js → GQBZ5JZQ.js} +1 -1
  103. package/dist/cdn/GV2KXE75.js +4 -0
  104. package/dist/cdn/{CDLGY4J6.js → GWQ4QCMI.js} +2 -2
  105. package/dist/cdn/{YZMRGG4D.js → HDLCRVAP.js} +2 -2
  106. package/dist/cdn/HI7LEDFM.js +4 -0
  107. package/dist/cdn/HTA3AY4I.js +4 -0
  108. package/dist/cdn/{LEYFVAKA.js → HVWGO66M.js} +2 -2
  109. package/dist/cdn/HXC3HZFZ.js +4 -0
  110. package/dist/cdn/{WYBIHIVJ.js → IALA3SPX.js} +2 -2
  111. package/dist/cdn/IQK6R2QN.js +4 -0
  112. package/dist/cdn/ISCFUMBL.js +4 -0
  113. package/dist/cdn/{NULOJB5V.js → J3VJOTWQ.js} +2 -2
  114. package/dist/cdn/{CH7SBFEL.js → J3YKUHRB.js} +2 -2
  115. package/dist/cdn/J72O2M2H.js +4 -0
  116. package/dist/cdn/{C7XY3MEB.js → JAJEDW3U.js} +2 -2
  117. package/dist/cdn/JBQOAR5I.js +4 -0
  118. package/dist/cdn/{K6BMVYUS.js → JFB2LY6Y.js} +2 -2
  119. package/dist/cdn/{NLIVWTQ7.js → JHLGKPJ7.js} +2 -2
  120. package/dist/cdn/{ZCE45PVP.js → JYTTAXKQ.js} +2 -2
  121. package/dist/cdn/{ZBEL2VXD.js → K22CMR2S.js} +2 -2
  122. package/dist/cdn/K5PLCUWO.js +4 -0
  123. package/dist/cdn/KCYYBD5Y.js +4 -0
  124. package/dist/cdn/KHVZBGOP.js +4 -0
  125. package/dist/cdn/KJBVI42V.js +4 -0
  126. package/dist/cdn/{IN53Z5QU.js → KLZ2UCMX.js} +2 -2
  127. package/dist/cdn/{H4DKOG6A.js → L2ZLU5KH.js} +2 -2
  128. package/dist/cdn/L4XYWLGJ.js +4 -0
  129. package/dist/cdn/LRLLBCL5.js +4 -0
  130. package/dist/cdn/{P5DQCWRT.js → LWDLGMAE.js} +2 -2
  131. package/dist/cdn/{CKXE5HKV.js → LXOSIPNU.js} +2 -2
  132. package/dist/cdn/LYFBP2MC.js +4 -0
  133. package/dist/cdn/{3O3G7CHQ.js → LYYDCB25.js} +2 -2
  134. package/dist/cdn/{4CMHKMQ6.js → M6LGYL2R.js} +2 -2
  135. package/dist/cdn/MOPKSZK7.js +4 -0
  136. package/dist/cdn/MQ52JULI.js +4 -0
  137. package/dist/cdn/N7BISCWS.js +4 -0
  138. package/dist/cdn/NPAIISRH.js +4 -0
  139. package/dist/cdn/{LDODH7MF.js → NTYIMQXR.js} +2 -2
  140. package/dist/cdn/{SZ7N2WIA.js → NUXB5FKK.js} +2 -2
  141. package/dist/cdn/NVQVCEOF.js +4 -0
  142. package/dist/cdn/{XDTV2N42.js → NW6L56MR.js} +1 -1
  143. package/dist/cdn/NWFHIDIJ.js +5 -0
  144. package/dist/cdn/O7EUFHPU.js +4 -0
  145. package/dist/cdn/OC5REUAZ.js +4 -0
  146. package/dist/cdn/{KEWEWXAV.js → OCFJZFMZ.js} +2 -2
  147. package/dist/cdn/{5KDV4SSZ.js → OOCXRF5D.js} +2 -2
  148. package/dist/cdn/OYJY44FZ.js +4 -0
  149. package/dist/cdn/{6BBD5JPR.js → PFBB7FF3.js} +2 -2
  150. package/dist/cdn/{IOHQYAJY.js → PIGPI7QV.js} +2 -2
  151. package/dist/cdn/{SYBV6HCB.js → PSGR25DD.js} +2 -2
  152. package/dist/cdn/Q4DCWW45.js +4 -0
  153. package/dist/cdn/QGFLT4MG.js +4 -0
  154. package/dist/cdn/{TTGJGIXX.js → QN647A4S.js} +2 -2
  155. package/dist/cdn/QROJUA46.js +4 -0
  156. package/dist/cdn/{FZY26WO4.js → QWBMXHXQ.js} +2 -2
  157. package/dist/cdn/{EDMSWCZF.js → R7MXCUYF.js} +2 -2
  158. package/dist/cdn/{ZGYSINDA.js → RKOVVFXR.js} +1 -1
  159. package/dist/cdn/{ZAMRHVHR.js → RQPR5TQB.js} +2 -2
  160. package/dist/cdn/{TJFWI4RN.js → RUKDAZKW.js} +2 -2
  161. package/dist/cdn/{7DQITGM7.js → S4MKIDKL.js} +2 -2
  162. package/dist/cdn/{27P5CKIL.js → S6TIY4QB.js} +2 -2
  163. package/dist/cdn/{5MUGASLZ.js → SKGVRY4L.js} +2 -2
  164. package/dist/cdn/{QGJ53GY5.js → SL7LNVZY.js} +1 -1
  165. package/dist/cdn/{L5CIL4S6.js → SVB3WA6G.js} +1 -1
  166. package/dist/cdn/{LUVEB5WC.js → SWLINKCI.js} +2 -2
  167. package/dist/cdn/{Z2KA3GCH.js → SZCVLEAX.js} +2 -2
  168. package/dist/cdn/T5PZTXLE.js +4 -0
  169. package/dist/cdn/TALD3JKN.js +4 -0
  170. package/dist/cdn/TFPAHYKT.js +4 -0
  171. package/dist/cdn/TH5EQVP6.js +4 -0
  172. package/dist/cdn/TK4NDIYR.js +4 -0
  173. package/dist/cdn/{7SBIPOGZ.js → TKMBWULC.js} +2 -2
  174. package/dist/cdn/{YYSK24LW.js → TSZNJWNB.js} +2 -2
  175. package/dist/cdn/{VSIY5RM3.js → TVV6CYMV.js} +2 -2
  176. package/dist/cdn/{DMI7BW5Z.js → TXQ6D7B4.js} +2 -2
  177. package/dist/cdn/{LU7OCXFW.js → U3A3L6GP.js} +2 -2
  178. package/dist/cdn/{TYZRTHCW.js → U4X4RZWQ.js} +2 -2
  179. package/dist/cdn/{N5U3HG2F.js → U5JXLCNL.js} +2 -2
  180. package/dist/cdn/{OHJJ4CFM.js → UFUG3USO.js} +2 -2
  181. package/dist/cdn/{7SVNYMDO.js → UKVHR5V7.js} +2 -2
  182. package/dist/cdn/UOYVRRBC.js +4 -0
  183. package/dist/cdn/{OUYEXJF2.js → UTSOV4GI.js} +2 -2
  184. package/dist/cdn/UWODK3GX.js +4 -0
  185. package/dist/cdn/{LNKN23WA.js → UWTTTLPX.js} +2 -2
  186. package/dist/cdn/{T6CXQFYL.js → UYBJBIXS.js} +2 -2
  187. package/dist/cdn/UYF2NNQR.js +4 -0
  188. package/dist/cdn/VDEPSWVD.js +4 -0
  189. package/dist/cdn/VMRKP2RT.js +4 -0
  190. package/dist/cdn/{KGBKEGGD.js → VQHCTMEY.js} +1 -1
  191. package/dist/cdn/{WJW6SKYB.js → VVXG65LH.js} +2 -2
  192. package/dist/cdn/VY57LHZA.js +4 -0
  193. package/dist/cdn/W6TUFLRG.js +4 -0
  194. package/dist/cdn/{DEC45ZOV.js → WK654BMF.js} +2 -2
  195. package/dist/cdn/WL5BIR7H.js +4 -0
  196. package/dist/cdn/{D6SOZWKA.js → WMPJY6OB.js} +2 -2
  197. package/dist/cdn/{V4U65AFR.js → WN3XEGN6.js} +1 -1
  198. package/dist/cdn/{YJZG2K6M.js → WS6UNXOH.js} +2 -2
  199. package/dist/cdn/{OQSZ2IPM.js → WUDMJU6S.js} +2 -2
  200. package/dist/cdn/WVAJC2DA.js +4 -0
  201. package/dist/cdn/{AJCTUEY7.js → WVIP3IXR.js} +2 -2
  202. package/dist/cdn/WWWSMIJF.js +4 -0
  203. package/dist/cdn/{Q64OZXTQ.js → XHW57E7H.js} +2 -2
  204. package/dist/cdn/XI5C7PM7.js +4 -0
  205. package/dist/cdn/XNQXOLQW.js +4 -0
  206. package/dist/cdn/{2KHATNUA.js → XNWYZOGJ.js} +2 -2
  207. package/dist/cdn/{3YIQQT63.js → XTUEFBZA.js} +2 -2
  208. package/dist/cdn/XVQJ7Q3Y.js +4 -0
  209. package/dist/cdn/XW3FDVW2.js +4 -0
  210. package/dist/cdn/{6EVWV5HC.js → XX4ED5VW.js} +2 -2
  211. package/dist/cdn/{C4E77IEU.js → Y6D3K766.js} +2 -2
  212. package/dist/cdn/{KZFKH5QF.js → YHKCMCOZ.js} +2 -2
  213. package/dist/cdn/YMJFLXLO.js +4 -0
  214. package/dist/cdn/{PMNYDGPN.js → YNCN3MBH.js} +2 -2
  215. package/dist/cdn/YOZFU3AB.js +4 -0
  216. package/dist/cdn/{2IHYFX3W.js → YYFFF4W6.js} +2 -2
  217. package/dist/cdn/Z2KDIZSF.js +4 -0
  218. package/dist/cdn/{266MFGHJ.js → Z2SWX3SG.js} +2 -2
  219. package/dist/cdn/ZCXD4JY3.js +4 -0
  220. package/dist/cdn/{INNY43QS.js → ZDJBHFHH.js} +2 -2
  221. package/dist/cdn/ZIDUS336.js +4 -0
  222. package/dist/cdn/{KKRW3J5Y.js → ZOYT6Z67.js} +2 -2
  223. package/dist/cdn/ZQTHGW75.js +4 -0
  224. package/dist/cdn/ZUDEQ7EY.js +4 -0
  225. package/dist/cdn/assets/feature/t9n/messages.en.json +1 -1
  226. package/dist/cdn/assets/utility-network-subnetwork-info/t9n/messages.en.json +1 -0
  227. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.en.json +1 -1
  228. package/dist/cdn/assets/utility-network-trace-location/t9n/messages.en.json +1 -0
  229. package/dist/cdn/index.js +2 -2
  230. package/dist/cdn/main.css +1 -1
  231. package/dist/chunks/AnalysisViewModel.js +39 -35
  232. package/dist/chunks/action-utils.js +1 -1
  233. package/dist/chunks/async-utils.js +80 -62
  234. package/dist/chunks/basemap-gallery-resources.js +1 -1
  235. package/dist/chunks/chart-utils.js +1 -1
  236. package/dist/chunks/chartCommon.js +1 -1
  237. package/dist/chunks/component-utils.js +1 -1
  238. package/dist/chunks/createCloseEvent.js +1 -1
  239. package/dist/chunks/esri-main.js +2 -2
  240. package/dist/chunks/feature-utils.js +152 -107
  241. package/dist/chunks/globalCss.js +1 -1
  242. package/dist/chunks/handle.js +14 -0
  243. package/dist/chunks/heading.js +1 -1
  244. package/dist/chunks/layer-list.js +1 -1
  245. package/dist/chunks/legacyIcon.js +1 -1
  246. package/dist/chunks/maybe.js +1 -1
  247. package/dist/chunks/measurementUtils.js +1 -1
  248. package/dist/chunks/runtime.js +1 -1
  249. package/dist/chunks/screenLocation.js +1 -1
  250. package/dist/chunks/slots.js +7 -7
  251. package/dist/chunks/svgUtils.js +1 -1
  252. package/dist/chunks/univariateUtils.js +1 -1
  253. package/dist/chunks/useArcgisViewReadyError.js +86 -0
  254. package/dist/chunks/useHandles.js +1 -1
  255. package/dist/chunks/useT9n.js +1 -1
  256. package/dist/chunks/useView.js +1 -1
  257. package/dist/chunks/useViewModel.js +1 -1
  258. package/dist/chunks/useWidget.js +1 -1
  259. package/dist/chunks/utils.js +11 -16
  260. package/dist/chunks/utils2.js +1 -1
  261. package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +2 -2
  262. package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
  263. package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +1 -1
  264. package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
  265. package/dist/components/arcgis-attachments/customElement.d.ts +4 -4
  266. package/dist/components/arcgis-attachments/customElement.js +1 -1
  267. package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
  268. package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
  269. package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +1 -1
  270. package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
  271. package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
  272. package/dist/components/arcgis-bookmarks/customElement.js +2 -2
  273. package/dist/components/arcgis-building-explorer/customElement.d.ts +1 -1
  274. package/dist/components/arcgis-building-explorer/customElement.js +6 -6
  275. package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +1 -1
  276. package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
  277. package/dist/components/arcgis-compass/customElement.js +1 -1
  278. package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +2 -2
  279. package/dist/components/arcgis-coordinate-conversion/customElement.js +80 -71
  280. package/dist/components/arcgis-daylight/customElement.js +142 -146
  281. package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +1 -1
  282. package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
  283. package/dist/components/arcgis-directional-pad/customElement.js +1 -1
  284. package/dist/components/arcgis-directions/customElement.d.ts +1 -1
  285. package/dist/components/arcgis-directions/customElement.js +1 -1
  286. package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +2 -2
  287. package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
  288. package/dist/components/arcgis-editor/customElement.d.ts +1 -1
  289. package/dist/components/arcgis-editor/customElement.js +2 -2
  290. package/dist/components/arcgis-elevation-profile/customElement.d.ts +4 -4
  291. package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
  292. package/dist/components/arcgis-elevation-profile-legend/customElement.d.ts +5 -2
  293. package/dist/components/arcgis-elevation-profile-legend/customElement.js +11 -11
  294. package/dist/components/arcgis-elevation-profile-legend-item/customElement.d.ts +5 -2
  295. package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +18 -15
  296. package/dist/components/arcgis-elevation-profile-next/ElevationProfileViewModel.d.ts +17 -6
  297. package/dist/components/arcgis-elevation-profile-next/customElement.d.ts +3 -3
  298. package/dist/components/arcgis-elevation-profile-next/customElement.js +199 -150
  299. package/dist/components/arcgis-elevation-profile-next/geometryUtils.d.ts +1 -1
  300. package/dist/components/arcgis-elevation-profile-next/interfaces.d.ts +1 -8
  301. package/dist/components/arcgis-elevation-profile-settings/customElement.js +1 -1
  302. package/dist/components/arcgis-elevation-profile-statistics/customElement.d.ts +3 -2
  303. package/dist/components/arcgis-elevation-profile-statistics/customElement.js +6 -6
  304. package/dist/components/arcgis-expand/customElement.js +29 -35
  305. package/dist/components/arcgis-feature/customElement.d.ts +5 -4
  306. package/dist/components/arcgis-feature/customElement.js +88 -75
  307. package/dist/components/arcgis-feature/index.d.ts +1 -0
  308. package/dist/components/arcgis-feature/index.js +1 -0
  309. package/dist/components/arcgis-feature-attachments/customElement.d.ts +2 -0
  310. package/dist/components/arcgis-feature-attachments/customElement.js +8 -8
  311. package/dist/components/arcgis-feature-content/customElement.js +2 -2
  312. package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
  313. package/dist/components/arcgis-feature-expression/customElement.js +1 -1
  314. package/dist/components/arcgis-feature-fields/customElement.d.ts +5 -0
  315. package/dist/components/arcgis-feature-fields/customElement.js +38 -34
  316. package/dist/components/arcgis-feature-form/customElement.d.ts +4 -4
  317. package/dist/components/arcgis-feature-form/customElement.js +1 -1
  318. package/dist/components/arcgis-feature-media/customElement.js +177 -176
  319. package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
  320. package/dist/components/arcgis-feature-table/customElement.d.ts +7 -6
  321. package/dist/components/arcgis-feature-table/customElement.js +1 -1
  322. package/dist/components/arcgis-feature-templates/customElement.d.ts +2 -2
  323. package/dist/components/arcgis-feature-templates/customElement.js +1 -1
  324. package/dist/components/arcgis-feature-utility-network-association-list/customElement.d.ts +23 -0
  325. package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +123 -0
  326. package/dist/components/arcgis-feature-utility-network-association-list/index.d.ts +8 -0
  327. package/dist/components/arcgis-feature-utility-network-association-list/index.js +8 -0
  328. package/dist/components/arcgis-feature-utility-network-associations/customElement.d.ts +73 -0
  329. package/dist/components/arcgis-feature-utility-network-associations/customElement.js +506 -0
  330. package/dist/components/arcgis-feature-utility-network-associations/index.d.ts +8 -0
  331. package/dist/components/arcgis-feature-utility-network-associations/index.js +8 -0
  332. package/dist/components/arcgis-features/customElement.d.ts +3 -4
  333. package/dist/components/arcgis-features/customElement.js +3 -3
  334. package/dist/components/arcgis-floor-filter/customElement.d.ts +1 -1
  335. package/dist/components/arcgis-floor-filter/customElement.js +8 -8
  336. package/dist/components/arcgis-fullscreen/customElement.js +1 -1
  337. package/dist/components/arcgis-grid-controls/customElement.js +1 -1
  338. package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +2 -2
  339. package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
  340. package/dist/components/arcgis-home/customElement.d.ts +1 -1
  341. package/dist/components/arcgis-home/customElement.js +1 -1
  342. package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
  343. package/dist/components/arcgis-layer-list/customElement.d.ts +1 -1
  344. package/dist/components/arcgis-layer-list/customElement.js +1 -1
  345. package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
  346. package/dist/components/arcgis-legend/customElement.d.ts +1 -0
  347. package/dist/components/arcgis-legend/customElement.js +1 -1
  348. package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
  349. package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
  350. package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
  351. package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +12 -12
  352. package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +9 -9
  353. package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
  354. package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
  355. package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
  356. package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
  357. package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.js +1 -1
  358. package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +1 -1
  359. package/dist/components/arcgis-legend-classic-view/customElement.js +1 -1
  360. package/dist/components/arcgis-legend-relationship-ramp/customElement.js +1 -1
  361. package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
  362. package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
  363. package/dist/components/arcgis-link-chart/customElement.d.ts +59 -3
  364. package/dist/components/arcgis-link-chart/customElement.js +21 -15
  365. package/dist/components/arcgis-link-chart/index.d.ts +2 -0
  366. package/dist/components/arcgis-link-chart/index.js +2 -0
  367. package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
  368. package/dist/components/arcgis-locate/customElement.js +1 -1
  369. package/dist/components/arcgis-map/customElement.d.ts +99 -36
  370. package/dist/components/arcgis-map/customElement.js +26 -20
  371. package/dist/components/arcgis-map/index.d.ts +2 -0
  372. package/dist/components/arcgis-map/index.js +2 -0
  373. package/dist/components/arcgis-measurement/customElement.d.ts +4 -4
  374. package/dist/components/arcgis-measurement/customElement.js +1 -1
  375. package/dist/components/arcgis-measurement-content/customElement.js +1 -1
  376. package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
  377. package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +2 -2
  378. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
  379. package/dist/components/arcgis-placement/customElement.js +1 -1
  380. package/dist/components/arcgis-popup/customElement.d.ts +48 -16
  381. package/dist/components/arcgis-popup/customElement.js +66 -69
  382. package/dist/components/arcgis-print/customElement.js +1 -1
  383. package/dist/components/arcgis-print/utils.d.ts +1 -2
  384. package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
  385. package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
  386. package/dist/components/arcgis-print-export-button/customElement.js +1 -1
  387. package/dist/components/arcgis-print-exported-link/customElement.js +38 -48
  388. package/dist/components/arcgis-print-exports-panel/customElement.js +4 -4
  389. package/dist/components/arcgis-print-format-select/customElement.js +1 -1
  390. package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
  391. package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
  392. package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
  393. package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
  394. package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
  395. package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
  396. package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
  397. package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
  398. package/dist/components/arcgis-print-template-select/customElement.js +17 -15
  399. package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
  400. package/dist/components/arcgis-scale-bar/customElement.js +1 -1
  401. package/dist/components/arcgis-scale-range-slider/customElement.d.ts +1 -1
  402. package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
  403. package/dist/components/arcgis-scene/customElement.d.ts +45 -5
  404. package/dist/components/arcgis-scene/customElement.js +22 -16
  405. package/dist/components/arcgis-scene/index.d.ts +2 -0
  406. package/dist/components/arcgis-scene/index.js +2 -0
  407. package/dist/components/arcgis-search/customElement.d.ts +1 -1
  408. package/dist/components/arcgis-search/customElement.js +1 -1
  409. package/dist/components/arcgis-search-result-renderer/customElement.d.ts +2 -0
  410. package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
  411. package/dist/components/arcgis-shadow-cast/customElement.d.ts +2 -2
  412. package/dist/components/arcgis-shadow-cast/customElement.js +2 -2
  413. package/dist/components/arcgis-sketch/customElement.d.ts +3 -3
  414. package/dist/components/arcgis-sketch/customElement.js +2 -2
  415. package/dist/components/arcgis-slice/customElement.js +1 -1
  416. package/dist/components/arcgis-spinner/customElement.js +1 -1
  417. package/dist/components/arcgis-swipe/customElement.js +8 -8
  418. package/dist/components/arcgis-table-list/customElement.d.ts +2 -2
  419. package/dist/components/arcgis-table-list/customElement.js +1 -1
  420. package/dist/components/arcgis-time-slider/customElement.d.ts +2 -2
  421. package/dist/components/arcgis-time-slider/customElement.js +1 -1
  422. package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
  423. package/dist/components/arcgis-track/customElement.js +1 -1
  424. package/dist/components/arcgis-unit-select/customElement.js +1 -1
  425. package/dist/components/arcgis-utility-network-association-list/customElement.d.ts +27 -0
  426. package/dist/components/arcgis-utility-network-association-list/customElement.js +110 -0
  427. package/dist/components/arcgis-utility-network-association-list/index.d.ts +4 -0
  428. package/dist/components/arcgis-utility-network-association-list/index.js +4 -0
  429. package/dist/components/arcgis-utility-network-association-list/types.d.ts +2 -0
  430. package/dist/components/arcgis-utility-network-associations/customElement.d.ts +1 -1
  431. package/dist/components/arcgis-utility-network-associations/customElement.js +2 -2
  432. package/dist/components/arcgis-utility-network-result-feature-list/customElement.js +1 -1
  433. package/dist/components/arcgis-utility-network-subnetwork-info/customElement.d.ts +20 -0
  434. package/dist/components/arcgis-utility-network-subnetwork-info/customElement.js +36 -0
  435. package/dist/components/arcgis-utility-network-subnetwork-info/index.d.ts +1 -0
  436. package/dist/components/arcgis-utility-network-subnetwork-info/index.js +1 -0
  437. package/dist/components/arcgis-utility-network-trace/customElement.d.ts +1 -1
  438. package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
  439. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +2 -48
  440. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +30 -51
  441. package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +7 -8
  442. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +214 -56
  443. package/dist/components/arcgis-utility-network-trace-inputs/index.d.ts +7 -2
  444. package/dist/components/arcgis-utility-network-trace-inputs/index.js +7 -2
  445. package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +44 -0
  446. package/dist/components/arcgis-utility-network-trace-location/customElement.js +194 -0
  447. package/dist/components/arcgis-utility-network-trace-location/index.d.ts +3 -0
  448. package/dist/components/arcgis-utility-network-trace-location/index.js +3 -0
  449. package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
  450. package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +1 -1
  451. package/dist/components/arcgis-utility-network-validate-topology/customElement.js +2 -2
  452. package/dist/components/arcgis-value-picker/customElement.d.ts +2 -2
  453. package/dist/components/arcgis-value-picker/customElement.js +1 -1
  454. package/dist/components/arcgis-version-management/customElement.js +2 -2
  455. package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
  456. package/dist/components/arcgis-version-management-version-list/customElement.js +42 -27
  457. package/dist/components/arcgis-version-management-version-list/index.d.ts +2 -1
  458. package/dist/components/arcgis-version-management-version-list/index.js +2 -1
  459. package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
  460. package/dist/components/arcgis-video/customElement.d.ts +9 -2
  461. package/dist/components/arcgis-video/customElement.js +15 -9
  462. package/dist/components/arcgis-video-player/customElement.d.ts +8 -1
  463. package/dist/components/arcgis-video-player/customElement.js +22 -25
  464. package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
  465. package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
  466. package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
  467. package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
  468. package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
  469. package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
  470. package/dist/components/arcgis-weather/customElement.js +1 -1
  471. package/dist/components/arcgis-zoom/customElement.js +1 -1
  472. package/dist/controllers/uiController.d.ts +6 -1
  473. package/dist/controllers/useArcgisLoadError.d.ts +27 -0
  474. package/dist/controllers/useArcgisViewReadyError.d.ts +17 -0
  475. package/dist/docs/api.json +1130 -144
  476. package/dist/docs/docs.json +1137 -152
  477. package/dist/docs/vscode.css-custom-data.json +16 -16
  478. package/dist/docs/vscode.html-custom-data.json +66 -12
  479. package/dist/docs/web-types.json +317 -68
  480. package/dist/index.d.ts +32 -0
  481. package/dist/index.js +1 -1
  482. package/dist/loader.js +19 -15
  483. package/dist/support/AnalysisViewModel.d.ts +1 -0
  484. package/dist/support/handle.d.ts +1 -1
  485. package/dist/support/measurementUtils.d.ts +2 -2
  486. package/dist/support/slots.d.ts +1 -1
  487. package/dist/types/lumina.d.ts +26 -7
  488. package/dist/types/preact.d.ts +28 -7
  489. package/dist/types/preact10.d.ts +30 -7
  490. package/dist/types/react.d.ts +30 -7
  491. package/dist/types/stencil.d.ts +26 -7
  492. package/dist/utils/async-utils.d.ts +19 -0
  493. package/dist/utils/feature-utils.d.ts +16 -1
  494. package/dist/utils/highlight-utils.d.ts +22 -0
  495. package/dist/utils/layer-utils.d.ts +4 -0
  496. package/package.json +6 -6
  497. package/dist/cdn/2P44O4O2.js +0 -5
  498. package/dist/cdn/2WUIMDA5.js +0 -4
  499. package/dist/cdn/3CLH3YYD.js +0 -4
  500. package/dist/cdn/3FDYM5PP.js +0 -4
  501. package/dist/cdn/3HX6B7TR.js +0 -9
  502. package/dist/cdn/3NB7G4LV.js +0 -4
  503. package/dist/cdn/4C3LMRNG.js +0 -4
  504. package/dist/cdn/4ENSVHTY.js +0 -4
  505. package/dist/cdn/4GEIPOJK.js +0 -4
  506. package/dist/cdn/4HJSTTJF.js +0 -4
  507. package/dist/cdn/4TGXA7B7.js +0 -4
  508. package/dist/cdn/5I5DVOZZ.js +0 -4
  509. package/dist/cdn/5UBBANGR.js +0 -4
  510. package/dist/cdn/5ZG67RG4.js +0 -4
  511. package/dist/cdn/6HGJSV2O.js +0 -4
  512. package/dist/cdn/75L54XPX.js +0 -4
  513. package/dist/cdn/7EHYUARR.js +0 -4
  514. package/dist/cdn/7F34D57K.js +0 -4
  515. package/dist/cdn/7XVX4A27.js +0 -4
  516. package/dist/cdn/AGCG5FPU.js +0 -4
  517. package/dist/cdn/AZ722YCG.js +0 -4
  518. package/dist/cdn/B6R7BCOO.js +0 -4
  519. package/dist/cdn/BVKOLYDR.js +0 -4
  520. package/dist/cdn/CNGVFNRG.js +0 -4
  521. package/dist/cdn/CVVEOUP3.js +0 -4
  522. package/dist/cdn/CZ7FY7WK.js +0 -4
  523. package/dist/cdn/DH6B5HOV.js +0 -4
  524. package/dist/cdn/DQTQKAKC.js +0 -4
  525. package/dist/cdn/E3RHVSUI.js +0 -4
  526. package/dist/cdn/ESRJARQ6.js +0 -4
  527. package/dist/cdn/FDFLOP6T.js +0 -4
  528. package/dist/cdn/FUJ3MOBY.js +0 -4
  529. package/dist/cdn/GD3ELGYS.js +0 -4
  530. package/dist/cdn/H63I2B6H.js +0 -4
  531. package/dist/cdn/HPSTWRGP.js +0 -4
  532. package/dist/cdn/HZGKQD2C.js +0 -4
  533. package/dist/cdn/IHY4QCGU.js +0 -4
  534. package/dist/cdn/IULWUKC7.js +0 -4
  535. package/dist/cdn/JKQU5OTM.js +0 -4
  536. package/dist/cdn/JTRGCV3P.js +0 -4
  537. package/dist/cdn/JU57L2NI.js +0 -4
  538. package/dist/cdn/K3TD3WGY.js +0 -4
  539. package/dist/cdn/K6M6N4JP.js +0 -4
  540. package/dist/cdn/KBM7LWA6.js +0 -4
  541. package/dist/cdn/KCTA4G5Y.js +0 -4
  542. package/dist/cdn/KEXVBAZW.js +0 -4
  543. package/dist/cdn/KL6RI2DE.js +0 -4
  544. package/dist/cdn/KNGOI2NF.js +0 -4
  545. package/dist/cdn/KYNTUK7X.js +0 -4
  546. package/dist/cdn/L5PMMB34.js +0 -4
  547. package/dist/cdn/LA3O2Q3F.js +0 -4
  548. package/dist/cdn/LBKXCP57.js +0 -4
  549. package/dist/cdn/LHFYVKNV.js +0 -4
  550. package/dist/cdn/M2ZHK76G.js +0 -4
  551. package/dist/cdn/M7UPMMQQ.js +0 -4
  552. package/dist/cdn/MEKIRW6O.js +0 -4
  553. package/dist/cdn/MKCR2EEV.js +0 -4
  554. package/dist/cdn/MNHIWHDP.js +0 -4
  555. package/dist/cdn/MWQNC6JX.js +0 -4
  556. package/dist/cdn/NAJKA4JQ.js +0 -4
  557. package/dist/cdn/NTIGDTMA.js +0 -4
  558. package/dist/cdn/O76PCIDG.js +0 -4
  559. package/dist/cdn/P2LPJ3UW.js +0 -4
  560. package/dist/cdn/PAHGNWYF.js +0 -4
  561. package/dist/cdn/PK2P7LOX.js +0 -4
  562. package/dist/cdn/PP72DPJR.js +0 -4
  563. package/dist/cdn/PSGZR5ND.js +0 -4
  564. package/dist/cdn/PWF6GFRL.js +0 -4
  565. package/dist/cdn/Q7MJGW2R.js +0 -4
  566. package/dist/cdn/Q7U3VLMH.js +0 -4
  567. package/dist/cdn/QMOSSWPF.js +0 -4
  568. package/dist/cdn/QS5FBU6C.js +0 -4
  569. package/dist/cdn/QSJ3KILL.js +0 -4
  570. package/dist/cdn/RAU2BRBJ.js +0 -4
  571. package/dist/cdn/RIU427QE.js +0 -4
  572. package/dist/cdn/SJJBGQIS.js +0 -4
  573. package/dist/cdn/STO2VUQY.js +0 -4
  574. package/dist/cdn/TEWD3DJ2.js +0 -4
  575. package/dist/cdn/UX5G6TUG.js +0 -4
  576. package/dist/cdn/UXIUCHSK.js +0 -4
  577. package/dist/cdn/VH5NR7DL.js +0 -4
  578. package/dist/cdn/VU2ADM27.js +0 -4
  579. package/dist/cdn/WVLVS2MQ.js +0 -4
  580. package/dist/cdn/XSVVZKDP.js +0 -4
  581. package/dist/cdn/XWVLK657.js +0 -4
  582. package/dist/cdn/XZEFDWPA.js +0 -4
  583. package/dist/cdn/YCYNJ6S4.js +0 -4
  584. package/dist/cdn/YMUEX6Q2.js +0 -4
  585. package/dist/cdn/ZH2NNOYY.js +0 -4
  586. package/dist/cdn/ZIUWKQD5.js +0 -4
  587. package/dist/cdn/ZX3IRVWI.js +0 -4
  588. package/dist/chunks/uiController.js +0 -45
  589. package/dist/components/arcgis-version-management-version-item/customElement.d.ts +0 -22
  590. package/dist/components/arcgis-version-management-version-item/customElement.js +0 -30
  591. package/dist/components/arcgis-version-management-version-item/index.d.ts +0 -5
  592. package/dist/components/arcgis-version-management-version-item/index.js +0 -5
@@ -1,103 +1,261 @@
1
- import { c } from "../../chunks/runtime.js";
2
- import { repeat as l } from "lit/directives/repeat.js";
3
- import { LitElement as u, createEvent as n } from "@arcgis/lumina";
4
- import { u as d } from "../../chunks/useT9n.js";
5
- import { css as h, html as s } from "lit";
1
+ import { c as b } from "../../chunks/runtime.js";
2
+ import { repeat as h } from "lit/directives/repeat.js";
3
+ import { queryAllJSON as m } from "@arcgis/core/applications/Components/featureUtils.js";
4
+ import n from "@arcgis/core/core/Collection.js";
5
+ import f from "@arcgis/core/layers/GraphicsLayer.js";
6
+ import d from "@arcgis/core/networks/support/UNTraceConfiguration.js";
7
+ import _ from "@arcgis/core/rest/support/FeatureSet.js";
8
+ import u from "@arcgis/core/views/interactive/snapping/FeatureSnappingLayerSource.js";
9
+ import S from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
10
+ import { LitElement as T, createEvent as g, safeClassMap as p } from "@arcgis/lumina";
11
+ import { css as N, html as s } from "lit";
12
+ import { u as $ } from "../../chunks/useT9n.js";
6
13
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
14
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
8
- v5.0.0-next.1 */
9
- const g = h`:host{min-width:300px}.arcgis-utility-network-trace-inputs calcite-block{--calcite-block-border-color: transparent;margin:0;background-color:transparent}.arcgis-utility-network-trace-inputs calcite-block calcite-label:last-child{--calcite-label-margin-bottom: 0}.arcgis-utility-network-trace-inputs calcite-notice{padding:var(--calcite-spacing-xs)}`, o = "map-components:utility-network-trace-inputs";
10
- class w extends u {
15
+ v5.0.0-next.11 */
16
+ const L = N`:host{min-width:300px}.arcgis-utility-network-trace-inputs calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.arcgis-utility-network-trace-inputs calcite-block-group{padding-bottom:var(--calcite-spacing-md);background-color:var(--calcite-color-foreground-1)}.arcgis-utility-network-trace-inputs calcite-block calcite-select{padding:0 var(--calcite-spacing-md)}.arcgis-utility-network-trace-inputs calcite-block calcite-label:last-child{--calcite-label-margin-bottom: 0}.arcgis-utility-network-trace-inputs calcite-notice{padding:var(--calcite-spacing-md)}.arcgis-utility-network-trace-inputs .inline-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.arcgis-utility-network-trace-inputs__add-spatial-mode{display:flex;padding:var(--calcite-spacing-xxl) var(--calcite-spacing-sm);flex-direction:column;justify-content:center;align-items:center;gap:var(--calcite-spacing-md);align-self:stretch}.arcgis-utility-network-trace-inputs .subnetwork-info-block{padding-top:var(--calcite-spacing-md);padding-left:var(--calcite-spacing-md);padding-right:var(--calcite-spacing-md)}`, w = "arcgis-utility-network-trace-inputs", k = {
17
+ // popup renderer
18
+ base: w,
19
+ // containers and content
20
+ addSpatialMode: `${w}__add-spatial-mode`
21
+ }, c = "map-components:utility-network-trace-inputs", y = `utility-network-trace-inputs-sketch-${Date.now()}`, l = `utility-network-trace-inputs-flags-${Date.now()}`;
22
+ class C extends T {
11
23
  constructor() {
12
- super(...arguments), this.messages = d({ blocking: !0 }), this.traceConfigurations = [], this._state = "ready", this.arcgisTraceInputsChange = n(), this.arcgisUtilityNetworkChange = n();
24
+ super(...arguments), this._messages = $({ blocking: !0 }), this._startingPoints = new n(), this._barriers = new n(), this._stoppingPoints = new n(), this._subnetworkTraceTypes = /* @__PURE__ */ new Set([
25
+ "subnetwork",
26
+ "subnetwork-controller",
27
+ "upstream",
28
+ "downstream",
29
+ "isolation"
30
+ ]), this._removeDuplicateSubnetworkNames = (e, t, i) => t === 0 || e.getAttribute("SUBNETWORKNAME") !== i[t - 1].getAttribute("SUBNETWORKNAME"), this.compatibleSubnetworkNames = [], this.traceConfigurations = [], this._state = "ready", this._mode = "default", this.arcgisTraceInputsChange = g(), this.arcgisUtilityNetworkChange = g();
13
31
  }
14
32
  static {
15
- this.properties = { traceConfigurations: 16, utilityNetworks: 16, _state: 16, view: 0, selectedUtilityNetwork: 0, selectedTraceConfiguration: 0, referenceElement: 1 };
33
+ this.properties = { compatibleSubnetworkNames: 16, subnetworksTable: 16, traceConfigurations: 16, utilityNetworks: 16, _state: 16, _mode: 16, _activeTraceLocationType: 16, view: 0, selectedSubnetworkName: 1, selectedUtilityNetwork: 0, selectedTraceConfiguration: 0, referenceElement: 1, traceLocations: 32 };
16
34
  }
17
35
  static {
18
- this.styles = g;
36
+ this.styles = L;
37
+ }
38
+ get _allLayers() {
39
+ const { view: e } = this;
40
+ return e?.map ? e.map.allLayers.toArray().concat(e.map.allTables.toArray()) : [];
41
+ }
42
+ get traceLocations() {
43
+ const e = this._startingPoints.toArray().map((a) => a.traceLocation), t = this._barriers.toArray().map((a) => a.traceLocation), i = this._stoppingPoints.toArray().map((a) => a.traceLocation);
44
+ return [...e, ...t, ...i];
19
45
  }
20
46
  load() {
21
- this._setupUtilityNetwork();
47
+ this._setupUtilityNetwork(), this._setupSketchViewModel();
22
48
  }
23
- willUpdate(t) {
24
- const { utilityNetworks: e, selectedUtilityNetwork: i } = this;
25
- (t.has("utilityNetworks") || !e || e.length === 0 || !i || !e?.includes(i)) && this._handleUtilityNetworksChange(), t.has("selectedUtilityNetwork") && (this.arcgisUtilityNetworkChange.emit(), this._setupTraceConfigurations()), t.has("selectedTraceConfiguration") && (this.arcgisTraceInputsChange.emit(), this._handleTraceConfigChange());
49
+ willUpdate(e) {
50
+ const { utilityNetworks: t, selectedUtilityNetwork: i } = this;
51
+ (e.has("utilityNetworks") || !t || t.length === 0 || !i || !t?.includes(i)) && this._handleUtilityNetworksChange(), e.has("selectedUtilityNetwork") && (this.arcgisUtilityNetworkChange.emit(), this._handleSelectedUtilityNetworkChange()), e.has("selectedTraceConfiguration") && (this.arcgisTraceInputsChange.emit(), this._handleTraceConfigChange()), e.has("selectedSubnetworkName") && this.arcgisTraceInputsChange.emit();
26
52
  }
27
- _handleSubnetworkTraceConfigChange(t) {
28
- if (!t.traceConfiguration) {
29
- console.error(`${o} - Trace configuration not found`);
53
+ _clearTraceLocations() {
54
+ this._getGraphicLayer(l)?.removeAll(), this._startingPoints.removeAll(), this._barriers.removeAll(), this._stoppingPoints.removeAll();
55
+ }
56
+ _addUniqueLayer(e, t, i) {
57
+ if (!t || !e?.map)
30
58
  return;
59
+ const { map: a } = e, r = a.layers.find((o) => o === t);
60
+ r || a.add(t, i), r && i != null && a.layers.reorder(r, i);
61
+ }
62
+ _createGraphicLayer(e) {
63
+ const { map: t } = this.view;
64
+ if (!t?.findLayerById(e)) {
65
+ const a = new f({
66
+ id: e,
67
+ listMode: "hide",
68
+ title: e
69
+ });
70
+ this._addUniqueLayer(this.view, a);
71
+ }
72
+ }
73
+ _getGraphicLayer(e) {
74
+ const { map: t } = this.view;
75
+ if (t) {
76
+ const i = t.findLayerById(e);
77
+ if (i && i.type === "graphics")
78
+ return i;
79
+ }
80
+ return null;
81
+ }
82
+ _setSnappingOption() {
83
+ const { _sketchViewModel: e, _unLayers: t } = this;
84
+ if (e && t && t.length > 0) {
85
+ const i = new n();
86
+ t.forEach((a) => {
87
+ a.type === "subtype-group" ? a.sublayers.forEach((r) => {
88
+ i.add(new u({
89
+ layer: r,
90
+ enabled: !0
91
+ }));
92
+ }) : i.add(new u({
93
+ layer: a,
94
+ enabled: !0
95
+ }));
96
+ }), e.snappingOptions = {
97
+ enabled: !0,
98
+ featureEnabled: !0,
99
+ featureSources: i
100
+ };
31
101
  }
32
102
  }
33
- _selectTraceConfigurationByGuid(t) {
34
- const e = this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.find((i) => i.globalId === t);
35
- if (!e) {
36
- console.error(`${o} - Trace configuration not found`);
103
+ _initializeSketchViewModel() {
104
+ const { view: e, _unLayers: t } = this, i = this._getGraphicLayer(y), a = new n();
105
+ return t?.forEach((r) => a.add(new u({
106
+ layer: r,
107
+ enabled: !0
108
+ }))), new S({
109
+ layer: i,
110
+ view: e
111
+ });
112
+ }
113
+ _setupSketchViewModel() {
114
+ this._createGraphicLayer(y), this._createGraphicLayer(l), this._sketchViewModel = this._initializeSketchViewModel();
115
+ }
116
+ _clearSubnetworks() {
117
+ this.selectedSubnetworkName = void 0, this.subnetworksTable = void 0, this.compatibleSubnetworkNames = [];
118
+ }
119
+ async _loadSubnetworksTable() {
120
+ this.subnetworksTable || (this.subnetworksTable = await this.selectedUtilityNetwork?.loadSubnetworksTable());
121
+ }
122
+ async _querySubnetworks() {
123
+ const { subnetworksTable: e } = this;
124
+ if (!e)
125
+ return;
126
+ const t = e.createQuery();
127
+ t.gdbVersion = this.selectedUtilityNetwork?.gdbVersion, t.where = this._getSubnetworkQueryWhereClause(), t.outFields = ["SUBNETWORKNAME"], t.orderByFields = ["SUBNETWORKNAME"];
128
+ const i = _.fromJSON(await m(e, t));
129
+ this.compatibleSubnetworkNames = i.features.filter(this._removeDuplicateSubnetworkNames).map((a) => a.getAttribute("SUBNETWORKNAME"));
130
+ }
131
+ _getSubnetworkQueryWhereClause() {
132
+ const e = this.selectedTraceConfiguration?.traceConfiguration, t = `DOMAINNETWORKNAME = '${e.domainNetworkName}'`, i = `TIERNAME = '${e.tierName}'`;
133
+ return [t, i].join(" AND ");
134
+ }
135
+ async _handleSubnetworkTraceConfigChange(e) {
136
+ const { traceConfiguration: t } = e;
137
+ if (!(t instanceof d)) {
138
+ console.error(`${c} - Trace configuration not found`);
37
139
  return;
38
140
  }
39
- this.selectedTraceConfiguration = e;
141
+ await this._loadSubnetworksTable(), await this._querySubnetworks(), this.selectedSubnetworkName = this.compatibleSubnetworkNames.find((i) => i === t.subnetworkName) ?? this.compatibleSubnetworkNames.at(0);
142
+ }
143
+ _selectTraceConfigurationByGuid(e) {
144
+ const t = this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.find((i) => i.globalId === e);
145
+ if (!t) {
146
+ console.error(`${c} - Trace configuration not found`);
147
+ return;
148
+ }
149
+ this.selectedTraceConfiguration = t;
40
150
  }
41
151
  _handleTraceConfigChange() {
42
- const { selectedTraceConfiguration: t } = this;
43
- if (t)
44
- switch (t.traceType) {
152
+ const { selectedTraceConfiguration: e } = this;
153
+ if (e)
154
+ switch (e.traceType) {
45
155
  case "subnetwork":
46
- this._handleSubnetworkTraceConfigChange(t);
156
+ this._handleSubnetworkTraceConfigChange(e);
47
157
  break;
48
158
  default:
49
- console.error(`${o} - Unknown trace configuration type`);
159
+ console.error(`${c} - Unknown trace configuration type`);
50
160
  }
51
161
  }
52
- async _setupTraceConfigurations() {
53
- await this.selectedUtilityNetwork?.load(), this.traceConfigurations = this.selectedUtilityNetwork?.sharedNamedTraceConfigurations || [], this.selectedTraceConfiguration = this.traceConfigurations.at(0);
162
+ async _handleSelectedUtilityNetworkChange() {
163
+ await this.selectedUtilityNetwork?.load(), this._clearSubnetworks(), this._setupTraceConfigurations(), this._filterUnLayers(), this._clearTraceLocations();
164
+ }
165
+ _setupTraceConfigurations() {
166
+ this.traceConfigurations = this.selectedUtilityNetwork?.sharedNamedTraceConfigurations || [], this.selectedTraceConfiguration = this.traceConfigurations.at(0);
167
+ }
168
+ _filterUnLayers() {
169
+ const { selectedUtilityNetwork: e } = this;
170
+ this._unLayers = new n(this._allLayers.filter((t) => e?.isUtilityLayer(t))), this._setSnappingOption();
54
171
  }
55
172
  _handleUtilityNetworksChange() {
56
- const { utilityNetworks: t } = this;
57
- if (!t || t.length === 0) {
58
- this._state = "error", console.error(`${o} - No utility networks found in the map`);
173
+ const { utilityNetworks: e } = this;
174
+ if (!e || e.length === 0) {
175
+ this._state = "error", console.error(`${c} - No utility networks found in the map`);
59
176
  return;
60
177
  }
61
- (!this.selectedUtilityNetwork || !t.includes(this.selectedUtilityNetwork)) && (this.selectedUtilityNetwork = t.at(0));
178
+ (!this.selectedUtilityNetwork || !e.includes(this.selectedUtilityNetwork)) && (this.selectedUtilityNetwork = e.at(0));
62
179
  }
63
180
  async _setupUtilityNetwork() {
64
181
  if (this.view?.map) {
65
- const t = this.view.map;
66
- await t.load(), this.utilityNetworks = t.utilityNetworks || void 0;
182
+ const e = this.view.map;
183
+ await e.load(), this.utilityNetworks = e.utilityNetworks || void 0;
67
184
  } else
68
- this._state = "disabled", console.error(`${o} - No view or map available to load utility networks`);
185
+ this._state = "disabled", console.error(`${c} - No view or map available to load utility networks`);
69
186
  }
70
- renderError(t, e = !1) {
71
- return s`<calcite-notice .closable=${e} kind=danger open scale=s width=full><div slot=message>${t}</div></calcite-notice>`;
187
+ _handleTraceLocationSelectStart(e) {
188
+ this._activeTraceLocationType = e?.target?.traceLocationType, this._mode = "add-spatial";
189
+ }
190
+ _handleTraceLocationSelectEnd() {
191
+ this._activeTraceLocationType = void 0, this._mode = "default";
192
+ }
193
+ _handleFlowItemBack() {
194
+ this._mode = "default", this._activeTraceLocationType = void 0, this._sketchViewModel?.cancel();
195
+ }
196
+ renderError(e, t = !1, i) {
197
+ return s`<calcite-notice .closable=${t} kind=danger open scale=s width=auto .icon=${i}><div slot=message>${e}</div></calcite-notice>`;
72
198
  }
73
199
  renderLoader() {
74
200
  return s`<calcite-loader label=loading></calcite-loader>`;
75
201
  }
76
202
  renderTraceSelection() {
77
- const { messages: t, traceConfigurations: e } = this, i = t.labels.traceConfiguration;
78
- if (e.length === 0)
79
- return this.renderError(t.errors.noTraceConfigurationError, !0);
80
- const r = l(e, (a) => a.globalId, (a) => s`<calcite-option .value=${a.globalId}>${a.title}</calcite-option>`);
81
- return s`<calcite-label>${i}<calcite-select .label=${i} .value=${this.selectedTraceConfiguration?.globalId || void 0} @calciteSelectChange=${(a) => {
82
- this._selectTraceConfigurationByGuid(a.target.value);
83
- }}>${r}</calcite-select></calcite-label>`;
203
+ const { _messages: e, traceConfigurations: t } = this, i = e.labels.traceConfiguration;
204
+ if (t.length === 0)
205
+ return this.renderError(e.errors.noTraceConfigurationError, !0);
206
+ const a = h(t, (r) => r.globalId, (r) => s`<calcite-option .value=${r.globalId}>${r.title}</calcite-option>`);
207
+ return s`<calcite-block .heading=${i} .label=${i} expanded><calcite-select .label=${i} .value=${this.selectedTraceConfiguration?.globalId || void 0} @calciteSelectChange=${(r) => {
208
+ this._selectTraceConfigurationByGuid(r.target.value);
209
+ }}>${a}</calcite-select></calcite-block>`;
84
210
  }
85
211
  renderUtilityNetworkSelection() {
86
- const { messages: t } = this, e = t.labels.utilityNetwork, i = l(this.utilityNetworks, (r) => r.id, (r) => s`<calcite-option .value=${r.id}>${r.title}</calcite-option>`);
87
- return s`<calcite-label>${e}<calcite-select .label=${e} .value=${this.selectedUtilityNetwork?.id} @calciteSelectChange=${(r) => {
88
- this.selectedUtilityNetwork?.id !== r.target.value && (this.selectedUtilityNetwork = this.utilityNetworks?.find((a) => a.id === r.target.value));
89
- }}>${i}</calcite-select></calcite-label>`;
212
+ const { _messages: e } = this, t = e.labels.utilityNetwork, i = h(this.utilityNetworks, (a) => a.id, (a) => s`<calcite-option .value=${a.id}>${a.title}</calcite-option>`);
213
+ return s`<calcite-block .heading=${t} .label=${t} expanded><calcite-select .label=${t} .value=${this.selectedUtilityNetwork?.id} @calciteSelectChange=${(a) => {
214
+ this.selectedUtilityNetwork?.id !== a.target.value && (this.selectedUtilityNetwork = this.utilityNetworks?.find((r) => r.id === a.target.value));
215
+ }}>${i}</calcite-select></calcite-block>`;
216
+ }
217
+ renderDefaultMode() {
218
+ const { _messages: e, _state: t, _mode: i } = this;
219
+ return s`<calcite-flow-item .selected=${i === "default"}>${t === "disabled" ? this.renderError(e.errors.noMapError) : this.renderContent()}</calcite-flow-item>`;
220
+ }
221
+ renderAddSpatialMode() {
222
+ const { _messages: e, _activeTraceLocationType: t } = this, i = t === "starting-point" ? e.labels.addSpatial.startingPoint : t === "barrier" ? e.labels.addSpatial.barrier : e.labels.addSpatial.stoppingPoint;
223
+ return s`<calcite-flow-item selected .heading=${i} @calciteFlowItemBack=${() => this._handleFlowItemBack()}><div class=${p(k.addSpatialMode)}><calcite-icon icon=pin-plus scale=l></calcite-icon>${e.instructions.addSpatial}</div></calcite-flow-item>`;
224
+ }
225
+ renderStartingPointSelection() {
226
+ return s`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=starting-point @arcgisTraceLocationSelectStart=${(e) => this._handleTraceLocationSelectStart(e)} @arcgisTraceLocationSelectEnd=${() => this._handleTraceLocationSelectEnd()} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(l)} .traceLocations=${this._startingPoints}></arcgis-utility-network-trace-location>`;
227
+ }
228
+ renderStoppingPointSelection() {
229
+ return s`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=stopping-point @arcgisTraceLocationSelectStart=${(e) => this._handleTraceLocationSelectStart(e)} @arcgisTraceLocationSelectEnd=${() => this._handleTraceLocationSelectEnd()} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(l)} .traceLocations=${this._stoppingPoints}></arcgis-utility-network-trace-location>`;
230
+ }
231
+ renderBarrierSelection() {
232
+ return s`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=barrier @arcgisTraceLocationSelectStart=${(e) => this._handleTraceLocationSelectStart(e)} @arcgisTraceLocationSelectEnd=${() => this._handleTraceLocationSelectEnd()} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(l)} .traceLocations=${this._barriers}></arcgis-utility-network-trace-location>`;
233
+ }
234
+ renderSubnetworkSelectList() {
235
+ const { compatibleSubnetworkNames: e, selectedSubnetworkName: t, _messages: i } = this, a = i.labels.subnetworkName, r = e.map((o) => s`<calcite-option .value=${o}>${o}</calcite-option>`);
236
+ return s`<calcite-block .heading=${a} .label=${a} expanded><calcite-select .label=${a} .value=${t} @calciteSelectChange=${(o) => this.selectedSubnetworkName = o.target.value}>${r}</calcite-select></calcite-block>`;
237
+ }
238
+ renderSubnetworkSelection() {
239
+ const { compatibleSubnetworkNames: e, _messages: t, selectedTraceConfiguration: i } = this;
240
+ return i?.traceConfiguration instanceof d && i.traceType === "subnetwork" && i.traceConfiguration.subnetworkName ? this.subnetworksTable?.loaded ? e.length ? this.renderSubnetworkSelectList() : this.renderError(t.errors.noCompatibleSubnetworks, !1, "exclamation-mark-triangle") : s`<calcite-loader class="inline-loader" label=loading scale=s></calcite-loader>` : null;
241
+ }
242
+ renderSubnetworkInfo() {
243
+ const { _messages: e, selectedTraceConfiguration: t } = this;
244
+ return t?.traceConfiguration instanceof d && t.traceType && this._subnetworkTraceTypes.has(t.traceType) ? s`<calcite-block class="subnetwork-info-block" expanded .label=${e.labels.subnetworkInfo}><arcgis-utility-network-subnetwork-info .namedTraceConfig=${t}></arcgis-utility-network-subnetwork-info></calcite-block>` : null;
90
245
  }
91
246
  renderContent() {
92
- const { messages: t, utilityNetworks: e } = this;
93
- return !e || e.length === 0 ? this.renderError(t.errors.noUtilityNetworkError) : s`${e.length === 1 ? null : this.renderUtilityNetworkSelection()}${this.selectedUtilityNetwork?.loaded ? this.renderTraceSelection() : this.renderLoader()}`;
247
+ const { _messages: e, utilityNetworks: t } = this;
248
+ if (!t || t.length === 0)
249
+ return this.renderError(e.errors.noUtilityNetworkError);
250
+ const i = s`${this.renderTraceSelection()}${this.renderSubnetworkInfo()}${this.renderSubnetworkSelection()}`;
251
+ return s`<calcite-block-group .label=${e.labels.traceInputs}>${t.length > 1 ? this.renderUtilityNetworkSelection() : null}${this.selectedUtilityNetwork?.loaded ? i : this.renderLoader()}${this.selectedTraceConfiguration ? this.renderStartingPointSelection() : null}${this.selectedTraceConfiguration ? this.renderStoppingPointSelection() : null}${this.selectedTraceConfiguration ? this.renderBarrierSelection() : null}</calcite-block-group>`;
94
252
  }
95
253
  render() {
96
- const { messages: t, _state: e } = this;
97
- return s`<div class="arcgis-utility-network-trace-inputs"><calcite-block expanded .label=${t.labels.traceInputs}>${e === "disabled" ? this.renderError(t.errors.noMapError) : this.renderContent()}</calcite-block></div>`;
254
+ const { _mode: e } = this;
255
+ return s`<div class=${p(k.base)}><calcite-flow>${this.renderDefaultMode()}${e === "add-spatial" ? this.renderAddSpatialMode() : null}</calcite-flow></div>`;
98
256
  }
99
257
  }
100
- c("arcgis-utility-network-trace-inputs", w);
258
+ b("arcgis-utility-network-trace-inputs", C);
101
259
  export {
102
- w as ArcgisUtilityNetworkTraceInputs
260
+ C as ArcgisUtilityNetworkTraceInputs
103
261
  };
@@ -1,7 +1,12 @@
1
1
  import "@esri/calcite-components/components/calcite-notice";
2
2
  import "@esri/calcite-components/components/calcite-loader";
3
3
  import "@esri/calcite-components/components/calcite-option";
4
- import "@esri/calcite-components/components/calcite-label";
5
- import "@esri/calcite-components/components/calcite-select";
6
4
  import "@esri/calcite-components/components/calcite-block";
5
+ import "@esri/calcite-components/components/calcite-select";
6
+ import "@esri/calcite-components/components/calcite-flow-item";
7
+ import "@esri/calcite-components/components/calcite-icon";
8
+ import "../arcgis-utility-network-trace-location/index.js";
9
+ import "../arcgis-utility-network-subnetwork-info/index.js";
10
+ import "@esri/calcite-components/components/calcite-block-group";
11
+ import "@esri/calcite-components/components/calcite-flow";
7
12
  export * from "./customElement.js";
@@ -1,7 +1,12 @@
1
1
  import "@esri/calcite-components/components/calcite-notice";
2
2
  import "@esri/calcite-components/components/calcite-loader";
3
3
  import "@esri/calcite-components/components/calcite-option";
4
- import "@esri/calcite-components/components/calcite-label";
5
- import "@esri/calcite-components/components/calcite-select";
6
4
  import "@esri/calcite-components/components/calcite-block";
5
+ import "@esri/calcite-components/components/calcite-select";
6
+ import "@esri/calcite-components/components/calcite-flow-item";
7
+ import "@esri/calcite-components/components/calcite-icon";
8
+ import "../arcgis-utility-network-trace-location/index.js";
9
+ import "../arcgis-utility-network-subnetwork-info/index.js";
10
+ import "@esri/calcite-components/components/calcite-block-group";
11
+ import "@esri/calcite-components/components/calcite-flow";
7
12
  export * from "./customElement.js";
@@ -0,0 +1,44 @@
1
+ /// <reference path="../../index.d.ts" />
2
+ import { default as Collection } from '@arcgis/core/core/Collection.js';
3
+ import { default as GraphicsLayer } from '@arcgis/core/layers/GraphicsLayer.js';
4
+ import { default as Layer } from '@arcgis/core/layers/Layer.js';
5
+ import { default as MapView } from '@arcgis/core/views/MapView.js';
6
+ import { default as SketchViewModel } from '@arcgis/core/widgets/Sketch/SketchViewModel.js';
7
+ import { PublicLitElement as LitElement, TargetedEvent, JsxNode } from '@arcgis/lumina';
8
+ import { default as UtilityNetwork } from '@arcgis/core/networks/UtilityNetwork.js';
9
+ import { default as TraceLocation } from '@arcgis/core/rest/networks/support/TraceLocation.js';
10
+ import { default as Point } from '@arcgis/core/geometry/Point.js';
11
+ import { default as Graphic } from '@arcgis/core/Graphic.js';
12
+ export interface FlagProperty {
13
+ traceLocation: TraceLocation;
14
+ mapPoint?: Point | null;
15
+ mapGraphic?: Graphic | null;
16
+ details?: Graphic | null;
17
+ }
18
+
19
+ /**
20
+ * This is a sub-component used by the **ArcgisUtilityNetworkTraceAnalysis** component.
21
+ *
22
+ * This sub-component takes a map view as an input.
23
+ * It allows users to select locations on the map to use as trace inputs.
24
+ *
25
+ * [Read more...](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-utility-network-trace-location/)
26
+ *
27
+ * @since 4.34
28
+ * @internal
29
+ */
30
+ export declare class ArcgisUtilityNetworkTraceLocation extends LitElement {
31
+ /** @required */
32
+ view?: MapView;
33
+ /** @default "starting-point" */
34
+ traceLocationType: "barrier" | "starting-point" | "stopping-point";
35
+ traceLocations?: Collection<FlagProperty>;
36
+ filterLayers?: Collection<Layer>;
37
+ sketchViewModel?: SketchViewModel;
38
+ flagLayer?: GraphicsLayer;
39
+ /** @required The utility network to perform the trace on. */
40
+ utilityNetwork?: UtilityNetwork;
41
+ readonly arcgisTraceLocationChange: TargetedEvent<this, void>;
42
+ readonly arcgisTraceLocationSelectEnd: TargetedEvent<this, void>;
43
+ readonly arcgisTraceLocationSelectStart: TargetedEvent<this, void>;
44
+ }
@@ -0,0 +1,194 @@
1
+ import { c as $ } from "../../chunks/runtime.js";
2
+ import { css as T, html as b } from "lit";
3
+ import v from "@arcgis/core/geometry/Polyline.js";
4
+ import x from "@arcgis/core/geometry/SpatialReference.js";
5
+ import { LitElement as C, createEvent as w, safeClassMap as y } from "@arcgis/lumina";
6
+ import { u as A } from "../../chunks/useT9n.js";
7
+ import _ from "@arcgis/core/rest/networks/support/TraceLocation.js";
8
+ import F from "@arcgis/core/Graphic.js";
9
+ import { SimpleMarkerSymbol as S } from "@arcgis/core/symbols.js";
10
+ import * as k from "@arcgis/core/geometry/operators/projectOperator.js";
11
+ import * as N from "@arcgis/core/geometry/operators/cutOperator.js";
12
+ import * as L from "@arcgis/core/geometry/operators/lengthOperator.js";
13
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
14
+ See https://js.arcgis.com/5.0/esri/copyright.txt for details.
15
+ v5.0.0-next.11 */
16
+ const R = T`.arcgis-utility-network-trace-location calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.arcgis-utility-network-trace-location calcite-notice{padding:var(--calcite-spacing-xs)}.arcgis-utility-network-trace-location__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)}.arcgis-utility-network-trace-location__button-container{justify-content:center;display:grid}.arcgis-utility-network-trace-location__clear-button{--calcite-button-border-color: transparent}`, g = "arcgis-utility-network-trace-location", f = {
17
+ // popup renderer
18
+ base: g,
19
+ // containers and content
20
+ buttonContainer: `${g}__button-container`,
21
+ clearButton: `${g}__clear-button`,
22
+ addLocationButton: `${g}__add-location-button`
23
+ }, n = "map-components:utility-network-trace-location";
24
+ class B extends C {
25
+ constructor() {
26
+ super(...arguments), this.messages = A({ blocking: !0 }), this.traceLocationType = "starting-point", this.arcgisTraceLocationChange = w(), this.arcgisTraceLocationSelectEnd = w(), this.arcgisTraceLocationSelectStart = w();
27
+ }
28
+ static {
29
+ this.properties = { view: 0, traceLocationType: 1, traceLocations: 0, filterLayers: 0, sketchViewModel: 0, flagLayer: 0, utilityNetwork: 0 };
30
+ }
31
+ static {
32
+ this.styles = R;
33
+ }
34
+ async load() {
35
+ k.isLoaded() || await k.load();
36
+ }
37
+ _createPolyline(t, e) {
38
+ return new v({
39
+ hasZ: !1,
40
+ hasM: !0,
41
+ paths: t,
42
+ spatialReference: new x({ wkid: e })
43
+ });
44
+ }
45
+ _calculatePercentAlong(t, e) {
46
+ const o = t.spatialReference, r = this._createPolyline(t.paths, o.wkid), a = e.x - 0.5, s = e.x + 0.5, i = e.y - 0.5, c = e.y + 0.5, l = [
47
+ [
48
+ [a, i],
49
+ [s, c]
50
+ ]
51
+ ], p = this._createPolyline(l, e.spatialReference.wkid), d = k.execute(p, o);
52
+ if (!d)
53
+ return console.error(`${n} - Unable to project flag geometry to source geometry spatial reference.`), 0.5;
54
+ const u = N.execute(r, d);
55
+ if (u.length > 0) {
56
+ const h = L.execute(r, { unit: "feet" });
57
+ let m;
58
+ return u[0].paths[0][0][0] === r.paths[0][0][0] ? m = L.execute(u[0], { unit: "feet" }) : m = L.execute(u[1], { unit: "feet" }), m / h;
59
+ }
60
+ return console.warn(`${n} - Unable to cut the source geometry with the flag geometry.`), 0.5;
61
+ }
62
+ async _ensureNecessaryAttributes(t) {
63
+ const e = (t.layer?.type === "feature", t.layer), o = e.fieldsIndex?.get("assetgroup") ?? !1, r = e.fieldsIndex?.get("assetgroup")?.name ?? "assetgroup", a = e.fieldsIndex?.get("assettype") ?? !1, s = e.fieldsIndex?.get("assettype")?.name ?? "assettype", i = t.getGlobalId(), c = t.getObjectId(), l = o ? !!t.getAttribute(r) : !0, p = a ? !!t.getAttribute(s) : !0;
64
+ if (i && c && l && p)
65
+ return t;
66
+ const d = e.createQuery();
67
+ return d.objectIds = [c], (await e.queryFeatures(d))?.features[0] || null;
68
+ }
69
+ async _ensureNecessaryAttributesAndGenerateTraceLocation(t, e) {
70
+ const { view: o } = this;
71
+ if (!o || t.length === 0) {
72
+ console.log(`${n} - No view or results to process.`);
73
+ return;
74
+ }
75
+ const a = t[0].graphic, s = await this._ensureNecessaryAttributes(a);
76
+ if (!s) {
77
+ console.error(`${n} - Unable to get necessary attributes for trace location.`);
78
+ return;
79
+ }
80
+ this._generateTraceLocation(s, e);
81
+ }
82
+ _addFlagGraphic(t, e, o) {
83
+ const { flagLayer: r, view: a, traceLocationType: s } = this;
84
+ if (!r || !a)
85
+ return console.error(`${n} - Flag layer or view is not available.`), null;
86
+ const i = e.geometry?.type;
87
+ if (this.traceLocations?.some((h) => h.traceLocation.globalId === t) && i !== "polyline")
88
+ return console.warn(`${n} - A flag with the same globalId already exists.`), null;
89
+ const p = s === "starting-point" ? [21, 244, 21, 0.6] : [227, 27, 21, 0.6], d = new S({
90
+ color: p,
91
+ size: 12,
92
+ outline: {
93
+ color: p,
94
+ width: 0
95
+ }
96
+ }), u = new F({
97
+ geometry: o,
98
+ symbol: d,
99
+ attributes: e.attributes
100
+ });
101
+ return r.add(u), u;
102
+ }
103
+ _generateTraceLocation(t, e) {
104
+ const { traceLocationType: o, traceLocations: r, utilityNetwork: a } = this, s = t.getGlobalId() ?? "", i = t.geometry?.type, c = this._addFlagGraphic(s, t, e);
105
+ if (!c) {
106
+ console.warn(`${n} - Unable to add flag graphic.`);
107
+ return;
108
+ }
109
+ if (i === "point" || i === "polygon") {
110
+ const l = a?.getTerminalConfiguration(t);
111
+ r?.add({
112
+ traceLocation: new _({
113
+ type: o,
114
+ isFilterBarrier: !1,
115
+ globalId: s,
116
+ terminalId: l ? l.terminals[0].id || void 0 : 1
117
+ }),
118
+ mapPoint: e,
119
+ details: t,
120
+ mapGraphic: c
121
+ });
122
+ } else if (i === "polyline") {
123
+ const l = this._calculatePercentAlong(t.geometry, e);
124
+ r?.add({
125
+ traceLocation: new _({
126
+ type: o,
127
+ isFilterBarrier: !1,
128
+ globalId: s,
129
+ percentAlong: l
130
+ }),
131
+ mapPoint: e,
132
+ details: t,
133
+ mapGraphic: c
134
+ });
135
+ }
136
+ }
137
+ async _hitTest(t) {
138
+ const { view: e, utilityNetwork: o } = this;
139
+ if (!e || !o) {
140
+ console.error(`${n} - View or utility network is not available for hit test.`);
141
+ return;
142
+ }
143
+ const r = t.graphic?.geometry, a = this.view?.toScreen(r);
144
+ if (!a) {
145
+ console.warn(`${n} - No screen point available for hit test.`);
146
+ return;
147
+ }
148
+ const i = (await e.hitTest(a, {
149
+ include: this.filterLayers
150
+ })).results.filter((c) => c.type === "graphic" && c?.layer && c.graphic);
151
+ if (i.length === 0) {
152
+ console.log(`${n} - No usable hit test results found.`);
153
+ return;
154
+ }
155
+ this._ensureNecessaryAttributesAndGenerateTraceLocation(i, r);
156
+ }
157
+ _resetAfterSketch() {
158
+ const { view: t } = this;
159
+ if (!t) {
160
+ console.error(`${n} - View is not available to reset after sketch.`);
161
+ return;
162
+ }
163
+ this._clickHandler?.remove(), this._clickHandler = void 0, "acquireCursor" in t && t.acquireCursor("default"), this.arcgisTraceLocationSelectEnd.emit();
164
+ }
165
+ _handleSketchComplete(t) {
166
+ const { sketchViewModel: e, view: o } = this;
167
+ if (!e || !o) {
168
+ console.error(`${n} - SketchViewModel or view is not available on sketch complete.`);
169
+ return;
170
+ }
171
+ t.state === "complete" && t.graphic && (e.layer.remove(t.graphic), this._hitTest(t)), (t.state === "cancel" || t.state === "complete") && this._resetAfterSketch();
172
+ }
173
+ _handleAddButtonClick() {
174
+ const { view: t, sketchViewModel: e } = this;
175
+ t && e && (this._clickHandler?.remove(), this._clickHandler = e.on("create", this._handleSketchComplete.bind(this)), "acquireCursor" in t && t.acquireCursor("crosshair"), this.sketchViewModel?.create("point"), this.arcgisTraceLocationSelectStart.emit());
176
+ }
177
+ _handleClearButtonClick() {
178
+ const { flagLayer: t, traceLocations: e } = this;
179
+ e?.forEach((o) => {
180
+ o.mapGraphic && t && t.remove(o.mapGraphic);
181
+ }), e?.removeAll();
182
+ }
183
+ renderAddLocationBlock() {
184
+ const { traceLocationType: t, messages: e, traceLocations: o } = this, r = t === "starting-point" ? e.types.startingPoint : t === "barrier" ? e.types.barrier : e.types.stoppingPoint, a = r.heading, s = r.description, i = r.buttonText;
185
+ return b`<calcite-block .heading=${a} .label=${a} expanded .description=${s}>${o?.length ? b`<calcite-button class=${y(f.clearButton)} slot=actions-end appearance=transparent .label=${e.buttons.clear} @click=${() => this._handleClearButtonClick()}>${e.buttons.clear}</calcite-button>` : null}<div class=${y(f.buttonContainer)}><calcite-button class=${y(f.addLocationButton)} icon-start=select appearance=outline .label=${i} @click=${() => this._handleAddButtonClick()}>${i}</calcite-button></div></calcite-block>`;
186
+ }
187
+ render() {
188
+ return b`<div class=${y(f.base)}>${this.renderAddLocationBlock()}</div>`;
189
+ }
190
+ }
191
+ $("arcgis-utility-network-trace-location", B);
192
+ export {
193
+ B as ArcgisUtilityNetworkTraceLocation
194
+ };
@@ -0,0 +1,3 @@
1
+ import "@esri/calcite-components/components/calcite-block";
2
+ import "@esri/calcite-components/components/calcite-button";
3
+ export * from "./customElement.js";
@@ -0,0 +1,3 @@
1
+ import "@esri/calcite-components/components/calcite-block";
2
+ import "@esri/calcite-components/components/calcite-button";
3
+ export * from "./customElement.js";
@@ -5,7 +5,7 @@ import { createRef as u, ref as d } from "lit/directives/ref.js";
5
5
  import { u as g } from "../../chunks/useT9n.js";
6
6
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
7
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
8
- v5.0.0-next.1 */
8
+ v5.0.0-next.11 */
9
9
  const h = o`:host{min-height:300px}.results-heading{display:flex;flex-direction:column;padding: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-1)}.results-heading .results-heading-subtitle{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding: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)}`;
10
10
  class m extends a {
11
11
  constructor() {
@@ -7,7 +7,7 @@ import { ArcgisReferenceElement } from '../../utils/component-utils';
7
7
 
8
8
  declare const useUtilityNetworkValidateTopologyWidget: (component: LitElement & Pick<UtilityNetworkValidateTopology & {
9
9
  viewModel: __esri.Accessor;
10
- }, "icon" | "label" | "utilityNetwork" | "viewModel" | "extentToValidate"> & {
10
+ }, "label" | "viewModel" | "icon" | "utilityNetwork" | "extentToValidate"> & {
11
11
  state?: unknown;
12
12
  viewModel?: (__esri.UtilityNetworkValidateTopologyViewModel & __esri.Accessor) | undefined;
13
13
  closed?: boolean;