@arcgis/map-components 5.1.0-next.10 → 5.1.0-next.12

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 (258) hide show
  1. package/dist/cdn/2AYGSNEO.js +2 -0
  2. package/dist/cdn/{YSDQ5VNK.js → 2EJ4XRH4.js} +1 -1
  3. package/dist/cdn/{FOMIDTAN.js → 2NOL7QIE.js} +1 -1
  4. package/dist/cdn/{24PK3ZLX.js → 37TNG76C.js} +1 -1
  5. package/dist/cdn/{GLNRLEZE.js → 3DO7PVNW.js} +1 -1
  6. package/dist/cdn/{EPQN4FJS.js → 3XMPN66U.js} +1 -1
  7. package/dist/cdn/{KBY7C6QM.js → 3YA25S2J.js} +1 -1
  8. package/dist/cdn/{5FZLG5YS.js → 42UR6TXZ.js} +1 -1
  9. package/dist/cdn/4EAZ4PIQ.js +2 -0
  10. package/dist/cdn/{3FSARSVN.js → 4JCY4NHX.js} +1 -1
  11. package/dist/cdn/{JTEJ2NHE.js → 556MC5SF.js} +1 -1
  12. package/dist/cdn/{7L5TRJUA.js → 5ITF7Q7U.js} +1 -1
  13. package/dist/cdn/5LBJB4MP.js +2 -0
  14. package/dist/cdn/{CUWONRT5.js → 5RGFRTJS.js} +1 -1
  15. package/dist/cdn/{EYW7YQF6.js → 63N5ERFL.js} +1 -1
  16. package/dist/cdn/{UZ7KLWGC.js → 63P5VYGP.js} +1 -1
  17. package/dist/cdn/{FTBTVD7U.js → 64OEHFBZ.js} +1 -1
  18. package/dist/cdn/{2PAAPTW5.js → 6CGPJGIB.js} +1 -1
  19. package/dist/cdn/{AN2ZNLDK.js → 6F6VOBIA.js} +1 -1
  20. package/dist/cdn/{BEXRPBHT.js → 6RKD6GFP.js} +1 -1
  21. package/dist/cdn/{I6ZXIPND.js → 7JQZBAFA.js} +1 -1
  22. package/dist/cdn/{PESPV6VP.js → 7YLXQNEC.js} +1 -1
  23. package/dist/cdn/A2JO7DWO.js +2 -0
  24. package/dist/cdn/{D7DDJ2QZ.js → A44ZCOCX.js} +2 -2
  25. package/dist/cdn/A4UJ53JS.js +2 -0
  26. package/dist/cdn/{S52VES4H.js → A7JPWYKR.js} +1 -1
  27. package/dist/cdn/{GS43BIES.js → AEYZDEAH.js} +1 -1
  28. package/dist/cdn/{CMWIMRU2.js → AJHRJ5EA.js} +1 -1
  29. package/dist/cdn/{INS77MCT.js → AP2IFWYH.js} +1 -1
  30. package/dist/cdn/{OAFAR3NG.js → BUOIT34V.js} +1 -1
  31. package/dist/cdn/{BNJXI23I.js → C24SOTLL.js} +1 -1
  32. package/dist/cdn/{LSF66JVY.js → C4DJABUI.js} +1 -1
  33. package/dist/cdn/{SPACZLHW.js → C7YN3AZA.js} +1 -1
  34. package/dist/cdn/{CXOYV56L.js → CC53K2CR.js} +1 -1
  35. package/dist/cdn/{6ZNO34O5.js → CCKYOWZO.js} +1 -1
  36. package/dist/cdn/{7DTWNSIR.js → CTSWZC3O.js} +1 -1
  37. package/dist/cdn/{BX7N3KYH.js → CVBNRF34.js} +1 -1
  38. package/dist/cdn/CWJ5OA5A.js +2 -0
  39. package/dist/cdn/D27YXH3W.js +2 -0
  40. package/dist/cdn/D73JFV2R.js +2 -0
  41. package/dist/cdn/{Y6KRMZWJ.js → DINM6JDS.js} +1 -1
  42. package/dist/cdn/{CEJGZMGB.js → DTVW3MYT.js} +1 -1
  43. package/dist/cdn/{TTR6UUEQ.js → EENOVGOS.js} +1 -1
  44. package/dist/cdn/EGN3YTD6.js +2 -0
  45. package/dist/cdn/{YZZJQMH4.js → EM7YCHTU.js} +1 -1
  46. package/dist/cdn/{P4PTEXIJ.js → EQCNO3G4.js} +1 -1
  47. package/dist/cdn/{7ZCMIKP6.js → EX22SAPL.js} +1 -1
  48. package/dist/cdn/{SSZMOOL6.js → F4HWT5H3.js} +1 -1
  49. package/dist/cdn/{ERTOHEVB.js → FB6YQKF2.js} +1 -1
  50. package/dist/cdn/{ACWGHEWO.js → FYTMMPPG.js} +1 -1
  51. package/dist/cdn/{POEZXWTT.js → GNGZFV2C.js} +1 -1
  52. package/dist/cdn/{LCUXPDUW.js → GY5226CJ.js} +1 -1
  53. package/dist/cdn/{QX27DK37.js → HB3W3CO5.js} +1 -1
  54. package/dist/cdn/{3A7HYDQP.js → HE6QV4XG.js} +1 -1
  55. package/dist/cdn/{J7ZNOOZ4.js → HEAH7MYD.js} +1 -1
  56. package/dist/cdn/{4URF7CKU.js → HH6BDERO.js} +1 -1
  57. package/dist/cdn/{QLPUP6A3.js → HHJN3Q6G.js} +1 -1
  58. package/dist/cdn/{FQJMTGXO.js → HO4JUZ6N.js} +1 -1
  59. package/dist/cdn/{JLIZWDU5.js → I5QTPPFJ.js} +1 -1
  60. package/dist/cdn/{VGTTCLO3.js → IDDSHZVB.js} +1 -1
  61. package/dist/cdn/{7CBBWB77.js → J55YUTPM.js} +1 -1
  62. package/dist/cdn/JRPIJ24K.js +2 -0
  63. package/dist/cdn/{6XJFSJGE.js → K27JJT2P.js} +1 -1
  64. package/dist/cdn/{LVSNYSCO.js → KAXJKSFB.js} +1 -1
  65. package/dist/cdn/{RXFUZXUX.js → KHM3S4Q6.js} +1 -1
  66. package/dist/cdn/{PFYZ7JRB.js → KNAUIRT6.js} +1 -1
  67. package/dist/cdn/{IY2G6DLG.js → KY2UAUNI.js} +1 -1
  68. package/dist/cdn/{JMHCIJG4.js → LG4PZVHS.js} +1 -1
  69. package/dist/cdn/{XWAT4IT2.js → LHEP4QSS.js} +1 -1
  70. package/dist/cdn/LIEE5WCD.js +2 -0
  71. package/dist/cdn/{KQNQ6ITI.js → LZQCXN6A.js} +1 -1
  72. package/dist/cdn/{JCV26SSG.js → M4L5EDRB.js} +1 -1
  73. package/dist/cdn/{2K45WUVH.js → M65HMJZA.js} +1 -1
  74. package/dist/cdn/{U5HXLA7K.js → MAGJWMWM.js} +1 -1
  75. package/dist/cdn/{XTFD35UI.js → MDCB7SO4.js} +1 -1
  76. package/dist/cdn/{KLBNUE5Q.js → N3BD4UQD.js} +1 -1
  77. package/dist/cdn/{7357JBTM.js → NGKNECON.js} +1 -1
  78. package/dist/cdn/NHMOFXEE.js +2 -0
  79. package/dist/cdn/{YR3SQWM6.js → NRBM3YR6.js} +1 -1
  80. package/dist/cdn/{77ERVO5S.js → NRV7VFJ7.js} +1 -1
  81. package/dist/cdn/{YBJEMNAU.js → NSGDR7V5.js} +1 -1
  82. package/dist/cdn/{CQ2L75M3.js → NZAO2BVV.js} +1 -1
  83. package/dist/cdn/{OJNMPOYD.js → OCEXQCFT.js} +1 -1
  84. package/dist/cdn/{FANKLSAT.js → OD5DHUHZ.js} +1 -1
  85. package/dist/cdn/{L6LZYPWJ.js → ORH27QWU.js} +1 -1
  86. package/dist/cdn/{5PJEJPFY.js → OSPWEZQJ.js} +1 -1
  87. package/dist/cdn/{BB5CXHDQ.js → PISCYSA5.js} +1 -1
  88. package/dist/cdn/{IIPYTUR3.js → PMQLTMQ4.js} +1 -1
  89. package/dist/cdn/PZC5TBXA.js +2 -0
  90. package/dist/cdn/{GHA2ANJZ.js → QJOQNSYB.js} +1 -1
  91. package/dist/cdn/{LZ3PMD7Z.js → QVMTO5BV.js} +1 -1
  92. package/dist/cdn/{L7NIKN24.js → R4V6HGJH.js} +1 -1
  93. package/dist/cdn/R7BJHEHH.js +2 -0
  94. package/dist/cdn/{4YQLL44L.js → RP5SO6BA.js} +1 -1
  95. package/dist/cdn/{JC4DYMKT.js → RRXH4CSV.js} +1 -1
  96. package/dist/cdn/{7S4WE6H3.js → RUB6EORR.js} +1 -1
  97. package/dist/cdn/{CIUAWIL5.js → S4NUCPRQ.js} +2 -2
  98. package/dist/cdn/{SFM3XWUA.js → S6G6XXTM.js} +1 -1
  99. package/dist/cdn/{HVI2FE73.js → SZ5MNKOW.js} +1 -1
  100. package/dist/cdn/{RISVXUI4.js → T2ZF4XIZ.js} +1 -1
  101. package/dist/cdn/{U5FUT6DD.js → TP6I2LJO.js} +1 -1
  102. package/dist/cdn/{4IC3NWKK.js → TPOLS4YM.js} +1 -1
  103. package/dist/cdn/{5V7HEV2R.js → TUW6NLYY.js} +1 -1
  104. package/dist/cdn/{KG2M6IQS.js → U4QW6VHU.js} +1 -1
  105. package/dist/cdn/{SZNBYDQI.js → UAO23YMW.js} +1 -1
  106. package/dist/cdn/{LY735GHL.js → UHFSSX2G.js} +1 -1
  107. package/dist/cdn/{33U3K3P2.js → UKKUFJLL.js} +1 -1
  108. package/dist/cdn/{4PWBNKOA.js → UKNKW6MH.js} +1 -1
  109. package/dist/cdn/{DUT3D6UH.js → UM2FDZJJ.js} +1 -1
  110. package/dist/cdn/{DLUXWET4.js → UNX4CKAF.js} +1 -1
  111. package/dist/cdn/{5LD4AU4Q.js → VNOZYJLP.js} +1 -1
  112. package/dist/cdn/{OMKVQOUI.js → VU3SJK5Z.js} +1 -1
  113. package/dist/cdn/{I2WEEE2E.js → WGWNMYUH.js} +1 -1
  114. package/dist/cdn/{LLNNQ2ED.js → WOV3LB6K.js} +1 -1
  115. package/dist/cdn/{ZIX3WE2Q.js → WTMMFDEH.js} +1 -1
  116. package/dist/cdn/{E4YMNWRJ.js → WW6L6XX4.js} +1 -1
  117. package/dist/cdn/{BAPY2HFP.js → XMSGTOUV.js} +1 -1
  118. package/dist/cdn/XMZSFKKO.js +2 -0
  119. package/dist/cdn/{LMV6L2OF.js → XRP25NGI.js} +1 -1
  120. package/dist/cdn/{ILPNFQWH.js → XW72RT5D.js} +1 -1
  121. package/dist/cdn/{RWJKQEMK.js → XXZ3CKTX.js} +1 -1
  122. package/dist/cdn/{ZHINQNZ2.js → Y6IN6NEC.js} +1 -1
  123. package/dist/cdn/{AFU3S7KW.js → YC5JACID.js} +1 -1
  124. package/dist/cdn/{SKGRUNAJ.js → YC6JWXOW.js} +1 -1
  125. package/dist/cdn/{GUAI5SHN.js → YFUI4F5L.js} +1 -1
  126. package/dist/cdn/{N76CLHYJ.js → ZD25GJYW.js} +1 -1
  127. package/dist/cdn/{67IVXIOR.js → ZD5FJHIQ.js} +1 -1
  128. package/dist/cdn/{UDPUTCKL.js → ZM2YXU7Y.js} +1 -1
  129. package/dist/cdn/{2BJHF4JK.js → ZURN5EZI.js} +1 -1
  130. package/dist/cdn/{KNJ7PME5.js → ZVTPU2MO.js} +1 -1
  131. package/dist/cdn/index.js +1 -1
  132. package/dist/chunks/useArcgisViewReadyError.js +7 -7
  133. package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +5 -5
  134. package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +7 -7
  135. package/dist/components/arcgis-basemap-toggle/customElement.d.ts +1 -1
  136. package/dist/components/arcgis-bookmarks/customElement.d.ts +1 -1
  137. package/dist/components/arcgis-building-explorer/customElement.d.ts +4 -4
  138. package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +1 -1
  139. package/dist/components/arcgis-daylight/customElement.d.ts +13 -13
  140. package/dist/components/arcgis-daylight/customElement.js +2 -1
  141. package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +7 -7
  142. package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +5 -5
  143. package/dist/components/arcgis-elevation-profile/customElement.d.ts +8 -8
  144. package/dist/components/arcgis-feature/customElement.d.ts +7 -7
  145. package/dist/components/arcgis-feature-fields/customElement.js +7 -7
  146. package/dist/components/arcgis-feature-form/customElement.d.ts +2 -2
  147. package/dist/components/arcgis-features/customElement.d.ts +41 -43
  148. package/dist/components/arcgis-features/customElement.js +18 -12
  149. package/dist/components/arcgis-floor-filter/customElement.d.ts +3 -3
  150. package/dist/components/arcgis-grid-controls/customElement.d.ts +8 -8
  151. package/dist/components/arcgis-legend/customElement.d.ts +1 -1
  152. package/dist/components/arcgis-line-of-sight/customElement.d.ts +5 -5
  153. package/dist/components/arcgis-link-chart/customElement.d.ts +6 -6
  154. package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.js +13 -13
  155. package/dist/components/arcgis-locate/customElement.d.ts +1 -1
  156. package/dist/components/arcgis-map/customElement.d.ts +42 -42
  157. package/dist/components/arcgis-measurement/customElement.d.ts +3 -3
  158. package/dist/components/arcgis-multi-feature-form/customElement.d.ts +1 -1
  159. package/dist/components/arcgis-navigation-toggle/customElement.d.ts +1 -1
  160. package/dist/components/arcgis-popup/customElement.d.ts +50 -52
  161. package/dist/components/arcgis-popup/customElement.js +50 -55
  162. package/dist/components/arcgis-popup/types.d.ts +1 -1
  163. package/dist/components/arcgis-print/customElement.d.ts +6 -6
  164. package/dist/components/arcgis-scene/customElement.d.ts +33 -33
  165. package/dist/components/arcgis-search/customElement.d.ts +11 -11
  166. package/dist/components/arcgis-shadow-cast/customElement.d.ts +26 -26
  167. package/dist/components/arcgis-slice/customElement.d.ts +12 -12
  168. package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.d.ts +66 -85
  169. package/dist/components/arcgis-slider-classed-color-legacy/customElement.d.ts +33 -38
  170. package/dist/components/arcgis-slider-classed-size-legacy/customElement.d.ts +32 -34
  171. package/dist/components/arcgis-slider-color-legacy/customElement.d.ts +63 -84
  172. package/dist/components/arcgis-slider-color-size-legacy/customElement.d.ts +66 -81
  173. package/dist/components/arcgis-slider-heatmap-legacy/customElement.d.ts +6 -6
  174. package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +58 -75
  175. package/dist/components/arcgis-slider-size-legacy/customElement.d.ts +61 -76
  176. package/dist/components/arcgis-swipe/customElement.d.ts +5 -5
  177. package/dist/components/arcgis-time-zone-label/customElement.d.ts +6 -29
  178. package/dist/components/arcgis-time-zone-label/customElement.js +15 -48
  179. package/dist/components/arcgis-time-zone-label/index.js +1 -1
  180. package/dist/components/arcgis-track/customElement.d.ts +1 -1
  181. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +6 -9
  182. package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +4 -4
  183. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +28 -26
  184. package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +3 -3
  185. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +1 -1
  186. package/dist/components/arcgis-utility-network-trace-results/customElement.js +44 -44
  187. package/dist/components/arcgis-value-picker-legacy/customElement.d.ts +17 -18
  188. package/dist/components/arcgis-video-player/customElement.d.ts +1 -1
  189. package/dist/components/arcgis-volume-measurement/customElement.d.ts +14 -14
  190. package/dist/components/arcgis-volume-measurement/customElement.js +1 -1
  191. package/dist/components/arcgis-weather/customElement.d.ts +5 -5
  192. package/dist/docs/api.json +1 -1
  193. package/dist/docs/docs.json +1 -1
  194. package/dist/docs/vscode.html-custom-data.json +1 -1
  195. package/dist/docs/web-types.json +1 -1
  196. package/dist/loader.js +1 -1
  197. package/dist/types/lumina.d.ts +1 -2
  198. package/dist/types/preact.d.ts +1 -2
  199. package/dist/types/react.d.ts +1 -2
  200. package/dist/types/stencil.d.ts +1 -2
  201. package/package.json +4 -4
  202. package/dist/cdn/23UYZVTW.js +0 -2
  203. package/dist/cdn/AIRDJCFV.js +0 -2
  204. package/dist/cdn/CKBTMA4D.js +0 -2
  205. package/dist/cdn/CKNH5OMJ.js +0 -2
  206. package/dist/cdn/CZE43OAC.js +0 -2
  207. package/dist/cdn/D6YUW72R.js +0 -2
  208. package/dist/cdn/FEQLUSM2.js +0 -2
  209. package/dist/cdn/G4A4VLTL.js +0 -2
  210. package/dist/cdn/GQN4ALIE.js +0 -2
  211. package/dist/cdn/I3PBMKT5.js +0 -2
  212. package/dist/cdn/IPNIJANM.js +0 -2
  213. package/dist/cdn/LVMJAMRO.js +0 -2
  214. package/dist/cdn/MW73TE2N.js +0 -2
  215. package/dist/cdn/OKZSKR6W.js +0 -2
  216. package/dist/cdn/VPJCFCJU.js +0 -2
  217. /package/dist/cdn/{UQ7E33T4.js → 2SQUOXWG.js} +0 -0
  218. /package/dist/cdn/{KAJ3U6DP.js → 3GVHNIXM.js} +0 -0
  219. /package/dist/cdn/{E2KWMQKQ.js → 3NF4UU3S.js} +0 -0
  220. /package/dist/cdn/{PHF2XKSK.js → 43UMYTXQ.js} +0 -0
  221. /package/dist/cdn/{CHDRBZNL.js → 47T624VO.js} +0 -0
  222. /package/dist/cdn/{X5H6ZUFX.js → 4NBXFFTY.js} +0 -0
  223. /package/dist/cdn/{DDI363AI.js → 5IPPKC3M.js} +0 -0
  224. /package/dist/cdn/{LCXF3AKY.js → 6JUTQDKC.js} +0 -0
  225. /package/dist/cdn/{YMU5IPMP.js → 6QPD32WT.js} +0 -0
  226. /package/dist/cdn/{M6TJN2I5.js → 7LEGS7EX.js} +0 -0
  227. /package/dist/cdn/{ORP3ZND2.js → AQG5RIV3.js} +0 -0
  228. /package/dist/cdn/{W5XM52J7.js → B3I4OKDQ.js} +0 -0
  229. /package/dist/cdn/{RCD5UKTW.js → BFHBS4MR.js} +0 -0
  230. /package/dist/cdn/{CRR65TKV.js → D3X7R3GD.js} +0 -0
  231. /package/dist/cdn/{7FMJZURP.js → DYC6OHKG.js} +0 -0
  232. /package/dist/cdn/{5OB4E5PR.js → DZG4EA6U.js} +0 -0
  233. /package/dist/cdn/{W5B5LTGN.js → ELF2SE5K.js} +0 -0
  234. /package/dist/cdn/{UVZZX6YP.js → FHSXSYA6.js} +0 -0
  235. /package/dist/cdn/{BQIH5T3S.js → FRWY77LH.js} +0 -0
  236. /package/dist/cdn/{ZFFBK3VO.js → FYVM32GJ.js} +0 -0
  237. /package/dist/cdn/{B7IYR676.js → GVW4OIR5.js} +0 -0
  238. /package/dist/cdn/{FPD3STSJ.js → H6LWU2FC.js} +0 -0
  239. /package/dist/cdn/{DEOCASGG.js → HEBLEJCT.js} +0 -0
  240. /package/dist/cdn/{OSRAPPNR.js → IDITPQDC.js} +0 -0
  241. /package/dist/cdn/{DWZIXPJ4.js → J3F5FPMC.js} +0 -0
  242. /package/dist/cdn/{YP3JKXC4.js → JMZA4GQB.js} +0 -0
  243. /package/dist/cdn/{JDPQMOEW.js → JPDYVHUZ.js} +0 -0
  244. /package/dist/cdn/{PUOWH3YL.js → KNFAPO3C.js} +0 -0
  245. /package/dist/cdn/{W2Q7NWBG.js → LEC4CIVO.js} +0 -0
  246. /package/dist/cdn/{JMDNJPNT.js → NCTWDKYG.js} +0 -0
  247. /package/dist/cdn/{RDW2NJPR.js → PDCUZMSB.js} +0 -0
  248. /package/dist/cdn/{76ESM6B2.js → RJTABGPK.js} +0 -0
  249. /package/dist/cdn/{2ZL4CF6P.js → SPXZXKMH.js} +0 -0
  250. /package/dist/cdn/{HZTWWEVM.js → TRPYDMNK.js} +0 -0
  251. /package/dist/cdn/{YHVFARHN.js → UYDFCELQ.js} +0 -0
  252. /package/dist/cdn/{55VMVXRK.js → V2D4QTRR.js} +0 -0
  253. /package/dist/cdn/{QAXR4LT6.js → WBZEEY5N.js} +0 -0
  254. /package/dist/cdn/{YDJGMRV3.js → WG5RPCHL.js} +0 -0
  255. /package/dist/cdn/{ZLIZCBGT.js → WL4J6REN.js} +0 -0
  256. /package/dist/cdn/{GB42YXHR.js → XJQRAKJ6.js} +0 -0
  257. /package/dist/cdn/{L4WRYSKZ.js → YGJ7NPDT.js} +0 -0
  258. /package/dist/cdn/{V3M37NHT.js → ZJ36DBTH.js} +0 -0
