@esri/solutions-components 1.1.0-next.20250918 → 1.1.0-next.20250919

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 (517) hide show
  1. package/dist/cdn/{EXG2LWFP.js → 23PYPGNV.js} +2 -2
  2. package/dist/cdn/{TMHDYLCU.js → 25RSKNFE.js} +1 -1
  3. package/dist/cdn/{ZQBEJ3MF.js → 26MPYGIG.js} +2 -2
  4. package/dist/cdn/{TS2S5UD5.js → 2CYK7INL.js} +2 -2
  5. package/dist/cdn/2FRHPWIV.js +4 -0
  6. package/dist/cdn/{YWEGWOL6.js → 2FZTXLJF.js} +2 -2
  7. package/dist/cdn/{SBVCJO27.js → 2HHL5GDO.js} +2 -2
  8. package/dist/cdn/{AFXXIHHB.js → 2IATHBU2.js} +2 -2
  9. package/dist/cdn/{C3UFW4SD.js → 2JLY6GXH.js} +2 -2
  10. package/dist/cdn/{ACHXDMP2.js → 2RFUKAEH.js} +2 -2
  11. package/dist/cdn/{WUCKWIIK.js → 2SWWWDL6.js} +2 -2
  12. package/dist/cdn/{7CGSADF3.js → 2THMEY2A.js} +1 -1
  13. package/dist/cdn/{5M5WXY5D.js → 2UL3FVHJ.js} +2 -2
  14. package/dist/cdn/{4RG432JP.js → 2ZGO34ET.js} +2 -2
  15. package/dist/cdn/{MH67CIKF.js → 32ZWYM5U.js} +2 -2
  16. package/dist/cdn/{DP3BAPZ3.js → 3IKWHSM3.js} +1 -1
  17. package/dist/cdn/{TOATMX5G.js → 3LO2HODF.js} +2 -2
  18. package/dist/cdn/{TTOT3E4E.js → 3R3QLLTE.js} +2 -2
  19. package/dist/cdn/{WSVDVGIR.js → 3SQVIDB5.js} +1 -1
  20. package/dist/cdn/{TAGQ3DKZ.js → 3SYAT77C.js} +2 -2
  21. package/dist/cdn/{RM52RVBY.js → 432VI57E.js} +2 -2
  22. package/dist/cdn/{TOHRIUAY.js → 47YJBMJV.js} +2 -2
  23. package/dist/cdn/4AW7FNWE.js +4 -0
  24. package/dist/cdn/{K6NI3MV5.js → 4C2TWNV7.js} +2 -2
  25. package/dist/cdn/{HRBNLS4P.js → 4IAWWLSP.js} +2 -2
  26. package/dist/cdn/{2JHXJXBE.js → 4IQHWCQJ.js} +2 -2
  27. package/dist/cdn/{7APNF3CK.js → 4JSDFSS5.js} +2 -2
  28. package/dist/cdn/{DLOVBBP3.js → 4QU2JMD2.js} +2 -2
  29. package/dist/cdn/{WKKNCL3G.js → 4QVGUD3F.js} +2 -2
  30. package/dist/cdn/{SP6MBBO5.js → 4U5X6NU6.js} +2 -2
  31. package/dist/cdn/{C5S4VCT6.js → 4VCJMFAX.js} +2 -2
  32. package/dist/cdn/{WSZ3RAHC.js → 55LKJ2ER.js} +2 -2
  33. package/dist/cdn/{4G7JHOBE.js → 562AZEPG.js} +2 -2
  34. package/dist/cdn/{Q35FCICJ.js → 56UNA6ID.js} +2 -2
  35. package/dist/cdn/{FIFPIYRS.js → 5AQUM4X3.js} +2 -2
  36. package/dist/cdn/{RG7GGCLZ.js → 5H5VNAXA.js} +2 -2
  37. package/dist/cdn/{WTLKOIXV.js → 5HUKHE2P.js} +2 -2
  38. package/dist/cdn/{LQIO7OQK.js → 5JGZBRBO.js} +2 -2
  39. package/dist/cdn/{4PI3HRJ6.js → 5K55CNJH.js} +1 -1
  40. package/dist/cdn/{QZ7TGTUR.js → 5LJN7KVI.js} +2 -2
  41. package/dist/cdn/{XFXQJODU.js → 5NIHP2K2.js} +1 -1
  42. package/dist/cdn/{Y3TT3XZT.js → 5OZKEGRZ.js} +2 -2
  43. package/dist/cdn/{7PTFDMWD.js → 5QVK2VWY.js} +2 -2
  44. package/dist/cdn/{GDGFGQVP.js → 5TDJQGLS.js} +2 -2
  45. package/dist/cdn/{QCYE43LA.js → 5UQQ2RDV.js} +2 -2
  46. package/dist/cdn/{JHQ6T7YQ.js → 5YP4AERJ.js} +2 -2
  47. package/dist/cdn/{XCVUU4D2.js → 5YPAOQZ6.js} +1 -1
  48. package/dist/cdn/{HJALSQ2B.js → 64QGVYDL.js} +2 -2
  49. package/dist/cdn/{7TXL6ZXS.js → 6EP7EYXF.js} +2 -2
  50. package/dist/cdn/{NB7W646W.js → 6Q2D4LH4.js} +2 -2
  51. package/dist/cdn/{QSVVVRGK.js → 6U7GCOZ5.js} +2 -2
  52. package/dist/cdn/6UPSEFSF.js +18 -0
  53. package/dist/cdn/{TQGSPNPH.js → 6YNWD75J.js} +2 -2
  54. package/dist/cdn/{E7CWH6TZ.js → 72DHPFOS.js} +2 -2
  55. package/dist/cdn/{YJVNB2M3.js → 74AF7Q4V.js} +2 -2
  56. package/dist/cdn/7E7MOB3V.js +4 -0
  57. package/dist/cdn/{GZIJS2GU.js → 7EVMSXGI.js} +1 -1
  58. package/dist/cdn/{C6U6B3CU.js → 7MAKRCEP.js} +2 -2
  59. package/dist/cdn/{V4T2ETXO.js → 7POFPYPL.js} +2 -2
  60. package/dist/cdn/{MNBX566Z.js → 7WCO6UHS.js} +3 -3
  61. package/dist/cdn/{E3KVGF4L.js → 7Z73FBIK.js} +2 -2
  62. package/dist/cdn/{TZM4KKKJ.js → 7Z7DPYIV.js} +2 -2
  63. package/dist/cdn/{5L6DT27J.js → ADNYNIMK.js} +2 -2
  64. package/dist/cdn/{M2Z3HXZQ.js → AE6GZGAF.js} +2 -2
  65. package/dist/cdn/{I4W4K4MF.js → AF4N3OIS.js} +2 -2
  66. package/dist/cdn/{4ZLU7JSS.js → AFOJQ2IE.js} +2 -2
  67. package/dist/cdn/{UFZWSZKP.js → AJ5SJVVJ.js} +1 -1
  68. package/dist/cdn/{PIB7AAJI.js → ALVRVNPS.js} +2 -2
  69. package/dist/cdn/{KBEGFMPW.js → AN4LWKCH.js} +2 -2
  70. package/dist/cdn/{ZVCEA3AV.js → ARWKSZYZ.js} +2 -2
  71. package/dist/cdn/{MIQMPLJK.js → ATEIJZEP.js} +1 -1
  72. package/dist/cdn/{2UJVL4QQ.js → AUII4R6E.js} +2 -2
  73. package/dist/cdn/{2LYCBURA.js → AXIZYYOD.js} +1 -1
  74. package/dist/cdn/{W7KH3DOF.js → B2T3TKPT.js} +2 -2
  75. package/dist/cdn/{2CM55YDX.js → B5XKFTAI.js} +2 -2
  76. package/dist/cdn/{A2G2CVO3.js → BANPC5UN.js} +2 -2
  77. package/dist/cdn/BASOFVFN.js +18 -0
  78. package/dist/cdn/{VGPUNQ46.js → BB6FNZS2.js} +2 -2
  79. package/dist/cdn/{DXU2MDXQ.js → BIE7H7F2.js} +2 -2
  80. package/dist/cdn/{IXDPZDG7.js → BJ5ZJE23.js} +1 -1
  81. package/dist/cdn/{EL3AZ2TE.js → BU4X4WFA.js} +2 -2
  82. package/dist/cdn/{CNOZUDIC.js → CBE2FWWU.js} +2 -2
  83. package/dist/cdn/{XJHXUHBP.js → CC2LNAHG.js} +1 -1
  84. package/dist/cdn/{FJ3JMDO3.js → CCYIGVA2.js} +2 -2
  85. package/dist/cdn/{4YVCMLLQ.js → CH3ZEWSV.js} +2 -2
  86. package/dist/cdn/{NXSAOV4D.js → CI66WKOX.js} +2 -2
  87. package/dist/cdn/{3VFOCUIY.js → CJSVQ6LG.js} +2 -2
  88. package/dist/cdn/{SBULVRIS.js → CT5VPZ32.js} +2 -2
  89. package/dist/cdn/{FHJVCNBC.js → CTLPAA4F.js} +2 -2
  90. package/dist/cdn/{IJOXGPSG.js → CVEXPD4L.js} +2 -2
  91. package/dist/cdn/{FY7BQW5O.js → CZ3DHUQ3.js} +2 -2
  92. package/dist/cdn/{CF2GDYJF.js → D2I2ESY7.js} +3 -3
  93. package/dist/cdn/{W7B5L4CK.js → D3DQOXP7.js} +1 -1
  94. package/dist/cdn/{CAYGVNCE.js → D5EZNHFT.js} +2 -2
  95. package/dist/cdn/{GYVJCGWT.js → D6ZXJZNV.js} +2 -2
  96. package/dist/cdn/{NAXWZGD6.js → DA7EQQQU.js} +2 -2
  97. package/dist/cdn/{42FLSICQ.js → DCUZHEWF.js} +2 -2
  98. package/dist/cdn/{AORJT52X.js → DENX5YNF.js} +1 -1
  99. package/dist/cdn/{NX4AX3KO.js → DG3NCHON.js} +2 -2
  100. package/dist/cdn/{L7GVW7QX.js → DSTJEDHH.js} +2 -2
  101. package/dist/cdn/{UQSQ4VHS.js → E5GL7ZOO.js} +2 -2
  102. package/dist/cdn/{VIUPYQTS.js → E6QXIUK2.js} +2 -2
  103. package/dist/cdn/{YYGOSYSC.js → E7LSVQOS.js} +2 -2
  104. package/dist/cdn/{5OB5A7JZ.js → E7VUQI3W.js} +2 -2
  105. package/dist/cdn/{UW6BLDIL.js → EA7EXXPZ.js} +2 -2
  106. package/dist/cdn/{23S6EEJJ.js → EB3NEWYB.js} +2 -2
  107. package/dist/cdn/{NOZZ6JIN.js → EBWLV674.js} +2 -2
  108. package/dist/cdn/{ZJ6Q46KE.js → EI7LNKKF.js} +2 -2
  109. package/dist/cdn/{WEJZMSBP.js → EIBMPHPY.js} +1 -1
  110. package/dist/cdn/{JMNMXQC2.js → ESSLZVVZ.js} +2 -2
  111. package/dist/cdn/{MHKLL3MA.js → EU6EU6DN.js} +2 -2
  112. package/dist/cdn/{KBETDJ3V.js → EW5FRZQQ.js} +2 -2
  113. package/dist/cdn/{I544OLET.js → FA4AWNDK.js} +2 -2
  114. package/dist/cdn/{C7RBG54V.js → FE3NYFDU.js} +2 -2
  115. package/dist/cdn/{BZ4VVHFA.js → FE6WEO2D.js} +2 -2
  116. package/dist/cdn/{E2VWNKDB.js → FNFPOYOS.js} +2 -2
  117. package/dist/cdn/{CFXAWTUK.js → FNL2JJQX.js} +2 -2
  118. package/dist/cdn/{BCB4CHS5.js → FPUFZF74.js} +2 -2
  119. package/dist/cdn/{RWNIACAM.js → FQ5GITBB.js} +2 -2
  120. package/dist/cdn/{OK2VUH32.js → FQRFXUNP.js} +2 -2
  121. package/dist/cdn/{MC2YIBML.js → FRAOXURA.js} +2 -2
  122. package/dist/cdn/{7MPWUI3A.js → FRWWQJ2M.js} +2 -2
  123. package/dist/cdn/{I6QPTEL4.js → FT3M26O4.js} +2 -2
  124. package/dist/cdn/{I2JGJUCH.js → FU4RJFYP.js} +2 -2
  125. package/dist/cdn/{F7FYEDQY.js → FVOE74BK.js} +2 -2
  126. package/dist/cdn/{MYHIWH5I.js → FXUBY7ZI.js} +1 -1
  127. package/dist/cdn/{6TW6R4II.js → G3MLFCP4.js} +2 -2
  128. package/dist/cdn/{2KXD4HDZ.js → G7SMBZCG.js} +2 -2
  129. package/dist/cdn/GDU5C2F2.js +18 -0
  130. package/dist/cdn/{CB643KCV.js → GEMXWNPC.js} +2 -2
  131. package/dist/cdn/{BHOGCHDC.js → GG5SR2DN.js} +2 -2
  132. package/dist/cdn/{CYT3IRRK.js → GMP3K42J.js} +1 -1
  133. package/dist/cdn/{NTUGXWFS.js → GOWHF3XU.js} +2 -2
  134. package/dist/cdn/{L642BNGD.js → GQ4HJK47.js} +2 -2
  135. package/dist/cdn/{ZQVCE55H.js → GS2ZMY5L.js} +2 -2
  136. package/dist/cdn/{PY3L2YRP.js → GUCS3IQJ.js} +1 -1
  137. package/dist/cdn/{TNE2A2UZ.js → H7TNBG6I.js} +2 -2
  138. package/dist/cdn/{6TP52DHM.js → HAUOB7H3.js} +2 -2
  139. package/dist/cdn/{YTSY5IPE.js → HBIOS5LM.js} +2 -2
  140. package/dist/cdn/{7AFU26ST.js → HC6RX3Q6.js} +2 -2
  141. package/dist/cdn/{6JHAGIGY.js → HEA4GVJW.js} +2 -2
  142. package/dist/cdn/HEKH6UA4.js +18 -0
  143. package/dist/cdn/HINOYDAA.js +4 -0
  144. package/dist/cdn/{RN7COLOT.js → HJW6V57X.js} +2 -2
  145. package/dist/cdn/{GIMBZWRY.js → HN3XNEVJ.js} +2 -2
  146. package/dist/cdn/{GXEJURTW.js → HNF32GWL.js} +2 -2
  147. package/dist/cdn/{AD7JQFFW.js → HNQV5CFC.js} +2 -2
  148. package/dist/cdn/{Z6D7ZWHG.js → HOSXLV5P.js} +2 -2
  149. package/dist/cdn/{YAP4GEUM.js → HPDRWYXH.js} +2 -2
  150. package/dist/cdn/{DOI6UXL3.js → HXCLPF67.js} +1 -1
  151. package/dist/cdn/{BODQC5VO.js → HXQHIZRM.js} +2 -2
  152. package/dist/cdn/{7NFNHDZW.js → HYFTYDHW.js} +2 -2
  153. package/dist/cdn/{EGXFDWON.js → HYG2GVSK.js} +2 -2
  154. package/dist/cdn/{7N3YHDOZ.js → HZ3XYDCO.js} +2 -2
  155. package/dist/cdn/{BJO4PB2J.js → HZPUJDQL.js} +2 -2
  156. package/dist/cdn/{MYZBNHTG.js → I3IEGFQU.js} +2 -2
  157. package/dist/cdn/{KR2KJPAN.js → I4KIQZD5.js} +2 -2
  158. package/dist/cdn/{43HS5FLJ.js → IFFNZMC4.js} +2 -2
  159. package/dist/cdn/IHMGQ7TE.js +4 -0
  160. package/dist/cdn/{5GKUSQ6E.js → IQ5TNSK7.js} +2 -2
  161. package/dist/cdn/{IOQBPAW4.js → J753SYSS.js} +2 -2
  162. package/dist/cdn/{CTBD64ZT.js → JAWGITGA.js} +2 -2
  163. package/dist/cdn/{RHFEB5P3.js → JAWSSA66.js} +2 -2
  164. package/dist/cdn/{IKG4ESDZ.js → JG7WE5VY.js} +2 -2
  165. package/dist/cdn/{HYXUBDTL.js → JHFT7ED3.js} +2 -2
  166. package/dist/cdn/JJEPRKG5.js +18 -0
  167. package/dist/cdn/{5KFT2SWV.js → JNRRGIAL.js} +2 -2
  168. package/dist/cdn/{M5KF2LTL.js → K23NB7A3.js} +2 -2
  169. package/dist/cdn/{OG4GTXKF.js → KAVFVYGQ.js} +2 -2
  170. package/dist/cdn/{LO5JM2WU.js → KCOXJNV4.js} +2 -2
  171. package/dist/cdn/{S47ZMQFF.js → KE6H3BHJ.js} +2 -2
  172. package/dist/cdn/{H5MLZBXO.js → KELWC65W.js} +2 -2
  173. package/dist/cdn/{DGJMED3Y.js → KETZORZX.js} +2 -2
  174. package/dist/cdn/KIXKAXP2.js +4 -0
  175. package/dist/cdn/{6KE5L5X3.js → KPLHATSJ.js} +2 -2
  176. package/dist/cdn/{RFLYSZJY.js → KTFGWGKB.js} +2 -2
  177. package/dist/cdn/{QH2EQ6AB.js → KXIJTBOH.js} +2 -2
  178. package/dist/cdn/{UYXSHQJ6.js → L26VEW5I.js} +2 -2
  179. package/dist/cdn/L4NNDOQH.js +18 -0
  180. package/dist/cdn/{5RKIZ47W.js → L5NKIU4P.js} +2 -2
  181. package/dist/cdn/{DSTTPTV5.js → LA5337YO.js} +2 -2
  182. package/dist/cdn/LD2K4YDV.js +18 -0
  183. package/dist/cdn/{UP4YECDB.js → LG3XRLMB.js} +2 -2
  184. package/dist/cdn/{JE3Y33VM.js → LK7VF7MT.js} +2 -2
  185. package/dist/cdn/{PRQ3BN6D.js → LNY7QBOX.js} +2 -2
  186. package/dist/cdn/{ULS5MVPL.js → LSANVT5Q.js} +2 -2
  187. package/dist/cdn/{KWX75IDR.js → LWUXNH2Y.js} +2 -2
  188. package/dist/cdn/LY2B7R4M.js +18 -0
  189. package/dist/cdn/LYEKZJKW.js +18 -0
  190. package/dist/cdn/{OS2GJMH7.js → MCTZ4C5W.js} +2 -2
  191. package/dist/cdn/{YTDCQH3V.js → MHRZJSSA.js} +2 -2
  192. package/dist/cdn/{3WX42QWG.js → MMXXIBS5.js} +2 -2
  193. package/dist/cdn/{M5AP2JG7.js → MO6MKYJW.js} +2 -2
  194. package/dist/cdn/{PNFPRYIT.js → MQ7EBB2U.js} +2 -2
  195. package/dist/cdn/{4FXJXLF3.js → MWENB3XH.js} +1 -1
  196. package/dist/cdn/{57BWNUQN.js → MWUM2627.js} +2 -2
  197. package/dist/cdn/{MJNA3JR4.js → MYOX7NAJ.js} +2 -2
  198. package/dist/cdn/{2MT6SRIN.js → MZVKU4TZ.js} +2 -2
  199. package/dist/cdn/{UXZHHHLG.js → N2STUL4S.js} +1 -1
  200. package/dist/cdn/{CLI65JRJ.js → NEUTRLHU.js} +2 -2
  201. package/dist/cdn/{4JXYUHRY.js → NFQH774I.js} +2 -2
  202. package/dist/cdn/{AAWBBS2Z.js → NJW7I7SS.js} +2 -2
  203. package/dist/cdn/{55TRBFNW.js → NM2BHX26.js} +2 -2
  204. package/dist/cdn/NQP4VUTT.js +4 -0
  205. package/dist/cdn/{5ADHMROB.js → NR4A5JZV.js} +2 -2
  206. package/dist/cdn/{4BHQRR43.js → NU4UFWQN.js} +1 -1
  207. package/dist/cdn/{GHDED6RA.js → NWY6LVXU.js} +2 -2
  208. package/dist/cdn/{XDEQL5FG.js → O7KPE4S2.js} +2 -2
  209. package/dist/cdn/{AQXNG4JP.js → OHZPPS2Y.js} +2 -2
  210. package/dist/cdn/{L4LPFRHU.js → OIVD6L7F.js} +2 -2
  211. package/dist/cdn/{RVE3I7IB.js → OKM7IFJT.js} +2 -2
  212. package/dist/cdn/{FAC3FIXQ.js → OKPUOSNJ.js} +2 -2
  213. package/dist/cdn/ORMHAQB7.js +18 -0
  214. package/dist/cdn/{C5PS67BK.js → OSDOJ6EG.js} +2 -2
  215. package/dist/cdn/{HU2M2QL5.js → P4UQORJJ.js} +2 -2
  216. package/dist/cdn/{6KUNGOBE.js → PA4DS7UD.js} +2 -2
  217. package/dist/cdn/{5WJEMFP4.js → PCNIUE3B.js} +2 -2
  218. package/dist/cdn/{SDUBMK5P.js → PF35JCH7.js} +2 -2
  219. package/dist/cdn/{HEODNUCF.js → PFPNBDCQ.js} +2 -2
  220. package/dist/cdn/{7OKAR2WW.js → PGB5HKNC.js} +3 -3
  221. package/dist/cdn/{WOLUDKVM.js → PH6GKCBC.js} +2 -2
  222. package/dist/cdn/{OQU2M7TW.js → PJB6T3JY.js} +2 -2
  223. package/dist/cdn/{PR6GFK4E.js → PO2ONXW6.js} +1 -1
  224. package/dist/cdn/{N4TGQB52.js → PQVTEZTM.js} +1 -1
  225. package/dist/cdn/{C5CLRKXN.js → PS6GNZFQ.js} +2 -2
  226. package/dist/cdn/{73CASDEI.js → PUXC5C63.js} +2 -2
  227. package/dist/cdn/{WBGJSXJT.js → PV6TADBQ.js} +2 -2
  228. package/dist/cdn/{HGGBDR6W.js → PX67KWPD.js} +1 -1
  229. package/dist/cdn/{V6PVEI6X.js → PYH362OX.js} +2 -2
  230. package/dist/cdn/{2FPOATKA.js → PYJ724PJ.js} +1 -1
  231. package/dist/cdn/{XULVZZCR.js → PYZAQTM4.js} +2 -2
  232. package/dist/cdn/{VFLFL5RJ.js → Q2ZQ2IC7.js} +2 -2
  233. package/dist/cdn/{3RYVOOFK.js → QAGKIOBD.js} +2 -2
  234. package/dist/cdn/QBJU6IP5.js +18 -0
  235. package/dist/cdn/{P6QWU3HN.js → QDQJTLHQ.js} +1 -1
  236. package/dist/cdn/{523PAUYV.js → QGBTVRJY.js} +2 -2
  237. package/dist/cdn/{SOBKIHPD.js → QGJBCH3J.js} +2 -2
  238. package/dist/cdn/{MBLC5XEC.js → QJSJ4SPQ.js} +2 -2
  239. package/dist/cdn/{JAEOEKLB.js → QQN3GEXF.js} +2 -2
  240. package/dist/cdn/{XR4RMWBZ.js → QQW4IRIB.js} +2 -2
  241. package/dist/cdn/{LSVNZAPZ.js → QRDUEB4Y.js} +2 -2
  242. package/dist/cdn/{7WXOR2FW.js → QT2ICYK5.js} +1 -1
  243. package/dist/cdn/{JLOQF4OC.js → QTFRNZEA.js} +2 -2
  244. package/dist/cdn/{XIXZ3LRX.js → QU3FFVKQ.js} +2 -2
  245. package/dist/cdn/{EDGJP4IP.js → QZRPG5CX.js} +1 -1
  246. package/dist/cdn/{Q7WWCBUJ.js → R66SCXZQ.js} +1 -1
  247. package/dist/cdn/{GODZUS3A.js → RFSRITZ3.js} +2 -2
  248. package/dist/cdn/{3FLXGP5N.js → RI55VV32.js} +2 -2
  249. package/dist/cdn/{267ILKAW.js → RK2UE6FN.js} +2 -2
  250. package/dist/cdn/{WNRVYBAM.js → RLUV6QYP.js} +2 -2
  251. package/dist/cdn/RPM34J5M.js +4 -0
  252. package/dist/cdn/{LZOLHH3N.js → RQB6F4ZT.js} +1 -1
  253. package/dist/cdn/{EWAQ4SPD.js → RSM3GJKQ.js} +2 -2
  254. package/dist/cdn/{VJ26REKL.js → RUCBQVDF.js} +2 -2
  255. package/dist/cdn/{66KIM34X.js → RVQIOSL2.js} +2 -2
  256. package/dist/cdn/RXZDN6NU.js +18 -0
  257. package/dist/cdn/S27232YD.js +4 -0
  258. package/dist/cdn/{VOP3SI3L.js → S6KPAYGB.js} +2 -2
  259. package/dist/cdn/{EH3YDHP6.js → SGQEROKT.js} +2 -2
  260. package/dist/cdn/{N3TAKO2X.js → SIE7WLV5.js} +2 -2
  261. package/dist/cdn/SKPLZFNI.js +4 -0
  262. package/dist/cdn/{4XKIISXN.js → SL2LNMCO.js} +2 -2
  263. package/dist/cdn/{TYQUUGL4.js → SLKBOCZL.js} +2 -2
  264. package/dist/cdn/{OY3VJZ5U.js → SN3TXCGK.js} +2 -2
  265. package/dist/cdn/{47SWZ6TT.js → SQB5VJDS.js} +2 -2
  266. package/dist/cdn/{KRBS447Y.js → SXCP2T6E.js} +2 -2
  267. package/dist/cdn/{O65FO3OA.js → T2N7VC65.js} +2 -2
  268. package/dist/cdn/{NMJGXHJ5.js → TA35OO54.js} +1 -1
  269. package/dist/cdn/{YWTJP55I.js → TFMNN3QH.js} +2 -2
  270. package/dist/cdn/{6ZRMB6DD.js → THUK2QLB.js} +2 -2
  271. package/dist/cdn/{UEHLGNLF.js → TJZ2QWYE.js} +2 -2
  272. package/dist/cdn/{356U3AGS.js → TLOO6GT2.js} +2 -2
  273. package/dist/cdn/{HYCRM4CP.js → TNZZQREZ.js} +1 -1
  274. package/dist/cdn/{I3XLBATE.js → TRPCOGWZ.js} +2 -2
  275. package/dist/cdn/{JG4LPMWJ.js → U3M35BAO.js} +2 -2
  276. package/dist/cdn/U44AVH5Y.js +18 -0
  277. package/dist/cdn/{KJVS54S2.js → U4SIV6SN.js} +2 -2
  278. package/dist/cdn/{MFBGM4WK.js → U57PST54.js} +2 -2
  279. package/dist/cdn/{U2JYNV6E.js → UGC33LAX.js} +2 -2
  280. package/dist/cdn/{EDULPK3Y.js → UMOWAYHA.js} +2 -2
  281. package/dist/cdn/{WZE3AUQY.js → UNYTEEQV.js} +2 -2
  282. package/dist/cdn/{3P72MRKR.js → UR7TIUZF.js} +2 -2
  283. package/dist/cdn/{XS2IY2B5.js → UU6AAXJP.js} +2 -2
  284. package/dist/cdn/{F4GJWTGK.js → UUADKV5W.js} +2 -2
  285. package/dist/cdn/{CCJFC54C.js → UVWMFGUU.js} +4 -4
  286. package/dist/cdn/{QWPYDYAF.js → UYGXKJNM.js} +3 -3
  287. package/dist/cdn/{OIUFE5VJ.js → UZQZVSQD.js} +2 -2
  288. package/dist/cdn/{WMAGU74P.js → V3SNI5H2.js} +2 -2
  289. package/dist/cdn/{RLPBI3FM.js → V3ZOI4XV.js} +2 -2
  290. package/dist/cdn/{ZLA67MLJ.js → V4IDVZKR.js} +2 -2
  291. package/dist/cdn/{EL4DMLJ4.js → V5NNJMHK.js} +2 -2
  292. package/dist/cdn/{OCUWRCVO.js → V7E3LE7X.js} +2 -2
  293. package/dist/cdn/{57HVUMUV.js → V7KS5YMF.js} +2 -2
  294. package/dist/cdn/{KT4SWIVA.js → VG2ZP6YR.js} +2 -2
  295. package/dist/cdn/{GBO2INNV.js → VKTYC5RV.js} +2 -2
  296. package/dist/cdn/{HRBA3DQH.js → VM2ZXL7L.js} +2 -2
  297. package/dist/cdn/{6HPLUYFF.js → VUF6ZPJJ.js} +2 -2
  298. package/dist/cdn/{IYTM4DLE.js → VVUGVETI.js} +2 -2
  299. package/dist/cdn/{Q2EKFRJV.js → WGQ3BAPY.js} +2 -2
  300. package/dist/cdn/{GJC6WAZN.js → WHB6PGTX.js} +2 -2
  301. package/dist/cdn/{RSUBIG6G.js → WHQBQBQO.js} +2 -2
  302. package/dist/cdn/{ROPLCDMX.js → WJGQQRX2.js} +2 -2
  303. package/dist/cdn/{GMMMSDQP.js → WTHVFXJB.js} +2 -2
  304. package/dist/cdn/{MSXXA6RI.js → WTXX37R3.js} +2 -2
  305. package/dist/cdn/{DWNUQADA.js → WXICUJ23.js} +2 -2
  306. package/dist/cdn/{SBG5PBF4.js → X3XJ5ILF.js} +2 -2
  307. package/dist/cdn/{Z7S7GDD2.js → X4DPUBIL.js} +2 -2
  308. package/dist/cdn/{6DS6ZO67.js → XG4TIED2.js} +2 -2
  309. package/dist/cdn/{KVCKEWOB.js → XI7PHODP.js} +2 -2
  310. package/dist/cdn/{DUIQAQHS.js → XKGFKXIJ.js} +4 -4
  311. package/dist/cdn/{AVF4T5CW.js → XO5UMF4F.js} +2 -2
  312. package/dist/cdn/{2JYSDDCE.js → XPDIQAH2.js} +2 -2
  313. package/dist/cdn/{O7OKE2PN.js → XRZSNVB5.js} +2 -2
  314. package/dist/cdn/{FWASWMTC.js → XWWEONFO.js} +2 -2
  315. package/dist/cdn/{IVDBT5K6.js → XXR4BGO2.js} +2 -2
  316. package/dist/cdn/{PKLCZ6KE.js → XYPES4NY.js} +2 -2
  317. package/dist/cdn/{DJPFENB6.js → YBYKYXVG.js} +2 -2
  318. package/dist/cdn/{REYKTB7Z.js → YF4CPLBO.js} +2 -2
  319. package/dist/cdn/{OC42FDOJ.js → YGU5ONQK.js} +2 -2
  320. package/dist/cdn/{3X343PCD.js → YIJU3CFJ.js} +1 -1
  321. package/dist/cdn/{JD626743.js → YJDWVMSX.js} +2 -2
  322. package/dist/cdn/{H24P4PA2.js → YN6KNB56.js} +2 -2
  323. package/dist/cdn/{4DCSH5TV.js → YRCLQILQ.js} +2 -2
  324. package/dist/cdn/{DQB2TSI3.js → YS2IKZ3R.js} +2 -2
  325. package/dist/cdn/{IVYZCEOK.js → YSHTOQ6Z.js} +2 -2
  326. package/dist/cdn/{7L77O7JG.js → YXQJQV2U.js} +2 -2
  327. package/dist/cdn/{WCLO26J4.js → YZCOFSVF.js} +2 -2
  328. package/dist/cdn/{VBEI6EDT.js → Z2TDHXQC.js} +2 -2
  329. package/dist/cdn/{ZFUCUGNJ.js → Z4SA5HX7.js} +2 -2
  330. package/dist/cdn/{LDYIKFEJ.js → Z4TXATS4.js} +1 -1
  331. package/dist/cdn/{2UUZVX4N.js → Z6Z36OMO.js} +1 -1
  332. package/dist/cdn/{X6PGFPTQ.js → Z7DPN4Q7.js} +2 -2
  333. package/dist/cdn/{RCRAYSXU.js → ZDYHNNR5.js} +2 -2
  334. package/dist/cdn/{PD62IC7W.js → ZG5775EA.js} +1 -1
  335. package/dist/cdn/{K6A7A3JC.js → ZH3L7E5H.js} +2 -2
  336. package/dist/cdn/{XFIDAAZT.js → ZKNJZXGX.js} +2 -2
  337. package/dist/cdn/{OAEMMAHU.js → ZMAVDEDI.js} +1 -1
  338. package/dist/cdn/{CLP7WGVJ.js → ZNRHJ2RK.js} +2 -2
  339. package/dist/cdn/{GNBQIATI.js → ZORDTYNP.js} +2 -2
  340. package/dist/cdn/{YKEZROWG.js → ZTACEYD6.js} +2 -2
  341. package/dist/cdn/assets/crowdsource-manager/t9n/messages.en.json +1 -1
  342. package/dist/cdn/assets/crowdsource-manager/t9n/messages.json +1 -1
  343. package/dist/cdn/assets/refine-selection/t9n/messages.ar.json +1 -1
  344. package/dist/cdn/assets/refine-selection/t9n/messages.bg.json +1 -1
  345. package/dist/cdn/assets/refine-selection/t9n/messages.bs.json +1 -1
  346. package/dist/cdn/assets/refine-selection/t9n/messages.ca.json +1 -1
  347. package/dist/cdn/assets/refine-selection/t9n/messages.cs.json +1 -1
  348. package/dist/cdn/assets/refine-selection/t9n/messages.da.json +1 -1
  349. package/dist/cdn/assets/refine-selection/t9n/messages.de.json +1 -1
  350. package/dist/cdn/assets/refine-selection/t9n/messages.el.json +1 -1
  351. package/dist/cdn/assets/refine-selection/t9n/messages.es.json +1 -1
  352. package/dist/cdn/assets/refine-selection/t9n/messages.et.json +1 -1
  353. package/dist/cdn/assets/refine-selection/t9n/messages.fi.json +1 -1
  354. package/dist/cdn/assets/refine-selection/t9n/messages.fr.json +1 -1
  355. package/dist/cdn/assets/refine-selection/t9n/messages.he.json +1 -1
  356. package/dist/cdn/assets/refine-selection/t9n/messages.hr.json +1 -1
  357. package/dist/cdn/assets/refine-selection/t9n/messages.hu.json +1 -1
  358. package/dist/cdn/assets/refine-selection/t9n/messages.id.json +1 -1
  359. package/dist/cdn/assets/refine-selection/t9n/messages.it.json +1 -1
  360. package/dist/cdn/assets/refine-selection/t9n/messages.ja.json +1 -1
  361. package/dist/cdn/assets/refine-selection/t9n/messages.ko.json +1 -1
  362. package/dist/cdn/assets/refine-selection/t9n/messages.lt.json +1 -1
  363. package/dist/cdn/assets/refine-selection/t9n/messages.lv.json +1 -1
  364. package/dist/cdn/assets/refine-selection/t9n/messages.nl.json +1 -1
  365. package/dist/cdn/assets/refine-selection/t9n/messages.no.json +1 -1
  366. package/dist/cdn/assets/refine-selection/t9n/messages.pl.json +1 -1
  367. package/dist/cdn/assets/refine-selection/t9n/messages.pt-BR.json +1 -1
  368. package/dist/cdn/assets/refine-selection/t9n/messages.pt-PT.json +1 -1
  369. package/dist/cdn/assets/refine-selection/t9n/messages.ro.json +1 -1
  370. package/dist/cdn/assets/refine-selection/t9n/messages.ru.json +1 -1
  371. package/dist/cdn/assets/refine-selection/t9n/messages.sk.json +1 -1
  372. package/dist/cdn/assets/refine-selection/t9n/messages.sl.json +1 -1
  373. package/dist/cdn/assets/refine-selection/t9n/messages.sr.json +1 -1
  374. package/dist/cdn/assets/refine-selection/t9n/messages.sv.json +1 -1
  375. package/dist/cdn/assets/refine-selection/t9n/messages.th.json +1 -1
  376. package/dist/cdn/assets/refine-selection/t9n/messages.tr.json +1 -1
  377. package/dist/cdn/assets/refine-selection/t9n/messages.uk.json +1 -1
  378. package/dist/cdn/assets/refine-selection/t9n/messages.vi.json +1 -1
  379. package/dist/cdn/assets/refine-selection/t9n/messages.zh-CN.json +1 -1
  380. package/dist/cdn/assets/refine-selection/t9n/messages.zh-HK.json +1 -1
  381. package/dist/cdn/assets/refine-selection/t9n/messages.zh-TW.json +1 -1
  382. package/dist/cdn/index.js +2 -2
  383. package/dist/chunks/Auth.js +1 -1
  384. package/dist/chunks/CardsFetcher.js +1 -1
  385. package/dist/chunks/appConfig.js +1 -1
  386. package/dist/chunks/cardFetchingUtils.js +1 -1
  387. package/dist/chunks/cardsHelpers.js +1 -1
  388. package/dist/chunks/common.js +1 -1
  389. package/dist/chunks/deployAppContexts.js +1 -1
  390. package/dist/chunks/downloadUtils.js +1 -1
  391. package/dist/chunks/getItemIcon.js +1 -1
  392. package/dist/chunks/helpers.js +1 -1
  393. package/dist/chunks/interfaces.js +1 -1
  394. package/dist/chunks/loadModules.js +1 -1
  395. package/dist/chunks/mapViewUtils.js +1 -1
  396. package/dist/chunks/pciUtils.js +1 -1
  397. package/dist/chunks/popupUtils.js +1 -1
  398. package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
  399. package/dist/chunks/privilegeUtils.js +1 -1
  400. package/dist/chunks/publicNotificationContext.js +1 -1
  401. package/dist/chunks/queryUtils.js +1 -1
  402. package/dist/chunks/runtime.js +1 -1
  403. package/dist/chunks/solution-store.js +1 -1
  404. package/dist/chunks/templates.js +1 -1
  405. package/dist/chunks/useT9n.js +1 -1
  406. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  407. package/dist/components/basemap-gallery/customElement.js +1 -1
  408. package/dist/components/buffer-tools/customElement.js +1 -1
  409. package/dist/components/card-manager/customElement.js +1 -1
  410. package/dist/components/consent-manager/customElement.js +1 -1
  411. package/dist/components/create-feature/customElement.js +1 -1
  412. package/dist/components/create-related-feature/customElement.js +1 -1
  413. package/dist/components/crowdsource-manager/customElement.js +32 -27
  414. package/dist/components/crowdsource-manager/index.d.ts +1 -0
  415. package/dist/components/crowdsource-manager/index.js +1 -0
  416. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  417. package/dist/components/deduct-calculator/customElement.js +1 -1
  418. package/dist/components/delete-button/customElement.js +1 -1
  419. package/dist/components/delete-dialog/customElement.js +1 -1
  420. package/dist/components/edit-card/customElement.js +1 -1
  421. package/dist/components/feature-details/customElement.js +1 -1
  422. package/dist/components/feature-list/customElement.js +1 -1
  423. package/dist/components/field-selection/customElement.js +2 -2
  424. package/dist/components/floor-filter/customElement.js +1 -1
  425. package/dist/components/info-card/customElement.js +1 -1
  426. package/dist/components/json-editor/customElement.js +1 -1
  427. package/dist/components/layer-list/customElement.js +1 -1
  428. package/dist/components/layer-table/customElement.js +71 -51
  429. package/dist/components/map-card/customElement.js +52 -35
  430. package/dist/components/map-draw-tools/customElement.js +1 -1
  431. package/dist/components/map-fullscreen/customElement.js +1 -1
  432. package/dist/components/map-layer-picker/customElement.js +29 -27
  433. package/dist/components/map-legend/customElement.js +1 -1
  434. package/dist/components/map-picker/customElement.js +28 -13
  435. package/dist/components/map-search/customElement.js +1 -1
  436. package/dist/components/map-select-tools/customElement.js +1 -1
  437. package/dist/components/map-tools/customElement.d.ts +2 -0
  438. package/dist/components/map-tools/customElement.js +46 -39
  439. package/dist/components/pci-calculator/customElement.js +1 -1
  440. package/dist/components/pdf-download/customElement.js +1 -1
  441. package/dist/components/public-notification/customElement.js +1 -1
  442. package/dist/components/refine-selection/customElement.js +1 -1
  443. package/dist/components/selection-tool/customElement.js +1 -1
  444. package/dist/components/solution-article-card/customElement.js +1 -1
  445. package/dist/components/solution-configuration/customElement.js +1 -1
  446. package/dist/components/solution-configure-dialog/customElement.js +1 -1
  447. package/dist/components/solution-configure-titles/customElement.js +1 -1
  448. package/dist/components/solution-contents/customElement.js +1 -1
  449. package/dist/components/solution-delete-dialog/customElement.js +79 -85
  450. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  451. package/dist/components/solution-deployed-card/customElement.js +1 -1
  452. package/dist/components/solution-deploying-dialog/customElement.js +1 -1
  453. package/dist/components/solution-details-card/customElement.js +3 -3
  454. package/dist/components/solution-details-panel/customElement.js +1 -1
  455. package/dist/components/solution-item/customElement.js +1 -1
  456. package/dist/components/solution-item-accordion/customElement.js +9 -9
  457. package/dist/components/solution-item-details/customElement.js +1 -1
  458. package/dist/components/solution-item-diagram/customElement.js +1 -1
  459. package/dist/components/solution-item-icon/customElement.js +1 -1
  460. package/dist/components/solution-item-sharing/customElement.js +1 -1
  461. package/dist/components/solution-organization-variables/customElement.js +1 -1
  462. package/dist/components/solution-resource-item/customElement.js +1 -1
  463. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  464. package/dist/components/solution-social-share/customElement.js +1 -1
  465. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  466. package/dist/components/solution-template-data/customElement.js +1 -1
  467. package/dist/components/solution-variables/customElement.js +1 -1
  468. package/dist/components/solutions-all-panel/customElement.d.ts +7 -0
  469. package/dist/components/solutions-all-panel/customElement.js +13 -10
  470. package/dist/components/solutions-all-shell/customElement.js +3 -4
  471. package/dist/components/solutions-article-panel/customElement.js +1 -1
  472. package/dist/components/solutions-articles/customElement.js +1 -1
  473. package/dist/components/solutions-articles-shell/customElement.js +1 -1
  474. package/dist/components/solutions-deploy-app/customElement.js +26 -25
  475. package/dist/components/solutions-deployed-filter-panel/customElement.js +7 -7
  476. package/dist/components/solutions-deployed-panel/customElement.d.ts +7 -0
  477. package/dist/components/solutions-deployed-panel/customElement.js +27 -42
  478. package/dist/components/solutions-deployed-shell/customElement.js +23 -20
  479. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  480. package/dist/components/spatial-ref/customElement.js +1 -1
  481. package/dist/components/store-manager/customElement.js +1 -1
  482. package/dist/docs/api.json +158 -2
  483. package/dist/docs/docs.json +134 -2
  484. package/dist/docs/vscode.html-custom-data.json +2 -2
  485. package/dist/docs/web-types.json +8 -3
  486. package/dist/index.js +1 -1
  487. package/dist/loader.js +4 -4
  488. package/dist/types/lumina.d.ts +1 -1
  489. package/dist/types/preact.d.ts +1 -1
  490. package/dist/types/preact10.d.ts +1 -1
  491. package/dist/types/react.d.ts +1 -1
  492. package/dist/types/stencil.d.ts +1 -1
  493. package/dist/utils/interfaces.d.ts +3 -1
  494. package/package.json +1 -1
  495. package/dist/cdn/2T5TODNM.js +0 -4
  496. package/dist/cdn/6RP2W573.js +0 -4
  497. package/dist/cdn/6ZCDFHVZ.js +0 -18
  498. package/dist/cdn/B2P4HZ4A.js +0 -18
  499. package/dist/cdn/BEVD4UPH.js +0 -18
  500. package/dist/cdn/E5TX56YC.js +0 -18
  501. package/dist/cdn/E66X45EE.js +0 -4
  502. package/dist/cdn/F4O4RVUG.js +0 -18
  503. package/dist/cdn/GNQRFWIP.js +0 -18
  504. package/dist/cdn/JE5SQDYP.js +0 -18
  505. package/dist/cdn/K3UXBGBS.js +0 -18
  506. package/dist/cdn/KOSABRPM.js +0 -18
  507. package/dist/cdn/L6ODTMSI.js +0 -18
  508. package/dist/cdn/N522EEE5.js +0 -18
  509. package/dist/cdn/NAKER4VF.js +0 -4
  510. package/dist/cdn/ODCDUFI4.js +0 -4
  511. package/dist/cdn/S47BFXRX.js +0 -18
  512. package/dist/cdn/TEHMT2LM.js +0 -18
  513. package/dist/cdn/VJPQYLWD.js +0 -4
  514. package/dist/cdn/VQNQGNNM.js +0 -4
  515. package/dist/cdn/WDSIGZKO.js +0 -4
  516. package/dist/cdn/XW4EUXBY.js +0 -4
  517. package/dist/cdn/ZUOT6FCM.js +0 -4
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250918 */
4
- import{a as S}from"./NAKER4VF.js";import"./HRBA3DQH.js";import{c as L,j as M}from"./JAEOEKLB.js";import{j as m}from"./2UUZVX4N.js";import"./HGGBDR6W.js";import{b as v}from"./DOI6UXL3.js";import{a as w}from"./WUCKWIIK.js";import"./SBVCJO27.js";import"./BJO4PB2J.js";import{b as $}from"./ZJ6Q46KE.js";import{C as h,D as r,E as I,G as f,h as g,i as o,l as c,o as d,r as y}from"./LZOLHH3N.js";import"./MYHIWH5I.js";function x(l){return l?.indexOf("http://")!==-1}function u(l){return x(l)?l.replace(/^http:\/\//,"https://"):l}function T(l,e,i){return i&&i.forEach(s=>{l.allLayers.forEach(t=>{t&&t.url===s.sourceUrl&&(t.url=u(s.proxyUrl),t.portalItem&&t.portalItem.when(()=>{t.portalItem.url=u(s.proxyUrl)}),e.request?.interceptors?.push({urls:s.sourceUrl,before:a=>{a.url&&a.url===s.sourceUrl&&(a.url=u(s.proxyUrl))}}))})}),l}var k=g`@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;--calcite-label-margin-bottom: 0;--calcite-block-padding: 0}.map-height{height:calc(100% - 53px)}.height-full{height:100%}.height-49-px{height:49px}.box-shadow{box-shadow:none!important}.visibility-hidden-1{visibility:hidden;height:1px}.hidden{visibility:hidden!important}.display-flex{display:flex}.display-none{display:none}.display-block{display:block}.absolute-right{position:absolute;right:0;left:unset}.esri-ui-inner-container.esri-ui-corner-container{direction:ltr}html[dir=rtl] .absolute-right{left:0;right:unset}.panel-header-override{--calcite-panel-header-content-space: 0px}@media only screen and (max-width: 1024px){.esri-zoom{display:none!important}}}`,_=class extends I{constructor(){super(),this.defaultWebmapId="",this.defaultLayerId="",this.enableHome=!1,this.enableLegend=!1,this.enableFloorFilter=!1,this.enableFullscreen=!1,this.enableShare=!1,this.enableMapLayerPicker=!1,this.enableMapPicker=!1,this.enableSingleExpand=!1,this.enableSearch=!1,this.enableBasemap=!1,this.featureSelectionMode="multiple",this.hide=!1,this.zoomToolsSize="m",this.mapInfos=[],this.mapWidgetsIndex=0,this.mapWidgetsPosition="top-left",this.mobileMapWidgetsPosition="top-right",this.mapWidgetsSize="m",this.stackTools=!1,this.mapToolsOrder=[],this.mobileToolsOrder=[],this.isMapLayout=!1,this.shareIncludeEmbed=!1,this.shareIncludeSocial=!1,this.selectedFeaturesIds=[],this.showOnlyUpdatableLayers=!1,this.isMobile=!1,this.enableSelectionTool=!1,this._translations=w({name:"map-card",blocking:!0}),this._toolInfos=[],this._filterActive=!1,this._enabledLayerIds=[],this._defaultWebmapHonored=!1,this._loadedId="",this._mapDiv=h(),this._mapPicker=h(),this._mapTools=h(),this._mobMapTools=h(),this._mapListExpanded=!1,this._definitionExpression="",this._mapLayerPicker=h(),this._toolbar=h(),this._selectedWebMapId="",this.mapChanged=d(),this.beforeMapChanged=d(),this.toggleFilter=d(),this.clearSelection=d(),this.editMultipleFeatures=d(),this.listenOn(window,"mapInfoChange",this.mapInfoChange),this.listenOn(window,"noLayersFound",this.noLayersFound),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.enableSingleExpand=!0,this.stackTools=!0,S(window)}static{this.properties={appLayout:1,appProxies:1,defaultWebmapId:1,defaultLayerId:1,enableHome:5,enableLegend:5,enableFloorFilter:5,enableFullscreen:5,enableShare:5,enableMapLayerPicker:5,enableMapPicker:5,enableSingleExpand:5,enableSearch:5,enableBasemap:5,featureSelectionMode:1,basemapConfig:0,hide:5,zoomToolsSize:1,mapInfos:0,mapWidgetsIndex:9,mapWidgetsPosition:1,mobileMapWidgetsPosition:1,mapWidgetsSize:1,mapView:0,stackTools:5,theme:1,mapToolsOrder:0,mobileToolsOrder:0,isMapLayout:5,shareIncludeEmbed:5,shareIncludeSocial:5,selectedFeaturesIds:0,selectedLayer:0,zoomToScale:9,showOnlyUpdatableLayers:5,isMobile:5,mapInfo:0,enableSelectionTool:5,_translations:16,_searchConfiguration:16,_webMapInfo:16,_toolInfos:16,_filterActive:16,_mapDivHeight:16,_mapDivWidth:16}}static{this.styles=k}static{this.shadowRootOptions=y}willUpdate(e){e.has("appLayout")&&this.appLayoutWatchHandler(),e.has("mapView")&&this.mapViewWatchHandler(),e.has("mapInfo")&&this.mapInfoWatchHandler(),e.has("selectedLayer")&&this.selectedLayerWatchHandler(),e.has("selectedFeaturesIds")&&this.selectedFeaturesIdsWatchHandler()}appLayoutWatchHandler(){this._updateShareUrl()}async mapInfoWatchHandler(){this._enabledLayerIds=this.mapInfo?.layerOptions?.layers.map(e=>e.id)||[]}async mapViewWatchHandler(){this.mapView&&this._updateShareUrl()}async selectedLayerWatchHandler(){await this.selectedLayer?.when(async()=>{this._definitionExpression=this.selectedLayer?.definitionExpression||""})}async selectedFeaturesIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions()}async resetFilter(){this._filterActive=!1,this._updateShareUrl()}async updateFilterState(e){this._filterActive=e,this._updateShareUrl()}async updateLayer(){this._mapLayerPicker.value&&this._mapLayerPicker.value.updateLayer()}async mapInfoChange(e){this._selectedWebMapId=e.detail.id,await this._loadMap(e.detail)}noLayersFound(){this.selectedLayer=void 0,this.selectedFeaturesIds=[]}layerSelectionChange(){setTimeout(()=>{this._initToolInfos()},50)}async load(){await this._initModules(),this._initToolInfos(),this._mapSizeObserver||(this._mapSizeObserver=new ResizeObserver(()=>{if(this._mapDivWidth&&this._mapDiv.value){let e=this.isMobile?160:110;this._mapDivWidth=this._mapDiv.value.offsetWidth-e}}))}render(){let e=this.hide?"visibility-hidden-1":"",i=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light",s="height-full",t=this.isMapLayout?"":"display-none",a=this.isMobile?"":"hidden";return this._validateActiveActions(),o`<calcite-panel class="height-full width-full panel-header-override">${this._getMapLayerPicker()}${this._getHeaderActions()}<div slot=header-actions-end class="display-flex absolute-right">${this.enableShare&&this.isMapLayout?this._getShare("share"):void 0}</div><calcite-progress class=${f(t)} value=0></calcite-progress><div class=${`${e} ${s}`}><div class="height-full" ${r(this._mapDiv)}></div></div>${o`<map-tools .basemapConfig=${this.basemapConfig} class=${`box-shadow ${i}`} .defaultLayerId=${this.defaultLayerId} .enableBasemap=${this.enableBasemap} .enableFloorFilter=${this.enableFloorFilter} .enableFullscreen=${this.enableFullscreen} .enableHome=${this.enableHome} .enableLegend=${this.enableLegend} .enableSearch=${this.enableSearch} .enableSingleExpand=${this.enableSingleExpand} .enableSelectionTool=${this.enableSelectionTool} .isMobile=${this.isMobile} .parentComponentHeight=${this._mapDivHeight} .parentComponentWidth=${this._mapDivWidth} .zoomToolsSize=${this.zoomToolsSize} layout=horizontal .mapView=${this.mapView} .mapWidgetsSize=${this.mapWidgetsSize} .position=${this.mapWidgetsPosition} .selectedLayer=${this.selectedLayer} .searchConfiguration=${this._searchConfiguration} .stackTools=${this.stackTools} .toolOrder=${this.mapToolsOrder} ${r(this._mapTools)}></map-tools><map-tools class=${`box-shadow ${i} ${a}`} .defaultLayerId=${this.defaultLayerId} .enabledLayerIds=${this._enabledLayerIds} .enableMapLayerPicker=${this.enableMapLayerPicker} .enableMapPicker=${this.enableMapPicker} .isMobile=${this.isMobile} .zoomToolsSize=${this.zoomToolsSize} layout=vertical .mapInfos=${this.mapInfos} .mapView=${this.mapView} .mapWidgetsSize=${this.mapWidgetsSize} .parentComponentHeight=${this._mapDivHeight} .position=${this.mobileMapWidgetsPosition} .selectedLayer=${this.selectedLayer} .selectedWebMapId=${this._selectedWebMapId} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} .stackTools=${this.stackTools} .toolOrder=${this.mobileToolsOrder} ${r(this._mobMapTools)}></map-tools>`}</calcite-panel>`}updated(){this._mapDivHeight=this._mapDiv.value?.offsetHeight??0,document.onclick=e=>this._handleDocumentClick(e)}loaded(){this._mapDiv.value&&this._mapSizeObserver?.observe(this._mapDiv.value),this._updateShareUrl()}async _initModules(){let[e,i,s,t]=await v(["esri/WebMap","esri/views/MapView","esri/widgets/Home","esri/config"]);this.WebMap=e,this.MapView=i,this.Home=s,this.esriConfig=t}async _loadMap(e){let i=!this._defaultWebmapHonored&&this.defaultWebmapId,s=this.mapInfos?.filter(n=>n.id===this.defaultWebmapId),t=JSON.stringify(e)!==JSON.stringify(this._webMapInfo);this._webMapInfo=i&&s?s[0]:!e?.id&&this.mapInfos.length>0?this.mapInfos[0]:e;let a=this._webMapInfo.id,p=i&&e?.id===this.defaultWebmapId;if(this._loadedId!==a&&!i||p){let n=this.WebMap&&new this.WebMap({portalItem:{id:a}});this.appProxies&&n&&this.esriConfig&&(await n.load(),await T(n,this.esriConfig,this.appProxies)),this.mapView=this.MapView&&new this.MapView({container:this._mapDiv.value,map:n,resizeAlign:"center"}),this._loadedId=a,this._searchConfiguration=this._webMapInfo.searchConfiguration,this.beforeMapChanged.emit(),this.mapView&&await this.mapView.when(()=>{if(this.mapView){let b=this.isMobile?160:110;this._mapDivWidth=this._mapDiv.value&&this._mapDiv.value.offsetWidth-b,this._mapTools.value&&this.mapView.ui.add(this._mapTools.value,{position:this.mapWidgetsPosition,index:this.mapWidgetsIndex}),this._mobMapTools.value&&this.mapView.ui.add(this._mobMapTools.value,{position:this.mobileMapWidgetsPosition,index:this.mapWidgetsIndex}),this._defaultWebmapHonored=p?!0:this._defaultWebmapHonored,this.mapChanged.emit({id:a,mapView:this.mapView})}})}else i?(this._defaultWebmapHonored=!0,this._mapPicker.value&&this._mapPicker.value.setMapByID(a)):t&&this.mapView&&(this._searchConfiguration=this._webMapInfo.searchConfiguration,this.beforeMapChanged.emit(),this.mapChanged.emit({id:a,mapView:this.mapView}));this._updateShareUrl()}_getMapLayerPicker(){let e=this.isMapLayout?"header-actions-start":"",i=this.mapInfos?.length>1?"":"display-none",s=this.isMapLayout?"height-0":"width-full",t="display-flex",a=this.isMapLayout?"":"display-none";return o`${!this.isMobile&&o`<div slot=${e??c}><map-picker class=${`${i} ${s}`} id=map-picker .isMapLayout=${this.isMapLayout} .mapInfos=${this.mapInfos} .selectedWebMapId=${this._selectedWebMapId} ${r(this._mapPicker)}></map-picker></div>`||""}<div slot=header-actions-start class=${`mapView-header display-flex ${a}`} id=solutions-map-layer-picker-container><div class=${`border-end ${t}`}>${this.mapView&&o`<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.selectedLayer?[this.selectedLayer.id]:[]} show-single-layer-as-label show-tables show-tables-disabled type=dropdown ${r(this._mapLayerPicker)}></map-layer-picker>`||""}</div></div>`}_getHeaderActions(){return o`<div slot=header-content><calcite-action-bar class=${f("display-flex")} expand-disabled expanded id=${this._getId("bar")??c} layout=horizontal><calcite-action-group>${this.isMapLayout?this._getActions():void 0}</calcite-action-group></calcite-action-bar></div>`}_getShare(e){return o`<div class="share-action" id=${this._getId(e)??c}>${this.mapView&&o`<instant-apps-social-share class="instant-app-share" .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} ${r(i=>{i&&(this._shareNode=i,this._updateShareUrl())})}></instant-apps-social-share>`||""}${this._getToolTip("bottom",`map-${e}`,this._translations?.share)}</div>`}_updateShareUrl(){let e=this._shareNode?.shareUrl;if(!e)return;let i=new URL(e);this._loadedId?i.searchParams.set("webmap",this._loadedId):i.searchParams.delete("webmap"),this.selectedLayer?.id?i.searchParams.set("layer",this.selectedLayer.id):i.searchParams.delete("layer"),this.selectedFeaturesIds?.length>0?i.searchParams.set("oid",this.selectedFeaturesIds.join(",")):i.searchParams.delete("oid"),this.appLayout&&i.searchParams.set("applayout",this.appLayout),this._shareNode&&(this._shareNode.autoUpdateShareUrl=!1,this._shareNode.shareUrl=i.href)}_initToolInfos(){let e=this.selectedFeaturesIds.length>0,i=this.selectedFeaturesIds.length<2||this.selectedFeaturesIds.length>m,s=this.featureSelectionMode==="multiple"&&this.selectedLayer?.capabilities?.operations.supportsUpdate,t=[];t.push({active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>void this._toggleFilter(),disabled:!1,toolTip:this._translations.filters}),t.push({active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>void this._zoom(),disabled:!e,toolTip:this._translations.zoom}),s&&t.push({active:!1,icon:"pencil",indicator:!1,label:this._translations.editMultiple,func:()=>this.editMultipleFeatures.emit(this.selectedFeaturesIds),disabled:i,toolTip:this._translations.editMultiple}),t.push({active:!1,icon:"refresh",indicator:!1,label:this._translations.refresh,func:()=>this.selectedLayer?.refresh(),disabled:!1,toolTip:this._translations.refresh}),t.push({active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>this.clearSelection.emit(),disabled:!e,toolTip:this._translations.clearSelection}),this._toolInfos=[...t]}_validateActiveActions(){let e=["filter"];this._toolInfos?.forEach(i=>{i&&e.indexOf(i.icon)>-1&&i.icon==="filter"&&(i.indicator=this._filterActive)})}_validateEnabledActions(){let e=this.selectedFeaturesIds.length>0,i=this.selectedFeaturesIds.length<2||this.selectedFeaturesIds.length>m,s=["zoom-to-object","pencil","erase"];this._toolInfos?.forEach(t=>{t&&s.indexOf(t.icon)>-1&&(t.disabled=t.icon==="pencil"?i:!e,t.toolTip=t.icon==="pencil"?this.selectedFeaturesIds.length>m?this._translations.featureEditLimitNotice:this._translations.editMultiple:t.toolTip)})}_handleDocumentClick(e){e.target.tagName!=="MAP-PICKER"&&(this._mapListExpanded=!1,this._mapPicker.value&&this._mapPicker.value.close())}async _zoom(){if(this.selectedLayer&&this.mapView){let e=await L(this.mapView,this.selectedLayer.id);e&&await M(this.selectedFeaturesIds,e,this.mapView,!0,void 0,this.zoomToScale)}}async _toggleFilter(){this.toggleFilter.emit()}_hasFilterExpressions(){let e=[];return this.mapInfo?.filterConfig?.layerExpressions&&this.selectedLayer?.id&&(e=this.mapInfo.filterConfig.layerExpressions.filter(i=>i.id===this.selectedLayer?.id)),e.length>0}_getActions(){return this._toolInfos?.reduce((e,i)=>(i&&e.push(this._getAction(i.active,i.icon,i.indicator,i.label,i.func,i.disabled,i.loading,i.toolTip)),e),[])}_getToolTip(e,i,s){return o`<calcite-tooltip .placement=${e} .referenceElement=${i}><span>${s}</span></calcite-tooltip>`}_getAction(e,i,s,t,a,p,n,b){let W=this.selectedLayer===void 0?!0:p;return o`<calcite-action .active=${e} appearance=solid .disabled=${W} .icon=${i} .id=${`map-${i}`} .indicator=${s} .label=${t} .loading=${n} @click=${a} .text=${t} text-enabled></calcite-action>${this._getToolTip("auto",`map-${i}`,b)}`}_getId(e){return`solutions-action-${e}`}};$("map-card",_);export{_ as MapCard};
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250918 */
4
- import c from"./C6U6B3CU.js";import{a as U}from"./4JXYUHRY.js";import a from"./DJPFENB6.js";import{a as x,c as E}from"./LDYIKFEJ.js";import{b as D}from"./IKG4ESDZ.js";import{Sb as v,qa as g}from"./MNBX566Z.js";import"./IVYZCEOK.js";import"./MIQMPLJK.js";import"./NX4AX3KO.js";import"./OC42FDOJ.js";import"./QCYE43LA.js";import"./XJHXUHBP.js";import"./PY3L2YRP.js";import"./QSVVVRGK.js";import"./4FXJXLF3.js";import"./2FPOATKA.js";import"./NMJGXHJ5.js";import"./Q35FCICJ.js";import"./VJ26REKL.js";import"./NXSAOV4D.js";import"./N4TGQB52.js";import"./P6QWU3HN.js";import"./V4T2ETXO.js";import"./4BHQRR43.js";import"./PD62IC7W.js";import"./2UUZVX4N.js";import{a as P}from"./WUCKWIIK.js";import"./SBVCJO27.js";import"./BJO4PB2J.js";import{b as T}from"./ZJ6Q46KE.js";import{C as S,D as f,E as C,G as m,h as b,i as h,l as $,o as u}from"./LZOLHH3N.js";import"./MYHIWH5I.js";export default $arcgis.t(([,{b:k}])=>{var R=b`/** @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)}.display-none{display:none}`,w=class extends C{constructor(){super(...arguments),this.open=!1,this._deletePercentage=0,this._fetchingTemplates=!1,this._isDeleteInProgress=!1,this._nonSolutionDependencyItems=[],this._showDeleteError=!1,this._showUndeletableItems=!1,this._templateInfos=[],this._translations=P({name:"solution-delete-dialog",blocking:!0}),this._authContextConsumer=D({context:E,subscribe:!0}),this._userSessionContextConsumer=D({context:x,subscribe:!0}),this._accordion=S(),this.solutionDeleteDialogOpen=u(),this.solutionDeleted=u(),this.solutionDeleteDialogBeforeClose=u()}static{this.properties={card:0,open:5,_deletePercentage:16,_fetchingTemplates:16,_isDeleteInProgress:16,_nonSolutionDependencyItems:16,_showDeleteError:16,_showUndeletableItems:16,_templateInfos:16,_translations:16}}static{this.styles=R}close(){this._showUndeletableItems&&this.solutionDeleted.emit({showAlert:!1,refreshSolutionsTimeout:!0}),this._showDeleteError=!1,this._showUndeletableItems=!1,this._isDeleteInProgress=!1,this.open=!1,this.solutionDeleteDialogOpen.emit(!1)}delete(){if(this._isDeleteInProgress=!0,this.card){let t=[{itemName:this.card.title,itemType:"Solution",owner:this.card.owner,modified:this.card.modified}],s={progressCallback:i=>{this._deletePercentage=Math.round(i)}};v(this.card.id,this._userSessionContextConsumer.value,s).then(i=>{let c=i[1],o;if(c?o=c.items.map(e=>({itemName:e.title,itemType:e.type,owner:e.owner,modified:e.modified})):o=t,o.length===0)this.solutionDeleted.emit({showAlert:!0,refreshSolutionsTimeout:!0}),this._isDeleteInProgress=!1,this.open=!1;else if(o.some(e=>e.itemType==="Solution"))this.card?this._processTemplates(this.card).then(e=>{this._templateInfos=e,this._showDeleteError=!0,this._showUndeletableItems=!0,this._isDeleteInProgress=!1}):(this._showDeleteError=!0,this._isDeleteInProgress=!1);else if(this.card){let e=[];e=c.items.map(l=>({id:l.id,title:l.title,type:l.type,owner:l.owner,modified:l.modified,typeKeywords:[],snippet:"",dependencies:[],url:k(l.id,this._authContextConsumer.value)})),this._templateInfos=e,this._showDeleteError=!1,this._showUndeletableItems=!0,this._isDeleteInProgress=!1}else this.solutionDeleted.emit({showAlert:!0,refreshSolutionsTimeout:!0}),this._isDeleteInProgress=!1,this.open=!1})}}willUpdate(t){if(t.has("open")){let s=t.get("open");this.open&&!s&&(this._fetchingTemplates=!0,this._processTemplates(this.card).then(i=>{this._templateInfos=i;let c=new Set(this._templateInfos.map(d=>d.id)),o=[],e=[],l=this._templateInfos.map(async d=>{let I=await this._getRelatedDependency(d.id);return{template:d,relatedItems:I}});Promise.all(l).then(d=>{for(let{template:a,relatedItems:L}of d)for(let _ of L)if(_.relationshipType!=="Solution2Item")for(let p of _.relatedItemIds)c.has(p)||o.push({controlItemId:a.id,dependencyItemId:p});else{let p=[];for(let n of _.relatedItemIds)p.push({controlItemId:a.id,dependencyItemId:n});let N=p.reduce((n,r)=>(n[r.controlItemId]||(n[r.controlItemId]=new Set),n[r.controlItemId].add(r.dependencyItemId),n),{}),y=Object.entries(N).filter(([n,r])=>r.size>1).flatMap(([n,r])=>Array.from(r).map(O=>({controlItemId:n,dependencyItemId:O})));y.length>0&&(e=e.concat(y))}this._nonSolutionDependencyItems=Array.from(new Map([...o,...e].map(a=>[`${a.controlItemId}:${a.dependencyItemId}`,a])).values());let I=this._nonSolutionDependencyItems.map(a=>a.controlItemId),A=[...new Set(I)];this._accordion.value.selectItems(A),this._fetchingTemplates=!1})}))}}updated(t){t.has("_showUndeletableItems")&&this._showUndeletableItems!==t.get("_showUndeletableItems")&&this._accordion.value.selectItems(this._templateInfos.map(s=>s.id))}render(){let t=this._fetchingTemplates?"":"display-none",s=this._fetchingTemplates?"display-none":"",i=[...new Set(this._nonSolutionDependencyItems.map(e=>e.controlItemId))],c=this._templateInfos.length-this._getDependencyCount(),o=this._translations.deletionCount.replace("{{deleteableCount}}",c.toString()).replace("{{totalCount}}",this._templateInfos.length.toString());return h`<calcite-dialog class="panel-bg-color" .closeDisabled=${this._isDeleteInProgress} .heading=${this._translations.title.replace("{{solution}}",this.card?.title??"")} id=${this._translations.title.replace("{{solution}}",this.card?.title??"")??$} modal kind=danger .open=${this.open} width=l outside-close-disabled @calciteDialogBeforeClose=${()=>{this.solutionDeleteDialogBeforeClose.emit()}} @calciteDialogClose=${()=>{this.open=!1,this.solutionDeleteDialogOpen.emit(!1)}}>${this._isDeleteInProgress?h`<calcite-loader .label=${this._translations.deleteInProgress} scale=l .text=${this._translations.deleteInProgress} type=determinate-value .value=${this._deletePercentage}></calcite-loader>`:this._showUndeletableItems?h`<calcite-label class=${m(s)} layout=inline>${this._translations.failedToDeleteItems}</calcite-label><solution-item-accordion class=${m(s)} .itemRelationshipDependencies=${[]} link-type=action list-selection-mode=multiple .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} ${f(this._accordion)}></solution-item-accordion><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonClose}</calcite-button>`:h`<calcite-label class=${m(s)} layout=inline scale=l>${this._translations.deletionNote}<calcite-chip .label=${o} scale=m>${o}</calcite-chip></calcite-label><calcite-loader class=${m(t)} label></calcite-loader><solution-item-accordion class=${m(s)} .itemRelationshipDependencies=${i} link-type=action list-selection-mode=multiple .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} ${f(this._accordion)}></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>${this._showDeleteError&&h`<calcite-alert icon=exclamation-mark-triangle kind=danger .label=${this._translations.failedToDelete} @calciteAlertClose=${()=>{this._showDeleteError=!1}} open><div slot=message>${this._translations.failedToDelete}</div></calcite-alert>`||""}`}</calcite-dialog>`}async _processTemplates(t){return await U(t.id,this._userSessionContextConsumer.value)}async _getRelatedDependency(t){let s=await g(t,"reverse",this._userSessionContextConsumer.value),i=await g(t,"forward",this._userSessionContextConsumer.value);return[...new Set(i.concat(s))]}_getDependencyCount(){let t=this._nonSolutionDependencyItems.map(s=>s.controlItemId);return[...new Set(t)].length}};T("solution-delete-dialog",w);return w},a,c)
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250918 */
4
- import b from"./VFLFL5RJ.js";import a from"./DJPFENB6.js";import"./MNBX566Z.js";import"./IVYZCEOK.js";import"./MIQMPLJK.js";import"./NX4AX3KO.js";import"./OC42FDOJ.js";import"./QCYE43LA.js";import"./XJHXUHBP.js";import"./PY3L2YRP.js";import"./QSVVVRGK.js";import"./4FXJXLF3.js";import"./2FPOATKA.js";import"./NMJGXHJ5.js";import"./Q35FCICJ.js";import"./VJ26REKL.js";import"./NXSAOV4D.js";import"./N4TGQB52.js";import"./P6QWU3HN.js";import"./V4T2ETXO.js";import"./4BHQRR43.js";import"./PD62IC7W.js";import"./2UUZVX4N.js";import{a as h}from"./WUCKWIIK.js";import"./SBVCJO27.js";import"./BJO4PB2J.js";import{b as d}from"./ZJ6Q46KE.js";import{E as l,G as n,I as i,h as c,i as t,o as r}from"./LZOLHH3N.js";import"./MYHIWH5I.js";export default $arcgis.t(([,{e:p}])=>{var g=c`/** @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-card{width:240px;height:100%;padding-bottom:2px}@media (max-width: 400px){calcite-card{width:100%}}calcite-card:hover img{-webkit-filter:brightness(20%);filter:brightness(20%);-webkit-transition:all 1s ease;-moz-transition:all 1s ease;-o-transition:all 1s ease;-ms-transition:all 1s ease;transition:all 1s ease}calcite-card:hover .hover-text{opacity:1;color:#fff}calcite-card:hover{outline:2px solid var(--calcite-ui-brand);box-sizing:border-box;cursor:pointer}.chip-updated{--calcite-chip-icon-color: var(--calcite-ui-brand);cursor:pointer}.chip-deployed{--calcite-chip-icon-color: var(--calcite-color-status-success)}.hover-text{transition:.5s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:row;align-items:center;height:100%;font-size:1.2rem}.font-color-text-2{--calcite-label-text-color: var(--calcite-color-text-2)}.font-line-height{line-height:1.4}.font-size-size--1{font-size:var(--calcite-font-size--1)}.header-line-height{--calcite-label-margin-bottom: 0;margin-top:.5rem;margin-bottom:.7rem}.info-icon{--calcite-icon-color: var(--calcite-color-text-inverse);padding-inline-end:.3rem}.card-image-wrap{flex:0 0 auto}.card-image-wrap{width:100%;position:relative;margin-bottom:0;-webkit-box-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto}.card-image{width:100%;display:block}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip}a{text-decoration:none;color:inherit;outline:0;padding:0;margin:0;display:inherit;height:100%}`,o=class extends l{constructor(){super(...arguments),this._translations=h({name:"solution-details-card",blocking:!0}),this.detailsCardSelected=r()}static{this.properties={card:0,_translations:16}}static{this.styles=g}render(){let e=p(this.card.title);return t`<a href=${e??i} @click=${this._anchorClick}>${this._renderCard()}</a>`}_anchorClick(e){e.preventDefault()}_cardSelected(){this.detailsCardSelected.emit(this.card)}_renderCard(){let e=this.card,m=e.chip==="updated"?"chip-updated":this.card.chip==="deployed"?"chip-deployed":"",s="solution-details-card-chip",a=e.chip==="new"?this._translations.newSolution:e.chip==="updated"?this._translations.updated:this._translations.deployed;return t`<calcite-card .label=${e.snippet} @click=${this._cardSelected}><div class="card-image-wrap" slot=thumbnail><img alt=${e.title??i} class="thumbnail card-image" src=${e.thumbnailUrl??i}><div class="hover-text">${this._translations.viewDetails}</div></div><calcite-label slot=heading class="header-line-height" scale=l>${e.title}</calcite-label><p slot=description class="font-color-text-2 font-line-height font-size-size--1">${e.snippet}</p>${e.chip!=="none"?t`<div slot=footer-end><calcite-chip class=${n(m)} .icon=${e.chip==="updated"||e.chip==="new"?"mega-phone":"check-circle"} id=${s} .label=${a} .value=${a} scale=s></calcite-chip><calcite-tooltip .referenceElement=${s}><span>${a}</span></calcite-tooltip></div>`:void 0}<div slot=footer-start></div></calcite-card>`}};d("solution-details-card",o);return o},a,b)
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250918 */
4
- import{b}from"./DOI6UXL3.js";import{a as f}from"./WUCKWIIK.js";import"./SBVCJO27.js";import"./BJO4PB2J.js";import{b as u}from"./ZJ6Q46KE.js";import{C as l,D as a,E as w,G as o,h as _,i as h,l as c}from"./LZOLHH3N.js";import"./MYHIWH5I.js";var $=_`/** @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}.display-none{display:none}.display-flex{display:flex}.margin-top-1-2{margin-top:.5rem}.margin-left-1-2{margin-left:.5rem}.square-32{width:32px;height:32px}.square-40{width:40px;height:40px}.square-48{width:48px;height:48px}.width-40{width:40px}.square-40-41{width:40px;height:41px}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.box-shadow{box-shadow:0 1px 2px #0000004d}.margin-bottom-1-2{margin-bottom:.5rem}`,m=class extends w{constructor(){super(...arguments),this.enabledLayerIds=[],this.enableLegend=!1,this.enableFloorFilter=!1,this.enableFullscreen=!1,this.enableSearch=!1,this.enableBasemap=!1,this.enableHome=!1,this.enableSingleExpand=!1,this.zoomToolsSize="m",this.layout="vertical",this.mapWidgetsSize="m",this.enableMapPicker=!1,this.enableMapLayerPicker=!1,this.position="top-right",this.stackTools=!0,this.enableSelectionTool=!1,this.toolOrder=["home","legend","search","fullscreen","floorfilter","selectiontool","map-picker","map-layer-picker"],this.mapInfos=[],this.defaultLayerId="",this.isMobile=!1,this.selectedWebMapId="",this.showOnlyUpdatableLayers=!1,this._hasFloorInfo=!1,this._translations=f({name:"map-tools",blocking:!0}),this._showTools=!0,this._showBasemapWidget=!1,this._showFloorFilter=!1,this._showFullscreen=!1,this._showLegendWidget=!1,this._showSearchWidget=!1,this._selectionToolActive=!1,this._showEllipsisTools=!0,this._ellipsisTools=[],this._basemapElement=l(),this._floorFilterElement=l(),this._fullscreenElement=l(),this._legendElement=l(),this._searchElement=l(),this._widgets=[],this._selectionToolElement=l(),this._mapTools=[],this._mapTool=l()}static{this.properties={basemapConfig:0,enabledLayerIds:0,enableLegend:5,enableFloorFilter:5,enableFullscreen:5,enableSearch:5,enableBasemap:5,enableHome:5,enableSingleExpand:5,zoomToolsSize:1,layout:1,mapView:0,mapWidgetsSize:1,enableMapPicker:5,enableMapLayerPicker:5,position:1,searchConfiguration:0,stackTools:5,enableSelectionTool:5,toolOrder:0,selectedLayer:0,mapInfos:0,defaultLayerId:1,isMobile:5,parentComponentHeight:9,parentComponentWidth:9,selectedWebMapId:1,showOnlyUpdatableLayers:5,_hasFloorInfo:16,_translations:16,_showTools:16,_showBasemapWidget:16,_showFloorFilter:16,_showFullscreen:16,_showLegendWidget:16,_showSearchWidget:16,_selectionToolActive:16,_showEllipsisTools:16,_ellipsisTools:16}}static{this.styles=$}willUpdate(e){e.has("mapView")&&this.mapViewWatchHandler(),e.has("parentComponentWidth")&&this.parentComponentWidth&&this.parentComponentWidthWatchHandler(this.parentComponentWidth),e.has("_showBasemapWidget")&&(this.hasUpdated||this._showBasemapWidget!==!1)&&this._showBasemapWidgetWatchHandler(this._showBasemapWidget),e.has("_showFloorFilter")&&(this.hasUpdated||this._showFloorFilter!==!1)&&this._showFloorFilterWatchHandler(this._showFloorFilter),e.has("_showFullscreen")&&(this.hasUpdated||this._showFullscreen!==!1)&&this._showFullscreenWatchHandler(this._showFullscreen),e.has("_showLegendWidget")&&(this.hasUpdated||this._showLegendWidget!==!1)&&this._showLegendWidgetWatchHandler(this._showLegendWidget),e.has("_showSearchWidget")&&(this.hasUpdated||this._showSearchWidget!==!1)&&this._showSearchWidgetWatchHandler(this._showSearchWidget)}async mapViewWatchHandler(){await this.mapView?.when(()=>{this.enableHome&&this._initHome(),this.parentComponentWidth&&this._updateTools(this.parentComponentWidth)})}async parentComponentWidthWatchHandler(e){this._updateTools(e)}async _showBasemapWidgetWatchHandler(e){let s=this._basemapElement.value?this._basemapElement.value.basemapWidget:void 0;s&&(e?this.mapView?.ui.add(s,{position:this.position,index:1}):this.mapView?.ui.remove(s))}async _showFloorFilterWatchHandler(e){let s=this._floorFilterElement.value?this._floorFilterElement.value.floorFilterWidget:void 0;s&&(e?this.mapView?.ui.add(s,{position:this.position,index:1}):this.mapView?.ui.remove(s))}async _showFullscreenWatchHandler(e){let s=this._fullscreenElement.value?this._fullscreenElement.value.fullscreenWidget:void 0;s&&(e?s.viewModel.state==="ready"&&s.viewModel.enter():s.viewModel.state==="active"&&s.viewModel.exit())}async _showLegendWidgetWatchHandler(e){let s=this._legendElement.value?this._legendElement.value.legendWidget:void 0;s&&(e?this.mapView?.ui.add(s,{position:this.position,index:1}):this.mapView?.ui.remove(s))}async _showSearchWidgetWatchHandler(e){let s=this._searchElement.value?this._searchElement.value.searchWidget:void 0;s&&(e?this.mapView?.ui.add(s,{position:this.position,index:1}):this.mapView?.ui.remove(s))}async load(){this._mapTools=[...this.toolOrder],await this._initModules()}render(){this._setZoomToolsSize();let e=this.layout==="horizontal"?"display-flex":"",s=this._getToggleIcon(),i=this._showTools?e:"display-none",t=this._showEllipsisTools?"":"display-none",n=this._showSearchWidget?"":"display-none",r=this._showBasemapWidget?"":"display-none",d=this._showLegendWidget?"":"display-none",p=this._showFloorFilter?"":"display-none",y=this._showFullscreen?"":"display-none",W=this._showTools?this._translations.collapse:this._translations.expand,T=!this.enableBasemap&&!this.enableFullscreen&&!this.enableLegend&&!this.enableSearch&&!this.enableMapPicker&&!this.enableMapLayerPicker?"display-none":"",v=this.enableSingleExpand?this.layout==="horizontal"?"margin-left-1-2":"margin-top-1-2":"",F=this._ellipsisTools.length>0&&this._showTools?"":"display-none",g=this.stackTools&&this._ellipsisTools.length===0?"box-shadow":"";return h`<div class=${`${T} ${e}`}>${this.enableSingleExpand?h`<div class=${o(g)}>${this._getActionGroup(s,!1,W||"",()=>this._toggleTools())}</div>`:void 0}<div class=${`${v} ${g} ${i}`}>${this._getMapWidgets(this._mapTools)}</div><div><div class=${o(F)}>${this._getActionGroup("ellipsis",!1,"",()=>this._toggleEllipsisTools())}<div class=${o(t)}>${this._getMapWidgets(this._ellipsisTools)}</div></div></div></div><basemap-gallery .basemapConfig=${this.basemapConfig} class=${o(r)} .mapView=${this.mapView} ${a(this._basemapElement)}></basemap-gallery><map-search class=${o(n)} .mapView=${this.mapView} result-graphic-enabled .searchConfiguration=${this.searchConfiguration} ${a(this._searchElement)}></map-search><map-legend class=${o(d)} .mapView=${this.mapView} ${a(this._legendElement)}></map-legend><map-fullscreen class=${o(y)} .mapView=${this.mapView} @fullscreenStateChange=${E=>this._fullscreenStateChange(E.detail)} ${a(this._fullscreenElement)}></map-fullscreen><floor-filter class=${o(p)} .enabled=${this.enableFloorFilter} .mapView=${this.mapView} ${a(this._floorFilterElement)}></floor-filter><selection-tool .mapView=${this.mapView} @drawingComplete=${()=>{this._selectionToolActive=!this._selectionToolActive}} .selectedLayerId=${this.selectedLayer?.id} tool=rectangle ${a(this._selectionToolElement)}></selection-tool>${this.enableMapPicker&&h`<map-picker class=mapPickerClass .height=${(this.parentComponentHeight??0)-25} id=map-picker .mapInfos=${this.mapInfos} reference-element=map .selectedWebMapId=${this.selectedWebMapId} show-map-list-in-popover></map-picker>`||""}${this.enableMapLayerPicker&&h`<map-layer-picker appearance=transparent .defaultLayerId=${this.defaultLayerId} .enabledLayerIds=${this.enabledLayerIds} .height=${(this.parentComponentHeight??0)-25} .isMobile=${this.isMobile} .mapView=${this.mapView} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} reference-element=layers scale=s .selectedIds=${this.selectedLayer?[this.selectedLayer.id]:[]} show-layers-list-in-popover show-tables type=dropdown></map-layer-picker>`||""}`}async _initModules(){let[e,s]=await b(["esri/widgets/Expand","esri/widgets/Home"]);this.Expand=e,this.Home=s}_initHome(){this.enableHome&&(this._homeWidget=this.Home&&new this.Home({view:this.mapView}))}_setZoomToolsSize(){let e=document.getElementsByClassName("esri-zoom")[0]?.children[0],s=document.getElementsByClassName("esri-zoom")[0]?.children[1];if(e&&s){let i=this.zoomToolsSize==="s"?"32px":this.zoomToolsSize==="m"?"40px":"48px";e.style.width=i,e.style.height=i,s.style.width=i,s.style.height=i}this.layout==="horizontal"&&(document.getElementsByClassName("esri-zoom")[0]?.setAttribute("style","position: absolute; top: 50px; left: 0"),document.getElementsByClassName("esri-ui-top-left")[0]?.setAttribute("style","flex-direction: row; gap: 5px; align-items: flex-start; direction: ltr !important; z-index: 1;"))}_getToggleIcon(){let e;return this.layout==="horizontal"?e=this._showTools?"chevrons-left":"chevrons-right":e=this._showTools?"chevrons-up":"chevrons-down",e}_updateTools(e){let s=JSON.parse(JSON.stringify(this.toolOrder));this._hasFloorInfo=this.mapView?.map?.floorInfo;let i=s.indexOf("floorfilter");i>-1&&!this._hasFloorInfo&&s.splice(i,1);let t=Math.ceil(e/40)-1;t&&t!==s.length-1?(this._mapTools=s.slice(0,t),this._ellipsisTools=s.slice(t,s.length)):(this._mapTools=s,this._ellipsisTools=[])}_getMapWidgets(e){let s=this._showFullscreen?"full-screen-exit":"full-screen",i=this._showFullscreen?this._translations.exitFullscreen:this._translations.enterFullscreen;return e.map(t=>{switch(t){case"legend":return this.enableLegend&&this.enableSingleExpand?this._getActionGroup("legend",!1,this._translations.legend,()=>this._showLegend()):this.enableLegend?this._getWidget(t,this._legendElement.value?.legendWidget,!0):void 0;case"search":return this.enableSearch&&this.enableSingleExpand?this._getActionGroup("magnifying-glass",!1,this._translations.search,()=>this._search()):this.enableSearch?this._getWidget(t,this._searchElement.value?.searchWidget,!0):void 0;case"fullscreen":return this.enableFullscreen&&this.enableSingleExpand?this._getActionGroup(s,!1,i||"",()=>this._expand()):this.enableFullscreen?this._getWidget(t,this._fullscreenElement.value?.fullscreenWidget,!1):void 0;case"basemap":return this.enableBasemap&&this.enableSingleExpand?this._getActionGroup("basemap",!1,this._translations.basemap,()=>this._toggleBasemapPicker()):this.enableBasemap?this._getWidget(t,this._basemapElement.value?.basemapWidget,!0):void 0;case"floorfilter":return this.enableFloorFilter&&this._hasFloorInfo&&this.enableSingleExpand?this._getActionGroup("urban-model",!1,this._translations.floorFilter,()=>this._toggleFloorFilter()):this.enableFloorFilter&&this._hasFloorInfo?this._getWidget(t,this._floorFilterElement.value?.floorFilterWidget,!0):void 0;case"selectiontool":return this.enableSelectionTool?this._getActionGroup("cursor-selection",!1,this._translations.selectByRectangle,()=>this._toggleSelectionTool(),this._selectionToolActive):void 0;case"home":return this.enableHome?this._getActionGroup("home",!1,this._translations.defaultMapView,()=>this._homeWidget?.go()):void 0;case"map-picker":return this.enableMapPicker?this._getActionGroup("map",!1,"",()=>{}):void 0;case"map-layer-picker":return this.enableMapLayerPicker?this._getActionGroup("layers",!1,"",()=>{}):void 0;default:return""}})}_fullscreenStateChange(e){e==="ready"&&this._showFullscreen?this._showFullscreen=!1:e==="active"&&!this._showFullscreen&&(this._showFullscreen=!0)}_getActionGroup(e,s,i,t,n){let r=this.mapWidgetsSize==="s"?"square-32":this.mapWidgetsSize==="m"?"square-40":"square-48",d=this.stackTools?"":"margin-bottom-1-2",p=this.stackTools?"":"box-shadow";return h`<div><calcite-action alignment=center .indicator=${n} class=${`map-actions ${r} ${d} border-bottom ${p}`} .disabled=${s} .icon=${e} id=${e??c} @click=${t} scale=s text ${a(this._mapTool)}><calcite-icon icon=cheveron-up scale=s slot=icon></calcite-icon></calcite-action>${!this.isMobile&&h`<calcite-tooltip .placement=${this.layout==="vertical"?"auto":"bottom"} reference-element=${e??c}><span>${i}</span></calcite-tooltip>`||""}</div>`}_getWidget(e,s,i){if(this._widgets.indexOf(e)<0&&this.mapView&&s){let t=this.toolOrder.indexOf(e),n=this.Expand&&new this.Expand({view:this.mapView,content:s}),r=this.enableHome?2:1;this.mapView.ui.add(i?n:s,{position:this.position,index:t>-1?t+r:1}),this._widgets.push(e)}}_showLegend(){this._showLegendWidget=!this._showLegendWidget,this._showTools=!1,this._toggleEllipsisTools()}_search(){this._showSearchWidget=!this._showSearchWidget,this._showTools=!1,this._toggleEllipsisTools()}_toggleBasemapPicker(){this._showBasemapWidget=!this._showBasemapWidget,this._showTools=!1,this._toggleEllipsisTools()}_toggleFloorFilter(){this._showFloorFilter=!this._showFloorFilter,this._showTools=!1,this._toggleEllipsisTools()}_toggleSelectionTool(){this._selectionToolActive=!this._selectionToolActive,this._selectionToolElement.value?.toggleSelectionTool()}_expand(){this._showFullscreen=!this._showFullscreen}_toggleTools(){this._showTools||(this._showBasemapWidget=!1,this._showSearchWidget=!1,this._showLegendWidget=!1,this._showFloorFilter=!1),this._showTools=!this._showTools,this._toggleEllipsisTools()}_toggleEllipsisTools(){this._showEllipsisTools=!this._showEllipsisTools}};u("map-tools",m);export{m as MapTools};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250918 */
4
- import{a,b}from"./4RG432JP.js";import"./OAEMMAHU.js";import"./MYHIWH5I.js";export{a as GroupEditorTypes,b as GroupSchema};
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250918 */
4
- import{b as A}from"./CCJFC54C.js";import"./MNBX566Z.js";import"./IVYZCEOK.js";import"./MIQMPLJK.js";import"./NX4AX3KO.js";import"./OC42FDOJ.js";import"./QCYE43LA.js";import"./XJHXUHBP.js";import"./PY3L2YRP.js";import"./QSVVVRGK.js";import"./4FXJXLF3.js";import"./2FPOATKA.js";import"./NMJGXHJ5.js";import"./Q35FCICJ.js";import"./VJ26REKL.js";import"./NXSAOV4D.js";import"./N4TGQB52.js";import"./P6QWU3HN.js";import"./V4T2ETXO.js";import"./4BHQRR43.js";import"./PD62IC7W.js";import"./WSVDVGIR.js";import{a as C}from"./NAKER4VF.js";import"./UFZWSZKP.js";import"./HRBA3DQH.js";import{c as F,d as O,j as y}from"./JAEOEKLB.js";import{j as b}from"./2UUZVX4N.js";import{c as S}from"./HGGBDR6W.js";import{b as E}from"./DOI6UXL3.js";import{a as x}from"./WUCKWIIK.js";import"./SBVCJO27.js";import"./BJO4PB2J.js";import{b as T}from"./ZJ6Q46KE.js";import{C as u,D as g,E as v,G as f,h as w,i as o,l as c,o as p,r as I}from"./LZOLHH3N.js";import"./MYHIWH5I.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=x({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 setColumnOrder(e){this._setColumnTemplates(e)}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 E(["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} .tableRef=${this.el}></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._getIds().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._getIds().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._layerEditHandle=s.on("edits",async()=>{await new Promise(a=>setTimeout(a,50)),await this._refresh(!0)}),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,this._layerEditHandle&&this._layerEditHandle.remove();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)}}}_setColumnTemplates(e){this._table&&e&&(this._table.tableTemplate=this.TableTemplate&&new this.TableTemplate({columnTemplates:e}))}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(e){if(await this._validateActiveEdits([],this.selectedIds)){this._table&&await this._table.refresh(),this._relatedFeatureTable&&await this._relatedFeatureTable.refresh(),this._allIds=await this.queryAllIds();let t=this._getSelectedLayer(this.selectedRelatedIds);if(t&&this.relatedRecordToggled.emit(t),!e){let i=this._getSelectedIds();this.featureSelectionChange.emit(i)}}}_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};
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250918 */
4
- import{a as v}from"./HYCRM4CP.js";import{b as I}from"./IKG4ESDZ.js";import{a as w,b as f,d as y}from"./JAEOEKLB.js";import"./2UUZVX4N.js";import"./HGGBDR6W.js";import{a as L}from"./WUCKWIIK.js";import"./SBVCJO27.js";import"./BJO4PB2J.js";import{b as u}from"./ZJ6Q46KE.js";import{C as o,D as d,E as g,G as p,H as c,h as b,i,l,o as h,r as _}from"./LZOLHH3N.js";import"./MYHIWH5I.js";var $=b`@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}.map-layer-picker-container{width:100%;align-items:center}.map-layer-picker{position:relative;width:100%;display:inline-block}.padding-bottom-1{padding-bottom:1rem}.layer-picker-dropdown{height:100%;width:100%}.max-width-350{max-width:350px}.height-100{height:100%}.disabled{cursor:default!important;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.no-bottom-margin{--calcite-label-margin-bottom: 0px}.layer-picker-label-container{align-items:center;display:inline-flex;height:100%;padding-inline-start:1rem;padding-inline-end:1rem}.padding-start-1{padding-inline-start:1rem}.cursor-default{cursor:default}.popover-list{overflow:auto;width:250px}}`,m=class extends g{constructor(){super(...arguments),this.appearance="transparent",this.defaultLayerId="",this.display="inline-block",this.enabledLayerIds=[],this.isMobile=!1,this.showOnlyUpdatableLayers=!1,this.placeholderIcon="",this.selectedIds=[],this.scale="m",this.showTables=!1,this.showTablesDisabled=!1,this.showSingleLayerAsLabel=!1,this.type="select",this.showLayersListInPopover=!1,this.referenceElement="",this.force=!1,this._hasMultipleLayers=!0,this._hasValidLayers=!0,this._isDropdownOpen=!1,this.ids=[],this.selectedName="",this._translations=L({name:"map-layer-picker",blocking:!0}),this.defaultLayerHonored=!1,this._layerSelectElement=o(),this._layerComboboxElement=o(),this._pnContextConsumer=I({context:v,subscribe:!0}),this._skipEditCheck=!1,this._popover=o(),this.beforeLayerSelectionChange=h(),this.idsFound=h(),this.noLayersFound=h(),this.layerSelectionChange=h()}static{this.properties={appearance:1,defaultLayerId:1,display:1,enabledLayerIds:0,height:9,isMobile:5,mapView:0,showOnlyUpdatableLayers:5,placeholderIcon:1,selectedIds:0,scale:1,showTables:5,showTablesDisabled:5,showSingleLayerAsLabel:5,type:1,showLayersListInPopover:5,referenceElement:1,force:16,_hasMultipleLayers:16,_hasValidLayers:16,_isDropdownOpen:16,ids:16,selectedName:16,_translations:16}}static{this.styles=$}static{this.shadowRootOptions=_}willUpdate(e){e.has("mapView")&&this.hasUpdated&&this.mapViewWatchHandler(),e.has("type")&&(this._layerElement=this.type==="select"?this._layerSelectElement:this._layerComboboxElement),e.has("selectedIds")&&this.hasUpdated&&this.mapView&&(async()=>{let t=await y(this.mapView,this.selectedIds[0]);this.selectedName=t?.title??""})(),e.has("enabledLayerIds")&&this.hasUpdated&&this.enabledLayerIdsWatchHandler()}async enabledLayerIdsWatchHandler(){let e=this.selectedIds.length>0&&!this.enabledLayerIds.includes(this.selectedIds[0]),t=this.enabledLayerIds.some(s=>!this.ids.includes(s));e?this.mapViewWatchHandler():t&&this._setLayers(),this._hasMultipleLayers=this.enabledLayerIds.length>1}async mapViewWatchHandler(){await this._setLayers(),this.ids?.length>0?(this._hasValidLayers=!0,this._hasMultipleLayers=this.ids.length>1,await this._setSelectedLayer(this.ids[0])):(this._hasValidLayers=!1,this.noLayersFound.emit())}async setLayerById(e,t=!1){this._skipEditCheck=t,!t||t&&e!==this.selectedIds[0]?this._setSelectedLayer(e):t&&e===this.selectedIds[0]&&(this.force=!0,setTimeout(()=>{this.force=!1},10)),this._skipEditCheck=!1}async setLayerByIds(e,t=!1){this._skipEditCheck=t,this._layerSelectionChange(e),this._skipEditCheck=!1}async updateLayer(){await this._setSelectedLayer(this.ids[0])}async load(){await this._setLayers(),this.ids?.length>0?(this._hasValidLayers=!0,this._hasMultipleLayers=this.ids.length>1,await this._setSelectedLayer(this.ids[0])):(this._hasValidLayers=!1,this.noLayersFound.emit())}render(){let e="map-layer-picker",t=this.height&&this.height>0&&!this.showLayersListInPopover?{height:`${this.height.toString()}px`}:{};return t={...t,display:this.display},i`<div class="map-layer-picker-container" style=${c(t)}><div class="map-layer-picker" style=${c(t)}>${this._hasValidLayers?!this._hasMultipleLayers&&this.showSingleLayerAsLabel?this._getSingleLayerPlaceholder():this.type==="combobox"?this._getCombobox(e):this.type==="select"?this._getSelect(e):this.showLayersListInPopover?this._getMapLayerPopOver():this._getDropdown(e):this._getInvalidPlaceholder()}</div></div>`}loaded(){if(this.ids?.length>0||this.selectedIds?.length===1){let e=this.selectedIds.length===1?this.selectedIds[0]:this.ids[0];this.type==="select"?this._layerElement.value&&(this._layerElement.value.value=e):this.type==="dropdown"&&(this.selectedName=this._layerNameHash&&Object.keys(this._layerNameHash).indexOf(e)>-1?this._layerNameHash[e].name:this._tableNameHash&&Object.keys(this._tableNameHash).indexOf(e)>-1?this._tableNameHash[e].name:"")}this._popover.value?.addEventListener("calcitePopoverOpen",()=>{this.el.querySelector("calcite-dropdown-item[selected]")?.setFocus()})}_getMapLayerPopOver(){let e=this.height&&this.height>0?{"max-height":`${this.height.toString()}px`}:{};return i`<calcite-popover auto-close focus-trap-disabled .label=${this.referenceElement} placement=left .referenceElement=${this.referenceElement} scale=s ${d(this._popover)}><div class=popover-list style=${c(e)}>${this._getMapLayerOptions()}</div></calcite-popover>`}_getInvalidPlaceholder(){return i`<div><calcite-notice class="height-100" icon=exclamation-mark-triangle id=no-valid-layers kind=danger open><div slot=message>${this._translations.noLayersFound}</div></calcite-notice><calcite-tooltip .label=${this._translations.enableEditUpdate} placement=bottom reference-element=no-valid-layers><span>${this._translations.enableEditUpdate}</span></calcite-tooltip></div>`}_getSingleLayerPlaceholder(){let e=this._getItemTypeIcon();return i`<div class="layer-picker-label-container cursor-default"><calcite-icon .icon=${e} scale=s></calcite-icon><calcite-label class="no-bottom-margin padding-start-1">${this.selectedName}</calcite-label></div>`}_getSelect(e){return i`<calcite-select id=${e??l} label @calciteSelectChange=${()=>this._layerSelectionChange()} .scale=${this.scale} ${d(this._layerElement)}>${this._getMapLayerOptions()}</calcite-select>`}_getCombobox(e){return i`<calcite-combobox clear-disabled id=${e??l} label @calciteComboboxChange=${()=>this._layerSelectionChange()} .placeholderIcon=${this.placeholderIcon} .scale=${this.scale} selection-mode=single ${d(this._layerElement)}>${this._getMapLayerOptions()}</calcite-combobox>`}_getDropdown(e){return i`<calcite-dropdown class="layer-picker-dropdown" @calciteDropdownBeforeClose=${()=>this._isDropdownOpen=!1} @calciteDropdownBeforeOpen=${()=>this._isDropdownOpen=!0}>${this.isMobile?this._getDropdownButton():this._getActionDropdownButton(e)}<calcite-dropdown-group selection-mode=single>${this._getMapLayerOptions()}</calcite-dropdown-group></calcite-dropdown>`}_getActionDropdownButton(e){return i`<calcite-action id=${e??l} slot=trigger text>${this._getDropdownButton()}</calcite-action>`}_getDropdownButton(){let e=this._getItemTypeIcon(),t=this.isMobile?"":"max-width-350",s=this.isMobile?"trigger":"",a=this._isDropdownOpen?"chevron-up":"chevron-down";return i`<calcite-button alignment=icon-end-space-between .appearance=${this.appearance} class=${p(t)} .iconEnd=${a} .iconStart=${e} kind=neutral slot=${s??l} width=full><div>${this.selectedName}</div></calcite-button>`}_getItemTypeIcon(){let e="layers";if(this.selectedIds.length>0&&this._layerNameHash){let t=this.selectedIds[0];e=Object.keys(this._layerNameHash).indexOf(t)>-1?"layers":"table"}return e}_getMapLayerOptions(){return this.ids.reduce((e,t)=>(this._validLayer(t)?e.push(this._getItem(t,"layer")):this._validTable(t)&&e.push(this._getItem(t,"table")),e),[])}_getItem(e,t){let s=t==="layer"&&this._layerNameHash?this._layerNameHash[e]:this._tableNameHash?this._tableNameHash[e]:void 0,a=this.showOnlyUpdatableLayers?s&&!s.supportsUpdate:!1,r=s?.name,n=this.selectedIds.indexOf(e)>-1;return this.type==="combobox"?i`<calcite-combobox-item .disabled=${a} .selected=${n} .textLabel=${r} .value=${e}></calcite-combobox-item>`:this.type==="select"?i`<calcite-option .disabled=${a} .label=${r} .selected=${n} .value=${e}></calcite-option>`:this.force&&n||!this.force?i`<calcite-dropdown-group class=${p(a?"disabled":"")} id=${r??l} .selectionMode=${a?"none":"single"}><calcite-dropdown-item .disabled=${!!(t==="table"&&this.showTablesDisabled)} .iconStart=${t} @click=${a?void 0:()=>void this._setSelectedLayer(e)} .selected=${n}>${r}</calcite-dropdown-item></calcite-dropdown-group>`:null}async _setSelectedLayer(e){if(e!==this.selectedIds[0]){let t;if(this.defaultLayerId&&!this.defaultLayerHonored&&(t=this._getLayerFromHash(this.defaultLayerId),this.defaultLayerHonored=t!==void 0,e=this.defaultLayerHonored?this.defaultLayerId:e),t=t||this._getLayerFromHash(e),!this._skipEditCheck&&this.beforeLayerSelectionChange.emit({currentId:this.selectedIds[0],newId:e,ref:this.el}).defaultPrevented)return;this.selectedName=t?.name,this.selectedIds=[e],this._popover.value&&(this._popover.value.open=!1),this.layerSelectionChange.emit(this.selectedIds)}else{let t=this.mapView&&await y(this.mapView,this.selectedIds[0]);this.selectedName=t?.title||""}}_getLayerFromHash(e){return this._layerNameHash&&Object.keys(this._layerNameHash).indexOf(e)>-1?this._layerNameHash[e]:this._tableNameHash&&Object.keys(this._tableNameHash).indexOf(e)>-1?this._tableNameHash[e]:void 0}async _setLayers(){if(this.mapView){await this._initLayerTableHash();let e=[];this._layerNameHash&&(e=this.showOnlyUpdatableLayers?this._getEditableIds(this._layerNameHash):Object.keys(this._layerNameHash));let t=[];this._tableNameHash&&(t=this.showTables?this.showOnlyUpdatableLayers?this._getEditableIds(this._tableNameHash):Object.keys(this._tableNameHash):[]),this.ids=[...e.reverse().filter(s=>this.enabledLayerIds?.length>0?this.enabledLayerIds.reverse().indexOf(s)>-1:!0),...t.reverse().filter(s=>this.enabledLayerIds?.length>0?this.enabledLayerIds.reverse().indexOf(s)>-1:!0)],this.idsFound.emit({layerIds:e,tableIds:t})}}_getEditableIds(e){return Object.keys(e).filter(t=>e[t].supportsUpdate)}async _initLayerTableHash(){this._layerNameHash=this.mapView&&await w(this.mapView,this.showOnlyUpdatableLayers),this._tableNameHash=this.showTables&&this.mapView?await f(this.mapView,this.showOnlyUpdatableLayers):{}}_validLayer(e){let t=this._pnContextConsumer.value,s=this._layerNameHash&&this._layerNameHash[e]?.name;return s!==void 0&&Object.keys(t?.managedLayers||[]).indexOf(s)<0&&(this.enabledLayerIds?.length>0?this.enabledLayerIds.indexOf(e)>-1:!0)}_validTable(e){let t=this._pnContextConsumer.value,s=this._tableNameHash&&this._tableNameHash[e]?.name,a=s&&this.showTables;return a?(t?.managedTables||[]).indexOf(s)<0&&(this.enabledLayerIds?.length>0?this.enabledLayerIds.indexOf(e)>-1:!0):a!==void 0}_layerSelectionChange(e){if(this._layerElement.value){let t=e||(Array.isArray(this._layerElement.value.value)?this._layerElement.value.value:[this._layerElement.value.value]);if(JSON.stringify(t)!==JSON.stringify([""])){if(!this._skipEditCheck&&this.beforeLayerSelectionChange.emit({currentIds:this.selectedIds,newIds:t,ref:this.el}).defaultPrevented)return;this.selectedIds=t,this.layerSelectionChange.emit(this.selectedIds)}}}};u("map-layer-picker",m);export{m as MapLayerPicker};
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250918 */
4
- import j from"./6TP52DHM.js";import i from"./7N3YHDOZ.js";import e from"./VFLFL5RJ.js";import{b as x}from"./K6A7A3JC.js";import b from"./DJPFENB6.js";import{a as C,c as v}from"./LDYIKFEJ.js";import{b as l}from"./IKG4ESDZ.js";import"./MNBX566Z.js";import"./IVYZCEOK.js";import"./MIQMPLJK.js";import"./NX4AX3KO.js";import"./OC42FDOJ.js";import"./QCYE43LA.js";import"./XJHXUHBP.js";import"./PY3L2YRP.js";import"./QSVVVRGK.js";import"./4FXJXLF3.js";import"./2FPOATKA.js";import"./NMJGXHJ5.js";import"./Q35FCICJ.js";import"./VJ26REKL.js";import"./NXSAOV4D.js";import"./N4TGQB52.js";import"./P6QWU3HN.js";import"./V4T2ETXO.js";import"./4BHQRR43.js";import"./PD62IC7W.js";import{k as y,l as w,m as f,o as a}from"./2UUZVX4N.js";import{a as m}from"./WUCKWIIK.js";import"./SBVCJO27.js";import"./BJO4PB2J.js";import{b as g}from"./ZJ6Q46KE.js";import{D as p,E as _,G as o,h,i as s,j as d,l as c,o as u}from"./LZOLHH3N.js";import"./MYHIWH5I.js";export default $arcgis.t(([,,i,S])=>{var D=h`/** @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%;--calcite-panel-background-color: var(--calcite-color-foreground-2)}.card-group{overflow:hidden;padding:.2rem 1rem}.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}.display-none{display:none}.flex-direction-column{flex-direction:column}h1{font-weight:unset;margin:0;padding:0}`,n=class extends _{constructor(){super(),this.agoSolutionsGroupId="",this.enterpriseSolutionsGroupId="",this.locale="",this.orgUrl="",this.portalUrl="",this.sortType="created",this._cards=[],this._cardsFetching=!1,this._newId="",this._refs={},this._showDeleteCompleteAlert=!1,this._translations=m({name:"solutions-deployed-panel",blocking:!0}),this._agoTerms=a,this._allCards=[],this._authContextConsumer=l({context:v,subscribe:!0}),this._baseAgoTerms=a,this._categories=[],this._delay=!1,this._isOrgAdmin=!1,this._owner=f.OWNER,this._sortField="created",this._sortOrder="desc",this._userSessionContextConsumer=l({context:C,subscribe:!0}),this.deployedCardsFetched=u(),this.listenOn(window,"solutionDeleted",e=>this.reload(e.detail.showAlert,e.detail.refreshSolutionsTimeout)),this.listenOn(window,"solutionConfigureDialogClose",e=>{e.detail&&this.reload(!1,!1)}),this.listenOn(window,"deployProgressEnd",this._refresh)}static{this.properties={agoSolutionsGroupId:1,enterpriseSolutionsGroupId:1,locale:1,orgUrl:1,portalUrl:1,sortType:1,_cards:16,_cardsFetching:16,_newId:16,_refs:16,_showDeleteCompleteAlert:16,_translations:16}}static{this.styles=D}async reload(e=!0,t=!0){this._cardsFetcher=new i(this.locale,this.orgUrl,this.portalUrl),this._cardsFetcherDeployed=new i(this.locale,this.orgUrl,this.portalUrl),t?setTimeout(()=>{(async()=>{try{await this._getDeployedSolutions()}catch(r){console.error("Error getting deployed solutions:",r)}})()},500):await this._getDeployedSolutions(),e&&(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=x(this._authContextConsumer.value),await this._getDeployedSolutions()}render(){let e=this._cardsFetching?"":"display-none",t=this._cardsFetching?"display-none":"";return s`<h1><calcite-loader class=${o(e)} .label=${this._translations.fetchingDeployedSolutions}></calcite-loader><calcite-panel class=${o(t)}><calcite-card-group class="card-group" .label=${this._translations.allDeployed}>${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></h1>`}updated(e){e.has("_refs")&&this._newId&&Object.keys(this._refs).indexOf(this._newId)>-1&&(this._refs[this._newId].renderConfigureDialog(!0),this._newId="")}_renderCards(){return this._cards.length?(this._refs={},this._cards.map(e=>s`<solution-deployed-card .allowDelete=${this._isOrgAdmin||e.owner===this._userSessionContextConsumer.value.username||this.checkDeletePermissions()} .card=${e} .deployedDate=${e.created} .description=${e.snippet} .heading=${e.title} id=${e.id??c} .itemId=${e.id} .owner=${e.owner} .thumbnail=${e.thumbnailUrl} ${p(this._handleRefs)}></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>`}_handleRefs(e){e&&(this._refs[e.id]=e)}async _getDeployedSolutions(){this._cardsFetching=!0;let e=await S(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??[],this.deployedCardsFetched.emit(this._cards.length),this._cardsFetching=!1}_getSolutionsBriefcase(){return s`<div class="solutions-briefcase"><svg viewBox="0 0 32 32" width=200 height=200 xmlns=http://www.w3.org/2000/svg>${d`<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 r=this._getDomainValue(e.domain);this._categories=[`/Categories/${t}/${r}`]}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 w[e]}_getIndustryValue(e){return e==="AEC"?"AEC":y[e]}_clearFilterCategories(){this._categories=[]}checkDeletePermissions(){let e=this._authContextConsumer.value;return e?.PortalUserPrivileges&&e.PortalUserPrivileges.length>0?e.PortalUserPrivileges.some(t=>t==="portal:admin:deleteItems"):!1}async _refresh(e){let t=e.detail;t&&setTimeout(async()=>{await this._getDeployedSolutions(),this._newId=t},500)}};g("solutions-deployed-panel",n);return n},b,e,i,j)
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250918 */
4
- import{a as f}from"./WUCKWIIK.js";import"./SBVCJO27.js";import"./BJO4PB2J.js";import{b}from"./ZJ6Q46KE.js";import{C as r,D as p,E as c,G as l,H as m,h,i as a,o as n}from"./LZOLHH3N.js";import"./MYHIWH5I.js";var g=h`/** @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}.popover-map-list{overflow:auto;width:250px}.max-width-200{max-width:200px}.min-width-150{min-width:150px}`,d=class extends c{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=r(),this._loadedId="",this._skipEditCheck=!1,this._popover=r(),this.beforeMapInfoChange=n(),this.mapInfoChange=n()}static{this.properties={mapInfos:0,isMapLayout:5,height:9,showMapListInPopover:5,referenceElement:1,selectedWebMapId:1,_mapListExpanded:16,_translations:16}}static{this.styles=g}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(s=>s.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 a`${!this.showMapListInPopover&&this._getToolbar()||""}${this.showMapListInPopover?this._getMapListPopover():this._getMapNameList(this._mapListExpanded)}`}loaded(){let e=this._getWebMapInfo();e&&this._webMapSelected(e)}_getMapPicker(){let e="map-picker-expand-toggle",t=this._mapListExpanded?"chevron-up":"chevron-down",i=this.isMapLayout?"":"position-absolute",s=this.isMapLayout?"max-width-200":"width-full";return a`<div class=${l(s)}><calcite-button alignment=icon-end-space-between appearance=transparent class=${`width-full height-full ${i}`} .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",t=this.isMapLayout?"":"position-relative";return a`<div class=${`display-flex border-left-right ${t}`}><calcite-action-bar class=${`border-solid action-bar-size overflow-hidden ${e}`} expand-disabled layout=horizontal slot=header>${this._getMapPicker()}</calcite-action-bar></div>`}_getMapNameList(e){let t=this.showMapListInPopover?"position-relative":"position-absolute",i=this.isMapLayout?"max-width-200 min-width-150":"width-full",s=this.isMapLayout?"border-bottom-1":"border-bottom-2",u=e?`map-list border-solid ${s} adjusted-height ${i} ${t}`:"display-none";return a`<div class=${l(u)}><calcite-list id=mapList label selection-appearance=border selection-mode=single-persist ${p(this._list)}>${this.mapInfos.map(o=>a`<calcite-list-item .label=${o.name} @click=${()=>this._webMapSelected(o)} .selected=${o.id===this._loadedId} .value=${o.id}></calcite-list-item>`)}</calcite-list></div>`}_getMapListPopover(){let e=this.height&&this.height>0&&this.showMapListInPopover?{"max-height":`${this.height.toString()}px`}:{};return a`<calcite-popover auto-close focus-trap-disabled .label=${this.referenceElement} placement=left .referenceElement=${this.referenceElement} ${p(this._popover)}><div style=${m(e)} class=popover-map-list>${this._getMapNameList(!0)}</div></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",d);export{d as MapPicker};
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250918 */
4
- import{b as y}from"./K6A7A3JC.js";import{b,c as g}from"./LDYIKFEJ.js";import{b as s}from"./IKG4ESDZ.js";import"./2UUZVX4N.js";import{a as f}from"./WUCKWIIK.js";import"./SBVCJO27.js";import"./BJO4PB2J.js";import{b as u}from"./ZJ6Q46KE.js";import{C as n,D as c,E as d,G as p,H as l,I as h,h as r,i,o}from"./LZOLHH3N.js";import"./MYHIWH5I.js";var m=r`/** @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-shell-panel{z-index:1}.display-flex{display:flex}.flex-1,.flex-grow{flex:1}.flex-shrink-0{flex:0 0 auto}.border-override{border-top-width:var(--calcite-border-width-none);border-bottom-width:var(--calcite-border-width-none)}.header-override{--calcite-panel-header-content-space: 0px;--calcite-panel-header-background-color: var(--calcite-color-foreground-2);--calcite-panel-border-color: none}.label-override{--calcite-label-margin-bottom: 0px;padding-inline-start:1rem}.header-button-padding{padding-top:.5rem;padding-bottom:.5rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-start{padding-inline-start:1rem}.align-items-center{align-items:center}.justify-content-end{justify-content:end}.filter-width-350{--calcite-shell-panel-width: 350px}.z-index-2{z-index:2}@media (max-width: 800px){.filter{display:none}.filter-button{display:block;position:absolute;top:.5rem;left:.5rem;z-index:999}}@media (min-width: 800px){.filter-button{display:none}}.mock-fab{--calcite-fab-shadow-internal: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);box-shadow:var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));--calcite-button-background-color: var(--calcite-fab-background-color);--calcite-button-border-color: var(--calcite-fab-border-color);--calcite-button-text-color: var(--calcite-fab-text-color);--calcite-button-loader-color: var(--calcite-fab-loader-color)}.background-override{--calcite-shell-panel-background-color: var(--calcite-color-foreground-3);--calcite-panel-background-color: var(--calcite-color-foreground-3)}.position-relative{position:relative}.height-100{height:100%}`,a=class extends d{constructor(){super(...arguments),this.solutionsCount=0,this.sortType="created",this.filterOpen=!0,this.filters=[],this.isMobile=!1,this._translations=f({name:"solutions-deployed-shell",blocking:!0}),this._authContextConsumer=s({context:g,subscribe:!0}),this._isMobileContextConsumer=s({context:b,subscribe:!0,callback:e=>this.isMobile=e}),this._isOrgAdmin=!1,this._solutionsDeployedPanelRef=n(),this.filterRemoved=o(),this.tokenRefreshed=o()}static{this.properties={appConfig:1,solutionsCount:9,sortType:1,filterOpen:16,filters:16,isMobile:16,_translations:16}}static{this.styles=m}willUpdate(e){e.has("isMobile")&&(this.filterOpen=!this.isMobile)}async searchSolutions(e){console.log(e),"searchTerm"in e&&this._solutionsDeployedPanelRef.value?.searchSolutions(e),"sortType"in e&&this._sortChanged(e.sortType)}async load(){this._isMobileContextConsumer.value&&(this.isMobile=this._isMobileContextConsumer.value),this._isOrgAdmin=y(this._authContextConsumer.value)}render(){let e=this.filterOpen?"chevron-left":"chevron-right",t=this.isMobile?"justify-content-end":"";return i`<calcite-shell class="position-relative"><calcite-button appearance=outline-fill class="filter-button mock-fab z-index-2" icon-start=${e} kind=neutral @click=${this._toggleFilter} scale=m></calcite-button><calcite-panel class="border-override header-override background-override z-index-1"><div class=${`display-flex align-items-center ${t}`} slot=header-content><calcite-label class="label-override flex-grow" layout=inline>${this.isMobile?"":this._getFilterPanel()}</calcite-label><calcite-label class="label-override flex-shrink-0" layout=inline>${this._translations.numberOfSolutions.replace("{{count}}",this.solutionsCount.toString())}</calcite-label></div><div slot=header-actions-end>${this._renderDropdown()}</div>${this.isMobile&&this._getFilterPanel()||""}${this._getSolutionsAllPanel()}</calcite-panel></calcite-shell>`}_getFilterPanel(){let e=this.filterOpen?{display:"flex"}:"";return i`<calcite-panel class=${p(this.filterOpen?"background-override":"filter background-override")} id=solutions-all-shell-panel-start style=${l(e)}><solutions-deployed-filter-panel class="height-100 flex-1" .isMobile=${this.isMobile} .isOrgAdmin=${this._isOrgAdmin} @applyFilter=${this._filterApplied}></solutions-deployed-filter-panel></calcite-panel>`}_getSolutionsAllPanel(){let e=this.isMobile&&this.filterOpen?{display:"none"}:"";return i`<solutions-deployed-panel .agoSolutionsGroupId=${this.appConfig.primarySolutionsGroupId} .enterpriseSolutionsGroupId=${this.appConfig.agoBasedEnterpriseSolutionsGroupId} .locale=${this.appConfig.locale||"en"} .orgUrl=${this.appConfig.portalURL} @deployedCardsFetched=${this._updateSolutionCount} .portalUrl=${this.appConfig.portalURL} .sortType=${this.sortType} style=${l(e)} ${c(this._solutionsDeployedPanelRef)}></solutions-deployed-panel>`}_renderDropdown(){let e=[{displayValue:this._translations.sortByRelevance,sortType:"relevance"},{displayValue:this._translations.sortByTitle,sortType:"title"},{displayValue:this._translations.sortByDateDeployed,sortType:"created"}];return i`<calcite-dropdown width=m><calcite-button appearance=outline-fill class="header-button-padding" icon-start=sort-descending kind=neutral slot=trigger>${this.isMobile?"":this._getString(this.sortType)}</calcite-button><calcite-dropdown-group group-title=${this._translations.chooseSortType??h}>${e.map(t=>this._getDropdownItem(t.displayValue,t.sortType))}</calcite-dropdown-group></calcite-dropdown>`}_getDropdownItem(e,t){return this.sortType!==t?i`<calcite-dropdown-item @click=${()=>this._sortChanged(t)}>${e}</calcite-dropdown-item>`:i`<calcite-dropdown-item @click=${()=>this._sortChanged(t)} selected>${e}</calcite-dropdown-item>`}_getString(e){let t="";switch(e){case"created":t=this._translations.sortByDateDeployed;break;case"relevance":t=this._translations.sortByRelevance;break;case"title":t=this._translations.sortByTitle;break}return t}_updateSolutionCount(e){this.solutionsCount=e.detail}_sortChanged(e){this.sortType=e,this._solutionsDeployedPanelRef.value?.searchSolutions({sortType:e})}_toggleFilter(){this.filterOpen=!this.filterOpen}_filterApplied(e){e.detail?("displayValue"in e.detail&&"type"in e.detail&&e.detail.type==="industry"&&(this.filters=this.filters.filter(t=>t.type!=="industry"),this.filters.push(e.detail)),this._solutionsDeployedPanelRef.value?.searchSolutions(e.detail)):(this.filters=[],this._solutionsDeployedPanelRef.value?.searchSolutions())}};u("solutions-deployed-shell",a);export{a as SolutionsDeployedShell};
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250918 */
4
- import{m as i}from"./2UUZVX4N.js";import{a as h}from"./WUCKWIIK.js";import"./SBVCJO27.js";import"./BJO4PB2J.js";import{b as d}from"./ZJ6Q46KE.js";import{E as r,G as a,I as c,h as l,i as s,o}from"./LZOLHH3N.js";import"./MYHIWH5I.js";var u=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
- */.header-button-padding{padding-top:.5rem;padding-bottom:.5rem;padding-inline-end:1rem}.width-full{width:100%}.filter-layout-flex-row{display:flex;flex-direction:row;flex:1}.filter-layout-flex-column{display:flex;flex-direction:column;flex:1}.top-bottom-end-padding{padding-top:.5rem;padding-bottom:.5rem;padding-inline-end:1rem}calcite-panel{--calcite-panel-background-color: var(--calcite-color-foreground-1)}.border-color{--calcite-block-border-color: #00000000}`,n=class extends r{constructor(){super(),this.isAIsettingEnabled=!1,this.isAllSolutions=!1,this.isMobile=!1,this.isOrgAdmin=!1,this._activeFilterSettings={categories:[],isOwnerMySolutions:!0,searchTerm:""},this._translations=h({name:"solutions-deployed-filter-panel",blocking:!0}),this.applyFilter=o(),this._handleFilterRemoved=t=>{let e=t.detail;Array.isArray(e)?this._activeFilterSettings={...this._activeFilterSettings,categories:[...e]}:typeof e=="string"&&e.toLowerCase()===i.ORGANIZATION.toLowerCase()&&this.changeOwnerFilter(!0,!0)},this._resetToMySolutions=()=>{this.changeOwnerFilter(!0,!0)},this.listenOn(window,"filterRemoved",this._handleFilterRemoved),this.listenOn(window,"deployProgressEnd",this._resetToMySolutions)}static{this.properties={isAIsettingEnabled:5,isAllSolutions:5,isMobile:5,isOrgAdmin:5,_activeFilterSettings:16,_translations:16}}static{this.styles=u}changeOwnerFilter(t,e){this.isAllSolutions=!t,this._activeFilterSettings={...this._activeFilterSettings,isOwnerMySolutions:t};let p={displayValue:this._activeFilterSettings.isOwnerMySolutions?this._translations.mySolutions:this._translations.myOrgSolutions,type:"owner",value:this._activeFilterSettings.isOwnerMySolutions?i.OWNER:i.ORGANIZATION};e&&this.applyFilter.emit(p)}changeSearchFilter(t,e){this._activeFilterSettings={...this._activeFilterSettings,searchTerm:t},(t.length>=3||t==="")&&e&&this.applyFilter.emit({searchTerm:t})}clearFilters(){this.changeSearchFilter(""),this.applyFilter.emit(null),setTimeout(()=>{this.changeOwnerFilter(!0,!0)},500)}render(){return s`<div class=${a(this.isMobile?"filter-layout-flex-column":"filter-layout-flex-row")}>${this.isOrgAdmin&&this.renderOwnerBlock()||""}<calcite-input-text class="width-full top-bottom-end-padding" clearable icon=search @calciteInputTextInput=${t=>{this.changeSearchFilter(t.target.value,!0)}} .placeholder=${this._translations.search.solutions} slot=content-top .value=${this._activeFilterSettings.searchTerm}></calcite-input-text></div>`}renderOwnerBlock(){return s`<calcite-dropdown width=m overlay-positioning=fixed><calcite-button appearance=outline-fill class="header-button-padding" .iconStart=${this.isAllSolutions?"organization":"user"} kind=neutral slot=trigger>${this.isAllSolutions?this._translations.myOrgSolutions:this._translations.mySolutions}</calcite-button><calcite-dropdown-group group-title=${this._translations.owner??c}><calcite-dropdown-item icon-start=user @click=${()=>{this.changeOwnerFilter(!0,!0)}} .selected=${!this.isAllSolutions}>${this._translations.mySolutions}</calcite-dropdown-item><calcite-dropdown-item icon-start=organization @click=${()=>{this.changeOwnerFilter(!1,!0)}} .selected=${this.isAllSolutions}>${this._translations.myOrgSolutions}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}};d("solutions-deployed-filter-panel",n);export{n as SolutionsDeployedFilterPanel};
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250918 */
4
- import{b as v,c as S}from"./LDYIKFEJ.js";import{b as c}from"./IKG4ESDZ.js";import{a as _}from"./ZFUCUGNJ.js";import{k as y,l as m}from"./2UUZVX4N.js";import{a as b}from"./WUCKWIIK.js";import"./SBVCJO27.js";import"./BJO4PB2J.js";import{b as g}from"./ZJ6Q46KE.js";import{C as r,D as o,E as h,G as u,H as a,I as f,h as p,i,o as n}from"./LZOLHH3N.js";import"./MYHIWH5I.js";var w=p`/** @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
- */.display-flex{display:flex}.border-override{border-top-width:var(--calcite-border-width-none);border-bottom-width:var(--calcite-border-width-none)}.header-override{--calcite-panel-header-content-space: 0px;--calcite-panel-header-background-color: var(--calcite-color-foreground-2);--calcite-panel-border-color: none}.label-override{--calcite-label-margin-bottom: 0px;padding-inline-start:1rem}.header-button-padding{padding-top:.5rem;padding-bottom:.5rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-start{padding-inline-start:1rem}.align-items-center{align-items:center}.justify-content-end{justify-content:end}.filter-width-350{--calcite-shell-panel-width: 350px}.z-index-1{z-index:1}.z-index-2{z-index:2}h1{font-weight:unset;margin:0;padding:0}@media (max-width: 800px){.filter{display:none}.filter-button{display:block;position:absolute;top:.5rem;left:.5rem;z-index:999}}@media (min-width: 800px){.filter-button{display:none}}.mock-fab{--calcite-fab-shadow-internal: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);box-shadow:var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));--calcite-button-background-color: var(--calcite-fab-background-color);--calcite-button-border-color: var(--calcite-fab-border-color);--calcite-button-text-color: var(--calcite-fab-text-color);--calcite-button-loader-color: var(--calcite-fab-loader-color)}.background-override{--calcite-shell-panel-background-color: var(--calcite-color-foreground-3);--calcite-panel-background-color: var(--calcite-color-foreground-3)}.position-relative{position:relative}.height-100{height:100%}`,d=class extends h{constructor(){super(),this.solutionsCount=0,this.sortType="relevance",this.filterOpen=!0,this._filters=[],this.isMobile=!1,this._translations=b({name:"solutions-all-shell",blocking:!0}),this._allSolutionsPanelRef=r(),this._solutionsFilterPanelRef=r(),this._authContextConsumer=c({context:S,subscribe:!0}),this._isMobileContextConsumer=c({context:v,subscribe:!0,callback:e=>this.isMobile=e}),this.filterRemoved=n(),this.solutionsAllLoaded=n()}static{this.properties={appConfig:1,solutionsCount:9,sortType:1,filterOpen:16,_filters:16,isMobile:16,_translations:16}}static{this.styles=w}willUpdate(e){e.has("isMobile")&&(this.filterOpen=!this.isMobile)}async searchSolutions(e){if(console.log(e),"industry"in e||"domain"in e){e.displayValue=e.domain||e.industry;let t=e.industry?Object.entries(y).find(([,l])=>l===e.industry)?.[0]:void 0,s=e.domain?Object.entries(m).find(([,l])=>l===e.domain)?.[0]:void 0;e.industry=t||"",e.domain=s||"",e.value=s||t,this._solutionsFilterPanelRef.value.changeIndustryFilter(e.industry,e.domain,e.displayValue,!0)}"searchTerm"in e&&this._allSolutionsPanelRef.value?.searchSolutions(e),"sortType"in e&&this._sortChanged(e.sortType)}async load(){this._isMobileContextConsumer.value&&(this.isMobile=this._isMobileContextConsumer.value)}loaded(){this.solutionsAllLoaded.emit()}render(){let e=this.filterOpen?"chevron-left":"chevron-right",t=this.isMobile?"justify-content-end":"";return i`<calcite-shell class="position-relative">${this.isMobile?"":this._getFilterPanel()}<calcite-button appearance=outline-fill class="filter-button mock-fab z-index-2" icon-start=${e} kind=neutral @click=${this._toggleFilter} scale=m></calcite-button><h1><calcite-panel class="border-override header-override z-index-1"><div class=${`display-flex align-items-center ${t}`} slot=header-content><calcite-label class="label-override">${this._translations.numberOfSolutions.replace("{{count}}",this.solutionsCount.toString())}</calcite-label>${this._renderChips()}</div><div slot=header-actions-end>${this._renderDropdown()}</div>${this.isMobile&&this._getFilterPanel()||""}${this._getSolutionsAllPanel()}</calcite-panel></h1></calcite-shell>`}_getFilterPanel(){let e=this.filterOpen?{display:"flex"}:"";return this.isMobile?i`<calcite-panel class=${u(this.filterOpen?"background-override":"filter background-override")} id=solutions-all-shell-panel-start style=${a(e)}><solutions-filter-panel class="height-100" @applyFilter=${this._filterApplied} ${o(this._solutionsFilterPanelRef)}></solutions-filter-panel></calcite-panel>`:i`<calcite-shell-panel class="filter background-override filter-width-350" id=solutions-all-shell-panel-start position=start slot=panel-start style=${a(e)}><calcite-panel><solutions-filter-panel class="height-100" @applyFilter=${this._filterApplied} ${o(this._solutionsFilterPanelRef)}></solutions-filter-panel></calcite-panel></calcite-shell-panel>`}_getSolutionsAllPanel(){let e=this.isMobile&&this.filterOpen?{display:"none"}:"";return i`<solutions-all-panel .agoSolutionsGroupId=${this.appConfig.primarySolutionsGroupId} .enterpriseSolutionsGroupId=${this.appConfig.agoBasedEnterpriseSolutionsGroupId} .locale=${this.appConfig.locale||"en"} .orgUrl=${this.appConfig.portalURL} @cardsFetched=${this._updateSolutionCount} .portalUrl=${this.appConfig.portalURL} .sortType=${this.sortType} style=${a(e)} ${o(this._allSolutionsPanelRef)}></solutions-all-panel>`}_renderChips(){let e=this._filters.filter(t=>t.type==="industry"||t.type==="domain");return e.length>0?_(e,t=>`${t.type}:${t.value}`,t=>i`<calcite-chip appearance=outline-fill class="padding-start" closable kind=neutral .label=${t.displayValue} @calciteChipClose=${()=>this._chipClosed(t.displayValue,t.type)} .value=${t.displayValue}>${t.displayValue}</calcite-chip>`):void 0}_renderDropdown(){let e=[{displayValue:this._translations.sortByRelevance,sortType:"relevance"},{displayValue:this._translations.sortByTitle,sortType:"title"},{displayValue:this._translations.sortByNew,sortType:"new"},{displayValue:this._translations.sortByUpdated,sortType:"updated"}];return this._authContextConsumer.value.IsSignedIn&&e.push({displayValue:this._translations.sortBySuggestedForYou,sortType:"suggested"}),i`<calcite-dropdown width=m><calcite-button appearance=outline-fill class="header-button-padding" icon-start=sort-descending kind=neutral slot=trigger>${this.isMobile?"":this._getString(this.sortType)}</calcite-button><calcite-dropdown-group group-title=${this._translations.chooseSortType??f}>${e.map(t=>this._getDropdownItem(t.displayValue,t.sortType))}</calcite-dropdown-group></calcite-dropdown>`}_getDropdownItem(e,t){return this.sortType!==t?i`<calcite-dropdown-item @click=${()=>this._sortChanged(t)}>${e}</calcite-dropdown-item>`:i`<calcite-dropdown-item @click=${()=>this._sortChanged(t)} selected>${e}</calcite-dropdown-item>`}_getString(e){let t="";switch(e){case"new":t=this._translations.sortByNew;break;case"relevance":t=this._translations.sortByRelevance;break;case"suggested":t=this._translations.sortBySuggestedForYou;break;case"title":t=this._translations.sortByTitle;break;case"updated":t=this._translations.sortByUpdated;break}return t}_updateSolutionCount(e){this.solutionsCount=e.detail}_sortChanged(e){this.sortType=e,this._allSolutionsPanelRef.value?.searchSolutions({sortType:e})}_chipClosed(e,t){if(t==="industry")this._filters=[];else{let s=this._filters.filter(l=>l.displayValue!==e&&l.type!==t);this._filters=s}this._filters.length>0?this._allSolutionsPanelRef.value?.searchSolutions(this._filters):this._allSolutionsPanelRef.value?.searchSolutions(),this.filterRemoved.emit(this._filters)}_toggleFilter(){this.filterOpen=!this.filterOpen}_filterApplied(e){if(e.detail){let t=e.detail;"displayValue"in e.detail?this._filters.push(e.detail):Array.isArray(e.detail)&&e.detail.length>0&&(e.detail.length>=2&&(t=[e.detail[e.detail.length-1]]),this._filters=e.detail),this._allSolutionsPanelRef.value?.searchSolutions(t)}else this._filters=[],this._allSolutionsPanelRef.value?.searchSolutions()}};g("solutions-all-shell",d);export{d as SolutionsAllShell};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250918 */
4
- import{a as t}from"./HRBA3DQH.js";import{s as e}from"./LZOLHH3N.js";var o=e(t,{"instant-apps-app-error":[()=>import("./GHDED6RA.js"),";clearErrorMessage"],"instant-apps-app-guide":[()=>import("./BZ4VVHFA.js"),"data:,header"],"instant-apps-buffer":[()=>import("./VQNQGNNM.js").then(m=>m.default.then(e=>({InstantAppsBuffer:e}))),"bufferDistance,bufferInputStep,bufferLayer:,bufferMaxDistance,bufferMinDistance,bufferUnit,disabled,geodesicBufferEnabled,inputGraphics:,readyToBuffer,view:;clearBufferLayer,setFocus"],"instant-apps-control-panel":[()=>import("./GDGFGQVP.js"),"components:,view:"],"instant-apps-create":[()=>import("./YYGOSYSC.js"),"content:,mode,options:,popoverIcon,popoverPlacement,popoverPositioning,portal:,showHeader"],"instant-apps-export":[()=>import("./FWASWMTC.js"),"allowedFileTypes:,beforeExport:,defaultFileType,extraContent:,extraContentLabel,headerTitle,includeExtraContent,includeFileFormat,includeLegend,includeMap,includePopup,logoAltText,logoImage,maskBackground,maskBorder,mode,output:,popoverIcon,popoverPlacement,popoverPositioning,scale,showExtraContentInImg,showHeaderTitle,showIncludeLegend,showIncludeMap,showIncludePopup,showScaleBar,view:"],"instant-apps-export-views":[()=>import("./WBGJSXJT.js"),"beforeExport:,exportViews:,includeHeader,includeLegend,includeMap,includePopup,mode,output:,popoverIcon,popoverPlacement,popoverPositioning,scale,showIncludeHeader,showIncludeLegend,showIncludeMap,showIncludePopup,showScaleBar"],"instant-apps-filter-list":[()=>import("./XS2IY2B5.js"),"autoUpdateUrl,closeBtn,closeBtnOnClick:,closeBtnText,comboboxOverlayPositioning,extentSelector,extentSelectorConfig:,filterCount,layerExpressions:,openFilters,resetBtn,resetFiltersOnDisconnect,urlParams:,view:,zoomBtn;forceReset,getCurrentLayerExpressions,getFilterInitState,handleUpdatingT9nData,updateInitDefExpressions"],"instant-apps-header":[()=>import("./I6QPTEL4.js"),"backgroundColor,customHeaderCss,customHeaderHtml,fontFamily,headerAlignment,infoButton,infoIsOpen,infoTitleText,logoImage,logoImageAltText,logoLink,logoScale,mobileWidthBreakpoint,textColor,titleText,titleTextLink;toggleInfo"],"instant-apps-interactive-legend":[()=>import("./2MT6SRIN.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegend:e}))),"compact,featureCount,filterMode:,view:,zoomTo"],"instant-apps-interactive-legend-classic":[()=>import("./EL4DMLJ4.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendClassic:e}))),"featureCount,filterMode:,legendvm:,messages:,zoomTo"],"instant-apps-interactive-legend-count":[()=>import("./HJALSQ2B.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendCount:e}))),"activeLayerInfo:,categoryId,infoIndex,legendElement:,legendvm:,selected,showTotal"],"instant-apps-interactive-legend-group-legend-element":[()=>import("./L7GVW7QX.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendGroupLegendElement:e}))),"activeLayerInfo:,featureCount,isChild,legendvm:"],"instant-apps-interactive-legend-group-legend-element-caption":[()=>import("./2JYSDDCE.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendGroupLegendElementCaption:e}))),"activeLayerInfo:,expanded,featureCount,isChild,legendvm:"],"instant-apps-interactive-legend-layer-element":[()=>import("./M5KF2LTL.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendLayerElement:e}))),"activeLayerInfo:,featureCount,isChild,legendvm:"],"instant-apps-interactive-legend-layer-element-caption":[()=>import("./TZM4KKKJ.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendLayerElementCaption:e}))),"activeLayerInfo:,expanded,featureCount,isChild,legendvm:"],"instant-apps-interactive-legend-legend-element":[()=>import("./DLOVBBP3.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendLegendElement:e}))),"activeLayerInfo:,isChild,isColorRamp,isInteractive,isRelationshipRamp,isSizeRamp,legendElement:,legendElementIndex,legendvm:,titleText,zoomTo"],"instant-apps-interactive-legend-legend-element-caption":[()=>import("./KRBS447Y.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendLegendElementCaption:e}))),"activeLayerInfo:,expanded,isInteractive,layer:,legendElement:,legendElementIndex,legendvm:,titleText,zoomTo"],"instant-apps-interactive-legend-relationship":[()=>import("./267ILKAW.js").then(m=>m.default.then(e=>({InstantAppsInteractiveLegendRelationship:e}))),"activeLayerInfo:,filterMode:,legendElement:"],"instant-apps-keyboard-shortcuts":[()=>import("./EL3AZ2TE.js"),"view:"],"instant-apps-landing-page":[()=>import("./TYQUUGL4.js"),"alignment:,backgroundImageSrc,descriptionText,disableTransition,enableSignIn,entryButtonScale,entryButtonText,fontFamily,iconImage,iconImageAltText,iconImageScale,oauthappid,open,portal:,subtitleText,titleText"],"instant-apps-language-switcher":[()=>import("./UYXSHQJ6.js"),"calciteDropdownOverlayPositioning,defaultLocale,icon,locales:,portalItem:,selectedLanguage,view:;refresh"],"instant-apps-language-translator":[()=>import("./W7KH3DOF.js").then(m=>m.default.then(e=>({InstantAppsLanguageTranslator:e}))),"appSettings:,locales:,open,portalItem:,translatedLocaleInputOnChangeCallback:,userLocaleInputOnChangeCallback:;batchWriteToPortalItemResource,getPortalItemResource,getTranslationData,setTranslationData"],"instant-apps-ckeditor-wrapper":[()=>import("./HEODNUCF.js"),"config:,editorInstance:,value"],"instant-apps-language-translator-item":[()=>import("./C3UFW4SD.js").then(m=>m.default.then(e=>({InstantAppsLanguageTranslatorItem:e}))),"fieldName,setting:,translatedLanguageLabels:,translatedLocaleInputOnChangeCallback:,userLocaleInputOnChangeCallback:"],"instant-apps-language-translator-search":[()=>import("./X6PGFPTQ.js").then(m=>m.default.then(e=>({InstantAppsLanguageTranslatorSearch:e}))),"t9nPlaceholder"],"instant-apps-measurement":[()=>import("./7MPWUI3A.js"),"activeToolType,areaUnit,closable,coordinateFormat,linearUnit,view:"],"instant-apps-measurement-tool":[()=>import("./YWTJP55I.js"),"activeTool,measureConfiguration:,view:"],"instant-apps-popover":[()=>import("./RM52RVBY.js"),"content,disableAction,imgAlt,imgSrc,index,mediaSrc,messageOverrides:,pagination,parent:,placement,popoverAction:,popoverTitle,referenceElement,refId,subtitle"],"instant-apps-popovers":[()=>import("./RFLYSZJY.js"),"beforeOpen:,currentId,instantAppsPopovers:,inTour;beginTour,close,done,endTour,next,open,previous"],"instant-apps-scoreboard":[()=>import("./F7FYEDQY.js"),"autoDockEnabled,geometry:,itemLimit,items:,mode:,position:,queryType,view:"],"instant-apps-sign-in":[()=>import("./WNRVYBAM.js"),"closeLandingPage:,landingPage,oauthappid,openInPopup,portal:,showIndicator,signInPopoverItems:,type"],"instant-apps-social-share":[()=>import("./MFBGM4WK.js"),"autoUpdateShareUrl,defaultUrlParams:,displayTipText,embed,flipRtl,iframeInnerText,inlineSuccessPopoverPlacement,isNativeShareEnabled,mode,popoverButtonIconScale,popoverPositioning,removePopoverOffset,scale,shareButtonColor,shareButtonScale,shareButtonType,shareIconsLayout,shareText,shareUrl,shortenShareUrl,socialMedia,successMessage,useNativeShare,view:"],"instant-apps-splash":[()=>import("./CNOZUDIC.js"),"closeBehavior,closeButtonDisabled,confirmationText,content,isConfirmed:,localStorageKey,open,outsideCloseDisabled,primaryButtonText,secondaryButton,secondaryButtonCallback:,secondaryButtonIcon,secondaryButtonText,titleText"],"instant-apps-time-filter":[()=>import("./6DS6ZO67.js").then(m=>m.default.then(e=>({InstantAppsTimeFilter:e}))),"autoPlay,filterMode:,timeInfoConfigItems:,timeSliderConfig:,view:"]});export{o as a};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250918 */
4
- import{a,b}from"./FIFPIYRS.js";import"./6KUNGOBE.js";import"./WZE3AUQY.js";import"./Q7WWCBUJ.js";import"./OAEMMAHU.js";import"./PR6GFK4E.js";import"./MYHIWH5I.js";export{a as InitiativeEditorTypes,b as InitiativeSchema};