@esri/solutions-components 1.0.0-next.20250509 → 1.0.0-next.20250513

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 (417) hide show
  1. package/dist/cdn/{SBBAYIA5.js → 2AE65J7Z.js} +2 -2
  2. package/dist/cdn/{H2PYJODK.js → 2FXMJWEJ.js} +2 -2
  3. package/dist/cdn/{DGJOUZR5.js → 2HQWNDOT.js} +1 -1
  4. package/dist/cdn/{NLKCNLQB.js → 2HW4GV5C.js} +2 -2
  5. package/dist/cdn/{L5MZYQWZ.js → 2LWA3LPI.js} +2 -2
  6. package/dist/cdn/2MC74LFI.js +18 -0
  7. package/dist/cdn/{2X42FQPI.js → 2PNI22UK.js} +2 -2
  8. package/dist/cdn/{ZSNDJE3R.js → 2QX2DZO7.js} +1 -1
  9. package/dist/cdn/{Z6MML6SM.js → 2Y7EB6IS.js} +1 -1
  10. package/dist/cdn/{MEXCWFXO.js → 2ZOPKOQW.js} +2 -2
  11. package/dist/cdn/33R6U7YA.js +18 -0
  12. package/dist/cdn/{XGZPINBJ.js → 356X3OF7.js} +2 -2
  13. package/dist/cdn/{AW6GVVCK.js → 37UTA2CS.js} +2 -2
  14. package/dist/cdn/{NL5SZJG7.js → 3DPLKEDU.js} +2 -2
  15. package/dist/cdn/{TEJLYLG3.js → 3KNYDGE4.js} +2 -2
  16. package/dist/cdn/{OPAFHR65.js → 3P3P323U.js} +2 -2
  17. package/dist/cdn/{CQFOO7QD.js → 3RC2WF5B.js} +1 -1
  18. package/dist/cdn/{7XWBWQ4G.js → 3S3YE7LS.js} +2 -2
  19. package/dist/cdn/{ITBKHXR7.js → 3WNCCUTZ.js} +1 -1
  20. package/dist/cdn/{55Q3UBSS.js → 3WW3YWCT.js} +2 -2
  21. package/dist/cdn/{7Q3MQPSX.js → 3Y5R5IUQ.js} +2 -2
  22. package/dist/cdn/{UB2OSPCQ.js → 4745A7PL.js} +1 -1
  23. package/dist/cdn/47R5RC4C.js +18 -0
  24. package/dist/cdn/{IM7QQB4B.js → 47WHCZIM.js} +2 -2
  25. package/dist/cdn/{5G5LFIDR.js → 4CCXX3SG.js} +2 -2
  26. package/dist/cdn/{VM5WBDOI.js → 4DVIYVRO.js} +2 -2
  27. package/dist/cdn/{PRM3M7W3.js → 4HNFRLEB.js} +2 -2
  28. package/dist/cdn/{MESJIE5F.js → 4M3HYUSJ.js} +2 -2
  29. package/dist/cdn/{XDHR67UO.js → 4SNRICQS.js} +2 -2
  30. package/dist/cdn/{3K5XH7WO.js → 4YGER5QC.js} +1 -1
  31. package/dist/cdn/{XXMXWRAP.js → 4Z3IUDH5.js} +4 -4
  32. package/dist/cdn/{N75HIPXS.js → 4ZM2K4B5.js} +1 -1
  33. package/dist/cdn/{V3V45HIT.js → 536426JP.js} +2 -2
  34. package/dist/cdn/{JDI4Y7XL.js → 53N47Q3X.js} +2 -2
  35. package/dist/cdn/{BKTDSQ5E.js → 55KC257N.js} +2 -2
  36. package/dist/cdn/{IML67XC5.js → 55P3U5JJ.js} +2 -2
  37. package/dist/cdn/{T24JMSJB.js → 5AVYYC47.js} +2 -2
  38. package/dist/cdn/{USCS7ZOZ.js → 5AWXJIBG.js} +2 -2
  39. package/dist/cdn/{RQF4KGJG.js → 5CSQUWE5.js} +2 -2
  40. package/dist/cdn/{PIIFPRWS.js → 5D3XSPVE.js} +2 -2
  41. package/dist/cdn/{7HCBMOJG.js → 5DHQPMEJ.js} +2 -2
  42. package/dist/cdn/{XRAHMMYT.js → 5GI5HKKC.js} +2 -2
  43. package/dist/cdn/{RICWFBVP.js → 5IYB6I37.js} +2 -2
  44. package/dist/cdn/{4YNV3LL5.js → 5RGCCJRI.js} +2 -2
  45. package/dist/cdn/{K7L3LTTD.js → 5RJEQIH2.js} +1 -1
  46. package/dist/cdn/{7UEK3DXM.js → 5XZ2VEVE.js} +2 -2
  47. package/dist/cdn/{SNDF7YMU.js → 6DG3MERJ.js} +2 -2
  48. package/dist/cdn/{MNNNZZVI.js → 6HNT2RSP.js} +2 -2
  49. package/dist/cdn/{5EZJ2DME.js → 6KD4C6OL.js} +2 -2
  50. package/dist/cdn/{GWMI7SRU.js → 6MHBJPS2.js} +2 -2
  51. package/dist/cdn/6QS23BIH.js +18 -0
  52. package/dist/cdn/{OBYUVAOE.js → 6VGFUAX5.js} +2 -2
  53. package/dist/cdn/{J3AZ36S3.js → 72KOOVBA.js} +2 -2
  54. package/dist/cdn/{INDFSGPY.js → 74FUG5XE.js} +2 -2
  55. package/dist/cdn/{5ORSO5QA.js → 7FTLGHTG.js} +2 -2
  56. package/dist/cdn/{WMI6SFI3.js → 7KBEEBMB.js} +2 -2
  57. package/dist/cdn/{35P6UDSV.js → 7KFM4VXO.js} +2 -2
  58. package/dist/cdn/{UPR4UPDN.js → 7KGIY4Y7.js} +2 -2
  59. package/dist/cdn/{5X6XSS3G.js → 7RAJQNDO.js} +2 -2
  60. package/dist/cdn/{PULSXLXV.js → 7VOZDFCU.js} +2 -2
  61. package/dist/cdn/{2SNN45WE.js → 7WDOCGDK.js} +1 -1
  62. package/dist/cdn/{BQTDT2CQ.js → A4AUBCIN.js} +2 -2
  63. package/dist/cdn/{7KQNE4LS.js → A52VN6U6.js} +2 -2
  64. package/dist/cdn/{SJ2L7I4D.js → ACHUFFFB.js} +2 -2
  65. package/dist/cdn/{LZCG3PUX.js → ADVQIEJR.js} +1 -1
  66. package/dist/cdn/{HLQ3GGP4.js → AI3WLROH.js} +2 -2
  67. package/dist/cdn/{PBDY4N37.js → AJYMDWRR.js} +2 -2
  68. package/dist/cdn/{CMUYK6L5.js → ANRR2Q3N.js} +2 -2
  69. package/dist/cdn/{J5DECLUT.js → AT3EMTZF.js} +1 -1
  70. package/dist/cdn/{ZX2WVODB.js → AXEU574G.js} +2 -2
  71. package/dist/cdn/{Z4ZMVS45.js → AYBKCTTB.js} +2 -2
  72. package/dist/cdn/{DMGLXTNG.js → B2634ITV.js} +2 -2
  73. package/dist/cdn/{435C2RXR.js → B33KRB36.js} +2 -2
  74. package/dist/cdn/{2LIN3EFP.js → BMMWWZDP.js} +2 -2
  75. package/dist/cdn/BVAH7X2K.js +18 -0
  76. package/dist/cdn/{VAQQRDFO.js → BZM6QEVQ.js} +1 -1
  77. package/dist/cdn/{OHY2KQUC.js → C44EKR3M.js} +1 -1
  78. package/dist/cdn/{IJWNOINQ.js → CAPUUGJR.js} +2 -2
  79. package/dist/cdn/{424PZHQ5.js → CBMZJGCV.js} +2 -2
  80. package/dist/cdn/{HIYSQGTK.js → CCHSAYV3.js} +2 -2
  81. package/dist/cdn/{6KKLCZH2.js → CDXLLR33.js} +2 -2
  82. package/dist/cdn/{ICLRLVVJ.js → CIQJF5B3.js} +2 -2
  83. package/dist/cdn/{J4DDOYKZ.js → CNU3TPX7.js} +2 -2
  84. package/dist/cdn/{HEFARXFW.js → CTH3ZJDZ.js} +2 -2
  85. package/dist/cdn/{7L3RVANR.js → CUFYPINX.js} +2 -2
  86. package/dist/cdn/{CIN3SN7W.js → CZOWNF5N.js} +2 -2
  87. package/dist/cdn/{N5C5RKHD.js → D2BGUJW5.js} +2 -2
  88. package/dist/cdn/{PUYHWBNK.js → D3DQ3LMO.js} +2 -2
  89. package/dist/cdn/{6N4IY6RI.js → DAC3GWK5.js} +2 -2
  90. package/dist/cdn/{MMZK7VDY.js → DGN5X5A4.js} +2 -2
  91. package/dist/cdn/{XHNH4HWU.js → DHPOWICJ.js} +2 -2
  92. package/dist/cdn/{KAET4R4I.js → DHYYFX2C.js} +1 -1
  93. package/dist/cdn/{M7ALE6KV.js → DVO5GTFT.js} +2 -2
  94. package/dist/cdn/{XQMS45RU.js → E35TDRWG.js} +2 -2
  95. package/dist/cdn/{36OJB33V.js → EDPL4TKI.js} +2 -2
  96. package/dist/cdn/{ZJMDC5EX.js → EE7WJZP4.js} +2 -2
  97. package/dist/cdn/{RZODPKW4.js → EIZMLFHI.js} +1 -1
  98. package/dist/cdn/{5Y63RNHU.js → EOM3X2VQ.js} +2 -2
  99. package/dist/cdn/{SCPTYDM4.js → EOOHBALJ.js} +2 -2
  100. package/dist/cdn/{YL5AS7IP.js → ETTBV6A5.js} +2 -2
  101. package/dist/cdn/{R2HY3OH6.js → EZLMQOSZ.js} +2 -2
  102. package/dist/cdn/{4Y7P3RAH.js → EZUUCYDZ.js} +2 -2
  103. package/dist/cdn/{Z7PAFRTZ.js → F57GZO2E.js} +2 -2
  104. package/dist/cdn/{X4BR4G2Q.js → FDZH3TUO.js} +2 -2
  105. package/dist/cdn/{4AB2653C.js → FIE266AU.js} +2 -2
  106. package/dist/cdn/{GZ5DMBN5.js → FJRGFI2V.js} +1 -1
  107. package/dist/cdn/{7VLWDHRA.js → FLC5VXCW.js} +2 -2
  108. package/dist/cdn/{CPEOHMBH.js → FR5YKIYR.js} +2 -2
  109. package/dist/cdn/{EVSAWS5V.js → FZAZSLYD.js} +2 -2
  110. package/dist/cdn/{QV3YJHLC.js → G2KU4GJD.js} +1 -1
  111. package/dist/cdn/{YJF3FQQW.js → G6RUG3BR.js} +2 -2
  112. package/dist/cdn/{YV2KVYYD.js → GA57AOAH.js} +2 -2
  113. package/dist/cdn/{RA4WYINA.js → GGVX7BU3.js} +2 -2
  114. package/dist/cdn/GHIWQFDY.js +4 -0
  115. package/dist/cdn/{4DMLN7C7.js → GM3ATYLE.js} +1 -1
  116. package/dist/cdn/{EOR6FMKC.js → GMCIGFUB.js} +2 -2
  117. package/dist/cdn/{EFTUD2CV.js → GPUA6MAJ.js} +2 -2
  118. package/dist/cdn/GPW2TCPZ.js +18 -0
  119. package/dist/cdn/{G466QX4L.js → GQU6FXIT.js} +1 -1
  120. package/dist/cdn/{RJDRQW52.js → GRCUUM5W.js} +2 -2
  121. package/dist/cdn/{KPRSMUMQ.js → GSFWKQWQ.js} +2 -2
  122. package/dist/cdn/{U25OTDOD.js → GYXP7WY2.js} +2 -2
  123. package/dist/cdn/{7RMNWPCQ.js → H4ZWRKI2.js} +2 -2
  124. package/dist/cdn/H6UT37EX.js +18 -0
  125. package/dist/cdn/{7XULXHRZ.js → H7Y4URDU.js} +2 -2
  126. package/dist/cdn/{BCXBJG72.js → HHVCX4HB.js} +1 -1
  127. package/dist/cdn/{BPEEKBR7.js → HOLWK3EZ.js} +2 -2
  128. package/dist/cdn/{B4HJBJTA.js → HSCOIXLG.js} +2 -2
  129. package/dist/cdn/{ZSPCCQU2.js → HTWIZOH4.js} +2 -2
  130. package/dist/cdn/{S5WNRS3W.js → HXLDVONX.js} +2 -2
  131. package/dist/cdn/{5EH5ABNA.js → HZFEYQGX.js} +1 -1
  132. package/dist/cdn/{4OGYUVGQ.js → HZIMPHWC.js} +2 -2
  133. package/dist/cdn/{BB4YELWP.js → I5XMZWO6.js} +2 -2
  134. package/dist/cdn/{WRRMV4PI.js → I7UVWQMY.js} +2 -2
  135. package/dist/cdn/{47I7OHHF.js → IDFWZFF5.js} +1 -1
  136. package/dist/cdn/{GNY77HPF.js → IG3I76TX.js} +1 -1
  137. package/dist/cdn/{VPXUKOUC.js → IKBVEVMI.js} +2 -2
  138. package/dist/cdn/{HIIYUUEW.js → IRVZT2BS.js} +2 -2
  139. package/dist/cdn/{4FGMEAIW.js → ISCASEIO.js} +1 -1
  140. package/dist/cdn/{6JI5OXDD.js → IVOSJYWQ.js} +2 -2
  141. package/dist/cdn/{BOJK6ZXD.js → IZGA6GXU.js} +2 -2
  142. package/dist/cdn/{FQOV67VE.js → JBH2RRSE.js} +2 -2
  143. package/dist/cdn/{LPXJI3PA.js → JGPXY5SS.js} +2 -2
  144. package/dist/cdn/{RV3Y5Y43.js → JIJBRLA5.js} +2 -2
  145. package/dist/cdn/{Y4CROHYY.js → JNWG7WSY.js} +2 -2
  146. package/dist/cdn/{P52HFT2R.js → JQV5TGAK.js} +2 -2
  147. package/dist/cdn/{YZGAFNYP.js → JUZCGG5Y.js} +2 -2
  148. package/dist/cdn/JYL4F373.js +4 -0
  149. package/dist/cdn/{BGWVAQHN.js → K4CSMHLX.js} +2 -2
  150. package/dist/cdn/{27QJLMW3.js → K4FMFGHK.js} +2 -2
  151. package/dist/cdn/{SHTM5TBH.js → KBLQQKHW.js} +2 -2
  152. package/dist/cdn/{6QAU4NYR.js → KCDVHUF2.js} +3 -3
  153. package/dist/cdn/{OSPYIY3S.js → KDKKKQOA.js} +2 -2
  154. package/dist/cdn/{UCYU2ZVX.js → KIU22HO4.js} +2 -2
  155. package/dist/cdn/{JUNJFTAF.js → KJGF4NJ3.js} +2 -2
  156. package/dist/cdn/{FSQQ2APB.js → KKSOLSMJ.js} +2 -2
  157. package/dist/cdn/KMJY2PGB.js +18 -0
  158. package/dist/cdn/{FBXVZ63D.js → KP6XEQR7.js} +2 -2
  159. package/dist/cdn/{ICETJ5L7.js → KQVVUDCM.js} +1 -1
  160. package/dist/cdn/{7K7DN72W.js → KUVX4OOK.js} +2 -2
  161. package/dist/cdn/{D2Y2VYAA.js → KVYB56FX.js} +2 -2
  162. package/dist/cdn/{JEOWOFGV.js → L2YHTSUT.js} +2 -2
  163. package/dist/cdn/{UTMLE3SN.js → L46SKXK3.js} +2 -2
  164. package/dist/cdn/{FPGTD47W.js → LBK4TQ4U.js} +2 -2
  165. package/dist/cdn/{JH6EUNS3.js → LH4PUHQS.js} +2 -2
  166. package/dist/cdn/LT2FXISZ.js +4 -0
  167. package/dist/cdn/{3WEGW5NC.js → LZVWOWHQ.js} +2 -2
  168. package/dist/cdn/{OT3XINKN.js → LZXK3MVJ.js} +2 -2
  169. package/dist/cdn/{HRXRBE4J.js → MB76IRBK.js} +2 -2
  170. package/dist/cdn/{VFZGCM33.js → MCIIM4XE.js} +2 -2
  171. package/dist/cdn/{C5NISEHO.js → MEMYGNMH.js} +2 -2
  172. package/dist/cdn/{2452KO7J.js → MFYJYT6Q.js} +2 -2
  173. package/dist/cdn/{RJVJXKOB.js → MGRH7AJX.js} +2 -2
  174. package/dist/cdn/{ECVA54TZ.js → MSCUGG2N.js} +1 -1
  175. package/dist/cdn/{M4AI76NV.js → MXKCH65B.js} +2 -2
  176. package/dist/cdn/MYF2CGM2.js +4 -0
  177. package/dist/cdn/{WVHATRWG.js → MYHI7ROY.js} +2 -2
  178. package/dist/cdn/{OVDKGSOB.js → N73I4LYZ.js} +2 -2
  179. package/dist/cdn/{ARPKSGRG.js → NLQ42NQW.js} +2 -2
  180. package/dist/cdn/{XW5NNESC.js → NYANCYTJ.js} +2 -2
  181. package/dist/cdn/{FXITJZAV.js → OAJSYATY.js} +2 -2
  182. package/dist/cdn/{UQD4DDWQ.js → OBGBZA5Q.js} +2 -2
  183. package/dist/cdn/{A6DMHYOF.js → OMLJWKTW.js} +2 -2
  184. package/dist/cdn/{PNBUAOL6.js → ONIJZZLM.js} +2 -2
  185. package/dist/cdn/{VPZT2JZV.js → OOGXSHWN.js} +2 -2
  186. package/dist/cdn/{EHYAB5QQ.js → OUAPE77Q.js} +2 -2
  187. package/dist/cdn/{BIOS2V5G.js → P4CX5EDN.js} +2 -2
  188. package/dist/cdn/{AXQXIZC6.js → P55AP2OS.js} +2 -2
  189. package/dist/cdn/{3YWY5IJP.js → P5SCKVEP.js} +2 -2
  190. package/dist/cdn/PDEMBJK2.js +18 -0
  191. package/dist/cdn/{E3HGKBP3.js → PJF5G4QB.js} +2 -2
  192. package/dist/cdn/{7UIUIVMT.js → PL3CH3LF.js} +2 -2
  193. package/dist/cdn/{KAPZF4E2.js → PNZ6XBPV.js} +1 -1
  194. package/dist/cdn/{FLPPIESF.js → PPEC24ZV.js} +2 -2
  195. package/dist/cdn/{VDIZRWGH.js → PVMRTOAH.js} +2 -2
  196. package/dist/cdn/{R3UCIE4U.js → PWDTDHPM.js} +1 -1
  197. package/dist/cdn/{D73KUPSF.js → Q5EJXK76.js} +2 -2
  198. package/dist/cdn/{J7OFNHJE.js → QBKMKNGL.js} +2 -2
  199. package/dist/cdn/{WN3VAL43.js → QCF4PYQB.js} +1 -1
  200. package/dist/cdn/{WD2QCZTO.js → QHJVQDMN.js} +2 -2
  201. package/dist/cdn/{TXGHJPP2.js → QIVU3W4F.js} +2 -2
  202. package/dist/cdn/{LECLO3XE.js → QRM36WK6.js} +2 -2
  203. package/dist/cdn/{3TUZLPWH.js → QZVDSGNQ.js} +2 -2
  204. package/dist/cdn/{BY4EXEJG.js → RFSMSYJR.js} +2 -2
  205. package/dist/cdn/{EUPHXLZZ.js → RKUNOYZR.js} +2 -2
  206. package/dist/cdn/{TPTCOLFA.js → RM5MLMA4.js} +2 -2
  207. package/dist/cdn/{U4IEKG5J.js → RN7TUN7E.js} +2 -2
  208. package/dist/cdn/{FARMWJ24.js → RTL6LDYI.js} +2 -2
  209. package/dist/cdn/{MLSL5LI5.js → RVRAGQDC.js} +2 -2
  210. package/dist/cdn/{KBTESCN4.js → RXTELQ34.js} +2 -2
  211. package/dist/cdn/{RCSNQFCR.js → S3WKVRQS.js} +2 -2
  212. package/dist/cdn/{6EA3DB3O.js → S67NXZHK.js} +2 -2
  213. package/dist/cdn/{CD2S6EUP.js → SBDAFL5S.js} +2 -2
  214. package/dist/cdn/{25QPPKFI.js → T4UFIWDF.js} +2 -2
  215. package/dist/cdn/T66Y6KTO.js +18 -0
  216. package/dist/cdn/{C6X2ECYU.js → T6FHHQZJ.js} +2 -2
  217. package/dist/cdn/TD4SVRZ2.js +18 -0
  218. package/dist/cdn/{LXGUGDHR.js → TGLGAJZN.js} +2 -2
  219. package/dist/cdn/{LDD3KF7W.js → TGVDYRKZ.js} +2 -2
  220. package/dist/cdn/{AZHIE3R7.js → TKBHKV5M.js} +2 -2
  221. package/dist/cdn/{4TKVQNTQ.js → TKUGQKMA.js} +3 -3
  222. package/dist/cdn/{S5633QFW.js → TKZBNC7H.js} +2 -2
  223. package/dist/cdn/{NLDJFYI7.js → TSJDIDQQ.js} +2 -2
  224. package/dist/cdn/{OFJCPV4F.js → TV4DZ4NC.js} +2 -2
  225. package/dist/cdn/{ZKLPV256.js → U35AQBWJ.js} +1 -1
  226. package/dist/cdn/{TYTGBM6D.js → U7RXVNQC.js} +1 -1
  227. package/dist/cdn/{SVZ6DPGA.js → UAP5F7JO.js} +2 -2
  228. package/dist/cdn/{67Y5XRJR.js → UDGQW7QL.js} +2 -2
  229. package/dist/cdn/{WO4T5EBB.js → UJSCHQIP.js} +2 -2
  230. package/dist/cdn/{SAK5E7EM.js → UKMHZ5PP.js} +2 -2
  231. package/dist/cdn/{HT5EDB5V.js → ULVBGZTW.js} +2 -2
  232. package/dist/cdn/{HVVFJDSU.js → UOCWAIF5.js} +2 -2
  233. package/dist/cdn/URRXFKCL.js +4 -0
  234. package/dist/cdn/{HZSTATBW.js → USMPDRTK.js} +2 -2
  235. package/dist/cdn/{J4VSSVNP.js → UVBA6JNL.js} +1 -1
  236. package/dist/cdn/{6YD2XRHQ.js → V3NOQ3VR.js} +2 -2
  237. package/dist/cdn/{JBUFFKQ4.js → V6UTV55V.js} +1 -1
  238. package/dist/cdn/{CHZ5YCRR.js → VAP272QY.js} +2 -2
  239. package/dist/cdn/VGXJDR76.js +18 -0
  240. package/dist/cdn/{CN4P5DTP.js → VLGVIKZ6.js} +2 -2
  241. package/dist/cdn/{BIRQOSZD.js → VOCP45SC.js} +2 -2
  242. package/dist/cdn/{PKFNJGIN.js → VPPRTR4I.js} +2 -2
  243. package/dist/cdn/{SDDCOLSE.js → VQKEDTWW.js} +2 -2
  244. package/dist/cdn/{Y5WPDAVU.js → VTJTEDJC.js} +2 -2
  245. package/dist/cdn/{4BCMHRMT.js → W4QVPEC6.js} +1 -1
  246. package/dist/cdn/{MHO2Y7KN.js → WAHZ4BJA.js} +2 -2
  247. package/dist/cdn/{V2TJSNNS.js → WBDBLEC7.js} +2 -2
  248. package/dist/cdn/{HBOTGKBU.js → WCAYMKQP.js} +2 -2
  249. package/dist/cdn/{XRNUZ7HG.js → WKBQVMT4.js} +2 -2
  250. package/dist/cdn/{C2KBDSIZ.js → WUWWLJEX.js} +1 -1
  251. package/dist/cdn/{62J73NXR.js → WUYLVJC7.js} +2 -2
  252. package/dist/cdn/{T5ZHBVTX.js → X5NCT7SI.js} +1 -1
  253. package/dist/cdn/{N5VOILQX.js → XI6U7JLE.js} +2 -2
  254. package/dist/cdn/{T5R3QU6B.js → XISA6SLB.js} +2 -2
  255. package/dist/cdn/{JZMP2SNN.js → XJOAEUHQ.js} +2 -2
  256. package/dist/cdn/XMB335P2.js +4 -0
  257. package/dist/cdn/XOTJKE5D.js +4 -0
  258. package/dist/cdn/{YNA4CMIX.js → XV6244HK.js} +2 -2
  259. package/dist/cdn/{LKUFS2W4.js → XW3XMCXE.js} +2 -2
  260. package/dist/cdn/{DWRH76JT.js → XZS545IF.js} +2 -2
  261. package/dist/cdn/{2VIYUPNY.js → YFTL66BW.js} +2 -2
  262. package/dist/cdn/{WFKJMOI2.js → YMECWXNY.js} +2 -2
  263. package/dist/cdn/{VY6VKUBS.js → YNLSAEFB.js} +2 -2
  264. package/dist/cdn/YQNWPVUQ.js +4 -0
  265. package/dist/cdn/{6EY4X2IO.js → YRLQIYDY.js} +2 -2
  266. package/dist/cdn/{XDCTTW2D.js → YWPX2AWZ.js} +2 -2
  267. package/dist/cdn/{IKUXIIBQ.js → ZADWIJ7Q.js} +2 -2
  268. package/dist/cdn/{YZON6FQX.js → ZIJGSIAY.js} +1 -1
  269. package/dist/cdn/{2Q5FUL4Y.js → ZSVGZTYI.js} +2 -2
  270. package/dist/cdn/{F5K2FGR2.js → ZVRPCQAG.js} +1 -1
  271. package/dist/cdn/ZXAG7K3F.js +4 -0
  272. package/dist/cdn/assets/selection-tool/t9n/messages.en.json +1 -0
  273. package/dist/cdn/assets/selection-tool/t9n/messages.json +1 -0
  274. package/dist/cdn/assets/solution-deploy-panel/t9n/messages.en.json +1 -0
  275. package/dist/cdn/assets/solution-deploy-panel/t9n/messages.json +1 -0
  276. package/dist/cdn/assets/solution-snapshot-gallery/t9n/messages.en.json +1 -0
  277. package/dist/cdn/assets/solution-snapshot-gallery/t9n/messages.json +1 -0
  278. package/dist/cdn/index.js +2 -2
  279. package/dist/chunks/common.js +1 -1
  280. package/dist/chunks/downloadUtils.js +1 -1
  281. package/dist/chunks/index.js +1 -1
  282. package/dist/chunks/interfaces.js +1 -1
  283. package/dist/chunks/loadModules.js +1 -1
  284. package/dist/chunks/mapViewUtils.js +19 -15
  285. package/dist/chunks/pciUtils.js +1 -1
  286. package/dist/chunks/popupUtils.js +1 -1
  287. package/dist/chunks/publicNotificationStore.js +1 -1
  288. package/dist/chunks/queryUtils.js +1 -1
  289. package/dist/chunks/runtime.js +1 -1
  290. package/dist/chunks/solution-store.js +1 -1
  291. package/dist/chunks/templates.js +1 -1
  292. package/dist/chunks/useT9n.js +1 -1
  293. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  294. package/dist/components/basemap-gallery/customElement.js +1 -1
  295. package/dist/components/buffer-tools/customElement.js +1 -1
  296. package/dist/components/card-manager/customElement.d.ts +5 -2
  297. package/dist/components/card-manager/customElement.js +24 -20
  298. package/dist/components/consent-manager/customElement.js +1 -1
  299. package/dist/components/create-feature/customElement.js +1 -1
  300. package/dist/components/create-related-feature/customElement.js +1 -1
  301. package/dist/components/crowdsource-manager/customElement.d.ts +12 -0
  302. package/dist/components/crowdsource-manager/customElement.js +51 -43
  303. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  304. package/dist/components/deduct-calculator/customElement.js +1 -1
  305. package/dist/components/delete-button/customElement.js +1 -1
  306. package/dist/components/delete-dialog/customElement.js +9 -9
  307. package/dist/components/edit-card/customElement.js +14 -11
  308. package/dist/components/feature-details/customElement.js +1 -1
  309. package/dist/components/feature-list/customElement.js +1 -1
  310. package/dist/components/field-selection/customElement.js +3 -3
  311. package/dist/components/floor-filter/customElement.js +1 -1
  312. package/dist/components/info-card/customElement.js +1 -1
  313. package/dist/components/json-editor/customElement.js +1 -1
  314. package/dist/components/layer-list/customElement.js +1 -1
  315. package/dist/components/layer-table/customElement.d.ts +11 -1
  316. package/dist/components/layer-table/customElement.js +267 -148
  317. package/dist/components/layer-table/index.d.ts +3 -2
  318. package/dist/components/layer-table/index.js +3 -2
  319. package/dist/components/map-card/customElement.d.ts +7 -1
  320. package/dist/components/map-card/customElement.js +16 -16
  321. package/dist/components/map-draw-tools/customElement.js +1 -1
  322. package/dist/components/map-fullscreen/customElement.js +1 -1
  323. package/dist/components/map-layer-picker/customElement.d.ts +1 -1
  324. package/dist/components/map-layer-picker/customElement.js +14 -14
  325. package/dist/components/map-legend/customElement.js +1 -1
  326. package/dist/components/map-picker/customElement.js +3 -3
  327. package/dist/components/map-search/customElement.js +1 -1
  328. package/dist/components/map-select-tools/customElement.js +1 -1
  329. package/dist/components/map-tools/customElement.d.ts +13 -1
  330. package/dist/components/map-tools/customElement.js +25 -18
  331. package/dist/components/map-tools/index.d.ts +1 -0
  332. package/dist/components/map-tools/index.js +1 -0
  333. package/dist/components/pci-calculator/customElement.js +1 -1
  334. package/dist/components/pdf-download/customElement.js +1 -1
  335. package/dist/components/public-notification/customElement.js +1 -1
  336. package/dist/components/refine-selection/customElement.js +1 -1
  337. package/dist/components/selection-tool/customElement.d.ts +33 -0
  338. package/dist/components/selection-tool/customElement.js +96 -0
  339. package/dist/components/selection-tool/index.d.ts +1 -0
  340. package/dist/components/selection-tool/index.js +1 -0
  341. package/dist/components/{solution-arcticle-card → solution-article-card}/customElement.d.ts +1 -1
  342. package/dist/components/{solution-arcticle-card → solution-article-card}/customElement.js +5 -5
  343. package/dist/components/solution-configuration/customElement.js +1 -1
  344. package/dist/components/solution-configure-panel/customElement.js +1 -1
  345. package/dist/components/solution-configure-titles/customElement.js +1 -1
  346. package/dist/components/solution-contents/customElement.js +1 -1
  347. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  348. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  349. package/dist/components/solution-deploy-panel/customElement.d.ts +5 -0
  350. package/dist/components/solution-deploy-panel/customElement.js +44 -0
  351. package/dist/components/solution-deploy-panel/index.d.ts +2 -0
  352. package/dist/components/solution-deploy-panel/index.js +2 -0
  353. package/dist/components/solution-deployed-card/customElement.js +1 -1
  354. package/dist/components/solution-deploying-panel/customElement.js +1 -1
  355. package/dist/components/solution-details-card/customElement.js +1 -1
  356. package/dist/components/solution-details-panel/customElement.js +1 -1
  357. package/dist/components/solution-item/customElement.js +1 -1
  358. package/dist/components/solution-item-accordion/customElement.js +1 -1
  359. package/dist/components/solution-item-details/customElement.js +1 -1
  360. package/dist/components/solution-item-icon/customElement.js +1 -1
  361. package/dist/components/solution-item-sharing/customElement.js +1 -1
  362. package/dist/components/solution-items-diagram/customElement.js +1 -1
  363. package/dist/components/solution-organization-variables/customElement.js +1 -1
  364. package/dist/components/solution-resource-item/customElement.js +1 -1
  365. package/dist/components/solution-snapshot-gallery/customElement.d.ts +5 -0
  366. package/dist/components/solution-snapshot-gallery/customElement.js +44 -0
  367. package/dist/components/solution-snapshot-gallery/index.d.ts +2 -0
  368. package/dist/components/solution-snapshot-gallery/index.js +2 -0
  369. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  370. package/dist/components/solution-template-data/customElement.js +1 -1
  371. package/dist/components/solution-variables/customElement.js +1 -1
  372. package/dist/components/solutions-all-panel/customElement.js +1 -1
  373. package/dist/components/solutions-all-shell/customElement.js +1 -1
  374. package/dist/components/solutions-article-panel/customElement.js +1 -1
  375. package/dist/components/solutions-articles/customElement.js +1 -1
  376. package/dist/components/solutions-articles-shell/customElement.js +1 -1
  377. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  378. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  379. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  380. package/dist/components/spatial-ref/customElement.js +1 -1
  381. package/dist/components/store-manager/customElement.js +1 -1
  382. package/dist/docs/api.json +655 -93
  383. package/dist/docs/docs.json +577 -73
  384. package/dist/docs/vscode.html-custom-data.json +86 -17
  385. package/dist/docs/web-types.json +230 -43
  386. package/dist/index.d.ts +34 -3
  387. package/dist/index.js +1 -1
  388. package/dist/loader.js +14 -11
  389. package/dist/main.css +1 -1
  390. package/dist/types/lumina.d.ts +27 -9
  391. package/dist/types/preact.d.ts +31 -10
  392. package/dist/types/react.d.ts +35 -11
  393. package/dist/types/stencil.d.ts +27 -9
  394. package/dist/utils/mapViewUtils.d.ts +3 -3
  395. package/package.json +1 -1
  396. package/dist/cdn/264VRGT4.js +0 -4
  397. package/dist/cdn/2C7P2WBD.js +0 -18
  398. package/dist/cdn/2M24VYGB.js +0 -4
  399. package/dist/cdn/5AYUBL2S.js +0 -4
  400. package/dist/cdn/6ZWGS275.js +0 -18
  401. package/dist/cdn/7LZNQGFF.js +0 -4
  402. package/dist/cdn/ACRINRWW.js +0 -4
  403. package/dist/cdn/C5QHLRUF.js +0 -18
  404. package/dist/cdn/F44IFVB6.js +0 -18
  405. package/dist/cdn/ILUCOTQH.js +0 -18
  406. package/dist/cdn/LXIX3TNH.js +0 -4
  407. package/dist/cdn/N7WXVV7Y.js +0 -18
  408. package/dist/cdn/O2WO5RGW.js +0 -4
  409. package/dist/cdn/U4SNCZZB.js +0 -4
  410. package/dist/cdn/WSILAYSC.js +0 -18
  411. package/dist/cdn/XG3QLQ4I.js +0 -18
  412. package/dist/cdn/XZCQWFF2.js +0 -4
  413. package/dist/cdn/ZWSG3QNV.js +0 -18
  414. /package/dist/cdn/assets/{solution-arcticle-card → solution-article-card}/t9n/messages.en.json +0 -0
  415. /package/dist/cdn/assets/{solution-arcticle-card → solution-article-card}/t9n/messages.json +0 -0
  416. /package/dist/components/{solution-arcticle-card → solution-article-card}/index.d.ts +0 -0
  417. /package/dist/components/{solution-arcticle-card → solution-article-card}/index.js +0 -0
