@esri/calcite-components 3.0.0-next.89 → 3.0.0-next.90

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 (392) hide show
  1. package/dist/calcite/{UMAQY4GA.js → 2J76HUOL.js} +2 -2
  2. package/dist/calcite/{CFJ4OZLI.js → 2JMPYA7K.js} +1 -1
  3. package/dist/calcite/{QCZFHYFD.js → 2WITPEAX.js} +2 -2
  4. package/dist/calcite/{PLHJLGCY.js → 2ZJLKQRC.js} +2 -2
  5. package/dist/calcite/{LUA7NIZW.js → 3545V3VQ.js} +2 -2
  6. package/dist/calcite/{UB62SGF3.js → 35AG6EAC.js} +1 -1
  7. package/dist/calcite/{UDV5ZT4U.js → 37NSPOK4.js} +2 -2
  8. package/dist/calcite/{KY3Z4MH3.js → 37O7QILO.js} +2 -2
  9. package/dist/calcite/{X4EAAYQP.js → 3BMPN272.js} +2 -2
  10. package/dist/calcite/{N7HNO4XI.js → 3ENT3OEK.js} +2 -2
  11. package/dist/calcite/{QFBS4HJ4.js → 3FXY6UI5.js} +2 -2
  12. package/dist/calcite/{SZ4BTKOE.js → 3K3MAQEW.js} +2 -2
  13. package/dist/calcite/{IGNYHO4C.js → 3PY5R6NZ.js} +2 -2
  14. package/dist/calcite/{WKOAJFYU.js → 3WYB3IIP.js} +2 -2
  15. package/dist/calcite/{IXTTKLOZ.js → 44BSXBBL.js} +2 -2
  16. package/dist/calcite/{FHHU5FBE.js → 44JWN2HB.js} +2 -2
  17. package/dist/calcite/{TIL354GC.js → 44YNUXQZ.js} +2 -2
  18. package/dist/calcite/{IVWSZZJN.js → 4C6HILWE.js} +2 -2
  19. package/dist/calcite/{FDSDQQMC.js → 4DHN4LIQ.js} +2 -2
  20. package/dist/calcite/{64GKSZRK.js → 4L6Z5AV3.js} +2 -2
  21. package/dist/calcite/{USBD3EQ2.js → 4NWZYIWY.js} +2 -2
  22. package/dist/calcite/{AOHWMMOC.js → 4Q4DATO5.js} +2 -2
  23. package/dist/calcite/{DX4UYID6.js → 4Q7EKT5O.js} +2 -2
  24. package/dist/calcite/{VKHNE4AW.js → 4QTLBWNR.js} +2 -2
  25. package/dist/calcite/{XKOLPCNR.js → 4R4J5VJO.js} +2 -2
  26. package/dist/calcite/{X3HAEQLP.js → 4ZZ6XWAL.js} +1 -1
  27. package/dist/calcite/{OLHQYWLM.js → 5NLPKYWO.js} +2 -2
  28. package/dist/calcite/{U5NLXA2P.js → 5PCLLY4U.js} +2 -2
  29. package/dist/calcite/{N4N52TKU.js → 5PCNMLXZ.js} +2 -2
  30. package/dist/calcite/{DDWHR7SP.js → 66IH6ODM.js} +2 -2
  31. package/dist/calcite/{Q5YSAAGN.js → 6BB5YGFT.js} +2 -2
  32. package/dist/calcite/{7WUILIHA.js → 72ZNP5ER.js} +2 -2
  33. package/dist/calcite/{EYG4H6AJ.js → 75OL7NKH.js} +2 -2
  34. package/dist/calcite/{TBXFWMKD.js → 75TWAVV6.js} +2 -2
  35. package/dist/calcite/{QXAMEHO6.js → 7LNLHC6G.js} +2 -2
  36. package/dist/calcite/{3KVG6BGX.js → 7LX3VMOS.js} +2 -2
  37. package/dist/calcite/{4RGMTY3Y.js → 7NWIHFX2.js} +2 -2
  38. package/dist/calcite/{CB6FJYN5.js → 7R3GTNSK.js} +2 -2
  39. package/dist/calcite/{KENUM6WR.js → 7UCUZKPG.js} +2 -2
  40. package/dist/calcite/{OHPLL4GW.js → 7UZE3RMQ.js} +2 -2
  41. package/dist/calcite/{IBNDVZ4Q.js → 7VV76B76.js} +2 -2
  42. package/dist/calcite/{5RJSRUFR.js → 7ZSHAL4L.js} +2 -2
  43. package/dist/calcite/{RI4DM3VW.js → A2FVQB7J.js} +2 -2
  44. package/dist/calcite/{FLWSZICI.js → A7LCCDWV.js} +2 -2
  45. package/dist/calcite/{WBC5V7V3.js → ACHNDZYG.js} +2 -2
  46. package/dist/calcite/{BVODVJFU.js → ATAJIBML.js} +2 -2
  47. package/dist/calcite/{BAMPQYQM.js → AWLLEMAI.js} +2 -2
  48. package/dist/calcite/{WXB3LDP3.js → AWWHXCDE.js} +2 -2
  49. package/dist/calcite/{IPVKWP42.js → B4ARJX5P.js} +2 -2
  50. package/dist/calcite/{XURH2OGC.js → B74ESEM5.js} +2 -2
  51. package/dist/calcite/{OAGENB52.js → BI7XURYO.js} +2 -2
  52. package/dist/calcite/{4XC3NHWG.js → BSZYBHQE.js} +2 -2
  53. package/dist/calcite/{S6WLFQ4V.js → BXCHWRGN.js} +2 -2
  54. package/dist/calcite/{NNC4HRZG.js → BY3IEOMV.js} +2 -2
  55. package/dist/calcite/{HSQGODRJ.js → C5VY5FXE.js} +2 -2
  56. package/dist/calcite/{UWCM3ORQ.js → CGOKBQNM.js} +2 -2
  57. package/dist/calcite/{M6GU2UAL.js → CMHNSCN3.js} +1 -1
  58. package/dist/calcite/{THYS7KNS.js → CRZVEIUH.js} +2 -2
  59. package/dist/calcite/{ORYCWUZP.js → DHMNKCOG.js} +2 -2
  60. package/dist/calcite/{K3DFFNDT.js → DT6JAVPZ.js} +2 -2
  61. package/dist/calcite/{5RJGYHWR.js → DWA3ZUZC.js} +2 -2
  62. package/dist/calcite/{T2OEAOU4.js → E3QBW37V.js} +2 -2
  63. package/dist/calcite/{N6Q4ZS32.js → EB5LTFL6.js} +2 -2
  64. package/dist/calcite/{ZKYTLJ25.js → EFNWLFRT.js} +2 -2
  65. package/dist/calcite/{R4TEOV7H.js → EGUONF2Y.js} +2 -2
  66. package/dist/calcite/{FC3OFNBZ.js → EK4TVEGV.js} +2 -2
  67. package/dist/calcite/{N3XH42G5.js → EL2DBZBN.js} +2 -2
  68. package/dist/calcite/{TA3B6RWX.js → ELKUYPDP.js} +2 -2
  69. package/dist/calcite/{WMVWKVSL.js → EOEHKQ5J.js} +2 -2
  70. package/dist/calcite/{H76V5YTV.js → EP2BB6L3.js} +2 -2
  71. package/dist/calcite/{IEOTWXGP.js → EV5CCQBU.js} +2 -2
  72. package/dist/calcite/{BBGIUJTG.js → EZ4DRICB.js} +2 -2
  73. package/dist/calcite/{HRBGXBEM.js → F7RFJAZI.js} +2 -2
  74. package/dist/calcite/{XWZJA7AE.js → FFQPJIRM.js} +2 -2
  75. package/dist/calcite/{DUTHRPOE.js → FGOME32C.js} +1 -1
  76. package/dist/calcite/{VE5UC2YN.js → FIW56C5A.js} +2 -2
  77. package/dist/calcite/{FOK3GVYZ.js → FLMWAHDL.js} +2 -2
  78. package/dist/calcite/{UDJU4KUJ.js → FQ7Z5TNX.js} +2 -2
  79. package/dist/calcite/{DXNCXVA7.js → FWQSUCAW.js} +1 -1
  80. package/dist/calcite/{4MS2SD52.js → FYCDYSWV.js} +1 -1
  81. package/dist/calcite/{EILRUOUQ.js → FYJ4PAAW.js} +2 -2
  82. package/dist/calcite/{PQJZ22E5.js → G5HCEFD2.js} +2 -2
  83. package/dist/calcite/{U5ZJVZRV.js → G6PCDW24.js} +1 -1
  84. package/dist/calcite/{PQWQDUPY.js → G6XHEM5V.js} +2 -2
  85. package/dist/calcite/{YPQ6N6BT.js → G6ZMY3Z7.js} +2 -2
  86. package/dist/calcite/{AZIXULPD.js → GBZTCOS2.js} +1 -1
  87. package/dist/calcite/{ZVJ4FQ6H.js → GEVCONMG.js} +2 -2
  88. package/dist/calcite/{TZMXQ6YE.js → GIHKZ5OT.js} +2 -2
  89. package/dist/calcite/{DUO43LNS.js → GJIP5YQ2.js} +2 -2
  90. package/dist/calcite/{UTXPS42C.js → GLJ77JOL.js} +2 -2
  91. package/dist/calcite/{XVSID2IE.js → GNWQ2UXA.js} +2 -2
  92. package/dist/calcite/{6DJXFSZS.js → GP4KLK6C.js} +2 -2
  93. package/dist/calcite/{72WFA6H4.js → GPGO5FYX.js} +2 -2
  94. package/dist/calcite/{J7YYTSBE.js → GUGHUUDI.js} +2 -2
  95. package/dist/calcite/{UG2PDGJH.js → H3IVTUS4.js} +2 -2
  96. package/dist/calcite/{WGAUNFAA.js → HASDB54W.js} +2 -2
  97. package/dist/calcite/{VRAXTEXR.js → HBG2IYJU.js} +2 -2
  98. package/dist/calcite/HD3UJW22.js +6 -0
  99. package/dist/calcite/{IZ2RRLWO.js → HMO6JGPY.js} +2 -2
  100. package/dist/calcite/{I2HKOXVI.js → HN42XMBO.js} +2 -2
  101. package/dist/calcite/{JYOX7JQW.js → HXN2J6EN.js} +2 -2
  102. package/dist/calcite/{Q3F3QS7I.js → HZVVTXY5.js} +2 -2
  103. package/dist/calcite/{HIN2SRVT.js → I4ZFFNCX.js} +2 -2
  104. package/dist/calcite/{DALHOAS4.js → I7BJSWNC.js} +1 -1
  105. package/dist/calcite/{HOIUAJY6.js → IINMVJ3F.js} +2 -2
  106. package/dist/calcite/{DCN53TSV.js → IOUWTVCC.js} +2 -2
  107. package/dist/calcite/{IBAS5NNB.js → J5RM4JBU.js} +2 -2
  108. package/dist/calcite/{GQWLZOR2.js → J5SLMQ3U.js} +2 -2
  109. package/dist/calcite/{K62QLXSV.js → JCM7PJIS.js} +2 -2
  110. package/dist/calcite/{RMP6DI4T.js → JOOC4KPZ.js} +2 -2
  111. package/dist/calcite/{GHQKCH6U.js → K5JGHZCK.js} +2 -2
  112. package/dist/calcite/{QXA2EJCS.js → KDAOGUIG.js} +2 -2
  113. package/dist/calcite/{YMFWI4ID.js → KENRFWJU.js} +2 -2
  114. package/dist/calcite/{GMYUHSIC.js → KFDK2NOW.js} +2 -2
  115. package/dist/calcite/{POKIRTPK.js → KJQVH2SB.js} +2 -2
  116. package/dist/calcite/{I2JZ4UUG.js → KN4PFUUX.js} +1 -1
  117. package/dist/calcite/{NSJHMKSE.js → KRJRDUFW.js} +2 -2
  118. package/dist/calcite/{OCUTOWGD.js → KRX4R4ZC.js} +2 -2
  119. package/dist/calcite/{3ZNF77Z5.js → KTCKPGVK.js} +2 -2
  120. package/dist/calcite/{CLTU2N5Q.js → KTGNGULP.js} +2 -2
  121. package/dist/calcite/{3TKV7ZDA.js → KTNQAQBX.js} +2 -2
  122. package/dist/calcite/{34EXCXY3.js → KWZP5APQ.js} +2 -2
  123. package/dist/calcite/{Z7SAPFGA.js → KXNKKZHE.js} +2 -2
  124. package/dist/calcite/{Z56NNPCS.js → L3HCJSMW.js} +2 -2
  125. package/dist/calcite/{SPBXB435.js → L3MO5IM5.js} +2 -2
  126. package/dist/calcite/{PTLQABPQ.js → L6KZ5JAJ.js} +2 -2
  127. package/dist/calcite/{M473E626.js → L7X7PL57.js} +2 -2
  128. package/dist/calcite/{N2R5MRBT.js → LBMXB75L.js} +1 -1
  129. package/dist/calcite/{WQOOBXAH.js → LFDW3VMO.js} +2 -2
  130. package/dist/calcite/{AJSHBTXR.js → LONDF3ZJ.js} +2 -2
  131. package/dist/calcite/{HARY3CYH.js → LVITKDXZ.js} +2 -2
  132. package/dist/calcite/{UO3HXARG.js → LWAYQOR6.js} +2 -2
  133. package/dist/calcite/{VX3JVIYH.js → MAAOU7YC.js} +2 -2
  134. package/dist/calcite/{WWXTG2ZX.js → MCSSQLUF.js} +2 -2
  135. package/dist/calcite/{OUFEX4EZ.js → MI4ZJ3X7.js} +2 -2
  136. package/dist/calcite/{Q5NQHV23.js → MIKOOQZ7.js} +2 -2
  137. package/dist/calcite/{G7436MQY.js → MPSAW2KA.js} +2 -2
  138. package/dist/calcite/{IUIXWGP7.js → MSZPONBE.js} +2 -2
  139. package/dist/calcite/{E2LYJL4I.js → N3KETLWX.js} +2 -2
  140. package/dist/calcite/N5IQ53VR.js +6 -0
  141. package/dist/calcite/{ZHLXFM6D.js → N5XSHOQU.js} +2 -2
  142. package/dist/calcite/{6NVZBCGF.js → NMXZMYVQ.js} +2 -2
  143. package/dist/calcite/{L2BPZQDC.js → NNQI6AIH.js} +2 -2
  144. package/dist/calcite/{K7WT7AGE.js → NTIUFU7L.js} +2 -2
  145. package/dist/calcite/{WAMCKCMT.js → NUGKNAWH.js} +2 -2
  146. package/dist/calcite/{XK5QYV6J.js → NZCY6TTC.js} +2 -2
  147. package/dist/calcite/{LGFARQMB.js → O2ANVGHM.js} +2 -2
  148. package/dist/calcite/{C2VL3T6U.js → O2O4FP2L.js} +2 -2
  149. package/dist/calcite/{2U5MAICG.js → O4JMPL2R.js} +2 -2
  150. package/dist/calcite/{RVESFNTM.js → O6XUSQD2.js} +2 -2
  151. package/dist/calcite/{XREZSGCG.js → OBCKBXRP.js} +2 -2
  152. package/dist/calcite/{PKICLAS7.js → ODAMZLSB.js} +2 -2
  153. package/dist/calcite/{2SEYVUSO.js → ODJW3ZCP.js} +2 -2
  154. package/dist/calcite/{WOG4CRGJ.js → OECDBMYD.js} +2 -2
  155. package/dist/calcite/{TLTZ4NPM.js → OG5A23JR.js} +2 -2
  156. package/dist/calcite/{75BVJM44.js → OGOJWB4O.js} +1 -1
  157. package/dist/calcite/{K4B5BI3W.js → OSVPIZ7V.js} +1 -1
  158. package/dist/calcite/{JFP5WBY4.js → OUPU2YTA.js} +2 -2
  159. package/dist/calcite/{5HYADEZ6.js → OV3NMWJB.js} +2 -2
  160. package/dist/calcite/{5F4U4VEP.js → PIKSC7GW.js} +2 -2
  161. package/dist/calcite/{C4GDXR7K.js → PPIAWPYM.js} +2 -2
  162. package/dist/calcite/{UWH3N47B.js → PY6IUOWW.js} +2 -2
  163. package/dist/calcite/{OPRLBPB6.js → Q47WADNF.js} +2 -2
  164. package/dist/calcite/{U5WNV3WS.js → QDMW6FZX.js} +2 -2
  165. package/dist/calcite/{FMZREKIW.js → QH6LZ5VF.js} +2 -2
  166. package/dist/calcite/{UPO3NKCT.js → QJBIXOTU.js} +2 -2
  167. package/dist/calcite/{DPOT3IVF.js → QJRSRLGB.js} +2 -2
  168. package/dist/calcite/{NLLIFMK7.js → QUPTDFLS.js} +2 -2
  169. package/dist/calcite/{3UQ5BDWX.js → QXM57CMC.js} +2 -2
  170. package/dist/calcite/{NHX65IRK.js → R2YDJD2Z.js} +2 -2
  171. package/dist/calcite/{2DPFSO4A.js → R2Z5GCSG.js} +2 -2
  172. package/dist/calcite/{TAWRWPDR.js → REDRDPUA.js} +2 -2
  173. package/dist/calcite/{6M3ORXPP.js → RMDZN2LU.js} +2 -2
  174. package/dist/calcite/{Y7LBUQBE.js → RPGCXBW7.js} +2 -2
  175. package/dist/calcite/{35SHE522.js → RQS5EVDV.js} +2 -2
  176. package/dist/calcite/{3HWL7XXF.js → RTOOJNIE.js} +2 -2
  177. package/dist/calcite/{GM4UHNUJ.js → RVVOAZHC.js} +2 -2
  178. package/dist/calcite/{V7RD4NCG.js → RWNYK3U2.js} +2 -2
  179. package/dist/calcite/{HV3ZI4QQ.js → S3S7LIO6.js} +2 -2
  180. package/dist/calcite/{KTRTGDJT.js → S42XO7NF.js} +2 -2
  181. package/dist/calcite/{6OKOCW3Z.js → SFVDN2CH.js} +2 -2
  182. package/dist/calcite/{AEHDO5JH.js → SHLU65FM.js} +2 -2
  183. package/dist/calcite/{WB5NE6WB.js → SIDKOKWC.js} +2 -2
  184. package/dist/calcite/{SEYLSOAM.js → SOTDUBMA.js} +2 -2
  185. package/dist/calcite/SVBXV7IH.js +6 -0
  186. package/dist/calcite/{X5YMSATD.js → SY7SA6VL.js} +2 -2
  187. package/dist/calcite/{NZS42G5M.js → SZLPBUM4.js} +2 -2
  188. package/dist/calcite/{PZO3GYKQ.js → T2F3MEO5.js} +2 -2
  189. package/dist/calcite/{ETQCLL5G.js → TEL76UMF.js} +1 -1
  190. package/dist/calcite/{7XUJL4QX.js → TNJI4FXL.js} +2 -2
  191. package/dist/calcite/{UEYHUV6N.js → TWXQ2ZXB.js} +1 -1
  192. package/dist/calcite/{RMZE3XUU.js → U54TKVCT.js} +1 -1
  193. package/dist/calcite/{5UIKYOW5.js → U5JAP22P.js} +1 -1
  194. package/dist/calcite/{TRUSXNNX.js → UBF7XWCA.js} +2 -2
  195. package/dist/calcite/{EYLYDH2J.js → UH727PBB.js} +2 -2
  196. package/dist/calcite/{MALOO2WB.js → UHFOKH3C.js} +2 -2
  197. package/dist/calcite/{BQOGY6LC.js → UTO4E7PG.js} +2 -2
  198. package/dist/calcite/{PLPWLXI2.js → UZXMY4IP.js} +2 -2
  199. package/dist/calcite/{JO7SAGP5.js → V44CHP5N.js} +2 -2
  200. package/dist/calcite/{BRV7HNVS.js → VBK2QF42.js} +2 -2
  201. package/dist/calcite/{CCWWSVAO.js → VGQJ3XNX.js} +2 -2
  202. package/dist/calcite/{YQQQNPCC.js → VLKHEINB.js} +2 -2
  203. package/dist/calcite/{QDCFYIT7.js → VOWFWRRW.js} +2 -2
  204. package/dist/calcite/{IOF3SA6U.js → VPECAYYP.js} +2 -2
  205. package/dist/calcite/{H3EACM5S.js → VPGFM3SQ.js} +1 -1
  206. package/dist/calcite/{C2R6BKSD.js → VXO5AHUD.js} +1 -1
  207. package/dist/calcite/{6ANHPUYB.js → WBXPB5WJ.js} +2 -2
  208. package/dist/calcite/{7HGJRCCA.js → WVNN2MYG.js} +2 -2
  209. package/dist/calcite/{ZYRVWZHV.js → XASOFT4V.js} +1 -1
  210. package/dist/calcite/{G3CB33OL.js → XMY7YYIT.js} +2 -2
  211. package/dist/calcite/{GABCCN6Q.js → XP2JPZ3P.js} +2 -2
  212. package/dist/calcite/{JC3AEZG5.js → XXJHZZNV.js} +2 -2
  213. package/dist/calcite/{SFIJE3NQ.js → XXJY5TAF.js} +2 -2
  214. package/dist/calcite/{AQ7KEYHS.js → Y26DOJX6.js} +2 -2
  215. package/dist/calcite/{FVE5X3Q4.js → YCNHMVYV.js} +1 -1
  216. package/dist/calcite/{C6INVAYO.js → YOIPAWNN.js} +2 -2
  217. package/dist/calcite/{IMQKL24E.js → YTFNDZS7.js} +2 -2
  218. package/dist/calcite/{TVWI2EGX.js → YZ7X5H3M.js} +2 -2
  219. package/dist/calcite/{OIP4UWK2.js → Z5X36LFB.js} +2 -2
  220. package/dist/calcite/{XXNVFFEM.js → ZCH7BCRY.js} +2 -2
  221. package/dist/calcite/{VGSZCKOE.js → ZFURFOIL.js} +2 -2
  222. package/dist/calcite/{RYSV3LZI.js → ZRIWU6IW.js} +2 -2
  223. package/dist/calcite/calcite.esm.js +2 -2
  224. package/dist/chunks/ExpandToggle.js +1 -1
  225. package/dist/chunks/FloatingArrow.js +1 -1
  226. package/dist/chunks/Heading.js +1 -1
  227. package/dist/chunks/Validation.js +1 -1
  228. package/dist/chunks/_commonjsHelpers.js +1 -1
  229. package/dist/chunks/array.js +1 -1
  230. package/dist/chunks/component.js +1 -1
  231. package/dist/chunks/core.js +1 -1
  232. package/dist/chunks/date.js +1 -1
  233. package/dist/chunks/dom.js +1 -1
  234. package/dist/chunks/dynamicClasses.js +1 -1
  235. package/dist/chunks/filter.js +1 -1
  236. package/dist/chunks/floating-ui.js +1 -1
  237. package/dist/chunks/focusTrapComponent.js +1 -1
  238. package/dist/chunks/form.js +1 -1
  239. package/dist/chunks/global.js +1 -1
  240. package/dist/chunks/guid.js +1 -1
  241. package/dist/chunks/input.js +1 -1
  242. package/dist/chunks/interact.min.js +1 -1
  243. package/dist/chunks/interactive.js +1 -1
  244. package/dist/chunks/key.js +1 -1
  245. package/dist/chunks/label.js +1 -1
  246. package/dist/chunks/loadable.js +1 -1
  247. package/dist/chunks/locale.js +1 -1
  248. package/dist/chunks/logger.js +1 -1
  249. package/dist/chunks/math.js +1 -1
  250. package/dist/chunks/observers.js +1 -1
  251. package/dist/chunks/openCloseComponent.js +1 -1
  252. package/dist/chunks/resources.js +1 -1
  253. package/dist/chunks/resources2.js +1 -1
  254. package/dist/chunks/resources3.js +1 -1
  255. package/dist/chunks/resources4.js +1 -1
  256. package/dist/chunks/resources5.js +1 -1
  257. package/dist/chunks/resources6.js +1 -1
  258. package/dist/chunks/resources7.js +1 -1
  259. package/dist/chunks/responsive.js +1 -1
  260. package/dist/chunks/runtime.js +3 -3
  261. package/dist/chunks/sortableComponent.js +1 -1
  262. package/dist/chunks/text.js +1 -1
  263. package/dist/chunks/time.js +64 -63
  264. package/dist/chunks/useT9n.js +1 -1
  265. package/dist/chunks/utils.js +1 -1
  266. package/dist/chunks/utils2.js +1 -1
  267. package/dist/chunks/utils3.js +1 -1
  268. package/dist/chunks/utils4.js +1 -1
  269. package/dist/components/calcite-accordion/customElement.js +1 -1
  270. package/dist/components/calcite-accordion-item/customElement.js +1 -1
  271. package/dist/components/calcite-action/customElement.js +1 -1
  272. package/dist/components/calcite-action-bar/customElement.js +1 -1
  273. package/dist/components/calcite-action-group/customElement.js +1 -1
  274. package/dist/components/calcite-action-menu/customElement.js +1 -1
  275. package/dist/components/calcite-action-pad/customElement.js +1 -1
  276. package/dist/components/calcite-alert/customElement.js +1 -1
  277. package/dist/components/calcite-autocomplete/customElement.js +1 -1
  278. package/dist/components/calcite-autocomplete-item/customElement.js +1 -1
  279. package/dist/components/calcite-autocomplete-item-group/customElement.js +1 -1
  280. package/dist/components/calcite-avatar/customElement.js +1 -1
  281. package/dist/components/calcite-block/customElement.js +1 -1
  282. package/dist/components/calcite-block-section/customElement.js +1 -1
  283. package/dist/components/calcite-button/customElement.js +1 -1
  284. package/dist/components/calcite-card/customElement.js +1 -1
  285. package/dist/components/calcite-card-group/customElement.js +1 -1
  286. package/dist/components/calcite-carousel/customElement.js +1 -1
  287. package/dist/components/calcite-carousel-item/customElement.js +1 -1
  288. package/dist/components/calcite-checkbox/customElement.js +1 -1
  289. package/dist/components/calcite-chip/customElement.js +1 -1
  290. package/dist/components/calcite-chip-group/customElement.js +1 -1
  291. package/dist/components/calcite-color-picker/customElement.js +1 -1
  292. package/dist/components/calcite-color-picker-hex-input/customElement.js +1 -1
  293. package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
  294. package/dist/components/calcite-combobox/customElement.js +1 -1
  295. package/dist/components/calcite-combobox-item/customElement.js +1 -1
  296. package/dist/components/calcite-combobox-item-group/customElement.js +1 -1
  297. package/dist/components/calcite-date-picker/customElement.js +1 -1
  298. package/dist/components/calcite-date-picker-day/customElement.js +1 -1
  299. package/dist/components/calcite-date-picker-month/customElement.js +1 -1
  300. package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
  301. package/dist/components/calcite-dialog/customElement.js +1 -1
  302. package/dist/components/calcite-dropdown/customElement.js +1 -1
  303. package/dist/components/calcite-dropdown-group/customElement.js +1 -1
  304. package/dist/components/calcite-dropdown-item/customElement.js +1 -1
  305. package/dist/components/calcite-fab/customElement.js +1 -1
  306. package/dist/components/calcite-filter/customElement.js +1 -1
  307. package/dist/components/calcite-flow/customElement.js +1 -1
  308. package/dist/components/calcite-flow-item/customElement.js +1 -1
  309. package/dist/components/calcite-graph/customElement.js +1 -1
  310. package/dist/components/calcite-handle/customElement.js +1 -1
  311. package/dist/components/calcite-icon/customElement.js +1 -1
  312. package/dist/components/calcite-inline-editable/customElement.js +1 -1
  313. package/dist/components/calcite-input/customElement.js +2 -2
  314. package/dist/components/calcite-input-date-picker/customElement.js +1 -1
  315. package/dist/components/calcite-input-message/customElement.js +1 -1
  316. package/dist/components/calcite-input-number/customElement.js +1 -1
  317. package/dist/components/calcite-input-text/customElement.js +1 -1
  318. package/dist/components/calcite-input-time-picker/customElement.js +1 -1
  319. package/dist/components/calcite-input-time-zone/customElement.js +1 -1
  320. package/dist/components/calcite-label/customElement.js +1 -1
  321. package/dist/components/calcite-link/customElement.js +1 -1
  322. package/dist/components/calcite-list/customElement.js +1 -1
  323. package/dist/components/calcite-list-item/customElement.js +1 -1
  324. package/dist/components/calcite-list-item-group/customElement.js +1 -1
  325. package/dist/components/calcite-loader/customElement.js +1 -1
  326. package/dist/components/calcite-menu/customElement.js +1 -1
  327. package/dist/components/calcite-menu-item/customElement.js +1 -1
  328. package/dist/components/calcite-meter/customElement.js +1 -1
  329. package/dist/components/calcite-modal/customElement.js +1 -1
  330. package/dist/components/calcite-navigation/customElement.js +1 -1
  331. package/dist/components/calcite-navigation-logo/customElement.js +1 -1
  332. package/dist/components/calcite-navigation-user/customElement.js +1 -1
  333. package/dist/components/calcite-notice/customElement.js +9 -9
  334. package/dist/components/calcite-option/customElement.js +1 -1
  335. package/dist/components/calcite-option-group/customElement.js +1 -1
  336. package/dist/components/calcite-pagination/customElement.js +1 -1
  337. package/dist/components/calcite-panel/customElement.js +1 -1
  338. package/dist/components/calcite-popover/customElement.js +1 -1
  339. package/dist/components/calcite-progress/customElement.js +1 -1
  340. package/dist/components/calcite-radio-button/customElement.js +1 -1
  341. package/dist/components/calcite-radio-button-group/customElement.js +1 -1
  342. package/dist/components/calcite-rating/customElement.js +1 -1
  343. package/dist/components/calcite-scrim/customElement.js +1 -1
  344. package/dist/components/calcite-segmented-control/customElement.js +1 -1
  345. package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
  346. package/dist/components/calcite-select/customElement.js +1 -1
  347. package/dist/components/calcite-sheet/customElement.js +1 -1
  348. package/dist/components/calcite-shell/customElement.js +1 -1
  349. package/dist/components/calcite-shell-center-row/customElement.js +1 -1
  350. package/dist/components/calcite-shell-panel/customElement.js +1 -1
  351. package/dist/components/calcite-slider/customElement.js +1 -1
  352. package/dist/components/calcite-sort-handle/customElement.js +1 -1
  353. package/dist/components/calcite-sortable-list/customElement.js +1 -1
  354. package/dist/components/calcite-split-button/customElement.js +1 -1
  355. package/dist/components/calcite-stack/customElement.js +1 -1
  356. package/dist/components/calcite-stepper/customElement.js +1 -1
  357. package/dist/components/calcite-stepper-item/customElement.js +1 -1
  358. package/dist/components/calcite-switch/customElement.js +1 -1
  359. package/dist/components/calcite-tab/customElement.js +1 -1
  360. package/dist/components/calcite-tab-nav/customElement.js +1 -1
  361. package/dist/components/calcite-tab-title/customElement.js +1 -1
  362. package/dist/components/calcite-table/customElement.js +1 -1
  363. package/dist/components/calcite-table-cell/customElement.js +1 -1
  364. package/dist/components/calcite-table-header/customElement.js +1 -1
  365. package/dist/components/calcite-table-row/customElement.js +1 -1
  366. package/dist/components/calcite-tabs/customElement.js +1 -1
  367. package/dist/components/calcite-text-area/customElement.js +1 -1
  368. package/dist/components/calcite-tile/customElement.js +1 -1
  369. package/dist/components/calcite-tile-group/customElement.js +1 -1
  370. package/dist/components/calcite-tile-select/customElement.js +1 -1
  371. package/dist/components/calcite-tile-select-group/customElement.js +1 -1
  372. package/dist/components/calcite-time-picker/customElement.js +50 -47
  373. package/dist/components/calcite-tip/customElement.js +1 -1
  374. package/dist/components/calcite-tip-group/customElement.js +1 -1
  375. package/dist/components/calcite-tip-manager/customElement.js +1 -1
  376. package/dist/components/calcite-tooltip/customElement.js +1 -1
  377. package/dist/components/calcite-tree/customElement.js +1 -1
  378. package/dist/components/calcite-tree-item/customElement.js +1 -1
  379. package/dist/custom-theme/notice.d.ts +9 -6
  380. package/dist/docs/api.json +32 -8
  381. package/dist/docs/docs.json +38 -8
  382. package/dist/docs/vscode.css-custom-data.json +31 -7
  383. package/dist/docs/vscode.html-custom-data.json +2 -2
  384. package/dist/docs/web-types.json +34 -10
  385. package/dist/extras/vscode-data.json +2 -2
  386. package/dist/index.js +1 -1
  387. package/dist/loader.js +1 -1
  388. package/dist/utils/time.d.ts +2 -1
  389. package/package.json +2 -2
  390. package/dist/calcite/6WDLMWQN.js +0 -6
  391. package/dist/calcite/OKYSNTEE.js +0 -6
  392. package/dist/calcite/S3UJIENX.js +0 -6
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.89
4
+ * v3.0.0-next.90
5
5
  */
