@esri/solutions-components 1.0.0-next.20250623 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (420) hide show
  1. package/dist/cdn/{EUVI36TI.js → 2CC32CPA.js} +1 -1
  2. package/dist/cdn/{KHGWKXTO.js → 2F7ZIXE4.js} +2 -2
  3. package/dist/cdn/{MY7QR23T.js → 2JA5VZ4Q.js} +2 -2
  4. package/dist/cdn/{GCWS62KV.js → 2LWO2DTN.js} +2 -2
  5. package/dist/cdn/{M2GNMXHV.js → 2LZJQN7R.js} +1 -1
  6. package/dist/cdn/{QBO4BYBV.js → 2UPCSZ4S.js} +2 -2
  7. package/dist/cdn/{AGNYO5NN.js → 2VSWXPDT.js} +2 -2
  8. package/dist/cdn/2W44KQT2.js +4 -0
  9. package/dist/cdn/{JQONQSK4.js → 2ZTS3WNB.js} +2 -2
  10. package/dist/cdn/{GH2UPKCI.js → 36PJ5WL5.js} +2 -2
  11. package/dist/cdn/{MAA4IBX4.js → 3ADKTMOT.js} +2 -2
  12. package/dist/cdn/{F7ZC7T4X.js → 3D2A2GR6.js} +2 -2
  13. package/dist/cdn/{O7T5U6KF.js → 3O5P6PXO.js} +2 -2
  14. package/dist/cdn/{PUI3WTP2.js → 3RAYGCP4.js} +2 -2
  15. package/dist/cdn/{A4UEGUOI.js → 3RJYN2DN.js} +2 -2
  16. package/dist/cdn/{HY7WBH4Y.js → 3SDE2CZG.js} +2 -2
  17. package/dist/cdn/3V6F3XIS.js +18 -0
  18. package/dist/cdn/{44KDHP5P.js → 3WPFW6HO.js} +2 -2
  19. package/dist/cdn/{VGFEXHW7.js → 444IDO3Z.js} +2 -2
  20. package/dist/cdn/{T6QTFXMX.js → 467UGXS6.js} +2 -2
  21. package/dist/cdn/{7CV6YJ4X.js → 4C2LIMJZ.js} +2 -2
  22. package/dist/cdn/{VNAPQVLM.js → 4EOWY4WA.js} +2 -2
  23. package/dist/cdn/{SQ5ORY7B.js → 4GAUFXRB.js} +1 -1
  24. package/dist/cdn/{PE5HS46T.js → 4LAC6IBS.js} +2 -2
  25. package/dist/cdn/{OAOS4ZIR.js → 4MCP26Y4.js} +2 -2
  26. package/dist/cdn/{72DQ3ETR.js → 4QTSIIRU.js} +2 -2
  27. package/dist/cdn/{MBTMEXGV.js → 4SSQ22MK.js} +2 -2
  28. package/dist/cdn/{LXLKGGXS.js → 4U4WVITW.js} +2 -2
  29. package/dist/cdn/{3EDJOQER.js → 4U4XW77U.js} +2 -2
  30. package/dist/cdn/{QUN2EFBL.js → 54HVDRDS.js} +2 -2
  31. package/dist/cdn/{CT2DS5C5.js → 5B34RYXT.js} +2 -2
  32. package/dist/cdn/{7S2SQULN.js → 5BFFCPDO.js} +2 -2
  33. package/dist/cdn/{TEXE6RKM.js → 5C4MSN6W.js} +2 -2
  34. package/dist/cdn/{G2CRI3HI.js → 5CRWOCNH.js} +2 -2
  35. package/dist/cdn/{4F7ELK6O.js → 5HLL7D2P.js} +2 -2
  36. package/dist/cdn/{XBIIOOSU.js → 5IBDEJNP.js} +2 -2
  37. package/dist/cdn/{ZEI7MQ2T.js → 5IBY2FQU.js} +1 -1
  38. package/dist/cdn/{667TZ6GF.js → 5IH2NEYC.js} +2 -2
  39. package/dist/cdn/5KQ3IDBU.js +4 -0
  40. package/dist/cdn/{UER5MEYT.js → 5NTNQARK.js} +2 -2
  41. package/dist/cdn/{QQ5OOCCM.js → 5PZ5I3C4.js} +2 -2
  42. package/dist/cdn/{BVIK4NG7.js → 5VKFD2YO.js} +2 -2
  43. package/dist/cdn/{IIAJ3FXH.js → 5WH7QYAO.js} +2 -2
  44. package/dist/cdn/6CIFKKHA.js +18 -0
  45. package/dist/cdn/{VOIAQN2E.js → 6CL5S7CF.js} +2 -2
  46. package/dist/cdn/{GUYA7OSD.js → 6EUBWF2M.js} +2 -2
  47. package/dist/cdn/{ZQKD6CGQ.js → 6IKP3GLY.js} +2 -2
  48. package/dist/cdn/{WKDIYJHS.js → 6INDIN6I.js} +1 -1
  49. package/dist/cdn/{FYMYLZKQ.js → 6JJTBX53.js} +2 -2
  50. package/dist/cdn/{CDLBGK6Z.js → 6OB4W3O5.js} +2 -2
  51. package/dist/cdn/{ULVHPBXX.js → 6WQZRPWK.js} +2 -2
  52. package/dist/cdn/{TKLKJ4FU.js → 6YGUHVIL.js} +2 -2
  53. package/dist/cdn/{QFMY752G.js → 6ZFBCODW.js} +2 -2
  54. package/dist/cdn/{BPLCFWCS.js → 727TY5WA.js} +1 -1
  55. package/dist/cdn/{NQU46G4H.js → 74KF43Q7.js} +2 -2
  56. package/dist/cdn/{ZYAIM3E6.js → 77NGJJRC.js} +2 -2
  57. package/dist/cdn/{SMD6DHSZ.js → 7ETOIECJ.js} +2 -2
  58. package/dist/cdn/{47ULGPYB.js → 7LRZQ562.js} +2 -2
  59. package/dist/cdn/{LOI6YJAA.js → 7SCM56QW.js} +2 -2
  60. package/dist/cdn/{7FW2E443.js → 7T5OVZJR.js} +1 -1
  61. package/dist/cdn/{HRKK2RN7.js → 7WJWSOJH.js} +2 -2
  62. package/dist/cdn/{WJJEMN37.js → 7XKZ3CKS.js} +1 -1
  63. package/dist/cdn/{NXGL56Q4.js → 7XNXAJF3.js} +2 -2
  64. package/dist/cdn/{XJYYAXC5.js → AAW4M5UY.js} +1 -1
  65. package/dist/cdn/{JF2H7IOR.js → ACTLIYVY.js} +1 -1
  66. package/dist/cdn/AILRWBPO.js +4 -0
  67. package/dist/cdn/{O74B4HIC.js → AJ4YAPGC.js} +2 -2
  68. package/dist/cdn/AOPIUSEK.js +4 -0
  69. package/dist/cdn/{QERY67GU.js → ARAFKGS2.js} +2 -2
  70. package/dist/cdn/{NVGAKN3D.js → AVAUHONF.js} +2 -2
  71. package/dist/cdn/{ZFWKV2U2.js → AX2IRDRE.js} +2 -2
  72. package/dist/cdn/{BWFAFVTV.js → B3J5GWRK.js} +1 -1
  73. package/dist/cdn/{VLXKSJY5.js → B5QR4WI6.js} +2 -2
  74. package/dist/cdn/{M7AHR77N.js → BAPJICUA.js} +2 -2
  75. package/dist/cdn/{L33QRYZS.js → BDHYDLFO.js} +2 -2
  76. package/dist/cdn/BPEPRRF3.js +4 -0
  77. package/dist/cdn/{LB6HR25Y.js → BQ6W6B2V.js} +1 -1
  78. package/dist/cdn/{LWB4R2IK.js → BV7WAP3N.js} +2 -2
  79. package/dist/cdn/C2ERTRIZ.js +4 -0
  80. package/dist/cdn/{VSXMAOPI.js → C4ZYMWDM.js} +2 -2
  81. package/dist/cdn/{GBODKP3A.js → CC3G7K6T.js} +2 -2
  82. package/dist/cdn/{GHUCQMWM.js → CVYZLOIA.js} +2 -2
  83. package/dist/cdn/{BUZTO5KI.js → D5VM7347.js} +2 -2
  84. package/dist/cdn/D7HY5OWZ.js +18 -0
  85. package/dist/cdn/{FEUPLOPU.js → DGUC2FBD.js} +2 -2
  86. package/dist/cdn/DMP3KEG5.js +4 -0
  87. package/dist/cdn/{4BY4CJM7.js → DMSA5MQS.js} +2 -2
  88. package/dist/cdn/{OTP76AFM.js → DWHGFYZ3.js} +1 -1
  89. package/dist/cdn/{ZYEKV2AH.js → E33KGT3U.js} +1 -1
  90. package/dist/cdn/{BFHZHYV7.js → E3AUWVZ5.js} +2 -2
  91. package/dist/cdn/{ZLX6GEY5.js → E4FOTYSK.js} +2 -2
  92. package/dist/cdn/E5WY7EJU.js +18 -0
  93. package/dist/cdn/{G7KQYN3M.js → EAZUJFAP.js} +2 -2
  94. package/dist/cdn/ECID3BOS.js +18 -0
  95. package/dist/cdn/{W3M4XLN4.js → EER4N6Z4.js} +2 -2
  96. package/dist/cdn/ERVPNOOE.js +4 -0
  97. package/dist/cdn/{5COPPB4N.js → EVLPNGVY.js} +2 -2
  98. package/dist/cdn/{E42BT2UT.js → EXGARZ53.js} +2 -2
  99. package/dist/cdn/{LN76EWLU.js → EXNI3E3V.js} +1 -1
  100. package/dist/cdn/{OOBVWWU5.js → EZWQ3FN6.js} +2 -2
  101. package/dist/cdn/{QCIMV4RH.js → F66BID67.js} +2 -2
  102. package/dist/cdn/{LIPG5L6R.js → FB42MKVI.js} +2 -2
  103. package/dist/cdn/{CFTPKEEX.js → FBCRLSBX.js} +2 -2
  104. package/dist/cdn/{RK7SEZWK.js → FBPGHBBN.js} +1 -1
  105. package/dist/cdn/{7YPMNAQW.js → FGUFX7HJ.js} +1 -1
  106. package/dist/cdn/{D5ZMKHVZ.js → FJJXJF2V.js} +2 -2
  107. package/dist/cdn/{EZZLMB4X.js → FNKZV5FF.js} +2 -2
  108. package/dist/cdn/{M6DEGK3A.js → FNWUB6GJ.js} +2 -2
  109. package/dist/cdn/{N4UOPV7Y.js → FPCDPUTH.js} +2 -2
  110. package/dist/cdn/{IIFZUXCW.js → FSLY3Q32.js} +2 -2
  111. package/dist/cdn/{MIJF4IAK.js → FUNSSHRI.js} +2 -2
  112. package/dist/cdn/{FRZJWFO2.js → G4UGKO7I.js} +2 -2
  113. package/dist/cdn/{W5AS4BP3.js → GERXYYJ5.js} +2 -2
  114. package/dist/cdn/GHJ65L2F.js +4 -0
  115. package/dist/cdn/GLEKE5MB.js +4 -0
  116. package/dist/cdn/{A7ODGNJ5.js → GLGJ4TDS.js} +2 -2
  117. package/dist/cdn/{DKLZGDVT.js → GMHTFC5D.js} +2 -2
  118. package/dist/cdn/{FFQJU2V5.js → GPDF625C.js} +1 -1
  119. package/dist/cdn/{QCGK7DPH.js → GPFSHKEQ.js} +2 -2
  120. package/dist/cdn/{67625TTO.js → GS5KTDPD.js} +1 -1
  121. package/dist/cdn/{FL5HOIO2.js → GXY74GGJ.js} +2 -2
  122. package/dist/cdn/{UGHVL53A.js → H26UVKPN.js} +1 -1
  123. package/dist/cdn/{VQMSN52L.js → H5Q2TVQ7.js} +2 -2
  124. package/dist/cdn/{557QFLCB.js → H7LKWL6W.js} +2 -2
  125. package/dist/cdn/{X3ACNAG7.js → HACP2EXZ.js} +1 -1
  126. package/dist/cdn/{JGF5QRPV.js → HEDVVSMN.js} +2 -2
  127. package/dist/cdn/{2P7REDDK.js → HG7I73HP.js} +2 -2
  128. package/dist/cdn/{T6PBNCP5.js → HGY2TGZZ.js} +2 -2
  129. package/dist/cdn/{ZRTQB2FT.js → HSZ7M7T7.js} +2 -2
  130. package/dist/cdn/{LNDLJOIE.js → HU3NU6NO.js} +2 -2
  131. package/dist/cdn/{3BBXMHOQ.js → HUFTJBPT.js} +2 -2
  132. package/dist/cdn/{CYR3T5WK.js → HZ247CLQ.js} +2 -2
  133. package/dist/cdn/{GHGKK3CH.js → IBVPZZZL.js} +1 -1
  134. package/dist/cdn/{BL3LAHSH.js → IGPECNF7.js} +2 -2
  135. package/dist/cdn/{C4JHUMJZ.js → IRMQ5QUZ.js} +2 -2
  136. package/dist/cdn/{MHLISDNL.js → IW7MKKD5.js} +2 -2
  137. package/dist/cdn/{3BLJFQNC.js → IYHBIGDU.js} +2 -2
  138. package/dist/cdn/{QBSZATXE.js → J2RTL6TV.js} +1 -1
  139. package/dist/cdn/{SPHX5TD7.js → JKLJ2PP4.js} +2 -2
  140. package/dist/cdn/{7HB3CYHC.js → JLYYEGO6.js} +1 -1
  141. package/dist/cdn/{XHMBWMDB.js → JNK7VRHJ.js} +2 -2
  142. package/dist/cdn/{3RCSEW37.js → JQWOQPMK.js} +2 -2
  143. package/dist/cdn/{UTCEQY33.js → JRSOJV5U.js} +2 -2
  144. package/dist/cdn/{PJHSDBJI.js → JVIJAD4Z.js} +1 -1
  145. package/dist/cdn/{DOFM5HD6.js → JWQQXCKE.js} +2 -2
  146. package/dist/cdn/{XHHI3YJD.js → JXB7JVDB.js} +2 -2
  147. package/dist/cdn/{QUKDKDTB.js → JXDP3DWB.js} +2 -2
  148. package/dist/cdn/{EIY6FLRW.js → K6SIK44G.js} +2 -2
  149. package/dist/cdn/{RSKDVNF2.js → KAJVJKOH.js} +2 -2
  150. package/dist/cdn/{WTGKQEWC.js → KB37GULW.js} +1 -1
  151. package/dist/cdn/{SHDFP62J.js → KFIZVENE.js} +2 -2
  152. package/dist/cdn/{ZDNSSFT7.js → KKYPHXOP.js} +2 -2
  153. package/dist/cdn/{TBXBQGOD.js → KM7TRF5W.js} +2 -2
  154. package/dist/cdn/{U2DAHKOK.js → KMSR2MGE.js} +1 -1
  155. package/dist/cdn/{USL4QTWT.js → KPQBFQZB.js} +2 -2
  156. package/dist/cdn/{EGTACDCQ.js → KRCWP4LH.js} +2 -2
  157. package/dist/cdn/{QPGYCAHU.js → KUTMCNDR.js} +2 -2
  158. package/dist/cdn/{QPGZHVHD.js → LDGERXGM.js} +2 -2
  159. package/dist/cdn/{A6E5LNUS.js → LTQVQQV3.js} +2 -2
  160. package/dist/cdn/{QUX4IIVB.js → LVF5XFSJ.js} +2 -2
  161. package/dist/cdn/{OZVXS3W4.js → LWMS3PYA.js} +2 -2
  162. package/dist/cdn/{L5J5RMW3.js → M2M3Q6IH.js} +2 -2
  163. package/dist/cdn/{YRAUHXAH.js → M5BRHZXV.js} +2 -2
  164. package/dist/cdn/{OLNPSFNP.js → MCEAO75V.js} +1 -1
  165. package/dist/cdn/{RZLCYYF7.js → MF7K3QIL.js} +2 -2
  166. package/dist/cdn/MIQF66D6.js +4 -0
  167. package/dist/cdn/{B3BHXIAJ.js → ML4GJWGS.js} +2 -2
  168. package/dist/cdn/{AZT34SS5.js → MLARWD73.js} +2 -2
  169. package/dist/cdn/{PGCRMSZW.js → MLOQ5K45.js} +2 -2
  170. package/dist/cdn/{ZLLHG64J.js → MOKLXZ34.js} +2 -2
  171. package/dist/cdn/{HN7AVN23.js → MPOB2AAE.js} +2 -2
  172. package/dist/cdn/{WHVORWJN.js → MWWVKDRQ.js} +2 -2
  173. package/dist/cdn/N4VYHF37.js +18 -0
  174. package/dist/cdn/{DKVEQBWX.js → NCR7SCD4.js} +2 -2
  175. package/dist/cdn/{OUC7Y2MM.js → NDLXIAZ2.js} +2 -2
  176. package/dist/cdn/NFNJC6DC.js +4 -0
  177. package/dist/cdn/{3ZK2KRQW.js → NJX24G7O.js} +2 -2
  178. package/dist/cdn/{CK7OLQUJ.js → NMCIL4AU.js} +2 -2
  179. package/dist/cdn/{P25FGB5B.js → NNTKYQHM.js} +1 -1
  180. package/dist/cdn/{XRXVJGDZ.js → NOQQVVJO.js} +2 -2
  181. package/dist/cdn/{UNT5CJRN.js → NUCELJUA.js} +2 -2
  182. package/dist/cdn/{KWUXJZ4U.js → NXNAWCBW.js} +2 -2
  183. package/dist/cdn/{QS3LWY6A.js → O24JVO6E.js} +2 -2
  184. package/dist/cdn/{WFC6QJH2.js → O52M27Z5.js} +2 -2
  185. package/dist/cdn/{7SP3JV67.js → O5NUSUPU.js} +1 -1
  186. package/dist/cdn/{CXGZKBC3.js → OBZAUMYX.js} +2 -2
  187. package/dist/cdn/{7MNDBX3N.js → OJLPY774.js} +2 -2
  188. package/dist/cdn/{IONDFFQ2.js → OK6QGXX6.js} +2 -2
  189. package/dist/cdn/{SQOYIC3S.js → OOAOVEB5.js} +2 -2
  190. package/dist/cdn/{PQQOH6C6.js → OOTUQXHB.js} +2 -2
  191. package/dist/cdn/{ABFFIPZI.js → OP7BMHEO.js} +2 -2
  192. package/dist/cdn/OPZKDVLB.js +18 -0
  193. package/dist/cdn/{YEJ2LXND.js → OYP7AQ6G.js} +2 -2
  194. package/dist/cdn/{WPPZ22VY.js → PCVCGUBO.js} +2 -2
  195. package/dist/cdn/{NOC7BIF2.js → PFYARW7S.js} +2 -2
  196. package/dist/cdn/{U6YNCU7Q.js → PGC6RJRM.js} +2 -2
  197. package/dist/cdn/{22P43VO7.js → PLMRWY6C.js} +2 -2
  198. package/dist/cdn/{R7RMLDFT.js → PMFBRSOS.js} +2 -2
  199. package/dist/cdn/{6BMDZLSL.js → PTHS5BTD.js} +1 -1
  200. package/dist/cdn/{BELTJBBP.js → Q4BR636Z.js} +2 -2
  201. package/dist/cdn/{3TPRN77W.js → QBMJV5OP.js} +2 -2
  202. package/dist/cdn/{NLPMANRC.js → QCHE4DVW.js} +2 -2
  203. package/dist/cdn/{MSYQ3DTT.js → QGYS53RR.js} +4 -4
  204. package/dist/cdn/{MOXPIXHY.js → QLLSLSBN.js} +1 -1
  205. package/dist/cdn/{US3XFPGX.js → QLU4XVVT.js} +2 -2
  206. package/dist/cdn/{QMD4QM54.js → QMSEY6QZ.js} +2 -2
  207. package/dist/cdn/{NHHMUN4R.js → QRWG2TYR.js} +2 -2
  208. package/dist/cdn/{QW57LRAI.js → QSIK5PN7.js} +2 -2
  209. package/dist/cdn/{7HNOOAJF.js → QU7J46DX.js} +2 -2
  210. package/dist/cdn/{Y3U7BM2C.js → R6EOKADJ.js} +2 -2
  211. package/dist/cdn/{PPO7R7XD.js → RD7ZS2W6.js} +2 -2
  212. package/dist/cdn/{K3GQOW75.js → RJWYLFLD.js} +2 -2
  213. package/dist/cdn/{F75K7J4Q.js → RK2B65CQ.js} +2 -2
  214. package/dist/cdn/{GECB7XB3.js → RKBLAY36.js} +2 -2
  215. package/dist/cdn/{SNIWPT26.js → RKMDSDH2.js} +2 -2
  216. package/dist/cdn/{E4LK2YXE.js → S32ETE5A.js} +2 -2
  217. package/dist/cdn/{2QBIXWDP.js → SEYKRRTC.js} +2 -2
  218. package/dist/cdn/{CLY2LQJ7.js → SJEANN4A.js} +2 -2
  219. package/dist/cdn/{FRMAQPZS.js → SONLDZKZ.js} +2 -2
  220. package/dist/cdn/{VS53IXEC.js → SSBXWLZH.js} +2 -2
  221. package/dist/cdn/{UTN75OQB.js → T2XCKYU7.js} +2 -2
  222. package/dist/cdn/{VPEO2Q4J.js → TAV3B2GU.js} +1 -1
  223. package/dist/cdn/{NTN55JWJ.js → TBO2D36S.js} +1 -1
  224. package/dist/cdn/{EME2LY4O.js → TC5DHEWZ.js} +2 -2
  225. package/dist/cdn/{4NX2JZZ6.js → TIZVAXWN.js} +2 -2
  226. package/dist/cdn/{C2CSN6FZ.js → TKLPH6MB.js} +1 -1
  227. package/dist/cdn/TNYU5475.js +4 -0
  228. package/dist/cdn/{RSLSNASB.js → TOETAVWD.js} +2 -2
  229. package/dist/cdn/{CVZ4YBRE.js → TP5XDVEG.js} +2 -2
  230. package/dist/cdn/{DB6GDFU3.js → TTX7PTAO.js} +2 -2
  231. package/dist/cdn/{3GCOFEWA.js → TWNZJBQA.js} +2 -2
  232. package/dist/cdn/{FHBRZBBQ.js → TZQH4GMU.js} +2 -2
  233. package/dist/cdn/{T3BNNVGE.js → UOD4T3ON.js} +1 -1
  234. package/dist/cdn/{R3FACCWV.js → UROIIN7O.js} +2 -2
  235. package/dist/cdn/{BQ5YXWHO.js → USLJNUGC.js} +2 -2
  236. package/dist/cdn/{WHR74CMQ.js → UTLWN6N7.js} +2 -2
  237. package/dist/cdn/{RFCPNJLD.js → UUHKWZ2Z.js} +2 -2
  238. package/dist/cdn/{6I6V4XPD.js → UUUTNXB4.js} +1 -1
  239. package/dist/cdn/{CCG6HDX3.js → UY5FQRLE.js} +3 -3
  240. package/dist/cdn/{MTXAIDLY.js → V55ZE6QF.js} +2 -2
  241. package/dist/cdn/{5A3QS7CA.js → VAVI46B5.js} +2 -2
  242. package/dist/cdn/{Q57AGAVB.js → VGUHMA6Y.js} +2 -2
  243. package/dist/cdn/{LRJRAHXF.js → VQHGM66B.js} +2 -2
  244. package/dist/cdn/{2U567VGU.js → VRBUE2RB.js} +2 -2
  245. package/dist/cdn/{7B2AZ7R2.js → VS4B5DD2.js} +2 -2
  246. package/dist/cdn/{24UWX6TP.js → VTZILRDE.js} +2 -2
  247. package/dist/cdn/{YEZQBSDN.js → VU5B3BJJ.js} +2 -2
  248. package/dist/cdn/{5OMSDGWG.js → VWO7O6IS.js} +2 -2
  249. package/dist/cdn/VYNJ3IAK.js +4 -0
  250. package/dist/cdn/{MVS6LSDW.js → VZFDFVGG.js} +2 -2
  251. package/dist/cdn/{F3W4JSQE.js → VZFXG3TX.js} +2 -2
  252. package/dist/cdn/{B23CHB5L.js → W2I3RJRK.js} +2 -2
  253. package/dist/cdn/{6PPIHU64.js → W377GATJ.js} +2 -2
  254. package/dist/cdn/{6YCECILW.js → W4D3Q2KE.js} +2 -2
  255. package/dist/cdn/{J2JICNEQ.js → WDUYYHOZ.js} +2 -2
  256. package/dist/cdn/{WP6TBFL4.js → WEWB3BRG.js} +1 -1
  257. package/dist/cdn/{VKMEAGVS.js → WLNWGHXO.js} +2 -2
  258. package/dist/cdn/{E7TRIWDT.js → WMHD7E5R.js} +2 -2
  259. package/dist/cdn/{XBPN363J.js → WMYYW4X6.js} +2 -2
  260. package/dist/cdn/{N6445PSV.js → WOD4EWNY.js} +2 -2
  261. package/dist/cdn/{E35CJ7XJ.js → WQN5K2ZY.js} +2 -2
  262. package/dist/cdn/WSSBOJ5N.js +18 -0
  263. package/dist/cdn/{N5SRAD2M.js → WW7D6SSQ.js} +1 -1
  264. package/dist/cdn/WYKOLNUO.js +4 -0
  265. package/dist/cdn/{OXISLKJ3.js → WZ2Y55GH.js} +2 -2
  266. package/dist/cdn/{HC5KL6M5.js → X5B3HI7H.js} +2 -2
  267. package/dist/cdn/X6GUL5YM.js +4 -0
  268. package/dist/cdn/{OFOOFDLM.js → XF3QMPYW.js} +2 -2
  269. package/dist/cdn/XF4JI76V.js +18 -0
  270. package/dist/cdn/{X75UTGDT.js → XH56YQ5M.js} +2 -2
  271. package/dist/cdn/{GAQV7YGC.js → XJEKCHNF.js} +2 -2
  272. package/dist/cdn/{KTWVZXWG.js → XNQ27MXZ.js} +2 -2
  273. package/dist/cdn/{VYUXJLFU.js → XNUHTFDS.js} +1 -1
  274. package/dist/cdn/{EILX6MQW.js → XT5ITDOM.js} +2 -2
  275. package/dist/cdn/{CJVN2TJS.js → XUEE63KO.js} +1 -1
  276. package/dist/cdn/{KAVJHZA3.js → Y34VPW3D.js} +2 -2
  277. package/dist/cdn/{UVD5E6HI.js → YIIADRZZ.js} +2 -2
  278. package/dist/cdn/{IP6B2WDL.js → Z47UTABF.js} +2 -2
  279. package/dist/cdn/{UZOKFYTW.js → ZD2443DU.js} +2 -2
  280. package/dist/cdn/{CEI5GTHA.js → ZFECRVJQ.js} +2 -2
  281. package/dist/cdn/{HP4W4KDJ.js → ZG7KYN4E.js} +2 -2
  282. package/dist/cdn/{C6SEQOGV.js → ZJQDRWP2.js} +2 -2
  283. package/dist/cdn/{42ZHF2HE.js → ZLLEYAP3.js} +2 -2
  284. package/dist/cdn/{EA5T3ZAJ.js → ZOMUTHCL.js} +2 -2
  285. package/dist/cdn/{I5KCXSTA.js → ZV2QHOXX.js} +2 -2
  286. package/dist/cdn/assets/solution-delete-dialog/t9n/messages.en.json +1 -1
  287. package/dist/cdn/assets/solution-delete-dialog/t9n/messages.json +1 -1
  288. package/dist/cdn/index.js +2 -2
  289. package/dist/chunks/Auth.js +1 -1
  290. package/dist/chunks/appConfig.js +1 -1
  291. package/dist/chunks/cardFetchingUtils.js +1 -1
  292. package/dist/chunks/common.js +17 -3
  293. package/dist/chunks/deployAppContexts.js +1 -1
  294. package/dist/chunks/downloadUtils.js +1 -1
  295. package/dist/chunks/helpers.js +1 -1
  296. package/dist/chunks/index.js +1 -1
  297. package/dist/chunks/interfaces.js +1 -1
  298. package/dist/chunks/loadModules.js +1 -1
  299. package/dist/chunks/mapViewUtils.js +1 -1
  300. package/dist/chunks/pciUtils.js +1 -1
  301. package/dist/chunks/popupUtils.js +1 -1
  302. package/dist/chunks/prepareDataForSolutionDisplay.js +57 -0
  303. package/dist/chunks/privilegeUtils.js +1 -1
  304. package/dist/chunks/publicNotificationStore.js +1 -1
  305. package/dist/chunks/queryUtils.js +1 -1
  306. package/dist/chunks/runtime.js +3 -3
  307. package/dist/chunks/solution-store.js +1 -1
  308. package/dist/chunks/templates.js +1 -1
  309. package/dist/chunks/useT9n.js +1 -1
  310. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  311. package/dist/components/basemap-gallery/customElement.js +1 -1
  312. package/dist/components/buffer-tools/customElement.js +1 -1
  313. package/dist/components/card-manager/customElement.js +1 -1
  314. package/dist/components/consent-manager/customElement.js +1 -1
  315. package/dist/components/create-feature/customElement.js +1 -1
  316. package/dist/components/create-related-feature/customElement.js +1 -1
  317. package/dist/components/crowdsource-manager/customElement.js +1 -1
  318. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  319. package/dist/components/deduct-calculator/customElement.js +1 -1
  320. package/dist/components/delete-button/customElement.js +1 -1
  321. package/dist/components/delete-dialog/customElement.js +1 -1
  322. package/dist/components/edit-card/customElement.js +1 -1
  323. package/dist/components/feature-details/customElement.js +1 -1
  324. package/dist/components/feature-list/customElement.js +1 -1
  325. package/dist/components/field-selection/customElement.js +1 -1
  326. package/dist/components/floor-filter/customElement.js +1 -1
  327. package/dist/components/info-card/customElement.js +1 -1
  328. package/dist/components/json-editor/customElement.js +1 -1
  329. package/dist/components/layer-list/customElement.js +1 -1
  330. package/dist/components/layer-table/customElement.js +13 -10
  331. package/dist/components/map-card/customElement.js +1 -1
  332. package/dist/components/map-draw-tools/customElement.js +1 -1
  333. package/dist/components/map-fullscreen/customElement.js +1 -1
  334. package/dist/components/map-layer-picker/customElement.js +8 -8
  335. package/dist/components/map-legend/customElement.js +1 -1
  336. package/dist/components/map-picker/customElement.js +25 -26
  337. package/dist/components/map-search/customElement.js +1 -1
  338. package/dist/components/map-select-tools/customElement.js +1 -1
  339. package/dist/components/map-tools/customElement.js +1 -1
  340. package/dist/components/pci-calculator/customElement.js +1 -1
  341. package/dist/components/pdf-download/customElement.js +1 -1
  342. package/dist/components/public-notification/customElement.js +1 -1
  343. package/dist/components/refine-selection/customElement.js +1 -1
  344. package/dist/components/selection-tool/customElement.js +1 -1
  345. package/dist/components/solution-article-card/customElement.js +1 -1
  346. package/dist/components/solution-configuration/customElement.js +1 -1
  347. package/dist/components/solution-configure-dialog/customElement.js +1 -1
  348. package/dist/components/solution-configure-titles/customElement.js +1 -1
  349. package/dist/components/solution-contents/customElement.js +1 -1
  350. package/dist/components/solution-delete-dialog/customElement.d.ts +1 -0
  351. package/dist/components/solution-delete-dialog/customElement.js +42 -46
  352. package/dist/components/solution-delete-dialog/index.d.ts +1 -0
  353. package/dist/components/solution-delete-dialog/index.js +1 -0
  354. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  355. package/dist/components/solution-deployed-card/customElement.js +25 -75
  356. package/dist/components/solution-deploying-panel/customElement.js +1 -1
  357. package/dist/components/solution-details-card/customElement.js +1 -1
  358. package/dist/components/solution-details-panel/customElement.d.ts +1 -1
  359. package/dist/components/solution-details-panel/customElement.js +54 -59
  360. package/dist/components/solution-item/customElement.js +1 -1
  361. package/dist/components/solution-item-accordion/customElement.js +1 -1
  362. package/dist/components/solution-item-details/customElement.js +1 -1
  363. package/dist/components/solution-item-diagram/customElement.js +1 -1
  364. package/dist/components/solution-item-icon/customElement.js +1 -1
  365. package/dist/components/solution-item-sharing/customElement.js +1 -1
  366. package/dist/components/solution-organization-variables/customElement.js +1 -1
  367. package/dist/components/solution-resource-item/customElement.js +1 -1
  368. package/dist/components/solution-snapshot-gallery/customElement.d.ts +24 -0
  369. package/dist/components/solution-snapshot-gallery/customElement.js +45 -17
  370. package/dist/components/solution-snapshot-gallery/index.d.ts +4 -0
  371. package/dist/components/solution-snapshot-gallery/index.js +4 -0
  372. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  373. package/dist/components/solution-template-data/customElement.js +1 -1
  374. package/dist/components/solution-variables/customElement.js +1 -1
  375. package/dist/components/solutions-all-panel/customElement.js +1 -1
  376. package/dist/components/solutions-all-shell/customElement.js +1 -1
  377. package/dist/components/solutions-article-panel/customElement.js +1 -1
  378. package/dist/components/solutions-articles/customElement.js +1 -1
  379. package/dist/components/solutions-articles-shell/customElement.js +1 -1
  380. package/dist/components/solutions-deployed-panel/customElement.js +19 -15
  381. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  382. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  383. package/dist/components/spatial-ref/customElement.js +1 -1
  384. package/dist/components/store-manager/customElement.js +1 -1
  385. package/dist/docs/api.json +198 -71
  386. package/dist/docs/docs.json +216 -73
  387. package/dist/docs/vscode.html-custom-data.json +8 -2
  388. package/dist/docs/web-types.json +48 -6
  389. package/dist/index.js +1 -1
  390. package/dist/loader.js +2 -2
  391. package/dist/types/lumina.d.ts +1 -1
  392. package/dist/types/preact.d.ts +1 -1
  393. package/dist/types/react.d.ts +1 -1
  394. package/dist/types/stencil.d.ts +1 -1
  395. package/dist/utils/common.d.ts +16 -0
  396. package/package.json +22 -22
  397. package/dist/cdn/3TNIRE5C.js +0 -18
  398. package/dist/cdn/3UXKAF2H.js +0 -4
  399. package/dist/cdn/4YWQ7U43.js +0 -4
  400. package/dist/cdn/6FIWOMM6.js +0 -4
  401. package/dist/cdn/7FLZ75CE.js +0 -18
  402. package/dist/cdn/AXEPEBX2.js +0 -18
  403. package/dist/cdn/GA4DUE6T.js +0 -18
  404. package/dist/cdn/GQBAHH2L.js +0 -4
  405. package/dist/cdn/HJJ7QGPS.js +0 -4
  406. package/dist/cdn/INCUZCR2.js +0 -4
  407. package/dist/cdn/L3SQYQFL.js +0 -4
  408. package/dist/cdn/M3H6G26K.js +0 -18
  409. package/dist/cdn/MDQL7YHS.js +0 -4
  410. package/dist/cdn/MLUOU7R6.js +0 -18
  411. package/dist/cdn/OYQBVE3D.js +0 -18
  412. package/dist/cdn/PBTBD6VR.js +0 -4
  413. package/dist/cdn/STEAYSG2.js +0 -4
  414. package/dist/cdn/SW6MRYZK.js +0 -18
  415. package/dist/cdn/TIYVVUTR.js +0 -4
  416. package/dist/cdn/UV4YR6X6.js +0 -4
  417. package/dist/cdn/V55YIAKZ.js +0 -4
  418. package/dist/cdn/VJO7RQBS.js +0 -4
  419. package/dist/cdn/VVBMRLMX.js +0 -4
  420. package/dist/cdn/W46YS22D.js +0 -18
