@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,28 +1,26 @@
1
- import { c as S } from "../../chunks/runtime.js";
1
+ import { c as E } from "../../chunks/runtime.js";
2
2
  import { keyed as r } from "lit-html/directives/keyed.js";
3
- import { html as n, nothing as f } from "lit";
4
- import { LitElement as w, createEvent as s, safeClassMap as a } from "@arcgis/lumina";
5
- import { h as E, a as d } from "../../chunks/dom.js";
6
- import { u as I, I as H } from "../../chunks/interactive.js";
7
- import { H as B } from "../../chunks/Heading.js";
8
- import { c as z, s as A, a as P } from "../../chunks/loadable.js";
9
- import { o as b } from "../../chunks/openCloseComponent.js";
10
- import { e as T } from "../../chunks/floating-ui.js";
11
- import { u as O } from "../../chunks/useT9n.js";
12
- import { l as L } from "../../chunks/logger.js";
13
- import { css as M } 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
- */
3
+ import { ref as O } from "lit-html/directives/ref.js";
4
+ import { html as n, nothing as u } from "lit";
5
+ import { LitElement as w, createEvent as l, safeClassMap as a } from "@arcgis/lumina";
6
+ import { h as I, a as d } from "../../chunks/dom.js";
7
+ import { u as P, I as z } from "../../chunks/interactive.js";
8
+ import { H as A } from "../../chunks/Heading.js";
9
+ import { c as T } from "../../chunks/loadable.js";
10
+ import { o as M } from "../../chunks/openCloseComponent.js";
11
+ import { e as F } from "../../chunks/floating-ui.js";
12
+ import { u as L } from "../../chunks/useT9n.js";
13
+ import { l as D } from "../../chunks/logger.js";
14
+ import { css as R } from "@lit/reactive-element/css-tag.js";
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 */
19
18
  const c = {
20
19
  content: "content",
21
20
  toggle: "toggle",
22
21
  header: "header"
23
22
  }, t = {
24
23
  actionsEnd: "actions-end",
25
- button: "button",
26
24
  container: "container",
27
25
  content: "content",
28
26
  contentStart: "content-start",
@@ -38,7 +36,6 @@ const c = {
38
36
  iconEndContainer: "icon-end-container",
39
37
  invalid: "invalid",
40
38
  statusIcon: "status-icon",
41
- summary: "summary",
42
39
  title: "title",
43
40
  toggle: "toggle",
44
41
  toggleIcon: "toggle-icon",
@@ -49,27 +46,27 @@ const c = {
49
46
  control: "control",
50
47
  headerMenuActions: "header-menu-actions",
51
48
  icon: "icon"
52
- }, u = {
49
+ }, f = {
53
50
  opened: "chevron-up",
54
51
  closed: "chevron-down",
55
52
  valid: "check-circle",
56
53
  invalid: "exclamation-mark-triangle"
57
- }, F = M`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{--calcite-icon-size: 1rem;--calcite-spacing-eighth: .125rem;--calcite-spacing-quarter: .25rem;--calcite-spacing-half: .5rem;--calcite-spacing-three-quarters: .75rem;--calcite-spacing: 1rem;--calcite-spacing-plus-quarter: 1.25rem;--calcite-spacing-plus-half: 1.5rem;--calcite-spacing-double: 2rem;--calcite-menu-min-width: 10rem;--calcite-header-min-height: 3rem;--calcite-footer-min-height: 3rem}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;flex-shrink:0;flex-grow:0;flex-direction:column;border-width:0px;border-block-end-width:1px;border-style:solid;padding:0;transition-property:margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-timing-function:cubic-bezier(.215,.44,.42,.88);flex-basis:auto;transition-duration:var(--calcite-animation-timing);border-color:var(--calcite-block-border-color, var(--calcite-color-border-3))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.header{margin:0;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-color-text-2);color:var(--calcite-color-text-2)}.heading{margin:0;padding:0;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:.5rem}.header{justify-content:flex-start}.header--has-text{padding:var(--calcite-spacing-md)}.header,.toggle{grid-area:header}.header-container{display:grid;align-items:stretch;grid-template:auto/auto 1fr auto auto;grid-template-areas:"handle header control menu actions-end";grid-column:header-start/actions-end;grid-row:1/2}.content-start,.icon,.icon--start,.icon--end{margin-inline-end:var(--calcite-spacing-md)}.icon calcite-loader{margin-inline-end:var(--calcite-spacing-xxxs)}.icon--start,.icon--end{color:var(--calcite-block-text-color, var(--calcite-color-text-3))}.actions-end{grid-area:actions-end}.toggle{margin:0;display:flex;cursor:pointer;flex-wrap:nowrap;align-items:center;justify-content:space-between;border-style:none;padding:0;font-family:var(--calcite-font-family);outline-color:transparent;text-align:initial;background-color:var(--calcite-block-header-background-color, transparent)}.toggle:hover{background-color:var(--calcite-block-header-background-color-hover, var(--calcite-color-foreground-2))}.toggle: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))))}calcite-loader[inline]{grid-area:control;align-self:center}calcite-handle{grid-area:handle}.title{margin:0}.header .title .heading{padding:0;font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;transition-property:color;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);word-wrap:break-word;word-break:break-word;color:var(--calcite-block-header-text-color, var(--calcite-color-text-2))}.description{margin-block-start:.125rem;padding:0;font-size:var(--calcite-font-size--2);line-height:1.375;word-wrap:break-word;word-break:break-word;color:var(--calcite-block-text-color, var(--calcite-color-text-3))}.icon{display:flex}.status-icon.valid{color:var(--calcite-color-status-success)}.status-icon.invalid{color:var(--calcite-color-status-danger)}@keyframes spin{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(360deg)}}.icon-end-container{display:flex;align-items:center;margin-inline-start:auto}.toggle-icon{align-self:center;justify-self:end;transition-property:color;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);margin-inline-end:var(--calcite-spacing-md);color:var(--calcite-block-text-color, var(--calcite-color-text-3))}.toggle:hover .toggle-icon{color:var(--calcite-block-text-color-hover, var(--calcite-color-text-1))}.container{position:relative;display:flex;block-size:100%;flex-direction:column}.content{position:relative;min-block-size:0px;flex:1 1 0%}@keyframes in{0%{opacity:0}to{opacity:1}}.content{animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;padding-block:var(--calcite-block-padding, var(--calcite-spacing-sm));padding-inline:var(--calcite-block-padding, var(--calcite-spacing-md))}.content-start{display:flex;align-items:center;color:var(--calcite-block-text-color, var(--calcite-color-text-3))}.control-container{margin:0;display:flex;grid-area:control}calcite-action-menu{grid-area:menu}.actions-end{display:flex;align-items:stretch}:host([open]){margin-block:.5rem}:host([open]) .header .title .heading{color:var(--calcite-block-text-color-hover, var(--calcite-color-text-1))}:host([hidden]){display:none}[hidden]{display:none}`;
58
- class R extends w {
54
+ }, j = R`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{--calcite-icon-size: 1rem;--calcite-spacing-eighth: .125rem;--calcite-spacing-quarter: .25rem;--calcite-spacing-half: .5rem;--calcite-spacing-three-quarters: .75rem;--calcite-spacing: 1rem;--calcite-spacing-plus-quarter: 1.25rem;--calcite-spacing-plus-half: 1.5rem;--calcite-spacing-double: 2rem;--calcite-menu-min-width: 10rem;--calcite-header-min-height: 3rem;--calcite-footer-min-height: 3rem}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;flex-shrink:0;flex-grow:0;flex-direction:column;border-width:0px;border-block-end-width:1px;border-style:solid;padding:0;transition-property:margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-timing-function:cubic-bezier(.215,.44,.42,.88);flex-basis:auto;transition-duration:var(--calcite-animation-timing);border-color:var(--calcite-block-border-color, var(--calcite-color-border-3))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.header{margin:0;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-color-text-2);color:var(--calcite-color-text-2)}.heading{margin:0;padding:0;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:.5rem}.header{justify-content:flex-start}.header--has-text{padding:var(--calcite-spacing-md)}.header,.toggle{grid-area:header}.header-container{display:grid;align-items:stretch;grid-template:auto/auto 1fr auto auto;grid-template-areas:"handle header control menu actions-end";grid-column:header-start/actions-end;grid-row:1/2}.content-start,.icon,.icon--start,.icon--end{margin-inline-end:var(--calcite-spacing-md)}.icon calcite-loader{margin-inline-end:var(--calcite-spacing-xxxs)}.icon--start,.icon--end{color:var(--calcite-block-text-color, var(--calcite-color-text-3))}.actions-end{grid-area:actions-end}.toggle{margin:0;display:flex;cursor:pointer;flex-wrap:nowrap;align-items:center;justify-content:space-between;border-style:none;padding:0;font-family:var(--calcite-font-family);outline-color:transparent;text-align:initial;background-color:var(--calcite-block-header-background-color, transparent)}.toggle:hover{background-color:var(--calcite-block-header-background-color-hover, var(--calcite-color-foreground-2))}.toggle: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))))}calcite-loader[inline]{grid-area:control;align-self:center}calcite-handle{grid-area:handle}.title{margin:0}.header .title .heading{padding:0;font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;transition-property:color;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);word-wrap:break-word;word-break:break-word;color:var(--calcite-block-heading-text-color, var(--calcite-color-text-2))}.description{margin-block-start:.125rem;padding:0;font-size:var(--calcite-font-size--2);line-height:1.375;word-wrap:break-word;word-break:break-word;color:var(--calcite-block-text-color, var(--calcite-color-text-3))}.icon{display:flex}.status-icon.valid{color:var(--calcite-color-status-success)}.status-icon.invalid{color:var(--calcite-color-status-danger)}@keyframes spin{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(360deg)}}.icon-end-container{display:flex;align-items:center;margin-inline-start:auto}.toggle-icon{align-self:center;justify-self:end;transition-property:color;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);margin-inline-end:var(--calcite-spacing-md);color:var(--calcite-block-text-color, var(--calcite-color-text-3))}.toggle:hover .toggle-icon{color:var(--calcite-block-heading-text-color-press, var(--calcite-color-text-1))}.container{position:relative;display:flex;block-size:100%;flex-direction:column}.content{position:relative;min-block-size:0px;flex:1 1 0%}@keyframes in{0%{opacity:0}to{opacity:1}}.content{animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;padding-block:var(--calcite-block-padding, var(--calcite-spacing-sm));padding-inline:var(--calcite-block-padding, var(--calcite-spacing-md))}.content-start{display:flex;align-items:center;color:var(--calcite-block-text-color, var(--calcite-color-text-3))}.control-container{margin:0;display:flex;grid-area:control}calcite-action-menu{grid-area:menu}.actions-end{display:flex;align-items:stretch}:host([open]){margin-block:.5rem}:host([open]) .header .title .heading{color:var(--calcite-block-heading-text-color-press, var(--calcite-color-text-1))}:host([hidden]){display:none}[hidden]{display:none}`;
55
+ class q extends w {
59
56
  constructor() {
60
- super(...arguments), this.openTransitionProp = "margin-top", this.hasContentStart = !1, this.hasControl = !1, this.hasEndActions = !1, this.hasIcon = !1, this.hasMenuActions = !1, this.collapsible = !1, this.disabled = !1, this.dragHandle = !1, this.loading = !1, this.menuPlacement = T, this.messages = O(), this.open = !1, this.overlayPositioning = "absolute", this.calciteBlockBeforeClose = s({ cancelable: !1 }), this.calciteBlockBeforeOpen = s({ cancelable: !1 }), this.calciteBlockClose = s({ cancelable: !1 }), this.calciteBlockOpen = s({ cancelable: !1 }), this.calciteBlockToggle = s({ cancelable: !1 });
57
+ super(...arguments), this.transitionProp = "margin-top", this.hasContentStart = !1, this.hasControl = !1, this.hasEndActions = !1, this.hasIcon = !1, this.hasMenuActions = !1, this.collapsible = !1, this.disabled = !1, this.dragDisabled = !1, this.dragHandle = !1, this.loading = !1, this.menuPlacement = F, this.messages = L(), this.moveToItems = [], this.open = !1, this.overlayPositioning = "absolute", this.setPosition = null, this.setSize = null, this.sortHandleOpen = !1, this.calciteBlockBeforeClose = l({ cancelable: !1 }), this.calciteBlockBeforeOpen = l({ cancelable: !1 }), this.calciteBlockClose = l({ cancelable: !1 }), this.calciteBlockOpen = l({ cancelable: !1 }), this.calciteBlockSortHandleBeforeClose = l({ cancelable: !1 }), this.calciteBlockSortHandleBeforeOpen = l({ cancelable: !1 }), this.calciteBlockSortHandleClose = l({ cancelable: !1 }), this.calciteBlockSortHandleOpen = l({ cancelable: !1 }), this.calciteBlockToggle = l({ cancelable: !1 });
61
58
  }
62
59
  static {
63
- this.properties = { hasContentStart: 16, hasControl: 16, hasEndActions: 16, hasIcon: 16, hasMenuActions: 16, collapsible: 7, description: 1, disabled: 7, dragHandle: 7, heading: 1, headingLevel: 11, iconEnd: 3, iconFlipRtl: 3, iconStart: 3, loading: 7, label: 1, menuFlipPlacements: 0, menuPlacement: 3, messageOverrides: 0, open: 7, overlayPositioning: 3, status: 3 };
60
+ this.properties = { hasContentStart: 16, hasControl: 16, hasEndActions: 16, hasIcon: 16, hasMenuActions: 16, collapsible: 7, description: 1, disabled: 7, dragDisabled: 7, dragHandle: 7, heading: 1, headingLevel: 11, iconEnd: 3, iconFlipRtl: 3, iconStart: 3, loading: 7, label: 1, menuFlipPlacements: 0, menuPlacement: 3, messageOverrides: 0, moveToItems: 0, open: 7, overlayPositioning: 3, setPosition: 9, setSize: 9, sortHandleOpen: 7, status: 3 };
64
61
  }
65
62
  static {
66
- this.styles = F;
63
+ this.styles = j;
67
64
  }
68
65
  // #endregion
69
66
  // #region Public Methods
70
67
  /** Sets focus on the component's first tabbable element. */
71
68
  async setFocus() {
72
- await z(this), E(this.el);
69
+ await T(this), I(this.el);
73
70
  }
74
71
  // #endregion
75
72
  // #region Lifecycle
@@ -77,16 +74,15 @@ class R extends w {
77
74
  super.connectedCallback(), this.transitionEl = this.el;
78
75
  }
79
76
  load() {
80
- A(this), this.open && b(this), !this.heading && !this.label && L.warn(`${this.el.tagName} is missing both heading & label. Please provide a heading or label for the component to be accessible.`);
77
+ !this.heading && !this.label && D.warn(`${this.el.tagName} is missing both heading & label. Please provide a heading or label for the component to be accessible.`);
81
78
  }
82
79
  willUpdate(e) {
83
- e.has("open") && (this.hasUpdated || this.open !== !1) && b(this);
80
+ e.has("open") && (this.hasUpdated || this.open !== !1) && M(this), e.has("sortHandleOpen") && (this.hasUpdated || this.sortHandleOpen !== !1) && this.sortHandleOpenHandler();
84
81
  }
85
82
  updated() {
86
- I(this);
83
+ P(this);
87
84
  }
88
85
  loaded() {
89
- P(this);
90
86
  }
91
87
  // #endregion
92
88
  // #region Private Methods
@@ -102,6 +98,24 @@ class R extends w {
102
98
  onClose() {
103
99
  this.calciteBlockClose.emit();
104
100
  }
101
+ sortHandleOpenHandler() {
102
+ this.sortHandleEl && (this.sortHandleEl.open = this.sortHandleOpen);
103
+ }
104
+ setSortHandleEl(e) {
105
+ this.sortHandleEl = e, this.sortHandleOpenHandler();
106
+ }
107
+ handleSortHandleBeforeOpen(e) {
108
+ e.stopPropagation(), this.calciteBlockSortHandleBeforeOpen.emit();
109
+ }
110
+ handleSortHandleBeforeClose(e) {
111
+ e.stopPropagation(), this.calciteBlockSortHandleBeforeClose.emit();
112
+ }
113
+ handleSortHandleClose(e) {
114
+ e.stopPropagation(), this.sortHandleOpen = !1, this.calciteBlockSortHandleClose.emit();
115
+ }
116
+ handleSortHandleOpen(e) {
117
+ e.stopPropagation(), this.sortHandleOpen = !0, this.calciteBlockSortHandleOpen.emit();
118
+ }
105
119
  onHeaderClick() {
106
120
  this.open = !this.open, this.calciteBlockToggle.emit();
107
121
  }
@@ -132,7 +146,7 @@ class R extends w {
132
146
  [t.statusIcon]: !0,
133
147
  [t.valid]: i == "valid",
134
148
  [t.invalid]: i == "invalid"
135
- })} .icon=${u[i]} scale=s></calcite-icon></div>`) : r("icon-slot", n`<div class=${a(t.icon)} .hidden=${!this.hasIcon}>${r("icon-slot", n`<slot name=${h.icon} @slotchange=${this.iconSlotChangeHandler}></slot>`)}</div>`);
149
+ })} .icon=${f[i]} scale=s></calcite-icon></div>`) : r("icon-slot", n`<div class=${a(t.icon)} .hidden=${!this.hasIcon}>${r("icon-slot", n`<slot name=${h.icon} @slotchange=${this.iconSlotChangeHandler}></slot>`)}</div>`);
136
150
  }
