@arcgis/map-components 5.2.0-next.120 → 5.2.0-next.122

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 (316) hide show
  1. package/dist/cdn/33C5FBRZ.js +2 -0
  2. package/dist/cdn/{JD46SR26.js → 34E7N7GU.js} +1 -1
  3. package/dist/cdn/{IR2RGKT4.js → 3E36QFXG.js} +2 -2
  4. package/dist/cdn/3FRV7BIJ.js +2 -0
  5. package/dist/cdn/{Z4FIADPO.js → 3TR7QOHP.js} +1 -1
  6. package/dist/cdn/464EB67Q.js +2 -0
  7. package/dist/cdn/{W5B2F2LI.js → 4DENNWA5.js} +1 -1
  8. package/dist/cdn/{POEFPML6.js → 55AZTWOF.js} +1 -1
  9. package/dist/cdn/{2DDAZ3QO.js → 56PUZWIU.js} +1 -1
  10. package/dist/cdn/{YZUEPMQZ.js → 5IFQI7ML.js} +1 -1
  11. package/dist/cdn/{JMWMN4DG.js → 5SLLYIWJ.js} +1 -1
  12. package/dist/cdn/{7QH5PIWM.js → 6EQW3YHG.js} +1 -1
  13. package/dist/cdn/{U35IJFNU.js → 6VR7MKOM.js} +1 -1
  14. package/dist/cdn/6XJFRQ75.js +2 -0
  15. package/dist/cdn/7WBDTHNZ.js +2 -0
  16. package/dist/cdn/{RRC7AD75.js → AXFCL6D2.js} +1 -1
  17. package/dist/cdn/{LBVSFCZG.js → B4QA6HTE.js} +1 -1
  18. package/dist/cdn/BAV6JF4F.js +2 -0
  19. package/dist/cdn/{HNMWTX7W.js → BEZWJEYM.js} +1 -1
  20. package/dist/cdn/{LCNYVSCF.js → BTQUD5J4.js} +1 -1
  21. package/dist/cdn/CCFGYVBQ.js +2 -0
  22. package/dist/cdn/{FAN45DMA.js → CNYKQYK2.js} +1 -1
  23. package/dist/cdn/DOR5MVML.js +2 -0
  24. package/dist/cdn/E4JAHCCG.js +2 -0
  25. package/dist/cdn/{JD562WMM.js → EDMWGUZ2.js} +1 -1
  26. package/dist/cdn/{JKZMOIRA.js → EEHSPW4M.js} +1 -1
  27. package/dist/cdn/{GN4BH6SY.js → EMJLCAFX.js} +1 -1
  28. package/dist/cdn/{FAFDJABP.js → ESAIFZ6N.js} +1 -1
  29. package/dist/cdn/{2L6YCWXJ.js → EUV2XFUO.js} +1 -1
  30. package/dist/cdn/{GPIHHNP7.js → F46CTQWP.js} +1 -1
  31. package/dist/cdn/F5LP5CU2.js +2 -0
  32. package/dist/cdn/FKCRBOFP.js +2 -0
  33. package/dist/cdn/G3KYGRHM.js +2 -0
  34. package/dist/cdn/{3VGRIUOZ.js → G4HKU5PR.js} +1 -1
  35. package/dist/cdn/{Y5Q3Q4GW.js → GIOUZTHM.js} +1 -1
  36. package/dist/cdn/{4DWURRQB.js → GLH5GJZC.js} +1 -1
  37. package/dist/cdn/{BFGF2JTH.js → GLOUXFQV.js} +1 -1
  38. package/dist/cdn/{3VBI4PPT.js → H3CCHIXN.js} +1 -1
  39. package/dist/cdn/{W5O3OCTG.js → H5FV4C72.js} +1 -1
  40. package/dist/cdn/{ACIG6774.js → HH5GEJCC.js} +1 -1
  41. package/dist/cdn/{P2X5UYZB.js → I2IBXGQM.js} +1 -1
  42. package/dist/cdn/{VFSWB7LJ.js → IWOKTFPQ.js} +1 -1
  43. package/dist/cdn/{XO3NPMHQ.js → J4BQSA3J.js} +1 -1
  44. package/dist/cdn/{Z3JADSL3.js → J4TWDZII.js} +1 -1
  45. package/dist/cdn/{23KFFLAG.js → JBGNMAZ7.js} +1 -1
  46. package/dist/cdn/{3OQZ3SMG.js → JSYLRK26.js} +1 -1
  47. package/dist/cdn/{5FBX5V2M.js → KHHVCV55.js} +1 -1
  48. package/dist/cdn/{ZSQCIUGN.js → KIHX5LRN.js} +1 -1
  49. package/dist/cdn/{LBJMKYT2.js → KM2GXXBO.js} +1 -1
  50. package/dist/cdn/{F5EC22X4.js → KRYDKCJG.js} +1 -1
  51. package/dist/cdn/{46ZZWK6X.js → KY3ND2AY.js} +1 -1
  52. package/dist/cdn/KYWVUIH5.js +2 -0
  53. package/dist/cdn/{UJVNCEXT.js → LAY2RKKS.js} +1 -1
  54. package/dist/cdn/{REDWVTQJ.js → LP2PF2VT.js} +1 -1
  55. package/dist/cdn/LV5KLLVW.js +2 -0
  56. package/dist/cdn/{4IB44LRA.js → LWW6FUI2.js} +1 -1
  57. package/dist/cdn/{B6JX5OWP.js → M3EXGLNJ.js} +1 -1
  58. package/dist/cdn/{TOBWMRET.js → M3EZM5X5.js} +1 -1
  59. package/dist/cdn/{LH33ZRF7.js → MFBQRTJ3.js} +1 -1
  60. package/dist/cdn/{5RBUI62E.js → MLJ5RYY3.js} +1 -1
  61. package/dist/cdn/{2JMMBI2U.js → MV2EKVMR.js} +1 -1
  62. package/dist/cdn/{WWGWIJMC.js → NZSCPBS7.js} +1 -1
  63. package/dist/cdn/{PQTX5YLB.js → OKW62U6T.js} +1 -1
  64. package/dist/cdn/{3EYHGXI5.js → PLTLRYBF.js} +1 -1
  65. package/dist/cdn/PR6OAZWA.js +2 -0
  66. package/dist/cdn/{UNP7N3DO.js → PUYZDQHZ.js} +1 -1
  67. package/dist/cdn/{KKDZFKGV.js → PYP3U5W5.js} +1 -1
  68. package/dist/cdn/{OMZESNEM.js → Q4AJYCNY.js} +1 -1
  69. package/dist/cdn/{HGYJFGKA.js → QGFWUN5S.js} +1 -1
  70. package/dist/cdn/{X7KSMNND.js → QIEX43LK.js} +1 -1
  71. package/dist/cdn/{HH4T6PVP.js → QMQV37ML.js} +1 -1
  72. package/dist/cdn/QXVHT3RD.js +5 -0
  73. package/dist/cdn/{MZZGKPLV.js → R7E5VLXC.js} +1 -1
  74. package/dist/cdn/{CWQN57H6.js → RJSFDOIW.js} +1 -1
  75. package/dist/cdn/{TNY5ERJS.js → RKAZH2LM.js} +1 -1
  76. package/dist/cdn/{5IQQ6P2J.js → RU7PGLLB.js} +1 -1
  77. package/dist/cdn/{4W6PAHFY.js → S62FQUEJ.js} +1 -1
  78. package/dist/cdn/S7T2NPCW.js +2 -0
  79. package/dist/cdn/{NK74ZCP7.js → SXQRPAPL.js} +1 -1
  80. package/dist/cdn/{2KN3VFRG.js → TH6TT77M.js} +1 -1
  81. package/dist/cdn/{MU54WQG6.js → TILA2OKK.js} +1 -1
  82. package/dist/cdn/TJDMX7ZL.js +2 -0
  83. package/dist/cdn/TMJX7DFH.js +2 -0
  84. package/dist/cdn/{6XZKWBWD.js → TVZZB4KV.js} +1 -1
  85. package/dist/cdn/TZHXSIXK.js +2 -0
  86. package/dist/cdn/{SEMVPT7E.js → UJUD6U2G.js} +1 -1
  87. package/dist/cdn/US6PRR7S.js +2 -0
  88. package/dist/cdn/{TL7OKFLN.js → V7BQUMJL.js} +1 -1
  89. package/dist/cdn/VSH4WLRS.js +2 -0
  90. package/dist/cdn/{Q6MJXAPZ.js → WNLOSRMS.js} +1 -1
  91. package/dist/cdn/X6EQMX6U.js +2 -0
  92. package/dist/cdn/{6SKPV2U5.js → XGZ36AOT.js} +1 -1
  93. package/dist/cdn/{D3F6S7NU.js → XQKZNHH7.js} +1 -1
  94. package/dist/cdn/{CONE7FEI.js → YG4HDEP3.js} +1 -1
  95. package/dist/cdn/{NEQHSO5U.js → YRZRKOE3.js} +1 -1
  96. package/dist/cdn/YZ55QJUM.js +2 -0
  97. package/dist/cdn/{EZVWEV6T.js → ZSVZL6PT.js} +1 -1
  98. package/dist/cdn/ZUAZUUTW.js +2 -0
  99. package/dist/cdn/assets/feature-form-next/t9n/messages.ar.json +1 -1
  100. package/dist/cdn/assets/feature-form-next/t9n/messages.bg.json +1 -1
  101. package/dist/cdn/assets/feature-form-next/t9n/messages.ca.json +1 -1
  102. package/dist/cdn/assets/feature-form-next/t9n/messages.cs.json +1 -1
  103. package/dist/cdn/assets/feature-form-next/t9n/messages.da.json +1 -1
  104. package/dist/cdn/assets/feature-form-next/t9n/messages.de.json +1 -1
  105. package/dist/cdn/assets/feature-form-next/t9n/messages.el.json +1 -1
  106. package/dist/cdn/assets/feature-form-next/t9n/messages.en.json +1 -1
  107. package/dist/cdn/assets/feature-form-next/t9n/messages.es.json +1 -1
  108. package/dist/cdn/assets/feature-form-next/t9n/messages.et.json +1 -1
  109. package/dist/cdn/assets/feature-form-next/t9n/messages.fi.json +1 -1
  110. package/dist/cdn/assets/feature-form-next/t9n/messages.fr.json +1 -1
  111. package/dist/cdn/assets/feature-form-next/t9n/messages.he.json +1 -1
  112. package/dist/cdn/assets/feature-form-next/t9n/messages.hr.json +1 -1
  113. package/dist/cdn/assets/feature-form-next/t9n/messages.hu.json +1 -1
  114. package/dist/cdn/assets/feature-form-next/t9n/messages.id.json +1 -1
  115. package/dist/cdn/assets/feature-form-next/t9n/messages.it.json +1 -1
  116. package/dist/cdn/assets/feature-form-next/t9n/messages.ja.json +1 -1
  117. package/dist/cdn/assets/feature-form-next/t9n/messages.ko.json +1 -1
  118. package/dist/cdn/assets/feature-form-next/t9n/messages.lt.json +1 -1
  119. package/dist/cdn/assets/feature-form-next/t9n/messages.lv.json +1 -1
  120. package/dist/cdn/assets/feature-form-next/t9n/messages.nl.json +1 -1
  121. package/dist/cdn/assets/feature-form-next/t9n/messages.no.json +1 -1
  122. package/dist/cdn/assets/feature-form-next/t9n/messages.pl.json +1 -1
  123. package/dist/cdn/assets/feature-form-next/t9n/messages.pt-BR.json +1 -1
  124. package/dist/cdn/assets/feature-form-next/t9n/messages.pt-PT.json +1 -1
  125. package/dist/cdn/assets/feature-form-next/t9n/messages.ro.json +1 -1
  126. package/dist/cdn/assets/feature-form-next/t9n/messages.ru.json +1 -1
  127. package/dist/cdn/assets/feature-form-next/t9n/messages.sk.json +1 -1
  128. package/dist/cdn/assets/feature-form-next/t9n/messages.sl.json +1 -1
  129. package/dist/cdn/assets/feature-form-next/t9n/messages.sr.json +1 -1
  130. package/dist/cdn/assets/feature-form-next/t9n/messages.sv.json +1 -1
  131. package/dist/cdn/assets/feature-form-next/t9n/messages.th.json +1 -1
  132. package/dist/cdn/assets/feature-form-next/t9n/messages.tr.json +1 -1
  133. package/dist/cdn/assets/feature-form-next/t9n/messages.uk.json +1 -1
  134. package/dist/cdn/assets/feature-form-next/t9n/messages.vi.json +1 -1
  135. package/dist/cdn/assets/feature-form-next/t9n/messages.zh-CN.json +1 -1
  136. package/dist/cdn/assets/feature-form-next/t9n/messages.zh-TW.json +1 -1
  137. package/dist/cdn/assets/selection-list/t9n/messages.en.json +1 -1
  138. package/dist/cdn/assets/selection-toolbar/t9n/messages.en.json +1 -1
  139. package/dist/cdn/assets/sketch/t9n/messages.ar.json +1 -1
  140. package/dist/cdn/assets/sketch/t9n/messages.bg.json +1 -1
  141. package/dist/cdn/assets/sketch/t9n/messages.bs.json +1 -1
  142. package/dist/cdn/assets/sketch/t9n/messages.ca.json +1 -1
  143. package/dist/cdn/assets/sketch/t9n/messages.cs.json +1 -1
  144. package/dist/cdn/assets/sketch/t9n/messages.da.json +1 -1
  145. package/dist/cdn/assets/sketch/t9n/messages.de.json +1 -1
  146. package/dist/cdn/assets/sketch/t9n/messages.el.json +1 -1
  147. package/dist/cdn/assets/sketch/t9n/messages.es.json +1 -1
  148. package/dist/cdn/assets/sketch/t9n/messages.et.json +1 -1
  149. package/dist/cdn/assets/sketch/t9n/messages.fi.json +1 -1
  150. package/dist/cdn/assets/sketch/t9n/messages.fr.json +1 -1
  151. package/dist/cdn/assets/sketch/t9n/messages.he.json +1 -1
  152. package/dist/cdn/assets/sketch/t9n/messages.hr.json +1 -1
  153. package/dist/cdn/assets/sketch/t9n/messages.hu.json +1 -1
  154. package/dist/cdn/assets/sketch/t9n/messages.id.json +1 -1
  155. package/dist/cdn/assets/sketch/t9n/messages.it.json +1 -1
  156. package/dist/cdn/assets/sketch/t9n/messages.ja.json +1 -1
  157. package/dist/cdn/assets/sketch/t9n/messages.ko.json +1 -1
  158. package/dist/cdn/assets/sketch/t9n/messages.lt.json +1 -1
  159. package/dist/cdn/assets/sketch/t9n/messages.lv.json +1 -1
  160. package/dist/cdn/assets/sketch/t9n/messages.nl.json +1 -1
  161. package/dist/cdn/assets/sketch/t9n/messages.no.json +1 -1
  162. package/dist/cdn/assets/sketch/t9n/messages.pl.json +1 -1
  163. package/dist/cdn/assets/sketch/t9n/messages.pt-BR.json +1 -1
  164. package/dist/cdn/assets/sketch/t9n/messages.pt-PT.json +1 -1
  165. package/dist/cdn/assets/sketch/t9n/messages.ro.json +1 -1
  166. package/dist/cdn/assets/sketch/t9n/messages.ru.json +1 -1
  167. package/dist/cdn/assets/sketch/t9n/messages.sk.json +1 -1
  168. package/dist/cdn/assets/sketch/t9n/messages.sl.json +1 -1
  169. package/dist/cdn/assets/sketch/t9n/messages.sr.json +1 -1
  170. package/dist/cdn/assets/sketch/t9n/messages.sv.json +1 -1
  171. package/dist/cdn/assets/sketch/t9n/messages.th.json +1 -1
  172. package/dist/cdn/assets/sketch/t9n/messages.tr.json +1 -1
  173. package/dist/cdn/assets/sketch/t9n/messages.uk.json +1 -1
  174. package/dist/cdn/assets/sketch/t9n/messages.vi.json +1 -1
  175. package/dist/cdn/assets/sketch/t9n/messages.zh-CN.json +1 -1
  176. package/dist/cdn/assets/sketch/t9n/messages.zh-HK.json +1 -1
  177. package/dist/cdn/assets/sketch/t9n/messages.zh-TW.json +1 -1
  178. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.en.json +1 -1
  179. package/dist/cdn/index.js +1 -1
  180. package/dist/cdn/main.css +1 -1
  181. package/dist/chunks/async-utils.js +3 -3
  182. package/dist/chunks/layer-utils.js +48 -44
  183. package/dist/chunks/slots.js +1 -1
  184. package/dist/components/arcgis-attachment-validation-view/customElement.d.ts +81 -0
  185. package/dist/components/arcgis-attachment-validation-view/customElement.js +109 -0
  186. package/dist/components/arcgis-attachment-validation-view/index.d.ts +1 -0
  187. package/dist/components/arcgis-attachment-validation-view/index.js +2 -0
  188. package/dist/components/arcgis-basemap-gallery/customElement.d.ts +10 -9
  189. package/dist/components/arcgis-basemap-gallery/customElement.js +39 -28
  190. package/dist/components/arcgis-basemap-gallery-item/customElement.js +30 -30
  191. package/dist/components/arcgis-editor/customElement.d.ts +10 -2
  192. package/dist/components/arcgis-editor/customElement.js +2 -2
  193. package/dist/components/arcgis-expand/customElement.d.ts +9 -0
  194. package/dist/components/arcgis-expand/customElement.js +47 -41
  195. package/dist/components/arcgis-exploratory-analysis/customElement.d.ts +23 -0
  196. package/dist/components/arcgis-exploratory-analysis/customElement.js +21 -21
  197. package/dist/components/arcgis-feature-attachments/customElement.js +17 -17
  198. package/dist/components/arcgis-feature-form-field/customElement.d.ts +48 -0
  199. package/dist/components/arcgis-feature-form-utility-network-association-list/customElement.js +1 -1
  200. package/dist/components/arcgis-feature-templates/customElement.js +1 -1
  201. package/dist/components/arcgis-fullscreen/customElement.js +9 -10
  202. package/dist/components/arcgis-legend/customElement.d.ts +5 -6
  203. package/dist/components/arcgis-legend/customElement.js +5 -5
  204. package/dist/components/arcgis-legend-card-element/customElement.js +26 -26
  205. package/dist/components/arcgis-link-chart/customElement.d.ts +9 -0
  206. package/dist/components/arcgis-link-chart/customElement.js +14 -11
  207. package/dist/components/arcgis-map/customElement.d.ts +9 -0
  208. package/dist/components/arcgis-map/customElement.js +9 -6
  209. package/dist/components/arcgis-paste/customElement.js +1 -1
  210. package/dist/components/arcgis-presentation/customElement.js +62 -62
  211. package/dist/components/arcgis-presentation-slide-list/customElement.js +1 -1
  212. package/dist/components/arcgis-scale-bar/customElement.js +8 -8
  213. package/dist/components/arcgis-scene/customElement.d.ts +9 -0
  214. package/dist/components/arcgis-scene/customElement.js +5 -2
  215. package/dist/components/arcgis-selection-list/customElement.d.ts +33 -12
  216. package/dist/components/arcgis-selection-list/customElement.js +79 -63
  217. package/dist/components/arcgis-selection-toolbar/customElement.d.ts +42 -2
  218. package/dist/components/arcgis-selection-toolbar/customElement.js +60 -37
  219. package/dist/components/arcgis-sketch/SketchComponentViewModel.d.ts +84 -0
  220. package/dist/components/arcgis-sketch/configuration.d.ts +33 -0
  221. package/dist/components/arcgis-sketch/customElement.d.ts +3 -2
  222. package/dist/components/arcgis-sketch/customElement.js +25 -21
  223. package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.d.ts +18 -3
  224. package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.js +63 -53
  225. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +11 -3
  226. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +107 -53
  227. package/dist/components/arcgis-utility-network-trace-analysis/index.js +1 -0
  228. package/dist/components/arcgis-utility-network-trace-analysis/types.d.ts +5 -1
  229. package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.d.ts +19 -11
  230. package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.js +124 -110
  231. package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.d.ts +29 -0
  232. package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.js +31 -17
  233. package/dist/components/arcgis-utility-network-trace-locations/customElement.js +1 -1
  234. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +63 -14
  235. package/dist/components/arcgis-utility-network-trace-results/customElement.js +245 -55
  236. package/dist/components/arcgis-utility-network-trace-results/index.js +1 -2
  237. package/dist/components/arcgis-utility-network-trace-results-pane/customElement.js +7 -7
  238. package/dist/components/arcgis-utility-network-validate-network-topology/customElement.js +1 -1
  239. package/dist/docs/api.json +1 -1
  240. package/dist/docs/docs.json +1 -1
  241. package/dist/docs/vscode.html-custom-data.json +1 -1
  242. package/dist/docs/web-types.json +1 -1
  243. package/dist/index.d.ts +10 -0
  244. package/dist/loader.js +12 -11
  245. package/dist/types/lumina.d.ts +20 -10
  246. package/dist/types/preact.d.ts +21 -10
  247. package/dist/types/react.d.ts +22 -10
  248. package/dist/types/stencil.d.ts +20 -10
  249. package/package.json +8 -8
  250. package/dist/cdn/2OGEVHBC.js +0 -2
  251. package/dist/cdn/4FADGEJD.js +0 -2
  252. package/dist/cdn/5DV4N5DK.js +0 -2
  253. package/dist/cdn/5PNAHYUT.js +0 -2
  254. package/dist/cdn/7AKMHKTT.js +0 -2
  255. package/dist/cdn/A2FK4TED.js +0 -2
  256. package/dist/cdn/BOEHQXPR.js +0 -2
  257. package/dist/cdn/C2HB2U6P.js +0 -2
  258. package/dist/cdn/CRWARUC7.js +0 -2
  259. package/dist/cdn/CST7D7GR.js +0 -2
  260. package/dist/cdn/DDSMWDPS.js +0 -2
  261. package/dist/cdn/DOHO6T7Z.js +0 -2
  262. package/dist/cdn/GJZCVU6G.js +0 -5
  263. package/dist/cdn/IDE4IFH7.js +0 -2
  264. package/dist/cdn/IJTCIWOA.js +0 -2
  265. package/dist/cdn/IXVJQIMH.js +0 -2
  266. package/dist/cdn/KGBACXRG.js +0 -2
  267. package/dist/cdn/KWJAKUM4.js +0 -2
  268. package/dist/cdn/MRC7R44N.js +0 -2
  269. package/dist/cdn/MT6BTCFR.js +0 -2
  270. package/dist/cdn/QD7ELNLS.js +0 -2
  271. package/dist/cdn/TBSKBHHL.js +0 -2
  272. package/dist/cdn/WU7R423Z.js +0 -2
  273. package/dist/cdn/ZB6W452H.js +0 -2
  274. /package/dist/cdn/{ZU6D3YMF.js → 27MP6TEF.js} +0 -0
  275. /package/dist/cdn/{3XRSSDOC.js → 3JCF73F4.js} +0 -0
  276. /package/dist/cdn/{RLTZHJ26.js → 3XEPXV4Q.js} +0 -0
  277. /package/dist/cdn/{IMINWWQN.js → 43IOCYG5.js} +0 -0
  278. /package/dist/cdn/{HMZDI4HQ.js → 45JO7F4Y.js} +0 -0
  279. /package/dist/cdn/{232VF5GS.js → 4W35GLNO.js} +0 -0
  280. /package/dist/cdn/{7HQJTIYO.js → 5CER2N5T.js} +0 -0
  281. /package/dist/cdn/{33AEAI5T.js → 5M56ZA46.js} +0 -0
  282. /package/dist/cdn/{W6X34YBZ.js → 6NWR2Z4F.js} +0 -0
  283. /package/dist/cdn/{KMODOE6H.js → 7FVXPOAG.js} +0 -0
  284. /package/dist/cdn/{2PRRRGTC.js → AYJQLWX4.js} +0 -0
  285. /package/dist/cdn/{HJP2DQC3.js → AZ73DBU3.js} +0 -0
  286. /package/dist/cdn/{CQW2542N.js → B4CANXID.js} +0 -0
  287. /package/dist/cdn/{HLHFT3VN.js → BEFZSVBT.js} +0 -0
  288. /package/dist/cdn/{55Q2U4HS.js → BIWQEPK4.js} +0 -0
  289. /package/dist/cdn/{N5NLF7RI.js → BLYJE76S.js} +0 -0
  290. /package/dist/cdn/{2Q7J34UP.js → CESFJ6AD.js} +0 -0
  291. /package/dist/cdn/{5ZZ7JN5X.js → COKGOKO2.js} +0 -0
  292. /package/dist/cdn/{7Y65HW7Z.js → D3LYSFXK.js} +0 -0
  293. /package/dist/cdn/{FZATLDJD.js → EAM45WZP.js} +0 -0
  294. /package/dist/cdn/{6VBFCBUV.js → EDTGV4YF.js} +0 -0
  295. /package/dist/cdn/{62XRQDSI.js → FMBY3L4S.js} +0 -0
  296. /package/dist/cdn/{TKC3X6S6.js → GQ6SYNZS.js} +0 -0
  297. /package/dist/cdn/{YUZAZ3CJ.js → H4FH2RBM.js} +0 -0
  298. /package/dist/cdn/{P3MLJ7YL.js → I5ZESLWO.js} +0 -0
  299. /package/dist/cdn/{MM6LPGBW.js → KO7RD6SS.js} +0 -0
  300. /package/dist/cdn/{2LEEKX4J.js → LQ76PRWK.js} +0 -0
  301. /package/dist/cdn/{CTHAODQE.js → MUWOF7W4.js} +0 -0
  302. /package/dist/cdn/{G5DB24SO.js → OCLOCCB6.js} +0 -0
  303. /package/dist/cdn/{2UG26OVP.js → OJXNUBIA.js} +0 -0
  304. /package/dist/cdn/{ANRJPTRX.js → OUXE3CSQ.js} +0 -0
  305. /package/dist/cdn/{AKKV6RKF.js → PXAY7IM4.js} +0 -0
  306. /package/dist/cdn/{4PMOT2RS.js → QMYL4UM7.js} +0 -0
  307. /package/dist/cdn/{UCFBAQVW.js → QPFX5XH3.js} +0 -0
  308. /package/dist/cdn/{EGN54PEX.js → RFSBZHJD.js} +0 -0
  309. /package/dist/cdn/{4TZLBS5N.js → RYYBMDGS.js} +0 -0
  310. /package/dist/cdn/{CDGKQKVU.js → T2DT5I33.js} +0 -0
  311. /package/dist/cdn/{EJ5KLAEE.js → UINNR6FV.js} +0 -0
  312. /package/dist/cdn/{KWL3F4UP.js → UPZVIKOH.js} +0 -0
  313. /package/dist/cdn/{KXCLNNE5.js → VCRVQMYT.js} +0 -0
  314. /package/dist/cdn/{COSLSZXO.js → VWN2LORT.js} +0 -0
  315. /package/dist/cdn/{3NKJ4HFO.js → XAMLHDWZ.js} +0 -0
  316. /package/dist/cdn/{N43ZQ4C7.js → ZWN6DXNO.js} +0 -0
