@esri/calcite-components 3.0.2 → 3.1.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (403) hide show
  1. package/dist/calcite/25MWJDNB.js +4 -0
  2. package/dist/calcite/{KJOYBAI5.js → 27XEELXU.js} +2 -2
  3. package/dist/calcite/{G44GIY32.js → 2BZ4W6ME.js} +2 -2
  4. package/dist/calcite/{CFI5FI64.js → 2G2QU6H2.js} +2 -2
  5. package/dist/calcite/{QTFP7OUN.js → 2LJYW76W.js} +2 -2
  6. package/dist/calcite/{5V5PZFPV.js → 2P2X36XX.js} +1 -1
  7. package/dist/calcite/{2Q43JR4R.js → 2RJACA6W.js} +2 -2
  8. package/dist/calcite/{ZYEB6OOM.js → 2WF6ZQML.js} +2 -2
  9. package/dist/calcite/{B4RFHTW2.js → 3SMC6VFN.js} +1 -1
  10. package/dist/calcite/{ZDGZDBPE.js → 3YZG6VYF.js} +2 -2
  11. package/dist/calcite/{E3LQGBTP.js → 44BJ42JB.js} +2 -2
  12. package/dist/calcite/{IF2VTG4O.js → 46OS62N4.js} +2 -2
  13. package/dist/calcite/{BYLYAZTZ.js → 4HUU2L2V.js} +2 -2
  14. package/dist/calcite/{Q66CF4W3.js → 4QYSIP7G.js} +2 -2
  15. package/dist/calcite/{S2LJOUMB.js → 4SCO4SXA.js} +2 -2
  16. package/dist/calcite/{3RVGBVFJ.js → 4SHUGCZX.js} +2 -2
  17. package/dist/calcite/{JNT67J3Z.js → 4UTOJUXY.js} +2 -2
  18. package/dist/calcite/{3TLSGE35.js → 4VQIFUO2.js} +2 -2
  19. package/dist/calcite/{KKGMEX34.js → 55AEKITF.js} +1 -1
  20. package/dist/calcite/{QVCY4WGU.js → 57GJF4OK.js} +2 -2
  21. package/dist/calcite/{YX5TRVRY.js → 5AN7LOAW.js} +2 -2
  22. package/dist/calcite/{HHGO6V2F.js → 5JULVZM5.js} +2 -2
  23. package/dist/calcite/{CVRPAZHG.js → 5LHKI6S2.js} +1 -1
  24. package/dist/calcite/{DF4DAIZE.js → 5MXBYIJG.js} +2 -2
  25. package/dist/calcite/{TNF7E2RJ.js → 5R3TS5NM.js} +2 -2
  26. package/dist/calcite/{O6S6VY32.js → 5RFAKTYY.js} +2 -2
  27. package/dist/calcite/{GUGZXV6L.js → 63DMWYDN.js} +1 -1
  28. package/dist/calcite/{5COCTVTL.js → 67CWEULR.js} +2 -2
  29. package/dist/calcite/{MKVVU5LK.js → 6H5WIVJ4.js} +2 -2
  30. package/dist/calcite/{NXAQ3ZNZ.js → 6LQUDKJI.js} +2 -2
  31. package/dist/calcite/{SMJSXUYT.js → 6NKLOXQX.js} +2 -2
  32. package/dist/calcite/{VPBKQWRV.js → 6QG5BRME.js} +2 -2
  33. package/dist/calcite/6SMK4ISC.js +4 -0
  34. package/dist/calcite/{BPAXWMOU.js → 6XCBFWPE.js} +2 -2
  35. package/dist/calcite/{T64NHTR5.js → 7AC6DTGZ.js} +2 -2
  36. package/dist/calcite/{PGMKTKRG.js → 7NGT4MON.js} +2 -2
  37. package/dist/calcite/{IFPCUCS6.js → 7NXE4Y5M.js} +2 -2
  38. package/dist/calcite/{E3P6UTBX.js → 7U4S4JR2.js} +2 -2
  39. package/dist/calcite/{D5BK72IU.js → AMR3QYWL.js} +2 -2
  40. package/dist/calcite/{762X4JRQ.js → AOZF4GOY.js} +2 -2
  41. package/dist/calcite/{ORNJ2SHJ.js → AQZBMIQP.js} +2 -2
  42. package/dist/calcite/{DUIF4UOJ.js → AZHM7KB6.js} +2 -2
  43. package/dist/calcite/{H7Q3GS6I.js → B46QA7PM.js} +2 -2
  44. package/dist/calcite/{3ZXS7UKF.js → BA46PWLR.js} +2 -2
  45. package/dist/calcite/{E77UFCG7.js → BARDH7F2.js} +1 -1
  46. package/dist/calcite/{BFYE5CCU.js → BFJQ2HIK.js} +2 -2
  47. package/dist/calcite/{HPIVWV3W.js → BHI2YNUH.js} +2 -2
  48. package/dist/calcite/{MBW4RJGP.js → BKVV5PO7.js} +2 -2
  49. package/dist/calcite/BN5424BV.js +4 -0
  50. package/dist/calcite/{E4L6NZNF.js → BQDR5XUL.js} +2 -2
  51. package/dist/calcite/{ME6Z2YOO.js → C36VJ3UB.js} +2 -2
  52. package/dist/calcite/{GO4QOK2G.js → C63A7UGZ.js} +2 -2
  53. package/dist/calcite/{BPPH3LON.js → CAKUOTAA.js} +2 -2
  54. package/dist/calcite/{G57AKIT2.js → CFC62MOL.js} +1 -1
  55. package/dist/calcite/{AW6AIWFX.js → CJJ63ULC.js} +2 -2
  56. package/dist/calcite/{PDYG4KDD.js → CJWNLJMC.js} +2 -2
  57. package/dist/calcite/{4BJW4WBP.js → CZUL7M7W.js} +2 -2
  58. package/dist/calcite/{N7VBZNZD.js → D7ZHNOUH.js} +2 -2
  59. package/dist/calcite/{KBLPZCLN.js → DJTEIS2M.js} +2 -2
  60. package/dist/calcite/{QNMIJ4WK.js → DNEVV2IP.js} +2 -2
  61. package/dist/calcite/{D3M3HCEU.js → DOVOYDZC.js} +2 -2
  62. package/dist/calcite/{FTW2LAIW.js → DR32S26A.js} +2 -2
  63. package/dist/calcite/{532AODLB.js → DS6DEM2B.js} +2 -2
  64. package/dist/calcite/{LVN6GKGM.js → DUHIM25J.js} +2 -2
  65. package/dist/calcite/{MKITX7PO.js → EEBMXE37.js} +2 -2
  66. package/dist/calcite/{2MRVC7VA.js → EHKGHKKP.js} +2 -2
  67. package/dist/calcite/{TYHCHYHH.js → FAIDPNWL.js} +2 -2
  68. package/dist/calcite/{4ZGOTZVH.js → FM7JEHR7.js} +2 -2
  69. package/dist/calcite/{LALBDZYZ.js → FMHLFCZ5.js} +2 -2
  70. package/dist/calcite/FPQS74TO.js +4 -0
  71. package/dist/calcite/{IZ4UM67D.js → FSULRGVC.js} +2 -2
  72. package/dist/calcite/{METSX5PL.js → FTMK24PN.js} +2 -2
  73. package/dist/calcite/{LX6AOLTA.js → FWVXVZ5U.js} +2 -2
  74. package/dist/calcite/{BYPR2JSH.js → FX4CLWDQ.js} +2 -2
  75. package/dist/calcite/{URZNSXZT.js → FZZW7X3D.js} +2 -2
  76. package/dist/calcite/G2WUFTHJ.js +4 -0
  77. package/dist/calcite/{ARIDWTR6.js → G4W6SA2L.js} +1 -1
  78. package/dist/calcite/{C4UTTCWS.js → G54VU354.js} +2 -2
  79. package/dist/calcite/{HYAVXYZ2.js → GCHDY43Z.js} +2 -2
  80. package/dist/calcite/{6LEJ3UPZ.js → GFYGM7CT.js} +2 -2
  81. package/dist/calcite/{R4SFKVAB.js → GLXAFXXM.js} +2 -2
  82. package/dist/calcite/{R4WJ47LZ.js → GQKCOB4E.js} +1 -1
  83. package/dist/calcite/{U52CBUNR.js → GQYHC4MU.js} +2 -2
  84. package/dist/calcite/{JD225EOA.js → HEEQ3I7Q.js} +2 -2
  85. package/dist/calcite/{AQIH4QSU.js → HEIGBNXM.js} +2 -2
  86. package/dist/calcite/{4PUNUHJG.js → HKQTBG4V.js} +2 -2
  87. package/dist/calcite/{NUOSJ2QU.js → HRFDFFZF.js} +2 -2
  88. package/dist/calcite/{UG4VX2WO.js → I3OQO7ND.js} +2 -2
  89. package/dist/calcite/{TY7PAOH3.js → I455YVJB.js} +2 -2
  90. package/dist/calcite/{4V2CYZGJ.js → I6GF7COP.js} +2 -2
  91. package/dist/calcite/{P7NGK5HU.js → IARMCOGA.js} +2 -2
  92. package/dist/calcite/{R7DNUMFW.js → IKOUNHM3.js} +2 -2
  93. package/dist/calcite/{KTIU4AW5.js → ISWZF6RN.js} +2 -2
  94. package/dist/calcite/{NQ2LK6DD.js → IX5CYVED.js} +2 -2
  95. package/dist/calcite/{KXMBACE6.js → J36AMBY7.js} +2 -2
  96. package/dist/calcite/{K5VIMCTR.js → JEJ2LCR7.js} +2 -2
  97. package/dist/calcite/{2QHD4PJ3.js → JELEPAE3.js} +2 -2
  98. package/dist/calcite/{EPC6PV3A.js → JITM525M.js} +2 -2
  99. package/dist/calcite/{EUZ5QYKG.js → JLUDRUSH.js} +2 -2
  100. package/dist/calcite/{44T76NU4.js → JOYOUQJ4.js} +2 -2
  101. package/dist/calcite/{ADQG5III.js → JWO6K43B.js} +2 -2
  102. package/dist/calcite/{SXNM7HTI.js → KBQWS3FJ.js} +2 -2
  103. package/dist/calcite/{UEYGVMY4.js → KG66JKBH.js} +2 -2
  104. package/dist/calcite/{77BUHP3U.js → KMYNTYLP.js} +2 -2
  105. package/dist/calcite/{6VYYMBFV.js → KQJ4DJ7U.js} +2 -2
  106. package/dist/calcite/{UIY3ZOUS.js → KVEN4KGY.js} +2 -2
  107. package/dist/calcite/{GMSVWV3D.js → L226BYBV.js} +2 -2
  108. package/dist/calcite/{UD7QUO4R.js → L7WYBSU7.js} +2 -2
  109. package/dist/calcite/{AGSPOKJL.js → LBAXUJZR.js} +2 -2
  110. package/dist/calcite/{WK6BSIWL.js → LHY72WD7.js} +2 -2
  111. package/dist/calcite/{3LLV2AEE.js → LPG3INFS.js} +2 -2
  112. package/dist/calcite/{IUEFQJD6.js → LWDA24FV.js} +2 -2
  113. package/dist/calcite/{LVPZFTT7.js → M4LAOVIM.js} +2 -2
  114. package/dist/calcite/{BS4H6VSM.js → MKY6KTD7.js} +2 -2
  115. package/dist/calcite/{GE7AW6D3.js → MRXDIHJO.js} +2 -2
  116. package/dist/calcite/{WRT5VFG2.js → MS2LLIKP.js} +2 -2
  117. package/dist/calcite/{HVSGKI4U.js → MTCNAKKH.js} +2 -2
  118. package/dist/calcite/{QCYLDKPD.js → MTCUS2IT.js} +2 -2
  119. package/dist/calcite/{BYC3WNCO.js → MUTDQR2Z.js} +2 -2
  120. package/dist/calcite/{DXHVTM3H.js → MX4JH4EB.js} +2 -2
  121. package/dist/calcite/{JAS5LR3V.js → N23ORJSP.js} +2 -2
  122. package/dist/calcite/{26HCN763.js → N7F5YRAI.js} +2 -2
  123. package/dist/calcite/{3INVFQIX.js → NAXIV3NS.js} +2 -2
  124. package/dist/calcite/{CI3KGKPX.js → NJTWDWJ6.js} +2 -2
  125. package/dist/calcite/{ERSVI3SQ.js → NOWWPIBG.js} +2 -2
  126. package/dist/calcite/{GRW4JOP4.js → NQHFC6PM.js} +2 -2
  127. package/dist/calcite/{T4ULXMD7.js → NTHNMXLF.js} +2 -2
  128. package/dist/calcite/{ALESK5G3.js → NXO3AVQE.js} +2 -2
  129. package/dist/calcite/{OSDCA5Z5.js → NZ3PGHRA.js} +2 -2
  130. package/dist/calcite/{XIWNJBFP.js → OIWNVIRD.js} +1 -1
  131. package/dist/calcite/{XNX35ZFQ.js → OJ3C2QFY.js} +2 -2
  132. package/dist/calcite/{KUKMISYB.js → OJSRLX2O.js} +2 -2
  133. package/dist/calcite/{KP54C3JZ.js → ORQNL5KM.js} +2 -2
  134. package/dist/calcite/{42EYBCUV.js → PDKQQ6DR.js} +1 -1
  135. package/dist/calcite/{KEZYP6US.js → PIWXS5AK.js} +2 -2
  136. package/dist/calcite/{4ZU47CQ3.js → PMJMT5ME.js} +1 -1
  137. package/dist/calcite/{R4XN3TM5.js → PP37ARQP.js} +2 -2
  138. package/dist/calcite/{GYGPER4P.js → PTCLOQGZ.js} +2 -2
  139. package/dist/calcite/{CHIM52AT.js → PVLXFBYV.js} +2 -2
  140. package/dist/calcite/{2J535H74.js → PWBNEXID.js} +1 -1
  141. package/dist/calcite/{EZG5QKN6.js → PYKL3UXB.js} +2 -2
  142. package/dist/calcite/{LQPVMOYJ.js → PZWSVQZD.js} +2 -2
  143. package/dist/calcite/{FBT37OEB.js → QA2FNB22.js} +2 -2
  144. package/dist/calcite/{IIZHIWV2.js → QA2ZIC7C.js} +2 -2
  145. package/dist/calcite/{4GA4WC4S.js → QCBG2KET.js} +2 -2
  146. package/dist/calcite/{RBZYH2DB.js → QGB26YIT.js} +2 -2
  147. package/dist/calcite/{VI3KXLGC.js → QO7E7N7T.js} +1 -1
  148. package/dist/calcite/{NWMFN6P5.js → QURE77NC.js} +2 -2
  149. package/dist/calcite/{VRXSW66C.js → QVP5HCOB.js} +2 -2
  150. package/dist/calcite/{PXNVLWHJ.js → QYJJ2CRF.js} +2 -2
  151. package/dist/calcite/{MFSJ7P6E.js → QYSTCT5M.js} +2 -2
  152. package/dist/calcite/{4FEHFKFZ.js → R5UIS6SZ.js} +2 -2
  153. package/dist/calcite/{AR5Q6UVU.js → R7EMWIVD.js} +2 -2
  154. package/dist/calcite/{PBIOUIAG.js → RCHNH62A.js} +2 -2
  155. package/dist/calcite/{AG3OBGY5.js → REWHAGLT.js} +2 -2
  156. package/dist/calcite/{2FISXH45.js → RIRFCGEM.js} +1 -1
  157. package/dist/calcite/{IMPJNHBW.js → RQQGYM4U.js} +2 -2
  158. package/dist/calcite/{PXWJSYPX.js → SIDPQ5NM.js} +2 -2
  159. package/dist/calcite/{JORKWQP7.js → SJUKTGGZ.js} +2 -2
  160. package/dist/calcite/{MMMDZXO3.js → SLRSUTRB.js} +2 -2
  161. package/dist/calcite/{B3PECEJL.js → SMBWWW7R.js} +2 -2
  162. package/dist/calcite/{57I55JUX.js → STT2ZFFU.js} +2 -2
  163. package/dist/calcite/{MNEWDDI2.js → SVTAI6D2.js} +2 -2
  164. package/dist/calcite/{3IDVHKGJ.js → SZO6Z4W4.js} +2 -2
  165. package/dist/calcite/{2JYAKUAI.js → TDM7B4G5.js} +2 -2
  166. package/dist/calcite/{YJATTLI4.js → TEKJ72AV.js} +2 -2
  167. package/dist/calcite/{BZD7GFVI.js → TEUS7BWM.js} +2 -2
  168. package/dist/calcite/{P7S34RN4.js → TVGLGIXB.js} +1 -1
  169. package/dist/calcite/U7IBYHAI.js +4 -0
  170. package/dist/calcite/{2XQRDBOF.js → UCWHFI2U.js} +2 -2
  171. package/dist/calcite/{LEM2HQED.js → UGHQZXRL.js} +1 -1
  172. package/dist/calcite/{SGGVWBUG.js → UMXX5RIX.js} +2 -2
  173. package/dist/calcite/{6EPLB3BH.js → UQAITM2L.js} +2 -2
  174. package/dist/calcite/{OPD7D4JP.js → USW3PDMJ.js} +1 -1
  175. package/dist/calcite/{PYX2DOAY.js → V2JT45B4.js} +2 -2
  176. package/dist/calcite/{XMMC32IR.js → V7AV4Q4O.js} +2 -2
  177. package/dist/calcite/{IVQXEPWH.js → V7K6RCXD.js} +2 -2
  178. package/dist/calcite/{3BBEWJXF.js → VAGTYQDN.js} +2 -2
  179. package/dist/calcite/{SSS44B5K.js → VB6OFH5U.js} +2 -2
  180. package/dist/calcite/{J67XRVOQ.js → VFS7SSXI.js} +2 -2
  181. package/dist/calcite/{2YAKETFF.js → VKSQFLOG.js} +2 -2
  182. package/dist/calcite/{HAWP5JEV.js → VLS5RJUK.js} +2 -2
  183. package/dist/calcite/{XJFKL6PV.js → VMAJCMBL.js} +2 -2
  184. package/dist/calcite/{BNGQWGBI.js → VOFD5DCL.js} +2 -2
  185. package/dist/calcite/{7D6PTDQC.js → VT3VUVXE.js} +1 -1
  186. package/dist/calcite/{AFAENHVJ.js → VWZTNCJK.js} +2 -2
  187. package/dist/calcite/VZITNFFS.js +4 -0
  188. package/dist/calcite/{NMX7JENH.js → W3RDMYIN.js} +2 -2
  189. package/dist/calcite/{VTO75NHN.js → W422ND5N.js} +2 -2
  190. package/dist/calcite/{Z6VFYDJB.js → W442UUWV.js} +2 -2
  191. package/dist/calcite/{2D346WWC.js → W4KCCO3S.js} +2 -2
  192. package/dist/calcite/{KYF26PQD.js → WFPGREC2.js} +2 -2
  193. package/dist/calcite/{5K7VN4KA.js → WNHOQIFY.js} +2 -2
  194. package/dist/calcite/{2PENUS6W.js → WOGAISGZ.js} +2 -2
  195. package/dist/calcite/{KFCQM5TQ.js → WONA4URM.js} +2 -2
  196. package/dist/calcite/{O4ROBHBS.js → WONIIUPU.js} +2 -2
  197. package/dist/calcite/{RJ2QSN7Y.js → WRHSWUBQ.js} +2 -2
  198. package/dist/calcite/{5VWHRVSC.js → WVMWY4KP.js} +1 -1
  199. package/dist/calcite/{63TOND25.js → X3KIRADK.js} +2 -2
  200. package/dist/calcite/{AWUASB3T.js → XB2N542R.js} +2 -2
  201. package/dist/calcite/{7BNRX2TA.js → XF336TAO.js} +2 -2
  202. package/dist/calcite/{Z4EVTJCF.js → XG5XFLHH.js} +2 -2
  203. package/dist/calcite/{36RFUWOV.js → XJWNF64Z.js} +2 -2
  204. package/dist/calcite/{JIYWCS5W.js → XMJHB5MH.js} +2 -2
  205. package/dist/calcite/{4S7WQOEH.js → XOC6WGGD.js} +2 -2
  206. package/dist/calcite/{DABOIYSX.js → XQ2V4OKL.js} +2 -2
  207. package/dist/calcite/{DP7DCTHA.js → XRWQQLXJ.js} +2 -2
  208. package/dist/calcite/{CUGMAH5O.js → XU7MYACZ.js} +2 -2
  209. package/dist/calcite/{5LT4TL2A.js → Y3OBCBK3.js} +1 -1
  210. package/dist/calcite/{KDOZHNH6.js → YAJOGMAQ.js} +2 -2
  211. package/dist/calcite/{OYFIV5DV.js → YAK6QYAD.js} +2 -2
  212. package/dist/calcite/{6MF5C5ST.js → YFMJPBPZ.js} +2 -2
  213. package/dist/calcite/{T2NQWILT.js → YFZ2NUB6.js} +1 -1
  214. package/dist/calcite/{SPUWEZWR.js → YGEMBWVF.js} +2 -2
  215. package/dist/calcite/{XLECMXIQ.js → YQFDCYWK.js} +2 -2
  216. package/dist/calcite/{6CCGJZNF.js → YTIW4VQ2.js} +2 -2
  217. package/dist/calcite/{OTFP3MJD.js → YVDTR6KO.js} +2 -2
  218. package/dist/calcite/{4JFNYHYI.js → Z2U7XLTE.js} +2 -2
  219. package/dist/calcite/{YJBOOAYG.js → Z3OQKXEK.js} +2 -2
  220. package/dist/calcite/{FXELZL3D.js → Z5LFLG7A.js} +2 -2
  221. package/dist/calcite/{M7C4BL3W.js → ZDABD34W.js} +2 -2
  222. package/dist/calcite/{YYW4OM7V.js → ZDCYBXUV.js} +2 -2
  223. package/dist/calcite/{FPK4FZB7.js → ZKR4GKLC.js} +2 -2
  224. package/dist/calcite/{FC7N6LLB.js → ZOXYMA5O.js} +2 -2
  225. package/dist/calcite/calcite.esm.js +2 -2
  226. package/dist/chunks/ExpandToggle.js +1 -1
  227. package/dist/chunks/FloatingArrow.js +1 -1
  228. package/dist/chunks/Heading.js +1 -1
  229. package/dist/chunks/Validation.js +1 -1
  230. package/dist/chunks/_commonjsHelpers.js +1 -1
  231. package/dist/chunks/array.js +1 -1
  232. package/dist/chunks/component.js +1 -1
  233. package/dist/chunks/core.js +1 -1
  234. package/dist/chunks/date.js +1 -1
  235. package/dist/chunks/dom.js +1 -1
  236. package/dist/chunks/dynamicClasses.js +1 -1
  237. package/dist/chunks/filter.js +1 -1
  238. package/dist/chunks/floating-ui.js +1 -1
  239. package/dist/chunks/focusTrapComponent.js +1 -1
  240. package/dist/chunks/form.js +1 -1
  241. package/dist/chunks/global.js +1 -1
  242. package/dist/chunks/guid.js +1 -1
  243. package/dist/chunks/input.js +1 -1
  244. package/dist/chunks/interact.min.js +1 -1
  245. package/dist/chunks/interactive.js +1 -1
  246. package/dist/chunks/key.js +1 -1
  247. package/dist/chunks/label.js +1 -1
  248. package/dist/chunks/loadable.js +1 -1
  249. package/dist/chunks/locale.js +1 -1
  250. package/dist/chunks/logger.js +1 -1
  251. package/dist/chunks/math.js +1 -1
  252. package/dist/chunks/observers.js +1 -1
  253. package/dist/chunks/openCloseComponent.js +1 -1
  254. package/dist/chunks/resources.js +1 -1
  255. package/dist/chunks/resources2.js +1 -1
  256. package/dist/chunks/resources3.js +1 -1
  257. package/dist/chunks/resources4.js +1 -1
  258. package/dist/chunks/resources5.js +1 -1
  259. package/dist/chunks/resources6.js +1 -1
  260. package/dist/chunks/resources7.js +1 -1
  261. package/dist/chunks/responsive.js +1 -1
  262. package/dist/chunks/runtime.js +10 -10
  263. package/dist/chunks/sortableComponent.js +1 -1
  264. package/dist/chunks/text.js +1 -1
  265. package/dist/chunks/time.js +1 -1
  266. package/dist/chunks/useFocusTrap.js +25 -23
  267. package/dist/chunks/useT9n.js +1 -1
  268. package/dist/chunks/utils.js +1 -1
  269. package/dist/chunks/utils2.js +1 -1
  270. package/dist/chunks/utils3.js +1 -1
  271. package/dist/chunks/utils4.js +1 -1
  272. package/dist/components/calcite-accordion/customElement.js +1 -1
  273. package/dist/components/calcite-accordion-item/customElement.js +1 -1
  274. package/dist/components/calcite-action/customElement.js +25 -25
  275. package/dist/components/calcite-action-bar/customElement.js +1 -1
  276. package/dist/components/calcite-action-group/customElement.js +1 -1
  277. package/dist/components/calcite-action-menu/customElement.js +1 -1
  278. package/dist/components/calcite-action-pad/customElement.js +1 -1
  279. package/dist/components/calcite-alert/customElement.js +1 -1
  280. package/dist/components/calcite-autocomplete/customElement.js +1 -1
  281. package/dist/components/calcite-autocomplete-item/customElement.js +1 -1
  282. package/dist/components/calcite-autocomplete-item-group/customElement.js +1 -1
  283. package/dist/components/calcite-avatar/customElement.js +1 -1
  284. package/dist/components/calcite-block/customElement.js +1 -1
  285. package/dist/components/calcite-block-group/customElement.js +2 -2
  286. package/dist/components/calcite-block-section/customElement.js +1 -1
  287. package/dist/components/calcite-button/customElement.js +1 -1
  288. package/dist/components/calcite-card/customElement.js +1 -1
  289. package/dist/components/calcite-card-group/customElement.js +1 -1
  290. package/dist/components/calcite-carousel/customElement.js +1 -1
  291. package/dist/components/calcite-carousel-item/customElement.js +1 -1
  292. package/dist/components/calcite-checkbox/customElement.js +1 -1
  293. package/dist/components/calcite-chip/customElement.js +1 -1
  294. package/dist/components/calcite-chip-group/customElement.js +1 -1
  295. package/dist/components/calcite-color-picker/customElement.js +1 -1
  296. package/dist/components/calcite-color-picker-hex-input/customElement.js +1 -1
  297. package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
  298. package/dist/components/calcite-combobox/customElement.js +1 -1
  299. package/dist/components/calcite-combobox-item/customElement.js +1 -1
  300. package/dist/components/calcite-combobox-item-group/customElement.js +1 -1
  301. package/dist/components/calcite-date-picker/customElement.js +1 -1
  302. package/dist/components/calcite-date-picker-day/customElement.js +1 -1
  303. package/dist/components/calcite-date-picker-month/customElement.js +1 -1
  304. package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
  305. package/dist/components/calcite-dialog/customElement.js +11 -11
  306. package/dist/components/calcite-dropdown/customElement.js +6 -6
  307. package/dist/components/calcite-dropdown-group/customElement.js +17 -14
  308. package/dist/components/calcite-dropdown-group/resources.d.ts +4 -0
  309. package/dist/components/calcite-dropdown-item/customElement.js +19 -19
  310. package/dist/components/calcite-fab/customElement.js +1 -1
  311. package/dist/components/calcite-filter/customElement.js +1 -1
  312. package/dist/components/calcite-flow/customElement.js +1 -1
  313. package/dist/components/calcite-flow-item/customElement.js +1 -1
  314. package/dist/components/calcite-graph/customElement.js +1 -1
  315. package/dist/components/calcite-handle/customElement.js +1 -1
  316. package/dist/components/calcite-icon/customElement.js +1 -1
  317. package/dist/components/calcite-inline-editable/customElement.js +1 -1
  318. package/dist/components/calcite-input/customElement.js +1 -1
  319. package/dist/components/calcite-input-date-picker/customElement.js +1 -1
  320. package/dist/components/calcite-input-message/customElement.js +1 -1
  321. package/dist/components/calcite-input-number/customElement.js +1 -1
  322. package/dist/components/calcite-input-text/customElement.js +1 -1
  323. package/dist/components/calcite-input-time-picker/customElement.js +1 -1
  324. package/dist/components/calcite-input-time-zone/customElement.js +1 -1
  325. package/dist/components/calcite-label/customElement.js +1 -1
  326. package/dist/components/calcite-link/customElement.js +1 -1
  327. package/dist/components/calcite-list/customElement.js +2 -2
  328. package/dist/components/calcite-list-item/customElement.js +1 -1
  329. package/dist/components/calcite-list-item-group/customElement.js +1 -1
  330. package/dist/components/calcite-loader/customElement.d.ts +2 -2
  331. package/dist/components/calcite-loader/customElement.js +1 -1
  332. package/dist/components/calcite-menu/customElement.js +1 -1
  333. package/dist/components/calcite-menu-item/customElement.js +1 -1
  334. package/dist/components/calcite-meter/customElement.js +1 -1
  335. package/dist/components/calcite-modal/customElement.js +9 -9
  336. package/dist/components/calcite-navigation/customElement.js +1 -1
  337. package/dist/components/calcite-navigation-logo/customElement.js +1 -1
  338. package/dist/components/calcite-navigation-user/customElement.js +1 -1
  339. package/dist/components/calcite-notice/customElement.js +1 -1
  340. package/dist/components/calcite-option/customElement.js +1 -1
  341. package/dist/components/calcite-option-group/customElement.js +1 -1
  342. package/dist/components/calcite-pagination/customElement.js +1 -1
  343. package/dist/components/calcite-panel/customElement.js +1 -1
  344. package/dist/components/calcite-popover/customElement.js +2 -2
  345. package/dist/components/calcite-progress/customElement.js +1 -1
  346. package/dist/components/calcite-radio-button/customElement.js +1 -1
  347. package/dist/components/calcite-radio-button-group/customElement.js +1 -1
  348. package/dist/components/calcite-rating/customElement.js +1 -1
  349. package/dist/components/calcite-scrim/customElement.js +1 -1
  350. package/dist/components/calcite-segmented-control/customElement.js +1 -1
  351. package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
  352. package/dist/components/calcite-select/customElement.js +1 -1
  353. package/dist/components/calcite-sheet/customElement.js +5 -5
  354. package/dist/components/calcite-shell/customElement.js +1 -1
  355. package/dist/components/calcite-shell-center-row/customElement.js +1 -1
  356. package/dist/components/calcite-shell-panel/customElement.js +1 -1
  357. package/dist/components/calcite-slider/customElement.js +1 -1
  358. package/dist/components/calcite-sort-handle/customElement.js +1 -1
  359. package/dist/components/calcite-sortable-list/customElement.js +1 -1
  360. package/dist/components/calcite-split-button/customElement.js +1 -1
  361. package/dist/components/calcite-stack/customElement.js +1 -1
  362. package/dist/components/calcite-stepper/customElement.js +1 -1
  363. package/dist/components/calcite-stepper-item/customElement.js +1 -1
  364. package/dist/components/calcite-switch/customElement.js +1 -1
  365. package/dist/components/calcite-tab/customElement.js +1 -1
  366. package/dist/components/calcite-tab-nav/customElement.js +1 -1
  367. package/dist/components/calcite-tab-title/customElement.js +6 -6
  368. package/dist/components/calcite-table/customElement.js +1 -1
  369. package/dist/components/calcite-table-cell/customElement.js +1 -1
  370. package/dist/components/calcite-table-header/customElement.js +1 -1
  371. package/dist/components/calcite-table-row/customElement.js +1 -1
  372. package/dist/components/calcite-tabs/customElement.js +1 -1
  373. package/dist/components/calcite-text-area/customElement.js +1 -1
  374. package/dist/components/calcite-tile/customElement.js +1 -1
  375. package/dist/components/calcite-tile-group/customElement.js +1 -1
  376. package/dist/components/calcite-tile-select/customElement.js +1 -1
  377. package/dist/components/calcite-tile-select-group/customElement.js +1 -1
  378. package/dist/components/calcite-time-picker/customElement.js +1 -1
  379. package/dist/components/calcite-tip/customElement.js +1 -1
  380. package/dist/components/calcite-tip-group/customElement.js +1 -1
  381. package/dist/components/calcite-tip-manager/customElement.js +1 -1
  382. package/dist/components/calcite-tooltip/customElement.js +1 -1
  383. package/dist/components/calcite-tree/customElement.js +1 -1
  384. package/dist/components/calcite-tree-item/customElement.js +1 -1
  385. package/dist/controllers/useFocusTrap.d.ts +2 -6
  386. package/dist/custom-theme/dropdown.d.ts +16 -0
  387. package/dist/docs/api.json +52 -12
  388. package/dist/docs/docs.json +59 -12
  389. package/dist/docs/vscode.css-custom-data.json +43 -7
  390. package/dist/docs/vscode.html-custom-data.json +6 -6
  391. package/dist/docs/web-types.json +52 -16
  392. package/dist/extras/vscode-data.json +6 -6
  393. package/dist/index.js +1 -1
  394. package/dist/loader.js +1 -1
  395. package/package.json +5 -5
  396. package/readme.md +2 -2
  397. package/dist/calcite/3MDXQNOS.js +0 -4
  398. package/dist/calcite/HZD74WIH.js +0 -4
  399. package/dist/calcite/KN2DHQQX.js +0 -4
  400. package/dist/calcite/MBDY7HC3.js +0 -4
  401. package/dist/calcite/S5F5TPCL.js +0 -4
  402. package/dist/calcite/VANSKT7E.js +0 -4
  403. package/dist/calcite/XCHOTUWL.js +0 -4
