@esri/calcite-components 3.0.0-next.99 → 3.0.0

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 (604) hide show
  1. package/dist/calcite/22RQB3WE.js +4 -0
  2. package/dist/calcite/{2JRSKQML.js → 24SER2VV.js} +4 -6
  3. package/dist/calcite/2BGMAPSV.js +4 -0
  4. package/dist/calcite/2JKKAEPM.js +4 -0
  5. package/dist/calcite/{JLIVSPKC.js → 2M4WCGKG.js} +4 -6
  6. package/dist/calcite/2YAXZHP2.js +4 -0
  7. package/dist/calcite/{AUEN6VFD.js → 345Q4UHX.js} +4 -6
  8. package/dist/calcite/{O7B4THLC.js → 36DMRAV2.js} +4 -6
  9. package/dist/calcite/{EBQYJBDQ.js → 3DGJ6ZQI.js} +4 -6
  10. package/dist/calcite/3GICXOBQ.js +4 -0
  11. package/dist/calcite/3IV6JSC2.js +4 -0
  12. package/dist/calcite/{Y5IWWVKB.js → 3TOVZEQB.js} +4 -6
  13. package/dist/calcite/45GA6INB.js +4 -0
  14. package/dist/calcite/46U4MKUU.js +4 -0
  15. package/dist/calcite/4BSCJ722.js +4 -0
  16. package/dist/calcite/4SEPDFCP.js +5 -0
  17. package/dist/calcite/{B77QRUX7.js → 4TQLSUKH.js} +4 -6
  18. package/dist/calcite/4YZ27QWL.js +4 -0
  19. package/dist/calcite/4Z7JRTON.js +4 -0
  20. package/dist/calcite/5AVZLE2Q.js +4 -0
  21. package/dist/calcite/{OMBBOPRI.js → 5EPP4MG3.js} +4 -6
  22. package/dist/calcite/{KWWKG3YN.js → 66B2H27W.js} +4 -6
  23. package/dist/calcite/6LW27BEV.js +4 -0
  24. package/dist/calcite/6OZRZ36X.js +4 -0
  25. package/dist/calcite/6X2SD2PW.js +4 -0
  26. package/dist/calcite/{ZWGCNMZF.js → 6XTYGXNG.js} +4 -6
  27. package/dist/calcite/6ZTWHW63.js +4 -0
  28. package/dist/calcite/{BZOCG27F.js → 7D3VEEUX.js} +4 -6
  29. package/dist/calcite/7E342YOK.js +4 -0
  30. package/dist/calcite/{4OYBMKUB.js → 7KSGVDSR.js} +4 -6
  31. package/dist/calcite/{DF7SVAJW.js → 7PWETOIU.js} +4 -6
  32. package/dist/calcite/7QHUEK5R.js +4 -0
  33. package/dist/calcite/{BGQR3WLU.js → 7SX3RD7P.js} +4 -6
  34. package/dist/calcite/7U7FF3Y4.js +4 -0
  35. package/dist/calcite/7WG5I3MP.js +4 -0
  36. package/dist/calcite/{KHDHQPVO.js → A5GGYTUQ.js} +4 -6
  37. package/dist/calcite/{3SE2Z2VK.js → AI3R3SU6.js} +5 -7
  38. package/dist/calcite/ARHYATTG.js +4 -0
  39. package/dist/calcite/{ELXZUEDC.js → ATHBUWBY.js} +4 -6
  40. package/dist/calcite/AXXJNFKZ.js +4 -0
  41. package/dist/calcite/{AASA6526.js → AYZ73RWQ.js} +4 -6
  42. package/dist/calcite/{S6AE7RHT.js → BAHIPAHM.js} +4 -6
  43. package/dist/calcite/BRTDMTZ3.js +4 -0
  44. package/dist/calcite/BRTESQOJ.js +4 -0
  45. package/dist/calcite/{3LYDW23E.js → BSRMWMHQ.js} +4 -6
  46. package/dist/calcite/{2UYJUU43.js → BZKF5ZXQ.js} +4 -6
  47. package/dist/calcite/C46JYVUP.js +4 -0
  48. package/dist/calcite/C54C5E23.js +4 -0
  49. package/dist/calcite/CBSMKHOY.js +4 -0
  50. package/dist/calcite/CFRBQXK4.js +4 -0
  51. package/dist/calcite/CIV3PH3Z.js +4 -0
  52. package/dist/calcite/CJYTY62F.js +4 -0
  53. package/dist/calcite/CK6HQQX6.js +4 -0
  54. package/dist/calcite/CMO3X257.js +4 -0
  55. package/dist/calcite/{3Z3RDAUW.js → CNO6NFH5.js} +4 -6
  56. package/dist/calcite/CWPRBG3T.js +4 -0
  57. package/dist/calcite/CY6C2FDZ.js +4 -0
  58. package/dist/calcite/D2HDFE7S.js +22 -0
  59. package/dist/calcite/D36VWSDW.js +4 -0
  60. package/dist/calcite/{3QV5TGZD.js → DBVNMM6Q.js} +4 -6
  61. package/dist/calcite/{4JU7BKXB.js → DDJ75RTI.js} +4 -6
  62. package/dist/calcite/DH4ISGHV.js +4 -0
  63. package/dist/calcite/{3PJ42556.js → DNYBIAUI.js} +4 -6
  64. package/dist/calcite/DT67ZFPX.js +4 -0
  65. package/dist/calcite/{EWQKTTIO.js → DTL2LM6T.js} +4 -6
  66. package/dist/calcite/E3R5SMVW.js +4 -0
  67. package/dist/calcite/{AGLAEQKV.js → E4NMFIKN.js} +4 -6
  68. package/dist/calcite/{FMI6FJW4.js → EAML4EDI.js} +4 -6
  69. package/dist/calcite/{XEW3B3B5.js → ECEZ4R6E.js} +4 -6
  70. package/dist/calcite/EFI2G5WL.js +4 -0
  71. package/dist/calcite/EHZCT5YZ.js +4 -0
  72. package/dist/calcite/{SYOTV4D4.js → EOHVH6PN.js} +4 -6
  73. package/dist/calcite/ESBOJTBS.js +4 -0
  74. package/dist/calcite/F6EGRKXW.js +4 -0
  75. package/dist/calcite/FCN5RMLA.js +4 -0
  76. package/dist/calcite/FDIM6DYL.js +4 -0
  77. package/dist/calcite/FE3A3YUN.js +4 -0
  78. package/dist/calcite/FHBFGCTR.js +4 -0
  79. package/dist/calcite/FNFWOOMR.js +4 -0
  80. package/dist/calcite/{UPY24BFQ.js → FNM4DZZH.js} +3 -5
  81. package/dist/calcite/G2KHDAZD.js +4 -0
  82. package/dist/calcite/{P64WY2HI.js → G3LH75CQ.js} +4 -6
  83. package/dist/calcite/{UZAQE6XP.js → G3ZJ2KQT.js} +4 -6
  84. package/dist/calcite/{GIRDDKPZ.js → G7WFYVUC.js} +4 -6
  85. package/dist/calcite/{3RLXG3NR.js → GAAXSGWK.js} +4 -6
  86. package/dist/calcite/{QNGBOTGF.js → GE63ETFI.js} +4 -6
  87. package/dist/calcite/{DO5AYUNU.js → GFC7NS6P.js} +4 -6
  88. package/dist/calcite/GGO5TMB4.js +4 -0
  89. package/dist/calcite/GKKCWEZX.js +4 -0
  90. package/dist/calcite/GN5CPLSJ.js +4 -0
  91. package/dist/calcite/GNUSLZWJ.js +4 -0
  92. package/dist/calcite/{L4IJ6KQT.js → GOOHYN3D.js} +4 -6
  93. package/dist/calcite/GPUFLCIT.js +4 -0
  94. package/dist/calcite/GSXEMGSW.js +4 -0
  95. package/dist/calcite/GYQTRH4V.js +4 -0
  96. package/dist/calcite/HFIRIAQA.js +4 -0
  97. package/dist/calcite/{6EFD6XES.js → HGTV36FX.js} +4 -6
  98. package/dist/calcite/HKHPJJ34.js +4 -0
  99. package/dist/calcite/{CM4U5UKC.js → HMVKZP47.js} +4 -6
  100. package/dist/calcite/I2OIH73C.js +4 -0
  101. package/dist/calcite/{W4D5O4P2.js → I32TMNTO.js} +3 -5
  102. package/dist/calcite/{KBVTFWRR.js → I62DUDHI.js} +4 -6
  103. package/dist/calcite/IH4RXHJJ.js +4 -0
  104. package/dist/calcite/{EUXG27WD.js → IJCTXZQB.js} +4 -6
  105. package/dist/calcite/{5LAQP62T.js → IXRMDUEL.js} +4 -6
  106. package/dist/calcite/IYDN67SF.js +4 -0
  107. package/dist/calcite/JCWM5Z43.js +4 -0
  108. package/dist/calcite/{26ES3CRO.js → JEX42CPR.js} +4 -6
  109. package/dist/calcite/JFYDLHH7.js +4 -0
  110. package/dist/calcite/JLZYAYOL.js +4 -0
  111. package/dist/calcite/{3KND2KKH.js → JUNCR7R2.js} +4 -6
  112. package/dist/calcite/{K3F2CI4A.js → JVNEJ36Z.js} +4 -6
  113. package/dist/calcite/K3ZBW4GY.js +4 -0
  114. package/dist/calcite/{G4Q2QH6B.js → KBDXI6DJ.js} +4 -6
  115. package/dist/calcite/{XFHDAVBK.js → KBNS3CCT.js} +4 -6
  116. package/dist/calcite/KI2NOBMU.js +4 -0
  117. package/dist/calcite/KSNEQFZX.js +4 -0
  118. package/dist/calcite/KSVYAIHK.js +4 -0
  119. package/dist/calcite/KULDQOV2.js +4 -0
  120. package/dist/calcite/KVSCG5E3.js +6 -0
  121. package/dist/calcite/{JFBHBHJE.js → KW57BHXD.js} +4 -6
  122. package/dist/calcite/{VP4IW6MN.js → KWOOGTG2.js} +4 -6
  123. package/dist/calcite/L5FDXQMT.js +4 -0
  124. package/dist/calcite/{UFV4E5V5.js → LB5ATL5Q.js} +4 -6
  125. package/dist/calcite/LH7KSBQC.js +4 -0
  126. package/dist/calcite/{6YQ42X6L.js → LHSAAMYQ.js} +4 -6
  127. package/dist/calcite/LILDCWFX.js +4 -0
  128. package/dist/calcite/LLSB73WA.js +4 -0
  129. package/dist/calcite/{MRVEUN2O.js → LOZEGKG2.js} +4 -6
  130. package/dist/calcite/{LR6EXHT2.js → MBQZPRQ5.js} +4 -6
  131. package/dist/calcite/MCSX2S5T.js +4 -0
  132. package/dist/calcite/{5MEU7SU4.js → MIKGJ3NM.js} +4 -6
  133. package/dist/calcite/MPAVJ7UH.js +4 -0
  134. package/dist/calcite/{RWW7CETF.js → MPX2M2VX.js} +4 -6
  135. package/dist/calcite/{N7NWH5SX.js → MQYH4ONZ.js} +3 -5
  136. package/dist/calcite/MUWK32IE.js +4 -0
  137. package/dist/calcite/{6FI3WN2Y.js → MZRO54UT.js} +4 -6
  138. package/dist/calcite/N2BVYYYP.js +4 -0
  139. package/dist/calcite/{WIGL5RKK.js → N4MN6VQ7.js} +4 -6
  140. package/dist/calcite/{ESS6BUTG.js → N55N67N5.js} +4 -6
  141. package/dist/calcite/NODC2JA6.js +4 -0
  142. package/dist/calcite/{FSQJ72IH.js → NVBNX55L.js} +4 -6
  143. package/dist/calcite/{Z2ZTWA3F.js → NWVCPRVB.js} +3 -5
  144. package/dist/calcite/{W3WKINVO.js → O4O3TSE5.js} +4 -6
  145. package/dist/calcite/OE2AH2NC.js +4 -0
  146. package/dist/calcite/OGED6PPP.js +4 -0
  147. package/dist/calcite/{QBG5T6W3.js → OHOS32IT.js} +4 -6
  148. package/dist/calcite/{KA53KK35.js → OLMX7G3J.js} +3 -5
  149. package/dist/calcite/OOSULFCY.js +4 -0
  150. package/dist/calcite/OPBQNK7J.js +4 -0
  151. package/dist/calcite/OTHVFLNW.js +4 -0
  152. package/dist/calcite/{G75XVKLZ.js → OTUG3NVT.js} +4 -6
  153. package/dist/calcite/PNHR5K2L.js +4 -0
  154. package/dist/calcite/{2YSVELPG.js → PT2XMADA.js} +3 -5
  155. package/dist/calcite/PZLVQQMT.js +4 -0
  156. package/dist/calcite/{I2N2BRJR.js → QAYSDI3M.js} +3 -5
  157. package/dist/calcite/QCGLMLKW.js +4 -0
  158. package/dist/calcite/QHASLHZN.js +4 -0
  159. package/dist/calcite/QK2H5T7J.js +4 -0
  160. package/dist/calcite/QLKHJI4P.js +4 -0
  161. package/dist/calcite/QQ67AVDV.js +4 -0
  162. package/dist/calcite/{CTQ5YHOP.js → QU33PBBI.js} +4 -6
  163. package/dist/calcite/QYGED6CL.js +4 -0
  164. package/dist/calcite/R3HMG2D6.js +4 -0
  165. package/dist/calcite/{OU4N4K2U.js → R4RMVIKH.js} +4 -6
  166. package/dist/calcite/R6GNPMSV.js +4 -0
  167. package/dist/calcite/{ARFAFPKS.js → RAFCSOOQ.js} +4 -6
  168. package/dist/calcite/{GU2SFYM4.js → RAQWKUOJ.js} +4 -6
  169. package/dist/calcite/RESHLE2Y.js +4 -0
  170. package/dist/calcite/RJLKHCRB.js +4 -0
  171. package/dist/calcite/RLSQLIV6.js +4 -0
  172. package/dist/calcite/{57L4ZYLO.js → RMGYRZXR.js} +4 -6
  173. package/dist/calcite/RSAEDAEX.js +4 -0
  174. package/dist/calcite/{SFWNFANJ.js → RUTUU2EH.js} +4 -6
  175. package/dist/calcite/{XFKIMAJU.js → RVMVJW6K.js} +4 -6
  176. package/dist/calcite/RVQMJBNS.js +4 -0
  177. package/dist/calcite/{QLJX2F4K.js → S76CXQTI.js} +4 -6
  178. package/dist/calcite/SBZ6VJ75.js +4 -0
  179. package/dist/calcite/SJKTCGW6.js +4 -0
  180. package/dist/calcite/{G27BUJJG.js → SKDMJE3X.js} +3 -5
  181. package/dist/calcite/SMUXJLDL.js +4 -0
  182. package/dist/calcite/SYEQSDHG.js +4 -0
  183. package/dist/calcite/T3NRBBZP.js +4 -0
  184. package/dist/calcite/T5UPGHU3.js +4 -0
  185. package/dist/calcite/{XOA2TSHC.js → T6HODD4B.js} +4 -6
  186. package/dist/calcite/TNR5VZG2.js +4 -0
  187. package/dist/calcite/TQIVV2F7.js +4 -0
  188. package/dist/calcite/{UCGUHOUO.js → TQTAM3XB.js} +4 -6
  189. package/dist/calcite/{XR2WLB7D.js → TSJJLMPA.js} +3 -5
  190. package/dist/calcite/{VM4VUQ54.js → TVDZM7WT.js} +4 -6
  191. package/dist/calcite/U3WK4DZT.js +4 -0
  192. package/dist/calcite/U725E4ID.js +4 -0
  193. package/dist/calcite/UELGJSYH.js +4 -0
  194. package/dist/calcite/UJL3BWDH.js +4 -0
  195. package/dist/calcite/{AFH6KP7M.js → URM3R65T.js} +4 -6
  196. package/dist/calcite/US3PQV6O.js +4 -0
  197. package/dist/calcite/{BNYX7IBO.js → V4JZRN7T.js} +4 -6
  198. package/dist/calcite/{3JQJ24PZ.js → VCSXFNPO.js} +4 -6
  199. package/dist/calcite/VG7BJBFG.js +4 -0
  200. package/dist/calcite/{6LWRLBVD.js → VJD4CRQ3.js} +4 -6
  201. package/dist/calcite/VMRLYKNI.js +4 -0
  202. package/dist/calcite/{LQ5ITYNE.js → VNQNKQ2J.js} +4 -6
  203. package/dist/calcite/VST65PDC.js +4 -0
  204. package/dist/calcite/WKTGTKRJ.js +4 -0
  205. package/dist/calcite/WPAMFFBY.js +4 -0
  206. package/dist/calcite/{3ATQZBKY.js → WSGL37LB.js} +4 -6
  207. package/dist/calcite/{4TWMM7Z6.js → WWUBU6N5.js} +4 -6
  208. package/dist/calcite/{QFH3VN2R.js → X2UHFJHG.js} +4 -6
  209. package/dist/calcite/XBZLGRRI.js +4 -0
  210. package/dist/calcite/XOVG6UH3.js +4 -0
  211. package/dist/calcite/{7NVGCG7Q.js → XT32TCZG.js} +3 -5
  212. package/dist/calcite/XXZIOSXQ.js +4 -0
  213. package/dist/calcite/{MNBTRJLH.js → Y6VF7HSM.js} +4 -6
  214. package/dist/calcite/YA5A7PJR.js +4 -0
  215. package/dist/calcite/{MYJH43DB.js → YMRTHS5X.js} +4 -6
  216. package/dist/calcite/{ZQSF4K7D.js → YTRT5XZT.js} +4 -6
  217. package/dist/calcite/{O2KBYT33.js → YXLQFMOA.js} +4 -6
  218. package/dist/calcite/{J7RY7DXT.js → YYJSHQR3.js} +3 -5
  219. package/dist/calcite/{SZP7YBVQ.js → Z6GA347Y.js} +4 -6
  220. package/dist/calcite/{VFBPWVKE.js → Z7VNUC77.js} +4 -6
  221. package/dist/calcite/ZA76CHET.js +4 -0
  222. package/dist/calcite/ZGXTLCGJ.js +4 -0
  223. package/dist/calcite/{KMLCSDZJ.js → ZQO6E4FO.js} +4 -6
  224. package/dist/calcite/ZV442E6X.js +4 -0
  225. package/dist/calcite/assets/icon/crosshair16.json +1 -0
  226. package/dist/calcite/assets/icon/crosshair24.json +1 -0
  227. package/dist/calcite/assets/icon/crosshair32.json +1 -0
  228. package/dist/calcite/assets/icon/dualImageArea16.json +1 -0
  229. package/dist/calcite/assets/icon/dualImageArea24.json +1 -0
  230. package/dist/calcite/assets/icon/dualImageArea32.json +1 -0
  231. package/dist/calcite/assets/icon/dualImageDistance16.json +1 -0
  232. package/dist/calcite/assets/icon/dualImageDistance24.json +1 -0
  233. package/dist/calcite/assets/icon/dualImageDistance32.json +1 -0
  234. package/dist/calcite/assets/icon/dualImageLocation16.json +1 -0
  235. package/dist/calcite/assets/icon/dualImageLocation24.json +1 -0
  236. package/dist/calcite/assets/icon/dualImageLocation32.json +1 -0
  237. package/dist/calcite/assets/icon/hammerCoin16.json +1 -0
  238. package/dist/calcite/assets/icon/hammerCoin24.json +1 -0
  239. package/dist/calcite/assets/icon/hammerCoin32.json +1 -0
  240. package/dist/calcite/assets/icon/hammerLock16.json +1 -0
  241. package/dist/calcite/assets/icon/hammerLock24.json +1 -0
  242. package/dist/calcite/assets/icon/hammerLock32.json +1 -0
  243. package/dist/calcite/assets/icon/utilityNetworkLayer16.json +1 -0
  244. package/dist/calcite/assets/icon/utilityNetworkLayer24.json +1 -0
  245. package/dist/calcite/assets/icon/utilityNetworkLayer32.json +1 -0
  246. package/dist/calcite/calcite.css +1 -1
  247. package/dist/calcite/calcite.esm.js +4 -6
  248. package/dist/chunks/ExpandToggle.js +3 -5
  249. package/dist/chunks/FloatingArrow.js +6 -8
  250. package/dist/chunks/Heading.js +3 -5
  251. package/dist/chunks/Validation.js +3 -5
  252. package/dist/chunks/_commonjsHelpers.js +3 -5
  253. package/dist/chunks/array.js +3 -5
  254. package/dist/chunks/component.js +13 -11
  255. package/dist/chunks/core.js +3 -5
  256. package/dist/chunks/date.js +3 -5
  257. package/dist/chunks/dom.js +218 -234
  258. package/dist/chunks/dynamicClasses.js +3 -5
  259. package/dist/chunks/filter.js +3 -5
  260. package/dist/chunks/floating-ui.js +61 -65
  261. package/dist/chunks/focusTrapComponent.js +25 -30
  262. package/dist/chunks/form.js +19 -21
  263. package/dist/chunks/global.js +14 -14
  264. package/dist/chunks/guid.js +3 -5
  265. package/dist/chunks/input.js +3 -5
  266. package/dist/chunks/interact.min.js +3 -5
  267. package/dist/chunks/interactive.js +3 -5
  268. package/dist/chunks/key.js +3 -5
  269. package/dist/chunks/label.js +7 -9
  270. package/dist/chunks/loadable.js +11 -22
  271. package/dist/chunks/locale.js +3 -5
  272. package/dist/chunks/logger.js +3 -5
  273. package/dist/chunks/math.js +3 -5
  274. package/dist/chunks/observers.js +3 -5
  275. package/dist/chunks/openCloseComponent.js +5 -7
  276. package/dist/chunks/resources.js +3 -5
  277. package/dist/chunks/resources2.js +3 -5
  278. package/dist/chunks/resources3.js +8 -14
  279. package/dist/chunks/resources4.js +3 -5
  280. package/dist/chunks/resources5.js +3 -5
  281. package/dist/chunks/resources6.js +3 -5
  282. package/dist/chunks/resources7.js +3 -5
  283. package/dist/chunks/responsive.js +9 -12
  284. package/dist/chunks/runtime.js +39 -43
  285. package/dist/chunks/sortableComponent.js +49 -39
  286. package/dist/chunks/text.js +3 -5
  287. package/dist/chunks/time.js +12 -14
  288. package/dist/chunks/useFocusTrap.js +49 -0
  289. package/dist/chunks/useT9n.js +3 -5
  290. package/dist/chunks/utils.js +19 -17
  291. package/dist/chunks/utils2.js +3 -5
  292. package/dist/chunks/utils3.js +15 -16
  293. package/dist/chunks/utils4.js +264 -271
  294. package/dist/components/calcite-accordion/customElement.js +3 -5
  295. package/dist/components/calcite-accordion-item/customElement.js +10 -14
  296. package/dist/components/calcite-action/customElement.js +17 -21
  297. package/dist/components/calcite-action-bar/customElement.js +24 -27
  298. package/dist/components/calcite-action-group/customElement.js +20 -24
  299. package/dist/components/calcite-action-menu/customElement.js +14 -18
  300. package/dist/components/calcite-action-pad/customElement.js +21 -25
  301. package/dist/components/calcite-alert/customElement.js +50 -63
  302. package/dist/components/calcite-autocomplete/customElement.d.ts +10 -4
  303. package/dist/components/calcite-autocomplete/customElement.js +50 -52
  304. package/dist/components/calcite-autocomplete-item/customElement.js +17 -21
  305. package/dist/components/calcite-autocomplete-item-group/customElement.js +3 -5
  306. package/dist/components/calcite-avatar/customElement.js +8 -10
  307. package/dist/components/calcite-block/customElement.d.ts +18 -1
  308. package/dist/components/calcite-block/customElement.js +54 -40
  309. package/dist/components/calcite-block/index.d.ts +1 -1
  310. package/dist/components/calcite-block/index.js +1 -1
  311. package/dist/components/calcite-block/utils.d.ts +2 -0
  312. package/dist/components/calcite-block-group/customElement.d.ts +50 -0
  313. package/dist/components/calcite-block-group/customElement.js +177 -0
  314. package/dist/components/calcite-block-group/index.d.ts +2 -0
  315. package/dist/components/calcite-block-group/index.js +2 -0
  316. package/dist/components/calcite-block-group/interfaces.d.ts +14 -0
  317. package/dist/components/calcite-block-group/resources.d.ts +8 -0
  318. package/dist/components/calcite-block-group/utils.d.ts +1 -0
  319. package/dist/components/calcite-block-section/customElement.js +19 -23
  320. package/dist/components/calcite-button/customElement.js +28 -30
  321. package/dist/components/calcite-card/customElement.js +17 -23
  322. package/dist/components/calcite-card-group/customElement.js +15 -18
  323. package/dist/components/calcite-carousel/customElement.js +29 -32
  324. package/dist/components/calcite-carousel-item/customElement.js +3 -5
  325. package/dist/components/calcite-checkbox/customElement.d.ts +4 -1
  326. package/dist/components/calcite-checkbox/customElement.js +18 -22
  327. package/dist/components/calcite-chip/customElement.js +42 -44
  328. package/dist/components/calcite-chip-group/customElement.js +10 -14
  329. package/dist/components/calcite-color-picker/customElement.d.ts +1 -1
  330. package/dist/components/calcite-color-picker/customElement.js +200 -178
  331. package/dist/components/calcite-color-picker/resources.d.ts +7 -16
  332. package/dist/components/calcite-color-picker/utils.d.ts +4 -3
  333. package/dist/components/calcite-color-picker-hex-input/customElement.js +27 -31
  334. package/dist/components/calcite-color-picker-swatch/customElement.js +3 -5
  335. package/dist/components/calcite-combobox/customElement.d.ts +5 -3
  336. package/dist/components/calcite-combobox/customElement.js +166 -160
  337. package/dist/components/calcite-combobox/resources.d.ts +1 -0
  338. package/dist/components/calcite-combobox-item/customElement.d.ts +2 -1
  339. package/dist/components/calcite-combobox-item/customElement.js +47 -38
  340. package/dist/components/calcite-combobox-item-group/customElement.js +13 -15
  341. package/dist/components/calcite-date-picker/customElement.d.ts +8 -2
  342. package/dist/components/calcite-date-picker/customElement.js +28 -31
  343. package/dist/components/calcite-date-picker-day/customElement.js +16 -19
  344. package/dist/components/calcite-date-picker-month/customElement.js +39 -41
  345. package/dist/components/calcite-date-picker-month-header/customElement.js +40 -44
  346. package/dist/components/calcite-dialog/customElement.d.ts +20 -4
  347. package/dist/components/calcite-dialog/customElement.js +78 -72
  348. package/dist/components/calcite-dialog/resources.d.ts +1 -0
  349. package/dist/components/calcite-dropdown/customElement.d.ts +1 -1
  350. package/dist/components/calcite-dropdown/customElement.js +63 -70
  351. package/dist/components/calcite-dropdown/resources.d.ts +1 -0
  352. package/dist/components/calcite-dropdown-group/customElement.js +4 -6
  353. package/dist/components/calcite-dropdown-item/customElement.js +20 -23
  354. package/dist/components/calcite-fab/customElement.js +19 -23
  355. package/dist/components/calcite-filter/customElement.js +20 -25
  356. package/dist/components/calcite-flow/customElement.js +19 -22
  357. package/dist/components/calcite-flow-item/customElement.js +26 -30
  358. package/dist/components/calcite-graph/customElement.js +52 -50
  359. package/dist/components/calcite-graph/interfaces.d.ts +1 -5
  360. package/dist/components/calcite-graph/resources.d.ts +5 -0
  361. package/dist/components/calcite-handle/customElement.d.ts +3 -0
  362. package/dist/components/calcite-handle/customElement.js +20 -18
  363. package/dist/components/calcite-icon/customElement.js +23 -25
  364. package/dist/components/calcite-inline-editable/customElement.js +25 -29
  365. package/dist/components/calcite-input/customElement.d.ts +14 -6
  366. package/dist/components/calcite-input/customElement.js +26 -29
  367. package/dist/components/calcite-input-date-picker/customElement.d.ts +12 -3
  368. package/dist/components/calcite-input-date-picker/customElement.js +84 -88
  369. package/dist/components/calcite-input-message/customElement.js +3 -5
  370. package/dist/components/calcite-input-number/customElement.d.ts +12 -5
  371. package/dist/components/calcite-input-number/customElement.js +30 -36
  372. package/dist/components/calcite-input-text/customElement.d.ts +10 -4
  373. package/dist/components/calcite-input-text/customElement.js +61 -65
  374. package/dist/components/calcite-input-time-picker/customElement.d.ts +8 -3
  375. package/dist/components/calcite-input-time-picker/customElement.js +45 -47
  376. package/dist/components/calcite-input-time-zone/customElement.js +53 -55
  377. package/dist/components/calcite-label/customElement.js +3 -5
  378. package/dist/components/calcite-link/customElement.js +10 -14
  379. package/dist/components/calcite-list/customElement.js +67 -70
  380. package/dist/components/calcite-list-item/customElement.js +54 -73
  381. package/dist/components/calcite-list-item/utils.d.ts +1 -0
  382. package/dist/components/calcite-list-item-group/customElement.js +3 -5
  383. package/dist/components/calcite-loader/customElement.js +3 -7
  384. package/dist/components/calcite-menu/customElement.js +12 -16
  385. package/dist/components/calcite-menu-item/customElement.js +12 -16
  386. package/dist/components/calcite-meter/customElement.js +26 -28
  387. package/dist/components/calcite-modal/customElement.d.ts +16 -3
  388. package/dist/components/calcite-modal/customElement.js +61 -61
  389. package/dist/components/calcite-navigation/customElement.js +17 -21
  390. package/dist/components/calcite-navigation-logo/customElement.js +12 -16
  391. package/dist/components/calcite-navigation-user/customElement.js +10 -14
  392. package/dist/components/calcite-notice/customElement.js +25 -28
  393. package/dist/components/calcite-option/customElement.js +3 -5
  394. package/dist/components/calcite-option-group/customElement.js +3 -5
  395. package/dist/components/calcite-pagination/customElement.js +15 -17
  396. package/dist/components/calcite-panel/customElement.js +45 -48
  397. package/dist/components/calcite-popover/customElement.d.ts +10 -7
  398. package/dist/components/calcite-popover/customElement.js +70 -79
  399. package/dist/components/calcite-progress/customElement.js +3 -5
  400. package/dist/components/calcite-radio-button/customElement.d.ts +4 -1
  401. package/dist/components/calcite-radio-button/customElement.js +17 -20
  402. package/dist/components/calcite-radio-button-group/customElement.d.ts +4 -1
  403. package/dist/components/calcite-radio-button-group/customElement.js +14 -17
  404. package/dist/components/calcite-rating/customElement.js +21 -23
  405. package/dist/components/calcite-scrim/customElement.js +3 -5
  406. package/dist/components/calcite-segmented-control/customElement.d.ts +4 -1
  407. package/dist/components/calcite-segmented-control/customElement.js +14 -17
  408. package/dist/components/calcite-segmented-control-item/customElement.js +28 -30
  409. package/dist/components/calcite-select/customElement.d.ts +4 -1
  410. package/dist/components/calcite-select/customElement.js +19 -22
  411. package/dist/components/calcite-sheet/customElement.d.ts +17 -3
  412. package/dist/components/calcite-sheet/customElement.js +59 -62
  413. package/dist/components/calcite-shell/customElement.js +3 -6
  414. package/dist/components/calcite-shell-center-row/customElement.js +3 -5
  415. package/dist/components/calcite-shell-panel/customElement.js +16 -20
  416. package/dist/components/calcite-slider/customElement.d.ts +4 -1
  417. package/dist/components/calcite-slider/customElement.js +18 -21
  418. package/dist/components/calcite-sort-handle/customElement.js +45 -35
  419. package/dist/components/calcite-sort-handle/index.d.ts +1 -1
  420. package/dist/components/calcite-sort-handle/index.js +1 -1
  421. package/dist/components/calcite-sortable-list/customElement.d.ts +4 -1
  422. package/dist/components/calcite-sortable-list/customElement.js +21 -16
  423. package/dist/components/calcite-split-button/customElement.js +13 -20
  424. package/dist/components/calcite-stack/customElement.js +4 -6
  425. package/dist/components/calcite-stepper/customElement.js +36 -39
  426. package/dist/components/calcite-stepper-item/customElement.js +23 -22
  427. package/dist/components/calcite-switch/customElement.js +10 -14
  428. package/dist/components/calcite-tab/customElement.js +3 -5
  429. package/dist/components/calcite-tab-nav/customElement.js +3 -5
  430. package/dist/components/calcite-tab-title/customElement.js +3 -5
  431. package/dist/components/calcite-table/customElement.js +44 -47
  432. package/dist/components/calcite-table-cell/customElement.js +22 -25
  433. package/dist/components/calcite-table-header/customElement.js +18 -21
  434. package/dist/components/calcite-table-row/customElement.js +6 -8
  435. package/dist/components/calcite-tabs/customElement.js +3 -5
  436. package/dist/components/calcite-text-area/customElement.d.ts +10 -3
  437. package/dist/components/calcite-text-area/customElement.js +30 -37
  438. package/dist/components/calcite-tile/customElement.js +16 -20
  439. package/dist/components/calcite-tile-group/customElement.js +3 -5
  440. package/dist/components/calcite-tile-select/customElement.js +17 -22
  441. package/dist/components/calcite-tile-select-group/customElement.js +3 -5
  442. package/dist/components/calcite-time-picker/customElement.d.ts +1 -0
  443. package/dist/components/calcite-time-picker/customElement.js +19 -23
  444. package/dist/components/calcite-tip/customElement.js +3 -5
  445. package/dist/components/calcite-tip-group/customElement.js +3 -5
  446. package/dist/components/calcite-tip-manager/customElement.js +3 -5
  447. package/dist/components/calcite-tooltip/customElement.js +41 -40
  448. package/dist/components/calcite-tree/customElement.js +3 -5
  449. package/dist/components/calcite-tree-item/customElement.js +16 -14
  450. package/dist/components/interfaces.d.ts +4 -0
  451. package/dist/controllers/useFocusTrap.d.ts +67 -0
  452. package/dist/custom-theme/block.d.ts +4 -5
  453. package/dist/custom-theme/calcite-shell-panel.d.ts +13 -0
  454. package/dist/custom-theme/date-picker.d.ts +28 -0
  455. package/dist/custom-theme/flow.d.ts +21 -0
  456. package/dist/custom-theme/graph.d.ts +4 -0
  457. package/dist/custom-theme/inline-editable.d.ts +10 -0
  458. package/dist/custom-theme/segmented-control.d.ts +7 -0
  459. package/dist/docs/api.json +1141 -159
  460. package/dist/docs/docs.json +1093 -126
  461. package/dist/docs/supported-browsers.json +1 -1
  462. package/dist/docs/vscode.css-custom-data.json +315 -7
  463. package/dist/docs/vscode.html-custom-data.json +107 -60
  464. package/dist/docs/web-types.json +659 -119
  465. package/dist/extras/vscode-data.json +107 -60
  466. package/dist/index.d.ts +25 -0
  467. package/dist/index.js +3 -5
  468. package/dist/loader.js +16 -17
  469. package/dist/types/lumina.d.ts +18 -6
  470. package/dist/types/preact.d.ts +19 -6
  471. package/dist/types/react.d.ts +180 -165
  472. package/dist/types/stencil.d.ts +18 -6
  473. package/dist/utils/component.d.ts +4 -0
  474. package/dist/utils/focusTrapComponent.d.ts +9 -0
  475. package/dist/utils/loadable.d.ts +26 -43
  476. package/dist/utils/openCloseComponent.d.ts +17 -18
  477. package/hydrate/index.d.ts +1 -0
  478. package/hydrate/index.js +1 -0
  479. package/hydrate/index.mjs +1 -0
  480. package/package.json +11 -12
  481. package/readme.md +5 -69
  482. package/dist/calcite/2AZY343I.js +0 -6
  483. package/dist/calcite/2CPZ6K5L.js +0 -6
  484. package/dist/calcite/2M35C4DF.js +0 -6
  485. package/dist/calcite/2VVNNU7Q.js +0 -6
  486. package/dist/calcite/2XACBT2N.js +0 -6
  487. package/dist/calcite/32P7BAVF.js +0 -6
  488. package/dist/calcite/3HC2LTHR.js +0 -6
  489. package/dist/calcite/455MOJA6.js +0 -6
  490. package/dist/calcite/4DVWRXRA.js +0 -6
  491. package/dist/calcite/4TF5UO7R.js +0 -6
  492. package/dist/calcite/572RARTY.js +0 -6
  493. package/dist/calcite/5I36CFLM.js +0 -6
  494. package/dist/calcite/5OJMVZTI.js +0 -6
  495. package/dist/calcite/5YZTHYBK.js +0 -6
  496. package/dist/calcite/6L5EBECQ.js +0 -6
  497. package/dist/calcite/73JK3C3F.js +0 -6
  498. package/dist/calcite/7557S5FH.js +0 -6
  499. package/dist/calcite/7FJOFJBG.js +0 -6
  500. package/dist/calcite/7KUN772K.js +0 -6
  501. package/dist/calcite/7LABYE24.js +0 -6
  502. package/dist/calcite/7NPWRWEK.js +0 -6
  503. package/dist/calcite/7PQTHMQD.js +0 -6
  504. package/dist/calcite/AEIISXUM.js +0 -6
  505. package/dist/calcite/AT2QAEKC.js +0 -6
  506. package/dist/calcite/BHLCJMB4.js +0 -6
  507. package/dist/calcite/BOMPAJVU.js +0 -6
  508. package/dist/calcite/BYURAML5.js +0 -6
  509. package/dist/calcite/CRBGPV2Y.js +0 -6
  510. package/dist/calcite/CY2QE4I2.js +0 -6
  511. package/dist/calcite/D26RI2OE.js +0 -6
  512. package/dist/calcite/DCAWR655.js +0 -6
  513. package/dist/calcite/DSYDJ57C.js +0 -6
  514. package/dist/calcite/E2PVAX5K.js +0 -6
  515. package/dist/calcite/EH7S4XKL.js +0 -6
  516. package/dist/calcite/FGCHRTFU.js +0 -6
  517. package/dist/calcite/FIJQNNLL.js +0 -6
  518. package/dist/calcite/FIVGOTUL.js +0 -6
  519. package/dist/calcite/FPZSDG22.js +0 -6
  520. package/dist/calcite/FQJWCM6B.js +0 -6
  521. package/dist/calcite/FRK56FXW.js +0 -6
  522. package/dist/calcite/FSORFWYW.js +0 -6
  523. package/dist/calcite/FWSMKN2T.js +0 -6
  524. package/dist/calcite/GGQW5H6B.js +0 -6
  525. package/dist/calcite/GHY53YEU.js +0 -6
  526. package/dist/calcite/GWGCBSIN.js +0 -6
  527. package/dist/calcite/HH5FL6GD.js +0 -6
  528. package/dist/calcite/HNNE5R46.js +0 -6
  529. package/dist/calcite/HRVN7KZA.js +0 -6
  530. package/dist/calcite/I3TEC7IS.js +0 -6
  531. package/dist/calcite/I5SQS3SN.js +0 -6
  532. package/dist/calcite/I74ZLJFG.js +0 -6
  533. package/dist/calcite/I7SBXLRM.js +0 -6
  534. package/dist/calcite/IEJMBPJU.js +0 -6
  535. package/dist/calcite/IK3QCAZN.js +0 -6
  536. package/dist/calcite/IKOOMPAX.js +0 -6
  537. package/dist/calcite/IPDH2LDG.js +0 -6
  538. package/dist/calcite/IUBUCDD6.js +0 -6
  539. package/dist/calcite/JCMCWR7J.js +0 -6
  540. package/dist/calcite/JHGP2C56.js +0 -6
  541. package/dist/calcite/JMNIVK3R.js +0 -6
  542. package/dist/calcite/KDCUMRGX.js +0 -6
  543. package/dist/calcite/KEFBUO23.js +0 -6
  544. package/dist/calcite/KHNXDA3R.js +0 -6
  545. package/dist/calcite/KLEV3IGL.js +0 -6
  546. package/dist/calcite/LIT6HBCV.js +0 -6
  547. package/dist/calcite/LKXA7MRG.js +0 -6
  548. package/dist/calcite/LMTPIXJD.js +0 -6
  549. package/dist/calcite/M3MFRN64.js +0 -6
  550. package/dist/calcite/M5MPF4VA.js +0 -6
  551. package/dist/calcite/MWGGE65N.js +0 -6
  552. package/dist/calcite/MXNAKF47.js +0 -6
  553. package/dist/calcite/NNKZWGGT.js +0 -6
  554. package/dist/calcite/NVQN43XK.js +0 -6
  555. package/dist/calcite/OHLVZUJX.js +0 -6
  556. package/dist/calcite/OHR7IMVY.js +0 -6
  557. package/dist/calcite/OJ5D52RG.js +0 -6
  558. package/dist/calcite/OJ5H4H4N.js +0 -6
  559. package/dist/calcite/OTT2SAVW.js +0 -6
  560. package/dist/calcite/OTYNRKUI.js +0 -6
  561. package/dist/calcite/PB4E6L52.js +0 -6
  562. package/dist/calcite/PO4EKM6H.js +0 -6
  563. package/dist/calcite/PPU55N5C.js +0 -6
  564. package/dist/calcite/PRGXXMHF.js +0 -6
  565. package/dist/calcite/PZ34QZ44.js +0 -6
  566. package/dist/calcite/PZ65523C.js +0 -6
  567. package/dist/calcite/PZGFP3J5.js +0 -6
  568. package/dist/calcite/Q2OAKI4L.js +0 -7
  569. package/dist/calcite/QIOSM7C2.js +0 -6
  570. package/dist/calcite/QS2B427U.js +0 -6
  571. package/dist/calcite/QVG465DZ.js +0 -6
  572. package/dist/calcite/RJU34JMH.js +0 -6
  573. package/dist/calcite/RL6ENWBS.js +0 -6
  574. package/dist/calcite/RWRTOY74.js +0 -6
  575. package/dist/calcite/S66ATD4V.js +0 -6
  576. package/dist/calcite/SHIZHTEP.js +0 -6
  577. package/dist/calcite/SY776R43.js +0 -6
  578. package/dist/calcite/T2M3KJPZ.js +0 -6
  579. package/dist/calcite/T7AHSVKE.js +0 -6
  580. package/dist/calcite/TBZM4XEW.js +0 -6
  581. package/dist/calcite/THTH4FYX.js +0 -6
  582. package/dist/calcite/TI4ZYY5Y.js +0 -6
  583. package/dist/calcite/TKE6VYZT.js +0 -6
  584. package/dist/calcite/TR3TLSTJ.js +0 -6
  585. package/dist/calcite/TSUCKRY4.js +0 -6
  586. package/dist/calcite/TWZNPBFB.js +0 -6
  587. package/dist/calcite/U5AZRHO7.js +0 -6
  588. package/dist/calcite/UE43U5QZ.js +0 -6
  589. package/dist/calcite/UHCCT74Q.js +0 -6
  590. package/dist/calcite/USP47AIY.js +0 -6
  591. package/dist/calcite/V3ZZW4SK.js +0 -6
  592. package/dist/calcite/WBOLRFTK.js +0 -6
  593. package/dist/calcite/WH3NETOG.js +0 -6
  594. package/dist/calcite/WHD4MFC3.js +0 -6
  595. package/dist/calcite/WJ6LOMWZ.js +0 -6
  596. package/dist/calcite/WKI76QXV.js +0 -6
  597. package/dist/calcite/WRQMW4QF.js +0 -24
  598. package/dist/calcite/X4RLJXN2.js +0 -6
  599. package/dist/calcite/XDGCDDNX.js +0 -8
  600. package/dist/calcite/XL6QBGWC.js +0 -6
  601. package/dist/calcite/XVBU5M6P.js +0 -6
  602. package/dist/calcite/Z4XCJ5VE.js +0 -6
  603. package/dist/calcite/ZQERQE2F.js +0 -6
  604. package/dist/calcite/ZYUUIPOD.js +0 -6