@@ -1,175 +1,189 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as F } from "../../chunks/runtime.js";
3
- import { ref as w } from "lit/directives/ref.js";
4
- import { getOrCreateMapValue as f } from "@arcgis/core/applications/Components/featureUtils.js";
5
- import { LitElement as R, createEvent as y } from "@arcgis/lumina";
6
- import { usePropertyChange as b, bypassReadOnly as g } from "@arcgis/lumina/controllers";
7
- import { log as n, composeMissingPropertyMessage as c } from "@arcgis/toolkit/log";
8
- import { css as E, html as d } from "lit";
9
- import { u as L } from "../../chunks/useT9n.js";
10
- import { l as I } from "../../chunks/async-utils.js";
11
- import { q as S, c as p, d as v } from "../../chunks/layer-utils.js";
12
- const $ = E`arcgis-features-next{height:100%}.elements-list-item{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);margin:0 var(--calcite-spacing-sm)}.features-hidden{margin:var(--calcite-spacing-md);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size)}`;
13
- class A extends R {
2
+ import { c as R } from "../../chunks/runtime.js";
3
+ import { ref as b } from "lit/directives/ref.js";
4
+ import { getOrCreateMapValue as E } from "@arcgis/core/applications/Components/featureUtils.js";
5
+ import { LitElement as L, createEvent as m } from "@arcgis/lumina";
6
+ import { usePropertyChange as T, bypassReadOnly as h } from "@arcgis/lumina/controllers";
7
+ import { log as d, composeMissingPropertyMessage as g } from "@arcgis/toolkit/log";
8
+ import { css as v, html as y } from "lit";
9
+ import { u as A } from "../../chunks/useT9n.js";
10
+ import { i as p, l as w, t as u, c as I } from "../../chunks/async-utils.js";
11
+ import { c as $, q as S, d as F, e as P } from "../../chunks/layer-utils.js";
12
+ const D = v`arcgis-features-next{height:100%}.elements-list-item{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm)}.features-hidden{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size);overflow-wrap:anywhere}`;
13
+ class k extends L {
14
14
  constructor() {
15
- super(...arguments), this._messages = L({ blocking: !0 }), this.#l = !0, this.#e = [], this.#t = [], this.#s = /* @__PURE__ */ new Map(), this.#n = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#r = /* @__PURE__ */ new Map(), this.#a = [], this._isFeaturesSelected = !1, this.autoDestroyDisabled = !1, this.disableHighlightFeatureResults = !1, this.features = [], this.hideActionBar = !1, this.hideFeatureResults = !1, this.hidePlaceholder = !1, this.includeDefaultActionsDisabled = !1, this.layers = [], this.state = "loading", this.arcgisPropertyChange = b()("isFeaturesListShown", "selectedResultFeature", "state"), this.arcgisTriggerAction = y(), this.arcgisResultReady = y();
15
+ super(...arguments), this._messages = A({ blocking: !0 }), this.#n = !0, this.#s = [], this.#i = [], this.#r = /* @__PURE__ */ new Map(), this.#a = /* @__PURE__ */ new Map(), this.#l = /* @__PURE__ */ new Map(), this.#o = /* @__PURE__ */ new Map(), this.#e = [], this._isFeaturesSelected = !1, this.autoDestroyDisabled = !1, this.disableHighlight = !1, this.emitsArcgisResultReady = !0, this.features = [], this.hideActionBar = !1, this.hideFeatureResults = !1, this.hidePlaceholder = !1, this.includeDefaultActionsDisabled = !1, this.layers = [], this.state = "ready", this.arcgisPropertyChange = T()("isFeaturesListShown", "selectedResultFeature", "state"), this.arcgisTriggerAction = m(), this.arcgisResultReady = m();
16
16
  }
17
17
  static {
18
- this.properties = { _featuresComponentElement: 16, _isFeaturesSelected: 16, actions: 0, autoDestroyDisabled: 5, disableHighlightFeatureResults: 5, features: 32, heading: 1, hideActionBar: 5, hideFeatureResults: 5, hidePlaceholder: 5, includeDefaultActionsDisabled: 5, isFeaturesListShown: 32, layers: 0, messageOverrides: 0, numResults: 32, referenceElement: 1, selectedResultFeature: 32, state: 1, traceResult: 0, utilityNetwork: 0, view: 0 };
18
+ this.properties = { _featuresComponentElement: 16, _isFeaturesSelected: 16, actions: 0, autoDestroyDisabled: 5, disableHighlight: 5, emitsArcgisResultReady: 32, features: 32, heading: 1, hideActionBar: 5, hideFeatureResults: 5, hidePlaceholder: 5, includeDefaultActionsDisabled: 5, isFeaturesListShown: 32, layers: 0, messageOverrides: 0, numResults: 32, referenceElement: 1, selectedResultFeature: 32, state: 32, traceResult: 0, utilityNetwork: 0, view: 0 };
19
19
  }
20
20
  static {
21
- this.styles = $;
21
+ this.styles = D;
22
22
  }
23
- #l;
24
- #e;
25
- get #o() {
23
+ #n;
24
+ #s;
25
+ get #h() {
26
26
  if (!this.traceResult)
27
27
  return !1;
28
- const { elements: e, globalFunctionResults: t, aggregatedGeometry: r } = this.traceResult;
29
- return e.length > 0 && !t.length && !r;
28
+ const { elements: e, globalFunctionResults: t, aggregatedGeometry: s } = this.traceResult;
29
+ return e.length > 0 && !t.length && !s;
30
30
  }
31
- #t;
32
- #s;
33
- #n;
34
31
  #i;
35
32
  #r;
36
33
  #a;
34
+ #t;
35
+ #l;
36
+ #o;
37
+ #e;
37
38
  get isFeaturesListShown() {
38
- return (this._isFeaturesSelected || this.#o) && !this.hideFeatureResults && !this._featuresComponentElement?.manager?.destroyed;
39
+ return (this._isFeaturesSelected || this.#h) && !this.hideFeatureResults;
39
40
  }
40
41
  get numResults() {
41
- return this.features.length + this.#e.length;
42
+ return this.features.length + this.#s.length;
42
43
  }
43
44
  get selectedResultFeature() {
44
45
  return this._featuresComponentElement?.selectedDrillInFeature ?? this._featuresComponentElement?.selectedFeature ?? void 0;
45
46
  }
46
47
  clearResult() {
47
- this._featuresComponentElement?.destroy(), this.#u(), g(() => this.features = []), this.#e = [], this.#s.clear(), this.#n.clear(), this.#i.clear(), this.#r.clear();
48
+ this._isFeaturesSelected = !1, this.#t?.abort(), this.#c(), h(() => this.features = []), this.#e = [], this.#s = [], this.#r.clear(), this.#a.clear(), this.#l.clear(), this.#o.clear(), h(() => this.state = "ready");
48
49
  }
49
50
  async destroy() {
50
- this.clearResult(), await this.manager.destroy();
51
+ this.clearResult(), this._featuresComponentElement?.destroy(), await this.manager.destroy();
51
52
  }
52
53
  load() {
53
- const e = this.traceResult?.elements, t = () => {
54
- this.arcgisResultReady.emit(), this.state = "ready";
55
- };
56
- if (!e?.length) {
57
- t();
58
- return;
59
- }
60
- this.#p(e), this.#f().then(() => this.#g()).then(() => {
61
- this.disableHighlightFeatureResults || this.#m();
62
- }).finally(t);
63
- }
64
- loaded() {
65
- this.traceResult ? this.traceResult.elements || n("error", this, c("traceResult.elements")) : n("error", this, c("traceResult")), this.utilityNetwork || n("error", this, c("utilityNetwork"));
54
+ this.traceResult && this.#u();
66
55
  }
67
56
  willUpdate(e) {
68
- e.has("_isFeaturesSelected") && (this.#o || (e.get("_isFeaturesSelected") ?? !1)) !== this.isFeaturesListShown && this.arcgisPropertyChange.emit({ name: "isFeaturesListShown" });
57
+ e.has("traceResult") && this.#u(), e.has("_isFeaturesSelected") && (this.#h || (e.get("_isFeaturesSelected") ?? !1)) !== this.isFeaturesListShown && this.arcgisPropertyChange.emit({ name: "isFeaturesListShown" });
69
58
  }
70
- #u() {
71
- this.#t.forEach((e) => e.remove()), this.#t = [];
59
+ loaded() {
60
+ this.traceResult && (this.traceResult.elements || d("error", this, g("traceResult.elements")), this.utilityNetwork || d("error", this, g("utilityNetwork")));
72
61
  }
73
- #h(e) {
62
+ #c() {
63
+ this.#i.forEach((e) => e.remove()), this.#i = [];
64
+ }
65
+ #d(e) {
74
66
  e && (this._featuresComponentElement = e);
75
67
  }
