@arcgis/map-components 5.2.0 → 5.2.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 (281) hide show
  1. package/dist/cdn/{NFM3C6NI.js → 2B5ZBCBC.js} +1 -1
  2. package/dist/cdn/{77XQAHVN.js → 2BIVUQUJ.js} +1 -1
  3. package/dist/cdn/{T35GLNJC.js → 2U7CCJ2S.js} +1 -1
  4. package/dist/cdn/{JN5G6BEG.js → 2UK33Z5B.js} +1 -1
  5. package/dist/cdn/{IVUMKXQU.js → 2UMWGOD6.js} +1 -1
  6. package/dist/cdn/{7O6J4X7O.js → 36QNBIUL.js} +1 -1
  7. package/dist/cdn/{UWD3ONTH.js → 37DWQSFX.js} +1 -1
  8. package/dist/cdn/{XU47BEOW.js → 3AIJ2HNH.js} +1 -1
  9. package/dist/cdn/{74BV2UR2.js → 3D7NKMRY.js} +1 -1
  10. package/dist/cdn/{EX5MOEMN.js → 3DCNXWMF.js} +1 -1
  11. package/dist/cdn/{POWWSXNT.js → 3DNJW34H.js} +1 -1
  12. package/dist/cdn/{DYWNTGLO.js → 3E6R53RM.js} +1 -1
  13. package/dist/cdn/{PFAH4PTA.js → 3J2FOF6Y.js} +1 -1
  14. package/dist/cdn/{U5PTELUQ.js → 3NEHUVQJ.js} +1 -1
  15. package/dist/cdn/{YPWE3ZCH.js → 45JYMWYH.js} +1 -1
  16. package/dist/cdn/{Z2BR42XY.js → 4ACLFX6R.js} +1 -1
  17. package/dist/cdn/{C6VOZSIN.js → 4IQ3DDJS.js} +1 -1
  18. package/dist/cdn/{NRUPNXT4.js → 4MIFGQ34.js} +1 -1
  19. package/dist/cdn/{3SRUPOXP.js → 4RK7TSGR.js} +1 -1
  20. package/dist/cdn/{IP2FUUWH.js → 4TYS3KMW.js} +1 -1
  21. package/dist/cdn/{L7O6F2YJ.js → 523ZIMBT.js} +1 -1
  22. package/dist/cdn/{ZZKQ74HL.js → 52EXLNF3.js} +1 -1
  23. package/dist/cdn/{TYLCXOYA.js → 55R53CJL.js} +1 -1
  24. package/dist/cdn/5DEDGV3L.js +2 -0
  25. package/dist/cdn/{I53T7OAX.js → 5JEZ6WBC.js} +1 -1
  26. package/dist/cdn/{V2ACQ7VV.js → 5NIUVC2G.js} +1 -1
  27. package/dist/cdn/{P4JSASDL.js → 5PEEEZQP.js} +1 -1
  28. package/dist/cdn/{YOQMIKSF.js → 5SZ3EIHM.js} +1 -1
  29. package/dist/cdn/{YJJL5Z2Q.js → 5SZXH5TL.js} +1 -1
  30. package/dist/cdn/{4G6TVRCP.js → 5UJ6NGQR.js} +1 -1
  31. package/dist/cdn/5YNJEC5H.js +2 -0
  32. package/dist/cdn/67757SR2.js +2 -0
  33. package/dist/cdn/{6ILJDG3P.js → 67ONODLW.js} +1 -1
  34. package/dist/cdn/{HX3UNRCF.js → 6GRQHBXZ.js} +1 -1
  35. package/dist/cdn/{L7TEKVZH.js → 6HDFIN53.js} +1 -1
  36. package/dist/cdn/{BJCFTXR6.js → 6JFDD4W5.js} +1 -1
  37. package/dist/cdn/6K57LXHE.js +2 -0
  38. package/dist/cdn/{FBNWHWXH.js → 6RWCQ7PV.js} +1 -1
  39. package/dist/cdn/{3XINZ5UM.js → 6TXZ5J72.js} +1 -1
  40. package/dist/cdn/{ZZ75DOT6.js → 6YQXO5JT.js} +1 -1
  41. package/dist/cdn/{7UVJE6U5.js → 742BZS7E.js} +1 -1
  42. package/dist/cdn/{UHLA5H3N.js → 74GDAMZC.js} +1 -1
  43. package/dist/cdn/{TQM3VDGS.js → 74QAKLIH.js} +1 -1
  44. package/dist/cdn/{5QUTCNMJ.js → 7BB4VTIR.js} +1 -1
  45. package/dist/cdn/{LCT3F7GZ.js → 7ISW465B.js} +1 -1
  46. package/dist/cdn/{5OOBWPUF.js → 7P764RQK.js} +1 -1
  47. package/dist/cdn/{QJIYQN5J.js → 7PJ33BSP.js} +1 -1
  48. package/dist/cdn/{5K7D3NYX.js → 7TKFOCUV.js} +1 -1
  49. package/dist/cdn/{TJVFYBBR.js → 7UGAH42Q.js} +1 -1
  50. package/dist/cdn/{GHQTI3WE.js → 7Y2HNRED.js} +1 -1
  51. package/dist/cdn/{52MBSJME.js → A5CIX2NO.js} +1 -1
  52. package/dist/cdn/{VAODARUF.js → A5KWD6K6.js} +1 -1
  53. package/dist/cdn/{UG54GLP5.js → AIZDJ3PB.js} +1 -1
  54. package/dist/cdn/{D7HRVLNR.js → AJPFPKE7.js} +1 -1
  55. package/dist/cdn/{UDR5EDW6.js → ALMJB3TW.js} +1 -1
  56. package/dist/cdn/AN5DQCC2.js +2 -0
  57. package/dist/cdn/{H5OSJBGC.js → APP6ZSE2.js} +1 -1
  58. package/dist/cdn/{SUPGZ5FT.js → ASG4VT6J.js} +1 -1
  59. package/dist/cdn/{7OLUMTPU.js → AX3HHG3R.js} +1 -1
  60. package/dist/cdn/{YMSIBAGL.js → B4IKDLO5.js} +1 -1
  61. package/dist/cdn/{4IYTM3UE.js → BENRXHTP.js} +1 -1
  62. package/dist/cdn/{FWXD4CAA.js → BGOZEIAZ.js} +1 -1
  63. package/dist/cdn/{6J7G33BJ.js → BKD2PONE.js} +1 -1
  64. package/dist/cdn/{ECNWV7TN.js → BKY2NEXO.js} +1 -1
  65. package/dist/cdn/{4CXG6JXU.js → BM7VNBTJ.js} +1 -1
  66. package/dist/cdn/{KBMIXCB5.js → BMMF6MDA.js} +1 -1
  67. package/dist/cdn/{LTKY3GWH.js → BN6FTTMP.js} +1 -1
  68. package/dist/cdn/{FLNBBKNT.js → BNYNM6AS.js} +1 -1
  69. package/dist/cdn/{7S7WALCQ.js → BT4EZELN.js} +1 -1
  70. package/dist/cdn/{ZSJ2EBUQ.js → BVRYPIEV.js} +1 -1
  71. package/dist/cdn/{43AJEL4U.js → BYE5ZLTX.js} +1 -1
  72. package/dist/cdn/{FIVRSSG3.js → C23V3HGO.js} +1 -1
  73. package/dist/cdn/{S74ZRTKO.js → CAU5WQ5Y.js} +1 -1
  74. package/dist/cdn/{DSMAJT37.js → CBWNO7ML.js} +1 -1
  75. package/dist/cdn/{FGQBQOSC.js → CJ5NT4YN.js} +1 -1
  76. package/dist/cdn/CKGSCNX4.js +2 -0
  77. package/dist/cdn/{EY5JAMPL.js → CQB5QU43.js} +1 -1
  78. package/dist/cdn/{VCZGRW7Z.js → CRDMASYG.js} +1 -1
  79. package/dist/cdn/{C6O2VNAE.js → CTDDFF2G.js} +1 -1
  80. package/dist/cdn/{BQX6LWCS.js → CZJBFQY3.js} +1 -1
  81. package/dist/cdn/{Q6W3BX6Z.js → D4RUXOUS.js} +1 -1
  82. package/dist/cdn/{LXVKKWBF.js → D5ZX6F36.js} +1 -1
  83. package/dist/cdn/{6N76KI6B.js → D6BFF3WQ.js} +1 -1
  84. package/dist/cdn/{KFZKNGIN.js → D7VBUGLG.js} +1 -1
  85. package/dist/cdn/{PEBIRCQ6.js → DD2GM5SZ.js} +1 -1
  86. package/dist/cdn/{Q4Y4VV2K.js → DDHYBKQS.js} +1 -1
  87. package/dist/cdn/{ULVNML47.js → DIRRL7PQ.js} +1 -1
  88. package/dist/cdn/{3RLZEU77.js → DKHSXRHW.js} +1 -1
  89. package/dist/cdn/{KHBMCVWB.js → DWO4K6TH.js} +1 -1
  90. package/dist/cdn/{GOCVJEYD.js → DXVRQ6X2.js} +1 -1
  91. package/dist/cdn/{4K5KABJN.js → E4ZALCBH.js} +1 -1
  92. package/dist/cdn/{KOVYOFWR.js → E5IFMAIR.js} +1 -1
  93. package/dist/cdn/{UXNWNOKM.js → E5RVL5XY.js} +1 -1
  94. package/dist/cdn/{HYT3UPTO.js → ECXE4F53.js} +1 -1
  95. package/dist/cdn/{BWFAI6H2.js → EKH4R6RV.js} +1 -1
  96. package/dist/cdn/{3CATVA2O.js → EN3E2Y53.js} +1 -1
  97. package/dist/cdn/{WCOLD2O3.js → EN6BUAOX.js} +1 -1
  98. package/dist/cdn/{EKGMCVLS.js → EQDORETE.js} +1 -1
  99. package/dist/cdn/{EWO5PCIV.js → ESPEFWYB.js} +1 -1
  100. package/dist/cdn/{ZKNW2KW6.js → EW6WSDQY.js} +1 -1
  101. package/dist/cdn/{OUQ5UXAI.js → F5XGFR6J.js} +1 -1
  102. package/dist/cdn/{DDCVZ3TR.js → FDGTNPJ4.js} +1 -1
  103. package/dist/cdn/{VD6KWEWO.js → FGCPSLYU.js} +1 -1
  104. package/dist/cdn/{QCTY2P3U.js → FGVIEQ6S.js} +1 -1
  105. package/dist/cdn/{YVUS5Z33.js → FJHOQJES.js} +1 -1
  106. package/dist/cdn/{CG6DG47E.js → FNDE5YWY.js} +1 -1
  107. package/dist/cdn/{NUVHZA5W.js → G3NMXSN5.js} +1 -1
  108. package/dist/cdn/{XNLAXPWQ.js → G5KYVJPX.js} +1 -1
  109. package/dist/cdn/{OJSWOLIM.js → GCRO7OXP.js} +1 -1
  110. package/dist/cdn/{OJBZVPY6.js → GPLQXKBE.js} +1 -1
  111. package/dist/cdn/{IVITPRT5.js → GTOKBUPI.js} +1 -1
  112. package/dist/cdn/{TYMJFNRW.js → GTXUKJKD.js} +1 -1
  113. package/dist/cdn/GZDPWT5D.js +2 -0
  114. package/dist/cdn/{UCDMSAHY.js → GZKUP5OO.js} +1 -1
  115. package/dist/cdn/{S7HMLOW4.js → HCB4S5VR.js} +1 -1
  116. package/dist/cdn/{7LV3QIZJ.js → HG6DJZBS.js} +1 -1
  117. package/dist/cdn/{BEHE3J5Z.js → HIAOM7YK.js} +1 -1
  118. package/dist/cdn/{DNU4TU5L.js → HR5GNDNP.js} +1 -1
  119. package/dist/cdn/{7JE67CVJ.js → I5AHZ5AN.js} +1 -1
  120. package/dist/cdn/{7YZKCPR4.js → I7YXUEHB.js} +1 -1
  121. package/dist/cdn/{SZGZ5WGC.js → IB7FSBDN.js} +1 -1
  122. package/dist/cdn/{YD6RLPWT.js → IJLRHJS3.js} +1 -1
  123. package/dist/cdn/INMPH55C.js +2 -0
  124. package/dist/cdn/IQLDYLIK.js +2 -0
  125. package/dist/cdn/{OYDPICFN.js → IZ5LYYPH.js} +1 -1
  126. package/dist/cdn/{WEM6Y2HL.js → J75ODQCA.js} +1 -1
  127. package/dist/cdn/{A7QS6WHB.js → JBUJM5ZR.js} +1 -1
  128. package/dist/cdn/{CRVQR53S.js → JDPHCRFB.js} +1 -1
  129. package/dist/cdn/{M4VLJBQY.js → JF2JOBBT.js} +1 -1
  130. package/dist/cdn/{V3D5CKWL.js → JHVH2SNH.js} +1 -1
  131. package/dist/cdn/{G7L2YHQQ.js → JJUP6Q6X.js} +1 -1
  132. package/dist/cdn/{AUJMMALE.js → JWCMN7W4.js} +1 -1
  133. package/dist/cdn/{IAFR26VJ.js → JXPVXD5G.js} +1 -1
  134. package/dist/cdn/{42GZQRBT.js → K5J4F3S7.js} +1 -1
  135. package/dist/cdn/{QR43PYML.js → KFIB2GNP.js} +1 -1
  136. package/dist/cdn/{OJCIHEHE.js → KG4UNLN5.js} +1 -1
  137. package/dist/cdn/{IZ45CVO5.js → KTBY7426.js} +1 -1
  138. package/dist/cdn/{7MPCFWQO.js → KUTHLFNA.js} +1 -1
  139. package/dist/cdn/{H3NQ3JZQ.js → KVR2OGME.js} +1 -1
  140. package/dist/cdn/{TJUCGGUA.js → LF4TKQFV.js} +1 -1
  141. package/dist/cdn/{2SSOEJFI.js → LFFSHJEY.js} +1 -1
  142. package/dist/cdn/{DKY3FJ2L.js → LNULIDWQ.js} +1 -1
  143. package/dist/cdn/{HEQB2GHT.js → LPLAOXPN.js} +1 -1
  144. package/dist/cdn/{XWBX5I72.js → M2IIP36L.js} +1 -1
  145. package/dist/cdn/{S2FTBRV5.js → MJTCNAUG.js} +1 -1
  146. package/dist/cdn/{4GJFYHTJ.js → MU3XLCSC.js} +1 -1
  147. package/dist/cdn/{VEDHMG42.js → MYDOAT4O.js} +1 -1
  148. package/dist/cdn/{X7ZBJ4EV.js → N6YOZSOI.js} +1 -1
  149. package/dist/cdn/{YEOZIO4K.js → NWFNAH3U.js} +1 -1
  150. package/dist/cdn/{J2KUPLYF.js → O3LU7Z6Q.js} +1 -1
  151. package/dist/cdn/{A7W456AI.js → OBSVSEU5.js} +1 -1
  152. package/dist/cdn/{RKZHXOHI.js → OGSUDIU4.js} +1 -1
  153. package/dist/cdn/{KHO2GTRP.js → OHNHBIX3.js} +1 -1
  154. package/dist/cdn/{XTT36USG.js → OIWYATWW.js} +1 -1
  155. package/dist/cdn/{WLK6APNW.js → OPYV65WE.js} +1 -1
  156. package/dist/cdn/{GEZIDSYU.js → OSDSL2BD.js} +1 -1
  157. package/dist/cdn/{ME46MUVR.js → OY7NJO32.js} +1 -1
  158. package/dist/cdn/{7TGORQ2Y.js → PA2KEA2J.js} +1 -1
  159. package/dist/cdn/{VN5W3HPP.js → PNWXZKNY.js} +1 -1
  160. package/dist/cdn/{JRGLKWWK.js → PTR4HV5R.js} +1 -1
  161. package/dist/cdn/{2EUIZFG5.js → PXZOPLQK.js} +1 -1
  162. package/dist/cdn/{HIXTGR4X.js → Q7D3QQQK.js} +1 -1
  163. package/dist/cdn/{JOGGARMB.js → Q7MQ2DFI.js} +1 -1
  164. package/dist/cdn/{KLA4R4EG.js → QBQCKDWH.js} +1 -1
  165. package/dist/cdn/{C2J6S4Z2.js → QEYGFICX.js} +1 -1
  166. package/dist/cdn/{SA3FDVCF.js → QF3JOJK5.js} +1 -1
  167. package/dist/cdn/{5RSL2L45.js → QJTN5KIW.js} +1 -1
  168. package/dist/cdn/{MM2KKNTQ.js → QMAHST77.js} +1 -1
  169. package/dist/cdn/{ZRKBSIEK.js → QQBJOQ4C.js} +1 -1
  170. package/dist/cdn/{LKW5X4ZS.js → QU6522UD.js} +1 -1
  171. package/dist/cdn/{YL36JTMT.js → QWMOFNS7.js} +1 -1
  172. package/dist/cdn/{LXT673ON.js → QY4D7IWN.js} +1 -1
  173. package/dist/cdn/{M6RLO4DB.js → R4GHHBGK.js} +1 -1
  174. package/dist/cdn/{QRGIRHNW.js → RIFU4S3Q.js} +1 -1
  175. package/dist/cdn/{3BY3C6N6.js → RJY2ENZF.js} +1 -1
  176. package/dist/cdn/{4RK27XKR.js → RK5LPZSC.js} +1 -1
  177. package/dist/cdn/{CACN544U.js → RPCMN5TC.js} +1 -1
  178. package/dist/cdn/{AI5XYR3T.js → RSA3N5QR.js} +1 -1
  179. package/dist/cdn/{7DV5IVJT.js → RZA6CIF5.js} +1 -1
  180. package/dist/cdn/{X6OT67Y6.js → S4ZZAL7Y.js} +1 -1
  181. package/dist/cdn/{5RYIR2ON.js → SBWLULEJ.js} +1 -1
  182. package/dist/cdn/{2CEIEEYI.js → SESDEAIX.js} +1 -1
  183. package/dist/cdn/{WJLZSKQQ.js → SXFHWD6X.js} +1 -1
  184. package/dist/cdn/{JCIVO6PO.js → SZT6UTQV.js} +1 -1
  185. package/dist/cdn/{H3ZRCWWA.js → T2VESPJF.js} +1 -1
  186. package/dist/cdn/{WWRXQGB7.js → T3AQ655Q.js} +1 -1
  187. package/dist/cdn/{PCIOLOVZ.js → T3KOU37O.js} +1 -1
  188. package/dist/cdn/{NW52Y4ZG.js → T3ZR36FX.js} +1 -1
  189. package/dist/cdn/{RXIVAN2Z.js → T5K37OJA.js} +1 -1
  190. package/dist/cdn/{JRD6OT5Q.js → TEJMZYGH.js} +1 -1
  191. package/dist/cdn/{ONHLJM2G.js → TGTJMTNM.js} +1 -1
  192. package/dist/cdn/{3P2EA4FW.js → TRONHGHB.js} +1 -1
  193. package/dist/cdn/U3MVTXWF.js +2 -0
  194. package/dist/cdn/{M3637WEM.js → UGQZADTV.js} +1 -1
  195. package/dist/cdn/{42NI7MKM.js → UJFGERFD.js} +1 -1
  196. package/dist/cdn/{ZG67BSBM.js → UJPBFQ55.js} +1 -1
  197. package/dist/cdn/{OTVUOSDW.js → UNQGNCXT.js} +1 -1
  198. package/dist/cdn/{ZTKNT7ER.js → UQEH3MNE.js} +1 -1
  199. package/dist/cdn/{WRNOW2UH.js → UXOIUYNX.js} +1 -1
  200. package/dist/cdn/{544JD47Y.js → UZ2OW6YW.js} +1 -1
  201. package/dist/cdn/{JFM6XVOA.js → V4SZH6Z2.js} +1 -1
  202. package/dist/cdn/{V5QSVEJ6.js → VKL25ZPM.js} +1 -1
  203. package/dist/cdn/{CKCOZURU.js → VKZGLB6T.js} +1 -1
  204. package/dist/cdn/{2XVIXLFC.js → VNPZ24X5.js} +1 -1
  205. package/dist/cdn/{UQZKHDXL.js → VOKFRAQB.js} +1 -1
  206. package/dist/cdn/{Z62HXRNX.js → VTC6DO4Z.js} +1 -1
  207. package/dist/cdn/{635ILZB3.js → VUWQS77U.js} +1 -1
  208. package/dist/cdn/{N5DJYKIT.js → W2FEQRXI.js} +1 -1
  209. package/dist/cdn/{ABVDDPFU.js → W5GQ2NNA.js} +1 -1
  210. package/dist/cdn/{BYLDEVXF.js → W5MHYOEM.js} +1 -1
  211. package/dist/cdn/{47Y2IWSQ.js → W6INQNST.js} +1 -1
  212. package/dist/cdn/{ABBDUUM4.js → WCEBYECC.js} +1 -1
  213. package/dist/cdn/{355UQVMW.js → WD4OXDBG.js} +1 -1
  214. package/dist/cdn/{J2AURZ7G.js → WG4G6OC4.js} +1 -1
  215. package/dist/cdn/{QF5Z6LVC.js → WKWHTZ5I.js} +1 -1
  216. package/dist/cdn/WL25ML3J.js +2 -0
  217. package/dist/cdn/{NKL7OBTB.js → WLSLYAYJ.js} +1 -1
  218. package/dist/cdn/{LJE2TVXC.js → WQBUNNV2.js} +1 -1
  219. package/dist/cdn/{ZYLH4A35.js → WQSPATLU.js} +1 -1
  220. package/dist/cdn/{VKPN7XJZ.js → WZBOYXN3.js} +1 -1
  221. package/dist/cdn/{ERMYIPIW.js → X7U3U43Q.js} +1 -1
  222. package/dist/cdn/{ELUP4NED.js → XNSALZ6K.js} +1 -1
  223. package/dist/cdn/{H5LZNFXN.js → XOCJEYJ5.js} +1 -1
  224. package/dist/cdn/{J7XWWII7.js → XTF5GXPS.js} +1 -1
  225. package/dist/cdn/{75OQZ34G.js → XXJRFTYU.js} +1 -1
  226. package/dist/cdn/{F65FT4ZZ.js → Y3WE7JUP.js} +1 -1
  227. package/dist/cdn/{KSZYCJWG.js → YD2ZYMPU.js} +1 -1
  228. package/dist/cdn/{NHNKGCBI.js → YIULHL63.js} +1 -1
  229. package/dist/cdn/{D2DEAMTQ.js → YJSXFTU3.js} +1 -1
  230. package/dist/cdn/{NA7NW5A3.js → YLKK7K7Z.js} +1 -1
  231. package/dist/cdn/{QA5Y5IKK.js → YOAXX65E.js} +1 -1
  232. package/dist/cdn/{THUPX2LZ.js → YRSZBP3D.js} +1 -1
  233. package/dist/cdn/{2VGI6PON.js → YXF2NYTT.js} +1 -1
  234. package/dist/cdn/{YYTPIABA.js → YYBZV3ZS.js} +1 -1
  235. package/dist/cdn/{CROQUSJO.js → YZI2UCMD.js} +1 -1
  236. package/dist/cdn/{KDDEM52B.js → Z33YZHNN.js} +1 -1
  237. package/dist/cdn/{OXS3TM7H.js → Z5UWQQ7J.js} +1 -1
  238. package/dist/cdn/{ANEM6VG4.js → Z7AHDCJX.js} +1 -1
  239. package/dist/cdn/{4NSXW6XY.js → ZALR5MU6.js} +1 -1
  240. package/dist/cdn/{IYA4JZ27.js → ZB34KGZB.js} +1 -1
  241. package/dist/cdn/{NC2GQGJT.js → ZBY6MML3.js} +1 -1
  242. package/dist/cdn/{5P47MB6K.js → ZHB5LGHD.js} +1 -1
  243. package/dist/cdn/{EPSO4NIM.js → ZKENNZPL.js} +1 -1
  244. package/dist/cdn/{7OVOYRDL.js → ZLMH5LHT.js} +1 -1
  245. package/dist/cdn/{GMAVCAO3.js → ZVZCFZ3D.js} +1 -1
  246. package/dist/cdn/index.js +1 -1
  247. package/dist/chunks/runtime.js +1 -1
  248. package/dist/components/arcgis-expand/customElement.js +5 -5
  249. package/dist/components/arcgis-sketch/customElement.d.ts +23 -9
  250. package/dist/components/arcgis-sketch/customElement.js +215 -206
  251. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +1 -1
  252. package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.js +1 -1
  253. package/dist/components/arcgis-utility-network-trace-locations/customElement.js +139 -109
  254. package/dist/components/arcgis-view-popover/customElement.d.ts +65 -33
  255. package/dist/components/arcgis-view-popover/customElement.js +196 -108
  256. package/dist/components/arcgis-view-popover/index.js +1 -1
  257. package/dist/docs/api.json +1 -1
  258. package/dist/docs/docs.json +1 -1
  259. package/dist/docs/vscode.html-custom-data.json +1 -1
  260. package/dist/docs/web-types.json +1 -1
  261. package/dist/loader.js +1 -1
  262. package/dist/types/lumina.d.ts +1 -1
  263. package/dist/types/preact.d.ts +1 -1
  264. package/dist/types/react.d.ts +1 -1
  265. package/dist/types/stencil.d.ts +1 -1
  266. package/package.json +6 -6
  267. package/dist/cdn/3NO7L32R.js +0 -2
  268. package/dist/cdn/5AERV4OR.js +0 -2
  269. package/dist/cdn/6VHWWOP2.js +0 -2
  270. package/dist/cdn/IMK2NZAE.js +0 -2
  271. package/dist/cdn/J357FPG4.js +0 -2
  272. package/dist/cdn/NOXJSP5K.js +0 -2
  273. package/dist/cdn/SYLER3OL.js +0 -2
  274. package/dist/cdn/UTQYSTJC.js +0 -2
  275. package/dist/cdn/UWQK6HGY.js +0 -2
  276. package/dist/cdn/V5C4GMKX.js +0 -2
  277. package/dist/cdn/W2FVAB6I.js +0 -2
  278. package/dist/components/arcgis-sketch/SketchComponentViewModel.d.ts +0 -84
  279. package/dist/components/arcgis-sketch/configuration.d.ts +0 -33
  280. package/dist/components/arcgis-sketch/support.d.ts +0 -17
  281. package/dist/components/arcgis-sketch/toolbar-sizing-controller.d.ts +0 -96