@@ -2,18 +2,18 @@ import { c as b } from "../../chunks/runtime.js";
2
2
  import { l as y } from "../../chunks/loadModules.js";
3
3
  import { b as g, d as m, g as w } from "../../chunks/mapViewUtils.js";
4
4
  import { c as I } from "../../chunks/queryUtils.js";
5
- import { d as x } from "../../chunks/downloadUtils.js";
6
- import { defineCustomElements as v } from "@arcgis/instant-apps-components/loader";
7
- import { u as E } from "../../chunks/useT9n.js";
8
- import { nothing as d, html as h } from "lit";
9
- import { createRef as _, ref as c } from "lit-html/directives/ref.js";
10
- import { LitElement as S, createEvent as p, noShadowRoot as O, safeClassMap as u } from "@arcgis/lumina";
11
- import { css as T } from "@lit/reactive-element/css-tag.js";
5
+ import { d as v } from "../../chunks/downloadUtils.js";
6
+ import { defineCustomElements as x } from "@arcgis/instant-apps-components/loader";
7
+ import { u as T } from "../../chunks/useT9n.js";
8
+ import { nothing as o, html as d } from "lit";
9
+ import { createRef as u, ref as c } from "lit-html/directives/ref.js";
10
+ import { LitElement as E, createEvent as f, noShadowRoot as S, safeClassMap as p } from "@arcgis/lumina";
11
+ import { css as F } from "@lit/reactive-element/css-tag.js";
12
12
  import "@arcgis/map-config-components";