137
151
  renderActionsEnd() {
138
152
  return n`<div class=${a(t.actionsEnd)} .hidden=${!this.hasEndActions}><slot name=${h.actionsEnd} @slotchange=${this.actionsEndSlotChangeHandler}></slot></div>`;
@@ -142,21 +156,21 @@ class R extends w {
142
156
  }
143
157
  renderTitle() {
144
158
  const { heading: e, headingLevel: o, description: i } = this;
145
- return e || i ? n`<div class=${a(t.title)}>${B({ class: t.heading, level: o, children: e })}${i ? n`<div class=${a(t.description)}>${i}</div>` : null}</div>` : null;
159
+ return e || i ? n`<div class=${a(t.title)}>${A({ class: t.heading, level: o, children: e })}${i ? n`<div class=${a(t.description)}>${i}</div>` : null}</div>` : null;
146
160
  }
147
161
  renderIcon(e) {
148
- const { iconFlipRtl: o } = this, i = o === "both" || e === "start" ? o === "start" : o === "end", l = e === "start" ? this.iconStart : this.iconEnd, g = e === "start" ? t.iconStart : t.iconEnd;
149
- if (l)
150
- return r(l, n`<calcite-icon class=${a(g)} .flipRtl=${i} .icon=${l} scale=s></calcite-icon>`);
162
+ const { iconFlipRtl: o } = this, i = o === "both" || e === "start" ? o === "start" : o === "end", s = e === "start" ? this.iconStart : this.iconEnd, g = e === "start" ? t.iconStart : t.iconEnd;
163
+ if (s)
164
+ return r(s, n`<calcite-icon class=${a(g)} .flipRtl=${i} .icon=${s} scale=s></calcite-icon>`);
151
165
  }
152
166
  render() {
153
- const { collapsible: e, loading: o, open: i, label: l, heading: g, messages: m, description: v, menuFlipPlacements: $, menuPlacement: x } = this, k = i ? m.collapse : m.expand, p = n`<header class=${a({ [t.header]: !0, [t.headerHasText]: !!(g || v) })} id=${c.header}>${this.renderIcon("start")}${this.renderContentStart()}${this.renderLoaderStatusIcon()}${this.renderTitle()}</header>`, C = i ? u.opened : u.closed, y = n`<div class=${a(t.headerContainer)}>${this.dragHandle ? n`<calcite-handle .label=${g || l}></calcite-handle>` : null}${e ? n`<button aria-controls=${c.content} aria-describedby=${c.header} .ariaExpanded=${e ? i : null} class=${a(t.toggle)} id=${c.toggle} @click=${this.onHeaderClick} title=${k ?? f}>${p}<div class=${a(t.iconEndContainer)}>${this.renderIcon("end")}<calcite-icon class=${a(t.toggleIcon)} .icon=${C} scale=s></calcite-icon></div></button>` : this.iconEnd ? n`<div>${p}<div class=${a(t.iconEndContainer)}>${this.renderIcon("end")}</div></div>` : p}<div aria-labelledby=${c.header} class=${a(t.controlContainer)} .hidden=${!this.hasControl}><slot name=${h.control} @slotchange=${this.controlSlotChangeHandler}></slot></div><calcite-action-menu .flipPlacements=${$ ?? ["top", "bottom"]} .hidden=${!this.hasMenuActions} .label=${m.options} .overlayPositioning=${this.overlayPositioning} .placement=${x}><slot name=${h.headerMenuActions} @slotchange=${this.menuActionsSlotChangeHandler}></slot></calcite-action-menu>${this.renderActionsEnd()}</div>`;
154
- return H({ disabled: this.disabled, children: n`<article aria-label=${l ?? f} .ariaBusy=${o} class=${a({
167
+ const { collapsible: e, loading: o, open: i, label: s, heading: g, messages: p, description: b, menuFlipPlacements: v, menuPlacement: $, moveToItems: S, setPosition: k, setSize: x, dragDisabled: C } = this, H = i ? p.collapse : p.expand, m = n`<header class=${a({ [t.header]: !0, [t.headerHasText]: !!(g || b) })} id=${c.header}>${this.renderIcon("start")}${this.renderContentStart()}${this.renderLoaderStatusIcon()}${this.renderTitle()}</header>`, y = i ? f.opened : f.closed, B = n`<div class=${a(t.headerContainer)}>${this.dragHandle ? n`<calcite-sort-handle .disabled=${C} .label=${g || s} .moveToItems=${S} @calciteSortHandleBeforeClose=${this.handleSortHandleBeforeClose} @calciteSortHandleBeforeOpen=${this.handleSortHandleBeforeOpen} @calciteSortHandleClose=${this.handleSortHandleClose} @calciteSortHandleOpen=${this.handleSortHandleOpen} overlay-positioning=fixed .setPosition=${k} .setSize=${x} ${O(this.setSortHandleEl)}></calcite-sort-handle>` : null}${e ? n`<button aria-controls=${c.content} aria-describedby=${c.header} .ariaExpanded=${e ? i : null} class=${a(t.toggle)} id=${c.toggle} @click=${this.onHeaderClick} title=${H ?? u}>${m}<div class=${a(t.iconEndContainer)}>${this.renderIcon("end")}<calcite-icon class=${a(t.toggleIcon)} .icon=${y} scale=s></calcite-icon></div></button>` : this.iconEnd ? n`<div>${m}<div class=${a(t.iconEndContainer)}>${this.renderIcon("end")}</div></div>` : m}<div aria-labelledby=${c.header} class=${a(t.controlContainer)} .hidden=${!this.hasControl}><slot name=${h.control} @slotchange=${this.controlSlotChangeHandler}></slot></div><calcite-action-menu .flipPlacements=${v ?? ["top", "bottom"]} .hidden=${!this.hasMenuActions} .label=${p.options} .overlayPositioning=${this.overlayPositioning} .placement=${$}><slot name=${h.headerMenuActions} @slotchange=${this.menuActionsSlotChangeHandler}></slot></calcite-action-menu>${this.renderActionsEnd()}</div>`;
168
+ return z({ disabled: this.disabled, children: n`<article aria-label=${s ?? u} .ariaBusy=${o} class=${a({
155
169
  [t.container]: !0
156
- })}>${y}<section aria-labelledby=${c.toggle} class=${a(t.content)} .hidden=${!i} id=${c.content}>${this.renderScrim()}</section></article>` });
170
+ })}>${B}<section aria-labelledby=${c.toggle} class=${a(t.content)} .hidden=${!i} id=${c.content}>${this.renderScrim()}</section></article>` });
157
171
  }
158
172
  }