76
- #c(e) {
68
+ #f(e) {
77
69
  return Array.from(new Map(e.map((t) => [t.globalId, t])).values());
78
70
  }
79
- #d(e) {
80
- if (e == null)
81
- return;
82
- const t = this.#n, r = this.#a, a = t.get(e);
83
- if (a)
84
- return a;
85
- if (!r)
71
+ #y(e) {
72
+ if (e == null || !this.#e.length)
86
73
  return;
87
- const s = r.find((i) => "layerId" in i && i.layerId === e);
88
- return s && t.set(e, s), s;
74
+ const t = this.#a.get(e);
75
+ if (t)
76
+ return t;
77
+ const s = this.#e.find((r) => "layerId" in r && r.layerId === e);
78
+ return s && this.#a.set(e, s), s;
89
79
  }
90
80
  #m() {
91
- const { traceResult: e, utilityNetwork: t, view: r } = this;
92
- if (!t || !e?.elements?.length || !r)
81
+ const { traceResult: e, utilityNetwork: t, view: s } = this;
82
+ if (!t || !e?.elements?.length || !s)
93
83
  return;
94
- const a = (o) => (v(o.layer) || p(o.layer)) && t.isUtilityLayer(o.layer), s = t.getObjectIdsFromElements(e.elements), i = r.allLayerViews.filter(a);
95
- s.forEach(({ layerUrl: o, objectIds: l }) => {
96
- const u = Number(o.split("/").pop()), m = i.find(({ layer: h }) => h.layerId === u);
97
- if (m) {
98
- const h = m.highlight(l);
99
- this.#t.push(h);
84
+ const r = (i) => (P(i.layer) || F(i.layer)) && t.isUtilityLayer(i.layer), o = t.getObjectIdsFromElements(e.elements), n = s.allLayerViews.filter(r);
85
+ o.forEach(({ layerUrl: i, objectIds: l }) => {
86
+ const a = Number(i.split("/").pop()), c = n.find(({ layer: f }) => f.layerId === a);
87
+ if (c) {
88
+ const f = c.highlight(l);
89
+ this.#i.push(f);
100
90
  }
101
91
  });
102
92
  }
103
- async #f() {
104
- const { layers: e, utilityNetwork: t } = this;
105
- if (!t)
93
+ async #g(e) {
94
+ const { layers: t, utilityNetwork: s, view: r } = this;
95
+ if (!r || !s)
106
96
  return;
107
97
  try {
108
- t.loaded || (this.state = "loading", await t.load());
98
+ s.loaded || await s.load({ signal: e });
99
+ } catch (i) {
100
+ if (p(i))
101
+ throw i;
102
+ w(i, this, "Error while loading the selected utility network");
103
+ }
104
+ u(e), this.#e = t.length ? t.filter((i) => s.isUtilityLayer(i)) : $(r, s);
105
+ const n = this.#e.filter((i) => !i.loaded).map((i) => i.load({ signal: e }));
106
+ if (n.length > 0) {
107
+ const i = await Promise.allSettled(n);
108
+ u(e), i.forEach((l) => {
109
+ l.status === "rejected" && d("error", this, `Failed to load layer. Reason: ${l.reason}`);
110
+ });
111
+ }
112
+ }
113
+ async #u() {
114
+ this.clearResult();
115
+ const e = () => {
116
+ h(() => this.state = "ready"), this.arcgisResultReady.emit();
117
+ }, t = I(async (s) => {
118
+ const r = this.traceResult?.elements;
119
+ if (!r?.length) {
120
+ e();
121
+ return;
122
+ }
123
+ h(() => this.state = "loading"), this.#F(r), await this.#g(s), await this.#w(s), u(s), this.disableHighlight || this.#m(), e();
124
+ });
125
+ this.#t = t;
126
+ try {
127
+ await t.promise;
109
128
  } catch (s) {
110
- I(s, this, "Error while loading the selected utility network");
129
+ p(s) || (w(s, this, "Error while loading trace result"), this.#t === t && e());
130
+ } finally {
131
+ this.#t === t && (this.#t = void 0, h(() => this.state = "ready"));
111
132
  }
112
- this.#a = e.filter((s) => t.isUtilityLayer(s));
113
- const a = this.#a.filter((s) => !s.loaded).map((s) => s.load());
114
- a.length > 0 && (this.state = "loading", (await Promise.allSettled(a)).forEach((i) => {
115
- i.status === "rejected" && n("error", this, `Failed to load layer. Reason: ${i.reason}`);
116
- }));
117
- }
118
- async #y([e, t]) {
119
- const r = this.utilityNetwork?.getLayerIdBySourceId(e), a = this.#d(r), s = this.#c(t);
120
- if (r == null || !a) {
121
- this.#e.push(...s);
133
+ }
134
+ async #p([e, t], s) {
135
+ u(s);
136
+ const r = this.utilityNetwork?.getLayerIdBySourceId(e), o = this.#y(r), n = this.#f(t);
137
+ if (r == null || !o) {
138
+ this.#s.push(...n);
122
139
  return;
123
140
  }
124
- const i = a.createQuery();
125
- i.gdbVersion = this.utilityNetwork?.gdbVersion, i.objectIds = s.map((l) => l.objectId), i.outFields = ["*"];
126
- const { features: o } = await S(a, i);
127
- o.forEach((l) => {
128
- const u = l.layer;
129
- l.getEffectivePopupTemplate(this.#l) || (l.popupTemplate = u.createPopupTemplate());
130
- }), p(a) ? o.forEach((l) => {
131
- f(this.#i, l.layer.subtypeCode, () => []).push(l);
132
- }) : this.#s.set(r, o);
133
- }
134
- async #g() {
135
- const e = Array.from(this.#r.entries());
136
- if (!e.length)
141
+ const i = o.createQuery();
142
+ i.gdbVersion = this.utilityNetwork?.gdbVersion, i.objectIds = n.map((a) => a.objectId), i.outFields = ["*"];
143
+ const { features: l } = await S(o, i, { signal: s });
144
+ u(s), l.forEach((a) => {
145
+ const c = a.layer;
146
+ a.getEffectivePopupTemplate(this.#n) || (a.popupTemplate = c.createPopupTemplate());
147
+ }), F(o) ? l.forEach((a) => {
148
+ E(this.#l, a.layer.subtypeCode, () => []).push(a);
149
+ }) : this.#r.set(r, l);
150
+ }
151
+ async #w(e) {
152
+ const t = Array.from(this.#o.entries());
153
+ if (!t.length)
137
154
  return;
138
- this.state = "loading";
139
- const t = e.map((i) => this.#y(i));
140
- (await Promise.allSettled(t)).forEach((i, o) => {
155
+ const s = t.map((i) => this.#p(i, e)), r = await Promise.allSettled(s);
156
+ u(e), r.forEach((i, l) => {
141
157
  if (i.status === "rejected") {
142
- const [l] = e[o];
143
- n("error", this, `Failed to query features for source ${l}. Reason: ${i.reason}`);
158
+ const [a] = t[l];
159
+ d("error", this, `Failed to query features for source ${a}. Reason: ${i.reason}`);
144
160
  }
145
161
  });
146
- const a = Array.from(this.#s.values()), s = Array.from(this.#i.values());
147
- g(() => this.features = a.concat(s).flat());
148
- }
149
- #p(e) {
150
- e.forEach((t) => {
151
- f(this.#r, t.networkSourceId, () => []).push(t);
152
- });
162
+ const o = Array.from(this.#r.values()), n = Array.from(this.#l.values());
163
+ h(() => this.features = o.concat(n).flat());
153
164
  }
154
165
  #F(e) {
166
+ this.#o = Map.groupBy(e, ({ networkSourceId: t }) => t);
167
+ }
168
+ #R(e) {
155
169
  const { detail: t } = e;
156
170
  (t.name === "selectedDrillInFeature" || t.name === "selectedFeature") && (e.stopPropagation(), this.arcgisPropertyChange.emit({ name: "selectedResultFeature" }));
157
171
  }
158
- #w(e) {
172
+ #b(e) {
159
173
  e.stopPropagation(), this.arcgisTriggerAction.emit(e.detail);
160
174
  }
161
- #R() {
162
- return d`<div class="features-hidden">${this._messages.resultFeaturesAreHidden}</div>`;
175
+ #E() {
176
+ return y`<div class="features-hidden">${this._messages.resultFeaturesAreHidden}</div>`;
163
177
  }
164
- #b() {
178
+ #L() {
165
179
  const { heading: e, _messages: t } = this;
166
- return d`<calcite-list .label=${t.headings.features}><calcite-list-item class="elements-list-item" .label=${e || t.headings.features} @calciteListItemSelect=${() => this._isFeaturesSelected = !0}><calcite-chip .label=${t.labels.numFeatures} scale=s slot=content-end>${this.numResults}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item></calcite-list>`;
180
+ return y`<calcite-list .label=${t.headings.features}><calcite-list-item class="elements-list-item" .label=${e || t.headings.features} @calciteListItemSelect=${() => this._isFeaturesSelected = !0}><calcite-chip .label=${t.labels.numFeatures} scale=s slot=content-end>${this.numResults}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item></calcite-list>`;
167
181
  }
168
182
  render() {
169
- return this.state === "loading" ? null : this.hideFeatureResults ? this.hidePlaceholder ? null : this.#R() : this.isFeaturesListShown ? d`<arcgis-features-next .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this.#l} .features=${this.features} .hideActionBar=${this.hideActionBar} .hideCloseButton=${this.#o} hide-select-feature .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} initial-display-mode=list .messageOverrides=${this.messageOverrides} open .referenceElement=${this.referenceElement} .view=${this.view} @arcgisClose=${() => this._isFeaturesSelected = !1} @arcgisPropertyChange=${this.#F} @arcgisTriggerAction=${this.#w} ${w(this.#h)}></arcgis-features-next>` : this.#b();
183
+ return !this.traceResult?.elements.length || this.manager.destroyed ? null : this.hideFeatureResults ? this.hidePlaceholder ? null : this.#E() : this.isFeaturesListShown ? y`<arcgis-features-next .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this.#n} .features=${this.features} .hideActionBar=${this.hideActionBar} .hideCloseButton=${this.#h} hide-select-feature .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} initial-display-mode=list .messageOverrides=${this.messageOverrides} open .referenceElement=${this.referenceElement} .view=${this.view} @arcgisClose=${() => this._isFeaturesSelected = !1} @arcgisPropertyChange=${this.#R} @arcgisTriggerAction=${this.#b} ${b(this.#d)}></arcgis-features-next>` : this.#L();
170
184
  }
171
185
  }
172
- F("arcgis-utility-network-trace-elements-result-item", A);
186
+ R("arcgis-utility-network-trace-elements-result-item", k);
173
187
  export {
174
- A as ArcgisUtilityNetworkTraceElementsResultItem
188
+ k as ArcgisUtilityNetworkTraceElementsResultItem
175
189
  };
@@ -1,6 +1,7 @@
1
1
  /// <reference path="../../index.d.ts" />
2
2
  import type TraceResult from "@arcgis/core/rest/networks/support/TraceResult.js";
3
3
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
4
+ import type { UtilityNetworkTraceResultItemState } from "../arcgis-utility-network-trace-analysis/types.js";
4
5
  import type { T9nMeta } from "@arcgis/lumina/controllers";
5
6
 
6
7
  /**
@@ -19,12 +20,40 @@ export abstract class ArcgisUtilityNetworkTraceFunctionsResultItem extends LitEl
19
20
  componentLabel: string;
20
21
  labels: { functionResults: string; };
21
22
  }>;
23
+ /**
24
+ * Whether the component emits event [@arcgisResultReady](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-functions-result-item/#event-arcgisResultReady).
25
+ * This property is always `true` for [arcgis-utility-network-trace-functions-result-item](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-functions-result-item/).
26
+ *
27
+ * @default false
28
+ */
29
+ get emitsArcgisResultReady(): true;
22
30
  /** The heading displayed above the result item. */
23
31
  accessor heading: string | undefined;
32
+ /**
33
+ * @default "ready"
34
+ * @internal
35
+ */
36
+ get state(): UtilityNetworkTraceResultItemState;
24
37
  /**
25
38
  * The trace result containing the function results to render.
26
39
  *
27
40
  * @required
28
41
  */
29
42
  accessor traceResult: TraceResult | undefined;
43
+ /**
44
+ * Clears the result item.
45
+ * This result item has no side effects to clear.
46
+ *
47
+ * @internal
48
+ */
49
+ clearResult(): void;
50
+ /** Permanently destroy the component. */
51
+ destroy(): Promise<void>;
52
+ readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "state"; }>;
53
+ /** Fires when the component is finished rendering its results. */
54
+ readonly arcgisResultReady: import("@arcgis/lumina").TargetedEvent<this, void>;
55
+ readonly "@eventTypes": {
56
+ arcgisPropertyChange: ArcgisUtilityNetworkTraceFunctionsResultItem["arcgisPropertyChange"]["detail"];
57
+ arcgisResultReady: ArcgisUtilityNetworkTraceFunctionsResultItem["arcgisResultReady"]["detail"];
58
+ };
30
59
  }
@@ -1,34 +1,48 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as m } from "../../chunks/runtime.js";
3
- import { css as g, html as e } from "lit";
4
- import { LitElement as b } from "@arcgis/lumina";
5
- import { log as l, composeMissingPropertyMessage as p, composeEmptyPropertyMessage as h } from "@arcgis/toolkit/log";
6
- import { u as f } from "../../chunks/useT9n.js";
7
- const d = g`calcite-table{--calcite-table-border-color: none}calcite-table-row{--calcite-table-row-border-color: var(--calcite-color-border-3)}.functions-heading{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) var(--calcite-spacing-xxs);font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}`;
8
- class w extends b {
2
+ import { c as u } from "../../chunks/runtime.js";
3
+ import { LitElement as m, createEvent as h } from "@arcgis/lumina";
4
+ import { usePropertyChange as g, bypassReadOnly as d } from "@arcgis/lumina/controllers";
5
+ import { log as b, composeEmptyPropertyMessage as R } from "@arcgis/toolkit/log";
6
+ import { css as f, html as s } from "lit";
7
+ import { u as p } from "../../chunks/useT9n.js";
8
+ const y = f`calcite-table{--calcite-table-border-color: none}calcite-table-row{--calcite-table-row-border-color: var(--calcite-color-border-3)}.functions-heading{margin:0 0 var(--calcite-spacing-xxs);font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}`;
9
+ class w extends m {
9
10
  constructor() {
10
- super(...arguments), this._messages = f({ blocking: !0 });
11
+ super(...arguments), this._messages = p({ blocking: !0 }), this.emitsArcgisResultReady = !0, this.state = "ready", this.arcgisPropertyChange = g()("state"), this.arcgisResultReady = h();
11
12
  }
12
13
  static {
13
- this.properties = { heading: 1, traceResult: 0 };
14
+ this.properties = { emitsArcgisResultReady: 32, heading: 1, state: 32, traceResult: 0 };
14
15
  }
15
16
  static {
16
- this.styles = d;
17
+ this.styles = y;
18
+ }
19
+ clearResult() {
20
+ }
21
+ async destroy() {
22
+ }
23
+ load() {
24
+ this.traceResult && this.#t();
25
+ }
26
+ willUpdate(e) {
27
+ e.has("traceResult") && this.#t();
17
28
  }
18
29
  loaded() {
19
- this.traceResult ? this.traceResult.globalFunctionResults.length || l("warn", this, h("traceResult")) : l("warn", this, p("traceResult"));
30
+ this.traceResult && !this.traceResult.globalFunctionResults.length && b("warn", this, R("traceResult.globalFunctionResults"));
31
+ }
32
+ #t() {
33
+ d(() => this.state = "ready"), this.arcgisResultReady.emit();
20
34
  }
21
35
  render() {
22
36
  if (!this.traceResult?.globalFunctionResults.length)
23
- return;
24
- const { heading: c, _messages: s } = this, { globalFunctionResults: i } = this.traceResult;
25
- return e`${c && e`<div class="functions-heading">${c}</div>` || ""}<calcite-table .caption=${s.labels.functionResults}>${i.filter((t) => t.networkAttributeName != null && t.result != null && t.functionType != null).map((t) => {
26
- const { functionName: a, networkAttributeName: r, functionType: o, result: n } = t, u = a || `${r} ${o}`;
27
- return e`<calcite-table-row><calcite-table-cell>${u}</calcite-table-cell><calcite-table-cell>${n}</calcite-table-cell></calcite-table-row>`;
37
+ return null;
38
+ const { heading: e, _messages: l } = this, { globalFunctionResults: a } = this.traceResult;
39
+ return s`${e && s`<div class="functions-heading">${e}</div>` || ""}<calcite-table .caption=${l.labels.functionResults}>${a.filter((t) => t.networkAttributeName != null && t.result != null && t.functionType != null).map((t) => {
40
+ const { functionName: i, networkAttributeName: c, functionType: r, result: o } = t, n = i || `${c} ${r}`;
41
+ return s`<calcite-table-row><calcite-table-cell>${n}</calcite-table-cell><calcite-table-cell>${o}</calcite-table-cell></calcite-table-row>`;
28
42
  })}</calcite-table>`;
29
43
  }
30
44
  }
31
- m("arcgis-utility-network-trace-functions-result-item", w);
45
+ u("arcgis-utility-network-trace-functions-result-item", w);
32
46
  export {
33
47
  w as ArcgisUtilityNetworkTraceFunctionsResultItem
34
48
  };
@@ -14,7 +14,7 @@ import B from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
14
14
  import { LitElement as N, createEvent as S } from "@arcgis/lumina";
15
15
  import { log as u, composeMissingPropertyMessage as b } from "@arcgis/toolkit/log";
16
16
  import { u as q } from "../../chunks/useT9n.js";
17
- import { a as D, c as j, d as G, i as H } from "../../chunks/layer-utils.js";
17
+ import { a as D, d as j, e as G, i as H } from "../../chunks/layer-utils.js";
18
18
  import { css as O, html as p } from "lit";
19
19
  import v from "@arcgis/core/views/interactive/snapping/FeatureSnappingLayerSource.js";
20
20
  import { substitute as U } from "@arcgis/core/intl.js";
@@ -10,12 +10,15 @@ import type { ActionEvent } from "@arcgis/core/widgets/Popup/types.js";
10
10
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
11
11
  import type { ArcgisFeaturesNext } from "../arcgis-features-next/customElement.js";
12
12
  import type { ArcgisReferenceElement } from "../types.js";
13
+ import type { UtilityNetworkTraceResultItemState } from "../arcgis-utility-network-trace-analysis/types.js";
14
+ import type { ArcgisUtilityNetworkTraceElementsResultItem } from "../arcgis-utility-network-trace-elements-result-item/customElement.js";
13
15
  import type { T9nMeta } from "@arcgis/lumina/controllers";
14
16
 
15
17
  /**
16
18
  * This is a sub-component used by the **ArcgisUtilityNetworkTraceAnalysis** component.
17
19
  * It displays a subset of trace result types.
18
20
  *
21
+ * @slot - Default slot for adding trace result items or custom content to the component.
19
22
  * @since 4.34
20
23
  * @internal
21
24
  */
@@ -33,6 +36,7 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
33
36
  functionResults: string;
34
37
  numFeatures: string;
35
38
  };
39
+ noMatchingResultItems: string;
36
40
  noResultsDescription: string;
37
41
  noResultsHeading: string;
38
42
  noSelectableFeatures: string;
@@ -58,6 +62,7 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
58
62
  functionResults: string;
59
63
  numFeatures: string;
60
64
  };
65
+ noMatchingResultItems: string;
61
66
  noResultsDescription: string;
62
67
  noResultsHeading: string;
63
68
  noSelectableFeatures: string;
@@ -82,6 +87,14 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
82
87
  * @see [Popup actions sample](https://developers.arcgis.com/javascript/latest/sample-code/popup-actions/)
83
88
  */
84
89
  accessor actions: ArcgisFeaturesNext["actions"] | undefined;
90
+ /**
91
+ * The color used to render graphics for aggregated geometries in trace results, specified as a
92
+ * [Color](https://developers.arcgis.com/javascript/latest/references/core/Color/) object.
93
+ *
94
+ * Aggregated geometry is only rendered if the trace configuration specifies aggregated geometry as a result type.
95
+ *
96
+ * Default color is #FFFF00.
97
+ */
85
98
  accessor aggregatedGeometryGraphicsColor: Color;
86
99
  /**
87
100
  * If true, the component will not be destroyed automatically when it is
@@ -109,13 +122,36 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
109
122
  * @default false
110
123
  */
111
124
  accessor disableHighlightFeatureResults: boolean;
125
+ /**
126
+ * When `true`, the component can be expanded and collapsed.
127
+ *
128
+ * @default false
129
+ */
130
+ accessor expandable: boolean;
131
+ /**
132
+ * When `true`, expands the component and its contents.
133
+ *
134
+ * @default false
135
+ */
136
+ accessor expanded: boolean;
137
+ /** Specifies the component's heading text. */
112
138
  accessor heading: string | undefined;
113
139
  /**
140
+ * Indicates whether to hide the action bar that holds the feature's
141
+ * [arcgis-features-next.actions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#actions) when selecting trace locations
142
+ * and viewing trace result features.
143
+ *
114
144
  * @default false
115
- * @internal
116
145
  */
117
146
  accessor hideActionBar: boolean;
118
- /** @default false */
147
+ /**
148
+ * Whether to hide feature results.
149
+ *
150
+ * A message will be displayed in its place indicating that features were returned by the trace, but are not visible in the component.
151
+ * This string can be overridden with the [messageOverrides](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#messageOverrides) property.
152
+ *
153
+ * @default false
154
+ */
119
155
  accessor hideFeatureResults: boolean;
120
156
  /**
121
157
  * Whether to hide the aggregated geometry [graphics](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/#geometryGraphics)
@@ -141,13 +177,14 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
141
177
  * @default false
142
178
  */
143
179
  accessor includeDefaultActionsDisabled: boolean;
180
+ /** The layers and tables used to query trace result features. */
144
181
  accessor layers: Layer[];
145
182
  /**
146
183
  * Replace localized message strings with your own strings.
147
184
  *
148
185
  * _**Note**: Individual message keys may change between releases._
149
186
  */
150
- accessor messageOverrides: {
187
+ accessor messageOverrides: NonNullable<ArcgisUtilityNetworkTraceElementsResultItem["messageOverrides"]> & {
151
188
  gettingResults?: string | undefined;
152
189
  headings?: {
153
190
  aggregatedGeometry?: string | undefined;
@@ -159,6 +196,7 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
159
196
  functionResults?: string | undefined;
160
197
  numFeatures?: string | undefined;
161
198
  } | undefined;
199
+ noMatchingResultItems?: string | undefined;
162
200
  noResultsDescription?: string | undefined;
163
201
  noResultsHeading?: string | undefined;
164
202
  noSelectableFeatures?: string | undefined;
@@ -174,11 +212,11 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
174
212
  traceFailedHeading?: string | undefined;
175
213
  };
176
214
  /**
177
- * The number of unique network element results,
178
- * including elements that did not match any layer in the map.
215
+ * The number of unique network element results, including elements that did not match any layer in the map.
179
216
  *
180
- * TODO: We can remove this after we allow the result items to be rendered declaratively
181
- * as children of the trace results component.
217
+ * If multiple slotted instances [arcgis-utility-network-trace-elements-result-item](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-elements-result-item/) exist,
218
+ * this property returns the [number of feature results](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-elements-result-item/#numResults)
219
+ * for the first instance.
182
220
  */
183
221
  get numFeatureResults(): number;
184
222
  /**
@@ -187,11 +225,23 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
187
225
  * @see [Associate components with a Map or Scene component](https://developers.arcgis.com/javascript/latest/programming-patterns/#associate-components-with-a-map-or-scene-component)
188
226
  */
189
227
  accessor referenceElement: ArcgisReferenceElement | string | undefined;
190
- /** @default "loading" */
191
- accessor state: State;
228
+ /**
229
+ * The current state of the trace results component.
230
+ *
231
+ * @default "ready"
232
+ */
233
+ get state(): UtilityNetworkTraceResultItemState;
234
+ /** The error returned when the trace could not be completed. */
192
235
  accessor traceError: EsriError<TraceErrorDetails> | undefined;
236
+ /** The trace result to display. */
193
237
  accessor traceResult: TraceResult | undefined;
238
+ /**
239
+ * The features corresponding to the
240
+ * [https://developers.arcgis.com/javascript/latest/references/core/rest/networks/support/TraceResult/#elements](https://developers.arcgis.com/javascript/latest/references/core/rest/networks/support/TraceResult/#elements)
241
+ * returned by the trace result.
242
+ */
194
243
  get traceResultFeatures(): Graphic[];
244
+ /** The utility network used to query trace result features. */
195
245
  accessor utilityNetwork: UtilityNetwork | undefined;
196
246
  /**
197
247
  * The view associated with the component.
@@ -203,19 +253,18 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
203
253
  destroy(): Promise<void>;
204
254
  /** Emitted when the value of a property is changed. Use this to listen to changes to properties. */
205
255
  readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "aggregatedGeometryGraphicsColor" | "hideGraphics" | "state" | "traceError"; }>;
206
- readonly arcgisTraceResultFeaturesReady: import("@arcgis/lumina").TargetedEvent<this, void>;
256
+ readonly arcgisResultsReady: import("@arcgis/lumina").TargetedEvent<this, void>;
257
+ readonly arcgisTraceResultClear: import("@arcgis/lumina").TargetedEvent<this, void>;
207
258
  /** Emitted when an action is triggered on the component. */
208
259
  readonly arcgisTriggerAction: import("@arcgis/lumina").TargetedEvent<this, ActionEvent>;
209
260
  readonly "@eventTypes": {
210
261
  arcgisPropertyChange: ArcgisUtilityNetworkTraceResults["arcgisPropertyChange"]["detail"];
211
- arcgisTraceResultFeaturesReady: ArcgisUtilityNetworkTraceResults["arcgisTraceResultFeaturesReady"]["detail"];
262
+ arcgisResultsReady: ArcgisUtilityNetworkTraceResults["arcgisResultsReady"]["detail"];
263
+ arcgisTraceResultClear: ArcgisUtilityNetworkTraceResults["arcgisTraceResultClear"]["detail"];
212
264
  arcgisTriggerAction: ArcgisUtilityNetworkTraceResults["arcgisTriggerAction"]["detail"];
213
265
  };
214
266
  }
215
267
 
216
- /** @internal */
217
- export type State = "loading" | "ready";
218
-
219
268
  /** @internal */
220
269
  export interface TraceErrorDetails {
221
270
  url?: string;