6
- import{b as t}from"./KY3Z4MH3.js";import"./K4B5BI3W.js";var Y={name:"zh-cn",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(e,r){switch(r){case"W":return e+"\u5468";default:return e+"\u65E5"}},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",LLLL:"YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524D",s:"\u51E0\u79D2",m:"1 \u5206\u949F",mm:"%d \u5206\u949F",h:"1 \u5C0F\u65F6",hh:"%d \u5C0F\u65F6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4E2A\u6708",MM:"%d \u4E2A\u6708",y:"1 \u5E74",yy:"%d \u5E74"},meridiem:function(e,r){var _=e*100+r;return _<600?"\u51CC\u6668":_<900?"\u65E9\u4E0A":_<1100?"\u4E0A\u5348":_<1300?"\u4E2D\u5348":_<1800?"\u4E0B\u5348":"\u665A\u4E0A"}};t.locale(Y,null,!0);var m=Y;export{m as default};
6
+ import{b as t}from"./37O7QILO.js";import"./OSVPIZ7V.js";var Y={name:"zh-cn",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(e,r){switch(r){case"W":return e+"\u5468";default:return e+"\u65E5"}},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",LLLL:"YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524D",s:"\u51E0\u79D2",m:"1 \u5206\u949F",mm:"%d \u5206\u949F",h:"1 \u5C0F\u65F6",hh:"%d \u5C0F\u65F6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4E2A\u6708",MM:"%d \u4E2A\u6708",y:"1 \u5E74",yy:"%d \u5E74"},meridiem:function(e,r){var _=e*100+r;return _<600?"\u51CC\u6668":_<900?"\u65E9\u4E0A":_<1100?"\u4E0A\u5348":_<1300?"\u4E2D\u5348":_<1800?"\u4E0B\u5348":"\u665A\u4E0A"}};t.locale(Y,null,!0);var m=Y;export{m as default};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.89
4
+ * v3.0.0-next.90
5
5
  */
6
6
  function n(t){return t==="Enter"||t===" "}var e=["0","1","2","3","4","5","6","7","8","9"];export{n as a,e as b};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.89
4
+ * v3.0.0-next.90
5
5
  */
6
- import{e,w as r}from"./FHHU5FBE.js";var c={textMatch:"text-match"};function o({text:a,pattern:s}){if(!s||!a)return a;let t=a.split(s);return t.length>1&&(t[1]=e`<mark class=${r(c.textMatch)}>${t[1]}</mark>`),t}export{o as a};
6
+ import{e,w as r}from"./44JWN2HB.js";var c={textMatch:"text-match"};function o({text:a,pattern:s}){if(!s||!a)return a;let t=a.split(s);return t.length>1&&(t[1]=e`<mark class=${r(c.textMatch)}>${t[1]}</mark>`),t}export{o as a};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.89
4
+ * v3.0.0-next.90
5
5
  */
6
- import{a as d,b as g}from"./SFIJE3NQ.js";import{u as n}from"./XXNVFFEM.js";import{a as v,b as y,d as S}from"./TA3B6RWX.js";import"./AZIXULPD.js";import{I as h,d as l,e as s,u as c,v as m,w as o}from"./FHHU5FBE.js";var a={container:"container",containerContent:"container-content",hasProgress:"progress-bar",hide:"hide",primary:"primary",secondary:"secondary",tertiary:"tertiary"},e={logo:"logo",user:"user",progress:"progress",navigationAction:"navigation-action",contentStart:"content-start",contentEnd:"content-end",contentCenter:"content-center",navSecondary:"navigation-secondary",navTertiary:"navigation-tertiary"},p={hamburger:"hamburger"},C=l`:host([hidden]){display:none}[hidden]{display:none}.container{display:flex;inline-size:100%;flex-direction:column;margin-block:0;margin-inline:auto;background-color:var(--calcite-navigation-background-color, var(--calcite-navigation-background, var(--calcite-color-foreground-1)))}.container.primary,.container.secondary,.container.tertiary{border-block-end:1px solid;border-block-end-color:var(--calcite-navigation-border-color, var(--calcite-color-border-3))}.user,.logo{display:flex}.hide{display:none}.primary{block-size:4rem}.secondary,.tertiary{block-size:3rem}.container-content{margin-inline:auto;display:flex;block-size:100%;inline-size:100%;margin-block:0;inline-size:var(--calcite-navigation-width, 100%);max-inline-size:100%}.container-content.progress-bar{margin-block-start:.125rem}slot[name]{display:flex;flex-direction:row}slot[name=navigation-secondary]::slotted(calcite-navigation),slot[name=navigation-tertiary]::slotted(calcite-navigation){inline-size:100%}slot[name=content-start]::slotted(*),slot[name=content-center]::slotted(*),slot[name=content-end]::slotted(*){display:flex;flex-direction:row;align-items:center}slot[name=progress],slot[name=progress] calcite-progress{inset-block-start:0;inset-inline:0}slot[name=content-end]{margin-inline-start:auto}slot[name=content-start]{margin-inline-end:auto}slot[name=content-end],slot[name=logo]~slot[name=user],slot[name=user]:only-child{margin-inline-start:auto}slot[name=content-center]{margin-inline-start:auto;margin-inline-end:auto}slot[name=content-start]~slot[name=content-center]{margin-inline-start:0px}slot[name=content-start]~slot[name=content-end],slot[name=content-center]~slot[name=content-end],slot[name=content-center]~slot[name=user],slot[name=content-end]~slot[name=user]{margin:0}`,i=class extends m{constructor(){super(...arguments),this.navigationActionEl=d(),this.navigationAction=!1,this.calciteNavigationActionSelect=c({cancelable:!1})}static{this.properties={logoSlotHasElements:16,navigationActionSlotHasElements:16,primaryContentCenterSlotHasElements:16,primaryContentEndSlotHasElements:16,primaryContentStartSlotHasElements:16,progressSlotHasElement:16,secondarySlotHasElements:16,tertiarySlotHasElements:16,userSlotHasElements:16,label:1,navigationAction:7}}static{this.styles=C}async setFocus(){return await S(this),this.navigationActionEl.value?.setFocus()}load(){v(this)}loaded(){y(this)}actionClickHandler(){this.calciteNavigationActionSelect.emit()}handleUserSlotChange(t){this.isPrimaryLevel()&&(this.userSlotHasElements=n(t))}handleLogoSlotChange(t){this.isPrimaryLevel()&&(this.logoSlotHasElements=n(t))}handleContentStartSlotChange(t){this.isPrimaryLevel()&&(this.primaryContentStartSlotHasElements=n(t))}handleContentEndSlotChange(t){this.isPrimaryLevel()&&(this.primaryContentEndSlotHasElements=n(t))}handleContentCenterSlotChange(t){this.isPrimaryLevel()&&(this.primaryContentCenterSlotHasElements=n(t))}handleSecondarySlotChange(t){this.secondarySlotHasElements=n(t)}handleTertiarySlotChange(t){this.tertiarySlotHasElements=n(t)}handleMenuActionSlotChange(t){this.isPrimaryLevel()&&(this.navigationActionSlotHasElements=n(t),this.navigationActionSlotHasElements&&(this.navigationAction=!1))}handleProgressSlotChange(t){this.isPrimaryLevel()&&(this.progressSlotHasElement=n(t))}isPrimaryLevel(){return this.el.slot!==e.navSecondary&&this.el.slot!==e.navTertiary}renderMenuAction(){return s`<slot name=${e.navigationAction} @slotchange=${this.handleMenuActionSlotChange}>${this.navigationAction&&s`<calcite-action .icon=${p.hamburger} @click=${this.actionClickHandler} .text=${this.label} ${g(this.navigationActionEl)}></calcite-action>`||""}</slot>`}render(){let t=this.logoSlotHasElements||this.userSlotHasElements||this.navigationActionSlotHasElements||this.primaryContentCenterSlotHasElements||this.primaryContentEndSlotHasElements||this.primaryContentStartSlotHasElements||this.navigationAction,r=this.el.slot;return s`<div class=${o({[a.container]:!0,[a.secondary]:r===e.navSecondary,[a.tertiary]:r===e.navTertiary,[a.primary]:t})}><div class=${o({[a.hide]:!this.progressSlotHasElement,[e.progress]:!0})}><slot name=${e.progress} @slotchange=${this.handleProgressSlotChange}></slot></div><div class=${o({[a.containerContent]:!0,[a.hasProgress]:this.progressSlotHasElement})}>${this.renderMenuAction()}<div class=${o({[a.hide]:!this.logoSlotHasElements,[e.logo]:!0})}><slot name=${e.logo} @slotchange=${this.handleLogoSlotChange}></slot></div><slot name=${e.contentStart} @slotchange=${this.handleContentStartSlotChange}></slot><slot name=${e.contentCenter} @slotchange=${this.handleContentCenterSlotChange}></slot><slot name=${e.contentEnd} @slotchange=${this.handleContentEndSlotChange}></slot><div class=${o({[a.hide]:!this.userSlotHasElements,[e.user]:!0})}><slot name=${e.user} @slotchange=${this.handleUserSlotChange}></slot></div></div></div><slot name=${e.navSecondary} @slotchange=${this.handleSecondarySlotChange}></slot><slot name=${e.navTertiary} @slotchange=${this.handleTertiarySlotChange}></slot>`}};h("calcite-navigation",i);export{i as Navigation};
6
+ import{a as d,b as g}from"./XXJY5TAF.js";import{u as n}from"./ZCH7BCRY.js";import{a as v,b as y,d as S}from"./ELKUYPDP.js";import"./GBZTCOS2.js";import{I as h,d as l,e as s,u as c,v as m,w as o}from"./44JWN2HB.js";var a={container:"container",containerContent:"container-content",hasProgress:"progress-bar",hide:"hide",primary:"primary",secondary:"secondary",tertiary:"tertiary"},e={logo:"logo",user:"user",progress:"progress",navigationAction:"navigation-action",contentStart:"content-start",contentEnd:"content-end",contentCenter:"content-center",navSecondary:"navigation-secondary",navTertiary:"navigation-tertiary"},p={hamburger:"hamburger"},C=l`:host([hidden]){display:none}[hidden]{display:none}.container{display:flex;inline-size:100%;flex-direction:column;margin-block:0;margin-inline:auto;background-color:var(--calcite-navigation-background-color, var(--calcite-navigation-background, var(--calcite-color-foreground-1)))}.container.primary,.container.secondary,.container.tertiary{border-block-end:1px solid;border-block-end-color:var(--calcite-navigation-border-color, var(--calcite-color-border-3))}.user,.logo{display:flex}.hide{display:none}.primary{block-size:4rem}.secondary,.tertiary{block-size:3rem}.container-content{margin-inline:auto;display:flex;block-size:100%;inline-size:100%;margin-block:0;inline-size:var(--calcite-navigation-width, 100%);max-inline-size:100%}.container-content.progress-bar{margin-block-start:.125rem}slot[name]{display:flex;flex-direction:row}slot[name=navigation-secondary]::slotted(calcite-navigation),slot[name=navigation-tertiary]::slotted(calcite-navigation){inline-size:100%}slot[name=content-start]::slotted(*),slot[name=content-center]::slotted(*),slot[name=content-end]::slotted(*){display:flex;flex-direction:row;align-items:center}slot[name=progress],slot[name=progress] calcite-progress{inset-block-start:0;inset-inline:0}slot[name=content-end]{margin-inline-start:auto}slot[name=content-start]{margin-inline-end:auto}slot[name=content-end],slot[name=logo]~slot[name=user],slot[name=user]:only-child{margin-inline-start:auto}slot[name=content-center]{margin-inline-start:auto;margin-inline-end:auto}slot[name=content-start]~slot[name=content-center]{margin-inline-start:0px}slot[name=content-start]~slot[name=content-end],slot[name=content-center]~slot[name=content-end],slot[name=content-center]~slot[name=user],slot[name=content-end]~slot[name=user]{margin:0}`,i=class extends m{constructor(){super(...arguments),this.navigationActionEl=d(),this.navigationAction=!1,this.calciteNavigationActionSelect=c({cancelable:!1})}static{this.properties={logoSlotHasElements:16,navigationActionSlotHasElements:16,primaryContentCenterSlotHasElements:16,primaryContentEndSlotHasElements:16,primaryContentStartSlotHasElements:16,progressSlotHasElement:16,secondarySlotHasElements:16,tertiarySlotHasElements:16,userSlotHasElements:16,label:1,navigationAction:7}}static{this.styles=C}async setFocus(){return await S(this),this.navigationActionEl.value?.setFocus()}load(){v(this)}loaded(){y(this)}actionClickHandler(){this.calciteNavigationActionSelect.emit()}handleUserSlotChange(t){this.isPrimaryLevel()&&(this.userSlotHasElements=n(t))}handleLogoSlotChange(t){this.isPrimaryLevel()&&(this.logoSlotHasElements=n(t))}handleContentStartSlotChange(t){this.isPrimaryLevel()&&(this.primaryContentStartSlotHasElements=n(t))}handleContentEndSlotChange(t){this.isPrimaryLevel()&&(this.primaryContentEndSlotHasElements=n(t))}handleContentCenterSlotChange(t){this.isPrimaryLevel()&&(this.primaryContentCenterSlotHasElements=n(t))}handleSecondarySlotChange(t){this.secondarySlotHasElements=n(t)}handleTertiarySlotChange(t){this.tertiarySlotHasElements=n(t)}handleMenuActionSlotChange(t){this.isPrimaryLevel()&&(this.navigationActionSlotHasElements=n(t),this.navigationActionSlotHasElements&&(this.navigationAction=!1))}handleProgressSlotChange(t){this.isPrimaryLevel()&&(this.progressSlotHasElement=n(t))}isPrimaryLevel(){return this.el.slot!==e.navSecondary&&this.el.slot!==e.navTertiary}renderMenuAction(){return s`<slot name=${e.navigationAction} @slotchange=${this.handleMenuActionSlotChange}>${this.navigationAction&&s`<calcite-action .icon=${p.hamburger} @click=${this.actionClickHandler} .text=${this.label} ${g(this.navigationActionEl)}></calcite-action>`||""}</slot>`}render(){let t=this.logoSlotHasElements||this.userSlotHasElements||this.navigationActionSlotHasElements||this.primaryContentCenterSlotHasElements||this.primaryContentEndSlotHasElements||this.primaryContentStartSlotHasElements||this.navigationAction,r=this.el.slot;return s`<div class=${o({[a.container]:!0,[a.secondary]:r===e.navSecondary,[a.tertiary]:r===e.navTertiary,[a.primary]:t})}><div class=${o({[a.hide]:!this.progressSlotHasElement,[e.progress]:!0})}><slot name=${e.progress} @slotchange=${this.handleProgressSlotChange}></slot></div><div class=${o({[a.containerContent]:!0,[a.hasProgress]:this.progressSlotHasElement})}>${this.renderMenuAction()}<div class=${o({[a.hide]:!this.logoSlotHasElements,[e.logo]:!0})}><slot name=${e.logo} @slotchange=${this.handleLogoSlotChange}></slot></div><slot name=${e.contentStart} @slotchange=${this.handleContentStartSlotChange}></slot><slot name=${e.contentCenter} @slotchange=${this.handleContentCenterSlotChange}></slot><slot name=${e.contentEnd} @slotchange=${this.handleContentEndSlotChange}></slot><div class=${o({[a.hide]:!this.userSlotHasElements,[e.user]:!0})}><slot name=${e.user} @slotchange=${this.handleUserSlotChange}></slot></div></div></div><slot name=${e.navSecondary} @slotchange=${this.handleSecondarySlotChange}></slot><slot name=${e.navTertiary} @slotchange=${this.handleTertiarySlotChange}></slot>`}};h("calcite-navigation",i);export{i as Navigation};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.89
4
+ * v3.0.0-next.90
5
5
  */
6
- import{b as _}from"./KY3Z4MH3.js";import"./K4B5BI3W.js";var t={name:"mk",weekdays:"\u043D\u0435\u0434\u0435\u043B\u0430_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043E\u043A_\u043F\u0435\u0442\u043E\u043A_\u0441\u0430\u0431\u043E\u0442\u0430".split("_"),months:"\u0458\u0430\u043D\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440\u0438\u043B_\u043C\u0430\u0458_\u0458\u0443\u043D\u0438_\u0458\u0443\u043B\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043F\u0442\u0435\u043C\u0432\u0440\u0438_\u043E\u043A\u0442\u043E\u043C\u0432\u0440\u0438_\u043D\u043E\u0435\u043C\u0432\u0440\u0438_\u0434\u0435\u043A\u0435\u043C\u0432\u0440\u0438".split("_"),weekStart:1,weekdaysShort:"\u043D\u0435\u0434_\u043F\u043E\u043D_\u0432\u0442\u043E_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043F\u0435\u0442_\u0441\u0430\u0431".split("_"),monthsShort:"\u0458\u0430\u043D_\u0444\u0435\u0432_\u043C\u0430\u0440_\u0430\u043F\u0440_\u043C\u0430\u0458_\u0458\u0443\u043D_\u0458\u0443\u043B_\u0430\u0432\u0433_\u0441\u0435\u043F_\u043E\u043A\u0442_\u043D\u043E\u0435_\u0434\u0435\u043A".split("_"),weekdaysMin:"\u043De_\u043Fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043F\u0435_\u0441a".split("_"),ordinal:function(e){return e},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},relativeTime:{future:"\u043F\u043E\u0441\u043B\u0435 %s",past:"\u043F\u0440\u0435\u0434 %s",s:"\u043D\u0435\u043A\u043E\u043B\u043A\u0443 \u0441\u0435\u043A\u0443\u043D\u0434\u0438",m:"\u043C\u0438\u043D\u0443\u0442\u0430",mm:"%d \u043C\u0438\u043D\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043D",dd:"%d \u0434\u0435\u043D\u0430",M:"\u043C\u0435\u0441\u0435\u0446",MM:"%d \u043C\u0435\u0441\u0435\u0446\u0438",y:"\u0433\u043E\u0434\u0438\u043D\u0430",yy:"%d \u0433\u043E\u0434\u0438\u043D\u0438"}};_.locale(t,null,!0);var s=t;export{s as default};
6
+ import{b as _}from"./37O7QILO.js";import"./OSVPIZ7V.js";var t={name:"mk",weekdays:"\u043D\u0435\u0434\u0435\u043B\u0430_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043E\u043A_\u043F\u0435\u0442\u043E\u043A_\u0441\u0430\u0431\u043E\u0442\u0430".split("_"),months:"\u0458\u0430\u043D\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440\u0438\u043B_\u043C\u0430\u0458_\u0458\u0443\u043D\u0438_\u0458\u0443\u043B\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043F\u0442\u0435\u043C\u0432\u0440\u0438_\u043E\u043A\u0442\u043E\u043C\u0432\u0440\u0438_\u043D\u043E\u0435\u043C\u0432\u0440\u0438_\u0434\u0435\u043A\u0435\u043C\u0432\u0440\u0438".split("_"),weekStart:1,weekdaysShort:"\u043D\u0435\u0434_\u043F\u043E\u043D_\u0432\u0442\u043E_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043F\u0435\u0442_\u0441\u0430\u0431".split("_"),monthsShort:"\u0458\u0430\u043D_\u0444\u0435\u0432_\u043C\u0430\u0440_\u0430\u043F\u0440_\u043C\u0430\u0458_\u0458\u0443\u043D_\u0458\u0443\u043B_\u0430\u0432\u0433_\u0441\u0435\u043F_\u043E\u043A\u0442_\u043D\u043E\u0435_\u0434\u0435\u043A".split("_"),weekdaysMin:"\u043De_\u043Fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043F\u0435_\u0441a".split("_"),ordinal:function(e){return e},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},relativeTime:{future:"\u043F\u043E\u0441\u043B\u0435 %s",past:"\u043F\u0440\u0435\u0434 %s",s:"\u043D\u0435\u043A\u043E\u043B\u043A\u0443 \u0441\u0435\u043A\u0443\u043D\u0434\u0438",m:"\u043C\u0438\u043D\u0443\u0442\u0430",mm:"%d \u043C\u0438\u043D\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043D",dd:"%d \u0434\u0435\u043D\u0430",M:"\u043C\u0435\u0441\u0435\u0446",MM:"%d \u043C\u0435\u0441\u0435\u0446\u0438",y:"\u0433\u043E\u0434\u0438\u043D\u0430",yy:"%d \u0433\u043E\u0434\u0438\u043D\u0438"}};_.locale(t,null,!0);var s=t;export{s as default};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.89
4
+ * v3.0.0-next.90
5
5
  */