package/dist/loader.js CHANGED
@@ -129,7 +129,7 @@ const s = t(e, {
129
129
  "arcgis-swipe": [() => import("./components/arcgis-swipe/customElement.js"), "autoDestroyDisabled,direction,disabled,endLayers:,hideDivider,hideHandle,icon,label,leadingLayers:,messageOverrides:,messages:,position,referenceElement,startLayers:,state:,swipePosition,trailingLayers:,view:;destroy"],
130
130
  "arcgis-table-list": [() => import("./components/arcgis-table-list/customElement.js"), "autoDestroyDisabled,closed,collapsed,dragEnabled,filterPlaceholder,filterPredicate:,filterText,hideStatusIndicators,icon,label,listItemCreatedFunction:,map:,minDragEnabledItems,minFilterItems,referenceElement,selectedItems:,selectionMode,showCloseButton,showCollapseButton,showErrors,showFilter,showHeading,showTemporaryTableIndicators,state:,tableItems:,view:;destroy"],
131
131
  "arcgis-time-slider": [() => import("./components/arcgis-time-slider/customElement.js"), "actions:,autoDestroyDisabled,disabled,effectiveStops:,fullTimeExtent:,icon,label,layout,loop,mode,playRate,referenceElement,state:,stops:,tickConfigs:,timeExtent:,timeVisible,timeZone,view:;applyTimeSliderSettings,destroy,next,play,previous,stop,updateWebDocument"],
132
- "arcgis-time-zone-label": [() => import("./components/arcgis-time-zone-label/customElement.js"), "_messages:,disabled,expandDirection,expanded,icon,label,messageOverrides:,referenceElement,state:,view:"],
132
+ "arcgis-time-zone-label": [() => import("./components/arcgis-time-zone-label/customElement.js"), "_messages:,actionIcon,disabled,icon,label,messageOverrides:,referenceElement,state:,view:"],
133
133
  "arcgis-track": [() => import("./components/arcgis-track/customElement.js"), "autoDestroyDisabled,error:,geolocationOptions:,goToLocationDisabled,goToOverride:,graphic:,icon,label,messageOverrides:,messages:,positionFilterFunction:,referenceElement,rotationDisabled,scale,state:,tracking:,view:,visualScale;destroy,start,stop"],
134
134
  "arcgis-unit-select": [() => import("./components/arcgis-unit-select/customElement.js"), "label,layout,messageOverrides:,options,selectLabel,value:;destroy"],
135
135
  "arcgis-utility-network-associations": [() => import("./components/arcgis-utility-network-associations/customElement.js"), "autoDestroyDisabled,autoRefreshAssociationsDisabled,connectivityAssociationsLineSymbol:,hideConnectivityAssociationsSettingsColorPicker,hideConnectivityAssociationsSettingsStylePicker,hideConnectivityAssociationsSettingsWidthInput,hideStructuralAttachmentAssociationsSettingsColorPicker,hideStructuralAttachmentAssociationsSettingsStylePicker,hideStructuralAttachmentAssociationsSettingsWidthInput,icon,includeConnectivityAssociationsDisabled,includeStructuralAttachmentAssociationsDisabled,label,maxAllowableAssociations,maxAllowableAssociationsSliderMax,maxAllowableAssociationsSliderMin,maxAllowableAssociationsSliderStep,referenceElement,showArrowsConnectivity,showArrowsStructuralAttachment,showAssociationsEnabled,showConnectivityAssociationsSettingsArrowsToggle,showConnectivityAssociationsSettingsCapSelect,showMaxAllowableAssociationsSlider,showStructuralAttachmentAssociationsSettingsArrowsToggle,showStructuralAttachmentAssociationsSettingsCapSelect,structuralAttachmentAssociationsLineSymbol:,utilityNetwork:,view:;destroy"],
@@ -121,7 +121,6 @@ type ArcgisSketchSetterTypes = ArcgisSketch["@setterTypes"];
121
121
  type ArcgisSnappingControlsSetterTypes = ArcgisSnappingControls["@setterTypes"];
122
122
  type ArcgisTableListSetterTypes = ArcgisTableList["@setterTypes"];
123
123
  type ArcgisTimeSliderSetterTypes = ArcgisTimeSlider["@setterTypes"];
124
- type ArcgisTimeZoneLabelSetterTypes = ArcgisTimeZoneLabel["@setterTypes"];
125
124
  type ArcgisUtilityNetworkAssociationsSetterTypes = ArcgisUtilityNetworkAssociations["@setterTypes"];
126
125
  type ArcgisUtilityNetworkTraceSetterTypes = ArcgisUtilityNetworkTrace["@setterTypes"];
127
126
  type ArcgisUtilityNetworkValidateTopologySetterTypes = ArcgisUtilityNetworkValidateTopology["@setterTypes"];
@@ -617,7 +616,7 @@ interface LuminaArcgisTimeSlider extends Partial<Pick<ArcgisTimeSlider, "actions
617
616
  onarcgisTriggerAction?: EventHandler<ArcgisTimeSlider["arcgisTriggerAction"]>;
618
617
  }
619
618
 
620
- interface LuminaArcgisTimeZoneLabel extends Partial<Pick<ArcgisTimeZoneLabel, "disabled" | "expanded" | "icon" | "label" | "messageOverrides" | "referenceElement" | "view">>, ArcgisTimeZoneLabelSetterTypes, h.JSX.HTMLAttributes<ArcgisTimeZoneLabel> {
619
+ interface LuminaArcgisTimeZoneLabel extends Partial<Pick<ArcgisTimeZoneLabel, "actionIcon" | "disabled" | "icon" | "label" | "messageOverrides" | "referenceElement" | "view">>, h.JSX.HTMLAttributes<ArcgisTimeZoneLabel> {
621
620
  onarcgisPropertyChange?: EventHandler<ArcgisTimeZoneLabel["arcgisPropertyChange"]>;
622
621
  onarcgisReady?: EventHandler<ArcgisTimeZoneLabel["arcgisReady"]>;
623
622
  }
@@ -122,7 +122,6 @@ type ArcgisSketchSetterTypes = ArcgisSketch["@setterTypes"];
122
122
  type ArcgisSnappingControlsSetterTypes = ArcgisSnappingControls["@setterTypes"];
123
123
  type ArcgisTableListSetterTypes = ArcgisTableList["@setterTypes"];
124
124
  type ArcgisTimeSliderSetterTypes = ArcgisTimeSlider["@setterTypes"];
125
- type ArcgisTimeZoneLabelSetterTypes = ArcgisTimeZoneLabel["@setterTypes"];
126
125
  type ArcgisUtilityNetworkAssociationsSetterTypes = ArcgisUtilityNetworkAssociations["@setterTypes"];
127
126
  type ArcgisUtilityNetworkTraceSetterTypes = ArcgisUtilityNetworkTrace["@setterTypes"];
128
127
  type ArcgisUtilityNetworkValidateTopologySetterTypes = ArcgisUtilityNetworkValidateTopology["@setterTypes"];
@@ -618,7 +617,7 @@ interface PreactArcgisTimeSlider extends Partial<Pick<ArcgisTimeSlider, "actions
618
617
  onarcgisTriggerAction?: EventHandler<ArcgisTimeSlider["arcgisTriggerAction"]>;
619
618
  }
620
619
 
621
- interface PreactArcgisTimeZoneLabel extends Partial<Pick<ArcgisTimeZoneLabel, "disabled" | "expanded" | "icon" | "label" | "messageOverrides" | "referenceElement" | "view">>, ArcgisTimeZoneLabelSetterTypes, HTMLAttributes<ArcgisTimeZoneLabel> {
620
+ interface PreactArcgisTimeZoneLabel extends Partial<Pick<ArcgisTimeZoneLabel, "actionIcon" | "disabled" | "icon" | "label" | "messageOverrides" | "referenceElement" | "view">>, HTMLAttributes<ArcgisTimeZoneLabel> {
622
621
  onarcgisPropertyChange?: EventHandler<ArcgisTimeZoneLabel["arcgisPropertyChange"]>;
623
622
  onarcgisReady?: EventHandler<ArcgisTimeZoneLabel["arcgisReady"]>;
624
623
  }
@@ -122,7 +122,6 @@ type ArcgisSketchSetterTypes = ArcgisSketch["@setterTypes"];
122
122
  type ArcgisSnappingControlsSetterTypes = ArcgisSnappingControls["@setterTypes"];
123
123
  type ArcgisTableListSetterTypes = ArcgisTableList["@setterTypes"];
124
124
  type ArcgisTimeSliderSetterTypes = ArcgisTimeSlider["@setterTypes"];
125
- type ArcgisTimeZoneLabelSetterTypes = ArcgisTimeZoneLabel["@setterTypes"];
126
125
  type ArcgisUtilityNetworkAssociationsSetterTypes = ArcgisUtilityNetworkAssociations["@setterTypes"];
127
126
  type ArcgisUtilityNetworkTraceSetterTypes = ArcgisUtilityNetworkTrace["@setterTypes"];
128
127
  type ArcgisUtilityNetworkValidateTopologySetterTypes = ArcgisUtilityNetworkValidateTopology["@setterTypes"];
@@ -618,7 +617,7 @@ interface ReactArcgisTimeSlider extends Partial<Pick<ArcgisTimeSlider, "actions"
618
617
  onarcgisTriggerAction?: EventHandler<ArcgisTimeSlider["arcgisTriggerAction"]>;
619
618
  }
620
619
 
621
- interface ReactArcgisTimeZoneLabel extends Partial<Pick<ArcgisTimeZoneLabel, "disabled" | "expanded" | "icon" | "label" | "messageOverrides" | "referenceElement" | "view">>, ArcgisTimeZoneLabelSetterTypes, HTMLProps<ArcgisTimeZoneLabel> {
620
+ interface ReactArcgisTimeZoneLabel extends Partial<Pick<ArcgisTimeZoneLabel, "actionIcon" | "disabled" | "icon" | "label" | "messageOverrides" | "referenceElement" | "view">>, HTMLProps<ArcgisTimeZoneLabel> {
622
621
  onarcgisPropertyChange?: EventHandler<ArcgisTimeZoneLabel["arcgisPropertyChange"]>;
623
622
  onarcgisReady?: EventHandler<ArcgisTimeZoneLabel["arcgisReady"]>;
624
623
  }
@@ -122,7 +122,6 @@ type ArcgisSketchSetterTypes = ArcgisSketch["@setterTypes"];
122
122
  type ArcgisSnappingControlsSetterTypes = ArcgisSnappingControls["@setterTypes"];
123
123
  type ArcgisTableListSetterTypes = ArcgisTableList["@setterTypes"];
124
124
  type ArcgisTimeSliderSetterTypes = ArcgisTimeSlider["@setterTypes"];
125
- type ArcgisTimeZoneLabelSetterTypes = ArcgisTimeZoneLabel["@setterTypes"];
126
125
  type ArcgisUtilityNetworkAssociationsSetterTypes = ArcgisUtilityNetworkAssociations["@setterTypes"];
127
126
  type ArcgisUtilityNetworkTraceSetterTypes = ArcgisUtilityNetworkTrace["@setterTypes"];
128
127
  type ArcgisUtilityNetworkValidateTopologySetterTypes = ArcgisUtilityNetworkValidateTopology["@setterTypes"];
@@ -618,7 +617,7 @@ interface StencilArcgisTimeSlider extends Partial<Pick<ArcgisTimeSlider, "action
618
617
  onArcgisTriggerAction?: EventHandler<ArcgisTimeSlider["arcgisTriggerAction"]>;
619
618
  }
620
619
 
621
- interface StencilArcgisTimeZoneLabel extends Partial<Pick<ArcgisTimeZoneLabel, "disabled" | "expanded" | "icon" | "label" | "messageOverrides" | "referenceElement" | "view">>, ArcgisTimeZoneLabelSetterTypes, StencilJsx.HTMLAttributes<ArcgisTimeZoneLabel> {
620
+ interface StencilArcgisTimeZoneLabel extends Partial<Pick<ArcgisTimeZoneLabel, "actionIcon" | "disabled" | "icon" | "label" | "messageOverrides" | "referenceElement" | "view">>, StencilJsx.HTMLAttributes<ArcgisTimeZoneLabel> {
622
621
  onArcgisPropertyChange?: EventHandler<ArcgisTimeZoneLabel["arcgisPropertyChange"]>;
623
622
  onArcgisReady?: EventHandler<ArcgisTimeZoneLabel["arcgisReady"]>;
624
623
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/map-components",
3
- "version": "5.1.0-next.10",
3
+ "version": "5.1.0-next.12",
4
4
  "description": "ArcGIS Map Components",
5
5
  "keywords": [
6
6
  "2D",
@@ -46,9 +46,9 @@
46
46
  "lit": "^3.3.0",
47
47
  "lodash-es": "^4.17.23",
48
48
  "tslib": "^2.8.1",
49
- "@arcgis/common-components": "5.1.0-next.10",
50
- "@arcgis/toolkit": "5.1.0-next.10",
51
- "@arcgis/lumina": "5.1.0-next.10"
49
+ "@arcgis/common-components": "5.1.0-next.12",
50
+ "@arcgis/lumina": "5.1.0-next.12",
51
+ "@arcgis/toolkit": "5.1.0-next.12"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@arcgis/core": "^5.0.0-next",
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{A as Aa,B as Fa,C as Ga,D as Ha,E as Ia,F as Ja,G as Ka,H as La,I as Ma,J as Oa,K as Pa,L as Qa,M as Ra,N as Sa,O as Ta,P as Ua,a as N,b as P,c as Q,d as R,e as S,f as T,g as U,h as W,i as X,j as Y,k as Z,l as _,m as ba,n as ca,o as da,p as ea,q as fa,r as ka,s as la,t as ma,u as na,v as ra,w as ta,x as ua,y as va,z as wa}from"./CIUAWIL5.js";import{a as $,b as aa,c as oa,d as za}from"./BEXRPBHT.js";import{a as Ba}from"./J7ZNOOZ4.js";import{A as B,B as C,C as D,E,F,G,H,I,J,K,M as L,N as M,O,R as ga,S as ha,T as ia,U as ja,c as r,ca as pa,da as qa,ea as sa,fa as xa,ga as ya,ma as Ca,na as Da,oa as Ea,pa as Na,q as s,t,u,v,w,x,y,z as A}from"./FEQLUSM2.js";import{P as o,Q as p,R as q,b as n}from"./EYW7YQF6.js";import{a,b,c,d,e}from"./V3M37NHT.js";import{D as g,J as h,L as i,M as j,N as k,O as l,P as m,U as z,V,l as f}from"./MW73TE2N.js";import"./3TTFCHAA.js";export{j as ArrayDisposer,D as BlendMode,_ as Bullet,aa as Button,Pa as CSVParser,X as CanvasLayer,W as CanvasRenderer,Ca as Chart,ca as Circle,Ia as CirclePattern,q as Color,Na as ColorSet,ja as Component,ba as ConfirmButton,L as Container,m as CounterDisposer,ia as DataItem,Qa as DataProcessor,T as DateFormatter,i as Disposer,U as DurationFormatter,oa as EditableLabel,ea as Ellipse,y as Entity,la as Gradient,Ga as GrainPattern,E as Graphics,J as GridLayout,na as HeatLegend,H as HorizontalLayout,N as InterfaceColors,Oa as JSONParser,ha as JsonData,O as Label,G as Layout,ra as Legend,sa as Line,Ja as LinePattern,ma as LinearGradient,va as Link,ga as ListData,r as ListTemplate,Z as Modal,k as MultiDisposer,l as MutableValueDisposer,R as NumberFormatter,Sa as NumericStepper,ua as OrthogonalLine,La as PathPattern,B as Pattern,Ma as PatternSet,a as Percent,wa as Picture,C as PicturePattern,P as PointedRectangle,da as Polygon,Ta as ProgressPie,Ha as RadialGradient,ya as RadialLabel,xa as RadialText,F as Rectangle,Ka as RectanglePattern,Y as Root,$ as RoundedRectangle,za as Scrollbar,Da as SerialChart,qa as Series,Ba as Slice,Aa as Slider,A as Sprite,Ra as SpriteResizer,fa as Star,z as Template,M as Text,K as TextFormatter,V as Theme,Ea as Tick,S as Timezone,Q as Tooltip,ta as Triangle,I as VerticalLayout,Fa as ZoomTools,ka as ZoomableContainer,v as addLicense,g as array,p as color,w as disposeAllRootElements,t as ease,x as getRootById,s as math,Ua as net,h as object,c as p0,d as p100,e as p50,b as percent,n as ready,u as registry,pa as time,f as type,o as utils};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import h from"./PI6UQWTD.js";import g from"./EVC4MXIZ.js";import"./7WLTT4K3.js";import{a as b}from"./TVTQW6GC.js";import f from"./5MHPKAFK.js";import"./PC4PAQXQ.js";import"./H5QDPW5Y.js";import e from"./YSDQ5VNK.js";import{a as V}from"./24PK3ZLX.js";import d from"./INS77MCT.js";import a from"./POEZXWTT.js";import{h as D}from"./LVMJAMRO.js";import"./NWK2WHZF.js";import"./BMR2YFEM.js";import{b as _}from"./MSMDSEFM.js";import{M as w,N as v,O as I,P as m,R as c,S as T,U as k,a as x,b as s,x as M}from"./PTWLVTFS.js";import"./3TTFCHAA.js";export default $arcgis.t(([j,{substitute:h,formatNumber:F},{watch:u},{stripHTML:A},L,{renderingSanitizer:P},{initializeProjection:K},,,N,,{d:E},{a:O,d:B,e:R}])=>{var G=x`: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)}`;function W(d){switch(d?.type){case"point":return d;case"extent":return d.center;case"polygon":return d.centroid;case"multipoint":case"polyline":return d.extent?.center;default:return null}}var C=O.clone();function X(d){return d?.declaredClass.startsWith("esri.layers.")??!1}var J=N(j),y=class extends I{constructor(){super(...arguments),this._fetchFeaturesController=null,this._featureMenuIntersectionObserverCallback=([e])=>{e?.isIntersecting&&this.viewModel.featurePage!=null&&this.viewModel.featurePage++},this._featureMenuIntersectionObserver=new IntersectionObserver(this._featureMenuIntersectionObserverCallback,{root:window.document}),this._featureMenuIntersectionObserverNode=null,this._rootFlowItemNode=w(),this._featureMenuViewportNode=w(),this._actionBarMenuNode=w(),this._flowContainerNode=w(),this.messages=V(),this._selectedFeatureComponent=w(),this._cancelOpenRelatedFeature=()=>{let{_openRelatedFeatureAbortController:e}=this;e&&e.abort(),this._openRelatedFeatureAbortController=null},this._openRelatedFeatureAbortController=null,this.flowItems=new L,this.viewModel=J(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 L,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.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=D()("active","collapsed","featureCount","featureMenuOpen","features","promises","selectedDrillInFeature","selectedFeature","selectedFeatureComponent","selectedFeatureIndex","state","open"),this.arcgisReady=M(),this.arcgisClose=M(),this.arcgisTriggerAction=M()}static{this.properties={_openRelatedFeatureAbortController:16,flowItems:16,_hideActionText:16,_featureNavigationVisible:16,_isCollapsed:16,_collapseEnabled:16,viewModel:0,actions:0,active:0,autoDestroyDisabled:5,collapsed:5,content:1,defaultPopupTemplateEnabled:5,featureCount:9,featureMenuOpen:5,featureMenuTitle:1,featureNavigationTop:5,features:0,featuresPerPage:9,featureViewModelAbilities:0,goToOverride:0,headerActions:0,heading:1,headingLevel:9,hideActionBar:5,hideCloseButton:5,hideFeatureMenuHeading:5,hideFeatureNavigation:5,hideFeatureListLayerTitle:5,hideHeading:5,hideSpinner:5,hideContent:5,chartAnimationDisabled:5,hideAttachmentsContent:5,hideCustomContent:5,hideExpressionContent:5,hideFieldsContent:5,hideMediaContent:5,hideRelationshipContent:5,hideTextContent:5,hideUtilityNetworkContent:5,hideLastEditedInfo:5,highlightDisabled:5,icon:1,includeDefaultActionsDisabled:5,initialDisplayMode:1,label:1,location:0,map:0,messageOverrides:0,open:5,referenceElement:1,promises:0,responsiveActionsEnabled:5,selectedDrillInFeature:32,selectedFeature:0,selectedFeatureComponent:32,selectedFeatureIndex:9,showCollapseButton:5,spatialReference:0,state:32,timeZone:1,updateLocationEnabled:5,view:0}}static{this.styles=G}get _hideActionText(){if(!this.responsiveActionsEnabled)return!1;let e=this.viewModel.view?.widthBreakpoint;return e==="xsmall"||e==="small"||e==="medium"}get _featureNavigationVisible(){return this.viewModel.active&&this.viewModel.featureCount>1&&!!this.viewModel.selectedFeature&&!this.hideFeatureNavigation}get _isCollapsed(){return this._collapseEnabled&&this.collapsed}get _collapseEnabled(){return this.showCollapseButton&&(this.initialDisplayMode==="list"||!!(this.heading||this.viewModel.selectedFeatureViewModel?.title)&&!!(this.content||this.viewModel.selectedFeatureViewModel?.content))}get chartAnimationDisabled(){return!(this.viewModel.featureViewModelAbilities?.chartAnimation??!0)}set chartAnimationDisabled(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.chartAnimation=!e}get hideAttachmentsContent(){return!(this.viewModel.featureViewModelAbilities?.attachmentsContent??!0)}set hideAttachmentsContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.attachmentsContent=!e}get hideCustomContent(){return!(this.viewModel.featureViewModelAbilities?.customContent??!0)}set hideCustomContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.customContent=!e}get hideFieldsContent(){return!(this.viewModel.featureViewModelAbilities?.fieldsContent??!0)}set hideFieldsContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.fieldsContent=!e}get hideMediaContent(){return!(this.viewModel.featureViewModelAbilities?.mediaContent??!0)}set hideMediaContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.mediaContent=!e}get hideRelationshipContent(){return!(this.viewModel.featureViewModelAbilities?.relationshipContent??!0)}set hideRelationshipContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.relationshipContent=!e}get hideTextContent(){return!(this.viewModel.featureViewModelAbilities?.textContent??!0)}set hideTextContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.textContent=!e}get hideUtilityNetworkContent(){return!(this.viewModel.featureViewModelAbilities?.utilityNetworkAssociationsContent??!0)}set hideUtilityNetworkContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.utilityNetworkAssociationsContent=!e}get open(){return this.viewModel.visible}set open(e){this.viewModel.visible=e}get selectedDrillInFeature(){let e=Array.from(this.flowItems).at(-1);return e&&"graphic"in e?e.graphic??null:null}get selectedFeatureComponent(){return this._selectedFeatureComponent.value??null}async clear(){return this.viewModel.clear()}async close(){this.viewModel.visible=!1}async destroy(){await this.manager.destroy(),await this._destroySpinner(this.referenceElement),this._cancelOpenRelatedFeature(),this._removeFlowItems(),this._unobserveFeatureMenuObserver(),this._cancelFetchingFeatures(),this._featureMenuIntersectionObserver?.disconnect()}async fetchFeatures(e,t){this._cancelFetchingFeatures();let i=new AbortController,{signal:a}=i;if(this._fetchFeaturesController=i,!e&&this.view&&this.location&&(await K(this.location.spatialReference,this.view.spatialReference,null,{signal:a}),e=this.view.toScreen(this.location)??void 0),!e)return;let n=await this.viewModel.fetchFeatures(e,{signal:a,...t});this.location=n.location,this.promises=n.pendingFeatures}async next(){return this.viewModel.next()}async previous(){return this.viewModel.previous()}async setFocus(){this._flowContainerNode.value?.setFocus()}async triggerAction(e){if(!e.disabled)return e?.type==="toggle"&&(e.value=!e.value),await R(e,this.viewModel)}loaded(){this.manager.onLifecycle(()=>[u(()=>this.viewModel?.selectedFeatureIndex,(e,t)=>this._selectedFeatureIndexUpdated(e,t)),u(()=>this.viewModel?.view,()=>this._viewChange()),u(()=>this._spinnerEl?.screenLocation,()=>this._closeOpenActionMenu()),u(()=>this.selectedFeatureComponent?.viewModel,()=>this._removeFlowItems()),u(()=>this.viewModel?.featureViewModels,()=>this._featureMenuViewportScrollTop()),u(()=>[this.flowItems?.length,this.featureMenuOpen],()=>{this.setFocus()}),u(()=>this.referenceElement,(e,t)=>{this._destroySpinner(t),this._createSpinner()},{initial:!0}),u(()=>[this.hideSpinner,this.viewModel?.view,this.viewModel?.location,this.viewModel?.waitingForResult,this.viewModel?.view],()=>void this._createSpinner(),{initial:!0})])}_cancelFetchingFeatures(){this._fetchFeaturesController?.abort(),this._fetchFeaturesController=null}_handleClose(){this.close(),this.arcgisClose.emit()}_groupResultsByLayer(){let{featureViewModels:e}=this.viewModel,t=new Map;return e.forEach(i=>{let a=i?.graphic;if(!a)return;let n=E(a),o=X(n)?n:null,l=t.get(o)??[];t.set(o,[...l,i])}),t}_handleCollapseToggle(){this.collapsed=!this.collapsed}async _openRelatedFeature(e){this._cancelOpenRelatedFeature();let t=new AbortController;this._openRelatedFeatureAbortController=t,await e.updateGeometry();let i=e.graphic,a=i?.geometry;if(a==null||i==null)return;this._removeFlowItems(),await this.viewModel.zoomTo({target:a});let n=W(a);n!=null&&(this.location=n),this.features=[i],this.open=!0,await this.setFocus(),this._openRelatedFeatureAbortController===t&&(this._openRelatedFeatureAbortController=null)}_handlePaginationMenuButton(){this._updateFeatureMenu()}_openFeatureMenu(){this._updateFeatureMenu(!0)}_closeFeatureMenu(){this._updateFeatureMenu(!1)}_updateFeatureMenu(e=!this.featureMenuOpen){this.featureMenuOpen=e}_previousFeature(){this.viewModel.previous()}_nextFeature(){this.viewModel.next()}_handleFeatureBack(){this.initialDisplayMode==="list"?(this.selectedFeatureIndex=-1,this.setFocus()):this._openFeatureMenu()}_handleFeatureMenuBack(){this.initialDisplayMode==="list"?(this.selectedFeatureIndex=-1,this.setFocus()):this.featureMenuOpen&&this._closeFeatureMenu()}_setActiveFeature(e){let{viewModel:t}=this;t.activeFeature=t.features?.[e]||null}_removeActiveFeature(){this.viewModel.activeFeature=null}_selectFeature(e){this.viewModel.selectedFeatureIndex=e,this.initialDisplayMode==="feature"?this._handleFeatureMenuBack():this.setFocus()}_unobserveFeatureMenuObserver(){this._featureMenuIntersectionObserverNode&&this._featureMenuIntersectionObserver.unobserve(this._featureMenuIntersectionObserverNode)}_featureMenuIntersectionObserverCreated(e){this._unobserveFeatureMenuObserver(),e&&this._featureMenuIntersectionObserver.observe(e),this._featureMenuIntersectionObserverNode=e}_getActionTitle(e){let{messages:t,selectedFeature:i}=this,{id:a}=e,n=i?.attributes,o=e.title??"",l=a==="zoom-to-feature"?h(o,{messages:t}):a==="remove-selected-feature"?h(o,{messages:t}):a==="zoom-to-clustered-features"?h(o,{messages:t}):a==="browse-clustered-features"?h(o,{messages:t}):e.title;return l&&n?h(l,n):l??""}_onMainKeydown(e){let{key:t}=e;t==="ArrowLeft"&&(e.stopPropagation(),this._handleFeatureMenuBack(),this.previous(),this.setFocus()),t==="ArrowRight"&&(e.stopPropagation(),this._handleFeatureMenuBack(),this.next(),this.setFocus())}_featureMenuViewportScrollTop(){this._featureMenuViewportNode&&this._featureMenuViewportNode.value?.scrollContentTo({top:0})}_selectedFeatureIndexUpdated(e,t){let{featureCount:i,waitingForResult:a}=this.viewModel;a||!i||e===t||e===-1||(this._removeFlowItems(),this._rootFlowItemNode.value?.scrollContentTo({top:0}))}_triggerAction(e){this.triggerAction(e),this.arcgisTriggerAction.emit({action:e})}_viewChange(){this.viewModel.clear(),this.viewModel.visible=!1}_closeOpenActionMenu(){let{_actionBarMenuNode:e}=this;e.value&&(e.value.menuOpen=!1)}_removeFlowItems(){this.flowItems?.destroyAll()}_getDrillInFlowItemDescription(e){switch(e.flowType){case"feature":case"feature-association":case"feature-utility-network-associations":case"feature-utility-network-association-type":return e.description;case"feature-relationship":return e.allItemsDescription}}_handleDrillInBackClick(){this.flowItems?.pop()?.destroy()}_getHeading(){let{hideHeading:e}=this,{title:t,selectedFeatureViewModel:i}=this.viewModel;return i&&!e?i?.state==="error"?this.messages?.errorMessage??"":i?.title||"":!e&&t?t:""}async _destroySpinner(e){e?.manager?.component?.extraContent?.remove(this._spinnerEl)}async _createSpinner(){let e=this.referenceElement;e&&(await this._destroySpinner(e),this._spinnerEl=T(s`<arcgis-spinner auto-destroy-disabled .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))}render(){return s`<div class="root" @keydown=${this._onMainKeydown}>${this._renderHeader()}${this._renderContentContainer()}</div>`}_renderFeatureNavigation(){return[this._renderPagination(),this.initialDisplayMode==="list"?this._renderFeaturePaginationText():this._renderFeatureMenuButton()]}_renderHeader(){return this.featureNavigationTop&&this._featureNavigationVisible?s`<div class="header">${this._renderFeatureNavigation()}</div>`:null}_renderFooter(){return!this.featureNavigationTop&&this._featureNavigationVisible?s`<div class="footer" slot=footer>${this._renderFeatureNavigation()}</div>`:null}_renderFeaturePaginationText(){let{messages:e,viewModel:t}=this,{featureCount:i,selectedFeatureIndex:a}=t;return s`<div class="pagination-text">${h(e.pageText??"",{index:F(a+1),total:F(i)})}</div>`}_renderFeatureMenuButton(){let{messages:e,viewModel:t}=this,{featureCount:i,selectedFeatureIndex:a,pendingPromisesCount:n}=t;return s`<calcite-action class="pagination-menu-button" icon=list .label=${e.selectFeature} .loading=${n>0} @click=${this._handlePaginationMenuButton} .text=${h(e.pageText??"",{index:F(a+1),total:F(i)})} text-enabled title=${e.selectFeature??c}></calcite-action>`}_renderPagination(){let{previous:e,next:t}=this.messages;return s`<calcite-action-bar class="pagination-action-bar" expand-disabled layout=horizontal overflow-actions-disabled scale=s><calcite-action-group scale=s><calcite-action class="pagination-previous" icon=chevron-left icon-flip-rtl .label=${e??""} @click=${this._previousFeature} .text=${e??""} title=${e??""??c}></calcite-action><calcite-action icon=chevron-right icon-flip-rtl .label=${t??""} @click=${this._nextFeature} .text=${t??""} title=${t??""??c}></calcite-action></calcite-action-group></calcite-action-bar>`}_renderFeatureMenuItem(e){let{initialDisplayMode:t}=this,{selectedFeatureViewModel:i,featureViewModels:a}=this.viewModel,n=e===i,o=a.indexOf(e);return s`<calcite-list-item @blur=${this._removeActiveFeature} @focus=${()=>this._setActiveFeature(o)} @mouseleave=${this._removeActiveFeature} @mouseover=${()=>this._setActiveFeature(o)} .selected=${n} @calciteListItemSelect=${()=>this._selectFeature(o)}><span .innerHTML=${(P.sanitize(e.title)||this.messages.untitled)??""} slot=content></span>${t==="list"?s`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`:null}</calcite-list-item>`}_renderFeatureMenu(){let{messages:e,viewModel:t}=this,i=this._groupResultsByLayer(),a=this.initialDisplayMode==="list"?"none":"single";return t.featureViewModels.length?s`<calcite-list display-mode=flat .label=${e?.featuresList??""} selection-appearance=icon .selectionMode=${a}>${Array.from(i.keys(),n=>{let o=i.get(n)?.map(r=>this._renderFeatureMenuItem(r)),l=n?n.title??this.messages.untitled:null;return!this.hideFeatureListLayerTitle&&l!==null?b(n??"map-graphics",s`<calcite-list-item-group .heading=${l}>${o}</calcite-list-item-group>`):o})}</calcite-list>`:null}_renderHeaderAction(e){let t=e.title||"";return e.visible?s`<calcite-action .active=${e.type==="toggle"?e.value:!1} .disabled=${e.disabled} .icon=${e.icon??void 0} .indicator=${e.active} .loading=${e.active} @click=${()=>this._triggerAction(e)} slot=header-actions-end .text=${t} title=${t??c}></calcite-action>`:null}_renderHeaderActions(){return this.headerActions.map(e=>this._renderHeaderAction(e)).toArray()}_renderContentFeature(){let{headingLevel:e,hideCloseButton:t,_isCollapsed:i,_collapseEnabled:a,featureNavigationTop:n,flowItems:o,initialDisplayMode:l,selectedFeature:r,featureMenuOpen:p}=this,{active:g}=this.viewModel,f=this._getHeading();if(l==="list"&&!r)return null;let $=o.length===0&&(l==="list"?!!r:!p);return s`<calcite-flow-item class=${m(_({"content-feature":!0,"flow-item-collapsed":i}))} .closable=${!t} .closed=${!g} .collapsed=${i} .collapseDirection=${n?"down":"up"} .collapsible=${a} .headingLevel=${e} .selected=${$} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${A(f)} ${v(this._rootFlowItemNode)}>${this._renderHeaderActions()}${this._renderActionBar()}<div class=${m(_("container","content-container"))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`}_renderFeatureMenuContainer(){let{viewModel:e,hideCloseButton:t,featureMenuTitle:i,messages:a,initialDisplayMode:n,featureMenuOpen:o,selectedFeature:l,_collapseEnabled:r,_isCollapsed:p,featureNavigationTop:g,headingLevel:f}=this,{active:$,featureViewModels:H,pendingPromisesCount:S}=e,z=i??a.selectFeature;if(n==="feature"&&!o)return null;let U=n==="list"?!l:o;return s`<calcite-flow-item class=${m(_({"flow-item-collapsed":p}))} .closable=${n==="list"&&!t} .closed=${!$} .collapsed=${n==="list"&&p} .collapseDirection=${g?"down":"up"} .collapsible=${n==="list"&&r} .description=${this.hideFeatureMenuHeading?void 0:h(a.total??"",{total:H.length})} .heading=${this.hideFeatureMenuHeading?void 0:z} .headingLevel=${f} .loading=${e.waitingForContents} .selected=${U} @calciteFlowItemBack=${Z=>{Z.preventDefault(),this._handleFeatureMenuBack()}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${v(this._featureMenuViewportNode)}>${n==="list"?this._renderHeaderActions():null}${S>0?s`<calcite-loader class="loader" inline .label=${a.loading??""} slot=header-actions-end></calcite-loader>`:null}<div class="container">${this._renderFeatureMenu()}</div><div class="feature-menu-observer" ${v(this._featureMenuIntersectionObserverCreated)}></div>${n==="feature"?s`<calcite-button appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full>${a.back}</calcite-button>`:null}</calcite-flow-item>`}_renderFlowItem(e,t){let{messages:i,hideCloseButton:a,active:n}=this,o="graphic"in e&&"isFeatureFromTable"in e&&!e.isFeatureFromTable,l=e.flowType==="feature-association",r=i.returnToInitialFeature??"",p=i?.selectFeature,g=this._getActionTitle(C);return s`<calcite-flow-item .closable=${!a} .closed=${!n} .description=${A(this._getDrillInFlowItemDescription(e)??"")} .heading=${this.hideHeading?void 0:A(e.heading??"")} .selected=${t} @calciteFlowItemBack=${f=>{f.preventDefault(),this._handleDrillInBackClick()}} .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??""??c}></calcite-action>${o?s`<calcite-action icon=zoom-to-object @click=${()=>this._openRelatedFeature(e)} slot=header-actions-end .text=${p??""} title=${p??c}></calcite-action>`:null}${l?s`<calcite-action-bar expand-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${C.disabled} .icon=${C.icon??void 0} .loading=${C.active} scale=s text-enabled .text=${g} title=${g??c} @click=${()=>B(this.viewModel,e)}></calcite-action></calcite-action-group></calcite-action-bar>`:null}<div class="container">${e}</div></calcite-flow-item>`}_renderContentContainer(){let e=this.flowItems?.toArray(),t=e?.map((a,n)=>this._renderFlowItem(a,this.initialDisplayMode==="list"||!this.featureMenuOpen&&n===e.length-1)),i=this.initialDisplayMode==="list"?[this._renderFeatureMenuContainer(),this._renderContentFeature(),t]:[this._renderContentFeature(),t,this._renderFeatureMenuContainer()];return s`<calcite-flow ${v(this._flowContainerNode)}>${i}</calcite-flow>`}_renderActionBar(){return!this._isCollapsed&&!this.hideActionBar&&this.viewModel.allActions?.length?s`<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}_renderActions(){return this.viewModel.allActions.toArray().map(e=>{let t=this._getActionTitle(e);return s`<calcite-action .active=${e.type==="toggle"?e.value:!1} .disabled=${e.disabled} .icon=${e.icon??void 0} .loading=${e.active} scale=s .textEnabled=${!this._hideActionText} .text=${t??""} title=${t??c} .hidden=${!e.visible} @click=${()=>this._triggerAction(e)}></calcite-action>`})}_renderContent(){let{content:e,selectedFeatureViewModel:t}=this.viewModel;return t?b(t,s`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .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"?b(e,s`<div .innerHTML=${P.sanitize(e)??""}></div>`):e??null}};k("arcgis-features",y);return y},"widgets/Features/FeaturesViewModel","intl","core/reactiveUtils","applications/Components/stringUtils","core/Collection","applications/Components/sanitizerUtils","applications/Components/featureUtils",a,d,e,f,g,h)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import a from"./EVC4MXIZ.js";import"./7WLTT4K3.js";import{a as w}from"./24PK3ZLX.js";import"./LVMJAMRO.js";import"./NWK2WHZF.js";import"./MSMDSEFM.js";import{M as f,N as v,O as b,U as $,a as y,b as r,p as d,r as g,s as _,x as o}from"./PTWLVTFS.js";import"./3TTFCHAA.js";export default $arcgis.t(([{queryAllJSON:R},C,,h,,T,{r:m}])=>{var k=y`:host{min-height:var(--arcgis-internal-panel-height-sm, 240px);height:100%}arcgis-features{height:100%}calcite-flow{min-height:var(--arcgis-internal-panel-height-sm, 240px);height:100%}calcite-table{--calcite-table-border-color: none}calcite-table-row{--calcite-table-row-border-color: var(--calcite-color-border-3)}.white-panel-background{--calcite-panel-background-color: var(--calcite-color-foreground-1)}.aggregated-geometry-container{display:flex;justify-content:space-between;padding:0 var(--calcite-spacing-md) var(--calcite-spacing-md) var(--calcite-spacing-md)}#elements-list-item{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);margin:0 var(--calcite-spacing-sm)}.no-selectable-results{padding:0 var(--calcite-spacing-md);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size)}.results-heading{display:flex;flex-direction:column;margin:var(--calcite-spacing-md);gap:var(--calcite-spacing-xs)}.results-heading .results-heading-title{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.results-heading .results-heading-subtitle{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3)}.functions-heading{padding:var(--calcite-spacing-md) var(--calcite-spacing-md) var(--calcite-spacing-xxs) var(--calcite-spacing-md);font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;margin:var(--calcite-spacing-sm) var(--calcite-spacing-xl) var(--calcite-spacing-xl) var(--calcite-spacing-xl);gap:var(--calcite-spacing-md)}.no-results-landing calcite-icon{margin-bottom:var(--calcite-spacing-sm);--calcite-icon-color: var(--calcite-color-text-3)}.no-results-landing .no-results-heading{font-size:var(--calcite-font-size-2)}.no-results-landing .no-results-description{color:var(--calcite-color-text-3)}`,F={dirtyAreasDiscovered:-2147208511,noValidControllers:-2147208935},p=class extends b{constructor(){super(...arguments),this._messages=w({blocking:!0}),this._elementsWithoutLayer=[],this._featuresComponentRef=f(),this._featuresFromSelectedLayer=[],this._layerIdToFeatures=new Map,this._layerIdToLayer=new Map,this._subtypeCodeToFeatures=new Map,this._sourceIdToElements=new Map,this._unLayers=[],this._compareByFeatureTitle=(e,t)=>e.label.localeCompare(t.label,void 0,{numeric:!0}),this._compareByLayerTitle=([,e],[,t])=>{let s=e[0].feature.layer,a=t[0].feature.layer,i=s?.title??"",c=a?.title??"";return i.localeCompare(c,void 0,{numeric:!0})},this._queryFeaturesOnLayer=async([e,t])=>{let s=this.utilityNetwork?.getLayerIdBySourceId(e),a=this._getLayerByLayerId(s);if(s==null||!a){this._elementsWithoutLayer.push(...t);return}let i=a.createQuery();i.gdbVersion=this.utilityNetwork?.gdbVersion,i.objectIds=t.map(l=>l.objectId),i.outFields=["*"];let{features:c}=T.fromJSON(await R(a,i)),n=await Promise.all(c.map(async l=>{l.layer=a.type==="subtype-group"?a.findSublayerForFeature(l):a;let u=l.layer;if(u&&"getFeatureTitle"in u){let L=await u.getFeatureTitle(l)||m(l);return{feature:l,label:L}}return{feature:l,label:m(l)}}));a.type==="subtype-group"?n.forEach(l=>this._addOrCreateMapValue(this._subtypeCodeToFeatures,l.feature.layer.subtypeCode,l)):this._layerIdToFeatures.set(s,n)},this.aggregatedGeometryGraphicsColor=new C([255,255,0,.6]),this.hideFeatureResults=!1,this.isElementsSelected=!1,this.layers=[],this.state="ready",this.traceResultFeatures=[],this.arcgisAggregatedGeometryGraphicsColorChange=o(),this.arcgisHideGraphicsChange=o(),this.arcgisSelectedLayerChange=o(),this.arcgisSelectedResultTypeChange=o(),this.arcgisTraceResultFeaturesReady=o(),this._renderLayerListItem=([,e])=>{if(!e.length)return null;let t=e[0].feature.layer,s=t?.title||this._messages.unknown;return r`<calcite-list-item .label=${s} @calciteListItemSelect=${()=>this._setSelectedLayerAndFeatures(t)}><calcite-chip .label=${this._messages.labels.numElements} slot=content-end scale=s>${e.length}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item>`},this._renderFeatureListItem=e=>{let{feature:t,label:s}=e;return r`<calcite-list-item .label=${s} @calciteListItemSelect=${()=>this.selectedFeature=t}><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item>`}}static{this.properties={aggregatedGeometryGraphicsColor:0,hideFeatureResults:5,featuresFromSelectedLayer:32,isElementsSelected:5,layers:0,messageOverrides:0,referenceElement:1,selectedFeature:0,selectedLayer:0,state:1,traceConfigTitle:1,traceError:0,traceResult:0,traceResultFeatures:0,utilityNetwork:0,view:0}}static{this.styles=k}get featuresFromSelectedLayer(){return this._featuresFromSelectedLayer.map(({feature:e})=>e)}load(){this.traceResult&&(this._setSourceIdToElements(),this._loadDependencies().then(()=>this._queryTraceResultsFeatures()).then(()=>this._loadProjectOperator()).finally(()=>{this.arcgisTraceResultFeaturesReady.emit(),this.state="ready"}))}willUpdate(e){e.has("isElementsSelected")&&this.arcgisSelectedResultTypeChange.emit(),e.has("selectedLayer")&&this.arcgisSelectedLayerChange.emit(),e.has("traceResult")&&(this.isElementsSelected=!1),(e.has("layers")||e.has("utilityNetwork"))&&this._loadDependencies()}loaded(){this.utilityNetwork||d("warn",this,g("utilityNetwork")),this.layers.length===0&&d("warn",this,_("layers")),this.view||d("warn",this,g("view"))}_addOrCreateMapValue(e,t,s){let a=e.get(t);a==null?e.set(t,[s]):a.push(s)}_getLayerByLayerId(e){if(e==null)return;let{_layerIdToLayer:t,_unLayers:s}=this;if(t.get(e))return t.get(e);let a=s.find(i=>"layerId"in i&&i.layerId===e);return a&&t.set(e,a),a}_handleHideGraphicsChange(e){e.stopPropagation(),this.arcgisHideGraphicsChange.emit(e.detail)}async _loadDependencies(){let{layers:e,utilityNetwork:t}=this;if(!t)return;t.loaded||(this.state="loading",await t.load()),this._unLayers=e.filter(a=>t.isUtilityLayer(a));let s=this._unLayers.filter(a=>!a.loaded).map(a=>a.load());s.length>0&&(this.state="loading",await Promise.allSettled(s))}async _loadProjectOperator(){let{aggregatedGeometry:e}=this.traceResult;e&&!h.isLoaded()&&await h.load()}async _queryTraceResultsFeatures(){let e=Array.from(this._sourceIdToElements.entries());if(!e.length)return;this.state="loading";let t=e.map(this._queryFeaturesOnLayer);(await Promise.allSettled(t)).forEach((i,c)=>{if(i.status==="rejected"){let[n]=e[c];d("error",this,`Failed to query features for source ${n}. Reason: ${i.reason}`)}});let s=Array.from(this._layerIdToFeatures.values()),a=Array.from(this._subtypeCodeToFeatures.values());this.traceResultFeatures=s.concat(a).flat().map(({feature:i})=>i)}_setSelectedLayerAndFeatures(e){let t;if(!e)t=[];else if(e.type==="subtype-sublayer"){let{subtypeCode:s}=e;t=this._subtypeCodeToFeatures.get(s)??[]}else{let{layerId:s}=e;t=this._layerIdToFeatures.get(s)??[]}this._featuresFromSelectedLayer=t.sort(this._compareByFeatureTitle),this.selectedLayer=e}_setSourceIdToElements(){this.traceResult.elements?.forEach(e=>this._addOrCreateMapValue(this._sourceIdToElements,e.networkSourceId,e))}render(){let{traceError:e,traceResult:t}=this;if(e)return this._renderErrorLanding(e);if(!t)return this._renderNoTraceLanding();let{elements:s,globalFunctionResults:a,aggregatedGeometry:i}=t;if(!s.length&&!a.length&&!i)return this._renderNoResultsLanding();if(this.state==="loading")return this._renderGettingResults();if(this.selectedFeature){let n=this._featuresComponentRef.value,l=n?.selectedFeature?[n.selectedFeature]:[this.selectedFeature];return r`<arcgis-features .referenceElement=${this.referenceElement} .features=${l} .view=${this.view} open @arcgisClose=${()=>this.selectedFeature=void 0} ${v(this._featuresComponentRef)}></arcgis-features>`}let c=s.length>0&&!a.length&&!i;return this.hideFeatureResults&&c?this._renderFeaturesAreHidden():r`<calcite-flow>${c?null:r`<calcite-flow-item .selected=${!this.isElementsSelected}>${this._renderLanding(t)}</calcite-flow-item>`}<calcite-flow-item .heading=${this._messages.headings.features} .description=${this._messages.headings.totalFeatures.replace("{number}",this.traceResultFeatures.length.toString())} .selected=${(c||this.isElementsSelected)&&!this.selectedLayer} @calciteFlowItemBack=${()=>this.isElementsSelected=!1}>${this._renderLayerList()}</calcite-flow-item><calcite-flow-item .heading=${this.selectedLayer?.title??void 0} .description=${this._messages.headings.totalFeatures.replace("{number}",this._featuresFromSelectedLayer.length.toString())} .selected=${!!this.selectedLayer} @calciteFlowItemBack=${()=>this.selectedLayer=void 0}>${this._renderFeaturesList()}</calcite-flow-item></calcite-flow>`}_renderGettingResults(){return r`<calcite-panel class="white-panel-background"><calcite-loader .label=${this._messages.gettingResults} .text=${this._messages.gettingResults}></calcite-loader></calcite-panel>`}_renderLanding(e){let{elements:t,globalFunctionResults:s,aggregatedGeometry:a}=e;return r`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}${a!=null?this._renderAggregatedGeometry(a):null}${a!=null&&!t.length?this._renderNoSelectableResults():null}${t.length>0?this.hideFeatureResults?this._renderFeaturesAreHidden():this._renderElementsResults():null}${s.length>0?this._renderFunctionsResults(s):null}</calcite-panel>`}_renderAggregatedGeometry(e){return r`<div class="aggregated-geometry-container"><arcgis-utility-network-aggregated-geometry .graphicsColor=${this.aggregatedGeometryGraphicsColor} .geometry=${e} .view=${this.view} @arcgisHideGraphicsChange=${this._handleHideGraphicsChange}></arcgis-utility-network-aggregated-geometry><calcite-swatch id=geometry-color-swatch .label=${this._messages.labels.aggregatedGeometryGraphicsColor} .color=${this.aggregatedGeometryGraphicsColor.toCss()}></calcite-swatch><calcite-popover .heading=${this._messages.headings.setColor} .label=${this._messages.headings.setColor} reference-element=geometry-color-swatch closable><calcite-color-picker alpha-channel channels-disabled clearable hex-disabled saved-disabled .value=${this.aggregatedGeometryGraphicsColor} @calciteColorPickerChange=${t=>{let s=t.target.value;this.arcgisAggregatedGeometryGraphicsColorChange.emit(s)}}></calcite-color-picker></calcite-popover></div>`}_renderFeaturesAreHidden(){return r`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-selectable-results">${this._messages.resultFeaturesAreHidden}</div></calcite-panel>`}_renderNoSelectableResults(){return r`<div class="no-selectable-results">${this._messages.noSelectableFeatures}</div>`}_renderElementsResults(){return r`<calcite-list .label=${this._messages.headings.traceResultsGeneric}><calcite-list-item id=elements-list-item .label=${this._messages.headings.features} @calciteListItemSelect=${()=>this.isElementsSelected=!0}><calcite-chip .label=${this._messages.labels.numFeatures} scale=s slot=content-end>${this.traceResultFeatures.length}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item></calcite-list>`}_renderFunctionsResults(e){return r`<div class="functions-heading">${this._messages.headings.functions}</div><calcite-table .caption=${this._messages.labels.functionResults}>${e.filter(t=>t.networkAttributeName!=null&&t.result!=null).map(t=>r`<calcite-table-row><calcite-table-cell>${t.networkAttributeName}</calcite-table-cell><calcite-table-cell>${t.result}</calcite-table-cell></calcite-table-row>`)}</calcite-table>`}_renderLayerList(){let e=Array.from(this._layerIdToFeatures.entries()),t=Array.from(this._subtypeCodeToFeatures.entries()),s=e.concat(t).sort(this._compareByLayerTitle).map(this._renderLayerListItem);return this._elementsWithoutLayer.length>0&&s.push(this._renderUnknownListItem()),r`<calcite-list .label=${this._messages.labels.traceResultElementsByLayer} .loading=${this.state==="loading"}>${s}</calcite-list>`}_renderUnknownListItem(){return r`<calcite-list-item .label=${this._messages.unknown}><calcite-chip .label=${this._messages.labels.numElements} slot=content-end scale=s>${this._elementsWithoutLayer.length}</calcite-chip></calcite-list-item>`}_renderFeaturesList(){return r`<calcite-list .label=${this._messages.headings.traceResultsGeneric}>${this._featuresFromSelectedLayer.map(this._renderFeatureListItem)}</calcite-list>`}_renderTraceResultsHeading(){return r`<div class="results-heading"><div class="results-heading-title">${this._messages.headings.traceResultsGeneric}</div>${this.traceConfigTitle?r`<div class="results-heading-subtitle">${this.traceConfigTitle}</div>`:null}</div>`}_renderErrorLanding(e){let t=e.message;switch(e.details?.raw?.extendedCode){case F.dirtyAreasDiscovered:t=this._messages.traceErrors.dirtyAreasDiscovered;break;case F.noValidControllers:t=this._messages.traceErrors.noValidControllers;break}return r`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${this._messages.traceFailedHeading}</div><div class="no-results-description">${this._messages.traceFailedDescription}</div><div class="no-results-description">${t}</div></div></calcite-panel>`}_renderNoResultsLanding(){return r`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${this._messages.noResultsHeading}</div><div class="no-results-description">${this._messages.noResultsDescription}</div></div></calcite-panel>`}_renderNoTraceLanding(){return r`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-results-landing"><calcite-icon icon=utility-network-trace scale=l></calcite-icon><div class="no-results-heading">${this._messages.noTraceConfigHeading}</div><div class="no-results-description">${this._messages.noTraceConfigDescription}</div></div></calcite-panel>`}};$("arcgis-utility-network-trace-results",p);return p},"applications/Components/featureUtils","Color","core/Error","geometry/operators/shapePreservingProjectOperator","Graphic","rest/support/FeatureSet",a)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{j as m}from"./CIUAWIL5.js";import"./BEXRPBHT.js";import"./J7ZNOOZ4.js";import{v as p}from"./FEQLUSM2.js";import"./EYW7YQF6.js";import"./V3M37NHT.js";import"./MW73TE2N.js";import"./3TTFCHAA.js";export default $arcgis.t(([{getLocale:a,getLocaleLanguage:n}])=>{p("AM5C241025748");var e="en-US",o=new Map([["ar",()=>import("./E2KWMQKQ.js")],["bg-BG",()=>import("./YHVFARHN.js")],["bs-BA",()=>import("./LCXF3AKY.js")],["ca-ES",()=>import("./QAXR4LT6.js")],["cs-CZ",()=>import("./YDJGMRV3.js")],["da-DK",()=>import("./2ZL4CF6P.js")],["de-DE",()=>import("./DDI363AI.js")],["de-CH",()=>import("./UVZZX6YP.js")],["el-GR",()=>import("./CRR65TKV.js")],["en-US",()=>import("./GB42YXHR.js")],["en-CA",()=>import("./5OB4E5PR.js")],["es-ES",()=>import("./W5XM52J7.js")],["et-EE",()=>import("./PHF2XKSK.js")],["fi-FI",()=>import("./76ESM6B2.js")],["fr-FR",()=>import("./RDW2NJPR.js")],["he-IL",()=>import("./X5H6ZUFX.js")],["hr-HR",()=>import("./W5B5LTGN.js")],["hu-HU",()=>import("./DEOCASGG.js")],["id-ID",()=>import("./YP3JKXC4.js")],["it-IT",()=>import("./FPD3STSJ.js")],["ja-JP",()=>import("./7FMJZURP.js")],["ko-KR",()=>import("./L4WRYSKZ.js")],["lt-LT",()=>import("./CHDRBZNL.js")],["lv-LV",()=>import("./JDPQMOEW.js")],["no-NO",()=>import("./DWZIXPJ4.js")],["nb-NO",()=>import("./DWZIXPJ4.js")],["nl-NL",()=>import("./55VMVXRK.js")],["pl-PL",()=>import("./BQIH5T3S.js")],["pt-BR",()=>import("./YMU5IPMP.js")],["pt-PT",()=>import("./RCD5UKTW.js")],["ro-RO",()=>import("./ZLIZCBGT.js")],["ru-RU",()=>import("./B7IYR676.js")],["sk-SK",()=>import("./JMDNJPNT.js")],["sl-SL",()=>import("./W2Q7NWBG.js")],["sr-RS",()=>import("./ORP3ZND2.js")],["sv-SE",()=>import("./KAJ3U6DP.js")],["th-TH",()=>import("./HZTWWEVM.js")],["tr-TR",()=>import("./ZFFBK3VO.js")],["uk-UA",()=>import("./UQ7E33T4.js")],["vi-VN",()=>import("./OSRAPPNR.js")],["zh-CN",()=>import("./PUOWH3YL.js")],["zh-HK",()=>import("./M6TJN2I5.js")],["zh-TW",()=>import("./M6TJN2I5.js")]]);function s(t){if(!t)return e;if(o.has(t))return t;let r=n();return r&&o.has(r)?r:e}async function l(t,r=a()){let i=m.new(t);return i.locale=(await o.get(s(r))()).default,i}return l},"intl")
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import g from"./4PWBNKOA.js";import e from"./BUE7MOVD.js";import{a as N}from"./TVTQW6GC.js";import d from"./YSDQ5VNK.js";import{a as P}from"./24PK3ZLX.js";import"./YMPJFJHK.js";import c from"./INS77MCT.js";import a from"./POEZXWTT.js";import{h as E}from"./LVMJAMRO.js";import"./NWK2WHZF.js";import"./BMR2YFEM.js";import{b,f as x}from"./MSMDSEFM.js";import{M as h,N as u,O as z,P as v,Q as D,U as A,a as C,b as p,x as f}from"./PTWLVTFS.js";import"./3TTFCHAA.js";export default $arcgis.t(([H,{stripHTML:V},{watch:l},I,,,F,,$])=>{var R=C`:host{display:contents;--arcgis-internal-popup-pointer-size: 12px;--arcgis-internal-popup-content-small-size: 280px;--arcgis-internal-popup-content-medium-size: 340px;--arcgis-internal-popup-content-large-size: 400px;--arcgis-internal-popup-content-x-large-size: 460px;--arcgis-internal-popup-content-min-size-y: 48px;--arcgis-internal-popup-pointer-size-half: calc(var(--arcgis-internal-popup-pointer-size) / 2);--arcgis-internal-popup-pointer-size-half-negative: calc(var(--arcgis-internal-popup-pointer-size-half) * -1)}.root{display:flex;position:absolute;flex-flow:column nowrap;z-index:401;pointer-events:none;border:none;overflow:visible;padding:0;width:auto;height:auto;background-color:transparent}.hidden{visibility:hidden}.root:popover-open{display:flex;flex-flow:column nowrap;margin:0}arcgis-features{flex:1;width:100%}.shadow{box-shadow:var(--calcite-shadow-sm)}.aligned-top-center{transform-origin:50% 100%}.aligned-bottom-center{transform-origin:50% -5%}.aligned-top-left,.aligned-bottom-left{transform-origin:100% 50%}.aligned-top-right,.aligned-bottom-right{transform-origin:-5% 50%}.aligned-top-center,.aligned-top-left,.aligned-top-right{animation:popup-intro-animation-down .2s ease-in-out}.aligned-bottom-center,.aligned-bottom-left,.aligned-bottom-right{animation:popup-intro-animation-up .2s ease-in-out}.main-container{display:flex;position:relative;z-index:1;background-color:var(--calcite-color-foreground-1);width:var(--arcgis-internal-popup-content-medium-size);min-height:var(--arcgis-internal-popup-content-min-size-y);max-height:var(--arcgis-internal-popup-content-medium-size);overflow:hidden;pointer-events:auto}.pointer{position:absolute;width:0;height:0}.pointer-direction{position:absolute;width:var(--arcgis-internal-popup-pointer-size);height:var(--arcgis-internal-popup-pointer-size);content:"";background-color:var(--calcite-color-foreground-1)}.aligned-top-center .pointer{top:100%;left:50%;margin:0 0 0 var(--arcgis-internal-popup-pointer-size-half-negative)}.aligned-bottom-center .pointer{bottom:100%;left:50%;margin:0 0 0 var(--arcgis-internal-popup-pointer-size-half-negative)}.aligned-top-left .pointer{right:var(--arcgis-internal-popup-pointer-size-half);bottom:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(-45deg)}.aligned-bottom-left .pointer{top:var(--arcgis-internal-popup-pointer-size-half);right:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(45deg)}.aligned-top-right .pointer{bottom:var(--arcgis-internal-popup-pointer-size-half);left:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(45deg)}.aligned-bottom-right .pointer{top:var(--arcgis-internal-popup-pointer-size-half);left:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(-45deg)}.aligned-top-center .pointer-direction,.aligned-bottom-center .pointer-direction{transform:scale(.75,2) rotate(45deg)}.aligned-top-left .pointer-direction,.aligned-bottom-left .pointer-direction,.aligned-top-right .pointer-direction,.aligned-bottom-right .pointer-direction{top:var(--arcgis-internal-popup-pointer-size-half-negative);left:var(--arcgis-internal-popup-pointer-size-half-negative);transform:scale(.75,2.5) rotate(45deg)}.aligned-top-center .pointer-direction{top:var(--arcgis-internal-popup-pointer-size-half-negative);left:0}.aligned-bottom-center .pointer-direction{bottom:var(--arcgis-internal-popup-pointer-size-half-negative);left:0}.is-xl-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-x-large-size)}.is-lg-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-large-size)}.is-md-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-medium-size)}.is-sm-width-breakpoint .main-container,.is-xs-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-small-size)}.is-xs-width-breakpoint.is-docked-top-center,.is-xs-width-breakpoint.is-docked-bottom-center{margin:0;width:auto}.is-xs-width-breakpoint.is-docked-top-center .main-container,.is-xs-width-breakpoint.is-docked-bottom-center .main-container{position:absolute;right:0;left:0;width:100%;max-height:75%}.is-xs-width-breakpoint.is-docked-bottom-center .main-container{bottom:0}.is-xs-width-breakpoint.is-docked-top-center .main-container{top:0}.is-xl-height-breakpoint .main-container{max-height:var(--arcgis-internal-popup-content-x-large-size)}.is-lg-height-breakpoint .main-container{max-height:var(--arcgis-internal-popup-content-large-size)}.is-sm-height-breakpoint .main-container,.is-xs-height-breakpoint .main-container{max-height:var(--arcgis-internal-popup-content-small-size)}.is-docked{flex-flow:row nowrap;inset:0;margin:var(--arcgis-layout-overlay-space-top, 0) var(--arcgis-layout-overlay-space-right, 0) var(--arcgis-layout-overlay-space-bottom, 0) var(--arcgis-layout-overlay-space-left, 0);padding:var(--calcite-spacing-lg) var(--calcite-spacing-lg) var(--calcite-spacing-xxxl) var(--calcite-spacing-lg);animation:docking-animation .25s ease-out}.is-docked-top-left,.is-docked-top-center,.is-docked-top-right{align-items:flex-start}.is-docked-bottom-left,.is-docked-bottom-center,.is-docked-bottom-right{align-items:flex-end}.is-docked-top-left,.is-docked-bottom-left{justify-content:flex-start}.is-docked-top-center,.is-docked-bottom-center{justify-content:center}.is-docked-top-right,.is-docked-bottom-right{justify-content:flex-end}.is-docked-top-left .main-container,.is-docked-top-right .main-container,.is-docked-bottom-left .main-container,.is-docked-bottom-right .main-container{max-height:80%}.is-docked-top-center .main-container,.is-docked-bottom-center .main-container{max-height:40%}:dir(rtl) .is-docked-top-left,:dir(rtl) .is-docked-bottom-left{justify-content:flex-end}:dir(rtl) .is-docked-top-right,:dir(rtl) .is-docked-bottom-right{justify-content:flex-start}@media(prefers-reduced-motion){.aligned-top-center,.aligned-top-left,.aligned-top-right,.aligned-bottom-center,.aligned-bottom-left,.aligned-bottom-right{animation:none}}@media(prefers-reduced-motion){.is-docked{animation:none}}@keyframes docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{transform:translateY(calc(var(--calcite-spacing-xs) * -1));opacity:0}to{transform:translate(0);opacity:1}}@keyframes popup-intro-animation-up{0%{transform:translateY(var(--calcite-spacing-xs));opacity:0}to{transform:translate(0);opacity:1}}`;function k(w){return w&&Number.parseInt(w.replaceAll(/[^-\d.]/gu,""),10)||0}var j=F(H),L={buttonEnabled:!0,position:"auto",breakpoint:{width:544}},M=class extends z{constructor(){super(...arguments),this._featuresComponent=h(),this._dockAction=new I({id:"popup-dock-action"}),this._mainContainerNode=h(),this._pointerNode=h(),this.messages=P({}),this.viewModel=j(this),this._containerNode=h(),this._popupResizeObserver=new ResizeObserver(()=>this._positionContainer()),this._positionContainer=()=>{this.positionStyle=this._calculatePositionStyle()},this.screenLocation=$(this),this.actions=this.viewModel.actions,this.active=this.viewModel.active,this.alignment="auto",this.autoCloseEnabled=this.viewModel.autoCloseEnabled,this.autoDestroyDisabled=!1,this.collapsed=!1,this.content=this.viewModel.content,this.defaultPopupTemplateEnabled=this.viewModel.defaultPopupTemplateEnabled,this.dockEnabled=!1,this.featureCount=this.viewModel.featureCount,this.featureMenuOpen=this.viewModel.featureMenuOpen,this.featureMenuTitle=this.viewModel.featureMenuTitle,this.features=this.viewModel.features,this.goToOverride=this.viewModel.goToOverride,this.heading=this.viewModel.title,this.headingLevel=2,this.hideActionBar=!1,this.hideCloseButton=!1,this.hideCollapseButton=!1,this.hideFeatureMenuHeading=!1,this.hideFeatureNavigation=!1,this.hideFeatureListLayerTitle=!1,this.hideHeading=!1,this.hideSpinner=!1,this.highlightDisabled=this.viewModel.highlightEnabled,this.includeDefaultActionsDisabled=this.viewModel.includeDefaultActions,this.initialDisplayMode=this.viewModel.initialDisplayMode,this.location=this.viewModel.location,this.promises=this.viewModel.promises,this.selectedFeature=this.viewModel.selectedFeature,this.selectedFeatureIndex=this.viewModel.selectedFeatureIndex,this.state=this.viewModel.state,this.topLayerDisabled=!1,this.updateLocationEnabled=this.viewModel.updateLocationEnabled,this.view=this.viewModel.view,this.arcgisPropertyChange=E()("active","collapsed","currentAlignment","dockEnabled","featureCount","featureMenuOpen","features","promises","selectedDrillInFeature","selectedFeature","selectedFeatureComponent","selectedFeatureIndex","state","open"),this.arcgisReady=f(),this.arcgisClose=f(),this.arcgisTriggerAction=f()}static{this.properties={screenLocation:16,positionStyle:16,_featureNavigationTop:16,actions:0,active:0,alignment:1,autoCloseEnabled:5,autoDestroyDisabled:5,collapsed:5,content:1,currentAlignment:32,currentDockPosition:32,defaultPopupTemplateEnabled:5,dockEnabled:5,dockOptions:0,featureCount:0,featureMenuOpen:5,featureMenuTitle:1,features:0,goToOverride:0,heading:1,headingLevel:9,hideActionBar:5,hideCloseButton:5,hideCollapseButton:5,hideFeatureMenuHeading:5,hideFeatureNavigation:5,hideFeatureListLayerTitle:5,hideHeading:5,hideSpinner:5,highlightDisabled:5,includeDefaultActionsDisabled:5,initialDisplayMode:1,label:1,location:0,messageOverrides:0,open:5,promises:0,referenceElement:1,selectedDrillInFeature:32,selectedFeature:0,selectedFeatureComponent:32,selectedFeatureIndex:9,state:32,topLayerDisabled:5,updateLocationEnabled:5,view:0}}static{this.styles=R}get trackLocation(){return this.viewModel.active&&!this.dockEnabled}get _featureNavigationTop(){let{currentAlignment:e,currentDockPosition:t}=this;return e==="bottom-left"||e==="bottom-center"||e==="bottom-right"||t==="top-left"||t==="top-center"||t==="top-right"}get currentAlignment(){return this._getCurrentAlignment()}get currentDockPosition(){return this._getCurrentDockPosition()}get dockOptions(){return this._dockOptions||L}set dockOptions(e){let t={...L},i=this.viewModel?.view?.breakpoints,o={};i&&(o.width=i.xsmall,o.height=i.xsmall);let n={...t,...e},a={...t.breakpoint,...o},{breakpoint:r}=n;typeof r=="object"?n.breakpoint={...a,...r}:r&&(n.breakpoint=a),this._dockOptions=n}get open(){return this.viewModel.visible}set open(e){this.viewModel.visible=e}get selectedDrillInFeature(){return this._featuresComponent.value?.selectedDrillInFeature??null}get selectedFeatureComponent(){return this._featuresComponent.value?.selectedFeatureComponent??null}async handleViewClick(e){return this.viewModel.handleViewClick(e)}async clear(){return this.viewModel.clear()}async destroy(){await this.manager.destroy(),this._dockAction.destroy(),this._popupResizeObserver.disconnect()}async fetchFeatures(e,t){return await this._featuresComponent.value?.fetchFeatures(e,t)}async next(){return this.viewModel.next()}async previous(){return this.viewModel.previous()}async setFocus(){this._featuresComponent.value?.setFocus()}async triggerAction(e){return await this._featuresComponent.value?.triggerAction(e)}loaded(){this.manager.onLifecycle(()=>[l(()=>[this.viewModel?.view?.widthBreakpoint,this.dockEnabled],()=>this._handleDockIcon(),{initial:!0}),l(()=>[this.dockEnabled,this.messages?.undock,this.messages?.dock],()=>this._handleDockEnabled(),{initial:!0}),l(()=>this.dockOptions,e=>{let{_dockAction:t}=this,i=this._featuresComponent.value?.headerActions;i?.remove(t),e.buttonEnabled&&i?.add(t)},{initial:!0}),l(()=>[this._pointerNode.value,this.alignment,this.currentAlignment,this.dockEnabled,this.dockOptions,this.screenLocation,this.viewModel?.active,this.viewModel?.location,this.viewModel?.view?.size],()=>this._positionContainer(),{initial:!0}),l(()=>this._mainContainerNode.value,(e,t)=>{t&&this._popupResizeObserver.unobserve(t),e&&this._popupResizeObserver.observe(e)},{initial:!0}),l(()=>this.viewModel?.view?.size,(e,t)=>this._updateDockEnabledForViewSize(e,t)),l(()=>this.viewModel?.view?.ready,()=>this._setDockEnabledForViewSize(this.dockOptions),{initial:!0}),l(()=>this.view?.map,e=>{this.viewModel.map=e},{initial:!0}),l(()=>this.screenLocation,(e,t)=>this._autoClose(e,t)),l(()=>[this.viewModel.active,this._containerNode.value,this.dockEnabled,this.topLayerDisabled],()=>this._togglePopover(),{initial:!0})])}_togglePopover(){this.viewModel.active&&!this.dockEnabled&&!this.topLayerDisabled?this._containerNode.value?.showPopover():this._containerNode.value?.hidePopover()}_handleClose(e){e.stopPropagation(),this.arcgisClose.emit()}_autoClose(e,t){this.autoCloseEnabled&&e!=null&&t!=null&&(this.open=!1)}_handleArcgisPropertyChange(e){e.detail.name==="collapsed"&&(this.collapsed=e.target.collapsed)}_handleArcgisTriggerAction(e){e.stopPropagation(),e.detail.action===this._dockAction&&(this.dockEnabled=!this.dockEnabled),this.arcgisTriggerAction.emit({action:e.detail.action})}_isOutsideView(e){let{popupHeight:t,popupWidth:i,screenLocation:o,side:n,view:a}=e;return Number.isNaN(i)||Number.isNaN(t)||!a||!o?!1:n==="right"&&o.x+i/2>a.width||n==="left"&&o.x-i/2<0||n==="top"&&o.y-t<0||n==="bottom"&&o.y+t>a.height}_getPointerSize(){let{_pointerNode:e}=this,t=e.value?window.getComputedStyle(e.value):null,i=k(t?.height),o=k(t?.width);return Math.hypot(i,o)}_calculateAutoAlignment(e){if(e!=="auto")return e;let{_mainContainerNode:t,_popupRect:i,viewModel:o}=this,{view:n}=o,{screenLocation:a}=this;if(a==null||!n||!i||!t.value)return"top-center";let r=window.getComputedStyle(t.value),d=k(r.maxHeight),s=k(r.height),c=this._getPointerSize(),{height:_,width:O}=i,g=O+c,m=Math.max(_,d,s)+c,T=this._isOutsideView({popupHeight:m,popupWidth:g,screenLocation:a,side:"right",view:n}),S=this._isOutsideView({popupHeight:m,popupWidth:g,screenLocation:a,side:"left",view:n}),y=this._isOutsideView({popupHeight:m,popupWidth:g,screenLocation:a,side:"top",view:n}),B=this._isOutsideView({popupHeight:m,popupWidth:g,screenLocation:a,side:"bottom",view:n});return S?y?"bottom-right":"top-right":T?y?"bottom-left":"top-left":y?B?"top-center":"bottom-center":"top-center"}_callCurrentAlignment(e){return typeof e=="function"?e.call(this):e}_getCurrentAlignment(){return this.dockEnabled||!this.viewModel.active||!this._mainContainerNode.value?null:this._calculatePositionResult(this._calculateAutoAlignment(this._callCurrentAlignment(this.alignment)))}_calculatePositionResult(e){let t=["left","right"];return x(this.el)==="rtl"&&t.reverse(),e?.replace(/start/giu,t[0]).replace(/end/giu,t[1])}_callDockPosition(e){return typeof e=="function"?e.call(this):e}_getDockPosition(){return this._calculatePositionResult(this._calculateAutoDockPosition(this._callDockPosition(this.dockOptions?.position)))}_getCurrentDockPosition(){return this.dockEnabled&&this.viewModel.active?this._getDockPosition():null}_calculateAutoDockPosition(e){if(e!=="auto")return e;let t=this.viewModel?.view,i=x(this.el)==="rtl"?"top-left":"top-right";if(!t)return i;let{breakpoints:o}=t;return o?.xsmall&&t.width<=o.xsmall?"bottom-center":i}_getDockIcon(){let e=this._getDockPosition();if(this.dockEnabled)return"minimize";switch(e){case"top-left":case"bottom-left":return"dock-left";case"top-center":return"maximize";case"bottom-center":return"dock-bottom";case"top-right":case"bottom-right":default:return"dock-right"}}_handleDockIcon(){this._dockAction.icon=this._getDockIcon()}_handleDockEnabled(){this._dockAction.title=this.dockEnabled?this.messages?.undock:this.messages?.dock}_calculateAlignmentPosition(e,t,i,o){if(e<0||t<0||!i||!o||e>i.width||t>i.height)return;let{currentAlignment:n}=this,a=this._getPointerSize(),r=a/2;if(n==="top-left")return{top:t+i.top-(o.height+r),left:e+i.left-o.width-r};if(n==="top-center")return{top:t+i.top-(o.height+a),left:e+i.left-o.width/2};if(n==="top-right")return{top:t+i.top-(o.height+r),left:e+i.left+r};if(n==="bottom-left")return{top:t+i.top+r,left:e+i.left-o.width-r};if(n==="bottom-center")return{top:t+i.top+a,left:e+i.left-o.width/2};if(n==="bottom-right")return{top:t+i.top+r,left:e+i.left+r}}_calculatePositionStyle(){let{screenLocation:e}=this,t=this.view?.container?.getBoundingClientRect(),i=this._mainContainerNode.value?.getBoundingClientRect();if(this._popupRect=i,this.dockEnabled)return{top:"0px",left:"0px",bottom:"0px",right:"0px"};if(e==null)return;let o=this._calculateAlignmentPosition(e.x,e.y,t,i);if(o)return{top:o.top!==void 0?`${o.top}px`:"auto",left:o.left!==void 0?`${o.left}px`:"auto",bottom:o.bottom!==void 0?`${o.bottom}px`:"auto",right:o.right!==void 0?`${o.right}px`:"auto"}}_dockingThresholdCrossed(e,t,i){let[o,n]=e,[a,r]=t,{width:d=0,height:s=0}=i??{};return o<=d&&a>d||o>d&&a<=d||n<=s&&r>s||n>s&&r<=s}_updateDockEnabledForViewSize(e,t){if(!e||!t)return;let{dockOptions:i}=this,o=i.breakpoint;typeof o=="object"&&this._dockingThresholdCrossed(e,t,o)&&this._setDockEnabledForViewSize(i)}_shouldDockAtCurrentViewSize(e){let t=e.breakpoint,i=this.viewModel?.view?.ui;if(!i)return!1;let{width:o,height:n}=i;if(Number.isNaN(o)||Number.isNaN(n)||typeof t!="object")return!1;let a=typeof t.width=="number"&&o<=(t.width??0),r=typeof t.height=="number"&&n<=(t.height??0);return a||r}_setDockEnabledForViewSize(e){this.viewModel?.view?.ready&&typeof e.breakpoint=="object"&&(this.dockEnabled=this._shouldDockAtCurrentViewSize(e))}render(){let{dockEnabled:e,currentAlignment:t,currentDockPosition:i,positionStyle:o}=this,{active:n,view:a}=this.viewModel,r=n&&e,d=n&&!e,s=a?.widthBreakpoint,c=a?.heightBreakpoint,_={"aligned-top-center":t==="top-center","aligned-bottom-center":t==="bottom-center","aligned-top-left":t==="top-left","aligned-bottom-left":t==="bottom-left","aligned-top-right":t==="top-right","aligned-bottom-right":t==="bottom-right","is-docked":r,shadow:d,"is-docked-top-left":i==="top-left","is-docked-top-center":i==="top-center","is-docked-top-right":i==="top-right","is-docked-bottom-left":i==="bottom-left","is-docked-bottom-center":i==="bottom-center","is-docked-bottom-right":i==="bottom-right","is-xl-width-breakpoint":s==="xlarge","is-lg-width-breakpoint":s==="large","is-md-width-breakpoint":s==="medium","is-sm-width-breakpoint":s==="small","is-xs-width-breakpoint":s==="xsmall","is-xl-height-breakpoint":c==="xlarge","is-lg-height-breakpoint":c==="large","is-md-height-breakpoint":c==="medium","is-sm-height-breakpoint":c==="small","is-xs-height-breakpoint":c==="xsmall"};return p`<div style=${D(this.positionStyle)} class=${v(b("root",_,{hidden:!n||!o&&!e}))} .ariaHidden=${!n} .ariaLabel=${V(this.heading??"")} role=dialog popover=manual ${u(this._containerNode)}>${this._renderMainContainer()}${this._renderPointer()}</div>`}_renderPointer(){return!this.dockEnabled||!this.active?p`<div class="pointer" role=presentation><div class=${v(b("pointer-direction","shadow"))} ${u(this._pointerNode)}></div></div>`:null}_renderMainContainer(){let e={shadow:this.dockEnabled};return p`<div class=${v(b("main-container",e))} ${u(this._mainContainerNode)}>${N(this.viewModel,p`<arcgis-features .collapsed=${this.collapsed} .autoDestroyDisabled=${this.autoDestroyDisabled} .featureNavigationTop=${this._featureNavigationTop} .headingLevel=${this.headingLevel} .hidden=${!this.active} .hideActionBar=${this.hideActionBar} .hideCloseButton=${this.hideCloseButton} .hideFeatureListLayerTitle=${this.hideFeatureListLayerTitle} .hideFeatureMenuHeading=${this.hideFeatureMenuHeading} .hideFeatureNavigation=${this.hideFeatureNavigation} .hideHeading=${this.hideHeading} .hideSpinner=${this.hideSpinner} @arcgisPropertyChange=${this._handleArcgisPropertyChange} @arcgisTriggerAction=${this._handleArcgisTriggerAction} @arcgisClose=${this._handleClose} .referenceElement=${this.referenceElement} .responsiveActionsEnabled=${!0} .showCollapseButton=${!this.hideCollapseButton} .viewModel=${this.viewModel} ${u(this._featuresComponent)}></arcgis-features>`)}</div>`}};A("arcgis-popup",M);return M},"widgets/Features/FeaturesViewModel","applications/Components/stringUtils","core/reactiveUtils","support/actions/ActionButton",a,c,d,e,g)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import a from"./EVC4MXIZ.js";import{a as C,b as L}from"./7WLTT4K3.js";import{a as $}from"./ZATCJZP2.js";import{a as N}from"./24PK3ZLX.js";import{h as T}from"./LVMJAMRO.js";import"./NWK2WHZF.js";import"./MSMDSEFM.js";import{M as y,N as k,O as _,U as S,a as f,b as s,p as d,r as w,s as b,x as c}from"./PTWLVTFS.js";import"./3TTFCHAA.js";export default $arcgis.t(([{queryAllJSON:v},l,{substitute:U},I,P,A,E,g,M,{watch:x},{r:u}])=>{var B=f`:host{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)}.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)}`,F=`utility-network-trace-inputs-sketch-${Date.now()}`,h=`utility-network-trace-inputs-flags-${Date.now()}`,R=20,p=class extends _{constructor(){super(...arguments),this._messages=N({blocking:!0}),this._layerIdToLayer=new Map,this._startingPoints=new l,this._barriers=new l,this._stoppingPoints=new l,this._subnetworkTraceTypes=new Set(["subnetwork","subnetwork-controller","upstream","downstream","isolation"]),this._removeDuplicateSubnetworkNames=(e,t,i)=>t===0||e.getAttribute("SUBNETWORKNAME")!==i[t-1].getAttribute("SUBNETWORKNAME"),this._hitTestPromise=null,this._featuresFromHitTest=[],this._featuresComponentRef=y(),this._displayLimit=20,this.compatibleSubnetworkNames=[],this.traceConfigurations=[],this._state="ready",this._exceedDisplayLimit=!1,this.mode="default",this.arcgisTraceInputsChange=c(),this.arcgisUtilityNetworkChange=c(),this.arcgisSelectedNamedTraceConfigurationChange=c(),this.arcgisTraceLocationSelectStart=c(),this.arcgisTraceLocationSelectEnd=c(),this.arcgisPropertyChange=T()("mode"),this.renderFeatureListItem=e=>{let{feature:t,label:i}=e;return s`<calcite-list-item .label=${i} @calciteListItemSelect=${()=>this._handleFeatureSelectChange(t)}><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item>`}}static{this.properties={compatibleSubnetworkNames:16,subnetworksTable:16,traceConfigurations:16,utilityNetworks:16,_unTraceConfiguration:16,_state:16,_activeTraceLocationType:16,_selectedFeature:16,_exceedDisplayLimit:16,beforeTraceLocationSelectStart:0,view:0,selectedUtilityNetwork:0,selectedNamedTraceConfiguration:0,unTraceConfiguration:32,referenceElement:1,mode:3,traceLocations:32}}static{this.styles=B}get isSubnetworkNameTraceSelected(){let e=this.selectedNamedTraceConfiguration?.traceType;return!!this.selectedNamedTraceConfiguration?.traceConfiguration?.subnetworkName&&e==="subnetwork"}get selectedSubnetworkName(){return this._unTraceConfiguration?.subnetworkName??void 0}set selectedSubnetworkName(e){this._unTraceConfiguration&&(this._unTraceConfiguration.subnetworkName=e)}get _allLayers(){let{view:e}=this;return e?.map?e.map.allLayers.toArray().concat(e.map.allTables.toArray()):[]}get unTraceConfiguration(){return this._unTraceConfiguration}get traceLocations(){let e=[],t=i=>{i.flagProperties.terminalConfiguration&&i.flagProperties.selectedTerminals?i.flagProperties.selectedTerminals.forEach(a=>{e.push(new A({type:i.traceLocation.type,isFilterBarrier:i.traceLocation.isFilterBarrier,globalId:i.traceLocation.globalId,percentAlong:i.traceLocation.percentAlong,terminalId:a}))}):e.push(i.traceLocation)};return this._startingPoints.forEach(i=>t(i)),this._barriers.forEach(i=>t(i)),this._stoppingPoints.forEach(i=>t(i)),e}load(){this.manager.onLifecycle(()=>[x(()=>this.view?.map,()=>{this._setupUtilityNetwork(),this._setupSketchViewModel()},{initial:!0})])}willUpdate(e){let{utilityNetworks:t,selectedUtilityNetwork:i}=this;(e.has("utilityNetworks")||!t||t.length===0||!i||!t?.includes(i))&&this._handleUtilityNetworksChange(),e.has("selectedUtilityNetwork")&&(this.arcgisUtilityNetworkChange.emit(),this._handleSelectedUtilityNetworkChange()),e.has("selectedNamedTraceConfiguration")&&(this.arcgisTraceInputsChange.emit(),this.arcgisSelectedNamedTraceConfigurationChange.emit(),this._handleTraceConfigChange()),e.has("selectedSubnetworkName")&&this.arcgisTraceInputsChange.emit()}_clearTraceLocations(){this._getGraphicLayer(h)?.removeAll(),this._startingPoints.removeAll(),this._barriers.removeAll(),this._stoppingPoints.removeAll()}_createGraphicLayer(e){let{map:t}=this.view;if(!t?.findLayerById(e)){let i=new I({id:e,listMode:"hide",title:e});C(this.view,i)}}_getGraphicLayer(e){let{map:t}=this.view;if(t){let i=t.findLayerById(e);if(L(i))return t.reorder(i,t.layers.length-1),i}return null}_setSnappingOption(){let{_sketchViewModel:e,_unLayers:t}=this;if(e&&t&&t.length>0){let i=new l;t.forEach(a=>{a.type==="subtype-group"?a.sublayers.forEach(r=>{i.add(new g({layer:r,enabled:!0}))}):i.add(new g({layer:a,enabled:!0}))}),e.snappingOptions={enabled:!0,featureEnabled:!0,featureSources:i}}}_initializeSketchViewModel(){let{view:e,_unLayers:t}=this,i=this._getGraphicLayer(F),a=new l;return t?.forEach(r=>a.add(new g({layer:r,enabled:!0}))),new M({layer:i,view:e})}_setupSketchViewModel(){this._createGraphicLayer(F),this._createGraphicLayer(h),this._sketchViewModel=this._initializeSketchViewModel()}_clearSubnetworks(){this.selectedSubnetworkName=void 0,this.subnetworksTable=void 0,this.compatibleSubnetworkNames=[]}async _loadSubnetworksTable(){this.subnetworksTable||(this.subnetworksTable=await this.selectedUtilityNetwork?.loadSubnetworksTable())}async _querySubnetworks(){let{subnetworksTable:e}=this;if(!e)return;let t=e.createQuery();t.gdbVersion=this.selectedUtilityNetwork?.gdbVersion,t.where=this._getSubnetworkQueryWhereClause(),t.outFields=["SUBNETWORKNAME"],t.orderByFields=["SUBNETWORKNAME"];let i=E.fromJSON(await v(e,t));this.compatibleSubnetworkNames=i.features.filter(this._removeDuplicateSubnetworkNames).map(a=>a.getAttribute("SUBNETWORKNAME"))}_getSubnetworkQueryWhereClause(){let e=this._unTraceConfiguration,t=`DOMAINNETWORKNAME = '${e.domainNetworkName}'`,i=`TIERNAME = '${e.tierName}'`;return[t,i].join(" AND ")}async _handleSubnetworkTraceConfigChange(e){await this._loadSubnetworksTable(),await this._querySubnetworks();let{compatibleSubnetworkNames:t}=this;e.subnetworkName&&!t.some(i=>i===e.subnetworkName)&&(this.selectedSubnetworkName=t.at(0))}_selectTraceConfigurationByGuid(e){let t=this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.find(i=>i.globalId===e);if(!t){d("error",this,"`traceConfig` not found in `selectedUtilityNetwork.sharedNamedTraceConfigurations`");return}this.selectedNamedTraceConfiguration=t}_handleTraceConfigChange(){let{selectedNamedTraceConfiguration:e}=this;if(!(e?.traceConfiguration instanceof P)){d("error",this,w("selectedNamedTraceConfiguration.traceConfiguration")),this._unTraceConfiguration=void 0;return}switch(this._unTraceConfiguration=e.traceConfiguration.clone(),e.traceType){case"subnetwork":this._state="loading",this._handleSubnetworkTraceConfigChange(this._unTraceConfiguration).finally(()=>this._state="ready");break}}async _handleSelectedUtilityNetworkChange(){await this.selectedUtilityNetwork?.load(),this._clearSubnetworks(),this._setupTraceConfigurations(),this._filterUnLayers(),this._clearTraceLocations()}_setupTraceConfigurations(){this._unTraceConfiguration=void 0,this.traceConfigurations=this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.filter(e=>e.traceType!=="path"&&e.traceType!=="circuit")||[],this.selectedNamedTraceConfiguration=this.traceConfigurations.at(0)}_filterUnLayers(){let{selectedUtilityNetwork:e}=this;this._unLayers=new l(this._allLayers.filter(t=>e?.isUtilityLayer(t))),this._setSnappingOption()}_handleUtilityNetworksChange(){let{utilityNetworks:e}=this;if(!e||e.length===0){this._state="error",d("error",this,b("utilityNetworks"));return}(!this.selectedUtilityNetwork||!e.includes(this.selectedUtilityNetwork))&&(this.selectedUtilityNetwork=e.at(0))}async _setupUtilityNetwork(){if(this.view?.map){let e=this.view.map;await e.load(),this.utilityNetworks=e.utilityNetworks||void 0}else this._state="disabled",d("error",this,"The property `view.map` is required to load utility networks but is missing.")}_handleTraceLocationSelectStart(e){if(e.stopPropagation(),this.arcgisTraceLocationSelectStart.emit(e.detail).defaultPrevented){e.preventDefault();return}this._activeTraceLocationType=e?.target?.traceLocationType,this.mode="add-spatial-instructions"}_getLayerByLayerId(e){if(e==null)return;let{_layerIdToLayer:t,_unLayers:i}=this;if(t.get(e))return t.get(e);if(!i)return;let a=i.find(r=>"layerId"in r&&r.layerId===e);return a&&t.set(e,a),a}async _queryFeatures(e,t){let i=e.createQuery();i.gdbVersion=this.selectedUtilityNetwork?.gdbVersion,i.objectIds=t.map(r=>r.getObjectId()),i.outFields=["*"];let{features:a}=E.fromJSON(await v(e,i));return a.forEach(r=>{r.layer=e.type==="subtype-group"?e.findSublayerForFeature(r):e,r.origin=r.layer}),a}async _populateFeaturesWithLabel(e){let t=new Map;e.forEach(a=>{let r=a.layer?.type==="subtype-sublayer"?a.layer.parent:a.layer;if(r){let o=r.layerId,n=this._getLayerByLayerId(o);if(n){let m=t.get(n)||[];m.push(a),t.set(n,m)}}});let i=[];return await Promise.all(Array.from(t.keys()).map(async a=>{let r=t.get(a)??[],o=await this._queryFeatures(a,r);i.push(...o)})),await Promise.all(i.map(async a=>{let r=a.layer;if(r&&"getFeatureTitle"in r){let o=await r.getFeatureTitle(a)||u(a);return{feature:a,label:o}}return{feature:a,label:u(a)}}))}async _handleHitTestComplete(e){return this._exceedDisplayLimit=e.length>this._displayLimit,this._featuresFromHitTest=await this._populateFeaturesWithLabel(e.slice(0,this._displayLimit)),this._featuresFromHitTest.length===0?(this._handleAddSpatialCancelClick(),await Promise.reject(Error("No features found"))):(this.mode="add-spatial-feature-list",this._hitTestPromise?.reject(),this._hitTestPromise=Promise.withResolvers(),await this._hitTestPromise.promise)}_handleTraceLocationSelectEnd(e){e.stopPropagation(),this.arcgisTraceLocationSelectEnd.emit(),this._activeTraceLocationType=void 0,this.mode="default",this._handleAddSpatialCancelClick()}_handleAddSpatialCancelClick(e){e?.stopPropagation();let t=this._featuresComponentRef.value;t&&t.clear(),this._selectedFeature=void 0,this.mode="default",this._sketchViewModel?.cancel(),this._hitTestPromise?.reject(),this._hitTestPromise=null}_handleFeaturesClose(){this.mode="add-spatial-feature-list",this._selectedFeature=void 0}_handleAddSpatialAddClick(){let{_hitTestPromise:e,_featuresComponentRef:t}=this;if(e&&t?.value){let i=t.value,a=i.selectedDrillInFeature??i.selectedFeature;if(!a)return;e.resolve(a),this._hitTestPromise=null}}_handleFeatureSelectChange(e){this._selectedFeature=e,this.mode="add-spatial-feature"}renderError(e,t=!1,i){return s`<calcite-notice .closable=${t} kind=danger open scale=s width=auto .icon=${i}><div slot=message>${e}</div></calcite-notice>`}renderLoader(){return s`<calcite-loader label=loading></calcite-loader>`}renderTraceSelection(){let{_messages:e,traceConfigurations:t}=this,i=e.labels.traceConfiguration;if(t.length===0)return this.renderError(e.errors.noTraceConfigurationError,!0);let a=$(t,r=>r.globalId,r=>s`<calcite-option .value=${r.globalId}>${r.title}</calcite-option>`);return s`<calcite-block .heading=${i} .label=${i} expanded><calcite-select .label=${i} .value=${this.selectedNamedTraceConfiguration?.globalId||void 0} @calciteSelectChange=${r=>{this._selectTraceConfigurationByGuid(r.target.value)}}>${a}</calcite-select></calcite-block>`}renderUtilityNetworkSelection(){let{_messages:e}=this,t=e.labels.utilityNetwork,i=this.utilityNetworks?.map(a=>s`<calcite-option .value=${a.id}>${a.title}</calcite-option>`);return s`<calcite-block .heading=${t} .label=${t} expanded><calcite-select .label=${t} .value=${this.selectedUtilityNetwork?.id} @calciteSelectChange=${a=>{this.selectedUtilityNetwork?.id!==a.target.value&&(this.selectedUtilityNetwork=this.utilityNetworks?.find(r=>r.id===a.target.value))}}>${i}</calcite-select></calcite-block>`}renderDefaultMode(){let{_messages:e,_state:t,mode:i}=this;return s`<calcite-flow-item .selected=${i==="default"}>${t==="disabled"?this.renderError(e.errors.noMapError):this.renderContent()}</calcite-flow-item>`}renderSpatialSelectInstructions(){let{_messages:e,_activeTraceLocationType:t,mode:i}=this,a=t==="starting-point"?e.labels.addSpatial.startingPoint:t==="barrier"?e.labels.addSpatial.barrier:e.labels.addSpatial.stoppingPoint;return s`<calcite-flow-item .selected=${i==="add-spatial-instructions"} .heading=${a} @calciteFlowItemBack=${r=>this._handleAddSpatialCancelClick(r)}><div class="add-spatial-mode"><div><h5 class="heading">${e.instructions.addSpatial.selectFeature.heading}</h5>${e.instructions.addSpatial.selectFeature.subheading}</div><div><h5 class="heading">${e.instructions.addSpatial.selectAssociatedFeature.heading}</h5>${e.instructions.addSpatial.selectAssociatedFeature.subheading}</div></div></calcite-flow-item>`}renderFeaturesList(e){return s`<calcite-list label="Feature list">${e.map(this.renderFeatureListItem)}</calcite-list>`}renderHitTestResults(){let{_messages:e,_activeTraceLocationType:t,_featuresFromHitTest:i,mode:a}=this,r=t==="starting-point"?e.labels.addSpatial.startingPoint:t==="barrier"?e.labels.addSpatial.barrier:e.labels.addSpatial.stoppingPoint;return s`<calcite-flow-item .selected=${a==="add-spatial-feature-list"} .heading=${r} @calciteFlowItemBack=${o=>this._handleAddSpatialCancelClick(o)}>${this.renderFeaturesList(i)}</calcite-flow-item>`}renderSelectedFeature(){let{_selectedFeature:e}=this;if(!e)return this.mode="default",null;let t=this._featuresComponentRef.value,i=t?.selectedFeature?[t.selectedFeature]:[e];return s`<arcgis-features .referenceElement=${this.referenceElement} .features=${i} .view=${this.view} open @arcgisClose=${()=>this._handleFeaturesClose()} ${k(this._featuresComponentRef)}></arcgis-features>`}renderAddSpatialFooter(){let{mode:e,_messages:t,selectedUtilityNetwork:i,_selectedFeature:a}=this,r=U(t.warnings.exceededDisplayLimit,{limit:this._displayLimit.toString()}),o=e==="add-spatial-feature-list"&&this._exceedDisplayLimit,n=a?!(i?.isUtilityLayer(a.layer)??!0):!0;return s`${o&&s`<calcite-input-message icon=exclamation-mark-circle status=idle>${r}</calcite-input-message>`||""}<calcite-button appearance=outline width=full @click=${()=>{this._handleAddSpatialCancelClick()}} slot=footer>${t.buttons.cancel}</calcite-button>${e==="add-spatial-feature"&&s`<calcite-button width=full slot=footer appearance=solid @click=${()=>{this._handleAddSpatialAddClick()}} .disabled=${n}>${t.buttons.add}</calcite-button>`||""}`}renderStartingPointSelection(){return s`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=starting-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${()=>this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(h)} .traceLocations=${this._startingPoints} .afterHitTest=${this._handleHitTestComplete.bind(this)}></arcgis-utility-network-trace-location>`}renderStoppingPointSelection(){return s`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=stopping-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${()=>this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(h)} .traceLocations=${this._stoppingPoints} .afterHitTest=${this._handleHitTestComplete.bind(this)}></arcgis-utility-network-trace-location>`}renderBarrierSelection(){return s`<arcgis-utility-network-trace-location .view=${this.view} trace-location-type=barrier .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this._handleTraceLocationSelectStart} @arcgisTraceLocationSelectEnd=${this._handleTraceLocationSelectEnd} @arcgisTraceLocationChange=${()=>this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this._sketchViewModel} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this._unLayers} .flagLayer=${this._getGraphicLayer(h)} .traceLocations=${this._barriers} .afterHitTest=${this._handleHitTestComplete.bind(this)}></arcgis-utility-network-trace-location>`}renderSubnetworkNameInput(){return s`<calcite-input clearable type=text .placeholder=${this._messages.instructions.enterSubnetworkName} max-length=64 .value=${this.selectedSubnetworkName} @calciteInputInput=${e=>this.selectedSubnetworkName=e.target.value}></calcite-input><calcite-input-message icon=exclamation-mark-triangle status=idle>${this._messages.labels.tooManySubnetworks}</calcite-input-message>`}renderSubnetworkSelectList(){return s`<calcite-select .label=${this._messages.labels.subnetworkName} .value=${this.selectedSubnetworkName} @calciteSelectChange=${e=>this.selectedSubnetworkName=e.target.value}>${this.compatibleSubnetworkNames.map(e=>s`<calcite-option .value=${e}>${e}</calcite-option>`)}</calcite-select>`}renderSubnetworkSelection(){let{compatibleSubnetworkNames:e}=this,t=this._messages.labels.subnetworkName;return this.isSubnetworkNameTraceSelected?this._state==="loading"?s`<calcite-loader class="inline-loader" label=loading scale=s></calcite-loader>`:e.length?s`<calcite-block .heading=${t} .label=${t} expanded>${e.length>R?this.renderSubnetworkNameInput():this.renderSubnetworkSelectList()}</calcite-block>`:this.renderError(this._messages.errors.noCompatibleSubnetworks,!1,"exclamation-mark-triangle"):null}renderSubnetworkInfo(){let{_messages:e,selectedNamedTraceConfiguration:t,_unTraceConfiguration:i}=this;return i&&t?.traceType&&this._subnetworkTraceTypes.has(t.traceType)?s`<calcite-block id=subnetwork-info-block expanded .label=${e.labels.subnetworkInfo}><arcgis-utility-network-subnetwork-info .namedTraceConfig=${t}></arcgis-utility-network-subnetwork-info></calcite-block>`:null}renderContent(){let{utilityNetworks:e}=this,t=this.selectedNamedTraceConfiguration?.traceConfiguration;if(!e||e.length===0)return this.renderError(this._messages.errors.noUtilityNetworkError);let i=s`${this.renderTraceSelection()}${this.renderSubnetworkInfo()}${this.renderSubnetworkSelection()}`,a=this.selectedNamedTraceConfiguration?.traceType,r=!this.isSubnetworkNameTraceSelected,o=a==="path"||a==="circuit",n=s`${r?this.renderStartingPointSelection():null}${o?this.renderStoppingPointSelection():null}${this.renderBarrierSelection()}`;return s`<calcite-block-group .label=${this._messages.labels.traceInputs}>${e.length>1?this.renderUtilityNetworkSelection():null}${this.selectedUtilityNetwork?.loaded?i:this.renderLoader()}${t?n:null}</calcite-block-group>`}render(){let{mode:e}=this;return s`<calcite-panel>${e==="add-spatial-feature"?this.renderSelectedFeature():s`<calcite-flow>${this.renderDefaultMode()}${this.renderSpatialSelectInstructions()}${this.renderHitTestResults()}</calcite-flow>`}${e!=="default"?this.renderAddSpatialFooter():null}</calcite-panel>`}};S("arcgis-utility-network-trace-inputs",p);return p},"applications/Components/featureUtils","core/Collection","intl","layers/GraphicsLayer","networks/support/UNTraceConfiguration","rest/networks/support/TraceLocation","rest/support/FeatureSet","views/interactive/snapping/FeatureSnappingLayerSource","widgets/Sketch/SketchViewModel","core/reactiveUtils",a)