@@ -1,81 +1,113 @@
1
1
  /// <reference path="../../index.d.ts" />
2
- import type MapView from "@arcgis/core/views/MapView.js";
3
- import type SceneView from "@arcgis/core/views/SceneView.js";
4
2
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
5
3
  import type { ActionBar as ActionBar } from "@esri/calcite-components/components/calcite-action-bar";
6
4
  import type { Button as Button } from "@esri/calcite-components/components/calcite-button";
7
5
 
8
6
  /**
9
- * The View Popover component provides view-aware placement and sizing for popovers anchored to actions inside
10
- * a map or scene view. This component is critical to enabling a great user experience with popovers
11
- * when the exact placement and content of the popover is highly variable.
7
+ * View popover solves the problem of showing dynamically sized content in a popover, which could be anchored just
8
+ * about anywhere and in any context, while ensuring a visually-consistent appearance.
12
9
  *
13
- * This component was originally added to support arcgis-sketch, which can be placed in all corners
14
- * of the view, in multiple orientations, and with highly configurable settings contents.
10
+ * Key requirements driving this design (and that calcite-popover does not handle):
15
11
  *
16
- * Because layer lists and grid controls are included in the settings popover, it is very common for
17
- * the popover to overflow the view. It is equally common for the settings popover to be quite compact.
12
+ * - Does not expand to fill space; it is as small as it can be for the natural size of the content it is showing
13
+ * - Respects arcgis-map/arcgis-scene margins if slotted into a view, unless available width falls below
14
+ * `minimumUsableWidth`. Otherwise, applies a small margin between it and viewport edges;
15
+ * chosen to match the margin it applies between the popover and the anchoring bar.
16
+ * - Chooses the right 'side' of the anchoring element to open into; e.g. above or below the bar. It chooses
17
+ * optimally to give the most space to the content
18
+ * - Aligns the popover with the action and toolbar it is anchored to. This avoids old behavior where it was
19
+ * awkwardly offset.
18
20
  *
19
- * Provide the popover content through the default slot and assign a [view](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-view-popover/#view),
20
- * [anchorElement](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-view-popover/#anchorElement), and [actionBarElement](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-view-popover/#actionBarElement)
21
- * to enable automatic positioning within the view.
21
+ * An earlier iteration of this component relied on setting various calcite-popover properties, but this was
22
+ * untenable; it essentially had two layout systems fighting each other and couldn't quite get to what we wanted.
22
23
  *
23
- * @since 5.1
24
+ * Assign [anchorElement](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-view-popover/#anchorElement) and
25
+ * [actionBarElement](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-view-popover/#actionBarElement) for toolbar-edge alignment.
26
+ *
27
+ * The panel aligns with the **toolbar** edge nearest the action, or centers on the action
28
+ * when edge alignment cannot keep the tail pointed at it.
29
+ *
30
+ * The header always includes a close action and remains visible while overflowing content scrolls.
31
+ * The tail is hidden when the action is fully clipped or cannot be reached without overlapping a corner;
32
+ * the popover is hidden when its action bar (or the action, when no bar is assigned) is fully clipped.
33
+ * Neither changes the requested open state.
34
+ *
35
+ * **Limitation**: Positioning responds to resizing, scrolling, component properties, and direct toolbar/view
36
+ * attribute changes. Position-only changes from ancestor layout or CSS animations are not tracked.
37
+ *
38
+ * Layout process overview:
39
+ *
40
+ * - Viewport selection: `_containingView` identifies the anchor's map/scene ancestor; otherwise viewport bounds apply.
41
+ * - Bounds measurement: `measureVisibleViewport`, `measurePaddedView`, and `measureFrameBounds` determine the outer usable area.
42
+ * - Frame: `showNativePopoverLayer` opens a native top-layer popover over that area, avoiding ancestor clipping.
43
+ * - Bounds element: inside the frame, CSS reserves the map/scene's inherited overlay-UI spacing.
44
+ * `_positionPopover` measures this inset rectangle to determine the panel's available space
45
+ * and positioning origin, letting the browser resolve CSS lengths into pixels.
46
+ * - Opening direction: `getToolbarCorner` and `getAttachmentInsets` reserve the attachment edge and tail gap.
47
+ * - Content sizing: `_layoutSurface` retries with viewport bounds if view-constrained width is below `minimumUsableWidth`,
48
+ * supplies size limits, then lets CSS and Calcite measure the content-sized panel.
49
+ * - Alignment: `alignPanelWithAction` chooses toolbar-edge alignment or action centering along the cross axis.
50
+ * - Placement: `applySurfacePosition` and `setPixelStyles` apply panel insets and the tail offset.
51
+ * - Presentation: `render` builds the frame/bounds/surface layers; `_renderPanel` supplies the heading, close action,
52
+ * scrolling content, and Calcite focus handling. CSS draws the optional tail without affecting layout.
53
+ * - Updates: `_observePosition` combines DOM observations, shadow-root scroll listeners, and view subscriptions;
54
+ * `_scheduleReposition` combines notifications to efficiently update the position.
55
+ * - Visibility and dismissal: `_hidePopover` hides unavailable or closed content; the close and keyboard handlers update `open`.
56
+ *
57
+ * @since 5.2
24
58
  * @internal
25
59
  */