159
- S("calcite-block", R);
173
+ E("calcite-block", q);
160
174
  export {
161
- R as Block
175
+ q as Block
162
176
  };
@@ -1,6 +1,6 @@
1
1
  import "../calcite-scrim/index.js";
2
2
  import "../calcite-loader/index.js";
3
3
  import "../calcite-icon/index.js";
4
- import "../calcite-handle/index.js";
4
+ import "../calcite-sort-handle/index.js";
5
5
  import "../calcite-action-menu/index.js";
6
6
  export * from "./customElement.js";
@@ -1,6 +1,6 @@
1
1
  import "../calcite-scrim/index.js";
2
2
  import "../calcite-loader/index.js";
3
3
  import "../calcite-icon/index.js";
4
- import "../calcite-handle/index.js";
4
+ import "../calcite-sort-handle/index.js";
5
5
  import "../calcite-action-menu/index.js";
6
6
  export * from "./customElement.js";
@@ -0,0 +1,2 @@
1
+ import { Block } from './customElement.js';
2
+ export declare function isBlock(element: Element): element is HTMLCalciteBlockElement;
@@ -0,0 +1,50 @@
1
+ /// <reference types="../../index.d.ts" />
2
+ import { default as Sortable } from 'sortablejs';
3
+ import { PropertyValues } from 'lit';
4
+ import { PublicLitElement as LitElement, JsxNode, TargetedEvent } from '@arcgis/lumina';
5
+ import { InteractiveComponent } from '../../utils/interactive';
6
+ import { SortableComponent } from '../../utils/sortableComponent';
7
+ import { MoveTo } from '../calcite-sort-handle/interfaces';
8
+ import { BlockDragDetail } from './interfaces';
9
+
10
+ /**
11
+ * @slot - A slot for adding `calcite-block` elements.
12
+ */
13
+ export declare class BlockGroup extends LitElement {
14
+ /** When provided, the method will be called to determine whether the element is sortable in the component. */
15
+ canPull: (detail: BlockDragDetail) => boolean;
16
+ /** When provided, the method will be called to determine whether the element can be added from another component. */
17
+ canPut: (detail: BlockDragDetail) => boolean;
18
+ /** When `true`, interaction is prevented and the component is displayed with lower opacity. */
19
+ disabled: boolean;
20
+ /** When `true`, `calcite-block`s are sortable via a draggable button. */
21
+ dragEnabled: boolean;
22
+ /**
23
+ * The block-group's group identifier.
24
+ *
25
+ * To drag elements from one group into another, both groups must have the same group value.
26
+ */
27
+ group?: string;
28
+ /**
29
+ * Specifies an accessible name for the component.
30
+ *
31
+ * When `dragEnabled` is `true` and multiple group sorting is enabled with `group`, specifies the component's name for dragging between groups.
32
+ *
33
+ * @required
34
+ */
35
+ label: string;
36
+ /** When `true`, a busy indicator is displayed. */
37
+ loading: boolean;
38
+ /**
39
+ * Sets focus on the component's first focusable element.
40
+ *
41
+ * @returns {Promise<void>}
42
+ */
43
+ setFocus(): Promise<void>;
44
+ /** Fires when the component's dragging has ended. */
45
+ readonly calciteBlockGroupDragEnd: TargetedEvent<this, BlockDragDetail>;
46
+ /** Fires when the component's dragging has started. */
47
+ readonly calciteBlockGroupDragStart: TargetedEvent<this, BlockDragDetail>;
48
+ /** Fires when the component's item order changes. */
49
+ readonly calciteBlockGroupOrderChange: TargetedEvent<this, BlockDragDetail>;
50
+ }
@@ -0,0 +1,177 @@
1
+ import { D as f, c as v } from "../../chunks/runtime.js";
2
+ import { debounce as k } from "lodash-es";
3
+ import { html as p } from "lit";
4
+ import { LitElement as E, createEvent as m, safeClassMap as c } from "@arcgis/lumina";
5
+ import { u as I, I as B } from "../../chunks/interactive.js";
6
+ import { c as C } from "../../chunks/observers.js";
7
+ import { d as S, c as O } from "../../chunks/sortableComponent.js";
8
+ import { c as x } from "../../chunks/loadable.js";
9
+ import { h as y, y as G } from "../../chunks/dom.js";
10
+ import { g as T } from "../../chunks/guid.js";
11
+ import { css as D } 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
+ function u(l) {
16
+ return l.tagName === "CALCITE-BLOCK";
17
+ }
18
+ const d = {
19
+ container: "container",
20
+ groupContainer: "group-container",
21
+ scrim: "scrim",
22
+ assistiveText: "assistive-text"
23
+ }, b = "calcite-block-group", g = "calcite-block", $ = D`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block}.container{position:relative}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`;
24
+ function w(l) {
25
+ const e = l.assignedElements({ flatten: !0 }).filter((s) => s.matches(g));
26
+ e.forEach((s) => {
27
+ s.setPosition = e.indexOf(s) + 1, s.setSize = e.length;
28
+ });
29
+ }
30
+ class A extends E {
31
+ // #endregion
32
+ // #region Lifecycle
33
+ constructor() {
34
+ super(), this.dragSelector = g, this.handleSelector = "calcite-sort-handle", this.mutationObserver = C("mutation", () => {
35
+ this.updateBlockItems();
36
+ }), this.updateBlockItems = k(() => {
37
+ this.updateGroupItems();
38
+ const { dragEnabled: e, el: s, moveToItems: o } = this;
39
+ Array.from(this.el.querySelectorAll(g)).forEach((t) => {
40
+ t.closest(b) === s && (t.moveToItems = o.filter((n) => n.element !== s && !t.contains(n.element)), t.dragHandle = e);
41
+ }), this.setUpSorting();
42
+ }, f.nextTick), this.moveToItems = [], this.disabled = !1, this.dragEnabled = !1, this.loading = !1, this.calciteBlockGroupDragEnd = m({ cancelable: !1 }), this.calciteBlockGroupDragStart = m({ cancelable: !1 }), this.calciteBlockGroupOrderChange = m({ cancelable: !1 }), this.listen("calciteInternalAssistiveTextChange", this.handleCalciteInternalAssistiveTextChange), this.listen("calciteSortHandleReorder", this.handleSortReorder), this.listen("calciteSortHandleMove", this.handleSortMove);
43
+ }
44
+ static {
45
+ this.properties = { assistiveText: 16, moveToItems: 16, canPull: 0, canPut: 0, disabled: 7, dragEnabled: 7, group: 3, label: 1, loading: 7 };
46
+ }
47
+ static {
48
+ this.styles = $;
49
+ }
50
+ // #endregion
51
+ // #region Public Methods
52
+ /**
53
+ * Sets focus on the component's first focusable element.
54
+ *
55
+ * @returns {Promise<void>}
56
+ */
57
+ async setFocus() {
58
+ await x(this), y(this.el);
59
+ }
60
+ connectedCallback() {
61
+ super.connectedCallback(), this.connectObserver(), this.updateBlockItems(), this.setUpSorting(), this.setParentBlockGroup();
62
+ }
63
+ willUpdate(e) {
64
+ (e.has("group") || e.has("dragEnabled") && (this.hasUpdated || this.dragEnabled !== !1)) && this.updateBlockItems();
65
+ }
66
+ updated() {
67
+ I(this);
68
+ }
69
+ disconnectedCallback() {
70
+ super.disconnectedCallback(), this.disconnectObserver(), S(this);
71
+ }
72
+ // #endregion
73
+ // #region Private Methods
74
+ updateGroupItems() {
75
+ const { el: e, group: s } = this, o = G(e), a = s ? Array.from(o.querySelectorAll(`${b}[group="${s}"]`)).filter((t) => !t.disabled && t.dragEnabled) : [];
76
+ this.moveToItems = a.map((t) => ({
77
+ element: t,
78
+ label: t.label ?? t.id,
79
+ id: e.id || T()
80
+ }));
81
+ }
82
+ handleCalciteInternalAssistiveTextChange(e) {
83
+ this.assistiveText = e.detail.message, e.stopPropagation();
84
+ }
85
+ handleSortReorder(e) {
86
+ this.parentBlockGroupEl || this.handleReorder(e);
87
+ }
88
+ handleSortMove(e) {
89
+ this.parentBlockGroupEl || this.handleMove(e);
90
+ }
91
+ connectObserver() {
92
+ this.mutationObserver?.observe(this.el, { childList: !0, subtree: !0 });
93
+ }
94
+ disconnectObserver() {
95
+ this.mutationObserver?.disconnect();
96
+ }
97
+ setUpSorting() {
98
+ const { dragEnabled: e } = this;
99
+ e && O(this);
100
+ }
101
+ onGlobalDragStart() {
102
+ this.disconnectObserver();
103
+ }
104
+ onGlobalDragEnd() {
105
+ this.connectObserver();
106
+ }
107
+ onDragEnd(e) {
108
+ this.calciteBlockGroupDragEnd.emit(e);
109
+ }
110
+ onDragStart(e) {
111
+ e.dragEl.sortHandleOpen = !1, this.calciteBlockGroupDragStart.emit(e);
112
+ }
113
+ onDragSort(e) {
114
+ this.setParentBlockGroup(), this.updateBlockItems(), this.calciteBlockGroupOrderChange.emit(e);
115
+ }
116
+ setParentBlockGroup() {
117
+ this.parentBlockGroupEl = this.el.parentElement?.closest(b);
118
+ }
119
+ handleDefaultSlotChange(e) {
120
+ w(e.target);
121
+ }
122
+ handleMove(e) {
123
+ const { moveTo: s } = e.detail, o = e.target, a = o?.parentElement, t = s.element, r = Array.from(a.children).filter(u).indexOf(o);
124
+ if (!a)
125
+ return;
126
+ o.sortHandleOpen = !1, this.disconnectObserver(), t.prepend(o);
127
+ const h = Array.from(t.children).filter(u).indexOf(o);
128
+ this.updateBlockItems(), this.connectObserver(), this.calciteBlockGroupOrderChange.emit({
129
+ dragEl: o,
130
+ fromEl: a,
131
+ toEl: t,
132
+ newIndex: h,
133
+ oldIndex: r
134
+ });
135
+ }
136
+ handleReorder(e) {
137
+ const { reorder: s } = e.detail, o = e.target, a = o?.parentElement;
138
+ if (!a)
139
+ return;
140
+ o.sortHandleOpen = !1;
141
+ const t = Array.from(a.children).filter(u), n = t.length - 1, r = t.indexOf(o);
142
+ let i = r;
143
+ switch (s) {
144
+ case "top":
145
+ i = 0;
146
+ break;
147
+ case "bottom":
148
+ i = n;
149
+ break;
150
+ case "up":
151
+ i = r === 0 ? 0 : r - 1;
152
+ break;
153
+ case "down":
154
+ i = r === n ? n : r + 1;
155
+ break;
156
+ }
157
+ this.disconnectObserver();
158
+ const h = s === "up" || s === "top" ? t[i] : t[i].nextSibling;
159
+ a.insertBefore(o, h), this.updateBlockItems(), this.connectObserver(), this.calciteBlockGroupOrderChange.emit({
160
+ dragEl: o,
161
+ fromEl: a,
162
+ toEl: a,
163
+ newIndex: i,
164
+ oldIndex: r
165
+ });
166
+ }
167
+ // #endregion
168
+ // #region Rendering
169
+ render() {
170
+ const { loading: e, label: s } = this;
171
+ return B({ disabled: this.disabled, children: p`<div class=${c(d.container)}>${this.dragEnabled ? p`<span aria-live=assertive class=${c(d.assistiveText)}>${this.assistiveText}</span>` : null}${e ? p`<calcite-scrim class=${c(d.scrim)} .loading=${e}></calcite-scrim>` : null}<div .ariaBusy=${e} .ariaLabel=${s || ""} class=${c(d.groupContainer)} role=group><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></div>` });
172
+ }
173
+ }
174
+ v("calcite-block-group", A);
175
+ export {
176
+ A as BlockGroup
177
+ };
@@ -0,0 +1,2 @@
1
+ import "../calcite-scrim/index.js";
2
+ export * from "./customElement.js";
@@ -0,0 +1,2 @@
1
+ import "../calcite-scrim/index.js";
2
+ export * from "./customElement.js";
@@ -0,0 +1,14 @@
1
+ import { DragDetail, MoveDetail } from '../../utils/sortableComponent';
2
+ import { Block } from '../calcite-block/customElement.js';
3
+ import { BlockGroup } from './customElement.js';
4
+ export interface BlockDragDetail extends DragDetail {
5
+ toEl: HTMLCalciteBlockGroupElement;
6
+ fromEl: HTMLCalciteBlockGroupElement;
7
+ dragEl: HTMLCalciteBlockElement;
8
+ }
9
+ export interface BlockMoveDetail extends MoveDetail {
10
+ toEl: HTMLCalciteBlockGroupElement;
11
+ fromEl: HTMLCalciteBlockGroupElement;
12
+ dragEl: HTMLCalciteBlockElement;
13
+ relatedEl: HTMLCalciteBlockElement;
14
+ }
@@ -0,0 +1,8 @@
1
+ export declare const CSS: {
2
+ container: string;
3
+ groupContainer: string;
4
+ scrim: string;
5
+ assistiveText: string;
6
+ };
7
+ export declare const blockGroupSelector = "calcite-block-group";
8
+ export declare const blockSelector = "calcite-block";
@@ -0,0 +1 @@
1
+ export declare function updateBlockChildren(slotEl: HTMLSlotElement): void;
@@ -1,17 +1,15 @@
1
1
  import { c as h } from "../../chunks/runtime.js";
