@esri/solutions-components 1.0.0 → 1.0.1

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 (421) hide show
  1. package/dist/cdn/{5JQYCQWD.js → 2CC32CPA.js} +1 -1
  2. package/dist/cdn/{B5KSOIAE.js → 2F7ZIXE4.js} +2 -2
  3. package/dist/cdn/{VXZ2B534.js → 2JA5VZ4Q.js} +2 -2
  4. package/dist/cdn/{5C2W5W6U.js → 2LWO2DTN.js} +2 -2
  5. package/dist/cdn/{3EVGRBFY.js → 2LZJQN7R.js} +1 -1
  6. package/dist/cdn/{AMW6PLM5.js → 2UPCSZ4S.js} +2 -2
  7. package/dist/cdn/{AB4XPYGH.js → 2VSWXPDT.js} +2 -2
  8. package/dist/cdn/2W44KQT2.js +4 -0
  9. package/dist/cdn/{UUUHJN3K.js → 2ZTS3WNB.js} +2 -2
  10. package/dist/cdn/{A5FGCYNW.js → 36PJ5WL5.js} +2 -2
  11. package/dist/cdn/{X4I3726V.js → 3ADKTMOT.js} +2 -2
  12. package/dist/cdn/{VUHPVY6F.js → 3D2A2GR6.js} +2 -2
  13. package/dist/cdn/{P325FJIH.js → 3O5P6PXO.js} +2 -2
  14. package/dist/cdn/{QQBRQOVF.js → 3RAYGCP4.js} +2 -2
  15. package/dist/cdn/{LZC5OKYE.js → 3RJYN2DN.js} +2 -2
  16. package/dist/cdn/{KSLSMSNN.js → 3SDE2CZG.js} +2 -2
  17. package/dist/cdn/3V6F3XIS.js +18 -0
  18. package/dist/cdn/{J4JPFH2C.js → 3WPFW6HO.js} +2 -2
  19. package/dist/cdn/{OS2XMULM.js → 444IDO3Z.js} +2 -2
  20. package/dist/cdn/{4AMMMHQL.js → 467UGXS6.js} +2 -2
  21. package/dist/cdn/{C5POLXJA.js → 4C2LIMJZ.js} +2 -2
  22. package/dist/cdn/{VTR2E6HB.js → 4EOWY4WA.js} +2 -2
  23. package/dist/cdn/{PSP2JCLX.js → 4GAUFXRB.js} +1 -1
  24. package/dist/cdn/{WIZLQW7N.js → 4LAC6IBS.js} +2 -2
  25. package/dist/cdn/{NP4W7EDK.js → 4MCP26Y4.js} +2 -2
  26. package/dist/cdn/{4H2V4B6C.js → 4QTSIIRU.js} +2 -2
  27. package/dist/cdn/{JYTMSQVX.js → 4SSQ22MK.js} +2 -2
  28. package/dist/cdn/{4BIK73M6.js → 4U4WVITW.js} +2 -2
  29. package/dist/cdn/{6C3QGOV2.js → 4U4XW77U.js} +2 -2
  30. package/dist/cdn/{ZRPPJQRE.js → 54HVDRDS.js} +2 -2
  31. package/dist/cdn/{TBQ6UDD2.js → 5B34RYXT.js} +2 -2
  32. package/dist/cdn/{BZES2KJM.js → 5BFFCPDO.js} +2 -2
  33. package/dist/cdn/{PYIX27UL.js → 5C4MSN6W.js} +2 -2
  34. package/dist/cdn/{PPVPQPWQ.js → 5CRWOCNH.js} +2 -2
  35. package/dist/cdn/{XXLQWESJ.js → 5HLL7D2P.js} +2 -2
  36. package/dist/cdn/{BM7MU2L4.js → 5IBDEJNP.js} +2 -2
  37. package/dist/cdn/{5YSFQ4E3.js → 5IBY2FQU.js} +1 -1
  38. package/dist/cdn/{6NDD2A2S.js → 5IH2NEYC.js} +2 -2
  39. package/dist/cdn/5KQ3IDBU.js +4 -0
  40. package/dist/cdn/{RV44MYN7.js → 5NTNQARK.js} +2 -2
  41. package/dist/cdn/{AF27BERT.js → 5PZ5I3C4.js} +2 -2
  42. package/dist/cdn/{RV5R7U2A.js → 5VKFD2YO.js} +2 -2
  43. package/dist/cdn/{SRZKPJVK.js → 5WH7QYAO.js} +2 -2
  44. package/dist/cdn/6CIFKKHA.js +18 -0
  45. package/dist/cdn/{PFD6TBZM.js → 6CL5S7CF.js} +2 -2
  46. package/dist/cdn/{OIK6EGQ7.js → 6EUBWF2M.js} +2 -2
  47. package/dist/cdn/{GK2GYSCW.js → 6IKP3GLY.js} +2 -2
  48. package/dist/cdn/{RUKTK5PF.js → 6INDIN6I.js} +1 -1
  49. package/dist/cdn/{2DNLAFAS.js → 6JJTBX53.js} +2 -2
  50. package/dist/cdn/{UANGRMJE.js → 6OB4W3O5.js} +2 -2
  51. package/dist/cdn/{KQRRNLN7.js → 6WQZRPWK.js} +2 -2
  52. package/dist/cdn/{UZFCVNKV.js → 6YGUHVIL.js} +2 -2
  53. package/dist/cdn/{KTI5QE2K.js → 6ZFBCODW.js} +2 -2
  54. package/dist/cdn/{TKP6ZIYO.js → 727TY5WA.js} +1 -1
  55. package/dist/cdn/{VXCPN4DG.js → 74KF43Q7.js} +2 -2
  56. package/dist/cdn/{5LUSAPPH.js → 77NGJJRC.js} +2 -2
  57. package/dist/cdn/{O3JIKJGK.js → 7ETOIECJ.js} +2 -2
  58. package/dist/cdn/{PUKJYYTH.js → 7LRZQ562.js} +2 -2
  59. package/dist/cdn/{JSPHL3ZQ.js → 7SCM56QW.js} +2 -2
  60. package/dist/cdn/{FGCO2ORF.js → 7T5OVZJR.js} +1 -1
  61. package/dist/cdn/{I3E3JX77.js → 7WJWSOJH.js} +2 -2
  62. package/dist/cdn/{ORH5XZIQ.js → 7XKZ3CKS.js} +1 -1
  63. package/dist/cdn/{YT3HXHZX.js → 7XNXAJF3.js} +2 -2
  64. package/dist/cdn/{4DELYGXR.js → AAW4M5UY.js} +1 -1
  65. package/dist/cdn/{M3JQHFSU.js → ACTLIYVY.js} +1 -1
  66. package/dist/cdn/AILRWBPO.js +4 -0
  67. package/dist/cdn/{BOHONSFJ.js → AJ4YAPGC.js} +2 -2
  68. package/dist/cdn/AOPIUSEK.js +4 -0
  69. package/dist/cdn/{G4UJUDJT.js → ARAFKGS2.js} +2 -2
  70. package/dist/cdn/{DJG2ZUWK.js → AVAUHONF.js} +2 -2
  71. package/dist/cdn/{RFH4QYOD.js → AX2IRDRE.js} +2 -2
  72. package/dist/cdn/{L72F3CMH.js → B3J5GWRK.js} +1 -1
  73. package/dist/cdn/{OKHJNJQ3.js → B5QR4WI6.js} +2 -2
  74. package/dist/cdn/{HYWAINS4.js → BAPJICUA.js} +2 -2
  75. package/dist/cdn/{QPGA66A2.js → BDHYDLFO.js} +2 -2
  76. package/dist/cdn/BPEPRRF3.js +4 -0
  77. package/dist/cdn/{O5NFMICR.js → BQ6W6B2V.js} +1 -1
  78. package/dist/cdn/{EFEMVR7H.js → BV7WAP3N.js} +2 -2
  79. package/dist/cdn/C2ERTRIZ.js +4 -0
  80. package/dist/cdn/{I4QX6RMP.js → C4ZYMWDM.js} +2 -2
  81. package/dist/cdn/{6PD2H4JH.js → CC3G7K6T.js} +2 -2
  82. package/dist/cdn/{KNPFBJQA.js → CVYZLOIA.js} +2 -2
  83. package/dist/cdn/{GU6ODYX3.js → D5VM7347.js} +2 -2
  84. package/dist/cdn/D7HY5OWZ.js +18 -0
  85. package/dist/cdn/{HI7D2U25.js → DGUC2FBD.js} +2 -2
  86. package/dist/cdn/DMP3KEG5.js +4 -0
  87. package/dist/cdn/{753QAV4W.js → DMSA5MQS.js} +2 -2
  88. package/dist/cdn/{EHTK6HWZ.js → DWHGFYZ3.js} +1 -1
  89. package/dist/cdn/{TQWK6V5V.js → E33KGT3U.js} +1 -1
  90. package/dist/cdn/{MU4OTO47.js → E3AUWVZ5.js} +2 -2
  91. package/dist/cdn/{OGW4H5WS.js → E4FOTYSK.js} +2 -2
  92. package/dist/cdn/E5WY7EJU.js +18 -0
  93. package/dist/cdn/{WC247XQ6.js → EAZUJFAP.js} +2 -2
  94. package/dist/cdn/ECID3BOS.js +18 -0
  95. package/dist/cdn/{7XRIDSQA.js → EER4N6Z4.js} +2 -2
  96. package/dist/cdn/ERVPNOOE.js +4 -0
  97. package/dist/cdn/{FSQJF7E4.js → EVLPNGVY.js} +2 -2
  98. package/dist/cdn/{ZFJUFWKG.js → EXGARZ53.js} +2 -2
  99. package/dist/cdn/{PLASWOCJ.js → EXNI3E3V.js} +1 -1
  100. package/dist/cdn/{KQT4EINQ.js → EZWQ3FN6.js} +2 -2
  101. package/dist/cdn/{ZGA5KQXP.js → F66BID67.js} +1 -1
  102. package/dist/cdn/{PGXDDG5S.js → FB42MKVI.js} +2 -2
  103. package/dist/cdn/{TXLKUYV2.js → FBCRLSBX.js} +2 -2
  104. package/dist/cdn/{CLZ76DFI.js → FBPGHBBN.js} +1 -1
  105. package/dist/cdn/{XM4IJDWV.js → FGUFX7HJ.js} +1 -1
  106. package/dist/cdn/{FVAP4UBB.js → FJJXJF2V.js} +2 -2
  107. package/dist/cdn/{NCU6UX4Y.js → FNKZV5FF.js} +2 -2
  108. package/dist/cdn/{NMZOOVD5.js → FNWUB6GJ.js} +2 -2
  109. package/dist/cdn/{IXTBS5WJ.js → FPCDPUTH.js} +2 -2
  110. package/dist/cdn/{FFU546ZJ.js → FSLY3Q32.js} +2 -2
  111. package/dist/cdn/{7V252QBT.js → FUNSSHRI.js} +2 -2
  112. package/dist/cdn/{MW3TOC4O.js → G4UGKO7I.js} +2 -2
  113. package/dist/cdn/{TNPHUDU5.js → GERXYYJ5.js} +2 -2
  114. package/dist/cdn/GHJ65L2F.js +4 -0
  115. package/dist/cdn/GLEKE5MB.js +4 -0
  116. package/dist/cdn/{2JQ2BEIQ.js → GLGJ4TDS.js} +2 -2
  117. package/dist/cdn/{YLMMX2OH.js → GMHTFC5D.js} +2 -2
  118. package/dist/cdn/{VF3OE7WS.js → GPDF625C.js} +1 -1
  119. package/dist/cdn/{C6BGGFEF.js → GPFSHKEQ.js} +2 -2
  120. package/dist/cdn/{4RYZ25UY.js → GS5KTDPD.js} +1 -1
  121. package/dist/cdn/{F3GQ2KDF.js → GXY74GGJ.js} +2 -2
  122. package/dist/cdn/{F2T2S2QU.js → H26UVKPN.js} +1 -1
  123. package/dist/cdn/{4OJANGG2.js → H5Q2TVQ7.js} +2 -2
  124. package/dist/cdn/{WTQ4CUVN.js → H7LKWL6W.js} +2 -2
  125. package/dist/cdn/{CDDGYF3K.js → HACP2EXZ.js} +1 -1
  126. package/dist/cdn/{U45DGMUG.js → HEDVVSMN.js} +2 -2
  127. package/dist/cdn/{OGLT2FNT.js → HG7I73HP.js} +2 -2
  128. package/dist/cdn/{4RVVEL4U.js → HGY2TGZZ.js} +2 -2
  129. package/dist/cdn/{KVEA5E7H.js → HSZ7M7T7.js} +2 -2
  130. package/dist/cdn/{OZVC6WF4.js → HU3NU6NO.js} +2 -2
  131. package/dist/cdn/{7N6NOB6I.js → HUFTJBPT.js} +2 -2
  132. package/dist/cdn/{B4IYKBMJ.js → HZ247CLQ.js} +2 -2
  133. package/dist/cdn/{2AZTGGQP.js → IBVPZZZL.js} +1 -1
  134. package/dist/cdn/{DZWNJWAP.js → IGPECNF7.js} +2 -2
  135. package/dist/cdn/{6EBCWPAA.js → IRMQ5QUZ.js} +2 -2
  136. package/dist/cdn/{K3GLXE2P.js → IW7MKKD5.js} +2 -2
  137. package/dist/cdn/{TZRKKXAD.js → IYHBIGDU.js} +2 -2
  138. package/dist/cdn/{BF4MLXML.js → J2RTL6TV.js} +1 -1
  139. package/dist/cdn/{ZUVIZNK3.js → JKLJ2PP4.js} +2 -2
  140. package/dist/cdn/{WZT6CYOJ.js → JLYYEGO6.js} +1 -1
  141. package/dist/cdn/{65FSH56H.js → JNK7VRHJ.js} +2 -2
  142. package/dist/cdn/{WSWWUPOS.js → JQWOQPMK.js} +2 -2
  143. package/dist/cdn/{4LOK3JWB.js → JRSOJV5U.js} +2 -2
  144. package/dist/cdn/{A534RBYP.js → JVIJAD4Z.js} +1 -1
  145. package/dist/cdn/{AABCWF4V.js → JWQQXCKE.js} +2 -2
  146. package/dist/cdn/{MUWEJYVI.js → JXB7JVDB.js} +2 -2
  147. package/dist/cdn/{RPF35HAJ.js → JXDP3DWB.js} +2 -2
  148. package/dist/cdn/{PE2TLSRM.js → K6SIK44G.js} +2 -2
  149. package/dist/cdn/{Y33UFW64.js → KAJVJKOH.js} +2 -2
  150. package/dist/cdn/{KAZSBKHX.js → KB37GULW.js} +1 -1
  151. package/dist/cdn/{Q5AWSODM.js → KFIZVENE.js} +2 -2
  152. package/dist/cdn/{QZYPXSAV.js → KKYPHXOP.js} +2 -2
  153. package/dist/cdn/{2IP6OT43.js → KM7TRF5W.js} +2 -2
  154. package/dist/cdn/{HQIAVN67.js → KMSR2MGE.js} +1 -1
  155. package/dist/cdn/{IXJEV6RS.js → KPQBFQZB.js} +2 -2
  156. package/dist/cdn/{TARGNPVA.js → KRCWP4LH.js} +2 -2
  157. package/dist/cdn/{JVW5HI2D.js → KUTMCNDR.js} +2 -2
  158. package/dist/cdn/{UUIMWX7O.js → LDGERXGM.js} +2 -2
  159. package/dist/cdn/{PS7XJL2U.js → LTQVQQV3.js} +2 -2
  160. package/dist/cdn/{CX2QWWHL.js → LVF5XFSJ.js} +2 -2
  161. package/dist/cdn/{TGHZAXVE.js → LWMS3PYA.js} +2 -2
  162. package/dist/cdn/{SGGYFQLR.js → M2M3Q6IH.js} +2 -2
  163. package/dist/cdn/{7VTP4EVO.js → M5BRHZXV.js} +2 -2
  164. package/dist/cdn/{I6ZE3VUY.js → MCEAO75V.js} +1 -1
  165. package/dist/cdn/{S2NGFTAF.js → MF7K3QIL.js} +2 -2
  166. package/dist/cdn/MIQF66D6.js +4 -0
  167. package/dist/cdn/{DUVNOIA7.js → ML4GJWGS.js} +2 -2
  168. package/dist/cdn/MLARWD73.js +4 -0
  169. package/dist/cdn/{KTKSUQ5S.js → MLOQ5K45.js} +2 -2
  170. package/dist/cdn/{IKVFAXUB.js → MOKLXZ34.js} +2 -2
  171. package/dist/cdn/{6WGXTLF4.js → MPOB2AAE.js} +2 -2
  172. package/dist/cdn/{GQVTZIV3.js → MWWVKDRQ.js} +2 -2
  173. package/dist/cdn/N4VYHF37.js +18 -0
  174. package/dist/cdn/{VKXA2IQW.js → NCR7SCD4.js} +2 -2
  175. package/dist/cdn/{ZPNUYCYC.js → NDLXIAZ2.js} +2 -2
  176. package/dist/cdn/NFNJC6DC.js +4 -0
  177. package/dist/cdn/{7ESWUYD7.js → NJX24G7O.js} +2 -2
  178. package/dist/cdn/{4P66S2XD.js → NMCIL4AU.js} +2 -2
  179. package/dist/cdn/{UKSUWA3B.js → NNTKYQHM.js} +1 -1
  180. package/dist/cdn/{2ETHF7OM.js → NOQQVVJO.js} +2 -2
  181. package/dist/cdn/{LWNLZFMB.js → NUCELJUA.js} +2 -2
  182. package/dist/cdn/{PY55NBB3.js → NXNAWCBW.js} +2 -2
  183. package/dist/cdn/{TSYBPIHM.js → O24JVO6E.js} +2 -2
  184. package/dist/cdn/{XGBQUYNN.js → O52M27Z5.js} +2 -2
  185. package/dist/cdn/{GH7MZ4TU.js → O5NUSUPU.js} +1 -1
  186. package/dist/cdn/{RM3ZEQXS.js → OBZAUMYX.js} +2 -2
  187. package/dist/cdn/{ASHWLSNH.js → OJLPY774.js} +2 -2
  188. package/dist/cdn/{MAFJTGI7.js → OK6QGXX6.js} +2 -2
  189. package/dist/cdn/{VXPBZUD6.js → OOAOVEB5.js} +2 -2
  190. package/dist/cdn/{BVSTBYJQ.js → OOTUQXHB.js} +2 -2
  191. package/dist/cdn/{WP57L3ZR.js → OP7BMHEO.js} +2 -2
  192. package/dist/cdn/OPZKDVLB.js +18 -0
  193. package/dist/cdn/{GFKIE25D.js → OYP7AQ6G.js} +2 -2
  194. package/dist/cdn/{45CNJSWY.js → PCVCGUBO.js} +2 -2
  195. package/dist/cdn/{3GL66CHB.js → PFYARW7S.js} +2 -2
  196. package/dist/cdn/{RRC2IGCL.js → PGC6RJRM.js} +2 -2
  197. package/dist/cdn/{YXHUA4CI.js → PLMRWY6C.js} +2 -2
  198. package/dist/cdn/{YWSDRWQN.js → PMFBRSOS.js} +2 -2
  199. package/dist/cdn/{WY2YAJV2.js → PTHS5BTD.js} +1 -1
  200. package/dist/cdn/{WVJNLVM2.js → Q4BR636Z.js} +2 -2
  201. package/dist/cdn/{FJDXAEGB.js → QBMJV5OP.js} +2 -2
  202. package/dist/cdn/{ZUSLGKOQ.js → QCHE4DVW.js} +2 -2
  203. package/dist/cdn/{XDTSRIUV.js → QGYS53RR.js} +4 -4
  204. package/dist/cdn/{7QIEPJRP.js → QLLSLSBN.js} +1 -1
  205. package/dist/cdn/{77US24T3.js → QLU4XVVT.js} +2 -2
  206. package/dist/cdn/{PCAPJGRX.js → QMSEY6QZ.js} +2 -2
  207. package/dist/cdn/{JQ7HMAJD.js → QRWG2TYR.js} +2 -2
  208. package/dist/cdn/{SFY7JL2D.js → QSIK5PN7.js} +2 -2
  209. package/dist/cdn/{GUNSWZAV.js → QU7J46DX.js} +2 -2
  210. package/dist/cdn/{DEQ6UPN5.js → R6EOKADJ.js} +2 -2
  211. package/dist/cdn/{DBQ42J5H.js → RD7ZS2W6.js} +2 -2
  212. package/dist/cdn/{7C7SXM4M.js → RJWYLFLD.js} +2 -2
  213. package/dist/cdn/{M2MY5G5H.js → RK2B65CQ.js} +2 -2
  214. package/dist/cdn/{AH6XEMQ2.js → RKBLAY36.js} +2 -2
  215. package/dist/cdn/{PYNMB3I2.js → RKMDSDH2.js} +2 -2
  216. package/dist/cdn/{PXCWZJ7U.js → S32ETE5A.js} +2 -2
  217. package/dist/cdn/{LKE4PKVZ.js → SEYKRRTC.js} +2 -2
  218. package/dist/cdn/{DC22KAGH.js → SJEANN4A.js} +2 -2
  219. package/dist/cdn/{MTPMC5GM.js → SONLDZKZ.js} +2 -2
  220. package/dist/cdn/{ATNDBD4K.js → SSBXWLZH.js} +2 -2
  221. package/dist/cdn/{N2SMCNLL.js → T2XCKYU7.js} +2 -2
  222. package/dist/cdn/{4QO4KGLF.js → TAV3B2GU.js} +1 -1
  223. package/dist/cdn/{UNYBJ7BO.js → TBO2D36S.js} +1 -1
  224. package/dist/cdn/{LDJU7VV4.js → TC5DHEWZ.js} +2 -2
  225. package/dist/cdn/{GEOD3XEI.js → TIZVAXWN.js} +2 -2
  226. package/dist/cdn/{KIQPCYN6.js → TKLPH6MB.js} +1 -1
  227. package/dist/cdn/TNYU5475.js +4 -0
  228. package/dist/cdn/{QUGE5UIB.js → TOETAVWD.js} +2 -2
  229. package/dist/cdn/{KFYEVP5G.js → TP5XDVEG.js} +2 -2
  230. package/dist/cdn/{375NF2W7.js → TTX7PTAO.js} +2 -2
  231. package/dist/cdn/{RX5LSG2B.js → TWNZJBQA.js} +2 -2
  232. package/dist/cdn/{6JY7QTCS.js → TZQH4GMU.js} +2 -2
  233. package/dist/cdn/{FWP6XYXK.js → UOD4T3ON.js} +1 -1
  234. package/dist/cdn/{Q7M5LNDV.js → UROIIN7O.js} +2 -2
  235. package/dist/cdn/{562IDXBA.js → USLJNUGC.js} +2 -2
  236. package/dist/cdn/{YQMCID5Z.js → UTLWN6N7.js} +2 -2
  237. package/dist/cdn/{GVD3BPTW.js → UUHKWZ2Z.js} +2 -2
  238. package/dist/cdn/{CXK3KS6W.js → UUUTNXB4.js} +1 -1
  239. package/dist/cdn/{YHQYMIPA.js → UY5FQRLE.js} +3 -3
  240. package/dist/cdn/{X6AY6CXE.js → V55ZE6QF.js} +2 -2
  241. package/dist/cdn/{D55TK32T.js → VAVI46B5.js} +2 -2
  242. package/dist/cdn/{JOYJ7K2X.js → VGUHMA6Y.js} +2 -2
  243. package/dist/cdn/{UUIA7SBZ.js → VQHGM66B.js} +2 -2
  244. package/dist/cdn/{W3GM72GU.js → VRBUE2RB.js} +2 -2
  245. package/dist/cdn/{CGUIDOP7.js → VS4B5DD2.js} +2 -2
  246. package/dist/cdn/{T7T6X6O5.js → VTZILRDE.js} +2 -2
  247. package/dist/cdn/{MC2Q2QYK.js → VU5B3BJJ.js} +2 -2
  248. package/dist/cdn/{Y737Y2JU.js → VWO7O6IS.js} +2 -2
  249. package/dist/cdn/VYNJ3IAK.js +4 -0
  250. package/dist/cdn/{CUK7OF76.js → VZFDFVGG.js} +2 -2
  251. package/dist/cdn/{QPA3WWD5.js → VZFXG3TX.js} +2 -2
  252. package/dist/cdn/{QEZIPKKL.js → W2I3RJRK.js} +2 -2
  253. package/dist/cdn/{37FXFNVH.js → W377GATJ.js} +2 -2
  254. package/dist/cdn/{TY7GL3FG.js → W4D3Q2KE.js} +2 -2
  255. package/dist/cdn/{VU6ZKOYY.js → WDUYYHOZ.js} +2 -2
  256. package/dist/cdn/{IKGNORRI.js → WEWB3BRG.js} +1 -1
  257. package/dist/cdn/{DMWC3BFF.js → WLNWGHXO.js} +2 -2
  258. package/dist/cdn/{MAVOVPIB.js → WMHD7E5R.js} +2 -2
  259. package/dist/cdn/{7S572CXN.js → WMYYW4X6.js} +2 -2
  260. package/dist/cdn/{K7A26VQP.js → WOD4EWNY.js} +2 -2
  261. package/dist/cdn/{A3YY7YT4.js → WQN5K2ZY.js} +2 -2
  262. package/dist/cdn/WSSBOJ5N.js +18 -0
  263. package/dist/cdn/{KZFFQCTK.js → WW7D6SSQ.js} +1 -1
  264. package/dist/cdn/WYKOLNUO.js +4 -0
  265. package/dist/cdn/{H4S5Q3QE.js → WZ2Y55GH.js} +2 -2
  266. package/dist/cdn/{C5B7DSSA.js → X5B3HI7H.js} +2 -2
  267. package/dist/cdn/X6GUL5YM.js +4 -0
  268. package/dist/cdn/{G457BSKN.js → XF3QMPYW.js} +2 -2
  269. package/dist/cdn/XF4JI76V.js +18 -0
  270. package/dist/cdn/{2VDJE4V4.js → XH56YQ5M.js} +2 -2
  271. package/dist/cdn/{COE4KJBH.js → XJEKCHNF.js} +2 -2
  272. package/dist/cdn/{4MI7L2IM.js → XNQ27MXZ.js} +2 -2
  273. package/dist/cdn/{FDRKGYGJ.js → XNUHTFDS.js} +1 -1
  274. package/dist/cdn/{YMQZBSVF.js → XT5ITDOM.js} +2 -2
  275. package/dist/cdn/{7U4V4KQD.js → XUEE63KO.js} +1 -1
  276. package/dist/cdn/{JKOAF37V.js → Y34VPW3D.js} +2 -2
  277. package/dist/cdn/{USSUHCJG.js → YIIADRZZ.js} +2 -2
  278. package/dist/cdn/{YO3NHOIF.js → Z47UTABF.js} +2 -2
  279. package/dist/cdn/{3NF274CX.js → ZD2443DU.js} +2 -2
  280. package/dist/cdn/{BAUJD3CH.js → ZFECRVJQ.js} +2 -2
  281. package/dist/cdn/{BMVYNMLV.js → ZG7KYN4E.js} +2 -2
  282. package/dist/cdn/{HG3L3JDR.js → ZJQDRWP2.js} +2 -2
  283. package/dist/cdn/{SZEHA4OQ.js → ZLLEYAP3.js} +2 -2
  284. package/dist/cdn/{3EO7HXAA.js → ZOMUTHCL.js} +2 -2
  285. package/dist/cdn/{OWK6VKPV.js → ZV2QHOXX.js} +2 -2
  286. package/dist/cdn/assets/solution-delete-dialog/t9n/messages.en.json +1 -1
  287. package/dist/cdn/assets/solution-delete-dialog/t9n/messages.json +1 -1
  288. package/dist/cdn/index.js +2 -2
  289. package/dist/chunks/Auth.js +1 -1
  290. package/dist/chunks/appConfig.js +1 -1
  291. package/dist/chunks/cardFetchingUtils.js +1 -1
  292. package/dist/chunks/common.js +17 -3
  293. package/dist/chunks/deployAppContexts.js +1 -1
  294. package/dist/chunks/downloadUtils.js +1 -1
  295. package/dist/chunks/helpers.js +1 -1
  296. package/dist/chunks/index.js +1 -1
  297. package/dist/chunks/interfaces.js +1 -1
  298. package/dist/chunks/loadModules.js +1 -1
  299. package/dist/chunks/mapViewUtils.js +1 -1
  300. package/dist/chunks/pciUtils.js +1 -1
  301. package/dist/chunks/popupUtils.js +1 -1
  302. package/dist/chunks/prepareDataForSolutionDisplay.js +57 -0
  303. package/dist/chunks/privilegeUtils.js +1 -1
  304. package/dist/chunks/publicNotificationStore.js +1 -1
  305. package/dist/chunks/queryUtils.js +1 -1
  306. package/dist/chunks/runtime.js +1 -1
  307. package/dist/chunks/solution-store.js +1 -1
  308. package/dist/chunks/templates.js +1 -1
  309. package/dist/chunks/useT9n.js +1 -1
  310. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  311. package/dist/components/basemap-gallery/customElement.js +1 -1
  312. package/dist/components/buffer-tools/customElement.js +1 -1
  313. package/dist/components/card-manager/customElement.js +1 -1
  314. package/dist/components/consent-manager/customElement.js +1 -1
  315. package/dist/components/create-feature/customElement.js +1 -1
  316. package/dist/components/create-related-feature/customElement.js +1 -1
  317. package/dist/components/crowdsource-manager/customElement.js +1 -1
  318. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  319. package/dist/components/deduct-calculator/customElement.js +1 -1
  320. package/dist/components/delete-button/customElement.js +1 -1
  321. package/dist/components/delete-dialog/customElement.js +1 -1
  322. package/dist/components/edit-card/customElement.js +1 -1
  323. package/dist/components/feature-details/customElement.js +1 -1
  324. package/dist/components/feature-list/customElement.js +1 -1
  325. package/dist/components/field-selection/customElement.js +1 -1
  326. package/dist/components/floor-filter/customElement.js +1 -1
  327. package/dist/components/info-card/customElement.js +1 -1
  328. package/dist/components/json-editor/customElement.js +1 -1
  329. package/dist/components/layer-list/customElement.js +1 -1
  330. package/dist/components/layer-table/customElement.js +13 -10
  331. package/dist/components/map-card/customElement.js +1 -1
  332. package/dist/components/map-draw-tools/customElement.js +1 -1
  333. package/dist/components/map-fullscreen/customElement.js +1 -1
  334. package/dist/components/map-layer-picker/customElement.js +8 -8
  335. package/dist/components/map-legend/customElement.js +1 -1
  336. package/dist/components/map-picker/customElement.js +25 -26
  337. package/dist/components/map-search/customElement.js +1 -1
  338. package/dist/components/map-select-tools/customElement.js +1 -1
  339. package/dist/components/map-tools/customElement.js +1 -1
  340. package/dist/components/pci-calculator/customElement.js +1 -1
  341. package/dist/components/pdf-download/customElement.js +1 -1
  342. package/dist/components/public-notification/customElement.js +1 -1
  343. package/dist/components/refine-selection/customElement.js +1 -1
  344. package/dist/components/selection-tool/customElement.js +1 -1
  345. package/dist/components/solution-article-card/customElement.js +1 -1
  346. package/dist/components/solution-configuration/customElement.js +1 -1
  347. package/dist/components/solution-configure-dialog/customElement.js +1 -1
  348. package/dist/components/solution-configure-titles/customElement.js +1 -1
  349. package/dist/components/solution-contents/customElement.js +1 -1
  350. package/dist/components/solution-delete-dialog/customElement.d.ts +1 -0
  351. package/dist/components/solution-delete-dialog/customElement.js +42 -46
  352. package/dist/components/solution-delete-dialog/index.d.ts +1 -0
  353. package/dist/components/solution-delete-dialog/index.js +1 -0
  354. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  355. package/dist/components/solution-deployed-card/customElement.js +25 -75
  356. package/dist/components/solution-deploying-panel/customElement.js +1 -1
  357. package/dist/components/solution-details-card/customElement.js +1 -1
  358. package/dist/components/solution-details-panel/customElement.d.ts +1 -1
  359. package/dist/components/solution-details-panel/customElement.js +54 -59
  360. package/dist/components/solution-item/customElement.js +1 -1
  361. package/dist/components/solution-item-accordion/customElement.js +1 -1
  362. package/dist/components/solution-item-details/customElement.js +1 -1
  363. package/dist/components/solution-item-diagram/customElement.js +1 -1
  364. package/dist/components/solution-item-icon/customElement.js +1 -1
  365. package/dist/components/solution-item-sharing/customElement.js +1 -1
  366. package/dist/components/solution-organization-variables/customElement.js +1 -1
  367. package/dist/components/solution-resource-item/customElement.js +1 -1
  368. package/dist/components/solution-snapshot-gallery/customElement.d.ts +24 -0
  369. package/dist/components/solution-snapshot-gallery/customElement.js +45 -17
  370. package/dist/components/solution-snapshot-gallery/index.d.ts +4 -0
  371. package/dist/components/solution-snapshot-gallery/index.js +4 -0
  372. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  373. package/dist/components/solution-template-data/customElement.js +1 -1
  374. package/dist/components/solution-variables/customElement.js +1 -1
  375. package/dist/components/solutions-all-panel/customElement.js +1 -1
  376. package/dist/components/solutions-all-shell/customElement.js +1 -1
  377. package/dist/components/solutions-article-panel/customElement.js +1 -1
  378. package/dist/components/solutions-articles/customElement.js +1 -1
  379. package/dist/components/solutions-articles-shell/customElement.js +1 -1
  380. package/dist/components/solutions-deployed-panel/customElement.js +19 -15
  381. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  382. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  383. package/dist/components/spatial-ref/customElement.js +1 -1
  384. package/dist/components/store-manager/customElement.js +1 -1
  385. package/dist/docs/api.json +198 -71
  386. package/dist/docs/docs.json +216 -73
  387. package/dist/docs/vscode.html-custom-data.json +8 -2
  388. package/dist/docs/web-types.json +48 -6
  389. package/dist/index.js +1 -1
  390. package/dist/loader.js +2 -2
  391. package/dist/types/lumina.d.ts +1 -1
  392. package/dist/types/preact.d.ts +1 -1
  393. package/dist/types/react.d.ts +1 -1
  394. package/dist/types/stencil.d.ts +1 -1
  395. package/dist/utils/common.d.ts +16 -0
  396. package/package.json +22 -22
  397. package/dist/cdn/2V47J56C.js +0 -18
  398. package/dist/cdn/3O4G5XDF.js +0 -18
  399. package/dist/cdn/3WWZQYHU.js +0 -18
  400. package/dist/cdn/4W4XMW2A.js +0 -4
  401. package/dist/cdn/6KPH5V5K.js +0 -4
  402. package/dist/cdn/A6RESCXF.js +0 -4
  403. package/dist/cdn/B7B5O4K4.js +0 -18
  404. package/dist/cdn/DYWRP4H5.js +0 -18
  405. package/dist/cdn/G4CYMD2F.js +0 -4
  406. package/dist/cdn/HLGUH3Z5.js +0 -4
  407. package/dist/cdn/IRZGR6FA.js +0 -18
  408. package/dist/cdn/JUIF3JFS.js +0 -4
  409. package/dist/cdn/M5DV4YRX.js +0 -18
  410. package/dist/cdn/MI54WZOS.js +0 -18
  411. package/dist/cdn/N6EHMAJL.js +0 -4
  412. package/dist/cdn/NF2EHSNV.js +0 -4
  413. package/dist/cdn/NKZQ7OVS.js +0 -4
  414. package/dist/cdn/PUQGIVUM.js +0 -4
  415. package/dist/cdn/T2HT5CMC.js +0 -18
  416. package/dist/cdn/T6E7HFWP.js +0 -4
  417. package/dist/cdn/TCDPSWNN.js +0 -4
  418. package/dist/cdn/U3YAUOKI.js +0 -4
  419. package/dist/cdn/YLTGHBKB.js +0 -4
  420. package/dist/cdn/ZEVGAANR.js +0 -4
  421. package/dist/cdn/ZRK24AZH.js +0 -4