6
6
  function t(r,o){return(r+o)%o}export{t as a};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.89
4
+ * v3.0.0-next.90
5
5
  */
6
- import{a as v}from"./UWH3N47B.js";import{d as r}from"./UEYHUV6N.js";import{a as U,b as H,c as k,d as j}from"./IGNYHO4C.js";import{a as F}from"./ETQCLL5G.js";import"./N2R5MRBT.js";import{a as L}from"./3ZNF77Z5.js";import{a as T}from"./UDJU4KUJ.js";import{a as S}from"./UG2PDGJH.js";import{a as R}from"./WXB3LDP3.js";import{a as P,b as y}from"./SFIJE3NQ.js";import{D as f,n as I}from"./XXNVFFEM.js";import{a as A,b as M,d as B}from"./TA3B6RWX.js";import"./AZIXULPD.js";import{I as O,d as E,e as w,u as g,v as C,w as b}from"./FHHU5FBE.js";var p={dialog:"dialog",panel:"panel",scrim:"scrim",container:"container",containerOpen:"container--open",containerEmbedded:"container--embedded",assistiveText:"assistive-text",openingActive:"dialog--opening-active"},c={actionBar:"action-bar",alerts:"alerts",content:"content",contentTop:"content-top",contentBottom:"content-bottom",headerActionsStart:"header-actions-start",headerActionsEnd:"header-actions-end",headerMenuActions:"header-menu-actions",headerContent:"header-content",fab:"fab",footer:"footer",footerStart:"footer-start",footerEnd:"footer-end"},m=25,x=25,K={x:0,y:0},_={top:0,right:0,bottom:0,left:0},W=E`:host{--calcite-dialog-scrim-background-color: rgba(0, 0, 0, .85);pointer-events:none;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;--calcite-internal-dialog-animation-offset: 20px}:host([modal]){position:absolute}.container{pointer-events:auto;position:fixed;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--calcite-color-text-2);opacity:0;visibility:hidden;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88)}:host([placement=top]) .container{align-items:flex-start;justify-content:center}:host([placement=top-start]) .container{align-items:flex-start;justify-content:flex-start}:host([placement=top-end]) .container{align-items:flex-start;justify-content:flex-end}:host([placement=bottom]) .container{align-items:flex-end;justify-content:center}:host([placement=bottom-start]) .container{align-items:flex-end;justify-content:flex-start}:host([placement=bottom-end]) .container{align-items:flex-end;justify-content:flex-end}:host(:not([modal])) .container{pointer-events:none}:host([scale=s]){--calcite-internal-dialog-content-padding: var(--calcite-dialog-content-space, var(--calcite-spacing-sm));--calcite-internal-dialog-min-size-x: 198px;--calcite-internal-dialog-min-size-y: 140px}:host([scale=m]){--calcite-internal-dialog-content-padding: var(--calcite-dialog-content-space, var(--calcite-spacing-md));--calcite-internal-dialog-min-size-x: 288px;--calcite-internal-dialog-min-size-y: 180px}:host([scale=l]){--calcite-internal-dialog-content-padding: var(--calcite-dialog-content-space, var(--calcite-spacing-md-plus));--calcite-internal-dialog-min-size-x: 388px;--calcite-internal-dialog-min-size-y: 220px}.scrim{--calcite-scrim-background: var(--calcite-dialog-scrim-background-color, var(--calcite-color-transparent-scrim));--calcite-scrim-background-color: var( --calcite-dialog-scrim-background-color, var(--calcite-color-transparent-scrim) );position:fixed;inset:0;display:flex;overflow-y:hidden}calcite-panel{--calcite-panel-content-space: var(--calcite-dialog-content-space, var(--calcite-internal-dialog-content-padding));--calcite-panel-footer-space: var(--calcite-dialog-footer-space);--calcite-panel-border-color: var(--calcite-dialog-border-color);--calcite-panel-background-color: var(--calcite-dialog-background-color, var(--calcite-color-foreground-1))}::slotted(*){--calcite-panel-background-color: initial}.dialog{pointer-events:none;position:relative;z-index:var(--calcite-z-index-modal);margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;border-radius:.25rem;opacity:0;--tw-shadow: 0 2px 12px -4px rgba(0, 0, 0, .2), 0 2px 4px -2px rgba(0, 0, 0, .16);--tw-shadow-colored: 0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);-webkit-overflow-scrolling:touch;visibility:hidden;transition:inset-block var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88);min-inline-size:var(--calcite-dialog-min-size-x, var(--calcite-internal-dialog-min-size-x));max-inline-size:var(--calcite-dialog-max-size-x, 100%);min-block-size:var(--calcite-dialog-min-size-y, var(--calcite-internal-dialog-min-size-y));max-block-size:var(--calcite-dialog-max-size-y, 100%);--calcite-internal-dialog-hidden-position: calc( var(--calcite-dialog-offset-y, 0px) + var(--calcite-internal-dialog-animation-offset) );--calcite-internal-dialog-shown-position: var(--calcite-dialog-offset-y, 0);inset-inline-start:var(--calcite-dialog-offset-x, 0);inset-block-start:var(--calcite-internal-dialog-hidden-position)}.dialog--opening-active{inset-block-start:var(--calcite-internal-dialog-shown-position)}:host([menu-open]) .dialog{transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88)}.panel{border-radius:.25rem}.container--open{opacity:1;visibility:visible;transition-delay:0ms}.container--open .dialog{pointer-events:auto;visibility:visible;opacity:1;transition:inset-block var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88);transition-delay:0ms}.width-s{inline-size:auto;inline-size:var(--calcite-dialog-size-x, 32rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 35rem){.width-s{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}.width-s.dialog--opening-active{inset-block-start:0}}.width-m{inline-size:var(--calcite-dialog-size-x, 48rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 51rem){.width-m{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}.width-m.dialog--opening-active{inset-block-start:0}}.width-l{inline-size:var(--calcite-dialog-size-x, 94rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 97rem){.width-l{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}.width-l.dialog--opening-active{inset-block-start:0}}:host([placement=cover]) .dialog{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0}:host([placement=cover]) .panel{border-radius:0}:host([kind]) .panel{border-start-start-radius:0px;border-start-end-radius:0px}:host([kind=brand]) .dialog{border-color:var(--calcite-color-brand)}:host([kind=danger]) .dialog{border-color:var(--calcite-color-status-danger)}:host([kind=info]) .dialog{border-color:var(--calcite-color-status-info)}:host([kind=success]) .dialog{border-color:var(--calcite-color-status-success)}:host([kind=warning]) .dialog{border-color:var(--calcite-color-status-warning)}:host([kind=brand][open]) .dialog,:host([kind=danger][open]) .dialog,:host([kind=info][open]) .dialog,:host([kind=success][open]) .dialog,:host([kind=warning][open]) .dialog{border-width:0px;border-block-start-width:4px;border-style:solid}.container--embedded{position:absolute;pointer-events:auto}.container--embedded calcite-scrim{position:absolute}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}`,$=0,q="",D=class extends C{constructor(){super(...arguments),this.dragPosition={...K},this.ignoreOpenChange=!1,this.mutationObserver=S("mutation",()=>this.handleMutationObserver()),this._open=!1,this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteDialogOpen",this.openEnd)},this.openTransitionProp="opacity",this.panelEl=P(),this.resizePosition={..._},this.assistiveText=null,this.hasContentBottom=!1,this.hasContentTop=!1,this.hasFooter=!0,this.opened=!1,this.closeDisabled=!1,this.dragEnabled=!1,this.embedded=!1,this.escapeDisabled=!1,this.loading=!1,this.menuOpen=!1,this.messages=R(),this.modal=!1,this.outsideCloseDisabled=!1,this.overlayPositioning="absolute",this.placement="center",this.resizable=!1,this.scale="m",this.widthScale="m",this.calciteDialogBeforeClose=g({cancelable:!1}),this.calciteDialogBeforeOpen=g({cancelable:!1}),this.calciteDialogClose=g({cancelable:!1}),this.calciteDialogOpen=g({cancelable:!1}),this.calciteDialogScroll=g({cancelable:!1})}static{this.properties={assistiveText:16,hasContentBottom:16,hasContentTop:16,hasFooter:16,opened:16,beforeClose:0,closeDisabled:7,description:1,dragEnabled:7,embedded:5,escapeDisabled:7,heading:1,headingLevel:11,kind:3,loading:7,menuOpen:7,messageOverrides:0,modal:7,open:7,outsideCloseDisabled:7,overlayPositioning:3,placement:3,resizable:7,scale:3,widthScale:3,width:3}}static{this.styles=W}get open(){return this._open}set open(e){let t=this._open;e!==t&&(this._open=e,this.toggleDialog(e))}async scrollContentTo(e){await this.panelEl.value?.scrollContentTo(e)}async setFocus(){return await B(this),this.panelEl.value?.setFocus()??I(this.el)}async updateFocusTrapElements(){j(this)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),U(this,{focusTrapOptions:{clickOutsideDeactivates:()=>!this.modal,escapeDeactivates:e=>(!e.defaultPrevented&&!this.escapeDisabled&&(this.open=!1,e.preventDefault()),!1)}}),this.setupInteractions()}async load(){A(this),this.open&&this.openDialog()}willUpdate(e){e.has("modal")&&(this.hasUpdated||this.modal!==!1)&&this.updateOverflowHiddenClass(),(e.has("open")&&(this.hasUpdated||this.open!==!1)||e.has("placement")&&(this.hasUpdated||this.placement!=="center")||e.has("resizable")&&(this.hasUpdated||this.resizable!==!1)||e.has("dragEnabled")&&(this.hasUpdated||this.dragEnabled!==!1))&&this.setupInteractions(),(e.has("messages")||e.has("dragEnabled")&&(this.hasUpdated||this.dragEnabled!==!1)||e.has("resizable")&&(this.hasUpdated||this.resizable!==!1))&&this.updateAssistiveText(),e.has("opened")&&(this.hasUpdated||this.opened!==!1)&&this.handleOpenedChange(this.opened)}loaded(){M(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),k(this),this.embedded=!1,this.cleanupInteractions()}updateAssistiveText(){let{messages:e}=this;this.assistiveText=e&&(this.dragEnabled||this.resizable)?`${this.dragEnabled?e.dragEnabled:""} ${this.resizable?e.resizeEnabled:""}`:null}onBeforeOpen(){this.calciteDialogBeforeOpen.emit()}onOpen(){this.calciteDialogOpen.emit(),H(this)}onBeforeClose(){this.calciteDialogBeforeClose.emit()}onClose(){this.calciteDialogClose.emit(),k(this)}toggleDialog(e){this.ignoreOpenChange||(e?this.openDialog():this.closeDialog())}handleOpenedChange(e){let{transitionEl:t}=this;t&&(t.classList.toggle(p.openingActive,e),L(this))}async triggerInteractModifiers(){let{interaction:e}=this;e&&(await e.reflow({name:"drag"}),await e.reflow({name:"resize"}))}getTransitionElDOMRect(){return this.transitionEl.getBoundingClientRect()}handleKeyDown(e){let{key:t,shiftKey:i,defaultPrevented:a}=e,{dragEnabled:n,resizable:s,resizePosition:l,dragPosition:o,transitionEl:d}=this;if(!(a||!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t)))switch(t){case"ArrowUp":i&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().height-m,type:"blockSize"}),l.bottom-=m,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):n&&(o.y-=x,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break;case"ArrowDown":i&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().height+m,type:"blockSize"}),l.bottom+=m,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):n&&(o.y+=x,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break;case"ArrowLeft":i&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width-m,type:"inlineSize"}),l.right-=m,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):n&&(o.x-=x,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break;case"ArrowRight":i&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width+m,type:"inlineSize"}),l.right+=m,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):n&&(o.x+=x,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break}}updateTransform(){let{dragPosition:{x:e,y:t},resizePosition:i,transitionEl:a,dragEnabled:n,resizable:s}=this;if(!a)return;if(!n&&!s){a.style.transform=null;return}let{top:l,right:o,bottom:d,left:z}=this.getAdjustedResizePosition(i),u=Math.round(e+z+o),h=Math.round(t+l+d);a.style.transform=u||h?`translate(${u}px, ${h}px)`:null}updateSize({type:e,size:t}){let{transitionEl:i}=this;i&&(i.style[e]=t!==null?`${Math.round(t)}px`:null)}cleanupInteractions(){this.interaction?.unset(),this.updateSize({size:null,type:"inlineSize"}),this.updateSize({size:null,type:"blockSize"}),this.dragPosition={...K},this.resizePosition={..._},this.updateTransform()}setupInteractions(){this.cleanupInteractions();let{el:e,transitionEl:t,resizable:i,dragEnabled:a,resizePosition:n,dragPosition:s}=this;if(!(!t||!this.open)){if((i||a)&&(this.interaction=v(t,{context:e.ownerDocument})),i){let{minInlineSize:l,minBlockSize:o,maxInlineSize:d,maxBlockSize:z}=window.getComputedStyle(t);this.interaction.resizable({edges:{top:!0,right:!0,bottom:!0,left:!0},modifiers:[v.modifiers.restrictSize({min:{width:f(l)?parseInt(l):0,height:f(o)?parseInt(o):0},max:{width:f(d)?parseInt(d):window.innerWidth,height:f(z)?parseInt(z):window.innerHeight}}),v.modifiers.restrict({restriction:"parent"})],listeners:{move:({rect:u,deltaRect:h})=>{h&&(n.top+=h.top,n.right+=h.right,n.bottom+=h.bottom,n.left+=h.left),this.updateSize({size:u.width,type:"inlineSize"}),this.updateSize({size:u.height,type:"blockSize"}),this.updateTransform()}}})}a&&this.interaction.draggable({modifiers:[v.modifiers.restrictRect({restriction:"parent"})],listeners:{move:({dx:l,dy:o})=>{s.x+=l,s.y+=o,this.updateTransform()}}})}}getAdjustedResizePosition({top:e,right:t,bottom:i,left:a}){let n=e/2,s=t/2,l=i/2,o=a/2;switch(this.placement){case"top":return{top:e,right:s,bottom:0,left:o};case"top-start":return{top:e,right:0,bottom:0,left:a};case"top-end":return{top:e,right:t,bottom:0,left:0};case"bottom":return{top:0,right:s,bottom:i,left:o};case"bottom-start":return{top:0,right:0,bottom:i,left:a};case"bottom-end":return{top:0,right:t,bottom:i,left:0};case"cover":case"center":default:return{top:n,right:s,bottom:l,left:o}}}setTransitionEl(e){this.transitionEl=e,this.setupInteractions()}handleInternalPanelScroll(e){e.target===this.panelEl.value&&(e.stopPropagation(),this.calciteDialogScroll.emit())}handleInternalPanelCloseClick(e){e.target===this.panelEl.value&&(e.stopPropagation(),this.open=!1)}handlePanelKeyDown(e){this.escapeDisabled&&e.key==="Escape"&&e.preventDefault()}async openDialog(){await this.componentOnReady(),this.el.addEventListener("calciteDialogOpen",this.openEnd),this.opened=!0,this.updateOverflowHiddenClass()}handleOutsideClose(){this.outsideCloseDisabled||(this.open=!1)}async closeDialog(){if(this.beforeClose)try{await this.beforeClose()}catch{requestAnimationFrame(()=>{this.ignoreOpenChange=!0,this.open=!0,this.ignoreOpenChange=!1});return}$--,this.opened=!1,this.updateOverflowHiddenClass()}updateOverflowHiddenClass(){this.opened&&!this.embedded&&this.modal?this.addOverflowHiddenClass():this.removeOverflowHiddenClass()}addOverflowHiddenClass(){$===0&&(q=document.documentElement.style.overflow),$++,document.documentElement.style.setProperty("overflow","hidden")}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",q)}handleMutationObserver(){this.updateFocusTrapElements()}render(){let{assistiveText:e,description:t,heading:i,opened:a}=this;return w`<div class=${b({[p.container]:!0,[p.containerOpen]:a,[p.containerEmbedded]:this.embedded})}>${this.modal?w`<calcite-scrim class=${b(p.scrim)} @click=${this.handleOutsideClose}></calcite-scrim>`:null}<div .ariaDescription=${t} .ariaLabel=${i} .ariaModal=${this.modal} class=${b({[p.dialog]:!0,[F("width",this.width,this.widthScale)]:!!(this.width||this.widthScale)})} @keydown=${this.handleKeyDown} role=dialog ${y(this.setTransitionEl)}>${e?T("assistive-text",w`<div aria-live=polite class=${b(p.assistiveText)}>${e}</div>`):null}<slot name=${c.content}><calcite-panel .beforeClose=${this.beforeClose} class=${b(p.panel)} .closable=${!this.closeDisabled} .closed=${!a} .description=${t} .heading=${i} .headingLevel=${this.headingLevel} .loading=${this.loading} .menuOpen=${this.menuOpen} .messageOverrides=${this.messageOverrides} @keydown=${this.handlePanelKeyDown} @calcitePanelClose=${this.handleInternalPanelCloseClick} @calcitePanelScroll=${this.handleInternalPanelScroll} .overlayPositioning=${this.overlayPositioning} .scale=${this.scale} ${y(this.panelEl)}><slot name=${c.actionBar} slot=${r.actionBar}></slot><slot name=${c.alerts} slot=${r.alerts}></slot><slot name=${c.headerActionsStart} slot=${r.headerActionsStart}></slot><slot name=${c.headerActionsEnd} slot=${r.headerActionsEnd}></slot><slot name=${c.headerContent} slot=${r.headerContent}></slot><slot name=${c.headerMenuActions} slot=${r.headerMenuActions}></slot><slot name=${c.fab} slot=${r.fab}></slot><slot name=${c.contentTop} slot=${r.contentTop}></slot><slot name=${c.contentBottom} slot=${r.contentBottom}></slot><slot name=${c.footerStart} slot=${r.footerStart}></slot><slot name=${c.footer} slot=${r.footer}></slot><slot name=${c.footerEnd} slot=${r.footerEnd}></slot><slot></slot></calcite-panel></slot></div></div>`}};O("calcite-dialog",D);export{D as Dialog};
6
+ import{a as v}from"./PY6IUOWW.js";import{d as r}from"./TWXQ2ZXB.js";import{a as U,b as H,c as k,d as j}from"./3PY5R6NZ.js";import{a as F}from"./TEL76UMF.js";import"./LBMXB75L.js";import{a as L}from"./KTCKPGVK.js";import{a as T}from"./FQ7Z5TNX.js";import{a as S}from"./H3IVTUS4.js";import{a as R}from"./AWWHXCDE.js";import{a as P,b as y}from"./XXJY5TAF.js";import{D as f,n as I}from"./ZCH7BCRY.js";import{a as A,b as M,d as B}from"./ELKUYPDP.js";import"./GBZTCOS2.js";import{I as O,d as E,e as w,u as g,v as C,w as b}from"./44JWN2HB.js";var p={dialog:"dialog",panel:"panel",scrim:"scrim",container:"container",containerOpen:"container--open",containerEmbedded:"container--embedded",assistiveText:"assistive-text",openingActive:"dialog--opening-active"},c={actionBar:"action-bar",alerts:"alerts",content:"content",contentTop:"content-top",contentBottom:"content-bottom",headerActionsStart:"header-actions-start",headerActionsEnd:"header-actions-end",headerMenuActions:"header-menu-actions",headerContent:"header-content",fab:"fab",footer:"footer",footerStart:"footer-start",footerEnd:"footer-end"},m=25,x=25,K={x:0,y:0},_={top:0,right:0,bottom:0,left:0},W=E`:host{--calcite-dialog-scrim-background-color: rgba(0, 0, 0, .85);pointer-events:none;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;--calcite-internal-dialog-animation-offset: 20px}:host([modal]){position:absolute}.container{pointer-events:auto;position:fixed;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--calcite-color-text-2);opacity:0;visibility:hidden;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88)}:host([placement=top]) .container{align-items:flex-start;justify-content:center}:host([placement=top-start]) .container{align-items:flex-start;justify-content:flex-start}:host([placement=top-end]) .container{align-items:flex-start;justify-content:flex-end}:host([placement=bottom]) .container{align-items:flex-end;justify-content:center}:host([placement=bottom-start]) .container{align-items:flex-end;justify-content:flex-start}:host([placement=bottom-end]) .container{align-items:flex-end;justify-content:flex-end}:host(:not([modal])) .container{pointer-events:none}:host([scale=s]){--calcite-internal-dialog-content-padding: var(--calcite-dialog-content-space, var(--calcite-spacing-sm));--calcite-internal-dialog-min-size-x: 198px;--calcite-internal-dialog-min-size-y: 140px}:host([scale=m]){--calcite-internal-dialog-content-padding: var(--calcite-dialog-content-space, var(--calcite-spacing-md));--calcite-internal-dialog-min-size-x: 288px;--calcite-internal-dialog-min-size-y: 180px}:host([scale=l]){--calcite-internal-dialog-content-padding: var(--calcite-dialog-content-space, var(--calcite-spacing-md-plus));--calcite-internal-dialog-min-size-x: 388px;--calcite-internal-dialog-min-size-y: 220px}.scrim{--calcite-scrim-background: var(--calcite-dialog-scrim-background-color, var(--calcite-color-transparent-scrim));--calcite-scrim-background-color: var( --calcite-dialog-scrim-background-color, var(--calcite-color-transparent-scrim) );position:fixed;inset:0;display:flex;overflow-y:hidden}calcite-panel{--calcite-panel-content-space: var(--calcite-dialog-content-space, var(--calcite-internal-dialog-content-padding));--calcite-panel-footer-space: var(--calcite-dialog-footer-space);--calcite-panel-border-color: var(--calcite-dialog-border-color);--calcite-panel-background-color: var(--calcite-dialog-background-color, var(--calcite-color-foreground-1))}::slotted(*){--calcite-panel-background-color: initial}.dialog{pointer-events:none;position:relative;z-index:var(--calcite-z-index-modal);margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;border-radius:.25rem;opacity:0;--tw-shadow: 0 2px 12px -4px rgba(0, 0, 0, .2), 0 2px 4px -2px rgba(0, 0, 0, .16);--tw-shadow-colored: 0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);-webkit-overflow-scrolling:touch;visibility:hidden;transition:inset-block var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88);min-inline-size:var(--calcite-dialog-min-size-x, var(--calcite-internal-dialog-min-size-x));max-inline-size:var(--calcite-dialog-max-size-x, 100%);min-block-size:var(--calcite-dialog-min-size-y, var(--calcite-internal-dialog-min-size-y));max-block-size:var(--calcite-dialog-max-size-y, 100%);--calcite-internal-dialog-hidden-position: calc( var(--calcite-dialog-offset-y, 0px) + var(--calcite-internal-dialog-animation-offset) );--calcite-internal-dialog-shown-position: var(--calcite-dialog-offset-y, 0);inset-inline-start:var(--calcite-dialog-offset-x, 0);inset-block-start:var(--calcite-internal-dialog-hidden-position)}.dialog--opening-active{inset-block-start:var(--calcite-internal-dialog-shown-position)}:host([menu-open]) .dialog{transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88)}.panel{border-radius:.25rem}.container--open{opacity:1;visibility:visible;transition-delay:0ms}.container--open .dialog{pointer-events:auto;visibility:visible;opacity:1;transition:inset-block var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88);transition-delay:0ms}.width-s{inline-size:auto;inline-size:var(--calcite-dialog-size-x, 32rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 35rem){.width-s{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}.width-s.dialog--opening-active{inset-block-start:0}}.width-m{inline-size:var(--calcite-dialog-size-x, 48rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 51rem){.width-m{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}.width-m.dialog--opening-active{inset-block-start:0}}.width-l{inline-size:var(--calcite-dialog-size-x, 94rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 97rem){.width-l{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}.width-l.dialog--opening-active{inset-block-start:0}}:host([placement=cover]) .dialog{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0}:host([placement=cover]) .panel{border-radius:0}:host([kind]) .panel{border-start-start-radius:0px;border-start-end-radius:0px}:host([kind=brand]) .dialog{border-color:var(--calcite-color-brand)}:host([kind=danger]) .dialog{border-color:var(--calcite-color-status-danger)}:host([kind=info]) .dialog{border-color:var(--calcite-color-status-info)}:host([kind=success]) .dialog{border-color:var(--calcite-color-status-success)}:host([kind=warning]) .dialog{border-color:var(--calcite-color-status-warning)}:host([kind=brand][open]) .dialog,:host([kind=danger][open]) .dialog,:host([kind=info][open]) .dialog,:host([kind=success][open]) .dialog,:host([kind=warning][open]) .dialog{border-width:0px;border-block-start-width:4px;border-style:solid}.container--embedded{position:absolute;pointer-events:auto}.container--embedded calcite-scrim{position:absolute}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}`,$=0,q="",D=class extends C{constructor(){super(...arguments),this.dragPosition={...K},this.ignoreOpenChange=!1,this.mutationObserver=S("mutation",()=>this.handleMutationObserver()),this._open=!1,this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteDialogOpen",this.openEnd)},this.openTransitionProp="opacity",this.panelEl=P(),this.resizePosition={..._},this.assistiveText=null,this.hasContentBottom=!1,this.hasContentTop=!1,this.hasFooter=!0,this.opened=!1,this.closeDisabled=!1,this.dragEnabled=!1,this.embedded=!1,this.escapeDisabled=!1,this.loading=!1,this.menuOpen=!1,this.messages=R(),this.modal=!1,this.outsideCloseDisabled=!1,this.overlayPositioning="absolute",this.placement="center",this.resizable=!1,this.scale="m",this.widthScale="m",this.calciteDialogBeforeClose=g({cancelable:!1}),this.calciteDialogBeforeOpen=g({cancelable:!1}),this.calciteDialogClose=g({cancelable:!1}),this.calciteDialogOpen=g({cancelable:!1}),this.calciteDialogScroll=g({cancelable:!1})}static{this.properties={assistiveText:16,hasContentBottom:16,hasContentTop:16,hasFooter:16,opened:16,beforeClose:0,closeDisabled:7,description:1,dragEnabled:7,embedded:5,escapeDisabled:7,heading:1,headingLevel:11,kind:3,loading:7,menuOpen:7,messageOverrides:0,modal:7,open:7,outsideCloseDisabled:7,overlayPositioning:3,placement:3,resizable:7,scale:3,widthScale:3,width:3}}static{this.styles=W}get open(){return this._open}set open(e){let t=this._open;e!==t&&(this._open=e,this.toggleDialog(e))}async scrollContentTo(e){await this.panelEl.value?.scrollContentTo(e)}async setFocus(){return await B(this),this.panelEl.value?.setFocus()??I(this.el)}async updateFocusTrapElements(){j(this)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),U(this,{focusTrapOptions:{clickOutsideDeactivates:()=>!this.modal,escapeDeactivates:e=>(!e.defaultPrevented&&!this.escapeDisabled&&(this.open=!1,e.preventDefault()),!1)}}),this.setupInteractions()}async load(){A(this),this.open&&this.openDialog()}willUpdate(e){e.has("modal")&&(this.hasUpdated||this.modal!==!1)&&this.updateOverflowHiddenClass(),(e.has("open")&&(this.hasUpdated||this.open!==!1)||e.has("placement")&&(this.hasUpdated||this.placement!=="center")||e.has("resizable")&&(this.hasUpdated||this.resizable!==!1)||e.has("dragEnabled")&&(this.hasUpdated||this.dragEnabled!==!1))&&this.setupInteractions(),(e.has("messages")||e.has("dragEnabled")&&(this.hasUpdated||this.dragEnabled!==!1)||e.has("resizable")&&(this.hasUpdated||this.resizable!==!1))&&this.updateAssistiveText(),e.has("opened")&&(this.hasUpdated||this.opened!==!1)&&this.handleOpenedChange(this.opened)}loaded(){M(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),k(this),this.embedded=!1,this.cleanupInteractions()}updateAssistiveText(){let{messages:e}=this;this.assistiveText=e&&(this.dragEnabled||this.resizable)?`${this.dragEnabled?e.dragEnabled:""} ${this.resizable?e.resizeEnabled:""}`:null}onBeforeOpen(){this.calciteDialogBeforeOpen.emit()}onOpen(){this.calciteDialogOpen.emit(),H(this)}onBeforeClose(){this.calciteDialogBeforeClose.emit()}onClose(){this.calciteDialogClose.emit(),k(this)}toggleDialog(e){this.ignoreOpenChange||(e?this.openDialog():this.closeDialog())}handleOpenedChange(e){let{transitionEl:t}=this;t&&(t.classList.toggle(p.openingActive,e),L(this))}async triggerInteractModifiers(){let{interaction:e}=this;e&&(await e.reflow({name:"drag"}),await e.reflow({name:"resize"}))}getTransitionElDOMRect(){return this.transitionEl.getBoundingClientRect()}handleKeyDown(e){let{key:t,shiftKey:i,defaultPrevented:a}=e,{dragEnabled:n,resizable:s,resizePosition:l,dragPosition:o,transitionEl:d}=this;if(!(a||!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t)))switch(t){case"ArrowUp":i&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().height-m,type:"blockSize"}),l.bottom-=m,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):n&&(o.y-=x,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break;case"ArrowDown":i&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().height+m,type:"blockSize"}),l.bottom+=m,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):n&&(o.y+=x,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break;case"ArrowLeft":i&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width-m,type:"inlineSize"}),l.right-=m,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):n&&(o.x-=x,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break;case"ArrowRight":i&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width+m,type:"inlineSize"}),l.right+=m,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):n&&(o.x+=x,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break}}updateTransform(){let{dragPosition:{x:e,y:t},resizePosition:i,transitionEl:a,dragEnabled:n,resizable:s}=this;if(!a)return;if(!n&&!s){a.style.transform=null;return}let{top:l,right:o,bottom:d,left:z}=this.getAdjustedResizePosition(i),u=Math.round(e+z+o),h=Math.round(t+l+d);a.style.transform=u||h?`translate(${u}px, ${h}px)`:null}updateSize({type:e,size:t}){let{transitionEl:i}=this;i&&(i.style[e]=t!==null?`${Math.round(t)}px`:null)}cleanupInteractions(){this.interaction?.unset(),this.updateSize({size:null,type:"inlineSize"}),this.updateSize({size:null,type:"blockSize"}),this.dragPosition={...K},this.resizePosition={..._},this.updateTransform()}setupInteractions(){this.cleanupInteractions();let{el:e,transitionEl:t,resizable:i,dragEnabled:a,resizePosition:n,dragPosition:s}=this;if(!(!t||!this.open)){if((i||a)&&(this.interaction=v(t,{context:e.ownerDocument})),i){let{minInlineSize:l,minBlockSize:o,maxInlineSize:d,maxBlockSize:z}=window.getComputedStyle(t);this.interaction.resizable({edges:{top:!0,right:!0,bottom:!0,left:!0},modifiers:[v.modifiers.restrictSize({min:{width:f(l)?parseInt(l):0,height:f(o)?parseInt(o):0},max:{width:f(d)?parseInt(d):window.innerWidth,height:f(z)?parseInt(z):window.innerHeight}}),v.modifiers.restrict({restriction:"parent"})],listeners:{move:({rect:u,deltaRect:h})=>{h&&(n.top+=h.top,n.right+=h.right,n.bottom+=h.bottom,n.left+=h.left),this.updateSize({size:u.width,type:"inlineSize"}),this.updateSize({size:u.height,type:"blockSize"}),this.updateTransform()}}})}a&&this.interaction.draggable({modifiers:[v.modifiers.restrictRect({restriction:"parent"})],listeners:{move:({dx:l,dy:o})=>{s.x+=l,s.y+=o,this.updateTransform()}}})}}getAdjustedResizePosition({top:e,right:t,bottom:i,left:a}){let n=e/2,s=t/2,l=i/2,o=a/2;switch(this.placement){case"top":return{top:e,right:s,bottom:0,left:o};case"top-start":return{top:e,right:0,bottom:0,left:a};case"top-end":return{top:e,right:t,bottom:0,left:0};case"bottom":return{top:0,right:s,bottom:i,left:o};case"bottom-start":return{top:0,right:0,bottom:i,left:a};case"bottom-end":return{top:0,right:t,bottom:i,left:0};case"cover":case"center":default:return{top:n,right:s,bottom:l,left:o}}}setTransitionEl(e){this.transitionEl=e,this.setupInteractions()}handleInternalPanelScroll(e){e.target===this.panelEl.value&&(e.stopPropagation(),this.calciteDialogScroll.emit())}handleInternalPanelCloseClick(e){e.target===this.panelEl.value&&(e.stopPropagation(),this.open=!1)}handlePanelKeyDown(e){this.escapeDisabled&&e.key==="Escape"&&e.preventDefault()}async openDialog(){await this.componentOnReady(),this.el.addEventListener("calciteDialogOpen",this.openEnd),this.opened=!0,this.updateOverflowHiddenClass()}handleOutsideClose(){this.outsideCloseDisabled||(this.open=!1)}async closeDialog(){if(this.beforeClose)try{await this.beforeClose()}catch{requestAnimationFrame(()=>{this.ignoreOpenChange=!0,this.open=!0,this.ignoreOpenChange=!1});return}$--,this.opened=!1,this.updateOverflowHiddenClass()}updateOverflowHiddenClass(){this.opened&&!this.embedded&&this.modal?this.addOverflowHiddenClass():this.removeOverflowHiddenClass()}addOverflowHiddenClass(){$===0&&(q=document.documentElement.style.overflow),$++,document.documentElement.style.setProperty("overflow","hidden")}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",q)}handleMutationObserver(){this.updateFocusTrapElements()}render(){let{assistiveText:e,description:t,heading:i,opened:a}=this;return w`<div class=${b({[p.container]:!0,[p.containerOpen]:a,[p.containerEmbedded]:this.embedded})}>${this.modal?w`<calcite-scrim class=${b(p.scrim)} @click=${this.handleOutsideClose}></calcite-scrim>`:null}<div .ariaDescription=${t} .ariaLabel=${i} .ariaModal=${this.modal} class=${b({[p.dialog]:!0,[F("width",this.width,this.widthScale)]:!!(this.width||this.widthScale)})} @keydown=${this.handleKeyDown} role=dialog ${y(this.setTransitionEl)}>${e?T("assistive-text",w`<div aria-live=polite class=${b(p.assistiveText)}>${e}</div>`):null}<slot name=${c.content}><calcite-panel .beforeClose=${this.beforeClose} class=${b(p.panel)} .closable=${!this.closeDisabled} .closed=${!a} .description=${t} .heading=${i} .headingLevel=${this.headingLevel} .loading=${this.loading} .menuOpen=${this.menuOpen} .messageOverrides=${this.messageOverrides} @keydown=${this.handlePanelKeyDown} @calcitePanelClose=${this.handleInternalPanelCloseClick} @calcitePanelScroll=${this.handleInternalPanelScroll} .overlayPositioning=${this.overlayPositioning} .scale=${this.scale} ${y(this.panelEl)}><slot name=${c.actionBar} slot=${r.actionBar}></slot><slot name=${c.alerts} slot=${r.alerts}></slot><slot name=${c.headerActionsStart} slot=${r.headerActionsStart}></slot><slot name=${c.headerActionsEnd} slot=${r.headerActionsEnd}></slot><slot name=${c.headerContent} slot=${r.headerContent}></slot><slot name=${c.headerMenuActions} slot=${r.headerMenuActions}></slot><slot name=${c.fab} slot=${r.fab}></slot><slot name=${c.contentTop} slot=${r.contentTop}></slot><slot name=${c.contentBottom} slot=${r.contentBottom}></slot><slot name=${c.footerStart} slot=${r.footerStart}></slot><slot name=${c.footer} slot=${r.footer}></slot><slot name=${c.footerEnd} slot=${r.footerEnd}></slot><slot></slot></calcite-panel></slot></div></div>`}};O("calcite-dialog",D);export{D as Dialog};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.89
4
+ * v3.0.0-next.90
5
5
  */
