@arcgis/map-components 5.0.4 → 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 (203) hide show
  1. package/dist/cdn/{OM2MFZOA.js → 26VRRGUW.js} +1 -1
  2. package/dist/cdn/{BLQKE3N3.js → 2FVZ2L32.js} +1 -1
  3. package/dist/cdn/{MDZRORPW.js → 2GGAEJNI.js} +1 -1
  4. package/dist/cdn/{2GEZJYEY.js → 2QWCB7GX.js} +1 -1
  5. package/dist/cdn/{RJHB62FD.js → 2QWJ2ZHP.js} +1 -1
  6. package/dist/cdn/{ZNRV2QZC.js → 2RA54D2B.js} +1 -1
  7. package/dist/cdn/{4RNSRF2H.js → 2YBKWLT6.js} +1 -1
  8. package/dist/cdn/{FOFMI4QC.js → 3DLW2M43.js} +1 -1
  9. package/dist/cdn/{WKNNGQFL.js → 3HHVT72L.js} +1 -1
  10. package/dist/cdn/{WP7EAY2O.js → 3NHT23VJ.js} +1 -1
  11. package/dist/cdn/{MVFXBA57.js → 44VMR4JB.js} +1 -1
  12. package/dist/cdn/{RVVYBNFH.js → 455CNC2X.js} +1 -1
  13. package/dist/cdn/{PH2MV6XW.js → 4MMWFGGQ.js} +1 -1
  14. package/dist/cdn/{DSIOFEEF.js → 4Q2CQXZM.js} +1 -1
  15. package/dist/cdn/{L7NO7ARW.js → 56VJEIND.js} +1 -1
  16. package/dist/cdn/5BACVRLF.js +2 -0
  17. package/dist/cdn/{VN7BQGWR.js → 5L7UUJ66.js} +1 -1
  18. package/dist/cdn/{ZEEQYVI6.js → 5MPJ5TRF.js} +1 -1
  19. package/dist/cdn/{BAIQQ6I2.js → 5NBBZ5WV.js} +1 -1
  20. package/dist/cdn/{6DFD24XU.js → 5QH4JWF5.js} +1 -1
  21. package/dist/cdn/{52AY7OFR.js → 5U7NIXQ6.js} +1 -1
  22. package/dist/cdn/{A75TT6NV.js → 62OC5IBG.js} +1 -1
  23. package/dist/cdn/{7IDKS7AB.js → 6E6ZUR66.js} +1 -1
  24. package/dist/cdn/{P5OH32ZN.js → 6K2ESAWF.js} +1 -1
  25. package/dist/cdn/{AUGQM3GY.js → 6V3ZKOES.js} +1 -1
  26. package/dist/cdn/{QUFNHDMZ.js → 6ZX2WPNN.js} +1 -1
  27. package/dist/cdn/{ZZS53AJP.js → 75JRU7XJ.js} +1 -1
  28. package/dist/cdn/{B6YUP74S.js → 7AGRHMNT.js} +1 -1
  29. package/dist/cdn/{YZPONRIH.js → 7DSZFPFQ.js} +1 -1
  30. package/dist/cdn/{HRJXHP66.js → 7WR4XB3L.js} +1 -1
  31. package/dist/cdn/{SAIO5SOZ.js → 7XKRUO3L.js} +1 -1
  32. package/dist/cdn/{IMADJ4FO.js → A2A6CN44.js} +1 -1
  33. package/dist/cdn/{E4PPZWO4.js → ACKNTQRK.js} +1 -1
  34. package/dist/cdn/{B72ZHPCB.js → AOEKBWNA.js} +1 -1
  35. package/dist/cdn/{YSSRWXV6.js → APAPCPXT.js} +1 -1
  36. package/dist/cdn/{KQEAR53K.js → AR44QMUK.js} +1 -1
  37. package/dist/cdn/{L4OG3KGM.js → AZFKJZ3C.js} +1 -1
  38. package/dist/cdn/{Z2I35E6A.js → BAKCV4BT.js} +1 -1
  39. package/dist/cdn/{HVUGKYOC.js → C6BRR6HO.js} +1 -1
  40. package/dist/cdn/{KJQNCNO7.js → C6ESN7QO.js} +1 -1
  41. package/dist/cdn/{BIOGEVQX.js → CC4PR3SI.js} +1 -1
  42. package/dist/cdn/{NRREJOWE.js → CIE5JE3M.js} +1 -1
  43. package/dist/cdn/{ZUIPL5CM.js → CUOULJK4.js} +1 -1
  44. package/dist/cdn/{SS7IV2I3.js → CVO6GRJE.js} +1 -1
  45. package/dist/cdn/{3DZWNQEQ.js → DGRJQ3VH.js} +1 -1
  46. package/dist/cdn/{HZISBWRD.js → DLBLKQYS.js} +1 -1
  47. package/dist/cdn/{FUG4YCV5.js → DORZKGB4.js} +1 -1
  48. package/dist/cdn/{DEMK3AML.js → DXTTUW4R.js} +1 -1
  49. package/dist/cdn/{E2CG5PBR.js → E2PRW7I3.js} +1 -1
  50. package/dist/cdn/{USVHDTDX.js → E3ZQD7XL.js} +1 -1
  51. package/dist/cdn/{USTERAJF.js → E7N2OSLX.js} +1 -1
  52. package/dist/cdn/{LOMTTKHZ.js → ECCKHLGV.js} +1 -1
  53. package/dist/cdn/{FPSKRU5N.js → EDIR5P2A.js} +1 -1
  54. package/dist/cdn/{JA5TYOBP.js → EHBJMP6X.js} +1 -1
  55. package/dist/cdn/{T2JV22AA.js → EHG6SCFZ.js} +1 -1
  56. package/dist/cdn/{ZBANCEVR.js → EIKPSSW2.js} +1 -1
  57. package/dist/cdn/{UQ5HH3ZG.js → EOGSQKVI.js} +1 -1
  58. package/dist/cdn/{NGYKFR4O.js → EONM4HYL.js} +1 -1
  59. package/dist/cdn/{IC7HAHW5.js → EX4MJAID.js} +1 -1
  60. package/dist/cdn/{GTQ7TSLC.js → FDIL4ELG.js} +1 -1
  61. package/dist/cdn/{UURVB43D.js → FRUEPZ4B.js} +1 -1
  62. package/dist/cdn/{6BAPTCMG.js → G3DKNGC5.js} +1 -1
  63. package/dist/cdn/{KYI67P5R.js → GL4AGX76.js} +1 -1
  64. package/dist/cdn/{NY3J3UBT.js → GNNPY6WD.js} +1 -1
  65. package/dist/cdn/{DGIF2JTF.js → GONPBVCY.js} +1 -1
  66. package/dist/cdn/{3IKE2FBJ.js → GZ72DRZ2.js} +1 -1
  67. package/dist/cdn/{3TQH375Q.js → H3WU3CWO.js} +1 -1
  68. package/dist/cdn/{PASTG2MG.js → HDL5ODBI.js} +1 -1
  69. package/dist/cdn/{5KXGCH4F.js → HDQ4SRNQ.js} +1 -1
  70. package/dist/cdn/{XOBBHEMO.js → HPVG2G33.js} +1 -1
  71. package/dist/cdn/{DAQ4T5RB.js → HRQLL3UQ.js} +1 -1
  72. package/dist/cdn/{PKQ4UN4I.js → HTAV4X3L.js} +1 -1
  73. package/dist/cdn/{EGHYB7AR.js → HWGBPD5G.js} +1 -1
  74. package/dist/cdn/{C3LQIW2S.js → HZXKATGS.js} +1 -1
  75. package/dist/cdn/I5YYZ23M.js +2 -0
  76. package/dist/cdn/{STE2LXKT.js → IBODWA4K.js} +1 -1
  77. package/dist/cdn/{BO6JDRZP.js → IFFOJCJM.js} +1 -1
  78. package/dist/cdn/{6UF6FCCZ.js → IJI3KL3X.js} +1 -1
  79. package/dist/cdn/{QAAG2N2Q.js → IRGOEAMU.js} +1 -1
  80. package/dist/cdn/{6LSVZ3RT.js → IVVA3NWA.js} +1 -1
  81. package/dist/cdn/{RPHE7VK6.js → IZ7RGQYP.js} +1 -1
  82. package/dist/cdn/{S4ZSYXEQ.js → J7IUPILV.js} +1 -1
  83. package/dist/cdn/{JWLIS3S3.js → JDO4ZDWR.js} +1 -1
  84. package/dist/cdn/{CCIANMLH.js → JG526BSF.js} +1 -1
  85. package/dist/cdn/{E7NMPXWI.js → JLKRZGKU.js} +1 -1
  86. package/dist/cdn/{FGEMJ2J4.js → JQFJA2R3.js} +1 -1
  87. package/dist/cdn/{PTVW2VZC.js → JX64UKPQ.js} +1 -1
  88. package/dist/cdn/{BI2VCYVF.js → KALOND7U.js} +1 -1
  89. package/dist/cdn/{CPGHFA5D.js → KMP45A7X.js} +1 -1
  90. package/dist/cdn/{TQ3FWHPR.js → KONASQUW.js} +1 -1
  91. package/dist/cdn/{YMQJBJPG.js → KTZZ6FEB.js} +1 -1
  92. package/dist/cdn/{7MDSSSQE.js → L3R6FYFA.js} +1 -1
  93. package/dist/cdn/{FIP32MVA.js → L7I3A5GU.js} +1 -1
  94. package/dist/cdn/{CICBSICJ.js → LIH3KD2N.js} +1 -1
  95. package/dist/cdn/{7HOMF76F.js → LNCUA6VO.js} +1 -1
  96. package/dist/cdn/{NXPI772D.js → LQJ2NJ7Q.js} +1 -1
  97. package/dist/cdn/{ENVCK6TA.js → LWLYKJEM.js} +1 -1
  98. package/dist/cdn/{XB5I7WZC.js → M5FJVBHY.js} +1 -1
  99. package/dist/cdn/{EFD2TMKF.js → MAT7KTFT.js} +1 -1
  100. package/dist/cdn/{SV5Y7ZQW.js → MCFGHI5T.js} +1 -1
  101. package/dist/cdn/{XMWVCOQX.js → MDNMH2GD.js} +1 -1
  102. package/dist/cdn/{J5RSAAH7.js → MMQXKWWI.js} +1 -1
  103. package/dist/cdn/{N2AZQT3C.js → MP5XTNII.js} +1 -1
  104. package/dist/cdn/{EQDSURSV.js → MS2FXMWM.js} +1 -1
  105. package/dist/cdn/{WT5D65VM.js → MT3AIRKP.js} +1 -1
  106. package/dist/cdn/{2YK7T5OX.js → MWC7VXMT.js} +1 -1
  107. package/dist/cdn/{OWV4SK3H.js → MYY77Q2M.js} +1 -1
  108. package/dist/cdn/{GDVKJ4YT.js → N2JCJYCR.js} +1 -1
  109. package/dist/cdn/{XUWLNHWG.js → N3VTGUSB.js} +1 -1
  110. package/dist/cdn/{2MRKHCHF.js → N6XL766F.js} +1 -1
  111. package/dist/cdn/{DFCQDTET.js → NHXJDS4A.js} +1 -1
  112. package/dist/cdn/{J2ZGRFOG.js → NIGGISCR.js} +1 -1
  113. package/dist/cdn/{SEGJ63Q7.js → NZKU7MTU.js} +1 -1
  114. package/dist/cdn/{KY3I52ZK.js → OKKARBPJ.js} +1 -1
  115. package/dist/cdn/{6LTCFPFB.js → OVAULEST.js} +1 -1
  116. package/dist/cdn/{BPFWFKTM.js → OWEQ6PYO.js} +1 -1
  117. package/dist/cdn/{6TBT4WDZ.js → P56Q3MNI.js} +1 -1
  118. package/dist/cdn/{JOR3Y25C.js → P5Z3VSAL.js} +1 -1
  119. package/dist/cdn/PHKNWWES.js +2 -0
  120. package/dist/cdn/{VKU24JUO.js → PHNAP4HO.js} +1 -1
  121. package/dist/cdn/{BF6IXW4R.js → PHNPROZ2.js} +1 -1
  122. package/dist/cdn/{BCZ6NEXH.js → PHNSXBYN.js} +1 -1
  123. package/dist/cdn/PNM6EWGT.js +2 -0
  124. package/dist/cdn/{TR7UEHV2.js → Q63FZKZF.js} +1 -1
  125. package/dist/cdn/{UKYI7S2H.js → QGFESPLP.js} +1 -1
  126. package/dist/cdn/{4VQJEWXC.js → QK6IDWCZ.js} +1 -1
  127. package/dist/cdn/{BM35PON3.js → QS2DT6TO.js} +1 -1
  128. package/dist/cdn/{FETZZ6VL.js → QVGEZ3ZM.js} +1 -1
  129. package/dist/cdn/{EUQTOIOE.js → QXCHMTUI.js} +1 -1
  130. package/dist/cdn/{TKBJDQW4.js → QYCOPDMB.js} +1 -1
  131. package/dist/cdn/{5C55FQ46.js → R45Q5BKQ.js} +1 -1
  132. package/dist/cdn/{ZCAYLNVM.js → R7GTTNWF.js} +1 -1
  133. package/dist/cdn/{EWEE7VP2.js → R7HXZAPP.js} +1 -1
  134. package/dist/cdn/{2BKAVQAY.js → ROC7HOOF.js} +1 -1
  135. package/dist/cdn/{WHCOFQTC.js → RV5T6FOK.js} +1 -1
  136. package/dist/cdn/{CWOU2IBG.js → RZDIAMRJ.js} +1 -1
  137. package/dist/cdn/{EK5CMMHP.js → S3YS5TWW.js} +1 -1
  138. package/dist/cdn/{4QG2NSWT.js → S4SNMYII.js} +1 -1
  139. package/dist/cdn/{ZGDWZVDK.js → S5XPO4X3.js} +1 -1
  140. package/dist/cdn/{BX2CIIF7.js → SBQPFK7O.js} +1 -1
  141. package/dist/cdn/{E5ZCKDOJ.js → SIR6LQYG.js} +1 -1
  142. package/dist/cdn/{QSPM5MFH.js → SIXUBCBZ.js} +1 -1
  143. package/dist/cdn/{QWVG2MXJ.js → SMBZ4HCK.js} +1 -1
  144. package/dist/cdn/{BQ6N77HA.js → SPNOOYWE.js} +1 -1
  145. package/dist/cdn/SUH6Q6VA.js +2 -0
  146. package/dist/cdn/{5LXGOVWV.js → SUWU7QIA.js} +1 -1
  147. package/dist/cdn/{MSH5D74Y.js → SVVZAW3N.js} +1 -1
  148. package/dist/cdn/{GZ4TVB4W.js → TBFNXPO7.js} +1 -1
  149. package/dist/cdn/{IMAUR5MO.js → TDNW2OHP.js} +1 -1
  150. package/dist/cdn/{PQVFIKMJ.js → TGDMJJCN.js} +1 -1
  151. package/dist/cdn/{K6RRP777.js → TGZLVR52.js} +1 -1
  152. package/dist/cdn/{XZUXWXLV.js → TQGIV3K4.js} +1 -1
  153. package/dist/cdn/{3QXNF6C6.js → TRJHM2AU.js} +1 -1
  154. package/dist/cdn/{6DCVVLOL.js → TRO5YRIR.js} +1 -1
  155. package/dist/cdn/{2US7EOUM.js → TZOMLSCD.js} +1 -1
  156. package/dist/cdn/{GSMVKTBU.js → UC4B5RZR.js} +1 -1
  157. package/dist/cdn/{BM4JENKF.js → UPL42Z7Y.js} +1 -1
  158. package/dist/cdn/{VHO7UYLJ.js → USA5BTOC.js} +1 -1
  159. package/dist/cdn/{VCHYJWLK.js → VAX7LMWJ.js} +1 -1
  160. package/dist/cdn/{UDH43GNW.js → VIFT4BU2.js} +1 -1
  161. package/dist/cdn/{5PB44G3F.js → VJ2SE6UE.js} +1 -1
  162. package/dist/cdn/{VUMGUJ7W.js → VORF5SSY.js} +1 -1
  163. package/dist/cdn/{G6VLH2Q7.js → VRMHUMSJ.js} +1 -1
  164. package/dist/cdn/{4NKOTU5Q.js → W4OZI46N.js} +1 -1
  165. package/dist/cdn/{Z4HQLS4Q.js → WDGESHIM.js} +1 -1
  166. package/dist/cdn/{BPCT63NK.js → WNTJFIQQ.js} +1 -1
  167. package/dist/cdn/{GIBVDRC4.js → WNWFJZWJ.js} +1 -1
  168. package/dist/cdn/{WG46REHR.js → WU5EH6LB.js} +1 -1
  169. package/dist/cdn/{6BWASTQE.js → XDJQQXLH.js} +1 -1
  170. package/dist/cdn/{XY3FM6WU.js → XEDYZ2AY.js} +1 -1
  171. package/dist/cdn/{5CP7H23C.js → XJZCNL65.js} +1 -1
  172. package/dist/cdn/{PXD6JK6S.js → XQKXDDAR.js} +1 -1
  173. package/dist/cdn/{RWMLVPPT.js → Y66GCVMG.js} +1 -1
  174. package/dist/cdn/{GR2V2AE6.js → YCKXA6G3.js} +1 -1
  175. package/dist/cdn/{FI3TRUBY.js → YOJN3RDZ.js} +1 -1
  176. package/dist/cdn/{VLAE3Y22.js → YQXDHXA6.js} +1 -1
  177. package/dist/cdn/{A2RXPC5M.js → ZAWXEB6X.js} +1 -1
  178. package/dist/cdn/{JLTOWRIL.js → ZIFQ2O7M.js} +1 -1
  179. package/dist/cdn/{GWPULTZR.js → ZIP7A4OP.js} +1 -1
  180. package/dist/cdn/{WHZXJYXO.js → ZK47NIZB.js} +1 -1
  181. package/dist/cdn/{7LMKOCRF.js → ZTBIXNFX.js} +1 -1
  182. package/dist/cdn/ZUPERN26.js +2 -0
  183. package/dist/cdn/{HWI7KYKB.js → ZWFZY2MA.js} +1 -1
  184. package/dist/cdn/{IKX5P7YB.js → ZY3BVDLT.js} +1 -1
  185. package/dist/cdn/index.js +1 -1
  186. package/dist/chunks/runtime.js +1 -1
  187. package/dist/components/arcgis-features/customElement.d.ts +4 -0
  188. package/dist/components/arcgis-features/customElement.js +38 -37
  189. package/dist/components/arcgis-popup/customElement.d.ts +5 -0
  190. package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.js +8 -8
  191. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +9 -5
  192. package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
  193. package/dist/docs/api.json +1 -1
  194. package/dist/docs/docs.json +1 -1
  195. package/dist/docs/vscode.html-custom-data.json +1 -1
  196. package/dist/docs/web-types.json +1 -1
  197. package/package.json +4 -4
  198. package/dist/cdn/2LLQYLNG.js +0 -2
  199. package/dist/cdn/2U7F3SHI.js +0 -2
  200. package/dist/cdn/6C6AEGYC.js +0 -2
  201. package/dist/cdn/IEMLZ6ZR.js +0 -2
  202. package/dist/cdn/THPL2OQX.js +0 -2
  203. package/dist/cdn/U7HYFQBB.js +0 -2
@@ -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.4/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
  };
@@ -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>`;