13
13
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
14
14
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
15
- v1.0.0-next.20250509 */
16
- const C = T`@layer{/** @license
15
+ v1.0.0-next.20250513 */
16
+ const O = F`@layer{/** @license
17
17
  * Copyright 2025 Esri
18
18
  *
19
19
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -27,28 +27,28 @@ const C = T`@layer{/** @license
27
27
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
28
28
  * See the License for the specific language governing permissions and
29
29
  * limitations under the License.
30
- */:host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.display-none{display:none}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51-px{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir=rtl] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-background)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none!important}vaadin-grid-cell-content{font-size:14px!important;color:var(--calcite-color-text-3)!important}.absolute-right{position:absolute;right:0;left:unset}html[dir=rtl] .absolute-right{left:0;right:unset}.disabled{cursor:default!important;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.actions-end{height:50px!important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-modal-content-padding: 0}.esri-feature-table__table-container{height:100%}.search-container{background-color:var(--calcite-color-foreground-1)!important}.search{--calcite-color-border-input: var(--calcite-color-border-3);width:60%;padding:10px}.delete-red{--calcite-icon-color: var(--calcite-color-status-danger);--calcite-color-text-1: var(--calcite-color-status-danger);--calcite-color-text-3: var(--calcite-color-status-danger)}}`;
31
- class F extends S {
30
+ */:host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.display-none{display:none}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51-px{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir=rtl] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-background)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none!important}vaadin-grid-cell-content{font-size:14px!important;color:var(--calcite-color-text-3)!important}.absolute-right{position:absolute;right:0;left:unset}html[dir=rtl] .absolute-right{left:0;right:unset}.disabled{cursor:default!important;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.actions-end{height:50px!important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-modal-content-padding: 0}.esri-feature-table__table-container{height:100%}.search-container{background-color:var(--calcite-color-foreground-1)!important}.search{--calcite-color-border-input: var(--calcite-color-border-3);width:60%;padding:10px}.delete-red{--calcite-icon-color: var(--calcite-color-status-danger);--calcite-color-text-1: var(--calcite-color-status-danger);--calcite-color-text-3: var(--calcite-color-status-danger)}.label-override{--calcite-label-margin-bottom: 0px}.padding-start-1-4{padding-inline-start:.5rem}.panel-header-override{--calcite-panel-header-content-space: 0px}.danger-label-color{--calcite-label-text-color: var(--calcite-color-status-danger)}.danger-icon-color{--calcite-icon-color: var(--calcite-color-status-danger)}.width-51{width:51px}.height-51{height:51px}}`;
31
+ class C extends E {
32
32
  constructor() {
33
- super(), this.defaultGlobalId = [], this.defaultLayerId = "", this.defaultOid = [], this.enableAutoRefresh = !1, this.enableColumnReorder = !0, this.enableCSV = !1, this.enableInlineEdit = !1, this.enableShare = !1, this.honorMapFieldSettings = !1, this.isMobile = !1, this.mapHidden = !1, this.onlyShowUpdatableLayers = !1, this.selectedIds = [], this.shareIncludeEmbed = !1, this.shareIncludeSocial = !1, this.showNewestFirst = !1, this.zoomAndScrollToSelected = !1, this.createFilterModal = !0, this._allIds = [], this._csvExporting = !1, this._fetchingData = !1, this._filterActive = !1, this._filterOpen = !1, this._selectAllActive = !1, this._showHideOpen = !1, this._showOnlySelected = !1, this._toolInfos = [], this._translations = E({ name: "layer-table", blocking: !0 }), this._fullTextSearchInfo = [], this._searchPlaceHolder = "", this._size = 0, this._queryingData = !1, this._editEnabled = !1, this._defaultFilterHonored = !1, this._defaultGlobalIdHonored = !1, this._defaultOidHonored = !1, this._definitionExpression = "", this._deleteEnabled = !1, this._filterList = _(), this._floorExpression = "", this._floorField = "", this._floorFacility = "", this._floorLevel = "", this._floorSite = "", this._layerExpressions = [], this._loaded = !1, this._selectionFromMap = !1, this._shareNode = _(), this._toolbar = _(), this._searchExpression = "", this._skipEditCheck = !1, this._tempSelectedIds = [], this._outOFExtentOids = [], this._shouldUpdateTableOnExtentChange = !0, this.featureSelectionChange = p(), this.toggleFilter = p(), this.showDelete = p(), this.listenOn(window, "beforeMapInfoChange", this.beforeMapInfoChange, { capture: !0 }), this.listenOn(window, "editorInitialized", this.editorInitialized), this.listenOn(window, "closeEdit", this.closeEdit), this.listenOn(window, "selectionChanged", this.selectionChanged), this.listenOn(window, "beforeLayerSelectionChange", this.beforeLayerSelectionChange), this.listenOn(window, "layerSelectionChange", this.layerSelectionChange), this.listenOn(window, "editsComplete", this.editsComplete), this.listenOn(window, "facilityChanged", this.facilityChanged), this.listenOn(window, "levelChanged", this.levelChanged), this.listenOn(window, "siteChanged", this.siteChanged), this.listenOn(window, "noLayersFound", this.noLayersFound), this.listenOn(window, "clearSelection", this.clearSelection), v(window);
33
+ super(), this.defaultGlobalId = [], this.defaultLayerId = "", this.defaultOid = [], this.enableAutoRefresh = !1, this.enableColumnReorder = !0, this.enableCSV = !1, this.enableInlineEdit = !1, this.enableShare = !1, this.featureSelectionMode = "multiple", this.selectedRelatedIds = [], this.honorMapFieldSettings = !1, this.isMobile = !1, this.mapHidden = !1, this.showOnlyUpdatableLayers = !1, this.selectedIds = [], this.shareIncludeEmbed = !1, this.shareIncludeSocial = !1, this.showNewestFirst = !1, this.zoomAndScrollToSelected = !1, this.createFilterModal = !0, this._allIds = [], this._csvExporting = !1, this._fetchingData = !1, this._filterActive = !1, this._filterOpen = !1, this._selectAllActive = !1, this._showHideOpen = !1, this._showOnlySelected = !1, this._toolInfos = [], this._translations = T({ name: "layer-table", blocking: !0 }), this._fullTextSearchInfo = [], this._searchPlaceHolder = "", this._size = 0, this._queryingData = !1, this._editEnabled = !1, this._defaultFilterHonored = !1, this._defaultGlobalIdHonored = !1, this._defaultOidHonored = !1, this._definitionExpression = "", this._deleteEnabled = !1, this._filterList = u(), this._floorExpression = "", this._floorField = "", this._floorFacility = "", this._floorLevel = "", this._floorSite = "", this._layerExpressions = [], this._loaded = !1, this._shareNode = u(), this._toolbar = u(), this._searchExpression = "", this._skipEditCheck = !1, this._tempSelectedIds = [], this._outOFExtentOids = [], this._shouldUpdateTableOnExtentChange = !0, this.featureSelectionChange = f(), this.toggleFilter = f(), this.showDelete = f(), this.relatedRecordToggled = f(), this.listenOn(window, "beforeMapInfoChange", this.beforeMapInfoChange, { capture: !0 }), this.listenOn(window, "editorInitialized", this.editorInitialized), this.listenOn(window, "closeEdit", this.closeEdit), this.listenOn(window, "selectionChanged", this.selectionChanged), this.listenOn(window, "beforeLayerSelectionChange", this.beforeLayerSelectionChange), this.listenOn(window, "layerSelectionChange", this.layerSelectionChange), this.listenOn(window, "editsComplete", this.editsComplete), this.listenOn(window, "facilityChanged", this.facilityChanged), this.listenOn(window, "levelChanged", this.levelChanged), this.listenOn(window, "siteChanged", this.siteChanged), this.listenOn(window, "noLayersFound", this.noLayersFound), this.listenOn(window, "clearSelection", this.clearSelection), this.listenOn(window, "mapChanged", this.mapChanged), this.listenOn(window, "featuresSelected", this.featuresSelected), x(window);
34
34
  }
35
35
  static {
36
- this.properties = { appLayout: 1, defaultGlobalId: 0, defaultLayerId: 1, defaultOid: 0, enableAutoRefresh: 5, enableColumnReorder: 5, enableCSV: 5, enableInlineEdit: 5, enableShare: 5, honorMapFieldSettings: 5, isMobile: 5, mapHidden: 5, mapInfo: 0, mapView: 0, onlyShowUpdatableLayers: 5, selectedIds: 0, shareIncludeEmbed: 5, shareIncludeSocial: 5, showNewestFirst: 5, zoomAndScrollToSelected: 5, zoomToScale: 9, createFilterModal: 5, _allIds: 16, _csvExporting: 16, _fetchingData: 16, _filterActive: 16, _filterOpen: 16, _layer: 16, _selectAllActive: 16, _showHideOpen: 16, _showOnlySelected: 16, _toolInfos: 16, _translations: 16, _fullTextSearchInfo: 16, _searchPlaceHolder: 16, _size: 16, _queryingData: 16 };
36
+ this.properties = { appLayout: 1, defaultGlobalId: 0, defaultLayerId: 1, defaultOid: 0, enableAutoRefresh: 5, enableColumnReorder: 5, enableCSV: 5, enableInlineEdit: 5, enableShare: 5, featureSelectionMode: 1, selectedRelatedIds: 0, honorMapFieldSettings: 5, isMobile: 5, mapHidden: 5, mapInfo: 0, mapView: 0, showOnlyUpdatableLayers: 5, selectedIds: 0, shareIncludeEmbed: 5, shareIncludeSocial: 5, showNewestFirst: 5, zoomAndScrollToSelected: 5, zoomToScale: 9, createFilterModal: 5, _allIds: 16, _csvExporting: 16, _fetchingData: 16, _filterActive: 16, _filterOpen: 16, _layer: 16, _selectAllActive: 16, _showHideOpen: 16, _showOnlySelected: 16, _toolInfos: 16, _translations: 16, _fullTextSearchInfo: 16, _searchPlaceHolder: 16, _size: 16, _queryingData: 16 };
37
37
  }
38
38
  static {
39
- this.styles = C;
39
+ this.styles = O;
40
40
  }
41
41
  static {
42
- this.shadowRootOptions = O;
42
+ this.shadowRootOptions = S;
43
43
  }
44
44
  willUpdate(e) {
45
- if (e.has("appLayout") && this.appLayoutWatchHandler(), e.has("defaultOid") && this.defaultOidWatchHandler(), e.has("defaultGlobalId") && this.defaultGlobalIdWatchHandler(), e.has("enableCSV") && this.enableCSVWatchHandler(), e.has("enableInlineEdit") && this.enableInlineEditWatchHandler(), e.has("mapHidden") && this.mapHiddenWatchHandler(), e.has("isMobile") && this.isMobileWatchHandler(), e.has("mapInfo") && this.mapInfoWatchHandler(), e.has("mapView") && this.mapViewWatchHandler(), e.has("_layer") && this._layerWatchHandler(), e.has("selectedIds") && (this.hasUpdated || JSON.stringify(e.get("selectedIds")) !== JSON.stringify(this.selectedIds)) && this.selectedIdsWatchHandler(), e.has("_translations")) {
45
+ if (e.has("appLayout") && this.appLayoutWatchHandler(), e.has("defaultOid") && this.defaultOidWatchHandler(), e.has("defaultGlobalId") && this.defaultGlobalIdWatchHandler(), e.has("enableCSV") && this.enableCSVWatchHandler(), e.has("enableInlineEdit") && this.enableInlineEditWatchHandler(), e.has("mapHidden") && this.mapHiddenWatchHandler(), e.has("isMobile") && this.isMobileWatchHandler(), e.has("mapInfo") && this.mapInfoWatchHandler(), e.has("mapView") && this.mapViewWatchHandler(), e.has("_layer") && this._layerWatchHandler(), e.has("selectedIds") && (this.hasUpdated || JSON.stringify(e.get("selectedIds")) !== JSON.stringify(this.selectedIds)) && this.selectedIdsWatchHandler(), e.has("selectedRelatedIds") && (this.hasUpdated || JSON.stringify(e.get("selectedRelatedIds")) !== JSON.stringify(this.selectedRelatedIds)) && this.selectedRelatedIdsWatchHandler(), e.has("_translations")) {
46
46
  const t = this._translations._lang, i = e.get("_translations")?._lang;
47
47
  t && i && t !== i && this._initToolInfos();
48
48
  }
49
49
  }
50
- appLayoutWatchHandler() {
51
- this._updateShareUrl();
50
+ async appLayoutWatchHandler() {
51
+ await this._initToolInfos(), this._updateShareUrl();
52
52
  }
53
53
  async defaultOidWatchHandler() {
54
54
  await this._handleDefaults();
@@ -56,17 +56,17 @@ class F extends S {
56
56
  async defaultGlobalIdWatchHandler() {
57
57
  await this._handleDefaults();
58
58
  }
59
- enableCSVWatchHandler() {
60
- this._toolInfos?.length > 0 && this._initToolInfos();
59
+ async enableCSVWatchHandler() {
60
+ this._toolInfos?.length > 0 && await this._initToolInfos();
61
61
  }
62
62
  enableInlineEditWatchHandler() {
63
63
  this._table && (this._table.editingEnabled = this._editEnabled && this.enableInlineEdit);
64
64
  }
65
- mapHiddenWatchHandler() {
66
- this._toolInfos?.length > 0 && this._initToolInfos();
65
+ async mapHiddenWatchHandler() {
66
+ this._toolInfos?.length > 0 && await this._initToolInfos();
67
67
  }
68
- isMobileWatchHandler() {
69
- !this._toolInfos && !this.isMobile && this._initToolInfos();
68
+ async isMobileWatchHandler() {
69
+ !this._toolInfos && !this.isMobile && await this._initToolInfos();
70
70
  }
71
71
  async mapInfoWatchHandler() {
72
72
  this._table && this._resetColumnTemplates();
@@ -95,7 +95,12 @@ class F extends S {
95
95
  });
96
96
  }
97
97
  async selectedIdsWatchHandler() {
98
- this._updateShareUrl(), this._validateEnabledActions(), this._selectAllActive && this.selectedIds.length !== this._allIds.length && (this._selectAllActive = !1), this.selectedIds.length > 0 && (this._table.rowHighlightIds.removeAll(), this._table.rowHighlightIds.add(this.selectedIds[0]));
98
+ this._updateShareUrl(), this._validateEnabledActions(), this._selectAllActive && this.selectedIds.length !== this._allIds.length && (this._selectAllActive = !1), this.selectedIds.length > 0 && (this._table.rowHighlightIds.removeAll(), this._table.rowHighlightIds.add(this.selectedIds[0])), this.selectedIds.length === 0 && setTimeout(() => {
99
+ this.featureSelectionChange.emit(this.selectedIds);
100
+ }, 700);
101
+ }
102
+ async selectedRelatedIdsWatchHandler() {
103
+ this._validateEnabledActions(), this.selectedRelatedIds.length > 0 && (this._relatedFeatureTable?.rowHighlightIds.removeAll(), this._relatedFeatureTable?.rowHighlightIds.add(this.selectedRelatedIds[0]));
99
104
  }
100
105
  async closeFilter() {
101
106
  await this._closeFilter();
@@ -119,8 +124,8 @@ class F extends S {
119
124
  const t = e.detail.ref, i = e.detail.mapInfo;
120
125
  if (this._hasPendingEdits()) {
121
126
  e.preventDefault();
122
- const s = await this._validateActiveEdits([], this.selectedIds);
123
- await t.setMapByID(s ? i.id : e.detail.currentId, !s);
127
+ const a = await this._validateActiveEdits([], this.selectedIds);
128
+ await t.setMapByID(a ? i.id : e.detail.currentId, !a);
124
129
  }
125
130
  }
126
131
  async editorInitialized(e) {
@@ -130,20 +135,20 @@ class F extends S {
130
135
  this._shouldUpdateTableOnExtentChange = !0, this._filterByExtentHandle && this._handleTableOnMapExtent();
131
136
  }
132
137
  async selectionChanged(e) {
133
- const t = e.detail.selectedFeature[0], i = Number(t.getObjectId()), a = this._table;
134
- if (a.rowHighlightIds.length && a.rowHighlightIds.removeAll(), a.rowHighlightIds.add(i), this._highlightFeatures(i), this.zoomAndScrollToSelected && a && this.mapView) {
135
- const s = a.viewModel.getObjectIdIndex(i);
136
- a.scrollToIndex(s);
137
- const l = t.layer, o = this.mapView.allLayerViews.toArray();
138
- let n;
139
- o.some(async (r) => r.layer.title === l?.title && r.layer.type === "feature" ? (n = r, this.mapView && await g([i], n, this.mapView, !0, void 0, this.zoomToScale), !0) : !1);
138
+ const t = e.detail.selectedFeature[0], i = Number(t.getObjectId()), s = this._table;
139
+ if (s.rowHighlightIds.length && s.rowHighlightIds.removeAll(), s.rowHighlightIds.add(i), this._highlightFeatures(i), this.zoomAndScrollToSelected && s && this.mapView) {
140
+ const a = s.viewModel.getObjectIdIndex(i);
141
+ s.scrollToIndex(a);
142
+ const l = t.layer, r = this.mapView.allLayerViews.toArray();
143
+ let h;
144
+ r.some(async (n) => n.layer.title === l?.title && n.layer.type === "feature" ? (h = n, this.mapView && await g([i], h, this.mapView, !0, void 0, this.zoomToScale), !0) : !1);
140
145
  }
141
146
  }
142
147
  async beforeLayerSelectionChange(e) {
143
148
  if (this._hasPendingEdits()) {
144
149
  e.preventDefault();
145
- const i = e.detail.ref, a = await this._validateActiveEdits([], this.selectedIds);
146
- return e.detail.selectedIds ? await i.setLayerByIds(a ? e.detail.newIds : e.detail.currentIds, !0) : await i.setLayerById(a ? e.detail.newId : e.detail.currentId, !0);
150
+ const i = e.detail.ref, s = await this._validateActiveEdits([], this.selectedIds);
151
+ return e.detail.selectedIds ? await i.setLayerByIds(s ? e.detail.newIds : e.detail.currentIds, !0) : await i.setLayerById(s ? e.detail.newId : e.detail.currentId, !0);
147
152
  }
148
153
  }
149
154
  async layerSelectionChange(e) {
@@ -168,20 +173,30 @@ class F extends S {
168
173
  async clearSelection() {
169
174
  await this._validateActiveEdits([], this.selectedIds) && this._clearSelection();
170
175
  }
176
+ async mapChanged() {
177
+ this._queryingData = !1, this._clearSelection();
178
+ }
179
+ async featuresSelected(e) {
180
+ e.detail.forEach((i) => {
181
+ const s = this._table?.highlightIds.indexOf(i);
182
+ s && s < 0 && this._table?.highlightIds.add(i);
183
+ });
184
+ }
171
185
  async load() {
172
- await this._initModules(), this._initToolInfos();
186
+ await this._initModules(), await this._initToolInfos();
173
187
  }
174
188
  render() {
175
- const e = this._fetchingData ? "display-none" : "", t = this._fetchingData ? "" : "display-none", i = this._queryingData ? "" : "display-none", a = this._size.toString(), s = this.selectedIds.length.toString(), l = this.isMobile ? "height-full" : "height-full-adjusted", o = this._canShowFullTextSearch();
176
- return this._validateActiveActions(), h`<div><calcite-scrim class=${u(i)} .loading=${this._queryingData}></calcite-scrim><calcite-shell>${this._getTableControlRow("header")}<div class=${`width-full ${l}`}><calcite-panel class="height-full width-full">${o && h`<div class="search-container border-bottom"><calcite-input class=search clearable icon=search @calciteInputChange=${(n) => void this._searchTextChanged(n)} .placeholder=${this._searchPlaceHolder} title=${this._searchPlaceHolder ?? d} type=search></calcite-input></div>` || ""}<calcite-loader class=${u(t)} .label=${this._translations.fetchingData} scale=l></calcite-loader><div class=${u(e)} ${c(this.onTableNodeCreate)}></div></calcite-panel></div>${this.isMobile ? void 0 : h`<div class="bottom-left text-color height-19" id=solutions-selected-count-div>${(this._translations.recordsTotal?.replace("{{total-number-of-records}}", a) + " | " + this._translations.recordsSelected.replace("{{selected-number-of-records}}", s)).replace("{{total}}", a).replace("{{selected}}", s)}</div>`}</calcite-shell>${this.createFilterModal && this._filterModal() || ""}</div>`;
189
+ const e = this._fetchingData ? "display-none" : "", t = this._fetchingData ? "" : "display-none", i = this._queryingData ? "" : "display-none", s = this._size.toString(), a = this.selectedIds.length.toString(), l = this.isMobile ? "height-full" : "height-full-adjusted", r = this._canShowFullTextSearch();
190
+ return this._validateActiveActions(), d`<div><calcite-scrim class=${p(i)} .loading=${this._queryingData}></calcite-scrim><calcite-shell><div class=${`width-full ${l}`}><calcite-panel class="height-full width-full panel-header-override">${this._getMapLayerPicker("header-actions-start")}${this._getTableControlRow("header-content")}${this._getActionsEnd("header-actions-end")}${r && d`<div class="search-container border-bottom"><calcite-input class=search clearable icon=search @calciteInputChange=${(h) => void this._searchTextChanged(h)} .placeholder=${this._searchPlaceHolder} title=${this._searchPlaceHolder ?? o} type=search></calcite-input></div>` || ""}<calcite-loader class=${p(t)} .label=${this._translations.fetchingData} scale=l></calcite-loader><div class=${p(e)} ${c(this.onTableNodeCreate)}></div></calcite-panel></div>${this.isMobile ? void 0 : d`<div class="bottom-left text-color height-19" id=solutions-selected-count-div>${(this._translations.recordsTotal?.replace("{{total-number-of-records}}", s) + " | " + this._translations.recordsSelected.replace("{{selected-number-of-records}}", a)).replace("{{total}}", s).replace("{{selected}}", a)}</div>`}</calcite-shell>${this.createFilterModal && this._filterModal() || ""}</div>`;
177
191
  }
178
192
  async _initModules() {
179
- const [e, t, i] = await y([
193
+ const [e, t, i, s] = await y([
180
194
  "esri/widgets/FeatureTable",
181
195
  "esri/core/reactiveUtils",
182
- "esri/widgets/FeatureTable/support/TableTemplate"
196
+ "esri/widgets/FeatureTable/support/TableTemplate",
197
+ "esri/rest/support/RelationshipQuery"
183
198
  ]);
184
- this.FeatureTable = e, this.reactiveUtils = t, this.TableTemplate = i;
199
+ this.FeatureTable = e, this.reactiveUtils = t, this.TableTemplate = i, this.RelationshipQuery = s;
185
200
  }
186
201
  async _searchTextChanged(e) {
187
202
  this._fullTextSearchInfo.forEach((t) => {
@@ -199,10 +214,10 @@ class F extends S {
199
214
  this._searchExpression && this._clearSearchDefinitionExpression();
200
215
  let i = [];
201
216
  if (this._fullTextSearchInfo?.length && this._fullTextSearchInfo[0].searchTerm) {
202
- const a = this._layer?.createQuery();
203
- a.fullText = this._fullTextSearchInfo, i = this._layer ? await this._layer.queryObjectIds(a) : [], t && e?.length && (i = i.filter((s) => e.includes(s))), await this._updateSearchDefinitionExpression(i?.length ? i : [-1]);
217
+ const s = this._layer?.createQuery();
218
+ s.fullText = this._fullTextSearchInfo, i = this._layer ? await this._layer.queryObjectIds(s) : [], t && e?.length && (i = i.filter((a) => e.includes(a))), await this._updateSearchDefinitionExpression(i?.length ? i : [-1]);
204
219
  }
205
- t && i?.length && (this._showOnlySelected = !0, this._table?.highlightIds.addMany(i.reverse())), await new Promise((a) => setTimeout(a, 800)), await this._updateAllIds();
220
+ t && i?.length && (this._showOnlySelected = !0, this._table?.highlightIds.addMany(i.reverse())), await new Promise((s) => setTimeout(s, 800)), await this._updateAllIds();
206
221
  }
207
222
  _clearSearchDefinitionExpression() {
208
223
  const e = this._layer?.definitionExpression;
@@ -225,13 +240,13 @@ class F extends S {
225
240
  const e = this._layer.indexes?.filter((t) => t.indexType == "FullText");
226
241
  if (e?.length) {
227
242
  const t = [];
228
- e.forEach((a) => {
229
- t.push(...a.fields.split(","));
243
+ e.forEach((s) => {
244
+ t.push(...s.fields.split(","));
230
245
  });
231
246
  const i = [];
232
- t.forEach((a) => {
233
- const s = this._layer?.getField(a.trim());
234
- s?.alias && i.push(s.alias);
247
+ t.forEach((s) => {
248
+ const a = this._layer?.getField(s.trim());
249
+ a?.alias && i.push(a.alias);
235
250
  }), this._searchPlaceHolder = this._translations.searchPlaceholder.replace("{{fields}}", i.join(", ")), this._fullTextSearchInfo.push({
236
251
  onFields: ["*"],
237
252
  searchTerm: "",
@@ -240,20 +255,27 @@ class F extends S {
240
255
  }
241
256
  }
242
257
  }
258
+ _getMapLayerPicker(e) {
259
+ const t = this.isMobile ? "border-top" : "";
260
+ return d`<div class=${`border-end ${t}`} id=solutions-map-layer-picker-container slot=${e ?? o}><map-layer-picker appearance=transparent .defaultLayerId=${this.defaultLayerId} display=inline-flex height=50 .isMobile=${this.isMobile} .mapView=${this.mapView} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} placeholder-icon=layers scale=l .selectedIds=${this._layer ? [this._layer?.id] : []} show-single-layer-as-label show-tables type=dropdown></map-layer-picker></div>`;
261
+ }
262
+ _getActionsEnd(e) {
263
+ const t = this._relatedFeatureTable ? this._relatedFeatureTable.layer : this._layer, i = this._relatedFeatureTable || this._table;
264
+ return d`<div class="display-flex" slot=${e ?? o}><field-selection .layer=${t} .mapView=${this.mapView} .table=${i}></field-selection>${this.enableShare && !this.isMobile ? this._getShare("share") : void 0}</div>`;
265
+ }
243
266
  _getTableControlRow(e) {
244
- return h`<div class=${"display-flex height-51-px border-bottom"} slot=${e ?? d} ${c(this._toolbar)}>${this._getActionBar()}<div slot=header-actions-end class="display-flex absolute-right"><field-selection class="actions-end" .layer=${this._layer} .mapView=${this.mapView} .table=${this._table}></field-selection>${this.enableShare && !this.isMobile ? this._getShare("share") : void 0}</div></div>`;
267
+ return d`<div class=${"height-51-px width-full display-flex"} slot=${e ?? o} ${c(this._toolbar)}>${this._getActionBar()}</div>`;
245
268
  }
246
269
  _getActionBar() {
247
- const e = this.isMobile ? "border-top" : "";
248
- return h`<calcite-action-bar class=width-full expand-disabled expanded id=${this._getId("bar") ?? d} layout=horizontal><div class=${`border-end ${e}`} id=solutions-map-layer-picker-container><map-layer-picker appearance=transparent .defaultLayerId=${this.defaultLayerId} display=inline-flex height=50 .isMobile=${this.isMobile} .mapView=${this.mapView} @lyShowUpdatableLayers=${this.onlyShowUpdatableLayers} placeholder-icon=layers scale=l .selectedIds=${this._layer ? [this._layer?.id] : []} show-single-layer-as-label show-tables type=dropdown></map-layer-picker></div><calcite-action-group>${this.isMobile ? void 0 : this._getActions()}</calcite-action-group></calcite-action-bar>`;
270
+ return d`<calcite-action-bar class=width-full expand-disabled id=${this._getId("bar") ?? o} layout=horizontal><calcite-action-group>${this.isMobile ? void 0 : this._getActions()}</calcite-action-group></calcite-action-bar>`;
249
271
  }
250
272
  _getActions() {
251
273
  return this._toolInfos?.reduce((e, t) => (t && e.push(t.isDanger ? this._getDangerAction(t.icon, t.label, t.func, t.disabled) : this._getAction(t.active, t.icon, t.indicator, t.label, t.func, t.disabled, !!t.loading)), e), []);
252
274
  }
253
275
  _validateEnabledActions() {
254
276
  const e = this._featuresSelected(), t = this.selectedIds.length > 1 && this._layer?.capabilities?.operations?.supportsUpdate, i = ["zoom-to-object", "pencil", "trash", "erase", "selected-items-filter"];
255
- this._toolInfos?.forEach((a) => {
256
- a && i.indexOf(a.icon) > -1 && (a.disabled = a.icon === "pencil" ? !t : !e);
277
+ this._toolInfos?.forEach((s) => {
278
+ s && i.indexOf(s.icon) > -1 && (s.disabled = s.icon === "pencil" ? !t : !e);
257
279
  });
258
280
  }
259
281
  _validateActiveActions() {
@@ -262,25 +284,31 @@ class F extends S {
262
284
  t && e.indexOf(t.icon) > -1 && (t.icon === "filter" && (t.indicator = this._filterActive), t.icon === "list-check-all" && (t.active = this._selectAllActive), t.icon === "selected-items-filter" && (t.active = this._showOnlySelected, t.label = this._showOnlySelected ? this._translations.showAll : this._translations.showSelected));
263
285
  });
264
286
  }
265
- _initToolInfos() {
266
- const e = this._featuresSelected();
267
- this.selectedIds.length > 1 && this._layer?.capabilities?.operations?.supportsUpdate;
268
- const t = !this.mapHidden && !this._layer?.isTable, i = this._featuresEmpty(), a = !this._layer?.isTable || this._hasFilterExpressions(), s = [];
269
- t && s.push({
270
- active: !1,
271
- icon: "zoom-to-object",
272
- indicator: !1,
273
- label: this._translations.zoom,
274
- func: () => this._zoom(),
275
- disabled: !e
276
- }), a && s.push({
287
+ async _initToolInfos() {
288
+ const e = this._featuresSelected(), t = this._relatedFeatureTable ? this._relatedFeatureTable.layer.isTable : this._layer?.isTable;
289
+ this.selectedIds.length > 1 && this._layer?.capabilities?.operations.supportsUpdate;
290
+ const i = !this.mapHidden && !t, s = !this._relatedFeatureTable && this._hasFilterExpressions(), a = this._featuresEmpty(), l = this.featureSelectionMode === "single";
291
+ let r = this.enableCSV;
292
+ if (this._relatedFeatureTable) {
293
+ const n = await this._queryRelatedFeatures();
294
+ r = Object.keys(n).length > 0;
295
+ }
296
+ const h = [];
297
+ s && h.push({
277
298
  active: !1,
278
299
  icon: "filter",
279
300
  indicator: !1,
280
301
  label: this._translations.filters,
281
302
  func: () => this.createFilterModal ? this._toggleFilter() : this.toggleFilter.emit(),
282
303
  disabled: !1
283
- }), this._deleteEnabled && s.push({
304
+ }), i && h.push({
305
+ active: !1,
306
+ icon: "zoom-to-object",
307
+ indicator: !1,
308
+ label: this._translations.zoom,
309
+ func: () => this._zoom(),
310
+ disabled: !e
311
+ }), this._deleteEnabled && h.push({
284
312
  active: !1,
285
313
  icon: "trash",
286
314
  indicator: !1,
@@ -288,50 +316,50 @@ class F extends S {
288
316
  func: () => this._showDelete(),
289
317
  disabled: !e,
290
318
  isDanger: !0
291
- }), s.push({
319
+ }), h.push({
292
320
  active: !1,
293
321
  icon: "erase",
294
322
  indicator: !1,
295
323
  label: this._translations.clearSelection,
296
324
  func: () => void this.clearSelection(),
297
325
  disabled: !e
298
- }), s.push({
326
+ }), this._relatedFeatureTable || h.push({
299
327
  active: !1,
300
328
  icon: "selected-items-filter",
301
329
  indicator: !1,
302
330
  label: this._showOnlySelected ? this._translations.showAll : this._translations.showSelected,
303
331
  func: () => this._toggleShowSelected(),
304
332
  disabled: !e
305
- }), s.push({
333
+ }), !l && !this._relatedFeatureTable && h.push({
306
334
  active: !1,
307
335
  icon: "list-check-all",
308
336
  indicator: !1,
309
337
  func: async () => await this._selectAll(),
310
338
  label: this._translations.selectAll,
311
- disabled: i
312
- }), s.push({
339
+ disabled: a
340
+ }), !l && !this._relatedFeatureTable && h.push({
313
341
  active: !1,
314
342
  icon: "compare",
315
343
  indicator: !1,
316
344
  func: async () => await this._switchSelected(),
317
345
  label: this._translations.switchSelected,
318
- disabled: i
319
- }), s.push({
346
+ disabled: a
347
+ }), h.push({
320
348
  active: !1,
321
349
  icon: "refresh",
322
350
  indicator: !1,
323
351
  func: () => this._refresh(),
324
352
  label: this._translations.refresh,
325
353
  disabled: !1
326
- }), this.enableCSV && s.push({
354
+ }), r && h.push({
327
355
  active: !1,
328
356
  icon: "export",
329
357
  indicator: !1,
330
358
  func: () => void this._exportToCSV(),
331
359
  label: this._translations.exportCSV,
332
360
  loading: this._csvExporting,
333
- disabled: i
334
- }), console.log(s), this._toolInfos = [...s];
361
+ disabled: a
362
+ }), this._toolInfos = [...h];
335
363
  }
336
364
  _updateFloorDefinitionExpression() {
337
365
  if (this._floorField && this._floorLevel) {
@@ -340,19 +368,19 @@ class F extends S {
340
368
  }
341
369
  }
342
370
  _featuresSelected() {
343
- return this.selectedIds.length > 0;
371
+ return this._relatedFeatureTable ? this._relatedFeatureTable.highlightIds.items.length > 0 : this.selectedIds.length > 0;
344
372
  }
345
373
  _featuresEmpty() {
346
- return this._allIds.length === 0;
374
+ return this._allIds?.length === 0;
347
375
  }
348
376
  _hasFilterExpressions() {
349
377
  let e = [];
350
378
  const t = this._layer?.id;
351
379
  return this.mapInfo?.filterConfig?.layerExpressions && t !== void 0 && (e = this.mapInfo.filterConfig.layerExpressions.filter((i) => i.id === t)), e.length > 0;
352
380
  }
353
- _getAction(e, t, i, a, s, l, o) {
354
- const n = this._layer === void 0 ? !0 : l;
355
- return h`<calcite-action .active=${e} appearance=solid .disabled=${n} .icon=${t} .id=${`layer-table-${t}`} .indicator=${i} .label=${a} .loading=${o} @click=${s} .text=${a} text-enabled></calcite-action>`;
381
+ _getAction(e, t, i, s, a, l, r) {
382
+ const h = this._layer === void 0 ? !0 : l;
383
+ return d`<calcite-action .active=${e} appearance=solid .disabled=${h} .id=${`layer-table-${t}`} .indicator=${i} .label=${s} .loading=${r} @click=${a} text text-enabled><div class="display-flex"><calcite-icon .icon=${t} scale=s></calcite-icon><calcite-label class="label-override padding-start-1-4">${s}</calcite-label></div></calcite-action>`;
356
384
  }
357
385
  _showDelete() {
358
386
  this.showDelete.emit({
@@ -360,7 +388,7 @@ class F extends S {
360
388
  });
361
389
  }
362
390
  _getShare(e) {
363
- return this.mapView && h`<div id=${this._getId(e) ?? d}><instant-apps-social-share class="actions-end" .embed=${this.shareIncludeEmbed} flip-rtl popover-button-icon-scale=s scale=m share-button-color=neutral share-button-type=action .socialMedia=${this.shareIncludeSocial} .view=${this.mapView} ${c(this._shareNode)}></instant-apps-social-share>${this._getToolTip("bottom", e, this._translations.share)}</div>` || "";
391
+ return this.mapView && d`<div id=${this._getId(e) ?? o}><instant-apps-social-share class="height-51 width-51 display-flex" .embed=${this.shareIncludeEmbed} flip-rtl popover-button-icon-scale=s scale=m share-button-color=neutral share-button-type=action .socialMedia=${this.shareIncludeSocial} .view=${this.mapView} ${c(this._shareNode)}></instant-apps-social-share>${this._getToolTip("bottom", e, this._translations.share)}</div>` || "";
364
392
  }
365
393
  _updateShareUrl() {
366
394
  const e = this._shareNode.value?.shareUrl;
@@ -370,17 +398,18 @@ class F extends S {
370
398
  this.mapInfo?.id ? t.searchParams.set("webmap", this.mapInfo.id) : t.searchParams.delete("webmap"), this._layer?.id ? t.searchParams.set("layer", this._layer.id) : t.searchParams.delete("layer"), this.selectedIds?.length > 0 ? t.searchParams.set("oid", this.selectedIds.join(",")) : t.searchParams.delete("oid"), this.appLayout && t.searchParams.set("applayout", this.appLayout), this._shareNode.value && (this._shareNode.value.shareUrl = t.href);
371
399
  }
372
400
  _getToolTip(e, t, i) {
373
- return document.getElementById(t) ? h`<calcite-tooltip .placement=${e} .referenceElement=${t}><span>${i}</span></calcite-tooltip>` : void 0;
401
+ return document.getElementById(t) ? d`<calcite-tooltip .placement=${e} .referenceElement=${t}><span>${i}</span></calcite-tooltip>` : void 0;
374
402
  }
375
403
  _getId(e) {
376
404
  return `solutions-action-${e}`;
377
405
  }
378
- _getDangerAction(e, t, i, a) {
379
- const s = this._layer === void 0 ? !0 : a;
380
- return h`<div class="display-flex" id=${this._getId(e) ?? d}>${h`<calcite-action appearance=solid .disabled=${s} id=${e ?? d} @click=${i} text><calcite-button appearance=transparent .iconStart=${e} kind=danger>${t}</calcite-button></calcite-action>`}${this._getToolTip("bottom", e, t)}</div>`;
406
+ _getDangerAction(e, t, i, s) {
407
+ const a = this._layer === void 0 ? !0 : s;
408
+ return d`<div class="display-flex" id=${this._getId(e) ?? o}>${d`<calcite-action appearance=solid .disabled=${a} id=${e ?? o} @click=${i} text><calcite-icon class="danger-icon-color" .icon=${e} scale=s></calcite-icon><calcite-label class="label-override padding-start-1-4 danger-label-color">${t}</calcite-label></calcite-action>`}${this._getToolTip("bottom", e, t)}</div>`;
381
409
  }
382
410
  _getIds() {
383
- return this._table?.highlightIds?.map((e) => Number.parseInt(e.toString(), 10)).toArray() || [];
411
+ let e = this._relatedFeatureTable ?? this._table;
412
+ return this._relatedFeatureTable && this._table && this._table.highlightIds.getItemAt(0) !== this.selectedIds[0] && (e = this._table), e?.highlightIds.map((t) => Number.parseInt(t.toString(), 10)).toArray() ?? [];
384
413
  }
385
414
  onTableNodeCreate(e) {
386
415
  this._tableNode = e;
@@ -392,6 +421,7 @@ class F extends S {
392
421
  layer: this._layer,
393
422
  view: this.mapView,
394
423
  columnReorderingEnabled: this.enableColumnReorder,
424
+ relatedRecordsEnabled: !0,
395
425
  editingEnabled: this._editEnabled && this.enableInlineEdit,
396
426
  highlightEnabled: !1,
397
427
  multiSortEnabled: !1,
@@ -412,28 +442,60 @@ class F extends S {
412
442
  this._handleOnChange(i);
413
443
  })), this._table?.viewModel.addHandles(this._table.on("cell-pointerover", this.tempHighlightOnHover.bind(this))), this._table?.viewModel.addHandles(this._table.on("cell-pointerout", this._removeTempHighlight.bind(this))), this.listenOn(this._tableNode, "mouseleave", this._removeTempHighlight), this.reactiveUtils && this._table?.viewModel.addHandles(this.reactiveUtils.watch(() => this._table.size, (i) => {
414
444
  this._size = i;
415
- }));
445
+ })), this.reactiveUtils?.watch(
446
+ () => this._table?.relatedTable,
447
+ // eslint-disable-next-line @typescript-eslint/no-misused-promises
448
+ async (i) => {
449
+ if (i) {
450
+ if (i.rowHighlightIds.length) {
451
+ const s = {
452
+ added: [i.rowHighlightIds.getItemAt(0)],
453
+ removed: []
454
+ };
455
+ this._handleOnChange(s);
456
+ }
457
+ if (this._relatedFeatureTable = i, typeof i.layer?.id == "string" && i.layer?.fields) {
458
+ const s = this._getColumnTemplates(i.layer.id, i.layer.fields);
459
+ this._relatedFeatureTable.tableTemplate = this.TableTemplate && new this.TableTemplate({
460
+ columnTemplates: s
461
+ });
462
+ }
463
+ i.highlightIds.on("change", (s) => {
464
+ this._handleOnChange(s);
465
+ });
466
+ } else {
467
+ this.selectedRelatedIds = [], this._relatedFeatureTable = void 0;
468
+ const s = this._layer;
469
+ this._refresh(), s && this.relatedRecordToggled.emit(s), this._finishOnChange();
470
+ }
471
+ await this._initToolInfos();
472
+ }
473
+ );
416
474
  }));
417
475
  }
418
476
  async _handleOnChange(e) {
419
477
  if (!await this._validateActiveEdits([...e.added], [...e.removed]))
420
478
  return;
421
479
  const i = [...this._getIds()];
422
- this.selectedIds = i.reverse(), this._tempSelectedIds = [...this.selectedIds], this._finishOnChange(), this._selectionFromMap = !1, this._highlightFeatures(this.selectedIds[0]);
480
+ let s = this._getSelectedLayer(i);
481
+ this._relatedFeatureTable && this._table?.highlightIds.getItemAt(0) !== this.selectedIds[0] && (s = this._layer, await this._initToolInfos()), s && this.relatedRecordToggled.emit(s), this.featureSelectionMode === "single" && (this._relatedFeatureTable && i.length > 1 ? (this._relatedFeatureTable.highlightIds.remove(i[0]), i.shift()) : i.length > 1 && !this._selectAllActive && (this._table?.highlightIds.remove(i[0]), i.shift())), !this._relatedFeatureTable || this._relatedFeatureTable && this._table?.highlightIds.getItemAt(0) !== this.selectedIds[0] ? (this.selectedRelatedIds = [], this.selectedIds = i.reverse(), this._tempSelectedIds = [...this.selectedIds], this._highlightFeatures(this.selectedIds[0])) : this.selectedRelatedIds = i.reverse(), this._finishOnChange();
423
482
  }
424
483
  async _validateActiveEdits(e, t) {
425
484
  let i = !0;
426
485
  if (this._editor && !this._skipEditCheck) {
427
486
  if (this._hasPendingEdits()) {
428
- let s = !1;
487
+ let a = !1;
429
488
  try {
430
489
  this._editor.viewModel.activeWorkflow && await this._editor.viewModel.activeWorkflow.cancel({
431
490
  force: !1
432
491
  });
433
492
  } catch (l) {
434
- s = l?.name === "workflow:cancel-denied";
493
+ a = l?.name === "workflow:cancel-denied";
494
+ }
495
+ if (a) {
496
+ const l = this._relatedFeatureTable && this._relatedFeatureTable.highlightIds.length > 0 ? this._relatedFeatureTable : this._table;
497
+ i = !1, this._skipEditCheck = !0, e.length > 0 ? l?.highlightIds.removeMany(e) : t.length > 0 && l?.highlightIds.addMany(t);
435
498
  }
436
- s && (i = !1, this._skipEditCheck = !0, e.length > 0 ? this._table?.highlightIds.removeMany(e) : t.length > 0 && this._table?.highlightIds.addMany(t));
437
499
  }
438
500
  } else
439
501
  i = !this._skipEditCheck, this._skipEditCheck = !1;
@@ -444,7 +506,11 @@ class F extends S {
444
506
  return e || t;
445
507
  }
446
508
  _finishOnChange() {
447
- this._showOnlySelected && (this._featuresSelected() && this._table ? this._table.filterBySelectionEnabled = !0 : this._toggleShowSelected()), this.featureSelectionChange.emit(this.selectedIds);
509
+ this._showOnlySelected && !this._relatedFeatureTable && (this._table && this._featuresSelected() ? this._table.filterBySelectionEnabled = !0 : this._toggleShowSelected());
510
+ const e = this._getSelectedIds();
511
+ setTimeout(() => {
512
+ this.featureSelectionChange.emit(e);
513
+ }, 50);
448
514
  }
449
515
  tempHighlightOnHover(e) {
450
516
  if (this._removeTempHighlight(), this._selectedLayerView) {
@@ -456,7 +522,7 @@ class F extends S {
456
522
  this._temporaryFeatureHandle && this._temporaryFeatureHandle.remove();
457
523
  }
458
524
  _highlightFeatures(e) {
459
- if (this._clearHighlights(), this._selectedLayerView && (this._currentFeatureHighlightHandle = this._selectedLayerView?.highlight([e], { name: "current-selection" }), this.selectedIds.length > 1)) {
525
+ if (this._clearHighlights(), this.selectedIds.length > 0 && this._selectedLayerView && (this._currentFeatureHighlightHandle = this._selectedLayerView?.highlight([e], { name: "current-selection" }), this.selectedIds.length > 1)) {
460
526
  const t = this.selectedIds.filter((i) => i !== e);
461
527
  this._defaultFeaturesHandle = this._selectedLayerView?.highlight(t, { name: "default" });
462
528
  }
@@ -468,13 +534,13 @@ class F extends S {
468
534
  if (this._layer) {
469
535
  const e = this._getColumnTemplates(this._layer?.id, this._layer?.fields);
470
536
  e?.length === 0 ? this._tableNode?.classList.add("display-none") : this._tableNode?.classList.remove("display-none");
471
- const t = this._table?.tableTemplate?.columnTemplates, i = t && e && t.length !== e.length || e?.some((a, s) => t && t[s] ? JSON.stringify(t[s]) !== JSON.stringify(a) : !1);
537
+ const t = this._table?.tableTemplate?.columnTemplates, i = t && e && t.length !== e.length || e?.some((s, a) => t && t[a] ? JSON.stringify(t[a]) !== JSON.stringify(s) : !1);
472
538
  if (this._table && e && (i || !this._columnsInfo)) {
473
539
  this._table.tableTemplate = this.TableTemplate && new this.TableTemplate({
474
540
  columnTemplates: e
475
541
  });
476
- const a = e.map((s) => s.fieldName);
477
- this._initColumnsInfo(a);
542
+ const s = e.map((a) => a.fieldName);
543
+ this._initColumnsInfo(s);
478
544
  }
479
545
  }
480
546
  }
@@ -491,7 +557,7 @@ class F extends S {
491
557
  }
492
558
  async finishLoading() {
493
559
  try {
494
- this._loaded = !0, this._table?.highlightIds.removeAll(), this._table.objectIds.removeAll(), this._resetColumnTemplates(), this._showOnlySelected = !1, await this._handleDefaults(), await this._sortTable(), this._initToolInfos(), ["esri-feature-table", "esri-widget"].forEach((t) => {
560
+ this._loaded = !0, this._table?.highlightIds.removeAll(), this._table.objectIds.removeAll(), this._resetColumnTemplates(), this._showOnlySelected = !1, await this._handleDefaults(), await this._sortTable(), await this._initToolInfos(), ["esri-feature-table", "esri-widget"].forEach((t) => {
495
561
  this._tableNode && !this._tableNode.classList.contains(t) && this._tableNode.classList.add(t);
496
562
  });
497
563
  } catch (e) {
@@ -514,10 +580,10 @@ class F extends S {
514
580
  }
515
581
  }
516
582
  _initColumnsInfo(e) {
517
- const t = this._table?.columns.reduce((s, l) => ((!e || e?.indexOf(l.name) > -1) && (s[l.name] = !l.hidden), s), {}), i = this._table?.columns.map((s) => s.name);
518
- (e && i ? e.filter((s) => i.indexOf(s) < 0) : []).forEach((s) => {
519
- t[s] = !0;
520
- }), this._columnsInfo = e ? e.reduce((s, l) => (s[l] = t[l], s), {}) : t;
583
+ const t = this._table?.columns.reduce((a, l) => ((!e || e?.indexOf(l.name) > -1) && (a[l.name] = !l.hidden), a), {}), i = this._table?.columns.map((a) => a.name);
584
+ (e && i ? e.filter((a) => i.indexOf(a) < 0) : []).forEach((a) => {
585
+ t[a] = !0;
586
+ }), this._columnsInfo = e ? e.reduce((a, l) => (a[l] = t[l], a), {}) : t;
521
587
  }
522
588
  async _selectDefaultFeature(e) {
523
589
  e.length > 0 && this._table?.highlightIds.addMany(e);
@@ -527,13 +593,13 @@ class F extends S {
527
593
  }
528
594
  async _sortTable() {
529
595
  let e = this._layer?.objectIdField, t = "desc", i;
530
- const a = this.mapInfo?.layerOptions?.layers, s = this._layer?.id;
531
- a && a.length > 0 && s !== void 0 && (i = a.filter((l) => l.id === s), i && i.length > 0 && (i = i[0], i.sortField && i.fields?.includes(i.sortField) && (e = i.sortField), t = i?.sortOrder ? i.sortOrder : "desc")), this._table && this._layer && (await this._table.when(), await this._layer.when(() => {
596
+ const s = this.mapInfo?.layerOptions?.layers, a = this._layer?.id;
597
+ s && s.length > 0 && a !== void 0 && (i = s.filter((l) => l.id === a), i && i.length > 0 && (i = i[0], i.sortField && i.fields?.includes(i.sortField) && (e = i.sortField), t = i?.sortOrder ? i.sortOrder : "desc")), this._table && this._layer && (await this._table.when(), await this._layer.when(() => {
532
598
  e && this._table?.sortColumn(e, t);
533
599
  }));
534
600
  }
535
601
  _filterModal() {
536
- return h`<calcite-dialog class="filter-content-space" .heading=${this._translations.filter.replace("{{title}}", this._layer?.title || "")} id=solutions-filter-dialog kind=brand modal @calciteDialogClose=${() => void this._closeFilter()} .open=${this._filterOpen} width-scale=s>${this.mapView && h`<instant-apps-filter-list close-btn .closeBtnOnClick=${() => void this._closeFilter()} combobox-overlay-positioning=fixed .layerExpressions=${this._layerExpressions} @filterListReset=${() => void this._handleFilterListReset()} @filterUpdate=${() => this._filterList?.value?.filterCount && void this._handleFilterUpdate(this._filterList?.value?.filterCount > 0)} .view=${this.mapView} ${c(this._filterList)}></instant-apps-filter-list>` || ""}</calcite-dialog>`;
602
+ return d`<calcite-dialog class="filter-content-space" .heading=${this._translations.filter.replace("{{title}}", this._layer?.title || "")} id=solutions-filter-dialog kind=brand modal @calciteDialogClose=${() => void this._closeFilter()} .open=${this._filterOpen} width-scale=s>${this.mapView && d`<instant-apps-filter-list close-btn .closeBtnOnClick=${() => void this._closeFilter()} combobox-overlay-positioning=fixed .layerExpressions=${this._layerExpressions} @filterListReset=${() => void this._handleFilterListReset()} @filterUpdate=${() => this._filterList?.value?.filterCount && void this._handleFilterUpdate(this._filterList?.value?.filterCount > 0)} .view=${this.mapView} ${c(this._filterList)}></instant-apps-filter-list>` || ""}</calcite-dialog>`;
537
603
  }
538
604
  async _handleFilterListReset() {
539
605
  this._filterActive = !1, this._updateShareUrl(), await this._searchFullText();
@@ -550,13 +616,13 @@ class F extends S {
550
616
  () => this.mapView?.stationary,
551
617
  // eslint-disable-next-line @typescript-eslint/no-misused-promises
552
618
  async () => {
553
- if (this._shouldUpdateTableOnExtentChange) {
619
+ if (this._shouldUpdateTableOnExtentChange && this.appLayout === "splitView") {
554
620
  if (await new Promise((e) => setTimeout(e, 800)), this._table && this.mapView) {
555
621
  this._table.filterGeometry = this.mapView.extent;
556
622
  const e = {
557
623
  geometry: this.mapView.extent
558
- }, t = this._layer && await this._layer.queryObjectIds(e), i = this.selectedIds.filter((s) => !t?.includes(s)), a = this._outOFExtentOids.filter((s) => t?.includes(s));
559
- i.length > 0 && (this._table && this._table?.viewModel?.attachmentsViewOptions?.objectId && this._table.viewModel.hideAttachmentsView(), this._table.highlightIds.removeMany(i), this._outOFExtentOids = [...this._outOFExtentOids, ...i]), a.length > 0 && (this.selectedIds = [.../* @__PURE__ */ new Set([...this.selectedIds, ...a])], this._table.highlightIds.removeAll(), this._table.highlightIds.addMany(this.selectedIds.reverse()), this._outOFExtentOids = this._outOFExtentOids.filter((s) => !a.includes(s)));
624
+ }, t = this._layer && await this._layer.queryObjectIds(e), i = this.selectedIds.filter((a) => !t?.includes(a)), s = this._outOFExtentOids.filter((a) => t?.includes(a));
625
+ i.length > 0 && (this._table && this._table?.viewModel?.attachmentsViewOptions?.objectId && this._table.viewModel.hideAttachmentsView(), this._table.highlightIds.removeMany(i), this._outOFExtentOids = [...this._outOFExtentOids, ...i]), s.length > 0 && (this.selectedIds = [.../* @__PURE__ */ new Set([...this.selectedIds, ...s])], this._table.highlightIds.removeAll(), this._table.highlightIds.addMany(this.selectedIds.reverse()), this._outOFExtentOids = this._outOFExtentOids.filter((a) => !s.includes(a)));
560
626
  }
561
627
  this._allIds = await this.queryAllIds();
562
628
  }
@@ -580,20 +646,33 @@ class F extends S {
580
646
  const t = {
581
647
  include: this._layer
582
648
  }, i = await this.mapView?.hitTest(e.screenPoint, t);
583
- i && i.results.length > 0 ? (i.results.forEach((a) => {
584
- const s = Number(a.graphic.getObjectId()), l = this._table?.highlightIds.indexOf(s);
585
- l !== void 0 && l < 0 && (this._selectionFromMap = !0, this._table?.highlightIds.add(s));
586
- }), this._showOnlySelected && this._table && (this._table.filterBySelectionEnabled = !0)) : await this.clearSelection();
649
+ if (i && i.results.length > 0) {
650
+ const s = i.results;
651
+ if (this.featureSelectionMode === "single") {
652
+ this._table?.highlightIds.removeAll();
653
+ const l = s[0].graphic.getObjectId();
654
+ if (l) {
655
+ const r = this._table?.highlightIds.indexOf(l);
656
+ r !== void 0 && r < 0 && this._table?.highlightIds.add(l);
657
+ }
658
+ } else
659
+ s.forEach((a) => {
660
+ const l = Number(a.graphic.getObjectId()), r = this._table?.highlightIds.indexOf(l);
661
+ r && r < 0 && l && this._table?.highlightIds.add(l);
662
+ });
663
+ this._showOnlySelected && this._table && (this._table.filterBySelectionEnabled = !0);
664
+ } else
665
+ await this.clearSelection();
587
666
  }
588
667
  async _selectAll() {
589
- const e = this._allIds, t = e.filter((a) => this.selectedIds.indexOf(a) < 0);
668
+ const e = this._allIds, t = e.filter((s) => this.selectedIds.indexOf(s) < 0);
590
669
  await this._validateActiveEdits(t, this.selectedIds) && this._table ? (this._table.highlightIds.removeAll(), this._table.highlightIds.addMany(e), this.selectedIds = e, this._finishOnChange(), this._selectAllActive = !0) : this._skipEditCheck = !1;
591
670
  }
592
671
  _toggleShowSelected() {
593
672
  this._showOnlySelected = !this._showOnlySelected, this._table && (this._table.filterBySelectionEnabled = this._showOnlySelected);
594
673
  }
595
674
  _clearSelection() {
596
- this.selectedIds = [], this._outOFExtentOids = [], this._table && this._table?.viewModel?.attachmentsViewOptions?.objectId && this._table.viewModel.hideAttachmentsView(), this._table?.highlightIds.removeAll(), this._clearHighlights(), this._table?.rowHighlightIds.removeAll(), this._finishOnChange();
675
+ this._relatedFeatureTable || (this.selectedIds = [], this._outOFExtentOids = [], this._table && this._table?.viewModel?.attachmentsViewOptions?.objectId && this._table.viewModel.hideAttachmentsView(), this._table?.highlightIds.removeAll(), this._clearHighlights(), this._table?.rowHighlightIds.removeAll()), this._relatedFeatureTable && (this._relatedFeatureTable?.highlightIds.removeAll(), this.selectedRelatedIds = []), this._finishOnChange();
597
676
  }
598
677
  _toggleFilter() {
599
678
  this._filterOpen = !this._filterOpen;
@@ -603,42 +682,82 @@ class F extends S {
603
682
  this._layerExpressions = e ? e.filter((t) => t.id === this._layer?.id) : [], this._filterList.value && (this._filterList.value.layerExpressions = this._layerExpressions, this._filterActive = this._layerExpressions.filter((t) => t.expressions.filter((i) => i.active).length > 0).length > 0);
604
683
  }
605
684
  async _switchSelected() {
606
- const e = [...this.selectedIds], t = this._allIds.reduce((a, s) => (e.indexOf(s) < 0 && a.push(s), a), []).sort((a, s) => a - s);
685
+ const e = [...this.selectedIds], t = this._allIds.reduce((s, a) => (e.indexOf(a) < 0 && s.push(a), s), []).sort((s, a) => s - a);
607
686
  await this._validateActiveEdits(t, e) && this._table ? (this._table.highlightIds.removeAll(), this._table.highlightIds.addMany(t), this.selectedIds = t, this._finishOnChange()) : this._skipEditCheck = !1;
608
687
  }
609
688
  async _exportToCSV() {
610
- const e = {}, t = this._getIds();
611
- this._layer && this._layer.title && (e[this._layer.id] = {
612
- selectionSetNames: [this._layer.title],
613
- ids: t,
614
- layer: this._layer
615
- });
616
- const i = this._table && this._table.columns.toArray().reduce((a, s) => {
617
- if (!s.hidden) {
618
- const l = s?.name || s?.fieldName;
619
- l && a.push(l.toLocaleLowerCase());
689
+ const e = this._relatedFeatureTable ? this._relatedFeatureTable.layer : this._layer;
690
+ if (!e)
691
+ return;
692
+ const t = {};
693
+ let i = this._getIds();
694
+ if (this._relatedFeatureTable?.tableParent && this._relatedFeatureTable.rowHighlightIds.length === 0) {
695
+ const l = this._relatedFeatureTable.tableParent.highlightIds?.getItemAt(0);
696
+ if (l !== void 0) {
697
+ const r = await this._queryRelatedFeatures(), h = [];
698
+ r && r[l]?.features && (r[l].features.forEach((n) => {
699
+ n.attributes && h.push(n.attributes[e.objectIdField]);
700
+ }), i = h.length > 0 ? h : []);
620
701
  }
621
- return a;
702
+ }
703
+ t[e.id] = {
704
+ selectionSetNames: [e.title || ""],
705
+ ids: i,
706
+ layer: e
707
+ };
708
+ const s = this._relatedFeatureTable ?? this._table;
709
+ if (!s)
710
+ return;
711
+ const a = s && s.columns.toArray().reduce((l, r) => {
712
+ if (!r.hidden) {
713
+ const h = r?.name || r?.fieldName;
714
+ h && l.push(h.toLocaleLowerCase());
715
+ }
716
+ return l;
622
717
  }, []);
623
- this._updateToolInfoLoading("export", !0), this._csvExporting = !0, this.mapView?.map && await x(
718
+ this._updateToolInfoLoading("export", !0), this._csvExporting = !0, this.mapView?.map && await v(
624
719
  this.mapView.map,
625
- e,
720
+ t,
626
721
  !1,
627
722
  // formatUsingLayerPopup
628
723
  !1,
629
724
  // removeDuplicates
630
725
  !0,
631
726
  // addColumnTitle
632
- i,
727
+ a,
633
728
  !0,
634
729
  !0
635
730
  ), this._updateToolInfoLoading("export", !1), this._csvExporting = !1;
636
731
  }
732
+ async _queryRelatedFeatures() {
733
+ const e = this._relatedFeatureTable ? this._relatedFeatureTable ? this._relatedFeatureTable.layer : this._relatedFeatureTable.tableParent?.layer : this._layer, t = this._relatedFeatureTable?.tableParent?.highlightIds?.items[0], i = this._relatedFeatureTable?.tableParent?.layer, s = e?.relationships?.find((r) => i.relationships?.some((h) => h.id === r.id)), a = this.RelationshipQuery && new this.RelationshipQuery({
734
+ objectIds: [t],
735
+ outFields: ["*"],
736
+ relationshipId: s?.id
737
+ });
738
+ return a && await i.queryRelatedFeatures(a).catch(async (r) => {
739
+ console.error(r);
740
+ });
741
+ }
637
742
  _updateToolInfoLoading(e, t) {
638
743
  this._toolInfos.some((i) => i?.icon === e ? (i.loading = t, !0) : !1);
639
744
  }
640
745
  async _refresh() {
641
- await this._validateActiveEdits([], this.selectedIds) && (await this._table?.refresh(), this._allIds = await this.queryAllIds(), this.featureSelectionChange.emit(this.selectedIds));
746
+ if (await this._validateActiveEdits([], this.selectedIds)) {
747
+ this._table && await this._table.refresh(), this._relatedFeatureTable && await this._relatedFeatureTable.refresh(), this._allIds = await this.queryAllIds();
748
+ const t = this._getSelectedLayer(this.selectedRelatedIds);
749
+ t && this.relatedRecordToggled.emit(t);
750
+ const i = this._getSelectedIds();
751
+ this.featureSelectionChange.emit(i);
752
+ }
753
+ }
754
+ _getSelectedIds() {
755
+ let e;
756
+ return this._relatedFeatureTable ? this.selectedRelatedIds.length > 0 ? e = this.selectedRelatedIds : e = this._relatedFeatureTable.tableParent?.highlightIds.toArray() ?? [] : e = this.selectedIds, e;
757
+ }
758
+ _getSelectedLayer(e) {
759
+ let t;
760
+ return this._relatedFeatureTable ? e.length > 0 ? t = this._relatedFeatureTable.layer : t = this._relatedFeatureTable.tableParent?.layer : t = this._layer, t;
642
761
  }
643
762
  async _zoom() {
644
763
  this._layer && this.mapView && await g(this.selectedIds, this._selectedLayerView, this.mapView, !0, void 0, this.zoomToScale);
@@ -649,28 +768,28 @@ class F extends S {
649
768
  this._fetchingData = !0;
650
769
  const i = this.mapView && await m(this.mapView, t);
651
770
  i && await i.when(async () => {
652
- this._selectedLayerView = !i.isTable && this.mapView ? await w(this.mapView, i.id) : null, this._table && this._table?.viewModel?.attachmentsViewOptions?.objectId && this._table.viewModel.hideAttachmentsView(), this._shouldUpdateTableOnExtentChange = !0, this._layer = i, this._getFullTextSearchInfo();
771
+ this._selectedLayerView = !i.isTable && this.mapView ? await w(this.mapView, i.id) : null, this._table && this._table?.viewModel?.attachmentsViewOptions?.objectId && this._table.viewModel.hideAttachmentsView(), this._shouldUpdateTableOnExtentChange = !0, this._layer = i, await this._initToolInfos(), this._getFullTextSearchInfo();
653
772
  });
654
773
  }
655
774
  this._fetchingData = !1;
656
775
  }
657
776
  _getColumnTemplates(e, t) {
658
777
  let i;
659
- this.mapInfo?.layerOptions?.layers.some((n) => n.id === e ? (i = n, !0) : !1);
660
- const a = this._layer?.attributeTableTemplate?.elements;
661
- let s = [];
662
- a?.length > 0 && this.honorMapFieldSettings && (s = a.map((n) => n.fieldName));
663
- const l = i?.fields && i?.fieldOrder ? i.fieldOrder.filter((n) => i?.fields && i.fields.indexOf(n) > -1) : s.length > 0 ? s : void 0;
664
- let o;
665
- return t && (o = t.reduce((n, r) => {
666
- const f = {
778
+ this.mapInfo?.layerOptions?.layers.some((h) => h.id === e ? (i = h, !0) : !1);
779
+ const s = this._layer?.attributeTableTemplate?.elements;
780
+ let a = [];
781
+ s?.length > 0 && this.honorMapFieldSettings && (a = s.map((h) => h.fieldName));
782
+ const l = i?.fields && i?.fieldOrder ? i.fieldOrder.filter((h) => i?.fields && i.fields.indexOf(h) > -1) : a.length > 0 ? a : void 0;
783
+ let r;
784
+ return t && (r = t.reduce((h, n) => {
785
+ const _ = {
667
786
  type: "field",
668
- fieldName: r.name,
669
- label: r.alias,
670
- menuConfig: this._getMenuConfig(r.name)
787
+ fieldName: n.name,
788
+ label: n.alias,
789
+ menuConfig: this._getMenuConfig(n.name)
671
790
  };
672
- return i && i?.fields ? i.fields.indexOf(r.name) > -1 && n.push(f) : s.length > 0 ? s.indexOf(r.name) > -1 && n.push(f) : n.push(f), n;
673
- }, [])), o ? l ? o?.sort(this._sortFields.bind(this, l)) : o : [];
791
+ return i && i?.fields ? i.fields.indexOf(n.name) > -1 && h.push(_) : a.length > 0 ? a.indexOf(n.name) > -1 && h.push(_) : h.push(_), h;
792
+ }, [])), r ? l ? r?.sort(this._sortFields.bind(this, l)) : r : [];
674
793
  }
675
794
  _sortFields(e, t, i) {
676
795
  return e?.indexOf(t.fieldName) - e.indexOf(i.fieldName);
@@ -695,7 +814,7 @@ class F extends S {
695
814
  }));
696
815
  }
697
816
  }
698
- b("layer-table", F);
817
+ b("layer-table", C);
699
818
  export {
700
- F as LayerTable
819
+ C as LayerTable
701
820
  };