6
- import{a as V}from"./K4B5BI3W.js";var Z=60,z=Z*60,P=z*24,at=P*7,A=1e3,U=Z*A,k=z*A,Q=P*A,X=at*A,x="millisecond",O="second",p="minute",E="hour",d="day",g="week",S="month",F="quarter",I="year",m="date",J="YYYY-MM-DDTHH:mm:ssZ",j="Invalid Date",K=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,B=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var b=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},it=function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),a=n%60;return(e<=0?"+":"-")+b(r,2,"0")+":"+b(a,2,"0")},st=function u(t,e){if(t.date()<e.date())return-u(e,t);var n=(e.year()-t.year())*12+(e.month()-t.month()),r=t.clone().add(n,S),a=e-r<0,i=t.clone().add(n+(a?-1:1),S);return+(-(n+(e-r)/(a?r-i:i-r))||0)},ut=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},ot=function(t){var e={M:S,y:I,w:g,d,D:m,h:E,m:p,s:O,ms:x,Q:F};return e[t]||String(t||"").toLowerCase().replace(/s$/,"")},ct=function(t){return t===void 0},tt={s:b,z:it,m:st,a:ut,p:ot,u:ct};var w="en",N={};N[w]=V;var rt="$isDayjsObject",G=function(t){return t instanceof W||!!(t&&t[rt])},R=function u(t,e,n){var r;if(!t)return w;if(typeof t=="string"){var a=t.toLowerCase();N[a]&&(r=a),e&&(N[a]=e,r=a);var i=t.split("-");if(!r&&i.length>1)return u(i[0])}else{var o=t.name;N[o]=t,r=o}return!n&&r&&(w=r),r||!n&&w},C=function(t,e){if(G(t))return t.clone();var n=typeof e=="object"?e:{};return n.date=t,n.args=arguments,new W(n)},ft=function(t,e){return C(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})},s=tt;s.l=R;s.i=G;s.w=ft;var ht=function(t){var e=t.date,n=t.utc;if(e===null)return new Date(NaN);if(s.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var r=e.match(K);if(r){var a=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)},W=function(){function u(e){this.$L=R(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[rt]=!0}var t=u.prototype;return t.parse=function(n){this.$d=ht(n),this.init()},t.init=function(){var n=this.$d;this.$y=n.getFullYear(),this.$M=n.getMonth(),this.$D=n.getDate(),this.$W=n.getDay(),this.$H=n.getHours(),this.$m=n.getMinutes(),this.$s=n.getSeconds(),this.$ms=n.getMilliseconds()},t.$utils=function(){return s},t.isValid=function(){return this.$d.toString()!==j},t.isSame=function(n,r){var a=C(n);return this.startOf(r)<=a&&a<=this.endOf(r)},t.isAfter=function(n,r){return C(n)<this.startOf(r)},t.isBefore=function(n,r){return this.endOf(r)<C(n)},t.$g=function(n,r,a){return s.u(n)?this[r]:this.set(a,n)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(n,r){var a=this,i=s.u(r)?!0:r,o=s.p(n),c=function(y,M){var $=s.w(a.$u?Date.UTC(a.$y,M,y):new Date(a.$y,M,y),a);return i?$:$.endOf(d)},v=function(y,M){var $=[0,0,0,0],L=[23,59,59,999];return s.w(a.toDate()[y].apply(a.toDate("s"),(i?$:L).slice(M)),a)},f=this.$W,D=this.$M,h=this.$D,l="set"+(this.$u?"UTC":"");switch(o){case I:return i?c(1,0):c(31,11);case S:return i?c(1,D):c(0,D+1);case g:{var _=this.$locale().weekStart||0,T=(f<_?f+7:f)-_;return c(i?h-T:h+(6-T),D)}case d:case m:return v(l+"Hours",0);case E:return v(l+"Minutes",1);case p:return v(l+"Seconds",2);case O:return v(l+"Milliseconds",3);default:return this.clone()}},t.endOf=function(n){return this.startOf(n,!1)},t.$set=function(n,r){var a,i=s.p(n),o="set"+(this.$u?"UTC":""),c=(a={},a[d]=o+"Date",a[m]=o+"Date",a[S]=o+"Month",a[I]=o+"FullYear",a[E]=o+"Hours",a[p]=o+"Minutes",a[O]=o+"Seconds",a[x]=o+"Milliseconds",a)[i],v=i===d?this.$D+(r-this.$W):r;if(i===S||i===I){var f=this.clone().set(m,1);f.$d[c](v),f.init(),this.$d=f.set(m,Math.min(this.$D,f.daysInMonth())).$d}else c&&this.$d[c](v);return this.init(),this},t.set=function(n,r){return this.clone().$set(n,r)},t.get=function(n){return this[s.p(n)]()},t.add=function(n,r){var a=this,i;n=Number(n);var o=s.p(r),c=function(h){var l=C(a);return s.w(l.date(l.date()+Math.round(h*n)),a)};if(o===S)return this.set(S,this.$M+n);if(o===I)return this.set(I,this.$y+n);if(o===d)return c(1);if(o===g)return c(7);var v=(i={},i[p]=U,i[E]=k,i[O]=A,i)[o]||1,f=this.$d.getTime()+n*v;return s.w(f,this)},t.subtract=function(n,r){return this.add(n*-1,r)},t.format=function(n){var r=this,a=this.$locale();if(!this.isValid())return a.invalidDate||j;var i=n||J,o=s.z(this),c=this.$H,v=this.$m,f=this.$M,D=a.weekdays,h=a.months,l=a.meridiem,_=function($,L,Y,nt){return $&&($[L]||$(r,i))||Y[L].slice(0,nt)},T=function($){return s.s(c%12||12,$,"0")},H=l||function(M,$,L){var Y=M<12?"AM":"PM";return L?Y.toLowerCase():Y},y=function($){switch($){case"YY":return String(r.$y).slice(-2);case"YYYY":return s.s(r.$y,4,"0");case"M":return f+1;case"MM":return s.s(f+1,2,"0");case"MMM":return _(a.monthsShort,f,h,3);case"MMMM":return _(h,f);case"D":return r.$D;case"DD":return s.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return _(a.weekdaysMin,r.$W,D,2);case"ddd":return _(a.weekdaysShort,r.$W,D,3);case"dddd":return D[r.$W];case"H":return String(c);case"HH":return s.s(c,2,"0");case"h":return T(1);case"hh":return T(2);case"a":return H(c,v,!0);case"A":return H(c,v,!1);case"m":return String(v);case"mm":return s.s(v,2,"0");case"s":return String(r.$s);case"ss":return s.s(r.$s,2,"0");case"SSS":return s.s(r.$ms,3,"0");case"Z":return o;default:break}return null};return i.replace(B,function(M,$){return $||y(M)||o.replace(":","")})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(n,r,a){var i=this,o=s.p(r),c=C(n),v=(c.utcOffset()-this.utcOffset())*U,f=this-c,D=function(){return s.m(i,c)},h;switch(o){case I:h=D()/12;break;case S:h=D();break;case F:h=D()/3;break;case g:h=(f-v)/X;break;case d:h=(f-v)/Q;break;case E:h=f/k;break;case p:h=f/U;break;case O:h=f/A;break;default:h=f;break}return a?h:s.a(h)},t.daysInMonth=function(){return this.endOf(S).$D},t.$locale=function(){return N[this.$L]},t.locale=function(n,r){if(!n)return this.$L;var a=this.clone(),i=R(n,r,!0);return i&&(a.$L=i),a},t.clone=function(){return s.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},u}(),et=W.prototype;C.prototype=et;[["$ms",x],["$s",O],["$m",p],["$H",E],["$W",d],["$M",S],["$y",I],["$D",m]].forEach(function(u){et[u[1]]=function(t){return this.$g(t,u[0],u[1])}});C.extend=function(u,t){return u.$i||(u(t,W,C),u.$i=!0),C};C.locale=R;C.isDayjs=G;C.unix=function(u){return C(u*1e3)};C.en=N[w];C.Ls=N;C.p={};var St=C;export{J as a,St as b};
6
+ import{a as V}from"./OSVPIZ7V.js";var Z=60,z=Z*60,P=z*24,at=P*7,A=1e3,U=Z*A,k=z*A,Q=P*A,X=at*A,x="millisecond",O="second",p="minute",E="hour",d="day",g="week",S="month",F="quarter",I="year",m="date",J="YYYY-MM-DDTHH:mm:ssZ",j="Invalid Date",K=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,B=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var b=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},it=function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),a=n%60;return(e<=0?"+":"-")+b(r,2,"0")+":"+b(a,2,"0")},st=function u(t,e){if(t.date()<e.date())return-u(e,t);var n=(e.year()-t.year())*12+(e.month()-t.month()),r=t.clone().add(n,S),a=e-r<0,i=t.clone().add(n+(a?-1:1),S);return+(-(n+(e-r)/(a?r-i:i-r))||0)},ut=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},ot=function(t){var e={M:S,y:I,w:g,d,D:m,h:E,m:p,s:O,ms:x,Q:F};return e[t]||String(t||"").toLowerCase().replace(/s$/,"")},ct=function(t){return t===void 0},tt={s:b,z:it,m:st,a:ut,p:ot,u:ct};var w="en",N={};N[w]=V;var rt="$isDayjsObject",G=function(t){return t instanceof W||!!(t&&t[rt])},R=function u(t,e,n){var r;if(!t)return w;if(typeof t=="string"){var a=t.toLowerCase();N[a]&&(r=a),e&&(N[a]=e,r=a);var i=t.split("-");if(!r&&i.length>1)return u(i[0])}else{var o=t.name;N[o]=t,r=o}return!n&&r&&(w=r),r||!n&&w},C=function(t,e){if(G(t))return t.clone();var n=typeof e=="object"?e:{};return n.date=t,n.args=arguments,new W(n)},ft=function(t,e){return C(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})},s=tt;s.l=R;s.i=G;s.w=ft;var ht=function(t){var e=t.date,n=t.utc;if(e===null)return new Date(NaN);if(s.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var r=e.match(K);if(r){var a=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)},W=function(){function u(e){this.$L=R(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[rt]=!0}var t=u.prototype;return t.parse=function(n){this.$d=ht(n),this.init()},t.init=function(){var n=this.$d;this.$y=n.getFullYear(),this.$M=n.getMonth(),this.$D=n.getDate(),this.$W=n.getDay(),this.$H=n.getHours(),this.$m=n.getMinutes(),this.$s=n.getSeconds(),this.$ms=n.getMilliseconds()},t.$utils=function(){return s},t.isValid=function(){return this.$d.toString()!==j},t.isSame=function(n,r){var a=C(n);return this.startOf(r)<=a&&a<=this.endOf(r)},t.isAfter=function(n,r){return C(n)<this.startOf(r)},t.isBefore=function(n,r){return this.endOf(r)<C(n)},t.$g=function(n,r,a){return s.u(n)?this[r]:this.set(a,n)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(n,r){var a=this,i=s.u(r)?!0:r,o=s.p(n),c=function(y,M){var $=s.w(a.$u?Date.UTC(a.$y,M,y):new Date(a.$y,M,y),a);return i?$:$.endOf(d)},v=function(y,M){var $=[0,0,0,0],L=[23,59,59,999];return s.w(a.toDate()[y].apply(a.toDate("s"),(i?$:L).slice(M)),a)},f=this.$W,D=this.$M,h=this.$D,l="set"+(this.$u?"UTC":"");switch(o){case I:return i?c(1,0):c(31,11);case S:return i?c(1,D):c(0,D+1);case g:{var _=this.$locale().weekStart||0,T=(f<_?f+7:f)-_;return c(i?h-T:h+(6-T),D)}case d:case m:return v(l+"Hours",0);case E:return v(l+"Minutes",1);case p:return v(l+"Seconds",2);case O:return v(l+"Milliseconds",3);default:return this.clone()}},t.endOf=function(n){return this.startOf(n,!1)},t.$set=function(n,r){var a,i=s.p(n),o="set"+(this.$u?"UTC":""),c=(a={},a[d]=o+"Date",a[m]=o+"Date",a[S]=o+"Month",a[I]=o+"FullYear",a[E]=o+"Hours",a[p]=o+"Minutes",a[O]=o+"Seconds",a[x]=o+"Milliseconds",a)[i],v=i===d?this.$D+(r-this.$W):r;if(i===S||i===I){var f=this.clone().set(m,1);f.$d[c](v),f.init(),this.$d=f.set(m,Math.min(this.$D,f.daysInMonth())).$d}else c&&this.$d[c](v);return this.init(),this},t.set=function(n,r){return this.clone().$set(n,r)},t.get=function(n){return this[s.p(n)]()},t.add=function(n,r){var a=this,i;n=Number(n);var o=s.p(r),c=function(h){var l=C(a);return s.w(l.date(l.date()+Math.round(h*n)),a)};if(o===S)return this.set(S,this.$M+n);if(o===I)return this.set(I,this.$y+n);if(o===d)return c(1);if(o===g)return c(7);var v=(i={},i[p]=U,i[E]=k,i[O]=A,i)[o]||1,f=this.$d.getTime()+n*v;return s.w(f,this)},t.subtract=function(n,r){return this.add(n*-1,r)},t.format=function(n){var r=this,a=this.$locale();if(!this.isValid())return a.invalidDate||j;var i=n||J,o=s.z(this),c=this.$H,v=this.$m,f=this.$M,D=a.weekdays,h=a.months,l=a.meridiem,_=function($,L,Y,nt){return $&&($[L]||$(r,i))||Y[L].slice(0,nt)},T=function($){return s.s(c%12||12,$,"0")},H=l||function(M,$,L){var Y=M<12?"AM":"PM";return L?Y.toLowerCase():Y},y=function($){switch($){case"YY":return String(r.$y).slice(-2);case"YYYY":return s.s(r.$y,4,"0");case"M":return f+1;case"MM":return s.s(f+1,2,"0");case"MMM":return _(a.monthsShort,f,h,3);case"MMMM":return _(h,f);case"D":return r.$D;case"DD":return s.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return _(a.weekdaysMin,r.$W,D,2);case"ddd":return _(a.weekdaysShort,r.$W,D,3);case"dddd":return D[r.$W];case"H":return String(c);case"HH":return s.s(c,2,"0");case"h":return T(1);case"hh":return T(2);case"a":return H(c,v,!0);case"A":return H(c,v,!1);case"m":return String(v);case"mm":return s.s(v,2,"0");case"s":return String(r.$s);case"ss":return s.s(r.$s,2,"0");case"SSS":return s.s(r.$ms,3,"0");case"Z":return o;default:break}return null};return i.replace(B,function(M,$){return $||y(M)||o.replace(":","")})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(n,r,a){var i=this,o=s.p(r),c=C(n),v=(c.utcOffset()-this.utcOffset())*U,f=this-c,D=function(){return s.m(i,c)},h;switch(o){case I:h=D()/12;break;case S:h=D();break;case F:h=D()/3;break;case g:h=(f-v)/X;break;case d:h=(f-v)/Q;break;case E:h=f/k;break;case p:h=f/U;break;case O:h=f/A;break;default:h=f;break}return a?h:s.a(h)},t.daysInMonth=function(){return this.endOf(S).$D},t.$locale=function(){return N[this.$L]},t.locale=function(n,r){if(!n)return this.$L;var a=this.clone(),i=R(n,r,!0);return i&&(a.$L=i),a},t.clone=function(){return s.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},u}(),et=W.prototype;C.prototype=et;[["$ms",x],["$s",O],["$m",p],["$H",E],["$W",d],["$M",S],["$y",I],["$D",m]].forEach(function(u){et[u[1]]=function(t){return this.$g(t,u[0],u[1])}});C.extend=function(u,t){return u.$i||(u(t,W,C),u.$i=!0),C};C.locale=R;C.isDayjs=G;C.unix=function(u){return C(u*1e3)};C.en=N[w];C.Ls=N;C.p={};var St=C;export{J as a,St as b};
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.89
4
+ * v3.0.0-next.90
5
5
  */
6
- import{a as M,b as f,c,d as F}from"./IGNYHO4C.js";import{p as v}from"./M6GU2UAL.js";import{a as D}from"./3ZNF77Z5.js";import{a as p}from"./UDJU4KUJ.js";import{a as B}from"./Q5NQHV23.js";import{a as $}from"./3TKV7ZDA.js";import{a as m}from"./UG2PDGJH.js";import{a as T}from"./WXB3LDP3.js";import{a as b,b as r}from"./SFIJE3NQ.js";import{b as u,n as C,u as n,v as g}from"./XXNVFFEM.js";import{a as O,b as S,d as E}from"./TA3B6RWX.js";import"./AZIXULPD.js";import{I as z,d as k,e as a,i as y,u as l,v as w,w as i,z as h}from"./FHHU5FBE.js";var t={modal:"modal",title:"title",header:"header",footer:"footer",scrim:"scrim",back:"back",close:"close",secondary:"secondary",primary:"primary",container:"container",containerOpen:"container--open",containerEmbedded:"container--embedded",content:"content",contentNoFooter:"content--no-footer",contentBottom:"content-bottom",contentTop:"content-top",openingIdle:"modal--opening-idle",openingActive:"modal--opening-active",closingIdle:"modal--closing-idle",closingActive:"modal--closing-active"},L={close:"x"},s={content:"content",contentBottom:"content-bottom",contentTop:"content-top",header:"header",back:"back",secondary:"secondary",primary:"primary"},A=k`:host{--calcite-modal-scrim-background: rgba(0, 0, 0, .85);position:fixed;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;opacity:0;visibility:hidden!important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88);--calcite-modal-scrim-background-internal: rgba(0, 0, 0, .85)}.content-top[hidden],.content-bottom[hidden]{display:none}.container{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow-y:hidden;color:var(--calcite-color-text-2);opacity:0;visibility:hidden!important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88)}:host([scale=s]){--calcite-modal-padding-internal: .75rem;--calcite-modal-padding-large-internal: 1rem;--calcite-modal-title-text-internal: var(--calcite-font-size-1);--calcite-modal-content-text-internal: var(--calcite-font-size--1)}:host([scale=m]){--calcite-modal-padding-internal: 1rem;--calcite-modal-padding-large-internal: 1.25rem;--calcite-modal-title-text-internal: var(--calcite-font-size-2);--calcite-modal-content-text-internal: var(--calcite-font-size-0)}:host([scale=l]){--calcite-modal-padding-internal: 1.25rem;--calcite-modal-padding-large-internal: 1.5rem;--calcite-modal-title-text-internal: var(--calcite-font-size-3);--calcite-modal-content-text-internal: var(--calcite-font-size-1)}.scrim{--calcite-scrim-background: var(--calcite-modal-scrim-background, var(--calcite-color-transparent-scrim));position:absolute;inset:0;display:flex;overflow-y:hidden}.modal{pointer-events:none;z-index:var(--calcite-z-index-modal);float:none;margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:.25rem;background-color:var(--calcite-color-foreground-1);opacity:0;--tw-shadow: 0 2px 12px -4px rgba(0, 0, 0, .2), 0 2px 4px -2px rgba(0, 0, 0, .16);--tw-shadow-colored: 0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);-webkit-overflow-scrolling:touch;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88);--calcite-modal-hidden-position: translate3d(0, 20px, 0);--calcite-modal-shown-position: translate3d(0, 0, 0)}.modal--opening-idle{transform:var(--calcite-modal-hidden-position)}.modal--opening-active,.modal--closing-idle{transform:var(--calcite-modal-shown-position)}.modal--closing-active{transform:var(--calcite-modal-hidden-position)}:host([opened]){opacity:1;visibility:visible!important;transition-delay:0ms}.container--open{opacity:1;visibility:visible!important;transition-delay:0ms}.container--open .modal{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),visibility 0ms linear,opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),max-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),max-block-size var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88);transition-delay:0ms}.header{z-index:var(--calcite-z-index-header);display:flex;min-inline-size:0px;max-inline-size:100%;border-start-start-radius:.25rem;border-start-end-radius:.25rem;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);flex:0 0 auto}.close{order:2;margin:0;cursor:pointer;appearance:none;border-style:none;background-color:transparent;color:var(--calcite-color-text-3);outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-internal);flex:0 0 auto}.close calcite-icon{vertical-align:-2px}.close:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.close:hover,.close:focus,.close:active{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}.title{order:1;display:flex;min-inline-size:0px;align-items:center;flex:1 1 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}slot[name=header]::slotted(*),*::slotted([slot=header]){margin:0;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-1);font-size:var(--calcite-modal-title-text-internal)}.content{position:relative;box-sizing:border-box;display:block;block-size:100%;overflow:auto;padding:0;background-color:var(--calcite-modal-content-background, var(--calcite-color-foreground-1));max-block-size:100%;padding:var(--calcite-modal-content-padding, var(--calcite-modal-padding-internal))}.content-top,.content-bottom{z-index:var(--calcite-z-index-header);display:flex;border-width:0px;border-style:solid;border-color:var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);flex:0 0 auto;padding:var(--calcite-modal-padding-internal)}.content-top{min-inline-size:0px;max-inline-size:100%;border-block-end-width:1px}.content-bottom{margin-block-start:auto;box-sizing:border-box;inline-size:100%;justify-content:space-between;border-block-start-width:1px}.content-top:not(.header~.content-top){border-start-start-radius:.25rem;border-start-end-radius:.25rem}.content-bottom:not(.content-bottom~.footer),.content--no-footer{border-end-end-radius:.25rem;border-end-start-radius:.25rem}slot[name=content]::slotted(*),*::slotted([slot=content]){font-size:var(--calcite-modal-context-text-internal)}.footer{z-index:var(--calcite-z-index-header);margin-block-start:auto;box-sizing:border-box;display:flex;inline-size:100%;justify-content:space-between;border-end-end-radius:.25rem;border-end-start-radius:.25rem;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);flex:0 0 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}.footer--hide-back .back,.footer--hide-secondary .secondary{display:none}.back{display:block;margin-inline-end:auto}.secondary{margin-inline:.25rem;display:block}slot[name=primary]{display:block}:host([width=small]) .modal{inline-size:auto}:host([width-scale=s]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 32rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 35rem){:host([width-scale=s]) .modal{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width-scale=s]) .content{flex:1 1 auto;max-block-size:unset}:host([width-scale=s][docked]) .container{align-items:flex-end}}:host([width-scale=m]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 48rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 51rem){:host([width-scale=m]) .modal{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width-scale=m]) .content{flex:1 1 auto;max-block-size:unset}:host([width-scale=m][docked]) .container{align-items:flex-end}}:host([width-scale=l]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 94rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 97rem){:host([width-scale=l]) .modal{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width-scale=l]) .content{flex:1 1 auto;max-block-size:unset}:host([width-scale=l][docked]) .container{align-items:flex-end}}:host([fullscreen]) .modal{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0;--calcite-modal-hidden-position: translate3D(0, 20px, 0) scale(.95);--calcite-modal-shown-position: translate3D(0, 0, 0) scale(1)}:host([fullscreen]) .content{max-block-size:100%;flex:1 1 auto}:host([opened][fullscreen]) .header,:host([opened][fullscreen]) .footer,:host([opened][fullscreen]) .content-top,:host([opened][fullscreen]) .content-bottom{border-radius:0}:host([docked]) .modal{block-size:var(--calcite-modal-height, auto)}:host([docked]) .content{block-size:auto;flex:1 1 auto}:host([kind=brand]) .modal{border-color:var(--calcite-color-brand)}:host([kind=danger]) .modal{border-color:var(--calcite-color-status-danger)}:host([kind=info]) .modal{border-color:var(--calcite-color-status-info)}:host([kind=success]) .modal{border-color:var(--calcite-color-status-success)}:host([kind=warning]) .modal{border-color:var(--calcite-color-status-warning)}:host([kind=brand]) .modal,:host([kind=danger]) .modal,:host([kind=info]) .modal,:host([kind=success]) .modal,:host([kind=warning]) .modal{border-width:0px;border-block-start-width:4px;border-style:solid}:host([kind=brand]) .header,:host([kind=brand]) .content-top,:host([kind=danger]) .header,:host([kind=danger]) .content-top,:host([kind=info]) .header,:host([kind=info]) .content-top,:host([kind=success]) .header,:host([kind=success]) .content-top,:host([kind=warning]) .header,:host([kind=warning]) .content-top{border-radius:.25rem;border-end-end-radius:0px;border-end-start-radius:0px}@media screen and (max-width: 860px){* slot[name=header]::slotted(content-top),* content-top::slotted([slot=header]){font-size:var(--calcite-font-size-1)}.footer,.content-bottom{position:sticky;inset-block-end:0px}}@media screen and (max-width: 480px){.footer,.content-bottom{flex-direction:column}.back,.secondary{margin:0;margin-block-end:.25rem}}:host([hidden]){display:none}[hidden]{display:none}`,d=0,H="",x=class extends w{constructor(){super(),this.closeButtonEl=b(),this.cssVarObserver=m("mutation",()=>{this.updateSizeCssVars()}),this.ignoreOpenChange=!1,this.modalContent=b(),this.mutationObserver=m("mutation",()=>this.updateFocusTrapElements()),this._open=!1,this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteModalOpen",this.openEnd)},this.openTransitionProp="opacity",this.hasBack=!1,this.hasContentBottom=!1,this.hasContentTop=!1,this.hasFooter=!1,this.hasPrimary=!1,this.hasSecondary=!1,this.closeButtonDisabled=!1,this.escapeDisabled=!1,this.focusTrapDisabled=!1,this.messages=T(),this.opened=!1,this.outsideCloseDisabled=!1,this.scale="m",this.widthScale="m",this.calciteModalBeforeClose=l({cancelable:!1}),this.calciteModalBeforeOpen=l({cancelable:!1}),this.calciteModalClose=l({cancelable:!1}),this.calciteModalOpen=l({cancelable:!1}),this.keyDownHandler=e=>{let{defaultPrevented:o,key:P}=e;!o&&this.focusTrapDisabled&&this.open&&!this.escapeDisabled&&P==="Escape"&&(e.preventDefault(),this.open=!1)},this.listen("keydown",this.keyDownHandler)}static{this.properties={contentEl:16,cssHeight:16,cssWidth:16,hasBack:16,hasContentBottom:16,hasContentTop:16,hasFooter:16,hasPrimary:16,hasSecondary:16,titleEl:16,beforeClose:0,closeButtonDisabled:7,docked:7,escapeDisabled:7,focusTrapDisabled:7,fullscreen:7,kind:3,messageOverrides:0,open:7,opened:7,outsideCloseDisabled:7,scale:3,widthScale:3}}static{this.styles=A}get open(){return this._open}set open(e){let o=this._open;e!==o&&(this._open=e,this.toggleModal(e))}async scrollContent(e=0,o=0){this.modalContent.value&&(this.modalContent.value.scrollTo?this.modalContent.value.scrollTo({top:e,left:o,behavior:"smooth"}):(this.modalContent.value.scrollTop=e,this.modalContent.value.scrollLeft=o))}async setFocus(){await E(this),C(this.el)}async updateFocusTrapElements(){F(this)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.cssVarObserver?.observe(this.el,{attributeFilter:["style"]}),this.updateSizeCssVars(),M(this,{focusTrapOptions:{clickOutsideDeactivates:!1,escapeDeactivates:e=>(!e.defaultPrevented&&!this.escapeDisabled&&(this.open=!1,e.preventDefault()),!1)}})}async load(){$.deprecated("component",{name:"modal",removalVersion:4,suggested:"dialog"}),O(this),this.open&&this.openModal()}willUpdate(e){e.has("focusTrapDisabled")&&(this.hasUpdated||this.focusTrapDisabled!==!1)&&this.handleFocusTrapDisabled(this.focusTrapDisabled),(e.has("hasBack")&&(this.hasUpdated||this.hasBack!==!1)||e.has("hasPrimary")&&(this.hasUpdated||this.hasPrimary!==!1)||e.has("hasSecondary")&&(this.hasUpdated||this.hasSecondary!==!1))&&(this.hasFooter=this.hasBack||this.hasPrimary||this.hasSecondary),e.has("opened")&&(this.hasUpdated||this.opened!==!1)&&this.handleOpenedChange(this.opened)}loaded(){S(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),this.cssVarObserver?.disconnect(),c(this)}handleFocusTrapDisabled(e){this.open&&(e?c(this):f(this))}handleHeaderSlotChange(e){this.titleEl=g(e)[0]}handleContentSlotChange(e){this.contentEl=g(e)[0]}handleBackSlotChange(e){this.hasBack=n(e)}handlePrimarySlotChange(e){this.hasPrimary=n(e)}handleSecondarySlotChange(e){this.hasSecondary=n(e)}setTransitionEl(e){this.transitionEl=e}onBeforeOpen(){this.transitionEl?.classList.add(t.openingActive),this.calciteModalBeforeOpen.emit()}onOpen(){this.transitionEl?.classList.remove(t.openingIdle,t.openingActive),this.calciteModalOpen.emit(),f(this)}onBeforeClose(){this.transitionEl?.classList.add(t.closingActive),this.calciteModalBeforeClose.emit()}onClose(){this.transitionEl?.classList.remove(t.closingIdle,t.closingActive),this.calciteModalClose.emit(),c(this)}toggleModal(e){this.ignoreOpenChange||(e?this.openModal():this.closeModal())}handleOpenedChange(e){let o=e?t.openingIdle:t.closingIdle;this.transitionEl.classList.add(o),D(this)}handleCloseClick(){this.open=!1}async openModal(){await this.componentOnReady(),this.el.addEventListener("calciteModalOpen",this.openEnd),this.opened=!0,this.titleId=u(this.titleEl),this.contentId=u(this.contentEl),v(this.el)===document.body&&(d===0&&(H=document.documentElement.style.overflow),d++,document.documentElement.style.setProperty("overflow","hidden"))}handleOutsideClose(){this.outsideCloseDisabled||(this.open=!1)}async closeModal(){if(this.beforeClose)try{await this.beforeClose(this.el)}catch{requestAnimationFrame(()=>{this.ignoreOpenChange=!0,this.open=!0,this.ignoreOpenChange=!1});return}v(this.el)===document.body&&(d--,d===0&&this.removeOverflowHiddenClass()),this.opened=!1}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",H)}updateSizeCssVars(){this.cssWidth=getComputedStyle(this.el).getPropertyValue("--calcite-modal-width"),this.cssHeight=getComputedStyle(this.el).getPropertyValue("--calcite-modal-height")}contentTopSlotChangeHandler(e){this.hasContentTop=n(e)}contentBottomSlotChangeHandler(e){this.hasContentBottom=n(e)}render(){return h(this.el,"aria-describedby",this.contentId),h(this.el,"aria-labelledby",this.titleId),this.el.ariaModal="true",this.el.role="dialog",a`<div class=${i({[t.container]:!0,[t.containerOpen]:this.opened})}><calcite-scrim class=${i(t.scrim)} @click=${this.handleOutsideClose}></calcite-scrim>${this.renderStyle()}<div class=${i({[t.modal]:!0})} ${r(this.setTransitionEl)}><div class=${i(t.header)}>${this.renderCloseButton()}<header class=${i(t.title)}><slot name=${t.header} @slotchange=${this.handleHeaderSlotChange}></slot></header></div>${this.renderContentTop()}<div class=${i({[t.content]:!0,[t.contentNoFooter]:!this.hasFooter})} ${r(this.modalContent)}><slot name=${s.content} @slotchange=${this.handleContentSlotChange}></slot></div>${this.renderContentBottom()}${this.renderFooter()}</div></div>`}renderFooter(){return p("footer",a`<div class=${i(t.footer)} .hidden=${!this.hasFooter}><span class=${i(t.back)}><slot name=${s.back} @slotchange=${this.handleBackSlotChange}></slot></span><span class=${i(t.secondary)}><slot name=${s.secondary} @slotchange=${this.handleSecondarySlotChange}></slot></span><span class=${i(t.primary)}><slot name=${s.primary} @slotchange=${this.handlePrimarySlotChange}></slot></span></div>`)}renderContentTop(){return a`<div class=${i(t.contentTop)} .hidden=${!this.hasContentTop}><slot name=${s.contentTop} @slotchange=${this.contentTopSlotChangeHandler}></slot></div>`}renderContentBottom(){return a`<div class=${i(t.contentBottom)} .hidden=${!this.hasContentBottom}><slot name=${s.contentBottom} @slotchange=${this.contentBottomSlotChangeHandler}></slot></div>`}renderCloseButton(){return this.closeButtonDisabled?null:p("button",a`<button .ariaLabel=${this.messages.close} class=${i(t.close)} @click=${this.handleCloseClick} title=${this.messages.close??y} ${r(this.closeButtonEl)}><calcite-icon .icon=${L.close} .scale=${B(this.scale)}></calcite-icon></button>`)}renderStyle(){if(!this.fullscreen&&(this.cssWidth||this.cssHeight))return a`<style>${`.${t.container} {
6
+ import{a as M,b as f,c,d as F}from"./3PY5R6NZ.js";import{p as v}from"./CMHNSCN3.js";import{a as D}from"./KTCKPGVK.js";import{a as p}from"./FQ7Z5TNX.js";import{a as B}from"./MIKOOQZ7.js";import{a as $}from"./KTNQAQBX.js";import{a as m}from"./H3IVTUS4.js";import{a as T}from"./AWWHXCDE.js";import{a as b,b as r}from"./XXJY5TAF.js";import{b as u,n as C,u as n,v as g}from"./ZCH7BCRY.js";import{a as O,b as S,d as E}from"./ELKUYPDP.js";import"./GBZTCOS2.js";import{I as z,d as k,e as a,i as y,u as l,v as w,w as i,z as h}from"./44JWN2HB.js";var t={modal:"modal",title:"title",header:"header",footer:"footer",scrim:"scrim",back:"back",close:"close",secondary:"secondary",primary:"primary",container:"container",containerOpen:"container--open",containerEmbedded:"container--embedded",content:"content",contentNoFooter:"content--no-footer",contentBottom:"content-bottom",contentTop:"content-top",openingIdle:"modal--opening-idle",openingActive:"modal--opening-active",closingIdle:"modal--closing-idle",closingActive:"modal--closing-active"},L={close:"x"},s={content:"content",contentBottom:"content-bottom",contentTop:"content-top",header:"header",back:"back",secondary:"secondary",primary:"primary"},A=k`:host{--calcite-modal-scrim-background: rgba(0, 0, 0, .85);position:fixed;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;opacity:0;visibility:hidden!important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88);--calcite-modal-scrim-background-internal: rgba(0, 0, 0, .85)}.content-top[hidden],.content-bottom[hidden]{display:none}.container{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow-y:hidden;color:var(--calcite-color-text-2);opacity:0;visibility:hidden!important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88)}:host([scale=s]){--calcite-modal-padding-internal: .75rem;--calcite-modal-padding-large-internal: 1rem;--calcite-modal-title-text-internal: var(--calcite-font-size-1);--calcite-modal-content-text-internal: var(--calcite-font-size--1)}:host([scale=m]){--calcite-modal-padding-internal: 1rem;--calcite-modal-padding-large-internal: 1.25rem;--calcite-modal-title-text-internal: var(--calcite-font-size-2);--calcite-modal-content-text-internal: var(--calcite-font-size-0)}:host([scale=l]){--calcite-modal-padding-internal: 1.25rem;--calcite-modal-padding-large-internal: 1.5rem;--calcite-modal-title-text-internal: var(--calcite-font-size-3);--calcite-modal-content-text-internal: var(--calcite-font-size-1)}.scrim{--calcite-scrim-background: var(--calcite-modal-scrim-background, var(--calcite-color-transparent-scrim));position:absolute;inset:0;display:flex;overflow-y:hidden}.modal{pointer-events:none;z-index:var(--calcite-z-index-modal);float:none;margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:.25rem;background-color:var(--calcite-color-foreground-1);opacity:0;--tw-shadow: 0 2px 12px -4px rgba(0, 0, 0, .2), 0 2px 4px -2px rgba(0, 0, 0, .16);--tw-shadow-colored: 0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);-webkit-overflow-scrolling:touch;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88);--calcite-modal-hidden-position: translate3d(0, 20px, 0);--calcite-modal-shown-position: translate3d(0, 0, 0)}.modal--opening-idle{transform:var(--calcite-modal-hidden-position)}.modal--opening-active,.modal--closing-idle{transform:var(--calcite-modal-shown-position)}.modal--closing-active{transform:var(--calcite-modal-hidden-position)}:host([opened]){opacity:1;visibility:visible!important;transition-delay:0ms}.container--open{opacity:1;visibility:visible!important;transition-delay:0ms}.container--open .modal{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),visibility 0ms linear,opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),max-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),max-block-size var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88);transition-delay:0ms}.header{z-index:var(--calcite-z-index-header);display:flex;min-inline-size:0px;max-inline-size:100%;border-start-start-radius:.25rem;border-start-end-radius:.25rem;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);flex:0 0 auto}.close{order:2;margin:0;cursor:pointer;appearance:none;border-style:none;background-color:transparent;color:var(--calcite-color-text-3);outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-internal);flex:0 0 auto}.close calcite-icon{vertical-align:-2px}.close:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.close:hover,.close:focus,.close:active{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}.title{order:1;display:flex;min-inline-size:0px;align-items:center;flex:1 1 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}slot[name=header]::slotted(*),*::slotted([slot=header]){margin:0;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-1);font-size:var(--calcite-modal-title-text-internal)}.content{position:relative;box-sizing:border-box;display:block;block-size:100%;overflow:auto;padding:0;background-color:var(--calcite-modal-content-background, var(--calcite-color-foreground-1));max-block-size:100%;padding:var(--calcite-modal-content-padding, var(--calcite-modal-padding-internal))}.content-top,.content-bottom{z-index:var(--calcite-z-index-header);display:flex;border-width:0px;border-style:solid;border-color:var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);flex:0 0 auto;padding:var(--calcite-modal-padding-internal)}.content-top{min-inline-size:0px;max-inline-size:100%;border-block-end-width:1px}.content-bottom{margin-block-start:auto;box-sizing:border-box;inline-size:100%;justify-content:space-between;border-block-start-width:1px}.content-top:not(.header~.content-top){border-start-start-radius:.25rem;border-start-end-radius:.25rem}.content-bottom:not(.content-bottom~.footer),.content--no-footer{border-end-end-radius:.25rem;border-end-start-radius:.25rem}slot[name=content]::slotted(*),*::slotted([slot=content]){font-size:var(--calcite-modal-context-text-internal)}.footer{z-index:var(--calcite-z-index-header);margin-block-start:auto;box-sizing:border-box;display:flex;inline-size:100%;justify-content:space-between;border-end-end-radius:.25rem;border-end-start-radius:.25rem;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);flex:0 0 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}.footer--hide-back .back,.footer--hide-secondary .secondary{display:none}.back{display:block;margin-inline-end:auto}.secondary{margin-inline:.25rem;display:block}slot[name=primary]{display:block}:host([width=small]) .modal{inline-size:auto}:host([width-scale=s]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 32rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 35rem){:host([width-scale=s]) .modal{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width-scale=s]) .content{flex:1 1 auto;max-block-size:unset}:host([width-scale=s][docked]) .container{align-items:flex-end}}:host([width-scale=m]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 48rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 51rem){:host([width-scale=m]) .modal{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width-scale=m]) .content{flex:1 1 auto;max-block-size:unset}:host([width-scale=m][docked]) .container{align-items:flex-end}}:host([width-scale=l]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 94rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 97rem){:host([width-scale=l]) .modal{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width-scale=l]) .content{flex:1 1 auto;max-block-size:unset}:host([width-scale=l][docked]) .container{align-items:flex-end}}:host([fullscreen]) .modal{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0;--calcite-modal-hidden-position: translate3D(0, 20px, 0) scale(.95);--calcite-modal-shown-position: translate3D(0, 0, 0) scale(1)}:host([fullscreen]) .content{max-block-size:100%;flex:1 1 auto}:host([opened][fullscreen]) .header,:host([opened][fullscreen]) .footer,:host([opened][fullscreen]) .content-top,:host([opened][fullscreen]) .content-bottom{border-radius:0}:host([docked]) .modal{block-size:var(--calcite-modal-height, auto)}:host([docked]) .content{block-size:auto;flex:1 1 auto}:host([kind=brand]) .modal{border-color:var(--calcite-color-brand)}:host([kind=danger]) .modal{border-color:var(--calcite-color-status-danger)}:host([kind=info]) .modal{border-color:var(--calcite-color-status-info)}:host([kind=success]) .modal{border-color:var(--calcite-color-status-success)}:host([kind=warning]) .modal{border-color:var(--calcite-color-status-warning)}:host([kind=brand]) .modal,:host([kind=danger]) .modal,:host([kind=info]) .modal,:host([kind=success]) .modal,:host([kind=warning]) .modal{border-width:0px;border-block-start-width:4px;border-style:solid}:host([kind=brand]) .header,:host([kind=brand]) .content-top,:host([kind=danger]) .header,:host([kind=danger]) .content-top,:host([kind=info]) .header,:host([kind=info]) .content-top,:host([kind=success]) .header,:host([kind=success]) .content-top,:host([kind=warning]) .header,:host([kind=warning]) .content-top{border-radius:.25rem;border-end-end-radius:0px;border-end-start-radius:0px}@media screen and (max-width: 860px){* slot[name=header]::slotted(content-top),* content-top::slotted([slot=header]){font-size:var(--calcite-font-size-1)}.footer,.content-bottom{position:sticky;inset-block-end:0px}}@media screen and (max-width: 480px){.footer,.content-bottom{flex-direction:column}.back,.secondary{margin:0;margin-block-end:.25rem}}:host([hidden]){display:none}[hidden]{display:none}`,d=0,H="",x=class extends w{constructor(){super(),this.closeButtonEl=b(),this.cssVarObserver=m("mutation",()=>{this.updateSizeCssVars()}),this.ignoreOpenChange=!1,this.modalContent=b(),this.mutationObserver=m("mutation",()=>this.updateFocusTrapElements()),this._open=!1,this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteModalOpen",this.openEnd)},this.openTransitionProp="opacity",this.hasBack=!1,this.hasContentBottom=!1,this.hasContentTop=!1,this.hasFooter=!1,this.hasPrimary=!1,this.hasSecondary=!1,this.closeButtonDisabled=!1,this.escapeDisabled=!1,this.focusTrapDisabled=!1,this.messages=T(),this.opened=!1,this.outsideCloseDisabled=!1,this.scale="m",this.widthScale="m",this.calciteModalBeforeClose=l({cancelable:!1}),this.calciteModalBeforeOpen=l({cancelable:!1}),this.calciteModalClose=l({cancelable:!1}),this.calciteModalOpen=l({cancelable:!1}),this.keyDownHandler=e=>{let{defaultPrevented:o,key:P}=e;!o&&this.focusTrapDisabled&&this.open&&!this.escapeDisabled&&P==="Escape"&&(e.preventDefault(),this.open=!1)},this.listen("keydown",this.keyDownHandler)}static{this.properties={contentEl:16,cssHeight:16,cssWidth:16,hasBack:16,hasContentBottom:16,hasContentTop:16,hasFooter:16,hasPrimary:16,hasSecondary:16,titleEl:16,beforeClose:0,closeButtonDisabled:7,docked:7,escapeDisabled:7,focusTrapDisabled:7,fullscreen:7,kind:3,messageOverrides:0,open:7,opened:7,outsideCloseDisabled:7,scale:3,widthScale:3}}static{this.styles=A}get open(){return this._open}set open(e){let o=this._open;e!==o&&(this._open=e,this.toggleModal(e))}async scrollContent(e=0,o=0){this.modalContent.value&&(this.modalContent.value.scrollTo?this.modalContent.value.scrollTo({top:e,left:o,behavior:"smooth"}):(this.modalContent.value.scrollTop=e,this.modalContent.value.scrollLeft=o))}async setFocus(){await E(this),C(this.el)}async updateFocusTrapElements(){F(this)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.cssVarObserver?.observe(this.el,{attributeFilter:["style"]}),this.updateSizeCssVars(),M(this,{focusTrapOptions:{clickOutsideDeactivates:!1,escapeDeactivates:e=>(!e.defaultPrevented&&!this.escapeDisabled&&(this.open=!1,e.preventDefault()),!1)}})}async load(){$.deprecated("component",{name:"modal",removalVersion:4,suggested:"dialog"}),O(this),this.open&&this.openModal()}willUpdate(e){e.has("focusTrapDisabled")&&(this.hasUpdated||this.focusTrapDisabled!==!1)&&this.handleFocusTrapDisabled(this.focusTrapDisabled),(e.has("hasBack")&&(this.hasUpdated||this.hasBack!==!1)||e.has("hasPrimary")&&(this.hasUpdated||this.hasPrimary!==!1)||e.has("hasSecondary")&&(this.hasUpdated||this.hasSecondary!==!1))&&(this.hasFooter=this.hasBack||this.hasPrimary||this.hasSecondary),e.has("opened")&&(this.hasUpdated||this.opened!==!1)&&this.handleOpenedChange(this.opened)}loaded(){S(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),this.cssVarObserver?.disconnect(),c(this)}handleFocusTrapDisabled(e){this.open&&(e?c(this):f(this))}handleHeaderSlotChange(e){this.titleEl=g(e)[0]}handleContentSlotChange(e){this.contentEl=g(e)[0]}handleBackSlotChange(e){this.hasBack=n(e)}handlePrimarySlotChange(e){this.hasPrimary=n(e)}handleSecondarySlotChange(e){this.hasSecondary=n(e)}setTransitionEl(e){this.transitionEl=e}onBeforeOpen(){this.transitionEl?.classList.add(t.openingActive),this.calciteModalBeforeOpen.emit()}onOpen(){this.transitionEl?.classList.remove(t.openingIdle,t.openingActive),this.calciteModalOpen.emit(),f(this)}onBeforeClose(){this.transitionEl?.classList.add(t.closingActive),this.calciteModalBeforeClose.emit()}onClose(){this.transitionEl?.classList.remove(t.closingIdle,t.closingActive),this.calciteModalClose.emit(),c(this)}toggleModal(e){this.ignoreOpenChange||(e?this.openModal():this.closeModal())}handleOpenedChange(e){let o=e?t.openingIdle:t.closingIdle;this.transitionEl.classList.add(o),D(this)}handleCloseClick(){this.open=!1}async openModal(){await this.componentOnReady(),this.el.addEventListener("calciteModalOpen",this.openEnd),this.opened=!0,this.titleId=u(this.titleEl),this.contentId=u(this.contentEl),v(this.el)===document.body&&(d===0&&(H=document.documentElement.style.overflow),d++,document.documentElement.style.setProperty("overflow","hidden"))}handleOutsideClose(){this.outsideCloseDisabled||(this.open=!1)}async closeModal(){if(this.beforeClose)try{await this.beforeClose(this.el)}catch{requestAnimationFrame(()=>{this.ignoreOpenChange=!0,this.open=!0,this.ignoreOpenChange=!1});return}v(this.el)===document.body&&(d--,d===0&&this.removeOverflowHiddenClass()),this.opened=!1}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",H)}updateSizeCssVars(){this.cssWidth=getComputedStyle(this.el).getPropertyValue("--calcite-modal-width"),this.cssHeight=getComputedStyle(this.el).getPropertyValue("--calcite-modal-height")}contentTopSlotChangeHandler(e){this.hasContentTop=n(e)}contentBottomSlotChangeHandler(e){this.hasContentBottom=n(e)}render(){return h(this.el,"aria-describedby",this.contentId),h(this.el,"aria-labelledby",this.titleId),this.el.ariaModal="true",this.el.role="dialog",a`<div class=${i({[t.container]:!0,[t.containerOpen]:this.opened})}><calcite-scrim class=${i(t.scrim)} @click=${this.handleOutsideClose}></calcite-scrim>${this.renderStyle()}<div class=${i({[t.modal]:!0})} ${r(this.setTransitionEl)}><div class=${i(t.header)}>${this.renderCloseButton()}<header class=${i(t.title)}><slot name=${t.header} @slotchange=${this.handleHeaderSlotChange}></slot></header></div>${this.renderContentTop()}<div class=${i({[t.content]:!0,[t.contentNoFooter]:!this.hasFooter})} ${r(this.modalContent)}><slot name=${s.content} @slotchange=${this.handleContentSlotChange}></slot></div>${this.renderContentBottom()}${this.renderFooter()}</div></div>`}renderFooter(){return p("footer",a`<div class=${i(t.footer)} .hidden=${!this.hasFooter}><span class=${i(t.back)}><slot name=${s.back} @slotchange=${this.handleBackSlotChange}></slot></span><span class=${i(t.secondary)}><slot name=${s.secondary} @slotchange=${this.handleSecondarySlotChange}></slot></span><span class=${i(t.primary)}><slot name=${s.primary} @slotchange=${this.handlePrimarySlotChange}></slot></span></div>`)}renderContentTop(){return a`<div class=${i(t.contentTop)} .hidden=${!this.hasContentTop}><slot name=${s.contentTop} @slotchange=${this.contentTopSlotChangeHandler}></slot></div>`}renderContentBottom(){return a`<div class=${i(t.contentBottom)} .hidden=${!this.hasContentBottom}><slot name=${s.contentBottom} @slotchange=${this.contentBottomSlotChangeHandler}></slot></div>`}renderCloseButton(){return this.closeButtonDisabled?null:p("button",a`<button .ariaLabel=${this.messages.close} class=${i(t.close)} @click=${this.handleCloseClick} title=${this.messages.close??y} ${r(this.closeButtonEl)}><calcite-icon .icon=${L.close} .scale=${B(this.scale)}></calcite-icon></button>`)}renderStyle(){if(!this.fullscreen&&(this.cssWidth||this.cssHeight))return a`<style>${`.${t.container} {
7
7
  ${this.docked&&this.cssWidth?"align-items: center !important;":""}
8
8
  }
9
9
  .${t.modal} {
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.89
4
+ * v3.0.0-next.90
5
5
  */
6
- import{a as R}from"./XURH2OGC.js";import{c as p,e as y,f as C,g as L,h as x,i as u}from"./OPRLBPB6.js";import"./M6GU2UAL.js";import{a}from"./3ZNF77Z5.js";import"./UDJU4KUJ.js";import"./FVE5X3Q4.js";import{b as d}from"./SFIJE3NQ.js";import{h as k,j as H}from"./XXNVFFEM.js";import{a as b}from"./AZIXULPD.js";import{I as E,d as v,e as g,u as s,v as T,w as l,z as w}from"./FHHU5FBE.js";var O={positionContainer:"position-container",container:"container"},I=300,D=500,S="aria-describedby";function z(n){let{referenceElement:e}=n;return(typeof e=="string"?H(n,{id:e}):e)||null}var f=class{constructor(){this.registeredElements=new WeakMap,this.registeredShadowRootCounts=new WeakMap,this.hoverOpenTimeout=null,this.hoverCloseTimeout=null,this.activeTooltip=null,this.registeredElementCount=0,this.clickedTooltip=null,this.queryTooltip=e=>{let{registeredElements:t}=this,i=e.find(o=>t.has(o));return t.get(i)},this.keyDownHandler=e=>{if(e.key==="Escape"&&!e.defaultPrevented){let{activeTooltip:t}=this;if(t?.open){this.clearHoverTimeout(),this.closeActiveTooltip();let i=z(t),o=e.composedPath();(i instanceof Element&&o.includes(i)||o.includes(t))&&e.preventDefault()}}},this.pointerMoveHandler=e=>{let t=e.composedPath(),{activeTooltip:i}=this,o=this.queryTooltip(t);if(this.pathHasOpenTooltip(o,t)){this.clearHoverTimeout();return}o!==this.clickedTooltip&&(o?this.openHoveredTooltip(o):i?.open&&this.closeHoveredTooltip(),this.clickedTooltip=null)},this.clickHandler=e=>{this.clickedTooltip=null;let t=e.composedPath(),i=this.queryTooltip(t);if(this.pathHasOpenTooltip(i,t)){this.clearHoverTimeout();return}if(this.closeActiveTooltip(),!!i){if(this.clearHoverTimeout(),i.closeOnClick){this.clickedTooltip=i,this.toggleTooltip(i,!1);return}this.toggleTooltip(i,!0)}},this.blurHandler=()=>{this.closeActiveTooltip()},this.focusInHandler=e=>{let t=e.composedPath(),i=this.queryTooltip(t);if(this.pathHasOpenTooltip(i,t)){this.clearHoverTimeout();return}i!==this.clickedTooltip&&(this.clickedTooltip=null,this.closeTooltipIfNotActive(i),i&&this.toggleFocusedTooltip(i,!0))},this.openHoveredTooltip=e=>{this.hoverOpenTimeout=window.setTimeout(()=>{this.hoverOpenTimeout!==null&&(this.clearHoverCloseTimeout(),this.closeTooltipIfNotActive(e),this.toggleTooltip(e,!0))},this.activeTooltip?.open?0:I)},this.closeHoveredTooltip=()=>{this.hoverCloseTimeout=window.setTimeout(()=>{this.hoverCloseTimeout!==null&&this.closeActiveTooltip()},D)}}registerElement(e,t){this.registeredElementCount++,this.registeredElements.set(e,t);let i=this.getReferenceElShadowRootNode(e);i&&this.registerShadowRoot(i),this.registeredElementCount===1&&this.addListeners()}unregisterElement(e){let t=this.getReferenceElShadowRootNode(e);t&&this.unregisterShadowRoot(t),this.registeredElements.delete(e)&&this.registeredElementCount--,this.registeredElementCount===0&&this.removeListeners()}pathHasOpenTooltip(e,t){let{activeTooltip:i}=this;return i?.open&&t.includes(i)||e?.open&&t.includes(e)}addShadowListeners(e){e.addEventListener("focusin",this.focusInHandler)}removeShadowListeners(e){e.removeEventListener("focusin",this.focusInHandler)}addListeners(){window.addEventListener("keydown",this.keyDownHandler),window.addEventListener("pointermove",this.pointerMoveHandler),window.addEventListener("click",this.clickHandler),window.addEventListener("focusin",this.focusInHandler),window.addEventListener("blur",this.blurHandler)}removeListeners(){window.removeEventListener("keydown",this.keyDownHandler),window.removeEventListener("pointermove",this.pointerMoveHandler),window.removeEventListener("click",this.clickHandler),window.removeEventListener("focusin",this.focusInHandler),window.removeEventListener("blur",this.blurHandler)}clearHoverOpenTimeout(){window.clearTimeout(this.hoverOpenTimeout),this.hoverOpenTimeout=null}clearHoverCloseTimeout(){window.clearTimeout(this.hoverCloseTimeout),this.hoverCloseTimeout=null}clearHoverTimeout(){this.clearHoverOpenTimeout(),this.clearHoverCloseTimeout()}closeTooltipIfNotActive(e){this.activeTooltip!==e&&this.closeActiveTooltip()}closeActiveTooltip(){let{activeTooltip:e}=this;e?.open&&this.toggleTooltip(e,!1)}toggleFocusedTooltip(e,t){t&&this.clearHoverTimeout(),this.toggleTooltip(e,t)}toggleTooltip(e,t){e.open=t,this.activeTooltip=t?e:null}registerShadowRoot(e){let{registeredShadowRootCounts:t}=this,i=t.get(e),o=Math.min((typeof i=="number"?i:0)+1,1);o===1&&this.addShadowListeners(e),t.set(e,o)}unregisterShadowRoot(e){let{registeredShadowRootCounts:t}=this,i=t.get(e),o=Math.max((typeof i=="number"?i:1)-1,0);o===0&&this.removeShadowListeners(e),t.set(e,o)}getReferenceElShadowRootNode(e){return e instanceof Element?k(e):null}},U=v`:host{position:relative;display:block;--calcite-floating-ui-z-index: var(--calcite-tooltip-z-index, var(--calcite-z-index-tooltip))}.position-container{inline-size:max-content;display:none;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}.position-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset,left,opacity;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}.position-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.position-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.position-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.position-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.position-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}.calcite-floating-ui-arrow{pointer-events:none;position:absolute;z-index:calc(var(--calcite-z-index) * -1);fill:var(--calcite-color-foreground-1)}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-color-border-3)}.container{position:relative;overflow:hidden;padding-block:.75rem;padding-inline:1rem;font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-medium);border-radius:var(--calcite-tooltip-corner-radius, var(--calcite-corner-radius-round));color:var(--calcite-tooltip-text-color, var(--calcite-color-text-1));max-inline-size:20rem;max-block-size:20rem;text-align:start}.position-container .calcite-floating-ui-anim{border-width:1px;border-style:solid;background-color:var(--calcite-tooltip-background-color, var(--calcite-color-foreground-1));border-color:var(--calcite-tooltip-border-color, var(--calcite-color-border-3));border-radius:var(--calcite-tooltip-corner-radius, var(--calcite-corner-radius-round))}.calcite-floating-ui-arrow{fill:var(--calcite-tooltip-background-color, var(--calcite-color-foreground-1))}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-tooltip-border-color, var(--calcite-color-border-3))}:host([hidden]){display:none}[hidden]{display:none}`,A=new f,m=class extends T{constructor(){super(...arguments),this.guid=`calcite-tooltip-${b()}`,this.openTransitionProp="opacity",this.floatingLayout="vertical",this.closeOnClick=!1,this.offsetDistance=u,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.calciteTooltipBeforeClose=s({cancelable:!1}),this.calciteTooltipBeforeOpen=s({cancelable:!1}),this.calciteTooltipClose=s({cancelable:!1}),this.calciteTooltipOpen=s({cancelable:!1})}static{this.properties={floatingLayout:16,referenceEl:16,closeOnClick:7,label:1,offsetDistance:11,offsetSkidding:11,open:7,overlayPositioning:3,placement:3,referenceElement:1}}static{this.styles=U}async reposition(e=!1){let{referenceEl:t,placement:i,overlayPositioning:o,offsetDistance:r,offsetSkidding:c,arrowEl:h,floatingEl:P}=this;return y(this,{floatingEl:P,referenceEl:t,overlayPositioning:o,placement:i,offsetDistance:r,offsetSkidding:c,arrowEl:h,type:"tooltip"},e)}connectedCallback(){super.connectedCallback(),this.setUpReferenceElement(!0),this.open&&a(this)}load(){this.open&&a(this)}willUpdate(e){(e.has("offsetDistance")&&(this.hasUpdated||this.offsetDistance!==u)||e.has("offsetSkidding")&&(this.hasUpdated||this.offsetSkidding!==0)||e.has("overlayPositioning")&&(this.hasUpdated||this.overlayPositioning!=="absolute")||e.has("placement")&&(this.hasUpdated||this.placement!=="auto"))&&this.reposition(!0),e.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),e.has("referenceElement")&&this.setUpReferenceElement()}loaded(){this.referenceElement&&!this.referenceEl&&this.setUpReferenceElement()}disconnectedCallback(){super.disconnectedCallback(),this.removeReferences(),x(this)}openHandler(){a(this),this.reposition(!0)}onBeforeOpen(){this.calciteTooltipBeforeOpen.emit()}onOpen(){this.calciteTooltipOpen.emit()}onBeforeClose(){this.calciteTooltipBeforeClose.emit()}onClose(){this.calciteTooltipClose.emit(),C(this)}setFloatingEl(e){this.floatingEl=e,e&&requestAnimationFrame(()=>this.setUpReferenceElement())}setTransitionEl(e){this.transitionEl=e}setUpReferenceElement(e=!0){this.removeReferences(),this.referenceEl=z(this.el),L(this);let{el:t,referenceElement:i,referenceEl:o}=this;e&&i&&!o&&console.warn(`${t.tagName}: reference-element id "${i}" was not found.`,{el:t}),this.addReferences()}getId(){return this.el.id||this.guid}addReferences(){let{referenceEl:e}=this;if(!e)return;let t=this.getId();"setAttribute"in e&&e.setAttribute(S,t),A.registerElement(e,this.el)}removeReferences(){let{referenceEl:e}=this;e&&("removeAttribute"in e&&e.removeAttribute(S),A.unregisterElement(e))}render(){let{referenceEl:e,label:t,open:i,floatingLayout:o}=this,r=e&&i,c=!r;return this.el.inert=c,this.el.ariaLabel=t,this.el.ariaLive="polite",w(this.el,"id",this.getId()),this.el.role="tooltip",g`<div class=${l(O.positionContainer)} ${d(this.setFloatingEl)}><div class=${l({[p.animation]:!0,[p.animationActive]:r})} ${d(this.setTransitionEl)}>${R({floatingLayout:o,ref:h=>this.arrowEl=h})}<div class=${l(O.container)}><slot></slot></div></div></div>`}};E("calcite-tooltip",m);export{m as Tooltip};
6
+ import{a as R}from"./B74ESEM5.js";import{c as p,e as y,f as C,g as L,h as x,i as u}from"./Q47WADNF.js";import"./CMHNSCN3.js";import{a}from"./KTCKPGVK.js";import"./FQ7Z5TNX.js";import"./YCNHMVYV.js";import{b as d}from"./XXJY5TAF.js";import{h as k,j as H}from"./ZCH7BCRY.js";import{a as b}from"./GBZTCOS2.js";import{I as E,d as v,e as g,u as s,v as T,w as l,z as w}from"./44JWN2HB.js";var O={positionContainer:"position-container",container:"container"},I=300,D=500,S="aria-describedby";function z(n){let{referenceElement:e}=n;return(typeof e=="string"?H(n,{id:e}):e)||null}var f=class{constructor(){this.registeredElements=new WeakMap,this.registeredShadowRootCounts=new WeakMap,this.hoverOpenTimeout=null,this.hoverCloseTimeout=null,this.activeTooltip=null,this.registeredElementCount=0,this.clickedTooltip=null,this.queryTooltip=e=>{let{registeredElements:t}=this,i=e.find(o=>t.has(o));return t.get(i)},this.keyDownHandler=e=>{if(e.key==="Escape"&&!e.defaultPrevented){let{activeTooltip:t}=this;if(t?.open){this.clearHoverTimeout(),this.closeActiveTooltip();let i=z(t),o=e.composedPath();(i instanceof Element&&o.includes(i)||o.includes(t))&&e.preventDefault()}}},this.pointerMoveHandler=e=>{let t=e.composedPath(),{activeTooltip:i}=this,o=this.queryTooltip(t);if(this.pathHasOpenTooltip(o,t)){this.clearHoverTimeout();return}o!==this.clickedTooltip&&(o?this.openHoveredTooltip(o):i?.open&&this.closeHoveredTooltip(),this.clickedTooltip=null)},this.clickHandler=e=>{this.clickedTooltip=null;let t=e.composedPath(),i=this.queryTooltip(t);if(this.pathHasOpenTooltip(i,t)){this.clearHoverTimeout();return}if(this.closeActiveTooltip(),!!i){if(this.clearHoverTimeout(),i.closeOnClick){this.clickedTooltip=i,this.toggleTooltip(i,!1);return}this.toggleTooltip(i,!0)}},this.blurHandler=()=>{this.closeActiveTooltip()},this.focusInHandler=e=>{let t=e.composedPath(),i=this.queryTooltip(t);if(this.pathHasOpenTooltip(i,t)){this.clearHoverTimeout();return}i!==this.clickedTooltip&&(this.clickedTooltip=null,this.closeTooltipIfNotActive(i),i&&this.toggleFocusedTooltip(i,!0))},this.openHoveredTooltip=e=>{this.hoverOpenTimeout=window.setTimeout(()=>{this.hoverOpenTimeout!==null&&(this.clearHoverCloseTimeout(),this.closeTooltipIfNotActive(e),this.toggleTooltip(e,!0))},this.activeTooltip?.open?0:I)},this.closeHoveredTooltip=()=>{this.hoverCloseTimeout=window.setTimeout(()=>{this.hoverCloseTimeout!==null&&this.closeActiveTooltip()},D)}}registerElement(e,t){this.registeredElementCount++,this.registeredElements.set(e,t);let i=this.getReferenceElShadowRootNode(e);i&&this.registerShadowRoot(i),this.registeredElementCount===1&&this.addListeners()}unregisterElement(e){let t=this.getReferenceElShadowRootNode(e);t&&this.unregisterShadowRoot(t),this.registeredElements.delete(e)&&this.registeredElementCount--,this.registeredElementCount===0&&this.removeListeners()}pathHasOpenTooltip(e,t){let{activeTooltip:i}=this;return i?.open&&t.includes(i)||e?.open&&t.includes(e)}addShadowListeners(e){e.addEventListener("focusin",this.focusInHandler)}removeShadowListeners(e){e.removeEventListener("focusin",this.focusInHandler)}addListeners(){window.addEventListener("keydown",this.keyDownHandler),window.addEventListener("pointermove",this.pointerMoveHandler),window.addEventListener("click",this.clickHandler),window.addEventListener("focusin",this.focusInHandler),window.addEventListener("blur",this.blurHandler)}removeListeners(){window.removeEventListener("keydown",this.keyDownHandler),window.removeEventListener("pointermove",this.pointerMoveHandler),window.removeEventListener("click",this.clickHandler),window.removeEventListener("focusin",this.focusInHandler),window.removeEventListener("blur",this.blurHandler)}clearHoverOpenTimeout(){window.clearTimeout(this.hoverOpenTimeout),this.hoverOpenTimeout=null}clearHoverCloseTimeout(){window.clearTimeout(this.hoverCloseTimeout),this.hoverCloseTimeout=null}clearHoverTimeout(){this.clearHoverOpenTimeout(),this.clearHoverCloseTimeout()}closeTooltipIfNotActive(e){this.activeTooltip!==e&&this.closeActiveTooltip()}closeActiveTooltip(){let{activeTooltip:e}=this;e?.open&&this.toggleTooltip(e,!1)}toggleFocusedTooltip(e,t){t&&this.clearHoverTimeout(),this.toggleTooltip(e,t)}toggleTooltip(e,t){e.open=t,this.activeTooltip=t?e:null}registerShadowRoot(e){let{registeredShadowRootCounts:t}=this,i=t.get(e),o=Math.min((typeof i=="number"?i:0)+1,1);o===1&&this.addShadowListeners(e),t.set(e,o)}unregisterShadowRoot(e){let{registeredShadowRootCounts:t}=this,i=t.get(e),o=Math.max((typeof i=="number"?i:1)-1,0);o===0&&this.removeShadowListeners(e),t.set(e,o)}getReferenceElShadowRootNode(e){return e instanceof Element?k(e):null}},U=v`:host{position:relative;display:block;--calcite-floating-ui-z-index: var(--calcite-tooltip-z-index, var(--calcite-z-index-tooltip))}.position-container{inline-size:max-content;display:none;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}.position-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset,left,opacity;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}.position-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.position-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.position-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.position-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.position-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}.calcite-floating-ui-arrow{pointer-events:none;position:absolute;z-index:calc(var(--calcite-z-index) * -1);fill:var(--calcite-color-foreground-1)}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-color-border-3)}.container{position:relative;overflow:hidden;padding-block:.75rem;padding-inline:1rem;font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-medium);border-radius:var(--calcite-tooltip-corner-radius, var(--calcite-corner-radius-round));color:var(--calcite-tooltip-text-color, var(--calcite-color-text-1));max-inline-size:20rem;max-block-size:20rem;text-align:start}.position-container .calcite-floating-ui-anim{border-width:1px;border-style:solid;background-color:var(--calcite-tooltip-background-color, var(--calcite-color-foreground-1));border-color:var(--calcite-tooltip-border-color, var(--calcite-color-border-3));border-radius:var(--calcite-tooltip-corner-radius, var(--calcite-corner-radius-round))}.calcite-floating-ui-arrow{fill:var(--calcite-tooltip-background-color, var(--calcite-color-foreground-1))}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-tooltip-border-color, var(--calcite-color-border-3))}:host([hidden]){display:none}[hidden]{display:none}`,A=new f,m=class extends T{constructor(){super(...arguments),this.guid=`calcite-tooltip-${b()}`,this.openTransitionProp="opacity",this.floatingLayout="vertical",this.closeOnClick=!1,this.offsetDistance=u,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.calciteTooltipBeforeClose=s({cancelable:!1}),this.calciteTooltipBeforeOpen=s({cancelable:!1}),this.calciteTooltipClose=s({cancelable:!1}),this.calciteTooltipOpen=s({cancelable:!1})}static{this.properties={floatingLayout:16,referenceEl:16,closeOnClick:7,label:1,offsetDistance:11,offsetSkidding:11,open:7,overlayPositioning:3,placement:3,referenceElement:1}}static{this.styles=U}async reposition(e=!1){let{referenceEl:t,placement:i,overlayPositioning:o,offsetDistance:r,offsetSkidding:c,arrowEl:h,floatingEl:P}=this;return y(this,{floatingEl:P,referenceEl:t,overlayPositioning:o,placement:i,offsetDistance:r,offsetSkidding:c,arrowEl:h,type:"tooltip"},e)}connectedCallback(){super.connectedCallback(),this.setUpReferenceElement(!0),this.open&&a(this)}load(){this.open&&a(this)}willUpdate(e){(e.has("offsetDistance")&&(this.hasUpdated||this.offsetDistance!==u)||e.has("offsetSkidding")&&(this.hasUpdated||this.offsetSkidding!==0)||e.has("overlayPositioning")&&(this.hasUpdated||this.overlayPositioning!=="absolute")||e.has("placement")&&(this.hasUpdated||this.placement!=="auto"))&&this.reposition(!0),e.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),e.has("referenceElement")&&this.setUpReferenceElement()}loaded(){this.referenceElement&&!this.referenceEl&&this.setUpReferenceElement()}disconnectedCallback(){super.disconnectedCallback(),this.removeReferences(),x(this)}openHandler(){a(this),this.reposition(!0)}onBeforeOpen(){this.calciteTooltipBeforeOpen.emit()}onOpen(){this.calciteTooltipOpen.emit()}onBeforeClose(){this.calciteTooltipBeforeClose.emit()}onClose(){this.calciteTooltipClose.emit(),C(this)}setFloatingEl(e){this.floatingEl=e,e&&requestAnimationFrame(()=>this.setUpReferenceElement())}setTransitionEl(e){this.transitionEl=e}setUpReferenceElement(e=!0){this.removeReferences(),this.referenceEl=z(this.el),L(this);let{el:t,referenceElement:i,referenceEl:o}=this;e&&i&&!o&&console.warn(`${t.tagName}: reference-element id "${i}" was not found.`,{el:t}),this.addReferences()}getId(){return this.el.id||this.guid}addReferences(){let{referenceEl:e}=this;if(!e)return;let t=this.getId();"setAttribute"in e&&e.setAttribute(S,t),A.registerElement(e,this.el)}removeReferences(){let{referenceEl:e}=this;e&&("removeAttribute"in e&&e.removeAttribute(S),A.unregisterElement(e))}render(){let{referenceEl:e,label:t,open:i,floatingLayout:o}=this,r=e&&i,c=!r;return this.el.inert=c,this.el.ariaLabel=t,this.el.ariaLive="polite",w(this.el,"id",this.getId()),this.el.role="tooltip",g`<div class=${l(O.positionContainer)} ${d(this.setFloatingEl)}><div class=${l({[p.animation]:!0,[p.animationActive]:r})} ${d(this.setTransitionEl)}>${R({floatingLayout:o,ref:h=>this.arrowEl=h})}<div class=${l(O.container)}><slot></slot></div></div></div>`}};E("calcite-tooltip",m);export{m as Tooltip};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.89
4
+ * v3.0.0-next.90
5
5
  */
6
- import{l as q}from"./72WFA6H4.js";import{a as C}from"./GHQKCH6U.js";import{c as A,e as H,f as J,h as K}from"./5HYADEZ6.js";import{c as W,d as j}from"./U5NLXA2P.js";import{a as V,b as G}from"./PTLQABPQ.js";import{a as F}from"./UDJU4KUJ.js";import"./CFJ4OZLI.js";import{a as N}from"./WXB3LDP3.js";import{b as R}from"./SFIJE3NQ.js";import"./XXNVFFEM.js";import{a as _,b as k,d as U}from"./TA3B6RWX.js";import"./AZIXULPD.js";import{A as S,I as M,d as D,e as g,i as T,u as b,v as E,w as L}from"./FHHU5FBE.js";var oe={offset:"offset"},ie=60;function x(o){return o.replace(":15",".25").replace(":30",".5").replace(":45",".75").replace("\u2212","-")}function se(o,e){let t=w(o,"en-US",e).replace("GMT","");return t===""?0:Number(x(t))*ie}function ae(){return new Date().getTimezoneOffset()*-1}function ne(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}async function le(o){if(o==="offset")return t=>t;let{normalize:e}=await import("./K62QLXSV.js");return e}async function re(o,e,t,i,l){if(t==="name"){let{groupByName:a}=await import("./IXTTKLOZ.js");return(await a()).map(({label:n})=>({label:n,value:n,metadata:{filterValue:n}})).filter(n=>!!n).sort()}let u=l==="user"?o:l==="utc"?"fr":"en-GB",d=i.getTime();if(t==="region"){let[{groupByRegion:a},{getCountry:n,global:m}]=await Promise.all([import("./WMVWKVSL.js"),import("./TBXFWMKD.js")]);return(await a()).map(({label:s,tzs:c})=>(c.sort((r,h)=>{let v=I(r,e),y=I(h,e),p="Etc/GMT";if(r.startsWith(p)&&h.startsWith(p)){let f=r.substring(p.length),P=h.substring(p.length),te=f===""?0:parseInt(f);return(P===""?0:parseInt(P))-te}return v.localeCompare(y)}),{label:$(e,s),items:c.map(r=>{let h=x(w(r,u,d)),v=I(r,e),y=s===m?`${I(m,e)} Etc`:Q(r),p=n(r),f=$(e,p);return{label:v,value:r,metadata:{country:f===v?void 0:f,filterValue:y,offset:h}}})})).sort((s,c)=>s.label===m?-1:c.label===m?1:s.label.localeCompare(c.label))}let[{groupByOffset:Z},{DateEngine:Y}]=await Promise.all([import("./SZ4BTKOE.js"),import("./X3HAEQLP.js")]),z=await Z({dateEngine:new Y,groupDateRange:1,startDate:new Date(d).toISOString()}),ee=new Intl.ListFormat(o,{style:"long",type:"conjunction"}),B=["Factory","Etc/UTC"];return z.forEach(a=>{let n=[],m=0;a.tzs.forEach((s,c)=>{B.includes(s)&&m++,n[c]=m}),a.tzs=a.tzs.filter(s=>!B.includes(s)),a.labelTzIdx=a.labelTzIdx.map(s=>s-n[s]).filter(s=>s>=0&&s<a.tzs.length)}),z.map(({labelTzIdx:a,tzs:n})=>{let m=n[0],s=x(w(m,u,d)),c=se(m,d),r=a.map(h=>I(n[h],e));return{label:he(e,s,ee.format(r)),value:c,metadata:{filterValue:n.map(h=>Q(h))}}}).filter(a=>!!a).sort((a,n)=>a.value-n.value)}function I(o,e){return e[o]||ce(o)}function me(o,e,t){return t.timeZoneRegionLabel.replace("{city}",o).replace("{country}",$(t,e))}function $(o,e){return o[e]||e}function ce(o){return o.split("/").pop()}function Q(o){return o.replace(/_/g," ")}function he(o,e,t){return o.timeZoneLabel.replace("{offset}",e).replace("{cities}",t)}function w(o,e,t=Date.now()){return o==="Factory"&&(o="Etc/GMT"),q(e,{timeZone:o,timeZoneName:"shortOffset"}).formatToParts(t).find(({type:i})=>i==="timeZoneName").value}function de(o){return o.items!==void 0}function ue(o){return de(o[0])?o.flatMap(e=>e.items):o}function X(o,e,t){return t==null?null:ue(o).find(i=>i[e]==t)}var pe=D`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block}.offset{white-space:nowrap}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}`,O=class extends E{constructor(){super(...arguments),this.clearable=!1,this.disabled=!1,this.maxItems=0,this.messages=N({blocking:!0}),this.mode="offset",this.offsetStyle="user",this.open=!1,this.overlayPositioning="absolute",this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.calciteInputTimeZoneBeforeClose=b({cancelable:!1}),this.calciteInputTimeZoneBeforeOpen=b({cancelable:!1}),this.calciteInputTimeZoneChange=b({cancelable:!1}),this.calciteInputTimeZoneClose=b({cancelable:!1}),this.calciteInputTimeZoneOpen=b({cancelable:!1})}static{this.properties={clearable:7,disabled:7,form:3,maxItems:11,messageOverrides:0,mode:3,name:3,offsetStyle:3,open:7,overlayPositioning:3,readOnly:7,referenceDate:1,required:7,scale:3,status:3,validationIcon:[3,{converter:S}],validationMessage:1,validity:0,value:1}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=pe}get value(){return this._value}set value(e){this._value=e}async setFocus(){await U(this),await this.comboboxEl.setFocus()}connectedCallback(){super.connectedCallback(),A(this),W(this)}async load(){_(this),this.normalizer=await le(this.mode),await this.updateTimeZoneItems();let e=this.value,t=this.normalizeValue(e);this.value=t||(e===""?t:void 0),this.updateTimeZoneSelection();let i=this.selectedTimeZoneItem?`${this.selectedTimeZoneItem.value}`:"";J(this,i),this.value=i}willUpdate(e){e.has("value")&&this.hasUpdated&&this.handleValueChange(this.value,e.get("value")),(e.has("messages")||e.has("mode")&&(this.hasUpdated||this.mode!=="offset")||e.has("referenceDate"))&&this.handleTimeZoneItemPropsChange(),e.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openChanged()}updated(){V(this)}loaded(){k(this),this.overrideSelectedLabelForRegion(this.open),this.openChanged()}disconnectedCallback(){super.disconnectedCallback(),H(this),j(this)}async handleTimeZoneItemPropsChange(){!this.timeZoneItems||!this.hasUpdated||(await this.updateTimeZoneItems(),this.updateTimeZoneSelection())}openChanged(){this.comboboxEl&&(this.comboboxEl.open=this.open)}async handleValueChange(e,t){let i=this.normalizeValue(e);if(!i){if(this.clearable){this._value=i,this.selectedTimeZoneItem=null;return}this._value=t,this.selectedTimeZoneItem=this.findTimeZoneItem(t);return}let l=this.findTimeZoneItem(i);if(!l){this._value=t;return}this._value=i,this.selectedTimeZoneItem=l,i!==e&&(await this.updateComplete,this.overrideSelectedLabelForRegion(this.open))}onLabelClick(){this.setFocus()}setComboboxRef(e){this.comboboxEl=e}overrideSelectedLabelForRegion(e){if(this.mode!=="region"||!this.selectedTimeZoneItem)return;let{label:t,metadata:i}=this.selectedTimeZoneItem;this.comboboxEl.selectedItems[0].textLabel=!i.country||e?t:me(t,i.country,this.messages)}onComboboxBeforeClose(e){e.stopPropagation(),this.overrideSelectedLabelForRegion(!1),this.calciteInputTimeZoneBeforeClose.emit()}onComboboxBeforeOpen(e){e.stopPropagation(),this.overrideSelectedLabelForRegion(!0),this.calciteInputTimeZoneBeforeOpen.emit()}onComboboxChange(e){e.stopPropagation();let t=e.target.selectedItems[0];if(!t){this._value="",this.selectedTimeZoneItem=null,this.calciteInputTimeZoneChange.emit();return}let i=this.findTimeZoneItemByLabel(t.getAttribute("data-label")),l=`${i.value}`;this.value===l&&i.label===this.selectedTimeZoneItem.label||(this._value=l,this.selectedTimeZoneItem=i,this.calciteInputTimeZoneChange.emit())}onComboboxClose(e){e.stopPropagation(),this.open=!1,this.calciteInputTimeZoneClose.emit()}onComboboxOpen(e){this.open=!0,e.stopPropagation(),this.calciteInputTimeZoneOpen.emit()}findTimeZoneItem(e){return X(this.timeZoneItems,"value",e)}findTimeZoneItemByLabel(e){return X(this.timeZoneItems,"label",e)}async updateTimeZoneItems(){this.timeZoneItems=await this.createTimeZoneItems()}updateTimeZoneSelection(){if(this.value===""&&this.clearable){this.selectedTimeZoneItem=null;return}let e=this.mode==="offset"?ae():ne(),t=this.value===""||!this.value?e:this.value;this.selectedTimeZoneItem=this.findTimeZoneItem(t)||this.findTimeZoneItem(e)}async createTimeZoneItems(){return!this.messages._lang||!this.messages?[]:re(this.messages._lang,this.messages,this.mode,this.referenceDate instanceof Date?this.referenceDate:new Date(this.referenceDate??Date.now()),this.offsetStyle)}normalizeValue(e){return e=e===void 0?"":e,e&&this.normalizer(e)}render(){return G({disabled:this.disabled,children:g`<calcite-combobox .clearDisabled=${!this.clearable} .disabled=${this.disabled} .label=${this.messages.chooseTimeZone} lang=${this.messages._lang??T} .maxItems=${this.maxItems} @calciteComboboxBeforeClose=${this.onComboboxBeforeClose} @calciteComboboxBeforeOpen=${this.onComboboxBeforeOpen} @calciteComboboxChange=${this.onComboboxChange} @calciteComboboxClose=${this.onComboboxClose} @calciteComboboxOpen=${this.onComboboxOpen} .overlayPositioning=${this.overlayPositioning} .placeholder=${this.mode==="name"?this.messages.namePlaceholder:this.mode==="offset"?this.messages.offsetPlaceholder:this.messages.regionPlaceholder} placeholder-icon=search .readOnly=${this.readOnly} .scale=${this.scale} .selectionMode=${this.clearable?"single":"single-persist"} .status=${this.status} .validationIcon=${this.validationIcon} .validationMessage=${this.validationMessage} ${R(this.setComboboxRef)}>${this.renderItems()}</calcite-combobox>${K({component:this})}`})}renderItems(){return this.mode==="region"?this.renderRegionItems():C(this.timeZoneItems,({label:e})=>e,e=>{let t=this.selectedTimeZoneItem===e,{label:i,metadata:l,value:u}=e;return g`<calcite-combobox-item data-label=${i??T} .metadata=${l} .selected=${t} .textLabel=${i} .value=${u}></calcite-combobox-item>`})}renderRegionItems(){return this.timeZoneItems.flatMap(({label:e,items:t})=>F(e,g`<calcite-combobox-item-group .label=${e}>${C(t,({label:i})=>i,i=>{let l=this.selectedTimeZoneItem===i,{label:u,metadata:d,value:Z}=i;return g`<calcite-combobox-item data-label=${u??T} .description=${d.country} .metadata=${d} .selected=${l} .textLabel=${u} .value=${Z}><span class=${L(oe.offset)} slot=content-end>${d.offset}</span></calcite-combobox-item>`})}</calcite-combobox-item-group>`))}};M("calcite-input-time-zone",O);export{O as InputTimeZone};
6
+ import{l as q}from"./GPGO5FYX.js";import{a as C}from"./K5JGHZCK.js";import{c as A,e as H,f as J,h as K}from"./OV3NMWJB.js";import{c as W,d as j}from"./5PCLLY4U.js";import{a as V,b as G}from"./L6KZ5JAJ.js";import{a as F}from"./FQ7Z5TNX.js";import"./2JMPYA7K.js";import{a as N}from"./AWWHXCDE.js";import{b as R}from"./XXJY5TAF.js";import"./ZCH7BCRY.js";import{a as _,b as k,d as U}from"./ELKUYPDP.js";import"./GBZTCOS2.js";import{A as S,I as M,d as D,e as g,i as T,u as b,v as E,w as L}from"./44JWN2HB.js";var oe={offset:"offset"},ie=60;function x(o){return o.replace(":15",".25").replace(":30",".5").replace(":45",".75").replace("\u2212","-")}function se(o,e){let t=w(o,"en-US",e).replace("GMT","");return t===""?0:Number(x(t))*ie}function ae(){return new Date().getTimezoneOffset()*-1}function ne(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}async function le(o){if(o==="offset")return t=>t;let{normalize:e}=await import("./JCM7PJIS.js");return e}async function re(o,e,t,i,l){if(t==="name"){let{groupByName:a}=await import("./44BSXBBL.js");return(await a()).map(({label:n})=>({label:n,value:n,metadata:{filterValue:n}})).filter(n=>!!n).sort()}let u=l==="user"?o:l==="utc"?"fr":"en-GB",d=i.getTime();if(t==="region"){let[{groupByRegion:a},{getCountry:n,global:m}]=await Promise.all([import("./EOEHKQ5J.js"),import("./75TWAVV6.js")]);return(await a()).map(({label:s,tzs:c})=>(c.sort((r,h)=>{let v=I(r,e),y=I(h,e),p="Etc/GMT";if(r.startsWith(p)&&h.startsWith(p)){let f=r.substring(p.length),P=h.substring(p.length),te=f===""?0:parseInt(f);return(P===""?0:parseInt(P))-te}return v.localeCompare(y)}),{label:$(e,s),items:c.map(r=>{let h=x(w(r,u,d)),v=I(r,e),y=s===m?`${I(m,e)} Etc`:Q(r),p=n(r),f=$(e,p);return{label:v,value:r,metadata:{country:f===v?void 0:f,filterValue:y,offset:h}}})})).sort((s,c)=>s.label===m?-1:c.label===m?1:s.label.localeCompare(c.label))}let[{groupByOffset:Z},{DateEngine:Y}]=await Promise.all([import("./3K3MAQEW.js"),import("./4ZZ6XWAL.js")]),z=await Z({dateEngine:new Y,groupDateRange:1,startDate:new Date(d).toISOString()}),ee=new Intl.ListFormat(o,{style:"long",type:"conjunction"}),B=["Factory","Etc/UTC"];return z.forEach(a=>{let n=[],m=0;a.tzs.forEach((s,c)=>{B.includes(s)&&m++,n[c]=m}),a.tzs=a.tzs.filter(s=>!B.includes(s)),a.labelTzIdx=a.labelTzIdx.map(s=>s-n[s]).filter(s=>s>=0&&s<a.tzs.length)}),z.map(({labelTzIdx:a,tzs:n})=>{let m=n[0],s=x(w(m,u,d)),c=se(m,d),r=a.map(h=>I(n[h],e));return{label:he(e,s,ee.format(r)),value:c,metadata:{filterValue:n.map(h=>Q(h))}}}).filter(a=>!!a).sort((a,n)=>a.value-n.value)}function I(o,e){return e[o]||ce(o)}function me(o,e,t){return t.timeZoneRegionLabel.replace("{city}",o).replace("{country}",$(t,e))}function $(o,e){return o[e]||e}function ce(o){return o.split("/").pop()}function Q(o){return o.replace(/_/g," ")}function he(o,e,t){return o.timeZoneLabel.replace("{offset}",e).replace("{cities}",t)}function w(o,e,t=Date.now()){return o==="Factory"&&(o="Etc/GMT"),q(e,{timeZone:o,timeZoneName:"shortOffset"}).formatToParts(t).find(({type:i})=>i==="timeZoneName").value}function de(o){return o.items!==void 0}function ue(o){return de(o[0])?o.flatMap(e=>e.items):o}function X(o,e,t){return t==null?null:ue(o).find(i=>i[e]==t)}var pe=D`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block}.offset{white-space:nowrap}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}`,O=class extends E{constructor(){super(...arguments),this.clearable=!1,this.disabled=!1,this.maxItems=0,this.messages=N({blocking:!0}),this.mode="offset",this.offsetStyle="user",this.open=!1,this.overlayPositioning="absolute",this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.calciteInputTimeZoneBeforeClose=b({cancelable:!1}),this.calciteInputTimeZoneBeforeOpen=b({cancelable:!1}),this.calciteInputTimeZoneChange=b({cancelable:!1}),this.calciteInputTimeZoneClose=b({cancelable:!1}),this.calciteInputTimeZoneOpen=b({cancelable:!1})}static{this.properties={clearable:7,disabled:7,form:3,maxItems:11,messageOverrides:0,mode:3,name:3,offsetStyle:3,open:7,overlayPositioning:3,readOnly:7,referenceDate:1,required:7,scale:3,status:3,validationIcon:[3,{converter:S}],validationMessage:1,validity:0,value:1}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=pe}get value(){return this._value}set value(e){this._value=e}async setFocus(){await U(this),await this.comboboxEl.setFocus()}connectedCallback(){super.connectedCallback(),A(this),W(this)}async load(){_(this),this.normalizer=await le(this.mode),await this.updateTimeZoneItems();let e=this.value,t=this.normalizeValue(e);this.value=t||(e===""?t:void 0),this.updateTimeZoneSelection();let i=this.selectedTimeZoneItem?`${this.selectedTimeZoneItem.value}`:"";J(this,i),this.value=i}willUpdate(e){e.has("value")&&this.hasUpdated&&this.handleValueChange(this.value,e.get("value")),(e.has("messages")||e.has("mode")&&(this.hasUpdated||this.mode!=="offset")||e.has("referenceDate"))&&this.handleTimeZoneItemPropsChange(),e.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openChanged()}updated(){V(this)}loaded(){k(this),this.overrideSelectedLabelForRegion(this.open),this.openChanged()}disconnectedCallback(){super.disconnectedCallback(),H(this),j(this)}async handleTimeZoneItemPropsChange(){!this.timeZoneItems||!this.hasUpdated||(await this.updateTimeZoneItems(),this.updateTimeZoneSelection())}openChanged(){this.comboboxEl&&(this.comboboxEl.open=this.open)}async handleValueChange(e,t){let i=this.normalizeValue(e);if(!i){if(this.clearable){this._value=i,this.selectedTimeZoneItem=null;return}this._value=t,this.selectedTimeZoneItem=this.findTimeZoneItem(t);return}let l=this.findTimeZoneItem(i);if(!l){this._value=t;return}this._value=i,this.selectedTimeZoneItem=l,i!==e&&(await this.updateComplete,this.overrideSelectedLabelForRegion(this.open))}onLabelClick(){this.setFocus()}setComboboxRef(e){this.comboboxEl=e}overrideSelectedLabelForRegion(e){if(this.mode!=="region"||!this.selectedTimeZoneItem)return;let{label:t,metadata:i}=this.selectedTimeZoneItem;this.comboboxEl.selectedItems[0].textLabel=!i.country||e?t:me(t,i.country,this.messages)}onComboboxBeforeClose(e){e.stopPropagation(),this.overrideSelectedLabelForRegion(!1),this.calciteInputTimeZoneBeforeClose.emit()}onComboboxBeforeOpen(e){e.stopPropagation(),this.overrideSelectedLabelForRegion(!0),this.calciteInputTimeZoneBeforeOpen.emit()}onComboboxChange(e){e.stopPropagation();let t=e.target.selectedItems[0];if(!t){this._value="",this.selectedTimeZoneItem=null,this.calciteInputTimeZoneChange.emit();return}let i=this.findTimeZoneItemByLabel(t.getAttribute("data-label")),l=`${i.value}`;this.value===l&&i.label===this.selectedTimeZoneItem.label||(this._value=l,this.selectedTimeZoneItem=i,this.calciteInputTimeZoneChange.emit())}onComboboxClose(e){e.stopPropagation(),this.open=!1,this.calciteInputTimeZoneClose.emit()}onComboboxOpen(e){this.open=!0,e.stopPropagation(),this.calciteInputTimeZoneOpen.emit()}findTimeZoneItem(e){return X(this.timeZoneItems,"value",e)}findTimeZoneItemByLabel(e){return X(this.timeZoneItems,"label",e)}async updateTimeZoneItems(){this.timeZoneItems=await this.createTimeZoneItems()}updateTimeZoneSelection(){if(this.value===""&&this.clearable){this.selectedTimeZoneItem=null;return}let e=this.mode==="offset"?ae():ne(),t=this.value===""||!this.value?e:this.value;this.selectedTimeZoneItem=this.findTimeZoneItem(t)||this.findTimeZoneItem(e)}async createTimeZoneItems(){return!this.messages._lang||!this.messages?[]:re(this.messages._lang,this.messages,this.mode,this.referenceDate instanceof Date?this.referenceDate:new Date(this.referenceDate??Date.now()),this.offsetStyle)}normalizeValue(e){return e=e===void 0?"":e,e&&this.normalizer(e)}render(){return G({disabled:this.disabled,children:g`<calcite-combobox .clearDisabled=${!this.clearable} .disabled=${this.disabled} .label=${this.messages.chooseTimeZone} lang=${this.messages._lang??T} .maxItems=${this.maxItems} @calciteComboboxBeforeClose=${this.onComboboxBeforeClose} @calciteComboboxBeforeOpen=${this.onComboboxBeforeOpen} @calciteComboboxChange=${this.onComboboxChange} @calciteComboboxClose=${this.onComboboxClose} @calciteComboboxOpen=${this.onComboboxOpen} .overlayPositioning=${this.overlayPositioning} .placeholder=${this.mode==="name"?this.messages.namePlaceholder:this.mode==="offset"?this.messages.offsetPlaceholder:this.messages.regionPlaceholder} placeholder-icon=search .readOnly=${this.readOnly} .scale=${this.scale} .selectionMode=${this.clearable?"single":"single-persist"} .status=${this.status} .validationIcon=${this.validationIcon} .validationMessage=${this.validationMessage} ${R(this.setComboboxRef)}>${this.renderItems()}</calcite-combobox>${K({component:this})}`})}renderItems(){return this.mode==="region"?this.renderRegionItems():C(this.timeZoneItems,({label:e})=>e,e=>{let t=this.selectedTimeZoneItem===e,{label:i,metadata:l,value:u}=e;return g`<calcite-combobox-item data-label=${i??T} .metadata=${l} .selected=${t} .textLabel=${i} .value=${u}></calcite-combobox-item>`})}renderRegionItems(){return this.timeZoneItems.flatMap(({label:e,items:t})=>F(e,g`<calcite-combobox-item-group .label=${e}>${C(t,({label:i})=>i,i=>{let l=this.selectedTimeZoneItem===i,{label:u,metadata:d,value:Z}=i;return g`<calcite-combobox-item data-label=${u??T} .description=${d.country} .metadata=${d} .selected=${l} .textLabel=${u} .value=${Z}><span class=${L(oe.offset)} slot=content-end>${d.offset}</span></calcite-combobox-item>`})}</calcite-combobox-item-group>`))}};M("calcite-input-time-zone",O);export{O as InputTimeZone};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.89
4
+ * v3.0.0-next.90
5
5
  */
6
- import{a as b}from"./HIN2SRVT.js";import{a as f,b as g}from"./QXAMEHO6.js";import"./U5ZJVZRV.js";var M=new Date,T=M.toISOString(),v=365,y=v,R={groupDateRange:y,startDate:T},S=(t,r,e)=>{let o=[],n=e.create(t);for(let l=0;l<=r;l++)n=e.increase(n),o.push(e.formatToIsoDateString(n));return o},w=(t,r,e,o)=>{let n=new Map,l=S(r,e,o);return t.map(c=>{let{label:s}=c,a=g(s),u=l.map(m=>{let d=`${m}-${s}`,i=n.get(d);return i||(i=o.isoToTimeZone(m,s),n.set(d,i),i)});return{...c,continent:a,isRegularContinent:a!==f,dates:u}})},J=(t,r,e)=>t.length===r.length&&t.every((o,n)=>e.same(o,r[n])),Z=(t,r=5)=>{let e=t.filter(({label:n})=>g(n)!==f);if(e.length===0)return[0];let o=e.map(n=>t.indexOf(n));return x(o,r)};function x(t,r=5){let e=t.length;if(e<=r)return t;let o=Math.min(e-2,r-2),n=(e-1)/(o+1);return[t[0],...Array.from({length:o},(l,c)=>t[Math.round((c+1)*n)]),t[e-1]]}async function G(t){let{groupDateRange:r,startDate:e,dateEngine:o}={...R,...t},n=[];if(!o)throw new Error("dateEngine is required");let l=b.map(s=>({label:s})),c=w(l,e,r,o);for(let s of c){let{label:a,continent:u,dates:m}=s;if(s.visited)continue;s.visited=!0;let d={labelIdx:[],tzs:[{label:a}]};for(let i of c.filter(p=>!p.visited)){let{label:p,continent:h,isRegularContinent:z,dates:D}=i;if((u===h||!z)&&J(m,D,o)){let I={label:p};d.tzs.push(I),i.visited=!0}}n.push(d)}return n.map(s=>(s.tzs=s.tzs.sort((a,u)=>a.label.localeCompare(u.label)),{labelTzIdx:Z(s.tzs,7),tzs:s.tzs.map(a=>a.label)})).sort((s,a)=>a.tzs.length-s.tzs.length)}export{G as groupByOffset};
6
+ import{a as b}from"./I4ZFFNCX.js";import{a as f,b as g}from"./7LNLHC6G.js";import"./G6PCDW24.js";var M=new Date,T=M.toISOString(),v=365,y=v,R={groupDateRange:y,startDate:T},S=(t,r,e)=>{let o=[],n=e.create(t);for(let l=0;l<=r;l++)n=e.increase(n),o.push(e.formatToIsoDateString(n));return o},w=(t,r,e,o)=>{let n=new Map,l=S(r,e,o);return t.map(c=>{let{label:s}=c,a=g(s),u=l.map(m=>{let d=`${m}-${s}`,i=n.get(d);return i||(i=o.isoToTimeZone(m,s),n.set(d,i),i)});return{...c,continent:a,isRegularContinent:a!==f,dates:u}})},J=(t,r,e)=>t.length===r.length&&t.every((o,n)=>e.same(o,r[n])),Z=(t,r=5)=>{let e=t.filter(({label:n})=>g(n)!==f);if(e.length===0)return[0];let o=e.map(n=>t.indexOf(n));return x(o,r)};function x(t,r=5){let e=t.length;if(e<=r)return t;let o=Math.min(e-2,r-2),n=(e-1)/(o+1);return[t[0],...Array.from({length:o},(l,c)=>t[Math.round((c+1)*n)]),t[e-1]]}async function G(t){let{groupDateRange:r,startDate:e,dateEngine:o}={...R,...t},n=[];if(!o)throw new Error("dateEngine is required");let l=b.map(s=>({label:s})),c=w(l,e,r,o);for(let s of c){let{label:a,continent:u,dates:m}=s;if(s.visited)continue;s.visited=!0;let d={labelIdx:[],tzs:[{label:a}]};for(let i of c.filter(p=>!p.visited)){let{label:p,continent:h,isRegularContinent:z,dates:D}=i;if((u===h||!z)&&J(m,D,o)){let I={label:p};d.tzs.push(I),i.visited=!0}}n.push(d)}return n.map(s=>(s.tzs=s.tzs.sort((a,u)=>a.label.localeCompare(u.label)),{labelTzIdx:Z(s.tzs,7),tzs:s.tzs.map(a=>a.label)})).sort((s,a)=>a.tzs.length-s.tzs.length)}export{G as groupByOffset};
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.89
4
+ * v3.0.0-next.90
5
5
  */
6
- import{a as re,l as ne}from"./XXNVFFEM.js";import{D as ae}from"./FHHU5FBE.js";var oe=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],B=oe.join(","),ue=typeof Element>"u",D=ue?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,K=!ue&&Element.prototype.getRootNode?function(a){var e;return a==null||(e=a.getRootNode)===null||e===void 0?void 0:e.call(a)}:function(a){return a?.ownerDocument},j=function a(e,t){var r;t===void 0&&(t=!0);var u=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),c=u===""||u==="true",i=c||t&&e&&a(e.parentNode);return i},Te=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},se=function(e,t,r){if(j(e))return[];var u=Array.prototype.slice.apply(e.querySelectorAll(B));return t&&D.call(e,B)&&u.unshift(e),u=u.filter(r),u},ce=function a(e,t,r){for(var u=[],c=Array.from(e);c.length;){var i=c.shift();if(!j(i,!1))if(i.tagName==="SLOT"){var b=i.assignedElements(),f=b.length?b:i.children,y=a(f,!0,r);r.flatten?u.push.apply(u,y):u.push({scopeParent:i,candidates:y})}else{var T=D.call(i,B);T&&r.filter(i)&&(t||!e.includes(i))&&u.push(i);var w=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),S=!j(w,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(w&&S){var I=a(w===!0?i.children:w.children,!0,r);r.flatten?u.push.apply(u,I):u.push({scopeParent:i,candidates:I})}else c.unshift.apply(c,i.children)}}return u},le=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},E=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Te(e))&&!le(e)?0:e.tabIndex},Ne=function(e,t){var r=E(e);return r<0&&t&&!le(e)?0:r},Fe=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},fe=function(e){return e.tagName==="INPUT"},Ee=function(e){return fe(e)&&e.type==="hidden"},Se=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},ke=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},De=function(e){if(!e.name)return!0;var t=e.form||K(e),r=function(b){return t.querySelectorAll('input[type="radio"][name="'+b+'"]')},u;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")u=r(window.CSS.escape(e.name));else try{u=r(e.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var c=ke(u,e.form);return!c||c===e},Re=function(e){return fe(e)&&e.type==="radio"},Ie=function(e){return Re(e)&&!De(e)},Ae=function(e){var t,r=e&&K(e),u=(t=r)===null||t===void 0?void 0:t.host,c=!1;if(r&&r!==e){var i,b,f;for(c=!!((i=u)!==null&&i!==void 0&&(b=i.ownerDocument)!==null&&b!==void 0&&b.contains(u)||e!=null&&(f=e.ownerDocument)!==null&&f!==void 0&&f.contains(e));!c&&u;){var y,T,w;r=K(u),u=(y=r)===null||y===void 0?void 0:y.host,c=!!((T=u)!==null&&T!==void 0&&(w=T.ownerDocument)!==null&&w!==void 0&&w.contains(u))}}return c},ie=function(e){var t=e.getBoundingClientRect(),r=t.width,u=t.height;return r===0&&u===0},Pe=function(e,t){var r=t.displayCheck,u=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var c=D.call(e,"details>summary:first-of-type"),i=c?e.parentElement:e;if(D.call(i,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof u=="function"){for(var b=e;e;){var f=e.parentElement,y=K(e);if(f&&!f.shadowRoot&&u(f)===!0)return ie(e);e.assignedSlot?e=e.assignedSlot:!f&&y!==e.ownerDocument?e=y.host:e=f}e=b}if(Ae(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return ie(e);return!1},Oe=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r<t.children.length;r++){var u=t.children.item(r);if(u.tagName==="LEGEND")return D.call(t,"fieldset[disabled] *")?!0:!u.contains(e)}return!0}t=t.parentElement}return!1},M=function(e,t){return!(t.disabled||j(t)||Ee(t)||Pe(t,e)||Se(t)||Oe(t))},W=function(e,t){return!(Ie(t)||E(t)<0||!M(e,t))},Ce=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},xe=function a(e){var t=[],r=[];return e.forEach(function(u,c){var i=!!u.scopeParent,b=i?u.scopeParent:u,f=Ne(b,i),y=i?a(u.candidates):b;f===0?i?t.push.apply(t,y):t.push(b):r.push({documentOrder:c,tabIndex:f,item:u,isScope:i,content:y})}),r.sort(Fe).reduce(function(u,c){return c.isScope?u.push.apply(u,c.content):u.push(c.content),u},[]).concat(t)},de=function(e,t){t=t||{};var r;return t.getShadowRoot?r=ce([e],t.includeContainer,{filter:W.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Ce}):r=se(e,t.includeContainer,W.bind(null,t)),xe(r)},ve=function(e,t){t=t||{};var r;return t.getShadowRoot?r=ce([e],t.includeContainer,{filter:M.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):r=se(e,t.includeContainer,M.bind(null,t)),r},R=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return D.call(e,B)===!1?!1:W(t,e)},Le=oe.concat("iframe").join(","),U=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return D.call(e,Le)===!1?!1:M(t,e)};function Y(a,e){(e==null||e>a.length)&&(e=a.length);for(var t=0,r=Array(e);t<e;t++)r[t]=a[t];return r}function Be(a){if(Array.isArray(a))return Y(a)}function Ke(a,e,t){return(e=qe(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function je(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function Me(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
6
+ import{a as re,l as ne}from"./ZCH7BCRY.js";import{D as ae}from"./44JWN2HB.js";var oe=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],B=oe.join(","),ue=typeof Element>"u",D=ue?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,K=!ue&&Element.prototype.getRootNode?function(a){var e;return a==null||(e=a.getRootNode)===null||e===void 0?void 0:e.call(a)}:function(a){return a?.ownerDocument},j=function a(e,t){var r;t===void 0&&(t=!0);var u=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),c=u===""||u==="true",i=c||t&&e&&a(e.parentNode);return i},Te=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},se=function(e,t,r){if(j(e))return[];var u=Array.prototype.slice.apply(e.querySelectorAll(B));return t&&D.call(e,B)&&u.unshift(e),u=u.filter(r),u},ce=function a(e,t,r){for(var u=[],c=Array.from(e);c.length;){var i=c.shift();if(!j(i,!1))if(i.tagName==="SLOT"){var b=i.assignedElements(),f=b.length?b:i.children,y=a(f,!0,r);r.flatten?u.push.apply(u,y):u.push({scopeParent:i,candidates:y})}else{var T=D.call(i,B);T&&r.filter(i)&&(t||!e.includes(i))&&u.push(i);var w=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),S=!j(w,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(w&&S){var I=a(w===!0?i.children:w.children,!0,r);r.flatten?u.push.apply(u,I):u.push({scopeParent:i,candidates:I})}else c.unshift.apply(c,i.children)}}return u},le=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},E=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Te(e))&&!le(e)?0:e.tabIndex},Ne=function(e,t){var r=E(e);return r<0&&t&&!le(e)?0:r},Fe=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},fe=function(e){return e.tagName==="INPUT"},Ee=function(e){return fe(e)&&e.type==="hidden"},Se=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},ke=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},De=function(e){if(!e.name)return!0;var t=e.form||K(e),r=function(b){return t.querySelectorAll('input[type="radio"][name="'+b+'"]')},u;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")u=r(window.CSS.escape(e.name));else try{u=r(e.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var c=ke(u,e.form);return!c||c===e},Re=function(e){return fe(e)&&e.type==="radio"},Ie=function(e){return Re(e)&&!De(e)},Ae=function(e){var t,r=e&&K(e),u=(t=r)===null||t===void 0?void 0:t.host,c=!1;if(r&&r!==e){var i,b,f;for(c=!!((i=u)!==null&&i!==void 0&&(b=i.ownerDocument)!==null&&b!==void 0&&b.contains(u)||e!=null&&(f=e.ownerDocument)!==null&&f!==void 0&&f.contains(e));!c&&u;){var y,T,w;r=K(u),u=(y=r)===null||y===void 0?void 0:y.host,c=!!((T=u)!==null&&T!==void 0&&(w=T.ownerDocument)!==null&&w!==void 0&&w.contains(u))}}return c},ie=function(e){var t=e.getBoundingClientRect(),r=t.width,u=t.height;return r===0&&u===0},Pe=function(e,t){var r=t.displayCheck,u=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var c=D.call(e,"details>summary:first-of-type"),i=c?e.parentElement:e;if(D.call(i,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof u=="function"){for(var b=e;e;){var f=e.parentElement,y=K(e);if(f&&!f.shadowRoot&&u(f)===!0)return ie(e);e.assignedSlot?e=e.assignedSlot:!f&&y!==e.ownerDocument?e=y.host:e=f}e=b}if(Ae(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return ie(e);return!1},Oe=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r<t.children.length;r++){var u=t.children.item(r);if(u.tagName==="LEGEND")return D.call(t,"fieldset[disabled] *")?!0:!u.contains(e)}return!0}t=t.parentElement}return!1},M=function(e,t){return!(t.disabled||j(t)||Ee(t)||Pe(t,e)||Se(t)||Oe(t))},W=function(e,t){return!(Ie(t)||E(t)<0||!M(e,t))},Ce=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},xe=function a(e){var t=[],r=[];return e.forEach(function(u,c){var i=!!u.scopeParent,b=i?u.scopeParent:u,f=Ne(b,i),y=i?a(u.candidates):b;f===0?i?t.push.apply(t,y):t.push(b):r.push({documentOrder:c,tabIndex:f,item:u,isScope:i,content:y})}),r.sort(Fe).reduce(function(u,c){return c.isScope?u.push.apply(u,c.content):u.push(c.content),u},[]).concat(t)},de=function(e,t){t=t||{};var r;return t.getShadowRoot?r=ce([e],t.includeContainer,{filter:W.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Ce}):r=se(e,t.includeContainer,W.bind(null,t)),xe(r)},ve=function(e,t){t=t||{};var r;return t.getShadowRoot?r=ce([e],t.includeContainer,{filter:M.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):r=se(e,t.includeContainer,M.bind(null,t)),r},R=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return D.call(e,B)===!1?!1:W(t,e)},Le=oe.concat("iframe").join(","),U=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return D.call(e,Le)===!1?!1:M(t,e)};function Y(a,e){(e==null||e>a.length)&&(e=a.length);for(var t=0,r=Array(e);t<e;t++)r[t]=a[t];return r}function Be(a){if(Array.isArray(a))return Y(a)}function Ke(a,e,t){return(e=qe(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function je(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function Me(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
7
7
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function be(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(a,u).enumerable})),t.push.apply(t,r)}return t}function pe(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?be(Object(t),!0).forEach(function(r){Ke(a,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):be(Object(t)).forEach(function(r){Object.defineProperty(a,r,Object.getOwnPropertyDescriptor(t,r))})}return a}function Ue(a){return Be(a)||je(a)||Ve(a)||Me()}function Ge(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var r=t.call(a,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function qe(a){var e=Ge(a,"string");return typeof e=="symbol"?e:e+""}function Ve(a,e){if(a){if(typeof a=="string")return Y(a,e);var t={}.toString.call(a).slice(8,-1);return t==="Object"&&a.constructor&&(t=a.constructor.name),t==="Map"||t==="Set"?Array.from(a):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Y(a,e):void 0}}var he={activateTrap:function(e,t){if(e.length>0){var r=e[e.length-1];r!==t&&r.pause()}var u=e.indexOf(t);u===-1||e.splice(u,1),e.push(t)},deactivateTrap:function(e,t){var r=e.indexOf(t);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}},$e=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},We=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},x=function(e){return e?.key==="Tab"||e?.keyCode===9},Ye=function(e){return x(e)&&!e.shiftKey},Ze=function(e){return x(e)&&e.shiftKey},ye=function(e){return setTimeout(e,0)},C=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),u=1;u<t;u++)r[u-1]=arguments[u];return typeof e=="function"?e.apply(void 0,r):e},G=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},ze=[],me=function(e,t){var r=t?.document||document,u=t?.trapStack||ze,c=pe({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Ye,isKeyBackward:Ze},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},b,f=function(n,o,s){return n&&n[o]!==void 0?n[o]:c[s||o]},y=function(n,o){var s=typeof o?.composedPath=="function"?o.composedPath():void 0;return i.containerGroups.findIndex(function(d){var v=d.container,h=d.tabbableNodes;return v.contains(n)||s?.includes(v)||h.find(function(l){return l===n})})},T=function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=o.hasFallback,d=s===void 0?!1:s,v=o.params,h=v===void 0?[]:v,l=c[n];if(typeof l=="function"&&(l=l.apply(void 0,Ue(h))),l===!0&&(l=void 0),!l){if(l===void 0||l===!1)return l;throw new Error("`".concat(n,"` was specified but was not a node, or did not return a node"))}var m=l;if(typeof l=="string"){try{m=r.querySelector(l)}catch(g){throw new Error("`".concat(n,'` appears to be an invalid selector; error="').concat(g.message,'"'))}if(!m&&!d)throw new Error("`".concat(n,"` as selector refers to no known node"))}return m},w=function(){var n=T("initialFocus",{hasFallback:!0});if(n===!1)return!1;if(n===void 0||n&&!U(n,c.tabbableOptions))if(y(r.activeElement)>=0)n=r.activeElement;else{var o=i.tabbableGroups[0],s=o&&o.firstTabbableNode;n=s||T("fallbackFocus")}else n===null&&(n=T("fallbackFocus"));if(!n)throw new Error("Your focus-trap needs to have at least one focusable element");return n},S=function(){if(i.containerGroups=i.containers.map(function(n){var o=de(n,c.tabbableOptions),s=ve(n,c.tabbableOptions),d=o.length>0?o[0]:void 0,v=o.length>0?o[o.length-1]:void 0,h=s.find(function(g){return R(g)}),l=s.slice().reverse().find(function(g){return R(g)}),m=!!o.find(function(g){return E(g)>0});return{container:n,tabbableNodes:o,focusableNodes:s,posTabIndexesFound:m,firstTabbableNode:d,lastTabbableNode:v,firstDomTabbableNode:h,lastDomTabbableNode:l,nextTabbableNode:function(k){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,F=o.indexOf(k);return F<0?P?s.slice(s.indexOf(k)+1).find(function(O){return R(O)}):s.slice(0,s.indexOf(k)).reverse().find(function(O){return R(O)}):o[F+(P?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(n){return n.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!T("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(n){return n.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},I=function(n){var o=n.activeElement;if(o)return o.shadowRoot&&o.shadowRoot.activeElement!==null?I(o.shadowRoot):o},N=function(n){if(n!==!1&&n!==I(document)){if(!n||!n.focus){N(w());return}n.focus({preventScroll:!!c.preventScroll}),i.mostRecentlyFocusedNode=n,$e(n)&&n.select()}},Z=function(n){var o=T("setReturnFocus",{params:[n]});return o||(o===!1?!1:n)},z=function(n){var o=n.target,s=n.event,d=n.isBackward,v=d===void 0?!1:d;o=o||G(s),S();var h=null;if(i.tabbableGroups.length>0){var l=y(o,s),m=l>=0?i.containerGroups[l]:void 0;if(l<0)v?h=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:h=i.tabbableGroups[0].firstTabbableNode;else if(v){var g=i.tabbableGroups.findIndex(function(V){var $=V.firstTabbableNode;return o===$});if(g<0&&(m.container===o||U(o,c.tabbableOptions)&&!R(o,c.tabbableOptions)&&!m.nextTabbableNode(o,!1))&&(g=l),g>=0){var k=g===0?i.tabbableGroups.length-1:g-1,P=i.tabbableGroups[k];h=E(o)>=0?P.lastTabbableNode:P.lastDomTabbableNode}else x(s)||(h=m.nextTabbableNode(o,!1))}else{var F=i.tabbableGroups.findIndex(function(V){var $=V.lastTabbableNode;return o===$});if(F<0&&(m.container===o||U(o,c.tabbableOptions)&&!R(o,c.tabbableOptions)&&!m.nextTabbableNode(o))&&(F=l),F>=0){var O=F===i.tabbableGroups.length-1?0:F+1,te=i.tabbableGroups[O];h=E(o)>=0?te.firstTabbableNode:te.firstDomTabbableNode}else x(s)||(h=m.nextTabbableNode(o))}}else h=T("fallbackFocus");return h},L=function(n){var o=G(n);if(!(y(o,n)>=0)){if(C(c.clickOutsideDeactivates,n)){b.deactivate({returnFocus:c.returnFocusOnDeactivate});return}C(c.allowOutsideClick,n)||n.preventDefault()}},X=function(n){var o=G(n),s=y(o,n)>=0;if(s||o instanceof Document)s&&(i.mostRecentlyFocusedNode=o);else{n.stopImmediatePropagation();var d,v=!0;if(i.mostRecentlyFocusedNode)if(E(i.mostRecentlyFocusedNode)>0){var h=y(i.mostRecentlyFocusedNode),l=i.containerGroups[h].tabbableNodes;if(l.length>0){var m=l.findIndex(function(g){return g===i.mostRecentlyFocusedNode});m>=0&&(c.isKeyForward(i.recentNavEvent)?m+1<l.length&&(d=l[m+1],v=!1):m-1>=0&&(d=l[m-1],v=!1))}}else i.containerGroups.some(function(g){return g.tabbableNodes.some(function(k){return E(k)>0})})||(v=!1);else v=!1;v&&(d=z({target:i.mostRecentlyFocusedNode,isBackward:c.isKeyBackward(i.recentNavEvent)})),N(d||i.mostRecentlyFocusedNode||w())}i.recentNavEvent=void 0},ge=function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=n;var s=z({event:n,isBackward:o});s&&(x(n)&&n.preventDefault(),N(s))},H=function(n){(c.isKeyForward(n)||c.isKeyBackward(n))&&ge(n,c.isKeyBackward(n))},J=function(n){We(n)&&C(c.escapeDeactivates,n)!==!1&&(n.preventDefault(),b.deactivate())},Q=function(n){var o=G(n);y(o,n)>=0||C(c.clickOutsideDeactivates,n)||C(c.allowOutsideClick,n)||(n.preventDefault(),n.stopImmediatePropagation())},_=function(){if(i.active)return he.activateTrap(u,b),i.delayInitialFocusTimer=c.delayInitialFocus?ye(function(){N(w())}):N(w()),r.addEventListener("focusin",X,!0),r.addEventListener("mousedown",L,{capture:!0,passive:!1}),r.addEventListener("touchstart",L,{capture:!0,passive:!1}),r.addEventListener("click",Q,{capture:!0,passive:!1}),r.addEventListener("keydown",H,{capture:!0,passive:!1}),r.addEventListener("keydown",J),b},ee=function(){if(i.active)return r.removeEventListener("focusin",X,!0),r.removeEventListener("mousedown",L,!0),r.removeEventListener("touchstart",L,!0),r.removeEventListener("click",Q,!0),r.removeEventListener("keydown",H,!0),r.removeEventListener("keydown",J),b},we=function(n){var o=n.some(function(s){var d=Array.from(s.removedNodes);return d.some(function(v){return v===i.mostRecentlyFocusedNode})});o&&N(w())},q=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(we):void 0,A=function(){q&&(q.disconnect(),i.active&&!i.paused&&i.containers.map(function(n){q.observe(n,{subtree:!0,childList:!0})}))};return b={get active(){return i.active},get paused(){return i.paused},activate:function(n){if(i.active)return this;var o=f(n,"onActivate"),s=f(n,"onPostActivate"),d=f(n,"checkCanFocusTrap");d||S(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,o?.();var v=function(){d&&S(),_(),A(),s?.()};return d?(d(i.containers.concat()).then(v,v),this):(v(),this)},deactivate:function(n){if(!i.active)return this;var o=pe({onDeactivate:c.onDeactivate,onPostDeactivate:c.onPostDeactivate,checkCanReturnFocus:c.checkCanReturnFocus},n);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,ee(),i.active=!1,i.paused=!1,A(),he.deactivateTrap(u,b);var s=f(o,"onDeactivate"),d=f(o,"onPostDeactivate"),v=f(o,"checkCanReturnFocus"),h=f(o,"returnFocus","returnFocusOnDeactivate");s?.();var l=function(){ye(function(){h&&N(Z(i.nodeFocusedBeforeActivation)),d?.()})};return h&&v?(v(Z(i.nodeFocusedBeforeActivation)).then(l,l),this):(l(),this)},pause:function(n){if(i.paused||!i.active)return this;var o=f(n,"onPause"),s=f(n,"onPostPause");return i.paused=!0,o?.(),ee(),A(),s?.(),this},unpause:function(n){if(!i.paused||!i.active)return this;var o=f(n,"onUnpause"),s=f(n,"onPostUnpause");return i.paused=!1,o?.(),S(),_(),A(),s?.(),this},updateContainerElements:function(n){var o=[].concat(n).filter(Boolean);return i.containers=o.map(function(s){return typeof s=="string"?r.querySelector(s):s}),i.active&&S(),A(),this}},b.updateContainerElements(e),b};function tt(a,e){let{el:t}=a,r=e?.focusTrapEl||t;if(!r)return;let u={clickOutsideDeactivates:!0,fallbackFocus:r,setReturnFocus:c=>(ne(c),!1),...e?.focusTrapOptions,document:t.ownerDocument,tabbableOptions:re,trapStack:ae};a.focusTrap=me(r,u)}function at(a,e){a.focusTrapDisabled||a.focusTrap?.activate(e)}function rt(a,e){a.focusTrap?.deactivate(e)}function nt(a){a.focusTrap?.updateContainerElements(a.el)}export{tt as a,at as b,rt as c,nt as d};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.89
4
+ * v3.0.0-next.90
5
5
  */
6
- import{F as n}from"./FHHU5FBE.js";var l="calcite-list",o="calcite-list-item-group",i="calcite-list-item";function r(s){let t=s.parentElement?.closest(i);t&&(t.open=!0,r(t))}function f(s){let t=s.assignedElements({flatten:!0}),e=t.filter(a=>a?.matches(o)).map(a=>Array.from(a.querySelectorAll(i))).flat(),c=t.filter(a=>a?.matches(i));return{lists:t.filter(a=>a?.matches(l)),items:e.concat(c)}}function u(s){let t=s.assignedElements({flatten:!0}).filter(e=>e?.matches(i));t.forEach(e=>{e.setPosition=t.indexOf(e)+1,e.setSize=t.length})}function h(s,t=!1){if(!n())return 0;let e=t?"ancestor::calcite-list-item | ancestor::calcite-list-item-group":"ancestor::calcite-list-item";return document.evaluate(e,s,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength}export{l as a,o as b,i as c,r as d,f as e,u as f,h as g};
6
+ import{F as n}from"./44JWN2HB.js";var l="calcite-list",o="calcite-list-item-group",i="calcite-list-item";function r(s){let t=s.parentElement?.closest(i);t&&(t.open=!0,r(t))}function f(s){let t=s.assignedElements({flatten:!0}),e=t.filter(a=>a?.matches(o)).map(a=>Array.from(a.querySelectorAll(i))).flat(),c=t.filter(a=>a?.matches(i));return{lists:t.filter(a=>a?.matches(l)),items:e.concat(c)}}function u(s){let t=s.assignedElements({flatten:!0}).filter(e=>e?.matches(i));t.forEach(e=>{e.setPosition=t.indexOf(e)+1,e.setSize=t.length})}function h(s,t=!1){if(!n())return 0;let e=t?"ancestor::calcite-list-item | ancestor::calcite-list-item-group":"ancestor::calcite-list-item";return document.evaluate(e,s,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength}export{l as a,o as b,i as c,r as d,f as e,u as f,h as g};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.89
4
+ * v3.0.0-next.90
5
5
  */
6
- import{a as o}from"./HIN2SRVT.js";import"./U5ZJVZRV.js";async function m(){return o.sort().map(r=>({label:r}))}export{m as groupByName};
6
+ import{a as o}from"./I4ZFFNCX.js";import"./G6PCDW24.js";async function m(){return o.sort().map(r=>({label:r}))}export{m as groupByName};