26
60
  export abstract class ArcgisViewPopover extends LitElement {
27
- /** The calcite action bar that owns the anchor action; must be set for correct layout. */
61
+ /** The action bar whose visible edges align with the popover. */
28
62
  accessor actionBarElement: ActionBar | undefined;
63
+ /** Resolves the toolbar orientation used to determine the main (opening up/down vs left/right) and cross axes (used for aligning the sides). */
29
64
  get actionBarLayout(): ActionBarLayout;
30
65
  /** The action element that anchors the popover. */
31
66
  accessor anchorElement: HTMLElement | undefined;
32
- /**
33
- * Indicates whether the popover includes a close action in the header.
34
- *
35
- * @default true
36
- */
37
- accessor closable: boolean;
38
- /** The popover heading. */
67
+ /** The visible popover heading and accessible dialog name. */
39
68
  accessor heading: string | undefined;
40
- /** Accessible label for the popover. */
41
- accessor label: string | undefined;
42
69
  /**
43
- * Maximum content width, in pixels, applied to the slotted popover content.
70
+ * Maximum content width in pixels, further limited by available space.
44
71
  *
45
72
  * @default 400
46
73
  */
47
74
  accessor maxContentWidth: number;
48
75
  /**
49
- * Minimum content width, in pixels, applied to the slotted popover content.
76
+ * Preferred minimum content width in pixels; yields to smaller bounds.
50
77
  *
51
78
  * @default 300
52
79
  */
53
80
  accessor minContentWidth: number;
54
81
  /**
55
- * Indicates whether the popover is open.
82
+ * Minimum available width in pixels before view-constrained layout falls back to viewport bounds.
83
+ * This does not enforce a minimum content width. Set to `0` to disable the fallback.
56
84
  *
57
- * Listen for [@arcgisPropertyChange](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-view-popover/#event-arcgisPropertyChange) to react to user-driven close actions.
85
+ * @default 200
86
+ */
87
+ accessor minimumUsableWidth: number;
88
+ /**
89
+ * Indicates whether the popover is open.
90
+ * Listen for [@arcgisPropertyChange](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-view-popover/#event-arcgisPropertyChange) for user-driven closing.
58
91
  *
59
92
  * @default false
60
93
  */
61
94
  accessor open: boolean;
62
95
  /**
63
- * Controls whether the popover appears attached to the action itself or to the containing action bar.
96
+ * Whether the tail attaches to the action or its containing bar.
64
97
  *
65
98
  * @default "bar"
66
99
  */
67
100
  accessor tailAttachmentAppearance: TailAttachmentAppearance;
68
- /** The view that constrains popover placement and sizing. */
69
- accessor view: MapView | SceneView | undefined;
70
101
  /**
71
- * Minimum inset, in pixels, between the popover and the edges of the view.
72
- * The bottom edge will be relative to the attribution bar, if it is visible.
102
+ * Minimum inset from each usable view edge for anchors inside a map or scene, in pixels.
103
+ * View padding, visual layout-overlay spacing, and visible attribution are reserved separately.
104
+ * Anchors outside a map or scene instead use the measured anchor gap as their edge inset.
73
105
  *
74
106
  * @default 16
75
107
  */
76
108
  accessor viewEdgeMargin: number;
77
109
  /**
78
- * Visual scale for the popover; this applies only to the header and close button.
110
+ * Visual scale for the header and close action.
79
111
  *
80
112
  * @default "m"
81
113
  */
@@ -1,128 +1,216 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as u } from "../../chunks/runtime.js";
3
- import { LitElement as _, safeStyleMap as w } from "@arcgis/lumina";
4
- import { css as M, html as b } from "lit";
5
- import { usePropertyChange as E } from "@arcgis/lumina/controllers";
6
- const R = M`:host{display:block;pointer-events:initial}calcite-popover{pointer-events:initial}.content{min-inline-size:min(calc(100cqw - var(--arcgis-view-popover-width-reserve, 32px)),var(--arcgis-view-popover-min-inline-size, 300px));max-inline-size:min(calc(100cqw - var(--arcgis-view-popover-width-reserve, 32px)),var(--arcgis-view-popover-max-inline-size, 400px));max-height:var( --arcgis-view-popover-content-max-height, calc(100cqh - var(--arcgis-view-popover-height-reserve, 77px)) );-webkit-user-select:none;user-select:none;overflow-y:auto}`, l = 6, z = 2, S = 32, x = 77, y = 0;
7
- function O(t) {
8
- const e = B(t), i = t.actionBarLayout === "vertical" ? 0 : e;
9
- return {
10
- effectiveTailOffset: e,
11
- horizontalMargin: A(t),
12
- verticalMargin: k(t) + i + t.headerRect.height,
13
- offsetSkidding: P(t),
14
- placement: C(t)
15
- };
16
- }
17
- function B({ actionBarLayout: t, actionRect: e, barRect: i, tailAttachmentAppearance: a }) {
18
- const r = a === "bar" ? t === "vertical" ? Math.max(0, e.left - i.left) : Math.max(0, e.top - i.top) : 0;
19
- return l + r;
20
- }
21
- function A({ actionBarLayout: t, barRect: { left: e, right: i }, actionRect: { left: a }, tailAttachmentAppearance: r, viewEdgeMargin: n }) {
22
- const o = n * 2;
23
- if (t === "vertical") {
24
- const h = i - e, v = r === "action" ? -(a - e - l) : l;
25
- return o + h + v;
26
- }
27
- return o;
28
- }
29
- function P(t) {
30
- return t.actionBarLayout === "vertical" || f(t) === "left" ? t.viewEdgeMargin : -t.viewEdgeMargin;
31
- }
32
- function C(t) {
33
- const { actionBarLayout: e, actionRect: i, viewRect: a } = t, r = f(t);
34
- if (e === "vertical")
35
- return r === "left" ? "right-end" : "left-end";
36
- const n = i.bottom - a.top < a.height / 2 ? "bottom" : "top";
37
- return r === "left" ? `${n}-end` : `${n}-start`;
38
- }
39
- function f({ barRect: { left: t, right: e }, viewRect: { left: i, right: a } }) {
40
- return t - i < a - e ? "left" : "right";
41
- }
42
- function $({ actionRect: t, viewRect: e }) {
43
- return t.top - e.top > e.height / 2 ? "bottom" : "top";
44
- }
45
- function k(t) {
46
- const { actionBarLayout: e, actionRect: i, attributionHeight: a, viewEdgeMargin: r, viewRect: n } = t, o = $(t), h = i.bottom - n.top, v = i.top - n.top, g = o === "top" ? h : r, d = r, p = a + r, m = o === "top" ? p : n.height - v;
47
- return (e === "vertical" ? d + p : g + m) + z;
48
- }
49
- function s() {
50
- return new DOMRect(0, 0, 0, 0);
51
- }
52
- function c(t) {
53
- return t?.getBoundingClientRect() ?? s();
54
- }
55
- class T extends _ {
2
+ import { c as E } from "../../chunks/runtime.js";
3
+ import { css as S, html as R } from "lit";
4
+ import { watch as A } from "@arcgis/core/core/reactiveUtils.js";
5
+ import { LitElement as C, safeStyleMap as M } from "@arcgis/lumina";
6
+ import { usePropertyChange as O } from "@arcgis/lumina/controllers";
7
+ import { getClosestElement as k } from "@arcgis/toolkit/dom";
8
+ import { clamp as w } from "@arcgis/toolkit/number";
9
+ import { createRef as m, ref as b } from "lit/directives/ref.js";
10
+ import { m as P } from "../../chunks/handle.js";
11
+ const B = S`:host{--arcgis-internal-view-popover-tail-size: 10px;display:block}.layout-metrics{position:absolute;visibility:hidden;pointer-events:none;width:var(--calcite-spacing-sm);height:var(--arcgis-internal-view-popover-tail-size)}.frame{position:fixed;inset:auto;margin:0;padding:0;border:0;overflow:visible;background:transparent;color:var(--calcite-color-text-1);pointer-events:none}.bounds{position:absolute;inset:0}[data-in-view] .bounds{top:var(--arcgis-layout-overlay-space-top, 0px);right:var(--arcgis-layout-overlay-space-right, 0px);bottom:var(--arcgis-layout-overlay-space-bottom, 0px);left:var(--arcgis-layout-overlay-space-left, 0px)}.surface{--arcgis-internal-view-popover-border-width: 1px;position:absolute;top:var(--top);right:var(--right);bottom:var(--bottom);left:var(--left);display:flex;flex-direction:column;width:max-content;height:fit-content;min-width:min(var(--min-content-width),var(--max-content-width),var(--available-width));max-width:min(var(--max-content-width),var(--available-width));max-height:var(--available-height);pointer-events:auto;box-sizing:border-box;border:var(--arcgis-internal-view-popover-border-width) solid var(--calcite-color-border-3);filter:drop-shadow(0 6px 10px rgb(0 0 0 / 10%)) drop-shadow(0 4px 6px rgb(0 0 0 / 8%));border-radius:var(--calcite-corner-radius-sm);background:var(--calcite-color-surface-2)}calcite-panel{--calcite-panel-corner-radius: var(--calcite-corner-radius-sm);--calcite-panel-background-color: var(--calcite-color-surface-2);block-size:auto;flex:1 1 auto;min-height:0;min-width:0;max-height:inherit}.content{flex:none;font-size:var(--calcite-font-size-0);color:var(--calcite-color-text-1);-webkit-user-select:none;user-select:none}.surface:before{--arcgis-internal-view-popover-tail-half-size: calc(var(--arcgis-internal-view-popover-tail-size) / 2);--arcgis-internal-view-popover-tail-half-diagonal: calc(var(--arcgis-internal-view-popover-tail-half-size) * sqrt(2));--arcgis-internal-view-popover-tail-stretch: calc( (var(--anchor-gap) + var(--arcgis-internal-view-popover-border-width)) / var(--arcgis-internal-view-popover-tail-half-diagonal) );content:"";position:absolute;box-sizing:border-box;width:var(--arcgis-internal-view-popover-tail-size);height:var(--arcgis-internal-view-popover-tail-size);background:var(--calcite-color-surface-2);border:calc(var(--arcgis-internal-view-popover-tail-size) / 10) solid var(--calcite-color-border-3);pointer-events:none;opacity:var(--arcgis-internal-view-popover-tail-opacity, 1);z-index:1}[data-anchor-hidden] .surface:before,[data-tail-hidden] .surface:before{display:none}[data-layout=horizontal][data-vertical=top] .surface:before{top:calc(-1 * var(--arcgis-internal-view-popover-tail-half-size));clip-path:polygon(0 0,100% 0,0 100%);border-right-color:transparent;border-bottom-color:transparent}[data-layout=horizontal][data-vertical=bottom] .surface:before{bottom:calc(-1 * var(--arcgis-internal-view-popover-tail-half-size));clip-path:polygon(100% 100%,100% 0,0 100%);border-left-color:transparent;border-top-color:transparent}[data-layout=horizontal] .surface:before{transform:scaleY(var(--arcgis-internal-view-popover-tail-stretch)) rotate(45deg);left:calc(var(--tail-offset) - var(--arcgis-internal-view-popover-tail-half-size) - var(--arcgis-internal-view-popover-border-width))}[data-layout=vertical][data-horizontal=left] .surface:before{left:calc(-1 * var(--arcgis-internal-view-popover-tail-half-size));clip-path:polygon(0 0,0 100%,100% 100%);border-right-color:transparent;border-top-color:transparent}[data-layout=vertical][data-horizontal=right] .surface:before{right:calc(-1 * var(--arcgis-internal-view-popover-tail-half-size));clip-path:polygon(0 0,100% 0,100% 100%);border-left-color:transparent;border-bottom-color:transparent}[data-layout=vertical] .surface:before{transform:scaleX(var(--arcgis-internal-view-popover-tail-stretch)) rotate(45deg);top:calc(var(--tail-offset) - var(--arcgis-internal-view-popover-tail-half-size) - var(--arcgis-internal-view-popover-border-width))}`;
12
+ class V extends C {
56
13
  constructor() {
57
- super(...arguments), this._handlePopoverBeforeOpen = (e) => {
58
- if (e.target !== e.currentTarget)
59
- return;
60
- const i = e.currentTarget;
61
- this._headerElement = i.shadowRoot?.querySelector(".header") ?? void 0, this._observeMeasurementElements(), this._remeasureAndSolve();
62
- }, this._handlePopoverClose = (e) => {
63
- e.target === e.currentTarget && (e.preventDefault(), this.open = !1, this._stopMeasuring());
64
- }, this._viewRect = s(), this._barRect = s(), this._actionRect = s(), this._headerRect = s(), this._resizeObserver = new ResizeObserver(() => this._remeasureAndSolve()), this._placement = "bottom-end", this._effectiveTailOffset = l, this._offsetSkidding = y, this._horizontalMargin = S, this._verticalMargin = x, this.closable = !0, this.open = !1, this.maxContentWidth = 400, this.minContentWidth = 300, this.viewEdgeMargin = 16, this.visualScale = "m", this.tailAttachmentAppearance = "bar", this.arcgisPropertyChange = E()("open");
14
+ super(...arguments), this._nativePopoverLayer = m(), this._bounds = m(), this._surface = m(), this._calcitePanel = m(), this._layoutMetrics = m(), this._visibilityTrackedElements = /* @__PURE__ */ new Map(), this._scheduleReposition = () => {
15
+ !this.isConnected || !this.open || this._positionAnimationFrame !== void 0 || (this._positionAnimationFrame = requestAnimationFrame(() => {
16
+ this._positionAnimationFrame = void 0, this.isConnected && this.open && this._positionPopover();
17
+ }));
18
+ }, this._isPositionedAndVisible = !1, this.open = !1, this.maxContentWidth = 400, this.minContentWidth = 300, this.minimumUsableWidth = 200, this.viewEdgeMargin = 16, this.visualScale = "m", this.tailAttachmentAppearance = "bar", this.arcgisPropertyChange = O()("open");
65
19
  }
66
20
  static {
67
- this.properties = { _placement: 16, _effectiveTailOffset: 16, _offsetSkidding: 16, _horizontalMargin: 16, _verticalMargin: 16, view: 0, actionBarLayout: 32, actionBarElement: 0, anchorElement: 0, closable: 5, heading: 1, label: 1, open: 5, maxContentWidth: 9, minContentWidth: 9, viewEdgeMargin: 9, visualScale: 1, tailAttachmentAppearance: 1 };
21
+ this.properties = { _isPositionedAndVisible: 16, actionBarLayout: 32, actionBarElement: 0, anchorElement: 0, heading: 1, open: 5, maxContentWidth: 9, minContentWidth: 9, minimumUsableWidth: 9, viewEdgeMargin: 9, visualScale: 1, tailAttachmentAppearance: 1 };
68
22
  }
69
23
  static {
70
- this.styles = R;
24
+ this.styles = B;
71
25
  }
72
- get _viewElement() {
73
- return this.view?.container ?? void 0;
26
+ get _containingView() {
27
+ return k(this.anchorElement ?? this.el, "arcgis-map, arcgis-scene");
74
28
  }
75
29
  get actionBarLayout() {
76
30
  return this.actionBarElement?.layout === "vertical" ? "vertical" : "horizontal";
77
31
  }
78
- willUpdate(e) {
79
- e.has("open") && !this.open ? this._stopMeasuring() : this.open && this._hasParameterInputChange(e) ? this._remeasureAndSolve() : this.open && this._hasObservedElementChange(e) && this._observeMeasurementElements();
32
+ loaded() {
33
+ this.listenOn(window, "resize", this._scheduleReposition), this.listenOn(window, "scroll", this._scheduleReposition, { capture: !0 }), window.visualViewport && (this.listenOn(window.visualViewport, "resize", this._scheduleReposition), this.listenOn(window.visualViewport, "scroll", this._scheduleReposition));
34
+ }
35
+ updated() {
36
+ this._cancelRepositionAndStopObserving(), this.isConnected && this.open ? (this._observePosition(), this._scheduleReposition()) : (this._visibilityTrackedElements.clear(), this._hidePopover());
37
+ }
38
+ willUpdate() {
39
+ this.open || (this._isPositionedAndVisible = !1);
80
40
  }
81
41
  disconnectedCallback() {
82
- super.disconnectedCallback(), this._stopMeasuring();
83
- }
84
- _hasObservedElementChange(e) {
85
- return e.has("actionBarElement") || e.has("anchorElement") || e.has("view");
86
- }
87
- _hasParameterInputChange(e) {
88
- return e.has("open") && this.open || e.has("tailAttachmentAppearance") || e.has("viewEdgeMargin") || e.has("visualScale");
89
- }
90
- _observeMeasurementElements() {
91
- this._resizeObserver.disconnect();
92
- for (const e of [this.anchorElement, this.actionBarElement, this._viewElement, this._headerElement])
93
- e && this._resizeObserver.observe(e);
94
- this._remeasureAndSolve();
95
- }
96
- _stopMeasuring() {
97
- this._resizeObserver.disconnect(), this._headerElement = void 0;
98
- }
99
- _remeasureAndSolve() {
100
- this._actionRect = c(this.anchorElement), this._barRect = c(this.actionBarElement), this._headerRect = c(this._headerElement), this._viewRect = c(this._viewElement), this._solveLayoutAndUpdate();
101
- }
102
- _solveLayoutAndUpdate() {
103
- const { effectiveTailOffset: e, horizontalMargin: i, verticalMargin: a, offsetSkidding: r, placement: n } = O({
104
- actionBarLayout: this.actionBarLayout,
105
- actionRect: this._actionRect,
106
- attributionHeight: this.view?.attributionHeight ?? 0,
107
- barRect: this._barRect,
108
- headerRect: this._headerRect,
109
- visualScale: this.visualScale,
110
- tailAttachmentAppearance: this.tailAttachmentAppearance,
111
- viewEdgeMargin: this.viewEdgeMargin,
112
- viewRect: this._viewRect
42
+ super.disconnectedCallback(), this._cancelRepositionAndStopObserving(), this._visibilityTrackedElements.clear(), this._hidePopover();
43
+ }
44
+ _observePosition() {
45
+ const t = this._containingView?.view, e = this._observeLayoutElements(t), o = A(() => [t?.padding.left, t?.padding.right, t?.padding.top, t?.padding.bottom, t?.attributionHeight], this._scheduleReposition);
46
+ this._observableHandle = P(() => {
47
+ e.remove(), o.remove();
113
48
  });
114
- this._effectiveTailOffset = e, this._horizontalMargin = i, this._verticalMargin = a, this._offsetSkidding = r, this._placement = n;
49
+ }
50
+ _observeLayoutElements(t) {
51
+ const { anchorElement: e, actionBarElement: o } = this, a = /* @__PURE__ */ new Set([e, o ?? e]);
52
+ for (const r of this._visibilityTrackedElements.keys())
53
+ a.has(r) || this._visibilityTrackedElements.delete(r);
54
+ const n = new IntersectionObserver(
55
+ (r) => {
56
+ for (const h of r) {
57
+ const d = h.intersectionRect.width > 0 && h.intersectionRect.height > 0;
58
+ this._visibilityTrackedElements.get(h.target) !== d && (this._visibilityTrackedElements.set(h.target, d), this._scheduleReposition());
59
+ }
60
+ },
61
+ // Edge contact counts as intersecting at threshold 0, but has no visible area.
62
+ { threshold: Number.EPSILON }
63
+ );
64
+ for (const r of a)
65
+ r && n.observe(r);
66
+ const l = new ResizeObserver(this._scheduleReposition), s = new MutationObserver(this._scheduleReposition);
67
+ for (const r of [this.el, e, o, t?.container])
68
+ r && (l.observe(r), s.observe(r, {
69
+ attributes: !0,
70
+ attributeFilter: [
71
+ "style",
72
+ "class",
73
+ "hidden",
74
+ "slot",
75
+ "layout",
76
+ "dir",
77
+ "scale",
78
+ "expanded",
79
+ "expand-position"
80
+ ],
81
+ childList: r === o,
82
+ // Actions inside slotted groups can move the anchor without resizing the bar.
83
+ // Only observe descendants of the action bar, not the entire view.
84
+ subtree: r === o
85
+ }));
86
+ for (const r of [this._bounds.value, this._surface.value, this._layoutMetrics.value])
87
+ r && l.observe(r);
88
+ const c = L([e, o]);
89
+ for (const r of c)
90
+ r.addEventListener("scroll", this._scheduleReposition, !0);
91
+ return P(() => {
92
+ n.disconnect(), l.disconnect(), s.disconnect();
93
+ for (const r of c)
94
+ r.removeEventListener("scroll", this._scheduleReposition, !0);
95
+ });
96
+ }
97
+ _cancelRepositionAndStopObserving() {
98
+ this._observableHandle?.remove(), this._observableHandle = void 0, this._positionAnimationFrame !== void 0 && (cancelAnimationFrame(this._positionAnimationFrame), this._positionAnimationFrame = void 0);
99
+ }
100
+ _hidePopover() {
101
+ this._isPositionedAndVisible = !1, this._nativePopoverLayer.value?.hidePopover();
102
+ }
103
+ _positionPopover(t = !0) {
104
+ const e = this._nativePopoverLayer.value, o = this._bounds.value, a = this._surface.value, n = this._layoutMetrics.value, l = this.anchorElement, s = this.actionBarElement ?? l;
105
+ if (!e || !o || !a || !n || !l?.isConnected || !s || !this._visibilityTrackedElements.get(s)) {
106
+ this._hidePopover();
107
+ return;
108
+ }
109
+ const c = l.getBoundingClientRect(), r = s.getBoundingClientRect(), h = this.actionBarElement ? T(c, r, this.actionBarLayout, getComputedStyle(s).direction === "rtl") : n.getBoundingClientRect().width, d = t ? this._containingView : void 0, v = d ? this.viewEdgeMargin : h, p = U(d?.view, v);
110
+ if (!p.width || !p.height || !c.width || !c.height || !r.width || !r.height) {
111
+ this._hidePopover();
112
+ return;
113
+ }
114
+ $(e, p, !!d), e.toggleAttribute("data-anchor-hidden", !this._visibilityTrackedElements.get(l));
115
+ const u = o.getBoundingClientRect();
116
+ this._layoutSurface(e, a, { action: c, toolbar: r }, u, h);
117
+ }
118
+ _layoutSurface(t, e, o, a, n) {
119
+ const { action: l, toolbar: s } = o, c = this.actionBarLayout, r = D(s, a), h = this.tailAttachmentAppearance === "action" ? l : s, d = q(h, a, c, r, n), v = a.width - d.left - d.right, p = a.height - d.top - d.bottom;
120
+ if (t.hasAttribute("data-in-view") && v < this.minimumUsableWidth) {
121
+ this._positionPopover(!1);
122
+ return;
123
+ }
124
+ if (v <= 0 || p <= 0) {
125
+ this._hidePopover();
126
+ return;
127
+ }
128
+ _(t, { "available-width": v, "available-height": p, "anchor-gap": n }, !0);
129
+ const u = e.getBoundingClientRect(), f = F(e), g = W(o, a, u, c, f), y = c === "vertical" ? u.height : u.width;
130
+ t.toggleAttribute("data-tail-hidden", g.tailOffset < f || g.tailOffset > y - f), H(t, c, r, d, g), this._isPositionedAndVisible = !0;
131
+ }
132
+ _handlePanelClose(t) {
133
+ t.target === this._calcitePanel.value && (t.preventDefault(), this.open = !1);
115
134
  }
116
135
  render() {
117
- return this.anchorElement ? b`<calcite-popover .closable=${this.closable} .heading=${this.heading} .label=${this.label ?? ""} .open=${this.open} .offsetDistance=${this._effectiveTailOffset} .offsetSkidding=${this._offsetSkidding} overlay-positioning=fixed flip-disabled .placement=${this._placement} .referenceElement=${this.anchorElement} @calcitePopoverBeforeOpen=${this._handlePopoverBeforeOpen} .scale=${this.visualScale} style=${w({
118
- "--arcgis-view-popover-max-inline-size": `${this.maxContentWidth}px`,
119
- "--arcgis-view-popover-min-inline-size": `${this.minContentWidth}px`,
120
- "--arcgis-view-popover-height-reserve": `${this._verticalMargin}px`,
121
- "--arcgis-view-popover-width-reserve": `${this._horizontalMargin}px`
122
- })} trigger-disabled @calcitePopoverClose=${this._handlePopoverClose}><div class="content"><slot></slot></div></calcite-popover>` : null;
136
+ return R`<div class="layout-metrics" aria-hidden=true ${b(this._layoutMetrics)}></div><div class="frame" popover=manual style=${M({
137
+ "--min-content-width": `${this.minContentWidth}px`,
138
+ "--max-content-width": `${this.maxContentWidth}px`
139
+ })} ${b(this._nativePopoverLayer)}><div class="bounds" ${b(this._bounds)}><div class="surface" ${b(this._surface)}>${this._renderPanel()}</div></div></div>`;
140
+ }
141
+ _renderPanel() {
142
+ return R`<calcite-panel .closed=${!this.open} closable .heading=${this.heading} .scale=${this.visualScale} .focusTrapEnabled=${this.open && this._isPositionedAndVisible} @calcitePanelClose=${this._handlePanelClose} ${b(this._calcitePanel)}><div class="content"><slot></slot></div></calcite-panel>`;
143
+ }
144
+ }
145
+ function L(i) {
146
+ const t = /* @__PURE__ */ new Set();
147
+ for (let e of i)
148
+ for (; e; ) {
149
+ const o = e.getRootNode();
150
+ o instanceof ShadowRoot && t.add(o), e.shadowRoot && t.add(e.shadowRoot), e = e.assignedSlot ?? e.parentElement ?? (o instanceof ShadowRoot ? o.host : void 0);
151
+ }
152
+ return t;
153
+ }
154
+ function T(i, t, e, o) {
155
+ return e === "horizontal" ? i.top - t.top : o ? t.right - i.right : i.left - t.left;
156
+ }
157
+ function F(i) {
158
+ const t = getComputedStyle(i), e = getComputedStyle(i, "::before"), o = Math.max(...[
159
+ t.borderTopLeftRadius,
160
+ t.borderTopRightRadius,
161
+ t.borderBottomLeftRadius,
162
+ t.borderBottomRightRadius
163
+ ].flatMap((n) => n.split(" ").map(Number.parseFloat))), a = Math.hypot(Number.parseFloat(e.width), Number.parseFloat(e.height)) / 2;
164
+ return Math.ceil(o + a);
165
+ }
166
+ function $(i, t, e) {
167
+ i.toggleAttribute("data-in-view", e), _(i, { left: t.x, top: t.y, width: t.width, height: t.height }), i.showPopover();
168
+ }
169
+ function H(i, t, e, o, a) {
170
+ const n = { left: "auto", right: "auto", top: "auto", bottom: "auto" };
171
+ t === "vertical" ? (n[e.horizontal] = o[e.horizontal], n.top = a.panelStart) : (n[e.vertical] = o[e.vertical], n.left = a.panelStart), _(i, { ...n, "tail-offset": a.tailOffset }, !0), i.dataset.horizontal = e.horizontal, i.dataset.vertical = e.vertical, i.dataset.layout = t;
172
+ }
173
+ function W(i, t, e, o, a) {
174
+ const { action: n, toolbar: l } = i, s = o === "vertical" ? "top" : "left", c = o === "vertical" ? "bottom" : "right", r = o === "vertical" ? "height" : "width", h = (n[s] + n[c]) / 2 - t[s], d = l[s] - t[s], v = l[c] - t[s], p = e[r], u = t[r], f = h - d <= v - h ? d : v - p, g = h - f, z = g >= a && g <= p - a ? f : h - p / 2, x = w(z, 0, Math.max(0, u - p));
175
+ return { panelStart: x, tailOffset: h - x };
176
+ }
177
+ function N() {
178
+ const i = window.visualViewport;
179
+ return new DOMRect(i?.offsetLeft ?? 0, i?.offsetTop ?? 0, i?.width ?? document.documentElement.clientWidth, i?.height ?? document.documentElement.clientHeight);
180
+ }
181
+ function I(i) {
182
+ const t = i?.container?.getBoundingClientRect();
183
+ if (!t)
184
+ return;
185
+ const e = i?.padding, o = i?.attributionHeight ?? 0;
186
+ return {
187
+ left: t.left + (e?.left ?? 0),
188
+ top: t.top + (e?.top ?? 0),
189
+ right: t.right - (e?.right ?? 0),
190
+ bottom: t.bottom - (e?.bottom ?? 0) - o
191
+ };
192
+ }
193
+ function U(i, t) {
194
+ const e = N(), o = I(i) ?? e, a = Math.max(e.left, o.left) + t, n = Math.max(e.top, o.top) + t, l = Math.min(e.right, o.right) - t, s = Math.min(e.bottom, o.bottom) - t;
195
+ return new DOMRect(a, n, Math.max(0, l - a), Math.max(0, s - n));
196
+ }
197
+ function D(i, t) {
198
+ return {
199
+ horizontal: i.left - t.left <= t.right - i.right ? "left" : "right",
200
+ vertical: i.top - t.top <= t.bottom - i.bottom ? "top" : "bottom"
201
+ };
202
+ }
203
+ function q(i, t, e, o, a) {
204
+ const n = { top: 0, right: 0, bottom: 0, left: 0 };
205
+ return e === "vertical" ? o.horizontal === "left" ? n.left = w(i.right - t.left + a, 0, t.width) : n.right = w(t.right - i.left + a, 0, t.width) : o.vertical === "top" ? n.top = w(i.bottom - t.top + a, 0, t.height) : n.bottom = w(t.bottom - i.top + a, 0, t.height), n;
206
+ }
207
+ function _(i, t, e = !1) {
208
+ for (const [o, a] of Object.entries(t)) {
209
+ const n = e ? `--${o}` : o, l = typeof a == "number" ? `${a}px` : a;
210
+ i.style.setProperty(n, l);
123
211
  }
124
212
  }
125
- u("arcgis-view-popover", T);
213
+ E("arcgis-view-popover", V);
126
214
  export {
127
- T as ArcgisViewPopover
215
+ V as ArcgisViewPopover
128
216
  };
@@ -1,2 +1,2 @@
1
- import "@esri/calcite-components/components/calcite-popover";
1
+ import "@esri/calcite-components/components/calcite-panel";
2
2
  export * from "./customElement.js";