@@ -2053,7 +2053,7 @@
2053
2053
  },
2054
2054
  {
2055
2055
  "name": "solution-delete-dialog",
2056
- "description": "### Events\n- **dialogOpen** - Emitted when the dialog is closed.\n- **solutionDeleted**\n\n### Methods\n- `close(): void` - Closes the panel\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `delete(): void` - Deletes the solution provided in the card property.",
2056
+ "description": "### Events\n- **dialogOpen** - Emitted when the dialog is closed.\n- **solutionDeleted** - Emitted after delete process to refresh solutions list\n\n### Methods\n- `close(): void` - Closes the panel\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `delete(): void` - Deletes the solution provided in the card property.",
2057
2057
  "attributes": [
2058
2058
  {
2059
2059
  "name": "open",
@@ -2276,7 +2276,13 @@
2276
2276
  {
2277
2277
  "name": "solution-snapshot-gallery",
2278
2278
  "description": "### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.",
2279
- "attributes": [],
2279
+ "attributes": [
2280
+ {
2281
+ "name": "open",
2282
+ "description": "boolean: when true the dialog is open",
2283
+ "values": []
2284
+ }
2285
+ ],
2280
2286
  "references": []
2281
2287
  },
2282
2288
  {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@esri/solutions-components",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -5789,7 +5789,7 @@
5789
5789
  },
5790
5790
  {
5791
5791
  "name": "solution-delete-dialog",
5792
- "description": "### Events\n- **dialogOpen** - Emitted when the dialog is closed.\n- **solutionDeleted**\n\n### Methods\n- `close(): void` - Closes the panel\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `delete(): void` - Deletes the solution provided in the card property.",
5792
+ "description": "### Events\n- **dialogOpen** - Emitted when the dialog is closed.\n- **solutionDeleted** - Emitted after delete process to refresh solutions list\n\n### Methods\n- `close(): void` - Closes the panel\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `delete(): void` - Deletes the solution provided in the card property.",
5793
5793
  "attributes": [
5794
5794
  {
5795
5795
  "name": "open",
@@ -5808,7 +5808,8 @@
5808
5808
  },
5809
5809
  {
5810
5810
  "name": "solutionDeleted",
5811
- "type": "boolean"
5811
+ "type": "boolean",
5812
+ "description": "Emitted after delete process to refresh solutions list"
5812
5813
  }
5813
5814
  ],
5814
5815
  "js": {
@@ -5842,7 +5843,8 @@
5842
5843
  },
5843
5844
  {
5844
5845
  "name": "solutionDeleted",
5845
- "type": "boolean"
5846
+ "type": "boolean",
5847
+ "description": "Emitted after delete process to refresh solutions list"
5846
5848
  }
5847
5849
  ]
5848
5850
  }
@@ -6462,10 +6464,50 @@
6462
6464
  {
6463
6465
  "name": "solution-snapshot-gallery",
6464
6466
  "description": "### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.",
6465
- "attributes": [],
6467
+ "attributes": [
6468
+ {
6469
+ "name": "open",
6470
+ "description": "boolean: when true the dialog is open",
6471
+ "default": "false",
6472
+ "value": {
6473
+ "type": "boolean"
6474
+ }
6475
+ }
6476
+ ],
6466
6477
  "events": [],
6467
6478
  "js": {
6468
- "properties": [],
6479
+ "properties": [
6480
+ {
6481
+ "name": "auth",
6482
+ "description": "The authentication\r\nTODO this should not be necessary as we should get this from the authContextConsumer but it's not working in this case for some reason",
6483
+ "type": "Auth"
6484
+ },
6485
+ {
6486
+ "name": "authContextConsumer",
6487
+ "description": "The authentication from global nav",
6488
+ "type": "ContextConsumer<{\n __context__: Auth;\n}, HTMLElement & ReactiveControllerHost>"
6489
+ },
6490
+ {
6491
+ "name": "card",
6492
+ "description": "Key details about the solution",
6493
+ "type": "ISolutionInfoCard"
6494
+ },
6495
+ {
6496
+ "name": "itemProperties",
6497
+ "description": "Key item properties",
6498
+ "type": "IItemProperties"
6499
+ },
6500
+ {
6501
+ "name": "open",
6502
+ "description": "boolean: when true the dialog is open",
6503
+ "type": "boolean"
6504
+ },
6505
+ {
6506
+ "name": "screenshot",
6507
+ "description": "The current screenshot to display the large image for",
6508
+ "type": "IItemPreview"
6509
+ }
6510
+ ],
6469
6511
  "events": []
6470
6512
  }
6471
6513
  },
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { g as e, s as a } from "./chunks/runtime.js";
2
2
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
4
- v1.0.0 */
4
+ v1.0.1 */
5
5
  export {
6
6
  e as getAssetPath,
7
7
  a as setAssetPath
package/dist/loader.js CHANGED
@@ -2,7 +2,7 @@ import { r as e } from "./chunks/runtime.js";
2
2
  import { makeDefineCustomElements as o } from "@arcgis/lumina";
3
3
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
5
- v1.0.0 */
5
+ v1.0.1 */
6
6
  const l = o(e, {
7
7
  "arcgis-solutions-assistant": [() => import("./components/arcgis-solutions-assistant/customElement.js"), "AIServerUrl,token"],
8
8
  "basemap-gallery": [() => import("./components/basemap-gallery/customElement.js"), "basemapConfig:,basemapWidget:,mapView:"],
@@ -58,7 +58,7 @@ const l = o(e, {
58
58
  "solution-item-sharing": [() => import("./components/solution-item-sharing/customElement.js"), "groupId;getShareInfo"],
59
59
  "solution-organization-variables": [() => import("./components/solution-organization-variables/customElement.js"), "value"],
60
60
  "solution-resource-item": [() => import("./components/solution-resource-item/customElement.js"), "authentication:,itemId"],
61
- "solution-snapshot-gallery": [() => import("./components/solution-snapshot-gallery/customElement.js")],
61
+ "solution-snapshot-gallery": [() => import("./components/solution-snapshot-gallery/customElement.js"), "auth:,authContextConsumer:,card:,itemProperties:,open,screenshot:"],
62
62
  "solution-spatial-ref": [() => import("./components/solution-spatial-ref/customElement.js"), "enabled,enableDefault,featureServices:;_testAccess"],
63
63
  "solution-template-data": [() => import("./components/solution-template-data/customElement.js"), "instanceid,itemId,organizationVariables,solutionVariables,varsOpen"],
64
64
  "solution-variables": [() => import("./components/solution-variables/customElement.js"), "value"],
@@ -319,7 +319,7 @@ interface LuminaSolutionOrganizationVariables extends Partial<Pick<SolutionOrgan
319
319
  interface LuminaSolutionResourceItem extends Partial<Pick<SolutionResourceItem, 'authentication' | 'itemId'>>, h.JSX.HTMLAttributes<HTMLSolutionResourceItemElement> {
320
320
  }
321
321
 
322
- interface LuminaSolutionSnapshotGallery extends h.JSX.HTMLAttributes<HTMLSolutionSnapshotGalleryElement> {
322
+ interface LuminaSolutionSnapshotGallery extends Partial<Pick<SolutionSnapshotGallery, 'auth' | 'authContextConsumer' | 'card' | 'itemProperties' | 'open' | 'screenshot'>>, h.JSX.HTMLAttributes<HTMLSolutionSnapshotGalleryElement> {
323
323
  }
324
324
 
325
325
  interface LuminaSolutionSpatialRef extends Partial<Pick<SolutionSpatialRef, 'enabled' | 'enableDefault' | 'featureServices'>>, h.JSX.HTMLAttributes<HTMLSolutionSpatialRefElement> {
@@ -320,7 +320,7 @@ interface PreactSolutionOrganizationVariables extends Partial<Pick<SolutionOrgan
320
320
  interface PreactSolutionResourceItem extends Partial<Pick<SolutionResourceItem, 'authentication' | 'itemId'>>, PreactJsx.HTMLAttributes<HTMLSolutionResourceItemElement> {
321
321
  }
322
322
 
323
- interface PreactSolutionSnapshotGallery extends PreactJsx.HTMLAttributes<HTMLSolutionSnapshotGalleryElement> {
323
+ interface PreactSolutionSnapshotGallery extends Partial<Pick<SolutionSnapshotGallery, 'auth' | 'authContextConsumer' | 'card' | 'itemProperties' | 'open' | 'screenshot'>>, PreactJsx.HTMLAttributes<HTMLSolutionSnapshotGalleryElement> {
324
324
  }
325
325
 
326
326
  interface PreactSolutionSpatialRef extends Partial<Pick<SolutionSpatialRef, 'enabled' | 'enableDefault' | 'featureServices'>>, PreactJsx.HTMLAttributes<HTMLSolutionSpatialRefElement> {
@@ -320,7 +320,7 @@ interface ReactSolutionOrganizationVariables extends Partial<Pick<SolutionOrgani
320
320
  interface ReactSolutionResourceItem extends Partial<Pick<SolutionResourceItem, 'authentication' | 'itemId'>>, HTMLProps<HTMLSolutionResourceItemElement> {
321
321
  }
322
322
 
323
- interface ReactSolutionSnapshotGallery extends HTMLProps<HTMLSolutionSnapshotGalleryElement> {
323
+ interface ReactSolutionSnapshotGallery extends Partial<Pick<SolutionSnapshotGallery, 'auth' | 'authContextConsumer' | 'card' | 'itemProperties' | 'open' | 'screenshot'>>, HTMLProps<HTMLSolutionSnapshotGalleryElement> {
324
324
  }
325
325
 
326
326
  interface ReactSolutionSpatialRef extends Partial<Pick<SolutionSpatialRef, 'enabled' | 'enableDefault' | 'featureServices'>>, HTMLProps<HTMLSolutionSpatialRefElement> {
@@ -320,7 +320,7 @@ interface StencilSolutionOrganizationVariables extends Partial<Pick<SolutionOrga
320
320
  interface StencilSolutionResourceItem extends Partial<Pick<SolutionResourceItem, 'authentication' | 'itemId'>>, StencilJsx.HTMLAttributes<HTMLSolutionResourceItemElement> {
321
321
  }
322
322
 
323
- interface StencilSolutionSnapshotGallery extends StencilJsx.HTMLAttributes<HTMLSolutionSnapshotGalleryElement> {
323
+ interface StencilSolutionSnapshotGallery extends Partial<Pick<SolutionSnapshotGallery, 'auth' | 'authContextConsumer' | 'card' | 'itemProperties' | 'open' | 'screenshot'>>, StencilJsx.HTMLAttributes<HTMLSolutionSnapshotGalleryElement> {
324
324
  }
325
325
 
326
326
  interface StencilSolutionSpatialRef extends Partial<Pick<SolutionSpatialRef, 'enabled' | 'enableDefault' | 'featureServices'>>, StencilJsx.HTMLAttributes<HTMLSolutionSpatialRefElement> {
@@ -1,5 +1,6 @@
1
1
  import { UserSession } from '@esri/solution-common';
2
2
  import { IResponse, ISolutionModels } from './interfaces';
3
+ import { Auth } from './Auth';
3
4
  /**
4
5
  * Get an array from a list of nodes
5
6
  *
@@ -29,3 +30,18 @@ export declare function save(id: string, data: any, models: ISolutionModels, aut
29
30
  * @returns a promise that will resolve with response results
30
31
  */
31
32
  export declare function _updateResources(solutionId: string, models: ISolutionModels, data: any, authentication: UserSession): Promise<any>;
33
+ /**
34
+ * Generates the URL to an item.
35
+ *
36
+ * @param id Id of item to use in URL
37
+ * @return URL
38
+ */
39
+ export declare function getItemUrl(id: string, auth: Auth): string;
40
+ /**
41
+ * Generates the URL to an items resource.
42
+ *
43
+ * @param id Id of item to use in URL
44
+ * @param name the name of the resource
45
+ * @return URL
46
+ */
47
+ export declare function getItemResourceUrl(id: string, name: string, auth: Auth): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/solutions-components",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Web Components for Esri's Solutions Applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -31,14 +31,14 @@
31
31
  },
32
32
  "license": "SEE LICENSE IN LICENSE.md",
33
33
  "devDependencies": {
34
- "@arcgis/core": ">=4.33.0-next <4.34",
35
- "@arcgis/eslint-config": ">=4.33.0-next <4.34.0",
36
- "@arcgis/instant-apps-components": ">=4.33.0-next <4.34.0",
37
- "@arcgis/lumina-compiler": ">=4.33.0-next <4.34.0",
38
- "@arcgis/map-components": ">=4.33.0-next <4.34.0",
39
- "@arcgis/prettier-config": ">=4.33.0-next <4.34.0",
40
- "@arcgis/typescript-config": ">=4.33.0-next <4.34.0",
41
- "@esri/calcite-components": "^3.2.0-next.60",
34
+ "@arcgis/core": ">=4.33.1",
35
+ "@arcgis/eslint-config": "~4.33.2",
36
+ "@arcgis/instant-apps-components": "~4.33.2",
37
+ "@arcgis/lumina-compiler": "~4.33.2",
38
+ "@arcgis/map-components": "~4.33.2",
39
+ "@arcgis/prettier-config": "~4.33.2",
40
+ "@arcgis/typescript-config": "~4.33.2",
41
+ "@esri/calcite-components": "^3.2.1",
42
42
  "@esri/telemetry": "8.0.1",
43
43
  "@esri/telemetry-amazon": "4.0.1",
44
44
  "@esri/telemetry-google-analytics": "2.0.1",
@@ -73,7 +73,7 @@
73
73
  "resolve-pkg": "^2.0.0",
74
74
  "rimraf": "^6.0.1",
75
75
  "tailwindcss": "3.4.17",
76
- "templates-common-library": ">=0.0.666",
76
+ "templates-common-library": "^0.0.698",
77
77
  "tslib": "^2.8.1",
78
78
  "tsx": "^4.19.2",
79
79
  "typescript": "~5.8.3",
@@ -83,10 +83,10 @@
83
83
  },
84
84
  "dependencies": {
85
85
  "@arcgis/analysis-components": ">=4.33.0-next <4.34.0",
86
- "@arcgis/common-components": ">=4.33.0-next <4.34.0",
87
- "@arcgis/components-utils": ">=4.33.0-next <4.34.0",
88
- "@arcgis/lumina": ">=4.33.0-next <4.34.0",
89
- "@arcgis/map-config-components": ">=4.33.0-next <4.34.0",
86
+ "@arcgis/common-components": "~4.33.2",
87
+ "@arcgis/components-utils": "~4.33.2",
88
+ "@arcgis/lumina": "~4.33.2",
89
+ "@arcgis/map-config-components": "~4.33.2",
90
90
  "@emotion/css": "^11.13.5",
91
91
  "@esri/arcgis-html-sanitizer": "^4.1.0",
92
92
  "@esri/arcgis-rest-types": "^3.7.0",
@@ -96,11 +96,11 @@
96
96
  "jspdf": "^3.0.1"
97
97
  },
98
98
  "peerDependencies": {
99
- "@arcgis/core": ">=4.33.0-next <4.34",
100
- "@arcgis/instant-apps-components": ">=4.33.0-next <4.34.0",
101
- "@arcgis/map-components": ">=4.33.0-next <4.34.0",
102
- "@esri/calcite-components": "^3.2.0-next.15",
103
- "templates-common-library": ">=0.0.666"
99
+ "@arcgis/core": ">=4.33.1",
100
+ "@arcgis/instant-apps-components": "~4.33.2",
101
+ "@arcgis/map-components": "~4.33.2",
102
+ "@esri/calcite-components": "^3.2.1",
103
+ "templates-common-library": "^0.0.698"
104
104
  },
105
105
  "repository": {
106
106
  "type": "git",
@@ -144,9 +144,9 @@
144
144
  "./main.css": "./dist/cdn/main.css"
145
145
  },
146
146
  "resolutions": {
147
- "@esri/calcite-components/@arcgis/lumina": ">=4.33.0-next <4.34.0",
148
- "@esri/calcite-components/@arcgis/components-controllers": ">=4.33.0-next <4.34.0",
149
- "@esri/calcite-components/@arcgis/components-utils": ">=4.33.0-next <4.34.0"
147
+ "@esri/calcite-components/@arcgis/lumina": "~4.33.2",
148
+ "@esri/calcite-components/@arcgis/components-controllers": "~4.33.2",
149
+ "@esri/calcite-components/@arcgis/components-utils": "~4.33.2"
150
150
  },
151
151
  "packageManager": "yarn@4.5.1"
152
152
  }
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0 */
4
- import{a as f,c as C}from"./GH7MZ4TU.js";import{N as b,s as _}from"./FVAP4UBB.js";import"./YXHUA4CI.js";import"./FWP6XYXK.js";import"./SZEHA4OQ.js";import"./WSWWUPOS.js";import"./3EO7HXAA.js";import"./FDRKGYGJ.js";import"./CDDGYF3K.js";import"./4QO4KGLF.js";import"./QEZIPKKL.js";import"./NP4W7EDK.js";import"./M3JQHFSU.js";import"./PSP2JCLX.js";import"./HQIAVN67.js";import"./ATNDBD4K.js";import"./WP57L3ZR.js";import"./5YSFQ4E3.js";import"./CLZ76DFI.js";import"./L72F3CMH.js";import{a as g}from"./IXJEV6RS.js";import{B as u,D as m,c as d,d as o,n as a,p as h,x as l,y as p}from"./ZGA5KQXP.js";import"./PLASWOCJ.js";var y=d`@layer{/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-foreground-1);--calcite-panel-background-color: var(--calcite-color-foreground-1)}}`,r=class extends p{constructor(){super(...arguments),this.authContextConsumer=l({context:C,subscribe:!0}),this.open=!1,this.userSessionContextConsumer=l({context:f,subscribe:!0}),this._deletePercentage=0,this._isDeleteInProgress=!1,this._templates=[],this._translations=g({name:"solution-delete-dialog",blocking:!0}),this.dialogOpen=a(),this.solutionDeleted=a()}static{this.properties={authContextConsumer:0,card:0,open:5,userSessionContextConsumer:0,_deletePercentage:16,_isDeleteInProgress:16,_templates:16,_translations:16}}static{this.styles=y}static{this.shadowRootOptions=h}close(){this.open=!1,this.dialogOpen.emit(!1)}delete(){if(this._isDeleteInProgress=!0,this.card){let e=[{itemName:this.card.title,itemType:"Solution",owner:this.card.owner,modified:this.card.modified}],t={progressCallback:i=>{this._deletePercentage=Math.round(i)}};b(this.card.id,this.userSessionContextConsumer.value,t).then(i=>{console.log(i);let c=i[1],n;c?n=c.items.map(s=>({itemName:s.title,itemType:s.type,owner:s.owner,modified:s.modified})):n=e,n.length===0&&(this.solutionDeleted.emit(!0),this._isDeleteInProgress=!1,this.open=!1)})}}async load(){if(this.card){let e=await this._getItemTemplates(this.card);this._templates=e.map(t=>({id:t.itemId,type:t.type,title:"",typeKeywords:[],snippet:""}))}}render(){return o`<calcite-dialog class="panel-bg-color" close-disabled .heading=${this._translations.title.replace("{{solution}}",this.card?.title??"")} id=${this._translations.title.replace("{{solution}}",this.card?.title??"")??u} modal .open=${this.open} outside-close-disabled @calciteDialogClose=${()=>{this.open=!1,this.dialogOpen.emit(!1)}}>${this._isDeleteInProgress?o`<calcite-loader .label=${this._translations.deleteInProgress} scale=l .text=${this._translations.deleteInProgress} type=determinate-value .value=${this._deletePercentage}></calcite-loader>`:o`<calcite-label layout=inline>${this._translations.deletionNote}<calcite-chip .label=${this._translations.deletionCount.replace("{{count}}",this.card?.title??"")}>${this._templates.length>1?this._translations.deletionCountMultiple.replace("{{count}}",this._templates.length.toString()):this._translations.deletionCount.replace("{{count}}",this._templates.length.toString())}</calcite-chip></calcite-label><solution-item-accordion .templateInfos=${this._templates}></solution-item-accordion><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonCancel}</calcite-button><calcite-button @click=${()=>{this.delete()}} slot=footer-end kind=danger>${this._translations.buttonDelete}</calcite-button>`}</calcite-dialog>`}async _getItemTemplates(e){return(await _(e.id,this.userSessionContextConsumer.value)).templates}};m("solution-delete-dialog",r);export{r as SolutionDeleteDialog};
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0 */
4
- import b from"./P325FJIH.js";import{b as w}from"./K7A26VQP.js";import a from"./I3E3JX77.js";import{a as y,c as C}from"./GH7MZ4TU.js";import"./FVAP4UBB.js";import"./YXHUA4CI.js";import"./FWP6XYXK.js";import"./SZEHA4OQ.js";import"./WSWWUPOS.js";import"./3EO7HXAA.js";import"./FDRKGYGJ.js";import"./CDDGYF3K.js";import"./4QO4KGLF.js";import"./QEZIPKKL.js";import"./NP4W7EDK.js";import"./M3JQHFSU.js";import"./PSP2JCLX.js";import"./HQIAVN67.js";import"./ATNDBD4K.js";import"./WP57L3ZR.js";import"./5YSFQ4E3.js";import"./CLZ76DFI.js";import"./L72F3CMH.js";import{k as m,l as g,m as _,p as r}from"./XM4IJDWV.js";import{a as p}from"./IXJEV6RS.js";import{B as d,D as u,c as l,d as s,e as n,n as h,x as o,y as c}from"./ZGA5KQXP.js";import"./PLASWOCJ.js";export default $arcgis.t(([,{a:i,b:f}])=>{var x=l`/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */calcite-panel{width:100%;height:100%}.card-group{overflow:hidden;padding:.5rem}.solutions-briefcase{margin:auto;padding-top:2rem}.text-center{text-align:center}.leader-1{margin-top:1.5rem}.trailer-1{margin-bottom:1.5rem}.warning-text{max-width:35em;margin-left:auto;margin-right:auto}.no-solutions{display:flex;flex-direction:column;justify-content:center;width:100%;height:100%}.display-flex{display:flex}.flex-direction-column{flex-direction:column}`,a=class extends c{constructor(){super(),this.authContextConsumer=o({context:C,subscribe:!0}),this.agoSolutionsGroupId="",this.enterpriseSolutionsGroupId="",this.locale="",this.orgUrl="",this.portalUrl="",this.sortType="created",this.userSessionContextConsumer=o({context:y,subscribe:!0}),this.cards=[],this._showDeleteCompleteAlert=!1,this._translations=p({name:"solutions-deployed-panel",blocking:!0}),this._allCards=[],this._agoTerms=r,this._baseAgoTerms=r,this._categories=[],this._delay=!1,this._isOrgAdmin=!1,this._owner=_.OWNER,this._sortField="created",this._sortOrder="desc",this.deployedCardsFetched=h(),this.listenOn(window,"solutionDeleted",this.reload)}static{this.properties={authContextConsumer:32,agoSolutionsGroupId:1,enterpriseSolutionsGroupId:1,locale:1,orgUrl:1,portalUrl:1,sortType:1,userSessionContextConsumer:32,cards:16,_showDeleteCompleteAlert:16,_translations:16}}static{this.styles=x}reload(){this._cardsFetcher=new i(this.locale,this.orgUrl,this.portalUrl),this._cardsFetcherDeployed=new i(this.locale,this.orgUrl,this.portalUrl),setTimeout(()=>{(async()=>{try{await this._getDeployedSolutions()}catch(e){console.error("Error getting deployed solutions:",e)}})()},500),this._showDeleteCompleteAlert=!0}async searchSolutions(e){e?"searchTerm"in e?this._textSearch(e.searchTerm):"sortType"in e?this._sortCards(e):this._filterCards(e):(this._agoTerms=this._baseAgoTerms,this._clearFilterCategories()),await this._getDeployedSolutions()}async load(){this._cardsFetcher=new i(this.locale,this.orgUrl,this.portalUrl),this._cardsFetcherDeployed=new i(this.locale,this.orgUrl,this.portalUrl),this._isOrgAdmin=w(this.authContextConsumer.value),await this._getDeployedSolutions()}render(){return s`<calcite-panel><calcite-card-group class="card-group" label>${this._renderCards()}</calcite-card-group><calcite-alert auto-close auto-close-duration=fast icon=check-circle kind=success .label=${this._translations.deleteComplete} .open=${this._showDeleteCompleteAlert} @calciteAlertClose=${()=>{this._showDeleteCompleteAlert=!1}}><div slot=title>${this._translations.deleteComplete}</div></calcite-alert></calcite-panel>`}_renderCards(){return this.cards.length?this.cards.map(e=>s`<solution-deployed-card .allowDelete=${this._isOrgAdmin||e.owner===this.userSessionContextConsumer.value.username} .deployedDate=${e.created} .description=${e.snippet} .heading=${e.title} itemId=${e.id??d} .owner=${e.owner} .thumbnail=${e.thumbnailUrl} .card=${e}></solution-deployed-card>`):s`<div class="no-solutions">${this._getSolutionsBriefcase()}<div class="text-center leader-1 warning-text trailer-1 display-flex flex-direction-column"><span>${this._translations.noSolutionsYet}</span><span>${this._translations.noSolutionsInstruction}</span></div></div>`}async _getDeployedSolutions(){let e=await f(this.authContextConsumer.value,this.userSessionContextConsumer.value,this._cardsFetcher,this._cardsFetcherDeployed,this._agoTerms,this._sortField,this._sortOrder,this._delay,this._categories,this._allCards,this._owner);this.cards=e?.cards??[],console.log(this.cards),e?.relatedSolutions&&(this._relatedSolutions=e.relatedSolutions,console.log(this._relatedSolutions)),this.deployedCardsFetched.emit(this.cards.length)}_getSolutionsBriefcase(){return s`<div class="solutions-briefcase"><svg viewBox="0 0 32 32" width=200 height=200 xmlns=http://www.w3.org/2000/svg>${n`<path d="M29.963 7.672a1.586 1.586 0 0 0-1.584-1.585h-5.274a.187.187 0 0 1-.188-.187V3.977A2 2 0 0 0 20.825 2h-9.672A2.095 2.095 0 0 0 9.06 4.093V5.9a.187.187 0 0 1-.187.187H3.598a1.586 1.586 0 0 0-1.584 1.585v4.016a.281.281 0 0 0 .281.28H4.9l.014-.013V9.153a.177.177 0 0 1 .177-.177h21.46a.456.456 0 0 1 .449.45v13.742A1.832 1.832 0 0 1 25.168 25h-8.892a.568.568 0 0 1-.534-.373 3.98 3.98 0 0 0-7.6.373H5.657a.757.757 0 0 1-.757-.757v-3.055A.188.188 0 0 0 4.714 21H2.028l-.014.014v4.58a2.35 2.35 0 0 0 2.347 2.346h4.161a3.963 3.963 0 0 0 6.8.256.569.569 0 0 1 .475-.256h12.065a2.102 2.102 0 0 0 2.101-2.101zM21 5.625a.375.375 0 0 1-.375.375h-9.25A.375.375 0 0 1 11 5.625V4.45a.456.456 0 0 1 .45-.45h9.1a.456.456 0 0 1 .45.45zM12 28a2 2 0 1 1 2-2 2 2 0 0 1-2 2z" fill=#ccc /><path d="M13.273 17.994a.57.57 0 0 1 .479.262A3.73 3.73 0 0 0 17 20a3.74 3.74 0 0 0 3.403-2.006h3.41a.188.188 0 0 0 .187-.188v-2.589a.187.187 0 0 0-.188-.188H20.8A3.8 3.8 0 0 0 17 12a4.058 4.058 0 0 0-3.69 2.647.568.568 0 0 1-.537.383H1.093a.094.094 0 0 0-.093.093V17.9a.094.094 0 0 0 .094.094zM17 13.9a2.1 2.1 0 1 1-2.1 2.1 2.1 2.1 0 0 1 2.1-2.1z" fill=#ccc />`}</svg></div>`}_textSearch(e){this._agoTerms=this._baseAgoTerms+` ${e}`}_sortCards(e){let t=e.sortType;t==="relevance"||t==="title"?(t==="title"&&(this._sortOrder="asc"),this._sortField=t):(t==="updated"||t==="created")&&(this._sortOrder="desc",this._sortField=t),this.sortType=t}_filterCards(e){if(e.industry){let t=this._getIndustryValue(e.industry);if(e.domain){let S=this._getDomainValue(e.domain);this._categories=[`/Categories/${t}/${S}`]}else this._categories=[`/Categories/${t}`];e.type==="owner"&&(this._owner=e.value),this._getDeployedSolutions()}else e.type==="owner"&&(this._owner=e.value,this._getDeployedSolutions())}_getDomainValue(e){return g[e]}_getIndustryValue(e){return e==="AEC"?"AEC":m[e]}_clearFilterCategories(){this._categories=[]}};u("solutions-deployed-panel",a);return a},a,b)
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0 */
4
- import{a as n,b as l}from"./DUVNOIA7.js";import{a as f}from"./IXJEV6RS.js";import{A as m,D as b,c as d,d as s,n as r,y as h,z as c}from"./ZGA5KQXP.js";import"./PLASWOCJ.js";var I=d`/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */:host{display:block;--solutions-theme-foreground-color: var(--calcite-color-foreground-1);width:100%}.width-full{width:100%}.width-26{width:26%!important}.height-full{height:100%}.display-flex{display:flex}.border-bottom-1{border-bottom-width:1px!important;border-width:0px}.border-bottom-2{border-bottom-width:2px!important;border-width:0px}.border-solid{border-style:solid;border-color:var(--calcite-color-border-3)}.border-left-right{border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-border-3)}.action-bar-size{height:51px;width:100%}.map-list{display:flex;flex-direction:column;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-color-background);z-index:1000}.display-none{display:none}.align-center{align-items:center}.adjusted-height{max-height:calc(100% - 68px);overflow-y:auto}.position-absolute{position:absolute}.position-relative{position:relative}`,p=class extends h{constructor(){super(...arguments),this.mapInfos=[],this.isMapLayout=!1,this.showMapListInPopover=!1,this.referenceElement="",this.selectedWebMapId="",this._mapListExpanded=!1,this._translations=f({name:"map-picker",blocking:!0}),this._list=n(),this._loadedId="",this._skipEditCheck=!1,this._popover=n(),this.beforeMapInfoChange=r(),this.mapInfoChange=r()}static{this.properties={mapInfos:0,isMapLayout:5,height:9,showMapListInPopover:5,referenceElement:1,selectedWebMapId:1,_mapListExpanded:16,_translations:16}}static{this.styles=I}willUpdate(e){e.has("mapInfos")&&this.hasUpdated&&this.mapInfosWatchHandler(this.mapInfos,e.get("mapInfos")),e.has("selectedWebMapId")&&this.hasUpdated&&this.selectedWebMapIdWatchHandler(this.selectedWebMapId)}_webMapInfoWatchHandler(e,t){e&&JSON.stringify(e)!==JSON.stringify(t)&&(this._loadedId=e?.id,this.mapInfoChange.emit(e))}async mapInfosWatchHandler(e,t){if(e&&JSON.stringify(e)!==JSON.stringify(t)){let i=this._getWebMapInfo();this._webMapSelected(i)}}async selectedWebMapIdWatchHandler(e){this._loadedId=e}async setMapByID(e,t=!1){this._skipEditCheck=t;let i=this.mapInfos?.filter(o=>o.id===e);e&&i?.length>0&&this._webMapSelected(i[0]),this._skipEditCheck=!1}async close(){this._mapListExpanded&&(this._mapListExpanded=!1)}async toggle(e){this._mapListExpanded=e}render(){return s`${!this.showMapListInPopover&&this._getToolbar()||""}${this.showMapListInPopover?this._getMapListPopover():this._getMapNameList(this._mapListExpanded)}`}loaded(){let e=this._getWebMapInfo();e&&this._webMapSelected(e),this._popover.value?.addEventListener("calcitePopoverOpen",()=>{(this._list.value?.querySelector("calcite-list-item[selected]")).setFocus()})}_getMapPicker(){let e="map-picker-expand-toggle",t=this._mapListExpanded?"chevron-up":"chevron-down";return s`<div class="width-full"><calcite-button alignment=icon-end-space-between appearance=transparent class="width-full height-full" .iconEnd=${t} icon-start=map id=${e} kind=neutral @click=${()=>this._chooseMap()} width=full>${this._getWebMapInfo().name}</calcite-button><calcite-tooltip placement=bottom .referenceElement=${e}><span>${this._translations.switchMap}</span></calcite-tooltip></div>`}_getToolbar(){let e=this.isMapLayout?"border-bottom-1":"border-bottom-2";return s`<div class="display-flex border-left-right"><calcite-action-bar class=${`border-solid action-bar-size ${e}`} expand-disabled layout=horizontal slot=header>${this._getMapPicker()}</calcite-action-bar></div>`}_getMapNameList(e){let t=this.height&&this.height>0&&this.showMapListInPopover?{height:`${this.height.toString()}px`}:{},i=this.showMapListInPopover?"position-relative":"position-absolute",o=this.isMapLayout?"width-26":"width-full",g=this.isMapLayout?"border-bottom-1":"border-bottom-2",u=e?`map-list border-solid ${g} adjusted-height ${o} ${i}`:"display-none";return s`<div class=${c(u)} style=${m(t)}><calcite-list id=mapList label selection-appearance=border selection-mode=single-persist ${l(this._list)}>${this.mapInfos.map(a=>s`<calcite-list-item .label=${a.name} @click=${()=>this._webMapSelected(a)} .selected=${a.id===this._loadedId} .value=${a.id}></calcite-list-item>`)}</calcite-list></div>`}_getMapListPopover(){return s`<calcite-popover auto-close focus-trap-disabled .label=${this.referenceElement} placement=auto .referenceElement=${this.referenceElement} ${l(this._popover)}>${this._getMapNameList(!0)}</calcite-popover>`}_getWebMapInfo(){let e=this.mapInfos.find(t=>this.selectedWebMapId===t.id);if(!e&&this.mapInfos.length>0&&(e=this.mapInfos[0]),!e)throw new Error("No valid web map info available");return e}_webMapSelected(e){let t=this._loadedId;this._loadedId=e.id;let i=!1;this._skipEditCheck?i=!0:this.beforeMapInfoChange.emit({currentId:t,mapInfo:e,ref:this.el}).defaultPrevented||(i=!0),i&&(this._webMapInfoWatchHandler(e,this._webMapInfo),this._webMapInfo=e),this._popover.value&&(this._popover.value.open=!1),this._mapListExpanded=!1}_chooseMap(){this._mapListExpanded=!this._mapListExpanded}};b("map-picker",p);export{p as MapPicker};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0 */
4
- import{a}from"./45CNJSWY.js";import"./O5NFMICR.js";import"./4AMMMHQL.js";import"./QEZIPKKL.js";import"./CLZ76DFI.js";import"./L72F3CMH.js";import"./F2T2S2QU.js";import"./PLASWOCJ.js";export{a as buildUiSchema};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0 */
4
- import{a,b}from"./QUGE5UIB.js";import"./NMZOOVD5.js";import"./EHTK6HWZ.js";import"./RV44MYN7.js";import"./UKSUWA3B.js";import"./FGCO2ORF.js";import"./PLASWOCJ.js";export{a as InitiativeEditorTypes,b as InitiativeSchema};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0 */
4
- import{e as P}from"./CX2QWWHL.js";import{A as C,C as R,D as L,d as k,e as y}from"./JUIF3JFS.js";import"./CXK3KS6W.js";import{a as S,c as e,d as E,e as $}from"./D55TK32T.js";import"./PLASWOCJ.js";var F=":host{display:block;--instant-apps-social-share-action-width:initial;--instant-apps-social-share-width--s:200px;--instant-apps-social-share-width--m:280px;--instant-apps-social-share-width--l:320px;--instant-apps-social-share-width-horizontal--s:300px;--instant-apps-social-share-width-horizontal--m:380px;--instant-apps-social-share-width-horizontal--l:420px;--instant-apps-social-share-background-color:var(--calcite-color-foreground-1);--instant-apps-social-share-popover-button-background-color:transparent;--instant-apps-social-share-popover-button-icon-color:var(--calcite-ui-icon-color);--instant-apps-social-share-embed-border:1px solid $border;--instant-apps-social-share-embed-text-area-text:#468540}:host .instant-apps-social-share__popover-button{background-color:var(--instant-apps-social-share-popover-button-background-color)}:host .instant-apps-social-share__popover-button calcite-icon{color:var(--instant-apps-social-share-popover-button-icon-color)}:host .instant-apps-social-share__dialog,:host .instant-apps-social-share__dialog-embed{background-color:var(--instant-apps-social-share-background-color);border:var(--instant-apps-social-share-embed-border)}:host .instant-apps-social-share__dialog{box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__options{margin:0;padding:1% 0 0 0;list-style-type:none}:host .instant-apps-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__options li .instant-apps-social-share__icon,:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{display:inline-block}:host .instant-apps-social-share__options li .instant-apps-social-share__icon{display:flex;align-items:center}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text--rtl{margin-left:0;margin-right:10px}:host .instant-apps-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}:host .instant-apps-social-share__options__x-logo--light path{fill:#000000}:host .instant-apps-social-share__options__x-logo--dark path{fill:#ffffff}:host .instant-apps-social-share__tip{box-sizing:border-box;padding:0 5% 1% 5%}:host .instant-apps-social-share__tip-header{display:flex;align-items:center;color:#007ac2;margin:8px 0 5px 0}:host .instant-apps-social-share__tip-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__tip-content{line-height:17px;margin:0;padding-top:2%}:host .instant-apps-social-share__success{display:flex;flex-direction:column;padding:15px}:host .instant-apps-social-share__success-header{display:flex;align-items:center;font-weight:bold;margin-bottom:10px}:host .instant-apps-social-share__success-icon{display:flex;align-items:center;margin-right:5px}:host .instant-apps-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}:host .instant-apps-social-share__success-message{line-height:16px}:host .instant-apps-social-share__embed{box-sizing:border-box;width:100%;padding:5%;margin-bottom:10px;border-top:1px solid #d3d3d3}:host .instant-apps-social-share__embed-header{display:flex;align-items:center;margin-bottom:5px}:host .instant-apps-social-share__embed-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__embed-code-text-area{border:1px solid #d3d3d3}:host .instant-apps-social-share__embed-code-text-area textarea{box-sizing:border-box;padding:4%;border:none;resize:none;background:transparent;width:100%;font-family:var(--calcite-sans-family);color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button{display:flex;align-items:center;text-align:start;width:100%;border:none;border-top:1px solid #d3d3d3;background-color:transparent;line-height:16px;font-weight:400;padding:3%;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button calcite-icon{color:#007ac2;margin-right:3px}:host .instant-apps-social-share__embed-code-text-area button:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2);transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__embed-text-area-text{display:inline-block;padding-block-start:var(--calcite-spacing-md);font-weight:600;color:var(--instant-apps-social-share-embed-text-area-text)}:host .instant-apps-social-share__embed .instant-apps-social-share__text-area--rtl{text-align:left;direction:ltr}:host .instant-apps-social-share__embed-dimensions{display:flex;justify-content:space-between;margin-top:10px}:host .instant-apps-social-share__embed-dimensions-input{width:47%;box-sizing:border-box}:host .instant-apps-social-share__embed-dimensions-input input{border:1px solid #d3d3d3;width:100%;height:25px;font-family:var(--calcite-sans-family)}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li{flex-direction:column;padding:0}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li .instant-apps-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li:hover{background-color:unset}:host .instant-apps-social-share__icon-container{display:flex;align-items:center}:host calcite-action{width:var(--instant-apps-social-share-action-width)}:host([scale=s]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--s)}:host([scale=s]) .instant-apps-social-share__icon{width:16px;height:16px}:host([scale=s]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--s)}:host([scale=s]) .instant-apps-social-share__tip-header,:host([scale=s]) .instant-apps-social-share__tip-content,:host([scale=s]) .instant-apps-social-share__embed-header,:host([scale=s]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--2)}:host([scale=m]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--m)}:host([scale=m]) .instant-apps-social-share__icon{width:24px;height:24px}:host([scale=m]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--m)}:host([scale=m]) .instant-apps-social-share__tip-header,:host([scale=m]) .instant-apps-social-share__tip-content,:host([scale=m]) .instant-apps-social-share__embed-header,:host([scale=m]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--1)}:host([scale=l]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--l)}:host([scale=l]) .instant-apps-social-share__icon{width:32px;height:32px}:host([scale=l]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--l)}:host([scale=l]) .instant-apps-social-share__tip-header,:host([scale=l]) .instant-apps-social-share__tip-content,:host([scale=l]) .instant-apps-social-share__embed-header,:host([scale=l]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size-0)}",K=F,o="instant-apps-social-share",I=".calcite-mode-dark",i={base:o,dialog:`${o}__dialog`,dialogEmbed:`${o}__dialog-embed`,dialogContent:`${o}__dialog-content`,options:`${o}__options`,tipContainer:`${o}__tip`,tipHeader:`${o}__tip-header`,tipContent:`${o}__tip-content`,icon:`${o}__icon`,iconContainer:`${o}__icon-container`,optionText:`${o}__option-text`,popoverButton:`${o}__popover-button`,layout:{vertical:`${o}__layout--vertical`,horizontal:`${o}__layout--horizontal`},xLogo:{light:`${o}__x-logo--light`,dark:`${o}__x-logo--dark`},success:{container:`${o}__success`,header:`${o}__success-header`,message:`${o}__success-message`,icon:`${o}__success-icon`},embed:{container:`${o}__embed`,header:`${o}__embed-header`,embedCode:{container:`${o}__embed-code`,textArea:`${o}__embed-code-text-area`,copyButton:`${o}__embed-code-copy-button`},textAreaText:`${o}__embed-text-area-text`,dimensions:{container:`${o}__embed-dimensions`,input:`${o}__embed-dimensions-input`}},rtl:{optionText:`${o}__option-text--rtl`,textArea:`${o}__text-area--rtl`}},W={facebook:"https://www.facebook.com/sharer/sharer.php?u={url}",x:"https://x.com/intent/post?url={url}",linkedIn:"https://www.linkedin.com/sharing/share-offsite/?url={url}",bluesky:"https://bsky.app/intent/compose?text={url}"},j="https://arcg.is/prod/shorten",T="1",V=class{constructor(t){S(this,t),this.mode="popover",this.shareUrl=window.location.href,this.autoUpdateShareUrl=!0,this.shareText="",this.embed=!1,this.shareButtonColor="neutral",this.shareButtonType="button",this.shareButtonScale="m",this.iframeInnerText="",this.popoverButtonIconScale="m",this.view=void 0,this.displayTipText=!0,this.shortenShareUrl=!0,this.socialMedia=!0,this.shareIconsLayout="vertical",this.scale="m",this.successMessage="",this.flipRtl=!1,this.defaultUrlParams=null,this.inlineSuccessPopoverPlacement="trailing",this.popoverPositioning="absolute",this.removePopoverOffset=!1,this.useNativeShare=!1,this.isNativeShareEnabled=!1,this.messages=void 0,this.opened=!1,this.copied=!1,this.inlineCopyLinkOpened=!1,this.inlineCopyEmbedOpened=!1,this.embedWidth=400,this.embedHeight=600}componentDidLoad(){this.isNativeShareEnabled=this.useNativeShare&&this.isMobileDevice(),P(this),this.setupAutoCloseListeners(),this.mode==="popover"&&!this.isNativeShareEnabled&&(this.opened&&(this.popoverRef.open=!0),this.popoverRef.addEventListener("calcitePopoverOpen",()=>{if(!this.shareListRef)return;this.shareListRef.children[0].focus()}),this.popoverRef.addEventListener("keydown",this.handlePopoverRefKeyDown.bind(this))),this.embed&&!this.isNativeShareEnabled&&(this.embedWidthRef?.addEventListener("change",this.updateDimensions.bind(this,"width")),this.embedHeightRef?.addEventListener("change",this.updateDimensions.bind(this,"height")))}disconnectedCallback(){document.documentElement.removeEventListener("click",this.autoCloseCallback.bind(this)),this.mode==="popover"?this.popoverRef!=null&&(this.popoverRef.removeEventListener("click",this.stopPropagationCallback.bind(this)),this.popoverRef.removeEventListener("calcitePopoverClose",this.resetPopoverCopyState.bind(this)),this.popoverRef.removeEventListener("keydown",this.handlePopoverRefKeyDown.bind(this))):(this.embedWidthRef?.removeEventListener("change",this.updateDimensions.bind(this,"width")),this.embedHeightRef?.removeEventListener("change",this.updateDimensions.bind(this,"height")),this.dialogContentRef?.removeEventListener("click",this.stopPropagationCallback.bind(this)))}setupAutoCloseListeners(){document.documentElement.addEventListener("click",this.autoCloseCallback.bind(this)),this.mode==="popover"?(this.popoverRef?.addEventListener("click",this.stopPropagationCallback.bind(this)),this.popoverRef?.addEventListener("calcitePopoverClose",this.resetPopoverCopyState.bind(this))):this.dialogContentRef?.addEventListener("click",this.stopPropagationCallback.bind(this))}handlePopoverRefKeyDown(t){if(!this.isNativeShareEnabled)if(t.code==="Tab"){if(!this.shareListRef)return;let a=t.target,s=this.shareListRef.children[0],n=this.shareListRef.children[this.shareListRef.children.length-1];t.shiftKey&&a===s?(t.preventDefault(),n.focus()):!t.shiftKey&&a===n&&(t.preventDefault(),s.focus())}else t.code==="Escape"&&(this.closePopover(),this.popoverButtonRef?.setFocus())}autoCloseCallback(){this.mode==="popover"?(this.opened=!1,this.popoverRef.open=this.opened):(this.copyLinkPopoverRef&&(this.copyLinkPopoverRef.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef&&(this.copyEmbedPopoverRef.open=!1),this.inlineCopyEmbedOpened=!1)}stopPropagationCallback(t){t.stopPropagation()}resetPopoverCopyState(){this.popoverButtonRef?.setFocus(),setTimeout(()=>{this.copied=!1},200)}updateDimensions(t){if(t==="width"){let a=this.embedWidthRef?.value??"0";this.embedWidth=Number.parseInt(a)}else{let a=this.embedHeightRef?.value??"0";this.embedHeight=Number.parseInt(a)}}render(){let t=this.copied&&this.mode==="popover"?this.renderSuccess():e("div",{class:i.dialogContent},this.renderOptions(),this.displayTipText?this.renderTip():null,this.embed?this.renderEmbed():null),a=this.shareIconsLayout==="vertical"?` ${i.layout.vertical}`:` ${i.layout.horizontal}`,s=` calcite-mode-${this.el.closest(I)?"dark":"light"}`,n=e("div",{key:"8a69bc57ea2c4905375782cf190655e39b2fadb3",ref:r=>this.dialogContentRef=r,class:`${i.dialog}${a}${s}`},t),c=this.removePopoverOffset?0:6;return e(E,{key:"70eacb6923a4184e19f9f3ba06965efda14641b8"},this.isNativeShareEnabled?this.renderButton():this.mode==="popover"?[e("calcite-popover",{ref:r=>{r&&(this.popoverRef=r)},label:this.messages?.share?.label??"",referenceElement:"shareButton",placement:"bottom-start",scale:this.scale,"overlay-positioning":this.popoverPositioning,"offset-distance":c,"pointer-disabled":this.removePopoverOffset},n),this.renderButton()]:[n,e("calcite-popover",{ref:r=>{r&&(this.copyLinkPopoverRef=r)},label:this.messages?.share?.label??"",referenceElement:"copyToClipboard",placement:this.inlineSuccessPopoverPlacement,scale:this.scale,overlayPositioning:"fixed"},this.renderSuccess()),e("calcite-popover",{ref:r=>{r&&(this.copyEmbedPopoverRef=r)},label:this.messages?.share?.label??"",referenceElement:"copyEmbedToClipboard",placement:this.inlineSuccessPopoverPlacement,scale:this.scale,overlayPositioning:"fixed"},this.renderEmbedSuccess())])}renderButton(){let t={onClick:s=>{this.isNativeShareEnabled?(s.stopPropagation(),this.handleShareItem("native-share")):this.togglePopover(s)},id:"shareButton",class:i.popoverButton,label:this.messages?.share?.label,title:this.messages?.share?.label,scale:this.shareButtonScale??this.scale},a=e("div",{class:i.iconContainer},e("calcite-icon",{icon:"share",scale:this.popoverButtonIconScale}));return this.shareButtonType==="button"?e("calcite-button",{ref:s=>{!this.isNativeShareEnabled&&s&&(this.popoverButtonRef=s)},...t,kind:this.shareButtonColor,appearance:"transparent"},a):e("calcite-action",{ref:s=>{!this.isNativeShareEnabled&&s&&(this.popoverButtonRef=s)},...t,appearance:"transparent",text:"",alignment:"center"},a)}renderSuccess(){let t=this.messages?.success;return e("div",{class:i.success.container},e("span",{class:i.success.header},e("span",{class:i.success.icon},e("calcite-icon",{icon:"check-circle-f",scale:this.scale})),t?.label),e("span",{class:i.success.message},this.successMessage||t?.url))}renderEmbedSuccess(){let t=this.messages?.success;return e("div",{class:i.success.container},e("span",{class:i.success.header},e("span",{class:i.success.icon},e("calcite-icon",{icon:"check-circle-f",scale:this.scale})),t?.label),e("span",{class:i.success.message},t?.embed))}renderOptions(){let t=this.messages?.options,a=document.dir==="rtl"?` ${i.rtl.optionText}`:"";return e("ul",{ref:s=>this.shareListRef=s,class:i.options,role:"menu"},e("li",{id:"copyToClipboard",onClick:this.handleShareItem.bind(this,"link"),onKeyDown:this.handleOptionKeyDown("link"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},e("calcite-icon",{icon:"link",scale:this.scale})),e("span",{class:`${i.optionText}${a}`},t?.link?.label)),this.socialMedia?[e("li",{onClick:this.handleShareItem.bind(this,"facebook"),onKeyDown:this.handleOptionKeyDown("facebook"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderFacebookIcon()),e("span",{class:`${i.optionText}${a}`},t?.facebook?.label)),e("li",{onClick:this.handleShareItem.bind(this,"x"),onKeyDown:this.handleOptionKeyDown("x"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderXIcon()),e("span",{class:`${i.optionText}${a}`},"X")),e("li",{onClick:this.handleShareItem.bind(this,"linkedIn"),onKeyDown:this.handleOptionKeyDown("linkedIn"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderLinkedInIcon()),e("span",{class:`${i.optionText}${a}`},t?.linkedIn?.label)),e("li",{onClick:this.handleShareItem.bind(this,"bluesky"),onKeyDown:this.handleOptionKeyDown("bluesky"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderBlueSkyIcon()),e("span",{class:`${i.optionText}${a}`},t?.blueSky?.label))]:null)}handleOptionKeyDown(t){return a=>{let s=a.code;(s==="Space"||s==="Enter")&&this.handleShareItem(t)}}renderFacebookIcon(){return e("svg",{height:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},version:"1.1",viewBox:"0 0 512 512",width:"100%",xmlns:"http://www.w3.org/2000/svg"},e("g",null,e("path",{d:"M512,256c0,-141.385 -114.615,-256 -256,-256c-141.385,0 -256,114.615 -256,256c0,127.777 93.616,233.685 216,252.89l0,-178.89l-65,0l0,-74l65,0l0,-56.4c0,-64.16 38.219,-99.6 96.695,-99.6c28.009,0 57.305,5 57.305,5l0,63l-32.281,0c-31.801,0 -41.719,19.733 -41.719,39.978l0,48.022l71,0l-11.35,74l-59.65,0l0,178.89c122.385,-19.205 216,-125.113 216,-252.89Z",style:{fill:"#1877f2",fillRule:"nonzero"}}),e("path",{d:"M355.65,330l11.35,-74l-71,0l0,-48.022c0,-20.245 9.917,-39.978 41.719,-39.978l32.281,0l0,-63c0,0 -29.297,-5 -57.305,-5c-58.476,0 -96.695,35.44 -96.695,99.6l0,56.4l-65,0l0,74l65,0l0,178.89c13.033,2.045 26.392,3.11 40,3.11c13.608,0 26.966,-1.065 40,-3.11l0,-178.89l59.65,0Z",style:{fill:"#fff",fillRule:"nonzero"}})))}renderXIcon(){let t=!!this.el.closest(I);return e("svg",{height:"100%",class:t?i.xLogo.dark:i.xLogo.light,viewBox:"0 0 1200 1227",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("rect",{height:"400",style:{fill:"none"},width:"400",x:"56",y:"56"}),e("path",{d:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z",fill:t?"white":"black"}))}renderBlueSkyIcon(){return e("svg",{height:"100%",fill:"#0f85fe",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e("path",{d:"M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z"}))}renderLinkedInIcon(){return e("svg",{height:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},version:"1.1",viewBox:"0 0 512 512",width:"100%",xmlns:"http://www.w3.org/2000/svg"},e("g",{id:"g5891"},e("path",{d:"M512,64c0,-35.323 -28.677,-64 -64,-64l-384,0c-35.323,0 -64,28.677 -64,64l0,384c0,35.323 28.677,64 64,64l384,0c35.323,0 64,-28.677 64,-64l0,-384Z",id:"background",style:{fill:"#2867b2"}}),e("g",{id:"shapes"},e("rect",{height:"257.962",id:"rect11",style:{fill:"#fff"},width:"85.76",x:"61.053",y:"178.667"}),e("path",{d:"M104.512,54.28c-29.341,0 -48.512,19.29 -48.512,44.573c0,24.752 18.588,44.574 47.377,44.574l0.554,0c29.903,0 48.516,-19.822 48.516,-44.574c-0.555,-25.283 -18.611,-44.573 -47.935,-44.573Z",id:"path13-0",style:{fill:"#fff",fillRule:"nonzero"}}),e("path",{d:"M357.278,172.601c-45.49,0 -65.866,25.017 -77.276,42.589l0,-36.523l-85.738,0c1.137,24.197 0,257.961 0,257.961l85.737,0l0,-144.064c0,-7.711 0.554,-15.42 2.827,-20.931c6.188,-15.4 20.305,-31.352 43.993,-31.352c31.012,0 43.436,23.664 43.436,58.327l0,138.02l85.741,0l0,-147.93c0,-79.237 -42.305,-116.097 -98.72,-116.097Z",id:"path15",style:{fill:"#fff",fillRule:"nonzero"}}))))}renderTip(){let t=this.messages?.info;return e("div",{class:i.tipContainer},e("span",{class:i.tipHeader},e("calcite-icon",{icon:"lightbulb",scale:this.scale}),e("span",null,t?.label)),e("p",{class:i.tipContent},t?.tooltip))}renderEmbed(){let t=this.messages?.embed,a=document.dir==="rtl"?` ${i.rtl.textArea}`:"";return e("div",{class:i.embed.container},e("span",{class:i.embed.header},e("calcite-icon",{icon:"code",scale:this.scale}),e("span",null,this.messages?.embed?.label)),e("div",{class:i.embed.embedCode.container},e("div",{class:i.embed.embedCode.textArea},e("textarea",{ref:s=>this.embedCodeRef=s,cols:30,rows:5,readonly:!0,class:a,value:this.getEmbedCode()}),e("button",{id:"copyEmbedToClipboard",onClick:this.copyEmbedCode.bind(this),class:i.embed.embedCode.copyButton},e("calcite-icon",{icon:"copy",scale:this.scale}),e("span",null,t?.copy))),e("span",{class:i.embed.textAreaText},e("slot",{name:"text-area-text"})),e("div",{class:i.embed.dimensions.container},e("label",{class:i.embed.dimensions.input},e("span",null,t?.width),e("input",{ref:s=>this.embedWidthRef=s,type:"number",onKeyDown:s=>["e","E","+","-"].includes(s.key)&&s.preventDefault(),onChange:this.handleNumberInputOnChange("width"),value:this.embedWidth,min:"1"})),e("label",{class:i.embed.dimensions.input},e("span",null,t?.height),e("input",{ref:s=>this.embedHeightRef=s,type:"number",onKeyDown:s=>["e","E","+","-"].includes(s.key)&&s.preventDefault(),onChange:this.handleNumberInputOnChange("height"),value:this.embedHeight,min:"1"})))))}handleNumberInputOnChange(t){let a=t==="width"?this.embedWidthRef:this.embedHeightRef,s=t==="width"?"embedWidth":"embedHeight";return()=>{a&&Number.parseFloat(a.value)<=0&&(this[s]=Number.parseInt(T),a.value=T)}}togglePopover(t){t.stopPropagation(),this.opened=!this.opened,this.popoverRef.open=this.opened}closePopover(){this.opened=!1,this.popoverRef.open=this.opened}async handleShareItem(t){this.shareUrl=await this.generateShareUrl();let a=null,s=navigator?.userAgent?.includes("Chrome")??!1,n=(navigator?.userAgent?.includes("Safari")??!1)&&!s;!n&&this.shortenShareUrl&&(a=await this.shortenUrl(this.shareUrl));let h=a||this.shareUrl;switch(t){case"link":navigator.clipboard.writeText(h),this.embed&&(this.copyEmbedPopoverRef.open=!1,this.inlineCopyEmbedOpened=!1),this.mode==="inline"&&(this.copyLinkPopoverRef.open=!0,setTimeout(()=>this.copyLinkPopoverRef.open=!1,3e3)),this.inlineCopyLinkOpened=!0,this.copied=!0,this.mode==="popover"&&setTimeout(()=>this.closePopover(),2e3);return;case"facebook":case"bluesky":case"x":case"linkedIn":{let r;n&&(r=window.open("","_blank"),this.shortenShareUrl&&(h=await this.shortenUrl(this.shareUrl)||h));let f={url:encodeURI(h)},b=t==="x"?{...f,text:this.shareText}:f,u=(await R()).substitute(W[t],b);this.mode==="popover"&&this.closePopover(),n&&r?(r.location=u,r.focus()):window.open(encodeURI(u),"_blank")}break;case"native-share":let c={title:this.messages?.share?.label||"Share",text:this.shareText,url:encodeURI(h)};navigator?.canShare(c)?navigator.share(c).catch(r=>{console.error("Error using native share:",r)}):console.warn("Native share is not supported or the provided data is not shareable.");return}}async shortenUrl(t){let n=(await(await L())(j,{query:{longUrl:t,f:"json"}}))?.data?.data?.url;if(n)return n.replace("http://","https://")}getEmbedCode(){return`<iframe src="${this.shareUrl}" width="${this.embedWidth}" height="${this.embedHeight}" frameborder="0" style="border:0" allowfullscreen>${this.iframeInnerText}</iframe>`}copyEmbedCode(){navigator.clipboard.writeText(this.getEmbedCode()),this.copyLinkPopoverRef.open=!1,this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.open=!0,setTimeout(()=>this.copyEmbedPopoverRef.open=!1,3e3),this.inlineCopyEmbedOpened=!0}async generateShareUrl(){if(this.autoUpdateShareUrl&&(this.shareUrl=window.location.href),!this.view?.ready)return this.shareUrl;let{x:t,y:a}=this.view.center,{spatialReference:s}=this.view,n=await y({...s.toJSON()}),h=await k({x:t,y:a,spatialReference:n}),c=await this.processPoint(h),{isWGS84:r,isWebMercator:f}=c.spatialReference,b=r||f;return this.generateShareUrlParams(c,b)}async processPoint(t){let{isWGS84:a,isWebMercator:s}=t.spatialReference;if(a||s)return t;let n=await C(),h=await y({wkid:4326});try{await n.load();let c=n.project(t,h);return Promise.resolve(c)}catch(c){return console.error("Failed to project point",c),await Promise.reject(new Error("Failed to project point"))}}generateShareUrlParams(t,a){let{longitude:s,latitude:n,x:h,y:c}=t;if(s===void 0||n===void 0)return this.shareUrl;let r=this.roundValue(a?s:h),f=this.roundValue(a?n:c),{zoom:b}=this.view,w=this.roundValue(b),u=this.view?.popup?.selectedFeature,z=this.view?.popup?.visible,g,_,v;if(u&&z&&u?.layer?.type==="feature"){let d=u?.layer;g=d?.id,_=u.attributes[d.objectIdField]}v=this.view.map?.allLayers.filter(d=>!d.visible).toArray().map(d=>d.id).toString().replaceAll(",",";");let{type:U}=this.view,{defaultUrlParams:m}=this,l=new URL(this.shareUrl),{searchParams:p}=l;if(p.get("center")&&p.delete("center"),p.get("level")&&p.delete("level"),p.get("selectedFeature")&&p.delete("selectedFeature"),p.get("hiddenLayers")&&p.delete("hiddenLayers"),p.get("viewpoint")&&p.delete("viewpoint"),U==="3d"){let{camera:d}=this.view,{heading:D,position:O,tilt:B}=d,{longitude:A,latitude:H,z:M}=O,x={longitude:this.roundValue(A,8),latitude:this.roundValue(H,8),z:this.roundValue(M,3),heading:this.roundValue(D,3),tilt:this.roundValue(B,3)},N=`cam:${x.longitude},${x.latitude},${x.z};${x.heading},${x.tilt}`;return m?.viewpoint!==!1&&l.searchParams.set("viewpoint",N),g&&_&&m?.selectedFeature!==!1&&l.searchParams.set("selectedFeature",`${g};${_}`),v&&m?.hiddenLayers!==!1&&l.searchParams.set("hiddenLayers",v),l.search=decodeURIComponent(l.search),l.href}return m?.center!==!1&&l.searchParams.set("center",`${r};${f}`),m?.level!==!1&&l.searchParams.set("level",`${w}`),g&&_&&m?.selectedFeature!==!1&&l.searchParams.set("selectedFeature",`${g};${_}`),v&&m?.hiddenLayers!==!1&&l.searchParams.set("hiddenLayers",v),l.search=decodeURIComponent(l.search),l.href}roundValue(t,a=4){return Number.parseFloat(t.toFixed(a))}isMobileDevice(){return/Mobi|Android|iPhone|iPad|iPod/iu.test(navigator.userAgent)}get el(){return $(this)}};V.style=K;export{V as instant_apps_social_share};
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0 */
4
- import"./KIQPCYN6.js";import{b as A}from"./XDTSRIUV.js";import"./FVAP4UBB.js";import"./YXHUA4CI.js";import"./FWP6XYXK.js";import"./SZEHA4OQ.js";import"./WSWWUPOS.js";import"./3EO7HXAA.js";import"./FDRKGYGJ.js";import"./CDDGYF3K.js";import"./4QO4KGLF.js";import"./QEZIPKKL.js";import"./NP4W7EDK.js";import"./M3JQHFSU.js";import"./PSP2JCLX.js";import"./HQIAVN67.js";import"./ATNDBD4K.js";import"./WP57L3ZR.js";import"./5YSFQ4E3.js";import"./CLZ76DFI.js";import"./L72F3CMH.js";import"./TKP6ZIYO.js";import{a as C}from"./MAFJTGI7.js";import"./D55TK32T.js";import{c as F,d as O,j as y}from"./MAVOVPIB.js";import{j as b}from"./XM4IJDWV.js";import{c as S}from"./4DELYGXR.js";import{a as u,b as g}from"./DUVNOIA7.js";import{b as x}from"./KAZSBKHX.js";import{a as E}from"./IXJEV6RS.js";import{D as T,c as w,d as o,f as c,n as p,p as I,y as v,z as f}from"./ZGA5KQXP.js";import"./PLASWOCJ.js";var H=w`@layer{/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */: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{white-space:nowrap}.padding-start-1-4{padding-inline-start:.5rem}.panel-header-override{--calcite-panel-header-content-space: 0px}.danger-label-color{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}}`,m=class extends v{constructor(){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._allIds=[],this._csvExporting=!1,this._fetchingData=!1,this._filterActive=!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._enabledLayerIds=[],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._creatingFeature=!1,this._searchNode=u(),this.featureSelectionChange=p(),this.toggleFilter=p(),this.showDelete=p(),this.relatedRecordToggled=p(),this.editMultipleFeatures=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),this.listenOn(window,"mapChanged",this.mapChanged),this.listenOn(window,"featuresSelected",this.featuresSelected),this.listenOn(window,"createWorkFlowStarted",this.createWorkFlowStarted),this.listenOn(window,"backFromCreateWorkFlow",this.backFromCreateWorkFlow),C(window)}static{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,_allIds:16,_csvExporting:16,_fetchingData:16,_filterActive:16,_layer:16,_selectAllActive:16,_showHideOpen:16,_showOnlySelected:16,_toolInfos:16,_translations:16,_fullTextSearchInfo:16,_searchPlaceHolder:16,_size:16,_queryingData:16}}static{this.styles=H}static{this.shadowRootOptions=I}willUpdate(e){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")){let t=this._translations._lang,i=e.get("_translations")?._lang;t&&i&&t!==i&&this._initToolInfos()}}async appLayoutWatchHandler(){await this._initToolInfos(),this._updateShareUrl()}async defaultOidWatchHandler(){await this._handleDefaults()}async defaultGlobalIdWatchHandler(){await this._handleDefaults()}async enableCSVWatchHandler(){this._toolInfos?.length>0&&await this._initToolInfos()}enableInlineEditWatchHandler(){this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit)}async mapHiddenWatchHandler(){this._toolInfos?.length>0&&await this._initToolInfos()}async isMobileWatchHandler(){!this._toolInfos&&!this.isMobile&&await this._initToolInfos()}async mapInfoWatchHandler(){this._enabledLayerIds=this.mapInfo?.layerOptions?.layers.map(e=>e.id)||[],this._table&&(this._resetColumnTemplates(),this._sortTable())}async mapViewWatchHandler(){this._mapClickHandle&&this._mapClickHandle.remove(),this.mapView&&(this._floorExpression="",this._searchExpression="undefined",this.mapView.highlights=[{name:"default",color:"#00FFFF"},{name:"current-selection",color:"#ff00ff"},{name:"temporary",color:"#FFFF00"}],this._updateShareUrl(),this._mapClickHandle=this.reactiveUtils?.on(()=>this.mapView,"click",e=>{this._creatingFeature||this._mapClicked(e)}))}async _layerWatchHandler(){this._fetchingData=!0,await this._layer?.when(async()=>{this._definitionExpression=this._layer?.definitionExpression||"",this._floorField=this._layer?.floorInfo?.floorField||"",this._updateFloorDefinitionExpression(),await this._resetTable(),this._updateShareUrl(),this._fetchingData=!1})}async selectedIdsWatchHandler(){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(()=>{this.featureSelectionChange.emit(this.selectedIds)},700)}async selectedRelatedIdsWatchHandler(){this._validateEnabledActions(),this.selectedRelatedIds.length>0&&(this._relatedFeatureTable?.rowHighlightIds.removeAll(),this._relatedFeatureTable?.rowHighlightIds.add(this.selectedRelatedIds[0]))}async closeFilter(){await this._closeFilter()}async filterReset(){this._filterByExtentHandle&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle.remove(),this._filterByExtentHandle=void 0),await this._handleFilterListReset()}async filterUpdate(e,t){await this._handleFilterUpdate(e),t?(this._shouldUpdateTableOnExtentChange=!0,this._handleTableOnMapExtent()):t===!1&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle?.remove(),this._filterByExtentHandle=void 0,await this._updateAllIds())}async validateTableUpdate(e){this._shouldUpdateTableOnExtentChange=e}async validateActiveEdits(){return this._validateActiveEdits([],this.selectedIds)}async refresh(){this._table&&await this._refresh()}async beforeMapInfoChange(e){let t=e.detail.ref,i=e.detail.mapInfo;if(this._hasPendingEdits()){e.preventDefault();let s=await this._validateActiveEdits([],this.selectedIds);await t.setMapByID(s?i.id:e.detail.currentId,!s)}}async editorInitialized(e){this._shouldUpdateTableOnExtentChange=!1,this._editor=e.detail}async closeEdit(){this._shouldUpdateTableOnExtentChange=!0,this._filterByExtentHandle&&this._handleTableOnMapExtent()}async selectionChanged(e){let t=e.detail.selectedFeature[0],i=Number(t.getObjectId()),s=this._table;if(s.rowHighlightIds.length&&s.rowHighlightIds.removeAll(),s.rowHighlightIds.add(i),this._highlightFeatures(i),this.zoomAndScrollToSelected&&s&&this.mapView){let a=s.viewModel.getObjectIdIndex(i);s.scrollToIndex(a);let l=t.layer,h=this.mapView.allLayerViews.toArray(),r;h.some(async n=>n.layer.title===l?.title&&n.layer.type==="feature"?(r=n,this.mapView&&await y([i],r,this.mapView,!0,void 0,this.zoomToScale),!0):!1)}}async beforeLayerSelectionChange(e){if(this._hasPendingEdits()){e.preventDefault();let t=e.detail.ref,i=await this._validateActiveEdits([],this.selectedIds);return e.detail.selectedIds?await t.setLayerByIds(i?e.detail.newIds:e.detail.currentIds,!0):await t.setLayerById(i?e.detail.newId:e.detail.currentId,!0)}}async layerSelectionChange(e){await this._layerSelectionChanged(e)}async editsComplete(e){let t=e.detail;(t==="delete"||t==="add")&&(this._allIds=await this.queryAllIds()),await this._refresh()}async facilityChanged(e){this._floorFacility=e.detail,this._updateFloorDefinitionExpression()}async levelChanged(e){this._floorLevel=e.detail,this._updateFloorDefinitionExpression()}async siteChanged(e){this._floorSite=e.detail,this._updateFloorDefinitionExpression()}async noLayersFound(){this._layer=void 0,this._allIds=[],this._clearSelection()}async clearSelection(){await this._validateActiveEdits([],this.selectedIds)&&this._clearSelection()}async mapChanged(){this._queryingData=!1,this._creatingFeature=!1,this._clearSelection()}async featuresSelected(e){e.detail.forEach(t=>{let i=this._table?.highlightIds.indexOf(t);i&&i<0&&this._table?.highlightIds.add(t)})}createWorkFlowStarted(){this._creatingFeature=!0}backFromCreateWorkFlow(){this._creatingFeature=!1}async load(){await this._initModules(),await this._initToolInfos()}render(){let 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",h=this._canShowFullTextSearch();return this._validateActiveActions(),o`<div><calcite-scrim class=${f(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.isMobile&&o`${this._getTableControlRow("header-content")}${this._getActionsEnd("header-actions-end")}`||""}${h&&o`<div class="search-container border-bottom"><calcite-input class=search clearable icon=search @calciteInputChange=${r=>void this._searchTextChanged(r)} .placeholder=${this._searchPlaceHolder} title=${this._searchPlaceHolder??c} type=search ${g(this._searchNode)}></calcite-input></div>`||""}<calcite-loader class=${f(t)} .label=${this._translations.fetchingData} scale=l></calcite-loader><div class=${f(e)} ${g(this.onTableNodeCreate)}></div></calcite-panel></div>${this.isMobile?void 0:o`<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></div>`}async _initModules(){let[e,t,i,s]=await x(["esri/widgets/FeatureTable","esri/core/reactiveUtils","esri/widgets/FeatureTable/support/TableTemplate","esri/rest/support/RelationshipQuery"]);this.FeatureTable=e,this.reactiveUtils=t,this.TableTemplate=i,this.RelationshipQuery=s}async _searchTextChanged(e){this._fullTextSearchInfo.forEach(t=>{t.searchTerm=e.target.value}),this._searchFullText()}async _searchFullText(){let e=[],t=!1;if(this._showOnlySelected)e=this._tempSelectedIds,t=!0;else if(await this._validateActiveEdits([],this.selectedIds))this._clearSelection(),this._tempSelectedIds=[];else return;this._searchExpression&&this._clearSearchDefinitionExpression();let i=[];if(this._fullTextSearchInfo?.length&&this._fullTextSearchInfo[0].searchTerm){let s=this._layer?.createQuery();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])}t&&i?.length&&(this._showOnlySelected=!0,this._table?.highlightIds.addMany(i.reverse())),await new Promise(s=>setTimeout(s,800)),await this._updateAllIds()}_clearSearchDefinitionExpression(){let e=this._layer?.definitionExpression;this._searchExpression&&e&&e?.indexOf(this._searchExpression)>-1&&this._layer&&(e?.indexOf(" AND ("+this._searchExpression)>-1?this._layer.definitionExpression=e.replace(` AND (${this._searchExpression})`,""):this._layer.definitionExpression=e.replace(this._searchExpression,"")),this._searchExpression=""}async _updateSearchDefinitionExpression(e){let t=this._layer?.definitionExpression;if(this._layer)if(e?.length){let i=`objectId in(${e})`;this._layer.definitionExpression=this._searchExpression&&t&&t.includes(this._searchExpression)?t.replace(this._searchExpression,i):t?`${t} AND (${i})`:i,this._searchExpression=i}else this._clearSearchDefinitionExpression()}_canShowFullTextSearch(){return this._layer?.capabilities?.query?.supportsFullTextSearch&&this._layer.indexes.items.filter(e=>e.indexType=="FullText").length>0}_getFullTextSearchInfo(){if(this._fullTextSearchInfo=[],this._layer?.capabilities?.query?.supportsFullTextSearch){let e=this._layer.indexes?.filter(t=>t.indexType=="FullText");if(e?.length){let t=[];e.forEach(s=>{t.push(...s.fields.split(","))});let i=[];t.forEach(s=>{let a=this._layer?.getField(s.trim());a?.alias&&i.push(a.alias)}),this._searchPlaceHolder=this._translations.searchPlaceholder.replace("{{field_names}}",i.join(", ")),this._fullTextSearchInfo.push({onFields:["*"],searchTerm:"",searchType:"prefix"})}}}_getMapLayerPicker(e){let t=this.isMobile?"display-none":"";return o`<div class=${`border-end ${t}`} id=solutions-map-layer-picker-container slot=${e??c}><map-layer-picker appearance=transparent .defaultLayerId=${this.defaultLayerId} display=inline-flex .enabledLayerIds=${this._enabledLayerIds} 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>`}_getActionsEnd(e){let t=this._relatedFeatureTable?this._relatedFeatureTable.layer:this._layer,i=this._relatedFeatureTable||this._table;return o`<div class="display-flex" slot=${e??c}><field-selection .layer=${t} .mapView=${this.mapView} .table=${i}></field-selection>${this.enableShare&&!this.isMobile?this._getShare("share"):void 0}</div>`}_getTableControlRow(e){return o`<div class=${"height-51-px width-full display-flex"} slot=${e??c} ${g(this._toolbar)}>${this._getActionBar()}</div>`}_getActionBar(){return o`<calcite-action-bar class=width-full expand-disabled id=${this._getId("bar")??c} layout=horizontal><calcite-action-group>${this.isMobile?void 0:this._getActions()}</calcite-action-group></calcite-action-bar>`}_getActions(){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,t.toolTip)),e),[])}_validateEnabledActions(){let e=this._getSelectedIds().length,t=["zoom-to-object","pencil","trash","erase","selected-items-filter"];this._toolInfos?.forEach(i=>{i&&t.indexOf(i.icon)>-1&&(i.disabled=i.icon==="pencil"?e<2||e>b:e<1,i.toolTip=i.icon==="pencil"?e>b?this._translations.featureEditLimitNotice:this._translations.editMultiple:i.toolTip)})}_validateActiveActions(){let e=["filter","list-check-all","selected-items-filter"];this._toolInfos?.forEach(t=>{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))})}async _initToolInfos(){let e=this._getSelectedIds().length>0,t=this._relatedFeatureTable?this._relatedFeatureTable.layer.isTable:this._layer?.isTable,i=this.featureSelectionMode==="multiple"&&this._layer?.capabilities?.operations.supportsUpdate,s=this._getSelectedIds().length<2||this._getSelectedIds().length>b,a=!this.mapHidden&&!t,l=!this._relatedFeatureTable&&(!this._layer?.isTable||this._hasFilterExpressions()),h=this._featuresEmpty(),r=this.featureSelectionMode==="single",n=this.enableCSV;if(this._relatedFeatureTable){let _=await this._queryRelatedFeatures();n=_&&Object.keys(_).length>0}let d=[];l&&d.push({active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>this.toggleFilter.emit(),disabled:!1,toolTip:this._translations.filters}),a&&d.push({active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>this._zoom(),disabled:!e,toolTip:this._translations.zoom}),i&&d.push({active:!1,icon:"pencil",indicator:!1,label:this._translations.editMultiple,func:()=>this.editMultipleFeatures.emit(this._getSelectedIds()),disabled:s,toolTip:this._translations.editMultiple}),this._deleteEnabled&&d.push({active:!1,icon:"trash",indicator:!1,label:this._translations.delete,func:()=>this._showDelete(),disabled:!e,isDanger:!0,toolTip:this._translations.delete}),d.push({active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>void this.clearSelection(),disabled:!e,toolTip:this._translations.clearSelection}),this._relatedFeatureTable||d.push({active:!1,icon:"selected-items-filter",indicator:!1,label:this._showOnlySelected?this._translations.showAll:this._translations.showSelected,func:()=>this._toggleShowSelected(),disabled:!e,toolTip:this._showOnlySelected?this._translations.showAll:this._translations.showSelected}),!r&&!this._relatedFeatureTable&&d.push({active:!1,icon:"list-check-all",indicator:!1,func:async()=>await this._selectAll(),label:this._translations.selectAll,disabled:h,toolTip:this._translations.selectAll}),!r&&!this._relatedFeatureTable&&d.push({active:!1,icon:"compare",indicator:!1,func:async()=>await this._switchSelected(),label:this._translations.switchSelected,disabled:h,toolTip:this._translations.switchSelected}),d.push({active:!1,icon:"refresh",indicator:!1,func:()=>void this._refresh(),label:this._translations.refresh,disabled:!1,toolTip:this._translations.refresh}),n&&d.push({active:!1,icon:"export",indicator:!1,func:()=>void this._exportToCSV(),label:this._translations.exportCSV,loading:this._csvExporting,disabled:h,toolTip:this._translations.exportCSV}),this._toolInfos=[...d]}_updateFloorDefinitionExpression(){if(this._floorField&&this._floorLevel){let e=`${this._floorField} = '${this._floorLevel}'`,t=this._layer?.definitionExpression;this._layer&&(this._layer.definitionExpression=t&&this._floorExpression&&t?.indexOf(this._floorExpression)>-1?t.replace(this._floorExpression,e):t?`${t} AND (${e})`:e),this._floorExpression=e}}_featuresEmpty(){return this._allIds?.length===0}_hasFilterExpressions(){let e=[],t=this._layer?.id;return this.mapInfo?.filterConfig?.layerExpressions&&t!==void 0&&(e=this.mapInfo.filterConfig.layerExpressions.filter(i=>i.id===t)),e.length>0}_getAction(e,t,i,s,a,l,h,r){let n=this._layer===void 0?!0:l;return o`<calcite-action .active=${e} appearance=solid .disabled=${n} .icon=${t} .id=${`layer-table-${t}`} .indicator=${i} .label=${s} .loading=${h} @click=${a} text text-enabled><div class="display-flex"><span class="label-override padding-start-1-4">${s}</span></div></calcite-action>${this._getToolTip("auto",`layer-table-${t}`,r)}`}_showDelete(){this.showDelete.emit({ids:this._getIds()})}_getShare(e){return this.mapView&&o`<div id=${this._getId(e)??c}><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} ${g(this._shareNode)}></instant-apps-social-share>${this._getToolTip("bottom",e,this._translations.share)}</div>`||""}_updateShareUrl(){let e=this._shareNode.value?.shareUrl;if(!e)return;let t=new URL(e);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.selectedRelatedIds?.length>0&&this._relatedFeatureTable?.layer?.id&&(t.searchParams.set("oid",this.selectedRelatedIds.join(",")),t.searchParams.set("layer",this._relatedFeatureTable?.layer?.id.toString())),this._shareNode.value&&(this._shareNode.value.autoUpdateShareUrl=!1,this._shareNode.value.shareUrl=t.href)}_getToolTip(e,t,i){return o`<calcite-tooltip .placement=${e} .referenceElement=${t}><span>${i}</span></calcite-tooltip>`}_getId(e){return`solutions-action-${e}`}_getDangerAction(e,t,i,s){let a=this._layer===void 0?!0:s;return o`<div class="display-flex" id=${this._getId(e)??c}>${o`<calcite-action appearance=solid .disabled=${a} .id=${`layer-table-${e}`} @click=${i} text><calcite-icon class="danger-icon-color" .icon=${e} scale=s></calcite-icon><span class="label-override padding-start-1-4 danger-label-color">${t}</span></calcite-action>`}${this._getToolTip("bottom",`layer-table-${e}`,t)}</div>`}_getIds(){let e=this._relatedFeatureTable??this._table;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()??[]}onTableNodeCreate(e){this._tableNode=e}async _getTable(e,t){this._layer&&(await this._layer.when(()=>{this._table=this.FeatureTable&&new this.FeatureTable({autoRefreshEnabled:this.enableAutoRefresh,layer:this._layer,view:this.mapView,columnReorderingEnabled:this.enableColumnReorder,relatedRecordsEnabled:!0,editingEnabled:this._editEnabled&&this.enableInlineEdit,highlightEnabled:!1,multiSortEnabled:!1,attachmentsEnabled:this.hasAttachmentsEnabled(this._layer),visibleElements:{columnDescriptions:!1,header:!1,menu:!1,progress:!1},tableTemplate:{columnTemplates:t},container:e})}),await this._table?.when(()=>{this._table?.viewModel.addHandles(this._table.highlightIds.on("change",i=>{this._handleOnChange(i)})),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=>{this._size=i})),this.reactiveUtils?.watch(()=>this._table?.relatedTable,async i=>{if(i){if(i.rowHighlightIds.length){let a={added:[i.rowHighlightIds.getItemAt(0)],removed:[]};this._handleOnChange(a)}let s=i.layer;if(this._checkEditEnabled(s),i.editingEnabled=this._editEnabled&&this.enableInlineEdit,i.attachmentsEnabled=this.hasAttachmentsEnabled(s),i.relatedRecordsEnabled=!0,this._relatedFeatureTable=i,typeof i.layer?.id=="string"&&i.layer?.fields){let a=i.layer.popupTemplate?.fieldInfos,l=this._getColumnTemplates(i.layer.id,i.layer.fields,a);this._relatedFeatureTable.tableTemplate=this.TableTemplate&&new this.TableTemplate({columnTemplates:l})}i.highlightIds.on("change",a=>{this._handleRelatedRecordsChange(a)})}else{this.selectedRelatedIds=[],this._relatedFeatureTable=void 0;let s=this._layer;this._refresh(),s&&this.relatedRecordToggled.emit(s),this._finishOnChange()}await this._initToolInfos()})}))}async _handleRelatedRecordsChange(e){await this._handleOnChange(e),this._updateShareUrl()}hasAttachmentsEnabled(e){if(!e?.capabilities)return!1;let{capabilities:{data:{supportsAttachment:t},operations:{supportsQueryAttachments:i}}}=e;return t&&i}async _handleOnChange(e){if(!await this._validateActiveEdits([...e.added],[...e.removed]))return;let t=[...this._getIds()],i=this._getSelectedLayer(t);this._relatedFeatureTable&&this._table?.highlightIds.getItemAt(0)!==this.selectedIds[0]&&(i=this._layer,await this._initToolInfos()),i&&this.relatedRecordToggled.emit(i),this.featureSelectionMode==="single"&&(this._relatedFeatureTable&&t.length>1?(this._relatedFeatureTable.highlightIds.remove(t[0]),t.shift()):t.length>1&&!this._selectAllActive&&(this._table?.highlightIds.remove(t[0]),t.shift())),!this._relatedFeatureTable||this._relatedFeatureTable&&this._table?.highlightIds.getItemAt(0)!==this.selectedIds[0]?(this.selectedRelatedIds=[],this.selectedIds=t.reverse(),this._tempSelectedIds=[...this.selectedIds],this._highlightFeatures(this.selectedIds[0])):this.selectedRelatedIds=t.reverse(),this._finishOnChange()}async _validateActiveEdits(e,t){let i=!0;if(this._editor&&!this._skipEditCheck){if(this._hasPendingEdits()){let s=!1;try{this._editor.viewModel.activeWorkflow&&await this._editor.viewModel.activeWorkflow.cancel({force:!1})}catch(a){s=a?.name==="workflow:cancel-denied"}if(s){let a=this._relatedFeatureTable&&this._relatedFeatureTable.highlightIds.length>0?this._relatedFeatureTable:this._table;i=!1,this._skipEditCheck=!0,e.length>0?a?.highlightIds.removeMany(e):t.length>0&&a?.highlightIds.addMany(t)}}}else i=!this._skipEditCheck,this._skipEditCheck=!1;return this._shouldUpdateTableOnExtentChange=i,i}_hasPendingEdits(){let e=this._editor?.viewModel?.hasPendingEdits,t=this._editor?.activeWorkflow?.activeWorkflow?.hasPendingEdits;return e||t}_finishOnChange(){this._showOnlySelected&&!this._relatedFeatureTable&&(this._table&&this._getSelectedIds().length>0?this._table.filterBySelectionEnabled=!0:this._toggleShowSelected());let e=this._getSelectedIds();setTimeout(()=>{this.featureSelectionChange.emit(e)},50)}tempHighlightOnHover(e){if(this._removeTempHighlight(),this._selectedLayerView){let t=e.feature;this._temporaryFeatureHandle=this._selectedLayerView?.highlight([t],{name:"temporary"})}}_removeTempHighlight(){this._temporaryFeatureHandle&&this._temporaryFeatureHandle.remove()}_highlightFeatures(e){if(this._clearHighlights(),this.selectedIds.length>0&&this._selectedLayerView&&(this._currentFeatureHighlightHandle=this._selectedLayerView?.highlight([e],{name:"current-selection"}),this.selectedIds.length>1)){let t=this.selectedIds.filter(i=>i!==e);this._defaultFeaturesHandle=this._selectedLayerView?.highlight(t,{name:"default"})}}_clearHighlights(){this._removeTempHighlight(),this._currentFeatureHighlightHandle&&this._currentFeatureHighlightHandle.remove(),this._defaultFeaturesHandle&&this._defaultFeaturesHandle.remove()}_resetColumnTemplates(){if(this._layer){let e=this._layer.popupTemplate?.fieldInfos,t=this._getColumnTemplates(this._layer.id,this._layer.fields,e);t?.length===0?this._tableNode?.classList.add("display-none"):this._tableNode?.classList.remove("display-none");let i=this._table?.tableTemplate?.columnTemplates,s=i&&t&&i.length!==t.length||t?.some((a,l)=>i&&i[l]?JSON.stringify(i[l])!==JSON.stringify(a):!1);if(this._table&&t&&(s||!this._columnsInfo)){this._table.tableTemplate=this.TableTemplate&&new this.TableTemplate({columnTemplates:t});let a=t.map(l=>l.fieldName);this._initColumnsInfo(a)}}}async _resetTable(){if(this._loaded=!1,this._clearSelection(),this._allIds=await this.queryAllIds(),!this._table&&this._layer){let e=this._layer.popupTemplate?.fieldInfos,t=this._getColumnTemplates(this._layer.id,this._layer.fields,e);this._tableNode&&await this._getTable(this._tableNode,t)}else this._table&&(this._table.view=this.mapView,this._table.layer=this._layer);await this._initLayerRefresh(),this._checkEditEnabled(this._layer),this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit,this._table.attachmentsEnabled=this.hasAttachmentsEnabled(this._layer),this._table.relatedRecordsEnabled=!0,await this._table.when(),setTimeout(()=>{this._loaded||this.finishLoading()},1e3),await this.reactiveUtils?.once(()=>this._table?.state==="loaded").then(async()=>{await this.finishLoading()}))}async finishLoading(){try{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(e=>{this._tableNode&&!this._tableNode.classList.contains(e)&&this._tableNode.classList.add(e)})}catch(e){console.log(e)}}async _initLayerRefresh(){this._refreshHandle&&this._refreshHandle.remove(),this._layer&&(this._refreshHandle=this._layer.on("refresh",e=>{e.dataChanged&&this._updateAllIds()}))}async _updateAllIds(){let e=await this.queryAllIds(),t=this.selectedIds.filter(i=>this._allIds.indexOf(i)>-1);(JSON.stringify(e)!==JSON.stringify(this._allIds)||JSON.stringify(this.selectedIds)!==JSON.stringify(t))&&(this._allIds=e,this.selectedIds=t,await this._refresh())}async _handleDefaults(){if(!this._defaultOidHonored&&this.defaultOid?.length>0&&this.defaultOid[0]>-1&&this._table&&(await this._selectDefaultFeature(this.defaultOid),this._defaultOidHonored=!0,this.defaultOid=[],this._showOnlySelected=!1,this._toggleShowSelected()),!this._defaultGlobalIdHonored&&this.defaultGlobalId&&this.defaultGlobalId?.length>0&&this._table&&this._layer){let e=await S(this.defaultGlobalId,this._layer),t=e?.length>0?e.map(i=>Number(i.getObjectId())):void 0;t&&await this._selectDefaultFeature(t),this._defaultGlobalIdHonored=!0,this.defaultGlobalId=[],this._showOnlySelected=!1,this._toggleShowSelected()}}_initColumnsInfo(e){let t=this._table?.columns.reduce((s,a)=>((!e||e?.indexOf(a.name)>-1)&&(s[a.name]=!a.hidden),s),{}),i=this._table?.columns.map(s=>s.name);(e&&i?e.filter(s=>i.indexOf(s)<0):[]).forEach(s=>{t[s]=!0}),this._columnsInfo=e?e.reduce((s,a)=>(s[a]=t[a],s),{}):t}async _selectDefaultFeature(e){e.length>0&&this._table?.highlightIds.addMany(e)}_checkEditEnabled(e){this._editEnabled=!!(e?.editingEnabled&&e?.capabilities?.operations.supportsUpdate),this._deleteEnabled=!!(e?.editingEnabled&&e?.capabilities?.operations.supportsDelete)}async _sortTable(){let e=this._layer?.objectIdField,t="desc",i,s=this.mapInfo?.layerOptions?.layers,a=this._layer?.id;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(()=>{e&&this._table?.sortColumn(e,t)}))}async _handleFilterListReset(){this._filterActive=!1,this._updateShareUrl(),await this._searchFullText()}async _handleFilterUpdate(e){if(this._floorExpression&&this._layer){let t=this._layer.definitionExpression,i=new RegExp(`${this._floorField} = ['].+[']`,"gm");this._layer.definitionExpression=t&&this._floorField&&t.indexOf(`${this._floorField} = '`)>-1?t.replace(i,this._floorExpression):t?`${t} AND (${this._floorExpression})`:this._floorExpression}this._filterActive=e,this._updateShareUrl(),await this._searchFullText()}_handleTableOnMapExtent(){this._table&&(this._filterByExtentHandle=this.reactiveUtils?.when(()=>this.mapView?.stationary,async()=>{if(this._shouldUpdateTableOnExtentChange&&this.appLayout==="splitView"){if(await new Promise(e=>setTimeout(e,800)),this._table&&this.mapView){this._table.filterGeometry=this.mapView.extent;let e={geometry:this.mapView.extent},t=this._layer&&await this._layer.queryObjectIds(e),i=this.selectedIds.filter(a=>!t?.includes(a)),s=this._outOFExtentOids.filter(a=>t?.includes(a));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=[...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)))}this._allIds=await this.queryAllIds()}},{initial:!0}))}async _closeFilter(){this._allIds=await this.queryAllIds()}async queryAllIds(){if(this._layer){let e=this._layer.createQuery();return e.geometry=this._filterByExtentHandle&&this.mapView?this.mapView.extent:null,e.where=this._layer.definitionExpression||"1=1",await this._layer.queryObjectIds(e)}else return[]}async _mapClicked(e){let t={include:this._layer},i=await this.mapView?.hitTest(e.screenPoint,t);if(i&&i.results.length>0){let s=i.results;if(this.featureSelectionMode==="single"){this._table?.highlightIds.removeAll();let a=s[0].graphic.getObjectId();if(a){let l=this._table?.highlightIds.indexOf(a);l!==void 0&&l<0&&this._table?.highlightIds.add(a)}}else s.forEach(a=>{let l=Number(a.graphic.getObjectId()),h=this._table?.highlightIds.indexOf(l);h&&h<0&&l&&this._table?.highlightIds.add(l)});this._showOnlySelected&&this._table&&(this._table.filterBySelectionEnabled=!0)}else await this.clearSelection()}async _selectAll(){let e=this._allIds,t=e.filter(i=>this.selectedIds.indexOf(i)<0);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}_toggleShowSelected(){this._showOnlySelected=!this._showOnlySelected,this._table&&(this._table.filterBySelectionEnabled=this._showOnlySelected)}_clearSelection(){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()}async _switchSelected(){let e=[...this.selectedIds],t=this._allIds.reduce((i,s)=>(e.indexOf(s)<0&&i.push(s),i),[]).sort((i,s)=>i-s);await this._validateActiveEdits(t,e)&&this._table?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(t),this.selectedIds=t,this._finishOnChange()):this._skipEditCheck=!1}async _exportToCSV(){let e=this._relatedFeatureTable?this._relatedFeatureTable.layer:this._layer;if(!e)return;let t={},i=this._getIds();if(this._relatedFeatureTable?.tableParent&&this._relatedFeatureTable.rowHighlightIds.length===0){let l=this._relatedFeatureTable.tableParent.highlightIds?.getItemAt(0);if(l!==void 0){let h=await this._queryRelatedFeatures(),r=[];h&&h[l]?.features&&(h[l].features.forEach(n=>{n.attributes&&r.push(n.attributes[e.objectIdField])}),i=r.length>0?r:[])}}t[e.id]={selectionSetNames:[e.title||""],ids:i,layer:e};let s=this._relatedFeatureTable??this._table;if(!s)return;let a=s&&s.columns.toArray().reduce((l,h)=>{if(!h.hidden){let r=h?.name||h?.fieldName;r&&l.push(r.toLocaleLowerCase())}return l},[]);this._updateToolInfoLoading("export",!0),this._csvExporting=!0,this.mapView?.map&&await A(this.mapView.map,t,!1,!1,!0,a,!0,!0),this._updateToolInfoLoading("export",!1),this._csvExporting=!1}async _queryRelatedFeatures(){let 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(l=>i.relationships?.some(h=>h.id===l.id)),a=this.RelationshipQuery&&new this.RelationshipQuery({objectIds:[t],outFields:["*"],relationshipId:s?.id});return t&&a&&await i.queryRelatedFeatures(a).catch(async l=>{console.error(l)})}_updateToolInfoLoading(e,t){this._toolInfos.some(i=>i?.icon===e?(i.loading=t,!0):!1)}async _refresh(){if(await this._validateActiveEdits([],this.selectedIds)){this._table&&await this._table.refresh(),this._relatedFeatureTable&&await this._relatedFeatureTable.refresh(),this._allIds=await this.queryAllIds();let e=this._getSelectedLayer(this.selectedRelatedIds);e&&this.relatedRecordToggled.emit(e);let t=this._getSelectedIds();this.featureSelectionChange.emit(t)}}_getSelectedIds(){let e;return this._relatedFeatureTable?this.selectedRelatedIds.length>0?e=this.selectedRelatedIds:e=this._relatedFeatureTable.tableParent?.highlightIds.toArray()??[]:e=this.selectedIds,e}_getSelectedLayer(e){let t;return this._relatedFeatureTable?e.length>0?t=this._relatedFeatureTable.layer:t=this._relatedFeatureTable.tableParent?.layer:t=this._layer,t}async _clearSearchText(){if(this._searchNode.value){this._searchNode.value.value="";let e={target:{value:""}};await this._searchTextChanged(e)}}async _zoom(){this._layer&&this.mapView&&await y(this.selectedIds,this._selectedLayerView,this.mapView,!0,void 0,this.zoomToScale)}async _layerSelectionChanged(e){let t=e.detail[0];if(t!==this._layer?.id||this._featuresEmpty()){this._fetchingData=!0,await this._clearSearchText();let i=this.mapView&&await O(this.mapView,t);i&&await i.when(async()=>{this._selectedLayerView=!i.isTable&&this.mapView?await F(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()})}this._creatingFeature=!1,this._fetchingData=!1}_getColumnTemplates(e,t,i){let s;this.mapInfo?.layerOptions?.layers.some(n=>n.id===e?(s=n,!0):!1);let a=this._layer?.attributeTableTemplate?.elements,l=[];a?.length>0&&this.honorMapFieldSettings&&(l=a.map(n=>n.fieldName));let h=s?.fields&&s?.fieldOrder?s.fieldOrder.filter(n=>s?.fields&&s.fields.indexOf(n)>-1):l.length>0?l:void 0,r;return t&&(r=t.reduce((n,d)=>{let _={type:"field",fieldName:d.name,label:this.getFieldLabel(d,i),menuConfig:this._getMenuConfig(d.name)};return s&&s.fields&&s?.fields?.length>0?s.fields.indexOf(d.name)>-1&&n.push(_):l.length>0?l.indexOf(d.name)>-1&&n.push(_):n.push(_),n},[])),r?h?r?.sort(this._sortFields.bind(this,h)):r:[]}getFieldLabel(e,t){let i=e.alias?e.alias:e.name;return t?.some(s=>s.fieldName===e.name?(i=s.label,!0):!1),i||e.name}_sortFields(e,t,i){return e?.indexOf(t.fieldName)-e.indexOf(i.fieldName)}_getMenuConfig(e){return{items:[{label:this._translations.hideField,icon:"view-hide",autoCloseMenu:!0,clickFunction:()=>{this._handleHideClick(e)}}]}}_handleHideClick(e){this._columnsInfo&&this._table&&(this._columnsInfo[e]=!1,this._table.hideColumn(e),this._table.tableTemplate&&this._table.tableTemplate.columnTemplates.forEach(t=>{t.fieldName===e&&(t.visible=!1)}))}};T("layer-table",m);export{m as LayerTable};