@esri/solutions-components 1.1.0-next.20251015.1 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (490) hide show
  1. package/dist/cdn/{2QM7BE4O.js → 26A7IUMW.js} +2 -2
  2. package/dist/cdn/{WOGOO5RO.js → 26YIO67D.js} +2 -2
  3. package/dist/cdn/{BSYCFXAN.js → 27ZTA7Z7.js} +2 -2
  4. package/dist/cdn/{ZVGNI444.js → 2BCLZ6CT.js} +2 -2
  5. package/dist/cdn/{4KYLVFZE.js → 2BNWBAZJ.js} +2 -2
  6. package/dist/cdn/{4QXXAX3U.js → 2BTAF23L.js} +2 -2
  7. package/dist/cdn/{OWBOQALO.js → 2BWMHRH4.js} +2 -2
  8. package/dist/cdn/{YH5SQV2R.js → 2CDAKBYX.js} +2 -2
  9. package/dist/cdn/{TKUJB3HF.js → 2CZX6QRM.js} +2 -2
  10. package/dist/cdn/{QHLLQI42.js → 2IG3IMPC.js} +2 -2
  11. package/dist/cdn/{RM3HUYCD.js → 2J4G54AQ.js} +2 -2
  12. package/dist/cdn/{WHYC2RU4.js → 2JEEZNQU.js} +2 -2
  13. package/dist/cdn/{DQNFCW45.js → 2JFRXKUJ.js} +2 -2
  14. package/dist/cdn/{6OL47FHV.js → 2UB4CICT.js} +2 -2
  15. package/dist/cdn/{7KXXVAFB.js → 2V52VLFJ.js} +2 -2
  16. package/dist/cdn/{JG5LUSYX.js → 2WOT62PD.js} +2 -2
  17. package/dist/cdn/{MPBQOPHL.js → 2YQAGWB4.js} +2 -2
  18. package/dist/cdn/{WRVFHFTD.js → 35KT5J6L.js} +2 -2
  19. package/dist/cdn/{6WCUSZH7.js → 37LSWZCZ.js} +2 -2
  20. package/dist/cdn/{OVA5KEXT.js → 3AKF2NFL.js} +1 -1
  21. package/dist/cdn/{FTWTALZD.js → 3ALCYZ3Q.js} +2 -2
  22. package/dist/cdn/{QN4JXS37.js → 3BCMTX5A.js} +2 -2
  23. package/dist/cdn/{3A4TXKCP.js → 3FP74ZYG.js} +2 -2
  24. package/dist/cdn/{SNJH2RQI.js → 3G7RVBUA.js} +2 -2
  25. package/dist/cdn/{MTPKMXI7.js → 3I4KGLJ2.js} +2 -2
  26. package/dist/cdn/{AEDIDQNV.js → 3KQWJHJU.js} +1 -1
  27. package/dist/cdn/3NDVWJHY.js +18 -0
  28. package/dist/cdn/{XMRH2KIR.js → 3SXS6CO7.js} +2 -2
  29. package/dist/cdn/{FYDX2SB7.js → 3WSKTJKP.js} +2 -2
  30. package/dist/cdn/{IKYTE2FN.js → 3XU5XGKF.js} +2 -2
  31. package/dist/cdn/{XVXCQG3C.js → 3Z52A6AW.js} +2 -2
  32. package/dist/cdn/{G24TL6UH.js → 46ZDALTQ.js} +9 -9
  33. package/dist/cdn/{Z2MBHOYG.js → 4ACOSJ2R.js} +2 -2
  34. package/dist/cdn/{WG3UZ2LP.js → 4BCG3VKN.js} +2 -2
  35. package/dist/cdn/{A5BM3TJ6.js → 4GJOG2F4.js} +2 -2
  36. package/dist/cdn/{MI5LWWKJ.js → 4GP2UQG2.js} +2 -2
  37. package/dist/cdn/{I7MSVZLZ.js → 4L7ZMWIA.js} +1 -1
  38. package/dist/cdn/{6AP65TD5.js → 4LWHDNDR.js} +2 -2
  39. package/dist/cdn/{5V5R7K45.js → 4MOZP7S7.js} +1 -1
  40. package/dist/cdn/{RGGFNMOE.js → 4N5DLQ55.js} +2 -2
  41. package/dist/cdn/{ER22ZKVJ.js → 4P3ZYJQ3.js} +2 -2
  42. package/dist/cdn/{PPG2TLS5.js → 4REQUGTX.js} +2 -2
  43. package/dist/cdn/{LW6D2HAX.js → 4UFKHCT4.js} +1 -1
  44. package/dist/cdn/{G3H7D6UH.js → 53KQQRS4.js} +2 -2
  45. package/dist/cdn/{EFTB6GX2.js → 55QFSM4Z.js} +2 -2
  46. package/dist/cdn/{5QMHMYYC.js → 56TBWRRO.js} +2 -2
  47. package/dist/cdn/{HCE2GPNV.js → 5BQ6XBFO.js} +2 -2
  48. package/dist/cdn/{KPBAXB4Q.js → 5ELVKZK3.js} +2 -2
  49. package/dist/cdn/{S7DJNJYY.js → 5JGDNIJU.js} +2 -2
  50. package/dist/cdn/{LDNSWL2Z.js → 5K76V7K5.js} +2 -2
  51. package/dist/cdn/{4LUB2XZG.js → 5LFFKDSV.js} +2 -2
  52. package/dist/cdn/{HFNNMH6J.js → 5MMYLEOU.js} +2 -2
  53. package/dist/cdn/{VO2TBKVN.js → 5OV265N4.js} +3 -3
  54. package/dist/cdn/{5BTHO2AF.js → 5QS55J2V.js} +2 -2
  55. package/dist/cdn/{HBRFFY75.js → 5RFM6MUZ.js} +2 -2
  56. package/dist/cdn/{C2SEGVFV.js → 5RVCGMJ7.js} +2 -2
  57. package/dist/cdn/{RZ4U5RYM.js → 5SCFBPOD.js} +2 -2
  58. package/dist/cdn/{67T3HMOS.js → 5Z2FPM3N.js} +2 -2
  59. package/dist/cdn/{MCV2G4PS.js → 65EP7IPW.js} +2 -2
  60. package/dist/cdn/{QYAKMJPA.js → 6ATB2NEI.js} +1 -1
  61. package/dist/cdn/{CKVNTJTS.js → 6D4MPGC2.js} +2 -2
  62. package/dist/cdn/{L7ECFZTZ.js → 6HHD7W7G.js} +2 -2
  63. package/dist/cdn/{CHMJRP7V.js → 6KGM4ZLO.js} +2 -2
  64. package/dist/cdn/{SDVDM2NG.js → 6LZA3IU7.js} +1 -1
  65. package/dist/cdn/{V4KGEXE2.js → 6Q3BQ2FC.js} +2 -2
  66. package/dist/cdn/{GIY42CJC.js → 6SJDAXKU.js} +2 -2
  67. package/dist/cdn/{XXVYYOKU.js → 6TRHSJBA.js} +2 -2
  68. package/dist/cdn/{LX7DOAXS.js → 6WOQW2IE.js} +2 -2
  69. package/dist/cdn/{CPVITWV2.js → 6YCAEYPE.js} +1 -1
  70. package/dist/cdn/{TXESV5HB.js → 752NXLLE.js} +2 -2
  71. package/dist/cdn/{54CB6RT5.js → 7DNPNWRU.js} +2 -2
  72. package/dist/cdn/{BACBIPDO.js → 7GCGTHLP.js} +2 -2
  73. package/dist/cdn/{GW2HRQKT.js → 7HBTOAR5.js} +3 -3
  74. package/dist/cdn/{CNMMVNTV.js → 7KUJV4HC.js} +2 -2
  75. package/dist/cdn/{6UWUDE55.js → 7PZ4UBDR.js} +1 -1
  76. package/dist/cdn/{CBDB4RMH.js → 7Q36435D.js} +2 -2
  77. package/dist/cdn/{IYPSTJMC.js → 7TPSN3OZ.js} +2 -2
  78. package/dist/cdn/{HENQGQKO.js → 7TQGZSOS.js} +2 -2
  79. package/dist/cdn/{CANPLSBG.js → A5NORFQ3.js} +2 -2
  80. package/dist/cdn/{BAJABLGZ.js → A7HIU3CH.js} +1 -1
  81. package/dist/cdn/{HE5NK4OL.js → ABKXGOLH.js} +2 -2
  82. package/dist/cdn/{GWKGCSUR.js → AEIXUSBT.js} +2 -2
  83. package/dist/cdn/{WYUJ6NBJ.js → AGCNKK6G.js} +2 -2
  84. package/dist/cdn/{XAZ64HSI.js → AHJZ4NUK.js} +2 -2
  85. package/dist/cdn/{ZNPCXRYH.js → AIECUGLA.js} +2 -2
  86. package/dist/cdn/{YOPSWKMS.js → AL6OH2HL.js} +2 -2
  87. package/dist/cdn/{SKEUMGP3.js → AM7XZYHN.js} +2 -2
  88. package/dist/cdn/{7QR7NLOV.js → AMQ6Z4TC.js} +2 -2
  89. package/dist/cdn/{TGTBQ4IM.js → AUCQU57I.js} +2 -2
  90. package/dist/cdn/{Y3DMPNFD.js → AXLUQP4L.js} +2 -2
  91. package/dist/cdn/{LWBQ4ZM5.js → B2BJU5HS.js} +2 -2
  92. package/dist/cdn/{YY6GCCSV.js → B4SUA3W7.js} +2 -2
  93. package/dist/cdn/{OXWOGTSM.js → B4SZ3AFB.js} +2 -2
  94. package/dist/cdn/{XKTLLIE7.js → B54XVRBZ.js} +2 -2
  95. package/dist/cdn/{QU3PWGK6.js → B5LYIFIL.js} +2 -2
  96. package/dist/cdn/{SCQL3GII.js → B6Z3B7WO.js} +2 -2
  97. package/dist/cdn/{YDYYJMXJ.js → BFJ3MBJ3.js} +2 -2
  98. package/dist/cdn/{5T74REFR.js → BGNGMZZR.js} +2 -2
  99. package/dist/cdn/{P3V7RDMU.js → BKJFP7LT.js} +2 -2
  100. package/dist/cdn/{RU2ZQUD7.js → BPUJQWHO.js} +2 -2
  101. package/dist/cdn/{SDS5IDG7.js → BTIPZNRW.js} +2 -2
  102. package/dist/cdn/BUV3Z6DV.js +4 -0
  103. package/dist/cdn/{PCGVPBPI.js → C25PM233.js} +2 -2
  104. package/dist/cdn/{U7XTDM5N.js → C5IVPFPI.js} +2 -2
  105. package/dist/cdn/{ICPASROB.js → CDEY6E3D.js} +1 -1
  106. package/dist/cdn/{FRUABSZP.js → CEMXCEBH.js} +1 -1
  107. package/dist/cdn/{NLMPFG6X.js → CGRUPQKB.js} +2 -2
  108. package/dist/cdn/{YZV37Z46.js → CVHQL36X.js} +2 -2
  109. package/dist/cdn/{MTPC7NWQ.js → CWXIDRS2.js} +1 -1
  110. package/dist/cdn/{N7PHEJVU.js → CY3IW6EI.js} +2 -2
  111. package/dist/cdn/{JAESJZGN.js → CZG4TQS7.js} +2 -2
  112. package/dist/cdn/{M45VPYYI.js → D3AONMYK.js} +2 -2
  113. package/dist/cdn/{KBYWVXJP.js → D3U545GO.js} +2 -2
  114. package/dist/cdn/{D5Q4UAHQ.js → DAR4Z4PY.js} +2 -2
  115. package/dist/cdn/{V3OBNAAE.js → DELGK4BU.js} +2 -2
  116. package/dist/cdn/{2WOT75MD.js → DG6X6ND5.js} +2 -2
  117. package/dist/cdn/{665YHS3W.js → DG7ELQI5.js} +2 -2
  118. package/dist/cdn/{BKFOGIOL.js → DHNEONGR.js} +2 -2
  119. package/dist/cdn/{YR5O3VCH.js → DK35UKU7.js} +1 -1
  120. package/dist/cdn/{MZKZVHAM.js → DQRK65BG.js} +2 -2
  121. package/dist/cdn/{ZRCBFR6O.js → DQZV5B4U.js} +2 -2
  122. package/dist/cdn/{YJ5RGO3H.js → DT2QNJXZ.js} +2 -2
  123. package/dist/cdn/{3QD7OU5U.js → DTPMMVFN.js} +2 -2
  124. package/dist/cdn/{UEQ3VZSA.js → DWLML3AH.js} +2 -2
  125. package/dist/cdn/{4AD74DYS.js → DYU53Y76.js} +2 -2
  126. package/dist/cdn/{KWOBCXTI.js → DZCKXQ37.js} +2 -2
  127. package/dist/cdn/{XH3DR75Z.js → E26HA4PU.js} +1 -1
  128. package/dist/cdn/{74WWSALI.js → E2H2TMYA.js} +2 -2
  129. package/dist/cdn/{GSE6TLTV.js → E4657PTM.js} +2 -2
  130. package/dist/cdn/{BMYAJRPQ.js → E7JSS6TZ.js} +2 -2
  131. package/dist/cdn/{TYF2N7GJ.js → EDQISJN2.js} +1 -1
  132. package/dist/cdn/{5EBO3CK2.js → EIDWGAQS.js} +2 -2
  133. package/dist/cdn/{2OERSEL4.js → ELLRXQO4.js} +2 -2
  134. package/dist/cdn/{OKDJRIF2.js → ELPOHGJW.js} +2 -2
  135. package/dist/cdn/{GBLEKTEQ.js → EMJVLMDF.js} +2 -2
  136. package/dist/cdn/{F3F7ZRFO.js → ENYF3KSA.js} +2 -2
  137. package/dist/cdn/{5L57Y4TT.js → EO3MW2NL.js} +1 -1
  138. package/dist/cdn/{JAUCD2LU.js → EQIDO6DW.js} +2 -2
  139. package/dist/cdn/{6N5Z7ELO.js → ETND67WR.js} +2 -2
  140. package/dist/cdn/{4AC3EMTS.js → EVL5ENBM.js} +2 -2
  141. package/dist/cdn/{B5FF2VH2.js → EWNQPSM6.js} +2 -2
  142. package/dist/cdn/{FELFYFY4.js → EXAPAR3S.js} +2 -2
  143. package/dist/cdn/F3LYA4NW.js +4 -0
  144. package/dist/cdn/{IHMJSVGQ.js → F6LLK63V.js} +2 -2
  145. package/dist/cdn/F7KJ6JU5.js +18 -0
  146. package/dist/cdn/{FLIACCNY.js → FCF3N62R.js} +2 -2
  147. package/dist/cdn/{CVN3FH5T.js → FFQ3HGQK.js} +2 -2
  148. package/dist/cdn/{NIOHLEO5.js → FIUCHRQF.js} +2 -2
  149. package/dist/cdn/{FYCEFUOT.js → FP7ZWUGT.js} +2 -2
  150. package/dist/cdn/FUUJFLHK.js +4 -0
  151. package/dist/cdn/{T5BTHDQC.js → FUYZJXZ3.js} +2 -2
  152. package/dist/cdn/{5N6VXCFL.js → FX5ZISLR.js} +2 -2
  153. package/dist/cdn/{UCJ2FA3M.js → G2ZE3JDL.js} +2 -2
  154. package/dist/cdn/{TIFSOMQF.js → G5J7AYET.js} +1 -1
  155. package/dist/cdn/{XZ3MICYT.js → GE4IM3MX.js} +4 -4
  156. package/dist/cdn/{ND3DHQ24.js → GFVWUN5D.js} +2 -2
  157. package/dist/cdn/{OZHTQMES.js → GKB3OPCC.js} +1 -1
  158. package/dist/cdn/GKFQSVNR.js +18 -0
  159. package/dist/cdn/{XVIJ22OG.js → GPMIA743.js} +2 -2
  160. package/dist/cdn/{MG3DM3OR.js → GQCNQXN5.js} +1 -1
  161. package/dist/cdn/{B37RCFLV.js → GRQT7TEY.js} +2 -2
  162. package/dist/cdn/{OKHGJM4V.js → GYQWDRLR.js} +2 -2
  163. package/dist/cdn/{PD3N7S4N.js → H4APLINN.js} +2 -2
  164. package/dist/cdn/{EICZMLA4.js → H55NCRTY.js} +2 -2
  165. package/dist/cdn/HF7PHNIQ.js +18 -0
  166. package/dist/cdn/{OQQYUKUE.js → HFFRR5LZ.js} +2 -2
  167. package/dist/cdn/{5B5RZS2K.js → HFVS4CAO.js} +1 -1
  168. package/dist/cdn/{7VASVJJE.js → HODMV4M5.js} +2 -2
  169. package/dist/cdn/{CIMPKFOP.js → HOZ3ZGMX.js} +2 -2
  170. package/dist/cdn/{5CVOFWHG.js → HQF37WJP.js} +2 -2
  171. package/dist/cdn/{IALNE5HW.js → HS4O2ERP.js} +2 -2
  172. package/dist/cdn/{XXXLSBFE.js → HSQOGPUN.js} +2 -2
  173. package/dist/cdn/HXU762XJ.js +4 -0
  174. package/dist/cdn/{LANYKU26.js → I226XVK6.js} +1 -1
  175. package/dist/cdn/{AGF3GSOI.js → I5ADXZSK.js} +3 -3
  176. package/dist/cdn/{4MQVU2PA.js → I5LITYX6.js} +2 -2
  177. package/dist/cdn/{UUQ2YDIF.js → IAAUVKHV.js} +2 -2
  178. package/dist/cdn/{3PXOZ4VC.js → ICHAZGEE.js} +2 -2
  179. package/dist/cdn/{44EJZA6T.js → ICNZOE62.js} +2 -2
  180. package/dist/cdn/{DG7ORIN4.js → IDTCCLPD.js} +2 -2
  181. package/dist/cdn/{N4YBZ6H2.js → IJYKJ7U3.js} +2 -2
  182. package/dist/cdn/{5JHSSQWV.js → IL5ASV53.js} +2 -2
  183. package/dist/cdn/{3DB2P2GO.js → IOIU2LQ7.js} +2 -2
  184. package/dist/cdn/{MQSWCDFV.js → IYRAUVEG.js} +2 -2
  185. package/dist/cdn/{OUTI3YYH.js → J6ZDDC7T.js} +2 -2
  186. package/dist/cdn/{RDUT4GXF.js → JFECVDJN.js} +1 -1
  187. package/dist/cdn/{EVLQDNEN.js → JI7NN7UZ.js} +2 -2
  188. package/dist/cdn/{R3ZUPICV.js → JMYTSZCC.js} +2 -2
  189. package/dist/cdn/{IJEJKEC4.js → JNYHCS6W.js} +2 -2
  190. package/dist/cdn/{XTB7IRNS.js → JQSLLFKL.js} +2 -2
  191. package/dist/cdn/{QKBSOBFP.js → JR7EO46W.js} +2 -2
  192. package/dist/cdn/{A6OECACX.js → JWYEWEFN.js} +2 -2
  193. package/dist/cdn/{GUJXAFBP.js → JXWLSI7W.js} +2 -2
  194. package/dist/cdn/{4OXWZV57.js → K36E76AY.js} +2 -2
  195. package/dist/cdn/{PUMM6TKG.js → K5B6UE4O.js} +2 -2
  196. package/dist/cdn/{ULUH53Q4.js → KB26CFS5.js} +1 -1
  197. package/dist/cdn/{I46NMZAU.js → KGOYOPYR.js} +2 -2
  198. package/dist/cdn/{MCV7H4QG.js → KGU6GWRV.js} +2 -2
  199. package/dist/cdn/{VFIVVIKJ.js → KHEFLBXY.js} +2 -2
  200. package/dist/cdn/{RJ5TLB72.js → KIBCKDDV.js} +2 -2
  201. package/dist/cdn/{34MHNUX5.js → KJNHCW6Z.js} +2 -2
  202. package/dist/cdn/KLEDYY4Y.js +4 -0
  203. package/dist/cdn/{4IPLM5AY.js → KM72PDVP.js} +2 -2
  204. package/dist/cdn/{TNRGSGGK.js → KTABK32D.js} +2 -2
  205. package/dist/cdn/{VEDUVBOL.js → KX5ZC2OR.js} +2 -2
  206. package/dist/cdn/{6NICUPTA.js → L3O7A2E6.js} +2 -2
  207. package/dist/cdn/{OGL56OTR.js → L4PGMPKA.js} +2 -2
  208. package/dist/cdn/{A2IH3ITG.js → L4UMBNSK.js} +2 -2
  209. package/dist/cdn/{GYGRE36O.js → L4YSSYQH.js} +2 -2
  210. package/dist/cdn/{ZUZFCM6S.js → LF6IEP2D.js} +2 -2
  211. package/dist/cdn/{5PC67SE6.js → LFR22E5T.js} +2 -2
  212. package/dist/cdn/{SRPKARII.js → LG4FCYVC.js} +2 -2
  213. package/dist/cdn/{2S7PDHXP.js → LG5TLQOT.js} +2 -2
  214. package/dist/cdn/{PJ2XKRIK.js → LKGNNJ5C.js} +2 -2
  215. package/dist/cdn/{PVXYECTY.js → LTCTW5SI.js} +1 -1
  216. package/dist/cdn/{SLO5WA53.js → LV2EHSXJ.js} +2 -2
  217. package/dist/cdn/{SYG55ZJS.js → LVLT7OO5.js} +2 -2
  218. package/dist/cdn/M6O3GAPO.js +18 -0
  219. package/dist/cdn/{MUXEW2EI.js → MBGCB6OG.js} +2 -2
  220. package/dist/cdn/{LHKXWAKI.js → MDMOHF6P.js} +2 -2
  221. package/dist/cdn/{WYGVR7KD.js → MDUZXVAQ.js} +2 -2
  222. package/dist/cdn/{TRVQ4HAV.js → MGSTYEHN.js} +2 -2
  223. package/dist/cdn/{4FNJTCB2.js → MGYYPLGC.js} +2 -2
  224. package/dist/cdn/{GWZZ3ITH.js → MRQCKP3E.js} +2 -2
  225. package/dist/cdn/{WM6NQ4I4.js → NCBU44KK.js} +2 -2
  226. package/dist/cdn/{M22UUKAK.js → NE2AVEWI.js} +2 -2
  227. package/dist/cdn/{IEJZM3BQ.js → NG46OHWH.js} +1 -1
  228. package/dist/cdn/{54ARXWKE.js → NH4S2EP6.js} +2 -2
  229. package/dist/cdn/{GQ4PWQQW.js → NHLAFRCY.js} +2 -2
  230. package/dist/cdn/{2IIIGO6P.js → NHT6Z5E2.js} +2 -2
  231. package/dist/cdn/{DMQSOG2I.js → NJF4SHQQ.js} +2 -2
  232. package/dist/cdn/{AD6Y4WAH.js → NL26TI4R.js} +2 -2
  233. package/dist/cdn/NLD43RT5.js +4 -0
  234. package/dist/cdn/{GD5HWGXK.js → NMMNVZIR.js} +2 -2
  235. package/dist/cdn/{IX4PWJUR.js → NQE4EDAU.js} +2 -2
  236. package/dist/cdn/{K5SS6M5G.js → NZVAVQXY.js} +2 -2
  237. package/dist/cdn/{34IANJ5L.js → O7Z57GLZ.js} +1 -1
  238. package/dist/cdn/{FKUDFCE7.js → OGDSICU2.js} +2 -2
  239. package/dist/cdn/{NQ6KROBY.js → OLARJ53Z.js} +2 -2
  240. package/dist/cdn/{7ESK3B5W.js → ONHXUPVG.js} +2 -2
  241. package/dist/cdn/{EDWTUT7G.js → ORSXUYDL.js} +2 -2
  242. package/dist/cdn/{2BA65KL3.js → OSSABG5C.js} +2 -2
  243. package/dist/cdn/{B2PH3JH2.js → OTTNFPEO.js} +2 -2
  244. package/dist/cdn/{TNISWTVC.js → OY6K2PSA.js} +2 -2
  245. package/dist/cdn/{4XBEYMUG.js → OYFNC4U6.js} +1 -1
  246. package/dist/cdn/OYNCPS5E.js +4 -0
  247. package/dist/cdn/{P2Z4XQ4N.js → OZ6WFV25.js} +2 -2
  248. package/dist/cdn/{7D3QF2ET.js → P55J63ZU.js} +2 -2
  249. package/dist/cdn/{O6FR3FOW.js → PCEDSTLJ.js} +2 -2
  250. package/dist/cdn/{GJ2RMK23.js → PDBKU4S2.js} +1 -1
  251. package/dist/cdn/{FUADMBOA.js → PL6BITGI.js} +2 -2
  252. package/dist/cdn/{2HPCEZUF.js → PNOXI4LK.js} +2 -2
  253. package/dist/cdn/{AYE2CPD4.js → PQLAT5KP.js} +2 -2
  254. package/dist/cdn/{T5I64IOL.js → PSX4TZJP.js} +1 -1
  255. package/dist/cdn/{FH6MNROE.js → PWBUTW4G.js} +2 -2
  256. package/dist/cdn/{VTDDIS6F.js → Q4JIF4ME.js} +2 -2
  257. package/dist/cdn/{3VYCPR2S.js → QE2S7FMO.js} +1 -1
  258. package/dist/cdn/{BXEE6NVF.js → QFMJ7ICF.js} +2 -2
  259. package/dist/cdn/{IXIJXFCI.js → QI3DTK6Y.js} +2 -2
  260. package/dist/cdn/{6YKCCSEU.js → QRN72H3R.js} +2 -2
  261. package/dist/cdn/{FYQSS5YY.js → QYGNVH4W.js} +1 -1
  262. package/dist/cdn/{T5KFVVMD.js → R2LM4OS3.js} +2 -2
  263. package/dist/cdn/RDZOTUWI.js +4 -0
  264. package/dist/cdn/{ZFZT6JP2.js → RFLDN7DB.js} +2 -2
  265. package/dist/cdn/{Q5SMZOBS.js → RFQTBJV3.js} +2 -2
  266. package/dist/cdn/{542FXWVN.js → RGWP6ZGP.js} +2 -2
  267. package/dist/cdn/RHRIOV47.js +18 -0
  268. package/dist/cdn/{G32LTLMH.js → RIUFIUZK.js} +2 -2
  269. package/dist/cdn/{XHLKA46H.js → RKMHFE6O.js} +2 -2
  270. package/dist/cdn/{TO5OTLKP.js → RKPQ6P4K.js} +2 -2
  271. package/dist/cdn/{YTULUCEY.js → RYBVU2SH.js} +2 -2
  272. package/dist/cdn/S6UDZKPG.js +4 -0
  273. package/dist/cdn/{KMDBOCW2.js → S7PRSYYO.js} +2 -2
  274. package/dist/cdn/{PT3EGARC.js → SFGQEQN6.js} +2 -2
  275. package/dist/cdn/SL7A3O2M.js +18 -0
  276. package/dist/cdn/{FGCTUPDT.js → SO2FFKO7.js} +2 -2
  277. package/dist/cdn/{2UCZ6YBP.js → SO5JOFTM.js} +2 -2
  278. package/dist/cdn/{KBHPYZIT.js → SOHGAMG2.js} +2 -2
  279. package/dist/cdn/{IE4V76VW.js → SPLHZ3N7.js} +2 -2
  280. package/dist/cdn/{64H4PIK5.js → SSUW7XWL.js} +2 -2
  281. package/dist/cdn/{BPLLQ4TU.js → T2ZH3NKY.js} +2 -2
  282. package/dist/cdn/{YEL6ZGK7.js → T53MA6GA.js} +2 -2
  283. package/dist/cdn/T5UO2UPO.js +18 -0
  284. package/dist/cdn/{LMVJPTLK.js → TBQSNIZB.js} +2 -2
  285. package/dist/cdn/TC4NP6KF.js +4 -0
  286. package/dist/cdn/{KH7LGU5K.js → TFCCDEFO.js} +2 -2
  287. package/dist/cdn/{3KCGBI2E.js → TGVB6RQB.js} +2 -2
  288. package/dist/cdn/{J7ZLGYPV.js → TLOJATEQ.js} +2 -2
  289. package/dist/cdn/{PDDLGVYF.js → TO563LCJ.js} +2 -2
  290. package/dist/cdn/{RQQUNY5K.js → TOSZWSLH.js} +2 -2
  291. package/dist/cdn/{OQC5V5U7.js → TPQBOF3P.js} +2 -2
  292. package/dist/cdn/{J72MOBVK.js → TYB33GBX.js} +2 -2
  293. package/dist/cdn/{ZFCGEWOY.js → U4VWSAWK.js} +2 -2
  294. package/dist/cdn/{5NJOCQZI.js → U5BYVOCV.js} +2 -2
  295. package/dist/cdn/{YGWVMAMB.js → UFHCRIJM.js} +2 -2
  296. package/dist/cdn/{IZ4L64TO.js → UKTDQUNY.js} +2 -2
  297. package/dist/cdn/{KUHFKNOC.js → UNICLOME.js} +2 -2
  298. package/dist/cdn/{B7XE662D.js → USE6OJ76.js} +1 -1
  299. package/dist/cdn/{VKKM4XNL.js → UVAXWM4L.js} +1 -1
  300. package/dist/cdn/{FOHDHPD5.js → UVOSWHK6.js} +2 -2
  301. package/dist/cdn/{P7IXPN44.js → UYVKGCIC.js} +1 -1
  302. package/dist/cdn/{36AFFW36.js → V46NQFJY.js} +2 -2
  303. package/dist/cdn/VHUAYRQ7.js +4 -0
  304. package/dist/cdn/{N2BTXBRA.js → VIGDHAXV.js} +2 -2
  305. package/dist/cdn/{NCCHYDZY.js → VOYVH7QX.js} +2 -2
  306. package/dist/cdn/{OFGWTNNG.js → VSI5R4LM.js} +2 -2
  307. package/dist/cdn/{K63J5ICI.js → VT24NQ3G.js} +2 -2
  308. package/dist/cdn/{VLLEVWC4.js → VUBDTATP.js} +2 -2
  309. package/dist/cdn/{EXCMCYSA.js → W4GLLZOA.js} +2 -2
  310. package/dist/cdn/{3AOH7JGU.js → WHOLLTII.js} +2 -2
  311. package/dist/cdn/{AJX4JPNT.js → WNXJPQ3P.js} +2 -2
  312. package/dist/cdn/{3RO4WOUW.js → WPJ4D5AX.js} +2 -2
  313. package/dist/cdn/{DKLLDMP4.js → X3KX5MLG.js} +2 -2
  314. package/dist/cdn/{DHLFERHD.js → X4YLMHXT.js} +2 -2
  315. package/dist/cdn/{RPK4OTEA.js → X7ZDHHU4.js} +2 -2
  316. package/dist/cdn/{LBCHSNQJ.js → XDMBJPAY.js} +2 -2
  317. package/dist/cdn/{Y2CJN6MA.js → XEANXWMN.js} +2 -2
  318. package/dist/cdn/{DQXPS64T.js → XF3NVRQZ.js} +2 -2
  319. package/dist/cdn/{ZORMK55D.js → XIO74BNK.js} +2 -2
  320. package/dist/cdn/{6I6JPIBT.js → XMKDRPPW.js} +1 -1
  321. package/dist/cdn/{HWY7JULN.js → XOQOHYCH.js} +2 -2
  322. package/dist/cdn/{GMPLR4J5.js → XOYKKKBX.js} +2 -2
  323. package/dist/cdn/{OGLRNF4U.js → XRBYIFHY.js} +2 -2
  324. package/dist/cdn/{EMYF6EFA.js → XUGHHYWO.js} +2 -2
  325. package/dist/cdn/{MOAG6X2Y.js → XW4B55X6.js} +2 -2
  326. package/dist/cdn/{3IIWPGCK.js → XZL7GBO2.js} +1 -1
  327. package/dist/cdn/{4FX6777Z.js → Y7UHPKGK.js} +2 -2
  328. package/dist/cdn/{57Q4JDZ5.js → YBH5KSXC.js} +2 -2
  329. package/dist/cdn/{SGH2DPH6.js → YCOUYTAZ.js} +2 -2
  330. package/dist/cdn/{QGJ2Q5VE.js → YETRMAS4.js} +2 -2
  331. package/dist/cdn/{5AEWU6E5.js → YGBNP67C.js} +1 -1
  332. package/dist/cdn/{EM65WRYK.js → YGCKDVK6.js} +2 -2
  333. package/dist/cdn/{MAZA2SKN.js → YHYQGDEU.js} +2 -2
  334. package/dist/cdn/{YQBV6WPJ.js → YJPQ6I7G.js} +2 -2
  335. package/dist/cdn/{XUDVBJIK.js → YNPQP3KG.js} +2 -2
  336. package/dist/cdn/YXBR66FZ.js +18 -0
  337. package/dist/cdn/{GMOOMMHR.js → Z263ME6T.js} +2 -2
  338. package/dist/cdn/{2LYH6JUN.js → ZA4AREPP.js} +2 -2
  339. package/dist/cdn/{B4NHS7W5.js → ZRPNT6EM.js} +2 -2
  340. package/dist/cdn/{UP63PL53.js → ZUP2X5AU.js} +2 -2
  341. package/dist/cdn/{D2RP7JBA.js → ZXNTEBYO.js} +2 -2
  342. package/dist/cdn/{NBPRKXKH.js → ZY4JIOV6.js} +2 -2
  343. package/dist/cdn/{OCSYEOST.js → ZZG6UPJB.js} +2 -2
  344. package/dist/cdn/index.js +2 -2
  345. package/dist/chunks/Auth.js +1 -1
  346. package/dist/chunks/CardsFetcher.js +1 -1
  347. package/dist/chunks/appConfig.js +1 -1
  348. package/dist/chunks/cardFetchingUtils.js +1 -1
  349. package/dist/chunks/cardsHelpers.js +1 -1
  350. package/dist/chunks/common.js +1 -1
  351. package/dist/chunks/deployAppContexts.js +8 -6
  352. package/dist/chunks/downloadUtils.js +1 -1
  353. package/dist/chunks/getItemIcon.js +2 -2
  354. package/dist/chunks/helpers.js +1 -1
  355. package/dist/chunks/interfaces.js +1 -1
  356. package/dist/chunks/loadModules.js +1 -1
  357. package/dist/chunks/mapViewUtils.js +1 -1
  358. package/dist/chunks/pciUtils.js +1 -1
  359. package/dist/chunks/popupUtils.js +1 -1
  360. package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
  361. package/dist/chunks/privilegeUtils.js +1 -1
  362. package/dist/chunks/publicNotificationContext.js +1 -1
  363. package/dist/chunks/queryUtils.js +1 -1
  364. package/dist/chunks/runtime.js +3 -3
  365. package/dist/chunks/solution-store.js +1 -1
  366. package/dist/chunks/templates.js +1 -1
  367. package/dist/chunks/useT9n.js +1 -1
  368. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  369. package/dist/components/basemap-gallery/customElement.js +1 -1
  370. package/dist/components/buffer-tools/customElement.js +1 -1
  371. package/dist/components/card-manager/customElement.js +1 -1
  372. package/dist/components/consent-manager/customElement.js +1 -1
  373. package/dist/components/create-feature/customElement.js +1 -1
  374. package/dist/components/create-related-feature/customElement.js +1 -1
  375. package/dist/components/crowdsource-manager/customElement.js +7 -7
  376. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  377. package/dist/components/deduct-calculator/customElement.js +1 -1
  378. package/dist/components/delete-button/customElement.js +1 -1
  379. package/dist/components/delete-dialog/customElement.js +1 -1
  380. package/dist/components/edit-card/customElement.js +1 -1
  381. package/dist/components/feature-details/customElement.js +1 -1
  382. package/dist/components/feature-list/customElement.js +1 -1
  383. package/dist/components/field-selection/customElement.js +1 -1
  384. package/dist/components/floor-filter/customElement.js +1 -1
  385. package/dist/components/info-card/customElement.js +1 -1
  386. package/dist/components/json-editor/customElement.js +1 -1
  387. package/dist/components/layer-list/customElement.js +1 -1
  388. package/dist/components/layer-table/customElement.js +3 -2
  389. package/dist/components/map-card/customElement.d.ts +1 -1
  390. package/dist/components/map-card/customElement.js +9 -8
  391. package/dist/components/map-draw-tools/customElement.js +1 -1
  392. package/dist/components/map-fullscreen/customElement.js +1 -1
  393. package/dist/components/map-layer-picker/customElement.js +1 -1
  394. package/dist/components/map-legend/customElement.js +1 -1
  395. package/dist/components/map-picker/customElement.js +1 -1
  396. package/dist/components/map-search/customElement.js +1 -1
  397. package/dist/components/map-select-tools/customElement.js +1 -1
  398. package/dist/components/map-tools/customElement.d.ts +1 -1
  399. package/dist/components/map-tools/customElement.js +2 -2
  400. package/dist/components/pci-calculator/customElement.js +1 -1
  401. package/dist/components/pdf-download/customElement.js +1 -1
  402. package/dist/components/public-notification/customElement.js +1 -1
  403. package/dist/components/refine-selection/customElement.js +1 -1
  404. package/dist/components/selection-tool/customElement.js +1 -1
  405. package/dist/components/solution-article-card/customElement.js +1 -1
  406. package/dist/components/solution-configuration/customElement.js +1 -1
  407. package/dist/components/solution-configure-dialog/customElement.js +1 -1
  408. package/dist/components/solution-configure-titles/customElement.js +1 -1
  409. package/dist/components/solution-contents/customElement.js +1 -1
  410. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  411. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  412. package/dist/components/solution-deployed-card/customElement.js +1 -1
  413. package/dist/components/solution-deploying-dialog/customElement.js +1 -1
  414. package/dist/components/solution-details-card/customElement.js +1 -1
  415. package/dist/components/solution-details-panel/customElement.js +1 -1
  416. package/dist/components/solution-item/customElement.js +1 -1
  417. package/dist/components/solution-item-accordion/customElement.js +1 -1
  418. package/dist/components/solution-item-details/customElement.js +1 -1
  419. package/dist/components/solution-item-diagram/customElement.js +101 -97
  420. package/dist/components/solution-item-icon/customElement.js +1 -1
  421. package/dist/components/solution-item-sharing/customElement.js +1 -1
  422. package/dist/components/solution-organization-variables/customElement.js +1 -1
  423. package/dist/components/solution-resource-item/customElement.js +1 -1
  424. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  425. package/dist/components/solution-social-share/customElement.js +1 -1
  426. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  427. package/dist/components/solution-template-data/customElement.js +1 -1
  428. package/dist/components/solution-variables/customElement.js +1 -1
  429. package/dist/components/solutions-all-panel/customElement.d.ts +0 -30
  430. package/dist/components/solutions-all-panel/customElement.js +74 -67
  431. package/dist/components/solutions-all-shell/customElement.d.ts +0 -2
  432. package/dist/components/solutions-all-shell/customElement.js +21 -21
  433. package/dist/components/solutions-article-panel/customElement.js +1 -1
  434. package/dist/components/solutions-articles/customElement.js +1 -1
  435. package/dist/components/solutions-articles-shell/customElement.js +1 -1
  436. package/dist/components/solutions-deploy-app/customElement.d.ts +1 -26
  437. package/dist/components/solutions-deploy-app/customElement.js +59 -73
  438. package/dist/components/solutions-deploy-app/index.d.ts +3 -1
  439. package/dist/components/solutions-deploy-app/index.js +3 -1
  440. package/dist/components/solutions-deploy-app-nav/customElement.d.ts +15 -7
  441. package/dist/components/solutions-deploy-app-nav/customElement.js +61 -61
  442. package/dist/components/solutions-deploy-app-nav/index.d.ts +5 -0
  443. package/dist/components/solutions-deploy-app-nav/index.js +5 -0
  444. package/dist/components/solutions-deployed-filter-panel/customElement.d.ts +1 -1
  445. package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
  446. package/dist/components/solutions-deployed-panel/customElement.d.ts +0 -36
  447. package/dist/components/solutions-deployed-panel/customElement.js +44 -32
  448. package/dist/components/solutions-deployed-shell/customElement.d.ts +0 -2
  449. package/dist/components/solutions-deployed-shell/customElement.js +10 -10
  450. package/dist/components/solutions-filter-panel/customElement.d.ts +1 -1
  451. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  452. package/dist/components/solutions-searchsort-toolbar/customElement.d.ts +4 -12
  453. package/dist/components/solutions-searchsort-toolbar/customElement.js +87 -55
  454. package/dist/components/spatial-ref/customElement.js +1 -1
  455. package/dist/components/store-manager/customElement.js +1 -1
  456. package/dist/docs/api.json +112 -567
  457. package/dist/docs/docs.json +106 -441
  458. package/dist/docs/vscode.html-custom-data.json +16 -109
  459. package/dist/docs/web-types.json +69 -265
  460. package/dist/index.d.ts +17 -2
  461. package/dist/index.js +1 -1
  462. package/dist/loader.js +8 -8
  463. package/dist/types/lumina.d.ts +10 -8
  464. package/dist/types/preact.d.ts +10 -8
  465. package/dist/types/preact10.d.ts +10 -8
  466. package/dist/types/react.d.ts +10 -8
  467. package/dist/types/stencil.d.ts +10 -8
  468. package/dist/utils/deployAppContexts.d.ts +4 -0
  469. package/dist/utils/interfaces.d.ts +25 -1
  470. package/package.json +7 -7
  471. package/dist/cdn/3TJZ6BKZ.js +0 -4
  472. package/dist/cdn/43OEBABR.js +0 -18
  473. package/dist/cdn/5LQWX73I.js +0 -4
  474. package/dist/cdn/6JCLCDIE.js +0 -4
  475. package/dist/cdn/77HIBKBY.js +0 -4
  476. package/dist/cdn/AEXIW5QK.js +0 -4
  477. package/dist/cdn/AJ5IJNM4.js +0 -4
  478. package/dist/cdn/DOV3VDA7.js +0 -4
  479. package/dist/cdn/F77VE4SZ.js +0 -4
  480. package/dist/cdn/H65HSSDY.js +0 -18
  481. package/dist/cdn/HGN4LWKF.js +0 -18
  482. package/dist/cdn/IHPJT2VQ.js +0 -18
  483. package/dist/cdn/JC5UGUO2.js +0 -18
  484. package/dist/cdn/KPYWTDCC.js +0 -18
  485. package/dist/cdn/LAEMYQTA.js +0 -4
  486. package/dist/cdn/LSVJVCQM.js +0 -18
  487. package/dist/cdn/SYOYFTZ4.js +0 -18
  488. package/dist/cdn/TYS4G347.js +0 -18
  489. package/dist/cdn/UH4H7T6D.js +0 -4
  490. package/dist/cdn/X7PP4CDS.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.20251015.1 */