@@ -2960,7 +2960,7 @@
2960
2960
  },
2961
2961
  {
2962
2962
  "name": "calcite-dropdown",
2963
- "description": "### Events\n- **calciteDropdownBeforeClose** - Fires when the component is requested to be closed and before the closing transition begins.\n- **calciteDropdownBeforeOpen** - Fires when the component is added to the DOM but not rendered, and before the opening transition begins.\n- **calciteDropdownClose** - Fires when the component is closed and animation is complete.\n- **calciteDropdownOpen** - Fires when the component is open and animation is complete.\n- **calciteDropdownSelect** - Fires when a `calcite-dropdown-item`'s selection changes.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `reposition(delayed?: boolean): Promise<void>` - Updates the position of the component.\n- `setFocus(): Promise<void>` - Sets focus on the component's first focusable element.\n\n### Slots\n- _default_ - A slot for adding `calcite-dropdown-group` elements. Every `calcite-dropdown-item` must have a parent `calcite-dropdown-group`, even if the `groupTitle` property is not set.\n- **trigger** - A slot for the element that triggers the `calcite-dropdown`.\n\n### CSS Properties\n- **--calcite-dropdown-width** - Specifies the width of the component's wrapper. ",
2963
+ "description": "### Events\n- **calciteDropdownBeforeClose** - Fires when the component is requested to be closed and before the closing transition begins.\n- **calciteDropdownBeforeOpen** - Fires when the component is added to the DOM but not rendered, and before the opening transition begins.\n- **calciteDropdownClose** - Fires when the component is closed and animation is complete.\n- **calciteDropdownOpen** - Fires when the component is open and animation is complete.\n- **calciteDropdownSelect** - Fires when a `calcite-dropdown-item`'s selection changes.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `reposition(delayed?: boolean): Promise<void>` - Updates the position of the component.\n- `setFocus(): Promise<void>` - Sets focus on the component's first focusable element.\n\n### Slots\n- _default_ - A slot for adding `calcite-dropdown-group` elements. Every `calcite-dropdown-item` must have a parent `calcite-dropdown-group`, even if the `groupTitle` property is not set.\n- **trigger** - A slot for the element that triggers the `calcite-dropdown`.\n\n### CSS Properties\n- **--calcite-dropdown-width** - Specifies the width of the component's wrapper. \n- **--calcite-dropdown-background-color** - Specifies the background color of the component. ",
2964
2964
  "attributes": [
2965
2965
  {
2966
2966
  "name": "close-on-select-disabled",
@@ -3080,7 +3080,7 @@
3080
3080
  },
3081
3081
  {
3082
3082
  "name": "calcite-dropdown-group",
3083
- "description": "### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n\n### Slots\n- _default_ - A slot for adding `calcite-dropdown-item`s.",
3083
+ "description": "### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n\n### Slots\n- _default_ - A slot for adding `calcite-dropdown-item`s.\n\n### CSS Properties\n- **--calcite-dropdown-group-border-color** - Specifies the color of the dropdown's border. \n- **--calcite-dropdown-group-title-text-color** - Specifies the color of the dropdown's title. ",
3084
3084
  "attributes": [
3085
3085
  {
3086
3086
  "name": "group-title",
@@ -3107,7 +3107,7 @@
3107
3107
  },
3108
3108
  {
3109
3109
  "name": "calcite-dropdown-item",
3110
- "description": "### Events\n- **calciteDropdownItemSelect** - Fires when the component is selected.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `setFocus(): Promise<void>` - Sets focus on the component.\n\n### Slots\n- _default_ - A slot for adding text.",
3110
+ "description": "### Events\n- **calciteDropdownItemSelect** - Fires when the component is selected.\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n- `setFocus(): Promise<void>` - Sets focus on the component.\n\n### Slots\n- _default_ - A slot for adding text.\n\n### CSS Properties\n- **--calcite-dropdown-item-background-color-hover** - Specifies the background color of the dropdown item when hovered. \n- **--calcite-dropdown-item-background-color-press** - Specifies the background color of the dropdown item when selected or active. \n- **--calcite-dropdown-item-icon-color-hover** - Specifies the color of the dropdown item icon when hovered. \n- **--calcite-dropdown-item-icon-color-press** - Specifies the color of the dropdown item icons when selected or active. \n- **--calcite-dropdown-item-text-color-press** - Specifies the color of the dropdown item text when selected or active. \n- **--calcite-dropdown-item-text-color** - Specifies the color of the dropdown item text. ",
3111
3111
  "attributes": [
3112
3112
  {
3113
3113
  "name": "disabled",
@@ -5138,11 +5138,11 @@
5138
5138
  },
5139
5139
  {
5140
5140
  "name": "calcite-loader",
5141
- "description": "### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n\n### CSS Properties\n- **--calcite-loader-font-size** - When `type` is not `\"indeterminate\"` or `inline`, specifies the font size of the loading percentage. \n- **--calcite-loader-size** - When `inline` is not set, specifies the component's width and height. \n- **--calcite-loader-size-inline** - [Deprecated] Use `--calcite-loader-size`. Specifies the width and height of the component when set to inline. \n- **--calcite-loader-spacing** - Specifies the the component's padding. \n- **--calcite-loader-progress-color-inline** - When `inline`, specifies the component's progress ring color. \n- **--calcite-loader-text-spacing** - When not `inline`, specifies the component's `text` margin. \n- **--calcite-loader-text-weight** - When not `inline` and `text` is provided, specifies the component's `text` font weight. \n- **--calcite-loader-text-color** - When not `inline` and `text` is provided, specifies the component's `text` color. \n- **--calcite-loader-progress-color** - When not `inline`, specifies the component's progress ring color. \n- **--calcite-loader-track-color** - Specifies the component's track color. ",
5141
+ "description": "### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n\n### CSS Properties\n- **--calcite-loader-font-size** - Specifies the font size of the loading percentage when type is `\"determinate\"`. \n- **--calcite-loader-size** - Specifies the width and height of the component when not set to inline. \n- **--calcite-loader-size-inline** - [Deprecated] Use `--calcite-loader-size`. Specifies the width and height of the component when set to inline. \n- **--calcite-loader-spacing** - Specifies the the component's padding. \n- **--calcite-loader-progress-color-inline** - Specifies the width and height of the component when set to inline. \n- **--calcite-loader-text-spacing** - Specifies the component's text margin. \n- **--calcite-loader-text-weight** - Specifies the component's font weight. \n- **--calcite-loader-text-color** - Specifies the component's text color. \n- **--calcite-loader-progress-color** - Specifies the component's progress ring color. \n- **--calcite-loader-track-color** - Specifies the component's track color. ",
5142
5142
  "attributes": [
5143
5143
  {
5144
5144
  "name": "inline",
5145
- "description": "When `true`, the component displays smaller.",
5145
+ "description": "When `true`, displays smaller and appears to the left of the text.",
5146
5146
  "values": []
5147
5147
  },
5148
5148
  {
@@ -5167,7 +5167,7 @@
5167
5167
  },
5168
5168
  {
5169
5169
  "name": "text",
5170
- "description": "When not `inline`, displays text under the component's indicator.",
5170
+ "description": "Text that displays under the component's indicator.",
5171
5171
  "values": []
5172
5172
  },
5173
5173
  {
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { s } from "./chunks/runtime.js";
2
2
  import { g as P } from "./chunks/runtime.js";
3
3
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
4
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
5
- v3.0.2 */
5
+ v3.1.0-next.1 */
6
6
  let e = !1;
7
7
  const o = (t) => {
8
8
  e = !0, s(t);
package/dist/loader.js CHANGED
@@ -3,7 +3,7 @@ import { r as e } from "./chunks/runtime.js";
3
3
  import { makeDefineCustomElements as t } from "@arcgis/lumina";
4
4
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
5
5
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
6
- v3.0.2 */
6
+ v3.1.0-next.1 */
7
7
  const o = t(e, {
8
8
  "calcite-accordion": [() => import("./components/calcite-accordion/customElement.js"), "appearance,iconPosition,iconType,scale,selectionMode"],
9
9
  "calcite-accordion-item": [() => import("./components/calcite-accordion-item/customElement.js"), "accordionParent:,description,expanded,heading,iconEnd,iconFlipRtl,iconPosition,iconStart,iconType,scale;setFocus"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/calcite-components",
3
- "version": "3.0.2",
3
+ "version": "3.1.0-next.1",
4
4
  "description": "Web Components for Esri's Calcite Design System.",
5
5
  "homepage": "https://developers.arcgis.com/calcite-design-system/",
6
6
  "repository": {
@@ -71,7 +71,7 @@
71
71
  "@arcgis/components-controllers": "^4.32.0-next.129",
72
72
  "@arcgis/components-utils": "^4.32.0-next.129",
73
73
  "@arcgis/lumina": "^4.32.0-next.129",
74
- "@esri/calcite-ui-icons": "4.0.0",
74
+ "@esri/calcite-ui-icons": "4.0.1-next.0",
75
75
  "@floating-ui/dom": "^1.6.12",
76
76
  "@floating-ui/utils": "^0.2.8",
77
77
  "@types/color": "^4.2.0",
@@ -87,8 +87,8 @@
87
87
  "type-fest": "^4.30.1"
88
88
  },
89
89
  "devDependencies": {
90
- "@esri/calcite-design-tokens": "3.0.0",
91
- "@esri/eslint-plugin-calcite-components": "2.0.0"
90
+ "@esri/calcite-design-tokens": "3.0.1-next.0",
91
+ "@esri/eslint-plugin-calcite-components": "2.0.1-next.0"
92
92
  },
93
93
  "volta": {
94
94
  "extends": "../../package.json"
@@ -101,5 +101,5 @@
101
101
  "dist/docs/vscode.html-custom-data.json"
102
102
  ],
103
103
  "web-types": "dist/docs/web-types.json",
104
- "gitHead": "78f35430666a4bcd218a33c390f637608b0c9022"
104
+ "gitHead": "601ef86804eb8b2f1592546ff396782e582cddb7"
105
105
  }
package/readme.md CHANGED
@@ -17,12 +17,12 @@ The most common approach for loading Calcite Components is to use the version ho
17
17
  ```html
18
18
  <script
19
19
  type="module"
20
- src="https://cdn.jsdelivr.net/npm/@esri/calcite-components@3.0.2/dist/calcite/calcite.esm.js"
20
+ src="https://cdn.jsdelivr.net/npm/@esri/calcite-components@3.0.0/dist/calcite/calcite.esm.js"
21
21
  ></script>
22
22
  <link
23
23
  rel="stylesheet"
24
24
  type="text/css"
25
- href="https://cdn.jsdelivr.net/npm/@esri/calcite-components@3.0.2/dist/calcite/calcite.css"
25
+ href="https://cdn.jsdelivr.net/npm/@esri/calcite-components@3.0.0/dist/calcite/calcite.css"
26
26
  />
27
27
  ```
28
28
 
@@ -1,4 +0,0 @@
1
- /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
- See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.2 */
4
- import{a as p,c as u}from"./MMMDZXO3.js";import{b as i}from"./63TOND25.js";function d(r,{focusTrapOptions:t},o){return!t?.extraContainers&&!o?r:[r,...f(t?.extraContainers),...f(o)]}function f(r=[]){return Array.isArray(r)?r:[r]}var E=r=>i((t,o)=>{let e,c,s,l=r.focusTrapOptions;return o.onConnected(()=>{t[r.triggerProp]&&e&&e.activate()}),o.onDisconnected(()=>e?.deactivate()),{activate:a=>{let n=c||t.el;if(n.isConnected){if(!e){let v={...l,...t.focusTrapOptions};s||=d(n,t),e=p(s,u(n,v))}(typeof t.focusTrapDisabledOverride=="function"?!t.focusTrapDisabledOverride():!t.focusTrapDisabled)&&e.activate(a)}},deactivate:a=>e?.deactivate(a),overrideFocusTrapEl:a=>{if(e)throw new Error("Focus trap already created");c=a},setExtraContainers:a=>{let n=c||t.el;s=d(n,t,a)},updateContainerElements:()=>e?.updateContainerElements(s)}});export{E as a};
@@ -1,4 +0,0 @@
1
- /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
- See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.2 */
4
- import{a as M}from"./LQPVMOYJ.js";import{a as I}from"./3MDXQNOS.js";import"./MMMDZXO3.js";import{b as _}from"./DP7DCTHA.js";import"./MNEWDDI2.js";import{c as u,d as R,e as T,f as U,g as q,h as S,i as v}from"./H7Q3GS6I.js";import"./VI3KXLGC.js";import{a as O}from"./HYAVXYZ2.js";import{a as H}from"./MBW4RJGP.js";import"./4BJW4WBP.js";import{a as c}from"./NWMFN6P5.js";import"./42EYBCUV.js";import{a as F}from"./R4WJ47LZ.js";import{a as x}from"./77BUHP3U.js";import{a as B}from"./SMJSXUYT.js";import{a as P,b as d}from"./FC7N6LLB.js";import{j as D,n as $,r as L,y as A}from"./GO4QOK2G.js";import{b as z}from"./PBIOUIAG.js";import{a as C}from"./P7S34RN4.js";import{A as y,J as k,e as E,f as l,v as s,w,x as a}from"./63TOND25.js";var g=class{constructor(){this.registeredElements=new Map,this.registeredElementCount=0,this.queryPopover=e=>{let{registeredElements:t}=this,i=e.find(r=>t.has(r));return t.get(i)},this.togglePopovers=e=>{let t=e.composedPath(),i=this.queryPopover(t);i&&!i.triggerDisabled&&(i.open=!i.open),Array.from(this.registeredElements.values()).filter(r=>r!==i&&r.autoClose&&r.open&&!t.includes(r)).forEach(r=>r.open=!1)},this.keyDownHandler=e=>{e.defaultPrevented||(e.key==="Escape"?this.closeAllPopovers():F(e.key)&&this.togglePopovers(e))},this.clickHandler=e=>{A(e)||e.defaultPrevented||this.togglePopovers(e)}}registerElement(e,t){this.registeredElementCount++,this.registeredElements.set(e,t),this.registeredElementCount===1&&this.addListeners()}unregisterElement(e){this.registeredElements.delete(e)&&this.registeredElementCount--,this.registeredElementCount===0&&this.removeListeners()}closeAllPopovers(){Array.from(this.registeredElements.values()).forEach(e=>e.open=!1)}addListeners(){window.addEventListener("click",this.clickHandler),window.addEventListener("keydown",this.keyDownHandler)}removeListeners(){window.removeEventListener("click",this.clickHandler),window.removeEventListener("keydown",this.keyDownHandler)}},o={positionContainer:"position-container",container:"container",closeButtonContainer:"close-button-container",closeButton:"close-button",content:"content",hasHeader:"has-header",header:"header",headerContainer:"headerContainer",heading:"heading"},j="auto",N="aria-controls",G="aria-expanded",W=E`:host{display:contents;--calcite-floating-ui-z-index: var(--calcite-popover-z-index, var(--calcite-z-index-popup))}.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)}:host([scale=s]) .heading{padding:.5rem .75rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .heading{padding:.75rem 1rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .heading{padding:1rem 1.25rem;font-size:var(--calcite-font-size-1);line-height:1.375}.position-container .calcite-floating-ui-anim{border-width:1px;border-style:solid;background-color:var(--calcite-popover-background-color, var(--calcite-color-foreground-1));border-color:var(--calcite-popover-border-color, var(--calcite-color-border-3));border-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round))}.calcite-floating-ui-arrow{fill:var(--calcite-popover-background-color, var(--calcite-color-foreground-1))}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.header{display:flex;flex:1 1 auto;align-items:stretch;justify-content:flex-start;border-width:0px;border-bottom-width:1px;border-style:solid;border-block-end-color:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.heading{margin:0;display:block;flex:1 1 auto;align-self:center;white-space:normal;font-weight:var(--calcite-font-weight-medium);word-wrap:break-word;word-break:break-word;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.headerContainer{position:relative;display:flex;height:100%;flex-direction:row;flex-wrap:nowrap;border-radius:.25rem;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.headerContainer.has-header{flex-direction:column}.content{display:flex;height:100%;width:100%;flex-direction:column;flex-wrap:nowrap;align-self:center;word-wrap:break-word;word-break:break-word}.close-button-container{display:flex;overflow:hidden;flex:0 0 auto;border-start-end-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round));border-end-end-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round));--calcite-action-corner-radius-start-end: var(--calcite-popover-corner-radius, var(--calcite-corner-radius-sharp));--calcite-action-corner-radius-end-end: var(--calcite-popover-corner-radius, var(--calcite-corner-radius-sharp))}::slotted(calcite-panel),::slotted(calcite-flow){height:100%}:host([hidden]){display:none}[hidden]{display:none}`,K=new g,b=class extends w{constructor(){super(...arguments),this.closeButtonEl=P(),this.focusTrap=I({triggerProp:"open",focusTrapOptions:{allowOutsideClick:!0,escapeDeactivates:e=>(e.defaultPrevented||(this.open=!1,e.preventDefault()),!1)}})(this),this.guid=`calcite-popover-${C()}`,this.hasLoaded=!1,this.mutationObserver=x("mutation",()=>this.focusTrap.updateContainerElements()),this.transitionProp="opacity",this.floatingLayout="vertical",this.autoClose=!1,this.closable=!1,this.flipDisabled=!1,this.focusTrapDisabled=!1,this.messages=B(),this.offsetDistance=v,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement=j,this.pointerDisabled=!1,this.scale="m",this.triggerDisabled=!1,this.calcitePopoverBeforeClose=s({cancelable:!1}),this.calcitePopoverBeforeOpen=s({cancelable:!1}),this.calcitePopoverClose=s({cancelable:!1}),this.calcitePopoverOpen=s({cancelable:!1})}static{this.properties={floatingLayout:16,referenceEl:16,autoClose:7,closable:7,flipDisabled:7,flipPlacements:0,focusTrapDisabled:7,focusTrapOptions:0,heading:1,headingLevel:11,label:1,messageOverrides:0,offsetDistance:11,offsetSkidding:11,open:7,overlayPositioning:3,placement:3,pointerDisabled:7,referenceElement:1,scale:3,triggerDisabled:7}}static{this.styles=W}async reposition(e=!1){let{referenceEl:t,placement:i,overlayPositioning:r,flipDisabled:h,filteredFlipPlacements:p,offsetDistance:n,offsetSkidding:f,arrowEl:m,floatingEl:Q}=this;return T(this,{floatingEl:Q,referenceEl:t,overlayPositioning:r,placement:i,flipDisabled:h,flipPlacements:p,offsetDistance:n,offsetSkidding:f,arrowEl:m,type:"popover"},e)}async setFocus(){await z(this),this.requestUpdate(),$(this.el)}async updateFocusTrapElements(){this.focusTrap.updateContainerElements()}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setFilteredPlacements(),requestAnimationFrame(()=>this.setUpReferenceElement(this.hasLoaded))}async load(){}willUpdate(e){e.has("flipPlacements")&&this.flipPlacementsHandler(),e.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),(e.has("offsetDistance")&&(this.hasUpdated||this.offsetDistance!==v)||e.has("offsetSkidding")&&(this.hasUpdated||this.offsetSkidding!==0)||e.has("overlayPositioning")&&(this.hasUpdated||this.overlayPositioning!=="absolute")||e.has("placement")&&(this.hasUpdated||this.placement!==j))&&this.reposition(!0),e.has("referenceElement")&&this.referenceElementHandler()}loaded(){this.referenceElement&&!this.referenceEl&&this.setUpReferenceElement(),this.hasLoaded=!0}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.removeReferences(),S(this)}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}openHandler(){O(this),this.reposition(!0),this.setExpandedAttr()}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}setFloatingEl(e){this.floatingEl=e,e&&requestAnimationFrame(()=>this.setUpReferenceElement())}setTransitionEl(e){this.transitionEl=e}setFilteredPlacements(){let{el:e,flipPlacements:t}=this;this.filteredFlipPlacements=t?R(t,e):null}setUpReferenceElement(e=!0){this.removeReferences(),this.referenceEl=this.getReferenceElement(),q(this);let{el:t,referenceElement:i,referenceEl:r}=this;e&&i&&!r&&console.warn(`${t.tagName}: reference-element id "${i}" was not found.`,{el:t}),this.addReferences()}getId(){return this.el.id||this.guid}setExpandedAttr(){let{referenceEl:e,open:t}=this;e&&"setAttribute"in e&&e.setAttribute(G,L(t))}addReferences(){let{referenceEl:e}=this;if(!e)return;let t=this.getId();"setAttribute"in e&&e.setAttribute(N,t),K.registerElement(e,this.el),this.setExpandedAttr()}removeReferences(){let{referenceEl:e}=this;e&&("removeAttribute"in e&&(e.removeAttribute(N),e.removeAttribute(G)),K.unregisterElement(e))}getReferenceElement(){let{referenceElement:e,el:t}=this;return(typeof e=="string"?D(t,{id:e}):e)||null}hide(){this.open=!1}onBeforeOpen(){this.calcitePopoverBeforeOpen.emit()}onOpen(){this.calcitePopoverOpen.emit(),this.focusTrap.activate()}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit(),U(this),this.focusTrap.deactivate()}storeArrowEl(e){this.arrowEl=e,this.reposition(!0)}renderCloseButton(){let{messages:e,closable:t}=this;return t?c(o.closeButtonContainer,l`<div class=${a(o.closeButtonContainer)}><calcite-action appearance=transparent class=${a(o.closeButton)} @click=${this.hide} .scale=${this.scale} .text=${e.close} ${d(this.closeButtonEl)}><calcite-icon icon=x .scale=${H(this.scale)}></calcite-icon></calcite-action></div>`):null}renderHeader(){let{heading:e,headingLevel:t}=this,i=e?_({class:o.heading,level:t,children:e}):null;return i?c(o.header,l`<div class=${a(o.header)}>${i}${this.renderCloseButton()}</div>`):null}render(){let{referenceEl:e,heading:t,label:i,open:r,pointerDisabled:h,floatingLayout:p}=this,n=e&&r,f=!n,m=h?null:c("floating-arrow",M({floatingLayout:p,ref:this.storeArrowEl}));return this.el.inert=f,this.el.ariaLabel=i,this.el.ariaLive="polite",y(this.el,"id",this.getId()),this.el.role="dialog",l`<div class=${a(o.positionContainer)} ${d(this.setFloatingEl)}><div class=${a({[o.container]:!0,[u.animation]:!0,[u.animationActive]:n})} ${d(this.setTransitionEl)}>${m}<div class=${a({[o.hasHeader]:!!t,[o.headerContainer]:!0})}>${this.renderHeader()}<div class=${a(o.content)}><slot></slot></div>${t?null:this.renderCloseButton()}</div></div></div>`}};k("calcite-popover",b);export{b as Popover};
@@ -1,4 +0,0 @@
1
- /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
- See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.2 */
4
- import{a as S}from"./5VWHRVSC.js";import{a as p,c as h,d as x,e as C,f as k,g as n,h as P}from"./H7Q3GS6I.js";import"./VI3KXLGC.js";import{a as I}from"./HYAVXYZ2.js";import{a as E,b as y}from"./WRT5VFG2.js";import"./42EYBCUV.js";import{a as O}from"./R4WJ47LZ.js";import{a as c}from"./77BUHP3U.js";import{b as r}from"./FC7N6LLB.js";import{l as d,n as v,z as a}from"./GO4QOK2G.js";import{b as D}from"./PBIOUIAG.js";import{a as b}from"./P7S34RN4.js";import{J as g,e as w,f as u,v as o,w as f,x as l}from"./63TOND25.js";var T={dropdownTrigger:"trigger"},$={content:"calcite-dropdown-content",wrapper:"calcite-dropdown-wrapper"},F=w`: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:inline-block}.calcite-dropdown-wrapper{--calcite-floating-ui-z-index: var(--calcite-z-index-dropdown);inline-size:max-content;display:none;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}.calcite-dropdown-wrapper .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}.calcite-dropdown-wrapper[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.calcite-dropdown-wrapper[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.calcite-dropdown-wrapper[data-placement^=left] .calcite-floating-ui-anim{left:5px}.calcite-dropdown-wrapper[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.calcite-dropdown-wrapper[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}.calcite-dropdown-content{max-height:45vh;width:auto;overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-color-foreground-1);inline-size:var(--calcite-dropdown-width)}.calcite-trigger-container{position:relative;display:flex;height:100%;flex:1 1 auto;word-wrap:break-word;word-break:break-word}.width-s{--calcite-dropdown-width: 12rem}.width-m{--calcite-dropdown-width: 14rem}.width-l{--calcite-dropdown-width: 16rem}@media (forced-colors: active){:host([open]) .calcite-dropdown-wrapper{border:1px solid canvasText}}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`,m=class extends f{constructor(){super(),this.focusLastDropdownItem=!1,this.groups=[],this.guid=`calcite-dropdown-${b()}`,this.items=[],this.mutationObserver=c("mutation",()=>this.updateItems()),this.onOpenEnd=()=>{this.focusOnFirstActiveOrDefaultItem(),this.el.removeEventListener("calciteDropdownOpen",this.onOpenEnd)},this.transitionProp="opacity",this.resizeObserver=c("resize",e=>this.resizeObserverCallback(e)),this.closeOnSelectDisabled=!1,this.disabled=!1,this.maxItems=0,this.open=!1,this.overlayPositioning="absolute",this.placement=p,this.scale="m",this.selectedItems=[],this.type="click",this.calciteDropdownBeforeClose=o({cancelable:!1}),this.calciteDropdownBeforeOpen=o({cancelable:!1}),this.calciteDropdownClose=o({cancelable:!1}),this.calciteDropdownOpen=o({cancelable:!1}),this.calciteDropdownSelect=o({cancelable:!1}),this.listenOn(window,"click",this.closeCalciteDropdownOnClick),this.listen("calciteInternalDropdownCloseRequest",this.closeCalciteDropdownOnEvent),this.listenOn(window,"calciteDropdownOpen",this.closeCalciteDropdownOnOpenEvent),this.listen("pointerenter",this.pointerEnterHandler),this.listen("pointerleave",this.pointerLeaveHandler),this.listen("calciteInternalDropdownItemKeyEvent",this.calciteInternalDropdownItemKeyEvent),this.listen("calciteInternalDropdownItemSelect",this.handleItemSelect)}static{this.properties={closeOnSelectDisabled:7,disabled:7,flipPlacements:0,maxItems:11,open:7,overlayPositioning:3,placement:3,scale:3,selectedItems:0,type:3,widthScale:3,width:3}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=F}async reposition(e=!1){let{floatingEl:t,referenceEl:i,placement:s,overlayPositioning:H,filteredFlipPlacements:z}=this;return C(this,{floatingEl:t,referenceEl:i,overlayPositioning:H,placement:s,flipPlacements:z,type:"menu"},e)}async setFocus(){await D(this),v(this.referenceEl)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setFilteredPlacements(),this.updateItems(),n(this)}load(){}willUpdate(e){e.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),e.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&this.handleDisabledChange(this.disabled),e.has("flipPlacements")&&this.flipPlacementsHandler(),e.has("maxItems")&&this.hasUpdated&&this.setMaxScrollerHeight(),(e.has("overlayPositioning")&&(this.hasUpdated||this.overlayPositioning!=="absolute")||e.has("placement")&&(this.hasUpdated||this.placement!==p))&&this.reposition(!0),e.has("scale")&&(this.hasUpdated||this.scale!=="m")&&this.handlePropsChange()}updated(){E(this)}loaded(){this.updateSelectedItems(),n(this)}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.resizeObserver?.disconnect(),P(this)}openHandler(){I(this),!this.disabled&&this.reposition(!0)}handleDisabledChange(e){e||(this.open=!1)}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}handlePropsChange(){this.updateItems(),this.updateGroupScale()}closeCalciteDropdownOnClick(e){this.disabled||!this.open||e.composedPath().includes(this.el)||this.closeCalciteDropdown(!1)}closeCalciteDropdownOnEvent(e){this.closeCalciteDropdown(),e.stopPropagation()}closeCalciteDropdownOnOpenEvent(e){e.composedPath().includes(this.el)||(this.open=!1)}pointerEnterHandler(){this.disabled||this.type!=="hover"||this.toggleDropdown()}pointerLeaveHandler(){this.disabled||this.type!=="hover"||this.closeCalciteDropdown()}getTraversableItems(){return this.items.filter(e=>!e.disabled&&!e.hidden)}calciteInternalDropdownItemKeyEvent(e){let{keyboardEvent:t}=e.detail,i=t.target,s=this.getTraversableItems();switch(t.key){case"Tab":this.open=!1,this.updateTabIndexOfItems(i);break;case"ArrowDown":a(s,i,"next");break;case"ArrowUp":a(s,i,"previous");break;case"Home":a(s,i,"first");break;case"End":a(s,i,"last");break}e.stopPropagation()}handleItemSelect(e){this.updateSelectedItems(),e.stopPropagation(),this.calciteDropdownSelect.emit(),(!this.closeOnSelectDisabled||e.detail.requestedDropdownGroup.selectionMode==="none")&&this.closeCalciteDropdown(),e.stopPropagation()}setFilteredPlacements(){let{el:e,flipPlacements:t}=this;this.filteredFlipPlacements=t?x(t,e):null}updateTriggers(e){this.triggers=e.target.assignedElements({flatten:!0}),this.reposition(!0)}updateItems(){this.items=this.groups.map(e=>Array.from(e?.querySelectorAll("calcite-dropdown-item"))).reduce((e,t)=>[...e,...t],[]),this.updateSelectedItems(),this.reposition(!0),this.items.forEach(e=>e.scale=this.scale)}updateGroups(e){let t=e.target.assignedElements({flatten:!0}).filter(i=>i?.matches("calcite-dropdown-group"));this.groups=t,this.updateItems(),this.updateGroupScale()}updateGroupScale(){this.groups?.forEach(e=>e.scale=this.scale)}resizeObserverCallback(e){e.forEach(t=>{let{target:i}=t;this.hasUpdated&&(i===this.referenceEl?this.setDropdownWidth():i===this.scrollerEl&&this.setMaxScrollerHeight())})}setDropdownWidth(){let{referenceEl:e,scrollerEl:t}=this,i=e?.clientWidth;t.style.minWidth=`${i}px`}setMaxScrollerHeight(){let e=this.getMaxScrollerHeight();this.scrollerEl.style.maxBlockSize=e>0?`${e}px`:"",this.reposition(!0)}setScrollerAndTransitionEl(e){e&&this.resizeObserver?.observe(e),this.scrollerEl=e,this.transitionEl=e}onBeforeOpen(){this.calciteDropdownBeforeOpen.emit()}onOpen(){this.calciteDropdownOpen.emit()}onBeforeClose(){this.calciteDropdownBeforeClose.emit()}onClose(){this.calciteDropdownClose.emit(),k(this)}setReferenceEl(e){this.referenceEl=e,n(this),e&&this.resizeObserver?.observe(e)}setFloatingEl(e){this.floatingEl=e,n(this)}keyDownHandler(e){if(!e.composedPath().includes(this.referenceEl))return;let{defaultPrevented:t,key:i}=e;if(!t){if(i==="Escape"){this.closeCalciteDropdown(),e.preventDefault();return}if(this.open&&e.shiftKey&&i==="Tab"){this.closeCalciteDropdown(),e.preventDefault();return}O(i)?(this.toggleDropdown(),e.preventDefault()):(i==="ArrowDown"||i==="ArrowUp")&&(e.preventDefault(),this.focusLastDropdownItem=i==="ArrowUp",this.open=!0,this.el.addEventListener("calciteDropdownOpen",this.onOpenEnd))}}updateSelectedItems(){this.selectedItems=this.items.filter(e=>e.selected)}getMaxScrollerHeight(){let{maxItems:e,items:t}=this;return t.length>=e&&e>0?this.getYDistance(this.scrollerEl,t[e-1]):0}getYDistance(e,t){let i=e.getBoundingClientRect();return t.getBoundingClientRect().bottom-i.top}closeCalciteDropdown(e=!0){this.open=!1,e&&d(this.triggers[0])}focusOnFirstActiveOrDefaultItem(){let e=this.getTraversableItems().find(t=>t.selected)||(this.focusLastDropdownItem?this.items[this.items.length-1]:this.items[0]);this.focusLastDropdownItem=!1,e&&d(e)}toggleDropdown(){this.open=!this.open,this.open&&this.el.addEventListener("calciteDropdownOpen",this.onOpenEnd)}updateTabIndexOfItems(e){this.items.forEach(t=>{t.tabIndex=e!==t?-1:0})}render(){let{open:e,guid:t}=this;return y({disabled:this.disabled,children:u`<div class="calcite-trigger-container" .id=${`${t}-menubutton`} @click=${this.toggleDropdown} @keydown=${this.keyDownHandler} ${r(this.setReferenceEl)}><slot aria-controls=${`${t}-menu`} .ariaExpanded=${e} aria-haspopup=menu name=${T.dropdownTrigger} @slotchange=${this.updateTriggers}></slot></div><div .ariaHidden=${!e} class=${l({[$.wrapper]:!0,[S("width",this.width,this.widthScale)]:!!(this.width||this.widthScale)})} ${r(this.setFloatingEl)}><div aria-labelledby=${`${t}-menubutton`} class=${l({[$.content]:!0,[h.animation]:!0,[h.animationActive]:e})} .id=${`${t}-menu`} role=menu ${r(this.setScrollerAndTransitionEl)}><slot @slotchange=${this.updateGroups}></slot></div></div>`})}};g("calcite-dropdown",m);export{m as Dropdown};
@@ -1,4 +0,0 @@
1
- /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
- See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.2 */
4
- import{a as d}from"./2FISXH45.js";import{a as n}from"./77BUHP3U.js";import{J as a,e as s,f as t,v as r,w as i,x as l}from"./63TOND25.js";var p=s`:host{display:block}.container{text-align:start}.dropdown-title{margin-block-end:-1px;display:block;cursor:default;overflow-wrap:break-word;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-2)}.dropdown-separator{display:block;block-size:1px;background-color:var(--calcite-color-border-3)}:host([scale=s]){font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .dropdown-title{padding:.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .dropdown-title{padding:.75rem}:host([scale=l]){font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .dropdown-title{padding:1rem}:host([hidden]){display:none}[hidden]{display:none}`,o=class extends i{constructor(){super(),this.mutationObserver=n("mutation",()=>this.updateItems()),this.scale="m",this.selectionMode="single",this.calciteInternalDropdownItemChange=r({cancelable:!1}),this.listen("calciteInternalDropdownItemSelect",this.updateActiveItemOnChange)}static{this.properties={groupTitle:3,scale:3,selectionMode:3}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=p}connectedCallback(){super.connectedCallback(),this.updateItems(),this.mutationObserver?.observe(this.el,{childList:!0})}load(){this.groupPosition=this.getGroupPosition()}willUpdate(e){e.has("selectionMode")&&(this.hasUpdated||this.selectionMode!=="single")&&this.updateItems()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}updateActiveItemOnChange(e){this.requestedDropdownGroup=e.detail.requestedDropdownGroup,this.requestedDropdownItem=e.detail.requestedDropdownItem,this.calciteInternalDropdownItemChange.emit({requestedDropdownGroup:this.requestedDropdownGroup,requestedDropdownItem:this.requestedDropdownItem})}updateItems(){Array.from(this.el.querySelectorAll("calcite-dropdown-item")).forEach(e=>e.selectionMode=this.selectionMode)}getGroupPosition(){return Array.prototype.indexOf.call(this.el.parentElement.querySelectorAll("calcite-dropdown-group"),this.el)}render(){let e=this.groupTitle?t`<span aria-hidden=true class="dropdown-title">${this.groupTitle}</span>`:null,c=this.groupPosition>0?t`<div class="dropdown-separator" role=separator></div>`:null;return this.el.ariaLabel=this.groupTitle,this.el.role="group",t`<div class=${l({[d.container]:!0})}>${c}${e}<slot></slot></div>`}};a("calcite-dropdown-group",o);export{o as DropdownGroup};
@@ -1,4 +0,0 @@
1
- /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
- See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.2 */
4
- import{a as t}from"./2FISXH45.js";import{a as x,b as $}from"./WRT5VFG2.js";import{a as r}from"./MBW4RJGP.js";import"./4BJW4WBP.js";import{a as k,b as I}from"./FC7N6LLB.js";import{r as D}from"./GO4QOK2G.js";import{b as y}from"./PBIOUIAG.js";import"./P7S34RN4.js";import{A as f,J as g,e as w,f as i,v as c,w as v,x as o,z as l}from"./63TOND25.js";var z=w`: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{position:relative;display:flex;flex-grow:1;align-items:center;outline-color:transparent}.container{position:relative;display:flex;flex-grow:1;cursor:pointer;align-items:center;color:var(--calcite-color-text-3);text-decoration-line:none;text-align:start;outline-color:transparent}.container a{outline:none;position:relative;display:flex;flex-grow:1;cursor:pointer;align-items:center;color:var(--calcite-color-text-3);text-decoration-line:none}.dropdown-item-content{flex:1 1 auto;padding-block:.125rem}.dropdown-item-icon{position:relative;opacity:0;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);transform:scale(.9)}:host([scale=s]) .container{padding-block:.25rem;padding-inline:.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .dropdown-item-icon,:host([scale=s]) .dropdown-item-icon--start{padding-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .dropdown-item-icon--end{padding-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .container{padding-block:.5rem;padding-inline:.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .dropdown-item-icon,:host([scale=m]) .dropdown-item-icon--start{padding-inline-end:var(--calcite-spacing-md)}:host([scale=m]) .dropdown-item-icon--end{padding-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .container{padding-block:.625rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .dropdown-item-icon,:host([scale=l]) .dropdown-item-icon--start{padding-inline-end:var(--calcite-spacing-lg)}:host([scale=l]) .dropdown-item-icon--end{padding-inline-start:var(--calcite-spacing-lg)}:host(:focus) .container{color:var(--calcite-color-text-1);text-decoration-line:none;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))))}:host(:hover:not([disabled])) .container,:host(:active:not([disabled])) .container{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1);text-decoration-line:none}:host(:hover:not([disabled])) .dropdown-link,:host(:active:not([disabled])) .dropdown-link{color:var(--calcite-color-text-1)}:host(:active:not([disabled])) .container{background-color:var(--calcite-color-foreground-3)}:host([selected]) .container:not(.container--none-selection),:host([selected]) .dropdown-link{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}:host([selected]) .container:not(.container--none-selection) calcite-icon,:host([selected]) .dropdown-link calcite-icon{color:var(--calcite-color-brand)}:host(:hover:not([disabled])) .dropdown-item-icon{color:var(--calcite-color-border-1);opacity:1}:host([selected]) .dropdown-item-icon{color:var(--calcite-color-brand);opacity:1}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`,d=class extends v{constructor(){super(),this.childLink=k(),this.disabled=!1,this.scale="m",this.selected=!1,this.selectionMode="single",this.calciteDropdownItemSelect=c({cancelable:!1}),this.calciteInternalDropdownCloseRequest=c({cancelable:!1}),this.calciteInternalDropdownItemKeyEvent=c({cancelable:!1}),this.calciteInternalDropdownItemSelect=c({cancelable:!1}),this.listen("click",this.onClick),this.listen("keydown",this.keyDownHandler),this.listenOn(document.body,"calciteInternalDropdownItemChange",this.updateActiveItemOnChange)}static{this.properties={disabled:7,href:3,iconEnd:3,iconFlipRtl:3,iconStart:3,label:1,rel:3,scale:3,selected:7,selectionMode:1,target:3}}static{this.styles=z}async setFocus(){await y(this),this.el?.focus()}connectedCallback(){super.connectedCallback(),this.initialize()}load(){this.initialize()}updated(){x(this)}loaded(){}onClick(){this.emitRequestedItem()}keyDownHandler(e){switch(e.key){case" ":case"Enter":this.emitRequestedItem(),this.href&&this.childLink.value.click(),e.preventDefault();break;case"Escape":this.calciteInternalDropdownCloseRequest.emit(),e.preventDefault();break;case"Tab":this.calciteInternalDropdownItemKeyEvent.emit({keyboardEvent:e});break;case"ArrowUp":case"ArrowDown":case"Home":case"End":e.preventDefault(),this.calciteInternalDropdownItemKeyEvent.emit({keyboardEvent:e});break}}updateActiveItemOnChange(e){e.composedPath().includes(this.parentDropdownGroupEl)&&(this.requestedDropdownGroup=e.detail.requestedDropdownGroup,this.requestedDropdownItem=e.detail.requestedDropdownItem,this.determineActiveItem()),e.stopPropagation()}initialize(){this.parentDropdownGroupEl=this.el.closest("calcite-dropdown-group"),this.selectionMode==="none"&&(this.selected=!1)}determineActiveItem(){switch(this.selectionMode){case"multiple":this.el===this.requestedDropdownItem&&(this.selected=!this.selected);break;case"single":this.el===this.requestedDropdownItem?this.selected=!0:this.requestedDropdownGroup===this.parentDropdownGroupEl&&(this.selected=!1);break;case"none":this.selected=!1;break}}emitRequestedItem(){this.calciteDropdownItemSelect.emit(),this.calciteInternalDropdownItemSelect.emit({requestedDropdownItem:this.el,requestedDropdownGroup:this.parentDropdownGroupEl})}render(){let{href:e,selectionMode:n,label:h,iconFlipRtl:a}=this,p=i`<calcite-icon class=${o(t.iconStart)} .flipRtl=${a==="start"||a==="both"} .icon=${this.iconStart} .scale=${r(this.scale)}></calcite-icon>`,s=i`<span class=${o(t.itemContent)}><slot></slot></span>`,m=i`<calcite-icon class=${o(t.iconEnd)} .flipRtl=${a==="end"||a==="both"} .icon=${this.iconEnd} .scale=${r(this.scale)}></calcite-icon>`,u=this.iconStart&&this.iconEnd?[p,s,m]:this.iconStart?[p,s]:this.iconEnd?[s,m]:s,E=e?i`<a .ariaLabel=${h} class=${o(t.link)} href=${e??l} rel=${this.rel??l} tabindex=-1 target=${this.target??l} ${I(this.childLink)}>${u}</a>`:u,q=e?null:n==="single"?"menuitemradio":n==="multiple"?"menuitemcheckbox":"menuitem",C=n!=="none"?D(this.selected):null,{disabled:b}=this;return this.el.ariaChecked=C,this.el.ariaLabel=e?"":h,this.el.role=q,f(this.el,"tabIndex",b?-1:0),$({disabled:b,children:i`<div class=${o({[t.container]:!0,[t.containerNone]:n==="none"})}>${n!=="none"?i`<calcite-icon class=${o(t.icon)} .icon=${n==="multiple"?"check":"bullet-point"} .scale=${r(this.scale)}></calcite-icon>`:null}${E}</div>`})}};g("calcite-dropdown-item",d);export{d as DropdownItem};
@@ -1,4 +0,0 @@
1
- /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
- See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.2 */
4
- import{a as R,b as F}from"./WRT5VFG2.js";import{a as H}from"./MBW4RJGP.js";import"./4BJW4WBP.js";import{a as b}from"./NWMFN6P5.js";import{a as I}from"./77BUHP3U.js";import{a as O}from"./SMJSXUYT.js";import{a as E,b as m}from"./FC7N6LLB.js";import{b as L}from"./PBIOUIAG.js";import{a as T}from"./P7S34RN4.js";import{J as C,e as z,f as i,w,x as n,z as c}from"./63TOND25.js";var e={button:"button",buttonTextVisible:"button--text-visible",buttonCompact:"button--compact",indicatorText:"indicator-text",iconContainer:"icon-container",slotContainer:"slot-container",slotContainerHidden:"slot-container--hidden",textContainer:"text-container",textContainerVisible:"text-container--visible",indicatorWithIcon:"indicator-with-icon",indicatorWithoutIcon:"indicator-without-icon"},B={tooltip:"tooltip"},V=z`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}: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:flex;cursor:pointer;background-color:transparent;--calcite-internal-action-text-color: var(--calcite-color-text-3)}:host([drag-handle]){cursor:move;--calcite-internal-action-text-color: var(--calcite-color-border-input);--calcite-internal-action-padding-inline: var(--calcite-spacing-xxs)}:host,.button{border-radius:var(--calcite-action-corner-radius, var(--calcite-action-corner-radius-start-start, var(--calcite-corner-radius)) var(--calcite-action-corner-radius-start-end, var(--calcite-corner-radius)) var(--calcite-action-corner-radius-end-end, var(--calcite-corner-radius)) var(--calcite-action-corner-radius-end-start, var(--calcite-corner-radius)))}.button{position:relative;margin:0;display:flex;inline-size:auto;align-items:center;justify-content:flex-start;border-style:none;font-family:var(--calcite-font-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);outline-color:transparent;background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1));color:var(--calcite-action-text-color, var(--calcite-internal-action-text-color));text-align:unset;flex:1 0 auto;cursor:inherit}.button:hover,.button:focus{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)))}.button: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))))}.button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}.icon-container{pointer-events:none;margin:0;display:flex;align-items:center;justify-content:center;min-inline-size:1rem;min-block-size:1.5rem}.text-container{margin:0;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5rem;opacity:0;transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:margin;transition-property:inline-size}.text-container--visible{inline-size:auto;flex:1 1 auto;opacity:1}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus{color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)));background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}:host([active]) .button:active{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) .text-container{opacity:var(--calcite-opacity-disabled)}:host([loading]) calcite-loader[inline]{margin-inline-end:0px}:host([appearance=transparent]):host([active]) .button{background-color:var(--calcite-color-transparent-hover)}:host([appearance=transparent]) .button{background-color:transparent;transition-property:box-shadow;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}:host([appearance=transparent]) .button:hover,:host([appearance=transparent]) .button:focus{background-color:var(--calcite-color-transparent-hover)}:host([appearance=transparent]) .button:active{background-color:var(--calcite-color-transparent-press)}:host([data-active]) .button{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))))}:host([scale=s]) .button{font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal);padding-inline:var(--calcite-internal-action-padding-inline, .5rem);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-spacing-xxs))}:host([scale=s]) .button--text-visible .icon-container{margin-inline-end:.5rem}:host([scale=m]) .button{font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal);padding-inline:var(--calcite-internal-action-padding-inline, 1rem);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-spacing-md))}:host([scale=m]) .button--text-visible .icon-container{margin-inline-end:.75rem}:host([scale=l]) .button{font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal);padding-inline:var(--calcite-internal-action-padding-inline, 1.25rem);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-spacing-xl))}:host([scale=l]) .button--text-visible .icon-container{margin-inline-end:1rem}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.button--text-visible{inline-size:100%}.indicator-with-icon{position:relative}.indicator-with-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-without-icon{margin-inline:.25rem;inline-size:1rem;position:relative}.indicator-without-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-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}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;opacity:var(--calcite-opacity-disabled);background-color:var(--calcite-action-background-color, var(--calcite-action-background-color, var(--calcite-color-foreground-1)))}:host([disabled]):host([active]) .button,:host([disabled]):host([active]) .button:hover,:host([disabled]):host([active]) .button:focus{opacity:var(--calcite-opacity-disabled);background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3))))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`,f=class extends w{constructor(){super(...arguments),this.guid=`calcite-action-${T()}`,this.buttonEl=E(),this.buttonId=`${this.guid}-button`,this.indicatorId=`${this.guid}-indicator`,this.mutationObserver=I("mutation",()=>this.requestUpdate()),this.active=!1,this.appearance="solid",this.compact=!1,this.disabled=!1,this.dragHandle=!1,this.iconFlipRtl=!1,this.indicator=!1,this.loading=!1,this.messages=O({blocking:!0}),this.scale="m",this.textEnabled=!1}static{this.properties={active:7,alignment:3,appearance:3,compact:7,disabled:7,dragHandle:7,icon:3,iconFlipRtl:7,indicator:7,label:1,loading:7,messageOverrides:0,scale:3,text:1,textEnabled:7}}static{this.styles=V}async setFocus(){await L(this),this.buttonEl.value?.focus()}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async load(){}updated(){R(this)}loaded(){}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}handleTooltipSlotChange(t){let o=t.target.assignedElements({flatten:!0}).filter(a=>a?.matches("calcite-tooltip"))[0];o&&(o.referenceElement=this.buttonEl.value)}renderTextContainer(){let{text:t,textEnabled:o}=this,a={[e.textContainer]:!0,[e.textContainerVisible]:o};return t?b("text-container",i`<div class=${n(a)}>${t}</div>`):null}renderIndicatorText(){let{indicator:t,messages:o,indicatorId:a,buttonId:l}=this;return i`<div aria-labelledby=${l??c} aria-live=polite class=${n(e.indicatorText)} id=${a??c} role=region>${t?o.indicator:null}</div>`}renderIconContainer(){let{loading:t,icon:o,scale:a,el:l,iconFlipRtl:d,indicator:h}=this,p=a==="l"?"l":"m",v=t?i`<calcite-loader inline .label=${this.messages.loading} .scale=${p}></calcite-loader>`:null,r=o?i`<calcite-icon class=${n({[e.indicatorWithIcon]:h})} .flipRtl=${d} .icon=${o} .scale=${H(this.scale)}></calcite-icon>`:null,s=v||r,u=s||l.children?.length,g=i`<div class=${n({[e.slotContainer]:!0,[e.slotContainerHidden]:t})}><slot></slot></div>`;return u?b("icon-container",i`<div aria-hidden=true class=${n(e.iconContainer)}>${s}${g}</div>`):null}renderButton(){let{active:t,compact:o,disabled:a,icon:l,loading:d,textEnabled:h,label:p,text:v,indicator:r,indicatorId:s,buttonId:u,messages:g}=this,x=p||v||"",k=r?g.indicatorLabel.replace("{label}",x):x,$={[e.button]:!0,[e.buttonTextVisible]:h,[e.buttonCompact]:o},y=i`${this.renderIconContainer()}${this.renderTextContainer()}${!l&&r&&b("indicator-no-icon",i`<div class=${n(e.indicatorWithoutIcon)}></div>`)||""}`;return this.dragHandle?i`<span aria-controls=${(r?s:null)??c} .ariaBusy=${d} .ariaDisabled=${this.disabled?this.disabled:null} .ariaLabel=${k} .ariaPressed=${t} class=${n($)} id=${u??c} role=button tabindex=${(this.disabled?null:0)??c} ${m(this.buttonEl)}>${y}</span>`:i`<button aria-controls=${(r?s:null)??c} .ariaBusy=${d} .ariaLabel=${k} .ariaPressed=${t} class=${n($)} .disabled=${a} id=${u??c} tabindex=${(a?null:0)??c} ${m(this.buttonEl)}>${y}</button>`}render(){return F({disabled:this.disabled,children:i`${this.renderButton()}<slot name=${B.tooltip} @slotchange=${this.handleTooltipSlotChange}></slot>${this.renderIndicatorText()}`})}};C("calcite-action",f);export{f as Action};
@@ -1,4 +0,0 @@
1
- /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
- See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.2 */
4
- import{a as I,b as w}from"./WRT5VFG2.js";import{a as s}from"./MBW4RJGP.js";import"./4BJW4WBP.js";import{a as x}from"./NWMFN6P5.js";import{a as r}from"./77BUHP3U.js";import{a as C}from"./SMJSXUYT.js";import{a as k,b as l}from"./FC7N6LLB.js";import{c as T,e as d,r as z}from"./GO4QOK2G.js";import{a as y}from"./P7S34RN4.js";import{A as a,G as g,J as f,e as p,f as c,j as m,v as i,w as v,x as n}from"./63TOND25.js";var e={closeButton:"close-button",container:"container",containerBottom:"container--bottom",content:"content",contentHasText:"content--has-text",iconEnd:"icon-end",iconPresent:"icon-present",iconStart:"icon-start",titleIcon:"calcite-tab-title--icon",scale:h=>`scale-${h}`,selectedIndicator:"selected-indicator"},A={close:"x"},H=p`: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;outline:2px solid transparent;outline-offset:2px;margin-inline-start:0px}:host([layout=inline]){flex:0 1 auto}:host([layout=center]){flex:1 1 auto}.content{position:relative;margin-block-end:.125rem;box-sizing:border-box;display:flex;block-size:100%;align-items:center;justify-content:center}.scale-s .content{padding-block:.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}.scale-s .close-button{inline-size:1.25rem}.scale-m .content{padding-block:.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}.scale-m .close-button{inline-size:1.75rem}.scale-l .content{padding-block:.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}.scale-l .close-button{inline-size:2rem}:host([closable]) .content{border-block-end-color:transparent}:host([layout=inline]) .content,:host([layout=center]) .content{padding-inline:.25rem}:host([layout=center]) .scale-s,:host([layout=center]) .scale-m,:host([layout=center]) .scale-l{margin-block:0px;justify-content:center;text-align:center}:host([layout=center]) .scale-s .content,:host([layout=center]) .scale-m .content,:host([layout=center]) .scale-l .content{flex:1 1 auto;flex-grow:1}.container{position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;align-content:center;justify-content:space-between;padding-inline:0px;font-size:var(--calcite-font-size--1);line-height:1rem;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}.selected-indicator{position:absolute;display:block;block-size:.125rem;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;inset-block-end:0;inset-inline-start:0;inset-inline-end:0;inline-size:100%}.container--bottom .selected-indicator{inset-block-end:unset;inset-block-start:0}:host([bordered]) .selected-indicator{inset-block-start:0;inset-block-end:unset;inset-inline-start:-1px;inset-inline-end:0;inline-size:calc(100% + var(--calcite-spacing-base))}:host([bordered]) .container:not(.container--bottom){border-block-end:1px solid transparent}:host([bordered]:not([selected]):hover) .container:not(.container--bottom){border-block-end:1px solid var(--calcite-color-border-1)}:host([bordered]:not([selected]):hover:not(:focus)) .selected-indicator{background-color:var(--calcite-color-foreground-2)}:host([bordered]:not([selected]):hover:not(:focus)) .container:not(.container--bottom) .selected-indicator{box-shadow:inset 0 1px var(--calcite-color-border-1)}:host([bordered]:not([selected]):hover:not(:focus)) .container.container--bottom .selected-indicator{box-shadow:inset 0 -1px var(--calcite-color-border-1)}:host([bordered][selected]) .container:after{position:absolute;display:block;block-size:.125rem;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;inset-block-end:-1px;inset-inline-start:0;inset-inline-end:0;inline-size:100%;background:var(--calcite-color-foreground-1);content:""}:host([bordered][selected]) .container.container--bottom:after{inset-block-start:-1px}:host([bordered][selected]:hover) .container:after{background:var(--calcite-color-foreground-2)}:host([bordered][selected]:focus) .container:after{background:transparent}:host([bordered]) .container--bottom .selected-indicator{inset-block-start:unset;inset-block-end:0}:host([selected]) .selected-indicator,:host([selected]:hover) .selected-indicator{background-color:var(--calcite-color-brand)}:host(:hover) .selected-indicator{background-color:var(--calcite-color-border-3)}:host(:focus) .selected-indicator,:host(:active) .selected-indicator{background-color:var(--calcite-color-brand)}@media (forced-colors: active){.selected-indicator{background-color:highlight}}:host([closed]){display:none}:host([selected]) .container{border-color:transparent;color:var(--calcite-color-text-1)}:host(:focus) .container{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))))}:host(:focus) .container:focus-within{outline-color:transparent}:host(:active) a,:host(:focus) a,:host(:hover) a{border-color:var(--calcite-color-border-2);color:var(--calcite-color-text-1);text-decoration-line:none}:host([disabled]) .container{pointer-events:none;opacity:.5}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.calcite-tab-title--icon{position:relative;margin:0;display:inline-flex;align-self:center}.calcite-tab-title--icon svg{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}.content--has-text{padding:.25rem}.content--has-text .calcite-tab-title--icon.icon-start{margin-inline-end:var(--calcite-spacing-sm);color:var(--calcite-tab-icon-color-start, var(--calcite-icon-color))}.content--has-text .calcite-tab-title--icon.icon-end{margin-inline-start:var(--calcite-spacing-sm);color:var(--calcite-tab-icon-color-end, var(--calcite-icon-color))}.close-button{display:flex;block-size:100%;cursor:pointer;appearance:none;align-content:center;align-items:center;justify-content:center;align-self:center;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;margin-inline-start:var(--calcite-spacing-sm);margin-inline-end:var(--calcite-spacing-px);block-size:calc(100% - var(--calcite-spacing-xxs))}.close-button:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)))}.close-button:focus,.close-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-3)}.close-button:active{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-3)}.close-button calcite-icon{color:inherit}:host([icon-start][icon-end]) .calcite-tab-title--icon:first-child{margin-inline-end:var(--calcite-spacing-sm)}:host([bordered]) .container:not(.container--bottom) .close-button{block-size:calc(100% - var(--calcite-spacing-px));margin-block-start:-1px}:host([bordered]) .container .close-button calcite-icon{margin-block-start:var(--calcite-spacing-px)}:host([bordered]) .container .close-button:focus,:host([bordered]) .container .close-button:hover,:host([bordered]) .container .close-button:active{box-shadow:0 2px 0 0 var(--calcite-color-foreground-3)}:host([bordered]) .container.container--bottom .close-button{box-shadow:0 -2px 0 0 transparent}:host([bordered]) .container.container--bottom .close-button calcite-icon{margin-block-end:var(--calcite-spacing-px)}:host([bordered]) .container.container--bottom .close-button:focus,:host([bordered]) .container.container--bottom .close-button:hover,:host([bordered]) .container.container--bottom .close-button:active{box-shadow:0 -2px 0 0 var(--calcite-color-foreground-3)}:host([bordered][selected]){box-shadow:inset 0 -1px var(--calcite-color-foreground-1)}:host([bordered]:not([selected])) .container .close-button{box-shadow:0 2px 0 0 transparent}:host([bordered]:hover) .container{background-color:var(--calcite-color-foreground-2)}:host([bordered]) .container{border-inline:var(--calcite-spacing-px) solid transparent}:host([selected][bordered]) .container{border-inline-color:var(--calcite-color-border-1)}:host([layout=inline][bordered]) .scale-m .content,:host([layout=center][bordered]) .scale-m .content{padding-inline:.75rem}:host([layout=inline][bordered]) .scale-s .content,:host([layout=center][bordered]) .scale-s .content{padding-inline:.5rem}:host([layout=inline][bordered]) .scale-l .content,:host([layout=center][bordered]) .scale-l .content{padding-inline:1rem}:host([layout=inline][closable]) .scale-s .content,:host([layout=inline][closable]) .scale-m .content,:host([layout=inline][closable]) .scale-l .content{padding-inline-end:0}@media (forced-colors: active){:host{outline-width:0;outline-offset:0}:host(:focus) .container{outline-color:highlight}:host([bordered]) .container{border-block-end-style:solid}:host([bordered]) .container--bottom{border-block-start-style:solid}:host([bordered][selected]) .container{border-block-end-style:none}:host([bordered][selected]) .container--bottom{border-block-start-style:none}.close-button{z-index:var(--calcite-z-index)}}:host([hidden]){display:none}[hidden]{display:none}`,b=class extends v{constructor(){super(),this.closeButtonEl=k(),this.guid=`calcite-tab-title-${y()}`,this.mutationObserver=r("mutation",()=>this.updateHasText()),this.resizeObserver=r("resize",()=>{this.calciteInternalTabIconChanged.emit()}),this.hasText=!1,this.bordered=!1,this.closable=!1,this.closed=!1,this.disabled=!1,this.messages=C(),this.position="top",this.scale="m",this.selected=!1,this.calciteInternalTabIconChanged=i({cancelable:!1}),this.calciteInternalTabTitleRegister=i({cancelable:!1}),this.calciteInternalTabsActivate=i({cancelable:!1}),this.calciteInternalTabsClose=i({cancelable:!1}),this.calciteInternalTabsFocusFirst=i({cancelable:!1}),this.calciteInternalTabsFocusLast=i({cancelable:!1}),this.calciteInternalTabsFocusNext=i({cancelable:!1}),this.calciteInternalTabsFocusPrevious=i({cancelable:!1}),this.calciteTabsActivate=i({cancelable:!1}),this.calciteTabsClose=i({cancelable:!1}),this.listenOn(document.body,"calciteInternalTabChange",this.internalTabChangeHandler),this.listen("click",this.onClick),this.listen("keydown",this.keyDownHandler)}static{this.properties={controls:16,hasText:16,bordered:7,closable:7,closed:7,disabled:7,iconEnd:3,iconFlipRtl:3,iconStart:3,layout:3,messageOverrides:0,position:1,scale:1,selected:7,tab:3}}static{this.styles=H}async activateTab(t=!0){if(this.disabled||this.closed)return;let o={tab:this.tab};this.calciteInternalTabsActivate.emit(o),t&&requestAnimationFrame(()=>this.calciteTabsActivate.emit())}async getTabIdentifier(){return this.tab?this.tab:this.getTabIndex()}async getTabIndex(){return Array.prototype.indexOf.call(T(this.el.parentElement.children).filter(t=>t.matches("calcite-tab-title")),this.el)}_updateAriaInfo(t=[],o=[]){this.controls=t[o.indexOf(this.el.id)]||null}connectedCallback(){super.connectedCallback(),this.setupTextContentObserver(),this.parentTabsEl=this.el.closest("calcite-tabs")}async load(){g()&&this.updateHasText(),this.tab&&this.selected&&this.activateTab(!1)}willUpdate(t){t.has("selected")&&(this.hasUpdated||this.selected!==!1)&&this.selectedHandler(),this.parentTabsEl&&(this.layout=this.parentTabsEl.layout,this.bordered=this.parentTabsEl.bordered)}updated(){I(this)}async loaded(){this.calciteInternalTabTitleRegister.emit(await this.getTabIdentifier())}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),document.body?.dispatchEvent(new CustomEvent("calciteTabTitleUnregister",{detail:this.el})),this.resizeObserver?.disconnect()}selectedHandler(){this.selected&&this.activateTab(!1)}internalTabChangeHandler(t){t.composedPath().find(o=>o.tagName==="CALCITE-TABS")===this.parentTabsEl&&(this.tab?this.selected=this.tab===t.detail.tab:this.getTabIndex().then(o=>{this.selected=o===t.detail.tab}),t.stopPropagation())}onClick(){this.activateTab()}keyDownHandler(t){switch(t.key){case" ":case"Enter":t.composedPath().includes(this.closeButtonEl.value)||(this.activateTab(),t.preventDefault());break;case"ArrowRight":t.preventDefault(),d(this.el)==="ltr"?this.calciteInternalTabsFocusNext.emit():this.calciteInternalTabsFocusPrevious.emit();break;case"ArrowLeft":t.preventDefault(),d(this.el)==="ltr"?this.calciteInternalTabsFocusPrevious.emit():this.calciteInternalTabsFocusNext.emit();break;case"Home":t.preventDefault(),this.calciteInternalTabsFocusFirst.emit();break;case"End":t.preventDefault(),this.calciteInternalTabsFocusLast.emit();break}}closeClickHandler(){this.closeTabTitleAndNotify()}updateHasText(){this.hasText=this.el.textContent.trim().length>0}setupTextContentObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}closeTabTitleAndNotify(){this.closed=!0,this.calciteInternalTabsClose.emit({tab:this.tab}),this.calciteTabsClose.emit()}render(){let{el:t,closed:o}=this,$=t.id||this.guid,E=c`<calcite-icon class=${n({[e.titleIcon]:!0,[e.iconStart]:!0})} .flipRtl=${this.iconFlipRtl==="start"||this.iconFlipRtl==="both"} .icon=${this.iconStart} .scale=${s(this.scale)}></calcite-icon>`,F=c`<calcite-icon class=${n({[e.titleIcon]:!0,[e.iconEnd]:!0})} .flipRtl=${this.iconFlipRtl==="end"||this.iconFlipRtl==="both"} .icon=${this.iconEnd} .scale=${s(this.scale)}></calcite-icon>`;return a(this.el,"aria-controls",this.controls),this.el.ariaSelected=z(this.selected),a(this.el,"id",$),this.el.role="tab",a(this.el,"tabIndex",this.selected&&!this.disabled?0:-1),w({disabled:this.disabled,children:c`<div class=${n({[e.container]:!0,[e.containerBottom]:this.position==="bottom",[e.iconPresent]:!!this.iconStart||!!this.iconEnd,[e.scale(this.scale)]:!0})} .hidden=${o} ${l(u=>u?this.resizeObserver?.observe(u):null)}><div class=${n({[e.content]:!0,[e.contentHasText]:this.hasText})}>${this.iconStart?E:null}<slot></slot>${this.iconEnd?F:null}</div>${this.renderCloseButton()}<div class=${n(e.selectedIndicator)}></div></div>`})}renderCloseButton(){let{closable:t,messages:o}=this;return t?x(e.closeButton,c`<button .ariaLabel=${o.close} class=${n(e.closeButton)} @click=${this.closeClickHandler} title=${o.close??m} type=button ${l(this.closeButtonEl)}><calcite-icon .icon=${A.close} .scale=${s(this.scale)}></calcite-icon></button>`):null}};f("calcite-tab-title",b);export{b as TabTitle};