@@ -1,40 +1,38 @@
1
- import { c as F } from "../../chunks/runtime.js";
1
+ import { c as k } from "../../chunks/runtime.js";
2
2
  import { keyed as h } from "lit-html/directives/keyed.js";
3
3
  import { html as f } from "lit";
4
- import { createRef as D, ref as u } from "lit-html/directives/ref.js";
5
- import { LitElement as A, createEvent as n, safeClassMap as s, setAttribute as T } from "@arcgis/lumina";
6
- import { d as g, r as L, a as $, f as z, c as H, h as B, F as v } from "../../chunks/floating-ui.js";
7
- import { u as O, c as R, d as m, a as b } from "../../chunks/focusTrapComponent.js";
8
- import { u as U, h as S, t as I, q } from "../../chunks/dom.js";
9
- import { g as _ } from "../../chunks/guid.js";
10
- import { o as E } from "../../chunks/openCloseComponent.js";
11
- import { H as N } from "../../chunks/Heading.js";
12
- import { c as M, s as K, a as j } from "../../chunks/loadable.js";
13
- import { c as V } from "../../chunks/observers.js";
14
- import { F as X } from "../../chunks/FloatingArrow.js";
15
- import { g as G } from "../../chunks/component.js";
16
- import { u as J } from "../../chunks/useT9n.js";
17
- import { i as Q } from "../../chunks/key.js";
18
- import { css as W } from "@lit/reactive-element/css-tag.js";
19
- /*!
20
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
21
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
22
- * v3.0.0-next.99
23
- */
24
- class Y {
4
+ import { createRef as x, ref as u } from "lit-html/directives/ref.js";
5
+ import { LitElement as C, createEvent as n, safeClassMap as s, setAttribute as A } from "@arcgis/lumina";
6
+ import { d as m, r as D, a as F, f as $, c as L, h as H, F as g } from "../../chunks/floating-ui.js";
7
+ import { u as O, h as T, t as B, q as R } from "../../chunks/dom.js";
8
+ import { g as z } from "../../chunks/guid.js";
9
+ import { o as U } from "../../chunks/openCloseComponent.js";
10
+ import { H as S } from "../../chunks/Heading.js";
11
+ import { c as I } from "../../chunks/loadable.js";
12
+ import { c as q } from "../../chunks/observers.js";
13
+ import { F as _ } from "../../chunks/FloatingArrow.js";
14
+ import { g as N } from "../../chunks/component.js";
15
+ import { u as M } from "../../chunks/useT9n.js";
16
+ import { u as K } from "../../chunks/useFocusTrap.js";
17
+ import { i as j } from "../../chunks/key.js";
18
+ import { css as V } from "@lit/reactive-element/css-tag.js";
19
+ /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
20
+ See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
21
+ v3.0.0 */
22
+ class X {
25
23
  constructor() {
26
24
  this.registeredElements = /* @__PURE__ */ new Map(), this.registeredElementCount = 0, this.queryPopover = (e) => {
27
- const { registeredElements: t } = this, i = e.find((o) => t.has(o));
25
+ const { registeredElements: t } = this, i = e.find((r) => t.has(r));
28
26
  return t.get(i);
29
27
  }, this.togglePopovers = (e) => {
30
28
  const t = e.composedPath(), i = this.queryPopover(t);
31
29
  i && !i.triggerDisabled && (i.open = !i.open), Array.from(this.registeredElements.values()).filter(
32
- (o) => o !== i && o.autoClose && o.open && !t.includes(o)
33
- ).forEach((o) => o.open = !1);
30
+ (r) => r !== i && r.autoClose && r.open && !t.includes(r)
31
+ ).forEach((r) => r.open = !1);
34
32
  }, this.keyDownHandler = (e) => {
35
- e.defaultPrevented || (e.key === "Escape" ? this.closeAllPopovers() : Q(e.key) && this.togglePopovers(e));
33
+ e.defaultPrevented || (e.key === "Escape" ? this.closeAllPopovers() : j(e.key) && this.togglePopovers(e));
36
34
  }, this.clickHandler = (e) => {
37
- U(e) || this.togglePopovers(e);
35
+ O(e) || e.defaultPrevented || this.togglePopovers(e);
38
36
  };
39
37
  }
40
38
  // --------------------------------------------------------------------------
@@ -58,28 +56,32 @@ class Y {
58
56
  window.removeEventListener("click", this.clickHandler), window.removeEventListener("keydown", this.keyDownHandler);
59
57
  }
60
58
  }
