@arcgis/map-components 5.0.3 → 5.0.5

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 (280) hide show
  1. package/dist/cdn/{IQJFR3TR.js → 26VRRGUW.js} +1 -1
  2. package/dist/cdn/{YL6LFOI6.js → 2FVZ2L32.js} +1 -1
  3. package/dist/cdn/{UQ75DYBR.js → 2GGAEJNI.js} +1 -1
  4. package/dist/cdn/2QWCB7GX.js +2 -0
  5. package/dist/cdn/{N6EXL5PV.js → 2QWJ2ZHP.js} +1 -1
  6. package/dist/cdn/{ZYW575W2.js → 2RA54D2B.js} +1 -1
  7. package/dist/cdn/2YBKWLT6.js +2 -0
  8. package/dist/cdn/{BXBZ45Z6.js → 3DLW2M43.js} +1 -1
  9. package/dist/cdn/{HJOLEPJQ.js → 3HHVT72L.js} +1 -1
  10. package/dist/cdn/{5TDRJ6BO.js → 3NHT23VJ.js} +1 -1
  11. package/dist/cdn/{KPVOST74.js → 44VMR4JB.js} +1 -1
  12. package/dist/cdn/455CNC2X.js +2 -0
  13. package/dist/cdn/4MMWFGGQ.js +2 -0
  14. package/dist/cdn/{NM2EWCQF.js → 4Q2CQXZM.js} +1 -1
  15. package/dist/cdn/56VJEIND.js +2 -0
  16. package/dist/cdn/5BACVRLF.js +2 -0
  17. package/dist/cdn/5L7UUJ66.js +2 -0
  18. package/dist/cdn/{6DT4W3PN.js → 5MPJ5TRF.js} +1 -1
  19. package/dist/cdn/5NBBZ5WV.js +2 -0
  20. package/dist/cdn/5QH4JWF5.js +2 -0
  21. package/dist/cdn/{6UF3GD42.js → 5U7NIXQ6.js} +1 -1
  22. package/dist/cdn/62OC5IBG.js +2 -0
  23. package/dist/cdn/6E6ZUR66.js +2 -0
  24. package/dist/cdn/6K2ESAWF.js +2 -0
  25. package/dist/cdn/6V3ZKOES.js +2 -0
  26. package/dist/cdn/{DPTX2JAJ.js → 6ZX2WPNN.js} +1 -1
  27. package/dist/cdn/75JRU7XJ.js +2 -0
  28. package/dist/cdn/{ZBZNQJTB.js → 7AGRHMNT.js} +1 -1
  29. package/dist/cdn/{AINOSF34.js → 7DSZFPFQ.js} +1 -1
  30. package/dist/cdn/7WR4XB3L.js +2 -0
  31. package/dist/cdn/{LMO54LM5.js → 7XKRUO3L.js} +1 -1
  32. package/dist/cdn/{XWXDZCHT.js → A2A6CN44.js} +1 -1
  33. package/dist/cdn/ACKNTQRK.js +2 -0
  34. package/dist/cdn/{BLUSCZEI.js → AOEKBWNA.js} +1 -1
  35. package/dist/cdn/{L4TN2JVW.js → APAPCPXT.js} +1 -1
  36. package/dist/cdn/AR44QMUK.js +2 -0
  37. package/dist/cdn/{KUKA64TP.js → AZFKJZ3C.js} +1 -1
  38. package/dist/cdn/{Y5LMOCNV.js → BAKCV4BT.js} +1 -1
  39. package/dist/cdn/{5SQO5LG2.js → C6BRR6HO.js} +1 -1
  40. package/dist/cdn/{OLWVHUY3.js → C6ESN7QO.js} +1 -1
  41. package/dist/cdn/{PGVDMQFL.js → CC4PR3SI.js} +1 -1
  42. package/dist/cdn/CIE5JE3M.js +2 -0
  43. package/dist/cdn/CUOULJK4.js +2 -0
  44. package/dist/cdn/{74VZCYGW.js → CVO6GRJE.js} +1 -1
  45. package/dist/cdn/DGRJQ3VH.js +2 -0
  46. package/dist/cdn/{GCV66L4K.js → DLBLKQYS.js} +1 -1
  47. package/dist/cdn/{HGGPCEHX.js → DORZKGB4.js} +1 -1
  48. package/dist/cdn/{ZAUJLPVR.js → DXTTUW4R.js} +1 -1
  49. package/dist/cdn/{PDWTBEA4.js → E2PRW7I3.js} +1 -1
  50. package/dist/cdn/{ZW3EETDO.js → E3ZQD7XL.js} +1 -1
  51. package/dist/cdn/E7N2OSLX.js +2 -0
  52. package/dist/cdn/{Z6AWAFSU.js → ECCKHLGV.js} +1 -1
  53. package/dist/cdn/{QHHSQ4PK.js → EDIR5P2A.js} +1 -1
  54. package/dist/cdn/EHBJMP6X.js +2 -0
  55. package/dist/cdn/{NG7JSMH7.js → EHG6SCFZ.js} +1 -1
  56. package/dist/cdn/EIKPSSW2.js +2 -0
  57. package/dist/cdn/{KRWHZBRS.js → EOGSQKVI.js} +1 -1
  58. package/dist/cdn/{W5QO26OY.js → EONM4HYL.js} +1 -1
  59. package/dist/cdn/{R4OHHSET.js → EX4MJAID.js} +1 -1
  60. package/dist/cdn/{XZYJEEQN.js → FDIL4ELG.js} +1 -1
  61. package/dist/cdn/FRUEPZ4B.js +2 -0
  62. package/dist/cdn/{CDBZTWVN.js → G3DKNGC5.js} +1 -1
  63. package/dist/cdn/{S3ECVY5S.js → GL4AGX76.js} +1 -1
  64. package/dist/cdn/GNNPY6WD.js +2 -0
  65. package/dist/cdn/{DQVSAW2U.js → GONPBVCY.js} +1 -1
  66. package/dist/cdn/GZ72DRZ2.js +2 -0
  67. package/dist/cdn/{I3VFN634.js → H3WU3CWO.js} +1 -1
  68. package/dist/cdn/HDL5ODBI.js +2 -0
  69. package/dist/cdn/{HXSSXVQK.js → HDQ4SRNQ.js} +1 -1
  70. package/dist/cdn/{MCXOEQ57.js → HPVG2G33.js} +1 -1
  71. package/dist/cdn/{HIUGPCYF.js → HRQLL3UQ.js} +1 -1
  72. package/dist/cdn/{AWW45DN2.js → HTAV4X3L.js} +1 -1
  73. package/dist/cdn/HWGBPD5G.js +2 -0
  74. package/dist/cdn/HZXKATGS.js +2 -0
  75. package/dist/cdn/I5YYZ23M.js +2 -0
  76. package/dist/cdn/{OZI3G6BL.js → IBODWA4K.js} +1 -1
  77. package/dist/cdn/{YAJDGP47.js → IFFOJCJM.js} +1 -1
  78. package/dist/cdn/IJI3KL3X.js +2 -0
  79. package/dist/cdn/{K6ANC3XJ.js → IRGOEAMU.js} +1 -1
  80. package/dist/cdn/{SXE3A52W.js → IVVA3NWA.js} +1 -1
  81. package/dist/cdn/IZ7RGQYP.js +2 -0
  82. package/dist/cdn/J7IUPILV.js +2 -0
  83. package/dist/cdn/{3D4FQXME.js → JDO4ZDWR.js} +1 -1
  84. package/dist/cdn/{MARCV7CJ.js → JG526BSF.js} +1 -1
  85. package/dist/cdn/{GSOYY5SL.js → JLKRZGKU.js} +1 -1
  86. package/dist/cdn/JQFJA2R3.js +2 -0
  87. package/dist/cdn/JX64UKPQ.js +2 -0
  88. package/dist/cdn/{Z2F3JU24.js → KALOND7U.js} +1 -1
  89. package/dist/cdn/KMP45A7X.js +2 -0
  90. package/dist/cdn/KONASQUW.js +2 -0
  91. package/dist/cdn/KTDXN3YM.js +2 -0
  92. package/dist/cdn/{YP7GAJRJ.js → KTZZ6FEB.js} +1 -1
  93. package/dist/cdn/{EFAHD2H7.js → L3R6FYFA.js} +1 -1
  94. package/dist/cdn/L7I3A5GU.js +2 -0
  95. package/dist/cdn/LIH3KD2N.js +2 -0
  96. package/dist/cdn/{BIW4IWVY.js → LNCUA6VO.js} +1 -1
  97. package/dist/cdn/{6RSTA5F2.js → LQJ2NJ7Q.js} +1 -1
  98. package/dist/cdn/{LHLOMM4E.js → LWLYKJEM.js} +1 -1
  99. package/dist/cdn/M5FJVBHY.js +2 -0
  100. package/dist/cdn/{W4GQIU35.js → MAT7KTFT.js} +1 -1
  101. package/dist/cdn/{OGNESIA3.js → MCFGHI5T.js} +1 -1
  102. package/dist/cdn/{G5D3LOP2.js → MDNMH2GD.js} +1 -1
  103. package/dist/cdn/{H57ABA4Z.js → MMQXKWWI.js} +1 -1
  104. package/dist/cdn/{QFO7XK5M.js → MP5XTNII.js} +1 -1
  105. package/dist/cdn/MS2FXMWM.js +2 -0
  106. package/dist/cdn/MT3AIRKP.js +2 -0
  107. package/dist/cdn/{XULFHT6A.js → MWC7VXMT.js} +1 -1
  108. package/dist/cdn/{FZNIZIF6.js → MYY77Q2M.js} +1 -1
  109. package/dist/cdn/{BXS4RT2N.js → N2JCJYCR.js} +1 -1
  110. package/dist/cdn/{R7B5B7QH.js → N3VTGUSB.js} +1 -1
  111. package/dist/cdn/N6XL766F.js +2 -0
  112. package/dist/cdn/{2MK7EZDU.js → NHXJDS4A.js} +1 -1
  113. package/dist/cdn/{ZQF6QJFM.js → NIGGISCR.js} +1 -1
  114. package/dist/cdn/{22G7NCSZ.js → NZKU7MTU.js} +1 -1
  115. package/dist/cdn/{PNVTGMJV.js → OKKARBPJ.js} +1 -1
  116. package/dist/cdn/{T6V66FCM.js → OVAULEST.js} +1 -1
  117. package/dist/cdn/{BCBANHH3.js → OWEQ6PYO.js} +1 -1
  118. package/dist/cdn/P56Q3MNI.js +2 -0
  119. package/dist/cdn/P5Z3VSAL.js +2 -0
  120. package/dist/cdn/PHKNWWES.js +2 -0
  121. package/dist/cdn/PHNAP4HO.js +2 -0
  122. package/dist/cdn/PHNPROZ2.js +2 -0
  123. package/dist/cdn/{ZJH3LOXI.js → PHNSXBYN.js} +1 -1
  124. package/dist/cdn/PNM6EWGT.js +2 -0
  125. package/dist/cdn/{G4D5Q7Q4.js → Q63FZKZF.js} +1 -1
  126. package/dist/cdn/{3XETVG7K.js → QGFESPLP.js} +1 -1
  127. package/dist/cdn/QK6IDWCZ.js +2 -0
  128. package/dist/cdn/{VNKCJQ5W.js → QS2DT6TO.js} +1 -1
  129. package/dist/cdn/{JT77ECX6.js → QVGEZ3ZM.js} +1 -1
  130. package/dist/cdn/{Z4HWMM4S.js → QXCHMTUI.js} +1 -1
  131. package/dist/cdn/{AJN3G2KH.js → QYCOPDMB.js} +1 -1
  132. package/dist/cdn/R45Q5BKQ.js +2 -0
  133. package/dist/cdn/R7GTTNWF.js +2 -0
  134. package/dist/cdn/{PJAPMYAR.js → R7HXZAPP.js} +1 -1
  135. package/dist/cdn/ROC7HOOF.js +2 -0
  136. package/dist/cdn/RV5T6FOK.js +2 -0
  137. package/dist/cdn/{3AEBND6G.js → RZDIAMRJ.js} +1 -1
  138. package/dist/cdn/{A2Z2VCTQ.js → S3YS5TWW.js} +1 -1
  139. package/dist/cdn/{YZNTWZ2C.js → S4SNMYII.js} +1 -1
  140. package/dist/cdn/S5XPO4X3.js +2 -0
  141. package/dist/cdn/SBQPFK7O.js +2 -0
  142. package/dist/cdn/SIR6LQYG.js +2 -0
  143. package/dist/cdn/SIXUBCBZ.js +2 -0
  144. package/dist/cdn/SMBZ4HCK.js +2 -0
  145. package/dist/cdn/SPNOOYWE.js +2 -0
  146. package/dist/cdn/SUH6Q6VA.js +2 -0
  147. package/dist/cdn/{Y3ITJCU6.js → SUWU7QIA.js} +1 -1
  148. package/dist/cdn/{34FSSQXM.js → SVVZAW3N.js} +1 -1
  149. package/dist/cdn/TBFNXPO7.js +2 -0
  150. package/dist/cdn/{DMP23AFX.js → TDNW2OHP.js} +1 -1
  151. package/dist/cdn/TGDMJJCN.js +2 -0
  152. package/dist/cdn/{WYT32WC6.js → TGZLVR52.js} +1 -1
  153. package/dist/cdn/{YKGW52WZ.js → TQGIV3K4.js} +1 -1
  154. package/dist/cdn/TRJHM2AU.js +2 -0
  155. package/dist/cdn/TRO5YRIR.js +2 -0
  156. package/dist/cdn/{U2TK55BA.js → TZOMLSCD.js} +1 -1
  157. package/dist/cdn/{2T7GITCO.js → UC4B5RZR.js} +1 -1
  158. package/dist/cdn/UPL42Z7Y.js +2 -0
  159. package/dist/cdn/{I2DGSPZU.js → USA5BTOC.js} +1 -1
  160. package/dist/cdn/VAX7LMWJ.js +2 -0
  161. package/dist/cdn/VIFT4BU2.js +2 -0
  162. package/dist/cdn/VJ2SE6UE.js +2 -0
  163. package/dist/cdn/{NTORPPUA.js → VORF5SSY.js} +1 -1
  164. package/dist/cdn/VRMHUMSJ.js +2 -0
  165. package/dist/cdn/{GJV2ZQXB.js → W4OZI46N.js} +1 -1
  166. package/dist/cdn/WDGESHIM.js +2 -0
  167. package/dist/cdn/WNTJFIQQ.js +2 -0
  168. package/dist/cdn/WNWFJZWJ.js +2 -0
  169. package/dist/cdn/{CIGSNHL4.js → WU5EH6LB.js} +1 -1
  170. package/dist/cdn/XDJQQXLH.js +2 -0
  171. package/dist/cdn/{EY43UHHH.js → XEDYZ2AY.js} +1 -1
  172. package/dist/cdn/{QTPKQNBY.js → XJZCNL65.js} +1 -1
  173. package/dist/cdn/XQKXDDAR.js +2 -0
  174. package/dist/cdn/{4ODDYEVQ.js → Y66GCVMG.js} +1 -1
  175. package/dist/cdn/{2KVZ36IK.js → YCKXA6G3.js} +1 -1
  176. package/dist/cdn/{BC5WFWRT.js → YOJN3RDZ.js} +1 -1
  177. package/dist/cdn/YQXDHXA6.js +2 -0
  178. package/dist/cdn/{ESBU5JJB.js → ZAWXEB6X.js} +1 -1
  179. package/dist/cdn/{TVJHKOYG.js → ZIFQ2O7M.js} +1 -1
  180. package/dist/cdn/ZIP7A4OP.js +2 -0
  181. package/dist/cdn/ZK47NIZB.js +2 -0
  182. package/dist/cdn/{UGWL3UK4.js → ZTBIXNFX.js} +1 -1
  183. package/dist/cdn/ZUPERN26.js +2 -0
  184. package/dist/cdn/{CWKYAZQO.js → ZWFZY2MA.js} +1 -1
  185. package/dist/cdn/{SY3ONBJT.js → ZY3BVDLT.js} +1 -1
  186. package/dist/cdn/index.js +1 -1
  187. package/dist/chunks/component-utils.js +85 -72
  188. package/dist/chunks/runtime.js +1 -1
  189. package/dist/components/arcgis-features/customElement.d.ts +4 -0
  190. package/dist/components/arcgis-features/customElement.js +38 -37
  191. package/dist/components/arcgis-paste/customElement.js +4 -2
  192. package/dist/components/arcgis-popup/customElement.d.ts +5 -0
  193. package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.js +8 -8
  194. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +9 -5
  195. package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
  196. package/dist/docs/api.json +1 -1
  197. package/dist/docs/docs.json +1 -1
  198. package/dist/docs/vscode.html-custom-data.json +1 -1
  199. package/dist/docs/web-types.json +1 -1
  200. package/package.json +4 -4
  201. package/dist/cdn/2CPZBOJU.js +0 -2
  202. package/dist/cdn/2FR3RIFL.js +0 -2
  203. package/dist/cdn/37KK4NSD.js +0 -2
  204. package/dist/cdn/3AY6LF2C.js +0 -2
  205. package/dist/cdn/3BLI6P6V.js +0 -2
  206. package/dist/cdn/4AAA22LW.js +0 -2
  207. package/dist/cdn/4PV3WVQG.js +0 -2
  208. package/dist/cdn/5C7TZISA.js +0 -2
  209. package/dist/cdn/5DR2WPE6.js +0 -2
  210. package/dist/cdn/5M2JEZ2R.js +0 -2
  211. package/dist/cdn/5TYQD2XK.js +0 -2
  212. package/dist/cdn/6APGEDF2.js +0 -2
  213. package/dist/cdn/6ILPTKXQ.js +0 -2
  214. package/dist/cdn/74XVTUIU.js +0 -2
  215. package/dist/cdn/74YR2GMG.js +0 -2
  216. package/dist/cdn/7L6MSW52.js +0 -2
  217. package/dist/cdn/7X4MUVGU.js +0 -2
  218. package/dist/cdn/AESYVLNJ.js +0 -2
  219. package/dist/cdn/AH4CQRBT.js +0 -2
  220. package/dist/cdn/AHBILHCV.js +0 -2
  221. package/dist/cdn/AR6UJZIW.js +0 -2
  222. package/dist/cdn/BAS4FDKI.js +0 -2
  223. package/dist/cdn/BIBSQPCZ.js +0 -2
  224. package/dist/cdn/CAO4NHCY.js +0 -2
  225. package/dist/cdn/CHCOWKYJ.js +0 -2
  226. package/dist/cdn/CIEACKVE.js +0 -2
  227. package/dist/cdn/CSDFVDAI.js +0 -2
  228. package/dist/cdn/CUWPSCZM.js +0 -2
  229. package/dist/cdn/CW6ZVLAU.js +0 -2
  230. package/dist/cdn/DI5ZMM6O.js +0 -2
  231. package/dist/cdn/DOXD3QLK.js +0 -2
  232. package/dist/cdn/DSML2TRF.js +0 -2
  233. package/dist/cdn/EBHWWPMA.js +0 -2
  234. package/dist/cdn/EKQKCLSK.js +0 -2
  235. package/dist/cdn/F5SSOC7L.js +0 -2
  236. package/dist/cdn/GN3IL4IJ.js +0 -2
  237. package/dist/cdn/H3DJOS5A.js +0 -2
  238. package/dist/cdn/HHDTGMYM.js +0 -2
  239. package/dist/cdn/I5I7M7RU.js +0 -2
  240. package/dist/cdn/IOHZAH45.js +0 -2
  241. package/dist/cdn/JNB4QSCA.js +0 -2
  242. package/dist/cdn/KA5TVZVJ.js +0 -2
  243. package/dist/cdn/KVWAHPSN.js +0 -2
  244. package/dist/cdn/L2KU7WKA.js +0 -2
  245. package/dist/cdn/L6QXUF7M.js +0 -2
  246. package/dist/cdn/LPY4DF3H.js +0 -2
  247. package/dist/cdn/LWZ5CMKZ.js +0 -2
  248. package/dist/cdn/MCPM6R7G.js +0 -2
  249. package/dist/cdn/N3E4FBLC.js +0 -2
  250. package/dist/cdn/NDSSASAU.js +0 -2
  251. package/dist/cdn/NOJAJCMT.js +0 -2
  252. package/dist/cdn/NQ3XBJM4.js +0 -2
  253. package/dist/cdn/NS4JLBIF.js +0 -2
  254. package/dist/cdn/OBY2INIT.js +0 -2
  255. package/dist/cdn/OLOIDFRG.js +0 -2
  256. package/dist/cdn/OWA5LPNO.js +0 -2
  257. package/dist/cdn/PAWGXUUP.js +0 -2
  258. package/dist/cdn/PGFTFMXL.js +0 -2
  259. package/dist/cdn/PNXUNGMT.js +0 -2
  260. package/dist/cdn/Q5XOXU7U.js +0 -2
  261. package/dist/cdn/RGYU3YRI.js +0 -2
  262. package/dist/cdn/SKZKOJIQ.js +0 -2
  263. package/dist/cdn/SS6STPJ7.js +0 -2
  264. package/dist/cdn/TP3DEPTO.js +0 -2
  265. package/dist/cdn/VF5AR5B7.js +0 -2
  266. package/dist/cdn/WHBMBVAC.js +0 -2
  267. package/dist/cdn/WLXFMXBT.js +0 -2
  268. package/dist/cdn/WTC7UYZ5.js +0 -2
  269. package/dist/cdn/WVNSSDTL.js +0 -2
  270. package/dist/cdn/WW7X6KMT.js +0 -2
  271. package/dist/cdn/XFF27HKM.js +0 -2
  272. package/dist/cdn/XFW2KNNO.js +0 -2
  273. package/dist/cdn/XPUGIMN4.js +0 -2
  274. package/dist/cdn/XWPGW5PP.js +0 -2
  275. package/dist/cdn/XXSD7577.js +0 -2
  276. package/dist/cdn/XZITWYR7.js +0 -2
  277. package/dist/cdn/Y6U3REVL.js +0 -2
  278. package/dist/cdn/Z2PRNIJR.js +0 -2
  279. package/dist/cdn/ZTRYQINY.js +0 -2
  280. package/dist/cdn/ZWQGXYPW.js +0 -2