2
- import { html as a } from "lit-html";
2
+ import { html as r } from "lit-html";
3
3
  import { keyed as v } from "lit-html/directives/keyed.js";
4
4
  import { LitElement as p, createEvent as u, safeClassMap as c, nothing as b } from "@arcgis/lumina";
5
5
  import { h as x } from "../../chunks/dom.js";
6
6
  import { i as m } from "../../chunks/key.js";
7
- import { c as f, s as k, a as $ } from "../../chunks/loadable.js";
8
- import { u as w } from "../../chunks/useT9n.js";
9
- import { css as S } from "@lit/reactive-element/css-tag.js";
10
- /*!
11
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
12
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
13
- * v3.0.0-next.99
14
- */
7
+ import { c as f } from "../../chunks/loadable.js";
8
+ import { u as k } from "../../chunks/useT9n.js";
9
+ import { css as $ } from "@lit/reactive-element/css-tag.js";
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 */
15
13
  const l = {
16
14
  content: "content",
17
15
  toggle: "toggle"
@@ -36,16 +34,16 @@ const l = {
36
34
  menuClosed: "chevron-down",
37
35
  valid: "check-circle",
38
36
  invalid: "exclamation-mark-triangle"
39
- }, y = S`:host{box-sizing:border-box;display:block;font-size:var(--calcite-font-size--1);color:var(--calcite-block-section-header-text-color, var(--calcite-color-text-2));background-color:var(--calcite-block-section-background-color, var(--calcite-color-foreground-1))}:host([open]){border-width:0px;border-block-end-width:1px;border-style:solid;border-block-end-color:var(--calcite-block-section-border-color, var(--calcite-color-border-3))}:host([open]) .toggle{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}:host([open]) .toggle:hover{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}:host([open]) .chevron-icon{color:var(--calcite-block-section-text-color, var(--calcite-color-text-3))}:host([open]) .chevron-icon:hover{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}:host(:last-child){border-block-end-width:0px}.toggle{inline-size:100%;border-width:0px;font-family:var(--calcite-font-family);gap:var(--calcite-spacing-md);color:var(--calcite-block-section-header-text-color, var(--calcite-color-text-2));background-color:var(--calcite-block-section-background-color, transparent);font-weight:var(--calcite-font-weight-normal)}.toggle:hover{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}.toggle--switch,.section-header{margin-inline:0px;margin-block:.25rem;display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;padding-inline:0px;padding-block:.5rem;font-size:var(--calcite-font-size--1);outline-color:transparent}.toggle--switch:focus,.section-header: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))))}.toggle--switch:hover,.section-header:hover{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}.section-header__text{margin-block:0px;flex:1 1 auto;text-align:initial;word-wrap:anywhere}.toggle-container{position:relative;display:flex;align-items:center;word-break:break-word;background-color:var(--calcite-block-section-background-color, transparent)}.toggle-container .toggle--switch__content{display:flex;flex:1 1 auto;align-items:center}.toggle-container .icon--end,.toggle-container .icon--start,.toggle-container .chevron-icon{display:flex;align-items:center;color:var(--calcite-block-section-text-color, var(--calcite-color-text-3))}.toggle-container .icon--end:hover,.toggle-container .icon--start:hover,.toggle-container .chevron-icon:hover{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}.status-icon{display:flex;align-items:center}.status-icon.valid{color:var(--calcite-color-status-success)}.status-icon.invalid{color:var(--calcite-color-status-danger)}:host([hidden]){display:none}[hidden]{display:none}`;
40
- class I extends p {
37
+ }, w = $`:host{box-sizing:border-box;display:block;font-size:var(--calcite-font-size--1);color:var(--calcite-block-section-header-text-color, var(--calcite-color-text-2));background-color:var(--calcite-block-section-background-color, var(--calcite-color-foreground-1))}:host([open]){border-width:0px;border-block-end-width:1px;border-style:solid;border-block-end-color:var(--calcite-block-section-border-color, var(--calcite-color-border-3))}:host([open]) .toggle{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}:host([open]) .toggle:hover{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}:host([open]) .chevron-icon{color:var(--calcite-block-section-text-color, var(--calcite-color-text-3))}:host([open]) .chevron-icon:hover{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}:host(:last-child){border-block-end-width:0px}.toggle{inline-size:100%;border-width:0px;font-family:var(--calcite-font-family);gap:var(--calcite-spacing-md);color:var(--calcite-block-section-header-text-color, var(--calcite-color-text-2));background-color:var(--calcite-block-section-background-color, transparent);font-weight:var(--calcite-font-weight-normal)}.toggle:hover{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}.toggle--switch,.section-header{margin-inline:0px;margin-block:.25rem;display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;padding-inline:0px;padding-block:.5rem;font-size:var(--calcite-font-size--1);outline-color:transparent}.toggle--switch:focus,.section-header: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))))}.toggle--switch:hover,.section-header:hover{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}.section-header__text{margin-block:0px;flex:1 1 auto;text-align:initial;word-wrap:anywhere}.toggle-container{position:relative;display:flex;align-items:center;word-break:break-word;background-color:var(--calcite-block-section-background-color, transparent)}.toggle-container .toggle--switch__content{display:flex;flex:1 1 auto;align-items:center}.toggle-container .icon--end,.toggle-container .icon--start,.toggle-container .chevron-icon{display:flex;align-items:center;color:var(--calcite-block-section-text-color, var(--calcite-color-text-3))}.toggle-container .icon--end:hover,.toggle-container .icon--start:hover,.toggle-container .chevron-icon:hover{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}.status-icon{display:flex;align-items:center}.status-icon.valid{color:var(--calcite-color-status-success)}.status-icon.invalid{color:var(--calcite-color-status-danger)}:host([hidden]){display:none}[hidden]{display:none}`;
38
+ class S extends p {
41
39
  constructor() {
42
- super(...arguments), this.messages = w(), this.open = !1, this.toggleDisplay = "button", this.calciteBlockSectionToggle = u({ cancelable: !1 });
40
+ super(...arguments), this.messages = k(), this.open = !1, this.toggleDisplay = "button", this.calciteBlockSectionToggle = u({ cancelable: !1 });
43
41
  }
44
42
  static {
45
43
  this.properties = { iconEnd: 3, iconFlipRtl: 3, iconStart: 3, messageOverrides: 0, open: 7, status: 3, text: 1, toggleDisplay: 3 };
46
44
  }
47
45
  static {
48
- this.styles = y;
46
+ this.styles = w;
49
47
  }
50
48
  // #endregion
51
49
  // #region Public Methods
@@ -56,10 +54,8 @@ class I extends p {
56
54
  // #endregion
57
55
  // #region Lifecycle
58
56
  async load() {
59
- k(this);
60
57
  }
61
58
  loaded() {
62
- $(this);
63
59
  }
64
60
  // #endregion
65
61
  // #region Private Methods
@@ -77,31 +73,31 @@ class I extends p {
77
73
  [t.valid]: e == "valid",
78
74
  [t.invalid]: e == "invalid"
79
75
  };
80
- return o ? a`<calcite-icon class=${c(i)} .icon=${o} scale=s></calcite-icon>` : null;
76
+ return o ? r`<calcite-icon class=${c(i)} .icon=${o} scale=s></calcite-icon>` : null;
81
77
  }
82
78
  renderIcon(e) {
83
79
  const { iconFlipRtl: o } = this;
84
80
  if (e === void 0)
85
81
  return null;
86
- const i = o === "both" || o === "start", r = o === "both" || o === "end", n = e === this.iconStart;
87
- return v(n ? this.iconStart : this.iconEnd, a`<calcite-icon class=${c(n ? t.iconStart : t.iconEnd)} .flipRtl=${n ? i : r} .icon=${n ? this.iconStart : this.iconEnd} scale=s></calcite-icon>`);
82
+ const i = o === "both" || o === "start", a = o === "both" || o === "end", n = e === this.iconStart;
83
+ return v(n ? this.iconStart : this.iconEnd, r`<calcite-icon class=${c(n ? t.iconStart : t.iconEnd)} .flipRtl=${n ? i : a} .icon=${n ? this.iconStart : this.iconEnd} scale=s></calcite-icon>`);
88
84
  }
89
85
  render() {
90
- const { messages: e, open: o, text: i, toggleDisplay: r } = this, n = o ? s.menuOpen : s.menuClosed, d = o ? e.collapse : e.expand, g = r === "switch" ? a`<div class=${c({
86
+ const { messages: e, open: o, text: i, toggleDisplay: a } = this, n = o ? s.menuOpen : s.menuClosed, d = o ? e.collapse : e.expand, g = a === "switch" ? r`<div class=${c({
91
87
  [t.toggleContainer]: !0
92
88
  })}><div aria-controls=${l.content} .ariaExpanded=${o} class=${c({
93
89
  [t.toggle]: !0,
94
90
  [t.toggleSwitch]: !0
95
- })} id=${l.toggle} @click=${this.toggleSection} @keydown=${this.handleHeaderKeyDown} role=button tabindex=0 title=${d ?? b}>${this.renderIcon(this.iconStart)}<div class=${c(t.toggleSwitchContent)}><span class=${c(t.toggleSwitchText)}>${i}</span></div>${this.renderIcon(this.iconEnd)}${this.renderStatusIcon()}<calcite-switch .checked=${o} class=${c(t.switch)} inert .label=${d} scale=s></calcite-switch></div></div>` : a`<div class=${c({
91
+ })} id=${l.toggle} @click=${this.toggleSection} @keydown=${this.handleHeaderKeyDown} role=button tabindex=0 title=${d ?? b}>${this.renderIcon(this.iconStart)}<div class=${c(t.toggleSwitchContent)}><span class=${c(t.toggleSwitchText)}>${i}</span></div>${this.renderIcon(this.iconEnd)}${this.renderStatusIcon()}<calcite-switch .checked=${o} class=${c(t.switch)} inert .label=${d} scale=s></calcite-switch></div></div>` : r`<div class=${c({
96
92
  [t.toggleContainer]: !0
97
93
  })}><button aria-controls=${l.content} .ariaExpanded=${o} class=${c({
98
94
  [t.sectionHeader]: !0,
99
95
  [t.toggle]: !0
100
96
  })} id=${l.toggle} @click=${this.toggleSection}>${this.renderIcon(this.iconStart)}<span class=${c(t.sectionHeaderText)}>${i}</span>${this.renderIcon(this.iconEnd)}${this.renderStatusIcon()}<calcite-icon class=${c(t.chevronIcon)} .icon=${n} scale=s></calcite-icon></button></div>`;
101
- return a`${g}<section aria-labelledby=${l.toggle} class=${c(t.content)} .hidden=${!o} id=${l.content}><slot></slot></section>`;
97
+ return r`${g}<section aria-labelledby=${l.toggle} class=${c(t.content)} .hidden=${!o} id=${l.content}><slot></slot></section>`;
102
98
  }
103
99
  }
104
- h("calcite-block-section", I);
100
+ h("calcite-block-section", S);
105
101
  export {
106
- I as BlockSection
102
+ S as BlockSection
107
103
  };