61
- const r = {
59
+ const o = {
62
60
  positionContainer: "position-container",
63
61
  container: "container",
64
- imageContainer: "image-container",
65
62
  closeButtonContainer: "close-button-container",
66
63
  closeButton: "close-button",
67
64
  content: "content",
68
65
  hasHeader: "has-header",
69
66
  header: "header",
70
67
  headerContainer: "headerContainer",
71
- headerContent: "header-content",
72
68
  heading: "heading"
73
- }, w = "auto", k = "aria-controls", y = "aria-expanded", Z = W`:host{position:relative;display:block;--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-inline:.75rem;padding-block:.5rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .heading{padding-inline:1rem;padding-block:.75rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .heading{padding-inline:1.25rem;padding-block:1rem;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-block-end-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;block-size: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;block-size:100%;inline-size: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){block-size:100%}:host([hidden]){display:none}[hidden]{display:none}`, x = new Y();
74
- class ee extends A {
69
+ }, v = "auto", b = "aria-controls", E = "aria-expanded", G = V`: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}`, w = new X();
70
+ class J extends C {
75
71
  constructor() {
76
- super(...arguments), this.closeButtonEl = D(), this.guid = `calcite-popover-${_()}`, this.hasLoaded = !1, this.mutationObserver = V("mutation", () => this.updateFocusTrapElements()), this.openTransitionProp = "opacity", this.floatingLayout = "vertical", this.autoClose = !1, this.closable = !1, this.flipDisabled = !1, this.focusTrapDisabled = !1, this.messages = J(), this.offsetDistance = g, this.offsetSkidding = 0, this.open = !1, this.overlayPositioning = "absolute", this.placement = w, this.pointerDisabled = !1, this.scale = "m", this.triggerDisabled = !1, this.calcitePopoverBeforeClose = n({ cancelable: !1 }), this.calcitePopoverBeforeOpen = n({ cancelable: !1 }), this.calcitePopoverClose = n({ cancelable: !1 }), this.calcitePopoverOpen = n({ cancelable: !1 });
72
+ super(...arguments), this.closeButtonEl = x(), this.focusTrap = K({
73
+ triggerProp: "open",
74
+ focusTrapOptions: {
75
+ allowOutsideClick: !0,
76
+ escapeDeactivates: (e) => (e.defaultPrevented || (this.open = !1, e.preventDefault()), !1)
77
+ }
78
+ })(this), this.guid = `calcite-popover-${z()}`, this.hasLoaded = !1, this.mutationObserver = q("mutation", () => this.updateFocusTrapElements()), this.transitionProp = "opacity", this.floatingLayout = "vertical", this.autoClose = !1, this.closable = !1, this.flipDisabled = !1, this.focusTrapDisabled = !1, this.messages = M(), this.offsetDistance = m, this.offsetSkidding = 0, this.open = !1, this.overlayPositioning = "absolute", this.placement = v, this.pointerDisabled = !1, this.scale = "m", this.triggerDisabled = !1, this.calcitePopoverBeforeClose = n({ cancelable: !1 }), this.calcitePopoverBeforeOpen = n({ cancelable: !1 }), this.calcitePopoverClose = n({ cancelable: !1 }), this.calcitePopoverOpen = n({ cancelable: !1 });
77
79
  }
78
80
  static {
79
- this.properties = { floatingLayout: 16, referenceEl: 16, autoClose: 7, closable: 7, flipDisabled: 7, flipPlacements: 0, focusTrapDisabled: 7, heading: 1, headingLevel: 11, initialFocusTrapFocus: 5, label: 1, messageOverrides: 0, offsetDistance: 11, offsetSkidding: 11, open: 7, overlayPositioning: 3, placement: 3, pointerDisabled: 7, referenceElement: 1, scale: 3, triggerDisabled: 7 };
81
+ 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 };
80
82
  }
81
83
  static {
82
- this.styles = Z;
84
+ this.styles = G;
83
85
  }
84
86
  // #endregion
85
87
  // #region Public Methods
@@ -89,11 +91,11 @@ class ee extends A {
89
91
  * @param delayed
90
92
  */
91
93
  async reposition(e = !1) {
92
- const { referenceEl: t, placement: i, overlayPositioning: o, flipDisabled: l, filteredFlipPlacements: c, offsetDistance: a, offsetSkidding: d, arrowEl: p, floatingEl: P } = this;
93
- return L(this, {
94
+ const { referenceEl: t, placement: i, overlayPositioning: r, flipDisabled: l, filteredFlipPlacements: c, offsetDistance: a, offsetSkidding: d, arrowEl: p, floatingEl: P } = this;
95
+ return D(this, {
94
96
  floatingEl: P,
95
97
  referenceEl: t,
96
- overlayPositioning: o,
98
+ overlayPositioning: r,
97
99
  placement: i,
98
100
  flipDisabled: l,
99
101
  flipPlacements: c,
@@ -105,46 +107,35 @@ class ee extends A {
105
107
  }
106
108
  /** Sets focus on the component's first focusable element. */
107
109
  async setFocus() {
108
- await M(this), this.requestUpdate(), S(this.el);
110
+ await I(this), this.requestUpdate(), T(this.el);
109
111
  }
110
112
  /** Updates the element(s) that are used within the focus-trap of the component. */
111
113
  async updateFocusTrapElements() {
112
- O(this);
114
+ this.focusTrap.updateContainerElements();
113
115
  }
114
116
  // #endregion
115
117
  // #region Lifecycle
116
118
  connectedCallback() {
117
- super.connectedCallback(), this.mutationObserver?.observe(this.el, { childList: !0, subtree: !0 }), this.setFilteredPlacements(), R(this, {
118
- focusTrapEl: this.el,
119
- focusTrapOptions: {
120
- allowOutsideClick: !0,
121
- escapeDeactivates: (e) => (e.defaultPrevented || (this.open = !1, e.preventDefault()), !1),
122
- initialFocus: this.initialFocusTrapFocus
123
- }
124
- }), requestAnimationFrame(() => this.setUpReferenceElement(this.hasLoaded));
119
+ super.connectedCallback(), this.mutationObserver?.observe(this.el, { childList: !0, subtree: !0 }), this.setFilteredPlacements(), requestAnimationFrame(() => this.setUpReferenceElement(this.hasLoaded));
125
120
  }
126
121
  async load() {
127
- K(this);
128
122
  }
129
123
  willUpdate(e) {
130
- e.has("focusTrapDisabled") && (this.hasUpdated || this.focusTrapDisabled !== !1) && this.handleFocusTrapDisabled(this.focusTrapDisabled), e.has("flipPlacements") && this.flipPlacementsHandler(), e.has("open") && (this.hasUpdated || this.open !== !1) && this.openHandler(), (e.has("offsetDistance") && (this.hasUpdated || this.offsetDistance !== g) || e.has("offsetSkidding") && (this.hasUpdated || this.offsetSkidding !== 0) || e.has("overlayPositioning") && (this.hasUpdated || this.overlayPositioning !== "absolute") || e.has("placement") && (this.hasUpdated || this.placement !== w)) && this.reposition(!0), e.has("referenceElement") && this.referenceElementHandler();
124
+ e.has("flipPlacements") && this.flipPlacementsHandler(), e.has("open") && (this.hasUpdated || this.open !== !1) && this.openHandler(), (e.has("offsetDistance") && (this.hasUpdated || this.offsetDistance !== m) || e.has("offsetSkidding") && (this.hasUpdated || this.offsetSkidding !== 0) || e.has("overlayPositioning") && (this.hasUpdated || this.overlayPositioning !== "absolute") || e.has("placement") && (this.hasUpdated || this.placement !== v)) && this.reposition(!0), e.has("referenceElement") && this.referenceElementHandler();
131
125
  }
132
126
  loaded() {
133
- j(this), this.referenceElement && !this.referenceEl && this.setUpReferenceElement(), this.open && E(this), this.hasLoaded = !0;
127
+ this.referenceElement && !this.referenceEl && this.setUpReferenceElement(), this.hasLoaded = !0;
134
128
  }
135
129
  disconnectedCallback() {
136
- super.disconnectedCallback(), this.mutationObserver?.disconnect(), this.removeReferences(), $(this), m(this);
130
+ super.disconnectedCallback(), this.mutationObserver?.disconnect(), this.removeReferences(), F(this);
137
131
  }
138
132
  // #endregion
139
133
  // #region Private Methods
140
- handleFocusTrapDisabled(e) {
141
- this.open && (e ? m(this) : b(this));
142
- }
143
134
  flipPlacementsHandler() {
144
135
  this.setFilteredPlacements(), this.reposition(!0);
145
136
  }
146
137
  openHandler() {
147
- E(this), this.reposition(!0), this.setExpandedAttr();
138
+ U(this), this.reposition(!0), this.setExpandedAttr();
148
139
  }
149
140
  referenceElementHandler() {
150
141
  this.setUpReferenceElement(), this.reposition(!0);
@@ -157,12 +148,12 @@ class ee extends A {
157
148
  }
158
149
  setFilteredPlacements() {
159
150
  const { el: e, flipPlacements: t } = this;
160
- this.filteredFlipPlacements = t ? z(t, e) : null;
151
+ this.filteredFlipPlacements = t ? $(t, e) : null;
161
152
  }
162
153
  setUpReferenceElement(e = !0) {
163
- this.removeReferences(), this.referenceEl = this.getReferenceElement(), H(this);
164
- const { el: t, referenceElement: i, referenceEl: o } = this;
165
- e && i && !o && console.warn(`${t.tagName}: reference-element id "${i}" was not found.`, {
154
+ this.removeReferences(), this.referenceEl = this.getReferenceElement(), L(this);
155
+ const { el: t, referenceElement: i, referenceEl: r } = this;
156
+ e && i && !r && console.warn(`${t.tagName}: reference-element id "${i}" was not found.`, {
166
157
  el: t
167
158
  }), this.addReferences();
168
159
  }
@@ -171,22 +162,22 @@ class ee extends A {
171
162
  }
172
163
  setExpandedAttr() {
173
164
  const { referenceEl: e, open: t } = this;
174
- e && "setAttribute" in e && e.setAttribute(y, I(t));
165
+ e && "setAttribute" in e && e.setAttribute(E, B(t));
175
166
  }
176
167
  addReferences() {
177
168
  const { referenceEl: e } = this;
178
169
  if (!e)
179
170
  return;
180
171
  const t = this.getId();
181
- "setAttribute" in e && e.setAttribute(k, t), x.registerElement(e, this.el), this.setExpandedAttr();
172
+ "setAttribute" in e && e.setAttribute(b, t), w.registerElement(e, this.el), this.setExpandedAttr();
182
173
  }
183
174
  removeReferences() {
184
175
  const { referenceEl: e } = this;
185
- e && ("removeAttribute" in e && (e.removeAttribute(k), e.removeAttribute(y)), x.unregisterElement(e));
176
+ e && ("removeAttribute" in e && (e.removeAttribute(b), e.removeAttribute(E)), w.unregisterElement(e));
186
177
  }
187
178
  getReferenceElement() {
188
179
  const { referenceElement: e, el: t } = this;
189
- return (typeof e == "string" ? q(t, { id: e }) : e) || null;
180
+ return (typeof e == "string" ? R(t, { id: e }) : e) || null;
190
181
  }
191
182
  hide() {
192
183
  this.open = !1;
@@ -195,13 +186,13 @@ class ee extends A {
195
186
  this.calcitePopoverBeforeOpen.emit();
196
187
  }
197
188
  onOpen() {
198
- this.calcitePopoverOpen.emit(), b(this);
189
+ this.calcitePopoverOpen.emit(), this.focusTrap.activate();
199
190
  }
200
191
  onBeforeClose() {
201
192
  this.calcitePopoverBeforeClose.emit();
202
193
  }
203
194
  onClose() {
204
- this.calcitePopoverClose.emit(), B(this), m(this);
195
+ this.calcitePopoverClose.emit(), H(this), this.focusTrap.deactivate();
205
196
  }
206
197
  storeArrowEl(e) {
207
198
  this.arrowEl = e, this.reposition(!0);
@@ -210,25 +201,25 @@ class ee extends A {
210
201
  // #region Rendering
211
202
  renderCloseButton() {
212
203
  const { messages: e, closable: t } = this;
213
- return t ? h(r.closeButtonContainer, f`<div class=${s(r.closeButtonContainer)}><calcite-action appearance=transparent class=${s(r.closeButton)} @click=${this.hide} .scale=${this.scale} .text=${e.close} ${u(this.closeButtonEl)}><calcite-icon icon=x .scale=${G(this.scale)}></calcite-icon></calcite-action></div>`) : null;
204
+ return t ? h(o.closeButtonContainer, f`<div class=${s(o.closeButtonContainer)}><calcite-action appearance=transparent class=${s(o.closeButton)} @click=${this.hide} .scale=${this.scale} .text=${e.close} ${u(this.closeButtonEl)}><calcite-icon icon=x .scale=${N(this.scale)}></calcite-icon></calcite-action></div>`) : null;
214
205
  }
215
206
  renderHeader() {
216
- const { heading: e, headingLevel: t } = this, i = e ? N({ class: r.heading, level: t, children: e }) : null;
217
- return i ? h(r.header, f`<div class=${s(r.header)}>${i}${this.renderCloseButton()}</div>`) : null;
207
+ const { heading: e, headingLevel: t } = this, i = e ? S({ class: o.heading, level: t, children: e }) : null;
208
+ return i ? h(o.header, f`<div class=${s(o.header)}>${i}${this.renderCloseButton()}</div>`) : null;
218
209
  }
219
210
  render() {
220
- const { referenceEl: e, heading: t, label: i, open: o, pointerDisabled: l, floatingLayout: c } = this, a = e && o, d = !a, p = l ? null : h("floating-arrow", X({ floatingLayout: c, ref: this.storeArrowEl }));
221
- return this.el.inert = d, this.el.ariaLabel = i, this.el.ariaLive = "polite", T(this.el, "id", this.getId()), this.el.role = "dialog", f`<div class=${s(r.positionContainer)} ${u(this.setFloatingEl)}><div class=${s({
222
- [r.container]: !0,
223
- [v.animation]: !0,
224
- [v.animationActive]: a
211
+ const { referenceEl: e, heading: t, label: i, open: r, pointerDisabled: l, floatingLayout: c } = this, a = e && r, d = !a, p = l ? null : h("floating-arrow", _({ floatingLayout: c, ref: this.storeArrowEl }));
212
+ return this.el.inert = d, this.el.ariaLabel = i, this.el.ariaLive = "polite", A(this.el, "id", this.getId()), this.el.role = "dialog", f`<div class=${s(o.positionContainer)} ${u(this.setFloatingEl)}><div class=${s({
213
+ [o.container]: !0,
214
+ [g.animation]: !0,
215
+ [g.animationActive]: a
225
216
  })} ${u(this.setTransitionEl)}>${p}<div class=${s({
226
- [r.hasHeader]: !!t,
227
- [r.headerContainer]: !0
228
- })}>${this.renderHeader()}<div class=${s(r.content)}><slot></slot></div>${t ? null : this.renderCloseButton()}</div></div></div>`;
217
+ [o.hasHeader]: !!t,
218
+ [o.headerContainer]: !0
219
+ })}>${this.renderHeader()}<div class=${s(o.content)}><slot></slot></div>${t ? null : this.renderCloseButton()}</div></div></div>`;
229
220
  }
230
221
  }
231
- F("calcite-popover", ee);
222
+ k("calcite-popover", J);
232
223
  export {
233
- ee as Popover
224
+ J as Popover
234
225
  };
@@ -3,11 +3,9 @@ import { html as t } from "lit-html";
3
3
  import { LitElement as s, safeClassMap as o, safeStyleMap as l } from "@arcgis/lumina";
4
4
  import { g as c } from "../../chunks/dom.js";
5
5
  import { css as d } from "@lit/reactive-element/css-tag.js";
6
- /*!
7
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
8
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
9
- * v3.0.0-next.99
10
- */
6
+ /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
7
+ See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
8
+ v3.0.0 */
11
9
  const m = d`:host{position:relative;display:block;inline-size:100%}.track,.bar{position:absolute;inset-block-start:0px;block-size:2px}.track{z-index:var(--calcite-z-index);inline-size:100%;overflow:hidden;background-color:var(--calcite-progress-background-color, var(--calcite-color-border-3))}.bar{z-index:var(--calcite-z-index);background-color:var(--calcite-progress-fill-color, var(--calcite-color-brand))}@media (forced-colors: active){.track{background-color:highlightText}.bar{background-color:linkText}}.indeterminate{inline-size:20%;animation:looping-progress-bar-ani calc(var(--calcite-internal-animation-timing-medium) / var(--calcite-internal-duration-factor) * 11 / var(--calcite-internal-duration-factor)) linear infinite}.indeterminate.calcite--rtl{animation-name:looping-progress-bar-ani-rtl}.reversed{animation-direction:reverse}.text{padding-inline:0px;padding-block:1rem 0px;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-progress-text-color, var(--calcite-color-text-2))}@keyframes looping-progress-bar-ani{0%{transform:translate3d(-100%,0,0)}50%{inline-size:40%}to{transform:translate3d(600%,0,0)}}@keyframes looping-progress-bar-ani-rtl{0%{transform:translate3d(100%,0,0)}50%{inline-size:40%}to{transform:translate3d(-600%,0,0)}}:host([hidden]){display:none}[hidden]{display:none}`;
12
10
  class p extends s {
13
11
  constructor() {
@@ -25,7 +25,10 @@ export declare class RadioButton extends LitElement {
25
25
  * Required to pass the component's `value` on form submission.
26
26
  */
27
27
  name: string;
28
- /** When `true`, the component must have a value selected from the `calcite-radio-button-group` in order for the form to submit. */
28
+ /**
29
+ * When `true` and the component resides in a form,
30
+ * the component must have a value selected from the `calcite-radio-button-group` in order for the form to submit.
31
+ */
29
32
  required: boolean;
30
33
  /** Specifies the size of the component inherited from the `calcite-radio-button-group`. */
31
34
  scale: Scale;
@@ -5,19 +5,17 @@ import { LitElement as m, createEvent as s, safeClassMap as k } from "@arcgis/lu
5
5
  import { g as l } from "../../chunks/array.js";
6
6
  import { b as v, g as x } from "../../chunks/dom.js";
7
7
  import { c as B, d as g, H as y } from "../../chunks/form.js";
8
- import { u as w, I as C } from "../../chunks/interactive.js";
9
- import { c as I, d as R, g as z } from "../../chunks/label.js";
10
- import { c as A, s as F, a as L } from "../../chunks/loadable.js";
11
- import { css as E } from "@lit/reactive-element/css-tag.js";
12
- /*!
13
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
14
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
15
- * v3.0.0-next.99
16
- */
17
- const q = {
8
+ import { u as w, I } from "../../chunks/interactive.js";
9
+ import { c as R, d as C, g as z } from "../../chunks/label.js";
10
+ import { c as A } from "../../chunks/loadable.js";
11
+ import { css as F } from "@lit/reactive-element/css-tag.js";
12
+ /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
13
+ See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
14
+ v3.0.0 */
15
+ const L = {
18
16
  container: "container"
19
- }, O = E`: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;cursor:pointer}:host .container{position:relative;outline:2px solid transparent;outline-offset:2px}:host .radio{cursor:pointer;border-radius:9999px;background-color:var(--calcite-color-foreground-1);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;box-shadow:inset 0 0 0 1px var(--calcite-color-border-input)}:host([hovered]) .radio,:host(:not([checked])[focused]:not([disabled])) .radio{box-shadow:inset 0 0 0 2px var(--calcite-color-brand)}:host([focused]) .radio{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([disabled]) .radio{cursor:default;opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hovered][disabled]) .radio{box-shadow:inset 0 0 0 1px var(--calcite-color-border-input)}:host([scale=s]){--calcite-radio-size: var(--calcite-font-size--2)}:host([scale=m]){--calcite-radio-size: var(--calcite-font-size--1)}:host([scale=l]){--calcite-radio-size: var(--calcite-font-size-0)}.radio{block-size:var(--calcite-radio-size);max-inline-size:var(--calcite-radio-size);min-inline-size:var(--calcite-radio-size)}:host([scale=s][checked]) .radio,:host([hovered][scale=s][checked][disabled]) .radio{box-shadow:inset 0 0 0 4px var(--calcite-color-brand)}:host([scale=s][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 4px var(--calcite-color-brand),0 0 0 2px var(--calcite-color-foreground-1)}:host([scale=m][checked]) .radio,:host([hovered][scale=m][checked][disabled]) .radio{box-shadow:inset 0 0 0 5px var(--calcite-color-brand)}:host([scale=m][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 5px var(--calcite-color-brand),0 0 0 2px var(--calcite-color-foreground-1)}:host([scale=l][checked]) .radio,:host([hovered][scale=l][checked][disabled]) .radio{box-shadow:inset 0 0 0 6px var(--calcite-color-brand)}:host([scale=l][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 6px var(--calcite-color-brand),0 0 0 2px var(--calcite-color-foreground-1)}@media (forced-colors: active){:host([checked]) .radio:after,:host([checked][disabled]) .radio:after{content:"";inline-size:var(--calcite-radio-size);block-size:var(--calcite-radio-size);background-color:windowText;display:block}}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}`;
20
- class H extends m {
17
+ }, E = F`: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;cursor:pointer}:host .container{position:relative;outline:2px solid transparent;outline-offset:2px}:host .radio{cursor:pointer;border-radius:9999px;background-color:var(--calcite-color-foreground-1);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;box-shadow:inset 0 0 0 1px var(--calcite-color-border-input)}:host([hovered]) .radio,:host(:not([checked])[focused]:not([disabled])) .radio{box-shadow:inset 0 0 0 2px var(--calcite-color-brand)}:host([focused]) .radio{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([disabled]) .radio{cursor:default;opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hovered][disabled]) .radio{box-shadow:inset 0 0 0 1px var(--calcite-color-border-input)}:host([scale=s]){--calcite-radio-size: var(--calcite-font-size--2)}:host([scale=m]){--calcite-radio-size: var(--calcite-font-size--1)}:host([scale=l]){--calcite-radio-size: var(--calcite-font-size-0)}.radio{block-size:var(--calcite-radio-size);max-inline-size:var(--calcite-radio-size);min-inline-size:var(--calcite-radio-size)}:host([scale=s][checked]) .radio,:host([hovered][scale=s][checked][disabled]) .radio{box-shadow:inset 0 0 0 4px var(--calcite-color-brand)}:host([scale=s][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 4px var(--calcite-color-brand),0 0 0 2px var(--calcite-color-foreground-1)}:host([scale=m][checked]) .radio,:host([hovered][scale=m][checked][disabled]) .radio{box-shadow:inset 0 0 0 5px var(--calcite-color-brand)}:host([scale=m][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 5px var(--calcite-color-brand),0 0 0 2px var(--calcite-color-foreground-1)}:host([scale=l][checked]) .radio,:host([hovered][scale=l][checked][disabled]) .radio{box-shadow:inset 0 0 0 6px var(--calcite-color-brand)}:host([scale=l][focused][checked]:not([disabled])) .radio{box-shadow:inset 0 0 0 6px var(--calcite-color-brand),0 0 0 2px var(--calcite-color-foreground-1)}@media (forced-colors: active){:host([checked]) .radio:after,:host([checked][disabled]) .radio:after{content:"";inline-size:var(--calcite-radio-size);block-size:var(--calcite-radio-size);background-color:windowText;display:block}}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}`;
18
+ class q extends m {
21
19
  // #endregion
22
20
  // #region Lifecycle
23
21
  constructor() {
@@ -27,7 +25,7 @@ class H extends m {
27
25
  this.properties = { checked: 7, disabled: 7, focused: 7, form: 3, hovered: 7, label: 1, name: 3, required: 7, scale: 3, value: 1 };
28
26
  }
29
27
  static {
30
- this.styles = O;
28
+ this.styles = E;
31
29
  }
32
30
  // #endregion
33
31
  // #region Public Methods
@@ -40,10 +38,9 @@ class H extends m {
40
38
  await A(this), this.disabled || v(this.containerEl);
41
39
  }
42
40
  connectedCallback() {
43
- this.rootNode = this.el.getRootNode(), this.name && this.checkLastRadioButton(), I(this), B(this), this.updateTabIndexOfOtherRadioButtonsInGroup(), super.connectedCallback();
41
+ this.rootNode = this.el.getRootNode(), this.name && this.checkLastRadioButton(), R(this), B(this), this.updateTabIndexOfOtherRadioButtonsInGroup(), super.connectedCallback();
44
42
  }
45
43
  load() {
46
- F(this);
47
44
  }
48
45
  willUpdate(e) {
49
46
  this.hasUpdated && e.has("checked") && this.checkedChanged(this.checked), e.has("disabled") && (this.hasUpdated || this.disabled !== !1) && this.updateTabIndexOfOtherRadioButtonsInGroup(), e.has("name") && this.checkLastRadioButton();
@@ -52,10 +49,10 @@ class H extends m {
52
49
  w(this);
53
50
  }
54
51
  loaded() {
55
- L(this), this.focused && !this.disabled && this.setFocus();
52
+ this.focused && !this.disabled && this.setFocus();
56
53
  }
57
54
  disconnectedCallback() {
58
- super.disconnectedCallback(), R(this), g(this), this.updateTabIndexOfOtherRadioButtonsInGroup();
55
+ super.disconnectedCallback(), C(this), g(this), this.updateTabIndexOfOtherRadioButtonsInGroup();
59
56
  }
60
57
  // #endregion
61
58
  // #region Private Methods
@@ -163,10 +160,10 @@ class H extends m {
163
160
  // #region Rendering
164
161
  render() {
165
162
  const e = this.getTabIndex();
166
- return C({ disabled: this.disabled, children: p`<div .ariaChecked=${this.checked} .ariaLabel=${z(this)} class=${k(q.container)} @blur=${this.onContainerBlur} @focus=${this.onContainerFocus} role=radio tabindex=${e ?? b} ${f(this.setContainerEl)}><div class="radio"></div></div>${y({ component: this })}` });
163
+ return I({ disabled: this.disabled, children: p`<div .ariaChecked=${this.checked} .ariaLabel=${z(this)} class=${k(L.container)} @blur=${this.onContainerBlur} @focus=${this.onContainerFocus} role=radio tabindex=${e ?? b} ${f(this.setContainerEl)}><div class="radio"></div></div>${y({ component: this })}` });
167
164
  }
168
165
  }
169
- u("calcite-radio-button", H);
166
+ u("calcite-radio-button", q);
170
167
  export {
171
- H as RadioButton
168
+ q as RadioButton
172
169
  };
@@ -18,7 +18,10 @@ export declare class RadioButtonGroup extends LitElement {
18
18
  * @required
19
19
  */
20
20
  name: string;
21
- /** When `true`, the component must have a value in order for the form to submit. */
21
+ /**
22
+ * When `true` and the component resides in a form,
23
+ * the component must have a value in order for the form to submit.
24
+ */
22
25
  required: boolean;
23
26
  /** Specifies the size of the component. */
24
27
  scale: Scale;
@@ -2,21 +2,19 @@ import { c as a } from "../../chunks/runtime.js";
2
2
  import { html as i } from "lit";
3
3
  import { LitElement as o, createEvent as l, stringOrBoolean as r, safeClassMap as n } from "@arcgis/lumina";
4
4
  import { c } from "../../chunks/observers.js";
5
- import { c as d, s as h, a as u } from "../../chunks/loadable.js";
6
- import { V as p } from "../../chunks/Validation.js";
5
+ import { c as d } from "../../chunks/loadable.js";
6
+ import { V as h } from "../../chunks/Validation.js";
7
7
  import { h as e } from "../../chunks/dom.js";
8
- import { css as m } from "@lit/reactive-element/css-tag.js";
9
- /*!
10
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
11
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
12
- * v3.0.0-next.99
13
- */
14
- const g = {
8
+ import { css as u } from "@lit/reactive-element/css-tag.js";
9
+ /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
10
+ See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
11
+ v3.0.0 */
12
+ const p = {
15
13
  itemWrapper: "item-wrapper"
16
14
  }, s = {
17
15
  validationMessage: "radioButtonGroupValidationMessage"
18
- }, f = m`:host{display:flex;flex-direction:column}:host>.item-wrapper{display:flex;max-inline-size:100vw}:host([layout=horizontal])>.item-wrapper{flex-direction:row;flex-wrap:wrap}:host([layout=horizontal][scale=s])>.item-wrapper{column-gap:1rem}:host([layout=horizontal][scale=m])>.item-wrapper{column-gap:1.25rem}:host([layout=horizontal][scale=l])>.item-wrapper{column-gap:1.5rem}:host([layout=vertical])>.item-wrapper{flex-direction:column;inline-size:fit-content}:host([scale=s]) calcite-input-message{--calcite-input-message-spacing-value: calc(var(--calcite-spacing-xxs) * -1)}:host([scale=m]) calcite-input-message{--calcite-input-message-spacing-value: calc(var(--calcite-spacing-sm) * -1)}:host([scale=l]) calcite-input-message{--calcite-input-message-spacing-value: calc(var(--calcite-spacing-md) * -1)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}:host([hidden]){display:none}[hidden]{display:none}`;
19
- class v extends o {
16
+ }, m = u`:host{display:flex;flex-direction:column}:host>.item-wrapper{display:flex;max-inline-size:100vw}:host([layout=horizontal])>.item-wrapper{flex-direction:row;flex-wrap:wrap}:host([layout=horizontal][scale=s])>.item-wrapper{column-gap:1rem}:host([layout=horizontal][scale=m])>.item-wrapper{column-gap:1.25rem}:host([layout=horizontal][scale=l])>.item-wrapper{column-gap:1.5rem}:host([layout=vertical])>.item-wrapper{flex-direction:column;inline-size:fit-content}:host([scale=s]) calcite-input-message{--calcite-input-message-spacing-value: calc(var(--calcite-spacing-xxs) * -1)}:host([scale=m]) calcite-input-message{--calcite-input-message-spacing-value: calc(var(--calcite-spacing-sm) * -1)}:host([scale=l]) calcite-input-message{--calcite-input-message-spacing-value: calc(var(--calcite-spacing-md) * -1)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}:host([hidden]){display:none}[hidden]{display:none}`;
17
+ class g extends o {
20
18
  // #endregion
21
19
  // #region Lifecycle
22
20
  constructor() {
@@ -26,7 +24,7 @@ class v extends o {
26
24
  this.properties = { radioButtons: 16, disabled: 7, layout: 3, name: 3, required: 7, scale: 3, selectedItem: 0, status: 3, validationIcon: [3, { converter: r }], validationMessage: 1 };
27
25
  }
28
26
  static {
29
- this.styles = f;
27
+ this.styles = m;
30
28
  }
31
29
  // #endregion
32
30
  // #region Public Methods
@@ -38,13 +36,12 @@ class v extends o {
38
36
  super.connectedCallback(), this.passPropsToRadioButtons(), this.mutationObserver?.observe(this.el, { childList: !0, subtree: !0 });
39
37
  }
40
38
  load() {
41
- h(this);
42
39
  }
43
40
  willUpdate(t) {
44
41
  (t.has("disabled") && (this.hasUpdated || this.disabled !== !1) || t.has("layout") && (this.hasUpdated || this.layout !== "horizontal") || t.has("scale") && (this.hasUpdated || this.scale !== "m")) && this.passPropsToRadioButtons();
45
42
  }
46
43
  loaded() {
47
- this.passPropsToRadioButtons(), u(this);
44
+ this.passPropsToRadioButtons();
48
45
  }
49
46
  disconnectedCallback() {
50
47
  super.disconnectedCallback(), this.mutationObserver?.disconnect();
@@ -65,10 +62,10 @@ class v extends o {
65
62
  // #endregion
66
63
  // #region Rendering
67
64
  render() {
68
- return this.el.role = "radiogroup", i`<div aria-errormessage=${s.validationMessage} .ariaInvalid=${this.status === "invalid"} class=${n(g.itemWrapper)}><slot></slot></div>${this.validationMessage && this.status === "invalid" ? p({ icon: this.validationIcon, id: s.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}`;
65
+ return this.el.role = "radiogroup", i`<div aria-errormessage=${s.validationMessage} .ariaInvalid=${this.status === "invalid"} class=${n(p.itemWrapper)}><slot></slot></div>${this.validationMessage && this.status === "invalid" ? h({ icon: this.validationIcon, id: s.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}`;
69
66
  }
70
67
  }
71
- a("calcite-radio-button-group", v);
68
+ a("calcite-radio-button-group", g);
72
69
  export {
73
- v as RadioButtonGroup
70
+ g as RadioButtonGroup
74
71
  };
@@ -4,26 +4,24 @@ import { html as s } from "lit-html";
4
4
  import { safeClassMap as g, LitElement as y, createEvent as $, stringOrBoolean as k, nothing as r, safeStyleMap as w } from "@arcgis/lumina";
5
5
  import { c as x, d as V, H as L } from "../../chunks/form.js";
6
6
  import { g as I } from "../../chunks/guid.js";
7
- import { u as C, I as F } from "../../chunks/interactive.js";
7
+ import { u as F, I as C } from "../../chunks/interactive.js";
8
8
  import { c as M, d as E } from "../../chunks/label.js";
9
- import { c as O, s as R, a as z } from "../../chunks/loadable.js";
10
- import { h as D } from "../../chunks/dom.js";
11
- import { V as K } from "../../chunks/Validation.js";
12
- import { u as P } from "../../chunks/useT9n.js";
13
- import { css as S } from "@lit/reactive-element/css-tag.js";
14
- /*!
15
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
16
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
17
- * v3.0.0-next.99
18
- */
9
+ import { c as O } from "../../chunks/loadable.js";
10
+ import { h as R } from "../../chunks/dom.js";
11
+ import { V as z } from "../../chunks/Validation.js";
12
+ import { u as D } from "../../chunks/useT9n.js";
13
+ import { css as K } from "@lit/reactive-element/css-tag.js";
14
+ /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
15
+ See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
16
+ v3.0.0 */
19
17
  const p = ({ full: u, scale: e, partial: t }) => s`<calcite-icon class=${g(t ? void 0 : "icon")} .icon=${u ? "star-f" : "star"} .scale=${e}></calcite-icon>`, v = {
20
18
  validationMessage: "validationMessage"
21
- }, q = S`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([read-only]) *,:host([disabled]) *,:host([read-only]) ::slotted(*),:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:flex;align-items:center;inline-size:fit-content}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]){block-size:1.5rem;--calcite-internal-rating-spacing: .25rem}:host([scale=m]){block-size:2rem;--calcite-internal-rating-spacing: .5rem}:host([scale=l]){block-size:2.75rem;--calcite-internal-rating-spacing: .75rem}.fieldset{margin:0;display:flex;border-width:0;padding:0;align-items:center;gap:var(--calcite-rating-spacing, var(--calcite-internal-rating-spacing))}.wrapper{display:inline-block}.star{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;position:relative;display:flex;flex-direction:column;cursor:pointer;color:var(--calcite-rating-color, var(--calcite-color-border-input))}.star: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))))}.average,.fraction{color:var(--calcite-rating-average-color, var(--calcite-color-status-warning))}.hovered,.selected{color:var(--calcite-rating-color-hover, var(--calcite-color-brand))}.fraction{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;position:absolute;pointer-events:none;inset-block-start:0;overflow:hidden;inset-inline-start:0}calcite-chip{pointer-events:none;cursor:default}.number--average{font-weight:700;color:var(--calcite-rating-average-text-color)}.number--count{color:var(--calcite-rating-count-text-color, var(--calcite-color-text-2));font-style:italic}.number--count:not(:first-child){margin-inline-start:var(--calcite-rating-spacing, var(--calcite-internal-rating-spacing))}.visually-hidden{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}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}`;
22
- class N extends y {
19
+ }, P = K`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([read-only]) *,:host([disabled]) *,:host([read-only]) ::slotted(*),:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:flex;align-items:center;inline-size:fit-content}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]){block-size:1.5rem;--calcite-internal-rating-spacing: .25rem}:host([scale=m]){block-size:2rem;--calcite-internal-rating-spacing: .5rem}:host([scale=l]){block-size:2.75rem;--calcite-internal-rating-spacing: .75rem}.fieldset{margin:0;display:flex;border-width:0;padding:0;align-items:center;gap:var(--calcite-rating-spacing, var(--calcite-internal-rating-spacing))}.wrapper{display:inline-block}.star{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;position:relative;display:flex;flex-direction:column;cursor:pointer;color:var(--calcite-rating-color, var(--calcite-color-border-input))}.star: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))))}.average,.fraction{color:var(--calcite-rating-average-color, var(--calcite-color-status-warning))}.hovered,.selected{color:var(--calcite-rating-color-hover, var(--calcite-color-brand))}.fraction{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;position:absolute;pointer-events:none;inset-block-start:0;overflow:hidden;inset-inline-start:0}calcite-chip{pointer-events:none;cursor:default}.number--average{font-weight:700;color:var(--calcite-rating-average-text-color)}.number--count{color:var(--calcite-rating-count-text-color, var(--calcite-color-text-2));font-style:italic}.number--count:not(:first-child){margin-inline-start:var(--calcite-rating-spacing, var(--calcite-internal-rating-spacing))}.visually-hidden{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}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}`;
20
+ class S extends y {
23
21
  // #endregion
24
22
  // #region Lifecycle
25
23
  constructor() {
26
- super(), this.emit = !1, this.guid = `calcite-ratings-${I()}`, this.isKeyboardInteraction = !0, this.labelElements = [], this.max = 5, this._value = 0, this.disabled = !1, this.messages = P({ blocking: !0 }), this.readOnly = !1, this.required = !1, this.scale = "m", this.showChip = !1, this.status = "idle", this.validity = {
24
+ super(), this.emit = !1, this.guid = `calcite-ratings-${I()}`, this.isKeyboardInteraction = !0, this.labelElements = [], this.max = 5, this._value = 0, this.disabled = !1, this.messages = D({ blocking: !0 }), this.readOnly = !1, this.required = !1, this.scale = "m", this.showChip = !1, this.status = "idle", this.validity = {
27
25
  valid: !1,
28
26
  badInput: !1,
29
27
  customError: !1,
@@ -41,7 +39,7 @@ class N extends y {
41
39
  this.properties = { hoverValue: 16, average: 11, count: 11, disabled: 7, form: 3, messageOverrides: 0, name: 3, readOnly: 7, required: 7, scale: 3, showChip: 7, status: 3, validationIcon: [3, { converter: k }], validationMessage: 1, validity: 0, value: 11 };
42
40
  }
43
41
  static {
44
- this.styles = q;
42
+ this.styles = P;
45
43
  }
46
44
  /** The component's value. */
47
45
  get value() {
@@ -55,13 +53,13 @@ class N extends y {
55
53
  // #region Public Methods
56
54
  /** Sets focus on the component. */
57
55
  async setFocus() {
58
- await O(this), D(this.el);
56
+ await O(this), R(this.el);
59
57
  }
60
58
  connectedCallback() {
61
59
  super.connectedCallback(), M(this), x(this);
62
60
  }
63
61
  async load() {
64
- R(this), this.requestUpdate("value");
62
+ this.requestUpdate("value");
65
63
  }
66
64
  willUpdate() {
67
65
  this.starsMap = Array.from({ length: this.max }, (e, t) => {
@@ -80,10 +78,10 @@ class N extends y {
80
78
  });
81
79
  }
82
80
  updated() {
83
- C(this);
81
+ F(this);
84
82
  }
85
83
  loaded() {
86
- this.labelElements = Array.from(this.renderRoot.querySelectorAll("label")), z(this);
84
+ this.labelElements = Array.from(this.renderRoot.querySelectorAll("label"));
87
85
  }
88
86
  disconnectedCallback() {
89
87
  super.disconnectedCallback(), E(this), V(this);
@@ -166,16 +164,16 @@ class N extends y {
166
164
  // #region Rendering
167
165
  render() {
168
166
  const e = this.count?.toString();
169
- return F({ disabled: this.disabled, children: s`<span class="wrapper"><fieldset class="fieldset" .disabled=${this.disabled}><legend class="visually-hidden">${this.messages.rating}</legend>${this.starsMap.map(({ average: t, checked: a, fraction: i, hovered: d, id: n, partial: l, selected: c, value: o, tabIndex: h }) => s`<label class=${g({
167
+ return C({ disabled: this.disabled, children: s`<span class="wrapper"><fieldset class="fieldset" .disabled=${this.disabled}><legend class="visually-hidden">${this.messages.rating}</legend>${this.starsMap.map(({ average: t, checked: a, fraction: i, hovered: d, id: n, partial: l, selected: c, value: o, tabIndex: h }) => s`<label class=${g({
170
168
  star: !0,
171
169
  selected: c,
172
170
  hovered: d,
173
171
  average: t,
174
172
  partial: l
175
- })} data-value=${o ?? r} for=${n ?? r} @click=${this.handleLabelClick} @focus=${this.handleLabelFocus} @keydown=${this.handleLabelKeyDown} @pointerdown=${this.handleLabelPointerDown} @pointerover=${this.handleLabelPointerOver} tabindex=${h ?? r}><input aria-errormessage=${v.validationMessage} .ariaInvalid=${this.status === "invalid"} .checked=${a} class="visually-hidden" .disabled=${this.disabled || this.readOnly} id=${n ?? r} name=${this.guid ?? r} @change=${this.handleInputChange} tabindex=-1 type=radio .value=${f(o ?? "")}>${p({ full: c || t, scale: this.scale })}${l && s`<div class="fraction" style=${w({ width: `${i * 100}%` })}>${p({ full: !0, partial: !0, scale: this.scale })}</div>` || ""}<span class="visually-hidden">${this.messages.stars.replace("{num}", `${o}`)}</span></label>`)}${(this.count || this.average) && this.showChip ? s`<calcite-chip .label=${e} .scale=${this.scale} .value=${e}>${!!this.average && s`<span class="number--average">${this.average.toString()}</span>` || ""}${!!this.count && s`<span class="number--count">(${e})</span>` || ""}</calcite-chip>` : null}</fieldset>${L({ component: this })}${this.validationMessage && this.status === "invalid" ? K({ icon: this.validationIcon, id: v.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}</span>` });
173
+ })} data-value=${o ?? r} for=${n ?? r} @click=${this.handleLabelClick} @focus=${this.handleLabelFocus} @keydown=${this.handleLabelKeyDown} @pointerdown=${this.handleLabelPointerDown} @pointerover=${this.handleLabelPointerOver} tabindex=${h ?? r}><input aria-errormessage=${v.validationMessage} .ariaInvalid=${this.status === "invalid"} .checked=${a} class="visually-hidden" .disabled=${this.disabled || this.readOnly} id=${n ?? r} name=${this.guid ?? r} @change=${this.handleInputChange} tabindex=-1 type=radio .value=${f(o ?? "")}>${p({ full: c || t, scale: this.scale })}${l && s`<div class="fraction" style=${w({ width: `${i * 100}%` })}>${p({ full: !0, partial: !0, scale: this.scale })}</div>` || ""}<span class="visually-hidden">${this.messages.stars.replace("{num}", `${o}`)}</span></label>`)}${(this.count || this.average) && this.showChip ? s`<calcite-chip .label=${e} .scale=${this.scale} .value=${e}>${!!this.average && s`<span class="number--average">${this.average.toString()}</span>` || ""}${!!this.count && s`<span class="number--count">(${e})</span>` || ""}</calcite-chip>` : null}</fieldset>${L({ component: this })}${this.validationMessage && this.status === "invalid" ? z({ icon: this.validationIcon, id: v.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}</span>` });
176
174
  }
177
175
  }
178
- b("calcite-rating", N);
176
+ b("calcite-rating", S);
179
177
  export {
180
- N as Rating
178
+ S as Rating
181
179
  };