@@ -1,100 +1,113 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
+ import { watch as u } from "@arcgis/core/core/reactiveUtils.js";
2
3
  import "@arcgis/toolkit/log";
3
- function v(t) {
4
- t.el.childElem && (t.el.childElem.ownedBy = t.el);
5
- const e = u(t);
6
- if (!e) {
7
- const i = h(t);
8
- if (!i) {
9
- c(t);
4
+ function N(e) {
5
+ e.el.childElem && (e.el.childElem.ownedBy = e.el);
6
+ const t = g(e);
7
+ if (!t) {
8
+ const r = y(e);
9
+ if (!r) {
10
+ c(e);
10
11
  return;
11
12
  }
12
- return l(i, t, !0), i;
13
+ return a(r, e, !0), r;
13
14
  }
14
- return g(e, t.el.parent) || (t.el.parent = e, e.localName === "arcgis-expand" ? y(e, t) : l(e, t, !1)), e;
15
+ return E(t, e.el.parent) || (e.el.parent = t, t.localName === "arcgis-expand" ? h(t, e) : a(t, e, !1)), t;
15
16
  }
16
- function u({ el: t }) {
17
- for (let e = t.parentElement; e; e = e?.parentElement ?? null) {
18
- if (a.has(e.localName))
19
- return e;
20
- if ("ownedBy" in e && e.ownedBy instanceof HTMLElement && a.has(e.ownedBy.localName))
21
- return e.ownedBy;
17
+ function g({ el: e }) {
18
+ for (let t = e.parentElement; t; t = t?.parentElement ?? null) {
19
+ if (o.has(t.localName))
20
+ return t;
21
+ if ("ownedBy" in t && t.ownedBy instanceof HTMLElement && o.has(t.ownedBy.localName))
22
+ return t.ownedBy;
22
23
  }
23
24
  }
24
- const a = /* @__PURE__ */ new Set(["arcgis-map", "arcgis-scene", "arcgis-link-chart", "arcgis-expand"]);
25
- function g(t, e) {
26
- return t !== e ? !1 : t.localName === "arcgis-expand";
25
+ const o = /* @__PURE__ */ new Set(["arcgis-map", "arcgis-scene", "arcgis-link-chart", "arcgis-expand"]);
26
+ function E(e, t) {
27
+ return e !== t ? !1 : e.localName === "arcgis-expand";
27
28
  }
28
- function s(t, e, i = "arcgisReady") {
29
- const r = t;
30
- if (r.view)
31
- e(r.view);
29
+ function s(e, t, r = "arcgisReady") {
30
+ const i = e;
31
+ if (i.view)
32
+ t(i.view);
32
33
  else {
33
- let n = function(o) {
34
- o.target === t && (s(t, e, i), t.removeEventListener(i, n));
34
+ let n = function(l) {
35
+ l.target === e && (s(e, t, r), e.removeEventListener(r, n));
35
36
  };
36
- t.addEventListener(i, n);
37
+ e.addEventListener(r, n);
37
38
  }
38
39
  }
39
- const y = (t, e) => s(t, (i) => {
40
- const r = d(e);
41
- e.el.shadowRoot ? t.content = e.el : e.el.childElem && t.content != null && r.append(e.el.childElem), e.el.view = i;
42
- }), l = (t, e, i) => s(
43
- t,
44
- (r) => {
45
- i && c(e), e.el.view = r, e.referenceElement = t;
40
+ const h = (e, t) => s(e, (r) => {
41
+ const i = d(t);
42
+ if (t.el.shadowRoot ? e.content = t.el : t.el.childElem && e.content != null && i.append(t.el.childElem), t.el.view = r, e.referenceElement) {
43
+ t.referenceElement = e.referenceElement;
44
+ return;
45
+ }
46
+ u(
47
+ () => e.referenceElement,
48
+ (n) => {
49
+ t.referenceElement = n;
50
+ },
51
+ {
52
+ once: !0
53
+ }
54
+ );
55
+ }), a = (e, t, r) => s(
56
+ e,
57
+ (i) => {
58
+ r && c(t), t.el.view = i, t.referenceElement = e;
46
59
  },
47
60
  "arcgisViewReadyChange"
48
61
  );
49
- function C(t) {
50
- return t == null || t === "";
62
+ function S(e) {
63
+ return e == null || e === "";
51
64
  }
52
- function N(t, e) {
53
- return t?.position === e?.position && t?.heading === e.heading && t?.tilt === e.tilt && t?.fov === e.fov;
65
+ function T(e, t) {
66
+ return e?.position === t?.position && e?.heading === t.heading && e?.tilt === t.tilt && e?.fov === t.fov;
54
67
  }
55
- function S(t, e) {
56
- return e === void 0 || t?.targetGeometry !== e?.targetGeometry || t?.rotation !== e?.rotation || t?.scale !== e?.scale;
68
+ function B(e, t) {
69
+ return t === void 0 || e?.targetGeometry !== t?.targetGeometry || e?.rotation !== t?.rotation || e?.scale !== t?.scale;
57
70
  }
58
- function R(t, e) {
59
- return f(e?.center, t);
71
+ function m(e, t) {
72
+ return f(t?.center, e);
60
73
  }
61
- function f(t, e) {
62
- if (typeof e == "string")
63
- return f(t, e.split(",").map(Number));
64
- if (!t)
65
- return e;
66
- if (Array.isArray(e)) {
67
- const i = e[0], r = e[1], n = e.length > 2 ? e[2] : void 0;
68
- if (i !== t.longitude || r !== t.latitude || n !== t.z)
69
- return e;
70
- } else if (e && !t?.equals(e))
71
- return e;
74
+ function f(e, t) {
75
+ if (typeof t == "string")
76
+ return f(e, t.split(",").map(Number));
77
+ if (!e)
78
+ return t;
79
+ if (Array.isArray(t)) {
80
+ const r = t[0], i = t[1], n = t.length > 2 ? t[2] : void 0;
81
+ if (r !== e.longitude || i !== e.latitude || n !== e.z)
82
+ return t;
83
+ } else if (t && !e?.equals(t))
84
+ return t;
72
85
  }
73
- function c(t) {
74
- t.el.childElem && d(t).append(t.el.childElem);
86
+ function c(e) {
87
+ e.el.childElem && d(e).append(e.el.childElem);
75
88
  }
76
- function d(t) {
77
- return t.el.shadowRoot ?? t.el;
89
+ function d(e) {
90
+ return e.el.shadowRoot ?? e.el;
78
91
  }
79
- function h(t, e) {
80
- const i = t.referenceElement;
81
- if (typeof i != "string")
82
- return i ?? void 0;
83
- const r = i.includes("#") || i.includes(".") || i.includes("["), n = t.el.getRootNode();
84
- return (r ? void 0 : n.querySelector(`#${i}`)) ?? n.querySelector(i) ?? void 0;
92
+ function y(e, t) {
93
+ const r = e.referenceElement;
94
+ if (typeof r != "string")
95
+ return r ?? void 0;
96
+ const i = r.includes("#") || r.includes(".") || r.includes("["), n = e.el.getRootNode();
97
+ return (i ? void 0 : n.querySelector(`#${r}`)) ?? n.querySelector(r) ?? void 0;
85
98
  }
86
- const T = (t) => t.el.childElem;
87
- async function p(t) {
88
- const e = typeof t == "function" ? t() : t;
89
- e && ("setFocus" in e && typeof e.setFocus == "function" ? await e.setFocus() : e instanceof HTMLElement && e.focus());
99
+ const q = (e) => e.el.childElem;
100
+ async function F(e) {
101
+ const t = typeof e == "function" ? e() : e;
102
+ t && ("setFocus" in t && typeof t.setFocus == "function" ? await t.setFocus() : t instanceof HTMLElement && t.focus());
90
103
  }
91
104
  export {
92
- v as a,
93
- N as b,
105
+ N as a,
106
+ T as b,
94
107
  f as c,
95
- C as d,
96
- T as g,
97
- S as i,
98
- R as p,
99
- p as s
108
+ S as d,
109
+ q as g,
110
+ B as i,
111
+ m as p,
112
+ F as s
100
113
  };
@@ -3,7 +3,7 @@ import "../cdn/main.css";
3
3
  import { css as t } from "lit";
4
4
  import { makeRuntime as r } from "@arcgis/lumina";
5
5
  import { trackAccess as i, createObservable as a, createTrackingTarget as s, runTracked as n } from "@arcgis/core/applications/Components/reactiveUtils.js";
6
- const o = t`:host{display:block;box-sizing:border-box;*,*:before,*:after{box-sizing:inherit}}:host([hidden]){display:none}:host(:not(arcgis-basemap-gallery-item,arcgis-layer-list-item,arcgis-print-custom-text-elements,arcgis-print-dpi-input,arcgis-print-export-button,arcgis-print-exported-link,arcgis-print-exports-panel,arcgis-print-format-select,arcgis-print-layout-advanced-options,arcgis-print-layout-panel,arcgis-print-main-panel,arcgis-print-map-only-advanced-options,arcgis-print-map-only-panel,arcgis-print-out-spatial-reference-input,arcgis-print-preview-input,arcgis-print-scale-section,arcgis-print-template-select,arcgis-print-template-selector,arcgis-labeled-switch,arcgis-measurement-content,arcgis-version-management-service-item,arcgis-version-management-version-item,arcgis-version-management-version-list,arcgis-version-management-version-properties,arcgis-video-player-action-bar,arcgis-video-player-actions-group,arcgis-video-player-controls-group,arcgis-video-player-metadata,arcgis-video-player-settings,arcgis-video-player-slider)){font-family:var(--calcite-font-family)}`, e = r({ defaultAssetPath: "https://js.arcgis.com/5.0.3/map-components/", hydratedAttribute: "hydrated", commonStyles: o }), { customElement: l, getAssetPath: m, setAssetPath: d } = e;
6
+ const o = t`:host{display:block;box-sizing:border-box;*,*:before,*:after{box-sizing:inherit}}:host([hidden]){display:none}:host(:not(arcgis-basemap-gallery-item,arcgis-layer-list-item,arcgis-print-custom-text-elements,arcgis-print-dpi-input,arcgis-print-export-button,arcgis-print-exported-link,arcgis-print-exports-panel,arcgis-print-format-select,arcgis-print-layout-advanced-options,arcgis-print-layout-panel,arcgis-print-main-panel,arcgis-print-map-only-advanced-options,arcgis-print-map-only-panel,arcgis-print-out-spatial-reference-input,arcgis-print-preview-input,arcgis-print-scale-section,arcgis-print-template-select,arcgis-print-template-selector,arcgis-labeled-switch,arcgis-measurement-content,arcgis-version-management-service-item,arcgis-version-management-version-item,arcgis-version-management-version-list,arcgis-version-management-version-properties,arcgis-video-player-action-bar,arcgis-video-player-actions-group,arcgis-video-player-controls-group,arcgis-video-player-metadata,arcgis-video-player-settings,arcgis-video-player-slider)){font-family:var(--calcite-font-family)}`, e = r({ defaultAssetPath: "https://js.arcgis.com/5.0.5/map-components/", hydratedAttribute: "hydrated", commonStyles: o }), { customElement: l, getAssetPath: m, setAssetPath: d } = e;
7
7
  e.t = i;
8
8
  e.o = a;
9
9
  e.c = s;
@@ -435,15 +435,19 @@ export abstract class ArcgisFeatures extends LitElement {
435
435
  /**
436
436
  * Indicates whether the component is visible. This property is `true` when the component is querying for results, even if it is not open. Use this property to check if the component is visible.
437
437
  *
438
+ * When setting the [content](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#content) and [heading](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#heading) directly, it is recommended to call [clear()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#clear) before setting `open` to `true` to remove any existing promises, features, heading, location, and content from the component. Otherwise, the old content will display.
439
+ *
438
440
  * @default false
439
441
  * @see [fetchFeatures()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#fetchFeatures)
440
442
  * @see [active](https://developers.arcgis.com/javascript/latest/references/core/widgets/Features/FeaturesViewModel/#active)
443
+ * @see [clear()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#clear)
441
444
  * @since 5.0
442
445
  * @example
443
446
  * ```js
444
447
  * // Listen for clicks on the view and open the component at the clicked location with custom content.
445
448
  * viewElement.addEventListener("arcgisViewClick", (event) => {
446
449
  * const { mapPoint } = event.detail;
450
+ * component.clear();
447
451
  * component.location = mapPoint;
448
452
  * component.heading = "You clicked here";
449
453
  * component.content = "Latitude: " + mapPoint.latitude.toFixed(3) + ", Longitude: " + mapPoint.longitude.toFixed(3);
@@ -1,22 +1,22 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import { c as N } from "../../chunks/runtime.js";
2
+ import { c as D } from "../../chunks/runtime.js";
3
3
  import { css as E, html as o } from "lit";
4
- import { keyed as F } from "lit/directives/keyed.js";
4
+ import { keyed as _ } from "lit/directives/keyed.js";
5
5
  import O from "@arcgis/core/widgets/Features/FeaturesViewModel.js";
6
6
  import { u as B } from "../../chunks/useT9n.js";
7
7
  import { classes as b } from "@arcgis/toolkit/dom";
8
8
  import { usePropertyChange as L } from "@arcgis/lumina/controllers";
9
9
  import { m as R } from "../../chunks/useViewModel.js";
10
- import { LitElement as P, createEvent as C, renderElement as H, nothing as d, safeClassMap as $ } from "@arcgis/lumina";
11
- import { substitute as u, formatNumber as M } from "@arcgis/core/intl.js";
10
+ import { LitElement as P, createEvent as C, renderElement as S, nothing as d, safeClassMap as $ } from "@arcgis/lumina";
11
+ import { substitute as u, formatNumber as F } from "@arcgis/core/intl.js";
12
12
  import { watch as h } from "@arcgis/core/core/reactiveUtils.js";
13
- import { t as S, z, b as U } from "../../chunks/action-utils.js";
13
+ import { t as H, z, b as U } from "../../chunks/action-utils.js";
14
14
  import { stripHTML as A } from "@arcgis/core/applications/Components/stringUtils.js";
15
15
  import x from "@arcgis/core/core/Collection.js";
16
16
  import { a as Z } from "../../chunks/feature-utils.js";
17
17
  import { renderingSanitizer as y } from "@arcgis/core/applications/Components/sanitizerUtils.js";
18
18
  import { initializeProjection as j } from "@arcgis/core/applications/Components/featureUtils.js";
19
- import { createRef as w, ref as v } from "lit/directives/ref.js";
19
+ import { createRef as M, ref as v } from "lit/directives/ref.js";
20
20
  const G = E`:host{display:flex;overflow:hidden;flex:1 1 auto}.root{--calcite-color-background: var(--calcite-color-foreground-1);display:flex;overflow:hidden;flex:1 1 auto;flex-direction:column}.root img{image-orientation:from-image}.flow-item-collapsed{--calcite-flow-item-header-border-block-end: none}.container{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1)}.container calcite-list{width:100%}.container:not(:empty){padding:var(--arcgis-internal-padding-md, var(--calcite-spacing-md))}.root .arcgis-feature,.root .arcgis-feature-relationship,.root .arcgis-feature-utility-network-associations{background-color:transparent}.heading{word-break:break-word;word-wrap:break-word}.header,.footer{display:flex;align-items:center;justify-content:flex-end;background-color:var(--calcite-color-foreground-1)}.footer{flex:1}.pagination-text{padding-inline:var(--calcite-spacing-sm);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm)}.loader{align-self:center;padding-inline:var(--calcite-spacing-lg)}.pagination-action-bar{flex:1}.pagination-menu-button{padding-inline:var(--calcite-spacing-xxs);border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.icon{display:inline-block;flex:0 0 var(--calcite-spacing-lg);width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.action-image{flex:0 0 var(--calcite-spacing-lg);background-position:50% 50%;background-repeat:no-repeat;background-size:contain;width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.header{border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.content-feature{--calcite-flow-item-footer-padding: 0}.feature-menu-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.action-exit{transform:scaleX(-1)}`;
21
21
  function K(c) {
22
22
  switch (c?.type) {
@@ -44,7 +44,7 @@ class q extends P {
44
44
  e?.isIntersecting && this.viewModel.featurePage != null && this.viewModel.featurePage++;
45
45
  }, this._featureMenuIntersectionObserver = new IntersectionObserver(this._featureMenuIntersectionObserverCallback, {
46
46
  root: window.document
47
- }), this._featureMenuIntersectionObserverNode = null, this._rootFlowItemNode = w(), this._featureMenuViewportNode = w(), this._actionBarMenuNode = w(), this._flowContainerNode = w(), this.messages = B(), this._selectedFeatureComponent = w(), this._cancelOpenRelatedFeature = () => {
47
+ }), this._featureMenuIntersectionObserverNode = null, this._rootFlowItemNode = M(), this._featureMenuViewportNode = M(), this._actionBarMenuNode = M(), this._flowContainerNode = M(), this.messages = B(), this._selectedFeatureComponent = M(), this._cancelOpenRelatedFeature = () => {
48
48
  const { _openRelatedFeatureAbortController: e } = this;
49
49
  e && e.abort(), this._openRelatedFeatureAbortController = null;
50
50
  }, this._openRelatedFeatureAbortController = null, this.flowItems = new x(), this.viewModel = X(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.autoDestroyDisabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = this.viewModel.featureMenuOpen, this.featureMenuTitle = this.viewModel.featureMenuTitle, this.featureNavigationTop = !1, this.features = this.viewModel.features, this.featuresPerPage = this.viewModel.featuresPerPage, this.featureViewModelAbilities = this.viewModel.featureViewModelAbilities, this.goToOverride = this.viewModel.goToOverride, this.headerActions = new x(), this.heading = this.viewModel.title, this.headingLevel = 2, this.hideActionBar = !1, this.hideCloseButton = !1, this.hideFeatureMenuHeading = !1, this.hideFeatureNavigation = !1, this.hideFeatureListLayerTitle = !1, this.hideHeading = !1, this.hideSpinner = !1, this.hideContent = !1, this.hideExpressionContent = !1, this.hideLastEditedInfo = !1, this.highlightDisabled = this.viewModel.highlightEnabled, this.includeDefaultActionsDisabled = this.viewModel.includeDefaultActions, this.initialDisplayMode = this.viewModel.initialDisplayMode, this.location = this.viewModel.location, this.map = this.viewModel.map, this.open = this.viewModel.visible, this.promises = this.viewModel.promises, this.responsiveActionsEnabled = !1, this.selectedFeature = this.viewModel.selectedFeature, this.selectedFeatureIndex = this.viewModel.selectedFeatureIndex, this.showCollapseButton = !1, this.spatialReference = this.viewModel.spatialReference, this.state = this.viewModel.state, this.timeZone = this.viewModel.timeZone, this.updateLocationEnabled = this.viewModel.updateLocationEnabled, this.view = this.viewModel.view, this.arcgisPropertyChange = L()("active", "collapsed", "featureCount", "featureMenuOpen", "features", "promises", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady = C(), this.arcgisClose = C(), this.arcgisTriggerAction = C();
@@ -153,7 +153,7 @@ class q extends P {
153
153
  }
154
154
  async triggerAction(e) {
155
155
  if (!e.disabled)
156
- return e?.type === "toggle" && (e.value = !e.value), await S(e, this.viewModel);
156
+ return e?.type === "toggle" && (e.value = !e.value), await H(e, this.viewModel);
157
157
  }
158
158
  loaded() {
159
159
  this.manager.onLifecycle(() => [
@@ -189,8 +189,8 @@ class q extends P {
189
189
  const n = i?.graphic;
190
190
  if (!n)
191
191
  return;
192
- const s = Z(n), a = W(s) ? s : null, r = t.get(a) ?? [];
193
- t.set(a, [...r, i]);
192
+ const s = Z(n), a = W(s) ? s : null, l = t.get(a) ?? [];
193
+ t.set(a, [...l, i]);
194
194
  }), t;
195
195
  }
196
196
  _handleCollapseToggle() {
@@ -248,8 +248,8 @@ class q extends P {
248
248
  this._unobserveFeatureMenuObserver(), e && this._featureMenuIntersectionObserver.observe(e), this._featureMenuIntersectionObserverNode = e;
249
249
  }
250
250
  _getActionTitle(e) {
251
- const { messages: t, selectedFeature: i } = this, { id: n } = e, s = i?.attributes, a = e.title ?? "", r = n === "zoom-to-feature" ? u(a, { messages: t }) : n === "remove-selected-feature" ? u(a, { messages: t }) : n === "zoom-to-clustered-features" ? u(a, { messages: t }) : n === "browse-clustered-features" ? u(a, { messages: t }) : e.title;
252
- return r && s ? u(r, s) : r ?? "";
251
+ const { messages: t, selectedFeature: i } = this, { id: n } = e, s = i?.attributes, a = e.title ?? "", l = n === "zoom-to-feature" ? u(a, { messages: t }) : n === "remove-selected-feature" ? u(a, { messages: t }) : n === "zoom-to-clustered-features" ? u(a, { messages: t }) : n === "browse-clustered-features" ? u(a, { messages: t }) : e.title;
252
+ return l && s ? u(l, s) : l ?? "";
253
253
  }
254
254
  _onMainKeydown(e) {
255
255
  const { key: t } = e;
@@ -298,7 +298,7 @@ class q extends P {
298
298
  }
299
299
  async _createSpinner() {
300
300
  const e = this.referenceElement;
301
- e && (await this._destroySpinner(e), this._spinnerEl = H(o`<arcgis-spinner .label=${this.messages.loading ?? ""} .trackLocation=${!this.hideSpinner && this.viewModel?.waitingForResult} .location=${this.viewModel?.location ?? void 0} .view=${this.viewModel?.view ?? void 0}></arcgis-spinner>`), e.manager?.component?.extraContent?.add(this._spinnerEl));
301
+ e && (await this._destroySpinner(e), this._spinnerEl = S(o`<arcgis-spinner .label=${this.messages.loading ?? ""} .trackLocation=${!this.hideSpinner && this.viewModel?.waitingForResult} .location=${this.viewModel?.location ?? void 0} .view=${this.viewModel?.view ?? void 0}></arcgis-spinner>`), e.manager?.component?.extraContent?.add(this._spinnerEl));
302
302
  }
303
303
  render() {
304
304
  return o`<div class="root" @keydown=${this._onMainKeydown}>${this._renderHeader()}${this._renderContentContainer()}</div>`;
@@ -318,15 +318,15 @@ class q extends P {
318
318
  _renderFeaturePaginationText() {
319
319
  const { messages: e, viewModel: t } = this, { featureCount: i, selectedFeatureIndex: n } = t;
320
320
  return o`<div class="pagination-text">${u(e.pageText ?? "", {
321
- index: M(n + 1),
322
- total: M(i)
321
+ index: F(n + 1),
322
+ total: F(i)
323
323
  })}</div>`;
324
324
  }
325
325
  _renderFeatureMenuButton() {
326
326
  const { messages: e, viewModel: t } = this, { featureCount: i, selectedFeatureIndex: n, pendingPromisesCount: s } = t;
327
327
  return o`<calcite-action class="pagination-menu-button" icon=list .label=${e.selectFeature} .loading=${s > 0} @click=${this._handlePaginationMenuButton} .text=${u(e.pageText ?? "", {
328
- index: M(n + 1),
329
- total: M(i)
328
+ index: F(n + 1),
329
+ total: F(i)
330
330
  })} text-enabled title=${e.selectFeature ?? d}></calcite-action>`;
331
331
  }
332
332
  _renderPagination() {
@@ -340,8 +340,8 @@ class q extends P {
340
340
  _renderFeatureMenu() {
341
341
  const { messages: e, viewModel: t } = this, i = this._groupResultsByLayer(), n = this.initialDisplayMode === "list" ? "none" : "single";
342
342
  return t.featureViewModels.length ? o`<calcite-list display-mode=flat .label=${e?.featuresList ?? ""} selection-appearance=icon .selectionMode=${n}>${Array.from(i.keys(), (s) => {
343
- const a = i.get(s)?.map((l) => this._renderFeatureMenuItem(l)), r = s ? s.title ?? this.messages.untitled : null;
344
- return !this.hideFeatureListLayerTitle && r !== null ? F(s ?? "map-graphics", o`<calcite-list-item-group .heading=${r}>${a}</calcite-list-item-group>`) : a;
343
+ const a = i.get(s)?.map((r) => this._renderFeatureMenuItem(r)), l = s ? s.title ?? this.messages.untitled : null;
344
+ return !this.hideFeatureListLayerTitle && l !== null ? _(s ?? "map-graphics", o`<calcite-list-item-group .heading=${l}>${a}</calcite-list-item-group>`) : a;
345
345
  })}</calcite-list>` : null;
346
346
  }
347
347
  _renderHeaderAction(e) {
@@ -352,40 +352,41 @@ class q extends P {
352
352
  return this.headerActions.map((e) => this._renderHeaderAction(e)).toArray();
353
353
  }
354
354
  _renderContentFeature() {
355
- const { headingLevel: e, hideCloseButton: t, _isCollapsed: i, _collapseEnabled: n, featureNavigationTop: s, flowItems: a, initialDisplayMode: r, selectedFeature: l, featureMenuOpen: p } = this, { active: f } = this.viewModel, g = this._getHeading();
356
- if (r === "list" && !l)
355
+ const { headingLevel: e, hideCloseButton: t, _isCollapsed: i, _collapseEnabled: n, featureNavigationTop: s, flowItems: a, initialDisplayMode: l, selectedFeature: r, featureMenuOpen: p } = this, { active: f } = this.viewModel, g = this._getHeading();
356
+ if (l === "list" && !r)
357
357
  return null;
358
- const _ = a.length === 0 && (r === "list" ? !!l : !p);
358
+ const w = a.length === 0 && (l === "list" ? !!r : !p);
359
359
  return o`<calcite-flow-item class=${$(b({
360
360
  "content-feature": !0,
361
361
  "flow-item-collapsed": i
362
- }))} .closable=${!t} .closed=${!f} .collapsed=${i} .collapseDirection=${s ? "down" : "up"} .collapsible=${n} .headingLevel=${e} .selected=${_} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${A(g)} ${v(this._rootFlowItemNode)}>${this._renderHeaderActions()}${this._renderActionBar()}<div class=${$(b("container", "content-container"))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`;
362
+ }))} .closable=${!t} .closed=${!f} .collapsed=${i} .collapseDirection=${s ? "down" : "up"} .collapsible=${n} .headingLevel=${e} .selected=${w} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${A(g)} ${v(this._rootFlowItemNode)}>${this._renderHeaderActions()}${this._renderActionBar()}<div class=${$(b("container", "content-container"))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`;
363
363
  }
364
364
  _renderFeatureMenuContainer() {
365
- const { viewModel: e, hideCloseButton: t, featureMenuTitle: i, messages: n, initialDisplayMode: s, featureMenuOpen: a, selectedFeature: r, _collapseEnabled: l, _isCollapsed: p, featureNavigationTop: f, headingLevel: g } = this, { active: _, featureViewModels: I, pendingPromisesCount: T } = e, k = i ?? n.selectFeature;
365
+ const { viewModel: e, hideCloseButton: t, featureMenuTitle: i, messages: n, initialDisplayMode: s, featureMenuOpen: a, selectedFeature: l, _collapseEnabled: r, _isCollapsed: p, featureNavigationTop: f, headingLevel: g } = this, { active: w, featureViewModels: T, pendingPromisesCount: I } = e, k = i ?? n.selectFeature;
366
366
  if (s === "feature" && !a)
367
367
  return null;
368
- const V = s === "list" ? !r : a;
368
+ const V = s === "list" ? !l : a;
369
369
  return o`<calcite-flow-item class=${$(b({
370
370
  "flow-item-collapsed": p
371
- }))} .closable=${s === "list" && !t} .closed=${!_} .collapsed=${s === "list" && p} .collapseDirection=${f ? "down" : "up"} .collapsible=${s === "list" && l} .description=${this.hideFeatureMenuHeading ? void 0 : u(n.total ?? "", {
372
- total: I.length
373
- })} .heading=${this.hideFeatureMenuHeading ? void 0 : k} .headingLevel=${g} .loading=${e.waitingForContents} .selected=${V} @calciteFlowItemBack=${(D) => {
374
- D.preventDefault(), this._handleFeatureMenuBack();
375
- }} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${v(this._featureMenuViewportNode)}>${s === "list" ? this._renderHeaderActions() : null}${T > 0 ? o`<calcite-loader class="loader" inline .label=${n.loading ?? ""} slot=header-actions-end></calcite-loader>` : null}<div class="container">${this._renderFeatureMenu()}</div><div class="feature-menu-observer" ${v(this._featureMenuIntersectionObserverCreated)}></div>${s === "feature" ? o`<calcite-button appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full>${n.back}</calcite-button>` : null}</calcite-flow-item>`;
371
+ }))} .closable=${s === "list" && !t} .closed=${!w} .collapsed=${s === "list" && p} .collapseDirection=${f ? "down" : "up"} .collapsible=${s === "list" && r} .description=${this.hideFeatureMenuHeading ? void 0 : u(n.total ?? "", {
372
+ total: T.length
373
+ })} .heading=${this.hideFeatureMenuHeading ? void 0 : k} .headingLevel=${g} .loading=${e.waitingForContents} .selected=${V} @calciteFlowItemBack=${(N) => {
374
+ N.preventDefault(), this._handleFeatureMenuBack();
375
+ }} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${v(this._featureMenuViewportNode)}>${s === "list" ? this._renderHeaderActions() : null}${I > 0 ? o`<calcite-loader class="loader" inline .label=${n.loading ?? ""} slot=header-actions-end></calcite-loader>` : null}<div class="container">${this._renderFeatureMenu()}</div><div class="feature-menu-observer" ${v(this._featureMenuIntersectionObserverCreated)}></div>${s === "feature" ? o`<calcite-button appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full>${n.back}</calcite-button>` : null}</calcite-flow-item>`;
376
376
  }
377
377
  _renderFlowItem(e, t) {
378
- const { messages: i, hideCloseButton: n, active: s } = this, a = "graphic" in e && "isFeatureFromTable" in e && !e.isFeatureFromTable, r = e.flowType === "feature-association", l = i.returnToInitialFeature ?? "", p = i?.selectFeature, f = this._getActionTitle(m);
379
- return o`<calcite-flow-item .closable=${!n} .closed=${!s} .description=${A(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${this.hideHeading ? void 0 : A(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${(g) => {
380
- g.preventDefault(), this._handleDrillInBackClick();
381
- }} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${l ?? ""} title=${l ?? "" ?? d}></calcite-action>${a ? o`<calcite-action icon=zoom-to-object @click=${() => this._openRelatedFeature(e)} slot=header-actions-end .text=${p ?? ""} title=${p ?? d}></calcite-action>` : null}${r ? o`<calcite-action-bar expand-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${m.disabled} .icon=${m.icon ?? void 0} .loading=${m.active} scale=s text-enabled .text=${f} title=${f ?? d} @click=${() => U(this.viewModel, e)}></calcite-action></calcite-action-group></calcite-action-bar>` : null}<div class="container">${e}</div></calcite-flow-item>`;
378
+ const { messages: i, hideCloseButton: n, active: s } = this, a = "graphic" in e && "isFeatureFromTable" in e && !e.isFeatureFromTable, l = e.flowType === "feature-association", r = i.returnToInitialFeature ?? "", p = i?.selectFeature, f = this._getActionTitle(m), g = l && a;
379
+ return o`<calcite-flow-item .closable=${!n} .closed=${!s} .description=${A(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${this.hideHeading ? void 0 : A(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${(w) => {
380
+ w.preventDefault(), this._handleDrillInBackClick();
381
+ }} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${r ?? ""} title=${r ?? "" ?? d}></calcite-action>${a ? o`<calcite-action icon=zoom-to-object @click=${() => this._openRelatedFeature(e)} slot=header-actions-end .text=${p ?? ""} title=${p ?? d}></calcite-action>` : null}${g ? o`<calcite-action-bar expand-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${m.disabled} .icon=${m.icon ?? void 0} .loading=${m.active} scale=s text-enabled .text=${f} title=${f ?? d} @click=${() => U(this.viewModel, e)}></calcite-action></calcite-action-group></calcite-action-bar>` : null}<div class="container">${e}</div></calcite-flow-item>`;
382
382
  }
383
383
  _renderContentContainer() {
384
384
  const e = this.flowItems?.toArray(), t = e?.map((n, s) => this._renderFlowItem(n, this.initialDisplayMode === "list" || !this.featureMenuOpen && s === e.length - 1)), i = this.initialDisplayMode === "list" ? [this._renderFeatureMenuContainer(), this._renderContentFeature(), t] : [this._renderContentFeature(), t, this._renderFeatureMenuContainer()];
385
385
  return o`<calcite-flow ${v(this._flowContainerNode)}>${i}</calcite-flow>`;
386
386
  }
387
387
  _renderActionBar() {
388
- return !this._isCollapsed && !this.hideActionBar && this.viewModel.allActions?.length ? o`<calcite-action-bar expand-disabled .expanded=${!this._hideActionText} scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s ${v(this._actionBarMenuNode)}>${this._renderActions()}</calcite-action-group></calcite-action-bar>` : null;
388
+ const t = this.viewModel.selectedFeatureViewModel?.isFeatureFromTable && !this.location ? this.viewModel.allActions.filter((i) => i.id !== m.id) : this.viewModel.allActions;
389
+ return !this._isCollapsed && !this.hideActionBar && t.length ? o`<calcite-action-bar expand-disabled .expanded=${!this._hideActionText} scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s ${v(this._actionBarMenuNode)}>${this._renderActions()}</calcite-action-group></calcite-action-bar>` : null;
389
390
  }
390
391
  _renderActions() {
391
392
  return this.viewModel.allActions.toArray().map((e) => {
@@ -395,10 +396,10 @@ class q extends P {
395
396
  }
396
397
  _renderContent() {
397
398
  const { content: e, selectedFeatureViewModel: t } = this.viewModel;
398
- return t ? F(t, o`<arcgis-feature .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${v(this._selectedFeatureComponent)}></arcgis-feature>`) : typeof e == "string" ? F(e, o`<div .innerHTML=${y.sanitize(e) ?? ""}></div>`) : e ?? null;
399
+ return t ? _(t, o`<arcgis-feature .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${v(this._selectedFeatureComponent)}></arcgis-feature>`) : typeof e == "string" ? _(e, o`<div .innerHTML=${y.sanitize(e) ?? ""}></div>`) : e ?? null;
399
400
  }
400
401
  }
401
- N("arcgis-features", q);
402
+ D("arcgis-features", q);
402
403
  export {
403
404
  q as ArcgisFeatures
404
405
  };
@@ -1130,7 +1130,9 @@ let n = class extends U {
1130
1130
  return;
1131
1131
  }
1132
1132
  if (this.showClipboardItems && this.view) {
1133
- this.clipboardGraphicsLayer || (this.clipboardGraphicsLayer = new we(), this.view.map?.layers.add(this.clipboardGraphicsLayer));
1133
+ this.clipboardGraphicsLayer || (this.clipboardGraphicsLayer = new we({
1134
+ listMode: "hide"
1135
+ }), this.view.map?.layers.add(this.clipboardGraphicsLayer));
1134
1136
  const e = this.clipboard.items;
1135
1137
  this.clipboardGraphicsLayer.removeAll();
1136
1138
  let t = -1;
@@ -1834,7 +1836,7 @@ class st extends he {
1834
1836
  this.viewModel.previousActiveFeature();
1835
1837
  }}></calcite-action><calcite-action slot=actions-end icon=chevron-right icon-flip-rtl scale=s .text=${this._messages.next ?? ""} .disabled=${!o || a || !i} @click=${() => {
1836
1838
  this.viewModel.nextActiveFeature();
1837
- }}></calcite-action></calcite-action-bar>${this._renderFloatingUIChoice(i)}` : ""}<div class=${me(this.viewModel.bauHasTooManyComplexFeatures || this.viewModel.bauHasTooManyFeatures ? "hidden" : void 0)}>${this._renderPasteFormBreadcrumb()}<arcgis-multi-feature-form edit-type=INSERT submit-has-been-attempted .referenceElement=${this.referenceElement} .hidden=${this.viewModel.bauHasTooManyComplexFeatures || this.viewModel.bauHasTooManyFeatures} .disabled=${this.viewModel.updating} .maximumFeatureCount=${this.maximumFeatureCount} .maximumFeatureCountWithComplexForms=${this.maximumFeatureCountWithComplexForms} .features=${this.viewModel.bauFeatures} .activeFeatureIndex=${this.viewModel.bauActiveFeatureIndex} @arcgisPropertyChange=${(p) => {
1839
+ }}></calcite-action></calcite-action-bar>${this._renderFloatingUIChoice(i)}` : ""}<div class=${me(this.viewModel.bauHasTooManyComplexFeatures || this.viewModel.bauHasTooManyFeatures ? "hidden" : void 0)}>${this._renderPasteFormBreadcrumb()}<arcgis-multi-feature-form edit-type=INSERT submit-has-been-attempted .view=${this.view} .referenceElement=${this.referenceElement} .hidden=${this.viewModel.bauHasTooManyComplexFeatures || this.viewModel.bauHasTooManyFeatures} .disabled=${this.viewModel.updating} .maximumFeatureCount=${this.maximumFeatureCount} .maximumFeatureCountWithComplexForms=${this.maximumFeatureCountWithComplexForms} .features=${this.viewModel.bauFeatures} .activeFeatureIndex=${this.viewModel.bauActiveFeatureIndex} @arcgisPropertyChange=${(p) => {
1838
1840
  this._updateBauViewModelFields(p.target);
1839
1841
  }} @arcgisValueChange=${(p) => {
1840
1842
  let u = 0;
@@ -51,6 +51,7 @@ import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.j
51
51
  * // Listen for clicks on the view and open the popup at the clicked location with custom content.
52
52
  * viewElement.addEventListener("arcgisViewClick", (event) => {
53
53
  * const { mapPoint } = event.detail;
54
+ * popupComponent.clear();
54
55
  * popupComponent.location = mapPoint;
55
56
  * popupComponent.heading = "You clicked here";
56
57
  * popupComponent.content = "Latitude: " + mapPoint.latitude.toFixed(3) + ", Longitude: " + mapPoint.longitude.toFixed(3);
@@ -467,15 +468,19 @@ export abstract class ArcgisPopup extends LitElement {
467
468
  /**
468
469
  * Indicates whether the component is visible. This property is `true` when the component is querying for results, even if it is not open. Use this property to check if the component is visible.
469
470
  *
471
+ * When setting the [content](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#content) and [heading](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#heading) directly, it is recommended to call [clear()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#clear) before setting `open` to `true` to remove any existing promises, features, heading, location, and content from the component. Otherwise, the old content will display.
472
+ *
470
473
  * @default false
471
474
  * @see [fetchFeatures()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#fetchFeatures)
472
475
  * @see [active](https://developers.arcgis.com/javascript/latest/references/core/widgets/Features/FeaturesViewModel/#active)
476
+ * @see [clear()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#clear)
473
477
  * @since 5.0
474
478
  * @example
475
479
  * ```js
476
480
  * // Listen for clicks on the view and open the component at the clicked location with custom content.
477
481
  * viewElement.addEventListener("arcgisViewClick", (event) => {
478
482
  * const { mapPoint } = event.detail;
483
+ * component.clear();
479
484
  * component.location = mapPoint;
480
485
  * component.heading = "You clicked here";
481
486
  * component.content = "Latitude: " + mapPoint.latitude.toFixed(3) + ", Longitude: " + mapPoint.longitude.toFixed(3);
@@ -10,11 +10,11 @@ import { LitElement as w, createEvent as _, nothing as f } from "@arcgis/lumina"
10
10
  import { log as s, composeMissingPropertyMessage as a } from "@arcgis/toolkit/log";
11
11
  import { css as G, html as u } from "lit";
12
12
  import { u as L } from "../../chunks/useT9n.js";
13
- import { i as v, a as h } from "../../chunks/layer-utils.js";
14
- const b = G`.loader-container{display:flex;justify-content:center;padding-bottom:var(--calcite-spacing-md)}`, o = 12;
13
+ import { i as v, a as o } from "../../chunks/layer-utils.js";
14
+ const b = G`.loader-container{display:flex;justify-content:center;padding-bottom:var(--calcite-spacing-md)}`, h = 12;
15
15
  class S extends w {
16
16
  constructor() {
17
- super(...arguments), this._graphicsLayerName = `arcgis-utility-network-aggregated-geometry-${Date.now()}`, this._messages = L({ blocking: !0 }), this._graphics = [], this._addAggregatedGeometryToView = () => {
17
+ super(...arguments), this._graphicsLayerName = "arcgis-utility-network-aggregated-geometry-graphics", this._messages = L({ blocking: !0 }), this._graphics = [], this._addAggregatedGeometryToView = () => {
18
18
  const e = this.geometry, { line: i, multipoint: r, polygon: c } = e;
19
19
  this._graphics = [i, r, c].filter((t) => t != null).map((t) => this._makeGraphicFromGeometry(t)), this._graphicsLayer.addMany(this._graphics);
20
20
  }, this._createGraphicsLayer = () => {
@@ -27,7 +27,7 @@ class S extends w {
27
27
  id: i,
28
28
  listMode: "hide",
29
29
  title: i
30
- }), h(this.view, this._graphicsLayer);
30
+ }), o(this.view, this._graphicsLayer);
31
31
  }, this.hideGraphics = !1, this.graphicsColor = new p([255, 255, 0, 0.6]), this.autoDestroyDisabled = !1, this.arcgisHideGraphicsChange = _();
32
32
  }
33
33
  static {
@@ -40,7 +40,7 @@ class S extends w {
40
40
  this.view?.map && this._graphicsLayer && this.view.map.remove(this._graphicsLayer), await this.manager.destroy();
41
41
  }
42
42
  connectedCallback() {
43
- super.connectedCallback(), this.view && this._graphicsLayer && h(this.view, this._graphicsLayer);
43
+ super.connectedCallback(), this.view && this._graphicsLayer && o(this.view, this._graphicsLayer);
44
44
  }
45
45
  load() {
46
46
  !this.geometry || !this.view?.map || this._createGraphicsLayer();
@@ -69,7 +69,7 @@ class S extends w {
69
69
  case "multipoint":
70
70
  return new d({
71
71
  color: i,
72
- size: o,
72
+ size: h,
73
73
  outline: {
74
74
  color: i,
75
75
  width: 0
@@ -80,13 +80,13 @@ class S extends w {
80
80
  color: i,
81
81
  outline: {
82
82
  color: i,
83
- width: o
83
+ width: h
84
84
  }
85
85
  });
86
86
  case "polyline":
87
87
  return new n({
88
88
  color: i,
89
- width: o
89
+ width: h
90
90
  });
91
91
  }
92
92
  }
@@ -14,12 +14,12 @@ import y from "@arcgis/core/views/interactive/snapping/FeatureSnappingLayerSourc
14
14
  import $ from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
15
15
  import { LitElement as v, createEvent as d } from "@arcgis/lumina";
16
16
  import { usePropertyChange as E } from "@arcgis/lumina/controllers";
17
- import { log as u, composeMissingPropertyMessage as F, composeEmptyPropertyMessage as P } from "@arcgis/toolkit/log";
18
- import { css as I, html as s } from "lit";
17
+ import { log as u, composeMissingPropertyMessage as F, composeEmptyPropertyMessage as I } from "@arcgis/toolkit/log";
18
+ import { css as P, html as s } from "lit";
19
19
  import { u as U } from "../../chunks/useT9n.js";
20
20
  import { h as w } from "../../chunks/feature-utils.js";
21
21
  import { a as A, i as b } from "../../chunks/layer-utils.js";
22
- const D = I`:host{height:100%;flex-grow:1}calcite-flow{min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-block-group{flex-grow:1;padding-bottom:var(--calcite-spacing-md);background-color:var(--calcite-color-foreground-1)}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block calcite-select,calcite-block calcite-input{margin:0 var(--calcite-spacing-md)}calcite-block calcite-input-message{padding:var(--calcite-spacing-sm) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}calcite-block calcite-label:last-child{--calcite-label-margin-bottom: 0}calcite-notice{margin:var(--calcite-spacing-md)}#subnetwork-info-block{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}#results-limited-message{padding:var(--calcite-spacing-sm)}.inline-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.add-spatial-mode{display:flex;flex-direction:column;gap:var(--calcite-spacing-md);margin:var(--calcite-spacing-md)}.heading{color:var(--calcite-color-text-1);margin:0 0 var(--calcite-spacing-md) 0;font-size:var(--calcite-font-size);font-style:normal;font-weight:var(--calcite-font-weight-medium)}`, p = `utility-network-trace-inputs-sketch-${Date.now()}`, n = `utility-network-trace-inputs-flags-${Date.now()}`, M = 20;
22
+ const D = P`:host{height:100%;flex-grow:1}calcite-flow{min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-block-group{flex-grow:1;padding-bottom:var(--calcite-spacing-md);background-color:var(--calcite-color-foreground-1)}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block calcite-select,calcite-block calcite-input{margin:0 var(--calcite-spacing-md)}calcite-block calcite-input-message{padding:var(--calcite-spacing-sm) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}calcite-block calcite-label:last-child{--calcite-label-margin-bottom: 0}calcite-notice{margin:var(--calcite-spacing-md)}#subnetwork-info-block{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}#results-limited-message{padding:var(--calcite-spacing-sm)}.inline-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.add-spatial-mode{display:flex;flex-direction:column;gap:var(--calcite-spacing-md);margin:var(--calcite-spacing-md)}.heading{color:var(--calcite-color-text-1);margin:0 0 var(--calcite-spacing-md) 0;font-size:var(--calcite-font-size);font-style:normal;font-weight:var(--calcite-font-weight-medium)}`, p = `utility-network-trace-inputs-sketch-${Date.now()}`, n = `utility-network-trace-inputs-flags-${Date.now()}`, M = 20;
23
23
  class B extends v {
24
24
  constructor() {
25
25
  super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages = U({ blocking: !0 }), this._layerIdToLayer = /* @__PURE__ */ new Map(), this._startingPoints = new l(), this._barriers = new l(), this._stoppingPoints = new l(), this._subnetworkTraceTypes = /* @__PURE__ */ new Set([
@@ -68,6 +68,10 @@ class B extends v {
68
68
  const e = this.selectedNamedTraceConfiguration?.traceType;
69
69
  return e === "path" || e === "circuit";
70
70
  }
71
+ get _subnetworkLayerIds() {
72
+ const e = this.selectedUtilityNetwork?.dataElement?.domainNetworks;
73
+ return e ? e.map((t) => t.subnetworkLayerId).filter((t) => t != null && t > -1) : [];
74
+ }
71
75
  get unTraceConfiguration() {
72
76
  return this._unTraceConfiguration;
73
77
  }
@@ -212,12 +216,12 @@ class B extends v {
212
216
  }
213
217
  _filterUnLayers() {
214
218
  const { selectedUtilityNetwork: e } = this;
215
- this._unLayers = new l(this._allLayers.filter((t) => e?.isUtilityLayer(t))), this._setSnappingOption();
219
+ this._unLayers = new l(this._allLayers.filter((t) => e?.isUtilityLayer(t) && !this._subnetworkLayerIds.includes(t.layerId))), this._setSnappingOption();
216
220
  }
217
221
  _handleUtilityNetworksChange() {
218
222
  const { utilityNetworks: e } = this;
219
223
  if (!e || e.length === 0) {
220
- this._state = "error", u("error", this, P("utilityNetworks"));
224
+ this._state = "error", u("error", this, I("utilityNetworks"));
221
225
  return;
222
226
  }
223
227
  (!this.selectedUtilityNetwork || !e.includes(this.selectedUtilityNetwork)) && (this.selectedUtilityNetwork = e.at(0));
@@ -170,7 +170,7 @@ class E extends F {
170
170
  return r`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}${s != null ? this._renderAggregatedGeometry(s) : null}${s != null && !t.length ? this._renderNoSelectableResults() : null}${t.length > 0 ? this.hideFeatureResults ? this._renderFeaturesAreHidden() : this._renderElementsResults() : null}${a.length > 0 ? this._renderFunctionsResults(a) : null}</calcite-panel>`;
171
171
  }
172
172
  _renderAggregatedGeometry(e) {
173
- return r`<div class="aggregated-geometry-container"><arcgis-utility-network-aggregated-geometry .graphicsColor=${this.aggregatedGeometryGraphicsColor} .geometry=${e} .view=${this.view} @arcgisHideGraphicsChange=${this._handleHideGraphicsChange} .autoDestroyDisabled=${this.autoDestroyDisabled} ${g(this._aggregateGeometryRefChange)}></arcgis-utility-network-aggregated-geometry><calcite-swatch id=geometry-color-swatch .label=${this._messages.labels.aggregatedGeometryGraphicsColor} .color=${this.aggregatedGeometryGraphicsColor.toCss()} .disabled=${this._aggregatedGeometryDisabled}></calcite-swatch><calcite-popover .heading=${this._messages.headings.setColor} .label=${this._messages.headings.setColor} reference-element=geometry-color-swatch closable ${g(this._popoverRef)}><calcite-color-picker alpha-channel channels-disabled clearable hex-disabled saved-disabled .value=${this.aggregatedGeometryGraphicsColor} @calciteColorPickerChange=${(t) => {
173
+ return r`<div class="aggregated-geometry-container"><arcgis-utility-network-aggregated-geometry .graphicsColor=${this.aggregatedGeometryGraphicsColor} .geometry=${e} .view=${this.view} @arcgisHideGraphicsChange=${this._handleHideGraphicsChange} auto-destroy-disabled ${g(this._aggregateGeometryRefChange)}></arcgis-utility-network-aggregated-geometry><calcite-swatch id=geometry-color-swatch .label=${this._messages.labels.aggregatedGeometryGraphicsColor} .color=${this.aggregatedGeometryGraphicsColor.toCss()} .disabled=${this._aggregatedGeometryDisabled}></calcite-swatch><calcite-popover .heading=${this._messages.headings.setColor} .label=${this._messages.headings.setColor} reference-element=geometry-color-swatch closable ${g(this._popoverRef)}><calcite-color-picker alpha-channel channels-disabled clearable hex-disabled saved-disabled .value=${this.aggregatedGeometryGraphicsColor} @calciteColorPickerChange=${(t) => {
174
174
  const a = t.target.value;
175
175
  this.arcgisAggregatedGeometryGraphicsColorChange.emit(a);
176
176
  }} .disabled=${this._aggregatedGeometryDisabled}></calcite-color-picker></calcite-popover></div>`;