4
- import{b as y}from"./6JCLCDIE.js";import{b as v}from"./O6FR3FOW.js";import{a as _}from"./D5Q4UAHQ.js";import{k as b,l as m}from"./T5I64IOL.js";import{a as g}from"./K5SS6M5G.js";import"./RGGFNMOE.js";import"./TGTBQ4IM.js";import{b as f}from"./AEXIW5QK.js";import{C as n,D as a,E as d,G as p,H as o,I as u,h,i as l,o as r}from"./5AEWU6E5.js";import"./LW6D2HAX.js";var S=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
- */.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)}.panel-override{--calcite-panel-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%}`,c=class extends d{constructor(){super(),this.solutionsCount=0,this.filterOpen=!0,this._filters={categories:[],searchTerm:""},this.isMobile=!1,this._translations=g({name:"solutions-all-shell",blocking:!0}),this._allSolutionsPanelRef=n(),this._solutionsFilterPanelRef=n(),this._isMobileContextConsumer=v({context:y,subscribe:!0,callback:e=>this.isMobile=e}),this.filterRemoved=r(),this.solutionsAllLoaded=r(),this.listenOn(window,"searchChanged",e=>{e.detail&&e.detail.scope==="solutions"&&this._filterApplied(e.detail.option)})}static{this.properties={appConfig:1,solutionsCount:9,filterOpen:16,_filters:16,isMobile:16,_translations:16}}static{this.styles=S}willUpdate(e){e.has("isMobile")&&(this.filterOpen=!this.isMobile)}async searchSolutions(e){if(this._allSolutionsPanelRef.value.setSearchOptions(e),"industry"in e||"domain"in e){e.displayValue=e.domain||e.industry;let i=e.industry?Object.entries(b).find(([,t])=>t===e.industry)?.[0]:void 0,s=e.domain?Object.entries(m).find(([,t])=>t===e.domain)?.[0]:void 0;e.industry=i||"",e.domain=s||"",e.value=s||i,this._solutionsFilterPanelRef.value.changeIndustryFilter(e.industry,e.domain,e.displayValue,!0)}else("searchTerm"in e||"sortType"in e)&&("searchTerm"in e&&(this._filters.searchTerm=e.searchTerm),this._allSolutionsPanelRef.value?.searchSolutions(e))}async load(){this._isMobileContextConsumer.value&&(this.isMobile=this._isMobileContextConsumer.value)}loaded(){this.solutionsAllLoaded.emit()}render(){let e=this.filterOpen?"chevron-left":"chevron-right",i=this.isMobile?"justify-content-end":"";return l`<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??u} kind=neutral @click=${this._toggleFilter} scale=m></calcite-button><h1 class="height-100"><calcite-panel class="border-override header-override panel-override z-index-1"><div class=${`display-flex align-items-center ${i}`} slot=header-content><calcite-label class="label-override">${this._translations.numberOfSolutions.replace("{{count}}",this.solutionsCount.toString())}</calcite-label>${this._renderChips()}</div>${this.isMobile&&this._getFilterPanel()||""}${this._getSolutionsAllPanel()}</calcite-panel></h1></calcite-shell>`}_getFilterPanel(){let e=this.filterOpen?{display:"flex"}:"";return this.isMobile?l`<calcite-panel class=${p(this.filterOpen?"background-override":"filter background-override")} id=solutions-all-shell-panel-start style=${o(e)}><solutions-filter-panel class="height-100" @applyFilter=${i=>{this._filterApplied(i.detail)}} ${a(this._solutionsFilterPanelRef)}></solutions-filter-panel></calcite-panel>`:l`<calcite-shell-panel class="filter background-override filter-width-350" id=solutions-all-shell-panel-start position=start slot=panel-start style=${o(e)}><calcite-panel><solutions-filter-panel class="height-100" @applyFilter=${i=>{this._filterApplied(i.detail)}} ${a(this._solutionsFilterPanelRef)}></solutions-filter-panel></calcite-panel></calcite-shell-panel>`}_getSolutionsAllPanel(){let e=this.isMobile&&this.filterOpen?{display:"none"}:"";return l`<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} sort-type=relevance style=${o(e)} ${a(this._allSolutionsPanelRef)}></solutions-all-panel>`}_renderChips(){if(!this._filters.categories)return;let e=this._filters.categories.filter(i=>i.type==="industry"||i.type==="domain");return e.length>0?_(e,i=>`${i.type}:${i.value}`,i=>l`<calcite-chip appearance=outline-fill class="padding-start" closable kind=neutral .label=${i.displayValue} @calciteChipClose=${()=>this._chipClosed(i.displayValue,i.type)} .value=${i.displayValue}>${i.displayValue}</calcite-chip>`):void 0}_updateSolutionCount(e){this.solutionsCount=e.detail}_chipClosed(e,i){if(this._filters.categories){if(i==="industry")this._filters.categories=[];else{let s=this._filters.categories.filter(t=>t.displayValue!==e&&t.type!==i);this._filters.categories=s}this._filters.categories.length>0?this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories):this._filters.searchTerm!==""?(this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories),this._allSolutionsPanelRef.value?.searchSolutions({searchTerm:this._filters.searchTerm})):this._allSolutionsPanelRef.value?.searchSolutions(),this.filterRemoved.emit(this._filters.categories)}}_toggleFilter(){this.filterOpen=!this.filterOpen}_filterApplied(e){if(this._filters.categories)if(e){let i=e;"displayValue"in e?this._filters.categories.push(e):Array.isArray(e)&&e.length>0&&(e.length>=2&&(i=[e[e.length-1]]),this._filters.categories=e),"searchTerm"in i&&(this._filters.searchTerm=i.searchTerm),this._allSolutionsPanelRef.value?.searchSolutions(i)}else this._filters.categories=[],this._allSolutionsPanelRef.value?.searchSolutions()}};f("solutions-all-shell",c);export{c as SolutionsAllShell};
@@ -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.20251015.1 */
4
- import{b as u}from"./NQ6KROBY.js";import{c as p}from"./6JCLCDIE.js";import{b as d}from"./O6FR3FOW.js";import{m as r}from"./T5I64IOL.js";import{a as h}from"./K5SS6M5G.js";import"./RGGFNMOE.js";import"./TGTBQ4IM.js";import{b as c}from"./AEXIW5QK.js";import{E as l,I as o,h as n,i as s,o as i}from"./5AEWU6E5.js";import"./LW6D2HAX.js";var g=n`/** @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
- */.toolbar-sizing{max-width:96vw;padding-right:0;padding-left:0;margin-left:auto;margin-right:auto;box-sizing:border-box;padding-bottom:10px}calcite-panel{--calcite-panel-background-color: var(--calcite-color-foreground-1)}.border-color{--calcite-block-border-color: #00000000}.flex-row{display:flex;flex-direction:row}.flex-grow-1{flex-grow:1}`,a=class extends l{constructor(){super(),this.defaultSortType="relevance",this.isAllSolutions=!1,this.isMobile=!1,this.scope="solutions",this._activeSearchSortSettings={enabled:!0,searchTerm:"",sortType:this.defaultSortType},this._isOrgAdmin=!1,this._translations=h({name:"solutions-searchsort-toolbar",blocking:!0}),this._authContextConsumer=d({context:p,subscribe:!0}),this.searchChanged=i(),this.sortTypeChanged=i()}static{this.properties={defaultSortType:[0,{type:String,attribute:"default-sort-type"}],isAllSolutions:5,isMobile:5,scope:1,_activeSearchSortSettings:16,_isOrgAdmin:16,_translations:16}}static{this.styles=g}changeOwnerFilter(e){this.isAllSolutions=!e;let t={displayValue:this.isAllSolutions?this._translations.myOrgSolutions:this._translations.mySolutions,type:"owner",value:this.isAllSolutions?r.ORGANIZATION:r.OWNER};this.searchChanged.emit({option:t,scope:this.scope})}changeSearchFilter(e,t){this._activeSearchSortSettings={...this._activeSearchSortSettings,searchTerm:e},t&&this.searchChanged.emit({option:{searchTerm:e},scope:this.scope})}sortChanged(e){this._activeSearchSortSettings={...this._activeSearchSortSettings,sortType:e},this.sortTypeChanged.emit({sortType:this._activeSearchSortSettings.sortType,scope:this.scope})}firstUpdated(){console.warn("TODO need to update string after release in t9manifest"),this._activeSearchSortSettings={...this._activeSearchSortSettings,sortType:this.defaultSortType}}willUpdate(){this._authContextConsumer.value&&this._authContextConsumer.value.IsSignedIn!==this._isOrgAdmin&&(this._isOrgAdmin=u(this._authContextConsumer.value))}render(){return s`<div class="flex-row toolbar-sizing"><calcite-input-text class="flex-grow-1" clearable icon=search @keyup=${e=>{let t=e.target;e.key==="Enter"?this.changeSearchFilter(t.value,!0):this.changeSearchFilter(t.value,t.value.length>=3||t.value.length===0)}} @blur=${e=>{let t=e.target;this.changeSearchFilter(t.value,!0)}} .placeholder=${this._translations.search.solutions} slot=content-top .value=${this._activeSearchSortSettings.searchTerm}></calcite-input-text>${this.scope==="deployments"&&this._isOrgAdmin&&this._renderOwnerBlock()||""}${this._renderDropdown()}</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.isMobile?"":this.isAllSolutions?this._translations.myOrgSolutions:this._translations.mySolutions}</calcite-button><calcite-dropdown-group group-title=${this._translations.owner??o}><calcite-dropdown-item icon-start=user @click=${()=>{this.changeOwnerFilter(!0)}} .selected=${!this.isAllSolutions}>${this._translations.mySolutions}</calcite-dropdown-item><calcite-dropdown-item icon-start=organization @click=${()=>{this.changeOwnerFilter(!1)}} .selected=${this.isAllSolutions}>${this._translations.myOrgSolutions}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}_renderDropdown(){let e=[];return e=[{displayValue:this._translations.sortByRelevance,sortType:"relevance"},{displayValue:this._translations.sortByTitle,sortType:"title"}],this.scope==="deployments"?e.push({displayValue:this._translations.sortByDateDeployed,sortType:"created"}):(e.push({displayValue:this._translations.sortByNew,sortType:"new"}),e.push({displayValue:this._translations.sortByUpdated,sortType:"updated"}),this._authContextConsumer.value&&this._authContextConsumer.value.IsSignedIn&&e.push({displayValue:this._translations.sortBySuggestedForYou,sortType:"suggested"})),s`<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._activeSearchSortSettings.sortType)}</calcite-button><calcite-dropdown-group group-title=${this._translations.chooseSortType??o}>${e.map(t=>this._getDropdownItem(t.displayValue,t.sortType))}</calcite-dropdown-group></calcite-dropdown>`}_getDropdownItem(e,t){return this._activeSearchSortSettings.sortType!==t?s`<calcite-dropdown-item @click=${()=>this.sortChanged(t)}>${e}</calcite-dropdown-item>`:s`<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;case"created":t=this._translations.sortByDateDeployed;break}return t}};c("solutions-searchsort-toolbar",a);export{a as SolutionsSearchSortToolbar};
@@ -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.20251015.1 */
4
- import{b as A}from"./XZ3MICYT.js";import"./KH7LGU5K.js";import"./PD3N7S4N.js";import"./3IIWPGCK.js";import"./AJX4JPNT.js";import"./6AP65TD5.js";import"./T5BTHDQC.js";import"./5L57Y4TT.js";import"./PVXYECTY.js";import"./MTPKMXI7.js";import"./FYQSS5YY.js";import"./I7MSVZLZ.js";import"./6I6JPIBT.js";import"./MAZA2SKN.js";import"./7D3QF2ET.js";import"./GWZZ3ITH.js";import"./IEJZM3BQ.js";import"./CPVITWV2.js";import"./542FXWVN.js";import"./YR5O3VCH.js";import"./34IANJ5L.js";import"./3VYCPR2S.js";import{a as C}from"./665YHS3W.js";import"./6UWUDE55.js";import"./4IPLM5AY.js";import{c as F,d as O,j as m}from"./XVXCQG3C.js";import{j as b}from"./T5I64IOL.js";import{c as S}from"./4XBEYMUG.js";import{b as x}from"./B7XE662D.js";import{a as E}from"./K5SS6M5G.js";import"./RGGFNMOE.js";import"./TGTBQ4IM.js";import{b as v}from"./AEXIW5QK.js";import{C as u,D as g,E as T,G as f,h as w,i as o,l as c,o as _,r as I}from"./5AEWU6E5.js";import"./LW6D2HAX.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}}`,y=class extends T{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._hideTable=!1,this._filterActive=!1,this._selectAllActive=!1,this._showHideOpen=!1,this._showOnlySelected=!1,this._toolInfos=[],this._translations=E({name:"layer-table",blocking:!0}),this._fullTextSearchInfo=[],this._searchPlaceHolder="",this._size=0,this._queryingData=!1,this._editEnabled=!1,this._enabledLayerIds=[],this._defaultFilterHonored=!1,this._defaultGlobalIdHonored=!1,this._defaultOidHonored=!1,this._definitionExpression="",this._deleteEnabled=!1,this._filterList=u(),this._floorExpression="",this._floorField="",this._floorFacility="",this._floorLevel="",this._floorSite="",this._layerExpressions=[],this._loaded=!1,this._shareNode=u(),this._toolbar=u(),this._searchExpression="",this._skipEditCheck=!1,this._tempSelectedIds=[],this._outOFExtentOids=[],this._shouldUpdateTableOnExtentChange=!0,this._creatingFeature=!1,this._searchNode=u(),this.columnReorder=_(),this.featureSelectionChange=_(),this.toggleFilter=_(),this.showDelete=_(),this.relatedRecordToggled=_(),this.editMultipleFeatures=_(),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,_hideTable: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(){if(this._hideTable=!1,this._fetchingData=!0,!this._layer){this._fetchingData=!1,this._hideTable=!0;return}try{await this._layer.when(),this._definitionExpression=this._layer.definitionExpression||"",this._floorField=this._layer.floorInfo?.floorField||"",this._updateFloorDefinitionExpression(),await this._resetTable(),this._updateShareUrl()}catch(e){console.error(e),this._hideTable=!0}finally{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(),n;h.some(async r=>r.layer.title===l?.title&&r.layer.type==="feature"?(n=r,this.mapView&&await m([i],n,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._size=0,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||this._hideTable?"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=${n=>void this._searchTextChanged(n)} .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>`}updated(){this._table&&this.updateRelatedAttachmentColumns()}async _initModules(){let[e,t,i,s]=await x(["esri/widgets/FeatureTable","esri/core/reactiveUtils","esri/widgets/FeatureTable/support/TableTemplate","esri/rest/support/RelationshipQuery"]);this.FeatureTable=e,this.reactiveUtils=t,this.TableTemplate=i,this.RelationshipQuery=s}async _searchTextChanged(e){this._fullTextSearchInfo.forEach(t=>{t.searchTerm=e.target.value}),this._searchFullText()}async _searchFullText(){let e=[],t=!1;if(this._showOnlySelected)e=this._tempSelectedIds,t=!0;else if(await this._validateActiveEdits([],this.selectedIds))this._clearSelection(),this._tempSelectedIds=[];else return;this._searchExpression&&this._clearSearchDefinitionExpression();let i=[];if(this._fullTextSearchInfo?.length&&this._fullTextSearchInfo[0].searchTerm){let s=this._layer?.createQuery();s.fullText=this._fullTextSearchInfo,i=this._layer?await this._layer.queryObjectIds(s):[],t&&e?.length&&(i=i.filter(a=>e.includes(a))),await this._updateSearchDefinitionExpression(i?.length?i:[-1])}t&&i?.length&&(this._showOnlySelected=!0,this._table?.highlightIds.addMany(i.reverse())),await new Promise(s=>setTimeout(s,800)),await this._updateAllIds()}_clearSearchDefinitionExpression(){let e=this._layer?.definitionExpression;this._searchExpression&&e&&e?.indexOf(this._searchExpression)>-1&&this._layer&&(e?.indexOf(" AND ("+this._searchExpression)>-1?this._layer.definitionExpression=e.replace(` AND (${this._searchExpression})`,""):this._layer.definitionExpression=e.replace(this._searchExpression,"")),this._searchExpression=""}async _updateSearchDefinitionExpression(e){let t=this._layer?.definitionExpression;if(this._layer)if(e?.length){let i=`objectId in(${e})`;this._layer.definitionExpression=this._searchExpression&&t&&t.includes(this._searchExpression)?t.replace(this._searchExpression,i):t?`${t} AND (${i})`:i,this._searchExpression=i}else this._clearSearchDefinitionExpression()}_canShowFullTextSearch(){return this._layer?.capabilities?.query?.supportsFullTextSearch&&this._layer.indexes.items.filter(e=>e.indexType=="FullText").length>0}_getFullTextSearchInfo(){if(this._fullTextSearchInfo=[],this._layer?.capabilities?.query?.supportsFullTextSearch){let e=this._layer.indexes?.filter(t=>t.indexType=="FullText");if(e?.length){let t=[];e.forEach(s=>{t.push(...s.fields.split(","))});let i=[];t.forEach(s=>{let a=this._layer?.getField(s.trim());a?.alias&&i.push(a.alias)}),this._searchPlaceHolder=this._translations.searchPlaceholder.replace("{{field_names}}",i.join(", ")),this._fullTextSearchInfo.push({onFields:["*"],searchTerm:"",searchType:"prefix"})}}}_getMapLayerPicker(e){let t=this.isMobile?"display-none":"";return o`<div class=${`border-end ${t}`} id=solutions-map-layer-picker-container slot=${e??c}><map-layer-picker appearance=transparent .defaultLayerId=${this.defaultLayerId} display=inline-flex .enabledLayerIds=${this._enabledLayerIds} height=50 .isMobile=${this.isMobile} .mapView=${this.mapView} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} placeholder-icon=layers scale=l .selectedIds=${this._layer?[this._layer?.id]:[]} show-single-layer-as-label show-tables type=dropdown></map-layer-picker></div>`}_getLayerOption(e){let t;return this.mapInfo?.layerOptions?.layers.some(i=>i.id===e?(t=i,!0):!1),t}_getActionsEnd(e){let t=this._relatedFeatureTable?this._relatedFeatureTable.layer:this._layer,i=this._relatedFeatureTable||this._table,s=this._getLayerOption(t?.id||"");return o`<div class="display-flex" slot=${e??c}><field-selection .configExtraFields=${s?.extraFields} .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(),n=this.featureSelectionMode==="single",r=this.enableCSV;if(this._relatedFeatureTable){let p=await this._queryRelatedFeatures();r=p&&Object.keys(p).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}),!n&&!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}),!n&&!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}),r&&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,n){let r=this._layer===void 0?!0:l;return o`<calcite-action .active=${e} appearance=solid .disabled=${r} .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}`,n)}`}_showDelete(){this.showDelete.emit({ids:this._getIds()})}_getShare(e){return 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,editingEnabled:this._editEnabled&&this.enableInlineEdit,relatedRecordsEnabled:!0,attachmentsEnabled:!0,highlightEnabled:!1,multiSortEnabled:!1,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._table?.viewModel.addHandles(this._table.on("column-reorder",this._handleColumnReorder.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,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)}_handleColumnReorder(){this.columnReorder.emit()}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,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.highlightIds.length===0){let l=this._relatedFeatureTable.tableParent.highlightIds?.getItemAt(0);if(l!==void 0){let h=await this._queryRelatedFeatures(),n=[];h&&h[l]?.features&&(h[l].features.forEach(r=>{r.attributes&&n.push(r.attributes[e.objectIdField])}),i=n.length>0?n:[])}}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 n=h?.name||h?.fieldName;n&&l.push(n.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 m(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._getLayerOption(e),a=this._layer?.attributeTableTemplate?.elements,l=[];a?.length>0&&this.honorMapFieldSettings&&(l=a.map(r=>r.fieldName));let h=s?.fields&&s?.fieldOrder?s.fieldOrder.filter(r=>s?.fields&&s.fields.indexOf(r)>-1):l.length>0?l:void 0,n;return t&&(n=t.reduce((r,d)=>{let p={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&&r.push(p):l.length>0?l.indexOf(d.name)>-1&&r.push(p):r.push(p),r},[])),n?h?n?.sort(this._sortFields.bind(this,h)):n:[]}updateRelatedAttachmentColumns(){let e=this._getLayerOption(this._layer?.id||""),t=this.hasAttachmentsEnabled(this._layer),i=!0,s="attachments",a=(e?.extraFields||[]).reduce((h,n)=>(n.startsWith("related:")?h.related.push(n.split("related:")[1]):h.extra.push(n),h),{related:[],extra:[]}),l=a.extra.some(h=>h.toLowerCase()===s);a&&(t=l&&t,i=a.related.length>0,this._table?.columns.forEach(h=>{h.fieldName.startsWith("EsriFeatureTableRelationshipColumn")&&(h.hidden=!a.related.includes(h.effectiveLabel)),h.fieldName.startsWith("EsriFeatureTableAttachmentsColumn")&&(h.hidden=!a.extra.some(n=>n.toLowerCase()===h.effectiveLabel.toLowerCase()))})),this._table.relatedRecordsEnabled=i,this._table.attachmentsEnabled=t}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)}))}};v("layer-table",y);export{y 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.20251015.1 */
4
- import{b as f}from"./B7XE662D.js";import{a as y}from"./K5SS6M5G.js";import"./RGGFNMOE.js";import"./TGTBQ4IM.js";import{b}from"./AEXIW5QK.js";import{C as a,D as h,E as u,G as l,h as w,i as r,l as m}from"./5AEWU6E5.js";import"./LW6D2HAX.js";var x=w`/** @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}.danger-icon-color{--calcite-icon-color: var(--calcite-color-status-danger)}`,g=class extends u{constructor(){super(),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=y({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._isValidWebMap=!0,this._basemapElement=a(),this._floorFilterElement=a(),this._fullscreenElement=a(),this._legendElement=a(),this._searchElement=a(),this._widgets=[],this._selectionToolElement=a(),this._mapTools=[],this._mapTool=a(),this.listenOn(window,"mapChanged",this.mapChanged)}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,mapInfo:0,_hasFloorInfo:16,_translations:16,_showTools:16,_showBasemapWidget:16,_showFloorFilter:16,_showFullscreen:16,_showLegendWidget:16,_showSearchWidget:16,_selectionToolActive:16,_showEllipsisTools:16,_ellipsisTools:16,_isValidWebMap:16}}static{this.styles=x}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 mapChanged(e){let s=e.detail.isValid;this._isValidWebMap=s}async load(){this._mapTools=[...this.toolOrder],await this._initModules()}render(){this._setZoomToolsSize();let e=this.layout==="horizontal"?"display-flex":"",s=this._getToggleIcon(),t=this._showTools?e:"display-none",i=this._showEllipsisTools?"":"display-none",n=this._showSearchWidget?"":"display-none",o=this._showBasemapWidget?"":"display-none",d=this._showLegendWidget?"":"display-none",p=this._showFloorFilter?"":"display-none",c=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",_=this.stackTools&&this._ellipsisTools.length===0?"box-shadow":"";return r`<div class=${`${T} ${e}`}>${this.enableSingleExpand?r`<div class=${l(_)}>${this._getActionGroup(s,!1,W||"",()=>this._toggleTools())}</div>`:void 0}<div class=${`${v} ${_} ${t}`}>${this._getMapWidgets(this._mapTools)}</div><div><div class=${l(F)}>${this._getActionGroup("ellipsis",!1,"",()=>this._toggleEllipsisTools())}<div class=${l(i)}>${this._getMapWidgets(this._ellipsisTools)}</div></div></div></div><basemap-gallery .basemapConfig=${this.basemapConfig} class=${l(o)} .mapView=${this.mapView} ${h(this._basemapElement)}></basemap-gallery><map-search class=${l(n)} .mapView=${this.mapView} result-graphic-enabled .searchConfiguration=${this.searchConfiguration} ${h(this._searchElement)}></map-search><map-legend class=${l(d)} .mapView=${this.mapView} ${h(this._legendElement)}></map-legend><map-fullscreen class=${l(c)} .mapView=${this.mapView} @fullscreenStateChange=${$=>this._fullscreenStateChange($.detail)} ${h(this._fullscreenElement)}></map-fullscreen><floor-filter class=${l(p)} .enabled=${this.enableFloorFilter} .mapView=${this.mapView} ${h(this._floorFilterElement)}></floor-filter><selection-tool .mapView=${this.mapView} @drawingComplete=${()=>{this._selectionToolActive=!this._selectionToolActive}} .selectedLayerId=${this.selectedLayer?.id} tool=rectangle ${h(this._selectionToolElement)}></selection-tool>${this.enableMapPicker&&r`<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&&this.selectedLayer&&r`<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 f(["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 t=this.zoomToolsSize==="s"?"32px":this.zoomToolsSize==="m"?"40px":"48px";e.style.width=t,e.style.height=t,s.style.width=t,s.style.height=t}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 t=s.indexOf("floorfilter");t>-1&&!this._hasFloorInfo&&s.splice(t,1);let i=Math.ceil(e/40)-1;i&&i!==s.length-1?(this._mapTools=s.slice(0,i),this._ellipsisTools=s.slice(i,s.length)):(this._mapTools=s,this._ellipsisTools=[])}_getMapWidgets(e){let s=this._showFullscreen?"full-screen-exit":"full-screen",t=this._showFullscreen?this._translations.exitFullscreen:this._translations.enterFullscreen,i=this._isValidWebMap?"map":"exclamation-mark-triangle",n=this.selectedLayer===void 0?"exclamation-mark-triangle":"layers";return e.map(o=>{switch(o){case"legend":return this.enableLegend&&this.enableSingleExpand?this._getActionGroup("legend",!1,this._translations.legend,()=>this._showLegend()):this.enableLegend?this._getWidget(o,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(o,this._searchElement.value?.searchWidget,!0):void 0;case"fullscreen":return this.enableFullscreen&&this.enableSingleExpand?this._getActionGroup(s,!1,t||"",()=>this._expand()):this.enableFullscreen?this._getWidget(o,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(o,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(o,this._floorFilterElement.value?.floorFilterWidget,!0):void 0;case"selectiontool":return this.enableSelectionTool&&this.selectedLayer?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(i,!1,"",()=>{},!this._isValidWebMap):void 0;case"map-layer-picker":return this.enableMapLayerPicker&&this._isValidWebMap?this._getActionGroup(n,!1,"",()=>{},this.selectedLayer===void 0):void 0;default:return""}})}_fullscreenStateChange(e){e==="ready"&&this._showFullscreen?this._showFullscreen=!1:e==="active"&&!this._showFullscreen&&(this._showFullscreen=!0)}_getActionGroup(e,s,t,i,n,o){let d=this.mapWidgetsSize==="s"?"square-32":this.mapWidgetsSize==="m"?"square-40":"square-48",p=this.stackTools?"":"margin-bottom-1-2",c=this.stackTools?"":"box-shadow";return r`<div><calcite-action alignment=center .indicator=${o} class=${`map-actions ${d} ${p} border-bottom ${c} ${n?"danger-icon-color":""}`} .disabled=${s} .icon=${e} id=${e??m} @click=${i} scale=s text ${h(this._mapTool)}><calcite-icon icon=cheveron-up scale=s slot=icon></calcite-icon></calcite-action>${!this.isMobile&&r`<calcite-tooltip .placement=${this.layout==="vertical"?"auto":"bottom"} reference-element=${e??m}><span>${t}</span></calcite-tooltip>`||""}</div>`}_getWidget(e,s,t){if(this._widgets.indexOf(e)<0&&this.mapView&&s){let i=this.toolOrder.indexOf(e),n=this.Expand&&new this.Expand({view:this.mapView,content:s}),o=this.enableHome?2:1;this.mapView.ui.add(t?n:s,{position:this.position,index:i>-1?i+o: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}};b("map-tools",g);export{g as MapTools};
@@ -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.20251015.1 */
4
- import{c as g}from"./6JCLCDIE.js";import{a as u}from"./O6FR3FOW.js";import{a as p}from"./K5SS6M5G.js";import"./RGGFNMOE.js";import"./TGTBQ4IM.js";import{b as m}from"./AEXIW5QK.js";import{E as c,I as i,h as d,i as t,j as a,r as h}from"./5AEWU6E5.js";import"./LW6D2HAX.js";var v=d`@layer{/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */.esri-header-wrap{background:#fff;box-shadow:0 1px #e0e0e0;position:relative;z-index:101;max-width:var(--esri-vw);overflow-x:clip}.esri-header{align-items:center;color:#595959;background-color:#fff;cursor:default;display:flex;justify-content:space-between;height:56px}.esri-header,.esri-header *{box-sizing:border-box}.esri-header-brand,.esri-header-brand:hover{text-decoration:none}.esri-header-brand{align-items:center;display:flex;flex:1 1 auto;height:100%;color:#595959}@media(min-width:1024px){.esri-header-brand{flex:0 0 auto}}@media(min-width:1024px){[dir=ltr] .esri-header-brand{padding-left:5px;padding-right:12px}[dir=rtl] .esri-header-brand{padding-left:12px;padding-right:8px}}@media(max-width:1023px){[dir=ltr] .esri-header-brand{padding-right:12px;margin-right:auto}[dir=rtl] .esri-header-brand{padding-left:12px;margin-left:auto}}.esri-header-brand-text{font-size:18px;font-weight:400;color:#323232;position:relative}@media(min-width:1024px){.esri-header-brand-text{font-size:16px}}.esri-header-brand-text,.esri-global-nav__title-node-container{display:flex;align-items:center}.esri-global-nav__logo-link{margin-top:3px;color:unset;text-decoration:unset}.esri-global-nav__title{margin-block-start:0;position:relative;margin-inline:7px 0;font-size:22px;font-weight:400;margin:0 16px;padding:0 16px}@media(min-width:1px){[dir=ltr] .esri-global-nav__title{border-left:solid black 1px}[dir=rtl] .esri-global-nav__title{border-right:solid black 1px}}.esri-header-menus.-mobile .esri-header-menus-menu{display:none;margin-bottom:auto}@media(max-width:1023px){.esri-header-menus.-mobile .esri-header-menus-menu{display:block}}@media(min-width:1024px){.esri-header-menus{flex-grow:1}.esri-header-menus.-mobile{display:none}.esri-header-menus.-desktop{display:block}}.esri-header-menus-toggle{appearance:button;-webkit-appearance:button;margin:0;overflow:visible;text-transform:none}.esri-header-menus-toggle{background-color:transparent;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;padding:0;display:block;cursor:pointer}.esri-header-menus-image{display:block;fill:currentColor;margin:15px 16px;width:24px;height:24px}@media(min-width:1024px){.esri-header-menus-content{display:flex;justify-content:space-between}}.esri-header-menus-list{list-style-type:none;margin-top:0;margin-bottom:0;padding-right:0;padding-left:0}@media(min-width:1024px){.esri-header-menus-list{display:flex}}.esri-header-menus.-mobile .esri-header-menus-list{display:block}.esri-header-menus-link{color:inherit;text-decoration:none}.esri-header-menus-link{background:transparent;border:0;color:#595959;cursor:pointer;display:block;font-size:16px;line-height:20px;font-family:inherit;margin:18px 24px}.esri-header-menus-link{white-space:nowrap}@media(min-width:1024px){.esri-header-menus-link{display:block;cursor:pointer}.highlight-tab{border-bottom:solid 2px var(--calcite-color-brand);margin:18px 24px 15px}}@media(min-width:1px){[dir=ltr] .esri-header-menus-link{text-align:left}[dir=rtl] .esri-header-menus-link{text-align:right}}.esri-header-menus.-mobile .esri-header-menus-link{background-image:linear-gradient(90deg,transparent 24px,#e9e9e9 0);background-position:0 100%;background-repeat:no-repeat;background-size:100% 1px;outline:0;padding:28px 60px 28px 24px;position:relative}@media(min-width:1024px){.esri-header-menus-item{flex-grow:1;position:relative}}@media(max-width:1023px){.esri-header-menus-content{background-color:#f8f8f8;box-shadow:inset 0 1px #e0e0e0,1px 0 #e0e0e0;display:flex;flex-direction:column;top:100%}.esri-header-menus-content{-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;overflow-x:hidden;overflow-y:auto;position:absolute;height:calc(100vh - 56px);width:320px;height:calc(var(--esri-vh) - 56px);transform:translate(0);transition:transform .4s ease-in-out;z-index:1}}.-app .esri-header-menus-content{justify-content:flex-start}@media(max-width:1023px){.-app .esri-header-menus-content{transform:translate3D(320px,0,0);justify-content:flex-start}}.esri-header label,.esri-header li{margin:0}.esri-header-menus.-mobile .esri-header-menus-content{background-color:#f8f8f8;box-shadow:inset 0 1px #e0e0e0,1px 0 #e0e0e0;display:flex;flex-direction:column;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;overflow-x:hidden;overflow-y:auto;position:absolute;transform:translate(0);transition:transform .4s ease-in-out;z-index:1;top:100%;width:320px;height:calc(var(--esri-vh) - 56px)}@media(max-width:1023px){.esri-header-menus{order:1;position:relative}.esri-header-menus.-mobile{display:flex;flex-grow:0;flex-shrink:0}.esri-header-menus.-desktop{display:none}[dir=ltr]{.esri-header-menus-content{right:0}.esri-global-nav__title-node-container{padding-top:1px;padding-left:14px}}[dir=rtl]{.esri-header-menus-content{left:0}.esri-global-nav__title-node-container{padding-right:14px}}}@media(min-width:1024px){[dir=ltr]{.esri-global-nav__title-node-container{padding-left:5px}}[dir=rtl]{.esri-global-nav__title-node-container{padding-right:5px}}}@media(min-width:1px){[dir=ltr] .esri-header-menus.-mobile .esri-header-menus-content[aria-hidden=true]{transition:transform .4s ease-in-out,visibility 0s .4s;transform:translate(320px);visibility:hidden}[dir=rtl] .esri-header-menus.-mobile .esri-header-menus-content[aria-hidden=true]{transition:transform .4s ease-in-out,visibility 0s .4s;transform:translate(-320px);visibility:hidden}}.esri-header-client,.esri-header-account{width:56px;height:56px}.esri-header-account-control--signin{background-color:transparent;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;display:block;cursor:pointer;font-size:16px;line-height:20px;width:56px;height:56px;padding:0;position:relative;appearance:button;-webkit-appearance:button;margin:0;overflow:visible;text-transform:none}.esri-header-account-image-avatar{border-radius:50%;width:32px;height:32px}.disabled-icon{color:#c7c7c7;cursor:unset}}`,s=class extends c{constructor(){super(...arguments),this.authentication=null,this.activeTab="all-solutions",this._signInOutText="",this._authContextProvider=u({context:g}),this._translations=p({name:"solutions-deploy-app-nav",blocking:!0}),this._userAvatarUrl=""}static{this.properties={authentication:0,activeTab:3,_signInOutText:16,_translations:16,_userAvatarUrl:16}}static{this.styles=v}static{this.shadowRootOptions=h}load(){this._signInOutText=this._translations.signIn}render(){return t`<nav role=navigation><div><div class="esri-header-wrap"><div class="esri-header -app"><div class="esri-header-brand"><span class="esri-header-brand" id=esri-header-brand><span class="esri-header-brand-text"><header class="esri-global-nav__title-node-container"><a aria-label=${this._translations.linkToEsriHomePage??i} class="esri-global-nav__logo-link" href=https://www.esri.com rel=noopener target=_blank title=${this._translations.linkToEsriHomePage??i}><svg height=30 viewBox="0 0 84 30" width=84 xmlns=http://www.w3.org/2000/svg>${a`<path d="M77.277.5c-1.48 0-2.554 1.175-2.554 2.488 0 1.314 1.074 2.49 2.554 2.49 1.48 0 2.622-1.071 2.622-2.49C79.899 1.572 78.756.5 77.277.5zm-1.913 23.426h3.891V8.353h-3.891v15.573zM40.515 7.965c-4.702 0-8.465 3.275-8.465 8.174 0 4.898 3.763 8.177 8.465 8.177 2.146 0 4.165-.667 5.852-2.31l-2.457-2.457c-.916.964-2.093 1.651-3.78 1.651-2.175 0-3.927-1.397-4.188-3.698h11.875v-1.07c0-5.42-2.95-8.467-7.302-8.467zm-4.573 6.617c.293-2.24 1.721-3.7 4.023-3.7 2.434 0 3.926 1.43 3.96 3.7h-7.983zm17.305-1.849c0-1.169 1.233-1.655 2.273-1.655 1.32 0 2.292.547 3.037 1.577l2.476-2.474c-1.282-1.6-3.407-2.216-5.418-2.216-3.147 0-6.262 1.555-6.262 5.028 0 5.938 8.403 3.406 8.403 6.617 0 1.233-1.46 1.784-2.595 1.784-1.65 0-2.687-.806-3.69-1.905l-2.515 2.514c1.58 1.711 3.62 2.313 5.978 2.313 3.179 0 6.717-1.299 6.717-4.998 0-6.067-8.404-3.795-8.404-6.585zm14.15-1.916h-.062V8.353h-3.892v15.573h3.892v-8.34c0-.842.518-3.925 4.185-3.925.564 0 1.127.112 1.718.253l.152-3.726c-.45-.127-.901-.223-1.382-.223-2.046 0-3.766 1.07-4.61 2.852zM14.683 2.766c-1.217-.037-1.932.12-2.651.26-.216-.056-.62.003-.643.472 0 .252.08.447.24.562.159.114 1.493 1.1 2.473 2.142-.47.052-.98.138-1.504.246-.585-1.264-2.465-.114-3.714-.064-.146.006-.286.025-.431.035-.137-1.056-.235-2.15-.21-2.92 1.618-.917 4.748-1.593 6.874-1.626l.373-.01c.312-.003.337-.251.043-.291-2.641-.361-4.929.173-7.279 1.145C5.808 3.748 2.696 6.12.8 10.596c-.444 1.247-2.219 7.195.935 12.3 2.56 4.142 5.855 6.113 9.887 6.676 4.024.561 6.207.075 8.752-1.055 5.951-2.642 10.496-12.559 5.95-19.747-1.794-3.319-6.495-6.229-11.641-6.004zm-2.259 4.647a17.754 17.754 0 0 1 2.362-.368 15.741 15.741 0 0 1 1.748 2.54c-.805.39-1.878.688-2.315 1.312-.181.26-.226.613-.232.995a23.59 23.59 0 0 0-3.877 1.286c-.453-1.332-.85-2.66-1.124-3.842 1.296-1.237 2.813-1.438 3.438-1.923zm6.61 15.88c-.354.038-.706.083-1.016.13-.77.121-1.762.379-2.685.723-.53-.843-1.95-2.891-2.667-4.437 1.442-.709 3.457-1.303 5.775-1.444.19.33.4.66.69.956.757.774-.44 1.883-.096 4.072zm-8.603-9.14c1.12-.53 2.3-.968 3.56-1.286-.008.333-.045.649-.182.903-.196.366-.106 1.428.134 1.775.755 1.099 2.008.488 2.951.883.433.181.721.482.964.84-1.974.124-3.91.584-5.706 1.41-.923-1.96-1.72-4.524-1.72-4.524zm.832 4.938c-.07.033-.145.074-.217.11a40.803 40.803 0 0 0-3.256-.78c-.995-.204-1.031-.15-2.151.175-.16.046-.313.088-.462.133a36.17 36.17 0 0 1-.445-1.202c1.436-1.106 2.884-2.034 4.821-2.985.5 1.491 1.215 3.483 1.71 4.549zm.768 4.528c.293-.765.521-1.331.605-1.89.569.958 1.248 2 1.774 2.815-.819.397-1.772 1.01-2.672 1.685.062-1.037.083-2.064.293-2.61zm5.334-14.636c-.01.014-.028.026-.04.04a23.057 23.057 0 0 0-1.376-2.111c1.007-.061 2.246-.008 3.374.108-1.014.363-1.461 1.254-1.958 1.963zm-9.028 1.094c.019-.026.039-.047.057-.072.234 1.182.513 2.16.886 3.518-1.402.618-3.881 2.148-4.976 2.972-.198-.502-.404-1.214-.589-1.946.249-.737.758-1.254 1.476-1.325 1.228-.123 2.28-1.95 3.146-3.147zm-5.41-1.784C4.24 6.455 6.023 4.666 7.65 3.773c-.016.4.086 1.567.218 2.693-.57.057-1.134.128-1.692.211a12.084 12.084 0 0 0-3.115 4.088c-.117-1.054-.178-1.933-.133-2.472zM2.07 9.731s.062 1.06.113 1.833c0 0-.781.886-1.18 1.59.159-1.443.498-2.187 1.067-3.423zm7.664 18.356C5.688 26.82 2.69 23.41 1.62 19.834a17.475 17.475 0 0 1-.651-6.473c.056.01.186.072.38.017.135-.093.616-.43.957-.728l.018.131c-.23.87-.371 1.775-.4 2.71.37.39.804 1.038 1.286 1.707-.31.23-.905.641-1.045.741-.41.292-.406.753-.114 1.015.161.144.492.084.613-.01.358-.285.656-.513 1.066-.77.15.393.292.748.43 1.086-.175.188-.3.436-.342.798-.135 1.172.979 2.092 1.918 2.36.035.01.06.014.094.023.05.076.095.147.148.224-.487.378-.82.765-1.049 1.063-.132.172-.28.43-.16.481.123.05.535 0 .719-.034.466-.09.826-.606 1.148-.796.387.534 1.017 1.22 1.672 1.88.029.12.055.246.088.351.125.403.293.804.495 1.196.471.22.962.402 1.464.561a8.344 8.344 0 0 0-.622.72zm.989.313c.155-.203.312-.454.505-.626.468.31.969.665 1.368.894-.615-.07-1.337-.085-1.873-.268zm3.113.31s-1.604-1.062-2.009-1.471c.803-.667 2.102-1.459 3.128-1.889.402.63 1.727 2.507 2.258 3.112-.963.168-2.31.294-3.377.248zM20.54 27.2c-.286.189-1.664.814-2.204.988a23.43 23.43 0 0 1-2.44-3.202c.844-.354 2.143-.67 3.346-.82.109.342.25.704.444 1.094.19.382.411.662.649.853.085-.053.164-.115.248-.17-.006.42-.018.846-.043 1.257zm-.33-21.477c-.27-.172-.607-.108-.467.193.053.117.259.314.427.512-.986-.272-3.608-.479-4.856-.364-.815-.916-1.744-2.028-2.861-2.765 4.999-.311 9.49 1.756 11.473 4.186-.661-.344-2.087-.834-2.667-.963-.313-.319-.708-.58-1.05-.8zm1.094 21.065c.023-.407.04-.922.053-1.396.487-.378.946-.79 1.37-1.238.547.063 1.094.156 1.427.24-.74.936-1.762 1.716-2.85 2.394zm3.825-3.724c-.12.253-.428.688-.633.894-.312-.126-.781-.258-1.272-.375.078-.094.163-.182.24-.279.268-1.796-.338-2.37.42-4.014l.172-.371c.418.118.812.247 1.153.386.043.616.04 2.728-.08 3.759zm-.708-4.917c.196-.407.412-.84.645-1.27.061.547.105 1.08.131 1.563a9.256 9.256 0 0 0-.776-.293zm2.218 1.126l-.194.756c-.137.515-.593 1.732-.832 2.223.091-.663.171-2.384.148-2.73.16.049.502-.147.559-.341.057-.195-.564-.495-.564-.495a20.742 20.742 0 0 0-.172-2.7c.142-.23.286-.452.434-.655a12.082 12.082 0 0 0-.186-1.575c.125.041.24.074.323.075.283.004.282-.19.192-.298-.058-.07-.328-.238-.643-.42a12.02 12.02 0 0 0-2.78-5.32c.533.202 1.214.48 1.754.774.41.516 1.585 1.675 2.212 4.92.564 2.922-.06 5.143-.251 5.786zM80.886 8.597v-.24h1.218v.24h-.468v1.191h-.283V8.597h-.467zm1.87-.24l.365 1.025.368-1.024h.406v1.43h-.262V8.634l-.396 1.154h-.229l-.4-1.154v1.154h-.261v-1.43h.409z" />`}</svg></a><div class="esri-global-nav__title"><a aria-label=${this._translations.linkToArcGISSolutionsHomePage??i} class="esri-global-nav__logo-link" href=https://www.esri.com/en-us/arcgis/products/arcgis-solutions/overview rel=noopener target=_blank title=${this._translations.linkToArcGISSolutionsHomePage??i}>\r\n ArcGIS Solutions</a></div></header></span></span></div><div class="esri-header-menus -desktop" id=esri-header-menus-desktop><div class="esri-header-menus-content" id=esri-header-menus-content-desktop><div class="esri-header-menus-menu"><ul aria-labelledby=esri-header-brand class="esri-header-menus-list"><li class="esri-header-menus-item"><span class=${`esri-header-menus-link ${this.activeTab==="all-solutions"?" highlight-tab":""}`} @click=${()=>{this.activeTab="all-solutions";let e=new CustomEvent("nav-bar-tab-change",{detail:{tab:this.activeTab}});window.dispatchEvent(e)}} role=button>${this._translations.allSolutions}</span></li>${this.authentication?.IsSignedIn?t`<li class="esri-header-menus-item"><span class=${`esri-header-menus-link ${this.activeTab==="my-deployments"?" highlight-tab":""}`} @click=${()=>{this.activeTab="my-deployments";let e=new CustomEvent("nav-bar-tab-change",{detail:{tab:this.activeTab}});window.dispatchEvent(e)}} role=button>${this._translations.myDeployments}</span></li>`:null}</ul></div></div></div><div class="esri-header-client"><div class="esri-header-account"><button aria-label=${this._signInOutText??i} class=${`esri-header-account-control esri-header-account-control--signin ${this.authentication?"":" disabled-icon"}`} .disabled=${!this.authentication} @click=${()=>{this.authentication&&(this.authentication.IsSignedIn?this.authentication.signOut():this.authentication.signIn())}} title=${this._signInOutText??i}>${this.authentication?.IsSignedIn?this._userAvatarUrl?t`<img aria-label=${this._signInOutText??i} class="esri-header-account-image-avatar" src=${this._userAvatarUrl??i}>`:this._signInOutText:t`<svg class="calcite-icon" fill=currentColor height=24 viewBox="0 0 24 24" width=24>${a`<path d="M12 1.2A4.8 4.8 0 1 0 16.8 6 4.805 4.805 0 0 0 12 1.2zm0 8.6A3.8 3.8 0 1 1 15.8 6 3.804 3.804 0 0 1 12 9.8zM20 22H4v-4.5A5.506 5.506 0 0 1 9.5 12h5a5.506 5.506 0 0 1 5.5 5.5zM5 21h14v-3.5a4.505 4.505 0 0 0-4.5-4.5h-5A4.505 4.505 0 0 0 5 17.5z" />`}</svg>`}</button></div></div><div class="esri-header-menus -mobile" id=esri-header-menus-mobile><button aria-controls=esri-header-menus-content-mobile aria-expanded=false aria-labelledby=esri-header-brand class="esri-header-menus-toggle -visible" id=esri-header-menus-mobile-toggle @click=${()=>this._handleMenuVisibilityClick()}><span class=""><svg class="esri-header-menus-image" id=esri-header-menus-image style="transform: rotate(360deg)">${a`<path d="M21 6H3V5h18zm0 6H3v1h18zm0 7H3v1h18z" />`}</svg></span></button><div aria-expanded=false aria-hidden=true class="esri-header-menus-content" id=esri-header-menus-content-mobile><div class="esri-header-menus-menu"><ul aria-labelledby=esri-header-brand class="esri-header-menus-list"><li class="esri-header-menus-item"><span class="esri-header-menus-link" @click=${()=>{this.activeTab="all-solutions";let e=new CustomEvent("nav-bar-tab-change",{detail:{tab:this.activeTab}});window.dispatchEvent(e),this._handleMenuVisibilityClick()}} role=button>${this._translations.allSolutions}</span></li>${this.authentication?.IsSignedIn?t`<li class="esri-header-menus-item"><span class=${`esri-header-menus-link ${this.activeTab==="my-deployments"?" highlight-tab":""}`} @click=${()=>{this.activeTab="my-deployments";let e=new CustomEvent("nav-bar-tab-change",{detail:{tab:this.activeTab}});window.dispatchEvent(e),this._handleMenuVisibilityClick()}} role=button>${this._translations.myDeployments}</span></li>`:null}</ul></div></div></div></div></div></div></nav>`}updated(e){super.updated(e),e.forEach((n,b)=>{if(b==="authentication"&&this.authentication&&(this._authContextProvider.setValue(this.authentication),this.authentication.IsSignedIn)){this._signInOutText=this._translations.signOut;let x=this.authentication.Portal.user?.id,r=this.authentication.Portal.user?.thumbnailUrl;x&&r&&(async()=>{try{let o=await fetch(r);if(o.ok){let l=await o.blob();l.size>0&&(this._userAvatarUrl=URL.createObjectURL(l))}}catch{}})()}})}_handleMenuVisibilityClick(){let e=document.getElementById("esri-header-menus-content-mobile");if(e){let n=e.getAttribute("aria-expanded")==="true";e.setAttribute("aria-expanded",String(!n)),e.setAttribute("aria-hidden",String(n))}}};m("solutions-deploy-app-nav",s);export{s as SolutionsDeployAppNav};
@@ -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.20251015.1 */
4
- import{a,b}from"./SCQL3GII.js";import"./MG3DM3OR.js";import"./LW6D2HAX.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.20251015.1 */
4
- import c from"./VFIVVIKJ.js";import b from"./7QR7NLOV.js";import{b as R}from"./OZHTQMES.js";import a from"./3AOH7JGU.js";import{a as I,b as k,c as A,d as P}from"./6JCLCDIE.js";import{a as u}from"./O6FR3FOW.js";import{Bb as w}from"./KH7LGU5K.js";import"./PD3N7S4N.js";import"./3IIWPGCK.js";import"./AJX4JPNT.js";import"./6AP65TD5.js";import"./T5BTHDQC.js";import"./5L57Y4TT.js";import"./PVXYECTY.js";import"./MTPKMXI7.js";import"./FYQSS5YY.js";import"./I7MSVZLZ.js";import"./6I6JPIBT.js";import"./MAZA2SKN.js";import"./7D3QF2ET.js";import"./GWZZ3ITH.js";import{g as d}from"./IEJZM3BQ.js";import"./CPVITWV2.js";import"./542FXWVN.js";import"./YR5O3VCH.js";import"./34IANJ5L.js";import{p as C,q as U}from"./T5I64IOL.js";import{a as v}from"./K5SS6M5G.js";import"./RGGFNMOE.js";import"./TGTBQ4IM.js";import{b as T}from"./AEXIW5QK.js";import{C as l,D as o,E as f,G as g,h as S,i as p,o as _}from"./5AEWU6E5.js";import"./LW6D2HAX.js";export default $arcgis.t(([h,E,M,,{f:x,g:L},O])=>{var b=class{constructor(e,t,s){this._credential=null,this._isEnterprise=!1,this._locale="en",this._portalSubset=null,this._portalUserSubset=null,this._clientId=e??"",this._locale=s??"en",this._portalUrl=t??"https://www.arcgis.com",this._portalRestUrl=this._portalUrl+"/sharing/rest",this._credential=h.findCredential(this._portalRestUrl),this._portalUrl=location.origin.endsWith(".arcgis.com")?window.location.origin:this._portalUrl}get Credential(){return this._credential}get IsEnterprisePortal(){return this._isEnterprise}get IsSignedIn(){return!!this._credential}get Portal(){return this._portal}get PortalSubset(){return this._portalSubset}get PortalUrl(){return this._portalUrl}get PortalUserOrg(){return this._portalSubset&&this._portalSubset.id}get PortalUserName(){return this._portalUserSubset&&this._portalUserSubset.username||""}get PortalUserSubset(){return this._portalUserSubset}get PortalUserPrivileges(){let e=[];return this._portalUserSubset?.privileges&&(e=this._portalUserSubset.privileges),e}get RestUserSession(){let e=h.findServerInfo(this._portalRestUrl),t=this._credential?d.fromCredential(this._credential,e):new d({});return t.portal=this.PortalSubset?.restUrl?this.PortalSubset?.restUrl:t.portal,t.clientId=this._credential?._oAuthCred?.appId,t._refreshToken=this._credential?._oAuthCred?.refreshToken,t}async initialize(){try{await this._init()}catch{this.destroy()}return this}destroy(){this._credential=null,this._portalSubset=null,this._portalUserSubset=null,h.destroyCredentials()}async signIn(e=""){h.setOAuthRedirectionHandler(t=>{let s=t.authorizeParams.redirect_uri;if(e.length>0){let i=s.split("?"),a=i[0],r="";if(i[1]){let n=new URLSearchParams(i[1]);n.append("signInParam",e),r="?"+n.toString()}t.authorizeParams.redirect_uri=a+r}window.location.href=t.authorizeUrl+"?"+this._objectToQuery(t.authorizeParams)}),await h.getCredential((this._portalSubset?.portalUrl??this._portalUrl)+"/sharing").then(t=>{t&&window.location.reload()})}signOut(){this.destroy(),window.location.reload()}refreshSession(){let e=this.RestUserSession;return!e||!this.IsSignedIn?null:e.exchangeRefreshToken()}_getOrgUrl(e,t,s){return t&&s?window.location.protocol+"//"+t.toLowerCase()+"."+s:e}async _init(){let e=new E({appId:this._clientId,locale:this._locale,popup:!1,portalUrl:this._portalUrl,preserveUrlHash:!0});h.registerOAuthInfos([e]);try{let t=await h.checkAppAccess(this._portalUrl,this._clientId);(typeof t.valid<"u"&&!t.valid||t.viewOnlyUserTypeApp)&&window.location.replace(`error.html?error=blocked&locale=${this._locale}`),this._credential=t.credential}catch(t){if(t.name==="identity-manager:not-authenticated")return this;this.destroy(),window.location.replace(`error.html?error=blocked&locale=${this._locale}`)}return this._portal=new M({url:this._portalUrl}),this._portal.authMode="immediate",await this._portal.load(),this._isEnterprise=this._portal.isPortal,this._portalSubset={name:this._portal.name??"",id:this._portal.id??"",restUrl:this._portal.restUrl??"",portalUrl:this._portal.url??"",urlKey:this._portal.urlKey??"",hostName:this._portal.portalHostname??"",orgUrl:this._getOrgUrl(this._portal.url,this._portal.urlKey??"",this._portal.customBaseUrl??""),locationTrackingEnabled:this._portal.helperServices.hasOwnProperty("locationTracking"),hubPremiumEnabled:this._portal.portalProperties?.hub?.enabled||!1,workflowURL:this._portal.helperServices?.workflowManager?.url??this._portal.url,isReadOnly:this._portal.isReadOnly},this._portalUserSubset={fullName:this._portal.user?.fullName??"",username:this._portal.user?.username??"",culture:this._portal.user?.culture?.toLowerCase()||"en",thumbnailUrl:this._portal.user?.thumbnailUrl||this._portal.url+"/home/js/arcgisonline/css/images/no-user-thumb.jpg",orgId:this._portal.user?.orgId??"",privileges:this._portal.user.privileges,role:this._portal.user?.role??""},this._isEnterprise&&this._portalSubset&&(this._portalSubset.workflowURL=await w(this._portal.restUrl,this.RestUserSession||new d({}))),this._portal?.user?.roleId&&this._portalUserSubset&&(this._portalUserSubset.roleId=this._portal.user.roleId),this}_isSerializable(e){return e&&typeof e=="object"&&"toJSON"in e&&typeof e.toJSON=="function"}_objectToQuery(e,t){return e?t&&typeof t=="function"?Object.keys(e).map(s=>encodeURIComponent(s)+"="+encodeURIComponent(t(s,e[s]))).join("&"):Object.keys(e).map(s=>{let i=e[s];if(i==null)return"";let a=encodeURIComponent(s)+"=",r=t&&t[s];return r?a+encodeURIComponent(r(i)):Array.isArray(i)?i.map(n=>this._isSerializable(n)?a+encodeURIComponent(JSON.stringify(n)):a+encodeURIComponent(n)).join("&"):this._isSerializable(i)?a+encodeURIComponent(JSON.stringify(i)):a+encodeURIComponent(i)}).filter(s=>s).join("&"):""}};var N=S`/** @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
- */.back-color-override{background-color:var(--calcite-color-foreground-2);--calcite-tab-border-color: var(--calcite-color-foreground-3)}.display-none{display:none}.shell-container{width:1440px;display:block;max-width:96vw;padding-right:0;padding-left:0;margin-left:auto;margin-right:auto;box-sizing:border-box}.height-100{height:100%}calcite-tab-nav{padding-bottom:6px;padding-top:6px}calcite-tabs{--calcite-color-focus: transparent;height:100%}`,y=class extends f{constructor(){super(),this.locale="",this.orgUrl="",this.portalUrl="",this.primarySolutionsGroupId="",this.sortType="relevance",this.useLocalAppConfig=!1,this._isLoaded=!1,this.isMobile=!1,this._translations=v({name:"solutions-deploy-app",blocking:!0}),this._agoTerms=`${C} OR ${U}`,this._allCards=[],this._allShell=l(),this._allTab=l(),this._allTabTitle=l(),this._articlesTab=l(),this._articlesTabTitle=l(),this._authContextProvider=u({context:A}),this.authentication=void 0,this._categories=[],this._delay=!1,this._detailsShell=l(),this._detailsTab=l(),this._detailsTabTitle=l(),this._getSuggested=!1,this._isMobileContextProvider=u({context:k}),this._localDebugContextProvider=u({context:P}),this._mySolutionsShell=l(),this._mySolutionsTab=l(),this._mySolutionsTabTitle=l(),this._sortField="relevance",this._sortOrder="desc",this._userSessionContextProvider=u({context:I}),this.deployAppTabSelected=_(),this.detailsCardSelected=_(),this.tokenRefreshed=_(),this.listenOn(window,"solutionsAllLoaded",this._solutionsAllLoaded),this.listenOn(window,"detailsCardSelected",this._detailsCardSelected),this.listenOn(window,"deployProgressEnd",this._deployProgressEnd),this._mediaQueryChange=this._mediaQueryChange.bind(this)}static{this.properties={appConfig:1,locale:1,orgUrl:1,portalUrl:1,primarySolutionsGroupId:1,sortType:1,useLocalAppConfig:5,_isLoaded:16,isMobile:16,_translations:16}}static{this.styles=N}selectTab(e,t){let s=this._getDefaultSearchOptions(t);switch(console.log(s),e.tabType){case"all-solutions":this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0,s&&this._allShell.value?.searchSolutions(s);break;case"articles":this._articlesTab.value.selected=!0,this._articlesTabTitle.value.selected=!0;break;case"details":if(this._allCards){let i=x(this._allCards,e.tabTitleOrId);i=i||L(this._allCards,e.tabTitleOrId),i?(this._detailsTab.value.selected=!0,this._detailsTabTitle.value.selected=!0,this.detailsCardSelected.emit(i)):(this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0,this._setActiveTab("all-solutions"))}break;case"my-deployments":this._mySolutionsTab.value.selected=!0,this._mySolutionsTabTitle.value.selected=!0,s&&this._mySolutionsShell.value?.searchSolutions(s);break}this._blurTabs()}async connectedCallback(){super.connectedCallback();let e=new d({username:"",password:""});this._userSessionContextProvider.setValue(e),this._mediaQuery=window.matchMedia("(max-width: 800px)"),this._mediaQuery.addEventListener("change",this._mediaQueryChange),this._mediaQueryChange(this._mediaQuery)}async load(){this.useLocalAppConfig?(this.appConfig=R,this.primarySolutionsGroupId=this.appConfig.primarySolutionsGroupId,this.orgUrl=this.appConfig.orgUrl,this.locale=this.appConfig.locale,this.portalUrl=this.appConfig.portalURL,this._localDebugContextProvider.setValue(!0)):(this.primarySolutionsGroupId=this.appConfig.primarySolutionsGroupId,this._localDebugContextProvider.setValue(!1)),this._cardsFetcher=new O(this.locale,this.orgUrl,this.portalUrl),this.authentication||(this.appConfig.authentication?this.authentication=this.appConfig.authentication:(this.authentication=new b(this.appConfig.appId,this.appConfig.portalURL,this.appConfig.locale),await this.authentication.initialize(),this.authentication.IsSignedIn||this.authentication.signIn())),this._authContextProvider.setValue(this.authentication),this.authentication.RestUserSession&&this._userSessionContextProvider.setValue(this.authentication.RestUserSession),this._setRefreshInterval(),await this._getSolutions()}loaded(){this._handleTabs()}render(){let e=this._isLoaded?"display-none":"",t=this._isLoaded?"":"display-none";return p`<calcite-loader class=${g(e)} id=solutions-loader .label=${this._translations.fetchingAllSolutions}></calcite-loader><calcite-tabs class=${g(t)} scale=l><calcite-tab-nav class="shell-container" slot=title-group><calcite-tab-title @calciteTabsActivate=${()=>this._setActiveTab("all-solutions")} ${o(this._allTabTitle)}>${this._translations.allSolutions}</calcite-tab-title>${this.authentication?.IsSignedIn?p`<calcite-tab-title @calciteTabsActivate=${()=>this._setActiveTab("my-deployments")} ${o(this._mySolutionsTabTitle)}>${this._translations.mySolutions}</calcite-tab-title>`:""}<calcite-tab-title @calciteTabsActivate=${()=>this._setActiveTab("articles")} ${o(this._articlesTabTitle)}>${this._translations.solutionArticles}</calcite-tab-title><calcite-tab-title class="display-none" @calciteTabsActivate=${()=>this._setActiveTab("details")} ${o(this._detailsTabTitle)}></calcite-tab-title></calcite-tab-nav><calcite-tab class="back-color-override" selected ${o(this._allTab)}><solutions-searchsort-toolbar .isMobile=${this.isMobile} scope=solutions></solutions-searchsort-toolbar><solutions-all-shell .appConfig=${this.appConfig} class="shell-container height-100" ${o(this._allShell)}></solutions-all-shell></calcite-tab>${this.authentication?.IsSignedIn?p`<calcite-tab class="back-color-override" ${o(this._mySolutionsTab)}><solutions-searchsort-toolbar default-sort-type=created .isMobile=${this.isMobile} scope=deployments></solutions-searchsort-toolbar><solutions-deployed-shell .appConfig=${this.appConfig} class="shell-container height-100" ${o(this._mySolutionsShell)}></solutions-deployed-shell></calcite-tab>`:""}<calcite-tab class="back-color-override" ${o(this._articlesTab)}><solutions-articles-shell class="shell-container height-100"></solutions-articles-shell></calcite-tab><calcite-tab class="back-color-override" ${o(this._detailsTab)}><solution-details-panel class="shell-container height-100" ${o(this._detailsShell)}></solution-details-panel></calcite-tab></calcite-tabs>`}disconnectedCallback(){super.disconnectedCallback(),this._mediaQuery?.removeEventListener("change",this._mediaQueryChange)}_mediaQueryChange(e){this.isMobile=e.matches,this._isMobileContextProvider.setValue(this.isMobile)}_handleTabs(){document.body.addEventListener("keydown",function(e){e.key=="Tab"||e.key=="Shift "||e.key=="Enter"?document.querySelector("calcite-tabs")?.style.setProperty("--calcite-color-focus","var(--calcite-color-brand)"):document.querySelector("calcite-tabs")?.style.setProperty("--calcite-color-focus","transparent")}),document.body.addEventListener("click",function(){document.querySelector("calcite-tabs")?.style.setProperty("--calcite-color-focus","transparent")})}_setActiveTab(e){this.deployAppTabSelected.emit(e)}_solutionsAllLoaded(){this._isLoaded=!0}_detailsCardSelected(){this._detailsTabTitle.value.selected=!0,this._detailsTab.value.selected=!0}_deployProgressEnd(){this._mySolutionsTabTitle.value.selected=!0,this._mySolutionsTab.value.selected=!0}async _getSolutions(){let e=await this._cardsFetcher?.requestAvailableSolutionCards({q:this._agoTerms,filter:"type:Solution",sortField:this._sortField,sortOrder:this._sortOrder,nextStart:-1,categories:this._categories,delay:this._delay,getSuggested:this._getSuggested},this.primarySolutionsGroupId,"",this._userSessionContextProvider.value,{num:1e3});return this._allCards.length===0&&e?.cards&&(this._allCards=e?.cards),this._allCards}_blurTabs(){this._allTabTitle.value?.blur(),this._articlesTabTitle.value?.blur(),this._detailsTabTitle.value?.blur(),this._mySolutionsTabTitle.value?.blur()}_setRefreshInterval(){let e=this._userSessionContextProvider?.value,t=this._authContextProvider?.value;if(e&&e.tokenDuration&&t?.IsSignedIn){let s=e.tokenDuration*.9;setInterval(async()=>{let i=await t?.refreshSession();if(i){this._userSessionContextProvider.setValue(i);let a=i?.token??"";this.tokenRefreshed.emit(a)}},s)}}_getDefaultSearchOptions(e){let t;if(e){let s=e.domain,i=e.industry,a=e.offerType,r=e.searchTerm,n="",c=e.sortField,m=e.owner;t=s||i?{type:s?"domain":i?"industry":""}:void 0,s&&(t=t?{...t,domain:s}:{domain:s}),i&&(t=t?{...t,industry:i}:{industry:i}),r&&(t=t?{...t,searchTerm:r}:{searchTerm:r}),t&&(t={...t,displayValue:n}),c&&(t=t?{...t,sortType:c}:{sortType:c}),a&&(c=a.toLowerCase(),t=t?{...t,sortType:c}:{sortType:c}),m&&(t=t?{...t,owner:m}:{owner:m})}return t}};T("solutions-deploy-app",y);return y},"identity/IdentityManager","identity/OAuthInfo","portal/Portal",a,b,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.20251015.1 */
4
- import j from"./HENQGQKO.js";import i from"./VFIVVIKJ.js";import e from"./7QR7NLOV.js";import{b as w}from"./NQ6KROBY.js";import b from"./3AOH7JGU.js";import{a as y,c as f}from"./6JCLCDIE.js";import{b as l}from"./O6FR3FOW.js";import"./KH7LGU5K.js";import"./PD3N7S4N.js";import"./3IIWPGCK.js";import"./AJX4JPNT.js";import"./6AP65TD5.js";import"./T5BTHDQC.js";import"./5L57Y4TT.js";import"./PVXYECTY.js";import"./MTPKMXI7.js";import"./FYQSS5YY.js";import"./I7MSVZLZ.js";import"./6I6JPIBT.js";import"./MAZA2SKN.js";import"./7D3QF2ET.js";import"./GWZZ3ITH.js";import"./IEJZM3BQ.js";import"./CPVITWV2.js";import"./542FXWVN.js";import"./YR5O3VCH.js";import"./34IANJ5L.js";import{m as g,o as a}from"./T5I64IOL.js";import{a as u}from"./K5SS6M5G.js";import"./RGGFNMOE.js";import"./TGTBQ4IM.js";import{b as m}from"./AEXIW5QK.js";import{D as p,E as _,G as o,h,i as s,j as d,l as c,o as r}from"./5AEWU6E5.js";import"./LW6D2HAX.js";export default $arcgis.t(([,,i,C])=>{var x=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}`,S=5,n=class extends _{constructor(){super(),this.agoSolutionsGroupId="",this.diagramKey="",this.enterpriseSolutionsGroupId="",this.locale="",this.orgUrl="",this.portalUrl="",this.sortType="created",this._cards=[],this._cardsFetching=!1,this._modifiedCheckTry=0,this._newId="",this._refs={},this._showDeleteCompleteAlert=!1,this._translations=u({name:"solutions-deployed-panel",blocking:!0}),this._agoTerms=a,this._allCards=[],this._authContextConsumer=l({context:f,subscribe:!0}),this._baseAgoTerms=a,this._categories=[],this._delay=!1,this._isOrgAdmin=!1,this._owner=g.OWNER,this._sortField="created",this._sortOrder="desc",this._userSessionContextConsumer=l({context:y,subscribe:!0}),this.deployedCardsFetched=r(),this.deployedSearchTermSet=r(),this.listenOn(window,"solutionDeleted",e=>{this._modifiedCheckTry=S,this.reload(e.detail.showAlert,e.detail.refreshSolutionsTimeout)}),this.listenOn(window,"solutionConfigureDialogClose",e=>{e.detail&&this.reload(!1,!1)}),this.listenOn(window,"deployProgressEnd",e=>{this._modifiedCheckTry=S,this._refresh(e)}),this.listenOn(window,"sortTypeChanged",e=>{e.detail&&e.detail.scope==="deployments"&&(this.sortType=e.detail.sortType,this.searchSolutions(e.detail))}),this.listenOn(window,"searchChanged",e=>{e.detail&&e.detail.scope==="deployments"&&this.searchSolutions(e.detail.option)})}static{this.properties={agoSolutionsGroupId:1,diagramKey:1,enterpriseSolutionsGroupId:1,locale:1,orgUrl:1,portalUrl:1,sortType:1,_cards:16,_cardsFetching:16,_modifiedCheckTry:16,_newId:16,_refs:16,_showDeleteCompleteAlert:16,_translations:16}}static{this.styles=x}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),e&&(this._showDeleteCompleteAlert=!0),t?setTimeout(()=>{(async()=>{try{await this._getDeployedSolutions()}catch(T){console.error("Error getting deployed solutions:",T)}})()},500):await this._getDeployedSolutions()}async searchSolutions(e){e?"searchTerm"in e?this._textSearch(e.searchTerm):"sortType"in e?this._sortCards(e):e.type==="owner"&&(this._owner=e.value):(this._agoTerms=this._baseAgoTerms,this._clearFilterCategories()),await this._getDeployedSolutions()}async setSearchOptions(e){e&&("searchTerm"in e&&(this._textSearch(e.searchTerm),this.deployedSearchTermSet.emit(e.searchTerm)),"sortType"in e&&this._sortCards(e))}async load(){this._cardsFetcher=new i(this.locale,this.orgUrl,this.portalUrl),this._cardsFetcherDeployed=new i(this.locale,this.orgUrl,this.portalUrl),this._isOrgAdmin=w(this._authContextConsumer.value),await this._getDeployedSolutions()}render(){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} .diagramKey=${this.diagramKey} .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 C(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._modifiedCheckTry>0&&(this._cards.length===e?.cards.length?(this._modifiedCheckTry--,this._getDeployedSolutions()):this._modifiedCheckTry=0),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}_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&&(this._newId=t,await this._getDeployedSolutions())}};m("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.20251015.1 */
4
- import i from"./HENQGQKO.js";import g from"./VFIVVIKJ.js";import e from"./7QR7NLOV.js";import a from"./3AOH7JGU.js";import{a as I,c as b}from"./6JCLCDIE.js";import{b as u}from"./O6FR3FOW.js";import"./KH7LGU5K.js";import"./PD3N7S4N.js";import"./3IIWPGCK.js";import"./AJX4JPNT.js";import"./6AP65TD5.js";import"./T5BTHDQC.js";import"./5L57Y4TT.js";import"./PVXYECTY.js";import"./MTPKMXI7.js";import"./FYQSS5YY.js";import"./I7MSVZLZ.js";import"./6I6JPIBT.js";import"./MAZA2SKN.js";import"./7D3QF2ET.js";import"./GWZZ3ITH.js";import"./IEJZM3BQ.js";import"./CPVITWV2.js";import"./542FXWVN.js";import"./YR5O3VCH.js";import"./34IANJ5L.js";import{k as w,l as T,o as v,p as c,q as x}from"./T5I64IOL.js";import{a as f}from"./K5SS6M5G.js";import"./RGGFNMOE.js";import"./TGTBQ4IM.js";import{b as C}from"./AEXIW5QK.js";import{E as S,h as _,i as d,j as y,o as h}from"./5AEWU6E5.js";import"./LW6D2HAX.js";export default $arcgis.t(([,{c:A},p,F])=>{var V=_`/** @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%}`,O=5,g=class extends S{constructor(){super(),this.agoSolutionsGroupId="",this.enterpriseSolutionsGroupId="",this.locale="",this.orgUrl="",this.portalUrl="",this.sortType="relevance",this._modifiedCheckTry=0,this.cards=[],this._translations=f({name:"solutions-all-panel",blocking:!0}),this._agoTerms=`${c} OR ${x}`,this._allCards=[],this._authContextConsumer=u({context:b,subscribe:!0}),this._baseAgoTerms=c,this._categories=[],this._delay=!1,this._getSuggested=!1,this._relatedSolutions=new Set,this._sortField="relevance",this._sortOrder="desc",this._userSessionContextConsumer=u({context:I,subscribe:!0}),this.cardsFetched=h(),this.allCardsFetched=h(),this.searchTermSet=h(),this.listenOn(window,"deployProgressEnd",()=>{this._modifiedCheckTry=O,this._loadUpdateProcedures()}),this.listenOn(window,"solutionDeleted",()=>{this._modifiedCheckTry=O,this._loadUpdateProcedures()}),this.listenOn(window,"sortTypeChanged",e=>{e.detail&&e.detail.scope==="solutions"&&(this.sortType=e.detail.sortType,this.searchSolutions(e.detail))})}static{this.properties={agoSolutionsGroupId:1,enterpriseSolutionsGroupId:1,locale:1,orgUrl:1,portalUrl:1,sortType:1,_modifiedCheckTry:16,cards:16,_translations:16}}static{this.styles=V}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()),this.cards=await this._getSolutions()}async setSearchOptions(e){e&&("searchTerm"in e&&(this._textSearch(e.searchTerm),this.searchTermSet.emit(e.searchTerm)),"sortType"in e&&this._sortCards(e))}async load(){await this._loadUpdateProcedures()}render(){return d`<calcite-panel><calcite-card-group class="card-group" .label=${this._translations.allSolutionCards}>${this._renderCards()}</calcite-card-group></calcite-panel>`}_renderCards(){return this.cards.length?this.cards.map(e=>d`<solution-details-card .card=${e}></solution-details-card>`):d`<div class="no-solutions">${this._getSolutionsBriefcase()}<div class="text-center leader-1 warning-text trailer-1">${this._translations.noSolutionsFound}</div></div>`}async _getSolutions(){let e=await this._cardsFetcher?.requestAvailableSolutionCards({q:this._agoTerms,filter:"type:Solution",sortField:this._sortField,sortOrder:this._sortOrder,nextStart:-1,categories:this._categories,delay:this._delay,getSuggested:this._getSuggested},this.agoSolutionsGroupId,"",this._userSessionContextConsumer.value,{num:1e3}),t=e?.cards.length?e.cards:[];if(this.sortType==="new"||this.sortType==="updated"){let s="/Categories/New Release";this.sortType==="updated"&&(s="/Categories/Updated"),t.sort((a,n)=>a.categories.includes(s)&&!n.categories.includes(s)?-1:!a.categories.includes(s)&&n.categories.includes(s)?1:a.categories.includes(s)&&n.categories.includes(s)?a.categories.length-n.categories.length:0)}else if(this.sortType==="suggested"&&this._relatedSolutions.size>0&&this._deployedSolutions?.cards?.length){let s=new Map;for(let i of t){let r=s.get(i.deployCommonId),l=Number(i.deployVersion);(!r||l>r)&&s.set(i.deployCommonId,l)}let a=this._deployedSolutions.cards.filter(i=>{let r=s.get(i.deployCommonId);return r!==void 0&&Number(i.deployVersion)>=r}),n=new Set(a.map(i=>i.deployCommonId));this._relatedSolutions=new Set([...this._relatedSolutions].filter(i=>!n.has(i))),t.sort((i,r)=>{let l=this._relatedSolutions.has(i.deployCommonId),m=this._relatedSolutions.has(r.deployCommonId);return l&&!m?-1:!l&&m?1:0})}let o=t.map(s=>{let a=s.categories.indexOf("/Categories/New Release")>-1,n=s.categories.indexOf("/Categories/Updated")>-1,i=!1,r=!0;return this._deployedSolutions&&(i=this._isSolutionDeployed(s.deployCommonId),r=this._isLatestVersion(s)),s.chip=a?"new":n?"updated":i&&r?"deployed":"none",s.supportReuse=i?!!(i&&!r):!0,s});return this._allCards.length===0&&e?.cards&&(this._allCards=e?.cards,this._deployedSolutions&&(this._relatedSolutions=A(this._deployedSolutions.cards,this._allCards))),this.cardsFetched.emit(o.length),o}async _loadUpdateProcedures(){this._cardsFetcher=new p(this.locale,this.orgUrl,this.portalUrl),this._cardsFetcherDeployed=new p(this.locale,this.orgUrl,this.portalUrl),await this._getDeployedSolutions(),this.cards=await this._getSolutions(),this.allCardsFetched.emit(this.cards)}async _getDeployedSolutions(){let e=this._authContextConsumer.value,t=this._userSessionContextConsumer.value;if(e&&t){let o=await F(e,t,this._cardsFetcher,this._cardsFetcherDeployed,v,"created");if(o){if(this._modifiedCheckTry>0){if(this._deployedSolutions?.cards.length===o?.cards.length)return this._modifiedCheckTry--,await this._getDeployedSolutions();this._modifiedCheckTry=0}this._deployedSolutions=o}}}_getSolutionsBriefcase(){return d`<div class="solutions-briefcase"><svg viewBox="0 0 32 32" width=200 height=200 xmlns=http://www.w3.org/2000/svg>${y`<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;this._getSuggested=!1,this._sortOrder="desc",t==="suggested"?this._getSuggested=!0:t==="new"?this._sortField="relevance":t==="relevance"||t==="title"?(t==="title"&&(this._sortOrder="asc"),this._sortField=t):t==="updated"&&(this._sortField="relevance"),this.sortType=t}_filterCards(e){this._categories=[],e.forEach(t=>{if(t.industry){let o=this._getIndustryValue(t.industry);if(t.domain){let s=this._getDomainValue(t.domain);this._categories.push(`/Categories/${o}/${s}`)}else this._categories.push(`/Categories/${o}`)}})}_getDomainValue(e){return T[e]}_getIndustryValue(e){return e==="AEC"?"AEC":w[e]}_clearFilterCategories(){this._categories=[]}_isSolutionDeployed(e){return!!this._deployedSolutions?.cards?.some(t=>t?.typeKeywords?.some(o=>o.includes("solutionid")&&o.includes(e)))}_isLatestVersion(e){let t=this._deployedSolutions?.cards?.filter(o=>o?.typeKeywords?.some(s=>s.includes("solutionid")&&s.includes(e.deployCommonId)));return!(t&&t.length>0&&t[0].deployVersion!==e.deployVersion)}};C("solutions-all-panel",g);return g},a,e,g,i)
@@ -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.20251015.1 */
4
- import{a,b}from"./KUHFKNOC.js";import"./ULUH53Q4.js";import"./TNRGSGGK.js";import"./SDVDM2NG.js";import"./MG3DM3OR.js";import"./LW6D2HAX.js";export{a as EventEditorTypes,b as buildSchema};
@@ -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.20251015.1 */
4
- import{a,b}from"./NCCHYDZY.js";import"./IYPSTJMC.js";import"./ZRCBFR6O.js";import"./GJ2RMK23.js";import"./MG3DM3OR.js";import"./MTPC7NWQ.js";import"./LW6D2HAX.js";export{a as InitiativeEditorTypes,b as InitiativeSchema};