@@ -2053,7 +2053,7 @@
2053
2053
  },
2054
2054
  {
2055
2055
  "name": "solution-delete-dialog",
2056
- "description": "### Events\n- **dialogOpen** - Emitted when the dialog is closed.\n- **solutionDeleted**\n\n### Methods\n- `close(): void` - Closes the panel\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `delete(): void` - Deletes the solution provided in the card property.",
2056
+ "description": "### Events\n- **dialogOpen** - Emitted when the dialog is closed.\n- **solutionDeleted** - Emitted after delete process to refresh solutions list\n\n### Methods\n- `close(): void` - Closes the panel\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `delete(): void` - Deletes the solution provided in the card property.",
2057
2057
  "attributes": [
2058
2058
  {
2059
2059
  "name": "open",
@@ -2276,7 +2276,13 @@
2276
2276
  {
2277
2277
  "name": "solution-snapshot-gallery",
2278
2278
  "description": "### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.",
2279
- "attributes": [],
2279
+ "attributes": [
2280
+ {
2281
+ "name": "open",
2282
+ "description": "boolean: when true the dialog is open",
2283
+ "values": []
2284
+ }
2285
+ ],
2280
2286
  "references": []
2281
2287
  },
2282
2288
  {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@esri/solutions-components",
4
- "version": "1.0.0-next.20250623",
4
+ "version": "1.0.1",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -5789,7 +5789,7 @@
5789
5789
  },
5790
5790
  {
5791
5791
  "name": "solution-delete-dialog",
5792
- "description": "### Events\n- **dialogOpen** - Emitted when the dialog is closed.\n- **solutionDeleted**\n\n### Methods\n- `close(): void` - Closes the panel\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `delete(): void` - Deletes the solution provided in the card property.",
5792
+ "description": "### Events\n- **dialogOpen** - Emitted when the dialog is closed.\n- **solutionDeleted** - Emitted after delete process to refresh solutions list\n\n### Methods\n- `close(): void` - Closes the panel\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `delete(): void` - Deletes the solution provided in the card property.",
5793
5793
  "attributes": [
5794
5794
  {
5795
5795
  "name": "open",
@@ -5808,7 +5808,8 @@
5808
5808
  },
5809
5809
  {
5810
5810
  "name": "solutionDeleted",
5811
- "type": "boolean"
5811
+ "type": "boolean",
5812
+ "description": "Emitted after delete process to refresh solutions list"
5812
5813
  }
5813
5814
  ],
5814
5815
  "js": {
@@ -5842,7 +5843,8 @@
5842
5843
  },
5843
5844
  {
5844
5845
  "name": "solutionDeleted",
5845
- "type": "boolean"
5846
+ "type": "boolean",
5847
+ "description": "Emitted after delete process to refresh solutions list"
5846
5848
  }
5847
5849
  ]
5848
5850
  }
@@ -6462,10 +6464,50 @@
6462
6464
  {
6463
6465
  "name": "solution-snapshot-gallery",
6464
6466
  "description": "### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.",
6465
- "attributes": [],
6467
+ "attributes": [
6468
+ {
6469
+ "name": "open",
6470
+ "description": "boolean: when true the dialog is open",
6471
+ "default": "false",
6472
+ "value": {
6473
+ "type": "boolean"
6474
+ }
6475
+ }
6476
+ ],
6466
6477
  "events": [],
6467
6478
  "js": {
6468
- "properties": [],
6479
+ "properties": [
6480
+ {
6481
+ "name": "auth",
6482
+ "description": "The authentication\r\nTODO this should not be necessary as we should get this from the authContextConsumer but it's not working in this case for some reason",
6483
+ "type": "Auth"
6484
+ },
6485
+ {
6486
+ "name": "authContextConsumer",
6487
+ "description": "The authentication from global nav",
6488
+ "type": "ContextConsumer<{\n __context__: Auth;\n}, HTMLElement & ReactiveControllerHost>"
6489
+ },
6490
+ {
6491
+ "name": "card",
6492
+ "description": "Key details about the solution",
6493
+ "type": "ISolutionInfoCard"
6494
+ },
6495
+ {
6496
+ "name": "itemProperties",
6497
+ "description": "Key item properties",
6498
+ "type": "IItemProperties"
6499
+ },
6500
+ {
6501
+ "name": "open",
6502
+ "description": "boolean: when true the dialog is open",
6503
+ "type": "boolean"
6504
+ },
6505
+ {
6506
+ "name": "screenshot",
6507
+ "description": "The current screenshot to display the large image for",
6508
+ "type": "IItemPreview"
6509
+ }
6510
+ ],
6469
6511
  "events": []
6470
6512
  }
6471
6513
  },
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { g as e, s as a } from "./chunks/runtime.js";
2
2
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
4
- v1.0.0-next.20250623 */
4
+ v1.0.1 */
5
5
  export {
6
6
  e as getAssetPath,
7
7
  a as setAssetPath
package/dist/loader.js CHANGED
@@ -2,7 +2,7 @@ import { r as e } from "./chunks/runtime.js";
2
2
  import { makeDefineCustomElements as o } from "@arcgis/lumina";
3
3
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
5
- v1.0.0-next.20250623 */
5
+ v1.0.1 */
6
6
  const l = o(e, {
7
7
  "arcgis-solutions-assistant": [() => import("./components/arcgis-solutions-assistant/customElement.js"), "AIServerUrl,token"],
8
8
  "basemap-gallery": [() => import("./components/basemap-gallery/customElement.js"), "basemapConfig:,basemapWidget:,mapView:"],
@@ -58,7 +58,7 @@ const l = o(e, {
58
58
  "solution-item-sharing": [() => import("./components/solution-item-sharing/customElement.js"), "groupId;getShareInfo"],
59
59
  "solution-organization-variables": [() => import("./components/solution-organization-variables/customElement.js"), "value"],
60
60
  "solution-resource-item": [() => import("./components/solution-resource-item/customElement.js"), "authentication:,itemId"],
61
- "solution-snapshot-gallery": [() => import("./components/solution-snapshot-gallery/customElement.js")],
61
+ "solution-snapshot-gallery": [() => import("./components/solution-snapshot-gallery/customElement.js"), "auth:,authContextConsumer:,card:,itemProperties:,open,screenshot:"],
62
62
  "solution-spatial-ref": [() => import("./components/solution-spatial-ref/customElement.js"), "enabled,enableDefault,featureServices:;_testAccess"],
63
63
  "solution-template-data": [() => import("./components/solution-template-data/customElement.js"), "instanceid,itemId,organizationVariables,solutionVariables,varsOpen"],
64
64
  "solution-variables": [() => import("./components/solution-variables/customElement.js"), "value"],
@@ -319,7 +319,7 @@ interface LuminaSolutionOrganizationVariables extends Partial<Pick<SolutionOrgan
319
319
  interface LuminaSolutionResourceItem extends Partial<Pick<SolutionResourceItem, 'authentication' | 'itemId'>>, h.JSX.HTMLAttributes<HTMLSolutionResourceItemElement> {
320
320
  }
321
321
 
322
- interface LuminaSolutionSnapshotGallery extends h.JSX.HTMLAttributes<HTMLSolutionSnapshotGalleryElement> {
322
+ interface LuminaSolutionSnapshotGallery extends Partial<Pick<SolutionSnapshotGallery, 'auth' | 'authContextConsumer' | 'card' | 'itemProperties' | 'open' | 'screenshot'>>, h.JSX.HTMLAttributes<HTMLSolutionSnapshotGalleryElement> {
323
323
  }
324
324
 
325
325
  interface LuminaSolutionSpatialRef extends Partial<Pick<SolutionSpatialRef, 'enabled' | 'enableDefault' | 'featureServices'>>, h.JSX.HTMLAttributes<HTMLSolutionSpatialRefElement> {
@@ -320,7 +320,7 @@ interface PreactSolutionOrganizationVariables extends Partial<Pick<SolutionOrgan
320
320
  interface PreactSolutionResourceItem extends Partial<Pick<SolutionResourceItem, 'authentication' | 'itemId'>>, PreactJsx.HTMLAttributes<HTMLSolutionResourceItemElement> {
321
321
  }
322
322
 
323
- interface PreactSolutionSnapshotGallery extends PreactJsx.HTMLAttributes<HTMLSolutionSnapshotGalleryElement> {
323
+ interface PreactSolutionSnapshotGallery extends Partial<Pick<SolutionSnapshotGallery, 'auth' | 'authContextConsumer' | 'card' | 'itemProperties' | 'open' | 'screenshot'>>, PreactJsx.HTMLAttributes<HTMLSolutionSnapshotGalleryElement> {
324
324
  }
325
325
 
326
326
  interface PreactSolutionSpatialRef extends Partial<Pick<SolutionSpatialRef, 'enabled' | 'enableDefault' | 'featureServices'>>, PreactJsx.HTMLAttributes<HTMLSolutionSpatialRefElement> {
@@ -320,7 +320,7 @@ interface ReactSolutionOrganizationVariables extends Partial<Pick<SolutionOrgani
320
320
  interface ReactSolutionResourceItem extends Partial<Pick<SolutionResourceItem, 'authentication' | 'itemId'>>, HTMLProps<HTMLSolutionResourceItemElement> {
321
321
  }
322
322
 
323
- interface ReactSolutionSnapshotGallery extends HTMLProps<HTMLSolutionSnapshotGalleryElement> {
323
+ interface ReactSolutionSnapshotGallery extends Partial<Pick<SolutionSnapshotGallery, 'auth' | 'authContextConsumer' | 'card' | 'itemProperties' | 'open' | 'screenshot'>>, HTMLProps<HTMLSolutionSnapshotGalleryElement> {
324
324
  }
325
325
 
326
326
  interface ReactSolutionSpatialRef extends Partial<Pick<SolutionSpatialRef, 'enabled' | 'enableDefault' | 'featureServices'>>, HTMLProps<HTMLSolutionSpatialRefElement> {
@@ -320,7 +320,7 @@ interface StencilSolutionOrganizationVariables extends Partial<Pick<SolutionOrga
320
320
  interface StencilSolutionResourceItem extends Partial<Pick<SolutionResourceItem, 'authentication' | 'itemId'>>, StencilJsx.HTMLAttributes<HTMLSolutionResourceItemElement> {
321
321
  }
322
322
 
323
- interface StencilSolutionSnapshotGallery extends StencilJsx.HTMLAttributes<HTMLSolutionSnapshotGalleryElement> {
323
+ interface StencilSolutionSnapshotGallery extends Partial<Pick<SolutionSnapshotGallery, 'auth' | 'authContextConsumer' | 'card' | 'itemProperties' | 'open' | 'screenshot'>>, StencilJsx.HTMLAttributes<HTMLSolutionSnapshotGalleryElement> {
324
324
  }
325
325
 
326
326
  interface StencilSolutionSpatialRef extends Partial<Pick<SolutionSpatialRef, 'enabled' | 'enableDefault' | 'featureServices'>>, StencilJsx.HTMLAttributes<HTMLSolutionSpatialRefElement> {
@@ -1,5 +1,6 @@
1
1
  import { UserSession } from '@esri/solution-common';
2
2
  import { IResponse, ISolutionModels } from './interfaces';
3
+ import { Auth } from './Auth';
3
4
  /**
4
5
  * Get an array from a list of nodes
5
6
  *
@@ -29,3 +30,18 @@ export declare function save(id: string, data: any, models: ISolutionModels, aut
29
30
  * @returns a promise that will resolve with response results
30
31
  */
31
32
  export declare function _updateResources(solutionId: string, models: ISolutionModels, data: any, authentication: UserSession): Promise<any>;
33
+ /**
34
+ * Generates the URL to an item.
35
+ *
36
+ * @param id Id of item to use in URL
37
+ * @return URL
38
+ */
39
+ export declare function getItemUrl(id: string, auth: Auth): string;
40
+ /**
41
+ * Generates the URL to an items resource.
42
+ *
43
+ * @param id Id of item to use in URL
44
+ * @param name the name of the resource
45
+ * @return URL
46
+ */
47
+ export declare function getItemResourceUrl(id: string, name: string, auth: Auth): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/solutions-components",
3
- "version": "1.0.0-next.20250623",
3
+ "version": "1.0.1",
4
4
  "description": "Web Components for Esri's Solutions Applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -31,14 +31,14 @@
31
31
  },
32
32
  "license": "SEE LICENSE IN LICENSE.md",
33
33
  "devDependencies": {
34
- "@arcgis/core": ">=4.33.0-next <4.34",
35
- "@arcgis/eslint-config": ">=4.33.0-next <4.34.0",
36
- "@arcgis/instant-apps-components": ">=4.33.0-next <4.34.0",
37
- "@arcgis/lumina-compiler": ">=4.33.0-next <4.34.0",
38
- "@arcgis/map-components": ">=4.33.0-next <4.34.0",
39
- "@arcgis/prettier-config": ">=4.33.0-next <4.34.0",
40
- "@arcgis/typescript-config": ">=4.33.0-next <4.34.0",
41
- "@esri/calcite-components": "^3.2.0-next.60",
34
+ "@arcgis/core": ">=4.33.1",
35
+ "@arcgis/eslint-config": "~4.33.2",
36
+ "@arcgis/instant-apps-components": "~4.33.2",
37
+ "@arcgis/lumina-compiler": "~4.33.2",
38
+ "@arcgis/map-components": "~4.33.2",
39
+ "@arcgis/prettier-config": "~4.33.2",
40
+ "@arcgis/typescript-config": "~4.33.2",
41
+ "@esri/calcite-components": "^3.2.1",
42
42
  "@esri/telemetry": "8.0.1",
43
43
  "@esri/telemetry-amazon": "4.0.1",
44
44
  "@esri/telemetry-google-analytics": "2.0.1",
@@ -73,7 +73,7 @@
73
73
  "resolve-pkg": "^2.0.0",
74
74
  "rimraf": "^6.0.1",
75
75
  "tailwindcss": "3.4.17",
76
- "templates-common-library": ">=0.0.666",
76
+ "templates-common-library": "^0.0.698",
77
77
  "tslib": "^2.8.1",
78
78
  "tsx": "^4.19.2",
79
79
  "typescript": "~5.8.3",
@@ -83,10 +83,10 @@
83
83
  },
84
84
  "dependencies": {
85
85
  "@arcgis/analysis-components": ">=4.33.0-next <4.34.0",
86
- "@arcgis/common-components": ">=4.33.0-next <4.34.0",
87
- "@arcgis/components-utils": ">=4.33.0-next <4.34.0",
88
- "@arcgis/lumina": ">=4.33.0-next <4.34.0",
89
- "@arcgis/map-config-components": ">=4.33.0-next <4.34.0",
86
+ "@arcgis/common-components": "~4.33.2",
87
+ "@arcgis/components-utils": "~4.33.2",
88
+ "@arcgis/lumina": "~4.33.2",
89
+ "@arcgis/map-config-components": "~4.33.2",
90
90
  "@emotion/css": "^11.13.5",
91
91
  "@esri/arcgis-html-sanitizer": "^4.1.0",
92
92
  "@esri/arcgis-rest-types": "^3.7.0",
@@ -96,11 +96,11 @@
96
96
  "jspdf": "^3.0.1"
97
97
  },
98
98
  "peerDependencies": {
99
- "@arcgis/core": ">=4.33.0-next <4.34",
100
- "@arcgis/instant-apps-components": ">=4.33.0-next <4.34.0",
101
- "@arcgis/map-components": ">=4.33.0-next <4.34.0",
102
- "@esri/calcite-components": "^3.2.0-next.15",
103
- "templates-common-library": ">=0.0.666"
99
+ "@arcgis/core": ">=4.33.1",
100
+ "@arcgis/instant-apps-components": "~4.33.2",
101
+ "@arcgis/map-components": "~4.33.2",
102
+ "@esri/calcite-components": "^3.2.1",
103
+ "templates-common-library": "^0.0.698"
104
104
  },
105
105
  "repository": {
106
106
  "type": "git",
@@ -144,9 +144,9 @@
144
144
  "./main.css": "./dist/cdn/main.css"
145
145
  },
146
146
  "resolutions": {
147
- "@esri/calcite-components/@arcgis/lumina": ">=4.33.0-next <4.34.0",
148
- "@esri/calcite-components/@arcgis/components-controllers": ">=4.33.0-next <4.34.0",
149
- "@esri/calcite-components/@arcgis/components-utils": ">=4.33.0-next <4.34.0"
147
+ "@esri/calcite-components/@arcgis/lumina": "~4.33.2",
148
+ "@esri/calcite-components/@arcgis/components-controllers": "~4.33.2",
149
+ "@esri/calcite-components/@arcgis/components-utils": "~4.33.2"
150
150
  },
151
151
  "packageManager": "yarn@4.5.1"
152
152
  }
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250623 */
4
- import{a as f,c as C}from"./7SP3JV67.js";import{N as b,s as _}from"./D5ZMKHVZ.js";import"./22P43VO7.js";import"./T3BNNVGE.js";import"./42ZHF2HE.js";import"./3RCSEW37.js";import"./EA5T3ZAJ.js";import"./VYUXJLFU.js";import"./X3ACNAG7.js";import"./VPEO2Q4J.js";import"./B23CHB5L.js";import"./OAOS4ZIR.js";import"./JF2H7IOR.js";import"./SQ5ORY7B.js";import"./U2DAHKOK.js";import"./VS53IXEC.js";import"./ABFFIPZI.js";import"./ZEI7MQ2T.js";import"./RK7SEZWK.js";import"./BWFAFVTV.js";import{a as g}from"./USL4QTWT.js";import{B as u,D as m,c as d,d as o,n as a,p as h,x as l,y as p}from"./QCIMV4RH.js";import"./LN76EWLU.js";var y=d`@layer{/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-foreground-1);--calcite-panel-background-color: var(--calcite-color-foreground-1)}}`,r=class extends p{constructor(){super(...arguments),this.authContextConsumer=l({context:C,subscribe:!0}),this.open=!1,this.userSessionContextConsumer=l({context:f,subscribe:!0}),this._deletePercentage=0,this._isDeleteInProgress=!1,this._templates=[],this._translations=g({name:"solution-delete-dialog",blocking:!0}),this.dialogOpen=a(),this.solutionDeleted=a()}static{this.properties={authContextConsumer:0,card:0,open:5,userSessionContextConsumer:0,_deletePercentage:16,_isDeleteInProgress:16,_templates:16,_translations:16}}static{this.styles=y}static{this.shadowRootOptions=h}close(){this.open=!1,this.dialogOpen.emit(!1)}delete(){if(this._isDeleteInProgress=!0,this.card){let e=[{itemName:this.card.title,itemType:"Solution",owner:this.card.owner,modified:this.card.modified}],t={progressCallback:i=>{this._deletePercentage=Math.round(i)}};b(this.card.id,this.userSessionContextConsumer.value,t).then(i=>{console.log(i);let c=i[1],n;c?n=c.items.map(s=>({itemName:s.title,itemType:s.type,owner:s.owner,modified:s.modified})):n=e,n.length===0&&(this.solutionDeleted.emit(!0),this._isDeleteInProgress=!1,this.open=!1)})}}async load(){if(this.card){let e=await this._getItemTemplates(this.card);this._templates=e.map(t=>({id:t.itemId,type:t.type,title:"",typeKeywords:[],snippet:""}))}}render(){return o`<calcite-dialog class="panel-bg-color" close-disabled .heading=${this._translations.title.replace("{{solution}}",this.card?.title??"")} id=${this._translations.title.replace("{{solution}}",this.card?.title??"")??u} modal .open=${this.open} outside-close-disabled @calciteDialogClose=${()=>{this.open=!1,this.dialogOpen.emit(!1)}}>${this._isDeleteInProgress?o`<calcite-loader .label=${this._translations.deleteInProgress} scale=l .text=${this._translations.deleteInProgress} type=determinate-value .value=${this._deletePercentage}></calcite-loader>`:o`<calcite-label layout=inline>${this._translations.deletionNote}<calcite-chip .label=${this._translations.deletionCount.replace("{{count}}",this.card?.title??"")}>${this._templates.length>1?this._translations.deletionCountMultiple.replace("{{count}}",this._templates.length.toString()):this._translations.deletionCount.replace("{{count}}",this._templates.length.toString())}</calcite-chip></calcite-label><solution-item-accordion .templateInfos=${this._templates}></solution-item-accordion><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonCancel}</calcite-button><calcite-button @click=${()=>{this.delete()}} slot=footer-end kind=danger>${this._translations.buttonDelete}</calcite-button>`}</calcite-dialog>`}async _getItemTemplates(e){return(await _(e.id,this.userSessionContextConsumer.value)).templates}};m("solution-delete-dialog",r);export{r as SolutionDeleteDialog};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250623 */
4
- import{e as P}from"./QUX4IIVB.js";import{A as C,C as R,D as L,d as k,e as y}from"./V55YIAKZ.js";import"./6I6V4XPD.js";import{a as S,c as e,d as E,e as $}from"./5A3QS7CA.js";import"./LN76EWLU.js";var F=":host{display:block;--instant-apps-social-share-action-width:initial;--instant-apps-social-share-width--s:200px;--instant-apps-social-share-width--m:280px;--instant-apps-social-share-width--l:320px;--instant-apps-social-share-width-horizontal--s:300px;--instant-apps-social-share-width-horizontal--m:380px;--instant-apps-social-share-width-horizontal--l:420px;--instant-apps-social-share-background-color:var(--calcite-color-foreground-1);--instant-apps-social-share-popover-button-background-color:transparent;--instant-apps-social-share-popover-button-icon-color:var(--calcite-ui-icon-color);--instant-apps-social-share-embed-border:1px solid $border;--instant-apps-social-share-embed-text-area-text:#468540}:host .instant-apps-social-share__popover-button{background-color:var(--instant-apps-social-share-popover-button-background-color)}:host .instant-apps-social-share__popover-button calcite-icon{color:var(--instant-apps-social-share-popover-button-icon-color)}:host .instant-apps-social-share__dialog,:host .instant-apps-social-share__dialog-embed{background-color:var(--instant-apps-social-share-background-color);border:var(--instant-apps-social-share-embed-border)}:host .instant-apps-social-share__dialog{box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__options{margin:0;padding:1% 0 0 0;list-style-type:none}:host .instant-apps-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__options li .instant-apps-social-share__icon,:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{display:inline-block}:host .instant-apps-social-share__options li .instant-apps-social-share__icon{display:flex;align-items:center}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text--rtl{margin-left:0;margin-right:10px}:host .instant-apps-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}:host .instant-apps-social-share__options__x-logo--light path{fill:#000000}:host .instant-apps-social-share__options__x-logo--dark path{fill:#ffffff}:host .instant-apps-social-share__tip{box-sizing:border-box;padding:0 5% 1% 5%}:host .instant-apps-social-share__tip-header{display:flex;align-items:center;color:#007ac2;margin:8px 0 5px 0}:host .instant-apps-social-share__tip-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__tip-content{line-height:17px;margin:0;padding-top:2%}:host .instant-apps-social-share__success{display:flex;flex-direction:column;padding:15px}:host .instant-apps-social-share__success-header{display:flex;align-items:center;font-weight:bold;margin-bottom:10px}:host .instant-apps-social-share__success-icon{display:flex;align-items:center;margin-right:5px}:host .instant-apps-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}:host .instant-apps-social-share__success-message{line-height:16px}:host .instant-apps-social-share__embed{box-sizing:border-box;width:100%;padding:5%;margin-bottom:10px;border-top:1px solid #d3d3d3}:host .instant-apps-social-share__embed-header{display:flex;align-items:center;margin-bottom:5px}:host .instant-apps-social-share__embed-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__embed-code-text-area{border:1px solid #d3d3d3}:host .instant-apps-social-share__embed-code-text-area textarea{box-sizing:border-box;padding:4%;border:none;resize:none;background:transparent;width:100%;font-family:var(--calcite-sans-family);color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button{display:flex;align-items:center;text-align:start;width:100%;border:none;border-top:1px solid #d3d3d3;background-color:transparent;line-height:16px;font-weight:400;padding:3%;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button calcite-icon{color:#007ac2;margin-right:3px}:host .instant-apps-social-share__embed-code-text-area button:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2);transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__embed-text-area-text{display:inline-block;padding-block-start:var(--calcite-spacing-md);font-weight:600;color:var(--instant-apps-social-share-embed-text-area-text)}:host .instant-apps-social-share__embed .instant-apps-social-share__text-area--rtl{text-align:left;direction:ltr}:host .instant-apps-social-share__embed-dimensions{display:flex;justify-content:space-between;margin-top:10px}:host .instant-apps-social-share__embed-dimensions-input{width:47%;box-sizing:border-box}:host .instant-apps-social-share__embed-dimensions-input input{border:1px solid #d3d3d3;width:100%;height:25px;font-family:var(--calcite-sans-family)}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li{flex-direction:column;padding:0}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li .instant-apps-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li:hover{background-color:unset}:host .instant-apps-social-share__icon-container{display:flex;align-items:center}:host calcite-action{width:var(--instant-apps-social-share-action-width)}:host([scale=s]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--s)}:host([scale=s]) .instant-apps-social-share__icon{width:16px;height:16px}:host([scale=s]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--s)}:host([scale=s]) .instant-apps-social-share__tip-header,:host([scale=s]) .instant-apps-social-share__tip-content,:host([scale=s]) .instant-apps-social-share__embed-header,:host([scale=s]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--2)}:host([scale=m]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--m)}:host([scale=m]) .instant-apps-social-share__icon{width:24px;height:24px}:host([scale=m]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--m)}:host([scale=m]) .instant-apps-social-share__tip-header,:host([scale=m]) .instant-apps-social-share__tip-content,:host([scale=m]) .instant-apps-social-share__embed-header,:host([scale=m]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--1)}:host([scale=l]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--l)}:host([scale=l]) .instant-apps-social-share__icon{width:32px;height:32px}:host([scale=l]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--l)}:host([scale=l]) .instant-apps-social-share__tip-header,:host([scale=l]) .instant-apps-social-share__tip-content,:host([scale=l]) .instant-apps-social-share__embed-header,:host([scale=l]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size-0)}",K=F,o="instant-apps-social-share",I=".calcite-mode-dark",i={base:o,dialog:`${o}__dialog`,dialogEmbed:`${o}__dialog-embed`,dialogContent:`${o}__dialog-content`,options:`${o}__options`,tipContainer:`${o}__tip`,tipHeader:`${o}__tip-header`,tipContent:`${o}__tip-content`,icon:`${o}__icon`,iconContainer:`${o}__icon-container`,optionText:`${o}__option-text`,popoverButton:`${o}__popover-button`,layout:{vertical:`${o}__layout--vertical`,horizontal:`${o}__layout--horizontal`},xLogo:{light:`${o}__x-logo--light`,dark:`${o}__x-logo--dark`},success:{container:`${o}__success`,header:`${o}__success-header`,message:`${o}__success-message`,icon:`${o}__success-icon`},embed:{container:`${o}__embed`,header:`${o}__embed-header`,embedCode:{container:`${o}__embed-code`,textArea:`${o}__embed-code-text-area`,copyButton:`${o}__embed-code-copy-button`},textAreaText:`${o}__embed-text-area-text`,dimensions:{container:`${o}__embed-dimensions`,input:`${o}__embed-dimensions-input`}},rtl:{optionText:`${o}__option-text--rtl`,textArea:`${o}__text-area--rtl`}},W={facebook:"https://www.facebook.com/sharer/sharer.php?u={url}",x:"https://x.com/intent/post?url={url}",linkedIn:"https://www.linkedin.com/sharing/share-offsite/?url={url}",bluesky:"https://bsky.app/intent/compose?text={url}"},j="https://arcg.is/prod/shorten",T="1",V=class{constructor(t){S(this,t),this.mode="popover",this.shareUrl=window.location.href,this.autoUpdateShareUrl=!0,this.shareText="",this.embed=!1,this.shareButtonColor="neutral",this.shareButtonType="button",this.shareButtonScale="m",this.iframeInnerText="",this.popoverButtonIconScale="m",this.view=void 0,this.displayTipText=!0,this.shortenShareUrl=!0,this.socialMedia=!0,this.shareIconsLayout="vertical",this.scale="m",this.successMessage="",this.flipRtl=!1,this.defaultUrlParams=null,this.inlineSuccessPopoverPlacement="trailing",this.popoverPositioning="absolute",this.removePopoverOffset=!1,this.useNativeShare=!1,this.isNativeShareEnabled=!1,this.messages=void 0,this.opened=!1,this.copied=!1,this.inlineCopyLinkOpened=!1,this.inlineCopyEmbedOpened=!1,this.embedWidth=400,this.embedHeight=600}componentDidLoad(){this.isNativeShareEnabled=this.useNativeShare&&this.isMobileDevice(),P(this),this.setupAutoCloseListeners(),this.mode==="popover"&&!this.isNativeShareEnabled&&(this.opened&&(this.popoverRef.open=!0),this.popoverRef.addEventListener("calcitePopoverOpen",()=>{if(!this.shareListRef)return;this.shareListRef.children[0].focus()}),this.popoverRef.addEventListener("keydown",this.handlePopoverRefKeyDown.bind(this))),this.embed&&!this.isNativeShareEnabled&&(this.embedWidthRef?.addEventListener("change",this.updateDimensions.bind(this,"width")),this.embedHeightRef?.addEventListener("change",this.updateDimensions.bind(this,"height")))}disconnectedCallback(){document.documentElement.removeEventListener("click",this.autoCloseCallback.bind(this)),this.mode==="popover"?this.popoverRef!=null&&(this.popoverRef.removeEventListener("click",this.stopPropagationCallback.bind(this)),this.popoverRef.removeEventListener("calcitePopoverClose",this.resetPopoverCopyState.bind(this)),this.popoverRef.removeEventListener("keydown",this.handlePopoverRefKeyDown.bind(this))):(this.embedWidthRef?.removeEventListener("change",this.updateDimensions.bind(this,"width")),this.embedHeightRef?.removeEventListener("change",this.updateDimensions.bind(this,"height")),this.dialogContentRef?.removeEventListener("click",this.stopPropagationCallback.bind(this)))}setupAutoCloseListeners(){document.documentElement.addEventListener("click",this.autoCloseCallback.bind(this)),this.mode==="popover"?(this.popoverRef?.addEventListener("click",this.stopPropagationCallback.bind(this)),this.popoverRef?.addEventListener("calcitePopoverClose",this.resetPopoverCopyState.bind(this))):this.dialogContentRef?.addEventListener("click",this.stopPropagationCallback.bind(this))}handlePopoverRefKeyDown(t){if(!this.isNativeShareEnabled)if(t.code==="Tab"){if(!this.shareListRef)return;let a=t.target,s=this.shareListRef.children[0],n=this.shareListRef.children[this.shareListRef.children.length-1];t.shiftKey&&a===s?(t.preventDefault(),n.focus()):!t.shiftKey&&a===n&&(t.preventDefault(),s.focus())}else t.code==="Escape"&&(this.closePopover(),this.popoverButtonRef?.setFocus())}autoCloseCallback(){this.mode==="popover"?(this.opened=!1,this.popoverRef.open=this.opened):(this.copyLinkPopoverRef&&(this.copyLinkPopoverRef.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef&&(this.copyEmbedPopoverRef.open=!1),this.inlineCopyEmbedOpened=!1)}stopPropagationCallback(t){t.stopPropagation()}resetPopoverCopyState(){this.popoverButtonRef?.setFocus(),setTimeout(()=>{this.copied=!1},200)}updateDimensions(t){if(t==="width"){let a=this.embedWidthRef?.value??"0";this.embedWidth=Number.parseInt(a)}else{let a=this.embedHeightRef?.value??"0";this.embedHeight=Number.parseInt(a)}}render(){let t=this.copied&&this.mode==="popover"?this.renderSuccess():e("div",{class:i.dialogContent},this.renderOptions(),this.displayTipText?this.renderTip():null,this.embed?this.renderEmbed():null),a=this.shareIconsLayout==="vertical"?` ${i.layout.vertical}`:` ${i.layout.horizontal}`,s=` calcite-mode-${this.el.closest(I)?"dark":"light"}`,n=e("div",{key:"8a69bc57ea2c4905375782cf190655e39b2fadb3",ref:r=>this.dialogContentRef=r,class:`${i.dialog}${a}${s}`},t),c=this.removePopoverOffset?0:6;return e(E,{key:"70eacb6923a4184e19f9f3ba06965efda14641b8"},this.isNativeShareEnabled?this.renderButton():this.mode==="popover"?[e("calcite-popover",{ref:r=>{r&&(this.popoverRef=r)},label:this.messages?.share?.label??"",referenceElement:"shareButton",placement:"bottom-start",scale:this.scale,"overlay-positioning":this.popoverPositioning,"offset-distance":c,"pointer-disabled":this.removePopoverOffset},n),this.renderButton()]:[n,e("calcite-popover",{ref:r=>{r&&(this.copyLinkPopoverRef=r)},label:this.messages?.share?.label??"",referenceElement:"copyToClipboard",placement:this.inlineSuccessPopoverPlacement,scale:this.scale,overlayPositioning:"fixed"},this.renderSuccess()),e("calcite-popover",{ref:r=>{r&&(this.copyEmbedPopoverRef=r)},label:this.messages?.share?.label??"",referenceElement:"copyEmbedToClipboard",placement:this.inlineSuccessPopoverPlacement,scale:this.scale,overlayPositioning:"fixed"},this.renderEmbedSuccess())])}renderButton(){let t={onClick:s=>{this.isNativeShareEnabled?(s.stopPropagation(),this.handleShareItem("native-share")):this.togglePopover(s)},id:"shareButton",class:i.popoverButton,label:this.messages?.share?.label,title:this.messages?.share?.label,scale:this.shareButtonScale??this.scale},a=e("div",{class:i.iconContainer},e("calcite-icon",{icon:"share",scale:this.popoverButtonIconScale}));return this.shareButtonType==="button"?e("calcite-button",{ref:s=>{!this.isNativeShareEnabled&&s&&(this.popoverButtonRef=s)},...t,kind:this.shareButtonColor,appearance:"transparent"},a):e("calcite-action",{ref:s=>{!this.isNativeShareEnabled&&s&&(this.popoverButtonRef=s)},...t,appearance:"transparent",text:"",alignment:"center"},a)}renderSuccess(){let t=this.messages?.success;return e("div",{class:i.success.container},e("span",{class:i.success.header},e("span",{class:i.success.icon},e("calcite-icon",{icon:"check-circle-f",scale:this.scale})),t?.label),e("span",{class:i.success.message},this.successMessage||t?.url))}renderEmbedSuccess(){let t=this.messages?.success;return e("div",{class:i.success.container},e("span",{class:i.success.header},e("span",{class:i.success.icon},e("calcite-icon",{icon:"check-circle-f",scale:this.scale})),t?.label),e("span",{class:i.success.message},t?.embed))}renderOptions(){let t=this.messages?.options,a=document.dir==="rtl"?` ${i.rtl.optionText}`:"";return e("ul",{ref:s=>this.shareListRef=s,class:i.options,role:"menu"},e("li",{id:"copyToClipboard",onClick:this.handleShareItem.bind(this,"link"),onKeyDown:this.handleOptionKeyDown("link"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},e("calcite-icon",{icon:"link",scale:this.scale})),e("span",{class:`${i.optionText}${a}`},t?.link?.label)),this.socialMedia?[e("li",{onClick:this.handleShareItem.bind(this,"facebook"),onKeyDown:this.handleOptionKeyDown("facebook"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderFacebookIcon()),e("span",{class:`${i.optionText}${a}`},t?.facebook?.label)),e("li",{onClick:this.handleShareItem.bind(this,"x"),onKeyDown:this.handleOptionKeyDown("x"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderXIcon()),e("span",{class:`${i.optionText}${a}`},"X")),e("li",{onClick:this.handleShareItem.bind(this,"linkedIn"),onKeyDown:this.handleOptionKeyDown("linkedIn"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderLinkedInIcon()),e("span",{class:`${i.optionText}${a}`},t?.linkedIn?.label)),e("li",{onClick:this.handleShareItem.bind(this,"bluesky"),onKeyDown:this.handleOptionKeyDown("bluesky"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderBlueSkyIcon()),e("span",{class:`${i.optionText}${a}`},t?.blueSky?.label))]:null)}handleOptionKeyDown(t){return a=>{let s=a.code;(s==="Space"||s==="Enter")&&this.handleShareItem(t)}}renderFacebookIcon(){return e("svg",{height:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},version:"1.1",viewBox:"0 0 512 512",width:"100%",xmlns:"http://www.w3.org/2000/svg"},e("g",null,e("path",{d:"M512,256c0,-141.385 -114.615,-256 -256,-256c-141.385,0 -256,114.615 -256,256c0,127.777 93.616,233.685 216,252.89l0,-178.89l-65,0l0,-74l65,0l0,-56.4c0,-64.16 38.219,-99.6 96.695,-99.6c28.009,0 57.305,5 57.305,5l0,63l-32.281,0c-31.801,0 -41.719,19.733 -41.719,39.978l0,48.022l71,0l-11.35,74l-59.65,0l0,178.89c122.385,-19.205 216,-125.113 216,-252.89Z",style:{fill:"#1877f2",fillRule:"nonzero"}}),e("path",{d:"M355.65,330l11.35,-74l-71,0l0,-48.022c0,-20.245 9.917,-39.978 41.719,-39.978l32.281,0l0,-63c0,0 -29.297,-5 -57.305,-5c-58.476,0 -96.695,35.44 -96.695,99.6l0,56.4l-65,0l0,74l65,0l0,178.89c13.033,2.045 26.392,3.11 40,3.11c13.608,0 26.966,-1.065 40,-3.11l0,-178.89l59.65,0Z",style:{fill:"#fff",fillRule:"nonzero"}})))}renderXIcon(){let t=!!this.el.closest(I);return e("svg",{height:"100%",class:t?i.xLogo.dark:i.xLogo.light,viewBox:"0 0 1200 1227",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("rect",{height:"400",style:{fill:"none"},width:"400",x:"56",y:"56"}),e("path",{d:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z",fill:t?"white":"black"}))}renderBlueSkyIcon(){return e("svg",{height:"100%",fill:"#0f85fe",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e("path",{d:"M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z"}))}renderLinkedInIcon(){return e("svg",{height:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},version:"1.1",viewBox:"0 0 512 512",width:"100%",xmlns:"http://www.w3.org/2000/svg"},e("g",{id:"g5891"},e("path",{d:"M512,64c0,-35.323 -28.677,-64 -64,-64l-384,0c-35.323,0 -64,28.677 -64,64l0,384c0,35.323 28.677,64 64,64l384,0c35.323,0 64,-28.677 64,-64l0,-384Z",id:"background",style:{fill:"#2867b2"}}),e("g",{id:"shapes"},e("rect",{height:"257.962",id:"rect11",style:{fill:"#fff"},width:"85.76",x:"61.053",y:"178.667"}),e("path",{d:"M104.512,54.28c-29.341,0 -48.512,19.29 -48.512,44.573c0,24.752 18.588,44.574 47.377,44.574l0.554,0c29.903,0 48.516,-19.822 48.516,-44.574c-0.555,-25.283 -18.611,-44.573 -47.935,-44.573Z",id:"path13-0",style:{fill:"#fff",fillRule:"nonzero"}}),e("path",{d:"M357.278,172.601c-45.49,0 -65.866,25.017 -77.276,42.589l0,-36.523l-85.738,0c1.137,24.197 0,257.961 0,257.961l85.737,0l0,-144.064c0,-7.711 0.554,-15.42 2.827,-20.931c6.188,-15.4 20.305,-31.352 43.993,-31.352c31.012,0 43.436,23.664 43.436,58.327l0,138.02l85.741,0l0,-147.93c0,-79.237 -42.305,-116.097 -98.72,-116.097Z",id:"path15",style:{fill:"#fff",fillRule:"nonzero"}}))))}renderTip(){let t=this.messages?.info;return e("div",{class:i.tipContainer},e("span",{class:i.tipHeader},e("calcite-icon",{icon:"lightbulb",scale:this.scale}),e("span",null,t?.label)),e("p",{class:i.tipContent},t?.tooltip))}renderEmbed(){let t=this.messages?.embed,a=document.dir==="rtl"?` ${i.rtl.textArea}`:"";return e("div",{class:i.embed.container},e("span",{class:i.embed.header},e("calcite-icon",{icon:"code",scale:this.scale}),e("span",null,this.messages?.embed?.label)),e("div",{class:i.embed.embedCode.container},e("div",{class:i.embed.embedCode.textArea},e("textarea",{ref:s=>this.embedCodeRef=s,cols:30,rows:5,readonly:!0,class:a,value:this.getEmbedCode()}),e("button",{id:"copyEmbedToClipboard",onClick:this.copyEmbedCode.bind(this),class:i.embed.embedCode.copyButton},e("calcite-icon",{icon:"copy",scale:this.scale}),e("span",null,t?.copy))),e("span",{class:i.embed.textAreaText},e("slot",{name:"text-area-text"})),e("div",{class:i.embed.dimensions.container},e("label",{class:i.embed.dimensions.input},e("span",null,t?.width),e("input",{ref:s=>this.embedWidthRef=s,type:"number",onKeyDown:s=>["e","E","+","-"].includes(s.key)&&s.preventDefault(),onChange:this.handleNumberInputOnChange("width"),value:this.embedWidth,min:"1"})),e("label",{class:i.embed.dimensions.input},e("span",null,t?.height),e("input",{ref:s=>this.embedHeightRef=s,type:"number",onKeyDown:s=>["e","E","+","-"].includes(s.key)&&s.preventDefault(),onChange:this.handleNumberInputOnChange("height"),value:this.embedHeight,min:"1"})))))}handleNumberInputOnChange(t){let a=t==="width"?this.embedWidthRef:this.embedHeightRef,s=t==="width"?"embedWidth":"embedHeight";return()=>{a&&Number.parseFloat(a.value)<=0&&(this[s]=Number.parseInt(T),a.value=T)}}togglePopover(t){t.stopPropagation(),this.opened=!this.opened,this.popoverRef.open=this.opened}closePopover(){this.opened=!1,this.popoverRef.open=this.opened}async handleShareItem(t){this.shareUrl=await this.generateShareUrl();let a=null,s=navigator?.userAgent?.includes("Chrome")??!1,n=(navigator?.userAgent?.includes("Safari")??!1)&&!s;!n&&this.shortenShareUrl&&(a=await this.shortenUrl(this.shareUrl));let h=a||this.shareUrl;switch(t){case"link":navigator.clipboard.writeText(h),this.embed&&(this.copyEmbedPopoverRef.open=!1,this.inlineCopyEmbedOpened=!1),this.mode==="inline"&&(this.copyLinkPopoverRef.open=!0,setTimeout(()=>this.copyLinkPopoverRef.open=!1,3e3)),this.inlineCopyLinkOpened=!0,this.copied=!0,this.mode==="popover"&&setTimeout(()=>this.closePopover(),2e3);return;case"facebook":case"bluesky":case"x":case"linkedIn":{let r;n&&(r=window.open("","_blank"),this.shortenShareUrl&&(h=await this.shortenUrl(this.shareUrl)||h));let f={url:encodeURI(h)},b=t==="x"?{...f,text:this.shareText}:f,u=(await R()).substitute(W[t],b);this.mode==="popover"&&this.closePopover(),n&&r?(r.location=u,r.focus()):window.open(encodeURI(u),"_blank")}break;case"native-share":let c={title:this.messages?.share?.label||"Share",text:this.shareText,url:encodeURI(h)};navigator?.canShare(c)?navigator.share(c).catch(r=>{console.error("Error using native share:",r)}):console.warn("Native share is not supported or the provided data is not shareable.");return}}async shortenUrl(t){let n=(await(await L())(j,{query:{longUrl:t,f:"json"}}))?.data?.data?.url;if(n)return n.replace("http://","https://")}getEmbedCode(){return`<iframe src="${this.shareUrl}" width="${this.embedWidth}" height="${this.embedHeight}" frameborder="0" style="border:0" allowfullscreen>${this.iframeInnerText}</iframe>`}copyEmbedCode(){navigator.clipboard.writeText(this.getEmbedCode()),this.copyLinkPopoverRef.open=!1,this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.open=!0,setTimeout(()=>this.copyEmbedPopoverRef.open=!1,3e3),this.inlineCopyEmbedOpened=!0}async generateShareUrl(){if(this.autoUpdateShareUrl&&(this.shareUrl=window.location.href),!this.view?.ready)return this.shareUrl;let{x:t,y:a}=this.view.center,{spatialReference:s}=this.view,n=await y({...s.toJSON()}),h=await k({x:t,y:a,spatialReference:n}),c=await this.processPoint(h),{isWGS84:r,isWebMercator:f}=c.spatialReference,b=r||f;return this.generateShareUrlParams(c,b)}async processPoint(t){let{isWGS84:a,isWebMercator:s}=t.spatialReference;if(a||s)return t;let n=await C(),h=await y({wkid:4326});try{await n.load();let c=n.project(t,h);return Promise.resolve(c)}catch(c){return console.error("Failed to project point",c),await Promise.reject(new Error("Failed to project point"))}}generateShareUrlParams(t,a){let{longitude:s,latitude:n,x:h,y:c}=t;if(s===void 0||n===void 0)return this.shareUrl;let r=this.roundValue(a?s:h),f=this.roundValue(a?n:c),{zoom:b}=this.view,w=this.roundValue(b),u=this.view?.popup?.selectedFeature,z=this.view?.popup?.visible,g,_,v;if(u&&z&&u?.layer?.type==="feature"){let d=u?.layer;g=d?.id,_=u.attributes[d.objectIdField]}v=this.view.map?.allLayers.filter(d=>!d.visible).toArray().map(d=>d.id).toString().replaceAll(",",";");let{type:U}=this.view,{defaultUrlParams:m}=this,l=new URL(this.shareUrl),{searchParams:p}=l;if(p.get("center")&&p.delete("center"),p.get("level")&&p.delete("level"),p.get("selectedFeature")&&p.delete("selectedFeature"),p.get("hiddenLayers")&&p.delete("hiddenLayers"),p.get("viewpoint")&&p.delete("viewpoint"),U==="3d"){let{camera:d}=this.view,{heading:D,position:O,tilt:B}=d,{longitude:A,latitude:H,z:M}=O,x={longitude:this.roundValue(A,8),latitude:this.roundValue(H,8),z:this.roundValue(M,3),heading:this.roundValue(D,3),tilt:this.roundValue(B,3)},N=`cam:${x.longitude},${x.latitude},${x.z};${x.heading},${x.tilt}`;return m?.viewpoint!==!1&&l.searchParams.set("viewpoint",N),g&&_&&m?.selectedFeature!==!1&&l.searchParams.set("selectedFeature",`${g};${_}`),v&&m?.hiddenLayers!==!1&&l.searchParams.set("hiddenLayers",v),l.search=decodeURIComponent(l.search),l.href}return m?.center!==!1&&l.searchParams.set("center",`${r};${f}`),m?.level!==!1&&l.searchParams.set("level",`${w}`),g&&_&&m?.selectedFeature!==!1&&l.searchParams.set("selectedFeature",`${g};${_}`),v&&m?.hiddenLayers!==!1&&l.searchParams.set("hiddenLayers",v),l.search=decodeURIComponent(l.search),l.href}roundValue(t,a=4){return Number.parseFloat(t.toFixed(a))}isMobileDevice(){return/Mobi|Android|iPhone|iPad|iPod/iu.test(navigator.userAgent)}get el(){return $(this)}};V.style=K;export{V as instant_apps_social_share};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250623 */
4
- import{a as l,b as o}from"./ZYEKV2AH.js";import{a as r,c as t,d,e as c,f as p}from"./5A3QS7CA.js";import"./LN76EWLU.js";var g;(function(n){n.TopLeft="top-left",n.TopCenter="top-center",n.TopRight="top-right",n.CenterLeft="center-left",n.Center="center",n.CenterRight="center-right",n.BottomLeft="bottom-left",n.BottomCenter="bottom-center",n.BottomRight="bottom-right"})(g||(g={}));var _=":host{--instant-apps-landing-page-background-color:var(--calcite-color-brand);--instant-apps-landing-page-text-color:var(--calcite-color-text-inverse);--instant-apps-landing-page-entry-button-color:var(--calcite-color-brand);--instant-apps-landing-page-title-text-font-size:var(--calcite-font-size-6);--instant-apps-landing-page-subtitle-text-font-size:var(--calcite-font-size-3);--instant-apps-landing-page-description-text-font-size:var(--calcite-font-size-0);--instant-apps-landing-page-icon-image-scale--s:100px;--instant-apps-landing-page-icon-image-scale--m:250px;--instant-apps-landing-page-icon-image-scale--l:500px;--instant-apps-landing-page-entry-button-margin:0}:host .instant-apps-landing-page{box-sizing:border-box;position:absolute;top:0;left:0;z-index:9000;display:flex;flex-direction:column;width:100%;height:100%;padding:2.5%;transition:top 0.5s ease-in-out;background-color:var(--instant-apps-landing-page-background-color);color:var(--instant-apps-landing-page-text-color)}:host .instant-apps-landing-page__title-text{color:var(--instant-apps-landing-page-text-color);font-size:var(--instant-apps-landing-page-title-text-font-size);margin:0}:host .instant-apps-landing-page__subtitle-text{font-weight:var(--calcite-font-weight-medium);font-size:var(--instant-apps-landing-page-subtitle-text-font-size)}:host .instant-apps-landing-page__description-text{font-size:var(--instant-apps-landing-page-description-text-font-size);width:50%;min-width:250px}:host .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__subtitle-text{text-shadow:0px 4px 3px rgba(0, 0, 0, 0.4), 0px 8px 13px rgba(0, 0, 0, 0.1), 0px 18px 23px rgba(0, 0, 0, 0.1)}:host .instant-apps-landing-page__icon-image{margin-bottom:5px}:host .instant-apps-landing-page__icon-image-scale--s{width:100px}:host .instant-apps-landing-page__icon-image-scale--m{width:250px}:host .instant-apps-landing-page__icon-image-scale--l{width:500px}:host .instant-apps-landing-page__button-container{display:flex}:host .instant-apps-landing-page__button-container .instant-apps-landing-page__entry-button{margin:var(--instant-apps-landing-page-entry-button-margin)}:host .instant-apps-landing-page__entry-button{--calcite-color-brand:var(--instant-apps-landing-page-entry-button-color);--calcite-color-brand-hover:var(--instant-apps-landing-page-entry-button-color);--calcite-color-brand-press:var(--instant-apps-landing-page-entry-button-color)}:host .instant-apps-landing-page__background-action{position:absolute;top:1%;right:0.5%;max-width:300px}:host .instant-apps-landing-page__remove-transition{transition:none}:host .instant-apps-landing-page__remove-padding{padding:0}:host .instant-apps-landing-page--closed-no-transition{display:none}:host .instant-apps-landing-page--closed{top:-100%}:host .instant-apps-landing-page__alignment--top-center{justify-content:flex-start;align-items:center}:host .instant-apps-landing-page__alignment--top-center .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:center;justify-content:center}:host .instant-apps-landing-page__alignment--center{justify-content:center;align-items:center}:host .instant-apps-landing-page__alignment--center .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:center}:host .instant-apps-landing-page__alignment--bottom-center{justify-content:flex-end;align-items:center}:host .instant-apps-landing-page__alignment--bottom-center .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:center}:host .instant-apps-landing-page__alignment--top-left{justify-content:flex-start;align-items:flex-start}:host .instant-apps-landing-page__alignment--center-left{justify-content:center;align-items:flex-start}:host .instant-apps-landing-page__alignment--bottom-left{justify-content:flex-end;align-items:flex-start}:host .instant-apps-landing-page__alignment--top-right{justify-content:flex-start;align-items:flex-end}:host .instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:flex-end}:host .instant-apps-landing-page__alignment--center-right{justify-content:center;align-items:flex-end}:host .instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:flex-end}:host .instant-apps-landing-page__alignment--bottom-right{justify-content:flex-end;align-items:flex-end}:host .instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:flex-end}:host .instant-apps-landing-page__alignment--top-left .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--top-left .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--top-left .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:left}:host .instant-apps-landing-page__alignment--center-left .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--center-left .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--center-left .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:left}:host .instant-apps-landing-page__alignment--bottom-left .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--bottom-left .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--bottom-left .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:left}:host .instant-apps-landing-page__alignment--top-center .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--top-center .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--top-center .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:center}:host .instant-apps-landing-page__alignment--center .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--center .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--center .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:center}:host .instant-apps-landing-page__alignment--bottom-center .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--bottom-center .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--bottom-center .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:center}:host .instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:right}:host .instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:right}:host .instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:right}:host instant-apps-sign-in{width:50%}@media screen and (max-width: 500px){:host instant-apps-sign-in{width:100%}}@media only screen and (max-width: 768px){:host .instant-apps-landing-page__icon-image{max-width:70%;margin-bottom:20px}:host .instant-apps-landing-page__description-text{width:80%}:host .instant-apps-landing-page__title-text{font-size:var(--calcite-font-size-3)}:host .instant-apps-landing-page__subtitle-text{font-size:var(--calcite-font-size-0)}:host .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:center;margin-top:auto}:host .instant-apps-landing-page__button-container{display:flex;flex-direction:column;width:100%;margin-top:auto}:host .instant-apps-landing-page__button-container .instant-apps-landing-page__entry-button{width:100%;margin-right:unset;margin-bottom:10px}:host .instant-apps-landing-page instant-apps-sign-in{margin-bottom:auto}}@media only screen and (max-width: 896px) and (orientation: landscape){:host .instant-apps-landing-page__icon-image{max-width:25%}}",h=_,a={BASE:"instant-apps-landing-page",titleText:"instant-apps-landing-page__title-text",subtitleText:"instant-apps-landing-page__subtitle-text",descriptionText:"instant-apps-landing-page__description-text",closed:"instant-apps-landing-page--closed",closedNoTransition:"instant-apps-landing-page--closed-no-transition",iconImage:"instant-apps-landing-page__icon-image",removeTransition:"instant-apps-landing-page__remove-transition",removePadding:"instant-apps-landing-page__remove-padding",alignment:"instant-apps-landing-page__alignment--",entryButton:"instant-apps-landing-page__entry-button",contentContainer:"instant-apps-landing-page__content-container",buttonContainer:"instant-apps-landing-page__button-container",backgroundAction:"instant-apps-landing-page__background-action",iconImageScale:{s:" instant-apps-landing-page__icon-image-scale--s",m:" instant-apps-landing-page__icon-image-scale--m",l:" instant-apps-landing-page__icon-image-scale--l"}},m=class{constructor(n){r(this,n),this.landingPageOpen=p(this,"landingPageOpen",7),this.landingPageClose=p(this,"landingPageClose",7),this._sanitizer=new o({whiteList:{h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],img:["style","src","width","height"],pre:["style"],p:["id","class","style"],div:["id","class","style","role"],span:["id","class","style","role"],figure:["class","style"],header:["id","class","style","role"]}},!0),this.titleText=void 0,this.subtitleText=void 0,this.descriptionText=void 0,this.entryButtonText=void 0,this.iconImage=void 0,this.iconImageScale="m",this.iconImageAltText=void 0,this.alignment=g.Center,this.disableTransition=!0,this.backgroundImageSrc=void 0,this.open=!0,this.entryButtonScale="l",this.fontFamily="var(--calcite-sans-family);",this.enableSignIn=void 0,this.portal=void 0,this.oauthappid=void 0}emitToggleEvent(){this.open?this.landingPageOpen.emit():this.landingPageClose.emit()}async componentWillRender(){await this.checkEnableSignIn()}render(){let n=this.renderLandingPageContent();return t(d,{key:"8d2f9b0895fcd2f570d645fd5dbab3aaff9e9a45"},n)}renderLandingPageContent(){let n=this.open?"":this.disableTransition?` ${a.closedNoTransition}`:` ${a.closed}`,e=this.getAlignmentClass(),i=this.disableTransition?` ${a.removeTransition}`:"",s=this.getContentStyle();return t("div",{style:s,class:`${a.BASE}${e}${n}${i}`},t("div",{class:a.backgroundAction},t("slot",{name:"background-action"})),t("div",{class:a.contentContainer},this.renderIconImage(),this.renderTitleText(),this.renderSubtitleText(),this.renderDescriptionText()),this.renderEntryButtonContainer())}renderEntryButtonContainer(){return this.enableSignIn?this.renderLandingPageSignIn():t("div",{class:a.buttonContainer},this.renderEntryButton(),t("slot",{name:"secondary-action"}))}renderLandingPageSignIn(){return t("instant-apps-sign-in",{type:"landingPage",landingPage:!0,portal:this.portal,oauthappid:this.oauthappid,closeLandingPage:this.closeLandingPage.bind(this)})}renderIconImage(){return this.iconImage?t("img",{class:`${a.iconImage}${this.getIconImageScale()}`,src:this.iconImage,alt:this.iconImageAltText}):null}renderTitleText(){return t("h1",{class:a.titleText},this.titleText)}renderSubtitleText(){return t("span",{class:a.subtitleText},this.subtitleText)}renderDescriptionText(){return t("p",{class:a.descriptionText,innerHTML:this._sanitizer?.sanitize(this.descriptionText)??""})}renderEntryButton(){return t("calcite-button",{class:a.entryButton,onClick:this.closeLandingPage.bind(this),scale:this.entryButtonScale,appearance:"outline-fill"},this.entryButtonText?this.entryButtonText:"Enter")}closeLandingPage(){this.open=!1}getAlignmentClass(){return` ${a.alignment}${this.alignment}`}getIconImageScale(){let{iconImageScale:n}=this,{s:e,m:i,l:s}=a.iconImageScale;return n==="l"?s:n==="s"?e:i}getContentStyle(){let n=l(this.fontFamily);return this.backgroundImageSrc?{fontFamily:n,backgroundSize:"cover",backgroundImage:`url("${this.backgroundImageSrc}")`,backgroundRepeat:"no-repeat",backgroundPosition:"center"}:{fontFamily:n}}async checkEnableSignIn(){await new Promise(n=>{if(this.enableSignIn){let e=localStorage.getItem("signing-in")?Number(localStorage.getItem("signing-in")):null;e!=null&&((Date.now()-e)/(60*1e3)<2&&(this.open=!1),localStorage.removeItem("signing-in"))}n(null)})}get el(){return c(this)}static get watchers(){return{open:["emitToggleEvent"]}}};m.style=h;export{m as instant_apps_landing_page};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250623 */
4
- import{a as O}from"./T3BNNVGE.js";import{e as _}from"./X3ACNAG7.js";import{a as l,f as p}from"./SQ5ORY7B.js";import"./BWFAFVTV.js";import"./LN76EWLU.js";function C(e,a){let i=[];return O(e,(t,c)=>(c.split(".").pop()===a&&i.push(t),t)),i.filter(p)}function E(e){return C(e,"scope").map(a=>a.split("/")[2]).filter(p)}function h(e,a){let i=l(e);return i.required&&(i.required=[...i.required].filter(t=>a.includes(t))),i.properties&&Object.keys(i.properties).forEach(t=>{a.indexOf(t)===-1&&delete i.properties[t]}),i.allOf&&(i.allOf=i.allOf.map(t=>h(t,a))),i.if&&(i.if=h(i.if,a)),i.then&&(i.then=h(i.then,a)),i.else&&(i.else=h(i.else,a)),i}function w(e,a){let i=E(a);return e=h(e,i),e}function q(e){return e&&e.split(":")[2]}async function G(e,a,i,t){let c=q(a),r,u,s,m,d;switch(c){case"stat":s=import("./2P7REDDK.js"),m={"hub:card:stat":()=>import("./UVD5E6HI.js")}[a],await Promise.all([s,m()]).then(async([f,o])=>{let{MetricSchema:n}=f;r=l(n),u=await o.buildUiSchema(e,i,t),o.buildDefaults&&(d=o.buildDefaults(e,i,t))});break;case"follow":s=import("./DKLZGDVT.js"),m={"hub:card:follow":()=>import("./BVIK4NG7.js")}[a],await Promise.all([s,m()]).then(([f,o])=>{let{FollowSchema:n}=f;r=l(n),u=o.buildUiSchema(e,i,t)});break;case"eventGallery":s=import("./IIAJ3FXH.js"),m=import("./RSKDVNF2.js");let[{EventGalleryCardSchema:g},{buildUiSchema:b}]=await Promise.all([s,m]);r=l(g),u=await b(e,i,t);break}return r=w(r,u),Promise.resolve({schema:r,uiSchema:u})}var V=(e,a)=>{var i;let t=l((i=e.properties)===null||i===void 0?void 0:i._slug);if(!t)return e;let{orgUrlKey:c}=a;t.maxLength=_(c);let r=l(e.allOf)||[],{pattern:u}=t;delete t.pattern;let{id:s}=a;r.push({if:{properties:{_slug:{minLength:1}}},then:{properties:{_slug:{pattern:u}}}},{if:{properties:{_slug:{pattern:u}}},then:{properties:{_slug:{isUniqueSlug:{id:s,orgUrlKey:c}}}}});let m=l(e);return m.properties._slug=t,m.allOf=r,m};async function L(e,a,i,t){let c=a.split(":")[1],r,u,s;switch(c){case"site":let{getSiteSchema:m}=await import("./7MNDBX3N.js");r=m(i.id);let d=await{"hub:site:edit":()=>import("./6YCECILW.js"),"hub:site:create":()=>import("./KTWVZXWG.js"),"hub:site:followers":()=>import("./TBXBQGOD.js"),"hub:site:discussions":()=>import("./QW57LRAI.js"),"hub:site:settings":()=>import("./MHLISDNL.js")}[a]();u=await d.buildUiSchema(e,i,t),d.buildDefaults&&(s=await d.buildDefaults(e,i,t));break;case"discussion":let{DiscussionSchema:g}=await import("./R7RMLDFT.js");r=l(g);let b=await{"hub:discussion:edit":()=>import("./M7AHR77N.js"),"hub:discussion:create":()=>import("./TEXE6RKM.js"),"hub:discussion:settings":()=>import("./UTN75OQB.js"),"hub:discussion:settings:discussions":()=>import("./BUZTO5KI.js")}[a]();u=await b.buildUiSchema(e,i,t),b.buildDefaults&&(s=await b.buildDefaults(e,i,t));break;case"channel":let{ChannelSchema:f}=await import("./VJO7RQBS.js");r=l(f);let o=await{"hub:channel:edit":()=>import("./UZOKFYTW.js"),"hub:channel:create":()=>import("./VVBMRLMX.js")}[a]();u=await o.buildUiSchema(e,i,t),o.buildDefaults&&(s=await o.buildDefaults(e,i,t));break;case"project":let{ProjectSchema:n}=await import("./L3SQYQFL.js");r=l(n);let v=await{"hub:project:edit":()=>import("./FHBRZBBQ.js"),"hub:project:create":()=>import("./YEZQBSDN.js"),"hub:project:create2":()=>import("./ZLX6GEY5.js"),"hub:project:metrics":()=>import("./UNT5CJRN.js"),"hub:project:settings":()=>import("./QQ5OOCCM.js")}[a]();u=await v.buildUiSchema(e,i,t),v.buildDefaults&&(s=await v.buildDefaults(e,i,t));break;case"initiative":let{InitiativeSchema:F}=await import("./GQBAHH2L.js");r=l(F);let S=await{"hub:initiative:edit":()=>import("./LIPG5L6R.js"),"hub:initiative:create":()=>import("./R3FACCWV.js"),"hub:initiative:create2":()=>import("./5OMSDGWG.js"),"hub:initiative:metrics":()=>import("./24UWX6TP.js"),"hub:initiative:associations":()=>import("./ZYAIM3E6.js"),"hub:initiative:settings":()=>import("./LXLKGGXS.js")}[a]();u=await S.buildUiSchema(e,i,t),S.buildDefaults&&(s=await S.buildDefaults(e,i,t));break;case"page":let{PageSchema:I}=await import("./OUC7Y2MM.js");r=l(I);let D=await{"hub:page:edit":()=>import("./MVS6LSDW.js"),"hub:page:create":()=>import("./3GCOFEWA.js")}[a]();u=await D.buildUiSchema(e,i,t),D.buildDefaults&&(s=await D.buildDefaults(e,i,t));break;case"content":let{ContentSchema:K}=await import("./GCWS62KV.js");r=l(K);let U=await{"hub:content:edit":()=>import("./72DQ3ETR.js"),"hub:content:discussions":()=>import("./PPO7R7XD.js"),"hub:content:settings":()=>import("./VGFEXHW7.js")}[a]();u=await U.buildUiSchema(e,i,t),U.buildDefaults&&(s=await U.buildDefaults(e,i,t));break;case"template":let{TemplateSchema:y}=await import("./3TPRN77W.js");r=l(y);let k=await{"hub:template:edit":()=>import("./3BBXMHOQ.js")}[a]();u=await k.buildUiSchema(e,i,t),k.buildDefaults&&(s=await k.buildDefaults(e,i,t));break;case"group":let{GroupSchema:z}=await import("./INCUZCR2.js");r=l(z);let M=await{"hub:group:create:followers":()=>import("./EGTACDCQ.js"),"hub:group:create:association":()=>import("./PQQOH6C6.js"),"hub:group:create:view":()=>import("./3BLJFQNC.js"),"hub:group:create:edit":()=>import("./U6YNCU7Q.js"),"hub:group:create":()=>import("./SHDFP62J.js"),"hub:group:edit":()=>import("./NVGAKN3D.js"),"hub:group:settings":()=>import("./ZRTQB2FT.js"),"hub:group:discussions":()=>import("./2QBIXWDP.js")}[a]();u=await M.buildUiSchema(e,i,t),M.buildDefaults&&(s=await M.buildDefaults(e,i,t));break;case"survey":let{SurveySchema:A}=await import("./BELTJBBP.js");r=l(A),u=await(await{"hub:survey:edit":()=>import("./GHUCQMWM.js"),"hub:survey:settings":()=>import("./C4JHUMJZ.js")}[a]()).buildUiSchema(e,i,t);break;case"event":let B=await{"hub:event:create":()=>import("./UV4YR6X6.js"),"hub:event:edit":()=>import("./W3M4XLN4.js"),"hub:event:registrants":()=>import("./EZZLMB4X.js")}[a](),H=await{"hub:event:create":()=>import("./OXISLKJ3.js"),"hub:event:edit":()=>import("./QFMY752G.js"),"hub:event:registrants":()=>import("./4BY4CJM7.js")}[a]();r=B.buildSchema(),u=await H.buildUiSchema(e,i,t);break;case"initiativeTemplate":let{InitiativeTemplateSchema:J}=await import("./QMD4QM54.js");r=l(J);let j=await{"hub:initiativeTemplate:edit":()=>import("./GECB7XB3.js")}[a]();u=await j.buildUiSchema(e,i,t),j.buildDefaults&&(s=await j.buildDefaults(e,i,t));break;case"user":let{UserSchema:N}=await import("./WHVORWJN.js");r=l(N);let P=await{"hub:user:settings":()=>import("./SPHX5TD7.js")}[a]();u=await P.buildUiSchema(e,i,t),P.buildDefaults&&(s=await P.buildDefaults(e,i,t));break;case"card":let T=await G(e,a,i,t);r=T.schema,u=T.uiSchema,s=T.defaults}return r=w(r,u),r=V(r,i),Promise.resolve({schema:r,uiSchema:u,defaults:s})}async function gi(e,a,i,t){return L(e,a,i,t)}export{gi as getEditorConfig};
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250623 */
4
- import{a as m}from"./NOC7BIF2.js";import"./7HB3CYHC.js";import{a as f,b as I,d as y}from"./E7TRIWDT.js";import"./7YPMNAQW.js";import"./XJYYAXC5.js";import{a as d,b as c}from"./B3BHXIAJ.js";import{a as w}from"./USL4QTWT.js";import{A as o,D as L,c as _,d as a,f as l,n as h,p as g,y as u,z as p}from"./QCIMV4RH.js";import"./LN76EWLU.js";var v=_`@layer{/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */:host{display:block}.map-layer-picker-container{width:100%;align-items:center}.map-layer-picker{position:relative;width:100%;display:inline-block}.padding-bottom-1{padding-bottom:1rem}.layer-picker-dropdown{height:100%;width:100%}.max-width-350{max-width:350px}.height-100{height:100%}.disabled{cursor:default!important;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.no-bottom-margin{--calcite-label-margin-bottom: 0px}.layer-picker-label-container{align-items:center;display:inline-flex;height:100%;padding-inline-start:1rem;padding-inline-end:1rem}.padding-start-1{padding-inline-start:1rem}.cursor-default{cursor:default}.popover-list{overflow:auto;width:250px}}`,b=class extends u{constructor(){super(...arguments),this.appearance="transparent",this.defaultLayerId="",this.display="inline-block",this.enabledLayerIds=[],this.isMobile=!1,this.showOnlyUpdatableLayers=!1,this.placeholderIcon="",this.selectedIds=[],this.scale="m",this.showTables=!1,this.showTablesDisabled=!1,this.showSingleLayerAsLabel=!1,this.type="select",this.showLayersListInPopover=!1,this.referenceElement="",this.force=!1,this._hasMultipleLayers=!0,this._hasValidLayers=!0,this._isDropdownOpen=!1,this.ids=[],this.selectedName="",this._translations=w({name:"map-layer-picker",blocking:!0}),this.defaultLayerHonored=!1,this._layerSelectElement=d(),this._layerComboboxElement=d(),this._skipEditCheck=!1,this._popover=d(),this.beforeLayerSelectionChange=h(),this.idsFound=h(),this.noLayersFound=h(),this.layerSelectionChange=h()}static{this.properties={appearance:1,defaultLayerId:1,display:1,enabledLayerIds:0,height:9,isMobile:5,mapView:0,showOnlyUpdatableLayers:5,placeholderIcon:1,selectedIds:0,scale:1,showTables:5,showTablesDisabled:5,showSingleLayerAsLabel:5,type:1,showLayersListInPopover:5,referenceElement:1,force:16,_hasMultipleLayers:16,_hasValidLayers:16,_isDropdownOpen:16,ids:16,selectedName:16,_translations:16}}static{this.styles=v}static{this.shadowRootOptions=g}willUpdate(e){e.has("mapView")&&this.hasUpdated&&this.mapViewWatchHandler(),e.has("type")&&(this._layerElement=this.type==="select"?this._layerSelectElement:this._layerComboboxElement),e.has("selectedIds")&&this.hasUpdated&&this.mapView&&(async()=>{let t=await y(this.mapView,this.selectedIds[0]);this.selectedName=t?.title??""})(),e.has("enabledLayerIds")&&this.hasUpdated&&this.enabledLayerIdsWatchHandler()}async enabledLayerIdsWatchHandler(){let e=this.selectedIds.length>0&&!this.enabledLayerIds.includes(this.selectedIds[0]),t=this.enabledLayerIds.some(s=>!this.ids.includes(s));e?this.mapViewWatchHandler():t&&this._setLayers(),this._hasMultipleLayers=this.enabledLayerIds.length>1}async mapViewWatchHandler(){await this._setLayers(),this.ids?.length>0?(this._hasValidLayers=!0,this._hasMultipleLayers=this.ids.length>1,await this._setSelectedLayer(this.ids[0])):(this._hasValidLayers=!1,this.noLayersFound.emit())}async setLayerById(e,t=!1){this._skipEditCheck=t,!t||t&&e!==this.selectedIds[0]?this._setSelectedLayer(e):t&&e===this.selectedIds[0]&&(this.force=!0,setTimeout(()=>{this.force=!1},10)),this._skipEditCheck=!1}async setLayerByIds(e,t=!1){this._skipEditCheck=t,this._layerSelectionChange(e),this._skipEditCheck=!1}async updateLayer(){await this._setSelectedLayer(this.ids[0])}async load(){await this._setLayers(),this.ids?.length>0?(this._hasValidLayers=!0,this._hasMultipleLayers=this.ids.length>1,await this._setSelectedLayer(this.ids[0])):(this._hasValidLayers=!1,this.noLayersFound.emit())}render(){let e="map-layer-picker",t=this.height&&this.height>0&&!this.showLayersListInPopover?{height:`${this.height.toString()}px`}:{};return t={...t,display:this.display},a`<div class="map-layer-picker-container" style=${o(t)}><div class="map-layer-picker" style=${o(t)}>${this._hasValidLayers?!this._hasMultipleLayers&&this.showSingleLayerAsLabel?this._getSingleLayerPlaceholder():this.type==="combobox"?this._getCombobox(e):this.type==="select"?this._getSelect(e):this.showLayersListInPopover?this._getMapLayerPopOver():this._getDropdown(e):this._getInvalidPlaceholder()}</div></div>`}loaded(){if(this.ids?.length>0||this.selectedIds?.length===1){let e=this.selectedIds.length===1?this.selectedIds[0]:this.ids[0];this.type==="select"?this._layerElement.value&&(this._layerElement.value.value=e):this.type==="dropdown"&&(this.selectedName=this._layerNameHash&&Object.keys(this._layerNameHash).indexOf(e)>-1?this._layerNameHash[e].name:this._tableNameHash&&Object.keys(this._tableNameHash).indexOf(e)>-1?this._tableNameHash[e].name:"")}this._popover.value?.addEventListener("calcitePopoverOpen",()=>{this.el.querySelector("calcite-dropdown-item[selected]").setFocus()})}_getMapLayerPopOver(){let e=this.height&&this.height>0?{height:`${this.height.toString()}px`}:{};return a`<calcite-popover auto-close focus-trap-disabled .label=${this.referenceElement} placement=auto .referenceElement=${this.referenceElement} scale=s ${c(this._popover)}><div class=popover-list style=${o(e)}>${this._getMapLayerOptions()}</div></calcite-popover>`}_getInvalidPlaceholder(){return a`<div><calcite-notice class="height-100" icon=exclamation-mark-triangle id=no-valid-layers kind=danger open><div slot=message>${this._translations.noLayersFound}</div></calcite-notice><calcite-tooltip .label=${this._translations.enableEditUpdate} placement=bottom reference-element=no-valid-layers><span>${this._translations.enableEditUpdate}</span></calcite-tooltip></div>`}_getSingleLayerPlaceholder(){let e=this._getItemTypeIcon();return a`<div class="layer-picker-label-container cursor-default"><calcite-icon .icon=${e} scale=s></calcite-icon><calcite-label class="no-bottom-margin padding-start-1">${this.selectedName}</calcite-label></div>`}_getSelect(e){return a`<calcite-select id=${e??l} label @calciteSelectChange=${()=>this._layerSelectionChange()} .scale=${this.scale} ${c(this._layerElement)}>${this._getMapLayerOptions()}</calcite-select>`}_getCombobox(e){return a`<calcite-combobox clear-disabled id=${e??l} label @calciteComboboxChange=${()=>this._layerSelectionChange()} .placeholderIcon=${this.placeholderIcon} .scale=${this.scale} selection-mode=single ${c(this._layerElement)}>${this._getMapLayerOptions()}</calcite-combobox>`}_getDropdown(e){return a`<calcite-dropdown class="layer-picker-dropdown" @calciteDropdownBeforeClose=${()=>this._isDropdownOpen=!1} @calciteDropdownBeforeOpen=${()=>this._isDropdownOpen=!0}>${this.isMobile?this._getDropdownButton():this._getActionDropdownButton(e)}<calcite-dropdown-group selection-mode=single>${this._getMapLayerOptions()}</calcite-dropdown-group></calcite-dropdown>`}_getActionDropdownButton(e){return a`<calcite-action id=${e??l} slot=trigger text>${this._getDropdownButton()}</calcite-action>`}_getDropdownButton(){let e=this._getItemTypeIcon(),t=this.isMobile?"":"max-width-350",s=this.isMobile?"trigger":"",i=this._isDropdownOpen?"chevron-up":"chevron-down";return a`<calcite-button alignment=icon-end-space-between .appearance=${this.appearance} class=${p(t)} .iconEnd=${i} .iconStart=${e} kind=neutral slot=${s??l} width=full><div>${this.selectedName}</div></calcite-button>`}_getItemTypeIcon(){let e="layers";if(this.selectedIds.length>0&&this._layerNameHash){let t=this.selectedIds[0];e=Object.keys(this._layerNameHash).indexOf(t)>-1?"layers":"table"}return e}_getMapLayerOptions(){return this.ids.reduce((e,t)=>(this._validLayer(t)?e.push(this._getItem(t,"layer")):this._validTable(t)&&e.push(this._getItem(t,"table")),e),[])}_getItem(e,t){let s=t==="layer"&&this._layerNameHash?this._layerNameHash[e]:this._tableNameHash?this._tableNameHash[e]:void 0,i=this.showOnlyUpdatableLayers?s&&!s.supportsUpdate:!1,r=s?.name,n=this.selectedIds.indexOf(e)>-1;return this.type==="combobox"?a`<calcite-combobox-item .disabled=${i} .selected=${n} .textLabel=${r} .value=${e}></calcite-combobox-item>`:this.type==="select"?a`<calcite-option .disabled=${i} .label=${r} .selected=${n} .value=${e}></calcite-option>`:this.force&&n||!this.force?a`<calcite-dropdown-group class=${p(i?"disabled":"")} id=${r??l} .selectionMode=${i?"none":"single"}><calcite-dropdown-item .disabled=${!!(t==="table"&&this.showTablesDisabled)} .iconStart=${t} @click=${i?void 0:()=>void this._setSelectedLayer(e)} .selected=${n}>${r}</calcite-dropdown-item></calcite-dropdown-group>`:null}async _setSelectedLayer(e){if(e!==this.selectedIds[0]){let t;if(this.defaultLayerId&&!this.defaultLayerHonored&&(t=this._getLayerFromHash(this.defaultLayerId),this.defaultLayerHonored=t!==void 0,e=this.defaultLayerHonored?this.defaultLayerId:e),t=t||this._getLayerFromHash(e),!this._skipEditCheck&&this.beforeLayerSelectionChange.emit({currentId:this.selectedIds[0],newId:e,ref:this.el}).defaultPrevented)return;this.selectedName=t?.name,this.selectedIds=[e],this._popover.value&&(this._popover.value.open=!1),this.layerSelectionChange.emit(this.selectedIds)}else{let t=this.mapView&&await y(this.mapView,this.selectedIds[0]);this.selectedName=t?.title||""}}_getLayerFromHash(e){return this._layerNameHash&&Object.keys(this._layerNameHash).indexOf(e)>-1?this._layerNameHash[e]:this._tableNameHash&&Object.keys(this._tableNameHash).indexOf(e)>-1?this._tableNameHash[e]:void 0}async _setLayers(){if(this.mapView){await this._initLayerTableHash();let e=[];this._layerNameHash&&(e=this.showOnlyUpdatableLayers?this._getEditableIds(this._layerNameHash):Object.keys(this._layerNameHash));let t=[];this._tableNameHash&&(t=this.showTables?this.showOnlyUpdatableLayers?this._getEditableIds(this._tableNameHash):Object.keys(this._tableNameHash):[]),this.ids=[...e.reverse().filter(s=>this.enabledLayerIds?.length>0?this.enabledLayerIds.reverse().indexOf(s)>-1:!0),...t.reverse().filter(s=>this.enabledLayerIds?.length>0?this.enabledLayerIds.reverse().indexOf(s)>-1:!0)],this.idsFound.emit({layerIds:e,tableIds:t})}}_getEditableIds(e){return Object.keys(e).filter(t=>e[t].supportsUpdate)}async _initLayerTableHash(){this._layerNameHash=this.mapView&&await f(this.mapView,this.showOnlyUpdatableLayers),this._tableNameHash=this.showTables&&this.mapView?await I(this.mapView,this.showOnlyUpdatableLayers):{}}_validLayer(e){let t=this._layerNameHash&&this._layerNameHash[e]?.name;return t!==void 0&&Object.keys(m.managedLayers).indexOf(t)<0&&(this.enabledLayerIds?.length>0?this.enabledLayerIds.indexOf(e)>-1:!0)}_validTable(e){let t=this._tableNameHash&&this._tableNameHash[e]?.name,s=t&&this.showTables;return s?m.managedTables.indexOf(t)<0&&(this.enabledLayerIds?.length>0?this.enabledLayerIds.indexOf(e)>-1:!0):s!==void 0}_layerSelectionChange(e){if(this._layerElement.value){let t=e||(Array.isArray(this._layerElement.value.value)?this._layerElement.value.value:[this._layerElement.value.value]);if(JSON.stringify(t)!==JSON.stringify([""])){if(!this._skipEditCheck&&this.beforeLayerSelectionChange.emit({currentIds:this.selectedIds,newIds:t,ref:this.el}).defaultPrevented)return;this.selectedIds=t,this.layerSelectionChange.emit(this.selectedIds)}}}};L("map-layer-picker",b);export{b as MapLayerPicker};
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250623 */
4
- import{a as E}from"./N6445PSV.js";import c from"./LRJRAHXF.js";import{a as M}from"./CDLBGK6Z.js";import a from"./HRKK2RN7.js";import{a as C,b as T,e as A}from"./WP6TBFL4.js";import{a as k,b as L,c as P}from"./7SP3JV67.js";import{m as h,n as b,o as S,s as R}from"./D5ZMKHVZ.js";import"./22P43VO7.js";import"./T3BNNVGE.js";import"./42ZHF2HE.js";import"./3RCSEW37.js";import"./EA5T3ZAJ.js";import"./VYUXJLFU.js";import"./X3ACNAG7.js";import"./VPEO2Q4J.js";import"./B23CHB5L.js";import"./OAOS4ZIR.js";import"./JF2H7IOR.js";import"./SQ5ORY7B.js";import"./U2DAHKOK.js";import"./VS53IXEC.js";import{k as $}from"./ABFFIPZI.js";import"./ZEI7MQ2T.js";import"./RK7SEZWK.js";import"./BWFAFVTV.js";import"./7YPMNAQW.js";import{a as _,b as g}from"./B3BHXIAJ.js";import{a as x}from"./USL4QTWT.js";import{B as p,D as w,c as y,d as s,n as m,w as u,y as f,z as n}from"./QCIMV4RH.js";import"./LN76EWLU.js";export default $arcgis.t(([{a:I},U])=>{var D=y`/** @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}.flex-direction-row{flex-direction:row}.flex-direction-column{flex-direction:column}.cursor-default{cursor:default}.border-bottom{border-bottom-color:var(--calcite-color-border-1);border-bottom-width:1px;border-bottom-style:solid}.row-margin-2{margin-inline-start:2rem;margin-inline-end:2rem}calcite-label{--calcite-label-margin-bottom: 0px}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.padding-top-1-2{padding-top:.5rem}.padding-end-1{padding-inline-end:1rem}.padding-end-2{padding-inline-end:2rem}.align-self-center{align-self:center}.align-items-center{align-items:center}.width-330{width:330px}.card-group{overflow:hidden;padding:.5rem}calcite-card{width:400px}@media (max-width: 800px){calcite-card{width:calc(50% - .5rem)}}@media (max-width: 400px){calcite-card{width:100%}}.max-height-240{max-height:240px}.max-height-300{max-height:300px}.scrollable-section{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.scrollable-section::-webkit-scrollbar{display:none}.display-none{display:none}`,v=class extends f{constructor(){super(),this.open=!1,this._hideScreenshotsScroll=!1,this._hideYouMayAlsoLikeScroll=!1,this.isMobile=!1,this._templates=[],this._translations=x({name:"solution-details-panel",blocking:!0}),this._allCards=[],this._authContextProvider=u({context:P}),this._configureLearnMore="",this._customDeploymentMappings={},this._isMobileContextProvider=u({context:L}),this._privileges=[],this._regexFsUrl="https?:\\/\\/.+FeatureServer\\b",this._regexID="\\b[0-9A-F]{32}\\b",this._screenshotsBaseHeight=240,this._screenshotsElement=_(),this._userOptions=[],this._userSessionContextProvider=u({context:k}),this._youMayAlsoLikeElement=_(),this._youMayAlsoLikeBaseHeight=300,this.templatesFetched=m(),this.itemPropertiesFetched=m(),this.listenOn(window,"detailsCardSelected",this._detailsCardSelected),this.listenOn(window,"allCardsFetched",this._allCardsFetched)}static{this.properties={card:0,open:5,_hideScreenshotsScroll:16,_hideYouMayAlsoLikeScroll:16,isMobile:16,_itemProperties:16,_templates:16,_translations:16}}static{this.styles=D}async connectedCallback(){super.connectedCallback(),this._mediaQuery=window.matchMedia("(max-width: 800px)"),this.listenOn(this._mediaQuery,"change",this._mediaQueryChange)}async load(){let e=new U(C,T,A);await e.init(),e.SignedIn||e.signIn(),this._authContextProvider.setValue(e),e.RestUserSession&&this._userSessionContextProvider.setValue(e.RestUserSession)}loaded(){this._resizeObserver=new ResizeObserver(async()=>{this._onResize()}),this._screenshotsElement.value&&this._resizeObserver.observe(this._screenshotsElement.value)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver?.disconnect()}render(){let e="border-bottom row-margin-2 padding-bottom-1",t=this._getRelatedArticles(),i=this._getYouMayAlsoLikeCards();return s`<calcite-panel><div class=${`${e} padding-top-1`}>${this._getSolutionRow()}</div><div class=${n(e)}>${this._getScreenshotsRow()}</div><div class=${n(e)}>${this._getDescriptionRow()}</div><div class=${n(e)}>${this._getRequirementsRow()}</div><div class=${n(e)}>${this._getInformationProductsRow()}</div><div class=${n(e)}>${this._getReleaseNotesRow()}</div>${t.length>0?s`<div class=${n(e)}>${this._getRelatedArticlesRow(t)}</div>`:""}${i.length>0?s`<div class=${n(e)}>${this._getYouMayAlsoLikeRow(i)}</div>`:""}</calcite-panel>`}_getSolutionRow(){let e=this.card?.thumbnailUrl.replace(/w=\d+/,"w=330"),t=this._itemProperties?.demoURL||"";return s`<div class=" display-flex flex-direction-row"><div class="padding-end-2"><img alt=${this.card?.title??p} class="width-330" src=${e??p}></div><div class="display-flex flex-direction-column"><div class="display-flex flex-direction-row"><h3 class="padding-end-1"><calcite-label scale=l>${this.card?.title}</calcite-label></h3><calcite-chip class="align-self-center" kind=brand .label=${this._translations.new} scale=s>${this._translations.new}</calcite-chip></div><span>${this.card?.snippet}</span><div class="display-flex flex-direction-row padding-top-1"><calcite-button class="padding-end-1" icon-end=arrow-bold-right icon-flip-rtl=end @click=${()=>this._deploy()}>${this._translations.deploy}</calcite-button><calcite-button appearance=outline class="padding-end-1" icon-end=video @click=${()=>this._openUrl(t)}>${this._translations.watchDemo}</calcite-button><calcite-button appearance=outline class="padding-end-1" icon-end=share @click=${()=>this._share()}>${this._translations.share}</calcite-button></div></div></div>`}_getScreenshotsRow(){let e=this._hideScreenshotsScroll?"display-none":"";return s`<calcite-panel><div class="display-flex flex-direction-column">${this._getHeader(this._translations.screenshots)}<div class="scrollable-section max-height-240" @scroll=${()=>this._onScreenshotsScroll()} ${g(this._screenshotsElement)}>${this._getScreenshots()}</div><calcite-fab appearance=outline-fill class=${`align-self-center ${e}`} icon=arrow-down kind=inverse @click=${()=>{this._scrollSubsection(this._screenshotsBaseHeight,this._screenshotsElement.value)}} .text=${this._translations.showMore} text-enabled></calcite-fab></div></calcite-panel>`}_getScreenshots(){let e=this._itemProperties?.preview||[];return s`<calcite-card-group class="card-group" .label=${this._translations.screenshots}>${e.map(t=>s`<calcite-card .label=${t.alt}><img alt=${t.alt??p} slot=thumbnail src=${this._getItemResourceUrl(this.card?.id||"",t.name)??p}></calcite-card>`)}</calcite-card-group>`}_scrollSubsection(e,t){let i=t.scrollHeight,l=t.scrollTop;e<=l&&(e=l+e),t.scrollTop=i>e?e:i}_getDescriptionRow(){return s`<div class="display-flex flex-direction-column">${this._getHeader(this._translations.description)}<p .innerHTML=${this.card?.description??""}></p><div class="display-flex flex-direction-row">${this.card?.learnMoreUrl?s`<calcite-link class="padding-end-2" icon-end=share @click=${()=>{this._openUrl(this.card?.learnMoreUrl||"")}}>${this._translations.learnHowtoUse}</calcite-link>`:""}${this._itemProperties?.dataDictionaryURL?s`<calcite-link icon-end=share @click=${()=>{this._openUrl(this._itemProperties?.dataDictionaryURL||"")}}>${this._translations.dataDictionary}</calcite-link>`:""}</div></div>`}_getRequirementsRow(){let e=this._getRequirements();return s`<div class="display-flex flex-direction-column">${this._getHeader(this._translations.requirements)}<span>${this.card?.title?this._translations.requirementsSubText.replace("{{solutionTitle}}",this.card.title):""}</span>${e.map(t=>s`<div class="display-flex flex-direction-row padding-top-1-2"><calcite-icon icon=bullet-point></calcite-icon><calcite-label class="align-items-center">${t}</calcite-label></div>`)}</div>`}_getRequirements(){return this._itemProperties?.requirements||[]}_getInformationProductsRow(){return s`<div class="display-flex flex-direction-column">${this._getHeader(this._translations.informationProducts)}<span>${this.card?.title?this._translations.informationProductsSubText.replace("{{solutionTitle}}",this.card.title):""}</span><calcite-table bordered caption class="padding-top-1">${this._getInformationTableHeaderRow()}${this._getInformationTableRows()}</calcite-table><p>${this._translations.informationProductsFooterText}</p></div>`}_getInformationTableHeaderRow(){return s`<calcite-table-row slot=table-header><calcite-table-header .heading=${this._translations.item}></calcite-table-header><calcite-table-header .heading=${this._translations.description}></calcite-table-header><calcite-table-header .heading=${this._translations.minimumUserType}></calcite-table-header></calcite-table-row>`}_getInformationTableRows(){return(this._itemProperties?.infoProducts||[]).map(e=>s`<calcite-table-row><calcite-table-cell>${e.item}</calcite-table-cell><calcite-table-cell>${e.description}</calcite-table-cell><calcite-table-cell>${e.userType}</calcite-table-cell></calcite-table-row>`)}_getReleaseNotesRow(){return s`<div class="display-flex flex-direction-column">${this._getHeader(this._translations.releaseNotes)}<span>${this._translations.releaseNotesSubText}</span><calcite-table bordered caption class="padding-top-1">${this._getReleaseNotesTableHeaderRow()}${this._getReleaseNotesTableRows()}</calcite-table></div>`}_getReleaseNotesTableHeaderRow(){return s`<calcite-table-row slot=table-header><calcite-table-header .heading=${this._translations.version}></calcite-table-header><calcite-table-header .heading=${this._translations.description}></calcite-table-header></calcite-table-row>`}_getReleaseNotesTableRows(){return(this._itemProperties?.releaseNotes||[])?.map(e=>s`<calcite-table-row><calcite-table-cell>${e.version}</calcite-table-cell><calcite-table-cell alignment=end>${e.description.map(t=>s`<div class="display-flex flex-direction-row"><calcite-icon icon=bullet-point></calcite-icon><calcite-label class="align-items-center">${t.note}</calcite-label></div>`)}</calcite-table-cell></calcite-table-row>`)}_getRelatedArticlesRow(e){return s`<div class="display-flex flex-direction-column">${this._getHeader(this._translations.relatedArticles)}<div class="display-flex flex-direction-row">${e.map(t=>{console.log(t),s`<solution-article-card></solution-article-card>`})}</div></div>`}_getRelatedArticles(){return[]}_getYouMayAlsoLikeRow(e){let t=this._hideYouMayAlsoLikeScroll?"display-none":"";return s`<div class="display-flex flex-direction-column">${this._getHeader(this._translations.youMayAlsoLike)}<div class="scrollable-section max-height-300" @scroll=${()=>this._onYouMayAlsoLikeScroll()} ${g(this._youMayAlsoLikeElement)}><div class="display-flex flex-direction-row "><calcite-card-group class="card-group" .label=${this._translations.youMayAlsoLike}>${e.map(i=>s`<solution-details-card .card=${i}></solution-details-card>`)}</calcite-card-group></div></div><calcite-fab appearance=outline-fill class=${`align-self-center ${t}`} icon=arrow-down kind=inverse @click=${()=>{this._scrollSubsection(this._youMayAlsoLikeBaseHeight,this._youMayAlsoLikeElement.value)}} .text=${this._translations.showMore} text-enabled></calcite-fab></div>`}_getYouMayAlsoLikeCards(){let e=this._itemProperties?.relatedSolutions||[];return this._allCards.filter(t=>e.indexOf(t.deployCommonId)>-1)}_getHeader(e){return s`<h3><calcite-label scale=l>${e}</calcite-label></h3>`}_deploy(){let e="solutionDeployDialog",t=document.getElementById(e),i=!1;t||(t=document.createElement("solution-deploy-dialog"),t.id=e,i=!0),t.card=this.card,i&&document.body.appendChild(t),t.open=!0}_openUrl(e){window.open(e,"_blank")}_share(){alert("Share need to look at this more. I believe instant apps social share requires mapView")}async _detailsCardSelected(e){this.card=e.detail,this._onResize(),await this._getItemData()}async _getItemData(){let e=this._userSessionContextProvider.value,t=await R(this.card.id,e),i=await $(this.card.id,e);this._itemProperties=i.properties,this.itemPropertiesFetched.emit(this._itemProperties);let l=E(t,this.card.typeKeywords,this._authContextProvider.value);this._privileges=e.username?l:[],console.log(this._privileges),(t.params?this.formatParams(t.params):Promise.resolve([])).then(r=>{this._userOptions=r,console.log(this._userOptions)}),this._templates=t.templates,this.templatesFetched.emit(t.templates)}formatParams(e){let t=this._userSessionContextProvider.value,i=[],l=e?Object.keys(e):[],r={id:"",props:[],accordionDisplay:!1};if(l.length>0){let o=[];return l.forEach(d=>{let c=e[d];c.valueType&&c.valueType.toLowerCase()==="itemid"&&o.push(this._findExistingItem(d,"Feature Service",t.username||""))}),Promise.all(o).then(d=>{let c={};return d.forEach(a=>{if(a.query&&a.results&&a.results.length>0){let H=a.query.split(" ")[0].replace("typekeywords:source-","");c[H]={resultId:a.results[0].id,response:a.results[0]}}}),l.forEach(a=>{if(a==="serviceLearnMore"){this._configureLearnMore=e[a],alert(this._configureLearnMore),delete e[a];return}e[a].enterpriseIDMapping&&(this._customDeploymentMappings[a]=e[a].enterpriseIDMapping),r.id=a,c[a]&&(e[a].existingItemId=c[a].resultId,this.updateUserProp(e[a],c[a].response)),this.updateOption(e[a],r,a)}),i.push(r),Promise.resolve(i)}).catch(()=>Promise.resolve([]))}else return Promise.resolve([])}_findExistingItem(e,t,i){let l=this._userSessionContextProvider.value;return M(`typekeywords:source-${e} type:${t} owner:${i}`,l)}updateUserProp(e,t){let i=e.itemType.toLowerCase()==="feature service",l=new RegExp(i?this._regexFsUrl:e.itemType,"i"),r=b(t,i?"url":"type","")||"",o=r!==""&&l.test(r);return e.responseValue=o?r:"",e.name=o&&h(t,"name")||"",e.title=o&&h(t,"title")||"",e.itemType=o?h(t,"type"):e.itemType,e.validId=o,e.itemUrl=this._getItemUrl(t.id),o}updateOption(e,t,i){let l=e.default||"",r=typeof l,o=l.toString();this._setFeatureServiceProps(e);let d=this.getValidation(e,o);t.props.push({id:i,outType:r,prop:i,itemType:e.itemType||"",responseValue:e.responseValue||"",label:e.label||"",choices:e.choices||[],valueType:e.valueType.toLowerCase(),attributes:e.attributes||{},value:e.existingItemId&&e.valueType.toLowerCase()==="itemid"?e.existingItemId:o,default:o,srSearchText:o,autoSelect:o!=="",...d,loading:!1,validId:!0,tooltip:e.tooltip||"",name:e.name||"",title:e.title||"",itemUrl:e.itemUrl||""})}_getItemUrl(e){let t=this._getOrgUrl(),i=I([{k:"id",v:e}])||"";return t?`${t}/home/item.html${i}`:""}_getItemResourceUrl(e,t){let i=this._getOrgUrl();return i?`${i}/sharing/rest/content/items/${e}/resources/${t}`:""}_getOrgUrl(){let e=this._authContextProvider.value;return e?.PortalSubset?.orgUrl||e?.PortalUrl||""}_setFeatureServiceProps(e){e.valueType&&e.valueType.toLowerCase()==="itemid"&&S(e,"attributes.required","true")}getValidation(e,t){let i="",l=h(e,"validation.message")||"",r=!0;return h(e,"attributes.required")==="true"&&(i=b(e,"validation.expression","\\S{1,}"),r=new RegExp(i).test(t)),e.valueType&&e.valueType.toLowerCase()==="itemid"&&(i=this._regexID,l=this._translations.configure.invalidID),{valid:r,validation:{expression:i,message:l}}}_mediaQueryChange(e){this.isMobile=e.matches,this._isMobileContextProvider.setValue(this.isMobile)}_allCardsFetched(e){this._allCards=e.detail}_onResize(){this._hideScreenshotsScroll=(this._screenshotsElement.value?.scrollHeight||0)<=this._screenshotsBaseHeight+2,this._hideYouMayAlsoLikeScroll=(this._youMayAlsoLikeElement.value?.scrollHeight||0)<=this._youMayAlsoLikeBaseHeight+2}_onScreenshotsScroll(){let e=(this._screenshotsElement.value?.scrollTop||0)+this._screenshotsBaseHeight;e===this._screenshotsElement.value?.scrollHeight&&!this._hideScreenshotsScroll?this._hideScreenshotsScroll=!0:e<(this._screenshotsElement.value?.scrollHeight||0)&&(this._hideScreenshotsScroll=!1)}_onYouMayAlsoLikeScroll(){let e=(this._youMayAlsoLikeElement.value?.scrollTop||0)+this._youMayAlsoLikeBaseHeight;e===this._youMayAlsoLikeElement.value?.scrollHeight&&!this._hideYouMayAlsoLikeScroll?this._hideYouMayAlsoLikeScroll=!0:e<(this._youMayAlsoLikeElement.value?.scrollHeight||0)&&(this._hideYouMayAlsoLikeScroll=!1)}};w("solution-details-panel",v);return v},a,c)
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250623 */
4
- import{a as n,b as l}from"./B3BHXIAJ.js";import{a as f}from"./USL4QTWT.js";import{A as m,D as b,c as d,d as s,n as r,y as h,z as c}from"./QCIMV4RH.js";import"./LN76EWLU.js";var I=d`/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */:host{display:block;--solutions-theme-foreground-color: var(--calcite-color-foreground-1);width:100%}.width-full{width:100%}.width-26{width:26%!important}.height-full{height:100%}.display-flex{display:flex}.border-bottom-1{border-bottom-width:1px!important;border-width:0px}.border-bottom-2{border-bottom-width:2px!important;border-width:0px}.border-solid{border-style:solid;border-color:var(--calcite-color-border-3)}.border-left-right{border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-border-3)}.action-bar-size{height:51px;width:100%}.map-list{display:flex;flex-direction:column;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-color-background);z-index:1000}.display-none{display:none}.align-center{align-items:center}.adjusted-height{max-height:calc(100% - 68px);overflow-y:auto}.position-absolute{position:absolute}.position-relative{position:relative}`,p=class extends h{constructor(){super(...arguments),this.mapInfos=[],this.isMapLayout=!1,this.showMapListInPopover=!1,this.referenceElement="",this.selectedWebMapId="",this._mapListExpanded=!1,this._translations=f({name:"map-picker",blocking:!0}),this._list=n(),this._loadedId="",this._skipEditCheck=!1,this._popover=n(),this.beforeMapInfoChange=r(),this.mapInfoChange=r()}static{this.properties={mapInfos:0,isMapLayout:5,height:9,showMapListInPopover:5,referenceElement:1,selectedWebMapId:1,_mapListExpanded:16,_translations:16}}static{this.styles=I}willUpdate(e){e.has("mapInfos")&&this.hasUpdated&&this.mapInfosWatchHandler(this.mapInfos,e.get("mapInfos")),e.has("selectedWebMapId")&&this.hasUpdated&&this.selectedWebMapIdWatchHandler(this.selectedWebMapId)}_webMapInfoWatchHandler(e,t){e&&JSON.stringify(e)!==JSON.stringify(t)&&(this._loadedId=e?.id,this.mapInfoChange.emit(e))}async mapInfosWatchHandler(e,t){if(e&&JSON.stringify(e)!==JSON.stringify(t)){let i=this._getWebMapInfo();this._webMapSelected(i)}}async selectedWebMapIdWatchHandler(e){this._loadedId=e}async setMapByID(e,t=!1){this._skipEditCheck=t;let i=this.mapInfos?.filter(o=>o.id===e);e&&i?.length>0&&this._webMapSelected(i[0]),this._skipEditCheck=!1}async close(){this._mapListExpanded&&(this._mapListExpanded=!1)}async toggle(e){this._mapListExpanded=e}render(){return s`${!this.showMapListInPopover&&this._getToolbar()||""}${this.showMapListInPopover?this._getMapListPopover():this._getMapNameList(this._mapListExpanded)}`}loaded(){let e=this._getWebMapInfo();e&&this._webMapSelected(e),this._popover.value?.addEventListener("calcitePopoverOpen",()=>{(this._list.value?.querySelector("calcite-list-item[selected]")).setFocus()})}_getMapPicker(){let e="map-picker-expand-toggle",t=this._mapListExpanded?"chevron-up":"chevron-down";return s`<div class="width-full"><calcite-button alignment=icon-end-space-between appearance=transparent class="width-full height-full" .iconEnd=${t} icon-start=map id=${e} kind=neutral @click=${()=>this._chooseMap()} width=full>${this._getWebMapInfo().name}</calcite-button><calcite-tooltip placement=bottom .referenceElement=${e}><span>${this._translations.switchMap}</span></calcite-tooltip></div>`}_getToolbar(){let e=this.isMapLayout?"border-bottom-1":"border-bottom-2";return s`<div class="display-flex border-left-right"><calcite-action-bar class=${`border-solid action-bar-size ${e}`} expand-disabled layout=horizontal slot=header>${this._getMapPicker()}</calcite-action-bar></div>`}_getMapNameList(e){let t=this.height&&this.height>0&&this.showMapListInPopover?{height:`${this.height.toString()}px`}:{},i=this.showMapListInPopover?"position-relative":"position-absolute",o=this.isMapLayout?"width-26":"width-full",g=this.isMapLayout?"border-bottom-1":"border-bottom-2",u=e?`map-list border-solid ${g} adjusted-height ${o} ${i}`:"display-none";return s`<div class=${c(u)} style=${m(t)}><calcite-list id=mapList label selection-appearance=border selection-mode=single-persist ${l(this._list)}>${this.mapInfos.map(a=>s`<calcite-list-item .label=${a.name} @click=${()=>this._webMapSelected(a)} .selected=${a.id===this._loadedId} .value=${a.id}></calcite-list-item>`)}</calcite-list></div>`}_getMapListPopover(){return s`<calcite-popover auto-close focus-trap-disabled .label=${this.referenceElement} placement=auto .referenceElement=${this.referenceElement} ${l(this._popover)}>${this._getMapNameList(!0)}</calcite-popover>`}_getWebMapInfo(){let e=this.mapInfos.find(t=>this.selectedWebMapId===t.id);if(!e&&this.mapInfos.length>0&&(e=this.mapInfos[0]),!e)throw new Error("No valid web map info available");return e}_webMapSelected(e){let t=this._loadedId;this._loadedId=e.id;let i=!1;this._skipEditCheck?i=!0:this.beforeMapInfoChange.emit({currentId:t,mapInfo:e,ref:this.el}).defaultPrevented||(i=!0),i&&(this._webMapInfoWatchHandler(e,this._webMapInfo),this._webMapInfo=e),this._popover.value&&(this._popover.value.open=!1),this._mapListExpanded=!1}_chooseMap(){this._mapListExpanded=!this._mapListExpanded}};b("map-picker",p);export{p as MapPicker};